index
int64
0
66.5k
func_name
stringlengths
2
5.36k
func_dep
stringlengths
16
2.19k
func
stringlengths
8
55.3k
test
stringlengths
0
7.07k
opt
stringclasses
4 values
language
stringclasses
2 values
asm
stringlengths
0
45.4k
ida_asm
stringlengths
0
44.7k
ida_pseudo
stringlengths
0
44.3k
ghidra_asm
stringlengths
0
49.1k
ghidra_pseudo
stringlengths
0
64.7k
31,100
bc_get_sleb128
bluesky950520[P]quickjs/quickjs.c
static int bc_get_sleb128(BCReaderState *s, int32_t *pval) { int ret; ret = get_sleb128(pval, s->ptr, s->buf_end); if (unlikely(ret < 0)) return bc_read_error_end(s); s->ptr += ret; return 0; }
O1
c
bc_get_sleb128: pushq %rbx movq %rsi, %rax movq %rdi, %rbx movq 0x10(%rdi), %rsi movq 0x18(%rdi), %rdx movq %rax, %rdi callq 0x10cdf testl %eax, %eax js 0x11209 movl %eax, %eax addq %rax, 0x10(%rbx) xorl %eax, %eax popq %rbx retq cmpl $0x0, 0x30(%rbx) jne 0x11220 movq (%rbx), %rdi leaq 0x8d020(%rip), %rsi # 0x9e239 xorl %eax, %eax callq 0x218bd orl $-0x1, 0x30(%rbx) pushq $-0x1 popq %rax jmp 0x11207
bc_get_sleb128: push rbx mov rax, rsi mov rbx, rdi mov rsi, [rdi+10h] mov rdx, [rdi+18h] mov rdi, rax call get_sleb128 test eax, eax js short loc_11209 mov eax, eax add [rbx+10h], rax xor eax, eax loc_11207: pop rbx retn loc_11209: cmp dword ptr [rbx+30h], 0 jnz short loc_11220 mov rdi, [rbx] lea rsi, aReadAfterTheEn; "read after the end of the buffer" xor eax, eax call JS_ThrowSyntaxError loc_11220: or dword ptr [rbx+30h], 0FFFFFFFFh push 0FFFFFFFFFFFFFFFFh pop rax jmp short loc_11207
long long bc_get_sleb128(long long a1, int *a2) { int sleb128; // eax int v3; // edx int v4; // ecx int v5; // r8d int v6; // r9d sleb128 = get_sleb128(a2, *(_QWORD *)(a1 + 16), *(_QWORD *)(a1 + 24)); if ( sleb128 < 0 ) { if ( !*(_DWORD *)(a1 + 48) ) JS_ThrowSyntaxError(*(_QWORD *)a1, (unsigned int)"read after the end of the buffer", v3, v4, v5, v6); *(_DWORD *)(a1 + 48) = -1; return -1LL; } else { *(_QWORD *)(a1 + 16) += (unsigned int)sleb128; return 0LL; } }
bc_get_sleb128: PUSH RBX MOV RAX,RSI MOV RBX,RDI MOV RSI,qword ptr [RDI + 0x10] MOV RDX,qword ptr [RDI + 0x18] MOV RDI,RAX CALL 0x00110cdf TEST EAX,EAX JS 0x00111209 MOV EAX,EAX ADD qword ptr [RBX + 0x10],RAX XOR EAX,EAX LAB_00111207: POP RBX RET LAB_00111209: CMP dword ptr [RBX + 0x30],0x0 JNZ 0x00111220 MOV RDI,qword ptr [RBX] LEA RSI,[0x19e239] XOR EAX,EAX CALL 0x001218bd LAB_00111220: OR dword ptr [RBX + 0x30],0xffffffff PUSH -0x1 POP RAX JMP 0x00111207
int8 bc_get_sleb128(int8 *param_1,int8 param_2) { uint uVar1; int8 uStack_10; uVar1 = get_sleb128(param_2,param_1[2],param_1[3]); if ((int)uVar1 < 0) { if (*(int *)(param_1 + 6) == 0) { JS_ThrowSyntaxError(*param_1,"read after the end of the buffer"); } *(int4 *)(param_1 + 6) = 0xffffffff; uStack_10 = 0xffffffffffffffff; } else { param_1[2] = param_1[2] + (ulong)uVar1; uStack_10 = 0; } return uStack_10; }
31,101
bc_get_sleb128
bluesky950520[P]quickjs/quickjs.c
static int bc_get_sleb128(BCReaderState *s, int32_t *pval) { int ret; ret = get_sleb128(pval, s->ptr, s->buf_end); if (unlikely(ret < 0)) return bc_read_error_end(s); s->ptr += ret; return 0; }
O3
c
bc_get_sleb128: pushq %rbx movq %rsi, %rax movq %rdi, %rbx movq 0x10(%rdi), %rsi movq 0x18(%rdi), %rdx movq %rax, %rdi callq 0x11040 testl %eax, %eax js 0x1162f movl %eax, %eax addq %rax, 0x10(%rbx) xorl %eax, %eax popq %rbx retq cmpl $0x0, 0x30(%rbx) jne 0x11646 movq (%rbx), %rdi leaq 0x8fbca(%rip), %rsi # 0xa1209 xorl %eax, %eax callq 0x220b9 orl $-0x1, 0x30(%rbx) pushq $-0x1 popq %rax jmp 0x1162d
bc_get_sleb128: push rbx mov rax, rsi mov rbx, rdi mov rsi, [rdi+10h] mov rdx, [rdi+18h] mov rdi, rax call get_sleb128 test eax, eax js short loc_1162F mov eax, eax add [rbx+10h], rax xor eax, eax loc_1162D: pop rbx retn loc_1162F: cmp dword ptr [rbx+30h], 0 jnz short loc_11646 mov rdi, [rbx] lea rsi, aReadAfterTheEn; "read after the end of the buffer" xor eax, eax call JS_ThrowSyntaxError loc_11646: or dword ptr [rbx+30h], 0FFFFFFFFh push 0FFFFFFFFFFFFFFFFh pop rax jmp short loc_1162D
long long bc_get_sleb128(long long a1, int *a2) { int sleb128; // eax int v3; // edx int v4; // ecx int v5; // r8d int v6; // r9d sleb128 = get_sleb128(a2, *(_QWORD *)(a1 + 16), *(_QWORD *)(a1 + 24)); if ( sleb128 < 0 ) { if ( !*(_DWORD *)(a1 + 48) ) JS_ThrowSyntaxError(*(_QWORD *)a1, (unsigned int)"read after the end of the buffer", v3, v4, v5, v6); *(_DWORD *)(a1 + 48) = -1; return -1LL; } else { *(_QWORD *)(a1 + 16) += (unsigned int)sleb128; return 0LL; } }
bc_get_sleb128: PUSH RBX MOV RAX,RSI MOV RBX,RDI MOV RSI,qword ptr [RDI + 0x10] MOV RDX,qword ptr [RDI + 0x18] MOV RDI,RAX CALL 0x00111040 TEST EAX,EAX JS 0x0011162f MOV EAX,EAX ADD qword ptr [RBX + 0x10],RAX XOR EAX,EAX LAB_0011162d: POP RBX RET LAB_0011162f: CMP dword ptr [RBX + 0x30],0x0 JNZ 0x00111646 MOV RDI,qword ptr [RBX] LEA RSI,[0x1a1209] XOR EAX,EAX CALL 0x001220b9 LAB_00111646: OR dword ptr [RBX + 0x30],0xffffffff PUSH -0x1 POP RAX JMP 0x0011162d
int8 bc_get_sleb128(int8 *param_1,int8 param_2) { uint uVar1; int8 uStack_10; uVar1 = get_sleb128(param_2,param_1[2],param_1[3]); if ((int)uVar1 < 0) { if (*(int *)(param_1 + 6) == 0) { JS_ThrowSyntaxError(*param_1,"read after the end of the buffer"); } *(int4 *)(param_1 + 6) = 0xffffffff; uStack_10 = 0xffffffffffffffff; } else { param_1[2] = param_1[2] + (ulong)uVar1; uStack_10 = 0; } return uStack_10; }
31,102
lre_compile
bluesky950520[P]quickjs/libregexp.c
uint8_t *lre_compile(int *plen, char *error_msg, int error_msg_size, const char *buf, size_t buf_len, int re_flags, void *opaque) { REParseState s_s, *s = &s_s; int stack_size; BOOL is_sticky; memset(s, 0, sizeof(*s)); s->opaque = opaque; s->buf_ptr = (const uint8_t *)buf; s->buf_end = s->buf_ptr + buf_len; s->buf_start = s->buf_ptr; s->re_flags = re_flags; s->is_unicode = ((re_flags & LRE_FLAG_UNICODE) != 0); is_sticky = ((re_flags & LRE_FLAG_STICKY) != 0); s->ignore_case = ((re_flags & LRE_FLAG_IGNORECASE) != 0); s->dotall = ((re_flags & LRE_FLAG_DOTALL) != 0); s->unicode_sets = ((re_flags & LRE_FLAG_UNICODE_SETS) != 0); s->capture_count = 1; s->total_capture_count = -1; s->has_named_captures = -1; dbuf_init2(&s->byte_code, opaque, lre_realloc); dbuf_init2(&s->group_names, opaque, lre_realloc); dbuf_put_u16(&s->byte_code, re_flags); /* first element is the flags */ dbuf_putc(&s->byte_code, 0); /* second element is the number of captures */ dbuf_putc(&s->byte_code, 0); /* stack size */ dbuf_put_u32(&s->byte_code, 0); /* bytecode length */ if (!is_sticky) { /* iterate thru all positions (about the same as .*?( ... ) ) . We do it without an explicit loop so that lock step thread execution will be possible in an optimized implementation */ re_emit_op_u32(s, REOP_split_goto_first, 1 + 5); re_emit_op(s, REOP_any); re_emit_op_u32(s, REOP_goto, -(5 + 1 + 5)); } re_emit_op_u8(s, REOP_save_start, 0); if (re_parse_disjunction(s, FALSE)) { error: dbuf_free(&s->byte_code); dbuf_free(&s->group_names); js__pstrcpy(error_msg, error_msg_size, s->u.error_msg); *plen = 0; return NULL; } re_emit_op_u8(s, REOP_save_end, 0); re_emit_op(s, REOP_match); if (*s->buf_ptr != '\0') { re_parse_error(s, "extraneous characters at the end"); goto error; } if (dbuf_error(&s->byte_code)) { re_parse_out_of_memory(s); goto error; } stack_size = lre_compute_stack_size(s->byte_code.buf, s->byte_code.size); if (stack_size < 0) { re_parse_error(s, "too many imbricated quantifiers"); goto error; } s->byte_code.buf[RE_HEADER_CAPTURE_COUNT] = s->capture_count; s->byte_code.buf[RE_HEADER_STACK_SIZE] = stack_size; put_u32(s->byte_code.buf + RE_HEADER_BYTECODE_LEN, s->byte_code.size - RE_HEADER_LEN); /* add the named groups if needed */ if (s->group_names.size > (s->capture_count - 1)) { dbuf_put(&s->byte_code, s->group_names.buf, s->group_names.size); put_u16(s->byte_code.buf + RE_HEADER_FLAGS, LRE_FLAG_NAMED_GROUPS | lre_get_flags(s->byte_code.buf)); } dbuf_free(&s->group_names); #ifdef DUMP_REOP lre_dump_bytecode(s->byte_code.buf, s->byte_code.size); #endif error_msg[0] = '\0'; *plen = s->byte_code.size; return s->byte_code.buf; }
O0
c
lre_compile: subq $0x178, %rsp # imm = 0x178 movq 0x180(%rsp), %rax movq %rdi, 0x168(%rsp) movq %rsi, 0x160(%rsp) movl %edx, 0x15c(%rsp) movq %rcx, 0x150(%rsp) movq %r8, 0x148(%rsp) movl %r9d, 0x144(%rsp) leaq 0x20(%rsp), %rax movq %rax, 0x18(%rsp) movq 0x18(%rsp), %rdi xorl %esi, %esi movl $0x120, %edx # imm = 0x120 callq 0xe340 movq 0x180(%rsp), %rcx movq 0x18(%rsp), %rax movq %rcx, 0x68(%rax) movq 0x150(%rsp), %rcx movq 0x18(%rsp), %rax movq %rcx, 0x30(%rax) movq 0x18(%rsp), %rax movq 0x30(%rax), %rcx addq 0x148(%rsp), %rcx movq 0x18(%rsp), %rax movq %rcx, 0x38(%rax) movq 0x18(%rsp), %rax movq 0x30(%rax), %rcx movq 0x18(%rsp), %rax movq %rcx, 0x40(%rax) movl 0x144(%rsp), %ecx movq 0x18(%rsp), %rax movl %ecx, 0x48(%rax) movl 0x144(%rsp), %eax andl $0x10, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %ecx movq 0x18(%rsp), %rax movl %ecx, 0x4c(%rax) movl 0x144(%rsp), %eax andl $0x20, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax movl %eax, 0x10(%rsp) movl 0x144(%rsp), %eax andl $0x2, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %ecx movq 0x18(%rsp), %rax movl %ecx, 0x54(%rax) movl 0x144(%rsp), %eax andl $0x8, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %ecx movq 0x18(%rsp), %rax movl %ecx, 0x58(%rax) movl 0x144(%rsp), %eax andl $0x100, %eax # imm = 0x100 cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %ecx movq 0x18(%rsp), %rax movl %ecx, 0x50(%rax) movq 0x18(%rsp), %rax movl $0x1, 0x5c(%rax) movq 0x18(%rsp), %rax movl $0xffffffff, 0x60(%rax) # imm = 0xFFFFFFFF movq 0x18(%rsp), %rax movl $0xffffffff, 0x64(%rax) # imm = 0xFFFFFFFF movq 0x18(%rsp), %rdi movq 0x180(%rsp), %rsi leaq -0xaf78d(%rip), %rdx # 0x4ca60 callq 0x1d080 movq 0x18(%rsp), %rdi addq $0x70, %rdi movq 0x180(%rsp), %rsi leaq -0xaf7aa(%rip), %rdx # 0x4ca60 callq 0x1d080 movq 0x18(%rsp), %rdi movl 0x144(%rsp), %eax movzwl %ax, %esi callq 0xfc4a0 movq 0x18(%rsp), %rdi xorl %esi, %esi callq 0x1d410 movq 0x18(%rsp), %rdi xorl %esi, %esi callq 0x1d410 movq 0x18(%rsp), %rdi xorl %esi, %esi callq 0xfc4d0 cmpl $0x0, 0x10(%rsp) jne 0xfc285 movq 0x18(%rsp), %rdi movl $0x9, %esi movl $0x6, %edx callq 0xfc500 movq 0x18(%rsp), %rdi movl $0x5, %esi callq 0xfc550 movq 0x18(%rsp), %rdi movl $0x8, %esi movl $0xfffffff5, %edx # imm = 0xFFFFFFF5 callq 0xfc500 movq 0x18(%rsp), %rdi movl $0xc, %esi xorl %edx, %edx callq 0xfc580 movq 0x18(%rsp), %rdi xorl %esi, %esi callq 0xfc5c0 cmpl $0x0, %eax je 0xfc300 jmp 0xfc2a9 movq 0x18(%rsp), %rdi callq 0x1d670 movq 0x18(%rsp), %rdi addq $0x70, %rdi callq 0x1d670 movq 0x160(%rsp), %rdi movl 0x15c(%rsp), %esi movq 0x18(%rsp), %rdx addq $0xa0, %rdx callq 0x1ce80 movq 0x168(%rsp), %rax movl $0x0, (%rax) movq $0x0, 0x170(%rsp) jmp 0xfc48a movq 0x18(%rsp), %rdi movl $0xd, %esi xorl %edx, %edx callq 0xfc580 movq 0x18(%rsp), %rdi movl $0xb, %esi callq 0xfc550 movq 0x18(%rsp), %rax movq 0x30(%rax), %rax movzbl (%rax), %eax cmpl $0x0, %eax je 0xfc349 movq 0x18(%rsp), %rdi leaq 0x14e15(%rip), %rsi # 0x111152 movb $0x0, %al callq 0xfc750 jmp 0xfc2a9 movq 0x18(%rsp), %rdi callq 0xfc820 cmpl $0x0, %eax je 0xfc367 movq 0x18(%rsp), %rdi callq 0xfc830 jmp 0xfc2a9 movq 0x18(%rsp), %rax movq (%rax), %rdi movq 0x18(%rsp), %rax movq 0x8(%rax), %rax movl %eax, %esi callq 0xfc850 movl %eax, 0x14(%rsp) cmpl $0x0, 0x14(%rsp) jge 0xfc3a2 movq 0x18(%rsp), %rdi leaq 0x14ddd(%rip), %rsi # 0x111173 movb $0x0, %al callq 0xfc750 jmp 0xfc2a9 movq 0x18(%rsp), %rax movl 0x5c(%rax), %eax movb %al, %cl movq 0x18(%rsp), %rax movq (%rax), %rax movb %cl, 0x2(%rax) movl 0x14(%rsp), %eax movb %al, %cl movq 0x18(%rsp), %rax movq (%rax), %rax movb %cl, 0x3(%rax) movq 0x18(%rsp), %rax movq (%rax), %rdi addq $0x4, %rdi movq 0x18(%rsp), %rax movq 0x8(%rax), %rax subq $0x8, %rax movl %eax, %esi callq 0xfc9b0 movq 0x18(%rsp), %rax movq 0x78(%rax), %rax movq 0x18(%rsp), %rcx movl 0x5c(%rcx), %ecx subl $0x1, %ecx movslq %ecx, %rcx cmpq %rcx, %rax jbe 0xfc44c movq 0x18(%rsp), %rdi movq 0x18(%rsp), %rax movq 0x70(%rax), %rsi movq 0x18(%rsp), %rax movq 0x78(%rax), %rdx callq 0x1d290 movq 0x18(%rsp), %rax movq (%rax), %rax movq %rax, 0x8(%rsp) movq 0x18(%rsp), %rax movq (%rax), %rdi callq 0xfc9f0 movq 0x8(%rsp), %rdi orl $0x80, %eax movzwl %ax, %esi callq 0xfc9d0 movq 0x18(%rsp), %rdi addq $0x70, %rdi callq 0x1d670 movq 0x160(%rsp), %rax movb $0x0, (%rax) movq 0x18(%rsp), %rax movq 0x8(%rax), %rax movl %eax, %ecx movq 0x168(%rsp), %rax movl %ecx, (%rax) movq 0x18(%rsp), %rax movq (%rax), %rax movq %rax, 0x170(%rsp) movq 0x170(%rsp), %rax addq $0x178, %rsp # imm = 0x178 retq nopw (%rax,%rax)
lre_compile: sub rsp, 178h mov rax, [rsp+178h+arg_0] mov [rsp+178h+var_10], rdi mov [rsp+178h+var_18], rsi mov [rsp+178h+var_1C], edx mov [rsp+178h+var_28], rcx mov [rsp+178h+var_30], r8 mov [rsp+178h+var_34], r9d lea rax, [rsp+178h+var_158] mov [rsp+178h+var_160], rax mov rdi, [rsp+178h+var_160] xor esi, esi mov edx, 120h call _memset mov rcx, [rsp+178h+arg_0] mov rax, [rsp+178h+var_160] mov [rax+68h], rcx mov rcx, [rsp+178h+var_28] mov rax, [rsp+178h+var_160] mov [rax+30h], rcx mov rax, [rsp+178h+var_160] mov rcx, [rax+30h] add rcx, [rsp+178h+var_30] mov rax, [rsp+178h+var_160] mov [rax+38h], rcx mov rax, [rsp+178h+var_160] mov rcx, [rax+30h] mov rax, [rsp+178h+var_160] mov [rax+40h], rcx mov ecx, [rsp+178h+var_34] mov rax, [rsp+178h+var_160] mov [rax+48h], ecx mov eax, [rsp+178h+var_34] and eax, 10h cmp eax, 0 setnz al and al, 1 movzx ecx, al mov rax, [rsp+178h+var_160] mov [rax+4Ch], ecx mov eax, [rsp+178h+var_34] and eax, 20h cmp eax, 0 setnz al and al, 1 movzx eax, al mov [rsp+178h+var_168], eax mov eax, [rsp+178h+var_34] and eax, 2 cmp eax, 0 setnz al and al, 1 movzx ecx, al mov rax, [rsp+178h+var_160] mov [rax+54h], ecx mov eax, [rsp+178h+var_34] and eax, 8 cmp eax, 0 setnz al and al, 1 movzx ecx, al mov rax, [rsp+178h+var_160] mov [rax+58h], ecx mov eax, [rsp+178h+var_34] and eax, 100h cmp eax, 0 setnz al and al, 1 movzx ecx, al mov rax, [rsp+178h+var_160] mov [rax+50h], ecx mov rax, [rsp+178h+var_160] mov dword ptr [rax+5Ch], 1 mov rax, [rsp+178h+var_160] mov dword ptr [rax+60h], 0FFFFFFFFh mov rax, [rsp+178h+var_160] mov dword ptr [rax+64h], 0FFFFFFFFh mov rdi, [rsp+178h+var_160] mov rsi, [rsp+178h+arg_0] lea rdx, lre_realloc call dbuf_init2 mov rdi, [rsp+178h+var_160] add rdi, 70h ; 'p' mov rsi, [rsp+178h+arg_0] lea rdx, lre_realloc call dbuf_init2 mov rdi, [rsp+178h+var_160] mov eax, [rsp+178h+var_34] movzx esi, ax call dbuf_put_u16_0 mov rdi, [rsp+178h+var_160] xor esi, esi call dbuf_putc mov rdi, [rsp+178h+var_160] xor esi, esi call dbuf_putc mov rdi, [rsp+178h+var_160] xor esi, esi call dbuf_put_u32_0 cmp [rsp+178h+var_168], 0 jnz short loc_FC285 mov rdi, [rsp+178h+var_160] mov esi, 9 mov edx, 6 call re_emit_op_u32 mov rdi, [rsp+178h+var_160] mov esi, 5 call re_emit_op mov rdi, [rsp+178h+var_160] mov esi, 8 mov edx, 0FFFFFFF5h call re_emit_op_u32 loc_FC285: mov rdi, [rsp+178h+var_160] mov esi, 0Ch xor edx, edx call re_emit_op_u8 mov rdi, [rsp+178h+var_160] xor esi, esi call re_parse_disjunction cmp eax, 0 jz short loc_FC300 jmp short $+2 loc_FC2A9: mov rdi, [rsp+178h+var_160] call dbuf_free mov rdi, [rsp+178h+var_160] add rdi, 70h ; 'p' call dbuf_free mov rdi, [rsp+178h+var_18] mov esi, [rsp+178h+var_1C] mov rdx, [rsp+178h+var_160] add rdx, 0A0h call js__pstrcpy mov rax, [rsp+178h+var_10] mov dword ptr [rax], 0 mov [rsp+178h+var_8], 0 jmp loc_FC48A loc_FC300: mov rdi, [rsp+178h+var_160] mov esi, 0Dh xor edx, edx call re_emit_op_u8 mov rdi, [rsp+178h+var_160] mov esi, 0Bh call re_emit_op mov rax, [rsp+178h+var_160] mov rax, [rax+30h] movzx eax, byte ptr [rax] cmp eax, 0 jz short loc_FC349 mov rdi, [rsp+178h+var_160] lea rsi, aExtraneousChar; "extraneous characters at the end" mov al, 0 call re_parse_error jmp loc_FC2A9 loc_FC349: mov rdi, [rsp+178h+var_160] call dbuf_error_2 cmp eax, 0 jz short loc_FC367 mov rdi, [rsp+178h+var_160] call re_parse_out_of_memory jmp loc_FC2A9 loc_FC367: mov rax, [rsp+178h+var_160] mov rdi, [rax] mov rax, [rsp+178h+var_160] mov rax, [rax+8] mov esi, eax call lre_compute_stack_size mov [rsp+178h+var_164], eax cmp [rsp+178h+var_164], 0 jge short loc_FC3A2 mov rdi, [rsp+178h+var_160] lea rsi, aTooManyImbrica; "too many imbricated quantifiers" mov al, 0 call re_parse_error jmp loc_FC2A9 loc_FC3A2: mov rax, [rsp+178h+var_160] mov eax, [rax+5Ch] mov cl, al mov rax, [rsp+178h+var_160] mov rax, [rax] mov [rax+2], cl mov eax, [rsp+178h+var_164] mov cl, al mov rax, [rsp+178h+var_160] mov rax, [rax] mov [rax+3], cl mov rax, [rsp+178h+var_160] mov rdi, [rax] add rdi, 4 mov rax, [rsp+178h+var_160] mov rax, [rax+8] sub rax, 8 mov esi, eax call put_u32_0 mov rax, [rsp+178h+var_160] mov rax, [rax+78h] mov rcx, [rsp+178h+var_160] mov ecx, [rcx+5Ch] sub ecx, 1 movsxd rcx, ecx cmp rax, rcx jbe short loc_FC44C mov rdi, [rsp+178h+var_160] mov rax, [rsp+178h+var_160] mov rsi, [rax+70h] mov rax, [rsp+178h+var_160] mov rdx, [rax+78h] call dbuf_put mov rax, [rsp+178h+var_160] mov rax, [rax] mov [rsp+178h+var_170], rax mov rax, [rsp+178h+var_160] mov rdi, [rax] call lre_get_flags mov rdi, [rsp+178h+var_170] or eax, 80h movzx esi, ax call put_u16_0 loc_FC44C: mov rdi, [rsp+178h+var_160] add rdi, 70h ; 'p' call dbuf_free mov rax, [rsp+178h+var_18] mov byte ptr [rax], 0 mov rax, [rsp+178h+var_160] mov rax, [rax+8] mov ecx, eax mov rax, [rsp+178h+var_10] mov [rax], ecx mov rax, [rsp+178h+var_160] mov rax, [rax] mov [rsp+178h+var_8], rax loc_FC48A: mov rax, [rsp+178h+var_8] add rsp, 178h retn
long long lre_compile(unsigned int *a1, _BYTE *a2, int a3, _BYTE *a4, long long a5, int a6, long long a7) { int v7; // edx int v8; // ecx int v9; // r8d int v10; // r9d int v11; // edx int v12; // ecx int v13; // r8d int v14; // r9d unsigned __int16 flags; // ax long long v17; // [rsp+8h] [rbp-170h] BOOL v18; // [rsp+10h] [rbp-168h] int v19; // [rsp+14h] [rbp-164h] long long v20; // [rsp+20h] [rbp-158h] BYREF unsigned int v21; // [rsp+28h] [rbp-150h] _BYTE *v22; // [rsp+50h] [rbp-128h] _BYTE *v23; // [rsp+58h] [rbp-120h] _BYTE *v24; // [rsp+60h] [rbp-118h] int v25; // [rsp+68h] [rbp-110h] BOOL v26; // [rsp+6Ch] [rbp-10Ch] BOOL v27; // [rsp+70h] [rbp-108h] BOOL v28; // [rsp+74h] [rbp-104h] BOOL v29; // [rsp+78h] [rbp-100h] int v30; // [rsp+7Ch] [rbp-FCh] int v31; // [rsp+80h] [rbp-F8h] int v32; // [rsp+84h] [rbp-F4h] long long v33; // [rsp+88h] [rbp-F0h] long long v34; // [rsp+90h] [rbp-E8h] BYREF unsigned long long v35; // [rsp+98h] [rbp-E0h] char v36[132]; // [rsp+C0h] [rbp-B8h] BYREF int v37; // [rsp+144h] [rbp-34h] long long v38; // [rsp+148h] [rbp-30h] _BYTE *v39; // [rsp+150h] [rbp-28h] int v40; // [rsp+15Ch] [rbp-1Ch] _BYTE *v41; // [rsp+160h] [rbp-18h] unsigned int *v42; // [rsp+168h] [rbp-10h] v42 = a1; v41 = a2; v40 = a3; v39 = a4; v38 = a5; v37 = a6; memset(&v20, 0LL, 288LL); v33 = a7; v22 = v39; v23 = &v39[v38]; v24 = v39; v25 = v37; v26 = (v37 & 0x10) != 0; v18 = (v37 & 0x20) != 0; v28 = (v37 & 2) != 0; v29 = (v37 & 8) != 0; v27 = (v37 & 0x100) != 0; v30 = 1; v31 = -1; v32 = -1; dbuf_init2((long long)&v20, a7, (long long ( *)())lre_realloc); dbuf_init2((long long)&v34, a7, (long long ( *)())lre_realloc); dbuf_put_u16_0(&v20, (unsigned __int16)v37); dbuf_putc(&v20, 0); dbuf_putc(&v20, 0); dbuf_put_u32_0(&v20, 0LL); if ( !v18 ) { re_emit_op_u32(&v20, 9LL, 6LL); re_emit_op(&v20, 5LL); re_emit_op_u32(&v20, 8LL, 4294967285LL); } re_emit_op_u8(&v20, 12LL, 0LL); if ( (unsigned int)re_parse_disjunction(&v20, 0LL) ) goto LABEL_4; re_emit_op_u8(&v20, 13LL, 0LL); re_emit_op(&v20, 11LL); if ( *v22 ) { re_parse_error((unsigned int)&v20, (unsigned int)"extraneous characters at the end", v7, v8, v9, v10); LABEL_4: dbuf_free((long long)&v20); dbuf_free((long long)&v34); js__pstrcpy(v41, v40, v36); *v42 = 0; return 0LL; } if ( (unsigned int)dbuf_error_2(&v20) ) { re_parse_out_of_memory(&v20); goto LABEL_4; } v19 = lre_compute_stack_size(v20, v21); if ( v19 < 0 ) { re_parse_error((unsigned int)&v20, (unsigned int)"too many imbricated quantifiers", v11, v12, v13, v14); goto LABEL_4; } *(_BYTE *)(v20 + 2) = v30; *(_BYTE *)(v20 + 3) = v19; put_u32_0(v20 + 4, v21 - 8); if ( v35 > v30 - 1 ) { dbuf_put(&v20, v34, v35); v17 = v20; flags = lre_get_flags(v20); put_u16_0(v17, flags | 0x80u); } dbuf_free((long long)&v34); *v41 = 0; *v42 = v21; return v20; }
lre_compile: SUB RSP,0x178 MOV RAX,qword ptr [RSP + 0x180] MOV qword ptr [RSP + 0x168],RDI MOV qword ptr [RSP + 0x160],RSI MOV dword ptr [RSP + 0x15c],EDX MOV qword ptr [RSP + 0x150],RCX MOV qword ptr [RSP + 0x148],R8 MOV dword ptr [RSP + 0x144],R9D LEA RAX,[RSP + 0x20] MOV qword ptr [RSP + 0x18],RAX MOV RDI,qword ptr [RSP + 0x18] XOR ESI,ESI MOV EDX,0x120 CALL 0x0010e340 MOV RCX,qword ptr [RSP + 0x180] MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RAX + 0x68],RCX MOV RCX,qword ptr [RSP + 0x150] MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RAX + 0x30],RCX MOV RAX,qword ptr [RSP + 0x18] MOV RCX,qword ptr [RAX + 0x30] ADD RCX,qword ptr [RSP + 0x148] MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RAX + 0x38],RCX MOV RAX,qword ptr [RSP + 0x18] MOV RCX,qword ptr [RAX + 0x30] MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RAX + 0x40],RCX MOV ECX,dword ptr [RSP + 0x144] MOV RAX,qword ptr [RSP + 0x18] MOV dword ptr [RAX + 0x48],ECX MOV EAX,dword ptr [RSP + 0x144] AND EAX,0x10 CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX ECX,AL MOV RAX,qword ptr [RSP + 0x18] MOV dword ptr [RAX + 0x4c],ECX MOV EAX,dword ptr [RSP + 0x144] AND EAX,0x20 CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL MOV dword ptr [RSP + 0x10],EAX MOV EAX,dword ptr [RSP + 0x144] AND EAX,0x2 CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX ECX,AL MOV RAX,qword ptr [RSP + 0x18] MOV dword ptr [RAX + 0x54],ECX MOV EAX,dword ptr [RSP + 0x144] AND EAX,0x8 CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX ECX,AL MOV RAX,qword ptr [RSP + 0x18] MOV dword ptr [RAX + 0x58],ECX MOV EAX,dword ptr [RSP + 0x144] AND EAX,0x100 CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX ECX,AL MOV RAX,qword ptr [RSP + 0x18] MOV dword ptr [RAX + 0x50],ECX MOV RAX,qword ptr [RSP + 0x18] MOV dword ptr [RAX + 0x5c],0x1 MOV RAX,qword ptr [RSP + 0x18] MOV dword ptr [RAX + 0x60],0xffffffff MOV RAX,qword ptr [RSP + 0x18] MOV dword ptr [RAX + 0x64],0xffffffff MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x180] LEA RDX,[0x14ca60] CALL 0x0011d080 MOV RDI,qword ptr [RSP + 0x18] ADD RDI,0x70 MOV RSI,qword ptr [RSP + 0x180] LEA RDX,[0x14ca60] CALL 0x0011d080 MOV RDI,qword ptr [RSP + 0x18] MOV EAX,dword ptr [RSP + 0x144] MOVZX ESI,AX CALL 0x001fc4a0 MOV RDI,qword ptr [RSP + 0x18] XOR ESI,ESI CALL 0x0011d410 MOV RDI,qword ptr [RSP + 0x18] XOR ESI,ESI CALL 0x0011d410 MOV RDI,qword ptr [RSP + 0x18] XOR ESI,ESI CALL 0x001fc4d0 CMP dword ptr [RSP + 0x10],0x0 JNZ 0x001fc285 MOV RDI,qword ptr [RSP + 0x18] MOV ESI,0x9 MOV EDX,0x6 CALL 0x001fc500 MOV RDI,qword ptr [RSP + 0x18] MOV ESI,0x5 CALL 0x001fc550 MOV RDI,qword ptr [RSP + 0x18] MOV ESI,0x8 MOV EDX,0xfffffff5 CALL 0x001fc500 LAB_001fc285: MOV RDI,qword ptr [RSP + 0x18] MOV ESI,0xc XOR EDX,EDX CALL 0x001fc580 MOV RDI,qword ptr [RSP + 0x18] XOR ESI,ESI CALL 0x001fc5c0 CMP EAX,0x0 JZ 0x001fc300 JMP 0x001fc2a9 LAB_001fc2a9: MOV RDI,qword ptr [RSP + 0x18] CALL 0x0011d670 MOV RDI,qword ptr [RSP + 0x18] ADD RDI,0x70 CALL 0x0011d670 MOV RDI,qword ptr [RSP + 0x160] MOV ESI,dword ptr [RSP + 0x15c] MOV RDX,qword ptr [RSP + 0x18] ADD RDX,0xa0 CALL 0x0011ce80 MOV RAX,qword ptr [RSP + 0x168] MOV dword ptr [RAX],0x0 MOV qword ptr [RSP + 0x170],0x0 JMP 0x001fc48a LAB_001fc300: MOV RDI,qword ptr [RSP + 0x18] MOV ESI,0xd XOR EDX,EDX CALL 0x001fc580 MOV RDI,qword ptr [RSP + 0x18] MOV ESI,0xb CALL 0x001fc550 MOV RAX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RAX + 0x30] MOVZX EAX,byte ptr [RAX] CMP EAX,0x0 JZ 0x001fc349 MOV RDI,qword ptr [RSP + 0x18] LEA RSI,[0x211152] MOV AL,0x0 CALL 0x001fc750 JMP 0x001fc2a9 LAB_001fc349: MOV RDI,qword ptr [RSP + 0x18] CALL 0x001fc820 CMP EAX,0x0 JZ 0x001fc367 MOV RDI,qword ptr [RSP + 0x18] CALL 0x001fc830 JMP 0x001fc2a9 LAB_001fc367: MOV RAX,qword ptr [RSP + 0x18] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RAX + 0x8] MOV ESI,EAX CALL 0x001fc850 MOV dword ptr [RSP + 0x14],EAX CMP dword ptr [RSP + 0x14],0x0 JGE 0x001fc3a2 MOV RDI,qword ptr [RSP + 0x18] LEA RSI,[0x211173] MOV AL,0x0 CALL 0x001fc750 JMP 0x001fc2a9 LAB_001fc3a2: MOV RAX,qword ptr [RSP + 0x18] MOV EAX,dword ptr [RAX + 0x5c] MOV CL,AL MOV RAX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RAX] MOV byte ptr [RAX + 0x2],CL MOV EAX,dword ptr [RSP + 0x14] MOV CL,AL MOV RAX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RAX] MOV byte ptr [RAX + 0x3],CL MOV RAX,qword ptr [RSP + 0x18] MOV RDI,qword ptr [RAX] ADD RDI,0x4 MOV RAX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RAX + 0x8] SUB RAX,0x8 MOV ESI,EAX CALL 0x001fc9b0 MOV RAX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RAX + 0x78] MOV RCX,qword ptr [RSP + 0x18] MOV ECX,dword ptr [RCX + 0x5c] SUB ECX,0x1 MOVSXD RCX,ECX CMP RAX,RCX JBE 0x001fc44c MOV RDI,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RAX + 0x70] MOV RAX,qword ptr [RSP + 0x18] MOV RDX,qword ptr [RAX + 0x78] CALL 0x0011d290 MOV RAX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RAX] MOV qword ptr [RSP + 0x8],RAX MOV RAX,qword ptr [RSP + 0x18] MOV RDI,qword ptr [RAX] CALL 0x001fc9f0 MOV RDI,qword ptr [RSP + 0x8] OR EAX,0x80 MOVZX ESI,AX CALL 0x001fc9d0 LAB_001fc44c: MOV RDI,qword ptr [RSP + 0x18] ADD RDI,0x70 CALL 0x0011d670 MOV RAX,qword ptr [RSP + 0x160] MOV byte ptr [RAX],0x0 MOV RAX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RAX + 0x8] MOV ECX,EAX MOV RAX,qword ptr [RSP + 0x168] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RAX] MOV qword ptr [RSP + 0x170],RAX LAB_001fc48a: MOV RAX,qword ptr [RSP + 0x170] ADD RSP,0x178 RET
long lre_compile(int *param_1,int1 *param_2,int4 param_3,char *param_4,long param_5, uint param_6,int8 param_7) { long lVar1; ushort uVar2; uint uVar3; int iVar4; long local_158; ulong local_150; char *local_128; char *local_120; char *local_118; uint local_110; uint local_10c; uint local_108; uint local_104; uint local_100; int local_fc; int4 local_f8; int4 local_f4; int8 local_f0; int8 local_e8; ulong local_e0; int1 auStack_b8 [132]; uint local_34; long local_30; char *local_28; int4 local_1c; int1 *local_18; int *local_10; local_34 = param_6; local_30 = param_5; local_28 = param_4; local_1c = param_3; local_18 = param_2; local_10 = param_1; memset(&local_158,0,0x120); local_f0 = param_7; local_128 = local_28; local_120 = local_28 + local_30; local_118 = local_28; local_110 = local_34; local_10c = (uint)((local_34 & 0x10) != 0); uVar3 = local_34 & 0x20; local_104 = (uint)((local_34 & 2) != 0); local_100 = (uint)((local_34 & 8) != 0); local_108 = (uint)((local_34 & 0x100) != 0); local_fc = 1; local_f8 = 0xffffffff; local_f4 = 0xffffffff; dbuf_init2(&local_158,param_7,lre_realloc); dbuf_init2(&local_e8,param_7,lre_realloc); dbuf_put_u16(&local_158,local_34 & 0xffff); dbuf_putc(&local_158,0); dbuf_putc(&local_158,0); dbuf_put_u32(&local_158,0); if (uVar3 == 0) { re_emit_op_u32(&local_158,9,6); re_emit_op(&local_158,5); re_emit_op_u32(&local_158,8,0xfffffff5); } re_emit_op_u8(&local_158,0xc,0); iVar4 = re_parse_disjunction(&local_158,0); if (iVar4 == 0) { re_emit_op_u8(&local_158,0xd,0); re_emit_op(&local_158,0xb); if (*local_128 == '\0') { iVar4 = dbuf_error(&local_158); if (iVar4 == 0) { iVar4 = lre_compute_stack_size(local_158,local_150 & 0xffffffff); if (-1 < iVar4) { *(char *)(local_158 + 2) = (char)local_fc; *(char *)(local_158 + 3) = (char)iVar4; put_u32(local_158 + 4,(int)local_150 + -8); if ((ulong)(long)(local_fc + -1) < local_e0) { dbuf_put(&local_158,local_e8,local_e0); lVar1 = local_158; uVar2 = lre_get_flags(local_158); put_u16(lVar1,uVar2 | 0x80); } dbuf_free(&local_e8); *local_18 = 0; *local_10 = (int)local_150; return local_158; } re_parse_error(&local_158,"too many imbricated quantifiers"); } else { re_parse_out_of_memory(&local_158); } } else { re_parse_error(&local_158,"extraneous characters at the end"); } } dbuf_free(&local_158); dbuf_free(&local_e8); js__pstrcpy(local_18,local_1c,auStack_b8); *local_10 = 0; return 0; }
31,103
google::protobuf::io::Tokenizer::TryConsumeWhitespace()
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/io/tokenizer.cc
bool Tokenizer::TryConsumeWhitespace() { if (report_newlines_) { if (TryConsumeOne<WhitespaceNoNewline>()) { ConsumeZeroOrMore<WhitespaceNoNewline>(); current_.type = TYPE_WHITESPACE; return true; } return false; } if (TryConsumeOne<Whitespace>()) { ConsumeZeroOrMore<Whitespace>(); current_.type = TYPE_WHITESPACE; return report_whitespace_; } return false; }
O3
cpp
google::protobuf::io::Tokenizer::TryConsumeWhitespace(): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx movzbl 0x80(%rdi), %ecx cmpb $0x1, 0xbf(%rdi) jne 0x714b1 xorl %eax, %eax cmpl $0x20, %ecx ja 0x714e1 movl %ecx, %ecx movabsq $0x100003a00, %r14 # imm = 0x100003A00 btq %rcx, %r14 jae 0x714e1 movq %rbx, %rdi callq 0x70640 movzbl 0x80(%rbx), %eax cmpq $0x20, %rax ja 0x714a7 btq %rax, %r14 jb 0x7148c movl $0x7, (%rbx) movb $0x1, %al jmp 0x714e1 leal -0x9(%rcx), %eax cmpl $0x5, %eax jae 0x714e9 movq %rbx, %rdi callq 0x70640 movzbl 0x80(%rbx), %eax leal -0x9(%rax), %ecx cmpl $0x5, %ecx jb 0x714b9 cmpl $0x20, %eax je 0x714b9 movl $0x7, (%rbx) movb 0xbe(%rbx), %al addq $0x8, %rsp popq %rbx popq %r14 retq cmpl $0x20, %ecx je 0x714b9 xorl %eax, %eax jmp 0x714e1
_ZN6google8protobuf2io9Tokenizer20TryConsumeWhitespaceEv: push r14 push rbx push rax mov rbx, rdi movzx ecx, byte ptr [rdi+80h] cmp byte ptr [rdi+0BFh], 1 jnz short loc_714B1 xor eax, eax cmp ecx, 20h ; ' ' ja short loc_714E1 mov ecx, ecx mov r14, 100003A00h bt r14, rcx jnb short loc_714E1 loc_7148C: mov rdi, rbx; this call _ZN6google8protobuf2io9Tokenizer8NextCharEv; google::protobuf::io::Tokenizer::NextChar(void) movzx eax, byte ptr [rbx+80h] cmp rax, 20h ; ' ' ja short loc_714A7 bt r14, rax jb short loc_7148C loc_714A7: mov dword ptr [rbx], 7 mov al, 1 jmp short loc_714E1 loc_714B1: lea eax, [rcx-9] cmp eax, 5 jnb short loc_714E9 loc_714B9: mov rdi, rbx; this call _ZN6google8protobuf2io9Tokenizer8NextCharEv; google::protobuf::io::Tokenizer::NextChar(void) movzx eax, byte ptr [rbx+80h] lea ecx, [rax-9] cmp ecx, 5 jb short loc_714B9 cmp eax, 20h ; ' ' jz short loc_714B9 mov dword ptr [rbx], 7 mov al, [rbx+0BEh] loc_714E1: add rsp, 8 pop rbx pop r14 retn loc_714E9: cmp ecx, 20h ; ' ' jz short loc_714B9 xor eax, eax jmp short loc_714E1
char google::protobuf::io::Tokenizer::TryConsumeWhitespace(google::protobuf::io::Tokenizer *this) { unsigned int v1; // ecx char result; // al long long v3; // r14 unsigned long long v4; // rax int v5; // eax v1 = *((unsigned __int8 *)this + 128); if ( *((_BYTE *)this + 191) == 1 ) { result = 0; if ( v1 <= 0x20 ) { v3 = 0x100003A00LL; if ( _bittest64(&v3, *((unsigned __int8 *)this + 128)) ) { do { google::protobuf::io::Tokenizer::NextChar(this); v4 = *((unsigned __int8 *)this + 128); } while ( v4 <= 0x20 && _bittest64(&v3, v4) ); *(_DWORD *)this = 7; return 1; } } } else if ( v1 - 9 < 5 || v1 == 32 ) { do { do { google::protobuf::io::Tokenizer::NextChar(this); v5 = *((unsigned __int8 *)this + 128); } while ( (unsigned int)(v5 - 9) < 5 ); } while ( v5 == 32 ); *(_DWORD *)this = 7; return *((_BYTE *)this + 190); } else { return 0; } return result; }
TryConsumeWhitespace: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI MOVZX ECX,byte ptr [RDI + 0x80] CMP byte ptr [RDI + 0xbf],0x1 JNZ 0x001714b1 XOR EAX,EAX CMP ECX,0x20 JA 0x001714e1 MOV ECX,ECX MOV R14,0x100003a00 BT R14,RCX JNC 0x001714e1 LAB_0017148c: MOV RDI,RBX CALL 0x00170640 MOVZX EAX,byte ptr [RBX + 0x80] CMP RAX,0x20 JA 0x001714a7 BT R14,RAX JC 0x0017148c LAB_001714a7: MOV dword ptr [RBX],0x7 MOV AL,0x1 JMP 0x001714e1 LAB_001714b1: LEA EAX,[RCX + -0x9] CMP EAX,0x5 JNC 0x001714e9 LAB_001714b9: MOV RDI,RBX CALL 0x00170640 MOVZX EAX,byte ptr [RBX + 0x80] LEA ECX,[RAX + -0x9] CMP ECX,0x5 JC 0x001714b9 CMP EAX,0x20 JZ 0x001714b9 MOV dword ptr [RBX],0x7 MOV AL,byte ptr [RBX + 0xbe] LAB_001714e1: ADD RSP,0x8 POP RBX POP R14 RET LAB_001714e9: CMP ECX,0x20 JZ 0x001714b9 XOR EAX,EAX JMP 0x001714e1
/* google::protobuf::io::Tokenizer::TryConsumeWhitespace() */ Tokenizer __thiscall google::protobuf::io::Tokenizer::TryConsumeWhitespace(Tokenizer *this) { Tokenizer TVar1; Tokenizer TVar2; TVar1 = this[0x80]; if (this[0xbf] == (Tokenizer)0x1) { TVar2 = (Tokenizer)0x0; if (((byte)TVar1 < 0x21) && ((0x100003a00U >> ((ulong)(byte)TVar1 & 0x3f) & 1) != 0)) { do { NextChar(this); if (0x20 < (ulong)(byte)this[0x80]) break; } while ((0x100003a00U >> ((ulong)(byte)this[0x80] & 0x3f) & 1) != 0); *(int4 *)this = 7; TVar2 = (Tokenizer)0x1; } } else if (((byte)TVar1 - 9 < 5) || (TVar1 == (Tokenizer)0x20)) { do { do { NextChar(this); } while ((byte)this[0x80] - 9 < 5); } while (this[0x80] == (Tokenizer)0x20); *(int4 *)this = 7; TVar2 = this[0xbe]; } else { TVar2 = (Tokenizer)0x0; } return TVar2; }
31,104
select_best_resolution(std::pair<int, int> const&, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int>>> const&)
monkey531[P]llama/examples/llava/llava.cpp
static std::pair<int, int> select_best_resolution(const std::pair<int, int>& original_size, const std::vector<std::pair<int, int>>& possible_resolutions) { int original_width = original_size.first; int original_height = original_size.second; std::pair<int, int> best_fit; int max_effective_resolution = 0; int min_wasted_resolution = std::numeric_limits<int>::max(); for (const auto& resolution : possible_resolutions) { int width = resolution.first; int height = resolution.second; float scale = std::min(static_cast<float>(width) / original_width, static_cast<float>(height) / original_height); int downscaled_width = static_cast<int>(original_width * scale); int downscaled_height = static_cast<int>(original_height * scale); int effective_resolution = std::min(downscaled_width * downscaled_height, original_width * original_height); int wasted_resolution = (width * height) - effective_resolution; // LOG_DBG("resolution: %d %d, scale: %f, downscaled: %d %d, effective: %d, wasted: %d\n", width, height, scale, downscaled_width, downscaled_height, effective_resolution, wasted_resolution); if (effective_resolution > max_effective_resolution || (effective_resolution == max_effective_resolution && wasted_resolution < min_wasted_resolution)) { max_effective_resolution = effective_resolution; min_wasted_resolution = wasted_resolution; best_fit = resolution; } } return best_fit; }
O0
cpp
select_best_resolution(std::pair<int, int> const&, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int>>> const&): subq $0x78, %rsp movq %rdi, 0x68(%rsp) movq %rsi, 0x60(%rsp) movq 0x68(%rsp), %rax movl (%rax), %eax movl %eax, 0x5c(%rsp) movq 0x68(%rsp), %rax movl 0x4(%rax), %eax movl %eax, 0x58(%rsp) leaq 0x70(%rsp), %rdi callq 0x757e0 movl $0x0, 0x54(%rsp) callq 0x75800 movl %eax, 0x50(%rsp) movq 0x60(%rsp), %rax movq %rax, 0x48(%rsp) movq 0x48(%rsp), %rdi callq 0x75810 movq %rax, 0x40(%rsp) movq 0x48(%rsp), %rdi callq 0x75840 movq %rax, 0x38(%rsp) leaq 0x40(%rsp), %rdi leaq 0x38(%rsp), %rsi callq 0x75870 testb $0x1, %al jne 0x73030 jmp 0x73151 leaq 0x40(%rsp), %rdi callq 0x758b0 movq %rax, 0x30(%rsp) movq 0x30(%rsp), %rax movl (%rax), %eax movl %eax, 0x2c(%rsp) movq 0x30(%rsp), %rax movl 0x4(%rax), %eax movl %eax, 0x28(%rsp) cvtsi2ssl 0x2c(%rsp), %xmm0 cvtsi2ssl 0x5c(%rsp), %xmm1 divss %xmm1, %xmm0 movss %xmm0, 0x20(%rsp) cvtsi2ssl 0x28(%rsp), %xmm0 cvtsi2ssl 0x58(%rsp), %xmm1 divss %xmm1, %xmm0 movss %xmm0, 0x1c(%rsp) leaq 0x20(%rsp), %rdi leaq 0x1c(%rsp), %rsi callq 0x758c0 movss (%rax), %xmm0 movss %xmm0, 0x24(%rsp) cvtsi2ssl 0x5c(%rsp), %xmm0 mulss 0x24(%rsp), %xmm0 cvttss2si %xmm0, %eax movl %eax, 0x18(%rsp) cvtsi2ssl 0x58(%rsp), %xmm0 mulss 0x24(%rsp), %xmm0 cvttss2si %xmm0, %eax movl %eax, 0x14(%rsp) movl 0x18(%rsp), %eax imull 0x14(%rsp), %eax movl %eax, 0xc(%rsp) movl 0x5c(%rsp), %eax imull 0x58(%rsp), %eax movl %eax, 0x8(%rsp) leaq 0xc(%rsp), %rdi leaq 0x8(%rsp), %rsi callq 0x75900 movl (%rax), %eax movl %eax, 0x10(%rsp) movl 0x2c(%rsp), %eax imull 0x28(%rsp), %eax subl 0x10(%rsp), %eax movl %eax, 0x4(%rsp) movl 0x10(%rsp), %eax cmpl 0x54(%rsp), %eax jg 0x73121 movl 0x10(%rsp), %eax cmpl 0x54(%rsp), %eax jne 0x73140 movl 0x4(%rsp), %eax cmpl 0x50(%rsp), %eax jge 0x73140 movl 0x10(%rsp), %eax movl %eax, 0x54(%rsp) movl 0x4(%rsp), %eax movl %eax, 0x50(%rsp) movq 0x30(%rsp), %rsi leaq 0x70(%rsp), %rdi callq 0x75940 jmp 0x73142 leaq 0x40(%rsp), %rdi callq 0x75970 jmp 0x73018 movq 0x70(%rsp), %rax addq $0x78, %rsp retq nopl (%rax,%rax)
_ZL22select_best_resolutionRKSt4pairIiiERKSt6vectorIS0_SaIS0_EE_0: sub rsp, 78h mov [rsp+78h+var_10], rdi mov [rsp+78h+var_18], rsi mov rax, [rsp+78h+var_10] mov eax, [rax] mov [rsp+78h+var_1C], eax mov rax, [rsp+78h+var_10] mov eax, [rax+4] mov [rsp+78h+var_20], eax lea rdi, [rsp+78h+var_8] call _ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv mov [rsp+78h+var_24], 0 call _ZNSt14numeric_limitsIiE3maxEv; std::numeric_limits<int>::max(void) mov [rsp+78h+var_28], eax mov rax, [rsp+78h+var_18] mov [rsp+78h+var_30], rax mov rdi, [rsp+78h+var_30] call _ZNKSt6vectorISt4pairIiiESaIS1_EE5beginEv; std::vector<std::pair<int,int>>::begin(void) mov [rsp+78h+var_38], rax mov rdi, [rsp+78h+var_30] call _ZNKSt6vectorISt4pairIiiESaIS1_EE3endEv; std::vector<std::pair<int,int>>::end(void) mov [rsp+78h+var_40], rax loc_73018: lea rdi, [rsp+78h+var_38] lea rsi, [rsp+78h+var_40] call _ZN9__gnu_cxxneIPKSt4pairIiiESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_; __gnu_cxx::operator!=<std::pair<int,int> const*,std::vector<std::pair<int,int>>>(__gnu_cxx::__normal_iterator<std::pair<int,int> const*,std::vector<std::pair<int,int>>> const&,__gnu_cxx::__normal_iterator<std::pair<int,int> const*,std::vector<std::pair<int,int>>> const&) test al, 1 jnz short loc_73030 jmp loc_73151 loc_73030: lea rdi, [rsp+78h+var_38] call _ZNK9__gnu_cxx17__normal_iteratorIPKSt4pairIiiESt6vectorIS2_SaIS2_EEEdeEv; __gnu_cxx::__normal_iterator<std::pair<int,int> const*,std::vector<std::pair<int,int>>>::operator*(void) mov [rsp+78h+var_48], rax mov rax, [rsp+78h+var_48] mov eax, [rax] mov [rsp+78h+var_4C], eax mov rax, [rsp+78h+var_48] mov eax, [rax+4] mov [rsp+78h+var_50], eax cvtsi2ss xmm0, [rsp+78h+var_4C] cvtsi2ss xmm1, [rsp+78h+var_1C] divss xmm0, xmm1 movss [rsp+78h+var_58], xmm0 cvtsi2ss xmm0, [rsp+78h+var_50] cvtsi2ss xmm1, [rsp+78h+var_20] divss xmm0, xmm1 movss [rsp+78h+var_5C], xmm0 lea rdi, [rsp+78h+var_58] lea rsi, [rsp+78h+var_5C] call _ZSt3minIfERKT_S2_S2_; std::min<float>(float const&,float const&) movss xmm0, dword ptr [rax] movss [rsp+78h+var_54], xmm0 cvtsi2ss xmm0, [rsp+78h+var_1C] mulss xmm0, [rsp+78h+var_54] cvttss2si eax, xmm0 mov [rsp+78h+var_60], eax cvtsi2ss xmm0, [rsp+78h+var_20] mulss xmm0, [rsp+78h+var_54] cvttss2si eax, xmm0 mov [rsp+78h+var_64], eax mov eax, [rsp+78h+var_60] imul eax, [rsp+78h+var_64] mov [rsp+78h+var_6C], eax mov eax, [rsp+78h+var_1C] imul eax, [rsp+78h+var_20] mov [rsp+78h+var_70], eax lea rdi, [rsp+78h+var_6C] lea rsi, [rsp+78h+var_70] call _ZSt3minIiERKT_S2_S2_; std::min<int>(int const&,int const&) mov eax, [rax] mov [rsp+78h+var_68], eax mov eax, [rsp+78h+var_4C] imul eax, [rsp+78h+var_50] sub eax, [rsp+78h+var_68] mov [rsp+78h+var_74], eax mov eax, [rsp+78h+var_68] cmp eax, [rsp+78h+var_24] jg short loc_73121 mov eax, [rsp+78h+var_68] cmp eax, [rsp+78h+var_24] jnz short loc_73140 mov eax, [rsp+78h+var_74] cmp eax, [rsp+78h+var_28] jge short loc_73140 loc_73121: mov eax, [rsp+78h+var_68] mov [rsp+78h+var_24], eax mov eax, [rsp+78h+var_74] mov [rsp+78h+var_28], eax mov rsi, [rsp+78h+var_48] lea rdi, [rsp+78h+var_8] call _ZNSt4pairIiiEaSERKS0_; std::pair<int,int>::operator=(std::pair<int,int> const&) loc_73140: jmp short $+2 loc_73142: lea rdi, [rsp+78h+var_38] call _ZN9__gnu_cxx17__normal_iteratorIPKSt4pairIiiESt6vectorIS2_SaIS2_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<int,int> const*,std::vector<std::pair<int,int>>>::operator++(void) jmp loc_73018 loc_73151: mov rax, [rsp+78h+var_8] add rsp, 78h retn
long long select_best_resolution(int *a1, long long a2) { int v3; // [rsp+8h] [rbp-70h] BYREF int v4; // [rsp+Ch] [rbp-6Ch] BYREF int v5; // [rsp+10h] [rbp-68h] int v6; // [rsp+14h] [rbp-64h] int v7; // [rsp+18h] [rbp-60h] float v8; // [rsp+1Ch] [rbp-5Ch] BYREF float v9; // [rsp+20h] [rbp-58h] BYREF float v10; // [rsp+24h] [rbp-54h] int v11; // [rsp+28h] [rbp-50h] int v12; // [rsp+2Ch] [rbp-4Ch] int *v13; // [rsp+30h] [rbp-48h] long long v14; // [rsp+38h] [rbp-40h] BYREF _QWORD v15[2]; // [rsp+40h] [rbp-38h] BYREF int v16; // [rsp+50h] [rbp-28h] int v17; // [rsp+54h] [rbp-24h] int v18; // [rsp+58h] [rbp-20h] int v19; // [rsp+5Ch] [rbp-1Ch] long long v20; // [rsp+60h] [rbp-18h] int *v21; // [rsp+68h] [rbp-10h] long long v22; // [rsp+70h] [rbp-8h] BYREF v21 = a1; v20 = a2; v19 = *a1; v18 = a1[1]; ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv(&v22); v17 = 0; v16 = std::numeric_limits<int>::max(); v15[1] = a2; v15[0] = std::vector<std::pair<int,int>>::begin(a2); v14 = std::vector<std::pair<int,int>>::end(a2); while ( (__gnu_cxx::operator!=<std::pair<int,int> const*,std::vector<std::pair<int,int>>>(v15, &v14) & 1) != 0 ) { v13 = (int *)__gnu_cxx::__normal_iterator<std::pair<int,int> const*,std::vector<std::pair<int,int>>>::operator*(v15); v12 = *v13; v11 = v13[1]; v9 = (float)v12 / (float)v19; v8 = (float)v11 / (float)v18; v10 = *(float *)std::min<float>(&v9, &v8); v7 = (int)(float)((float)v19 * v10); v6 = (int)(float)((float)v18 * v10); v4 = v6 * v7; v3 = v18 * v19; v5 = *(_DWORD *)std::min<int>(&v4, &v3); if ( v5 > v17 || v5 == v17 && v11 * v12 - v5 < v16 ) { v17 = v5; v16 = v11 * v12 - v5; std::pair<int,int>::operator=(&v22, v13); } __gnu_cxx::__normal_iterator<std::pair<int,int> const*,std::vector<std::pair<int,int>>>::operator++(v15); } return v22; }
select_best_resolution: SUB RSP,0x78 MOV qword ptr [RSP + 0x68],RDI MOV qword ptr [RSP + 0x60],RSI MOV RAX,qword ptr [RSP + 0x68] MOV EAX,dword ptr [RAX] MOV dword ptr [RSP + 0x5c],EAX MOV RAX,qword ptr [RSP + 0x68] MOV EAX,dword ptr [RAX + 0x4] MOV dword ptr [RSP + 0x58],EAX LEA RDI,[RSP + 0x70] CALL 0x001757e0 MOV dword ptr [RSP + 0x54],0x0 CALL 0x00175800 MOV dword ptr [RSP + 0x50],EAX MOV RAX,qword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x48],RAX MOV RDI,qword ptr [RSP + 0x48] CALL 0x00175810 MOV qword ptr [RSP + 0x40],RAX MOV RDI,qword ptr [RSP + 0x48] CALL 0x00175840 MOV qword ptr [RSP + 0x38],RAX LAB_00173018: LEA RDI,[RSP + 0x40] LEA RSI,[RSP + 0x38] CALL 0x00175870 TEST AL,0x1 JNZ 0x00173030 JMP 0x00173151 LAB_00173030: LEA RDI,[RSP + 0x40] CALL 0x001758b0 MOV qword ptr [RSP + 0x30],RAX MOV RAX,qword ptr [RSP + 0x30] MOV EAX,dword ptr [RAX] MOV dword ptr [RSP + 0x2c],EAX MOV RAX,qword ptr [RSP + 0x30] MOV EAX,dword ptr [RAX + 0x4] MOV dword ptr [RSP + 0x28],EAX CVTSI2SS XMM0,dword ptr [RSP + 0x2c] CVTSI2SS XMM1,dword ptr [RSP + 0x5c] DIVSS XMM0,XMM1 MOVSS dword ptr [RSP + 0x20],XMM0 CVTSI2SS XMM0,dword ptr [RSP + 0x28] CVTSI2SS XMM1,dword ptr [RSP + 0x58] DIVSS XMM0,XMM1 MOVSS dword ptr [RSP + 0x1c],XMM0 LEA RDI,[RSP + 0x20] LEA RSI,[RSP + 0x1c] CALL 0x001758c0 MOVSS XMM0,dword ptr [RAX] MOVSS dword ptr [RSP + 0x24],XMM0 CVTSI2SS XMM0,dword ptr [RSP + 0x5c] MULSS XMM0,dword ptr [RSP + 0x24] CVTTSS2SI EAX,XMM0 MOV dword ptr [RSP + 0x18],EAX CVTSI2SS XMM0,dword ptr [RSP + 0x58] MULSS XMM0,dword ptr [RSP + 0x24] CVTTSS2SI EAX,XMM0 MOV dword ptr [RSP + 0x14],EAX MOV EAX,dword ptr [RSP + 0x18] IMUL EAX,dword ptr [RSP + 0x14] MOV dword ptr [RSP + 0xc],EAX MOV EAX,dword ptr [RSP + 0x5c] IMUL EAX,dword ptr [RSP + 0x58] MOV dword ptr [RSP + 0x8],EAX LEA RDI,[RSP + 0xc] LEA RSI,[RSP + 0x8] CALL 0x00175900 MOV EAX,dword ptr [RAX] MOV dword ptr [RSP + 0x10],EAX MOV EAX,dword ptr [RSP + 0x2c] IMUL EAX,dword ptr [RSP + 0x28] SUB EAX,dword ptr [RSP + 0x10] MOV dword ptr [RSP + 0x4],EAX MOV EAX,dword ptr [RSP + 0x10] CMP EAX,dword ptr [RSP + 0x54] JG 0x00173121 MOV EAX,dword ptr [RSP + 0x10] CMP EAX,dword ptr [RSP + 0x54] JNZ 0x00173140 MOV EAX,dword ptr [RSP + 0x4] CMP EAX,dword ptr [RSP + 0x50] JGE 0x00173140 LAB_00173121: MOV EAX,dword ptr [RSP + 0x10] MOV dword ptr [RSP + 0x54],EAX MOV EAX,dword ptr [RSP + 0x4] MOV dword ptr [RSP + 0x50],EAX MOV RSI,qword ptr [RSP + 0x30] LEA RDI,[RSP + 0x70] CALL 0x00175940 LAB_00173140: JMP 0x00173142 LAB_00173142: LEA RDI,[RSP + 0x40] CALL 0x00175970 JMP 0x00173018 LAB_00173151: MOV RAX,qword ptr [RSP + 0x70] ADD RSP,0x78 RET
/* select_best_resolution(std::pair<int, int> const&, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int> > > const&) */ int8 select_best_resolution(pair *param_1,vector *param_2) { bool bVar1; int iVar2; float *pfVar3; int *piVar4; int local_70; int local_6c; int local_68; int local_64; int local_60; float local_5c; float local_58; float local_54; int local_50; int local_4c; pair *local_48; int8 local_40; int8 local_38; vector<std::pair<int,int>,std::allocator<std::pair<int,int>>> *local_30; int local_28; int local_24; int local_20; int local_1c; vector<std::pair<int,int>,std::allocator<std::pair<int,int>>> *local_18; pair *local_10; int8 local_8; local_1c = *(int *)param_1; local_20 = *(int *)(param_1 + 4); local_18 = (vector<std::pair<int,int>,std::allocator<std::pair<int,int>>> *)param_2; local_10 = param_1; _ZNSt4pairIiiEC2IiiTnNSt9enable_ifIXsr6__and_ISt37__is_implicitly_default_constructibleIT_ES3_IT0_EEE5valueEbE4typeELb1EEEv (&local_8); local_24 = 0; local_28 = std::numeric_limits<int>::max(); local_30 = local_18; local_38 = std::vector<std::pair<int,int>,std::allocator<std::pair<int,int>>>::begin(local_18); local_40 = std::vector<std::pair<int,int>,std::allocator<std::pair<int,int>>>::end(local_30); while( true ) { bVar1 = __gnu_cxx::operator!=((__normal_iterator *)&local_38,(__normal_iterator *)&local_40); if (!bVar1) break; local_48 = (pair *)__gnu_cxx:: __normal_iterator<std::pair<int,int>const*,std::vector<std::pair<int,int>,std::allocator<std::pair<int,int>>>> ::operator*((__normal_iterator<std::pair<int,int>const*,std::vector<std::pair<int,int>,std::allocator<std::pair<int,int>>>> *)&local_38); local_4c = *(int *)local_48; local_50 = *(int *)(local_48 + 4); local_58 = (float)local_4c / (float)local_1c; local_5c = (float)local_50 / (float)local_20; pfVar3 = std::min<float>(&local_58,&local_5c); local_54 = *pfVar3; local_60 = (int)((float)local_1c * local_54); local_64 = (int)((float)local_20 * local_54); local_6c = local_60 * local_64; local_70 = local_1c * local_20; piVar4 = std::min<int>(&local_6c,&local_70); local_68 = *piVar4; iVar2 = local_4c * local_50 - local_68; if ((local_24 < local_68) || ((local_68 == local_24 && (iVar2 < local_28)))) { local_28 = iVar2; local_24 = local_68; std::pair<int,int>::operator=((pair<int,int> *)&local_8,local_48); } __gnu_cxx:: __normal_iterator<std::pair<int,int>const*,std::vector<std::pair<int,int>,std::allocator<std::pair<int,int>>>> ::operator++((__normal_iterator<std::pair<int,int>const*,std::vector<std::pair<int,int>,std::allocator<std::pair<int,int>>>> *)&local_38); } return local_8; }
31,105
func_gb2312_uni_onechar
eloqsql/strings/ctype-gb2312.c
static int func_gb2312_uni_onechar(int code){ if ((code>=0x2121)&&(code<=0x2658)) return(tab_gb2312_uni0[code-0x2121]); if ((code>=0x2721)&&(code<=0x296F)) return(tab_gb2312_uni1[code-0x2721]); if ((code>=0x3021)&&(code<=0x777E)) return(tab_gb2312_uni2[code-0x3021]); return(0); }
O0
c
func_gb2312_uni_onechar: pushq %rbp movq %rsp, %rbp movl %edi, -0x8(%rbp) cmpl $0x2121, -0x8(%rbp) # imm = 0x2121 jl 0x8b9a4 cmpl $0x2658, -0x8(%rbp) # imm = 0x2658 jg 0x8b9a4 movl -0x8(%rbp), %eax subl $0x2121, %eax # imm = 0x2121 movslq %eax, %rcx leaq 0xc8ef5(%rip), %rax # 0x154890 movzwl (%rax,%rcx,2), %eax movl %eax, -0x4(%rbp) jmp 0x8ba05 cmpl $0x2721, -0x8(%rbp) # imm = 0x2721 jl 0x8b9d1 cmpl $0x296f, -0x8(%rbp) # imm = 0x296F jg 0x8b9d1 movl -0x8(%rbp), %eax subl $0x2721, %eax # imm = 0x2721 movslq %eax, %rcx leaq 0xc9938(%rip), %rax # 0x155300 movzwl (%rax,%rcx,2), %eax movl %eax, -0x4(%rbp) jmp 0x8ba05 cmpl $0x3021, -0x8(%rbp) # imm = 0x3021 jl 0x8b9fe cmpl $0x777e, -0x8(%rbp) # imm = 0x777E jg 0x8b9fe movl -0x8(%rbp), %eax subl $0x3021, %eax # imm = 0x3021 movslq %eax, %rcx leaq 0xc9dab(%rip), %rax # 0x1557a0 movzwl (%rax,%rcx,2), %eax movl %eax, -0x4(%rbp) jmp 0x8ba05 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopw (%rax,%rax)
func_gb2312_uni_onechar: push rbp mov rbp, rsp mov [rbp+var_8], edi cmp [rbp+var_8], 2121h jl short loc_8B9A4 cmp [rbp+var_8], 2658h jg short loc_8B9A4 mov eax, [rbp+var_8] sub eax, 2121h movsxd rcx, eax lea rax, tab_gb2312_uni0 movzx eax, word ptr [rax+rcx*2] mov [rbp+var_4], eax jmp short loc_8BA05 loc_8B9A4: cmp [rbp+var_8], 2721h jl short loc_8B9D1 cmp [rbp+var_8], 296Fh jg short loc_8B9D1 mov eax, [rbp+var_8] sub eax, 2721h movsxd rcx, eax lea rax, tab_gb2312_uni1 movzx eax, word ptr [rax+rcx*2] mov [rbp+var_4], eax jmp short loc_8BA05 loc_8B9D1: cmp [rbp+var_8], 3021h jl short loc_8B9FE cmp [rbp+var_8], 777Eh jg short loc_8B9FE mov eax, [rbp+var_8] sub eax, 3021h movsxd rcx, eax lea rax, tab_gb2312_uni2 movzx eax, word ptr [rax+rcx*2] mov [rbp+var_4], eax jmp short loc_8BA05 loc_8B9FE: mov [rbp+var_4], 0 loc_8BA05: mov eax, [rbp+var_4] pop rbp retn
long long func_gb2312_uni_onechar(int a1) { if ( a1 < 8481 || a1 > 9816 ) { if ( a1 < 10017 || a1 > 10607 ) { if ( a1 < 12321 || a1 > 30590 ) return 0; else return tab_gb2312_uni2[a1 - 12321]; } else { return tab_gb2312_uni1[a1 - 10017]; } } else { return tab_gb2312_uni0[a1 - 8481]; } }
func_gb2312_uni_onechar: PUSH RBP MOV RBP,RSP MOV dword ptr [RBP + -0x8],EDI CMP dword ptr [RBP + -0x8],0x2121 JL 0x0018b9a4 CMP dword ptr [RBP + -0x8],0x2658 JG 0x0018b9a4 MOV EAX,dword ptr [RBP + -0x8] SUB EAX,0x2121 MOVSXD RCX,EAX LEA RAX,[0x254890] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x4],EAX JMP 0x0018ba05 LAB_0018b9a4: CMP dword ptr [RBP + -0x8],0x2721 JL 0x0018b9d1 CMP dword ptr [RBP + -0x8],0x296f JG 0x0018b9d1 MOV EAX,dword ptr [RBP + -0x8] SUB EAX,0x2721 MOVSXD RCX,EAX LEA RAX,[0x255300] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x4],EAX JMP 0x0018ba05 LAB_0018b9d1: CMP dword ptr [RBP + -0x8],0x3021 JL 0x0018b9fe CMP dword ptr [RBP + -0x8],0x777e JG 0x0018b9fe MOV EAX,dword ptr [RBP + -0x8] SUB EAX,0x3021 MOVSXD RCX,EAX LEA RAX,[0x2557a0] MOVZX EAX,word ptr [RAX + RCX*0x2] MOV dword ptr [RBP + -0x4],EAX JMP 0x0018ba05 LAB_0018b9fe: MOV dword ptr [RBP + -0x4],0x0 LAB_0018ba05: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int2 func_gb2312_uni_onechar(int param_1) { int2 uVar1; if ((param_1 < 0x2121) || (0x2658 < param_1)) { if ((param_1 < 0x2721) || (0x296f < param_1)) { if ((param_1 < 0x3021) || (0x777e < param_1)) { uVar1 = 0; } else { uVar1 = *(int2 *)(tab_gb2312_uni2 + (long)(param_1 + -0x3021) * 2); } } else { uVar1 = *(int2 *)(tab_gb2312_uni1 + (long)(param_1 + -0x2721) * 2); } } else { uVar1 = *(int2 *)(tab_gb2312_uni0 + (long)(param_1 + -0x2121) * 2); } return uVar1; }
31,106
my_wc_mb_big5
eloqsql/strings/ctype-big5.c
static int my_wc_mb_big5(CHARSET_INFO *cs __attribute__((unused)), my_wc_t wc, uchar *s, uchar *e) { int code; if (s >= e) return MY_CS_TOOSMALL; if ((int) wc < 0x80) { s[0]= (uchar) wc; return 1; } if (!(code=func_uni_big5_onechar(wc))) return MY_CS_ILUNI; if (s+2>e) return MY_CS_TOOSMALL; s[0]=code>>8; s[1]=code&0xFF; return 2; }
O0
c
my_wc_mb_big5: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x20(%rbp), %rax cmpq -0x28(%rbp), %rax jb 0x68edb movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B jmp 0x68f54 movq -0x18(%rbp), %rax cmpl $0x80, %eax jge 0x68efb movq -0x18(%rbp), %rax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, (%rax) movl $0x1, -0x4(%rbp) jmp 0x68f54 movq -0x18(%rbp), %rax movl %eax, %edi callq 0x69250 movl %eax, -0x2c(%rbp) cmpl $0x0, %eax jne 0x68f17 movl $0x0, -0x4(%rbp) jmp 0x68f54 movq -0x20(%rbp), %rax addq $0x2, %rax cmpq -0x28(%rbp), %rax jbe 0x68f2e movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B jmp 0x68f54 movl -0x2c(%rbp), %eax sarl $0x8, %eax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, (%rax) movl -0x2c(%rbp), %eax andl $0xff, %eax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, 0x1(%rax) movl $0x2, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopl (%rax)
my_wc_mb_big5: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rax, [rbp+var_20] cmp rax, [rbp+var_28] jb short loc_68EDB mov [rbp+var_4], 0FFFFFF9Bh jmp short loc_68F54 loc_68EDB: mov rax, [rbp+var_18] cmp eax, 80h jge short loc_68EFB mov rax, [rbp+var_18] mov cl, al mov rax, [rbp+var_20] mov [rax], cl mov [rbp+var_4], 1 jmp short loc_68F54 loc_68EFB: mov rax, [rbp+var_18] mov edi, eax call func_uni_big5_onechar mov [rbp+var_2C], eax cmp eax, 0 jnz short loc_68F17 mov [rbp+var_4], 0 jmp short loc_68F54 loc_68F17: mov rax, [rbp+var_20] add rax, 2 cmp rax, [rbp+var_28] jbe short loc_68F2E mov [rbp+var_4], 0FFFFFF9Bh jmp short loc_68F54 loc_68F2E: mov eax, [rbp+var_2C] sar eax, 8 mov cl, al mov rax, [rbp+var_20] mov [rax], cl mov eax, [rbp+var_2C] and eax, 0FFh mov cl, al mov rax, [rbp+var_20] mov [rax+1], cl mov [rbp+var_4], 2 loc_68F54: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long my_wc_mb_big5(long long a1, int a2, _BYTE *a3, unsigned long long a4) { int v5; // [rsp+4h] [rbp-2Ch] if ( (unsigned long long)a3 < a4 ) { if ( a2 >= 128 ) { v5 = func_uni_big5_onechar((unsigned int)a2); if ( v5 ) { if ( (unsigned long long)(a3 + 2) <= a4 ) { *a3 = BYTE1(v5); a3[1] = v5; return 2; } else { return (unsigned int)-101; } } else { return 0; } } else { *a3 = a2; return 1; } } else { return (unsigned int)-101; } }
my_wc_mb_big5: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x28] JC 0x00168edb MOV dword ptr [RBP + -0x4],0xffffff9b JMP 0x00168f54 LAB_00168edb: MOV RAX,qword ptr [RBP + -0x18] CMP EAX,0x80 JGE 0x00168efb MOV RAX,qword ptr [RBP + -0x18] MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX],CL MOV dword ptr [RBP + -0x4],0x1 JMP 0x00168f54 LAB_00168efb: MOV RAX,qword ptr [RBP + -0x18] MOV EDI,EAX CALL 0x00169250 MOV dword ptr [RBP + -0x2c],EAX CMP EAX,0x0 JNZ 0x00168f17 MOV dword ptr [RBP + -0x4],0x0 JMP 0x00168f54 LAB_00168f17: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x2 CMP RAX,qword ptr [RBP + -0x28] JBE 0x00168f2e MOV dword ptr [RBP + -0x4],0xffffff9b JMP 0x00168f54 LAB_00168f2e: MOV EAX,dword ptr [RBP + -0x2c] SAR EAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX],CL MOV EAX,dword ptr [RBP + -0x2c] AND EAX,0xff MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x1],CL MOV dword ptr [RBP + -0x4],0x2 LAB_00168f54: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int4 my_wc_mb_big5(int8 param_1,int param_2,int1 *param_3,int1 *param_4) { int iVar1; int4 local_c; if (param_3 < param_4) { if (param_2 < 0x80) { *param_3 = (char)param_2; local_c = 1; } else { iVar1 = func_uni_big5_onechar(param_2); if (iVar1 == 0) { local_c = 0; } else if (param_4 < param_3 + 2) { local_c = 0xffffff9b; } else { *param_3 = (char)((uint)iVar1 >> 8); param_3[1] = (char)iVar1; local_c = 2; } } } else { local_c = 0xffffff9b; } return local_c; }
31,107
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::reset()
monkey531[P]llama/common/json.hpp
void reset() noexcept { token_buffer.clear(); token_string.clear(); token_string.push_back(char_traits<char_type>::to_char_type(current)); }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::reset(): pushq %rax movq %rdi, %rax movq $0x0, 0x58(%rdi) movq 0x50(%rdi), %rcx movb $0x0, (%rcx) addq $0x38, %rdi movq 0x38(%rax), %rcx cmpq %rcx, 0x40(%rax) je 0x5e92b movq %rcx, 0x40(%rax) movb 0x14(%rax), %al leaq 0x7(%rsp), %rsi movb %al, (%rsi) callq 0x5e7e0 popq %rax retq movq %rax, %rdi callq 0x26123
_ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5resetEv: push rax mov rax, rdi mov qword ptr [rdi+58h], 0 mov rcx, [rdi+50h] mov byte ptr [rcx], 0 add rdi, 38h ; '8' mov rcx, [rax+38h] cmp [rax+40h], rcx jz short loc_5E92B mov [rax+40h], rcx loc_5E92B: mov al, [rax+14h] lea rsi, [rsp+8+var_1] mov [rsi], al call _ZNSt6vectorIcSaIcEE12emplace_backIJcEEERcDpOT_; std::vector<char>::emplace_back<char>(char &&) pop rax retn mov rdi, rax call __clang_call_terminate
void __spoils<rdx,rcx,r8,r9,r10,r11,xmm4,xmm5> nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::reset( long long a1) { long long v2; // rdi long long v3; // rcx char v4; // [rsp+1h] [rbp-1h] BYREF *(_QWORD *)(a1 + 88) = 0LL; **(_BYTE **)(a1 + 80) = 0; v2 = a1 + 56; v3 = *(_QWORD *)(a1 + 56); if ( *(_QWORD *)(a1 + 64) != v3 ) *(_QWORD *)(a1 + 64) = v3; v4 = *(_BYTE *)(a1 + 20); std::vector<char>::emplace_back<char>(v2, &v4); }
reset: PUSH RAX MOV RAX,RDI MOV qword ptr [RDI + 0x58],0x0 MOV RCX,qword ptr [RDI + 0x50] MOV byte ptr [RCX],0x0 ADD RDI,0x38 MOV RCX,qword ptr [RAX + 0x38] CMP qword ptr [RAX + 0x40],RCX JZ 0x0015e92b MOV qword ptr [RAX + 0x40],RCX LAB_0015e92b: MOV AL,byte ptr [RAX + 0x14] LEA RSI,[RSP + 0x7] MOV byte ptr [RSI],AL LAB_0015e935: CALL 0x0015e7e0 POP RAX RET
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > > >::reset() */ int8 __thiscall nlohmann::json_abi_v3_11_3::detail:: lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::reset(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> *this) { int8 in_RAX; int8 uStack_8; *(int8 *)(this + 0x58) = 0; **(int1 **)(this + 0x50) = 0; if (*(long *)(this + 0x40) != *(long *)(this + 0x38)) { *(long *)(this + 0x40) = *(long *)(this + 0x38); } uStack_8 = CONCAT17(this[0x14],(int7)in_RAX); /* try { // try from 0015e935 to 0015e939 has its CatchHandler @ 0015e93c */ std::vector<char,std::allocator<char>>::emplace_back<char> ((vector<char,std::allocator<char>> *)(this + 0x38),(char *)((long)&uStack_8 + 7)); return uStack_8; }
31,108
ma_keylength
eloqsql/storage/maria/ma_search.c
uint _ma_keylength(MARIA_KEYDEF *keyinfo, const uchar *key) { reg1 HA_KEYSEG *keyseg; const uchar *start; if (! (keyinfo->flag & (HA_VAR_LENGTH_KEY | HA_BINARY_PACK_KEY))) return (keyinfo->keylength); start= key; for (keyseg=keyinfo->seg ; keyseg->type ; keyseg++) { if (keyseg->flag & HA_NULL_PART) if (!*key++) continue; if (keyseg->flag & (HA_SPACE_PACK | HA_BLOB_PART | HA_VAR_LENGTH_PART)) { uint length; get_key_length(length,key); key+=length; } else key+= keyseg->length; } return((uint) (key-start)+keyseg->length); }
O3
c
ma_keylength: testb $0x28, 0xa2(%rdi) je 0x5eac6 pushq %rbp movq %rsp, %rbp movq 0xc0(%rdi), %rax cmpb $0x0, 0x18(%rax) je 0x5eace movq %rsi, %rcx movzwl 0x12(%rax), %edx testb $0x10, %dl je 0x5ea83 cmpb $0x0, (%rcx) leaq 0x1(%rcx), %rcx je 0x5eab7 testb $0x29, %dl je 0x5ea9b movzbl (%rcx), %edx cmpq $0xff, %rdx je 0x5eaa1 movl $0x1, %edi jmp 0x5eab1 movzwl 0x14(%rax), %edx jmp 0x5eab4 movzwl 0x1(%rcx), %edx rolw $0x8, %dx movzwl %dx, %edx movl $0x3, %edi addq %rdi, %rcx addq %rdx, %rcx leaq 0x20(%rax), %rdx cmpb $0x0, 0x38(%rax) movq %rdx, %rax jne 0x5ea71 jmp 0x5ead4 movzwl 0xaa(%rdi), %eax retq movq %rsi, %rcx movq %rax, %rdx subl %esi, %ecx movzwl 0x14(%rdx), %eax addl %ecx, %eax popq %rbp retq
_ma_keylength: test byte ptr [rdi+0A2h], 28h jz short loc_5EAC6 push rbp mov rbp, rsp mov rax, [rdi+0C0h] cmp byte ptr [rax+18h], 0 jz short loc_5EACE mov rcx, rsi loc_5EA71: movzx edx, word ptr [rax+12h] test dl, 10h jz short loc_5EA83 cmp byte ptr [rcx], 0 lea rcx, [rcx+1] jz short loc_5EAB7 loc_5EA83: test dl, 29h jz short loc_5EA9B movzx edx, byte ptr [rcx] cmp rdx, 0FFh jz short loc_5EAA1 mov edi, 1 jmp short loc_5EAB1 loc_5EA9B: movzx edx, word ptr [rax+14h] jmp short loc_5EAB4 loc_5EAA1: movzx edx, word ptr [rcx+1] rol dx, 8 movzx edx, dx mov edi, 3 loc_5EAB1: add rcx, rdi loc_5EAB4: add rcx, rdx loc_5EAB7: lea rdx, [rax+20h] cmp byte ptr [rax+38h], 0 mov rax, rdx jnz short loc_5EA71 jmp short loc_5EAD4 loc_5EAC6: movzx eax, word ptr [rdi+0AAh] retn loc_5EACE: mov rcx, rsi mov rdx, rax loc_5EAD4: sub ecx, esi movzx eax, word ptr [rdx+14h] add eax, ecx pop rbp retn
long long ma_keylength(long long a1, unsigned __int8 *a2) { long long v2; // rax unsigned __int8 *v3; // rcx __int16 v4; // dx bool v5; // zf long long v6; // rdx long long v7; // rdi long long v8; // rdx if ( (*(_BYTE *)(a1 + 162) & 0x28) == 0 ) return *(unsigned __int16 *)(a1 + 170); v2 = *(_QWORD *)(a1 + 192); if ( *(_BYTE *)(v2 + 24) ) { v3 = a2; do { v4 = *(_WORD *)(v2 + 18); if ( (v4 & 0x10) == 0 || (v5 = *v3 == 0, ++v3, !v5) ) { if ( (v4 & 0x29) != 0 ) { v6 = *v3; if ( v6 == 255 ) { v6 = (unsigned __int16)__ROL2__(*(_WORD *)(v3 + 1), 8); v7 = 3LL; } else { v7 = 1LL; } v3 += v7; } else { v6 = *(unsigned __int16 *)(v2 + 20); } v3 += v6; } v8 = v2 + 32; v5 = *(_BYTE *)(v2 + 56) == 0; v2 += 32LL; } while ( !v5 ); } else { LODWORD(v3) = (_DWORD)a2; v8 = *(_QWORD *)(a1 + 192); } return (_DWORD)v3 - (_DWORD)a2 + (unsigned int)*(unsigned __int16 *)(v8 + 20); }
_ma_keylength: TEST byte ptr [RDI + 0xa2],0x28 JZ 0x0015eac6 PUSH RBP MOV RBP,RSP MOV RAX,qword ptr [RDI + 0xc0] CMP byte ptr [RAX + 0x18],0x0 JZ 0x0015eace MOV RCX,RSI LAB_0015ea71: MOVZX EDX,word ptr [RAX + 0x12] TEST DL,0x10 JZ 0x0015ea83 CMP byte ptr [RCX],0x0 LEA RCX,[RCX + 0x1] JZ 0x0015eab7 LAB_0015ea83: TEST DL,0x29 JZ 0x0015ea9b MOVZX EDX,byte ptr [RCX] CMP RDX,0xff JZ 0x0015eaa1 MOV EDI,0x1 JMP 0x0015eab1 LAB_0015ea9b: MOVZX EDX,word ptr [RAX + 0x14] JMP 0x0015eab4 LAB_0015eaa1: MOVZX EDX,word ptr [RCX + 0x1] ROL DX,0x8 MOVZX EDX,DX MOV EDI,0x3 LAB_0015eab1: ADD RCX,RDI LAB_0015eab4: ADD RCX,RDX LAB_0015eab7: LEA RDX,[RAX + 0x20] CMP byte ptr [RAX + 0x38],0x0 MOV RAX,RDX JNZ 0x0015ea71 JMP 0x0015ead4 LAB_0015eac6: MOVZX EAX,word ptr [RDI + 0xaa] RET LAB_0015eace: MOV RCX,RSI MOV RDX,RAX LAB_0015ead4: SUB ECX,ESI MOVZX EAX,word ptr [RDX + 0x14] ADD EAX,ECX POP RBP RET
uint _ma_keylength(long param_1,byte *param_2) { char cVar1; byte bVar2; long lVar3; ulong uVar4; int iVar5; long lVar6; iVar5 = (int)param_2; if ((*(byte *)(param_1 + 0xa2) & 0x28) == 0) { return (uint)*(ushort *)(param_1 + 0xaa); } cVar1 = *(char *)(*(long *)(param_1 + 0xc0) + 0x18); lVar3 = *(long *)(param_1 + 0xc0); while (cVar1 != '\0') { if (((*(ushort *)(lVar3 + 0x12) & 0x10) == 0) || (bVar2 = *param_2, param_2 = param_2 + 1, bVar2 != 0)) { if ((*(ushort *)(lVar3 + 0x12) & 0x29) == 0) { uVar4 = (ulong)*(ushort *)(lVar3 + 0x14); } else { uVar4 = (ulong)*param_2; if (uVar4 == 0xff) { uVar4 = (ulong)(ushort)(*(ushort *)(param_2 + 1) << 8 | *(ushort *)(param_2 + 1) >> 8); lVar6 = 3; } else { lVar6 = 1; } param_2 = param_2 + lVar6; } param_2 = param_2 + uVar4; } cVar1 = *(char *)(lVar3 + 0x38); lVar3 = lVar3 + 0x20; } return (uint)*(ushort *)(lVar3 + 0x14) + ((int)param_2 - iVar5); }
31,109
my_create_with_symlink
eloqsql/mysys/my_symlink2.c
File my_create_with_symlink(const char *linkname, const char *filename, int createflags, int access_flags, myf MyFlags) { File file; int tmp_errno; /* Test if we should create a link */ int create_link; char abs_linkname[FN_REFLEN]; DBUG_ENTER("my_create_with_symlink"); DBUG_PRINT("enter", ("linkname: %s filename: %s", linkname ? linkname : "(NULL)", filename ? filename : "(NULL)")); if (my_disable_symlinks) { DBUG_PRINT("info", ("Symlinks disabled")); /* Create only the file, not the link and file */ create_link= 0; if (linkname) filename= linkname; } else { if (linkname) my_realpath(abs_linkname, linkname, MYF(0)); create_link= (linkname && strcmp(abs_linkname,filename)); } if (!(MyFlags & MY_DELETE_OLD)) { if (!access(filename,F_OK)) { my_errno= errno= EEXIST; my_error(EE_CANTCREATEFILE, MYF(0), filename, EEXIST); DBUG_RETURN(-1); } if (create_link && !access(linkname,F_OK)) { my_errno= errno= EEXIST; my_error(EE_CANTCREATEFILE, MYF(0), linkname, EEXIST); DBUG_RETURN(-1); } } if ((file=my_create(filename, createflags, access_flags, MyFlags)) >= 0) { if (create_link) { /* Delete old link/file */ if (MyFlags & MY_DELETE_OLD) my_delete(linkname, MYF(0)); /* Create link */ if (my_symlink(filename, linkname, MyFlags)) { /* Fail, remove everything we have done */ tmp_errno=my_errno; my_close(file,MYF(0)); my_delete(filename, MYF(0)); file= -1; my_errno=tmp_errno; } } } DBUG_RETURN(file); }
O3
c
my_create_with_symlink: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x218, %rsp # imm = 0x218 movq %r8, %r15 movq %rsi, %rbx movq %rdi, %r14 movq %fs:0x28, %rax movq %rax, -0x30(%rbp) leaq 0xb67f9b(%rip), %rax # 0xc0a69c cmpb $0x0, (%rax) je 0xa2712 testq %r14, %r14 cmovneq %r14, %rbx xorl %r13d, %r13d jmp 0xa274c testq %r14, %r14 je 0xa270d leaq -0x230(%rbp), %rdi movq %r14, %rsi movl %edx, %r13d xorl %edx, %edx movl %ecx, %r12d callq 0xa249d leaq -0x230(%rbp), %rdi movq %rbx, %rsi callq 0x29610 movl %r13d, %edx movl %r12d, %ecx xorl %r13d, %r13d testl %eax, %eax setne %r13b btl $0x8, %r15d jb 0xa2797 movl %edx, -0x234(%rbp) movl %ecx, %r12d movq %rbx, %rdi xorl %esi, %esi callq 0x290d0 testl %eax, %eax je 0xa2803 testl %r13d, %r13d movl %r12d, %ecx movl -0x234(%rbp), %edx je 0xa2797 movq %r14, %rdi xorl %esi, %esi callq 0x290d0 movl -0x234(%rbp), %edx movl %r12d, %ecx testl %eax, %eax je 0xa2825 movq %rbx, %rdi movl %edx, %esi movl %ecx, %edx movq %r15, %rcx callq 0x9f480 movl %eax, %r12d testl %eax, %eax js 0xa2854 testl %r13d, %r13d je 0xa2854 btl $0x8, %r15d jae 0xa27cb movq %r14, %rdi xorl %esi, %esi callq 0x9f508 movq %rbx, %rdi movq %r14, %rsi movq %r15, %rdx callq 0xa23d9 testl %eax, %eax je 0xa2854 callq 0xa319a movl (%rax), %r14d movl %r12d, %edi xorl %esi, %esi callq 0xa1ac1 movq %rbx, %rdi xorl %esi, %esi callq 0x9f508 callq 0xa319a movl %r14d, (%rax) jmp 0xa284e callq 0x29720 movl $0x11, %r14d movl %r14d, (%rax) callq 0xa319a movl %r14d, (%rax) movl $0x1, %edi xorl %esi, %esi movq %rbx, %rdx jmp 0xa2842 callq 0x29720 movl $0x11, %ebx movl %ebx, (%rax) callq 0xa319a movl %ebx, (%rax) movl $0x1, %edi xorl %esi, %esi movq %r14, %rdx movl $0x11, %ecx xorl %eax, %eax callq 0x9f77f movl $0xffffffff, %r12d # imm = 0xFFFFFFFF movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0xa2878 movl %r12d, %eax addq $0x218, %rsp # imm = 0x218 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x29220
my_create_with_symlink: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 218h mov r15, r8 mov rbx, rsi mov r14, rdi mov rax, fs:28h mov [rbp+var_30], rax lea rax, my_disable_symlinks cmp byte ptr [rax], 0 jz short loc_A2712 test r14, r14 cmovnz rbx, r14 loc_A270D: xor r13d, r13d jmp short loc_A274C loc_A2712: test r14, r14 jz short loc_A270D lea rdi, [rbp+var_230] mov rsi, r14 mov r13d, edx xor edx, edx mov r12d, ecx call my_realpath lea rdi, [rbp+var_230] mov rsi, rbx call _strcmp mov edx, r13d mov ecx, r12d xor r13d, r13d test eax, eax setnz r13b loc_A274C: bt r15d, 8 jb short loc_A2797 mov [rbp+var_234], edx mov r12d, ecx mov rdi, rbx xor esi, esi call _access test eax, eax jz loc_A2803 test r13d, r13d mov ecx, r12d mov edx, [rbp+var_234] jz short loc_A2797 mov rdi, r14 xor esi, esi call _access mov edx, [rbp+var_234] mov ecx, r12d test eax, eax jz loc_A2825 loc_A2797: mov rdi, rbx mov esi, edx mov edx, ecx mov rcx, r15 call my_create mov r12d, eax test eax, eax js loc_A2854 test r13d, r13d jz loc_A2854 bt r15d, 8 jnb short loc_A27CB mov rdi, r14 xor esi, esi call my_delete loc_A27CB: mov rdi, rbx mov rsi, r14 mov rdx, r15 call my_symlink test eax, eax jz short loc_A2854 call _my_thread_var mov r14d, [rax] mov edi, r12d xor esi, esi call my_close mov rdi, rbx xor esi, esi call my_delete call _my_thread_var mov [rax], r14d jmp short loc_A284E loc_A2803: call ___errno_location mov r14d, 11h mov [rax], r14d call _my_thread_var mov [rax], r14d mov edi, 1 xor esi, esi mov rdx, rbx jmp short loc_A2842 loc_A2825: call ___errno_location mov ebx, 11h mov [rax], ebx call _my_thread_var mov [rax], ebx mov edi, 1 xor esi, esi mov rdx, r14 loc_A2842: mov ecx, 11h xor eax, eax call my_error loc_A284E: mov r12d, 0FFFFFFFFh loc_A2854: mov rax, fs:28h cmp rax, [rbp+var_30] jnz short loc_A2878 mov eax, r12d add rsp, 218h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_A2878: call ___stack_chk_fail
long long my_create_with_symlink(long long a1, long long a2, unsigned int a3, int a4, long long a5) { long long v6; // rbx BOOL v7; // r13d unsigned int v8; // r13d int v9; // r12d int v10; // eax int v11; // r12d int v12; // eax int v13; // r12d int v14; // r14d unsigned int v16; // [rsp+Ch] [rbp-234h] _BYTE v17[512]; // [rsp+10h] [rbp-230h] BYREF unsigned long long v18; // [rsp+210h] [rbp-30h] v6 = a2; v18 = __readfsqword(0x28u); if ( my_disable_symlinks ) { if ( a1 ) v6 = a1; goto LABEL_4; } if ( !a1 ) { LABEL_4: v7 = 0; goto LABEL_7; } v8 = a3; v9 = a4; my_realpath((long long)v17, a1, 0); v10 = strcmp(v17, a2); a3 = v8; a4 = v9; v7 = v10 != 0; LABEL_7: if ( (a5 & 0x100) == 0 ) { v16 = a3; v11 = a4; if ( !(unsigned int)access(v6, 0LL) ) { *(_DWORD *)__errno_location(v6) = 17; *(_DWORD *)my_thread_var(v6) = 17; my_error(1u, 0LL, v6, 17LL); return (unsigned int)-1; } a4 = v11; a3 = v16; if ( v7 ) { v12 = access(a1, 0LL); a3 = v16; a4 = v11; if ( !v12 ) { *(_DWORD *)__errno_location(a1) = 17; *(_DWORD *)my_thread_var(a1) = 17; my_error(1u, 0LL, a1, 17LL); return (unsigned int)-1; } } } v13 = my_create(v6, a3, a4, a5); if ( v13 >= 0 && v7 ) { if ( (a5 & 0x100) != 0 ) my_delete(a1, 0LL); if ( (unsigned int)my_symlink(v6, a1, a5) ) { v14 = *(_DWORD *)my_thread_var(v6); my_close((unsigned int)v13, 0); my_delete(v6, 0LL); *(_DWORD *)my_thread_var(v6) = v14; return (unsigned int)-1; } } return (unsigned int)v13; }
my_create_with_symlink: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x218 MOV R15,R8 MOV RBX,RSI MOV R14,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX LEA RAX,[0xd0a69c] CMP byte ptr [RAX],0x0 JZ 0x001a2712 TEST R14,R14 CMOVNZ RBX,R14 LAB_001a270d: XOR R13D,R13D JMP 0x001a274c LAB_001a2712: TEST R14,R14 JZ 0x001a270d LEA RDI,[RBP + -0x230] MOV RSI,R14 MOV R13D,EDX XOR EDX,EDX MOV R12D,ECX CALL 0x001a249d LEA RDI,[RBP + -0x230] MOV RSI,RBX CALL 0x00129610 MOV EDX,R13D MOV ECX,R12D XOR R13D,R13D TEST EAX,EAX SETNZ R13B LAB_001a274c: BT R15D,0x8 JC 0x001a2797 MOV dword ptr [RBP + -0x234],EDX MOV R12D,ECX MOV RDI,RBX XOR ESI,ESI CALL 0x001290d0 TEST EAX,EAX JZ 0x001a2803 TEST R13D,R13D MOV ECX,R12D MOV EDX,dword ptr [RBP + -0x234] JZ 0x001a2797 MOV RDI,R14 XOR ESI,ESI CALL 0x001290d0 MOV EDX,dword ptr [RBP + -0x234] MOV ECX,R12D TEST EAX,EAX JZ 0x001a2825 LAB_001a2797: MOV RDI,RBX MOV ESI,EDX MOV EDX,ECX MOV RCX,R15 CALL 0x0019f480 MOV R12D,EAX TEST EAX,EAX JS 0x001a2854 TEST R13D,R13D JZ 0x001a2854 BT R15D,0x8 JNC 0x001a27cb MOV RDI,R14 XOR ESI,ESI CALL 0x0019f508 LAB_001a27cb: MOV RDI,RBX MOV RSI,R14 MOV RDX,R15 CALL 0x001a23d9 TEST EAX,EAX JZ 0x001a2854 CALL 0x001a319a MOV R14D,dword ptr [RAX] MOV EDI,R12D XOR ESI,ESI CALL 0x001a1ac1 MOV RDI,RBX XOR ESI,ESI CALL 0x0019f508 CALL 0x001a319a MOV dword ptr [RAX],R14D JMP 0x001a284e LAB_001a2803: CALL 0x00129720 MOV R14D,0x11 MOV dword ptr [RAX],R14D CALL 0x001a319a MOV dword ptr [RAX],R14D MOV EDI,0x1 XOR ESI,ESI MOV RDX,RBX JMP 0x001a2842 LAB_001a2825: CALL 0x00129720 MOV EBX,0x11 MOV dword ptr [RAX],EBX CALL 0x001a319a MOV dword ptr [RAX],EBX MOV EDI,0x1 XOR ESI,ESI MOV RDX,R14 LAB_001a2842: MOV ECX,0x11 XOR EAX,EAX CALL 0x0019f77f LAB_001a284e: MOV R12D,0xffffffff LAB_001a2854: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x001a2878 MOV EAX,R12D ADD RSP,0x218 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001a2878: CALL 0x00129220
int my_create_with_symlink (char *param_1,char *param_2,int4 param_3,int4 param_4,int8 param_5) { int4 uVar1; int iVar2; int iVar3; int4 *puVar4; int *piVar5; long in_FS_OFFSET; bool bVar6; char local_238 [512]; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); if (my_disable_symlinks == '\0') { if (param_1 == (char *)0x0) goto LAB_001a270d; my_realpath(local_238,param_1,0); iVar2 = strcmp(local_238,param_2); bVar6 = iVar2 != 0; } else { if (param_1 != (char *)0x0) { param_2 = param_1; } LAB_001a270d: bVar6 = false; } if (((uint)param_5 >> 8 & 1) == 0) { iVar2 = access(param_2,0); if (iVar2 != 0) { if (bVar6) { iVar2 = access(param_1,0); if (iVar2 == 0) { piVar5 = __errno_location(); *piVar5 = 0x11; puVar4 = (int4 *)_my_thread_var(); *puVar4 = 0x11; param_2 = param_1; goto LAB_001a2842; } } goto LAB_001a2797; } piVar5 = __errno_location(); *piVar5 = 0x11; puVar4 = (int4 *)_my_thread_var(); *puVar4 = 0x11; LAB_001a2842: my_error(1,0,param_2,0x11); } else { LAB_001a2797: iVar2 = my_create(param_2,param_3,param_4,param_5); if ((iVar2 < 0) || (!bVar6)) goto LAB_001a2854; if (((uint)param_5 >> 8 & 1) != 0) { my_delete(param_1,0); } iVar3 = my_symlink(param_2,param_1,param_5); if (iVar3 == 0) goto LAB_001a2854; puVar4 = (int4 *)_my_thread_var(); uVar1 = *puVar4; my_close(iVar2,0); my_delete(param_2,0); puVar4 = (int4 *)_my_thread_var(); *puVar4 = uVar1; } iVar2 = -1; LAB_001a2854: if (*(long *)(in_FS_OFFSET + 0x28) == local_38) { return iVar2; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
31,110
my_uca_scanner_contraction_find
eloqsql/strings/ctype-uca.c
static const MY_CONTRACTION * my_uca_scanner_contraction_find(my_uca_scanner *scanner, my_wc_t *wc, size_t max_char_length) { size_t clen= 1; int flag; const uchar *s, *beg[MY_UCA_MAX_CONTRACTION]; memset((void*) beg, 0, sizeof(beg)); /* Scan all contraction candidates */ for (s= scanner->sbeg, flag= MY_UCA_CNT_MID1; clen < max_char_length; flag<<= 1) { int mblen; if ((mblen= my_ci_mb_wc(scanner->cs, &wc[clen], s, scanner->send)) <= 0) break; beg[clen]= s= s + mblen; if (!my_uca_can_be_contraction_part(&scanner->level->contractions, wc[clen++], flag)) break; } /* Find among candidates the longest real contraction */ for ( ; clen > 1; clen--) { const MY_CONTRACTION *cnt; if (my_uca_can_be_contraction_tail(&scanner->level->contractions, wc[clen - 1]) && (cnt= my_uca_contraction_find(&scanner->level->contractions, wc, clen))) { scanner->wbeg= cnt->weight + 1; scanner->sbeg= beg[clen - 1]; return cnt; } } return NULL; /* No contractions were found */ }
O0
c
my_uca_scanner_contraction_find: pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq $0x1, -0x28(%rbp) leaq -0x70(%rbp), %rdi xorl %esi, %esi movl $0x30, %edx callq 0x24180 movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x38(%rbp) movl $0x4, -0x2c(%rbp) movq -0x28(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0x5184a movq -0x10(%rbp), %rax movq 0x30(%rax), %rax movq 0xb8(%rax), %rax movq 0x28(%rax), %rax movq -0x10(%rbp), %rcx movq 0x30(%rcx), %rdi movq -0x18(%rbp), %rsi movq -0x28(%rbp), %rcx shlq $0x3, %rcx addq %rcx, %rsi movq -0x38(%rbp), %rdx movq -0x10(%rbp), %rcx movq 0x10(%rcx), %rcx callq *%rax movl %eax, -0x74(%rbp) cmpl $0x0, %eax jg 0x517f2 jmp 0x5184a movq -0x38(%rbp), %rcx movslq -0x74(%rbp), %rax addq %rax, %rcx movq %rcx, -0x38(%rbp) movq -0x28(%rbp), %rax movq %rcx, -0x70(%rbp,%rax,8) movq -0x10(%rbp), %rax movq 0x18(%rax), %rdi addq $0x18, %rdi movq -0x18(%rbp), %rax movq -0x28(%rbp), %rcx movq %rcx, %rdx addq $0x1, %rdx movq %rdx, -0x28(%rbp) movq (%rax,%rcx,8), %rsi movl -0x2c(%rbp), %edx callq 0x51900 cmpb $0x0, %al jne 0x5183b jmp 0x5184a jmp 0x5183d movl -0x2c(%rbp), %eax shll %eax movl %eax, -0x2c(%rbp) jmp 0x517a2 jmp 0x5184c cmpq $0x1, -0x28(%rbp) jbe 0x518e8 movq -0x10(%rbp), %rax movq 0x18(%rax), %rdi addq $0x18, %rdi movq -0x18(%rbp), %rax movq -0x28(%rbp), %rcx subq $0x1, %rcx movq (%rax,%rcx,8), %rsi callq 0x48af0 movsbl %al, %eax cmpl $0x0, %eax je 0x518d5 movq -0x10(%rbp), %rax movq 0x18(%rax), %rdi addq $0x18, %rdi movq -0x18(%rbp), %rsi movq -0x28(%rbp), %rdx callq 0x50f20 movq %rax, -0x80(%rbp) cmpq $0x0, %rax je 0x518d5 movq -0x80(%rbp), %rcx addq $0x30, %rcx addq $0x2, %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) movq -0x28(%rbp), %rax subq $0x1, %rax movq -0x70(%rbp,%rax,8), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x80(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x518f0 jmp 0x518d7 movq -0x28(%rbp), %rax addq $-0x1, %rax movq %rax, -0x28(%rbp) jmp 0x5184c movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x80, %rsp popq %rbp retq nopl (%rax)
my_uca_scanner_contraction_find: push rbp mov rbp, rsp sub rsp, 80h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], 1 lea rdi, [rbp+var_70] xor esi, esi mov edx, 30h ; '0' call _memset mov rax, [rbp+var_10] mov rax, [rax+8] mov [rbp+var_38], rax mov [rbp+var_2C], 4 loc_517A2: mov rax, [rbp+var_28] cmp rax, [rbp+var_20] jnb loc_5184A mov rax, [rbp+var_10] mov rax, [rax+30h] mov rax, [rax+0B8h] mov rax, [rax+28h] mov rcx, [rbp+var_10] mov rdi, [rcx+30h] mov rsi, [rbp+var_18] mov rcx, [rbp+var_28] shl rcx, 3 add rsi, rcx mov rdx, [rbp+var_38] mov rcx, [rbp+var_10] mov rcx, [rcx+10h] call rax mov [rbp+var_74], eax cmp eax, 0 jg short loc_517F2 jmp short loc_5184A loc_517F2: mov rcx, [rbp+var_38] movsxd rax, [rbp+var_74] add rcx, rax mov [rbp+var_38], rcx mov rax, [rbp+var_28] mov [rbp+rax*8+var_70], rcx mov rax, [rbp+var_10] mov rdi, [rax+18h] add rdi, 18h mov rax, [rbp+var_18] mov rcx, [rbp+var_28] mov rdx, rcx add rdx, 1 mov [rbp+var_28], rdx mov rsi, [rax+rcx*8] mov edx, [rbp+var_2C] call my_uca_can_be_contraction_part cmp al, 0 jnz short loc_5183B jmp short loc_5184A loc_5183B: jmp short $+2 loc_5183D: mov eax, [rbp+var_2C] shl eax, 1 mov [rbp+var_2C], eax jmp loc_517A2 loc_5184A: jmp short $+2 loc_5184C: cmp [rbp+var_28], 1 jbe loc_518E8 mov rax, [rbp+var_10] mov rdi, [rax+18h] add rdi, 18h mov rax, [rbp+var_18] mov rcx, [rbp+var_28] sub rcx, 1 mov rsi, [rax+rcx*8] call my_uca_can_be_contraction_tail movsx eax, al cmp eax, 0 jz short loc_518D5 mov rax, [rbp+var_10] mov rdi, [rax+18h] add rdi, 18h mov rsi, [rbp+var_18] mov rdx, [rbp+var_28] call my_uca_contraction_find mov [rbp+var_80], rax cmp rax, 0 jz short loc_518D5 mov rcx, [rbp+var_80] add rcx, 30h ; '0' add rcx, 2 mov rax, [rbp+var_10] mov [rax], rcx mov rax, [rbp+var_28] sub rax, 1 mov rcx, [rbp+rax*8+var_70] mov rax, [rbp+var_10] mov [rax+8], rcx mov rax, [rbp+var_80] mov [rbp+var_8], rax jmp short loc_518F0 loc_518D5: jmp short $+2 loc_518D7: mov rax, [rbp+var_28] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_28], rax jmp loc_5184C loc_518E8: mov [rbp+var_8], 0 loc_518F0: mov rax, [rbp+var_8] add rsp, 80h pop rbp retn
unsigned long long my_uca_scanner_contraction_find(_QWORD *a1, long long a2, unsigned long long a3) { long long v3; // rdi unsigned long long v4; // rcx unsigned long long v6; // [rsp+0h] [rbp-80h] int v7; // [rsp+Ch] [rbp-74h] _QWORD v8[7]; // [rsp+10h] [rbp-70h] BYREF long long v9; // [rsp+48h] [rbp-38h] unsigned int i; // [rsp+54h] [rbp-2Ch] unsigned long long v11; // [rsp+58h] [rbp-28h] unsigned long long v12; // [rsp+60h] [rbp-20h] long long v13; // [rsp+68h] [rbp-18h] _QWORD *v14; // [rsp+70h] [rbp-10h] v14 = a1; v13 = a2; v12 = a3; v11 = 1LL; memset(v8, 0LL, 48LL); v9 = v14[1]; for ( i = 4; v11 < v12; i *= 2 ) { v7 = (*(long long ( **)(_QWORD, unsigned long long, long long, _QWORD))(*(_QWORD *)(v14[6] + 184LL) + 40LL))( v14[6], 8 * v11 + v13, v9, v14[2]); if ( v7 <= 0 ) break; v9 += v7; v8[v11] = v9; v3 = v14[3] + 24LL; v4 = v11++; if ( !(unsigned __int8)my_uca_can_be_contraction_part(v3, *(_QWORD *)(v13 + 8 * v4), i) ) break; } while ( v11 > 1 ) { if ( (unsigned __int8)my_uca_can_be_contraction_tail(v14[3] + 24LL, *(_QWORD *)(v13 + 8 * (v11 - 1))) ) { v6 = my_uca_contraction_find((_QWORD *)(v14[3] + 24LL), v13, v11); if ( v6 ) { *v14 = v6 + 50; v14[1] = v8[v11 - 1]; return v6; } } --v11; } return 0LL; }
my_uca_scanner_contraction_find: PUSH RBP MOV RBP,RSP SUB RSP,0x80 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],0x1 LEA RDI,[RBP + -0x70] XOR ESI,ESI MOV EDX,0x30 CALL 0x00124180 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x38],RAX MOV dword ptr [RBP + -0x2c],0x4 LAB_001517a2: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x20] JNC 0x0015184a MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x30] MOV RAX,qword ptr [RAX + 0xb8] MOV RAX,qword ptr [RAX + 0x28] MOV RCX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RCX + 0x30] MOV RSI,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x28] SHL RCX,0x3 ADD RSI,RCX MOV RDX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX + 0x10] CALL RAX MOV dword ptr [RBP + -0x74],EAX CMP EAX,0x0 JG 0x001517f2 JMP 0x0015184a LAB_001517f2: MOV RCX,qword ptr [RBP + -0x38] MOVSXD RAX,dword ptr [RBP + -0x74] ADD RCX,RAX MOV qword ptr [RBP + -0x38],RCX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + RAX*0x8 + -0x70],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x18] ADD RDI,0x18 MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x28] MOV RDX,RCX ADD RDX,0x1 MOV qword ptr [RBP + -0x28],RDX MOV RSI,qword ptr [RAX + RCX*0x8] MOV EDX,dword ptr [RBP + -0x2c] CALL 0x00151900 CMP AL,0x0 JNZ 0x0015183b JMP 0x0015184a LAB_0015183b: JMP 0x0015183d LAB_0015183d: MOV EAX,dword ptr [RBP + -0x2c] SHL EAX,0x1 MOV dword ptr [RBP + -0x2c],EAX JMP 0x001517a2 LAB_0015184a: JMP 0x0015184c LAB_0015184c: CMP qword ptr [RBP + -0x28],0x1 JBE 0x001518e8 MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x18] ADD RDI,0x18 MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x28] SUB RCX,0x1 MOV RSI,qword ptr [RAX + RCX*0x8] CALL 0x00148af0 MOVSX EAX,AL CMP EAX,0x0 JZ 0x001518d5 MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x18] ADD RDI,0x18 MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x28] CALL 0x00150f20 MOV qword ptr [RBP + -0x80],RAX CMP RAX,0x0 JZ 0x001518d5 MOV RCX,qword ptr [RBP + -0x80] ADD RCX,0x30 ADD RCX,0x2 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x28] SUB RAX,0x1 MOV RCX,qword ptr [RBP + RAX*0x8 + -0x70] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x8],RCX MOV RAX,qword ptr [RBP + -0x80] MOV qword ptr [RBP + -0x8],RAX JMP 0x001518f0 LAB_001518d5: JMP 0x001518d7 LAB_001518d7: MOV RAX,qword ptr [RBP + -0x28] ADD RAX,-0x1 MOV qword ptr [RBP + -0x28],RAX JMP 0x0015184c LAB_001518e8: MOV qword ptr [RBP + -0x8],0x0 LAB_001518f0: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x80 POP RBP RET
long my_uca_scanner_contraction_find(long *param_1,long param_2,ulong param_3) { char cVar1; int iVar2; long lVar3; long local_78 [7]; long local_40; int local_34; ulong local_30; ulong local_28; long local_20; long *local_18; local_30 = 1; local_28 = param_3; local_20 = param_2; local_18 = param_1; memset(local_78,0,0x30); local_40 = local_18[1]; local_34 = 4; while ((local_30 < local_28 && (iVar2 = (**(code **)(*(long *)(local_18[6] + 0xb8) + 0x28)) (local_18[6],local_20 + local_30 * 8,local_40,local_18[2]), 0 < iVar2))) { local_40 = local_40 + iVar2; local_78[local_30] = local_40; lVar3 = local_30 * 8; local_30 = local_30 + 1; cVar1 = my_uca_can_be_contraction_part (local_18[3] + 0x18,*(int8 *)(local_20 + lVar3),local_34); if (cVar1 == '\0') break; local_34 = local_34 << 1; } while( true ) { if (local_30 < 2) { return 0; } cVar1 = my_uca_can_be_contraction_tail (local_18[3] + 0x18,*(int8 *)(local_20 + (local_30 - 1) * 8)); if ((cVar1 != '\0') && (lVar3 = my_uca_contraction_find(local_18[3] + 0x18,local_20,local_30), lVar3 != 0)) break; local_30 = local_30 - 1; } *local_18 = lVar3 + 0x32; local_18[1] = local_78[local_30 - 1]; return lVar3; }
31,111
my_instr_bin
eloqsql/strings/ctype-bin.c
static uint my_instr_bin(CHARSET_INFO *cs __attribute__((unused)), const char *b, size_t b_length, const char *s, size_t s_length, my_match_t *match, uint nmatch) { register const uchar *str, *search, *end, *search_end; if (s_length <= b_length) { if (!s_length) { if (nmatch) { match->beg= 0; match->end= 0; match->mb_len= 0; } return 1; /* Empty string is always found */ } str= (const uchar*) b; search= (const uchar*) s; end= (const uchar*) b+b_length-s_length+1; search_end= (const uchar*) s + s_length; skip: while (str != end) { if ( (*str++) == (*search)) { register const uchar *i,*j; i= str; j= search+1; while (j != search_end) if ((*i++) != (*j++)) goto skip; if (nmatch > 0) { match[0].beg= 0; match[0].end= (uint) (str- (const uchar*)b-1); match[0].mb_len= match[0].end; if (nmatch > 1) { match[1].beg= match[0].end; match[1].end= (uint)(match[0].end+s_length); match[1].mb_len= match[1].end-match[1].beg; } } return 2; } } } return 0; }
O3
c
my_instr_bin: xorl %eax, %eax cmpq %rdx, %r8 ja 0x389ea pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx movl 0x10(%rbp), %r10d testq %r8, %r8 je 0x389b5 addq %rsi, %rdx subq %r8, %rdx incq %rdx movq %rsi, %rdi cmpq %rdx, %rdi je 0x389e4 movq %rdi, %r11 incq %rdi movb (%r11), %bl cmpb (%rcx), %bl jne 0x3894c movl $0x1, %ebx cmpq %rbx, %r8 je 0x3897f movb (%r11,%rbx), %r14b leaq 0x1(%rbx), %r15 cmpb (%rcx,%rbx), %r14b movq %r15, %rbx je 0x38967 jmp 0x3894c movl $0x2, %eax testl %r10d, %r10d je 0x389e4 movl $0x0, (%r9) notl %esi addl %esi, %edi movl %edi, 0x4(%r9) movl %edi, 0x8(%r9) cmpl $0x1, %r10d je 0x389e4 movl %edi, 0xc(%r9) addl %r8d, %edi movl $0x14, %ecx movl $0x10, %edx jmp 0x389d5 testl %r10d, %r10d je 0x389df movl $0x0, (%r9) movl $0x1, %eax movl $0x8, %ecx xorl %edi, %edi movl $0x4, %edx xorl %r8d, %r8d movl %edi, (%r9,%rdx) movl %r8d, (%r9,%rcx) jmp 0x389e4 movl $0x1, %eax popq %rbx popq %r14 popq %r15 popq %rbp retq
my_instr_bin: xor eax, eax cmp r8, rdx ja locret_389EA push rbp mov rbp, rsp push r15 push r14 push rbx mov r10d, [rbp+10h] test r8, r8 jz short loc_389B5 add rdx, rsi sub rdx, r8 inc rdx mov rdi, rsi loc_3894C: cmp rdi, rdx jz loc_389E4 mov r11, rdi inc rdi mov bl, [r11] cmp bl, [rcx] jnz short loc_3894C mov ebx, 1 loc_38967: cmp r8, rbx jz short loc_3897F mov r14b, [r11+rbx] lea r15, [rbx+1] cmp r14b, [rcx+rbx] mov rbx, r15 jz short loc_38967 jmp short loc_3894C loc_3897F: mov eax, 2 test r10d, r10d jz short loc_389E4 mov dword ptr [r9], 0 not esi add edi, esi mov [r9+4], edi mov [r9+8], edi cmp r10d, 1 jz short loc_389E4 mov [r9+0Ch], edi add edi, r8d mov ecx, 14h mov edx, 10h jmp short loc_389D5 loc_389B5: test r10d, r10d jz short loc_389DF mov dword ptr [r9], 0 mov eax, 1 mov ecx, 8 xor edi, edi mov edx, 4 xor r8d, r8d loc_389D5: mov [r9+rdx], edi mov [r9+rcx], r8d jmp short loc_389E4 loc_389DF: mov eax, 1 loc_389E4: pop rbx pop r14 pop r15 pop rbp locret_389EA: retn
long long my_instr_bin( long long a1, _BYTE *a2, unsigned long long a3, _BYTE *a4, unsigned long long a5, _DWORD *a6, int a7) { long long result; // rax long long v8; // rdx _BYTE *v9; // rdi _BYTE *v10; // r11 long long v11; // rbx bool v12; // zf int v13; // edi int v14; // edi long long v15; // rcx long long v16; // rdx result = 0LL; if ( a5 <= a3 ) { if ( a5 ) { v8 = (long long)&a2[a3 - a5 + 1]; v9 = a2; LABEL_4: while ( v9 != (_BYTE *)v8 ) { v10 = v9++; if ( *v10 == *a4 ) { v11 = 1LL; while ( a5 != v11 ) { v12 = v10[v11] == a4[v11]; ++v11; if ( !v12 ) goto LABEL_4; } result = 2LL; if ( a7 ) { *a6 = 0; v13 = ~(_DWORD)a2 + (_DWORD)v9; a6[1] = v13; a6[2] = v13; if ( a7 != 1 ) { a6[3] = v13; v14 = a5 + v13; v15 = 5LL; v16 = 4LL; goto LABEL_15; } } return result; } } } else if ( a7 ) { *a6 = 0; result = 1LL; v15 = 2LL; v14 = 0; v16 = 1LL; LODWORD(a5) = 0; LABEL_15: a6[v16] = v14; a6[v15] = a5; } else { return 1LL; } } return result; }
my_instr_bin: XOR EAX,EAX CMP R8,RDX JA 0x001389ea PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX MOV R10D,dword ptr [RBP + 0x10] TEST R8,R8 JZ 0x001389b5 ADD RDX,RSI SUB RDX,R8 INC RDX MOV RDI,RSI LAB_0013894c: CMP RDI,RDX JZ 0x001389e4 MOV R11,RDI INC RDI MOV BL,byte ptr [R11] CMP BL,byte ptr [RCX] JNZ 0x0013894c MOV EBX,0x1 LAB_00138967: CMP R8,RBX JZ 0x0013897f MOV R14B,byte ptr [R11 + RBX*0x1] LEA R15,[RBX + 0x1] CMP R14B,byte ptr [RCX + RBX*0x1] MOV RBX,R15 JZ 0x00138967 JMP 0x0013894c LAB_0013897f: MOV EAX,0x2 TEST R10D,R10D JZ 0x001389e4 MOV dword ptr [R9],0x0 NOT ESI ADD EDI,ESI MOV dword ptr [R9 + 0x4],EDI MOV dword ptr [R9 + 0x8],EDI CMP R10D,0x1 JZ 0x001389e4 MOV dword ptr [R9 + 0xc],EDI ADD EDI,R8D MOV ECX,0x14 MOV EDX,0x10 JMP 0x001389d5 LAB_001389b5: TEST R10D,R10D JZ 0x001389df MOV dword ptr [R9],0x0 MOV EAX,0x1 MOV ECX,0x8 XOR EDI,EDI MOV EDX,0x4 XOR R8D,R8D LAB_001389d5: MOV dword ptr [R9 + RDX*0x1],EDI MOV dword ptr [R9 + RCX*0x1],R8D JMP 0x001389e4 LAB_001389df: MOV EAX,0x1 LAB_001389e4: POP RBX POP R14 POP R15 POP RBP LAB_001389ea: RET
int8 my_instr_bin(int8 param_1,char *param_2,ulong param_3,char *param_4,ulong param_5, int4 *param_6,int param_7) { char *pcVar1; char *pcVar2; int8 uVar3; long lVar4; long lVar5; ulong uVar6; int iVar7; char *pcVar8; char *pcVar9; uVar3 = 0; if (param_5 <= param_3) { if (param_5 == 0) { if (param_7 == 0) { uVar3 = 1; } else { *param_6 = 0; uVar3 = 1; lVar4 = 8; iVar7 = 0; lVar5 = 4; param_5 = 0; LAB_001389d5: *(int *)((long)param_6 + lVar5) = iVar7; *(int *)((long)param_6 + lVar4) = (int)param_5; } } else { pcVar9 = param_2; while (pcVar8 = pcVar9, pcVar8 != param_2 + (param_3 - param_5) + 1) { pcVar9 = pcVar8 + 1; if (*pcVar8 == *param_4) { uVar6 = 1; do { if (param_5 == uVar6) { uVar3 = 2; if (param_7 == 0) { return 2; } *param_6 = 0; iVar7 = (int)pcVar9 + ~(uint)param_2; param_6[1] = iVar7; param_6[2] = iVar7; if (param_7 == 1) { return 2; } param_6[3] = iVar7; iVar7 = iVar7 + (int)param_5; lVar4 = 0x14; lVar5 = 0x10; goto LAB_001389d5; } pcVar1 = pcVar8 + uVar6; pcVar2 = param_4 + uVar6; uVar6 = uVar6 + 1; } while (*pcVar1 == *pcVar2); } } } } return uVar3; }
31,112
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::token_type, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/./json.hpp
std::string exception_message(const token_type expected, const std::string& context) { std::string error_msg = "syntax error "; if (!context.empty()) { error_msg += concat("while parsing ", context, ' '); } error_msg += "- "; if (last_token == token_type::parse_error) { error_msg += concat(m_lexer.get_error_message(), "; last read: '", m_lexer.get_token_string(), '\''); } else { error_msg += concat("unexpected ", lexer_t::token_type_name(last_token)); } if (expected != token_type::uninitialized) { error_msg += concat("; expected ", lexer_t::token_type_name(expected)); } return error_msg; }
O1
cpp
nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::token_type, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movq %rcx, %r15 movl %edx, %ebp movq %rsi, %r14 movq %rdi, %rbx leaq 0x10(%rdi), %r12 movq %r12, (%rdi) leaq 0x7c255(%rip), %rsi # 0xb3e46 leaq 0x7c25b(%rip), %rdx # 0xb3e53 callq 0x20c8e movq 0x8(%r15), %rsi testq %rsi, %rsi je 0x37c84 leaq 0x18(%rsp), %r13 movq %r13, -0x10(%r13) movq $0x0, -0x8(%r13) movb $0x0, (%r13) addq $0xf, %rsi leaq 0x8(%rsp), %rdi callq 0x19c60 leaq 0x7c223(%rip), %rsi # 0xb3e54 leaq 0x8(%rsp), %rdi callq 0x19f60 movq (%r15), %rsi movq 0x8(%r15), %rdx leaq 0x8(%rsp), %rdi callq 0x19210 leaq 0x8(%rsp), %rdi movl $0x20, %esi callq 0x19620 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %rbx, %rdi callq 0x19210 movq 0x8(%rsp), %rdi cmpq %r13, %rdi je 0x37c84 movq 0x18(%rsp), %rsi incq %rsi callq 0x197a0 leaq 0x7c1d8(%rip), %rsi # 0xb3e63 movq %rbx, %rdi callq 0x19f60 movl 0x20(%r14), %edi cmpl $0xe, %edi jne 0x37d27 movq 0x98(%r14), %rax addq $0x28, %r14 movq %rax, 0x30(%rsp) leaq 0x38(%rsp), %rdi movq %r14, %rsi callq 0x37b10 leaq 0x2f(%rsp), %r8 movb $0x27, (%r8) leaq 0x7c199(%rip), %rdx # 0xb3e66 leaq 0x8(%rsp), %rdi leaq 0x30(%rsp), %rsi leaq 0x38(%rsp), %rcx callq 0x25a98 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %rbx, %rdi callq 0x19210 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x37d0e movq 0x18(%rsp), %rsi incq %rsi callq 0x197a0 leaq 0x48(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x37da1 movq 0x48(%rsp), %rsi jmp 0x37d99 callq 0x3ad60 movq %rax, %r14 leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) movq $0x0, -0x8(%r15) movb $0x0, (%r15) movq %rax, %rdi callq 0x19360 leaq 0xb(%rax), %rsi leaq 0x8(%rsp), %rdi callq 0x19c60 leaq 0x7c114(%rip), %rsi # 0xb3e75 leaq 0x8(%rsp), %rdi callq 0x19f60 leaq 0x8(%rsp), %rdi movq %r14, %rsi callq 0x19f60 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %rbx, %rdi callq 0x19210 movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x37da1 movq 0x18(%rsp), %rsi incq %rsi callq 0x197a0 testl %ebp, %ebp je 0x37e21 movl %ebp, %edi callq 0x3ad60 movq %rax, %r14 leaq 0x18(%rsp), %r15 movq %r15, -0x10(%r15) movq $0x0, -0x8(%r15) movb $0x0, (%r15) movq %rax, %rdi callq 0x19360 leaq 0xb(%rax), %rsi leaq 0x8(%rsp), %rdi callq 0x19c60 leaq 0x7c0a0(%rip), %rsi # 0xb3e81 leaq 0x8(%rsp), %rdi callq 0x19f60 leaq 0x8(%rsp), %rdi movq %r14, %rsi callq 0x19f60 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdx movq %rbx, %rdi callq 0x19210 movq 0x8(%rsp), %rdi cmpq %r15, %rdi je 0x37e21 movq 0x18(%rsp), %rsi incq %rsi callq 0x197a0 movq %rbx, %rax addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x37e7a movq %rax, %r14 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x37e58 movq 0x18(%rsp), %rsi incq %rsi callq 0x197a0 jmp 0x37e58 movq %rax, %r14 leaq 0x48(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x37ea3 movq 0x48(%rsp), %rsi jmp 0x37e9b jmp 0x37e73 jmp 0x37e7a jmp 0x37e89 movq %rax, %r14 jmp 0x37ea3 jmp 0x37e7a movq %rax, %r14 movq 0x8(%rsp), %rdi cmpq %r15, %rdi jne 0x37e96 jmp 0x37ea3 movq %rax, %r14 movq 0x8(%rsp), %rdi cmpq %r13, %rdi je 0x37ea3 movq 0x18(%rsp), %rsi incq %rsi callq 0x197a0 movq (%rbx), %rdi cmpq %r12, %rdi je 0x37eb7 movq (%r12), %rsi incq %rsi callq 0x197a0 movq %r14, %rdi callq 0x19e00 nop
_ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE17exception_messageENS1_10lexer_baseISF_E10token_typeERKSB_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h mov r15, rcx mov ebp, edx mov r14, rsi mov rbx, rdi lea r12, [rdi+10h] mov [rdi], r12 lea rsi, aSyntaxError; "syntax error " lea rdx, aSyntaxError+0Dh; "" call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov rsi, [r15+8] test rsi, rsi jz short loc_37C84 lea r13, [rsp+88h+var_70] mov [r13-10h], r13 mov qword ptr [r13-8], 0 mov byte ptr [r13+0], 0 add rsi, 0Fh lea rdi, [rsp+88h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) lea rsi, aWhileParsing; "while parsing " lea rdi, [rsp+88h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rsi, [r15] mov rdx, [r15+8] lea rdi, [rsp+88h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) lea rdi, [rsp+88h+var_80] mov esi, 20h ; ' ' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) mov rsi, [rsp+88h+var_80] mov rdx, [rsp+88h+var_78] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rdi, [rsp+88h+var_80]; void * cmp rdi, r13 jz short loc_37C84 mov rsi, [rsp+88h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_37C84: lea rsi, asc_B3E63; "- " mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov edi, [r14+20h] cmp edi, 0Eh jnz loc_37D27 mov rax, [r14+98h] add r14, 28h ; '(' mov [rsp+88h+var_58], rax lea rdi, [rsp+88h+var_50] mov rsi, r14 call _ZNK8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE16get_token_stringEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string(void) lea r8, [rsp+88h+var_59] mov byte ptr [r8], 27h ; ''' lea rdx, aLastRead; "; last read: '" lea rdi, [rsp+88h+var_80] lea rsi, [rsp+88h+var_58] lea rcx, [rsp+88h+var_50] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJPKcRA15_S9_S8_cEEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>(char const*,char const(&)[15],std::string,char &&) mov rsi, [rsp+88h+var_80] mov rdx, [rsp+88h+var_78] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) lea rax, [rsp+88h+var_70] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_37D0E mov rsi, [rsp+88h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_37D0E: lea rax, [rsp+88h+var_40] mov rdi, [rax-10h] cmp rdi, rax jz loc_37DA1 mov rsi, [rsp+88h+var_40] jmp short loc_37D99 loc_37D27: call _ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE; nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type) mov r14, rax lea r15, [rsp+88h+var_70] mov [r15-10h], r15 mov qword ptr [r15-8], 0 mov byte ptr [r15], 0 mov rdi, rax call _strlen lea rsi, [rax+0Bh] lea rdi, [rsp+88h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) lea rsi, aUnexpected; "unexpected " lea rdi, [rsp+88h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea rdi, [rsp+88h+var_80] mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rsi, [rsp+88h+var_80] mov rdx, [rsp+88h+var_78] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rdi, [rsp+88h+var_80]; void * cmp rdi, r15 jz short loc_37DA1 mov rsi, [rsp+88h+var_70] loc_37D99: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_37DA1: test ebp, ebp jz short loc_37E21 mov edi, ebp call _ZN8nlohmann16json_abi_v3_11_36detail10lexer_baseINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15token_type_nameENSG_10token_typeE; nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type_name(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type) mov r14, rax lea r15, [rsp+88h+var_70] mov [r15-10h], r15 mov qword ptr [r15-8], 0 mov byte ptr [r15], 0 mov rdi, rax call _strlen lea rsi, [rax+0Bh] lea rdi, [rsp+88h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong) lea rsi, aExpected_0; "; expected " lea rdi, [rsp+88h+var_80] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea rdi, [rsp+88h+var_80] mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rsi, [rsp+88h+var_80] mov rdx, [rsp+88h+var_78] mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) mov rdi, [rsp+88h+var_80]; void * cmp rdi, r15 jz short loc_37E21 mov rsi, [rsp+88h+var_70] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_37E21: mov rax, rbx add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_37E7A mov r14, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_37E58 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_37E58 mov r14, rax loc_37E58: lea rax, [rsp+arg_40] mov rdi, [rax-10h] cmp rdi, rax jz short loc_37EA3 mov rsi, [rsp+arg_40] jmp short loc_37E9B jmp short loc_37E73 jmp short loc_37E7A jmp short loc_37E89 loc_37E73: mov r14, rax jmp short loc_37EA3 jmp short $+2 loc_37E7A: mov r14, rax mov rdi, [rsp+arg_0] cmp rdi, r15 jnz short loc_37E96 jmp short loc_37EA3 loc_37E89: mov r14, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r13 jz short loc_37EA3 loc_37E96: mov rsi, [rsp+arg_10] loc_37E9B: inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_37EA3: mov rdi, [rbx]; void * cmp rdi, r12 jz short loc_37EB7 mov rsi, [r12] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_37EB7: mov rdi, r14 call __Unwind_Resume
_QWORD * nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::exception_message( _QWORD *a1, long long a2, unsigned int a3, _QWORD *a4) { long long v8; // rsi void *v9; // rdi long long v10; // rsi long long v11; // r14 long long v12; // rax long long v13; // r14 long long v14; // rax void *v16; // [rsp+8h] [rbp-80h] BYREF long long v17; // [rsp+10h] [rbp-78h] _QWORD v18[2]; // [rsp+18h] [rbp-70h] BYREF char v19; // [rsp+2Fh] [rbp-59h] BYREF long long v20; // [rsp+30h] [rbp-58h] BYREF _QWORD v21[2]; // [rsp+38h] [rbp-50h] BYREF long long v22; // [rsp+48h] [rbp-40h] BYREF *a1 = a1 + 2; std::string::_M_construct<char const*>(a1, "syntax error ", (long long)""); v8 = a4[1]; if ( v8 ) { v16 = v18; v17 = 0LL; LOBYTE(v18[0]) = 0; std::string::reserve(&v16, v8 + 15); std::string::append(&v16, "while parsing "); std::string::_M_append(&v16, *a4, a4[1]); std::string::push_back(&v16, 32LL); std::string::_M_append(a1, v16, v17); if ( v16 != v18 ) operator delete(v16, v18[0] + 1LL); } std::string::append(a1, "- "); if ( *(_DWORD *)(a2 + 32) == 14 ) { v20 = *(_QWORD *)(a2 + 152); nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get_token_string( (long long)v21, a2 + 40); v19 = 39; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const*,char const(&)[15],std::string,char>( (long long)&v16, &v20, (long long)"; last read: '", v21, &v19); std::string::_M_append(a1, v16, v17); if ( v16 != v18 ) operator delete(v16, v18[0] + 1LL); v9 = (void *)v21[0]; if ( (long long *)v21[0] != &v22 ) { v10 = v22; LABEL_11: operator delete(v9, v10 + 1); } } else { v11 = ((long long (*)(void))nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::token_type_name)(); v16 = v18; v17 = 0LL; LOBYTE(v18[0]) = 0; v12 = strlen(v11); std::string::reserve(&v16, v12 + 11); std::string::append(&v16, "unexpected "); std::string::append(&v16, v11); std::string::_M_append(a1, v16, v17); v9 = v16; if ( v16 != v18 ) { v10 = v18[0]; goto LABEL_11; } } if ( a3 ) { v13 = nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::token_type_name(a3); v16 = v18; v17 = 0LL; LOBYTE(v18[0]) = 0; v14 = strlen(v13); std::string::reserve(&v16, v14 + 11); std::string::append(&v16, "; expected "); std::string::append(&v16, v13); std::string::_M_append(a1, v16, v17); if ( v16 != v18 ) operator delete(v16, v18[0] + 1LL); } return a1; }
exception_message: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOV R15,RCX MOV EBP,EDX MOV R14,RSI MOV RBX,RDI LEA R12,[RDI + 0x10] MOV qword ptr [RDI],R12 LEA RSI,[0x1b3e46] LEA RDX,[0x1b3e53] CALL 0x00120c8e MOV RSI,qword ptr [R15 + 0x8] TEST RSI,RSI JZ 0x00137c84 LEA R13,[RSP + 0x18] MOV qword ptr [R13 + -0x10],R13 MOV qword ptr [R13 + -0x8],0x0 MOV byte ptr [R13],0x0 ADD RSI,0xf LAB_00137c20: LEA RDI,[RSP + 0x8] CALL 0x00119c60 LEA RSI,[0x1b3e54] LEA RDI,[RSP + 0x8] CALL 0x00119f60 MOV RSI,qword ptr [R15] MOV RDX,qword ptr [R15 + 0x8] LEA RDI,[RSP + 0x8] CALL 0x00119210 LEA RDI,[RSP + 0x8] MOV ESI,0x20 CALL 0x00119620 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_00137c65: MOV RDI,RBX CALL 0x00119210 MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R13 JZ 0x00137c84 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001197a0 LAB_00137c84: LEA RSI,[0x1b3e63] MOV RDI,RBX CALL 0x00119f60 MOV EDI,dword ptr [R14 + 0x20] CMP EDI,0xe JNZ 0x00137d27 MOV RAX,qword ptr [R14 + 0x98] ADD R14,0x28 MOV qword ptr [RSP + 0x30],RAX LAB_00137cb0: LEA RDI,[RSP + 0x38] MOV RSI,R14 CALL 0x00137b10 LEA R8,[RSP + 0x2f] MOV byte ptr [R8],0x27 LAB_00137cc6: LEA RDX,[0x1b3e66] LEA RDI,[RSP + 0x8] LEA RSI,[RSP + 0x30] LEA RCX,[RSP + 0x38] CALL 0x00125a98 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_00137ceb: MOV RDI,RBX CALL 0x00119210 LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00137d0e MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001197a0 LAB_00137d0e: LEA RAX,[RSP + 0x48] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00137da1 MOV RSI,qword ptr [RSP + 0x48] JMP 0x00137d99 LAB_00137d27: CALL 0x0013ad60 MOV R14,RAX LEA R15,[RSP + 0x18] MOV qword ptr [R15 + -0x10],R15 MOV qword ptr [R15 + -0x8],0x0 MOV byte ptr [R15],0x0 MOV RDI,RAX CALL 0x00119360 LEA RSI,[RAX + 0xb] LAB_00137d50: LEA RDI,[RSP + 0x8] CALL 0x00119c60 LEA RSI,[0x1b3e75] LEA RDI,[RSP + 0x8] CALL 0x00119f60 LEA RDI,[RSP + 0x8] MOV RSI,R14 CALL 0x00119f60 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_00137d82: MOV RDI,RBX CALL 0x00119210 MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R15 JZ 0x00137da1 MOV RSI,qword ptr [RSP + 0x18] LAB_00137d99: INC RSI CALL 0x001197a0 LAB_00137da1: TEST EBP,EBP JZ 0x00137e21 MOV EDI,EBP CALL 0x0013ad60 MOV R14,RAX LEA R15,[RSP + 0x18] MOV qword ptr [R15 + -0x10],R15 MOV qword ptr [R15 + -0x8],0x0 MOV byte ptr [R15],0x0 MOV RDI,RAX CALL 0x00119360 LEA RSI,[RAX + 0xb] LAB_00137dd0: LEA RDI,[RSP + 0x8] CALL 0x00119c60 LEA RSI,[0x1b3e81] LEA RDI,[RSP + 0x8] CALL 0x00119f60 LEA RDI,[RSP + 0x8] MOV RSI,R14 CALL 0x00119f60 MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x10] LAB_00137e02: MOV RDI,RBX CALL 0x00119210 LAB_00137e0a: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R15 JZ 0x00137e21 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001197a0 LAB_00137e21: MOV RAX,RBX ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* nlohmann::json_abi_v3_11_3::detail::parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > > >::exception_message(nlohmann::json_abi_v3_11_3::detail::lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::token_type, std::__cxx11::string const&) */ long * nlohmann::json_abi_v3_11_3::detail:: parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::exception_message(long *param_1,long param_2,int param_3,ulong *param_4) { char *pcVar1; long *local_80; int8 local_78; int1 local_70; int7 uStack_6f; int1 local_59; int8 local_58; long *local_50 [2]; long local_40 [2]; *param_1 = (long)(param_1 + 2); std::__cxx11::string::_M_construct<char_const*>(param_1,"syntax error ",""); if (param_4[1] != 0) { local_78 = 0; local_70 = 0; /* try { // try from 00137c20 to 00137c5a has its CatchHandler @ 00137e89 */ local_80 = (long *)&local_70; std::__cxx11::string::reserve((ulong)&local_80); std::__cxx11::string::append((char *)&local_80); std::__cxx11::string::_M_append((char *)&local_80,*param_4); std::__cxx11::string::push_back((char)&local_80); /* try { // try from 00137c65 to 00137c6c has its CatchHandler @ 00137e71 */ std::__cxx11::string::_M_append((char *)param_1,(ulong)local_80); if (local_80 != (long *)&local_70) { operator_delete(local_80,CONCAT71(uStack_6f,local_70) + 1); } } /* try { // try from 00137c84 to 00137c92 has its CatchHandler @ 00137e73 */ std::__cxx11::string::append((char *)param_1); if (*(int *)(param_2 + 0x20) == 0xe) { local_58 = *(int8 *)(param_2 + 0x98); /* try { // try from 00137cb0 to 00137cbc has its CatchHandler @ 00137e6d */ lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::get_token_string(); local_59 = 0x27; /* try { // try from 00137cc6 to 00137ce0 has its CatchHandler @ 00137e55 */ concat<std::__cxx11::string,char_const*,char_const(&)[15],std::__cxx11::string,char> ((char **)&local_80,(char *)&local_58,(string *)"; last read: \'",(char *)local_50); /* try { // try from 00137ceb to 00137cf2 has its CatchHandler @ 00137e35 */ std::__cxx11::string::_M_append((char *)param_1,(ulong)local_80); if (local_80 != (long *)&local_70) { operator_delete(local_80,CONCAT71(uStack_6f,local_70) + 1); } if (local_50[0] == local_40) goto LAB_00137da1; } else { pcVar1 = (char *)lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::token_type_name(); local_78 = 0; local_70 = 0; local_80 = (long *)&local_70; strlen(pcVar1); /* try { // try from 00137d50 to 00137d77 has its CatchHandler @ 00137e78 */ std::__cxx11::string::reserve((ulong)&local_80); std::__cxx11::string::append((char *)&local_80); std::__cxx11::string::append((char *)&local_80); /* try { // try from 00137d82 to 00137d89 has its CatchHandler @ 00137e33 */ std::__cxx11::string::_M_append((char *)param_1,(ulong)local_80); if (local_80 == (long *)&local_70) goto LAB_00137da1; local_40[0] = CONCAT71(uStack_6f,local_70); local_50[0] = local_80; } operator_delete(local_50[0],local_40[0] + 1); LAB_00137da1: if (param_3 != 0) { pcVar1 = (char *)lexer_base<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::token_type_name(param_3); local_78 = 0; local_70 = 0; local_80 = (long *)&local_70; strlen(pcVar1); /* try { // try from 00137dd0 to 00137df7 has its CatchHandler @ 00137e7a */ std::__cxx11::string::reserve((ulong)&local_80); std::__cxx11::string::append((char *)&local_80); std::__cxx11::string::append((char *)&local_80); /* try { // try from 00137e02 to 00137e09 has its CatchHandler @ 00137e6f */ std::__cxx11::string::_M_append((char *)param_1,(ulong)local_80); if (local_80 != (long *)&local_70) { operator_delete(local_80,CONCAT71(uStack_6f,local_70) + 1); } } return param_1; }
31,113
LEX::stmt_revoke_table(THD*, Grant_privilege*, Lex_grant_object_name const&)
eloqsql/sql/sql_lex.cc
bool LEX::stmt_revoke_table(THD *thd, Grant_privilege *grant, const Lex_grant_object_name &ident) { sql_command= SQLCOM_REVOKE; return grant->set_object_name(thd, ident, current_select, NO_ACL) || !(m_sql_cmd= new (thd->mem_root) Sql_cmd_grant_table(sql_command, *grant)); }
O0
cpp
LEX::stmt_revoke_table(THD*, Grant_privilege*, Lex_grant_object_name const&): pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x50(%rbp) movl $0x2c, 0x8(%rax) movq -0x18(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x20(%rbp), %rdx movq 0xd28(%rax), %rcx xorl %eax, %eax movl %eax, %r8d callq 0xb8a500 movb %al, %cl movb $0x0, -0x31(%rbp) movb $0x1, %al testb $0x1, %cl movb %al, -0x45(%rbp) jne 0x9cb448 movq -0x10(%rbp), %rax movq 0x28(%rax), %rsi movq %rsi, -0x68(%rbp) movl $0x50, %edi callq 0x886b10 movq %rax, %rcx movq %rcx, -0x60(%rbp) xorl %eax, %eax cmpq $0x0, %rcx movq %rax, -0x58(%rbp) je 0x9cb42d movq -0x60(%rbp), %rdi movq -0x50(%rbp), %rax movq -0x68(%rbp), %rcx movq %rdi, -0x28(%rbp) movq %rcx, -0x30(%rbp) movb $0x1, -0x31(%rbp) movl 0x8(%rax), %esi movq -0x18(%rbp), %rdx callq 0x9d1480 jmp 0x9cb423 movq -0x60(%rbp), %rax movq %rax, -0x58(%rbp) jmp 0x9cb42d movq -0x50(%rbp), %rcx movq -0x58(%rbp), %rax movq %rax, 0x17d8(%rcx) cmpq $0x0, %rax setne %al xorb $-0x1, %al movb %al, -0x45(%rbp) movb -0x45(%rbp), %al andb $0x1, %al addq $0x70, %rsp popq %rbp retq movq %rax, %rcx movl %edx, %eax movq %rcx, -0x40(%rbp) movl %eax, -0x44(%rbp) testb $0x1, -0x31(%rbp) jne 0x9cb467 jmp 0x9cb474 movq -0x28(%rbp), %rdi movq -0x30(%rbp), %rsi callq 0x886b80 jmp 0x9cb476 movq -0x40(%rbp), %rdi callq 0x775a20 nop
_ZN3LEX17stmt_revoke_tableEP3THDP15Grant_privilegeRK21Lex_grant_object_name: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov rax, [rbp+var_8] mov [rbp+var_50], rax mov dword ptr [rax+8], 2Ch ; ',' mov rdi, [rbp+var_18] mov rsi, [rbp+var_10] mov rdx, [rbp+var_20] mov rcx, [rax+0D28h] xor eax, eax mov r8d, eax call _ZN15Grant_privilege15set_object_nameEP3THDRK17Grant_object_nameP13st_select_lex11privilege_t; Grant_privilege::set_object_name(THD *,Grant_object_name const&,st_select_lex *,privilege_t) mov cl, al mov [rbp+var_31], 0 mov al, 1 test cl, 1 mov [rbp+var_45], al jnz short loc_9CB448 mov rax, [rbp+var_10] mov rsi, [rax+28h] mov [rbp+var_68], rsi mov edi, 50h ; 'P' call _ZN9Sql_allocnwEmP11st_mem_root; Sql_alloc::operator new(ulong,st_mem_root *) mov rcx, rax mov [rbp+var_60], rcx xor eax, eax cmp rcx, 0 mov [rbp+var_58], rax jz short loc_9CB42D mov rdi, [rbp+var_60] mov rax, [rbp+var_50] mov rcx, [rbp+var_68] mov [rbp+var_28], rdi mov [rbp+var_30], rcx mov [rbp+var_31], 1 mov esi, [rax+8] mov rdx, [rbp+var_18] call _ZN19Sql_cmd_grant_tableC2E16enum_sql_commandRK15Grant_privilege; Sql_cmd_grant_table::Sql_cmd_grant_table(enum_sql_command,Grant_privilege const&) jmp short $+2 loc_9CB423: mov rax, [rbp+var_60] mov [rbp+var_58], rax jmp short $+2 loc_9CB42D: mov rcx, [rbp+var_50] mov rax, [rbp+var_58] mov [rcx+17D8h], rax cmp rax, 0 setnz al xor al, 0FFh mov [rbp+var_45], al loc_9CB448: mov al, [rbp+var_45] and al, 1 add rsp, 70h pop rbp retn mov rcx, rax mov eax, edx mov [rbp+var_40], rcx mov [rbp+var_44], eax test [rbp+var_31], 1 jnz short loc_9CB467 jmp short loc_9CB474 loc_9CB467: mov rdi, [rbp+var_28] mov rsi, [rbp+var_30] call _ZN9Sql_allocdlEPvP11st_mem_root; Sql_alloc::operator delete(void *,st_mem_root *) loc_9CB474: jmp short $+2 loc_9CB476: mov rdi, [rbp+var_40] call __Unwind_Resume
char LEX::stmt_revoke_table(LEX *this, THD *a2, Grant_privilege *a3, const Lex_grant_object_name *a4) { long long v5; // [rsp+10h] [rbp-60h] long long v6; // [rsp+18h] [rbp-58h] char v7; // [rsp+2Bh] [rbp-45h] *((_DWORD *)this + 2) = 44; v7 = 1; if ( (Grant_privilege::set_object_name(a3, a2, a4, *((_QWORD *)this + 421), 0LL) & 1) == 0 ) { v5 = Sql_alloc::operator new(80LL, *((_QWORD *)a2 + 5)); v6 = 0LL; if ( v5 ) { Sql_cmd_grant_table::Sql_cmd_grant_table(v5, *((unsigned int *)this + 2), a3); v6 = v5; } *((_QWORD *)this + 763) = v6; v7 = ~(v6 != 0); } return v7 & 1; }
functype_to_scalar_comparison_op: PUSH RBP MOV RBP,RSP MOV dword ptr [RBP + -0x8],EDI MOV EAX,dword ptr [RBP + -0x8] DEC EAX MOV ECX,EAX MOV qword ptr [RBP + -0x10],RCX SUB EAX,0x6 JA 0x009cb3e1 MOV RAX,qword ptr [RBP + -0x10] LEA RCX,[0x15add68] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_1: MOV dword ptr [RBP + -0x4],0x0 JMP 0x009cb3ee caseD_2: MOV dword ptr [RBP + -0x4],0x1 JMP 0x009cb3ee caseD_4: MOV dword ptr [RBP + -0x4],0x2 JMP 0x009cb3ee caseD_5: MOV dword ptr [RBP + -0x4],0x3 JMP 0x009cb3ee caseD_6: MOV dword ptr [RBP + -0x4],0x4 JMP 0x009cb3ee caseD_7: MOV dword ptr [RBP + -0x4],0x5 JMP 0x009cb3ee caseD_3: JMP 0x009cb3e3 LAB_009cb3e3: JMP 0x009cb3e5 LAB_009cb3e5: JMP 0x009cb3e7 LAB_009cb3e7: MOV dword ptr [RBP + -0x4],0x0 LAB_009cb3ee: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
/* Item_func::functype_to_scalar_comparison_op(Item_func::Functype) */ int4 Item_func::functype_to_scalar_comparison_op(int4 param_1) { int4 local_c; switch(param_1) { case 1: local_c = 0; break; case 2: local_c = 1; break; default: local_c = 0; break; case 4: local_c = 2; break; case 5: local_c = 3; break; case 6: local_c = 4; break; case 7: local_c = 5; } return local_c; }
31,114
used_buffs_register_unlock
eloqsql/storage/maria/ma_loghandler.c
static void used_buffs_register_unlock(TRUNSLOG_USED_BUFFERS *buffs, struct st_translog_buffer *buff __attribute__((unused)) ) { DBUG_ENTER("used_buffs_register_unlock"); DBUG_PRINT("enter", ("SUB buffs: %p unlk %u (%p) wrt_ptr: %u (%p)" " buff %p (%u)", buffs, buffs->wrt_ptr, buffs->buff[buffs->wrt_ptr], buffs->unlck_ptr, buffs->buff[buffs->unlck_ptr], buff, buff->buffer_no)); DBUG_ASSERT(buffs->buff[buffs->unlck_ptr] == buff); buffs->unlck_ptr++; DBUG_VOID_RETURN; }
O0
c
used_buffs_register_unlock: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) jmp 0x93a1e jmp 0x93a20 jmp 0x93a22 movq -0x8(%rbp), %rax movb 0x19(%rax), %cl addb $0x1, %cl movb %cl, 0x19(%rax) jmp 0x93a31 popq %rbp retq nopw %cs:(%rax,%rax)
used_buffs_register_unlock: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi jmp short $+2 loc_93A1E: jmp short $+2 loc_93A20: jmp short $+2 loc_93A22: mov rax, [rbp+var_8] mov cl, [rax+19h] add cl, 1 mov [rax+19h], cl jmp short $+2 loc_93A31: pop rbp retn
long long used_buffs_register_unlock(long long a1) { long long result; // rax result = a1; ++*(_BYTE *)(a1 + 25); return result; }
used_buffs_register_unlock: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI JMP 0x00193a1e LAB_00193a1e: JMP 0x00193a20 LAB_00193a20: JMP 0x00193a22 LAB_00193a22: MOV RAX,qword ptr [RBP + -0x8] MOV CL,byte ptr [RAX + 0x19] ADD CL,0x1 MOV byte ptr [RAX + 0x19],CL JMP 0x00193a31 LAB_00193a31: POP RBP RET
void used_buffs_register_unlock(long param_1) { *(char *)(param_1 + 0x19) = *(char *)(param_1 + 0x19) + '\x01'; return; }
31,115
rw_pr_wrlock
eloqsql/mysys/thr_rwlock.c
int rw_pr_wrlock(rw_pr_lock_t *rwlock) { pthread_mutex_lock(&rwlock->lock); if (rwlock->active_readers != 0) { /* There are active readers. We have to wait until they are gone. */ rwlock->writers_waiting_readers++; while (rwlock->active_readers != 0) pthread_cond_wait(&rwlock->no_active_readers, &rwlock->lock); rwlock->writers_waiting_readers--; } /* We own 'lock' mutex so there is no active writers. Also there are no active readers. This means that we can grant wr-lock. Not releasing 'lock' mutex until unlock will block both requests for rd and wr-locks. Set 'active_writer' flag to simplify unlock. Thanks to the fact wr-lock/unlock in the absence of contention from readers is essentially mutex lock/unlock with a few simple checks make this rwlock implementation wr-lock optimized. */ rwlock->active_writer= TRUE; #ifdef SAFE_MUTEX rwlock->writer_thread= pthread_self(); #endif return 0; }
O3
c
rw_pr_wrlock: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rdi, %rbx callq 0x264d0 cmpl $0x0, 0x58(%rbx) je 0x474d5 incl 0x5c(%rbx) leaq 0x28(%rbx), %r14 movq %r14, %rdi movq %rbx, %rsi callq 0x26550 cmpl $0x0, 0x58(%rbx) jne 0x474c1 decl 0x5c(%rbx) movb $0x1, 0x60(%rbx) xorl %eax, %eax popq %rbx popq %r14 popq %rbp retq
rw_pr_wrlock: push rbp mov rbp, rsp push r14 push rbx mov rbx, rdi call _pthread_mutex_lock cmp dword ptr [rbx+58h], 0 jz short loc_474D5 inc dword ptr [rbx+5Ch] lea r14, [rbx+28h] loc_474C1: mov rdi, r14 mov rsi, rbx call _pthread_cond_wait cmp dword ptr [rbx+58h], 0 jnz short loc_474C1 dec dword ptr [rbx+5Ch] loc_474D5: mov byte ptr [rbx+60h], 1 xor eax, eax pop rbx pop r14 pop rbp retn
long long rw_pr_wrlock(long long a1) { pthread_mutex_lock(a1); if ( *(_DWORD *)(a1 + 88) ) { ++*(_DWORD *)(a1 + 92); do pthread_cond_wait(a1 + 40, a1); while ( *(_DWORD *)(a1 + 88) ); --*(_DWORD *)(a1 + 92); } *(_BYTE *)(a1 + 96) = 1; return 0LL; }
rw_pr_wrlock: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV RBX,RDI CALL 0x001264d0 CMP dword ptr [RBX + 0x58],0x0 JZ 0x001474d5 INC dword ptr [RBX + 0x5c] LEA R14,[RBX + 0x28] LAB_001474c1: MOV RDI,R14 MOV RSI,RBX CALL 0x00126550 CMP dword ptr [RBX + 0x58],0x0 JNZ 0x001474c1 DEC dword ptr [RBX + 0x5c] LAB_001474d5: MOV byte ptr [RBX + 0x60],0x1 XOR EAX,EAX POP RBX POP R14 POP RBP RET
int8 rw_pr_wrlock(pthread_mutex_t *param_1) { pthread_mutex_lock(param_1); if (*(int *)((long)param_1 + 0x58) != 0) { *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1; do { pthread_cond_wait((pthread_cond_t *)(param_1 + 1),param_1); } while (*(int *)((long)param_1 + 0x58) != 0); *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + -1; } *(int1 *)((long)param_1 + 0x60) = 1; return 0; }
31,116
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::json_sax_dom_callback_parser(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool)
monkey531[P]llama/common/json.hpp
json_sax_dom_callback_parser(BasicJsonType& r, const parser_callback_t cb, const bool allow_exceptions_ = true) : root(r), callback(cb), allow_exceptions(allow_exceptions_) { keep_stack.push_back(true); }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::json_sax_dom_callback_parser(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&)>, bool): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movl %ecx, %ebp movq %rdi, %rbx movq %rsi, (%rdi) leaq 0x20(%rdi), %r14 leaq 0x80(%rdi), %r12 xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rdi) movups %xmm0, 0x18(%rdi) movups %xmm0, 0x28(%rdi) movups %xmm0, 0x38(%rdi) movups %xmm0, 0x48(%rdi) movups %xmm0, 0x58(%rdi) movups %xmm0, 0x68(%rdi) movb $0x0, 0x78(%rdi) movq %r12, %rdi movq %rdx, %rsi callq 0x588c2 movb %bpl, 0xa0(%rbx) leaq 0xa8(%rbx), %r13 movb $0x9, 0xa8(%rbx) movq $0x0, 0xb0(%rbx) movq %r13, %rdi movl $0x1, %esi callq 0x58f20 movq %r14, %rdi movl $0x1, %esi callq 0x5c5ac addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r15 movq %r13, %rdi xorl %esi, %esi callq 0x58f20 movq %r13, %rdi callq 0x5e40e movq 0x90(%rbx), %rax testq %rax, %rax je 0x5a2ba movq %r12, %rdi movq %r12, %rsi movl $0x3, %edx callq *%rax jmp 0x5a2ba jmp 0x5a2e1 movq %rax, %r15 leaq 0x48(%rbx), %rdi callq 0x5c7b4 movq %r14, %rdi callq 0x5c7b4 leaq 0x8(%rbx), %rdi movq %rbx, %rsi callq 0x1b4ef movq %r15, %rdi callq 0x1af90 jmp 0x5a2e1 movq %rax, %rdi callq 0x22203 nop
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ERSF_St8functionIFbiNS1_13parse_event_tESH_EEb: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov ebp, ecx mov rbx, rdi mov [rdi], rsi lea r14, [rdi+20h] lea r12, [rdi+80h] xorps xmm0, xmm0 movups xmmword ptr [rdi+8], xmm0 movups xmmword ptr [rdi+18h], xmm0 movups xmmword ptr [rdi+28h], xmm0 movups xmmword ptr [rdi+38h], xmm0 movups xmmword ptr [rdi+48h], xmm0 movups xmmword ptr [rdi+58h], xmm0 movups xmmword ptr [rdi+68h], xmm0 mov byte ptr [rdi+78h], 0 mov rdi, r12 mov rsi, rdx call _ZNSt8functionIFbiN8nlohmann16json_abi_v3_11_36detail13parse_event_tERNS1_10basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES6_IhSaIhEEvEEEEC2ERKSJ_; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)>::function(std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> &)> const&) mov [rbx+0A0h], bpl lea r13, [rbx+0A8h] mov byte ptr [rbx+0A8h], 9 mov qword ptr [rbx+0B0h], 0 mov rdi, r13 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 mov esi, 1 call _ZNSt6vectorIbSaIbEE9push_backEb; std::vector<bool>::push_back(bool) add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov r15, rax mov rdi, r13 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r13 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rax, [rbx+90h] test rax, rax jz short loc_5A2BA mov rdi, r12 mov rsi, r12 mov edx, 3 call rax jmp short loc_5A2BA jmp short loc_5A2E1 mov r15, rax loc_5A2BA: lea rdi, [rbx+48h] call _ZNSt13_Bvector_baseISaIbEE13_M_deallocateEv; std::_Bvector_base<std::allocator<bool>>::_M_deallocate(void) mov rdi, r14 call _ZNSt13_Bvector_baseISaIbEE13_M_deallocateEv; std::_Bvector_base<std::allocator<bool>>::_M_deallocate(void) lea rdi, [rbx+8] mov rsi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEC2ERSF_St8functionIFbiNS1_13parse_event_tESH_EEb_cold_1; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::json_sax_dom_callback_parser(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&,std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&)>,bool) [clone] mov rdi, r15 call __Unwind_Resume jmp short $+2 loc_5A2E1: mov rdi, rax call __clang_call_terminate
long long nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::json_sax_dom_callback_parser( long long a1, long long a2, long long a3, char a4) { *(_QWORD *)a1 = a2; *(_OWORD *)(a1 + 8) = 0LL; *(_OWORD *)(a1 + 24) = 0LL; *(_OWORD *)(a1 + 40) = 0LL; *(_OWORD *)(a1 + 56) = 0LL; *(_OWORD *)(a1 + 72) = 0LL; *(_OWORD *)(a1 + 88) = 0LL; *(_OWORD *)(a1 + 104) = 0LL; *(_BYTE *)(a1 + 120) = 0; std::function<bool ()(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> &)>::function( (_OWORD *)(a1 + 128), a3); *(_BYTE *)(a1 + 160) = a4; *(_BYTE *)(a1 + 168) = 9; *(_QWORD *)(a1 + 176) = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)(a1 + 168)); return std::vector<bool>::push_back(a1 + 32, 1LL); }
json_sax_dom_callback_parser: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV EBP,ECX MOV RBX,RDI MOV qword ptr [RDI],RSI LEA R14,[RDI + 0x20] LEA R12,[RDI + 0x80] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x8],XMM0 MOVUPS xmmword ptr [RDI + 0x18],XMM0 MOVUPS xmmword ptr [RDI + 0x28],XMM0 MOVUPS xmmword ptr [RDI + 0x38],XMM0 MOVUPS xmmword ptr [RDI + 0x48],XMM0 MOVUPS xmmword ptr [RDI + 0x58],XMM0 MOVUPS xmmword ptr [RDI + 0x68],XMM0 MOV byte ptr [RDI + 0x78],0x0 LAB_0015a231: MOV RDI,R12 MOV RSI,RDX CALL 0x001588c2 MOV byte ptr [RBX + 0xa0],BPL LEA R13,[RBX + 0xa8] MOV byte ptr [RBX + 0xa8],0x9 MOV qword ptr [RBX + 0xb0],0x0 MOV RDI,R13 MOV ESI,0x1 CALL 0x00158f20 LAB_0015a269: MOV RDI,R14 MOV ESI,0x1 CALL 0x0015c5ac ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::json_sax_dom_callback_parser(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>&, std::function<bool (int, nlohmann::json_abi_v3_11_3::detail::parse_event_t, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>&)>, bool) */ void __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::json_sax_dom_callback_parser (json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *this,int8 param_1,function *param_3, json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> param_4) { *(int8 *)this = param_1; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; *(int8 *)(this + 0x50) = 0; *(int8 *)(this + 0x58) = 0; *(int8 *)(this + 0x60) = 0; *(int8 *)(this + 0x68) = 0; *(int8 *)(this + 0x70) = 0; this[0x78] = (json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> )0x0; /* try { // try from 0015a231 to 0015a23b has its CatchHandler @ 0015a2b7 */ std:: function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> ::function((function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)> *)(this + 0x80),param_3); this[0xa0] = param_4; this[0xa8] = (json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> )0x9; *(int8 *)(this + 0xb0) = 0; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant((bool)((char)this + -0x58)); /* try { // try from 0015a269 to 0015a275 has its CatchHandler @ 0015a285 */ std::vector<bool,std::allocator<bool>>::push_back ((vector<bool,std::allocator<bool>> *)(this + 0x20),true); return; }
31,117
my_thread_end
eloqsql/mysys/my_thr_init.c
void my_thread_end(void) { struct st_my_thread_var *tmp; tmp= my_thread_var; #ifdef EXTRA_DEBUG_THREADS fprintf(stderr,"my_thread_end(): tmp: %p pthread_self: %p thread_id: %ld\n", tmp, pthread_self(), tmp ? (long) tmp->id : 0L); #endif /* Remove the instrumentation for this thread. This must be done before trashing st_my_thread_var, because the LF_HASH depends on it. */ PSI_CALL_delete_current_thread(); /* We need to disable DBUG early for this thread to ensure that the the mutex calls doesn't enable it again To this we have to both do DBUG_POP() and also reset THR_KEY_mysys as the key is used by DBUG. */ DBUG_POP(); set_mysys_var(NULL); if (tmp && tmp->init) { #if !defined(DBUG_OFF) /* tmp->dbug is allocated inside DBUG library */ if (tmp->dbug) { free(tmp->dbug); tmp->dbug=0; } #endif my_thread_destory_thr_mutex(tmp); /* Decrement counter for number of running threads. We are using this in my_thread_global_end() to wait until all threads have called my_thread_end and thus freed all memory they have allocated in my_thread_init() and DBUG_xxxx */ mysql_mutex_lock(&THR_LOCK_threads); DBUG_ASSERT(THR_thread_count != 0); if (--THR_thread_count == 0) mysql_cond_signal(&THR_COND_threads); mysql_mutex_unlock(&THR_LOCK_threads); /* Trash variable so that we can detect false accesses to my_thread_var */ tmp->init= 2; free(tmp); } }
O0
c
my_thread_end: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp callq 0x26ab0 movq %rax, -0x8(%rbp) leaq 0x1a7888(%rip), %rax # 0x1ce830 movq (%rax), %rax callq *0x138(%rax) jmp 0x26fb3 xorl %eax, %eax movl %eax, %edi callq 0x26f60 cmpq $0x0, -0x8(%rbp) je 0x2703c movq -0x8(%rbp), %rax movsbl 0xe8(%rax), %eax cmpl $0x0, %eax je 0x2703c movq -0x8(%rbp), %rdi callq 0x26ad0 leaq 0x35f4ed(%rip), %rdi # 0x3864d0 leaq 0x52632(%rip), %rsi # 0x7961c movl $0x175, %edx # imm = 0x175 callq 0x26e10 jmp 0x26ff6 leaq 0x35f2d3(%rip), %rax # 0x3862d0 movl (%rax), %eax addl $-0x1, %eax leaq 0x35f2c7(%rip), %rcx # 0x3862d0 movl %eax, (%rcx) cmpl $0x0, %eax jne 0x2701c leaq 0x35f549(%rip), %rdi # 0x386560 callq 0x27050 leaq 0x35f4ad(%rip), %rdi # 0x3864d0 callq 0x26f00 movq -0x8(%rbp), %rax movb $0x2, 0xe8(%rax) movq -0x8(%rbp), %rdi callq 0x24340 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_thread_end: push rbp mov rbp, rsp sub rsp, 10h call _my_thread_var mov [rbp+var_8], rax lea rax, PSI_server mov rax, [rax] call qword ptr [rax+138h] jmp short $+2 loc_26FB3: xor eax, eax mov edi, eax call set_mysys_var cmp [rbp+var_8], 0 jz short loc_2703C mov rax, [rbp+var_8] movsx eax, byte ptr [rax+0E8h] cmp eax, 0 jz short loc_2703C mov rdi, [rbp+var_8] call my_thread_destory_thr_mutex lea rdi, THR_LOCK_threads lea rsi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 175h call inline_mysql_mutex_lock_0 jmp short $+2 loc_26FF6: lea rax, THR_thread_count mov eax, [rax] add eax, 0FFFFFFFFh lea rcx, THR_thread_count mov [rcx], eax cmp eax, 0 jnz short loc_2701C lea rdi, THR_COND_threads call inline_mysql_cond_signal_0 loc_2701C: lea rdi, THR_LOCK_threads call inline_mysql_mutex_unlock_0 mov rax, [rbp+var_8] mov byte ptr [rax+0E8h], 2 mov rdi, [rbp+var_8] call _free loc_2703C: add rsp, 10h pop rbp retn
long long my_thread_end() { long long result; // rax long long v1; // [rsp+8h] [rbp-8h] v1 = my_thread_var(); (*((void (**)(void))PSI_server[0] + 39))(); result = set_mysys_var(0LL); if ( v1 ) { result = (unsigned int)*(char *)(v1 + 232); if ( *(_BYTE *)(v1 + 232) ) { my_thread_destory_thr_mutex(v1); inline_mysql_mutex_lock_0( (long long)&THR_LOCK_threads, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/my_thr_init.c", 0x175u); if ( !--THR_thread_count ) inline_mysql_cond_signal_0(&THR_COND_threads); inline_mysql_mutex_unlock_0((long long)&THR_LOCK_threads); *(_BYTE *)(v1 + 232) = 2; return free(v1); } } return result; }
my_thread_end: PUSH RBP MOV RBP,RSP SUB RSP,0x10 CALL 0x00126ab0 MOV qword ptr [RBP + -0x8],RAX LEA RAX,[0x2ce830] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x138] JMP 0x00126fb3 LAB_00126fb3: XOR EAX,EAX MOV EDI,EAX CALL 0x00126f60 CMP qword ptr [RBP + -0x8],0x0 JZ 0x0012703c MOV RAX,qword ptr [RBP + -0x8] MOVSX EAX,byte ptr [RAX + 0xe8] CMP EAX,0x0 JZ 0x0012703c MOV RDI,qword ptr [RBP + -0x8] CALL 0x00126ad0 LEA RDI,[0x4864d0] LEA RSI,[0x17961c] MOV EDX,0x175 CALL 0x00126e10 JMP 0x00126ff6 LAB_00126ff6: LEA RAX,[0x4862d0] MOV EAX,dword ptr [RAX] ADD EAX,-0x1 LEA RCX,[0x4862d0] MOV dword ptr [RCX],EAX CMP EAX,0x0 JNZ 0x0012701c LEA RDI,[0x486560] CALL 0x00127050 LAB_0012701c: LEA RDI,[0x4864d0] CALL 0x00126f00 MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX + 0xe8],0x2 MOV RDI,qword ptr [RBP + -0x8] CALL 0x00124340 LAB_0012703c: ADD RSP,0x10 POP RBP RET
void my_thread_end(void) { void *__ptr; __ptr = (void *)_my_thread_var(); (**(code **)(PSI_server + 0x138))(); set_mysys_var(0); if ((__ptr != (void *)0x0) && (*(char *)((long)__ptr + 0xe8) != '\0')) { my_thread_destory_thr_mutex(__ptr); inline_mysql_mutex_lock (THR_LOCK_threads,"/workspace/llm4binary/github2025/eloqsql/mysys/my_thr_init.c",0x175 ); THR_thread_count = THR_thread_count + -1; if (THR_thread_count == 0) { inline_mysql_cond_signal(THR_COND_threads); } inline_mysql_mutex_unlock(THR_LOCK_threads); *(int1 *)((long)__ptr + 0xe8) = 2; free(__ptr); } return; }
31,118
minja::Parser::parse(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, minja::Options const&)
llama.cpp/common/minja/minja.hpp
static std::shared_ptr<TemplateNode> parse(const std::string& template_str, const Options & options) { Parser parser(std::make_shared<std::string>(normalize_newlines(template_str)), options); auto tokens = parser.tokenize(); TemplateTokenIterator begin = tokens.begin(); auto it = begin; TemplateTokenIterator end = tokens.end(); return parser.parseTemplate(begin, it, end, /* fully= */ true); }
O3
cpp
minja::Parser::parse(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, minja::Options const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movq %rdx, %r13 movq %rdi, %r15 leaq 0x18(%rsp), %r14 movq %r14, -0x10(%r14) movq (%rsi), %rax movq 0x8(%rsi), %rdx addq %rax, %rdx leaq 0x8(%rsp), %rdi movq %rax, %rsi callq 0x2c98c movl $0x30, %edi callq 0x20220 movq %rax, %r12 movabsq $0x100000001, %rax # imm = 0x100000001 movq %rax, 0x8(%r12) leaq 0x870a5(%rip), %rax # 0x164888 addq $0x10, %rax movq %rax, (%r12) leaq 0x10(%r12), %rbp movq %r12, %rdi addq $0x20, %rdi movq %rdi, 0x10(%r12) movq 0x8(%rsp), %rax cmpq %r14, %rax movq %r14, %rcx movq %r13, %r14 je 0xdd81f movq %rax, (%rbp) movq 0x18(%rsp), %rax movq %rax, (%rdi) movq 0x10(%rsp), %rbx jmp 0xdd836 movq 0x10(%rsp), %rbx leaq 0x1(%rbx), %rdx movq %rcx, %r13 movq %rcx, %rsi callq 0x200f0 movq %r13, %rcx leaq 0x30(%rsp), %r13 movq %rbx, 0x18(%r12) movq %rcx, 0x8(%rsp) movq $0x0, 0x10(%rsp) movb $0x0, 0x18(%rsp) movq %r12, (%r13) movq %rbp, -0x8(%r13) leaq 0x48(%rsp), %rdi movq %rcx, %rbx leaq 0x28(%rsp), %rsi movq %r14, %rdx callq 0xde500 movq %r13, %rdi callq 0x7416e movq 0x8(%rsp), %rdi cmpq %rbx, %rdi je 0xdd88f movq 0x18(%rsp), %rsi incq %rsi callq 0x20180 leaq 0x8(%rsp), %rdi leaq 0x48(%rsp), %rsi callq 0xde5c8 movq 0x8(%rsp), %rax movq 0x10(%rsp), %rsi leaq 0x28(%rsp), %rdx movq %rax, (%rdx) leaq 0x40(%rsp), %rcx movq %rax, (%rcx) leaq 0x38(%rsp), %r8 movq %rsi, (%r8) leaq 0x48(%rsp), %rsi movq %r15, %rdi movl $0x1, %r9d callq 0xe0c7c leaq 0x8(%rsp), %rdi callq 0xe1f9e leaq 0x50(%rsp), %rdi callq 0x7416e movq %r15, %rax addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0xe1f9e jmp 0xdd90b movq %rax, %rbx leaq 0x50(%rsp), %rdi callq 0x7416e jmp 0xdd941 movq %rbx, %r14 movq %rax, %rbx movq %r13, %rdi callq 0x7416e jmp 0xdd92a movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r14, %rdi je 0xdd941 movq 0x18(%rsp), %rsi incq %rsi callq 0x20180 movq %rbx, %rdi callq 0x20b50 nop
_ZN5minja6Parser5parseERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_7OptionsE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 78h mov r13, rdx mov r15, rdi lea r14, [rsp+0A8h+var_90] mov [r14-10h], r14 mov rax, [rsi] mov rdx, [rsi+8] add rdx, rax lea rdi, [rsp+0A8h+var_A0] mov rsi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) mov edi, 30h ; '0'; unsigned __int64 call __Znwm; operator new(ulong) mov r12, rax mov rax, 100000001h mov [r12+8], rax lea rax, _ZTVSt23_Sp_counted_ptr_inplaceINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIvELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<std::string,std::allocator<void>,(__gnu_cxx::_Lock_policy)2> add rax, 10h mov [r12], rax lea rbp, [r12+10h] mov rdi, r12 add rdi, 20h ; ' ' mov [r12+10h], rdi mov rax, [rsp+0A8h+var_A0] cmp rax, r14 mov rcx, r14 mov r14, r13 jz short loc_DD81F mov [rbp+0], rax mov rax, [rsp+0A8h+var_90] mov [rdi], rax mov rbx, [rsp+0A8h+var_98] jmp short loc_DD836 loc_DD81F: mov rbx, [rsp+0A8h+var_98] lea rdx, [rbx+1] mov r13, rcx mov rsi, rcx call _memcpy mov rcx, r13 loc_DD836: lea r13, [rsp+0A8h+var_78] mov [r12+18h], rbx mov [rsp+0A8h+var_A0], rcx mov [rsp+0A8h+var_98], 0 mov byte ptr [rsp+0A8h+var_90], 0 mov [r13+0], r12 mov [r13-8], rbp lea rdi, [rsp+0A8h+var_60] mov rbx, rcx lea rsi, [rsp+0A8h+var_80] mov rdx, r14 call _ZN5minja6ParserC2ERKSt10shared_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEERKNS_7OptionsE; minja::Parser::Parser(std::shared_ptr<std::string> const&,minja::Options const&) mov rdi, r13 call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() mov rdi, [rsp+0A8h+var_A0]; void * cmp rdi, rbx jz short loc_DD88F mov rsi, [rsp+0A8h+var_90] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_DD88F: lea rdi, [rsp+0A8h+var_A0]; this lea rsi, [rsp+0A8h+var_60] call _ZN5minja6Parser8tokenizeEv; minja::Parser::tokenize(void) mov rax, [rsp+0A8h+var_A0] mov rsi, [rsp+0A8h+var_98] lea rdx, [rsp+0A8h+var_80] mov [rdx], rax lea rcx, [rsp+0A8h+var_68] mov [rcx], rax lea r8, [rsp+0A8h+var_70] mov [r8], rsi lea rsi, [rsp+0A8h+var_60] mov rdi, r15 mov r9d, 1 call _ZNK5minja6Parser13parseTemplateERKN9__gnu_cxx17__normal_iteratorIPKSt10unique_ptrINS_13TemplateTokenESt14default_deleteIS4_EESt6vectorIS7_SaIS7_EEEERSD_SF_b; minja::Parser::parseTemplate(__gnu_cxx::__normal_iterator<std::unique_ptr<minja::TemplateToken> const*,std::vector<std::unique_ptr<minja::TemplateToken>>> const&,__gnu_cxx::__normal_iterator<std::unique_ptr<minja::TemplateToken> const*,std::vector<std::unique_ptr<minja::TemplateToken>>>&,__gnu_cxx::__normal_iterator<std::unique_ptr<minja::TemplateToken> const*,std::vector<std::unique_ptr<minja::TemplateToken>>> const&,bool) lea rdi, [rsp+0A8h+var_A0] call _ZNSt6vectorISt10unique_ptrIN5minja13TemplateTokenESt14default_deleteIS2_EESaIS5_EED2Ev; std::vector<std::unique_ptr<minja::TemplateToken>>::~vector() lea rdi, [rsp+0A8h+var_58] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() mov rax, r15 add rsp, 78h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, [rsp+arg_0] call _ZNSt6vectorISt10unique_ptrIN5minja13TemplateTokenESt14default_deleteIS2_EESaIS5_EED2Ev; std::vector<std::unique_ptr<minja::TemplateToken>>::~vector() jmp short loc_DD90B mov rbx, rax loc_DD90B: lea rdi, [rsp+arg_48] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() jmp short loc_DD941 mov r14, rbx mov rbx, rax mov rdi, r13 call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() jmp short loc_DD92A mov rbx, rax loc_DD92A: mov rdi, [rsp+arg_0]; void * cmp rdi, r14 jz short loc_DD941 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_DD941: mov rdi, rbx call __Unwind_Resume
long long minja::Parser::parse(long long a1, long long a2, long long a3) { long long v5; // r12 _QWORD *v6; // rdi long long v7; // rbx void *v9; // [rsp+8h] [rbp-A0h] BYREF long long v10; // [rsp+10h] [rbp-98h] _QWORD v11[2]; // [rsp+18h] [rbp-90h] BYREF void *v12; // [rsp+28h] [rbp-80h] BYREF volatile signed __int32 *v13; // [rsp+30h] [rbp-78h] BYREF long long v14; // [rsp+38h] [rbp-70h] BYREF void *v15; // [rsp+40h] [rbp-68h] BYREF _BYTE v16[8]; // [rsp+48h] [rbp-60h] BYREF volatile signed __int32 *v17; // [rsp+50h] [rbp-58h] BYREF v9 = v11; std::string::_M_construct<char *>((long long)&v9, *(_BYTE **)a2, *(_QWORD *)a2 + *(_QWORD *)(a2 + 8)); v5 = operator new(0x30uLL); *(_QWORD *)(v5 + 8) = 0x100000001LL; *(_QWORD *)v5 = &`vtable for'std::_Sp_counted_ptr_inplace<std::string,std::allocator<void>,(__gnu_cxx::_Lock_policy)2> + 2; v6 = (_QWORD *)(v5 + 32); *(_QWORD *)(v5 + 16) = v5 + 32; if ( v9 == v11 ) { v7 = v10; memcpy(v6, v11, v10 + 1); } else { *(_QWORD *)(v5 + 16) = v9; *v6 = v11[0]; v7 = v10; } *(_QWORD *)(v5 + 24) = v7; v9 = v11; v10 = 0LL; LOBYTE(v11[0]) = 0; v13 = (volatile signed __int32 *)v5; v12 = (void *)(v5 + 16); minja::Parser::Parser(v16, &v12, a3); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v13); if ( v9 != v11 ) operator delete(v9, v11[0] + 1LL); minja::Parser::tokenize((minja::Parser *)&v9); v12 = v9; v15 = v9; v14 = v10; minja::Parser::parseTemplate(a1, v16, &v12, &v15, &v14, 1LL); std::vector<std::unique_ptr<minja::TemplateToken>>::~vector(&v9); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v17); return a1; }
parse: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x78 MOV R13,RDX MOV R15,RDI LEA R14,[RSP + 0x18] MOV qword ptr [R14 + -0x10],R14 MOV RAX,qword ptr [RSI] MOV RDX,qword ptr [RSI + 0x8] ADD RDX,RAX LEA RDI,[RSP + 0x8] MOV RSI,RAX CALL 0x0012c98c LAB_001dd7c0: MOV EDI,0x30 CALL 0x00120220 LAB_001dd7ca: MOV R12,RAX MOV RAX,0x100000001 MOV qword ptr [R12 + 0x8],RAX LEA RAX,[0x264888] ADD RAX,0x10 MOV qword ptr [R12],RAX LEA RBP,[R12 + 0x10] MOV RDI,R12 ADD RDI,0x20 MOV qword ptr [R12 + 0x10],RDI MOV RAX,qword ptr [RSP + 0x8] CMP RAX,R14 MOV RCX,R14 MOV R14,R13 JZ 0x001dd81f MOV qword ptr [RBP],RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RDI],RAX MOV RBX,qword ptr [RSP + 0x10] JMP 0x001dd836 LAB_001dd81f: MOV RBX,qword ptr [RSP + 0x10] LEA RDX,[RBX + 0x1] MOV R13,RCX MOV RSI,RCX CALL 0x001200f0 MOV RCX,R13 LAB_001dd836: LEA R13,[RSP + 0x30] MOV qword ptr [R12 + 0x18],RBX MOV qword ptr [RSP + 0x8],RCX MOV qword ptr [RSP + 0x10],0x0 MOV byte ptr [RSP + 0x18],0x0 MOV qword ptr [R13],R12 MOV qword ptr [R13 + -0x8],RBP LAB_001dd85b: LEA RDI,[RSP + 0x48] MOV RBX,RCX LEA RSI,[RSP + 0x28] MOV RDX,R14 CALL 0x001de500 MOV RDI,R13 CALL 0x0017416e MOV RDI,qword ptr [RSP + 0x8] CMP RDI,RBX JZ 0x001dd88f MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00120180 LAB_001dd88f: LEA RDI,[RSP + 0x8] LEA RSI,[RSP + 0x48] CALL 0x001de5c8 MOV RAX,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP + 0x10] LEA RDX,[RSP + 0x28] MOV qword ptr [RDX],RAX LEA RCX,[RSP + 0x40] MOV qword ptr [RCX],RAX LEA R8,[RSP + 0x38] MOV qword ptr [R8],RSI LAB_001dd8c0: LEA RSI,[RSP + 0x48] MOV RDI,R15 MOV R9D,0x1 CALL 0x001e0c7c LAB_001dd8d3: LEA RDI,[RSP + 0x8] CALL 0x001e1f9e LEA RDI,[RSP + 0x50] CALL 0x0017416e MOV RAX,R15 ADD RSP,0x78 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* minja::Parser::parse(std::__cxx11::string const&, minja::Options const&) */ Parser * __thiscall minja::Parser::parse(Parser *this,string *param_1,Options *param_2) { int8 *__dest; int8 *local_a0; long local_98; int1 local_90; int7 uStack_8f; int8 *local_80; int8 *local_78; int8 local_70; int8 *local_68; Parser local_60 [8]; __shared_count<(__gnu_cxx::_Lock_policy)2> local_58 [40]; local_a0 = (int8 *)&local_90; std::__cxx11::string::_M_construct<char*> (&local_a0,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1); /* try { // try from 001dd7c0 to 001dd7c9 has its CatchHandler @ 001dd927 */ local_78 = (int8 *)operator_new(0x30); local_78[1] = 0x100000001; *local_78 = &PTR___Sp_counted_base_00264898; local_80 = local_78 + 2; __dest = local_78 + 4; local_78[2] = __dest; if (local_a0 == (int8 *)&local_90) { memcpy(__dest,&local_90,local_98 + 1); } else { *local_80 = local_a0; *__dest = CONCAT71(uStack_8f,local_90); } local_78[3] = local_98; local_98 = 0; local_90 = 0; /* try { // try from 001dd85b to 001dd86f has its CatchHandler @ 001dd917 */ local_a0 = (int8 *)&local_90; Parser(local_60,(shared_ptr *)&local_80,param_2); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&local_78); if (local_a0 != (int8 *)&local_90) { operator_delete(local_a0,CONCAT71(uStack_8f,local_90) + 1); } /* try { // try from 001dd88f to 001dd89d has its CatchHandler @ 001dd908 */ tokenize(); local_80 = local_a0; local_68 = local_a0; local_70 = local_98; /* try { // try from 001dd8c0 to 001dd8d2 has its CatchHandler @ 001dd8f9 */ parseTemplate(this,local_60,(__normal_iterator *)&local_80,SUB81(&local_68,0)); std:: vector<std::unique_ptr<minja::TemplateToken,std::default_delete<minja::TemplateToken>>,std::allocator<std::unique_ptr<minja::TemplateToken,std::default_delete<minja::TemplateToken>>>> ::~vector((vector<std::unique_ptr<minja::TemplateToken,std::default_delete<minja::TemplateToken>>,std::allocator<std::unique_ptr<minja::TemplateToken,std::default_delete<minja::TemplateToken>>>> *)&local_a0); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_58); return this; }
31,119
google::protobuf::DescriptorPool::Tables::Tables()
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc
DescriptorPool::Tables::Tables() { well_known_types_.insert({ {"google.protobuf.DoubleValue", Descriptor::WELLKNOWNTYPE_DOUBLEVALUE}, {"google.protobuf.FloatValue", Descriptor::WELLKNOWNTYPE_FLOATVALUE}, {"google.protobuf.Int64Value", Descriptor::WELLKNOWNTYPE_INT64VALUE}, {"google.protobuf.UInt64Value", Descriptor::WELLKNOWNTYPE_UINT64VALUE}, {"google.protobuf.Int32Value", Descriptor::WELLKNOWNTYPE_INT32VALUE}, {"google.protobuf.UInt32Value", Descriptor::WELLKNOWNTYPE_UINT32VALUE}, {"google.protobuf.StringValue", Descriptor::WELLKNOWNTYPE_STRINGVALUE}, {"google.protobuf.BytesValue", Descriptor::WELLKNOWNTYPE_BYTESVALUE}, {"google.protobuf.BoolValue", Descriptor::WELLKNOWNTYPE_BOOLVALUE}, {"google.protobuf.Any", Descriptor::WELLKNOWNTYPE_ANY}, {"google.protobuf.FieldMask", Descriptor::WELLKNOWNTYPE_FIELDMASK}, {"google.protobuf.Duration", Descriptor::WELLKNOWNTYPE_DURATION}, {"google.protobuf.Timestamp", Descriptor::WELLKNOWNTYPE_TIMESTAMP}, {"google.protobuf.Value", Descriptor::WELLKNOWNTYPE_VALUE}, {"google.protobuf.ListValue", Descriptor::WELLKNOWNTYPE_LISTVALUE}, {"google.protobuf.Struct", Descriptor::WELLKNOWNTYPE_STRUCT}, }); }
O0
cpp
google::protobuf::DescriptorPool::Tables::Tables(): subq $0x3a8, %rsp # imm = 0x3A8 movq %rdi, 0x3a0(%rsp) movq 0x3a0(%rsp), %rdi movq %rdi, 0xa8(%rsp) callq 0x147e0 movq 0xa8(%rsp), %rdi addq $0x18, %rdi movq %rdi, 0x40(%rsp) callq 0x723f0 movq 0xa8(%rsp), %rdi addq $0x50, %rdi movq %rdi, 0x48(%rsp) callq 0x723f0 movq 0xa8(%rsp), %rdi addq $0x88, %rdi movq %rdi, 0x50(%rsp) callq 0x72400 movq 0xa8(%rsp), %rdi addq $0xc0, %rdi movq %rdi, 0x58(%rsp) movq %rdi, %rax movq %rax, 0x60(%rsp) callq 0x72410 movq 0xa8(%rsp), %rdi addq $0xf8, %rdi movq %rdi, 0x68(%rsp) callq 0x72420 movq 0xa8(%rsp), %rdi addq $0x110, %rdi # imm = 0x110 movq %rdi, 0x70(%rsp) callq 0x32570 movq 0xa8(%rsp), %rdi addq $0x128, %rdi # imm = 0x128 movq %rdi, 0x78(%rsp) callq 0x32580 movq 0xa8(%rsp), %rdi addq $0x160, %rdi # imm = 0x160 movq %rdi, 0x80(%rsp) callq 0x72430 movq 0xa8(%rsp), %rdi addq $0x198, %rdi # imm = 0x198 movq %rdi, 0x88(%rsp) callq 0x72440 movq 0xa8(%rsp), %rdi addq $0x1c8, %rdi # imm = 0x1C8 movq %rdi, 0x90(%rsp) callq 0x72450 movq 0xa8(%rsp), %rdi addq $0x1e0, %rdi # imm = 0x1E0 movq %rdi, 0x98(%rsp) callq 0x72460 movq 0xa8(%rsp), %rdi addq $0x1f8, %rdi # imm = 0x1F8 movq %rdi, 0xa0(%rsp) callq 0x72470 movq 0xa8(%rsp), %rdi addq $0x210, %rdi # imm = 0x210 movq %rdi, 0xb0(%rsp) callq 0x72480 leaq 0x110(%rsp), %rdi movq %rdi, 0x108(%rsp) movl $0x1, 0x104(%rsp) leaq 0x1bb4ae(%rip), %rsi # 0x1ed54d leaq 0x104(%rsp), %rdx callq 0x724d0 jmp 0x320ae leaq 0x138(%rsp), %rdi movq %rdi, 0x108(%rsp) movl $0x2, 0xf0(%rsp) leaq 0x1bb499(%rip), %rsi # 0x1ed569 leaq 0xf0(%rsp), %rdx callq 0x72560 jmp 0x320df leaq 0x160(%rsp), %rdi movq %rdi, 0x108(%rsp) movl $0x3, 0xec(%rsp) leaq 0x1bb483(%rip), %rsi # 0x1ed584 leaq 0xec(%rsp), %rdx callq 0x72560 jmp 0x32110 leaq 0x188(%rsp), %rdi movq %rdi, 0x108(%rsp) movl $0x4, 0xe8(%rsp) leaq 0x1bb46d(%rip), %rsi # 0x1ed59f leaq 0xe8(%rsp), %rdx callq 0x724d0 jmp 0x32141 leaq 0x1b0(%rsp), %rdi movq %rdi, 0x108(%rsp) movl $0x5, 0xe4(%rsp) leaq 0x1bb458(%rip), %rsi # 0x1ed5bb leaq 0xe4(%rsp), %rdx callq 0x72560 jmp 0x32172 leaq 0x1d8(%rsp), %rdi movq %rdi, 0x108(%rsp) movl $0x6, 0xe0(%rsp) leaq 0x1bb442(%rip), %rsi # 0x1ed5d6 leaq 0xe0(%rsp), %rdx callq 0x724d0 jmp 0x321a3 leaq 0x200(%rsp), %rdi movq %rdi, 0x108(%rsp) movl $0x7, 0xdc(%rsp) leaq 0x1bb42d(%rip), %rsi # 0x1ed5f2 leaq 0xdc(%rsp), %rdx callq 0x724d0 jmp 0x321d4 leaq 0x228(%rsp), %rdi movq %rdi, 0x108(%rsp) movl $0x8, 0xd8(%rsp) leaq 0x1bb418(%rip), %rsi # 0x1ed60e leaq 0xd8(%rsp), %rdx callq 0x72560 jmp 0x32205 leaq 0x250(%rsp), %rdi movq %rdi, 0x108(%rsp) movl $0x9, 0xd4(%rsp) leaq 0x1bb402(%rip), %rsi # 0x1ed629 leaq 0xd4(%rsp), %rdx callq 0x725f0 jmp 0x32236 leaq 0x278(%rsp), %rdi movq %rdi, 0x108(%rsp) movl $0xa, 0xd0(%rsp) leaq 0x1bb3eb(%rip), %rsi # 0x1ed643 leaq 0xd0(%rsp), %rdx callq 0x72680 jmp 0x32267 leaq 0x2a0(%rsp), %rdi movq %rdi, 0x108(%rsp) movl $0xb, 0xcc(%rsp) leaq 0x1bb3ce(%rip), %rsi # 0x1ed657 leaq 0xcc(%rsp), %rdx callq 0x725f0 jmp 0x32298 leaq 0x2c8(%rsp), %rdi movq %rdi, 0x108(%rsp) movl $0xc, 0xc8(%rsp) leaq 0x1bb3b7(%rip), %rsi # 0x1ed671 leaq 0xc8(%rsp), %rdx callq 0x72710 jmp 0x322c9 leaq 0x2f0(%rsp), %rdi movq %rdi, 0x108(%rsp) movl $0xd, 0xc4(%rsp) leaq 0x1bb39f(%rip), %rsi # 0x1ed68a leaq 0xc4(%rsp), %rdx callq 0x725f0 jmp 0x322fa leaq 0x318(%rsp), %rdi movq %rdi, 0x108(%rsp) movl $0xe, 0xc0(%rsp) leaq 0x1bb388(%rip), %rsi # 0x1ed6a4 leaq 0xc0(%rsp), %rdx callq 0x727a0 jmp 0x3232b leaq 0x340(%rsp), %rdi movq %rdi, 0x108(%rsp) movl $0xf, 0xbc(%rsp) leaq 0x1bb36d(%rip), %rsi # 0x1ed6ba leaq 0xbc(%rsp), %rdx callq 0x725f0 jmp 0x3235c leaq 0x368(%rsp), %rdi movq %rdi, 0x108(%rsp) movl $0x10, 0xb8(%rsp) leaq 0x1bb356(%rip), %rsi # 0x1ed6d4 leaq 0xb8(%rsp), %rdx callq 0x72830 jmp 0x3238d movq 0x58(%rsp), %rdi leaq 0x110(%rsp), %rax movq %rax, 0x390(%rsp) movq $0x10, 0x398(%rsp) movq 0x390(%rsp), %rsi movq 0x398(%rsp), %rdx callq 0x72490 jmp 0x323c5 leaq 0x110(%rsp), %rax movq %rax, 0x30(%rsp) addq $0x280, %rax # imm = 0x280 movq %rax, 0x38(%rsp) movq 0x38(%rsp), %rdi addq $-0x28, %rdi movq %rdi, 0x28(%rsp) callq 0x728c0 movq 0x30(%rsp), %rcx movq 0x28(%rsp), %rax cmpq %rcx, %rax movq %rax, 0x38(%rsp) jne 0x323dd addq $0x3a8, %rsp # imm = 0x3A8 retq movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf8(%rsp) movl %eax, 0xf4(%rsp) movq 0x108(%rsp), %rax leaq 0x110(%rsp), %rcx cmpq %rax, %rcx movq %rax, 0x20(%rsp) je 0x32464 movq 0x20(%rsp), %rdi addq $-0x28, %rdi movq %rdi, 0x18(%rsp) callq 0x728c0 movq 0x18(%rsp), %rax leaq 0x110(%rsp), %rcx cmpq %rcx, %rax movq %rax, 0x20(%rsp) jne 0x3243a jmp 0x324b9 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf8(%rsp) movl %eax, 0xf4(%rsp) leaq 0x110(%rsp), %rax movq %rax, 0x8(%rsp) addq $0x280, %rax # imm = 0x280 movq %rax, 0x10(%rsp) movq 0x10(%rsp), %rdi addq $-0x28, %rdi movq %rdi, (%rsp) callq 0x728c0 movq 0x8(%rsp), %rcx movq (%rsp), %rax cmpq %rcx, %rax movq %rax, 0x10(%rsp) jne 0x32492 jmp 0x324b9 movq 0xb0(%rsp), %rdi callq 0x728d0 movq 0xa0(%rsp), %rdi callq 0x72930 movq 0x98(%rsp), %rdi callq 0x72990 movq 0x90(%rsp), %rdi callq 0x729f0 movq 0x88(%rsp), %rdi callq 0x72a50 movq 0x80(%rsp), %rdi callq 0x72a60 movq 0x78(%rsp), %rdi callq 0x32590 movq 0x70(%rsp), %rdi callq 0x325a0 movq 0x68(%rsp), %rdi callq 0x72a70 movq 0x60(%rsp), %rdi callq 0x72ad0 movq 0x50(%rsp), %rdi callq 0x72ae0 movq 0x48(%rsp), %rdi callq 0x72af0 movq 0x40(%rsp), %rdi callq 0x72af0 movq 0xa8(%rsp), %rdi callq 0x14940 movq 0xf8(%rsp), %rdi callq 0x13750 nopw (%rax,%rax)
_ZN6google8protobuf14DescriptorPool6TablesC2Ev: sub rsp, 3A8h mov [rsp+3A8h+var_8], rdi mov rdi, [rsp+3A8h+var_8] mov [rsp+3A8h+var_300], rdi call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev; std::vector<std::string>::vector(void) mov rdi, [rsp+3A8h+var_300] add rdi, 18h mov [rsp+3A8h+var_368], rdi call _ZNSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EEC2Ev; std::unordered_set<std::string>::unordered_set(void) mov rdi, [rsp+3A8h+var_300] add rdi, 50h ; 'P' mov [rsp+3A8h+var_360], rdi call _ZNSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EEC2Ev; std::unordered_set<std::string>::unordered_set(void) mov rdi, [rsp+3A8h+var_300] add rdi, 88h mov [rsp+3A8h+var_358], rdi call _ZNSt13unordered_setIPKN6google8protobuf10DescriptorESt4hashIS4_ESt8equal_toIS4_ESaIS4_EEC2Ev; std::unordered_set<google::protobuf::Descriptor const*>::unordered_set(void) mov rdi, [rsp+3A8h+var_300] add rdi, 0C0h mov [rsp+3A8h+var_350], rdi mov rax, rdi mov [rsp+3A8h+var_348], rax call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S9_EEEC2Ev; std::unordered_map<std::string,google::protobuf::Descriptor::WellKnownType>::unordered_map(void) mov rdi, [rsp+3A8h+var_300] add rdi, 0F8h mov [rsp+3A8h+var_340], rdi call _ZNSt6vectorISt10unique_ptrIiN6google8protobuf14DescriptorPool6Tables11MiscDeleterEESaIS6_EEC2Ev; std::vector<std::unique_ptr<int,google::protobuf::DescriptorPool::Tables::MiscDeleter>>::vector(void) mov rdi, [rsp+3A8h+var_300] add rdi, 110h mov [rsp+3A8h+var_338], rdi call _ZNSt6vectorISt10unique_ptrIN6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS2_14SourceCodeInfoENS2_20FileDescriptorTablesENS2_14MessageOptionsENS2_12FieldOptionsENS2_11EnumOptionsENS2_16EnumValueOptionsENS2_21ExtensionRangeOptionsENS2_12OneofOptionsENS2_14ServiceOptionsENS2_13MethodOptionsENS2_11FileOptionsEEEENS2_14DescriptorPool6Tables16FlatAllocDeleterEESaISQ_EEC2Ev; std::vector<std::unique_ptr<google::protobuf::`anonymous namespace'::FlatAllocation<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>,google::protobuf::DescriptorPool::Tables::FlatAllocDeleter>>::vector(void) mov rdi, [rsp+3A8h+var_300] add rdi, 128h mov [rsp+3A8h+var_330], rdi call _ZNSt13unordered_setIN6google8protobuf6SymbolENS1_12_GLOBAL__N_120SymbolByFullNameHashENS3_18SymbolByFullNameEqESaIS2_EEC2Ev; std::unordered_set<google::protobuf::Symbol,google::protobuf::`anonymous namespace'::SymbolByFullNameHash,google::protobuf::`anonymous namespace'::SymbolByFullNameEq,std::allocator<google::protobuf::Symbol>>::unordered_set(void) mov rdi, [rsp+3A8h+var_300] add rdi, 160h mov [rsp+3A8h+var_328], rdi call _ZNSt13unordered_mapIN6google8protobuf20stringpiece_internal11StringPieceEPKNS1_14FileDescriptorENS1_4hashIS3_EESt8equal_toIS3_ESaISt4pairIKS3_S6_EEEC2Ev; std::unordered_map<google::protobuf::stringpiece_internal::StringPiece,google::protobuf::FileDescriptor const*,google::protobuf::hash<google::protobuf::stringpiece_internal::StringPiece>,std::equal_to<google::protobuf::stringpiece_internal::StringPiece>,std::allocator<std::pair<google::protobuf::stringpiece_internal::StringPiece const,google::protobuf::FileDescriptor const*>>>::unordered_map(void) mov rdi, [rsp+3A8h+var_300] add rdi, 198h mov [rsp+3A8h+var_320], rdi call _ZNSt3mapISt4pairIPKN6google8protobuf10DescriptorEiEPKNS2_15FieldDescriptorESt4lessIS6_ESaIS0_IKS6_S9_EEEC2Ev; std::map<std::pair<google::protobuf::Descriptor const*,int>,google::protobuf::FieldDescriptor const*>::map(void) mov rdi, [rsp+3A8h+var_300] add rdi, 1C8h mov [rsp+3A8h+var_318], rdi call _ZNSt6vectorIN6google8protobuf14DescriptorPool6Tables10CheckPointESaIS4_EEC2Ev; std::vector<google::protobuf::DescriptorPool::Tables::CheckPoint>::vector(void) mov rdi, [rsp+3A8h+var_300] add rdi, 1E0h mov [rsp+3A8h+var_310], rdi call _ZNSt6vectorIN6google8protobuf6SymbolESaIS2_EEC2Ev; std::vector<google::protobuf::Symbol>::vector(void) mov rdi, [rsp+3A8h+var_300] add rdi, 1F8h mov [rsp+3A8h+var_308], rdi call _ZNSt6vectorIPKN6google8protobuf14FileDescriptorESaIS4_EEC2Ev; std::vector<google::protobuf::FileDescriptor const*>::vector(void) mov rdi, [rsp+3A8h+var_300] add rdi, 210h mov [rsp+3A8h+var_2F8], rdi call _ZNSt6vectorISt4pairIPKN6google8protobuf10DescriptorEiESaIS6_EEC2Ev; std::vector<std::pair<google::protobuf::Descriptor const*,int>>::vector(void) lea rdi, [rsp+3A8h+var_298] mov [rsp+3A8h+var_2A0], rdi mov [rsp+3A8h+var_2A4], 1 lea rsi, aGoogleProtobuf; "google.protobuf.DoubleValue" lea rdx, [rsp+3A8h+var_2A4] call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA28_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ jmp short $+2 loc_320AE: lea rdi, [rsp+3A8h+var_270] mov [rsp+3A8h+var_2A0], rdi mov [rsp+3A8h+var_2B8], 2 lea rsi, aGoogleProtobuf_0; "google.protobuf.FloatValue" lea rdx, [rsp+3A8h+var_2B8] call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA27_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ jmp short $+2 loc_320DF: lea rdi, [rsp+3A8h+var_248] mov [rsp+3A8h+var_2A0], rdi mov [rsp+3A8h+var_2BC], 3 lea rsi, aGoogleProtobuf_1; "google.protobuf.Int64Value" lea rdx, [rsp+3A8h+var_2BC] call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA27_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ jmp short $+2 loc_32110: lea rdi, [rsp+3A8h+var_220] mov [rsp+3A8h+var_2A0], rdi mov [rsp+3A8h+var_2C0], 4 lea rsi, aGoogleProtobuf_2; "google.protobuf.UInt64Value" lea rdx, [rsp+3A8h+var_2C0] call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA28_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ jmp short $+2 loc_32141: lea rdi, [rsp+3A8h+var_1F8] mov [rsp+3A8h+var_2A0], rdi mov [rsp+3A8h+var_2C4], 5 lea rsi, aGoogleProtobuf_3; "google.protobuf.Int32Value" lea rdx, [rsp+3A8h+var_2C4] call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA27_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ jmp short $+2 loc_32172: lea rdi, [rsp+3A8h+var_1D0] mov [rsp+3A8h+var_2A0], rdi mov [rsp+3A8h+var_2C8], 6 lea rsi, aGoogleProtobuf_4; "google.protobuf.UInt32Value" lea rdx, [rsp+3A8h+var_2C8] call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA28_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ jmp short $+2 loc_321A3: lea rdi, [rsp+3A8h+var_1A8] mov [rsp+3A8h+var_2A0], rdi mov [rsp+3A8h+var_2CC], 7 lea rsi, aGoogleProtobuf_5; "google.protobuf.StringValue" lea rdx, [rsp+3A8h+var_2CC] call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA28_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ jmp short $+2 loc_321D4: lea rdi, [rsp+3A8h+var_180] mov [rsp+3A8h+var_2A0], rdi mov [rsp+3A8h+var_2D0], 8 lea rsi, aGoogleProtobuf_6; "google.protobuf.BytesValue" lea rdx, [rsp+3A8h+var_2D0] call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA27_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ jmp short $+2 loc_32205: lea rdi, [rsp+3A8h+var_158] mov [rsp+3A8h+var_2A0], rdi mov [rsp+3A8h+var_2D4], 9 lea rsi, aGoogleProtobuf_7; "google.protobuf.BoolValue" lea rdx, [rsp+3A8h+var_2D4] call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA26_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ jmp short $+2 loc_32236: lea rdi, [rsp+3A8h+var_130] mov [rsp+3A8h+var_2A0], rdi mov [rsp+3A8h+var_2D8], 0Ah lea rsi, aGoogleProtobuf_8; "google.protobuf.Any" lea rdx, [rsp+3A8h+var_2D8] call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA20_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ jmp short $+2 loc_32267: lea rdi, [rsp+3A8h+var_108] mov [rsp+3A8h+var_2A0], rdi mov [rsp+3A8h+var_2DC], 0Bh lea rsi, aGoogleProtobuf_9; "google.protobuf.FieldMask" lea rdx, [rsp+3A8h+var_2DC] call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA26_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ jmp short $+2 loc_32298: lea rdi, [rsp+3A8h+var_E0] mov [rsp+3A8h+var_2A0], rdi mov [rsp+3A8h+var_2E0], 0Ch lea rsi, aGoogleProtobuf_10; "google.protobuf.Duration" lea rdx, [rsp+3A8h+var_2E0] call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA25_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ jmp short $+2 loc_322C9: lea rdi, [rsp+3A8h+var_B8] mov [rsp+3A8h+var_2A0], rdi mov [rsp+3A8h+var_2E4], 0Dh lea rsi, aGoogleProtobuf_11; "google.protobuf.Timestamp" lea rdx, [rsp+3A8h+var_2E4] call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA26_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ jmp short $+2 loc_322FA: lea rdi, [rsp+3A8h+var_90] mov [rsp+3A8h+var_2A0], rdi mov [rsp+3A8h+var_2E8], 0Eh lea rsi, aGoogleProtobuf_12; "google.protobuf.Value" lea rdx, [rsp+3A8h+var_2E8] call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA22_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ jmp short $+2 loc_3232B: lea rdi, [rsp+3A8h+var_68] mov [rsp+3A8h+var_2A0], rdi mov [rsp+3A8h+var_2EC], 0Fh lea rsi, aGoogleProtobuf_13; "google.protobuf.ListValue" lea rdx, [rsp+3A8h+var_2EC] call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA26_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ jmp short $+2 loc_3235C: lea rdi, [rsp+3A8h+var_40] mov [rsp+3A8h+var_2A0], rdi mov [rsp+3A8h+var_2F0], 10h lea rsi, aGoogleProtobuf_14; "google.protobuf.Struct" lea rdx, [rsp+3A8h+var_2F0] call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA23_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ jmp short $+2 loc_3238D: mov rdi, [rsp+3A8h+var_350] lea rax, [rsp+3A8h+var_298] mov [rsp+3A8h+var_18], rax mov [rsp+3A8h+var_10], 10h mov rsi, [rsp+3A8h+var_18] mov rdx, [rsp+3A8h+var_10] call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S9_EEE6insertESt16initializer_listISG_E; std::unordered_map<std::string,google::protobuf::Descriptor::WellKnownType>::insert(std::initializer_list<std::pair<std::string const,google::protobuf::Descriptor::WellKnownType>>) jmp short $+2 loc_323C5: lea rax, [rsp+3A8h+var_298] mov [rsp+3A8h+var_378], rax add rax, 280h mov [rsp+3A8h+var_370], rax loc_323DD: mov rdi, [rsp+3A8h+var_370] add rdi, 0FFFFFFFFFFFFFFD8h mov [rsp+3A8h+var_380], rdi call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEED2Ev; std::pair<std::string const,google::protobuf::Descriptor::WellKnownType>::~pair() mov rcx, [rsp+3A8h+var_378] mov rax, [rsp+3A8h+var_380] cmp rax, rcx mov [rsp+3A8h+var_370], rax jnz short loc_323DD add rsp, 3A8h retn mov rcx, rax mov eax, edx mov [rsp+arg_F0], rcx mov [rsp+arg_EC], eax mov rax, [rsp+arg_100] lea rcx, [rsp+arg_108] cmp rcx, rax mov [rsp+arg_18], rax jz short loc_32464 loc_3243A: mov rdi, [rsp+arg_18] add rdi, 0FFFFFFFFFFFFFFD8h mov [rsp+arg_10], rdi call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEED2Ev; std::pair<std::string const,google::protobuf::Descriptor::WellKnownType>::~pair() mov rax, [rsp+arg_10] lea rcx, [rsp+arg_108] cmp rax, rcx mov [rsp+arg_18], rax jnz short loc_3243A loc_32464: jmp short loc_324B9 mov rcx, rax mov eax, edx mov [rsp+arg_F0], rcx mov [rsp+arg_EC], eax lea rax, [rsp+arg_108] mov [rsp+arg_0], rax add rax, 280h mov [rsp+arg_8], rax loc_32492: mov rdi, [rsp+arg_8] add rdi, 0FFFFFFFFFFFFFFD8h mov [rsp+0], rdi call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEED2Ev; std::pair<std::string const,google::protobuf::Descriptor::WellKnownType>::~pair() mov rcx, [rsp+arg_0] mov rax, [rsp+0] cmp rax, rcx mov [rsp+arg_8], rax jnz short loc_32492 jmp short $+2 loc_324B9: mov rdi, [rsp+arg_A8] call _ZNSt6vectorISt4pairIPKN6google8protobuf10DescriptorEiESaIS6_EED2Ev; std::vector<std::pair<google::protobuf::Descriptor const*,int>>::~vector() mov rdi, [rsp+arg_98] call _ZNSt6vectorIPKN6google8protobuf14FileDescriptorESaIS4_EED2Ev; std::vector<google::protobuf::FileDescriptor const*>::~vector() mov rdi, [rsp+arg_90] call _ZNSt6vectorIN6google8protobuf6SymbolESaIS2_EED2Ev; std::vector<google::protobuf::Symbol>::~vector() mov rdi, [rsp+arg_88] call _ZNSt6vectorIN6google8protobuf14DescriptorPool6Tables10CheckPointESaIS4_EED2Ev; std::vector<google::protobuf::DescriptorPool::Tables::CheckPoint>::~vector() mov rdi, [rsp+arg_80] call _ZNSt3mapISt4pairIPKN6google8protobuf10DescriptorEiEPKNS2_15FieldDescriptorESt4lessIS6_ESaIS0_IKS6_S9_EEED2Ev; std::map<std::pair<google::protobuf::Descriptor const*,int>,google::protobuf::FieldDescriptor const*>::~map() mov rdi, [rsp+arg_78] call _ZNSt13unordered_mapIN6google8protobuf20stringpiece_internal11StringPieceEPKNS1_14FileDescriptorENS1_4hashIS3_EESt8equal_toIS3_ESaISt4pairIKS3_S6_EEED2Ev; std::unordered_map<google::protobuf::stringpiece_internal::StringPiece,google::protobuf::FileDescriptor const*,google::protobuf::hash<google::protobuf::stringpiece_internal::StringPiece>,std::equal_to<google::protobuf::stringpiece_internal::StringPiece>,std::allocator<std::pair<google::protobuf::stringpiece_internal::StringPiece const,google::protobuf::FileDescriptor const*>>>::~unordered_map() mov rdi, [rsp+arg_70] call _ZNSt13unordered_setIN6google8protobuf6SymbolENS1_12_GLOBAL__N_120SymbolByFullNameHashENS3_18SymbolByFullNameEqESaIS2_EED2Ev; std::unordered_set<google::protobuf::Symbol,google::protobuf::`anonymous namespace'::SymbolByFullNameHash,google::protobuf::`anonymous namespace'::SymbolByFullNameEq,std::allocator<google::protobuf::Symbol>>::~unordered_set() mov rdi, [rsp+arg_68] call _ZNSt6vectorISt10unique_ptrIN6google8protobuf12_GLOBAL__N_114FlatAllocationIJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS2_14SourceCodeInfoENS2_20FileDescriptorTablesENS2_14MessageOptionsENS2_12FieldOptionsENS2_11EnumOptionsENS2_16EnumValueOptionsENS2_21ExtensionRangeOptionsENS2_12OneofOptionsENS2_14ServiceOptionsENS2_13MethodOptionsENS2_11FileOptionsEEEENS2_14DescriptorPool6Tables16FlatAllocDeleterEESaISQ_EED2Ev; std::vector<std::unique_ptr<google::protobuf::`anonymous namespace'::FlatAllocation<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>,google::protobuf::DescriptorPool::Tables::FlatAllocDeleter>>::~vector() mov rdi, [rsp+arg_60] call _ZNSt6vectorISt10unique_ptrIiN6google8protobuf14DescriptorPool6Tables11MiscDeleterEESaIS6_EED2Ev; std::vector<std::unique_ptr<int,google::protobuf::DescriptorPool::Tables::MiscDeleter>>::~vector() mov rdi, [rsp+arg_58] call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S9_EEED2Ev; std::unordered_map<std::string,google::protobuf::Descriptor::WellKnownType>::~unordered_map() mov rdi, [rsp+arg_48] call _ZNSt13unordered_setIPKN6google8protobuf10DescriptorESt4hashIS4_ESt8equal_toIS4_ESaIS4_EED2Ev; std::unordered_set<google::protobuf::Descriptor const*>::~unordered_set() mov rdi, [rsp+arg_40] call _ZNSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EED2Ev; std::unordered_set<std::string>::~unordered_set() mov rdi, [rsp+arg_38] call _ZNSt13unordered_setINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4hashIS5_ESt8equal_toIS5_ESaIS5_EED2Ev; std::unordered_set<std::string>::~unordered_set() mov rdi, [rsp+arg_A0] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, [rsp+arg_F0] call __Unwind_Resume
_BYTE * google::protobuf::DescriptorPool::Tables::Tables(google::protobuf::DescriptorPool::Tables *this) { int v1; // ecx int v2; // r8d int v3; // r9d int v4; // ecx int v5; // r8d int v6; // r9d int v7; // ecx int v8; // r8d int v9; // r9d int v10; // ecx int v11; // r8d int v12; // r9d int v13; // ecx int v14; // r8d int v15; // r9d int v16; // ecx int v17; // r8d int v18; // r9d int v19; // ecx int v20; // r8d int v21; // r9d int v22; // ecx int v23; // r8d int v24; // r9d int v25; // ecx int v26; // r8d int v27; // r9d int v28; // ecx int v29; // r8d int v30; // r9d int v31; // ecx int v32; // r8d int v33; // r9d int v34; // ecx int v35; // r8d int v36; // r9d int v37; // ecx int v38; // r8d int v39; // r9d int v40; // ecx int v41; // r8d int v42; // r9d int v43; // ecx int v44; // r8d int v45; // r9d int v46; // ecx int v47; // r8d int v48; // r9d _BYTE *result; // rax _QWORD *v50; // [rsp+38h] [rbp-370h] int v51; // [rsp+B8h] [rbp-2F0h] BYREF int v52; // [rsp+BCh] [rbp-2ECh] BYREF int v53; // [rsp+C0h] [rbp-2E8h] BYREF int v54; // [rsp+C4h] [rbp-2E4h] BYREF int v55; // [rsp+C8h] [rbp-2E0h] BYREF int v56; // [rsp+CCh] [rbp-2DCh] BYREF int v57; // [rsp+D0h] [rbp-2D8h] BYREF int v58; // [rsp+D4h] [rbp-2D4h] BYREF int v59; // [rsp+D8h] [rbp-2D0h] BYREF int v60; // [rsp+DCh] [rbp-2CCh] BYREF int v61; // [rsp+E0h] [rbp-2C8h] BYREF int v62; // [rsp+E4h] [rbp-2C4h] BYREF int v63; // [rsp+E8h] [rbp-2C0h] BYREF int v64; // [rsp+ECh] [rbp-2BCh] BYREF int v65; // [rsp+F0h] [rbp-2B8h] BYREF int v66; // [rsp+104h] [rbp-2A4h] BYREF _BYTE *v67; // [rsp+108h] [rbp-2A0h] _BYTE v68[40]; // [rsp+110h] [rbp-298h] BYREF _BYTE v69[40]; // [rsp+138h] [rbp-270h] BYREF _BYTE v70[40]; // [rsp+160h] [rbp-248h] BYREF _BYTE v71[40]; // [rsp+188h] [rbp-220h] BYREF _BYTE v72[40]; // [rsp+1B0h] [rbp-1F8h] BYREF _BYTE v73[40]; // [rsp+1D8h] [rbp-1D0h] BYREF _BYTE v74[40]; // [rsp+200h] [rbp-1A8h] BYREF _BYTE v75[40]; // [rsp+228h] [rbp-180h] BYREF _BYTE v76[40]; // [rsp+250h] [rbp-158h] BYREF _BYTE v77[40]; // [rsp+278h] [rbp-130h] BYREF _BYTE v78[40]; // [rsp+2A0h] [rbp-108h] BYREF _BYTE v79[40]; // [rsp+2C8h] [rbp-E0h] BYREF _BYTE v80[40]; // [rsp+2F0h] [rbp-B8h] BYREF _BYTE v81[40]; // [rsp+318h] [rbp-90h] BYREF _BYTE v82[40]; // [rsp+340h] [rbp-68h] BYREF _BYTE v83[40]; // [rsp+368h] [rbp-40h] BYREF _QWORD v84[3]; // [rsp+390h] [rbp-18h] BYREF v84[2] = this; std::vector<std::string>::vector((long long)this); std::unordered_set<std::string>::unordered_set(); std::unordered_set<std::string>::unordered_set(); std::unordered_set<google::protobuf::Descriptor const*>::unordered_set(); std::unordered_map<std::string,google::protobuf::Descriptor::WellKnownType>::unordered_map(); std::vector<std::unique_ptr<int,google::protobuf::DescriptorPool::Tables::MiscDeleter>>::vector(); std::vector<std::unique_ptr<google::protobuf::`anonymous namespace'::FlatAllocation<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>,google::protobuf::DescriptorPool::Tables::FlatAllocDeleter>>::vector(); std::unordered_set<google::protobuf::Symbol,google::protobuf::`anonymous namespace'::SymbolByFullNameHash,google::protobuf::`anonymous namespace'::SymbolByFullNameEq,std::allocator<google::protobuf::Symbol>>::unordered_set(); std::unordered_map<google::protobuf::stringpiece_internal::StringPiece,google::protobuf::FileDescriptor const*,google::protobuf::hash<google::protobuf::stringpiece_internal::StringPiece>,std::equal_to<google::protobuf::stringpiece_internal::StringPiece>,std::allocator<std::pair<google::protobuf::stringpiece_internal::StringPiece const,google::protobuf::FileDescriptor const*>>>::unordered_map(); std::map<std::pair<google::protobuf::Descriptor const*,int>,google::protobuf::FieldDescriptor const*>::map(); std::vector<google::protobuf::DescriptorPool::Tables::CheckPoint>::vector(); std::vector<google::protobuf::Symbol>::vector(); std::vector<google::protobuf::FileDescriptor const*>::vector(); std::vector<std::pair<google::protobuf::Descriptor const*,int>>::vector(); v67 = v68; v66 = 1; ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA28_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_( (unsigned int)v68, (unsigned int)"google.protobuf.DoubleValue", (unsigned int)&v66, v1, v2, v3); v67 = v69; v65 = 2; ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA27_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_( (unsigned int)v69, (unsigned int)"google.protobuf.FloatValue", (unsigned int)&v65, v4, v5, v6); v67 = v70; v64 = 3; ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA27_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_( (unsigned int)v70, (unsigned int)"google.protobuf.Int64Value", (unsigned int)&v64, v7, v8, v9); v67 = v71; v63 = 4; ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA28_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_( (unsigned int)v71, (unsigned int)"google.protobuf.UInt64Value", (unsigned int)&v63, v10, v11, v12); v67 = v72; v62 = 5; ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA27_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_( (unsigned int)v72, (unsigned int)"google.protobuf.Int32Value", (unsigned int)&v62, v13, v14, v15); v67 = v73; v61 = 6; ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA28_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_( (unsigned int)v73, (unsigned int)"google.protobuf.UInt32Value", (unsigned int)&v61, v16, v17, v18); v67 = v74; v60 = 7; ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA28_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_( (unsigned int)v74, (unsigned int)"google.protobuf.StringValue", (unsigned int)&v60, v19, v20, v21); v67 = v75; v59 = 8; ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA27_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_( (unsigned int)v75, (unsigned int)"google.protobuf.BytesValue", (unsigned int)&v59, v22, v23, v24); v67 = v76; v58 = 9; ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA26_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_( (unsigned int)v76, (unsigned int)"google.protobuf.BoolValue", (unsigned int)&v58, v25, v26, v27); v67 = v77; v57 = 10; ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA20_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_( (unsigned int)v77, (unsigned int)"google.protobuf.Any", (unsigned int)&v57, v28, v29, v30); v67 = v78; v56 = 11; ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA26_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_( (unsigned int)v78, (unsigned int)"google.protobuf.FieldMask", (unsigned int)&v56, v31, v32, v33); v67 = v79; v55 = 12; ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA25_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_( (unsigned int)v79, (unsigned int)"google.protobuf.Duration", (unsigned int)&v55, v34, v35, v36); v67 = v80; v54 = 13; ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA26_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_( (unsigned int)v80, (unsigned int)"google.protobuf.Timestamp", (unsigned int)&v54, v37, v38, v39); v67 = v81; v53 = 14; ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA22_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_( (unsigned int)v81, (unsigned int)"google.protobuf.Value", (unsigned int)&v53, v40, v41, v42); v67 = v82; v52 = 15; ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA26_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_( (unsigned int)v82, (unsigned int)"google.protobuf.ListValue", (unsigned int)&v52, v43, v44, v45); v67 = v83; v51 = 16; ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA23_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_( (unsigned int)v83, (unsigned int)"google.protobuf.Struct", (unsigned int)&v51, v46, v47, v48); v84[0] = v68; v84[1] = 16LL; std::unordered_map<std::string,google::protobuf::Descriptor::WellKnownType>::insert((char *)this + 192, v68, 16LL); v50 = v84; do { std::pair<std::string const,google::protobuf::Descriptor::WellKnownType>::~pair(); result = v50 - 5; v50 = result; } while ( result != v68 ); return result; }
Tables: SUB RSP,0x3a8 MOV qword ptr [RSP + 0x3a0],RDI MOV RDI,qword ptr [RSP + 0x3a0] MOV qword ptr [RSP + 0xa8],RDI CALL 0x001147e0 MOV RDI,qword ptr [RSP + 0xa8] ADD RDI,0x18 MOV qword ptr [RSP + 0x40],RDI CALL 0x001723f0 MOV RDI,qword ptr [RSP + 0xa8] ADD RDI,0x50 MOV qword ptr [RSP + 0x48],RDI CALL 0x001723f0 MOV RDI,qword ptr [RSP + 0xa8] ADD RDI,0x88 MOV qword ptr [RSP + 0x50],RDI CALL 0x00172400 MOV RDI,qword ptr [RSP + 0xa8] ADD RDI,0xc0 MOV qword ptr [RSP + 0x58],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x60],RAX CALL 0x00172410 MOV RDI,qword ptr [RSP + 0xa8] ADD RDI,0xf8 MOV qword ptr [RSP + 0x68],RDI CALL 0x00172420 MOV RDI,qword ptr [RSP + 0xa8] ADD RDI,0x110 MOV qword ptr [RSP + 0x70],RDI CALL 0x00132570 MOV RDI,qword ptr [RSP + 0xa8] ADD RDI,0x128 MOV qword ptr [RSP + 0x78],RDI CALL 0x00132580 MOV RDI,qword ptr [RSP + 0xa8] ADD RDI,0x160 MOV qword ptr [RSP + 0x80],RDI CALL 0x00172430 MOV RDI,qword ptr [RSP + 0xa8] ADD RDI,0x198 MOV qword ptr [RSP + 0x88],RDI CALL 0x00172440 MOV RDI,qword ptr [RSP + 0xa8] ADD RDI,0x1c8 MOV qword ptr [RSP + 0x90],RDI CALL 0x00172450 MOV RDI,qword ptr [RSP + 0xa8] ADD RDI,0x1e0 MOV qword ptr [RSP + 0x98],RDI CALL 0x00172460 MOV RDI,qword ptr [RSP + 0xa8] ADD RDI,0x1f8 MOV qword ptr [RSP + 0xa0],RDI CALL 0x00172470 MOV RDI,qword ptr [RSP + 0xa8] ADD RDI,0x210 MOV qword ptr [RSP + 0xb0],RDI CALL 0x00172480 LEA RDI,[RSP + 0x110] MOV qword ptr [RSP + 0x108],RDI MOV dword ptr [RSP + 0x104],0x1 LAB_00132098: LEA RSI,[0x2ed54d] LEA RDX,[RSP + 0x104] CALL 0x001724d0 JMP 0x001320ae LAB_001320ae: LEA RDI,[RSP + 0x138] MOV qword ptr [RSP + 0x108],RDI MOV dword ptr [RSP + 0xf0],0x2 LEA RSI,[0x2ed569] LEA RDX,[RSP + 0xf0] CALL 0x00172560 JMP 0x001320df LAB_001320df: LEA RDI,[RSP + 0x160] MOV qword ptr [RSP + 0x108],RDI MOV dword ptr [RSP + 0xec],0x3 LEA RSI,[0x2ed584] LEA RDX,[RSP + 0xec] CALL 0x00172560 JMP 0x00132110 LAB_00132110: LEA RDI,[RSP + 0x188] MOV qword ptr [RSP + 0x108],RDI MOV dword ptr [RSP + 0xe8],0x4 LEA RSI,[0x2ed59f] LEA RDX,[RSP + 0xe8] CALL 0x001724d0 JMP 0x00132141 LAB_00132141: LEA RDI,[RSP + 0x1b0] MOV qword ptr [RSP + 0x108],RDI MOV dword ptr [RSP + 0xe4],0x5 LEA RSI,[0x2ed5bb] LEA RDX,[RSP + 0xe4] CALL 0x00172560 JMP 0x00132172 LAB_00132172: LEA RDI,[RSP + 0x1d8] MOV qword ptr [RSP + 0x108],RDI MOV dword ptr [RSP + 0xe0],0x6 LEA RSI,[0x2ed5d6] LEA RDX,[RSP + 0xe0] CALL 0x001724d0 JMP 0x001321a3 LAB_001321a3: LEA RDI,[RSP + 0x200] MOV qword ptr [RSP + 0x108],RDI MOV dword ptr [RSP + 0xdc],0x7 LEA RSI,[0x2ed5f2] LEA RDX,[RSP + 0xdc] CALL 0x001724d0 JMP 0x001321d4 LAB_001321d4: LEA RDI,[RSP + 0x228] MOV qword ptr [RSP + 0x108],RDI MOV dword ptr [RSP + 0xd8],0x8 LEA RSI,[0x2ed60e] LEA RDX,[RSP + 0xd8] CALL 0x00172560 JMP 0x00132205 LAB_00132205: LEA RDI,[RSP + 0x250] MOV qword ptr [RSP + 0x108],RDI MOV dword ptr [RSP + 0xd4],0x9 LEA RSI,[0x2ed629] LEA RDX,[RSP + 0xd4] CALL 0x001725f0 JMP 0x00132236 LAB_00132236: LEA RDI,[RSP + 0x278] MOV qword ptr [RSP + 0x108],RDI MOV dword ptr [RSP + 0xd0],0xa LEA RSI,[0x2ed643] LEA RDX,[RSP + 0xd0] CALL 0x00172680 JMP 0x00132267 LAB_00132267: LEA RDI,[RSP + 0x2a0] MOV qword ptr [RSP + 0x108],RDI MOV dword ptr [RSP + 0xcc],0xb LEA RSI,[0x2ed657] LEA RDX,[RSP + 0xcc] CALL 0x001725f0 JMP 0x00132298 LAB_00132298: LEA RDI,[RSP + 0x2c8] MOV qword ptr [RSP + 0x108],RDI MOV dword ptr [RSP + 0xc8],0xc LEA RSI,[0x2ed671] LEA RDX,[RSP + 0xc8] CALL 0x00172710 JMP 0x001322c9 LAB_001322c9: LEA RDI,[RSP + 0x2f0] MOV qword ptr [RSP + 0x108],RDI MOV dword ptr [RSP + 0xc4],0xd LEA RSI,[0x2ed68a] LEA RDX,[RSP + 0xc4] CALL 0x001725f0 JMP 0x001322fa LAB_001322fa: LEA RDI,[RSP + 0x318] MOV qword ptr [RSP + 0x108],RDI MOV dword ptr [RSP + 0xc0],0xe LEA RSI,[0x2ed6a4] LEA RDX,[RSP + 0xc0] CALL 0x001727a0 JMP 0x0013232b LAB_0013232b: LEA RDI,[RSP + 0x340] MOV qword ptr [RSP + 0x108],RDI MOV dword ptr [RSP + 0xbc],0xf LEA RSI,[0x2ed6ba] LEA RDX,[RSP + 0xbc] CALL 0x001725f0 JMP 0x0013235c LAB_0013235c: LEA RDI,[RSP + 0x368] MOV qword ptr [RSP + 0x108],RDI MOV dword ptr [RSP + 0xb8],0x10 LEA RSI,[0x2ed6d4] LEA RDX,[RSP + 0xb8] CALL 0x00172830 JMP 0x0013238d LAB_0013238d: MOV RDI,qword ptr [RSP + 0x58] LEA RAX,[RSP + 0x110] MOV qword ptr [RSP + 0x390],RAX MOV qword ptr [RSP + 0x398],0x10 MOV RSI,qword ptr [RSP + 0x390] MOV RDX,qword ptr [RSP + 0x398] LAB_001323be: CALL 0x00172490 LAB_001323c3: JMP 0x001323c5 LAB_001323c5: LEA RAX,[RSP + 0x110] MOV qword ptr [RSP + 0x30],RAX ADD RAX,0x280 MOV qword ptr [RSP + 0x38],RAX LAB_001323dd: MOV RDI,qword ptr [RSP + 0x38] ADD RDI,-0x28 MOV qword ptr [RSP + 0x28],RDI CALL 0x001728c0 MOV RCX,qword ptr [RSP + 0x30] MOV RAX,qword ptr [RSP + 0x28] CMP RAX,RCX MOV qword ptr [RSP + 0x38],RAX JNZ 0x001323dd ADD RSP,0x3a8 RET
/* google::protobuf::DescriptorPool::Tables::Tables() */ void __thiscall google::protobuf::DescriptorPool::Tables::Tables(Tables *this) { pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType> *local_370; int4 local_2f0; int4 local_2ec; int4 local_2e8; int4 local_2e4; int4 local_2e0; int4 local_2dc; int4 local_2d8; int4 local_2d4; int4 local_2d0; int4 local_2cc; int4 local_2c8; int4 local_2c4; int4 local_2c0; int4 local_2bc; int4 local_2b8 [5]; int4 local_2a4; pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType> *local_2a0; pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType> local_298 [40]; int1 local_270 [40]; int1 local_248 [40]; int1 local_220 [40]; int1 local_1f8 [40]; int1 local_1d0 [40]; int1 local_1a8 [40]; int1 local_180 [40]; int1 local_158 [40]; int1 local_130 [40]; int1 local_108 [40]; int1 local_e0 [40]; int1 local_b8 [40]; int1 local_90 [40]; int1 local_68 [40]; int1 local_40 [40]; pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType> *local_18; int8 local_10; Tables *local_8; local_8 = this; std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)this); std:: unordered_set<std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::__cxx11::string>> ::unordered_set((unordered_set<std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::__cxx11::string>> *)(this + 0x18)); std:: unordered_set<std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::__cxx11::string>> ::unordered_set((unordered_set<std::__cxx11::string,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::__cxx11::string>> *)(this + 0x50)); std:: unordered_set<google::protobuf::Descriptor_const*,std::hash<google::protobuf::Descriptor_const*>,std::equal_to<google::protobuf::Descriptor_const*>,std::allocator<google::protobuf::Descriptor_const*>> ::unordered_set((unordered_set<google::protobuf::Descriptor_const*,std::hash<google::protobuf::Descriptor_const*>,std::equal_to<google::protobuf::Descriptor_const*>,std::allocator<google::protobuf::Descriptor_const*>> *)(this + 0x88)); std:: unordered_map<std::__cxx11::string,google::protobuf::Descriptor::WellKnownType,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType>>> ::unordered_map((unordered_map<std::__cxx11::string,google::protobuf::Descriptor::WellKnownType,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType>>> *)(this + 0xc0)); std:: vector<std::unique_ptr<int,google::protobuf::DescriptorPool::Tables::MiscDeleter>,std::allocator<std::unique_ptr<int,google::protobuf::DescriptorPool::Tables::MiscDeleter>>> ::vector((vector<std::unique_ptr<int,google::protobuf::DescriptorPool::Tables::MiscDeleter>,std::allocator<std::unique_ptr<int,google::protobuf::DescriptorPool::Tables::MiscDeleter>>> *)(this + 0xf8)); std:: vector<std::unique_ptr<google::protobuf::(anonymous_namespace)::FlatAllocation<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>,google::protobuf::DescriptorPool::Tables::FlatAllocDeleter>,std::allocator<std::unique_ptr<google::protobuf::(anonymous_namespace)::FlatAllocation<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>,google::protobuf::DescriptorPool::Tables::FlatAllocDeleter>>> ::vector((vector<std::unique_ptr<google::protobuf::(anonymous_namespace)::FlatAllocation<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>,google::protobuf::DescriptorPool::Tables::FlatAllocDeleter>,std::allocator<std::unique_ptr<google::protobuf::(anonymous_namespace)::FlatAllocation<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>,google::protobuf::DescriptorPool::Tables::FlatAllocDeleter>>> *)(this + 0x110)); std:: unordered_set<google::protobuf::Symbol,google::protobuf::(anonymous_namespace)::SymbolByFullNameHash,google::protobuf::(anonymous_namespace)::SymbolByFullNameEq,std::allocator<google::protobuf::Symbol>> ::unordered_set((unordered_set<google::protobuf::Symbol,google::protobuf::(anonymous_namespace)::SymbolByFullNameHash,google::protobuf::(anonymous_namespace)::SymbolByFullNameEq,std::allocator<google::protobuf::Symbol>> *)(this + 0x128)); std:: unordered_map<google::protobuf::stringpiece_internal::StringPiece,google::protobuf::FileDescriptor_const*,google::protobuf::hash<google::protobuf::stringpiece_internal::StringPiece>,std::equal_to<google::protobuf::stringpiece_internal::StringPiece>,std::allocator<std::pair<google::protobuf::stringpiece_internal::StringPiece_const,google::protobuf::FileDescriptor_const*>>> ::unordered_map((unordered_map<google::protobuf::stringpiece_internal::StringPiece,google::protobuf::FileDescriptor_const*,google::protobuf::hash<google::protobuf::stringpiece_internal::StringPiece>,std::equal_to<google::protobuf::stringpiece_internal::StringPiece>,std::allocator<std::pair<google::protobuf::stringpiece_internal::StringPiece_const,google::protobuf::FileDescriptor_const*>>> *)(this + 0x160)); std:: map<std::pair<google::protobuf::Descriptor_const*,int>,google::protobuf::FieldDescriptor_const*,std::less<std::pair<google::protobuf::Descriptor_const*,int>>,std::allocator<std::pair<std::pair<google::protobuf::Descriptor_const*,int>const,google::protobuf::FieldDescriptor_const*>>> ::map((map<std::pair<google::protobuf::Descriptor_const*,int>,google::protobuf::FieldDescriptor_const*,std::less<std::pair<google::protobuf::Descriptor_const*,int>>,std::allocator<std::pair<std::pair<google::protobuf::Descriptor_const*,int>const,google::protobuf::FieldDescriptor_const*>>> *)(this + 0x198)); std:: vector<google::protobuf::DescriptorPool::Tables::CheckPoint,std::allocator<google::protobuf::DescriptorPool::Tables::CheckPoint>> ::vector((vector<google::protobuf::DescriptorPool::Tables::CheckPoint,std::allocator<google::protobuf::DescriptorPool::Tables::CheckPoint>> *)(this + 0x1c8)); std::vector<google::protobuf::Symbol,std::allocator<google::protobuf::Symbol>>::vector ((vector<google::protobuf::Symbol,std::allocator<google::protobuf::Symbol>> *) (this + 0x1e0)); std:: vector<google::protobuf::FileDescriptor_const*,std::allocator<google::protobuf::FileDescriptor_const*>> ::vector((vector<google::protobuf::FileDescriptor_const*,std::allocator<google::protobuf::FileDescriptor_const*>> *)(this + 0x1f8)); std:: vector<std::pair<google::protobuf::Descriptor_const*,int>,std::allocator<std::pair<google::protobuf::Descriptor_const*,int>>> ::vector((vector<std::pair<google::protobuf::Descriptor_const*,int>,std::allocator<std::pair<google::protobuf::Descriptor_const*,int>>> *)(this + 0x210)); local_2a0 = local_298; local_2a4 = 1; /* try { // try from 00132098 to 0013238a has its CatchHandler @ 0013240c */ _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA28_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ (local_2a0,"google.protobuf.DoubleValue",&local_2a4); local_2a0 = (pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType> *) local_270; local_2b8[0] = 2; _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA27_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ (local_2a0,"google.protobuf.FloatValue",local_2b8); local_2a0 = (pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType> *) local_248; local_2bc = 3; _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA27_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ (local_2a0,"google.protobuf.Int64Value",&local_2bc); local_2a0 = (pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType> *) local_220; local_2c0 = 4; _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA28_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ (local_2a0,"google.protobuf.UInt64Value",&local_2c0); local_2a0 = (pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType> *) local_1f8; local_2c4 = 5; _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA27_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ (local_2a0,"google.protobuf.Int32Value",&local_2c4); local_2a0 = (pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType> *) local_1d0; local_2c8 = 6; _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA28_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ (local_2a0,"google.protobuf.UInt32Value",&local_2c8); local_2a0 = (pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType> *) local_1a8; local_2cc = 7; _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA28_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ (local_2a0,"google.protobuf.StringValue",&local_2cc); local_2a0 = (pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType> *) local_180; local_2d0 = 8; _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA27_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ (local_2a0,"google.protobuf.BytesValue",&local_2d0); local_2a0 = (pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType> *) local_158; local_2d4 = 9; _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA26_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ (local_2a0,"google.protobuf.BoolValue",&local_2d4); local_2a0 = (pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType> *) local_130; local_2d8 = 10; _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA20_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ (local_2a0,"google.protobuf.Any",&local_2d8); local_2a0 = (pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType> *) local_108; local_2dc = 0xb; _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA26_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ (local_2a0,"google.protobuf.FieldMask",&local_2dc); local_2a0 = (pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType> *) local_e0; local_2e0 = 0xc; _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA25_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ (local_2a0,"google.protobuf.Duration",&local_2e0); local_2a0 = (pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType> *) local_b8; local_2e4 = 0xd; _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA26_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ (local_2a0,"google.protobuf.Timestamp",&local_2e4); local_2a0 = (pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType> *) local_90; local_2e8 = 0xe; _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA22_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ (local_2a0,"google.protobuf.Value",&local_2e8); local_2a0 = (pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType> *) local_68; local_2ec = 0xf; _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA26_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ (local_2a0,"google.protobuf.ListValue",&local_2ec); local_2a0 = (pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType> *) local_40; local_2f0 = 0x10; _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN6google8protobuf10Descriptor13WellKnownTypeEEC2IRA23_KcSA_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISH_SI_EEEbE4typeELb1EEEOSH_OSI_ (local_2a0,"google.protobuf.Struct",&local_2f0); local_18 = local_298; local_10 = 0x10; /* try { // try from 001323be to 001323c2 has its CatchHandler @ 00132466 */ std:: unordered_map<std::__cxx11::string,google::protobuf::Descriptor::WellKnownType,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType>>> ::insert((unordered_map<std::__cxx11::string,google::protobuf::Descriptor::WellKnownType,std::hash<std::__cxx11::string>,std::equal_to<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType>>> *)(this + 0xc0),local_18,0x10); local_370 = (pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType> *) &local_18; do { local_370 = local_370 + -0x28; std::pair<std::__cxx11::string_const,google::protobuf::Descriptor::WellKnownType>::~pair (local_370); } while (local_370 != local_298); return; }
31,120
IOS::HLE::ESDevice::DeleteContent(IOS::HLE::IOCtlVRequest const&)
Dolphin-anty/Source/Core/Core/IOS/ES/TitleManagement.cpp
IPCReply ESDevice::DeleteContent(const IOCtlVRequest& request) { if (!request.HasNumberOfValidVectors(2, 0) || request.in_vectors[0].size != sizeof(u64) || request.in_vectors[1].size != sizeof(u32)) { return IPCReply(ES_EINVAL); } auto& system = GetSystem(); auto& memory = system.GetMemory(); return IPCReply(m_core.DeleteContent(memory.Read_U64(request.in_vectors[0].address), memory.Read_U32(request.in_vectors[1].address))); }
O3
cpp
IOS::HLE::ESDevice::DeleteContent(IOS::HLE::IOCtlVRequest const&): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movq %rdi, %r14 movl $0x2, %esi movq %rbx, %rdi xorl %edx, %edx callq 0x33238a movl $0xfffffc07, %esi # imm = 0xFFFFFC07 testb %al, %al je 0x2438ed movq 0x18(%rbx), %rax cmpl $0x8, 0x4(%rax) jne 0x2438ed cmpl $0x4, 0xc(%rax) jne 0x2438ed movq 0x8(%r14), %rax movq 0x5c0(%rax), %rdi callq 0x2b681c movq %rax, %r15 movq 0x38(%r14), %r14 movq 0x18(%rbx), %rax movl (%rax), %esi movq %r15, %rdi callq 0x21d566 movq %rax, %r12 movq 0x18(%rbx), %rax movl 0x8(%rax), %esi movq %r15, %rdi callq 0x21d53c movq %r14, %rdi movq %r12, %rsi movl %eax, %edx callq 0x24370c movl %eax, %esi leaq 0x8(%rsp), %rbx movq %rbx, %rdi callq 0x252e92 movl (%rbx), %eax movq 0x8(%rbx), %rdx addq $0x18, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
_ZN3IOS3HLE8ESDevice13DeleteContentERKNS0_13IOCtlVRequestE: push r15 push r14 push r12 push rbx sub rsp, 18h mov rbx, rsi mov r14, rdi mov esi, 2; unsigned __int64 mov rdi, rbx; this xor edx, edx; unsigned __int64 call _ZNK3IOS3HLE13IOCtlVRequest23HasNumberOfValidVectorsEmm; IOS::HLE::IOCtlVRequest::HasNumberOfValidVectors(ulong,ulong) mov esi, 0FFFFFC07h test al, al jz short loc_2438ED mov rax, [rbx+18h] cmp dword ptr [rax+4], 8 jnz short loc_2438ED cmp dword ptr [rax+0Ch], 4 jnz short loc_2438ED mov rax, [r14+8] mov rdi, [rax+5C0h]; this call _ZNK4Core6System9GetMemoryEv; Core::System::GetMemory(void) mov r15, rax mov r14, [r14+38h] mov rax, [rbx+18h] mov esi, [rax]; unsigned int mov rdi, r15; this call _ZNK6Memory13MemoryManager8Read_U64Ej; Memory::MemoryManager::Read_U64(uint) mov r12, rax mov rax, [rbx+18h] mov esi, [rax+8]; unsigned int mov rdi, r15; this call _ZNK6Memory13MemoryManager8Read_U32Ej; Memory::MemoryManager::Read_U32(uint) mov rdi, r14; this mov rsi, r12; unsigned __int64 mov edx, eax; unsigned int call _ZNK3IOS3HLE6ESCore13DeleteContentEmj; IOS::HLE::ESCore::DeleteContent(ulong,uint) mov esi, eax; int loc_2438ED: lea rbx, [rsp+38h+var_30] mov rdi, rbx; this call _ZN3IOS3HLE8IPCReplyC2Ei; IOS::HLE::IPCReply::IPCReply(int) mov eax, [rbx] mov rdx, [rbx+8] add rsp, 18h pop rbx pop r12 pop r14 pop r15 retn
long long IOS::HLE::ESDevice::DeleteContent(IOS::HLE::ESDevice *this, unsigned int **a2) { char HasNumberOfValidVectors; // al int v4; // esi unsigned int *v5; // rax Memory::MemoryManager *Memory; // r15 IOS::HLE::Kernel **v7; // r14 unsigned long long U64; // r12 unsigned int U32; // eax _DWORD v11[12]; // [rsp+8h] [rbp-30h] BYREF HasNumberOfValidVectors = IOS::HLE::IOCtlVRequest::HasNumberOfValidVectors((IOS::HLE::IOCtlVRequest *)a2, 2uLL, 0LL); v4 = -1017; if ( HasNumberOfValidVectors ) { v5 = a2[3]; if ( v5[1] == 8 && v5[3] == 4 ) { Memory = (Memory::MemoryManager *)Core::System::GetMemory(*(Core::System **)(*((_QWORD *)this + 1) + 1472LL)); v7 = (IOS::HLE::Kernel **)*((_QWORD *)this + 7); U64 = Memory::MemoryManager::Read_U64(Memory, *a2[3]); U32 = Memory::MemoryManager::Read_U32(Memory, a2[3][2]); v4 = IOS::HLE::ESCore::DeleteContent(v7, U64, U32); } } IOS::HLE::IPCReply::IPCReply((IOS::HLE::IPCReply *)v11, v4); return v11[0]; }
ps: PUSH RBX SUB RSP,0x30 MOV EAX,EDI LEA R8,[RSP + 0x20] MOV qword ptr [R8],RAX LEA RSI,[0xca3477] MOV RBX,RSP PUSH 0x5 POP RDX PUSH 0x2 POP RCX MOV RDI,RBX CALL 0x002bf2ce LEA RDI,[0x1569cb0] MOV RSI,RBX CALL 0x002115d0 MOV RDI,qword ptr [RBX] LEA RAX,[RSP + 0x10] CMP RDI,RAX JZ 0x002438be MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x0020fa70 LAB_002438be: LEA RDI,[0x1569cd0] LEA RSI,[0xb565e0] CALL 0x00a85226 ADD RSP,0x30 POP RBX RET
/* Common::GekkoDisassembler::ps(unsigned int) [clone .cold.28] */ void Common::GekkoDisassembler::ps(uint param_1) { long *local_38 [2]; long local_28 [2]; ulong local_18; local_18 = (ulong)param_1; fmt::v10::vformat_abi_cxx11_(local_38,"ps_{}",5,2); std::__cxx11::string::operator=((string *)&m_opcode_abi_cxx11_,(string *)local_38); if (local_38[0] != local_28) { operator_delete(local_38[0],local_28[0] + 1); } std::__cxx11::string::operator=((string *)&m_operands_abi_cxx11_,"---"); return; }
31,121
rw_pr_wrlock
eloqsql/mysys/thr_rwlock.c
int rw_pr_wrlock(rw_pr_lock_t *rwlock) { pthread_mutex_lock(&rwlock->lock); if (rwlock->active_readers != 0) { /* There are active readers. We have to wait until they are gone. */ rwlock->writers_waiting_readers++; while (rwlock->active_readers != 0) pthread_cond_wait(&rwlock->no_active_readers, &rwlock->lock); rwlock->writers_waiting_readers--; } /* We own 'lock' mutex so there is no active writers. Also there are no active readers. This means that we can grant wr-lock. Not releasing 'lock' mutex until unlock will block both requests for rd and wr-locks. Set 'active_writer' flag to simplify unlock. Thanks to the fact wr-lock/unlock in the absence of contention from readers is essentially mutex lock/unlock with a few simple checks make this rwlock implementation wr-lock optimized. */ rwlock->active_writer= TRUE; #ifdef SAFE_MUTEX rwlock->writer_thread= pthread_self(); #endif return 0; }
O3
c
rw_pr_wrlock: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rdi, %rbx callq 0x29220 cmpl $0x0, 0x58(%rbx) je 0xa45c9 incl 0x5c(%rbx) leaq 0x28(%rbx), %r14 movq %r14, %rdi movq %rbx, %rsi callq 0x29430 cmpl $0x0, 0x58(%rbx) jne 0xa45b5 decl 0x5c(%rbx) movb $0x1, 0x60(%rbx) xorl %eax, %eax popq %rbx popq %r14 popq %rbp retq
rw_pr_wrlock: push rbp mov rbp, rsp push r14 push rbx mov rbx, rdi call _pthread_mutex_lock cmp dword ptr [rbx+58h], 0 jz short loc_A45C9 inc dword ptr [rbx+5Ch] lea r14, [rbx+28h] loc_A45B5: mov rdi, r14 mov rsi, rbx call _pthread_cond_wait cmp dword ptr [rbx+58h], 0 jnz short loc_A45B5 dec dword ptr [rbx+5Ch] loc_A45C9: mov byte ptr [rbx+60h], 1 xor eax, eax pop rbx pop r14 pop rbp retn
long long rw_pr_wrlock(long long a1) { pthread_mutex_lock(a1); if ( *(_DWORD *)(a1 + 88) ) { ++*(_DWORD *)(a1 + 92); do pthread_cond_wait(a1 + 40, a1); while ( *(_DWORD *)(a1 + 88) ); --*(_DWORD *)(a1 + 92); } *(_BYTE *)(a1 + 96) = 1; return 0LL; }
rw_pr_wrlock: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV RBX,RDI CALL 0x00129220 CMP dword ptr [RBX + 0x58],0x0 JZ 0x001a45c9 INC dword ptr [RBX + 0x5c] LEA R14,[RBX + 0x28] LAB_001a45b5: MOV RDI,R14 MOV RSI,RBX CALL 0x00129430 CMP dword ptr [RBX + 0x58],0x0 JNZ 0x001a45b5 DEC dword ptr [RBX + 0x5c] LAB_001a45c9: MOV byte ptr [RBX + 0x60],0x1 XOR EAX,EAX POP RBX POP R14 POP RBP RET
int8 rw_pr_wrlock(pthread_mutex_t *param_1) { pthread_mutex_lock(param_1); if (*(int *)((long)param_1 + 0x58) != 0) { *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + 1; do { pthread_cond_wait((pthread_cond_t *)(param_1 + 1),param_1); } while (*(int *)((long)param_1 + 0x58) != 0); *(int *)((long)param_1 + 0x5c) = *(int *)((long)param_1 + 0x5c) + -1; } *(int1 *)((long)param_1 + 0x60) = 1; return 0; }
31,122
mysql_set_local_infile_handler
eloqsql/libmariadb/libmariadb/ma_loaddata.c
void STDCALL mysql_set_local_infile_handler(MYSQL *conn, int (*local_infile_init)(void **, const char *, void *), int (*local_infile_read)(void *, char *, uint), void (*local_infile_end)(void *), int (*local_infile_error)(void *, char *, uint), void *userdata) { conn->options.local_infile_init= local_infile_init; conn->options.local_infile_read= local_infile_read; conn->options.local_infile_end= local_infile_end; conn->options.local_infile_error= local_infile_error; conn->options.local_infile_userdata = userdata; return; }
O0
c
mysql_set_local_infile_handler: pushq %rbp movq %rsp, %rbp 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 -0x10(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x458(%rax) movq -0x18(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x460(%rax) movq -0x20(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x468(%rax) movq -0x28(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x470(%rax) movq -0x30(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x478(%rax) popq %rbp retq nopl (%rax)
mysql_set_local_infile_handler: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov [rbp+var_30], r9 mov rcx, [rbp+var_10] mov rax, [rbp+var_8] mov [rax+458h], rcx mov rcx, [rbp+var_18] mov rax, [rbp+var_8] mov [rax+460h], rcx mov rcx, [rbp+var_20] mov rax, [rbp+var_8] mov [rax+468h], rcx mov rcx, [rbp+var_28] mov rax, [rbp+var_8] mov [rax+470h], rcx mov rcx, [rbp+var_30] mov rax, [rbp+var_8] mov [rax+478h], rcx pop rbp retn
_QWORD * mysql_set_local_infile_handler( _QWORD *a1, long long a2, long long a3, long long a4, long long a5, long long a6) { _QWORD *result; // rax a1[139] = a2; a1[140] = a3; a1[141] = a4; a1[142] = a5; result = a1; a1[143] = a6; return result; }
mysql_set_local_infile_handler: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x458],RCX MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x460],RCX MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x468],RCX MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x470],RCX MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x478],RCX POP RBP RET
void mysql_set_local_infile_handler (long param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6) { *(int8 *)(param_1 + 0x458) = param_2; *(int8 *)(param_1 + 0x460) = param_3; *(int8 *)(param_1 + 0x468) = param_4; *(int8 *)(param_1 + 0x470) = param_5; *(int8 *)(param_1 + 0x478) = param_6; return; }
31,123
inline_mysql_rwlock_init
eloqsql/include/mysql/psi/mysql_thread.h
static inline int inline_mysql_rwlock_init( #ifdef HAVE_PSI_RWLOCK_INTERFACE PSI_rwlock_key key, #endif mysql_rwlock_t *that) { #ifdef HAVE_PSI_RWLOCK_INTERFACE that->m_psi= PSI_RWLOCK_CALL(init_rwlock)(key, &that->m_rwlock); #else that->m_psi= NULL; #endif /* pthread_rwlockattr_t is not used in MySQL. */ return my_rwlock_init(&that->m_rwlock, NULL); }
O0
c
inline_mysql_rwlock_init: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) leaq 0x29991a(%rip), %rax # 0x2c75a0 movq (%rax), %rax movq 0x50(%rax), %rax movl -0x4(%rbp), %edi movq -0x10(%rbp), %rsi callq *%rax movq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x90(%rax) movq -0x10(%rbp), %rdi callq 0xfffb0 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
inline_mysql_rwlock_init: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_4], edi mov [rbp+var_10], rsi lea rax, PSI_server mov rax, [rax] mov rax, [rax+50h] mov edi, [rbp+var_4] mov rsi, [rbp+var_10] call rax mov rcx, rax mov rax, [rbp+var_10] mov [rax+90h], rcx mov rdi, [rbp+var_10] call my_rw_init add rsp, 10h pop rbp retn
long long inline_mysql_rwlock_init(unsigned int a1, long long a2) { *(_QWORD *)(a2 + 144) = ((long long ( *)(_QWORD, long long))PSI_server[10])(a1, a2); return my_rw_init(a2); }
inline_mysql_rwlock_init: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI LEA RAX,[0x3c75a0] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x50] MOV EDI,dword ptr [RBP + -0x4] MOV RSI,qword ptr [RBP + -0x10] CALL RAX MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x90],RCX MOV RDI,qword ptr [RBP + -0x10] CALL 0x001fffb0 ADD RSP,0x10 POP RBP RET
void inline_mysql_rwlock_init(int4 param_1,long param_2) { int8 uVar1; uVar1 = (**(code **)(PSI_server + 0x50))(param_1,param_2); *(int8 *)(param_2 + 0x90) = uVar1; my_rw_init(param_2); return; }
31,124
mysql_dump_debug_info_start_internal
eloqsql/libmariadb/libmariadb/mariadb_async.c
static void mysql_dump_debug_info_start_internal(void *d) { MK_ASYNC_INTERNAL_BODY( mysql_dump_debug_info, (parms->mysql), parms->mysql, int, r_int) }
O3
c
mysql_dump_debug_info_start_internal: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq (%rdi), %rdi movq 0x480(%rdi), %rax movq 0x28(%rax), %rbx callq 0x7921a movl %eax, 0x8(%rbx) movl $0x0, (%rbx) addq $0x8, %rsp popq %rbx popq %rbp retq
mysql_dump_debug_info_start_internal: push rbp mov rbp, rsp push rbx push rax mov rdi, [rdi] mov rax, [rdi+480h] mov rbx, [rax+28h] call mysql_dump_debug_info mov [rbx+8], eax mov dword ptr [rbx], 0 add rsp, 8 pop rbx pop rbp retn
long long mysql_dump_debug_info_start_internal(long long *a1) { long long v1; // rdi _DWORD *v2; // rbx long long result; // rax v1 = *a1; v2 = *(_DWORD **)(*(_QWORD *)(v1 + 1152) + 40LL); result = mysql_dump_debug_info(v1); v2[2] = result; *v2 = 0; return result; }
mysql_dump_debug_info_start_internal: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RDI,qword ptr [RDI] MOV RAX,qword ptr [RDI + 0x480] MOV RBX,qword ptr [RAX + 0x28] CALL 0x0017921a MOV dword ptr [RBX + 0x8],EAX MOV dword ptr [RBX],0x0 ADD RSP,0x8 POP RBX POP RBP RET
void mysql_dump_debug_info_start_internal(long *param_1) { int4 *puVar1; int4 uVar2; puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28); uVar2 = mysql_dump_debug_info(); puVar1[2] = uVar2; *puVar1 = 0; return; }
31,125
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::end()
monkey531[P]llama/common/json.hpp
iterator end() noexcept { iterator result(this); result.set_end(); return result; }
O1
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::end(): pushq %rbx movq %rdi, %rbx movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000 movq %rsi, (%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rdi) movq %rax, 0x18(%rdi) movzbl (%rsi), %ecx cmpl $0x2, %ecx je 0x5e83a cmpl $0x1, %ecx jne 0x5e844 leaq 0x8(%rbx), %rax movq $0x0, (%rax) jmp 0x5e848 movq $0x0, 0x10(%rbx) jmp 0x5e848 movq %rax, 0x18(%rbx) movq %rbx, %rdi callq 0x5f9ea movq %rbx, %rax popq %rbx retq nop
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE3endEv: push rbx mov rbx, rdi mov rax, 8000000000000000h mov [rdi], rsi xorps xmm0, xmm0 movups xmmword ptr [rdi+8], xmm0 mov [rdi+18h], rax movzx ecx, byte ptr [rsi] cmp ecx, 2 jz short loc_5E83A cmp ecx, 1 jnz short loc_5E844 lea rax, [rbx+8] mov qword ptr [rax], 0 jmp short loc_5E848 loc_5E83A: mov qword ptr [rbx+10h], 0 jmp short loc_5E848 loc_5E844: mov [rbx+18h], rax loc_5E848: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE7set_endEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::set_end(void) mov rax, rbx pop rbx retn
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::end( long long a1, unsigned __int8 *a2) { int v2; // ecx *(_QWORD *)a1 = a2; *(_OWORD *)(a1 + 8) = 0LL; *(_QWORD *)(a1 + 24) = 0x8000000000000000LL; v2 = *a2; if ( v2 == 2 ) { *(_QWORD *)(a1 + 16) = 0LL; } else if ( v2 == 1 ) { *(_QWORD *)(a1 + 8) = 0LL; } else { *(_QWORD *)(a1 + 24) = 0x8000000000000000LL; } nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::set_end(a1); return a1; }
end: PUSH RBX MOV RBX,RDI MOV RAX,-0x8000000000000000 MOV qword ptr [RDI],RSI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x8],XMM0 MOV qword ptr [RDI + 0x18],RAX MOVZX ECX,byte ptr [RSI] CMP ECX,0x2 JZ 0x0015e83a CMP ECX,0x1 JNZ 0x0015e844 LEA RAX,[RBX + 0x8] MOV qword ptr [RAX],0x0 JMP 0x0015e848 LAB_0015e83a: MOV qword ptr [RBX + 0x10],0x0 JMP 0x0015e848 LAB_0015e844: MOV qword ptr [RBX + 0x18],RAX LAB_0015e848: MOV RDI,RBX CALL 0x0015f9ea MOV RAX,RBX POP RBX RET
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::end() */ void nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::end(void) { char *in_RSI; iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *in_RDI; *(char **)in_RDI = in_RSI; *(int8 *)(in_RDI + 8) = 0; *(int8 *)(in_RDI + 0x10) = 0; *(int8 *)(in_RDI + 0x18) = 0x8000000000000000; if (*in_RSI == '\x02') { *(int8 *)(in_RDI + 0x10) = 0; } else if (*in_RSI == '\x01') { *(int8 *)(in_RDI + 8) = 0; } else { *(int8 *)(in_RDI + 0x18) = 0x8000000000000000; } detail:: iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::set_end(in_RDI); return; }
31,126
my_getwd
eloqsql/mysys/my_getwd.c
int my_getwd(char * buf, size_t size, myf MyFlags) { char * pos; DBUG_ENTER("my_getwd"); DBUG_PRINT("my",("buf:%p size: %u MyFlags %lu", buf, (uint) size, MyFlags)); if (size < 1) DBUG_RETURN(-1); if (curr_dir[0]) /* Current pos is saved here */ (void) strmake(buf,&curr_dir[0],size-1); else { #if defined(HAVE_GETCWD) if (size < 2) DBUG_RETURN(-1); if (!getcwd(buf,(uint) (size-2)) && MyFlags & MY_WME) { my_errno=errno; my_error(EE_GETWD,MYF(ME_BELL),errno); DBUG_RETURN(-1); } #elif defined(HAVE_GETWD) { char pathname[MAXPATHLEN]; getwd(pathname); strmake(buf,pathname,size-1); } #else #error "No way to get current directory" #endif if (*((pos=strend(buf))-1) != FN_LIBCHAR) /* End with FN_LIBCHAR */ { pos[0]= FN_LIBCHAR; pos[1]=0; } (void) strmake(&curr_dir[0],buf, (size_t) (FN_REFLEN-1)); } DBUG_RETURN(0); }
O0
c
my_getwd: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) jmp 0x31126 cmpq $0x1, -0x18(%rbp) jae 0x3113b jmp 0x3112f movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x3121a leaq 0x374c8e(%rip), %rax # 0x3a5dd0 cmpb $0x0, (%rax) je 0x31164 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rdx subq $0x1, %rdx leaq 0x374c76(%rip), %rsi # 0x3a5dd0 callq 0x87940 jmp 0x31211 cmpq $0x2, -0x18(%rbp) jae 0x31179 jmp 0x3116d movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x3121a movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rax subq $0x2, %rax movl %eax, %eax movl %eax, %esi callq 0x25180 cmpq $0x0, %rax jne 0x311d7 movq -0x20(%rbp), %rax andq $0x10, %rax cmpq $0x0, %rax je 0x311d7 callq 0x25050 movl (%rax), %eax movl %eax, -0x2c(%rbp) callq 0x33e30 movl -0x2c(%rbp), %ecx movl %ecx, (%rax) callq 0x25050 movl (%rax), %edx movl $0x10, %edi movl $0x4, %esi movb $0x0, %al callq 0x2ca80 movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x3121a movq -0x10(%rbp), %rdi callq 0x878c0 movq %rax, -0x28(%rbp) movsbl -0x1(%rax), %eax cmpl $0x2f, %eax je 0x311fc movq -0x28(%rbp), %rax movb $0x2f, (%rax) movq -0x28(%rbp), %rax movb $0x0, 0x1(%rax) movq -0x10(%rbp), %rsi leaq 0x374bc9(%rip), %rdi # 0x3a5dd0 movl $0x1ff, %edx # imm = 0x1FF callq 0x87940 jmp 0x31213 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_getwd: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx jmp short $+2 loc_31126: cmp [rbp+var_18], 1 jnb short loc_3113B jmp short $+2 loc_3112F: mov [rbp+var_4], 0FFFFFFFFh jmp loc_3121A loc_3113B: lea rax, curr_dir cmp byte ptr [rax], 0 jz short loc_31164 mov rdi, [rbp+var_10] mov rdx, [rbp+var_18] sub rdx, 1 lea rsi, curr_dir call strmake jmp loc_31211 loc_31164: cmp [rbp+var_18], 2 jnb short loc_31179 jmp short $+2 loc_3116D: mov [rbp+var_4], 0FFFFFFFFh jmp loc_3121A loc_31179: mov rdi, [rbp+var_10] mov rax, [rbp+var_18] sub rax, 2 mov eax, eax mov esi, eax call _getcwd cmp rax, 0 jnz short loc_311D7 mov rax, [rbp+var_20] and rax, 10h cmp rax, 0 jz short loc_311D7 call ___errno_location mov eax, [rax] mov [rbp+var_2C], eax call _my_thread_var mov ecx, [rbp+var_2C] mov [rax], ecx call ___errno_location mov edx, [rax] mov edi, 10h mov esi, 4 mov al, 0 call my_error mov [rbp+var_4], 0FFFFFFFFh jmp short loc_3121A loc_311D7: mov rdi, [rbp+var_10] call strend mov [rbp+var_28], rax movsx eax, byte ptr [rax-1] cmp eax, 2Fh ; '/' jz short loc_311FC mov rax, [rbp+var_28] mov byte ptr [rax], 2Fh ; '/' mov rax, [rbp+var_28] mov byte ptr [rax+1], 0 loc_311FC: mov rsi, [rbp+var_10] lea rdi, curr_dir mov edx, 1FFh call strmake loc_31211: jmp short $+2 loc_31213: mov [rbp+var_4], 0 loc_3121A: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long my_getwd(long long a1, unsigned long long a2, char a3) { unsigned int *v3; // rax int v5; // [rsp+4h] [rbp-2Ch] _BYTE *v6; // [rsp+8h] [rbp-28h] if ( a2 ) { if ( curr_dir[0] ) { strmake(a1, curr_dir, a2 - 1); } else { if ( a2 < 2 ) return (unsigned int)-1; if ( !getcwd(a1, (unsigned int)(a2 - 2)) && (a3 & 0x10) != 0 ) { v5 = *(_DWORD *)__errno_location(); *(_DWORD *)my_thread_var() = v5; v3 = (unsigned int *)__errno_location(); my_error(0x10u, 4LL, *v3); return (unsigned int)-1; } v6 = (_BYTE *)strend(a1); if ( *(v6 - 1) != 47 ) { *v6 = 47; v6[1] = 0; } strmake(curr_dir, a1, 511LL); } return 0; } return (unsigned int)-1; }
my_getwd: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX JMP 0x00131126 LAB_00131126: CMP qword ptr [RBP + -0x18],0x1 JNC 0x0013113b JMP 0x0013112f LAB_0013112f: MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x0013121a LAB_0013113b: LEA RAX,[0x4a5dd0] CMP byte ptr [RAX],0x0 JZ 0x00131164 MOV RDI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] SUB RDX,0x1 LEA RSI,[0x4a5dd0] CALL 0x00187940 JMP 0x00131211 LAB_00131164: CMP qword ptr [RBP + -0x18],0x2 JNC 0x00131179 JMP 0x0013116d LAB_0013116d: MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x0013121a LAB_00131179: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x18] SUB RAX,0x2 MOV EAX,EAX MOV ESI,EAX CALL 0x00125180 CMP RAX,0x0 JNZ 0x001311d7 MOV RAX,qword ptr [RBP + -0x20] AND RAX,0x10 CMP RAX,0x0 JZ 0x001311d7 CALL 0x00125050 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x2c],EAX CALL 0x00133e30 MOV ECX,dword ptr [RBP + -0x2c] MOV dword ptr [RAX],ECX CALL 0x00125050 MOV EDX,dword ptr [RAX] MOV EDI,0x10 MOV ESI,0x4 MOV AL,0x0 CALL 0x0012ca80 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x0013121a LAB_001311d7: MOV RDI,qword ptr [RBP + -0x10] CALL 0x001878c0 MOV qword ptr [RBP + -0x28],RAX MOVSX EAX,byte ptr [RAX + -0x1] CMP EAX,0x2f JZ 0x001311fc MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX],0x2f MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX + 0x1],0x0 LAB_001311fc: MOV RSI,qword ptr [RBP + -0x10] LEA RDI,[0x4a5dd0] MOV EDX,0x1ff CALL 0x00187940 LAB_00131211: JMP 0x00131213 LAB_00131213: MOV dword ptr [RBP + -0x4],0x0 LAB_0013121a: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int4 my_getwd(char *param_1,ulong param_2,ulong param_3) { int iVar1; char *pcVar2; int *piVar3; int1 *puVar4; if (param_2 == 0) { return 0xffffffff; } if (curr_dir == '\0') { if (param_2 < 2) { return 0xffffffff; } pcVar2 = getcwd(param_1,(ulong)((int)param_2 - 2)); if ((pcVar2 == (char *)0x0) && ((param_3 & 0x10) != 0)) { piVar3 = __errno_location(); iVar1 = *piVar3; piVar3 = (int *)_my_thread_var(); *piVar3 = iVar1; piVar3 = __errno_location(); my_error(0x10,4,*piVar3); return 0xffffffff; } puVar4 = (int1 *)strend(param_1); if (puVar4[-1] != '/') { *puVar4 = 0x2f; puVar4[1] = 0; } strmake(&curr_dir,param_1,0x1ff); } else { strmake(param_1,&curr_dir,param_2 - 1); } return 0; }
31,127
nglog::tools::ProgramInvocationShortName()
ng-log[P]ng-log/src/utilities.cc
const char* ProgramInvocationShortName() { if (g_program_invocation_short_name != nullptr) { return g_program_invocation_short_name; } #if defined(HAVE_PROGRAM_INVOCATION_SHORT_NAME) return program_invocation_short_name; #elif defined(HAVE_GETPROGNAME) return getprogname(); #elif defined(HAVE___PROGNAME) return __progname; #elif defined(HAVE___ARGV) return const_basename(__argv[0]); #else return "UNKNOWN"; #endif }
O1
cpp
nglog::tools::ProgramInvocationShortName(): movq 0x1e8fa(%rip), %rax # 0x3fa20 testq %rax, %rax jne 0x21135 movq 0xde6e(%rip), %rax # 0x2efa0 movq (%rax), %rax retq
_ZN5nglog5tools26ProgramInvocationShortNameEv: mov rax, cs:_ZN5nglogL31g_program_invocation_short_nameE; nglog::g_program_invocation_short_name test rax, rax jnz short locret_21135 mov rax, cs:program_invocation_short_name_ptr mov rax, [rax] locret_21135: retn
long long nglog::tools::ProgramInvocationShortName(nglog::tools *this) { long long result; // rax result = nglog::g_program_invocation_short_name; if ( !nglog::g_program_invocation_short_name ) return program_invocation_short_name; return result; }
ProgramInvocationShortName: MOV RAX,qword ptr [0x0013fa20] TEST RAX,RAX JNZ 0x00121135 MOV RAX,qword ptr [0x0012efa0] MOV RAX,qword ptr [RAX] LAB_00121135: RET
/* nglog::tools::ProgramInvocationShortName() */ long nglog::tools::ProgramInvocationShortName(void) { long lVar1; lVar1 = g_program_invocation_short_name; if (g_program_invocation_short_name == 0) { lVar1 = *(long *)PTR_program_invocation_short_name_0012efa0; } return lVar1; }
31,128
minja::Parser::parseLogicalNot()
monkey531[P]llama/common/minja.hpp
std::shared_ptr<Expression> parseLogicalNot() { static std::regex not_tok(R"(not\b)"); auto location = get_location(); if (!consumeToken(not_tok).empty()) { auto sub = parseLogicalNot(); if (!sub) throw std::runtime_error("Expected expression after 'not' keyword"); return std::make_shared<UnaryOpExpr>(location, std::move(sub), UnaryOpExpr::Op::LogicalNot); } return parseLogicalCompare(); }
O1
cpp
minja::Parser::parseLogicalNot(): pushq %r15 pushq %r14 pushq %rbx subq $0x60, %rsp movq %rsi, %r14 movq %rdi, %rbx leaq 0x8497e(%rip), %rax # 0xeffb8 movb (%rax), %al testb %al, %al je 0x6b74f movq (%r14), %rax movq %rax, 0x40(%rsp) movq 0x8(%r14), %rax movq %rax, 0x48(%rsp) testq %rax, %rax je 0x6b66f movq 0x8392f(%rip), %rcx # 0xeef90 cmpb $0x0, (%rcx) je 0x6b66b incl 0x8(%rax) jmp 0x6b66f lock incl 0x8(%rax) movq 0x20(%r14), %rax subq 0x10(%r14), %rax movq %rax, 0x50(%rsp) leaq 0x84915(%rip), %rdx # 0xeff98 leaq 0x20(%rsp), %rdi movq %r14, %rsi movl $0x1, %ecx callq 0x69d80 leaq 0x30(%rsp), %rax movq -0x10(%rax), %rdi movq -0x8(%rax), %r15 cmpq %rax, %rdi je 0x6b6b4 movq 0x30(%rsp), %rsi incq %rsi callq 0x196b0 testq %r15, %r15 je 0x6b728 leaq 0x20(%rsp), %rdi movq %r14, %rsi callq 0x6b624 cmpq $0x0, 0x20(%rsp) je 0x6b7a6 leaq 0x5c(%rsp), %r9 movl $0x2, (%r9) leaq 0x18(%rsp), %rdi movq $0x0, -0x8(%rdi) leaq 0x10(%rsp), %rsi leaq 0xf(%rsp), %rdx leaq 0x40(%rsp), %rcx leaq 0x20(%rsp), %r8 callq 0x6bf40 xorl %eax, %eax movq %rax, 0x8(%rbx) movaps 0x10(%rsp), %xmm0 movq %rax, 0x18(%rsp) movups %xmm0, (%rbx) movq 0x28(%rsp), %rdi testq %rdi, %rdi je 0x6b733 callq 0x42d00 jmp 0x6b733 movq %rbx, %rdi movq %r14, %rsi callq 0x6b82a movq 0x48(%rsp), %rdi testq %rdi, %rdi je 0x6b742 callq 0x42d00 movq %rbx, %rax addq $0x60, %rsp popq %rbx popq %r14 popq %r15 retq leaq 0x84862(%rip), %rdi # 0xeffb8 callq 0x19c30 testl %eax, %eax je 0x6b644 leaq 0x8482e(%rip), %rdi # 0xeff98 leaq 0x526a4(%rip), %rsi # 0xbde15 movl $0x10, %edx callq 0x36850 leaq -0x34eca(%rip), %rdi # 0x368b8 leaq 0x8480f(%rip), %rsi # 0xeff98 leaq 0x83f38(%rip), %rdx # 0xef6c8 callq 0x195e0 leaq 0x8481c(%rip), %rdi # 0xeffb8 callq 0x19460 jmp 0x6b644 movl $0x10, %edi callq 0x19370 movq %rax, %r14 leaq 0x52661(%rip), %rsi # 0xbde1b movq %rax, %rdi callq 0x19270 movq 0x8381f(%rip), %rsi # 0xeefe8 movq 0x83798(%rip), %rdx # 0xeef68 movq %r14, %rdi callq 0x19b70 movq %rax, %rbx leaq 0x847d6(%rip), %rdi # 0xeffb8 callq 0x19450 jmp 0x6b822 jmp 0x6b7fa movq %rax, %rbx movq %r14, %rdi callq 0x19510 jmp 0x6b7fd jmp 0x6b810 movq %rax, %rbx movq 0x28(%rsp), %rdi testq %rdi, %rdi je 0x6b813 callq 0x42d00 jmp 0x6b813 jmp 0x6b810 movq %rax, %rbx movq 0x48(%rsp), %rdi testq %rdi, %rdi je 0x6b822 callq 0x42d00 movq %rbx, %rdi callq 0x19be0
_ZN5minja6Parser15parseLogicalNotEv: push r15 push r14 push rbx sub rsp, 60h mov r14, rsi mov rbx, rdi lea rax, _ZGVZN5minja6Parser15parseLogicalNotEvE7not_tokB5cxx11; `guard variable for'minja::Parser::parseLogicalNot(void)::not_tok mov al, [rax] test al, al jz loc_6B74F loc_6B644: mov rax, [r14] mov [rsp+78h+var_38], rax mov rax, [r14+8] mov [rsp+78h+var_30], rax test rax, rax jz short loc_6B66F mov rcx, cs:__libc_single_threaded_ptr cmp byte ptr [rcx], 0 jz short loc_6B66B inc dword ptr [rax+8] jmp short loc_6B66F loc_6B66B: lock inc dword ptr [rax+8] loc_6B66F: mov rax, [r14+20h] sub rax, [r14+10h] mov [rsp+78h+var_28], rax lea rdx, _ZZN5minja6Parser15parseLogicalNotEvE7not_tokB5cxx11; minja::Parser::parseLogicalNot(void)::not_tok lea rdi, [rsp+78h+var_58] mov rsi, r14 mov ecx, 1 call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling) lea rax, [rsp+78h+var_48] mov rdi, [rax-10h]; void * mov r15, [rax-8] cmp rdi, rax jz short loc_6B6B4 mov rsi, [rsp+78h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_6B6B4: test r15, r15 jz short loc_6B728 lea rdi, [rsp+78h+var_58]; this mov rsi, r14 call _ZN5minja6Parser15parseLogicalNotEv; minja::Parser::parseLogicalNot(void) cmp [rsp+78h+var_58], 0 jz loc_6B7A6 lea r9, [rsp+78h+var_1C] mov dword ptr [r9], 2 lea rdi, [rsp+78h+var_68+8] mov qword ptr [rdi-8], 0 lea rsi, [rsp+78h+var_68] lea rdx, [rsp+78h+var_69] lea rcx, [rsp+78h+var_38] lea r8, [rsp+78h+var_58] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC2IN5minja11UnaryOpExprESaIS5_EJRNS4_8LocationESt10shared_ptrINS4_10ExpressionEENS5_2OpEEEERPT_St20_Sp_alloc_shared_tagIT0_EDpOT1_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::UnaryOpExpr,std::allocator<minja::UnaryOpExpr>,minja::Location &,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op>(minja::UnaryOpExpr *&,std::_Sp_alloc_shared_tag<std::allocator<minja::UnaryOpExpr>>,minja::Location &,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op &&) xor eax, eax mov [rbx+8], rax movaps xmm0, [rsp+78h+var_68] mov qword ptr [rsp+78h+var_68+8], rax movups xmmword ptr [rbx], xmm0 mov rdi, [rsp+78h+var_50] test rdi, rdi jz short loc_6B733 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) jmp short loc_6B733 loc_6B728: mov rdi, rbx; this mov rsi, r14 call _ZN5minja6Parser19parseLogicalCompareEv; minja::Parser::parseLogicalCompare(void) loc_6B733: mov rdi, [rsp+78h+var_30] test rdi, rdi jz short loc_6B742 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_6B742: mov rax, rbx add rsp, 60h pop rbx pop r14 pop r15 retn loc_6B74F: lea rdi, _ZGVZN5minja6Parser15parseLogicalNotEvE7not_tokB5cxx11; __guard * call ___cxa_guard_acquire test eax, eax jz loc_6B644 lea rdi, _ZZN5minja6Parser15parseLogicalNotEvE7not_tokB5cxx11; minja::Parser::parseLogicalNot(void)::not_tok lea rsi, aNotB; "not\\b" mov edx, 10h call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type) lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc lea rsi, _ZZN5minja6Parser15parseLogicalNotEvE7not_tokB5cxx11; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZN5minja6Parser15parseLogicalNotEvE7not_tokB5cxx11; __guard * call ___cxa_guard_release jmp loc_6B644 loc_6B7A6: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aExpectedExpres_2; "Expected expression after 'not' keyword" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r14; void * call ___cxa_throw mov rbx, rax lea rdi, _ZGVZN5minja6Parser15parseLogicalNotEvE7not_tokB5cxx11; __guard * call ___cxa_guard_abort jmp short loc_6B822 jmp short loc_6B7FA mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception jmp short loc_6B7FD jmp short loc_6B810 loc_6B7FA: mov rbx, rax loc_6B7FD: mov rdi, [rsp+78h+var_50] test rdi, rdi jz short loc_6B813 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) jmp short loc_6B813 jmp short $+2 loc_6B810: mov rbx, rax loc_6B813: mov rdi, [rsp+78h+var_30] test rdi, rdi jz short loc_6B822 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_6B822: mov rdi, rbx call __Unwind_Resume
minja::Parser * minja::Parser::parseLogicalNot(minja::Parser *this, long long *a2) { volatile signed __int32 *v2; // rax volatile signed __int32 *v3; // r15 __int128 v4; // xmm0 std::runtime_error *exception; // r14 char v7; // [rsp+Fh] [rbp-69h] BYREF __int128 v8; // [rsp+10h] [rbp-68h] BYREF long long *v9; // [rsp+20h] [rbp-58h] BYREF volatile signed __int32 *v10; // [rsp+28h] [rbp-50h] long long v11; // [rsp+30h] [rbp-48h] BYREF long long v12; // [rsp+40h] [rbp-38h] BYREF volatile signed __int32 *v13; // [rsp+48h] [rbp-30h] long long v14; // [rsp+50h] [rbp-28h] int v15[7]; // [rsp+5Ch] [rbp-1Ch] BYREF if ( !(_BYTE)`guard variable for'minja::Parser::parseLogicalNot(void)::not_tok[abi:cxx11] && __cxa_guard_acquire(&`guard variable for'minja::Parser::parseLogicalNot(void)::not_tok[abi:cxx11]) ) { std::basic_regex<char,std::regex_traits<char>>::basic_regex( (long long)&minja::Parser::parseLogicalNot(void)::not_tok[abi:cxx11], (long long)"not\\b", 0x10u); __cxa_atexit( (void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex, &minja::Parser::parseLogicalNot(void)::not_tok[abi:cxx11], &_dso_handle); __cxa_guard_release(&`guard variable for'minja::Parser::parseLogicalNot(void)::not_tok[abi:cxx11]); } v12 = *a2; v2 = (volatile signed __int32 *)a2[1]; v13 = v2; if ( v2 ) { if ( _libc_single_threaded ) ++*((_DWORD *)v2 + 2); else _InterlockedIncrement(v2 + 2); } v14 = a2[4] - a2[2]; minja::Parser::consumeToken( (long long)&v9, (long long)a2, (long long)&minja::Parser::parseLogicalNot(void)::not_tok[abi:cxx11], 1u); v3 = v10; if ( v9 != &v11 ) operator delete(v9, v11 + 1); if ( v3 ) { minja::Parser::parseLogicalNot((minja::Parser *)&v9); if ( !v9 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Expected expression after 'not' keyword"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v15[0] = 2; *(_QWORD *)&v8 = 0LL; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<minja::UnaryOpExpr,std::allocator<minja::UnaryOpExpr>,minja::Location &,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op>( (char *)&v8 + 8, &v8, &v7, &v12, &v9, v15); *((_QWORD *)this + 1) = 0LL; v4 = v8; *((_QWORD *)&v8 + 1) = 0LL; *(_OWORD *)this = v4; if ( v10 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v10); } else { minja::Parser::parseLogicalCompare(this); } if ( v13 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v13); return this; }
parseLogicalNot: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x60 MOV R14,RSI MOV RBX,RDI LEA RAX,[0x1effb8] MOV AL,byte ptr [RAX] TEST AL,AL JZ 0x0016b74f LAB_0016b644: MOV RAX,qword ptr [R14] MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [R14 + 0x8] MOV qword ptr [RSP + 0x48],RAX TEST RAX,RAX JZ 0x0016b66f MOV RCX,qword ptr [0x001eef90] CMP byte ptr [RCX],0x0 JZ 0x0016b66b INC dword ptr [RAX + 0x8] JMP 0x0016b66f LAB_0016b66b: INC.LOCK dword ptr [RAX + 0x8] LAB_0016b66f: MOV RAX,qword ptr [R14 + 0x20] SUB RAX,qword ptr [R14 + 0x10] MOV qword ptr [RSP + 0x50],RAX LAB_0016b67c: LEA RDX,[0x1eff98] LEA RDI,[RSP + 0x20] MOV RSI,R14 MOV ECX,0x1 CALL 0x00169d80 LEA RAX,[RSP + 0x30] MOV RDI,qword ptr [RAX + -0x10] MOV R15,qword ptr [RAX + -0x8] CMP RDI,RAX JZ 0x0016b6b4 MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x001196b0 LAB_0016b6b4: TEST R15,R15 JZ 0x0016b728 LAB_0016b6b9: LEA RDI,[RSP + 0x20] MOV RSI,R14 CALL 0x0016b624 CMP qword ptr [RSP + 0x20],0x0 JZ 0x0016b7a6 LEA R9,[RSP + 0x5c] MOV dword ptr [R9],0x2 LEA RDI,[RSP + 0x18] MOV qword ptr [RDI + -0x8],0x0 LAB_0016b6eb: LEA RSI,[RSP + 0x10] LEA RDX,[RSP + 0xf] LEA RCX,[RSP + 0x40] LEA R8,[RSP + 0x20] CALL 0x0016bf40 XOR EAX,EAX MOV qword ptr [RBX + 0x8],RAX MOVAPS XMM0,xmmword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x18],RAX MOVUPS xmmword ptr [RBX],XMM0 MOV RDI,qword ptr [RSP + 0x28] TEST RDI,RDI JZ 0x0016b733 CALL 0x00142d00 JMP 0x0016b733 LAB_0016b728: MOV RDI,RBX MOV RSI,R14 CALL 0x0016b82a LAB_0016b733: MOV RDI,qword ptr [RSP + 0x48] TEST RDI,RDI JZ 0x0016b742 CALL 0x00142d00 LAB_0016b742: MOV RAX,RBX ADD RSP,0x60 POP RBX POP R14 POP R15 RET LAB_0016b74f: LEA RDI,[0x1effb8] CALL 0x00119c30 TEST EAX,EAX JZ 0x0016b644 LAB_0016b763: LEA RDI,[0x1eff98] LEA RSI,[0x1bde15] MOV EDX,0x10 CALL 0x00136850 LAB_0016b77b: LEA RDI,[0x1368b8] LEA RSI,[0x1eff98] LEA RDX,[0x1ef6c8] CALL 0x001195e0 LEA RDI,[0x1effb8] CALL 0x00119460 JMP 0x0016b644 LAB_0016b7a6: MOV EDI,0x10 CALL 0x00119370 MOV R14,RAX LAB_0016b7b3: LEA RSI,[0x1bde1b] MOV RDI,RAX CALL 0x00119270 LAB_0016b7c2: MOV RSI,qword ptr [0x001eefe8] MOV RDX,qword ptr [0x001eef68] MOV RDI,R14 CALL 0x00119b70
/* minja::Parser::parseLogicalNot() */ void minja::Parser::parseLogicalNot(void) { int8 uVar1; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Var2; int iVar3; runtime_error *this; int8 *in_RSI; int8 *in_RDI; int1 local_69; int8 local_68; int8 uStack_60; long *local_58; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_50; long local_48 [2]; int8 local_38; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_30; long local_28; int4 local_1c; if (parseLogicalNot()::not_tok_abi_cxx11_ == '\0') { iVar3 = __cxa_guard_acquire(&parseLogicalNot()::not_tok_abi_cxx11_); if (iVar3 != 0) { /* try { // try from 0016b763 to 0016b77a has its CatchHandler @ 0016b7d8 */ std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex ((basic_regex<char,std::__cxx11::regex_traits<char>> *) parseLogicalNot()::not_tok_abi_cxx11_,"not\\b",0x10); __cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex, parseLogicalNot()::not_tok_abi_cxx11_,&__dso_handle); __cxa_guard_release(&parseLogicalNot()::not_tok_abi_cxx11_); } } local_38 = *in_RSI; local_30 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RSI[1]; if (local_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { if (*PTR___libc_single_threaded_001eef90 == '\0') { LOCK(); *(int *)(local_30 + 8) = *(int *)(local_30 + 8) + 1; UNLOCK(); } else { *(int *)(local_30 + 8) = *(int *)(local_30 + 8) + 1; } } local_28 = in_RSI[4] - in_RSI[2]; /* try { // try from 0016b67c to 0016b694 has its CatchHandler @ 0016b810 */ consumeToken(&local_58); p_Var2 = local_50; if (local_58 != local_48) { operator_delete(local_58,local_48[0] + 1); } if (p_Var2 == (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { /* try { // try from 0016b728 to 0016b732 has its CatchHandler @ 0016b7f8 */ parseLogicalCompare(); } else { /* try { // try from 0016b6b9 to 0016b6c5 has its CatchHandler @ 0016b80e */ parseLogicalNot(); if (local_58 == (long *)0x0) { this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0016b7b3 to 0016b7c1 has its CatchHandler @ 0016b7eb */ std::runtime_error::runtime_error(this,"Expected expression after \'not\' keyword"); /* try { // try from 0016b7c2 to 0016b7d7 has its CatchHandler @ 0016b7e9 */ /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_001eefe8,PTR__runtime_error_001eef68); } local_1c = 2; local_68 = 0; /* try { // try from 0016b6eb to 0016b703 has its CatchHandler @ 0016b7fa */ std::__shared_count<(__gnu_cxx::_Lock_policy)2>:: __shared_count<minja::UnaryOpExpr,std::allocator<minja::UnaryOpExpr>,minja::Location&,std::shared_ptr<minja::Expression>,minja::UnaryOpExpr::Op> ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&uStack_60,&local_68,&local_69, &local_38,&local_58); uVar1 = uStack_60; in_RDI[1] = 0; uStack_60 = 0; *in_RDI = local_68; in_RDI[1] = uVar1; if (local_50 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_50); } } if (local_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_30); } return; }
31,129
inline_mysql_file_read
eloqsql/include/mysql/psi/mysql_file.h
static inline size_t inline_mysql_file_read( #ifdef HAVE_PSI_FILE_INTERFACE const char *src_file, uint src_line, #endif File file, uchar *buffer, size_t count, myf flags) { size_t result; #ifdef HAVE_PSI_FILE_INTERFACE struct PSI_file_locker *locker; PSI_file_locker_state state; size_t bytes_read; locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_READ); if (psi_likely(locker != NULL)) { PSI_FILE_CALL(start_file_wait)(locker, count, src_file, src_line); result= my_read(file, buffer, count, flags); if (flags & (MY_NABP | MY_FNABP)) bytes_read= (result == 0) ? count : 0; else bytes_read= (result != MY_FILE_ERROR) ? result : 0; PSI_FILE_CALL(end_file_wait)(locker, bytes_read); return result; } #endif result= my_read(file, buffer, count, flags); return result; }
O0
c
inline_mysql_file_read: pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) leaq 0x1e2910(%rip), %rax # 0x2c00b8 movq (%rax), %rax movq 0x158(%rax), %rax movl -0x18(%rbp), %esi leaq -0x88(%rbp), %rdi movl $0x6, %edx callq *%rax movq %rax, -0x40(%rbp) cmpq $0x0, -0x40(%rbp) setne %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0xdd8b7 leaq 0x1e28c6(%rip), %rax # 0x2c00b8 movq (%rax), %rax movq 0x210(%rax), %rax movq -0x40(%rbp), %rdi movq -0x28(%rbp), %rsi movq -0x10(%rbp), %rdx movl -0x14(%rbp), %ecx callq *%rax movl -0x18(%rbp), %edi movq -0x20(%rbp), %rsi movq -0x28(%rbp), %rdx movq -0x30(%rbp), %rcx callq 0xf4a80 movq %rax, -0x38(%rbp) movq -0x30(%rbp), %rax andq $0x6, %rax cmpq $0x0, %rax je 0xdd862 cmpq $0x0, -0x38(%rbp) jne 0xdd847 movq -0x28(%rbp), %rax movq %rax, -0x98(%rbp) jmp 0xdd852 xorl %eax, %eax movq %rax, -0x98(%rbp) jmp 0xdd852 movq -0x98(%rbp), %rax movq %rax, -0x90(%rbp) jmp 0xdd88f cmpq $-0x1, -0x38(%rbp) je 0xdd876 movq -0x38(%rbp), %rax movq %rax, -0xa0(%rbp) jmp 0xdd881 xorl %eax, %eax movq %rax, -0xa0(%rbp) jmp 0xdd881 movq -0xa0(%rbp), %rax movq %rax, -0x90(%rbp) leaq 0x1e2822(%rip), %rax # 0x2c00b8 movq (%rax), %rax movq 0x218(%rax), %rax movq -0x40(%rbp), %rdi movq -0x90(%rbp), %rsi callq *%rax movq -0x38(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0xdd8d7 movl -0x18(%rbp), %edi movq -0x20(%rbp), %rsi movq -0x28(%rbp), %rdx movq -0x30(%rbp), %rcx callq 0xf4a80 movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0xa0, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
inline_mysql_file_read_4: push rbp mov rbp, rsp sub rsp, 0A0h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_18], edx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov [rbp+var_30], r9 lea rax, PSI_server mov rax, [rax] mov rax, [rax+158h] mov esi, [rbp+var_18] lea rdi, [rbp+var_88] mov edx, 6 call rax mov [rbp+var_40], rax cmp [rbp+var_40], 0 setnz al and al, 1 movzx eax, al cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz loc_DD8B7 lea rax, PSI_server mov rax, [rax] mov rax, [rax+210h] mov rdi, [rbp+var_40] mov rsi, [rbp+var_28] mov rdx, [rbp+var_10] mov ecx, [rbp+var_14] call rax mov edi, [rbp+var_18] mov rsi, [rbp+var_20] mov rdx, [rbp+var_28] mov rcx, [rbp+var_30] call my_read mov [rbp+var_38], rax mov rax, [rbp+var_30] and rax, 6 cmp rax, 0 jz short loc_DD862 cmp [rbp+var_38], 0 jnz short loc_DD847 mov rax, [rbp+var_28] mov [rbp+var_98], rax jmp short loc_DD852 loc_DD847: xor eax, eax mov [rbp+var_98], rax jmp short $+2 loc_DD852: mov rax, [rbp+var_98] mov [rbp+var_90], rax jmp short loc_DD88F loc_DD862: cmp [rbp+var_38], 0FFFFFFFFFFFFFFFFh jz short loc_DD876 mov rax, [rbp+var_38] mov [rbp+var_A0], rax jmp short loc_DD881 loc_DD876: xor eax, eax mov [rbp+var_A0], rax jmp short $+2 loc_DD881: mov rax, [rbp+var_A0] mov [rbp+var_90], rax loc_DD88F: lea rax, PSI_server mov rax, [rax] mov rax, [rax+218h] mov rdi, [rbp+var_40] mov rsi, [rbp+var_90] call rax mov rax, [rbp+var_38] mov [rbp+var_8], rax jmp short loc_DD8D7 loc_DD8B7: mov edi, [rbp+var_18] mov rsi, [rbp+var_20] mov rdx, [rbp+var_28] mov rcx, [rbp+var_30] call my_read mov [rbp+var_38], rax mov rax, [rbp+var_38] mov [rbp+var_8], rax loc_DD8D7: mov rax, [rbp+var_8] add rsp, 0A0h pop rbp retn
long long inline_mysql_file_read_4( long long a1, unsigned int a2, unsigned int a3, long long a4, long long a5, long long a6) { long long v7; // [rsp+0h] [rbp-A0h] long long v8; // [rsp+8h] [rbp-98h] _BYTE v9[72]; // [rsp+18h] [rbp-88h] BYREF long long v10; // [rsp+60h] [rbp-40h] long long v11; // [rsp+68h] [rbp-38h] long long v12; // [rsp+70h] [rbp-30h] long long v13; // [rsp+78h] [rbp-28h] long long v14; // [rsp+80h] [rbp-20h] unsigned int v15; // [rsp+88h] [rbp-18h] unsigned int v16; // [rsp+8Ch] [rbp-14h] long long v17; // [rsp+90h] [rbp-10h] v17 = a1; v16 = a2; v15 = a3; v14 = a4; v13 = a5; v12 = a6; v10 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v9, a3, 6LL); if ( v10 ) { ((void ( *)(long long, long long, long long, _QWORD))PSI_server[66])(v10, v13, v17, v16); v11 = my_read(v15, v14, v13, v12); if ( (v12 & 6) != 0 ) { if ( v11 ) v8 = 0LL; else v8 = v13; ((void ( *)(long long, long long))PSI_server[67])(v10, v8); } else { if ( v11 == -1 ) v7 = 0LL; else v7 = v11; ((void ( *)(long long, long long))PSI_server[67])(v10, v7); } return v11; } else { return my_read(v15, v14, v13, v12); } }
inline_mysql_file_read: PUSH RBP MOV RBP,RSP SUB RSP,0xa0 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV dword ptr [RBP + -0x18],EDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 LEA RAX,[0x3c00b8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x158] MOV ESI,dword ptr [RBP + -0x18] LEA RDI,[RBP + -0x88] MOV EDX,0x6 CALL RAX MOV qword ptr [RBP + -0x40],RAX CMP qword ptr [RBP + -0x40],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x001dd8b7 LEA RAX,[0x3c00b8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x210] MOV RDI,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RBP + -0x14] CALL RAX MOV EDI,dword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x30] CALL 0x001f4a80 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x30] AND RAX,0x6 CMP RAX,0x0 JZ 0x001dd862 CMP qword ptr [RBP + -0x38],0x0 JNZ 0x001dd847 MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x98],RAX JMP 0x001dd852 LAB_001dd847: XOR EAX,EAX MOV qword ptr [RBP + -0x98],RAX JMP 0x001dd852 LAB_001dd852: MOV RAX,qword ptr [RBP + -0x98] MOV qword ptr [RBP + -0x90],RAX JMP 0x001dd88f LAB_001dd862: CMP qword ptr [RBP + -0x38],-0x1 JZ 0x001dd876 MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0xa0],RAX JMP 0x001dd881 LAB_001dd876: XOR EAX,EAX MOV qword ptr [RBP + -0xa0],RAX JMP 0x001dd881 LAB_001dd881: MOV RAX,qword ptr [RBP + -0xa0] MOV qword ptr [RBP + -0x90],RAX LAB_001dd88f: LEA RAX,[0x3c00b8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x218] MOV RDI,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RBP + -0x90] CALL RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x8],RAX JMP 0x001dd8d7 LAB_001dd8b7: MOV EDI,dword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x30] CALL 0x001f4a80 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x8],RAX LAB_001dd8d7: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0xa0 POP RBP RET
long inline_mysql_file_read (int8 param_1,int4 param_2,int4 param_3,int8 param_4, long param_5,ulong param_6) { long local_a8; long local_a0; long local_98; int1 local_90 [72]; long local_48; long local_40; ulong local_38; long local_30; int8 local_28; int4 local_20; int4 local_1c; int8 local_18; long local_10; local_38 = param_6; local_30 = param_5; local_28 = param_4; local_20 = param_3; local_1c = param_2; local_18 = param_1; local_48 = (**(code **)(PSI_server + 0x158))(local_90,param_3,6); if (local_48 == 0) { local_10 = my_read(local_20,local_28,local_30,local_38); } else { (**(code **)(PSI_server + 0x210))(local_48,local_30,local_18,local_1c); local_40 = my_read(local_20,local_28,local_30,local_38); if ((local_38 & 6) == 0) { local_a8 = local_40; if (local_40 == -1) { local_a8 = 0; } local_98 = local_a8; } else { if (local_40 == 0) { local_a0 = local_30; } else { local_a0 = 0; } local_98 = local_a0; } (**(code **)(PSI_server + 0x218))(local_48,local_98); local_10 = local_40; } return local_10; }
31,130
my_uca_coll_init_utf8mb3
eloqsql/strings/ctype-uca.c
static my_bool my_uca_coll_init_utf8mb3(struct charset_info_st *cs, MY_CHARSET_LOADER *loader) { if (my_coll_init_uca(cs, loader)) return TRUE; if (my_uca_collation_can_optimize_no_contractions(cs)) my_uca_handler_map(cs, &my_uca_package_utf8mb3, &my_uca_package_no_contractions_utf8mb3); return FALSE; }
O0
c
my_uca_coll_init_utf8mb3: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi callq 0x7d7e0 cmpb $0x0, %al je 0x7ec77 movb $0x1, -0x1(%rbp) jmp 0x7ec9f movq -0x10(%rbp), %rdi callq 0x897d0 cmpb $0x0, %al je 0x7ec9b movq -0x10(%rbp), %rdi leaq 0x2864f1(%rip), %rsi # 0x305180 leaq 0x28650a(%rip), %rdx # 0x3051a0 callq 0x89830 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
my_uca_coll_init_utf8mb3: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] call my_coll_init_uca cmp al, 0 jz short loc_7EC77 mov [rbp+var_1], 1 jmp short loc_7EC9F loc_7EC77: mov rdi, [rbp+var_10] call my_uca_collation_can_optimize_no_contractions cmp al, 0 jz short loc_7EC9B mov rdi, [rbp+var_10] lea rsi, my_uca_package_utf8mb3 lea rdx, my_uca_package_no_contractions_utf8mb3 call my_uca_handler_map loc_7EC9B: mov [rbp+var_1], 0 loc_7EC9F: mov al, [rbp+var_1] add rsp, 20h pop rbp retn
char my_uca_coll_init_utf8mb3(long long a1, long long a2) { if ( (unsigned __int8)my_coll_init_uca(a1, a2) ) return 1; if ( (unsigned __int8)my_uca_collation_can_optimize_no_contractions(a1) ) my_uca_handler_map(a1, my_uca_package_utf8mb3, my_uca_package_no_contractions_utf8mb3); return 0; }
my_uca_coll_init_utf8mb3: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] CALL 0x0017d7e0 CMP AL,0x0 JZ 0x0017ec77 MOV byte ptr [RBP + -0x1],0x1 JMP 0x0017ec9f LAB_0017ec77: MOV RDI,qword ptr [RBP + -0x10] CALL 0x001897d0 CMP AL,0x0 JZ 0x0017ec9b MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[0x405180] LEA RDX,[0x4051a0] CALL 0x00189830 LAB_0017ec9b: MOV byte ptr [RBP + -0x1],0x0 LAB_0017ec9f: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x20 POP RBP RET
int1 my_uca_coll_init_utf8mb3(int8 param_1,int8 param_2) { char cVar1; int1 local_9; cVar1 = my_coll_init_uca(param_1,param_2); if (cVar1 == '\0') { cVar1 = my_uca_collation_can_optimize_no_contractions(param_1); if (cVar1 != '\0') { my_uca_handler_map(param_1,my_uca_package_utf8mb3,my_uca_package_no_contractions_utf8mb3); } local_9 = 0; } else { local_9 = 1; } return local_9; }
31,131
my_uca_context_weight_find
eloqsql/strings/ctype-uca.c
static inline const MY_CONTRACTION * my_uca_context_weight_find(my_uca_scanner *scanner, my_wc_t *wc, size_t max_char_length) { const MY_CONTRACTION *cnt; DBUG_ASSERT(scanner->level->contractions.nitems); /* If we have scanned a character which can have previous context, and there were some more characters already before, then reconstruct codepoint of the previous character from "page" and "code" into w[1], and verify that {wc[1], wc[0]} together form a real previous context pair. Note, we support only 2-character long sequences with previous context at the moment. CLDR does not have longer sequences. */ if (my_uca_can_be_previous_context_tail(&scanner->level->contractions, wc[0]) && scanner->wbeg != nochar && /* if not the very first character */ my_uca_can_be_previous_context_head(&scanner->level->contractions, (wc[1]= ((scanner->page << 8) + scanner->code))) && (cnt= my_uca_previous_context_find(scanner, wc[1], wc[0]))) { scanner->page= scanner->code= 0; /* Clear for the next character */ return cnt; } else if (my_uca_can_be_contraction_head(&scanner->level->contractions, wc[0])) { /* Check if w[0] starts a contraction */ if ((cnt= my_uca_scanner_contraction_find(scanner, wc, max_char_length))) return cnt; } return NULL; }
O0
c
my_uca_context_weight_find: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) jmp 0x50726 movq -0x10(%rbp), %rax movq 0x18(%rax), %rdi addq $0x18, %rdi movq -0x18(%rbp), %rax movq (%rax), %rsi callq 0x508d0 movsbl %al, %eax cmpl $0x0, %eax je 0x507d1 movq -0x10(%rbp), %rax leaq 0x15ecbb(%rip), %rcx # 0x1af410 cmpq %rcx, (%rax) je 0x507d1 movq -0x10(%rbp), %rax movq 0x18(%rax), %rdi addq $0x18, %rdi movq -0x10(%rbp), %rax movl 0x24(%rax), %eax shll $0x8, %eax movq -0x10(%rbp), %rcx addl 0x28(%rcx), %eax movslq %eax, %rsi movq -0x18(%rbp), %rax movq %rsi, 0x8(%rax) callq 0x50900 movsbl %al, %eax cmpl $0x0, %eax je 0x507d1 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rax movq 0x8(%rax), %rsi movq -0x18(%rbp), %rax movq (%rax), %rdx callq 0x50930 movq %rax, -0x28(%rbp) cmpq $0x0, %rax je 0x507d1 movq -0x10(%rbp), %rax movl $0x0, 0x28(%rax) movq -0x10(%rbp), %rax movl $0x0, 0x24(%rax) movq -0x28(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x5081e movq -0x10(%rbp), %rax movq 0x18(%rax), %rdi addq $0x18, %rdi movq -0x18(%rbp), %rax movq (%rax), %rsi callq 0x47d40 cmpb $0x0, %al je 0x50814 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx callq 0x509e0 movq %rax, -0x28(%rbp) cmpq $0x0, %rax je 0x50812 movq -0x28(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x5081e jmp 0x50814 jmp 0x50816 movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopl (%rax,%rax)
my_uca_context_weight_find: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx jmp short $+2 loc_50726: mov rax, [rbp+var_10] mov rdi, [rax+18h] add rdi, 18h mov rax, [rbp+var_18] mov rsi, [rax] call my_uca_can_be_previous_context_tail movsx eax, al cmp eax, 0 jz loc_507D1 mov rax, [rbp+var_10] lea rcx, nochar cmp [rax], rcx jz short loc_507D1 mov rax, [rbp+var_10] mov rdi, [rax+18h] add rdi, 18h mov rax, [rbp+var_10] mov eax, [rax+24h] shl eax, 8 mov rcx, [rbp+var_10] add eax, [rcx+28h] movsxd rsi, eax mov rax, [rbp+var_18] mov [rax+8], rsi call my_uca_can_be_previous_context_head movsx eax, al cmp eax, 0 jz short loc_507D1 mov rdi, [rbp+var_10] mov rax, [rbp+var_18] mov rsi, [rax+8] mov rax, [rbp+var_18] mov rdx, [rax] call my_uca_previous_context_find mov [rbp+var_28], rax cmp rax, 0 jz short loc_507D1 mov rax, [rbp+var_10] mov dword ptr [rax+28h], 0 mov rax, [rbp+var_10] mov dword ptr [rax+24h], 0 mov rax, [rbp+var_28] mov [rbp+var_8], rax jmp short loc_5081E loc_507D1: mov rax, [rbp+var_10] mov rdi, [rax+18h] add rdi, 18h mov rax, [rbp+var_18] mov rsi, [rax] call my_uca_can_be_contraction_head cmp al, 0 jz short loc_50814 mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] call my_uca_scanner_contraction_find mov [rbp+var_28], rax cmp rax, 0 jz short loc_50812 mov rax, [rbp+var_28] mov [rbp+var_8], rax jmp short loc_5081E loc_50812: jmp short $+2 loc_50814: jmp short $+2 loc_50816: mov [rbp+var_8], 0 loc_5081E: mov rax, [rbp+var_8] add rsp, 30h pop rbp retn
long long my_uca_context_weight_find(long long a1, _QWORD *a2, long long a3) { long long v3; // rdi long long v5; // [rsp+8h] [rbp-28h] long long v6; // [rsp+8h] [rbp-28h] if ( (unsigned __int8)my_uca_can_be_previous_context_tail(*(_QWORD *)(a1 + 24) + 24LL, *a2) && *(_UNKNOWN **)a1 != &nochar && (v3 = *(_QWORD *)(a1 + 24) + 24LL, a2[1] = *(_DWORD *)(a1 + 40) + (*(_DWORD *)(a1 + 36) << 8), (unsigned __int8)my_uca_can_be_previous_context_head(v3)) && (v5 = my_uca_previous_context_find(a1, a2[1], *a2)) != 0 ) { *(_DWORD *)(a1 + 40) = 0; *(_DWORD *)(a1 + 36) = 0; return v5; } else if ( (unsigned __int8)my_uca_can_be_contraction_head(*(_QWORD *)(a1 + 24) + 24LL, *a2) && (v6 = my_uca_scanner_contraction_find(a1, a2, a3)) != 0 ) { return v6; } else { return 0LL; } }
my_uca_context_weight_find: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX JMP 0x00150726 LAB_00150726: MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x18] ADD RDI,0x18 MOV RAX,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RAX] CALL 0x001508d0 MOVSX EAX,AL CMP EAX,0x0 JZ 0x001507d1 MOV RAX,qword ptr [RBP + -0x10] LEA RCX,[0x2af410] CMP qword ptr [RAX],RCX JZ 0x001507d1 MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x18] ADD RDI,0x18 MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x24] SHL EAX,0x8 MOV RCX,qword ptr [RBP + -0x10] ADD EAX,dword ptr [RCX + 0x28] MOVSXD RSI,EAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x8],RSI CALL 0x00150900 MOVSX EAX,AL CMP EAX,0x0 JZ 0x001507d1 MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RAX] CALL 0x00150930 MOV qword ptr [RBP + -0x28],RAX CMP RAX,0x0 JZ 0x001507d1 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x28],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x24],0x0 MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x8],RAX JMP 0x0015081e LAB_001507d1: MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x18] ADD RDI,0x18 MOV RAX,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RAX] CALL 0x00147d40 CMP AL,0x0 JZ 0x00150814 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] CALL 0x001509e0 MOV qword ptr [RBP + -0x28],RAX CMP RAX,0x0 JZ 0x00150812 MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x8],RAX JMP 0x0015081e LAB_00150812: JMP 0x00150814 LAB_00150814: JMP 0x00150816 LAB_00150816: MOV qword ptr [RBP + -0x8],0x0 LAB_0015081e: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x30 POP RBP RET
long my_uca_context_weight_find(int8 *param_1,int8 *param_2,int8 param_3) { char cVar1; long lVar2; long local_10; cVar1 = my_uca_can_be_previous_context_tail(param_1[3] + 0x18,*param_2); if ((cVar1 != '\0') && ((int4 *)*param_1 != &nochar)) { lVar2 = param_1[3]; param_2[1] = (long)(*(int *)((long)param_1 + 0x24) * 0x100 + *(int *)(param_1 + 5)); cVar1 = my_uca_can_be_previous_context_head(lVar2 + 0x18); if ((cVar1 != '\0') && (lVar2 = my_uca_previous_context_find(param_1,param_2[1],*param_2), lVar2 != 0)) { *(int4 *)(param_1 + 5) = 0; *(int4 *)((long)param_1 + 0x24) = 0; return lVar2; } } cVar1 = my_uca_can_be_contraction_head(param_1[3] + 0x18,*param_2); if ((cVar1 == '\0') || (local_10 = my_uca_scanner_contraction_find(param_1,param_2,param_3), local_10 == 0)) { local_10 = 0; } return local_10; }
31,132
coro::io_scheduler::process_events(std::chrono::duration<long, std::ratio<1l, 1000l>>)
AlayaLite/build_O3/_deps/libcoro-src/src/io_scheduler.cpp
auto io_scheduler::process_events(std::chrono::milliseconds timeout) -> std::size_t { process_events_manual(timeout); return size(); }
O3
cpp
coro::io_scheduler::process_events(std::chrono::duration<long, std::ratio<1l, 1000l>>): pushq %rbx movq %rdi, %rbx movb $0x1, %cl xorl %eax, %eax lock cmpxchgb %cl, 0x131(%rdi) jne 0x6272 movq %rbx, %rdi callq 0x6576 xorl %eax, %eax xchgb %al, 0x131(%rbx) cmpl $0x1, 0xa0(%rbx) movq 0xc0(%rbx), %rax je 0x6293 movq 0xd0(%rbx), %rcx movq 0x120(%rcx), %rcx addq %rcx, %rax popq %rbx retq nop
_ZN4coro12io_scheduler14process_eventsENSt6chrono8durationIlSt5ratioILl1ELl1000EEEE: push rbx mov rbx, rdi mov cl, 1 xor eax, eax lock cmpxchg [rdi+131h], cl jnz short loc_6272 mov rdi, rbx call _ZN4coro12io_scheduler22process_events_executeENSt6chrono8durationIlSt5ratioILl1ELl1000EEEE; coro::io_scheduler::process_events_execute(std::chrono::duration<long,std::ratio<1l,1000l>>) xor eax, eax xchg al, [rbx+131h] loc_6272: cmp dword ptr [rbx+0A0h], 1 mov rax, [rbx+0C0h] jz short loc_6293 mov rcx, [rbx+0D0h] mov rcx, [rcx+120h] add rax, rcx loc_6293: pop rbx retn
long long coro::io_scheduler::process_events(long long a1) { long long result; // rax if ( !_InterlockedCompareExchange8((volatile signed __int8 *)(a1 + 305), 1, 0) ) { coro::io_scheduler::process_events_execute(a1); *(_BYTE *)(a1 + 305) = 0; } result = *(_QWORD *)(a1 + 192); if ( *(_DWORD *)(a1 + 160) != 1 ) result += *(_QWORD *)(*(_QWORD *)(a1 + 208) + 288LL); return result; }
process_events: PUSH RBX MOV RBX,RDI MOV CL,0x1 XOR EAX,EAX CMPXCHG.LOCK byte ptr [RDI + 0x131],CL JNZ 0x00106272 MOV RDI,RBX CALL 0x00106576 XOR EAX,EAX XCHG byte ptr [RBX + 0x131],AL LAB_00106272: CMP dword ptr [RBX + 0xa0],0x1 MOV RAX,qword ptr [RBX + 0xc0] JZ 0x00106293 MOV RCX,qword ptr [RBX + 0xd0] MOV RCX,qword ptr [RCX + 0x120] ADD RAX,RCX LAB_00106293: POP RBX RET
/* coro::io_scheduler::process_events(std::chrono::duration<long, std::ratio<1l, 1000l> >) */ long coro::io_scheduler::process_events(io_scheduler *param_1) { long lVar1; bool bVar2; LOCK(); bVar2 = param_1[0x131] == (io_scheduler)0x0; if (bVar2) { param_1[0x131] = (io_scheduler)0x1; } UNLOCK(); if (bVar2) { process_events_execute(param_1); LOCK(); param_1[0x131] = (io_scheduler)0x0; UNLOCK(); } lVar1 = *(long *)(param_1 + 0xc0); if (*(int *)(param_1 + 0xa0) != 1) { lVar1 = lVar1 + *(long *)(*(long *)(param_1 + 0xd0) + 0x120); } return lVar1; }
31,133
ft_parse_internal
eloqsql/storage/myisam/ft_parser.c
static int ft_parse_internal(MYSQL_FTPARSER_PARAM *param, const char *doc_arg, int doc_len) { uchar *doc= (uchar*) doc_arg; uchar *end= doc + doc_len; MY_FT_PARSER_PARAM *ft_param=param->mysql_ftparam; TREE *wtree= ft_param->wtree; FT_WORD w; DBUG_ENTER("ft_parse_internal"); while (ft_simple_get_word(wtree->custom_arg, &doc, end, &w, TRUE)) if (param->mysql_add_word(param, (char*) w.pos, (int)w.len, 0)) DBUG_RETURN(1); DBUG_RETURN(0); }
O0
c
ft_parse_internal: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movslq -0x1c(%rbp), %rcx addq %rcx, %rax movq %rax, -0x30(%rbp) movq -0x10(%rbp), %rax movq 0x18(%rax), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movq (%rax), %rax movq %rax, -0x40(%rbp) movq -0x40(%rbp), %rax movq 0x230(%rax), %rdi movq -0x30(%rbp), %rdx leaq -0x28(%rbp), %rsi leaq -0x58(%rbp), %rcx movl $0x1, %r8d callq 0xa2340 cmpb $0x0, %al je 0xa2743 movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq -0x10(%rbp), %rdi movq -0x58(%rbp), %rsi movq -0x48(%rbp), %rcx movl %ecx, %edx xorl %ecx, %ecx callq *%rax cmpl $0x0, %eax je 0xa2741 jmp 0xa2738 movl $0x1, -0x4(%rbp) jmp 0xa274c jmp 0xa26f1 jmp 0xa2745 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ft_parse_internal: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov rax, [rbp+var_18] mov [rbp+var_28], rax mov rax, [rbp+var_28] movsxd rcx, [rbp+var_1C] add rax, rcx mov [rbp+var_30], rax mov rax, [rbp+var_10] mov rax, [rax+18h] mov [rbp+var_38], rax mov rax, [rbp+var_38] mov rax, [rax] mov [rbp+var_40], rax loc_A26F1: mov rax, [rbp+var_40] mov rdi, [rax+230h] mov rdx, [rbp+var_30] lea rsi, [rbp+var_28] lea rcx, [rbp+var_58] mov r8d, 1 call ft_simple_get_word cmp al, 0 jz short loc_A2743 mov rax, [rbp+var_10] mov rax, [rax+8] mov rdi, [rbp+var_10] mov rsi, [rbp+var_58] mov rcx, [rbp+var_48] mov edx, ecx xor ecx, ecx call rax cmp eax, 0 jz short loc_A2741 jmp short $+2 loc_A2738: mov [rbp+var_4], 1 jmp short loc_A274C loc_A2741: jmp short loc_A26F1 loc_A2743: jmp short $+2 loc_A2745: mov [rbp+var_4], 0 loc_A274C: mov eax, [rbp+var_4] add rsp, 60h pop rbp retn
long long ft_parse_internal(long long a1, _BYTE *a2, int a3) { long long v4; // [rsp+8h] [rbp-58h] BYREF long long v5; // [rsp+18h] [rbp-48h] long long v6; // [rsp+20h] [rbp-40h] long long *v7; // [rsp+28h] [rbp-38h] _BYTE *v8; // [rsp+30h] [rbp-30h] _BYTE *v9; // [rsp+38h] [rbp-28h] BYREF int v10; // [rsp+44h] [rbp-1Ch] _BYTE *v11; // [rsp+48h] [rbp-18h] long long v12; // [rsp+50h] [rbp-10h] v12 = a1; v11 = a2; v10 = a3; v9 = a2; v8 = &a2[a3]; v7 = *(long long **)(a1 + 24); v6 = *v7; while ( ft_simple_get_word(*(_QWORD *)(v6 + 560), &v9, (unsigned long long)v8, &v4, 1) ) { if ( (*(unsigned int ( **)(long long, long long, _QWORD, _QWORD))(v12 + 8))(v12, v4, (unsigned int)v5, 0LL) ) return 1; } return 0; }
ft_parse_internal: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] MOVSXD RCX,dword ptr [RBP + -0x1c] ADD RAX,RCX MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x40],RAX LAB_001a26f1: MOV RAX,qword ptr [RBP + -0x40] MOV RDI,qword ptr [RAX + 0x230] MOV RDX,qword ptr [RBP + -0x30] LEA RSI,[RBP + -0x28] LEA RCX,[RBP + -0x58] MOV R8D,0x1 CALL 0x001a2340 CMP AL,0x0 JZ 0x001a2743 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x58] MOV RCX,qword ptr [RBP + -0x48] MOV EDX,ECX XOR ECX,ECX CALL RAX CMP EAX,0x0 JZ 0x001a2741 JMP 0x001a2738 LAB_001a2738: MOV dword ptr [RBP + -0x4],0x1 JMP 0x001a274c LAB_001a2741: JMP 0x001a26f1 LAB_001a2743: JMP 0x001a2745 LAB_001a2745: MOV dword ptr [RBP + -0x4],0x0 LAB_001a274c: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x60 POP RBP RET
int4 ft_parse_internal(long param_1,long param_2,int param_3) { char cVar1; int iVar2; int8 local_60 [2]; ulong local_50; long local_48; long *local_40; long local_38; long local_30; int local_24; long local_20; long local_18; local_38 = param_2 + param_3; local_40 = *(long **)(param_1 + 0x18); local_48 = *local_40; local_30 = param_2; local_24 = param_3; local_20 = param_2; local_18 = param_1; do { cVar1 = ft_simple_get_word(*(int8 *)(local_48 + 0x230),&local_30,local_38,local_60,1); if (cVar1 == '\0') { return 0; } iVar2 = (**(code **)(local_18 + 8))(local_18,local_60[0],local_50 & 0xffffffff,0); } while (iVar2 == 0); return 1; }
31,134
my_mb_wc_utf8mb4_quick
eloqsql/strings/ctype-utf8.h
static inline int my_mb_wc_utf8mb4_quick(my_wc_t *pwc, const uchar *s, const uchar *e) { uchar c; if (s >= e) return MY_CS_TOOSMALL; c= s[0]; if (c < 0x80) { *pwc= c; return 1; } else if (c < 0xc2) return MY_CS_ILSEQ; else if (c < 0xe0) { if (s + 2 > e) /* We need 2 characters */ return MY_CS_TOOSMALL2; if (!(IS_CONTINUATION_BYTE(s[1]))) return MY_CS_ILSEQ; *pwc= UTF8MB2_CODE(c, s[1]); return 2; } else if (c < 0xf0) { if (s + 3 > e) /* We need 3 characters */ return MY_CS_TOOSMALL3; if (!IS_UTF8MB3_STEP2(c, s[1], s[2])) return MY_CS_ILSEQ; *pwc= UTF8MB3_CODE(c, s[1], s[2]); return 3; } else if (c < 0xf5) { if (s + 4 > e) /* We need 4 characters */ return MY_CS_TOOSMALL4; if (!IS_UTF8MB4_STEP2(c, s[1], s[2], s[3])) return MY_CS_ILSEQ; *pwc= UTF8MB4_CODE(c, s[1], s[2], s[3]); return 4; } return MY_CS_ILSEQ; }
O3
c
my_mb_wc_utf8mb4_quick: pushq %rbp movq %rsp, %rbp movl $0xffffff9b, %eax # imm = 0xFFFFFF9B cmpq %rdx, %rsi jae 0xda01c movzbl (%rsi), %ecx testb %cl, %cl js 0xda015 movl $0x1, %eax movq %rcx, (%rdi) jmp 0xda01c cmpb $-0x3e, %cl jae 0xda01e xorl %eax, %eax popq %rbp retq cmpb $-0x21, %cl ja 0xda054 leaq 0x2(%rsi), %r8 movl $0xffffff9a, %eax # imm = 0xFFFFFF9A cmpq %rdx, %r8 ja 0xda01c movzbl 0x1(%rsi), %edx xorl $0x80, %edx movl $0x0, %eax cmpb $0x3f, %dl ja 0xda01c andl $0x1f, %ecx shll $0x6, %ecx orl %edx, %ecx movl $0x2, %eax jmp 0xda010 cmpb $-0x11, %cl ja 0xda0b6 leaq 0x3(%rsi), %r8 movl $0xffffff99, %eax # imm = 0xFFFFFF99 cmpq %rdx, %r8 ja 0xda01c movzbl 0x1(%rsi), %edx cmpb $-0x41, %dl jg 0xda01a movzbl 0x2(%rsi), %esi cmpb $-0x41, %sil jg 0xda01a cmpl $0xe0, %ecx sete %r8b cmpb $-0x60, %dl setb %r9b movl $0x0, %eax testb %r9b, %r8b jne 0xda01c shll $0xc, %ecx movzwl %cx, %eax andl $0x3f, %edx shll $0x6, %edx orl %eax, %edx andl $0x3f, %esi orq %rdx, %rsi movl $0x3, %eax movq %rsi, %rcx jmp 0xda010 cmpb $-0xc, %cl ja 0xda01a leaq 0x4(%rsi), %r8 movl $0xffffff98, %eax # imm = 0xFFFFFF98 cmpq %rdx, %r8 ja 0xda01c movzbl 0x1(%rsi), %r8d cmpb $-0x41, %r8b jg 0xda01a movzbl 0x2(%rsi), %edx cmpb $-0x41, %dl jg 0xda01a movzbl 0x3(%rsi), %esi cmpb $-0x41, %sil jg 0xda01a cmpl $0xf0, %ecx sete %al cmpb $-0x70, %r8b setb %r9b testb %r9b, %al jne 0xda01a cmpl $0xf4, %ecx sete %r9b cmpb $-0x70, %r8b setae %r10b movl $0x0, %eax testb %r10b, %r9b jne 0xda01c andl $0x7, %ecx shll $0x12, %ecx andl $0x3f, %r8d shll $0xc, %r8d orl %ecx, %r8d andl $0x3f, %edx shll $0x6, %edx orl %r8d, %edx andl $0x3f, %esi orq %rdx, %rsi movl $0x4, %eax jmp 0xda0ae
my_mb_wc_utf8mb4_quick_0: push rbp mov rbp, rsp mov eax, 0FFFFFF9Bh cmp rsi, rdx jnb short loc_DA01C movzx ecx, byte ptr [rsi] test cl, cl js short loc_DA015 mov eax, 1 loc_DA010: mov [rdi], rcx jmp short loc_DA01C loc_DA015: cmp cl, 0C2h jnb short loc_DA01E loc_DA01A: xor eax, eax loc_DA01C: pop rbp retn loc_DA01E: cmp cl, 0DFh ja short loc_DA054 lea r8, [rsi+2] mov eax, 0FFFFFF9Ah cmp r8, rdx ja short loc_DA01C movzx edx, byte ptr [rsi+1] xor edx, 80h mov eax, 0 cmp dl, 3Fh ; '?' ja short loc_DA01C and ecx, 1Fh shl ecx, 6 or ecx, edx mov eax, 2 jmp short loc_DA010 loc_DA054: cmp cl, 0EFh ja short loc_DA0B6 lea r8, [rsi+3] mov eax, 0FFFFFF99h cmp r8, rdx ja short loc_DA01C movzx edx, byte ptr [rsi+1] cmp dl, 0BFh jg short loc_DA01A movzx esi, byte ptr [rsi+2] cmp sil, 0BFh jg short loc_DA01A cmp ecx, 0E0h setz r8b cmp dl, 0A0h setb r9b mov eax, 0 test r8b, r9b jnz short loc_DA01C shl ecx, 0Ch movzx eax, cx and edx, 3Fh shl edx, 6 or edx, eax and esi, 3Fh or rsi, rdx mov eax, 3 loc_DA0AE: mov rcx, rsi jmp loc_DA010 loc_DA0B6: cmp cl, 0F4h ja loc_DA01A lea r8, [rsi+4] mov eax, 0FFFFFF98h cmp r8, rdx ja loc_DA01C movzx r8d, byte ptr [rsi+1] cmp r8b, 0BFh jg loc_DA01A movzx edx, byte ptr [rsi+2] cmp dl, 0BFh jg loc_DA01A movzx esi, byte ptr [rsi+3] cmp sil, 0BFh jg loc_DA01A cmp ecx, 0F0h setz al cmp r8b, 90h setb r9b test al, r9b jnz loc_DA01A cmp ecx, 0F4h setz r9b cmp r8b, 90h setnb r10b mov eax, 0 test r9b, r10b jnz loc_DA01C and ecx, 7 shl ecx, 12h and r8d, 3Fh shl r8d, 0Ch or r8d, ecx and edx, 3Fh shl edx, 6 or edx, r8d and esi, 3Fh or rsi, rdx mov eax, 4 jmp loc_DA0AE
long long my_mb_wc_utf8mb4_quick_0(unsigned long long *a1, unsigned __int8 *a2, unsigned long long a3) { long long result; // rax unsigned long long v4; // rcx char v5; // dl char v6; // si unsigned long long v7; // rsi char v8; // r8 char v9; // dl char v10; // si result = 4294967195LL; if ( (unsigned long long)a2 >= a3 ) return result; v4 = *a2; if ( (v4 & 0x80u) == 0LL ) { result = 1LL; LABEL_4: *a1 = v4; return result; } if ( (unsigned __int8)v4 < 0xC2u ) return 0LL; if ( (unsigned __int8)v4 > 0xDFu ) { if ( (unsigned __int8)v4 > 0xEFu ) { if ( (unsigned __int8)v4 <= 0xF4u ) { result = 4294967192LL; if ( (unsigned long long)(a2 + 4) > a3 ) return result; v8 = a2[1]; if ( v8 <= -65 ) { v9 = a2[2]; if ( v9 <= -65 ) { v10 = a2[3]; if ( v10 <= -65 && ((unsigned __int8)v8 >= 0x90u || (_DWORD)v4 != 240) ) { result = 0LL; if ( (unsigned __int8)v8 >= 0x90u && (_DWORD)v4 == 244 ) return result; v7 = ((v4 & 7) << 18) | ((unsigned __int8)(v8 & 0x3F) << 12) | ((unsigned __int8)(v9 & 0x3F) << 6) | v10 & 0x3F; result = 4LL; LABEL_18: v4 = v7; goto LABEL_4; } } } } } else { result = 4294967193LL; if ( (unsigned long long)(a2 + 3) > a3 ) return result; v5 = a2[1]; if ( v5 <= -65 ) { v6 = a2[2]; if ( v6 <= -65 ) { result = 0LL; if ( (unsigned __int8)v5 < 0xA0u && (_DWORD)v4 == 224 ) return result; v7 = (unsigned __int16)((_WORD)v4 << 12) | ((unsigned __int8)(v5 & 0x3F) << 6) | (unsigned long long)(v6 & 0x3F); result = 3LL; goto LABEL_18; } } } return 0LL; } result = 4294967194LL; if ( (unsigned long long)(a2 + 2) <= a3 ) { result = 0LL; if ( (a2[1] ^ 0x80u) <= 0x3F ) { v4 = a2[1] ^ 0x80 | ((unsigned __int8)(v4 & 0x1F) << 6); result = 2LL; goto LABEL_4; } } return result; }
my_mb_wc_utf8mb4_quick: PUSH RBP MOV RBP,RSP MOV EAX,0xffffff9b CMP RSI,RDX JNC 0x001da01c MOVZX ECX,byte ptr [RSI] TEST CL,CL JS 0x001da015 MOV EAX,0x1 LAB_001da010: MOV qword ptr [RDI],RCX JMP 0x001da01c LAB_001da015: CMP CL,0xc2 JNC 0x001da01e LAB_001da01a: XOR EAX,EAX LAB_001da01c: POP RBP RET LAB_001da01e: CMP CL,0xdf JA 0x001da054 LEA R8,[RSI + 0x2] MOV EAX,0xffffff9a CMP R8,RDX JA 0x001da01c MOVZX EDX,byte ptr [RSI + 0x1] XOR EDX,0x80 MOV EAX,0x0 CMP DL,0x3f JA 0x001da01c AND ECX,0x1f SHL ECX,0x6 OR ECX,EDX MOV EAX,0x2 JMP 0x001da010 LAB_001da054: CMP CL,0xef JA 0x001da0b6 LEA R8,[RSI + 0x3] MOV EAX,0xffffff99 CMP R8,RDX JA 0x001da01c MOVZX EDX,byte ptr [RSI + 0x1] CMP DL,0xbf JG 0x001da01a MOVZX ESI,byte ptr [RSI + 0x2] CMP SIL,0xbf JG 0x001da01a CMP ECX,0xe0 SETZ R8B CMP DL,0xa0 SETC R9B MOV EAX,0x0 TEST R8B,R9B JNZ 0x001da01c SHL ECX,0xc MOVZX EAX,CX AND EDX,0x3f SHL EDX,0x6 OR EDX,EAX AND ESI,0x3f OR RSI,RDX MOV EAX,0x3 LAB_001da0ae: MOV RCX,RSI JMP 0x001da010 LAB_001da0b6: CMP CL,0xf4 JA 0x001da01a LEA R8,[RSI + 0x4] MOV EAX,0xffffff98 CMP R8,RDX JA 0x001da01c MOVZX R8D,byte ptr [RSI + 0x1] CMP R8B,0xbf JG 0x001da01a MOVZX EDX,byte ptr [RSI + 0x2] CMP DL,0xbf JG 0x001da01a MOVZX ESI,byte ptr [RSI + 0x3] CMP SIL,0xbf JG 0x001da01a CMP ECX,0xf0 SETZ AL CMP R8B,0x90 SETC R9B TEST AL,R9B JNZ 0x001da01a CMP ECX,0xf4 SETZ R9B CMP R8B,0x90 SETNC R10B MOV EAX,0x0 TEST R9B,R10B JNZ 0x001da01c AND ECX,0x7 SHL ECX,0x12 AND R8D,0x3f SHL R8D,0xc OR R8D,ECX AND EDX,0x3f SHL EDX,0x6 OR EDX,R8D AND ESI,0x3f OR RSI,RDX MOV EAX,0x4 JMP 0x001da0ae
int8 my_mb_wc_utf8mb4_quick(ulong *param_1,byte *param_2,byte *param_3) { byte bVar1; byte bVar2; int8 uVar3; uint uVar4; ulong uVar5; if (param_3 <= param_2) { return 0xffffff9b; } bVar1 = *param_2; uVar5 = (ulong)bVar1; if ((char)bVar1 < '\0') { if (0xc1 < bVar1) { uVar4 = (uint)bVar1; if (bVar1 < 0xe0) { if (param_3 < param_2 + 2) { return 0xffffff9a; } if (0x3f < (byte)(param_2[1] ^ 0x80)) { return 0; } uVar5 = (ulong)((uVar4 & 0x1f) << 6 | param_2[1] ^ 0x80); uVar3 = 2; goto LAB_001da010; } if (bVar1 < 0xf0) { if (param_3 < param_2 + 3) { return 0xffffff99; } bVar2 = param_2[1]; if (((char)bVar2 < -0x40) && ((char)param_2[2] < -0x40)) { if (uVar4 == 0xe0 && bVar2 < 0xa0) { return 0; } uVar4 = param_2[2] & 0x3f | (bVar2 & 0x3f) << 6 | (bVar1 & 0xf) << 0xc; uVar3 = 3; LAB_001da0ae: uVar5 = (ulong)uVar4; goto LAB_001da010; } } else if (bVar1 < 0xf5) { if (param_3 < param_2 + 4) { return 0xffffff98; } bVar1 = param_2[1]; if (((((char)bVar1 < -0x40) && ((char)param_2[2] < -0x40)) && ((char)param_2[3] < -0x40)) && (uVar4 != 0xf0 || 0x8f < bVar1)) { if (uVar4 == 0xf4 && 0x8f < bVar1) { return 0; } uVar4 = param_2[3] & 0x3f | (param_2[2] & 0x3f) << 6 | (bVar1 & 0x3f) << 0xc | (uVar4 & 7) << 0x12; uVar3 = 4; goto LAB_001da0ae; } } } uVar3 = 0; } else { uVar3 = 1; LAB_001da010: *param_1 = uVar5; } return uVar3; }
31,135
psi_prlock_rdlock
eloqsql/mysys/my_thr_init.c
ATTRIBUTE_COLD int psi_prlock_rdlock(mysql_prlock_t *that, const char *file, uint line) { PSI_rwlock_locker_state state; PSI_rwlock_locker *locker= PSI_RWLOCK_CALL(start_rwlock_rdwait) (&state, that->m_psi, PSI_RWLOCK_READLOCK, file, line); int result= rw_pr_rdlock(&that->m_prlock); if (locker) PSI_RWLOCK_CALL(end_rwlock_rdwait)(locker, result); return result; }
O0
c
psi_prlock_rdlock: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) leaq 0x1a4106(%rip), %rax # 0x1cc820 movq (%rax), %rax movq 0x1a0(%rax), %rax movq -0x8(%rbp), %rcx movq 0x68(%rcx), %rsi movq -0x10(%rbp), %rcx movl -0x14(%rbp), %r8d leaq -0x48(%rbp), %rdi xorl %edx, %edx callq *%rax movq %rax, -0x50(%rbp) movq -0x8(%rbp), %rdi callq 0x28e10 movl %eax, -0x54(%rbp) cmpq $0x0, -0x50(%rbp) je 0x2876d leaq 0x1a40c6(%rip), %rax # 0x1cc820 movq (%rax), %rax movq 0x1a8(%rax), %rax movq -0x50(%rbp), %rdi movl -0x54(%rbp), %esi callq *%rax movl -0x54(%rbp), %eax addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
psi_prlock_rdlock: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx lea rax, PSI_server mov rax, [rax] mov rax, [rax+1A0h] mov rcx, [rbp+var_8] mov rsi, [rcx+68h] mov rcx, [rbp+var_10] mov r8d, [rbp+var_14] lea rdi, [rbp+var_48] xor edx, edx call rax mov [rbp+var_50], rax mov rdi, [rbp+var_8] call rw_pr_rdlock mov [rbp+var_54], eax cmp [rbp+var_50], 0 jz short loc_2876D lea rax, PSI_server mov rax, [rax] mov rax, [rax+1A8h] mov rdi, [rbp+var_50] mov esi, [rbp+var_54] call rax loc_2876D: mov eax, [rbp+var_54] add rsp, 60h pop rbp retn
long long psi_prlock_rdlock(long long a1, long long a2, unsigned int a3) { unsigned int v4; // [rsp+Ch] [rbp-54h] long long v5; // [rsp+10h] [rbp-50h] _BYTE v6[52]; // [rsp+18h] [rbp-48h] BYREF unsigned int v7; // [rsp+4Ch] [rbp-14h] long long v8; // [rsp+50h] [rbp-10h] long long v9; // [rsp+58h] [rbp-8h] v9 = a1; v8 = a2; v7 = a3; v5 = (*((long long ( **)(_BYTE *, _QWORD, _QWORD, long long, _QWORD))PSI_server[0] + 52))( v6, *(_QWORD *)(a1 + 104), 0LL, a2, a3); v4 = rw_pr_rdlock(v9); if ( v5 ) (*((void ( **)(long long, _QWORD))PSI_server[0] + 53))(v5, v4); return v4; }
psi_prlock_rdlock: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX LEA RAX,[0x2cc820] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x1a0] MOV RCX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RCX + 0x68] MOV RCX,qword ptr [RBP + -0x10] MOV R8D,dword ptr [RBP + -0x14] LEA RDI,[RBP + -0x48] XOR EDX,EDX CALL RAX MOV qword ptr [RBP + -0x50],RAX MOV RDI,qword ptr [RBP + -0x8] CALL 0x00128e10 MOV dword ptr [RBP + -0x54],EAX CMP qword ptr [RBP + -0x50],0x0 JZ 0x0012876d LEA RAX,[0x2cc820] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x1a8] MOV RDI,qword ptr [RBP + -0x50] MOV ESI,dword ptr [RBP + -0x54] CALL RAX LAB_0012876d: MOV EAX,dword ptr [RBP + -0x54] ADD RSP,0x60 POP RBP RET
int4 psi_prlock_rdlock(long param_1,int8 param_2,int4 param_3) { int4 uVar1; long lVar2; int1 local_50 [52]; int4 local_1c; int8 local_18; long local_10; local_1c = param_3; local_18 = param_2; local_10 = param_1; lVar2 = (**(code **)(PSI_server + 0x1a0)) (local_50,*(int8 *)(param_1 + 0x68),0,param_2,param_3); uVar1 = rw_pr_rdlock(local_10); if (lVar2 != 0) { (**(code **)(PSI_server + 0x1a8))(lVar2,uVar1); } return uVar1; }
31,136
my_uca_charcmp
eloqsql/strings/ctype-uca.c
static int my_uca_charcmp(CHARSET_INFO *cs, my_wc_t wc1, my_wc_t wc2) { uint num_level= cs->levels_for_order; int ret; uint i; for (i= 0; i != num_level; i++) { ret= my_uca_charcmp_onelevel(cs, wc1, wc2, i); if (ret) { return ret; } } return 0; }
O3
c
my_uca_charcmp: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x58, %rsp movzbl 0xb2(%rdi), %eax testq %rax, %rax je 0xc2d94 movq 0x60(%rdi), %r12 movl %esi, %edi movq %rsi, %r8 shrq $0x8, %r8 movl $0xffffff, %r9d # imm = 0xFFFFFF movq %r8, -0x78(%rbp) andq %r9, %r8 movl $0xff, %ecx movq %rsi, %r10 andq %rcx, %r10 movl %edx, %r11d movq %rdx, %rbx shrq $0x8, %rbx movq %rbx, -0x70(%rbp) andq %rbx, %r9 andq %rdx, %rcx movq %rcx, -0x80(%rbp) cmpq %rdx, %rsi movl $0x0, %esi setne %sil imulq $0x38, %rax, %rdx xorl %r13d, %r13d movq %rdi, -0x68(%rbp) movq %r9, -0x60(%rbp) movq %r8, -0x58(%rbp) movq %r10, -0x50(%rbp) movq %r11, -0x48(%rbp) movl %esi, -0x2c(%rbp) movq %rdx, -0x38(%rbp) movq (%r12,%r13), %rax cmpq %rdi, %rax jb 0xc2c73 movq 0x10(%r12,%r13), %rcx movq (%rcx,%r8,8), %rcx testq %rcx, %rcx je 0xc2c73 movq 0x8(%r12,%r13), %rdx movzbl (%rdx,%r8), %edx imull %r10d, %edx leaq (%rcx,%rdx,2), %r14 movq -0x38(%rbp), %rdx jmp 0xc2c76 xorl %r14d, %r14d movl %esi, %ebx cmpq %r11, %rax jb 0xc2d83 movq 0x10(%r12,%r13), %rax movq (%rax,%r9,8), %rax movl %esi, %ebx testq %rax, %rax je 0xc2d83 movl %esi, %ebx testq %r14, %r14 je 0xc2d83 movq 0x8(%r12,%r13), %rcx movzbl (%rcx,%r9), %edx imull -0x80(%rbp), %edx leaq (%rax,%rdx,2), %r15 movzwl (%r14), %eax movl $0x1, %ebx cmpw (%r15), %ax jne 0xc2d96 movq -0x78(%rbp), %rax movzbl (%rcx,%rax), %esi movq -0x70(%rbp), %rax movzbl (%rcx,%rax), %eax cmpb %al, %sil jbe 0xc2d1a movq %rax, -0x40(%rbp) leal (%rax,%rax), %edx movq %r14, %rdi movq %r15, %rsi callq 0x29510 movl -0x2c(%rbp), %esi movq -0x48(%rbp), %r11 movq -0x50(%rbp), %r10 movq -0x58(%rbp), %r8 movq -0x60(%rbp), %r9 movq -0x68(%rbp), %rdi testl %eax, %eax movq -0x38(%rbp), %rdx jne 0xc2d96 movq -0x40(%rbp), %rax movzwl (%r14,%rax,2), %ebx jmp 0xc2d83 leal (%rsi,%rsi), %edx cmpb %al, %sil jae 0xc2d5b movq %rsi, -0x40(%rbp) movq %r14, %rdi movq %r15, %rsi callq 0x29510 testl %eax, %eax movq -0x68(%rbp), %rdi movq -0x60(%rbp), %r9 movq -0x58(%rbp), %r8 movq -0x50(%rbp), %r10 movq -0x48(%rbp), %r11 movl -0x2c(%rbp), %esi movq -0x38(%rbp), %rdx jne 0xc2d96 movq -0x40(%rbp), %rax movzwl (%r15,%rax,2), %ebx jmp 0xc2d83 movq %r14, %rdi movq %r15, %rsi callq 0x29820 movl %eax, %ebx movq -0x68(%rbp), %rdi movq -0x60(%rbp), %r9 movq -0x58(%rbp), %r8 movq -0x50(%rbp), %r10 movq -0x48(%rbp), %r11 movl -0x2c(%rbp), %esi movq -0x38(%rbp), %rdx testl %ebx, %ebx jne 0xc2d96 addq $0x38, %r13 cmpq %r13, %rdx jne 0xc2c44 xorl %ebx, %ebx movl %ebx, %eax addq $0x58, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_uca_charcmp: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 58h movzx eax, byte ptr [rdi+0B2h] test rax, rax jz loc_C2D94 mov r12, [rdi+60h] mov edi, esi mov r8, rsi shr r8, 8 mov r9d, 0FFFFFFh mov [rbp+var_78], r8 and r8, r9 mov ecx, 0FFh mov r10, rsi and r10, rcx mov r11d, edx mov rbx, rdx shr rbx, 8 mov [rbp+var_70], rbx and r9, rbx and rcx, rdx mov [rbp+var_80], rcx cmp rsi, rdx mov esi, 0 setnz sil imul rdx, rax, 38h ; '8' xor r13d, r13d mov [rbp+var_68], rdi mov [rbp+var_60], r9 mov [rbp+var_58], r8 mov [rbp+var_50], r10 mov [rbp+var_48], r11 mov [rbp+var_2C], esi mov [rbp+var_38], rdx loc_C2C44: mov rax, [r12+r13] cmp rax, rdi jb short loc_C2C73 mov rcx, [r12+r13+10h] mov rcx, [rcx+r8*8] test rcx, rcx jz short loc_C2C73 mov rdx, [r12+r13+8] movzx edx, byte ptr [rdx+r8] imul edx, r10d lea r14, [rcx+rdx*2] mov rdx, [rbp+var_38] jmp short loc_C2C76 loc_C2C73: xor r14d, r14d loc_C2C76: mov ebx, esi cmp rax, r11 jb loc_C2D83 mov rax, [r12+r13+10h] mov rax, [rax+r9*8] mov ebx, esi test rax, rax jz loc_C2D83 mov ebx, esi test r14, r14 jz loc_C2D83 mov rcx, [r12+r13+8] movzx edx, byte ptr [rcx+r9] imul edx, dword ptr [rbp+var_80] lea r15, [rax+rdx*2] movzx eax, word ptr [r14] mov ebx, 1 cmp ax, [r15] jnz loc_C2D96 mov rax, [rbp+var_78] movzx esi, byte ptr [rcx+rax] mov rax, [rbp+var_70] movzx eax, byte ptr [rcx+rax] cmp sil, al jbe short loc_C2D1A mov [rbp+var_40], rax lea edx, [rax+rax] mov rdi, r14 mov rsi, r15 call _bcmp mov esi, [rbp+var_2C] mov r11, [rbp+var_48] mov r10, [rbp+var_50] mov r8, [rbp+var_58] mov r9, [rbp+var_60] mov rdi, [rbp+var_68] test eax, eax mov rdx, [rbp+var_38] jnz loc_C2D96 mov rax, [rbp+var_40] movzx ebx, word ptr [r14+rax*2] jmp short loc_C2D83 loc_C2D1A: lea edx, [rsi+rsi] cmp sil, al jnb short loc_C2D5B mov [rbp+var_40], rsi mov rdi, r14 mov rsi, r15 call _bcmp test eax, eax mov rdi, [rbp+var_68] mov r9, [rbp+var_60] mov r8, [rbp+var_58] mov r10, [rbp+var_50] mov r11, [rbp+var_48] mov esi, [rbp+var_2C] mov rdx, [rbp+var_38] jnz short loc_C2D96 mov rax, [rbp+var_40] movzx ebx, word ptr [r15+rax*2] jmp short loc_C2D83 loc_C2D5B: mov rdi, r14 mov rsi, r15 call _memcmp mov ebx, eax mov rdi, [rbp+var_68] mov r9, [rbp+var_60] mov r8, [rbp+var_58] mov r10, [rbp+var_50] mov r11, [rbp+var_48] mov esi, [rbp+var_2C] mov rdx, [rbp+var_38] loc_C2D83: test ebx, ebx jnz short loc_C2D96 add r13, 38h ; '8' cmp rdx, r13 jnz loc_C2C44 loc_C2D94: xor ebx, ebx loc_C2D96: mov eax, ebx add rsp, 58h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_uca_charcmp(long long a1, unsigned long long a2, unsigned long long a3) { long long v3; // rax long long v4; // r12 unsigned long long v5; // rdi long long v6; // r8 int v7; // r10d unsigned long long v8; // r11 long long v9; // r9 BOOL v10; // esi long long v11; // rdx long long v12; // r13 unsigned long long v13; // rax long long v14; // rcx _WORD *v15; // r14 unsigned int v16; // ebx long long v17; // rax long long v18; // rcx _WORD *v19; // r15 int v20; // esi int v21; // eax int v22; // eax long long v23; // rdx int v24; // eax int v26; // [rsp+0h] [rbp-80h] unsigned long long v27; // [rsp+8h] [rbp-78h] unsigned long long v28; // [rsp+10h] [rbp-70h] unsigned long long v29; // [rsp+18h] [rbp-68h] long long v30; // [rsp+20h] [rbp-60h] long long v31; // [rsp+28h] [rbp-58h] int v32; // [rsp+30h] [rbp-50h] unsigned long long v33; // [rsp+38h] [rbp-48h] long long v34; // [rsp+40h] [rbp-40h] long long v35; // [rsp+40h] [rbp-40h] long long v36; // [rsp+48h] [rbp-38h] BOOL v37; // [rsp+54h] [rbp-2Ch] v3 = *(unsigned __int8 *)(a1 + 178); if ( *(_BYTE *)(a1 + 178) ) { v4 = *(_QWORD *)(a1 + 96); v5 = (unsigned int)a2; v27 = a2 >> 8; v6 = (unsigned int)a2 >> 8; v7 = (unsigned __int8)a2; v8 = (unsigned int)a3; v28 = a3 >> 8; v9 = (unsigned int)a3 >> 8; v26 = (unsigned __int8)a3; v10 = a2 != a3; v11 = 56 * v3; v12 = 0LL; v29 = v5; v30 = v9; v31 = v6; v32 = v7; v33 = v8; v37 = v10; v36 = 56 * v3; while ( 1 ) { v13 = *(_QWORD *)(v4 + v12); if ( v13 >= v5 && (v14 = *(_QWORD *)(*(_QWORD *)(v4 + v12 + 16) + 8 * v6)) != 0 ) { v15 = (_WORD *)(v14 + 2LL * v7 * (unsigned int)*(unsigned __int8 *)(*(_QWORD *)(v4 + v12 + 8) + v6)); v11 = v36; } else { v15 = 0LL; } v16 = v10; if ( v13 >= v8 ) { v17 = *(_QWORD *)(*(_QWORD *)(v4 + v12 + 16) + 8 * v9); v16 = v10; if ( v17 ) { v16 = v10; if ( v15 ) { v18 = *(_QWORD *)(v4 + v12 + 8); v19 = (_WORD *)(v17 + 2LL * v26 * (unsigned int)*(unsigned __int8 *)(v18 + v9)); v16 = 1; if ( *v15 != *v19 ) return v16; v20 = *(unsigned __int8 *)(v18 + v27); v21 = *(unsigned __int8 *)(v18 + v28); if ( (unsigned __int8)v20 <= (unsigned __int8)v21 ) { v23 = (unsigned int)(2 * v20); if ( (unsigned __int8)v20 >= (unsigned __int8)v21 ) { v16 = memcmp(v15, v19, v23); v5 = v29; v9 = v30; v6 = v31; v7 = v32; v8 = v33; v10 = v37; v11 = v36; } else { v35 = *(unsigned __int8 *)(v18 + v27); v24 = bcmp(v15, v19, v23); v5 = v29; v9 = v30; v6 = v31; v7 = v32; v8 = v33; v10 = v37; v11 = v36; if ( v24 ) return v16; v16 = (unsigned __int16)v19[v35]; } } else { v34 = *(unsigned __int8 *)(v18 + v28); v22 = bcmp(v15, v19, (unsigned int)(2 * v21)); v10 = v37; v8 = v33; v7 = v32; v6 = v31; v9 = v30; v5 = v29; v11 = v36; if ( v22 ) return v16; v16 = (unsigned __int16)v15[v34]; } } } } if ( v16 ) break; v12 += 56LL; if ( v11 == v12 ) return 0; } } else { return 0; } return v16; }
my_uca_charcmp: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x58 MOVZX EAX,byte ptr [RDI + 0xb2] TEST RAX,RAX JZ 0x001c2d94 MOV R12,qword ptr [RDI + 0x60] MOV EDI,ESI MOV R8,RSI SHR R8,0x8 MOV R9D,0xffffff MOV qword ptr [RBP + -0x78],R8 AND R8,R9 MOV ECX,0xff MOV R10,RSI AND R10,RCX MOV R11D,EDX MOV RBX,RDX SHR RBX,0x8 MOV qword ptr [RBP + -0x70],RBX AND R9,RBX AND RCX,RDX MOV qword ptr [RBP + -0x80],RCX CMP RSI,RDX MOV ESI,0x0 SETNZ SIL IMUL RDX,RAX,0x38 XOR R13D,R13D MOV qword ptr [RBP + -0x68],RDI MOV qword ptr [RBP + -0x60],R9 MOV qword ptr [RBP + -0x58],R8 MOV qword ptr [RBP + -0x50],R10 MOV qword ptr [RBP + -0x48],R11 MOV dword ptr [RBP + -0x2c],ESI MOV qword ptr [RBP + -0x38],RDX LAB_001c2c44: MOV RAX,qword ptr [R12 + R13*0x1] CMP RAX,RDI JC 0x001c2c73 MOV RCX,qword ptr [R12 + R13*0x1 + 0x10] MOV RCX,qword ptr [RCX + R8*0x8] TEST RCX,RCX JZ 0x001c2c73 MOV RDX,qword ptr [R12 + R13*0x1 + 0x8] MOVZX EDX,byte ptr [RDX + R8*0x1] IMUL EDX,R10D LEA R14,[RCX + RDX*0x2] MOV RDX,qword ptr [RBP + -0x38] JMP 0x001c2c76 LAB_001c2c73: XOR R14D,R14D LAB_001c2c76: MOV EBX,ESI CMP RAX,R11 JC 0x001c2d83 MOV RAX,qword ptr [R12 + R13*0x1 + 0x10] MOV RAX,qword ptr [RAX + R9*0x8] MOV EBX,ESI TEST RAX,RAX JZ 0x001c2d83 MOV EBX,ESI TEST R14,R14 JZ 0x001c2d83 MOV RCX,qword ptr [R12 + R13*0x1 + 0x8] MOVZX EDX,byte ptr [RCX + R9*0x1] IMUL EDX,dword ptr [RBP + -0x80] LEA R15,[RAX + RDX*0x2] MOVZX EAX,word ptr [R14] MOV EBX,0x1 CMP AX,word ptr [R15] JNZ 0x001c2d96 MOV RAX,qword ptr [RBP + -0x78] MOVZX ESI,byte ptr [RCX + RAX*0x1] MOV RAX,qword ptr [RBP + -0x70] MOVZX EAX,byte ptr [RCX + RAX*0x1] CMP SIL,AL JBE 0x001c2d1a MOV qword ptr [RBP + -0x40],RAX LEA EDX,[RAX + RAX*0x1] MOV RDI,R14 MOV RSI,R15 CALL 0x00129510 MOV ESI,dword ptr [RBP + -0x2c] MOV R11,qword ptr [RBP + -0x48] MOV R10,qword ptr [RBP + -0x50] MOV R8,qword ptr [RBP + -0x58] MOV R9,qword ptr [RBP + -0x60] MOV RDI,qword ptr [RBP + -0x68] TEST EAX,EAX MOV RDX,qword ptr [RBP + -0x38] JNZ 0x001c2d96 MOV RAX,qword ptr [RBP + -0x40] MOVZX EBX,word ptr [R14 + RAX*0x2] JMP 0x001c2d83 LAB_001c2d1a: LEA EDX,[RSI + RSI*0x1] CMP SIL,AL JNC 0x001c2d5b MOV qword ptr [RBP + -0x40],RSI MOV RDI,R14 MOV RSI,R15 CALL 0x00129510 TEST EAX,EAX MOV RDI,qword ptr [RBP + -0x68] MOV R9,qword ptr [RBP + -0x60] MOV R8,qword ptr [RBP + -0x58] MOV R10,qword ptr [RBP + -0x50] MOV R11,qword ptr [RBP + -0x48] MOV ESI,dword ptr [RBP + -0x2c] MOV RDX,qword ptr [RBP + -0x38] JNZ 0x001c2d96 MOV RAX,qword ptr [RBP + -0x40] MOVZX EBX,word ptr [R15 + RAX*0x2] JMP 0x001c2d83 LAB_001c2d5b: MOV RDI,R14 MOV RSI,R15 CALL 0x00129820 MOV EBX,EAX MOV RDI,qword ptr [RBP + -0x68] MOV R9,qword ptr [RBP + -0x60] MOV R8,qword ptr [RBP + -0x58] MOV R10,qword ptr [RBP + -0x50] MOV R11,qword ptr [RBP + -0x48] MOV ESI,dword ptr [RBP + -0x2c] MOV RDX,qword ptr [RBP + -0x38] LAB_001c2d83: TEST EBX,EBX JNZ 0x001c2d96 ADD R13,0x38 CMP RDX,R13 JNZ 0x001c2c44 LAB_001c2d94: XOR EBX,EBX LAB_001c2d96: MOV EAX,EBX ADD RSP,0x58 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
uint my_uca_charcmp(long param_1,ulong param_2,ulong param_3) { short *__s2; byte bVar1; byte bVar2; byte bVar3; long lVar4; long lVar5; long lVar6; int iVar7; uint uVar8; ulong uVar9; ulong uVar10; long lVar11; short *__s1; uint local_88; bVar1 = *(byte *)(param_1 + 0xb2); if ((ulong)bVar1 != 0) { lVar4 = *(long *)(param_1 + 0x60); uVar9 = param_2 >> 8 & 0xffffff; uVar10 = param_3 >> 8 & 0xffffff; local_88 = (uint)param_3 & 0xff; lVar11 = 0; do { uVar8 = (uint)(param_2 != param_3); if ((*(ulong *)(lVar4 + lVar11) < (param_2 & 0xffffffff)) || (lVar5 = *(long *)(*(long *)(lVar4 + 0x10 + lVar11) + uVar9 * 8), lVar5 == 0)) { __s1 = (short *)0x0; } else { __s1 = (short *)(lVar5 + (ulong)((uint)*(byte *)(*(long *)(lVar4 + 8 + lVar11) + uVar9) * ((uint)param_2 & 0xff)) * 2); } if ((((param_3 & 0xffffffff) <= *(ulong *)(lVar4 + lVar11)) && (lVar5 = *(long *)(*(long *)(lVar4 + 0x10 + lVar11) + uVar10 * 8), lVar5 != 0)) && (__s1 != (short *)0x0)) { lVar6 = *(long *)(lVar4 + 8 + lVar11); __s2 = (short *)(lVar5 + (ulong)(*(byte *)(lVar6 + uVar10) * local_88) * 2); if (*__s1 != *__s2) { return 1; } bVar2 = *(byte *)(lVar6 + (param_2 >> 8)); bVar3 = *(byte *)(lVar6 + (param_3 >> 8)); if (bVar3 < bVar2) { iVar7 = bcmp(__s1,__s2,(ulong)((uint)bVar3 + (uint)bVar3)); if (iVar7 != 0) { return 1; } uVar8 = (uint)(ushort)__s1[bVar3]; } else if (bVar2 < bVar3) { iVar7 = bcmp(__s1,__s2,(ulong)((uint)bVar2 + (uint)bVar2)); if (iVar7 != 0) { return 1; } uVar8 = (uint)(ushort)__s2[bVar2]; } else { uVar8 = memcmp(__s1,__s2,(ulong)((uint)bVar2 + (uint)bVar2)); } } if (uVar8 != 0) { return uVar8; } lVar11 = lVar11 + 0x38; } while ((ulong)bVar1 * 0x38 != lVar11); } return 0; }
31,137
gindex_add
corpus-core[P]colibri-stateless/src/util/ssz_merkle.c
static void gindex_add(buffer_t* index_list, gindex_t index) { int len = index_list->data.len / sizeof(gindex_t); gindex_t* index_list_array = (gindex_t*) index_list->data.data; for (int i = 0; i < len; i++) { if (index_list_array[i] < index) { buffer_splice(index_list, i * sizeof(gindex_t), 0, bytes((uint8_t*) &index, sizeof(gindex_t))); return; } if (index_list_array[i] == index) return; } buffer_append(index_list, bytes((uint8_t*) &index, sizeof(gindex_t))); }
O0
c
gindex_add: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movl (%rax), %eax shrq $0x3, %rax movl %eax, -0x14(%rbp) movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x20(%rbp) movl $0x0, -0x24(%rbp) movl -0x24(%rbp), %eax cmpl -0x14(%rbp), %eax jge 0xa20d6 movq -0x20(%rbp), %rax movslq -0x24(%rbp), %rcx movq (%rax,%rcx,8), %rax cmpq -0x10(%rbp), %rax jae 0xa20b5 movq -0x8(%rbp), %rdi movslq -0x24(%rbp), %rsi shlq $0x3, %rsi movl $0x8, -0x38(%rbp) leaq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) movl -0x38(%rbp), %ecx movq -0x30(%rbp), %r8 xorl %edx, %edx callq 0x9cb00 jmp 0xa20f5 movq -0x20(%rbp), %rax movslq -0x24(%rbp), %rcx movq (%rax,%rcx,8), %rax cmpq -0x10(%rbp), %rax jne 0xa20c9 jmp 0xa20f5 jmp 0xa20cb movl -0x24(%rbp), %eax addl $0x1, %eax movl %eax, -0x24(%rbp) jmp 0xa2070 movq -0x8(%rbp), %rdi movl $0x8, -0x48(%rbp) leaq -0x10(%rbp), %rax movq %rax, -0x40(%rbp) movl -0x48(%rbp), %esi movq -0x40(%rbp), %rdx callq 0x9ca30 addq $0x50, %rsp popq %rbp retq nopl (%rax,%rax)
gindex_add: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov eax, [rax] shr rax, 3 mov [rbp+var_14], eax mov rax, [rbp+var_8] mov rax, [rax+8] mov [rbp+var_20], rax mov [rbp+var_24], 0 loc_A2070: mov eax, [rbp+var_24] cmp eax, [rbp+var_14] jge short loc_A20D6 mov rax, [rbp+var_20] movsxd rcx, [rbp+var_24] mov rax, [rax+rcx*8] cmp rax, [rbp+var_10] jnb short loc_A20B5 mov rdi, [rbp+var_8] movsxd rsi, [rbp+var_24] shl rsi, 3 mov [rbp+var_38], 8 lea rax, [rbp+var_10] mov [rbp+var_30], rax mov ecx, [rbp+var_38] mov r8, [rbp+var_30] xor edx, edx call buffer_splice jmp short loc_A20F5 loc_A20B5: mov rax, [rbp+var_20] movsxd rcx, [rbp+var_24] mov rax, [rax+rcx*8] cmp rax, [rbp+var_10] jnz short loc_A20C9 jmp short loc_A20F5 loc_A20C9: jmp short $+2 loc_A20CB: mov eax, [rbp+var_24] add eax, 1 mov [rbp+var_24], eax jmp short loc_A2070 loc_A20D6: mov rdi, [rbp+var_8] mov [rbp+var_48], 8 lea rax, [rbp+var_10] mov [rbp+var_40], rax mov esi, [rbp+var_48] mov rdx, [rbp+var_40] call buffer_append loc_A20F5: add rsp, 50h pop rbp retn
unsigned long long gindex_add(long long a1, unsigned long long a2) { unsigned long long result; // rax int i; // [rsp+2Ch] [rbp-24h] long long v4; // [rsp+30h] [rbp-20h] unsigned long long v5; // [rsp+40h] [rbp-10h] BYREF unsigned int *v6; // [rsp+48h] [rbp-8h] v6 = (unsigned int *)a1; v5 = a2; v4 = *(_QWORD *)(a1 + 8); for ( i = 0; i < *(_DWORD *)a1 >> 3; ++i ) { if ( *(_QWORD *)(v4 + 8LL * i) < v5 ) return buffer_splice((unsigned long long)v6, 8LL * i, 0, 8u, (long long)&v5); result = *(_QWORD *)(v4 + 8LL * i); if ( result == v5 ) return result; } return buffer_append(v6, 8u, (long long)&v5); }
gindex_add: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX] SHR RAX,0x3 MOV dword ptr [RBP + -0x14],EAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x20],RAX MOV dword ptr [RBP + -0x24],0x0 LAB_001a2070: MOV EAX,dword ptr [RBP + -0x24] CMP EAX,dword ptr [RBP + -0x14] JGE 0x001a20d6 MOV RAX,qword ptr [RBP + -0x20] MOVSXD RCX,dword ptr [RBP + -0x24] MOV RAX,qword ptr [RAX + RCX*0x8] CMP RAX,qword ptr [RBP + -0x10] JNC 0x001a20b5 MOV RDI,qword ptr [RBP + -0x8] MOVSXD RSI,dword ptr [RBP + -0x24] SHL RSI,0x3 MOV dword ptr [RBP + -0x38],0x8 LEA RAX,[RBP + -0x10] MOV qword ptr [RBP + -0x30],RAX MOV ECX,dword ptr [RBP + -0x38] MOV R8,qword ptr [RBP + -0x30] XOR EDX,EDX CALL 0x0019cb00 JMP 0x001a20f5 LAB_001a20b5: MOV RAX,qword ptr [RBP + -0x20] MOVSXD RCX,dword ptr [RBP + -0x24] MOV RAX,qword ptr [RAX + RCX*0x8] CMP RAX,qword ptr [RBP + -0x10] JNZ 0x001a20c9 JMP 0x001a20f5 LAB_001a20c9: JMP 0x001a20cb LAB_001a20cb: MOV EAX,dword ptr [RBP + -0x24] ADD EAX,0x1 MOV dword ptr [RBP + -0x24],EAX JMP 0x001a2070 LAB_001a20d6: MOV RDI,qword ptr [RBP + -0x8] MOV dword ptr [RBP + -0x48],0x8 LEA RAX,[RBP + -0x10] MOV qword ptr [RBP + -0x40],RAX MOV ESI,dword ptr [RBP + -0x48] MOV RDX,qword ptr [RBP + -0x40] CALL 0x0019ca30 LAB_001a20f5: ADD RSP,0x50 POP RBP RET
void gindex_add(uint *param_1,ulong param_2) { int local_2c; ulong local_18; uint *local_10; local_2c = 0; while( true ) { local_18 = param_2; local_10 = param_1; if ((int)(*param_1 >> 3) <= local_2c) { buffer_append(param_1,8,&local_18); return; } if (*(ulong *)(*(long *)(param_1 + 2) + (long)local_2c * 8) < param_2) break; if (*(ulong *)(*(long *)(param_1 + 2) + (long)local_2c * 8) == param_2) { return; } local_2c = local_2c + 1; } buffer_splice(param_1,(long)local_2c << 3,0,8,&local_18); return; }
31,138
allocate_dynamic
eloqsql/mysys/array.c
my_bool allocate_dynamic(DYNAMIC_ARRAY *array, uint max_elements) { DBUG_ENTER("allocate_dynamic"); if (max_elements >= array->max_element) { uint size; uchar *new_ptr; size= (max_elements + array->alloc_increment)/array->alloc_increment; size*= array->alloc_increment; if (array->malloc_flags & MY_INIT_BUFFER_USED) { /* In this senerio, the buffer is statically preallocated, so we have to create an all-new malloc since we overflowed */ if (!(new_ptr= (uchar *) my_malloc(array->m_psi_key, size * array->size_of_element, MYF(array->malloc_flags | MY_WME)))) DBUG_RETURN(0); memcpy(new_ptr, array->buffer, array->elements * array->size_of_element); array->malloc_flags&= ~MY_INIT_BUFFER_USED; } else if (!(new_ptr= (uchar*) my_realloc(array->m_psi_key, array->buffer,size * array->size_of_element, MYF(MY_WME | MY_ALLOW_ZERO_PTR | array->malloc_flags)))) DBUG_RETURN(TRUE); array->buffer= new_ptr; array->max_element= size; } DBUG_RETURN(FALSE); }
O3
c
allocate_dynamic: cmpl %esi, 0xc(%rdi) jbe 0x44b05 xorl %eax, %eax retq pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %esi, %ebx movq %rdi, %r14 movl 0x10(%rdi), %ecx movl 0x18(%rdi), %edi addl %ecx, %ebx movl %ebx, %eax xorl %edx, %edx divl %ecx subl %edx, %ebx movq 0x20(%r14), %rcx btl $0x8, %ecx jb 0x44b4d movq (%r14), %rsi movl 0x14(%r14), %edx imull %ebx, %edx orq $0x50, %rcx callq 0x453f0 movq %rax, %r15 testq %rax, %rax jne 0x44b85 movb $0x1, %al jmp 0x44b8e movl 0x14(%r14), %esi imull %ebx, %esi orq $0x10, %rcx movq %rcx, %rdx callq 0x452cd testq %rax, %rax je 0x44b8c movq %rax, %r15 movq (%r14), %rsi movl 0x14(%r14), %edx imull 0x8(%r14), %edx movq %rax, %rdi callq 0x26290 movl $0xfffffeff, %eax # imm = 0xFFFFFEFF andq %rax, 0x20(%r14) movq %r15, (%r14) movl %ebx, 0xc(%r14) xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
allocate_dynamic: cmp [rdi+0Ch], esi jbe short loc_44B05 xor eax, eax retn loc_44B05: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov ebx, esi mov r14, rdi mov ecx, [rdi+10h] mov edi, [rdi+18h] add ebx, ecx mov eax, ebx xor edx, edx div ecx sub ebx, edx mov rcx, [r14+20h] bt ecx, 8 jb short loc_44B4D mov rsi, [r14] mov edx, [r14+14h] imul edx, ebx or rcx, 50h call my_realloc mov r15, rax test rax, rax jnz short loc_44B85 mov al, 1 jmp short loc_44B8E loc_44B4D: mov esi, [r14+14h] imul esi, ebx or rcx, 10h mov rdx, rcx call my_malloc test rax, rax jz short loc_44B8C mov r15, rax mov rsi, [r14] mov edx, [r14+14h] imul edx, [r14+8] mov rdi, rax call _memcpy mov eax, 0FFFFFEFFh and [r14+20h], rax loc_44B85: mov [r14], r15 mov [r14+0Ch], ebx loc_44B8C: xor eax, eax loc_44B8E: add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long allocate_dynamic(long long a1, unsigned int a2) { unsigned int v4; // ecx long long v5; // rdi unsigned int v6; // ebx long long v7; // rcx long long v8; // r15 long long v9; // rax if ( *(_DWORD *)(a1 + 12) > a2 ) return 0LL; v4 = *(_DWORD *)(a1 + 16); v5 = *(unsigned int *)(a1 + 24); v6 = v4 + a2 - (v4 + a2) % v4; v7 = *(_QWORD *)(a1 + 32); if ( (v7 & 0x100) == 0 ) { v8 = my_realloc(v5, *(_QWORD *)a1, v6 * *(_DWORD *)(a1 + 20), v7 | 0x50); if ( !v8 ) return 1LL; goto LABEL_8; } v9 = my_malloc(v5, v6 * *(_DWORD *)(a1 + 20), v7 | 0x10); if ( v9 ) { v8 = v9; memcpy(v9, *(_QWORD *)a1, (unsigned int)(*(_DWORD *)(a1 + 8) * *(_DWORD *)(a1 + 20))); *(_QWORD *)(a1 + 32) &= 0xFFFFFEFFuLL; LABEL_8: *(_QWORD *)a1 = v8; *(_DWORD *)(a1 + 12) = v6; } return 0LL; }
allocate_dynamic: CMP dword ptr [RDI + 0xc],ESI JBE 0x00144b05 XOR EAX,EAX RET LAB_00144b05: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV EBX,ESI MOV R14,RDI MOV ECX,dword ptr [RDI + 0x10] MOV EDI,dword ptr [RDI + 0x18] ADD EBX,ECX MOV EAX,EBX XOR EDX,EDX DIV ECX SUB EBX,EDX MOV RCX,qword ptr [R14 + 0x20] BT ECX,0x8 JC 0x00144b4d MOV RSI,qword ptr [R14] MOV EDX,dword ptr [R14 + 0x14] IMUL EDX,EBX OR RCX,0x50 CALL 0x001453f0 MOV R15,RAX TEST RAX,RAX JNZ 0x00144b85 MOV AL,0x1 JMP 0x00144b8e LAB_00144b4d: MOV ESI,dword ptr [R14 + 0x14] IMUL ESI,EBX OR RCX,0x10 MOV RDX,RCX CALL 0x001452cd TEST RAX,RAX JZ 0x00144b8c MOV R15,RAX MOV RSI,qword ptr [R14] MOV EDX,dword ptr [R14 + 0x14] IMUL EDX,dword ptr [R14 + 0x8] MOV RDI,RAX CALL 0x00126290 MOV EAX,0xfffffeff AND qword ptr [R14 + 0x20],RAX LAB_00144b85: MOV qword ptr [R14],R15 MOV dword ptr [R14 + 0xc],EBX LAB_00144b8c: XOR EAX,EAX LAB_00144b8e: ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
int8 allocate_dynamic(long *param_1,uint param_2) { ulong uVar1; void *__dest; int iVar2; if (param_2 < *(uint *)((long)param_1 + 0xc)) { return 0; } param_2 = param_2 + *(uint *)(param_1 + 2); iVar2 = param_2 - param_2 % *(uint *)(param_1 + 2); uVar1 = param_1[4]; if (((uint)uVar1 >> 8 & 1) == 0) { __dest = (void *)my_realloc((int)param_1[3],*param_1,*(int *)((long)param_1 + 0x14) * iVar2, uVar1 | 0x50); if (__dest == (void *)0x0) { return 1; } } else { __dest = (void *)my_malloc((int)param_1[3],*(int *)((long)param_1 + 0x14) * iVar2,uVar1 | 0x10); if (__dest == (void *)0x0) { return 0; } memcpy(__dest,(void *)*param_1,(ulong)(uint)(*(int *)((long)param_1 + 0x14) * (int)param_1[1])); param_1[4] = param_1[4] & 0xfffffeff; } *param_1 = (long)__dest; *(int *)((long)param_1 + 0xc) = iVar2; return 0; }
31,139
SchemaConverter::_not_strings(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&)::TrieNode::insert(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/json-schema-to-grammar.cpp
void insert(const std::string & string) { auto node = this; for (char c : string) { node = &node->children[c]; } node->is_end_of_string = true; }
O3
cpp
SchemaConverter::_not_strings(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&)::TrieNode::insert(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rax movq 0x8(%rsi), %r14 testq %r14, %r14 je 0xa201c movq (%rsi), %r15 xorl %r12d, %r12d leaq 0x7(%rsp), %rbx movb (%r15,%r12), %cl movb %cl, 0x7(%rsp) movq %rax, %rdi movq %rbx, %rsi callq 0xa202c incq %r12 cmpq %r12, %r14 jne 0xa2001 movb $0x1, 0x30(%rax) addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
_ZZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS6_EEEN8TrieNode6insertERKS6_: push r15 push r14 push r12 push rbx push rax mov rax, rdi mov r14, [rsi+8] test r14, r14 jz short loc_A201C mov r15, [rsi] xor r12d, r12d lea rbx, [rsp+28h+var_21] loc_A2001: mov cl, [r15+r12] mov [rsp+28h+var_21], cl mov rdi, rax mov rsi, rbx call _ZNSt3mapIcZN15SchemaConverter12_not_stringsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS7_EEE8TrieNodeSt4lessIcESaISt4pairIKcSC_EEEixERSG_; std::map<char,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode,std::less<char>,std::allocator<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>>::operator[](char const&) inc r12 cmp r14, r12 jnz short loc_A2001 loc_A201C: mov byte ptr [rax+30h], 1 add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
long long SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode::insert( long long a1, long long *a2) { long long v2; // rax long long result; // rax long long v4; // r14 long long v5; // r15 long long i; // r12 _BYTE v7[33]; // [rsp+1h] [rbp-21h] BYREF v7[0] = HIBYTE(v2); result = a1; v4 = a2[1]; if ( v4 ) { v5 = *a2; for ( i = 0LL; i != v4; ++i ) { v7[0] = *(_BYTE *)(v5 + i); result = std::map<char,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode,std::less<char>,std::allocator<std::pair<char const,SchemaConverter::_not_strings(std::vector<std::string> const&)::TrieNode>>>::operator[]( result, v7); } } *(_BYTE *)(result + 48) = 1; return result; }
string_const&): PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV RAX,RDI MOV R14,qword ptr [RSI + 0x8] TEST R14,R14 JZ 0x001a201c MOV R15,qword ptr [RSI] XOR R12D,R12D LEA RBX,[RSP + 0x7] LAB_001a2001: MOV CL,byte ptr [R15 + R12*0x1] MOV byte ptr [RSP + 0x7],CL MOV RDI,RAX MOV RSI,RBX CALL 0x001a202c INC R12 CMP R14,R12 JNZ 0x001a2001 LAB_001a201c: MOV byte ptr [RAX + 0x30],0x1 ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
/* SchemaConverter::_not_strings(std::vector<std::__cxx11::string, std::allocator<std::__cxx11::string > > const&)::TrieNode::insert(std::__cxx11::string const&) */ void SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11:: string>>const&)::TrieNode::insert(std::__cxx11::string_const__ (map<char,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode,std::less<char>,std::allocator<std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>>> *param_1,long *param_2) { long lVar1; long lVar2; int8 in_RAX; long lVar3; int8 uStack_28; lVar1 = param_2[1]; if (lVar1 != 0) { lVar2 = *param_2; lVar3 = 0; uStack_28 = in_RAX; do { uStack_28 = CONCAT17(*(int1 *)(lVar2 + lVar3),(int7)uStack_28); param_1 = (map<char,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode,std::less<char>,std::allocator<std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>>> *)std:: map<char,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode,std::less<char>,std::allocator<std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>>> ::operator[](param_1,(char *)((long)&uStack_28 + 7)); lVar3 = lVar3 + 1; } while (lVar1 != lVar3); } param_1[0x30] = (map<char,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode,std::less<char>,std::allocator<std::pair<char_const,SchemaConverter::_not_strings(std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>const&)::TrieNode>>> )0x1; return; }
31,140
nglog::tools::SafeFNMatch_(char const*, unsigned long, char const*, unsigned long)
ng-log[P]ng-log/src/vlog_is_on.cc
NGLOG_NO_EXPORT bool SafeFNMatch_(const char* pattern, size_t patt_len, const char* str, size_t str_len) { size_t p = 0; size_t s = 0; while (true) { if (p == patt_len && s == str_len) return true; if (p == patt_len) return false; if (s == str_len) return p + 1 == patt_len && pattern[p] == '*'; if (pattern[p] == str[s] || pattern[p] == '?') { p += 1; s += 1; continue; } if (pattern[p] == '*') { if (p + 1 == patt_len) return true; do { if (SafeFNMatch_(pattern + (p + 1), patt_len - (p + 1), str + s, str_len - s)) { return true; } s += 1; } while (s != str_len); return false; } return false; } }
O0
cpp
nglog::tools::SafeFNMatch_(char const*, unsigned long, char const*, unsigned long): pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq $0x0, -0x30(%rbp) movq $0x0, -0x38(%rbp) movq -0x30(%rbp), %rax cmpq -0x18(%rbp), %rax jne 0x4bb15 movq -0x38(%rbp), %rax cmpq -0x28(%rbp), %rax jne 0x4bb15 movb $0x1, -0x1(%rbp) jmp 0x4bc37 movq -0x30(%rbp), %rax cmpq -0x18(%rbp), %rax jne 0x4bb28 movb $0x0, -0x1(%rbp) jmp 0x4bc37 movq -0x38(%rbp), %rax cmpq -0x28(%rbp), %rax jne 0x4bb67 movq -0x30(%rbp), %rcx addq $0x1, %rcx xorl %eax, %eax cmpq -0x18(%rbp), %rcx movb %al, -0x39(%rbp) jne 0x4bb5a movq -0x10(%rbp), %rax movq -0x30(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0x2a, %eax sete %al movb %al, -0x39(%rbp) movb -0x39(%rbp), %al andb $0x1, %al movb %al, -0x1(%rbp) jmp 0x4bc37 movq -0x10(%rbp), %rax movq -0x30(%rbp), %rcx movsbl (%rax,%rcx), %eax movq -0x20(%rbp), %rcx movq -0x38(%rbp), %rdx movsbl (%rcx,%rdx), %ecx cmpl %ecx, %eax je 0x4bb94 movq -0x10(%rbp), %rax movq -0x30(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0x3f, %eax jne 0x4bbb1 movq -0x30(%rbp), %rax addq $0x1, %rax movq %rax, -0x30(%rbp) movq -0x38(%rbp), %rax addq $0x1, %rax movq %rax, -0x38(%rbp) jmp 0x4baf8 movq -0x10(%rbp), %rax movq -0x30(%rbp), %rcx movsbl (%rax,%rcx), %eax cmpl $0x2a, %eax jne 0x4bc33 movq -0x30(%rbp), %rax addq $0x1, %rax cmpq -0x18(%rbp), %rax jne 0x4bbd6 movb $0x1, -0x1(%rbp) jmp 0x4bc37 jmp 0x4bbd8 movq -0x10(%rbp), %rdi movq -0x30(%rbp), %rax addq $0x1, %rax addq %rax, %rdi movq -0x18(%rbp), %rsi movq -0x30(%rbp), %rax addq $0x1, %rax subq %rax, %rsi movq -0x20(%rbp), %rdx addq -0x38(%rbp), %rdx movq -0x28(%rbp), %rcx subq -0x38(%rbp), %rcx callq 0x4bad0 testb $0x1, %al jne 0x4bc11 jmp 0x4bc17 movb $0x1, -0x1(%rbp) jmp 0x4bc37 movq -0x38(%rbp), %rax addq $0x1, %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax cmpq -0x28(%rbp), %rax jne 0x4bbd8 movb $0x0, -0x1(%rbp) jmp 0x4bc37 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al andb $0x1, %al addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ZN5nglog5tools12SafeFNMatch_EPKcmS2_m: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_30], 0 mov [rbp+var_38], 0 loc_4BAF8: mov rax, [rbp+var_30] cmp rax, [rbp+var_18] jnz short loc_4BB15 mov rax, [rbp+var_38] cmp rax, [rbp+var_28] jnz short loc_4BB15 mov [rbp+var_1], 1 jmp loc_4BC37 loc_4BB15: mov rax, [rbp+var_30] cmp rax, [rbp+var_18] jnz short loc_4BB28 mov [rbp+var_1], 0 jmp loc_4BC37 loc_4BB28: mov rax, [rbp+var_38] cmp rax, [rbp+var_28] jnz short loc_4BB67 mov rcx, [rbp+var_30] add rcx, 1 xor eax, eax cmp rcx, [rbp+var_18] mov [rbp+var_39], al jnz short loc_4BB5A mov rax, [rbp+var_10] mov rcx, [rbp+var_30] movsx eax, byte ptr [rax+rcx] cmp eax, 2Ah ; '*' setz al mov [rbp+var_39], al loc_4BB5A: mov al, [rbp+var_39] and al, 1 mov [rbp+var_1], al jmp loc_4BC37 loc_4BB67: mov rax, [rbp+var_10] mov rcx, [rbp+var_30] movsx eax, byte ptr [rax+rcx] mov rcx, [rbp+var_20] mov rdx, [rbp+var_38] movsx ecx, byte ptr [rcx+rdx] cmp eax, ecx jz short loc_4BB94 mov rax, [rbp+var_10] mov rcx, [rbp+var_30] movsx eax, byte ptr [rax+rcx] cmp eax, 3Fh ; '?' jnz short loc_4BBB1 loc_4BB94: mov rax, [rbp+var_30] add rax, 1 mov [rbp+var_30], rax mov rax, [rbp+var_38] add rax, 1 mov [rbp+var_38], rax jmp loc_4BAF8 loc_4BBB1: mov rax, [rbp+var_10] mov rcx, [rbp+var_30] movsx eax, byte ptr [rax+rcx] cmp eax, 2Ah ; '*' jnz short loc_4BC33 mov rax, [rbp+var_30] add rax, 1 cmp rax, [rbp+var_18] jnz short loc_4BBD6 mov [rbp+var_1], 1 jmp short loc_4BC37 loc_4BBD6: jmp short $+2 loc_4BBD8: mov rdi, [rbp+var_10] mov rax, [rbp+var_30] add rax, 1 add rdi, rax; this mov rsi, [rbp+var_18] mov rax, [rbp+var_30] add rax, 1 sub rsi, rax; char * mov rdx, [rbp+var_20] add rdx, [rbp+var_38]; unsigned __int64 mov rcx, [rbp+var_28] sub rcx, [rbp+var_38]; char * call _ZN5nglog5tools12SafeFNMatch_EPKcmS2_m; nglog::tools::SafeFNMatch_(char const*,ulong,char const*,ulong) test al, 1 jnz short loc_4BC11 jmp short loc_4BC17 loc_4BC11: mov [rbp+var_1], 1 jmp short loc_4BC37 loc_4BC17: mov rax, [rbp+var_38] add rax, 1 mov [rbp+var_38], rax mov rax, [rbp+var_38] cmp rax, [rbp+var_28] jnz short loc_4BBD8 mov [rbp+var_1], 0 jmp short loc_4BC37 loc_4BC33: mov [rbp+var_1], 0 loc_4BC37: mov al, [rbp+var_1] and al, 1 add rsp, 40h pop rbp retn
char nglog::tools::SafeFNMatch_( nglog::tools *this, const char *a2, long long a3, const char *a4, unsigned long long a5) { bool v6; // [rsp+7h] [rbp-39h] const char *i; // [rsp+8h] [rbp-38h] const char *v8; // [rsp+10h] [rbp-30h] v8 = 0LL; for ( i = 0LL; ; ++i ) { if ( v8 == a2 && i == a4 ) return 1; if ( v8 == a2 ) return 0; if ( i == a4 ) { v6 = 0; if ( v8 + 1 == a2 ) return v8[(_QWORD)this] == 42; return v6; } if ( v8[(_QWORD)this] != i[a3] && v8[(_QWORD)this] != 63 ) break; ++v8; } if ( v8[(_QWORD)this] != 42 ) return 0; if ( v8 + 1 == a2 ) return 1; do { if ( (nglog::tools::SafeFNMatch_( (nglog::tools *)((char *)this + (_QWORD)(v8 + 1)), (const char *)(a2 - (v8 + 1)), (unsigned long long)&i[a3], (const char *)(a4 - i), a5) & 1) != 0 ) return 1; ++i; } while ( i != a4 ); return 0; }
SafeFNMatch_: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],0x0 MOV qword ptr [RBP + -0x38],0x0 LAB_0014baf8: MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x18] JNZ 0x0014bb15 MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x28] JNZ 0x0014bb15 MOV byte ptr [RBP + -0x1],0x1 JMP 0x0014bc37 LAB_0014bb15: MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x18] JNZ 0x0014bb28 MOV byte ptr [RBP + -0x1],0x0 JMP 0x0014bc37 LAB_0014bb28: MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x28] JNZ 0x0014bb67 MOV RCX,qword ptr [RBP + -0x30] ADD RCX,0x1 XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x18] MOV byte ptr [RBP + -0x39],AL JNZ 0x0014bb5a MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x30] MOVSX EAX,byte ptr [RAX + RCX*0x1] CMP EAX,0x2a SETZ AL MOV byte ptr [RBP + -0x39],AL LAB_0014bb5a: MOV AL,byte ptr [RBP + -0x39] AND AL,0x1 MOV byte ptr [RBP + -0x1],AL JMP 0x0014bc37 LAB_0014bb67: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x30] MOVSX EAX,byte ptr [RAX + RCX*0x1] MOV RCX,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x38] MOVSX ECX,byte ptr [RCX + RDX*0x1] CMP EAX,ECX JZ 0x0014bb94 MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x30] MOVSX EAX,byte ptr [RAX + RCX*0x1] CMP EAX,0x3f JNZ 0x0014bbb1 LAB_0014bb94: MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x1 MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x38] ADD RAX,0x1 MOV qword ptr [RBP + -0x38],RAX JMP 0x0014baf8 LAB_0014bbb1: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x30] MOVSX EAX,byte ptr [RAX + RCX*0x1] CMP EAX,0x2a JNZ 0x0014bc33 MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x1 CMP RAX,qword ptr [RBP + -0x18] JNZ 0x0014bbd6 MOV byte ptr [RBP + -0x1],0x1 JMP 0x0014bc37 LAB_0014bbd6: JMP 0x0014bbd8 LAB_0014bbd8: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x1 ADD RDI,RAX MOV RSI,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x1 SUB RSI,RAX MOV RDX,qword ptr [RBP + -0x20] ADD RDX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x28] SUB RCX,qword ptr [RBP + -0x38] CALL 0x0014bad0 TEST AL,0x1 JNZ 0x0014bc11 JMP 0x0014bc17 LAB_0014bc11: MOV byte ptr [RBP + -0x1],0x1 JMP 0x0014bc37 LAB_0014bc17: MOV RAX,qword ptr [RBP + -0x38] ADD RAX,0x1 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x38] CMP RAX,qword ptr [RBP + -0x28] JNZ 0x0014bbd8 MOV byte ptr [RBP + -0x1],0x0 JMP 0x0014bc37 LAB_0014bc33: MOV byte ptr [RBP + -0x1],0x0 LAB_0014bc37: MOV AL,byte ptr [RBP + -0x1] AND AL,0x1 ADD RSP,0x40 POP RBP RET
/* nglog::tools::SafeFNMatch_(char const*, unsigned long, char const*, unsigned long) */ bool nglog::tools::SafeFNMatch_(char *param_1,ulong param_2,char *param_3,ulong param_4) { ulong uVar1; bool local_41; ulong local_40; ulong local_38; bool local_9; local_38 = 0; local_40 = 0; while( true ) { if ((local_38 == param_2) && (local_40 == param_4)) { return true; } if (local_38 == param_2) { return false; } if (local_40 == param_4) break; if ((param_1[local_38] != param_3[local_40]) && (param_1[local_38] != '?')) { if (param_1[local_38] == '*') { if (local_38 + 1 == param_2) { local_9 = true; } else { do { uVar1 = SafeFNMatch_(param_1 + local_38 + 1,param_2 - (local_38 + 1),param_3 + local_40, param_4 - local_40); if ((uVar1 & 1) != 0) { return true; } local_40 = local_40 + 1; } while (local_40 != param_4); local_9 = false; } } else { local_9 = false; } return local_9; } local_38 = local_38 + 1; local_40 = local_40 + 1; } local_41 = false; if (local_38 + 1 == param_2) { local_41 = param_1[local_38] == '*'; } return local_41; }
31,141
nglog::SetVLOGLevel(char const*, int)
ng-log[P]ng-log/src/vlog_is_on.cc
int SetVLOGLevel(const char* module_pattern, int log_level) { int result = FLAGS_v; size_t const pattern_len = strlen(module_pattern); bool found = false; { std::lock_guard<std::mutex> l( vmodule_mutex); // protect whole read-modify-write for (const VModuleInfo* info = vmodule_list; info != nullptr; info = info->next) { if (info->module_pattern == module_pattern) { if (!found) { result = info->vlog_level; found = true; } info->vlog_level = log_level; } else if (!found && SafeFNMatch_(info->module_pattern.c_str(), info->module_pattern.size(), module_pattern, pattern_len)) { result = info->vlog_level; found = true; } } if (!found) { auto* info = new VModuleInfo; info->module_pattern = module_pattern; info->vlog_level = log_level; info->next = vmodule_list; vmodule_list = info; SiteFlag** item_ptr = &cached_site_list; SiteFlag* item = cached_site_list; // We traverse the list fully because the pattern can match several items // from the list. while (item) { if (SafeFNMatch_(module_pattern, pattern_len, item->base_name, item->base_len)) { // Redirect the cached value to its module override. item->level = &info->vlog_level; *item_ptr = item->next; // Remove the item from the list. } else { item_ptr = &item->next; } item = *item_ptr; } } } RAW_VLOG(1, "Set VLOG level for \"%s\" to %d", module_pattern, log_level); return result; }
O0
cpp
nglog::SetVLOGLevel(char const*, int): pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) leaq 0x2930b(%rip), %rax # 0x77d94 movl (%rax), %eax movl %eax, -0x10(%rbp) movq -0x8(%rbp), %rdi callq 0x92d0 movq %rax, -0x18(%rbp) movb $0x0, -0x19(%rbp) leaq -0x28(%rbp), %rdi leaq 0x392e6(%rip), %rsi # 0x87d90 callq 0x1ac60 movq 0x392a2(%rip), %rax # 0x87d58 movq %rax, -0x30(%rbp) cmpq $0x0, -0x30(%rbp) je 0x4eb7d movq -0x30(%rbp), %rdi movq -0x8(%rbp), %rsi callq 0x1aeb0 movb %al, -0x5e(%rbp) jmp 0x4ead7 movb -0x5e(%rbp), %al testb $0x1, %al jne 0x4eae0 jmp 0x4eb1c testb $0x1, -0x19(%rbp) jne 0x4eb10 movq -0x30(%rbp), %rax movl 0x20(%rax), %eax movl %eax, -0x10(%rbp) movb $0x1, -0x19(%rbp) jmp 0x4eb10 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x38(%rbp) movl %eax, -0x3c(%rbp) leaq -0x28(%rbp), %rdi callq 0x1ac90 jmp 0x4ece8 movl -0xc(%rbp), %ecx movq -0x30(%rbp), %rax movl %ecx, 0x20(%rax) jmp 0x4eb6a testb $0x1, -0x19(%rbp) jne 0x4eb68 movq -0x30(%rbp), %rdi callq 0x92a0 movq %rax, -0x68(%rbp) movq -0x30(%rbp), %rdi callq 0x94d0 movq -0x68(%rbp), %rdi movq %rax, %rsi movq -0x8(%rbp), %rdx movq -0x18(%rbp), %rcx callq 0x4e8f0 movb %al, -0x5f(%rbp) jmp 0x4eb51 movb -0x5f(%rbp), %al testb $0x1, %al jne 0x4eb5a jmp 0x4eb68 movq -0x30(%rbp), %rax movl 0x20(%rax), %eax movl %eax, -0x10(%rbp) movb $0x1, -0x19(%rbp) jmp 0x4eb6a jmp 0x4eb6c movq -0x30(%rbp), %rax movq 0x28(%rax), %rax movq %rax, -0x30(%rbp) jmp 0x4eaba testb $0x1, -0x19(%rbp) jne 0x4ec5a movl $0x30, %edi callq 0xb9b0 movq %rax, -0x70(%rbp) jmp 0x4eb97 movq -0x70(%rbp), %rdi callq 0x4f1a0 movq -0x70(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x8(%rbp), %rsi movq -0x48(%rbp), %rdi callq 0x99e0 jmp 0x4ebb7 movl -0xc(%rbp), %ecx movq -0x48(%rbp), %rax movl %ecx, 0x20(%rax) movq 0x39190(%rip), %rcx # 0x87d58 movq -0x48(%rbp), %rax movq %rcx, 0x28(%rax) movq -0x48(%rbp), %rax movq %rax, 0x3917d(%rip) # 0x87d58 leaq 0x3917e(%rip), %rax # 0x87d60 movq %rax, -0x50(%rbp) movq 0x39173(%rip), %rax # 0x87d60 movq %rax, -0x58(%rbp) cmpq $0x0, -0x58(%rbp) je 0x4ec58 movq -0x8(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x58(%rbp), %rax movq 0x8(%rax), %rdx movq 0x10(%rax), %rcx callq 0x4e8f0 movb %al, -0x71(%rbp) jmp 0x4ec16 movb -0x71(%rbp), %al testb $0x1, %al jne 0x4ec1f jmp 0x4ec3f movq -0x48(%rbp), %rcx addq $0x20, %rcx movq -0x58(%rbp), %rax movq %rcx, (%rax) movq -0x58(%rbp), %rax movq 0x18(%rax), %rcx movq -0x50(%rbp), %rax movq %rcx, (%rax) jmp 0x4ec4b movq -0x58(%rbp), %rax addq $0x18, %rax movq %rax, -0x50(%rbp) movq -0x50(%rbp), %rax movq (%rax), %rax movq %rax, -0x58(%rbp) jmp 0x4ebf1 jmp 0x4ec5a leaq -0x28(%rbp), %rdi callq 0x1ac90 movl $0x1, -0x5c(%rbp) cmpq $0x0, 0x390f6(%rip) # 0x87d68 jne 0x4ec96 movl -0x5c(%rbp), %ecx leaq 0x390ea(%rip), %rdi # 0x87d68 leaq 0x2910f(%rip), %rsi # 0x77d94 leaq 0x3847(%rip), %rdx # 0x524d3 callq 0x4ed00 movb %al, -0x72(%rbp) jmp 0x4eca8 movq 0x390cb(%rip), %rax # 0x87d68 movl (%rax), %eax cmpl -0x5c(%rbp), %eax setge %al movb %al, -0x72(%rbp) movb -0x72(%rbp), %al andb $0x1, %al movb %al, -0x5d(%rbp) testb $0x1, -0x5d(%rbp) je 0x4ecda movq -0x8(%rbp), %r8 movl -0xc(%rbp), %r9d xorl %edi, %edi leaq 0x380c(%rip), %rsi # 0x524d3 movl $0xc5, %edx leaq 0x384a(%rip), %rcx # 0x5251d movb $0x0, %al callq 0x4a2a0 jmp 0x4ecdc movl -0x10(%rbp), %eax addq $0x80, %rsp popq %rbp retq movq -0x38(%rbp), %rdi callq 0x9cc0 nopw %cs:(%rax,%rax)
_ZN5nglog12SetVLOGLevelEPKci: push rbp mov rbp, rsp sub rsp, 80h mov [rbp+var_8], rdi mov [rbp+var_C], esi lea rax, _ZN3fLI7FLAGS_vE; fLI::FLAGS_v mov eax, [rax] mov [rbp+var_10], eax mov rdi, [rbp+var_8] call _strlen mov [rbp+var_18], rax mov [rbp+var_19], 0 lea rdi, [rbp+var_28] lea rsi, _ZN5nglogL13vmodule_mutexE; nglog::vmodule_mutex call _ZNSt10lock_guardISt5mutexEC2ERS0_; std::lock_guard<std::mutex>::lock_guard(std::mutex&) mov rax, cs:_ZN5nglogL12vmodule_listE; nglog::vmodule_list mov [rbp+var_30], rax loc_4EABA: cmp [rbp+var_30], 0 jz loc_4EB7D mov rdi, [rbp+var_30] mov rsi, [rbp+var_8] call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) mov [rbp+var_5E], al jmp short $+2 loc_4EAD7: mov al, [rbp+var_5E] test al, 1 jnz short loc_4EAE0 jmp short loc_4EB1C loc_4EAE0: test [rbp+var_19], 1 jnz short loc_4EB10 mov rax, [rbp+var_30] mov eax, [rax+20h] mov [rbp+var_10], eax mov [rbp+var_19], 1 jmp short loc_4EB10 mov rcx, rax mov eax, edx mov [rbp+var_38], rcx mov [rbp+var_3C], eax lea rdi, [rbp+var_28] call _ZNSt10lock_guardISt5mutexED2Ev; std::lock_guard<std::mutex>::~lock_guard() jmp loc_4ECE8 loc_4EB10: mov ecx, [rbp+var_C] mov rax, [rbp+var_30] mov [rax+20h], ecx jmp short loc_4EB6A loc_4EB1C: test [rbp+var_19], 1 jnz short loc_4EB68 mov rdi, [rbp+var_30] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void) mov [rbp+var_68], rax mov rdi, [rbp+var_30] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void) mov rdi, [rbp+var_68]; this mov rsi, rax; char * mov rdx, [rbp+var_8]; unsigned __int64 mov rcx, [rbp+var_18]; char * call _ZN5nglog5tools12SafeFNMatch_EPKcmS2_m; nglog::tools::SafeFNMatch_(char const*,ulong,char const*,ulong) mov [rbp+var_5F], al jmp short $+2 loc_4EB51: mov al, [rbp+var_5F] test al, 1 jnz short loc_4EB5A jmp short loc_4EB68 loc_4EB5A: mov rax, [rbp+var_30] mov eax, [rax+20h] mov [rbp+var_10], eax mov [rbp+var_19], 1 loc_4EB68: jmp short $+2 loc_4EB6A: jmp short $+2 loc_4EB6C: mov rax, [rbp+var_30] mov rax, [rax+28h] mov [rbp+var_30], rax jmp loc_4EABA loc_4EB7D: test [rbp+var_19], 1 jnz loc_4EC5A mov edi, 30h ; '0'; unsigned __int64 call _Znwm; operator new(ulong) mov [rbp+var_70], rax jmp short $+2 loc_4EB97: mov rdi, [rbp+var_70]; this call _ZN5nglog11VModuleInfoC2Ev; nglog::VModuleInfo::VModuleInfo(void) mov rax, [rbp+var_70] mov [rbp+var_48], rax mov rsi, [rbp+var_8] mov rdi, [rbp+var_48] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc; std::string::operator=(char const*) jmp short $+2 loc_4EBB7: mov ecx, [rbp+var_C] mov rax, [rbp+var_48] mov [rax+20h], ecx mov rcx, cs:_ZN5nglogL12vmodule_listE; nglog::vmodule_list mov rax, [rbp+var_48] mov [rax+28h], rcx mov rax, [rbp+var_48] mov cs:_ZN5nglogL12vmodule_listE, rax; nglog::vmodule_list lea rax, _ZN5nglogL16cached_site_listE; nglog::cached_site_list mov [rbp+var_50], rax mov rax, cs:_ZN5nglogL16cached_site_listE; nglog::cached_site_list mov [rbp+var_58], rax loc_4EBF1: cmp [rbp+var_58], 0 jz short loc_4EC58 mov rdi, [rbp+var_8]; this mov rsi, [rbp+var_18]; char * mov rax, [rbp+var_58] mov rdx, [rax+8]; unsigned __int64 mov rcx, [rax+10h]; char * call _ZN5nglog5tools12SafeFNMatch_EPKcmS2_m; nglog::tools::SafeFNMatch_(char const*,ulong,char const*,ulong) mov [rbp+var_71], al jmp short $+2 loc_4EC16: mov al, [rbp+var_71] test al, 1 jnz short loc_4EC1F jmp short loc_4EC3F loc_4EC1F: mov rcx, [rbp+var_48] add rcx, 20h ; ' ' mov rax, [rbp+var_58] mov [rax], rcx mov rax, [rbp+var_58] mov rcx, [rax+18h] mov rax, [rbp+var_50] mov [rax], rcx jmp short loc_4EC4B loc_4EC3F: mov rax, [rbp+var_58] add rax, 18h mov [rbp+var_50], rax loc_4EC4B: mov rax, [rbp+var_50] mov rax, [rax] mov [rbp+var_58], rax jmp short loc_4EBF1 loc_4EC58: jmp short $+2 loc_4EC5A: lea rdi, [rbp+var_28] call _ZNSt10lock_guardISt5mutexED2Ev; std::lock_guard<std::mutex>::~lock_guard() mov [rbp+var_5C], 1 cmp cs:_ZZN5nglog12SetVLOGLevelEPKciE8vlocal__, 0; nglog::SetVLOGLevel(char const*,int)::vlocal__ jnz short loc_4EC96 mov ecx, [rbp+var_5C] lea rdi, _ZZN5nglog12SetVLOGLevelEPKciE8vlocal__; nglog::SetVLOGLevel(char const*,int)::vlocal__ lea rsi, _ZN3fLI7FLAGS_vE; fLI::FLAGS_v lea rdx, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... call _ZN5nglog15InitializeVLOG3EPNS_8SiteFlagEPiPKci; nglog::InitializeVLOG3(nglog::SiteFlag *,int *,char const*,int) mov [rbp+var_72], al jmp short loc_4ECA8 loc_4EC96: mov rax, cs:_ZZN5nglog12SetVLOGLevelEPKciE8vlocal__; nglog::SetVLOGLevel(char const*,int)::vlocal__ mov eax, [rax] cmp eax, [rbp+var_5C] setnl al mov [rbp+var_72], al loc_4ECA8: mov al, [rbp+var_72] and al, 1 mov [rbp+var_5D], al test [rbp+var_5D], 1 jz short loc_4ECDA mov r8, [rbp+var_8] mov r9d, [rbp+var_C] xor edi, edi lea rsi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"... mov edx, 0C5h lea rcx, aSetVlogLevelFo; "Set VLOG level for \"%s\" to %d" mov al, 0 call _ZN5nglog6RawLogENS_11LogSeverityEPKciS2_z; nglog::RawLog(nglog::LogSeverity,char const*,int,char const*,...) loc_4ECDA: jmp short $+2 loc_4ECDC: mov eax, [rbp+var_10] add rsp, 80h pop rbp retn loc_4ECE8: mov rdi, [rbp+var_38] call __Unwind_Resume
long long nglog::SetVLOGLevel(nglog *this, const char *a2) { const char *v2; // rax unsigned long long v3; // r8 unsigned long long v4; // r8 char v6; // [rsp+Eh] [rbp-72h] nglog::VModuleInfo *v7; // [rsp+10h] [rbp-70h] nglog::tools *v8; // [rsp+18h] [rbp-68h] long long j; // [rsp+28h] [rbp-58h] long long *v10; // [rsp+30h] [rbp-50h] long long i; // [rsp+50h] [rbp-30h] std::mutex *v12; // [rsp+58h] [rbp-28h] BYREF char v13; // [rsp+67h] [rbp-19h] char *v14; // [rsp+68h] [rbp-18h] unsigned int v15; // [rsp+70h] [rbp-10h] int v16; // [rsp+74h] [rbp-Ch] nglog::tools *v17; // [rsp+78h] [rbp-8h] v17 = this; v16 = (int)a2; v15 = fLI::FLAGS_v; v14 = (char *)strlen(this); v13 = 0; std::lock_guard<std::mutex>::lock_guard(&v12, (std::mutex *)&nglog::vmodule_mutex); for ( i = nglog::vmodule_list; i; i = *(_QWORD *)(i + 40) ) { if ( std::operator==<char>(i, (long long)v17) ) { if ( (v13 & 1) == 0 ) { v15 = *(_DWORD *)(i + 32); v13 = 1; } *(_DWORD *)(i + 32) = v16; } else if ( (v13 & 1) == 0 ) { v8 = (nglog::tools *)std::string::c_str(i); v2 = (const char *)std::string::size(i); if ( (nglog::tools::SafeFNMatch_(v8, v2, (long long)v17, v14, v3) & 1) != 0 ) { v15 = *(_DWORD *)(i + 32); v13 = 1; } } } if ( (v13 & 1) == 0 ) { v7 = (nglog::VModuleInfo *)operator new(48LL); nglog::VModuleInfo::VModuleInfo(v7); std::string::operator=(v7, v17); *((_DWORD *)v7 + 8) = v16; *((_QWORD *)v7 + 5) = nglog::vmodule_list; nglog::vmodule_list = (long long)v7; v10 = &nglog::cached_site_list; for ( j = nglog::cached_site_list; j; j = *v10 ) { if ( (nglog::tools::SafeFNMatch_(v17, v14, *(_QWORD *)(j + 8), *(const char **)(j + 16), v4) & 1) != 0 ) { *(_QWORD *)j = (char *)v7 + 32; *v10 = *(_QWORD *)(j + 24); } else { v10 = (long long *)(j + 24); } } } std::lock_guard<std::mutex>::~lock_guard(&v12); if ( nglog::SetVLOGLevel(char const*,int)::vlocal__ ) v6 = *(_DWORD *)nglog::SetVLOGLevel(char const*,int)::vlocal__ >= 1; else v6 = nglog::InitializeVLOG3( &nglog::SetVLOGLevel(char const*,int)::vlocal__, &fLI::FLAGS_v, "/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/vlog_is_on.cc", 1LL); if ( (v6 & 1) != 0 ) nglog::RawLog( 0LL, (nglog::tools *)"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/vlog_is_on.cc", 197, (unsigned long long *)"Set VLOG level for \"%s\" to %d", (const char *)v17, v16); return v15; }
SetVLOGLevel: PUSH RBP MOV RBP,RSP SUB RSP,0x80 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI LEA RAX,[0x177d94] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x10],EAX MOV RDI,qword ptr [RBP + -0x8] CALL 0x001092d0 MOV qword ptr [RBP + -0x18],RAX MOV byte ptr [RBP + -0x19],0x0 LEA RDI,[RBP + -0x28] LEA RSI,[0x187d90] CALL 0x0011ac60 MOV RAX,qword ptr [0x00187d58] MOV qword ptr [RBP + -0x30],RAX LAB_0014eaba: CMP qword ptr [RBP + -0x30],0x0 JZ 0x0014eb7d MOV RDI,qword ptr [RBP + -0x30] MOV RSI,qword ptr [RBP + -0x8] LAB_0014eacd: CALL 0x0011aeb0 MOV byte ptr [RBP + -0x5e],AL JMP 0x0014ead7 LAB_0014ead7: MOV AL,byte ptr [RBP + -0x5e] TEST AL,0x1 JNZ 0x0014eae0 JMP 0x0014eb1c LAB_0014eae0: TEST byte ptr [RBP + -0x19],0x1 JNZ 0x0014eb10 MOV RAX,qword ptr [RBP + -0x30] MOV EAX,dword ptr [RAX + 0x20] MOV dword ptr [RBP + -0x10],EAX MOV byte ptr [RBP + -0x19],0x1 JMP 0x0014eb10 LAB_0014eb10: MOV ECX,dword ptr [RBP + -0xc] MOV RAX,qword ptr [RBP + -0x30] MOV dword ptr [RAX + 0x20],ECX JMP 0x0014eb6a LAB_0014eb1c: TEST byte ptr [RBP + -0x19],0x1 JNZ 0x0014eb68 MOV RDI,qword ptr [RBP + -0x30] CALL 0x001092a0 MOV qword ptr [RBP + -0x68],RAX MOV RDI,qword ptr [RBP + -0x30] CALL 0x001094d0 MOV RDI,qword ptr [RBP + -0x68] MOV RSI,RAX MOV RDX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RBP + -0x18] CALL 0x0014e8f0 MOV byte ptr [RBP + -0x5f],AL JMP 0x0014eb51 LAB_0014eb51: MOV AL,byte ptr [RBP + -0x5f] TEST AL,0x1 JNZ 0x0014eb5a JMP 0x0014eb68 LAB_0014eb5a: MOV RAX,qword ptr [RBP + -0x30] MOV EAX,dword ptr [RAX + 0x20] MOV dword ptr [RBP + -0x10],EAX MOV byte ptr [RBP + -0x19],0x1 LAB_0014eb68: JMP 0x0014eb6a LAB_0014eb6a: JMP 0x0014eb6c LAB_0014eb6c: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x30],RAX JMP 0x0014eaba LAB_0014eb7d: TEST byte ptr [RBP + -0x19],0x1 JNZ 0x0014ec5a MOV EDI,0x30 CALL 0x0010b9b0 MOV qword ptr [RBP + -0x70],RAX JMP 0x0014eb97 LAB_0014eb97: MOV RDI,qword ptr [RBP + -0x70] CALL 0x0014f1a0 MOV RAX,qword ptr [RBP + -0x70] MOV qword ptr [RBP + -0x48],RAX MOV RSI,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RBP + -0x48] CALL 0x001099e0 JMP 0x0014ebb7 LAB_0014ebb7: MOV ECX,dword ptr [RBP + -0xc] MOV RAX,qword ptr [RBP + -0x48] MOV dword ptr [RAX + 0x20],ECX MOV RCX,qword ptr [0x00187d58] MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [RAX + 0x28],RCX MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [0x00187d58],RAX LEA RAX,[0x187d60] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [0x00187d60] MOV qword ptr [RBP + -0x58],RAX LAB_0014ebf1: CMP qword ptr [RBP + -0x58],0x0 JZ 0x0014ec58 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x58] MOV RDX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RAX + 0x10] CALL 0x0014e8f0 LAB_0014ec11: MOV byte ptr [RBP + -0x71],AL JMP 0x0014ec16 LAB_0014ec16: MOV AL,byte ptr [RBP + -0x71] TEST AL,0x1 JNZ 0x0014ec1f JMP 0x0014ec3f LAB_0014ec1f: MOV RCX,qword ptr [RBP + -0x48] ADD RCX,0x20 MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x58] MOV RCX,qword ptr [RAX + 0x18] MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RAX],RCX JMP 0x0014ec4b LAB_0014ec3f: MOV RAX,qword ptr [RBP + -0x58] ADD RAX,0x18 MOV qword ptr [RBP + -0x50],RAX LAB_0014ec4b: MOV RAX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x58],RAX JMP 0x0014ebf1 LAB_0014ec58: JMP 0x0014ec5a LAB_0014ec5a: LEA RDI,[RBP + -0x28] CALL 0x0011ac90 MOV dword ptr [RBP + -0x5c],0x1 CMP qword ptr [0x00187d68],0x0 JNZ 0x0014ec96 MOV ECX,dword ptr [RBP + -0x5c] LEA RDI,[0x187d68] LEA RSI,[0x177d94] LEA RDX,[0x1524d3] CALL 0x0014ed00 MOV byte ptr [RBP + -0x72],AL JMP 0x0014eca8 LAB_0014ec96: MOV RAX,qword ptr [0x00187d68] MOV EAX,dword ptr [RAX] CMP EAX,dword ptr [RBP + -0x5c] SETGE AL MOV byte ptr [RBP + -0x72],AL LAB_0014eca8: MOV AL,byte ptr [RBP + -0x72] AND AL,0x1 MOV byte ptr [RBP + -0x5d],AL TEST byte ptr [RBP + -0x5d],0x1 JZ 0x0014ecda MOV R8,qword ptr [RBP + -0x8] MOV R9D,dword ptr [RBP + -0xc] XOR EDI,EDI LEA RSI,[0x1524d3] MOV EDX,0xc5 LEA RCX,[0x15251d] MOV AL,0x0 CALL 0x0014a2a0 LAB_0014ecda: JMP 0x0014ecdc LAB_0014ecdc: MOV EAX,dword ptr [RBP + -0x10] ADD RSP,0x80 POP RBP RET
/* nglog::SetVLOGLevel(char const*, int) */ int4 nglog::SetVLOGLevel(char *param_1,int param_2) { bool bVar1; byte bVar2; char *pcVar3; ulong uVar4; VModuleInfo *this; byte local_7a; int8 *local_60; int8 *local_58; VModuleInfo *local_38; lock_guard<std::mutex> local_30 [15]; byte local_21; size_t local_20; int4 local_18; int local_14; char *local_10; local_18 = fLI::FLAGS_v; local_14 = param_2; local_10 = param_1; local_20 = strlen(param_1); local_21 = 0; std::lock_guard<std::mutex>::lock_guard(local_30,(mutex *)vmodule_mutex); for (local_38 = vmodule_list; local_38 != (VModuleInfo *)0x0; local_38 = *(VModuleInfo **)(local_38 + 0x28)) { /* try { // try from 0014eacd to 0014ec10 has its CatchHandler @ 0014eaf6 */ bVar1 = std::operator==((string *)local_38,local_10); if (bVar1) { if ((local_21 & 1) == 0) { local_18 = *(int4 *)(local_38 + 0x20); local_21 = 1; } *(int *)(local_38 + 0x20) = local_14; } else if ((local_21 & 1) == 0) { pcVar3 = (char *)std::__cxx11::string::c_str(); uVar4 = std::__cxx11::string::size(); bVar2 = tools::SafeFNMatch_(pcVar3,uVar4,local_10,local_20); if ((bVar2 & 1) != 0) { local_18 = *(int4 *)(local_38 + 0x20); local_21 = 1; } } } if ((local_21 & 1) == 0) { this = (VModuleInfo *)operator_new(0x30); VModuleInfo::VModuleInfo(this); std::__cxx11::string::operator=((string *)this,local_10); *(int *)(this + 0x20) = local_14; *(VModuleInfo **)(this + 0x28) = vmodule_list; local_58 = &cached_site_list; local_60 = cached_site_list; vmodule_list = this; while (local_60 != (int8 *)0x0) { bVar2 = tools::SafeFNMatch_(local_10,local_20,(char *)local_60[1],local_60[2]); if ((bVar2 & 1) == 0) { local_58 = local_60 + 3; } else { *local_60 = this + 0x20; *local_58 = local_60[3]; } local_60 = (int8 *)*local_58; } } std::lock_guard<std::mutex>::~lock_guard(local_30); if (SetVLOGLevel(char_const*,int)::vlocal__ == (int *)0x0) { local_7a = InitializeVLOG3((SiteFlag *)&SetVLOGLevel(char_const*,int)::vlocal__,&fLI::FLAGS_v, "/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/vlog_is_on.cc" ,1); } else { local_7a = 0 < *SetVLOGLevel(char_const*,int)::vlocal__; } if ((local_7a & 1) != 0) { RawLog(0,"/workspace/llm4binary/github/2025_star3/ng-log[P]ng-log/src/vlog_is_on.cc",0xc5, "Set VLOG level for \"%s\" to %d",local_10,local_14); } return local_18; }
31,142
get_record_position
eloqsql/storage/maria/ma_blockrec.c
static uchar *get_record_position(MARIA_SHARE *share, uchar *buff, uint record_number, uchar **end_of_data) { uint block_size= share->block_size; uint number_of_records= (uint) buff[DIR_COUNT_OFFSET]; uchar *dir; uchar *data; uint offset, length; #ifdef SANITY_CHECKS if (record_number >= number_of_records || record_number > ((block_size - PAGE_HEADER_SIZE(share) - PAGE_SUFFIX_SIZE) / DIR_ENTRY_SIZE)) { DBUG_PRINT("error", ("Wrong row number: record_number: %u number_of_records: %u", record_number, number_of_records)); return 0; } #endif dir= dir_entry_pos(buff, block_size, record_number); offset= uint2korr(dir); length= uint2korr(dir + 2); #ifdef SANITY_CHECKS if (offset < PAGE_HEADER_SIZE(share) || offset + length > (block_size - number_of_records * DIR_ENTRY_SIZE - PAGE_SUFFIX_SIZE)) { DBUG_PRINT("error", ("Wrong row position: record_number: %u offset: %u " "length: %u number_of_records: %u", record_number, offset, length, number_of_records)); return 0; } #endif data= buff + offset; *end_of_data= data + length; return data; }
O3
c
get_record_position: pushq %rbp movq %rsp, %rbp movq %rsi, %rax movzbl 0x8(%rsi), %esi cmpl %edx, %esi jbe 0x4d40f movl 0x7bc(%rdi), %r8d movl 0xc18(%rdi), %edi movl %r8d, %r9d subl %edi, %r9d addl $-0x10, %r9d shrl $0x2, %r9d cmpl %edx, %r9d jb 0x4d40f addl $0xc, %edi leaq (%rax,%r8), %r9 shll $0x2, %edx subq %rdx, %r9 movzwl -0x8(%r9), %edx cmpl %edx, %edi ja 0x4d40f movzwl -0x6(%r9), %edi leal (%rdi,%rdx), %r9d shll $0x2, %esi subl %esi, %r8d addl $-0x4, %r8d cmpl %r8d, %r9d jbe 0x4d413 xorl %eax, %eax popq %rbp retq movl %edx, %edx addq %rdx, %rax movl %edi, %edx addq %rax, %rdx movq %rdx, (%rcx) jmp 0x4d411
get_record_position: push rbp mov rbp, rsp mov rax, rsi movzx esi, byte ptr [rsi+8] cmp esi, edx jbe short loc_4D40F mov r8d, [rdi+7BCh] mov edi, [rdi+0C18h] mov r9d, r8d sub r9d, edi add r9d, 0FFFFFFF0h shr r9d, 2 cmp r9d, edx jb short loc_4D40F add edi, 0Ch lea r9, [rax+r8] shl edx, 2 sub r9, rdx movzx edx, word ptr [r9-8] cmp edi, edx ja short loc_4D40F movzx edi, word ptr [r9-6] lea r9d, [rdi+rdx] shl esi, 2 sub r8d, esi add r8d, 0FFFFFFFCh cmp r9d, r8d jbe short loc_4D413 loc_4D40F: xor eax, eax loc_4D411: pop rbp retn loc_4D413: mov edx, edx add rax, rdx mov edx, edi add rdx, rax mov [rcx], rdx jmp short loc_4D411
long long get_record_position(long long a1, long long a2, unsigned int a3, _QWORD *a4) { unsigned int v5; // esi long long v6; // r8 int v7; // edi long long v8; // r9 unsigned int v9; // edx long long result; // rax v5 = *(unsigned __int8 *)(a2 + 8); if ( v5 <= a3 ) return 0LL; v6 = *(unsigned int *)(a1 + 1980); v7 = *(_DWORD *)(a1 + 3096); if ( (unsigned int)(v6 - v7 - 16) >> 2 < a3 ) return 0LL; v8 = a2 + v6 - 4 * a3; v9 = *(unsigned __int16 *)(v8 - 8); if ( v7 + 12 > v9 || *(unsigned __int16 *)(v8 - 6) + v9 > (unsigned int)v6 - 4 * v5 - 4 ) return 0LL; result = *(unsigned __int16 *)(v8 - 8) + a2; *a4 = result + *(unsigned __int16 *)(v8 - 6); return result; }
get_record_position: PUSH RBP MOV RBP,RSP MOV RAX,RSI MOVZX ESI,byte ptr [RSI + 0x8] CMP ESI,EDX JBE 0x0014d40f MOV R8D,dword ptr [RDI + 0x7bc] MOV EDI,dword ptr [RDI + 0xc18] MOV R9D,R8D SUB R9D,EDI ADD R9D,-0x10 SHR R9D,0x2 CMP R9D,EDX JC 0x0014d40f ADD EDI,0xc LEA R9,[RAX + R8*0x1] SHL EDX,0x2 SUB R9,RDX MOVZX EDX,word ptr [R9 + -0x8] CMP EDI,EDX JA 0x0014d40f MOVZX EDI,word ptr [R9 + -0x6] LEA R9D,[RDI + RDX*0x1] SHL ESI,0x2 SUB R8D,ESI ADD R8D,-0x4 CMP R9D,R8D JBE 0x0014d413 LAB_0014d40f: XOR EAX,EAX LAB_0014d411: POP RBP RET LAB_0014d413: MOV EDX,EDX ADD RAX,RDX MOV EDX,EDI ADD RDX,RAX MOV qword ptr [RCX],RDX JMP 0x0014d411
long get_record_position(long param_1,long param_2,uint param_3,long *param_4) { ushort uVar1; ushort uVar2; uint uVar3; long lVar4; if (param_3 < *(byte *)(param_2 + 8)) { uVar3 = *(uint *)(param_1 + 0x7bc); if (param_3 <= (uVar3 - *(int *)(param_1 + 0xc18)) - 0x10 >> 2) { lVar4 = (param_2 + (ulong)uVar3) - (ulong)(param_3 << 2); uVar1 = *(ushort *)(lVar4 + -8); if ((*(int *)(param_1 + 0xc18) + 0xcU <= (uint)uVar1) && (uVar2 = *(ushort *)(lVar4 + -6), (uint)uVar2 + (uint)uVar1 <= (uVar3 + (uint)*(byte *)(param_2 + 8) * -4) - 4)) { *param_4 = (ulong)uVar2 + param_2 + (ulong)uVar1; return param_2 + (ulong)uVar1; } } } return 0; }
31,143
google::protobuf::FileDescriptorTables::FindEnumValueByNumberCreatingIfUnknown(google::protobuf::EnumDescriptor const*, int) const
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc
inline const EnumValueDescriptor* FileDescriptorTables::FindEnumValueByNumberCreatingIfUnknown( const EnumDescriptor* parent, int number) const { // First try, with map of compiled-in values. { const auto* value = FindEnumValueByNumber(parent, number); if (value != nullptr) { return value; } } Symbol::QueryKey query; query.parent = parent; query.field_number = number; // Second try, with reader lock held on unknown enum values: common case. { ReaderMutexLock l(&unknown_enum_values_mu_); auto it = unknown_enum_values_by_number_.find(query); if (it != unknown_enum_values_by_number_.end() && it->enum_value_descriptor() != nullptr) { return it->enum_value_descriptor(); } } // If not found, try again with writer lock held, and create new descriptor if // necessary. { WriterMutexLock l(&unknown_enum_values_mu_); auto it = unknown_enum_values_by_number_.find(query); if (it != unknown_enum_values_by_number_.end() && it->enum_value_descriptor() != nullptr) { return it->enum_value_descriptor(); } // Create an EnumValueDescriptor dynamically. We don't insert it into the // EnumDescriptor (it's not a part of the enum as originally defined), but // we do insert it into the table so that we can return the same pointer // later. std::string enum_value_name = StringPrintf( "UNKNOWN_ENUM_VALUE_%s_%d", parent->name().c_str(), number); auto* pool = DescriptorPool::generated_pool(); auto* tables = const_cast<DescriptorPool::Tables*>(pool->tables_.get()); internal::FlatAllocator alloc; alloc.PlanArray<EnumValueDescriptor>(1); alloc.PlanArray<std::string>(2); { // Must lock the pool because we will do allocations in the shared arena. MutexLockMaybe l2(pool->mutex_); alloc.FinalizePlanning(tables); } EnumValueDescriptor* result = alloc.AllocateArray<EnumValueDescriptor>(1); result->all_names_ = alloc.AllocateStrings( enum_value_name, StrCat(parent->full_name(), ".", enum_value_name)); result->number_ = number; result->type_ = parent; result->options_ = &EnumValueOptions::default_instance(); unknown_enum_values_by_number_.insert(Symbol::EnumValue(result, 0)); return result; } }
O0
cpp
google::protobuf::FileDescriptorTables::FindEnumValueByNumberCreatingIfUnknown(google::protobuf::EnumDescriptor const*, int) const: subq $0x338, %rsp # imm = 0x338 movq %rdi, 0x328(%rsp) movq %rsi, 0x320(%rsp) movl %edx, 0x31c(%rsp) movq 0x328(%rsp), %rdi movq %rdi, 0xb0(%rsp) movq 0x320(%rsp), %rsi movl 0x31c(%rsp), %edx callq 0x74f80 movq %rax, 0x310(%rsp) cmpq $0x0, 0x310(%rsp) je 0x7511a movq 0x310(%rsp), %rax movq %rax, 0x330(%rsp) jmp 0x75734 leaq 0x2e8(%rsp), %rdi movq %rdi, 0xa0(%rsp) callq 0x7de90 movq 0xb0(%rsp), %rsi movq 0x320(%rsp), %rax movq %rax, 0x300(%rsp) movl 0x31c(%rsp), %eax movl %eax, 0x308(%rsp) addq $0x138, %rsi # imm = 0x138 leaq 0x2e0(%rsp), %rdi callq 0x73100 movq 0xb0(%rsp), %rax movq 0xa0(%rsp), %rsi addq $0xc0, %rax movq %rax, 0xa8(%rsp) leaq 0x2d0(%rsp), %rdi callq 0x7deb0 jmp 0x75196 movq 0xa8(%rsp), %rdi leaq 0x2d0(%rsp), %rsi callq 0x636d0 movq %rax, 0x98(%rsp) jmp 0x751b5 movq 0xb0(%rsp), %rdi movq 0x98(%rsp), %rax movq %rax, 0x2d8(%rsp) addq $0xc0, %rdi callq 0x63700 movq %rax, 0x2b8(%rsp) leaq 0x2d8(%rsp), %rdi leaq 0x2b8(%rsp), %rsi callq 0x73410 movb %al, %cl xorl %eax, %eax testb $0x1, %cl movb %al, 0x97(%rsp) jne 0x75208 jmp 0x7523d leaq 0x2d8(%rsp), %rdi callq 0x80010 movq %rax, %rdi callq 0x74730 movq %rax, 0x88(%rsp) jmp 0x75227 movq 0x88(%rsp), %rax cmpq $0x0, %rax setne %al movb %al, 0x97(%rsp) movb 0x97(%rsp), %al testb $0x1, %al jne 0x7524a jmp 0x752ac leaq 0x2d8(%rsp), %rdi callq 0x80010 movq %rax, %rdi callq 0x74730 movq %rax, 0x80(%rsp) jmp 0x75269 movq 0x80(%rsp), %rax movq %rax, 0x330(%rsp) movl $0x1, 0x2b4(%rsp) jmp 0x752b7 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x2c8(%rsp) movl %eax, 0x2c4(%rsp) leaq 0x2e0(%rsp), %rdi callq 0x73240 jmp 0x75744 movl $0x0, 0x2b4(%rsp) leaq 0x2e0(%rsp), %rdi callq 0x73240 movl 0x2b4(%rsp), %eax testl %eax, %eax je 0x752d6 jmp 0x752d1 jmp 0x75734 movq 0xb0(%rsp), %rsi addq $0x138, %rsi # imm = 0x138 leaq 0x2a8(%rsp), %rdi callq 0x73100 movq 0xb0(%rsp), %rax addq $0xc0, %rax movq %rax, 0x78(%rsp) leaq 0x298(%rsp), %rdi leaq 0x2e8(%rsp), %rsi callq 0x7deb0 jmp 0x7531c movq 0x78(%rsp), %rdi leaq 0x298(%rsp), %rsi callq 0x636d0 movq %rax, 0x70(%rsp) jmp 0x75335 movq 0xb0(%rsp), %rdi movq 0x70(%rsp), %rax movq %rax, 0x2a0(%rsp) addq $0xc0, %rdi callq 0x63700 movq %rax, 0x290(%rsp) leaq 0x2a0(%rsp), %rdi leaq 0x290(%rsp), %rsi callq 0x73410 movb %al, %cl xorl %eax, %eax testb $0x1, %cl movb %al, 0x6f(%rsp) jne 0x75382 jmp 0x753ae leaq 0x2a0(%rsp), %rdi callq 0x80010 movq %rax, %rdi callq 0x74730 movq %rax, 0x60(%rsp) jmp 0x7539e movq 0x60(%rsp), %rax cmpq $0x0, %rax setne %al movb %al, 0x6f(%rsp) movb 0x6f(%rsp), %al testb $0x1, %al jne 0x753b8 jmp 0x7540a leaq 0x2a0(%rsp), %rdi callq 0x80010 movq %rax, %rdi callq 0x74730 movq %rax, 0x58(%rsp) jmp 0x753d4 movq 0x58(%rsp), %rax movq %rax, 0x330(%rsp) movl $0x1, 0x2b4(%rsp) jmp 0x75716 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x2c8(%rsp) movl %eax, 0x2c4(%rsp) jmp 0x75725 movq 0x320(%rsp), %rdi callq 0x76510 movq %rax, 0x50(%rsp) jmp 0x7541e movq 0x50(%rsp), %rdi callq 0x13190 movq %rax, %rdx movl 0x31c(%rsp), %ecx leaq 0x17a985(%rip), %rsi # 0x1efdbe xorl %eax, %eax leaq 0x270(%rsp), %rdi callq 0x1d5d00 jmp 0x7544a callq 0x34ba0 movq %rax, 0x48(%rsp) jmp 0x75456 movq 0x48(%rsp), %rax movq %rax, 0x268(%rsp) movq 0x268(%rsp), %rdi addq $0x20, %rdi callq 0x77060 movq %rax, 0x260(%rsp) leaq 0x190(%rsp), %rdi movq %rdi, 0x40(%rsp) callq 0x774b0 movq 0x40(%rsp), %rdi movl $0x1, %esi callq 0x44ac0 jmp 0x7549f leaq 0x190(%rsp), %rdi movl $0x2, %esi callq 0x448d0 jmp 0x754b3 movq 0x268(%rsp), %rax movq (%rax), %rsi leaq 0x188(%rsp), %rdi callq 0x73260 jmp 0x754cd leaq 0x190(%rsp), %rdi leaq 0x260(%rsp), %rsi callq 0x47d90 jmp 0x754e4 leaq 0x188(%rsp), %rdi callq 0x732c0 leaq 0x190(%rsp), %rdi movl $0x1, %esi callq 0x455f0 movq %rax, 0x38(%rsp) jmp 0x7550a movq 0x38(%rsp), %rax movq %rax, 0x180(%rsp) movq 0x320(%rsp), %rdi callq 0x763c0 movq %rax, 0x30(%rsp) jmp 0x7552b movq 0x30(%rsp), %rsi leaq 0x130(%rsp), %rdi callq 0x781b0 jmp 0x7553f leaq 0x1787a7(%rip), %rsi # 0x1edced leaq 0x100(%rsp), %rdi callq 0x76c30 jmp 0x75555 leaq 0xd0(%rsp), %rdi leaq 0x270(%rsp), %rsi callq 0x781b0 jmp 0x7556c leaq 0x160(%rsp), %rdi leaq 0x130(%rsp), %rsi leaq 0x100(%rsp), %rdx leaq 0xd0(%rsp), %rcx callq 0x2b220 jmp 0x75593 leaq 0x190(%rsp), %rdi leaq 0x270(%rsp), %rsi leaq 0x160(%rsp), %rdx callq 0x63730 movq %rax, 0x28(%rsp) jmp 0x755b7 movq 0x28(%rsp), %rcx movq 0x180(%rsp), %rax movq %rcx, 0x8(%rax) leaq 0x160(%rsp), %rdi callq 0x13290 movl 0x31c(%rsp), %ecx movq 0x180(%rsp), %rax movl %ecx, 0x4(%rax) movq 0x320(%rsp), %rcx movq 0x180(%rsp), %rax movq %rcx, 0x10(%rax) callq 0x766c0 movq %rax, 0x20(%rsp) jmp 0x75607 movq 0xb0(%rsp), %rax movq 0x20(%rsp), %rdx movq 0x180(%rsp), %rcx movq %rdx, 0x18(%rcx) addq $0xc0, %rax movq %rax, 0x10(%rsp) movq 0x180(%rsp), %rdi xorl %esi, %esi callq 0x73e40 movq %rax, 0x18(%rsp) jmp 0x75641 movq 0x10(%rsp), %rdi movq 0x18(%rsp), %rax movq %rax, 0xc8(%rsp) leaq 0xc8(%rsp), %rsi callq 0x340c0 movb %dl, 0x7(%rsp) movq %rax, 0x8(%rsp) jmp 0x7566b movb 0x7(%rsp), %al movq 0x8(%rsp), %rcx movq %rcx, 0xb8(%rsp) movb %al, 0xc0(%rsp) movq 0x180(%rsp), %rax movq %rax, 0x330(%rsp) movl $0x1, 0x2b4(%rsp) leaq 0x270(%rsp), %rdi callq 0x13290 jmp 0x75716 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x2c8(%rsp) movl %eax, 0x2c4(%rsp) jmp 0x75707 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x2c8(%rsp) movl %eax, 0x2c4(%rsp) leaq 0x188(%rsp), %rdi callq 0x732c0 jmp 0x75707 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x2c8(%rsp) movl %eax, 0x2c4(%rsp) leaq 0x160(%rsp), %rdi callq 0x13290 leaq 0x270(%rsp), %rdi callq 0x13290 jmp 0x75725 leaq 0x2a8(%rsp), %rdi callq 0x73240 jmp 0x75734 leaq 0x2a8(%rsp), %rdi callq 0x73240 jmp 0x75744 movq 0x330(%rsp), %rax addq $0x338, %rsp # imm = 0x338 retq movq 0x2c8(%rsp), %rdi callq 0x13750 nopw %cs:(%rax,%rax) nopl (%rax,%rax)
_ZNK6google8protobuf20FileDescriptorTables38FindEnumValueByNumberCreatingIfUnknownEPKNS0_14EnumDescriptorEi: sub rsp, 338h mov [rsp+338h+var_10], rdi mov [rsp+338h+var_18], rsi mov [rsp+338h+var_1C], edx mov rdi, [rsp+338h+var_10]; this mov [rsp+338h+var_288], rdi mov rsi, [rsp+338h+var_18]; google::protobuf::EnumDescriptor * mov edx, [rsp+338h+var_1C]; int call _ZNK6google8protobuf20FileDescriptorTables21FindEnumValueByNumberEPKNS0_14EnumDescriptorEi; google::protobuf::FileDescriptorTables::FindEnumValueByNumber(google::protobuf::EnumDescriptor const*,int) mov [rsp+338h+var_28], rax cmp [rsp+338h+var_28], 0 jz short loc_7511A mov rax, [rsp+338h+var_28] mov [rsp+338h+var_8], rax jmp loc_75734 loc_7511A: lea rdi, [rsp+338h+var_50]; this mov [rsp+338h+var_298], rdi call _ZN6google8protobuf6Symbol8QueryKeyC2Ev; google::protobuf::Symbol::QueryKey::QueryKey(void) mov rsi, [rsp+338h+var_288] mov rax, [rsp+338h+var_18] mov [rsp+338h+var_38], rax mov eax, [rsp+338h+var_1C] mov [rsp+338h+var_30], eax add rsi, 138h; google::protobuf::internal::WrappedMutex * lea rdi, [rsp+338h+var_58]; this call _ZN6google8protobuf8internal9MutexLockC2EPNS1_12WrappedMutexE; google::protobuf::internal::MutexLock::MutexLock(google::protobuf::internal::WrappedMutex *) mov rax, [rsp+338h+var_288] mov rsi, [rsp+338h+var_298]; google::protobuf::Symbol::QueryKey * add rax, 0C0h mov [rsp+338h+var_290], rax lea rdi, [rsp+338h+var_68]; this call _ZN6google8protobuf6SymbolC2ERNS1_8QueryKeyE; google::protobuf::Symbol::Symbol(google::protobuf::Symbol::QueryKey &) jmp short $+2 loc_75196: mov rdi, [rsp+338h+var_290] lea rsi, [rsp+338h+var_68] call _ZNSt13unordered_setIN6google8protobuf6SymbolENS1_12_GLOBAL__N_118FieldsByNumberHashENS3_16FieldsByNumberEqESaIS2_EE4findERKS2_; std::unordered_set<google::protobuf::Symbol,google::protobuf::`anonymous namespace'::FieldsByNumberHash,google::protobuf::`anonymous namespace'::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>>::find(google::protobuf::Symbol const&) mov [rsp+338h+var_2A0], rax jmp short $+2 loc_751B5: mov rdi, [rsp+338h+var_288] mov rax, [rsp+338h+var_2A0] mov [rsp+338h+var_60], rax add rdi, 0C0h call _ZNSt13unordered_setIN6google8protobuf6SymbolENS1_12_GLOBAL__N_118FieldsByNumberHashENS3_16FieldsByNumberEqESaIS2_EE3endEv; std::unordered_set<google::protobuf::Symbol,google::protobuf::`anonymous namespace'::FieldsByNumberHash,google::protobuf::`anonymous namespace'::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>>::end(void) mov [rsp+338h+var_80], rax lea rdi, [rsp+338h+var_60] lea rsi, [rsp+338h+var_80] call _ZNSt8__detailneERKNS_19_Node_iterator_baseIN6google8protobuf6SymbolELb1EEES6_; std::__detail::operator!=(std::__detail::_Node_iterator_base<google::protobuf::Symbol,true> const&,std::__detail::_Node_iterator_base<google::protobuf::Symbol,true> const&) mov cl, al xor eax, eax test cl, 1 mov [rsp+338h+var_2A1], al jnz short loc_75208 jmp short loc_7523D loc_75208: lea rdi, [rsp+338h+var_60] call _ZNKSt8__detail14_Node_iteratorIN6google8protobuf6SymbolELb1ELb1EEptEv; std::__detail::_Node_iterator<google::protobuf::Symbol,true,true>::operator->(void) mov rdi, rax; this call _ZNK6google8protobuf6Symbol21enum_value_descriptorEv; google::protobuf::Symbol::enum_value_descriptor(void) mov [rsp+338h+var_2B0], rax jmp short $+2 loc_75227: mov rax, [rsp+338h+var_2B0] cmp rax, 0 setnz al mov [rsp+338h+var_2A1], al loc_7523D: mov al, [rsp+338h+var_2A1] test al, 1 jnz short loc_7524A jmp short loc_752AC loc_7524A: lea rdi, [rsp+338h+var_60] call _ZNKSt8__detail14_Node_iteratorIN6google8protobuf6SymbolELb1ELb1EEptEv; std::__detail::_Node_iterator<google::protobuf::Symbol,true,true>::operator->(void) mov rdi, rax; this call _ZNK6google8protobuf6Symbol21enum_value_descriptorEv; google::protobuf::Symbol::enum_value_descriptor(void) mov [rsp+338h+var_2B8], rax jmp short $+2 loc_75269: mov rax, [rsp+338h+var_2B8] mov [rsp+338h+var_8], rax mov [rsp+338h+var_84], 1 jmp short loc_752B7 mov rcx, rax mov eax, edx mov [rsp+arg_2C0], rcx mov [rsp+arg_2BC], eax lea rdi, [rsp+arg_2D8]; this call _ZN6google8protobuf8internal9MutexLockD2Ev; google::protobuf::internal::MutexLock::~MutexLock() jmp loc_75744 loc_752AC: mov [rsp+338h+var_84], 0 loc_752B7: lea rdi, [rsp+338h+var_58]; this call _ZN6google8protobuf8internal9MutexLockD2Ev; google::protobuf::internal::MutexLock::~MutexLock() mov eax, [rsp+338h+var_84] test eax, eax jz short loc_752D6 jmp short $+2 loc_752D1: jmp loc_75734 loc_752D6: mov rsi, [rsp+338h+var_288] add rsi, 138h; google::protobuf::internal::WrappedMutex * lea rdi, [rsp+338h+var_90]; this call _ZN6google8protobuf8internal9MutexLockC2EPNS1_12WrappedMutexE; google::protobuf::internal::MutexLock::MutexLock(google::protobuf::internal::WrappedMutex *) mov rax, [rsp+338h+var_288] add rax, 0C0h mov [rsp+338h+var_2C0], rax lea rdi, [rsp+338h+var_A0]; this lea rsi, [rsp+338h+var_50]; google::protobuf::Symbol::QueryKey * call _ZN6google8protobuf6SymbolC2ERNS1_8QueryKeyE; google::protobuf::Symbol::Symbol(google::protobuf::Symbol::QueryKey &) jmp short $+2 loc_7531C: mov rdi, [rsp+338h+var_2C0] lea rsi, [rsp+338h+var_A0] call _ZNSt13unordered_setIN6google8protobuf6SymbolENS1_12_GLOBAL__N_118FieldsByNumberHashENS3_16FieldsByNumberEqESaIS2_EE4findERKS2_; std::unordered_set<google::protobuf::Symbol,google::protobuf::`anonymous namespace'::FieldsByNumberHash,google::protobuf::`anonymous namespace'::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>>::find(google::protobuf::Symbol const&) mov [rsp+338h+var_2C8], rax jmp short $+2 loc_75335: mov rdi, [rsp+338h+var_288] mov rax, [rsp+338h+var_2C8] mov [rsp+338h+var_98], rax add rdi, 0C0h call _ZNSt13unordered_setIN6google8protobuf6SymbolENS1_12_GLOBAL__N_118FieldsByNumberHashENS3_16FieldsByNumberEqESaIS2_EE3endEv; std::unordered_set<google::protobuf::Symbol,google::protobuf::`anonymous namespace'::FieldsByNumberHash,google::protobuf::`anonymous namespace'::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>>::end(void) mov [rsp+338h+var_A8], rax lea rdi, [rsp+338h+var_98] lea rsi, [rsp+338h+var_A8] call _ZNSt8__detailneERKNS_19_Node_iterator_baseIN6google8protobuf6SymbolELb1EEES6_; std::__detail::operator!=(std::__detail::_Node_iterator_base<google::protobuf::Symbol,true> const&,std::__detail::_Node_iterator_base<google::protobuf::Symbol,true> const&) mov cl, al xor eax, eax test cl, 1 mov [rsp+338h+var_2C9], al jnz short loc_75382 jmp short loc_753AE loc_75382: lea rdi, [rsp+338h+var_98] call _ZNKSt8__detail14_Node_iteratorIN6google8protobuf6SymbolELb1ELb1EEptEv; std::__detail::_Node_iterator<google::protobuf::Symbol,true,true>::operator->(void) mov rdi, rax; this call _ZNK6google8protobuf6Symbol21enum_value_descriptorEv; google::protobuf::Symbol::enum_value_descriptor(void) mov [rsp+338h+var_2D8], rax jmp short $+2 loc_7539E: mov rax, [rsp+338h+var_2D8] cmp rax, 0 setnz al mov [rsp+338h+var_2C9], al loc_753AE: mov al, [rsp+338h+var_2C9] test al, 1 jnz short loc_753B8 jmp short loc_7540A loc_753B8: lea rdi, [rsp+338h+var_98] call _ZNKSt8__detail14_Node_iteratorIN6google8protobuf6SymbolELb1ELb1EEptEv; std::__detail::_Node_iterator<google::protobuf::Symbol,true,true>::operator->(void) mov rdi, rax; this call _ZNK6google8protobuf6Symbol21enum_value_descriptorEv; google::protobuf::Symbol::enum_value_descriptor(void) mov [rsp+338h+var_2E0], rax jmp short $+2 loc_753D4: mov rax, [rsp+338h+var_2E0] mov [rsp+338h+var_8], rax mov [rsp+338h+var_84], 1 jmp loc_75716 mov rcx, rax mov eax, edx mov [rsp+arg_2C0], rcx mov [rsp+arg_2BC], eax jmp loc_75725 loc_7540A: mov rdi, [rsp+338h+var_18] call _ZNK6google8protobuf14EnumDescriptor4nameB5cxx11Ev; google::protobuf::EnumDescriptor::name(void) mov [rsp+338h+var_2E8], rax jmp short $+2 loc_7541E: mov rdi, [rsp+338h+var_2E8] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void) mov rdx, rax mov ecx, [rsp+338h+var_1C] lea rsi, aUnknownEnumVal; "UNKNOWN_ENUM_VALUE_%s_%d" xor eax, eax lea rdi, [rsp+338h+var_C8]; this call _ZN6google8protobuf12StringPrintfB5cxx11EPKcz; google::protobuf::StringPrintf(char const*,...) jmp short $+2 loc_7544A: call _ZN6google8protobuf14DescriptorPool14generated_poolEv; google::protobuf::DescriptorPool::generated_pool(void) mov [rsp+338h+var_2F0], rax jmp short $+2 loc_75456: mov rax, [rsp+338h+var_2F0] mov [rsp+338h+var_D0], rax mov rdi, [rsp+338h+var_D0] add rdi, 20h ; ' ' call _ZNKSt10unique_ptrIN6google8protobuf14DescriptorPool6TablesESt14default_deleteIS3_EE3getEv; std::unique_ptr<google::protobuf::DescriptorPool::Tables>::get(void) mov [rsp+338h+var_D8], rax lea rdi, [rsp+338h+var_1A8]; this mov [rsp+338h+var_2F8], rdi call _ZN6google8protobuf8internal13FlatAllocatorC2Ev; google::protobuf::internal::FlatAllocator::FlatAllocator(void) mov rdi, [rsp+338h+var_2F8] mov esi, 1 call _ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9PlanArrayINS0_19EnumValueDescriptorEEEvi; google::protobuf::`anonymous namespace'::FlatAllocatorImpl<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::PlanArray<google::protobuf::EnumValueDescriptor>(int) jmp short $+2 loc_7549F: lea rdi, [rsp+338h+var_1A8] mov esi, 2 call _ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE9PlanArrayIS8_EEvi; google::protobuf::`anonymous namespace'::FlatAllocatorImpl<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::PlanArray<std::string>(int) jmp short $+2 loc_754B3: mov rax, [rsp+338h+var_D0] mov rsi, [rax]; google::protobuf::internal::WrappedMutex * lea rdi, [rsp+338h+var_1B0]; this call _ZN6google8protobuf8internal14MutexLockMaybeC2EPNS1_12WrappedMutexE; google::protobuf::internal::MutexLockMaybe::MutexLockMaybe(google::protobuf::internal::WrappedMutex *) jmp short $+2 loc_754CD: lea rdi, [rsp+338h+var_1A8] lea rsi, [rsp+338h+var_D8] call _ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE16FinalizePlanningIPNS0_14DescriptorPool6TablesEEEvRT_; google::protobuf::`anonymous namespace'::FlatAllocatorImpl<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::FinalizePlanning<google::protobuf::DescriptorPool::Tables *>(google::protobuf::DescriptorPool::Tables * &) jmp short $+2 loc_754E4: lea rdi, [rsp+338h+var_1B0]; this call _ZN6google8protobuf8internal14MutexLockMaybeD2Ev; google::protobuf::internal::MutexLockMaybe::~MutexLockMaybe() lea rdi, [rsp+338h+var_1A8] mov esi, 1 call _ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE13AllocateArrayINS0_19EnumValueDescriptorEEEPT_i; google::protobuf::`anonymous namespace'::FlatAllocatorImpl<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::AllocateArray<google::protobuf::EnumValueDescriptor>(int) mov [rsp+338h+var_300], rax jmp short $+2 loc_7550A: mov rax, [rsp+338h+var_300] mov [rsp+338h+var_1B8], rax mov rdi, [rsp+338h+var_18] call _ZNK6google8protobuf14EnumDescriptor9full_nameB5cxx11Ev; google::protobuf::EnumDescriptor::full_name(void) mov [rsp+338h+var_308], rax jmp short $+2 loc_7552B: mov rsi, [rsp+338h+var_308] lea rdi, [rsp+338h+var_208] call _ZN6google8protobuf7strings8AlphaNumC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::strings::AlphaNum::AlphaNum(std::string const&) jmp short $+2 loc_7553F: lea rsi, aWhichIsNotDefi+77h; char * lea rdi, [rsp+338h+var_238]; this call _ZN6google8protobuf7strings8AlphaNumC2EPKc; google::protobuf::strings::AlphaNum::AlphaNum(char const*) jmp short $+2 loc_75555: lea rdi, [rsp+338h+var_268] lea rsi, [rsp+338h+var_C8] call _ZN6google8protobuf7strings8AlphaNumC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::strings::AlphaNum::AlphaNum(std::string const&) jmp short $+2 loc_7556C: lea rdi, [rsp+338h+var_1D8] lea rsi, [rsp+338h+var_208] lea rdx, [rsp+338h+var_238] lea rcx, [rsp+338h+var_268] call _ZN6google8protobuf6StrCatB5cxx11ERKNS0_7strings8AlphaNumES4_S4_; google::protobuf::StrCat(google::protobuf::strings::AlphaNum const&,google::protobuf::strings::AlphaNum const&,google::protobuf::strings::AlphaNum const&) jmp short $+2 loc_75593: lea rdi, [rsp+338h+var_1A8] lea rsi, [rsp+338h+var_C8] lea rdx, [rsp+338h+var_1D8] call _ZN6google8protobuf12_GLOBAL__N_117FlatAllocatorImplIJcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_14SourceCodeInfoENS0_20FileDescriptorTablesENS0_14MessageOptionsENS0_12FieldOptionsENS0_11EnumOptionsENS0_16EnumValueOptionsENS0_21ExtensionRangeOptionsENS0_12OneofOptionsENS0_14ServiceOptionsENS0_13MethodOptionsENS0_11FileOptionsEEE15AllocateStringsIJRS8_S8_EEEPKS8_DpOT_; google::protobuf::`anonymous namespace'::FlatAllocatorImpl<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::AllocateStrings<std::string&,std::string>(std::string&,std::string &&) mov [rsp+338h+var_310], rax jmp short $+2 loc_755B7: mov rcx, [rsp+338h+var_310] mov rax, [rsp+338h+var_1B8] mov [rax+8], rcx lea rdi, [rsp+338h+var_1D8]; this call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() mov ecx, [rsp+338h+var_1C] mov rax, [rsp+338h+var_1B8] mov [rax+4], ecx mov rcx, [rsp+338h+var_18] mov rax, [rsp+338h+var_1B8] mov [rax+10h], rcx call _ZN6google8protobuf16EnumValueOptions16default_instanceEv; google::protobuf::EnumValueOptions::default_instance(void) mov qword ptr [rsp+338h+var_318], rax jmp short $+2 loc_75607: mov rax, [rsp+338h+var_288] mov rdx, qword ptr [rsp+338h+var_318]; int mov rcx, [rsp+338h+var_1B8] mov [rcx+18h], rdx add rax, 0C0h mov [rsp+338h+var_328], rax mov rdi, [rsp+338h+var_1B8]; this xor esi, esi; google::protobuf::EnumValueDescriptor * call _ZN6google8protobuf6Symbol9EnumValueEPNS0_19EnumValueDescriptorEi; google::protobuf::Symbol::EnumValue(google::protobuf::EnumValueDescriptor *,int) mov [rsp+338h+var_320], rax jmp short $+2 loc_75641: mov rdi, [rsp+338h+var_328] mov rax, [rsp+338h+var_320] mov [rsp+338h+var_270], rax lea rsi, [rsp+338h+var_270] call _ZNSt13unordered_setIN6google8protobuf6SymbolENS1_12_GLOBAL__N_118FieldsByNumberHashENS3_16FieldsByNumberEqESaIS2_EE6insertEOS2_; std::unordered_set<google::protobuf::Symbol,google::protobuf::`anonymous namespace'::FieldsByNumberHash,google::protobuf::`anonymous namespace'::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>>::insert(google::protobuf::Symbol&&) mov [rsp+338h+var_331], dl mov [rsp+338h+var_330], rax jmp short $+2 loc_7566B: mov al, [rsp+338h+var_331] mov rcx, [rsp+338h+var_330] mov [rsp+338h+var_280], rcx mov [rsp+338h+var_278], al mov rax, [rsp+338h+var_1B8] mov [rsp+338h+var_8], rax mov [rsp+338h+var_84], 1 lea rdi, [rsp+338h+var_C8] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_75716 mov rcx, rax mov eax, edx mov [rsp+arg_2C0], rcx mov [rsp+arg_2BC], eax jmp short loc_75707 mov rcx, rax mov eax, edx mov [rsp+arg_2C0], rcx mov [rsp+arg_2BC], eax lea rdi, [rsp+arg_180]; this call _ZN6google8protobuf8internal14MutexLockMaybeD2Ev; google::protobuf::internal::MutexLockMaybe::~MutexLockMaybe() jmp short loc_75707 mov rcx, rax mov eax, edx mov [rsp+arg_2C0], rcx mov [rsp+arg_2BC], eax lea rdi, [rsp+arg_158] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_75707: lea rdi, [rsp+arg_268] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_75725 loc_75716: lea rdi, [rsp+338h+var_90]; this call _ZN6google8protobuf8internal9MutexLockD2Ev; google::protobuf::internal::MutexLock::~MutexLock() jmp short loc_75734 loc_75725: lea rdi, [rsp+arg_2A0]; this call _ZN6google8protobuf8internal9MutexLockD2Ev; google::protobuf::internal::MutexLock::~MutexLock() jmp short loc_75744 loc_75734: mov rax, [rsp+338h+var_8] add rsp, 338h retn loc_75744: mov rdi, [rsp+arg_2C0] call __Unwind_Resume
google::protobuf::Symbol * google::protobuf::FileDescriptorTables::FindEnumValueByNumberCreatingIfUnknown( google::protobuf::FileDescriptorTables *this, const google::protobuf::EnumDescriptor *a2, int a3) { google::protobuf::Symbol *v3; // rax google::protobuf::Symbol *v4; // rax google::protobuf::Symbol *v5; // rax google::protobuf::Symbol *v6; // rax int v7; // eax int v8; // r8d int v9; // r9d int v10; // ecx int v11; // r8d int v12; // r9d int v14[2]; // [rsp+20h] [rbp-318h] long long v15; // [rsp+28h] [rbp-310h] long long v16; // [rsp+30h] [rbp-308h] long long v17; // [rsp+50h] [rbp-2E8h] bool v18; // [rsp+6Fh] [rbp-2C9h] bool v19; // [rsp+97h] [rbp-2A1h] google::protobuf::Symbol *v20; // [rsp+C8h] [rbp-270h] BYREF _BYTE v21[48]; // [rsp+D0h] [rbp-268h] BYREF _BYTE v22[48]; // [rsp+100h] [rbp-238h] BYREF _BYTE v23[48]; // [rsp+130h] [rbp-208h] BYREF _BYTE v24[32]; // [rsp+160h] [rbp-1D8h] BYREF google::protobuf::Symbol *v25; // [rsp+180h] [rbp-1B8h] google::protobuf::internal::WrappedMutex *v26; // [rsp+188h] [rbp-1B0h] BYREF _BYTE v27[208]; // [rsp+190h] [rbp-1A8h] BYREF long long v28; // [rsp+260h] [rbp-D8h] BYREF google::protobuf::internal::WrappedMutex **v29; // [rsp+268h] [rbp-D0h] _BYTE v30[32]; // [rsp+270h] [rbp-C8h] BYREF long long v31; // [rsp+290h] [rbp-A8h] BYREF _BYTE v32[8]; // [rsp+298h] [rbp-A0h] BYREF long long v33; // [rsp+2A0h] [rbp-98h] BYREF google::protobuf::internal::WrappedMutex *v34; // [rsp+2A8h] [rbp-90h] BYREF int v35; // [rsp+2B4h] [rbp-84h] long long v36[3]; // [rsp+2B8h] [rbp-80h] BYREF _BYTE v37[8]; // [rsp+2D0h] [rbp-68h] BYREF long long v38; // [rsp+2D8h] [rbp-60h] BYREF google::protobuf::internal::WrappedMutex *v39; // [rsp+2E0h] [rbp-58h] BYREF _BYTE v40[24]; // [rsp+2E8h] [rbp-50h] BYREF google::protobuf::EnumDescriptor *v41; // [rsp+300h] [rbp-38h] int v42; // [rsp+308h] [rbp-30h] long long EnumValueByNumber; // [rsp+310h] [rbp-28h] int v44; // [rsp+31Ch] [rbp-1Ch] google::protobuf::EnumDescriptor *v45; // [rsp+320h] [rbp-18h] google::protobuf::FileDescriptorTables *v46; // [rsp+328h] [rbp-10h] google::protobuf::Symbol *v47; // [rsp+330h] [rbp-8h] v46 = this; v45 = a2; v44 = a3; EnumValueByNumber = google::protobuf::FileDescriptorTables::FindEnumValueByNumber(this, a2, a3); if ( EnumValueByNumber ) return (google::protobuf::Symbol *)EnumValueByNumber; google::protobuf::Symbol::QueryKey::QueryKey((google::protobuf::Symbol::QueryKey *)v40); v41 = v45; v42 = v44; google::protobuf::internal::MutexLock::MutexLock(&v39, (google::protobuf::FileDescriptorTables *)((char *)this + 312)); google::protobuf::Symbol::Symbol((google::protobuf::Symbol *)v37, (google::protobuf::Symbol::QueryKey *)v40); v38 = std::unordered_set<google::protobuf::Symbol,google::protobuf::`anonymous namespace'::FieldsByNumberHash,google::protobuf::`anonymous namespace'::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>>::find( (long long)this + 192, (long long)v37); v36[0] = std::unordered_set<google::protobuf::Symbol,google::protobuf::`anonymous namespace'::FieldsByNumberHash,google::protobuf::`anonymous namespace'::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>>::end((long long)this + 192); v19 = 0; if ( std::__detail::operator!=(&v38, v36) ) { v3 = (google::protobuf::Symbol *)std::__detail::_Node_iterator<google::protobuf::Symbol,true,true>::operator->(&v38); v19 = google::protobuf::Symbol::enum_value_descriptor(v3) != 0; } if ( v19 ) { v4 = (google::protobuf::Symbol *)std::__detail::_Node_iterator<google::protobuf::Symbol,true,true>::operator->(&v38); v47 = (google::protobuf::Symbol *)google::protobuf::Symbol::enum_value_descriptor(v4); v35 = 1; } else { v35 = 0; } google::protobuf::internal::MutexLock::~MutexLock(&v39); if ( !v35 ) { google::protobuf::internal::MutexLock::MutexLock( &v34, (google::protobuf::FileDescriptorTables *)((char *)this + 312)); google::protobuf::Symbol::Symbol((google::protobuf::Symbol *)v32, (google::protobuf::Symbol::QueryKey *)v40); v33 = std::unordered_set<google::protobuf::Symbol,google::protobuf::`anonymous namespace'::FieldsByNumberHash,google::protobuf::`anonymous namespace'::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>>::find( (long long)this + 192, (long long)v32); v31 = std::unordered_set<google::protobuf::Symbol,google::protobuf::`anonymous namespace'::FieldsByNumberHash,google::protobuf::`anonymous namespace'::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>>::end((long long)this + 192); v18 = 0; if ( std::__detail::operator!=(&v33, &v31) ) { v5 = (google::protobuf::Symbol *)std::__detail::_Node_iterator<google::protobuf::Symbol,true,true>::operator->(&v33); v18 = google::protobuf::Symbol::enum_value_descriptor(v5) != 0; } if ( v18 ) { v6 = (google::protobuf::Symbol *)std::__detail::_Node_iterator<google::protobuf::Symbol,true,true>::operator->(&v33); v47 = (google::protobuf::Symbol *)google::protobuf::Symbol::enum_value_descriptor(v6); v35 = 1; } else { v17 = google::protobuf::EnumDescriptor::name[abi:cxx11](v45); v7 = std::string::c_str(v17); google::protobuf::StringPrintf[abi:cxx11]( (unsigned int)v30, (unsigned int)"UNKNOWN_ENUM_VALUE_%s_%d", v7, v44, v8, v9); v29 = (google::protobuf::internal::WrappedMutex **)google::protobuf::DescriptorPool::generated_pool((google::protobuf::DescriptorPool *)v30); v28 = std::unique_ptr<google::protobuf::DescriptorPool::Tables>::get(v29 + 4); google::protobuf::internal::FlatAllocator::FlatAllocator((google::protobuf::internal::FlatAllocator *)v27); google::protobuf::`anonymous namespace'::FlatAllocatorImpl<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::PlanArray<google::protobuf::EnumValueDescriptor>( (long long)v27, 1); google::protobuf::`anonymous namespace'::FlatAllocatorImpl<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::PlanArray<std::string>( (long long)v27, 2); google::protobuf::internal::MutexLockMaybe::MutexLockMaybe(&v26, *v29); google::protobuf::`anonymous namespace'::FlatAllocatorImpl<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::FinalizePlanning<google::protobuf::DescriptorPool::Tables *>( (long long)v27, &v28); google::protobuf::internal::MutexLockMaybe::~MutexLockMaybe(&v26); v25 = (google::protobuf::Symbol *)google::protobuf::`anonymous namespace'::FlatAllocatorImpl<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::AllocateArray<google::protobuf::EnumValueDescriptor>( (long long)v27, 1); v16 = google::protobuf::EnumDescriptor::full_name[abi:cxx11](v45); google::protobuf::strings::AlphaNum::AlphaNum(v23, v16); google::protobuf::strings::AlphaNum::AlphaNum((google::protobuf::strings::AlphaNum *)v22, "."); google::protobuf::strings::AlphaNum::AlphaNum(v21, v30); google::protobuf::StrCat[abi:cxx11]( (long long)v24, (google::protobuf::strings::AlphaNum *)v23, (google::protobuf::strings::AlphaNum *)v22, (google::protobuf::strings::AlphaNum *)v21); v15 = google::protobuf::`anonymous namespace'::FlatAllocatorImpl<char,std::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions>::AllocateStrings<std::string&,std::string>( (long long)v27, (long long)v30, (long long)v24, v10, v11, v12); *((_QWORD *)v25 + 1) = v15; std::string::~string(v24); *((_DWORD *)v25 + 1) = v44; *((_QWORD *)v25 + 2) = v45; *(_QWORD *)v14 = google::protobuf::EnumValueOptions::default_instance((google::protobuf::EnumValueOptions *)v24); *((_QWORD *)v25 + 3) = *(_QWORD *)v14; v20 = google::protobuf::Symbol::EnumValue(v25, 0LL); std::unordered_set<google::protobuf::Symbol,google::protobuf::`anonymous namespace'::FieldsByNumberHash,google::protobuf::`anonymous namespace'::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>>::insert( (long long)this + 192, (long long)&v20); v47 = v25; v35 = 1; std::string::~string(v30); } google::protobuf::internal::MutexLock::~MutexLock(&v34); } return v47; }
FindEnumValueByNumberCreatingIfUnknown: SUB RSP,0x338 MOV qword ptr [RSP + 0x328],RDI MOV qword ptr [RSP + 0x320],RSI MOV dword ptr [RSP + 0x31c],EDX MOV RDI,qword ptr [RSP + 0x328] MOV qword ptr [RSP + 0xb0],RDI MOV RSI,qword ptr [RSP + 0x320] MOV EDX,dword ptr [RSP + 0x31c] CALL 0x00174f80 MOV qword ptr [RSP + 0x310],RAX CMP qword ptr [RSP + 0x310],0x0 JZ 0x0017511a MOV RAX,qword ptr [RSP + 0x310] MOV qword ptr [RSP + 0x330],RAX JMP 0x00175734 LAB_0017511a: LEA RDI,[RSP + 0x2e8] MOV qword ptr [RSP + 0xa0],RDI CALL 0x0017de90 MOV RSI,qword ptr [RSP + 0xb0] MOV RAX,qword ptr [RSP + 0x320] MOV qword ptr [RSP + 0x300],RAX MOV EAX,dword ptr [RSP + 0x31c] MOV dword ptr [RSP + 0x308],EAX ADD RSI,0x138 LEA RDI,[RSP + 0x2e0] CALL 0x00173100 MOV RAX,qword ptr [RSP + 0xb0] MOV RSI,qword ptr [RSP + 0xa0] ADD RAX,0xc0 MOV qword ptr [RSP + 0xa8],RAX LAB_00175187: LEA RDI,[RSP + 0x2d0] CALL 0x0017deb0 JMP 0x00175196 LAB_00175196: MOV RDI,qword ptr [RSP + 0xa8] LEA RSI,[RSP + 0x2d0] CALL 0x001636d0 MOV qword ptr [RSP + 0x98],RAX JMP 0x001751b5 LAB_001751b5: MOV RDI,qword ptr [RSP + 0xb0] MOV RAX,qword ptr [RSP + 0x98] MOV qword ptr [RSP + 0x2d8],RAX ADD RDI,0xc0 CALL 0x00163700 MOV qword ptr [RSP + 0x2b8],RAX LEA RDI,[RSP + 0x2d8] LEA RSI,[RSP + 0x2b8] CALL 0x00173410 MOV CL,AL XOR EAX,EAX TEST CL,0x1 MOV byte ptr [RSP + 0x97],AL JNZ 0x00175208 JMP 0x0017523d LAB_00175208: LEA RDI,[RSP + 0x2d8] CALL 0x00180010 MOV RDI,RAX CALL 0x00174730 MOV qword ptr [RSP + 0x88],RAX JMP 0x00175227 LAB_00175227: MOV RAX,qword ptr [RSP + 0x88] CMP RAX,0x0 SETNZ AL MOV byte ptr [RSP + 0x97],AL LAB_0017523d: MOV AL,byte ptr [RSP + 0x97] TEST AL,0x1 JNZ 0x0017524a JMP 0x001752ac LAB_0017524a: LEA RDI,[RSP + 0x2d8] CALL 0x00180010 MOV RDI,RAX CALL 0x00174730 LAB_0017525f: MOV qword ptr [RSP + 0x80],RAX JMP 0x00175269 LAB_00175269: MOV RAX,qword ptr [RSP + 0x80] MOV qword ptr [RSP + 0x330],RAX MOV dword ptr [RSP + 0x2b4],0x1 JMP 0x001752b7 LAB_001752ac: MOV dword ptr [RSP + 0x2b4],0x0 LAB_001752b7: LEA RDI,[RSP + 0x2e0] CALL 0x00173240 MOV EAX,dword ptr [RSP + 0x2b4] TEST EAX,EAX JZ 0x001752d6 JMP 0x001752d1 LAB_001752d1: JMP 0x00175734 LAB_001752d6: MOV RSI,qword ptr [RSP + 0xb0] ADD RSI,0x138 LEA RDI,[RSP + 0x2a8] CALL 0x00173100 MOV RAX,qword ptr [RSP + 0xb0] ADD RAX,0xc0 MOV qword ptr [RSP + 0x78],RAX LAB_00175305: LEA RDI,[RSP + 0x298] LEA RSI,[RSP + 0x2e8] CALL 0x0017deb0 JMP 0x0017531c LAB_0017531c: MOV RDI,qword ptr [RSP + 0x78] LEA RSI,[RSP + 0x298] CALL 0x001636d0 MOV qword ptr [RSP + 0x70],RAX JMP 0x00175335 LAB_00175335: MOV RDI,qword ptr [RSP + 0xb0] MOV RAX,qword ptr [RSP + 0x70] MOV qword ptr [RSP + 0x2a0],RAX ADD RDI,0xc0 CALL 0x00163700 MOV qword ptr [RSP + 0x290],RAX LEA RDI,[RSP + 0x2a0] LEA RSI,[RSP + 0x290] CALL 0x00173410 MOV CL,AL XOR EAX,EAX TEST CL,0x1 MOV byte ptr [RSP + 0x6f],AL JNZ 0x00175382 JMP 0x001753ae LAB_00175382: LEA RDI,[RSP + 0x2a0] CALL 0x00180010 MOV RDI,RAX CALL 0x00174730 MOV qword ptr [RSP + 0x60],RAX JMP 0x0017539e LAB_0017539e: MOV RAX,qword ptr [RSP + 0x60] CMP RAX,0x0 SETNZ AL MOV byte ptr [RSP + 0x6f],AL LAB_001753ae: MOV AL,byte ptr [RSP + 0x6f] TEST AL,0x1 JNZ 0x001753b8 JMP 0x0017540a LAB_001753b8: LEA RDI,[RSP + 0x2a0] CALL 0x00180010 MOV RDI,RAX CALL 0x00174730 MOV qword ptr [RSP + 0x58],RAX JMP 0x001753d4 LAB_001753d4: MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RSP + 0x330],RAX MOV dword ptr [RSP + 0x2b4],0x1 JMP 0x00175716 LAB_0017540a: MOV RDI,qword ptr [RSP + 0x320] CALL 0x00176510 MOV qword ptr [RSP + 0x50],RAX JMP 0x0017541e LAB_0017541e: MOV RDI,qword ptr [RSP + 0x50] CALL 0x00113190 MOV RDX,RAX MOV ECX,dword ptr [RSP + 0x31c] LEA RSI,[0x2efdbe] XOR EAX,EAX LEA RDI,[RSP + 0x270] CALL 0x002d5d00 JMP 0x0017544a LAB_0017544a: CALL 0x00134ba0 MOV qword ptr [RSP + 0x48],RAX JMP 0x00175456 LAB_00175456: MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x268],RAX MOV RDI,qword ptr [RSP + 0x268] ADD RDI,0x20 CALL 0x00177060 MOV qword ptr [RSP + 0x260],RAX LEA RDI,[RSP + 0x190] MOV qword ptr [RSP + 0x40],RDI CALL 0x001774b0 MOV RDI,qword ptr [RSP + 0x40] MOV ESI,0x1 CALL 0x00144ac0 JMP 0x0017549f LAB_0017549f: LEA RDI,[RSP + 0x190] MOV ESI,0x2 CALL 0x001448d0 JMP 0x001754b3 LAB_001754b3: MOV RAX,qword ptr [RSP + 0x268] MOV RSI,qword ptr [RAX] LEA RDI,[RSP + 0x188] CALL 0x00173260 JMP 0x001754cd LAB_001754cd: LEA RDI,[RSP + 0x190] LEA RSI,[RSP + 0x260] CALL 0x00147d90 JMP 0x001754e4 LAB_001754e4: LEA RDI,[RSP + 0x188] CALL 0x001732c0 LAB_001754f1: LEA RDI,[RSP + 0x190] MOV ESI,0x1 CALL 0x001455f0 MOV qword ptr [RSP + 0x38],RAX JMP 0x0017550a LAB_0017550a: MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x180],RAX MOV RDI,qword ptr [RSP + 0x320] CALL 0x001763c0 MOV qword ptr [RSP + 0x30],RAX JMP 0x0017552b LAB_0017552b: MOV RSI,qword ptr [RSP + 0x30] LEA RDI,[RSP + 0x130] CALL 0x001781b0 JMP 0x0017553f LAB_0017553f: LEA RSI,[0x2edced] LEA RDI,[RSP + 0x100] CALL 0x00176c30 JMP 0x00175555 LAB_00175555: LEA RDI,[RSP + 0xd0] LEA RSI,[RSP + 0x270] CALL 0x001781b0 JMP 0x0017556c LAB_0017556c: LEA RDI,[RSP + 0x160] LEA RSI,[RSP + 0x130] LEA RDX,[RSP + 0x100] LEA RCX,[RSP + 0xd0] CALL 0x0012b220 JMP 0x00175593 LAB_00175593: LEA RDI,[RSP + 0x190] LEA RSI,[RSP + 0x270] LEA RDX,[RSP + 0x160] CALL 0x00163730 MOV qword ptr [RSP + 0x28],RAX JMP 0x001755b7 LAB_001755b7: MOV RCX,qword ptr [RSP + 0x28] MOV RAX,qword ptr [RSP + 0x180] MOV qword ptr [RAX + 0x8],RCX LEA RDI,[RSP + 0x160] CALL 0x00113290 MOV ECX,dword ptr [RSP + 0x31c] MOV RAX,qword ptr [RSP + 0x180] MOV dword ptr [RAX + 0x4],ECX MOV RCX,qword ptr [RSP + 0x320] MOV RAX,qword ptr [RSP + 0x180] MOV qword ptr [RAX + 0x10],RCX LAB_001755fb: CALL 0x001766c0 MOV qword ptr [RSP + 0x20],RAX JMP 0x00175607 LAB_00175607: MOV RAX,qword ptr [RSP + 0xb0] MOV RDX,qword ptr [RSP + 0x20] MOV RCX,qword ptr [RSP + 0x180] MOV qword ptr [RCX + 0x18],RDX ADD RAX,0xc0 MOV qword ptr [RSP + 0x10],RAX MOV RDI,qword ptr [RSP + 0x180] XOR ESI,ESI CALL 0x00173e40 MOV qword ptr [RSP + 0x18],RAX JMP 0x00175641 LAB_00175641: MOV RDI,qword ptr [RSP + 0x10] MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0xc8],RAX LEA RSI,[RSP + 0xc8] CALL 0x001340c0 LAB_00175660: MOV byte ptr [RSP + 0x7],DL MOV qword ptr [RSP + 0x8],RAX JMP 0x0017566b LAB_0017566b: MOV AL,byte ptr [RSP + 0x7] MOV RCX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0xb8],RCX MOV byte ptr [RSP + 0xc0],AL MOV RAX,qword ptr [RSP + 0x180] MOV qword ptr [RSP + 0x330],RAX MOV dword ptr [RSP + 0x2b4],0x1 LEA RDI,[RSP + 0x270] CALL 0x00113290 JMP 0x00175716 LAB_00175716: LEA RDI,[RSP + 0x2a8] CALL 0x00173240 JMP 0x00175734 LAB_00175734: MOV RAX,qword ptr [RSP + 0x330] ADD RSP,0x338 RET
/* google::protobuf::FileDescriptorTables::FindEnumValueByNumberCreatingIfUnknown(google::protobuf::EnumDescriptor const*, int) const */ EnumValueDescriptor * __thiscall google::protobuf::FileDescriptorTables::FindEnumValueByNumberCreatingIfUnknown (FileDescriptorTables *this,EnumDescriptor *param_1,int param_2) { EnumValueDescriptor *pEVar1; uint uVar2; long lVar3; Symbol *pSVar4; int8 uVar5; string *psVar6; bool bVar7; int8 local_270; AlphaNum local_268 [48]; AlphaNum local_238 [48]; AlphaNum local_208 [48]; protobuf local_1d8 [32]; EnumValueDescriptor *local_1b8; MutexLockMaybe local_1b0 [8]; FlatAllocator local_1a8 [208]; Tables *local_d8; int8 *local_d0; string local_c8 [32]; int8 local_a8; Symbol local_a0 [8]; int8 local_98; MutexLock local_90 [12]; uint local_84; int8 local_80 [3]; Symbol local_68 [8]; int8 local_60; MutexLock local_58 [8]; QueryKey local_50 [24]; EnumDescriptor *local_38; uint local_30; EnumValueDescriptor *local_28; uint local_1c; EnumDescriptor *local_18; FileDescriptorTables *local_10; EnumValueDescriptor *local_8; local_1c = param_2; local_18 = param_1; local_10 = this; local_28 = (EnumValueDescriptor *)FindEnumValueByNumber(this,param_1,param_2); pEVar1 = local_28; if (local_28 == (EnumValueDescriptor *)0x0) { Symbol::QueryKey::QueryKey(local_50); local_38 = local_18; local_30 = local_1c; internal::MutexLock::MutexLock(local_58,(WrappedMutex *)(this + 0x138)); /* try { // try from 00175187 to 0017525e has its CatchHandler @ 00175286 */ Symbol::Symbol(local_68,local_50); local_60 = std:: unordered_set<google::protobuf::Symbol,google::protobuf::(anonymous_namespace)::FieldsByNumberHash,google::protobuf::(anonymous_namespace)::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>> ::find((unordered_set<google::protobuf::Symbol,google::protobuf::(anonymous_namespace)::FieldsByNumberHash,google::protobuf::(anonymous_namespace)::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>> *)(this + 0xc0),local_68); local_80[0] = std:: unordered_set<google::protobuf::Symbol,google::protobuf::(anonymous_namespace)::FieldsByNumberHash,google::protobuf::(anonymous_namespace)::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>> ::end(); uVar2 = std::__detail::operator!= ((_Node_iterator_base *)&local_60,(_Node_iterator_base *)local_80); bVar7 = false; if ((uVar2 & 1) != 0) { pSVar4 = (Symbol *) std::__detail::_Node_iterator<google::protobuf::Symbol,true,true>::operator-> ((_Node_iterator<google::protobuf::Symbol,true,true> *)&local_60); lVar3 = Symbol::enum_value_descriptor(pSVar4); bVar7 = lVar3 != 0; } if (bVar7) { pSVar4 = (Symbol *) std::__detail::_Node_iterator<google::protobuf::Symbol,true,true>::operator-> ((_Node_iterator<google::protobuf::Symbol,true,true> *)&local_60); local_8 = (EnumValueDescriptor *)Symbol::enum_value_descriptor(pSVar4); } local_84 = (uint)bVar7; internal::MutexLock::~MutexLock(local_58); pEVar1 = local_8; if (local_84 == 0) { internal::MutexLock::MutexLock(local_90,(WrappedMutex *)(this + 0x138)); /* try { // try from 00175305 to 00175447 has its CatchHandler @ 001753f1 */ Symbol::Symbol(local_a0,local_50); local_98 = std:: unordered_set<google::protobuf::Symbol,google::protobuf::(anonymous_namespace)::FieldsByNumberHash,google::protobuf::(anonymous_namespace)::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>> ::find((unordered_set<google::protobuf::Symbol,google::protobuf::(anonymous_namespace)::FieldsByNumberHash,google::protobuf::(anonymous_namespace)::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>> *)(this + 0xc0),local_a0); local_a8 = std:: unordered_set<google::protobuf::Symbol,google::protobuf::(anonymous_namespace)::FieldsByNumberHash,google::protobuf::(anonymous_namespace)::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>> ::end(); uVar2 = std::__detail::operator!= ((_Node_iterator_base *)&local_98,(_Node_iterator_base *)&local_a8); bVar7 = false; if ((uVar2 & 1) != 0) { pSVar4 = (Symbol *) std::__detail::_Node_iterator<google::protobuf::Symbol,true,true>::operator-> ((_Node_iterator<google::protobuf::Symbol,true,true> *)&local_98); lVar3 = Symbol::enum_value_descriptor(pSVar4); bVar7 = lVar3 != 0; } if (bVar7) { pSVar4 = (Symbol *) std::__detail::_Node_iterator<google::protobuf::Symbol,true,true>::operator-> ((_Node_iterator<google::protobuf::Symbol,true,true> *)&local_98); local_8 = (EnumValueDescriptor *)Symbol::enum_value_descriptor(pSVar4); local_84 = 1; } else { EnumDescriptor::name_abi_cxx11_(local_18); uVar5 = std::__cxx11::string::c_str(); StringPrintf_abi_cxx11_((char *)local_c8,"UNKNOWN_ENUM_VALUE_%s_%d",uVar5,(ulong)local_1c); /* try { // try from 0017544a to 001754ca has its CatchHandler @ 001756ad */ local_d0 = (int8 *)DescriptorPool::generated_pool(); local_d8 = (Tables *) std:: unique_ptr<google::protobuf::DescriptorPool::Tables,std::default_delete<google::protobuf::DescriptorPool::Tables>> ::get((unique_ptr<google::protobuf::DescriptorPool::Tables,std::default_delete<google::protobuf::DescriptorPool::Tables>> *)(local_d0 + 4)); internal::FlatAllocator::FlatAllocator(local_1a8); (anonymous_namespace):: FlatAllocatorImpl<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions> ::PlanArray<google::protobuf::EnumValueDescriptor> ((FlatAllocatorImpl<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions> *)local_1a8,1); (anonymous_namespace):: FlatAllocatorImpl<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions> ::PlanArray<std::__cxx11::string> ((FlatAllocatorImpl<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions> *)local_1a8,2); internal::MutexLockMaybe::MutexLockMaybe(local_1b0,(WrappedMutex *)*local_d0); /* try { // try from 001754cd to 001754e1 has its CatchHandler @ 001756c3 */ (anonymous_namespace):: FlatAllocatorImpl<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions> ::FinalizePlanning<google::protobuf::DescriptorPool::Tables*> ((FlatAllocatorImpl<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions> *)local_1a8,&local_d8); internal::MutexLockMaybe::~MutexLockMaybe(local_1b0); /* try { // try from 001754f1 to 00175590 has its CatchHandler @ 001756ad */ local_1b8 = (anonymous_namespace):: FlatAllocatorImpl<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions> ::AllocateArray<google::protobuf::EnumValueDescriptor> ((FlatAllocatorImpl<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions> *)local_1a8,1); psVar6 = (string *)EnumDescriptor::full_name_abi_cxx11_(local_18); strings::AlphaNum::AlphaNum(local_208,psVar6); strings::AlphaNum::AlphaNum(local_238,"."); strings::AlphaNum::AlphaNum(local_268,local_c8); StrCat_abi_cxx11_(local_1d8,local_208,local_238,local_268); /* try { // try from 00175593 to 001755af has its CatchHandler @ 001756e6 */ psVar6 = (anonymous_namespace):: FlatAllocatorImpl<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions> ::AllocateStrings<std::__cxx11::string&,std::__cxx11::string> ((FlatAllocatorImpl<char,std::__cxx11::string,google::protobuf::SourceCodeInfo,google::protobuf::FileDescriptorTables,google::protobuf::MessageOptions,google::protobuf::FieldOptions,google::protobuf::EnumOptions,google::protobuf::EnumValueOptions,google::protobuf::ExtensionRangeOptions,google::protobuf::OneofOptions,google::protobuf::ServiceOptions,google::protobuf::MethodOptions,google::protobuf::FileOptions> *)local_1a8,local_c8,(string *)local_1d8); *(string **)(local_1b8 + 8) = psVar6; std::__cxx11::string::~string((string *)local_1d8); *(uint *)(local_1b8 + 4) = local_1c; *(EnumDescriptor **)(local_1b8 + 0x10) = local_18; /* try { // try from 001755fb to 0017565f has its CatchHandler @ 001756ad */ uVar5 = EnumValueOptions::default_instance(); *(int8 *)(local_1b8 + 0x18) = uVar5; local_270 = Symbol::EnumValue(local_1b8,0); std:: unordered_set<google::protobuf::Symbol,google::protobuf::(anonymous_namespace)::FieldsByNumberHash,google::protobuf::(anonymous_namespace)::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>> ::insert((unordered_set<google::protobuf::Symbol,google::protobuf::(anonymous_namespace)::FieldsByNumberHash,google::protobuf::(anonymous_namespace)::FieldsByNumberEq,std::allocator<google::protobuf::Symbol>> *)(this + 0xc0),(Symbol *)&local_270); local_8 = local_1b8; local_84 = 1; std::__cxx11::string::~string(local_c8); } internal::MutexLock::~MutexLock(local_90); pEVar1 = local_8; } } local_8 = pEVar1; return local_8; }
31,144
LefDefParser::lefiPin::addAntennaPartialCutArea(double, char const*)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiMacro.cpp
void lefiPin::addAntennaPartialCutArea(double val, const char *layer) { int len; if (numAntennaPartialCutArea_ == antennaPartialCutAreaAllocated_) { int i; int max; int lim = numAntennaPartialCutArea_; double *nd; char **nl; if (antennaPartialCutAreaAllocated_ == 0) max = antennaPartialCutAreaAllocated_ = 2; else max = antennaPartialCutAreaAllocated_ *= 2; nd = (double*) lefMalloc(sizeof(double) * max); nl = (char**) lefMalloc(sizeof(double) * max); for (i = 0; i < lim; i++) { nl[i] = antennaPartialCutAreaLayer_[i]; nd[i] = antennaPartialCutArea_[i]; } lefFree((char*) (antennaPartialCutAreaLayer_)); lefFree((char*) (antennaPartialCutArea_)); antennaPartialCutAreaLayer_ = nl; antennaPartialCutArea_ = nd; } antennaPartialCutArea_[numAntennaPartialCutArea_] = val; if (layer) { // layer can be null, since it is optional len = strlen(layer) + 1; antennaPartialCutAreaLayer_[numAntennaPartialCutArea_] = (char*) lefMalloc(len); strcpy(antennaPartialCutAreaLayer_[numAntennaPartialCutArea_], layer); } else antennaPartialCutAreaLayer_[numAntennaPartialCutArea_] = NULL; numAntennaPartialCutArea_ += 1; }
O3
cpp
LefDefParser::lefiPin::addAntennaPartialCutArea(double, char const*): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rsi, %r14 movq %rdi, %rbx movl 0x1f8(%rdi), %r13d cmpl 0x1fc(%rdi), %r13d jne 0x2a8e4 movsd %xmm0, 0x8(%rsp) leal (,%r13,2), %eax testl %r13d, %r13d movl $0x2, %ecx cmovnel %eax, %ecx movl %ecx, 0x1fc(%rbx) movslq %ecx, %r12 shlq $0x3, %r12 movq %r12, %rdi callq 0x24985 movq %rax, %r15 movq %r12, %rdi callq 0x24985 movq %rax, %r12 testl %r13d, %r13d jle 0x2a8af xorl %eax, %eax movq 0x208(%rbx), %rcx movq (%rcx,%rax,8), %rcx movq %rcx, (%r12,%rax,8) movq 0x200(%rbx), %rcx movsd (%rcx,%rax,8), %xmm0 movsd %xmm0, (%r15,%rax,8) incq %rax cmpq %rax, %r13 jne 0x2a886 movq 0x208(%rbx), %rdi callq 0x26040 movq 0x200(%rbx), %rdi callq 0x26040 movq %r12, 0x208(%rbx) movq %r15, 0x200(%rbx) movl 0x1f8(%rbx), %r13d movsd 0x8(%rsp), %xmm0 jmp 0x2a8eb movq 0x200(%rbx), %r15 movslq %r13d, %rax movsd %xmm0, (%r15,%rax,8) testq %r14, %r14 je 0x2a939 movq %r14, %rdi callq 0x20d0 incl %eax movslq %eax, %rdi callq 0x24985 movq 0x208(%rbx), %rcx movslq 0x1f8(%rbx), %rdx movq %rax, (%rcx,%rdx,8) movq 0x208(%rbx), %rax movq (%rax,%rdx,8), %rdi movq %r14, %rsi callq 0x21b0 movl 0x1f8(%rbx), %r13d jmp 0x2a948 movq 0x208(%rbx), %rcx movq $0x0, (%rcx,%rax,8) incl %r13d movl %r13d, 0x1f8(%rbx) addq $0x10, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
_ZN12LefDefParser7lefiPin24addAntennaPartialCutAreaEdPKc: push r15 push r14 push r13 push r12 push rbx sub rsp, 10h mov r14, rsi mov rbx, rdi mov r13d, [rdi+1F8h] cmp r13d, [rdi+1FCh] jnz loc_2A8E4 movsd [rsp+38h+var_30], xmm0 lea eax, ds:0[r13*2] test r13d, r13d mov ecx, 2 cmovnz ecx, eax mov [rbx+1FCh], ecx movsxd r12, ecx shl r12, 3 mov rdi, r12; this call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong) mov r15, rax mov rdi, r12; this call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong) mov r12, rax test r13d, r13d jle short loc_2A8AF xor eax, eax loc_2A886: mov rcx, [rbx+208h] mov rcx, [rcx+rax*8] mov [r12+rax*8], rcx mov rcx, [rbx+200h] movsd xmm0, qword ptr [rcx+rax*8] movsd qword ptr [r15+rax*8], xmm0 inc rax cmp r13, rax jnz short loc_2A886 loc_2A8AF: mov rdi, [rbx+208h]; this call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) mov rdi, [rbx+200h]; this call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *) mov [rbx+208h], r12 mov [rbx+200h], r15 mov r13d, [rbx+1F8h] movsd xmm0, [rsp+38h+var_30] jmp short loc_2A8EB loc_2A8E4: mov r15, [rbx+200h] loc_2A8EB: movsxd rax, r13d movsd qword ptr [r15+rax*8], xmm0 test r14, r14 jz short loc_2A939 mov rdi, r14 call _strlen inc eax movsxd rdi, eax; this call _ZN12LefDefParser9lefMallocEm; LefDefParser::lefMalloc(ulong) mov rcx, [rbx+208h] movsxd rdx, dword ptr [rbx+1F8h] mov [rcx+rdx*8], rax mov rax, [rbx+208h] mov rdi, [rax+rdx*8] mov rsi, r14 call _strcpy mov r13d, [rbx+1F8h] jmp short loc_2A948 loc_2A939: mov rcx, [rbx+208h] mov qword ptr [rcx+rax*8], 0 loc_2A948: inc r13d mov [rbx+1F8h], r13d add rsp, 10h pop rbx pop r12 pop r13 pop r14 pop r15 retn
long long LefDefParser::lefiPin::addAntennaPartialCutArea(LefDefParser::lefiPin *this, double a2, char *a3) { long long v3; // r13 int v4; // ecx LefDefParser *v5; // r12 long long v6; // r15 long long v7; // r12 long long i; // rax long long result; // rax int v10; // eax long long v11; // rax long long v12; // rdx v3 = *((unsigned int *)this + 126); if ( (_DWORD)v3 == *((_DWORD *)this + 127) ) { v4 = 2; if ( (_DWORD)v3 ) v4 = 2 * v3; *((_DWORD *)this + 127) = v4; v5 = (LefDefParser *)(8LL * v4); v6 = LefDefParser::lefMalloc(v5); v7 = LefDefParser::lefMalloc(v5); if ( (int)v3 > 0 ) { for ( i = 0LL; i != v3; ++i ) { *(_QWORD *)(v7 + 8 * i) = *(_QWORD *)(*((_QWORD *)this + 65) + 8 * i); *(_QWORD *)(v6 + 8 * i) = *(_QWORD *)(*((_QWORD *)this + 64) + 8 * i); } } LefDefParser::lefFree(*((LefDefParser **)this + 65), a3); LefDefParser::lefFree(*((LefDefParser **)this + 64), a3); *((_QWORD *)this + 65) = v7; *((_QWORD *)this + 64) = v6; LODWORD(v3) = *((_DWORD *)this + 126); } else { v6 = *((_QWORD *)this + 64); } result = (int)v3; *(double *)(v6 + 8LL * (int)v3) = a2; if ( a3 ) { v10 = strlen(a3); v11 = LefDefParser::lefMalloc((LefDefParser *)(v10 + 1)); v12 = *((int *)this + 126); *(_QWORD *)(*((_QWORD *)this + 65) + 8 * v12) = v11; result = strcpy(*(_QWORD *)(*((_QWORD *)this + 65) + 8 * v12), a3); LODWORD(v3) = *((_DWORD *)this + 126); } else { *(_QWORD *)(*((_QWORD *)this + 65) + 8LL * (int)v3) = 0LL; } *((_DWORD *)this + 126) = v3 + 1; return result; }
addAntennaPartialCutArea: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x10 MOV R14,RSI MOV RBX,RDI MOV R13D,dword ptr [RDI + 0x1f8] CMP R13D,dword ptr [RDI + 0x1fc] JNZ 0x0012a8e4 MOVSD qword ptr [RSP + 0x8],XMM0 LEA EAX,[R13*0x2] TEST R13D,R13D MOV ECX,0x2 CMOVNZ ECX,EAX MOV dword ptr [RBX + 0x1fc],ECX MOVSXD R12,ECX SHL R12,0x3 MOV RDI,R12 CALL 0x00124985 MOV R15,RAX MOV RDI,R12 CALL 0x00124985 MOV R12,RAX TEST R13D,R13D JLE 0x0012a8af XOR EAX,EAX LAB_0012a886: MOV RCX,qword ptr [RBX + 0x208] MOV RCX,qword ptr [RCX + RAX*0x8] MOV qword ptr [R12 + RAX*0x8],RCX MOV RCX,qword ptr [RBX + 0x200] MOVSD XMM0,qword ptr [RCX + RAX*0x8] MOVSD qword ptr [R15 + RAX*0x8],XMM0 INC RAX CMP R13,RAX JNZ 0x0012a886 LAB_0012a8af: MOV RDI,qword ptr [RBX + 0x208] CALL 0x00126040 MOV RDI,qword ptr [RBX + 0x200] CALL 0x00126040 MOV qword ptr [RBX + 0x208],R12 MOV qword ptr [RBX + 0x200],R15 MOV R13D,dword ptr [RBX + 0x1f8] MOVSD XMM0,qword ptr [RSP + 0x8] JMP 0x0012a8eb LAB_0012a8e4: MOV R15,qword ptr [RBX + 0x200] LAB_0012a8eb: MOVSXD RAX,R13D MOVSD qword ptr [R15 + RAX*0x8],XMM0 TEST R14,R14 JZ 0x0012a939 MOV RDI,R14 CALL 0x001020d0 INC EAX MOVSXD RDI,EAX CALL 0x00124985 MOV RCX,qword ptr [RBX + 0x208] MOVSXD RDX,dword ptr [RBX + 0x1f8] MOV qword ptr [RCX + RDX*0x8],RAX MOV RAX,qword ptr [RBX + 0x208] MOV RDI,qword ptr [RAX + RDX*0x8] MOV RSI,R14 CALL 0x001021b0 MOV R13D,dword ptr [RBX + 0x1f8] JMP 0x0012a948 LAB_0012a939: MOV RCX,qword ptr [RBX + 0x208] MOV qword ptr [RCX + RAX*0x8],0x0 LAB_0012a948: INC R13D MOV dword ptr [RBX + 0x1f8],R13D ADD RSP,0x10 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* LefDefParser::lefiPin::addAntennaPartialCutArea(double, char const*) */ void __thiscall LefDefParser::lefiPin::addAntennaPartialCutArea(lefiPin *this,double param_1,char *param_2) { long lVar1; long lVar2; ulong uVar3; size_t sVar4; int8 uVar5; int iVar6; char *pcVar7; uint uVar8; uVar8 = *(uint *)(this + 0x1f8); pcVar7 = param_2; if (uVar8 == *(uint *)(this + 0x1fc)) { iVar6 = 2; if (uVar8 != 0) { iVar6 = uVar8 * 2; } *(int *)(this + 0x1fc) = iVar6; lVar1 = lefMalloc((LefDefParser *)((long)iVar6 << 3),(ulong)param_2); lVar2 = lefMalloc((LefDefParser *)((long)iVar6 << 3),(ulong)pcVar7); if (0 < (int)uVar8) { uVar3 = 0; do { *(int8 *)(lVar2 + uVar3 * 8) = *(int8 *)(*(long *)(this + 0x208) + uVar3 * 8); *(int8 *)(lVar1 + uVar3 * 8) = *(int8 *)(*(long *)(this + 0x200) + uVar3 * 8); uVar3 = uVar3 + 1; } while (uVar8 != uVar3); } lefFree(*(void **)(this + 0x208)); lefFree(*(void **)(this + 0x200)); *(long *)(this + 0x208) = lVar2; *(long *)(this + 0x200) = lVar1; uVar8 = *(uint *)(this + 0x1f8); } else { lVar1 = *(long *)(this + 0x200); } *(double *)(lVar1 + (long)(int)uVar8 * 8) = param_1; if (param_2 == (char *)0x0) { *(int8 *)(*(long *)(this + 0x208) + (long)(int)uVar8 * 8) = 0; } else { sVar4 = strlen(param_2); uVar5 = lefMalloc((LefDefParser *)(long)((int)sVar4 + 1),(ulong)pcVar7); iVar6 = *(int *)(this + 0x1f8); *(int8 *)(*(long *)(this + 0x208) + (long)iVar6 * 8) = uVar5; strcpy(*(char **)(*(long *)(this + 0x208) + (long)iVar6 * 8),param_2); uVar8 = *(uint *)(this + 0x1f8); } *(uint *)(this + 0x1f8) = uVar8 + 1; return; }
31,145
minja::Parser::parseMathPlusMinus()
monkey531[P]llama/common/minja.hpp
std::shared_ptr<Expression> parseMathPlusMinus() { static std::regex plus_minus_tok(R"(\+|-(?![}%#]\}))"); auto left = parseMathMulDiv(); if (!left) throw std::runtime_error("Expected left side of 'math plus/minus' expression"); std::string op_str; while (!(op_str = consumeToken(plus_minus_tok)).empty()) { auto right = parseMathMulDiv(); if (!right) throw std::runtime_error("Expected right side of 'math plus/minus' expression"); auto op = op_str == "+" ? BinaryOpExpr::Op::Add : BinaryOpExpr::Op::Sub; left = std::make_shared<BinaryOpExpr>(get_location(), std::move(left), std::move(right), op); } return left; }
O3
cpp
minja::Parser::parseMathPlusMinus(): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x68, %rsp movq %rsi, %r14 movq %rdi, %rbp leaq 0xa4d2f(%rip), %rax # 0x12d0a8 movb (%rax), %al testb %al, %al movq %rdi, 0x8(%rsp) je 0x88577 movq %rbp, %rdi movq %r14, %rsi callq 0x8869a cmpq $0x0, (%rbp) je 0x885d3 leaq 0x50(%rsp), %rax movq %rax, -0x10(%rax) movq $0x0, -0x8(%rax) movb $0x0, (%rax) leaq 0x20(%rsp), %r12 leaq 0x40(%rsp), %r13 leaq 0xa25c5(%rip), %rax # 0x12a988 addq $0x10, %rax movq %rax, 0x60(%rsp) movq %r12, %rdi movq %r14, %rsi leaq 0xa4caf(%rip), %rdx # 0x12d088 movl $0x1, %ecx callq 0x840ae movq %r13, %rdi movq %r12, %rsi callq 0x1aab0 movq 0x8(%rax), %r15 movq 0x20(%rsp), %rdi leaq 0x30(%rsp), %rax cmpq %rax, %rdi je 0x8840e movq 0x30(%rsp), %rsi incq %rsi callq 0x1a8e0 testq %r15, %r15 je 0x88512 leaq 0x10(%rsp), %rdi movq %r14, %rsi callq 0x8869a cmpq $0x0, 0x10(%rsp) je 0x88540 movq %r13, %rdi leaq 0x687ae(%rip), %rsi # 0xf0be8 callq 0x1a220 cmpl $0x1, %eax movl $0x2, %r15d sbbl $0x0, %r15d movq (%r14), %rax movq %rax, 0x20(%rsp) movq 0x8(%r14), %rax movq %rax, 0x28(%rsp) testq %rax, %rax je 0x88477 movq 0xa3b1f(%rip), %rcx # 0x12bf88 cmpb $0x0, (%rcx) je 0x88473 incl 0x8(%rax) jmp 0x88477 lock incl 0x8(%rax) movq 0x20(%r14), %rax movq %r14, %rbx subq 0x10(%r14), %rax movq %rax, 0x30(%rsp) movl $0x58, %edi callq 0x1a8c0 movq %rax, %r13 movabsq $0x100000001, %rax # imm = 0x100000001 movq %rax, 0x8(%r13) movq 0x60(%rsp), %rax movq %rax, (%r13) movq %r13, %r14 addq $0x10, %r14 movq %r14, %rdi movq %r12, %rsi movq 0x8(%rsp), %rbp movq %rbp, %rdx leaq 0x10(%rsp), %rcx movl %r15d, %r8d callq 0x95fec movq %r14, (%rbp) movq 0x8(%rbp), %rdi movq %r13, 0x8(%rbp) testq %rdi, %rdi je 0x884e3 callq 0x6de32 movq 0x28(%rsp), %rdi testq %rdi, %rdi je 0x884f2 callq 0x6de32 movq 0x18(%rsp), %rdi testq %rdi, %rdi leaq 0x40(%rsp), %r13 movq %rbx, %r14 je 0x883cc callq 0x6de32 jmp 0x883cc movq 0x40(%rsp), %rdi leaq 0x50(%rsp), %rax cmpq %rax, %rdi je 0x8852e movq 0x50(%rsp), %rsi incq %rsi callq 0x1a8e0 movq %rbp, %rax addq $0x68, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x10, %edi callq 0x1a450 movq %rax, %r15 leaq 0x67b41(%rip), %rsi # 0xf0095 movq %rax, %rdi callq 0x1a330 movq 0xa3a8d(%rip), %rsi # 0x12bff0 movq 0xa39f6(%rip), %rdx # 0x12bf60 movq %r15, %rdi callq 0x1af10 jmp 0x88605 leaq 0xa4b2a(%rip), %rdi # 0x12d0a8 callq 0x1aff0 testl %eax, %eax je 0x88388 leaq 0xa4af6(%rip), %rdi # 0x12d088 leaq 0x67ab9(%rip), %rsi # 0xf0052 movl $0x10, %edx callq 0x62dc0 leaq -0x254e6(%rip), %rdi # 0x630c4 leaq 0xa4ad7(%rip), %rsi # 0x12d088 leaq 0xa4310(%rip), %rdx # 0x12c8c8 callq 0x1a7c0 leaq 0xa4ae4(%rip), %rdi # 0x12d0a8 callq 0x1a5c0 movq 0x8(%rsp), %rbp jmp 0x88388 movl $0x10, %edi callq 0x1a450 movq %rax, %r15 leaq 0x67a7b(%rip), %rsi # 0xf0062 movq %rax, %rdi callq 0x1a330 movq 0xa39fa(%rip), %rsi # 0x12bff0 movq 0xa3963(%rip), %rdx # 0x12bf60 movq %r15, %rdi callq 0x1af10 movq %rax, %r14 leaq 0xa4a99(%rip), %rdi # 0x12d0a8 callq 0x1a5b0 jmp 0x88691 movq %rax, %r14 jmp 0x8867e movq %rax, %r14 movq %r15, %rdi callq 0x1a690 jmp 0x8867e movq %rax, %r14 jmp 0x8864e movq %rax, %r14 movq %r15, %rdi callq 0x1a690 jmp 0x8864e jmp 0x8865f movq %rax, %r14 movq 0x28(%rsp), %rdi testq %rdi, %rdi je 0x8864e callq 0x6de32 movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x88662 callq 0x6de32 jmp 0x88662 movq %rax, %r14 movq 0x40(%rsp), %rdi leaq 0x50(%rsp), %rax cmpq %rax, %rdi je 0x8867e movq 0x50(%rsp), %rsi incq %rsi callq 0x1a8e0 movq 0x8(%rsp), %rax movq 0x8(%rax), %rdi testq %rdi, %rdi je 0x88691 callq 0x6de32 movq %r14, %rdi callq 0x1af90 nop
_ZN5minja6Parser18parseMathPlusMinusEv: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 68h mov r14, rsi mov rbp, rdi lea rax, _ZGVZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; `guard variable for'minja::Parser::parseMathPlusMinus(void)::plus_minus_tok mov al, [rax] test al, al mov [rsp+98h+var_90], rdi jz loc_88577 loc_88388: mov rdi, rbp; this mov rsi, r14 call _ZN5minja6Parser15parseMathMulDivEv; minja::Parser::parseMathMulDiv(void) cmp qword ptr [rbp+0], 0 jz loc_885D3 lea rax, [rsp+98h+var_48] mov [rax-10h], rax mov qword ptr [rax-8], 0 mov byte ptr [rax], 0 lea r12, [rsp+98h+var_78] lea r13, [rsp+98h+var_58] lea rax, _ZTVSt23_Sp_counted_ptr_inplaceIN5minja12BinaryOpExprESaIS1_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<minja::BinaryOpExpr,std::allocator<minja::BinaryOpExpr>,(__gnu_cxx::_Lock_policy)2> add rax, 10h mov [rsp+98h+var_38], rax loc_883CC: mov rdi, r12 mov rsi, r14 lea rdx, _ZZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; minja::Parser::parseMathPlusMinus(void)::plus_minus_tok mov ecx, 1 call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling) mov rdi, r13 mov rsi, r12 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov r15, [rax+8] mov rdi, [rsp+98h+var_78]; void * lea rax, [rsp+98h+var_68] cmp rdi, rax jz short loc_8840E mov rsi, [rsp+98h+var_68] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8840E: test r15, r15 jz loc_88512 lea rdi, [rsp+98h+var_88]; this mov rsi, r14 call _ZN5minja6Parser15parseMathMulDivEv; minja::Parser::parseMathMulDiv(void) cmp [rsp+98h+var_88], 0 jz loc_88540 mov rdi, r13 lea rsi, aSRN_0+0Bh; "+" call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*) cmp eax, 1 mov r15d, 2 sbb r15d, 0 mov rax, [r14] mov [rsp+98h+var_78], rax mov rax, [r14+8] mov [rsp+98h+var_70], rax test rax, rax jz short loc_88477 mov rcx, cs:__libc_single_threaded_ptr cmp byte ptr [rcx], 0 jz short loc_88473 inc dword ptr [rax+8] jmp short loc_88477 loc_88473: lock inc dword ptr [rax+8] loc_88477: mov rax, [r14+20h] mov rbx, r14 sub rax, [r14+10h] mov [rsp+98h+var_68], rax mov edi, 58h ; 'X'; unsigned __int64 call __Znwm; operator new(ulong) mov r13, rax mov rax, 100000001h mov [r13+8], rax mov rax, [rsp+98h+var_38] mov [r13+0], rax mov r14, r13 add r14, 10h mov rdi, r14 mov rsi, r12 mov rbp, [rsp+98h+var_90] mov rdx, rbp lea rcx, [rsp+98h+var_88] mov r8d, r15d call _ZN5minja12BinaryOpExprC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEES7_NS0_2OpE; minja::BinaryOpExpr::BinaryOpExpr(minja::Location const&,std::shared_ptr<minja::Expression> &&,std::shared_ptr<minja::Expression> &,minja::BinaryOpExpr::Op) mov [rbp+0], r14 mov rdi, [rbp+8] mov [rbp+8], r13 test rdi, rdi jz short loc_884E3 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_884E3: mov rdi, [rsp+98h+var_70] test rdi, rdi jz short loc_884F2 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_884F2: mov rdi, [rsp+98h+var_80] test rdi, rdi lea r13, [rsp+98h+var_58] mov r14, rbx jz loc_883CC call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) jmp loc_883CC loc_88512: mov rdi, [rsp+98h+var_58]; void * lea rax, [rsp+98h+var_48] cmp rdi, rax jz short loc_8852E mov rsi, [rsp+98h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8852E: mov rax, rbp add rsp, 68h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_88540: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r15, rax lea rsi, aExpectedRightS_4; "Expected right side of 'math plus/minus"... mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r15; void * call ___cxa_throw jmp loc_88605 loc_88577: lea rdi, _ZGVZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; __guard * call ___cxa_guard_acquire test eax, eax jz loc_88388 lea rdi, _ZZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; minja::Parser::parseMathPlusMinus(void)::plus_minus_tok lea rsi, asc_F0052; "\\+|-(?![}%#]\\})" mov edx, 10h call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type) lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc lea rsi, _ZZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; obj lea rdx, __dso_handle; lpdso_handle call ___cxa_atexit lea rdi, _ZGVZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; __guard * call ___cxa_guard_release mov rbp, [rsp+98h+var_90] jmp loc_88388 loc_885D3: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r15, rax lea rsi, aExpectedLeftSi_4; "Expected left side of 'math plus/minus'"... mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r15; void * call ___cxa_throw loc_88605: mov r14, rax lea rdi, _ZGVZN5minja6Parser18parseMathPlusMinusEvE14plus_minus_tokB5cxx11; __guard * call ___cxa_guard_abort jmp short loc_88691 mov r14, rax jmp short loc_8867E mov r14, rax mov rdi, r15; void * call ___cxa_free_exception jmp short loc_8867E mov r14, rax jmp short loc_8864E mov r14, rax mov rdi, r15; void * call ___cxa_free_exception jmp short loc_8864E jmp short loc_8865F mov r14, rax mov rdi, [rsp+98h+var_70] test rdi, rdi jz short loc_8864E call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_8864E: mov rdi, [rsp+98h+var_80] test rdi, rdi jz short loc_88662 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) jmp short loc_88662 loc_8865F: mov r14, rax loc_88662: mov rdi, [rsp+98h+var_58]; void * lea rax, [rsp+98h+var_48] cmp rdi, rax jz short loc_8867E mov rsi, [rsp+98h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_8867E: mov rax, [rsp+98h+var_90] mov rdi, [rax+8] test rdi, rdi jz short loc_88691 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_88691: mov rdi, r14 call __Unwind_Resume
minja::Parser * minja::Parser::parseMathPlusMinus(volatile signed __int32 **this, long long a2) { minja::Parser *v2; // rbp long long v3; // r15 unsigned int v4; // r15d volatile signed __int32 *v5; // rax long long **v6; // r13 volatile signed __int32 *v7; // rdi std::runtime_error *v9; // r15 std::runtime_error *exception; // r15 long long v12; // [rsp+10h] [rbp-88h] BYREF volatile signed __int32 *v13; // [rsp+18h] [rbp-80h] void *v14; // [rsp+20h] [rbp-78h] BYREF volatile signed __int32 *v15; // [rsp+28h] [rbp-70h] long long v16; // [rsp+30h] [rbp-68h] BYREF void *v17[2]; // [rsp+40h] [rbp-58h] BYREF _QWORD v18[2]; // [rsp+50h] [rbp-48h] BYREF long long *v19; // [rsp+60h] [rbp-38h] v2 = (minja::Parser *)this; if ( !(_BYTE)`guard variable for'minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11] && __cxa_guard_acquire(&`guard variable for'minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11]) ) { std::basic_regex<char,std::regex_traits<char>>::basic_regex( (long long)&minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11], (long long)"\\+|-(?![}%#]\\})", 0x10u); __cxa_atexit( (void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex, &minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11], &_dso_handle); __cxa_guard_release(&`guard variable for'minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11]); v2 = (minja::Parser *)this; } minja::Parser::parseMathMulDiv(v2); if ( !*(_QWORD *)v2 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Expected left side of 'math plus/minus' expression"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v17[0] = v18; v17[1] = 0LL; LOBYTE(v18[0]) = 0; v19 = &`vtable for'std::_Sp_counted_ptr_inplace<minja::BinaryOpExpr,std::allocator<minja::BinaryOpExpr>,(__gnu_cxx::_Lock_policy)2> + 2; while ( 1 ) { minja::Parser::consumeToken( (long long)&v14, a2, (long long)&minja::Parser::parseMathPlusMinus(void)::plus_minus_tok[abi:cxx11], 1u); v3 = *(_QWORD *)(std::string::operator=(v17, &v14) + 8); if ( v14 != &v16 ) operator delete(v14, v16 + 1); if ( !v3 ) break; minja::Parser::parseMathMulDiv((minja::Parser *)&v12); if ( !v12 ) { v9 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(v9, "Expected right side of 'math plus/minus' expression"); __cxa_throw( v9, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v4 = (((unsigned int)std::string::compare(v17, "+") | 0x200000000uLL) - 1) >> 32; v14 = *(void **)a2; v5 = *(volatile signed __int32 **)(a2 + 8); v15 = v5; if ( v5 ) { if ( _libc_single_threaded ) ++*((_DWORD *)v5 + 2); else _InterlockedIncrement(v5 + 2); } v16 = *(_QWORD *)(a2 + 32) - *(_QWORD *)(a2 + 16); v6 = (long long **)operator new(0x58uLL); v6[1] = (long long *)0x100000001LL; *v6 = v19; v2 = (minja::Parser *)this; minja::BinaryOpExpr::BinaryOpExpr(v6 + 2, &v14, this, &v12, v4); *this = (volatile signed __int32 *)(v6 + 2); v7 = this[1]; this[1] = (volatile signed __int32 *)v6; if ( v7 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v7); if ( v15 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v15); if ( v13 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v13); } if ( v17[0] != v18 ) operator delete(v17[0], v18[0] + 1LL); return v2; }
parseMathPlusMinus: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x68 MOV R14,RSI MOV RBP,RDI LEA RAX,[0x22d0a8] MOV AL,byte ptr [RAX] TEST AL,AL MOV qword ptr [RSP + 0x8],RDI JZ 0x00188577 LAB_00188388: MOV RDI,RBP MOV RSI,R14 CALL 0x0018869a CMP qword ptr [RBP],0x0 JZ 0x001885d3 LEA RAX,[RSP + 0x50] MOV qword ptr [RAX + -0x10],RAX MOV qword ptr [RAX + -0x8],0x0 MOV byte ptr [RAX],0x0 LEA R12,[RSP + 0x20] LEA R13,[RSP + 0x40] LEA RAX,[0x22a988] ADD RAX,0x10 MOV qword ptr [RSP + 0x60],RAX LAB_001883cc: MOV RDI,R12 MOV RSI,R14 LEA RDX,[0x22d088] MOV ECX,0x1 CALL 0x001840ae MOV RDI,R13 MOV RSI,R12 CALL 0x0011aab0 MOV R15,qword ptr [RAX + 0x8] MOV RDI,qword ptr [RSP + 0x20] LEA RAX,[RSP + 0x30] CMP RDI,RAX JZ 0x0018840e MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x0011a8e0 LAB_0018840e: TEST R15,R15 JZ 0x00188512 LAB_00188417: LEA RDI,[RSP + 0x10] MOV RSI,R14 CALL 0x0018869a CMP qword ptr [RSP + 0x10],0x0 JZ 0x00188540 MOV RDI,R13 LEA RSI,[0x1f0be8] CALL 0x0011a220 CMP EAX,0x1 MOV R15D,0x2 SBB R15D,0x0 MOV RAX,qword ptr [R14] MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [R14 + 0x8] MOV qword ptr [RSP + 0x28],RAX TEST RAX,RAX JZ 0x00188477 MOV RCX,qword ptr [0x0022bf88] CMP byte ptr [RCX],0x0 JZ 0x00188473 INC dword ptr [RAX + 0x8] JMP 0x00188477 LAB_00188473: INC.LOCK dword ptr [RAX + 0x8] LAB_00188477: MOV RAX,qword ptr [R14 + 0x20] MOV RBX,R14 SUB RAX,qword ptr [R14 + 0x10] MOV qword ptr [RSP + 0x30],RAX LAB_00188487: MOV EDI,0x58 CALL 0x0011a8c0 LAB_00188491: MOV R13,RAX MOV RAX,0x100000001 MOV qword ptr [R13 + 0x8],RAX MOV RAX,qword ptr [RSP + 0x60] MOV qword ptr [R13],RAX MOV R14,R13 ADD R14,0x10 MOV RDI,R14 MOV RSI,R12 MOV RBP,qword ptr [RSP + 0x8] MOV RDX,RBP LEA RCX,[RSP + 0x10] MOV R8D,R15D CALL 0x00195fec MOV qword ptr [RBP],R14 MOV RDI,qword ptr [RBP + 0x8] MOV qword ptr [RBP + 0x8],R13 TEST RDI,RDI JZ 0x001884e3 CALL 0x0016de32 LAB_001884e3: MOV RDI,qword ptr [RSP + 0x28] TEST RDI,RDI JZ 0x001884f2 CALL 0x0016de32 LAB_001884f2: MOV RDI,qword ptr [RSP + 0x18] TEST RDI,RDI LEA R13,[RSP + 0x40] MOV R14,RBX JZ 0x001883cc CALL 0x0016de32 JMP 0x001883cc LAB_00188512: MOV RDI,qword ptr [RSP + 0x40] LEA RAX,[RSP + 0x50] CMP RDI,RAX JZ 0x0018852e MOV RSI,qword ptr [RSP + 0x50] INC RSI CALL 0x0011a8e0 LAB_0018852e: MOV RAX,RBP ADD RSP,0x68 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00188540: MOV EDI,0x10 CALL 0x0011a450 MOV R15,RAX LAB_0018854d: LEA RSI,[0x1f0095] MOV RDI,RAX CALL 0x0011a330 LAB_0018855c: MOV RSI,qword ptr [0x0022bff0] MOV RDX,qword ptr [0x0022bf60] MOV RDI,R15 CALL 0x0011af10 LAB_00188577: LEA RDI,[0x22d0a8] CALL 0x0011aff0 TEST EAX,EAX JZ 0x00188388 LAB_0018858b: LEA RDI,[0x22d088] LEA RSI,[0x1f0052] MOV EDX,0x10 CALL 0x00162dc0 LAB_001885a3: LEA RDI,[0x1630c4] LEA RSI,[0x22d088] LEA RDX,[0x22c8c8] CALL 0x0011a7c0 LEA RDI,[0x22d0a8] CALL 0x0011a5c0 MOV RBP,qword ptr [RSP + 0x8] JMP 0x00188388 LAB_001885d3: MOV EDI,0x10 CALL 0x0011a450 MOV R15,RAX LAB_001885e0: LEA RSI,[0x1f0062] MOV RDI,RAX CALL 0x0011a330 LAB_001885ef: MOV RSI,qword ptr [0x0022bff0] MOV RDX,qword ptr [0x0022bf60] MOV RDI,R15 CALL 0x0011af10
/* minja::Parser::parseMathPlusMinus() */ long * minja::Parser::parseMathPlusMinus(void) { _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this; int iVar1; long lVar2; int8 *puVar3; runtime_error *prVar4; int8 *in_RSI; long *in_RDI; long local_88; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_80; long *local_78; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_70; long local_68 [2]; int1 *local_58; int8 local_50; int1 local_48; int7 uStack_47; int **local_38; if (parseMathPlusMinus()::plus_minus_tok_abi_cxx11_ == '\0') { iVar1 = __cxa_guard_acquire(&parseMathPlusMinus()::plus_minus_tok_abi_cxx11_); if (iVar1 != 0) { /* try { // try from 0018858b to 001885a2 has its CatchHandler @ 00188605 */ std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex ((basic_regex<char,std::__cxx11::regex_traits<char>> *) parseMathPlusMinus()::plus_minus_tok_abi_cxx11_,"\\+|-(?![}%#]\\})",0x10); __cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex, parseMathPlusMinus()::plus_minus_tok_abi_cxx11_,&__dso_handle); __cxa_guard_release(&parseMathPlusMinus()::plus_minus_tok_abi_cxx11_); } } parseMathMulDiv(); if (*in_RDI != 0) { local_58 = &local_48; local_50 = 0; local_48 = 0; local_38 = &PTR___Sp_counted_ptr_inplace_0022a998; while( true ) { /* try { // try from 001883cc to 001883e2 has its CatchHandler @ 0018865f */ consumeToken((string *)&local_78,in_RSI,parseMathPlusMinus()::plus_minus_tok_abi_cxx11_,1); lVar2 = std::__cxx11::string::operator=((string *)&local_58,(string *)&local_78); lVar2 = *(long *)(lVar2 + 8); if (local_78 != local_68) { operator_delete(local_78,local_68[0] + 1); } if (lVar2 == 0) break; /* try { // try from 00188417 to 00188423 has its CatchHandler @ 0018863a */ parseMathMulDiv(); if (local_88 == 0) { prVar4 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0018854d to 0018855b has its CatchHandler @ 0018862d */ std::runtime_error::runtime_error (prVar4,"Expected right side of \'math plus/minus\' expression"); /* try { // try from 0018855c to 00188571 has its CatchHandler @ 00188628 */ /* WARNING: Subroutine does not return */ __cxa_throw(prVar4,PTR_typeinfo_0022bff0,PTR__runtime_error_0022bf60); } iVar1 = std::__cxx11::string::compare((char *)&local_58); local_78 = (long *)*in_RSI; local_70 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RSI[1]; if (local_70 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { if (*PTR___libc_single_threaded_0022bf88 == '\0') { LOCK(); *(int *)(local_70 + 8) = *(int *)(local_70 + 8) + 1; UNLOCK(); } else { *(int *)(local_70 + 8) = *(int *)(local_70 + 8) + 1; } } local_68[0] = in_RSI[4] - in_RSI[2]; /* try { // try from 00188487 to 00188490 has its CatchHandler @ 0018863c */ puVar3 = (int8 *)operator_new(0x58); puVar3[1] = 0x100000001; *puVar3 = local_38; BinaryOpExpr::BinaryOpExpr ((BinaryOpExpr *)(puVar3 + 2),(string *)&local_78,in_RDI,&local_88, 2 - (uint)(iVar1 == 0)); *in_RDI = (long)(puVar3 + 2); this = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)in_RDI[1]; in_RDI[1] = (long)puVar3; if (this != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this); } if (local_70 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_70); } if (local_80 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_80); } } if (local_58 != &local_48) { operator_delete(local_58,CONCAT71(uStack_47,local_48) + 1); } return in_RDI; } prVar4 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001885e0 to 001885ee has its CatchHandler @ 0018861b */ std::runtime_error::runtime_error(prVar4,"Expected left side of \'math plus/minus\' expression"); /* try { // try from 001885ef to 00188604 has its CatchHandler @ 00188616 */ /* WARNING: Subroutine does not return */ __cxa_throw(prVar4,PTR_typeinfo_0022bff0,PTR__runtime_error_0022bf60); }
31,146
get_charset_number_internal
eloqsql/mysys/charset.c
static uint get_charset_number_internal(const char *charset_name, uint cs_flags) { CHARSET_INFO **cs; for (cs= all_charsets; cs < all_charsets + array_elements(all_charsets); cs++) { if ( cs[0] && cs[0]->cs_name.str && (cs[0]->state & cs_flags) && !my_strcasecmp(&my_charset_latin1, cs[0]->cs_name.str, charset_name)) return cs[0]->number; } return 0; }
O0
c
get_charset_number_internal: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) leaq 0x35c8aa(%rip), %rax # 0x388700 movq %rax, -0x20(%rbp) leaq 0x35c89f(%rip), %rax # 0x388700 addq $0x4000, %rax # imm = 0x4000 cmpq %rax, -0x20(%rbp) jae 0x2bee7 movq -0x20(%rbp), %rax cmpq $0x0, (%rax) je 0x2bed4 movq -0x20(%rbp), %rax movq (%rax), %rax cmpq $0x0, 0x10(%rax) je 0x2bed4 movq -0x20(%rbp), %rax movq (%rax), %rax movl 0xc(%rax), %eax andl -0x14(%rbp), %eax cmpl $0x0, %eax je 0x2bed4 leaq 0x24a992(%rip), %rax # 0x276830 movq 0xc0(%rax), %rax movq 0x40(%rax), %rax movq -0x20(%rbp), %rcx movq (%rcx), %rcx movq 0x10(%rcx), %rsi movq -0x10(%rbp), %rdx leaq 0x24a971(%rip), %rdi # 0x276830 callq *%rax cmpl $0x0, %eax jne 0x2bed4 movq -0x20(%rbp), %rax movq (%rax), %rax movl (%rax), %eax movl %eax, -0x4(%rbp) jmp 0x2beee jmp 0x2bed6 movq -0x20(%rbp), %rax addq $0x8, %rax movq %rax, -0x20(%rbp) jmp 0x2be5a movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopw (%rax,%rax)
get_charset_number_internal: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_14], esi lea rax, all_charsets mov [rbp+var_20], rax loc_2BE5A: lea rax, all_charsets add rax, 4000h cmp [rbp+var_20], rax jnb short loc_2BEE7 mov rax, [rbp+var_20] cmp qword ptr [rax], 0 jz short loc_2BED4 mov rax, [rbp+var_20] mov rax, [rax] cmp qword ptr [rax+10h], 0 jz short loc_2BED4 mov rax, [rbp+var_20] mov rax, [rax] mov eax, [rax+0Ch] and eax, [rbp+var_14] cmp eax, 0 jz short loc_2BED4 lea rax, my_charset_latin1 mov rax, [rax+0C0h] mov rax, [rax+40h] mov rcx, [rbp+var_20] mov rcx, [rcx] mov rsi, [rcx+10h] mov rdx, [rbp+var_10] lea rdi, my_charset_latin1 call rax cmp eax, 0 jnz short loc_2BED4 mov rax, [rbp+var_20] mov rax, [rax] mov eax, [rax] mov [rbp+var_4], eax jmp short loc_2BEEE loc_2BED4: jmp short $+2 loc_2BED6: mov rax, [rbp+var_20] add rax, 8 mov [rbp+var_20], rax jmp loc_2BE5A loc_2BEE7: mov [rbp+var_4], 0 loc_2BEEE: mov eax, [rbp+var_4] add rsp, 20h pop rbp retn
long long get_charset_number_internal(long long a1, int a2) { unsigned int **i; // [rsp+0h] [rbp-20h] for ( i = (unsigned int **)all_charsets; i < &all_charsets[2048]; ++i ) { if ( *i && *((_QWORD *)*i + 2) && (a2 & (*i)[3]) != 0 && !(*(unsigned int ( **)(void *, _QWORD, long long))(*((_QWORD *)&my_charset_latin1 + 24) + 64LL))( &my_charset_latin1, *((_QWORD *)*i + 2), a1) ) { return **i; } } return 0; }
get_charset_number_internal: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI LEA RAX,[0x488700] MOV qword ptr [RBP + -0x20],RAX LAB_0012be5a: LEA RAX,[0x488700] ADD RAX,0x4000 CMP qword ptr [RBP + -0x20],RAX JNC 0x0012bee7 MOV RAX,qword ptr [RBP + -0x20] CMP qword ptr [RAX],0x0 JZ 0x0012bed4 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] CMP qword ptr [RAX + 0x10],0x0 JZ 0x0012bed4 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX + 0xc] AND EAX,dword ptr [RBP + -0x14] CMP EAX,0x0 JZ 0x0012bed4 LEA RAX,[0x376830] MOV RAX,qword ptr [RAX + 0xc0] MOV RAX,qword ptr [RAX + 0x40] MOV RCX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RCX] MOV RSI,qword ptr [RCX + 0x10] MOV RDX,qword ptr [RBP + -0x10] LEA RDI,[0x376830] CALL RAX CMP EAX,0x0 JNZ 0x0012bed4 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x4],EAX JMP 0x0012beee LAB_0012bed4: JMP 0x0012bed6 LAB_0012bed6: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x8 MOV qword ptr [RBP + -0x20],RAX JMP 0x0012be5a LAB_0012bee7: MOV dword ptr [RBP + -0x4],0x0 LAB_0012beee: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x20 POP RBP RET
int4 get_charset_number_internal(int8 param_1,uint param_2) { int iVar1; long *local_28; local_28 = &all_charsets; while( true ) { if ((long *)0x48c6ff < local_28) { return 0; } if ((((*local_28 != 0) && (*(long *)(*local_28 + 0x10) != 0)) && ((*(uint *)(*local_28 + 0xc) & param_2) != 0)) && (iVar1 = (**(code **)(PTR_my_collation_8bit_simple_ci_handler_003768f0 + 0x40)) (&my_charset_latin1,*(int8 *)(*local_28 + 0x10),param_1), iVar1 == 0 )) break; local_28 = local_28 + 1; } return *(int4 *)*local_28; }
31,147
void google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>(google::protobuf::UnknownFieldSet const&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/metadata_lite.h
PROTOBUF_NOINLINE void DoMergeFrom(const T& other) { mutable_unknown_fields<T>()->MergeFrom(other); }
O3
c
void google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>(google::protobuf::UnknownFieldSet const&): pushq %rbx movq %rsi, %rbx movq %rdi, %rax movq (%rdi), %rdi testb $0x1, %dil je 0x652ed andq $-0x4, %rdi addq $0x8, %rdi movq %rbx, %rsi popq %rbx jmp 0x1859f8 movq %rax, %rdi callq 0x65218 movq %rax, %rdi jmp 0x652e4
_ZN6google8protobuf8internal16InternalMetadata11DoMergeFromINS0_15UnknownFieldSetEEEvRKT_: push rbx mov rbx, rsi mov rax, rdi mov rdi, [rdi] test dil, 1 jz short loc_652ED and rdi, 0FFFFFFFFFFFFFFFCh add rdi, 8; this loc_652E4: mov rsi, rbx; google::protobuf::UnknownFieldSet * pop rbx jmp _ZN6google8protobuf15UnknownFieldSet9MergeFromERKS1_; google::protobuf::UnknownFieldSet::MergeFrom(google::protobuf::UnknownFieldSet const&) loc_652ED: mov rdi, rax call _ZN6google8protobuf8internal16InternalMetadata27mutable_unknown_fields_slowINS0_15UnknownFieldSetEEEPT_v; google::protobuf::internal::InternalMetadata::mutable_unknown_fields_slow<google::protobuf::UnknownFieldSet>(void) mov rdi, rax jmp short loc_652E4
long long google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>( long long *a1, const google::protobuf::UnknownFieldSet *a2) { long long v3; // rdi google::protobuf::UnknownFieldSet *v4; // rdi v3 = *a1; if ( (v3 & 1) != 0 ) v4 = (google::protobuf::UnknownFieldSet *)((v3 & 0xFFFFFFFFFFFFFFFCLL) + 8); else v4 = (google::protobuf::UnknownFieldSet *)google::protobuf::internal::InternalMetadata::mutable_unknown_fields_slow<google::protobuf::UnknownFieldSet>(a1); return google::protobuf::UnknownFieldSet::MergeFrom(v4, a2); }
DoMergeFrom<google::protobuf::UnknownFieldSet>: PUSH RBX MOV RBX,RSI MOV RAX,RDI MOV RDI,qword ptr [RDI] TEST DIL,0x1 JZ 0x001652ed AND RDI,-0x4 ADD RDI,0x8 LAB_001652e4: MOV RSI,RBX POP RBX JMP 0x002859f8 LAB_001652ed: MOV RDI,RAX CALL 0x00165218 MOV RDI,RAX JMP 0x001652e4
/* void google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>(google::protobuf::UnknownFieldSet const&) */ void __thiscall google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet> (InternalMetadata *this,UnknownFieldSet *param_1) { UnknownFieldSet *this_00; if ((*(ulong *)this & 1) == 0) { this_00 = mutable_unknown_fields_slow<google::protobuf::UnknownFieldSet>(this); } else { this_00 = (UnknownFieldSet *)((*(ulong *)this & 0xfffffffffffffffc) + 8); } UnknownFieldSet::MergeFrom(this_00,param_1); return; }
31,148
alloc_dynamic
eloqsql/mysys/array.c
void *alloc_dynamic(DYNAMIC_ARRAY *array) { DBUG_ENTER("alloc_dynamic"); DBUG_ASSERT(array->size_of_element); /* Ensure init() is called */ if (array->elements == array->max_element) { char *new_ptr; if (array->malloc_flags & MY_INIT_BUFFER_USED) { /* In this scenario, the buffer is statically preallocated, so we have to create an all-new malloc since we overflowed */ if (!(new_ptr= (char *) my_malloc(array->m_psi_key, (array->max_element+ array->alloc_increment) * array->size_of_element, MYF(array->malloc_flags | MY_WME)))) DBUG_RETURN(0); if (array->elements) memcpy(new_ptr, array->buffer, array->elements * array->size_of_element); array->malloc_flags&= ~MY_INIT_BUFFER_USED; } else if (!(new_ptr=(char*) my_realloc(array->m_psi_key, array->buffer, (array->max_element+ array->alloc_increment) * array->size_of_element, MYF(MY_WME | MY_ALLOW_ZERO_PTR | array->malloc_flags)))) DBUG_RETURN(0); array->buffer= (uchar*) new_ptr; array->max_element+=array->alloc_increment; } DBUG_RETURN(array->buffer+(array->elements++ * array->size_of_element)); }
O0
c
alloc_dynamic: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) jmp 0x30b8e movq -0x10(%rbp), %rax movl 0x8(%rax), %eax movq -0x10(%rbp), %rcx cmpl 0xc(%rcx), %eax jne 0x30cb7 movq -0x10(%rbp), %rax movq 0x20(%rax), %rax andq $0x100, %rax # imm = 0x100 cmpq $0x0, %rax je 0x30c4a movq -0x10(%rbp), %rax movl 0x18(%rax), %edi movq -0x10(%rbp), %rax movl 0xc(%rax), %eax movq -0x10(%rbp), %rcx addl 0x10(%rcx), %eax movq -0x10(%rbp), %rcx imull 0x14(%rcx), %eax movl %eax, %eax movl %eax, %esi movq -0x10(%rbp), %rax movq 0x20(%rax), %rdx orq $0x10, %rdx callq 0x2f560 movq %rax, -0x18(%rbp) cmpq $0x0, %rax jne 0x30c05 jmp 0x30bf8 movq $0x0, -0x8(%rbp) jmp 0x30ce0 movq -0x10(%rbp), %rax cmpl $0x0, 0x8(%rax) je 0x30c32 movq -0x18(%rbp), %rdi movq -0x10(%rbp), %rax movq (%rax), %rsi movq -0x10(%rbp), %rax movl 0x8(%rax), %eax movq -0x10(%rbp), %rcx imull 0x14(%rcx), %eax movl %eax, %eax movl %eax, %edx callq 0x24230 movq -0x10(%rbp), %rax movabsq $0xfffffeff, %rcx # imm = 0xFFFFFEFF andq 0x20(%rax), %rcx movq %rcx, 0x20(%rax) jmp 0x30c9b movq -0x10(%rbp), %rax movl 0x18(%rax), %edi movq -0x10(%rbp), %rax movq (%rax), %rsi movq -0x10(%rbp), %rax movl 0xc(%rax), %eax movq -0x10(%rbp), %rcx addl 0x10(%rcx), %eax movq -0x10(%rbp), %rcx imull 0x14(%rcx), %eax movl %eax, %eax movl %eax, %edx movq -0x10(%rbp), %rax movq 0x20(%rax), %rcx orq $0x50, %rcx callq 0x2f730 movq %rax, -0x18(%rbp) cmpq $0x0, %rax jne 0x30c99 jmp 0x30c8f movq $0x0, -0x8(%rbp) jmp 0x30ce0 jmp 0x30c9b movq -0x18(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, (%rax) movq -0x10(%rbp), %rax movl 0x10(%rax), %ecx movq -0x10(%rbp), %rax addl 0xc(%rax), %ecx movl %ecx, 0xc(%rax) jmp 0x30cb9 movq -0x10(%rbp), %rax movq (%rax), %rax movq -0x10(%rbp), %rdx movl 0x8(%rdx), %ecx movl %ecx, %esi addl $0x1, %esi movl %esi, 0x8(%rdx) movq -0x10(%rbp), %rdx imull 0x14(%rdx), %ecx movl %ecx, %ecx addq %rcx, %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x20, %rsp popq %rbp retq nopw (%rax,%rax)
alloc_dynamic: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi jmp short $+2 loc_30B8E: mov rax, [rbp+var_10] mov eax, [rax+8] mov rcx, [rbp+var_10] cmp eax, [rcx+0Ch] jnz loc_30CB7 mov rax, [rbp+var_10] mov rax, [rax+20h] and rax, 100h cmp rax, 0 jz loc_30C4A mov rax, [rbp+var_10] mov edi, [rax+18h] mov rax, [rbp+var_10] mov eax, [rax+0Ch] mov rcx, [rbp+var_10] add eax, [rcx+10h] mov rcx, [rbp+var_10] imul eax, [rcx+14h] mov eax, eax mov esi, eax mov rax, [rbp+var_10] mov rdx, [rax+20h] or rdx, 10h call my_malloc mov [rbp+var_18], rax cmp rax, 0 jnz short loc_30C05 jmp short $+2 loc_30BF8: mov [rbp+var_8], 0 jmp loc_30CE0 loc_30C05: mov rax, [rbp+var_10] cmp dword ptr [rax+8], 0 jz short loc_30C32 mov rdi, [rbp+var_18] mov rax, [rbp+var_10] mov rsi, [rax] mov rax, [rbp+var_10] mov eax, [rax+8] mov rcx, [rbp+var_10] imul eax, [rcx+14h] mov eax, eax mov edx, eax call _memcpy loc_30C32: mov rax, [rbp+var_10] mov rcx, 0FFFFFEFFh and rcx, [rax+20h] mov [rax+20h], rcx jmp short loc_30C9B loc_30C4A: mov rax, [rbp+var_10] mov edi, [rax+18h] mov rax, [rbp+var_10] mov rsi, [rax] mov rax, [rbp+var_10] mov eax, [rax+0Ch] mov rcx, [rbp+var_10] add eax, [rcx+10h] mov rcx, [rbp+var_10] imul eax, [rcx+14h] mov eax, eax mov edx, eax mov rax, [rbp+var_10] mov rcx, [rax+20h] or rcx, 50h call my_realloc mov [rbp+var_18], rax cmp rax, 0 jnz short loc_30C99 jmp short $+2 loc_30C8F: mov [rbp+var_8], 0 jmp short loc_30CE0 loc_30C99: jmp short $+2 loc_30C9B: mov rcx, [rbp+var_18] mov rax, [rbp+var_10] mov [rax], rcx mov rax, [rbp+var_10] mov ecx, [rax+10h] mov rax, [rbp+var_10] add ecx, [rax+0Ch] mov [rax+0Ch], ecx loc_30CB7: jmp short $+2 loc_30CB9: mov rax, [rbp+var_10] mov rax, [rax] mov rdx, [rbp+var_10] mov ecx, [rdx+8] mov esi, ecx add esi, 1 mov [rdx+8], esi mov rdx, [rbp+var_10] imul ecx, [rdx+14h] mov ecx, ecx add rax, rcx mov [rbp+var_8], rax loc_30CE0: mov rax, [rbp+var_8] add rsp, 20h pop rbp retn
long long alloc_dynamic(long long *a1) { long long v1; // rax int v2; // ecx long long v4; // [rsp+8h] [rbp-18h] if ( *((_DWORD *)a1 + 2) != *((_DWORD *)a1 + 3) ) goto LABEL_11; if ( (a1[4] & 0x100) == 0 ) { v4 = my_realloc( *((_DWORD *)a1 + 6), *a1, (unsigned int)(*((_DWORD *)a1 + 5) * (*((_DWORD *)a1 + 4) + *((_DWORD *)a1 + 3))), *((_BYTE *)a1 + 32) | 0x50u); if ( !v4 ) return 0LL; goto LABEL_10; } v4 = my_malloc( *((_DWORD *)a1 + 6), (unsigned int)(*((_DWORD *)a1 + 5) * (*((_DWORD *)a1 + 4) + *((_DWORD *)a1 + 3))), *((_DWORD *)a1 + 8) | 0x10u); if ( v4 ) { if ( *((_DWORD *)a1 + 2) ) memcpy(v4, *a1, (unsigned int)(*((_DWORD *)a1 + 5) * *((_DWORD *)a1 + 2))); a1[4] &= 0xFFFFFEFFuLL; LABEL_10: *a1 = v4; *((_DWORD *)a1 + 3) += *((_DWORD *)a1 + 4); LABEL_11: v1 = *a1; v2 = *((_DWORD *)a1 + 2); *((_DWORD *)a1 + 2) = v2 + 1; return (unsigned int)(*((_DWORD *)a1 + 5) * v2) + v1; } return 0LL; }
alloc_dynamic: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI JMP 0x00130b8e LAB_00130b8e: MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x10] CMP EAX,dword ptr [RCX + 0xc] JNZ 0x00130cb7 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] AND RAX,0x100 CMP RAX,0x0 JZ 0x00130c4a MOV RAX,qword ptr [RBP + -0x10] MOV EDI,dword ptr [RAX + 0x18] MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0xc] MOV RCX,qword ptr [RBP + -0x10] ADD EAX,dword ptr [RCX + 0x10] MOV RCX,qword ptr [RBP + -0x10] IMUL EAX,dword ptr [RCX + 0x14] MOV EAX,EAX MOV ESI,EAX MOV RAX,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RAX + 0x20] OR RDX,0x10 CALL 0x0012f560 MOV qword ptr [RBP + -0x18],RAX CMP RAX,0x0 JNZ 0x00130c05 JMP 0x00130bf8 LAB_00130bf8: MOV qword ptr [RBP + -0x8],0x0 JMP 0x00130ce0 LAB_00130c05: MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x8],0x0 JZ 0x00130c32 MOV RDI,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x10] IMUL EAX,dword ptr [RCX + 0x14] MOV EAX,EAX MOV EDX,EAX CALL 0x00124230 LAB_00130c32: MOV RAX,qword ptr [RBP + -0x10] MOV RCX,0xfffffeff AND RCX,qword ptr [RAX + 0x20] MOV qword ptr [RAX + 0x20],RCX JMP 0x00130c9b LAB_00130c4a: MOV RAX,qword ptr [RBP + -0x10] MOV EDI,dword ptr [RAX + 0x18] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0xc] MOV RCX,qword ptr [RBP + -0x10] ADD EAX,dword ptr [RCX + 0x10] MOV RCX,qword ptr [RBP + -0x10] IMUL EAX,dword ptr [RCX + 0x14] MOV EAX,EAX MOV EDX,EAX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX + 0x20] OR RCX,0x50 CALL 0x0012f730 MOV qword ptr [RBP + -0x18],RAX CMP RAX,0x0 JNZ 0x00130c99 JMP 0x00130c8f LAB_00130c8f: MOV qword ptr [RBP + -0x8],0x0 JMP 0x00130ce0 LAB_00130c99: JMP 0x00130c9b LAB_00130c9b: MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x10] ADD ECX,dword ptr [RAX + 0xc] MOV dword ptr [RAX + 0xc],ECX LAB_00130cb7: JMP 0x00130cb9 LAB_00130cb9: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RDX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RDX + 0x8] MOV ESI,ECX ADD ESI,0x1 MOV dword ptr [RDX + 0x8],ESI MOV RDX,qword ptr [RBP + -0x10] IMUL ECX,dword ptr [RDX + 0x14] MOV ECX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x8],RAX LAB_00130ce0: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x20 POP RBP RET
long alloc_dynamic(long *param_1) { long lVar1; void *local_20; if ((int)param_1[1] == *(int *)((long)param_1 + 0xc)) { if ((param_1[4] & 0x100U) == 0) { local_20 = (void *)my_realloc((int)param_1[3],*param_1, (*(int *)((long)param_1 + 0xc) + (int)param_1[2]) * *(int *)((long)param_1 + 0x14),param_1[4] | 0x50); if (local_20 == (void *)0x0) { return 0; } } else { local_20 = (void *)my_malloc((int)param_1[3], (*(int *)((long)param_1 + 0xc) + (int)param_1[2]) * *(int *)((long)param_1 + 0x14),param_1[4] | 0x10); if (local_20 == (void *)0x0) { return 0; } if ((int)param_1[1] != 0) { memcpy(local_20,(void *)*param_1, (ulong)(uint)((int)param_1[1] * *(int *)((long)param_1 + 0x14))); } param_1[4] = param_1[4] & 0xfffffeff; } *param_1 = (long)local_20; *(int *)((long)param_1 + 0xc) = (int)param_1[2] + *(int *)((long)param_1 + 0xc); } lVar1 = param_1[1]; *(int *)(param_1 + 1) = (int)lVar1 + 1; return *param_1 + (ulong)(uint)((int)lVar1 * *(int *)((long)param_1 + 0x14)); }
31,149
mcp::request::to_json[abi:cxx11]() const
hkr04[P]cpp-mcp/include/mcp_message.h
json to_json() const { json j = { {"jsonrpc", jsonrpc}, {"method", method} }; if (!params.empty()) { j["params"] = params; } if (!is_notification()) { j["id"] = id; } return j; }
O1
c
mcp::request::to_json[abi:cxx11]() const: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xb0, %rsp movq %rsi, %r15 movq %rdi, %rbx leaq 0x80(%rsp), %r13 leaq 0x2e007(%rip), %rsi # 0x43c88 movq %r13, %r12 movq %r13, %rdi callq 0x337ee leaq 0x98(%rsp), %r12 movq $0x0, -0x8(%r12) movq %r12, %rdi movq %r15, %rsi callq 0x157fe leaq 0x80(%rsp), %rsi movq $0x0, 0x28(%rsi) leaq 0x20(%rsp), %r14 movl $0x2, %edx movq %r14, %rdi movl $0x1, %ecx movl $0x2, %r8d callq 0xae76 leaq 0x38(%rsp), %r14 movq $0x0, -0x8(%r14) leaq 0x50(%rsp), %r13 leaq 0x2e229(%rip), %rsi # 0x43f17 movq %r13, %r12 movq %r13, %rdi callq 0x171da leaq 0x68(%rsp), %r12 movq $0x0, -0x8(%r12) leaq 0x30(%r15), %rsi movq %r12, %rdi callq 0x157fe leaq 0x50(%rsp), %rsi movq $0x0, 0x28(%rsi) movl $0x2, %edx movq %r14, %rdi movl $0x1, %ecx movl $0x2, %r8d callq 0xae76 leaq 0x20(%rsp), %rsi movq $0x0, 0x28(%rsi) movl $0x2, %edx movq %rbx, %rdi movl $0x1, %ecx movl $0x2, %r8d callq 0xae76 movl $0x18, %r14d leaq (%rsp,%r14), %rdi addq $0x20, %rdi callq 0xbc82 addq $-0x18, %r14 cmpq $-0x18, %r14 jne 0x15d63 movl $0x18, %r14d leaq (%rsp,%r14), %rdi addq $0x50, %rdi callq 0xbc82 addq $-0x18, %r14 cmpq $-0x18, %r14 jne 0x15d80 movl $0x18, %r14d leaq (%rsp,%r14), %rdi addq $0x80, %rdi callq 0xbc82 addq $-0x18, %r14 cmpq $-0x18, %r14 jne 0x15d9d movzbl 0x50(%r15), %eax leal -0x1(%rax), %ecx cmpl $0x2, %ecx jae 0x15dd3 movq 0x58(%r15), %rax movq (%rax), %rcx cmpq 0x8(%rax), %rcx jne 0x15dd7 jmp 0x15e16 testl %eax, %eax je 0x15e16 leaq 0x50(%r15), %rsi leaq 0x10(%rsp), %rdi callq 0xc954 leaq 0x2e132(%rip), %rsi # 0x43f1e movq %rbx, %rdi callq 0xb1a6 movb (%rax), %cl leaq 0x10(%rsp), %rdi movb (%rdi), %dl movb %dl, (%rax) movb %cl, (%rdi) movq 0x8(%rax), %rcx movq 0x8(%rdi), %rdx movq %rdx, 0x8(%rax) movq %rcx, 0x8(%rdi) callq 0xbc82 cmpb $0x0, 0x20(%r15) je 0x15e5b addq $0x20, %r15 movq %rsp, %rdi movq %r15, %rsi callq 0xc954 leaq 0x2c555(%rip), %rsi # 0x42388 movq %rbx, %rdi callq 0xb1a6 movb (%rax), %cl movq %rsp, %rdi movb (%rdi), %dl movb %dl, (%rax) movb %cl, (%rdi) movq 0x8(%rax), %rcx movq 0x8(%rdi), %rdx movq %rdx, 0x8(%rax) movq %rcx, 0x8(%rdi) callq 0xbc82 movq %rbx, %rax addq $0xb0, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %r15 leaq 0x10(%rsp), %rdi jmp 0x15e7f movq %rax, %r15 movq %rsp, %rdi callq 0xbc82 jmp 0x15ed7 movq %rax, %r15 movl $0x18, %ebx leaq (%rsp,%rbx), %rdi addq $0x20, %rdi callq 0xbc82 addq $-0x18, %rbx cmpq $-0x18, %rbx jne 0x15e8e xorl %ebx, %ebx jmp 0x15eae movq %rax, %r15 movb $0x1, %bl movl $0x18, %r12d leaq (%rsp,%r12), %rdi addq $0x50, %rdi callq 0xbc82 addq $-0x18, %r12 cmpq $-0x18, %r12 jne 0x15eb4 jmp 0x15f01 movq %rax, %r15 movb $0x1, %bl jmp 0x15f01 movq %rax, %r15 movq %rbx, %rdi callq 0xbc82 jmp 0x15f43 movq %rax, %r15 movb $0x1, %bl cmpq %r12, %r13 je 0x15f01 leaq 0x50(%rsp), %r13 addq $-0x18, %r12 movq %r12, %rdi callq 0xbc82 cmpq %r13, %r12 jne 0x15ef0 movl $0x18, %r12d leaq (%rsp,%r12), %rdi addq $0x80, %rdi callq 0xbc82 addq $-0x18, %r12 cmpq $-0x18, %r12 jne 0x15f07 leaq 0x20(%rsp), %r12 cmpq %r14, %r12 setne %al andb %bl, %al cmpb $0x1, %al jne 0x15f43 addq $-0x18, %r14 movq %r14, %rdi callq 0xbc82 cmpq %r12, %r14 jne 0x15f32 movq %r15, %rdi callq 0x8960 movq %rax, %r15 movb $0x1, %bl leaq 0x20(%rsp), %r14 cmpq %r12, %r13 je 0x15f21 leaq 0x80(%rsp), %r13 addq $-0x18, %r12 movq %r12, %rdi callq 0xbc82 cmpq %r13, %r12 jne 0x15f62 jmp 0x15f21
_ZNK3mcp7request7to_jsonB5cxx11Ev: push r15 push r14 push r13 push r12 push rbx sub rsp, 0B0h mov r15, rsi mov rbx, rdi lea r13, [rsp+0D8h+var_58] lea rsi, aJsonrpc; "jsonrpc" mov r12, r13 mov rdi, r13 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA8_KcA8_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_ lea r12, [rsp+0D8h+var_40] mov qword ptr [r12-8], 0 mov rdi, r12 mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRKS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_ lea rsi, [rsp+0D8h+var_58] mov qword ptr [rsi+28h], 0 lea r14, [rsp+0D8h+var_B8] mov edx, 2 mov rdi, r14 mov ecx, 1 mov r8d, 2 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t) lea r14, [rsp+0D8h+var_A0] mov qword ptr [r14-8], 0 lea r13, [rsp+0D8h+var_88] lea rsi, aMethod; "method" mov r12, r13 mov rdi, r13 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA7_KcA7_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_ lea r12, [rsp+0D8h+var_70] mov qword ptr [r12-8], 0 lea rsi, [r15+30h] mov rdi, r12 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRKS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_ lea rsi, [rsp+0D8h+var_88] mov qword ptr [rsi+28h], 0 mov edx, 2 mov rdi, r14 mov ecx, 1 mov r8d, 2 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t) lea rsi, [rsp+0D8h+var_B8] mov qword ptr [rsi+28h], 0 mov edx, 2 mov rdi, rbx mov ecx, 1 mov r8d, 2 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t) mov r14d, 18h loc_15D63: lea rdi, [rsp+r14+0D8h+var_D8] add rdi, 20h ; ' ' call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add r14, 0FFFFFFFFFFFFFFE8h cmp r14, 0FFFFFFFFFFFFFFE8h jnz short loc_15D63 mov r14d, 18h loc_15D80: lea rdi, [rsp+r14+0D8h+var_D8] add rdi, 50h ; 'P' call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add r14, 0FFFFFFFFFFFFFFE8h cmp r14, 0FFFFFFFFFFFFFFE8h jnz short loc_15D80 mov r14d, 18h loc_15D9D: lea rdi, [rsp+r14+0D8h+var_D8] add rdi, 80h call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add r14, 0FFFFFFFFFFFFFFE8h cmp r14, 0FFFFFFFFFFFFFFE8h jnz short loc_15D9D movzx eax, byte ptr [r15+50h] lea ecx, [rax-1] cmp ecx, 2 jnb short loc_15DD3 mov rax, [r15+58h] mov rcx, [rax] cmp rcx, [rax+8] jnz short loc_15DD7 jmp short loc_15E16 loc_15DD3: test eax, eax jz short loc_15E16 loc_15DD7: lea rsi, [r15+50h] lea rdi, [rsp+0D8h+var_C8] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) lea rsi, aParams; "params" mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *) mov cl, [rax] lea rdi, [rsp+0D8h+var_C8] mov dl, [rdi] mov [rax], dl mov [rdi], cl mov rcx, [rax+8] mov rdx, [rdi+8] mov [rax+8], rdx mov [rdi+8], rcx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() loc_15E16: cmp byte ptr [r15+20h], 0 jz short loc_15E5B add r15, 20h ; ' ' mov rdi, rsp mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) lea rsi, aBasicStringMCo+27h; "id" mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *) mov cl, [rax] mov rdi, rsp mov dl, [rdi] mov [rax], dl mov [rdi], cl mov rcx, [rax+8] mov rdx, [rdi+8] mov [rax+8], rdx mov [rdi+8], rcx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() loc_15E5B: mov rax, rbx add rsp, 0B0h pop rbx pop r12 pop r13 pop r14 pop r15 retn mov r15, rax lea rdi, [rsp+arg_8] jmp short loc_15E7F mov r15, rax mov rdi, rsp loc_15E7F: call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() jmp short loc_15ED7 mov r15, rax mov ebx, 18h loc_15E8E: lea rdi, [rsp+rbx+0] add rdi, 20h ; ' ' call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add rbx, 0FFFFFFFFFFFFFFE8h cmp rbx, 0FFFFFFFFFFFFFFE8h jnz short loc_15E8E xor ebx, ebx jmp short loc_15EAE mov r15, rax mov bl, 1 loc_15EAE: mov r12d, 18h loc_15EB4: lea rdi, [rsp+r12+0] add rdi, 50h ; 'P' call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add r12, 0FFFFFFFFFFFFFFE8h cmp r12, 0FFFFFFFFFFFFFFE8h jnz short loc_15EB4 jmp short loc_15F01 mov r15, rax mov bl, 1 jmp short loc_15F01 mov r15, rax loc_15ED7: mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() jmp short loc_15F43 mov r15, rax mov bl, 1 cmp r13, r12 jz short loc_15F01 lea r13, [rsp+arg_48] loc_15EF0: add r12, 0FFFFFFFFFFFFFFE8h mov rdi, r12 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() cmp r12, r13 jnz short loc_15EF0 loc_15F01: mov r12d, 18h loc_15F07: lea rdi, [rsp+r12+0] add rdi, 80h call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() add r12, 0FFFFFFFFFFFFFFE8h cmp r12, 0FFFFFFFFFFFFFFE8h jnz short loc_15F07 loc_15F21: lea r12, [rsp+arg_18] cmp r12, r14 setnz al and al, bl cmp al, 1 jnz short loc_15F43 loc_15F32: add r14, 0FFFFFFFFFFFFFFE8h mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() cmp r14, r12 jnz short loc_15F32 loc_15F43: mov rdi, r15 call __Unwind_Resume mov r15, rax mov bl, 1 lea r14, [rsp+arg_18] cmp r13, r12 jz short loc_15F21 lea r13, [rsp+arg_78] loc_15F62: add r12, 0FFFFFFFFFFFFFFE8h mov rdi, r12 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() cmp r12, r13 jnz short loc_15F62 jmp short loc_15F21
long long mcp::request::to_json[abi:cxx11](long long a1, long long a2) { long long i; // r14 long long j; // r14 long long k; // r14 long long v5; // rax char v6; // cl long long v7; // rcx long long v8; // rax char v9; // cl long long v10; // rcx _BYTE v12[8]; // [rsp+0h] [rbp-D8h] BYREF long long v13; // [rsp+8h] [rbp-D0h] _BYTE v14[8]; // [rsp+10h] [rbp-C8h] BYREF long long v15; // [rsp+18h] [rbp-C0h] _BYTE v16[16]; // [rsp+20h] [rbp-B8h] BYREF long long v17; // [rsp+30h] [rbp-A8h] _BYTE v18[16]; // [rsp+38h] [rbp-A0h] BYREF long long v19; // [rsp+48h] [rbp-90h] _BYTE v20[16]; // [rsp+50h] [rbp-88h] BYREF long long v21; // [rsp+60h] [rbp-78h] _BYTE v22[16]; // [rsp+68h] [rbp-70h] BYREF long long v23; // [rsp+78h] [rbp-60h] _BYTE v24[16]; // [rsp+80h] [rbp-58h] BYREF long long v25; // [rsp+90h] [rbp-48h] _BYTE v26[16]; // [rsp+98h] [rbp-40h] BYREF long long v27; // [rsp+A8h] [rbp-30h] ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA8_KcA8_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_( v24, "jsonrpc"); v25 = 0LL; ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRKS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_( (long long)v26, a2); v27 = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( v16, v24, 2LL, 1LL, 2LL); v17 = 0LL; ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA7_KcA7_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_( v20, "method"); v21 = 0LL; ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRKS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_( (long long)v22, a2 + 48); v23 = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( v18, v20, 2LL, 1LL, 2LL); v19 = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( a1, v16, 2LL, 1LL, 2LL); for ( i = 24LL; i != -24; i -= 24LL ) nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v16[i]); for ( j = 24LL; j != -24; j -= 24LL ) nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v20[j]); for ( k = 24LL; k != -24; k -= 24LL ) nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v24[k]); if ( (unsigned int)*(unsigned __int8 *)(a2 + 80) - 1 >= 2 ) { if ( !*(_BYTE *)(a2 + 80) ) goto LABEL_12; goto LABEL_11; } if ( **(_QWORD **)(a2 + 88) != *(_QWORD *)(*(_QWORD *)(a2 + 88) + 8LL) ) { LABEL_11: nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( (long long)v14, (unsigned __int8 *)(a2 + 80)); v5 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>( a1, (long long)"params"); v6 = *(_BYTE *)v5; *(_BYTE *)v5 = v14[0]; v14[0] = v6; v7 = *(_QWORD *)(v5 + 8); *(_QWORD *)(v5 + 8) = v15; v15 = v7; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v14); } LABEL_12: if ( *(_BYTE *)(a2 + 32) ) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( (long long)v12, (unsigned __int8 *)(a2 + 32)); v8 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>( a1, (long long)"id"); v9 = *(_BYTE *)v8; *(_BYTE *)v8 = v12[0]; v12[0] = v9; v10 = *(_QWORD *)(v8 + 8); *(_QWORD *)(v8 + 8) = v13; v13 = v10; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v12); } return a1; }
to_json[abi:cxx11]: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xb0 MOV R15,RSI MOV RBX,RDI LEA R13,[RSP + 0x80] LAB_00115c7a: LEA RSI,[0x143c88] MOV R12,R13 MOV RDI,R13 CALL 0x001337ee LEA R12,[RSP + 0x98] MOV qword ptr [R12 + -0x8],0x0 MOV RDI,R12 MOV RSI,R15 CALL 0x001157fe LEA RSI,[RSP + 0x80] MOV qword ptr [RSI + 0x28],0x0 LAB_00115cb8: LEA R14,[RSP + 0x20] MOV EDX,0x2 MOV RDI,R14 MOV ECX,0x1 MOV R8D,0x2 CALL 0x0010ae76 LEA R14,[RSP + 0x38] MOV qword ptr [R14 + -0x8],0x0 LEA R13,[RSP + 0x50] LAB_00115ce7: LEA RSI,[0x143f17] MOV R12,R13 MOV RDI,R13 CALL 0x001171da LEA R12,[RSP + 0x68] MOV qword ptr [R12 + -0x8],0x0 LEA RSI,[R15 + 0x30] MOV RDI,R12 CALL 0x001157fe LEA RSI,[RSP + 0x50] MOV qword ptr [RSI + 0x28],0x0 LAB_00115d20: MOV EDX,0x2 MOV RDI,R14 MOV ECX,0x1 MOV R8D,0x2 CALL 0x0010ae76 LEA RSI,[RSP + 0x20] MOV qword ptr [RSI + 0x28],0x0 LAB_00115d45: MOV EDX,0x2 MOV RDI,RBX MOV ECX,0x1 MOV R8D,0x2 CALL 0x0010ae76 MOV R14D,0x18 LAB_00115d63: LEA RDI,[RSP + R14*0x1] ADD RDI,0x20 CALL 0x0010bc82 ADD R14,-0x18 CMP R14,-0x18 JNZ 0x00115d63 MOV R14D,0x18 LAB_00115d80: LEA RDI,[RSP + R14*0x1] ADD RDI,0x50 CALL 0x0010bc82 ADD R14,-0x18 CMP R14,-0x18 JNZ 0x00115d80 MOV R14D,0x18 LAB_00115d9d: LEA RDI,[RSP + R14*0x1] ADD RDI,0x80 CALL 0x0010bc82 ADD R14,-0x18 CMP R14,-0x18 JNZ 0x00115d9d MOVZX EAX,byte ptr [R15 + 0x50] LEA ECX,[RAX + -0x1] CMP ECX,0x2 JNC 0x00115dd3 MOV RAX,qword ptr [R15 + 0x58] MOV RCX,qword ptr [RAX] CMP RCX,qword ptr [RAX + 0x8] JNZ 0x00115dd7 JMP 0x00115e16 LAB_00115dd3: TEST EAX,EAX JZ 0x00115e16 LAB_00115dd7: LEA RSI,[R15 + 0x50] LEA RDI,[RSP + 0x10] CALL 0x0010c954 LAB_00115de5: LEA RSI,[0x143f1e] MOV RDI,RBX CALL 0x0010b1a6 MOV CL,byte ptr [RAX] LEA RDI,[RSP + 0x10] MOV DL,byte ptr [RDI] MOV byte ptr [RAX],DL MOV byte ptr [RDI],CL MOV RCX,qword ptr [RAX + 0x8] MOV RDX,qword ptr [RDI + 0x8] MOV qword ptr [RAX + 0x8],RDX MOV qword ptr [RDI + 0x8],RCX CALL 0x0010bc82 LAB_00115e16: CMP byte ptr [R15 + 0x20],0x0 JZ 0x00115e5b LAB_00115e1d: ADD R15,0x20 MOV RDI,RSP MOV RSI,R15 CALL 0x0010c954 LAB_00115e2c: LEA RSI,[0x142388] MOV RDI,RBX CALL 0x0010b1a6 LAB_00115e3b: MOV CL,byte ptr [RAX] MOV RDI,RSP MOV DL,byte ptr [RDI] MOV byte ptr [RAX],DL MOV byte ptr [RDI],CL MOV RCX,qword ptr [RAX + 0x8] MOV RDX,qword ptr [RDI + 0x8] MOV qword ptr [RAX + 0x8],RDX MOV qword ptr [RDI + 0x8],RCX CALL 0x0010bc82 LAB_00115e5b: MOV RAX,RBX ADD RSP,0xb0 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* mcp::request::to_json[abi:cxx11]() const */ void mcp::request::to_json_abi_cxx11_(void) { basic_json bVar1; int8 uVar2; basic_json *pbVar3; long in_RSI; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *in_RDI; long lVar4; basic_json local_d8 [8]; int8 local_d0; basic_json local_c8 [8]; int8 local_c0; data local_b8 [16]; int8 local_a8; int1 local_a0 [16]; int8 local_90; data local_88 [16]; int8 local_78; int1 local_70 [16]; int8 local_60; data local_58 [16]; int8 local_48; int1 local_40 [16]; int8 local_30; /* try { // try from 00115c7a to 00115ca7 has its CatchHandler @ 00115f4b */ _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA8_KcA8_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_ (local_58,"jsonrpc"); local_48 = 0; _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRKS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_ (local_40); local_30 = 0; /* try { // try from 00115cb8 to 00115cd4 has its CatchHandler @ 00115ecd */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(local_b8,local_58,2,1,2); local_a8 = 0; /* try { // try from 00115ce7 to 00115d12 has its CatchHandler @ 00115ee1 */ _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRA7_KcA7_cTnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SK_EE5valueEiE4typeELi0EEEOT_ (local_88,"method"); local_78 = 0; _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IRKS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_ (local_70,in_RSI + 0x30); local_60 = 0; /* try { // try from 00115d20 to 00115d37 has its CatchHandler @ 00115ea9 */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(local_a0,local_88,2,1,2); local_90 = 0; /* try { // try from 00115d45 to 00115d5c has its CatchHandler @ 00115e86 */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(); lVar4 = 0x18; do { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_b8 + lVar4); lVar4 = lVar4 + -0x18; } while (lVar4 != -0x18); lVar4 = 0x18; do { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_88 + lVar4); lVar4 = lVar4 + -0x18; } while (lVar4 != -0x18); lVar4 = 0x18; do { nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_58 + lVar4); lVar4 = lVar4 + -0x18; } while (lVar4 != -0x18); if (*(byte *)(in_RSI + 0x50) - 1 < 2) { if (**(long **)(in_RSI + 0x58) == (*(long **)(in_RSI + 0x58))[1]) goto LAB_00115e16; } else if (*(byte *)(in_RSI + 0x50) == 0) goto LAB_00115e16; /* try { // try from 00115dd7 to 00115de4 has its CatchHandler @ 00115ed4 */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)local_c8,(basic_json *)(in_RSI + 0x50)); /* try { // try from 00115de5 to 00115df3 has its CatchHandler @ 00115e6f */ pbVar3 = nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator[]<char_const>(in_RDI,"params"); bVar1 = *pbVar3; *pbVar3 = local_c8[0]; uVar2 = *(int8 *)(pbVar3 + 8); *(int8 *)(pbVar3 + 8) = local_c0; local_c8[0] = bVar1; local_c0 = uVar2; nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_c8); LAB_00115e16: if (*(char *)(in_RSI + 0x20) != '\0') { /* try { // try from 00115e1d to 00115e2b has its CatchHandler @ 00115ed4 */ nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *)local_d8,(basic_json *)(in_RSI + 0x20)); /* try { // try from 00115e2c to 00115e3a has its CatchHandler @ 00115e79 */ pbVar3 = nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::operator[]<char_const>(in_RDI,"id"); bVar1 = *pbVar3; *pbVar3 = local_d8[0]; uVar2 = *(int8 *)(pbVar3 + 8); *(int8 *)(pbVar3 + 8) = local_d0; local_d8[0] = bVar1; local_d0 = uVar2; nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data((data *)local_d8); } return; }
31,150
composition_solid_source_over
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-blend.c
static void composition_solid_source_over(uint32_t* dest, int length, uint32_t color, uint32_t const_alpha) { if(const_alpha != 255) color = BYTE_MUL(color, const_alpha); uint32_t ialpha = 255 - plutovg_alpha(color); for(int i = 0; i < length; i++) { dest[i] = color + BYTE_MUL(dest[i], ialpha); } }
O1
c
composition_solid_source_over: cmpl $0xff, %ecx je 0x20c73 movl $0xff00ff, %r8d # imm = 0xFF00FF movl %edx, %eax andl %r8d, %eax imull %ecx, %eax movl %eax, %r9d shrl $0x8, %r9d andl %r8d, %r9d movl $0x800080, %r10d # imm = 0x800080 addl %r10d, %eax addl %r9d, %eax shrl $0x8, %eax andl %r8d, %eax shrl $0x8, %edx andl %r8d, %edx imull %ecx, %edx movl %edx, %ecx shrl $0x8, %ecx andl %r8d, %ecx addl %r10d, %edx addl %ecx, %edx andl $0xff00ff00, %edx # imm = 0xFF00FF00 orl %eax, %edx testl %esi, %esi jle 0x20ce7 pushq %rbx movl %edx, %eax notl %eax shrl $0x18, %eax movl %esi, %ecx xorl %esi, %esi movl $0xff00ff, %r8d # imm = 0xFF00FF movl $0x800080, %r9d # imm = 0x800080 movl (%rdi,%rsi,4), %r11d movl %r11d, %r10d andl %r8d, %r10d imull %eax, %r10d movl %r10d, %ebx shrl $0x8, %ebx andl %r8d, %ebx addl %r9d, %r10d addl %ebx, %r10d shrl $0x8, %r10d andl %r8d, %r10d shrl $0x8, %r11d andl %r8d, %r11d imull %eax, %r11d movl %r11d, %ebx shrl $0x8, %ebx andl %r8d, %ebx addl %r9d, %r11d addl %ebx, %r11d andl $0xff00ff00, %r11d # imm = 0xFF00FF00 addl %edx, %r10d addl %r11d, %r10d movl %r10d, (%rdi,%rsi,4) incq %rsi cmpq %rsi, %rcx jne 0x20c8f popq %rbx retq
composition_solid_source_over: cmp ecx, 0FFh jz short loc_20C73 mov r8d, 0FF00FFh mov eax, edx and eax, r8d imul eax, ecx mov r9d, eax shr r9d, 8 and r9d, r8d mov r10d, 800080h add eax, r10d add eax, r9d shr eax, 8 and eax, r8d shr edx, 8 and edx, r8d imul edx, ecx mov ecx, edx shr ecx, 8 and ecx, r8d add edx, r10d add edx, ecx and edx, 0FF00FF00h or edx, eax loc_20C73: test esi, esi jle short locret_20CE7 push rbx mov eax, edx not eax shr eax, 18h mov ecx, esi xor esi, esi mov r8d, 0FF00FFh mov r9d, 800080h loc_20C8F: mov r11d, [rdi+rsi*4] mov r10d, r11d and r10d, r8d imul r10d, eax mov ebx, r10d shr ebx, 8 and ebx, r8d add r10d, r9d add r10d, ebx shr r10d, 8 and r10d, r8d shr r11d, 8 and r11d, r8d imul r11d, eax mov ebx, r11d shr ebx, 8 and ebx, r8d add r11d, r9d add r11d, ebx and r11d, 0FF00FF00h add r10d, edx add r10d, r11d mov [rdi+rsi*4], r10d inc rsi cmp rcx, rsi jnz short loc_20C8F pop rbx locret_20CE7: retn
void composition_solid_source_over(long long a1, int a2, unsigned int a3, int a4) { unsigned int v4; // eax long long v5; // rcx long long i; // rsi if ( a4 != 255 ) a3 = (((((a4 * (a3 & 0xFF00FF)) >> 8) & 0xFF00FF) + a4 * (a3 & 0xFF00FF) + 8388736) >> 8) & 0xFF00FF | ((((a4 * ((a3 >> 8) & 0xFF00FF)) >> 8) & 0xFF00FF) + a4 * ((a3 >> 8) & 0xFF00FF) + 8388736) & 0xFF00FF00; if ( a2 > 0 ) { v5 = (unsigned int)a2; for ( i = 0LL; i != v5; ++i ) { v4 = ~a3 >> 24; *(_DWORD *)(a1 + 4 * i) = (((((v4 * ((*(_DWORD *)(a1 + 4 * i) >> 8) & 0xFF00FF)) >> 8) & 0xFF00FF) + v4 * ((*(_DWORD *)(a1 + 4 * i) >> 8) & 0xFF00FF) + 8388736) & 0xFF00FF00) + a3 + ((((((v4 * (*(_DWORD *)(a1 + 4 * i) & 0xFF00FF)) >> 8) & 0xFF00FF) + v4 * (*(_DWORD *)(a1 + 4 * i) & 0xFF00FF) + 8388736) >> 8) & 0xFF00FF); } } }
composition_solid_source_over: CMP ECX,0xff JZ 0x00120c73 MOV R8D,0xff00ff MOV EAX,EDX AND EAX,R8D IMUL EAX,ECX MOV R9D,EAX SHR R9D,0x8 AND R9D,R8D MOV R10D,0x800080 ADD EAX,R10D ADD EAX,R9D SHR EAX,0x8 AND EAX,R8D SHR EDX,0x8 AND EDX,R8D IMUL EDX,ECX MOV ECX,EDX SHR ECX,0x8 AND ECX,R8D ADD EDX,R10D ADD EDX,ECX AND EDX,0xff00ff00 OR EDX,EAX LAB_00120c73: TEST ESI,ESI JLE 0x00120ce7 PUSH RBX MOV EAX,EDX NOT EAX SHR EAX,0x18 MOV ECX,ESI XOR ESI,ESI MOV R8D,0xff00ff MOV R9D,0x800080 LAB_00120c8f: MOV R11D,dword ptr [RDI + RSI*0x4] MOV R10D,R11D AND R10D,R8D IMUL R10D,EAX MOV EBX,R10D SHR EBX,0x8 AND EBX,R8D ADD R10D,R9D ADD R10D,EBX SHR R10D,0x8 AND R10D,R8D SHR R11D,0x8 AND R11D,R8D IMUL R11D,EAX MOV EBX,R11D SHR EBX,0x8 AND EBX,R8D ADD R11D,R9D ADD R11D,EBX AND R11D,0xff00ff00 ADD R10D,EDX ADD R10D,R11D MOV dword ptr [RDI + RSI*0x4],R10D INC RSI CMP RCX,RSI JNZ 0x00120c8f POP RBX LAB_00120ce7: RET
void composition_solid_source_over(long param_1,uint param_2,uint param_3,int param_4) { uint uVar1; uint uVar2; ulong uVar3; if (param_4 != 0xff) { uVar1 = (param_3 & 0xff00ff) * param_4; uVar2 = (param_3 >> 8 & 0xff00ff) * param_4; param_3 = uVar2 + 0x800080 + (uVar2 >> 8 & 0xff00ff) & 0xff00ff00 | uVar1 + 0x800080 + (uVar1 >> 8 & 0xff00ff) >> 8 & 0xff00ff; } if (0 < (int)param_2) { uVar3 = 0; do { uVar1 = *(uint *)(param_1 + uVar3 * 4); uVar2 = (uVar1 & 0xff00ff) * (~param_3 >> 0x18); uVar1 = (uVar1 >> 8 & 0xff00ff) * (~param_3 >> 0x18); *(uint *)(param_1 + uVar3 * 4) = (uVar2 + 0x800080 + (uVar2 >> 8 & 0xff00ff) >> 8 & 0xff00ff) + param_3 + (uVar1 + 0x800080 + (uVar1 >> 8 & 0xff00ff) & 0xff00ff00); uVar3 = uVar3 + 1; } while (param_2 != uVar3); } return; }
31,151
composition_solid_source_over
dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-blend.c
static void composition_solid_source_over(uint32_t* dest, int length, uint32_t color, uint32_t const_alpha) { if(const_alpha != 255) color = BYTE_MUL(color, const_alpha); uint32_t ialpha = 255 - plutovg_alpha(color); for(int i = 0; i < length; i++) { dest[i] = color + BYTE_MUL(dest[i], ialpha); } }
O2
c
composition_solid_source_over: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %edx, %ebp movl %esi, %ebx movq %rdi, %r14 cmpl $0xff, %ecx je 0x1c4ba movl %ebp, %edi movl %ecx, %esi callq 0x1c849 movl %eax, %ebp movl %ebp, %r15d notl %r15d shrl $0x18, %r15d xorl %r12d, %r12d testl %ebx, %ebx cmovlel %r12d, %ebx cmpq %r12, %rbx je 0x1c4e9 movl (%r14,%r12,4), %edi movl %r15d, %esi callq 0x1c849 addl %ebp, %eax movl %eax, (%r14,%r12,4) incq %r12 jmp 0x1c4cd popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq
composition_solid_source_over: push rbp push r15 push r14 push r12 push rbx mov ebp, edx mov ebx, esi mov r14, rdi cmp ecx, 0FFh jz short loc_1C4BA mov edi, ebp mov esi, ecx call BYTE_MUL mov ebp, eax loc_1C4BA: mov r15d, ebp not r15d shr r15d, 18h xor r12d, r12d test ebx, ebx cmovle ebx, r12d loc_1C4CD: cmp rbx, r12 jz short loc_1C4E9 mov edi, [r14+r12*4] mov esi, r15d call BYTE_MUL add eax, ebp mov [r14+r12*4], eax inc r12 jmp short loc_1C4CD loc_1C4E9: pop rbx pop r12 pop r14 pop r15 pop rbp retn
void composition_solid_source_over(long long a1, int a2, unsigned int a3, unsigned int a4) { unsigned int v4; // ebp long long v5; // rbx long long v6; // r12 v4 = a3; v5 = (unsigned int)a2; if ( a4 != 255 ) v4 = BYTE_MUL(a3, a4); v6 = 0LL; if ( a2 <= 0 ) v5 = 0LL; while ( v5 != v6 ) { *(_DWORD *)(a1 + 4 * v6) = v4 + BYTE_MUL(*(unsigned int *)(a1 + 4 * v6), ~v4 >> 24); ++v6; } }
composition_solid_source_over: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV EBP,EDX MOV EBX,ESI MOV R14,RDI CMP ECX,0xff JZ 0x0011c4ba MOV EDI,EBP MOV ESI,ECX CALL 0x0011c849 MOV EBP,EAX LAB_0011c4ba: MOV R15D,EBP NOT R15D SHR R15D,0x18 XOR R12D,R12D TEST EBX,EBX CMOVLE EBX,R12D LAB_0011c4cd: CMP RBX,R12 JZ 0x0011c4e9 MOV EDI,dword ptr [R14 + R12*0x4] MOV ESI,R15D CALL 0x0011c849 ADD EAX,EBP MOV dword ptr [R14 + R12*0x4],EAX INC R12 JMP 0x0011c4cd LAB_0011c4e9: POP RBX POP R12 POP R14 POP R15 POP RBP RET
void composition_solid_source_over(long param_1,uint param_2,uint param_3,int param_4) { int iVar1; ulong uVar2; ulong uVar3; if (param_4 != 0xff) { param_3 = BYTE_MUL(param_3,param_4); } uVar3 = 0; uVar2 = (ulong)param_2; if ((int)param_2 < 1) { uVar2 = uVar3; } for (; uVar2 != uVar3; uVar3 = uVar3 + 1) { iVar1 = BYTE_MUL(*(int4 *)(param_1 + uVar3 * 4),~param_3 >> 0x18); *(uint *)(param_1 + uVar3 * 4) = iVar1 + param_3; } return; }
31,152
split_rtree_node
eloqsql/storage/myisam/rt_split.c
static int split_rtree_node(SplitStruct *node, int n_entries, int all_size, /* Total key's size */ int key_size, int min_size, /* Minimal group size */ int size1, int size2 /* initial group sizes */, double **d_buffer, int n_dim) { SplitStruct *cur; SplitStruct *UNINIT_VAR(a), *UNINIT_VAR(b); double *g1 = reserve_coords(d_buffer, n_dim); double *g2 = reserve_coords(d_buffer, n_dim); SplitStruct *UNINIT_VAR(next); int UNINIT_VAR(next_node); int i; SplitStruct *end = node + n_entries; if (all_size < min_size * 2) { return 1; } cur = node; for (; cur<end; ++cur) { cur->square = count_square(cur->coords, n_dim); cur->n_node = 0; } pick_seeds(node, n_entries, &a, &b, n_dim); a->n_node = 1; b->n_node = 2; copy_coords(g1, a->coords, n_dim); size1 += key_size; copy_coords(g2, b->coords, n_dim); size2 += key_size; for (i=n_entries - 2; i>0; --i) { if (all_size - (size2 + key_size) < min_size) /* Can't write into group 2 */ { mark_all_entries(node, n_entries, 1); break; } if (all_size - (size1 + key_size) < min_size) /* Can't write into group 1 */ { mark_all_entries(node, n_entries, 2); break; } pick_next(node, n_entries, g1, g2, &next, &next_node, n_dim); if (next_node == 1) { size1 += key_size; mbr_join(g1, next->coords, n_dim); } else { size2 += key_size; mbr_join(g2, next->coords, n_dim); } next->n_node = next_node; } return 0; }
O0
c
split_rtree_node: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movl 0x20(%rbp), %eax movq 0x18(%rbp), %rax movl 0x10(%rbp), %eax movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movl %r8d, -0x20(%rbp) movl %r9d, -0x24(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x40(%rbp), %rax movq %rax, -0x40(%rbp) movq 0x18(%rbp), %rdi movl 0x20(%rbp), %esi callq 0xd6510 movq %rax, -0x48(%rbp) movq 0x18(%rbp), %rdi movl 0x20(%rbp), %esi callq 0xd6510 movq %rax, -0x50(%rbp) movq -0x58(%rbp), %rax movq %rax, -0x58(%rbp) movl -0x5c(%rbp), %eax movl %eax, -0x5c(%rbp) movq -0x10(%rbp), %rax movslq -0x14(%rbp), %rcx shlq $0x5, %rcx addq %rcx, %rax movq %rax, -0x68(%rbp) movl -0x18(%rbp), %eax movl -0x20(%rbp), %ecx shll %ecx cmpl %ecx, %eax jge 0xd65e0 movl $0x1, -0x4(%rbp) jmp 0xd676a movq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax cmpq -0x68(%rbp), %rax jae 0xd6623 movq -0x30(%rbp), %rax movq 0x18(%rax), %rdi movl 0x20(%rbp), %esi callq 0xd6780 movq -0x30(%rbp), %rax movsd %xmm0, (%rax) movq -0x30(%rbp), %rax movl $0x0, 0x8(%rax) movq -0x30(%rbp), %rax addq $0x20, %rax movq %rax, -0x30(%rbp) jmp 0xd65e8 movq -0x10(%rbp), %rdi movl -0x14(%rbp), %esi movl 0x20(%rbp), %r8d leaq -0x38(%rbp), %rdx leaq -0x40(%rbp), %rcx callq 0xd67f0 movq -0x38(%rbp), %rax movl $0x1, 0x8(%rax) movq -0x40(%rbp), %rax movl $0x2, 0x8(%rax) movq -0x48(%rbp), %rdi movq -0x38(%rbp), %rax movq 0x18(%rax), %rsi movl 0x20(%rbp), %edx callq 0xd6910 movl -0x1c(%rbp), %eax addl -0x24(%rbp), %eax movl %eax, -0x24(%rbp) movq -0x50(%rbp), %rdi movq -0x40(%rbp), %rax movq 0x18(%rax), %rsi movl 0x20(%rbp), %edx callq 0xd6910 movl -0x1c(%rbp), %eax addl 0x10(%rbp), %eax movl %eax, 0x10(%rbp) movl -0x14(%rbp), %eax subl $0x2, %eax movl %eax, -0x60(%rbp) cmpl $0x0, -0x60(%rbp) jle 0xd6763 movl -0x18(%rbp), %eax movl 0x10(%rbp), %ecx addl -0x1c(%rbp), %ecx subl %ecx, %eax cmpl -0x20(%rbp), %eax jge 0xd66c4 movq -0x10(%rbp), %rdi movl -0x14(%rbp), %esi movl $0x1, %edx callq 0xd6950 jmp 0xd6763 movl -0x18(%rbp), %eax movl -0x24(%rbp), %ecx addl -0x1c(%rbp), %ecx subl %ecx, %eax cmpl -0x20(%rbp), %eax jge 0xd66e7 movq -0x10(%rbp), %rdi movl -0x14(%rbp), %esi movl $0x2, %edx callq 0xd6950 jmp 0xd6763 movq -0x10(%rbp), %rdi movl -0x14(%rbp), %esi movq -0x48(%rbp), %rdx movq -0x50(%rbp), %rcx movl 0x20(%rbp), %eax leaq -0x58(%rbp), %r8 leaq -0x5c(%rbp), %r9 movl %eax, (%rsp) callq 0xd69b0 cmpl $0x1, -0x5c(%rbp) jne 0xd672e movl -0x1c(%rbp), %eax addl -0x24(%rbp), %eax movl %eax, -0x24(%rbp) movq -0x48(%rbp), %rdi movq -0x58(%rbp), %rax movq 0x18(%rax), %rsi movl 0x20(%rbp), %edx callq 0xd6ad0 jmp 0xd674b movl -0x1c(%rbp), %eax addl 0x10(%rbp), %eax movl %eax, 0x10(%rbp) movq -0x50(%rbp), %rdi movq -0x58(%rbp), %rax movq 0x18(%rax), %rsi movl 0x20(%rbp), %edx callq 0xd6ad0 movl -0x5c(%rbp), %ecx movq -0x58(%rbp), %rax movl %ecx, 0x8(%rax) movl -0x60(%rbp), %eax addl $-0x1, %eax movl %eax, -0x60(%rbp) jmp 0xd6694 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x70, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
split_rtree_node: push rbp mov rbp, rsp sub rsp, 70h mov eax, [rbp+arg_10] mov rax, [rbp+arg_8] mov eax, [rbp+arg_0] mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_18], edx mov [rbp+var_1C], ecx mov [rbp+var_20], r8d mov [rbp+var_24], r9d mov rax, [rbp+var_38] mov [rbp+var_38], rax mov rax, [rbp+var_40] mov [rbp+var_40], rax mov rdi, [rbp+arg_8] mov esi, [rbp+arg_10] call reserve_coords_0 mov [rbp+var_48], rax mov rdi, [rbp+arg_8] mov esi, [rbp+arg_10] call reserve_coords_0 mov [rbp+var_50], rax mov rax, [rbp+var_58] mov [rbp+var_58], rax mov eax, [rbp+var_5C] mov [rbp+var_5C], eax mov rax, [rbp+var_10] movsxd rcx, [rbp+var_14] shl rcx, 5 add rax, rcx mov [rbp+var_68], rax mov eax, [rbp+var_18] mov ecx, [rbp+var_20] shl ecx, 1 cmp eax, ecx jge short loc_D65E0 mov [rbp+var_4], 1 jmp loc_D676A loc_D65E0: mov rax, [rbp+var_10] mov [rbp+var_30], rax loc_D65E8: mov rax, [rbp+var_30] cmp rax, [rbp+var_68] jnb short loc_D6623 mov rax, [rbp+var_30] mov rdi, [rax+18h] mov esi, [rbp+arg_10] call count_square_0 mov rax, [rbp+var_30] movsd qword ptr [rax], xmm0 mov rax, [rbp+var_30] mov dword ptr [rax+8], 0 mov rax, [rbp+var_30] add rax, 20h ; ' ' mov [rbp+var_30], rax jmp short loc_D65E8 loc_D6623: mov rdi, [rbp+var_10] mov esi, [rbp+var_14] mov r8d, [rbp+arg_10] lea rdx, [rbp+var_38] lea rcx, [rbp+var_40] call pick_seeds_0 mov rax, [rbp+var_38] mov dword ptr [rax+8], 1 mov rax, [rbp+var_40] mov dword ptr [rax+8], 2 mov rdi, [rbp+var_48] mov rax, [rbp+var_38] mov rsi, [rax+18h] mov edx, [rbp+arg_10] call copy_coords_0 mov eax, [rbp+var_1C] add eax, [rbp+var_24] mov [rbp+var_24], eax mov rdi, [rbp+var_50] mov rax, [rbp+var_40] mov rsi, [rax+18h] mov edx, [rbp+arg_10] call copy_coords_0 mov eax, [rbp+var_1C] add eax, [rbp+arg_0] mov [rbp+arg_0], eax mov eax, [rbp+var_14] sub eax, 2 mov [rbp+var_60], eax loc_D6694: cmp [rbp+var_60], 0 jle loc_D6763 mov eax, [rbp+var_18] mov ecx, [rbp+arg_0] add ecx, [rbp+var_1C] sub eax, ecx cmp eax, [rbp+var_20] jge short loc_D66C4 mov rdi, [rbp+var_10] mov esi, [rbp+var_14] mov edx, 1 call mark_all_entries_0 jmp loc_D6763 loc_D66C4: mov eax, [rbp+var_18] mov ecx, [rbp+var_24] add ecx, [rbp+var_1C] sub eax, ecx cmp eax, [rbp+var_20] jge short loc_D66E7 mov rdi, [rbp+var_10] mov esi, [rbp+var_14] mov edx, 2 call mark_all_entries_0 jmp short loc_D6763 loc_D66E7: mov rdi, [rbp+var_10] mov esi, [rbp+var_14] mov rdx, [rbp+var_48] mov rcx, [rbp+var_50] mov eax, [rbp+arg_10] lea r8, [rbp+var_58] lea r9, [rbp+var_5C] mov [rsp+70h+var_70], eax call pick_next_0 cmp [rbp+var_5C], 1 jnz short loc_D672E mov eax, [rbp+var_1C] add eax, [rbp+var_24] mov [rbp+var_24], eax mov rdi, [rbp+var_48] mov rax, [rbp+var_58] mov rsi, [rax+18h] mov edx, [rbp+arg_10] call mbr_join_0 jmp short loc_D674B loc_D672E: mov eax, [rbp+var_1C] add eax, [rbp+arg_0] mov [rbp+arg_0], eax mov rdi, [rbp+var_50] mov rax, [rbp+var_58] mov rsi, [rax+18h] mov edx, [rbp+arg_10] call mbr_join_0 loc_D674B: mov ecx, [rbp+var_5C] mov rax, [rbp+var_58] mov [rax+8], ecx mov eax, [rbp+var_60] add eax, 0FFFFFFFFh mov [rbp+var_60], eax jmp loc_D6694 loc_D6763: mov [rbp+var_4], 0 loc_D676A: mov eax, [rbp+var_4] add rsp, 70h pop rbp retn
long long split_rtree_node( unsigned long long a1, unsigned int a2, int a3, int a4, int a5, int a6, int a7, long long *a8, unsigned int a9) { int j; // [rsp+10h] [rbp-60h] int v11; // [rsp+14h] [rbp-5Ch] BYREF long long v12; // [rsp+18h] [rbp-58h] BYREF long long v13; // [rsp+20h] [rbp-50h] long long v14; // [rsp+28h] [rbp-48h] long long v15; // [rsp+30h] [rbp-40h] BYREF long long v16; // [rsp+38h] [rbp-38h] BYREF unsigned long long i; // [rsp+40h] [rbp-30h] int v18; // [rsp+4Ch] [rbp-24h] int v19; // [rsp+50h] [rbp-20h] int v20; // [rsp+54h] [rbp-1Ch] int v21; // [rsp+58h] [rbp-18h] unsigned int v22; // [rsp+5Ch] [rbp-14h] unsigned long long v23; // [rsp+60h] [rbp-10h] int v25; // [rsp+80h] [rbp+10h] v23 = a1; v22 = a2; v21 = a3; v20 = a4; v19 = a5; v18 = a6; v14 = reserve_coords_0(a8, a9); v13 = reserve_coords_0(a8, a9); if ( v21 >= 2 * v19 ) { for ( i = v23; i < 32LL * (int)a2 + a1; i += 32LL ) { *(double *)i = count_square_0(*(_QWORD *)(i + 24), a9); *(_DWORD *)(i + 8) = 0; } pick_seeds_0(v23, v22, &v16, &v15, a9); *(_DWORD *)(v16 + 8) = 1; *(_DWORD *)(v15 + 8) = 2; copy_coords_0(v14, *(_QWORD *)(v16 + 24), a9); v18 += v20; copy_coords_0(v13, *(_QWORD *)(v15 + 24), a9); v25 = a7 + v20; for ( j = v22 - 2; j > 0; --j ) { if ( v21 - (v20 + v25) < v19 ) { mark_all_entries_0(v23, v22, 1LL); break; } if ( v21 - (v20 + v18) < v19 ) { mark_all_entries_0(v23, v22, 2LL); break; } pick_next_0(v23, v22, v14, v13, (unsigned int)&v12, (unsigned int)&v11, a9); if ( v11 == 1 ) { v18 += v20; mbr_join_0(v14, *(_QWORD *)(v12 + 24), a9); } else { v25 += v20; mbr_join_0(v13, *(_QWORD *)(v12 + 24), a9); } *(_DWORD *)(v12 + 8) = v11; } return 0; } else { return 1; } }
split_rtree_node: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV EAX,dword ptr [RBP + 0x20] MOV RAX,qword ptr [RBP + 0x18] MOV EAX,dword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV dword ptr [RBP + -0x18],EDX MOV dword ptr [RBP + -0x1c],ECX MOV dword ptr [RBP + -0x20],R8D MOV dword ptr [RBP + -0x24],R9D MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x40],RAX MOV RDI,qword ptr [RBP + 0x18] MOV ESI,dword ptr [RBP + 0x20] CALL 0x001d6510 MOV qword ptr [RBP + -0x48],RAX MOV RDI,qword ptr [RBP + 0x18] MOV ESI,dword ptr [RBP + 0x20] CALL 0x001d6510 MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RBP + -0x58],RAX MOV EAX,dword ptr [RBP + -0x5c] MOV dword ptr [RBP + -0x5c],EAX MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,dword ptr [RBP + -0x14] SHL RCX,0x5 ADD RAX,RCX MOV qword ptr [RBP + -0x68],RAX MOV EAX,dword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x20] SHL ECX,0x1 CMP EAX,ECX JGE 0x001d65e0 MOV dword ptr [RBP + -0x4],0x1 JMP 0x001d676a LAB_001d65e0: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x30],RAX LAB_001d65e8: MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x68] JNC 0x001d6623 MOV RAX,qword ptr [RBP + -0x30] MOV RDI,qword ptr [RAX + 0x18] MOV ESI,dword ptr [RBP + 0x20] CALL 0x001d6780 MOV RAX,qword ptr [RBP + -0x30] MOVSD qword ptr [RAX],XMM0 MOV RAX,qword ptr [RBP + -0x30] MOV dword ptr [RAX + 0x8],0x0 MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x20 MOV qword ptr [RBP + -0x30],RAX JMP 0x001d65e8 LAB_001d6623: MOV RDI,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x14] MOV R8D,dword ptr [RBP + 0x20] LEA RDX,[RBP + -0x38] LEA RCX,[RBP + -0x40] CALL 0x001d67f0 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x8],0x1 MOV RAX,qword ptr [RBP + -0x40] MOV dword ptr [RAX + 0x8],0x2 MOV RDI,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RBP + -0x38] MOV RSI,qword ptr [RAX + 0x18] MOV EDX,dword ptr [RBP + 0x20] CALL 0x001d6910 MOV EAX,dword ptr [RBP + -0x1c] ADD EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x24],EAX MOV RDI,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x40] MOV RSI,qword ptr [RAX + 0x18] MOV EDX,dword ptr [RBP + 0x20] CALL 0x001d6910 MOV EAX,dword ptr [RBP + -0x1c] ADD EAX,dword ptr [RBP + 0x10] MOV dword ptr [RBP + 0x10],EAX MOV EAX,dword ptr [RBP + -0x14] SUB EAX,0x2 MOV dword ptr [RBP + -0x60],EAX LAB_001d6694: CMP dword ptr [RBP + -0x60],0x0 JLE 0x001d6763 MOV EAX,dword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + 0x10] ADD ECX,dword ptr [RBP + -0x1c] SUB EAX,ECX CMP EAX,dword ptr [RBP + -0x20] JGE 0x001d66c4 MOV RDI,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x14] MOV EDX,0x1 CALL 0x001d6950 JMP 0x001d6763 LAB_001d66c4: MOV EAX,dword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x24] ADD ECX,dword ptr [RBP + -0x1c] SUB EAX,ECX CMP EAX,dword ptr [RBP + -0x20] JGE 0x001d66e7 MOV RDI,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x14] MOV EDX,0x2 CALL 0x001d6950 JMP 0x001d6763 LAB_001d66e7: MOV RDI,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x14] MOV RDX,qword ptr [RBP + -0x48] MOV RCX,qword ptr [RBP + -0x50] MOV EAX,dword ptr [RBP + 0x20] LEA R8,[RBP + -0x58] LEA R9,[RBP + -0x5c] MOV dword ptr [RSP],EAX CALL 0x001d69b0 CMP dword ptr [RBP + -0x5c],0x1 JNZ 0x001d672e MOV EAX,dword ptr [RBP + -0x1c] ADD EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x24],EAX MOV RDI,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RBP + -0x58] MOV RSI,qword ptr [RAX + 0x18] MOV EDX,dword ptr [RBP + 0x20] CALL 0x001d6ad0 JMP 0x001d674b LAB_001d672e: MOV EAX,dword ptr [RBP + -0x1c] ADD EAX,dword ptr [RBP + 0x10] MOV dword ptr [RBP + 0x10],EAX MOV RDI,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x58] MOV RSI,qword ptr [RAX + 0x18] MOV EDX,dword ptr [RBP + 0x20] CALL 0x001d6ad0 LAB_001d674b: MOV ECX,dword ptr [RBP + -0x5c] MOV RAX,qword ptr [RBP + -0x58] MOV dword ptr [RAX + 0x8],ECX MOV EAX,dword ptr [RBP + -0x60] ADD EAX,-0x1 MOV dword ptr [RBP + -0x60],EAX JMP 0x001d6694 LAB_001d6763: MOV dword ptr [RBP + -0x4],0x0 LAB_001d676a: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x70 POP RBP RET
int4 split_rtree_node(int8 *param_1,int param_2,int param_3,int param_4,int param_5,int param_6, int param_7,int8 param_8,int4 param_9) { int8 *puVar1; int8 uVar2; int local_68; int local_64; long local_60; int8 local_58; int8 local_50; long local_48; long local_40; int8 *local_38; int local_2c; int local_28; int local_24; int local_20; int local_1c; int8 *local_18; int4 local_c; local_2c = param_6; local_28 = param_5; local_24 = param_4; local_20 = param_3; local_1c = param_2; local_18 = param_1; local_50 = reserve_coords(param_8,param_9); local_58 = reserve_coords(param_8,param_9); puVar1 = local_18 + (long)local_1c * 4; if (SBORROW4(local_20,local_28 * 2) == local_20 + local_28 * -2 < 0) { for (local_38 = local_18; local_38 < puVar1; local_38 = local_38 + 4) { uVar2 = count_square(local_38[3],param_9); *local_38 = uVar2; *(int4 *)(local_38 + 1) = 0; } pick_seeds(local_18,local_1c,&local_40,&local_48,param_9); *(int4 *)(local_40 + 8) = 1; *(int4 *)(local_48 + 8) = 2; copy_coords(local_50,*(int8 *)(local_40 + 0x18),param_9); local_2c = local_24 + local_2c; copy_coords(local_58,*(int8 *)(local_48 + 0x18),param_9); param_7 = local_24 + param_7; for (local_68 = local_1c + -2; 0 < local_68; local_68 = local_68 + -1) { if (local_20 - (param_7 + local_24) < local_28) { mark_all_entries(local_18,local_1c,1); break; } if (local_20 - (local_2c + local_24) < local_28) { mark_all_entries(local_18,local_1c,2); break; } pick_next(local_18,local_1c,local_50,local_58,&local_60,&local_64,param_9); if (local_64 == 1) { local_2c = local_24 + local_2c; mbr_join(local_50,*(int8 *)(local_60 + 0x18),param_9); } else { param_7 = local_24 + param_7; mbr_join(local_58,*(int8 *)(local_60 + 0x18),param_9); } *(int *)(local_60 + 8) = local_64; } local_c = 0; } else { local_c = 1; } return local_c; }
31,153
cli::matchable_derived<family_id>::matchable_derived(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
msxemulator/build_O3/_deps/picotool-src/cli.h
explicit matchable_derived(string name) : matchable(std::move(name)) {}
O3
c
cli::matchable_derived<family_id>::matchable_derived(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>): pushq %r14 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx leaq 0x18(%rsp), %r14 movq %r14, -0x10(%r14) movq (%rsi), %rax leaq 0x10(%rsi), %rcx cmpq %rcx, %rax je 0x571f0 movq %rax, 0x8(%rsp) movq (%rcx), %rax movq %rax, 0x18(%rsp) jmp 0x571f7 movups (%rcx), %xmm0 movups %xmm0, (%r14) movq 0x8(%rsi), %rdx leaq 0x8(%rsp), %rax movq %rdx, 0x8(%rax) movq %rcx, (%rsi) movq $0x0, 0x8(%rsi) movb $0x0, 0x10(%rsi) movq %rbx, %rdi movq %rax, %rsi callq 0x4d3b6 movq 0x8(%rsp), %rdi cmpq %r14, %rdi je 0x57235 movq 0x18(%rsp), %rsi incq %rsi callq 0xf470 leaq 0x89914(%rip), %rax # 0xe0b50 movq %rax, (%rbx) addq $0x28, %rsp popq %rbx popq %r14 retq movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r14, %rdi je 0x57261 movq 0x18(%rsp), %rsi incq %rsi callq 0xf470 movq %rbx, %rdi callq 0xf7d0 nop
_ZN3cli17matchable_derivedI9family_idEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push r14 push rbx sub rsp, 28h mov rbx, rdi lea r14, [rsp+38h+var_20] mov [r14-10h], r14 mov rax, [rsi] lea rcx, [rsi+10h] cmp rax, rcx jz short loc_571F0 mov [rsp+38h+var_30], rax mov rax, [rcx] mov [rsp+38h+var_20], rax jmp short loc_571F7 loc_571F0: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r14], xmm0 loc_571F7: mov rdx, [rsi+8] lea rax, [rsp+38h+var_30] mov [rax+8], rdx mov [rsi], rcx mov qword ptr [rsi+8], 0 mov byte ptr [rsi+10h], 0 mov rdi, rbx mov rsi, rax call _ZN3cli9matchableC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; cli::matchable::matchable(std::string) mov rdi, [rsp+38h+var_30]; void * cmp rdi, r14 jz short loc_57235 mov rsi, [rsp+38h+var_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_57235: lea rax, off_E0B50 mov [rbx], rax add rsp, 28h pop rbx pop r14 retn mov rbx, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r14 jz short loc_57261 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_57261: mov rdi, rbx call __Unwind_Resume
void ( ** cli::matchable_derived<family_id>::matchable_derived( _QWORD *a1, long long a2))(cli::matchable *__hidden this) { _OWORD *v2; // rcx void ( **result)(cli::matchable *__hidden); // rax void *v4[2]; // [rsp+8h] [rbp-30h] BYREF _OWORD v5[2]; // [rsp+18h] [rbp-20h] BYREF v4[0] = v5; v2 = (_OWORD *)(a2 + 16); if ( *(_QWORD *)a2 == a2 + 16 ) { v5[0] = *v2; } else { v4[0] = *(void **)a2; *(_QWORD *)&v5[0] = *(_QWORD *)v2; } v4[1] = *(void **)(a2 + 8); *(_QWORD *)a2 = v2; *(_QWORD *)(a2 + 8) = 0LL; *(_BYTE *)(a2 + 16) = 0; cli::matchable::matchable((long long)a1, (long long)v4); if ( v4[0] != v5 ) operator delete(v4[0], *(_QWORD *)&v5[0] + 1LL); result = &off_E0B50; *a1 = &off_E0B50; return result; }
matchable_derived: PUSH R14 PUSH RBX SUB RSP,0x28 MOV RBX,RDI LEA R14,[RSP + 0x18] MOV qword ptr [R14 + -0x10],R14 MOV RAX,qword ptr [RSI] LEA RCX,[RSI + 0x10] CMP RAX,RCX JZ 0x001571f0 MOV qword ptr [RSP + 0x8],RAX MOV RAX,qword ptr [RCX] MOV qword ptr [RSP + 0x18],RAX JMP 0x001571f7 LAB_001571f0: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R14],XMM0 LAB_001571f7: MOV RDX,qword ptr [RSI + 0x8] LEA RAX,[RSP + 0x8] MOV qword ptr [RAX + 0x8],RDX MOV qword ptr [RSI],RCX MOV qword ptr [RSI + 0x8],0x0 MOV byte ptr [RSI + 0x10],0x0 LAB_00157213: MOV RDI,RBX MOV RSI,RAX CALL 0x0014d3b6 LAB_0015721e: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R14 JZ 0x00157235 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0010f470 LAB_00157235: LEA RAX,[0x1e0b50] MOV qword ptr [RBX],RAX ADD RSP,0x28 POP RBX POP R14 RET
/* cli::matchable_derived<family_id>::matchable_derived(std::__cxx11::string) */ void __thiscall cli::matchable_derived<family_id>::matchable_derived (matchable_derived<family_id> *this,long *param_2) { long *plVar1; long *local_30; long local_28; long local_20; int4 uStack_18; int4 uStack_14; plVar1 = param_2 + 2; if ((long *)*param_2 == plVar1) { local_20 = *plVar1; uStack_18 = (int4)param_2[3]; uStack_14 = *(int4 *)((long)param_2 + 0x1c); local_30 = &local_20; } else { local_20 = *plVar1; local_30 = (long *)*param_2; } local_28 = param_2[1]; *param_2 = (long)plVar1; param_2[1] = 0; *(int1 *)(param_2 + 2) = 0; /* try { // try from 00157213 to 0015721d has its CatchHandler @ 00157247 */ matchable::matchable((matchable *)this,&local_30); if (local_30 != &local_20) { operator_delete(local_30,local_20 + 1); } *(int ***)this = &PTR__matchable_001e0b50; return; }
31,154
nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::moved_or_copied() const
monkey531[P]llama/common/json.hpp
value_type moved_or_copied() const { if (value_ref == nullptr) { return std::move(owned_value); } return *value_ref; }
O1
cpp
nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::moved_or_copied() const: pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movq 0x10(%rsi), %rsi testq %rsi, %rsi je 0xaf7b7 movq %rbx, %rdi callq 0x6af50 jmp 0xaf7e1 movups (%r14), %xmm0 movups %xmm0, (%rbx) movq %r14, %rdi xorl %esi, %esi callq 0x65cc4 movb $0x0, (%r14) movq $0x0, 0x8(%r14) movq %rbx, %rdi movl $0x1, %esi callq 0x65cc4 movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
_ZNK8nlohmann16json_abi_v3_11_36detail8json_refINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE15moved_or_copiedEv: push r14 push rbx push rax mov r14, rsi mov rbx, rdi mov rsi, [rsi+10h] test rsi, rsi jz short loc_AF7B7 mov rdi, rbx call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) jmp short loc_AF7E1 loc_AF7B7: movups xmm0, xmmword ptr [r14] movups xmmword ptr [rbx], xmm0 mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov byte ptr [r14], 0 mov qword ptr [r14+8], 0 mov rdi, rbx mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) loc_AF7E1: mov rax, rbx add rsp, 8 pop rbx pop r14 retn
unsigned __int8 * nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::moved_or_copied( unsigned __int8 *a1, long long a2) { unsigned __int8 *v3; // rsi v3 = *(unsigned __int8 **)(a2 + 16); if ( v3 ) { nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json( a1, v3); } else { *(_OWORD *)a1 = *(_OWORD *)a2; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a2); *(_BYTE *)a2 = 0; *(_QWORD *)(a2 + 8) = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1); } return a1; }
moved_or_copied: PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI MOV RSI,qword ptr [RSI + 0x10] TEST RSI,RSI JZ 0x001af7b7 MOV RDI,RBX CALL 0x0016af50 JMP 0x001af7e1 LAB_001af7b7: MOVUPS XMM0,xmmword ptr [R14] MOVUPS xmmword ptr [RBX],XMM0 MOV RDI,R14 XOR ESI,ESI CALL 0x00165cc4 MOV byte ptr [R14],0x0 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,RBX MOV ESI,0x1 CALL 0x00165cc4 LAB_001af7e1: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R14 RET
/* nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> >::moved_or_copied() const */ void nlohmann::json_abi_v3_11_3::detail:: json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::moved_or_copied(void) { int8 uVar1; int8 *in_RSI; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *in_RDI; if ((basic_json *)in_RSI[2] == (basic_json *)0x0) { uVar1 = in_RSI[1]; *(int8 *)in_RDI = *in_RSI; *(int8 *)(in_RDI + 8) = uVar1; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(in_RSI,0)); *(int1 *)in_RSI = 0; in_RSI[1] = 0; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(in_RDI,0)); } else { basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::basic_json(in_RDI,(basic_json *)in_RSI[2]); } return; }
31,155
rlUpdateTexture
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rlgl.h
void rlUpdateTexture(unsigned int id, int offsetX, int offsetY, int width, int height, int format, const void *data) { glBindTexture(GL_TEXTURE_2D, id); unsigned int glInternalFormat, glFormat, glType; rlGetGlTextureFormats(format, &glInternalFormat, &glFormat, &glType); if ((glInternalFormat != 0) && (format < RL_PIXELFORMAT_COMPRESSED_DXT1_RGB)) { glTexSubImage2D(GL_TEXTURE_2D, 0, offsetX, offsetY, width, height, glFormat, glType, data); } else TRACELOG(RL_LOG_WARNING, "TEXTURE: [ID %i] Failed to update for current texture format (%i)", id, format); }
O0
c
rlUpdateTexture: pushq %rbp movq %rsp, %rbp pushq %rbx subq $0x48, %rsp movq 0x10(%rbp), %rax movl %edi, -0xc(%rbp) movl %esi, -0x10(%rbp) movl %edx, -0x14(%rbp) movl %ecx, -0x18(%rbp) movl %r8d, -0x1c(%rbp) movl %r9d, -0x20(%rbp) movq 0x162028(%rip), %rax # 0x218360 movl -0xc(%rbp), %esi movl $0xde1, %edi # imm = 0xDE1 callq *%rax movl -0x20(%rbp), %edi leaq -0x24(%rbp), %rsi leaq -0x28(%rbp), %rdx leaq -0x2c(%rbp), %rcx callq 0xb58b0 cmpl $0x0, -0x24(%rbp) je 0xb639a cmpl $0xe, -0x20(%rbp) jge 0xb639a movq 0x163667(%rip), %rax # 0x2199d0 movl -0x10(%rbp), %edx movl -0x14(%rbp), %ecx movl -0x18(%rbp), %r8d movl -0x1c(%rbp), %r9d movl -0x28(%rbp), %ebx movl -0x2c(%rbp), %r11d movq 0x10(%rbp), %r10 movl $0xde1, %edi # imm = 0xDE1 xorl %esi, %esi movl %ebx, (%rsp) movl %r11d, 0x8(%rsp) movq %r10, 0x10(%rsp) callq *%rax jmp 0xb63b3 movl -0xc(%rbp), %edx movl -0x20(%rbp), %ecx movl $0x4, %edi leaq 0xfe8c5(%rip), %rsi # 0x1b4c71 movb $0x0, %al callq 0x182c40 addq $0x48, %rsp popq %rbx popq %rbp retq nopw (%rax,%rax)
rlUpdateTexture: push rbp mov rbp, rsp push rbx sub rsp, 48h mov rax, [rbp+arg_0] mov [rbp+var_C], edi mov [rbp+var_10], esi mov [rbp+var_14], edx mov [rbp+var_18], ecx mov [rbp+var_1C], r8d mov [rbp+var_20], r9d mov rax, cs:glad_glBindTexture mov esi, [rbp+var_C] mov edi, 0DE1h call rax ; glad_glBindTexture mov edi, [rbp+var_20] lea rsi, [rbp+var_24] lea rdx, [rbp+var_28] lea rcx, [rbp+var_2C] call rlGetGlTextureFormats cmp [rbp+var_24], 0 jz short loc_B639A cmp [rbp+var_20], 0Eh jge short loc_B639A mov rax, cs:glad_glTexSubImage2D mov edx, [rbp+var_10] mov ecx, [rbp+var_14] mov r8d, [rbp+var_18] mov r9d, [rbp+var_1C] mov ebx, [rbp+var_28] mov r11d, [rbp+var_2C] mov r10, [rbp+arg_0] mov edi, 0DE1h xor esi, esi mov [rsp+50h+var_50], ebx mov [rsp+50h+var_48], r11d mov [rsp+50h+var_40], r10 call rax ; glad_glTexSubImage2D jmp short loc_B63B3 loc_B639A: mov edx, [rbp+var_C] mov ecx, [rbp+var_20] mov edi, 4 lea rsi, aTextureIdIFail; "TEXTURE: [ID %i] Failed to update for c"... mov al, 0 call TraceLog loc_B63B3: add rsp, 48h pop rbx pop rbp retn
long long rlUpdateTexture( unsigned int a1, unsigned int a2, unsigned int a3, unsigned int a4, unsigned int a5, int a6, long long a7) { int v7; // r8d int v8; // r9d int v9; // r8d int v10; // r9d int v12; // [rsp+24h] [rbp-2Ch] BYREF int v13; // [rsp+28h] [rbp-28h] BYREF int v14; // [rsp+2Ch] [rbp-24h] BYREF int v15; // [rsp+30h] [rbp-20h] unsigned int v16; // [rsp+34h] [rbp-1Ch] unsigned int v17; // [rsp+38h] [rbp-18h] unsigned int v18; // [rsp+3Ch] [rbp-14h] unsigned int v19; // [rsp+40h] [rbp-10h] unsigned int v20; // [rsp+44h] [rbp-Ch] v20 = a1; v19 = a2; v18 = a3; v17 = a4; v16 = a5; v15 = a6; glad_glBindTexture(3553LL, a1); rlGetGlTextureFormats(v15, &v14, &v13, &v12, v7, v8); if ( v14 && v15 < 14 ) return glad_glTexSubImage2D(3553LL, 0LL, v19, v18, v17, v16, v13, v12, a7); else return TraceLog( 4, (unsigned int)"TEXTURE: [ID %i] Failed to update for current texture format (%i)", v20, v15, v9, v10); }
rlUpdateTexture: PUSH RBP MOV RBP,RSP PUSH RBX SUB RSP,0x48 MOV RAX,qword ptr [RBP + 0x10] MOV dword ptr [RBP + -0xc],EDI MOV dword ptr [RBP + -0x10],ESI MOV dword ptr [RBP + -0x14],EDX MOV dword ptr [RBP + -0x18],ECX MOV dword ptr [RBP + -0x1c],R8D MOV dword ptr [RBP + -0x20],R9D MOV RAX,qword ptr [0x00318360] MOV ESI,dword ptr [RBP + -0xc] MOV EDI,0xde1 CALL RAX MOV EDI,dword ptr [RBP + -0x20] LEA RSI,[RBP + -0x24] LEA RDX,[RBP + -0x28] LEA RCX,[RBP + -0x2c] CALL 0x001b58b0 CMP dword ptr [RBP + -0x24],0x0 JZ 0x001b639a CMP dword ptr [RBP + -0x20],0xe JGE 0x001b639a MOV RAX,qword ptr [0x003199d0] MOV EDX,dword ptr [RBP + -0x10] MOV ECX,dword ptr [RBP + -0x14] MOV R8D,dword ptr [RBP + -0x18] MOV R9D,dword ptr [RBP + -0x1c] MOV EBX,dword ptr [RBP + -0x28] MOV R11D,dword ptr [RBP + -0x2c] MOV R10,qword ptr [RBP + 0x10] MOV EDI,0xde1 XOR ESI,ESI MOV dword ptr [RSP],EBX MOV dword ptr [RSP + 0x8],R11D MOV qword ptr [RSP + 0x10],R10 CALL RAX JMP 0x001b63b3 LAB_001b639a: MOV EDX,dword ptr [RBP + -0xc] MOV ECX,dword ptr [RBP + -0x20] MOV EDI,0x4 LEA RSI,[0x2b4c71] MOV AL,0x0 CALL 0x00282c40 LAB_001b63b3: ADD RSP,0x48 POP RBX POP RBP RET
void rlUpdateTexture(int4 param_1,int4 param_2,int4 param_3,int4 param_4, int4 param_5,int param_6,int8 param_7) { int4 local_34; int4 local_30; int local_2c; int local_28; int4 local_24; int4 local_20; int4 local_1c; int4 local_18; int4 local_14; local_28 = param_6; local_24 = param_5; local_20 = param_4; local_1c = param_3; local_18 = param_2; local_14 = param_1; (*glad_glBindTexture)(0xde1,param_1); rlGetGlTextureFormats(local_28,&local_2c,&local_30,&local_34); if ((local_2c == 0) || (0xd < local_28)) { TraceLog(4,"TEXTURE: [ID %i] Failed to update for current texture format (%i)",local_14,local_28 ); } else { (*glad_glTexSubImage2D)(0xde1,0,local_18,local_1c,local_20,local_24,local_30,local_34,param_7); } return; }
31,156
rlUpdateTexture
csit-sgu[P]mit-game-2025_1/Libraries/raylib/src/rlgl.h
void rlUpdateTexture(unsigned int id, int offsetX, int offsetY, int width, int height, int format, const void *data) { glBindTexture(GL_TEXTURE_2D, id); unsigned int glInternalFormat, glFormat, glType; rlGetGlTextureFormats(format, &glInternalFormat, &glFormat, &glType); if ((glInternalFormat != 0) && (format < RL_PIXELFORMAT_COMPRESSED_DXT1_RGB)) { glTexSubImage2D(GL_TEXTURE_2D, 0, offsetX, offsetY, width, height, glFormat, glType, data); } else TRACELOG(RL_LOG_WARNING, "TEXTURE: [ID %i] Failed to update for current texture format (%i)", id, format); }
O2
c
rlUpdateTexture: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %r9d, %ebp movl %r8d, 0x8(%rsp) movl %ecx, %r14d movl %edx, %r15d movl %esi, %r13d movl %edi, %r12d movq 0x50(%rsp), %rbx movl $0xde1, %edi # imm = 0xDE1 movl %r12d, %esi callq *0xd06f8(%rip) # 0x1252c0 leaq 0x14(%rsp), %rsi leaq 0x10(%rsp), %rdx leaq 0xc(%rsp), %rcx movl %ebp, %edi callq 0x5451a cmpl $0xd, %ebp jg 0x54c25 cmpl $0x0, 0x14(%rsp) je 0x54c25 movl 0x10(%rsp), %eax movl 0xc(%rsp), %r10d subq $0x8, %rsp movl $0xde1, %edi # imm = 0xDE1 xorl %esi, %esi movl %r13d, %edx movl %r15d, %ecx movl %r14d, %r8d movl 0x10(%rsp), %r9d pushq %rbx pushq %r10 pushq %rax callq *0xd1d1a(%rip) # 0x126930 addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x7076d(%rip), %rsi # 0xc5399 pushq $0x4 popq %rdi movl %r12d, %edx movl %ebp, %ecx xorl %eax, %eax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0xa128b
rlUpdateTexture: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov ebp, r9d mov [rsp+48h+var_40], r8d mov r14d, ecx mov r15d, edx mov r13d, esi mov r12d, edi mov rbx, [rsp+48h+arg_0] mov edi, 0DE1h mov esi, r12d call cs:glad_glBindTexture lea rsi, [rsp+48h+var_34] lea rdx, [rsp+48h+var_38] lea rcx, [rsp+48h+var_3C] mov edi, ebp call rlGetGlTextureFormats cmp ebp, 0Dh jg short loc_54C25 cmp [rsp+48h+var_34], 0 jz short loc_54C25 mov eax, [rsp+48h+var_38] mov r10d, [rsp+48h+var_3C] sub rsp, 8 mov edi, 0DE1h xor esi, esi mov edx, r13d mov ecx, r15d mov r8d, r14d mov r9d, [rsp+50h+var_40] push rbx push r10 push rax call cs:glad_glTexSubImage2D add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_54C25: lea rsi, aTextureIdIFail; "TEXTURE: [ID %i] Failed to update for c"... push 4 pop rdi mov edx, r12d mov ecx, ebp xor eax, eax add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp TraceLog
long long rlUpdateTexture( unsigned int a1, unsigned int a2, unsigned int a3, unsigned int a4, unsigned int a5, signed int a6, long long a7) { int v10; // r8d int v11; // r9d int v12; // r8d int v13; // r9d unsigned int v16; // [rsp+Ch] [rbp-3Ch] BYREF unsigned int v17; // [rsp+10h] [rbp-38h] BYREF _DWORD v18[13]; // [rsp+14h] [rbp-34h] BYREF glad_glBindTexture(3553LL, a1); rlGetGlTextureFormats(a6, v18, &v17, &v16, v10, v11); if ( a6 <= 13 && v18[0] ) return glad_glTexSubImage2D(3553LL, 0LL, a2, a3, a4, a5, v17, v16, a7); else return TraceLog( 4, (unsigned int)"TEXTURE: [ID %i] Failed to update for current texture format (%i)", a1, a6, v12, v13); }
rlUpdateTexture: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV EBP,R9D MOV dword ptr [RSP + 0x8],R8D MOV R14D,ECX MOV R15D,EDX MOV R13D,ESI MOV R12D,EDI MOV RBX,qword ptr [RSP + 0x50] MOV EDI,0xde1 MOV ESI,R12D CALL qword ptr [0x002252c0] LEA RSI,[RSP + 0x14] LEA RDX,[RSP + 0x10] LEA RCX,[RSP + 0xc] MOV EDI,EBP CALL 0x0015451a CMP EBP,0xd JG 0x00154c25 CMP dword ptr [RSP + 0x14],0x0 JZ 0x00154c25 MOV EAX,dword ptr [RSP + 0x10] MOV R10D,dword ptr [RSP + 0xc] SUB RSP,0x8 MOV EDI,0xde1 XOR ESI,ESI MOV EDX,R13D MOV ECX,R15D MOV R8D,R14D MOV R9D,dword ptr [RSP + 0x10] PUSH RBX PUSH R10 PUSH RAX CALL qword ptr [0x00226930] ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00154c25: LEA RSI,[0x1c5399] PUSH 0x4 POP RDI MOV EDX,R12D MOV ECX,EBP XOR EAX,EAX ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x001a128b
void rlUpdateTexture(int4 param_1,int4 param_2,int4 param_3,int4 param_4, int4 param_5,int param_6,int8 param_7) { int4 local_3c; int4 local_38; int local_34; (*glad_glBindTexture)(0xde1,param_1); rlGetGlTextureFormats(param_6,&local_34,&local_38,&local_3c); if ((param_6 < 0xe) && (local_34 != 0)) { (*glad_glTexSubImage2D)(0xde1,0,param_2,param_3,param_4,param_5,local_38,local_3c,param_7); return; } TraceLog(4,"TEXTURE: [ID %i] Failed to update for current texture format (%i)",param_1,param_6); return; }
31,157
inline_mysql_cond_broadcast
eloqsql/include/mysql/psi/mysql_thread.h
static inline int inline_mysql_cond_broadcast( mysql_cond_t *that) { int result; #ifdef HAVE_PSI_COND_INTERFACE if (psi_likely(that->m_psi != NULL)) PSI_COND_CALL(broadcast_cond)(that->m_psi); #endif result= pthread_cond_broadcast(&that->m_cond); return result; }
O0
c
inline_mysql_cond_broadcast: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x30(%rax) setne %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x421cb leaq 0x27df01(%rip), %rax # 0x2c00b8 movq (%rax), %rax movq 0x178(%rax), %rax movq -0x8(%rbp), %rcx movq 0x30(%rcx), %rdi callq *%rax movq -0x8(%rbp), %rdi callq 0x2a6b0 movl %eax, -0xc(%rbp) movl -0xc(%rbp), %eax addq $0x10, %rsp popq %rbp retq
inline_mysql_cond_broadcast: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rax, [rbp+var_8] cmp qword ptr [rax+30h], 0 setnz al and al, 1 movzx eax, al cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_421CB lea rax, PSI_server mov rax, [rax] mov rax, [rax+178h] mov rcx, [rbp+var_8] mov rdi, [rcx+30h] call rax loc_421CB: mov rdi, [rbp+var_8] call _pthread_cond_broadcast mov [rbp+var_C], eax mov eax, [rbp+var_C] add rsp, 10h pop rbp retn
long long inline_mysql_cond_broadcast(long long a1) { if ( *(_QWORD *)(a1 + 48) ) ((void ( *)(_QWORD))PSI_server[47])(*(_QWORD *)(a1 + 48)); return (unsigned int)pthread_cond_broadcast(a1); }
inline_mysql_cond_broadcast: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x30],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x001421cb LEA RAX,[0x3c00b8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x178] MOV RCX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RCX + 0x30] CALL RAX LAB_001421cb: MOV RDI,qword ptr [RBP + -0x8] CALL 0x0012a6b0 MOV dword ptr [RBP + -0xc],EAX MOV EAX,dword ptr [RBP + -0xc] ADD RSP,0x10 POP RBP RET
int inline_mysql_cond_broadcast(pthread_cond_t *param_1) { int iVar1; if (param_1[1].__align != 0) { (**(code **)(PSI_server + 0x178))(param_1[1].__align); } iVar1 = pthread_cond_broadcast(param_1); return iVar1; }
31,158
get_store_length
eloqsql/libmariadb/libmariadb/mariadb_lib.c
static size_t get_store_length(size_t length) { #define MAX_STORE_SIZE 9 unsigned char buffer[MAX_STORE_SIZE], *p; /* We just store the length and subtract offset of our buffer to determine the length */ p= mysql_net_store_length(buffer, length); return p - buffer; }
O0
c
get_store_length: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x20(%rbp) movq -0x20(%rbp), %rsi leaq -0x11(%rbp), %rdi movq %rdi, -0x38(%rbp) callq 0x2b2d0 movq -0x38(%rbp), %rcx movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax subq %rcx, %rax movq %rax, -0x30(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x255c9 movq -0x30(%rbp), %rax addq $0x40, %rsp popq %rbp retq callq 0x134b0 nop
get_store_length: push rbp mov rbp, rsp sub rsp, 40h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_20], rdi mov rsi, [rbp+var_20] lea rdi, [rbp+var_11] mov [rbp+var_38], rdi call mysql_net_store_length mov rcx, [rbp+var_38] mov [rbp+var_28], rax mov rax, [rbp+var_28] sub rax, rcx mov [rbp+var_30], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_255C9 mov rax, [rbp+var_30] add rsp, 40h pop rbp retn loc_255C9: call ___stack_chk_fail
long long get_store_length(long long a1) { _BYTE v2[9]; // [rsp+2Fh] [rbp-11h] BYREF unsigned long long v3; // [rsp+38h] [rbp-8h] v3 = __readfsqword(0x28u); return mysql_net_store_length(v2, a1) - (_QWORD)v2; }
get_store_length: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x20],RDI MOV RSI,qword ptr [RBP + -0x20] LEA RDI,[RBP + -0x11] MOV qword ptr [RBP + -0x38],RDI CALL 0x0012b2d0 MOV RCX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x28] SUB RAX,RCX MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x001255c9 MOV RAX,qword ptr [RBP + -0x30] ADD RSP,0x40 POP RBP RET LAB_001255c9: CALL 0x001134b0
long get_store_length(int8 param_1) { long lVar1; long in_FS_OFFSET; int1 local_19 [9]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); lVar1 = mysql_net_store_length(local_19,param_1); if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return lVar1 - (long)local_19; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
31,159
minja::error_location_suffix(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long)::$_0::operator()[abi:cxx11](unsigned long) const
monkey531[P]llama/common/minja.hpp
static std::string error_location_suffix(const std::string & source, size_t pos) { auto get_line = [&](size_t line) { auto start = source.begin(); for (size_t i = 1; i < line; ++i) { start = std::find(start, source.end(), '\n') + 1; } auto end = std::find(start, source.end(), '\n'); return std::string(start, end); }; auto start = source.begin(); auto end = source.end(); auto it = start + pos; auto line = std::count(start, it, '\n') + 1; auto max_line = std::count(start, end, '\n') + 1; auto col = pos - std::string(start, it).rfind('\n'); std::ostringstream out; out << " at row " << line << ", column " << col << ":\n"; if (line > 1) out << get_line(line - 1) << "\n"; out << get_line(line) << "\n"; out << std::string(col - 1, ' ') << "^\n"; if (line < max_line) out << get_line(line + 1) << "\n"; return out.str(); }
O2
cpp
minja::error_location_suffix(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long)::$_0::operator()[abi:cxx11](unsigned long) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r15 movq %rsi, %r12 movq %rdi, %rbx movq (%rsi), %rax movq (%rax), %r14 pushq $0x1 popq %rbp leaq 0x6(%rsp), %r13 movq (%r12), %rax movq (%rax), %rsi addq 0x8(%rax), %rsi cmpq %r15, %rbp jae 0x57c5d movb $0xa, 0x6(%rsp) movq %r14, %rdi movq %r13, %rdx callq 0x71da8 movq %rax, %r14 incq %r14 incq %rbp jmp 0x57c32 leaq 0x7(%rsp), %rdx movb $0xa, (%rdx) movq %r14, %rdi callq 0x71da8 leaq 0x10(%rbx), %rcx movq %rcx, (%rbx) movq %rbx, %rdi movq %r14, %rsi movq %rax, %rdx callq 0x521e4 movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZZN5minjaL21error_location_suffixERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEmENK3$_0clB5cxx11Em: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r15, rdx mov r12, rsi mov rbx, rdi mov rax, [rsi] mov r14, [rax] push 1 pop rbp lea r13, [rsp+38h+var_32] loc_57C32: mov rax, [r12] mov rsi, [rax] add rsi, [rax+8] cmp rbp, r15 jnb short loc_57C5D mov [rsp+38h+var_32], 0Ah mov rdi, r14 mov rdx, r13 call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag) mov r14, rax inc r14 inc rbp jmp short loc_57C32 loc_57C5D: lea rdx, [rsp+38h+var_31] mov byte ptr [rdx], 0Ah mov rdi, r14 call _ZSt9__find_ifIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEENS0_5__ops16_Iter_equals_valIS2_EEET_SE_SE_T0_St26random_access_iterator_tag; std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>,std::random_access_iterator_tag) lea rcx, [rbx+10h] mov [rbx], rcx mov rdi, rbx mov rsi, r14 mov rdx, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIN9__gnu_cxx17__normal_iteratorIPKcS4_EEEEvT_SB_St20forward_iterator_tag; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::forward_iterator_tag) mov rax, rbx add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
_QWORD * minja::error_location_suffix(std::string const&,unsigned long)::$_0::operator()[abi:cxx11]( _QWORD *a1, _BYTE ***a2, unsigned long long a3) { long long v3; // rax _BYTE *v6; // r14 unsigned long long i; // rbp _BYTE *v8; // rsi long long v9; // rax _WORD v11[25]; // [rsp+0h] [rbp-32h] BYREF v11[0] = HIWORD(v3); v6 = **a2; for ( i = 1LL; ; ++i ) { v8 = &(**a2)[(_QWORD)(*a2)[1]]; if ( i >= a3 ) break; LOBYTE(v11[0]) = 10; v6 = (_BYTE *)(std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>( v6, v8, v11) + 1); } HIBYTE(v11[0]) = 10; v9 = std::__find_if<__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__ops::_Iter_equals_val<char const>>( v6, v8, (char *)v11 + 1); *a1 = a1 + 2; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>((long long)a1, v6, v9); return a1; }
operator()[abi:cxx11]: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R15,RDX MOV R12,RSI MOV RBX,RDI MOV RAX,qword ptr [RSI] MOV R14,qword ptr [RAX] PUSH 0x1 POP RBP LEA R13,[RSP + 0x6] LAB_00157c32: MOV RAX,qword ptr [R12] MOV RSI,qword ptr [RAX] ADD RSI,qword ptr [RAX + 0x8] CMP RBP,R15 JNC 0x00157c5d MOV byte ptr [RSP + 0x6],0xa MOV RDI,R14 MOV RDX,R13 CALL 0x00171da8 MOV R14,RAX INC R14 INC RBP JMP 0x00157c32 LAB_00157c5d: LEA RDX,[RSP + 0x7] MOV byte ptr [RDX],0xa MOV RDI,R14 CALL 0x00171da8 LEA RCX,[RBX + 0x10] MOV qword ptr [RBX],RCX MOV RDI,RBX MOV RSI,R14 MOV RDX,RAX CALL 0x001521e4 MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* operator()[abi:cxx11](unsigned long) const */ ulong minja::error_location_suffix(std::__cxx11::string_const&,unsigned_long)::$_0:: operator()[abi_cxx11_(ulong param_1) { int8 in_RAX; long lVar1; int8 uVar2; ulong in_RDX; ulong uVar3; long *in_RSI; long lVar4; int8 uStack_38; lVar1 = *(long *)*in_RSI; uStack_38 = in_RAX; for (uVar3 = 1; lVar4 = *(long *)*in_RSI + ((long *)*in_RSI)[1], uVar3 < in_RDX; uVar3 = uVar3 + 1 ) { uStack_38._0_7_ = CONCAT16(10,(int6)uStack_38); lVar1 = std:: __find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>> (lVar1,lVar4,(long)&uStack_38 + 6); lVar1 = lVar1 + 1; } uStack_38 = CONCAT17(10,(int7)uStack_38); uVar2 = std:: __find_if<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,__gnu_cxx::__ops::_Iter_equals_val<char_const>> (lVar1,lVar4); *(ulong *)param_1 = param_1 + 0x10; std::__cxx11::string::_M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>> (param_1,lVar1,uVar2); return param_1; }
31,160
lunasvg::SVGElement::fillBoundingBox() const
dmazzella[P]pylunasvg/lunasvg/source/svgelement.cpp
Rect SVGElement::fillBoundingBox() const { auto fillBoundingBox = Rect::Invalid; for(const auto& child : m_children) { if(auto element = toSVGElement(child); element && !element->isHiddenElement()) { fillBoundingBox.unite(element->localTransform().mapRect(element->fillBoundingBox())); } } if(!fillBoundingBox.isValid()) fillBoundingBox = Rect::Empty; return fillBoundingBox; }
O0
cpp
lunasvg::SVGElement::fillBoundingBox() const: pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x18(%rbp) movq -0x18(%rbp), %rax leaq 0x72ece(%rip), %rcx # 0x8c168 movq (%rcx), %rdx movq %rdx, -0x10(%rbp) movq 0x8(%rcx), %rcx movq %rcx, -0x8(%rbp) addq $0x58, %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rdi callq 0xe970 movq %rax, -0x28(%rbp) movq -0x20(%rbp), %rdi callq 0xe9a0 movq %rax, -0x30(%rbp) leaq -0x28(%rbp), %rdi leaq -0x30(%rbp), %rsi callq 0xe9d0 testb $0x1, %al jne 0x192e1 jmp 0x1936f leaq -0x28(%rbp), %rdi callq 0xea00 movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rdi callq 0x1fda0 movq %rax, -0x40(%rbp) cmpq $0x0, -0x40(%rbp) je 0x1935f movq -0x40(%rbp), %rdi callq 0x193b0 testb $0x1, %al jne 0x1935f movq -0x40(%rbp), %rsi movq (%rsi), %rax movq 0x50(%rax), %rax leaq -0x68(%rbp), %rdi movq %rdi, -0x80(%rbp) callq *%rax movq -0x40(%rbp), %rdi movq (%rdi), %rax movq 0x58(%rax), %rax callq *%rax movq -0x80(%rbp), %rdi movlpd %xmm0, -0x78(%rbp) movlpd %xmm1, -0x70(%rbp) leaq -0x78(%rbp), %rsi callq 0x11ed0 movlpd %xmm0, -0x50(%rbp) movlpd %xmm1, -0x48(%rbp) leaq -0x10(%rbp), %rdi leaq -0x50(%rbp), %rsi callq 0x1fdd0 jmp 0x19361 leaq -0x28(%rbp), %rdi callq 0xea90 jmp 0x192cb leaq -0x10(%rbp), %rdi callq 0x14530 testb $0x1, %al jne 0x19392 leaq 0x72dd5(%rip), %rax # 0x8c158 movq (%rax), %rcx movq %rcx, -0x10(%rbp) movq 0x8(%rax), %rax movq %rax, -0x8(%rbp) movsd -0x10(%rbp), %xmm0 movsd -0x8(%rbp), %xmm1 addq $0x80, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ZNK7lunasvg10SVGElement15fillBoundingBoxEv: push rbp mov rbp, rsp sub rsp, 80h mov [rbp+var_18], rdi mov rax, [rbp+var_18] lea rcx, _ZN7lunasvg4Rect7InvalidE; lunasvg::Rect::Invalid mov rdx, [rcx] mov [rbp+var_10], rdx mov rcx, [rcx+8] mov [rbp+var_8], rcx add rax, 58h ; 'X' mov [rbp+var_20], rax mov rdi, [rbp+var_20] call _ZNKSt7__cxx114listISt10unique_ptrIN7lunasvg7SVGNodeESt14default_deleteIS3_EESaIS6_EE5beginEv; std::list<std::unique_ptr<lunasvg::SVGNode>>::begin(void) mov [rbp+var_28], rax mov rdi, [rbp+var_20] call _ZNKSt7__cxx114listISt10unique_ptrIN7lunasvg7SVGNodeESt14default_deleteIS3_EESaIS6_EE3endEv; std::list<std::unique_ptr<lunasvg::SVGNode>>::end(void) mov [rbp+var_30], rax loc_192CB: lea rdi, [rbp+var_28] lea rsi, [rbp+var_30] call _ZStneRKSt20_List_const_iteratorISt10unique_ptrIN7lunasvg7SVGNodeESt14default_deleteIS2_EEES8_; std::operator!=(std::_List_const_iterator<std::unique_ptr<lunasvg::SVGNode>> const&,std::_List_const_iterator<std::unique_ptr<lunasvg::SVGNode>> const&) test al, 1 jnz short loc_192E1 jmp loc_1936F loc_192E1: lea rdi, [rbp+var_28] call _ZNKSt20_List_const_iteratorISt10unique_ptrIN7lunasvg7SVGNodeESt14default_deleteIS2_EEEdeEv; std::_List_const_iterator<std::unique_ptr<lunasvg::SVGNode>>::operator*(void) mov [rbp+var_38], rax mov rdi, [rbp+var_38] call _ZN7lunasvg12toSVGElementERKSt10unique_ptrINS_7SVGNodeESt14default_deleteIS1_EE; lunasvg::toSVGElement(std::unique_ptr<lunasvg::SVGNode> const&) mov [rbp+var_40], rax cmp [rbp+var_40], 0 jz short loc_1935F mov rdi, [rbp+var_40]; this call _ZNK7lunasvg10SVGElement15isHiddenElementEv; lunasvg::SVGElement::isHiddenElement(void) test al, 1 jnz short loc_1935F mov rsi, [rbp+var_40] mov rax, [rsi] mov rax, [rax+50h] lea rdi, [rbp+var_68] mov [rbp+var_80], rdi call rax mov rdi, [rbp+var_40] mov rax, [rdi] mov rax, [rax+58h] call rax mov rdi, [rbp+var_80]; this movlpd [rbp+var_78], xmm0 movlpd [rbp+var_70], xmm1 lea rsi, [rbp+var_78]; lunasvg::Rect * call _ZNK7lunasvg9Transform7mapRectERKNS_4RectE; lunasvg::Transform::mapRect(lunasvg::Rect const&) movlpd [rbp+var_50], xmm0 movlpd [rbp+var_48], xmm1 lea rdi, [rbp+var_10]; this lea rsi, [rbp+var_50]; lunasvg::Rect * call _ZN7lunasvg4Rect5uniteERKS0_; lunasvg::Rect::unite(lunasvg::Rect const&) loc_1935F: jmp short $+2 loc_19361: lea rdi, [rbp+var_28] call _ZNSt20_List_const_iteratorISt10unique_ptrIN7lunasvg7SVGNodeESt14default_deleteIS2_EEEppEv; std::_List_const_iterator<std::unique_ptr<lunasvg::SVGNode>>::operator++(void) jmp loc_192CB loc_1936F: lea rdi, [rbp+var_10]; this call _ZNK7lunasvg4Rect7isValidEv; lunasvg::Rect::isValid(void) test al, 1 jnz short loc_19392 lea rax, _ZN7lunasvg4Rect5EmptyE; lunasvg::Rect::Empty mov rcx, [rax] mov [rbp+var_10], rcx mov rax, [rax+8] mov [rbp+var_8], rax loc_19392: movsd xmm0, [rbp+var_10] movsd xmm1, [rbp+var_8] add rsp, 80h pop rbp retn
double lunasvg::SVGElement::fillBoundingBox(lunasvg::SVGElement *this, double a2, double a3) { _QWORD v4[2]; // [rsp+8h] [rbp-78h] BYREF _BYTE v5[24]; // [rsp+18h] [rbp-68h] BYREF _QWORD v6[2]; // [rsp+30h] [rbp-50h] BYREF lunasvg::SVGElement *v7; // [rsp+40h] [rbp-40h] long long v8; // [rsp+48h] [rbp-38h] long long v9; // [rsp+50h] [rbp-30h] BYREF _QWORD *v10[3]; // [rsp+58h] [rbp-28h] BYREF long long v11; // [rsp+70h] [rbp-10h] BYREF long long v12; // [rsp+78h] [rbp-8h] v10[2] = this; v11 = lunasvg::Rect::Invalid; v12 = *(&lunasvg::Rect::Invalid + 1); v10[1] = (_QWORD *)((char *)this + 88); v10[0] = (_QWORD *)std::list<std::unique_ptr<lunasvg::SVGNode>>::begin((_QWORD *)this + 11); v9 = std::list<std::unique_ptr<lunasvg::SVGNode>>::end((long long)this + 88); while ( std::operator!=(v10, &v9) ) { v8 = std::_List_const_iterator<std::unique_ptr<lunasvg::SVGNode>>::operator*(v10); v7 = (lunasvg::SVGElement *)lunasvg::toSVGElement(v8); if ( v7 ) { if ( (lunasvg::SVGElement::isHiddenElement(v7) & 1) == 0 ) { (*(void (**)(void))(*(_QWORD *)v7 + 80LL))(); v4[0] = (*(double ( **)(lunasvg::SVGElement *))(*(_QWORD *)v7 + 88LL))(v7); *(double *)&v4[1] = a3; v6[0] = lunasvg::Transform::mapRect((lunasvg::Transform *)v5, (const lunasvg::Rect *)v4); *(double *)&v6[1] = a3; lunasvg::Rect::unite((lunasvg::Rect *)&v11, (const lunasvg::Rect *)v6); } } std::_List_const_iterator<std::unique_ptr<lunasvg::SVGNode>>::operator++(v10); } if ( !lunasvg::Rect::isValid((lunasvg::Rect *)&v11) ) { v11 = lunasvg::Rect::Empty; v12 = *(&lunasvg::Rect::Empty + 1); } return *(double *)&v11; }
fillBoundingBox: PUSH RBP MOV RBP,RSP SUB RSP,0x80 MOV qword ptr [RBP + -0x18],RDI MOV RAX,qword ptr [RBP + -0x18] LEA RCX,[0x18c168] MOV RDX,qword ptr [RCX] MOV qword ptr [RBP + -0x10],RDX MOV RCX,qword ptr [RCX + 0x8] MOV qword ptr [RBP + -0x8],RCX ADD RAX,0x58 MOV qword ptr [RBP + -0x20],RAX MOV RDI,qword ptr [RBP + -0x20] CALL 0x0010e970 MOV qword ptr [RBP + -0x28],RAX MOV RDI,qword ptr [RBP + -0x20] CALL 0x0010e9a0 MOV qword ptr [RBP + -0x30],RAX LAB_001192cb: LEA RDI,[RBP + -0x28] LEA RSI,[RBP + -0x30] CALL 0x0010e9d0 TEST AL,0x1 JNZ 0x001192e1 JMP 0x0011936f LAB_001192e1: LEA RDI,[RBP + -0x28] CALL 0x0010ea00 MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x38] CALL 0x0011fda0 MOV qword ptr [RBP + -0x40],RAX CMP qword ptr [RBP + -0x40],0x0 JZ 0x0011935f MOV RDI,qword ptr [RBP + -0x40] CALL 0x001193b0 TEST AL,0x1 JNZ 0x0011935f MOV RSI,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RSI] MOV RAX,qword ptr [RAX + 0x50] LEA RDI,[RBP + -0x68] MOV qword ptr [RBP + -0x80],RDI CALL RAX MOV RDI,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x58] CALL RAX MOV RDI,qword ptr [RBP + -0x80] MOVLPD qword ptr [RBP + -0x78],XMM0 MOVLPD qword ptr [RBP + -0x70],XMM1 LEA RSI,[RBP + -0x78] CALL 0x00111ed0 MOVLPD qword ptr [RBP + -0x50],XMM0 MOVLPD qword ptr [RBP + -0x48],XMM1 LEA RDI,[RBP + -0x10] LEA RSI,[RBP + -0x50] CALL 0x0011fdd0 LAB_0011935f: JMP 0x00119361 LAB_00119361: LEA RDI,[RBP + -0x28] CALL 0x0010ea90 JMP 0x001192cb LAB_0011936f: LEA RDI,[RBP + -0x10] CALL 0x00114530 TEST AL,0x1 JNZ 0x00119392 LEA RAX,[0x18c158] MOV RCX,qword ptr [RAX] MOV qword ptr [RBP + -0x10],RCX MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x8],RAX LAB_00119392: MOVSD XMM0,qword ptr [RBP + -0x10] MOVSD XMM1,qword ptr [RBP + -0x8] ADD RSP,0x80 POP RBP RET
/* lunasvg::SVGElement::fillBoundingBox() const */ int1 [16] lunasvg::SVGElement::fillBoundingBox(void) { int1 auVar1 [16]; ulong uVar2; long in_RDI; int8 local_80 [2]; Transform local_70 [24]; int8 local_58; SVGElement *local_48; unique_ptr *local_40; int8 local_38; int8 local_30; list<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>,std::allocator<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>>> *local_28; int8 local_18; int8 local_10; local_18 = Rect::Invalid; local_10 = DAT_0018c170; local_28 = (list<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>,std::allocator<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>>> *)(in_RDI + 0x58); local_30 = std::__cxx11:: list<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>,std::allocator<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>>> ::begin(local_28); local_38 = std::__cxx11:: list<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>,std::allocator<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>>> ::end(local_28); while( true ) { uVar2 = std::operator!=((_List_const_iterator *)&local_30,(_List_const_iterator *)&local_38); if ((uVar2 & 1) == 0) break; local_40 = (unique_ptr *) std:: _List_const_iterator<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>> ::operator*((_List_const_iterator<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>> *)&local_30); local_48 = (SVGElement *)toSVGElement(local_40); if (local_48 != (SVGElement *)0x0) { uVar2 = isHiddenElement(local_48); if ((uVar2 & 1) == 0) { (**(code **)(*(long *)local_48 + 0x50))(); local_80[0] = (**(code **)(*(long *)local_48 + 0x58))(); local_58 = Transform::mapRect(local_70,(Rect *)local_80); Rect::unite((Rect *)&local_18); } } std:: _List_const_iterator<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>>:: operator++((_List_const_iterator<std::unique_ptr<lunasvg::SVGNode,std::default_delete<lunasvg::SVGNode>>> *)&local_30); } uVar2 = Rect::isValid((Rect *)&local_18); if ((uVar2 & 1) == 0) { local_18 = Rect::Empty; local_10 = DAT_0018c160; } auVar1._8_8_ = local_10; auVar1._0_8_ = local_18; return auVar1; }
31,161
void nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_integer<unsigned char, 0>(unsigned char)
monkey531[P]llama/common/json.hpp
void dump_integer(NumberType x) { static constexpr std::array<std::array<char, 2>, 100> digits_to_99 { { {{'0', '0'}}, {{'0', '1'}}, {{'0', '2'}}, {{'0', '3'}}, {{'0', '4'}}, {{'0', '5'}}, {{'0', '6'}}, {{'0', '7'}}, {{'0', '8'}}, {{'0', '9'}}, {{'1', '0'}}, {{'1', '1'}}, {{'1', '2'}}, {{'1', '3'}}, {{'1', '4'}}, {{'1', '5'}}, {{'1', '6'}}, {{'1', '7'}}, {{'1', '8'}}, {{'1', '9'}}, {{'2', '0'}}, {{'2', '1'}}, {{'2', '2'}}, {{'2', '3'}}, {{'2', '4'}}, {{'2', '5'}}, {{'2', '6'}}, {{'2', '7'}}, {{'2', '8'}}, {{'2', '9'}}, {{'3', '0'}}, {{'3', '1'}}, {{'3', '2'}}, {{'3', '3'}}, {{'3', '4'}}, {{'3', '5'}}, {{'3', '6'}}, {{'3', '7'}}, {{'3', '8'}}, {{'3', '9'}}, {{'4', '0'}}, {{'4', '1'}}, {{'4', '2'}}, {{'4', '3'}}, {{'4', '4'}}, {{'4', '5'}}, {{'4', '6'}}, {{'4', '7'}}, {{'4', '8'}}, {{'4', '9'}}, {{'5', '0'}}, {{'5', '1'}}, {{'5', '2'}}, {{'5', '3'}}, {{'5', '4'}}, {{'5', '5'}}, {{'5', '6'}}, {{'5', '7'}}, {{'5', '8'}}, {{'5', '9'}}, {{'6', '0'}}, {{'6', '1'}}, {{'6', '2'}}, {{'6', '3'}}, {{'6', '4'}}, {{'6', '5'}}, {{'6', '6'}}, {{'6', '7'}}, {{'6', '8'}}, {{'6', '9'}}, {{'7', '0'}}, {{'7', '1'}}, {{'7', '2'}}, {{'7', '3'}}, {{'7', '4'}}, {{'7', '5'}}, {{'7', '6'}}, {{'7', '7'}}, {{'7', '8'}}, {{'7', '9'}}, {{'8', '0'}}, {{'8', '1'}}, {{'8', '2'}}, {{'8', '3'}}, {{'8', '4'}}, {{'8', '5'}}, {{'8', '6'}}, {{'8', '7'}}, {{'8', '8'}}, {{'8', '9'}}, {{'9', '0'}}, {{'9', '1'}}, {{'9', '2'}}, {{'9', '3'}}, {{'9', '4'}}, {{'9', '5'}}, {{'9', '6'}}, {{'9', '7'}}, {{'9', '8'}}, {{'9', '9'}}, } }; // special case for "0" if (x == 0) { o->write_character('0'); return; } // use a pointer to fill the buffer auto buffer_ptr = number_buffer.begin(); // NOLINT(llvm-qualified-auto,readability-qualified-auto,cppcoreguidelines-pro-type-vararg,hicpp-vararg) number_unsigned_t abs_value; unsigned int n_chars{}; if (is_negative_number(x)) { *buffer_ptr = '-'; abs_value = remove_sign(static_cast<number_integer_t>(x)); // account one more byte for the minus sign n_chars = 1 + count_digits(abs_value); } else { abs_value = static_cast<number_unsigned_t>(x); n_chars = count_digits(abs_value); } // spare 1 byte for '\0' JSON_ASSERT(n_chars < number_buffer.size() - 1); // jump to the end to generate the string from backward, // so we later avoid reversing the result buffer_ptr += n_chars; // Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu // See: https://www.youtube.com/watch?v=o4-CwDo2zpg while (abs_value >= 100) { const auto digits_index = static_cast<unsigned>((abs_value % 100)); abs_value /= 100; *(--buffer_ptr) = digits_to_99[digits_index][1]; *(--buffer_ptr) = digits_to_99[digits_index][0]; } if (abs_value >= 10) { const auto digits_index = static_cast<unsigned>(abs_value); *(--buffer_ptr) = digits_to_99[digits_index][1]; *(--buffer_ptr) = digits_to_99[digits_index][0]; } else { *(--buffer_ptr) = static_cast<char>('0' + abs_value); } o->write_characters(number_buffer.data(), n_chars); }
O1
cpp
void nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_integer<unsigned char, 0>(unsigned char): pushq %rbx testq %rsi, %rsi je 0x7b49e movq %rsi, %rcx leaq 0x10(%rdi), %rsi testq %rcx, %rcx js 0x7b4af movl $0x1, %r9d cmpq $0xa, %rcx jb 0x7b523 movl $0x4, %r9d movabsq $0x346dc5d63886594b, %r10 # imm = 0x346DC5D63886594B movq %rcx, %r8 cmpq $0x63, %r8 jbe 0x7b50c cmpq $0x3e7, %r8 # imm = 0x3E7 jbe 0x7b512 cmpq $0x2710, %r8 # imm = 0x2710 jb 0x7b523 movq %r8, %rax mulq %r10 shrq $0xb, %rdx addl $0x4, %r9d cmpq $0x1869f, %r8 # imm = 0x1869F movq %rdx, %r8 ja 0x7b457 addl $-0x3, %r9d jmp 0x7b523 movq (%rdi), %rdi movq (%rdi), %rax movq (%rax), %rax movl $0x30, %esi popq %rbx jmpq *%rax movb $0x2d, (%rsi) negq %rcx movl $0x1, %r9d cmpq $0xa, %rcx jb 0x7b520 movl $0x4, %r9d movabsq $0x346dc5d63886594b, %r10 # imm = 0x346DC5D63886594B movq %rcx, %r8 cmpq $0x63, %r8 jbe 0x7b517 cmpq $0x3e7, %r8 # imm = 0x3E7 jbe 0x7b51d cmpq $0x2710, %r8 # imm = 0x2710 jb 0x7b520 movq %r8, %rax mulq %r10 shrq $0xb, %rdx addl $0x4, %r9d cmpq $0x1869f, %r8 # imm = 0x1869F movq %rdx, %r8 ja 0x7b4d4 addl $-0x3, %r9d jmp 0x7b520 addl $-0x2, %r9d jmp 0x7b523 decl %r9d jmp 0x7b523 addl $-0x2, %r9d jmp 0x7b520 decl %r9d incl %r9d cmpl $0x3f, %r9d jae 0x7b5c0 movl %r9d, %r8d leaq (%rsi,%r8), %r9 cmpq $0x64, %rcx jb 0x7b57c movabsq $0x28f5c28f5c28f5c3, %r10 # imm = 0x28F5C28F5C28F5C3 leaq 0x35a93(%rip), %r11 # 0xb0fde movq %rcx, %rax shrq $0x2, %rax mulq %r10 shrq $0x2, %rdx imull $0x64, %edx, %eax movl %ecx, %ebx subl %eax, %ebx movzwl (%r11,%rbx,2), %eax movw %ax, -0x2(%r9) addq $-0x2, %r9 cmpq $0x270f, %rcx # imm = 0x270F movq %rdx, %rcx ja 0x7b54b jmp 0x7b57f movq %rcx, %rdx cmpq $0xa, %rdx jb 0x7b5a0 leaq 0x35a52(%rip), %rcx # 0xb0fde movb (%rcx,%rdx,2), %al movb 0x1(%rcx,%rdx,2), %cl movb %cl, -0x1(%r9) movq $-0x2, %rcx jmp 0x7b5ac orb $0x30, %dl movq $-0x1, %rcx movl %edx, %eax movb %al, (%r9,%rcx) movq (%rdi), %rdi movq (%rdi), %rax movq 0x8(%rax), %rax movq %r8, %rdx popq %rbx jmpq *%rax leaq 0x30090(%rip), %rdi # 0xab657 leaq 0x2e843(%rip), %rdx # 0xa9e11 leaq 0x32ba1(%rip), %rcx # 0xae176 movl $0x4952, %esi # imm = 0x4952 xorl %eax, %eax callq 0x18ad0 nop
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_: push rbx test rsi, rsi jz short loc_7B49E mov rcx, rsi lea rsi, [rdi+10h] test rcx, rcx js short loc_7B4AF mov r9d, 1 cmp rcx, 0Ah jb loc_7B523 mov r9d, 4 mov r10, 346DC5D63886594Bh mov r8, rcx loc_7B457: cmp r8, 63h ; 'c' jbe loc_7B50C cmp r8, 3E7h jbe loc_7B512 cmp r8, 2710h jb loc_7B523 mov rax, r8 mul r10 shr rdx, 0Bh add r9d, 4 cmp r8, 1869Fh mov r8, rdx ja short loc_7B457 add r9d, 0FFFFFFFDh jmp loc_7B523 loc_7B49E: mov rdi, [rdi] mov rax, [rdi] mov rax, [rax] mov esi, 30h ; '0' pop rbx jmp rax loc_7B4AF: mov byte ptr [rsi], 2Dh ; '-' neg rcx mov r9d, 1 cmp rcx, 0Ah jb short loc_7B520 mov r9d, 4 mov r10, 346DC5D63886594Bh mov r8, rcx loc_7B4D4: cmp r8, 63h ; 'c' jbe short loc_7B517 cmp r8, 3E7h jbe short loc_7B51D cmp r8, 2710h jb short loc_7B520 mov rax, r8 mul r10 shr rdx, 0Bh add r9d, 4 cmp r8, 1869Fh mov r8, rdx ja short loc_7B4D4 add r9d, 0FFFFFFFDh jmp short loc_7B520 loc_7B50C: add r9d, 0FFFFFFFEh jmp short loc_7B523 loc_7B512: dec r9d jmp short loc_7B523 loc_7B517: add r9d, 0FFFFFFFEh jmp short loc_7B520 loc_7B51D: dec r9d loc_7B520: inc r9d loc_7B523: cmp r9d, 3Fh ; '?' jnb loc_7B5C0 mov r8d, r9d lea r9, [rsi+r8] cmp rcx, 64h ; 'd' jb short loc_7B57C mov r10, 28F5C28F5C28F5C3h lea r11, _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99; "000102030405060708091011121314151617181"... loc_7B54B: mov rax, rcx shr rax, 2 mul r10 shr rdx, 2 imul eax, edx, 64h ; 'd' mov ebx, ecx sub ebx, eax movzx eax, word ptr [r11+rbx*2] mov [r9-2], ax add r9, 0FFFFFFFFFFFFFFFEh cmp rcx, 270Fh mov rcx, rdx ja short loc_7B54B jmp short loc_7B57F loc_7B57C: mov rdx, rcx loc_7B57F: cmp rdx, 0Ah jb short loc_7B5A0 lea rcx, _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99; "000102030405060708091011121314151617181"... mov al, [rcx+rdx*2] mov cl, [rcx+rdx*2+1] mov [r9-1], cl mov rcx, 0FFFFFFFFFFFFFFFEh jmp short loc_7B5AC loc_7B5A0: or dl, 30h mov rcx, 0FFFFFFFFFFFFFFFFh mov eax, edx loc_7B5AC: mov [r9+rcx], al mov rdi, [rdi] mov rax, [rdi] mov rax, [rax+8] mov rdx, r8 pop rbx jmp rax loc_7B5C0: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aNCharsNumberBu; "n_chars < number_buffer.size() - 1" mov esi, 4952h xor eax, eax call _ggml_abort nop
long long ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_( _QWORD *a1, unsigned long long a2) { unsigned long long v2; // rcx _BYTE *v3; // rsi unsigned int v4; // r9d unsigned long long v5; // r8 bool v6; // cc int v8; // r9d unsigned long long v9; // r8 long long v10; // r8 _BYTE *v11; // r9 unsigned long long v12; // rdx char v13; // al long long v14; // rcx double v15; // xmm0_8 if ( !a2 ) return (**(long long ( ***)(_QWORD, long long))*a1)(*a1, 48LL); v2 = a2; v3 = a1 + 2; if ( (v2 & 0x8000000000000000LL) != 0LL ) { *v3 = 45; v2 = -(long long)v2; v8 = 1; if ( v2 >= 0xA ) { v8 = 4; v9 = v2; while ( 1 ) { if ( v9 <= 0x63 ) { v8 -= 2; goto LABEL_22; } if ( v9 <= 0x3E7 ) break; if ( v9 < 0x2710 ) goto LABEL_22; v8 += 4; v6 = v9 <= 0x1869F; v9 /= 0x2710uLL; if ( v6 ) { v8 -= 3; goto LABEL_22; } } --v8; } LABEL_22: v4 = v8 + 1; } else { v4 = 1; if ( v2 >= 0xA ) { v4 = 4; v5 = v2; while ( 1 ) { if ( v5 <= 0x63 ) { v4 -= 2; goto LABEL_23; } if ( v5 <= 0x3E7 ) break; if ( v5 < 0x2710 ) goto LABEL_23; v4 += 4; v6 = v5 <= 0x1869F; v5 /= 0x2710uLL; if ( v6 ) { v4 -= 3; goto LABEL_23; } } --v4; } } LABEL_23: if ( v4 >= 0x3F ) { v15 = ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 18770LL, "GGML_ASSERT(%s) failed", "n_chars < number_buffer.size() - 1"); return nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::dump_float( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", v15); } else { v10 = v4; v11 = &v3[v4]; if ( v2 < 0x64 ) { v12 = v2; } else { do { v12 = v2 / 0x64; *((_WORD *)v11 - 1) = *(_WORD *)&ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99[2 * (v2 % 0x64)]; v11 -= 2; v6 = v2 <= 0x270F; v2 /= 0x64uLL; } while ( !v6 ); } if ( v12 < 0xA ) { v14 = -1LL; v13 = v12 | 0x30; } else { v13 = ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99[2 * v12]; *(v11 - 1) = ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99[2 * v12 + 1]; v14 = -2LL; } v11[v14] = v13; return (*(long long ( **)(_QWORD, _BYTE *, long long))(*(_QWORD *)*a1 + 8LL))(*a1, v3, v10); } }
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_: PUSH RBX TEST RSI,RSI JZ 0x0017b49e MOV RCX,RSI LEA RSI,[RDI + 0x10] TEST RCX,RCX JS 0x0017b4af MOV R9D,0x1 CMP RCX,0xa JC 0x0017b523 MOV R9D,0x4 MOV R10,0x346dc5d63886594b MOV R8,RCX LAB_0017b457: CMP R8,0x63 JBE 0x0017b50c CMP R8,0x3e7 JBE 0x0017b512 CMP R8,0x2710 JC 0x0017b523 MOV RAX,R8 MUL R10 SHR RDX,0xb ADD R9D,0x4 CMP R8,0x1869f MOV R8,RDX JA 0x0017b457 ADD R9D,-0x3 JMP 0x0017b523 LAB_0017b49e: MOV RDI,qword ptr [RDI] MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX] MOV ESI,0x30 POP RBX JMP RAX LAB_0017b4af: MOV byte ptr [RSI],0x2d NEG RCX MOV R9D,0x1 CMP RCX,0xa JC 0x0017b520 MOV R9D,0x4 MOV R10,0x346dc5d63886594b MOV R8,RCX LAB_0017b4d4: CMP R8,0x63 JBE 0x0017b517 CMP R8,0x3e7 JBE 0x0017b51d CMP R8,0x2710 JC 0x0017b520 MOV RAX,R8 MUL R10 SHR RDX,0xb ADD R9D,0x4 CMP R8,0x1869f MOV R8,RDX JA 0x0017b4d4 ADD R9D,-0x3 JMP 0x0017b520 LAB_0017b50c: ADD R9D,-0x2 JMP 0x0017b523 LAB_0017b512: DEC R9D JMP 0x0017b523 LAB_0017b517: ADD R9D,-0x2 JMP 0x0017b520 LAB_0017b51d: DEC R9D LAB_0017b520: INC R9D LAB_0017b523: CMP R9D,0x3f JNC 0x0017b5c0 MOV R8D,R9D LEA R9,[RSI + R8*0x1] CMP RCX,0x64 JC 0x0017b57c MOV R10,0x28f5c28f5c28f5c3 LEA R11,[0x1b0fde] LAB_0017b54b: MOV RAX,RCX SHR RAX,0x2 MUL R10 SHR RDX,0x2 IMUL EAX,EDX,0x64 MOV EBX,ECX SUB EBX,EAX MOVZX EAX,word ptr [R11 + RBX*0x2] MOV word ptr [R9 + -0x2],AX ADD R9,-0x2 CMP RCX,0x270f MOV RCX,RDX JA 0x0017b54b JMP 0x0017b57f LAB_0017b57c: MOV RDX,RCX LAB_0017b57f: CMP RDX,0xa JC 0x0017b5a0 LEA RCX,[0x1b0fde] MOV AL,byte ptr [RCX + RDX*0x2] MOV CL,byte ptr [RCX + RDX*0x2 + 0x1] MOV byte ptr [R9 + -0x1],CL MOV RCX,-0x2 JMP 0x0017b5ac LAB_0017b5a0: OR DL,0x30 MOV RCX,-0x1 MOV EAX,EDX LAB_0017b5ac: MOV byte ptr [R9 + RCX*0x1],AL MOV RDI,qword ptr [RDI] MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x8] MOV RDX,R8 POP RBX JMP RAX LAB_0017b5c0: LEA RDI,[0x1ab657] LEA RDX,[0x1a9e11] LEA RCX,[0x1ae176] MOV ESI,0x4952 XOR EAX,EAX CALL 0x00118ad0
void _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_ (int8 *param_1,ulong param_2) { int8 *puVar1; bool bVar2; int iVar3; long lVar4; byte bVar5; ulong uVar6; int iVar7; ulong uVar8; int1 *puVar9; if (param_2 == 0) { /* WARNING: Could not recover jumptable at 0x0017b4ad. Too many branches */ /* WARNING: Treating indirect jump as call */ (*(code *)**(int8 **)*param_1)((int8 *)*param_1,0x30); return; } puVar1 = param_1 + 2; if ((long)param_2 < 0) { *(int1 *)puVar1 = 0x2d; param_2 = -param_2; iVar7 = 1; if (9 < param_2) { uVar8 = param_2; iVar3 = 4; do { iVar7 = iVar3; if (uVar8 < 100) { iVar7 = iVar7 + -2; goto LAB_0017b520; } if (uVar8 < 1000) { iVar7 = iVar7 + -1; goto LAB_0017b520; } if (uVar8 < 10000) goto LAB_0017b520; bVar2 = 99999 < uVar8; uVar8 = uVar8 / 10000; iVar3 = iVar7 + 4; } while (bVar2); iVar7 = iVar7 + 1; } LAB_0017b520: uVar8 = (ulong)(iVar7 + 1); } else { uVar8 = 1; if (9 < param_2) { uVar8 = 4; uVar6 = param_2; do { iVar7 = (int)uVar8; if (uVar6 < 100) { uVar8 = (ulong)(iVar7 - 2); goto LAB_0017b523; } if (uVar6 < 1000) { uVar8 = (ulong)(iVar7 - 1); goto LAB_0017b523; } if (uVar6 < 10000) goto LAB_0017b523; uVar8 = (ulong)(iVar7 + 4); bVar2 = 99999 < uVar6; uVar6 = uVar6 / 10000; } while (bVar2); uVar8 = (ulong)(iVar7 + 1); } } LAB_0017b523: if (0x3e < (uint)uVar8) { /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x4952, "GGML_ASSERT(%s) failed","n_chars < number_buffer.size() - 1"); } puVar9 = (int1 *)((long)puVar1 + uVar8); uVar6 = param_2; if (99 < param_2) { do { uVar6 = param_2 / 100; *(int2 *)(puVar9 + -2) = *(int2 *) ( _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99 + (ulong)(uint)((int)param_2 + (int)uVar6 * -100) * 2); puVar9 = puVar9 + -2; bVar2 = 9999 < param_2; param_2 = uVar6; } while (bVar2); } if (uVar6 < 10) { bVar5 = (byte)uVar6 | 0x30; lVar4 = -1; } else { bVar5 = _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99 [uVar6 * 2]; puVar9[-1] = _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99 [uVar6 * 2 + 1]; lVar4 = -2; } puVar9[lVar4] = bVar5; /* WARNING: Could not recover jumptable at 0x0017b5be. Too many branches */ /* WARNING: Treating indirect jump as call */ (**(code **)(*(long *)*param_1 + 8))((long *)*param_1,puVar1,uVar8); return; }
31,162
void nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_integer<unsigned char, 0>(unsigned char)
monkey531[P]llama/common/json.hpp
void dump_integer(NumberType x) { static constexpr std::array<std::array<char, 2>, 100> digits_to_99 { { {{'0', '0'}}, {{'0', '1'}}, {{'0', '2'}}, {{'0', '3'}}, {{'0', '4'}}, {{'0', '5'}}, {{'0', '6'}}, {{'0', '7'}}, {{'0', '8'}}, {{'0', '9'}}, {{'1', '0'}}, {{'1', '1'}}, {{'1', '2'}}, {{'1', '3'}}, {{'1', '4'}}, {{'1', '5'}}, {{'1', '6'}}, {{'1', '7'}}, {{'1', '8'}}, {{'1', '9'}}, {{'2', '0'}}, {{'2', '1'}}, {{'2', '2'}}, {{'2', '3'}}, {{'2', '4'}}, {{'2', '5'}}, {{'2', '6'}}, {{'2', '7'}}, {{'2', '8'}}, {{'2', '9'}}, {{'3', '0'}}, {{'3', '1'}}, {{'3', '2'}}, {{'3', '3'}}, {{'3', '4'}}, {{'3', '5'}}, {{'3', '6'}}, {{'3', '7'}}, {{'3', '8'}}, {{'3', '9'}}, {{'4', '0'}}, {{'4', '1'}}, {{'4', '2'}}, {{'4', '3'}}, {{'4', '4'}}, {{'4', '5'}}, {{'4', '6'}}, {{'4', '7'}}, {{'4', '8'}}, {{'4', '9'}}, {{'5', '0'}}, {{'5', '1'}}, {{'5', '2'}}, {{'5', '3'}}, {{'5', '4'}}, {{'5', '5'}}, {{'5', '6'}}, {{'5', '7'}}, {{'5', '8'}}, {{'5', '9'}}, {{'6', '0'}}, {{'6', '1'}}, {{'6', '2'}}, {{'6', '3'}}, {{'6', '4'}}, {{'6', '5'}}, {{'6', '6'}}, {{'6', '7'}}, {{'6', '8'}}, {{'6', '9'}}, {{'7', '0'}}, {{'7', '1'}}, {{'7', '2'}}, {{'7', '3'}}, {{'7', '4'}}, {{'7', '5'}}, {{'7', '6'}}, {{'7', '7'}}, {{'7', '8'}}, {{'7', '9'}}, {{'8', '0'}}, {{'8', '1'}}, {{'8', '2'}}, {{'8', '3'}}, {{'8', '4'}}, {{'8', '5'}}, {{'8', '6'}}, {{'8', '7'}}, {{'8', '8'}}, {{'8', '9'}}, {{'9', '0'}}, {{'9', '1'}}, {{'9', '2'}}, {{'9', '3'}}, {{'9', '4'}}, {{'9', '5'}}, {{'9', '6'}}, {{'9', '7'}}, {{'9', '8'}}, {{'9', '9'}}, } }; // special case for "0" if (x == 0) { o->write_character('0'); return; } // use a pointer to fill the buffer auto buffer_ptr = number_buffer.begin(); // NOLINT(llvm-qualified-auto,readability-qualified-auto,cppcoreguidelines-pro-type-vararg,hicpp-vararg) number_unsigned_t abs_value; unsigned int n_chars{}; if (is_negative_number(x)) { *buffer_ptr = '-'; abs_value = remove_sign(static_cast<number_integer_t>(x)); // account one more byte for the minus sign n_chars = 1 + count_digits(abs_value); } else { abs_value = static_cast<number_unsigned_t>(x); n_chars = count_digits(abs_value); } // spare 1 byte for '\0' JSON_ASSERT(n_chars < number_buffer.size() - 1); // jump to the end to generate the string from backward, // so we later avoid reversing the result buffer_ptr += n_chars; // Fast int2ascii implementation inspired by "Fastware" talk by Andrei Alexandrescu // See: https://www.youtube.com/watch?v=o4-CwDo2zpg while (abs_value >= 100) { const auto digits_index = static_cast<unsigned>((abs_value % 100)); abs_value /= 100; *(--buffer_ptr) = digits_to_99[digits_index][1]; *(--buffer_ptr) = digits_to_99[digits_index][0]; } if (abs_value >= 10) { const auto digits_index = static_cast<unsigned>(abs_value); *(--buffer_ptr) = digits_to_99[digits_index][1]; *(--buffer_ptr) = digits_to_99[digits_index][0]; } else { *(--buffer_ptr) = static_cast<char>('0' + abs_value); } o->write_characters(number_buffer.data(), n_chars); }
O2
cpp
void nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_integer<unsigned char, 0>(unsigned char): pushq %r14 pushq %rbx pushq %rax movq %rdi, %rbx testq %rsi, %rsi je 0x6b962 movq %rsi, %r14 js 0x6b977 movq %rbx, %rdi movq %r14, %rsi callq 0x6bd1e jmp 0x6b996 movq (%rbx), %rdi movq (%rdi), %rax movq (%rax), %rax pushq $0x30 popq %rsi addq $0x8, %rsp popq %rbx popq %r14 jmpq *%rax movb $0x2d, 0x10(%rbx) movq %rbx, %rdi movq %r14, %rsi callq 0x6bce6 movq %rax, %r14 movq %rbx, %rdi movq %rax, %rsi callq 0x6bd1e incl %eax cmpl $0x3f, %eax jae 0x6ba0c leaq 0x10(%rbx), %rsi movl %eax, %ecx leaq (%rsi,%rcx), %rdi pushq $0x64 popq %r9 leaq 0x285ee(%rip), %r8 # 0x93f9e cmpq $0x64, %r14 jb 0x6b9d2 movq %r14, %rax xorl %edx, %edx divq %r9 movl %edx, %edx movzwl (%r8,%rdx,2), %edx movw %dx, -0x2(%rdi) addq $-0x2, %rdi movq %rax, %r14 jmp 0x6b9b0 cmpq $0xa, %r14 jb 0x6b9e9 movb (%r8,%r14,2), %al movb 0x1(%r8,%r14,2), %dl movb %dl, -0x1(%rdi) pushq $-0x2 popq %rdx jmp 0x6b9f3 orb $0x30, %r14b pushq $-0x1 popq %rdx movl %r14d, %eax movb %al, (%rdi,%rdx) movq (%rbx), %rdi movq (%rdi), %rax movq 0x8(%rax), %rax movq %rcx, %rdx addq $0x8, %rsp popq %rbx popq %r14 jmpq *%rax leaq 0x22bf4(%rip), %rdi # 0x8e607 leaq 0x213a7(%rip), %rdx # 0x8cdc1 leaq 0x25714(%rip), %rcx # 0x91135 movl $0x4952, %esi # imm = 0x4952 xorl %eax, %eax callq 0x20af0 nop
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_: push r14 push rbx push rax mov rbx, rdi test rsi, rsi jz short loc_6B962 mov r14, rsi js short loc_6B977 mov rdi, rbx mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12count_digitsEm; nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::count_digits(ulong) jmp short loc_6B996 loc_6B962: mov rdi, [rbx] mov rax, [rdi] mov rax, [rax] push 30h ; '0' pop rsi add rsp, 8 pop rbx pop r14 jmp rax loc_6B977: mov byte ptr [rbx+10h], 2Dh ; '-' mov rdi, rbx mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11remove_signEl; nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::remove_sign(long) mov r14, rax mov rdi, rbx mov rsi, rax call _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12count_digitsEm; nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::count_digits(ulong) inc eax loc_6B996: cmp eax, 3Fh ; '?' jnb short loc_6BA0C lea rsi, [rbx+10h] mov ecx, eax lea rdi, [rsi+rcx] push 64h ; 'd' pop r9 lea r8, _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99; "000102030405060708091011121314151617181"... loc_6B9B0: cmp r14, 64h ; 'd' jb short loc_6B9D2 mov rax, r14 xor edx, edx div r9 mov edx, edx movzx edx, word ptr [r8+rdx*2] mov [rdi-2], dx add rdi, 0FFFFFFFFFFFFFFFEh mov r14, rax jmp short loc_6B9B0 loc_6B9D2: cmp r14, 0Ah jb short loc_6B9E9 mov al, [r8+r14*2] mov dl, [r8+r14*2+1] mov [rdi-1], dl push 0FFFFFFFFFFFFFFFEh pop rdx jmp short loc_6B9F3 loc_6B9E9: or r14b, 30h push 0FFFFFFFFFFFFFFFFh pop rdx mov eax, r14d loc_6B9F3: mov [rdi+rdx], al mov rdi, [rbx] mov rax, [rdi] mov rax, [rax+8] mov rdx, rcx add rsp, 8 pop rbx pop r14 jmp rax loc_6BA0C: lea rdi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aNCharsNumberBu; "n_chars < number_buffer.size() - 1" mov esi, 4952h xor eax, eax call _ggml_abort nop
long long ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_( _QWORD *a1, long long a2) { unsigned long long v3; // r14 unsigned int v4; // eax _QWORD *v6; // rsi long long v7; // rcx long long v8; // rdi char v9; // al long long v10; // rdx if ( !a2 ) return (**(long long ( ***)(_QWORD, long long))*a1)(*a1, 48LL); v3 = a2; if ( a2 < 0 ) { *((_BYTE *)a1 + 16) = 45; v3 = nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::remove_sign( a1, a2); v4 = nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::count_digits( a1, v3) + 1; } else { v4 = nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::count_digits( a1, a2); } if ( v4 >= 0x3F ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp", 18770LL, "GGML_ASSERT(%s) failed", "n_chars < number_buffer.size() - 1"); return nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::dump_float(); } else { v6 = a1 + 2; v7 = v4; v8 = (long long)a1 + v4 + 16; while ( v3 >= 0x64 ) { *(_WORD *)(v8 - 2) = *(_WORD *)&ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99[2 * (v3 % 0x64)]; v8 -= 2LL; v3 /= 0x64uLL; } if ( v3 < 0xA ) { v10 = -1LL; v9 = v3 | 0x30; } else { v9 = ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99[2 * v3]; *(_BYTE *)(v8 - 1) = ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99[2 * v3 + 1]; v10 = -2LL; } *(_BYTE *)(v8 + v10) = v9; return (*(long long ( **)(_QWORD, _QWORD *, long long))(*(_QWORD *)*a1 + 8LL))(*a1, v6, v7); } }
_ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_: PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDI TEST RSI,RSI JZ 0x0016b962 MOV R14,RSI JS 0x0016b977 MOV RDI,RBX MOV RSI,R14 CALL 0x0016bd1e JMP 0x0016b996 LAB_0016b962: MOV RDI,qword ptr [RBX] MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX] PUSH 0x30 POP RSI ADD RSP,0x8 POP RBX POP R14 JMP RAX LAB_0016b977: MOV byte ptr [RBX + 0x10],0x2d MOV RDI,RBX MOV RSI,R14 CALL 0x0016bce6 MOV R14,RAX MOV RDI,RBX MOV RSI,RAX CALL 0x0016bd1e INC EAX LAB_0016b996: CMP EAX,0x3f JNC 0x0016ba0c LEA RSI,[RBX + 0x10] MOV ECX,EAX LEA RDI,[RSI + RCX*0x1] PUSH 0x64 POP R9 LEA R8,[0x193f9e] LAB_0016b9b0: CMP R14,0x64 JC 0x0016b9d2 MOV RAX,R14 XOR EDX,EDX DIV R9 MOV EDX,EDX MOVZX EDX,word ptr [R8 + RDX*0x2] MOV word ptr [RDI + -0x2],DX ADD RDI,-0x2 MOV R14,RAX JMP 0x0016b9b0 LAB_0016b9d2: CMP R14,0xa JC 0x0016b9e9 MOV AL,byte ptr [R8 + R14*0x2] MOV DL,byte ptr [R8 + R14*0x2 + 0x1] MOV byte ptr [RDI + -0x1],DL PUSH -0x2 POP RDX JMP 0x0016b9f3 LAB_0016b9e9: OR R14B,0x30 PUSH -0x1 POP RDX MOV EAX,R14D LAB_0016b9f3: MOV byte ptr [RDI + RDX*0x1],AL MOV RDI,qword ptr [RBX] MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x8] MOV RDX,RCX ADD RSP,0x8 POP RBX POP R14 JMP RAX LAB_0016ba0c: LEA RDI,[0x18e607] LEA RDX,[0x18cdc1] LEA RCX,[0x191135] MOV ESI,0x4952 XOR EAX,EAX CALL 0x00120af0
void _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_ (serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *param_1,ulong param_2) { uint uVar1; int iVar2; long lVar3; serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *psVar4; serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> sVar5; if (param_2 == 0) { /* WARNING: Could not recover jumptable at 0x0016b975. Too many branches */ /* WARNING: Treating indirect jump as call */ (**(code **)**(int8 **)param_1)(*(int8 **)param_1,0x30); return; } if ((long)param_2 < 0) { param_1[0x10] = (serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> )0x2d; param_2 = nlohmann::json_abi_v3_11_3::detail:: serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::remove_sign(param_1,param_2); iVar2 = nlohmann::json_abi_v3_11_3::detail:: serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::count_digits(param_1,param_2); uVar1 = iVar2 + 1; } else { uVar1 = nlohmann::json_abi_v3_11_3::detail:: serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> ::count_digits(param_1,param_2); } if (uVar1 < 0x3f) { psVar4 = param_1 + 0x10 + uVar1; for (; 99 < param_2; param_2 = param_2 / 100) { *(int2 *)(psVar4 + -2) = *(int2 *) ( _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99 + (param_2 % 100) * 2); psVar4 = psVar4 + -2; } if (param_2 < 10) { sVar5 = (serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> )((byte)param_2 | 0x30); lVar3 = -1; } else { sVar5 = *(serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)( _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99 + param_2 * 2); psVar4[-1] = *(serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>> *)( _ZZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE12dump_integerIlTnNSt9enable_ifIXoooooosr3std11is_integralIT_EE5valuesr3std7is_sameISJ_mEE5valuesr3std7is_sameISJ_lEE5valuesr3std7is_sameISJ_hEE5valueEiE4typeELi0EEEvSJ_E12digits_to_99 + param_2 * 2 + 1); lVar3 = -2; } psVar4[lVar3] = sVar5; /* WARNING: Could not recover jumptable at 0x0016ba0a. Too many branches */ /* WARNING: Treating indirect jump as call */ (**(code **)(**(long **)param_1 + 8))(*(long **)param_1,param_1 + 0x10,(ulong)uVar1); return; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x4952, "GGML_ASSERT(%s) failed","n_chars < number_buffer.size() - 1"); }
31,163
mysql_next_result_start_internal
eloqsql/libmariadb/libmariadb/mariadb_async.c
static void mysql_next_result_start_internal(void *d) { MK_ASYNC_INTERNAL_BODY( mysql_next_result, (parms->mysql), parms->mysql, int, r_int) }
O3
c
mysql_next_result_start_internal: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq (%rdi), %rdi movq 0x480(%rdi), %rax movq 0x28(%rax), %rbx callq 0x1a439 movl %eax, 0x8(%rbx) movl $0x0, (%rbx) addq $0x8, %rsp popq %rbx popq %rbp retq
mysql_next_result_start_internal: push rbp mov rbp, rsp push rbx push rax mov rdi, [rdi] mov rax, [rdi+480h] mov rbx, [rax+28h] call mysql_next_result mov [rbx+8], eax mov dword ptr [rbx], 0 add rsp, 8 pop rbx pop rbp retn
long long mysql_next_result_start_internal(long long *a1) { long long v1; // rdi _DWORD *v2; // rbx long long result; // rax v1 = *a1; v2 = *(_DWORD **)(*(_QWORD *)(v1 + 1152) + 40LL); result = mysql_next_result(v1); v2[2] = result; *v2 = 0; return result; }
mysql_next_result_start_internal: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RDI,qword ptr [RDI] MOV RAX,qword ptr [RDI + 0x480] MOV RBX,qword ptr [RAX + 0x28] CALL 0x0011a439 MOV dword ptr [RBX + 0x8],EAX MOV dword ptr [RBX],0x0 ADD RSP,0x8 POP RBX POP RBP RET
void mysql_next_result_start_internal(long *param_1) { int4 *puVar1; int4 uVar2; puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28); uVar2 = mysql_next_result(); puVar1[2] = uVar2; *puVar1 = 0; return; }
31,164
JS_VALUE_IS_NAN
bluesky950520[P]quickjs/quickjs.h
static inline JS_BOOL JS_VALUE_IS_NAN(JSValue v) { union { double d; uint64_t u64; } u; if (v.tag != JS_TAG_FLOAT64) return 0; u.d = v.u.float64; return (u.u64 & 0x7fffffffffffffff) > 0x7ff0000000000000; }
O0
c
JS_VALUE_IS_NAN: movq %rdi, -0x18(%rsp) movq %rsi, -0x10(%rsp) cmpq $0x7, -0x10(%rsp) je 0x6917c movl $0x0, -0x4(%rsp) jmp 0x691b0 movsd -0x18(%rsp), %xmm0 movsd %xmm0, -0x20(%rsp) movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF andq -0x20(%rsp), %rax movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000 cmpq %rcx, %rax seta %al andb $0x1, %al movzbl %al, %eax movl %eax, -0x4(%rsp) movl -0x4(%rsp), %eax retq nopw %cs:(%rax,%rax)
JS_VALUE_IS_NAN: mov [rsp+var_18], rdi mov [rsp+var_10], rsi cmp [rsp+var_10], 7 jz short loc_6917C mov [rsp+var_4], 0 jmp short loc_691B0 loc_6917C: movsd xmm0, [rsp+var_18] movsd [rsp+var_20], xmm0 mov rax, 7FFFFFFFFFFFFFFFh and rax, [rsp+var_20] mov rcx, 7FF0000000000000h cmp rax, rcx setnbe al and al, 1 movzx eax, al mov [rsp+var_4], eax loc_691B0: mov eax, [rsp+var_4] retn
_BOOL8 JS_VALUE_IS_NAN(long long a1, long long a2) { return a2 == 7 && (a1 & 0x7FFFFFFFFFFFFFFFuLL) > 0x7FF0000000000000LL; }
JS_VALUE_IS_NAN: MOV qword ptr [RSP + -0x18],RDI MOV qword ptr [RSP + -0x10],RSI CMP qword ptr [RSP + -0x10],0x7 JZ 0x0016917c MOV dword ptr [RSP + -0x4],0x0 JMP 0x001691b0 LAB_0016917c: MOVSD XMM0,qword ptr [RSP + -0x18] MOVSD qword ptr [RSP + -0x20],XMM0 MOV RAX,0x7fffffffffffffff AND RAX,qword ptr [RSP + -0x20] MOV RCX,0x7ff0000000000000 CMP RAX,RCX SETA AL AND AL,0x1 MOVZX EAX,AL MOV dword ptr [RSP + -0x4],EAX LAB_001691b0: MOV EAX,dword ptr [RSP + -0x4] RET
bool JS_VALUE_IS_NAN(ulong param_1,long param_2) { return param_2 == 7 && 0x7ff0000000000000 < (param_1 & 0x7fffffffffffffff); }
31,165
my_b_write
eloqsql/mysys/mf_iocache.c
int _my_b_write(IO_CACHE *info, const uchar *Buffer, size_t Count) { size_t rest_length; int res; /* Always use my_b_flush_io_cache() to flush write_buffer! */ DBUG_ASSERT(Buffer != info->write_buffer); if (info->pos_in_file + info->buffer_length > info->end_of_file) { my_errno=errno=EFBIG; return info->error = -1; } rest_length= (size_t) (info->write_end - info->write_pos); DBUG_ASSERT(Count >= rest_length); memcpy(info->write_pos, Buffer, (size_t) rest_length); Buffer+=rest_length; Count-=rest_length; info->write_pos+=rest_length; if (my_b_flush_io_cache(info, 1)) return 1; if (Count) { my_off_t old_pos_in_file= info->pos_in_file; res= info->write_function(info, Buffer, Count); Count-= (size_t) (info->pos_in_file - old_pos_in_file); Buffer+= info->pos_in_file - old_pos_in_file; } else res= 0; if (!res && Count) { memcpy(info->write_pos, Buffer, Count); info->write_pos+= Count; } return res; }
O0
c
my_b_write: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) jmp 0xe8a46 movq -0x10(%rbp), %rax movq (%rax), %rax movq -0x10(%rbp), %rcx addq 0xe8(%rcx), %rax movq -0x10(%rbp), %rcx cmpq 0x8(%rcx), %rax jbe 0xe8a92 callq 0x29700 movl $0x1b, (%rax) callq 0xfdd30 movl $0x1b, (%rax) movq -0x10(%rbp), %rax movl $0xffffffff, 0xe4(%rax) # imm = 0xFFFFFFFF movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0xe8ba2 movq -0x10(%rbp), %rax movq 0x48(%rax), %rax movq -0x10(%rbp), %rcx movq 0x40(%rcx), %rcx subq %rcx, %rax movq %rax, -0x28(%rbp) jmp 0xe8aab movq -0x10(%rbp), %rax movq 0x40(%rax), %rdi movq -0x18(%rbp), %rsi movq -0x28(%rbp), %rdx callq 0x29090 movq -0x28(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x18(%rbp) movq -0x28(%rbp), %rcx movq -0x20(%rbp), %rax subq %rcx, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rcx movq -0x10(%rbp), %rax addq 0x40(%rax), %rcx movq %rcx, 0x40(%rax) movq -0x10(%rbp), %rdi movl $0x1, %esi callq 0xe8710 cmpl $0x0, %eax je 0xe8b0a movl $0x1, -0x4(%rbp) jmp 0xe8ba2 cmpq $0x0, -0x20(%rbp) je 0xe8b63 movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rax movq 0xa8(%rax), %rax movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx callq *%rax movl %eax, -0x2c(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rcx subq -0x38(%rbp), %rcx movq -0x20(%rbp), %rax subq %rcx, %rax movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax subq -0x38(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x18(%rbp) jmp 0xe8b6a movl $0x0, -0x2c(%rbp) cmpl $0x0, -0x2c(%rbp) jne 0xe8b9c cmpq $0x0, -0x20(%rbp) je 0xe8b9c movq -0x10(%rbp), %rax movq 0x40(%rax), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx callq 0x29090 movq -0x20(%rbp), %rcx movq -0x10(%rbp), %rax addq 0x40(%rax), %rcx movq %rcx, 0x40(%rax) movl -0x2c(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x40, %rsp popq %rbp retq nopl (%rax,%rax)
_my_b_write: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx jmp short $+2 loc_E8A46: mov rax, [rbp+var_10] mov rax, [rax] mov rcx, [rbp+var_10] add rax, [rcx+0E8h] mov rcx, [rbp+var_10] cmp rax, [rcx+8] jbe short loc_E8A92 call ___errno_location mov dword ptr [rax], 1Bh call _my_thread_var mov dword ptr [rax], 1Bh mov rax, [rbp+var_10] mov dword ptr [rax+0E4h], 0FFFFFFFFh mov [rbp+var_4], 0FFFFFFFFh jmp loc_E8BA2 loc_E8A92: mov rax, [rbp+var_10] mov rax, [rax+48h] mov rcx, [rbp+var_10] mov rcx, [rcx+40h] sub rax, rcx mov [rbp+var_28], rax jmp short $+2 loc_E8AAB: mov rax, [rbp+var_10] mov rdi, [rax+40h] mov rsi, [rbp+var_18] mov rdx, [rbp+var_28] call _memcpy mov rax, [rbp+var_28] add rax, [rbp+var_18] mov [rbp+var_18], rax mov rcx, [rbp+var_28] mov rax, [rbp+var_20] sub rax, rcx mov [rbp+var_20], rax mov rcx, [rbp+var_28] mov rax, [rbp+var_10] add rcx, [rax+40h] mov [rax+40h], rcx mov rdi, [rbp+var_10] mov esi, 1 call my_b_flush_io_cache cmp eax, 0 jz short loc_E8B0A mov [rbp+var_4], 1 jmp loc_E8BA2 loc_E8B0A: cmp [rbp+var_20], 0 jz short loc_E8B63 mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_38], rax mov rax, [rbp+var_10] mov rax, [rax+0A8h] mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] call rax mov [rbp+var_2C], eax mov rax, [rbp+var_10] mov rcx, [rax] sub rcx, [rbp+var_38] mov rax, [rbp+var_20] sub rax, rcx mov [rbp+var_20], rax mov rax, [rbp+var_10] mov rax, [rax] sub rax, [rbp+var_38] add rax, [rbp+var_18] mov [rbp+var_18], rax jmp short loc_E8B6A loc_E8B63: mov [rbp+var_2C], 0 loc_E8B6A: cmp [rbp+var_2C], 0 jnz short loc_E8B9C cmp [rbp+var_20], 0 jz short loc_E8B9C mov rax, [rbp+var_10] mov rdi, [rax+40h] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] call _memcpy mov rcx, [rbp+var_20] mov rax, [rbp+var_10] add rcx, [rax+40h] mov [rax+40h], rcx loc_E8B9C: mov eax, [rbp+var_2C] mov [rbp+var_4], eax loc_E8BA2: mov eax, [rbp+var_4] add rsp, 40h pop rbp retn
long long my_b_write(long long a1, const char *a2, long long a3) { long long v4; // [rsp+8h] [rbp-38h] unsigned int v5; // [rsp+14h] [rbp-2Ch] long long v6; // [rsp+18h] [rbp-28h] long long v8; // [rsp+20h] [rbp-20h] const char *v9; // [rsp+28h] [rbp-18h] if ( *(_QWORD *)(a1 + 232) + *(_QWORD *)a1 <= *(_QWORD *)(a1 + 8) ) { v6 = *(_QWORD *)(a1 + 72) - *(_QWORD *)(a1 + 64); memcpy(*(_QWORD *)(a1 + 64), a2, v6); v9 = &a2[v6]; v8 = a3 - v6; *(_QWORD *)(a1 + 64) += v6; if ( (unsigned int)my_b_flush_io_cache(a1, 1) ) { return 1; } else { if ( v8 ) { v4 = *(_QWORD *)a1; v5 = (*(long long ( **)(long long, const char *, long long))(a1 + 168))(a1, v9, v8); v8 -= *(_QWORD *)a1 - v4; v9 += *(_QWORD *)a1 - v4; } else { v5 = 0; } if ( !v5 && v8 ) { memcpy(*(_QWORD *)(a1 + 64), v9, v8); *(_QWORD *)(a1 + 64) += v8; } return v5; } } else { *(_DWORD *)__errno_location() = 27; *(_DWORD *)my_thread_var(a1, a2) = 27; *(_DWORD *)(a1 + 228) = -1; return (unsigned int)-1; } }
_my_b_write: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX JMP 0x001e8a46 LAB_001e8a46: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RBP + -0x10] ADD RAX,qword ptr [RCX + 0xe8] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0x8] JBE 0x001e8a92 CALL 0x00129700 MOV dword ptr [RAX],0x1b CALL 0x001fdd30 MOV dword ptr [RAX],0x1b MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0xe4],0xffffffff MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001e8ba2 LAB_001e8a92: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x48] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX + 0x40] SUB RAX,RCX MOV qword ptr [RBP + -0x28],RAX JMP 0x001e8aab LAB_001e8aab: MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x40] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x28] CALL 0x00129090 MOV RAX,qword ptr [RBP + -0x28] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x18],RAX MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x20] SUB RAX,RCX MOV qword ptr [RBP + -0x20],RAX MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x10] ADD RCX,qword ptr [RAX + 0x40] MOV qword ptr [RAX + 0x40],RCX MOV RDI,qword ptr [RBP + -0x10] MOV ESI,0x1 CALL 0x001e8710 CMP EAX,0x0 JZ 0x001e8b0a MOV dword ptr [RBP + -0x4],0x1 JMP 0x001e8ba2 LAB_001e8b0a: CMP qword ptr [RBP + -0x20],0x0 JZ 0x001e8b63 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0xa8] MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] CALL RAX MOV dword ptr [RBP + -0x2c],EAX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RAX] SUB RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x20] SUB RAX,RCX MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] SUB RAX,qword ptr [RBP + -0x38] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x18],RAX JMP 0x001e8b6a LAB_001e8b63: MOV dword ptr [RBP + -0x2c],0x0 LAB_001e8b6a: CMP dword ptr [RBP + -0x2c],0x0 JNZ 0x001e8b9c CMP qword ptr [RBP + -0x20],0x0 JZ 0x001e8b9c MOV RAX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RAX + 0x40] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] CALL 0x00129090 MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x10] ADD RCX,qword ptr [RAX + 0x40] MOV qword ptr [RAX + 0x40],RCX LAB_001e8b9c: MOV EAX,dword ptr [RBP + -0x2c] MOV dword ptr [RBP + -0x4],EAX LAB_001e8ba2: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x40 POP RBP RET
int _my_b_write(long *param_1,void *param_2,long param_3) { long lVar1; int iVar2; int *piVar3; int4 *puVar4; size_t __n; int local_34; size_t local_28; void *local_20; int local_c; if ((ulong)param_1[1] < (ulong)(*param_1 + param_1[0x1d])) { piVar3 = __errno_location(); *piVar3 = 0x1b; puVar4 = (int4 *)_my_thread_var(); *puVar4 = 0x1b; *(int4 *)((long)param_1 + 0xe4) = 0xffffffff; local_c = -1; } else { __n = param_1[9] - param_1[8]; memcpy((void *)param_1[8],param_2,__n); local_20 = (void *)(__n + (long)param_2); param_3 = param_3 - __n; param_1[8] = __n + param_1[8]; iVar2 = my_b_flush_io_cache(param_1,1); if (iVar2 == 0) { if (param_3 == 0) { local_34 = 0; local_28 = 0; } else { lVar1 = *param_1; local_34 = (*(code *)param_1[0x15])(param_1,local_20,param_3); local_28 = param_3 - (*param_1 - lVar1); local_20 = (void *)((*param_1 - lVar1) + (long)local_20); } if ((local_34 == 0) && (local_28 != 0)) { memcpy((void *)param_1[8],local_20,local_28); param_1[8] = local_28 + param_1[8]; } local_c = local_34; } else { local_c = 1; } } return local_c; }
31,166
ft_free_stopwords
eloqsql/storage/myisam/ft_stopwords.c
void ft_free_stopwords() { DBUG_ENTER("ft_free_stopwords"); if (stopwords3) { delete_tree(stopwords3, 0); /* purecov: inspected */ my_free(stopwords3); stopwords3=0; } ft_stopword_file= 0; DBUG_VOID_RETURN; }
O3
c
ft_free_stopwords: pushq %rbp movq %rsp, %rbp movq 0xb8dd9c(%rip), %rdi # 0xbff480 testq %rdi, %rdi je 0x71707 xorl %esi, %esi callq 0xa476e movq 0xb8dd89(%rip), %rdi # 0xbff480 callq 0x9ffe2 movq $0x0, 0xb8dd79(%rip) # 0xbff480 leaq 0xb8dd6a(%rip), %rax # 0xbff478 movq $0x0, (%rax) popq %rbp retq nop
ft_free_stopwords: push rbp mov rbp, rsp mov rdi, cs:stopwords3 test rdi, rdi jz short loc_71707 xor esi, esi call delete_tree mov rdi, cs:stopwords3 call my_free mov cs:stopwords3, 0 loc_71707: lea rax, ft_stopword_file mov qword ptr [rax], 0 pop rbp retn
_BYTE **ft_free_stopwords() { _BYTE **result; // rax if ( stopwords3 ) { delete_tree(stopwords3, 0LL); my_free(stopwords3); stopwords3 = 0LL; } result = &ft_stopword_file; ft_stopword_file = 0LL; return result; }
ft_free_stopwords: PUSH RBP MOV RBP,RSP MOV RDI,qword ptr [0x00cff480] TEST RDI,RDI JZ 0x00171707 XOR ESI,ESI CALL 0x001a476e MOV RDI,qword ptr [0x00cff480] CALL 0x0019ffe2 MOV qword ptr [0x00cff480],0x0 LAB_00171707: LEA RAX,[0xcff478] MOV qword ptr [RAX],0x0 POP RBP RET
void ft_free_stopwords(void) { if (stopwords3 != 0) { delete_tree(stopwords3,0); my_free(stopwords3); stopwords3 = 0; } ft_stopword_file = 0; return; }
31,167
CLI::BadNameString::MultiPositionalNames(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
MikePodsytnik[P]TCRtrie/build_O3/_deps/cli11-src/include/CLI/Error.hpp
static BadNameString MultiPositionalNames(std::string name) { return BadNameString("Only one positional name allowed, remove: " + name); }
O3
cpp
CLI::BadNameString::MultiPositionalNames(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>): pushq %r14 pushq %rbx subq $0x28, %rsp movq %rsi, %rdx movq %rdi, %rbx leaq 0x1b08c(%rip), %rsi # 0x376de leaq 0x8(%rsp), %r14 movq %r14, %rdi callq 0x11e48 movq %rbx, %rdi movq %r14, %rsi callq 0x1c872 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x1c685 movq 0x18(%rsp), %rsi incq %rsi callq 0x7430 movq %rbx, %rax addq $0x28, %rsp popq %rbx popq %r14 retq movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x1c6ae movq 0x18(%rsp), %rsi incq %rsi callq 0x7430 movq %rbx, %rdi callq 0x7780
_ZN3CLI13BadNameString20MultiPositionalNamesENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push r14; __int64 push rbx; int sub rsp, 28h mov rdx, rsi mov rbx, rdi lea rsi, aOnlyOnePositio; "Only one positional name allowed, remov"... lea r14, [rsp+38h+var_30] mov rdi, r14 call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&) mov rdi, rbx; int mov rsi, r14 call _ZN3CLI13BadNameStringC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; CLI::BadNameString::BadNameString(std::string) lea rax, [rsp+38h+var_20] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_1C685 mov rsi, [rsp+38h+var_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1C685: mov rax, rbx add rsp, 28h pop rbx pop r14 retn mov rbx, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_1C6AE mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_1C6AE: mov rdi, rbx call __Unwind_Resume
long long CLI::BadNameString::MultiPositionalNames(long long a1, _QWORD *a2) { void *v3; // [rsp+0h] [rbp-38h] void *v4[2]; // [rsp+8h] [rbp-30h] BYREF _QWORD v5[2]; // [rsp+18h] [rbp-20h] BYREF int v6; // [rsp+28h] [rbp-10h] long long v7; // [rsp+30h] [rbp-8h] std::operator+<char>((long long)v4, (long long)"Only one positional name allowed, remove: ", a2); CLI::BadNameString::BadNameString(a1, v3, (int)v4[0], (long long)v4[1], v5[0], (void *)v5[1], v6, v7); if ( v4[0] != v5 ) operator delete(v4[0], v5[0] + 1LL); return a1; }
MultiPositionalNames: PUSH R14 PUSH RBX SUB RSP,0x28 MOV RDX,RSI MOV RBX,RDI LEA RSI,[0x1376de] LEA R14,[RSP + 0x8] MOV RDI,R14 CALL 0x00111e48 LAB_0011c65f: MOV RDI,RBX MOV RSI,R14 CALL 0x0011c872 LAB_0011c66a: LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0011c685 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00107430 LAB_0011c685: MOV RAX,RBX ADD RSP,0x28 POP RBX POP R14 RET
/* CLI::BadNameString::MultiPositionalNames(std::__cxx11::string) */ BadNameString * CLI::BadNameString::MultiPositionalNames(BadNameString *param_1) { long *local_30 [2]; long local_20 [2]; std::operator+((char *)local_30,(string *)"Only one positional name allowed, remove: "); /* try { // try from 0011c65f to 0011c669 has its CatchHandler @ 0011c690 */ BadNameString(param_1,local_30); if (local_30[0] != local_20) { operator_delete(local_30[0],local_20[0] + 1); } return param_1; }
31,168
free_function_bytecode
bluesky950520[P]quickjs/quickjs.c
static void free_function_bytecode(JSRuntime *rt, JSFunctionBytecode *b) { int i; free_bytecode_atoms(rt, b->byte_code_buf, b->byte_code_len, TRUE); if (b->ic) free_ic(rt, b->ic); if (b->vardefs) { for(i = 0; i < b->arg_count + b->var_count; i++) { JS_FreeAtomRT(rt, b->vardefs[i].var_name); } } for(i = 0; i < b->cpool_count; i++) JS_FreeValueRT(rt, b->cpool[i]); for(i = 0; i < b->closure_var_count; i++) { JSClosureVar *cv = &b->closure_var[i]; JS_FreeAtomRT(rt, cv->var_name); } if (b->realm) JS_FreeContext(b->realm); JS_FreeAtomRT(rt, b->func_name); JS_FreeAtomRT(rt, b->filename); js_free_rt(rt, b->pc2line_buf); js_free_rt(rt, b->source); remove_gc_object(&b->header); if (rt->gc_phase == JS_GC_PHASE_REMOVE_CYCLES && b->header.ref_count != 0) { list_add_tail(&b->header.link, &rt->gc_zero_ref_count_list); } else { js_free_rt(rt, b); } }
O0
c
free_function_bytecode: subq $0x28, %rsp movq %rdi, 0x20(%rsp) movq %rsi, 0x18(%rsp) movq 0x20(%rsp), %rdi movq 0x18(%rsp), %rax movq 0x20(%rax), %rsi movq 0x18(%rsp), %rax movl 0x28(%rax), %edx movl $0x1, %ecx callq 0x65210 movq 0x18(%rsp), %rax cmpq $0x0, 0x60(%rax) je 0x64eed movq 0x20(%rsp), %rdi movq 0x18(%rsp), %rax movq 0x60(%rax), %rsi callq 0x65310 movq 0x18(%rsp), %rax cmpq $0x0, 0x30(%rax) je 0x64f4d movl $0x0, 0x14(%rsp) movl 0x14(%rsp), %eax movq 0x18(%rsp), %rcx movzwl 0x40(%rcx), %ecx movq 0x18(%rsp), %rdx movzwl 0x42(%rdx), %edx addl %edx, %ecx cmpl %ecx, %eax jge 0x64f4b movq 0x20(%rsp), %rdi movq 0x18(%rsp), %rax movq 0x30(%rax), %rax movslq 0x14(%rsp), %rcx shlq $0x4, %rcx addq %rcx, %rax movl (%rax), %esi callq 0x2a090 movl 0x14(%rsp), %eax addl $0x1, %eax movl %eax, 0x14(%rsp) jmp 0x64f01 jmp 0x64f4d movl $0x0, 0x14(%rsp) movl 0x14(%rsp), %eax movq 0x18(%rsp), %rcx cmpl 0x58(%rcx), %eax jge 0x64f96 movq 0x20(%rsp), %rdi movq 0x18(%rsp), %rax movq 0x50(%rax), %rax movslq 0x14(%rsp), %rcx shlq $0x4, %rcx addq %rcx, %rax movq (%rax), %rsi movq 0x8(%rax), %rdx callq 0x2a000 movl 0x14(%rsp), %eax addl $0x1, %eax movl %eax, 0x14(%rsp) jmp 0x64f55 movl $0x0, 0x14(%rsp) movl 0x14(%rsp), %eax movq 0x18(%rsp), %rcx cmpl 0x5c(%rcx), %eax jge 0x64fe5 movq 0x18(%rsp), %rax movq 0x38(%rax), %rax movslq 0x14(%rsp), %rcx shlq $0x3, %rcx addq %rcx, %rax movq %rax, 0x8(%rsp) movq 0x20(%rsp), %rdi movq 0x8(%rsp), %rax movl 0x4(%rax), %esi callq 0x2a090 movl 0x14(%rsp), %eax addl $0x1, %eax movl %eax, 0x14(%rsp) jmp 0x64f9e movq 0x18(%rsp), %rax cmpq $0x0, 0x48(%rax) je 0x64fff movq 0x18(%rsp), %rax movq 0x48(%rax), %rdi callq 0x2de40 movq 0x20(%rsp), %rdi movq 0x18(%rsp), %rax movl 0x2c(%rax), %esi callq 0x2a090 movq 0x20(%rsp), %rdi movq 0x18(%rsp), %rax movl 0x68(%rax), %esi callq 0x2a090 movq 0x20(%rsp), %rdi movq 0x18(%rsp), %rax movq 0x80(%rax), %rsi callq 0x27c50 movq 0x20(%rsp), %rdi movq 0x18(%rsp), %rax movq 0x88(%rax), %rsi callq 0x27c50 movq 0x18(%rsp), %rdi callq 0x2e1d0 movq 0x20(%rsp), %rax movzbl 0xc8(%rax), %eax cmpl $0x2, %eax jne 0x65090 movq 0x18(%rsp), %rax cmpl $0x0, (%rax) je 0x65090 movq 0x18(%rsp), %rdi addq $0x8, %rdi movq 0x20(%rsp), %rsi addq $0xa8, %rsi callq 0x29d40 jmp 0x6509f movq 0x20(%rsp), %rdi movq 0x18(%rsp), %rsi callq 0x27c50 addq $0x28, %rsp retq nopw %cs:(%rax,%rax)
free_function_bytecode: sub rsp, 28h mov [rsp+28h+var_8], rdi mov [rsp+28h+var_10], rsi mov rdi, [rsp+28h+var_8] mov rax, [rsp+28h+var_10] mov rsi, [rax+20h] mov rax, [rsp+28h+var_10] mov edx, [rax+28h] mov ecx, 1 call free_bytecode_atoms mov rax, [rsp+28h+var_10] cmp qword ptr [rax+60h], 0 jz short loc_64EED mov rdi, [rsp+28h+var_8] mov rax, [rsp+28h+var_10] mov rsi, [rax+60h] call free_ic loc_64EED: mov rax, [rsp+28h+var_10] cmp qword ptr [rax+30h], 0 jz short loc_64F4D mov [rsp+28h+var_14], 0 loc_64F01: mov eax, [rsp+28h+var_14] mov rcx, [rsp+28h+var_10] movzx ecx, word ptr [rcx+40h] mov rdx, [rsp+28h+var_10] movzx edx, word ptr [rdx+42h] add ecx, edx cmp eax, ecx jge short loc_64F4B mov rdi, [rsp+28h+var_8] mov rax, [rsp+28h+var_10] mov rax, [rax+30h] movsxd rcx, [rsp+28h+var_14] shl rcx, 4 add rax, rcx mov esi, [rax] call JS_FreeAtomRT mov eax, [rsp+28h+var_14] add eax, 1 mov [rsp+28h+var_14], eax jmp short loc_64F01 loc_64F4B: jmp short $+2 loc_64F4D: mov [rsp+28h+var_14], 0 loc_64F55: mov eax, [rsp+28h+var_14] mov rcx, [rsp+28h+var_10] cmp eax, [rcx+58h] jge short loc_64F96 mov rdi, [rsp+28h+var_8] mov rax, [rsp+28h+var_10] mov rax, [rax+50h] movsxd rcx, [rsp+28h+var_14] shl rcx, 4 add rax, rcx mov rsi, [rax] mov rdx, [rax+8] call JS_FreeValueRT mov eax, [rsp+28h+var_14] add eax, 1 mov [rsp+28h+var_14], eax jmp short loc_64F55 loc_64F96: mov [rsp+28h+var_14], 0 loc_64F9E: mov eax, [rsp+28h+var_14] mov rcx, [rsp+28h+var_10] cmp eax, [rcx+5Ch] jge short loc_64FE5 mov rax, [rsp+28h+var_10] mov rax, [rax+38h] movsxd rcx, [rsp+28h+var_14] shl rcx, 3 add rax, rcx mov [rsp+28h+var_20], rax mov rdi, [rsp+28h+var_8] mov rax, [rsp+28h+var_20] mov esi, [rax+4] call JS_FreeAtomRT mov eax, [rsp+28h+var_14] add eax, 1 mov [rsp+28h+var_14], eax jmp short loc_64F9E loc_64FE5: mov rax, [rsp+28h+var_10] cmp qword ptr [rax+48h], 0 jz short loc_64FFF mov rax, [rsp+28h+var_10] mov rdi, [rax+48h] call JS_FreeContext loc_64FFF: mov rdi, [rsp+28h+var_8] mov rax, [rsp+28h+var_10] mov esi, [rax+2Ch] call JS_FreeAtomRT mov rdi, [rsp+28h+var_8] mov rax, [rsp+28h+var_10] mov esi, [rax+68h] call JS_FreeAtomRT mov rdi, [rsp+28h+var_8] mov rax, [rsp+28h+var_10] mov rsi, [rax+80h] call js_free_rt mov rdi, [rsp+28h+var_8] mov rax, [rsp+28h+var_10] mov rsi, [rax+88h] call js_free_rt mov rdi, [rsp+28h+var_10] call remove_gc_object mov rax, [rsp+28h+var_8] movzx eax, byte ptr [rax+0C8h] cmp eax, 2 jnz short loc_65090 mov rax, [rsp+28h+var_10] cmp dword ptr [rax], 0 jz short loc_65090 mov rdi, [rsp+28h+var_10] add rdi, 8 mov rsi, [rsp+28h+var_8] add rsi, 0A8h call list_add_tail_1 jmp short loc_6509F loc_65090: mov rdi, [rsp+28h+var_8] mov rsi, [rsp+28h+var_10] call js_free_rt loc_6509F: add rsp, 28h retn
void free_function_bytecode(long long a1, long long a2) { long long v2; // rax int i; // [rsp+14h] [rbp-14h] int j; // [rsp+14h] [rbp-14h] int k; // [rsp+14h] [rbp-14h] free_bytecode_atoms(a1, *(_QWORD *)(a2 + 32), *(unsigned int *)(a2 + 40), 1LL); if ( *(_QWORD *)(a2 + 96) ) free_ic(a1, *(_QWORD *)(a2 + 96)); if ( *(_QWORD *)(a2 + 48) ) { for ( i = 0; i < *(unsigned __int16 *)(a2 + 66) + *(unsigned __int16 *)(a2 + 64); ++i ) JS_FreeAtomRT(a1, *(_DWORD *)(16LL * i + *(_QWORD *)(a2 + 48))); } for ( j = 0; j < *(_DWORD *)(a2 + 88); ++j ) { v2 = 16LL * j + *(_QWORD *)(a2 + 80); JS_FreeValueRT(a1, *(_DWORD **)v2, *(_QWORD *)(v2 + 8)); } for ( k = 0; k < *(_DWORD *)(a2 + 92); ++k ) JS_FreeAtomRT(a1, *(_DWORD *)(8LL * k + *(_QWORD *)(a2 + 56) + 4)); if ( *(_QWORD *)(a2 + 72) ) JS_FreeContext(*(_QWORD *)(a2 + 72)); JS_FreeAtomRT(a1, *(_DWORD *)(a2 + 44)); JS_FreeAtomRT(a1, *(_DWORD *)(a2 + 104)); js_free_rt(a1, *(_QWORD *)(a2 + 128)); js_free_rt(a1, *(_QWORD *)(a2 + 136)); remove_gc_object(a2); if ( *(_BYTE *)(a1 + 200) == 2 && *(_DWORD *)a2 ) list_add_tail_1(a2 + 8, (_QWORD *)(a1 + 168)); else js_free_rt(a1, a2); }
free_function_bytecode: SUB RSP,0x28 MOV qword ptr [RSP + 0x20],RDI MOV qword ptr [RSP + 0x18],RSI MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RSP + 0x18] MOV EDX,dword ptr [RAX + 0x28] MOV ECX,0x1 CALL 0x00165210 MOV RAX,qword ptr [RSP + 0x18] CMP qword ptr [RAX + 0x60],0x0 JZ 0x00164eed MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RAX + 0x60] CALL 0x00165310 LAB_00164eed: MOV RAX,qword ptr [RSP + 0x18] CMP qword ptr [RAX + 0x30],0x0 JZ 0x00164f4d MOV dword ptr [RSP + 0x14],0x0 LAB_00164f01: MOV EAX,dword ptr [RSP + 0x14] MOV RCX,qword ptr [RSP + 0x18] MOVZX ECX,word ptr [RCX + 0x40] MOV RDX,qword ptr [RSP + 0x18] MOVZX EDX,word ptr [RDX + 0x42] ADD ECX,EDX CMP EAX,ECX JGE 0x00164f4b MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RAX + 0x30] MOVSXD RCX,dword ptr [RSP + 0x14] SHL RCX,0x4 ADD RAX,RCX MOV ESI,dword ptr [RAX] CALL 0x0012a090 MOV EAX,dword ptr [RSP + 0x14] ADD EAX,0x1 MOV dword ptr [RSP + 0x14],EAX JMP 0x00164f01 LAB_00164f4b: JMP 0x00164f4d LAB_00164f4d: MOV dword ptr [RSP + 0x14],0x0 LAB_00164f55: MOV EAX,dword ptr [RSP + 0x14] MOV RCX,qword ptr [RSP + 0x18] CMP EAX,dword ptr [RCX + 0x58] JGE 0x00164f96 MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RAX + 0x50] MOVSXD RCX,dword ptr [RSP + 0x14] SHL RCX,0x4 ADD RAX,RCX MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] CALL 0x0012a000 MOV EAX,dword ptr [RSP + 0x14] ADD EAX,0x1 MOV dword ptr [RSP + 0x14],EAX JMP 0x00164f55 LAB_00164f96: MOV dword ptr [RSP + 0x14],0x0 LAB_00164f9e: MOV EAX,dword ptr [RSP + 0x14] MOV RCX,qword ptr [RSP + 0x18] CMP EAX,dword ptr [RCX + 0x5c] JGE 0x00164fe5 MOV RAX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RAX + 0x38] MOVSXD RCX,dword ptr [RSP + 0x14] SHL RCX,0x3 ADD RAX,RCX MOV qword ptr [RSP + 0x8],RAX MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x8] MOV ESI,dword ptr [RAX + 0x4] CALL 0x0012a090 MOV EAX,dword ptr [RSP + 0x14] ADD EAX,0x1 MOV dword ptr [RSP + 0x14],EAX JMP 0x00164f9e LAB_00164fe5: MOV RAX,qword ptr [RSP + 0x18] CMP qword ptr [RAX + 0x48],0x0 JZ 0x00164fff MOV RAX,qword ptr [RSP + 0x18] MOV RDI,qword ptr [RAX + 0x48] CALL 0x0012de40 LAB_00164fff: MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x18] MOV ESI,dword ptr [RAX + 0x2c] CALL 0x0012a090 MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x18] MOV ESI,dword ptr [RAX + 0x68] CALL 0x0012a090 MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RAX + 0x80] CALL 0x00127c50 MOV RDI,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RAX + 0x88] CALL 0x00127c50 MOV RDI,qword ptr [RSP + 0x18] CALL 0x0012e1d0 MOV RAX,qword ptr [RSP + 0x20] MOVZX EAX,byte ptr [RAX + 0xc8] CMP EAX,0x2 JNZ 0x00165090 MOV RAX,qword ptr [RSP + 0x18] CMP dword ptr [RAX],0x0 JZ 0x00165090 MOV RDI,qword ptr [RSP + 0x18] ADD RDI,0x8 MOV RSI,qword ptr [RSP + 0x20] ADD RSI,0xa8 CALL 0x00129d40 JMP 0x0016509f LAB_00165090: MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x18] CALL 0x00127c50 LAB_0016509f: ADD RSP,0x28 RET
void free_function_bytecode(long param_1,int *param_2) { int8 *puVar1; int local_14; free_bytecode_atoms(param_1,*(int8 *)(param_2 + 8),param_2[10],1); if (*(long *)(param_2 + 0x18) != 0) { free_ic(param_1,*(int8 *)(param_2 + 0x18)); } if (*(long *)(param_2 + 0xc) != 0) { for (local_14 = 0; local_14 < (int)((uint)*(ushort *)(param_2 + 0x10) + (uint)*(ushort *)((long)param_2 + 0x42)); local_14 = local_14 + 1) { JS_FreeAtomRT(param_1,*(int4 *)(*(long *)(param_2 + 0xc) + (long)local_14 * 0x10)); } } for (local_14 = 0; local_14 < param_2[0x16]; local_14 = local_14 + 1) { puVar1 = (int8 *)(*(long *)(param_2 + 0x14) + (long)local_14 * 0x10); JS_FreeValueRT(param_1,*puVar1,puVar1[1]); } for (local_14 = 0; local_14 < param_2[0x17]; local_14 = local_14 + 1) { JS_FreeAtomRT(param_1,*(int4 *)(*(long *)(param_2 + 0xe) + (long)local_14 * 8 + 4)); } if (*(long *)(param_2 + 0x12) != 0) { JS_FreeContext(*(int8 *)(param_2 + 0x12)); } JS_FreeAtomRT(param_1,param_2[0xb]); JS_FreeAtomRT(param_1,param_2[0x1a]); js_free_rt(param_1,*(int8 *)(param_2 + 0x20)); js_free_rt(param_1,*(int8 *)(param_2 + 0x22)); remove_gc_object(param_2); if ((*(char *)(param_1 + 200) == '\x02') && (*param_2 != 0)) { list_add_tail(param_2 + 2,param_1 + 0xa8); } else { js_free_rt(param_1,param_2); } return; }
31,169
my_wc_mb_utf8mb4_no_range
eloqsql/strings/ctype-utf8.c
static int my_wc_mb_utf8mb4_no_range(CHARSET_INFO *cs __attribute__((unused)), my_wc_t wc, uchar *r) { int count; if (wc < 0x80) count= 1; else if (wc < 0x800) count= 2; else if (wc < 0x10000) count= 3; else if (wc < 0x200000) count= 4; else return MY_CS_ILUNI; switch (count) { case 4: r[3]= (uchar) (0x80 | (wc & 0x3f)); wc= wc >> 6; wc |= 0x10000; /* fall through */ case 3: r[2]= (uchar) (0x80 | (wc & 0x3f)); wc= wc >> 6; wc |= 0x800; /* fall through */ case 2: r[1]= (uchar) (0x80 | (wc & 0x3f)); wc= wc >> 6; wc |= 0xc0; /* fall through */ case 1: r[0]= (uchar) wc; } return count; }
O0
c
my_wc_mb_utf8mb4_no_range: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) cmpq $0x80, -0x18(%rbp) jae 0xa0683 movl $0x1, -0x24(%rbp) jmp 0xa06ce cmpq $0x800, -0x18(%rbp) # imm = 0x800 jae 0xa0696 movl $0x2, -0x24(%rbp) jmp 0xa06cc cmpq $0x10000, -0x18(%rbp) # imm = 0x10000 jae 0xa06a9 movl $0x3, -0x24(%rbp) jmp 0xa06ca cmpq $0x200000, -0x18(%rbp) # imm = 0x200000 jae 0xa06bc movl $0x4, -0x24(%rbp) jmp 0xa06c8 movl $0x0, -0x4(%rbp) jmp 0xa079b jmp 0xa06ca jmp 0xa06cc jmp 0xa06ce movl -0x24(%rbp), %eax decl %eax movl %eax, %ecx movq %rcx, -0x30(%rbp) subl $0x3, %eax ja 0xa0795 movq -0x30(%rbp), %rax leaq 0x149713(%rip), %rcx # 0x1e9e00 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq -0x18(%rbp), %rax andq $0x3f, %rax orq $0x80, %rax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, 0x3(%rax) movq -0x18(%rbp), %rax shrq $0x6, %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax orq $0x10000, %rax # imm = 0x10000 movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax andq $0x3f, %rax orq $0x80, %rax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, 0x2(%rax) movq -0x18(%rbp), %rax shrq $0x6, %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax orq $0x800, %rax # imm = 0x800 movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax andq $0x3f, %rax orq $0x80, %rax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, 0x1(%rax) movq -0x18(%rbp), %rax shrq $0x6, %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax orq $0xc0, %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, (%rax) movl -0x24(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq
my_wc_mb_utf8mb4_no_range: push rbp mov rbp, rsp mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx cmp [rbp+var_18], 80h jnb short loc_A0683 mov [rbp+var_24], 1 jmp short loc_A06CE loc_A0683: cmp [rbp+var_18], 800h jnb short loc_A0696 mov [rbp+var_24], 2 jmp short loc_A06CC loc_A0696: cmp [rbp+var_18], 10000h jnb short loc_A06A9 mov [rbp+var_24], 3 jmp short loc_A06CA loc_A06A9: cmp [rbp+var_18], offset unk_200000 jnb short loc_A06BC mov [rbp+var_24], 4 jmp short loc_A06C8 loc_A06BC: mov [rbp+var_4], 0 jmp loc_A079B loc_A06C8: jmp short $+2 loc_A06CA: jmp short $+2 loc_A06CC: jmp short $+2 loc_A06CE: mov eax, [rbp+var_24] dec eax; switch 4 cases mov ecx, eax mov [rbp+var_30], rcx sub eax, 3 ja def_A06F4; jumptable 00000000000A06F4 default case mov rax, [rbp+var_30] lea rcx, jpt_A06F4 movsxd rax, ds:(jpt_A06F4 - 1E9E00h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_A06F6: mov rax, [rbp+var_18]; jumptable 00000000000A06F4 case 4 and rax, 3Fh or rax, 80h mov cl, al mov rax, [rbp+var_20] mov [rax+3], cl mov rax, [rbp+var_18] shr rax, 6 mov [rbp+var_18], rax mov rax, [rbp+var_18] or rax, 10000h mov [rbp+var_18], rax loc_A0727: mov rax, [rbp+var_18]; jumptable 00000000000A06F4 case 3 and rax, 3Fh or rax, 80h mov cl, al mov rax, [rbp+var_20] mov [rax+2], cl mov rax, [rbp+var_18] shr rax, 6 mov [rbp+var_18], rax mov rax, [rbp+var_18] or rax, 800h mov [rbp+var_18], rax loc_A0758: mov rax, [rbp+var_18]; jumptable 00000000000A06F4 case 2 and rax, 3Fh or rax, 80h mov cl, al mov rax, [rbp+var_20] mov [rax+1], cl mov rax, [rbp+var_18] shr rax, 6 mov [rbp+var_18], rax mov rax, [rbp+var_18] or rax, 0C0h mov [rbp+var_18], rax loc_A0789: mov rax, [rbp+var_18]; jumptable 00000000000A06F4 case 1 mov cl, al mov rax, [rbp+var_20] mov [rax], cl def_A06F4: mov eax, [rbp+var_24]; jumptable 00000000000A06F4 default case mov [rbp+var_4], eax loc_A079B: mov eax, [rbp+var_4] pop rbp retn
long long my_wc_mb_utf8mb4_no_range(long long a1, unsigned long long a2, _BYTE *a3) { unsigned int v4; // [rsp+Ch] [rbp-24h] unsigned long long v5; // [rsp+18h] [rbp-18h] v5 = a2; if ( a2 >= 0x80 ) { if ( a2 >= 0x800 ) { if ( a2 >= 0x10000 ) { if ( a2 >= (unsigned long long)&unk_200000 ) return 0; v4 = 4; } else { v4 = 3; } } else { v4 = 2; } } else { v4 = 1; } switch ( v4 ) { case 1u: goto LABEL_14; case 2u: goto LABEL_13; case 3u: goto LABEL_12; case 4u: a3[3] = a2 & 0x3F | 0x80; v5 = (a2 >> 6) | 0x10000; LABEL_12: a3[2] = v5 & 0x3F | 0x80; v5 = (v5 >> 6) | 0x800; LABEL_13: a3[1] = v5 & 0x3F | 0x80; v5 = (v5 >> 6) | 0xC0; LABEL_14: *a3 = v5; break; default: break; } return v4; }
my_wc_mb_utf8mb4_no_range: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX CMP qword ptr [RBP + -0x18],0x80 JNC 0x001a0683 MOV dword ptr [RBP + -0x24],0x1 JMP 0x001a06ce LAB_001a0683: CMP qword ptr [RBP + -0x18],0x800 JNC 0x001a0696 MOV dword ptr [RBP + -0x24],0x2 JMP 0x001a06cc LAB_001a0696: CMP qword ptr [RBP + -0x18],0x10000 JNC 0x001a06a9 MOV dword ptr [RBP + -0x24],0x3 JMP 0x001a06ca LAB_001a06a9: CMP qword ptr [RBP + -0x18],0x200000 JNC 0x001a06bc MOV dword ptr [RBP + -0x24],0x4 JMP 0x001a06c8 LAB_001a06bc: MOV dword ptr [RBP + -0x4],0x0 JMP 0x001a079b LAB_001a06c8: JMP 0x001a06ca LAB_001a06ca: JMP 0x001a06cc LAB_001a06cc: JMP 0x001a06ce LAB_001a06ce: MOV EAX,dword ptr [RBP + -0x24] DEC EAX MOV ECX,EAX MOV qword ptr [RBP + -0x30],RCX SUB EAX,0x3 JA 0x001a0795 MOV RAX,qword ptr [RBP + -0x30] LEA RCX,[0x2e9e00] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_4: MOV RAX,qword ptr [RBP + -0x18] AND RAX,0x3f OR RAX,0x80 MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x3],CL MOV RAX,qword ptr [RBP + -0x18] SHR RAX,0x6 MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] OR RAX,0x10000 MOV qword ptr [RBP + -0x18],RAX caseD_3: MOV RAX,qword ptr [RBP + -0x18] AND RAX,0x3f OR RAX,0x80 MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x2],CL MOV RAX,qword ptr [RBP + -0x18] SHR RAX,0x6 MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] OR RAX,0x800 MOV qword ptr [RBP + -0x18],RAX caseD_2: MOV RAX,qword ptr [RBP + -0x18] AND RAX,0x3f OR RAX,0x80 MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x1],CL MOV RAX,qword ptr [RBP + -0x18] SHR RAX,0x6 MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x18] OR RAX,0xc0 MOV qword ptr [RBP + -0x18],RAX caseD_1: MOV RAX,qword ptr [RBP + -0x18] MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX],CL default: MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x4],EAX LAB_001a079b: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 my_wc_mb_utf8mb4_no_range(int8 param_1,ulong param_2,int1 *param_3) { int4 local_2c; ulong local_20; if (param_2 < 0x80) { local_2c = 1; } else if (param_2 < 0x800) { local_2c = 2; } else if (param_2 < 0x10000) { local_2c = 3; } else { if (0x1fffff < param_2) { return 0; } local_2c = 4; } local_20 = param_2; switch(local_2c) { case 4: param_3[3] = (byte)param_2 & 0x3f | 0x80; local_20 = param_2 >> 6 | 0x10000; case 3: param_3[2] = (byte)local_20 & 0x3f | 0x80; local_20 = local_20 >> 6 | 0x800; case 2: param_3[1] = (byte)local_20 & 0x3f | 0x80; local_20 = local_20 >> 6 | 0xc0; case 1: *param_3 = (char)local_20; return local_2c; default: return local_2c; } }
31,170
common_set_adapter_lora(llama_context*, std::vector<common_adapter_lora_info, std::allocator<common_adapter_lora_info>>&)
monkey531[P]llama/common/common.cpp
void common_set_adapter_lora(struct llama_context * ctx, std::vector<common_adapter_lora_info> & lora) { llama_clear_adapter_lora(ctx); for (auto & la : lora) { if (la.scale != 0.0f) { llama_set_adapter_lora(ctx, la.ptr, la.scale); } } }
O2
cpp
common_set_adapter_lora(llama_context*, std::vector<common_adapter_lora_info, std::allocator<common_adapter_lora_info>>&): pushq %r15 pushq %r14 pushq %rbx movq %rsi, %r14 movq %rdi, %rbx callq 0x24b40 movq (%r14), %r15 movq 0x8(%r14), %r14 cmpq %r14, %r15 je 0x58be6 movss 0x20(%r15), %xmm0 ucomiss 0x53514(%rip), %xmm0 # 0xac0e4 jne 0x58bd4 jnp 0x58be0 movq 0x28(%r15), %rsi movq %rbx, %rdi callq 0x24b20 addq $0x30, %r15 jmp 0x58bbe popq %rbx popq %r14 popq %r15 retq
_Z23common_set_adapter_loraP13llama_contextRSt6vectorI24common_adapter_lora_infoSaIS2_EE: push r15 push r14 push rbx mov r14, rsi mov rbx, rdi call _llama_clear_adapter_lora mov r15, [r14] mov r14, [r14+8] loc_58BBE: cmp r15, r14 jz short loc_58BE6 movss xmm0, dword ptr [r15+20h] ucomiss xmm0, cs:dword_AC0E4 jnz short loc_58BD4 jnp short loc_58BE0 loc_58BD4: mov rsi, [r15+28h] mov rdi, rbx call _llama_set_adapter_lora loc_58BE0: add r15, 30h ; '0' jmp short loc_58BBE loc_58BE6: pop rbx pop r14 pop r15 retn
long long common_set_adapter_lora(long long a1, long long *a2) { long long result; // rax long long v3; // r15 long long v4; // r14 result = llama_clear_adapter_lora(); v3 = *a2; v4 = a2[1]; while ( v3 != v4 ) { if ( *(float *)(v3 + 32) != 0.0 ) result = llama_set_adapter_lora(a1, *(_QWORD *)(v3 + 40)); v3 += 48LL; } return result; }
common_set_adapter_lora: PUSH R15 PUSH R14 PUSH RBX MOV R14,RSI MOV RBX,RDI CALL 0x00124b40 MOV R15,qword ptr [R14] MOV R14,qword ptr [R14 + 0x8] LAB_00158bbe: CMP R15,R14 JZ 0x00158be6 MOVSS XMM0,dword ptr [R15 + 0x20] UCOMISS XMM0,dword ptr [0x001ac0e4] JNZ 0x00158bd4 JNP 0x00158be0 LAB_00158bd4: MOV RSI,qword ptr [R15 + 0x28] MOV RDI,RBX CALL 0x00124b20 LAB_00158be0: ADD R15,0x30 JMP 0x00158bbe LAB_00158be6: POP RBX POP R14 POP R15 RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* common_set_adapter_lora(llama_context*, std::vector<common_adapter_lora_info, std::allocator<common_adapter_lora_info> >&) */ void common_set_adapter_lora(llama_context *param_1,vector *param_2) { long lVar1; long lVar2; llama_clear_adapter_lora(); lVar1 = *(long *)(param_2 + 8); for (lVar2 = *(long *)param_2; lVar2 != lVar1; lVar2 = lVar2 + 0x30) { if ((*(float *)(lVar2 + 0x20) != _DAT_001ac0e4) || (NAN(*(float *)(lVar2 + 0x20)) || NAN(_DAT_001ac0e4))) { llama_set_adapter_lora(param_1,*(int8 *)(lVar2 + 0x28)); } } return; }
31,171
string_from[abi:cxx11](llama_context const*, std::vector<int, std::allocator<int>> const&)
monkey531[P]llama/common/common.cpp
std::string string_from(const struct llama_context * ctx, const std::vector<llama_token> & tokens) { std::stringstream buf; buf << "[ "; bool first = true; for (const auto & token : tokens) { if (!first) { buf << ", "; } else { first = false; } auto detokenized = common_token_to_piece(ctx, token); detokenized.erase( std::remove_if( detokenized.begin(), detokenized.end(), [](const unsigned char c) { return !std::isprint(c); }), detokenized.end()); buf << "'" << detokenized << "'" << ":" << std::to_string(token); } buf << " ]"; return buf.str(); }
O2
cpp
string_from[abi:cxx11](llama_context const*, std::vector<int, std::allocator<int>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x1f8, %rsp # imm = 0x1F8 movq %rdx, %rbx movq %rsi, 0x38(%rsp) movq %rdi, %r14 leaq 0x70(%rsp), %rdi callq 0x204e0 leaq 0x80(%rsp), %rdi leaq 0x6913c(%rip), %rsi # 0x8cee5 callq 0x20690 movq (%rbx), %r15 movq 0x8(%rbx), %rax movq %rax, 0x40(%rsp) movb $0x1, %al leaq 0x10(%rsp), %r13 movq %r14, 0x30(%rsp) cmpq 0x40(%rsp), %r15 je 0x23f8b testb $0x1, %al jne 0x23de9 leaq 0x80(%rsp), %rdi leaq 0x69aa8(%rip), %rsi # 0x8d88c callq 0x20690 movq %r15, 0x48(%rsp) movl (%r15), %edx movq %r13, %rdi movq 0x38(%rsp), %rsi pushq $0x1 popq %rcx callq 0x2400b movq 0x10(%rsp), %r14 movq 0x18(%rsp), %r12 leaq (%r14,%r12), %rbp movq %r12, %r13 sarq $0x2, %r13 movq %r12, %rbx movq %r14, 0x8(%rsp) testq %r13, %r13 jle 0x23e70 movq %r14, %rdi callq 0x284d6 testb %al, %al jne 0x23eb8 leaq 0x1(%r14), %r15 movq %r15, %rdi callq 0x284d6 testb %al, %al jne 0x23ebb leaq 0x2(%r14), %r15 movq %r15, %rdi callq 0x284d6 testb %al, %al jne 0x23ebb leaq 0x3(%r14), %r15 movq %r15, %rdi callq 0x284d6 testb %al, %al jne 0x23ebb addq $0x4, %r14 decq %r13 addq $-0x4, %rbx jmp 0x23e1e cmpq $0x1, %rbx leaq 0x10(%rsp), %r13 je 0x23ea5 cmpq $0x2, %rbx je 0x23e96 cmpq $0x3, %rbx jne 0x23ef3 movq %r14, %rdi callq 0x284d6 testb %al, %al jne 0x23eb3 incq %r14 movq %r14, %rdi callq 0x284d6 testb %al, %al jne 0x23eb3 incq %r14 movq %r14, %rdi callq 0x284d6 testb %al, %al cmoveq %rbp, %r14 movq %r14, %r15 jmp 0x23ec0 movq %r14, %r15 leaq 0x10(%rsp), %r13 cmpq %rbp, %r15 je 0x23ef3 movq %r15, %r14 incq %r15 cmpq %rbp, %r15 je 0x23ee7 movq %r15, %rdi callq 0x284d6 testb %al, %al jne 0x23ec8 movb (%r15), %al movb %al, (%r14) incq %r14 jmp 0x23ec8 movq 0x10(%rsp), %rax movq 0x18(%rsp), %r12 jmp 0x23efb movq %rbp, %r14 movq 0x8(%rsp), %rax addq %rax, %r12 movq %r13, %rdi movq %r14, %rsi movq %r12, %rdx callq 0x20140 leaq 0x80(%rsp), %rdi leaq 0x6be95(%rip), %rbx # 0x8fdb0 movq %rbx, %rsi callq 0x20690 movq 0x30(%rsp), %r14 movq 0x48(%rsp), %r15 leaq 0x50(%rsp), %r12 movq %rax, %rdi movq %r13, %rsi callq 0x20600 movq %rax, %rdi movq %rbx, %rsi callq 0x20690 movq %rax, %rdi leaq 0x69a93(%rip), %rsi # 0x8d9e5 callq 0x20690 movq %rax, %rbx movl (%r15), %esi movq %r12, %rdi callq 0x2867b movq %rbx, %rdi movq %r12, %rsi callq 0x20600 movq %r12, %rdi callq 0x20d98 movq %r13, %rdi callq 0x20d98 addq $0x4, %r15 xorl %eax, %eax jmp 0x23dc6 leaq 0x68f56(%rip), %rsi # 0x8cee8 leaq 0x80(%rsp), %rdi callq 0x20690 leaq 0x88(%rsp), %rsi movq %r14, %rdi callq 0x20a50 leaq 0x70(%rsp), %rdi callq 0x20530 movq %r14, %rax addq $0x1f8, %rsp # imm = 0x1F8 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x23fe5 jmp 0x23fe5 jmp 0x23fe5 jmp 0x23fec movq %rax, %rbx leaq 0x50(%rsp), %rdi callq 0x20d98 jmp 0x23fef movq %rax, %rbx jmp 0x23ff9 jmp 0x23fec movq %rax, %rbx leaq 0x10(%rsp), %rdi callq 0x20d98 leaq 0x70(%rsp), %rdi callq 0x20530 movq %rbx, %rdi callq 0x20bb0
_Z11string_fromB5cxx11PK13llama_contextRKSt6vectorIiSaIiEE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 1F8h mov rbx, rdx mov [rsp+228h+var_1F0], rsi mov r14, rdi lea rdi, [rsp+228h+var_1B8] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void) lea rdi, [rsp+228h+var_1A8] lea rsi, asc_8CEE5; "[ " call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov r15, [rbx] mov rax, [rbx+8] mov [rsp+228h+var_1E8], rax mov al, 1 lea r13, [rsp+228h+var_218] mov [rsp+228h+var_1F8], r14 loc_23DC6: cmp r15, [rsp+228h+var_1E8] jz loc_23F8B test al, 1 jnz short loc_23DE9 lea rdi, [rsp+228h+var_1A8] lea rsi, aZuD+6; ", " call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) loc_23DE9: mov [rsp+228h+var_1E0], r15 mov edx, [r15] mov rdi, r13; void * mov rsi, [rsp+228h+var_1F0] push 1 pop rcx call _Z21common_token_to_pieceB5cxx11PK13llama_contextib; common_token_to_piece(llama_context const*,int,bool) mov r14, [rsp+228h+var_218] mov r12, [rsp+228h+var_210] lea rbp, [r14+r12] mov r13, r12 sar r13, 2 mov rbx, r12 mov [rsp+228h+var_220], r14 loc_23E1E: test r13, r13 jle short loc_23E70 mov rdi, r14 call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRKSt6vectorIiSaIiEEE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,std::vector<int> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>) test al, al jnz loc_23EB8 lea r15, [r14+1] mov rdi, r15 call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRKSt6vectorIiSaIiEEE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,std::vector<int> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>) test al, al jnz short loc_23EBB lea r15, [r14+2] mov rdi, r15 call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRKSt6vectorIiSaIiEEE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,std::vector<int> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>) test al, al jnz short loc_23EBB lea r15, [r14+3] mov rdi, r15 call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRKSt6vectorIiSaIiEEE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,std::vector<int> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>) test al, al jnz short loc_23EBB add r14, 4 dec r13 add rbx, 0FFFFFFFFFFFFFFFCh jmp short loc_23E1E loc_23E70: cmp rbx, 1 lea r13, [rsp+228h+var_218] jz short loc_23EA5 cmp rbx, 2 jz short loc_23E96 cmp rbx, 3 jnz short loc_23EF3 mov rdi, r14 call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRKSt6vectorIiSaIiEEE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,std::vector<int> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>) test al, al jnz short loc_23EB3 inc r14 loc_23E96: mov rdi, r14 call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRKSt6vectorIiSaIiEEE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,std::vector<int> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>) test al, al jnz short loc_23EB3 inc r14 loc_23EA5: mov rdi, r14 call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRKSt6vectorIiSaIiEEE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,std::vector<int> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>) test al, al cmovz r14, rbp loc_23EB3: mov r15, r14 jmp short loc_23EC0 loc_23EB8: mov r15, r14 loc_23EBB: lea r13, [rsp+228h+var_218] loc_23EC0: cmp r15, rbp jz short loc_23EF3 mov r14, r15 loc_23EC8: inc r15 cmp r15, rbp jz short loc_23EE7 mov rdi, r15 call _ZN9__gnu_cxx5__ops10_Iter_predIZ11string_fromB5cxx11PK13llama_contextRKSt6vectorIiSaIiEEE3$_0EclINS_17__normal_iteratorIPcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<string_from(llama_context const*,std::vector<int> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>(__gnu_cxx::__normal_iterator<char *,std::string>) test al, al jnz short loc_23EC8 mov al, [r15] mov [r14], al inc r14 jmp short loc_23EC8 loc_23EE7: mov rax, [rsp+228h+var_218] mov r12, [rsp+228h+var_210] jmp short loc_23EFB loc_23EF3: mov r14, rbp mov rax, [rsp+228h+var_220] loc_23EFB: add r12, rax mov rdi, r13 mov rsi, r14 mov rdx, r12 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEN9__gnu_cxx17__normal_iteratorIPKcS4_EES9_; std::string::erase(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>) lea rdi, [rsp+228h+var_1A8] lea rbx, aLastRead+0Dh; "'" mov rsi, rbx call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov r14, [rsp+228h+var_1F8] mov r15, [rsp+228h+var_1E0] lea r12, [rsp+228h+var_1D8] mov rdi, rax mov rsi, r13 call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&) mov rdi, rax mov rsi, rbx call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov rdi, rax lea rsi, aArgumentNeedle_0+11h; ":" call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) mov rbx, rax mov esi, [r15]; int mov rdi, r12; this call _ZNSt7__cxx119to_stringEi; std::to_string(int) mov rdi, rbx mov rsi, r12 call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&) mov rdi, r12; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, r13; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() add r15, 4 xor eax, eax jmp loc_23DC6 loc_23F8B: lea rsi, asc_8CEE8; " ]" lea rdi, [rsp+228h+var_1A8] call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*) lea rsi, [rsp+228h+var_1A0] mov rdi, r14 call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void) lea rdi, [rsp+228h+var_1B8] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream() mov rax, r14 add rsp, 1F8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_23FE5 jmp short loc_23FE5 jmp short loc_23FE5 jmp short loc_23FEC mov rbx, rax lea rdi, [rsp+arg_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_23FEF loc_23FE5: mov rbx, rax jmp short loc_23FF9 jmp short $+2 loc_23FEC: mov rbx, rax loc_23FEF: lea rdi, [rsp+arg_8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_23FF9: lea rdi, [rsp+arg_68] call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream() mov rdi, rbx call __Unwind_Resume
long long string_from[abi:cxx11](long long a1, long long a2, int **a3) { long long v4; // r14 int *v5; // r15 char v6; // al long long v7; // rsi _BYTE *v8; // r14 long long v9; // r12 _BYTE *v10; // rbp long long v11; // r13 long long v12; // rbx _BYTE *v13; // r15 _BYTE *v14; // r14 _BYTE *v15; // rax long long v16; // rax int *v17; // r15 long long v18; // rax long long v19; // rax long long v20; // rbx _BYTE *v22; // [rsp+8h] [rbp-220h] _BYTE *v23; // [rsp+10h] [rbp-218h] BYREF long long v24; // [rsp+18h] [rbp-210h] long long v25; // [rsp+30h] [rbp-1F8h] long long v26; // [rsp+38h] [rbp-1F0h] int *v27; // [rsp+40h] [rbp-1E8h] int *v28; // [rsp+48h] [rbp-1E0h] _BYTE v29[32]; // [rsp+50h] [rbp-1D8h] BYREF _BYTE v30[16]; // [rsp+70h] [rbp-1B8h] BYREF char v31[8]; // [rsp+80h] [rbp-1A8h] BYREF char v32[416]; // [rsp+88h] [rbp-1A0h] BYREF v26 = a2; v4 = a1; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v30); std::operator<<<std::char_traits<char>>(v31, "[ "); v5 = *a3; v27 = a3[1]; v6 = 1; v25 = a1; while ( v5 != v27 ) { if ( (v6 & 1) == 0 ) std::operator<<<std::char_traits<char>>(v31, ", "); v28 = v5; v7 = v26; common_token_to_piece[abi:cxx11](&v23); v8 = v23; v9 = v24; v10 = &v23[v24]; v11 = v24 >> 2; v12 = v24; v22 = v23; while ( 1 ) { if ( v11 <= 0 ) { switch ( v12 ) { case 1LL: LABEL_19: if ( !(unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,std::vector<int> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>( v8, v7) ) v8 = v10; break; case 2LL: goto LABEL_17; case 3LL: if ( !(unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,std::vector<int> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>( v8, v7) ) { ++v8; LABEL_17: if ( !(unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,std::vector<int> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>( v8, v7) ) { ++v8; goto LABEL_19; } } break; default: LABEL_29: v14 = v10; v15 = v22; goto LABEL_30; } v13 = v8; goto LABEL_23; } if ( (unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,std::vector<int> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>( v8, v7) ) break; v13 = v8 + 1; if ( (unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,std::vector<int> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>( v8 + 1, v7) ) goto LABEL_23; v13 = v8 + 2; if ( (unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,std::vector<int> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>( v8 + 2, v7) ) goto LABEL_23; v13 = v8 + 3; if ( (unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,std::vector<int> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>( v8 + 3, v7) ) goto LABEL_23; v8 += 4; --v11; v12 -= 4LL; } v13 = v8; LABEL_23: if ( v13 == v10 ) goto LABEL_29; v14 = v13; while ( ++v13 != v10 ) { if ( !(unsigned __int8)__gnu_cxx::__ops::_Iter_pred<string_from[abi:cxx11](llama_context const*,std::vector<int> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<char *,std::string>>( v13, v7) ) *v14++ = *v13; } v15 = v23; v9 = v24; LABEL_30: std::string::erase(&v23, v14, &v15[v9]); v16 = std::operator<<<std::char_traits<char>>(v31, "'"); v4 = v25; v17 = v28; v18 = std::operator<<<char>(v16, &v23); v19 = std::operator<<<std::char_traits<char>>(v18, "'"); v20 = std::operator<<<std::char_traits<char>>(v19, ":"); std::to_string((std::__cxx11 *)v29, *v17); std::operator<<<char>(v20, v29); std::string::~string(v29); std::string::~string(&v23); v5 = v17 + 1; v6 = 0; } std::operator<<<std::char_traits<char>>(v31, " ]"); std::stringbuf::str(v4, v32); std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream(v30); return v4; }
string_from[abi:cxx11]: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x1f8 MOV RBX,RDX MOV qword ptr [RSP + 0x38],RSI MOV R14,RDI LEA RDI,[RSP + 0x70] CALL 0x001204e0 LEA RDI,[RSP + 0x80] LAB_00123da2: LEA RSI,[0x18cee5] CALL 0x00120690 MOV R15,qword ptr [RBX] MOV RAX,qword ptr [RBX + 0x8] MOV qword ptr [RSP + 0x40],RAX MOV AL,0x1 LEA R13,[RSP + 0x10] MOV qword ptr [RSP + 0x30],R14 LAB_00123dc6: CMP R15,qword ptr [RSP + 0x40] JZ 0x00123f8b TEST AL,0x1 JNZ 0x00123de9 LAB_00123dd5: LEA RDI,[RSP + 0x80] LEA RSI,[0x18d88c] CALL 0x00120690 LAB_00123de9: MOV qword ptr [RSP + 0x48],R15 MOV EDX,dword ptr [R15] LAB_00123df1: MOV RDI,R13 MOV RSI,qword ptr [RSP + 0x38] PUSH 0x1 POP RCX CALL 0x0012400b MOV R14,qword ptr [RSP + 0x10] MOV R12,qword ptr [RSP + 0x18] LEA RBP,[R14 + R12*0x1] MOV R13,R12 SAR R13,0x2 MOV RBX,R12 MOV qword ptr [RSP + 0x8],R14 LAB_00123e1e: TEST R13,R13 JLE 0x00123e70 MOV RDI,R14 CALL 0x001284d6 TEST AL,AL JNZ 0x00123eb8 LEA R15,[R14 + 0x1] MOV RDI,R15 CALL 0x001284d6 TEST AL,AL JNZ 0x00123ebb LEA R15,[R14 + 0x2] MOV RDI,R15 CALL 0x001284d6 TEST AL,AL JNZ 0x00123ebb LEA R15,[R14 + 0x3] MOV RDI,R15 CALL 0x001284d6 TEST AL,AL JNZ 0x00123ebb ADD R14,0x4 DEC R13 ADD RBX,-0x4 JMP 0x00123e1e LAB_00123e70: CMP RBX,0x1 LEA R13,[RSP + 0x10] JZ 0x00123ea5 CMP RBX,0x2 JZ 0x00123e96 CMP RBX,0x3 JNZ 0x00123ef3 MOV RDI,R14 CALL 0x001284d6 TEST AL,AL JNZ 0x00123eb3 INC R14 LAB_00123e96: MOV RDI,R14 CALL 0x001284d6 TEST AL,AL JNZ 0x00123eb3 INC R14 LAB_00123ea5: MOV RDI,R14 CALL 0x001284d6 TEST AL,AL CMOVZ R14,RBP LAB_00123eb3: MOV R15,R14 JMP 0x00123ec0 LAB_00123eb8: MOV R15,R14 LAB_00123ebb: LEA R13,[RSP + 0x10] LAB_00123ec0: CMP R15,RBP JZ 0x00123ef3 MOV R14,R15 LAB_00123ec8: INC R15 CMP R15,RBP JZ 0x00123ee7 MOV RDI,R15 CALL 0x001284d6 TEST AL,AL JNZ 0x00123ec8 MOV AL,byte ptr [R15] MOV byte ptr [R14],AL INC R14 JMP 0x00123ec8 LAB_00123ee7: MOV RAX,qword ptr [RSP + 0x10] MOV R12,qword ptr [RSP + 0x18] JMP 0x00123efb LAB_00123ef3: MOV R14,RBP MOV RAX,qword ptr [RSP + 0x8] LAB_00123efb: ADD R12,RAX LAB_00123efe: MOV RDI,R13 MOV RSI,R14 MOV RDX,R12 CALL 0x00120140 LAB_00123f0c: LEA RDI,[RSP + 0x80] LEA RBX,[0x18fdb0] MOV RSI,RBX CALL 0x00120690 MOV R14,qword ptr [RSP + 0x30] MOV R15,qword ptr [RSP + 0x48] LEA R12,[RSP + 0x50] MOV RDI,RAX MOV RSI,R13 CALL 0x00120600 MOV RDI,RAX MOV RSI,RBX CALL 0x00120690 MOV RDI,RAX LEA RSI,[0x18d9e5] CALL 0x00120690 MOV RBX,RAX MOV ESI,dword ptr [R15] LAB_00123f5d: MOV RDI,R12 CALL 0x0012867b LAB_00123f65: MOV RDI,RBX MOV RSI,R12 CALL 0x00120600 MOV RDI,R12 CALL 0x00120d98 MOV RDI,R13 CALL 0x00120d98 ADD R15,0x4 XOR EAX,EAX JMP 0x00123dc6 LAB_00123f8b: LEA RSI,[0x18cee8] LEA RDI,[RSP + 0x80] CALL 0x00120690 LEA RSI,[RSP + 0x88] MOV RDI,R14 CALL 0x00120a50 LAB_00123faf: LEA RDI,[RSP + 0x70] CALL 0x00120530 MOV RAX,R14 ADD RSP,0x1f8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* string_from[abi:cxx11](llama_context const*, std::vector<int, std::allocator<int> > const&) */ llama_context * string_from_abi_cxx11_(llama_context *param_1,vector *param_2) { _Iter_pred<string_from[abi:cxx11](llama_context_const*,std::vector<int,std::allocator<int>>const&)::__0> *p_Var1; bool bVar2; _Iter_pred<string_from[abi:cxx11](llama_context_const*,std::vector<int,std::allocator<int>>const&)::__0> *p_Var3; ostream *poVar4; int8 *in_RDX; long lVar5; long lVar6; long lVar7; _Iter_pred<string_from[abi:cxx11](llama_context_const*,std::vector<int,std::allocator<int>>const&)::__0> *p_Var8; _Iter_pred<string_from[abi:cxx11](llama_context_const*,std::vector<int,std::allocator<int>>const&)::__0> *p_Var9; _Iter_pred<string_from[abi:cxx11](llama_context_const*,std::vector<int,std::allocator<int>>const&)::__0> *p_Var10; int *piVar11; _Iter_pred<string_from[abi:cxx11](llama_context_const*,std::vector<int,std::allocator<int>>const&)::__0> *local_218; long local_210; llama_context *local_1f8; vector *local_1f0; int *local_1e8; int *local_1e0; __cxx11 local_1d8 [32]; stringstream local_1b8 [16]; ostream local_1a8 [376]; local_1f0 = param_2; std::__cxx11::stringstream::stringstream(local_1b8); /* try { // try from 00123da2 to 00123dad has its CatchHandler @ 00123fce */ std::operator<<(local_1a8,"[ "); piVar11 = (int *)*in_RDX; local_1e8 = (int *)in_RDX[1]; bVar2 = true; local_1f8 = param_1; do { if (piVar11 == local_1e8) { /* try { // try from 00123f8b to 00123fae has its CatchHandler @ 00123fd0 */ std::operator<<(local_1a8," ]"); std::__cxx11::stringbuf::str(); std::__cxx11::stringstream::~stringstream(local_1b8); return param_1; } if (!bVar2) { /* try { // try from 00123dd5 to 00123de8 has its CatchHandler @ 00123fd2 */ std::operator<<(local_1a8,", "); } local_1e0 = piVar11; /* try { // try from 00123df1 to 00123e00 has its CatchHandler @ 00123fe5 */ common_token_to_piece_abi_cxx11_((llama_context *)&local_218,(int)local_1f0,SUB41(*piVar11,0)); lVar6 = local_210; p_Var3 = local_218; p_Var1 = local_218 + local_210; lVar5 = local_210; p_Var8 = local_218; for (lVar7 = local_210 >> 2; p_Var10 = p_Var1, p_Var9 = p_Var8, 0 < lVar7; lVar7 = lVar7 + -1) { bVar2 = __gnu_cxx::__ops:: _Iter_pred<string_from[abi:cxx11](llama_context_const*,std::vector<int,std::allocator<int>>const&)::$_0> ::operator()(p_Var8); if (bVar2) goto LAB_00123ec0; bVar2 = __gnu_cxx::__ops:: _Iter_pred<string_from[abi:cxx11](llama_context_const*,std::vector<int,std::allocator<int>>const&)::$_0> ::operator()(p_Var8 + 1); p_Var9 = p_Var8 + 1; if (bVar2) goto LAB_00123ec0; bVar2 = __gnu_cxx::__ops:: _Iter_pred<string_from[abi:cxx11](llama_context_const*,std::vector<int,std::allocator<int>>const&)::$_0> ::operator()(p_Var8 + 2); p_Var9 = p_Var8 + 2; if (bVar2) goto LAB_00123ec0; bVar2 = __gnu_cxx::__ops:: _Iter_pred<string_from[abi:cxx11](llama_context_const*,std::vector<int,std::allocator<int>>const&)::$_0> ::operator()(p_Var8 + 3); p_Var9 = p_Var8 + 3; if (bVar2) goto LAB_00123ec0; p_Var8 = p_Var8 + 4; lVar5 = lVar5 + -4; } if (lVar5 == 1) { LAB_00123ea5: bVar2 = __gnu_cxx::__ops:: _Iter_pred<string_from[abi:cxx11](llama_context_const*,std::vector<int,std::allocator<int>>const&)::$_0> ::operator()(p_Var8); p_Var9 = p_Var8; if (!bVar2) { p_Var9 = p_Var1; } LAB_00123ec0: p_Var8 = p_Var9; if (p_Var9 != p_Var1) { while (p_Var8 = p_Var8 + 1, p_Var3 = local_218, lVar6 = local_210, p_Var10 = p_Var9, p_Var8 != p_Var1) { bVar2 = __gnu_cxx::__ops:: _Iter_pred<string_from[abi:cxx11](llama_context_const*,std::vector<int,std::allocator<int>>const&)::$_0> ::operator()(p_Var8); if (!bVar2) { *p_Var9 = *p_Var8; p_Var9 = p_Var9 + 1; } } } } else { if (lVar5 == 2) { LAB_00123e96: bVar2 = __gnu_cxx::__ops:: _Iter_pred<string_from[abi:cxx11](llama_context_const*,std::vector<int,std::allocator<int>>const&)::$_0> ::operator()(p_Var8); p_Var9 = p_Var8; if (!bVar2) { p_Var8 = p_Var8 + 1; goto LAB_00123ea5; } goto LAB_00123ec0; } if (lVar5 == 3) { bVar2 = __gnu_cxx::__ops:: _Iter_pred<string_from[abi:cxx11](llama_context_const*,std::vector<int,std::allocator<int>>const&)::$_0> ::operator()(p_Var8); if (!bVar2) { p_Var8 = p_Var8 + 1; goto LAB_00123e96; } goto LAB_00123ec0; } } /* try { // try from 00123efe to 00123f0b has its CatchHandler @ 00123fea */ std::__cxx11::string::erase((string *)&local_218,p_Var10,p_Var3 + lVar6); /* try { // try from 00123f0c to 00123f56 has its CatchHandler @ 00123fec */ poVar4 = std::operator<<(local_1a8,"\'"); piVar11 = local_1e0; param_1 = local_1f8; poVar4 = std::operator<<(poVar4,(string *)&local_218); poVar4 = std::operator<<(poVar4,"\'"); poVar4 = std::operator<<(poVar4,":"); /* try { // try from 00123f5d to 00123f64 has its CatchHandler @ 00123fd4 */ std::__cxx11::to_string(local_1d8,*piVar11); /* try { // try from 00123f65 to 00123f6f has its CatchHandler @ 00123fd6 */ std::operator<<(poVar4,(string *)local_1d8); std::__cxx11::string::~string((string *)local_1d8); std::__cxx11::string::~string((string *)&local_218); piVar11 = piVar11 + 1; bVar2 = false; } while( true ); }
31,172
ggml_conv_transpose_1d
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
ggml_tensor * ggml_conv_transpose_1d( struct ggml_context * ctx, struct ggml_tensor * a, struct ggml_tensor * b, int s0, int p0, int d0) { GGML_ASSERT(ggml_is_matrix(b)); GGML_ASSERT(a->ne[2] == b->ne[1]); GGML_ASSERT(a->ne[3] == 1); GGML_ASSERT(p0 == 0); GGML_ASSERT(d0 == 1); const int64_t ne[4] = { ggml_calc_conv_transpose_1d_output_size(b->ne[0], a->ne[0], s0, 0 /*p0*/, 1 /*d0*/), a->ne[1], b->ne[2], 1, }; struct ggml_tensor * result = ggml_new_tensor(ctx, GGML_TYPE_F32, 4, ne); int32_t params[] = { s0, p0, d0 }; ggml_set_op_params(result, params, sizeof(params)); result->op = GGML_OP_CONV_TRANSPOSE_1D; result->src[0] = a; result->src[1] = b; return result; }
O0
c
ggml_conv_transpose_1d: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movl %r8d, -0x20(%rbp) movl %r9d, -0x24(%rbp) movq -0x18(%rbp), %rdi callq 0x45bc0 testb $0x1, %al jne 0x51f9d leaq 0x5f634(%rip), %rdi # 0xb15b7 movl $0xf42, %esi # imm = 0xF42 leaq 0x5f67a(%rip), %rdx # 0xb1609 leaq 0x5fde7(%rip), %rcx # 0xb1d7d movb $0x0, %al callq 0x48a00 movq -0x10(%rbp), %rax movq 0x20(%rax), %rax movq -0x18(%rbp), %rcx cmpq 0x18(%rcx), %rax je 0x51fd0 leaq 0x5f601(%rip), %rdi # 0xb15b7 movl $0xf43, %esi # imm = 0xF43 leaq 0x5f647(%rip), %rdx # 0xb1609 leaq 0x5fbce(%rip), %rcx # 0xb1b97 movb $0x0, %al callq 0x48a00 movq -0x10(%rbp), %rax cmpq $0x1, 0x28(%rax) je 0x51ffc leaq 0x5f5d5(%rip), %rdi # 0xb15b7 movl $0xf44, %esi # imm = 0xF44 leaq 0x5f61b(%rip), %rdx # 0xb1609 leaq 0x5fd9a(%rip), %rcx # 0xb1d8f movb $0x0, %al callq 0x48a00 cmpl $0x0, -0x20(%rbp) je 0x52023 leaq 0x5f5ae(%rip), %rdi # 0xb15b7 movl $0xf46, %esi # imm = 0xF46 leaq 0x5f5f4(%rip), %rdx # 0xb1609 leaq 0x5fd81(%rip), %rcx # 0xb1d9d movb $0x0, %al callq 0x48a00 cmpl $0x1, -0x24(%rbp) je 0x5204a leaq 0x5f587(%rip), %rdi # 0xb15b7 movl $0xf47, %esi # imm = 0xF47 leaq 0x5f5cd(%rip), %rdx # 0xb1609 leaq 0x5fd62(%rip), %rcx # 0xb1da5 movb $0x0, %al callq 0x48a00 movq -0x18(%rbp), %rax movq 0x10(%rax), %rdi movq -0x10(%rbp), %rax movq 0x10(%rax), %rsi movl -0x1c(%rbp), %edx xorl %ecx, %ecx movl $0x1, %r8d callq 0x52100 movq %rax, -0x50(%rbp) movq -0x10(%rbp), %rax movq 0x18(%rax), %rax movq %rax, -0x48(%rbp) movq -0x18(%rbp), %rax movq 0x20(%rax), %rax movq %rax, -0x40(%rbp) movq $0x1, -0x38(%rbp) movq -0x8(%rbp), %rdi leaq -0x50(%rbp), %rcx xorl %esi, %esi movl $0x4, %edx callq 0x42510 movq %rax, -0x58(%rbp) movl -0x1c(%rbp), %eax movl %eax, -0x64(%rbp) movl -0x20(%rbp), %eax movl %eax, -0x60(%rbp) movl -0x24(%rbp), %eax movl %eax, -0x5c(%rbp) movq -0x58(%rbp), %rdi leaq -0x64(%rbp), %rsi movl $0xc, %edx callq 0x4e370 movq -0x58(%rbp), %rax movl $0x2f, 0x50(%rax) movq -0x10(%rbp), %rcx movq -0x58(%rbp), %rax movq %rcx, 0x98(%rax) movq -0x18(%rbp), %rcx movq -0x58(%rbp), %rax movq %rcx, 0xa0(%rax) movq -0x58(%rbp), %rax addq $0x70, %rsp popq %rbp retq nopl (%rax)
ggml_conv_transpose_1d: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_1C], ecx mov [rbp+var_20], r8d mov [rbp+var_24], r9d mov rdi, [rbp+var_18] call _ggml_is_matrix test al, 1 jnz short loc_51F9D lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov esi, 0F42h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlIsMatrixB; "ggml_is_matrix(b)" mov al, 0 call _ggml_abort loc_51F9D: mov rax, [rbp+var_10] mov rax, [rax+20h] mov rcx, [rbp+var_18] cmp rax, [rcx+18h] jz short loc_51FD0 lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov esi, 0F43h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aANe2BNe1; "a->ne[2] == b->ne[1]" mov al, 0 call _ggml_abort loc_51FD0: mov rax, [rbp+var_10] cmp qword ptr [rax+28h], 1 jz short loc_51FFC lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov esi, 0F44h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aANe31; "a->ne[3] == 1" mov al, 0 call _ggml_abort loc_51FFC: cmp [rbp+var_20], 0 jz short loc_52023 lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov esi, 0F46h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aP00; "p0 == 0" mov al, 0 call _ggml_abort loc_52023: cmp [rbp+var_24], 1 jz short loc_5204A lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov esi, 0F47h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aD01; "d0 == 1" mov al, 0 call _ggml_abort loc_5204A: mov rax, [rbp+var_18] mov rdi, [rax+10h] mov rax, [rbp+var_10] mov rsi, [rax+10h] mov edx, [rbp+var_1C] xor ecx, ecx mov r8d, 1 call ggml_calc_conv_transpose_1d_output_size mov [rbp+var_50], rax mov rax, [rbp+var_10] mov rax, [rax+18h] mov [rbp+var_48], rax mov rax, [rbp+var_18] mov rax, [rax+20h] mov [rbp+var_40], rax mov [rbp+var_38], 1 mov rdi, [rbp+var_8] lea rcx, [rbp+var_50] xor esi, esi mov edx, 4 call _ggml_new_tensor mov [rbp+var_58], rax mov eax, [rbp+var_1C] mov [rbp+var_64], eax mov eax, [rbp+var_20] mov [rbp+var_60], eax mov eax, [rbp+var_24] mov [rbp+var_5C], eax mov rdi, [rbp+var_58] lea rsi, [rbp+var_64] mov edx, 0Ch call ggml_set_op_params mov rax, [rbp+var_58] mov dword ptr [rax+50h], 2Fh ; '/' mov rcx, [rbp+var_10] mov rax, [rbp+var_58] mov [rax+98h], rcx mov rcx, [rbp+var_18] mov rax, [rbp+var_58] mov [rax+0A0h], rcx mov rax, [rbp+var_58] add rsp, 70h pop rbp retn
long long ggml_conv_transpose_1d(long long a1, _QWORD *a2, long long a3, unsigned int a4, int a5, int a6) { _DWORD v7[3]; // [rsp+Ch] [rbp-64h] BYREF long long v8; // [rsp+18h] [rbp-58h] _QWORD v9[5]; // [rsp+20h] [rbp-50h] BYREF int v10; // [rsp+4Ch] [rbp-24h] int v11; // [rsp+50h] [rbp-20h] unsigned int v12; // [rsp+54h] [rbp-1Ch] _QWORD *v13; // [rsp+58h] [rbp-18h] _QWORD *v14; // [rsp+60h] [rbp-10h] long long v15; // [rsp+68h] [rbp-8h] v15 = a1; v14 = a2; v13 = (_QWORD *)a3; v12 = a4; v11 = a5; v10 = a6; if ( !ggml_is_matrix(a3) ) ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", 3906, (long long)"GGML_ASSERT(%s) failed", "ggml_is_matrix(b)"); if ( v14[4] != v13[3] ) ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", 3907, (long long)"GGML_ASSERT(%s) failed", "a->ne[2] == b->ne[1]"); if ( v14[5] != 1LL ) ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", 3908, (long long)"GGML_ASSERT(%s) failed", "a->ne[3] == 1"); if ( v11 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", 3910, (long long)"GGML_ASSERT(%s) failed", "p0 == 0"); if ( v10 != 1 ) ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", 3911, (long long)"GGML_ASSERT(%s) failed", "d0 == 1"); v9[0] = ggml_calc_conv_transpose_1d_output_size(v13[2], v14[2], v12, 0LL, 1LL); v9[1] = v14[3]; v9[2] = v13[4]; v9[3] = 1LL; v8 = ggml_new_tensor(v15, 0, 4u, (long long)v9); v7[0] = v12; v7[1] = v11; v7[2] = v10; ggml_set_op_params(v8, (long long)v7, 0xCuLL); *(_DWORD *)(v8 + 80) = 47; *(_QWORD *)(v8 + 152) = v14; *(_QWORD *)(v8 + 160) = v13; return v8; }
ggml_conv_transpose_1d: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV dword ptr [RBP + -0x1c],ECX MOV dword ptr [RBP + -0x20],R8D MOV dword ptr [RBP + -0x24],R9D MOV RDI,qword ptr [RBP + -0x18] CALL 0x00145bc0 TEST AL,0x1 JNZ 0x00151f9d LEA RDI,[0x1b15b7] MOV ESI,0xf42 LEA RDX,[0x1b1609] LEA RCX,[0x1b1d7d] MOV AL,0x0 CALL 0x00148a00 LAB_00151f9d: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RBP + -0x18] CMP RAX,qword ptr [RCX + 0x18] JZ 0x00151fd0 LEA RDI,[0x1b15b7] MOV ESI,0xf43 LEA RDX,[0x1b1609] LEA RCX,[0x1b1b97] MOV AL,0x0 CALL 0x00148a00 LAB_00151fd0: MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x28],0x1 JZ 0x00151ffc LEA RDI,[0x1b15b7] MOV ESI,0xf44 LEA RDX,[0x1b1609] LEA RCX,[0x1b1d8f] MOV AL,0x0 CALL 0x00148a00 LAB_00151ffc: CMP dword ptr [RBP + -0x20],0x0 JZ 0x00152023 LEA RDI,[0x1b15b7] MOV ESI,0xf46 LEA RDX,[0x1b1609] LEA RCX,[0x1b1d9d] MOV AL,0x0 CALL 0x00148a00 LAB_00152023: CMP dword ptr [RBP + -0x24],0x1 JZ 0x0015204a LEA RDI,[0x1b15b7] MOV ESI,0xf47 LEA RDX,[0x1b1609] LEA RCX,[0x1b1da5] MOV AL,0x0 CALL 0x00148a00 LAB_0015204a: MOV RAX,qword ptr [RBP + -0x18] MOV RDI,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RAX + 0x10] MOV EDX,dword ptr [RBP + -0x1c] XOR ECX,ECX MOV R8D,0x1 CALL 0x00152100 MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x20] MOV qword ptr [RBP + -0x40],RAX MOV qword ptr [RBP + -0x38],0x1 MOV RDI,qword ptr [RBP + -0x8] LEA RCX,[RBP + -0x50] XOR ESI,ESI MOV EDX,0x4 CALL 0x00142510 MOV qword ptr [RBP + -0x58],RAX MOV EAX,dword ptr [RBP + -0x1c] MOV dword ptr [RBP + -0x64],EAX MOV EAX,dword ptr [RBP + -0x20] MOV dword ptr [RBP + -0x60],EAX MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x5c],EAX MOV RDI,qword ptr [RBP + -0x58] LEA RSI,[RBP + -0x64] MOV EDX,0xc CALL 0x0014e370 MOV RAX,qword ptr [RBP + -0x58] MOV dword ptr [RAX + 0x50],0x2f MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RAX + 0x98],RCX MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RAX + 0xa0],RCX MOV RAX,qword ptr [RBP + -0x58] ADD RSP,0x70 POP RBP RET
long ggml_conv_transpose_1d (int8 param_1,long param_2,long param_3,int4 param_4,int param_5, int param_6) { ulong uVar1; int4 local_6c; int local_68; int local_64; long local_60; int8 local_58; int8 local_50; int8 local_48; int8 local_40; int local_2c; int local_28; int4 local_24; long local_20; long local_18; int8 local_10; local_2c = param_6; local_28 = param_5; local_24 = param_4; local_20 = param_3; local_18 = param_2; local_10 = param_1; uVar1 = ggml_is_matrix(param_3); if ((uVar1 & 1) == 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", 0xf42,"GGML_ASSERT(%s) failed","ggml_is_matrix(b)"); } if (*(long *)(local_18 + 0x20) != *(long *)(local_20 + 0x18)) { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", 0xf43,"GGML_ASSERT(%s) failed","a->ne[2] == b->ne[1]"); } if (*(long *)(local_18 + 0x28) != 1) { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", 0xf44,"GGML_ASSERT(%s) failed","a->ne[3] == 1"); } if (local_28 != 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", 0xf46,"GGML_ASSERT(%s) failed","p0 == 0"); } if (local_2c != 1) { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", 0xf47,"GGML_ASSERT(%s) failed","d0 == 1"); } local_58 = ggml_calc_conv_transpose_1d_output_size (*(int8 *)(local_20 + 0x10),*(int8 *)(local_18 + 0x10),local_24,0 ,1); local_50 = *(int8 *)(local_18 + 0x18); local_48 = *(int8 *)(local_20 + 0x20); local_40 = 1; local_60 = ggml_new_tensor(local_10,0,4,&local_58); local_6c = local_24; local_68 = local_28; local_64 = local_2c; ggml_set_op_params(local_60,&local_6c,0xc); *(int4 *)(local_60 + 0x50) = 0x2f; *(long *)(local_60 + 0x98) = local_18; *(long *)(local_60 + 0xa0) = local_20; return local_60; }
31,173
ggml_conv_transpose_1d
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
ggml_tensor * ggml_conv_transpose_1d( struct ggml_context * ctx, struct ggml_tensor * a, struct ggml_tensor * b, int s0, int p0, int d0) { GGML_ASSERT(ggml_is_matrix(b)); GGML_ASSERT(a->ne[2] == b->ne[1]); GGML_ASSERT(a->ne[3] == 1); GGML_ASSERT(p0 == 0); GGML_ASSERT(d0 == 1); const int64_t ne[4] = { ggml_calc_conv_transpose_1d_output_size(b->ne[0], a->ne[0], s0, 0 /*p0*/, 1 /*d0*/), a->ne[1], b->ne[2], 1, }; struct ggml_tensor * result = ggml_new_tensor(ctx, GGML_TYPE_F32, 4, ne); int32_t params[] = { s0, p0, d0 }; ggml_set_op_params(result, params, sizeof(params)); result->op = GGML_OP_CONV_TRANSPOSE_1D; result->src[0] = a; result->src[1] = b; return result; }
O1
c
ggml_conv_transpose_1d: pushq %rbp pushq %r14 pushq %rbx subq $0x20, %rsp movq 0x20(%rdx), %rax cmpq $0x1, %rax jne 0x1f1b8 movq %rdx, %rbx cmpq $0x1, 0x28(%rdx) jne 0x1f1b8 movl %ecx, %ebp movq %rsi, %r14 movq 0x20(%rsi), %rcx cmpq 0x18(%rbx), %rcx jne 0x1f1d7 cmpq $0x1, 0x28(%r14) jne 0x1f1f3 testl %r8d, %r8d jne 0x1f20f cmpl $0x1, %r9d jne 0x1f22b movq 0x10(%rbx), %rcx decq %rcx movslq %ebp, %rdx imulq %rcx, %rdx addq 0x10(%r14), %rdx movq %rsp, %rcx movq %rdx, (%rcx) movq 0x18(%r14), %rdx movq %rdx, 0x8(%rcx) movq %rax, 0x10(%rcx) movq $0x1, 0x18(%rcx) xorl %esi, %esi movl $0x4, %edx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x1b871 testq %rax, %rax je 0x1f247 movl %ebp, 0x54(%rax) movabsq $0x100000000, %rcx # imm = 0x100000000 movq %rcx, 0x58(%rax) movl $0x2f, 0x50(%rax) movq %r14, 0x98(%rax) movq %rbx, 0xa0(%rax) addq $0x20, %rsp popq %rbx popq %r14 popq %rbp retq leaq 0x2d3b0(%rip), %rdi # 0x4c56f leaq 0x2d3fb(%rip), %rdx # 0x4c5c1 leaq 0x2db29(%rip), %rcx # 0x4ccf6 movl $0xf42, %esi # imm = 0xF42 jmp 0x1f261 leaq 0x2d391(%rip), %rdi # 0x4c56f leaq 0x2d3dc(%rip), %rdx # 0x4c5c1 leaq 0x2d963(%rip), %rcx # 0x4cb4f movl $0xf43, %esi # imm = 0xF43 jmp 0x1f261 leaq 0x2d375(%rip), %rdi # 0x4c56f leaq 0x2d3c0(%rip), %rdx # 0x4c5c1 leaq 0x2db00(%rip), %rcx # 0x4cd08 movl $0xf44, %esi # imm = 0xF44 jmp 0x1f261 leaq 0x2d359(%rip), %rdi # 0x4c56f leaq 0x2d3a4(%rip), %rdx # 0x4c5c1 leaq 0x2daf2(%rip), %rcx # 0x4cd16 movl $0xf46, %esi # imm = 0xF46 jmp 0x1f261 leaq 0x2d33d(%rip), %rdi # 0x4c56f leaq 0x2d388(%rip), %rdx # 0x4c5c1 leaq 0x2dade(%rip), %rcx # 0x4cd1e movl $0xf47, %esi # imm = 0xF47 jmp 0x1f261 leaq 0x2f477(%rip), %rdi # 0x4e6c5 leaq 0x2d36c(%rip), %rdx # 0x4c5c1 leaq 0x2f596(%rip), %rcx # 0x4e7f2 movl $0x70, %esi xorl %eax, %eax callq 0x18ce0
ggml_conv_transpose_1d: push rbp push r14 push rbx sub rsp, 20h mov rax, [rdx+20h] cmp rax, 1 jnz loc_1F1B8 mov rbx, rdx cmp qword ptr [rdx+28h], 1 jnz loc_1F1B8 mov ebp, ecx mov r14, rsi mov rcx, [rsi+20h] cmp rcx, [rbx+18h] jnz loc_1F1D7 cmp qword ptr [r14+28h], 1 jnz loc_1F1F3 test r8d, r8d jnz loc_1F20F cmp r9d, 1 jnz loc_1F22B mov rcx, [rbx+10h] dec rcx movsxd rdx, ebp imul rdx, rcx add rdx, [r14+10h] mov rcx, rsp mov [rcx], rdx mov rdx, [r14+18h] mov [rcx+8], rdx mov [rcx+10h], rax mov qword ptr [rcx+18h], 1 xor esi, esi mov edx, 4 xor r8d, r8d xor r9d, r9d call ggml_new_tensor_impl test rax, rax jz loc_1F247 mov [rax+54h], ebp mov rcx, 100000000h mov [rax+58h], rcx mov dword ptr [rax+50h], 2Fh ; '/' mov [rax+98h], r14 mov [rax+0A0h], rbx add rsp, 20h pop rbx pop r14 pop rbp retn loc_1F1B8: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlIsMatrixB; "ggml_is_matrix(b)" mov esi, 0F42h jmp loc_1F261 loc_1F1D7: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aANe2BNe1; "a->ne[2] == b->ne[1]" mov esi, 0F43h jmp short loc_1F261 loc_1F1F3: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aANe31; "a->ne[3] == 1" mov esi, 0F44h jmp short loc_1F261 loc_1F20F: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aP00; "p0 == 0" mov esi, 0F46h jmp short loc_1F261 loc_1F22B: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aD01; "d0 == 1" mov esi, 0F47h jmp short loc_1F261 loc_1F247: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTensorNull; "tensor != NULL" mov esi, 70h ; 'p' loc_1F261: xor eax, eax call _ggml_abort
long long ggml_conv_transpose_1d(long long a1, _QWORD *a2, _QWORD *a3, int a4, int a5, int a6, double a7) { long long result; // rax const char *v10; // rdi const char *v11; // rcx int v12; // esi long long v13[7]; // [rsp+0h] [rbp-38h] BYREF if ( a3[4] != 1LL || a3[5] != 1LL ) { v10 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; v11 = "ggml_is_matrix(b)"; v12 = 3906; goto LABEL_15; } if ( a2[4] != a3[3] ) { v10 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; v11 = "a->ne[2] == b->ne[1]"; v12 = 3907; goto LABEL_15; } if ( a2[5] != 1LL ) { v10 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; v11 = "a->ne[3] == 1"; v12 = 3908; goto LABEL_15; } if ( a5 ) { v10 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; v11 = "p0 == 0"; v12 = 3910; goto LABEL_15; } if ( a6 != 1 ) { v10 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; v11 = "d0 == 1"; v12 = 3911; goto LABEL_15; } v13[0] = a2[2] + (a3[2] - 1LL) * a4; v13[1] = a2[3]; v13[2] = 1LL; v13[3] = 1LL; result = ggml_new_tensor_impl(a1, 0, 4, v13, 0LL, 0LL, a7); if ( !result ) { v10 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h"; v11 = "tensor != NULL"; v12 = 112; LABEL_15: ggml_abort((_DWORD)v10, v12, (unsigned int)"GGML_ASSERT(%s) failed", (_DWORD)v11, a5, a6); } *(_DWORD *)(result + 84) = a4; *(_QWORD *)(result + 88) = 0x100000000LL; *(_DWORD *)(result + 80) = 47; *(_QWORD *)(result + 152) = a2; *(_QWORD *)(result + 160) = a3; return result; }
ggml_conv_transpose_1d: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x20 MOV RAX,qword ptr [RDX + 0x20] CMP RAX,0x1 JNZ 0x0011f1b8 MOV RBX,RDX CMP qword ptr [RDX + 0x28],0x1 JNZ 0x0011f1b8 MOV EBP,ECX MOV R14,RSI MOV RCX,qword ptr [RSI + 0x20] CMP RCX,qword ptr [RBX + 0x18] JNZ 0x0011f1d7 CMP qword ptr [R14 + 0x28],0x1 JNZ 0x0011f1f3 TEST R8D,R8D JNZ 0x0011f20f CMP R9D,0x1 JNZ 0x0011f22b MOV RCX,qword ptr [RBX + 0x10] DEC RCX MOVSXD RDX,EBP IMUL RDX,RCX ADD RDX,qword ptr [R14 + 0x10] MOV RCX,RSP MOV qword ptr [RCX],RDX MOV RDX,qword ptr [R14 + 0x18] MOV qword ptr [RCX + 0x8],RDX MOV qword ptr [RCX + 0x10],RAX MOV qword ptr [RCX + 0x18],0x1 XOR ESI,ESI MOV EDX,0x4 XOR R8D,R8D XOR R9D,R9D CALL 0x0011b871 TEST RAX,RAX JZ 0x0011f247 MOV dword ptr [RAX + 0x54],EBP MOV RCX,0x100000000 MOV qword ptr [RAX + 0x58],RCX MOV dword ptr [RAX + 0x50],0x2f MOV qword ptr [RAX + 0x98],R14 MOV qword ptr [RAX + 0xa0],RBX ADD RSP,0x20 POP RBX POP R14 POP RBP RET LAB_0011f1b8: LEA RDI,[0x14c56f] LEA RDX,[0x14c5c1] LEA RCX,[0x14ccf6] MOV ESI,0xf42 JMP 0x0011f261 LAB_0011f1d7: LEA RDI,[0x14c56f] LEA RDX,[0x14c5c1] LEA RCX,[0x14cb4f] MOV ESI,0xf43 JMP 0x0011f261 LAB_0011f1f3: LEA RDI,[0x14c56f] LEA RDX,[0x14c5c1] LEA RCX,[0x14cd08] MOV ESI,0xf44 JMP 0x0011f261 LAB_0011f20f: LEA RDI,[0x14c56f] LEA RDX,[0x14c5c1] LEA RCX,[0x14cd16] MOV ESI,0xf46 JMP 0x0011f261 LAB_0011f22b: LEA RDI,[0x14c56f] LEA RDX,[0x14c5c1] LEA RCX,[0x14cd1e] MOV ESI,0xf47 JMP 0x0011f261 LAB_0011f247: LEA RDI,[0x14e6c5] LEA RDX,[0x14c5c1] LEA RCX,[0x14e7f2] MOV ESI,0x70 LAB_0011f261: XOR EAX,EAX CALL 0x00118ce0
void ggml_conv_transpose_1d (int8 param_1,long param_2,long param_3,int param_4,int param_5,int param_6) { long lVar1; char *pcVar2; int8 uVar3; char *pcVar4; long local_38; int8 local_30; long local_28; int8 local_20; if ((*(long *)(param_3 + 0x20) == 1) && (*(long *)(param_3 + 0x28) == 1)) { if (*(long *)(param_2 + 0x20) == *(long *)(param_3 + 0x18)) { if (*(long *)(param_2 + 0x28) == 1) { if (param_5 == 0) { if (param_6 == 1) { local_38 = (long)param_4 * (*(long *)(param_3 + 0x10) + -1) + *(long *)(param_2 + 0x10); local_30 = *(int8 *)(param_2 + 0x18); local_20 = 1; local_28 = *(long *)(param_3 + 0x20); lVar1 = ggml_new_tensor_impl(param_1,0,4,&local_38,0,0); if (lVar1 != 0) { *(int *)(lVar1 + 0x54) = param_4; *(int8 *)(lVar1 + 0x58) = 0x100000000; *(int4 *)(lVar1 + 0x50) = 0x2f; *(long *)(lVar1 + 0x98) = param_2; *(long *)(lVar1 + 0xa0) = param_3; return; } pcVar4 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h" ; pcVar2 = "tensor != NULL"; uVar3 = 0x70; } else { pcVar4 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; pcVar2 = "d0 == 1"; uVar3 = 0xf47; } } else { pcVar4 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; pcVar2 = "p0 == 0"; uVar3 = 0xf46; } } else { pcVar4 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c" ; pcVar2 = "a->ne[3] == 1"; uVar3 = 0xf44; } } else { pcVar4 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; pcVar2 = "a->ne[2] == b->ne[1]"; uVar3 = 0xf43; } } else { pcVar4 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; pcVar2 = "ggml_is_matrix(b)"; uVar3 = 0xf42; } /* WARNING: Subroutine does not return */ ggml_abort(pcVar4,uVar3,"GGML_ASSERT(%s) failed",pcVar2); }
31,174
ggml_conv_transpose_1d
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
ggml_tensor * ggml_conv_transpose_1d( struct ggml_context * ctx, struct ggml_tensor * a, struct ggml_tensor * b, int s0, int p0, int d0) { GGML_ASSERT(ggml_is_matrix(b)); GGML_ASSERT(a->ne[2] == b->ne[1]); GGML_ASSERT(a->ne[3] == 1); GGML_ASSERT(p0 == 0); GGML_ASSERT(d0 == 1); const int64_t ne[4] = { ggml_calc_conv_transpose_1d_output_size(b->ne[0], a->ne[0], s0, 0 /*p0*/, 1 /*d0*/), a->ne[1], b->ne[2], 1, }; struct ggml_tensor * result = ggml_new_tensor(ctx, GGML_TYPE_F32, 4, ne); int32_t params[] = { s0, p0, d0 }; ggml_set_op_params(result, params, sizeof(params)); result->op = GGML_OP_CONV_TRANSPOSE_1D; result->src[0] = a; result->src[1] = b; return result; }
O2
c
ggml_conv_transpose_1d: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x38, %rsp cmpq $0x1, 0x20(%rdx) jne 0x24581 movq %rdx, %rbx cmpq $0x1, 0x28(%rdx) jne 0x24581 movq %rsi, %r14 movq 0x20(%rsi), %rax cmpq 0x18(%rbx), %rax jne 0x2459d cmpq $0x1, 0x28(%r14) jne 0x245b9 testl %r8d, %r8d jne 0x245d5 cmpl $0x1, %r9d jne 0x245f1 movq 0x10(%rbx), %rax decq %rax movslq %ecx, %r12 imulq %r12, %rax addq 0x10(%r14), %rax leaq 0x10(%rsp), %rcx movq %rax, (%rcx) movq 0x18(%r14), %rax movq %rax, 0x8(%rcx) pushq $0x1 popq %rax movq %rax, 0x10(%rcx) movq %rax, 0x18(%rcx) pushq $0x4 popq %rdx xorl %esi, %esi callq 0x1d260 movq %rax, %r15 leaq 0x4(%rsp), %rsi movl %r12d, (%rsi) movabsq $0x100000000, %rax # imm = 0x100000000 movq %rax, 0x4(%rsi) pushq $0xc popq %rdx movq %r15, %rdi callq 0x2221d movl $0x2f, 0x50(%r15) movq %r14, 0x98(%r15) movq %rbx, 0xa0(%r15) movq %r15, %rax addq $0x38, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq leaq 0x29ffb(%rip), %rdi # 0x4e583 leaq 0x2a046(%rip), %rdx # 0x4e5d5 leaq 0x2a774(%rip), %rcx # 0x4ed0a movl $0xf42, %esi # imm = 0xF42 jmp 0x2460b leaq 0x29fdf(%rip), %rdi # 0x4e583 leaq 0x2a02a(%rip), %rdx # 0x4e5d5 leaq 0x2a5b1(%rip), %rcx # 0x4eb63 movl $0xf43, %esi # imm = 0xF43 jmp 0x2460b leaq 0x29fc3(%rip), %rdi # 0x4e583 leaq 0x2a00e(%rip), %rdx # 0x4e5d5 leaq 0x2a74e(%rip), %rcx # 0x4ed1c movl $0xf44, %esi # imm = 0xF44 jmp 0x2460b leaq 0x29fa7(%rip), %rdi # 0x4e583 leaq 0x29ff2(%rip), %rdx # 0x4e5d5 leaq 0x2a740(%rip), %rcx # 0x4ed2a movl $0xf46, %esi # imm = 0xF46 jmp 0x2460b leaq 0x29f8b(%rip), %rdi # 0x4e583 leaq 0x29fd6(%rip), %rdx # 0x4e5d5 leaq 0x2a72c(%rip), %rcx # 0x4ed32 movl $0xf47, %esi # imm = 0xF47 xorl %eax, %eax callq 0x1f9b0
ggml_conv_transpose_1d: push r15 push r14 push r12 push rbx sub rsp, 38h cmp qword ptr [rdx+20h], 1 jnz loc_24581 mov rbx, rdx cmp qword ptr [rdx+28h], 1 jnz loc_24581 mov r14, rsi mov rax, [rsi+20h] cmp rax, [rbx+18h] jnz loc_2459D cmp qword ptr [r14+28h], 1 jnz loc_245B9 test r8d, r8d jnz loc_245D5 cmp r9d, 1 jnz loc_245F1 mov rax, [rbx+10h] dec rax movsxd r12, ecx imul rax, r12 add rax, [r14+10h] lea rcx, [rsp+58h+var_48] mov [rcx], rax mov rax, [r14+18h] mov [rcx+8], rax push 1 pop rax mov [rcx+10h], rax mov [rcx+18h], rax push 4 pop rdx xor esi, esi call _ggml_new_tensor mov r15, rax lea rsi, [rsp+58h+var_54] mov [rsi], r12d mov rax, 100000000h mov [rsi+4], rax push 0Ch pop rdx mov rdi, r15 call ggml_set_op_params mov dword ptr [r15+50h], 2Fh ; '/' mov [r15+98h], r14 mov [r15+0A0h], rbx mov rax, r15 add rsp, 38h pop rbx pop r12 pop r14 pop r15 retn loc_24581: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlIsMatrixB; "ggml_is_matrix(b)" mov esi, 0F42h jmp short loc_2460B loc_2459D: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aANe2BNe1; "a->ne[2] == b->ne[1]" mov esi, 0F43h jmp short loc_2460B loc_245B9: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aANe31; "a->ne[3] == 1" mov esi, 0F44h jmp short loc_2460B loc_245D5: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aP00; "p0 == 0" mov esi, 0F46h jmp short loc_2460B loc_245F1: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aD01; "d0 == 1" mov esi, 0F47h loc_2460B: xor eax, eax call _ggml_abort
long long ggml_conv_transpose_1d( long long a1, _QWORD *a2, _QWORD *a3, int a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long v16; // r15 long long v17; // rcx long long v18; // r8 long long v19; // r9 __m128 v20; // xmm4 __m128 v21; // xmm5 const char *v23; // rcx int v24; // esi char v25; // [rsp+0h] [rbp-58h] int v26; // [rsp+4h] [rbp-54h] BYREF long long v27; // [rsp+8h] [rbp-50h] _QWORD v28[9]; // [rsp+10h] [rbp-48h] BYREF if ( a3[4] != 1LL || a3[5] != 1LL ) { v23 = "ggml_is_matrix(b)"; v24 = 3906; goto LABEL_13; } if ( a2[4] != a3[3] ) { v23 = "a->ne[2] == b->ne[1]"; v24 = 3907; goto LABEL_13; } if ( a2[5] != 1LL ) { v23 = "a->ne[3] == 1"; v24 = 3908; goto LABEL_13; } if ( (_DWORD)a5 ) { v23 = "p0 == 0"; v24 = 3910; goto LABEL_13; } if ( (_DWORD)a6 != 1 ) { v23 = "d0 == 1"; v24 = 3911; LABEL_13: ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", v24, (long long)"GGML_ASSERT(%s) failed", (long long)v23, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v25); } v28[0] = a2[2] + a4 * (a3[2] - 1LL); v28[1] = a2[3]; v28[2] = 1LL; v28[3] = 1LL; v16 = ggml_new_tensor(a1, 0LL, 4LL, (long long)v28); v26 = a4; v27 = 0x100000000LL; ggml_set_op_params(v16, (long long)&v26, 12LL, a7, a8, a9, a10, v20, v21, a13, a14, v17, v18, v19); *(_DWORD *)(v16 + 80) = 47; *(_QWORD *)(v16 + 152) = a2; *(_QWORD *)(v16 + 160) = a3; return v16; }
ggml_conv_transpose_1d: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x38 CMP qword ptr [RDX + 0x20],0x1 JNZ 0x00124581 MOV RBX,RDX CMP qword ptr [RDX + 0x28],0x1 JNZ 0x00124581 MOV R14,RSI MOV RAX,qword ptr [RSI + 0x20] CMP RAX,qword ptr [RBX + 0x18] JNZ 0x0012459d CMP qword ptr [R14 + 0x28],0x1 JNZ 0x001245b9 TEST R8D,R8D JNZ 0x001245d5 CMP R9D,0x1 JNZ 0x001245f1 MOV RAX,qword ptr [RBX + 0x10] DEC RAX MOVSXD R12,ECX IMUL RAX,R12 ADD RAX,qword ptr [R14 + 0x10] LEA RCX,[RSP + 0x10] MOV qword ptr [RCX],RAX MOV RAX,qword ptr [R14 + 0x18] MOV qword ptr [RCX + 0x8],RAX PUSH 0x1 POP RAX MOV qword ptr [RCX + 0x10],RAX MOV qword ptr [RCX + 0x18],RAX PUSH 0x4 POP RDX XOR ESI,ESI CALL 0x0011d260 MOV R15,RAX LEA RSI,[RSP + 0x4] MOV dword ptr [RSI],R12D MOV RAX,0x100000000 MOV qword ptr [RSI + 0x4],RAX PUSH 0xc POP RDX MOV RDI,R15 CALL 0x0012221d MOV dword ptr [R15 + 0x50],0x2f MOV qword ptr [R15 + 0x98],R14 MOV qword ptr [R15 + 0xa0],RBX MOV RAX,R15 ADD RSP,0x38 POP RBX POP R12 POP R14 POP R15 RET LAB_00124581: LEA RDI,[0x14e583] LEA RDX,[0x14e5d5] LEA RCX,[0x14ed0a] MOV ESI,0xf42 JMP 0x0012460b LAB_0012459d: LEA RDI,[0x14e583] LEA RDX,[0x14e5d5] LEA RCX,[0x14eb63] MOV ESI,0xf43 JMP 0x0012460b LAB_001245b9: LEA RDI,[0x14e583] LEA RDX,[0x14e5d5] LEA RCX,[0x14ed1c] MOV ESI,0xf44 JMP 0x0012460b LAB_001245d5: LEA RDI,[0x14e583] LEA RDX,[0x14e5d5] LEA RCX,[0x14ed2a] MOV ESI,0xf46 JMP 0x0012460b LAB_001245f1: LEA RDI,[0x14e583] LEA RDX,[0x14e5d5] LEA RCX,[0x14ed32] MOV ESI,0xf47 LAB_0012460b: XOR EAX,EAX CALL 0x0011f9b0
long ggml_conv_transpose_1d (int8 param_1,long param_2,long param_3,int param_4,int param_5,int param_6) { long lVar1; char *pcVar2; int8 uVar3; int local_54 [3]; long local_48; int8 local_40; int8 local_38; int8 local_30; if ((*(long *)(param_3 + 0x20) == 1) && (*(long *)(param_3 + 0x28) == 1)) { if (*(long *)(param_2 + 0x20) == *(long *)(param_3 + 0x18)) { if (*(long *)(param_2 + 0x28) == 1) { if (param_5 == 0) { if (param_6 == 1) { local_48 = (*(long *)(param_3 + 0x10) + -1) * (long)param_4 + *(long *)(param_2 + 0x10); local_40 = *(int8 *)(param_2 + 0x18); local_38 = 1; local_30 = 1; lVar1 = ggml_new_tensor(param_1,0,4); local_54[1] = 0; local_54[2] = 1; local_54[0] = param_4; ggml_set_op_params(lVar1,local_54,0xc); *(int4 *)(lVar1 + 0x50) = 0x2f; *(long *)(lVar1 + 0x98) = param_2; *(long *)(lVar1 + 0xa0) = param_3; return lVar1; } pcVar2 = "d0 == 1"; uVar3 = 0xf47; } else { pcVar2 = "p0 == 0"; uVar3 = 0xf46; } } else { pcVar2 = "a->ne[3] == 1"; uVar3 = 0xf44; } } else { pcVar2 = "a->ne[2] == b->ne[1]"; uVar3 = 0xf43; } } else { pcVar2 = "ggml_is_matrix(b)"; uVar3 = 0xf42; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c", uVar3,"GGML_ASSERT(%s) failed",pcVar2); }
31,175
ggml_conv_transpose_1d
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c
ggml_tensor * ggml_conv_transpose_1d( struct ggml_context * ctx, struct ggml_tensor * a, struct ggml_tensor * b, int s0, int p0, int d0) { GGML_ASSERT(ggml_is_matrix(b)); GGML_ASSERT(a->ne[2] == b->ne[1]); GGML_ASSERT(a->ne[3] == 1); GGML_ASSERT(p0 == 0); GGML_ASSERT(d0 == 1); const int64_t ne[4] = { ggml_calc_conv_transpose_1d_output_size(b->ne[0], a->ne[0], s0, 0 /*p0*/, 1 /*d0*/), a->ne[1], b->ne[2], 1, }; struct ggml_tensor * result = ggml_new_tensor(ctx, GGML_TYPE_F32, 4, ne); int32_t params[] = { s0, p0, d0 }; ggml_set_op_params(result, params, sizeof(params)); result->op = GGML_OP_CONV_TRANSPOSE_1D; result->src[0] = a; result->src[1] = b; return result; }
O3
c
ggml_conv_transpose_1d: pushq %rbp pushq %r14 pushq %rbx subq $0x20, %rsp cmpq $0x1, 0x20(%rdx) jne 0x1de96 movq %rdx, %rbx cmpq $0x1, 0x28(%rdx) jne 0x1de96 movq %rsi, %r14 movq 0x20(%rsi), %rax cmpq 0x18(%rbx), %rax jne 0x1deb5 cmpq $0x1, 0x28(%r14) jne 0x1ded1 testl %r8d, %r8d jne 0x1deed cmpl $0x1, %r9d jne 0x1df09 movl %ecx, %ebp movq 0x10(%rbx), %rax decq %rax movslq %ecx, %rdx imulq %rax, %rdx addq 0x10(%r14), %rdx movq %rsp, %rcx movq %rdx, (%rcx) movq 0x18(%r14), %rax movq %rax, 0x8(%rcx) movl $0x1, %eax movq %rax, 0x10(%rcx) movq %rax, 0x18(%rcx) xorl %esi, %esi movl $0x4, %edx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x1a57f testq %rax, %rax je 0x1df25 movl %ebp, 0x54(%rax) movabsq $0x100000000, %rcx # imm = 0x100000000 movq %rcx, 0x58(%rax) movl $0x2f, 0x50(%rax) movq %r14, 0x98(%rax) movq %rbx, 0xa0(%rax) addq $0x20, %rsp popq %rbx popq %r14 popq %rbp retq leaq 0x2e776(%rip), %rdi # 0x4c613 leaq 0x2e7c1(%rip), %rdx # 0x4c665 leaq 0x2eeef(%rip), %rcx # 0x4cd9a movl $0xf42, %esi # imm = 0xF42 jmp 0x1df3f leaq 0x2e757(%rip), %rdi # 0x4c613 leaq 0x2e7a2(%rip), %rdx # 0x4c665 leaq 0x2ed29(%rip), %rcx # 0x4cbf3 movl $0xf43, %esi # imm = 0xF43 jmp 0x1df3f leaq 0x2e73b(%rip), %rdi # 0x4c613 leaq 0x2e786(%rip), %rdx # 0x4c665 leaq 0x2eec6(%rip), %rcx # 0x4cdac movl $0xf44, %esi # imm = 0xF44 jmp 0x1df3f leaq 0x2e71f(%rip), %rdi # 0x4c613 leaq 0x2e76a(%rip), %rdx # 0x4c665 leaq 0x2eeb8(%rip), %rcx # 0x4cdba movl $0xf46, %esi # imm = 0xF46 jmp 0x1df3f leaq 0x2e703(%rip), %rdi # 0x4c613 leaq 0x2e74e(%rip), %rdx # 0x4c665 leaq 0x2eea4(%rip), %rcx # 0x4cdc2 movl $0xf47, %esi # imm = 0xF47 jmp 0x1df3f leaq 0x3083d(%rip), %rdi # 0x4e769 leaq 0x2e732(%rip), %rdx # 0x4c665 leaq 0x3095c(%rip), %rcx # 0x4e896 movl $0x70, %esi xorl %eax, %eax callq 0x17cd0
ggml_conv_transpose_1d: push rbp push r14 push rbx sub rsp, 20h cmp qword ptr [rdx+20h], 1 jnz loc_1DE96 mov rbx, rdx cmp qword ptr [rdx+28h], 1 jnz loc_1DE96 mov r14, rsi mov rax, [rsi+20h] cmp rax, [rbx+18h] jnz loc_1DEB5 cmp qword ptr [r14+28h], 1 jnz loc_1DED1 test r8d, r8d jnz loc_1DEED cmp r9d, 1 jnz loc_1DF09 mov ebp, ecx mov rax, [rbx+10h] dec rax movsxd rdx, ecx imul rdx, rax add rdx, [r14+10h] mov rcx, rsp mov [rcx], rdx mov rax, [r14+18h] mov [rcx+8], rax mov eax, 1 mov [rcx+10h], rax mov [rcx+18h], rax xor esi, esi mov edx, 4 xor r8d, r8d xor r9d, r9d call ggml_new_tensor_impl test rax, rax jz loc_1DF25 mov [rax+54h], ebp mov rcx, 100000000h mov [rax+58h], rcx mov dword ptr [rax+50h], 2Fh ; '/' mov [rax+98h], r14 mov [rax+0A0h], rbx add rsp, 20h pop rbx pop r14 pop rbp retn loc_1DE96: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aGgmlIsMatrixB; "ggml_is_matrix(b)" mov esi, 0F42h jmp loc_1DF3F loc_1DEB5: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aANe2BNe1; "a->ne[2] == b->ne[1]" mov esi, 0F43h jmp short loc_1DF3F loc_1DED1: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aANe31; "a->ne[3] == 1" mov esi, 0F44h jmp short loc_1DF3F loc_1DEED: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aP00; "p0 == 0" mov esi, 0F46h jmp short loc_1DF3F loc_1DF09: lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aD01; "d0 == 1" mov esi, 0F47h jmp short loc_1DF3F loc_1DF25: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aTensorNull; "tensor != NULL" mov esi, 70h ; 'p' loc_1DF3F: xor eax, eax call _ggml_abort
long long ggml_conv_transpose_1d(long long a1, _QWORD *a2, _QWORD *a3, int a4, int a5, int a6, double a7) { long long result; // rax const char *v10; // rdi const char *v11; // rcx int v12; // esi long long v13[7]; // [rsp+0h] [rbp-38h] BYREF if ( a3[4] != 1LL || a3[5] != 1LL ) { v10 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; v11 = "ggml_is_matrix(b)"; v12 = 3906; goto LABEL_15; } if ( a2[4] != a3[3] ) { v10 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; v11 = "a->ne[2] == b->ne[1]"; v12 = 3907; goto LABEL_15; } if ( a2[5] != 1LL ) { v10 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; v11 = "a->ne[3] == 1"; v12 = 3908; goto LABEL_15; } if ( a5 ) { v10 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; v11 = "p0 == 0"; v12 = 3910; goto LABEL_15; } if ( a6 != 1 ) { v10 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; v11 = "d0 == 1"; v12 = 3911; goto LABEL_15; } v13[0] = a2[2] + (a3[2] - 1LL) * a4; v13[1] = a2[3]; v13[2] = 1LL; v13[3] = 1LL; result = ggml_new_tensor_impl(a1, 0, 4u, v13, 0LL, 0LL, a7); if ( !result ) { v10 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h"; v11 = "tensor != NULL"; v12 = 112; LABEL_15: ggml_abort((_DWORD)v10, v12, (unsigned int)"GGML_ASSERT(%s) failed", (_DWORD)v11, a5, a6); } *(_DWORD *)(result + 84) = a4; *(_QWORD *)(result + 88) = 0x100000000LL; *(_DWORD *)(result + 80) = 47; *(_QWORD *)(result + 152) = a2; *(_QWORD *)(result + 160) = a3; return result; }
ggml_conv_transpose_1d: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x20 CMP qword ptr [RDX + 0x20],0x1 JNZ 0x0011de96 MOV RBX,RDX CMP qword ptr [RDX + 0x28],0x1 JNZ 0x0011de96 MOV R14,RSI MOV RAX,qword ptr [RSI + 0x20] CMP RAX,qword ptr [RBX + 0x18] JNZ 0x0011deb5 CMP qword ptr [R14 + 0x28],0x1 JNZ 0x0011ded1 TEST R8D,R8D JNZ 0x0011deed CMP R9D,0x1 JNZ 0x0011df09 MOV EBP,ECX MOV RAX,qword ptr [RBX + 0x10] DEC RAX MOVSXD RDX,ECX IMUL RDX,RAX ADD RDX,qword ptr [R14 + 0x10] MOV RCX,RSP MOV qword ptr [RCX],RDX MOV RAX,qword ptr [R14 + 0x18] MOV qword ptr [RCX + 0x8],RAX MOV EAX,0x1 MOV qword ptr [RCX + 0x10],RAX MOV qword ptr [RCX + 0x18],RAX XOR ESI,ESI MOV EDX,0x4 XOR R8D,R8D XOR R9D,R9D CALL 0x0011a57f TEST RAX,RAX JZ 0x0011df25 MOV dword ptr [RAX + 0x54],EBP MOV RCX,0x100000000 MOV qword ptr [RAX + 0x58],RCX MOV dword ptr [RAX + 0x50],0x2f MOV qword ptr [RAX + 0x98],R14 MOV qword ptr [RAX + 0xa0],RBX ADD RSP,0x20 POP RBX POP R14 POP RBP RET LAB_0011de96: LEA RDI,[0x14c613] LEA RDX,[0x14c665] LEA RCX,[0x14cd9a] MOV ESI,0xf42 JMP 0x0011df3f LAB_0011deb5: LEA RDI,[0x14c613] LEA RDX,[0x14c665] LEA RCX,[0x14cbf3] MOV ESI,0xf43 JMP 0x0011df3f LAB_0011ded1: LEA RDI,[0x14c613] LEA RDX,[0x14c665] LEA RCX,[0x14cdac] MOV ESI,0xf44 JMP 0x0011df3f LAB_0011deed: LEA RDI,[0x14c613] LEA RDX,[0x14c665] LEA RCX,[0x14cdba] MOV ESI,0xf46 JMP 0x0011df3f LAB_0011df09: LEA RDI,[0x14c613] LEA RDX,[0x14c665] LEA RCX,[0x14cdc2] MOV ESI,0xf47 JMP 0x0011df3f LAB_0011df25: LEA RDI,[0x14e769] LEA RDX,[0x14c665] LEA RCX,[0x14e896] MOV ESI,0x70 LAB_0011df3f: XOR EAX,EAX CALL 0x00117cd0
void ggml_conv_transpose_1d (int8 param_1,long param_2,long param_3,int param_4,int param_5,int param_6) { long lVar1; char *pcVar2; int8 uVar3; char *pcVar4; long local_38; int8 local_30; int8 local_28; int8 local_20; if ((*(long *)(param_3 + 0x20) == 1) && (*(long *)(param_3 + 0x28) == 1)) { if (*(long *)(param_2 + 0x20) == *(long *)(param_3 + 0x18)) { if (*(long *)(param_2 + 0x28) == 1) { if (param_5 == 0) { if (param_6 == 1) { local_38 = (long)param_4 * (*(long *)(param_3 + 0x10) + -1) + *(long *)(param_2 + 0x10); local_30 = *(int8 *)(param_2 + 0x18); local_28 = 1; local_20 = 1; lVar1 = ggml_new_tensor_impl(param_1,0,4,&local_38,0,0); if (lVar1 != 0) { *(int *)(lVar1 + 0x54) = param_4; *(int8 *)(lVar1 + 0x58) = 0x100000000; *(int4 *)(lVar1 + 0x50) = 0x2f; *(long *)(lVar1 + 0x98) = param_2; *(long *)(lVar1 + 0xa0) = param_3; return; } pcVar4 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-impl.h" ; pcVar2 = "tensor != NULL"; uVar3 = 0x70; } else { pcVar4 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; pcVar2 = "d0 == 1"; uVar3 = 0xf47; } } else { pcVar4 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; pcVar2 = "p0 == 0"; uVar3 = 0xf46; } } else { pcVar4 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c" ; pcVar2 = "a->ne[3] == 1"; uVar3 = 0xf44; } } else { pcVar4 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; pcVar2 = "a->ne[2] == b->ne[1]"; uVar3 = 0xf43; } } else { pcVar4 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c"; pcVar2 = "ggml_is_matrix(b)"; uVar3 = 0xf42; } /* WARNING: Subroutine does not return */ ggml_abort(pcVar4,uVar3,"GGML_ASSERT(%s) failed",pcVar2); }
31,176
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [9], 0>(char const (&) [9]) const
monkey531[P]llama/common/json.hpp
const_reference at(KeyType && key) const { // at only works for objects if (JSON_HEDLEY_UNLIKELY(!is_object())) { JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this)); } auto it = m_data.m_value.object->find(std::forward<KeyType>(key)); if (it == m_data.m_value.object->end()) { JSON_THROW(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not found"), this)); } return it->second; }
O2
cpp
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [9], 0>(char const (&) [9]) const: pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x48, %rsp movq %rdi, %r14 cmpb $0x1, (%rdi) jne 0x7a9dd movq %rsi, %r15 movq 0x8(%r14), %rdi callq 0x7e16c movq 0x8(%r14), %rcx cmpq 0x8(%rcx), %rax je 0x7aa3b addq $0x20, %rax addq $0x48, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq pushq $0x20 popq %rdi callq 0x23450 movq %rax, %rbx movq %r14, %rdi callq 0x42dc8 leaq 0x28(%rsp), %rdx movq %rax, (%rdx) leaq 0x39623(%rip), %rsi # 0xb4022 leaq 0x8(%rsp), %rdi callq 0x7d791 movb $0x1, %bpl leaq 0x8(%rsp), %rdx movq %rbx, %rdi movl $0x130, %esi # imm = 0x130 movq %r14, %rcx callq 0x62e2e xorl %ebp, %ebp leaq 0x8051e(%rip), %rsi # 0xfaf48 leaq -0x3b0d9(%rip), %rdx # 0x3f958 movq %rbx, %rdi callq 0x23ee0 jmp 0x7aaa5 pushq $0x20 popq %rdi callq 0x23450 movq %rax, %rbx leaq 0x28(%rsp), %rdi leaq 0x7(%rsp), %rdx movq %r15, %rsi callq 0x27370 leaq 0x395f3(%rip), %rsi # 0xb4052 leaq 0x395f2(%rip), %rcx # 0xb4058 leaq 0x8(%rsp), %rdi leaq 0x28(%rsp), %rdx callq 0x7dd9b movb $0x1, %bpl leaq 0x8(%rsp), %rdx movq %rbx, %rdi movl $0x193, %esi # imm = 0x193 movq %r14, %rcx callq 0x7e206 xorl %ebp, %ebp leaq 0x80432(%rip), %rsi # 0xfaec8 leaq -0x3b145(%rip), %rdx # 0x3f958 movq %rbx, %rdi callq 0x23ee0 movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0x241a8 jmp 0x7aaba movq %rax, %r14 movb $0x1, %bpl leaq 0x28(%rsp), %rdi jmp 0x7aacb jmp 0x7aad7 movq %rax, %r14 leaq 0x8(%rsp), %rdi callq 0x241a8 testb %bpl, %bpl jne 0x7aada jmp 0x7aae2 movq %rax, %r14 movq %rbx, %rdi callq 0x23680 movq %r14, %rdi callq 0x23f70
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_: push rbp; char push r15; int push r14; int push rbx; int sub rsp, 48h mov r14, rdi cmp byte ptr [rdi], 1 jnz short loc_7A9DD mov r15, rsi mov rdi, [r14+8] call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA9_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_ mov rcx, [r14+8] cmp rax, [rcx+8] jz short loc_7AA3B add rax, 20h ; ' ' add rsp, 48h pop rbx pop r14 pop r15 pop rbp retn loc_7A9DD: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void) lea rdx, [rsp+68h+var_40] mov [rdx], rax lea rsi, aCannotUseAtWit; "cannot use at() with " lea rdi, [rsp+68h+var_60] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&) mov bpl, 1 lea rdx, [rsp+68h+var_60] mov rdi, rbx; this mov esi, 130h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw jmp short loc_7AAA5 loc_7AA3B: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+68h+var_40] lea rdx, [rsp+68h+var_61] mov rsi, r15 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rsi, aKey; "key '" lea rcx, aNotFound; "' not found" lea rdi, [rsp+68h+var_60] lea rdx, [rsp+68h+var_40] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA6_KcS8_RA12_S9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(char const(&)[6],std::string,char const(&)[12] &&) mov bpl, 1 lea rdx, [rsp+68h+var_60] mov rdi, rbx; this mov esi, 193h; int mov rcx, r14 call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ xor ebp, ebp lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw loc_7AAA5: mov r14, rax lea rdi, [rsp+68h+var_60]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_7AABA mov r14, rax mov bpl, 1 loc_7AABA: lea rdi, [rsp+68h+var_40] jmp short loc_7AACB jmp short loc_7AAD7 mov r14, rax lea rdi, [rsp+68h+var_60]; void * loc_7AACB: call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_7AADA jmp short loc_7AAE2 loc_7AAD7: mov r14, rax loc_7AADA: mov rdi, rbx; void * call ___cxa_free_exception loc_7AAE2: mov rdi, r14 call __Unwind_Resume
long long ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_( long long a1, long long a2) { long long v2; // rax nlohmann::json_abi_v3_11_3::detail::type_error *exception; // rbx nlohmann::json_abi_v3_11_3::detail::out_of_range *v5; // rbx char v6; // [rsp+0h] [rbp-68h] int v7[6]; // [rsp+8h] [rbp-60h] BYREF char v8; // [rsp+20h] [rbp-48h] const char *v9; // [rsp+28h] [rbp-40h] BYREF int v10; // [rsp+30h] [rbp-38h] int v11; // [rsp+38h] [rbp-30h] char v12; // [rsp+40h] [rbp-28h] int v13; // [rsp+48h] [rbp-20h] int v14; // [rsp+50h] [rbp-18h] int v15; // [rsp+58h] [rbp-10h] char v16; // [rsp+60h] [rbp-8h] if ( *(_BYTE *)a1 != 1 ) { exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL); v9 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(v7, "cannot use at() with "); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( exception, 304, (long long)v7); __cxa_throw( exception, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } v2 = ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA9_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_(*(_QWORD *)(a1 + 8)); if ( v2 == *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL) ) { v5 = (nlohmann::json_abi_v3_11_3::detail::out_of_range *)__cxa_allocate_exception(0x20uLL); std::string::basic_string<std::allocator<char>>(&v9, a2); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>( v7, "key '", &v9, "' not found"); ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( v5, 403, v6, v7[0], v7[2], v7[4], v8, (int)v9, v10, v11, v12, v13, v14, v15, v16); __cxa_throw( v5, (struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range, (void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception); } return v2 + 32; }
_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x48 MOV R14,RDI CMP byte ptr [RDI],0x1 JNZ 0x0017a9dd MOV R15,RSI MOV RDI,qword ptr [R14 + 0x8] CALL 0x0017e16c MOV RCX,qword ptr [R14 + 0x8] CMP RAX,qword ptr [RCX + 0x8] JZ 0x0017aa3b ADD RAX,0x20 ADD RSP,0x48 POP RBX POP R14 POP R15 POP RBP RET LAB_0017a9dd: PUSH 0x20 POP RDI CALL 0x00123450 MOV RBX,RAX MOV RDI,R14 CALL 0x00142dc8 LEA RDX,[RSP + 0x28] MOV qword ptr [RDX],RAX LAB_0017a9f8: LEA RSI,[0x1b4022] LEA RDI,[RSP + 0x8] CALL 0x0017d791 MOV BPL,0x1 LAB_0017aa0c: LEA RDX,[RSP + 0x8] MOV RDI,RBX MOV ESI,0x130 MOV RCX,R14 CALL 0x00162e2e XOR EBP,EBP LEA RSI,[0x1faf48] LEA RDX,[0x13f958] MOV RDI,RBX CALL 0x00123ee0 LAB_0017aa3b: PUSH 0x20 POP RDI CALL 0x00123450 MOV RBX,RAX LAB_0017aa46: LEA RDI,[RSP + 0x28] LEA RDX,[RSP + 0x7] MOV RSI,R15 CALL 0x00127370 LAB_0017aa58: LEA RSI,[0x1b4052] LEA RCX,[0x1b4058] LEA RDI,[RSP + 0x8] LEA RDX,[RSP + 0x28] CALL 0x0017dd9b MOV BPL,0x1 LAB_0017aa78: LEA RDX,[RSP + 0x8] MOV RDI,RBX MOV ESI,0x193 MOV RCX,R14 CALL 0x0017e206 XOR EBP,EBP LEA RSI,[0x1faec8] LEA RDX,[0x13f958] MOV RDI,RBX CALL 0x00123ee0
long _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA9_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_ (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> *param_1,char *param_2) { long lVar1; int8 uVar2; allocator local_61; detail local_60 [32]; char *local_40 [4]; if (*param_1 != (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> )0x1) { uVar2 = __cxa_allocate_exception(0x20); local_40[0] = (char *)nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::type_name(param_1); /* try { // try from 0017a9f8 to 0017aa08 has its CatchHandler @ 0017aad7 */ nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[22],char_const*> (local_60,"cannot use at() with ",local_40); /* try { // try from 0017aa0c to 0017aa38 has its CatchHandler @ 0017aac3 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar2,0x130,local_60,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); } lVar1 = _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA9_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_ (*(int8 *)(param_1 + 8)); if (lVar1 != *(long *)(*(long *)(param_1 + 8) + 8)) { return lVar1 + 0x20; } uVar2 = __cxa_allocate_exception(0x20); /* try { // try from 0017aa46 to 0017aa57 has its CatchHandler @ 0017aac1 */ std::__cxx11::string::string<std::allocator<char>>((string *)local_40,param_2,&local_61); /* try { // try from 0017aa58 to 0017aa74 has its CatchHandler @ 0017aab4 */ nlohmann::json_abi_v3_11_3::detail:: concat<std::__cxx11::string,char_const(&)[6],std::__cxx11::string,char_const(&)[12]> (local_60,"key \'",(string *)local_40,"\' not found"); /* try { // try from 0017aa78 to 0017aaa4 has its CatchHandler @ 0017aaa5 */ _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar2,0x193,local_60,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::out_of_range::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); }
31,177
ftxui::(anonymous namespace)::Text::Render(ftxui::Screen&)
Andrewchistyakov[P]flashcards_lyc/build_O0/_deps/ftxui-src/src/ftxui/dom/text.cpp
void Render(Screen& screen) override { int x = box_.x_min; const int y = box_.y_min; if (y > box_.y_max) { return; } for (const auto& cell : Utf8ToGlyphs(text_)) { if (x > box_.x_max) { return; } if (cell == "\n") { continue; } screen.PixelAt(x, y).character = cell; ++x; } }
O0
cpp
ftxui::(anonymous namespace)::Text::Render(ftxui::Screen&): pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rcx movq %rcx, -0x70(%rbp) movl 0x4c(%rcx), %eax movl %eax, -0x14(%rbp) movl 0x54(%rcx), %eax movl %eax, -0x18(%rbp) movl -0x18(%rbp), %eax cmpl 0x58(%rcx), %eax jle 0x4a134 jmp 0x4a236 movq -0x70(%rbp), %rsi addq $0x60, %rsi leaq -0x38(%rbp), %rdi callq 0x8d850 leaq -0x38(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rdi callq 0x183e0 movq %rax, -0x40(%rbp) movq -0x20(%rbp), %rdi callq 0x195c0 movq %rax, -0x48(%rbp) leaq -0x40(%rbp), %rdi leaq -0x48(%rbp), %rsi callq 0x327d0 testb $0x1, %al jne 0x4a184 movl $0x2, -0x4c(%rbp) jmp 0x4a22d leaq -0x40(%rbp), %rdi callq 0x191f0 movq -0x70(%rbp), %rcx movq %rax, -0x58(%rbp) movl -0x14(%rbp), %eax cmpl 0x50(%rcx), %eax jle 0x4a1a9 movl $0x1, -0x4c(%rbp) jmp 0x4a22d movq -0x58(%rbp), %rdi leaq 0x46b45(%rip), %rsi # 0x90cf9 callq 0x159f0 movb %al, -0x71(%rbp) jmp 0x4a1be movb -0x71(%rbp), %al testb $0x1, %al jne 0x4a1c7 jmp 0x4a1e0 jmp 0x4a21f movq %rax, %rcx movl %edx, %eax movq %rcx, -0x60(%rbp) movl %eax, -0x64(%rbp) leaq -0x38(%rbp), %rdi callq 0x16110 jmp 0x4a23f movq -0x58(%rbp), %rax movq %rax, -0x88(%rbp) movq -0x10(%rbp), %rdi movl -0x14(%rbp), %esi movl -0x18(%rbp), %edx callq 0x882f0 movq %rax, -0x80(%rbp) jmp 0x4a200 movq -0x88(%rbp), %rsi movq -0x80(%rbp), %rdi addq $0x8, %rdi callq 0xd060 jmp 0x4a216 movl -0x14(%rbp), %eax addl $0x1, %eax movl %eax, -0x14(%rbp) leaq -0x40(%rbp), %rdi callq 0x19210 jmp 0x4a167 leaq -0x38(%rbp), %rdi callq 0x16110 addq $0x90, %rsp popq %rbp retq movq -0x60(%rbp), %rdi callq 0xda90 nopl (%rax,%rax)
_ZN5ftxui12_GLOBAL__N_14Text6RenderERNS_6ScreenE: push rbp mov rbp, rsp sub rsp, 90h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rcx, [rbp+var_8] mov [rbp+var_70], rcx mov eax, [rcx+4Ch] mov [rbp+var_14], eax mov eax, [rcx+54h] mov [rbp+var_18], eax mov eax, [rbp+var_18] cmp eax, [rcx+58h] jle short loc_4A134 jmp loc_4A236 loc_4A134: mov rsi, [rbp+var_70] add rsi, 60h ; '`' lea rdi, [rbp+var_38] call _ZN5ftxui12Utf8ToGlyphsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; ftxui::Utf8ToGlyphs(std::string const&) lea rax, [rbp+var_38] mov [rbp+var_20], rax mov rdi, [rbp+var_20] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv; std::vector<std::string>::begin(void) mov [rbp+var_40], rax mov rdi, [rbp+var_20] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv; std::vector<std::string>::end(void) mov [rbp+var_48], rax loc_4A167: lea rdi, [rbp+var_40] lea rsi, [rbp+var_48] call _ZN9__gnu_cxxneIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_; __gnu_cxx::operator!=<std::string *,std::vector<std::string>>(__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>> const&,__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>> const&) test al, 1 jnz short loc_4A184 mov [rbp+var_4C], 2 jmp loc_4A22D loc_4A184: lea rdi, [rbp+var_40] call _ZNK9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEdeEv; __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator*(void) mov rcx, [rbp+var_70] mov [rbp+var_58], rax mov eax, [rbp+var_14] cmp eax, [rcx+50h] jle short loc_4A1A9 mov [rbp+var_4C], 1 jmp loc_4A22D loc_4A1A9: mov rdi, [rbp+var_58] lea rsi, asc_90CF8+1; "\n" call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) mov [rbp+var_71], al jmp short $+2 loc_4A1BE: mov al, [rbp+var_71] test al, 1 jnz short loc_4A1C7 jmp short loc_4A1E0 loc_4A1C7: jmp short loc_4A21F mov rcx, rax mov eax, edx mov [rbp+var_60], rcx mov [rbp+var_64], eax lea rdi, [rbp+var_38] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() jmp short loc_4A23F loc_4A1E0: mov rax, [rbp+var_58] mov [rbp+var_88], rax mov rdi, [rbp+var_10]; this mov esi, [rbp+var_14]; int mov edx, [rbp+var_18]; int call _ZN5ftxui6Screen7PixelAtEii; ftxui::Screen::PixelAt(int,int) mov [rbp+var_80], rax jmp short $+2 loc_4A200: mov rsi, [rbp+var_88] mov rdi, [rbp+var_80] add rdi, 8 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&) jmp short $+2 loc_4A216: mov eax, [rbp+var_14] add eax, 1 mov [rbp+var_14], eax loc_4A21F: lea rdi, [rbp+var_40] call _ZN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEppEv; __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator++(void) jmp loc_4A167 loc_4A22D: lea rdi, [rbp+var_38] call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() loc_4A236: add rsp, 90h pop rbp retn loc_4A23F: mov rdi, [rbp+var_60] call __Unwind_Resume
long long ftxui::`anonymous namespace'::Text::Render( ftxui::_anonymous_namespace_::Text *this, ftxui::Screen *a2) { long long result; // rax long long v3; // rax long long v4; // [rsp+10h] [rbp-80h] long long v5; // [rsp+38h] [rbp-58h] long long v6; // [rsp+48h] [rbp-48h] BYREF long long v7; // [rsp+50h] [rbp-40h] BYREF long long v8[3]; // [rsp+58h] [rbp-38h] BYREF long long *v9; // [rsp+70h] [rbp-20h] int v10; // [rsp+78h] [rbp-18h] int v11; // [rsp+7Ch] [rbp-14h] ftxui::Screen *v12; // [rsp+80h] [rbp-10h] ftxui::_anonymous_namespace_::Text *v13; // [rsp+88h] [rbp-8h] v13 = this; v12 = a2; v11 = *((_DWORD *)this + 19); v10 = *((_DWORD *)this + 21); result = (unsigned int)v10; if ( v10 <= *((_DWORD *)this + 22) ) { ftxui::Utf8ToGlyphs(v8, (char *)this + 96); v9 = v8; v7 = std::vector<std::string>::begin((long long)v8); v6 = std::vector<std::string>::end((long long)v9); while ( __gnu_cxx::operator!=<std::string *,std::vector<std::string>>((long long)&v7, (long long)&v6) ) { v3 = __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator*((long long)&v7); v5 = v3; if ( v11 > *((_DWORD *)this + 20) ) break; if ( !std::operator==<char>(v3, (long long)"\n") ) { v4 = ftxui::Screen::PixelAt(v12, v11, v10); std::string::operator=(v4 + 8, v5); ++v11; } __gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>::operator++(&v7); } return std::vector<std::string>::~vector(v8); } return result; }
Render: PUSH RBP MOV RBP,RSP SUB RSP,0x90 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RCX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x70],RCX MOV EAX,dword ptr [RCX + 0x4c] MOV dword ptr [RBP + -0x14],EAX MOV EAX,dword ptr [RCX + 0x54] MOV dword ptr [RBP + -0x18],EAX MOV EAX,dword ptr [RBP + -0x18] CMP EAX,dword ptr [RCX + 0x58] JLE 0x0014a134 JMP 0x0014a236 LAB_0014a134: MOV RSI,qword ptr [RBP + -0x70] ADD RSI,0x60 LEA RDI,[RBP + -0x38] CALL 0x0018d850 LEA RAX,[RBP + -0x38] MOV qword ptr [RBP + -0x20],RAX MOV RDI,qword ptr [RBP + -0x20] CALL 0x001183e0 MOV qword ptr [RBP + -0x40],RAX MOV RDI,qword ptr [RBP + -0x20] CALL 0x001195c0 MOV qword ptr [RBP + -0x48],RAX LAB_0014a167: LEA RDI,[RBP + -0x40] LEA RSI,[RBP + -0x48] CALL 0x001327d0 TEST AL,0x1 JNZ 0x0014a184 MOV dword ptr [RBP + -0x4c],0x2 JMP 0x0014a22d LAB_0014a184: LEA RDI,[RBP + -0x40] CALL 0x001191f0 MOV RCX,qword ptr [RBP + -0x70] MOV qword ptr [RBP + -0x58],RAX MOV EAX,dword ptr [RBP + -0x14] CMP EAX,dword ptr [RCX + 0x50] JLE 0x0014a1a9 MOV dword ptr [RBP + -0x4c],0x1 JMP 0x0014a22d LAB_0014a1a9: MOV RDI,qword ptr [RBP + -0x58] LAB_0014a1ad: LEA RSI,[0x190cf9] CALL 0x001159f0 MOV byte ptr [RBP + -0x71],AL JMP 0x0014a1be LAB_0014a1be: MOV AL,byte ptr [RBP + -0x71] TEST AL,0x1 JNZ 0x0014a1c7 JMP 0x0014a1e0 LAB_0014a1c7: JMP 0x0014a21f LAB_0014a1e0: MOV RAX,qword ptr [RBP + -0x58] MOV qword ptr [RBP + -0x88],RAX MOV RDI,qword ptr [RBP + -0x10] MOV ESI,dword ptr [RBP + -0x14] MOV EDX,dword ptr [RBP + -0x18] CALL 0x001882f0 MOV qword ptr [RBP + -0x80],RAX JMP 0x0014a200 LAB_0014a200: MOV RSI,qword ptr [RBP + -0x88] MOV RDI,qword ptr [RBP + -0x80] ADD RDI,0x8 CALL 0x0010d060 LAB_0014a214: JMP 0x0014a216 LAB_0014a216: MOV EAX,dword ptr [RBP + -0x14] ADD EAX,0x1 MOV dword ptr [RBP + -0x14],EAX LAB_0014a21f: LEA RDI,[RBP + -0x40] CALL 0x00119210 JMP 0x0014a167 LAB_0014a22d: LEA RDI,[RBP + -0x38] CALL 0x00116110 LAB_0014a236: ADD RSP,0x90 POP RBP RET
/* ftxui::(anonymous namespace)::Text::Render(ftxui::Screen&) */ void __thiscall ftxui::(anonymous_namespace)::Text::Render(Text *this,Screen *param_1) { bool bVar1; string *psVar2; long lVar3; int8 local_50; int8 local_48; ftxui local_40 [24]; vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *local_28; int local_20; int local_1c; Screen *local_18; Text *local_10; local_1c = *(int *)(this + 0x4c); local_20 = *(int *)(this + 0x54); if (local_20 <= *(int *)(this + 0x58)) { local_18 = param_1; local_10 = this; Utf8ToGlyphs(local_40,(string *)(this + 0x60)); local_28 = (vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_40; local_48 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::begin (local_28); local_50 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::end(local_28) ; while ((bVar1 = __gnu_cxx::operator!= ((__normal_iterator *)&local_48,(__normal_iterator *)&local_50), bVar1 && (psVar2 = (string *) __gnu_cxx:: __normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> ::operator*((__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> *)&local_48), local_1c <= *(int *)(this + 0x50)))) { /* try { // try from 0014a1ad to 0014a213 has its CatchHandler @ 0014a1c9 */ bVar1 = std::operator==(psVar2,"\n"); if (!bVar1) { lVar3 = Screen::PixelAt(local_18,local_1c,local_20); std::__cxx11::string::operator=((string *)(lVar3 + 8),psVar2); local_1c = local_1c + 1; } __gnu_cxx:: __normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> ::operator++((__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>> *)&local_48); } std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)local_40); } return; }
31,178
thr_unlock
eloqsql/mysys/thr_lock.c
void thr_unlock(THR_LOCK_DATA *data, uint unlock_flags) { THR_LOCK *lock=data->lock; enum thr_lock_type lock_type=data->type; DBUG_ENTER("thr_unlock"); DBUG_PRINT("lock",("data: %p thread: %lu lock: %p", data, (ulong) data->owner->thread_id, lock)); mysql_mutex_lock(&lock->mutex); check_locks(lock,"start of release lock", lock_type, 0); if (((*data->prev)=data->next)) /* remove from lock-list */ data->next->prev= data->prev; else if (lock_type <= TL_READ_NO_INSERT) lock->read.last=data->prev; else if (lock_type == TL_WRITE_DELAYED && data->cond) { /* This only happens in extreme circumstances when a write delayed lock that is waiting for a lock */ lock->write_wait.last=data->prev; /* Put it on wait queue */ } else lock->write.last=data->prev; if (unlock_flags & THR_UNLOCK_UPDATE_STATUS) { /* External lock was not called; Update or restore status */ if (lock_type >= TL_WRITE_CONCURRENT_INSERT) { if (lock->update_status) (*lock->update_status)(data->status_param); } else { if (lock->restore_status) (*lock->restore_status)(data->status_param); } } if (lock_type == TL_READ_NO_INSERT) lock->read_no_write_count--; data->type=TL_UNLOCK; /* Mark unlocked */ wake_up_waiters(lock); mysql_mutex_unlock(&lock->mutex); DBUG_VOID_RETURN; }
O0
c
thr_unlock: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq -0x8(%rbp), %rax movq 0x18(%rax), %rax movq %rax, -0x18(%rbp) movq -0x8(%rbp), %rax movl 0x40(%rax), %eax movl %eax, -0x1c(%rbp) jmp 0xf8ef7 movq -0x18(%rbp), %rdi addq $0x18, %rdi leaq 0x5ca69(%rip), %rsi # 0x15596f movl $0x3c0, %edx # imm = 0x3C0 callq 0xf8c80 movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movq -0x8(%rbp), %rcx movq 0x10(%rcx), %rcx movq %rax, (%rcx) cmpq $0x0, %rax je 0xf8f3f movq -0x8(%rbp), %rax movq 0x10(%rax), %rcx movq -0x8(%rbp), %rax movq 0x8(%rax), %rax movq %rcx, 0x10(%rax) jmp 0xf8f94 cmpl $0x5, -0x1c(%rbp) jg 0xf8f57 movq -0x8(%rbp), %rax movq 0x10(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x78(%rax) jmp 0xf8f92 cmpl $0x9, -0x1c(%rbp) jne 0xf8f7d movq -0x8(%rbp), %rax cmpq $0x0, 0x20(%rax) je 0xf8f7d movq -0x8(%rbp), %rax movq 0x10(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x88(%rax) jmp 0xf8f90 movq -0x8(%rbp), %rax movq 0x10(%rax), %rcx movq -0x18(%rbp), %rax movq %rcx, 0x98(%rax) jmp 0xf8f92 jmp 0xf8f94 movl -0xc(%rbp), %eax andl $0x1, %eax cmpl $0x0, %eax je 0xf8ff1 cmpl $0x8, -0x1c(%rbp) jl 0xf8fca movq -0x18(%rbp), %rax cmpq $0x0, 0xc0(%rax) je 0xf8fc8 movq -0x18(%rbp), %rax movq 0xc0(%rax), %rax movq -0x8(%rbp), %rcx movq 0x28(%rcx), %rdi callq *%rax jmp 0xf8fef movq -0x18(%rbp), %rax cmpq $0x0, 0xc8(%rax) je 0xf8fed movq -0x18(%rbp), %rax movq 0xc8(%rax), %rax movq -0x8(%rbp), %rcx movq 0x28(%rcx), %rdi callq *%rax jmp 0xf8fef jmp 0xf8ff1 cmpl $0x5, -0x1c(%rbp) jne 0xf900a movq -0x18(%rbp), %rax movl 0xa8(%rax), %ecx addl $-0x1, %ecx movl %ecx, 0xa8(%rax) movq -0x8(%rbp), %rax movl $0x0, 0x40(%rax) movq -0x18(%rbp), %rdi callq 0xf9040 movq -0x18(%rbp), %rdi addq $0x18, %rdi callq 0xf8cf0 jmp 0xf902d addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
thr_unlock: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov rax, [rbp+var_8] mov rax, [rax+18h] mov [rbp+var_18], rax mov rax, [rbp+var_8] mov eax, [rax+40h] mov [rbp+var_1C], eax jmp short $+2 loc_F8EF7: mov rdi, [rbp+var_18] add rdi, 18h lea rsi, aWorkspaceLlm4b_39; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 3C0h call inline_mysql_mutex_lock_27 mov rax, [rbp+var_8] mov rax, [rax+8] mov rcx, [rbp+var_8] mov rcx, [rcx+10h] mov [rcx], rax cmp rax, 0 jz short loc_F8F3F mov rax, [rbp+var_8] mov rcx, [rax+10h] mov rax, [rbp+var_8] mov rax, [rax+8] mov [rax+10h], rcx jmp short loc_F8F94 loc_F8F3F: cmp [rbp+var_1C], 5 jg short loc_F8F57 mov rax, [rbp+var_8] mov rcx, [rax+10h] mov rax, [rbp+var_18] mov [rax+78h], rcx jmp short loc_F8F92 loc_F8F57: cmp [rbp+var_1C], 9 jnz short loc_F8F7D mov rax, [rbp+var_8] cmp qword ptr [rax+20h], 0 jz short loc_F8F7D mov rax, [rbp+var_8] mov rcx, [rax+10h] mov rax, [rbp+var_18] mov [rax+88h], rcx jmp short loc_F8F90 loc_F8F7D: mov rax, [rbp+var_8] mov rcx, [rax+10h] mov rax, [rbp+var_18] mov [rax+98h], rcx loc_F8F90: jmp short $+2 loc_F8F92: jmp short $+2 loc_F8F94: mov eax, [rbp+var_C] and eax, 1 cmp eax, 0 jz short loc_F8FF1 cmp [rbp+var_1C], 8 jl short loc_F8FCA mov rax, [rbp+var_18] cmp qword ptr [rax+0C0h], 0 jz short loc_F8FC8 mov rax, [rbp+var_18] mov rax, [rax+0C0h] mov rcx, [rbp+var_8] mov rdi, [rcx+28h] call rax loc_F8FC8: jmp short loc_F8FEF loc_F8FCA: mov rax, [rbp+var_18] cmp qword ptr [rax+0C8h], 0 jz short loc_F8FED mov rax, [rbp+var_18] mov rax, [rax+0C8h] mov rcx, [rbp+var_8] mov rdi, [rcx+28h] call rax loc_F8FED: jmp short $+2 loc_F8FEF: jmp short $+2 loc_F8FF1: cmp [rbp+var_1C], 5 jnz short loc_F900A mov rax, [rbp+var_18] mov ecx, [rax+0A8h] add ecx, 0FFFFFFFFh mov [rax+0A8h], ecx loc_F900A: mov rax, [rbp+var_8] mov dword ptr [rax+40h], 0 mov rdi, [rbp+var_18] call wake_up_waiters mov rdi, [rbp+var_18] add rdi, 18h call inline_mysql_mutex_unlock_28 jmp short $+2 loc_F902D: add rsp, 20h pop rbp retn
long long thr_unlock(long long a1, char a2) { long long v2; // rax int v4; // [rsp+4h] [rbp-1Ch] long long v5; // [rsp+8h] [rbp-18h] v5 = *(_QWORD *)(a1 + 24); v4 = *(_DWORD *)(a1 + 64); inline_mysql_mutex_lock_27(v5 + 24, (long long)"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c", 0x3C0u); v2 = *(_QWORD *)(a1 + 8); **(_QWORD **)(a1 + 16) = v2; if ( v2 ) { *(_QWORD *)(*(_QWORD *)(a1 + 8) + 16LL) = *(_QWORD *)(a1 + 16); } else if ( v4 > 5 ) { if ( v4 == 9 && *(_QWORD *)(a1 + 32) ) *(_QWORD *)(v5 + 136) = *(_QWORD *)(a1 + 16); else *(_QWORD *)(v5 + 152) = *(_QWORD *)(a1 + 16); } else { *(_QWORD *)(v5 + 120) = *(_QWORD *)(a1 + 16); } if ( (a2 & 1) != 0 ) { if ( v4 < 8 ) { if ( *(_QWORD *)(v5 + 200) ) (*(void ( **)(_QWORD))(v5 + 200))(*(_QWORD *)(a1 + 40)); } else if ( *(_QWORD *)(v5 + 192) ) { (*(void ( **)(_QWORD))(v5 + 192))(*(_QWORD *)(a1 + 40)); } } if ( v4 == 5 ) --*(_DWORD *)(v5 + 168); *(_DWORD *)(a1 + 64) = 0; wake_up_waiters(v5); return inline_mysql_mutex_unlock_28(v5 + 24); }
thr_unlock: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0x18],RAX MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x40] MOV dword ptr [RBP + -0x1c],EAX JMP 0x001f8ef7 LAB_001f8ef7: MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x18 LEA RSI,[0x25596f] MOV EDX,0x3c0 CALL 0x001f8c80 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RCX + 0x10] MOV qword ptr [RCX],RAX CMP RAX,0x0 JZ 0x001f8f3f MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RAX + 0x10],RCX JMP 0x001f8f94 LAB_001f8f3f: CMP dword ptr [RBP + -0x1c],0x5 JG 0x001f8f57 MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x78],RCX JMP 0x001f8f92 LAB_001f8f57: CMP dword ptr [RBP + -0x1c],0x9 JNZ 0x001f8f7d MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x20],0x0 JZ 0x001f8f7d MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x88],RCX JMP 0x001f8f90 LAB_001f8f7d: MOV RAX,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x98],RCX LAB_001f8f90: JMP 0x001f8f92 LAB_001f8f92: JMP 0x001f8f94 LAB_001f8f94: MOV EAX,dword ptr [RBP + -0xc] AND EAX,0x1 CMP EAX,0x0 JZ 0x001f8ff1 CMP dword ptr [RBP + -0x1c],0x8 JL 0x001f8fca MOV RAX,qword ptr [RBP + -0x18] CMP qword ptr [RAX + 0xc0],0x0 JZ 0x001f8fc8 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0xc0] MOV RCX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RCX + 0x28] CALL RAX LAB_001f8fc8: JMP 0x001f8fef LAB_001f8fca: MOV RAX,qword ptr [RBP + -0x18] CMP qword ptr [RAX + 0xc8],0x0 JZ 0x001f8fed MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0xc8] MOV RCX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RCX + 0x28] CALL RAX LAB_001f8fed: JMP 0x001f8fef LAB_001f8fef: JMP 0x001f8ff1 LAB_001f8ff1: CMP dword ptr [RBP + -0x1c],0x5 JNZ 0x001f900a MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RAX + 0xa8] ADD ECX,-0x1 MOV dword ptr [RAX + 0xa8],ECX LAB_001f900a: MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x40],0x0 MOV RDI,qword ptr [RBP + -0x18] CALL 0x001f9040 MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x18 CALL 0x001f8cf0 JMP 0x001f902d LAB_001f902d: ADD RSP,0x20 POP RBP RET
void thr_unlock(long param_1,uint param_2) { int iVar1; long lVar2; long lVar3; lVar2 = *(long *)(param_1 + 0x18); iVar1 = *(int *)(param_1 + 0x40); inline_mysql_mutex_lock (lVar2 + 0x18,"/workspace/llm4binary/github2025/eloqsql/mysys/thr_lock.c",0x3c0); lVar3 = *(long *)(param_1 + 8); **(long **)(param_1 + 0x10) = lVar3; if (lVar3 == 0) { if (iVar1 < 6) { *(int8 *)(lVar2 + 0x78) = *(int8 *)(param_1 + 0x10); } else if ((iVar1 == 9) && (*(long *)(param_1 + 0x20) != 0)) { *(int8 *)(lVar2 + 0x88) = *(int8 *)(param_1 + 0x10); } else { *(int8 *)(lVar2 + 0x98) = *(int8 *)(param_1 + 0x10); } } else { *(int8 *)(*(long *)(param_1 + 8) + 0x10) = *(int8 *)(param_1 + 0x10); } if ((param_2 & 1) != 0) { if (iVar1 < 8) { if (*(long *)(lVar2 + 200) != 0) { (**(code **)(lVar2 + 200))(*(int8 *)(param_1 + 0x28)); } } else if (*(long *)(lVar2 + 0xc0) != 0) { (**(code **)(lVar2 + 0xc0))(*(int8 *)(param_1 + 0x28)); } } if (iVar1 == 5) { *(int *)(lVar2 + 0xa8) = *(int *)(lVar2 + 0xa8) + -1; } *(int4 *)(param_1 + 0x40) = 0; wake_up_waiters(lVar2); inline_mysql_mutex_unlock(lVar2 + 0x18); return; }
31,179
my_charpos_utf16
eloqsql/strings/ctype-ucs2.c
static size_t my_charpos_utf16(CHARSET_INFO *cs, const char *b, const char *e, size_t pos) { const char *b0= b; uint charlen; for ( ; pos; b+= charlen, pos--) { if (!(charlen= my_ismbchar(cs, b, e))) return (e + 2 - b0); /* Error, return pos outside the string */ } return (size_t) (pos ? (e + 2 - b0) : (b - b0)); }
O3
c
my_charpos_utf16: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx movq %rsi, %r12 testq %rcx, %rcx je 0xc2a4d movq %rcx, %r15 movq %rdx, %r14 movq %rdi, %r13 movq %rbx, %r12 movq 0xb8(%r13), %rax movq %r13, %rdi movq %r12, %rsi movq %r14, %rdx callq *0xc0(%rax) cmpl $0x1, %eax jle 0xc2a46 movl %eax, %eax addq %rax, %r12 decq %r15 jne 0xc2a1f jmp 0xc2a4d addq $0x2, %r14 movq %r14, %r12 subq %rbx, %r12 movq %r12, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_charpos_utf16: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rsi mov r12, rsi test rcx, rcx jz short loc_C2A4D mov r15, rcx mov r14, rdx mov r13, rdi mov r12, rbx loc_C2A1F: mov rax, [r13+0B8h] mov rdi, r13 mov rsi, r12 mov rdx, r14 call qword ptr [rax+0C0h] cmp eax, 1 jle short loc_C2A46 mov eax, eax add r12, rax dec r15 jnz short loc_C2A1F jmp short loc_C2A4D loc_C2A46: add r14, 2 mov r12, r14 loc_C2A4D: sub r12, rbx mov rax, r12 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_charpos_utf16(long long a1, long long a2, long long a3, long long a4) { long long v4; // r12 long long v5; // r15 int v7; // eax v4 = a2; if ( a4 ) { v5 = a4; v4 = a2; while ( 1 ) { v7 = (*(long long ( **)(long long, long long, long long))(*(_QWORD *)(a1 + 184) + 192LL))(a1, v4, a3); if ( v7 <= 1 ) break; v4 += (unsigned int)v7; if ( !--v5 ) return v4 - a2; } v4 = a3 + 2; } return v4 - a2; }
my_charpos_utf16: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI MOV R12,RSI TEST RCX,RCX JZ 0x001c2a4d MOV R15,RCX MOV R14,RDX MOV R13,RDI MOV R12,RBX LAB_001c2a1f: MOV RAX,qword ptr [R13 + 0xb8] MOV RDI,R13 MOV RSI,R12 MOV RDX,R14 CALL qword ptr [RAX + 0xc0] CMP EAX,0x1 JLE 0x001c2a46 MOV EAX,EAX ADD R12,RAX DEC R15 JNZ 0x001c2a1f JMP 0x001c2a4d LAB_001c2a46: ADD R14,0x2 MOV R12,R14 LAB_001c2a4d: SUB R12,RBX MOV RAX,R12 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
long my_charpos_utf16(long param_1,long param_2,long param_3,long param_4) { uint uVar1; long lVar2; lVar2 = param_2; if (param_4 != 0) { do { uVar1 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,lVar2,param_3); if ((int)uVar1 < 2) { lVar2 = param_3 + 2; break; } lVar2 = lVar2 + (ulong)uVar1; param_4 = param_4 + -1; } while (param_4 != 0); } return lVar2 - param_2; }
31,180
my_wc_mb_euc_kr
eloqsql/strings/ctype-euc_kr.c
static int my_wc_mb_euc_kr(CHARSET_INFO *cs __attribute__((unused)), my_wc_t wc, uchar *s, uchar *e) { int code; if (s >= e) return MY_CS_TOOSMALL; if ((uint) wc < 0x80) { s[0]= (uchar) wc; return 1; } if (!(code=func_uni_ksc5601_onechar(wc))) return MY_CS_ILUNI; if (s+2>e) return MY_CS_TOOSMALL2; s[0]=code>>8; s[1]=code&0xFF; return 2; }
O0
c
my_wc_mb_euc_kr: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x20(%rbp), %rax cmpq -0x28(%rbp), %rax jb 0x3a21b movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B jmp 0x3a294 movq -0x18(%rbp), %rax cmpl $0x80, %eax jae 0x3a23b movq -0x18(%rbp), %rax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, (%rax) movl $0x1, -0x4(%rbp) jmp 0x3a294 movq -0x18(%rbp), %rax movl %eax, %edi callq 0x3a5c0 movl %eax, -0x2c(%rbp) cmpl $0x0, %eax jne 0x3a257 movl $0x0, -0x4(%rbp) jmp 0x3a294 movq -0x20(%rbp), %rax addq $0x2, %rax cmpq -0x28(%rbp), %rax jbe 0x3a26e movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A jmp 0x3a294 movl -0x2c(%rbp), %eax sarl $0x8, %eax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, (%rax) movl -0x2c(%rbp), %eax andl $0xff, %eax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, 0x1(%rax) movl $0x2, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopl (%rax)
my_wc_mb_euc_kr: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rax, [rbp+var_20] cmp rax, [rbp+var_28] jb short loc_3A21B mov [rbp+var_4], 0FFFFFF9Bh jmp short loc_3A294 loc_3A21B: mov rax, [rbp+var_18] cmp eax, 80h jnb short loc_3A23B mov rax, [rbp+var_18] mov cl, al mov rax, [rbp+var_20] mov [rax], cl mov [rbp+var_4], 1 jmp short loc_3A294 loc_3A23B: mov rax, [rbp+var_18] mov edi, eax call func_uni_ksc5601_onechar mov [rbp+var_2C], eax cmp eax, 0 jnz short loc_3A257 mov [rbp+var_4], 0 jmp short loc_3A294 loc_3A257: mov rax, [rbp+var_20] add rax, 2 cmp rax, [rbp+var_28] jbe short loc_3A26E mov [rbp+var_4], 0FFFFFF9Ah jmp short loc_3A294 loc_3A26E: mov eax, [rbp+var_2C] sar eax, 8 mov cl, al mov rax, [rbp+var_20] mov [rax], cl mov eax, [rbp+var_2C] and eax, 0FFh mov cl, al mov rax, [rbp+var_20] mov [rax+1], cl mov [rbp+var_4], 2 loc_3A294: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
long long my_wc_mb_euc_kr(long long a1, unsigned int a2, _BYTE *a3, unsigned long long a4) { int v5; // [rsp+4h] [rbp-2Ch] if ( (unsigned long long)a3 < a4 ) { if ( a2 >= 0x80 ) { v5 = func_uni_ksc5601_onechar(a2); if ( v5 ) { if ( (unsigned long long)(a3 + 2) <= a4 ) { *a3 = BYTE1(v5); a3[1] = v5; return 2; } else { return (unsigned int)-102; } } else { return 0; } } else { *a3 = a2; return 1; } } else { return (unsigned int)-101; } }
my_wc_mb_euc_kr: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x28] JC 0x0013a21b MOV dword ptr [RBP + -0x4],0xffffff9b JMP 0x0013a294 LAB_0013a21b: MOV RAX,qword ptr [RBP + -0x18] CMP EAX,0x80 JNC 0x0013a23b MOV RAX,qword ptr [RBP + -0x18] MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX],CL MOV dword ptr [RBP + -0x4],0x1 JMP 0x0013a294 LAB_0013a23b: MOV RAX,qword ptr [RBP + -0x18] MOV EDI,EAX CALL 0x0013a5c0 MOV dword ptr [RBP + -0x2c],EAX CMP EAX,0x0 JNZ 0x0013a257 MOV dword ptr [RBP + -0x4],0x0 JMP 0x0013a294 LAB_0013a257: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x2 CMP RAX,qword ptr [RBP + -0x28] JBE 0x0013a26e MOV dword ptr [RBP + -0x4],0xffffff9a JMP 0x0013a294 LAB_0013a26e: MOV EAX,dword ptr [RBP + -0x2c] SAR EAX,0x8 MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX],CL MOV EAX,dword ptr [RBP + -0x2c] AND EAX,0xff MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x1],CL MOV dword ptr [RBP + -0x4],0x2 LAB_0013a294: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int4 my_wc_mb_euc_kr(int8 param_1,uint param_2,int1 *param_3,int1 *param_4) { int iVar1; int4 local_c; if (param_3 < param_4) { if (param_2 < 0x80) { *param_3 = (char)param_2; local_c = 1; } else { iVar1 = func_uni_ksc5601_onechar(param_2); if (iVar1 == 0) { local_c = 0; } else if (param_4 < param_3 + 2) { local_c = 0xffffff9a; } else { *param_3 = (char)((uint)iVar1 >> 8); param_3[1] = (char)iVar1; local_c = 2; } } } else { local_c = 0xffffff9b; } return local_c; }
31,181
void* moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::aligned_malloc<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::ExplicitProducer>(unsigned long)
angrymouse[P]emittra/include/concurrentqueue.h
static inline void* aligned_malloc(size_t size) { MOODYCAMEL_CONSTEXPR_IF (std::alignment_of<TAlign>::value <= std::alignment_of<details::max_align_t>::value) return (Traits::malloc)(size); else { size_t alignment = std::alignment_of<TAlign>::value; void* raw = (Traits::malloc)(size + alignment - 1 + sizeof(void*)); if (!raw) return nullptr; char* ptr = details::align_for<TAlign>(reinterpret_cast<char*>(raw) + sizeof(void*)); *(reinterpret_cast<void**>(ptr) - 1) = raw; return ptr; }
O0
c
void* moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::aligned_malloc<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::ExplicitProducer>(unsigned long): pushq %rax movq %rdi, (%rsp) movq (%rsp), %rdi callq 0x121e0 popq %rcx retq
_ZN10moodycamel15ConcurrentQueueIN7emittra7Emittra11QueuedEventENS_28ConcurrentQueueDefaultTraitsEE14aligned_mallocINS5_16ImplicitProducerEEEPvm: push rax mov [rsp+8+var_8], rdi mov rdi, [rsp+8+var_8]; this call _ZN10moodycamel28ConcurrentQueueDefaultTraits6mallocEm; moodycamel::ConcurrentQueueDefaultTraits::malloc(ulong) pop rcx retn
long long moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::aligned_malloc<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer>( moodycamel::ConcurrentQueueDefaultTraits *a1) { return moodycamel::ConcurrentQueueDefaultTraits::malloc(a1); }
aligned_malloc<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer>: PUSH RAX MOV qword ptr [RSP],RDI MOV RDI,qword ptr [RSP] CALL 0x001121e0 POP RCX RET
/* void* moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::aligned_malloc<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent, moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer>(unsigned long) */ void * moodycamel:: ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>:: aligned_malloc<moodycamel::ConcurrentQueue<emittra::Emittra::QueuedEvent,moodycamel::ConcurrentQueueDefaultTraits>::ImplicitProducer> (ulong param_1) { void *pvVar1; pvVar1 = (void *)ConcurrentQueueDefaultTraits::malloc(param_1); return pvVar1; }
31,182
nglog::LogDestination::MaybeLogToEmail(nglog::LogSeverity, char const*, unsigned long)
ng-log[P]ng-log/src/logging.cc
inline void LogDestination::MaybeLogToEmail(LogSeverity severity, const char* message, size_t len) { if (severity >= email_logging_severity_ || severity >= FLAGS_logemaillevel) { string to(FLAGS_alsologtoemail); if (!addresses_.empty()) { if (!to.empty()) { to += ","; } to += addresses_; } const string subject(string("[LOG] ") + LogSeverityNames[severity] + ": " + tools::ProgramInvocationShortName()); string body(hostname()); body += "\n\n"; body.append(message, len); // should NOT use SendEmail(). The caller of this function holds the // log_mutex and SendEmail() calls LOG/VLOG which will block trying to // acquire the log_mutex object. Use SendEmailInternal() and set // use_logging to false. SendEmailInternal(to.c_str(), subject.c_str(), body.c_str(), false); } }
O3
cpp
nglog::LogDestination::MaybeLogToEmail(nglog::LogSeverity, char const*, unsigned long): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xa8, %rsp movq %rdx, %rbx movq %rsi, %r14 movl %edi, %ebp cmpl %edi, 0x1fdcf(%rip) # 0x31580 jbe 0x117c2 leaq 0x2031e(%rip), %rax # 0x31ad8 cmpl %ebp, (%rax) jg 0x11a4c leaq 0x1eda7(%rip), %rax # 0x30570 movq (%rax), %rax leaq 0x38(%rsp), %rcx movq %rcx, -0x10(%rcx) movq (%rax), %rsi movq 0x8(%rax), %rdx addq %rsi, %rdx leaq 0x28(%rsp), %rdi callq 0x9922 movq 0x20418(%rip), %rdx # 0x31c08 testq %rdx, %rdx je 0x11826 cmpq $0x0, 0x30(%rsp) je 0x11815 leaq 0x1263c(%rip), %rsi # 0x23e40 leaq 0x28(%rsp), %rdi callq 0x7a40 movq 0x203f3(%rip), %rdx # 0x31c08 movq 0x203e4(%rip), %rsi # 0x31c00 leaq 0x28(%rsp), %rdi callq 0x7140 leaq 0x98(%rsp), %r12 movq %r12, -0x10(%r12) leaq 0x12608(%rip), %rsi # 0x23e42 leaq 0x12607(%rip), %rdx # 0x23e48 leaq 0x88(%rsp), %rdi callq 0xa4b6 movl %ebp, %eax leaq 0x1ed59(%rip), %rcx # 0x305b0 movq (%rcx,%rax,8), %rsi leaq 0x88(%rsp), %rdi callq 0x7a40 leaq 0x78(%rsp), %r15 movq %r15, -0x10(%r15) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x1188f movq %rdx, 0x68(%rsp) movq (%rcx), %rdx movq %rdx, 0x78(%rsp) jmp 0x11896 movups (%rcx), %xmm0 movups %xmm0, (%r15) movq 0x8(%rax), %rdx leaq 0x68(%rsp), %rdi movq %rdx, 0x8(%rdi) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x1243b(%rip), %rsi # 0x23cf4 callq 0x7a40 leaq 0x18(%rsp), %r13 movq %r13, -0x10(%r13) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x118e5 movq %rdx, 0x8(%rsp) movq (%rcx), %rdx movq %rdx, 0x18(%rsp) jmp 0x118ed movups (%rcx), %xmm0 movups %xmm0, (%r13) movq 0x8(%rax), %rdx movq %rdx, 0x10(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) callq 0x21fa7 leaq 0x8(%rsp), %rdi movq %rax, %rsi callq 0x7a40 leaq 0x58(%rsp), %rbp movq %rbp, -0x10(%rbp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x1193e movq %rdx, 0x48(%rsp) movq (%rcx), %rdx movq %rdx, 0x58(%rsp) jmp 0x11945 movups (%rcx), %xmm0 movups %xmm0, (%rbp) movq 0x8(%rax), %rdx movq %rdx, 0x50(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq 0x8(%rsp), %rdi cmpq %r13, %rdi je 0x11974 movq 0x18(%rsp), %rsi incq %rsi callq 0x8efc movq 0x68(%rsp), %rdi cmpq %r15, %rdi je 0x1198b movq 0x78(%rsp), %rsi incq %rsi callq 0x8efc movq 0x88(%rsp), %rdi cmpq %r12, %rdi je 0x119a8 movq 0x98(%rsp), %rsi incq %rsi callq 0x8efc callq 0xa626 leaq 0x8(%rsp), %rdi movq %r13, (%rdi) movq 0x20264(%rip), %rsi # 0x31c20 movq 0x20265(%rip), %rdx # 0x31c28 addq %rsi, %rdx callq 0x9922 leaq 0x12477(%rip), %rsi # 0x23e49 leaq 0x8(%rsp), %rdi callq 0x7a40 leaq 0x8(%rsp), %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x70c0 movq 0x28(%rsp), %rdi movq 0x48(%rsp), %rsi movq 0x8(%rsp), %rdx xorl %ecx, %ecx callq 0xca9c movq 0x8(%rsp), %rdi cmpq %r13, %rdi je 0x11a19 movq 0x18(%rsp), %rsi incq %rsi callq 0x8efc movq 0x48(%rsp), %rdi cmpq %rbp, %rdi leaq 0x38(%rsp), %rbx je 0x11a35 movq 0x58(%rsp), %rsi incq %rsi callq 0x8efc movq 0x28(%rsp), %rdi cmpq %rbx, %rdi je 0x11a4c movq 0x38(%rsp), %rsi incq %rsi callq 0x8efc addq $0xa8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx jmp 0x11a8e movq %rax, %rbx jmp 0x11aa5 jmp 0x11a6a movq %rax, %rbx jmp 0x11aed movq %rax, %rbx jmp 0x11ad6 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r13, %rdi je 0x11a8e movq 0x18(%rsp), %rsi incq %rsi callq 0x8efc movq 0x68(%rsp), %rdi cmpq %r15, %rdi je 0x11aa5 movq 0x78(%rsp), %rsi incq %rsi callq 0x8efc movq 0x88(%rsp), %rdi cmpq %r12, %rdi je 0x11aed movq 0x98(%rsp), %rsi jmp 0x11ae5 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r13, %rdi je 0x11ad6 movq 0x18(%rsp), %rsi incq %rsi callq 0x8efc movq 0x48(%rsp), %rdi cmpq %rbp, %rdi je 0x11aed movq 0x58(%rsp), %rsi incq %rsi callq 0x8efc movq 0x28(%rsp), %rdi leaq 0x38(%rsp), %rax cmpq %rax, %rdi je 0x11b09 movq 0x38(%rsp), %rsi incq %rsi callq 0x8efc movq %rbx, %rdi callq 0x79b0 nop
_ZN5nglog14LogDestination15MaybeLogToEmailENS_11LogSeverityEPKcm: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0A8h mov rbx, rdx mov r14, rsi mov ebp, edi cmp cs:_ZN5nglog14LogDestination23email_logging_severity_E, edi; nglog::LogDestination::email_logging_severity_ jbe short loc_117C2 lea rax, _ZN3fLI19FLAGS_logemaillevelE; fLI::FLAGS_logemaillevel cmp [rax], ebp jg loc_11A4C loc_117C2: lea rax, _ZN3fLS20FLAGS_alsologtoemailB5cxx11E; fLS::FLAGS_alsologtoemail mov rax, [rax] lea rcx, [rsp+0D8h+var_A0] mov [rcx-10h], rcx mov rsi, [rax] mov rdx, [rax+8] add rdx, rsi lea rdi, [rsp+0D8h+var_B0] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) mov rdx, cs:qword_31C08 test rdx, rdx jz short loc_11826 cmp [rsp+0D8h+var_A8], 0 jz short loc_11815 lea rsi, asc_23E40; "," lea rdi, [rsp+0D8h+var_B0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rdx, cs:qword_31C08 loc_11815: mov rsi, cs:_ZN5nglog14LogDestination10addresses_B5cxx11E; nglog::LogDestination::addresses_ lea rdi, [rsp+0D8h+var_B0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) loc_11826: lea r12, [rsp+0D8h+var_40] mov [r12-10h], r12 lea rsi, aLog_0; "[LOG] " lea rdx, aLog_0+6; "" lea rdi, [rsp+0D8h+var_50] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov eax, ebp lea rcx, _ZN5nglogL16LogSeverityNamesE; nglog::LogSeverityNames mov rsi, [rcx+rax*8] lea rdi, [rsp+0D8h+var_50] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea r15, [rsp+0D8h+var_60] mov [r15-10h], r15 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_1188F mov [rsp+0D8h+var_70], rdx mov rdx, [rcx] mov [rsp+0D8h+var_60], rdx jmp short loc_11896 loc_1188F: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r15], xmm0 loc_11896: mov rdx, [rax+8] lea rdi, [rsp+0D8h+var_70]; this mov [rdi+8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea rsi, aRunningDuratio+1Ah; ": " call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea r13, [rsp+0D8h+var_C0] mov [r13-10h], r13 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_118E5 mov [rsp+0D8h+var_D0], rdx mov rdx, [rcx] mov [rsp+0D8h+var_C0], rdx jmp short loc_118ED loc_118E5: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r13+0], xmm0 loc_118ED: mov rdx, [rax+8] mov [rsp+0D8h+var_C8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 call _ZN5nglog5tools26ProgramInvocationShortNameEv; nglog::tools::ProgramInvocationShortName(void) lea rdi, [rsp+0D8h+var_D0] mov rsi, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea rbp, [rsp+0D8h+var_80] mov [rbp-10h], rbp mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_1193E mov [rsp+0D8h+var_90], rdx mov rdx, [rcx] mov [rsp+0D8h+var_80], rdx jmp short loc_11945 loc_1193E: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [rbp+0], xmm0 loc_11945: mov rdx, [rax+8] mov [rsp+0D8h+var_88], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 mov rdi, [rsp+0D8h+var_D0]; void * cmp rdi, r13 jz short loc_11974 mov rsi, [rsp+0D8h+var_C0] inc rsi; unsigned __int64 call _ZdlPvm; operator delete(void *,ulong) loc_11974: mov rdi, [rsp+0D8h+var_70]; void * cmp rdi, r15 jz short loc_1198B mov rsi, [rsp+0D8h+var_60] inc rsi; unsigned __int64 call _ZdlPvm; operator delete(void *,ulong) loc_1198B: mov rdi, [rsp+0D8h+var_50]; void * cmp rdi, r12 jz short loc_119A8 mov rsi, [rsp+0D8h+var_40] inc rsi; unsigned __int64 call _ZdlPvm; operator delete(void *,ulong) loc_119A8: call _ZN5nglog14LogDestination8hostnameB5cxx11Ev; nglog::LogDestination::hostname(void) lea rdi, [rsp+0D8h+var_D0] mov [rdi], r13 mov rsi, cs:_ZN5nglog14LogDestination9hostname_B5cxx11E; nglog::LogDestination::hostname_ mov rdx, cs:qword_31C28 add rdx, rsi call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea rsi, asc_23E49; "\n\n" lea rdi, [rsp+0D8h+var_D0] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea rdi, [rsp+0D8h+var_D0] mov rsi, r14 mov rdx, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm; std::string::append(char const*,ulong) mov rdi, [rsp+0D8h+var_B0]; this mov rsi, [rsp+0D8h+var_90]; char * mov rdx, [rsp+0D8h+var_D0]; char * xor ecx, ecx; char * call _ZN5nglogL17SendEmailInternalEPKcS1_S1_b; nglog::SendEmailInternal(char const*,char const*,char const*,bool) mov rdi, [rsp+0D8h+var_D0]; void * cmp rdi, r13 jz short loc_11A19 mov rsi, [rsp+0D8h+var_C0] inc rsi; unsigned __int64 call _ZdlPvm; operator delete(void *,ulong) loc_11A19: mov rdi, [rsp+0D8h+var_90]; void * cmp rdi, rbp lea rbx, [rsp+0D8h+var_A0] jz short loc_11A35 mov rsi, [rsp+0D8h+var_80] inc rsi; unsigned __int64 call _ZdlPvm; operator delete(void *,ulong) loc_11A35: mov rdi, [rsp+0D8h+var_B0]; void * cmp rdi, rbx jz short loc_11A4C mov rsi, [rsp+0D8h+var_A0] inc rsi; unsigned __int64 call _ZdlPvm; operator delete(void *,ulong) loc_11A4C: add rsp, 0A8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax jmp short loc_11A8E mov rbx, rax jmp short loc_11AA5 jmp short $+2 loc_11A6A: mov rbx, rax jmp short loc_11AED mov rbx, rax jmp short loc_11AD6 mov rbx, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r13 jz short loc_11A8E mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call _ZdlPvm; operator delete(void *,ulong) loc_11A8E: mov rdi, [rsp+arg_60]; void * cmp rdi, r15 jz short loc_11AA5 mov rsi, [rsp+arg_70] inc rsi; unsigned __int64 call _ZdlPvm; operator delete(void *,ulong) loc_11AA5: mov rdi, [rsp+arg_80] cmp rdi, r12 jz short loc_11AED mov rsi, [rsp+arg_90] jmp short loc_11AE5 mov rbx, rax mov rdi, [rsp+arg_0]; void * cmp rdi, r13 jz short loc_11AD6 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call _ZdlPvm; operator delete(void *,ulong) loc_11AD6: mov rdi, [rsp+arg_40]; void * cmp rdi, rbp jz short loc_11AED mov rsi, [rsp+arg_50] loc_11AE5: inc rsi; unsigned __int64 call _ZdlPvm; operator delete(void *,ulong) loc_11AED: mov rdi, [rsp+arg_20]; void * lea rax, [rsp+arg_30] cmp rdi, rax jz short loc_11B09 mov rsi, [rsp+arg_30] inc rsi; unsigned __int64 call _ZdlPvm; operator delete(void *,ulong) loc_11B09: mov rdi, rbx call __Unwind_Resume
void nglog::LogDestination::MaybeLogToEmail(unsigned int a1, long long a2, long long a3) { long long v4; // rax __int128 *v5; // rcx long long v6; // rax __int128 *v7; // rcx long long v8; // rax long long v9; // rax __int128 *v10; // rcx char *v11[2]; // [rsp+8h] [rbp-D0h] BYREF __int128 v12; // [rsp+18h] [rbp-C0h] BYREF nglog *v13[2]; // [rsp+28h] [rbp-B0h] BYREF char *v14[2]; // [rsp+38h] [rbp-A0h] BYREF char *v15; // [rsp+48h] [rbp-90h] long long v16; // [rsp+50h] [rbp-88h] __int128 v17; // [rsp+58h] [rbp-80h] BYREF void *v18[2]; // [rsp+68h] [rbp-70h] BYREF __int128 v19; // [rsp+78h] [rbp-60h] BYREF void *v20[2]; // [rsp+88h] [rbp-50h] BYREF _QWORD v21[8]; // [rsp+98h] [rbp-40h] BYREF if ( nglog::LogDestination::email_logging_severity_ <= a1 || fLI::FLAGS_logemaillevel <= (int)a1 ) { v13[0] = (nglog *)v14; std::string::_M_construct<char *>( (long long)v13, (_BYTE *)fLS::FLAGS_alsologtoemail_buf[abi:cxx11], fLS::FLAGS_alsologtoemail_buf[abi:cxx11] + *(&fLS::FLAGS_alsologtoemail_buf[abi:cxx11] + 1)); if ( qword_31C08 ) { if ( v13[1] ) std::string::append(v13, ","); std::string::_M_append(v13, nglog::LogDestination::addresses_[abi:cxx11]); } v20[0] = v21; std::string::_M_construct<char const*>((long long)v20, "[LOG] ", (long long)""); v4 = std::string::append(v20, nglog::LogSeverityNames[a1]); v18[0] = &v19; v5 = (__int128 *)(v4 + 16); if ( *(_QWORD *)v4 == v4 + 16 ) { v19 = *v5; } else { v18[0] = *(void **)v4; *(_QWORD *)&v19 = *(_QWORD *)v5; } v18[1] = *(void **)(v4 + 8); *(_QWORD *)v4 = v5; *(_QWORD *)(v4 + 8) = 0LL; *(_BYTE *)(v4 + 16) = 0; v6 = std::string::append(v18, ": "); v11[0] = (char *)&v12; v7 = (__int128 *)(v6 + 16); if ( *(_QWORD *)v6 == v6 + 16 ) { v12 = *v7; } else { v11[0] = *(char **)v6; *(_QWORD *)&v12 = *(_QWORD *)v7; } v11[1] = *(char **)(v6 + 8); *(_QWORD *)v6 = v7; *(_QWORD *)(v6 + 8) = 0LL; *(_BYTE *)(v6 + 16) = 0; v8 = nglog::tools::ProgramInvocationShortName((nglog::tools *)v18); v9 = std::string::append(v11, v8); v15 = (char *)&v17; v10 = (__int128 *)(v9 + 16); if ( *(_QWORD *)v9 == v9 + 16 ) { v17 = *v10; } else { v15 = *(char **)v9; *(_QWORD *)&v17 = *(_QWORD *)v10; } v16 = *(_QWORD *)(v9 + 8); *(_QWORD *)v9 = v10; *(_QWORD *)(v9 + 8) = 0LL; *(_BYTE *)(v9 + 16) = 0; if ( (__int128 *)v11[0] != &v12 ) operator delete(v11[0]); if ( v18[0] != &v19 ) operator delete(v18[0]); if ( v20[0] != v21 ) operator delete(v20[0]); nglog::LogDestination::hostname[abi:cxx11](); v11[0] = (char *)&v12; std::string::_M_construct<char *>( (long long)v11, (_BYTE *)nglog::LogDestination::hostname_[abi:cxx11], nglog::LogDestination::hostname_[abi:cxx11] + qword_31C28); std::string::append(v11, "\n\n"); std::string::append(v11, a2, a3); nglog::SendEmailInternal(v13[0], v15, v11[0], 0LL); if ( (__int128 *)v11[0] != &v12 ) operator delete(v11[0]); if ( v15 != (char *)&v17 ) operator delete(v15); if ( (char **)v13[0] != v14 ) operator delete(v13[0]); } }
MaybeLogToEmail: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xa8 MOV RBX,RDX MOV R14,RSI MOV EBP,EDI CMP dword ptr [0x00131580],EDI JBE 0x001117c2 LEA RAX,[0x131ad8] CMP dword ptr [RAX],EBP JG 0x00111a4c LAB_001117c2: LEA RAX,[0x130570] MOV RAX,qword ptr [RAX] LEA RCX,[RSP + 0x38] MOV qword ptr [RCX + -0x10],RCX MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RAX + 0x8] ADD RDX,RSI LEA RDI,[RSP + 0x28] CALL 0x00109922 MOV RDX,qword ptr [0x00131c08] TEST RDX,RDX JZ 0x00111826 CMP qword ptr [RSP + 0x30],0x0 JZ 0x00111815 LAB_001117fd: LEA RSI,[0x123e40] LEA RDI,[RSP + 0x28] CALL 0x00107a40 MOV RDX,qword ptr [0x00131c08] LAB_00111815: MOV RSI,qword ptr [0x00131c00] LEA RDI,[RSP + 0x28] CALL 0x00107140 LAB_00111826: LEA R12,[RSP + 0x98] MOV qword ptr [R12 + -0x10],R12 LAB_00111833: LEA RSI,[0x123e42] LEA RDX,[0x123e48] LEA RDI,[RSP + 0x88] CALL 0x0010a4b6 MOV EAX,EBP LEA RCX,[0x1305b0] MOV RSI,qword ptr [RCX + RAX*0x8] LAB_0011185b: LEA RDI,[RSP + 0x88] CALL 0x00107a40 LEA R15,[RSP + 0x78] MOV qword ptr [R15 + -0x10],R15 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x0011188f MOV qword ptr [RSP + 0x68],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x78],RDX JMP 0x00111896 LAB_0011188f: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R15],XMM0 LAB_00111896: MOV RDX,qword ptr [RAX + 0x8] LEA RDI,[RSP + 0x68] MOV qword ptr [RDI + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LAB_001118b2: LEA RSI,[0x123cf4] CALL 0x00107a40 LEA R13,[RSP + 0x18] MOV qword ptr [R13 + -0x10],R13 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x001118e5 MOV qword ptr [RSP + 0x8],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x18],RDX JMP 0x001118ed LAB_001118e5: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R13],XMM0 LAB_001118ed: MOV RDX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x10],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LAB_00111905: CALL 0x00121fa7 LEA RDI,[RSP + 0x8] MOV RSI,RAX CALL 0x00107a40 LEA RBP,[RSP + 0x58] MOV qword ptr [RBP + -0x10],RBP MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x0011193e MOV qword ptr [RSP + 0x48],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x58],RDX JMP 0x00111945 LAB_0011193e: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [RBP],XMM0 LAB_00111945: MOV RDX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x50],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R13 JZ 0x00111974 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00108efc LAB_00111974: MOV RDI,qword ptr [RSP + 0x68] CMP RDI,R15 JZ 0x0011198b MOV RSI,qword ptr [RSP + 0x78] INC RSI CALL 0x00108efc LAB_0011198b: MOV RDI,qword ptr [RSP + 0x88] CMP RDI,R12 JZ 0x001119a8 MOV RSI,qword ptr [RSP + 0x98] INC RSI CALL 0x00108efc LAB_001119a8: CALL 0x0010a626 LEA RDI,[RSP + 0x8] MOV qword ptr [RDI],R13 MOV RSI,qword ptr [0x00131c20] MOV RDX,qword ptr [0x00131c28] ADD RDX,RSI CALL 0x00109922 LAB_001119cb: LEA RSI,[0x123e49] LEA RDI,[RSP + 0x8] CALL 0x00107a40 LEA RDI,[RSP + 0x8] MOV RSI,R14 MOV RDX,RBX CALL 0x001070c0 MOV RDI,qword ptr [RSP + 0x28] MOV RSI,qword ptr [RSP + 0x48] MOV RDX,qword ptr [RSP + 0x8] XOR ECX,ECX CALL 0x0010ca9c LAB_00111a02: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R13 JZ 0x00111a19 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00108efc LAB_00111a19: MOV RDI,qword ptr [RSP + 0x48] CMP RDI,RBP LEA RBX,[RSP + 0x38] JZ 0x00111a35 MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x00108efc LAB_00111a35: MOV RDI,qword ptr [RSP + 0x28] CMP RDI,RBX JZ 0x00111a4c MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x00108efc LAB_00111a4c: ADD RSP,0xa8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ /* nglog::LogDestination::MaybeLogToEmail(nglog::LogSeverity, char const*, unsigned long) */ void nglog::LogDestination::MaybeLogToEmail(uint param_1,ulong param_2) { long *plVar1; long *plVar2; long *local_d0; long local_c8; long local_c0; long lStack_b8; long *local_b0; long local_a8; long local_a0 [2]; long *local_90; long local_88; long local_80; long lStack_78; long *local_70; long local_68; long local_60; long lStack_58; long *local_50 [2]; long local_40 [2]; if ((email_logging_severity_ <= param_1) || (fLI::FLAGS_logemaillevel <= (int)param_1)) { local_b0 = local_a0; std::__cxx11::string::_M_construct<char*> (&local_b0,*(long *)fLS::FLAGS_alsologtoemail_abi_cxx11_, *(long *)(fLS::FLAGS_alsologtoemail_abi_cxx11_ + 8) + *(long *)fLS::FLAGS_alsologtoemail_abi_cxx11_); if (_DAT_00131c08 != 0) { if (local_a8 != 0) { /* try { // try from 001117fd to 00111825 has its CatchHandler @ 00111a6a */ std::__cxx11::string::append((char *)&local_b0); } std::__cxx11::string::_M_append((char *)&local_b0,addresses__abi_cxx11_); } /* try { // try from 00111833 to 0011184d has its CatchHandler @ 00111a68 */ local_50[0] = local_40; std::__cxx11::string::_M_construct<char_const*>(local_50,&DAT_00123e42,&DAT_00123e48); /* try { // try from 0011185b to 00111867 has its CatchHandler @ 00111a63 */ plVar1 = (long *)std::__cxx11::string::append((char *)local_50); plVar2 = plVar1 + 2; if ((long *)*plVar1 == plVar2) { local_60 = *plVar2; lStack_58 = plVar1[3]; local_70 = &local_60; } else { local_60 = *plVar2; local_70 = (long *)*plVar1; } local_68 = plVar1[1]; *plVar1 = (long)plVar2; plVar1[1] = 0; *(int1 *)(plVar1 + 2) = 0; /* try { // try from 001118b2 to 001118bd has its CatchHandler @ 00111a5e */ plVar1 = (long *)std::__cxx11::string::append((char *)&local_70); plVar2 = plVar1 + 2; if ((long *)*plVar1 == plVar2) { local_c0 = *plVar2; lStack_b8 = plVar1[3]; local_d0 = &local_c0; } else { local_c0 = *plVar2; local_d0 = (long *)*plVar1; } local_c8 = plVar1[1]; *plVar1 = (long)plVar2; plVar1[1] = 0; *(int1 *)(plVar1 + 2) = 0; /* try { // try from 00111905 to 00111916 has its CatchHandler @ 00111a74 */ tools::ProgramInvocationShortName(); plVar1 = (long *)std::__cxx11::string::append((char *)&local_d0); plVar2 = plVar1 + 2; if ((long *)*plVar1 == plVar2) { local_80 = *plVar2; lStack_78 = plVar1[3]; local_90 = &local_80; } else { local_80 = *plVar2; local_90 = (long *)*plVar1; } local_88 = plVar1[1]; *plVar1 = (long)plVar2; plVar1[1] = 0; *(int1 *)(plVar1 + 2) = 0; if (local_d0 != &local_c0) { operator_delete(local_d0,local_c0 + 1); } if (local_70 != &local_60) { operator_delete(local_70,local_60 + 1); } if (local_50[0] != local_40) { operator_delete(local_50[0],local_40[0] + 1); } /* try { // try from 001119a8 to 001119ca has its CatchHandler @ 00111a6f */ hostname_abi_cxx11_(); local_d0 = &local_c0; std::__cxx11::string::_M_construct<char*> (&local_d0,hostname__abi_cxx11_,DAT_00131c28 + hostname__abi_cxx11_); /* try { // try from 001119cb to 00111a01 has its CatchHandler @ 00111abc */ std::__cxx11::string::append((char *)&local_d0); std::__cxx11::string::append((char *)&local_d0,param_2); SendEmailInternal((char *)local_b0,(char *)local_90,(char *)local_d0,false); if (local_d0 != &local_c0) { operator_delete(local_d0,local_c0 + 1); } if (local_90 != &local_80) { operator_delete(local_90,local_80 + 1); } if (local_b0 != local_a0) { operator_delete(local_b0,local_a0[0] + 1); } } return; }
31,183
minja::ExpressionTemplateToken::ExpressionTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::Expression>&&)
monkey531[P]llama/common/minja.hpp
ExpressionTemplateToken(const Location & location, SpaceHandling pre, SpaceHandling post, std::shared_ptr<Expression> && e) : TemplateToken(Type::Expression, location, pre, post), expr(std::move(e)) {}
O2
cpp
minja::ExpressionTemplateToken::ExpressionTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::Expression>&&): pushq %r14 pushq %rbx pushq %rax movq %r8, %rbx movl %ecx, %r8d movl %edx, %ecx movq %rsi, %rdx movq %rdi, %r14 pushq $0x1 popq %rsi callq 0x622b6 leaq 0x8ac87(%rip), %rax # 0xfcb08 addq $0x10, %rax movq %rax, (%r14) andq $0x0, 0x38(%r14) movups (%rbx), %xmm0 andq $0x0, 0x8(%rbx) movups %xmm0, 0x30(%r14) andq $0x0, (%rbx) addq $0x8, %rsp popq %rbx popq %r14 retq
_ZN5minja23ExpressionTemplateTokenC2ERKNS_8LocationENS_13SpaceHandlingES4_OSt10shared_ptrINS_10ExpressionEE: push r14 push rbx push rax mov rbx, r8 mov r8d, ecx mov ecx, edx mov rdx, rsi mov r14, rdi push 1 pop rsi call _ZN5minja13TemplateTokenC2ENS0_4TypeERKNS_8LocationENS_13SpaceHandlingES5_; minja::TemplateToken::TemplateToken(minja::TemplateToken::Type,minja::Location const&,minja::SpaceHandling,minja::SpaceHandling) lea rax, _ZTVN5minja23ExpressionTemplateTokenE; `vtable for'minja::ExpressionTemplateToken add rax, 10h mov [r14], rax and qword ptr [r14+38h], 0 movups xmm0, xmmword ptr [rbx] and qword ptr [rbx+8], 0 movups xmmword ptr [r14+30h], xmm0 and qword ptr [rbx], 0 add rsp, 8 pop rbx pop r14 retn
long long * minja::ExpressionTemplateToken::ExpressionTemplateToken( long long a1, long long a2, int a3, int a4, __int128 *a5) { long long *result; // rax __int128 v7; // xmm0 minja::TemplateToken::TemplateToken(a1, 1, a2, a3, a4); result = &`vtable for'minja::ExpressionTemplateToken + 2; *(_QWORD *)a1 = &`vtable for'minja::ExpressionTemplateToken + 2; *(_QWORD *)(a1 + 56) = 0LL; v7 = *a5; *((_QWORD *)a5 + 1) = 0LL; *(_OWORD *)(a1 + 48) = v7; *(_QWORD *)a5 = 0LL; return result; }
ExpressionTemplateToken: PUSH R14 PUSH RBX PUSH RAX MOV RBX,R8 MOV R8D,ECX MOV ECX,EDX MOV RDX,RSI MOV R14,RDI PUSH 0x1 POP RSI CALL 0x001622b6 LEA RAX,[0x1fcb08] ADD RAX,0x10 MOV qword ptr [R14],RAX AND qword ptr [R14 + 0x38],0x0 MOVUPS XMM0,xmmword ptr [RBX] AND qword ptr [RBX + 0x8],0x0 MOVUPS xmmword ptr [R14 + 0x30],XMM0 AND qword ptr [RBX],0x0 ADD RSP,0x8 POP RBX POP R14 RET
/* minja::ExpressionTemplateToken::ExpressionTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::Expression>&&) */ void __thiscall minja::ExpressionTemplateToken::ExpressionTemplateToken (ExpressionTemplateToken *this,int8 param_1,int4 param_3,int4 param_4, int8 *param_5) { int8 uVar1; TemplateToken::TemplateToken((TemplateToken *)this,1,param_1,param_3,param_4); *(int ***)this = &PTR__ExpressionTemplateToken_001fcb18; *(int8 *)(this + 0x38) = 0; uVar1 = param_5[1]; param_5[1] = 0; *(int8 *)(this + 0x30) = *param_5; *(int8 *)(this + 0x38) = uVar1; *param_5 = 0; return; }
31,184
stbi_loadf_from_memory
opengl-water/include/stb_image.h
STBIDEF float *stbi_loadf_from_memory(stbi_uc const *buffer, int len, int *x, int *y, int *comp, int req_comp) { stbi__context s; stbi__start_mem(&s,buffer,len); return stbi__loadf_main(&s,x,y,comp,req_comp); }
O3
c
stbi_loadf_from_memory: pushq %rbp movq %rsp, %rbp subq $0xe0, %rsp leaq -0xe0(%rbp), %rax movq $0x0, 0x10(%rax) xorl %r10d, %r10d movl %r10d, 0x30(%rax) movl %r10d, 0xb8(%rax) movq %rdi, 0xd0(%rax) movq %rdi, 0xc0(%rax) movslq %esi, %rsi addq %rdi, %rsi movq %rsi, 0xd8(%rax) movq %rsi, 0xc8(%rax) movq %rax, %rdi movq %rdx, %rsi movq %rcx, %rdx movq %r8, %rcx movl %r9d, %r8d callq 0x3f846 addq $0xe0, %rsp popq %rbp retq
stbi_loadf_from_memory: push rbp mov rbp, rsp sub rsp, 0E0h lea rax, [rbp+var_E0] mov qword ptr [rax+10h], 0 xor r10d, r10d mov [rax+30h], r10d mov [rax+0B8h], r10d mov [rax+0D0h], rdi mov [rax+0C0h], rdi movsxd rsi, esi add rsi, rdi mov [rax+0D8h], rsi mov [rax+0C8h], rsi mov rdi, rax mov rsi, rdx mov rdx, rcx mov rcx, r8 mov r8d, r9d call stbi__loadf_main add rsp, 0E0h pop rbp retn
long long stbi_loadf_from_memory(long long a1, int a2, long long a3, long long a4, long long a5, unsigned int a6) { _BYTE v7[16]; // [rsp+0h] [rbp-E0h] BYREF long long v8; // [rsp+10h] [rbp-D0h] int v9; // [rsp+30h] [rbp-B0h] int v10; // [rsp+B8h] [rbp-28h] long long v11; // [rsp+C0h] [rbp-20h] long long v12; // [rsp+C8h] [rbp-18h] long long v13; // [rsp+D0h] [rbp-10h] long long v14; // [rsp+D8h] [rbp-8h] v8 = 0LL; v9 = 0; v10 = 0; v13 = a1; v11 = a1; v14 = a1 + a2; v12 = v14; return stbi__loadf_main(v7, a3, a4, a5, a6); }
stbi_loadf_from_memory: PUSH RBP MOV RBP,RSP SUB RSP,0xe0 LEA RAX,[RBP + -0xe0] MOV qword ptr [RAX + 0x10],0x0 XOR R10D,R10D MOV dword ptr [RAX + 0x30],R10D MOV dword ptr [RAX + 0xb8],R10D MOV qword ptr [RAX + 0xd0],RDI MOV qword ptr [RAX + 0xc0],RDI MOVSXD RSI,ESI ADD RSI,RDI MOV qword ptr [RAX + 0xd8],RSI MOV qword ptr [RAX + 0xc8],RSI MOV RDI,RAX MOV RSI,RDX MOV RDX,RCX MOV RCX,R8 MOV R8D,R9D CALL 0x0013f846 ADD RSP,0xe0 POP RBP RET
void stbi_loadf_from_memory (long param_1,int param_2,int8 param_3,int8 param_4,int8 param_5, int4 param_6) { int1 local_e8 [16]; int8 local_d8; int4 local_b8; int4 local_30; long local_28; long local_20; long local_18; long local_10; local_d8 = 0; local_b8 = 0; local_30 = 0; local_20 = param_2 + param_1; local_28 = param_1; local_18 = param_1; local_10 = local_20; stbi__loadf_main(local_e8,param_3,param_4,param_5,param_6); return; }
31,185
fmt::v10::detail::write_int_arg<std::conditional<num_bits<long long>() <= 32 && !0, unsigned int, std::conditional<num_bits<long long>() <= 64, unsigned long, unsigned __int128>::type>::type> fmt::v10::detail::make_write_int_arg<long long>(long long, fmt::v10::sign::type)
AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/fmt/bundled/format.h
FMT_CONSTEXPR auto make_write_int_arg(T value, sign_t sign) -> write_int_arg<uint32_or_64_or_128_t<T>> { auto prefix = 0u; auto abs_value = static_cast<uint32_or_64_or_128_t<T>>(value); if (is_negative(value)) { prefix = 0x01000000 | '-'; abs_value = 0 - abs_value; } else { constexpr const unsigned prefixes[4] = {0, 0, 0x1000000u | '+', 0x1000000u | ' '}; prefix = prefixes[sign]; } return {abs_value, prefix}; }
O0
c
fmt::v10::detail::write_int_arg<std::conditional<num_bits<long long>() <= 32 && !0, unsigned int, std::conditional<num_bits<long long>() <= 64, unsigned long, unsigned __int128>::type>::type> fmt::v10::detail::make_write_int_arg<long long>(long long, fmt::v10::sign::type): subq $0x28, %rsp movb %sil, %al movb %dil, %cl movb %cl, 0x1f(%rsp) movb %al, 0x1e(%rsp) movl $0x0, 0x18(%rsp) movzbl 0x1f(%rsp), %eax movl %eax, 0x14(%rsp) movzbl 0x1f(%rsp), %edi callq 0xe9370 testb $0x1, %al jne 0xe9273 jmp 0xe9287 movl $0x100002d, 0x18(%rsp) # imm = 0x100002D xorl %eax, %eax subl 0x14(%rsp), %eax movl %eax, 0x14(%rsp) jmp 0xe92aa movq 0x6a0d2(%rip), %rax # 0x153360 movq %rax, (%rsp) movq 0x6a0cf(%rip), %rax # 0x153368 movq %rax, 0x8(%rsp) movzbl 0x1e(%rsp), %eax movl (%rsp,%rax,4), %eax movl %eax, 0x18(%rsp) movl 0x14(%rsp), %eax movl %eax, 0x20(%rsp) movl 0x18(%rsp), %eax movl %eax, 0x24(%rsp) movq 0x20(%rsp), %rax addq $0x28, %rsp retq nopw %cs:(%rax,%rax) nop
_ZN3fmt3v106detail18make_write_int_argIhEENS1_13write_int_argINSt11conditionalIXaalecl8num_bitsIT_EELi32EntLi0EEjNS4_IXlecl8num_bitsIS5_EELi64EEmoE4typeEE4typeEEES5_NS0_4sign4typeE: sub rsp, 28h mov al, sil mov cl, dil mov [rsp+28h+var_9], cl mov [rsp+28h+var_A], al mov [rsp+28h+var_10], 0 movzx eax, [rsp+28h+var_9] mov [rsp+28h+var_14], eax movzx edi, [rsp+28h+var_9] call _ZN3fmt3v106detail11is_negativeIhTnNSt9enable_ifIXntsr9is_signedIT_EE5valueEiE4typeELi0EEEbS4_ test al, 1 jnz short loc_E9273 jmp short loc_E9287 loc_E9273: mov [rsp+28h+var_10], 100002Dh xor eax, eax sub eax, [rsp+28h+var_14] mov [rsp+28h+var_14], eax jmp short loc_E92AA loc_E9287: mov rax, cs:qword_153360 mov [rsp+28h+var_28], rax mov rax, cs:qword_153368 mov [rsp+28h+var_20], rax movzx eax, [rsp+28h+var_A] mov eax, dword ptr [rsp+rax*4+28h+var_28] mov [rsp+28h+var_10], eax loc_E92AA: mov eax, [rsp+28h+var_14] mov dword ptr [rsp+28h+var_8], eax mov eax, [rsp+28h+var_10] mov dword ptr [rsp+28h+var_8+4], eax mov rax, [rsp+28h+var_8] add rsp, 28h retn
long long fmt::v10::detail::make_write_int_arg<unsigned char>(unsigned __int8 a1, unsigned __int8 a2) { _QWORD v3[2]; // [rsp+0h] [rbp-28h] long long v4; // [rsp+14h] [rbp-14h] unsigned __int8 v5; // [rsp+1Eh] [rbp-Ah] unsigned __int8 v6; // [rsp+1Fh] [rbp-9h] v6 = a1; v5 = a2; v4 = a1; if ( (ZN3fmt3v106detail11is_negativeIhTnNSt9enable_ifIXntsr9is_signedIT_EE5valueEiE4typeELi0EEEbS4_(a1) & 1) != 0 ) { HIDWORD(v4) = 16777261; LODWORD(v4) = -(int)v4; } else { v3[0] = 0LL; v3[1] = 0x10000200100002BLL; HIDWORD(v4) = *((_DWORD *)v3 + v5); } return v4; }
make_write_int_arg<unsigned_char>: SUB RSP,0x28 MOV AL,SIL MOV CL,DIL MOV byte ptr [RSP + 0x1f],CL MOV byte ptr [RSP + 0x1e],AL MOV dword ptr [RSP + 0x18],0x0 MOVZX EAX,byte ptr [RSP + 0x1f] MOV dword ptr [RSP + 0x14],EAX MOVZX EDI,byte ptr [RSP + 0x1f] CALL 0x001e9370 TEST AL,0x1 JNZ 0x001e9273 JMP 0x001e9287 LAB_001e9273: MOV dword ptr [RSP + 0x18],0x100002d XOR EAX,EAX SUB EAX,dword ptr [RSP + 0x14] MOV dword ptr [RSP + 0x14],EAX JMP 0x001e92aa LAB_001e9287: MOV RAX,qword ptr [0x00253360] MOV qword ptr [RSP],RAX MOV RAX,qword ptr [0x00253368] MOV qword ptr [RSP + 0x8],RAX MOVZX EAX,byte ptr [RSP + 0x1e] MOV EAX,dword ptr [RSP + RAX*0x4] MOV dword ptr [RSP + 0x18],EAX LAB_001e92aa: MOV EAX,dword ptr [RSP + 0x14] MOV dword ptr [RSP + 0x20],EAX MOV EAX,dword ptr [RSP + 0x18] MOV dword ptr [RSP + 0x24],EAX MOV RAX,qword ptr [RSP + 0x20] ADD RSP,0x28 RET
/* fmt::v10::detail::write_int_arg<std::conditional<(((num_bits<unsigned char>)())<=(32))&&(!(0)), unsigned int, std::conditional<((num_bits<unsigned char>)())<=(64), unsigned long, unsigned __int128>::type>::type> fmt::v10::detail::make_write_int_arg<unsigned char>(unsigned char, fmt::v10::sign::type) */ int8 fmt::v10::detail::write_int_arg<std:: conditional<(((num_bits<unsigned_char>)())<=(32))&&(!(0)),unsigned_int,std:: conditional<((num_bits<unsigned_char>)())<=(64),unsigned_long,unsigned__int128>::type>::type>fmt:: v10::detail::make_write_int_arg<unsigned_char>(byte param_1,byte param_2) { ulong uVar1; int8 local_28; int8 local_20; uint local_14; int4 local_10; byte local_a; byte local_9; local_10 = 0; local_14 = (uint)param_1; local_a = param_2; local_9 = param_1; uVar1 = _ZN3fmt3v106detail11is_negativeIhTnNSt9enable_ifIXntsr9is_signedIT_EE5valueEiE4typeELi0EEEbS4_ (param_1); if ((uVar1 & 1) == 0) { local_28 = DAT_00253360; local_20 = DAT_00253368; local_10 = *(int4 *)((long)&local_28 + (ulong)local_a * 4); } else { local_10 = 0x100002d; local_14 = -local_14; } return CONCAT44(local_10,local_14); }
31,186
wt_thd_release
eloqsql/mysys/waiting_threads.c
void wt_thd_release(WT_THD *thd, const WT_RESOURCE_ID *resid) { uint i; DBUG_ENTER("wt_thd_release"); for (i= 0; i < thd->my_resources.elements; i++) { WT_RESOURCE *rc= *dynamic_element(&thd->my_resources, i, WT_RESOURCE**); if (!resid || (resid->type->compare(&rc->id, resid) == 0)) { uint j; rc_wrlock(rc); /* nobody's trying to free the resource now, as its owners[] array is not empty (at least thd must be there) */ DBUG_ASSERT(rc->state == ACTIVE); for (j= 0; j < rc->owners.elements; j++) if (*dynamic_element(&rc->owners, j, WT_THD**) == thd) break; DBUG_ASSERT(j < rc->owners.elements); delete_dynamic_element(&rc->owners, j); if (rc->owners.elements == 0) { mysql_cond_broadcast(&rc->cond); #ifndef DBUG_OFF if (rc->cond_mutex) mysql_mutex_assert_owner(rc->cond_mutex); #endif } unlock_lock_and_free_resource(thd, rc); if (resid) { delete_dynamic_element(&thd->my_resources, i); DBUG_VOID_RETURN; } } } if (!resid) reset_dynamic(&thd->my_resources); DBUG_VOID_RETURN; }
O3
c
wt_thd_release: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx cmpl $0x0, 0x8(%rdi) je 0xa7335 xorl %r15d, %r15d leaq 0x2ded86(%rip), %r13 # 0x386010 movq (%rbx), %rax movq (%rax,%r15,8), %r12 testq %r14, %r14 je 0xa72a6 movq 0x8(%r14), %rax movq %r12, %rdi movq %r14, %rsi callq *(%rax) testb %al, %al jne 0xa7318 leaq 0x18(%r12), %rdi callq 0xa4555 leaq 0xe0(%r12), %rdi movl 0xe8(%r12), %eax testq %rax, %rax je 0xa72dc movq (%rdi), %rcx xorl %esi, %esi cmpq %rbx, (%rcx,%rsi,8) je 0xa72de incq %rsi cmpq %rsi, %rax jne 0xa72ca movl %eax, %esi jmp 0xa72de xorl %esi, %esi callq 0x91db5 cmpl $0x0, 0xe8(%r12) jne 0xa7308 movq 0xd8(%r12), %rdi testq %rdi, %rdi jne 0xa7329 leaq 0xa8(%r12), %rdi callq 0x296d0 movq %rbx, %rdi movq %r12, %rsi callq 0xa7369 testq %r14, %r14 jne 0xa7350 incq %r15 movl 0x8(%rbx), %eax cmpq %rax, %r15 jb 0xa728a jmp 0xa7335 movq (%r13), %rax callq *0x178(%rax) jmp 0xa72fb testq %r14, %r14 jne 0xa7341 movl $0x0, 0x8(%rbx) addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rbx, %rdi movl %r15d, %esi addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp jmp 0x91db5
wt_thd_release: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r14, rsi mov rbx, rdi cmp dword ptr [rdi+8], 0 jz loc_A7335 xor r15d, r15d lea r13, PSI_server loc_A728A: mov rax, [rbx] mov r12, [rax+r15*8] test r14, r14 jz short loc_A72A6 mov rax, [r14+8] mov rdi, r12 mov rsi, r14 call qword ptr [rax] test al, al jnz short loc_A7318 loc_A72A6: lea rdi, [r12+18h] call my_rw_wrlock lea rdi, [r12+0E0h] mov eax, [r12+0E8h] test rax, rax jz short loc_A72DC mov rcx, [rdi] xor esi, esi loc_A72CA: cmp [rcx+rsi*8], rbx jz short loc_A72DE inc rsi cmp rax, rsi jnz short loc_A72CA mov esi, eax jmp short loc_A72DE loc_A72DC: xor esi, esi loc_A72DE: call delete_dynamic_element cmp dword ptr [r12+0E8h], 0 jnz short loc_A7308 mov rdi, [r12+0D8h] test rdi, rdi jnz short loc_A7329 loc_A72FB: lea rdi, [r12+0A8h] call _pthread_cond_broadcast loc_A7308: mov rdi, rbx mov rsi, r12 call unlock_lock_and_free_resource test r14, r14 jnz short loc_A7350 loc_A7318: inc r15 mov eax, [rbx+8] cmp r15, rax jb loc_A728A jmp short loc_A7335 loc_A7329: mov rax, [r13+0] call qword ptr [rax+178h] jmp short loc_A72FB loc_A7335: test r14, r14 jnz short loc_A7341 mov dword ptr [rbx+8], 0 loc_A7341: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_A7350: mov rdi, rbx mov esi, r15d add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp jmp delete_dynamic_element
unsigned long long wt_thd_release(long long a1, long long a2) { unsigned long long v4; // r15 long long v5; // r12 _QWORD *v6; // rdi long long v7; // rsi long long v8; // rdi unsigned long long result; // rax if ( *(_DWORD *)(a1 + 8) ) { v4 = 0LL; while ( 1 ) { v5 = *(_QWORD *)(*(_QWORD *)a1 + 8 * v4); if ( !a2 || !(**(unsigned __int8 ( ***)(_QWORD, long long))(a2 + 8))(*(_QWORD *)(*(_QWORD *)a1 + 8 * v4), a2) ) { my_rw_wrlock(v5 + 24); v6 = (_QWORD *)(v5 + 224); if ( *(_DWORD *)(v5 + 232) ) { v7 = 0LL; while ( *(_QWORD *)(*v6 + 8 * v7) != a1 ) { if ( *(_DWORD *)(v5 + 232) == ++v7 ) { LODWORD(v7) = *(_DWORD *)(v5 + 232); break; } } } else { LODWORD(v7) = 0; } delete_dynamic_element((long long)v6, v7); if ( !*(_DWORD *)(v5 + 232) ) { v8 = *(_QWORD *)(v5 + 216); if ( v8 ) ((void ( *)(long long))PSI_server[47])(v8); pthread_cond_broadcast(v5 + 168); } unlock_lock_and_free_resource(a1); if ( a2 ) return delete_dynamic_element(a1, v4); } ++v4; result = *(unsigned int *)(a1 + 8); if ( v4 >= result ) goto LABEL_17; } } else { LABEL_17: if ( !a2 ) *(_DWORD *)(a1 + 8) = 0; } return result; }
wt_thd_release: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI CMP dword ptr [RDI + 0x8],0x0 JZ 0x001a7335 XOR R15D,R15D LEA R13,[0x486010] LAB_001a728a: MOV RAX,qword ptr [RBX] MOV R12,qword ptr [RAX + R15*0x8] TEST R14,R14 JZ 0x001a72a6 MOV RAX,qword ptr [R14 + 0x8] MOV RDI,R12 MOV RSI,R14 CALL qword ptr [RAX] TEST AL,AL JNZ 0x001a7318 LAB_001a72a6: LEA RDI,[R12 + 0x18] CALL 0x001a4555 LEA RDI,[R12 + 0xe0] MOV EAX,dword ptr [R12 + 0xe8] TEST RAX,RAX JZ 0x001a72dc MOV RCX,qword ptr [RDI] XOR ESI,ESI LAB_001a72ca: CMP qword ptr [RCX + RSI*0x8],RBX JZ 0x001a72de INC RSI CMP RAX,RSI JNZ 0x001a72ca MOV ESI,EAX JMP 0x001a72de LAB_001a72dc: XOR ESI,ESI LAB_001a72de: CALL 0x00191db5 CMP dword ptr [R12 + 0xe8],0x0 JNZ 0x001a7308 MOV RDI,qword ptr [R12 + 0xd8] TEST RDI,RDI JNZ 0x001a7329 LAB_001a72fb: LEA RDI,[R12 + 0xa8] CALL 0x001296d0 LAB_001a7308: MOV RDI,RBX MOV RSI,R12 CALL 0x001a7369 TEST R14,R14 JNZ 0x001a7350 LAB_001a7318: INC R15 MOV EAX,dword ptr [RBX + 0x8] CMP R15,RAX JC 0x001a728a JMP 0x001a7335 LAB_001a7329: MOV RAX,qword ptr [R13] CALL qword ptr [RAX + 0x178] JMP 0x001a72fb LAB_001a7335: TEST R14,R14 JNZ 0x001a7341 MOV dword ptr [RBX + 0x8],0x0 LAB_001a7341: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001a7350: MOV RDI,RBX MOV ESI,R15D ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP JMP 0x00191db5
void wt_thd_release(long *param_1,long param_2) { uint uVar1; long lVar2; char cVar3; ulong uVar4; ulong uVar5; if ((int)param_1[1] != 0) { uVar5 = 0; do { lVar2 = *(long *)(*param_1 + uVar5 * 8); if ((param_2 == 0) || (cVar3 = (*(code *)**(int8 **)(param_2 + 8))(lVar2), cVar3 == '\0')) { my_rw_wrlock(lVar2 + 0x18); uVar1 = *(uint *)(lVar2 + 0xe8); if ((ulong)uVar1 == 0) { uVar4 = 0; } else { uVar4 = 0; do { if (*(long **)(*(long *)(lVar2 + 0xe0) + uVar4 * 8) == param_1) goto LAB_001a72de; uVar4 = uVar4 + 1; } while (uVar1 != uVar4); uVar4 = (ulong)uVar1; } LAB_001a72de: delete_dynamic_element((long *)(lVar2 + 0xe0),uVar4); if (*(int *)(lVar2 + 0xe8) == 0) { if (*(long *)(lVar2 + 0xd8) != 0) { (**(code **)(PSI_server + 0x178))(); } pthread_cond_broadcast((pthread_cond_t *)(lVar2 + 0xa8)); } unlock_lock_and_free_resource(param_1); if (param_2 != 0) { delete_dynamic_element(param_1,uVar5 & 0xffffffff); return; } } uVar5 = uVar5 + 1; } while (uVar5 < *(uint *)(param_1 + 1)); } if (param_2 == 0) { *(int4 *)(param_1 + 1) = 0; } return; }
31,187
OpenSubdiv::v3_6_0::Tmr::NodeBase::catmarkIrregularPatchSize(OpenSubdiv::v3_6_0::Tmr::EndCapType)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/../tmr/../tmr/nodeBase.h
constexpr int NodeBase::catmarkIrregularPatchSize(EndCapType type) { switch (type) { case EndCapType::ENDCAP_BILINEAR_BASIS: return 4; case EndCapType::ENDCAP_BSPLINE_BASIS: return 16; case EndCapType::ENDCAP_GREGORY_BASIS: return 20; case EndCapType::ENDCAP_NONE: return 0; } return 0; }
O0
c
OpenSubdiv::v3_6_0::Tmr::NodeBase::catmarkIrregularPatchSize(OpenSubdiv::v3_6_0::Tmr::EndCapType): pushq %rbp movq %rsp, %rbp movw %di, %ax movw %ax, -0x6(%rbp) movzwl -0x6(%rbp), %eax movq %rax, -0x10(%rbp) subq $0x3, %rax ja 0x1ce771 movq -0x10(%rbp), %rax leaq 0x2e65c(%rip), %rcx # 0x1fcda0 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movl $0x4, -0x4(%rbp) jmp 0x1ce778 movl $0x10, -0x4(%rbp) jmp 0x1ce778 movl $0x14, -0x4(%rbp) jmp 0x1ce778 movl $0x0, -0x4(%rbp) jmp 0x1ce778 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopl (%rax)
_ZN10OpenSubdiv6v3_6_03Tmr8NodeBase25catmarkIrregularPatchSizeENS1_10EndCapTypeE: push rbp mov rbp, rsp mov ax, di mov [rbp+var_6], ax movzx eax, [rbp+var_6] mov [rbp+var_10], rax sub rax, 3; switch 4 cases ja short def_1CE74B; jumptable 00000000001CE74B default case mov rax, [rbp+var_10] lea rcx, jpt_1CE74B movsxd rax, ds:(jpt_1CE74B - 1FCDA0h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_1CE74D: mov [rbp+var_4], 4; jumptable 00000000001CE74B case 1 jmp short loc_1CE778 loc_1CE756: mov [rbp+var_4], 10h; jumptable 00000000001CE74B case 2 jmp short loc_1CE778 loc_1CE75F: mov [rbp+var_4], 14h; jumptable 00000000001CE74B case 3 jmp short loc_1CE778 loc_1CE768: mov [rbp+var_4], 0; jumptable 00000000001CE74B case 0 jmp short loc_1CE778 def_1CE74B: mov [rbp+var_4], 0; jumptable 00000000001CE74B default case loc_1CE778: mov eax, [rbp+var_4] pop rbp retn
long long OpenSubdiv::v3_6_0::Tmr::NodeBase::catmarkIrregularPatchSize(__int16 a1) { unsigned int v2; // [rsp+Ch] [rbp-4h] switch ( a1 ) { case 0: v2 = 0; break; case 1: v2 = 4; break; case 2: v2 = 16; break; case 3: v2 = 20; break; default: v2 = 0; break; } return v2; }
31,188
OpenSubdiv::v3_6_0::Tmr::NodeBase::catmarkIrregularPatchSize(OpenSubdiv::v3_6_0::Tmr::EndCapType)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/../tmr/../tmr/nodeBase.h
constexpr int NodeBase::catmarkIrregularPatchSize(EndCapType type) { switch (type) { case EndCapType::ENDCAP_BILINEAR_BASIS: return 4; case EndCapType::ENDCAP_BSPLINE_BASIS: return 16; case EndCapType::ENDCAP_GREGORY_BASIS: return 20; case EndCapType::ENDCAP_NONE: return 0; } return 0; }
O2
c
OpenSubdiv::v3_6_0::Tmr::NodeBase::catmarkIrregularPatchSize(OpenSubdiv::v3_6_0::Tmr::EndCapType): xorl %eax, %eax cmpw $0x3, %di ja 0xb2429 movzwl %di, %eax leaq 0x1c7f6(%rip), %rcx # 0xcec1c movl (%rcx,%rax,4), %eax retq
_ZN10OpenSubdiv6v3_6_03Tmr8NodeBase25catmarkIrregularPatchSizeENS1_10EndCapTypeE: xor eax, eax cmp di, 3 ja short locret_B2429 movzx eax, di lea rcx, unk_CEC1C mov eax, [rcx+rax*4] locret_B2429: retn
long long OpenSubdiv::v3_6_0::Tmr::NodeBase::catmarkIrregularPatchSize(unsigned __int16 a1) { long long result; // rax result = 0LL; if ( a1 <= 3u ) return dword_CEC1C[a1]; return result; }
catmarkIrregularPatchSize: XOR EAX,EAX CMP DI,0x3 JA 0x001b2429 MOVZX EAX,DI LEA RCX,[0x1cec1c] MOV EAX,dword ptr [RCX + RAX*0x4] LAB_001b2429: RET
/* OpenSubdiv::v3_6_0::Tmr::NodeBase::catmarkIrregularPatchSize(OpenSubdiv::v3_6_0::Tmr::EndCapType) */ int4 OpenSubdiv::v3_6_0::Tmr::NodeBase::catmarkIrregularPatchSize(ushort param_1) { int4 uVar1; uVar1 = 0; if (param_1 < 4) { uVar1 = *(int4 *)(&DAT_001cec1c + (ulong)param_1 * 4); } return uVar1; }
31,189
minja::FilterTemplateToken::FilterTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::Expression>&&)
monkey531[P]llama/common/minja.hpp
FilterTemplateToken(const Location & location, SpaceHandling pre, SpaceHandling post, std::shared_ptr<Expression> && filter) : TemplateToken(Type::Filter, location, pre, post), filter(std::move(filter)) {}
O2
cpp
minja::FilterTemplateToken::FilterTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::Expression>&&): pushq %r14 pushq %rbx pushq %rax movq %r8, %rbx movl %ecx, %r8d movl %edx, %ecx movq %rsi, %rdx movq %rdi, %r14 pushq $0xf popq %rsi callq 0x643fc leaq 0x8b54d(%rip), %rax # 0xffe58 addq $0x10, %rax movq %rax, (%r14) andq $0x0, 0x38(%r14) movups (%rbx), %xmm0 andq $0x0, 0x8(%rbx) movups %xmm0, 0x30(%r14) andq $0x0, (%rbx) addq $0x8, %rsp popq %rbx popq %r14 retq
_ZN5minja19FilterTemplateTokenC2ERKNS_8LocationENS_13SpaceHandlingES4_OSt10shared_ptrINS_10ExpressionEE: push r14 push rbx push rax mov rbx, r8 mov r8d, ecx mov ecx, edx mov rdx, rsi mov r14, rdi push 0Fh pop rsi call _ZN5minja13TemplateTokenC2ENS0_4TypeERKNS_8LocationENS_13SpaceHandlingES5_; minja::TemplateToken::TemplateToken(minja::TemplateToken::Type,minja::Location const&,minja::SpaceHandling,minja::SpaceHandling) lea rax, _ZTVN5minja19FilterTemplateTokenE; `vtable for'minja::FilterTemplateToken add rax, 10h mov [r14], rax and qword ptr [r14+38h], 0 movups xmm0, xmmword ptr [rbx] and qword ptr [rbx+8], 0 movups xmmword ptr [r14+30h], xmm0 and qword ptr [rbx], 0 add rsp, 8 pop rbx pop r14 retn
long long * minja::FilterTemplateToken::FilterTemplateToken( long long a1, long long a2, int a3, int a4, __int128 *a5) { long long *result; // rax __int128 v7; // xmm0 minja::TemplateToken::TemplateToken(a1, 15, a2, a3, a4); result = &`vtable for'minja::FilterTemplateToken + 2; *(_QWORD *)a1 = &`vtable for'minja::FilterTemplateToken + 2; *(_QWORD *)(a1 + 56) = 0LL; v7 = *a5; *((_QWORD *)a5 + 1) = 0LL; *(_OWORD *)(a1 + 48) = v7; *(_QWORD *)a5 = 0LL; return result; }
FilterTemplateToken: PUSH R14 PUSH RBX PUSH RAX MOV RBX,R8 MOV R8D,ECX MOV ECX,EDX MOV RDX,RSI MOV R14,RDI PUSH 0xf POP RSI CALL 0x001643fc LEA RAX,[0x1ffe58] ADD RAX,0x10 MOV qword ptr [R14],RAX AND qword ptr [R14 + 0x38],0x0 MOVUPS XMM0,xmmword ptr [RBX] AND qword ptr [RBX + 0x8],0x0 MOVUPS xmmword ptr [R14 + 0x30],XMM0 AND qword ptr [RBX],0x0 ADD RSP,0x8 POP RBX POP R14 RET
/* minja::FilterTemplateToken::FilterTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::Expression>&&) */ void __thiscall minja::FilterTemplateToken::FilterTemplateToken (FilterTemplateToken *this,int8 param_1,int4 param_3,int4 param_4, int8 *param_5) { int8 uVar1; TemplateToken::TemplateToken((TemplateToken *)this,0xf,param_1,param_3,param_4); *(int ***)this = &PTR__FilterTemplateToken_001ffe68; *(int8 *)(this + 0x38) = 0; uVar1 = param_5[1]; param_5[1] = 0; *(int8 *)(this + 0x30) = *param_5; *(int8 *)(this + 0x38) = uVar1; *param_5 = 0; return; }
31,190
minja::FilterTemplateToken::FilterTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::Expression>&&)
monkey531[P]llama/common/minja.hpp
FilterTemplateToken(const Location & location, SpaceHandling pre, SpaceHandling post, std::shared_ptr<Expression> && filter) : TemplateToken(Type::Filter, location, pre, post), filter(std::move(filter)) {}
O3
cpp
minja::FilterTemplateToken::FilterTemplateToken(minja::Location const&, minja::SpaceHandling, minja::SpaceHandling, std::shared_ptr<minja::Expression>&&): pushq %rbx movq %rdi, %rbx leaq 0x91583(%rip), %rax # 0x12ce48 addq $0x10, %rax movq %rax, (%rdi) movq 0x38(%rdi), %rdi testq %rdi, %rdi je 0x9b8da callq 0x70324 leaq 0x90a07(%rip), %rax # 0x12c2e8 addq $0x10, %rax movq %rax, (%rbx) movq 0x18(%rbx), %rdi testq %rdi, %rdi je 0x9b8f6 callq 0x70324 movl $0x40, %esi movq %rbx, %rdi popq %rbx jmp 0x1ba20
_ZN5minja19FilterTemplateTokenD0Ev: push rbx mov rbx, rdi lea rax, _ZTVN5minja19FilterTemplateTokenE; `vtable for'minja::FilterTemplateToken add rax, 10h mov [rdi], rax mov rdi, [rdi+38h] test rdi, rdi jz short loc_9B8DA call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_9B8DA: lea rax, _ZTVN5minja13TemplateTokenE; `vtable for'minja::TemplateToken add rax, 10h mov [rbx], rax mov rdi, [rbx+18h] test rdi, rdi jz short loc_9B8F6 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_9B8F6: mov esi, 40h ; '@'; unsigned __int64 mov rdi, rbx; void * pop rbx jmp __ZdlPvm; operator delete(void *,ulong)
void minja::FilterTemplateToken::~FilterTemplateToken(minja::FilterTemplateToken *this) { volatile signed __int32 *v2; // rdi volatile signed __int32 *v3; // rdi *(_QWORD *)this = &`vtable for'minja::FilterTemplateToken + 2; v2 = (volatile signed __int32 *)*((_QWORD *)this + 7); if ( v2 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v2); *(_QWORD *)this = &`vtable for'minja::TemplateToken + 2; v3 = (volatile signed __int32 *)*((_QWORD *)this + 3); if ( v3 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3); operator delete(this, 0x40uLL); }
~FilterTemplateToken: PUSH RBX MOV RBX,RDI LEA RAX,[0x22ce48] ADD RAX,0x10 MOV qword ptr [RDI],RAX MOV RDI,qword ptr [RDI + 0x38] TEST RDI,RDI JZ 0x0019b8da CALL 0x00170324 LAB_0019b8da: LEA RAX,[0x22c2e8] ADD RAX,0x10 MOV qword ptr [RBX],RAX MOV RDI,qword ptr [RBX + 0x18] TEST RDI,RDI JZ 0x0019b8f6 CALL 0x00170324 LAB_0019b8f6: MOV ESI,0x40 MOV RDI,RBX POP RBX JMP 0x0011ba20
/* minja::FilterTemplateToken::~FilterTemplateToken() */ void __thiscall minja::FilterTemplateToken::~FilterTemplateToken(FilterTemplateToken *this) { *(int ***)this = &PTR__FilterTemplateToken_0022ce58; if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38)); } *(int ***)this = &PTR__TemplateToken_0022c2f8; if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18) != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18)); } operator_delete(this,0x40); return; }
31,191
lf_hash_init
eloqsql/mysys/lf_hash.cc
void lf_hash_init(LF_HASH *hash, uint element_size, uint flags, uint key_offset, uint key_length, my_hash_get_key get_key, CHARSET_INFO *charset) { lf_alloc_init(&hash->alloc, sizeof(LF_SLIST)+element_size, offsetof(LF_SLIST, key)); lf_dynarray_init(&hash->array, sizeof(LF_SLIST *)); hash->size= 1; hash->count= 0; hash->element_size= element_size; hash->flags= flags; hash->charset= charset ? charset : &my_charset_bin; hash->key_offset= key_offset; hash->key_length= key_length; hash->get_key= get_key; hash->initializer= default_initializer; hash->hash_function= calc_hash; DBUG_ASSERT(get_key ? !key_offset && !key_length : key_length); }
O0
cpp
lf_hash_init: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq 0x10(%rbp), %rax movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movl %edx, -0x10(%rbp) movl %ecx, -0x14(%rbp) movl %r8d, -0x18(%rbp) movq %r9, -0x20(%rbp) movq -0x8(%rbp), %rdi addq $0x28, %rdi movl -0xc(%rbp), %eax addq $0x20, %rax movl %eax, %esi movl $0x8, %edx callq 0x105ad0 movq -0x8(%rbp), %rdi movl $0x8, %esi callq 0x105fd0 movq -0x8(%rbp), %rax movl $0x1, 0xc0(%rax) movq -0x8(%rbp), %rax movl $0x0, 0xc4(%rax) movl -0xc(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0xb8(%rax) movl -0x10(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0xbc(%rax) cmpq $0x0, 0x10(%rbp) je 0x106691 movq 0x10(%rbp), %rax movq %rax, -0x28(%rbp) jmp 0x10669e leaq 0x1ca8d8(%rip), %rax # 0x2d0f70 movq %rax, -0x28(%rbp) jmp 0x10669e movq -0x28(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0xa8(%rax) movl -0x14(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0xb0(%rax) movl -0x18(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0xb4(%rax) movq -0x20(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x90(%rax) movq -0x8(%rbp), %rax leaq 0x2f(%rip), %rcx # 0x106710 movq %rcx, 0x98(%rax) movq -0x8(%rbp), %rax leaq 0x5d(%rip), %rcx # 0x106750 movq %rcx, 0xa0(%rax) jmp 0x1066fc addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
lf_hash_init: push rbp mov rbp, rsp sub rsp, 30h mov rax, [rbp+arg_0] mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_10], edx mov [rbp+var_14], ecx mov [rbp+var_18], r8d mov [rbp+var_20], r9 mov rdi, [rbp+var_8] add rdi, 28h ; '(' mov eax, [rbp+var_C] add rax, 20h ; ' ' mov esi, eax mov edx, 8 call lf_alloc_init mov rdi, [rbp+var_8] mov esi, 8 call lf_dynarray_init mov rax, [rbp+var_8] mov dword ptr [rax+0C0h], 1 mov rax, [rbp+var_8] mov dword ptr [rax+0C4h], 0 mov ecx, [rbp+var_C] mov rax, [rbp+var_8] mov [rax+0B8h], ecx mov ecx, [rbp+var_10] mov rax, [rbp+var_8] mov [rax+0BCh], ecx cmp [rbp+arg_0], 0 jz short loc_106691 mov rax, [rbp+arg_0] mov [rbp+var_28], rax jmp short loc_10669E loc_106691: lea rax, my_charset_bin mov [rbp+var_28], rax jmp short $+2 loc_10669E: mov rcx, [rbp+var_28] mov rax, [rbp+var_8] mov [rax+0A8h], rcx mov ecx, [rbp+var_14] mov rax, [rbp+var_8] mov [rax+0B0h], ecx mov ecx, [rbp+var_18] mov rax, [rbp+var_8] mov [rax+0B4h], ecx mov rcx, [rbp+var_20] mov rax, [rbp+var_8] mov [rax+90h], rcx mov rax, [rbp+var_8] lea rcx, _ZL19default_initializerP10st_lf_hashPvPKv; default_initializer(st_lf_hash *,void *,void const*) mov [rax+98h], rcx mov rax, [rbp+var_8] lea rcx, _ZL9calc_hashPK15charset_info_stPKhm; calc_hash(charset_info_st const*,uchar const*,ulong) mov [rax+0A0h], rcx jmp short $+2 loc_1066FC: add rsp, 30h pop rbp retn
long long lf_hash_init(long long a1, int a2, int a3, int a4, int a5, long long a6, void *a7) { long long result; // rax void *v8; // [rsp+8h] [rbp-28h] lf_alloc_init(a1 + 40, a2 + 32, 8); lf_dynarray_init(a1, 8); *(_DWORD *)(a1 + 192) = 1; *(_DWORD *)(a1 + 196) = 0; *(_DWORD *)(a1 + 184) = a2; *(_DWORD *)(a1 + 188) = a3; if ( a7 ) v8 = a7; else v8 = &my_charset_bin; *(_QWORD *)(a1 + 168) = v8; *(_DWORD *)(a1 + 176) = a4; *(_DWORD *)(a1 + 180) = a5; *(_QWORD *)(a1 + 144) = a6; *(_QWORD *)(a1 + 152) = default_initializer; result = a1; *(_QWORD *)(a1 + 160) = calc_hash; return result; }
31,192
lf_hash_init
eloqsql/mysys/lf_hash.cc
void lf_hash_init(LF_HASH *hash, uint element_size, uint flags, uint key_offset, uint key_length, my_hash_get_key get_key, CHARSET_INFO *charset) { lf_alloc_init(&hash->alloc, sizeof(LF_SLIST)+element_size, offsetof(LF_SLIST, key)); lf_dynarray_init(&hash->array, sizeof(LF_SLIST *)); hash->size= 1; hash->count= 0; hash->element_size= element_size; hash->flags= flags; hash->charset= charset ? charset : &my_charset_bin; hash->key_offset= key_offset; hash->key_length= key_length; hash->get_key= get_key; hash->initializer= default_initializer; hash->hash_function= calc_hash; DBUG_ASSERT(get_key ? !key_offset && !key_length : key_length); }
O3
cpp
lf_hash_init: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %r9, -0x38(%rbp) movl %r8d, -0x2c(%rbp) movl %ecx, %r12d movl %edx, %r13d movl %esi, %ebx movq %rdi, %r14 movq 0x10(%rbp), %r15 addq $0x28, %rdi leal 0x20(%rbx), %esi movl $0x8, %edx callq 0xad0e6 movq %r14, %rdi movl $0x8, %esi callq 0xad334 movl $0x1, 0xc0(%r14) movl $0x0, 0xc4(%r14) movl %ebx, 0xb8(%r14) movl %r13d, 0xbc(%r14) testq %r15, %r15 jne 0xad582 leaq 0x2e69ce(%rip), %r15 # 0x393f50 movq %r15, 0xa8(%r14) movl %r12d, 0xb0(%r14) movl -0x2c(%rbp), %eax movl %eax, 0xb4(%r14) movq -0x38(%rbp), %rax movq %rax, 0x90(%r14) leaq 0x24(%rip), %rax # 0xad5d0 movq %rax, 0x98(%r14) leaq 0x2f(%rip), %rax # 0xad5e9 movq %rax, 0xa0(%r14) addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
lf_hash_init: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov [rbp+var_38], r9 mov [rbp+var_2C], r8d mov r12d, ecx mov r13d, edx mov ebx, esi mov r14, rdi mov r15, [rbp+arg_0] add rdi, 28h ; '(' lea esi, [rbx+20h] mov edx, 8 call lf_alloc_init mov rdi, r14 mov esi, 8 call lf_dynarray_init mov dword ptr [r14+0C0h], 1 mov dword ptr [r14+0C4h], 0 mov [r14+0B8h], ebx mov [r14+0BCh], r13d test r15, r15 jnz short loc_AD582 lea r15, my_charset_bin loc_AD582: mov [r14+0A8h], r15 mov [r14+0B0h], r12d mov eax, [rbp+var_2C] mov [r14+0B4h], eax mov rax, [rbp+var_38] mov [r14+90h], rax lea rax, _ZL19default_initializerP10st_lf_hashPvPKv; default_initializer(st_lf_hash *,void *,void const*) mov [r14+98h], rax lea rax, _ZL9calc_hashPK15charset_info_stPKhm; calc_hash(charset_info_st const*,uchar const*,ulong) mov [r14+0A0h], rax add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long ( * lf_hash_init(long long a1, int a2, int a3, int a4, int a5, long long a6, void *a7))() { void *v9; // r15 long long ( *result)(); // rax v9 = a7; lf_alloc_init(a1 + 40, a2 + 32, 8); lf_dynarray_init(a1, 8); *(_DWORD *)(a1 + 192) = 1; *(_DWORD *)(a1 + 196) = 0; *(_DWORD *)(a1 + 184) = a2; *(_DWORD *)(a1 + 188) = a3; if ( !a7 ) v9 = &my_charset_bin; *(_QWORD *)(a1 + 168) = v9; *(_DWORD *)(a1 + 176) = a4; *(_DWORD *)(a1 + 180) = a5; *(_QWORD *)(a1 + 144) = a6; *(_QWORD *)(a1 + 152) = default_initializer; result = calc_hash; *(_QWORD *)(a1 + 160) = calc_hash; return result; }
lf_hash_init: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV qword ptr [RBP + -0x38],R9 MOV dword ptr [RBP + -0x2c],R8D MOV R12D,ECX MOV R13D,EDX MOV EBX,ESI MOV R14,RDI MOV R15,qword ptr [RBP + 0x10] ADD RDI,0x28 LEA ESI,[RBX + 0x20] MOV EDX,0x8 CALL 0x001ad0e6 MOV RDI,R14 MOV ESI,0x8 CALL 0x001ad334 MOV dword ptr [R14 + 0xc0],0x1 MOV dword ptr [R14 + 0xc4],0x0 MOV dword ptr [R14 + 0xb8],EBX MOV dword ptr [R14 + 0xbc],R13D TEST R15,R15 JNZ 0x001ad582 LEA R15,[0x493f50] LAB_001ad582: MOV qword ptr [R14 + 0xa8],R15 MOV dword ptr [R14 + 0xb0],R12D MOV EAX,dword ptr [RBP + -0x2c] MOV dword ptr [R14 + 0xb4],EAX MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [R14 + 0x90],RAX LEA RAX,[0x1ad5d0] MOV qword ptr [R14 + 0x98],RAX LEA RAX,[0x1ad5e9] MOV qword ptr [R14 + 0xa0],RAX ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
void lf_hash_init(long param_1,int param_2,int4 param_3,int4 param_4,int4 param_5, int8 param_6,int1 *param_7) { lf_alloc_init(param_1 + 0x28,param_2 + 0x20,8); lf_dynarray_init(param_1,8); *(int4 *)(param_1 + 0xc0) = 1; *(int4 *)(param_1 + 0xc4) = 0; *(int *)(param_1 + 0xb8) = param_2; *(int4 *)(param_1 + 0xbc) = param_3; if (param_7 == (int1 *)0x0) { param_7 = my_charset_bin; } *(int1 **)(param_1 + 0xa8) = param_7; *(int4 *)(param_1 + 0xb0) = param_4; *(int4 *)(param_1 + 0xb4) = param_5; *(int8 *)(param_1 + 0x90) = param_6; *(code **)(param_1 + 0x98) = default_initializer; *(code **)(param_1 + 0xa0) = calc_hash; return; }
31,193
fmt::v8::detail::add_compare(fmt::v8::detail::bigint const&, fmt::v8::detail::bigint const&, fmt::v8::detail::bigint const&)
aimrt_mujoco_sim/_deps/spdlog_lib-src/include/spdlog/fmt/bundled/format-inl.h
int num_bigits() const { return static_cast<int>(bigits_.size()) + exp_; }
O3
c
fmt::v8::detail::add_compare(fmt::v8::detail::bigint const&, fmt::v8::detail::bigint const&, fmt::v8::detail::bigint const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx movl 0xa8(%rdi), %ecx movl 0x10(%rdi), %r8d addl %ecx, %r8d movl 0xa8(%rsi), %r9d movl 0x10(%rsi), %r10d addl %r9d, %r10d cmpl %r10d, %r8d movl %r10d, %eax cmovgl %r8d, %eax movl 0x10(%rdx), %r14d movl 0xa8(%rdx), %r11d leal (%r11,%r14), %ebx leal 0x1(%rax), %ebp cmpl %ebx, %ebp jge 0x47701 movl $0xffffffff, %eax # imm = 0xFFFFFFFF jmp 0x47804 cmpl %ebx, %eax jle 0x4770f movl $0x1, %eax jmp 0x47804 cmpl %ecx, %r9d movl %ecx, %ebp cmovll %r9d, %ebp cmpl %ebp, %r11d cmovll %r11d, %ebp xorl %eax, %eax cmpl %ebp, %ebx jle 0x47804 movq 0x8(%rdi), %rax movq %rax, -0x8(%rsp) movq 0x8(%rsi), %rax movq %rax, -0x10(%rsp) movq 0x8(%rdx), %rax movq %rax, -0x18(%rsp) decl %r14d movl %r11d, %edi subl %r9d, %edi movl %r11d, %r15d subl %ecx, %r15d xorl %r12d, %r12d leal (%r11,%r14), %esi incl %esi cmpl %esi, %ecx setge %al cmpl %esi, %r8d setl %r13b orb %al, %r13b jne 0x4777b leal (%r15,%r14), %eax movq -0x8(%rsp), %rdx movl (%rdx,%rax,4), %eax jmp 0x4777d xorl %eax, %eax cmpl %esi, %r9d setge %r13b cmpl %esi, %r10d setl %dl orb %r13b, %dl jne 0x4779f leal (%rdi,%r14), %edx movq -0x10(%rsp), %r13 movl (%r13,%rdx,4), %r13d jmp 0x477a2 xorl %r13d, %r13d cmpl %esi, %r11d setge %dl cmpl %esi, %ebx setl %sil orb %dl, %sil jne 0x477c0 movl %r14d, %edx movq -0x18(%rsp), %rsi movl (%rsi,%rdx,4), %esi jmp 0x477c2 xorl %esi, %esi orq %r12, %rsi addq %rax, %r13 movq %rsi, %r12 subq %r13, %r12 jb 0x47705 cmpq $0x1, %r12 ja 0x476f7 shlq $0x20, %r12 leal (%r11,%r14), %eax decl %eax movl %r14d, %edx decl %edx incl %eax movl %edx, %r14d cmpl %ebp, %eax jg 0x47756 xorl %eax, %eax cmpq %r13, %rsi setne %al negl %eax popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq nop
_ZN3fmt2v86detail11add_compareERKNS1_6bigintES4_S4_: push rbp push r15 push r14 push r13 push r12 push rbx mov ecx, [rdi+0A8h] mov r8d, [rdi+10h] add r8d, ecx mov r9d, [rsi+0A8h] mov r10d, [rsi+10h] add r10d, r9d cmp r8d, r10d mov eax, r10d cmovg eax, r8d mov r14d, [rdx+10h] mov r11d, [rdx+0A8h] lea ebx, [r11+r14] lea ebp, [rax+1] cmp ebp, ebx jge short loc_47701 loc_476F7: mov eax, 0FFFFFFFFh jmp loc_47804 loc_47701: cmp eax, ebx jle short loc_4770F loc_47705: mov eax, 1 jmp loc_47804 loc_4770F: cmp r9d, ecx mov ebp, ecx cmovl ebp, r9d cmp r11d, ebp cmovl ebp, r11d xor eax, eax cmp ebx, ebp jle loc_47804 mov rax, [rdi+8] mov [rsp+30h+var_38], rax mov rax, [rsi+8] mov [rsp+30h+var_40], rax mov rax, [rdx+8] mov [rsp+30h+var_48], rax dec r14d mov edi, r11d sub edi, r9d mov r15d, r11d sub r15d, ecx xor r12d, r12d loc_47756: lea esi, [r11+r14] inc esi cmp ecx, esi setnl al cmp r8d, esi setl r13b or r13b, al jnz short loc_4777B lea eax, [r15+r14] mov rdx, [rsp+30h+var_38] mov eax, [rdx+rax*4] jmp short loc_4777D loc_4777B: xor eax, eax loc_4777D: cmp r9d, esi setnl r13b cmp r10d, esi setl dl or dl, r13b jnz short loc_4779F lea edx, [rdi+r14] mov r13, [rsp+30h+var_40] mov r13d, [r13+rdx*4+0] jmp short loc_477A2 loc_4779F: xor r13d, r13d loc_477A2: cmp r11d, esi setnl dl cmp ebx, esi setl sil or sil, dl jnz short loc_477C0 mov edx, r14d mov rsi, [rsp+30h+var_48] mov esi, [rsi+rdx*4] jmp short loc_477C2 loc_477C0: xor esi, esi loc_477C2: or rsi, r12 add r13, rax mov r12, rsi sub r12, r13 jb loc_47705 cmp r12, 1 ja loc_476F7 shl r12, 20h lea eax, [r11+r14] dec eax mov edx, r14d dec edx inc eax mov r14d, edx cmp eax, ebp jg loc_47756 xor eax, eax cmp rsi, r13 setnz al neg eax loc_47804: pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long fmt::v8::detail::add_compare( fmt::v8::detail *this, const fmt::v8::detail::bigint *a2, const fmt::v8::detail::bigint *a3, const fmt::v8::detail::bigint *a4) { int v4; // ecx int v5; // r8d int v6; // r9d int v7; // r10d int v8; // eax int v9; // r14d int v10; // r11d int v11; // ebx long long result; // rax int v13; // ebp unsigned int v14; // r14d unsigned long long v15; // r12 int v16; // esi long long v17; // rax long long v18; // r13 long long v19; // rsi unsigned long long v20; // rsi unsigned long long v21; // r13 unsigned long long v22; // r12 int v23; // eax long long v24; // [rsp+8h] [rbp-40h] v4 = *((_DWORD *)this + 42); v5 = v4 + *((_DWORD *)this + 4); v6 = *((_DWORD *)a2 + 42); v7 = v6 + *((_DWORD *)a2 + 4); v8 = v7; if ( v5 > v7 ) v8 = v4 + *((_DWORD *)this + 4); v9 = *((_DWORD *)a3 + 4); v10 = *((_DWORD *)a3 + 42); v11 = v10 + v9; if ( v8 + 1 < v10 + v9 ) return 0xFFFFFFFFLL; if ( v8 > v11 ) return 1LL; v13 = *((_DWORD *)this + 42); if ( v6 < v4 ) v13 = *((_DWORD *)a2 + 42); if ( v10 < v13 ) v13 = *((_DWORD *)a3 + 42); result = 0LL; if ( v11 > v13 ) { v24 = *((_QWORD *)a2 + 1); v14 = v9 - 1; v15 = 0LL; while ( 1 ) { v16 = v10 + v14 + 1; v17 = v4 >= v16 || v5 < v16 ? 0LL : *(unsigned int *)(*((_QWORD *)this + 1) + 4LL * (v10 - v4 + v14)); v18 = v6 >= v16 || v7 < v16 ? 0LL : *(unsigned int *)(v24 + 4LL * (v10 - v6 + v14)); v19 = v10 >= v16 || v11 < v16 ? 0LL : *(unsigned int *)(*((_QWORD *)a3 + 1) + 4LL * v14); v20 = v15 | v19; v21 = v17 + v18; v22 = v20 - v21; if ( v20 < v21 ) break; if ( v22 > 1 ) return 0xFFFFFFFFLL; v15 = v22 << 32; v23 = v10 + v14--; if ( v23 <= v13 ) return (unsigned int)-(v20 != v21); } return 1LL; } return result; }
add_compare: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX MOV ECX,dword ptr [RDI + 0xa8] MOV R8D,dword ptr [RDI + 0x10] ADD R8D,ECX MOV R9D,dword ptr [RSI + 0xa8] MOV R10D,dword ptr [RSI + 0x10] ADD R10D,R9D CMP R8D,R10D MOV EAX,R10D CMOVG EAX,R8D MOV R14D,dword ptr [RDX + 0x10] MOV R11D,dword ptr [RDX + 0xa8] LEA EBX,[R11 + R14*0x1] LEA EBP,[RAX + 0x1] CMP EBP,EBX JGE 0x00147701 LAB_001476f7: MOV EAX,0xffffffff JMP 0x00147804 LAB_00147701: CMP EAX,EBX JLE 0x0014770f LAB_00147705: MOV EAX,0x1 JMP 0x00147804 LAB_0014770f: CMP R9D,ECX MOV EBP,ECX CMOVL EBP,R9D CMP R11D,EBP CMOVL EBP,R11D XOR EAX,EAX CMP EBX,EBP JLE 0x00147804 MOV RAX,qword ptr [RDI + 0x8] MOV qword ptr [RSP + -0x8],RAX MOV RAX,qword ptr [RSI + 0x8] MOV qword ptr [RSP + -0x10],RAX MOV RAX,qword ptr [RDX + 0x8] MOV qword ptr [RSP + -0x18],RAX DEC R14D MOV EDI,R11D SUB EDI,R9D MOV R15D,R11D SUB R15D,ECX XOR R12D,R12D LAB_00147756: LEA ESI,[R11 + R14*0x1] INC ESI CMP ECX,ESI SETGE AL CMP R8D,ESI SETL R13B OR R13B,AL JNZ 0x0014777b LEA EAX,[R15 + R14*0x1] MOV RDX,qword ptr [RSP + -0x8] MOV EAX,dword ptr [RDX + RAX*0x4] JMP 0x0014777d LAB_0014777b: XOR EAX,EAX LAB_0014777d: CMP R9D,ESI SETGE R13B CMP R10D,ESI SETL DL OR DL,R13B JNZ 0x0014779f LEA EDX,[RDI + R14*0x1] MOV R13,qword ptr [RSP + -0x10] MOV R13D,dword ptr [R13 + RDX*0x4] JMP 0x001477a2 LAB_0014779f: XOR R13D,R13D LAB_001477a2: CMP R11D,ESI SETGE DL CMP EBX,ESI SETL SIL OR SIL,DL JNZ 0x001477c0 MOV EDX,R14D MOV RSI,qword ptr [RSP + -0x18] MOV ESI,dword ptr [RSI + RDX*0x4] JMP 0x001477c2 LAB_001477c0: XOR ESI,ESI LAB_001477c2: OR RSI,R12 ADD R13,RAX MOV R12,RSI SUB R12,R13 JC 0x00147705 CMP R12,0x1 JA 0x001476f7 SHL R12,0x20 LEA EAX,[R11 + R14*0x1] DEC EAX MOV EDX,R14D DEC EDX INC EAX MOV R14D,EDX CMP EAX,EBP JG 0x00147756 XOR EAX,EAX CMP RSI,R13 SETNZ AL NEG EAX LAB_00147804: POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* fmt::v8::detail::add_compare(fmt::v8::detail::bigint const&, fmt::v8::detail::bigint const&, fmt::v8::detail::bigint const&) */ int fmt::v8::detail::add_compare(bigint *param_1,bigint *param_2,bigint *param_3) { int iVar1; int iVar2; int iVar3; int iVar4; ulong uVar5; int iVar6; int iVar7; ulong uVar8; int iVar9; int iVar10; ulong uVar11; ulong uVar12; uint uVar13; iVar2 = *(int *)(param_1 + 0xa8); iVar9 = *(int *)(param_1 + 0x10) + iVar2; iVar3 = *(int *)(param_2 + 0xa8); iVar10 = *(int *)(param_2 + 0x10) + iVar3; iVar6 = iVar10; if (iVar10 < iVar9) { iVar6 = iVar9; } uVar13 = *(uint *)(param_3 + 0x10); iVar4 = *(int *)(param_3 + 0xa8); iVar1 = iVar4 + uVar13; if (iVar6 + 1 < iVar1) { LAB_001476f7: iVar7 = -1; } else if (iVar1 < iVar6) { LAB_00147705: iVar7 = 1; } else { iVar6 = iVar2; if (iVar3 < iVar2) { iVar6 = iVar3; } if (iVar4 < iVar6) { iVar6 = iVar4; } iVar7 = 0; if (iVar6 < iVar1) { uVar11 = 0; do { uVar13 = uVar13 - 1; iVar7 = iVar4 + uVar13 + 1; if (iVar9 < iVar7 || iVar7 <= iVar2) { uVar5 = 0; } else { uVar5 = (ulong)*(uint *)(*(long *)(param_1 + 8) + (ulong)((iVar4 - iVar2) + uVar13) * 4); } if (iVar10 < iVar7 || iVar7 <= iVar3) { uVar12 = 0; } else { uVar12 = (ulong)*(uint *)(*(long *)(param_2 + 8) + (ulong)((iVar4 - iVar3) + uVar13) * 4); } if (iVar1 < iVar7 || iVar7 <= iVar4) { uVar8 = 0; } else { uVar8 = (ulong)*(uint *)(*(long *)(param_3 + 8) + (ulong)uVar13 * 4); } uVar8 = uVar8 | uVar11; uVar12 = uVar12 + uVar5; if (uVar8 < uVar12) goto LAB_00147705; if (1 < uVar8 - uVar12) goto LAB_001476f7; uVar11 = uVar8 - uVar12 << 0x20; } while (iVar6 < (int)(iVar4 + uVar13)); iVar7 = -(uint)(uVar8 != uVar12); } } return iVar7; }
31,194
void nlohmann::json_abi_v3_12_0::detail::external_constructor<(nlohmann::json_abi_v3_12_0::detail::value_t)2>::construct<nlohmann::json_abi_v3_12_0::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_12_0::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, 0>(nlohmann::json_abi_v3_12_0::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_12_0::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&)
shubhamoy[P]dir2txt/include/nlohmann/json.hpp
static void construct(BasicJsonType& j, const CompatibleArrayType& arr) { using std::begin; using std::end; j.m_data.m_value.destroy(j.m_data.m_type); j.m_data.m_type = value_t::array; j.m_data.m_value.array = j.template create<typename BasicJsonType::array_t>(begin(arr), end(arr)); j.set_parents(); j.assert_invariant(); }
O3
cpp
void nlohmann::json_abi_v3_12_0::detail::external_constructor<(nlohmann::json_abi_v3_12_0::detail::value_t)2>::construct<nlohmann::json_abi_v3_12_0::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_12_0::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, 0>(nlohmann::json_abi_v3_12_0::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_12_0::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&): pushq %r14 pushq %rbx subq $0x18, %rsp movq %rsi, %rbx movq %rdi, %r14 addq $0x8, %rdi movzbl (%r14), %esi callq 0x297ee movb $0x2, (%r14) movq (%rbx), %rax leaq 0x10(%rsp), %rdi movq %rax, (%rdi) movq 0x8(%rbx), %rax leaq 0x8(%rsp), %rsi movq %rax, (%rsi) callq 0x32050 movq %rax, 0x8(%r14) movq %r14, %rdi movl $0x1, %esi callq 0x29700 addq $0x18, %rsp popq %rbx popq %r14 retq nop
_ZN8nlohmann16json_abi_v3_12_06detail20external_constructorILNS1_7value_tE2EE9constructINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEES8_ISE_SaISE_EETnNSt9enable_ifIXntsr3std7is_sameIT0_NT_7array_tEEE5valueEiE4typeELi0EEEvRSN_RKSM_: push r14 push rbx sub rsp, 18h mov rbx, rsi mov r14, rdi add rdi, 8 movzx esi, byte ptr [r14] call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_value7destroyENS0_6detail7value_tE; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::json_value::destroy(nlohmann::json_abi_v3_12_0::detail::value_t) mov byte ptr [r14], 2 mov rax, [rbx] lea rdi, [rsp+28h+var_18] mov [rdi], rax mov rax, [rbx+8] lea rsi, [rsp+28h+var_20] mov [rsi], rax call _ZN8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6createIS3_ISD_SaISD_EEJN9__gnu_cxx17__normal_iteratorIPKS9_S3_IS9_SaIS9_EEEESN_EEEPT_DpOT0_; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::create<std::vector<nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>>,__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>,__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>>(__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>,__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>> &&) mov [r14+8], rax mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_12_010basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) add rsp, 18h pop rbx pop r14 retn
long long ZN8nlohmann16json_abi_v3_12_06detail20external_constructorILNS1_7value_tE2EE9constructINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEES8_ISE_SaISE_EETnNSt9enable_ifIXntsr3std7is_sameIT0_NT_7array_tEEE5valueEiE4typeELi0EEEvRSN_RKSM_( unsigned __int8 *a1) { long long result; // rax nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>::json_value::destroy( (void ***)a1 + 1, *a1); *a1 = 2; result = nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>::create<std::vector<nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>>,__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>,__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>>(); *((_QWORD *)a1 + 1) = result; nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1); return result; }
_ZN8nlohmann16json_abi_v3_12_06detail20external_constructorILNS1_7value_tE2EE9constructINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEES8_ISE_SaISE_EETnNSt9enable_ifIXntsr3std7is_sameIT0_NT_7array_tEEE5valueEiE4typeELi0EEEvRSN_RKSM_: PUSH R14 PUSH RBX SUB RSP,0x18 MOV RBX,RSI MOV R14,RDI ADD RDI,0x8 MOVZX ESI,byte ptr [R14] CALL 0x001297ee MOV byte ptr [R14],0x2 MOV RAX,qword ptr [RBX] LEA RDI,[RSP + 0x10] MOV qword ptr [RDI],RAX MOV RAX,qword ptr [RBX + 0x8] LEA RSI,[RSP + 0x8] MOV qword ptr [RSI],RAX CALL 0x00132050 MOV qword ptr [R14 + 0x8],RAX MOV RDI,R14 MOV ESI,0x1 CALL 0x00129700 ADD RSP,0x18 POP RBX POP R14 RET
void _ZN8nlohmann16json_abi_v3_12_06detail20external_constructorILNS1_7value_tE2EE9constructINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEES8_ISE_SaISE_EETnNSt9enable_ifIXntsr3std7is_sameIT0_NT_7array_tEEE5valueEiE4typeELi0EEEvRSN_RKSM_ (int1 *param_1,int8 *param_2) { vector *pvVar1; int8 local_20; int8 local_18; nlohmann::json_abi_v3_12_0:: basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::json_value::destroy((json_value *)(param_1 + 8),*param_1); *param_1 = 2; local_18 = *param_2; local_20 = param_2[1]; pvVar1 = nlohmann::json_abi_v3_12_0:: basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> :: create<std::vector<nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_12_0::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>,__gnu_cxx::__normal_iterator<std::__cxx11::string_const*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>,__gnu_cxx::__normal_iterator<std::__cxx11::string_const*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>> ((__normal_iterator *)&local_18,(__normal_iterator *)&local_20); *(vector **)(param_1 + 8) = pvVar1; nlohmann::json_abi_v3_12_0:: basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_12_0::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(param_1,0)); return; }
31,195
hp_search
eloqsql/storage/heap/hp_hash.c
uchar *hp_search(HP_INFO *info, HP_KEYDEF *keyinfo, const uchar *key, uint nextflag) { reg1 HASH_INFO *pos,*prev_ptr; uint old_nextflag; HP_SHARE *share=info->s; DBUG_ENTER("hp_search"); old_nextflag=nextflag; prev_ptr=0; if (share->records) { ulong search_pos= hp_mask(hp_hashnr(keyinfo, key), share->blength, share->records); pos=hp_find_hash(&keyinfo->block, search_pos); if (search_pos != hp_mask(pos->hash_of_key, share->blength, share->records)) goto not_found; /* Wrong link */ do { if (!hp_key_cmp(keyinfo, pos->ptr_to_rec, key)) { switch (nextflag) { case 0: /* Search after key */ DBUG_PRINT("exit", ("found key at %p", pos->ptr_to_rec)); info->current_hash_ptr=pos; DBUG_RETURN(info->current_ptr= pos->ptr_to_rec); case 1: /* Search next */ if (pos->ptr_to_rec == info->current_ptr) nextflag=0; break; case 2: /* Search previous */ if (pos->ptr_to_rec == info->current_ptr) { my_errno=HA_ERR_KEY_NOT_FOUND; /* If gpos == 0 */ info->current_hash_ptr=prev_ptr; DBUG_RETURN(info->current_ptr=prev_ptr ? prev_ptr->ptr_to_rec : 0); } prev_ptr=pos; /* Prev. record found */ break; case 3: /* Search same */ if (pos->ptr_to_rec == info->current_ptr) { info->current_hash_ptr=pos; DBUG_RETURN(info->current_ptr); } } } } while ((pos=pos->next_key)); } not_found: my_errno=HA_ERR_KEY_NOT_FOUND; if (nextflag == 2 && ! info->current_ptr) { /* Do a previous from end */ info->current_hash_ptr=prev_ptr; DBUG_RETURN(info->current_ptr=prev_ptr ? prev_ptr->ptr_to_rec : 0); } if (old_nextflag && nextflag) my_errno=HA_ERR_RECORD_CHANGED; /* Didn't find old record */ DBUG_PRINT("exit",("Error: %d",my_errno)); info->current_hash_ptr=0; DBUG_RETURN((info->current_ptr= 0)); }
O0
c
hp_search: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x48(%rbp) movl -0x24(%rbp), %eax movl %eax, -0x3c(%rbp) movq $0x0, -0x38(%rbp) movq -0x48(%rbp), %rax cmpq $0x0, 0xd0(%rax) je 0x2957f movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rsi callq 0x29680 movq %rax, %rdi movq -0x48(%rbp), %rax movq 0xd8(%rax), %rsi movq -0x48(%rbp), %rax movq 0xd0(%rax), %rdx callq 0x29620 movq %rax, -0x50(%rbp) movq -0x18(%rbp), %rdi addq $0x18, %rdi movq -0x50(%rbp), %rsi callq 0x26d60 movq %rax, -0x30(%rbp) movq -0x50(%rbp), %rax movq %rax, -0x58(%rbp) movq -0x30(%rbp), %rax movq 0x10(%rax), %rdi movq -0x48(%rbp), %rax movq 0xd8(%rax), %rsi movq -0x48(%rbp), %rax movq 0xd0(%rax), %rdx callq 0x29620 movq %rax, %rcx movq -0x58(%rbp), %rax cmpq %rcx, %rax je 0x29442 jmp 0x29581 jmp 0x29444 movq -0x18(%rbp), %rdi movq -0x30(%rbp), %rax movq 0x8(%rax), %rsi movq -0x20(%rbp), %rdx callq 0x29930 cmpl $0x0, %eax jne 0x29566 movl -0x24(%rbp), %eax movq %rax, -0x60(%rbp) subq $0x3, %rax ja 0x29564 movq -0x60(%rbp), %rax leaq 0x63052(%rip), %rcx # 0x8c4d0 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax jmp 0x29489 jmp 0x2948b movq -0x30(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x10(%rax) movq -0x30(%rbp), %rax movq 0x8(%rax), %rax movq -0x10(%rbp), %rcx movq %rax, 0x8(%rcx) movq %rax, -0x8(%rbp) jmp 0x29613 movq -0x30(%rbp), %rax movq 0x8(%rax), %rax movq -0x10(%rbp), %rcx cmpq 0x8(%rcx), %rax jne 0x294c9 movl $0x0, -0x24(%rbp) jmp 0x29564 movq -0x30(%rbp), %rax movq 0x8(%rax), %rax movq -0x10(%rbp), %rcx cmpq 0x8(%rcx), %rax jne 0x29529 callq 0x31370 movl $0x78, (%rax) movq -0x38(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x10(%rax) cmpq $0x0, -0x38(%rbp) je 0x2950c movq -0x38(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x68(%rbp) jmp 0x29514 xorl %eax, %eax movq %rax, -0x68(%rbp) jmp 0x29514 movq -0x68(%rbp), %rax movq -0x10(%rbp), %rcx movq %rax, 0x8(%rcx) movq %rax, -0x8(%rbp) jmp 0x29613 movq -0x30(%rbp), %rax movq %rax, -0x38(%rbp) jmp 0x29564 movq -0x30(%rbp), %rax movq 0x8(%rax), %rax movq -0x10(%rbp), %rcx cmpq 0x8(%rcx), %rax jne 0x29562 movq -0x30(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x10(%rax) movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x8(%rbp) jmp 0x29613 jmp 0x29564 jmp 0x29566 jmp 0x29568 movq -0x30(%rbp), %rax movq (%rax), %rax movq %rax, -0x30(%rbp) cmpq $0x0, %rax jne 0x29444 jmp 0x2957f jmp 0x29581 callq 0x31370 movl $0x78, (%rax) cmpl $0x2, -0x24(%rbp) jne 0x295d8 movq -0x10(%rbp), %rax cmpq $0x0, 0x8(%rax) jne 0x295d8 movq -0x38(%rbp), %rcx movq -0x10(%rbp), %rax movq %rcx, 0x10(%rax) cmpq $0x0, -0x38(%rbp) je 0x295be movq -0x38(%rbp), %rax movq 0x8(%rax), %rax movq %rax, -0x70(%rbp) jmp 0x295c6 xorl %eax, %eax movq %rax, -0x70(%rbp) jmp 0x295c6 movq -0x70(%rbp), %rax movq -0x10(%rbp), %rcx movq %rax, 0x8(%rcx) movq %rax, -0x8(%rbp) jmp 0x29613 cmpl $0x0, -0x3c(%rbp) je 0x295ef cmpl $0x0, -0x24(%rbp) je 0x295ef callq 0x31370 movl $0x7b, (%rax) jmp 0x295f1 jmp 0x295f3 movq -0x10(%rbp), %rax movq $0x0, 0x10(%rax) movq -0x10(%rbp), %rax movq $0x0, 0x8(%rax) movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x70, %rsp popq %rbp retq nopl (%rax)
hp_search: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_48], rax mov eax, [rbp+var_24] mov [rbp+var_3C], eax mov [rbp+var_38], 0 mov rax, [rbp+var_48] cmp qword ptr [rax+0D0h], 0 jz loc_2957F mov rdi, [rbp+var_18] mov rsi, [rbp+var_20] call hp_hashnr mov rdi, rax mov rax, [rbp+var_48] mov rsi, [rax+0D8h] mov rax, [rbp+var_48] mov rdx, [rax+0D0h] call hp_mask_1 mov [rbp+var_50], rax mov rdi, [rbp+var_18] add rdi, 18h mov rsi, [rbp+var_50] call hp_find_block mov [rbp+var_30], rax mov rax, [rbp+var_50] mov [rbp+var_58], rax mov rax, [rbp+var_30] mov rdi, [rax+10h] mov rax, [rbp+var_48] mov rsi, [rax+0D8h] mov rax, [rbp+var_48] mov rdx, [rax+0D0h] call hp_mask_1 mov rcx, rax mov rax, [rbp+var_58] cmp rax, rcx jz short loc_29442 jmp loc_29581 loc_29442: jmp short $+2 loc_29444: mov rdi, [rbp+var_18] mov rax, [rbp+var_30] mov rsi, [rax+8] mov rdx, [rbp+var_20] call hp_key_cmp cmp eax, 0 jnz loc_29566 mov eax, [rbp+var_24] mov [rbp+var_60], rax sub rax, 3; switch 4 cases ja def_29485; jumptable 0000000000029485 default case mov rax, [rbp+var_60] lea rcx, jpt_29485 movsxd rax, ds:(jpt_29485 - 8C4D0h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_29487: jmp short $+2; jumptable 0000000000029485 case 0 loc_29489: jmp short $+2 loc_2948B: mov rcx, [rbp+var_30] mov rax, [rbp+var_10] mov [rax+10h], rcx mov rax, [rbp+var_30] mov rax, [rax+8] mov rcx, [rbp+var_10] mov [rcx+8], rax mov [rbp+var_8], rax jmp loc_29613 loc_294B0: mov rax, [rbp+var_30]; jumptable 0000000000029485 case 1 mov rax, [rax+8] mov rcx, [rbp+var_10] cmp rax, [rcx+8] jnz short loc_294C9 mov [rbp+var_24], 0 loc_294C9: jmp def_29485; jumptable 0000000000029485 default case loc_294CE: mov rax, [rbp+var_30]; jumptable 0000000000029485 case 2 mov rax, [rax+8] mov rcx, [rbp+var_10] cmp rax, [rcx+8] jnz short loc_29529 call _my_thread_var mov dword ptr [rax], 78h ; 'x' mov rcx, [rbp+var_38] mov rax, [rbp+var_10] mov [rax+10h], rcx cmp [rbp+var_38], 0 jz short loc_2950C mov rax, [rbp+var_38] mov rax, [rax+8] mov [rbp+var_68], rax jmp short loc_29514 loc_2950C: xor eax, eax mov [rbp+var_68], rax jmp short $+2 loc_29514: mov rax, [rbp+var_68] mov rcx, [rbp+var_10] mov [rcx+8], rax mov [rbp+var_8], rax jmp loc_29613 loc_29529: mov rax, [rbp+var_30] mov [rbp+var_38], rax jmp short def_29485; jumptable 0000000000029485 default case loc_29533: mov rax, [rbp+var_30]; jumptable 0000000000029485 case 3 mov rax, [rax+8] mov rcx, [rbp+var_10] cmp rax, [rcx+8] jnz short loc_29562 mov rcx, [rbp+var_30] mov rax, [rbp+var_10] mov [rax+10h], rcx mov rax, [rbp+var_10] mov rax, [rax+8] mov [rbp+var_8], rax jmp loc_29613 loc_29562: jmp short $+2; jumptable 0000000000029485 default case def_29485: jmp short $+2; jumptable 0000000000029485 default case loc_29566: jmp short $+2 loc_29568: mov rax, [rbp+var_30] mov rax, [rax] mov [rbp+var_30], rax cmp rax, 0 jnz loc_29444 jmp short $+2 loc_2957F: jmp short $+2 loc_29581: call _my_thread_var mov dword ptr [rax], 78h ; 'x' cmp [rbp+var_24], 2 jnz short loc_295D8 mov rax, [rbp+var_10] cmp qword ptr [rax+8], 0 jnz short loc_295D8 mov rcx, [rbp+var_38] mov rax, [rbp+var_10] mov [rax+10h], rcx cmp [rbp+var_38], 0 jz short loc_295BE mov rax, [rbp+var_38] mov rax, [rax+8] mov [rbp+var_70], rax jmp short loc_295C6 loc_295BE: xor eax, eax mov [rbp+var_70], rax jmp short $+2 loc_295C6: mov rax, [rbp+var_70] mov rcx, [rbp+var_10] mov [rcx+8], rax mov [rbp+var_8], rax jmp short loc_29613 loc_295D8: cmp [rbp+var_3C], 0 jz short loc_295EF cmp [rbp+var_24], 0 jz short loc_295EF call _my_thread_var mov dword ptr [rax], 7Bh ; '{' loc_295EF: jmp short $+2 loc_295F1: jmp short $+2 loc_295F3: mov rax, [rbp+var_10] mov qword ptr [rax+10h], 0 mov rax, [rbp+var_10] mov qword ptr [rax+8], 0 mov [rbp+var_8], 0 loc_29613: mov rax, [rbp+var_8] add rsp, 70h pop rbp retn
long long hp_search(_QWORD *a1, long long a2, long long a3, int a4) { long long v4; // rax long long v5; // rax long long v7; // [rsp+0h] [rbp-70h] long long v8; // [rsp+8h] [rbp-68h] unsigned long long v9; // [rsp+20h] [rbp-50h] long long v10; // [rsp+28h] [rbp-48h] _QWORD *v12; // [rsp+38h] [rbp-38h] _QWORD *block; // [rsp+40h] [rbp-30h] int v14; // [rsp+4Ch] [rbp-24h] v14 = a4; v10 = *a1; v12 = 0LL; if ( *(_QWORD *)(*a1 + 208LL) ) { v4 = hp_hashnr(a2, a3); v9 = hp_mask_1(v4, *(_QWORD *)(v10 + 216), *(_QWORD *)(v10 + 208)); block = (_QWORD *)hp_find_block((long long *)(a2 + 24), v9); if ( v9 == hp_mask_1(block[2], *(_QWORD *)(v10 + 216), *(_QWORD *)(v10 + 208)) ) { do { if ( !(unsigned int)hp_key_cmp(a2, block[1], a3) ) { switch ( v14 ) { case 0: a1[2] = block; v5 = block[1]; a1[1] = v5; return v5; case 1: if ( block[1] == a1[1] ) v14 = 0; break; case 2: if ( block[1] == a1[1] ) { *(_DWORD *)my_thread_var() = 120; a1[2] = v12; if ( v12 ) v8 = v12[1]; else v8 = 0LL; a1[1] = v8; return v8; } v12 = block; break; case 3: if ( block[1] != a1[1] ) break; a1[2] = block; return a1[1]; default: break; } } block = (_QWORD *)*block; } while ( block ); } } *(_DWORD *)my_thread_var() = 120; if ( v14 != 2 || a1[1] ) { if ( a4 && v14 ) *(_DWORD *)my_thread_var() = 123; a1[2] = 0LL; a1[1] = 0LL; return 0LL; } else { a1[2] = v12; if ( v12 ) v7 = v12[1]; else v7 = 0LL; a1[1] = v7; return v7; } }
hp_search: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV dword ptr [RBP + -0x24],ECX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x48],RAX MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x3c],EAX MOV qword ptr [RBP + -0x38],0x0 MOV RAX,qword ptr [RBP + -0x48] CMP qword ptr [RAX + 0xd0],0x0 JZ 0x0012957f MOV RDI,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] CALL 0x00129680 MOV RDI,RAX MOV RAX,qword ptr [RBP + -0x48] MOV RSI,qword ptr [RAX + 0xd8] MOV RAX,qword ptr [RBP + -0x48] MOV RDX,qword ptr [RAX + 0xd0] CALL 0x00129620 MOV qword ptr [RBP + -0x50],RAX MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x18 MOV RSI,qword ptr [RBP + -0x50] CALL 0x00126d60 MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x30] MOV RDI,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x48] MOV RSI,qword ptr [RAX + 0xd8] MOV RAX,qword ptr [RBP + -0x48] MOV RDX,qword ptr [RAX + 0xd0] CALL 0x00129620 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x58] CMP RAX,RCX JZ 0x00129442 JMP 0x00129581 LAB_00129442: JMP 0x00129444 LAB_00129444: MOV RDI,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x30] MOV RSI,qword ptr [RAX + 0x8] MOV RDX,qword ptr [RBP + -0x20] CALL 0x00129930 CMP EAX,0x0 JNZ 0x00129566 MOV EAX,dword ptr [RBP + -0x24] MOV qword ptr [RBP + -0x60],RAX SUB RAX,0x3 JA 0x00129564 MOV RAX,qword ptr [RBP + -0x60] LEA RCX,[0x18c4d0] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_0: JMP 0x00129489 LAB_00129489: JMP 0x0012948b LAB_0012948b: MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x10],RCX MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x10] MOV qword ptr [RCX + 0x8],RAX MOV qword ptr [RBP + -0x8],RAX JMP 0x00129613 caseD_1: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0x8] JNZ 0x001294c9 MOV dword ptr [RBP + -0x24],0x0 LAB_001294c9: JMP 0x00129564 caseD_2: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0x8] JNZ 0x00129529 CALL 0x00131370 MOV dword ptr [RAX],0x78 MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x10],RCX CMP qword ptr [RBP + -0x38],0x0 JZ 0x0012950c MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x68],RAX JMP 0x00129514 LAB_0012950c: XOR EAX,EAX MOV qword ptr [RBP + -0x68],RAX JMP 0x00129514 LAB_00129514: MOV RAX,qword ptr [RBP + -0x68] MOV RCX,qword ptr [RBP + -0x10] MOV qword ptr [RCX + 0x8],RAX MOV qword ptr [RBP + -0x8],RAX JMP 0x00129613 LAB_00129529: MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x38],RAX JMP 0x00129564 caseD_3: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0x8] JNZ 0x00129562 MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x10],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x8],RAX JMP 0x00129613 LAB_00129562: JMP 0x00129564 LAB_00129564: JMP 0x00129566 default: JMP 0x00129568 LAB_00129568: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x30],RAX CMP RAX,0x0 JNZ 0x00129444 JMP 0x0012957f LAB_0012957f: JMP 0x00129581 LAB_00129581: CALL 0x00131370 MOV dword ptr [RAX],0x78 CMP dword ptr [RBP + -0x24],0x2 JNZ 0x001295d8 MOV RAX,qword ptr [RBP + -0x10] CMP qword ptr [RAX + 0x8],0x0 JNZ 0x001295d8 MOV RCX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x10],RCX CMP qword ptr [RBP + -0x38],0x0 JZ 0x001295be MOV RAX,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x70],RAX JMP 0x001295c6 LAB_001295be: XOR EAX,EAX MOV qword ptr [RBP + -0x70],RAX JMP 0x001295c6 LAB_001295c6: MOV RAX,qword ptr [RBP + -0x70] MOV RCX,qword ptr [RBP + -0x10] MOV qword ptr [RCX + 0x8],RAX MOV qword ptr [RBP + -0x8],RAX JMP 0x00129613 LAB_001295d8: CMP dword ptr [RBP + -0x3c],0x0 JZ 0x001295ef CMP dword ptr [RBP + -0x24],0x0 JZ 0x001295ef CALL 0x00131370 MOV dword ptr [RAX],0x7b LAB_001295ef: JMP 0x001295f1 LAB_001295f1: JMP 0x001295f3 LAB_001295f3: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x10],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x8],0x0 MOV qword ptr [RBP + -0x8],0x0 LAB_00129613: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x70 POP RBP RET
long hp_search(long *param_1,long param_2,int8 param_3,int param_4) { int iVar1; int8 uVar2; long lVar3; long lVar4; int4 *puVar5; long local_78; long local_70; long *local_40; long *local_38; int local_2c; long local_10; lVar4 = *param_1; local_40 = (long *)0x0; local_2c = param_4; if (*(long *)(lVar4 + 0xd0) != 0) { uVar2 = hp_hashnr(param_2,param_3); lVar3 = hp_mask(uVar2,*(int8 *)(lVar4 + 0xd8),*(int8 *)(lVar4 + 0xd0)); local_38 = (long *)hp_find_block(param_2 + 0x18,lVar3); lVar4 = hp_mask(local_38[2],*(int8 *)(lVar4 + 0xd8),*(int8 *)(lVar4 + 0xd0)); if (lVar3 == lVar4) { do { iVar1 = hp_key_cmp(param_2,local_38[1],param_3); if (iVar1 == 0) { switch(local_2c) { case 0: param_1[2] = (long)local_38; lVar4 = local_38[1]; param_1[1] = lVar4; return lVar4; case 1: if (local_38[1] == param_1[1]) { local_2c = 0; } break; case 2: if (local_38[1] == param_1[1]) { puVar5 = (int4 *)_my_thread_var(); *puVar5 = 0x78; param_1[2] = (long)local_40; if (local_40 == (long *)0x0) { local_70 = 0; } else { local_70 = local_40[1]; } param_1[1] = local_70; return local_70; } local_40 = local_38; break; case 3: if (local_38[1] == param_1[1]) { param_1[2] = (long)local_38; return param_1[1]; } } } local_38 = (long *)*local_38; } while (local_38 != (long *)0x0); } } puVar5 = (int4 *)_my_thread_var(); *puVar5 = 0x78; if ((local_2c == 2) && (param_1[1] == 0)) { param_1[2] = (long)local_40; if (local_40 == (long *)0x0) { local_78 = 0; } else { local_78 = local_40[1]; } param_1[1] = local_78; local_10 = local_78; } else { if ((param_4 != 0) && (local_2c != 0)) { puVar5 = (int4 *)_my_thread_var(); *puVar5 = 0x7b; } param_1[2] = 0; param_1[1] = 0; local_10 = 0; } return local_10; }
31,196
hp_search
eloqsql/storage/heap/hp_hash.c
uchar *hp_search(HP_INFO *info, HP_KEYDEF *keyinfo, const uchar *key, uint nextflag) { reg1 HASH_INFO *pos,*prev_ptr; uint old_nextflag; HP_SHARE *share=info->s; DBUG_ENTER("hp_search"); old_nextflag=nextflag; prev_ptr=0; if (share->records) { ulong search_pos= hp_mask(hp_hashnr(keyinfo, key), share->blength, share->records); pos=hp_find_hash(&keyinfo->block, search_pos); if (search_pos != hp_mask(pos->hash_of_key, share->blength, share->records)) goto not_found; /* Wrong link */ do { if (!hp_key_cmp(keyinfo, pos->ptr_to_rec, key)) { switch (nextflag) { case 0: /* Search after key */ DBUG_PRINT("exit", ("found key at %p", pos->ptr_to_rec)); info->current_hash_ptr=pos; DBUG_RETURN(info->current_ptr= pos->ptr_to_rec); case 1: /* Search next */ if (pos->ptr_to_rec == info->current_ptr) nextflag=0; break; case 2: /* Search previous */ if (pos->ptr_to_rec == info->current_ptr) { my_errno=HA_ERR_KEY_NOT_FOUND; /* If gpos == 0 */ info->current_hash_ptr=prev_ptr; DBUG_RETURN(info->current_ptr=prev_ptr ? prev_ptr->ptr_to_rec : 0); } prev_ptr=pos; /* Prev. record found */ break; case 3: /* Search same */ if (pos->ptr_to_rec == info->current_ptr) { info->current_hash_ptr=pos; DBUG_RETURN(info->current_ptr); } } } } while ((pos=pos->next_key)); } not_found: my_errno=HA_ERR_KEY_NOT_FOUND; if (nextflag == 2 && ! info->current_ptr) { /* Do a previous from end */ info->current_hash_ptr=prev_ptr; DBUG_RETURN(info->current_ptr=prev_ptr ? prev_ptr->ptr_to_rec : 0); } if (old_nextflag && nextflag) my_errno=HA_ERR_RECORD_CHANGED; /* Didn't find old record */ DBUG_PRINT("exit",("Error: %d",my_errno)); info->current_hash_ptr=0; DBUG_RETURN((info->current_ptr= 0)); }
O3
c
hp_search: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rdx, -0x60(%rbp) movq %rdi, -0x30(%rbp) movq (%rdi), %r15 movq 0xd0(%r15), %rax testq %rax, %rax movl %ecx, -0x3c(%rbp) je 0x28323 movl 0x4(%rsi), %r9d movq 0x10(%rsi), %r12 movq $0x1, -0x38(%rbp) movq $0x4, -0x48(%rbp) testq %r9, %r9 movq %rsi, -0x58(%rbp) je 0x2832d movq %r15, -0x68(%rbp) shlq $0x5, %r9 addq %r12, %r9 movq -0x60(%rbp), %r15 movq %r9, -0x50(%rbp) movzwl 0x14(%r12), %r14d leaq (%r15,%r14), %rax cmpb $0x0, 0x19(%r12) je 0x281d7 leaq 0x1(%rax), %r13 cmpb $0x0, (%r15) je 0x281dc movq -0x38(%rbp), %rcx leaq 0x1(,%rcx,2), %rdx xorq %rcx, %rdx movq %rdx, -0x38(%rbp) addq $0x3, %rax cmpb $0xf, 0x18(%r12) cmoveq %rax, %r13 jmp 0x282b3 movq %rax, %r13 jmp 0x281df incq %r15 movzbl 0x18(%r12), %eax cmpl $0x1, %eax je 0x2825c cmpl $0xf, %eax jne 0x282c5 movq (%r12), %rbx movzwl (%r15), %edx movl 0x9c(%rbx), %edi cmpl $0x2, %edi jb 0x2823a leaq 0x2(%r15), %rsi leaq (%r15,%rdx), %rcx addq $0x2, %rcx movl %r14d, %eax movq %rdx, %r14 xorl %edx, %edx divl %edi movq 0xb8(%rbx), %r8 movq %rbx, %rdi movq %rcx, %rdx movq %rax, %rcx callq *0x10(%r8) movq %r14, %rdx cmpq %r14, %rax cmovbq %rax, %rdx addq $0x2, %r15 movq 0xc0(%rbx), %rax movq %rbx, %rdi movq %r15, %rsi leaq -0x38(%rbp), %rcx leaq -0x48(%rbp), %r8 callq *0x50(%rax) addq $0x2, %r13 jmp 0x282af movq (%r12), %rbx movl 0x9c(%rbx), %esi cmpl $0x2, %esi jb 0x28294 leaq (%r15,%r14), %rcx movl %r14d, %eax xorl %edx, %edx divl %esi movq 0xb8(%rbx), %r8 movq %rbx, %rdi movq %r15, %rsi movq %rcx, %rdx movq %rax, %rcx callq *0x10(%r8) cmpq %r14, %rax cmovbq %rax, %r14 movq 0xc0(%rbx), %rax movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx leaq -0x38(%rbp), %rcx leaq -0x48(%rbp), %r8 callq *0x50(%rax) movq -0x50(%rbp), %r9 addq $0x20, %r12 movq %r13, %r15 cmpq %r9, %r12 jb 0x28195 jmp 0x2830e cmpq %r13, %r15 jae 0x282b3 movq -0x48(%rbp), %rax movq -0x38(%rbp), %rcx movq %r13, %rdx subq %r15, %rdx xorl %esi, %esi movl %ecx, %edi andl $0x3f, %edi addq %rax, %rdi movzbl (%r15,%rsi), %r8d imulq %rdi, %r8 movq %rcx, %rdi shlq $0x8, %rdi addq %r8, %rdi xorq %rdi, %rcx movq %rcx, -0x38(%rbp) addq $0x3, %rax movq %rax, -0x48(%rbp) incq %rsi cmpq %rsi, %rdx jne 0x282da jmp 0x282b3 movq -0x38(%rbp), %rcx movq -0x68(%rbp), %r15 movq 0xd0(%r15), %rax movq -0x58(%rbp), %rsi jmp 0x28332 xorl %r13d, %r13d movl %ecx, %ebx jmp 0x28439 movl $0x1, %ecx movq 0xd8(%r15), %rbx leaq -0x1(%rbx), %rdx andq %rcx, %rdx shrq %rbx decq %rbx andq %rcx, %rbx cmpq %rax, %rdx cmovbq %rdx, %rbx leaq 0x18(%rsi), %rdi movq %rbx, %rsi callq 0x26a98 movq %rax, %r14 movq 0x10(%rax), %rax movq 0xd8(%r15), %rcx leaq -0x1(%rcx), %rdx andq %rax, %rdx shrq %rcx decq %rcx andq %rax, %rcx cmpq 0xd0(%r15), %rdx cmovbq %rdx, %rcx cmpq %rcx, %rbx jne 0x28433 xorl %r12d, %r12d leaq 0x41020(%rip), %r15 # 0x693b8 movl -0x3c(%rbp), %ebx movq 0x8(%r14), %rsi movq -0x58(%rbp), %rdi movq -0x60(%rbp), %rdx callq 0x284bc testl %eax, %eax je 0x283c0 movq %r12, %r13 movq (%r14), %r14 movq %r13, %r12 testq %r14, %r14 jne 0x2839b jmp 0x28439 cmpl $0x3, %ebx ja 0x283b0 movl %ebx, %eax movslq (%r15,%rax,4), %rax addq %r15, %rax jmpq *%rax movq 0x8(%r14), %rax xorl %ebx, %ebx movq -0x30(%rbp), %rcx cmpq 0x8(%rcx), %rax setne %bl jmp 0x283b0 movq -0x30(%rbp), %rax movq 0x8(%rax), %rax movl $0x3, %ebx movq %r12, %r13 cmpq %rax, 0x8(%r14) jne 0x283b3 jmp 0x284b2 movq 0x8(%r14), %rax movl $0x2, %ebx movq %r14, %r13 movq -0x30(%rbp), %rcx cmpq 0x8(%rcx), %rax jne 0x283b3 callq 0x2c376 movl $0x78, (%rax) movq -0x30(%rbp), %rax movq %r12, 0x10(%rax) testq %r12, %r12 je 0x2848b movq 0x8(%r12), %rax jmp 0x2848d xorl %r13d, %r13d movl -0x3c(%rbp), %ebx callq 0x2c376 movl $0x78, (%rax) cmpl $0x2, %ebx jne 0x28454 movq -0x30(%rbp), %rax cmpq $0x0, 0x8(%rax) je 0x28478 cmpl $0x0, -0x3c(%rbp) je 0x28469 testl %ebx, %ebx je 0x28469 callq 0x2c376 movl $0x7b, (%rax) xorps %xmm0, %xmm0 movq -0x30(%rbp), %rax movups %xmm0, 0x8(%rax) xorl %eax, %eax jmp 0x28495 movq -0x30(%rbp), %rax movq %r13, 0x10(%rax) testq %r13, %r13 je 0x2848b movq 0x8(%r13), %rax jmp 0x2848d xorl %eax, %eax movq -0x30(%rbp), %rcx movq %rax, 0x8(%rcx) addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq -0x30(%rbp), %rcx movq %r14, 0x10(%rcx) movq 0x8(%r14), %rax jmp 0x28491 movq -0x30(%rbp), %rcx movq %r14, 0x10(%rcx) jmp 0x28495
hp_search: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov [rbp+var_60], rdx mov [rbp+var_30], rdi mov r15, [rdi] mov rax, [r15+0D0h] test rax, rax mov [rbp+var_3C], ecx jz loc_28323 mov r9d, [rsi+4] mov r12, [rsi+10h] mov [rbp+var_38], 1 mov [rbp+var_48], 4 test r9, r9 mov [rbp+var_58], rsi jz loc_2832D mov [rbp+var_68], r15 shl r9, 5 add r9, r12 mov r15, [rbp+var_60] mov [rbp+var_50], r9 loc_28195: movzx r14d, word ptr [r12+14h] lea rax, [r15+r14] cmp byte ptr [r12+19h], 0 jz short loc_281D7 lea r13, [rax+1] cmp byte ptr [r15], 0 jz short loc_281DC mov rcx, [rbp+var_38] lea rdx, ds:1[rcx*2] xor rdx, rcx mov [rbp+var_38], rdx add rax, 3 cmp byte ptr [r12+18h], 0Fh cmovz r13, rax jmp loc_282B3 loc_281D7: mov r13, rax jmp short loc_281DF loc_281DC: inc r15 loc_281DF: movzx eax, byte ptr [r12+18h] cmp eax, 1 jz short loc_2825C cmp eax, 0Fh jnz loc_282C5 mov rbx, [r12] movzx edx, word ptr [r15] mov edi, [rbx+9Ch] cmp edi, 2 jb short loc_2823A lea rsi, [r15+2] lea rcx, [r15+rdx] add rcx, 2 mov eax, r14d mov r14, rdx xor edx, edx div edi mov r8, [rbx+0B8h] mov rdi, rbx mov rdx, rcx mov rcx, rax call qword ptr [r8+10h] mov rdx, r14 cmp rax, r14 cmovb rdx, rax loc_2823A: add r15, 2 mov rax, [rbx+0C0h] mov rdi, rbx mov rsi, r15 lea rcx, [rbp+var_38] lea r8, [rbp+var_48] call qword ptr [rax+50h] add r13, 2 jmp short loc_282AF loc_2825C: mov rbx, [r12] mov esi, [rbx+9Ch] cmp esi, 2 jb short loc_28294 lea rcx, [r15+r14] mov eax, r14d xor edx, edx div esi mov r8, [rbx+0B8h] mov rdi, rbx mov rsi, r15 mov rdx, rcx mov rcx, rax call qword ptr [r8+10h] cmp rax, r14 cmovb r14, rax loc_28294: mov rax, [rbx+0C0h] mov rdi, rbx mov rsi, r15 mov rdx, r14 lea rcx, [rbp+var_38] lea r8, [rbp+var_48] call qword ptr [rax+50h] loc_282AF: mov r9, [rbp+var_50] loc_282B3: add r12, 20h ; ' ' mov r15, r13 cmp r12, r9 jb loc_28195 jmp short loc_2830E loc_282C5: cmp r15, r13 jnb short loc_282B3 mov rax, [rbp+var_48] mov rcx, [rbp+var_38] mov rdx, r13 sub rdx, r15 xor esi, esi loc_282DA: mov edi, ecx and edi, 3Fh add rdi, rax movzx r8d, byte ptr [r15+rsi] imul r8, rdi mov rdi, rcx shl rdi, 8 add rdi, r8 xor rcx, rdi mov [rbp+var_38], rcx add rax, 3 mov [rbp+var_48], rax inc rsi cmp rdx, rsi jnz short loc_282DA jmp short loc_282B3 loc_2830E: mov rcx, [rbp+var_38] mov r15, [rbp+var_68] mov rax, [r15+0D0h] mov rsi, [rbp+var_58] jmp short loc_28332 loc_28323: xor r13d, r13d mov ebx, ecx jmp loc_28439 loc_2832D: mov ecx, 1 loc_28332: mov rbx, [r15+0D8h] lea rdx, [rbx-1] and rdx, rcx shr rbx, 1 dec rbx and rbx, rcx cmp rdx, rax cmovb rbx, rdx lea rdi, [rsi+18h] mov rsi, rbx call hp_find_block mov r14, rax mov rax, [rax+10h] mov rcx, [r15+0D8h] lea rdx, [rcx-1] and rdx, rax shr rcx, 1 dec rcx and rcx, rax cmp rdx, [r15+0D0h] cmovb rcx, rdx cmp rbx, rcx jnz loc_28433 xor r12d, r12d lea r15, jpt_283CE mov ebx, [rbp+var_3C] loc_2839B: mov rsi, [r14+8] mov rdi, [rbp+var_58] mov rdx, [rbp+var_60] call hp_key_cmp test eax, eax jz short loc_283C0 def_283CE: mov r13, r12; jumptable 00000000000283CE default case loc_283B3: mov r14, [r14] mov r12, r13 test r14, r14 jnz short loc_2839B jmp short loc_28439 loc_283C0: cmp ebx, 3; switch 4 cases ja short def_283CE; jumptable 00000000000283CE default case mov eax, ebx movsxd rax, ds:(jpt_283CE - 693B8h)[r15+rax*4] add rax, r15 jmp rax; switch jump loc_283D0: mov rax, [r14+8]; jumptable 00000000000283CE case 1 xor ebx, ebx mov rcx, [rbp+var_30] cmp rax, [rcx+8] setnz bl jmp short def_283CE; jumptable 00000000000283CE default case loc_283E3: mov rax, [rbp+var_30]; jumptable 00000000000283CE case 3 mov rax, [rax+8] mov ebx, 3 mov r13, r12 cmp [r14+8], rax jnz short loc_283B3 jmp loc_284B2 loc_283FE: mov rax, [r14+8]; jumptable 00000000000283CE case 2 mov ebx, 2 mov r13, r14 mov rcx, [rbp+var_30] cmp rax, [rcx+8] jnz short loc_283B3 call _my_thread_var mov dword ptr [rax], 78h ; 'x' mov rax, [rbp+var_30] mov [rax+10h], r12 test r12, r12 jz short loc_2848B mov rax, [r12+8] jmp short loc_2848D loc_28433: xor r13d, r13d mov ebx, [rbp+var_3C] loc_28439: call _my_thread_var mov dword ptr [rax], 78h ; 'x' cmp ebx, 2 jnz short loc_28454 mov rax, [rbp+var_30] cmp qword ptr [rax+8], 0 jz short loc_28478 loc_28454: cmp [rbp+var_3C], 0 jz short loc_28469 test ebx, ebx jz short loc_28469 call _my_thread_var mov dword ptr [rax], 7Bh ; '{' loc_28469: xorps xmm0, xmm0 mov rax, [rbp+var_30] movups xmmword ptr [rax+8], xmm0 xor eax, eax jmp short loc_28495 loc_28478: mov rax, [rbp+var_30] mov [rax+10h], r13 test r13, r13 jz short loc_2848B mov rax, [r13+8] jmp short loc_2848D loc_2848B: xor eax, eax loc_2848D: mov rcx, [rbp+var_30] loc_28491: mov [rcx+8], rax loc_28495: add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_284A4: mov rcx, [rbp+var_30]; jumptable 00000000000283CE case 0 mov [rcx+10h], r14 mov rax, [r14+8] jmp short loc_28491 loc_284B2: mov rcx, [rbp+var_30] mov [rcx+10h], r14 jmp short loc_28495
long long hp_search(long long *a1, unsigned long long a2, unsigned long long a3, long long a4) { long long v4; // r15 unsigned long long v5; // rax long long v6; // r9 _QWORD *v7; // r12 _QWORD *v8; // r9 _BYTE *v9; // r15 unsigned long long v10; // r14 _BYTE *v11; // rax _BYTE *v12; // r13 _BYTE *v13; // rax int v14; // eax long long v15; // rbx unsigned long long v16; // rdx unsigned int v17; // edi unsigned long long v18; // r14 unsigned long long v19; // rax long long v20; // rbx unsigned int v21; // esi unsigned long long v22; // rax long long v23; // rax long long v24; // rcx long long v25; // rsi long long v26; // rcx _QWORD *v27; // r13 int v28; // ebx unsigned long long v29; // rbx unsigned long long v30; // rdx unsigned long long v31; // rbx _QWORD *block; // r14 long long v33; // rax unsigned long long v34; // rcx _QWORD *v35; // r12 long long result; // rax long long v37; // rdx long long v38; // rcx long long *v39; // rcx long long v40; // [rsp+8h] [rbp-68h] unsigned long long v41; // [rsp+10h] [rbp-60h] long long *v42; // [rsp+18h] [rbp-58h] _QWORD *v43; // [rsp+20h] [rbp-50h] long long v44; // [rsp+28h] [rbp-48h] BYREF int v45; // [rsp+34h] [rbp-3Ch] long long v46; // [rsp+38h] [rbp-38h] BYREF long long *v47; // [rsp+40h] [rbp-30h] v41 = a3; v47 = a1; v4 = *a1; v5 = *(_QWORD *)(*a1 + 208); v45 = a4; if ( v5 ) { v6 = *(unsigned int *)(a2 + 4); v7 = *(_QWORD **)(a2 + 16); v46 = 1LL; v44 = 4LL; v42 = (long long *)a2; if ( v6 ) { v40 = v4; v8 = &v7[4 * v6]; v9 = (_BYTE *)a3; v43 = v8; while ( 1 ) { v10 = *((unsigned __int16 *)v7 + 10); v11 = &v9[v10]; if ( *((_BYTE *)v7 + 25) ) { v12 = v11 + 1; if ( *v9 ) { v46 ^= 2 * v46 + 1; v13 = v11 + 3; if ( *((_BYTE *)v7 + 24) == 15 ) v12 = v13; goto LABEL_22; } ++v9; } else { v12 = &v9[v10]; } v14 = *((unsigned __int8 *)v7 + 24); if ( v14 == 1 ) { v20 = *v7; v21 = *(_DWORD *)(*v7 + 156LL); if ( v21 >= 2 ) { v22 = (*(long long ( **)(_QWORD, _BYTE *, _BYTE *, _QWORD))(*(_QWORD *)(v20 + 184) + 16LL))( *v7, v9, &v9[v10], (unsigned int)v10 / v21); if ( v22 < v10 ) v10 = v22; } (*(void ( **)(long long, _BYTE *, unsigned long long, long long *, long long *))(*(_QWORD *)(v20 + 192) + 80LL))( v20, v9, v10, &v46, &v44); } else { if ( v14 != 15 ) { if ( v9 < v12 ) { v23 = v44; v24 = v46; v25 = 0LL; do { v24 ^= (v23 + (v24 & 0x3F)) * (unsigned __int8)v9[v25] + (v24 << 8); v46 = v24; v23 += 3LL; v44 = v23; ++v25; } while ( v12 - v9 != v25 ); } goto LABEL_22; } v15 = *v7; v16 = *(unsigned __int16 *)v9; v17 = *(_DWORD *)(*v7 + 156LL); if ( v17 >= 2 ) { v18 = *(unsigned __int16 *)v9; v19 = (*(long long ( **)(_QWORD, _BYTE *, _BYTE *, _QWORD))(*(_QWORD *)(v15 + 184) + 16LL))( *v7, v9 + 2, &v9[v16 + 2], *((unsigned __int16 *)v7 + 10) / v17); v16 = v18; if ( v19 < v18 ) v16 = v19; } (*(void ( **)(long long, _BYTE *, unsigned long long, long long *, long long *))(*(_QWORD *)(v15 + 192) + 80LL))( v15, v9 + 2, v16, &v46, &v44); v12 += 2; } v8 = v43; LABEL_22: v7 += 4; v9 = v12; if ( v7 >= v8 ) { v26 = v46; v4 = v40; v5 = *(_QWORD *)(v40 + 208); a2 = (unsigned long long)v42; goto LABEL_30; } } } v26 = 1LL; LABEL_30: v29 = *(_QWORD *)(v4 + 216); v30 = v26 & (v29 - 1); v31 = v26 & ((v29 >> 1) - 1); if ( v30 < v5 ) v31 = v30; a1 = (long long *)(a2 + 24); a2 = v31; block = (_QWORD *)hp_find_block(a1, v31); v33 = block[2]; v34 = *(_QWORD *)(v4 + 216); a3 = v33 & (v34 - 1); a4 = v33 & ((v34 >> 1) - 1); if ( a3 < *(_QWORD *)(v4 + 208) ) a4 = a3; if ( v31 == a4 ) { v35 = 0LL; v28 = v45; while ( 1 ) { a2 = block[1]; a1 = v42; if ( !(unsigned int)hp_key_cmp(v42, a2, v41) ) break; LABEL_37: v27 = v35; LABEL_38: block = (_QWORD *)*block; v35 = v27; if ( !block ) goto LABEL_48; } switch ( v28 ) { case 0: v39 = v47; v47[2] = (long long)block; result = block[1]; goto LABEL_58; case 1: a4 = (long long)v47; v28 = block[1] != v47[1]; goto LABEL_37; case 2: v28 = 2; v27 = block; a4 = (long long)v47; if ( block[1] != v47[1] ) goto LABEL_38; *(_DWORD *)my_thread_var(v42, a2, a3, v47) = 120; v47[2] = (long long)v35; if ( !v35 ) goto LABEL_56; result = v35[1]; break; case 3: result = v47[1]; v28 = 3; v27 = v35; if ( block[1] != result ) goto LABEL_38; v47[2] = (long long)block; return result; default: goto LABEL_37; } goto LABEL_57; } v27 = 0LL; v28 = v45; } else { v27 = 0LL; v28 = a4; } LABEL_48: *(_DWORD *)my_thread_var(a1, a2, a3, a4) = 120; if ( v28 != 2 || v47[1] ) { if ( v45 ) { if ( v28 ) *(_DWORD *)my_thread_var(a1, a2, v37, v38) = 123; } *(_OWORD *)(v47 + 1) = 0LL; return 0LL; } v47[2] = (long long)v27; if ( v27 ) result = v27[1]; else LABEL_56: result = 0LL; LABEL_57: v39 = v47; LABEL_58: v39[1] = result; return result; }
hp_search: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV qword ptr [RBP + -0x60],RDX MOV qword ptr [RBP + -0x30],RDI MOV R15,qword ptr [RDI] MOV RAX,qword ptr [R15 + 0xd0] TEST RAX,RAX MOV dword ptr [RBP + -0x3c],ECX JZ 0x00128323 MOV R9D,dword ptr [RSI + 0x4] MOV R12,qword ptr [RSI + 0x10] MOV qword ptr [RBP + -0x38],0x1 MOV qword ptr [RBP + -0x48],0x4 TEST R9,R9 MOV qword ptr [RBP + -0x58],RSI JZ 0x0012832d MOV qword ptr [RBP + -0x68],R15 SHL R9,0x5 ADD R9,R12 MOV R15,qword ptr [RBP + -0x60] MOV qword ptr [RBP + -0x50],R9 LAB_00128195: MOVZX R14D,word ptr [R12 + 0x14] LEA RAX,[R15 + R14*0x1] CMP byte ptr [R12 + 0x19],0x0 JZ 0x001281d7 LEA R13,[RAX + 0x1] CMP byte ptr [R15],0x0 JZ 0x001281dc MOV RCX,qword ptr [RBP + -0x38] LEA RDX,[0x1 + RCX*0x2] XOR RDX,RCX MOV qword ptr [RBP + -0x38],RDX ADD RAX,0x3 CMP byte ptr [R12 + 0x18],0xf CMOVZ R13,RAX JMP 0x001282b3 LAB_001281d7: MOV R13,RAX JMP 0x001281df LAB_001281dc: INC R15 LAB_001281df: MOVZX EAX,byte ptr [R12 + 0x18] CMP EAX,0x1 JZ 0x0012825c CMP EAX,0xf JNZ 0x001282c5 MOV RBX,qword ptr [R12] MOVZX EDX,word ptr [R15] MOV EDI,dword ptr [RBX + 0x9c] CMP EDI,0x2 JC 0x0012823a LEA RSI,[R15 + 0x2] LEA RCX,[R15 + RDX*0x1] ADD RCX,0x2 MOV EAX,R14D MOV R14,RDX XOR EDX,EDX DIV EDI MOV R8,qword ptr [RBX + 0xb8] MOV RDI,RBX MOV RDX,RCX MOV RCX,RAX CALL qword ptr [R8 + 0x10] MOV RDX,R14 CMP RAX,R14 CMOVC RDX,RAX LAB_0012823a: ADD R15,0x2 MOV RAX,qword ptr [RBX + 0xc0] MOV RDI,RBX MOV RSI,R15 LEA RCX,[RBP + -0x38] LEA R8,[RBP + -0x48] CALL qword ptr [RAX + 0x50] ADD R13,0x2 JMP 0x001282af LAB_0012825c: MOV RBX,qword ptr [R12] MOV ESI,dword ptr [RBX + 0x9c] CMP ESI,0x2 JC 0x00128294 LEA RCX,[R15 + R14*0x1] MOV EAX,R14D XOR EDX,EDX DIV ESI MOV R8,qword ptr [RBX + 0xb8] MOV RDI,RBX MOV RSI,R15 MOV RDX,RCX MOV RCX,RAX CALL qword ptr [R8 + 0x10] CMP RAX,R14 CMOVC R14,RAX LAB_00128294: MOV RAX,qword ptr [RBX + 0xc0] MOV RDI,RBX MOV RSI,R15 MOV RDX,R14 LEA RCX,[RBP + -0x38] LEA R8,[RBP + -0x48] CALL qword ptr [RAX + 0x50] LAB_001282af: MOV R9,qword ptr [RBP + -0x50] LAB_001282b3: ADD R12,0x20 MOV R15,R13 CMP R12,R9 JC 0x00128195 JMP 0x0012830e LAB_001282c5: CMP R15,R13 JNC 0x001282b3 MOV RAX,qword ptr [RBP + -0x48] MOV RCX,qword ptr [RBP + -0x38] MOV RDX,R13 SUB RDX,R15 XOR ESI,ESI LAB_001282da: MOV EDI,ECX AND EDI,0x3f ADD RDI,RAX MOVZX R8D,byte ptr [R15 + RSI*0x1] IMUL R8,RDI MOV RDI,RCX SHL RDI,0x8 ADD RDI,R8 XOR RCX,RDI MOV qword ptr [RBP + -0x38],RCX ADD RAX,0x3 MOV qword ptr [RBP + -0x48],RAX INC RSI CMP RDX,RSI JNZ 0x001282da JMP 0x001282b3 LAB_0012830e: MOV RCX,qword ptr [RBP + -0x38] MOV R15,qword ptr [RBP + -0x68] MOV RAX,qword ptr [R15 + 0xd0] MOV RSI,qword ptr [RBP + -0x58] JMP 0x00128332 LAB_00128323: XOR R13D,R13D MOV EBX,ECX JMP 0x00128439 LAB_0012832d: MOV ECX,0x1 LAB_00128332: MOV RBX,qword ptr [R15 + 0xd8] LEA RDX,[RBX + -0x1] AND RDX,RCX SHR RBX,0x1 DEC RBX AND RBX,RCX CMP RDX,RAX CMOVC RBX,RDX LEA RDI,[RSI + 0x18] MOV RSI,RBX CALL 0x00126a98 MOV R14,RAX MOV RAX,qword ptr [RAX + 0x10] MOV RCX,qword ptr [R15 + 0xd8] LEA RDX,[RCX + -0x1] AND RDX,RAX SHR RCX,0x1 DEC RCX AND RCX,RAX CMP RDX,qword ptr [R15 + 0xd0] CMOVC RCX,RDX CMP RBX,RCX JNZ 0x00128433 XOR R12D,R12D LEA R15,[0x1693b8] MOV EBX,dword ptr [RBP + -0x3c] LAB_0012839b: MOV RSI,qword ptr [R14 + 0x8] MOV RDI,qword ptr [RBP + -0x58] MOV RDX,qword ptr [RBP + -0x60] CALL 0x001284bc TEST EAX,EAX JZ 0x001283c0 LAB_001283b0: MOV R13,R12 default: MOV R14,qword ptr [R14] MOV R12,R13 TEST R14,R14 JNZ 0x0012839b JMP 0x00128439 LAB_001283c0: CMP EBX,0x3 JA 0x001283b0 MOV EAX,EBX MOVSXD RAX,dword ptr [R15 + RAX*0x4] ADD RAX,R15 switchD: JMP RAX caseD_1: MOV RAX,qword ptr [R14 + 0x8] XOR EBX,EBX MOV RCX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RCX + 0x8] SETNZ BL JMP 0x001283b0 caseD_3: MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX + 0x8] MOV EBX,0x3 MOV R13,R12 CMP qword ptr [R14 + 0x8],RAX JNZ 0x001283b3 JMP 0x001284b2 caseD_2: MOV RAX,qword ptr [R14 + 0x8] MOV EBX,0x2 MOV R13,R14 MOV RCX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RCX + 0x8] JNZ 0x001283b3 CALL 0x0012c376 MOV dword ptr [RAX],0x78 MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX + 0x10],R12 TEST R12,R12 JZ 0x0012848b MOV RAX,qword ptr [R12 + 0x8] JMP 0x0012848d LAB_00128433: XOR R13D,R13D MOV EBX,dword ptr [RBP + -0x3c] LAB_00128439: CALL 0x0012c376 MOV dword ptr [RAX],0x78 CMP EBX,0x2 JNZ 0x00128454 MOV RAX,qword ptr [RBP + -0x30] CMP qword ptr [RAX + 0x8],0x0 JZ 0x00128478 LAB_00128454: CMP dword ptr [RBP + -0x3c],0x0 JZ 0x00128469 TEST EBX,EBX JZ 0x00128469 CALL 0x0012c376 MOV dword ptr [RAX],0x7b LAB_00128469: XORPS XMM0,XMM0 MOV RAX,qword ptr [RBP + -0x30] MOVUPS xmmword ptr [RAX + 0x8],XMM0 XOR EAX,EAX JMP 0x00128495 LAB_00128478: MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RAX + 0x10],R13 TEST R13,R13 JZ 0x0012848b MOV RAX,qword ptr [R13 + 0x8] JMP 0x0012848d LAB_0012848b: XOR EAX,EAX LAB_0012848d: MOV RCX,qword ptr [RBP + -0x30] LAB_00128491: MOV qword ptr [RCX + 0x8],RAX LAB_00128495: ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET caseD_0: MOV RCX,qword ptr [RBP + -0x30] MOV qword ptr [RCX + 0x10],R14 MOV RAX,qword ptr [R14 + 0x8] JMP 0x00128491 LAB_001284b2: MOV RCX,qword ptr [RBP + -0x30] MOV qword ptr [RCX + 0x10],R14 JMP 0x00128495
long hp_search(long *param_1,long param_2,ushort *param_3,uint param_4) { long *plVar1; int iVar2; ulong uVar3; ulong uVar4; long *plVar5; int4 *puVar6; long lVar7; ulong uVar8; long lVar9; long *plVar10; ushort *puVar11; ushort *puVar12; ushort *puVar13; long local_50; uint local_44; ulong local_40; long *local_38; lVar7 = *param_1; uVar3 = *(ulong *)(lVar7 + 0xd0); local_44 = param_4; local_38 = param_1; if (uVar3 == 0) { plVar10 = (long *)0x0; } else { plVar10 = *(long **)(param_2 + 0x10); local_40 = 1; local_50 = 4; if ((ulong)*(uint *)(param_2 + 4) != 0) { plVar5 = plVar10 + (ulong)*(uint *)(param_2 + 4) * 4; puVar13 = param_3; do { uVar3 = (ulong)*(ushort *)((long)plVar10 + 0x14); puVar11 = (ushort *)((long)puVar13 + uVar3); if (*(char *)((long)plVar10 + 0x19) == '\0') { LAB_001281df: puVar12 = puVar11; if ((char)plVar10[3] == '\x01') { lVar9 = *plVar10; if ((1 < *(uint *)(lVar9 + 0x9c)) && (uVar4 = (**(code **)(*(long *)(lVar9 + 0xb8) + 0x10)) (lVar9,puVar13,(char *)((long)puVar13 + uVar3), uVar3 / *(uint *)(lVar9 + 0x9c)), uVar4 < uVar3)) { uVar3 = uVar4; } (**(code **)(*(long *)(lVar9 + 0xc0) + 0x50))(lVar9,puVar13,uVar3,&local_40,&local_50); } else if ((char)plVar10[3] == '\x0f') { lVar9 = *plVar10; uVar4 = (ulong)*puVar13; if ((1 < *(uint *)(lVar9 + 0x9c)) && (uVar3 = (**(code **)(*(long *)(lVar9 + 0xb8) + 0x10)) (lVar9,puVar13 + 1,(char *)((long)puVar13 + uVar4 + 2), uVar3 / *(uint *)(lVar9 + 0x9c)), uVar3 < uVar4)) { uVar4 = uVar3; } (**(code **)(*(long *)(lVar9 + 0xc0) + 0x50)) (lVar9,puVar13 + 1,uVar4,&local_40,&local_50); puVar12 = puVar11 + 1; } else if (puVar13 < puVar11) { lVar9 = 0; do { local_40 = local_40 ^ local_40 * 0x100 + (ulong)*(byte *)((long)puVar13 + lVar9) * ((ulong)((uint)local_40 & 0x3f) + local_50); local_50 = local_50 + 3; lVar9 = lVar9 + 1; } while ((long)puVar11 - (long)puVar13 != lVar9); } } else { if ((char)*puVar13 == '\0') { puVar13 = (ushort *)((long)puVar13 + 1); puVar11 = (ushort *)((long)puVar11 + 1); goto LAB_001281df; } local_40 = local_40 * 2 + 1 ^ local_40; puVar12 = (ushort *)((long)puVar11 + 1); if ((char)plVar10[3] == '\x0f') { puVar12 = (ushort *)((long)puVar11 + 3); } } plVar10 = plVar10 + 4; puVar13 = puVar12; } while (plVar10 < plVar5); uVar3 = *(ulong *)(lVar7 + 0xd0); } uVar8 = *(ulong *)(lVar7 + 0xd8) - 1 & local_40; uVar4 = (*(ulong *)(lVar7 + 0xd8) >> 1) - 1 & local_40; if (uVar8 < uVar3) { uVar4 = uVar8; } plVar5 = (long *)hp_find_block(param_2 + 0x18,uVar4); uVar8 = *(ulong *)(lVar7 + 0xd8) - 1 & plVar5[2]; uVar3 = (*(ulong *)(lVar7 + 0xd8) >> 1) - 1 & plVar5[2]; if (uVar8 < *(ulong *)(lVar7 + 0xd0)) { uVar3 = uVar8; } param_4 = local_44; if (uVar4 == uVar3) { plVar10 = (long *)0x0; do { iVar2 = hp_key_cmp(param_2,plVar5[1],param_3); plVar1 = plVar10; if (iVar2 == 0) { switch(param_4) { case 0: local_38[2] = (long)plVar5; lVar7 = plVar5[1]; goto LAB_00128491; case 1: param_4 = (uint)(plVar5[1] != local_38[1]); break; case 2: param_4 = 2; plVar1 = plVar5; if (plVar5[1] == local_38[1]) { puVar6 = (int4 *)_my_thread_var(); *puVar6 = 0x78; local_38[2] = (long)plVar10; if (plVar10 == (long *)0x0) goto LAB_0012848b; lVar7 = plVar10[1]; goto LAB_00128491; } break; case 3: param_4 = 3; if (plVar5[1] == local_38[1]) { local_38[2] = (long)plVar5; return local_38[1]; } } } plVar10 = plVar1; plVar5 = (long *)*plVar5; } while (plVar5 != (long *)0x0); } else { plVar10 = (long *)0x0; } } puVar6 = (int4 *)_my_thread_var(); *puVar6 = 0x78; if ((param_4 == 2) && (local_38[1] == 0)) { local_38[2] = (long)plVar10; if (plVar10 == (long *)0x0) { LAB_0012848b: lVar7 = 0; } else { lVar7 = plVar10[1]; } LAB_00128491: local_38[1] = lVar7; } else { if ((local_44 != 0) && (param_4 != 0)) { puVar6 = (int4 *)_my_thread_var(); *puVar6 = 0x7b; } local_38[1] = 0; local_38[2] = 0; lVar7 = 0; } return lVar7; }
31,197
rw_pr_unlock
eloqsql/mysys/thr_rwlock.c
int rw_pr_unlock(rw_pr_lock_t *rwlock) { if (rwlock->active_writer) { /* We are unlocking wr-lock. */ #ifdef SAFE_MUTEX rwlock->writer_thread= 0; #endif rwlock->active_writer= FALSE; if (rwlock->writers_waiting_readers) { /* Avoid expensive cond signal in case when there is no contention or it is wr-only. Note that from view point of performance it would be better to signal on the condition variable after unlocking mutex (as it reduces number of contex switches). Unfortunately this would mean that such rwlock can't be safely used by MDL subsystem, which relies on the fact that it is OK to destroy rwlock once it is in unlocked state. */ pthread_cond_signal(&rwlock->no_active_readers); } pthread_mutex_unlock(&rwlock->lock); } else { /* We are unlocking rd-lock. */ pthread_mutex_lock(&rwlock->lock); rwlock->active_readers--; if (rwlock->active_readers == 0 && rwlock->writers_waiting_readers) { /* If we are last reader and there are waiting writers wake them up. */ pthread_cond_signal(&rwlock->no_active_readers); } pthread_mutex_unlock(&rwlock->lock); } return 0; }
O0
c
rw_pr_unlock: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax cmpb $0x0, 0x60(%rax) je 0xc69b0 movq -0x8(%rbp), %rax movb $0x0, 0x60(%rax) movq -0x8(%rbp), %rax cmpl $0x0, 0x5c(%rax) je 0xc69a5 movq -0x8(%rbp), %rdi addq $0x28, %rdi callq 0x60800 movq -0x8(%rbp), %rdi callq 0x60290 jmp 0xc69f0 movq -0x8(%rbp), %rdi callq 0x602d0 movq -0x8(%rbp), %rax movl 0x58(%rax), %ecx addl $-0x1, %ecx movl %ecx, 0x58(%rax) movq -0x8(%rbp), %rax cmpl $0x0, 0x58(%rax) jne 0xc69e7 movq -0x8(%rbp), %rax cmpl $0x0, 0x5c(%rax) je 0xc69e7 movq -0x8(%rbp), %rdi addq $0x28, %rdi callq 0x60800 movq -0x8(%rbp), %rdi callq 0x60290 xorl %eax, %eax addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
rw_pr_unlock: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rax, [rbp+var_8] cmp byte ptr [rax+60h], 0 jz short loc_C69B0 mov rax, [rbp+var_8] mov byte ptr [rax+60h], 0 mov rax, [rbp+var_8] cmp dword ptr [rax+5Ch], 0 jz short loc_C69A5 mov rdi, [rbp+var_8] add rdi, 28h ; '(' call _pthread_cond_signal loc_C69A5: mov rdi, [rbp+var_8] call _pthread_mutex_unlock jmp short loc_C69F0 loc_C69B0: mov rdi, [rbp+var_8] call _pthread_mutex_lock mov rax, [rbp+var_8] mov ecx, [rax+58h] add ecx, 0FFFFFFFFh mov [rax+58h], ecx mov rax, [rbp+var_8] cmp dword ptr [rax+58h], 0 jnz short loc_C69E7 mov rax, [rbp+var_8] cmp dword ptr [rax+5Ch], 0 jz short loc_C69E7 mov rdi, [rbp+var_8] add rdi, 28h ; '(' call _pthread_cond_signal loc_C69E7: mov rdi, [rbp+var_8] call _pthread_mutex_unlock loc_C69F0: xor eax, eax add rsp, 10h pop rbp retn
long long rw_pr_unlock(long long a1) { if ( *(_BYTE *)(a1 + 96) ) { *(_BYTE *)(a1 + 96) = 0; if ( *(_DWORD *)(a1 + 92) ) pthread_cond_signal(a1 + 40); } else { pthread_mutex_lock(a1); if ( !--*(_DWORD *)(a1 + 88) && *(_DWORD *)(a1 + 92) ) pthread_cond_signal(a1 + 40); } pthread_mutex_unlock(a1); return 0LL; }
rw_pr_unlock: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] CMP byte ptr [RAX + 0x60],0x0 JZ 0x001c69b0 MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX + 0x60],0x0 MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x5c],0x0 JZ 0x001c69a5 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x28 CALL 0x00160800 LAB_001c69a5: MOV RDI,qword ptr [RBP + -0x8] CALL 0x00160290 JMP 0x001c69f0 LAB_001c69b0: MOV RDI,qword ptr [RBP + -0x8] CALL 0x001602d0 MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x58] ADD ECX,-0x1 MOV dword ptr [RAX + 0x58],ECX MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x58],0x0 JNZ 0x001c69e7 MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x5c],0x0 JZ 0x001c69e7 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x28 CALL 0x00160800 LAB_001c69e7: MOV RDI,qword ptr [RBP + -0x8] CALL 0x00160290 LAB_001c69f0: XOR EAX,EAX ADD RSP,0x10 POP RBP RET
int8 rw_pr_unlock(pthread_mutex_t *param_1) { if (*(char *)((long)param_1 + 0x60) == '\0') { pthread_mutex_lock(param_1); *(int *)((long)param_1 + 0x58) = *(int *)((long)param_1 + 0x58) + -1; if ((*(int *)((long)param_1 + 0x58) == 0) && (*(int *)((long)param_1 + 0x5c) != 0)) { pthread_cond_signal((pthread_cond_t *)(param_1 + 1)); } pthread_mutex_unlock(param_1); } else { *(int1 *)((long)param_1 + 0x60) = 0; if (*(int *)((long)param_1 + 0x5c) != 0) { pthread_cond_signal((pthread_cond_t *)(param_1 + 1)); } pthread_mutex_unlock(param_1); } return 0; }
31,198
translog_write_file_header
eloqsql/storage/maria/ma_loghandler.c
static my_bool translog_write_file_header() { TRANSLOG_FILE *file; ulonglong timestamp; uchar page_buff[TRANSLOG_PAGE_SIZE], *page= page_buff; my_bool rc; DBUG_ENTER("translog_write_file_header"); /* file tag */ memcpy(page, maria_trans_file_magic, sizeof(maria_trans_file_magic)); page+= sizeof(maria_trans_file_magic); /* timestamp */ timestamp= my_hrtime().val; int8store(page, timestamp); page+= 8; /* maria version */ int4store(page, TRANSLOG_VERSION_ID); page+= 4; /* mysql version (MYSQL_VERSION_ID) */ int4store(page, log_descriptor.server_version); page+= 4; /* server ID */ int4store(page, log_descriptor.server_id); page+= 4; /* loghandler page_size */ int2store(page, TRANSLOG_PAGE_SIZE - 1); page+= 2; /* file number */ int3store(page, LSN_FILE_NO(log_descriptor.horizon)); page+= 3; lsn_store(page, LSN_IMPOSSIBLE); page+= LSN_STORE_SIZE; memset(page, TRANSLOG_FILLER, sizeof(page_buff) - (page- page_buff)); file= get_current_logfile(); rc= my_pwrite(file->handler.file, page_buff, sizeof(page_buff), 0, log_write_flags) != 0; /* Dropping the flag in such way can make false alarm: signalling than the file in not sync when it is sync, but the situation is quite rare and protections with mutexes give much more overhead to the whole engine */ file->is_sync= 0; DBUG_RETURN(rc); }
O3
c
translog_write_file_header: pushq %rbp movq %rsp, %rbp pushq %rbx subq $0x2008, %rsp # imm = 0x2008 movq %fs:0x28, %rax movq %rax, -0x10(%rbp) movl 0x31b049(%rip), %eax # 0x3871b0 leaq -0x1fe4(%rbp), %rbx movl %eax, -0x24(%rbx) movq 0x31b030(%rip), %rax # 0x3871a8 movq %rax, -0x2c(%rbx) callq 0xa1448 movq %rax, -0x20(%rbx) movl $0x2710, -0x18(%rbx) # imm = 0x2710 movq 0x395381(%rip), %rax # 0x401514 movq %rax, -0x14(%rbx) movw $0x1fff, -0xc(%rbx) # imm = 0x1FFF movq 0xb95fa4(%rip), %rax # 0xc02148 movq %rax, %rcx shrq $0x20, %rcx movb %cl, -0xa(%rbx) movq %rax, %rcx shrq $0x28, %rcx movb %cl, -0x9(%rbx) shrq $0x30, %rax movb %al, -0x8(%rbx) xorl %eax, %eax movl %eax, -0x7(%rbx) movl %eax, -0x4(%rbx) movl $0x1fd4, %edx # imm = 0x1FD4 movq %rbx, %rdi movl $0xff, %esi callq 0x29270 callq 0x6d340 movq %rax, %rbx movl 0x18(%rax), %edi leaq -0x2010(%rbp), %rsi movl $0x2000, %edx # imm = 0x2000 movl $0x34, %r8d xorl %ecx, %ecx callq 0xa3642 testq %rax, %rax setne %al movb $0x0, 0x51(%rbx) movq %fs:0x28, %rcx cmpq -0x10(%rbp), %rcx jne 0x6c220 addq $0x2008, %rsp # imm = 0x2008 popq %rbx popq %rbp retq callq 0x29220
translog_write_file_header: push rbp mov rbp, rsp push rbx sub rsp, 2008h mov rax, fs:28h mov [rbp+var_10], rax mov eax, cs:dword_3871B0 lea rbx, [rbp+var_1FE4] mov [rbx-24h], eax mov rax, cs:maria_trans_file_magic mov [rbx-2Ch], rax call my_hrtime mov [rbx-20h], rax mov dword ptr [rbx-18h], 2710h mov rax, cs:qword_401514 mov [rbx-14h], rax mov word ptr [rbx-0Ch], 1FFFh mov rax, cs:qword_C02148 mov rcx, rax shr rcx, 20h mov [rbx-0Ah], cl mov rcx, rax shr rcx, 28h mov [rbx-9], cl shr rax, 30h mov [rbx-8], al xor eax, eax mov [rbx-7], eax mov [rbx-4], eax mov edx, 1FD4h mov rdi, rbx mov esi, 0FFh call _memset call get_current_logfile mov rbx, rax mov edi, [rax+18h] lea rsi, [rbp+var_2010] mov edx, 2000h mov r8d, 34h ; '4' xor ecx, ecx call my_pwrite test rax, rax setnz al mov byte ptr [rbx+51h], 0 mov rcx, fs:28h cmp rcx, [rbp+var_10] jnz short loc_6C220 add rsp, 2008h pop rbx pop rbp retn loc_6C220: call ___stack_chk_fail
bool translog_write_file_header(long long a1, long long a2) { long long current_logfile; // rbx bool result; // al long long v4; // [rsp+0h] [rbp-2010h] BYREF int v5; // [rsp+8h] [rbp-2008h] long long v6; // [rsp+Ch] [rbp-2004h] int v7; // [rsp+14h] [rbp-1FFCh] long long v8; // [rsp+18h] [rbp-1FF8h] __int16 v9; // [rsp+20h] [rbp-1FF0h] __int16 v10; // [rsp+22h] [rbp-1FEEh] char v11; // [rsp+24h] [rbp-1FECh] _BYTE v12[7]; // [rsp+25h] [rbp-1FEBh] BYREF _BYTE v13[8148]; // [rsp+2Ch] [rbp-1FE4h] BYREF unsigned long long v14; // [rsp+2000h] [rbp-10h] v14 = __readfsqword(0x28u); v5 = dword_3871B0; v4 = maria_trans_file_magic; v6 = my_hrtime(a1, a2); v7 = 10000; v8 = qword_401514; v9 = 0x1FFF; v10 = WORD2(qword_C02148); v11 = BYTE6(qword_C02148); memset(v12, 0, sizeof(v12)); memset(v13, 255LL, sizeof(v13)); current_logfile = get_current_logfile(v13); result = my_pwrite(*(unsigned int *)(current_logfile + 24), &v4, 0x2000LL, 0LL, 52LL) != 0; *(_BYTE *)(current_logfile + 81) = 0; return result; }
translog_write_file_header: PUSH RBP MOV RBP,RSP PUSH RBX SUB RSP,0x2008 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x10],RAX MOV EAX,dword ptr [0x004871b0] LEA RBX,[RBP + -0x1fe4] MOV dword ptr [RBX + -0x24],EAX MOV RAX,qword ptr [0x004871a8] MOV qword ptr [RBX + -0x2c],RAX CALL 0x001a1448 MOV qword ptr [RBX + -0x20],RAX MOV dword ptr [RBX + -0x18],0x2710 MOV RAX,qword ptr [0x00501514] MOV qword ptr [RBX + -0x14],RAX MOV word ptr [RBX + -0xc],0x1fff MOV RAX,qword ptr [0x00d02148] MOV RCX,RAX SHR RCX,0x20 MOV byte ptr [RBX + -0xa],CL MOV RCX,RAX SHR RCX,0x28 MOV byte ptr [RBX + -0x9],CL SHR RAX,0x30 MOV byte ptr [RBX + -0x8],AL XOR EAX,EAX MOV dword ptr [RBX + -0x7],EAX MOV dword ptr [RBX + -0x4],EAX MOV EDX,0x1fd4 MOV RDI,RBX MOV ESI,0xff CALL 0x00129270 CALL 0x0016d340 MOV RBX,RAX MOV EDI,dword ptr [RAX + 0x18] LEA RSI,[RBP + -0x2010] MOV EDX,0x2000 MOV R8D,0x34 XOR ECX,ECX CALL 0x001a3642 TEST RAX,RAX SETNZ AL MOV byte ptr [RBX + 0x51],0x0 MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x10] JNZ 0x0016c220 ADD RSP,0x2008 POP RBX POP RBP RET LAB_0016c220: CALL 0x00129220
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ bool translog_write_file_header(void) { long lVar1; long lVar2; long in_FS_OFFSET; int8 local_2018; char local_2010 [4]; int8 local_200c; int4 local_2004; int8 local_2000; int2 local_1ff8; int1 local_1ff6; int1 local_1ff5; int1 local_1ff4; int4 local_1ff3; int3 uStack_1fef; int1 local_1fec [8148]; long local_18; local_18 = *(long *)(in_FS_OFFSET + 0x28); local_2010 = (char [4])s_MARIALOG_004871ac._4_4_; local_2018 = _maria_trans_file_magic; local_200c = my_hrtime(); local_2004 = 10000; local_2000 = DAT_00501514; local_1ff8 = 0x1fff; local_1ff6 = (int1)((ulong)DAT_00d02148 >> 0x20); local_1ff5 = (int1)((ulong)DAT_00d02148 >> 0x28); local_1ff4 = (int1)((ulong)DAT_00d02148 >> 0x30); local_1ff3 = 0; uStack_1fef = 0; memset(local_1fec,0xff,0x1fd4); lVar1 = get_current_logfile(); lVar2 = my_pwrite(*(int4 *)(lVar1 + 0x18),&local_2018,0x2000,0,0x34); *(int1 *)(lVar1 + 0x51) = 0; if (*(long *)(in_FS_OFFSET + 0x28) == local_18) { return lVar2 != 0; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
31,199
ma_write_undo_key_delete
eloqsql/storage/maria/ma_delete.c
my_bool _ma_write_undo_key_delete(MARIA_HA *info, const MARIA_KEY *key, my_off_t new_root, LSN *res_lsn) { MARIA_SHARE *share= info->s; uchar log_data[LSN_STORE_SIZE + FILEID_STORE_SIZE + KEY_NR_STORE_SIZE + PAGE_STORE_SIZE], *log_pos; LEX_CUSTRING log_array[TRANSLOG_INTERNAL_PARTS + 2]; struct st_msg_to_write_hook_for_undo_key msg; enum translog_record_type log_type= LOGREC_UNDO_KEY_DELETE; uint keynr= key->keyinfo->key_nr; lsn_store(log_data, info->trn->undo_lsn); key_nr_store(log_data + LSN_STORE_SIZE + FILEID_STORE_SIZE, keynr); log_pos= log_data + LSN_STORE_SIZE + FILEID_STORE_SIZE + KEY_NR_STORE_SIZE; /** @todo BUG if we had concurrent insert/deletes, reading state's key_root like this would be unsafe. */ if (new_root != share->state.key_root[keynr]) { my_off_t page; page= ((new_root == HA_OFFSET_ERROR) ? IMPOSSIBLE_PAGE_NO : new_root / share->block_size); page_store(log_pos, page); log_pos+= PAGE_STORE_SIZE; log_type= LOGREC_UNDO_KEY_DELETE_WITH_ROOT; } log_array[TRANSLOG_INTERNAL_PARTS + 0].str= log_data; log_array[TRANSLOG_INTERNAL_PARTS + 0].length= (uint) (log_pos - log_data); log_array[TRANSLOG_INTERNAL_PARTS + 1].str= key->data; log_array[TRANSLOG_INTERNAL_PARTS + 1].length= (key->data_length + key->ref_length); msg.root= &share->state.key_root[keynr]; msg.value= new_root; /* set autoincrement to 1 if this is an auto_increment key This is only used if we are now in a rollback of a duplicate key */ msg.auto_increment= share->base.auto_key == keynr + 1; return translog_write_record(res_lsn, log_type, info->trn, info, (translog_size_t) (log_array[TRANSLOG_INTERNAL_PARTS + 0].length + log_array[TRANSLOG_INTERNAL_PARTS + 1].length), TRANSLOG_INTERNAL_PARTS + 2, log_array, log_data + LSN_STORE_SIZE, &msg) ? -1 : 0; }
O0
c
ma_write_undo_key_delete: pushq %rbp movq %rsp, %rbp subq $0x100, %rsp # imm = 0x100 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x20(%rbp) movq %rsi, -0x28(%rbp) movq %rdx, -0x30(%rbp) movq %rcx, -0x38(%rbp) movq -0x20(%rbp), %rax movq (%rax), %rax movq %rax, -0x40(%rbp) movl $0x17, -0xb4(%rbp) movq -0x28(%rbp), %rax movq 0x8(%rax), %rax movzbl 0xa5(%rax), %eax movl %eax, -0xb8(%rbp) jmp 0x6ff14 movq -0x20(%rbp), %rax movq 0x8(%rax), %rax movq 0x98(%rax), %rax sarq $0x20, %rax movb %al, -0x17(%rbp) movq -0x20(%rbp), %rax movq 0x8(%rax), %rax movq 0x98(%rax), %rax sarq $0x20, %rax shrl $0x8, %eax movb %al, -0x16(%rbp) movq -0x20(%rbp), %rax movq 0x8(%rax), %rax movq 0x98(%rax), %rax sarq $0x20, %rax shrl $0x10, %eax movb %al, -0x15(%rbp) jmp 0x6ff5e leaq -0x17(%rbp), %rax addq $0x3, %rax movq %rax, -0xc0(%rbp) movq -0x20(%rbp), %rax movq 0x8(%rax), %rcx movabsq $0xffffffff, %rax # imm = 0xFFFFFFFF andq 0x98(%rcx), %rax movl %eax, %ecx movq -0xc0(%rbp), %rax movl %ecx, (%rax) jmp 0x6ff93 movl -0xb8(%rbp), %eax movb %al, -0xe(%rbp) leaq -0x17(%rbp), %rax addq $0x7, %rax addq $0x2, %rax addq $0x1, %rax movq %rax, -0x48(%rbp) movq -0x30(%rbp), %rax movq -0x40(%rbp), %rcx movq 0x118(%rcx), %rcx movl -0xb8(%rbp), %edx cmpq (%rcx,%rdx,8), %rax je 0x7005b cmpq $-0x1, -0x30(%rbp) jne 0x6ffe9 movabsq $0xffffffffff, %rax # imm = 0xFFFFFFFFFF movq %rax, -0xd8(%rbp) jmp 0x70003 movq -0x30(%rbp), %rax movq -0x40(%rbp), %rcx movl 0x7bc(%rcx), %ecx xorl %edx, %edx divq %rcx movq %rax, -0xd8(%rbp) movq -0xd8(%rbp), %rax movq %rax, -0xc8(%rbp) movq -0x48(%rbp), %rax movq %rax, -0xd0(%rbp) movq -0xc8(%rbp), %rax movl %eax, %ecx movq -0xd0(%rbp), %rax movl %ecx, (%rax) movq -0xc8(%rbp), %rax shrq $0x20, %rax movb %al, %cl movq -0xd0(%rbp), %rax movb %cl, 0x4(%rax) movq -0x48(%rbp), %rax addq $0x5, %rax movq %rax, -0x48(%rbp) movl $0x18, -0xb4(%rbp) leaq -0x17(%rbp), %rcx movq %rcx, -0x70(%rbp) movl -0x48(%rbp), %eax subl %ecx, %eax movq %rax, -0x68(%rbp) movq -0x28(%rbp), %rax movq (%rax), %rax movq %rax, -0x60(%rbp) movq -0x28(%rbp), %rcx movl 0x10(%rcx), %eax movl 0x14(%rcx), %ecx addl %ecx, %eax movq %rax, -0x58(%rbp) movq -0x40(%rbp), %rax movq 0x118(%rax), %rax movl -0xb8(%rbp), %ecx leaq (%rax,%rcx,8), %rax movq %rax, -0xb0(%rbp) movq -0x30(%rbp), %rax movq %rax, -0xa8(%rbp) movq -0x40(%rbp), %rax movl 0x3ec(%rax), %eax movl -0xb8(%rbp), %ecx incl %ecx subl %ecx, %eax sete %al movzbl %al, %eax movq %rax, -0x98(%rbp) movq -0x38(%rbp), %rdi movl -0xb4(%rbp), %esi movq -0x20(%rbp), %rcx movq 0x8(%rcx), %rdx movl -0x68(%rbp), %r8d movl -0x58(%rbp), %eax addl %eax, %r8d leaq -0x10(%rbp), %r9 movq %rsp, %rax leaq -0xb0(%rbp), %r10 movq %r10, 0x10(%rax) movq %r9, 0x8(%rax) leaq -0x90(%rbp), %r9 movq %r9, (%rax) movl $0x4, %r9d callq 0xa9a60 movb %al, %cl xorl %eax, %eax negb %cl sbbl %eax, %eax movb %al, -0xd9(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x70145 movb -0xd9(%rbp), %al addq $0x100, %rsp # imm = 0x100 popq %rbp retq callq 0x2c290 nopw (%rax,%rax)
_ma_write_undo_key_delete: push rbp mov rbp, rsp sub rsp, 100h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_20], rdi mov [rbp+var_28], rsi mov [rbp+var_30], rdx mov [rbp+var_38], rcx mov rax, [rbp+var_20] mov rax, [rax] mov [rbp+var_40], rax mov [rbp+var_B4], 17h mov rax, [rbp+var_28] mov rax, [rax+8] movzx eax, byte ptr [rax+0A5h] mov [rbp+var_B8], eax jmp short $+2 loc_6FF14: mov rax, [rbp+var_20] mov rax, [rax+8] mov rax, [rax+98h] sar rax, 20h mov [rbp+var_17], al mov rax, [rbp+var_20] mov rax, [rax+8] mov rax, [rax+98h] sar rax, 20h shr eax, 8 mov [rbp+var_16], al mov rax, [rbp+var_20] mov rax, [rax+8] mov rax, [rax+98h] sar rax, 20h shr eax, 10h mov [rbp+var_15], al jmp short $+2 loc_6FF5E: lea rax, [rbp+var_17] add rax, 3 mov [rbp+var_C0], rax mov rax, [rbp+var_20] mov rcx, [rax+8] mov rax, 0FFFFFFFFh and rax, [rcx+98h] mov ecx, eax mov rax, [rbp+var_C0] mov [rax], ecx jmp short $+2 loc_6FF93: mov eax, [rbp+var_B8] mov [rbp+var_E], al lea rax, [rbp+var_17] add rax, 7 add rax, 2 add rax, 1 mov [rbp+var_48], rax mov rax, [rbp+var_30] mov rcx, [rbp+var_40] mov rcx, [rcx+118h] mov edx, [rbp+var_B8] cmp rax, [rcx+rdx*8] jz loc_7005B cmp [rbp+var_30], 0FFFFFFFFFFFFFFFFh jnz short loc_6FFE9 mov rax, 0FFFFFFFFFFh mov [rbp+var_D8], rax jmp short loc_70003 loc_6FFE9: mov rax, [rbp+var_30] mov rcx, [rbp+var_40] mov ecx, [rcx+7BCh] xor edx, edx div rcx mov [rbp+var_D8], rax loc_70003: mov rax, [rbp+var_D8] mov [rbp+var_C8], rax mov rax, [rbp+var_48] mov [rbp+var_D0], rax mov rax, [rbp+var_C8] mov ecx, eax mov rax, [rbp+var_D0] mov [rax], ecx mov rax, [rbp+var_C8] shr rax, 20h mov cl, al mov rax, [rbp+var_D0] mov [rax+4], cl mov rax, [rbp+var_48] add rax, 5 mov [rbp+var_48], rax mov [rbp+var_B4], 18h loc_7005B: lea rcx, [rbp+var_17] mov [rbp+var_70], rcx mov eax, dword ptr [rbp+var_48] sub eax, ecx mov [rbp+var_68], rax mov rax, [rbp+var_28] mov rax, [rax] mov [rbp+var_60], rax mov rcx, [rbp+var_28] mov eax, [rcx+10h] mov ecx, [rcx+14h] add eax, ecx mov [rbp+var_58], rax mov rax, [rbp+var_40] mov rax, [rax+118h] mov ecx, [rbp+var_B8] lea rax, [rax+rcx*8] mov [rbp+var_B0], rax mov rax, [rbp+var_30] mov [rbp+var_A8], rax mov rax, [rbp+var_40] mov eax, [rax+3ECh] mov ecx, [rbp+var_B8] inc ecx sub eax, ecx setz al movzx eax, al mov [rbp+var_98], rax mov rdi, [rbp+var_38] mov esi, [rbp+var_B4] mov rcx, [rbp+var_20] mov rdx, [rcx+8] mov r8d, dword ptr [rbp+var_68] mov eax, dword ptr [rbp+var_58] add r8d, eax lea r9, [rbp+var_10] mov rax, rsp lea r10, [rbp+var_B0] mov [rax+10h], r10 mov [rax+8], r9 lea r9, [rbp+var_90] mov [rax], r9 mov r9d, 4 call translog_write_record mov cl, al xor eax, eax neg cl sbb eax, eax mov [rbp+var_D9], al mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_70145 mov al, [rbp+var_D9] add rsp, 100h pop rbp retn loc_70145: call ___stack_chk_fail
char ma_write_undo_key_delete(_QWORD *a1, long long *a2, unsigned long long a3, long long a4) { unsigned long long v5; // [rsp+28h] [rbp-D8h] _DWORD *v6; // [rsp+30h] [rbp-D0h] unsigned int v7; // [rsp+48h] [rbp-B8h] int v8; // [rsp+4Ch] [rbp-B4h] _QWORD v9[4]; // [rsp+50h] [rbp-B0h] BYREF _BYTE v10[32]; // [rsp+70h] [rbp-90h] BYREF _BYTE *v11; // [rsp+90h] [rbp-70h] long long v12; // [rsp+98h] [rbp-68h] long long v13; // [rsp+A0h] [rbp-60h] long long v14; // [rsp+A8h] [rbp-58h] _DWORD *v15; // [rsp+B8h] [rbp-48h] long long v16; // [rsp+C0h] [rbp-40h] long long v17; // [rsp+C8h] [rbp-38h] unsigned long long v18; // [rsp+D0h] [rbp-30h] long long *v19; // [rsp+D8h] [rbp-28h] _QWORD *v20; // [rsp+E0h] [rbp-20h] _BYTE v21[3]; // [rsp+E9h] [rbp-17h] BYREF int v22; // [rsp+ECh] [rbp-14h] _BYTE v23[3]; // [rsp+F0h] [rbp-10h] BYREF _BYTE v24[13]; // [rsp+F3h] [rbp-Dh] BYREF *(_QWORD *)&v24[5] = __readfsqword(0x28u); v20 = a1; v19 = a2; v18 = a3; v17 = a4; v16 = *a1; v8 = 23; v7 = *(unsigned __int8 *)(a2[1] + 165); v21[0] = BYTE4(*(_QWORD *)(a1[1] + 152LL)); v21[1] = (unsigned __int16)WORD2(*(_QWORD *)(a1[1] + 152LL)) >> 8; v21[2] = BYTE6(*(_QWORD *)(a1[1] + 152LL)); v22 = *(_QWORD *)(a1[1] + 152LL); v23[2] = v7; v15 = v24; if ( a3 != *(_QWORD *)(*(_QWORD *)(v16 + 280) + 8LL * v7) ) { if ( v18 == -1LL ) v5 = 0xFFFFFFFFFFLL; else v5 = v18 / *(unsigned int *)(v16 + 1980); v6 = v15; *v15 = v5; *((_BYTE *)v6 + 4) = BYTE4(v5); v15 = (_DWORD *)((char *)v15 + 5); v8 = 24; } v11 = v21; v12 = (unsigned int)v15 - (unsigned int)v21; v13 = *v19; v14 = (unsigned int)(*((_DWORD *)v19 + 5) + *((_DWORD *)v19 + 4)); v9[0] = *(_QWORD *)(v16 + 280) + 8LL * v7; v9[1] = v18; v9[3] = *(_DWORD *)(v16 + 1004) == v7 + 1; return -((unsigned __int8)translog_write_record( v17, v8, v20[1], (_DWORD)v20, (unsigned int)v14 + (_DWORD)v15 - (unsigned int)v21, 4, (long long)v10, (long long)v23, (long long)v9) != 0); }
_ma_write_undo_key_delete: PUSH RBP MOV RBP,RSP SUB RSP,0x100 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x20],RDI MOV qword ptr [RBP + -0x28],RSI MOV qword ptr [RBP + -0x30],RDX MOV qword ptr [RBP + -0x38],RCX MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x40],RAX MOV dword ptr [RBP + -0xb4],0x17 MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x8] MOVZX EAX,byte ptr [RAX + 0xa5] MOV dword ptr [RBP + -0xb8],EAX JMP 0x0016ff14 LAB_0016ff14: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RAX + 0x98] SAR RAX,0x20 MOV byte ptr [RBP + -0x17],AL MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RAX + 0x98] SAR RAX,0x20 SHR EAX,0x8 MOV byte ptr [RBP + -0x16],AL MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RAX + 0x98] SAR RAX,0x20 SHR EAX,0x10 MOV byte ptr [RBP + -0x15],AL JMP 0x0016ff5e LAB_0016ff5e: LEA RAX,[RBP + -0x17] ADD RAX,0x3 MOV qword ptr [RBP + -0xc0],RAX MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RAX + 0x8] MOV RAX,0xffffffff AND RAX,qword ptr [RCX + 0x98] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0xc0] MOV dword ptr [RAX],ECX JMP 0x0016ff93 LAB_0016ff93: MOV EAX,dword ptr [RBP + -0xb8] MOV byte ptr [RBP + -0xe],AL LEA RAX,[RBP + -0x17] ADD RAX,0x7 ADD RAX,0x2 ADD RAX,0x1 MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x40] MOV RCX,qword ptr [RCX + 0x118] MOV EDX,dword ptr [RBP + -0xb8] CMP RAX,qword ptr [RCX + RDX*0x8] JZ 0x0017005b CMP qword ptr [RBP + -0x30],-0x1 JNZ 0x0016ffe9 MOV RAX,0xffffffffff MOV qword ptr [RBP + -0xd8],RAX JMP 0x00170003 LAB_0016ffe9: MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x40] MOV ECX,dword ptr [RCX + 0x7bc] XOR EDX,EDX DIV RCX MOV qword ptr [RBP + -0xd8],RAX LAB_00170003: MOV RAX,qword ptr [RBP + -0xd8] MOV qword ptr [RBP + -0xc8],RAX MOV RAX,qword ptr [RBP + -0x48] MOV qword ptr [RBP + -0xd0],RAX MOV RAX,qword ptr [RBP + -0xc8] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0xd0] MOV dword ptr [RAX],ECX MOV RAX,qword ptr [RBP + -0xc8] SHR RAX,0x20 MOV CL,AL MOV RAX,qword ptr [RBP + -0xd0] MOV byte ptr [RAX + 0x4],CL MOV RAX,qword ptr [RBP + -0x48] ADD RAX,0x5 MOV qword ptr [RBP + -0x48],RAX MOV dword ptr [RBP + -0xb4],0x18 LAB_0017005b: LEA RCX,[RBP + -0x17] MOV qword ptr [RBP + -0x70],RCX MOV EAX,dword ptr [RBP + -0x48] SUB EAX,ECX MOV qword ptr [RBP + -0x68],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x60],RAX MOV RCX,qword ptr [RBP + -0x28] MOV EAX,dword ptr [RCX + 0x10] MOV ECX,dword ptr [RCX + 0x14] ADD EAX,ECX MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RAX + 0x118] MOV ECX,dword ptr [RBP + -0xb8] LEA RAX,[RAX + RCX*0x8] MOV qword ptr [RBP + -0xb0],RAX MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0xa8],RAX MOV RAX,qword ptr [RBP + -0x40] MOV EAX,dword ptr [RAX + 0x3ec] MOV ECX,dword ptr [RBP + -0xb8] INC ECX SUB EAX,ECX SETZ AL MOVZX EAX,AL MOV qword ptr [RBP + -0x98],RAX MOV RDI,qword ptr [RBP + -0x38] MOV ESI,dword ptr [RBP + -0xb4] MOV RCX,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RCX + 0x8] MOV R8D,dword ptr [RBP + -0x68] MOV EAX,dword ptr [RBP + -0x58] ADD R8D,EAX LEA R9,[RBP + -0x10] MOV RAX,RSP LEA R10,[RBP + -0xb0] MOV qword ptr [RAX + 0x10],R10 MOV qword ptr [RAX + 0x8],R9 LEA R9,[RBP + -0x90] MOV qword ptr [RAX],R9 MOV R9D,0x4 CALL 0x001a9a60 MOV CL,AL XOR EAX,EAX NEG CL SBB EAX,EAX MOV byte ptr [RBP + -0xd9],AL MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00170145 MOV AL,byte ptr [RBP + -0xd9] ADD RSP,0x100 POP RBP RET LAB_00170145: CALL 0x0012c290
int8 _ma_write_undo_key_delete(long *param_1,int8 *param_2,ulong param_3,int8 param_4) { char cVar1; uint uVar2; uint uVar3; uint uVar4; long in_FS_OFFSET; ulong local_e0; int4 local_bc; long local_b8; ulong local_b0; ulong local_a0; int1 local_98 [32]; int1 *local_78; ulong local_70; int8 local_68; ulong local_60; long *local_50; long local_48; int8 local_40; ulong local_38; int8 *local_30; long *local_28; int1 local_1f; int1 local_1e; int1 local_1d; int4 local_1c; int1 local_18 [2]; byte local_16; int4 local_15; int1 local_11; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_48 = *param_1; local_bc = 0x17; local_16 = *(byte *)(param_2[1] + 0xa5); uVar2 = (uint)local_16; local_1f = (int1)((ulong)*(int8 *)(param_1[1] + 0x98) >> 0x20); local_1e = (int1)((ulong)*(int8 *)(param_1[1] + 0x98) >> 0x28); local_1d = (int1)((ulong)*(int8 *)(param_1[1] + 0x98) >> 0x30); local_1c = (int4)*(int8 *)(param_1[1] + 0x98); local_50 = (long *)&local_15; if (param_3 != *(ulong *)(*(long *)(local_48 + 0x118) + (ulong)uVar2 * 8)) { if (param_3 == 0xffffffffffffffff) { local_e0 = 0xffffffffff; } else { local_e0 = param_3 / *(uint *)(local_48 + 0x7bc); } local_15 = (int4)local_e0; local_11 = (int1)(local_e0 >> 0x20); local_50 = &local_10; local_bc = 0x18; } local_78 = &local_1f; uVar3 = (int)local_50 - (int)local_78; local_70 = (ulong)uVar3; local_68 = *param_2; uVar4 = *(int *)(param_2 + 2) + *(int *)((long)param_2 + 0x14); local_60 = (ulong)uVar4; local_b8 = *(long *)(local_48 + 0x118) + (ulong)uVar2 * 8; local_a0 = (ulong)(*(int *)(local_48 + 0x3ec) == uVar2 + 1); local_b0 = param_3; local_40 = param_4; local_38 = param_3; local_30 = param_2; local_28 = param_1; cVar1 = translog_write_record (param_4,local_bc,param_1[1],param_1,uVar3 + uVar4,4,local_98,local_18,&local_b8 ); if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return CONCAT71((int7)((ulong)*(long *)(in_FS_OFFSET + 0x28) >> 8),-(cVar1 != '\0')); } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }