name stringlengths 1 473k | code stringlengths 7 647k | asm stringlengths 4 3.39M | file stringlengths 8 196 |
|---|---|---|---|
init | static cs_err init(cs_struct *ud)
{
MCRegisterInfo *mri;
// verify if requested mode is valid
if (ud->mode & ~(CS_MODE_LITTLE_ENDIAN | CS_MODE_32 | CS_MODE_64 |
CS_MODE_BIG_ENDIAN))
return CS_ERR_MODE;
mri = (MCRegisterInfo *) cs_mem_malloc(sizeof(*mri));
PPC_init(mri);
ud->printer = PPC_printInst;
ud->... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
andl $0x7ffffff3, %eax # imm = 0x7FFFFFF3
cmpl $0x0, %eax
je 0x45af9
movl $0x5, -0x4(%rbp)
jmp 0x45b9c
movl $0x58, %edi
leaq 0x18e59b(%rip), %rax # 0x1d40a0
callq *(%rax)
movq %rax, -0x18(%rbp)
movq -... | /sidneyp[P]capstone-tricore/arch/PowerPC/PPCModule.c |
X86_ATT_printInst | void X86_ATT_printInst(MCInst *MI, SStream *OS, void *info)
{
char *mnem;
x86_reg reg, reg2;
int i;
// Output CALLpcrel32 as "callq" in 64-bit mode.
// In Intel annotation it's always emitted as "call".
//
// TODO: Probably this hack should be redesigned via InstAlias in
// InstrInfo.td as soon as Requires cla... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq 0x320(%rax), %rax
cmpl $0x8, 0x4(%rax)
jne 0x45ea7
movq -0x8(%rbp), %rdi
callq 0x44cf0
cmpl $0x163, %eax # imm = 0x163
jne 0x45ea7
movq -0x10(%rbp), %rdi
leaq 0xfb8b8(%ri... | /sidneyp[P]capstone-tricore/arch/X86/X86ATTInstPrinter.c |
printMemReference | static void printMemReference(MCInst *MI, unsigned Op, SStream *O)
{
MCOperand *BaseReg = MCInst_getOperand(MI, Op + X86_AddrBaseReg);
MCOperand *IndexReg = MCInst_getOperand(MI, Op + X86_AddrIndexReg);
MCOperand *DispSpec = MCInst_getOperand(MI, Op + X86_AddrDisp);
MCOperand *SegReg = MCInst_getOperand(MI, Op + ... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
addl $0x0, %esi
callq 0x44d20
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
addl $0x2, %esi
callq 0x44d20
movq %rax, -0x28(%rbp)
movq -0x8(%rbp)... | /sidneyp[P]capstone-tricore/arch/X86/X86ATTInstPrinter.c |
DecodeCopMemInstruction | static DecodeStatus DecodeCopMemInstruction(MCInst *Inst, unsigned Insn,
uint64_t Address, const void *Decoder)
{
DecodeStatus S = MCDisassembler_Success;
unsigned pred = fieldFromInstruction_4(Insn, 28, 4);
unsigned CRd = fieldFromInstruction_4(Insn, 12, 4);
unsigned coproc = fieldFromInstruction_4(Insn, 8, 4);... | pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x3, -0x2c(%rbp)
movl -0x14(%rbp), %edi
movl $0x1c, %esi
movl $0x4, %edx
movl %edx, -0x4c(%rbp)
callq 0x4d7b0
movl -0x4c(%rbp), %edx
movl %eax, -0x30(%rbp)
movl -0x14(%rbp), %edi... | /sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c |
DecodeMRRC2 | static DecodeStatus DecodeMRRC2(MCInst *Inst, unsigned Val,
uint64_t Address, const void *Decoder)
{
DecodeStatus S = MCDisassembler_Success;
unsigned CRm = fieldFromInstruction_4(Val, 0, 4);
unsigned opc1 = fieldFromInstruction_4(Val, 4, 4);
unsigned cop = fieldFromInstruction_4(Val, 8, 4);
unsigned Rt = fiel... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x3, -0x2c(%rbp)
movl -0x14(%rbp), %edi
xorl %esi, %esi
movl $0x4, %edx
callq 0x4d7b0
movl %eax, -0x30(%rbp)
movl -0x14(%rbp), %edi
movl $0x4, %edx
movl %edx, %esi
callq 0x4d7b0
... | /sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c |
DecodeGPRwithAPSRRegisterClass | static DecodeStatus DecodeGPRwithAPSRRegisterClass(MCInst *Inst, unsigned RegNo,
uint64_t Address, const void *Decoder)
{
DecodeStatus S = MCDisassembler_Success;
if (RegNo == 15) {
MCOperand_CreateReg0(Inst, ARM_APSR_NZCV);
return MCDisassembler_Success;
}
Check(&S, DecodeGPRRegisterClass(Inst, RegNo, Addr... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x3, -0x2c(%rbp)
cmpl $0xf, -0x14(%rbp)
jne 0x673bb
movq -0x10(%rbp), %rdi
movl $0x2, %esi
callq 0x44f50
movl $0x3, -0x4(%rbp)
jmp 0x673e0
movq -0x10(%rbp), %rdi
movl -0x14(%rbp)... | /sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c |
DecodeDPRRegisterClass | static DecodeStatus DecodeDPRRegisterClass(MCInst *Inst, unsigned RegNo,
uint64_t Address, const void *Decoder)
{
unsigned Register = 0;
if (RegNo > 31)
return MCDisassembler_Fail;
Register = DPRDecoderTable[RegNo];
MCOperand_CreateReg0(Inst, Register);
return MCDisassembler_Success;
} | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x0, -0x2c(%rbp)
cmpl $0x1f, -0x14(%rbp)
jbe 0x6741d
movl $0x0, -0x4(%rbp)
jmp 0x67443
movl -0x14(%rbp), %eax
movl %eax, %ecx
leaq 0xdc927(%rip), %rax # 0x143d50
movzwl (%rax... | /sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c |
DecodeVLD1LN | static DecodeStatus DecodeVLD1LN(MCInst *Inst, unsigned Insn,
uint64_t Address, const void *Decoder)
{
DecodeStatus S = MCDisassembler_Success;
unsigned size, align = 0, index = 0;
unsigned Rn = fieldFromInstruction_4(Insn, 16, 4);
unsigned Rm = fieldFromInstruction_4(Insn, 0, 4);
unsigned Rd = fieldFromInstruct... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x3, -0x2c(%rbp)
movl $0x0, -0x34(%rbp)
movl $0x0, -0x38(%rbp)
movl -0x14(%rbp), %edi
movl $0x10, %esi
movl $0x4, %edx
movl %edx, -0x4c(%rbp)
callq 0x4d7b0
movl -0x4c(%rbp), %edx... | /sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c |
DecodeVLD2LN | static DecodeStatus DecodeVLD2LN(MCInst *Inst, unsigned Insn,
uint64_t Address, const void *Decoder)
{
DecodeStatus S = MCDisassembler_Success;
unsigned size, align = 0, index = 0, inc = 1;
unsigned Rn = fieldFromInstruction_4(Insn, 16, 4);
unsigned Rm = fieldFromInstruction_4(Insn, 0, 4);
unsigned Rd = fieldFro... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x3, -0x2c(%rbp)
movl $0x0, -0x34(%rbp)
movl $0x0, -0x38(%rbp)
movl $0x1, -0x3c(%rbp)
movl -0x14(%rbp), %edi
movl $0x10, %esi
movl $0x4, %edx
movl %edx, -0x50(%rbp)
callq 0x4d7b0... | /sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c |
DecodeVLD4DupInstruction | static DecodeStatus DecodeVLD4DupInstruction(MCInst *Inst, unsigned Insn,
uint64_t Address, const void *Decoder)
{
DecodeStatus S = MCDisassembler_Success;
unsigned Rn, Rm, size, inc, align;
unsigned Rd = fieldFromInstruction_4(Insn, 12, 4);
Rd |= fieldFromInstruction_4(Insn, 22, 1) << 4;
Rn = fieldFromInstructi... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x3, -0x2c(%rbp)
movl -0x14(%rbp), %edi
movl $0xc, %esi
movl $0x4, %edx
callq 0x4d7b0
movl %eax, -0x44(%rbp)
movl -0x14(%rbp), %edi
movl $0x16, %esi
movl $0x1, %edx
callq 0x4d7b0... | /sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c |
DecodeT2MOVTWInstruction | static DecodeStatus DecodeT2MOVTWInstruction(MCInst *Inst, unsigned Insn,
uint64_t Address, const void *Decoder)
{
DecodeStatus S = MCDisassembler_Success;
unsigned Rd = fieldFromInstruction_4(Insn, 8, 4);
unsigned imm = 0;
imm |= (fieldFromInstruction_4(Insn, 0, 8) << 0);
imm |= (fieldFromInstruction_4(Insn, ... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x3, -0x2c(%rbp)
movl -0x14(%rbp), %edi
movl $0x8, %esi
movl $0x4, %edx
callq 0x4d7b0
movl %eax, -0x30(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x14(%rbp), %edi
xorl %esi, %esi
movl $0... | /sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c |
DecodeThumb2BCCInstruction | static DecodeStatus DecodeThumb2BCCInstruction(MCInst *Inst, unsigned Insn,
uint64_t Address, const void *Decoder)
{
DecodeStatus S = MCDisassembler_Success;
unsigned brtarget;
unsigned pred = fieldFromInstruction_4(Insn, 22, 4);
if (pred == 0xE || pred == 0xF) {
unsigned imm;
unsigned opc = fieldFromInstruct... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x3, -0x2c(%rbp)
movl -0x14(%rbp), %edi
movl $0x16, %esi
movl $0x4, %edx
callq 0x4d7b0
movl %eax, -0x34(%rbp)
cmpl $0xe, -0x34(%rbp)
je 0x6ba83
cmpl $0xf, -0x34(%rbp)
jne 0x6bb27... | /sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c |
DecodeT2LoadImm12 | static DecodeStatus DecodeT2LoadImm12(MCInst *Inst, unsigned Insn,
uint64_t Address, const void* Decoder)
{
DecodeStatus S = MCDisassembler_Success;
unsigned Rn = fieldFromInstruction_4(Insn, 16, 4);
unsigned Rt = fieldFromInstruction_4(Insn, 12, 4);
unsigned imm = fieldFromInstruction_4(Insn, 0, 12);
imm |= (R... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x3, -0x2c(%rbp)
movl -0x14(%rbp), %edi
movl $0x10, %esi
movl $0x4, %edx
callq 0x4d7b0
movl %eax, -0x30(%rbp)
movl -0x14(%rbp), %edi
movl $0xc, %esi
movl $0x4, %edx
callq 0x4d7b0... | /sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c |
DecodeVMOVSRR | static DecodeStatus DecodeVMOVSRR(MCInst *Inst, unsigned Insn,
uint64_t Address, const void *Decoder)
{
DecodeStatus S = MCDisassembler_Success;
unsigned Rt = fieldFromInstruction_4(Insn, 12, 4);
unsigned Rt2 = fieldFromInstruction_4(Insn, 16, 4);
unsigned Rm = fieldFromInstruction_4(Insn, 5, 1);
unsigned pre... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x3, -0x2c(%rbp)
movl -0x14(%rbp), %edi
movl $0xc, %esi
movl $0x4, %edx
callq 0x4d7b0
movl %eax, -0x30(%rbp)
movl -0x14(%rbp), %edi
movl $0x10, %esi
movl $0x4, %edx
callq 0x4d7b0... | /sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c |
DecodeDPRRegListOperand | static DecodeStatus DecodeDPRRegListOperand(MCInst *Inst, unsigned Val,
uint64_t Address, const void *Decoder)
{
DecodeStatus S = MCDisassembler_Success;
unsigned i;
unsigned Vd = fieldFromInstruction_4(Val, 8, 5);
unsigned regs = fieldFromInstruction_4(Val, 1, 7);
// In case of unpredictable encoding, tweak th... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x3, -0x2c(%rbp)
movl -0x14(%rbp), %edi
movl $0x8, %esi
movl $0x5, %edx
callq 0x4d7b0
movl %eax, -0x34(%rbp)
movl -0x14(%rbp), %edi
movl $0x1, %esi
movl $0x7, %edx
callq 0x4d7b0
... | /sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c |
DecodeRFEInstruction | static DecodeStatus DecodeRFEInstruction(MCInst *Inst, unsigned Insn,
uint64_t Address, const void *Decoder)
{
DecodeStatus S = MCDisassembler_Success;
unsigned Rn = fieldFromInstruction_4(Insn, 16, 4);
unsigned mode = fieldFromInstruction_4(Insn, 23, 2);
switch (mode) {
case 0:
mode = ARM_AM_da;
break;... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x3, -0x2c(%rbp)
movl -0x14(%rbp), %edi
movl $0x10, %esi
movl $0x4, %edx
callq 0x4d7b0
movl %eax, -0x30(%rbp)
movl -0x14(%rbp), %edi
movl $0x17, %esi
movl $0x2, %edx
callq 0x4d7b... | /sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c |
DecodeDPairRegisterClass | static DecodeStatus DecodeDPairRegisterClass(MCInst *Inst, unsigned RegNo,
uint64_t Address, const void *Decoder)
{
unsigned Register;
if (RegNo > 30)
return MCDisassembler_Fail;
Register = DPairDecoderTable[RegNo];
MCOperand_CreateReg0(Inst, Register);
return MCDisassembler_Success;
} | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
cmpl $0x1e, -0x14(%rbp)
jbe 0x6d5f6
movl $0x0, -0x4(%rbp)
jmp 0x6d61c
movl -0x14(%rbp), %eax
movl %eax, %ecx
leaq 0xd67ae(%rip), %rax # 0x143db0
movzwl (%rax,%rcx,2), %eax
movl %ea... | /sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c |
DecodeVLDInstruction | static DecodeStatus DecodeVLDInstruction(MCInst *Inst, unsigned Insn,
uint64_t Address, const void *Decoder)
{
DecodeStatus S = MCDisassembler_Success;
unsigned wb, Rn, Rm;
unsigned Rd = fieldFromInstruction_4(Insn, 12, 4);
Rd |= fieldFromInstruction_4(Insn, 22, 1) << 4;
wb = fieldFromInstruction_4(Insn, 16, 4);... | pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl $0x3, -0x2c(%rbp)
movl -0x14(%rbp), %edi
movl $0xc, %esi
movl $0x4, %edx
movl %edx, -0x44(%rbp)
callq 0x4d7b0
movl %eax, -0x3c(%rbp)
movl -0x14(%rbp), %edi
movl $0x16, %esi
movl $... | /sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c |
DecodeDPairSpacedRegisterClass | static DecodeStatus DecodeDPairSpacedRegisterClass(MCInst *Inst,
unsigned RegNo, uint64_t Address, const void *Decoder)
{
unsigned Register;
if (RegNo > 29)
return MCDisassembler_Fail;
Register = DPairSpacedDecoderTable[RegNo];
MCOperand_CreateReg0(Inst, Register);
return MCDisassembler_Success;
} | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
cmpl $0x1d, -0x14(%rbp)
jbe 0x6e036
movl $0x0, -0x4(%rbp)
jmp 0x6e05c
movl -0x14(%rbp), %eax
movl %eax, %ecx
leaq 0xd5dae(%rip), %rax # 0x143df0
movzwl (%rax,%rcx,2), %eax
movl %ea... | /sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c |
DecodeT2Imm8 | static DecodeStatus DecodeT2Imm8(MCInst *Inst, unsigned Val,
uint64_t Address, const void *Decoder)
{
int imm = Val & 0xFF;
if (Val == 0)
imm = INT32_MIN;
else if (!(Val & 0x100))
imm *= -1;
MCOperand_CreateImm0(Inst, imm);
return MCDisassembler_Success;
} | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl -0xc(%rbp), %eax
andl $0xff, %eax
movl %eax, -0x24(%rbp)
cmpl $0x0, -0xc(%rbp)
jne 0x6e1a1
movl $0x80000000, -0x24(%rbp) # imm = 0x80000000
jmp 0x6e1b7
movl -0xc(%rbp), %eax
andl $0... | /sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c |
CountTrailingZeros_32 | static inline unsigned CountTrailingZeros_32(uint32_t Value) {
#if __GNUC__ >= 4
return Value ? __builtin_ctz(Value) : 32;
#else
static const unsigned Mod37BitPosition[] = {
32, 0, 1, 26, 2, 23, 27, 0, 3, 16, 24, 30, 28, 11, 0, 13,
4, 7, 17, 0, 25, 22, 31, 15, 29, 10, 12, 6, 0, 21, 14, 9,
5, 20, 8, 19, 18
};
... | pushq %rbp
movq %rsp, %rbp
movl %edi, -0x4(%rbp)
cmpl $0x0, -0x4(%rbp)
je 0x6e279
movl -0x4(%rbp), %eax
tzcntl %eax, %eax
movl %eax, -0x8(%rbp)
jmp 0x6e283
movl $0x20, %eax
movl %eax, -0x8(%rbp)
jmp 0x6e283
movl -0x8(%rbp), %eax
popq %rbp
retq
nopl (%rax,%rax)
| /sidneyp[P]capstone-tricore/arch/ARM/../../MathExtras.h |
ITStatus_push_back | static bool ITStatus_push_back(ARM_ITStatus *it, char v)
{
if (it->size >= sizeof(it->ITStates)) {
// TODO: consider warning user.
it->size = 0;
}
it->ITStates[it->size] = v;
it->size++;
return true;
} | pushq %rbp
movq %rsp, %rbp
movb %sil, %al
movq %rdi, -0x8(%rbp)
movb %al, -0x9(%rbp)
movq -0x8(%rbp), %rax
movl 0x8(%rax), %eax
cmpq $0x8, %rax
jb 0x6e2b6
movq -0x8(%rbp), %rax
movl $0x0, 0x8(%rax)
movb -0x9(%rbp), %dl
movq -0x8(%rbp), %rax
movq -0x8(%rbp), %rcx
movl 0x8(%rcx), %ecx
movb %dl, (%rax,%rcx)
movq -0x8(%rbp... | /sidneyp[P]capstone-tricore/arch/ARM/ARMDisassembler.c |
ARM_getRegName | void ARM_getRegName(cs_struct *handle, int value)
{
if (value == CS_OPT_SYNTAX_NOREGNAME) {
handle->get_regname = getRegisterName2;
handle->reg_name = ARM_reg_name2;;
} else {
handle->get_regname = getRegisterName;
handle->reg_name = ARM_reg_name;;
}
} | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
cmpl $0x3, -0xc(%rbp)
jne 0x81d04
movq -0x8(%rbp), %rax
leaq 0x44(%rip), %rcx # 0x81d30
movq %rcx, 0x80(%rax)
movq -0x8(%rbp), %rax
leaq 0xf592(%rip), %rcx # 0x91290
movq %rcx, 0x30(%rax)
jmp 0x81d25
movq -0x8(%rbp), %rax
leaq 0x51(%rip)... | /sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c |
printAddrMode7Operand | static void printAddrMode7Operand(MCInst *MI, unsigned OpNum, SStream *O)
{
MCOperand *MO1 = MCInst_getOperand(MI, OpNum);
SStream_concat0(O, "[");
set_mem_access(MI, true);
printRegName(MI->csh, O, MCOperand_getReg(MO1));
if (MI->csh->detail)
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_cou... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x44d20
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdi
leaq 0xcce39(%rip), %rsi # 0x155af7
callq 0x45050
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x8d420... | /sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c |
printAddrMode5Operand | static void printAddrMode5Operand(MCInst *MI, unsigned OpNum, SStream *O,
bool AlwaysPrintImm0)
{
unsigned ImmOffs;
MCOperand *MO1 = MCInst_getOperand(MI, OpNum);
MCOperand *MO2 = MCInst_getOperand(MI, OpNum+1);
ARM_AM_AddrOpc subtracted = ARM_AM_getAM5Op((unsigned int)MCOperand_getImm(MO2));
if (!MCOperand_isR... | pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movb %cl, %al
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
andb $0x1, %al
movb %al, -0x19(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x44d20
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
addl $0x1, %esi
callq 0x44d20
mov... | /sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c |
printMSRMaskOperand | static void printMSRMaskOperand(MCInst *MI, unsigned OpNum, SStream *O)
{
MCOperand *Op = MCInst_getOperand(MI, OpNum);
unsigned SpecRegRBit = (unsigned)MCOperand_getImm(Op) >> 4;
unsigned Mask = MCOperand_getImm(Op) & 0xf;
unsigned reg;
if (ARM_getFeatureBits(MI->csh->mode) & ARM_FeatureMClass) {
unsigned SYSm... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x44d20
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0x44e90
shrl $0x4, %eax
movl %eax, -0x24(%rbp)
movq -0x20(%rbp), %rdi
callq 0x44e90
andq $0xf, %rax... | /sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c |
printNEONModImmOperand | static void printNEONModImmOperand(MCInst *MI, unsigned OpNum, SStream *O)
{
unsigned EncodedImm = (unsigned int)MCOperand_getImm(MCInst_getOperand(MI, OpNum));
unsigned EltBits;
uint64_t Val = ARM_AM_decodeNEONModImm(EncodedImm, &EltBits);
if (Val > HEX_THRESHOLD)
SStream_concat(O, "#0x%"PRIx64, Val);
else
SS... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x44d20
movq %rax, %rdi
callq 0x44e90
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %edi
leaq -0x20(%rbp), %rsi
callq 0x909c0
movq %rax, -0x28(%rbp)
cmpq $0x9, -0x2... | /sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c |
printVectorListOneAllLanes | static void printVectorListOneAllLanes(MCInst *MI, unsigned OpNum, SStream *O)
{
SStream_concat0(O, "{");
printRegName(MI->csh, O, MCOperand_getReg(MCInst_getOperand(MI, OpNum)));
if (MI->csh->detail) {
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].type = ARM_OP_REG;
MI->flat_insn->det... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x18(%rbp), %rdi
leaq 0xc1d0e(%rip), %rsi # 0x14b83c
callq 0x45050
movq -0x8(%rbp), %rax
movq 0x320(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %... | /sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c |
printVectorListTwoAllLanes | static void printVectorListTwoAllLanes(MCInst *MI, unsigned OpNum,
SStream *O, MCRegisterInfo *MRI)
{
unsigned Reg = MCOperand_getReg(MCInst_getOperand(MI, OpNum));
unsigned Reg0 = MCRegisterInfo_getSubReg(MRI, Reg, ARM_dsub_0);
unsigned Reg1 = MCRegisterInfo_getSubReg(MRI, Reg, ARM_dsub_1);
SStream_concat0(O, "{... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x44d20
movq %rax, %rdi
callq 0x44e50
movl %eax, -0x24(%rbp)
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movl $0x1, %edx
callq 0x4b7c0... | /sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c |
printVectorListFour | static void printVectorListFour(MCInst *MI, unsigned OpNum, SStream *O)
{
// Normally, it's not safe to use register enum values directly with
// addition to get the next register, but for VFP registers, the
// sort order is guaranteed because they're all of the form D<n>.
SStream_concat0(O, "{");
printRegName(MI-... | pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x18(%rbp), %rdi
leaq 0xc187e(%rip), %rsi # 0x14b83c
callq 0x45050
movq -0x8(%rbp), %rax
movq 0x320(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %... | /sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c |
printVectorListTwoSpacedAllLanes | static void printVectorListTwoSpacedAllLanes(MCInst *MI,
unsigned OpNum, SStream *O, MCRegisterInfo *MRI)
{
unsigned Reg = MCOperand_getReg(MCInst_getOperand(MI, OpNum));
unsigned Reg0 = MCRegisterInfo_getSubReg(MRI, Reg, ARM_dsub_0);
unsigned Reg1 = MCRegisterInfo_getSubReg(MRI, Reg, ARM_dsub_2);
SStream_concat0... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x44d20
movq %rax, %rdi
callq 0x44e50
movl %eax, -0x24(%rbp)
movq -0x20(%rbp), %rdi
movl -0x24(%rbp), %esi
movl $0x1, %edx
callq 0x4b7c0... | /sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c |
printAddrMode6Operand | static void printAddrMode6Operand(MCInst *MI, unsigned OpNum, SStream *O)
{
MCOperand *MO1 = MCInst_getOperand(MI, OpNum);
MCOperand *MO2 = MCInst_getOperand(MI, OpNum+1);
unsigned tmp;
SStream_concat0(O, "[");
set_mem_access(MI, true);
printRegName(MI->csh, O, MCOperand_getReg(MO1));
if (MI->csh->detail)
MI-... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x44d20
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
addl $0x1, %esi
callq 0x44d20
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
leaq 0xc... | /sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c |
printVectorListFourSpaced | static void printVectorListFourSpaced(MCInst *MI, unsigned OpNum, SStream *O)
{
// Normally, it's not safe to use register enum values directly with
// addition to get the next register, but for VFP registers, the
// sort order is guaranteed because they're all of the form D<n>.
SStream_concat0(O, "{");
printRegNa... | pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x18(%rbp), %rdi
leaq 0xbf64e(%rip), %rsi # 0x14b83c
callq 0x45050
movq -0x8(%rbp), %rax
movq 0x320(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %... | /sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c |
printAddrModeTBH | static void printAddrModeTBH(MCInst *MI, unsigned Op, SStream *O)
{
MCOperand *MO1 = MCInst_getOperand(MI, Op);
MCOperand *MO2 = MCInst_getOperand(MI, Op+1);
SStream_concat0(O, "[");
set_mem_access(MI, true);
printRegName(MI->csh, O, MCOperand_getReg(MO1));
if (MI->csh->detail)
MI->flat_insn->detail->arm.operan... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x44d20
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
addl $0x1, %esi
callq 0x44d20
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
leaq 0xc... | /sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c |
printPostIdxImm8s4Operand | static void printPostIdxImm8s4Operand(MCInst *MI, unsigned OpNum, SStream *O)
{
MCOperand *MO = MCInst_getOperand(MI, OpNum);
unsigned Imm = (unsigned int)MCOperand_getImm(MO);
if (((Imm & 0xff) << 2) > HEX_THRESHOLD)
SStream_concat(O, "#%s0x%x", ((Imm & 256) ? "" : "-"), ((Imm & 0xff) << 2));
else
SStream_conc... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x44d20
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0x44e90
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
andl $0xff, %eax
shll $0x2, %eax
cmpl $0x9, %... | /sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c |
set_mem_access | static void set_mem_access(MCInst *MI, bool status)
{
if (MI->csh->detail != CS_OPT_ON)
return;
MI->csh->doing_mem = status;
if (status) {
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].type = ARM_OP_MEM;
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_count].mem.ba... | pushq %rbp
movq %rsp, %rbp
movb %sil, %al
movq %rdi, -0x8(%rbp)
andb $0x1, %al
movb %al, -0x9(%rbp)
movq -0x8(%rbp), %rax
movq 0x320(%rax), %rax
cmpl $0x3, 0x68(%rax)
je 0x8d446
jmp 0x8d5b7
movb -0x9(%rbp), %cl
movq -0x8(%rbp), %rax
movq 0x320(%rax), %rax
andb $0x1, %cl
movb %cl, 0x70(%rax)
testb $0x1, -0x9(%rbp)
je 0x... | /sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c |
printSORegImmOperand | static void printSORegImmOperand(MCInst *MI, unsigned OpNum, SStream *O)
{
MCOperand *MO1 = MCInst_getOperand(MI, OpNum);
MCOperand *MO2 = MCInst_getOperand(MI, OpNum+1);
printRegName(MI->csh, O, MCOperand_getReg(MO1));
if (MI->csh->detail) {
MI->flat_insn->detail->arm.operands[MI->flat_insn->detail->arm.op_coun... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x44d20
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
addl $0x1, %esi
callq 0x44d20
movq %rax, -0x28(%rbp)
movq -0x8(%rbp), %rax
movq 0x32... | /sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c |
printNoHashImmediate | static void printNoHashImmediate(MCInst *MI, unsigned OpNum, SStream *O)
{
unsigned tmp = (unsigned int)MCOperand_getImm(MCInst_getOperand(MI, OpNum));
if (tmp > HEX_THRESHOLD)
SStream_concat(O, "0x%x", tmp);
else
SStream_concat(O, "%u", tmp);
if (MI->csh->detail) {
if (MI->csh->doing_mem) {
MI->flat_insn-... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x44d20
movq %rax, %rdi
callq 0x44e90
movl %eax, -0x1c(%rbp)
cmpl $0x9, -0x1c(%rbp)
jbe 0x8dec7
movq -0x18(%rbp), %rdi
movl -0x1c(%rbp), %edx
leaq 0xd0fc9(%rip... | /sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c |
printThumbAddrModeRROperand | static void printThumbAddrModeRROperand(MCInst *MI, unsigned Op, SStream *O)
{
MCOperand *MO1 = MCInst_getOperand(MI, Op);
MCOperand *MO2 = MCInst_getOperand(MI, Op + 1);
unsigned RegNum;
if (!MCOperand_isReg(MO1)) { // FIXME: This is for CP entries, but isn't right.
printOperand(MI, Op, O);
return;
}
SSt... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x44d20
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
addl $0x1, %esi
callq 0x44d20
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rdi
callq 0x... | /sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c |
printRotImmOperand | static void printRotImmOperand(MCInst *MI, unsigned OpNum, SStream *O)
{
unsigned Imm = (unsigned int)MCOperand_getImm(MCInst_getOperand(MI, OpNum));
if (Imm == 0)
return;
SStream_concat0(O, ", ror #");
switch (Imm) {
default: //assert (0 && "illegal ror immediate!");
case 1: SStream_concat0(O, "8"); break;
... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x44d20
movq %rax, %rdi
callq 0x44e90
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
jne 0x8eb45
jmp 0x8ec4b
movq -0x18(%rbp), %rdi
leaq 0xbcfde(%rip), %rsi ... | /sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c |
printPostIdxRegOperand | static void printPostIdxRegOperand(MCInst *MI, unsigned OpNum, SStream *O)
{
MCOperand *MO1 = MCInst_getOperand(MI, OpNum);
MCOperand *MO2 = MCInst_getOperand(MI, OpNum+1);
SStream_concat0(O, (MCOperand_getImm(MO2) ? "" : "-"));
printRegName(MI->csh, O, MCOperand_getReg(MO1));
if (MI->csh->detail) {
MI->flat_in... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x44d20
movq %rax, -0x20(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
addl $0x1, %esi
callq 0x44d20
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %ra... | /sidneyp[P]capstone-tricore/arch/ARM/ARMInstPrinter.c |
ARM_MB_MemBOptToString | inline static char *ARM_MB_MemBOptToString(unsigned val, bool HasV8)
{
switch (val) {
default: return "BUGBUG";
case ARM_MB_SY: return "sy";
case ARM_MB_ST: return "st";
case ARM_MB_LD: return HasV8 ? "ld" : "#0xd";
case ARM_MB_RESERVED_12: return "#0xc";
case ARM_MB_ISH: return "ish";
case ARM_M... | pushq %rbp
movq %rsp, %rbp
movb %sil, %al
movl %edi, -0xc(%rbp)
andb $0x1, %al
movb %al, -0xd(%rbp)
movl -0xc(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x18(%rbp)
subl $0xf, %eax
ja 0x8fef3
movq -0x18(%rbp), %rax
leaq 0xb5706(%rip), %rcx # 0x1455f0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq ... | /sidneyp[P]capstone-tricore/arch/ARM/ARMBaseInfo.h |
ARM_reg_name | const char *ARM_reg_name(csh handle, unsigned int reg)
{
#ifndef CAPSTONE_DIET
if (reg >= ARM_REG_ENDING)
return NULL;
return reg_name_maps[reg].name;
#else
return NULL;
#endif
} | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
cmpl $0x6f, -0x14(%rbp)
jb 0x9126b
movq $0x0, -0x8(%rbp)
jmp 0x91286
movl -0x14(%rbp), %eax
movl %eax, %ecx
leaq 0x183179(%rip), %rax # 0x2143f0
shlq $0x4, %rcx
addq %rcx, %rax
movq 0x8(%rax), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
po... | /sidneyp[P]capstone-tricore/arch/ARM/ARMMapping.c |
ARM_get_insn_id | void ARM_get_insn_id(cs_struct *h, cs_insn *insn, unsigned int id)
{
int i = insn_find(insns, ARR_SIZE(insns), id, &h->insn_cache);
if (i != 0) {
insn->id = insns[i].mapid;
if (h->detail) {
#ifndef CAPSTONE_DIET
cs_struct handle;
handle.detail = h->detail;
memcpy(insn->detail->regs_read, insns[i].regs_... | pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl -0x14(%rbp), %edx
movq -0x8(%rbp), %rcx
addq $0x78, %rcx
leaq 0x185c58(%rip), %rdi # 0x216f50
movl $0x8a4, %esi # imm = 0x8A4
callq 0x4b8d0
movzwl %ax, %eax
movl %eax, -0x18(%rbp)
cmpl $0x0... | /sidneyp[P]capstone-tricore/arch/ARM/ARMMapping.c |
AArch64_getInstruction | bool AArch64_getInstruction(csh ud, const uint8_t *code, size_t code_len,
MCInst *instr, uint16_t *size, uint64_t address, void *info)
{
DecodeStatus status = _getInstruction((cs_struct *)ud, instr,
code, code_len,
size,
address, (MCRegisterInfo *)info);
return status == MCDisassembler_Success;
} | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x10(%rbp), %rdx
movq -0x18(%rbp), %rcx
movq -0x28(%rbp), %r8
movq -... | /sidneyp[P]capstone-tricore/arch/AArch64/AArch64Disassembler.c |
AArch64_init | void AArch64_init(MCRegisterInfo *MRI)
{
/*
InitMCRegisterInfo(AArch64RegDesc, 420,
RA, PC,
AArch64MCRegisterClasses, 43,
AArch64RegUnitRoots, 66, AArch64RegDiffLists,
AArch64RegStrings,
AArch64SubRegIdxLists, 53,
AArch64SubRegIdxRanges,
AArch64RegEncodingTable);
*/
MCRegisterInfo_InitMCRegis... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
leaq 0x19e459(%rip), %rsi # 0x22fcd0
movl $0x1a4, %edx # imm = 0x1A4
xorl %r8d, %r8d
leaq 0x1a051a(%rip), %r9 # 0x231da0
xorl %eax, %eax
leaq 0x1a0bd1(%rip), %r10 # 0x232460
leaq 0x1a10ba(%rip), %rax # 0x2329... | /sidneyp[P]capstone-tricore/arch/AArch64/AArch64Disassembler.c |
Check | static bool Check(DecodeStatus *Out, DecodeStatus In)
{
switch (In) {
default: // never reach
return true;
case MCDisassembler_Success:
// Out stays the same.
return true;
case MCDisassembler_SoftFail:
*Out = In;
return true;
case MCDisassembler_Fail:
*Out = In;
return false;
}
// llvm_u... | pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x18(%rbp)
testl %eax, %eax
je 0xa43c6
jmp 0xa4397
movl -0x18(%rbp), %eax
subl $0x1, %eax
je 0xa43b7
jmp 0xa43a1
movl -0x18(%rbp), %eax
subl $0x3, %eax
je 0xa43b1
jmp 0xa43ab
movb $0x1, -0x1(%rbp)
jmp 0xa43d3
mov... | /sidneyp[P]capstone-tricore/arch/AArch64/AArch64Disassembler.c |
DecodeThreeAddrSRegInstruction | static DecodeStatus DecodeThreeAddrSRegInstruction(MCInst *Inst,
uint32_t insn, uint64_t Addr,
void *Decoder)
{
unsigned Rd = fieldFromInstruction(insn, 0, 5);
unsigned Rn = fieldFromInstruction(insn, 5, 5);
unsigned Rm = fieldFromInstruction(insn, 16, 5);
unsigned shiftHi = fieldFromInstruction(insn, 22, 2);
... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl -0x14(%rbp), %edi
xorl %esi, %esi
movl $0x5, %edx
movl %edx, -0x48(%rbp)
callq 0x91c90
movl -0x48(%rbp), %edx
movl %eax, -0x2c(%rbp)
movl -0x14(%rbp), %edi
movl %edx, %esi
callq 0... | /sidneyp[P]capstone-tricore/arch/AArch64/AArch64Disassembler.c |
DecodeGPR64spRegisterClass | static DecodeStatus DecodeGPR64spRegisterClass(MCInst *Inst, unsigned RegNo,
uint64_t Addr,
void *Decoder)
{
unsigned Register;
if (RegNo > 31)
return Fail;
Register = GPR64DecoderTable[RegNo];
if (Register == AArch64_XZR)
Register = AArch64_SP;
MCOperand_CreateReg0(Inst, Register);
return Success;
} | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
cmpl $0x1f, -0x14(%rbp)
jbe 0xa5186
movl $0x0, -0x4(%rbp)
jmp 0xa51b8
movl -0x14(%rbp), %eax
movl %eax, %ecx
leaq 0xa7a0e(%rip), %rax # 0x14cba0
movl (%rax,%rcx,4), %eax
movl %eax,... | /sidneyp[P]capstone-tricore/arch/AArch64/AArch64Disassembler.c |
DecodeFPR64RegisterClass | static DecodeStatus DecodeFPR64RegisterClass(MCInst *Inst, unsigned RegNo,
uint64_t Addr,
void *Decoder)
{
unsigned Register;
if (RegNo > 31)
return Fail;
Register = FPR64DecoderTable[RegNo];
MCOperand_CreateReg0(Inst, Register);
return Success;
} | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
cmpl $0x1f, -0x14(%rbp)
jbe 0xa5256
movl $0x0, -0x4(%rbp)
jmp 0xa527b
movl -0x14(%rbp), %eax
movl %eax, %ecx
leaq 0xa7a3e(%rip), %rax # 0x14cca0
movl (%rax,%rcx,4), %eax
movl %eax,... | /sidneyp[P]capstone-tricore/arch/AArch64/AArch64Disassembler.c |
DecodeQQQQRegisterClass | static DecodeStatus DecodeQQQQRegisterClass(MCInst *Inst, unsigned RegNo,
uint64_t Addr,
void *Decoder)
{
unsigned Register;
if (RegNo > 31)
return Fail;
Register = QQQQDecoderTable[RegNo];
MCOperand_CreateReg0(Inst, Register);
return Success;
} | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
cmpl $0x1f, -0x14(%rbp)
jbe 0xa5316
movl $0x0, -0x4(%rbp)
jmp 0xa533b
movl -0x14(%rbp), %eax
movl %eax, %ecx
leaq 0xa7a7e(%rip), %rax # 0x14cda0
movl (%rax,%rcx,4), %eax
movl %eax,... | /sidneyp[P]capstone-tricore/arch/AArch64/AArch64Disassembler.c |
DecodeGPR32RegisterClass | static DecodeStatus DecodeGPR32RegisterClass(MCInst *Inst, unsigned RegNo,
uint64_t Addr,
void *Decoder)
{
unsigned Register;
if (RegNo > 31)
return Fail;
Register = GPR32DecoderTable[RegNo];
MCOperand_CreateReg0(Inst, Register);
return Success;
} | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
cmpl $0x1f, -0x14(%rbp)
jbe 0xa54f6
movl $0x0, -0x4(%rbp)
jmp 0xa551b
movl -0x14(%rbp), %eax
movl %eax, %ecx
leaq 0xa759e(%rip), %rax # 0x14caa0
movl (%rax,%rcx,4), %eax
movl %eax,... | /sidneyp[P]capstone-tricore/arch/AArch64/AArch64Disassembler.c |
DecodeFPR8RegisterClass | static DecodeStatus DecodeFPR8RegisterClass(MCInst *Inst, unsigned RegNo,
uint64_t Addr,
void *Decoder)
{
unsigned Register;
if (RegNo > 31)
return Fail;
Register = FPR8DecoderTable[RegNo];
MCOperand_CreateReg0(Inst, Register);
return Success;
} | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
cmpl $0x1f, -0x14(%rbp)
jbe 0xa55b6
movl $0x0, -0x4(%rbp)
jmp 0xa55db
movl -0x14(%rbp), %eax
movl %eax, %ecx
leaq 0xa7a5e(%rip), %rax # 0x14d020
movl (%rax,%rcx,4), %eax
movl %eax,... | /sidneyp[P]capstone-tricore/arch/AArch64/AArch64Disassembler.c |
DecodeBaseAddSubImm | static DecodeStatus DecodeBaseAddSubImm(MCInst *Inst, uint32_t insn,
uint64_t Addr, void *Decoder)
{
unsigned Rd = fieldFromInstruction(insn, 0, 5);
unsigned Rn = fieldFromInstruction(insn, 5, 5);
unsigned Imm = fieldFromInstruction(insn, 10, 14);
unsigned S = fieldFromInstruction(insn, 29, 1);
unsigned Datasize... | pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl -0x14(%rbp), %edi
xorl %esi, %esi
movl $0x5, %edx
callq 0x91c90
movl %eax, -0x2c(%rbp)
movl -0x14(%rbp), %edi
movl $0x5, %edx
movl %edx, %esi
callq 0x91c90
movl %eax, -0x30(%rbp)
... | /sidneyp[P]capstone-tricore/arch/AArch64/AArch64Disassembler.c |
DecodeUnconditionalBranch | static DecodeStatus DecodeUnconditionalBranch(MCInst *Inst, uint32_t insn,
uint64_t Addr,
void *Decoder)
{
int32_t imm = fieldFromInstruction(insn, 0, 26);
// Sign-extend the 26-bit immediate.
if (imm & (1 << (26 - 1)))
imm |= ~((1LL << 26) - 1);
// if (!Dis->tryAddingSymbolicOperand(Inst, imm << 2, Addr, t... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl -0xc(%rbp), %edi
xorl %esi, %esi
movl $0x1a, %edx
callq 0x91c90
movl %eax, -0x24(%rbp)
movl -0x24(%rbp), %eax
andl $0x2000000, %eax # imm = 0x2000000
cmpl $0x0, %eax
je 0xa60... | /sidneyp[P]capstone-tricore/arch/AArch64/AArch64Disassembler.c |
DecodeMSRSystemRegister | static DecodeStatus DecodeMSRSystemRegister(MCInst *Inst, unsigned Imm,
uint64_t Address,
void *Decoder)
{
bool ValidNamed;
char result[128];
Imm |= 0x8000;
MCOperand_CreateImm0(Inst, Imm);
A64SysRegMapper_toString(&AArch64_MSRMapper, Imm, &ValidNamed, result);
return ValidNamed ? Success : Fail;
} | pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl -0xc(%rbp), %eax
orl $0x8000, %eax # imm = 0x8000
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %eax
movl %eax, %esi
callq 0x44fe0
movl -0xc(%rbp), %esi
lea... | /sidneyp[P]capstone-tricore/arch/AArch64/AArch64Disassembler.c |
DecodeSignedLdStInstruction | static DecodeStatus DecodeSignedLdStInstruction(MCInst *Inst,
uint32_t insn, uint64_t Addr,
void *Decoder)
{
bool IsLoad;
bool IsIndexed;
bool IsFP;
unsigned Rt = fieldFromInstruction(insn, 0, 5);
unsigned Rn = fieldFromInstruction(insn, 5, 5);
int32_t offset = fieldFromInstruction(insn, 12, 9);
// offset i... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl -0x14(%rbp), %edi
xorl %esi, %esi
movl $0x5, %edx
callq 0x91c90
movl %eax, -0x30(%rbp)
movl -0x14(%rbp), %edi
movl $0x5, %edx
movl %edx, %esi
callq 0x91c90
movl %eax, -0x34(%rbp)
... | /sidneyp[P]capstone-tricore/arch/AArch64/AArch64Disassembler.c |
DecodeFMOVLaneInstruction | static DecodeStatus DecodeFMOVLaneInstruction(MCInst *Inst, unsigned Insn,
uint64_t Address,
void *Decoder)
{
// This decoder exists to add the dummy Lane operand to the MCInst, which must
// be 1 in assembly but has no other real manifestation.
unsigned Rd = fieldFromInstruction(Insn, 0, 5);
unsigned Rn = fiel... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl -0xc(%rbp), %edi
xorl %esi, %esi
movl $0x5, %edx
callq 0x91c90
movl %eax, -0x24(%rbp)
movl -0xc(%rbp), %edi
movl $0x5, %edx
movl %edx, %esi
callq 0x91c90
movl %eax, -0x28(%rbp)
movl... | /sidneyp[P]capstone-tricore/arch/AArch64/AArch64Disassembler.c |
countLeadingZeros | static inline unsigned int countLeadingZeros(int x)
{
unsigned count = 0;
int i;
const unsigned bits = sizeof(x) * 8;
for (i = bits; --i; ) {
if (x < 0) break;
count++;
x <<= 1;
}
return count;
} | pushq %rbp
movq %rsp, %rbp
movl %edi, -0x4(%rbp)
movl $0x0, -0x8(%rbp)
movl $0x20, -0x10(%rbp)
movl $0x20, -0xc(%rbp)
movl -0xc(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0xc(%rbp)
cmpl $0x0, %eax
je 0xa7165
cmpl $0x0, -0x4(%rbp)
jge 0xa7152
jmp 0xa7165
movl -0x8(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x8(%rbp)
movl -0x... | /sidneyp[P]capstone-tricore/arch/AArch64/../../MathExtras.h |
getWRegFromXReg | inline static unsigned getWRegFromXReg(unsigned Reg)
{
switch (Reg) {
case ARM64_REG_X0: return ARM64_REG_W0;
case ARM64_REG_X1: return ARM64_REG_W1;
case ARM64_REG_X2: return ARM64_REG_W2;
case ARM64_REG_X3: return ARM64_REG_W3;
case ARM64_REG_X4: return ARM64_REG_W4;
case ARM64_REG_X5: return ARM64_REG_W... | pushq %rbp
movq %rsp, %rbp
movl %edi, -0x8(%rbp)
movl -0x8(%rbp), %eax
decl %eax
movl %eax, %ecx
movq %rcx, -0x10(%rbp)
subl $0xe2, %eax
ja 0xa96c3
movq -0x10(%rbp), %rax
leaq 0xa4058(%rip), %rcx # 0x14d5b0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0xa8, -0x4(%rbp)
jmp 0xa96c9
movl $0xa9, -0x4(%rb... | /sidneyp[P]capstone-tricore/arch/AArch64/AArch64BaseInfo.h |
printAlignedLabel | static void printAlignedLabel(MCInst *MI, unsigned OpNum, SStream *O)
{
MCOperand *Op = MCInst_getOperand(MI, OpNum);
// If the label has already been resolved to an immediate offset (say, when
// we're running the disassembler), just print the immediate.
if (MCOperand_isImm(Op)) {
uint64_t imm = (MCOperand_getI... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x44d20
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0x44e10
testb $0x1, %al
jne 0xcabb5
jmp 0xcac8d
movq -0x20(%rbp), %rdi
callq 0x44e90
shlq $0x2, %ra... | /sidneyp[P]capstone-tricore/arch/AArch64/AArch64InstPrinter.c |
printBarrierOption | static void printBarrierOption(MCInst *MI, unsigned OpNo, SStream *O)
{
unsigned Val = (unsigned)MCOperand_getImm(MCInst_getOperand(MI, OpNo));
unsigned Opcode = MCInst_getOpcode(MI);
bool Valid;
char *Name;
if (Opcode == AArch64_ISB)
Name = A64NamedImmMapper_toString(&A64ISB_ISBMapper, Val, &Valid);
else
Na... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x44d20
movq %rax, %rdi
callq 0x44e90
movl %eax, -0x1c(%rbp)
movq -0x8(%rbp), %rdi
callq 0x44cf0
movl %eax, -0x20(%rbp)
cmpl $0x2d8, -0x20(%rbp) # imm = 0x... | /sidneyp[P]capstone-tricore/arch/AArch64/AArch64InstPrinter.c |
set_mem_access | static void set_mem_access(MCInst *MI, bool status)
{
if (MI->csh->detail != CS_OPT_ON)
return;
MI->csh->doing_mem = status;
if (status) {
MI->flat_insn->detail->arm64.operands[MI->flat_insn->detail->arm64.op_count].type = ARM64_OP_MEM;
MI->flat_insn->detail->arm64.operands[MI->flat_insn->detail->arm64.op_co... | pushq %rbp
movq %rsp, %rbp
movb %sil, %al
movq %rdi, -0x8(%rbp)
andb $0x1, %al
movb %al, -0x9(%rbp)
movq -0x8(%rbp), %rax
movq 0x320(%rax), %rax
cmpl $0x3, 0x68(%rax)
je 0xcb236
jmp 0xcb369
movb -0x9(%rbp), %cl
movq -0x8(%rbp), %rax
movq 0x320(%rax), %rax
andb $0x1, %cl
movb %cl, 0x70(%rax)
testb $0x1, -0x9(%rbp)
je 0x... | /sidneyp[P]capstone-tricore/arch/AArch64/AArch64InstPrinter.c |
printSystemPStateField | static void printSystemPStateField(MCInst *MI, unsigned OpNo, SStream *O)
{
unsigned Val = (unsigned)MCOperand_getImm(MCInst_getOperand(MI, OpNo));
bool Valid;
char *Name;
Name = A64NamedImmMapper_toString(&A64PState_PStateMapper, Val, &Valid);
if (Valid) {
SStream_concat0(O, Name);
if (MI->csh->detail) {
... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x44d20
movq %rax, %rdi
callq 0x44e90
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %esi
leaq 0x2349ac(%rip), %rdi # 0x2fff40
leaq -0x1d(%rbp), %rdx
callq 0x135f... | /sidneyp[P]capstone-tricore/arch/AArch64/AArch64InstPrinter.c |
printAdrpLabel | static void printAdrpLabel(MCInst *MI, unsigned OpNum, SStream *O)
{
MCOperand *Op = MCInst_getOperand(MI, OpNum);
if (MCOperand_isImm(Op)) {
// ADRP sign extends a 21-bit offset, shifts it left by 12
// and adds it to the value of the PC with its bottom 12 bits cleared
uint64_t imm = (MCOperand_getImm(Op) << ... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x44d20
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0x44e10
testb $0x1, %al
jne 0xcb955
jmp 0xcba5f
movq -0x20(%rbp), %rdi
callq 0x44e90
shlq $0xc, %ra... | /sidneyp[P]capstone-tricore/arch/AArch64/AArch64InstPrinter.c |
printFPImmOperand | static void printFPImmOperand(MCInst *MI, unsigned OpNum, SStream *O)
{
MCOperand *MO = MCInst_getOperand(MI, OpNum);
double FPImm = MCOperand_isFPImm(MO) ? MCOperand_getFPImm(MO) : AArch64_AM_getFPImmFloat((int)MCOperand_getImm(MO));
// 8 decimal places are enough to perfectly represent permitted floats.
SStream_... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x44d20
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0x44e30
testb $0x1, %al
jne 0xcbc42
jmp 0xcbc52
movq -0x20(%rbp), %rdi
callq 0x44ed0
movsd %xmm0, -... | /sidneyp[P]capstone-tricore/arch/AArch64/AArch64InstPrinter.c |
printMRSSystemRegister | static void printMRSSystemRegister(MCInst *MI, unsigned OpNo, SStream *O)
{
unsigned Val = (unsigned)MCOperand_getImm(MCInst_getOperand(MI, OpNo));
bool Valid;
char Name[128];
A64SysRegMapper_toString(&AArch64_MRSMapper, Val, &Valid, Name);
if (Valid) {
SStream_concat0(O, Name);
if (MI->csh->detail) {
MI-... | pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x44d20
movq %rax, %rdi
callq 0x44e90
movl %eax, -0x1c(%rbp)
movl -0x1c(%rbp), %esi
leaq -0xa0(%rbp), %rcx
leaq 0x234682(%rip), %rdi # 0x300520
leaq -0x1d(%... | /sidneyp[P]capstone-tricore/arch/AArch64/AArch64InstPrinter.c |
printU16ImmOperand | static void printU16ImmOperand(MCInst *MI, int OpNum, SStream *O)
{
uint16_t Value = (uint16_t)MCOperand_getImm(MCInst_getOperand(MI, OpNum));
// assert(isUInt<16>(Value) && "Invalid u16imm argument");
if (Value > HEX_THRESHOLD)
SStream_concat(O, "0x%x", Value);
else
SStream_concat(O, "%u", Value);
if (MI->c... | pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
callq 0x44d20
movq %rax, %rdi
callq 0x44e90
movw %ax, -0x1a(%rbp)
movzwl -0x1a(%rbp), %eax
cmpl $0x9, %eax
jle 0x12f9fc
movq -0x18(%rbp), %rdi
movzwl -0x1a(%rbp), %e... | /sidneyp[P]capstone-tricore/arch/SystemZ/SystemZInstPrinter.c |
Decode2RSrcDstInstruction | static DecodeStatus Decode2RSrcDstInstruction(MCInst *Inst, unsigned Insn, uint64_t Address,
void *Decoder)
{
unsigned Op1, Op2;
DecodeStatus S = Decode2OpInstruction(Insn, &Op1, &Op2);
if (S != MCDisassembler_Success)
return Decode2OpInstructionFail(Inst, Insn, Address, Decoder);
DecodeGRRegsRegisterClass(Ins... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl -0x14(%rbp), %edi
leaq -0x2c(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0x132eb0
movl %eax, -0x34(%rbp)
cmpl $0x3, -0x34(%rbp)
je 0x132379
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %... | /sidneyp[P]capstone-tricore/arch/XCore/XCoreDisassembler.c |
DecodeRUSSrcDstBitpInstruction | static DecodeStatus DecodeRUSSrcDstBitpInstruction(MCInst *Inst, unsigned Insn, uint64_t Address,
void *Decoder)
{
unsigned Op1, Op2;
DecodeStatus S = Decode2OpInstruction(Insn, &Op1, &Op2);
if (S != MCDisassembler_Success)
return Decode2OpInstructionFail(Inst, Insn, Address, Decoder);
DecodeGRRegsRegisterClas... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl -0x14(%rbp), %edi
leaq -0x2c(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0x132eb0
movl %eax, -0x34(%rbp)
cmpl $0x3, -0x34(%rbp)
je 0x132419
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %... | /sidneyp[P]capstone-tricore/arch/XCore/XCoreDisassembler.c |
DecodeRUSInstruction | static DecodeStatus DecodeRUSInstruction(MCInst *Inst, unsigned Insn, uint64_t Address,
void *Decoder)
{
unsigned Op1, Op2;
DecodeStatus S = Decode2OpInstruction(Insn, &Op1, &Op2);
if (S != MCDisassembler_Success)
return Decode2OpInstructionFail(Inst, Insn, Address, Decoder);
DecodeGRRegsRegisterClass(Inst, Op... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl -0x14(%rbp), %edi
leaq -0x2c(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0x132eb0
movl %eax, -0x34(%rbp)
cmpl $0x3, -0x34(%rbp)
je 0x1324b9
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %... | /sidneyp[P]capstone-tricore/arch/XCore/XCoreDisassembler.c |
DecodeRRegsRegisterClass | static DecodeStatus DecodeRRegsRegisterClass(MCInst *Inst, unsigned RegNo,
uint64_t Address, void *Decoder)
{
unsigned Reg;
if (RegNo > 15)
return MCDisassembler_Fail;
Reg = getReg(Decoder, XCore_RRegsRegClassID, RegNo);
MCOperand_CreateReg0(Inst, Reg);
return MCDisassembler_Success;
} | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
cmpl $0xf, -0x14(%rbp)
jbe 0x132516
movl $0x0, -0x4(%rbp)
jmp 0x13253a
movq -0x28(%rbp), %rdi
movl -0x14(%rbp), %edx
xorl %esi, %esi
callq 0x132e70
movl %eax, -0x2c(%rbp)
movq -0x10(%r... | /sidneyp[P]capstone-tricore/arch/XCore/XCoreDisassembler.c |
DecodeRUSBitpInstruction | static DecodeStatus DecodeRUSBitpInstruction(MCInst *Inst, unsigned Insn, uint64_t Address,
void *Decoder)
{
unsigned Op1, Op2;
DecodeStatus S = Decode2OpInstruction(Insn, &Op1, &Op2);
if (S != MCDisassembler_Success)
return Decode2OpInstructionFail(Inst, Insn, Address, Decoder);
DecodeGRRegsRegisterClass(Inst... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl -0x14(%rbp), %edi
leaq -0x2c(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0x132eb0
movl %eax, -0x34(%rbp)
cmpl $0x3, -0x34(%rbp)
je 0x1325d9
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %... | /sidneyp[P]capstone-tricore/arch/XCore/XCoreDisassembler.c |
Decode2RUSBitpInstruction | static DecodeStatus Decode2RUSBitpInstruction(MCInst *Inst, unsigned Insn, uint64_t Address,
void *Decoder)
{
unsigned Op1, Op2, Op3;
DecodeStatus S = Decode3OpInstruction(Insn, &Op1, &Op2, &Op3);
if (S == MCDisassembler_Success) {
DecodeGRRegsRegisterClass(Inst, Op1, Address, Decoder);
DecodeGRRegsRegisterCla... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl -0xc(%rbp), %edi
leaq -0x24(%rbp), %rsi
leaq -0x28(%rbp), %rdx
leaq -0x2c(%rbp), %rcx
callq 0x133390
movl %eax, -0x30(%rbp)
cmpl $0x3, -0x30(%rbp)
jne 0x132680
movq -0x8(%rbp), %rdi... | /sidneyp[P]capstone-tricore/arch/XCore/XCoreDisassembler.c |
Decode3RImmInstruction | static DecodeStatus Decode3RImmInstruction(MCInst *Inst, unsigned Insn, uint64_t Address,
void *Decoder)
{
unsigned Op1, Op2, Op3;
DecodeStatus S = Decode3OpInstruction(Insn, &Op1, &Op2, &Op3);
if (S == MCDisassembler_Success) {
MCOperand_CreateImm0(Inst, Op1);
DecodeGRRegsRegisterClass(Inst, Op2, Address, Dec... | pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl -0xc(%rbp), %edi
leaq -0x24(%rbp), %rsi
leaq -0x28(%rbp), %rdx
leaq -0x2c(%rbp), %rcx
callq 0x133390
movl %eax, -0x30(%rbp)
cmpl $0x3, -0x30(%rbp)
jne 0x1326fa
movq -0x8(%rbp), %rdi... | /sidneyp[P]capstone-tricore/arch/XCore/XCoreDisassembler.c |
DecodeL2RInstruction | static DecodeStatus DecodeL2RInstruction(MCInst *Inst, unsigned Insn, uint64_t Address,
void *Decoder)
{
unsigned Op1, Op2;
DecodeStatus S = Decode2OpInstruction(fieldFromInstruction_4(Insn, 0, 16), &Op1, &Op2);
if (S != MCDisassembler_Success)
return DecodeL2OpInstructionFail(Inst, Insn, Address, Decoder);
De... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movl -0x14(%rbp), %edi
xorl %esi, %esi
movl $0x10, %edx
callq 0x133340
movl %eax, %edi
leaq -0x2c(%rbp), %rsi
leaq -0x30(%rbp), %rdx
callq 0x132eb0
movl %eax, -0x34(%rbp)
cmpl $0x3, -0... | /sidneyp[P]capstone-tricore/arch/XCore/XCoreDisassembler.c |
DecodeL4RSrcDstInstruction | static DecodeStatus DecodeL4RSrcDstInstruction(MCInst *Inst, unsigned Insn, uint64_t Address,
void *Decoder)
{
unsigned Op1, Op2, Op3;
unsigned Op4 = fieldFromInstruction_4(Insn, 16, 4);
DecodeStatus S =
Decode3OpInstruction(fieldFromInstruction_4(Insn, 0, 16), &Op1, &Op2, &Op3);
if (S == MCDisassembler_Success... | pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl -0xc(%rbp), %edi
movl $0x10, %esi
movl $0x4, %edx
callq 0x133340
movl %eax, -0x30(%rbp)
movl -0xc(%rbp), %edi
xorl %esi, %esi
movl $0x10, %edx
callq 0x133340
movl %eax, %edi
leaq -0... | /sidneyp[P]capstone-tricore/arch/XCore/XCoreDisassembler.c |
LinkedListPool<depspawn::internal::arg_info, true, false>::allocate() | void allocate() {
char * baseptr = PoolAllocator_malloc_free<SCALABLE>::malloc(chunkSize_ * minTSize_);
char * const endptr = baseptr + minTSize_ * (chunkSize_ - 1);
T * const h = reinterpret_cast<T *>(baseptr);
T * const q = reinterpret_cast<T *>(endptr);
T * p = h;
do {
baseptr += minTS... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x18(%rdi), %ebp
movslq 0x1c(%rdi), %r15
movl %r15d, %eax
imull %ebp, %eax
movslq %eax, %rdi
callq 0x9240
decl %ebp
imull %r15d, %ebp
movslq %ebp, %r14
addq %rax, %r14
movq %rax, (%rsp)
xorps %xmm0, %xmm0
leaq (%rax,%r15), %rcx
movups %xmm0, 0x... | /fraguela[P]depspawn/include/depspawn/LinkedListPool.h |
depspawn::internal::Workitem::Clean_worklist(depspawn::internal::Workitem*) | void Workitem::Clean_worklist(Workitem *worklist_wait_hint)
{ static std::vector<Workitem *> Dones;
static std::vector< std::pair<Workitem *, Workitem *> > Deletable_Sublists;
DEPSPAWN_PROFILEDEFINITION(const auto t0 = std::chrono::high_resolution_clock::now());
//DEPSPAWN_PROFILEDEFINITION(unsig... | pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movb 0x8129(%rip), %al # 0x142e8
testb %al, %al
je 0xc3bc
movb 0x813b(%rip), %al # 0x14308
testb %al, %al
je 0xc3c6
movq 0x80e4(%rip), %r14 # 0x142c0
movq 0x18(%r14), %rax
movq %rax, 0x8(%rsp)
testq %rax,... | /fraguela[P]depspawn/src/workitem.cpp |
LinkedListPool<depspawn::internal::arg_info, true, false>::LinkedListPool(int, unsigned long) | LinkedListPool(const int chunkSize = 1, const size_t min_t_size = sizeof(T)) :
chunkSize_{(chunkSize < 1) ? 1 : chunkSize},
minTSize_{static_cast<int>((sizeof(T) > min_t_size) ? sizeof(T) : min_t_size)},
head_{nullptr}
{
allocate();
} | pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
cmpl $0x2, %esi
movl $0x1, %ecx
cmovgel %esi, %ecx
cmpq $0x29, %rdx
movl $0x28, %esi
cmovaeq %rdx, %rsi
movl %ecx, 0x18(%rdi)
movl %esi, 0x1c(%rdi)
movq %rax, 0x20(%rdi)
movb $0x0, 0x28(%rdi)
c... | /fraguela[P]depspawn/include/depspawn/LinkedListPool.h |
LinkedListPool<depspawn::internal::arg_info, true, false>::~LinkedListPool() | ~LinkedListPool()
{
typename vector_t::const_iterator const itend = v_.end();
for(typename vector_t::const_iterator it = v_.begin(); it != itend; ++it)
PoolAllocator_malloc_free<SCALABLE>::free(reinterpret_cast<char*>(*it));
} | pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %r14
movq 0x8(%rdi), %r15
cmpq %r15, %r14
je 0xc4b8
movq (%r14), %rdi
callq 0x91f0
addq $0x8, %r14
jmp 0xc4a5
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xc4ca
popq %rbx
popq %r14
popq %r15
jmp 0x9190
popq %rbx
popq %r14
popq %r15
retq
| /fraguela[P]depspawn/include/depspawn/LinkedListPool.h |
LinkedListPool<depspawn::internal::Workitem, true, false>::LinkedListPool(int, unsigned long) | LinkedListPool(const int chunkSize = 1, const size_t min_t_size = sizeof(T)) :
chunkSize_{(chunkSize < 1) ? 1 : chunkSize},
minTSize_{static_cast<int>((sizeof(T) > min_t_size) ? sizeof(T) : min_t_size)},
head_{nullptr}
{
allocate();
} | pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
xorl %eax, %eax
movq %rax, 0x10(%rdi)
cmpl $0x2, %esi
movl $0x1, %ecx
cmovgel %esi, %ecx
cmpq $0x49, %rdx
movl $0x48, %esi
cmovaeq %rdx, %rsi
movl %ecx, 0x18(%rdi)
movl %esi, 0x1c(%rdi)
movq %rax, 0x20(%rdi)
movb $0x0, 0x28(%rdi)
c... | /fraguela[P]depspawn/include/depspawn/LinkedListPool.h |
LinkedListPool<depspawn::internal::Workitem, true, false>::~LinkedListPool() | ~LinkedListPool()
{
typename vector_t::const_iterator const itend = v_.end();
for(typename vector_t::const_iterator it = v_.begin(); it != itend; ++it)
PoolAllocator_malloc_free<SCALABLE>::free(reinterpret_cast<char*>(*it));
} | pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %r14
movq 0x8(%rdi), %r15
cmpq %r15, %r14
je 0xc550
movq (%r14), %rdi
callq 0x91f0
addq $0x8, %r14
jmp 0xc53d
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xc562
popq %rbx
popq %r14
popq %r15
jmp 0x9190
popq %rbx
popq %r14
popq %r15
retq
| /fraguela[P]depspawn/include/depspawn/LinkedListPool.h |
LinkedListPool<depspawn::internal::Workitem::_dep, true, false>::~LinkedListPool() | ~LinkedListPool()
{
typename vector_t::const_iterator const itend = v_.end();
for(typename vector_t::const_iterator it = v_.begin(); it != itend; ++it)
PoolAllocator_malloc_free<SCALABLE>::free(reinterpret_cast<char*>(*it));
} | pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %r14
movq 0x8(%rdi), %r15
cmpq %r15, %r14
je 0xc5e8
movq (%r14), %rdi
callq 0x91f0
addq $0x8, %r14
jmp 0xc5d5
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xc5fa
popq %rbx
popq %r14
popq %r15
jmp 0x9190
popq %rbx
popq %r14
popq %r15
retq
| /fraguela[P]depspawn/include/depspawn/LinkedListPool.h |
depspawn::internal::TaskPool::~TaskPool() | ~TaskPool()
{
wait(false);
} | pushq %rbx
movq %rdi, %rbx
movq %rbx, %rdi
callq 0xc670
testb %al, %al
jne 0xc6dc
movl 0x20c(%rbx), %eax
testl %eax, %eax
jne 0xc6dc
movb $0x1, 0x208(%rbx)
cmpb $0x0, 0x98(%rbx)
jne 0xc6f9
cmpl $0x0, 0x94(%rbx)
jne 0xc6f9
movq 0x220(%rbx), %rax
testq %rax, %rax
je 0xc728
leaq 0x210(%rbx), %rdi
movq %rdi, %rsi
movl $0x3... | /fraguela[P]depspawn/include/depspawn/TaskPool.h |
depspawn::internal::ThreadPool::launch_theads() | void launch_theads()
{
if (nthreads_in_use_) {
wait();
{
std::lock_guard<std::mutex> my_guard_lock(mutex_);
ready_ = true;
}
cond_var_.notify_all();
}
} | pushq %r14
pushq %rbx
pushq %rax
cmpl $0x0, 0x90(%rdi)
je 0xc80c
movq %rdi, %rbx
cmpb $0x0, 0x98(%rbx)
jne 0xc7c8
cmpl $0x0, 0x94(%rbx)
jne 0xc7c8
leaq 0x18(%rbx), %r14
movq %r14, %rdi
callq 0x9290
testl %eax, %eax
jne 0xc814
movb $0x1, 0x98(%rbx)
movq %r14, %rdi
callq 0x9150
addq $0x40, %rbx
movq %rbx, %rdi
addq $0x8,... | /fraguela[P]depspawn/include/depspawn/ThreadPool.h |
LinkedListPool<depspawn::internal::TaskPool::Task, false, false>::free(depspawn::internal::TaskPool::Task*) | void free(T* const datain) noexcept(ALLOC_ONCE)
{
if (!ALLOC_ONCE) {
datain->~T();
}
datain->next = head_.load(std::memory_order_relaxed);
while(!head_.compare_exchange_weak(datain->next, next_ptr(datain, datain->next)));
} | pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rsi), %rax
testq %rax, %rax
je 0xc83c
movq %rbx, %rdi
movq %rbx, %rsi
movl $0x3, %edx
callq *%rax
movabsq $-0x1000000000000, %rcx # imm = 0xFFFF000000000000
movabsq $0x1000000000000, %rdx # imm = 0x1000000000000
movq 0x20(%r14), %rax
movq %rax... | /fraguela[P]depspawn/include/depspawn/LinkedListPool.h |
depspawn::internal::ThreadPool::~ThreadPool() | ~ThreadPool()
{
wait();
finish_ = true;
launch_theads();
for (auto& thread : threads_) {
thread.join();
}
} | pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpb $0x0, 0x98(%rbx)
jne 0xc920
cmpl $0x0, 0x94(%rbx)
jne 0xc920
movb $0x1, 0x99(%rbx)
movq %rbx, %rdi
callq 0xc7b8
movq (%rbx), %r14
movq 0x8(%rbx), %r15
cmpq %r15, %r14
je 0xc95b
movq %r14, %rdi
callq 0x9300
addq $0x8, %r14
jmp 0xc948
movq 0x80(%rbx), %rax
testq %rax,... | /fraguela[P]depspawn/include/depspawn/ThreadPool.h |
depspawn::internal::TaskPool::main() | void main()
{
while (!finish_) {
empty_queue();
busy_threads_.fetch_sub(1);
while(!finish_ && empty()) {
if (idle_func_) {
idle_func_();
}
}
busy_threads_.fetch_add(1);
}
busy_threads_.fetch_sub(1);
} | pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpb $0x0, 0x208(%rdi)
jne 0xce01
leaq 0x210(%rbx), %r14
movq %rbx, %rdi
callq 0xc670
testb %al, %al
jne 0xcd95
lock
decl 0x20c(%rbx)
cmpb $0x0, 0x208(%rbx)
jne 0xcdf0
movl 0x140(%rbx), %eax
movl 0x180(%rbx), %ecx
cmpw %cx, %ax
jne 0xcdf0
movl 0xa8(%rbx), %eax
movl 0xe8(... | /fraguela[P]depspawn/include/depspawn/TaskPool.h |
boost::lockfree::detail::fixed_size_freelist<boost::lockfree::queue<depspawn::internal::TaskPool::Task*, boost::lockfree::fixed_sized<true>>::node, boost::lockfree::detail::runtime_sized_freelist_storage<boost::lockfree::queue<depspawn::internal::TaskPool::Task*, boost::lockfree::fixed_sized<true>>::node, std::allocato... | fixed_size_freelist (Allocator const & alloc, std::size_t count):
NodeStorage(alloc, count),
pool_(tagged_index(static_cast<index_t>(count), 0))
{
initialize();
} | pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rdi, %rbx
callq 0xd3ec
movzwl %r14w, %eax
movl %eax, 0x10(%rbx)
movq %rbx, %rdi
callq 0xd440
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
movq (%rbx), %rax
movq -0x8(%rax), %rdi
callq 0x9190
movq %r14, %rdi
callq 0x9330
nop
| /fraguela[P]depspawn/include/boost/lockfree/detail/freelist.hpp |
void boost::throw_exception<std::runtime_error>(std::runtime_error const&) | BOOST_NORETURN inline void throw_exception( E const & e )
{
//All boost exceptions are required to derive from std::exception,
//to ensure compatibility with BOOST_NO_EXCEPTIONS.
throw_exception_assert_compatibility(e);
#ifndef BOOST_EXCEPTION_DISABLE
throw exception_detail::enable_both( e );
#else
... | pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x40, %edi
callq 0x90c0
movq %rax, %rbx
movq %rax, %rdi
movq %r14, %rsi
callq 0xd509
leaq 0x65fd(%rip), %rsi # 0x13aa8
leaq 0x15a(%rip), %rdx # 0xd60c
movq %rbx, %rdi
callq 0x9310
movq %rax, %r14
movq %rbx, %rdi
callq 0x9140
movq %r14, %rdi
callq 0x9330
... | /fraguela[P]depspawn/include/boost/throw_exception.hpp |
bool boost::lockfree::queue<depspawn::internal::TaskPool::Task*, boost::lockfree::fixed_sized<true>>::do_push<true>(depspawn::internal::TaskPool::Task* const&) | bool do_push(T const & t)
{
node * n = pool.template construct<true, Bounded>(t, pool.null_handle());
handle_type node_handle = pool.get_handle(n);
if (n == NULL)
return false;
for (;;) {
tagged_node_handle tail = tail_.load(memory_order_acquire);
... | pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
addq $0x80, %rdi
movzwl 0x88(%rbx), %eax
leaq 0xe(%rsp), %rdx
movw %ax, (%rdx)
callq 0xdf24
movq %rax, %rcx
testq %rax, %rax
je 0xdf18
movl 0x80(%rbx), %eax
movl %ecx, %edx
subl %eax, %edx
shrl $0x6, %edx
movzwl %dx, %esi
movl $0xffff, %edi # imm = 0xFFFF
xorl %r8d,... | /fraguela[P]depspawn/include/boost/lockfree/queue.hpp |
boost::lockfree::queue<depspawn::internal::TaskPool::Task*, boost::lockfree::fixed_sized<true>>::node* boost::lockfree::detail::fixed_size_freelist<boost::lockfree::queue<depspawn::internal::TaskPool::Task*, boost::lockfree::fixed_sized<true>>::node, boost::lockfree::detail::runtime_sized_freelist_storage<boost::lockfr... | T * construct (ArgumentType1 const & arg1, ArgumentType2 const & arg2)
{
index_t node_index = allocate<ThreadSafe>();
if (node_index == null_handle())
return NULL;
T * node = NodeStorage::nodes() + node_index;
new(node) T(arg1, arg2);
return node;
} | pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
callq 0xdbac
cmpw 0x8(%r15), %ax
jne 0xdf42
xorl %eax, %eax
jmp 0xdf72
movq (%r15), %rcx
movzwl %ax, %edx
shll $0x6, %edx
leaq (%rcx,%rdx), %rax
movzwl (%r14), %esi
movl %esi, (%rcx,%rdx)
movq (%rbx), %rdi
movq %rdi, 0x8(%rcx,%rdx)
movl (%... | /fraguela[P]depspawn/include/boost/lockfree/detail/freelist.hpp |
LinkedListPool<depspawn::internal::Workitem::_dep, true, false>::allocate() | void allocate() {
char * baseptr = PoolAllocator_malloc_free<SCALABLE>::malloc(chunkSize_ * minTSize_);
char * const endptr = baseptr + minTSize_ * (chunkSize_ - 1);
T * const h = reinterpret_cast<T *>(baseptr);
T * const q = reinterpret_cast<T *>(endptr);
T * p = h;
do {
baseptr += minTS... | pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x18(%rdi), %ebp
movslq 0x1c(%rdi), %r15
movl %r15d, %eax
imull %ebp, %eax
movslq %eax, %rdi
callq 0x9240
decl %ebp
imull %r15d, %ebp
movslq %ebp, %r14
addq %rax, %r14
movq %rax, (%rsp)
xorps %xmm0, %xmm0
leaq (%rax,%r15), %rcx
movups %xmm0, (%... | /fraguela[P]depspawn/include/depspawn/LinkedListPool.h |
LinkedListPool<depspawn::internal::Workitem::_dep, true, false>::intl_malloc() | T* intl_malloc()
{
T* ret = head_.load(std::memory_order_relaxed);
do {
while(clean_ptr(ret) == nullptr) {
allocate();
ret = head_.load(std::memory_order_relaxed);
}
} while(!head_.compare_exchange_weak(ret, next_ptr(clean_ptr(static_cast<T *>(clean_ptr(ret)->next)), ret)));
... | pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movabsq $0xffffffffffff, %r14 # imm = 0xFFFFFFFFFFFF
movq 0x20(%rdi), %rcx
movabsq $-0x1000000000000, %r15 # imm = 0xFFFF000000000000
movq %rcx, %rax
andq %r14, %rax
jne 0xe56e
movq %rbx, %rdi
callq 0xdf78
movq 0x20(%rbx), %rcx
jmp 0xe558
movq 0x8(%rax), %rax
andq %r14... | /fraguela[P]depspawn/include/depspawn/LinkedListPool.h |
main | int main(int argc, char **argv) {
if(argc < 2) {
std::cout << "Usage: katon <filepath>" << std::endl;
return 0;
}
char* filename = argv[1];
try {
Parser parser(filename);
ptr<ObjectExpression> moduleExpression = parser.parse();
ptr<Object> module = moduleExpress... | pushq %rbp
movq %rsp, %rbp
subq $0x150, %rsp # imm = 0x150
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
cmpl $0x2, -0x8(%rbp)
jge 0xa98d
movq 0x8b66a(%rip), %rdi # 0x95fd0
leaq 0x53697(%rip), %rsi # 0x5e004
callq 0xa2a0
movq %rax, %rdi
movq 0x8b624(%rip), %rsi # 0x95fa0
call... | /rfejzic1[P]katon/main.cpp |
Klex::initLexToTokenTable() | void Klex::initLexToTokenTable() {
lexToTokenTable["("] = TokenType::LeftParen;
lexToTokenTable[")"] = TokenType::RightParen;
lexToTokenTable["["] = TokenType::LeftBrack;
lexToTokenTable["]"] = TokenType::RightBrack;
lexToTokenTable["{"] = TokenType::LeftCurly;
lexToTokenTable["}"] = TokenType::... | pushq %rbp
movq %rsp, %rbp
subq $0xfa0, %rsp # imm = 0xFA0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x9e0(%rbp)
addq $0x8, %rax
movq %rax, -0x9d8(%rbp)
leaq -0x29(%rbp), %rdi
movq %rdi, -0x9d0(%rbp)
callq 0xa500
movq -0x9d0(%rbp), %rdx
leaq 0x52cee(%rip), %rsi # 0x5e081
leaq -0x28(%rbp), %... | /rfejzic1[P]katon/src/Klex.cpp |
Parser::expected(char const*) | void Parser::expected(const char* what) {
std::stringstream msg;
msg << "Expected " << what << " on line " << token().line << " column " << token().col;
throw ParseException(msg.str().c_str());
} | pushq %rbp
movq %rsp, %rbp
subq $0x280, %rsp # imm = 0x280
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x250(%rbp)
leaq -0x198(%rbp), %rdi
callq 0xa1d0
leaq -0x188(%rbp), %rdi
leaq 0x4cca3(%rip), %rsi # 0x5e1eb
callq 0xa2a0
movq %rax, -0x248(%rbp)
jmp 0x11556
movq -0x24... | /rfejzic1[P]katon/src/Parser.cpp |
Parser::unexpected() | void Parser::unexpected() {
std::stringstream msg;
msg << "Unexpected '" << token().lexeme.c_str() << "' on line " << token().line << " column " << token().col;
throw ParseException(msg.str().c_str());
} | pushq %rbp
movq %rsp, %rbp
subq $0x2b0, %rsp # imm = 0x2B0
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x280(%rbp)
leaq -0x190(%rbp), %rdi
callq 0xa1d0
leaq -0x180(%rbp), %rdi
leaq 0x4c4af(%rip), %rsi # 0x5e1d3
callq 0xa2a0
movq %rax, -0x278(%rbp)
jmp 0x11d32
movq -0x280(%rbp), %rsi
leaq -0x1... | /rfejzic1[P]katon/src/Parser.cpp |
Parser::method(std::shared_ptr<ObjectExpression>&, Scope) | void Parser::method(ptr<ObjectExpression> &descriptor, Scope scope) {
consume();
Identifier identifier = token().lexeme;
consume(TokenType::Identifier, "identifier");
consume(TokenType::LeftParen, "'('");
IdentifierList parameters = identifierList();
consume(TokenType::RightParen, "')'");
... | pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp # imm = 0x100
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0xe0(%rbp)
callq 0x11350
movq -0xe0(%rbp), %rsi
leaq -0x70(%rbp), %rdi
movq %rdi, -0xe8(%rbp)
callq 0x11450
leaq -0x68(%rbp), %rsi
leaq -0x38(%rbp),... | /rfejzic1[P]katon/src/Parser.cpp |
Subsets and Splits
SQL Console for LLM4Binary/decompile-bench
Filters out entries with file names ending in .cpp, providing a basic subset of the dataset that excludes C++ files.