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
6,200
find_jump_target
bluesky950520[P]quickjs/quickjs.c
static int find_jump_target(JSFunctionDef *s, int label, int *pop) { int i, pos, op; update_label(s, label, -1); for (i = 0; i < 10; i++) { assert(label >= 0 && label < s->label_count); pos = s->label_slots[label].pos2; for (;;) { switch(op = s->byte_code.buf[pos]) { case OP_source_loc: case OP_label: pos += opcode_info[op].size; continue; case OP_goto: label = get_u32(s->byte_code.buf + pos + 1); break; case OP_drop: /* ignore drop opcodes if followed by OP_return_undef */ while (s->byte_code.buf[++pos] == OP_drop) continue; if (s->byte_code.buf[pos] == OP_return_undef) op = OP_return_undef; /* fall thru */ default: goto done; } break; } } /* cycle detected, could issue a warning */ done: *pop = op; update_label(s, label, +1); return label; }
O3
c
find_jump_target: pushq %rbx movl %esi, %eax movq 0x170(%rdi), %rcx movslq %esi, %rsi leaq (%rsi,%rsi,2), %rsi decl (%rcx,%rsi,8) movq 0x138(%rdi), %rdi xorl %r8d, %r8d leaq 0x2ed0f(%rip), %r9 # 0x9f9c0 movslq %eax, %rsi leaq (%rsi,%rsi,2), %r10 movl 0x8(%rcx,%r10,8), %r11d movslq %r11d, %rbx movzbl (%rdi,%rbx), %r10d cmpl $0xc3, %r10d jg 0x70cd9 cmpl $0xb5, %r10d je 0x70ce2 jmp 0x70cec cmpl $0xc4, %r10d jne 0x70d37 movzbl (%r9,%r10,4), %r10d addl %r10d, %r11d jmp 0x70cbd cmpl $0xe, %r10d je 0x70d10 cmpl $0x6b, %r10d jne 0x70d37 movl 0x1(%rdi,%rbx), %eax incl %r8d cmpl $0xa, %r8d jne 0x70cb1 movslq %eax, %rsi movl $0x6b, %r10d jmp 0x70d37 addq %rbx, %rdi incq %rdi movzbl (%rdi), %r8d incq %rdi cmpl $0xe, %r8d je 0x70d16 cmpl $0x29, %r8d jne 0x70d31 movl $0x29, %r10d jmp 0x70d37 movl $0xe, %r10d movl %r10d, (%rdx) leaq (%rsi,%rsi,2), %rdx incl (%rcx,%rdx,8) popq %rbx retq
find_jump_target: push rbx mov eax, esi mov rcx, [rdi+170h] movsxd rsi, esi lea rsi, [rsi+rsi*2] dec dword ptr [rcx+rsi*8] mov rdi, [rdi+138h] xor r8d, r8d lea r9, opcode_info loc_70CB1: movsxd rsi, eax lea r10, [rsi+rsi*2] mov r11d, [rcx+r10*8+8] loc_70CBD: movsxd rbx, r11d movzx r10d, byte ptr [rdi+rbx] cmp r10d, 0C3h jg short loc_70CD9 cmp r10d, 0B5h jz short loc_70CE2 jmp short loc_70CEC loc_70CD9: cmp r10d, 0C4h jnz short loc_70D37 loc_70CE2: movzx r10d, byte ptr [r9+r10*4] add r11d, r10d jmp short loc_70CBD loc_70CEC: cmp r10d, 0Eh jz short loc_70D10 cmp r10d, 6Bh ; 'k' jnz short loc_70D37 mov eax, [rdi+rbx+1] inc r8d cmp r8d, 0Ah jnz short loc_70CB1 movsxd rsi, eax mov r10d, 6Bh ; 'k' jmp short loc_70D37 loc_70D10: add rdi, rbx inc rdi loc_70D16: movzx r8d, byte ptr [rdi] inc rdi cmp r8d, 0Eh jz short loc_70D16 cmp r8d, 29h ; ')' jnz short loc_70D31 mov r10d, 29h ; ')' jmp short loc_70D37 loc_70D31: mov r10d, 0Eh loc_70D37: mov [rdx], r10d lea rdx, [rsi+rsi*2] inc dword ptr [rcx+rdx*8] pop rbx retn
long long find_jump_target(long long a1, unsigned int a2, _DWORD *a3) { long long result; // rax long long v4; // rcx long long v5; // rdi int v6; // r8d long long v7; // rsi int i; // r11d long long v9; // r10 unsigned __int8 *v10; // rdi int v11; // r8d result = a2; v4 = *(_QWORD *)(a1 + 368); --*(_DWORD *)(v4 + 24LL * (int)a2); v5 = *(_QWORD *)(a1 + 312); v6 = 0; while ( 2 ) { v7 = (int)result; for ( i = *(_DWORD *)(v4 + 24LL * (int)result + 8); ; i += opcode_info[4 * v9] ) { v9 = *(unsigned __int8 *)(v5 + i); if ( *(unsigned __int8 *)(v5 + i) <= 0xC3u ) break; if ( (_DWORD)v9 != 196 ) goto LABEL_17; LABEL_7: ; } switch ( (_DWORD)v9 ) { case 0xB5: goto LABEL_7; case 0xE: v10 = (unsigned __int8 *)(i + v5 + 1); do v11 = *v10++; while ( v11 == 14 ); if ( v11 == 41 ) LODWORD(v9) = 41; else LODWORD(v9) = 14; break; case 0x6B: result = *(unsigned int *)(v5 + i + 1); if ( ++v6 == 10 ) { v7 = (int)result; LODWORD(v9) = 107; break; } continue; } break; } LABEL_17: *a3 = v9; ++*(_DWORD *)(v4 + 24 * v7); return result; }
find_jump_target: PUSH RBX MOV EAX,ESI MOV RCX,qword ptr [RDI + 0x170] MOVSXD RSI,ESI LEA RSI,[RSI + RSI*0x2] DEC dword ptr [RCX + RSI*0x8] MOV RDI,qword ptr [RDI + 0x138] XOR R8D,R8D LEA R9,[0x19f9c0] LAB_00170cb1: MOVSXD RSI,EAX LEA R10,[RSI + RSI*0x2] MOV R11D,dword ptr [RCX + R10*0x8 + 0x8] LAB_00170cbd: MOVSXD RBX,R11D MOVZX R10D,byte ptr [RDI + RBX*0x1] CMP R10D,0xc3 JG 0x00170cd9 CMP R10D,0xb5 JZ 0x00170ce2 JMP 0x00170cec LAB_00170cd9: CMP R10D,0xc4 JNZ 0x00170d37 LAB_00170ce2: MOVZX R10D,byte ptr [R9 + R10*0x4] ADD R11D,R10D JMP 0x00170cbd LAB_00170cec: CMP R10D,0xe JZ 0x00170d10 CMP R10D,0x6b JNZ 0x00170d37 MOV EAX,dword ptr [RDI + RBX*0x1 + 0x1] INC R8D CMP R8D,0xa JNZ 0x00170cb1 MOVSXD RSI,EAX MOV R10D,0x6b JMP 0x00170d37 LAB_00170d10: ADD RDI,RBX INC RDI LAB_00170d16: MOVZX R8D,byte ptr [RDI] INC RDI CMP R8D,0xe JZ 0x00170d16 CMP R8D,0x29 JNZ 0x00170d31 MOV R10D,0x29 JMP 0x00170d37 LAB_00170d31: MOV R10D,0xe LAB_00170d37: MOV dword ptr [RDX],R10D LEA RDX,[RSI + RSI*0x2] INC dword ptr [RCX + RDX*0x8] POP RBX RET
void find_jump_target(long param_1,int param_2,uint *param_3) { int *piVar1; byte bVar2; long lVar3; long lVar4; long lVar5; long lVar6; char *pcVar7; int iVar8; uint uVar9; int iVar10; lVar3 = *(long *)(param_1 + 0x170); piVar1 = (int *)(lVar3 + (long)param_2 * 0x18); *piVar1 = *piVar1 + -1; lVar4 = *(long *)(param_1 + 0x138); iVar8 = 0; LAB_00170cb1: lVar6 = (long)param_2; iVar10 = *(int *)(lVar3 + 8 + lVar6 * 0x18); do { lVar5 = (long)iVar10; bVar2 = *(byte *)(lVar4 + lVar5); uVar9 = (uint)bVar2; if (bVar2 < 0xc4) { if (bVar2 != 0xb5) goto LAB_00170cec; } else if (bVar2 != 0xc4) goto LAB_00170d37; iVar10 = iVar10 + (uint)(byte)opcode_info[(ulong)bVar2 * 4]; } while( true ); code_r0x00170d05: lVar6 = (long)param_2; uVar9 = 0x6b; goto LAB_00170d37; LAB_00170cec: if (bVar2 != 0xe) { if (bVar2 != 0x6b) goto LAB_00170d37; param_2 = *(int *)(lVar4 + 1 + lVar5); iVar8 = iVar8 + 1; if (iVar8 == 10) goto code_r0x00170d05; goto LAB_00170cb1; } pcVar7 = (char *)(lVar4 + lVar5); do { pcVar7 = pcVar7 + 1; } while (*pcVar7 == '\x0e'); if (*pcVar7 == ')') { uVar9 = 0x29; } else { uVar9 = 0xe; } LAB_00170d37: *param_3 = uVar9; piVar1 = (int *)(lVar3 + lVar6 * 0x18); *piVar1 = *piVar1 + 1; return; }
6,201
ggml_tallocr_new
llama.cpp/ggml/src/ggml-alloc.c
struct ggml_tallocr ggml_tallocr_new(ggml_backend_buffer_t buffer) { void * base = ggml_backend_buffer_get_base(buffer); size_t align = ggml_backend_buffer_get_alignment(buffer); assert(align && !(align & (align - 1))); // power of 2 struct ggml_tallocr talloc = (struct ggml_tallocr) { /*.buffer = */ buffer, /*.base = */ base, /*.alignment = */ align, /*.offset = */ aligned_offset(base, 0, align), }; return talloc; }
O3
c
ggml_tallocr_new: pushq %r15 pushq %r14 pushq %rbx movq %rsi, %r14 movq %rdi, %rbx movq %rsi, %rdi callq 0x17510 movq %rax, %r15 movq %r14, %rdi callq 0x17740 movq %rax, %rcx movq %r14, (%rbx) movq %r15, 0x8(%rbx) movq %rax, 0x10(%rbx) movq %r15, %rax xorl %edx, %edx divq %rcx movq %rcx, %rax subq %rdx, %rax xorl %edx, %edx divq %rcx movq %rdx, 0x18(%rbx) movq %rbx, %rax popq %rbx popq %r14 popq %r15 retq
ggml_tallocr_new: push r15 push r14 push rbx mov r14, rsi mov rbx, rdi mov rdi, rsi call _ggml_backend_buffer_get_base mov r15, rax mov rdi, r14 call _ggml_backend_buffer_get_alignment mov rcx, rax mov [rbx], r14 mov [rbx+8], r15 mov [rbx+10h], rax mov rax, r15 xor edx, edx div rcx mov rax, rcx sub rax, rdx xor edx, edx div rcx mov [rbx+18h], rdx mov rax, rbx pop rbx pop r14 pop r15 retn
_QWORD * ggml_tallocr_new(_QWORD *a1, long long a2) { unsigned long long base; // r15 unsigned long long alignment; // rax base = ggml_backend_buffer_get_base(a2); alignment = ggml_backend_buffer_get_alignment(a2); *a1 = a2; a1[1] = base; a1[2] = alignment; a1[3] = (alignment - base % alignment) % alignment; return a1; }
ggml_tallocr_new: PUSH R15 PUSH R14 PUSH RBX MOV R14,RSI MOV RBX,RDI MOV RDI,RSI CALL 0x00117510 MOV R15,RAX MOV RDI,R14 CALL 0x00117740 MOV RCX,RAX MOV qword ptr [RBX],R14 MOV qword ptr [RBX + 0x8],R15 MOV qword ptr [RBX + 0x10],RAX MOV RAX,R15 XOR EDX,EDX DIV RCX MOV RAX,RCX SUB RAX,RDX XOR EDX,EDX DIV RCX MOV qword ptr [RBX + 0x18],RDX MOV RAX,RBX POP RBX POP R14 POP R15 RET
int8 * ggml_tallocr_new(int8 *param_1,int8 param_2) { ulong uVar1; ulong uVar2; uVar1 = ggml_backend_buffer_get_base(param_2); uVar2 = ggml_backend_buffer_get_alignment(param_2); *param_1 = param_2; param_1[1] = uVar1; param_1[2] = uVar2; param_1[3] = (uVar2 - uVar1 % uVar2) % uVar2; return param_1; }
6,202
_gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>>>> nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 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::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>>>::find<char const (&) [21], 0>(char const (&) [21])
monkey531[P]llama/common/json.hpp
iterator find(KeyType && key) // NOLINT(cppcoreguidelines-missing-std-forward) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { return it; } } return Container::end(); }
O0
cpp
_gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>>>> nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 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::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>>>::find<char const (&) [21], 0>(char const (&) [21]): subq $0x38, %rsp movq %rdi, 0x28(%rsp) movq %rsi, 0x20(%rsp) movq 0x28(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0xa6340 movq %rax, 0x30(%rsp) movq 0x10(%rsp), %rdi callq 0xa6370 movq %rax, 0x18(%rsp) leaq 0x30(%rsp), %rdi leaq 0x18(%rsp), %rsi callq 0xa63a0 testb $0x1, %al jne 0x2c5856 jmp 0x2c5896 movq 0x10(%rsp), %rax addq $0x18, %rax movq %rax, 0x8(%rsp) leaq 0x30(%rsp), %rdi callq 0xe40c0 movq 0x8(%rsp), %rdi movq %rax, %rsi movq 0x20(%rsp), %rdx callq 0x2c58b0 testb $0x1, %al jne 0x2c5886 jmp 0x2c5888 jmp 0x2c58a5 jmp 0x2c588a leaq 0x30(%rsp), %rdi callq 0xa6420 jmp 0x2c5832 movq 0x10(%rsp), %rdi callq 0xa6370 movq %rax, 0x30(%rsp) movq 0x30(%rsp), %rax addq $0x38, %rsp retq nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA21_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_: sub rsp, 38h mov [rsp+38h+var_10], rdi mov [rsp+38h+var_18], rsi mov rdi, [rsp+38h+var_10] mov [rsp+38h+var_28], rdi call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE5beginEv; std::vector<std::pair<std::string const,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>>>::begin(void) mov [rsp+38h+var_8], rax loc_2C5832: mov rdi, [rsp+38h+var_28] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<std::pair<std::string const,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>>>::end(void) mov [rsp+38h+var_20], rax lea rdi, [rsp+38h+var_8] lea rsi, [rsp+38h+var_20] call _ZN9__gnu_cxxneIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbRKNS_17__normal_iteratorIT_T0_EESR_; __gnu_cxx::operator!=<std::pair<std::string const,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::vector<std::pair<std::string const,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>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,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::vector<std::pair<std::string const,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&,__gnu_cxx::__normal_iterator<std::pair<std::string const,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::vector<std::pair<std::string const,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&) test al, 1 jnz short loc_2C5856 jmp short loc_2C5896 loc_2C5856: mov rax, [rsp+38h+var_28] add rax, 18h mov [rsp+38h+var_30], rax lea rdi, [rsp+38h+var_8] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEptEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,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::vector<std::pair<std::string const,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->(void) mov rdi, [rsp+38h+var_30] mov rsi, rax mov rdx, [rsp+38h+var_18] call _ZNKSt8equal_toIvEclIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERA21_KcEEDTeqclsr3stdE7forwardIT_Efp_Eclsr3stdE7forwardIT0_Efp0_EEOSD_OSE_ test al, 1 jnz short loc_2C5886 jmp short loc_2C5888 loc_2C5886: jmp short loc_2C58A5 loc_2C5888: jmp short $+2 loc_2C588A: lea rdi, [rsp+38h+var_8] call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,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::vector<std::pair<std::string const,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++(void) jmp short loc_2C5832 loc_2C5896: mov rdi, [rsp+38h+var_28] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<std::pair<std::string const,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>>>::end(void) mov [rsp+38h+var_8], rax loc_2C58A5: mov rax, [rsp+38h+var_8] add rsp, 38h retn
long long ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA21_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_( long long a1, long long a2) { long long v2; // rax long long v4; // [rsp+18h] [rbp-20h] BYREF long long v5; // [rsp+20h] [rbp-18h] long long v6; // [rsp+28h] [rbp-10h] long long i; // [rsp+30h] [rbp-8h] BYREF v6 = a1; v5 = a2; for ( i = std::vector<std::pair<std::string const,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>>>::begin(a1); ; __gnu_cxx::__normal_iterator<std::pair<std::string const,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>> *,std::vector<std::pair<std::string const,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++(&i) ) { v4 = std::vector<std::pair<std::string const,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(a1); if ( !__gnu_cxx::operator!=<std::pair<std::string const,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>> *,std::vector<std::pair<std::string const,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>>>>( (long long)&i, (long long)&v4) ) break; v2 = __gnu_cxx::__normal_iterator<std::pair<std::string const,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>> *,std::vector<std::pair<std::string const,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->((long long)&i); if ( (std::equal_to<void>::operator()<std::string const&,char const(&)[21]>(a1 + 24, v2, v5) & 1) != 0 ) return i; } return std::vector<std::pair<std::string const,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(a1); }
6,203
_gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>>>> nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 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::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>>>::find<char const (&) [21], 0>(char const (&) [21])
monkey531[P]llama/common/json.hpp
iterator find(KeyType && key) // NOLINT(cppcoreguidelines-missing-std-forward) { for (auto it = this->begin(); it != this->end(); ++it) { if (m_compare(it->first, key)) { return it; } } return Container::end(); }
O2
cpp
_gnu_cxx::__normal_iterator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>*, std::vector<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>>>> nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, 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::less<void>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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>>>>::find<char const (&) [21], 0>(char const (&) [21]): pushq %r15 pushq %r14 pushq %rbx movq %rsi, %rbx movq %rdi, %r15 movq (%rdi), %r14 movq 0x8(%r15), %rax cmpq %rax, %r14 je 0xe7b8f movq %r14, %rdi movq %rbx, %rsi callq 0x40c7a testb %al, %al jne 0xe7b8c addq $0x30, %r14 jmp 0xe7b6e movq %r14, %rax popq %rbx popq %r14 popq %r15 retq nop
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA21_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_: push r15 push r14 push rbx mov rbx, rsi mov r15, rdi mov r14, [rdi] loc_E7B6E: mov rax, [r15+8] cmp r14, rax jz short loc_E7B8F mov rdi, r14 mov rsi, rbx call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*) test al, al jnz short loc_E7B8C add r14, 30h ; '0' jmp short loc_E7B6E loc_E7B8C: mov rax, r14 loc_E7B8F: pop rbx pop r14 pop r15 retn
long long ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA21_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_( long long *a1) { long long i; // r14 long long result; // rax for ( i = *a1; ; i += 48LL ) { result = a1[1]; if ( i == result ) break; if ( std::operator==<char>(i) ) return i; } return result; }
_ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA21_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RSI MOV R15,RDI MOV R14,qword ptr [RDI] LAB_001e7b6e: MOV RAX,qword ptr [R15 + 0x8] CMP R14,RAX JZ 0x001e7b8f MOV RDI,R14 MOV RSI,RBX CALL 0x00140c7a TEST AL,AL JNZ 0x001e7b8c ADD R14,0x30 JMP 0x001e7b6e LAB_001e7b8c: MOV RAX,R14 LAB_001e7b8f: POP RBX POP R14 POP R15 RET
string * _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA21_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_ (int8 *param_1,char *param_2) { bool bVar1; string *psVar2; string *psVar3; psVar3 = (string *)*param_1; while ((psVar2 = (string *)param_1[1], psVar3 != (string *)param_1[1] && (bVar1 = std::operator==(psVar3,param_2), psVar2 = psVar3, !bVar1))) { psVar3 = psVar3 + 0x30; } return psVar2; }
6,204
my_strxfrm_desc_and_reverse
eloqsql/strings/ctype-simple.c
void my_strxfrm_desc_and_reverse(uchar *str, uchar *strend, uint flags, uint level) { if (flags & (MY_STRXFRM_DESC_LEVEL1 << level)) { if (flags & (MY_STRXFRM_REVERSE_LEVEL1 << level)) { for (strend--; str <= strend;) { uchar tmp= *str; *str++= ~*strend; *strend--= ~tmp; } } else { for (; str < strend; str++) *str= ~*str; } } else if (flags & (MY_STRXFRM_REVERSE_LEVEL1 << level)) { for (strend--; str < strend;) { uchar tmp= *str; *str++= *strend; *strend--= tmp; } } }
O3
c
my_strxfrm_desc_and_reverse: pushq %rbp movq %rsp, %rbp movl %edx, %r8d shrl %cl, %r8d movl $0x10000, %eax # imm = 0x10000 shll %cl, %eax btl $0x8, %r8d jae 0x39ae0 testl %edx, %eax je 0x39b13 decq %rsi cmpq %rdi, %rsi jb 0x39b22 incq %rdi movb -0x1(%rdi), %al movb (%rsi), %cl notb %cl movb %cl, -0x1(%rdi) notb %al movb %al, (%rsi) decq %rsi leaq 0x1(%rdi), %rax cmpq %rsi, %rdi movq %rax, %rdi jbe 0x39ac1 jmp 0x39b22 testl %edx, %eax setne %al decq %rsi cmpq %rdi, %rsi seta %cl andb %al, %cl cmpb $0x1, %cl jne 0x39b22 incq %rdi movb -0x1(%rdi), %al movb (%rsi), %cl movb %cl, -0x1(%rdi) movb %al, (%rsi) decq %rsi leaq 0x1(%rdi), %rax cmpq %rsi, %rdi movq %rax, %rdi jb 0x39af8 jmp 0x39b22 cmpq %rsi, %rdi jae 0x39b22 notb (%rdi) incq %rdi cmpq %rsi, %rdi jne 0x39b18 popq %rbp retq
my_strxfrm_desc_and_reverse: push rbp mov rbp, rsp mov r8d, edx shr r8d, cl mov eax, 10000h shl eax, cl bt r8d, 8 jnb short loc_39AE0 test eax, edx jz short loc_39B13 dec rsi cmp rsi, rdi jb short loc_39B22 inc rdi loc_39AC1: mov al, [rdi-1] mov cl, [rsi] not cl mov [rdi-1], cl not al mov [rsi], al dec rsi lea rax, [rdi+1] cmp rdi, rsi mov rdi, rax jbe short loc_39AC1 jmp short loc_39B22 loc_39AE0: test eax, edx setnz al dec rsi cmp rsi, rdi setnbe cl and cl, al cmp cl, 1 jnz short loc_39B22 inc rdi loc_39AF8: mov al, [rdi-1] mov cl, [rsi] mov [rdi-1], cl mov [rsi], al dec rsi lea rax, [rdi+1] cmp rdi, rsi mov rdi, rax jb short loc_39AF8 jmp short loc_39B22 loc_39B13: cmp rdi, rsi jnb short loc_39B22 loc_39B18: not byte ptr [rdi] inc rdi cmp rdi, rsi jnz short loc_39B18 loc_39B22: pop rbp retn
char my_strxfrm_desc_and_reverse(_BYTE *a1, _BYTE *a2, unsigned int a3, char a4) { int v4; // eax _BYTE *v5; // rsi _BYTE *v6; // rdi char v7; // al _BYTE *v9; // rsi _BYTE *v10; // rdi char v11; // al v4 = 0x10000 << a4; if ( ((a3 >> a4) & 0x100) != 0 ) { if ( (a3 & v4) != 0 ) { v5 = a2 - 1; if ( v5 >= a1 ) { v6 = a1 + 1; do { v7 = *(v6 - 1); *(v6 - 1) = ~*v5; *v5-- = ~v7; LOBYTE(v4) = (_BYTE)v6 + 1; } while ( v6++ <= v5 ); } } else if ( a1 < a2 ) { do { *a1 = ~*a1; ++a1; } while ( a1 != a2 ); } } else { LOBYTE(v4) = (a3 & v4) != 0; v9 = a2 - 1; if ( ((unsigned __int8)v4 & (v9 > a1)) == 1 ) { v10 = a1 + 1; do { v11 = *(v10 - 1); *(v10 - 1) = *v9; *v9-- = v11; LOBYTE(v4) = (_BYTE)v10 + 1; } while ( v10++ < v9 ); } } return v4; }
my_strxfrm_desc_and_reverse: PUSH RBP MOV RBP,RSP MOV R8D,EDX SHR R8D,CL MOV EAX,0x10000 SHL EAX,CL BT R8D,0x8 JNC 0x00139ae0 TEST EAX,EDX JZ 0x00139b13 DEC RSI CMP RSI,RDI JC 0x00139b22 INC RDI LAB_00139ac1: MOV AL,byte ptr [RDI + -0x1] MOV CL,byte ptr [RSI] NOT CL MOV byte ptr [RDI + -0x1],CL NOT AL MOV byte ptr [RSI],AL DEC RSI LEA RAX,[RDI + 0x1] CMP RDI,RSI MOV RDI,RAX JBE 0x00139ac1 JMP 0x00139b22 LAB_00139ae0: TEST EAX,EDX SETNZ AL DEC RSI CMP RSI,RDI SETA CL AND CL,AL CMP CL,0x1 JNZ 0x00139b22 INC RDI LAB_00139af8: MOV AL,byte ptr [RDI + -0x1] MOV CL,byte ptr [RSI] MOV byte ptr [RDI + -0x1],CL MOV byte ptr [RSI],AL DEC RSI LEA RAX,[RDI + 0x1] CMP RDI,RSI MOV RDI,RAX JC 0x00139af8 JMP 0x00139b22 LAB_00139b13: CMP RDI,RSI JNC 0x00139b22 LAB_00139b18: NOT byte ptr [RDI] INC RDI CMP RDI,RSI JNZ 0x00139b18 LAB_00139b22: POP RBP RET
void my_strxfrm_desc_and_reverse(byte *param_1,byte *param_2,uint param_3,byte param_4) { byte bVar1; uint uVar2; byte *pbVar3; bool bVar4; uVar2 = 0x10000 << (param_4 & 0x1f); if (((param_3 >> (param_4 & 0x1f)) >> 8 & 1) == 0) { param_2 = param_2 + -1; if (param_1 < param_2 && (uVar2 & param_3) != 0) { pbVar3 = param_1 + 1; do { bVar1 = pbVar3[-1]; pbVar3[-1] = *param_2; *param_2 = bVar1; param_2 = param_2 + -1; bVar4 = pbVar3 < param_2; pbVar3 = pbVar3 + 1; } while (bVar4); } } else if ((uVar2 & param_3) == 0) { if (param_1 < param_2) { do { *param_1 = ~*param_1; param_1 = param_1 + 1; } while (param_1 != param_2); } } else { param_2 = param_2 + -1; if (param_1 <= param_2) { pbVar3 = param_1 + 1; do { bVar1 = pbVar3[-1]; pbVar3[-1] = ~*param_2; *param_2 = ~bVar1; param_2 = param_2 + -1; bVar4 = pbVar3 <= param_2; pbVar3 = pbVar3 + 1; } while (bVar4); } } return; }
6,205
ggml_threadpool_params_from_cpu_params(cpu_params const&)
monkey531[P]llama/common/common.cpp
struct ggml_threadpool_params ggml_threadpool_params_from_cpu_params(const cpu_params & params) { struct ggml_threadpool_params tpp; ggml_threadpool_params_init(&tpp, params.n_threads); // setup the defaults if (params.mask_valid) { std::memcpy(&tpp.cpumask, &params.cpumask, GGML_MAX_N_THREADS); } tpp.prio = params.priority; tpp.poll = params.poll; tpp.strict_cpu = params.strict_cpu; return tpp; }
O1
cpp
ggml_threadpool_params_from_cpu_params(cpu_params const&): pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx movl (%rsi), %esi callq 0x1b810 cmpb $0x1, 0x204(%r14) jne 0x79bb8 leaq 0x4(%r14), %rsi movl $0x200, %edx # imm = 0x200 movq %rbx, %rdi callq 0x1b770 movl 0x208(%r14), %eax movl %eax, 0x204(%rbx) movl 0x210(%r14), %eax movl %eax, 0x208(%rbx) movb 0x20c(%r14), %al movb %al, 0x20c(%rbx) movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r14 retq
_Z38ggml_threadpool_params_from_cpu_paramsRK10cpu_params: push r14 push rbx push rax mov r14, rsi mov rbx, rdi mov esi, [rsi] call _ggml_threadpool_params_init cmp byte ptr [r14+204h], 1 jnz short loc_79BB8 lea rsi, [r14+4] mov edx, 200h mov rdi, rbx call _memcpy loc_79BB8: mov eax, [r14+208h] mov [rbx+204h], eax mov eax, [r14+210h] mov [rbx+208h], eax mov al, [r14+20Ch] mov [rbx+20Ch], al mov rax, rbx add rsp, 8 pop rbx pop r14 retn
long long ggml_threadpool_params_from_cpu_params(long long a1, unsigned int *a2) { ggml_threadpool_params_init(a1, *a2); if ( *((_BYTE *)a2 + 516) == 1 ) memcpy(a1, a2 + 1, 512LL); *(_DWORD *)(a1 + 516) = a2[130]; *(_DWORD *)(a1 + 520) = a2[132]; *(_BYTE *)(a1 + 524) = *((_BYTE *)a2 + 524); return a1; }
ggml_threadpool_params_from_cpu_params: PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI MOV ESI,dword ptr [RSI] CALL 0x0011b810 CMP byte ptr [R14 + 0x204],0x1 JNZ 0x00179bb8 LEA RSI,[R14 + 0x4] MOV EDX,0x200 MOV RDI,RBX CALL 0x0011b770 LAB_00179bb8: MOV EAX,dword ptr [R14 + 0x208] MOV dword ptr [RBX + 0x204],EAX MOV EAX,dword ptr [R14 + 0x210] MOV dword ptr [RBX + 0x208],EAX MOV AL,byte ptr [R14 + 0x20c] MOV byte ptr [RBX + 0x20c],AL MOV RAX,RBX ADD RSP,0x8 POP RBX POP R14 RET
/* ggml_threadpool_params_from_cpu_params(cpu_params const&) */ cpu_params * ggml_threadpool_params_from_cpu_params(cpu_params *param_1) { int4 *in_RSI; ggml_threadpool_params_init(param_1,*in_RSI); if (*(char *)(in_RSI + 0x81) == '\x01') { memcpy(param_1,in_RSI + 1,0x200); } *(int4 *)(param_1 + 0x204) = in_RSI[0x82]; *(int4 *)(param_1 + 0x208) = in_RSI[0x84]; param_1[0x20c] = *(cpu_params *)(in_RSI + 0x83); return param_1; }
6,206
test_bulk_insert_returning
eloqsql/tests/mysql_client_test.c
static void test_bulk_insert_returning() { int rc; MYSQL_STMT *stmt; MYSQL_BIND bind[2], res_bind[2]; MYSQL_ROW row; MYSQL_RES *result; int i, id[]= {1, 2, 3, 4}, val[]= {1, 1, 1, 1}, count= sizeof(id)/sizeof(id[0]); unsigned long length[2]; my_bool is_null[2]; my_bool error[2]; int32 res[2]; rc= mysql_query(mysql, "DROP TABLE IF EXISTS t1"); myquery(rc); rc= mysql_query(mysql, "CREATE TABLE t1 (id int not null primary key, active int)"); myquery(rc); stmt= mysql_stmt_init(mysql); rc= mysql_stmt_prepare(stmt, "insert into t1 values (?, ?) returning id, active", -1); check_execute(stmt, rc); memset(bind, 0, sizeof(bind)); bind[0].buffer_type = MYSQL_TYPE_LONG; bind[0].buffer = (void *)id; bind[0].buffer_length = 0; bind[1].buffer_type = MYSQL_TYPE_LONG; bind[1].buffer = (void *)val; bind[1].buffer_length = 0; mysql_stmt_attr_set(stmt, STMT_ATTR_ARRAY_SIZE, (void*)&count); rc= mysql_stmt_bind_param(stmt, bind); check_execute(stmt, rc); rc= mysql_stmt_execute(stmt); myquery(rc); memset(res_bind, 0, sizeof(res_bind)); for (i= 0; i < 2; i++) { res_bind[i].buffer_type= MYSQL_TYPE_LONG; res_bind[i].buffer= (char *)&res[i]; res_bind[i].is_null= &is_null[i]; res_bind[i].length= &length[i]; res_bind[i].error= &error[i]; } rc= mysql_stmt_bind_result(stmt, res_bind); myquery(rc); rc= mysql_stmt_store_result(stmt); myquery(rc); i= 0; while (!mysql_stmt_fetch(stmt)) { i++; DIE_IF(is_null[0] || is_null[1]); DIE_IF(res[0] != i); DIE_IF(res[1] != 1); } DIE_IF(i != 4); mysql_stmt_close(stmt); rc= mysql_query(mysql, "SELECT id,active FROM t1"); myquery(rc); result= mysql_store_result(mysql); mytest(result); i= 0; while ((row= mysql_fetch_row(result))) { i++; DIE_IF(atoi(row[0]) != i); DIE_IF(atoi(row[1]) != 1); } DIE_IF(i != 4); mysql_free_result(result); rc= mysql_query(mysql, "DROP TABLE t1"); myquery(rc); }
O3
c
test_bulk_insert_returning: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x208, %rsp # imm = 0x208 movaps 0x5ab1c(%rip), %xmm0 # 0xde270 movaps %xmm0, -0x70(%rbp) movaps 0x5ab01(%rip), %xmm0 # 0xde260 movaps %xmm0, -0x60(%rbp) movl $0x4, -0x38(%rbp) movq 0x396d57(%rip), %rdi # 0x41a4c8 leaq 0x5d066(%rip), %rsi # 0xe07de callq 0x3b116 testl %eax, %eax jne 0x83a2d movq 0x396d3c(%rip), %rdi # 0x41a4c8 leaq 0x736e3(%rip), %rsi # 0xf6e76 callq 0x3b116 testl %eax, %eax jne 0x83a4c movq 0x396d21(%rip), %rdi # 0x41a4c8 callq 0x9191c movq %rax, %rbx leaq 0x73781(%rip), %rsi # 0xf6f37 movq %rax, %rdi movq $-0x1, %rdx callq 0x3b4a1 testl %eax, %eax jne 0x83a6b leaq -0x230(%rbp), %r14 movl $0xe0, %edx movq %r14, %rdi xorl %esi, %esi callq 0x392e0 movl $0x3, %eax movl %eax, 0x60(%r14) leaq -0x70(%rbp), %rcx movq %rcx, 0x10(%r14) movl %eax, 0xd0(%r14) leaq -0x60(%rbp), %rax movq %rax, 0x80(%r14) leaq -0x38(%rbp), %rdx movq %rbx, %rdi movl $0xc9, %esi callq 0x908de movq %rbx, %rdi movq %r14, %rsi callq 0x90d4e testb %al, %al jne 0x83a8b movq %rbx, %rdi callq 0x3b510 testl %eax, %eax jne 0x83aab leaq -0x30(%rbp), %r15 leaq -0x29(%rbp), %r13 leaq -0x48(%rbp), %r12 leaq -0x150(%rbp), %r14 movl $0xe0, %edx movq %r14, %rdi xorl %esi, %esi callq 0x392e0 movl $0x3, %eax movl %eax, 0x60(%r14) leaq -0x34(%rbp), %rcx movq %rcx, 0x10(%r14) leaq -0x2a(%rbp), %rcx movq %rcx, 0x8(%r14) leaq -0x50(%rbp), %rcx movq %rcx, (%r14) leaq -0x2c(%rbp), %rcx movq %rcx, 0x18(%r14) movl %eax, 0xd0(%r14) movq %r15, 0x80(%r14) movq %r13, 0x78(%r14) movq %r12, 0x70(%r14) leaq -0x2b(%rbp), %rax movq %rax, 0x88(%r14) movq %rbx, %rdi movq %r14, %rsi callq 0x91084 testb %al, %al jne 0x83aca movq %rbx, %rdi callq 0x3b5d6 testl %eax, %eax jne 0x83ae9 movl $0x1, %r14d movq %rbx, %rdi callq 0x3b573 testl %eax, %eax jne 0x83911 movb -0x29(%rbp), %al orb -0x2a(%rbp), %al jne 0x839fd cmpl -0x34(%rbp), %r14d jne 0x839e5 incl %r14d cmpl $0x1, -0x30(%rbp) je 0x838ce leaq 0x5b4ac(%rip), %rdi # 0xdedac leaq 0x73688(%rip), %rdx # 0xf6f8f movl $0x50a0, %esi # imm = 0x50A0 callq 0x3bb30 cmpl $0x5, %r14d jne 0x83b08 movq %rbx, %rdi callq 0x3b639 movq 0x396b9e(%rip), %rdi # 0x41a4c8 leaq 0x7366a(%rip), %rsi # 0xf6f9b callq 0x3b116 testl %eax, %eax jne 0x83b20 movq 0x396b83(%rip), %rdi # 0x41a4c8 callq 0x3afac testq %rax, %rax je 0x83b3f movq %rax, %rbx movl $0x1, %r15d movq %rbx, %rdi callq 0x3ae0a testq %rax, %rax je 0x839a6 movq %rax, %r14 movq (%rax), %rdi callq 0x39310 cmpl %eax, %r15d jne 0x83a15 movq 0x8(%r14), %rdi callq 0x39310 incl %r15d cmpl $0x1, %eax je 0x8395c leaq 0x5b417(%rip), %rdi # 0xdedac leaq 0x7362a(%rip), %rdx # 0xf6fc6 movl $0x50b1, %esi # imm = 0x50B1 callq 0x3bb30 cmpl $0x5, %r15d jne 0x83b5e movq %rbx, %rdi callq 0x3b00f movq 0x396b09(%rip), %rdi # 0x41a4c8 leaq 0x5ce47(%rip), %rsi # 0xe080d callq 0x3b116 testl %eax, %eax jne 0x83b76 addq $0x208, %rsp # imm = 0x208 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x5b3c0(%rip), %rdi # 0xdedac leaq 0x73590(%rip), %rdx # 0xf6f83 movl $0x509f, %esi # imm = 0x509F callq 0x3bb30 leaq 0x5b3a8(%rip), %rdi # 0xdedac leaq 0x7355f(%rip), %rdx # 0xf6f6a movl $0x509e, %esi # imm = 0x509E callq 0x3bb30 leaq 0x5b390(%rip), %rdi # 0xdedac leaq 0x73591(%rip), %rdx # 0xf6fb4 movl $0x50b0, %esi # imm = 0x50B0 callq 0x3bb30 xorl %edi, %edi callq 0x3ba57 leaq 0x5b371(%rip), %rdi # 0xdedac leaq 0x7167d(%rip), %rdx # 0xf50bf movl $0x5072, %esi # imm = 0x5072 callq 0x3bb30 xorl %edi, %edi callq 0x3ba57 leaq 0x5b352(%rip), %rdi # 0xdedac leaq 0x7165e(%rip), %rdx # 0xf50bf movl $0x5075, %esi # imm = 0x5075 callq 0x3bb30 movq %rbx, %rdi callq 0x3bbbe leaq 0x5b332(%rip), %rdi # 0xdedac leaq 0x66ee6(%rip), %rdx # 0xea967 movl $0x507b, %esi # imm = 0x507B callq 0x3bb30 movq %rbx, %rdi callq 0x3bbbe leaq 0x5b312(%rip), %rdi # 0xdedac leaq 0x66ec6(%rip), %rdx # 0xea967 movl $0x5087, %esi # imm = 0x5087 callq 0x3bb30 xorl %edi, %edi callq 0x3ba57 leaq 0x5b2f3(%rip), %rdi # 0xdedac leaq 0x715ff(%rip), %rdx # 0xf50bf movl $0x508a, %esi # imm = 0x508A callq 0x3bb30 xorl %edi, %edi callq 0x3ba57 leaq 0x5b2d4(%rip), %rdi # 0xdedac leaq 0x715e0(%rip), %rdx # 0xf50bf movl $0x5096, %esi # imm = 0x5096 callq 0x3bb30 xorl %edi, %edi callq 0x3ba57 leaq 0x5b2b5(%rip), %rdi # 0xdedac leaq 0x715c1(%rip), %rdx # 0xf50bf movl $0x5098, %esi # imm = 0x5098 callq 0x3bb30 leaq 0x5b29d(%rip), %rdi # 0xdedac leaq 0x7341a(%rip), %rdx # 0xf6f30 movl $0x50a2, %esi # imm = 0x50A2 callq 0x3bb30 xorl %edi, %edi callq 0x3ba57 leaq 0x5b27e(%rip), %rdi # 0xdedac leaq 0x7158a(%rip), %rdx # 0xf50bf movl $0x50a7, %esi # imm = 0x50A7 callq 0x3bb30 xorl %edi, %edi callq 0x3ba57 leaq 0x5b25f(%rip), %rdi # 0xdedac leaq 0x5b028(%rip), %rdx # 0xdeb7c movl $0x50aa, %esi # imm = 0x50AA callq 0x3bb30 leaq 0x5b247(%rip), %rdi # 0xdedac leaq 0x733c4(%rip), %rdx # 0xf6f30 movl $0x50b3, %esi # imm = 0x50B3 callq 0x3bb30 xorl %edi, %edi callq 0x3ba57 leaq 0x5b228(%rip), %rdi # 0xdedac leaq 0x71534(%rip), %rdx # 0xf50bf movl $0x50b8, %esi # imm = 0x50B8 callq 0x3bb30
test_bulk_insert_returning: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 208h movaps xmm0, cs:xmmword_DE270 movaps [rbp+var_70], xmm0 movaps xmm0, cs:xmmword_DE260 movaps [rbp+var_60], xmm0 mov [rbp+var_38], 4 mov rdi, cs:mysql lea rsi, aDropTableIfExi; "DROP TABLE IF EXISTS t1" call wrap_mysql_query test eax, eax jnz loc_83A2D mov rdi, cs:mysql lea rsi, aCreateTableT1I_22; "CREATE TABLE t1 (id int not null primar"... call wrap_mysql_query test eax, eax jnz loc_83A4C mov rdi, cs:mysql call mysql_stmt_init mov rbx, rax lea rsi, aInsertIntoT1Va_49; "insert into t1 values (?, ?) returning"... mov rdi, rax mov rdx, 0FFFFFFFFFFFFFFFFh call wrap_mysql_stmt_prepare test eax, eax jnz loc_83A6B lea r14, [rbp+var_230] mov edx, 0E0h mov rdi, r14 xor esi, esi call _memset mov eax, 3 mov [r14+60h], eax lea rcx, [rbp+var_70] mov [r14+10h], rcx mov [r14+0D0h], eax lea rax, [rbp+var_60] mov [r14+80h], rax lea rdx, [rbp+var_38] mov rdi, rbx mov esi, 0C9h call mysql_stmt_attr_set mov rdi, rbx mov rsi, r14 call mysql_stmt_bind_param test al, al jnz loc_83A8B mov rdi, rbx call wrap_mysql_stmt_execute test eax, eax jnz loc_83AAB lea r15, [rbp+var_30] lea r13, [rbp+var_29] lea r12, [rbp+var_48] lea r14, [rbp+var_150] mov edx, 0E0h mov rdi, r14 xor esi, esi call _memset mov eax, 3 mov [r14+60h], eax lea rcx, [rbp+var_34] mov [r14+10h], rcx lea rcx, [rbp+var_2A] mov [r14+8], rcx lea rcx, [rbp+var_50] mov [r14], rcx lea rcx, [rbp+var_2C] mov [r14+18h], rcx mov [r14+0D0h], eax mov [r14+80h], r15 mov [r14+78h], r13 mov [r14+70h], r12 lea rax, [rbp+var_2B] mov [r14+88h], rax mov rdi, rbx mov rsi, r14 call mysql_stmt_bind_result test al, al jnz loc_83ACA mov rdi, rbx call wrap_mysql_stmt_store_result test eax, eax jnz loc_83AE9 mov r14d, 1 loc_838CE: mov rdi, rbx call wrap_mysql_stmt_fetch test eax, eax jnz short loc_83911 mov al, [rbp+var_29] or al, [rbp+var_2A] jnz loc_839FD cmp r14d, [rbp+var_34] jnz loc_839E5 inc r14d cmp [rbp+var_30], 1 jz short loc_838CE lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"... lea rdx, aRes11_0; "res[1] != 1" mov esi, 50A0h call die loc_83911: cmp r14d, 5 jnz loc_83B08 mov rdi, rbx call wrap_mysql_stmt_close mov rdi, cs:mysql lea rsi, aSelectIdActive; "SELECT id,active FROM t1" call wrap_mysql_query test eax, eax jnz loc_83B20 mov rdi, cs:mysql call wrap_mysql_store_result test rax, rax jz loc_83B3F mov rbx, rax mov r15d, 1 loc_8395C: mov rdi, rbx call wrap_mysql_fetch_row test rax, rax jz short loc_839A6 mov r14, rax mov rdi, [rax] call _atoi cmp r15d, eax jnz loc_83A15 mov rdi, [r14+8] call _atoi inc r15d cmp eax, 1 jz short loc_8395C lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"... lea rdx, aAtoiRow11; "atoi(row[1]) != 1" mov esi, 50B1h call die loc_839A6: cmp r15d, 5 jnz loc_83B5E mov rdi, rbx call wrap_mysql_free_result mov rdi, cs:mysql lea rsi, aDropTableT1; "DROP TABLE t1" call wrap_mysql_query test eax, eax jnz loc_83B76 add rsp, 208h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_839E5: lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"... lea rdx, aRes0I; "res[0] != i" mov esi, 509Fh call die loc_839FD: lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"... lea rdx, aIsNull0IsNull1; "is_null[0] || is_null[1]" mov esi, 509Eh call die loc_83A15: lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"... lea rdx, aAtoiRow0I; "atoi(row[0]) != i" mov esi, 50B0h call die loc_83A2D: xor edi, edi call print_error lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"... lea rdx, aTmIYear0+9; "r == 0" mov esi, 5072h call die loc_83A4C: xor edi, edi call print_error lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"... lea rdx, aTmIYear0+9; "r == 0" mov esi, 5075h call die loc_83A6B: mov rdi, rbx call print_st_error lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"... lea rdx, aRcMysqlDataTru+1Eh; "rc == 0" mov esi, 507Bh call die loc_83A8B: mov rdi, rbx call print_st_error lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"... lea rdx, aRcMysqlDataTru+1Eh; "rc == 0" mov esi, 5087h call die loc_83AAB: xor edi, edi call print_error lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"... lea rdx, aTmIYear0+9; "r == 0" mov esi, 508Ah call die loc_83ACA: xor edi, edi call print_error lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"... lea rdx, aTmIYear0+9; "r == 0" mov esi, 5096h call die loc_83AE9: xor edi, edi call print_error lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"... lea rdx, aTmIYear0+9; "r == 0" mov esi, 5098h call die loc_83B08: lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"... lea rdx, aI4; "i != 4" mov esi, 50A2h call die loc_83B20: xor edi, edi call print_error lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"... lea rdx, aTmIYear0+9; "r == 0" mov esi, 50A7h call die loc_83B3F: xor edi, edi call print_error lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"... lea rdx, aFalse; "FALSE" mov esi, 50AAh call die loc_83B5E: lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"... lea rdx, aI4; "i != 4" mov esi, 50B3h call die loc_83B76: xor edi, edi call print_error lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"... lea rdx, aTmIYear0+9; "r == 0" mov esi, 50B8h call die
long long test_bulk_insert_returning() { long long v0; // rbx long long v1; // rdx int v2; // r14d long long v3; // rax long long v4; // rbx int i; // r15d _QWORD *row; // rax _QWORD *v7; // r14 long long result; // rax _BYTE v9[16]; // [rsp+0h] [rbp-230h] BYREF __int128 *v10; // [rsp+10h] [rbp-220h] int v11; // [rsp+60h] [rbp-1D0h] __int128 *v12; // [rsp+80h] [rbp-1B0h] int v13; // [rsp+D0h] [rbp-160h] _QWORD v14[12]; // [rsp+E0h] [rbp-150h] BYREF int v15; // [rsp+140h] [rbp-F0h] char *v16; // [rsp+150h] [rbp-E0h] char *v17; // [rsp+158h] [rbp-D8h] int *v18; // [rsp+160h] [rbp-D0h] char *v19; // [rsp+168h] [rbp-C8h] int v20; // [rsp+1B0h] [rbp-80h] __int128 v21; // [rsp+1C0h] [rbp-70h] BYREF __int128 v22; // [rsp+1D0h] [rbp-60h] BYREF char v23; // [rsp+1E0h] [rbp-50h] BYREF char v24; // [rsp+1E8h] [rbp-48h] BYREF int v25; // [rsp+1F8h] [rbp-38h] BYREF int v26; // [rsp+1FCh] [rbp-34h] BYREF int v27; // [rsp+200h] [rbp-30h] BYREF char v28; // [rsp+204h] [rbp-2Ch] BYREF char v29; // [rsp+205h] [rbp-2Bh] BYREF _WORD v30[21]; // [rsp+206h] [rbp-2Ah] BYREF v21 = xmmword_DE270; v22 = xmmword_DE260; v25 = 4; if ( (unsigned int)wrap_mysql_query(mysql, (long long)"DROP TABLE IF EXISTS t1") ) { print_error(0LL); die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 20594, "r == 0"); } if ( (unsigned int)wrap_mysql_query(mysql, (long long)"CREATE TABLE t1 (id int not null primary key, active int)") ) { print_error(0LL); die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 20597, "r == 0"); } v0 = mysql_stmt_init(mysql); if ( (unsigned int)wrap_mysql_stmt_prepare(v0, (long long)"insert into t1 values (?, ?) returning id, active", -1LL) ) { print_st_error(v0); die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 20603, "rc == 0"); } memset(v9, 0LL, 224LL); v11 = 3; v10 = &v21; v13 = 3; v12 = &v22; mysql_stmt_attr_set(v0, 201LL, &v25); if ( (unsigned __int8)mysql_stmt_bind_param(v0, v9) ) { print_st_error(v0); die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 20615, "rc == 0"); } if ( (unsigned int)wrap_mysql_stmt_execute(v0) ) { print_error(0LL); die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 20618, "r == 0"); } memset(v14, 0LL, 224LL); v15 = 3; v14[2] = &v26; v14[1] = v30; v14[0] = &v23; v14[3] = &v28; v20 = 3; v18 = &v27; v17 = (char *)v30 + 1; v16 = &v24; v19 = &v29; if ( (unsigned __int8)mysql_stmt_bind_result(v0, v14, v1, &v28) ) { print_error(0LL); die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 20630, "r == 0"); } if ( (unsigned int)wrap_mysql_stmt_store_result(v0) ) { print_error(0LL); die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 20632, "r == 0"); } v2 = 1; while ( !(unsigned int)wrap_mysql_stmt_fetch(v0) ) { if ( v30[0] ) die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 20638, "is_null[0] || is_null[1]"); if ( v2 != v26 ) die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 20639, "res[0] != i"); ++v2; if ( v27 != 1 ) die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 20640, "res[1] != 1"); } if ( v2 != 5 ) die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 20642, "i != 4"); wrap_mysql_stmt_close(v0); if ( (unsigned int)wrap_mysql_query(mysql, (long long)"SELECT id,active FROM t1") ) { print_error(0LL); die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 20647, "r == 0"); } v3 = wrap_mysql_store_result(mysql); if ( !v3 ) { print_error(0LL); die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 20650, "FALSE"); } v4 = v3; for ( i = 1; ; ++i ) { row = (_QWORD *)wrap_mysql_fetch_row(v4); if ( !row ) break; v7 = row; if ( i != (unsigned int)atoi(*row) ) die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 20656, "atoi(row[0]) != i"); if ( (unsigned int)atoi(v7[1]) != 1 ) die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 20657, "atoi(row[1]) != 1"); } if ( i != 5 ) die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 20659, "i != 4"); wrap_mysql_free_result(v4); result = wrap_mysql_query(mysql, (long long)"DROP TABLE t1"); if ( (_DWORD)result ) { print_error(0LL); die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 20664, "r == 0"); } return result; }
test_bulk_insert_returning: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x208 MOVAPS XMM0,xmmword ptr [0x001de270] MOVAPS xmmword ptr [RBP + -0x70],XMM0 MOVAPS XMM0,xmmword ptr [0x001de260] MOVAPS xmmword ptr [RBP + -0x60],XMM0 MOV dword ptr [RBP + -0x38],0x4 MOV RDI,qword ptr [0x0051a4c8] LEA RSI,[0x1e07de] CALL 0x0013b116 TEST EAX,EAX JNZ 0x00183a2d MOV RDI,qword ptr [0x0051a4c8] LEA RSI,[0x1f6e76] CALL 0x0013b116 TEST EAX,EAX JNZ 0x00183a4c MOV RDI,qword ptr [0x0051a4c8] CALL 0x0019191c MOV RBX,RAX LEA RSI,[0x1f6f37] MOV RDI,RAX MOV RDX,-0x1 CALL 0x0013b4a1 TEST EAX,EAX JNZ 0x00183a6b LEA R14,[RBP + -0x230] MOV EDX,0xe0 MOV RDI,R14 XOR ESI,ESI CALL 0x001392e0 MOV EAX,0x3 MOV dword ptr [R14 + 0x60],EAX LEA RCX,[RBP + -0x70] MOV qword ptr [R14 + 0x10],RCX MOV dword ptr [R14 + 0xd0],EAX LEA RAX,[RBP + -0x60] MOV qword ptr [R14 + 0x80],RAX LEA RDX,[RBP + -0x38] MOV RDI,RBX MOV ESI,0xc9 CALL 0x001908de MOV RDI,RBX MOV RSI,R14 CALL 0x00190d4e TEST AL,AL JNZ 0x00183a8b MOV RDI,RBX CALL 0x0013b510 TEST EAX,EAX JNZ 0x00183aab LEA R15,[RBP + -0x30] LEA R13,[RBP + -0x29] LEA R12,[RBP + -0x48] LEA R14,[RBP + -0x150] MOV EDX,0xe0 MOV RDI,R14 XOR ESI,ESI CALL 0x001392e0 MOV EAX,0x3 MOV dword ptr [R14 + 0x60],EAX LEA RCX,[RBP + -0x34] MOV qword ptr [R14 + 0x10],RCX LEA RCX,[RBP + -0x2a] MOV qword ptr [R14 + 0x8],RCX LEA RCX,[RBP + -0x50] MOV qword ptr [R14],RCX LEA RCX,[RBP + -0x2c] MOV qword ptr [R14 + 0x18],RCX MOV dword ptr [R14 + 0xd0],EAX MOV qword ptr [R14 + 0x80],R15 MOV qword ptr [R14 + 0x78],R13 MOV qword ptr [R14 + 0x70],R12 LEA RAX,[RBP + -0x2b] MOV qword ptr [R14 + 0x88],RAX MOV RDI,RBX MOV RSI,R14 CALL 0x00191084 TEST AL,AL JNZ 0x00183aca MOV RDI,RBX CALL 0x0013b5d6 TEST EAX,EAX JNZ 0x00183ae9 MOV R14D,0x1 LAB_001838ce: MOV RDI,RBX CALL 0x0013b573 TEST EAX,EAX JNZ 0x00183911 MOV AL,byte ptr [RBP + -0x29] OR AL,byte ptr [RBP + -0x2a] JNZ 0x001839fd CMP R14D,dword ptr [RBP + -0x34] JNZ 0x001839e5 INC R14D CMP dword ptr [RBP + -0x30],0x1 JZ 0x001838ce LEA RDI,[0x1dedac] LEA RDX,[0x1f6f8f] MOV ESI,0x50a0 CALL 0x0013bb30 LAB_00183911: CMP R14D,0x5 JNZ 0x00183b08 MOV RDI,RBX CALL 0x0013b639 MOV RDI,qword ptr [0x0051a4c8] LEA RSI,[0x1f6f9b] CALL 0x0013b116 TEST EAX,EAX JNZ 0x00183b20 MOV RDI,qword ptr [0x0051a4c8] CALL 0x0013afac TEST RAX,RAX JZ 0x00183b3f MOV RBX,RAX MOV R15D,0x1 LAB_0018395c: MOV RDI,RBX CALL 0x0013ae0a TEST RAX,RAX JZ 0x001839a6 MOV R14,RAX MOV RDI,qword ptr [RAX] CALL 0x00139310 CMP R15D,EAX JNZ 0x00183a15 MOV RDI,qword ptr [R14 + 0x8] CALL 0x00139310 INC R15D CMP EAX,0x1 JZ 0x0018395c LEA RDI,[0x1dedac] LEA RDX,[0x1f6fc6] MOV ESI,0x50b1 CALL 0x0013bb30 LAB_001839a6: CMP R15D,0x5 JNZ 0x00183b5e MOV RDI,RBX CALL 0x0013b00f MOV RDI,qword ptr [0x0051a4c8] LEA RSI,[0x1e080d] CALL 0x0013b116 TEST EAX,EAX JNZ 0x00183b76 ADD RSP,0x208 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001839e5: LEA RDI,[0x1dedac] LEA RDX,[0x1f6f83] MOV ESI,0x509f CALL 0x0013bb30 LAB_001839fd: LEA RDI,[0x1dedac] LEA RDX,[0x1f6f6a] MOV ESI,0x509e CALL 0x0013bb30 LAB_00183a15: LEA RDI,[0x1dedac] LEA RDX,[0x1f6fb4] MOV ESI,0x50b0 CALL 0x0013bb30 LAB_00183a2d: XOR EDI,EDI CALL 0x0013ba57 LEA RDI,[0x1dedac] LEA RDX,[0x1f50bf] MOV ESI,0x5072 CALL 0x0013bb30 LAB_00183a4c: XOR EDI,EDI CALL 0x0013ba57 LEA RDI,[0x1dedac] LEA RDX,[0x1f50bf] MOV ESI,0x5075 CALL 0x0013bb30 LAB_00183a6b: MOV RDI,RBX CALL 0x0013bbbe LEA RDI,[0x1dedac] LEA RDX,[0x1ea967] MOV ESI,0x507b CALL 0x0013bb30 LAB_00183a8b: MOV RDI,RBX CALL 0x0013bbbe LEA RDI,[0x1dedac] LEA RDX,[0x1ea967] MOV ESI,0x5087 CALL 0x0013bb30 LAB_00183aab: XOR EDI,EDI CALL 0x0013ba57 LEA RDI,[0x1dedac] LEA RDX,[0x1f50bf] MOV ESI,0x508a CALL 0x0013bb30 LAB_00183aca: XOR EDI,EDI CALL 0x0013ba57 LEA RDI,[0x1dedac] LEA RDX,[0x1f50bf] MOV ESI,0x5096 CALL 0x0013bb30 LAB_00183ae9: XOR EDI,EDI CALL 0x0013ba57 LEA RDI,[0x1dedac] LEA RDX,[0x1f50bf] MOV ESI,0x5098 CALL 0x0013bb30 LAB_00183b08: LEA RDI,[0x1dedac] LEA RDX,[0x1f6f30] MOV ESI,0x50a2 CALL 0x0013bb30 LAB_00183b20: XOR EDI,EDI CALL 0x0013ba57 LEA RDI,[0x1dedac] LEA RDX,[0x1f50bf] MOV ESI,0x50a7 CALL 0x0013bb30 LAB_00183b3f: XOR EDI,EDI CALL 0x0013ba57 LEA RDI,[0x1dedac] LEA RDX,[0x1deb7c] MOV ESI,0x50aa CALL 0x0013bb30 LAB_00183b5e: LEA RDI,[0x1dedac] LEA RDX,[0x1f6f30] MOV ESI,0x50b3 CALL 0x0013bb30 LAB_00183b76: XOR EDI,EDI CALL 0x0013ba57 LEA RDI,[0x1dedac] LEA RDX,[0x1f50bf] MOV ESI,0x50b8 CALL 0x0013bb30
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void test_bulk_insert_returning(void) { char cVar1; int iVar2; int iVar3; int8 uVar4; long lVar5; int8 *puVar6; int1 local_238 [16]; int8 *local_228; int4 local_1d8; int4 *local_1b8; int4 local_168; int1 *local_158; char *local_150; int *local_148; int1 *local_140; int4 local_f8; int1 *local_e8; char *local_e0; int *local_d8; int1 *local_d0; int4 local_88; int8 local_78; int8 uStack_70; int4 local_68; int4 uStack_64; int4 uStack_60; int4 uStack_5c; int1 local_58 [8]; int1 local_50 [16]; int4 local_40; int local_3c; int local_38; int1 local_34; int1 local_33; char local_32; char local_31; local_78 = _DAT_001de270; uStack_70 = _UNK_001de278; local_68 = _DAT_001de260; uStack_64 = _UNK_001de264; uStack_60 = _UNK_001de268; uStack_5c = _UNK_001de26c; local_40 = 4; iVar2 = wrap_mysql_query(mysql,"DROP TABLE IF EXISTS t1"); if (iVar2 != 0) { print_error(0); /* WARNING: Subroutine does not return */ die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x5072,"r == 0"); } iVar2 = wrap_mysql_query(mysql,"CREATE TABLE t1 (id int not null primary key, active int)"); if (iVar2 != 0) { print_error(0); /* WARNING: Subroutine does not return */ die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x5075,"r == 0"); } uVar4 = mysql_stmt_init(mysql); iVar2 = wrap_mysql_stmt_prepare (uVar4,"insert into t1 values (?, ?) returning id, active",0xffffffffffffffff); if (iVar2 != 0) { print_st_error(uVar4); /* WARNING: Subroutine does not return */ die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x507b,"rc == 0"); } memset(local_238,0,0xe0); local_1d8 = 3; local_228 = &local_78; local_168 = 3; local_1b8 = &local_68; mysql_stmt_attr_set(uVar4,0xc9,&local_40); cVar1 = mysql_stmt_bind_param(uVar4); if (cVar1 == '\0') { iVar2 = wrap_mysql_stmt_execute(uVar4); if (iVar2 != 0) { print_error(0); /* WARNING: Subroutine does not return */ die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x508a,"r == 0"); } memset(&local_158,0,0xe0); local_f8 = 3; local_148 = &local_3c; local_150 = &local_32; local_158 = local_58; local_140 = &local_34; local_88 = 3; local_d0 = &local_33; local_e8 = local_50; local_e0 = &local_31; local_d8 = &local_38; cVar1 = mysql_stmt_bind_result(uVar4,&local_158); if (cVar1 != '\0') { print_error(0); /* WARNING: Subroutine does not return */ die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x5096,"r == 0"); } iVar2 = wrap_mysql_stmt_store_result(uVar4); if (iVar2 != 0) { print_error(0); /* WARNING: Subroutine does not return */ die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x5098,"r == 0"); } iVar2 = 1; while( true ) { iVar3 = wrap_mysql_stmt_fetch(uVar4); if (iVar3 != 0) { if (iVar2 != 5) { /* WARNING: Subroutine does not return */ die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x50a2,"i != 4"); } wrap_mysql_stmt_close(uVar4); iVar2 = wrap_mysql_query(mysql,"SELECT id,active FROM t1"); if (iVar2 != 0) { print_error(0); /* WARNING: Subroutine does not return */ die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x50a7,"r == 0"); } lVar5 = wrap_mysql_store_result(mysql); if (lVar5 == 0) { print_error(0); /* WARNING: Subroutine does not return */ die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x50aa,"FALSE"); } iVar2 = 1; do { puVar6 = (int8 *)wrap_mysql_fetch_row(lVar5); if (puVar6 == (int8 *)0x0) { if (iVar2 != 5) { /* WARNING: Subroutine does not return */ die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x50b3, "i != 4"); } wrap_mysql_free_result(lVar5); iVar2 = wrap_mysql_query(mysql,"DROP TABLE t1"); if (iVar2 == 0) { return; } print_error(0); /* WARNING: Subroutine does not return */ die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x50b8,"r == 0" ); } iVar3 = atoi((char *)*puVar6); if (iVar2 != iVar3) { /* WARNING: Subroutine does not return */ die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x50b0, "atoi(row[0]) != i"); } iVar3 = atoi((char *)puVar6[1]); iVar2 = iVar2 + 1; } while (iVar3 == 1); /* WARNING: Subroutine does not return */ die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x50b1, "atoi(row[1]) != 1"); } if (local_31 != '\0' || local_32 != '\0') { /* WARNING: Subroutine does not return */ die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x509e, "is_null[0] || is_null[1]"); } if (iVar2 != local_3c) break; iVar2 = iVar2 + 1; if (local_38 != 1) { /* WARNING: Subroutine does not return */ die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x50a0, "res[1] != 1"); } } /* WARNING: Subroutine does not return */ die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x509f,"res[0] != i"); } print_st_error(uVar4); /* WARNING: Subroutine does not return */ die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x5087,"rc == 0"); }
6,207
google::protobuf::OneofOptions::_InternalParse(char const*, google::protobuf::internal::ParseContext*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
const char* OneofOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; case 999: if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) { ptr -= 2; do { ptr += 2; ptr = ctx->ParseMessage(_internal_add_uninterpreted_option(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<7994>(ptr)); } else goto handle_unusual; continue; default: goto handle_unusual; } // switch handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto message_done; } if ((8000u <= tag)) { ptr = _impl_._extensions_.ParseField(tag, ptr, internal_default_instance(), &_internal_metadata_, ctx); CHK_(ptr != nullptr); continue; } ptr = UnknownFieldParse( tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); } // while message_done: return ptr; failure: ptr = nullptr; goto message_done; #undef CHK_ }
O0
cpp
google::protobuf::OneofOptions::_InternalParse(char const*, google::protobuf::internal::ParseContext*): subq $0x78, %rsp movq %rdi, 0x50(%rsp) movq %rsi, 0x48(%rsp) movq %rdx, 0x40(%rsp) movq 0x50(%rsp), %rax movq %rax, 0x30(%rsp) movq 0x40(%rsp), %rdi leaq 0x48(%rsp), %rsi callq 0xd41f0 xorb $-0x1, %al testb $0x1, %al jne 0xc3ba7 jmp 0xc3dba movq 0x48(%rsp), %rdi leaq 0x3c(%rsp), %rsi xorl %edx, %edx callq 0xd4220 movq %rax, 0x48(%rsp) movl 0x3c(%rsp), %eax shrl $0x3, %eax subl $0x3e7, %eax # imm = 0x3E7 jne 0xc3c6c jmp 0xc3bd1 movl 0x3c(%rsp), %eax movzbl %al, %eax cmpl $0x3a, %eax jne 0xc3c65 movq 0x48(%rsp), %rax addq $-0x2, %rax movq %rax, 0x48(%rsp) movq 0x30(%rsp), %rdi movq 0x48(%rsp), %rax addq $0x2, %rax movq %rax, 0x48(%rsp) movq 0x40(%rsp), %rax movq %rax, 0x28(%rsp) callq 0xdab90 movq 0x28(%rsp), %rdi movq %rax, %rsi movq 0x48(%rsp), %rdx callq 0x1b4330 movq %rax, 0x48(%rsp) cmpq $0x0, 0x48(%rsp) setne %al xorb $-0x1, %al testb $0x1, %al jne 0xc3c39 jmp 0xc3c3e jmp 0xc3dc6 movq 0x40(%rsp), %rdi movq 0x48(%rsp), %rsi callq 0xd4310 testb $0x1, %al jne 0xc3c53 jmp 0xc3c63 jmp 0xc3c55 movq 0x48(%rsp), %rdi callq 0xd6c40 testb $0x1, %al jne 0xc3bef jmp 0xc3c67 jmp 0xc3c6e jmp 0xc3b8d jmp 0xc3c6e cmpl $0x0, 0x3c(%rsp) je 0xc3c81 movl 0x3c(%rsp), %eax andl $0x7, %eax cmpl $0x4, %eax jne 0xc3caa cmpq $0x0, 0x48(%rsp) setne %al xorb $-0x1, %al testb $0x1, %al jne 0xc3c92 jmp 0xc3c97 jmp 0xc3dc6 movq 0x40(%rsp), %rdi movl 0x3c(%rsp), %esi callq 0xd4350 jmp 0xc3dbc movl $0x1f40, %eax # imm = 0x1F40 cmpl 0x3c(%rsp), %eax ja 0xc3d20 movq 0x30(%rsp), %rax addq $0x10, %rax movq %rax, 0x10(%rsp) movl 0x3c(%rsp), %eax movq %rax, 0x18(%rsp) movq 0x48(%rsp), %rax movq %rax, 0x20(%rsp) callq 0x81480 movq 0x30(%rsp), %r8 movq 0x10(%rsp), %rdi movq 0x18(%rsp), %rsi movq 0x20(%rsp), %rdx movq %rax, %rcx addq $0x8, %r8 movq 0x40(%rsp), %r9 callq 0x1044d0 movq %rax, 0x48(%rsp) cmpq $0x0, 0x48(%rsp) setne %al xorb $-0x1, %al testb $0x1, %al jne 0xc3d16 jmp 0xc3d1b jmp 0xc3dc6 jmp 0xc3b8d movq 0x30(%rsp), %rax movl 0x3c(%rsp), %ecx movq %rcx, (%rsp) addq $0x8, %rax movq %rax, 0x58(%rsp) movq 0x58(%rsp), %rax movq %rax, 0x8(%rsp) movq %rax, 0x68(%rsp) movq 0x68(%rsp), %rax movq %rax, 0x70(%rsp) movq 0x70(%rsp), %rax movq (%rax), %rax andq $0x1, %rax cmpq $0x0, %rax je 0xc3d76 movq 0x8(%rsp), %rdi callq 0x9cd40 addq $0x8, %rax movq %rax, 0x60(%rsp) jmp 0xc3d85 movq 0x8(%rsp), %rdi callq 0xdf250 movq %rax, 0x60(%rsp) movq (%rsp), %rdi movq 0x60(%rsp), %rsi movq 0x48(%rsp), %rdx movq 0x40(%rsp), %rcx callq 0x163b20 movq %rax, 0x48(%rsp) cmpq $0x0, 0x48(%rsp) setne %al xorb $-0x1, %al testb $0x1, %al jne 0xc3db3 jmp 0xc3db5 jmp 0xc3dc6 jmp 0xc3b8d jmp 0xc3dbc movq 0x48(%rsp), %rax addq $0x78, %rsp retq movq $0x0, 0x48(%rsp) jmp 0xc3dbc nopw %cs:(%rax,%rax)
_ZN6google8protobuf12OneofOptions14_InternalParseEPKcPNS0_8internal12ParseContextE: sub rsp, 78h mov qword ptr [rsp+78h+var_28], rdi; int mov [rsp+78h+var_30], rsi mov [rsp+78h+var_38], rdx; int mov rax, qword ptr [rsp+78h+var_28] mov [rsp+78h+var_48], rax; int loc_C3B8D: mov rdi, [rsp+78h+var_38]; this lea rsi, [rsp+78h+var_30]; char ** call _ZN6google8protobuf8internal12ParseContext4DoneEPPKc; google::protobuf::internal::ParseContext::Done(char const**) xor al, 0FFh test al, 1 jnz short loc_C3BA7 jmp loc_C3DBA loc_C3BA7: mov rdi, [rsp+78h+var_30]; this lea rsi, [rsp+78h+var_3C]; char * xor edx, edx; unsigned int * call _ZN6google8protobuf8internal7ReadTagEPKcPjj; google::protobuf::internal::ReadTag(char const*,uint *,uint) mov [rsp+78h+var_30], rax; int mov eax, dword ptr [rsp+78h+var_3C] shr eax, 3 sub eax, 3E7h jnz loc_C3C6C jmp short $+2 loc_C3BD1: mov eax, dword ptr [rsp+78h+var_3C] movzx eax, al cmp eax, 3Ah ; ':' jnz loc_C3C65 mov rax, [rsp+78h+var_30] add rax, 0FFFFFFFFFFFFFFFEh mov [rsp+78h+var_30], rax loc_C3BEF: mov rdi, [rsp+78h+var_48]; this mov rax, [rsp+78h+var_30] add rax, 2 mov [rsp+78h+var_30], rax mov rax, [rsp+78h+var_38] mov [rsp+78h+var_50], rax call _ZN6google8protobuf12OneofOptions34_internal_add_uninterpreted_optionEv; google::protobuf::OneofOptions::_internal_add_uninterpreted_option(void) mov rdi, [rsp+78h+var_50]; this mov rsi, rax; google::protobuf::MessageLite * mov rdx, [rsp+78h+var_30]; char * call _ZN6google8protobuf8internal12ParseContext12ParseMessageEPNS0_11MessageLiteEPKc; google::protobuf::internal::ParseContext::ParseMessage(google::protobuf::MessageLite *,char const*) mov [rsp+78h+var_30], rax cmp [rsp+78h+var_30], 0 setnz al xor al, 0FFh test al, 1 jnz short loc_C3C39 jmp short loc_C3C3E loc_C3C39: jmp loc_C3DC6 loc_C3C3E: mov rdi, [rsp+78h+var_38]; this mov rsi, [rsp+78h+var_30]; char * call _ZN6google8protobuf8internal18EpsCopyInputStream13DataAvailableEPKc; google::protobuf::internal::EpsCopyInputStream::DataAvailable(char const*) test al, 1 jnz short loc_C3C53 jmp short loc_C3C63 loc_C3C53: jmp short $+2 loc_C3C55: mov rdi, [rsp+78h+var_30] call _ZN6google8protobuf8internal9ExpectTagILj7994EEEbPKc; google::protobuf::internal::ExpectTag<7994u>(char const*) test al, 1 jnz short loc_C3BEF loc_C3C63: jmp short loc_C3C67 loc_C3C65: jmp short loc_C3C6E loc_C3C67: jmp loc_C3B8D loc_C3C6C: jmp short $+2 loc_C3C6E: cmp dword ptr [rsp+78h+var_3C], 0 jz short loc_C3C81 mov eax, dword ptr [rsp+78h+var_3C] and eax, 7 cmp eax, 4 jnz short loc_C3CAA loc_C3C81: cmp [rsp+78h+var_30], 0 setnz al xor al, 0FFh test al, 1 jnz short loc_C3C92 jmp short loc_C3C97 loc_C3C92: jmp loc_C3DC6 loc_C3C97: mov rdi, [rsp+78h+var_38]; this mov esi, dword ptr [rsp+78h+var_3C]; unsigned int call _ZN6google8protobuf8internal18EpsCopyInputStream10SetLastTagEj; google::protobuf::internal::EpsCopyInputStream::SetLastTag(uint) jmp loc_C3DBC loc_C3CAA: mov eax, 1F40h cmp eax, dword ptr [rsp+78h+var_3C] ja short loc_C3D20 mov rax, [rsp+78h+var_48] add rax, 10h mov [rsp+78h+var_68], rax mov eax, dword ptr [rsp+78h+var_3C] mov [rsp+78h+var_60], rax mov rax, [rsp+78h+var_30] mov [rsp+78h+var_58], rax call _ZN6google8protobuf12OneofOptions25internal_default_instanceEv; google::protobuf::OneofOptions::internal_default_instance(void) mov r8, [rsp+78h+var_48] mov rdi, [rsp+78h+var_68]; this mov rsi, [rsp+78h+var_60]; unsigned __int64 mov rdx, [rsp+78h+var_58]; char * mov rcx, rax; google::protobuf::Message * add r8, 8; google::protobuf::internal::InternalMetadata * mov r9, [rsp+78h+var_38]; google::protobuf::internal::ParseContext * call _ZN6google8protobuf8internal12ExtensionSet10ParseFieldEmPKcPKNS0_7MessageEPNS1_16InternalMetadataEPNS1_12ParseContextE; google::protobuf::internal::ExtensionSet::ParseField(ulong,char const*,google::protobuf::Message const*,google::protobuf::internal::InternalMetadata *,google::protobuf::internal::ParseContext *) mov [rsp+78h+var_30], rax cmp [rsp+78h+var_30], 0 setnz al xor al, 0FFh test al, 1 jnz short loc_C3D16 jmp short loc_C3D1B loc_C3D16: jmp loc_C3DC6 loc_C3D1B: jmp loc_C3B8D loc_C3D20: mov rax, [rsp+78h+var_48] mov ecx, dword ptr [rsp+78h+var_3C]; int mov [rsp+78h+var_78], rcx; int add rax, 8 mov qword ptr [rsp+78h+var_20], rax; int mov rax, qword ptr [rsp+78h+var_20] mov qword ptr [rsp+78h+var_70], rax; int mov qword ptr [rsp+78h+var_10], rax; int mov rax, qword ptr [rsp+78h+var_10] mov qword ptr [rsp+78h+var_8], rax; int mov rax, qword ptr [rsp+78h+var_8] mov rax, [rax] and rax, 1 cmp rax, 0 jz short loc_C3D76 mov rdi, qword ptr [rsp+78h+var_70] call _ZNK6google8protobuf8internal16InternalMetadata8PtrValueINS2_9ContainerINS0_15UnknownFieldSetEEEEEPT_v; google::protobuf::internal::InternalMetadata::PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>>(void) add rax, 8 mov [rsp+78h+var_18], rax jmp short loc_C3D85 loc_C3D76: mov rdi, qword ptr [rsp+78h+var_70]; int call _ZN6google8protobuf8internal16InternalMetadata27mutable_unknown_fields_slowINS0_15UnknownFieldSetEEEPT_v; google::protobuf::internal::InternalMetadata::mutable_unknown_fields_slow<google::protobuf::UnknownFieldSet>(void) mov [rsp+78h+var_18], rax loc_C3D85: mov rdi, [rsp+78h+var_78]; this mov rsi, [rsp+78h+var_18]; unsigned __int64 mov rdx, [rsp+78h+var_30]; google::protobuf::UnknownFieldSet * mov rcx, [rsp+78h+var_38]; char * call _ZN6google8protobuf8internal17UnknownFieldParseEmPNS0_15UnknownFieldSetEPKcPNS1_12ParseContextE; google::protobuf::internal::UnknownFieldParse(ulong,google::protobuf::UnknownFieldSet *,char const*,google::protobuf::internal::ParseContext *) mov [rsp+78h+var_30], rax cmp [rsp+78h+var_30], 0 setnz al xor al, 0FFh test al, 1 jnz short loc_C3DB3 jmp short loc_C3DB5 loc_C3DB3: jmp short loc_C3DC6 loc_C3DB5: jmp loc_C3B8D loc_C3DBA: jmp short $+2 loc_C3DBC: mov rax, [rsp+78h+var_30] add rsp, 78h retn loc_C3DC6: mov [rsp+78h+var_30], 0 jmp short loc_C3DBC
_InternalParse: SUB RSP,0x78 MOV qword ptr [RSP + 0x50],RDI MOV qword ptr [RSP + 0x48],RSI MOV qword ptr [RSP + 0x40],RDX MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0x30],RAX LAB_001c3b8d: MOV RDI,qword ptr [RSP + 0x40] LEA RSI,[RSP + 0x48] CALL 0x001d41f0 XOR AL,0xff TEST AL,0x1 JNZ 0x001c3ba7 JMP 0x001c3dba LAB_001c3ba7: MOV RDI,qword ptr [RSP + 0x48] LEA RSI,[RSP + 0x3c] XOR EDX,EDX CALL 0x001d4220 MOV qword ptr [RSP + 0x48],RAX MOV EAX,dword ptr [RSP + 0x3c] SHR EAX,0x3 SUB EAX,0x3e7 JNZ 0x001c3c6c JMP 0x001c3bd1 LAB_001c3bd1: MOV EAX,dword ptr [RSP + 0x3c] MOVZX EAX,AL CMP EAX,0x3a JNZ 0x001c3c65 MOV RAX,qword ptr [RSP + 0x48] ADD RAX,-0x2 MOV qword ptr [RSP + 0x48],RAX LAB_001c3bef: MOV RDI,qword ptr [RSP + 0x30] MOV RAX,qword ptr [RSP + 0x48] ADD RAX,0x2 MOV qword ptr [RSP + 0x48],RAX MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x28],RAX CALL 0x001dab90 MOV RDI,qword ptr [RSP + 0x28] MOV RSI,RAX MOV RDX,qword ptr [RSP + 0x48] CALL 0x002b4330 MOV qword ptr [RSP + 0x48],RAX CMP qword ptr [RSP + 0x48],0x0 SETNZ AL XOR AL,0xff TEST AL,0x1 JNZ 0x001c3c39 JMP 0x001c3c3e LAB_001c3c39: JMP 0x001c3dc6 LAB_001c3c3e: MOV RDI,qword ptr [RSP + 0x40] MOV RSI,qword ptr [RSP + 0x48] CALL 0x001d4310 TEST AL,0x1 JNZ 0x001c3c53 JMP 0x001c3c63 LAB_001c3c53: JMP 0x001c3c55 LAB_001c3c55: MOV RDI,qword ptr [RSP + 0x48] CALL 0x001d6c40 TEST AL,0x1 JNZ 0x001c3bef LAB_001c3c63: JMP 0x001c3c67 LAB_001c3c65: JMP 0x001c3c6e LAB_001c3c67: JMP 0x001c3b8d LAB_001c3c6c: JMP 0x001c3c6e LAB_001c3c6e: CMP dword ptr [RSP + 0x3c],0x0 JZ 0x001c3c81 MOV EAX,dword ptr [RSP + 0x3c] AND EAX,0x7 CMP EAX,0x4 JNZ 0x001c3caa LAB_001c3c81: CMP qword ptr [RSP + 0x48],0x0 SETNZ AL XOR AL,0xff TEST AL,0x1 JNZ 0x001c3c92 JMP 0x001c3c97 LAB_001c3c92: JMP 0x001c3dc6 LAB_001c3c97: MOV RDI,qword ptr [RSP + 0x40] MOV ESI,dword ptr [RSP + 0x3c] CALL 0x001d4350 JMP 0x001c3dbc LAB_001c3caa: MOV EAX,0x1f40 CMP EAX,dword ptr [RSP + 0x3c] JA 0x001c3d20 MOV RAX,qword ptr [RSP + 0x30] ADD RAX,0x10 MOV qword ptr [RSP + 0x10],RAX MOV EAX,dword ptr [RSP + 0x3c] MOV qword ptr [RSP + 0x18],RAX MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x20],RAX CALL 0x00181480 MOV R8,qword ptr [RSP + 0x30] MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0x18] MOV RDX,qword ptr [RSP + 0x20] MOV RCX,RAX ADD R8,0x8 MOV R9,qword ptr [RSP + 0x40] CALL 0x002044d0 MOV qword ptr [RSP + 0x48],RAX CMP qword ptr [RSP + 0x48],0x0 SETNZ AL XOR AL,0xff TEST AL,0x1 JNZ 0x001c3d16 JMP 0x001c3d1b LAB_001c3d16: JMP 0x001c3dc6 LAB_001c3d1b: JMP 0x001c3b8d LAB_001c3d20: MOV RAX,qword ptr [RSP + 0x30] MOV ECX,dword ptr [RSP + 0x3c] MOV qword ptr [RSP],RCX ADD RAX,0x8 MOV qword ptr [RSP + 0x58],RAX MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x68],RAX MOV RAX,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0x70],RAX MOV RAX,qword ptr [RSP + 0x70] MOV RAX,qword ptr [RAX] AND RAX,0x1 CMP RAX,0x0 JZ 0x001c3d76 MOV RDI,qword ptr [RSP + 0x8] CALL 0x0019cd40 ADD RAX,0x8 MOV qword ptr [RSP + 0x60],RAX JMP 0x001c3d85 LAB_001c3d76: MOV RDI,qword ptr [RSP + 0x8] CALL 0x001df250 MOV qword ptr [RSP + 0x60],RAX LAB_001c3d85: MOV RDI,qword ptr [RSP] MOV RSI,qword ptr [RSP + 0x60] MOV RDX,qword ptr [RSP + 0x48] MOV RCX,qword ptr [RSP + 0x40] CALL 0x00263b20 MOV qword ptr [RSP + 0x48],RAX CMP qword ptr [RSP + 0x48],0x0 SETNZ AL XOR AL,0xff TEST AL,0x1 JNZ 0x001c3db3 JMP 0x001c3db5 LAB_001c3db3: JMP 0x001c3dc6 LAB_001c3db5: JMP 0x001c3b8d LAB_001c3dba: JMP 0x001c3dbc LAB_001c3dbc: MOV RAX,qword ptr [RSP + 0x48] ADD RSP,0x78 RET LAB_001c3dc6: MOV qword ptr [RSP + 0x48],0x0 JMP 0x001c3dbc
/* google::protobuf::OneofOptions::_InternalParse(char const*, google::protobuf::internal::ParseContext*) */ char * __thiscall google::protobuf::OneofOptions::_InternalParse (OneofOptions *this,char *param_1,ParseContext *param_2) { ParseContext *this_00; byte bVar1; bool bVar2; char *pcVar3; MessageLite *pMVar4; ulong uVar5; Message *pMVar6; uint local_3c; ParseContext *local_38; char *local_30; OneofOptions *local_28; InternalMetadata *local_20; UnknownFieldSet *local_18; InternalMetadata *local_10; InternalMetadata *local_8; local_38 = param_2; local_30 = param_1; local_28 = this; while( true ) { while( true ) { bVar1 = internal::ParseContext::Done(local_38,&local_30); if (((bVar1 ^ 0xff) & 1) == 0) { return local_30; } pcVar3 = (char *)internal::ReadTag(local_30,&local_3c,0); if ((local_3c >> 3 != 999) || ((local_3c & 0xff) != 0x3a)) break; local_30 = pcVar3 + -2; do { this_00 = local_38; local_30 = local_30 + 2; pMVar4 = (MessageLite *)_internal_add_uninterpreted_option(this); local_30 = (char *)internal::ParseContext::ParseMessage(this_00,pMVar4,local_30); if (local_30 == (char *)0x0) { return (char *)0x0; } uVar5 = internal::EpsCopyInputStream::DataAvailable((EpsCopyInputStream *)local_38,local_30) ; } while (((uVar5 & 1) != 0) && (bVar2 = internal::ExpectTag<7994u>(local_30), bVar2)); } local_30 = pcVar3; if ((local_3c == 0) || ((local_3c & 7) == 4)) break; if (local_3c < 8000) { uVar5 = (ulong)local_3c; local_20 = (InternalMetadata *)(this + 8); local_10 = local_20; local_8 = local_20; if ((*(ulong *)local_20 & 1) == 0) { local_18 = internal::InternalMetadata:: mutable_unknown_fields_slow<google::protobuf::UnknownFieldSet>(local_20); } else { local_18 = (UnknownFieldSet *) internal::InternalMetadata:: PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>> (local_20); local_18 = (UnknownFieldSet *)((Container *)local_18 + 8); } local_30 = (char *)internal::UnknownFieldParse(uVar5,local_18,local_30,local_38); if (local_30 == (char *)0x0) { return (char *)0x0; } } else { uVar5 = (ulong)local_3c; pMVar6 = (Message *)internal_default_instance(); local_30 = (char *)internal::ExtensionSet::ParseField ((ExtensionSet *)(this + 0x10),uVar5,pcVar3,pMVar6, (InternalMetadata *)(this + 8),local_38); if (local_30 == (char *)0x0) { return (char *)0x0; } } } if (pcVar3 == (char *)0x0) { return (char *)0x0; } internal::EpsCopyInputStream::SetLastTag((EpsCopyInputStream *)local_38,local_3c); return local_30; }
6,208
google::protobuf::OneofOptions::_InternalParse(char const*, google::protobuf::internal::ParseContext*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
const char* OneofOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { // repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999; case 999: if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) { ptr -= 2; do { ptr += 2; ptr = ctx->ParseMessage(_internal_add_uninterpreted_option(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<7994>(ptr)); } else goto handle_unusual; continue; default: goto handle_unusual; } // switch handle_unusual: if ((tag == 0) || ((tag & 7) == 4)) { CHK_(ptr); ctx->SetLastTag(tag); goto message_done; } if ((8000u <= tag)) { ptr = _impl_._extensions_.ParseField(tag, ptr, internal_default_instance(), &_internal_metadata_, ctx); CHK_(ptr != nullptr); continue; } ptr = UnknownFieldParse( tag, _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), ptr, ctx); CHK_(ptr != nullptr); } // while message_done: return ptr; failure: ptr = nullptr; goto message_done; #undef CHK_ }
O3
cpp
google::protobuf::OneofOptions::_InternalParse(char const*, google::protobuf::internal::ParseContext*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %rbx movq %rdi, %r14 movq %rsp, %rax movq %rsi, (%rax) movl 0x5c(%rdx), %edx movq %rbx, %rdi movq %rax, %rsi callq 0x594d4 testb %al, %al jne 0x53679 leaq 0x8(%r14), %r15 leaq 0x10(%r14), %r12 addq $0x28, %r14 movq %rsp, %rbp movq (%rsp), %rdi movzbl (%rdi), %edx leaq 0x1(%rdi), %rax testb %dl, %dl js 0x535a7 movq %rax, (%rsp) testl %edx, %edx je 0x5366f movl %edx, %ecx andl $0x7, %ecx cmpl $0x4, %ecx je 0x5366f movl %edx, %r13d cmpl $0x1f40, %edx # imm = 0x1F40 jb 0x535c1 movq %r12, %rdi movq %r13, %rsi movq %rax, %rdx leaq 0xaf326(%rip), %rcx # 0x1028c0 movq %r15, %r8 movq %rbx, %r9 callq 0x6254a jmp 0x535e4 movzbl (%rax), %eax movl %eax, %ecx shll $0x7, %ecx addl %ecx, %edx addl $-0x80, %edx testb %al, %al js 0x535f2 addq $0x2, %rdi movq %rdi, %rax jmp 0x535f9 movq (%r15), %rsi testb $0x1, %sil je 0x5365b andq $-0x4, %rsi addq $0x8, %rsi movq %r13, %rdi movq %rax, %rdx movq %rbx, %rcx callq 0x8822d movq %rax, (%rsp) testq %rax, %rax jne 0x53643 jmp 0x5368c movl %edx, %esi callq 0x9f24e movq %rax, (%rsp) cmpl $0x1f3a, %edx # imm = 0x1F3A jne 0x53569 addq $-0x2, %rax addq $0x2, %rax movq %rax, (%rsp) movq %r14, %rdi xorl %esi, %esi callq 0x59568 movq (%rsp), %rdx movq %rbx, %rdi movq %rax, %rsi callq 0x10dda movq %rax, (%rsp) testq %rax, %rax je 0x5368c cmpq %rax, (%rbx) jbe 0x53643 cmpw $0x3eba, (%rax) # imm = 0x3EBA je 0x5360d movl 0x5c(%rbx), %edx movq %rbx, %rdi movq %rbp, %rsi callq 0x594d4 testb %al, %al je 0x53556 jmp 0x53679 movq %r15, %rdi callq 0x59664 movq %rax, %rsi movq (%rsp), %rax jmp 0x535d6 testq %rax, %rax je 0x5368c decl %edx movl %edx, 0x50(%rbx) movq (%rsp), %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq $0x0, (%rsp) jmp 0x53679
_ZN6google8protobuf12OneofOptions14_InternalParseEPKcPNS0_8internal12ParseContextE: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rdx mov r14, rdi mov rax, rsp mov [rax], rsi mov edx, [rdx+5Ch]; int mov rdi, rbx; this mov rsi, rax; char ** call _ZN6google8protobuf8internal18EpsCopyInputStream13DoneWithCheckEPPKci; google::protobuf::internal::EpsCopyInputStream::DoneWithCheck(char const**,int) test al, al jnz loc_53679 lea r15, [r14+8] lea r12, [r14+10h] add r14, 28h ; '(' mov rbp, rsp loc_53556: mov rdi, [rsp+38h+var_38]; this movzx edx, byte ptr [rdi] lea rax, [rdi+1] test dl, dl js short loc_535A7 mov [rsp+38h+var_38], rax loc_53569: test edx, edx jz loc_5366F mov ecx, edx and ecx, 7 cmp ecx, 4 jz loc_5366F mov r13d, edx cmp edx, 1F40h jb short loc_535C1 mov rdi, r12; this mov rsi, r13; unsigned __int64 mov rdx, rax; char * lea rcx, _ZN6google8protobuf31_OneofOptions_default_instance_E; google::protobuf::Message * mov r8, r15; google::protobuf::internal::InternalMetadata * mov r9, rbx; google::protobuf::internal::ParseContext * call _ZN6google8protobuf8internal12ExtensionSet10ParseFieldEmPKcPKNS0_7MessageEPNS1_16InternalMetadataEPNS1_12ParseContextE; google::protobuf::internal::ExtensionSet::ParseField(ulong,char const*,google::protobuf::Message const*,google::protobuf::internal::InternalMetadata *,google::protobuf::internal::ParseContext *) jmp short loc_535E4 loc_535A7: movzx eax, byte ptr [rax] mov ecx, eax shl ecx, 7 add edx, ecx add edx, 0FFFFFF80h; unsigned int test al, al js short loc_535F2 add rdi, 2 mov rax, rdi jmp short loc_535F9 loc_535C1: mov rsi, [r15] test sil, 1 jz loc_5365B and rsi, 0FFFFFFFFFFFFFFFCh add rsi, 8; unsigned __int64 loc_535D6: mov rdi, r13; this mov rdx, rax; google::protobuf::UnknownFieldSet * mov rcx, rbx; char * call _ZN6google8protobuf8internal17UnknownFieldParseEmPNS0_15UnknownFieldSetEPKcPNS1_12ParseContextE; google::protobuf::internal::UnknownFieldParse(ulong,google::protobuf::UnknownFieldSet *,char const*,google::protobuf::internal::ParseContext *) loc_535E4: mov [rsp+38h+var_38], rax test rax, rax jnz short loc_53643 jmp loc_5368C loc_535F2: mov esi, edx; char * call _ZN6google8protobuf8internal15ReadTagFallbackEPKcj; google::protobuf::internal::ReadTagFallback(char const*,uint) loc_535F9: mov [rsp+38h+var_38], rax cmp edx, 1F3Ah jnz loc_53569 add rax, 0FFFFFFFFFFFFFFFEh loc_5360D: add rax, 2 mov [rsp+38h+var_38], rax mov rdi, r14; this xor esi, esi call _ZN6google8protobuf8internal20RepeatedPtrFieldBase3AddINS0_16RepeatedPtrFieldINS0_19UninterpretedOptionEE11TypeHandlerEEEPNT_4TypeEPKS9_; google::protobuf::internal::RepeatedPtrFieldBase::Add<google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption>::TypeHandler>(google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption>::TypeHandler::Type * const*) mov rdx, [rsp+38h+var_38]; char * mov rdi, rbx; this mov rsi, rax; google::protobuf::MessageLite * call _ZN6google8protobuf8internal12ParseContext12ParseMessageEPNS0_11MessageLiteEPKc; google::protobuf::internal::ParseContext::ParseMessage(google::protobuf::MessageLite *,char const*) mov [rsp+38h+var_38], rax test rax, rax jz short loc_5368C cmp [rbx], rax jbe short loc_53643 cmp word ptr [rax], 3EBAh jz short loc_5360D loc_53643: mov edx, [rbx+5Ch]; int mov rdi, rbx; this mov rsi, rbp; char ** call _ZN6google8protobuf8internal18EpsCopyInputStream13DoneWithCheckEPPKci; google::protobuf::internal::EpsCopyInputStream::DoneWithCheck(char const**,int) test al, al jz loc_53556 jmp short loc_53679 loc_5365B: mov rdi, r15 call _ZN6google8protobuf8internal16InternalMetadata27mutable_unknown_fields_slowINS0_15UnknownFieldSetEEEPT_v; google::protobuf::internal::InternalMetadata::mutable_unknown_fields_slow<google::protobuf::UnknownFieldSet>(void) mov rsi, rax mov rax, [rsp+38h+var_38] jmp loc_535D6 loc_5366F: test rax, rax jz short loc_5368C dec edx mov [rbx+50h], edx loc_53679: mov rax, [rsp+38h+var_38] add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_5368C: mov [rsp+38h+var_38], 0 jmp short loc_53679
google::protobuf::internal * google::protobuf::OneofOptions::_InternalParse( google::protobuf::OneofOptions *this, google::protobuf::internal *a2, google::protobuf::internal::ParseContext *a3) { google::protobuf::internal::ParseContext *v4; // r8 google::protobuf::internal::InternalMetadata *v5; // r15 unsigned int v6; // edx google::protobuf::internal *TagFallback; // rax google::protobuf::internal *v8; // r13 google::protobuf::internal *v9; // rax int v10; // eax unsigned long long v11; // rsi unsigned long long v12; // rax google::protobuf::MessageLite *v13; // rax google::protobuf::internal *v15[7]; // [rsp+0h] [rbp-38h] BYREF v15[0] = a2; if ( !(unsigned __int8)google::protobuf::internal::EpsCopyInputStream::DoneWithCheck( a3, (const char **)v15, *((_DWORD *)a3 + 23)) ) { v5 = (google::protobuf::OneofOptions *)((char *)this + 8); while ( 1 ) { v6 = *(unsigned __int8 *)v15[0]; TagFallback = (google::protobuf::internal *)((char *)v15[0] + 1); if ( (v6 & 0x80u) != 0 ) { v10 = *(unsigned __int8 *)TagFallback; v6 = (v10 << 7) + v6 - 128; if ( (v10 & 0x80u) != 0 ) TagFallback = (google::protobuf::internal *)google::protobuf::internal::ReadTagFallback( v15[0], (const char *)v6, v6); else TagFallback = (google::protobuf::internal *)((char *)v15[0] + 2); v15[0] = TagFallback; if ( v6 == 7994 ) { v12 = (unsigned long long)TagFallback - 2; while ( 1 ) { v15[0] = (google::protobuf::internal *)(v12 + 2); v13 = (google::protobuf::MessageLite *)google::protobuf::internal::RepeatedPtrFieldBase::Add<google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption>::TypeHandler>((google::protobuf::OneofOptions *)((char *)this + 40)); v12 = google::protobuf::internal::ParseContext::ParseMessage(a3, v13, (const char *)v15[0]); v15[0] = (google::protobuf::internal *)v12; if ( !v12 ) goto LABEL_28; if ( *(_QWORD *)a3 <= v12 || *(_WORD *)v12 != 16058 ) goto LABEL_22; } } } else { ++v15[0]; } if ( !v6 || (v6 & 7) == 4 ) break; v8 = (google::protobuf::internal *)v6; if ( v6 < 0x1F40 ) { if ( (*(_QWORD *)v5 & 1) != 0 ) { v11 = (*(_QWORD *)v5 & 0xFFFFFFFFFFFFFFFCLL) + 8; } else { v11 = google::protobuf::internal::InternalMetadata::mutable_unknown_fields_slow<google::protobuf::UnknownFieldSet>(v5); TagFallback = v15[0]; } v9 = (google::protobuf::internal *)google::protobuf::internal::UnknownFieldParse( v8, v11, TagFallback, (const char *)a3, v4); } else { v9 = (google::protobuf::internal *)google::protobuf::internal::ExtensionSet::ParseField( (google::protobuf::OneofOptions *)((char *)this + 16), v6, (const char *)TagFallback, (const google::protobuf::Message *)&google::protobuf::_OneofOptions_default_instance_, v5, a3); } v15[0] = v9; if ( !v9 ) goto LABEL_28; LABEL_22: if ( (unsigned __int8)google::protobuf::internal::EpsCopyInputStream::DoneWithCheck( a3, (const char **)v15, *((_DWORD *)a3 + 23)) ) return v15[0]; } if ( TagFallback ) { *((_DWORD *)a3 + 20) = v6 - 1; return v15[0]; } LABEL_28: v15[0] = 0LL; } return v15[0]; }
_InternalParse: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RDX MOV R14,RDI MOV RAX,RSP MOV qword ptr [RAX],RSI MOV EDX,dword ptr [RDX + 0x5c] MOV RDI,RBX MOV RSI,RAX CALL 0x001594d4 TEST AL,AL JNZ 0x00153679 LEA R15,[R14 + 0x8] LEA R12,[R14 + 0x10] ADD R14,0x28 MOV RBP,RSP LAB_00153556: MOV RDI,qword ptr [RSP] MOVZX EDX,byte ptr [RDI] LEA RAX,[RDI + 0x1] TEST DL,DL JS 0x001535a7 MOV qword ptr [RSP],RAX LAB_00153569: TEST EDX,EDX JZ 0x0015366f MOV ECX,EDX AND ECX,0x7 CMP ECX,0x4 JZ 0x0015366f MOV R13D,EDX CMP EDX,0x1f40 JC 0x001535c1 MOV RDI,R12 MOV RSI,R13 MOV RDX,RAX LEA RCX,[0x2028c0] MOV R8,R15 MOV R9,RBX CALL 0x0016254a JMP 0x001535e4 LAB_001535a7: MOVZX EAX,byte ptr [RAX] MOV ECX,EAX SHL ECX,0x7 ADD EDX,ECX ADD EDX,-0x80 TEST AL,AL JS 0x001535f2 ADD RDI,0x2 MOV RAX,RDI JMP 0x001535f9 LAB_001535c1: MOV RSI,qword ptr [R15] TEST SIL,0x1 JZ 0x0015365b AND RSI,-0x4 ADD RSI,0x8 LAB_001535d6: MOV RDI,R13 MOV RDX,RAX MOV RCX,RBX CALL 0x0018822d LAB_001535e4: MOV qword ptr [RSP],RAX TEST RAX,RAX JNZ 0x00153643 JMP 0x0015368c LAB_001535f2: MOV ESI,EDX CALL 0x0019f24e LAB_001535f9: MOV qword ptr [RSP],RAX CMP EDX,0x1f3a JNZ 0x00153569 ADD RAX,-0x2 LAB_0015360d: ADD RAX,0x2 MOV qword ptr [RSP],RAX MOV RDI,R14 XOR ESI,ESI CALL 0x00159568 MOV RDX,qword ptr [RSP] MOV RDI,RBX MOV RSI,RAX CALL 0x00110dda MOV qword ptr [RSP],RAX TEST RAX,RAX JZ 0x0015368c CMP qword ptr [RBX],RAX JBE 0x00153643 CMP word ptr [RAX],0x3eba JZ 0x0015360d LAB_00153643: MOV EDX,dword ptr [RBX + 0x5c] MOV RDI,RBX MOV RSI,RBP CALL 0x001594d4 TEST AL,AL JZ 0x00153556 JMP 0x00153679 LAB_0015365b: MOV RDI,R15 CALL 0x00159664 MOV RSI,RAX MOV RAX,qword ptr [RSP] JMP 0x001535d6 LAB_0015366f: TEST RAX,RAX JZ 0x0015368c DEC EDX MOV dword ptr [RBX + 0x50],EDX LAB_00153679: MOV RAX,qword ptr [RSP] ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0015368c: MOV qword ptr [RSP],0x0 JMP 0x00153679
/* google::protobuf::OneofOptions::_InternalParse(char const*, google::protobuf::internal::ParseContext*) */ byte * __thiscall google::protobuf::OneofOptions::_InternalParse (OneofOptions *this,char *param_1,ParseContext *param_2) { InternalMetadata *this_00; byte bVar1; byte bVar2; char cVar3; uint uVar5; Type *pTVar4; UnknownFieldSet *pUVar6; int1 auVar7 [12]; byte *local_38; local_38 = (byte *)param_1; cVar3 = internal::EpsCopyInputStream::DoneWithCheck ((EpsCopyInputStream *)param_2,(char **)&local_38,*(int *)(param_2 + 0x5c)); if (cVar3 == '\0') { this_00 = (InternalMetadata *)(this + 8); do { bVar1 = *local_38; auVar7[8] = bVar1; auVar7._0_8_ = local_38 + 1; auVar7._9_3_ = 0; if ((char)bVar1 < '\0') { bVar2 = local_38[1]; uVar5 = ((uint)bVar1 + (uint)bVar2 * 0x80) - 0x80; if ((char)bVar2 < '\0') { auVar7 = internal::ReadTagFallback((char *)local_38,uVar5); } else { auVar7._8_4_ = uVar5; auVar7._0_8_ = local_38 + 2; } if (auVar7._8_4_ != 0x1f3a) goto LAB_00153569; local_38 = (byte *)(auVar7._0_8_ + -2); do { local_38 = local_38 + 2; pTVar4 = internal::RepeatedPtrFieldBase:: Add<google::protobuf::RepeatedPtrField<google::protobuf::UninterpretedOption>::TypeHandler> ((Type *)(this + 0x28)); local_38 = (byte *)internal::ParseContext::ParseMessage (param_2,(MessageLite *)pTVar4,(char *)local_38); if (local_38 == (byte *)0x0) { return (byte *)0x0; } } while ((local_38 < *(byte **)param_2) && (*(short *)local_38 == 0x3eba)); } else { LAB_00153569: uVar5 = auVar7._8_4_; local_38 = auVar7._0_8_; if ((uVar5 == 0) || ((uVar5 & 7) == 4)) { if (local_38 == (byte *)0x0) { return (byte *)0x0; } *(uint *)(param_2 + 0x50) = uVar5 - 1; return local_38; } if (uVar5 < 8000) { if ((*(ulong *)this_00 & 1) == 0) { pUVar6 = internal::InternalMetadata:: mutable_unknown_fields_slow<google::protobuf::UnknownFieldSet>(this_00); } else { pUVar6 = (UnknownFieldSet *)((*(ulong *)this_00 & 0xfffffffffffffffc) + 8); } local_38 = (byte *)internal::UnknownFieldParse ((ulong)uVar5,pUVar6,(char *)local_38,param_2); } else { local_38 = (byte *)internal::ExtensionSet::ParseField ((ExtensionSet *)(this + 0x10),(ulong)uVar5,(char *)local_38, (Message *)_OneofOptions_default_instance_,this_00,param_2); } if (local_38 == (byte *)0x0) { return (byte *)0x0; } } cVar3 = internal::EpsCopyInputStream::DoneWithCheck ((EpsCopyInputStream *)param_2,(char **)&local_38,*(int *)(param_2 + 0x5c)); } while (cVar3 == '\0'); } return local_38; }
6,209
google::protobuf::compiler::objectivec::(anonymous namespace)::PackageToPrefixesCollector::ConsumeLine(google::protobuf::stringpiece_internal::StringPiece const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc
bool PackageToPrefixesCollector::ConsumeLine( const StringPiece& line, std::string* out_error) { int offset = line.find('='); if (offset == StringPiece::npos) { *out_error = usage_ + " file line without equal sign: '" + StrCat(line) + "'."; return false; } StringPiece package = line.substr(0, offset); StringPiece prefix = line.substr(offset + 1); TrimWhitespace(&package); TrimWhitespace(&prefix); MaybeUnQuote(&prefix); // Don't really worry about error checking the package/prefix for // being valid. Assume the file is validated when it is created/edited. (*prefix_map_)[std::string(package)] = std::string(prefix); return true; }
O3
cpp
google::protobuf::compiler::objectivec::(anonymous namespace)::PackageToPrefixesCollector::ConsumeLine(google::protobuf::stringpiece_internal::StringPiece const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x88, %rsp movq %rdx, %r15 movq %rsi, %r13 movq %rdi, %r12 movq %rsi, %rdi movl $0x3d, %esi xorl %edx, %edx callq 0x108390 movq %rax, %rbx movslq %ebx, %rdx leaq 0x19aa74(%rip), %rax # 0x1ed420 movq (%rax), %r14 cmpq %r14, %rdx movq %rdx, 0x60(%rsp) je 0x52b52 shlq $0x20, %rbx movq %r13, %rdi xorl %esi, %esi callq 0x10880a movq %rax, %r15 movq %rdx, %rbp movq %rax, 0x20(%rsp) movq %rdx, 0x28(%rsp) movabsq $0x100000000, %rsi # imm = 0x100000000 addq %rbx, %rsi sarq $0x20, %rsi movq %r13, %rdi movq %r14, %rdx callq 0x10880a movq %rax, (%rsp) movq %rdx, 0x8(%rsp) testq %rbp, %rbp je 0x52a5b decq %rbp leaq 0x1(%r15), %rsi movq %rbp, %rcx movzbl -0x1(%rsi), %edi leal -0x9(%rdi), %r8d cmpl $0x5, %r8d jae 0x52a32 movq %rsi, 0x20(%rsp) movq %rcx, 0x28(%rsp) incq %rsi addq $-0x1, %rcx jb 0x52a0f jmp 0x52a5b cmpl $0x20, %edi je 0x52a1d addq %rbp, %r15 movzbl (%r15), %esi leal -0x9(%rsi), %edi cmpl $0x5, %edi jae 0x52a56 movq %rcx, 0x28(%rsp) decq %r15 addq $-0x1, %rcx jb 0x52a3a jmp 0x52a5b cmpl $0x20, %esi je 0x52a46 testq %rdx, %rdx je 0x52ad7 leaq 0x1(%rax), %rsi movq %rdx, %rcx movzbl -0x1(%rsi), %edi leal -0x9(%rdi), %r8d cmpl $0x5, %r8d jae 0x52a88 movq %rsi, (%rsp) incq %rsi decq %rcx movq %rcx, 0x8(%rsp) jne 0x52a67 jmp 0x52ad7 cmpl $0x20, %edi je 0x52a75 addq %rdx, %rax decq %rax movzbl (%rax), %edx leal -0x9(%rdx), %edi cmpl $0x5, %edi jae 0x52aad decq %rax decq %rcx movq %rcx, 0x8(%rsp) jne 0x52a93 jmp 0x52ad7 cmpl $0x20, %edx je 0x52a9e cmpq $0x2, %rcx jb 0x52ad7 movzbl -0x1(%rsi), %edx cmpl $0x27, %edx je 0x52ac6 cmpl $0x22, %edx jne 0x52ad7 cmpb %dl, (%rax) jne 0x52ad7 movq %rsi, (%rsp) addq $-0x2, %rcx movq %rcx, 0x8(%rsp) leaq 0x68(%rsp), %rdi movq %rsp, %rsi callq 0x499ce movq 0x28(%r12), %rbx leaq 0x40(%rsp), %rdi leaq 0x20(%rsp), %rsi callq 0x499ce leaq 0x40(%rsp), %rsi movq %rbx, %rdi callq 0x2e310 leaq 0x68(%rsp), %rsi movq %rax, %rdi callq 0x1f5d0 leaq 0x50(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x52b25 callq 0x1f4a0 leaq 0x78(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x52b38 callq 0x1f4a0 cmpq %r14, 0x60(%rsp) setne %al addq $0x88, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x30(%rsp), %rbp movq %rbp, -0x10(%rbp) movq 0x8(%r12), %rsi movq 0x10(%r12), %rdx addq %rsi, %rdx leaq 0x20(%rsp), %rbx movq %rbx, %rdi callq 0x2586a leaq 0x150272(%rip), %rsi # 0x1a2dee movq %rbx, %rdi callq 0x1f8e0 movq (%r13), %rsi leaq 0x10(%rsp), %r12 movq 0x8(%r13), %rdx addq %rsi, %rdx movq %r12, -0x10(%r12) movq %rsp, %rdi callq 0x250b2 movq 0x20(%rsp), %rcx movq 0x28(%rsp), %r8 movq 0x8(%rsp), %rdx leaq (%rdx,%r8), %rax movl $0xf, %edi cmpq %rbp, %rcx je 0x52bc3 movq 0x30(%rsp), %rdi movq (%rsp), %rsi cmpq %rdi, %rax jbe 0x52be0 movl $0xf, %edi cmpq %r12, %rsi je 0x52bdb movq 0x10(%rsp), %rdi cmpq %rdi, %rax jbe 0x52bec leaq 0x20(%rsp), %rdi callq 0x1f150 jmp 0x52bf8 movq %rsp, %rdi xorl %esi, %esi xorl %edx, %edx callq 0x1f550 leaq 0x50(%rsp), %rdx movq %rdx, -0x10(%rdx) movq (%rax), %rsi leaq 0x10(%rax), %rcx cmpq %rcx, %rsi je 0x52c1c movq %rsi, 0x40(%rsp) movq (%rcx), %rdx movq %rdx, 0x50(%rsp) jmp 0x52c22 movups (%rcx), %xmm0 movups %xmm0, (%rdx) movq %rax, %rdx addq $0x8, %rdx movq 0x8(%rax), %rsi movq %rsi, 0x48(%rsp) movq %rcx, (%rax) movq $0x0, (%rdx) movb $0x0, (%rcx) leaq 0x148297(%rip), %rsi # 0x19aedd leaq 0x40(%rsp), %rdi callq 0x1f8e0 leaq 0x78(%rsp), %r13 movq %r13, -0x10(%r13) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx je 0x52c77 movq %rdx, 0x68(%rsp) movq (%rcx), %rdx movq %rdx, 0x78(%rsp) jmp 0x52c7f movups (%rcx), %xmm0 movups %xmm0, (%r13) movq 0x8(%rax), %rdx leaq 0x68(%rsp), %rbx movq %rdx, 0x8(%rbx) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) movq %r15, %rdi movq %rbx, %rsi callq 0x1f5d0 movq (%rbx), %rdi cmpq %r13, %rdi je 0x52cb3 callq 0x1f4a0 leaq 0x50(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x52cc6 callq 0x1f4a0 movq (%rsp), %rdi cmpq %r12, %rdi je 0x52cd4 callq 0x1f4a0 movq 0x20(%rsp), %rdi cmpq %rbp, %rdi jne 0x52b33 jmp 0x52b38 movq %rax, %rbx leaq 0x50(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x52d02 callq 0x1f4a0 jmp 0x52d02 movq %rax, %rbx movq (%rsp), %rdi cmpq %r12, %rdi je 0x52d2f callq 0x1f4a0 jmp 0x52d2f jmp 0x52d2c movq %rax, %rbx leaq 0x50(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x52d49 callq 0x1f4a0 jmp 0x52d49 movq %rax, %rbx movq 0x20(%rsp), %rdi cmpq %rbp, %rdi je 0x52d3e callq 0x1f4a0 movq %rbx, %rdi callq 0x1f860 movq %rax, %rbx leaq 0x78(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi jne 0x52d39 jmp 0x52d3e nop
_ZN6google8protobuf8compiler10objectivec12_GLOBAL__N_126PackageToPrefixesCollector11ConsumeLineERKNS0_20stringpiece_internal11StringPieceEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 88h mov r15, rdx mov r13, rsi mov r12, rdi mov rdi, rsi; this mov esi, 3Dh ; '='; char xor edx, edx; unsigned __int64 call _ZNK6google8protobuf20stringpiece_internal11StringPiece4findEcm; google::protobuf::stringpiece_internal::StringPiece::find(char,ulong) mov rbx, rax movsxd rdx, ebx; unsigned __int64 lea rax, _ZN6google8protobuf20stringpiece_internal11StringPiece4nposE; google::protobuf::stringpiece_internal::StringPiece::npos mov r14, [rax] cmp rdx, r14 mov [rsp+0B8h+var_58], rdx jz loc_52B52 shl rbx, 20h mov rdi, r13; this xor esi, esi; unsigned __int64 call _ZNK6google8protobuf20stringpiece_internal11StringPiece6substrEmm; google::protobuf::stringpiece_internal::StringPiece::substr(ulong,ulong) mov r15, rax mov rbp, rdx mov [rsp+0B8h+var_98], rax mov [rsp+0B8h+var_90], rdx mov rsi, 100000000h add rsi, rbx sar rsi, 20h; unsigned __int64 mov rdi, r13; this mov rdx, r14; unsigned __int64 call _ZNK6google8protobuf20stringpiece_internal11StringPiece6substrEmm; google::protobuf::stringpiece_internal::StringPiece::substr(ulong,ulong) mov [rsp+0B8h+var_B8], rax mov [rsp+0B8h+var_B0], rdx test rbp, rbp jz short loc_52A5B dec rbp lea rsi, [r15+1] mov rcx, rbp loc_52A0F: movzx edi, byte ptr [rsi-1] lea r8d, [rdi-9] cmp r8d, 5 jnb short loc_52A32 loc_52A1D: mov [rsp+0B8h+var_98], rsi mov [rsp+0B8h+var_90], rcx inc rsi add rcx, 0FFFFFFFFFFFFFFFFh jb short loc_52A0F jmp short loc_52A5B loc_52A32: cmp edi, 20h ; ' ' jz short loc_52A1D add r15, rbp loc_52A3A: movzx esi, byte ptr [r15] lea edi, [rsi-9] cmp edi, 5 jnb short loc_52A56 loc_52A46: mov [rsp+0B8h+var_90], rcx dec r15 add rcx, 0FFFFFFFFFFFFFFFFh jb short loc_52A3A jmp short loc_52A5B loc_52A56: cmp esi, 20h ; ' ' jz short loc_52A46 loc_52A5B: test rdx, rdx jz short loc_52AD7 lea rsi, [rax+1] mov rcx, rdx loc_52A67: movzx edi, byte ptr [rsi-1] lea r8d, [rdi-9] cmp r8d, 5 jnb short loc_52A88 loc_52A75: mov [rsp+0B8h+var_B8], rsi inc rsi dec rcx mov [rsp+0B8h+var_B0], rcx jnz short loc_52A67 jmp short loc_52AD7 loc_52A88: cmp edi, 20h ; ' ' jz short loc_52A75 add rax, rdx dec rax loc_52A93: movzx edx, byte ptr [rax] lea edi, [rdx-9] cmp edi, 5 jnb short loc_52AAD loc_52A9E: dec rax dec rcx mov [rsp+0B8h+var_B0], rcx jnz short loc_52A93 jmp short loc_52AD7 loc_52AAD: cmp edx, 20h ; ' ' jz short loc_52A9E cmp rcx, 2 jb short loc_52AD7 movzx edx, byte ptr [rsi-1] cmp edx, 27h ; ''' jz short loc_52AC6 cmp edx, 22h ; '"' jnz short loc_52AD7 loc_52AC6: cmp [rax], dl jnz short loc_52AD7 mov [rsp+0B8h+var_B8], rsi add rcx, 0FFFFFFFFFFFFFFFEh mov [rsp+0B8h+var_B0], rcx loc_52AD7: lea rdi, [rsp+0B8h+var_50] mov rsi, rsp call _ZNK6google8protobuf20stringpiece_internal11StringPiece8ToStringB5cxx11Ev; google::protobuf::stringpiece_internal::StringPiece::ToString(void) mov rbx, [r12+28h] lea rdi, [rsp+0B8h+var_78] lea rsi, [rsp+0B8h+var_98] call _ZNK6google8protobuf20stringpiece_internal11StringPiece8ToStringB5cxx11Ev; google::protobuf::stringpiece_internal::StringPiece::ToString(void) lea rsi, [rsp+0B8h+var_78] mov rdi, rbx call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixEOS5_; std::map<std::string,std::string>::operator[](std::string&&) lea rsi, [rsp+0B8h+var_50] mov rdi, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) lea rax, [rsp+0B8h+var_68] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_52B25 call __ZdlPv; operator delete(void *) loc_52B25: lea rax, [rsp+0B8h+var_40] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_52B38 loc_52B33: call __ZdlPv; operator delete(void *) loc_52B38: cmp [rsp+0B8h+var_58], r14 setnz al add rsp, 88h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_52B52: lea rbp, [rsp+0B8h+var_88] mov [rbp-10h], rbp mov rsi, [r12+8] mov rdx, [r12+10h] add rdx, rsi lea rbx, [rsp+0B8h+var_98] mov rdi, rbx call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea rsi, aFileLineWithou; " file line without equal sign: '" mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) mov rsi, [r13+0] lea r12, [rsp+0B8h+var_A8] mov rdx, [r13+8] add rdx, rsi mov [r12-10h], r12 mov rdi, rsp 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 rcx, [rsp+0B8h+var_98] mov r8, [rsp+0B8h+var_90] mov rdx, [rsp+0B8h+var_B0] lea rax, [rdx+r8] mov edi, 0Fh cmp rcx, rbp jz short loc_52BC3 mov rdi, [rsp+0B8h+var_88] loc_52BC3: mov rsi, [rsp+0B8h+var_B8] cmp rax, rdi jbe short loc_52BE0 mov edi, 0Fh cmp rsi, r12 jz short loc_52BDB mov rdi, [rsp+0B8h+var_A8] loc_52BDB: cmp rax, rdi jbe short loc_52BEC loc_52BE0: lea rdi, [rsp+0B8h+var_98] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong) jmp short loc_52BF8 loc_52BEC: mov rdi, rsp xor esi, esi xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong) loc_52BF8: lea rdx, [rsp+0B8h+var_68] mov [rdx-10h], rdx mov rsi, [rax] lea rcx, [rax+10h] cmp rsi, rcx jz short loc_52C1C mov [rsp+0B8h+var_78], rsi mov rdx, [rcx] mov [rsp+0B8h+var_68], rdx jmp short loc_52C22 loc_52C1C: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [rdx], xmm0 loc_52C22: mov rdx, rax add rdx, 8 mov rsi, [rax+8] mov [rsp+0B8h+var_70], rsi mov [rax], rcx mov qword ptr [rdx], 0 mov byte ptr [rcx], 0 lea rsi, aMayOnlyBePasse+76h; "'." lea rdi, [rsp+0B8h+var_78] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea r13, [rsp+0B8h+var_40] mov [r13-10h], r13 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jz short loc_52C77 mov [rsp+0B8h+var_50], rdx mov rdx, [rcx] mov [rsp+0B8h+var_40], rdx jmp short loc_52C7F loc_52C77: movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r13+0], xmm0 loc_52C7F: mov rdx, [rax+8] lea rbx, [rsp+0B8h+var_50] mov [rbx+8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 mov rdi, r15 mov rsi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov rdi, [rbx]; void * cmp rdi, r13 jz short loc_52CB3 call __ZdlPv; operator delete(void *) loc_52CB3: lea rax, [rsp+0B8h+var_68] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_52CC6 call __ZdlPv; operator delete(void *) loc_52CC6: mov rdi, [rsp+0B8h+var_B8]; void * cmp rdi, r12 jz short loc_52CD4 call __ZdlPv; operator delete(void *) loc_52CD4: mov rdi, [rsp+0B8h+var_98] cmp rdi, rbp jnz loc_52B33 jmp loc_52B38 mov rbx, rax lea rax, [rsp+arg_48] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_52D02 call __ZdlPv; operator delete(void *) jmp short loc_52D02 mov rbx, rax loc_52D02: mov rdi, [rsp+0]; void * cmp rdi, r12 jz short loc_52D2F call __ZdlPv; operator delete(void *) jmp short loc_52D2F jmp short loc_52D2C mov rbx, rax lea rax, [rsp+arg_48] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_52D49 call __ZdlPv; operator delete(void *) jmp short loc_52D49 loc_52D2C: mov rbx, rax loc_52D2F: mov rdi, [rsp+arg_18]; void * cmp rdi, rbp jz short loc_52D3E loc_52D39: call __ZdlPv; operator delete(void *) loc_52D3E: mov rdi, rbx call __Unwind_Resume mov rbx, rax loc_52D49: lea rax, [rsp+arg_70] mov rdi, [rax-10h] cmp rdi, rax jnz short loc_52D39 jmp short loc_52D3E
bool google::protobuf::compiler::objectivec::`anonymous namespace'::PackageToPrefixesCollector::ConsumeLine( long long a1, google::protobuf::stringpiece_internal::StringPiece *a2, long long a3) { long long v6; // rbx long long v7; // r15 long long v8; // rdx long long v9; // rbp char *v10; // rax unsigned long long v11; // rdx long long v12; // rbp _QWORD *v13; // rsi long long v14; // rcx int v15; // edi bool v16; // cf unsigned __int8 *v17; // r15 int v18; // esi char *v19; // rsi unsigned long long v20; // rcx int v21; // edi char *v22; // rax int v23; // edx int v24; // edx long long v25; // rbx long long v26; // rax void *v27; // rdi _BYTE *v29; // rsi long long v30; // rdx unsigned long long v31; // rax unsigned long long v32; // rdi unsigned long long v33; // rdi void **v34; // rax __int128 *v35; // rcx long long v36; // rax _OWORD *v37; // rcx void *v38; // [rsp+0h] [rbp-B8h] BYREF unsigned long long v39; // [rsp+8h] [rbp-B0h] _QWORD v40[2]; // [rsp+10h] [rbp-A8h] BYREF _QWORD *v41; // [rsp+20h] [rbp-98h] BYREF long long v42; // [rsp+28h] [rbp-90h] _QWORD v43[2]; // [rsp+30h] [rbp-88h] BYREF void *v44[2]; // [rsp+40h] [rbp-78h] BYREF __int128 v45; // [rsp+50h] [rbp-68h] BYREF long long v46; // [rsp+60h] [rbp-58h] void *v47[2]; // [rsp+68h] [rbp-50h] BYREF _OWORD v48[4]; // [rsp+78h] [rbp-40h] BYREF v6 = google::protobuf::stringpiece_internal::StringPiece::find(a2, 61, 0LL); v46 = (int)v6; if ( (int)v6 == google::protobuf::stringpiece_internal::StringPiece::npos ) { v41 = v43; std::string::_M_construct<char *>((long long)&v41, *(_BYTE **)(a1 + 8), *(_QWORD *)(a1 + 8) + *(_QWORD *)(a1 + 16)); std::string::append(&v41, " file line without equal sign: '"); v29 = *(_BYTE **)a2; v30 = *(_QWORD *)a2 + *((_QWORD *)a2 + 1); v38 = v40; std::string::_M_construct<char const*>((long long)&v38, v29, v30); v31 = v39 + v42; v32 = 15LL; if ( v41 != v43 ) v32 = v43[0]; if ( v31 <= v32 ) goto LABEL_40; v33 = 15LL; if ( v38 != v40 ) v33 = v40[0]; if ( v31 <= v33 ) v34 = (void **)std::string::replace(&v38, 0LL, 0LL, v41, v42); else LABEL_40: v34 = (void **)std::string::_M_append(&v41, v38, v39); v44[0] = &v45; v35 = (__int128 *)(v34 + 2); if ( *v34 == v34 + 2 ) { v45 = *v35; } else { v44[0] = *v34; *(_QWORD *)&v45 = *(_QWORD *)v35; } v44[1] = v34[1]; *v34 = v35; v34[1] = 0LL; *(_BYTE *)v35 = 0; v36 = std::string::append(v44, "'."); v47[0] = v48; v37 = (_OWORD *)(v36 + 16); if ( *(_QWORD *)v36 == v36 + 16 ) { v48[0] = *v37; } else { v47[0] = *(void **)v36; *(_QWORD *)&v48[0] = *(_QWORD *)v37; } v47[1] = *(void **)(v36 + 8); *(_QWORD *)v36 = v37; *(_QWORD *)(v36 + 8) = 0LL; *(_BYTE *)(v36 + 16) = 0; std::string::operator=(a3, v47); if ( v47[0] != v48 ) operator delete(v47[0]); if ( v44[0] != &v45 ) operator delete(v44[0]); if ( v38 != v40 ) operator delete(v38); v27 = v41; if ( v41 != v43 ) LABEL_32: operator delete(v27); } else { v7 = google::protobuf::stringpiece_internal::StringPiece::substr(a2, 0LL, (int)v6); v9 = v8; v41 = (_QWORD *)v7; v42 = v8; v10 = (char *)google::protobuf::stringpiece_internal::StringPiece::substr( a2, ((v6 << 32) + 0x100000000LL) >> 32, google::protobuf::stringpiece_internal::StringPiece::npos); v38 = v10; v39 = v11; if ( v9 ) { v12 = v9 - 1; v13 = (_QWORD *)(v7 + 1); v14 = v12; while ( 1 ) { v15 = *((unsigned __int8 *)v13 - 1); if ( (unsigned int)(v15 - 9) >= 5 && v15 != 32 ) break; v41 = v13; v42 = v14; v13 = (_QWORD *)((char *)v13 + 1); v16 = v14-- != 0; if ( !v16 ) goto LABEL_13; } v17 = (unsigned __int8 *)(v12 + v7); do { v18 = *v17; if ( (unsigned int)(v18 - 9) >= 5 && v18 != 32 ) break; v42 = v14; --v17; v16 = v14-- != 0; } while ( v16 ); } LABEL_13: if ( v11 ) { v19 = v10 + 1; v20 = v11; while ( 1 ) { v21 = (unsigned __int8)*(v19 - 1); if ( (unsigned int)(v21 - 9) >= 5 && v21 != 32 ) break; v38 = v19++; v39 = --v20; if ( !v20 ) goto LABEL_29; } v22 = &v10[v11 - 1]; while ( 1 ) { v23 = (unsigned __int8)*v22; if ( (unsigned int)(v23 - 9) >= 5 && v23 != 32 ) break; --v22; v39 = --v20; if ( !v20 ) goto LABEL_29; } if ( v20 >= 2 ) { v24 = (unsigned __int8)*(v19 - 1); if ( (v24 == 39 || v24 == 34) && *v22 == (_BYTE)v24 ) { v38 = v19; v39 = v20 - 2; } } } LABEL_29: google::protobuf::stringpiece_internal::StringPiece::ToString[abi:cxx11](v47, (long long)&v38); v25 = *(_QWORD *)(a1 + 40); google::protobuf::stringpiece_internal::StringPiece::ToString[abi:cxx11](v44, (long long)&v41); v26 = std::map<std::string,std::string>::operator[](v25, (long long)v44); std::string::operator=(v26, v47); if ( v44[0] != &v45 ) operator delete(v44[0]); v27 = v47[0]; if ( v47[0] != v48 ) goto LABEL_32; } return v46 != google::protobuf::stringpiece_internal::StringPiece::npos; }
ConsumeLine: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x88 MOV R15,RDX MOV R13,RSI MOV R12,RDI MOV RDI,RSI MOV ESI,0x3d XOR EDX,EDX CALL 0x00208390 MOV RBX,RAX MOVSXD RDX,EBX LEA RAX,[0x2ed420] MOV R14,qword ptr [RAX] CMP RDX,R14 MOV qword ptr [RSP + 0x60],RDX JZ 0x00152b52 SHL RBX,0x20 MOV RDI,R13 XOR ESI,ESI CALL 0x0020880a MOV R15,RAX MOV RBP,RDX MOV qword ptr [RSP + 0x20],RAX MOV qword ptr [RSP + 0x28],RDX MOV RSI,0x100000000 ADD RSI,RBX SAR RSI,0x20 MOV RDI,R13 MOV RDX,R14 CALL 0x0020880a MOV qword ptr [RSP],RAX MOV qword ptr [RSP + 0x8],RDX TEST RBP,RBP JZ 0x00152a5b DEC RBP LEA RSI,[R15 + 0x1] MOV RCX,RBP LAB_00152a0f: MOVZX EDI,byte ptr [RSI + -0x1] LEA R8D,[RDI + -0x9] CMP R8D,0x5 JNC 0x00152a32 LAB_00152a1d: MOV qword ptr [RSP + 0x20],RSI MOV qword ptr [RSP + 0x28],RCX INC RSI ADD RCX,-0x1 JC 0x00152a0f JMP 0x00152a5b LAB_00152a32: CMP EDI,0x20 JZ 0x00152a1d ADD R15,RBP LAB_00152a3a: MOVZX ESI,byte ptr [R15] LEA EDI,[RSI + -0x9] CMP EDI,0x5 JNC 0x00152a56 LAB_00152a46: MOV qword ptr [RSP + 0x28],RCX DEC R15 ADD RCX,-0x1 JC 0x00152a3a JMP 0x00152a5b LAB_00152a56: CMP ESI,0x20 JZ 0x00152a46 LAB_00152a5b: TEST RDX,RDX JZ 0x00152ad7 LEA RSI,[RAX + 0x1] MOV RCX,RDX LAB_00152a67: MOVZX EDI,byte ptr [RSI + -0x1] LEA R8D,[RDI + -0x9] CMP R8D,0x5 JNC 0x00152a88 LAB_00152a75: MOV qword ptr [RSP],RSI INC RSI DEC RCX MOV qword ptr [RSP + 0x8],RCX JNZ 0x00152a67 JMP 0x00152ad7 LAB_00152a88: CMP EDI,0x20 JZ 0x00152a75 ADD RAX,RDX DEC RAX LAB_00152a93: MOVZX EDX,byte ptr [RAX] LEA EDI,[RDX + -0x9] CMP EDI,0x5 JNC 0x00152aad LAB_00152a9e: DEC RAX DEC RCX MOV qword ptr [RSP + 0x8],RCX JNZ 0x00152a93 JMP 0x00152ad7 LAB_00152aad: CMP EDX,0x20 JZ 0x00152a9e CMP RCX,0x2 JC 0x00152ad7 MOVZX EDX,byte ptr [RSI + -0x1] CMP EDX,0x27 JZ 0x00152ac6 CMP EDX,0x22 JNZ 0x00152ad7 LAB_00152ac6: CMP byte ptr [RAX],DL JNZ 0x00152ad7 MOV qword ptr [RSP],RSI ADD RCX,-0x2 MOV qword ptr [RSP + 0x8],RCX LAB_00152ad7: LEA RDI,[RSP + 0x68] MOV RSI,RSP CALL 0x001499ce MOV RBX,qword ptr [R12 + 0x28] LAB_00152ae9: LEA RDI,[RSP + 0x40] LEA RSI,[RSP + 0x20] CALL 0x001499ce LAB_00152af8: LEA RSI,[RSP + 0x40] MOV RDI,RBX CALL 0x0012e310 LAB_00152b05: LEA RSI,[RSP + 0x68] MOV RDI,RAX CALL 0x0011f5d0 LEA RAX,[RSP + 0x50] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00152b25 CALL 0x0011f4a0 LAB_00152b25: LEA RAX,[RSP + 0x78] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00152b38 LAB_00152b33: CALL 0x0011f4a0 LAB_00152b38: CMP qword ptr [RSP + 0x60],R14 SETNZ AL ADD RSP,0x88 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00152b52: LEA RBP,[RSP + 0x30] MOV qword ptr [RBP + -0x10],RBP MOV RSI,qword ptr [R12 + 0x8] MOV RDX,qword ptr [R12 + 0x10] ADD RDX,RSI LEA RBX,[RSP + 0x20] MOV RDI,RBX CALL 0x0012586a LAB_00152b75: LEA RSI,[0x2a2dee] MOV RDI,RBX CALL 0x0011f8e0 MOV RSI,qword ptr [R13] LEA R12,[RSP + 0x10] MOV RDX,qword ptr [R13 + 0x8] ADD RDX,RSI MOV qword ptr [R12 + -0x10],R12 LAB_00152b99: MOV RDI,RSP CALL 0x001250b2 MOV RCX,qword ptr [RSP + 0x20] MOV R8,qword ptr [RSP + 0x28] MOV RDX,qword ptr [RSP + 0x8] LEA RAX,[RDX + R8*0x1] MOV EDI,0xf CMP RCX,RBP JZ 0x00152bc3 MOV RDI,qword ptr [RSP + 0x30] LAB_00152bc3: MOV RSI,qword ptr [RSP] CMP RAX,RDI JBE 0x00152be0 MOV EDI,0xf CMP RSI,R12 JZ 0x00152bdb MOV RDI,qword ptr [RSP + 0x10] LAB_00152bdb: CMP RAX,RDI JBE 0x00152bec LAB_00152be0: LEA RDI,[RSP + 0x20] CALL 0x0011f150 JMP 0x00152bf8 LAB_00152bec: MOV RDI,RSP XOR ESI,ESI XOR EDX,EDX CALL 0x0011f550 LAB_00152bf8: LEA RDX,[RSP + 0x50] MOV qword ptr [RDX + -0x10],RDX MOV RSI,qword ptr [RAX] LEA RCX,[RAX + 0x10] CMP RSI,RCX JZ 0x00152c1c MOV qword ptr [RSP + 0x40],RSI MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x50],RDX JMP 0x00152c22 LAB_00152c1c: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [RDX],XMM0 LAB_00152c22: MOV RDX,RAX ADD RDX,0x8 MOV RSI,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x48],RSI MOV qword ptr [RAX],RCX MOV qword ptr [RDX],0x0 MOV byte ptr [RCX],0x0 LAB_00152c3f: LEA RSI,[0x29aedd] LEA RDI,[RSP + 0x40] CALL 0x0011f8e0 LAB_00152c50: LEA R13,[RSP + 0x78] MOV qword ptr [R13 + -0x10],R13 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JZ 0x00152c77 MOV qword ptr [RSP + 0x68],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x78],RDX JMP 0x00152c7f LAB_00152c77: MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R13],XMM0 LAB_00152c7f: MOV RDX,qword ptr [RAX + 0x8] LEA RBX,[RSP + 0x68] MOV qword ptr [RBX + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 MOV RDI,R15 MOV RSI,RBX CALL 0x0011f5d0 MOV RDI,qword ptr [RBX] CMP RDI,R13 JZ 0x00152cb3 CALL 0x0011f4a0 LAB_00152cb3: LEA RAX,[RSP + 0x50] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00152cc6 CALL 0x0011f4a0 LAB_00152cc6: MOV RDI,qword ptr [RSP] CMP RDI,R12 JZ 0x00152cd4 CALL 0x0011f4a0 LAB_00152cd4: MOV RDI,qword ptr [RSP + 0x20] CMP RDI,RBP JNZ 0x00152b33 JMP 0x00152b38
/* google::protobuf::compiler::objectivec::(anonymous namespace)::PackageToPrefixesCollector::ConsumeLine(google::protobuf::stringpiece_internal::StringPiece const&, std::__cxx11::string*) */ bool __thiscall google::protobuf::compiler::objectivec::(anonymous_namespace)::PackageToPrefixesCollector:: ConsumeLine(PackageToPrefixesCollector *this,StringPiece *param_1,string *param_2) { int8 *puVar1; byte bVar2; map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> *this_00; int1 auVar3 [16]; int1 auVar4 [16]; int1 auVar5 [16]; int1 auVar6 [16]; long lVar7; ulong uVar8; uint uVar9; byte *pbVar11; string *this_01; int8 *puVar12; long *plVar13; long lVar14; long lVar16; ulong *puVar17; ulong uVar18; byte *pbVar19; bool bVar20; int1 auVar21 [16]; int1 local_b8 [16]; ulong local_a8 [2]; int1 local_98 [16]; ulong local_88 [2]; int8 *local_78; int8 local_70; int8 local_68; int8 uStack_60; ulong local_58; ulong *local_50; long local_48; ulong local_40; long lStack_38; long lVar10; long lVar15; uVar9 = stringpiece_internal::StringPiece::find((StringPiece *)param_1,'=',0); uVar8 = stringpiece_internal::StringPiece::npos; local_58 = (ulong)(int)uVar9; if (local_58 != stringpiece_internal::StringPiece::npos) { local_98 = stringpiece_internal::StringPiece::substr((StringPiece *)param_1,0,local_58); lVar16 = local_98._8_8_; pbVar19 = local_98._0_8_; auVar21 = stringpiece_internal::StringPiece::substr ((StringPiece *)param_1,(long)(((ulong)uVar9 << 0x20) + 0x100000000) >> 0x20 ,uVar8); lVar15 = auVar21._8_8_; lVar10 = auVar21._0_8_; lVar7 = lVar15; auVar3 = local_98; if (lVar16 != 0) { lVar16 = lVar16 + -1; lVar14 = lVar16; pbVar11 = pbVar19; do { local_98._8_8_ = auVar3._8_8_; local_98._0_8_ = auVar3._0_8_; auVar3._8_8_ = lVar14; auVar3._0_8_ = pbVar11 + 1; if ((4 < *pbVar11 - 9) && (*pbVar11 != 0x20)) { pbVar19 = pbVar19 + lVar16; goto LAB_00152a3a; } bVar20 = lVar14 != 0; lVar14 = lVar14 + -1; pbVar11 = pbVar11 + 1; } while (bVar20); } goto joined_r0x00152a5e; } local_98._0_8_ = local_88; std::__cxx11::string::_M_construct<char*> (local_98,*(long *)(this + 8),*(long *)(this + 0x10) + *(long *)(this + 8)); /* try { // try from 00152b75 to 00152b83 has its CatchHandler @ 00152d2c */ std::__cxx11::string::append(local_98); local_b8._0_8_ = local_a8; /* try { // try from 00152b99 to 00152ba0 has its CatchHandler @ 00152d12 */ std::__cxx11::string::_M_construct<char_const*> (local_b8,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1); uVar18 = 0xf; if ((ulong *)local_98._0_8_ != local_88) { uVar18 = local_88[0]; } if (uVar18 < (ulong)(local_b8._8_8_ + local_98._8_8_)) { uVar18 = 0xf; if ((ulong *)local_b8._0_8_ != local_a8) { uVar18 = local_a8[0]; } if (uVar18 < (ulong)(local_b8._8_8_ + local_98._8_8_)) goto LAB_00152be0; puVar12 = (int8 *) std::__cxx11::string::replace((ulong)local_b8,0,(char *)0x0,local_98._0_8_); } else { LAB_00152be0: /* try { // try from 00152be0 to 00152bf7 has its CatchHandler @ 00152cff */ puVar12 = (int8 *)std::__cxx11::string::_M_append(local_98,local_b8._0_8_); } local_78 = &local_68; puVar1 = puVar12 + 2; if ((int8 *)*puVar12 == puVar1) { local_68 = *puVar1; uStack_60 = puVar12[3]; } else { local_68 = *puVar1; local_78 = (int8 *)*puVar12; } local_70 = puVar12[1]; *puVar12 = puVar1; puVar12[1] = 0; *(int1 *)puVar1 = 0; /* try { // try from 00152c3f to 00152c4f has its CatchHandler @ 00152ce7 */ plVar13 = (long *)std::__cxx11::string::append((char *)&local_78); puVar17 = (ulong *)(plVar13 + 2); if ((ulong *)*plVar13 == puVar17) { local_40 = *puVar17; lStack_38 = plVar13[3]; local_50 = &local_40; } else { local_40 = *puVar17; local_50 = (ulong *)*plVar13; } local_48 = plVar13[1]; *plVar13 = (long)puVar17; plVar13[1] = 0; *(int1 *)(plVar13 + 2) = 0; std::__cxx11::string::operator=(param_2,(string *)&local_50); if (local_50 != &local_40) { operator_delete(local_50); } if (local_78 != &local_68) { operator_delete(local_78); } if ((ulong *)local_b8._0_8_ != local_a8) { operator_delete((void *)local_b8._0_8_); } puVar17 = (ulong *)local_98._0_8_; if ((ulong *)local_98._0_8_ == local_88) goto LAB_00152b38; goto LAB_00152b33; while( true ) { pbVar19 = pbVar19 + -1; lVar14 = lVar16 + -1; local_98._8_8_ = lVar16; auVar3 = auVar4; if (lVar16 == 0) break; LAB_00152a3a: lVar16 = lVar14; auVar4._8_8_ = lVar16; auVar4._0_8_ = local_98._0_8_; auVar3._8_8_ = local_98._8_8_; auVar3._0_8_ = local_98._0_8_; if ((4 < *pbVar19 - 9) && (*pbVar19 != 0x20)) break; } joined_r0x00152a5e: do { local_98 = auVar3; local_b8 = auVar21; if (lVar7 == 0) goto LAB_00152ad7; local_b8._8_8_ = auVar21._8_8_; pbVar19 = auVar21._0_8_; if ((4 < *pbVar19 - 9) && (*pbVar19 != 0x20)) { pbVar11 = (byte *)(lVar10 + lVar15); break; } auVar21._8_8_ = local_b8._8_8_ - 1; auVar21._0_8_ = pbVar19 + 1; lVar7 = local_b8._8_8_ - 1; auVar3 = local_98; } while( true ); while( true ) { local_b8._8_8_ = local_b8._8_8_ - 1; if (local_b8._8_8_ == 0) break; auVar6._8_8_ = local_b8._8_8_; auVar6._0_8_ = pbVar19; auVar5._8_8_ = local_b8._8_8_; auVar5._0_8_ = pbVar19; local_b8._0_8_ = pbVar19; pbVar11 = pbVar11 + -1; if ((4 < *pbVar11 - 9) && (*pbVar11 != 0x20)) { if ((1 < (ulong)local_b8._8_8_) && (((bVar2 = *pbVar19, bVar2 == 0x27 || (local_b8 = auVar5, bVar2 == 0x22)) && (local_b8 = auVar6, *pbVar11 == bVar2)))) { local_b8._8_8_ = local_b8._8_8_ - 2; local_b8._0_8_ = pbVar19 + 1; } break; } } LAB_00152ad7: stringpiece_internal::StringPiece::ToString_abi_cxx11_(); this_00 = *(map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> **)(this + 0x28); /* try { // try from 00152ae9 to 00152af7 has its CatchHandler @ 00152d46 */ stringpiece_internal::StringPiece::ToString_abi_cxx11_(); /* try { // try from 00152af8 to 00152b04 has its CatchHandler @ 00152d14 */ this_01 = (string *) std:: map<std::__cxx11::string,std::__cxx11::string,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::__cxx11::string>>> ::operator[](this_00,(string *)&local_78); std::__cxx11::string::operator=(this_01,(string *)&local_50); if (local_78 != &local_68) { operator_delete(local_78); } puVar17 = local_50; if (local_50 == &local_40) goto LAB_00152b38; LAB_00152b33: operator_delete(puVar17); LAB_00152b38: return local_58 != uVar8; }
6,210
verify_merkle_proof
corpus-core[P]colibri-stateless/src/chains/eth/verifier/verify_receipt_proof.c
static bool verify_merkle_proof(verify_ctx_t* ctx, ssz_ob_t proof, bytes_t block_hash, bytes_t block_number, bytes_t raw, uint32_t tx_index, bytes32_t receipt_root, bytes32_t body_root) { uint8_t leafes[4 * 32] = {0}; // 3 leafes, 32 bytes each bytes32_t root_hash = {0}; // calculated body root hash gindex_t gindexes[] = {GINDEX_BLOCKUMBER, GINDEX_BLOCHASH, GINDEX_RECEIPT_ROOT, GINDEX_TXINDEX_G + tx_index}; // calculate the gindexes for the proof // copy leaf data memcpy(leafes, block_number.data, block_number.len); memcpy(leafes + 32, block_hash.data, block_hash.len); memcpy(leafes + 64, receipt_root, 32); ssz_hash_tree_root(ssz_ob(ssz_transactions_bytes, raw), leafes + 96); if (!ssz_verify_multi_merkle_proof(proof.bytes, bytes(leafes, sizeof(leafes)), gindexes, root_hash)) RETURN_VERIFY_ERROR(ctx, "invalid tx proof, missing nodes!"); if (memcmp(root_hash, body_root, 32) != 0) RETURN_VERIFY_ERROR(ctx, "invalid tx proof, body root mismatch!"); return true; }
O0
c
verify_merkle_proof: pushq %rbp movq %rsp, %rbp subq $0x150, %rsp # imm = 0x150 movq 0x40(%rbp), %rax movq 0x38(%rbp), %rax leaq 0x28(%rbp), %rax movq %rax, -0x138(%rbp) leaq 0x10(%rbp), %rax movq %rax, -0x130(%rbp) movl %esi, -0x18(%rbp) movq %rdx, -0x10(%rbp) movl %ecx, -0x28(%rbp) movq %r8, -0x20(%rbp) movq %rdi, -0x30(%rbp) movl %r9d, -0x34(%rbp) leaq -0xc0(%rbp), %rdi xorl %esi, %esi movl $0x80, %edx callq 0x231c0 leaq -0xe0(%rbp), %rdi xorl %esi, %esi movl $0x20, %edx callq 0x231c0 movq $0x326, -0x100(%rbp) # imm = 0x326 movq $0x32c, -0xf8(%rbp) # imm = 0x32C movq $0x323, -0xf0(%rbp) # imm = 0x323 movl -0x34(%rbp), %eax addq $0x65a00000, %rax # imm = 0x65A00000 movq %rax, -0xe8(%rbp) leaq -0xc0(%rbp), %rdi movq -0x20(%rbp), %rsi movl -0x28(%rbp), %eax movl %eax, %edx callq 0x230a0 leaq -0xc0(%rbp), %rdi addq $0x20, %rdi movq -0x10(%rbp), %rsi movl -0x18(%rbp), %eax movl %eax, %edx callq 0x230a0 movq -0x138(%rbp), %rax movq 0x38(%rbp), %rcx movq (%rcx), %rdx movq %rdx, -0x80(%rbp) movq 0x8(%rcx), %rdx movq %rdx, -0x78(%rbp) movq 0x10(%rcx), %rdx movq %rdx, -0x70(%rbp) movq 0x18(%rcx), %rcx movq %rcx, -0x68(%rbp) movq (%rax), %rcx movq %rcx, -0x118(%rbp) movq 0x8(%rax), %rax movq %rax, -0x110(%rbp) leaq 0xf9446(%rip), %rax # 0x124ac0 movq %rax, -0x108(%rbp) leaq -0xc0(%rbp), %rdi addq $0x60, %rdi leaq -0x118(%rbp), %rax movq (%rax), %rcx movq %rcx, (%rsp) movq 0x8(%rax), %rcx movq %rcx, 0x8(%rsp) movq 0x10(%rax), %rax movq %rax, 0x10(%rsp) callq 0xa20a0 movq -0x130(%rbp), %rax movl $0x80, -0x128(%rbp) leaq -0xc0(%rbp), %rcx movq %rcx, -0x120(%rbp) leaq -0x100(%rbp), %r8 leaq -0xe0(%rbp), %r9 movl (%rax), %edi movq 0x8(%rax), %rsi movl -0x128(%rbp), %edx movq -0x120(%rbp), %rcx callq 0xa2710 testb $0x1, %al jne 0x2b71e jmp 0x2b6fc movq -0x30(%rbp), %rdi addq $0x70, %rdi leaq 0xb1ce1(%rip), %rsi # 0xdd3ec callq 0xa79c0 movq -0x30(%rbp), %rax movb $0x0, 0x68(%rax) movb $0x0, -0x1(%rbp) jmp 0x2b760 leaq -0xe0(%rbp), %rdi movq 0x40(%rbp), %rsi movl $0x20, %edx callq 0x23540 cmpl $0x0, %eax je 0x2b75c jmp 0x2b73a movq -0x30(%rbp), %rdi addq $0x70, %rdi leaq 0xb1cc4(%rip), %rsi # 0xdd40d callq 0xa79c0 movq -0x30(%rbp), %rax movb $0x0, 0x68(%rax) movb $0x0, -0x1(%rbp) jmp 0x2b760 movb $0x1, -0x1(%rbp) movb -0x1(%rbp), %al andb $0x1, %al addq $0x150, %rsp # imm = 0x150 popq %rbp retq nop
verify_merkle_proof_0: push rbp mov rbp, rsp sub rsp, 150h mov rax, [rbp+arg_30] mov rax, [rbp+arg_28] lea rax, [rbp+arg_18] mov [rbp+var_138], rax lea rax, [rbp+arg_0] mov [rbp+var_130], rax mov [rbp+var_18], esi mov [rbp+var_10], rdx mov [rbp+var_28], ecx mov [rbp+var_20], r8 mov [rbp+var_30], rdi mov [rbp+var_34], r9d lea rdi, [rbp+var_C0] xor esi, esi mov edx, 80h call _memset lea rdi, [rbp+var_E0] xor esi, esi mov edx, 20h ; ' ' call _memset mov [rbp+var_100], 326h mov [rbp+var_F8], 32Ch mov [rbp+var_F0], 323h mov eax, [rbp+var_34] add rax, 65A00000h mov [rbp+var_E8], rax lea rdi, [rbp+var_C0] mov rsi, [rbp+var_20] mov eax, [rbp+var_28] mov edx, eax call _memcpy lea rdi, [rbp+var_C0] add rdi, 20h ; ' ' mov rsi, [rbp+var_10] mov eax, [rbp+var_18] mov edx, eax call _memcpy mov rax, [rbp+var_138] mov rcx, [rbp+arg_28] mov rdx, [rcx] mov [rbp+var_80], rdx mov rdx, [rcx+8] mov [rbp+var_78], rdx mov rdx, [rcx+10h] mov [rbp+var_70], rdx mov rcx, [rcx+18h] mov [rbp+var_68], rcx mov rcx, [rax] mov [rbp+var_118], rcx mov rax, [rax+8] mov [rbp+var_110], rax lea rax, ssz_transactions_bytes mov [rbp+var_108], rax lea rdi, [rbp+var_C0] add rdi, 60h ; '`' lea rax, [rbp+var_118] mov rcx, [rax] mov [rsp+150h+var_150], rcx mov rcx, [rax+8] mov [rsp+150h+var_148], rcx mov rax, [rax+10h] mov [rsp+150h+var_140], rax call ssz_hash_tree_root mov rax, [rbp+var_130] mov [rbp+var_128], 80h lea rcx, [rbp+var_C0] mov [rbp+var_120], rcx lea r8, [rbp+var_100] lea r9, [rbp+var_E0] mov edi, [rax] mov rsi, [rax+8] mov edx, [rbp+var_128] mov rcx, [rbp+var_120] call ssz_verify_multi_merkle_proof test al, 1 jnz short loc_2B71E jmp short $+2 loc_2B6FC: mov rdi, [rbp+var_30] add rdi, 70h ; 'p' lea rsi, aInvalidTxProof_0; "invalid tx proof, missing nodes!" call c4_state_add_error mov rax, [rbp+var_30] mov byte ptr [rax+68h], 0 mov [rbp+var_1], 0 jmp short loc_2B760 loc_2B71E: lea rdi, [rbp+var_E0] mov rsi, [rbp+arg_30] mov edx, 20h ; ' ' call _memcmp cmp eax, 0 jz short loc_2B75C jmp short $+2 loc_2B73A: mov rdi, [rbp+var_30] add rdi, 70h ; 'p' lea rsi, aInvalidTxProof_1; "invalid tx proof, body root mismatch!" call c4_state_add_error mov rax, [rbp+var_30] mov byte ptr [rax+68h], 0 mov [rbp+var_1], 0 jmp short loc_2B760 loc_2B75C: mov [rbp+var_1], 1 loc_2B760: mov al, [rbp+var_1] and al, 1 add rsp, 150h pop rbp retn
char verify_merkle_proof_0( long long a1, unsigned int a2, long long a3, unsigned int a4, long long a5, unsigned int a6, unsigned int a7, long long a8, int a9, long long a10, long long a11, _QWORD *a12, long long a13) { int v13; // esi int v14; // r8d int v15; // r9d _QWORD v17[4]; // [rsp+50h] [rbp-100h] BYREF _BYTE v18[32]; // [rsp+70h] [rbp-E0h] BYREF _BYTE v19[32]; // [rsp+90h] [rbp-C0h] BYREF _QWORD v20[6]; // [rsp+B0h] [rbp-A0h] BYREF long long v21; // [rsp+E0h] [rbp-70h] long long v22; // [rsp+E8h] [rbp-68h] long long v23; // [rsp+F0h] [rbp-60h] BYREF unsigned int v24; // [rsp+11Ch] [rbp-34h] long long v25; // [rsp+120h] [rbp-30h] unsigned int v26; // [rsp+128h] [rbp-28h] long long v27; // [rsp+130h] [rbp-20h] unsigned int v28; // [rsp+138h] [rbp-18h] long long v29; // [rsp+140h] [rbp-10h] v28 = a2; v29 = a3; v26 = a4; v27 = a5; v25 = a1; v24 = a6; memset(v19, 0LL, 128LL); memset(v18, 0LL, sizeof(v18)); v17[0] = 806LL; v17[1] = 812LL; v17[2] = 803LL; v17[3] = v24 + 1704984576LL; memcpy(v19, v27, v26); v13 = v29; memcpy(v20, v29, v28); v20[4] = *a12; v20[5] = a12[1]; v21 = a12[2]; v22 = a12[3]; ssz_hash_tree_root((unsigned int)&v23, v13, v21, a11, v14, v15, a10, a11, &ssz_transactions_bytes); if ( (ssz_verify_multi_merkle_proof(a7, a8, 128LL, v19, v17, v18) & 1) != 0 ) { if ( !(unsigned int)memcmp(v18, a13, 32LL) ) { return 1; } else { c4_state_add_error(v25 + 112, "invalid tx proof, body root mismatch!"); *(_BYTE *)(v25 + 104) = 0; return 0; } } else { c4_state_add_error(v25 + 112, "invalid tx proof, missing nodes!"); *(_BYTE *)(v25 + 104) = 0; return 0; } }
verify_merkle_proof: PUSH RBP MOV RBP,RSP SUB RSP,0x150 MOV RAX,qword ptr [RBP + 0x40] MOV RAX,qword ptr [RBP + 0x38] LEA RAX,[RBP + 0x28] MOV qword ptr [RBP + -0x138],RAX LEA RAX,[RBP + 0x10] MOV qword ptr [RBP + -0x130],RAX MOV dword ptr [RBP + -0x18],ESI MOV qword ptr [RBP + -0x10],RDX MOV dword ptr [RBP + -0x28],ECX MOV qword ptr [RBP + -0x20],R8 MOV qword ptr [RBP + -0x30],RDI MOV dword ptr [RBP + -0x34],R9D LEA RDI,[RBP + -0xc0] XOR ESI,ESI MOV EDX,0x80 CALL 0x001231c0 LEA RDI,[RBP + -0xe0] XOR ESI,ESI MOV EDX,0x20 CALL 0x001231c0 MOV qword ptr [RBP + -0x100],0x326 MOV qword ptr [RBP + -0xf8],0x32c MOV qword ptr [RBP + -0xf0],0x323 MOV EAX,dword ptr [RBP + -0x34] ADD RAX,0x65a00000 MOV qword ptr [RBP + -0xe8],RAX LEA RDI,[RBP + -0xc0] MOV RSI,qword ptr [RBP + -0x20] MOV EAX,dword ptr [RBP + -0x28] MOV EDX,EAX CALL 0x001230a0 LEA RDI,[RBP + -0xc0] ADD RDI,0x20 MOV RSI,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RBP + -0x18] MOV EDX,EAX CALL 0x001230a0 MOV RAX,qword ptr [RBP + -0x138] MOV RCX,qword ptr [RBP + 0x38] MOV RDX,qword ptr [RCX] MOV qword ptr [RBP + -0x80],RDX MOV RDX,qword ptr [RCX + 0x8] MOV qword ptr [RBP + -0x78],RDX MOV RDX,qword ptr [RCX + 0x10] MOV qword ptr [RBP + -0x70],RDX MOV RCX,qword ptr [RCX + 0x18] MOV qword ptr [RBP + -0x68],RCX MOV RCX,qword ptr [RAX] MOV qword ptr [RBP + -0x118],RCX MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [RBP + -0x110],RAX LEA RAX,[0x224ac0] MOV qword ptr [RBP + -0x108],RAX LEA RDI,[RBP + -0xc0] ADD RDI,0x60 LEA RAX,[RBP + -0x118] MOV RCX,qword ptr [RAX] MOV qword ptr [RSP],RCX MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RCX MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x10],RAX CALL 0x001a20a0 MOV RAX,qword ptr [RBP + -0x130] MOV dword ptr [RBP + -0x128],0x80 LEA RCX,[RBP + -0xc0] MOV qword ptr [RBP + -0x120],RCX LEA R8,[RBP + -0x100] LEA R9,[RBP + -0xe0] MOV EDI,dword ptr [RAX] MOV RSI,qword ptr [RAX + 0x8] MOV EDX,dword ptr [RBP + -0x128] MOV RCX,qword ptr [RBP + -0x120] CALL 0x001a2710 TEST AL,0x1 JNZ 0x0012b71e JMP 0x0012b6fc LAB_0012b6fc: MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0x70 LEA RSI,[0x1dd3ec] CALL 0x001a79c0 MOV RAX,qword ptr [RBP + -0x30] MOV byte ptr [RAX + 0x68],0x0 MOV byte ptr [RBP + -0x1],0x0 JMP 0x0012b760 LAB_0012b71e: LEA RDI,[RBP + -0xe0] MOV RSI,qword ptr [RBP + 0x40] MOV EDX,0x20 CALL 0x00123540 CMP EAX,0x0 JZ 0x0012b75c JMP 0x0012b73a LAB_0012b73a: MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0x70 LEA RSI,[0x1dd40d] CALL 0x001a79c0 MOV RAX,qword ptr [RBP + -0x30] MOV byte ptr [RAX + 0x68],0x0 MOV byte ptr [RBP + -0x1],0x0 JMP 0x0012b760 LAB_0012b75c: MOV byte ptr [RBP + -0x1],0x1 LAB_0012b760: MOV AL,byte ptr [RBP + -0x1] AND AL,0x1 ADD RSP,0x150 POP RBP RET
int1 verify_merkle_proof(long param_1,uint param_2,void *param_3,uint param_4,void *param_5,uint param_6, int4 param_7,int8 param_8,int8 param_9,int8 param_10, int8 param_11,int8 *param_12,void *param_13) { int iVar1; ulong uVar2; int1 *puVar3; int8 local_108; int8 local_100; int8 local_f8; long local_f0; int1 local_e8 [32]; int1 local_c8 [32]; int1 auStack_a8 [32]; int8 local_88; int8 local_80; int8 local_78; int8 local_70; int1 auStack_68 [44]; uint local_3c; long local_38; uint local_30; void *local_28; uint local_20; void *local_18; int1 local_9; local_3c = param_6; local_38 = param_1; local_30 = param_4; local_28 = param_5; local_20 = param_2; local_18 = param_3; memset(local_c8,0,0x80); memset(local_e8,0,0x20); local_108 = 0x326; local_100 = 0x32c; local_f8 = 0x323; local_f0 = (ulong)local_3c + 0x65a00000; memcpy(local_c8,local_28,(ulong)local_30); memcpy(auStack_a8,local_18,(ulong)local_20); local_88 = *param_12; local_80 = param_12[1]; local_78 = param_12[2]; local_70 = param_12[3]; puVar3 = ssz_transactions_bytes; ssz_hash_tree_root(auStack_68); uVar2 = ssz_verify_multi_merkle_proof (param_7,param_8,0x80,local_c8,&local_108,local_e8,param_10,param_11,puVar3); if ((uVar2 & 1) == 0) { c4_state_add_error(local_38 + 0x70,"invalid tx proof, missing nodes!"); *(int1 *)(local_38 + 0x68) = 0; local_9 = 0; } else { iVar1 = memcmp(local_e8,param_13,0x20); if (iVar1 == 0) { local_9 = 1; } else { c4_state_add_error(local_38 + 0x70,"invalid tx proof, body root mismatch!"); *(int1 *)(local_38 + 0x68) = 0; local_9 = 0; } } return local_9; }
6,211
PycDict::load(PycData*, PycModule*)
Pyarmor-Static-Unpack-1shot/pyc_sequence.cpp
void PycDict::load(PycData* stream, PycModule* mod) { PycRef<PycObject> key, val; for (;;) { key = LoadObject(stream, mod); if (key == NULL) break; val = LoadObject(stream, mod); m_values.emplace_back(std::make_tuple(key, val)); } }
O3
cpp
PycDict::load(PycData*, PycModule*): pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdx, %r15 movq %rsi, %r12 addq $0x10, %rdi movq %rdi, -0x40(%rbp) xorl %ebx, %ebx leaq -0x38(%rbp), %r13 xorl %r14d, %r14d movq %r13, %rdi movq %r12, %rsi movq %r15, %rdx callq 0x32f4c movq -0x38(%rbp), %rbx testq %rbx, %rbx je 0x3353d movq %r13, %rdi movq %r12, %rsi movq %r15, %rdx callq 0x32f4c movq -0x38(%rbp), %r14 movq %r14, -0x38(%rbp) testq %r14, %r14 je 0x33500 incl 0x8(%r14) movq %rbx, -0x30(%rbp) incl 0x8(%rbx) movq -0x40(%rbp), %rdi movq %r13, %rsi callq 0x337e8 movq -0x30(%rbp), %rdi testq %rdi, %rdi je 0x33527 decl 0x8(%rdi) jne 0x33527 movq (%rdi), %rax callq *0x8(%rax) movq -0x38(%rbp), %rdi testq %rdi, %rdi je 0x334ca decl 0x8(%rdi) jne 0x334ca movq (%rdi), %rax callq *0x8(%rax) jmp 0x334ca testq %r14, %r14 je 0x33551 decl 0x8(%r14) jne 0x33551 movq (%r14), %rax movq %r14, %rdi callq *0x8(%rax) addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x33570 movq %rax, %r15 leaq -0x38(%rbp), %rdi callq 0x33820 jmp 0x33573 movq %rax, %r15 testq %r14, %r14 je 0x33587 decl 0x8(%r14) jne 0x33587 movq (%r14), %rax movq %r14, %rdi callq *0x8(%rax) testq %rbx, %rbx je 0x3359a decl 0x8(%rbx) jne 0x3359a movq (%rbx), %rax movq %rbx, %rdi callq *0x8(%rax) movq %r15, %rdi callq 0x7450
_ZN7PycDict4loadEP7PycDataP9PycModule: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r15, rdx mov r12, rsi add rdi, 10h mov [rbp+var_40], rdi xor ebx, ebx lea r13, [rbp+var_38] xor r14d, r14d loc_334CA: mov rdi, r13; PycData * mov rsi, r12; PycModule * mov rdx, r15 call _Z10LoadObjectP7PycDataP9PycModule; LoadObject(PycData *,PycModule *) mov rbx, [rbp+var_38] test rbx, rbx jz short loc_3353D mov rdi, r13; PycData * mov rsi, r12; PycModule * mov rdx, r15 call _Z10LoadObjectP7PycDataP9PycModule; LoadObject(PycData *,PycModule *) mov r14, [rbp+var_38] mov [rbp+var_38], r14 test r14, r14 jz short loc_33500 inc dword ptr [r14+8] loc_33500: mov [rbp+var_30], rbx inc dword ptr [rbx+8] mov rdi, [rbp+var_40] mov rsi, r13 call _ZNSt6vectorISt5tupleIJ6PycRefI9PycObjectES3_EESaIS4_EE12emplace_backIJS4_EEEvDpOT_; std::vector<std::tuple<PycRef<PycObject>,PycRef<PycObject>>>::emplace_back<std::tuple<PycRef<PycObject>,PycRef<PycObject>>>(std::tuple<PycRef<PycObject>,PycRef<PycObject>> &&) mov rdi, [rbp+var_30] test rdi, rdi jz short loc_33527 dec dword ptr [rdi+8] jnz short loc_33527 mov rax, [rdi] call qword ptr [rax+8] loc_33527: mov rdi, [rbp+var_38] test rdi, rdi jz short loc_334CA dec dword ptr [rdi+8] jnz short loc_334CA mov rax, [rdi] call qword ptr [rax+8] jmp short loc_334CA loc_3353D: test r14, r14 jz short loc_33551 dec dword ptr [r14+8] jnz short loc_33551 mov rax, [r14] mov rdi, r14 call qword ptr [rax+8] loc_33551: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_33570 mov r15, rax lea rdi, [rbp+var_38] call _ZNSt11_Tuple_implILm0EJ6PycRefI9PycObjectES2_EED2Ev; std::_Tuple_impl<0ul,PycRef<PycObject>,PycRef<PycObject>>::~_Tuple_impl() jmp short loc_33573 loc_33570: mov r15, rax loc_33573: test r14, r14 jz short loc_33587 dec dword ptr [r14+8] jnz short loc_33587 mov rax, [r14] mov rdi, r14 call qword ptr [rax+8] loc_33587: test rbx, rbx jz short loc_3359A dec dword ptr [rbx+8] jnz short loc_3359A mov rax, [rbx] mov rdi, rbx call qword ptr [rax+8] loc_3359A: mov rdi, r15 call __Unwind_Resume
PycData * PycDict::load(PycDict *this, PycData *a2, PycModule *a3) { _DWORD *v4; // r14 PycData *result; // rax _DWORD *v6; // rbx _DWORD *v7; // rdi bool v8; // zf _DWORD *v9; // rdi char *v10; // [rsp+0h] [rbp-40h] _DWORD *v11; // [rsp+8h] [rbp-38h] BYREF _DWORD *v12; // [rsp+10h] [rbp-30h] v10 = (char *)this + 16; v4 = 0LL; while ( 1 ) { result = LoadObject((PycData *)&v11, a2, (long long)a3); v6 = v11; if ( !v11 ) break; LoadObject((PycData *)&v11, a2, (long long)a3); v4 = v11; if ( v11 ) ++v11[2]; v12 = v6; ++v6[2]; std::vector<std::tuple<PycRef<PycObject>,PycRef<PycObject>>>::emplace_back<std::tuple<PycRef<PycObject>,PycRef<PycObject>>>( v10, &v11); v7 = v12; if ( v12 ) { v8 = v12[2]-- == 1; if ( v8 ) (*(void ( **)(_DWORD *))(*(_QWORD *)v7 + 8LL))(v7); } v9 = v11; if ( v11 ) { v8 = v11[2]-- == 1; if ( v8 ) (*(void ( **)(_DWORD *))(*(_QWORD *)v9 + 8LL))(v9); } } if ( v4 ) { v8 = v4[2]-- == 1; if ( v8 ) return (PycData *)(*(long long ( **)(_DWORD *))(*(_QWORD *)v4 + 8LL))(v4); } return result; }
load: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R15,RDX MOV R12,RSI ADD RDI,0x10 MOV qword ptr [RBP + -0x40],RDI XOR EBX,EBX LEA R13,[RBP + -0x38] XOR R14D,R14D LAB_001334ca: MOV RDI,R13 MOV RSI,R12 MOV RDX,R15 CALL 0x00132f4c MOV RBX,qword ptr [RBP + -0x38] TEST RBX,RBX JZ 0x0013353d LAB_001334e1: MOV RDI,R13 MOV RSI,R12 MOV RDX,R15 CALL 0x00132f4c MOV R14,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x38],R14 TEST R14,R14 JZ 0x00133500 INC dword ptr [R14 + 0x8] LAB_00133500: MOV qword ptr [RBP + -0x30],RBX INC dword ptr [RBX + 0x8] LAB_00133507: MOV RDI,qword ptr [RBP + -0x40] MOV RSI,R13 CALL 0x001337e8 LAB_00133513: MOV RDI,qword ptr [RBP + -0x30] TEST RDI,RDI JZ 0x00133527 DEC dword ptr [RDI + 0x8] JNZ 0x00133527 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] LAB_00133527: MOV RDI,qword ptr [RBP + -0x38] TEST RDI,RDI JZ 0x001334ca DEC dword ptr [RDI + 0x8] JNZ 0x001334ca MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x8] JMP 0x001334ca LAB_0013353d: TEST R14,R14 JZ 0x00133551 DEC dword ptr [R14 + 0x8] JNZ 0x00133551 MOV RAX,qword ptr [R14] MOV RDI,R14 CALL qword ptr [RAX + 0x8] LAB_00133551: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* PycDict::load(PycData*, PycModule*) */ void PycDict::load(PycData *param_1,PycModule *param_2) { long *plVar1; long *plVar2; long *local_40; long *local_38; plVar2 = (long *)0x0; while( true ) { /* try { // try from 001334ca to 001334d7 has its CatchHandler @ 00133570 */ LoadObject((PycData *)&local_40,param_2); plVar1 = local_40; if (local_40 == (long *)0x0) break; /* try { // try from 001334e1 to 001334ee has its CatchHandler @ 00133560 */ LoadObject((PycData *)&local_40,param_2); plVar2 = local_40; if (local_40 != (long *)0x0) { *(int *)(local_40 + 1) = (int)local_40[1] + 1; } local_38 = plVar1; plVar1 = plVar1 + 1; *(int *)plVar1 = (int)*plVar1 + 1; /* try { // try from 00133507 to 00133512 has its CatchHandler @ 00133562 */ std:: vector<std::tuple<PycRef<PycObject>,PycRef<PycObject>>,std::allocator<std::tuple<PycRef<PycObject>,PycRef<PycObject>>>> ::emplace_back<std::tuple<PycRef<PycObject>,PycRef<PycObject>>> ((vector<std::tuple<PycRef<PycObject>,PycRef<PycObject>>,std::allocator<std::tuple<PycRef<PycObject>,PycRef<PycObject>>>> *)(param_1 + 0x10),(tuple *)&local_40); if (local_38 != (long *)0x0) { plVar1 = local_38 + 1; *(int *)plVar1 = (int)*plVar1 + -1; if ((int)*plVar1 == 0) { (**(code **)(*local_38 + 8))(); } } if (local_40 != (long *)0x0) { plVar1 = local_40 + 1; *(int *)plVar1 = (int)*plVar1 + -1; if ((int)*plVar1 == 0) { (**(code **)(*local_40 + 8))(); } } } if (plVar2 != (long *)0x0) { plVar1 = plVar2 + 1; *(int *)plVar1 = (int)*plVar1 + -1; if ((int)*plVar1 == 0) { (**(code **)(*plVar2 + 8))(plVar2); } } return; }
6,212
check_and_set_lsn
eloqsql/storage/maria/ma_pagecache.c
static void check_and_set_lsn(PAGECACHE *pagecache, LSN lsn, PAGECACHE_BLOCK_LINK *block) { LSN old; DBUG_ENTER("check_and_set_lsn"); /* In recovery, we can _ma_unpin_all_pages() to put a LSN on page, though page would be PAGECACHE_PLAIN_PAGE (transactionality temporarily disabled to not log REDOs). */ DBUG_ASSERT((block->type == PAGECACHE_LSN_PAGE) || maria_in_recovery); old= lsn_korr(block->buffer); DBUG_PRINT("info", ("old lsn: " LSN_FMT " new lsn: " LSN_FMT, LSN_IN_PARTS(old), LSN_IN_PARTS(lsn))); if (cmp_translog_addr(lsn, old) > 0) { DBUG_ASSERT(block->type != PAGECACHE_READ_UNKNOWN_PAGE); lsn_store(block->buffer, lsn); /* we stored LSN in page so we dirtied it */ if (!(block->status & PCBLOCK_CHANGED)) link_to_changed_list(pagecache, block); } DBUG_VOID_RETURN; }
O3
c
check_and_set_lsn: pushq %rbp movq %rsp, %rbp movq 0x30(%rdx), %rax movzwl (%rax), %ecx shlq $0x20, %rcx movzbl 0x2(%rax), %r8d shlq $0x30, %r8 orq %rcx, %r8 movl 0x3(%rax), %ecx orq %r8, %rcx cmpq %rsi, %rcx jge 0x3d945 movq %rsi, %rcx shrq $0x20, %rcx movb %cl, (%rax) movq %rsi, %rax shrq $0x28, %rax movq 0x30(%rdx), %rcx movb %al, 0x1(%rcx) movq %rsi, %rax shrq $0x30, %rax movq 0x30(%rdx), %rcx movb %al, 0x2(%rcx) movq 0x30(%rdx), %rax movl %esi, 0x3(%rax) testb $0x20, 0x74(%rdx) jne 0x3d945 leaq 0x10(%rdx), %rax movq 0x10(%rdx), %rsi movq 0x18(%rdx), %rcx testq %rsi, %rsi je 0x3d900 movq %rcx, 0x18(%rsi) movq (%rax), %rsi jmp 0x3d902 xorl %esi, %esi movq %rsi, (%rcx) movq 0x128(%rdi), %rcx movq 0x20(%rdx), %rsi movl 0x28(%rdi), %r8d decl %r8d andl 0x28(%rsi), %r8d leaq (%rcx,%r8,8), %rcx movq %rcx, 0x18(%rdx) movq (%rcx), %rsi movq %rsi, 0x10(%rdx) testq %rsi, %rsi je 0x3d933 movq %rax, 0x18(%rsi) movq %rdx, (%rcx) orb $0x20, 0x74(%rdx) incq 0x58(%rdi) incq 0x168(%rdi) popq %rbp retq
check_and_set_lsn: push rbp mov rbp, rsp mov rax, [rdx+30h] movzx ecx, word ptr [rax] shl rcx, 20h movzx r8d, byte ptr [rax+2] shl r8, 30h or r8, rcx mov ecx, [rax+3] or rcx, r8 cmp rcx, rsi jge loc_3D945 mov rcx, rsi shr rcx, 20h mov [rax], cl mov rax, rsi shr rax, 28h mov rcx, [rdx+30h] mov [rcx+1], al mov rax, rsi shr rax, 30h mov rcx, [rdx+30h] mov [rcx+2], al mov rax, [rdx+30h] mov [rax+3], esi test byte ptr [rdx+74h], 20h jnz short loc_3D945 lea rax, [rdx+10h] mov rsi, [rdx+10h] mov rcx, [rdx+18h] test rsi, rsi jz short loc_3D900 mov [rsi+18h], rcx mov rsi, [rax] jmp short loc_3D902 loc_3D900: xor esi, esi loc_3D902: mov [rcx], rsi mov rcx, [rdi+128h] mov rsi, [rdx+20h] mov r8d, [rdi+28h] dec r8d and r8d, [rsi+28h] lea rcx, [rcx+r8*8] mov [rdx+18h], rcx mov rsi, [rcx] mov [rdx+10h], rsi test rsi, rsi jz short loc_3D933 mov [rsi+18h], rax loc_3D933: mov [rcx], rdx or byte ptr [rdx+74h], 20h inc qword ptr [rdi+58h] inc qword ptr [rdi+168h] loc_3D945: pop rbp retn
unsigned __int16 * check_and_set_lsn(long long a1, signed long long a2, long long a3) { unsigned __int16 *result; // rax long long v4; // rsi _QWORD *v5; // rcx long long v6; // rsi long long *v7; // rcx long long v8; // rsi result = *(unsigned __int16 **)(a3 + 48); if ( (long long)(((unsigned long long)*result << 32) | ((unsigned long long)*((unsigned __int8 *)result + 2) << 48) | *(unsigned int *)((char *)result + 3)) < a2 ) { *(_BYTE *)result = BYTE4(a2); *(_BYTE *)(*(_QWORD *)(a3 + 48) + 1LL) = BYTE5(a2); *(_BYTE *)(*(_QWORD *)(a3 + 48) + 2LL) = BYTE6(a2); result = *(unsigned __int16 **)(a3 + 48); *(_DWORD *)((char *)result + 3) = a2; if ( (*(_BYTE *)(a3 + 116) & 0x20) == 0 ) { result = (unsigned __int16 *)(a3 + 16); v4 = *(_QWORD *)(a3 + 16); v5 = *(_QWORD **)(a3 + 24); if ( v4 ) { *(_QWORD *)(v4 + 24) = v5; v6 = *(_QWORD *)result; } else { v6 = 0LL; } *v5 = v6; v7 = (long long *)(*(_QWORD *)(a1 + 296) + 8LL * (*(_DWORD *)(*(_QWORD *)(a3 + 32) + 40LL) & (unsigned int)(*(_DWORD *)(a1 + 40) - 1))); *(_QWORD *)(a3 + 24) = v7; v8 = *v7; *(_QWORD *)(a3 + 16) = *v7; if ( v8 ) *(_QWORD *)(v8 + 24) = result; *v7 = a3; *(_BYTE *)(a3 + 116) |= 0x20u; ++*(_QWORD *)(a1 + 88); ++*(_QWORD *)(a1 + 360); } } return result; }
check_and_set_lsn: PUSH RBP MOV RBP,RSP MOV RAX,qword ptr [RDX + 0x30] MOVZX ECX,word ptr [RAX] SHL RCX,0x20 MOVZX R8D,byte ptr [RAX + 0x2] SHL R8,0x30 OR R8,RCX MOV ECX,dword ptr [RAX + 0x3] OR RCX,R8 CMP RCX,RSI JGE 0x0013d945 MOV RCX,RSI SHR RCX,0x20 MOV byte ptr [RAX],CL MOV RAX,RSI SHR RAX,0x28 MOV RCX,qword ptr [RDX + 0x30] MOV byte ptr [RCX + 0x1],AL MOV RAX,RSI SHR RAX,0x30 MOV RCX,qword ptr [RDX + 0x30] MOV byte ptr [RCX + 0x2],AL MOV RAX,qword ptr [RDX + 0x30] MOV dword ptr [RAX + 0x3],ESI TEST byte ptr [RDX + 0x74],0x20 JNZ 0x0013d945 LEA RAX,[RDX + 0x10] MOV RSI,qword ptr [RDX + 0x10] MOV RCX,qword ptr [RDX + 0x18] TEST RSI,RSI JZ 0x0013d900 MOV qword ptr [RSI + 0x18],RCX MOV RSI,qword ptr [RAX] JMP 0x0013d902 LAB_0013d900: XOR ESI,ESI LAB_0013d902: MOV qword ptr [RCX],RSI MOV RCX,qword ptr [RDI + 0x128] MOV RSI,qword ptr [RDX + 0x20] MOV R8D,dword ptr [RDI + 0x28] DEC R8D AND R8D,dword ptr [RSI + 0x28] LEA RCX,[RCX + R8*0x8] MOV qword ptr [RDX + 0x18],RCX MOV RSI,qword ptr [RCX] MOV qword ptr [RDX + 0x10],RSI TEST RSI,RSI JZ 0x0013d933 MOV qword ptr [RSI + 0x18],RAX LAB_0013d933: MOV qword ptr [RCX],RDX OR byte ptr [RDX + 0x74],0x20 INC qword ptr [RDI + 0x58] INC qword ptr [RDI + 0x168] LAB_0013d945: POP RBP RET
void check_and_set_lsn(long param_1,long param_2,long param_3) { long *plVar1; ushort *puVar2; int8 *puVar3; long lVar4; int8 uVar5; puVar2 = *(ushort **)(param_3 + 0x30); if ((long)((ulong)*(uint *)((long)puVar2 + 3) | (ulong)(byte)puVar2[1] << 0x30 | (ulong)*puVar2 << 0x20) < param_2) { *(char *)puVar2 = (char)((ulong)param_2 >> 0x20); *(char *)(*(long *)(param_3 + 0x30) + 1) = (char)((ulong)param_2 >> 0x28); *(char *)(*(long *)(param_3 + 0x30) + 2) = (char)((ulong)param_2 >> 0x30); *(int *)(*(long *)(param_3 + 0x30) + 3) = (int)param_2; if ((*(byte *)(param_3 + 0x74) & 0x20) == 0) { puVar3 = *(int8 **)(param_3 + 0x18); if (*(long *)(param_3 + 0x10) == 0) { uVar5 = 0; } else { *(int8 **)(*(long *)(param_3 + 0x10) + 0x18) = puVar3; uVar5 = *(int8 *)(param_3 + 0x10); } *puVar3 = uVar5; plVar1 = (long *)(*(long *)(param_1 + 0x128) + (ulong)(*(int *)(param_1 + 0x28) - 1U & *(uint *)(*(long *)(param_3 + 0x20) + 0x28)) * 8); *(long **)(param_3 + 0x18) = plVar1; lVar4 = *plVar1; *(long *)(param_3 + 0x10) = lVar4; if (lVar4 != 0) { *(int8 **)(lVar4 + 0x18) = (int8 *)(param_3 + 0x10); } *plVar1 = param_3; *(byte *)(param_3 + 0x74) = *(byte *)(param_3 + 0x74) | 0x20; *(long *)(param_1 + 0x58) = *(long *)(param_1 + 0x58) + 1; *(long *)(param_1 + 0x168) = *(long *)(param_1 + 0x168) + 1; } } return; }
6,213
eth_ssz_type_for_denep
corpus-core[P]colibri-stateless/src/chains/eth/ssz/beacon_denep.c
const ssz_def_t* eth_ssz_type_for_denep(eth_ssz_type_t type) { switch (type) { #ifdef PROOFER case ETH_SSZ_SIGNED_BEACON_BLOCK_CONTAINER: return &SIGNED_BEACON_BLOCK_CONTAINER; case ETH_SSZ_BEACON_BLOCK_BODY_CONTAINER: return &BEACON_BLOCK_BODY_CONTAINER; case ETH_SSZ_BEACON_BLOCK_HEADER: return &BEACON_BLOCKHEADER_CONTAINER; #endif default: return eth_ssz_verification_type(type); } }
O0
c
eth_ssz_type_for_denep: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movl %edi, -0xc(%rbp) movl -0xc(%rbp), %eax movl %eax, -0x10(%rbp) subl $0x1, %eax je 0x16aac jmp 0x16a98 movl -0x10(%rbp), %eax subl $0x2, %eax je 0x16ab9 jmp 0x16aa2 movl -0x10(%rbp), %eax subl $0x3, %eax je 0x16ac6 jmp 0x16ad3 leaq 0x575ad(%rip), %rax # 0x6e060 movq %rax, -0x8(%rbp) jmp 0x16adf leaq 0x575c0(%rip), %rax # 0x6e080 movq %rax, -0x8(%rbp) jmp 0x16adf leaq 0x575d3(%rip), %rax # 0x6e0a0 movq %rax, -0x8(%rbp) jmp 0x16adf movl -0xc(%rbp), %edi callq 0x166f0 movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x10, %rsp popq %rbp retq nopl (%rax)
eth_ssz_type_for_denep: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_C], edi mov eax, [rbp+var_C] mov [rbp+var_10], eax sub eax, 1 jz short loc_16AAC jmp short $+2 loc_16A98: mov eax, [rbp+var_10] sub eax, 2 jz short loc_16AB9 jmp short $+2 loc_16AA2: mov eax, [rbp+var_10] sub eax, 3 jz short loc_16AC6 jmp short loc_16AD3 loc_16AAC: lea rax, SIGNED_BEACON_BLOCK_CONTAINER mov [rbp+var_8], rax jmp short loc_16ADF loc_16AB9: lea rax, BEACON_BLOCK_BODY_CONTAINER mov [rbp+var_8], rax jmp short loc_16ADF loc_16AC6: lea rax, BEACON_BLOCKHEADER_CONTAINER mov [rbp+var_8], rax jmp short loc_16ADF loc_16AD3: mov edi, [rbp+var_C] call eth_ssz_verification_type mov [rbp+var_8], rax loc_16ADF: mov rax, [rbp+var_8] add rsp, 10h pop rbp retn
char ** eth_ssz_type_for_denep(int a1) { switch ( a1 ) { case 1: return &SIGNED_BEACON_BLOCK_CONTAINER; case 2: return &BEACON_BLOCK_BODY_CONTAINER; case 3: return &BEACON_BLOCKHEADER_CONTAINER; } return eth_ssz_verification_type(a1); }
eth_ssz_type_for_denep: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV dword ptr [RBP + -0xc],EDI MOV EAX,dword ptr [RBP + -0xc] MOV dword ptr [RBP + -0x10],EAX SUB EAX,0x1 JZ 0x00116aac JMP 0x00116a98 LAB_00116a98: MOV EAX,dword ptr [RBP + -0x10] SUB EAX,0x2 JZ 0x00116ab9 JMP 0x00116aa2 LAB_00116aa2: MOV EAX,dword ptr [RBP + -0x10] SUB EAX,0x3 JZ 0x00116ac6 JMP 0x00116ad3 LAB_00116aac: LEA RAX,[0x16e060] MOV qword ptr [RBP + -0x8],RAX JMP 0x00116adf LAB_00116ab9: LEA RAX,[0x16e080] MOV qword ptr [RBP + -0x8],RAX JMP 0x00116adf LAB_00116ac6: LEA RAX,[0x16e0a0] MOV qword ptr [RBP + -0x8],RAX JMP 0x00116adf LAB_00116ad3: MOV EDI,dword ptr [RBP + -0xc] CALL 0x001166f0 MOV qword ptr [RBP + -0x8],RAX LAB_00116adf: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x10 POP RBP RET
int1 * eth_ssz_type_for_denep(int param_1) { int1 *local_10; if (param_1 == 1) { local_10 = SIGNED_BEACON_BLOCK_CONTAINER; } else if (param_1 == 2) { local_10 = BEACON_BLOCK_BODY_CONTAINER; } else if (param_1 == 3) { local_10 = BEACON_BLOCKHEADER_CONTAINER; } else { local_10 = (int1 *)eth_ssz_verification_type(param_1); } return local_10; }
6,214
eth_ssz_type_for_denep
corpus-core[P]colibri-stateless/src/chains/eth/ssz/beacon_denep.c
const ssz_def_t* eth_ssz_type_for_denep(eth_ssz_type_t type) { switch (type) { #ifdef PROOFER case ETH_SSZ_SIGNED_BEACON_BLOCK_CONTAINER: return &SIGNED_BEACON_BLOCK_CONTAINER; case ETH_SSZ_BEACON_BLOCK_BODY_CONTAINER: return &BEACON_BLOCK_BODY_CONTAINER; case ETH_SSZ_BEACON_BLOCK_HEADER: return &BEACON_BLOCKHEADER_CONTAINER; #endif default: return eth_ssz_verification_type(type); } }
O1
c
eth_ssz_type_for_denep: leal -0x1(%rdi), %eax cmpl $0x3, %eax jae 0x1160d movl %eax, %eax leaq 0x2d74f(%rip), %rcx # 0x3ed54 movslq (%rcx,%rax,4), %rax addq %rcx, %rax retq jmp 0x113d4 nop
eth_ssz_type_for_denep: lea eax, [rdi-1] cmp eax, 3 jnb short loc_1160D mov eax, eax lea rcx, unk_3ED54 movsxd rax, dword ptr [rcx+rax*4] add rax, rcx retn loc_1160D: jmp eth_ssz_verification_type
char ** eth_ssz_type_for_denep(int a1) { if ( (unsigned int)(a1 - 1) >= 3 ) return eth_ssz_verification_type(a1); else return (char **)((char *)dword_3ED54 + dword_3ED54[a1 - 1]); }
eth_ssz_type_for_denep: LEA EAX,[RDI + -0x1] CMP EAX,0x3 JNC 0x0011160d MOV EAX,EAX LEA RCX,[0x13ed54] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX RET LAB_0011160d: JMP 0x001113d4
int * eth_ssz_type_for_denep(int param_1) { int *puVar1; if (param_1 - 1U < 3) { return &DAT_0013ed54 + *(int *)(&DAT_0013ed54 + (ulong)(param_1 - 1U) * 4); } puVar1 = (int *)eth_ssz_verification_type(); return puVar1; }
6,215
nglog::LogMessage::~LogMessage()
ng-log[P]ng-log/src/logging.cc
LogMessage::~LogMessage() noexcept(false) { Flush(); bool fail = data_->severity_ == NGLOG_FATAL && exit_on_dfatal; #ifdef NGLOG_THREAD_LOCAL_STORAGE if (data_ == static_cast<void*>(&thread_msg_data)) { data_->~LogMessageData(); thread_data_available = true; } else { delete allocated_; } #else // !defined(NGLOG_THREAD_LOCAL_STORAGE) delete allocated_; #endif // defined(NGLOG_THREAD_LOCAL_STORAGE) // if (fail) { const char* message = "*** Check failure stack trace: ***\n"; if (write(fileno(stderr), message, strlen(message)) < 0) { // Ignore errors. } AlsoErrorWrite(NGLOG_FATAL, tools::ProgramInvocationShortName(), message); #if defined(__cpp_lib_uncaught_exceptions) && \ (__cpp_lib_uncaught_exceptions >= 201411L) if (std::uncaught_exceptions() == 0) #else if (!std::uncaught_exception()) #endif { Fail(); } } }
O2
cpp
nglog::LogMessage::~LogMessage(): pushq %rbp pushq %r14 pushq %rbx movq %rdi, %r14 callq 0xaf78 movq (%r14), %rbx movq 0x8(%r14), %rax cmpl $0x3, 0x7698(%rax) sete %bpl andb 0x25699(%rip), %bpl # 0x305a4 testq %rbx, %rbx je 0xaf1c leaq 0x7538(%rbx), %rdi callq 0x99ba movl $0x76f0, %esi # imm = 0x76F0 movq %rbx, %rdi callq 0x8aea testb %bpl, %bpl je 0xaf6d movq 0x25053(%rip), %rax # 0x2ff88 movq (%rax), %rdi callq 0x75d0 leaq 0x14af2(%rip), %rbx # 0x1fa36 pushq $0x23 popq %rdx movl %eax, %edi movq %rbx, %rsi callq 0x7190 callq 0x1d7f5 pushq $0x3 popq %rdi movq %rax, %rsi movq %rbx, %rdx callq 0x1d7d8 callq 0x76a0 testl %eax, %eax je 0xaf72 popq %rbx popq %r14 popq %rbp retq callq *0x25630(%rip) # 0x305a8
_ZN5nglog10LogMessageD2Ev: push rbp; Alternative name is 'nglog::LogMessage::~LogMessage()' push r14 push rbx mov r14, rdi call _ZN5nglog10LogMessage5FlushEv; nglog::LogMessage::Flush(void) mov rbx, [r14] mov rax, [r14+8] cmp dword ptr [rax+7698h], 3 setz bpl and bpl, cs:_ZN5nglogL14exit_on_dfatalE; nglog::exit_on_dfatal test rbx, rbx jz short loc_AF1C lea rdi, [rbx+7538h]; this call _ZN5nglog10LogMessage9LogStreamD1Ev; nglog::LogMessage::LogStream::~LogStream() loc_AF1C: mov esi, 76F0h; unsigned __int64 mov rdi, rbx; void * call _ZdlPvm; operator delete(void *,ulong) test bpl, bpl jz short loc_AF6D mov rax, cs:stderr_ptr mov rdi, [rax] call _fileno lea rbx, aCheckFailureSt; "*** Check failure stack trace: ***\n" push 23h ; '#' pop rdx mov edi, eax; this mov rsi, rbx call _write call _ZN5nglog5tools26ProgramInvocationShortNameEv; nglog::tools::ProgramInvocationShortName(void) push 3 pop rdi mov rsi, rax mov rdx, rbx call _ZN5nglog5tools14AlsoErrorWriteENS_11LogSeverityEPKcS3_; nglog::tools::AlsoErrorWrite(nglog::LogSeverity,char const*,char const*) call __ZSt19uncaught_exceptionsv; std::uncaught_exceptions(void) test eax, eax jz short loc_AF72 loc_AF6D: pop rbx pop r14 pop rbp retn loc_AF72: call cs:_ZN5nglog19g_logging_fail_funcE; nglog::g_logging_fail_func ...
void nglog::LogMessage::~LogMessage(nglog::LogMessage *this) { long long v1; // rbx char v2; // bp nglog::tools *v3; // rdi long long v4; // rax nglog::LogMessage::Flush(this); v1 = *(_QWORD *)this; v2 = nglog::exit_on_dfatal & (*(_DWORD *)(*((_QWORD *)this + 1) + 30360LL) == 3); if ( *(_QWORD *)this ) nglog::LogMessage::LogStream::~LogStream((nglog::LogMessage::LogStream *)(v1 + 30008)); operator delete((void *)v1); if ( v2 ) { v3 = (nglog::tools *)(unsigned int)fileno(stderr, 30448LL); write(v3, "*** Check failure stack trace: ***\n", 35LL); v4 = nglog::tools::ProgramInvocationShortName(v3); nglog::tools::AlsoErrorWrite(3LL, v4, "*** Check failure stack trace: ***\n"); if ( !(unsigned int)std::uncaught_exceptions() ) nglog::g_logging_fail_func(); } }
~LogMessage: PUSH RBP PUSH R14 PUSH RBX MOV R14,RDI CALL 0x0010af78 MOV RBX,qword ptr [R14] MOV RAX,qword ptr [R14 + 0x8] CMP dword ptr [RAX + 0x7698],0x3 SETZ BPL AND BPL,byte ptr [0x001305a4] TEST RBX,RBX JZ 0x0010af1c LEA RDI,[RBX + 0x7538] CALL 0x001099ba LAB_0010af1c: MOV ESI,0x76f0 MOV RDI,RBX CALL 0x00108aea TEST BPL,BPL JZ 0x0010af6d MOV RAX,qword ptr [0x0012ff88] MOV RDI,qword ptr [RAX] CALL 0x001075d0 LEA RBX,[0x11fa36] PUSH 0x23 POP RDX MOV EDI,EAX MOV RSI,RBX CALL 0x00107190 CALL 0x0011d7f5 PUSH 0x3 POP RDI MOV RSI,RAX MOV RDX,RBX CALL 0x0011d7d8 CALL 0x001076a0 TEST EAX,EAX JZ 0x0010af72 LAB_0010af6d: POP RBX POP R14 POP RBP RET LAB_0010af72: CALL qword ptr [0x001305a8]
/* nglog::LogMessage::~LogMessage() */ void __thiscall nglog::LogMessage::~LogMessage(LogMessage *this) { void *pvVar1; int iVar2; int8 uVar3; byte bVar4; Flush(this); pvVar1 = *(void **)this; bVar4 = *(int *)(*(long *)(this + 8) + 0x7698) == 3 & exit_on_dfatal; if (pvVar1 != (void *)0x0) { LogStream::~LogStream((LogStream *)((long)pvVar1 + 0x7538)); } operator_delete(pvVar1,0x76f0); if (bVar4 != 0) { iVar2 = fileno(*(FILE **)PTR_stderr_0012ff88); write(iVar2,"*** Check failure stack trace: ***\n",0x23); uVar3 = tools::ProgramInvocationShortName(); tools::AlsoErrorWrite(3,uVar3,"*** Check failure stack trace: ***\n"); iVar2 = std::uncaught_exceptions(); if (iVar2 == 0) { (*(code *)g_logging_fail_func)(); return; } } return; }
6,216
ma_bitmap_reset_cache
eloqsql/storage/maria/ma_bitmap.c
void _ma_bitmap_reset_cache(MARIA_SHARE *share) { MARIA_FILE_BITMAP *bitmap= &share->bitmap; if (bitmap->map) /* If using bitmap */ { /* Forget changes in current bitmap page */ bitmap->changed= 0; /* We can't read a page yet, as in some case we don't have an active page cache yet. Pretend we have a dummy, full and not changed bitmap page in memory. We set bitmap->page to a value so that if we use it in move_to_next_bitmap() it will point to page 0. (This can only happen if writing to a bitmap page fails) */ bitmap->page= ((pgcache_page_no_t) 0) - bitmap->pages_covered; bitmap->used_size= bitmap->total_size= bitmap->max_total_size; bitmap->full_head_size= bitmap->full_tail_size= bitmap->max_total_size; bfill(bitmap->map, share->block_size, 255); #ifndef DBUG_OFF memcpy(bitmap->map + bitmap->block_size, bitmap->map, bitmap->block_size); #endif /* Start scanning for free space from start of file */ share->state.first_bitmap_with_space = 0; } }
O3
c
ma_bitmap_reset_cache: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rdi, %rbx movq 0xa18(%rdi), %rdi testq %rdi, %rdi je 0x3fa7c movb $0x0, 0xa30(%rbx) xorl %eax, %eax subq 0xb48(%rbx), %rax movq %rax, 0xa20(%rbx) movl 0xb3c(%rbx), %eax movl %eax, 0xb38(%rbx) movl %eax, 0xa34(%rbx) movl %eax, 0xa3c(%rbx) movl %eax, 0xa38(%rbx) movl 0x7bc(%rbx), %edx movl $0xff, %esi callq 0x292c0 movq $0x0, 0xd0(%rbx) addq $0x8, %rsp popq %rbx popq %rbp retq
_ma_bitmap_reset_cache: push rbp mov rbp, rsp push rbx push rax mov rbx, rdi mov rdi, [rdi+0A18h] test rdi, rdi jz short loc_3FA7C mov byte ptr [rbx+0A30h], 0 xor eax, eax sub rax, [rbx+0B48h] mov [rbx+0A20h], rax mov eax, [rbx+0B3Ch] mov [rbx+0B38h], eax mov [rbx+0A34h], eax mov [rbx+0A3Ch], eax mov [rbx+0A38h], eax mov edx, [rbx+7BCh] mov esi, 0FFh call _memset mov qword ptr [rbx+0D0h], 0 loc_3FA7C: add rsp, 8 pop rbx pop rbp retn
long long ma_bitmap_reset_cache(long long a1) { long long v2; // rdi int v3; // eax long long result; // rax v2 = *(_QWORD *)(a1 + 2584); if ( v2 ) { *(_BYTE *)(a1 + 2608) = 0; *(_QWORD *)(a1 + 2592) = -*(_QWORD *)(a1 + 2888); v3 = *(_DWORD *)(a1 + 2876); *(_DWORD *)(a1 + 2872) = v3; *(_DWORD *)(a1 + 2612) = v3; *(_DWORD *)(a1 + 2620) = v3; *(_DWORD *)(a1 + 2616) = v3; result = memset(v2, 255LL, *(unsigned int *)(a1 + 1980)); *(_QWORD *)(a1 + 208) = 0LL; } return result; }
_ma_bitmap_reset_cache: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,RDI MOV RDI,qword ptr [RDI + 0xa18] TEST RDI,RDI JZ 0x0013fa7c MOV byte ptr [RBX + 0xa30],0x0 XOR EAX,EAX SUB RAX,qword ptr [RBX + 0xb48] MOV qword ptr [RBX + 0xa20],RAX MOV EAX,dword ptr [RBX + 0xb3c] MOV dword ptr [RBX + 0xb38],EAX MOV dword ptr [RBX + 0xa34],EAX MOV dword ptr [RBX + 0xa3c],EAX MOV dword ptr [RBX + 0xa38],EAX MOV EDX,dword ptr [RBX + 0x7bc] MOV ESI,0xff CALL 0x001292c0 MOV qword ptr [RBX + 0xd0],0x0 LAB_0013fa7c: ADD RSP,0x8 POP RBX POP RBP RET
void _ma_bitmap_reset_cache(long param_1) { int4 uVar1; if (*(void **)(param_1 + 0xa18) != (void *)0x0) { *(int1 *)(param_1 + 0xa30) = 0; *(long *)(param_1 + 0xa20) = -*(long *)(param_1 + 0xb48); uVar1 = *(int4 *)(param_1 + 0xb3c); *(int4 *)(param_1 + 0xb38) = uVar1; *(int4 *)(param_1 + 0xa34) = uVar1; *(int4 *)(param_1 + 0xa3c) = uVar1; *(int4 *)(param_1 + 0xa38) = uVar1; memset(*(void **)(param_1 + 0xa18),0xff,(ulong)*(uint *)(param_1 + 0x7bc)); *(int8 *)(param_1 + 0xd0) = 0; } return; }
6,217
strappend
eloqsql/strings/strappend.c
void strappend(register char *s, size_t len, pchar fill) { register char *endpos; endpos = s+len; while (*s++); s--; while (s<endpos) *(s++) = fill; *(endpos) = '\0'; }
O0
c
strappend: pushq %rbp movq %rsp, %rbp movb %dl, %al movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movb %al, -0x11(%rbp) movq -0x8(%rbp), %rax addq -0x10(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x8(%rbp) cmpb $0x0, (%rax) je 0x150ff3 jmp 0x150fdd movq -0x8(%rbp), %rax addq $-0x1, %rax movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax cmpq -0x20(%rbp), %rax jae 0x15101f movb -0x11(%rbp), %cl movq -0x8(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x8(%rbp) movb %cl, (%rax) jmp 0x150fff movq -0x20(%rbp), %rax movb $0x0, (%rax) popq %rbp retq
strappend: push rbp mov rbp, rsp mov al, dl mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_11], al mov rax, [rbp+var_8] add rax, [rbp+var_10] mov [rbp+var_20], rax loc_150FDD: mov rax, [rbp+var_8] mov rcx, rax add rcx, 1 mov [rbp+var_8], rcx cmp byte ptr [rax], 0 jz short loc_150FF3 jmp short loc_150FDD loc_150FF3: mov rax, [rbp+var_8] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_8], rax loc_150FFF: mov rax, [rbp+var_8] cmp rax, [rbp+var_20] jnb short loc_15101F mov cl, [rbp+var_11] mov rax, [rbp+var_8] mov rdx, rax add rdx, 1 mov [rbp+var_8], rdx mov [rax], cl jmp short loc_150FFF loc_15101F: mov rax, [rbp+var_20] mov byte ptr [rax], 0 pop rbp retn
_BYTE * strappend(_BYTE *a1, long long a2, char a3) { _BYTE *v3; // rax _BYTE *v4; // rax _BYTE *result; // rax _BYTE *v6; // [rsp+0h] [rbp-20h] _BYTE *v7; // [rsp+18h] [rbp-8h] _BYTE *i; // [rsp+18h] [rbp-8h] v7 = a1; v6 = &a1[a2]; do v3 = v7++; while ( *v3 ); for ( i = v7 - 1; i < v6; ++i ) { v4 = i; *v4 = a3; } result = &a1[a2]; *v6 = 0; return result; }
_ma_write_abort_block_record: PUSH RBP MOV RBP,RSP SUB RSP,0x60 MOV qword ptr [RBP + -0x8],RDI MOV byte ptr [RBP + -0x9],0x0 MOV RAX,qword ptr [RBP + -0x8] ADD RAX,0x80 MOV qword ptr [RBP + -0x18],RAX MOV qword ptr [RBP + -0x30],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x38] CALL 0x0015db30 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x98] CALL 0x00151530 MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x98] CALL 0x00151550 MOV RDI,qword ptr [RBP + -0x48] MOV RSI,qword ptr [RBP + -0x40] MOV EDX,EAX MOV ECX,0x1 XOR R8D,R8D CALL 0x00151190 CMP AL,0x0 JZ 0x00151045 MOV byte ptr [RBP + -0x9],0x1 LAB_00151045: MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] ADD RAX,0x18 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RCX + 0x8] IMUL RCX,RCX,0x18 ADD RAX,RCX ADD RAX,-0x18 MOV qword ptr [RBP + -0x28],RAX LAB_0015106e: MOV RAX,qword ptr [RBP + -0x20] CMP RAX,qword ptr [RBP + -0x28] JNC 0x001510ff MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x14] AND EAX,0x1 CMP EAX,0x0 JZ 0x001510ec MOV RAX,qword ptr [RBP + -0x20] MOVZX EAX,byte ptr [RAX + 0x14] AND EAX,0x4 CMP EAX,0x0 JZ 0x001510c9 MOV RDI,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x20] MOV EDX,dword ptr [RAX + 0x8] AND EDX,0xffff7fff XOR R8D,R8D MOV ECX,R8D CALL 0x00151190 CMP AL,0x0 JZ 0x001510c7 MOV byte ptr [RBP + -0x9],0x1 LAB_001510c7: JMP 0x001510ea LAB_001510c9: MOV RDI,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x20] MOV EDX,dword ptr [RAX + 0x8] CALL 0x00151570 CMP AL,0x0 JZ 0x001510e8 MOV byte ptr [RBP + -0x9],0x1 LAB_001510e8: JMP 0x001510ea LAB_001510ea: JMP 0x001510ec LAB_001510ec: JMP 0x001510ee LAB_001510ee: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x18 MOV qword ptr [RBP + -0x20],RAX JMP 0x0015106e LAB_001510ff: MOV RDI,qword ptr [RBP + -0x38] CALL 0x0015dc00 MOV RAX,qword ptr [RBP + -0x38] CMP byte ptr [RAX + 0x7e7],0x0 JZ 0x0015116b MOV RDI,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RAX + 0xb8] MOV RAX,qword ptr [RBP + -0x38] CMP qword ptr [RAX + 0x6a8],0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL MOV RCX,qword ptr [RBP + -0x8] XOR R8D,R8D SUB R8D,dword ptr [RCX + 0xb0] MOV EDX,0x12 LEA R9,[RBP + -0x30] XOR ECX,ECX MOVSX ECX,AL MOV qword ptr [RSP],0x0 CALL 0x0013e1e0 CMP AL,0x0 JZ 0x00151169 MOV byte ptr [RBP + -0x9],0x1 LAB_00151169: JMP 0x0015116b LAB_0015116b: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x30] CALL 0x001517a0 MOV AL,byte ptr [RBP + -0x9] MOV byte ptr [RBP + -0x49],AL MOV AL,byte ptr [RBP + -0x49] ADD RSP,0x60 POP RBP RET
int1 _ma_write_abort_block_record(long *param_1) { long lVar1; long *plVar2; char cVar3; int4 uVar4; int8 uVar5; int8 local_38; int8 *local_30; int8 *local_28; long *local_20; int1 local_11; long *local_10; local_11 = 0; local_20 = param_1 + 0x10; local_38 = 0; lVar1 = *param_1; local_10 = param_1; _ma_bitmap_lock(lVar1); plVar2 = local_10; uVar5 = ma_recordpos_to_page(local_10[0x13]); uVar4 = ma_recordpos_to_dir_entry(local_10[0x13]); cVar3 = delete_head_or_tail(plVar2,uVar5,uVar4,1,0); if (cVar3 != '\0') { local_11 = 1; } local_28 = (int8 *)(*local_20 + 0x18); local_30 = local_28 + (ulong)*(uint *)(local_20 + 1) * 3 + -3; for (; local_28 < local_30; local_28 = local_28 + 3) { if ((*(byte *)((long)local_28 + 0x14) & 1) != 0) { if ((*(byte *)((long)local_28 + 0x14) & 4) == 0) { cVar3 = free_full_page_range(local_10,*local_28,*(int4 *)(local_28 + 1)); if (cVar3 != '\0') { local_11 = 1; } } else { cVar3 = delete_head_or_tail(local_10,*local_28,*(uint *)(local_28 + 1) & 0xffff7fff,0); if (cVar3 != '\0') { local_11 = 1; } } } } _ma_bitmap_unlock(lVar1); if ((*(char *)(lVar1 + 0x7e7) != '\0') && (cVar3 = _ma_write_clr(local_10,local_10[0x17],0x12,*(long *)(lVar1 + 0x6a8) != 0, -(int)local_10[0x16],&local_38,0), cVar3 != '\0')) { local_11 = 1; } _ma_unpin_all_pages_and_finalize_row(local_10,local_38); return local_11; }
6,218
ma_check_index
eloqsql/storage/maria/ma_search.c
int _ma_check_index(MARIA_HA *info, int inx) { if (inx < 0 || ! maria_is_key_active(info->s->state.key_map, inx)) { my_errno=HA_ERR_WRONG_INDEX; return -1; } if (info->lastinx != inx) /* Index changed */ { info->lastinx = inx; info->last_key.keyinfo= info->s->keyinfo + inx; info->last_key.flag= 0; info->page_changed=1; info->update= ((info->update & (HA_STATE_CHANGED | HA_STATE_ROW_CHANGED)) | HA_STATE_NEXT_FOUND | HA_STATE_PREV_FOUND); } if ((info->opt_flag & WRITE_CACHE_USED) && flush_io_cache(&info->rec_cache)) { if (unlikely(!my_errno)) my_errno= HA_ERR_INTERNAL_ERROR; /* Impossible */ return(-1); } if (unlikely(maria_is_crashed(info))) { my_errno= HA_ERR_CRASHED; return(-1); } return(inx); }
O0
c
ma_check_index: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) cmpl $0x0, -0x14(%rbp) jl 0x6907a movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x140(%rax), %rax movl -0x14(%rbp), %ecx movl $0x1, %edx shlq %cl, %rdx movq %rdx, %rcx andq %rcx, %rax cmpq $0x0, %rax je 0x69072 movb $0x1, %al testb $0x1, %al jne 0x69091 jmp 0x6907a xorl %eax, %eax testb $0x1, %al jne 0x69091 jmp 0x6907a callq 0xf60c0 movl $0x7c, (%rax) movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x691af movq -0x10(%rbp), %rax movl 0x62c(%rax), %eax cmpl -0x14(%rbp), %eax je 0x6910d movl -0x14(%rbp), %ecx movq -0x10(%rbp), %rax movl %ecx, 0x62c(%rax) movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x570(%rax), %rcx movslq -0x14(%rbp), %rax imulq $0x118, %rax, %rax # imm = 0x118 addq %rax, %rcx movq -0x10(%rbp), %rax movq %rcx, 0x208(%rax) movq -0x10(%rbp), %rax movl $0x0, 0x218(%rax) movq -0x10(%rbp), %rax movb $0x1, 0x684(%rax) movq -0x10(%rbp), %rax movl 0x624(%rax), %ecx andl $0x401, %ecx # imm = 0x401 orl $0x10, %ecx orl $0x20, %ecx movq -0x10(%rbp), %rax movl %ecx, 0x624(%rax) movq -0x10(%rbp), %rax movl 0x61c(%rax), %eax andl $0x10, %eax cmpl $0x0, %eax je 0x69172 movq -0x10(%rbp), %rdi addq $0x4b8, %rdi # imm = 0x4B8 movl $0x1, %esi callq 0xe0be0 cmpl $0x0, %eax je 0x69172 callq 0xf60c0 cmpl $0x0, (%rax) setne %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x69169 callq 0xf60c0 movl $0x7a, (%rax) movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x691af movq -0x10(%rbp), %rax movq (%rax), %rax movl 0x170(%rax), %eax andl $0x2, %eax cmpl $0x0, %eax setne %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x691a9 callq 0xf60c0 movl $0x7e, (%rax) movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0x691af movl -0x14(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
_ma_check_index: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_10], rdi mov [rbp+var_14], esi cmp [rbp+var_14], 0 jl short loc_6907A mov rax, [rbp+var_10] mov rax, [rax] mov rax, [rax+140h] mov ecx, [rbp+var_14] mov edx, 1 shl rdx, cl mov rcx, rdx and rax, rcx cmp rax, 0 jz short loc_69072 mov al, 1 test al, 1 jnz short loc_69091 jmp short loc_6907A loc_69072: xor eax, eax test al, 1 jnz short loc_69091 jmp short $+2 loc_6907A: call _my_thread_var mov dword ptr [rax], 7Ch ; '|' mov [rbp+var_4], 0FFFFFFFFh jmp loc_691AF loc_69091: mov rax, [rbp+var_10] mov eax, [rax+62Ch] cmp eax, [rbp+var_14] jz short loc_6910D mov ecx, [rbp+var_14] mov rax, [rbp+var_10] mov [rax+62Ch], ecx mov rax, [rbp+var_10] mov rax, [rax] mov rcx, [rax+570h] movsxd rax, [rbp+var_14] imul rax, 118h add rcx, rax mov rax, [rbp+var_10] mov [rax+208h], rcx mov rax, [rbp+var_10] mov dword ptr [rax+218h], 0 mov rax, [rbp+var_10] mov byte ptr [rax+684h], 1 mov rax, [rbp+var_10] mov ecx, [rax+624h] and ecx, 401h or ecx, 10h or ecx, 20h mov rax, [rbp+var_10] mov [rax+624h], ecx loc_6910D: mov rax, [rbp+var_10] mov eax, [rax+61Ch] and eax, 10h cmp eax, 0 jz short loc_69172 mov rdi, [rbp+var_10] add rdi, 4B8h mov esi, 1 call my_b_flush_io_cache cmp eax, 0 jz short loc_69172 call _my_thread_var cmp dword ptr [rax], 0 setnz al xor al, 0FFh and al, 1 movzx eax, al cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_69169 call _my_thread_var mov dword ptr [rax], 7Ah ; 'z' loc_69169: mov [rbp+var_4], 0FFFFFFFFh jmp short loc_691AF loc_69172: mov rax, [rbp+var_10] mov rax, [rax] mov eax, [rax+170h] and eax, 2 cmp eax, 0 setnz al and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_691A9 call _my_thread_var mov dword ptr [rax], 7Eh ; '~' mov [rbp+var_4], 0FFFFFFFFh jmp short loc_691AF loc_691A9: mov eax, [rbp+var_14] mov [rbp+var_4], eax loc_691AF: mov eax, [rbp+var_4] add rsp, 20h pop rbp retn
long long ma_check_index(long long a1, const char *a2) { unsigned int v3; // [rsp+Ch] [rbp-14h] long long v4; // [rsp+10h] [rbp-10h] v4 = a1; v3 = (unsigned int)a2; if ( (int)a2 >= 0 && ((1LL << (char)a2) & *(_QWORD *)(*(_QWORD *)a1 + 320LL)) != 0 ) { if ( *(_DWORD *)(a1 + 1580) != (_DWORD)a2 ) { *(_DWORD *)(a1 + 1580) = (_DWORD)a2; *(_QWORD *)(a1 + 520) = 280LL * (int)a2 + *(_QWORD *)(*(_QWORD *)a1 + 1392LL); *(_DWORD *)(a1 + 536) = 0; *(_BYTE *)(a1 + 1668) = 1; *(_DWORD *)(a1 + 1572) = *(_DWORD *)(a1 + 1572) & 0x401 | 0x30; } if ( (*(_DWORD *)(a1 + 1564) & 0x10) != 0 && (a1 += 1208LL, a2 = (_BYTE *)(&dword_0 + 1), (unsigned int)my_b_flush_io_cache(v4 + 1208, 1LL)) ) { if ( !*(_DWORD *)my_thread_var(a1, (_BYTE *)&dword_0 + 1) ) *(_DWORD *)my_thread_var(a1, (_BYTE *)&dword_0 + 1) = 122; return (unsigned int)-1; } else if ( (*(_DWORD *)(*(_QWORD *)v4 + 368LL) & 2) != 0 ) { *(_DWORD *)my_thread_var(a1, a2) = 126; return (unsigned int)-1; } else { return v3; } } else { *(_DWORD *)my_thread_var(a1, a2) = 124; return (unsigned int)-1; } }
_ma_check_index: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI CMP dword ptr [RBP + -0x14],0x0 JL 0x0016907a MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x140] MOV ECX,dword ptr [RBP + -0x14] MOV EDX,0x1 SHL RDX,CL MOV RCX,RDX AND RAX,RCX CMP RAX,0x0 JZ 0x00169072 MOV AL,0x1 TEST AL,0x1 JNZ 0x00169091 JMP 0x0016907a LAB_00169072: XOR EAX,EAX TEST AL,0x1 JNZ 0x00169091 JMP 0x0016907a LAB_0016907a: CALL 0x001f60c0 MOV dword ptr [RAX],0x7c MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001691af LAB_00169091: MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x62c] CMP EAX,dword ptr [RBP + -0x14] JZ 0x0016910d MOV ECX,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x62c],ECX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RAX + 0x570] MOVSXD RAX,dword ptr [RBP + -0x14] IMUL RAX,RAX,0x118 ADD RCX,RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RAX + 0x208],RCX MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x218],0x0 MOV RAX,qword ptr [RBP + -0x10] MOV byte ptr [RAX + 0x684],0x1 MOV RAX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RAX + 0x624] AND ECX,0x401 OR ECX,0x10 OR ECX,0x20 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x624],ECX LAB_0016910d: MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x61c] AND EAX,0x10 CMP EAX,0x0 JZ 0x00169172 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x4b8 MOV ESI,0x1 CALL 0x001e0be0 CMP EAX,0x0 JZ 0x00169172 CALL 0x001f60c0 CMP dword ptr [RAX],0x0 SETNZ AL XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x00169169 CALL 0x001f60c0 MOV dword ptr [RAX],0x7a LAB_00169169: MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001691af LAB_00169172: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX + 0x170] AND EAX,0x2 CMP EAX,0x0 SETNZ AL AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x001691a9 CALL 0x001f60c0 MOV dword ptr [RAX],0x7e MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001691af LAB_001691a9: MOV EAX,dword ptr [RBP + -0x14] MOV dword ptr [RBP + -0x4],EAX LAB_001691af: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x20 POP RBP RET
/* WARNING: Removing unreachable block (ram,0x00169070) */ int _ma_check_index(long *param_1,int param_2) { int iVar1; int4 *puVar2; int *piVar3; int local_c; if ((param_2 < 0) || ((*(ulong *)(*param_1 + 0x140) & 1L << ((byte)param_2 & 0x3f)) == 0)) { puVar2 = (int4 *)_my_thread_var(); *puVar2 = 0x7c; local_c = -1; } else { if (*(int *)((long)param_1 + 0x62c) != param_2) { *(int *)((long)param_1 + 0x62c) = param_2; param_1[0x41] = *(long *)(*param_1 + 0x570) + (long)param_2 * 0x118; *(int4 *)(param_1 + 0x43) = 0; *(int1 *)((long)param_1 + 0x684) = 1; *(uint *)((long)param_1 + 0x624) = *(uint *)((long)param_1 + 0x624) & 0x401 | 0x30; } if (((*(uint *)((long)param_1 + 0x61c) & 0x10) == 0) || (iVar1 = my_b_flush_io_cache(param_1 + 0x97,1), iVar1 == 0)) { local_c = param_2; if ((*(uint *)(*param_1 + 0x170) & 2) != 0) { puVar2 = (int4 *)_my_thread_var(); *puVar2 = 0x7e; local_c = -1; } } else { piVar3 = (int *)_my_thread_var(); if (*piVar3 == 0) { puVar2 = (int4 *)_my_thread_var(); *puVar2 = 0x7a; } local_c = -1; } } return local_c; }
6,219
uf_zerofill_skip_zero
eloqsql/storage/myisam/mi_packrec.c
static void uf_zerofill_skip_zero(MI_COLUMNDEF *rec, MI_BIT_BUFF *bit_buff, uchar *to, uchar *end) { if (get_bit(bit_buff)) bzero((char*) to,(uint) (end-to)); else { end-=rec->space_length_bits; decode_bytes(rec,bit_buff,to,end); bzero((char*) end,rec->space_length_bits); } }
O0
c
uf_zerofill_skip_zero: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq -0x10(%rbp), %rax cmpl $0x0, 0x4(%rax) je 0xbdbc7 movq -0x10(%rbp), %rax movl (%rax), %eax movq -0x10(%rbp), %rdx movl 0x4(%rdx), %ecx addl $-0x1, %ecx movl %ecx, 0x4(%rdx) movl $0x1, %edx shll %cl, %edx movl %edx, %ecx andl %ecx, %eax cmpl $0x0, %eax jne 0xbdbeb jmp 0xbdc07 movq -0x10(%rbp), %rdi callq 0xbd720 movq -0x10(%rbp), %rax movl $0x1f, 0x4(%rax) movq -0x10(%rbp), %rax movl (%rax), %eax andl $0x80000000, %eax # imm = 0x80000000 cmpl $0x0, %eax je 0xbdc07 movq -0x18(%rbp), %rdi movq -0x20(%rbp), %rax movq -0x18(%rbp), %rcx subq %rcx, %rax movl %eax, %eax movl %eax, %edx xorl %esi, %esi callq 0x2a2c0 jmp 0xbdc4b movq -0x8(%rbp), %rax movl 0x1c(%rax), %ecx movq -0x20(%rbp), %rax movl %ecx, %ecx movl %ecx, %edx xorl %ecx, %ecx subq %rdx, %rcx addq %rcx, %rax movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx movq -0x20(%rbp), %rcx callq 0xbde30 movq -0x20(%rbp), %rdi movq -0x8(%rbp), %rax movl 0x1c(%rax), %eax movl %eax, %edx xorl %esi, %esi callq 0x2a2c0 addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
uf_zerofill_skip_zero_0: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov rax, [rbp+var_10] cmp dword ptr [rax+4], 0 jz short loc_BDBC7 mov rax, [rbp+var_10] mov eax, [rax] mov rdx, [rbp+var_10] mov ecx, [rdx+4] add ecx, 0FFFFFFFFh mov [rdx+4], ecx mov edx, 1 shl edx, cl mov ecx, edx and eax, ecx cmp eax, 0 jnz short loc_BDBEB jmp short loc_BDC07 loc_BDBC7: mov rdi, [rbp+var_10] call fill_buffer_0 mov rax, [rbp+var_10] mov dword ptr [rax+4], 1Fh mov rax, [rbp+var_10] mov eax, [rax] and eax, 80000000h cmp eax, 0 jz short loc_BDC07 loc_BDBEB: mov rdi, [rbp+var_18] mov rax, [rbp+var_20] mov rcx, [rbp+var_18] sub rax, rcx mov eax, eax mov edx, eax xor esi, esi call _memset jmp short loc_BDC4B loc_BDC07: mov rax, [rbp+var_8] mov ecx, [rax+1Ch] mov rax, [rbp+var_20] mov ecx, ecx mov edx, ecx xor ecx, ecx sub rcx, rdx add rax, rcx mov [rbp+var_20], rax mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] mov rcx, [rbp+var_20] call decode_bytes_0 mov rdi, [rbp+var_20] mov rax, [rbp+var_8] mov eax, [rax+1Ch] mov edx, eax xor esi, esi call _memset loc_BDC4B: add rsp, 20h pop rbp retn
long long uf_zerofill_skip_zero_0(long long a1, int *a2, long long a3, long long a4) { int v4; // eax int v5; // ecx long long v8; // [rsp+0h] [rbp-20h] if ( a2[1] ) { v4 = *a2; v5 = a2[1] - 1; a2[1] = v5; if ( ((1 << v5) & v4) == 0 ) goto LABEL_6; return memset(a3, 0LL, (unsigned int)(a4 - a3)); } fill_buffer_0((long long)a2); a2[1] = 31; if ( *a2 < 0 ) return memset(a3, 0LL, (unsigned int)(a4 - a3)); LABEL_6: v8 = a4 - *(unsigned int *)(a1 + 28); decode_bytes_0(a1, a2, a3, v8); return memset(v8, 0LL, *(unsigned int *)(a1 + 28)); }
uf_zerofill_skip_zero: PUSH RBP MOV RBP,RSP SUB RSP,0x20 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 RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x4],0x0 JZ 0x001bdbc7 MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX] MOV RDX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RDX + 0x4] ADD ECX,-0x1 MOV dword ptr [RDX + 0x4],ECX MOV EDX,0x1 SHL EDX,CL MOV ECX,EDX AND EAX,ECX CMP EAX,0x0 JNZ 0x001bdbeb JMP 0x001bdc07 LAB_001bdbc7: MOV RDI,qword ptr [RBP + -0x10] CALL 0x001bd720 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x4],0x1f MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX] AND EAX,0x80000000 CMP EAX,0x0 JZ 0x001bdc07 LAB_001bdbeb: MOV RDI,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x18] SUB RAX,RCX MOV EAX,EAX MOV EDX,EAX XOR ESI,ESI CALL 0x0012a2c0 JMP 0x001bdc4b LAB_001bdc07: MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x1c] MOV RAX,qword ptr [RBP + -0x20] MOV ECX,ECX MOV EDX,ECX XOR ECX,ECX SUB RCX,RDX ADD RAX,RCX MOV qword ptr [RBP + -0x20],RAX MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x20] CALL 0x001bde30 MOV RDI,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x1c] MOV EDX,EAX XOR ESI,ESI CALL 0x0012a2c0 LAB_001bdc4b: ADD RSP,0x20 POP RBP RET
void uf_zerofill_skip_zero(long param_1,uint *param_2,void *param_3,long param_4) { uint uVar1; void *__s; if (param_2[1] == 0) { fill_buffer(param_2); param_2[1] = 0x1f; uVar1 = *param_2 & 0x80000000; } else { uVar1 = param_2[1]; param_2[1] = uVar1 - 1; uVar1 = *param_2 & 1 << ((byte)(uVar1 - 1) & 0x1f); } if (uVar1 == 0) { __s = (void *)(param_4 - (ulong)*(uint *)(param_1 + 0x1c)); decode_bytes(param_1,param_2,param_3,__s); memset(__s,0,(ulong)*(uint *)(param_1 + 0x1c)); } else { memset(param_3,0,(ulong)(uint)((int)param_4 - (int)param_3)); } return; }
6,220
mi_kpointer
eloqsql/storage/myisam/mi_search.c
void _mi_kpointer(register MI_INFO *info, register uchar *buff, my_off_t pos) { pos/=MI_MIN_KEY_BLOCK_LENGTH; switch (info->s->base.key_reflength) { #if SIZEOF_OFF_T > 4 case 7: mi_int7store(buff,pos); break; case 6: mi_int6store(buff,pos); break; case 5: mi_int5store(buff,pos); break; #else case 7: *buff++=0; /* fall through */ case 6: *buff++=0; /* fall through */ case 5: *buff++=0; /* fall through */ #endif case 4: mi_int4store(buff,pos); break; case 3: mi_int3store(buff,pos); break; case 2: mi_int2store(buff,(uint) pos); break; case 1: buff[0]= (uchar) pos; break; default: abort(); /* impossible */ } }
O3
c
mi_kpointer: movq (%rdi), %rax movl 0x17c(%rax), %ecx decl %ecx cmpl $0x6, %ecx ja 0x85a03 movq %rdx, %rax shrq $0xa, %rax leaq 0x5c351(%rip), %rdi # 0xe1c7c movslq (%rdi,%rcx,4), %rcx addq %rdi, %rcx jmpq *%rcx movb %al, 0x1(%rsi) shrq $0x12, %rdx jmp 0x859fd movb %al, 0x4(%rsi) movq %rdx, %rax shrq $0x2a, %rax movl %edx, %ecx shrl $0x12, %ecx movb %cl, 0x3(%rsi) movq %rdx, %rcx shrq $0x1a, %rcx movb %cl, 0x2(%rsi) shrq $0x22, %rdx movb %dl, 0x1(%rsi) jmp 0x85a00 movb %al, 0x2(%rsi) movl %edx, %eax shrl $0x12, %eax movb %al, 0x1(%rsi) shrq $0x1a, %rdx jmp 0x859fd movb %al, 0x3(%rsi) movl %edx, %eax shrl $0x12, %eax movb %al, 0x2(%rsi) movq %rdx, %rax shrq $0x1a, %rax movb %al, 0x1(%rsi) shrq $0x22, %rdx jmp 0x859fd movq %rdx, %rcx shrq $0x2a, %rcx movb %al, 0x5(%rsi) movl %edx, %eax shrl $0x12, %eax movb %al, 0x4(%rsi) movq %rdx, %rax shrq $0x1a, %rax movb %al, 0x3(%rsi) movq %rdx, %rax shrq $0x22, %rax movb %al, 0x2(%rsi) movb %cl, 0x1(%rsi) shrq $0x32, %rdx jmp 0x859fd movq %rdx, %rcx shrq $0x2a, %rcx movb %al, 0x6(%rsi) movl %edx, %eax shrl $0x12, %eax movb %al, 0x5(%rsi) movq %rdx, %rax shrq $0x1a, %rax movb %al, 0x4(%rsi) movq %rdx, %rax shrq $0x22, %rax movb %al, 0x3(%rsi) movb %cl, 0x2(%rsi) movq %rdx, %rax shrq $0x32, %rax movb %al, 0x1(%rsi) shrq $0x3a, %rdx movq %rdx, %rax movb %al, (%rsi) retq pushq %rbp movq %rsp, %rbp callq 0x29620
_mi_kpointer: mov rax, [rdi] mov ecx, [rax+17Ch] dec ecx; switch 7 cases cmp ecx, 6 ja def_85932; jumptable 0000000000085932 default case mov rax, rdx shr rax, 0Ah lea rdi, jpt_85932 movsxd rcx, ds:(jpt_85932 - 0E1C7Ch)[rdi+rcx*4] add rcx, rdi jmp rcx; switch jump loc_85934: mov [rsi+1], al; jumptable 0000000000085932 case 2 shr rdx, 12h jmp loc_859FD loc_85940: mov [rsi+4], al; jumptable 0000000000085932 case 5 mov rax, rdx shr rax, 2Ah mov ecx, edx shr ecx, 12h mov [rsi+3], cl mov rcx, rdx shr rcx, 1Ah mov [rsi+2], cl shr rdx, 22h mov [rsi+1], dl jmp loc_85A00; jumptable 0000000000085932 case 1 loc_85968: mov [rsi+2], al; jumptable 0000000000085932 case 3 mov eax, edx shr eax, 12h mov [rsi+1], al shr rdx, 1Ah jmp loc_859FD loc_8597C: mov [rsi+3], al; jumptable 0000000000085932 case 4 mov eax, edx shr eax, 12h mov [rsi+2], al mov rax, rdx shr rax, 1Ah mov [rsi+1], al shr rdx, 22h jmp short loc_859FD loc_85997: mov rcx, rdx; jumptable 0000000000085932 case 6 shr rcx, 2Ah mov [rsi+5], al mov eax, edx shr eax, 12h mov [rsi+4], al mov rax, rdx shr rax, 1Ah mov [rsi+3], al mov rax, rdx shr rax, 22h mov [rsi+2], al mov [rsi+1], cl shr rdx, 32h jmp short loc_859FD loc_859C6: mov rcx, rdx; jumptable 0000000000085932 case 7 shr rcx, 2Ah mov [rsi+6], al mov eax, edx shr eax, 12h mov [rsi+5], al mov rax, rdx shr rax, 1Ah mov [rsi+4], al mov rax, rdx shr rax, 22h mov [rsi+3], al mov [rsi+2], cl mov rax, rdx shr rax, 32h mov [rsi+1], al shr rdx, 3Ah loc_859FD: mov rax, rdx loc_85A00: mov [rsi], al; jumptable 0000000000085932 case 1 retn def_85932: push rbp; jumptable 0000000000085932 default case mov rbp, rsp call _abort
unsigned long long mi_kpointer(long long a1, _BYTE *a2, unsigned long long a3) { unsigned long long result; // rax unsigned long long v4; // rdx result = a3 >> 10; switch ( *(_DWORD *)(*(_QWORD *)a1 + 380LL) ) { case 1: goto LABEL_9; case 2: a2[1] = result; v4 = a3 >> 18; goto LABEL_8; case 3: a2[2] = result; a2[1] = (unsigned int)a3 >> 18; v4 = a3 >> 26; goto LABEL_8; case 4: a2[3] = result; a2[2] = (unsigned int)a3 >> 18; a2[1] = a3 >> 26; v4 = a3 >> 34; goto LABEL_8; case 5: a2[4] = result; result = a3 >> 42; a2[3] = (unsigned int)a3 >> 18; a2[2] = a3 >> 26; a2[1] = a3 >> 34; goto LABEL_9; case 6: a2[5] = result; a2[4] = (unsigned int)a3 >> 18; a2[3] = a3 >> 26; a2[2] = a3 >> 34; a2[1] = a3 >> 42; v4 = a3 >> 50; goto LABEL_8; case 7: a2[6] = result; a2[5] = (unsigned int)a3 >> 18; a2[4] = a3 >> 26; a2[3] = a3 >> 34; a2[2] = a3 >> 42; a2[1] = a3 >> 50; v4 = a3 >> 58; LABEL_8: result = v4; LABEL_9: *a2 = result; return result; default: abort(a1, a2, a3); } }
_mi_kpointer: MOV RAX,qword ptr [RDI] MOV ECX,dword ptr [RAX + 0x17c] DEC ECX CMP ECX,0x6 JA 0x00185a03 MOV RAX,RDX SHR RAX,0xa LEA RDI,[0x1e1c7c] MOVSXD RCX,dword ptr [RDI + RCX*0x4] ADD RCX,RDI switchD: JMP RCX caseD_2: MOV byte ptr [RSI + 0x1],AL SHR RDX,0x12 JMP 0x001859fd caseD_5: MOV byte ptr [RSI + 0x4],AL MOV RAX,RDX SHR RAX,0x2a MOV ECX,EDX SHR ECX,0x12 MOV byte ptr [RSI + 0x3],CL MOV RCX,RDX SHR RCX,0x1a MOV byte ptr [RSI + 0x2],CL SHR RDX,0x22 MOV byte ptr [RSI + 0x1],DL JMP 0x00185a00 caseD_3: MOV byte ptr [RSI + 0x2],AL MOV EAX,EDX SHR EAX,0x12 MOV byte ptr [RSI + 0x1],AL SHR RDX,0x1a JMP 0x001859fd caseD_4: MOV byte ptr [RSI + 0x3],AL MOV EAX,EDX SHR EAX,0x12 MOV byte ptr [RSI + 0x2],AL MOV RAX,RDX SHR RAX,0x1a MOV byte ptr [RSI + 0x1],AL SHR RDX,0x22 JMP 0x001859fd caseD_6: MOV RCX,RDX SHR RCX,0x2a MOV byte ptr [RSI + 0x5],AL MOV EAX,EDX SHR EAX,0x12 MOV byte ptr [RSI + 0x4],AL MOV RAX,RDX SHR RAX,0x1a MOV byte ptr [RSI + 0x3],AL MOV RAX,RDX SHR RAX,0x22 MOV byte ptr [RSI + 0x2],AL MOV byte ptr [RSI + 0x1],CL SHR RDX,0x32 JMP 0x001859fd caseD_7: MOV RCX,RDX SHR RCX,0x2a MOV byte ptr [RSI + 0x6],AL MOV EAX,EDX SHR EAX,0x12 MOV byte ptr [RSI + 0x5],AL MOV RAX,RDX SHR RAX,0x1a MOV byte ptr [RSI + 0x4],AL MOV RAX,RDX SHR RAX,0x22 MOV byte ptr [RSI + 0x3],AL MOV byte ptr [RSI + 0x2],CL MOV RAX,RDX SHR RAX,0x32 MOV byte ptr [RSI + 0x1],AL SHR RDX,0x3a LAB_001859fd: MOV RAX,RDX caseD_1: MOV byte ptr [RSI],AL RET default: PUSH RBP MOV RBP,RSP CALL 0x00129620
void _mi_kpointer(long *param_1,byte *param_2,ulong param_3) { byte bVar1; bVar1 = (byte)(param_3 >> 10); switch(*(int4 *)(*param_1 + 0x17c)) { case 1: break; case 2: param_2[1] = bVar1; bVar1 = (byte)(param_3 >> 0x12); break; case 3: param_2[2] = bVar1; param_2[1] = (byte)(param_3 >> 0x12); bVar1 = (byte)(param_3 >> 0x1a); break; case 4: param_2[3] = bVar1; param_2[2] = (byte)(param_3 >> 0x12); param_2[1] = (byte)(param_3 >> 0x1a); bVar1 = (byte)(param_3 >> 0x22); break; case 5: param_2[4] = bVar1; bVar1 = (byte)(param_3 >> 0x2a); param_2[3] = (byte)(param_3 >> 0x12); param_2[2] = (byte)(param_3 >> 0x1a); param_2[1] = (byte)(param_3 >> 0x22); break; case 6: param_2[5] = bVar1; param_2[4] = (byte)(param_3 >> 0x12); param_2[3] = (byte)(param_3 >> 0x1a); param_2[2] = (byte)(param_3 >> 0x22); param_2[1] = (byte)(param_3 >> 0x2a); bVar1 = (byte)(param_3 >> 0x32); break; case 7: param_2[6] = bVar1; param_2[5] = (byte)(param_3 >> 0x12); param_2[4] = (byte)(param_3 >> 0x1a); param_2[3] = (byte)(param_3 >> 0x22); param_2[2] = (byte)(param_3 >> 0x2a); param_2[1] = (byte)(param_3 >> 0x32); bVar1 = (byte)(param_3 >> 0x3a); break; default: /* WARNING: Subroutine does not return */ abort(); } *param_2 = bVar1; return; }
6,221
testing::internal::UnitTestImpl::PostFlagParsingInit()
AlayaLite/build_O0/_deps/googletest-src/googletest/src/gtest.cc
void UnitTestImpl::PostFlagParsingInit() { // Ensures that this function does not execute more than once. if (!post_flag_parse_init_performed_) { post_flag_parse_init_performed_ = true; #if defined(GTEST_CUSTOM_TEST_EVENT_LISTENER_) // Register to send notifications about key process state changes. listeners()->Append(new GTEST_CUSTOM_TEST_EVENT_LISTENER_()); #endif // defined(GTEST_CUSTOM_TEST_EVENT_LISTENER_) #ifdef GTEST_HAS_DEATH_TEST InitDeathTestSubprocessControlInfo(); SuppressTestEventsIfInSubprocess(); #endif // GTEST_HAS_DEATH_TEST // Registers parameterized tests. This makes parameterized tests // available to the UnitTest reflection API without running // RUN_ALL_TESTS. RegisterParameterizedTests(); // Configures listeners for XML output. This makes it possible for users // to shut down the default XML output before invoking RUN_ALL_TESTS. ConfigureXmlOutput(); if (GTEST_FLAG_GET(brief)) { listeners()->SetDefaultResultPrinter(new BriefUnitTestResultPrinter); } #if GTEST_CAN_STREAM_RESULTS_ // Configures listeners for streaming test results to the specified server. ConfigureStreamingOutput(); #endif // GTEST_CAN_STREAM_RESULTS_ #ifdef GTEST_HAS_ABSL if (GTEST_FLAG_GET(install_failure_signal_handler)) { absl::FailureSignalHandlerOptions options; absl::InstallFailureSignalHandler(options); } #endif // GTEST_HAS_ABSL } }
O0
cpp
testing::internal::UnitTestImpl::PostFlagParsingInit(): subq $0x28, %rsp movq %rdi, 0x20(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x18(%rsp) testb $0x1, 0x288(%rax) jne 0x3d3c6 movq 0x18(%rsp), %rdi movb $0x1, 0x288(%rdi) callq 0x4e0f0 movq 0x18(%rsp), %rdi callq 0x3cd90 movq 0x18(%rsp), %rdi callq 0x29720 movq 0x18(%rsp), %rdi callq 0x3cde0 leaq 0x5f31e(%rip), %rax # 0x9c6a0 testb $0x1, (%rax) je 0x3d3bc movq 0x18(%rsp), %rdi callq 0x45860 movq %rax, 0x8(%rsp) movl $0x8, %edi callq 0xb480 movq %rax, %rdi movq %rdi, 0x10(%rsp) callq 0x4e120 movq 0x8(%rsp), %rdi movq 0x10(%rsp), %rsi callq 0x3b690 movq 0x18(%rsp), %rdi callq 0x3d100 addq $0x28, %rsp retq nopl (%rax,%rax)
_ZN7testing8internal12UnitTestImpl19PostFlagParsingInitEv: sub rsp, 28h mov [rsp+28h+var_8], rdi mov rax, [rsp+28h+var_8] mov [rsp+28h+var_10], rax test byte ptr [rax+288h], 1 jnz short loc_3D3C6 mov rdi, [rsp+28h+var_10]; this mov byte ptr [rdi+288h], 1 call _ZN7testing8internal12UnitTestImpl34InitDeathTestSubprocessControlInfoEv; testing::internal::UnitTestImpl::InitDeathTestSubprocessControlInfo(void) mov rdi, [rsp+28h+var_10]; this call _ZN7testing8internal12UnitTestImpl32SuppressTestEventsIfInSubprocessEv; testing::internal::UnitTestImpl::SuppressTestEventsIfInSubprocess(void) mov rdi, [rsp+28h+var_10]; this call _ZN7testing8internal12UnitTestImpl26RegisterParameterizedTestsEv; testing::internal::UnitTestImpl::RegisterParameterizedTests(void) mov rdi, [rsp+28h+var_10]; this call _ZN7testing8internal12UnitTestImpl18ConfigureXmlOutputEv; testing::internal::UnitTestImpl::ConfigureXmlOutput(void) lea rax, _ZN7testing17FLAGS_gtest_briefE; testing::FLAGS_gtest_brief test byte ptr [rax], 1 jz short loc_3D3BC mov rdi, [rsp+28h+var_10]; this call _ZN7testing8internal12UnitTestImpl9listenersEv; testing::internal::UnitTestImpl::listeners(void) mov [rsp+28h+var_20], rax mov edi, 8; unsigned __int64 call __Znwm; operator new(ulong) mov rdi, rax; this mov [rsp+28h+var_18], rdi call _ZN7testing8internal26BriefUnitTestResultPrinterC2Ev; testing::internal::BriefUnitTestResultPrinter::BriefUnitTestResultPrinter(void) mov rdi, [rsp+28h+var_20]; this mov rsi, [rsp+28h+var_18]; testing::TestEventListener * call _ZN7testing18TestEventListeners23SetDefaultResultPrinterEPNS_17TestEventListenerE; testing::TestEventListeners::SetDefaultResultPrinter(testing::TestEventListener *) loc_3D3BC: mov rdi, [rsp+28h+var_10]; this call _ZN7testing8internal12UnitTestImpl24ConfigureStreamingOutputEv; testing::internal::UnitTestImpl::ConfigureStreamingOutput(void) loc_3D3C6: add rsp, 28h retn
void testing::internal::UnitTestImpl::PostFlagParsingInit(testing::internal::UnitTestImpl *this, long long a2) { int v2; // edx int v3; // ecx int v4; // r8d int v5; // r9d testing::TestEventListeners *v6; // [rsp+8h] [rbp-20h] testing::TestEventListener *v7; // [rsp+10h] [rbp-18h] if ( (*((_BYTE *)this + 648) & 1) == 0 ) { *((_BYTE *)this + 648) = 1; testing::internal::UnitTestImpl::InitDeathTestSubprocessControlInfo(this); testing::internal::UnitTestImpl::SuppressTestEventsIfInSubprocess(this); testing::internal::UnitTestImpl::RegisterParameterizedTests(this); testing::internal::UnitTestImpl::ConfigureXmlOutput(this, a2, v2, v3, v4, v5); if ( (testing::FLAGS_gtest_brief & 1) != 0 ) { v6 = (testing::TestEventListeners *)testing::internal::UnitTestImpl::listeners(this); v7 = (testing::TestEventListener *)operator new(8uLL); testing::internal::BriefUnitTestResultPrinter::BriefUnitTestResultPrinter(v7); testing::TestEventListeners::SetDefaultResultPrinter(v6, v7); } testing::internal::UnitTestImpl::ConfigureStreamingOutput(this); } }
PostFlagParsingInit: SUB RSP,0x28 MOV qword ptr [RSP + 0x20],RDI MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x18],RAX TEST byte ptr [RAX + 0x288],0x1 JNZ 0x0013d3c6 MOV RDI,qword ptr [RSP + 0x18] MOV byte ptr [RDI + 0x288],0x1 CALL 0x0014e0f0 MOV RDI,qword ptr [RSP + 0x18] CALL 0x0013cd90 MOV RDI,qword ptr [RSP + 0x18] CALL 0x00129720 MOV RDI,qword ptr [RSP + 0x18] CALL 0x0013cde0 LEA RAX,[0x19c6a0] TEST byte ptr [RAX],0x1 JZ 0x0013d3bc MOV RDI,qword ptr [RSP + 0x18] CALL 0x00145860 MOV qword ptr [RSP + 0x8],RAX MOV EDI,0x8 CALL 0x0010b480 MOV RDI,RAX MOV qword ptr [RSP + 0x10],RDI CALL 0x0014e120 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP + 0x10] CALL 0x0013b690 LAB_0013d3bc: MOV RDI,qword ptr [RSP + 0x18] CALL 0x0013d100 LAB_0013d3c6: ADD RSP,0x28 RET
/* testing::internal::UnitTestImpl::PostFlagParsingInit() */ void __thiscall testing::internal::UnitTestImpl::PostFlagParsingInit(UnitTestImpl *this) { TestEventListeners *this_00; BriefUnitTestResultPrinter *this_01; if (((byte)this[0x288] & 1) == 0) { this[0x288] = (UnitTestImpl)0x1; InitDeathTestSubprocessControlInfo(this); SuppressTestEventsIfInSubprocess(this); RegisterParameterizedTests(this); ConfigureXmlOutput(this); if ((FLAGS_gtest_brief & 1) != 0) { this_00 = (TestEventListeners *)listeners(this); this_01 = (BriefUnitTestResultPrinter *)operator_new(8); BriefUnitTestResultPrinter::BriefUnitTestResultPrinter(this_01); TestEventListeners::SetDefaultResultPrinter(this_00,(TestEventListener *)this_01); } ConfigureStreamingOutput(this); } return; }
6,222
mujoco::plugin::sdf::SdfDefault<mujoco::plugin::sdf::TorusAttribute>::SdfDefault()
aimrt_mujoco_sim/_deps/mujoco-src/plugin/sdf/sdf.h
SdfDefault() { for (int i = 0; i < T::nattribute; i++) { default_[T::names[i]] = T::defaults[i]; } }
O0
c
mujoco::plugin::sdf::SdfDefault<mujoco::plugin::sdf::TorusAttribute>::SdfDefault(): subq $0x78, %rsp movq %rdi, 0x70(%rsp) movq 0x70(%rsp), %rdi movq %rdi, 0x28(%rsp) callq 0x214d0 movl $0x0, 0x6c(%rsp) cmpl $0x2, 0x6c(%rsp) jge 0x2acd6 movq 0x28(%rsp), %rax movslq 0x6c(%rsp), %rcx leaq 0xe8774(%rip), %rdx # 0x113380 vmovsd (%rdx,%rcx,8), %xmm0 vmovsd %xmm0, 0x8(%rsp) movq %rax, 0x10(%rsp) leaq 0x12e53d(%rip), %rax # 0x159160 movq (%rax,%rcx,8), %rax movq %rax, 0x18(%rsp) leaq 0x47(%rsp), %rdi movq %rdi, 0x20(%rsp) callq 0x19dd0 movq 0x18(%rsp), %rsi movq 0x20(%rsp), %rdx leaq 0x48(%rsp), %rdi callq 0x1c7d0 jmp 0x2ac51 movq 0x10(%rsp), %rdi leaq 0x48(%rsp), %rsi callq 0x214e0 movq %rax, (%rsp) jmp 0x2ac66 movq (%rsp), %rax vmovsd 0x8(%rsp), %xmm0 vmovsd %xmm0, (%rax) leaq 0x48(%rsp), %rdi callq 0x19e70 leaq 0x47(%rsp), %rdi callq 0x19de0 movl 0x6c(%rsp), %eax addl $0x1, %eax movl %eax, 0x6c(%rsp) jmp 0x2abf0 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) jmp 0x2acc0 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x38(%rsp) movl %eax, 0x34(%rsp) leaq 0x48(%rsp), %rdi callq 0x19e70 leaq 0x47(%rsp), %rdi callq 0x19de0 movq 0x28(%rsp), %rdi callq 0x20800 jmp 0x2acdb addq $0x78, %rsp retq movq 0x38(%rsp), %rdi callq 0x19e80 nopw %cs:(%rax,%rax)
_ZN6mujoco6plugin3sdf10SdfDefaultINS1_14TorusAttributeEEC2Ev: sub rsp, 78h mov [rsp+78h+var_8], rdi mov rdi, [rsp+78h+var_8] mov [rsp+78h+var_50], rdi call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdSt4lessIS5_ESaISt4pairIKS5_dEEEC2Ev; std::map<std::string,double>::map(void) mov [rsp+78h+var_C], 0 loc_2ABF0: cmp [rsp+78h+var_C], 2 jge loc_2ACD6 mov rax, [rsp+78h+var_50] movsxd rcx, [rsp+78h+var_C] lea rdx, _ZN6mujoco6plugin3sdf14TorusAttribute8defaultsE; mujoco::plugin::sdf::TorusAttribute::defaults vmovsd xmm0, qword ptr [rdx+rcx*8] vmovsd [rsp+78h+var_70], xmm0 mov [rsp+78h+var_68], rax lea rax, _ZN6mujoco6plugin3sdf14TorusAttribute5namesE; mujoco::plugin::sdf::TorusAttribute::names mov rax, [rax+rcx*8] mov [rsp+78h+var_60], rax lea rdi, [rsp+78h+var_31] mov [rsp+78h+var_58], rdi call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rsi, [rsp+78h+var_60] mov rdx, [rsp+78h+var_58] lea rdi, [rsp+78h+var_30] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_2AC51: mov rdi, [rsp+78h+var_68] lea rsi, [rsp+78h+var_30] call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdSt4lessIS5_ESaISt4pairIKS5_dEEEixEOS5_; std::map<std::string,double>::operator[](std::string&&) mov [rsp+78h+var_78], rax jmp short $+2 loc_2AC66: mov rax, [rsp+78h+var_78] vmovsd xmm0, [rsp+78h+var_70] vmovsd qword ptr [rax], xmm0 lea rdi, [rsp+78h+var_30] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() lea rdi, [rsp+78h+var_31] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() mov eax, [rsp+78h+var_C] add eax, 1 mov [rsp+78h+var_C], eax jmp loc_2ABF0 mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax jmp short loc_2ACC0 mov rcx, rax mov eax, edx mov [rsp+arg_30], rcx mov [rsp+arg_2C], eax lea rdi, [rsp+arg_40] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_2ACC0: lea rdi, [rsp+arg_3F] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() mov rdi, [rsp+arg_20] call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdSt4lessIS5_ESaISt4pairIKS5_dEEED2Ev; std::map<std::string,double>::~map() jmp short loc_2ACDB loc_2ACD6: add rsp, 78h retn loc_2ACDB: mov rdi, [rsp+arg_30] call __Unwind_Resume
long long mujoco::plugin::sdf::SdfDefault<mujoco::plugin::sdf::TorusAttribute>::SdfDefault(long long a1) { long long result; // rax char *v8; // [rsp+18h] [rbp-60h] char v9; // [rsp+47h] [rbp-31h] BYREF _BYTE v10[36]; // [rsp+48h] [rbp-30h] BYREF int i; // [rsp+6Ch] [rbp-Ch] long long v12; // [rsp+70h] [rbp-8h] v12 = a1; result = std::map<std::string,double>::map(a1); for ( i = 0; i < 2; ++i ) { _RCX = i; _RDX = &mujoco::plugin::sdf::TorusAttribute::defaults; __asm { vmovsd xmm0, qword ptr [rdx+rcx*8] vmovsd [rsp+78h+var_70], xmm0 } v8 = mujoco::plugin::sdf::TorusAttribute::names[i]; std::allocator<char>::allocator(); std::string::basic_string<std::allocator<char>>((long long)v10, (long long)v8, (long long)&v9); _RAX = std::map<std::string,double>::operator[](a1, (long long)v10); __asm { vmovsd xmm0, [rsp+78h+var_70] vmovsd qword ptr [rax], xmm0 } std::string::~string(v10); std::allocator<char>::~allocator(&v9); result = (unsigned int)(i + 1); } return result; }
SdfDefault: SUB RSP,0x78 MOV qword ptr [RSP + 0x70],RDI MOV RDI,qword ptr [RSP + 0x70] MOV qword ptr [RSP + 0x28],RDI CALL 0x001214d0 MOV dword ptr [RSP + 0x6c],0x0 LAB_0012abf0: CMP dword ptr [RSP + 0x6c],0x2 JGE 0x0012acd6 MOV RAX,qword ptr [RSP + 0x28] MOVSXD RCX,dword ptr [RSP + 0x6c] LEA RDX,[0x213380] VMOVSD XMM0,qword ptr [RDX + RCX*0x8] VMOVSD qword ptr [RSP + 0x8],XMM0 MOV qword ptr [RSP + 0x10],RAX LEA RAX,[0x259160] MOV RAX,qword ptr [RAX + RCX*0x8] MOV qword ptr [RSP + 0x18],RAX LEA RDI,[RSP + 0x47] MOV qword ptr [RSP + 0x20],RDI CALL 0x00119dd0 MOV RSI,qword ptr [RSP + 0x18] MOV RDX,qword ptr [RSP + 0x20] LAB_0012ac45: LEA RDI,[RSP + 0x48] CALL 0x0011c7d0 JMP 0x0012ac51 LAB_0012ac51: MOV RDI,qword ptr [RSP + 0x10] LEA RSI,[RSP + 0x48] CALL 0x001214e0 LAB_0012ac60: MOV qword ptr [RSP],RAX JMP 0x0012ac66 LAB_0012ac66: MOV RAX,qword ptr [RSP] VMOVSD XMM0,qword ptr [RSP + 0x8] VMOVSD qword ptr [RAX],XMM0 LEA RDI,[RSP + 0x48] CALL 0x00119e70 LEA RDI,[RSP + 0x47] CALL 0x00119de0 MOV EAX,dword ptr [RSP + 0x6c] ADD EAX,0x1 MOV dword ptr [RSP + 0x6c],EAX JMP 0x0012abf0 LAB_0012acd6: ADD RSP,0x78 RET
/* mujoco::plugin::sdf::SdfDefault<mujoco::plugin::sdf::TorusAttribute>::SdfDefault() */ void __thiscall mujoco::plugin::sdf::SdfDefault<mujoco::plugin::sdf::TorusAttribute>::SdfDefault (SdfDefault<mujoco::plugin::sdf::TorusAttribute> *this) { int8 uVar1; char *pcVar2; int8 *puVar3; allocator local_31; string local_30 [36]; int local_c; SdfDefault<mujoco::plugin::sdf::TorusAttribute> *local_8; local_8 = this; std:: map<std::__cxx11::string,double,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,double>>> ::map((map<std::__cxx11::string,double,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,double>>> *)this); for (local_c = 0; local_c < 2; local_c = local_c + 1) { uVar1 = *(int8 *)(TorusAttribute::defaults + (long)local_c * 8); pcVar2 = *(char **)(TorusAttribute::names + (long)local_c * 8); std::allocator<char>::allocator(); /* try { // try from 0012ac45 to 0012ac4e has its CatchHandler @ 0012ac98 */ std::__cxx11::string::string<std::allocator<char>>(local_30,pcVar2,&local_31); /* try { // try from 0012ac51 to 0012ac5f has its CatchHandler @ 0012aca8 */ puVar3 = (int8 *) std:: map<std::__cxx11::string,double,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,double>>> ::operator[]((map<std::__cxx11::string,double,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,double>>> *)this,local_30); *puVar3 = uVar1; std::__cxx11::string::~string(local_30); std::allocator<char>::~allocator((allocator<char> *)&local_31); } return; }
6,223
mujoco::plugin::sdf::SdfDefault<mujoco::plugin::sdf::TorusAttribute>::SdfDefault()
aimrt_mujoco_sim/_deps/mujoco-src/plugin/sdf/sdf.h
SdfDefault() { for (int i = 0; i < T::nattribute; i++) { default_[T::names[i]] = T::defaults[i]; } }
O3
c
mujoco::plugin::sdf::SdfDefault<mujoco::plugin::sdf::TorusAttribute>::SdfDefault(): pushq %r15 pushq %r14 pushq %rbx subq $0x20, %rsp movq %rdi, %rbx leaq 0x8(%rdi), %rax movl $0x0, 0x8(%rdi) xorl %ecx, %ecx movq %rcx, 0x10(%rdi) movq %rax, 0x18(%rdi) movq %rax, 0x20(%rdi) movq %rcx, 0x28(%rdi) leaq 0x10(%rsp), %r15 movq %r15, -0x10(%r15) leaq 0x3bd4e(%rip), %rsi # 0x4a7b9 leaq 0x3bd4d(%rip), %rdx # 0x4a7bf movq %rsp, %rdi callq 0xa930 movq %rsp, %rsi movq %rbx, %rdi callq 0xcdee movabsq $0x3fd0a3d70a3d70a4, %rcx # imm = 0x3FD0A3D70A3D70A4 movq %rcx, (%rax) movq (%rsp), %rdi cmpq %r15, %rdi je 0xeaa8 movq 0x10(%rsp), %rsi incq %rsi callq 0xa910 addq $0x20, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %r14 movq (%rsp), %rdi cmpq %r15, %rdi je 0xead0 movq 0x10(%rsp), %rsi incq %rsi callq 0xa910 jmp 0xead0 movq %rax, %r14 movq %rbx, %rdi callq 0xcb24 movq %r14, %rdi callq 0xa950
_ZN6mujoco6plugin3sdf10SdfDefaultINS1_12NutAttributeEEC2Ev: push r15 push r14 push rbx sub rsp, 20h mov rbx, rdi lea rax, [rdi+8] mov dword ptr [rdi+8], 0 xor ecx, ecx mov [rdi+10h], rcx mov [rdi+18h], rax mov [rdi+20h], rax mov [rdi+28h], rcx lea r15, [rsp+38h+var_28] mov [r15-10h], r15 lea rsi, aRadius; "radius" lea rdx, aRadius+6; "" mov rdi, rsp 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, rsp mov rdi, rbx call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEdSt4lessIS5_ESaISt4pairIKS5_dEEEixEOS5_; std::map<std::string,double>::operator[](std::string&&) mov rcx, 3FD0A3D70A3D70A4h mov [rax], rcx mov rdi, [rsp+38h+var_38]; void * cmp rdi, r15 jz short loc_EAA8 mov rsi, [rsp+38h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_EAA8: add rsp, 20h pop rbx pop r14 pop r15 retn mov r14, rax mov rdi, [rsp+0]; void * cmp rdi, r15 jz short loc_EAD0 mov rsi, [rsp+arg_8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_EAD0 mov r14, rax loc_EAD0: mov rdi, rbx call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_dESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EED2Ev; std::_Rb_tree<std::string,std::pair<std::string const,double>,std::_Select1st<std::pair<std::string const,double>>,std::less<std::string>,std::allocator<std::pair<std::string const,double>>>::~_Rb_tree() mov rdi, r14 call __Unwind_Resume
void mujoco::plugin::sdf::SdfDefault<mujoco::plugin::sdf::NutAttribute>::SdfDefault(long long a1) { void *v1[2]; // [rsp+0h] [rbp-38h] BYREF _QWORD v2[5]; // [rsp+10h] [rbp-28h] BYREF *(_DWORD *)(a1 + 8) = 0; *(_QWORD *)(a1 + 16) = 0LL; *(_QWORD *)(a1 + 24) = a1 + 8; *(_QWORD *)(a1 + 32) = a1 + 8; *(_QWORD *)(a1 + 40) = 0LL; v1[0] = v2; std::string::_M_construct<char const*>(v1, "radius", ""); *(_QWORD *)std::map<std::string,double>::operator[](a1, (long long)v1) = 0x3FD0A3D70A3D70A4LL; if ( v1[0] != v2 ) operator delete(v1[0], v2[0] + 1LL); }
SdfDefault: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x20 MOV RBX,RDI LEA RAX,[RDI + 0x8] MOV dword ptr [RDI + 0x8],0x0 XOR ECX,ECX MOV qword ptr [RDI + 0x10],RCX MOV qword ptr [RDI + 0x18],RAX MOV qword ptr [RDI + 0x20],RAX MOV qword ptr [RDI + 0x28],RCX LEA R15,[RSP + 0x10] MOV qword ptr [R15 + -0x10],R15 LAB_0010ea64: LEA RSI,[0x14a7b9] LEA RDX,[0x14a7bf] MOV RDI,RSP CALL 0x0010a930 LAB_0010ea7a: MOV RSI,RSP MOV RDI,RBX CALL 0x0010cdee LAB_0010ea85: MOV RCX,0x3fd0a3d70a3d70a4 MOV qword ptr [RAX],RCX MOV RDI,qword ptr [RSP] CMP RDI,R15 JZ 0x0010eaa8 MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x0010a910 LAB_0010eaa8: ADD RSP,0x20 POP RBX POP R14 POP R15 RET
/* mujoco::plugin::sdf::SdfDefault<mujoco::plugin::sdf::NutAttribute>::SdfDefault() */ void __thiscall mujoco::plugin::sdf::SdfDefault<mujoco::plugin::sdf::NutAttribute>::SdfDefault (SdfDefault<mujoco::plugin::sdf::NutAttribute> *this) { int8 *puVar1; long *local_38 [2]; long local_28 [2]; *(int4 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(SdfDefault<mujoco::plugin::sdf::NutAttribute> **)(this + 0x18) = this + 8; *(SdfDefault<mujoco::plugin::sdf::NutAttribute> **)(this + 0x20) = this + 8; *(int8 *)(this + 0x28) = 0; local_38[0] = local_28; /* try { // try from 0010ea64 to 0010ea79 has its CatchHandler @ 0010eacd */ std::__cxx11::string::_M_construct<char_const*>(local_38,"radius",""); /* try { // try from 0010ea7a to 0010ea84 has its CatchHandler @ 0010eab2 */ puVar1 = (int8 *) std:: map<std::__cxx11::string,double,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,double>>> ::operator[]((map<std::__cxx11::string,double,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,double>>> *)this,(string *)local_38); *puVar1 = 0x3fd0a3d70a3d70a4; if (local_38[0] != local_28) { operator_delete(local_38[0],local_28[0] + 1); } return; }
6,224
parse_json_tool_calls(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::optional<std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char>>> const&, std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char>> const&, std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char>> const&)
monkey531[P]llama/common/chat.cpp
static common_chat_msg parse_json_tool_calls( const std::string& input, const std::optional<std::regex> & trigger_opt, const std::regex & function_regex, const std::regex & close_regex) { std::smatch match; common_chat_msg result; result.role = "assistant"; auto end = input.end(); auto it = input.begin(); if (trigger_opt) { if (!std::regex_search(it, end, match, *trigger_opt)) { result.content = input; return result; } result.content = match.prefix().str(); it = match.suffix().first; } while (it != end) { std::sregex_iterator rend; std::sregex_iterator rit(it, end, function_regex); if (rit == rend) { fprintf(stderr, "No more tool calls found\n"); result.content += std::string(it, end); break; } auto name = rit->str(1); result.content += std::string(it, rit->prefix().second); it = rit->suffix().first; json arguments; if (!parse_json(it, end, arguments)) { throw std::runtime_error("Failed to parse json tool call arguments"); } if (!std::regex_search(it, end, match, close_regex)) { throw std::runtime_error("Malformed input, missing closing pattern"); } it = match.suffix().first; result.tool_calls.push_back({name, arguments.is_string() ? arguments.get<std::string>() : arguments.dump(), /* id= */ ""}); } return result; }
O2
cpp
parse_json_tool_calls(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::optional<std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char>>> const&, std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char>> const&, std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x188, %rsp # imm = 0x188 movq %r8, 0x58(%rsp) movq %rcx, 0x60(%rsp) movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %r12 xorps %xmm0, %xmm0 movaps %xmm0, 0x30(%rsp) movaps %xmm0, 0x20(%rsp) callq 0xc47e0 leaq 0xdf74(%rip), %rsi # 0xd07b0 movq %r12, %rdi callq 0x27890 movq (%r14), %rbx movq 0x8(%r14), %rbp addq %rbx, %rbp movq %rbp, 0x68(%rsp) movq %rbx, 0x18(%rsp) cmpb $0x1, 0x20(%r15) movq %r12, 0x10(%rsp) jne 0xc2905 leaq 0x20(%rsp), %rdx movq %rbx, %rdi movq %rbp, %rsi movq %r15, %rcx xorl %r8d, %r8d callq 0x6d9ae testb %al, %al je 0xc2ba6 movq 0x28(%rsp), %rsi movq %rsi, %rax subq 0x20(%rsp), %rax cqto pushq $0x18 popq %r14 idivq %r14 leaq -0x30(%rsi), %rcx addq $-0x48, %rsi cmpq $0x4, %rax cmovaeq %rcx, %rsi leaq 0x80(%rsp), %rdi movq 0x10(%rsp), %r12 callq 0x6e59e leaq 0x20(%r12), %rdi leaq 0x80(%rsp), %rbx movq %rbx, %rsi callq 0x26f10 movq %rbx, %rdi callq 0x27998 movq 0x28(%rsp), %rcx movq %rcx, %rax subq 0x20(%rsp), %rax cqto idivq %r14 leaq -0x18(%rcx), %rdx addq $-0x48, %rcx cmpq $0x4, %rax cmovaeq %rdx, %rcx movq (%rcx), %rbx movq %rbx, 0x18(%rsp) leaq 0x20(%r12), %rax movq %rax, 0x48(%rsp) leaq 0x40(%r12), %rax movq %rax, 0x50(%rsp) leaq 0x100(%rsp), %r12 leaq 0x80(%rsp), %r13 leaq 0x70(%rsp), %r15 cmpq %rbp, %rbx je 0xc2bb7 leaq 0x160(%rsp), %rax xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rax) movups %xmm0, (%rax) movups %xmm0, 0x14c(%rsp) movaps %xmm0, 0x140(%rsp) movq %r12, %rdi movq %rbx, %rsi movq %rbp, %rdx movq 0x60(%rsp), %rcx xorl %r8d, %r8d callq 0x6d7f6 movq %r12, %r14 movq %r12, %rdi leaq 0x140(%rsp), %rsi callq 0x6dc30 movl %eax, %r12d testb %al, %al jne 0xc2b5a leaq 0xe0(%rsp), %rdi leaq 0x120(%rsp), %rsi pushq $0x1 popq %rdx callq 0xadf3c movq 0x128(%rsp), %rcx movq %rcx, %rax subq 0x120(%rsp), %rax cqto pushq $0x18 popq %rsi idivq %rsi leaq -0x30(%rcx), %rdx addq $-0x48, %rcx cmpq $0x4, %rax cmovaeq %rdx, %rcx movq 0x8(%rcx), %rdx leaq 0x90(%rsp), %rax movq %rax, 0x80(%rsp) movq %r13, %rdi movq %rbx, %rsi callq 0x6e5d8 movq 0x48(%rsp), %rdi movq %r13, %rsi callq 0x278e0 movq %r13, %rdi callq 0x27998 movq 0x128(%rsp), %rcx movq %rcx, %rax subq 0x120(%rsp), %rax cqto pushq $0x18 popq %rsi idivq %rsi leaq -0x18(%rcx), %rdx addq $-0x48, %rcx cmpq $0x4, %rax cmovaeq %rdx, %rcx movq (%rcx), %rax movq %rax, 0x18(%rsp) movq %r15, %rdi xorl %esi, %esi callq 0x648e2 leaq 0x18(%rsp), %rdi leaq 0x68(%rsp), %rsi movq %r15, %rdx callq 0xc2d12 testb %al, %al je 0xc2bd8 movq 0x18(%rsp), %rdi movq %rbp, %rsi leaq 0x20(%rsp), %rdx movq 0x58(%rsp), %rcx xorl %r8d, %r8d callq 0x6d9ae testb %al, %al je 0xc2bf4 movq 0x28(%rsp), %rcx movq %rcx, %rax subq 0x20(%rsp), %rax cqto pushq $0x18 popq %rsi idivq %rsi leaq -0x18(%rcx), %rdx addq $-0x48, %rcx cmpq $0x4, %rax cmovaeq %rdx, %rcx movq (%rcx), %rbx movq %rbx, 0x18(%rsp) movq %r13, %rdi leaq 0xe0(%rsp), %rsi callq 0x27120 cmpb $0x3, 0x70(%rsp) jne 0xc2ad3 leaq 0xa0(%rsp), %rdi movq %r15, %rsi callq 0x7fcae jmp 0xc2aef leaq 0xa0(%rsp), %rdi movq %r15, %rsi pushq $-0x1 popq %rdx pushq $0x20 popq %rcx xorl %r8d, %r8d xorl %r9d, %r9d callq 0x791c8 leaq 0xc0(%rsp), %rdi leaq 0x2a0b(%rip), %rsi # 0xc5509 leaq 0xf(%rsp), %rdx callq 0x2b096 movq 0x50(%rsp), %rdi movq %r13, %rsi callq 0xc4864 movq %r13, %rdi callq 0xa6326 movq %r15, %rdi callq 0x69708 leaq 0xe0(%rsp), %rdi callq 0x27998 leaq 0x120(%rsp), %rdi callq 0x4dee8 leaq 0x160(%rsp), %rdi callq 0x4dee8 testb %r12b, %r12b movq %r14, %r12 je 0xc292e jmp 0xc2bb7 movq 0x5e417(%rip), %rax # 0x120f78 movq (%rax), %rcx leaq 0x156c1(%rip), %rdi # 0xd822c pushq $0x19 popq %rsi pushq $0x1 popq %rdx callq 0x278c0 leaq 0x90(%rsp), %rax movq %rax, 0x80(%rsp) movq %r13, %rdi movq %rbx, %rsi movq %rbp, %rdx callq 0x6e5d8 movq 0x48(%rsp), %rdi movq %r13, %rsi callq 0x278e0 movq %r13, %rdi jmp 0xc2b2d movq 0x10(%rsp), %rax leaq 0x20(%rax), %rdi movq %r14, %rsi callq 0x26670 leaq 0x20(%rsp), %rdi callq 0x4dee8 movq 0x10(%rsp), %rax addq $0x188, %rsp # imm = 0x188 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq pushq $0x10 popq %rdi callq 0x265e0 movq %rax, %r14 leaq 0x1565c(%rip), %rsi # 0xd8246 movq %rax, %rdi callq 0x26420 jmp 0xc2c0e pushq $0x10 popq %rdi callq 0x265e0 movq %rax, %r14 leaq 0x15669(%rip), %rsi # 0xd826f movq %rax, %rdi callq 0x26420 movq 0x5e3d3(%rip), %rsi # 0x120fe8 movq 0x5e32c(%rip), %rdx # 0x120f48 movq %r14, %rdi callq 0x275b0 jmp 0xc2c45 movq %rax, %rbx leaq 0x80(%rsp), %rdi jmp 0xc2cd4 jmp 0xc2cb5 movq %rax, %rbx movq 0x10(%rsp), %r12 jmp 0xc2cf8 movq %rax, %rbx jmp 0xc2cf8 movq %rax, %rbx jmp 0xc2d00 jmp 0xc2c57 movq %rax, %rbx movq %r14, %rdi callq 0x268f0 jmp 0xc2cc2 movq %rax, %rbx leaq 0xa0(%rsp), %rdi callq 0x27998 jmp 0xc2c79 movq %rax, %rbx leaq 0x80(%rsp), %rdi callq 0x27998 jmp 0xc2cc2 movq %rax, %rbx leaq 0x80(%rsp), %rdi callq 0xa6326 jmp 0xc2cc2 movq %rax, %rbx leaq 0x80(%rsp), %rdi callq 0x27998 jmp 0xc2ccc jmp 0xc2cbf movq %rax, %rbx jmp 0xc2ccc jmp 0xc2cbf movq %rax, %rbx jmp 0xc2cd9 movq %rax, %rbx jmp 0xc2ce6 movq %rax, %rbx leaq 0x70(%rsp), %rdi callq 0x69708 leaq 0xe0(%rsp), %rdi callq 0x27998 leaq 0x120(%rsp), %rdi callq 0x4dee8 movq 0x10(%rsp), %r12 leaq 0x160(%rsp), %rdi callq 0x4dee8 movq %r12, %rdi callq 0x78484 leaq 0x20(%rsp), %rdi callq 0x4dee8 movq %rbx, %rdi callq 0x27660
_ZL21parse_json_tool_callsRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt8optionalINS_11basic_regexIcNS_12regex_traitsIcEEEEERKSB_SG_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 188h mov [rsp+1B8h+var_160], r8 mov [rsp+1B8h+var_158], rcx mov r15, rdx mov r14, rsi mov r12, rdi xorps xmm0, xmm0 movaps [rsp+1B8h+var_188], xmm0 movaps [rsp+1B8h+var_198], xmm0 call _ZN15common_chat_msgC2Ev; common_chat_msg::common_chat_msg(void) lea rsi, aYouAreAHelpful+12h; "assistant" mov rdi, r12 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6assignEPKc; std::string::assign(char const*) mov rbx, [r14] mov rbp, [r14+8] add rbp, rbx mov [rsp+1B8h+var_150], rbp mov [rsp+1B8h+var_1A0], rbx cmp byte ptr [r15+20h], 1 mov [rsp+1B8h+var_1A8], r12 jnz loc_C2905 lea rdx, [rsp+1B8h+var_198] mov rdi, rbx mov rsi, rbp mov rcx, r15 xor r8d, r8d call _ZNSt8__detail17__regex_algo_implIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESaINS5_9sub_matchISB_EEEcNS5_12regex_traitsIcEELNS_20_RegexExecutorPolicyE0ELb0EEEbT_SI_RNS5_13match_resultsISI_T0_EERKNS5_11basic_regexIT1_T2_EENSt15regex_constants15match_flag_typeE; std::__detail::__regex_algo_impl<__gnu_cxx::__normal_iterator<char const*,std::string>,std::allocator<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>,char,std::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,false>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>> &,std::basic_regex<char,std::regex_traits<char>> const&,std::regex_constants::match_flag_type) test al, al jz loc_C2BA6 mov rsi, qword ptr [rsp+1B8h+var_198+8] mov rax, rsi sub rax, qword ptr [rsp+1B8h+var_198] cqo push 18h pop r14 idiv r14 lea rcx, [rsi-30h] add rsi, 0FFFFFFFFFFFFFFB8h cmp rax, 4 cmovnb rsi, rcx lea rdi, [rsp+1B8h+var_138] mov r12, [rsp+1B8h+var_1A8] call _ZNKSt7__cxx119sub_matchIN9__gnu_cxx17__normal_iteratorIPKcNS_12basic_stringIcSt11char_traitsIcESaIcEEEEEE3strEv; std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>::str(void) lea rdi, [r12+20h] lea rbx, [rsp+1B8h+var_138] mov rsi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov rdi, rbx; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rcx, qword ptr [rsp+1B8h+var_198+8] mov rax, rcx sub rax, qword ptr [rsp+1B8h+var_198] cqo idiv r14 lea rdx, [rcx-18h] add rcx, 0FFFFFFFFFFFFFFB8h cmp rax, 4 cmovnb rcx, rdx mov rbx, [rcx] mov [rsp+1B8h+var_1A0], rbx loc_C2905: lea rax, [r12+20h] mov [rsp+1B8h+var_170], rax lea rax, [r12+40h] mov [rsp+1B8h+var_168], rax lea r12, [rsp+1B8h+var_B8] lea r13, [rsp+1B8h+var_138] lea r15, [rsp+1B8h+var_148] loc_C292E: cmp rbx, rbp jz loc_C2BB7 lea rax, [rsp+1B8h+var_58] xorps xmm0, xmm0 movups xmmword ptr [rax+10h], xmm0 movups xmmword ptr [rax], xmm0 movups [rsp+1B8h+var_6C], xmm0 movaps xmmword ptr [rsp+140h], xmm0 mov rdi, r12 mov rsi, rbx mov rdx, rbp mov rcx, [rsp+1B8h+var_158] xor r8d, r8d call _ZNSt7__cxx1114regex_iteratorIN9__gnu_cxx17__normal_iteratorIPKcNS_12basic_stringIcSt11char_traitsIcESaIcEEEEEcNS_12regex_traitsIcEEEC2ESA_SA_RKNS_11basic_regexIcSC_EENSt15regex_constants15match_flag_typeE; std::regex_iterator<__gnu_cxx::__normal_iterator<char const*,std::string>,char,std::regex_traits<char>>::regex_iterator(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::basic_regex<char,std::regex_traits<char>> const&,std::regex_constants::match_flag_type) mov r14, r12 mov rdi, r12 lea rsi, [rsp+1B8h+var_78] call _ZNKSt7__cxx1114regex_iteratorIN9__gnu_cxx17__normal_iteratorIPKcNS_12basic_stringIcSt11char_traitsIcESaIcEEEEEcNS_12regex_traitsIcEEEeqERKSD_; std::regex_iterator<__gnu_cxx::__normal_iterator<char const*,std::string>,char,std::regex_traits<char>>::operator==(std::regex_iterator<__gnu_cxx::__normal_iterator<char const*,std::string>,char,std::regex_traits<char>> const&) mov r12d, eax test al, al jnz loc_C2B5A lea rdi, [rsp+1B8h+var_D8] lea rsi, [rsp+1B8h+var_98] push 1 pop rdx call _ZNKSt7__cxx1113match_resultsIN9__gnu_cxx17__normal_iteratorIPKcNS_12basic_stringIcSt11char_traitsIcESaIcEEEEESaINS_9sub_matchISA_EEEE3strEm; std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>>::str(ulong) mov rcx, [rsp+1B8h+var_90] mov rax, rcx sub rax, [rsp+1B8h+var_98] cqo push 18h pop rsi idiv rsi lea rdx, [rcx-30h] add rcx, 0FFFFFFFFFFFFFFB8h cmp rax, 4 cmovnb rcx, rdx mov rdx, [rcx+8] lea rax, [rsp+1B8h+var_128] mov [rsp+1B8h+var_138], rax mov rdi, r13 mov rsi, rbx 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 rdi, [rsp+1B8h+var_170] mov rsi, r13 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&) mov rdi, r13; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rcx, [rsp+1B8h+var_90] mov rax, rcx sub rax, [rsp+1B8h+var_98] cqo push 18h pop rsi idiv rsi lea rdx, [rcx-18h] add rcx, 0FFFFFFFFFFFFFFB8h cmp rax, 4 cmovnb rcx, rdx mov rax, [rcx] mov [rsp+1B8h+var_1A0], rax mov rdi, r15 xor esi, esi call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; 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(decltype(nullptr)) lea rdi, [rsp+1B8h+var_1A0] lea rsi, [rsp+1B8h+var_150] mov rdx, r15 call _ZL10parse_jsonRN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKS9_RN8nlohmann16json_abi_v3_11_310basic_jsonINSE_11ordered_mapESt6vectorS8_blmdSaNSE_14adl_serializerESH_IhSaIhEEvEE; parse_json(__gnu_cxx::__normal_iterator<char const*,std::string> &,__gnu_cxx::__normal_iterator<char const*,std::string> const&,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> &) test al, al jz loc_C2BD8 mov rdi, [rsp+1B8h+var_1A0] mov rsi, rbp lea rdx, [rsp+1B8h+var_198] mov rcx, [rsp+1B8h+var_160] xor r8d, r8d call _ZNSt8__detail17__regex_algo_implIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESaINS5_9sub_matchISB_EEEcNS5_12regex_traitsIcEELNS_20_RegexExecutorPolicyE0ELb0EEEbT_SI_RNS5_13match_resultsISI_T0_EERKNS5_11basic_regexIT1_T2_EENSt15regex_constants15match_flag_typeE; std::__detail::__regex_algo_impl<__gnu_cxx::__normal_iterator<char const*,std::string>,std::allocator<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>,char,std::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,false>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>,std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>> &,std::basic_regex<char,std::regex_traits<char>> const&,std::regex_constants::match_flag_type) test al, al jz loc_C2BF4 mov rcx, qword ptr [rsp+1B8h+var_198+8] mov rax, rcx sub rax, qword ptr [rsp+1B8h+var_198] cqo push 18h pop rsi idiv rsi lea rdx, [rcx-18h] add rcx, 0FFFFFFFFFFFFFFB8h cmp rax, 4 cmovnb rcx, rdx mov rbx, [rcx] mov [rsp+1B8h+var_1A0], rbx mov rdi, r13 lea rsi, [rsp+1B8h+var_D8] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&) cmp [rsp+1B8h+var_148], 3 jnz short loc_C2AD3 lea rdi, [rsp+1B8h+var_118] mov rsi, r15 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE jmp short loc_C2AEF loc_C2AD3: lea rdi, [rsp+1B8h+var_118] mov rsi, r15 push 0FFFFFFFFFFFFFFFFh pop rdx push 20h ; ' ' pop rcx xor r8d, r8d xor r9d, r9d call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dumpEicbNS0_6detail15error_handler_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>::dump(int,char,bool,nlohmann::json_abi_v3_11_3::detail::error_handler_t) loc_C2AEF: lea rdi, [rsp+1B8h+var_F8] lea rsi, aBeginOfTextSta+3Bh; "" lea rdx, [rsp+1B8h+var_1A9] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) mov rdi, [rsp+1B8h+var_168] mov rsi, r13 call _ZNSt6vectorI16common_tool_callSaIS0_EE12emplace_backIJS0_EEERS0_DpOT_; std::vector<common_tool_call>::emplace_back<common_tool_call>(common_tool_call &&) mov rdi, r13; this call _ZN16common_tool_callD2Ev; common_tool_call::~common_tool_call() mov rdi, r15 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() lea rdi, [rsp+1B8h+var_D8]; void * loc_C2B2D: call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+1B8h+var_98] call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIN9__gnu_cxx17__normal_iteratorIPKcNS0_12basic_stringIcSt11char_traitsIcESaIcEEEEEEESaISC_EED2Ev; std::_Vector_base<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~_Vector_base() lea rdi, [rsp+1B8h+var_58] call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIN9__gnu_cxx17__normal_iteratorIPKcNS0_12basic_stringIcSt11char_traitsIcESaIcEEEEEEESaISC_EED2Ev; std::_Vector_base<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~_Vector_base() test r12b, r12b mov r12, r14 jz loc_C292E jmp short loc_C2BB7 loc_C2B5A: mov rax, cs:stderr_ptr mov rcx, [rax] lea rdi, aNoMoreToolCall; "No more tool calls found\n" push 19h pop rsi push 1 pop rdx call _fwrite lea rax, [rsp+1B8h+var_128] mov [rsp+1B8h+var_138], rax mov rdi, r13 mov rsi, rbx mov rdx, rbp 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 rdi, [rsp+1B8h+var_170] mov rsi, r13 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_; std::string::append(std::string const&) mov rdi, r13 jmp short loc_C2B2D loc_C2BA6: mov rax, [rsp+1B8h+var_1A8] lea rdi, [rax+20h] mov rsi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&) loc_C2BB7: lea rdi, [rsp+1B8h+var_198] call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIN9__gnu_cxx17__normal_iteratorIPKcNS0_12basic_stringIcSt11char_traitsIcESaIcEEEEEEESaISC_EED2Ev; std::_Vector_base<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~_Vector_base() mov rax, [rsp+1B8h+var_1A8] add rsp, 188h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_C2BD8: push 10h pop rdi; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aFailedToParseJ_0; "Failed to parse json tool call argument"... mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) jmp short loc_C2C0E loc_C2BF4: push 10h pop rdi; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aMalformedInput_0; "Malformed input, missing closing patter"... mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) loc_C2C0E: mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, r14; void * call ___cxa_throw jmp short loc_C2C45 mov rbx, rax lea rdi, [rsp+1B8h+var_138] jmp loc_C2CD4 jmp short loc_C2CB5 mov rbx, rax mov r12, [rsp+1B8h+var_1A8] jmp loc_C2CF8 loc_C2C45: mov rbx, rax jmp loc_C2CF8 mov rbx, rax jmp loc_C2D00 jmp short $+2 loc_C2C57: mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception jmp short loc_C2CC2 mov rbx, rax lea rdi, [rsp+1B8h+var_118]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_C2C79 mov rbx, rax loc_C2C79: lea rdi, [rsp+1B8h+var_138]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_C2CC2 mov rbx, rax lea rdi, [rsp+1B8h+var_138]; this call _ZN16common_tool_callD2Ev; common_tool_call::~common_tool_call() jmp short loc_C2CC2 mov rbx, rax lea rdi, [rsp+1B8h+var_138]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_C2CCC jmp short loc_C2CBF mov rbx, rax jmp short loc_C2CCC jmp short loc_C2CBF loc_C2CB5: mov rbx, rax jmp short loc_C2CD9 mov rbx, rax jmp short loc_C2CE6 loc_C2CBF: mov rbx, rax loc_C2CC2: lea rdi, [rsp+1B8h+var_148] 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_C2CCC: lea rdi, [rsp+1B8h+var_D8]; void * loc_C2CD4: call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_C2CD9: lea rdi, [rsp+1B8h+var_98] call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIN9__gnu_cxx17__normal_iteratorIPKcNS0_12basic_stringIcSt11char_traitsIcESaIcEEEEEEESaISC_EED2Ev; std::_Vector_base<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~_Vector_base() loc_C2CE6: mov r12, [rsp+1B8h+var_1A8] lea rdi, [rsp+1B8h+var_58] call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIN9__gnu_cxx17__normal_iteratorIPKcNS0_12basic_stringIcSt11char_traitsIcESaIcEEEEEEESaISC_EED2Ev; std::_Vector_base<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~_Vector_base() loc_C2CF8: mov rdi, r12; this call _ZN15common_chat_msgD2Ev; common_chat_msg::~common_chat_msg() loc_C2D00: lea rdi, [rsp+1B8h+var_198] call _ZNSt12_Vector_baseINSt7__cxx119sub_matchIN9__gnu_cxx17__normal_iteratorIPKcNS0_12basic_stringIcSt11char_traitsIcESaIcEEEEEEESaISC_EED2Ev; std::_Vector_base<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~_Vector_base() mov rdi, rbx call __Unwind_Resume
common_chat_msg * parse_json_tool_calls(common_chat_msg *a1, long long a2, long long a3, long long a4, long long a5) { common_chat_msg *v6; // r12 int v7; // r9d _BYTE *v8; // rbx long long v9; // rbp long long *v10; // rsi _BYTE **v11; // rcx char *v12; // r12 char *v13; // r14 char v14; // r12 long long v15; // rcx long long v16; // rdx long long *v17; // rcx _BYTE **v18; // rcx _BYTE *v19; // rdi bool v20; // zf std::runtime_error *exception; // r14 _BYTE *v24; // [rsp+18h] [rbp-1A0h] BYREF _OWORD v25[2]; // [rsp+20h] [rbp-198h] BYREF char *v26; // [rsp+48h] [rbp-170h] char *v27; // [rsp+50h] [rbp-168h] long long v28; // [rsp+58h] [rbp-160h] long long v29; // [rsp+60h] [rbp-158h] long long v30; // [rsp+68h] [rbp-150h] BYREF _BYTE v31[16]; // [rsp+70h] [rbp-148h] BYREF _QWORD v32[2]; // [rsp+80h] [rbp-138h] BYREF _BYTE v33[16]; // [rsp+90h] [rbp-128h] BYREF _BYTE v34[32]; // [rsp+A0h] [rbp-118h] BYREF long long v35[4]; // [rsp+C0h] [rbp-F8h] BYREF _BYTE v36[32]; // [rsp+E0h] [rbp-D8h] BYREF char v37; // [rsp+100h] [rbp-B8h] BYREF long long v38; // [rsp+120h] [rbp-98h] BYREF long long v39; // [rsp+128h] [rbp-90h] _DWORD v40[8]; // [rsp+140h] [rbp-78h] BYREF _QWORD v41[11]; // [rsp+160h] [rbp-58h] BYREF v28 = a5; v29 = a4; v6 = a1; memset(v25, 0, sizeof(v25)); common_chat_msg::common_chat_msg(a1); std::string::assign(a1, "assistant"); v8 = *(_BYTE **)a2; v9 = *(_QWORD *)a2 + *(_QWORD *)(a2 + 8); v30 = v9; v24 = v8; if ( *(_BYTE *)(a3 + 32) != 1 ) { LABEL_8: v26 = (char *)v6 + 32; v27 = (char *)v6 + 64; v12 = &v37; while ( 1 ) { if ( v8 == (_BYTE *)v9 ) goto LABEL_27; memset(v41, 0, 32); memset(v40, 0, 28); std::regex_iterator<__gnu_cxx::__normal_iterator<char const*,std::string>,char,std::regex_traits<char>>::regex_iterator( (long long)v12, (long long)v8, v9, v29, 0, v7); v13 = v12; v14 = std::regex_iterator<__gnu_cxx::__normal_iterator<char const*,std::string>,char,std::regex_traits<char>>::operator==( (long long)v12, (long long)v40); if ( v14 ) { fwrite("No more tool calls found\n", 25LL, 1LL, stderr); v32[0] = v33; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>((long long)v32, v8, v9); std::string::append(v26, v32); v19 = v32; } else { std::match_results<__gnu_cxx::__normal_iterator<char const*,std::string>>::str((long long)v36, &v38, 1uLL); v15 = v39 - 72; if ( (unsigned long long)((v39 - v38) / 24) >= 4 ) v15 = v39 - 48; v16 = *(_QWORD *)(v15 + 8); v32[0] = v33; std::string::_M_construct<__gnu_cxx::__normal_iterator<char const*,std::string>>((long long)v32, v8, v16); std::string::append(v26, v32); std::string::~string(v32); v17 = (long long *)(v39 - 72); if ( (unsigned long long)((v39 - v38) / 24) >= 4 ) v17 = (long long *)(v39 - 24); v24 = (_BYTE *)*v17; 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)v31); if ( !(unsigned __int8)parse_json(&v24, &v30, v31) ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Failed to parse json tool call arguments"); goto LABEL_30; } if ( !std::__detail::__regex_algo_impl<__gnu_cxx::__normal_iterator<char const*,std::string>,std::allocator<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>,char,std::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,false>( (long long)v24, v9, (long long)v25, v28, 0) ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "Malformed input, missing closing pattern"); LABEL_30: __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } v18 = (_BYTE **)(*((_QWORD *)&v25[0] + 1) - 72LL); if ( (unsigned long long)((*((_QWORD *)&v25[0] + 1) - *(_QWORD *)&v25[0]) / 24LL) >= 4 ) v18 = (_BYTE **)(*((_QWORD *)&v25[0] + 1) - 24LL); v8 = *v18; v24 = *v18; std::string::basic_string(v32, v36); if ( v31[0] == 3 ) ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE( (long long)v34, (long long)v31); else 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( (long long)v34, (long long)v31, -1, 32, 0, 0); std::string::basic_string<std::allocator<char>>(v35, (long long)""); std::vector<common_tool_call>::emplace_back<common_tool_call>(v27, v32); common_tool_call::~common_tool_call((common_tool_call *)v32); 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(v31); v19 = v36; } std::string::~string(v19); std::_Vector_base<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~_Vector_base(&v38); std::_Vector_base<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~_Vector_base(v41); v20 = v14 == 0; v12 = v13; if ( !v20 ) goto LABEL_27; } } if ( std::__detail::__regex_algo_impl<__gnu_cxx::__normal_iterator<char const*,std::string>,std::allocator<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>,char,std::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,false>( (long long)v8, v9, (long long)v25, a3, 0) ) { v10 = (long long *)(*((_QWORD *)&v25[0] + 1) - 72LL); if ( (unsigned long long)((*((_QWORD *)&v25[0] + 1) - *(_QWORD *)&v25[0]) / 24LL) >= 4 ) v10 = (long long *)(*((_QWORD *)&v25[0] + 1) - 48LL); v6 = a1; std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>::str((long long)v32, v10); std::string::operator=((char *)a1 + 32, v32); std::string::~string(v32); v11 = (_BYTE **)(*((_QWORD *)&v25[0] + 1) - 72LL); if ( (unsigned long long)((*((_QWORD *)&v25[0] + 1) - *(_QWORD *)&v25[0]) / 24LL) >= 4 ) v11 = (_BYTE **)(*((_QWORD *)&v25[0] + 1) - 24LL); v8 = *v11; v24 = *v11; goto LABEL_8; } std::string::_M_assign((char *)a1 + 32, a2); LABEL_27: std::_Vector_base<std::sub_match<__gnu_cxx::__normal_iterator<char const*,std::string>>>::~_Vector_base(v25); return a1; }
parse_json_tool_calls: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x188 MOV qword ptr [RSP + 0x58],R8 MOV qword ptr [RSP + 0x60],RCX MOV R15,RDX MOV R14,RSI MOV R12,RDI XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP + 0x30],XMM0 MOVAPS xmmword ptr [RSP + 0x20],XMM0 LAB_001c2830: CALL 0x001c47e0 LAB_001c2835: LEA RSI,[0x1d07b0] MOV RDI,R12 CALL 0x00127890 MOV RBX,qword ptr [R14] MOV RBP,qword ptr [R14 + 0x8] ADD RBP,RBX MOV qword ptr [RSP + 0x68],RBP MOV qword ptr [RSP + 0x18],RBX CMP byte ptr [R15 + 0x20],0x1 MOV qword ptr [RSP + 0x10],R12 JNZ 0x001c2905 LAB_001c2868: LEA RDX,[RSP + 0x20] MOV RDI,RBX MOV RSI,RBP MOV RCX,R15 XOR R8D,R8D CALL 0x0016d9ae TEST AL,AL JZ 0x001c2ba6 MOV RSI,qword ptr [RSP + 0x28] MOV RAX,RSI SUB RAX,qword ptr [RSP + 0x20] CQO PUSH 0x18 POP R14 IDIV R14 LEA RCX,[RSI + -0x30] ADD RSI,-0x48 CMP RAX,0x4 CMOVNC RSI,RCX LAB_001c28ac: LEA RDI,[RSP + 0x80] MOV R12,qword ptr [RSP + 0x10] CALL 0x0016e59e LEA RDI,[R12 + 0x20] LEA RBX,[RSP + 0x80] MOV RSI,RBX CALL 0x00126f10 MOV RDI,RBX CALL 0x00127998 MOV RCX,qword ptr [RSP + 0x28] MOV RAX,RCX SUB RAX,qword ptr [RSP + 0x20] CQO IDIV R14 LEA RDX,[RCX + -0x18] ADD RCX,-0x48 CMP RAX,0x4 CMOVNC RCX,RDX MOV RBX,qword ptr [RCX] MOV qword ptr [RSP + 0x18],RBX LAB_001c2905: LEA RAX,[R12 + 0x20] MOV qword ptr [RSP + 0x48],RAX LEA RAX,[R12 + 0x40] MOV qword ptr [RSP + 0x50],RAX LEA R12,[RSP + 0x100] LEA R13,[RSP + 0x80] LEA R15,[RSP + 0x70] LAB_001c292e: CMP RBX,RBP JZ 0x001c2bb7 LEA RAX,[RSP + 0x160] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x10],XMM0 MOVUPS xmmword ptr [RAX],XMM0 MOVUPS xmmword ptr [RSP + 0x14c],XMM0 MOVAPS xmmword ptr [RSP + 0x140],XMM0 LAB_001c2959: MOV RDI,R12 MOV RSI,RBX MOV RDX,RBP MOV RCX,qword ptr [RSP + 0x60] XOR R8D,R8D CALL 0x0016d7f6 MOV R14,R12 MOV RDI,R12 LEA RSI,[RSP + 0x140] CALL 0x0016dc30 MOV R12D,EAX TEST AL,AL JNZ 0x001c2b5a LAB_001c298d: LEA RDI,[RSP + 0xe0] LEA RSI,[RSP + 0x120] PUSH 0x1 POP RDX CALL 0x001adf3c MOV RCX,qword ptr [RSP + 0x128] MOV RAX,RCX SUB RAX,qword ptr [RSP + 0x120] CQO PUSH 0x18 POP RSI IDIV RSI LEA RDX,[RCX + -0x30] ADD RCX,-0x48 CMP RAX,0x4 CMOVNC RCX,RDX MOV RDX,qword ptr [RCX + 0x8] LEA RAX,[RSP + 0x90] MOV qword ptr [RSP + 0x80],RAX LAB_001c29e4: MOV RDI,R13 MOV RSI,RBX CALL 0x0016e5d8 LAB_001c29ef: MOV RDI,qword ptr [RSP + 0x48] MOV RSI,R13 CALL 0x001278e0 MOV RDI,R13 CALL 0x00127998 MOV RCX,qword ptr [RSP + 0x128] MOV RAX,RCX SUB RAX,qword ptr [RSP + 0x120] CQO PUSH 0x18 POP RSI IDIV RSI LEA RDX,[RCX + -0x18] ADD RCX,-0x48 CMP RAX,0x4 CMOVNC RCX,RDX MOV RAX,qword ptr [RCX] MOV qword ptr [RSP + 0x18],RAX MOV RDI,R15 XOR ESI,ESI CALL 0x001648e2 LAB_001c2a41: LEA RDI,[RSP + 0x18] LEA RSI,[RSP + 0x68] MOV RDX,R15 CALL 0x001c2d12 TEST AL,AL JZ 0x001c2bd8 MOV RDI,qword ptr [RSP + 0x18] MOV RSI,RBP LEA RDX,[RSP + 0x20] MOV RCX,qword ptr [RSP + 0x58] XOR R8D,R8D CALL 0x0016d9ae TEST AL,AL JZ 0x001c2bf4 MOV RCX,qword ptr [RSP + 0x28] MOV RAX,RCX SUB RAX,qword ptr [RSP + 0x20] CQO PUSH 0x18 POP RSI IDIV RSI LEA RDX,[RCX + -0x18] ADD RCX,-0x48 CMP RAX,0x4 CMOVNC RCX,RDX MOV RBX,qword ptr [RCX] MOV qword ptr [RSP + 0x18],RBX LAB_001c2aaa: MOV RDI,R13 LEA RSI,[RSP + 0xe0] CALL 0x00127120 CMP byte ptr [RSP + 0x70],0x3 JNZ 0x001c2ad3 LAB_001c2ac1: LEA RDI,[RSP + 0xa0] MOV RSI,R15 CALL 0x0017fcae JMP 0x001c2aef LAB_001c2ad3: LEA RDI,[RSP + 0xa0] MOV RSI,R15 PUSH -0x1 POP RDX PUSH 0x20 POP RCX XOR R8D,R8D XOR R9D,R9D CALL 0x001791c8 LAB_001c2aef: LEA RDI,[RSP + 0xc0] LEA RSI,[0x1c5509] LEA RDX,[RSP + 0xf] CALL 0x0012b096 LAB_001c2b08: MOV RDI,qword ptr [RSP + 0x50] MOV RSI,R13 CALL 0x001c4864 MOV RDI,R13 CALL 0x001a6326 MOV RDI,R15 CALL 0x00169708 LEA RDI,[RSP + 0xe0] LAB_001c2b2d: CALL 0x00127998 LEA RDI,[RSP + 0x120] CALL 0x0014dee8 LEA RDI,[RSP + 0x160] CALL 0x0014dee8 TEST R12B,R12B MOV R12,R14 JZ 0x001c292e JMP 0x001c2bb7 LAB_001c2b5a: MOV RAX,qword ptr [0x00220f78] MOV RCX,qword ptr [RAX] LEA RDI,[0x1d822c] PUSH 0x19 POP RSI PUSH 0x1 POP RDX CALL 0x001278c0 LEA RAX,[RSP + 0x90] MOV qword ptr [RSP + 0x80],RAX LAB_001c2b86: MOV RDI,R13 MOV RSI,RBX MOV RDX,RBP CALL 0x0016e5d8 LAB_001c2b94: MOV RDI,qword ptr [RSP + 0x48] MOV RSI,R13 CALL 0x001278e0 MOV RDI,R13 JMP 0x001c2b2d LAB_001c2ba6: MOV RAX,qword ptr [RSP + 0x10] LEA RDI,[RAX + 0x20] LAB_001c2baf: MOV RSI,R14 CALL 0x00126670 LAB_001c2bb7: LEA RDI,[RSP + 0x20] CALL 0x0014dee8 MOV RAX,qword ptr [RSP + 0x10] ADD RSP,0x188 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001c2bd8: PUSH 0x10 POP RDI CALL 0x001265e0 MOV R14,RAX LAB_001c2be3: LEA RSI,[0x1d8246] MOV RDI,RAX CALL 0x00126420 LAB_001c2bf2: JMP 0x001c2c0e LAB_001c2bf4: PUSH 0x10 POP RDI CALL 0x001265e0 MOV R14,RAX LAB_001c2bff: LEA RSI,[0x1d826f] MOV RDI,RAX CALL 0x00126420 LAB_001c2c0e: MOV RSI,qword ptr [0x00220fe8] MOV RDX,qword ptr [0x00220f48] MOV RDI,R14 CALL 0x001275b0
/* parse_json_tool_calls(std::__cxx11::string const&, std::optional<std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char> > > const&, std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char> > const&, std::__cxx11::basic_regex<char, std::__cxx11::regex_traits<char> > const&) */ string * parse_json_tool_calls (string *param_1,optional *param_2,basic_regex *param_3,basic_regex *param_4) { bool bVar1; char cVar2; char cVar3; runtime_error *this; long lVar4; long *plVar5; long lVar6; long lVar7; string *this_00; int8 in_R8; allocator local_1a9; string *local_1a8; long local_1a0; long local_198; long lStack_190; int8 local_188; int8 uStack_180; string *local_170; string *local_168; int8 local_160; basic_regex *local_158; long local_150; data local_148 [16]; int1 *local_138 [2]; int1 local_128 [16]; int1 local_118 [32]; string local_f8 [32]; string local_d8 [32]; regex_iterator<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,char,std::__cxx11::regex_traits<char>> local_b8 [32]; long local_98; long local_90; int8 local_78; int4 uStack_70; int4 local_6c; int4 uStack_68; int8 uStack_64; int8 local_58; int8 uStack_50; int8 local_48; int8 uStack_40; local_188 = 0; uStack_180 = 0; local_198 = 0; lStack_190 = 0; local_160 = in_R8; local_158 = param_4; /* try { // try from 001c2830 to 001c2834 has its CatchHandler @ 001c2c4d */ common_chat_msg::common_chat_msg((common_chat_msg *)param_1); /* try { // try from 001c2835 to 001c2843 has its CatchHandler @ 001c2c45 */ std::__cxx11::string::assign((char *)param_1); lVar6 = *(long *)param_2; lVar7 = *(long *)(param_2 + 8) + lVar6; local_1a8 = param_1; local_150 = lVar7; if (param_3[0x20] == (basic_regex)0x1) { /* try { // try from 001c2868 to 001c287d has its CatchHandler @ 001c2c38 */ local_1a0 = lVar6; bVar1 = std::__detail:: __regex_algo_impl<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>,char,std::__cxx11::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,false> (lVar6,lVar7,&local_198,param_3,0); param_1 = local_1a8; if (!bVar1) { /* try { // try from 001c2baf to 001c2bb6 has its CatchHandler @ 001c2c38 */ std::__cxx11::string::_M_assign(local_1a8 + 0x20); goto LAB_001c2bb7; } /* try { // try from 001c28ac to 001c28bd has its CatchHandler @ 001c2c24 */ std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>::str(); std::__cxx11::string::operator=(param_1 + 0x20,(string *)local_138); std::__cxx11::string::~string((string *)local_138); plVar5 = (long *)(lStack_190 + -0x48); if (3 < (ulong)((lStack_190 - local_198) / 0x18)) { plVar5 = (long *)(lStack_190 + -0x18); } lVar6 = *plVar5; } local_170 = param_1 + 0x20; local_168 = param_1 + 0x40; local_1a0 = lVar6; do { if (lVar6 == lVar7) break; local_48 = 0; uStack_40 = 0; local_58 = 0; uStack_50 = 0; uStack_68 = 0; uStack_64 = 0; local_78 = 0; uStack_70 = 0; local_6c = 0; /* try { // try from 001c2959 to 001c296e has its CatchHandler @ 001c2cba */ std::__cxx11:: regex_iterator<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,char,std::__cxx11::regex_traits<char>> ::regex_iterator(local_b8,lVar6,lVar7,local_158,0); cVar2 = std::__cxx11:: regex_iterator<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,char,std::__cxx11::regex_traits<char>> ::operator==(local_b8,(regex_iterator *)&local_78); if (cVar2 == '\0') { /* try { // try from 001c298d to 001c29a4 has its CatchHandler @ 001c2cb5 */ std::__cxx11:: match_results<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>> ::str((ulong)local_d8); lVar4 = local_90 + -0x48; if (3 < (ulong)((local_90 - local_98) / 0x18)) { lVar4 = local_90 + -0x30; } local_138[0] = local_128; /* try { // try from 001c29e4 to 001c29ee has its CatchHandler @ 001c2cae */ std::__cxx11::string:: _M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>> ((string *)local_138,lVar6,*(int8 *)(lVar4 + 8)); /* try { // try from 001c29ef to 001c29fb has its CatchHandler @ 001c2c9a */ std::__cxx11::string::append(local_170); std::__cxx11::string::~string((string *)local_138); plVar5 = (long *)(local_90 + -0x48); if (3 < (ulong)((local_90 - local_98) / 0x18)) { plVar5 = (long *)(local_90 + -0x18); } local_1a0 = *plVar5; 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((_func_decltype_nullptr *)local_148); /* try { // try from 001c2a41 to 001c2a74 has its CatchHandler @ 001c2cbf */ cVar3 = parse_json((__normal_iterator *)&local_1a0,(__normal_iterator *)&local_150,local_148); if (cVar3 == '\0') { this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001c2be3 to 001c2bf1 has its CatchHandler @ 001c2c57 */ std::runtime_error::runtime_error(this,"Failed to parse json tool call arguments"); LAB_001c2c0e: /* try { // try from 001c2c0e to 001c2c23 has its CatchHandler @ 001c2cac */ /* WARNING: Subroutine does not return */ __cxa_throw(this,PTR_typeinfo_00220fe8,PTR__runtime_error_00220f48); } bVar1 = std::__detail:: __regex_algo_impl<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>,char,std::__cxx11::regex_traits<char>,(std::__detail::_RegexExecutorPolicy)0,false> (local_1a0,lVar7,&local_198,local_160); if (!bVar1) { this = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 001c2bff to 001c2c0d has its CatchHandler @ 001c2c55 */ std::runtime_error::runtime_error(this,"Malformed input, missing closing pattern"); goto LAB_001c2c0e; } plVar5 = (long *)(lStack_190 + -0x48); if (3 < (ulong)((lStack_190 - local_198) / 0x18)) { plVar5 = (long *)(lStack_190 + -0x18); } lVar6 = *plVar5; /* try { // try from 001c2aaa to 001c2ab9 has its CatchHandler @ 001c2cb3 */ local_1a0 = lVar6; std::__cxx11::string::string((string *)local_138,local_d8); if (local_148[0] == (data)0x3) { /* try { // try from 001c2ac1 to 001c2aee has its CatchHandler @ 001c2c76 */ _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIS9_TnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE (local_118,local_148); } else { 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> ::dump(local_118,local_148,0xffffffffffffffff,0x20,0,0); } /* try { // try from 001c2aef to 001c2b07 has its CatchHandler @ 001c2c64 */ std::__cxx11::string::string<std::allocator<char>>(local_f8,"",&local_1a9); /* try { // try from 001c2b08 to 001c2b14 has its CatchHandler @ 001c2c88 */ std::vector<common_tool_call,std::allocator<common_tool_call>>::emplace_back<common_tool_call> ((vector<common_tool_call,std::allocator<common_tool_call>> *)local_168, (common_tool_call *)local_138); common_tool_call::~common_tool_call((common_tool_call *)local_138); 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_148); this_00 = local_d8; } else { fwrite("No more tool calls found\n",0x19,1,*(FILE **)PTR_stderr_00220f78); local_138[0] = local_128; /* try { // try from 001c2b86 to 001c2b93 has its CatchHandler @ 001c2c36 */ std::__cxx11::string:: _M_construct<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>> ((string *)local_138,lVar6,lVar7); /* try { // try from 001c2b94 to 001c2ba0 has its CatchHandler @ 001c2c26 */ std::__cxx11::string::append(local_170); this_00 = (string *)local_138; } std::__cxx11::string::~string(this_00); std:: _Vector_base<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>> ::~_Vector_base((_Vector_base<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>> *)&local_98); std:: _Vector_base<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>> ::~_Vector_base((_Vector_base<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>> *)&local_58); } while (cVar2 == '\0'); LAB_001c2bb7: std:: _Vector_base<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>> ::~_Vector_base((_Vector_base<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>,std::allocator<std::__cxx11::sub_match<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>> *)&local_198); return local_1a8; }
6,225
bool reaction::ObserverBase<reaction::ObserverDataNode>::updateObservers<reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger, reaction::DirectFailureStrategy, Person>>&, reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger, reaction::DirectFailureStrategy, Person>>&>(bool&, std::function<void (bool)>&&, reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger, reaction::DirectFailureStrategy, Person>>&, reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger, reaction::DirectFailureStrategy, Person>>&)
reaction/include/reaction/observerNode.h
bool updateObservers(bool &repeat, std::function<void(bool)> &&f, auto &&...args) { auto shared_this = getShared(); ObserverGraph::getInstance().resetNode(shared_this); if (!(ObserverGraph::getInstance().addObserver(repeat, f, shared_this, args.getShared()) && ...)) { ObserverGraph::getInstance().resetNode(shared_this); return false; } return true; }
O3
c
bool reaction::ObserverBase<reaction::ObserverDataNode>::updateObservers<reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger, reaction::DirectFailureStrategy, Person>>&, reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger, reaction::DirectFailureStrategy, Person>>&>(bool&, std::function<void (bool)>&&, reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger, reaction::DirectFailureStrategy, Person>>&, reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger, reaction::DirectFailureStrategy, Person>>&): pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x70, %rsp movq %r8, %r15 movq %rcx, %r12 movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %rsi movq %rsp, %rdi callq 0x5fc4 callq 0x3898 movq (%rsp), %rdx movq 0x8(%rsp), %rcx movq %rdx, 0x40(%rsp) movq %rcx, 0x48(%rsp) testq %rcx, %rcx je 0x7368 movq 0xcc66(%rip), %rdx # 0x13fc0 cmpb $0x0, (%rdx) je 0x7364 incl 0x8(%rcx) jmp 0x7368 lock incl 0x8(%rcx) leaq 0x40(%rsp), %rsi movq %rax, %rdi callq 0x756e movq 0x48(%rsp), %rdi testq %rdi, %rdi je 0x7384 callq 0x4f16 callq 0x3898 movq %rax, %r13 movq (%rsp), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x30(%rsp) movq %rax, 0x38(%rsp) testq %rax, %rax je 0x73b9 movq 0xcc15(%rip), %rcx # 0x13fc0 cmpb $0x0, (%rcx) je 0x73b5 incl 0x8(%rax) jmp 0x73b9 lock incl 0x8(%rax) leaq 0x60(%rsp), %rdi movq %r12, %rsi callq 0x7b9a leaq 0x30(%rsp), %rcx leaq 0x60(%rsp), %r8 movq %r13, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x7630 testb %al, %al je 0x7413 callq 0x3898 movq %rax, %r12 movq (%rsp), %rcx movq 0x8(%rsp), %rax movq %rcx, 0x20(%rsp) movq %rax, 0x28(%rsp) testq %rax, %rax je 0x741b movq 0xcbb7(%rip), %rcx # 0x13fc0 cmpb $0x0, (%rcx) je 0x7417 incl 0x8(%rax) jmp 0x741b xorl %ebx, %ebx jmp 0x7460 lock incl 0x8(%rax) leaq 0x50(%rsp), %rdi movq %r15, %rsi callq 0x7b9a leaq 0x20(%rsp), %rcx leaq 0x50(%rsp), %r8 movq %r12, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x7630 movl %eax, %ebx movq 0x58(%rsp), %rdi testq %rdi, %rdi je 0x7451 callq 0x4f16 movq 0x28(%rsp), %rdi testq %rdi, %rdi je 0x7460 callq 0x4f16 movq 0x68(%rsp), %rdi testq %rdi, %rdi je 0x746f callq 0x4f16 movq 0x38(%rsp), %rdi testq %rdi, %rdi je 0x747e callq 0x4f16 testb %bl, %bl jne 0x74d0 callq 0x3898 movq (%rsp), %rdx movq 0x8(%rsp), %rcx movq %rdx, 0x10(%rsp) movq %rcx, 0x18(%rsp) testq %rcx, %rcx je 0x74b4 movq 0xcb1a(%rip), %rdx # 0x13fc0 cmpb $0x0, (%rdx) je 0x74b0 incl 0x8(%rcx) jmp 0x74b4 lock incl 0x8(%rcx) leaq 0x10(%rsp), %rsi movq %rax, %rdi callq 0x756e movq 0x18(%rsp), %rdi testq %rdi, %rdi je 0x74d0 callq 0x4f16 movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x74df callq 0x4f16 movl %ebx, %eax addq $0x70, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq movq %rax, %rbx movq 0x18(%rsp), %rdi jmp 0x7547 movq %rax, %rbx movq 0x58(%rsp), %rdi testq %rdi, %rdi je 0x7510 callq 0x4f16 jmp 0x7510 movq %rax, %rbx movq 0x28(%rsp), %rdi testq %rdi, %rdi je 0x7533 callq 0x4f16 jmp 0x7533 movq %rax, %rbx jmp 0x7542 movq %rax, %rbx movq 0x48(%rsp), %rdi jmp 0x7547 movq %rax, %rbx movq 0x68(%rsp), %rdi testq %rdi, %rdi je 0x7542 callq 0x4f16 movq 0x38(%rsp), %rdi testq %rdi, %rdi je 0x7556 callq 0x4f16 jmp 0x7556 movq %rax, %rbx movq 0x8(%rsp), %rdi testq %rdi, %rdi je 0x7565 callq 0x4f16 movq %rbx, %rdi callq 0x2270 nop
_ZN8reaction12ObserverBaseINS_16ObserverDataNodeEE15updateObserversIJRNS_11DataWeakRefINS_10DataSourceINS_13AlwaysTriggerENS_21DirectFailureStrategyE6PersonJEEEEESB_EEEbRbOSt8functionIFvbEEDpOT_: push r15 push r14 push r13 push r12 push rbx sub rsp, 70h mov r15, r8 mov r12, rcx mov rbx, rdx mov r14, rsi mov rsi, rdi mov rdi, rsp; this call _ZNSt12__shared_ptrIN8reaction16ObserverDataNodeELN9__gnu_cxx12_Lock_policyE2EEC2IS1_vEERKSt10__weak_ptrIT_LS3_2EE; std::__shared_ptr<reaction::ObserverDataNode,(__gnu_cxx::_Lock_policy)2>::__shared_ptr<reaction::ObserverDataNode,void>(std::__weak_ptr<reaction::ObserverDataNode,(__gnu_cxx::_Lock_policy)2> const&) call _ZN8reaction13ObserverGraph11getInstanceEv; reaction::ObserverGraph::getInstance(void) mov rdx, [rsp+98h+var_98] mov rcx, [rsp+98h+var_90] mov [rsp+98h+var_58], rdx mov [rsp+98h+var_50], rcx test rcx, rcx jz short loc_7368 mov rdx, cs:__libc_single_threaded_ptr cmp byte ptr [rdx], 0 jz short loc_7364 inc dword ptr [rcx+8] jmp short loc_7368 loc_7364: lock inc dword ptr [rcx+8] loc_7368: lea rsi, [rsp+98h+var_58] mov rdi, rax call _ZN8reaction13ObserverGraph9resetNodeITkNS_6NodeCCENS_16ObserverDataNodeEEEvSt10shared_ptrIT_E mov rdi, [rsp+98h+var_50]; this test rdi, rdi jz short loc_7384 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_7384: call _ZN8reaction13ObserverGraph11getInstanceEv; reaction::ObserverGraph::getInstance(void) mov r13, rax mov rcx, [rsp+98h+var_98] mov rax, [rsp+98h+var_90] mov [rsp+98h+var_68], rcx mov [rsp+98h+var_60], rax test rax, rax jz short loc_73B9 mov rcx, cs:__libc_single_threaded_ptr cmp byte ptr [rcx], 0 jz short loc_73B5 inc dword ptr [rax+8] jmp short loc_73B9 loc_73B5: lock inc dword ptr [rax+8] loc_73B9: lea rdi, [rsp+98h+var_38] mov rsi, r12 call _ZN8reaction11DataWeakRefINS_10DataSourceINS_13AlwaysTriggerENS_21DirectFailureStrategyE6PersonJEEEE9getSharedEv; reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger,reaction::DirectFailureStrategy,Person>>::getShared(void) lea rcx, [rsp+98h+var_68] lea r8, [rsp+98h+var_38] mov rdi, r13; this mov rsi, r14 mov rdx, rbx call _ZN8reaction13ObserverGraph11addObserverITkNS_6NodeCCENS_16ObserverDataNodeETkNS_6NodeCCES2_EEbRbRSt8functionIFvbEESt10shared_ptrIT_ES8_IT0_E test al, al jz short loc_7413 call _ZN8reaction13ObserverGraph11getInstanceEv; reaction::ObserverGraph::getInstance(void) mov r12, rax mov rcx, [rsp+98h+var_98] mov rax, [rsp+98h+var_90] mov [rsp+98h+var_78], rcx mov [rsp+98h+var_70], rax test rax, rax jz short loc_741B mov rcx, cs:__libc_single_threaded_ptr cmp byte ptr [rcx], 0 jz short loc_7417 inc dword ptr [rax+8] jmp short loc_741B loc_7413: xor ebx, ebx jmp short loc_7460 loc_7417: lock inc dword ptr [rax+8] loc_741B: lea rdi, [rsp+98h+var_48] mov rsi, r15 call _ZN8reaction11DataWeakRefINS_10DataSourceINS_13AlwaysTriggerENS_21DirectFailureStrategyE6PersonJEEEE9getSharedEv; reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger,reaction::DirectFailureStrategy,Person>>::getShared(void) lea rcx, [rsp+98h+var_78] lea r8, [rsp+98h+var_48] mov rdi, r12 mov rsi, r14 mov rdx, rbx call _ZN8reaction13ObserverGraph11addObserverITkNS_6NodeCCENS_16ObserverDataNodeETkNS_6NodeCCES2_EEbRbRSt8functionIFvbEESt10shared_ptrIT_ES8_IT0_E mov ebx, eax mov rdi, [rsp+98h+var_40] test rdi, rdi jz short loc_7451 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_7451: mov rdi, [rsp+98h+var_70] test rdi, rdi jz short loc_7460 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_7460: mov rdi, [rsp+98h+var_30] test rdi, rdi jz short loc_746F call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_746F: mov rdi, [rsp+98h+var_60]; this test rdi, rdi jz short loc_747E call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_747E: test bl, bl jnz short loc_74D0 call _ZN8reaction13ObserverGraph11getInstanceEv; reaction::ObserverGraph::getInstance(void) mov rdx, [rsp+98h+var_98] mov rcx, [rsp+98h+var_90] mov [rsp+98h+var_88], rdx mov [rsp+98h+var_80], rcx test rcx, rcx jz short loc_74B4 mov rdx, cs:__libc_single_threaded_ptr cmp byte ptr [rdx], 0 jz short loc_74B0 inc dword ptr [rcx+8] jmp short loc_74B4 loc_74B0: lock inc dword ptr [rcx+8] loc_74B4: lea rsi, [rsp+98h+var_88] mov rdi, rax call _ZN8reaction13ObserverGraph9resetNodeITkNS_6NodeCCENS_16ObserverDataNodeEEEvSt10shared_ptrIT_E mov rdi, [rsp+98h+var_80] test rdi, rdi jz short loc_74D0 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_74D0: mov rdi, [rsp+98h+var_90] test rdi, rdi jz short loc_74DF call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_74DF: mov eax, ebx add rsp, 70h pop rbx pop r12 pop r13 pop r14 pop r15 retn mov rbx, rax mov rdi, [rsp+arg_10] jmp short loc_7547 mov rbx, rax mov rdi, [rsp+arg_50] test rdi, rdi jz short loc_7510 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_7510 mov rbx, rax loc_7510: mov rdi, [rsp+arg_20] test rdi, rdi jz short loc_7533 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_7533 mov rbx, rax jmp short loc_7542 mov rbx, rax mov rdi, [rsp+arg_40] jmp short loc_7547 mov rbx, rax loc_7533: mov rdi, [rsp+arg_60] test rdi, rdi jz short loc_7542 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_7542: mov rdi, [rsp+arg_30] loc_7547: test rdi, rdi jz short loc_7556 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_7556 mov rbx, rax loc_7556: mov rdi, [rsp+arg_0] test rdi, rdi jz short loc_7565 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_7565: mov rdi, rbx call __Unwind_Resume
long long reaction::ObserverBase<reaction::ObserverDataNode>::updateObservers<reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger,reaction::DirectFailureStrategy,Person>> &,reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger,reaction::DirectFailureStrategy,Person>> &>( _QWORD *a1, long long a2, long long a3, int a4, int a5) { unsigned int Instance; // eax int v9; // r8d int v10; // r9d void *v11; // rdx int v12; // ecx reaction::ObserverGraph *v13; // rdi int v14; // edx int v15; // r8d int v16; // r9d reaction::ObserverGraph *v17; // r13 void *v18; // rcx int v19; // edx int v20; // r8d int v21; // r9d void *v22; // r12 void *v23; // rcx unsigned int v24; // ebx reaction::ObserverGraph *v25; // rdi unsigned int v26; // eax int v27; // r8d int v28; // r9d void *v29; // rdx int v30; // ecx long long v32; // [rsp+0h] [rbp-98h] BYREF volatile signed __int32 *v33; // [rsp+8h] [rbp-90h] long long v34; // [rsp+10h] [rbp-88h] BYREF volatile signed __int32 *v35; // [rsp+18h] [rbp-80h] long long v36; // [rsp+20h] [rbp-78h] BYREF volatile signed __int32 *v37; // [rsp+28h] [rbp-70h] long long v38; // [rsp+30h] [rbp-68h] BYREF reaction::ObserverGraph *v39; // [rsp+38h] [rbp-60h] long long v40; // [rsp+40h] [rbp-58h] BYREF reaction::ObserverGraph *v41; // [rsp+48h] [rbp-50h] _BYTE v42[8]; // [rsp+50h] [rbp-48h] BYREF volatile signed __int32 *v43; // [rsp+58h] [rbp-40h] _BYTE v44[8]; // [rsp+60h] [rbp-38h] BYREF volatile signed __int32 *v45; // [rsp+68h] [rbp-30h] std::__shared_ptr<reaction::ObserverDataNode,(__gnu_cxx::_Lock_policy)2>::__shared_ptr<reaction::ObserverDataNode,void>( &v32, a1); Instance = (unsigned int)reaction::ObserverGraph::getInstance((reaction::ObserverGraph *)&v32); LODWORD(v11) = v32; v12 = (int)v33; v40 = v32; v41 = (reaction::ObserverGraph *)v33; if ( v33 ) { v11 = &_libc_single_threaded; if ( _libc_single_threaded ) ++*((_DWORD *)v33 + 2); else _InterlockedIncrement(v33 + 2); } ZN8reaction13ObserverGraph9resetNodeITkNS_6NodeCCENS_16ObserverDataNodeEEEvSt10shared_ptrIT_E( Instance, (unsigned int)&v40, (_DWORD)v11, v12, v9, v10, v32, (long long)v33); v13 = v41; if ( v41 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release((volatile signed __int32 *)v41); v17 = (reaction::ObserverGraph *)reaction::ObserverGraph::getInstance(v13); LODWORD(v18) = v32; v38 = v32; v39 = (reaction::ObserverGraph *)v33; if ( v33 ) { v18 = &_libc_single_threaded; if ( _libc_single_threaded ) ++*((_DWORD *)v33 + 2); else _InterlockedIncrement(v33 + 2); } reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger,reaction::DirectFailureStrategy,Person>>::getShared( (unsigned int)v44, a4, v14, (_DWORD)v18, v15, v16, v32, (long long)v33); if ( (unsigned __int8)ZN8reaction13ObserverGraph11addObserverITkNS_6NodeCCENS_16ObserverDataNodeETkNS_6NodeCCES2_EEbRbRSt8functionIFvbEESt10shared_ptrIT_ES8_IT0_E( v17, a2, a3, &v38, v44) ) { v22 = reaction::ObserverGraph::getInstance(v17); LODWORD(v23) = v32; v36 = v32; v37 = v33; if ( v33 ) { v23 = &_libc_single_threaded; if ( _libc_single_threaded ) ++*((_DWORD *)v33 + 2); else _InterlockedIncrement(v33 + 2); } reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger,reaction::DirectFailureStrategy,Person>>::getShared( (unsigned int)v42, a5, v19, (_DWORD)v23, v20, v21, v32, (long long)v33); v24 = ZN8reaction13ObserverGraph11addObserverITkNS_6NodeCCENS_16ObserverDataNodeETkNS_6NodeCCES2_EEbRbRSt8functionIFvbEESt10shared_ptrIT_ES8_IT0_E( v22, a2, a3, &v36, v42); if ( v43 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v43); if ( v37 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v37); } else { v24 = 0; } if ( v45 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v45); v25 = v39; if ( v39 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release((volatile signed __int32 *)v39); if ( !(_BYTE)v24 ) { v26 = (unsigned int)reaction::ObserverGraph::getInstance(v25); LODWORD(v29) = v32; v30 = (int)v33; v34 = v32; v35 = v33; if ( v33 ) { v29 = &_libc_single_threaded; if ( _libc_single_threaded ) ++*((_DWORD *)v33 + 2); else _InterlockedIncrement(v33 + 2); } ZN8reaction13ObserverGraph9resetNodeITkNS_6NodeCCENS_16ObserverDataNodeEEEvSt10shared_ptrIT_E( v26, (unsigned int)&v34, (_DWORD)v29, v30, v27, v28, v32, (long long)v33); if ( v35 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v35); } if ( v33 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v33); return v24; }
updateObservers<reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger,reaction::DirectFailureStrategy,Person>>&,reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger,reaction::DirectFailureStrategy,Person>>&>: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x70 MOV R15,R8 MOV R12,RCX MOV RBX,RDX MOV R14,RSI MOV RSI,RDI MOV RDI,RSP CALL 0x00105fc4 LAB_00107336: CALL 0x00103898 MOV RDX,qword ptr [RSP] MOV RCX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x40],RDX MOV qword ptr [RSP + 0x48],RCX TEST RCX,RCX JZ 0x00107368 MOV RDX,qword ptr [0x00113fc0] CMP byte ptr [RDX],0x0 JZ 0x00107364 INC dword ptr [RCX + 0x8] JMP 0x00107368 LAB_00107364: INC.LOCK dword ptr [RCX + 0x8] LAB_00107368: LEA RSI,[RSP + 0x40] MOV RDI,RAX CALL 0x0010756e MOV RDI,qword ptr [RSP + 0x48] TEST RDI,RDI JZ 0x00107384 CALL 0x00104f16 LAB_00107384: CALL 0x00103898 MOV R13,RAX MOV RCX,qword ptr [RSP] MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x30],RCX MOV qword ptr [RSP + 0x38],RAX TEST RAX,RAX JZ 0x001073b9 MOV RCX,qword ptr [0x00113fc0] CMP byte ptr [RCX],0x0 JZ 0x001073b5 INC dword ptr [RAX + 0x8] JMP 0x001073b9 LAB_001073b5: INC.LOCK dword ptr [RAX + 0x8] LAB_001073b9: LEA RDI,[RSP + 0x60] MOV RSI,R12 CALL 0x00107b9a LAB_001073c6: LEA RCX,[RSP + 0x30] LEA R8,[RSP + 0x60] MOV RDI,R13 MOV RSI,R14 MOV RDX,RBX CALL 0x00107630 TEST AL,AL JZ 0x00107413 CALL 0x00103898 MOV R12,RAX MOV RCX,qword ptr [RSP] MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x20],RCX MOV qword ptr [RSP + 0x28],RAX TEST RAX,RAX JZ 0x0010741b MOV RCX,qword ptr [0x00113fc0] CMP byte ptr [RCX],0x0 JZ 0x00107417 INC dword ptr [RAX + 0x8] JMP 0x0010741b LAB_00107413: XOR EBX,EBX JMP 0x00107460 LAB_00107417: INC.LOCK dword ptr [RAX + 0x8] LAB_0010741b: LEA RDI,[RSP + 0x50] MOV RSI,R15 CALL 0x00107b9a LAB_00107428: LEA RCX,[RSP + 0x20] LEA R8,[RSP + 0x50] MOV RDI,R12 MOV RSI,R14 MOV RDX,RBX CALL 0x00107630 MOV EBX,EAX MOV RDI,qword ptr [RSP + 0x58] TEST RDI,RDI JZ 0x00107451 CALL 0x00104f16 LAB_00107451: MOV RDI,qword ptr [RSP + 0x28] TEST RDI,RDI JZ 0x00107460 CALL 0x00104f16 LAB_00107460: MOV RDI,qword ptr [RSP + 0x68] TEST RDI,RDI JZ 0x0010746f CALL 0x00104f16 LAB_0010746f: MOV RDI,qword ptr [RSP + 0x38] TEST RDI,RDI JZ 0x0010747e CALL 0x00104f16 LAB_0010747e: TEST BL,BL JNZ 0x001074d0 LAB_00107482: CALL 0x00103898 MOV RDX,qword ptr [RSP] MOV RCX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x10],RDX MOV qword ptr [RSP + 0x18],RCX TEST RCX,RCX JZ 0x001074b4 MOV RDX,qword ptr [0x00113fc0] CMP byte ptr [RDX],0x0 JZ 0x001074b0 INC dword ptr [RCX + 0x8] JMP 0x001074b4 LAB_001074b0: INC.LOCK dword ptr [RCX + 0x8] LAB_001074b4: LEA RSI,[RSP + 0x10] MOV RDI,RAX CALL 0x0010756e LAB_001074c1: MOV RDI,qword ptr [RSP + 0x18] TEST RDI,RDI JZ 0x001074d0 CALL 0x00104f16 LAB_001074d0: MOV RDI,qword ptr [RSP + 0x8] TEST RDI,RDI JZ 0x001074df CALL 0x00104f16 LAB_001074df: MOV EAX,EBX ADD RSP,0x70 POP RBX POP R12 POP R13 POP R14 POP R15 RET
/* bool reaction::ObserverBase<reaction::ObserverDataNode>::updateObservers<reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger, reaction::DirectFailureStrategy, Person> >&, reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger, reaction::DirectFailureStrategy, Person> >&>(bool&, std::function<void (bool)>&&, reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger, reaction::DirectFailureStrategy, Person> >&, reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger, reaction::DirectFailureStrategy, Person> >&) */ bool reaction::ObserverBase<reaction::ObserverDataNode>:: updateObservers<reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger,reaction::DirectFailureStrategy,Person>>&,reaction::DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger,reaction::DirectFailureStrategy,Person>>&> (bool *param_1,function *param_2,DataWeakRef *param_3,DataWeakRef *param_4) { char cVar1; int8 uVar2; int8 local_98; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_90; int8 local_88; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_80; int8 local_78; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_70; int8 local_68; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_60; int8 local_58; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_50; DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger,reaction::DirectFailureStrategy,Person>> local_48 [8]; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_40; DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger,reaction::DirectFailureStrategy,Person>> local_38 [8]; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_30; std::__shared_ptr<reaction::ObserverDataNode,(__gnu_cxx::_Lock_policy)2>:: __shared_ptr<reaction::ObserverDataNode,void> ((__shared_ptr<reaction::ObserverDataNode,(__gnu_cxx::_Lock_policy)2> *)&local_98, (__weak_ptr *)param_1); /* try { // try from 00107336 to 0010733a has its CatchHandler @ 00107553 */ uVar2 = ObserverGraph::getInstance(); local_58 = local_98; local_50 = local_90; if (local_90 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { if (*PTR___libc_single_threaded_00113fc0 == '\0') { LOCK(); *(int *)(local_90 + 8) = *(int *)(local_90 + 8) + 1; UNLOCK(); } else { *(int *)(local_90 + 8) = *(int *)(local_90 + 8) + 1; } } /* try { // try from 00107368 to 00107374 has its CatchHandler @ 00107526 */ _ZN8reaction13ObserverGraph9resetNodeITkNS_6NodeCCENS_16ObserverDataNodeEEEvSt10shared_ptrIT_E (uVar2,&local_58); 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); } /* try { // try from 00107384 to 00107388 has its CatchHandler @ 00107553 */ uVar2 = ObserverGraph::getInstance(); local_68 = local_98; local_60 = local_90; if (local_90 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { if (*PTR___libc_single_threaded_00113fc0 == '\0') { LOCK(); *(int *)(local_90 + 8) = *(int *)(local_90 + 8) + 1; UNLOCK(); } else { *(int *)(local_90 + 8) = *(int *)(local_90 + 8) + 1; } } /* try { // try from 001073b9 to 001073c5 has its CatchHandler @ 00107521 */ DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger,reaction::DirectFailureStrategy,Person>> ::getShared(local_38); /* try { // try from 001073c6 to 001073e6 has its CatchHandler @ 00107530 */ cVar1 = _ZN8reaction13ObserverGraph11addObserverITkNS_6NodeCCENS_16ObserverDataNodeETkNS_6NodeCCES2_EEbRbRSt8functionIFvbEESt10shared_ptrIT_ES8_IT0_E (uVar2,param_2,param_3,&local_68,local_38); if (cVar1 == '\0') { cVar1 = '\0'; } else { uVar2 = ObserverGraph::getInstance(); local_78 = local_98; local_70 = local_90; if (local_90 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { if (*PTR___libc_single_threaded_00113fc0 == '\0') { LOCK(); *(int *)(local_90 + 8) = *(int *)(local_90 + 8) + 1; UNLOCK(); } else { *(int *)(local_90 + 8) = *(int *)(local_90 + 8) + 1; } } /* try { // try from 0010741b to 00107427 has its CatchHandler @ 0010750d */ DataWeakRef<reaction::DataSource<reaction::AlwaysTrigger,reaction::DirectFailureStrategy,Person>> ::getShared(local_48); /* try { // try from 00107428 to 0010743f has its CatchHandler @ 001074f9 */ cVar1 = _ZN8reaction13ObserverGraph11addObserverITkNS_6NodeCCENS_16ObserverDataNodeETkNS_6NodeCCES2_EEbRbRSt8functionIFvbEESt10shared_ptrIT_ES8_IT0_E (uVar2,param_2,param_3,&local_78,local_48); if (local_40 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_40); } 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_30 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_30); } if (local_60 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_60); } if (cVar1 == '\0') { /* try { // try from 00107482 to 00107486 has its CatchHandler @ 00107553 */ uVar2 = ObserverGraph::getInstance(); local_88 = local_98; local_80 = local_90; if (local_90 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { if (*PTR___libc_single_threaded_00113fc0 == '\0') { LOCK(); *(int *)(local_90 + 8) = *(int *)(local_90 + 8) + 1; UNLOCK(); } else { *(int *)(local_90 + 8) = *(int *)(local_90 + 8) + 1; } } /* try { // try from 001074b4 to 001074c0 has its CatchHandler @ 001074ef */ _ZN8reaction13ObserverGraph9resetNodeITkNS_6NodeCCENS_16ObserverDataNodeEEEvSt10shared_ptrIT_E (uVar2,&local_88); 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_90 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_90); } return (bool)cVar1; }
6,226
common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template const&, common_chat_inputs const&)
monkey531[P]llama/common/chat.cpp
static common_chat_params common_chat_params_init_functionary_v3_1_llama_3_1(const common_chat_template & tmpl, const struct common_chat_inputs & inputs) { // https://github.com/MeetKai/functionary/blob/main/tests/prompt_test_v3-llama3.1.txt common_chat_params data; json tools = inputs.tools.is_null() ? inputs.tools : json::array(); std::string python_code_argument_name; auto has_raw_python = false; data.grammar_lazy = inputs.tool_choice != "required"; data.grammar = build_grammar([&](const common_grammar_builder & builder) { std::vector<std::string> tool_rules; foreach_function(inputs.tools, [&](const json & tool) { const auto & function = tool["function"]; const auto & parameters = function["parameters"]; std::string name = function["name"]; if (name == "python" || name == "ipython") { if (!parameters.contains("type")) { throw std::runtime_error("Missing type in python tool"); } has_raw_python = true; auto type = parameters.at("type"); if (type == "object") { auto properties = parameters.at("properties"); for (auto it = properties.begin(); it != properties.end(); ++it) { if (it.value().at("type") == "string") { if (!python_code_argument_name.empty()) { throw std::runtime_error("Multiple string arguments found in python tool"); } python_code_argument_name = it.key(); } } if (python_code_argument_name.empty()) { throw std::runtime_error("No string argument found in python tool"); } } else if (type != "string") { throw std::runtime_error("Invalid type in python tool: " + type.dump()); } } tool_rules.push_back(builder.add_rule(name + "-call", "\"<function=" + name + ">\" " + builder.add_schema(name + "-args", parameters) + " \"</function>\" space")); }); if (has_raw_python) { tool_rules.push_back(builder.add_rule("python-call", "\"<|python_tag|>\" .*")); data.grammar_triggers.push_back({"<|python_tag|>", /* .at_start = */ false}); } auto tool_call = builder.add_rule("tool_call", string_join(tool_rules, " | ")) + " space"; builder.add_rule("root", inputs.parallel_tool_calls ? "(" + tool_call + ")+" : tool_call); data.grammar_triggers.push_back({"<function=", /* .at_start = */ false}); }, grammar_options); data.prompt = tmpl.apply(inputs.messages, inputs.tools.empty() ? json() : inputs.tools, inputs.add_generation_prompt); // TODO: if (has_raw_python) data.format = COMMON_CHAT_FORMAT_FUNCTIONARY_V3_1_LLAMA_3_1; return data; }
O3
cpp
common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template const&, common_chat_inputs const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xa8, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx movl $0x0, (%rdi) xorl %eax, %eax movb %al, 0x8(%rdi) movq %rax, 0x10(%rdi) leaq 0x28(%rdi), %rcx movq %rcx, 0x18(%rdi) movq %rax, 0x20(%rdi) movb %al, 0x28(%rdi) movb %al, 0x38(%rdi) xorps %xmm0, %xmm0 movups %xmm0, 0x40(%rdi) movups %xmm0, 0x50(%rdi) movups %xmm0, 0x60(%rdi) movups %xmm0, 0x70(%rdi) movq %rax, 0x80(%rdi) leaq 0x10(%rdx), %r12 cmpb %al, 0x10(%rdx) je 0xd12ce leaq 0x58(%rsp), %rdi xorl %esi, %esi xorl %edx, %edx xorl %ecx, %ecx movl $0x2, %r8d callq 0x7fb02 jmp 0xd12db leaq 0x58(%rsp), %rdi movq %r12, %rsi callq 0x5e5cc leaq 0x88(%rsp), %rbp movq %rbp, -0x10(%rbp) xorl %r13d, %r13d movq %r13, -0x8(%rbp) movb %r13b, (%rbp) movb %r13b, 0x17(%rsp) leaq 0x20(%r14), %rdi leaq 0x1e7a3(%rip), %rsi # 0xefaa5 callq 0xa5e55 movb %al, 0x38(%rbx) movq %r13, 0x20(%rsp) movl $0x20, %edi callq 0x1a870 movq %r14, (%rax) leaq 0x17(%rsp), %rcx movq %rcx, 0x8(%rax) leaq 0x78(%rsp), %rcx movq %rcx, 0x10(%rax) movq %rbx, 0x18(%rax) leaq 0x18(%rsp), %rsi movq %rax, (%rsi) leaq 0x9fa9(%rip), %rax # 0xdb2ea movq %rax, 0x18(%rsi) leaq 0xa692(%rip), %rax # 0xdb9de movq %rax, 0x10(%rsi) leaq 0x24681(%rip), %rdx # 0xf59d8 leaq 0x38(%rsp), %rdi callq 0xbbd08 leaq 0x18(%rbx), %rdi leaq 0x38(%rsp), %r13 movq %r13, %rsi callq 0x1aa50 movq (%r13), %rdi leaq 0x48(%rsp), %r13 cmpq %r13, %rdi je 0xd138d movq 0x48(%rsp), %rsi incq %rsi callq 0x1a890 movq 0x28(%rsp), %rax testq %rax, %rax je 0xd13a6 leaq 0x18(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movzbl (%r12), %eax testl %eax, %eax je 0xd13d5 cmpl $0x2, %eax je 0xd13b9 cmpl $0x1, %eax jne 0xd13c6 movq 0x18(%r14), %rax movq (%rax), %rcx cmpq 0x8(%rax), %rcx je 0xd13d5 leaq 0x18(%rsp), %rdi movq %r12, %rsi callq 0x5e5cc jmp 0xd13e3 movb $0x0, 0x18(%rsp) movq $0x0, 0x20(%rsp) movzbl 0x68(%r14), %r8d leaq 0x68(%rsp), %r9 movb $0x0, (%r9) movq $0x0, 0x8(%r9) movl $0x1, (%rsp) leaq 0x38(%rsp), %rdi leaq 0x18(%rsp), %rcx movq %r15, %rsi movq %r14, %rdx callq 0xa2574 leaq 0x98(%rsp), %rdi leaq 0x38(%rsp), %rsi callq 0x80856 movb 0x8(%rbx), %al leaq 0x98(%rsp), %rdi movb (%rdi), %cl movb %cl, 0x8(%rbx) movb %al, (%rdi) movq 0x10(%rbx), %rax movq 0x8(%rdi), %rcx movq %rcx, 0x10(%rbx) movq %rax, 0x8(%rdi) callq 0x5ea98 movq 0x38(%rsp), %rdi cmpq %r13, %rdi je 0xd1465 movq 0x48(%rsp), %rsi incq %rsi callq 0x1a890 leaq 0x68(%rsp), %rdi callq 0x5ea98 leaq 0x18(%rsp), %rdi callq 0x5ea98 movl $0x8, (%rbx) movq 0x78(%rsp), %rdi cmpq %rbp, %rdi je 0xd1499 movq 0x88(%rsp), %rsi incq %rsi callq 0x1a890 leaq 0x58(%rsp), %rdi callq 0x5ea98 addq $0xa8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0xd1514 jmp 0xd150c movq %rax, %r14 movq 0x38(%rsp), %rdi cmpq %r13, %rdi je 0xd14d8 movq 0x48(%rsp), %rsi incq %rsi callq 0x1a890 jmp 0xd14d8 movq %rax, %r14 leaq 0x68(%rsp), %rdi callq 0x5ea98 leaq 0x18(%rsp), %rdi callq 0x5ea98 jmp 0xd1517 movq %rax, %r14 movq 0x28(%rsp), %rax testq %rax, %rax je 0xd1517 leaq 0x18(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax jmp 0xd1517 movq %rax, %rdi callq 0x2160f movq %rax, %r14 movq 0x78(%rsp), %rdi cmpq %rbp, %rdi je 0xd1531 movq 0x88(%rsp), %rsi incq %rsi callq 0x1a890 leaq 0x58(%rsp), %rdi callq 0x5ea98 movq %rbx, %rdi callq 0x7f426 movq %r14, %rdi callq 0x1af20 movq %rax, %r14 jmp 0xd153b
_ZL50common_chat_params_init_functionary_v3_1_llama_3_1RKN5minja13chat_templateERK18common_chat_inputs: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0A8h mov r14, rdx mov r15, rsi mov rbx, rdi mov dword ptr [rdi], 0 xor eax, eax mov [rdi+8], al mov [rdi+10h], rax lea rcx, [rdi+28h] mov [rdi+18h], rcx mov [rdi+20h], rax mov [rdi+28h], al mov [rdi+38h], al xorps xmm0, xmm0 movups xmmword ptr [rdi+40h], xmm0 movups xmmword ptr [rdi+50h], xmm0 movups xmmword ptr [rdi+60h], xmm0 movups xmmword ptr [rdi+70h], xmm0 mov [rdi+80h], rax lea r12, [rdx+10h] cmp [rdx+10h], al jz short loc_D12CE lea rdi, [rsp+0D8h+var_80] xor esi, esi xor edx, edx xor ecx, ecx 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) jmp short loc_D12DB loc_D12CE: lea rdi, [rsp+0D8h+var_80] mov rsi, r12 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&) loc_D12DB: lea rbp, [rsp+0D8h+var_50] mov [rbp-10h], rbp xor r13d, r13d mov [rbp-8], r13 mov [rbp+0], r13b mov [rsp+0D8h+var_C1], r13b lea rdi, [r14+20h] lea rsi, aRequired; "required" call _ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_ mov [rbx+38h], al mov [rsp+0D8h+var_B8], r13 mov edi, 20h ; ' '; unsigned __int64 call __Znwm; operator new(ulong) mov [rax], r14 lea rcx, [rsp+0D8h+var_C1] mov [rax+8], rcx lea rcx, [rsp+0D8h+var_60] mov [rax+10h], rcx mov [rax+18h], rbx lea rsi, [rsp+0D8h+var_C0] mov [rsi], rax lea rax, _ZNSt17_Function_handlerIFvRK22common_grammar_builderEZL50common_chat_params_init_functionary_v3_1_llama_3_1RKN5minja13chat_templateERK18common_chat_inputsE3$_0E9_M_invokeERKSt9_Any_dataS2_; std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_invoke(std::_Any_data const&,common_grammar_builder const&) mov [rsi+18h], rax lea rax, _ZNSt17_Function_handlerIFvRK22common_grammar_builderEZL50common_chat_params_init_functionary_v3_1_llama_3_1RKN5minja13chat_templateERK18common_chat_inputsE3$_0E10_M_managerERSt9_Any_dataRKSD_St18_Manager_operation; std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [rsi+10h], rax lea rdx, _ZL15grammar_options; grammar_options lea rdi, [rsp+0D8h+var_A0] call _Z13build_grammarB5cxx11RKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_options; build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&) lea rdi, [rbx+18h] lea r13, [rsp+0D8h+var_A0] mov rsi, r13 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&) mov rdi, [r13+0]; void * lea r13, [rsp+0D8h+var_90] cmp rdi, r13 jz short loc_D138D mov rsi, [rsp+0D8h+var_90] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_D138D: mov rax, [rsp+0D8h+var_B0] test rax, rax jz short loc_D13A6 lea rdi, [rsp+0D8h+var_C0] mov rsi, rdi mov edx, 3 call rax loc_D13A6: movzx eax, byte ptr [r12] test eax, eax jz short loc_D13D5 cmp eax, 2 jz short loc_D13B9 cmp eax, 1 jnz short loc_D13C6 loc_D13B9: mov rax, [r14+18h] mov rcx, [rax] cmp rcx, [rax+8] jz short loc_D13D5 loc_D13C6: lea rdi, [rsp+0D8h+var_C0] mov rsi, r12 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_D13E3 loc_D13D5: mov [rsp+0D8h+var_C0], 0 mov [rsp+0D8h+var_B8], 0 loc_D13E3: movzx r8d, byte ptr [r14+68h] lea r9, [rsp+0D8h+var_70] mov byte ptr [r9], 0 mov qword ptr [r9+8], 0 mov [rsp+0D8h+var_D8], 1 lea rdi, [rsp+0D8h+var_A0] lea rcx, [rsp+0D8h+var_C0] mov rsi, r15 mov rdx, r14 call _ZNK5minja13chat_template5applyERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEESH_bSH_b; minja::chat_template::apply(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&,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&,bool,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&,bool) lea rdi, [rsp+0D8h+var_40] lea rsi, [rsp+0D8h+var_A0] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_ mov al, [rbx+8] lea rdi, [rsp+0D8h+var_40] mov cl, [rdi] mov [rbx+8], cl mov [rdi], al mov rax, [rbx+10h] mov rcx, [rdi+8] mov [rbx+10h], rcx mov [rdi+8], rax 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 rdi, [rsp+0D8h+var_A0]; void * cmp rdi, r13 jz short loc_D1465 mov rsi, [rsp+0D8h+var_90] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_D1465: lea rdi, [rsp+0D8h+var_70] 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() lea rdi, [rsp+0D8h+var_C0] 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 dword ptr [rbx], 8 mov rdi, [rsp+0D8h+var_60]; void * cmp rdi, rbp jz short loc_D1499 mov rsi, [rsp+0D8h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_D1499: lea rdi, [rsp+0D8h+var_80] 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 rsp, 0A8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short loc_D1514 jmp short loc_D150C mov r14, rax mov rdi, [rsp+0D8h+var_A0]; void * cmp rdi, r13 jz short loc_D14D8 mov rsi, [rsp+0D8h+var_90] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_D14D8 mov r14, rax loc_D14D8: lea rdi, [rsp+0D8h+var_70] 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() lea rdi, [rsp+0D8h+var_C0] 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_D1517 mov r14, rax mov rax, [rsp+0D8h+var_B0] test rax, rax jz short loc_D1517 lea rdi, [rsp+0D8h+var_C0] mov rsi, rdi mov edx, 3 call rax jmp short loc_D1517 loc_D150C: mov rdi, rax call __clang_call_terminate loc_D1514: mov r14, rax loc_D1517: mov rdi, [rsp+0D8h+var_60]; void * cmp rdi, rbp jz short loc_D1531 mov rsi, [rsp+0D8h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_D1531: lea rdi, [rsp+0D8h+var_80] 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_D153B: mov rdi, rbx; this call _ZN18common_chat_paramsD2Ev; common_chat_params::~common_chat_params() mov rdi, r14 call __Unwind_Resume mov r14, rax jmp short loc_D153B
long long common_chat_params_init_functionary_v3_1_llama_3_1( const minja::chat_template *a1, const common_chat_inputs *a2, long long a3) { unsigned __int8 *v4; // r12 _QWORD *v5; // rax int v6; // r8d int v7; // r9d int v8; // eax int v9; // r8d char v10; // al long long v11; // rax char v13; // [rsp+17h] [rbp-C1h] BYREF _QWORD *v14; // [rsp+18h] [rbp-C0h] BYREF long long v15; // [rsp+20h] [rbp-B8h] long long ( *v16)(); // [rsp+28h] [rbp-B0h] long long ( *v17)(); // [rsp+30h] [rbp-A8h] void *v18[2]; // [rsp+38h] [rbp-A0h] BYREF _QWORD v19[2]; // [rsp+48h] [rbp-90h] BYREF unsigned __int8 v20[16]; // [rsp+58h] [rbp-80h] BYREF _BYTE v21[8]; // [rsp+68h] [rbp-70h] BYREF long long v22; // [rsp+70h] [rbp-68h] void *v23[2]; // [rsp+78h] [rbp-60h] BYREF _QWORD v24[2]; // [rsp+88h] [rbp-50h] BYREF char v25[8]; // [rsp+98h] [rbp-40h] BYREF long long v26; // [rsp+A0h] [rbp-38h] *(_DWORD *)a1 = 0; *((_BYTE *)a1 + 8) = 0; *((_QWORD *)a1 + 2) = 0LL; *((_QWORD *)a1 + 3) = (char *)a1 + 40; *((_QWORD *)a1 + 4) = 0LL; *((_BYTE *)a1 + 40) = 0; *((_BYTE *)a1 + 56) = 0; *((_OWORD *)a1 + 4) = 0LL; *((_OWORD *)a1 + 5) = 0LL; *((_OWORD *)a1 + 6) = 0LL; *((_OWORD *)a1 + 7) = 0LL; *((_QWORD *)a1 + 16) = 0LL; v4 = (unsigned __int8 *)(a3 + 16); if ( *(_BYTE *)(a3 + 16) ) 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( v20, 0LL, 0LL, 0LL, 2LL); else 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( v20, (unsigned __int8 *)(a3 + 16)); v23[0] = v24; v23[1] = 0LL; LOBYTE(v24[0]) = 0; v13 = 0; *((_BYTE *)a1 + 56) = ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_( a3 + 32, (long long)"required"); v15 = 0LL; v5 = (_QWORD *)operator new(0x20uLL); *v5 = a3; v5[1] = &v13; v5[2] = v23; v5[3] = a1; v14 = v5; v17 = std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_invoke; v16 = std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_manager; build_grammar[abi:cxx11]((long long)v18, (long long)&v14, grammar_options, (long long)v23, v6, v7); std::string::operator=((char *)a1 + 24, v18); if ( v18[0] != v19 ) operator delete(v18[0], v19[0] + 1LL); if ( v16 ) ((void ( *)(_QWORD **, _QWORD **, long long))v16)(&v14, &v14, 3LL); v8 = *v4; if ( !*v4 || (v8 == 2 || v8 == 1) && **(_QWORD **)(a3 + 24) == *(_QWORD *)(*(_QWORD *)(a3 + 24) + 8LL) ) { LOBYTE(v14) = 0; v15 = 0LL; } else { 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( (unsigned __int8 *)&v14, v4); } v9 = *(unsigned __int8 *)(a3 + 104); v21[0] = 0; v22 = 0LL; minja::chat_template::apply((long long)v18, a2, (unsigned __int8 *)a3, (unsigned __int8 *)&v14, v9, v21, 1); ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_(v25); v10 = *((_BYTE *)a1 + 8); *((_BYTE *)a1 + 8) = v25[0]; v25[0] = v10; v11 = *((_QWORD *)a1 + 2); *((_QWORD *)a1 + 2) = v26; v26 = v11; 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(v25); if ( v18[0] != v19 ) operator delete(v18[0], v19[0] + 1LL); 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(v21); 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); *(_DWORD *)a1 = 8; if ( v23[0] != v24 ) operator delete(v23[0], v24[0] + 1LL); return 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); }
common_chat_params_init_functionary_v3_1_llama_3_1: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xa8 MOV R14,RDX MOV R15,RSI MOV RBX,RDI MOV dword ptr [RDI],0x0 XOR EAX,EAX MOV byte ptr [RDI + 0x8],AL MOV qword ptr [RDI + 0x10],RAX LEA RCX,[RDI + 0x28] MOV qword ptr [RDI + 0x18],RCX MOV qword ptr [RDI + 0x20],RAX MOV byte ptr [RDI + 0x28],AL MOV byte ptr [RDI + 0x38],AL XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x40],XMM0 MOVUPS xmmword ptr [RDI + 0x50],XMM0 MOVUPS xmmword ptr [RDI + 0x60],XMM0 MOVUPS xmmword ptr [RDI + 0x70],XMM0 MOV qword ptr [RDI + 0x80],RAX LEA R12,[RDX + 0x10] CMP byte ptr [RDX + 0x10],AL JZ 0x001d12ce LAB_001d12b6: LEA RDI,[RSP + 0x58] XOR ESI,ESI XOR EDX,EDX XOR ECX,ECX MOV R8D,0x2 CALL 0x0017fb02 JMP 0x001d12db LAB_001d12ce: LEA RDI,[RSP + 0x58] MOV RSI,R12 CALL 0x0015e5cc LAB_001d12db: LEA RBP,[RSP + 0x88] MOV qword ptr [RBP + -0x10],RBP XOR R13D,R13D MOV qword ptr [RBP + -0x8],R13 MOV byte ptr [RBP],R13B MOV byte ptr [RSP + 0x17],R13B LEA RDI,[R14 + 0x20] LEA RSI,[0x1efaa5] CALL 0x001a5e55 MOV byte ptr [RBX + 0x38],AL MOV qword ptr [RSP + 0x20],R13 LAB_001d130f: MOV EDI,0x20 CALL 0x0011a870 MOV qword ptr [RAX],R14 LEA RCX,[RSP + 0x17] MOV qword ptr [RAX + 0x8],RCX LEA RCX,[RSP + 0x78] MOV qword ptr [RAX + 0x10],RCX MOV qword ptr [RAX + 0x18],RBX LEA RSI,[RSP + 0x18] MOV qword ptr [RSI],RAX LEA RAX,[0x1db2ea] MOV qword ptr [RSI + 0x18],RAX LEA RAX,[0x1db9de] MOV qword ptr [RSI + 0x10],RAX LAB_001d1350: LEA RDX,[0x1f59d8] LEA RDI,[RSP + 0x38] CALL 0x001bbd08 LEA RDI,[RBX + 0x18] LEA R13,[RSP + 0x38] MOV RSI,R13 CALL 0x0011aa50 MOV RDI,qword ptr [R13] LEA R13,[RSP + 0x48] CMP RDI,R13 JZ 0x001d138d MOV RSI,qword ptr [RSP + 0x48] INC RSI CALL 0x0011a890 LAB_001d138d: MOV RAX,qword ptr [RSP + 0x28] TEST RAX,RAX JZ 0x001d13a6 LAB_001d1397: LEA RDI,[RSP + 0x18] MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_001d13a6: MOVZX EAX,byte ptr [R12] TEST EAX,EAX JZ 0x001d13d5 CMP EAX,0x2 JZ 0x001d13b9 CMP EAX,0x1 JNZ 0x001d13c6 LAB_001d13b9: MOV RAX,qword ptr [R14 + 0x18] MOV RCX,qword ptr [RAX] CMP RCX,qword ptr [RAX + 0x8] JZ 0x001d13d5 LAB_001d13c6: LEA RDI,[RSP + 0x18] MOV RSI,R12 CALL 0x0015e5cc JMP 0x001d13e3 LAB_001d13d5: MOV byte ptr [RSP + 0x18],0x0 MOV qword ptr [RSP + 0x20],0x0 LAB_001d13e3: MOVZX R8D,byte ptr [R14 + 0x68] LEA R9,[RSP + 0x68] MOV byte ptr [R9],0x0 MOV qword ptr [R9 + 0x8],0x0 LAB_001d13f9: MOV dword ptr [RSP],0x1 LEA RDI,[RSP + 0x38] LEA RCX,[RSP + 0x18] MOV RSI,R15 MOV RDX,R14 CALL 0x001a2574 LAB_001d1415: LEA RDI,[RSP + 0x98] LEA RSI,[RSP + 0x38] CALL 0x00180856 MOV AL,byte ptr [RBX + 0x8] LEA RDI,[RSP + 0x98] MOV CL,byte ptr [RDI] MOV byte ptr [RBX + 0x8],CL MOV byte ptr [RDI],AL MOV RAX,qword ptr [RBX + 0x10] MOV RCX,qword ptr [RDI + 0x8] MOV qword ptr [RBX + 0x10],RCX MOV qword ptr [RDI + 0x8],RAX CALL 0x0015ea98 MOV RDI,qword ptr [RSP + 0x38] CMP RDI,R13 JZ 0x001d1465 MOV RSI,qword ptr [RSP + 0x48] INC RSI CALL 0x0011a890 LAB_001d1465: LEA RDI,[RSP + 0x68] CALL 0x0015ea98 LEA RDI,[RSP + 0x18] CALL 0x0015ea98 MOV dword ptr [RBX],0x8 MOV RDI,qword ptr [RSP + 0x78] CMP RDI,RBP JZ 0x001d1499 MOV RSI,qword ptr [RSP + 0x88] INC RSI CALL 0x0011a890 LAB_001d1499: LEA RDI,[RSP + 0x58] CALL 0x0015ea98 ADD RSP,0xa8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template const&, common_chat_inputs const&) */ void common_chat_params_init_functionary_v3_1_llama_3_1 (chat_template *param_1,common_chat_inputs *param_2) { basic_json *pbVar1; basic_json bVar2; int8 uVar3; chat_template cVar4; long in_RDX; int1 local_c1; long *local_c0; int8 local_b8; code *local_b0; code *local_a8; long *local_a0 [2]; long local_90 [2]; 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_80 [16]; data local_70 [8]; int8 local_68; int1 *local_60; int8 local_58; int1 local_50; int7 uStack_4f; chat_template local_40 [8]; int8 local_38; *(int4 *)param_1 = 0; param_1[8] = (chat_template)0x0; *(int8 *)(param_1 + 0x10) = 0; *(chat_template **)(param_1 + 0x18) = param_1 + 0x28; *(int8 *)(param_1 + 0x20) = 0; param_1[0x28] = (chat_template)0x0; param_1[0x38] = (chat_template)0x0; *(int8 *)(param_1 + 0x40) = 0; *(int8 *)(param_1 + 0x48) = 0; *(int8 *)(param_1 + 0x50) = 0; *(int8 *)(param_1 + 0x58) = 0; *(int8 *)(param_1 + 0x60) = 0; *(int8 *)(param_1 + 0x68) = 0; *(int8 *)(param_1 + 0x70) = 0; *(int8 *)(param_1 + 0x78) = 0; *(int8 *)(param_1 + 0x80) = 0; pbVar1 = (basic_json *)(in_RDX + 0x10); if (*(char *)(in_RDX + 0x10) == '\0') { 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_80,pbVar1); } else { /* try { // try from 001d12b6 to 001d12da has its CatchHandler @ 001d154b */ 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_80,0,0,0,2); } local_58 = 0; local_50 = 0; local_c1 = 0; local_60 = &local_50; cVar4 = (chat_template) _ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_ (in_RDX + 0x20,"required"); param_1[0x38] = cVar4; local_b8 = 0; /* try { // try from 001d130f to 001d1318 has its CatchHandler @ 001d1514 */ local_c0 = (long *)operator_new(0x20); *local_c0 = in_RDX; local_c0[1] = (long)&local_c1; local_c0[2] = (long)&local_60; local_c0[3] = (long)param_1; local_a8 = std:: _Function_handler<void(common_grammar_builder_const&),common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template_const&,common_chat_inputs_const&)::$_0> ::_M_invoke; local_b0 = std:: _Function_handler<void(common_grammar_builder_const&),common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template_const&,common_chat_inputs_const&)::$_0> ::_M_manager; /* try { // try from 001d1350 to 001d1360 has its CatchHandler @ 001d14ee */ build_grammar_abi_cxx11_((function *)local_a0,(common_grammar_options *)&local_c0); std::__cxx11::string::operator=((string *)(param_1 + 0x18),(string *)local_a0); if (local_a0[0] != local_90) { operator_delete(local_a0[0],local_90[0] + 1); } if (local_b0 != (code *)0x0) { /* try { // try from 001d1397 to 001d13a5 has its CatchHandler @ 001d14b7 */ (*local_b0)(&local_c0,&local_c0,3); } bVar2 = *pbVar1; if ((bVar2 == (basic_json)0x0) || (((bVar2 == (basic_json)0x2 || (bVar2 == (basic_json)0x1)) && (**(long **)(in_RDX + 0x18) == (*(long **)(in_RDX + 0x18))[1])))) { local_c0 = (long *)((ulong)local_c0 & 0xffffffffffffff00); local_b8 = 0; } else { /* try { // try from 001d13c6 to 001d13d2 has its CatchHandler @ 001d14b5 */ 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_c0,pbVar1); } local_70[0] = (data)0x0; local_68 = 0; /* try { // try from 001d13f9 to 001d1414 has its CatchHandler @ 001d14d5 */ minja::chat_template::apply ((basic_json *)local_a0,(basic_json *)param_2,SUB81(in_RDX,0),(basic_json *)&local_c0, *(bool *)(in_RDX + 0x68)); /* try { // try from 001d1415 to 001d1426 has its CatchHandler @ 001d14b9 */ _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_ (local_40,local_a0); cVar4 = param_1[8]; param_1[8] = local_40[0]; uVar3 = *(int8 *)(param_1 + 0x10); *(int8 *)(param_1 + 0x10) = local_38; local_40[0] = cVar4; local_38 = uVar3; 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_40); if (local_a0[0] != local_90) { operator_delete(local_a0[0],local_90[0] + 1); } 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_70); 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_c0); *(int4 *)param_1 = 8; if (local_60 != &local_50) { operator_delete(local_60,CONCAT71(uStack_4f,local_50) + 1); } 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_80); return; }
6,227
ftxui::Container::Stacked(std::vector<std::shared_ptr<ftxui::ComponentBase>, std::allocator<std::shared_ptr<ftxui::ComponentBase>>>)
Andrewchistyakov[P]flashcards_lyc/build_O1/_deps/ftxui-src/src/ftxui/component/container.cpp
Component Stacked(Components children) { return std::make_shared<StackedContainer>(std::move(children)); }
O1
cpp
ftxui::Container::Stacked(std::vector<std::shared_ptr<ftxui::ComponentBase>, std::allocator<std::shared_ptr<ftxui::ComponentBase>>>): pushq %r15 pushq %r14 pushq %rbx subq $0x20, %rsp movq %rsi, %rcx movq %rdi, %rbx xorl %r15d, %r15d leaq 0x18(%rsp), %rdi movq %r15, -0x8(%rdi) leaq 0x10(%rsp), %r14 leaq 0xf(%rsp), %rdx movq %r14, %rsi callq 0x291c2 movq (%r14), %rax movq %rax, (%rbx) movq %r15, 0x8(%rbx) movq 0x8(%r14), %rax movq %r15, 0x8(%r14) movq %rax, 0x8(%rbx) movq %rbx, %rax addq $0x20, %rsp popq %rbx popq %r14 popq %r15 retq
_ZN5ftxui9Container7StackedESt6vectorISt10shared_ptrINS_13ComponentBaseEESaIS4_EE: push r15 push r14 push rbx sub rsp, 20h mov rcx, rsi mov rbx, rdi xor r15d, r15d lea rdi, [rsp+38h+var_20] mov [rdi-8], r15 lea r14, [rsp+38h+var_28] lea rdx, [rsp+38h+var_29] mov rsi, r14 call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC2IN5ftxui16StackedContainerESaIS5_EJSt6vectorISt10shared_ptrINS4_13ComponentBaseEESaISA_EEEEERPT_St20_Sp_alloc_shared_tagIT0_EDpOT1_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<ftxui::StackedContainer,std::allocator<ftxui::StackedContainer>,std::vector<std::shared_ptr<ftxui::ComponentBase>>>(ftxui::StackedContainer *&,std::_Sp_alloc_shared_tag<std::allocator<ftxui::StackedContainer>>,std::vector<std::shared_ptr<ftxui::ComponentBase>> &&) mov rax, [r14] mov [rbx], rax mov [rbx+8], r15 mov rax, [r14+8] mov [r14+8], r15 mov [rbx+8], rax mov rax, rbx add rsp, 20h pop rbx pop r14 pop r15 retn
_QWORD * ftxui::Container::Stacked(_QWORD *a1, long long a2) { char v3; // [rsp+Fh] [rbp-29h] BYREF long long v4; // [rsp+10h] [rbp-28h] BYREF _QWORD v5[4]; // [rsp+18h] [rbp-20h] BYREF v4 = 0LL; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<ftxui::StackedContainer,std::allocator<ftxui::StackedContainer>,std::vector<std::shared_ptr<ftxui::ComponentBase>>>( v5, &v4, &v3, a2); *a1 = v4; a1[1] = 0LL; a1[1] = v5[0]; return a1; }
Stacked: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x20 MOV RCX,RSI MOV RBX,RDI XOR R15D,R15D LEA RDI,[RSP + 0x18] MOV qword ptr [RDI + -0x8],R15 LEA R14,[RSP + 0x10] LEA RDX,[RSP + 0xf] MOV RSI,R14 CALL 0x001291c2 MOV RAX,qword ptr [R14] MOV qword ptr [RBX],RAX MOV qword ptr [RBX + 0x8],R15 MOV RAX,qword ptr [R14 + 0x8] MOV qword ptr [R14 + 0x8],R15 MOV qword ptr [RBX + 0x8],RAX MOV RAX,RBX ADD RSP,0x20 POP RBX POP R14 POP R15 RET
/* ftxui::Container::Stacked(std::vector<std::shared_ptr<ftxui::ComponentBase>, std::allocator<std::shared_ptr<ftxui::ComponentBase> > >) */ Container * __thiscall ftxui::Container::Stacked(Container *this,int8 param_2) { int1 local_29; int8 local_28; int8 local_20; local_28 = 0; std::__shared_count<(__gnu_cxx::_Lock_policy)2>:: __shared_count<ftxui::StackedContainer,std::allocator<ftxui::StackedContainer>,std::vector<std::shared_ptr<ftxui::ComponentBase>,std::allocator<std::shared_ptr<ftxui::ComponentBase>>>> ((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&local_20,&local_28,&local_29,param_2); *(int8 *)this = local_28; *(int8 *)(this + 8) = 0; *(int8 *)(this + 8) = local_20; return this; }
6,228
iterator_to_array
bluesky950520[P]quickjs/quickjs.c
static JSValue iterator_to_array(JSContext *ctx, JSValue items) { JSValue iter, next_method = JS_UNDEFINED; JSValue v, r = JS_UNDEFINED; int64_t k; BOOL done; iter = JS_GetIterator(ctx, items, FALSE); if (JS_IsException(iter)) goto exception; next_method = JS_GetProperty(ctx, iter, JS_ATOM_next); if (JS_IsException(next_method)) goto exception; r = JS_NewArray(ctx); if (JS_IsException(r)) goto exception; for (k = 0;; k++) { v = JS_IteratorNext(ctx, iter, next_method, 0, NULL, &done); if (JS_IsException(v)) goto exception_close; if (done) break; if (JS_DefinePropertyValueInt64(ctx, r, k, v, JS_PROP_C_W_E | JS_PROP_THROW) < 0) goto exception_close; } done: JS_FreeValue(ctx, next_method); JS_FreeValue(ctx, iter); return r; exception_close: JS_IteratorClose(ctx, iter, TRUE); exception: JS_FreeValue(ctx, r); r = JS_EXCEPTION; goto done; }
O0
c
iterator_to_array: subq $0xc8, %rsp movq %rsi, 0xa8(%rsp) movq %rdx, 0xb0(%rsp) movq %rdi, 0xa0(%rsp) movq 0x4ae6a(%rip), %rax # 0x113b80 movq %rax, 0x80(%rsp) movq 0x4ae63(%rip), %rax # 0x113b88 movq %rax, 0x88(%rsp) movq 0x4ae4c(%rip), %rax # 0x113b80 movq %rax, 0xb8(%rsp) movq 0x4ae45(%rip), %rax # 0x113b88 movq %rax, 0xc0(%rsp) movq 0xa0(%rsp), %rdi movq 0xa8(%rsp), %rsi movq 0xb0(%rsp), %rdx xorl %ecx, %ecx callq 0x74aa0 movq %rax, 0x50(%rsp) movq %rdx, 0x58(%rsp) movq 0x50(%rsp), %rax movq %rax, 0x90(%rsp) movq 0x58(%rsp), %rax movq %rax, 0x98(%rsp) movq 0x90(%rsp), %rdi movq 0x98(%rsp), %rsi callq 0x29fb0 cmpl $0x0, %eax je 0xc8dad jmp 0xc8fb4 movq 0xa0(%rsp), %rdi movq 0x90(%rsp), %rsi movq 0x98(%rsp), %rdx movl $0x6b, %ecx callq 0x30070 movq %rax, 0x40(%rsp) movq %rdx, 0x48(%rsp) movq 0x40(%rsp), %rax movq %rax, 0x80(%rsp) movq 0x48(%rsp), %rax movq %rax, 0x88(%rsp) movq 0x80(%rsp), %rdi movq 0x88(%rsp), %rsi callq 0x29fb0 cmpl $0x0, %eax je 0xc8e12 jmp 0xc8fb4 movq 0xa0(%rsp), %rdi callq 0x30810 movq %rax, 0x30(%rsp) movq %rdx, 0x38(%rsp) movq 0x30(%rsp), %rax movq %rax, 0xb8(%rsp) movq 0x38(%rsp), %rax movq %rax, 0xc0(%rsp) movq 0xb8(%rsp), %rdi movq 0xc0(%rsp), %rsi callq 0x29fb0 cmpl $0x0, %eax je 0xc8e62 jmp 0xc8fb4 movq $0x0, 0x68(%rsp) movq 0xa0(%rsp), %rdi movq 0x90(%rsp), %rsi movq 0x98(%rsp), %rdx movq 0x80(%rsp), %rcx movq 0x88(%rsp), %r8 xorl %r9d, %r9d xorl %eax, %eax leaq 0x64(%rsp), %rax movq $0x0, (%rsp) movq %rax, 0x8(%rsp) callq 0x751a0 movq %rax, 0x20(%rsp) movq %rdx, 0x28(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x70(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x78(%rsp) movq 0x70(%rsp), %rdi movq 0x78(%rsp), %rsi callq 0x29fb0 cmpl $0x0, %eax je 0xc8ee6 jmp 0xc8f92 cmpl $0x0, 0x64(%rsp) je 0xc8eef jmp 0xc8f3e movq 0xa0(%rsp), %rdi movq 0x68(%rsp), %rcx movq 0xb8(%rsp), %rsi movq 0xc0(%rsp), %rdx movq 0x70(%rsp), %r8 movq 0x78(%rsp), %r9 movl $0x4007, (%rsp) # imm = 0x4007 callq 0x3d6e0 cmpl $0x0, %eax jge 0xc8f29 jmp 0xc8f92 jmp 0xc8f2b movq 0x68(%rsp), %rax addq $0x1, %rax movq %rax, 0x68(%rsp) jmp 0xc8e6b jmp 0xc8f40 movq 0xa0(%rsp), %rdi movq 0x80(%rsp), %rsi movq 0x88(%rsp), %rdx callq 0x29f80 movq 0xa0(%rsp), %rdi movq 0x90(%rsp), %rsi movq 0x98(%rsp), %rdx callq 0x29f80 movq 0xb8(%rsp), %rax movq 0xc0(%rsp), %rdx addq $0xc8, %rsp retq movq 0xa0(%rsp), %rdi movq 0x90(%rsp), %rsi movq 0x98(%rsp), %rdx movl $0x1, %ecx callq 0x6e2b0 movq 0xa0(%rsp), %rdi movq 0xb8(%rsp), %rsi movq 0xc0(%rsp), %rdx callq 0x29f80 movl $0x0, 0x10(%rsp) movq $0x6, 0x18(%rsp) movq 0x10(%rsp), %rax movq %rax, 0xb8(%rsp) movq 0x18(%rsp), %rax movq %rax, 0xc0(%rsp) jmp 0xc8f40 nopw %cs:(%rax,%rax)
iterator_to_array: sub rsp, 0C8h mov [rsp+0C8h+var_20], rsi mov [rsp+0C8h+var_18], rdx mov [rsp+0C8h+var_28], rdi mov rax, cs:qword_113B80 mov [rsp+0C8h+var_48], rax mov rax, cs:qword_113B88 mov [rsp+0C8h+var_40], rax mov rax, cs:qword_113B80 mov [rsp+0C8h+var_10], rax mov rax, cs:qword_113B88 mov [rsp+0C8h+var_8], rax mov rdi, [rsp+0C8h+var_28] mov rsi, [rsp+0C8h+var_20] mov rdx, [rsp+0C8h+var_18] xor ecx, ecx call JS_GetIterator mov [rsp+0C8h+var_78], rax mov [rsp+0C8h+var_70], rdx mov rax, [rsp+0C8h+var_78] mov [rsp+0C8h+var_38], rax mov rax, [rsp+0C8h+var_70] mov [rsp+0C8h+var_30], rax mov rdi, [rsp+0C8h+var_38] mov rsi, [rsp+0C8h+var_30] call JS_IsException_1 cmp eax, 0 jz short loc_C8DAD jmp loc_C8FB4 loc_C8DAD: mov rdi, [rsp+0C8h+var_28] mov rsi, [rsp+0C8h+var_38] mov rdx, [rsp+0C8h+var_30] mov ecx, 6Bh ; 'k' call JS_GetProperty mov [rsp+0C8h+var_88], rax mov [rsp+0C8h+var_80], rdx mov rax, [rsp+0C8h+var_88] mov [rsp+0C8h+var_48], rax mov rax, [rsp+0C8h+var_80] mov [rsp+0C8h+var_40], rax mov rdi, [rsp+0C8h+var_48] mov rsi, [rsp+0C8h+var_40] call JS_IsException_1 cmp eax, 0 jz short loc_C8E12 jmp loc_C8FB4 loc_C8E12: mov rdi, [rsp+0C8h+var_28] call JS_NewArray mov [rsp+0C8h+var_98], rax mov [rsp+0C8h+var_90], rdx mov rax, [rsp+0C8h+var_98] mov [rsp+0C8h+var_10], rax mov rax, [rsp+0C8h+var_90] mov [rsp+0C8h+var_8], rax mov rdi, [rsp+0C8h+var_10] mov rsi, [rsp+0C8h+var_8] call JS_IsException_1 cmp eax, 0 jz short loc_C8E62 jmp loc_C8FB4 loc_C8E62: mov [rsp+0C8h+var_60], 0 loc_C8E6B: mov rdi, [rsp+0C8h+var_28] mov rsi, [rsp+0C8h+var_38] mov rdx, [rsp+0C8h+var_30] mov rcx, [rsp+0C8h+var_48] mov r8, [rsp+0C8h+var_40] xor r9d, r9d xor eax, eax lea rax, [rsp+0C8h+var_64] mov [rsp+0C8h+var_C8], 0 mov [rsp+0C8h+var_C0], rax call JS_IteratorNext mov [rsp+0C8h+var_A8], rax mov [rsp+0C8h+var_A0], rdx mov rax, [rsp+0C8h+var_A8] mov [rsp+0C8h+var_58], rax mov rax, [rsp+0C8h+var_A0] mov [rsp+0C8h+var_50], rax mov rdi, [rsp+0C8h+var_58] mov rsi, [rsp+0C8h+var_50] call JS_IsException_1 cmp eax, 0 jz short loc_C8EE6 jmp loc_C8F92 loc_C8EE6: cmp [rsp+0C8h+var_64], 0 jz short loc_C8EEF jmp short loc_C8F3E loc_C8EEF: mov rdi, [rsp+0C8h+var_28] mov rcx, [rsp+0C8h+var_60] mov rsi, [rsp+0C8h+var_10] mov rdx, [rsp+0C8h+var_8] mov r8, [rsp+0C8h+var_58] mov r9, [rsp+0C8h+var_50] mov dword ptr [rsp+0C8h+var_C8], 4007h call JS_DefinePropertyValueInt64 cmp eax, 0 jge short loc_C8F29 jmp short loc_C8F92 loc_C8F29: jmp short $+2 loc_C8F2B: mov rax, [rsp+0C8h+var_60] add rax, 1 mov [rsp+0C8h+var_60], rax jmp loc_C8E6B loc_C8F3E: jmp short $+2 loc_C8F40: mov rdi, [rsp+0C8h+var_28] mov rsi, [rsp+0C8h+var_48] mov rdx, [rsp+0C8h+var_40] call JS_FreeValue mov rdi, [rsp+0C8h+var_28] mov rsi, [rsp+0C8h+var_38] mov rdx, [rsp+0C8h+var_30] call JS_FreeValue mov rax, [rsp+0C8h+var_10] mov rdx, [rsp+0C8h+var_8] add rsp, 0C8h retn loc_C8F92: mov rdi, [rsp+0C8h+var_28] mov rsi, [rsp+0C8h+var_38] mov rdx, [rsp+0C8h+var_30] mov ecx, 1 call JS_IteratorClose loc_C8FB4: mov rdi, [rsp+0C8h+var_28] mov rsi, [rsp+0C8h+var_10] mov rdx, [rsp+0C8h+var_8] call JS_FreeValue mov dword ptr [rsp+0C8h+var_B8], 0 mov [rsp+0C8h+var_B0], 6 mov rax, [rsp+0C8h+var_B8] mov [rsp+0C8h+var_10], rax mov rax, [rsp+0C8h+var_B0] mov [rsp+0C8h+var_8], rax jmp loc_C8F40
long long iterator_to_array( long long a1, long long a2, long long a3, __m128 a4, __m128 a5, __m128 a6, __m128 a7, double a8, double a9, __m128 a10, __m128 a11) { long long v11; // rdx long long v12; // rdx long long v13; // rdx long long v14; // rdx double v15; // xmm4_8 double v16; // xmm5_8 long long v18; // [rsp+10h] [rbp-B8h] int v19; // [rsp+64h] [rbp-64h] BYREF long long i; // [rsp+68h] [rbp-60h] _DWORD *v21; // [rsp+70h] [rbp-58h] long long v22; // [rsp+78h] [rbp-50h] long long Property; // [rsp+80h] [rbp-48h] long long v24; // [rsp+88h] [rbp-40h] long long Iterator; // [rsp+90h] [rbp-38h] long long v26; // [rsp+98h] [rbp-30h] long long v27; // [rsp+A0h] [rbp-28h] long long v28; // [rsp+A8h] [rbp-20h] long long v29; // [rsp+B0h] [rbp-18h] long long v30; // [rsp+B8h] [rbp-10h] long long v31; // [rsp+C0h] [rbp-8h] v28 = a2; v29 = a3; v27 = a1; Property = 0LL; v24 = 3LL; v30 = 0LL; v31 = 3LL; Iterator = JS_GetIterator(a1, a2, a3, 0, a4, a5, a6, a7, a8, a9, a10, a11); v26 = v11; if ( !JS_IsException_1(Iterator, v11) ) { Property = JS_GetProperty(v27, Iterator, v26, 107); v24 = v12; if ( !JS_IsException_1(Property, v12) ) { v30 = JS_NewArray(v27); v31 = v13; if ( !JS_IsException_1(v30, v13) ) { for ( i = 0LL; ; ++i ) { v21 = (_DWORD *)JS_IteratorNext(v27, Iterator, v26, Property, v24, 0, 0LL, &v19); v22 = v14; if ( JS_IsException_1((long long)v21, v14) ) break; if ( v19 ) goto LABEL_9; if ( (int)JS_DefinePropertyValueInt64(v27, v30, v31, i, v21, v22, a4, a5, a6, a7, v15, v16, a10, a11, 16391) < 0 ) break; } JS_IteratorClose(v27, Iterator, v26, 1, a4, a5, a6, a7, v15, v16, a10, a11); } } } JS_FreeValue(v27, v30, v31); LODWORD(v18) = 0; v30 = v18; v31 = 6LL; LABEL_9: JS_FreeValue(v27, Property, v24); JS_FreeValue(v27, Iterator, v26); return v30; }
iterator_to_array: SUB RSP,0xc8 MOV qword ptr [RSP + 0xa8],RSI MOV qword ptr [RSP + 0xb0],RDX MOV qword ptr [RSP + 0xa0],RDI MOV RAX,qword ptr [0x00213b80] MOV qword ptr [RSP + 0x80],RAX MOV RAX,qword ptr [0x00213b88] MOV qword ptr [RSP + 0x88],RAX MOV RAX,qword ptr [0x00213b80] MOV qword ptr [RSP + 0xb8],RAX MOV RAX,qword ptr [0x00213b88] MOV qword ptr [RSP + 0xc0],RAX MOV RDI,qword ptr [RSP + 0xa0] MOV RSI,qword ptr [RSP + 0xa8] MOV RDX,qword ptr [RSP + 0xb0] XOR ECX,ECX CALL 0x00174aa0 MOV qword ptr [RSP + 0x50],RAX MOV qword ptr [RSP + 0x58],RDX MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0x90],RAX MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RSP + 0x98],RAX MOV RDI,qword ptr [RSP + 0x90] MOV RSI,qword ptr [RSP + 0x98] CALL 0x00129fb0 CMP EAX,0x0 JZ 0x001c8dad JMP 0x001c8fb4 LAB_001c8dad: MOV RDI,qword ptr [RSP + 0xa0] MOV RSI,qword ptr [RSP + 0x90] MOV RDX,qword ptr [RSP + 0x98] MOV ECX,0x6b CALL 0x00130070 MOV qword ptr [RSP + 0x40],RAX MOV qword ptr [RSP + 0x48],RDX MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x80],RAX MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x88],RAX MOV RDI,qword ptr [RSP + 0x80] MOV RSI,qword ptr [RSP + 0x88] CALL 0x00129fb0 CMP EAX,0x0 JZ 0x001c8e12 JMP 0x001c8fb4 LAB_001c8e12: MOV RDI,qword ptr [RSP + 0xa0] CALL 0x00130810 MOV qword ptr [RSP + 0x30],RAX MOV qword ptr [RSP + 0x38],RDX MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0xb8],RAX MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0xc0],RAX MOV RDI,qword ptr [RSP + 0xb8] MOV RSI,qword ptr [RSP + 0xc0] CALL 0x00129fb0 CMP EAX,0x0 JZ 0x001c8e62 JMP 0x001c8fb4 LAB_001c8e62: MOV qword ptr [RSP + 0x68],0x0 LAB_001c8e6b: MOV RDI,qword ptr [RSP + 0xa0] MOV RSI,qword ptr [RSP + 0x90] MOV RDX,qword ptr [RSP + 0x98] MOV RCX,qword ptr [RSP + 0x80] MOV R8,qword ptr [RSP + 0x88] XOR R9D,R9D XOR EAX,EAX LEA RAX,[RSP + 0x64] MOV qword ptr [RSP],0x0 MOV qword ptr [RSP + 0x8],RAX CALL 0x001751a0 MOV qword ptr [RSP + 0x20],RAX MOV qword ptr [RSP + 0x28],RDX MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x70],RAX MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x78],RAX MOV RDI,qword ptr [RSP + 0x70] MOV RSI,qword ptr [RSP + 0x78] CALL 0x00129fb0 CMP EAX,0x0 JZ 0x001c8ee6 JMP 0x001c8f92 LAB_001c8ee6: CMP dword ptr [RSP + 0x64],0x0 JZ 0x001c8eef JMP 0x001c8f3e LAB_001c8eef: MOV RDI,qword ptr [RSP + 0xa0] MOV RCX,qword ptr [RSP + 0x68] MOV RSI,qword ptr [RSP + 0xb8] MOV RDX,qword ptr [RSP + 0xc0] MOV R8,qword ptr [RSP + 0x70] MOV R9,qword ptr [RSP + 0x78] MOV dword ptr [RSP],0x4007 CALL 0x0013d6e0 CMP EAX,0x0 JGE 0x001c8f29 JMP 0x001c8f92 LAB_001c8f29: JMP 0x001c8f2b LAB_001c8f2b: MOV RAX,qword ptr [RSP + 0x68] ADD RAX,0x1 MOV qword ptr [RSP + 0x68],RAX JMP 0x001c8e6b LAB_001c8f3e: JMP 0x001c8f40 LAB_001c8f40: MOV RDI,qword ptr [RSP + 0xa0] MOV RSI,qword ptr [RSP + 0x80] MOV RDX,qword ptr [RSP + 0x88] CALL 0x00129f80 MOV RDI,qword ptr [RSP + 0xa0] MOV RSI,qword ptr [RSP + 0x90] MOV RDX,qword ptr [RSP + 0x98] CALL 0x00129f80 MOV RAX,qword ptr [RSP + 0xb8] MOV RDX,qword ptr [RSP + 0xc0] ADD RSP,0xc8 RET LAB_001c8f92: MOV RDI,qword ptr [RSP + 0xa0] MOV RSI,qword ptr [RSP + 0x90] MOV RDX,qword ptr [RSP + 0x98] MOV ECX,0x1 CALL 0x0016e2b0 LAB_001c8fb4: MOV RDI,qword ptr [RSP + 0xa0] MOV RSI,qword ptr [RSP + 0xb8] MOV RDX,qword ptr [RSP + 0xc0] CALL 0x00129f80 MOV dword ptr [RSP + 0x10],0x0 MOV qword ptr [RSP + 0x18],0x6 MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0xb8],RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0xc0],RAX JMP 0x001c8f40
int1 [16] iterator_to_array(int8 param_1,int8 param_2,int8 param_3) { int iVar1; int1 auVar2 [16]; int4 uVar3; uint uStack_b4; int local_64; long local_60; int1 local_58 [16]; int1 local_48 [16]; int1 local_38 [16]; int8 local_28; int8 local_20; int8 local_18; int1 local_10 [16]; local_48._0_8_ = DAT_00213b80; local_48._8_8_ = DAT_00213b88; local_10._0_8_ = DAT_00213b80; local_10._8_8_ = DAT_00213b88; local_28 = param_1; local_20 = param_2; local_18 = param_3; local_38 = JS_GetIterator(param_1,param_2,param_3,0); iVar1 = JS_IsException(local_38._0_8_,local_38._8_8_); if (iVar1 == 0) { local_48 = JS_GetProperty(local_28,local_38._0_8_,local_38._8_8_,0x6b); iVar1 = JS_IsException(local_48._0_8_,local_48._8_8_); if (iVar1 == 0) { local_10 = JS_NewArray(local_28); iVar1 = JS_IsException(local_10._0_8_,local_10._8_8_); if (iVar1 == 0) { local_60 = 0; while( true ) { uVar3 = 0; auVar2 = JS_IteratorNext(local_28,local_38._0_8_,local_38._8_8_,local_48._0_8_, local_48._8_8_,0,0,&local_64); local_58 = auVar2; iVar1 = JS_IsException(auVar2._0_8_,auVar2._8_8_); if (iVar1 != 0) break; if (local_64 != 0) goto LAB_001c8f40; iVar1 = JS_DefinePropertyValueInt64 (local_28,local_10._0_8_,local_10._8_8_,local_60,local_58._0_8_, local_58._8_8_,CONCAT44(uVar3,0x4007)); if (iVar1 < 0) break; local_60 = local_60 + 1; } JS_IteratorClose(local_28,local_38._0_8_,local_38._8_8_,1); } } } JS_FreeValue(local_28,local_10._0_8_,local_10._8_8_); local_10._8_8_ = 6; local_10._0_8_ = (ulong)uStack_b4 << 0x20; LAB_001c8f40: JS_FreeValue(local_28,local_48._0_8_,local_48._8_8_); JS_FreeValue(local_28,local_38._0_8_,local_38._8_8_); return local_10; }
6,229
minja::Context::at(minja::Value const&)
llama.cpp/common/minja/minja.hpp
virtual Value & at(const Value & key) { if (values_.contains(key)) return values_.at(key); if (parent_) return parent_->at(key); throw std::runtime_error("Undefined variable: " + key.dump()); }
O3
cpp
minja::Context::at(minja::Value const&): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x48, %rsp movq %rsi, %r14 movq %rdi, %rbx leaq 0x18(%rdi), %r15 movq %r15, %rdi callq 0x7737a testb %al, %al je 0x7723d movq %r15, %rdi movq %r14, %rsi addq $0x48, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x775c6 movq 0x68(%rbx), %rdi testq %rdi, %rdi je 0x7725c movq (%rdi), %rax movq 0x18(%rax), %rax movq %r14, %rsi addq $0x48, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmpq *%rax movl $0x10, %edi callq 0x1c460 movq %rax, %rbx leaq 0x8(%rsp), %rdi movq %r14, %rsi movl $0xffffffff, %edx # imm = 0xFFFFFFFF xorl %ecx, %ecx callq 0x6cb9a leaq 0x5505d(%rip), %rsi # 0xcc2e1 leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rdx callq 0x66b64 movb $0x1, %bpl leaq 0x28(%rsp), %rsi movq %rbx, %rdi callq 0x1c2c0 xorl %ebp, %ebp movq 0x88d0c(%rip), %rsi # 0xfffb8 movq 0x88cc5(%rip), %rdx # 0xfff78 movq %rbx, %rdi callq 0x1c7b0 movq %rax, %r14 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x772d9 movq 0x38(%rsp), %rsi incq %rsi callq 0x1c110 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x772f4 movq 0x18(%rsp), %rsi incq %rsi callq 0x1c110 testb %bpl, %bpl jne 0x7731e jmp 0x77326 movq %rax, %r14 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x7731e movq 0x18(%rsp), %rsi incq %rsi callq 0x1c110 jmp 0x7731e movq %rax, %r14 movq %rbx, %rdi callq 0x1caa0 movq %r14, %rdi callq 0x1c7d0
_ZN5minja7Context2atERKNS_5ValueE: push rbp push r15 push r14 push rbx sub rsp, 48h mov r14, rsi mov rbx, rdi lea r15, [rdi+18h] mov rdi, r15; this call _ZNK5minja5Value8containsERKS0_; minja::Value::contains(minja::Value const&) test al, al jz short loc_7723D mov rdi, r15; this mov rsi, r14; minja::Value * add rsp, 48h pop rbx pop r14 pop r15 pop rbp jmp _ZN5minja5Value2atERKS0_; minja::Value::at(minja::Value const&) loc_7723D: mov rdi, [rbx+68h] test rdi, rdi jz short loc_7725C mov rax, [rdi] mov rax, [rax+18h] mov rsi, r14 add rsp, 48h pop rbx pop r14 pop r15 pop rbp jmp rax loc_7725C: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+68h+var_60] mov rsi, r14 mov edx, 0FFFFFFFFh xor ecx, ecx call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool) lea rsi, aUndefinedVaria; "Undefined variable: " lea rdi, [rsp+68h+var_40] lea rdx, [rsp+68h+var_60] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&) mov bpl, 1 lea rsi, [rsp+68h+var_40] mov rdi, rbx call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&) xor ebp, ebp mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rax, [rsp+68h+var_30] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_772D9 mov rsi, [rsp+68h+var_30] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_772D9: lea rax, [rsp+68h+var_50] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_772F4 mov rsi, [rsp+68h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_772F4: test bpl, bpl jnz short loc_7731E jmp short loc_77326 mov r14, rax lea rax, [rsp+68h+var_50] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_7731E mov rsi, [rsp+68h+var_50] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_7731E mov r14, rax loc_7731E: mov rdi, rbx; void * call ___cxa_free_exception loc_77326: mov rdi, r14 call __Unwind_Resume
long long minja::Context::at(minja::Context *this, const minja::Value *a2) { long long v3; // rdi void *exception; // rbx _BYTE v5[16]; // [rsp+8h] [rbp-60h] BYREF _QWORD v6[2]; // [rsp+28h] [rbp-40h] BYREF if ( (unsigned __int8)minja::Value::contains((minja::Context *)((char *)this + 24), a2) ) return minja::Value::at((minja::Context *)((char *)this + 24), a2); v3 = *((_QWORD *)this + 13); if ( !v3 ) { exception = __cxa_allocate_exception(0x10uLL); minja::Value::dump[abi:cxx11]((long long)v5, (long long)a2, 0xFFFFFFFF, 0); std::operator+<char>(v6, (long long)"Undefined variable: ", (long long)v5); std::runtime_error::runtime_error(exception, v6); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } return (*(long long ( **)(long long, const minja::Value *))(*(_QWORD *)v3 + 24LL))(v3, a2); }
at: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x48 MOV R14,RSI MOV RBX,RDI LEA R15,[RDI + 0x18] MOV RDI,R15 CALL 0x0017737a TEST AL,AL JZ 0x0017723d MOV RDI,R15 MOV RSI,R14 ADD RSP,0x48 POP RBX POP R14 POP R15 POP RBP JMP 0x001775c6 LAB_0017723d: MOV RDI,qword ptr [RBX + 0x68] TEST RDI,RDI JZ 0x0017725c MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x18] MOV RSI,R14 ADD RSP,0x48 POP RBX POP R14 POP R15 POP RBP JMP RAX LAB_0017725c: MOV EDI,0x10 CALL 0x0011c460 MOV RBX,RAX LAB_00177269: LEA RDI,[RSP + 0x8] MOV RSI,R14 MOV EDX,0xffffffff XOR ECX,ECX CALL 0x0016cb9a LAB_0017727d: LEA RSI,[0x1cc2e1] LEA RDI,[RSP + 0x28] LEA RDX,[RSP + 0x8] CALL 0x00166b64 MOV BPL,0x1 LAB_00177296: LEA RSI,[RSP + 0x28] MOV RDI,RBX CALL 0x0011c2c0 XOR EBP,EBP MOV RSI,qword ptr [0x001fffb8] MOV RDX,qword ptr [0x001fff78] MOV RDI,RBX CALL 0x0011c7b0
/* minja::Context::at(minja::Value const&) */ void __thiscall minja::Context::at(Context *this,Value *param_1) { long *plVar1; char cVar2; runtime_error *this_00; int1 local_60 [32]; string local_40 [32]; cVar2 = Value::contains((Value *)(this + 0x18),param_1); if (cVar2 != '\0') { Value::at((Value *)(this + 0x18),param_1); return; } plVar1 = *(long **)(this + 0x68); if (plVar1 != (long *)0x0) { /* WARNING: Could not recover jumptable at 0x0017725a. Too many branches */ /* WARNING: Treating indirect jump as call */ (**(code **)(*plVar1 + 0x18))(plVar1,param_1); return; } this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00177269 to 0017727c has its CatchHandler @ 0017731b */ Value::dump_abi_cxx11_((int)local_60,SUB81(param_1,0)); /* try { // try from 0017727d to 00177292 has its CatchHandler @ 001772fb */ std::operator+((char *)local_40,(string *)"Undefined variable: "); /* try { // try from 00177296 to 001772ba has its CatchHandler @ 001772bb */ std::runtime_error::runtime_error(this_00,local_40); /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_001fffb8,PTR__runtime_error_001fff78); }
6,230
resolve_hostname
navaro[P]qoraal-tictactoe/build_O3/_deps/qoraal_http-src/src/qshell/httpcmds.c
int resolve_hostname(const char *hostname, uint32_t *ip) { struct addrinfo hints, *res = NULL; memset(&hints, 0, sizeof(hints)); hints.ai_family = AF_INET; // IPv4 only hints.ai_socktype = SOCK_STREAM; // TCP connection if (getaddrinfo(hostname, NULL, &hints, &res) != 0) { return HTTP_CLIENT_E_HOST; // Failed to resolve } struct sockaddr_in *addr = (struct sockaddr_in *)res->ai_addr; *ip = addr->sin_addr.s_addr; freeaddrinfo(res); return EOK; }
O3
c
resolve_hostname: pushq %rbp movq %rsp, %rbp pushq %rbx subq $0x38, %rsp movq %rsi, %rbx leaq -0x10(%rbp), %rcx movq $0x0, (%rcx) xorps %xmm0, %xmm0 leaq -0x40(%rbp), %rdx movaps %xmm0, (%rdx) movaps %xmm0, 0x10(%rdx) movaps %xmm0, 0x20(%rdx) movabsq $0x100000002, %rax # imm = 0x100000002 movq %rax, 0x4(%rdx) xorl %esi, %esi callq 0x6530 movl %eax, %ecx movl $0xfffffff7, %eax # imm = 0xFFFFFFF7 testl %ecx, %ecx jne 0x1fbf6 movq -0x10(%rbp), %rdi movq 0x18(%rdi), %rax movl 0x4(%rax), %eax movl %eax, (%rbx) callq 0x6610 xorl %eax, %eax addq $0x38, %rsp popq %rbx popq %rbp retq
resolve_hostname: push rbp mov rbp, rsp push rbx sub rsp, 38h mov rbx, rsi lea rcx, [rbp+var_10] mov qword ptr [rcx], 0 xorps xmm0, xmm0 lea rdx, [rbp+var_40] movaps xmmword ptr [rdx], xmm0 movaps xmmword ptr [rdx+10h], xmm0 movaps xmmword ptr [rdx+20h], xmm0 mov rax, 100000002h mov [rdx+4], rax xor esi, esi call _getaddrinfo mov ecx, eax mov eax, 0FFFFFFF7h test ecx, ecx jnz short loc_1FBF6 mov rdi, [rbp+var_10] mov rax, [rdi+18h] mov eax, [rax+4] mov [rbx], eax call _freeaddrinfo xor eax, eax loc_1FBF6: add rsp, 38h pop rbx pop rbp retn
long long resolve_hostname(long long a1, _DWORD *a2) { int v2; // ecx long long result; // rax _DWORD v4[12]; // [rsp+0h] [rbp-40h] BYREF long long v5; // [rsp+30h] [rbp-10h] BYREF v5 = 0LL; memset(v4, 0, sizeof(v4)); *(_QWORD *)&v4[1] = 0x100000002LL; v2 = ((long long ( *)(long long, _QWORD, _DWORD *, long long *))getaddrinfo)(a1, 0LL, v4, &v5); result = 4294967287LL; if ( !v2 ) { *a2 = *(_DWORD *)(*(_QWORD *)(v5 + 24) + 4LL); freeaddrinfo(); return 0LL; } return result; }
resolve_hostname: PUSH RBP MOV RBP,RSP PUSH RBX SUB RSP,0x38 MOV RBX,RSI LEA RCX,[RBP + -0x10] MOV qword ptr [RCX],0x0 XORPS XMM0,XMM0 LEA RDX,[RBP + -0x40] MOVAPS xmmword ptr [RDX],XMM0 MOVAPS xmmword ptr [RDX + 0x10],XMM0 MOVAPS xmmword ptr [RDX + 0x20],XMM0 MOV RAX,0x100000002 MOV qword ptr [RDX + 0x4],RAX XOR ESI,ESI CALL 0x00106530 MOV ECX,EAX MOV EAX,0xfffffff7 TEST ECX,ECX JNZ 0x0011fbf6 MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RDI + 0x18] MOV EAX,dword ptr [RAX + 0x4] MOV dword ptr [RBX],EAX CALL 0x00106610 XOR EAX,EAX LAB_0011fbf6: ADD RSP,0x38 POP RBX POP RBP RET
int8 resolve_hostname(char *param_1,int4 *param_2) { int iVar1; int8 uVar2; addrinfo local_48; addrinfo *local_18; local_18 = (addrinfo *)0x0; local_48.ai_flags = 0; local_48.ai_protocol = 0; local_48.ai_addrlen = 0; local_48._20_4_ = 0; local_48.ai_addr = (sockaddr *)0x0; local_48.ai_canonname = (char *)0x0; local_48.ai_next = (addrinfo *)0x0; local_48.ai_family = 2; local_48.ai_socktype = 1; iVar1 = getaddrinfo(param_1,(char *)0x0,&local_48,&local_18); uVar2 = 0xfffffff7; if (iVar1 == 0) { *param_2 = *(int4 *)(local_18->ai_addr->sa_data + 2); freeaddrinfo(local_18); uVar2 = 0; } return uVar2; }
6,231
inline_mysql_file_close
eloqsql/include/mysql/psi/mysql_file.h
static inline int inline_mysql_file_close( #ifdef HAVE_PSI_FILE_INTERFACE const char *src_file, uint src_line, #endif File file, myf flags) { int result; #ifdef HAVE_PSI_FILE_INTERFACE struct PSI_file_locker *locker; PSI_file_locker_state state; locker= PSI_FILE_CALL(get_thread_file_descriptor_locker)(&state, file, PSI_FILE_CLOSE); if (psi_likely(locker != NULL)) { PSI_FILE_CALL(start_file_close_wait)(locker, src_file, src_line); result= my_close(file, flags); PSI_FILE_CALL(end_file_close_wait)(locker, result); return result; } #endif result= my_close(file, flags); return result; }
O0
c
inline_mysql_file_close: pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movl %edx, -0x18(%rbp) movq %rcx, -0x20(%rbp) leaq 0x20e088(%rip), %rax # 0x2bf098 movq (%rax), %rax movq 0x158(%rax), %rax movl -0x18(%rbp), %esi leaq -0x78(%rbp), %rdi movl $0x4, %edx callq *%rax movq %rax, -0x30(%rbp) cmpq $0x0, -0x30(%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 0xb109b leaq 0x20e045(%rip), %rax # 0x2bf098 movq (%rax), %rax movq 0x220(%rax), %rax movq -0x30(%rbp), %rdi movq -0x10(%rbp), %rsi movl -0x14(%rbp), %edx callq *%rax movl -0x18(%rbp), %edi movq -0x20(%rbp), %rsi callq 0xf3a30 movl %eax, -0x24(%rbp) leaq 0x20e018(%rip), %rax # 0x2bf098 movq (%rax), %rax movq 0x228(%rax), %rax movq -0x30(%rbp), %rdi movl -0x24(%rbp), %esi callq *%rax movl -0x24(%rbp), %eax movl %eax, -0x4(%rbp) jmp 0xb10b0 movl -0x18(%rbp), %edi movq -0x20(%rbp), %rsi callq 0xf3a30 movl %eax, -0x24(%rbp) movl -0x24(%rbp), %eax movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x80, %rsp popq %rbp retq nopl (%rax)
inline_mysql_file_close_5: push rbp mov rbp, rsp sub rsp, 80h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_18], edx mov [rbp+var_20], rcx lea rax, PSI_server mov rax, [rax] mov rax, [rax+158h] mov esi, [rbp+var_18] lea rdi, [rbp+var_78] mov edx, 4 call rax mov [rbp+var_30], rax cmp [rbp+var_30], 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_B109B lea rax, PSI_server mov rax, [rax] mov rax, [rax+220h] mov rdi, [rbp+var_30] mov rsi, [rbp+var_10] mov edx, [rbp+var_14] call rax mov edi, [rbp+var_18] mov rsi, [rbp+var_20] call my_close mov [rbp+var_24], eax lea rax, PSI_server mov rax, [rax] mov rax, [rax+228h] mov rdi, [rbp+var_30] mov esi, [rbp+var_24] call rax mov eax, [rbp+var_24] mov [rbp+var_4], eax jmp short loc_B10B0 loc_B109B: mov edi, [rbp+var_18] mov rsi, [rbp+var_20] call my_close mov [rbp+var_24], eax mov eax, [rbp+var_24] mov [rbp+var_4], eax loc_B10B0: mov eax, [rbp+var_4] add rsp, 80h pop rbp retn
long long inline_mysql_file_close_5(long long a1, unsigned int a2, unsigned int a3, long long a4) { _BYTE v5[72]; // [rsp+8h] [rbp-78h] BYREF long long v6; // [rsp+50h] [rbp-30h] unsigned int v7; // [rsp+5Ch] [rbp-24h] long long v8; // [rsp+60h] [rbp-20h] unsigned int v9; // [rsp+68h] [rbp-18h] unsigned int v10; // [rsp+6Ch] [rbp-14h] long long v11; // [rsp+70h] [rbp-10h] v11 = a1; v10 = a2; v9 = a3; v8 = a4; v6 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v5, a3, 4LL); if ( v6 ) { ((void ( *)(long long, long long, _QWORD))PSI_server[68])(v6, v11, v10); v7 = my_close(v9, v8); ((void ( *)(long long, _QWORD))PSI_server[69])(v6, v7); } else { return (unsigned int)my_close(v9, v8); } return v7; }
inline_mysql_file_close: PUSH RBP MOV RBP,RSP SUB RSP,0x80 MOV qword ptr [RBP + -0x10],RDI MOV dword ptr [RBP + -0x14],ESI MOV dword ptr [RBP + -0x18],EDX MOV qword ptr [RBP + -0x20],RCX LEA RAX,[0x3bf098] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x158] MOV ESI,dword ptr [RBP + -0x18] LEA RDI,[RBP + -0x78] MOV EDX,0x4 CALL RAX MOV qword ptr [RBP + -0x30],RAX CMP qword ptr [RBP + -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 0x001b109b LEA RAX,[0x3bf098] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x220] MOV RDI,qword ptr [RBP + -0x30] MOV RSI,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RBP + -0x14] CALL RAX MOV EDI,dword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] CALL 0x001f3a30 MOV dword ptr [RBP + -0x24],EAX LEA RAX,[0x3bf098] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x228] MOV RDI,qword ptr [RBP + -0x30] MOV ESI,dword ptr [RBP + -0x24] CALL RAX MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x4],EAX JMP 0x001b10b0 LAB_001b109b: MOV EDI,dword ptr [RBP + -0x18] MOV RSI,qword ptr [RBP + -0x20] CALL 0x001f3a30 MOV dword ptr [RBP + -0x24],EAX MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x4],EAX LAB_001b10b0: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x80 POP RBP RET
int4 inline_mysql_file_close(int8 param_1,int4 param_2,int4 param_3,int8 param_4) { int1 local_80 [72]; long local_38; int4 local_2c; int8 local_28; int4 local_20; int4 local_1c; int8 local_18; int4 local_c; local_28 = param_4; local_20 = param_3; local_1c = param_2; local_18 = param_1; local_38 = (**(code **)(PSI_server + 0x158))(local_80,param_3,4); if (local_38 == 0) { local_c = my_close(local_20,local_28); } else { (**(code **)(PSI_server + 0x220))(local_38,local_18,local_1c); local_2c = my_close(local_20,local_28); (**(code **)(PSI_server + 0x228))(local_38,local_2c); local_c = local_2c; } return local_c; }
6,232
unpack_filename
eloqsql/mysys/mf_pack.c
size_t unpack_filename(char * to, const char *from) { size_t length, n_length, buff_length; char buff[FN_REFLEN + 1]; DBUG_ENTER("unpack_filename"); length=dirname_part(buff, from, &buff_length);/* copy & convert dirname */ n_length=unpack_dirname(buff,buff); if (n_length+strlen(from+length) < FN_REFLEN) { (void) strmov(buff+n_length,from+length); length= system_filename(to,buff); /* Fix to usably filename */ } else length= system_filename(to,from); /* Fix to usably filename */ DBUG_RETURN(length); }
O0
c
unpack_filename: pushq %rbp movq %rsp, %rbp subq $0x250, %rsp # imm = 0x250 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x218(%rbp) movq %rsi, -0x220(%rbp) leaq -0x210(%rbp), %rdi movq -0x220(%rbp), %rsi leaq -0x238(%rbp), %rdx callq 0x2d680 movq %rax, -0x228(%rbp) leaq -0x210(%rbp), %rdi leaq -0x210(%rbp), %rsi callq 0x2e220 movq %rax, -0x230(%rbp) movq -0x230(%rbp), %rax movq %rax, -0x240(%rbp) movq -0x220(%rbp), %rdi addq -0x228(%rbp), %rdi callq 0x24130 movq %rax, %rcx movq -0x240(%rbp), %rax addq %rcx, %rax cmpq $0x200, %rax # imm = 0x200 jae 0x2e5d4 leaq -0x210(%rbp), %rdi addq -0x230(%rbp), %rdi movq -0x220(%rbp), %rsi addq -0x228(%rbp), %rsi callq 0x242f0 movq -0x218(%rbp), %rdi leaq -0x210(%rbp), %rsi callq 0x2e4d0 movq %rax, -0x228(%rbp) jmp 0x2e5ee movq -0x218(%rbp), %rdi movq -0x220(%rbp), %rsi callq 0x2e4d0 movq %rax, -0x228(%rbp) jmp 0x2e5f0 movq -0x228(%rbp), %rax movq %rax, -0x248(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x2e620 movq -0x248(%rbp), %rax addq $0x250, %rsp # imm = 0x250 popq %rbp retq callq 0x24320 nopw %cs:(%rax,%rax) nop
unpack_filename: push rbp mov rbp, rsp sub rsp, 250h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_218], rdi mov [rbp+var_220], rsi lea rdi, [rbp+var_210] mov rsi, [rbp+var_220] lea rdx, [rbp+var_238] call dirname_part mov [rbp+var_228], rax lea rdi, [rbp+var_210] lea rsi, [rbp+var_210] call unpack_dirname mov [rbp+var_230], rax mov rax, [rbp+var_230] mov [rbp+var_240], rax mov rdi, [rbp+var_220] add rdi, [rbp+var_228] call _strlen mov rcx, rax mov rax, [rbp+var_240] add rax, rcx cmp rax, 200h jnb short loc_2E5D4 lea rdi, [rbp+var_210] add rdi, [rbp+var_230] mov rsi, [rbp+var_220] add rsi, [rbp+var_228] call _stpcpy mov rdi, [rbp+var_218] lea rsi, [rbp+var_210] call system_filename mov [rbp+var_228], rax jmp short loc_2E5EE loc_2E5D4: mov rdi, [rbp+var_218] mov rsi, [rbp+var_220] call system_filename mov [rbp+var_228], rax loc_2E5EE: jmp short $+2 loc_2E5F0: mov rax, [rbp+var_228] mov [rbp+var_248], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_2E620 mov rax, [rbp+var_248] add rsp, 250h pop rbp retn loc_2E620: call ___stack_chk_fail
long long unpack_filename(long long a1, _BYTE *a2) { long long v3; // [rsp+10h] [rbp-240h] long long v4; // [rsp+18h] [rbp-238h] BYREF long long v5; // [rsp+20h] [rbp-230h] long long v6; // [rsp+28h] [rbp-228h] _BYTE *v7; // [rsp+30h] [rbp-220h] long long v8; // [rsp+38h] [rbp-218h] _BYTE v9[520]; // [rsp+40h] [rbp-210h] BYREF unsigned long long v10; // [rsp+248h] [rbp-8h] v10 = __readfsqword(0x28u); v8 = a1; v7 = a2; v6 = dirname_part((long long)v9, a2, &v4); v5 = unpack_dirname((long long)v9, v9); v3 = v5; if ( (unsigned long long)(strlen(&v7[v6]) + v3) >= 0x200 ) return system_filename(v8, (long long)v7); stpcpy(&v9[v5], &v7[v6]); return system_filename(v8, (long long)v9); }
unpack_filename: PUSH RBP MOV RBP,RSP SUB RSP,0x250 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x218],RDI MOV qword ptr [RBP + -0x220],RSI LEA RDI,[RBP + -0x210] MOV RSI,qword ptr [RBP + -0x220] LEA RDX,[RBP + -0x238] CALL 0x0012d680 MOV qword ptr [RBP + -0x228],RAX LEA RDI,[RBP + -0x210] LEA RSI,[RBP + -0x210] CALL 0x0012e220 MOV qword ptr [RBP + -0x230],RAX MOV RAX,qword ptr [RBP + -0x230] MOV qword ptr [RBP + -0x240],RAX MOV RDI,qword ptr [RBP + -0x220] ADD RDI,qword ptr [RBP + -0x228] CALL 0x00124130 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x240] ADD RAX,RCX CMP RAX,0x200 JNC 0x0012e5d4 LEA RDI,[RBP + -0x210] ADD RDI,qword ptr [RBP + -0x230] MOV RSI,qword ptr [RBP + -0x220] ADD RSI,qword ptr [RBP + -0x228] CALL 0x001242f0 MOV RDI,qword ptr [RBP + -0x218] LEA RSI,[RBP + -0x210] CALL 0x0012e4d0 MOV qword ptr [RBP + -0x228],RAX JMP 0x0012e5ee LAB_0012e5d4: MOV RDI,qword ptr [RBP + -0x218] MOV RSI,qword ptr [RBP + -0x220] CALL 0x0012e4d0 MOV qword ptr [RBP + -0x228],RAX LAB_0012e5ee: JMP 0x0012e5f0 LAB_0012e5f0: MOV RAX,qword ptr [RBP + -0x228] MOV qword ptr [RBP + -0x248],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0012e620 MOV RAX,qword ptr [RBP + -0x248] ADD RSP,0x250 POP RBP RET LAB_0012e620: CALL 0x00124320
int8 unpack_filename(int8 param_1,long param_2) { long lVar1; size_t sVar2; long in_FS_OFFSET; int1 local_240 [8]; long local_238; long local_230; long local_228; int8 local_220; char local_218 [520]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_228 = param_2; local_220 = param_1; local_230 = dirname_part(local_218,param_2,local_240); lVar1 = unpack_dirname(local_218,local_218); local_238 = lVar1; sVar2 = strlen((char *)(local_228 + local_230)); if (lVar1 + sVar2 < 0x200) { stpcpy(local_218 + local_238,(char *)(local_228 + local_230)); local_230 = system_filename(local_220,local_218); } else { local_230 = system_filename(local_220,local_228); } if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return local_230; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
6,233
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::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_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::end_object()
llama.cpp/common/json.hpp
bool end_object() { if (ref_stack.back()) { if (!callback(static_cast<int>(ref_stack.size()) - 1, parse_event_t::object_end, *ref_stack.back())) { // discard object *ref_stack.back() = discarded; } else { ref_stack.back()->set_parents(); } } JSON_ASSERT(!ref_stack.empty()); JSON_ASSERT(!keep_stack.empty()); ref_stack.pop_back(); keep_stack.pop_back(); if (!ref_stack.empty() && ref_stack.back() && ref_stack.back()->is_structured()) { // remove discarded value for (auto it = ref_stack.back()->begin(); it != ref_stack.back()->end(); ++it) { if (it->is_discarded()) { ref_stack.back()->erase(it); break; } } } return true; }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::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_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::end_object(): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movq %rdi, %rbx movq 0x10(%rdi), %rax movq -0x8(%rax), %rcx testq %rcx, %rcx je 0x7725e subq 0x8(%rbx), %rax shrq $0x3, %rax decl %eax movl %eax, 0x28(%rsp) movb $0x1, 0x8(%rsp) cmpq $0x0, 0x90(%rbx) je 0x77409 leaq 0x80(%rbx), %rdi leaq 0x28(%rsp), %rsi leaq 0x8(%rsp), %rdx callq *0x98(%rbx) testb %al, %al jne 0x7725e leaq 0xa8(%rbx), %rsi leaq 0x48(%rsp), %r14 movq %r14, %rdi callq 0x785d0 movq 0x10(%rbx), %rax movq -0x8(%rax), %rdi movq %r14, %rsi callq 0x75d34 movq %r14, %rdi xorl %esi, %esi callq 0x72f62 movq %r14, %rdi callq 0x78ab0 movq 0x8(%rbx), %rcx movq 0x10(%rbx), %rax cmpq %rax, %rcx je 0x773cc movq 0x30(%rbx), %rdx movl 0x38(%rbx), %esi cmpq %rdx, 0x20(%rbx) sete %dil testl %esi, %esi sete %r8b andb %dil, %r8b cmpb $0x1, %r8b je 0x773e8 leaq -0x8(%rax), %rdi movq %rdi, 0x10(%rbx) subl $0x1, %esi movl %esi, 0x38(%rbx) jae 0x772b0 movl $0x3f, 0x38(%rbx) addq $-0x8, %rdx movq %rdx, 0x30(%rbx) cmpq %rdi, %rcx je 0x773bb movq -0x10(%rax), %rax testq %rax, %rax je 0x773bb movb (%rax), %cl decb %cl cmpb $0x1, %cl ja 0x773bb movabsq $-0x8000000000000000, %r12 # imm = 0x8000000000000000 leaq 0x28(%rsp), %r14 movq %rax, (%r14) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%r14) movq %r12, 0x18(%r14) movq %r14, %rdi callq 0x7954e movq 0x10(%rbx), %rax movq -0x8(%rax), %rax leaq 0x8(%rsp), %r15 movq %rax, (%r15) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%r15) movq %r12, 0x18(%r15) movq %r15, %rdi callq 0x798d2 movq %r14, %rdi movq %r15, %rsi callq 0x795c0 testb %al, %al jne 0x773bb leaq 0x30(%rsp), %r13 leaq 0x10(%rsp), %rbp leaq 0x28(%rsp), %r14 leaq 0x8(%rsp), %r15 movq %r14, %rdi callq 0x78674 cmpb $0x9, (%rax) je 0x7738b movq %r14, %rdi callq 0x78a56 movq 0x10(%rbx), %rax movq -0x8(%rax), %rax movq %rax, 0x8(%rsp) xorps %xmm0, %xmm0 movups %xmm0, (%rbp) movq %r12, 0x20(%rsp) movq %r15, %rdi callq 0x798d2 movq %r14, %rdi movq %r15, %rsi callq 0x795c0 testb %al, %al je 0x77344 jmp 0x773bb movq 0x10(%rbx), %rax movq -0x8(%rax), %rsi movq 0x28(%rsp), %rax leaq 0x58(%rsp), %rdx movq %rax, (%rdx) movups (%r13), %xmm0 movups %xmm0, 0x8(%rdx) movq 0x10(%r13), %rax movq %rax, 0x18(%rdx) leaq 0x8(%rsp), %rdi callq 0x787c4 movb $0x1, %al addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0xa2325(%rip), %rdi # 0x1196f8 leaq 0x9ae21(%rip), %rdx # 0x1121fb leaq 0xa32f3(%rip), %rcx # 0x11a6d4 movl $0x1bbd, %esi # imm = 0x1BBD jmp 0x77402 leaq 0xa2309(%rip), %rdi # 0x1196f8 leaq 0x9ae05(%rip), %rdx # 0x1121fb leaq 0xa3251(%rip), %rcx # 0x11a64e movl $0x1bbe, %esi # imm = 0x1BBE xorl %eax, %eax callq 0x20e60 callq 0x212c0
_ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10end_objectEv: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 78h mov rbx, rdi mov rax, [rdi+10h] mov rcx, [rax-8] test rcx, rcx jz short loc_7725E sub rax, [rbx+8] shr rax, 3 dec eax mov dword ptr [rsp+0A8h+var_80], eax mov byte ptr [rsp+0A8h+var_A0], 1 cmp qword ptr [rbx+90h], 0 jz loc_77409 lea rdi, [rbx+80h] lea rsi, [rsp+0A8h+var_80] lea rdx, [rsp+0A8h+var_A0] call qword ptr [rbx+98h] test al, al jnz short loc_7725E lea rsi, [rbx+0A8h] lea r14, [rsp+0A8h+var_60] mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<std::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<std::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 rax, [rbx+10h] mov rdi, [rax-8] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator=(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>) mov rdi, r14 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<std::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 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<std::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_7725E: mov rcx, [rbx+8] mov rax, [rbx+10h] cmp rcx, rax jz loc_773CC mov rdx, [rbx+30h] mov esi, [rbx+38h] cmp [rbx+20h], rdx setz dil test esi, esi setz r8b and r8b, dil cmp r8b, 1 jz loc_773E8 lea rdi, [rax-8] mov [rbx+10h], rdi sub esi, 1 mov [rbx+38h], esi jnb short loc_772B0 mov dword ptr [rbx+38h], 3Fh ; '?' add rdx, 0FFFFFFFFFFFFFFF8h mov [rbx+30h], rdx loc_772B0: cmp rcx, rdi jz loc_773BB mov rax, [rax-10h] test rax, rax jz loc_773BB mov cl, [rax] dec cl cmp cl, 1 ja loc_773BB mov r12, 8000000000000000h lea r14, [rsp+0A8h+var_80] mov [r14], rax xorps xmm0, xmm0 movups xmmword ptr [r14+8], xmm0 mov [r14+18h], r12 mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE9set_beginEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::set_begin(void) mov rax, [rbx+10h] mov rax, [rax-8] lea r15, [rsp+0A8h+var_A0] mov [r15], rax xorps xmm0, xmm0 movups xmmword ptr [r15+8], xmm0 mov [r15+18h], r12 mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE7set_endEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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 rdi, r14 mov rsi, r15 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_ test al, al jnz loc_773BB lea r13, [rsp+0A8h+var_78] lea rbp, [rsp+0A8h+var_98] lea r14, [rsp+0A8h+var_80] lea r15, [rsp+0A8h+var_A0] loc_77344: mov rdi, r14 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEptEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::operator->(void) cmp byte ptr [rax], 9 jz short loc_7738B mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::operator++(void) mov rax, [rbx+10h] mov rax, [rax-8] mov [rsp+0A8h+var_A0], rax xorps xmm0, xmm0 movups xmmword ptr [rbp+0], xmm0 mov [rsp+0A8h+var_88], r12 mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE7set_endEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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 rdi, r14 mov rsi, r15 call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_ test al, al jz short loc_77344 jmp short loc_773BB loc_7738B: mov rax, [rbx+10h] mov rsi, [rax-8] mov rax, [rsp+0A8h+var_80] lea rdx, [rsp+0A8h+var_50] mov [rdx], rax movups xmm0, xmmword ptr [r13+0] movups xmmword ptr [rdx+8], xmm0 mov rax, [r13+10h] mov [rdx+18h], rax lea rdi, [rsp+0A8h+var_A0] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_ loc_773BB: mov al, 1 add rsp, 78h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_773CC: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aRefStackEmpty; "!ref_stack.empty()" mov esi, 1BBDh jmp short loc_77402 loc_773E8: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aKeepStackEmpty; "!keep_stack.empty()" mov esi, 1BBEh loc_77402: xor eax, eax call _ggml_abort loc_77409: call __ZSt25__throw_bad_function_callv; std::__throw_bad_function_call(void)
char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::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_object( long long a1) { long long v1; // rax long long v2; // rcx long long v3; // rax long long v4; // rdx int v5; // esi _BYTE *v6; // rax long long v7; // rsi long long v9; // [rsp+8h] [rbp-A0h] BYREF __int128 v10; // [rsp+10h] [rbp-98h] unsigned long long v11; // [rsp+20h] [rbp-88h] _BYTE *v12; // [rsp+28h] [rbp-80h] BYREF __int128 v13; // [rsp+30h] [rbp-78h] unsigned long long v14; // [rsp+40h] [rbp-68h] char v15[16]; // [rsp+48h] [rbp-60h] BYREF _BYTE *v16; // [rsp+58h] [rbp-50h] __int128 v17; // [rsp+60h] [rbp-48h] unsigned long long v18; // [rsp+70h] [rbp-38h] v1 = *(_QWORD *)(a1 + 16); if ( *(_QWORD *)(v1 - 8) ) { LODWORD(v12) = ((unsigned long long)(v1 - *(_QWORD *)(a1 + 8)) >> 3) - 1; LOBYTE(v9) = 1; if ( !*(_QWORD *)(a1 + 144) ) goto LABEL_20; if ( !(*(unsigned __int8 ( **)(long long, _BYTE **, long long *))(a1 + 152))(a1 + 128, &v12, &v9) ) { nlohmann::json_abi_v3_11_3::basic_json<std::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( v15, a1 + 168); nlohmann::json_abi_v3_11_3::basic_json<std::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=( *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL), (long long)v15); nlohmann::json_abi_v3_11_3::basic_json<std::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(v15); nlohmann::json_abi_v3_11_3::basic_json<std::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(v15); } } v2 = *(_QWORD *)(a1 + 8); v3 = *(_QWORD *)(a1 + 16); if ( v2 == v3 ) { ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/json.hpp", 7101LL, "GGML_ASSERT(%s) failed", "!ref_stack.empty()"); goto LABEL_20; } v4 = *(_QWORD *)(a1 + 48); v5 = *(_DWORD *)(a1 + 56); if ( *(_QWORD *)(a1 + 32) == v4 && v5 == 0 ) { ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/json.hpp", 7102LL, "GGML_ASSERT(%s) failed", "!keep_stack.empty()"); LABEL_20: std::__throw_bad_function_call(); } *(_QWORD *)(a1 + 16) = v3 - 8; *(_DWORD *)(a1 + 56) = v5 - 1; if ( !v5 ) { *(_DWORD *)(a1 + 56) = 63; *(_QWORD *)(a1 + 48) = v4 - 8; } if ( v2 != v3 - 8 ) { v6 = *(_BYTE **)(v3 - 16); if ( v6 ) { if ( (unsigned __int8)(*v6 - 1) <= 1u ) { v12 = v6; v13 = 0LL; v14 = 0x8000000000000000LL; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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_begin(&v12); v9 = *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL); v10 = 0LL; v11 = 0x8000000000000000LL; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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(&v9); if ( !(unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_( &v12, &v9) ) { while ( *(_BYTE *)nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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->(&v12) != 9 ) { nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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++(&v12); v9 = *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL); v10 = 0LL; v11 = 0x8000000000000000LL; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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(&v9); if ( (unsigned __int8)ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_( &v12, &v9) ) return 1; } v7 = *(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL); v16 = v12; v17 = v13; v18 = v14; ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_( &v9, v7); } } } } return 1; }
end_object: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x78 MOV RBX,RDI MOV RAX,qword ptr [RDI + 0x10] MOV RCX,qword ptr [RAX + -0x8] TEST RCX,RCX JZ 0x0017725e SUB RAX,qword ptr [RBX + 0x8] SHR RAX,0x3 DEC EAX MOV dword ptr [RSP + 0x28],EAX MOV byte ptr [RSP + 0x8],0x1 CMP qword ptr [RBX + 0x90],0x0 JZ 0x00177409 LEA RDI,[RBX + 0x80] LEA RSI,[RSP + 0x28] LEA RDX,[RSP + 0x8] CALL qword ptr [RBX + 0x98] TEST AL,AL JNZ 0x0017725e LEA RSI,[RBX + 0xa8] LEA R14,[RSP + 0x48] MOV RDI,R14 CALL 0x001785d0 MOV RAX,qword ptr [RBX + 0x10] MOV RDI,qword ptr [RAX + -0x8] MOV RSI,R14 CALL 0x00175d34 MOV RDI,R14 XOR ESI,ESI CALL 0x00172f62 MOV RDI,R14 CALL 0x00178ab0 LAB_0017725e: MOV RCX,qword ptr [RBX + 0x8] MOV RAX,qword ptr [RBX + 0x10] CMP RCX,RAX JZ 0x001773cc MOV RDX,qword ptr [RBX + 0x30] MOV ESI,dword ptr [RBX + 0x38] CMP qword ptr [RBX + 0x20],RDX SETZ DIL TEST ESI,ESI SETZ R8B AND R8B,DIL CMP R8B,0x1 JZ 0x001773e8 LEA RDI,[RAX + -0x8] MOV qword ptr [RBX + 0x10],RDI SUB ESI,0x1 MOV dword ptr [RBX + 0x38],ESI JNC 0x001772b0 MOV dword ptr [RBX + 0x38],0x3f ADD RDX,-0x8 MOV qword ptr [RBX + 0x30],RDX LAB_001772b0: CMP RCX,RDI JZ 0x001773bb MOV RAX,qword ptr [RAX + -0x10] TEST RAX,RAX JZ 0x001773bb MOV CL,byte ptr [RAX] DEC CL CMP CL,0x1 JA 0x001773bb MOV R12,-0x8000000000000000 LEA R14,[RSP + 0x28] MOV qword ptr [R14],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [R14 + 0x8],XMM0 MOV qword ptr [R14 + 0x18],R12 MOV RDI,R14 CALL 0x0017954e MOV RAX,qword ptr [RBX + 0x10] MOV RAX,qword ptr [RAX + -0x8] LEA R15,[RSP + 0x8] MOV qword ptr [R15],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [R15 + 0x8],XMM0 MOV qword ptr [R15 + 0x18],R12 MOV RDI,R15 CALL 0x001798d2 MOV RDI,R14 MOV RSI,R15 CALL 0x001795c0 TEST AL,AL JNZ 0x001773bb LEA R13,[RSP + 0x30] LEA RBP,[RSP + 0x10] LEA R14,[RSP + 0x28] LEA R15,[RSP + 0x8] LAB_00177344: MOV RDI,R14 CALL 0x00178674 CMP byte ptr [RAX],0x9 JZ 0x0017738b MOV RDI,R14 CALL 0x00178a56 MOV RAX,qword ptr [RBX + 0x10] MOV RAX,qword ptr [RAX + -0x8] MOV qword ptr [RSP + 0x8],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBP],XMM0 MOV qword ptr [RSP + 0x20],R12 MOV RDI,R15 CALL 0x001798d2 MOV RDI,R14 MOV RSI,R15 CALL 0x001795c0 TEST AL,AL JZ 0x00177344 JMP 0x001773bb LAB_0017738b: MOV RAX,qword ptr [RBX + 0x10] MOV RSI,qword ptr [RAX + -0x8] MOV RAX,qword ptr [RSP + 0x28] LEA RDX,[RSP + 0x58] MOV qword ptr [RDX],RAX MOVUPS XMM0,xmmword ptr [R13] MOVUPS xmmword ptr [RDX + 0x8],XMM0 MOV RAX,qword ptr [R13 + 0x10] MOV qword ptr [RDX + 0x18],RAX LEA RDI,[RSP + 0x8] CALL 0x001787c4 LAB_001773bb: MOV AL,0x1 ADD RSP,0x78 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001773cc: LEA RDI,[0x2196f8] LEA RDX,[0x2121fb] LEA RCX,[0x21a6d4] MOV ESI,0x1bbd JMP 0x00177402 LAB_001773e8: LEA RDI,[0x2196f8] LEA RDX,[0x2121fb] LEA RCX,[0x21a64e] MOV ESI,0x1bbe LAB_00177402: XOR EAX,EAX CALL 0x00120e60 LAB_00177409: CALL 0x001212c0
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::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_object() */ int8 __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::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_object(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<std::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) { int iVar1; long lVar2; char cVar3; char *pcVar4; int8 uVar5; int8 local_a0; int8 local_98; int8 uStack_90; int8 local_88; char *local_80; int8 local_78; int8 uStack_70; int8 local_68; basic_json<std::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_60 [16]; char *local_50; int4 local_48; int4 uStack_44; int4 uStack_40; int4 uStack_3c; int8 local_38; if (*(long *)(*(long *)(this + 0x10) + -8) != 0) { local_80 = (char *)CONCAT44(local_80._4_4_, (int)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 3) + -1); local_a0 = CONCAT71(local_a0._1_7_,1); if (*(long *)(this + 0x90) == 0) { /* WARNING: Subroutine does not return */ std::__throw_bad_function_call(); } cVar3 = (**(code **)(this + 0x98))(this + 0x80,&local_80,&local_a0); if (cVar3 == '\0') { basic_json<std::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_60,(basic_json *)(this + 0xa8)); basic_json<std::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=(*(basic_json<std::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> **)(*(long *)(this + 0x10) + -8),local_60); basic_json<std::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(local_60,0)); basic_json<std::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_60); } } lVar2 = *(long *)(this + 0x10); if (*(long *)(this + 8) == lVar2) { pcVar4 = "!ref_stack.empty()"; uVar5 = 0x1bbd; } else { iVar1 = *(int *)(this + 0x38); if (iVar1 != 0 || *(long *)(this + 0x20) != *(long *)(this + 0x30)) { *(long *)(this + 0x10) = lVar2 + -8; *(int *)(this + 0x38) = iVar1 + -1; if (iVar1 == 0) { *(int4 *)(this + 0x38) = 0x3f; *(long *)(this + 0x30) = *(long *)(this + 0x30) + -8; } if (((*(long *)(this + 8) != lVar2 + -8) && (local_80 = *(char **)(lVar2 + -0x10), local_80 != (char *)0x0)) && ((byte)(*local_80 - 1U) < 2)) { local_78 = 0; uStack_70 = 0; local_68 = 0x8000000000000000; iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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_begin((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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_80); local_a0 = *(int8 *)(*(long *)(this + 0x10) + -8); local_98 = 0; uStack_90 = 0; local_88 = 0x8000000000000000; iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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_a0); cVar3 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_ ((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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_80, (iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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_a0); if (cVar3 == '\0') { do { pcVar4 = (char *)iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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->((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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_80); if (*pcVar4 == '\t') { local_50 = local_80; local_48 = (int4)local_78; uStack_44 = local_78._4_4_; uStack_40 = (int4)uStack_70; uStack_3c = uStack_70._4_4_; local_38 = local_68; _ZN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_ (&local_a0,*(int8 *)(*(long *)(this + 0x10) + -8)); return 1; } iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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++((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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_80); local_a0 = *(int8 *)(*(long *)(this + 0x10) + -8); local_98 = 0; uStack_90 = 0; local_88 = 0x8000000000000000; iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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_a0); cVar3 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEeqISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_ ((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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_80, (iter_impl<nlohmann::json_abi_v3_11_3::basic_json<std::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_a0); } while (cVar3 == '\0'); } } return 1; } pcVar4 = "!keep_stack.empty()"; uVar5 = 0x1bbe; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",uVar5, "GGML_ASSERT(%s) failed",pcVar4); }
6,234
verify_col_data
eloqsql/libmariadb/unittest/libmariadb/my_test.h
int verify_col_data(MYSQL *mysql, const char *table, const char *col, const char *exp_data) { static char query[MAX_TEST_QUERY_LENGTH]; MYSQL_RES *result; MYSQL_ROW row; int rc; if (table && col) { sprintf(query, "SELECT %s FROM %s LIMIT 1", col, table); rc= mysql_query(mysql, query); check_mysql_rc(rc, mysql); } result= mysql_use_result(mysql); FAIL_IF(!result, "Invalid result set"); if (!(row= mysql_fetch_row(result)) || !row[0]) { diag("Failed to get the result"); goto error; } if(strcmp(row[0], exp_data)) { diag("Expected %s, got %s", exp_data, row[0]); goto error; } mysql_free_result(result); return OK; error: mysql_free_result(result); return FAIL; }
O3
c
verify_col_data: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movq %rcx, %rbx movq %rdi, %r15 testq %rsi, %rsi sete %al testq %rdx, %rdx sete %cl orb %al, %cl jne 0x13c7b movq %rdx, %r8 movq %rsi, %r9 leaq 0x35153(%rip), %r12 # 0x48d60 leaq 0x2051f(%rip), %rcx # 0x34133 movl $0x1, %r14d movl $0x12c, %edx # imm = 0x12C movq %r12, %rdi movl $0x1, %esi xorl %eax, %eax callq 0x132a0 movq %r15, %rdi movq %r12, %rsi callq 0x1a4fd testl %eax, %eax je 0x13c7b movl %eax, %r12d movq %r15, %rdi callq 0x1c576 movq %rax, %rbx movq %r15, %rdi callq 0x1c561 leaq 0x204f3(%rip), %rdi # 0x3414d leaq 0x203cf(%rip), %r8 # 0x34030 movl %r12d, %esi movq %rbx, %rdx movl %eax, %ecx movl $0x17f, %r9d # imm = 0x17F xorl %eax, %eax callq 0x14df3 jmp 0x13d04 movq %r15, %rdi callq 0x1992c testq %rax, %rax je 0x13cdd movq %rax, %r14 movq %rax, %rdi callq 0x1b5f8 testq %rax, %rax je 0x13cc5 movq (%rax), %r15 testq %r15, %r15 je 0x13cc5 movq %r15, %rdi movq %rbx, %rsi callq 0x13640 testl %eax, %eax je 0x13d10 leaq 0x204e5(%rip), %rdi # 0x3419b movq %rbx, %rsi movq %r15, %rdx xorl %eax, %eax callq 0x14df3 jmp 0x13cd3 leaq 0x204b6(%rip), %rdi # 0x34182 xorl %eax, %eax callq 0x14df3 movq %r14, %rdi callq 0x161aa jmp 0x13cfe leaq 0x20324(%rip), %rdi # 0x34008 leaq 0x20484(%rip), %rsi # 0x3416f leaq 0x2033e(%rip), %rdx # 0x34030 movl $0x182, %ecx # imm = 0x182 xorl %eax, %eax callq 0x14df3 movl $0x1, %r14d movl %r14d, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %r14, %rdi callq 0x161aa xorl %r14d, %r14d jmp 0x13d04
verify_col_data: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx mov rbx, rcx mov r15, rdi test rsi, rsi setz al test rdx, rdx setz cl or cl, al jnz short loc_13C7B mov r8, rdx mov r9, rsi lea r12, verify_col_data_query lea rcx, aSelectSFromSLi; "SELECT %s FROM %s LIMIT 1" mov r14d, 1 mov edx, 12Ch mov rdi, r12 mov esi, 1 xor eax, eax call ___sprintf_chk mov rdi, r15 mov rsi, r12 call mysql_query test eax, eax jz short loc_13C7B mov r12d, eax mov rdi, r15 call mysql_error mov rbx, rax mov rdi, r15 call mysql_errno lea rdi, aErrorDSDInSLin; "Error (%d): %s (%d) in %s line %d" lea r8, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"... mov esi, r12d mov rdx, rbx mov ecx, eax mov r9d, 17Fh xor eax, eax call diag jmp loc_13D04 loc_13C7B: mov rdi, r15 call mysql_use_result test rax, rax jz short loc_13CDD mov r14, rax mov rdi, rax call mysql_fetch_row test rax, rax jz short loc_13CC5 mov r15, [rax] test r15, r15 jz short loc_13CC5 mov rdi, r15 mov rsi, rbx call _strcmp test eax, eax jz short loc_13D10 lea rdi, aExpectedSGotS; "Expected %s, got %s" mov rsi, rbx mov rdx, r15 xor eax, eax call diag jmp short loc_13CD3 loc_13CC5: lea rdi, aFailedToGetThe; "Failed to get the result" xor eax, eax call diag loc_13CD3: mov rdi, r14 call mysql_free_result jmp short loc_13CFE loc_13CDD: lea rdi, aErrorSSD; "Error: %s (%s: %d)" lea rsi, aInvalidResultS; "Invalid result set" lea rdx, aWorkspaceLlm4b; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 182h xor eax, eax call diag loc_13CFE: mov r14d, 1 loc_13D04: mov eax, r14d pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_13D10: mov rdi, r14 call mysql_free_result xor r14d, r14d jmp short loc_13D04
long long verify_col_data(long long a1, const char *a2, const char *a3, long long a4) { unsigned int v5; // r14d int v6; // eax int v7; // r12d int v8; // ebx int v9; // eax long long v10; // rax int v11; // r8d int v12; // r9d long long v13; // r14 _QWORD *row; // rax int v15; // edx int v16; // ecx int v17; // r8d int v18; // r9d long long v19; // r15 int v20; // ecx int v21; // r8d int v22; // r9d if ( a2 == 0LL || a3 == 0LL || (v5 = 1, __sprintf_chk(&verify_col_data_query, 1LL, 300LL, "SELECT %s FROM %s LIMIT 1", a3, a2), a2 = (const char *)&verify_col_data_query, (v6 = mysql_query(a1, &verify_col_data_query)) == 0) ) { v10 = mysql_use_result(a1); if ( v10 ) { v13 = v10; row = (_QWORD *)mysql_fetch_row(v10); if ( row && (v19 = *row) != 0 ) { if ( !(unsigned int)strcmp(*row, a4) ) { mysql_free_result(v13); return 0; } diag((unsigned int)"Expected %s, got %s", a4, v19, v20, v21, v22); } else { diag((unsigned int)"Failed to get the result", (_DWORD)a2, v15, v16, v17, v18); } mysql_free_result(v13); } else { diag( (unsigned int)"Error: %s (%s: %d)", (unsigned int)"Invalid result set", (unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h", 386, v11, v12); } return 1; } else { v7 = v6; v8 = mysql_error(a1); v9 = mysql_errno(a1); diag( (unsigned int)"Error (%d): %s (%d) in %s line %d", v7, v8, v9, (unsigned int)"/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h", 383); } return v5; }
verify_col_data: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV RBX,RCX MOV R15,RDI TEST RSI,RSI SETZ AL TEST RDX,RDX SETZ CL OR CL,AL JNZ 0x00113c7b MOV R8,RDX MOV R9,RSI LEA R12,[0x148d60] LEA RCX,[0x134133] MOV R14D,0x1 MOV EDX,0x12c MOV RDI,R12 MOV ESI,0x1 XOR EAX,EAX CALL 0x001132a0 MOV RDI,R15 MOV RSI,R12 CALL 0x0011a4fd TEST EAX,EAX JZ 0x00113c7b MOV R12D,EAX MOV RDI,R15 CALL 0x0011c576 MOV RBX,RAX MOV RDI,R15 CALL 0x0011c561 LEA RDI,[0x13414d] LEA R8,[0x134030] MOV ESI,R12D MOV RDX,RBX MOV ECX,EAX MOV R9D,0x17f XOR EAX,EAX CALL 0x00114df3 JMP 0x00113d04 LAB_00113c7b: MOV RDI,R15 CALL 0x0011992c TEST RAX,RAX JZ 0x00113cdd MOV R14,RAX MOV RDI,RAX CALL 0x0011b5f8 TEST RAX,RAX JZ 0x00113cc5 MOV R15,qword ptr [RAX] TEST R15,R15 JZ 0x00113cc5 MOV RDI,R15 MOV RSI,RBX CALL 0x00113640 TEST EAX,EAX JZ 0x00113d10 LEA RDI,[0x13419b] MOV RSI,RBX MOV RDX,R15 XOR EAX,EAX CALL 0x00114df3 JMP 0x00113cd3 LAB_00113cc5: LEA RDI,[0x134182] XOR EAX,EAX CALL 0x00114df3 LAB_00113cd3: MOV RDI,R14 CALL 0x001161aa JMP 0x00113cfe LAB_00113cdd: LEA RDI,[0x134008] LEA RSI,[0x13416f] LEA RDX,[0x134030] MOV ECX,0x182 XOR EAX,EAX CALL 0x00114df3 LAB_00113cfe: MOV R14D,0x1 LAB_00113d04: MOV EAX,R14D POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00113d10: MOV RDI,R14 CALL 0x001161aa XOR R14D,R14D JMP 0x00113d04
int8 verify_col_data(int8 param_1,long param_2,long param_3,char *param_4) { char *__s1; int iVar1; int4 uVar2; int8 uVar3; long lVar4; int8 *puVar5; if (param_3 != 0 && param_2 != 0) { __sprintf_chk(verify_col_data_query,1,300,"SELECT %s FROM %s LIMIT 1",param_3,param_2); iVar1 = mysql_query(param_1,verify_col_data_query); if (iVar1 != 0) { uVar3 = mysql_error(param_1); uVar2 = mysql_errno(param_1); diag("Error (%d): %s (%d) in %s line %d",iVar1,uVar3,uVar2, "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",0x17f ); return 1; } } lVar4 = mysql_use_result(param_1); if (lVar4 == 0) { diag("Error: %s (%s: %d)","Invalid result set", "/workspace/llm4binary/github2025/eloqsql/libmariadb/unittest/libmariadb/my_test.h",0x182); } else { puVar5 = (int8 *)mysql_fetch_row(lVar4); if ((puVar5 == (int8 *)0x0) || (__s1 = (char *)*puVar5, __s1 == (char *)0x0)) { diag("Failed to get the result"); } else { iVar1 = strcmp(__s1,param_4); if (iVar1 == 0) { mysql_free_result(lVar4); return 0; } diag("Expected %s, got %s",param_4,__s1); } mysql_free_result(lVar4); } return 1; }
6,235
coro::thread_pool::shutdown()
AlayaLite/build_O3/_deps/libcoro-src/src/thread_pool.cpp
auto thread_pool::shutdown() noexcept -> void { // Only allow shutdown to occur once. if (m_shutdown_requested.exchange(true, std::memory_order::acq_rel) == false) { { // There is a race condition if we are not holding the lock with the executors // to always receive this. std::jthread stop token works without this properly. std::unique_lock<std::mutex> lk{m_wait_mutex}; m_wait_cv.notify_all(); } for (auto& thread : m_threads) { if (thread.joinable()) { thread.join(); } } } }
O3
cpp
coro::thread_pool::shutdown(): pushq %r14 pushq %rbx subq $0x18, %rsp movb $0x1, %al xchgb %al, 0x128(%rdi) testb $0x1, %al je 0x599d addq $0x18, %rsp popq %rbx popq %r14 retq movq %rdi, %rbx leaq 0x68(%rdi), %rax leaq 0x8(%rsp), %rdi movq %rax, (%rdi) movb $0x0, 0x8(%rdi) callq 0x551c leaq 0x8(%rsp), %r14 movb $0x1, 0x8(%r14) leaq 0x90(%rbx), %rdi callq 0x5f5a movq %r14, %rdi callq 0x5506 movq 0x50(%rbx), %r14 movq 0x58(%rbx), %rbx cmpq %rbx, %r14 je 0x5995 cmpq $0x0, (%r14) je 0x59ee movq %r14, %rdi callq 0x3400 addq $0x8, %r14 jmp 0x59db jmp 0x59f6 movq %rax, %rdi callq 0x466e
_ZN4coro11thread_pool8shutdownEv: push r14 push rbx sub rsp, 18h mov al, 1 xchg al, [rdi+128h] test al, 1 jz short loc_599D loc_5995: add rsp, 18h pop rbx pop r14 retn loc_599D: mov rbx, rdi lea rax, [rdi+68h] lea rdi, [rsp+28h+var_20] mov [rdi], rax mov byte ptr [rdi+8], 0 call _ZNSt11unique_lockISt5mutexE4lockEv; std::unique_lock<std::mutex>::lock(void) lea r14, [rsp+28h+var_20] mov byte ptr [r14+8], 1 lea rdi, [rbx+90h]; this call _ZNSt3_V222condition_variable_any10notify_allEv; std::_V2::condition_variable_any::notify_all(void) mov rdi, r14 call _ZNSt11unique_lockISt5mutexED2Ev; std::unique_lock<std::mutex>::~unique_lock() mov r14, [rbx+50h] mov rbx, [rbx+58h] loc_59DB: cmp r14, rbx jz short loc_5995 cmp qword ptr [r14], 0 jz short loc_59EE mov rdi, r14; this call __ZNSt6thread4joinEv; std::thread::join(void) loc_59EE: add r14, 8 jmp short loc_59DB jmp short $+2 loc_59F6: mov rdi, rax call __clang_call_terminate
char coro::thread_pool::shutdown(coro::thread_pool *this) { char result; // al std::thread *v2; // r14 std::thread *v3; // rbx long long v4; // [rsp+8h] [rbp-20h] BYREF char v5; // [rsp+10h] [rbp-18h] result = *((_BYTE *)this + 296); *((_BYTE *)this + 296) = 1; if ( (result & 1) == 0 ) { v4 = (long long)this + 104; v5 = 0; std::unique_lock<std::mutex>::lock(&v4); v5 = 1; result = std::_V2::condition_variable_any::notify_all((coro::thread_pool *)((char *)this + 144)); std::unique_lock<std::mutex>::~unique_lock((long long)&v4); v2 = (std::thread *)*((_QWORD *)this + 10); v3 = (std::thread *)*((_QWORD *)this + 11); while ( v2 != v3 ) { if ( *(_QWORD *)v2 ) result = std::thread::join(v2); v2 = (std::thread *)((char *)v2 + 8); } } return result; }
shutdown: PUSH R14 PUSH RBX SUB RSP,0x18 MOV AL,0x1 XCHG byte ptr [RDI + 0x128],AL TEST AL,0x1 JZ 0x0010599d LAB_00105995: ADD RSP,0x18 POP RBX POP R14 RET LAB_0010599d: MOV RBX,RDI LEA RAX,[RDI + 0x68] LEA RDI,[RSP + 0x8] MOV qword ptr [RDI],RAX MOV byte ptr [RDI + 0x8],0x0 LAB_001059b0: CALL 0x0010551c LEA R14,[RSP + 0x8] MOV byte ptr [R14 + 0x8],0x1 LEA RDI,[RBX + 0x90] CALL 0x00105f5a MOV RDI,R14 CALL 0x00105506 MOV R14,qword ptr [RBX + 0x50] MOV RBX,qword ptr [RBX + 0x58] LAB_001059db: CMP R14,RBX JZ 0x00105995 CMP qword ptr [R14],0x0 JZ 0x001059ee LAB_001059e6: MOV RDI,R14 CALL 0x00103400 LAB_001059ee: ADD R14,0x8 JMP 0x001059db
/* coro::thread_pool::shutdown() */ void __thiscall coro::thread_pool::shutdown(thread_pool *this) { thread_pool tVar1; long *plVar2; long *plVar3; thread_pool *local_20; int1 local_18; LOCK(); tVar1 = this[0x128]; this[0x128] = (thread_pool)0x1; UNLOCK(); if (((byte)tVar1 & 1) == 0) { local_20 = this + 0x68; local_18 = 0; /* try { // try from 001059b0 to 001059b4 has its CatchHandler @ 001059f4 */ std::unique_lock<std::mutex>::lock(); local_18 = 1; std::_V2::condition_variable_any::notify_all((condition_variable_any *)(this + 0x90)); std::unique_lock<std::mutex>::~unique_lock((unique_lock<std::mutex> *)&local_20); plVar2 = *(long **)(this + 0x58); for (plVar3 = *(long **)(this + 0x50); plVar3 != plVar2; plVar3 = plVar3 + 1) { if (*plVar3 != 0) { /* try { // try from 001059e6 to 001059ed has its CatchHandler @ 001059f6 */ std::thread::join(); } } } return; }
6,236
tree_walk_left_root_right
eloqsql/mysys/tree.c
static int tree_walk_left_root_right(TREE *tree, TREE_ELEMENT *element, tree_walk_action action, void *argument) { int error; if (element->left) /* Not null_element */ { if ((error=tree_walk_left_root_right(tree,element->left,action, argument)) == 0 && (error=(*action)(ELEMENT_KEY(tree,element), (element_count) element->count, argument)) == 0) error=tree_walk_left_root_right(tree,element->right,action,argument); return error; } return 0; }
O3
c
tree_walk_left_root_right: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r12 movq (%rsi), %rsi xorl %eax, %eax testq %rsi, %rsi je 0xa6249 movq %rcx, %r14 movq %rdx, %r15 movq %rdi, %r13 movl $0x7fffffff, %ebx # imm = 0x7FFFFFFF movq %r13, %rdi movq %r15, %rdx movq %r14, %rcx callq 0xa61d7 testl %eax, %eax jne 0xa6249 movl 0x208(%r13), %edi testq %rdi, %rdi je 0xa6223 addq %r12, %rdi jmp 0xa6228 movq 0x18(%r12), %rdi movl 0x10(%r12), %esi andl %ebx, %esi movq %r14, %rdx callq *%r15 testl %eax, %eax jne 0xa6249 movq 0x8(%r12), %r12 movq (%r12), %rsi testq %rsi, %rsi jne 0xa6200 xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
tree_walk_left_root_right: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov r12, rsi mov rsi, [rsi] xor eax, eax test rsi, rsi jz short loc_A6249 mov r14, rcx mov r15, rdx mov r13, rdi mov ebx, 7FFFFFFFh loc_A6200: mov rdi, r13 mov rdx, r15 mov rcx, r14 call tree_walk_left_root_right test eax, eax jnz short loc_A6249 mov edi, [r13+208h] test rdi, rdi jz short loc_A6223 add rdi, r12 jmp short loc_A6228 loc_A6223: mov rdi, [r12+18h] loc_A6228: mov esi, [r12+10h] and esi, ebx mov rdx, r14 call r15 test eax, eax jnz short loc_A6249 mov r12, [r12+8] mov rsi, [r12] test rsi, rsi jnz short loc_A6200 xor eax, eax loc_A6249: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long tree_walk_left_root_right( long long a1, long long *a2, long long ( *a3)(long long *, long long, long long), long long a4) { long long *v4; // r12 long long v5; // rsi long long result; // rax long long *v10; // rdi v4 = a2; v5 = *a2; result = 0LL; if ( v5 ) { while ( 1 ) { result = tree_walk_left_root_right(a1, v5, a3, a4); if ( (_DWORD)result ) break; v10 = *(_DWORD *)(a1 + 520) ? (long long *)((char *)v4 + *(unsigned int *)(a1 + 520)) : (long long *)v4[3]; result = a3(v10, v4[2] & 0x7FFFFFFF, a4); if ( (_DWORD)result ) break; v4 = (long long *)v4[1]; v5 = *v4; if ( !*v4 ) return 0LL; } } return result; }
tree_walk_left_root_right: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R12,RSI MOV RSI,qword ptr [RSI] XOR EAX,EAX TEST RSI,RSI JZ 0x001a6249 MOV R14,RCX MOV R15,RDX MOV R13,RDI MOV EBX,0x7fffffff LAB_001a6200: MOV RDI,R13 MOV RDX,R15 MOV RCX,R14 CALL 0x001a61d7 TEST EAX,EAX JNZ 0x001a6249 MOV EDI,dword ptr [R13 + 0x208] TEST RDI,RDI JZ 0x001a6223 ADD RDI,R12 JMP 0x001a6228 LAB_001a6223: MOV RDI,qword ptr [R12 + 0x18] LAB_001a6228: MOV ESI,dword ptr [R12 + 0x10] AND ESI,EBX MOV RDX,R14 CALL R15 TEST EAX,EAX JNZ 0x001a6249 MOV R12,qword ptr [R12 + 0x8] MOV RSI,qword ptr [R12] TEST RSI,RSI JNZ 0x001a6200 XOR EAX,EAX LAB_001a6249: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 tree_walk_left_root_right(long param_1,long *param_2,code *param_3,int8 param_4) { int8 uVar1; long lVar2; lVar2 = *param_2; while( true ) { if (lVar2 == 0) { return 0; } uVar1 = tree_walk_left_root_right(param_1,lVar2,param_3,param_4); if ((int)uVar1 != 0) break; if ((ulong)*(uint *)(param_1 + 0x208) == 0) { lVar2 = param_2[3]; } else { lVar2 = (ulong)*(uint *)(param_1 + 0x208) + (long)param_2; } uVar1 = (*param_3)(lVar2,*(uint *)(param_2 + 2) & 0x7fffffff,param_4); if ((int)uVar1 != 0) { return uVar1; } param_2 = (long *)param_2[1]; lVar2 = *param_2; } return uVar1; }
6,237
coro::detail::promise<void>::unhandled_exception()
AlayaLite/build_O3/_deps/libcoro-src/include/coro/task.hpp
auto unhandled_exception() noexcept -> void { m_exception_ptr = std::current_exception(); }
O3
cpp
coro::detail::promise<void>::unhandled_exception(): pushq %r14 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx leaq 0x8(%rsp), %r14 movq %r14, %rdi callq 0x32e0 movq (%r14), %rax movq $0x0, (%r14) movq 0x8(%rbx), %rcx movq %rcx, 0x10(%rsp) movq %rax, 0x8(%rbx) testq %rcx, %rcx je 0x4737 leaq 0x10(%rsp), %rdi callq 0x3270 cmpq $0x0, 0x8(%rsp) je 0x4737 leaq 0x8(%rsp), %rdi callq 0x3270 addq $0x18, %rsp popq %rbx popq %r14 retq nop
_ZN4coro6detail7promiseIvE19unhandled_exceptionEv: push r14 push rbx sub rsp, 18h mov rbx, rdi lea r14, [rsp+28h+var_20] mov rdi, r14 call __ZSt17current_exceptionv; std::current_exception(void) mov rax, [r14] mov qword ptr [r14], 0 mov rcx, [rbx+8] mov [rsp+28h+var_18], rcx mov [rbx+8], rax test rcx, rcx jz short loc_4737 lea rdi, [rsp+28h+var_18]; this call __ZNSt15__exception_ptr13exception_ptr10_M_releaseEv; std::__exception_ptr::exception_ptr::_M_release(void) cmp [rsp+28h+var_20], 0 jz short loc_4737 lea rdi, [rsp+28h+var_20]; this call __ZNSt15__exception_ptr13exception_ptr10_M_releaseEv; std::__exception_ptr::exception_ptr::_M_release(void) loc_4737: add rsp, 18h pop rbx pop r14 retn
long long coro::detail::promise<void>::unhandled_exception(long long a1) { long long result; // rax long long v2; // rcx long long v3; // [rsp+8h] [rbp-20h] BYREF _QWORD v4[3]; // [rsp+10h] [rbp-18h] BYREF std::current_exception(); result = v3; v3 = 0LL; v4[0] = *(_QWORD *)(a1 + 8); v2 = v4[0]; *(_QWORD *)(a1 + 8) = result; if ( v2 ) { result = std::__exception_ptr::exception_ptr::_M_release((std::__exception_ptr::exception_ptr *)v4); if ( v3 ) return std::__exception_ptr::exception_ptr::_M_release((std::__exception_ptr::exception_ptr *)&v3); } return result; }
unhandled_exception: PUSH R14 PUSH RBX SUB RSP,0x18 MOV RBX,RDI LEA R14,[RSP + 0x8] MOV RDI,R14 CALL 0x001032e0 MOV RAX,qword ptr [R14] MOV qword ptr [R14],0x0 MOV RCX,qword ptr [RBX + 0x8] MOV qword ptr [RSP + 0x10],RCX MOV qword ptr [RBX + 0x8],RAX TEST RCX,RCX JZ 0x00104737 LEA RDI,[RSP + 0x10] CALL 0x00103270 CMP qword ptr [RSP + 0x8],0x0 JZ 0x00104737 LEA RDI,[RSP + 0x8] CALL 0x00103270 LAB_00104737: ADD RSP,0x18 POP RBX POP R14 RET
/* WARNING: Removing unreachable block (ram,0x0010472d) */ /* coro::detail::promise<void>::unhandled_exception() */ void __thiscall coro::detail::promise<void>::unhandled_exception(promise<void> *this) { long lVar1; int8 local_20; std::current_exception(); lVar1 = *(long *)(this + 8); *(int8 *)(this + 8) = local_20; if (lVar1 != 0) { std::__exception_ptr::exception_ptr::_M_release(); } return; }
6,238
ma_cmp_static_record
eloqsql/storage/maria/ma_statrec.c
my_bool _ma_cmp_static_record(register MARIA_HA *info, register const uchar *old) { DBUG_ENTER("_ma_cmp_static_record"); if (info->opt_flag & WRITE_CACHE_USED) { if (flush_io_cache(&info->rec_cache)) { DBUG_RETURN(1); } info->rec_cache.seek_not_done=1; /* We have done a seek */ } if ((info->opt_flag & READ_CHECK_USED)) { /* If check isn't disabled */ info->rec_cache.seek_not_done=1; /* We have done a seek */ if (info->s->file_read(info, info->rec_buff, info->s->base.reclength, info->cur_row.lastpos, MYF(MY_NABP))) DBUG_RETURN(1); if (memcmp(info->rec_buff, old, (uint) info->s->base.reclength)) { DBUG_DUMP("read",old,info->s->base.reclength); DBUG_DUMP("disk",info->rec_buff,info->s->base.reclength); my_errno=HA_ERR_RECORD_CHANGED; /* Record have changed */ DBUG_RETURN(1); } } DBUG_RETURN(0); }
O3
c
ma_cmp_static_record: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %rbx movq %rdi, %r14 movl 0x61c(%rdi), %eax testb $0x10, %al je 0x716a9 leaq 0x4b8(%r14), %rdi movl $0x1, %esi callq 0x967f1 movb $0x1, %r15b testl %eax, %eax jne 0x71713 movl $0x1, 0x598(%r14) movl 0x61c(%r14), %eax testb $0x4, %al jne 0x716b2 xorl %r15d, %r15d jmp 0x71713 movl $0x1, 0x598(%r14) movq 0x3a0(%r14), %rsi movq (%r14), %rax movq 0x98(%r14), %rcx movq 0x398(%rax), %rdx movl $0x4, %r8d movq %r14, %rdi callq *0x6e0(%rax) movb $0x1, %r15b testq %rax, %rax jne 0x71713 movq 0x3a0(%r14), %rdi movq (%r14), %rax movl 0x398(%rax), %edx movq %rbx, %rsi callq 0x29560 testl %eax, %eax je 0x716ad callq 0xa2f56 movl $0x7b, (%rax) movl %r15d, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
_ma_cmp_static_record: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov rbx, rsi mov r14, rdi mov eax, [rdi+61Ch] test al, 10h jz short loc_716A9 lea rdi, [r14+4B8h] mov esi, 1 call my_b_flush_io_cache mov r15b, 1 test eax, eax jnz short loc_71713 mov dword ptr [r14+598h], 1 mov eax, [r14+61Ch] loc_716A9: test al, 4 jnz short loc_716B2 loc_716AD: xor r15d, r15d jmp short loc_71713 loc_716B2: mov dword ptr [r14+598h], 1 mov rsi, [r14+3A0h] mov rax, [r14] mov rcx, [r14+98h] mov rdx, [rax+398h] mov r8d, 4 mov rdi, r14 call qword ptr [rax+6E0h] mov r15b, 1 test rax, rax jnz short loc_71713 mov rdi, [r14+3A0h] mov rax, [r14] mov edx, [rax+398h] mov rsi, rbx call _bcmp test eax, eax jz short loc_716AD call _my_thread_var mov dword ptr [rax], 7Bh ; '{' loc_71713: mov eax, r15d add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long ma_cmp_static_record(_QWORD *a1, long long a2) { unsigned int v2; // r15d int v4; // eax long long v5; // rdi v4 = *((_DWORD *)a1 + 391); if ( (v4 & 0x10) != 0 ) { LOBYTE(v2) = 1; if ( (unsigned int)my_b_flush_io_cache(a1 + 151, 1LL) ) return v2; *((_DWORD *)a1 + 358) = 1; v4 = *((_DWORD *)a1 + 391); } if ( (v4 & 4) != 0 ) { *((_DWORD *)a1 + 358) = 1; LOBYTE(v2) = 1; if ( (*(long long ( **)(_QWORD *, _QWORD, _QWORD, _QWORD, long long))(*a1 + 1760LL))( a1, a1[116], *(_QWORD *)(*a1 + 920LL), a1[19], 4LL) ) { return v2; } v5 = a1[116]; if ( (unsigned int)bcmp(v5, a2, *(unsigned int *)(*a1 + 920LL)) ) { *(_DWORD *)my_thread_var(v5) = 123; return v2; } } return 0; }
_ma_cmp_static_record: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RSI MOV R14,RDI MOV EAX,dword ptr [RDI + 0x61c] TEST AL,0x10 JZ 0x001716a9 LEA RDI,[R14 + 0x4b8] MOV ESI,0x1 CALL 0x001967f1 MOV R15B,0x1 TEST EAX,EAX JNZ 0x00171713 MOV dword ptr [R14 + 0x598],0x1 MOV EAX,dword ptr [R14 + 0x61c] LAB_001716a9: TEST AL,0x4 JNZ 0x001716b2 LAB_001716ad: XOR R15D,R15D JMP 0x00171713 LAB_001716b2: MOV dword ptr [R14 + 0x598],0x1 MOV RSI,qword ptr [R14 + 0x3a0] MOV RAX,qword ptr [R14] MOV RCX,qword ptr [R14 + 0x98] MOV RDX,qword ptr [RAX + 0x398] MOV R8D,0x4 MOV RDI,R14 CALL qword ptr [RAX + 0x6e0] MOV R15B,0x1 TEST RAX,RAX JNZ 0x00171713 MOV RDI,qword ptr [R14 + 0x3a0] MOV RAX,qword ptr [R14] MOV EDX,dword ptr [RAX + 0x398] MOV RSI,RBX CALL 0x00129560 TEST EAX,EAX JZ 0x001716ad CALL 0x001a2f56 MOV dword ptr [RAX],0x7b LAB_00171713: MOV EAX,R15D ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
ulong _ma_cmp_static_record(long *param_1,void *param_2) { int iVar1; uint uVar2; long lVar3; int4 *puVar4; ulong unaff_R15; uVar2 = *(uint *)((long)param_1 + 0x61c); if ((uVar2 & 0x10) != 0) { iVar1 = my_b_flush_io_cache(param_1 + 0x97,1); unaff_R15 = CONCAT71((int7)(unaff_R15 >> 8),1); if (iVar1 != 0) goto LAB_00171713; *(int4 *)(param_1 + 0xb3) = 1; uVar2 = *(uint *)((long)param_1 + 0x61c); } if ((uVar2 & 4) != 0) { *(int4 *)(param_1 + 0xb3) = 1; lVar3 = (**(code **)(*param_1 + 0x6e0)) (param_1,param_1[0x74],*(int8 *)(*param_1 + 0x398),param_1[0x13],4); unaff_R15 = CONCAT71((int7)(unaff_R15 >> 8),1); if (lVar3 != 0) goto LAB_00171713; iVar1 = bcmp((void *)param_1[0x74],param_2,(ulong)*(uint *)(*param_1 + 0x398)); if (iVar1 != 0) { puVar4 = (int4 *)_my_thread_var(); *puVar4 = 0x7b; goto LAB_00171713; } } unaff_R15 = 0; LAB_00171713: return unaff_R15 & 0xffffffff; }
6,239
coro::shared_mutex<coro::io_scheduler>::wake_waiters(std::unique_lock<std::mutex>&)
AlayaLite/build_O3/_deps/libcoro-src/include/coro/shared_mutex.hpp
auto wake_waiters(std::unique_lock<std::mutex>& lk) -> void { // First determine what the next lock state will be based on the first waiter. if (m_head_waiter->m_exclusive) { // If its exclusive then only this waiter can be woken up. m_state = state::locked_exclusive; lock_operation* to_resume = m_head_waiter; m_head_waiter = m_head_waiter->m_next; --m_exclusive_waiters; if (m_head_waiter == nullptr) { m_tail_waiter = nullptr; } // Since this is an exclusive lock waiting we can resume it directly. lk.unlock(); to_resume->m_awaiting_coroutine.resume(); } else { // If its shared then we will scan forward and awake all shared waiters onto the given // thread pool so they can run in parallel. m_state = state::locked_shared; do { lock_operation* to_resume = m_head_waiter; m_head_waiter = m_head_waiter->m_next; if (m_head_waiter == nullptr) { m_tail_waiter = nullptr; } ++m_shared_users; m_executor->resume(to_resume->m_awaiting_coroutine); } while (m_head_waiter != nullptr && !m_head_waiter->m_exclusive); // Cannot unlock until the entire set of shared waiters has been traversed. I think this // makes more sense than allocating space for all the shared waiters, unlocking, and then // resuming in a batch? lk.unlock(); } }
O3
cpp
coro::shared_mutex<coro::io_scheduler>::wake_waiters(std::unique_lock<std::mutex>&): pushq %r15 pushq %r14 pushq %rbx movq %rsi, %rbx movq %rdi, %r14 movq 0x50(%rdi), %r15 cmpb $0x1, 0x8(%r15) jne 0x34b80 movl $0x2, 0x38(%r14) movq 0x18(%r15), %rax movq %rax, 0x50(%r14) decq 0x48(%r14) testq %rax, %rax jne 0x34b6d movq $0x0, 0x58(%r14) movq %rbx, %rdi callq 0x2e9d8 movq 0x10(%r15), %rdi popq %rbx popq %r14 popq %r15 jmpq *(%rdi) movl $0x1, 0x38(%r14) movq 0x18(%r15), %rax movq %rax, 0x50(%r14) testq %rax, %rax jne 0x34b9d movq $0x0, 0x58(%r14) incq 0x40(%r14) movq (%r14), %rdi movq 0x10(%r15), %rsi callq 0x34bca movq 0x50(%r14), %r15 testq %r15, %r15 je 0x34bbd cmpb $0x1, 0x8(%r15) jne 0x34b88 movq %rbx, %rdi popq %rbx popq %r14 popq %r15 jmp 0x2e9d8
_ZN4coro12shared_mutexINS_12io_schedulerEE12wake_waitersERSt11unique_lockISt5mutexE: push r15 push r14 push rbx mov rbx, rsi mov r14, rdi mov r15, [rdi+50h] cmp byte ptr [r15+8], 1 jnz short loc_34B80 mov dword ptr [r14+38h], 2 mov rax, [r15+18h] mov [r14+50h], rax dec qword ptr [r14+48h] test rax, rax jnz short loc_34B6D mov qword ptr [r14+58h], 0 loc_34B6D: mov rdi, rbx call _ZNSt11unique_lockISt5mutexE6unlockEv; std::unique_lock<std::mutex>::unlock(void) mov rdi, [r15+10h] pop rbx pop r14 pop r15 jmp qword ptr [rdi] loc_34B80: mov dword ptr [r14+38h], 1 loc_34B88: mov rax, [r15+18h] mov [r14+50h], rax test rax, rax jnz short loc_34B9D mov qword ptr [r14+58h], 0 loc_34B9D: inc qword ptr [r14+40h] mov rdi, [r14] mov rsi, [r15+10h] call _ZN4coro12io_scheduler6resumeENSt7__n486116coroutine_handleIvEE; coro::io_scheduler::resume(std::__n4861::coroutine_handle<void>) mov r15, [r14+50h] test r15, r15 jz short loc_34BBD cmp byte ptr [r15+8], 1 jnz short loc_34B88 loc_34BBD: mov rdi, rbx pop rbx pop r14 pop r15 jmp _ZNSt11unique_lockISt5mutexE6unlockEv; std::unique_lock<std::mutex>::unlock(void)
long long coro::shared_mutex<coro::io_scheduler>::wake_waiters(long long a1, long long *a2) { long long v2; // r15 long long v3; // rax long long v5; // rax v2 = *(_QWORD *)(a1 + 80); if ( *(_BYTE *)(v2 + 8) == 1 ) { *(_DWORD *)(a1 + 56) = 2; v3 = *(_QWORD *)(v2 + 24); *(_QWORD *)(a1 + 80) = v3; --*(_QWORD *)(a1 + 72); if ( !v3 ) *(_QWORD *)(a1 + 88) = 0LL; std::unique_lock<std::mutex>::unlock(a2); return (**(long long (***)(void))(v2 + 16))(); } else { *(_DWORD *)(a1 + 56) = 1; do { v5 = *(_QWORD *)(v2 + 24); *(_QWORD *)(a1 + 80) = v5; if ( !v5 ) *(_QWORD *)(a1 + 88) = 0LL; ++*(_QWORD *)(a1 + 64); coro::io_scheduler::resume(*(_QWORD *)a1, *(_QWORD *)(v2 + 16)); v2 = *(_QWORD *)(a1 + 80); } while ( v2 && *(_BYTE *)(v2 + 8) != 1 ); return std::unique_lock<std::mutex>::unlock(a2); } }
wake_waiters: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RSI MOV R14,RDI MOV R15,qword ptr [RDI + 0x50] CMP byte ptr [R15 + 0x8],0x1 JNZ 0x00134b80 MOV dword ptr [R14 + 0x38],0x2 MOV RAX,qword ptr [R15 + 0x18] MOV qword ptr [R14 + 0x50],RAX DEC qword ptr [R14 + 0x48] TEST RAX,RAX JNZ 0x00134b6d MOV qword ptr [R14 + 0x58],0x0 LAB_00134b6d: MOV RDI,RBX CALL 0x0012e9d8 MOV RDI,qword ptr [R15 + 0x10] POP RBX POP R14 POP R15 JMP qword ptr [RDI] LAB_00134b80: MOV dword ptr [R14 + 0x38],0x1 LAB_00134b88: MOV RAX,qword ptr [R15 + 0x18] MOV qword ptr [R14 + 0x50],RAX TEST RAX,RAX JNZ 0x00134b9d MOV qword ptr [R14 + 0x58],0x0 LAB_00134b9d: INC qword ptr [R14 + 0x40] MOV RDI,qword ptr [R14] MOV RSI,qword ptr [R15 + 0x10] CALL 0x00134bca MOV R15,qword ptr [R14 + 0x50] TEST R15,R15 JZ 0x00134bbd CMP byte ptr [R15 + 0x8],0x1 JNZ 0x00134b88 LAB_00134bbd: MOV RDI,RBX POP RBX POP R14 POP R15 JMP 0x0012e9d8
/* coro::shared_mutex<coro::io_scheduler>::wake_waiters(std::unique_lock<std::mutex>&) */ void __thiscall coro::shared_mutex<coro::io_scheduler>::wake_waiters (shared_mutex<coro::io_scheduler> *this,unique_lock *param_1) { long lVar1; long lVar2; lVar2 = *(long *)(this + 0x50); if (*(char *)(lVar2 + 8) == '\x01') { *(int4 *)(this + 0x38) = 2; lVar1 = *(long *)(lVar2 + 0x18); *(long *)(this + 0x50) = lVar1; *(long *)(this + 0x48) = *(long *)(this + 0x48) + -1; if (lVar1 == 0) { *(int8 *)(this + 0x58) = 0; } std::unique_lock<std::mutex>::unlock((unique_lock<std::mutex> *)param_1); /* WARNING: Could not recover jumptable at 0x00134b7e. Too many branches */ /* WARNING: Treating indirect jump as call */ (*(code *)**(int8 **)(lVar2 + 0x10))(); return; } *(int4 *)(this + 0x38) = 1; do { lVar1 = *(long *)(lVar2 + 0x18); *(long *)(this + 0x50) = lVar1; if (lVar1 == 0) { *(int8 *)(this + 0x58) = 0; } *(long *)(this + 0x40) = *(long *)(this + 0x40) + 1; io_scheduler::resume(*(io_scheduler **)this,*(int8 *)(lVar2 + 0x10)); lVar2 = *(long *)(this + 0x50); } while ((lVar2 != 0) && (*(char *)(lVar2 + 8) != '\x01')); std::unique_lock<std::mutex>::unlock((unique_lock<std::mutex> *)param_1); return; }
6,240
translog_get_file_size
eloqsql/storage/maria/ma_loghandler.c
uint32 translog_get_file_size() { uint32 res; translog_lock(); res= log_descriptor.log_file_max_size; translog_unlock(); return (res); }
O3
c
translog_get_file_size: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx callq 0x48f0f movl 0x3b08d7(%rip), %ebx # 0x3fe7d0 movq 0xbb1538(%rip), %r14 # 0xbff438 movq 0x1000d0(%r14), %rdi testq %rdi, %rdi jne 0x4df22 addq $0x100090, %r14 # imm = 0x100090 movq %r14, %rdi callq 0x291e0 movl %ebx, %eax popq %rbx popq %r14 popq %rbp retq leaq 0x3380e7(%rip), %rax # 0x386010 movq (%rax), %rax callq *0x160(%rax) jmp 0x4df0c
translog_get_file_size: push rbp mov rbp, rsp push r14 push rbx call translog_lock mov ebx, cs:dword_3FE7D0 mov r14, qword ptr cs:xmmword_BFF430+8 mov rdi, ds:qword_1000D0[r14] test rdi, rdi jnz short loc_4DF22 loc_4DF0C: add r14, 100090h mov rdi, r14 call _pthread_mutex_unlock mov eax, ebx pop rbx pop r14 pop rbp retn loc_4DF22: lea rax, PSI_server mov rax, [rax] call qword ptr [rax+160h] jmp short loc_4DF0C
long long translog_get_file_size() { unsigned int v0; // ebx long long v1; // r14 translog_lock(); v0 = dword_3FE7D0; v1 = *((_QWORD *)&xmmword_BFF430 + 1); if ( *(long long *)((char *)&qword_1000D0 + *((_QWORD *)&xmmword_BFF430 + 1)) ) PSI_server[44](); pthread_mutex_unlock(v1 + 1048720); return v0; }
translog_get_file_size: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX CALL 0x00148f0f MOV EBX,dword ptr [0x004fe7d0] MOV R14,qword ptr [0x00cff438] MOV RDI,qword ptr [R14 + 0x1000d0] TEST RDI,RDI JNZ 0x0014df22 LAB_0014df0c: ADD R14,0x100090 MOV RDI,R14 CALL 0x001291e0 MOV EAX,EBX POP RBX POP R14 POP RBP RET LAB_0014df22: LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] CALL qword ptr [RAX + 0x160] JMP 0x0014df0c
int4 translog_get_file_size(void) { int4 uVar1; long lVar2; translog_lock(); lVar2 = DAT_00cff438; uVar1 = DAT_004fe7d0; if (*(long *)((long)&Elf64_Phdr_ARRAY_00100040[2].p_filesz + DAT_00cff438) != 0) { (**(code **)(PSI_server + 0x160))(); } pthread_mutex_unlock((pthread_mutex_t *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_paddr + lVar2)); return uVar1; }
6,241
void sapphire_plugins::shared::drainQueueFromUI<sapphire_plugins::galaxy::GalaxyEditor>(sapphire_plugins::galaxy::GalaxyEditor&)
sapphire-plugins/src/shared/editor_interactions.h
inline void drainQueueFromUI(Ed &editor) { auto aum = editor.audioToUI.pop(); while (aum.has_value()) { switch (aum->action) { case AudioToUIMsg::UPDATE_PARAM: { auto pid = aum->paramId; auto val = aum->value; auto p = editor.patchCopy.paramMap.at(pid); if (p) { p->value = val; auto val01 = (val - p->meta.minVal) / (p->meta.maxVal - p->meta.minVal); auto sbi = editor.sliderByID.find(pid); if (sbi != editor.sliderByID.end() && sbi->second) { sbi->second->setValue(val01, juce::dontSendNotification); } } } break; case AudioToUIMsg::UPDATE_VU: break; } aum = editor.audioToUI.pop(); } }
O3
c
void sapphire_plugins::shared::drainQueueFromUI<sapphire_plugins::galaxy::GalaxyEditor>(sapphire_plugins::galaxy::GalaxyEditor&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq 0xba0(%rdi), %rax movq 0x10(%rax), %rsi movq 0x8(%rax), %rcx cmpq %rcx, %rsi jne 0xf1f32 addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rdi, %rbx movq %rsi, %rdi shlq $0x4, %rdi movl 0x18(%rax,%rdi), %edx movl 0x1c(%rax,%rdi), %ecx movss 0x20(%rax,%rdi), %xmm0 incl %esi andl $0x3fff, %esi # imm = 0x3FFF movq %rsi, 0x10(%rax) leaq 0x110(%rbx), %r14 leaq 0xb28(%rbx), %r15 leaq 0x14(%rsp), %r12 leaq 0x499268(%rip), %r13 # 0x58b1d8 leaq 0x4a6b21(%rip), %rbp # 0x598a98 testl %edx, %edx jne 0xf2031 movss %xmm0, 0x8(%rsp) movl %ecx, 0x14(%rsp) movq %r14, %rdi movq %r12, %rsi callq 0xcbe1c testq %rax, %rax je 0xf2068 movq 0x10(%rax), %rax testq %rax, %rax je 0xf202a movss 0x8(%rsp), %xmm0 movss %xmm0, (%rax) movss 0x58(%rax), %xmm0 movss %xmm0, 0xc(%rsp) movss 0x5c(%rax), %xmm0 movss %xmm0, 0x10(%rsp) movq %r15, %rdi movq %r12, %rsi callq 0xe012e testq %rax, %rax je 0xf202a movq 0x10(%rax), %rax testq %rax, %rax je 0xf202a movq 0x10(%rax), %rdi testq %rdi, %rdi je 0xf202a movq %r13, %rsi movq %rbp, %rdx xorl %ecx, %ecx callq 0x7a910 testq %rax, %rax je 0xf202a movss 0x8(%rsp), %xmm0 movss 0xc(%rsp), %xmm2 subss %xmm2, %xmm0 movss 0x10(%rsp), %xmm1 subss %xmm2, %xmm1 divss %xmm1, %xmm0 cvtss2sd %xmm0, %xmm0 movq %rax, %rdi xorl %esi, %esi callq 0x15b706 movq 0xba0(%rbx), %rax movq 0x10(%rax), %rsi movq 0x8(%rax), %rcx cmpq %rcx, %rsi je 0xf1f23 movq %rsi, %rdi shlq $0x4, %rdi movl 0x18(%rax,%rdi), %edx movl 0x1c(%rax,%rdi), %ecx movss 0x20(%rax,%rdi), %xmm0 incl %esi andl $0x3fff, %esi # imm = 0x3FFF movq %rsi, 0x10(%rax) jmp 0xf1f77 leaq 0x281bf6(%rip), %rdi # 0x373c65 callq 0x79f00
_ZN16sapphire_plugins6shared16drainQueueFromUIINS_6galaxy12GalaxyEditorEEEvRT_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov rax, [rdi+0BA0h] mov rsi, [rax+10h] mov rcx, [rax+8] cmp rsi, rcx jnz short loc_F1F32 loc_F1F23: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_F1F32: mov rbx, rdi mov rdi, rsi shl rdi, 4 mov edx, [rax+rdi+18h] mov ecx, [rax+rdi+1Ch] movss xmm0, dword ptr [rax+rdi+20h] inc esi and esi, 3FFFh mov [rax+10h], rsi lea r14, [rbx+110h] lea r15, [rbx+0B28h] lea r12, [rsp+48h+var_34] lea r13, _ZTIN4juce9ComponentE; `typeinfo for'juce::Component lea rbp, _ZTIN4juce6SliderE; `typeinfo for'juce::Slider loc_F1F77: test edx, edx jnz loc_F2031 movss [rsp+48h+var_40], xmm0 mov [rsp+48h+var_34], ecx mov rdi, r14 mov rsi, r12 call _ZNSt10_HashtableIjSt4pairIKjPN16sapphire_plugins6shared12ParamWithLagEESaIS6_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS8_18_Mod_range_hashingENS8_20_Default_ranged_hashENS8_20_Prime_rehash_policyENS8_17_Hashtable_traitsILb0ELb0ELb1EEEE4findERS1_; std::_Hashtable<uint,std::pair<uint const,sapphire_plugins::shared::ParamWithLag *>,std::allocator<std::pair<uint const,sapphire_plugins::shared::ParamWithLag *>>,std::__detail::_Select1st,std::equal_to<uint>,std::hash<uint>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find(uint const&) test rax, rax jz loc_F2068 mov rax, [rax+10h] test rax, rax jz loc_F202A movss xmm0, [rsp+48h+var_40] movss dword ptr [rax], xmm0 movss xmm0, dword ptr [rax+58h] movss [rsp+48h+var_3C], xmm0 movss xmm0, dword ptr [rax+5Ch] movss [rsp+48h+var_38], xmm0 mov rdi, r15 mov rsi, r12 call _ZNSt10_HashtableIjSt4pairIKjN4juce9Component11SafePointerINS2_6SliderEEEESaIS7_ENSt8__detail10_Select1stESt8equal_toIjESt4hashIjENS9_18_Mod_range_hashingENS9_20_Default_ranged_hashENS9_20_Prime_rehash_policyENS9_17_Hashtable_traitsILb0ELb0ELb1EEEE4findERS1_; std::_Hashtable<uint,std::pair<uint const,juce::Component::SafePointer<juce::Slider>>,std::allocator<std::pair<uint const,juce::Component::SafePointer<juce::Slider>>>,std::__detail::_Select1st,std::equal_to<uint>,std::hash<uint>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find(uint const&) test rax, rax jz short loc_F202A mov rax, [rax+10h] test rax, rax jz short loc_F202A mov rdi, [rax+10h]; lpsrc test rdi, rdi jz short loc_F202A mov rsi, r13; lpstype mov rdx, rbp; lpdtype xor ecx, ecx; s2d call ___dynamic_cast test rax, rax jz short loc_F202A movss xmm0, [rsp+48h+var_40] movss xmm2, [rsp+48h+var_3C] subss xmm0, xmm2 movss xmm1, [rsp+48h+var_38] subss xmm1, xmm2 divss xmm0, xmm1 cvtss2sd xmm0, xmm0 mov rdi, rax xor esi, esi call _ZN4juce6Slider8setValueEdNS_16NotificationTypeE; juce::Slider::setValue(double,juce::NotificationType) loc_F202A: mov rax, [rbx+0BA0h] loc_F2031: mov rsi, [rax+10h] mov rcx, [rax+8] cmp rsi, rcx jz loc_F1F23 mov rdi, rsi shl rdi, 4 mov edx, [rax+rdi+18h] mov ecx, [rax+rdi+1Ch] movss xmm0, dword ptr [rax+rdi+20h] inc esi and esi, 3FFFh mov [rax+10h], rsi jmp loc_F1F77 loc_F2068: lea rdi, aMapBaseAt; "_Map_base::at" call __ZSt20__throw_out_of_rangePKc; std::__throw_out_of_range(char const*)
long long sapphire_plugins::shared::drainQueueFromUI<sapphire_plugins::galaxy::GalaxyEditor>(long long *a1) { long long result; // rax long long v2; // rsi int v4; // edx unsigned int v5; // ecx float v6; // xmm0_4 long long *v7; // rax float *v8; // rax long long *v9; // rax long long v10; // rax const void *v11; // rdi void *v12; // rax long long v13; // rsi float v14; // [rsp+Ch] [rbp-3Ch] float v15; // [rsp+10h] [rbp-38h] unsigned int v16[13]; // [rsp+14h] [rbp-34h] BYREF result = a1[372]; v2 = *(_QWORD *)(result + 16); if ( v2 != *(_QWORD *)(result + 8) ) { v4 = *(_DWORD *)(result + 16 * v2 + 24); v5 = *(_DWORD *)(result + 16 * v2 + 28); v6 = *(float *)(result + 16 * v2 + 32); for ( *(_QWORD *)(result + 16) = ((_WORD)v2 + 1) & 0x3FFF; ; *(_QWORD *)(result + 16) = ((_WORD)v13 + 1) & 0x3FFF ) { if ( !v4 ) { v16[0] = v5; v7 = std::_Hashtable<unsigned int,std::pair<unsigned int const,sapphire_plugins::shared::ParamWithLag *>,std::allocator<std::pair<unsigned int const,sapphire_plugins::shared::ParamWithLag *>>,std::__detail::_Select1st,std::equal_to<unsigned int>,std::hash<unsigned int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find( a1 + 34, v16); if ( !v7 ) std::__throw_out_of_range("_Map_base::at"); v8 = (float *)v7[2]; if ( v8 ) { *v8 = v6; v14 = v8[22]; v15 = v8[23]; v9 = std::_Hashtable<unsigned int,std::pair<unsigned int const,juce::Component::SafePointer<juce::Slider>>,std::allocator<std::pair<unsigned int const,juce::Component::SafePointer<juce::Slider>>>,std::__detail::_Select1st,std::equal_to<unsigned int>,std::hash<unsigned int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>>::find( a1 + 357, v16); if ( v9 ) { v10 = v9[2]; if ( v10 ) { v11 = *(const void **)(v10 + 16); if ( v11 ) { v12 = __dynamic_cast( v11, (const struct __class_type_info *)&`typeinfo for'juce::Component, (const struct __class_type_info *)&`typeinfo for'juce::Slider, 0LL); if ( v12 ) juce::Slider::setValue(v12, 0LL, (float)((float)(v6 - v14) / (float)(v15 - v14))); } } } } result = a1[372]; } v13 = *(_QWORD *)(result + 16); if ( v13 == *(_QWORD *)(result + 8) ) break; v4 = *(_DWORD *)(result + 16 * v13 + 24); v5 = *(_DWORD *)(result + 16 * v13 + 28); v6 = *(float *)(result + 16 * v13 + 32); } } return result; }
drainQueueFromUI<sapphire_plugins::galaxy::GalaxyEditor>: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV RAX,qword ptr [RDI + 0xba0] MOV RSI,qword ptr [RAX + 0x10] MOV RCX,qword ptr [RAX + 0x8] CMP RSI,RCX JNZ 0x001f1f32 LAB_001f1f23: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001f1f32: MOV RBX,RDI MOV RDI,RSI SHL RDI,0x4 MOV EDX,dword ptr [RAX + RDI*0x1 + 0x18] MOV ECX,dword ptr [RAX + RDI*0x1 + 0x1c] MOVSS XMM0,dword ptr [RAX + RDI*0x1 + 0x20] INC ESI AND ESI,0x3fff MOV qword ptr [RAX + 0x10],RSI LEA R14,[RBX + 0x110] LEA R15,[RBX + 0xb28] LEA R12,[RSP + 0x14] LEA R13,[0x68b1d8] LEA RBP,[0x698a98] LAB_001f1f77: TEST EDX,EDX JNZ 0x001f2031 MOVSS dword ptr [RSP + 0x8],XMM0 MOV dword ptr [RSP + 0x14],ECX MOV RDI,R14 MOV RSI,R12 CALL 0x001cbe1c TEST RAX,RAX JZ 0x001f2068 MOV RAX,qword ptr [RAX + 0x10] TEST RAX,RAX JZ 0x001f202a MOVSS XMM0,dword ptr [RSP + 0x8] MOVSS dword ptr [RAX],XMM0 MOVSS XMM0,dword ptr [RAX + 0x58] MOVSS dword ptr [RSP + 0xc],XMM0 MOVSS XMM0,dword ptr [RAX + 0x5c] MOVSS dword ptr [RSP + 0x10],XMM0 MOV RDI,R15 MOV RSI,R12 CALL 0x001e012e TEST RAX,RAX JZ 0x001f202a MOV RAX,qword ptr [RAX + 0x10] TEST RAX,RAX JZ 0x001f202a MOV RDI,qword ptr [RAX + 0x10] TEST RDI,RDI JZ 0x001f202a MOV RSI,R13 MOV RDX,RBP XOR ECX,ECX CALL 0x0017a910 TEST RAX,RAX JZ 0x001f202a MOVSS XMM0,dword ptr [RSP + 0x8] MOVSS XMM2,dword ptr [RSP + 0xc] SUBSS XMM0,XMM2 MOVSS XMM1,dword ptr [RSP + 0x10] SUBSS XMM1,XMM2 DIVSS XMM0,XMM1 CVTSS2SD XMM0,XMM0 MOV RDI,RAX XOR ESI,ESI CALL 0x0025b706 LAB_001f202a: MOV RAX,qword ptr [RBX + 0xba0] LAB_001f2031: MOV RSI,qword ptr [RAX + 0x10] MOV RCX,qword ptr [RAX + 0x8] CMP RSI,RCX JZ 0x001f1f23 MOV RDI,RSI SHL RDI,0x4 MOV EDX,dword ptr [RAX + RDI*0x1 + 0x18] MOV ECX,dword ptr [RAX + RDI*0x1 + 0x1c] MOVSS XMM0,dword ptr [RAX + RDI*0x1 + 0x20] INC ESI AND ESI,0x3fff MOV qword ptr [RAX + 0x10],RSI JMP 0x001f1f77 LAB_001f2068: LEA RDI,[0x473c65] CALL 0x00179f00
/* void sapphire_plugins::shared::drainQueueFromUI<sapphire_plugins::galaxy::GalaxyEditor>(sapphire_plugins::galaxy::GalaxyEditor&) */ void sapphire_plugins::shared::drainQueueFromUI<sapphire_plugins::galaxy::GalaxyEditor> (GalaxyEditor *param_1) { float fVar1; float fVar2; float *pfVar3; long lVar4; long lVar5; int iVar6; long lVar7; float fVar8; uint local_34; lVar5 = *(long *)(param_1 + 0xba0); lVar4 = *(long *)(lVar5 + 0x10); if (lVar4 != *(long *)(lVar5 + 8)) { lVar7 = lVar4 * 0x10; iVar6 = *(int *)(lVar5 + 0x18 + lVar7); local_34 = *(uint *)(lVar5 + 0x1c + lVar7); fVar8 = *(float *)(lVar5 + 0x20 + lVar7); *(ulong *)(lVar5 + 0x10) = (ulong)((int)lVar4 + 1U & 0x3fff); while( true ) { if (iVar6 == 0) { lVar4 = std:: _Hashtable<unsigned_int,std::pair<unsigned_int_const,sapphire_plugins::shared::ParamWithLag*>,std::allocator<std::pair<unsigned_int_const,sapphire_plugins::shared::ParamWithLag*>>,std::__detail::_Select1st,std::equal_to<unsigned_int>,std::hash<unsigned_int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> ::find((_Hashtable<unsigned_int,std::pair<unsigned_int_const,sapphire_plugins::shared::ParamWithLag*>,std::allocator<std::pair<unsigned_int_const,sapphire_plugins::shared::ParamWithLag*>>,std::__detail::_Select1st,std::equal_to<unsigned_int>,std::hash<unsigned_int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> *)(param_1 + 0x110),&local_34); if (lVar4 == 0) { /* WARNING: Subroutine does not return */ std::__throw_out_of_range("_Map_base::at"); } pfVar3 = *(float **)(lVar4 + 0x10); if (pfVar3 != (float *)0x0) { *pfVar3 = fVar8; fVar1 = pfVar3[0x16]; fVar2 = pfVar3[0x17]; lVar4 = std:: _Hashtable<unsigned_int,std::pair<unsigned_int_const,juce::Component::SafePointer<juce::Slider>>,std::allocator<std::pair<unsigned_int_const,juce::Component::SafePointer<juce::Slider>>>,std::__detail::_Select1st,std::equal_to<unsigned_int>,std::hash<unsigned_int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> ::find((_Hashtable<unsigned_int,std::pair<unsigned_int_const,juce::Component::SafePointer<juce::Slider>>,std::allocator<std::pair<unsigned_int_const,juce::Component::SafePointer<juce::Slider>>>,std::__detail::_Select1st,std::equal_to<unsigned_int>,std::hash<unsigned_int>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<false,false,true>> *)(param_1 + 0xb28),&local_34); if (((lVar4 != 0) && (*(long *)(lVar4 + 0x10) != 0)) && (lVar4 = *(long *)(*(long *)(lVar4 + 0x10) + 0x10), lVar4 != 0)) { lVar4 = __dynamic_cast(lVar4,&juce::Component::typeinfo,&juce::Slider::typeinfo,0); if (lVar4 != 0) { juce::Slider::setValue((double)((fVar8 - fVar1) / (fVar2 - fVar1)),lVar4,0); } } } lVar5 = *(long *)(param_1 + 0xba0); } lVar4 = *(long *)(lVar5 + 0x10); if (lVar4 == *(long *)(lVar5 + 8)) break; lVar7 = lVar4 * 0x10; iVar6 = *(int *)(lVar5 + 0x18 + lVar7); local_34 = *(uint *)(lVar5 + 0x1c + lVar7); fVar8 = *(float *)(lVar5 + 0x20 + lVar7); *(ulong *)(lVar5 + 0x10) = (ulong)((int)lVar4 + 1U & 0x3fff); } } return; }
6,242
my_rw_wrlock
eloqsql/mysys/thr_rwlock.c
int my_rw_wrlock(my_rw_lock_t *rwp) { pthread_mutex_lock(&rwp->lock); rwp->waiters++; /* another writer queued */ my_rw_lock_assert_not_write_owner(rwp); while (rwp->state) pthread_cond_wait(&rwp->writers, &rwp->lock); rwp->state = -1; rwp->waiters--; #ifdef SAFE_MUTEX rwp->write_thread= pthread_self(); #endif pthread_mutex_unlock(&rwp->lock); return(0); }
O0
c
my_rw_wrlock: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x25410 movq -0x8(%rbp), %rax movl 0x8c(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x8c(%rax) movq -0x8(%rbp), %rax cmpl $0x0, 0x88(%rax) je 0x60f48 movq -0x8(%rbp), %rdi addq $0x58, %rdi movq -0x8(%rbp), %rsi callq 0x25490 jmp 0x60f28 movq -0x8(%rbp), %rax movl $0xffffffff, 0x88(%rax) # imm = 0xFFFFFFFF movq -0x8(%rbp), %rax movl 0x8c(%rax), %ecx addl $-0x1, %ecx movl %ecx, 0x8c(%rax) movq -0x8(%rbp), %rdi callq 0x25200 xorl %eax, %eax addq $0x10, %rsp popq %rbp retq nopw (%rax,%rax)
my_rw_wrlock: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rdi, [rbp+var_8] call _pthread_mutex_lock mov rax, [rbp+var_8] mov ecx, [rax+8Ch] add ecx, 1 mov [rax+8Ch], ecx loc_60F28: mov rax, [rbp+var_8] cmp dword ptr [rax+88h], 0 jz short loc_60F48 mov rdi, [rbp+var_8] add rdi, 58h ; 'X' mov rsi, [rbp+var_8] call _pthread_cond_wait jmp short loc_60F28 loc_60F48: mov rax, [rbp+var_8] mov dword ptr [rax+88h], 0FFFFFFFFh mov rax, [rbp+var_8] mov ecx, [rax+8Ch] add ecx, 0FFFFFFFFh mov [rax+8Ch], ecx mov rdi, [rbp+var_8] call _pthread_mutex_unlock xor eax, eax add rsp, 10h pop rbp retn
long long my_rw_wrlock(long long a1) { pthread_mutex_lock(a1); ++*(_DWORD *)(a1 + 140); while ( *(_DWORD *)(a1 + 136) ) pthread_cond_wait(a1 + 88, a1); *(_DWORD *)(a1 + 136) = -1; --*(_DWORD *)(a1 + 140); pthread_mutex_unlock(a1); return 0LL; }
my_rw_wrlock: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RDI,qword ptr [RBP + -0x8] CALL 0x00125410 MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x8c] ADD ECX,0x1 MOV dword ptr [RAX + 0x8c],ECX LAB_00160f28: MOV RAX,qword ptr [RBP + -0x8] CMP dword ptr [RAX + 0x88],0x0 JZ 0x00160f48 MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x58 MOV RSI,qword ptr [RBP + -0x8] CALL 0x00125490 JMP 0x00160f28 LAB_00160f48: MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x88],0xffffffff MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x8c] ADD ECX,-0x1 MOV dword ptr [RAX + 0x8c],ECX MOV RDI,qword ptr [RBP + -0x8] CALL 0x00125200 XOR EAX,EAX ADD RSP,0x10 POP RBP RET
int8 my_rw_wrlock(pthread_mutex_t *param_1) { pthread_mutex_lock(param_1); *(int *)((long)param_1 + 0x8c) = *(int *)((long)param_1 + 0x8c) + 1; while (*(int *)((long)param_1 + 0x88) != 0) { pthread_cond_wait((pthread_cond_t *)((long)param_1 + 0x58),param_1); } *(int4 *)((long)param_1 + 0x88) = 0xffffffff; *(int *)((long)param_1 + 0x8c) = *(int *)((long)param_1 + 0x8c) + -1; pthread_mutex_unlock(param_1); return 0; }
6,243
apply_one_rule
eloqsql/strings/ctype-uca.c
static my_bool apply_one_rule(MY_CHARSET_LOADER *loader, MY_COLL_RULES *rules, MY_COLL_RULE *r, MY_UCA_WEIGHT_LEVEL *dst) { size_t nweights; size_t nreset= my_coll_rule_reset_length(r); /* Length of reset sequence */ size_t nshift= my_coll_rule_shift_length(r); /* Length of shift sequence */ uint16 *to; my_bool rc; if ((rules->shift_after_method == my_shift_method_expand && r->diff[0]) || r->before_level == 1) { /* Suppose we have this rule: &B[before primary] < C i.e. we need to put C before B, but after A, so the result order is: A < C < B. Let primary weight of B be [BBBB]. We cannot just use [BBBB-1] as weight for C: DUCET does not have enough unused weights between any two characters, so using [BBBB-1] will likely make C equal to the previous character, which is A, so we'll get this order instead of the desired: A = C < B. To guarantee that that C is sorted after A, we'll use expansion with a kind of "biggest possible character". As "biggest possible character" we'll use "last_non_ignorable": We'll compose weight for C as: [BBBB-1][MMMM+1] where [MMMM] is weight for "last_non_ignorable". We also do the same trick for "reset after" if the collation option says so. E.g. for the rules "&B < C", weight for C will be calculated as: [BBBB][MMMM+1] At this point we only need to store codepoints 'B' and 'last_non_ignorable'. Actual weights for 'C' will be calculated according to the above formula later, in create_tailoring(). */ if (!my_coll_rule_expand(r->base, MY_UCA_MAX_EXPANSION, rules->uca->last_non_ignorable)) { my_charset_loader_error_for_rule(loader, r, "Expansion", r->base, nreset); return TRUE; } nreset= my_coll_rule_reset_length(r); } if (nshift >= 2) /* Contraction */ { MY_CONTRACTIONS *contractions= &dst->contractions; to= my_uca_init_one_contraction(contractions, r->curr, (uint)nshift, r->with_context); /* Store weights of the "reset to" character */ dst->contractions.nitems--; /* Temporarily hide - it's incomplete */ rc= my_char_weight_put(dst, to, MY_UCA_CONTRACTION_MAX_WEIGHT_SIZE, &nweights, r->base, nreset); dst->contractions.nitems++; /* Activate, now it's complete */ } else { my_wc_t pagec= (r->curr[0] >> 8); DBUG_ASSERT(dst->weights[pagec]); to= my_char_weight_addr(dst, r->curr[0]); /* Store weights of the "reset to" character */ rc= my_char_weight_put(dst, to, dst->lengths[pagec], &nweights, r->base, nreset); } if (rc) { my_charset_loader_error_for_rule(loader, r, "Expansion", r->base, nreset); return rc; } /* Apply level difference. */ return apply_shift(loader, rules, r, dst->levelno, to, nweights); }
O0
c
apply_one_rule: pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x20(%rbp), %rdi callq 0xaf7d0 movq %rax, -0x38(%rbp) movq -0x20(%rbp), %rdi callq 0xaf7f0 movq %rax, -0x40(%rbp) movq -0x18(%rbp), %rax cmpl $0x1, 0x30(%rax) jne 0xaf1a9 movq -0x20(%rbp), %rax cmpl $0x0, 0x80(%rax) jne 0xaf1b7 movq -0x20(%rbp), %rax cmpq $0x1, 0x90(%rax) jne 0xaf208 movq -0x20(%rbp), %rdi movq -0x18(%rbp), %rax movq 0x8(%rax), %rax movq 0x78(%rax), %rdx movl $0xa, %esi callq 0xaebb0 cmpl $0x0, %eax jne 0xaf1fb movq -0x10(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x20(%rbp), %rcx movq -0x38(%rbp), %r8 leaq 0x2d082(%rip), %rdx # 0xdc26f callq 0xaf820 movb $0x1, -0x1(%rbp) jmp 0xaf328 movq -0x20(%rbp), %rdi callq 0xaf7d0 movq %rax, -0x38(%rbp) cmpq $0x2, -0x40(%rbp) jb 0xaf284 movq -0x28(%rbp), %rax addq $0x18, %rax movq %rax, -0x58(%rbp) movq -0x58(%rbp), %rdi movq -0x20(%rbp), %rsi addq $0x50, %rsi movq -0x40(%rbp), %rax movl %eax, %edx movq -0x20(%rbp), %rax movsbl 0x98(%rax), %ecx callq 0xaf340 movq %rax, -0x48(%rbp) movq -0x28(%rbp), %rax movq 0x18(%rax), %rcx addq $-0x1, %rcx movq %rcx, 0x18(%rax) movq -0x28(%rbp), %rdi movq -0x48(%rbp), %rsi movq -0x20(%rbp), %r8 movq -0x38(%rbp), %r9 movl $0x11, %edx leaq -0x30(%rbp), %rcx callq 0xaf8e0 movb %al, -0x49(%rbp) movq -0x28(%rbp), %rax movq 0x18(%rax), %rcx addq $0x1, %rcx movq %rcx, 0x18(%rax) jmp 0xaf2db movq -0x20(%rbp), %rax movq 0x50(%rax), %rax shrq $0x8, %rax movq %rax, -0x60(%rbp) jmp 0xaf296 movq -0x28(%rbp), %rdi movq -0x20(%rbp), %rax movq 0x50(%rax), %rax movl %eax, %esi callq 0xad0a0 movq %rax, -0x48(%rbp) movq -0x28(%rbp), %rdi movq -0x48(%rbp), %rsi movq -0x28(%rbp), %rax movq 0x8(%rax), %rax movq -0x60(%rbp), %rcx movzbl (%rax,%rcx), %eax movl %eax, %edx movq -0x20(%rbp), %r8 movq -0x38(%rbp), %r9 leaq -0x30(%rbp), %rcx callq 0xaf8e0 movb %al, -0x49(%rbp) cmpb $0x0, -0x49(%rbp) je 0xaf305 movq -0x10(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x20(%rbp), %rcx movq -0x38(%rbp), %r8 leaq 0x2cf77(%rip), %rdx # 0xdc26f callq 0xaf820 movb -0x49(%rbp), %al movb %al, -0x1(%rbp) jmp 0xaf328 movq -0x10(%rbp), %rdi movq -0x18(%rbp), %rsi movq -0x20(%rbp), %rdx movq -0x28(%rbp), %rax movl 0x30(%rax), %ecx movq -0x48(%rbp), %r8 movq -0x30(%rbp), %r9 callq 0xafae0 movb %al, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x60, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
apply_one_rule: push rbp mov rbp, rsp sub rsp, 60h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov rdi, [rbp+var_20] call my_coll_rule_reset_length mov [rbp+var_38], rax mov rdi, [rbp+var_20] call my_coll_rule_shift_length mov [rbp+var_40], rax mov rax, [rbp+var_18] cmp dword ptr [rax+30h], 1 jnz short loc_AF1A9 mov rax, [rbp+var_20] cmp dword ptr [rax+80h], 0 jnz short loc_AF1B7 loc_AF1A9: mov rax, [rbp+var_20] cmp qword ptr [rax+90h], 1 jnz short loc_AF208 loc_AF1B7: mov rdi, [rbp+var_20] mov rax, [rbp+var_18] mov rax, [rax+8] mov rdx, [rax+78h] mov esi, 0Ah call my_coll_rule_expand cmp eax, 0 jnz short loc_AF1FB mov rdi, [rbp+var_10] mov rsi, [rbp+var_20] mov rcx, [rbp+var_20] mov r8, [rbp+var_38] lea rdx, aExpansion; "Expansion" call my_charset_loader_error_for_rule mov [rbp+var_1], 1 jmp loc_AF328 loc_AF1FB: mov rdi, [rbp+var_20] call my_coll_rule_reset_length mov [rbp+var_38], rax loc_AF208: cmp [rbp+var_40], 2 jb short loc_AF284 mov rax, [rbp+var_28] add rax, 18h mov [rbp+var_58], rax mov rdi, [rbp+var_58] mov rsi, [rbp+var_20] add rsi, 50h ; 'P' mov rax, [rbp+var_40] mov edx, eax mov rax, [rbp+var_20] movsx ecx, byte ptr [rax+98h] call my_uca_init_one_contraction mov [rbp+var_48], rax mov rax, [rbp+var_28] mov rcx, [rax+18h] add rcx, 0FFFFFFFFFFFFFFFFh mov [rax+18h], rcx mov rdi, [rbp+var_28] mov rsi, [rbp+var_48] mov r8, [rbp+var_20] mov r9, [rbp+var_38] mov edx, 11h lea rcx, [rbp+var_30] call my_char_weight_put mov [rbp+var_49], al mov rax, [rbp+var_28] mov rcx, [rax+18h] add rcx, 1 mov [rax+18h], rcx jmp short loc_AF2DB loc_AF284: mov rax, [rbp+var_20] mov rax, [rax+50h] shr rax, 8 mov [rbp+var_60], rax jmp short $+2 loc_AF296: mov rdi, [rbp+var_28] mov rax, [rbp+var_20] mov rax, [rax+50h] mov esi, eax call my_char_weight_addr mov [rbp+var_48], rax mov rdi, [rbp+var_28] mov rsi, [rbp+var_48] mov rax, [rbp+var_28] mov rax, [rax+8] mov rcx, [rbp+var_60] movzx eax, byte ptr [rax+rcx] mov edx, eax mov r8, [rbp+var_20] mov r9, [rbp+var_38] lea rcx, [rbp+var_30] call my_char_weight_put mov [rbp+var_49], al loc_AF2DB: cmp [rbp+var_49], 0 jz short loc_AF305 mov rdi, [rbp+var_10] mov rsi, [rbp+var_20] mov rcx, [rbp+var_20] mov r8, [rbp+var_38] lea rdx, aExpansion; "Expansion" call my_charset_loader_error_for_rule mov al, [rbp+var_49] mov [rbp+var_1], al jmp short loc_AF328 loc_AF305: mov rdi, [rbp+var_10] mov rsi, [rbp+var_18] mov rdx, [rbp+var_20] mov rax, [rbp+var_28] mov ecx, [rax+30h] mov r8, [rbp+var_48] mov r9, [rbp+var_30] call apply_shift mov [rbp+var_1], al loc_AF328: mov al, [rbp+var_1] add rsp, 60h pop rbp retn
char apply_one_rule(long long a1, long long a2, long long a3, _QWORD *a4) { long long v5; // [rsp+0h] [rbp-60h] char v6; // [rsp+17h] [rbp-49h] long long inited; // [rsp+18h] [rbp-48h] unsigned long long v8; // [rsp+20h] [rbp-40h] long long v9; // [rsp+28h] [rbp-38h] long long v10; // [rsp+30h] [rbp-30h] BYREF _QWORD *v11; // [rsp+38h] [rbp-28h] long long v12; // [rsp+40h] [rbp-20h] long long v13; // [rsp+48h] [rbp-18h] long long v14; // [rsp+50h] [rbp-10h] v14 = a1; v13 = a2; v12 = a3; v11 = a4; v9 = my_coll_rule_reset_length(a3); v8 = my_coll_rule_shift_length(v12); if ( *(_DWORD *)(a2 + 48) == 1 && *(_DWORD *)(v12 + 128) || *(_QWORD *)(v12 + 144) == 1LL ) { if ( !(unsigned int)my_coll_rule_expand(v12, 0xAuLL, *(_QWORD *)(*(_QWORD *)(v13 + 8) + 120LL)) ) { my_charset_loader_error_for_rule(v14, v12, "Expansion", v12, v9); return 1; } v9 = my_coll_rule_reset_length(v12); } if ( v8 < 2 ) { v5 = *(_QWORD *)(v12 + 80) >> 8; inited = my_char_weight_addr(v11, *(_QWORD *)(v12 + 80)); v6 = my_char_weight_put(v11, inited, *(unsigned __int8 *)(v11[1] + v5), &v10, v12, v9); } else { inited = my_uca_init_one_contraction(v11 + 3, v12 + 80, (unsigned int)v8, (unsigned int)*(char *)(v12 + 152)); --v11[3]; v6 = my_char_weight_put(v11, inited, 17LL, &v10, v12, v9); ++v11[3]; } if ( !v6 ) return apply_shift(v14, v13, v12, *((unsigned int *)v11 + 12), inited, v10); my_charset_loader_error_for_rule(v14, v12, "Expansion", v12, v9); return v6; }
apply_one_rule: PUSH RBP MOV RBP,RSP SUB RSP,0x60 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 RDI,qword ptr [RBP + -0x20] CALL 0x001af7d0 MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x20] CALL 0x001af7f0 MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x18] CMP dword ptr [RAX + 0x30],0x1 JNZ 0x001af1a9 MOV RAX,qword ptr [RBP + -0x20] CMP dword ptr [RAX + 0x80],0x0 JNZ 0x001af1b7 LAB_001af1a9: MOV RAX,qword ptr [RBP + -0x20] CMP qword ptr [RAX + 0x90],0x1 JNZ 0x001af208 LAB_001af1b7: MOV RDI,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x8] MOV RDX,qword ptr [RAX + 0x78] MOV ESI,0xa CALL 0x001aebb0 CMP EAX,0x0 JNZ 0x001af1fb MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x20] MOV R8,qword ptr [RBP + -0x38] LEA RDX,[0x1dc26f] CALL 0x001af820 MOV byte ptr [RBP + -0x1],0x1 JMP 0x001af328 LAB_001af1fb: MOV RDI,qword ptr [RBP + -0x20] CALL 0x001af7d0 MOV qword ptr [RBP + -0x38],RAX LAB_001af208: CMP qword ptr [RBP + -0x40],0x2 JC 0x001af284 MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x18 MOV qword ptr [RBP + -0x58],RAX MOV RDI,qword ptr [RBP + -0x58] MOV RSI,qword ptr [RBP + -0x20] ADD RSI,0x50 MOV RAX,qword ptr [RBP + -0x40] MOV EDX,EAX MOV RAX,qword ptr [RBP + -0x20] MOVSX ECX,byte ptr [RAX + 0x98] CALL 0x001af340 MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RAX + 0x18] ADD RCX,-0x1 MOV qword ptr [RAX + 0x18],RCX MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x48] MOV R8,qword ptr [RBP + -0x20] MOV R9,qword ptr [RBP + -0x38] MOV EDX,0x11 LEA RCX,[RBP + -0x30] CALL 0x001af8e0 MOV byte ptr [RBP + -0x49],AL MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RAX + 0x18] ADD RCX,0x1 MOV qword ptr [RAX + 0x18],RCX JMP 0x001af2db LAB_001af284: MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x50] SHR RAX,0x8 MOV qword ptr [RBP + -0x60],RAX JMP 0x001af296 LAB_001af296: MOV RDI,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0x50] MOV ESI,EAX CALL 0x001ad0a0 MOV qword ptr [RBP + -0x48],RAX MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x48] MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x8] MOV RCX,qword ptr [RBP + -0x60] MOVZX EAX,byte ptr [RAX + RCX*0x1] MOV EDX,EAX MOV R8,qword ptr [RBP + -0x20] MOV R9,qword ptr [RBP + -0x38] LEA RCX,[RBP + -0x30] CALL 0x001af8e0 MOV byte ptr [RBP + -0x49],AL LAB_001af2db: CMP byte ptr [RBP + -0x49],0x0 JZ 0x001af305 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x20] MOV R8,qword ptr [RBP + -0x38] LEA RDX,[0x1dc26f] CALL 0x001af820 MOV AL,byte ptr [RBP + -0x49] MOV byte ptr [RBP + -0x1],AL JMP 0x001af328 LAB_001af305: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x18] MOV RDX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x28] MOV ECX,dword ptr [RAX + 0x30] MOV R8,qword ptr [RBP + -0x48] MOV R9,qword ptr [RBP + -0x30] CALL 0x001afae0 MOV byte ptr [RBP + -0x1],AL LAB_001af328: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x60 POP RBP RET
int8 apply_one_rule(int8 param_1,long param_2,long param_3,long param_4) { char extraout_AL; int iVar1; ulong uVar2; int7 extraout_var; int8 uVar3; int7 uVar4; int7 extraout_var_00; char local_51; int8 local_50; int8 local_40; int8 local_38; long local_30; long local_28; long local_20; int8 local_18; char local_9; local_30 = param_4; local_28 = param_3; local_20 = param_2; local_18 = param_1; local_40 = my_coll_rule_reset_length(param_3); uVar2 = my_coll_rule_shift_length(local_28); if (((*(int *)(local_20 + 0x30) == 1) && (*(int *)(local_28 + 0x80) != 0)) || (*(long *)(local_28 + 0x90) == 1)) { iVar1 = my_coll_rule_expand(local_28,10,*(int8 *)(*(long *)(local_20 + 8) + 0x78)); if (iVar1 == 0) { my_charset_loader_error_for_rule(local_18,local_28,"Expansion",local_28,local_40); local_9 = '\x01'; uVar4 = extraout_var; goto LAB_001af328; } local_40 = my_coll_rule_reset_length(local_28); } if (uVar2 < 2) { uVar2 = *(ulong *)(local_28 + 0x50); local_50 = my_char_weight_addr(local_30,*(ulong *)(local_28 + 0x50) & 0xffffffff); local_51 = my_char_weight_put(local_30,local_50, *(int1 *)(*(long *)(local_30 + 8) + (uVar2 >> 8)),&local_38, local_28,local_40); } else { local_50 = my_uca_init_one_contraction (local_30 + 0x18,local_28 + 0x50,uVar2 & 0xffffffff, (int)*(char *)(local_28 + 0x98)); *(long *)(local_30 + 0x18) = *(long *)(local_30 + 0x18) + -1; local_51 = my_char_weight_put(local_30,local_50,0x11,&local_38,local_28,local_40); *(long *)(local_30 + 0x18) = *(long *)(local_30 + 0x18) + 1; } if (local_51 == '\0') { apply_shift(local_18,local_20,local_28,*(int4 *)(local_30 + 0x30),local_50,local_38); uVar4 = extraout_var_00; local_9 = extraout_AL; } else { uVar3 = my_charset_loader_error_for_rule(local_18,local_28,"Expansion",local_28,local_40); uVar4 = (int7)((ulong)uVar3 >> 8); local_9 = local_51; } LAB_001af328: return CONCAT71(uVar4,local_9); }
6,244
google::protobuf::MethodDescriptorProto::MergeImpl(google::protobuf::Message&, google::protobuf::Message const&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
void MethodDescriptorProto::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast<MethodDescriptorProto*>(&to_msg); auto& from = static_cast<const MethodDescriptorProto&>(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.MethodDescriptorProto) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x0000003fu) { if (cached_has_bits & 0x00000001u) { _this->_internal_set_name(from._internal_name()); } if (cached_has_bits & 0x00000002u) { _this->_internal_set_input_type(from._internal_input_type()); } if (cached_has_bits & 0x00000004u) { _this->_internal_set_output_type(from._internal_output_type()); } if (cached_has_bits & 0x00000008u) { _this->_internal_mutable_options()->::PROTOBUF_NAMESPACE_ID::MethodOptions::MergeFrom( from._internal_options()); } if (cached_has_bits & 0x00000010u) { _this->_impl_.client_streaming_ = from._impl_.client_streaming_; } if (cached_has_bits & 0x00000020u) { _this->_impl_.server_streaming_ = from._impl_.server_streaming_; } _this->_impl_._has_bits_[0] |= cached_has_bits; } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); }
O0
cpp
google::protobuf::MethodDescriptorProto::MergeImpl(google::protobuf::Message&, google::protobuf::Message const&): subq $0x1b8, %rsp # imm = 0x1B8 movq %rdi, 0xe8(%rsp) movq %rsi, 0xe0(%rsp) movq 0xe8(%rsp), %rax movq %rax, 0xd8(%rsp) movq 0xe0(%rsp), %rax movq %rax, 0xd0(%rsp) xorl %eax, %eax testb $0x1, %al jne 0x2c5622 jmp 0x2c56ea movq 0xd0(%rsp), %rax movq 0xd8(%rsp), %rcx movb $0x0, 0x97(%rsp) cmpq %rcx, %rax je 0x2c5641 jmp 0x2c569a leaq 0x129c50(%rip), %rdx # 0x3ef298 leaq 0x98(%rsp), %rdi movq %rdi, 0x68(%rsp) movl $0x3, %esi movl $0x17c5, %ecx # imm = 0x17C5 callq 0x19a670 movq 0x68(%rsp), %rdi movb $0x1, 0x97(%rsp) leaq 0x11ca67(%rip), %rsi # 0x3e20df callq 0x199f30 movq %rax, 0x70(%rsp) jmp 0x2c5684 movq 0x70(%rsp), %rsi leaq 0x83(%rsp), %rdi callq 0x19a0e0 jmp 0x2c5698 jmp 0x2c569a testb $0x1, 0x97(%rsp) jne 0x2c56a6 jmp 0x2c56b3 leaq 0x98(%rsp), %rdi callq 0x19a6b0 jmp 0x2c5617 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x88(%rsp) movl %eax, 0x84(%rsp) testb $0x1, 0x97(%rsp) jne 0x2c56d8 jmp 0x2c56e5 leaq 0x98(%rsp), %rdi callq 0x19a6b0 jmp 0x2c5b02 movl $0x0, 0x7c(%rsp) movq 0xd0(%rsp), %rax addq $0x10, %rax movq %rax, 0x140(%rsp) movl $0x0, 0x13c(%rsp) movq 0x140(%rsp), %rax movslq 0x13c(%rsp), %rcx movl (%rax,%rcx,4), %eax movl %eax, 0x7c(%rsp) movl 0x7c(%rsp), %eax andl $0x3f, %eax cmpl $0x0, %eax je 0x2c59fd movl 0x7c(%rsp), %eax andl $0x1, %eax cmpl $0x0, %eax je 0x2c57e6 movq 0xd8(%rsp), %rax movq %rax, 0x50(%rsp) movq 0xd0(%rsp), %rdi callq 0x294ec0 movq 0x50(%rsp), %rcx movq %rcx, 0x150(%rsp) movq %rax, 0x148(%rsp) movq 0x150(%rsp), %rdi movq %rdi, %rax addq $0x10, %rax movq %rax, 0x160(%rsp) movl $0x0, 0x15c(%rsp) movq 0x160(%rsp), %rax movslq 0x15c(%rsp), %rcx movl (%rax,%rcx,4), %edx orl $0x1, %edx movl %edx, (%rax,%rcx,4) movq %rdi, %rax addq $0x10, %rax addq $0x8, %rax movq %rax, 0x58(%rsp) movq 0x148(%rsp), %rax movq %rax, 0x60(%rsp) callq 0x102610 movq 0x58(%rsp), %rdi movq 0x60(%rsp), %rsi movq %rax, %rdx callq 0x169310 movl 0x7c(%rsp), %eax andl $0x2, %eax cmpl $0x0, %eax je 0x2c5894 movq 0xd8(%rsp), %rax movq %rax, 0x38(%rsp) movq 0xd0(%rsp), %rdi callq 0x295130 movq 0x38(%rsp), %rcx movq %rcx, 0x170(%rsp) movq %rax, 0x168(%rsp) movq 0x170(%rsp), %rdi movq %rdi, %rax addq $0x10, %rax movq %rax, 0x180(%rsp) movl $0x0, 0x17c(%rsp) movq 0x180(%rsp), %rax movslq 0x17c(%rsp), %rcx movl (%rax,%rcx,4), %edx orl $0x2, %edx movl %edx, (%rax,%rcx,4) movq %rdi, %rax addq $0x10, %rax addq $0x10, %rax movq %rax, 0x40(%rsp) movq 0x168(%rsp), %rax movq %rax, 0x48(%rsp) callq 0x102610 movq 0x40(%rsp), %rdi movq 0x48(%rsp), %rsi movq %rax, %rdx callq 0x169310 movl 0x7c(%rsp), %eax andl $0x4, %eax cmpl $0x0, %eax je 0x2c5942 movq 0xd8(%rsp), %rax movq %rax, 0x20(%rsp) movq 0xd0(%rsp), %rdi callq 0x295160 movq 0x20(%rsp), %rcx movq %rcx, 0x190(%rsp) movq %rax, 0x188(%rsp) movq 0x190(%rsp), %rdi movq %rdi, %rax addq $0x10, %rax movq %rax, 0x1a0(%rsp) movl $0x0, 0x19c(%rsp) movq 0x1a0(%rsp), %rax movslq 0x19c(%rsp), %rcx movl (%rax,%rcx,4), %edx orl $0x4, %edx movl %edx, (%rax,%rcx,4) movq %rdi, %rax addq $0x10, %rax addq $0x18, %rax movq %rax, 0x28(%rsp) movq 0x188(%rsp), %rax movq %rax, 0x30(%rsp) callq 0x102610 movq 0x28(%rsp), %rdi movq 0x30(%rsp), %rsi movq %rax, %rdx callq 0x169310 movl 0x7c(%rsp), %eax andl $0x8, %eax cmpl $0x0, %eax je 0x2c597a movq 0xd8(%rsp), %rdi callq 0x28e2b0 movq %rax, 0x18(%rsp) movq 0xd0(%rsp), %rdi callq 0x295030 movq 0x18(%rsp), %rdi movq %rax, %rsi callq 0x2e2070 movl 0x7c(%rsp), %eax andl $0x10, %eax cmpl $0x0, %eax je 0x2c599f movq 0xd0(%rsp), %rax movb 0x38(%rax), %cl movq 0xd8(%rsp), %rax andb $0x1, %cl movb %cl, 0x38(%rax) movl 0x7c(%rsp), %eax andl $0x20, %eax cmpl $0x0, %eax je 0x2c59c4 movq 0xd0(%rsp), %rax movb 0x39(%rax), %cl movq 0xd8(%rsp), %rax andb $0x1, %cl movb %cl, 0x39(%rax) movl 0x7c(%rsp), %edx movq 0xd8(%rsp), %rax addq $0x10, %rax movq %rax, 0x130(%rsp) movl $0x0, 0x12c(%rsp) movq 0x130(%rsp), %rax movslq 0x12c(%rsp), %rcx orl (%rax,%rcx,4), %edx movl %edx, (%rax,%rcx,4) movq 0xd8(%rsp), %rcx addq $0x8, %rcx movq 0xd0(%rsp), %rax addq $0x8, %rax movq %rcx, 0xf8(%rsp) movq %rax, 0xf0(%rsp) movq 0xf8(%rsp), %rax movq %rax, 0x10(%rsp) movq 0xf0(%rsp), %rax movq %rax, 0x100(%rsp) movq 0x100(%rsp), %rax movq %rax, 0x1b0(%rsp) movq 0x1b0(%rsp), %rax movq (%rax), %rax andq $0x1, %rax cmpq $0x0, %rax je 0x2c5afa movq 0xf0(%rsp), %rax movq %rax, 0x110(%rsp) movq $0x0, 0x108(%rsp) movq 0x110(%rsp), %rax movq %rax, 0x8(%rsp) movq %rax, 0x120(%rsp) movq 0x120(%rsp), %rax movq %rax, 0x1a8(%rsp) movq 0x1a8(%rsp), %rax movq (%rax), %rax andq $0x1, %rax cmpq $0x0, %rax je 0x2c5ad9 movq 0x8(%rsp), %rdi callq 0x155370 addq $0x8, %rax movq %rax, 0x118(%rsp) jmp 0x2c5ae8 callq *0x108(%rsp) movq %rax, 0x118(%rsp) movq 0x10(%rsp), %rdi movq 0x118(%rsp), %rsi callq 0x155200 addq $0x1b8, %rsp # imm = 0x1B8 retq movq 0x88(%rsp), %rdi callq 0x90db0 nop
_ZN6google8protobuf21MethodDescriptorProto9MergeImplERNS0_7MessageERKS2_: sub rsp, 1B8h mov [rsp+1B8h+var_D0], rdi mov [rsp+1B8h+var_D8], rsi mov rax, [rsp+1B8h+var_D0] mov [rsp+1B8h+var_E0], rax mov rax, [rsp+1B8h+var_D8] mov [rsp+1B8h+var_E8], rax loc_2C5617: xor eax, eax test al, 1 jnz short loc_2C5622 jmp loc_2C56EA loc_2C5622: mov rax, [rsp+1B8h+var_E8] mov rcx, [rsp+1B8h+var_E0] mov [rsp+1B8h+var_121], 0 cmp rax, rcx jz short loc_2C5641 jmp short loc_2C569A loc_2C5641: lea rdx, aWorkspaceLlm4b_56; "/workspace/llm4binary/github2025/aimrt_"... lea rdi, [rsp+1B8h+var_120] mov [rsp+1B8h+var_150], rdi mov esi, 3 mov ecx, 17C5h call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) mov rdi, [rsp+1B8h+var_150] mov [rsp+1B8h+var_121], 1 lea rsi, aCheckFailedFro; "CHECK failed: (&from) != (_this): " call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+1B8h+var_148], rax jmp short $+2 loc_2C5684: mov rsi, [rsp+1B8h+var_148] lea rdi, [rsp+1B8h+var_135] call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &) jmp short $+2 loc_2C5698: jmp short $+2 loc_2C569A: test [rsp+1B8h+var_121], 1 jnz short loc_2C56A6 jmp short loc_2C56B3 loc_2C56A6: lea rdi, [rsp+1B8h+var_120]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() loc_2C56B3: jmp loc_2C5617 mov rcx, rax mov eax, edx mov [rsp+arg_80], rcx mov [rsp+arg_7C], eax test [rsp+arg_8F], 1 jnz short loc_2C56D8 jmp short loc_2C56E5 loc_2C56D8: lea rdi, [rsp+arg_90]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() loc_2C56E5: jmp loc_2C5B02 loc_2C56EA: mov [rsp+1B8h+var_13C], 0 mov rax, [rsp+1B8h+var_E8] add rax, 10h mov [rsp+1B8h+var_78], rax mov [rsp+1B8h+var_7C], 0 mov rax, [rsp+1B8h+var_78] movsxd rcx, [rsp+1B8h+var_7C] mov eax, [rax+rcx*4] mov [rsp+1B8h+var_13C], eax mov eax, [rsp+1B8h+var_13C] and eax, 3Fh cmp eax, 0 jz loc_2C59FD mov eax, [rsp+1B8h+var_13C] and eax, 1 cmp eax, 0 jz loc_2C57E6 mov rax, [rsp+1B8h+var_E0] mov [rsp+1B8h+var_168], rax mov rdi, [rsp+1B8h+var_E8] call _ZNK6google8protobuf21MethodDescriptorProto14_internal_nameB5cxx11Ev; google::protobuf::MethodDescriptorProto::_internal_name(void) mov rcx, [rsp+1B8h+var_168] mov [rsp+1B8h+var_68], rcx mov [rsp+1B8h+var_70], rax mov rdi, [rsp+1B8h+var_68]; this mov rax, rdi add rax, 10h mov [rsp+1B8h+var_58], rax mov [rsp+1B8h+var_5C], 0 mov rax, [rsp+1B8h+var_58] movsxd rcx, [rsp+1B8h+var_5C] mov edx, [rax+rcx*4] or edx, 1 mov [rax+rcx*4], edx mov rax, rdi add rax, 10h add rax, 8 mov qword ptr [rsp+1B8h+var_160], rax mov rax, [rsp+1B8h+var_70] mov qword ptr [rsp+1B8h+var_158], rax call _ZNK6google8protobuf11MessageLite21GetArenaForAllocationEv; google::protobuf::MessageLite::GetArenaForAllocation(void) mov rdi, qword ptr [rsp+1B8h+var_160]; int mov rsi, qword ptr [rsp+1B8h+var_158]; int mov rdx, rax; int call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *) loc_2C57E6: mov eax, [rsp+1B8h+var_13C] and eax, 2 cmp eax, 0 jz loc_2C5894 mov rax, [rsp+1B8h+var_E0] mov [rsp+1B8h+var_180], rax mov rdi, [rsp+1B8h+var_E8] call _ZNK6google8protobuf21MethodDescriptorProto20_internal_input_typeB5cxx11Ev; google::protobuf::MethodDescriptorProto::_internal_input_type(void) mov rcx, [rsp+1B8h+var_180] mov [rsp+1B8h+var_48], rcx mov [rsp+1B8h+var_50], rax mov rdi, [rsp+1B8h+var_48]; this mov rax, rdi add rax, 10h mov [rsp+1B8h+var_38], rax mov [rsp+1B8h+var_3C], 0 mov rax, [rsp+1B8h+var_38] movsxd rcx, [rsp+1B8h+var_3C] mov edx, [rax+rcx*4] or edx, 2 mov [rax+rcx*4], edx mov rax, rdi add rax, 10h add rax, 10h mov qword ptr [rsp+1B8h+var_178], rax mov rax, [rsp+1B8h+var_50] mov qword ptr [rsp+1B8h+var_170], rax call _ZNK6google8protobuf11MessageLite21GetArenaForAllocationEv; google::protobuf::MessageLite::GetArenaForAllocation(void) mov rdi, qword ptr [rsp+1B8h+var_178]; int mov rsi, qword ptr [rsp+1B8h+var_170]; int mov rdx, rax; int call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *) loc_2C5894: mov eax, [rsp+1B8h+var_13C] and eax, 4 cmp eax, 0 jz loc_2C5942 mov rax, [rsp+1B8h+var_E0] mov [rsp+1B8h+var_198], rax mov rdi, [rsp+1B8h+var_E8] call _ZNK6google8protobuf21MethodDescriptorProto21_internal_output_typeB5cxx11Ev; google::protobuf::MethodDescriptorProto::_internal_output_type(void) mov rcx, [rsp+1B8h+var_198] mov [rsp+1B8h+var_28], rcx mov [rsp+1B8h+var_30], rax mov rdi, [rsp+1B8h+var_28]; this mov rax, rdi add rax, 10h mov [rsp+1B8h+var_18], rax mov [rsp+1B8h+var_1C], 0 mov rax, [rsp+1B8h+var_18] movsxd rcx, [rsp+1B8h+var_1C] mov edx, [rax+rcx*4] or edx, 4 mov [rax+rcx*4], edx mov rax, rdi add rax, 10h add rax, 18h mov qword ptr [rsp+1B8h+var_190], rax mov rax, [rsp+1B8h+var_30] mov qword ptr [rsp+1B8h+var_188], rax call _ZNK6google8protobuf11MessageLite21GetArenaForAllocationEv; google::protobuf::MessageLite::GetArenaForAllocation(void) mov rdi, qword ptr [rsp+1B8h+var_190]; int mov rsi, qword ptr [rsp+1B8h+var_188]; int mov rdx, rax; int call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *) loc_2C5942: mov eax, [rsp+1B8h+var_13C] and eax, 8 cmp eax, 0 jz short loc_2C597A mov rdi, [rsp+1B8h+var_E0]; this call _ZN6google8protobuf21MethodDescriptorProto25_internal_mutable_optionsEv; google::protobuf::MethodDescriptorProto::_internal_mutable_options(void) mov [rsp+1B8h+var_1A0], rax mov rdi, [rsp+1B8h+var_E8]; this call _ZNK6google8protobuf21MethodDescriptorProto17_internal_optionsEv; google::protobuf::MethodDescriptorProto::_internal_options(void) mov rdi, [rsp+1B8h+var_1A0]; this mov rsi, rax; google::protobuf::MethodOptions * call _ZN6google8protobuf13MethodOptions9MergeFromERKS1_; google::protobuf::MethodOptions::MergeFrom(google::protobuf::MethodOptions const&) loc_2C597A: mov eax, [rsp+1B8h+var_13C] and eax, 10h cmp eax, 0 jz short loc_2C599F mov rax, [rsp+1B8h+var_E8] mov cl, [rax+38h] mov rax, [rsp+1B8h+var_E0] and cl, 1 mov [rax+38h], cl loc_2C599F: mov eax, [rsp+1B8h+var_13C] and eax, 20h cmp eax, 0 jz short loc_2C59C4 mov rax, [rsp+1B8h+var_E8] mov cl, [rax+39h] mov rax, [rsp+1B8h+var_E0] and cl, 1 mov [rax+39h], cl loc_2C59C4: mov edx, [rsp+1B8h+var_13C] mov rax, [rsp+1B8h+var_E0] add rax, 10h mov [rsp+1B8h+var_88], rax mov [rsp+1B8h+var_8C], 0 mov rax, [rsp+1B8h+var_88] movsxd rcx, [rsp+1B8h+var_8C] or edx, [rax+rcx*4] mov [rax+rcx*4], edx loc_2C59FD: mov rcx, [rsp+1B8h+var_E0] add rcx, 8 mov rax, [rsp+1B8h+var_E8] add rax, 8 mov [rsp+1B8h+var_C0], rcx mov [rsp+1B8h+var_C8], rax mov rax, [rsp+1B8h+var_C0] mov [rsp+1B8h+var_1A8], rax mov rax, [rsp+1B8h+var_C8] mov [rsp+1B8h+var_B8], rax mov rax, [rsp+1B8h+var_B8] mov [rsp+1B8h+var_8], rax mov rax, [rsp+1B8h+var_8] mov rax, [rax] and rax, 1 cmp rax, 0 jz loc_2C5AFA mov rax, [rsp+1B8h+var_C8] mov [rsp+1B8h+var_A8], rax mov [rsp+1B8h+var_B0], 0 mov rax, [rsp+1B8h+var_A8] mov [rsp+1B8h+var_1B0], rax mov [rsp+1B8h+var_98], rax mov rax, [rsp+1B8h+var_98] mov [rsp+1B8h+var_10], rax mov rax, [rsp+1B8h+var_10] mov rax, [rax] and rax, 1 cmp rax, 0 jz short loc_2C5AD9 mov rdi, [rsp+1B8h+var_1B0] call _ZNK6google8protobuf8internal16InternalMetadata8PtrValueINS2_9ContainerINS0_15UnknownFieldSetEEEEEPT_v; google::protobuf::internal::InternalMetadata::PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>>(void) add rax, 8 mov qword ptr [rsp+1B8h+var_A0], rax jmp short loc_2C5AE8 loc_2C5AD9: call [rsp+1B8h+var_B0] mov qword ptr [rsp+1B8h+var_A0], rax loc_2C5AE8: mov rdi, [rsp+1B8h+var_1A8]; void * mov rsi, qword ptr [rsp+1B8h+var_A0]; int call _ZN6google8protobuf8internal16InternalMetadata11DoMergeFromINS0_15UnknownFieldSetEEEvRKT_; google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>(google::protobuf::UnknownFieldSet const&) loc_2C5AFA: add rsp, 1B8h retn loc_2C5B02: mov rdi, [rsp+arg_80] call __Unwind_Resume
long long google::protobuf::MethodDescriptorProto::MergeImpl( google::protobuf::MethodDescriptorProto *this, void ( ***a2)(google::protobuf::MethodOptions *__hidden this), unsigned long long a3) { int ArenaForAllocation; // eax int v4; // eax int v5; // eax long long result; // rax unsigned int v7; // [rsp+7Ch] [rbp-13Ch] google::protobuf::MethodDescriptorProto *v8; // [rsp+D0h] [rbp-E8h] google::protobuf::MethodDescriptorProto *v9; // [rsp+D8h] [rbp-E0h] _QWORD *v10; // [rsp+F0h] [rbp-C8h] int v11[2]; // [rsp+118h] [rbp-A0h] google::protobuf::Message *v12; // [rsp+148h] [rbp-70h] google::protobuf::Message *v13; // [rsp+168h] [rbp-50h] google::protobuf::Message *v14; // [rsp+188h] [rbp-30h] v9 = this; v8 = (google::protobuf::MethodDescriptorProto *)a2; v7 = *((_DWORD *)a2 + 4); if ( (v7 & 0x3F) != 0 ) { if ( (v7 & 1) != 0 ) { v12 = (google::protobuf::Message *)google::protobuf::MethodDescriptorProto::_internal_name[abi:cxx11]((long long)a2); *((_DWORD *)this + 4) |= 1u; ArenaForAllocation = google::protobuf::MessageLite::GetArenaForAllocation(this); this = (google::protobuf::MethodDescriptorProto *)((char *)this + 24); a2 = (void ( ***)(google::protobuf::MethodOptions *__hidden))v12; google::protobuf::internal::ArenaStringPtr::Set((_DWORD)v9 + 24, (int)v12, ArenaForAllocation); } if ( (v7 & 2) != 0 ) { v13 = (google::protobuf::Message *)google::protobuf::MethodDescriptorProto::_internal_input_type[abi:cxx11]((long long)v8); *((_DWORD *)v9 + 4) |= 2u; v4 = google::protobuf::MessageLite::GetArenaForAllocation(v9); this = (google::protobuf::MethodDescriptorProto *)((char *)v9 + 32); a2 = (void ( ***)(google::protobuf::MethodOptions *__hidden))v13; google::protobuf::internal::ArenaStringPtr::Set((_DWORD)v9 + 32, (int)v13, v4); } if ( (v7 & 4) != 0 ) { v14 = (google::protobuf::Message *)google::protobuf::MethodDescriptorProto::_internal_output_type[abi:cxx11]((long long)v8); *((_DWORD *)v9 + 4) |= 4u; v5 = google::protobuf::MessageLite::GetArenaForAllocation(v9); this = (google::protobuf::MethodDescriptorProto *)((char *)v9 + 40); a2 = (void ( ***)(google::protobuf::MethodOptions *__hidden))v14; google::protobuf::internal::ArenaStringPtr::Set((_DWORD)v9 + 40, (int)v14, v5); } if ( (v7 & 8) != 0 ) { this = (google::protobuf::MethodDescriptorProto *)google::protobuf::MethodDescriptorProto::_internal_mutable_options(v9); a2 = google::protobuf::MethodDescriptorProto::_internal_options(v8); google::protobuf::MethodOptions::MergeFrom(this, (const google::protobuf::MethodOptions *)a2); } if ( (v7 & 0x10) != 0 ) *((_BYTE *)v9 + 56) = *((_BYTE *)v8 + 56) & 1; if ( (v7 & 0x20) != 0 ) *((_BYTE *)v9 + 57) = *((_BYTE *)v8 + 57) & 1; a3 = *((_DWORD *)v9 + 4) | v7; *((_DWORD *)v9 + 4) = a3; } v10 = (_QWORD *)((char *)v8 + 8); result = *((_QWORD *)v8 + 1) & 1LL; if ( result ) { if ( (*v10 & 1LL) != 0 ) *(_QWORD *)v11 = google::protobuf::internal::InternalMetadata::PtrValue<google::protobuf::internal::InternalMetadata::Container<google::protobuf::UnknownFieldSet>>(v10) + 8; else v11[0] = ((long long ( *)(google::protobuf::MethodDescriptorProto *, void ( ***)(google::protobuf::MethodOptions *__hidden), unsigned long long))dword_0)( this, a2, a3); return google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>( (char *)v9 + 8, v11[0]); } return result; }
6,245
google::protobuf::MethodDescriptorProto::MergeImpl(google::protobuf::Message&, google::protobuf::Message const&)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.pb.cc
void MethodDescriptorProto::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { auto* const _this = static_cast<MethodDescriptorProto*>(&to_msg); auto& from = static_cast<const MethodDescriptorProto&>(from_msg); // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.MethodDescriptorProto) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; cached_has_bits = from._impl_._has_bits_[0]; if (cached_has_bits & 0x0000003fu) { if (cached_has_bits & 0x00000001u) { _this->_internal_set_name(from._internal_name()); } if (cached_has_bits & 0x00000002u) { _this->_internal_set_input_type(from._internal_input_type()); } if (cached_has_bits & 0x00000004u) { _this->_internal_set_output_type(from._internal_output_type()); } if (cached_has_bits & 0x00000008u) { _this->_internal_mutable_options()->::PROTOBUF_NAMESPACE_ID::MethodOptions::MergeFrom( from._internal_options()); } if (cached_has_bits & 0x00000010u) { _this->_impl_.client_streaming_ = from._impl_.client_streaming_; } if (cached_has_bits & 0x00000020u) { _this->_impl_.server_streaming_ = from._impl_.server_streaming_; } _this->_impl_._has_bits_[0] |= cached_has_bits; } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); }
O3
cpp
google::protobuf::MethodDescriptorProto::MergeImpl(google::protobuf::Message&, google::protobuf::Message const&): pushq %rbp pushq %r14 pushq %rbx movq %rsi, %r14 movq %rdi, %rbx movl 0x10(%rsi), %ebp testb $0x3f, %bpl je 0xf2265 testb $0x1, %bpl je 0xf21a7 movq 0x18(%r14), %rsi andq $-0x4, %rsi orl $0x1, 0x10(%rbx) leaq 0x18(%rbx), %rdi movq 0x8(%rbx), %rax movq %rax, %rdx andq $-0x4, %rdx testb $0x1, %al jne 0xf228c callq 0x786ce testb $0x2, %bpl je 0xf21d5 movq 0x20(%r14), %rsi andq $-0x4, %rsi orl $0x2, 0x10(%rbx) leaq 0x20(%rbx), %rdi movq 0x8(%rbx), %rax movq %rax, %rdx andq $-0x4, %rdx testb $0x1, %al jne 0xf2294 callq 0x786ce testb $0x4, %bpl je 0xf2203 movq 0x28(%r14), %rsi andq $-0x4, %rsi orl $0x4, 0x10(%rbx) leaq 0x28(%rbx), %rdi movq 0x8(%rbx), %rax movq %rax, %rdx andq $-0x4, %rdx testb $0x1, %al jne 0xf229c callq 0x786ce testb $0x8, %bpl je 0xf2248 orb $0x8, 0x10(%rbx) movq 0x30(%rbx), %rdi testq %rdi, %rdi jne 0xf2231 movq 0x8(%rbx), %rax movq %rax, %rdi andq $-0x4, %rdi testb $0x1, %al jne 0xf22a4 callq 0xfaa18 movq %rax, %rdi movq %rax, 0x30(%rbx) movq 0x30(%r14), %rax testq %rax, %rax leaq 0x11ff39(%rip), %rsi # 0x212178 cmovneq %rax, %rsi callq 0xf71b4 testb $0x10, %bpl je 0xf2255 movb 0x38(%r14), %al movb %al, 0x38(%rbx) testb $0x20, %bpl je 0xf2262 movb 0x39(%r14), %al movb %al, 0x39(%rbx) orl %ebp, 0x10(%rbx) movq 0x8(%r14), %rsi testb $0x1, %sil jne 0xf2274 popq %rbx popq %r14 popq %rbp retq addq $0x8, %rbx andq $-0x4, %rsi addq $0x8, %rsi movq %rbx, %rdi popq %rbx popq %r14 popq %rbp jmp 0x734be movq (%rdx), %rdx jmp 0xf21a2 movq (%rdx), %rdx jmp 0xf21d0 movq (%rdx), %rdx jmp 0xf21fe movq (%rdi), %rdi jmp 0xf2225
_ZN6google8protobuf21MethodDescriptorProto9MergeImplERNS0_7MessageERKS2_: push rbp push r14 push rbx mov r14, rsi mov rbx, rdi mov ebp, [rsi+10h] test bpl, 3Fh jz loc_F2265 test bpl, 1 jz short loc_F21A7 mov rsi, [r14+18h] and rsi, 0FFFFFFFFFFFFFFFCh or dword ptr [rbx+10h], 1 lea rdi, [rbx+18h] mov rax, [rbx+8] mov rdx, rax and rdx, 0FFFFFFFFFFFFFFFCh test al, 1 jnz loc_F228C loc_F21A2: call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *) loc_F21A7: test bpl, 2 jz short loc_F21D5 mov rsi, [r14+20h] and rsi, 0FFFFFFFFFFFFFFFCh or dword ptr [rbx+10h], 2 lea rdi, [rbx+20h] mov rax, [rbx+8] mov rdx, rax and rdx, 0FFFFFFFFFFFFFFFCh test al, 1 jnz loc_F2294 loc_F21D0: call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *) loc_F21D5: test bpl, 4 jz short loc_F2203 mov rsi, [r14+28h] and rsi, 0FFFFFFFFFFFFFFFCh or dword ptr [rbx+10h], 4 lea rdi, [rbx+28h] mov rax, [rbx+8] mov rdx, rax and rdx, 0FFFFFFFFFFFFFFFCh test al, 1 jnz loc_F229C loc_F21FE: call _ZN6google8protobuf8internal14ArenaStringPtr3SetERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPNS0_5ArenaE; google::protobuf::internal::ArenaStringPtr::Set(std::string const&,google::protobuf::Arena *) loc_F2203: test bpl, 8 jz short loc_F2248 or byte ptr [rbx+10h], 8 mov rdi, [rbx+30h] test rdi, rdi jnz short loc_F2231 mov rax, [rbx+8] mov rdi, rax and rdi, 0FFFFFFFFFFFFFFFCh test al, 1 jnz short loc_F22A4 loc_F2225: call _ZN6google8protobuf5Arena18CreateMaybeMessageINS0_13MethodOptionsEJEEEPT_PS1_DpOT0_; google::protobuf::Arena::CreateMaybeMessage<google::protobuf::MethodOptions>(google::protobuf::Arena*) mov rdi, rax; this mov [rbx+30h], rax loc_F2231: mov rax, [r14+30h] test rax, rax lea rsi, _ZN6google8protobuf32_MethodOptions_default_instance_E; google::protobuf::_MethodOptions_default_instance_ cmovnz rsi, rax; google::protobuf::Message * call _ZN6google8protobuf13MethodOptions9MergeImplERNS0_7MessageERKS2_; google::protobuf::MethodOptions::MergeImpl(google::protobuf::Message &,google::protobuf::Message const&) loc_F2248: test bpl, 10h jz short loc_F2255 mov al, [r14+38h] mov [rbx+38h], al loc_F2255: test bpl, 20h jz short loc_F2262 mov al, [r14+39h] mov [rbx+39h], al loc_F2262: or [rbx+10h], ebp loc_F2265: mov rsi, [r14+8] test sil, 1 jnz short loc_F2274 pop rbx pop r14 pop rbp retn loc_F2274: add rbx, 8 and rsi, 0FFFFFFFFFFFFFFFCh add rsi, 8 mov rdi, rbx pop rbx pop r14 pop rbp jmp _ZN6google8protobuf8internal16InternalMetadata11DoMergeFromINS0_15UnknownFieldSetEEEvRKT_; google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>(google::protobuf::UnknownFieldSet const&) loc_F228C: mov rdx, [rdx] jmp loc_F21A2 loc_F2294: mov rdx, [rdx] jmp loc_F21D0 loc_F229C: mov rdx, [rdx] jmp loc_F21FE loc_F22A4: mov rdi, [rdi] jmp loc_F2225
void google::protobuf::MethodDescriptorProto::MergeImpl( google::protobuf::MethodDescriptorProto *this, google::protobuf::Message *a2, const google::protobuf::Message *a3) { int v5; // ebp unsigned long long v6; // rsi long long *v7; // rdi google::protobuf::Arena *v8; // rdx unsigned long long v9; // rsi google::protobuf::Arena *v10; // rdx unsigned long long v11; // rsi google::protobuf::Arena *v12; // rdx google::protobuf::MethodOptions *v13; // rdi _QWORD *v14; // rdi google::protobuf::Message *v15; // rsi long long v16; // rsi v5 = *((_DWORD *)a2 + 4); if ( (v5 & 0x3F) != 0 ) { if ( (v5 & 1) != 0 ) { v6 = *((_QWORD *)a2 + 3) & 0xFFFFFFFFFFFFFFFCLL; *((_DWORD *)this + 4) |= 1u; v7 = (long long *)((char *)this + 24); v8 = (google::protobuf::Arena *)(*((_QWORD *)this + 1) & 0xFFFFFFFFFFFFFFFCLL); if ( (*((_QWORD *)this + 1) & 1) != 0 ) v8 = *(google::protobuf::Arena **)v8; google::protobuf::internal::ArenaStringPtr::Set(v7, v6, v8); } if ( (v5 & 2) != 0 ) { v9 = *((_QWORD *)a2 + 4) & 0xFFFFFFFFFFFFFFFCLL; *((_DWORD *)this + 4) |= 2u; v10 = (google::protobuf::Arena *)(*((_QWORD *)this + 1) & 0xFFFFFFFFFFFFFFFCLL); if ( (*((_QWORD *)this + 1) & 1) != 0 ) v10 = *(google::protobuf::Arena **)v10; google::protobuf::internal::ArenaStringPtr::Set((long long *)this + 4, v9, v10); } if ( (v5 & 4) != 0 ) { v11 = *((_QWORD *)a2 + 5) & 0xFFFFFFFFFFFFFFFCLL; *((_DWORD *)this + 4) |= 4u; v12 = (google::protobuf::Arena *)(*((_QWORD *)this + 1) & 0xFFFFFFFFFFFFFFFCLL); if ( (*((_QWORD *)this + 1) & 1) != 0 ) v12 = *(google::protobuf::Arena **)v12; google::protobuf::internal::ArenaStringPtr::Set((long long *)this + 5, v11, v12); } if ( (v5 & 8) != 0 ) { *((_BYTE *)this + 16) |= 8u; v13 = (google::protobuf::MethodOptions *)*((_QWORD *)this + 6); if ( !v13 ) { v14 = (_QWORD *)(*((_QWORD *)this + 1) & 0xFFFFFFFFFFFFFFFCLL); if ( (*((_QWORD *)this + 1) & 1) != 0 ) v14 = (_QWORD *)*v14; v13 = (google::protobuf::MethodOptions *)google::protobuf::Arena::CreateMaybeMessage<google::protobuf::MethodOptions>(v14); *((_QWORD *)this + 6) = v13; } v15 = (google::protobuf::Message *)&google::protobuf::_MethodOptions_default_instance_; if ( *((_QWORD *)a2 + 6) ) v15 = (google::protobuf::Message *)*((_QWORD *)a2 + 6); google::protobuf::MethodOptions::MergeImpl(v13, v15, a3); } if ( (v5 & 0x10) != 0 ) *((_BYTE *)this + 56) = *((_BYTE *)a2 + 56); if ( (v5 & 0x20) != 0 ) *((_BYTE *)this + 57) = *((_BYTE *)a2 + 57); *((_DWORD *)this + 4) |= v5; } v16 = *((_QWORD *)a2 + 1); if ( (v16 & 1) != 0 ) google::protobuf::internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet>( (long long *)this + 1, (const google::protobuf::UnknownFieldSet *)((v16 & 0xFFFFFFFFFFFFFFFCLL) + 8)); }
MergeImpl: PUSH RBP PUSH R14 PUSH RBX MOV R14,RSI MOV RBX,RDI MOV EBP,dword ptr [RSI + 0x10] TEST BPL,0x3f JZ 0x001f2265 TEST BPL,0x1 JZ 0x001f21a7 MOV RSI,qword ptr [R14 + 0x18] AND RSI,-0x4 OR dword ptr [RBX + 0x10],0x1 LEA RDI,[RBX + 0x18] MOV RAX,qword ptr [RBX + 0x8] MOV RDX,RAX AND RDX,-0x4 TEST AL,0x1 JNZ 0x001f228c LAB_001f21a2: CALL 0x001786ce LAB_001f21a7: TEST BPL,0x2 JZ 0x001f21d5 MOV RSI,qword ptr [R14 + 0x20] AND RSI,-0x4 OR dword ptr [RBX + 0x10],0x2 LEA RDI,[RBX + 0x20] MOV RAX,qword ptr [RBX + 0x8] MOV RDX,RAX AND RDX,-0x4 TEST AL,0x1 JNZ 0x001f2294 LAB_001f21d0: CALL 0x001786ce LAB_001f21d5: TEST BPL,0x4 JZ 0x001f2203 MOV RSI,qword ptr [R14 + 0x28] AND RSI,-0x4 OR dword ptr [RBX + 0x10],0x4 LEA RDI,[RBX + 0x28] MOV RAX,qword ptr [RBX + 0x8] MOV RDX,RAX AND RDX,-0x4 TEST AL,0x1 JNZ 0x001f229c LAB_001f21fe: CALL 0x001786ce LAB_001f2203: TEST BPL,0x8 JZ 0x001f2248 OR byte ptr [RBX + 0x10],0x8 MOV RDI,qword ptr [RBX + 0x30] TEST RDI,RDI JNZ 0x001f2231 MOV RAX,qword ptr [RBX + 0x8] MOV RDI,RAX AND RDI,-0x4 TEST AL,0x1 JNZ 0x001f22a4 LAB_001f2225: CALL 0x001faa18 MOV RDI,RAX MOV qword ptr [RBX + 0x30],RAX LAB_001f2231: MOV RAX,qword ptr [R14 + 0x30] TEST RAX,RAX LEA RSI,[0x312178] CMOVNZ RSI,RAX CALL 0x001f71b4 LAB_001f2248: TEST BPL,0x10 JZ 0x001f2255 MOV AL,byte ptr [R14 + 0x38] MOV byte ptr [RBX + 0x38],AL LAB_001f2255: TEST BPL,0x20 JZ 0x001f2262 MOV AL,byte ptr [R14 + 0x39] MOV byte ptr [RBX + 0x39],AL LAB_001f2262: OR dword ptr [RBX + 0x10],EBP LAB_001f2265: MOV RSI,qword ptr [R14 + 0x8] TEST SIL,0x1 JNZ 0x001f2274 POP RBX POP R14 POP RBP RET LAB_001f2274: ADD RBX,0x8 AND RSI,-0x4 ADD RSI,0x8 MOV RDI,RBX POP RBX POP R14 POP RBP JMP 0x001734be LAB_001f228c: MOV RDX,qword ptr [RDX] JMP 0x001f21a2 LAB_001f2294: MOV RDX,qword ptr [RDX] JMP 0x001f21d0 LAB_001f229c: MOV RDX,qword ptr [RDX] JMP 0x001f21fe LAB_001f22a4: MOV RDI,qword ptr [RDI] JMP 0x001f2225
/* google::protobuf::MethodDescriptorProto::MergeImpl(google::protobuf::Message&, google::protobuf::Message const&) */ void google::protobuf::MethodDescriptorProto::MergeImpl(Message *param_1,Message *param_2) { uint uVar1; ulong uVar2; Message *pMVar3; Arena *pAVar4; Message *pMVar5; uVar1 = *(uint *)(param_2 + 0x10); if ((uVar1 & 0x3f) != 0) { if ((uVar1 & 1) != 0) { uVar2 = *(ulong *)(param_2 + 0x18); *(uint *)(param_1 + 0x10) = *(uint *)(param_1 + 0x10) | 1; pAVar4 = (Arena *)(*(ulong *)(param_1 + 8) & 0xfffffffffffffffc); if ((*(ulong *)(param_1 + 8) & 1) != 0) { pAVar4 = *(Arena **)pAVar4; } internal::ArenaStringPtr::Set ((ArenaStringPtr *)(param_1 + 0x18),(string *)(uVar2 & 0xfffffffffffffffc),pAVar4); } if ((uVar1 & 2) != 0) { uVar2 = *(ulong *)(param_2 + 0x20); *(uint *)(param_1 + 0x10) = *(uint *)(param_1 + 0x10) | 2; pAVar4 = (Arena *)(*(ulong *)(param_1 + 8) & 0xfffffffffffffffc); if ((*(ulong *)(param_1 + 8) & 1) != 0) { pAVar4 = *(Arena **)pAVar4; } internal::ArenaStringPtr::Set ((ArenaStringPtr *)(param_1 + 0x20),(string *)(uVar2 & 0xfffffffffffffffc),pAVar4); } if ((uVar1 & 4) != 0) { uVar2 = *(ulong *)(param_2 + 0x28); *(uint *)(param_1 + 0x10) = *(uint *)(param_1 + 0x10) | 4; pAVar4 = (Arena *)(*(ulong *)(param_1 + 8) & 0xfffffffffffffffc); if ((*(ulong *)(param_1 + 8) & 1) != 0) { pAVar4 = *(Arena **)pAVar4; } internal::ArenaStringPtr::Set ((ArenaStringPtr *)(param_1 + 0x28),(string *)(uVar2 & 0xfffffffffffffffc),pAVar4); } if ((uVar1 & 8) != 0) { param_1[0x10] = (Message)((byte)param_1[0x10] | 8); pMVar3 = *(Message **)(param_1 + 0x30); if (pMVar3 == (Message *)0x0) { pAVar4 = (Arena *)(*(ulong *)(param_1 + 8) & 0xfffffffffffffffc); if ((*(ulong *)(param_1 + 8) & 1) != 0) { pAVar4 = *(Arena **)pAVar4; } pMVar3 = (Message *)Arena::CreateMaybeMessage<google::protobuf::MethodOptions>(pAVar4); *(Message **)(param_1 + 0x30) = pMVar3; } pMVar5 = (Message *)_MethodOptions_default_instance_; if (*(Message **)(param_2 + 0x30) != (Message *)0x0) { pMVar5 = *(Message **)(param_2 + 0x30); } MethodOptions::MergeImpl(pMVar3,pMVar5); } if ((uVar1 & 0x10) != 0) { param_1[0x38] = param_2[0x38]; } if ((uVar1 & 0x20) != 0) { param_1[0x39] = param_2[0x39]; } *(uint *)(param_1 + 0x10) = *(uint *)(param_1 + 0x10) | uVar1; } if ((*(ulong *)(param_2 + 8) & 1) == 0) { return; } internal::InternalMetadata::DoMergeFrom<google::protobuf::UnknownFieldSet> ((InternalMetadata *)(param_1 + 8), (UnknownFieldSet *)((*(ulong *)(param_2 + 8) & 0xfffffffffffffffc) + 8)); return; }
6,246
fmt::v10::appender fmt::v10::detail::write<char, fmt::v10::appender>(fmt::v10::appender, fmt::v10::basic_string_view<char>, fmt::v10::format_specs<char> const&)
AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/fmt/bundled/format.h
FMT_CONSTEXPR auto write(OutputIt out, basic_string_view<Char> s, const format_specs<Char>& specs) -> OutputIt { auto data = s.data(); auto size = s.size(); if (specs.precision >= 0 && to_unsigned(specs.precision) < size) size = code_point_index(s, to_unsigned(specs.precision)); bool is_debug = specs.type == presentation_type::debug; size_t width = 0; if (specs.width != 0) { if (is_debug) width = write_escaped_string(counting_iterator{}, s).count(); else width = compute_width(basic_string_view<Char>(data, size)); } return write_padded(out, specs, size, width, [=](reserve_iterator<OutputIt> it) { if (is_debug) return write_escaped_string(it, s); return copy_str<Char>(data, data + size, it); }); }
O0
c
fmt::v10::appender fmt::v10::detail::write<char, fmt::v10::appender>(fmt::v10::appender, fmt::v10::basic_string_view<char>, fmt::v10::format_specs<char> const&): subq $0xb8, %rsp movq %rdi, 0xa8(%rsp) movq %rsi, 0x98(%rsp) movq %rdx, 0xa0(%rsp) movq %rcx, 0x90(%rsp) leaq 0x98(%rsp), %rdi callq 0x24490 movq %rax, 0x88(%rsp) leaq 0x98(%rsp), %rdi callq 0x244a0 movq %rax, 0x80(%rsp) movq 0x90(%rsp), %rax cmpl $0x0, 0x4(%rax) jl 0xac580 movq 0x90(%rsp), %rax movl 0x4(%rax), %edi callq 0x87c40 movl %eax, %eax cmpq 0x80(%rsp), %rax jae 0xac580 movq 0x98(%rsp), %rax movq %rax, 0x70(%rsp) movq 0xa0(%rsp), %rax movq %rax, 0x78(%rsp) movq 0x90(%rsp), %rax movl 0x4(%rax), %edi callq 0x87c40 movl %eax, %eax movl %eax, %edx movq 0x70(%rsp), %rdi movq 0x78(%rsp), %rsi callq 0xac6c0 movq %rax, 0x80(%rsp) movq 0x90(%rsp), %rax cmpb $0x12, 0x8(%rax) sete %al andb $0x1, %al movb %al, 0x6f(%rsp) movq $0x0, 0x60(%rsp) movq 0x90(%rsp), %rax cmpl $0x0, (%rax) je 0xac634 testb $0x1, 0x6f(%rsp) je 0xac604 leaq 0x50(%rsp), %rdi callq 0xac8c0 movq 0x98(%rsp), %rax movq %rax, 0x40(%rsp) movq 0xa0(%rsp), %rax movq %rax, 0x48(%rsp) movq 0x50(%rsp), %rdi movq 0x40(%rsp), %rsi movq 0x48(%rsp), %rdx callq 0xac760 movq %rax, 0x58(%rsp) leaq 0x58(%rsp), %rdi callq 0xac8e0 movq %rax, 0x60(%rsp) jmp 0xac632 movq 0x88(%rsp), %rsi movq 0x80(%rsp), %rdx leaq 0x30(%rsp), %rdi callq 0x23b30 movq 0x30(%rsp), %rdi movq 0x38(%rsp), %rsi callq 0xac8f0 movq %rax, 0x60(%rsp) jmp 0xac634 movq 0xa8(%rsp), %rax movq %rax, 0x28(%rsp) movq 0x90(%rsp), %rsi movq 0x80(%rsp), %rdx movq 0x60(%rsp), %rcx movb 0x6f(%rsp), %al andb $0x1, %al movb %al, (%rsp) movq 0x98(%rsp), %rax movq %rax, 0x8(%rsp) movq 0xa0(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x88(%rsp), %rax movq %rax, 0x18(%rsp) movq 0x80(%rsp), %rax movq %rax, 0x20(%rsp) movq 0x28(%rsp), %rdi movq %rsp, %r8 callq 0xac950 movq %rax, 0xb0(%rsp) movq 0xb0(%rsp), %rax addq $0xb8, %rsp retq nopl (%rax,%rax)
_ZN3fmt3v106detail5writeIcNS0_8appenderEEET0_S4_NS0_17basic_string_viewIT_EERKNS0_12format_specsIS6_EE: sub rsp, 0B8h mov [rsp+0B8h+var_10], rdi mov [rsp+0B8h+var_20], rsi mov [rsp+0B8h+var_18], rdx mov [rsp+0B8h+var_28], rcx lea rdi, [rsp+0B8h+var_20] call _ZNK3fmt3v1017basic_string_viewIcE4dataEv; fmt::v10::basic_string_view<char>::data(void) mov [rsp+0B8h+var_30], rax lea rdi, [rsp+0B8h+var_20] call _ZNK3fmt3v1017basic_string_viewIcE4sizeEv; fmt::v10::basic_string_view<char>::size(void) mov [rsp+0B8h+var_38], rax mov rax, [rsp+0B8h+var_28] cmp dword ptr [rax+4], 0 jl short loc_AC580 mov rax, [rsp+0B8h+var_28] mov edi, [rax+4] call _ZN3fmt3v106detail11to_unsignedIiEENSt13make_unsignedIT_E4typeES4_; fmt::v10::detail::to_unsigned<int>(int) mov eax, eax cmp rax, [rsp+0B8h+var_38] jnb short loc_AC580 mov rax, [rsp+0B8h+var_20] mov [rsp+0B8h+var_48], rax mov rax, [rsp+0B8h+var_18] mov [rsp+0B8h+var_40], rax mov rax, [rsp+0B8h+var_28] mov edi, [rax+4] call _ZN3fmt3v106detail11to_unsignedIiEENSt13make_unsignedIT_E4typeES4_; fmt::v10::detail::to_unsigned<int>(int) mov eax, eax mov edx, eax mov rdi, [rsp+0B8h+var_48] mov rsi, [rsp+0B8h+var_40] call _ZN3fmt3v106detail16code_point_indexENS0_17basic_string_viewIcEEm; fmt::v10::detail::code_point_index(fmt::v10::basic_string_view<char>,ulong) mov [rsp+0B8h+var_38], rax loc_AC580: mov rax, [rsp+0B8h+var_28] cmp byte ptr [rax+8], 12h setz al and al, 1 mov [rsp+0B8h+var_49], al mov [rsp+0B8h+var_58], 0 mov rax, [rsp+0B8h+var_28] cmp dword ptr [rax], 0 jz loc_AC634 test [rsp+0B8h+var_49], 1 jz short loc_AC604 lea rdi, [rsp+0B8h+var_68]; this call _ZN3fmt3v106detail17counting_iteratorC2Ev; fmt::v10::detail::counting_iterator::counting_iterator(void) mov rax, [rsp+0B8h+var_20] mov [rsp+0B8h+var_78], rax mov rax, [rsp+0B8h+var_18] mov [rsp+0B8h+var_70], rax mov rdi, [rsp+0B8h+var_68] mov rsi, [rsp+0B8h+var_78] mov rdx, [rsp+0B8h+var_70] call _ZN3fmt3v106detail20write_escaped_stringIcNS1_17counting_iteratorEEET0_S4_NS0_17basic_string_viewIT_EE; fmt::v10::detail::write_escaped_string<char,fmt::v10::detail::counting_iterator>(fmt::v10::detail::counting_iterator,fmt::v10::basic_string_view<char>) mov [rsp+0B8h+var_60], rax lea rdi, [rsp+0B8h+var_60]; this call _ZNK3fmt3v106detail17counting_iterator5countEv; fmt::v10::detail::counting_iterator::count(void) mov [rsp+0B8h+var_58], rax jmp short loc_AC632 loc_AC604: mov rsi, [rsp+0B8h+var_30] mov rdx, [rsp+0B8h+var_38] lea rdi, [rsp+0B8h+var_88] call _ZN3fmt3v1017basic_string_viewIcEC2EPKcm; fmt::v10::basic_string_view<char>::basic_string_view(char const*,ulong) mov rdi, [rsp+0B8h+var_88] mov rsi, [rsp+0B8h+var_80] call _ZN3fmt3v106detail13compute_widthENS0_17basic_string_viewIcEE; fmt::v10::detail::compute_width(fmt::v10::basic_string_view<char>) mov [rsp+0B8h+var_58], rax loc_AC632: jmp short $+2 loc_AC634: mov rax, [rsp+0B8h+var_10] mov [rsp+0B8h+var_90], rax mov rsi, [rsp+0B8h+var_28] mov rdx, [rsp+0B8h+var_38] mov rcx, [rsp+0B8h+var_58] mov al, [rsp+0B8h+var_49] and al, 1 mov [rsp+0B8h+var_B8], al mov rax, [rsp+0B8h+var_20] mov [rsp+0B8h+var_B0], rax mov rax, [rsp+0B8h+var_18] mov [rsp+0B8h+var_A8], rax mov rax, [rsp+0B8h+var_30] mov [rsp+0B8h+var_A0], rax mov rax, [rsp+0B8h+var_38] mov [rsp+0B8h+var_98], rax mov rdi, [rsp+0B8h+var_90] mov r8, rsp call _ZN3fmt3v106detail12write_paddedILNS0_5align4typeE1ENS0_8appenderEcZNS1_5writeIcS5_EET0_S7_NS0_17basic_string_viewIT_EERKNS0_12format_specsIS9_EEEUlS5_E_EES7_S7_RKNSB_IT1_EEmmOT2_; fmt::v10::detail::write_padded<(fmt::v10::align::type)1,fmt::v10::appender,char,fmt::v10::detail::write<char,fmt::v10::appender>(fmt::v10::appender,fmt::v10::basic_string_view<char>,fmt::v10::format_specs<char> const&)::{lambda(fmt::v10::appender)#1}>(fmt::v10::appender,fmt::v10::format_specs<char> const&,ulong,ulong,fmt::v10::detail::write<char,fmt::v10::appender>(fmt::v10::appender,fmt::v10::basic_string_view<char>,fmt::v10::format_specs<char> const&)::{lambda(fmt::v10::appender)#1} &&) mov [rsp+0B8h+var_8], rax mov rax, [rsp+0B8h+var_8] add rsp, 0B8h retn
long long fmt::v10::detail::write<char,fmt::v10::appender>(long long a1, long long a2, long long a3, long long a4) { unsigned int v4; // eax bool v6[8]; // [rsp+0h] [rbp-B8h] BYREF long long v7; // [rsp+8h] [rbp-B0h] long long v8; // [rsp+10h] [rbp-A8h] long long v9; // [rsp+18h] [rbp-A0h] unsigned long long v10; // [rsp+20h] [rbp-98h] long long v11; // [rsp+28h] [rbp-90h] _QWORD v12[4]; // [rsp+30h] [rbp-88h] BYREF long long v13; // [rsp+50h] [rbp-68h] BYREF long long v14; // [rsp+58h] [rbp-60h] BYREF long long v15; // [rsp+60h] [rbp-58h] bool v16; // [rsp+6Fh] [rbp-49h] long long v17; // [rsp+70h] [rbp-48h] long long v18; // [rsp+78h] [rbp-40h] unsigned long long v19; // [rsp+80h] [rbp-38h] long long v20; // [rsp+88h] [rbp-30h] long long v21; // [rsp+90h] [rbp-28h] long long v22; // [rsp+98h] [rbp-20h] BYREF long long v23; // [rsp+A0h] [rbp-18h] long long v24; // [rsp+A8h] [rbp-10h] v24 = a1; v22 = a2; v23 = a3; v21 = a4; v20 = fmt::v10::basic_string_view<char>::data((long long)&v22); v19 = fmt::v10::basic_string_view<char>::size((long long)&v22); if ( *(int *)(v21 + 4) >= 0 && (unsigned int)fmt::v10::detail::to_unsigned<int>(*(_DWORD *)(v21 + 4)) < v19 ) { v17 = v22; v18 = v23; v4 = fmt::v10::detail::to_unsigned<int>(*(_DWORD *)(v21 + 4)); v19 = fmt::v10::detail::code_point_index(v17, v18, v4); } v16 = *(_BYTE *)(v21 + 8) == 18; v15 = 0LL; if ( *(_DWORD *)v21 ) { if ( v16 ) { fmt::v10::detail::counting_iterator::counting_iterator((fmt::v10::detail::counting_iterator *)&v13); v12[2] = v22; v12[3] = v23; v14 = fmt::v10::detail::write_escaped_string<char,fmt::v10::detail::counting_iterator>(v13, v22, v23); v15 = fmt::v10::detail::counting_iterator::count((fmt::v10::detail::counting_iterator *)&v14); } else { fmt::v10::basic_string_view<char>::basic_string_view(v12, v20, v19); v15 = fmt::v10::detail::compute_width(v12[0], v12[1]); } } v11 = v24; v6[0] = v16; v7 = v22; v8 = v23; v9 = v20; v10 = v19; return ((long long ( *)(long long, long long, unsigned long long, long long, bool *))fmt::v10::detail::write_padded<(fmt::v10::align::type)1,fmt::v10::appender,char,fmt::v10::appender fmt::v10::detail::write<char,fmt::v10::appender>(fmt::v10::appender,fmt::v10::basic_string_view<char>,fmt::v10::format_specs<char> const&)::{lambda(fmt::v10::appender)#1}>)( v24, v21, v19, v15, v6); }
write<char,fmt::v10::appender>: SUB RSP,0xb8 MOV qword ptr [RSP + 0xa8],RDI MOV qword ptr [RSP + 0x98],RSI MOV qword ptr [RSP + 0xa0],RDX MOV qword ptr [RSP + 0x90],RCX LEA RDI,[RSP + 0x98] CALL 0x00124490 MOV qword ptr [RSP + 0x88],RAX LEA RDI,[RSP + 0x98] CALL 0x001244a0 MOV qword ptr [RSP + 0x80],RAX MOV RAX,qword ptr [RSP + 0x90] CMP dword ptr [RAX + 0x4],0x0 JL 0x001ac580 MOV RAX,qword ptr [RSP + 0x90] MOV EDI,dword ptr [RAX + 0x4] CALL 0x00187c40 MOV EAX,EAX CMP RAX,qword ptr [RSP + 0x80] JNC 0x001ac580 MOV RAX,qword ptr [RSP + 0x98] MOV qword ptr [RSP + 0x70],RAX MOV RAX,qword ptr [RSP + 0xa0] MOV qword ptr [RSP + 0x78],RAX MOV RAX,qword ptr [RSP + 0x90] MOV EDI,dword ptr [RAX + 0x4] CALL 0x00187c40 MOV EAX,EAX MOV EDX,EAX MOV RDI,qword ptr [RSP + 0x70] MOV RSI,qword ptr [RSP + 0x78] CALL 0x001ac6c0 MOV qword ptr [RSP + 0x80],RAX LAB_001ac580: MOV RAX,qword ptr [RSP + 0x90] CMP byte ptr [RAX + 0x8],0x12 SETZ AL AND AL,0x1 MOV byte ptr [RSP + 0x6f],AL MOV qword ptr [RSP + 0x60],0x0 MOV RAX,qword ptr [RSP + 0x90] CMP dword ptr [RAX],0x0 JZ 0x001ac634 TEST byte ptr [RSP + 0x6f],0x1 JZ 0x001ac604 LEA RDI,[RSP + 0x50] CALL 0x001ac8c0 MOV RAX,qword ptr [RSP + 0x98] MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [RSP + 0xa0] MOV qword ptr [RSP + 0x48],RAX MOV RDI,qword ptr [RSP + 0x50] MOV RSI,qword ptr [RSP + 0x40] MOV RDX,qword ptr [RSP + 0x48] CALL 0x001ac760 MOV qword ptr [RSP + 0x58],RAX LEA RDI,[RSP + 0x58] CALL 0x001ac8e0 MOV qword ptr [RSP + 0x60],RAX JMP 0x001ac632 LAB_001ac604: MOV RSI,qword ptr [RSP + 0x88] MOV RDX,qword ptr [RSP + 0x80] LEA RDI,[RSP + 0x30] CALL 0x00123b30 MOV RDI,qword ptr [RSP + 0x30] MOV RSI,qword ptr [RSP + 0x38] CALL 0x001ac8f0 MOV qword ptr [RSP + 0x60],RAX LAB_001ac632: JMP 0x001ac634 LAB_001ac634: MOV RAX,qword ptr [RSP + 0xa8] MOV qword ptr [RSP + 0x28],RAX MOV RSI,qword ptr [RSP + 0x90] MOV RDX,qword ptr [RSP + 0x80] MOV RCX,qword ptr [RSP + 0x60] MOV AL,byte ptr [RSP + 0x6f] AND AL,0x1 MOV byte ptr [RSP],AL MOV RAX,qword ptr [RSP + 0x98] MOV qword ptr [RSP + 0x8],RAX MOV RAX,qword ptr [RSP + 0xa0] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x88] MOV qword ptr [RSP + 0x18],RAX MOV RAX,qword ptr [RSP + 0x80] MOV qword ptr [RSP + 0x20],RAX MOV RDI,qword ptr [RSP + 0x28] MOV R8,RSP CALL 0x001ac950 MOV qword ptr [RSP + 0xb0],RAX MOV RAX,qword ptr [RSP + 0xb0] ADD RSP,0xb8 RET
/* fmt::v10::appender fmt::v10::detail::write<char, fmt::v10::appender>(fmt::v10::appender, fmt::v10::basic_string_view<char>, fmt::v10::format_specs<char> const&) */ int8 __thiscall fmt::v10::detail::write<char,fmt::v10::appender> (detail *this,int8 param_2,int8 param_3,int *param_4) { uint uVar1; int4 uVar2; int8 uVar3; byte local_b8 [8]; int8 local_b0; int8 local_a8; char *local_a0; ulong local_98; detail *local_90; detail *local_88; int8 local_80; int8 local_78; int8 local_70; detail *local_68; int8 local_60; int8 local_58; byte local_49; int8 local_48; int8 local_40; ulong local_38; char *local_30; int *local_28; int8 local_20; int8 local_18; detail *local_10; local_28 = param_4; local_20 = param_2; local_18 = param_3; local_10 = this; local_30 = (char *)basic_string_view<char>::data((basic_string_view<char> *)&local_20); local_38 = basic_string_view<char>::size((basic_string_view<char> *)&local_20); if ((-1 < local_28[1]) && (uVar1 = to_unsigned<int>(local_28[1]), uVar1 < local_38)) { local_48 = local_20; local_40 = local_18; uVar2 = to_unsigned<int>(local_28[1]); local_38 = code_point_index(local_48,local_40,uVar2); } local_49 = (char)local_28[2] == '\x12'; local_58 = 0; if (*local_28 != 0) { if ((bool)local_49) { counting_iterator::counting_iterator((counting_iterator *)&local_68); local_78 = local_20; local_70 = local_18; local_60 = write_escaped_string<char,fmt::v10::detail::counting_iterator> (local_68,local_20,local_18); local_58 = counting_iterator::count((counting_iterator *)&local_60); } else { basic_string_view<char>::basic_string_view ((basic_string_view<char> *)&local_88,local_30,local_38); local_58 = compute_width(local_88,local_80); } } local_90 = local_10; local_b8[0] = local_49 & 1; local_b0 = local_20; local_a8 = local_18; local_a0 = local_30; local_98 = local_38; uVar3 = write_padded<(fmt::v10::align::type)1,fmt::v10::appender,char,fmt::v10::detail::write<char,fmt::v10::appender>(fmt::v10::appender,fmt::v10::basic_string_view<char>,fmt::v10::format_specs<char>const&)::_lambda(fmt::v10::appender)_1_> (local_10,local_28,local_38,local_58,local_b8); return uVar3; }
6,247
json_schema_to_grammar(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&, bool)
llama.cpp/common/json-schema-to-grammar.cpp
std::string json_schema_to_grammar(const json & schema, bool force_gbnf) { #ifdef LLAMA_USE_LLGUIDANCE if (!force_gbnf) { return "%llguidance {}\nstart: %json " + schema.dump(); } #else (void)force_gbnf; #endif // LLAMA_USE_LLGUIDANCE return build_grammar([&](const common_grammar_builder & callbacks) { auto copy = schema; callbacks.resolve_refs(copy); callbacks.add_schema("", copy); }); }
O3
cpp
json_schema_to_grammar(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&, bool): pushq %rbx subq $0x30, %rsp movq %rdi, %rbx leaq 0x10(%rsp), %rax movq $0x0, 0x8(%rax) movq %rsi, (%rax) leaq 0x25f(%rip), %rcx # 0xfd2de movq %rcx, 0x18(%rax) leaq 0x34e(%rip), %rcx # 0xfd3d8 movq %rcx, 0x10(%rax) leaq 0xf(%rsp), %rdx movb $0x0, (%rdx) movq %rax, %rsi callq 0xfd0ee movq 0x20(%rsp), %rax testq %rax, %rax je 0xfd0b7 leaq 0x10(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq %rbx, %rax addq $0x30, %rsp popq %rbx retq jmp 0xfd0e6 movq %rax, %rbx movq 0x20(%rsp), %rax testq %rax, %rax je 0xfd0de leaq 0x10(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax movq %rbx, %rdi callq 0x20af0 movq %rax, %rdi callq 0x289b9
_Z22json_schema_to_grammarRKN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEb: push rbx sub rsp, 30h mov rbx, rdi lea rax, [rsp+38h+var_28] mov qword ptr [rax+8], 0 mov [rax], rsi lea rcx, _ZNSt17_Function_handlerIFvRK22common_grammar_builderEZ22json_schema_to_grammarRKN8nlohmann16json_abi_v3_11_310basic_jsonINS5_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS5_14adl_serializerES8_IhSaIhEEvEEbE3$_0E9_M_invokeERKSt9_Any_dataS2_; std::_Function_handler<void ()(common_grammar_builder const&),json_schema_to_grammar(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&,bool)::$_0>::_M_invoke(std::_Any_data const&,common_grammar_builder const&) mov [rax+18h], rcx lea rcx, _ZNSt17_Function_handlerIFvRK22common_grammar_builderEZ22json_schema_to_grammarRKN8nlohmann16json_abi_v3_11_310basic_jsonINS5_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS5_14adl_serializerES8_IhSaIhEEvEEbE3$_0E10_M_managerERSt9_Any_dataRKSN_St18_Manager_operation; std::_Function_handler<void ()(common_grammar_builder const&),json_schema_to_grammar(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&,bool)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation) mov [rax+10h], rcx lea rdx, [rsp+38h+var_29] mov byte ptr [rdx], 0 mov rsi, rax call _Z13build_grammarB5cxx11RKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_options; build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&) mov rax, [rsp+38h+var_18] test rax, rax jz short loc_FD0B7 lea rdi, [rsp+38h+var_28] mov rsi, rdi mov edx, 3 call rax loc_FD0B7: mov rax, rbx add rsp, 30h pop rbx retn jmp short loc_FD0E6 mov rbx, rax mov rax, [rsp+38h+var_18] test rax, rax jz short loc_FD0DE lea rdi, [rsp+38h+var_28] mov rsi, rdi mov edx, 3 call rax loc_FD0DE: mov rdi, rbx call __Unwind_Resume loc_FD0E6: mov rdi, rax call __clang_call_terminate
long long json_schema_to_grammar(long long a1, long long a2) { char v3; // [rsp+Fh] [rbp-29h] BYREF _QWORD v4[2]; // [rsp+10h] [rbp-28h] BYREF long long ( *v5)(); // [rsp+20h] [rbp-18h] long long ( *v6)(); // [rsp+28h] [rbp-10h] v4[1] = 0LL; v4[0] = a2; v6 = std::_Function_handler<void ()(common_grammar_builder const&),json_schema_to_grammar(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> const&,bool)::$_0>::_M_invoke; v5 = std::_Function_handler<void ()(common_grammar_builder const&),json_schema_to_grammar(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> const&,bool)::$_0>::_M_manager; v3 = 0; build_grammar[abi:cxx11](a1, v4, &v3); if ( v5 ) ((void ( *)(_QWORD *, _QWORD *, long long))v5)(v4, v4, 3LL); return a1; }
json_schema_to_grammar: PUSH RBX SUB RSP,0x30 MOV RBX,RDI LEA RAX,[RSP + 0x10] MOV qword ptr [RAX + 0x8],0x0 MOV qword ptr [RAX],RSI LEA RCX,[0x1fd2de] MOV qword ptr [RAX + 0x18],RCX LEA RCX,[0x1fd3d8] MOV qword ptr [RAX + 0x10],RCX LEA RDX,[RSP + 0xf] MOV byte ptr [RDX],0x0 LAB_001fd096: MOV RSI,RAX CALL 0x001fd0ee MOV RAX,qword ptr [RSP + 0x20] TEST RAX,RAX JZ 0x001fd0b7 LAB_001fd0a8: LEA RDI,[RSP + 0x10] MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_001fd0b7: MOV RAX,RBX ADD RSP,0x30 POP RBX RET
/* json_schema_to_grammar(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> const&, bool) */ basic_json * json_schema_to_grammar(basic_json *param_1,bool param_2) { int7 in_register_00000031; int8 local_28; int8 local_20; code *local_18; code *local_10; local_28 = CONCAT71(in_register_00000031,param_2); local_20 = 0; local_10 = std:: _Function_handler<void(common_grammar_builder_const&),json_schema_to_grammar(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>const&,bool)::$_0> ::_M_invoke; local_18 = std:: _Function_handler<void(common_grammar_builder_const&),json_schema_to_grammar(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>const&,bool)::$_0> ::_M_manager; /* try { // try from 001fd096 to 001fd09d has its CatchHandler @ 001fd0c2 */ build_grammar_abi_cxx11_(param_1,(common_grammar_options *)&local_28); if (local_18 != (code *)0x0) { /* try { // try from 001fd0a8 to 001fd0b6 has its CatchHandler @ 001fd0c0 */ (*local_18)(&local_28,&local_28,3); } return param_1; }
6,248
my_readlink
eloqsql/mysys/my_symlink.c
int my_readlink(char *to, const char *filename, myf MyFlags) { #ifndef HAVE_READLINK strmov(to,filename); return 1; #else int result=0; int length; DBUG_ENTER("my_readlink"); if ((length=readlink(filename, to, FN_REFLEN-1)) < 0) { /* Don't give an error if this wasn't a symlink */ if ((my_errno=errno) == EINVAL) { result= 1; strmov(to,filename); } else { if (MyFlags & MY_WME) my_error(EE_CANT_READLINK, MYF(0), filename, errno); result= -1; } } else to[length]=0; DBUG_PRINT("exit" ,("result: %d", result)); DBUG_RETURN(result); #endif /* HAVE_READLINK */ }
O0
c
my_readlink: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movl $0x0, -0x1c(%rbp) movq -0x10(%rbp), %rdi movq -0x8(%rbp), %rsi movl $0x1ff, %edx # imm = 0x1FF callq 0x26340 movl %eax, -0x20(%rbp) cmpl $0x0, %eax jge 0x59921 callq 0x26050 movl (%rax), %eax movl %eax, -0x24(%rbp) callq 0x5a430 movq %rax, %rcx movl -0x24(%rbp), %eax movl %eax, (%rcx) cmpl $0x16, %eax jne 0x598e7 movl $0x1, -0x1c(%rbp) movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0x26330 jmp 0x5991f movq -0x18(%rbp), %rax andq $0x10, %rax cmpq $0x0, %rax je 0x59918 movq -0x10(%rbp), %rax movq %rax, -0x30(%rbp) callq 0x26050 movq -0x30(%rbp), %rdx movl (%rax), %ecx movl $0x18, %edi xorl %eax, %eax movl %eax, %esi movb $0x0, %al callq 0x64910 movl $0xffffffff, -0x1c(%rbp) # imm = 0xFFFFFFFF jmp 0x5992d movq -0x8(%rbp), %rax movslq -0x20(%rbp), %rcx movb $0x0, (%rax,%rcx) jmp 0x5992f jmp 0x59931 jmp 0x59933 movl -0x1c(%rbp), %eax movl %eax, -0x34(%rbp) movl -0x34(%rbp), %eax addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_readlink: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_1C], 0 mov rdi, [rbp+var_10] mov rsi, [rbp+var_8] mov edx, 1FFh call _readlink mov [rbp+var_20], eax cmp eax, 0 jge short loc_59921 call ___errno_location mov eax, [rax] mov [rbp+var_24], eax call _my_thread_var mov rcx, rax mov eax, [rbp+var_24] mov [rcx], eax cmp eax, 16h jnz short loc_598E7 mov [rbp+var_1C], 1 mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] call _stpcpy jmp short loc_5991F loc_598E7: mov rax, [rbp+var_18] and rax, 10h cmp rax, 0 jz short loc_59918 mov rax, [rbp+var_10] mov [rbp+var_30], rax call ___errno_location mov rdx, [rbp+var_30] mov ecx, [rax] mov edi, 18h xor eax, eax mov esi, eax mov al, 0 call my_error loc_59918: mov [rbp+var_1C], 0FFFFFFFFh loc_5991F: jmp short loc_5992D loc_59921: mov rax, [rbp+var_8] movsxd rcx, [rbp+var_20] mov byte ptr [rax+rcx], 0 loc_5992D: jmp short $+2 loc_5992F: jmp short $+2 loc_59931: jmp short $+2 loc_59933: mov eax, [rbp+var_1C] mov [rbp+var_34], eax mov eax, [rbp+var_34] add rsp, 40h pop rbp retn
long long my_readlink(long long a1, long long a2, char a3) { _DWORD *v3; // rax int v4; // r8d int v5; // r9d int v7; // [rsp+1Ch] [rbp-24h] int v8; // [rsp+20h] [rbp-20h] unsigned int v9; // [rsp+24h] [rbp-1Ch] v9 = 0; v8 = readlink(a2, a1, 511LL); if ( v8 >= 0 ) { *(_BYTE *)(a1 + v8) = 0; } else { v7 = *(_DWORD *)__errno_location(); *(_DWORD *)my_thread_var() = v7; if ( v7 == 22 ) { v9 = 1; stpcpy(a1, a2); } else { if ( (a3 & 0x10) != 0 ) { v3 = (_DWORD *)__errno_location(); my_error(24, 0, a2, *v3, v4, v5); } return (unsigned int)-1; } } return v9; }
my_readlink: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV dword ptr [RBP + -0x1c],0x0 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x8] MOV EDX,0x1ff CALL 0x00126340 MOV dword ptr [RBP + -0x20],EAX CMP EAX,0x0 JGE 0x00159921 CALL 0x00126050 MOV EAX,dword ptr [RAX] MOV dword ptr [RBP + -0x24],EAX CALL 0x0015a430 MOV RCX,RAX MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RCX],EAX CMP EAX,0x16 JNZ 0x001598e7 MOV dword ptr [RBP + -0x1c],0x1 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] CALL 0x00126330 JMP 0x0015991f LAB_001598e7: MOV RAX,qword ptr [RBP + -0x18] AND RAX,0x10 CMP RAX,0x0 JZ 0x00159918 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x30],RAX CALL 0x00126050 MOV RDX,qword ptr [RBP + -0x30] MOV ECX,dword ptr [RAX] MOV EDI,0x18 XOR EAX,EAX MOV ESI,EAX MOV AL,0x0 CALL 0x00164910 LAB_00159918: MOV dword ptr [RBP + -0x1c],0xffffffff LAB_0015991f: JMP 0x0015992d LAB_00159921: MOV RAX,qword ptr [RBP + -0x8] MOVSXD RCX,dword ptr [RBP + -0x20] MOV byte ptr [RAX + RCX*0x1],0x0 LAB_0015992d: JMP 0x0015992f LAB_0015992f: JMP 0x00159931 LAB_00159931: JMP 0x00159933 LAB_00159933: MOV EAX,dword ptr [RBP + -0x1c] MOV dword ptr [RBP + -0x34],EAX MOV EAX,dword ptr [RBP + -0x34] ADD RSP,0x40 POP RBP RET
int4 my_readlink(char *param_1,char *param_2,ulong param_3) { int iVar1; ssize_t sVar2; int *piVar3; int4 local_24; local_24 = 0; sVar2 = readlink(param_2,param_1,0x1ff); if ((int)sVar2 < 0) { piVar3 = __errno_location(); iVar1 = *piVar3; piVar3 = (int *)_my_thread_var(); *piVar3 = iVar1; if (iVar1 == 0x16) { local_24 = 1; stpcpy(param_1,param_2); } else { if ((param_3 & 0x10) != 0) { piVar3 = __errno_location(); my_error(0x18,0,param_2,*piVar3); } local_24 = 0xffffffff; } } else { param_1[(int)sVar2] = '\0'; } return local_24; }
6,249
mi_write_keypage
eloqsql/storage/myisam/mi_page.c
int _mi_write_keypage(register MI_INFO *info, register MI_KEYDEF *keyinfo, my_off_t page, int level, uchar *buff) { reg3 uint length; DBUG_ENTER("_mi_write_keypage"); #ifndef FAST /* Safety check */ if (page < info->s->base.keystart || page+keyinfo->block_length > info->state->key_file_length || (page & (MI_MIN_KEY_BLOCK_LENGTH-1))) { DBUG_PRINT("error",("Trying to write inside key status region: key_start: %lu length: %lu page: %lu", (long) info->s->base.keystart, (long) info->state->key_file_length, (long) page)); my_errno=EINVAL; DBUG_RETURN((-1)); } DBUG_PRINT("page",("write page at: %lu",(long) page)); DBUG_DUMP("buff",(uchar*) buff,mi_getint(buff)); #endif if ((length=keyinfo->block_length) > IO_SIZE*2 && info->state->key_file_length != page+length) length= ((mi_getint(buff)+IO_SIZE-1) & (uint) ~(IO_SIZE-1)); DBUG_RETURN((key_cache_write(info->s->key_cache, info->s->kfile, &info->s->dirty_part_map, page, level, (uchar*) buff, length, (uint) keyinfo->block_length, (int) ((info->lock_type != F_UNLCK) || info->s->delay_key_write)))); }
O0
c
mi_write_keypage: pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq %r8, -0x30(%rbp) movq -0x20(%rbp), %rax movq -0x10(%rbp), %rcx movq (%rcx), %rcx cmpq 0x108(%rcx), %rax jb 0xbf5af movq -0x20(%rbp), %rax movq -0x18(%rbp), %rcx movzwl 0xe(%rcx), %ecx addq %rcx, %rax movq -0x10(%rbp), %rcx movq 0x8(%rcx), %rcx cmpq 0x20(%rcx), %rax ja 0xbf5af movq -0x20(%rbp), %rax andq $0x3ff, %rax # imm = 0x3FF cmpq $0x0, %rax je 0xbf5ca jmp 0xbf5b1 jmp 0xbf5b3 callq 0xf7440 movl $0x16, (%rax) movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF jmp 0xbf6f2 jmp 0xbf5cc jmp 0xbf5ce jmp 0xbf5d0 jmp 0xbf5d2 movq -0x18(%rbp), %rax movzwl 0xe(%rax), %eax movl %eax, -0x34(%rbp) cmpl $0x2000, %eax # imm = 0x2000 jbe 0xbf631 movq -0x10(%rbp), %rax movq 0x8(%rax), %rax movq 0x20(%rax), %rax movq -0x20(%rbp), %rcx movl -0x34(%rbp), %edx addq %rdx, %rcx cmpq %rcx, %rax je 0xbf631 movq -0x30(%rbp), %rax movzbl 0x1(%rax), %eax movzwl %ax, %eax movq -0x30(%rbp), %rcx movzbl (%rcx), %ecx movzwl %cx, %ecx shll $0x8, %ecx orl %ecx, %eax movzwl %ax, %eax andl $0x7fff, %eax # imm = 0x7FFF addl $0x1000, %eax # imm = 0x1000 subl $0x1, %eax andl $0xfffff000, %eax # imm = 0xFFFFF000 movl %eax, -0x34(%rbp) jmp 0xbf633 movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x278(%rax), %rax movq %rax, -0x70(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movl 0x350(%rax), %eax movl %eax, -0x64(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax addq $0x280, %rax # imm = 0x280 movq %rax, -0x60(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x58(%rbp) movl -0x24(%rbp), %eax movl %eax, -0x4c(%rbp) movq -0x30(%rbp), %rax movq %rax, -0x48(%rbp) movl -0x34(%rbp), %eax movl %eax, -0x40(%rbp) movq -0x18(%rbp), %rax movzwl 0xe(%rax), %eax movl %eax, -0x3c(%rbp) movq -0x10(%rbp), %rcx movb $0x1, %al cmpl $0x2, 0x1f4(%rcx) movb %al, -0x35(%rbp) jne 0xbf6b6 movq -0x10(%rbp), %rax movq (%rax), %rax movsbl 0x383(%rax), %eax cmpl $0x0, %eax setne %al movb %al, -0x35(%rbp) movl -0x3c(%rbp), %r10d movl -0x40(%rbp), %r11d movq -0x48(%rbp), %r9 movl -0x4c(%rbp), %r8d movq -0x58(%rbp), %rcx movq -0x60(%rbp), %rdx movl -0x64(%rbp), %esi movq -0x70(%rbp), %rdi movb -0x35(%rbp), %al andb $0x1, %al movzbl %al, %eax movl %r11d, (%rsp) movl %r10d, 0x8(%rsp) movl %eax, 0x10(%rsp) callq 0xe5fa0 movl %eax, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x90, %rsp popq %rbp retq nop
_mi_write_keypage: push rbp mov rbp, rsp sub rsp, 90h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov [rbp+var_30], r8 mov rax, [rbp+var_20] mov rcx, [rbp+var_10] mov rcx, [rcx] cmp rax, [rcx+108h] jb short loc_BF5AF mov rax, [rbp+var_20] mov rcx, [rbp+var_18] movzx ecx, word ptr [rcx+0Eh] add rax, rcx mov rcx, [rbp+var_10] mov rcx, [rcx+8] cmp rax, [rcx+20h] ja short loc_BF5AF mov rax, [rbp+var_20] and rax, 3FFh cmp rax, 0 jz short loc_BF5CA loc_BF5AF: jmp short $+2 loc_BF5B1: jmp short $+2 loc_BF5B3: call _my_thread_var mov dword ptr [rax], 16h mov [rbp+var_4], 0FFFFFFFFh jmp loc_BF6F2 loc_BF5CA: jmp short $+2 loc_BF5CC: jmp short $+2 loc_BF5CE: jmp short $+2 loc_BF5D0: jmp short $+2 loc_BF5D2: mov rax, [rbp+var_18] movzx eax, word ptr [rax+0Eh] mov [rbp+var_34], eax cmp eax, 2000h jbe short loc_BF631 mov rax, [rbp+var_10] mov rax, [rax+8] mov rax, [rax+20h] mov rcx, [rbp+var_20] mov edx, [rbp+var_34] add rcx, rdx cmp rax, rcx jz short loc_BF631 mov rax, [rbp+var_30] movzx eax, byte ptr [rax+1] movzx eax, ax mov rcx, [rbp+var_30] movzx ecx, byte ptr [rcx] movzx ecx, cx shl ecx, 8 or eax, ecx movzx eax, ax and eax, 7FFFh add eax, 1000h sub eax, 1 and eax, 0FFFFF000h mov [rbp+var_34], eax loc_BF631: jmp short $+2 loc_BF633: mov rax, [rbp+var_10] mov rax, [rax] mov rax, [rax+278h] mov [rbp+var_70], rax mov rax, [rbp+var_10] mov rax, [rax] mov eax, [rax+350h] mov [rbp+var_64], eax mov rax, [rbp+var_10] mov rax, [rax] add rax, 280h mov [rbp+var_60], rax mov rax, [rbp+var_20] mov [rbp+var_58], rax mov eax, [rbp+var_24] mov [rbp+var_4C], eax mov rax, [rbp+var_30] mov [rbp+var_48], rax mov eax, [rbp+var_34] mov [rbp+var_40], eax mov rax, [rbp+var_18] movzx eax, word ptr [rax+0Eh] mov [rbp+var_3C], eax mov rcx, [rbp+var_10] mov al, 1 cmp dword ptr [rcx+1F4h], 2 mov [rbp+var_35], al jnz short loc_BF6B6 mov rax, [rbp+var_10] mov rax, [rax] movsx eax, byte ptr [rax+383h] cmp eax, 0 setnz al mov [rbp+var_35], al loc_BF6B6: mov r10d, [rbp+var_3C] mov r11d, [rbp+var_40] mov r9, [rbp+var_48] mov r8d, [rbp+var_4C] mov rcx, [rbp+var_58] mov rdx, [rbp+var_60] mov esi, [rbp+var_64] mov rdi, [rbp+var_70] mov al, [rbp+var_35] and al, 1 movzx eax, al mov [rsp+90h+var_90], r11d mov [rsp+90h+var_88], r10d mov [rsp+90h+var_80], eax call key_cache_write mov [rbp+var_4], eax loc_BF6F2: mov eax, [rbp+var_4] add rsp, 90h pop rbp retn
long long mi_write_keypage(_QWORD *a1, long long a2, unsigned long long a3, int a4, unsigned __int16 *a5) { bool v6; // [rsp+5Bh] [rbp-35h] unsigned int v7; // [rsp+5Ch] [rbp-34h] if ( a3 < *(_QWORD *)(*a1 + 264LL) || *(unsigned __int16 *)(a2 + 14) + a3 > *(_QWORD *)(a1[1] + 32LL) || (a3 & 0x3FF) != 0 ) { *(_DWORD *)my_thread_var(a1, (const char *)a2) = 22; return (unsigned int)-1; } else { v7 = *(unsigned __int16 *)(a2 + 14); if ( v7 > 0x2000 && *(_QWORD *)(a1[1] + 32LL) != *(unsigned __int16 *)(a2 + 14) + a3 ) v7 = ((_byteswap_ushort(*a5) & 0x7FFF) + 4095) & 0xFFFFF000; v6 = 1; if ( *((_DWORD *)a1 + 125) == 2 ) v6 = *(_BYTE *)(*a1 + 899LL) != 0; return (unsigned int)key_cache_write( *(_QWORD *)(*a1 + 632LL), *(_DWORD *)(*a1 + 848LL), *(_DWORD *)a1 + 640, a3, a4, (_DWORD)a5, v7, *(unsigned __int16 *)(a2 + 14), v6); } }
_mi_write_keypage: PUSH RBP MOV RBP,RSP SUB RSP,0x90 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 qword ptr [RBP + -0x30],R8 MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX] CMP RAX,qword ptr [RCX + 0x108] JC 0x001bf5af MOV RAX,qword ptr [RBP + -0x20] MOV RCX,qword ptr [RBP + -0x18] MOVZX ECX,word ptr [RCX + 0xe] ADD RAX,RCX MOV RCX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RCX + 0x8] CMP RAX,qword ptr [RCX + 0x20] JA 0x001bf5af MOV RAX,qword ptr [RBP + -0x20] AND RAX,0x3ff CMP RAX,0x0 JZ 0x001bf5ca LAB_001bf5af: JMP 0x001bf5b1 LAB_001bf5b1: JMP 0x001bf5b3 LAB_001bf5b3: CALL 0x001f7440 MOV dword ptr [RAX],0x16 MOV dword ptr [RBP + -0x4],0xffffffff JMP 0x001bf6f2 LAB_001bf5ca: JMP 0x001bf5cc LAB_001bf5cc: JMP 0x001bf5ce LAB_001bf5ce: JMP 0x001bf5d0 LAB_001bf5d0: JMP 0x001bf5d2 LAB_001bf5d2: MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,word ptr [RAX + 0xe] MOV dword ptr [RBP + -0x34],EAX CMP EAX,0x2000 JBE 0x001bf631 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RBP + -0x20] MOV EDX,dword ptr [RBP + -0x34] ADD RCX,RDX CMP RAX,RCX JZ 0x001bf631 MOV RAX,qword ptr [RBP + -0x30] MOVZX EAX,byte ptr [RAX + 0x1] MOVZX EAX,AX MOV RCX,qword ptr [RBP + -0x30] MOVZX ECX,byte ptr [RCX] MOVZX ECX,CX SHL ECX,0x8 OR EAX,ECX MOVZX EAX,AX AND EAX,0x7fff ADD EAX,0x1000 SUB EAX,0x1 AND EAX,0xfffff000 MOV dword ptr [RBP + -0x34],EAX LAB_001bf631: JMP 0x001bf633 LAB_001bf633: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0x278] MOV qword ptr [RBP + -0x70],RAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV EAX,dword ptr [RAX + 0x350] MOV dword ptr [RBP + -0x64],EAX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] ADD RAX,0x280 MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x58],RAX MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x4c],EAX MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x48],RAX MOV EAX,dword ptr [RBP + -0x34] MOV dword ptr [RBP + -0x40],EAX MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,word ptr [RAX + 0xe] MOV dword ptr [RBP + -0x3c],EAX MOV RCX,qword ptr [RBP + -0x10] MOV AL,0x1 CMP dword ptr [RCX + 0x1f4],0x2 MOV byte ptr [RBP + -0x35],AL JNZ 0x001bf6b6 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOVSX EAX,byte ptr [RAX + 0x383] CMP EAX,0x0 SETNZ AL MOV byte ptr [RBP + -0x35],AL LAB_001bf6b6: MOV R10D,dword ptr [RBP + -0x3c] MOV R11D,dword ptr [RBP + -0x40] MOV R9,qword ptr [RBP + -0x48] MOV R8D,dword ptr [RBP + -0x4c] MOV RCX,qword ptr [RBP + -0x58] MOV RDX,qword ptr [RBP + -0x60] MOV ESI,dword ptr [RBP + -0x64] MOV RDI,qword ptr [RBP + -0x70] MOV AL,byte ptr [RBP + -0x35] AND AL,0x1 MOVZX EAX,AL MOV dword ptr [RSP],R11D MOV dword ptr [RSP + 0x8],R10D MOV dword ptr [RSP + 0x10],EAX CALL 0x001e5fa0 MOV dword ptr [RBP + -0x4],EAX LAB_001bf6f2: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x90 POP RBP RET
int4 _mi_write_keypage(long *param_1,long param_2,ulong param_3,int4 param_4,byte *param_5) { int4 *puVar1; bool local_3d; uint local_3c; int4 local_c; if (((param_3 < *(ulong *)(*param_1 + 0x108)) || (*(ulong *)(param_1[1] + 0x20) < param_3 + *(ushort *)(param_2 + 0xe))) || ((param_3 & 0x3ff) != 0)) { puVar1 = (int4 *)_my_thread_var(); *puVar1 = 0x16; local_c = 0xffffffff; } else { local_3c = (uint)*(ushort *)(param_2 + 0xe); if ((0x2000 < local_3c) && (*(long *)(param_1[1] + 0x20) != param_3 + local_3c)) { local_3c = ((uint)param_5[1] | (*param_5 & 0x7f) << 8) + 0xfff & 0xfffff000; } local_3d = true; if (*(int *)((long)param_1 + 500) == 2) { local_3d = *(char *)(*param_1 + 899) != '\0'; } local_c = key_cache_write(*(int8 *)(*param_1 + 0x278),*(int4 *)(*param_1 + 0x350), *param_1 + 0x280,param_3,param_4,param_5,local_3c, *(int2 *)(param_2 + 0xe),local_3d); } return local_c; }
6,250
test_ast_create_if
tsotchke[P]eshkol/tests/unit/test_ast.c
static void test_ast_create_if(void) { printf("Testing if node creation...\n"); // Create an arena Arena* arena = arena_create(1024); assert(arena != NULL); // Create a condition node AstNode* condition = ast_create_boolean(arena, true, 1, 4); assert(condition != NULL); // Create a then node AstNode* then_branch = ast_create_number(arena, 1.0, 1, 9); assert(then_branch != NULL); // Create an else node AstNode* else_branch = ast_create_number(arena, 2.0, 1, 11); assert(else_branch != NULL); // Create an if node AstNode* node = ast_create_if(arena, condition, then_branch, else_branch, 1, 1); assert(node != NULL); assert(node->type == AST_IF); assert(node->line == 1); assert(node->column == 1); assert(node->as.if_expr.condition == condition); assert(node->as.if_expr.then_branch == then_branch); assert(node->as.if_expr.else_branch == else_branch); // Destroy the arena arena_destroy(arena); printf("PASS: ast_create_if\n"); }
O0
c
test_ast_create_if: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp leaq 0x72c8(%rip), %rdi # 0x98f7 movb $0x0, %al callq 0x1070 movl $0x400, %edi # imm = 0x400 callq 0x43a0 movq %rax, -0x8(%rbp) cmpq $0x0, -0x8(%rbp) je 0x264d jmp 0x266c leaq 0x6a1f(%rip), %rdi # 0x9073 leaq 0x6a26(%rip), %rsi # 0x9081 movl $0x152, %edx # imm = 0x152 leaq 0x72ad(%rip), %rcx # 0x9914 callq 0x1080 movq -0x8(%rbp), %rdi movl $0x1, %esi movl $0x1, %edx movl $0x4, %ecx callq 0x5520 movq %rax, -0x10(%rbp) cmpq $0x0, -0x10(%rbp) je 0x2691 jmp 0x26b0 leaq 0x729a(%rip), %rdi # 0x9932 leaq 0x69e2(%rip), %rsi # 0x9081 movl $0x156, %edx # imm = 0x156 leaq 0x7269(%rip), %rcx # 0x9914 callq 0x1080 movq -0x8(%rbp), %rdi movsd 0x6964(%rip), %xmm0 # 0x9020 movl $0x1, %esi movl $0x9, %edx callq 0x54b0 movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) je 0x26d8 jmp 0x26f7 leaq 0x7265(%rip), %rdi # 0x9944 leaq 0x699b(%rip), %rsi # 0x9081 movl $0x15a, %edx # imm = 0x15A leaq 0x7222(%rip), %rcx # 0x9914 callq 0x1080 movq -0x8(%rbp), %rdi movsd 0x6915(%rip), %xmm0 # 0x9018 movl $0x1, %esi movl $0xb, %edx callq 0x54b0 movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) je 0x271f jmp 0x273e leaq 0x7232(%rip), %rdi # 0x9958 leaq 0x6954(%rip), %rsi # 0x9081 movl $0x15e, %edx # imm = 0x15E leaq 0x71db(%rip), %rcx # 0x9914 callq 0x1080 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx movq -0x20(%rbp), %rcx movl $0x1, %r9d movq %r9, %r8 callq 0x58b0 movq %rax, -0x28(%rbp) cmpq $0x0, -0x28(%rbp) je 0x2769 jmp 0x2788 leaq 0x6981(%rip), %rdi # 0x90f1 leaq 0x690a(%rip), %rsi # 0x9081 movl $0x162, %edx # imm = 0x162 leaq 0x7191(%rip), %rcx # 0x9914 callq 0x1080 movq -0x28(%rbp), %rax cmpl $0x9, (%rax) jne 0x2793 jmp 0x27b2 leaq 0x71d2(%rip), %rdi # 0x996c leaq 0x68e0(%rip), %rsi # 0x9081 movl $0x163, %edx # imm = 0x163 leaq 0x7167(%rip), %rcx # 0x9914 callq 0x1080 movq -0x28(%rbp), %rax cmpq $0x1, 0x8(%rax) jne 0x27bf jmp 0x27de leaq 0x6959(%rip), %rdi # 0x911f leaq 0x68b4(%rip), %rsi # 0x9081 movl $0x164, %edx # imm = 0x164 leaq 0x713b(%rip), %rcx # 0x9914 callq 0x1080 movq -0x28(%rbp), %rax cmpq $0x1, 0x10(%rax) jne 0x27eb jmp 0x280a leaq 0x693d(%rip), %rdi # 0x912f leaq 0x6888(%rip), %rsi # 0x9081 movl $0x165, %edx # imm = 0x165 leaq 0x710f(%rip), %rcx # 0x9914 callq 0x1080 movq -0x28(%rbp), %rax movq 0x48(%rax), %rax cmpq -0x10(%rbp), %rax jne 0x281a jmp 0x2839 leaq 0x7160(%rip), %rdi # 0x9981 leaq 0x6859(%rip), %rsi # 0x9081 movl $0x166, %edx # imm = 0x166 leaq 0x70e0(%rip), %rcx # 0x9914 callq 0x1080 movq -0x28(%rbp), %rax movq 0x50(%rax), %rax cmpq -0x18(%rbp), %rax jne 0x2849 jmp 0x2868 leaq 0x7159(%rip), %rdi # 0x99a9 leaq 0x682a(%rip), %rsi # 0x9081 movl $0x167, %edx # imm = 0x167 leaq 0x70b1(%rip), %rcx # 0x9914 callq 0x1080 movq -0x28(%rbp), %rax movq 0x58(%rax), %rax cmpq -0x20(%rbp), %rax jne 0x2878 jmp 0x2897 leaq 0x7156(%rip), %rdi # 0x99d5 leaq 0x67fb(%rip), %rsi # 0x9081 movl $0x168, %edx # imm = 0x168 leaq 0x7082(%rip), %rcx # 0x9914 callq 0x1080 movq -0x8(%rbp), %rdi callq 0x4980 leaq 0x715a(%rip), %rdi # 0x9a01 movb $0x0, %al callq 0x1070 addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
test_ast_create_if: push rbp mov rbp, rsp sub rsp, 30h lea rdi, aTestingIfNodeC; "Testing if node creation...\n" mov al, 0 call _printf mov edi, 400h call arena_create mov [rbp+var_8], rax cmp [rbp+var_8], 0 jz short loc_264D jmp short loc_266C loc_264D: lea rdi, aArenaNull; "arena != NULL" lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov edx, 152h lea rcx, aVoidTestAstCre_9; "void test_ast_create_if(void)" call ___assert_fail loc_266C: mov rdi, [rbp+var_8] mov esi, 1 mov edx, 1 mov ecx, 4 call ast_create_boolean mov [rbp+var_10], rax cmp [rbp+var_10], 0 jz short loc_2691 jmp short loc_26B0 loc_2691: lea rdi, aConditionNull; "condition != NULL" lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov edx, 156h lea rcx, aVoidTestAstCre_9; "void test_ast_create_if(void)" call ___assert_fail loc_26B0: mov rdi, [rbp+var_8] movsd xmm0, cs:qword_9020 mov esi, 1 mov edx, 9 call ast_create_number mov [rbp+var_18], rax cmp [rbp+var_18], 0 jz short loc_26D8 jmp short loc_26F7 loc_26D8: lea rdi, aThenBranchNull; "then_branch != NULL" lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov edx, 15Ah lea rcx, aVoidTestAstCre_9; "void test_ast_create_if(void)" call ___assert_fail loc_26F7: mov rdi, [rbp+var_8] movsd xmm0, cs:qword_9018 mov esi, 1 mov edx, 0Bh call ast_create_number mov [rbp+var_20], rax cmp [rbp+var_20], 0 jz short loc_271F jmp short loc_273E loc_271F: lea rdi, aElseBranchNull; "else_branch != NULL" lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov edx, 15Eh lea rcx, aVoidTestAstCre_9; "void test_ast_create_if(void)" call ___assert_fail loc_273E: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] mov rcx, [rbp+var_20] mov r9d, 1 mov r8, r9 call ast_create_if mov [rbp+var_28], rax cmp [rbp+var_28], 0 jz short loc_2769 jmp short loc_2788 loc_2769: lea rdi, aNodeNull; "node != NULL" lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov edx, 162h lea rcx, aVoidTestAstCre_9; "void test_ast_create_if(void)" call ___assert_fail loc_2788: mov rax, [rbp+var_28] cmp dword ptr [rax], 9 jnz short loc_2793 jmp short loc_27B2 loc_2793: lea rdi, aNodeTypeAstIf; "node->type == AST_IF" lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov edx, 163h lea rcx, aVoidTestAstCre_9; "void test_ast_create_if(void)" call ___assert_fail loc_27B2: mov rax, [rbp+var_28] cmp qword ptr [rax+8], 1 jnz short loc_27BF jmp short loc_27DE loc_27BF: lea rdi, aNodeLine1; "node->line == 1" lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov edx, 164h lea rcx, aVoidTestAstCre_9; "void test_ast_create_if(void)" call ___assert_fail loc_27DE: mov rax, [rbp+var_28] cmp qword ptr [rax+10h], 1 jnz short loc_27EB jmp short loc_280A loc_27EB: lea rdi, aNodeColumn1; "node->column == 1" lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov edx, 165h lea rcx, aVoidTestAstCre_9; "void test_ast_create_if(void)" call ___assert_fail loc_280A: mov rax, [rbp+var_28] mov rax, [rax+48h] cmp rax, [rbp+var_10] jnz short loc_281A jmp short loc_2839 loc_281A: lea rdi, aNodeAsIfExprCo; "node->as.if_expr.condition == condition" lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov edx, 166h lea rcx, aVoidTestAstCre_9; "void test_ast_create_if(void)" call ___assert_fail loc_2839: mov rax, [rbp+var_28] mov rax, [rax+50h] cmp rax, [rbp+var_18] jnz short loc_2849 jmp short loc_2868 loc_2849: lea rdi, aNodeAsIfExprTh; "node->as.if_expr.then_branch == then_br"... lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov edx, 167h lea rcx, aVoidTestAstCre_9; "void test_ast_create_if(void)" call ___assert_fail loc_2868: mov rax, [rbp+var_28] mov rax, [rax+58h] cmp rax, [rbp+var_20] jnz short loc_2878 jmp short loc_2897 loc_2878: lea rdi, aNodeAsIfExprEl; "node->as.if_expr.else_branch == else_br"... lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"... mov edx, 168h lea rcx, aVoidTestAstCre_9; "void test_ast_create_if(void)" call ___assert_fail loc_2897: mov rdi, [rbp+var_8] call arena_destroy lea rdi, aPassAstCreateI_0; "PASS: ast_create_if\n" mov al, 0 call _printf add rsp, 30h pop rbp retn
long long test_ast_create_if(long long a1, long long a2, long long a3) { long long v3; // rdx long long v5; // [rsp+8h] [rbp-28h] long long v6; // [rsp+10h] [rbp-20h] long long number; // [rsp+18h] [rbp-18h] long long boolean; // [rsp+20h] [rbp-10h] long long v9; // [rsp+28h] [rbp-8h] printf("Testing if node creation...\n", a2, a3); v9 = arena_create(1024LL); if ( !v9 ) __assert_fail( "arena != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_ast.c", 338LL, "void test_ast_create_if(void)"); boolean = ast_create_boolean(v9, 1LL, 1LL); if ( !boolean ) __assert_fail( "condition != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_ast.c", 342LL, "void test_ast_create_if(void)"); number = ast_create_number(v9, 1LL, 1.0); if ( !number ) __assert_fail( "then_branch != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_ast.c", 346LL, "void test_ast_create_if(void)"); v6 = ast_create_number(v9, 1LL, 2.0); if ( !v6 ) __assert_fail( "else_branch != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_ast.c", 350LL, "void test_ast_create_if(void)"); v5 = ast_create_if(v9, boolean, number, v6, 1LL); if ( !v5 ) __assert_fail( "node != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_ast.c", 354LL, "void test_ast_create_if(void)"); if ( *(_DWORD *)v5 != 9 ) __assert_fail( "node->type == AST_IF", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_ast.c", 355LL, "void test_ast_create_if(void)"); if ( *(_QWORD *)(v5 + 8) != 1LL ) __assert_fail( "node->line == 1", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_ast.c", 356LL, "void test_ast_create_if(void)"); if ( *(_QWORD *)(v5 + 16) != 1LL ) __assert_fail( "node->column == 1", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_ast.c", 357LL, "void test_ast_create_if(void)"); if ( *(_QWORD *)(v5 + 72) != boolean ) __assert_fail( "node->as.if_expr.condition == condition", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_ast.c", 358LL, "void test_ast_create_if(void)"); if ( *(_QWORD *)(v5 + 80) != number ) __assert_fail( "node->as.if_expr.then_branch == then_branch", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_ast.c", 359LL, "void test_ast_create_if(void)"); if ( *(_QWORD *)(v5 + 88) != v6 ) __assert_fail( "node->as.if_expr.else_branch == else_branch", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_ast.c", 360LL, "void test_ast_create_if(void)"); arena_destroy(v9); return printf("PASS: ast_create_if\n", boolean, v3); }
test_ast_create_if: PUSH RBP MOV RBP,RSP SUB RSP,0x30 LEA RDI,[0x1098f7] MOV AL,0x0 CALL 0x00101070 MOV EDI,0x400 CALL 0x001043a0 MOV qword ptr [RBP + -0x8],RAX CMP qword ptr [RBP + -0x8],0x0 JZ 0x0010264d JMP 0x0010266c LAB_0010264d: LEA RDI,[0x109073] LEA RSI,[0x109081] MOV EDX,0x152 LEA RCX,[0x109914] CALL 0x00101080 LAB_0010266c: MOV RDI,qword ptr [RBP + -0x8] MOV ESI,0x1 MOV EDX,0x1 MOV ECX,0x4 CALL 0x00105520 MOV qword ptr [RBP + -0x10],RAX CMP qword ptr [RBP + -0x10],0x0 JZ 0x00102691 JMP 0x001026b0 LAB_00102691: LEA RDI,[0x109932] LEA RSI,[0x109081] MOV EDX,0x156 LEA RCX,[0x109914] CALL 0x00101080 LAB_001026b0: MOV RDI,qword ptr [RBP + -0x8] MOVSD XMM0,qword ptr [0x00109020] MOV ESI,0x1 MOV EDX,0x9 CALL 0x001054b0 MOV qword ptr [RBP + -0x18],RAX CMP qword ptr [RBP + -0x18],0x0 JZ 0x001026d8 JMP 0x001026f7 LAB_001026d8: LEA RDI,[0x109944] LEA RSI,[0x109081] MOV EDX,0x15a LEA RCX,[0x109914] CALL 0x00101080 LAB_001026f7: MOV RDI,qword ptr [RBP + -0x8] MOVSD XMM0,qword ptr [0x00109018] MOV ESI,0x1 MOV EDX,0xb CALL 0x001054b0 MOV qword ptr [RBP + -0x20],RAX CMP qword ptr [RBP + -0x20],0x0 JZ 0x0010271f JMP 0x0010273e LAB_0010271f: LEA RDI,[0x109958] LEA RSI,[0x109081] MOV EDX,0x15e LEA RCX,[0x109914] CALL 0x00101080 LAB_0010273e: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x20] MOV R9D,0x1 MOV R8,R9 CALL 0x001058b0 MOV qword ptr [RBP + -0x28],RAX CMP qword ptr [RBP + -0x28],0x0 JZ 0x00102769 JMP 0x00102788 LAB_00102769: LEA RDI,[0x1090f1] LEA RSI,[0x109081] MOV EDX,0x162 LEA RCX,[0x109914] CALL 0x00101080 LAB_00102788: MOV RAX,qword ptr [RBP + -0x28] CMP dword ptr [RAX],0x9 JNZ 0x00102793 JMP 0x001027b2 LAB_00102793: LEA RDI,[0x10996c] LEA RSI,[0x109081] MOV EDX,0x163 LEA RCX,[0x109914] CALL 0x00101080 LAB_001027b2: MOV RAX,qword ptr [RBP + -0x28] CMP qword ptr [RAX + 0x8],0x1 JNZ 0x001027bf JMP 0x001027de LAB_001027bf: LEA RDI,[0x10911f] LEA RSI,[0x109081] MOV EDX,0x164 LEA RCX,[0x109914] CALL 0x00101080 LAB_001027de: MOV RAX,qword ptr [RBP + -0x28] CMP qword ptr [RAX + 0x10],0x1 JNZ 0x001027eb JMP 0x0010280a LAB_001027eb: LEA RDI,[0x10912f] LEA RSI,[0x109081] MOV EDX,0x165 LEA RCX,[0x109914] CALL 0x00101080 LAB_0010280a: MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x48] CMP RAX,qword ptr [RBP + -0x10] JNZ 0x0010281a JMP 0x00102839 LAB_0010281a: LEA RDI,[0x109981] LEA RSI,[0x109081] MOV EDX,0x166 LEA RCX,[0x109914] CALL 0x00101080 LAB_00102839: MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x50] CMP RAX,qword ptr [RBP + -0x18] JNZ 0x00102849 JMP 0x00102868 LAB_00102849: LEA RDI,[0x1099a9] LEA RSI,[0x109081] MOV EDX,0x167 LEA RCX,[0x109914] CALL 0x00101080 LAB_00102868: MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x58] CMP RAX,qword ptr [RBP + -0x20] JNZ 0x00102878 JMP 0x00102897 LAB_00102878: LEA RDI,[0x1099d5] LEA RSI,[0x109081] MOV EDX,0x168 LEA RCX,[0x109914] CALL 0x00101080 LAB_00102897: MOV RDI,qword ptr [RBP + -0x8] CALL 0x00104980 LEA RDI,[0x109a01] MOV AL,0x0 CALL 0x00101070 ADD RSP,0x30 POP RBP RET
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */ void test_ast_create_if(void) { long lVar1; long lVar2; long lVar3; long lVar4; int *piVar5; printf("Testing if node creation...\n"); lVar1 = arena_create(0x400); if (lVar1 == 0) { /* WARNING: Subroutine does not return */ __assert_fail("arena != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_ast.c", 0x152,"void test_ast_create_if(void)"); } lVar2 = ast_create_boolean(lVar1,1,1,4); if (lVar2 == 0) { /* WARNING: Subroutine does not return */ __assert_fail("condition != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_ast.c", 0x156,"void test_ast_create_if(void)"); } lVar3 = ast_create_number(_DAT_00109020,lVar1,1,9); if (lVar3 == 0) { /* WARNING: Subroutine does not return */ __assert_fail("then_branch != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_ast.c", 0x15a,"void test_ast_create_if(void)"); } lVar4 = ast_create_number(DAT_00109018,lVar1,1,0xb); if (lVar4 == 0) { /* WARNING: Subroutine does not return */ __assert_fail("else_branch != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_ast.c", 0x15e,"void test_ast_create_if(void)"); } piVar5 = (int *)ast_create_if(lVar1,lVar2,lVar3,lVar4,1); if (piVar5 == (int *)0x0) { /* WARNING: Subroutine does not return */ __assert_fail("node != NULL", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_ast.c", 0x162,"void test_ast_create_if(void)"); } if (*piVar5 != 9) { /* WARNING: Subroutine does not return */ __assert_fail("node->type == AST_IF", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_ast.c", 0x163,"void test_ast_create_if(void)"); } if (*(long *)(piVar5 + 2) != 1) { /* WARNING: Subroutine does not return */ __assert_fail("node->line == 1", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_ast.c", 0x164,"void test_ast_create_if(void)"); } if (*(long *)(piVar5 + 4) == 1) { if (*(long *)(piVar5 + 0x12) != lVar2) { /* WARNING: Subroutine does not return */ __assert_fail("node->as.if_expr.condition == condition", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_ast.c" ,0x166,"void test_ast_create_if(void)"); } if (*(long *)(piVar5 + 0x14) == lVar3) { if (*(long *)(piVar5 + 0x16) == lVar4) { arena_destroy(lVar1); printf("PASS: ast_create_if\n"); return; } /* WARNING: Subroutine does not return */ __assert_fail("node->as.if_expr.else_branch == else_branch", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_ast.c" ,0x168,"void test_ast_create_if(void)"); } /* WARNING: Subroutine does not return */ __assert_fail("node->as.if_expr.then_branch == then_branch", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_ast.c", 0x167,"void test_ast_create_if(void)"); } /* WARNING: Subroutine does not return */ __assert_fail("node->column == 1", "/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/tests/unit/test_ast.c", 0x165,"void test_ast_create_if(void)"); }
6,251
madb_get_os_character_set
eloqsql/libmariadb/libmariadb/ma_charset.c
const char *madb_get_os_character_set() { unsigned int i= 0; char *p= NULL; #ifdef _WIN32 char codepage[FN_REFLEN]; snprintf(codepage, FN_REFLEN, "%u", GetConsoleCP() ? GetConsoleCP() : GetACP()); p= codepage; #elif defined(HAVE_NL_LANGINFO) && defined(HAVE_SETLOCALE) if (setlocale(LC_CTYPE, "")) p= nl_langinfo(CODESET); #endif if (!p) return MADB_DEFAULT_CHARSET_NAME; while (MADB_OS_CHARSET[i].identifier) { if (MADB_OS_CHARSET[i].supported > MADB_CS_UNSUPPORTED && strcasecmp(MADB_OS_CHARSET[i].identifier, p) == 0) return MADB_OS_CHARSET[i].charset; i++; } return MADB_DEFAULT_CHARSET_NAME; }
O0
c
madb_get_os_character_set: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x0, -0xc(%rbp) movq $0x0, -0x18(%rbp) xorl %edi, %edi leaq 0x7b60(%rip), %rsi # 0x66370 callq 0x143b0 cmpq $0x0, %rax je 0x5e829 movl $0xe, %edi callq 0x14420 movq %rax, -0x18(%rbp) cmpq $0x0, -0x18(%rbp) jne 0x5e840 leaq 0x9968(%rip), %rax # 0x6819f movq %rax, -0x8(%rbp) jmp 0x5e8d1 jmp 0x5e842 movl -0xc(%rbp), %eax movl %eax, %ecx leaq 0x21842(%rip), %rax # 0x80090 imulq $0x28, %rcx, %rcx addq %rcx, %rax cmpq $0x0, (%rax) je 0x5e8c6 movl -0xc(%rbp), %eax movl %eax, %ecx leaq 0x21829(%rip), %rax # 0x80090 imulq $0x28, %rcx, %rcx addq %rcx, %rax movzbl 0x20(%rax), %eax cmpl $0x0, %eax jle 0x5e8b8 movl -0xc(%rbp), %eax movl %eax, %ecx leaq 0x2180d(%rip), %rax # 0x80090 imulq $0x28, %rcx, %rcx addq %rcx, %rax movq (%rax), %rdi movq -0x18(%rbp), %rsi callq 0x14490 cmpl $0x0, %eax jne 0x5e8b8 movl -0xc(%rbp), %eax movl %eax, %ecx leaq 0x217e9(%rip), %rax # 0x80090 imulq $0x28, %rcx, %rcx addq %rcx, %rax movq 0x10(%rax), %rax movq %rax, -0x8(%rbp) jmp 0x5e8d1 movl -0xc(%rbp), %eax addl $0x1, %eax movl %eax, -0xc(%rbp) jmp 0x5e842 leaq 0x98d2(%rip), %rax # 0x6819f movq %rax, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
madb_get_os_character_set: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_C], 0 mov [rbp+var_18], 0 xor edi, edi lea rsi, a12+4; "" call _setlocale cmp rax, 0 jz short loc_5E829 mov edi, 0Eh call _nl_langinfo mov [rbp+var_18], rax loc_5E829: cmp [rbp+var_18], 0 jnz short loc_5E840 lea rax, aSetNamesLatin1+0Ah; "latin1" mov [rbp+var_8], rax jmp loc_5E8D1 loc_5E840: jmp short $+2 loc_5E842: mov eax, [rbp+var_C] mov ecx, eax lea rax, MADB_OS_CHARSET imul rcx, 28h ; '(' add rax, rcx cmp qword ptr [rax], 0 jz short loc_5E8C6 mov eax, [rbp+var_C] mov ecx, eax lea rax, MADB_OS_CHARSET imul rcx, 28h ; '(' add rax, rcx movzx eax, byte ptr [rax+20h] cmp eax, 0 jle short loc_5E8B8 mov eax, [rbp+var_C] mov ecx, eax lea rax, MADB_OS_CHARSET imul rcx, 28h ; '(' add rax, rcx mov rdi, [rax] mov rsi, [rbp+var_18] call _strcasecmp cmp eax, 0 jnz short loc_5E8B8 mov eax, [rbp+var_C] mov ecx, eax lea rax, MADB_OS_CHARSET imul rcx, 28h ; '(' add rax, rcx mov rax, [rax+10h] mov [rbp+var_8], rax jmp short loc_5E8D1 loc_5E8B8: mov eax, [rbp+var_C] add eax, 1 mov [rbp+var_C], eax jmp loc_5E842 loc_5E8C6: lea rax, aSetNamesLatin1+0Ah; "latin1" mov [rbp+var_8], rax loc_5E8D1: mov rax, [rbp+var_8] add rsp, 20h pop rbp retn
char *madb_get_os_character_set() { long long v1; // [rsp+8h] [rbp-18h] unsigned int v2; // [rsp+14h] [rbp-Ch] v2 = 0; v1 = 0LL; if ( setlocale(0LL, "") ) v1 = nl_langinfo(14LL); if ( !v1 ) return "latin1"; while ( *(&MADB_OS_CHARSET + 5 * v2) ) { if ( *((_BYTE *)&MADB_OS_CHARSET + 40 * v2 + 32) && !(unsigned int)strcasecmp(*(&MADB_OS_CHARSET + 5 * v2), v1) ) return (char *)*(&MADB_OS_CHARSET + 5 * v2 + 2); ++v2; } return "latin1"; }
madb_get_os_character_set: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV dword ptr [RBP + -0xc],0x0 MOV qword ptr [RBP + -0x18],0x0 XOR EDI,EDI LEA RSI,[0x166370] CALL 0x001143b0 CMP RAX,0x0 JZ 0x0015e829 MOV EDI,0xe CALL 0x00114420 MOV qword ptr [RBP + -0x18],RAX LAB_0015e829: CMP qword ptr [RBP + -0x18],0x0 JNZ 0x0015e840 LEA RAX,[0x16819f] MOV qword ptr [RBP + -0x8],RAX JMP 0x0015e8d1 LAB_0015e840: JMP 0x0015e842 LAB_0015e842: MOV EAX,dword ptr [RBP + -0xc] MOV ECX,EAX LEA RAX,[0x180090] IMUL RCX,RCX,0x28 ADD RAX,RCX CMP qword ptr [RAX],0x0 JZ 0x0015e8c6 MOV EAX,dword ptr [RBP + -0xc] MOV ECX,EAX LEA RAX,[0x180090] IMUL RCX,RCX,0x28 ADD RAX,RCX MOVZX EAX,byte ptr [RAX + 0x20] CMP EAX,0x0 JLE 0x0015e8b8 MOV EAX,dword ptr [RBP + -0xc] MOV ECX,EAX LEA RAX,[0x180090] IMUL RCX,RCX,0x28 ADD RAX,RCX MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RBP + -0x18] CALL 0x00114490 CMP EAX,0x0 JNZ 0x0015e8b8 MOV EAX,dword ptr [RBP + -0xc] MOV ECX,EAX LEA RAX,[0x180090] IMUL RCX,RCX,0x28 ADD RAX,RCX MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x8],RAX JMP 0x0015e8d1 LAB_0015e8b8: MOV EAX,dword ptr [RBP + -0xc] ADD EAX,0x1 MOV dword ptr [RBP + -0xc],EAX JMP 0x0015e842 LAB_0015e8c6: LEA RAX,[0x16819f] MOV qword ptr [RBP + -0x8],RAX LAB_0015e8d1: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x20 POP RBP RET
char * madb_get_os_character_set(void) { int iVar1; char *pcVar2; char *local_20; uint local_14; char *local_10; local_14 = 0; local_20 = (char *)0x0; pcVar2 = setlocale(0,""); if (pcVar2 != (char *)0x0) { local_20 = nl_langinfo(0xe); } if (local_20 != (char *)0x0) { while (*(long *)(MADB_OS_CHARSET + (ulong)local_14 * 0x28) != 0) { if ((MADB_OS_CHARSET[(ulong)local_14 * 0x28 + 0x20] != '\0') && (iVar1 = strcasecmp(*(char **)(MADB_OS_CHARSET + (ulong)local_14 * 0x28),local_20), iVar1 == 0)) { return *(char **)(MADB_OS_CHARSET + (ulong)local_14 * 0x28 + 0x10); } local_14 = local_14 + 1; } } local_10 = "latin1"; return local_10; }
6,252
ma_rec_pack
eloqsql/storage/maria/ma_dynrec.c
uint _ma_rec_pack(MARIA_HA *info, register uchar *to, register const uchar *from) { uint length,new_length,flag,bit,i; const uchar *pos,*end; uchar *startpos,*packpos; enum en_fieldtype type; reg3 MARIA_COLUMNDEF *column; MARIA_BLOB *blob; DBUG_ENTER("_ma_rec_pack"); flag= 0; bit= 1; startpos= packpos=to; to+= info->s->base.pack_bytes; blob= info->blobs; column= info->s->columndef; if (info->s->base.null_bytes) { memcpy(to, from, info->s->base.null_bytes); from+= info->s->base.null_bytes; to+= info->s->base.null_bytes; } for (i=info->s->base.fields ; i-- > 0; from+= length, column++) { length=(uint) column->length; if ((type = (enum en_fieldtype) column->type) != FIELD_NORMAL) { if (type == FIELD_BLOB) { if (!blob->length) flag|=bit; else { char *temp_pos; size_t tmp_length=length-portable_sizeof_char_ptr; memcpy(to,from,tmp_length); memcpy(&temp_pos,from+tmp_length,sizeof(char*)); memcpy(to+tmp_length,temp_pos,(size_t) blob->length); to+=tmp_length+blob->length; } blob++; } else if (type == FIELD_SKIP_ZERO) { if (memcmp(from, maria_zero_string, length) == 0) flag|=bit; else { memcpy(to, from, (size_t) length); to+=length; } } else if (type == FIELD_SKIP_ENDSPACE || type == FIELD_SKIP_PRESPACE) { pos= from; end= from + length; if (type == FIELD_SKIP_ENDSPACE) { /* Pack trailing spaces */ while (end > from && *(end-1) == ' ') end--; } else { /* Pack pref-spaces */ while (pos < end && *pos == ' ') pos++; } new_length=(uint) (end-pos); if (new_length + 1 + MY_TEST(column->length > 255 && new_length > 127) < length) { if (column->length > 255 && new_length > 127) { to[0]= (uchar) ((new_length & 127) + 128); to[1]= (uchar) (new_length >> 7); to+=2; } else *to++= (uchar) new_length; memcpy(to, pos, (size_t) new_length); to+=new_length; flag|=bit; } else { memcpy(to,from,(size_t) length); to+=length; } } else if (type == FIELD_VARCHAR) { uint pack_length= HA_VARCHAR_PACKLENGTH(column->length -1); uint tmp_length; if (pack_length == 1) { tmp_length= (uint) *from; *to++= *from; } else { tmp_length= uint2korr(from); store_key_length_inc(to,tmp_length); } if (tmp_length > column->length) { my_errno= HA_ERR_WRONG_IN_RECORD; DBUG_RETURN(0); } memcpy(to, from+pack_length,tmp_length); to+= tmp_length; continue; } else { memcpy(to,from,(size_t) length); to+=length; continue; /* Normal field */ } if ((bit= bit << 1) >= 256) { *packpos++ = (uchar) flag; bit=1; flag=0; } } else { memcpy(to,from,(size_t) length); to+=length; } } if (bit != 1) *packpos= (uchar) flag; if (info->s->calc_checksum) *to++= (uchar) info->cur_row.checksum; DBUG_PRINT("exit",("packed length: %d",(int) (to-startpos))); DBUG_RETURN((uint) (to-startpos)); }
O3
c
ma_rec_pack: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rdx, %r12 movq %rsi, %rbx movq (%rdi), %rax movl 0x3f4(%rax), %r14d movl 0x3fc(%rax), %edx addq %rsi, %r14 movq 0x288(%rdi), %rcx movq %rcx, -0x58(%rbp) movq 0x588(%rax), %r15 testq %rdx, %rdx movq %rdi, -0x60(%rbp) je 0x3c214 movq %rdi, %r13 movq %r14, %rdi movq %r12, %rsi callq 0x29080 movq (%r13), %rax movl 0x3fc(%rax), %ecx addq %rcx, %r12 addq %rcx, %r14 movq %r14, %rcx movl 0x3c8(%rax), %r14d testl %r14d, %r14d je 0x3c4da movq %rbx, -0x48(%rbp) movq %rbx, -0x40(%rbp) movl $0x1, -0x2c(%rbp) movl $0x0, -0x30(%rbp) movq %rcx, %rbx decl %r14d movzwl 0x8(%r15), %r8d movl (%r15), %ecx testl %ecx, %ecx je 0x3c331 cmpl $0x3, %ecx je 0x3c2be cmpl $0x4, %ecx jne 0x3c2ed movq -0x58(%rbp), %rcx cmpq $0x0, 0x10(%rcx) je 0x3c355 movl %r14d, -0x34(%rbp) movq %rcx, %r14 movq %rbx, %r13 leal -0x8(%r8), %ebx movq %r13, %rdi movq %r12, %rsi movq %rbx, %rdx movq %r8, -0x50(%rbp) callq 0x29080 movq (%r12,%rbx), %rsi leaq (%rbx,%r13), %rdi movq 0x10(%r14), %rdx callq 0x29080 movq -0x50(%rbp), %r8 addq 0x10(%r14), %rbx addq %rbx, %r13 movq %r13, %rbx movq %r14, %rcx movl -0x34(%rbp), %r14d movl -0x2c(%rbp), %eax jmp 0x3c35b movq %r12, %rdi leaq 0x3c0c18(%rip), %rsi # 0x3fcee0 movq %r8, %rdx movq %r8, %r13 callq 0x29560 testl %eax, %eax je 0x3c34a movq %rbx, %rdi movq %r12, %rsi movq %r13, %rdx callq 0x29080 addq %r13, %rbx movl -0x2c(%rbp), %eax jmp 0x3c350 cmpl $0x2, %ecx ja 0x3c31c leaq (%r12,%r8), %rax cmpl $0x1, %ecx jne 0x3c388 movq %rax, %rcx cmpq %r12, %rax jbe 0x3c311 leaq -0x1(%rcx), %rax cmpb $0x20, -0x1(%rcx) je 0x3c2ff movq %r12, %rsi movq %rcx, %rax jmp 0x3c3bc cmpl $0x8, %ecx jne 0x3c331 cmpl $0x100, %r8d # imm = 0x100 ja 0x3c39f movzbl (%r12), %eax jmp 0x3c3af movq %rbx, %rdi movq %r12, %rsi movq %r8, %rdx movq %r8, %r13 callq 0x29080 movq %r13, %r8 addq %r13, %rbx jmp 0x3c373 movl -0x2c(%rbp), %eax orl %eax, -0x30(%rbp) movq %r13, %r8 jmp 0x3c363 movl -0x2c(%rbp), %eax orl %eax, -0x30(%rbp) addq $0x18, %rcx movq %rcx, -0x58(%rbp) addl %eax, %eax cmpl $0xff, %eax ja 0x3c498 movl %eax, -0x2c(%rbp) addq %r8, %r12 addq $0x38, %r15 testl %r14d, %r14d jne 0x3c240 jmp 0x3c4c4 movq %r12, %rsi testq %r8, %r8 je 0x3c3b9 cmpb $0x20, (%rsi) jne 0x3c3bc incq %rsi cmpq %rax, %rsi jb 0x3c390 jmp 0x3c3bc movzwl (%r12), %eax cmpl $0xfe, %eax ja 0x3c443 movb %al, (%rbx) incq %rbx jmp 0x3c450 movq %r12, %rsi subq %rsi, %rax cmpl $0x100, %r8d # imm = 0x100 setae %dl cmpl $0x7f, %eax seta %cl andb %dl, %cl movzbl %cl, %edx addl %eax, %edx incl %edx cmpl %r8d, %edx jae 0x3c424 movq %rbx, %rdi movl $0x1, %ebx testb %cl, %cl movq %r8, -0x50(%rbp) movl %eax, %ecx je 0x3c3ff orb $-0x80, %cl movl %eax, %edx shrl $0x7, %edx movb %dl, 0x1(%rdi) movl $0x2, %ebx addq %rdi, %rbx movb %cl, (%rdi) movl %eax, %r13d movq %rbx, %rdi movq %r13, %rdx callq 0x29080 addq %r13, %rbx movl -0x2c(%rbp), %eax orl %eax, -0x30(%rbp) movq -0x50(%rbp), %r8 jmp 0x3c363 movq %rbx, %rdi movq %r12, %rsi movq %r8, %rdx movq %r8, %r13 callq 0x29080 movq %r13, %r8 addq %r13, %rbx movl -0x2c(%rbp), %eax jmp 0x3c363 movb $-0x1, (%rbx) movb %al, 0x2(%rbx) movb %ah, 0x1(%rbx) addq $0x3, %rbx movzwl 0x8(%r15), %ecx cmpl %ecx, %eax ja 0x3c50a cmpl $0x101, %r8d # imm = 0x101 movq %r12, %rsi sbbq $0x0, %rsi addq $0x2, %rsi movl %r14d, -0x34(%rbp) movq %rbx, %r13 movl %eax, %ebx movq %r13, %rdi movq %rbx, %rdx movq %r8, %r14 callq 0x29080 movq %r14, %r8 addq %rbx, %r13 movq %r13, %rbx movl -0x34(%rbp), %r14d jmp 0x3c373 movq %rbx, %rcx movq -0x48(%rbp), %rax movl -0x30(%rbp), %edx movb %dl, (%rax) incq %rax movq %rax, -0x48(%rbp) movl %r8d, %eax addq %rax, %r12 addq $0x38, %r15 testl %r14d, %r14d movq -0x40(%rbp), %rbx jne 0x3c22f jmp 0x3c4da movq %rbx, %rcx cmpl $0x1, -0x2c(%rbp) je 0x3c4d6 movq -0x48(%rbp), %rax movl -0x30(%rbp), %edx movb %dl, (%rax) movq -0x40(%rbp), %rbx movq -0x60(%rbp), %rdx movq (%rdx), %rax cmpq $0x0, 0x6a8(%rax) je 0x3c4f6 movb 0xb0(%rdx), %al movb %al, (%rcx) incq %rcx subl %ebx, %ecx movq %rcx, %rax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0xa16ee movl $0x7f, (%rax) xorl %eax, %eax jmp 0x3c4fb
_ma_rec_pack: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov r12, rdx mov rbx, rsi mov rax, [rdi] mov r14d, [rax+3F4h] mov edx, [rax+3FCh] add r14, rsi mov rcx, [rdi+288h] mov [rbp+var_58], rcx mov r15, [rax+588h] test rdx, rdx mov [rbp+var_60], rdi jz short loc_3C214 mov r13, rdi mov rdi, r14 mov rsi, r12 call _memcpy mov rax, [r13+0] mov ecx, [rax+3FCh] add r12, rcx add r14, rcx loc_3C214: mov rcx, r14 mov r14d, [rax+3C8h] test r14d, r14d jz loc_3C4DA mov [rbp+var_48], rbx mov [rbp+var_40], rbx loc_3C22F: mov [rbp+var_2C], 1 mov [rbp+var_30], 0 mov rbx, rcx loc_3C240: dec r14d movzx r8d, word ptr [r15+8] mov ecx, [r15] test ecx, ecx jz loc_3C331 cmp ecx, 3 jz short loc_3C2BE cmp ecx, 4 jnz loc_3C2ED mov rcx, [rbp+var_58] cmp qword ptr [rcx+10h], 0 jz loc_3C355 mov [rbp+var_34], r14d mov r14, rcx mov r13, rbx lea ebx, [r8-8] mov rdi, r13 mov rsi, r12 mov rdx, rbx mov [rbp+var_50], r8 call _memcpy mov rsi, [r12+rbx] lea rdi, [rbx+r13] mov rdx, [r14+10h] call _memcpy mov r8, [rbp+var_50] add rbx, [r14+10h] add r13, rbx mov rbx, r13 mov rcx, r14 mov r14d, [rbp+var_34] mov eax, [rbp+var_2C] jmp loc_3C35B loc_3C2BE: mov rdi, r12 lea rsi, maria_zero_string mov rdx, r8 mov r13, r8 call _bcmp test eax, eax jz short loc_3C34A mov rdi, rbx mov rsi, r12 mov rdx, r13 call _memcpy add rbx, r13 mov eax, [rbp+var_2C] jmp short loc_3C350 loc_3C2ED: cmp ecx, 2 ja short loc_3C31C lea rax, [r12+r8] cmp ecx, 1 jnz loc_3C388 loc_3C2FF: mov rcx, rax cmp rax, r12 jbe short loc_3C311 lea rax, [rcx-1] cmp byte ptr [rcx-1], 20h ; ' ' jz short loc_3C2FF loc_3C311: mov rsi, r12 mov rax, rcx jmp loc_3C3BC loc_3C31C: cmp ecx, 8 jnz short loc_3C331 cmp r8d, 100h ja short loc_3C39F movzx eax, byte ptr [r12] jmp short loc_3C3AF loc_3C331: mov rdi, rbx mov rsi, r12 mov rdx, r8 mov r13, r8 call _memcpy mov r8, r13 add rbx, r13 jmp short loc_3C373 loc_3C34A: mov eax, [rbp+var_2C] or [rbp+var_30], eax loc_3C350: mov r8, r13 jmp short loc_3C363 loc_3C355: mov eax, [rbp+var_2C] or [rbp+var_30], eax loc_3C35B: add rcx, 18h mov [rbp+var_58], rcx loc_3C363: add eax, eax cmp eax, 0FFh ja loc_3C498 mov [rbp+var_2C], eax loc_3C373: add r12, r8 add r15, 38h ; '8' test r14d, r14d jnz loc_3C240 jmp loc_3C4C4 loc_3C388: mov rsi, r12 test r8, r8 jz short loc_3C3B9 loc_3C390: cmp byte ptr [rsi], 20h ; ' ' jnz short loc_3C3BC inc rsi cmp rsi, rax jb short loc_3C390 jmp short loc_3C3BC loc_3C39F: movzx eax, word ptr [r12] cmp eax, 0FEh ja loc_3C443 loc_3C3AF: mov [rbx], al inc rbx jmp loc_3C450 loc_3C3B9: mov rsi, r12 loc_3C3BC: sub rax, rsi cmp r8d, 100h setnb dl cmp eax, 7Fh setnbe cl and cl, dl movzx edx, cl add edx, eax inc edx cmp edx, r8d jnb short loc_3C424 mov rdi, rbx mov ebx, 1 test cl, cl mov [rbp+var_50], r8 mov ecx, eax jz short loc_3C3FF or cl, 80h mov edx, eax shr edx, 7 mov [rdi+1], dl mov ebx, 2 loc_3C3FF: add rbx, rdi mov [rdi], cl mov r13d, eax mov rdi, rbx mov rdx, r13 call _memcpy add rbx, r13 mov eax, [rbp+var_2C] or [rbp+var_30], eax mov r8, [rbp+var_50] jmp loc_3C363 loc_3C424: mov rdi, rbx mov rsi, r12 mov rdx, r8 mov r13, r8 call _memcpy mov r8, r13 add rbx, r13 mov eax, [rbp+var_2C] jmp loc_3C363 loc_3C443: mov byte ptr [rbx], 0FFh mov [rbx+2], al mov [rbx+1], ah add rbx, 3 loc_3C450: movzx ecx, word ptr [r15+8] cmp eax, ecx ja loc_3C50A cmp r8d, 101h mov rsi, r12 sbb rsi, 0 add rsi, 2 mov [rbp+var_34], r14d mov r13, rbx mov ebx, eax mov rdi, r13 mov rdx, rbx mov r14, r8 call _memcpy mov r8, r14 add r13, rbx mov rbx, r13 mov r14d, [rbp+var_34] jmp loc_3C373 loc_3C498: mov rcx, rbx mov rax, [rbp+var_48] mov edx, [rbp+var_30] mov [rax], dl inc rax mov [rbp+var_48], rax mov eax, r8d add r12, rax add r15, 38h ; '8' test r14d, r14d mov rbx, [rbp+var_40] jnz loc_3C22F jmp short loc_3C4DA loc_3C4C4: mov rcx, rbx cmp [rbp+var_2C], 1 jz short loc_3C4D6 mov rax, [rbp+var_48] mov edx, [rbp+var_30] mov [rax], dl loc_3C4D6: mov rbx, [rbp+var_40] loc_3C4DA: mov rdx, [rbp+var_60] mov rax, [rdx] cmp qword ptr [rax+6A8h], 0 jz short loc_3C4F6 mov al, [rdx+0B0h] mov [rcx], al inc rcx loc_3C4F6: sub ecx, ebx mov rax, rcx loc_3C4FB: add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_3C50A: call _my_thread_var mov dword ptr [rax], 7Fh xor eax, eax jmp short loc_3C4FB
long long ma_rec_pack(unsigned __int8 *a1, unsigned __int8 *a2, unsigned __int8 *a3) { unsigned __int8 *v4; // rbx long long v5; // rax long long v6; // rdx unsigned __int8 *v7; // r14 long long v8; // r15 unsigned __int8 *v9; // r13 long long v10; // rcx unsigned __int8 *v11; // rcx int v12; // r14d long long v13; // r8 unsigned int v14; // ecx long long v15; // rcx unsigned __int8 *v16; // r13 long long v17; // rbx int v18; // eax long long v19; // r13 unsigned __int8 *v20; // rax unsigned __int8 *v21; // rcx unsigned int v22; // eax long long v23; // r13 unsigned int v24; // eax unsigned __int8 *v25; // rbx unsigned int v26; // eax bool v27; // cl unsigned __int8 *v28; // rdi long long v29; // rbx bool v30; // zf unsigned __int8 v31; // cl long long v32; // r13 long long v33; // r13 long long v34; // rcx unsigned __int8 *v35; // r13 long long v36; // rbx long long v37; // r14 unsigned __int8 *v39; // [rsp+0h] [rbp-60h] long long v40; // [rsp+8h] [rbp-58h] long long v41; // [rsp+10h] [rbp-50h] long long v42; // [rsp+10h] [rbp-50h] unsigned __int8 *v43; // [rsp+18h] [rbp-48h] int v44; // [rsp+20h] [rbp-40h] int v45; // [rsp+2Ch] [rbp-34h] unsigned int v46; // [rsp+30h] [rbp-30h] int v47; // [rsp+34h] [rbp-2Ch] v4 = a2; v5 = *(_QWORD *)a1; v6 = *(unsigned int *)(*(_QWORD *)a1 + 1020LL); v7 = &a2[*(unsigned int *)(*(_QWORD *)a1 + 1012LL)]; v40 = *((_QWORD *)a1 + 81); v8 = *(_QWORD *)(*(_QWORD *)a1 + 1416LL); v39 = a1; if ( *(_DWORD *)(*(_QWORD *)a1 + 1020LL) ) { v9 = a1; a1 = &a2[*(unsigned int *)(*(_QWORD *)a1 + 1012LL)]; a2 = a3; memcpy(v7, a3, v6); v5 = *(_QWORD *)v9; v10 = *(unsigned int *)(*(_QWORD *)v9 + 1020LL); a3 += v10; v7 += v10; } v11 = v7; v12 = *(_DWORD *)(v5 + 968); if ( v12 ) { v43 = v4; v44 = (int)v4; LABEL_5: v47 = 1; v46 = 0; v4 = v11; while ( 1 ) { --v12; v13 = *(unsigned __int16 *)(v8 + 8); v14 = *(_DWORD *)v8; if ( !*(_DWORD *)v8 ) goto LABEL_21; if ( v14 == 3 ) { a1 = a3; a2 = (unsigned __int8 *)&maria_zero_string; v19 = *(unsigned __int16 *)(v8 + 8); if ( (unsigned int)bcmp(a3, &maria_zero_string, v19) ) { a1 = v4; a2 = a3; memcpy(v4, a3, v19); v4 += v19; v18 = v47; } else { v18 = v47; v46 |= v47; } v13 = v19; } else if ( v14 == 4 ) { v15 = v40; if ( *(_QWORD *)(v40 + 16) ) { v16 = v4; v17 = (unsigned int)(v13 - 8); v41 = *(unsigned __int16 *)(v8 + 8); memcpy(v16, a3, v17); a2 = *(unsigned __int8 **)&a3[v17]; a1 = &v16[v17]; memcpy(&v16[v17], a2, *(_QWORD *)(v40 + 16)); v13 = v41; v4 = &v16[*(_QWORD *)(v40 + 16) + v17]; v15 = v40; v18 = v47; } else { v18 = v47; v46 |= v47; } v40 = v15 + 24; } else { if ( v14 > 2 ) { if ( v14 == 8 ) { if ( (unsigned int)v13 <= 0x100 ) { v22 = *a3; goto LABEL_35; } v22 = *(unsigned __int16 *)a3; if ( v22 > 0xFE ) { *v4 = -1; v4[2] = v22; v4[1] = BYTE1(v22); v25 = v4 + 3; } else { LABEL_35: *v4 = v22; v25 = v4 + 1; } v34 = *(unsigned __int16 *)(v8 + 8); if ( v22 > (unsigned int)v34 ) { *(_DWORD *)my_thread_var(a1, a2, v6, v34, v13) = 127; return 0LL; } a2 = &a3[-((unsigned int)v13 < 0x101) + 2]; v45 = v12; v35 = v25; v36 = v22; a1 = v35; v37 = v13; memcpy(v35, a2, v22); v13 = v37; v4 = &v35[v36]; v12 = v45; goto LABEL_28; } LABEL_21: a1 = v4; a2 = a3; v23 = *(unsigned __int16 *)(v8 + 8); memcpy(v4, a3, v23); v13 = v23; v4 += v23; goto LABEL_28; } v20 = &a3[v13]; if ( v14 == 1 ) { do { v21 = v20; if ( v20 <= a3 ) break; --v20; } while ( *(v21 - 1) == 32 ); a2 = a3; LODWORD(v20) = (_DWORD)v21; } else { a2 = a3; if ( *(_WORD *)(v8 + 8) ) { do { if ( *a2 != 32 ) break; ++a2; } while ( a2 < v20 ); } else { a2 = a3; } } v26 = (_DWORD)v20 - (_DWORD)a2; v27 = (unsigned int)v13 >= 0x100 && v26 > 0x7F; if ( v26 + v27 + 1 >= (unsigned int)v13 ) { a1 = v4; a2 = a3; v33 = *(unsigned __int16 *)(v8 + 8); memcpy(v4, a3, v33); v13 = v33; v4 += v33; v18 = v47; } else { v28 = v4; v29 = 1LL; v30 = !v27; v42 = *(unsigned __int16 *)(v8 + 8); v31 = v26; if ( !v30 ) { v31 = v26 | 0x80; v28[1] = v26 >> 7; v29 = 2LL; } *v28 = v31; v32 = v26; a1 = &v28[v29]; memcpy(a1, a2, v26); v4 = &a1[v32]; v18 = v47; v46 |= v47; v13 = v42; } } v24 = 2 * v18; if ( v24 > 0xFF ) { v11 = v4; v6 = v46; *v43++ = v46; a3 += (unsigned int)v13; v8 += 56LL; LODWORD(v4) = v44; if ( v12 ) goto LABEL_5; break; } v47 = v24; LABEL_28: a3 += v13; v8 += 56LL; if ( !v12 ) { v11 = v4; if ( v47 != 1 ) *v43 = v46; LODWORD(v4) = v44; break; } } } if ( *(_QWORD *)(*(_QWORD *)v39 + 1704LL) ) { *v11 = v39[176]; LODWORD(v11) = (_DWORD)v11 + 1; } return (unsigned int)((_DWORD)v11 - (_DWORD)v4); }
_ma_rec_pack: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R12,RDX MOV RBX,RSI MOV RAX,qword ptr [RDI] MOV R14D,dword ptr [RAX + 0x3f4] MOV EDX,dword ptr [RAX + 0x3fc] ADD R14,RSI MOV RCX,qword ptr [RDI + 0x288] MOV qword ptr [RBP + -0x58],RCX MOV R15,qword ptr [RAX + 0x588] TEST RDX,RDX MOV qword ptr [RBP + -0x60],RDI JZ 0x0013c214 MOV R13,RDI MOV RDI,R14 MOV RSI,R12 CALL 0x00129080 MOV RAX,qword ptr [R13] MOV ECX,dword ptr [RAX + 0x3fc] ADD R12,RCX ADD R14,RCX LAB_0013c214: MOV RCX,R14 MOV R14D,dword ptr [RAX + 0x3c8] TEST R14D,R14D JZ 0x0013c4da MOV qword ptr [RBP + -0x48],RBX MOV qword ptr [RBP + -0x40],RBX LAB_0013c22f: MOV dword ptr [RBP + -0x2c],0x1 MOV dword ptr [RBP + -0x30],0x0 MOV RBX,RCX LAB_0013c240: DEC R14D MOVZX R8D,word ptr [R15 + 0x8] MOV ECX,dword ptr [R15] TEST ECX,ECX JZ 0x0013c331 CMP ECX,0x3 JZ 0x0013c2be CMP ECX,0x4 JNZ 0x0013c2ed MOV RCX,qword ptr [RBP + -0x58] CMP qword ptr [RCX + 0x10],0x0 JZ 0x0013c355 MOV dword ptr [RBP + -0x34],R14D MOV R14,RCX MOV R13,RBX LEA EBX,[R8 + -0x8] MOV RDI,R13 MOV RSI,R12 MOV RDX,RBX MOV qword ptr [RBP + -0x50],R8 CALL 0x00129080 MOV RSI,qword ptr [R12 + RBX*0x1] LEA RDI,[RBX + R13*0x1] MOV RDX,qword ptr [R14 + 0x10] CALL 0x00129080 MOV R8,qword ptr [RBP + -0x50] ADD RBX,qword ptr [R14 + 0x10] ADD R13,RBX MOV RBX,R13 MOV RCX,R14 MOV R14D,dword ptr [RBP + -0x34] MOV EAX,dword ptr [RBP + -0x2c] JMP 0x0013c35b LAB_0013c2be: MOV RDI,R12 LEA RSI,[0x4fcee0] MOV RDX,R8 MOV R13,R8 CALL 0x00129560 TEST EAX,EAX JZ 0x0013c34a MOV RDI,RBX MOV RSI,R12 MOV RDX,R13 CALL 0x00129080 ADD RBX,R13 MOV EAX,dword ptr [RBP + -0x2c] JMP 0x0013c350 LAB_0013c2ed: CMP ECX,0x2 JA 0x0013c31c LEA RAX,[R12 + R8*0x1] CMP ECX,0x1 JNZ 0x0013c388 LAB_0013c2ff: MOV RCX,RAX CMP RAX,R12 JBE 0x0013c311 LEA RAX,[RCX + -0x1] CMP byte ptr [RCX + -0x1],0x20 JZ 0x0013c2ff LAB_0013c311: MOV RSI,R12 MOV RAX,RCX JMP 0x0013c3bc LAB_0013c31c: CMP ECX,0x8 JNZ 0x0013c331 CMP R8D,0x100 JA 0x0013c39f MOVZX EAX,byte ptr [R12] JMP 0x0013c3af LAB_0013c331: MOV RDI,RBX MOV RSI,R12 MOV RDX,R8 MOV R13,R8 CALL 0x00129080 MOV R8,R13 ADD RBX,R13 JMP 0x0013c373 LAB_0013c34a: MOV EAX,dword ptr [RBP + -0x2c] OR dword ptr [RBP + -0x30],EAX LAB_0013c350: MOV R8,R13 JMP 0x0013c363 LAB_0013c355: MOV EAX,dword ptr [RBP + -0x2c] OR dword ptr [RBP + -0x30],EAX LAB_0013c35b: ADD RCX,0x18 MOV qword ptr [RBP + -0x58],RCX LAB_0013c363: ADD EAX,EAX CMP EAX,0xff JA 0x0013c498 MOV dword ptr [RBP + -0x2c],EAX LAB_0013c373: ADD R12,R8 ADD R15,0x38 TEST R14D,R14D JNZ 0x0013c240 JMP 0x0013c4c4 LAB_0013c388: MOV RSI,R12 TEST R8,R8 JZ 0x0013c3b9 LAB_0013c390: CMP byte ptr [RSI],0x20 JNZ 0x0013c3bc INC RSI CMP RSI,RAX JC 0x0013c390 JMP 0x0013c3bc LAB_0013c39f: MOVZX EAX,word ptr [R12] CMP EAX,0xfe JA 0x0013c443 LAB_0013c3af: MOV byte ptr [RBX],AL INC RBX JMP 0x0013c450 LAB_0013c3b9: MOV RSI,R12 LAB_0013c3bc: SUB RAX,RSI CMP R8D,0x100 SETNC DL CMP EAX,0x7f SETA CL AND CL,DL MOVZX EDX,CL ADD EDX,EAX INC EDX CMP EDX,R8D JNC 0x0013c424 MOV RDI,RBX MOV EBX,0x1 TEST CL,CL MOV qword ptr [RBP + -0x50],R8 MOV ECX,EAX JZ 0x0013c3ff OR CL,0x80 MOV EDX,EAX SHR EDX,0x7 MOV byte ptr [RDI + 0x1],DL MOV EBX,0x2 LAB_0013c3ff: ADD RBX,RDI MOV byte ptr [RDI],CL MOV R13D,EAX MOV RDI,RBX MOV RDX,R13 CALL 0x00129080 ADD RBX,R13 MOV EAX,dword ptr [RBP + -0x2c] OR dword ptr [RBP + -0x30],EAX MOV R8,qword ptr [RBP + -0x50] JMP 0x0013c363 LAB_0013c424: MOV RDI,RBX MOV RSI,R12 MOV RDX,R8 MOV R13,R8 CALL 0x00129080 MOV R8,R13 ADD RBX,R13 MOV EAX,dword ptr [RBP + -0x2c] JMP 0x0013c363 LAB_0013c443: MOV byte ptr [RBX],0xff MOV byte ptr [RBX + 0x2],AL MOV byte ptr [RBX + 0x1],AH ADD RBX,0x3 LAB_0013c450: MOVZX ECX,word ptr [R15 + 0x8] CMP EAX,ECX JA 0x0013c50a CMP R8D,0x101 MOV RSI,R12 SBB RSI,0x0 ADD RSI,0x2 MOV dword ptr [RBP + -0x34],R14D MOV R13,RBX MOV EBX,EAX MOV RDI,R13 MOV RDX,RBX MOV R14,R8 CALL 0x00129080 MOV R8,R14 ADD R13,RBX MOV RBX,R13 MOV R14D,dword ptr [RBP + -0x34] JMP 0x0013c373 LAB_0013c498: MOV RCX,RBX MOV RAX,qword ptr [RBP + -0x48] MOV EDX,dword ptr [RBP + -0x30] MOV byte ptr [RAX],DL INC RAX MOV qword ptr [RBP + -0x48],RAX MOV EAX,R8D ADD R12,RAX ADD R15,0x38 TEST R14D,R14D MOV RBX,qword ptr [RBP + -0x40] JNZ 0x0013c22f JMP 0x0013c4da LAB_0013c4c4: MOV RCX,RBX CMP dword ptr [RBP + -0x2c],0x1 JZ 0x0013c4d6 MOV RAX,qword ptr [RBP + -0x48] MOV EDX,dword ptr [RBP + -0x30] MOV byte ptr [RAX],DL LAB_0013c4d6: MOV RBX,qword ptr [RBP + -0x40] LAB_0013c4da: MOV RDX,qword ptr [RBP + -0x60] MOV RAX,qword ptr [RDX] CMP qword ptr [RAX + 0x6a8],0x0 JZ 0x0013c4f6 MOV AL,byte ptr [RDX + 0xb0] MOV byte ptr [RCX],AL INC RCX LAB_0013c4f6: SUB ECX,EBX MOV RAX,RCX LAB_0013c4fb: ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0013c50a: CALL 0x001a16ee MOV dword ptr [RAX],0x7f XOR EAX,EAX JMP 0x0013c4fb
int _ma_rec_pack(long *param_1,int1 *param_2,ushort *param_3) { ushort uVar1; ushort uVar2; ushort *puVar3; int iVar4; uint uVar5; ulong uVar6; int1 *puVar8; int4 *puVar9; byte bVar10; long lVar11; ushort *puVar12; uint uVar13; ulong __n; int iVar14; byte *pbVar15; uint *puVar16; long local_60; uint local_38; uint local_34; ushort *puVar7; lVar11 = *param_1; pbVar15 = param_2 + *(uint *)(lVar11 + 0x3f4); local_60 = param_1[0x51]; puVar16 = *(uint **)(lVar11 + 0x588); if ((ulong)*(uint *)(lVar11 + 0x3fc) != 0) { memcpy(pbVar15,param_3,(ulong)*(uint *)(lVar11 + 0x3fc)); lVar11 = *param_1; param_3 = (ushort *)((long)param_3 + (ulong)*(uint *)(lVar11 + 0x3fc)); pbVar15 = pbVar15 + *(uint *)(lVar11 + 0x3fc); } iVar14 = *(int *)(lVar11 + 0x3c8); puVar8 = param_2; joined_r0x0013c221: if (iVar14 == 0) { LAB_0013c4da: if (*(long *)(*param_1 + 0x6a8) != 0) { *pbVar15 = *(byte *)(param_1 + 0x16); pbVar15 = pbVar15 + 1; } return (int)pbVar15 - (int)param_2; } local_34 = 1; local_38 = 0; do { iVar14 = iVar14 + -1; uVar1 = (ushort)puVar16[2]; __n = (ulong)uVar1; uVar5 = *puVar16; if (uVar5 == 0) { LAB_0013c331: memcpy(pbVar15,param_3,__n); pbVar15 = pbVar15 + __n; } else { if (uVar5 == 3) { iVar4 = bcmp(param_3,maria_zero_string,__n); if (iVar4 == 0) { local_38 = local_38 | local_34; } else { memcpy(pbVar15,param_3,__n); pbVar15 = pbVar15 + __n; } } else if (uVar5 == 4) { if (*(long *)(local_60 + 0x10) == 0) { local_38 = local_38 | local_34; } else { uVar6 = (ulong)(uVar1 - 8); memcpy(pbVar15,param_3,uVar6); memcpy(pbVar15 + uVar6,*(void **)((long)param_3 + uVar6),*(size_t *)(local_60 + 0x10)); pbVar15 = pbVar15 + uVar6 + *(long *)(local_60 + 0x10); } local_60 = local_60 + 0x18; } else { if (2 < uVar5) { if (uVar5 != 8) goto LAB_0013c331; if (uVar1 < 0x101) { uVar5 = (uint)(byte)*param_3; LAB_0013c3af: uVar13 = uVar5; *pbVar15 = (byte)uVar13; pbVar15 = pbVar15 + 1; } else { uVar2 = *param_3; uVar13 = (uint)uVar2; uVar5 = (uint)uVar2; if (uVar2 < 0xff) goto LAB_0013c3af; *pbVar15 = 0xff; pbVar15[2] = (byte)uVar2; pbVar15[1] = (byte)(uVar2 >> 8); pbVar15 = pbVar15 + 3; } if ((ushort)puVar16[2] < uVar13) { puVar9 = (int4 *)_my_thread_var(); *puVar9 = 0x7f; return 0; } memcpy(pbVar15,(byte *)((long)param_3 + (2 - (ulong)(uVar1 < 0x101))),(ulong)uVar13); pbVar15 = pbVar15 + uVar13; goto LAB_0013c373; } puVar7 = (ushort *)((long)param_3 + __n); puVar3 = puVar7; puVar12 = param_3; if (uVar5 == 1) { do { puVar7 = puVar3; if (puVar7 <= param_3) break; puVar3 = (ushort *)((long)puVar7 + -1); } while (*(byte *)((long)puVar7 + -1) == 0x20); } else if (__n != 0) { do { if ((byte)*puVar12 != 0x20) break; puVar12 = (ushort *)((long)puVar12 + 1); } while (puVar12 < puVar7); } uVar6 = (long)puVar7 - (long)puVar12; uVar13 = (uint)uVar1; uVar5 = (uint)uVar6; if ((0x7f < uVar5 && 0xff < uVar13) + uVar5 + 1 < uVar13) { lVar11 = 1; bVar10 = (byte)uVar6; if (0x7f < uVar5 && 0xff < uVar13) { bVar10 = bVar10 | 0x80; pbVar15[1] = (byte)(uVar6 >> 7); lVar11 = 2; } *pbVar15 = bVar10; memcpy(pbVar15 + lVar11,puVar12,uVar6 & 0xffffffff); pbVar15 = pbVar15 + lVar11 + (uVar6 & 0xffffffff); local_38 = local_38 | local_34; } else { memcpy(pbVar15,param_3,__n); pbVar15 = pbVar15 + __n; } } local_34 = local_34 * 2; if (0xff < local_34) break; } LAB_0013c373: param_3 = (ushort *)((long)param_3 + __n); puVar16 = puVar16 + 0xe; if (iVar14 == 0) { if (local_34 != 1) { *puVar8 = (char)local_38; } goto LAB_0013c4da; } } while( true ); *puVar8 = (char)local_38; puVar8 = puVar8 + 1; param_3 = (ushort *)((long)param_3 + __n); puVar16 = puVar16 + 0xe; goto joined_r0x0013c221; }
6,253
my_large_free
eloqsql/mysys/my_largepage.c
void my_large_free(void *ptr, size_t size) { DBUG_ENTER("my_large_free"); /* The following implementations can only fail if ptr was not allocated with my_large_malloc(), i.e. my_malloc_lock() was used so we should free it with my_free_lock() For ASAN, we need to explicitly unpoison this memory region because the OS may reuse that memory for some TLS or stack variable. It will remain poisoned if it was explicitly poisioned before release. If this happens, we'll have hard to debug false positives like in MDEV-21239. For valgrind, we mark it as UNDEFINED rather than NOACCESS because of the implict reuse possiblility. */ #if defined(HAVE_MMAP) && !defined(_WIN32) if (munmap(ptr, size)) { my_error(EE_BADMEMORYRELEASE, MYF(ME_ERROR_LOG_ONLY), ptr, size, errno); } # if !__has_feature(memory_sanitizer) else { MEM_MAKE_ADDRESSABLE(ptr, size); } # endif #elif defined(_WIN32) /* When RELEASE memory, the size parameter must be 0. Do not use MEM_RELEASE with MEM_DECOMMIT. */ if (ptr && !VirtualFree(ptr, 0, MEM_RELEASE)) { my_error(EE_BADMEMORYRELEASE, MYF(ME_ERROR_LOG_ONLY), ptr, size, GetLastError()); } # if !__has_feature(memory_sanitizer) else { MEM_MAKE_ADDRESSABLE(ptr, size); } # endif #else my_free_lock(ptr); #endif DBUG_VOID_RETURN; }
O3
c
my_large_free: pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rsi, %rbx movq %rdi, %r14 callq 0x2a4c0 testl %eax, %eax je 0xaf848 callq 0x2a7a0 movl (%rax), %r8d movl $0x80, %esi movl $0x24, %edi movq %r14, %rdx movq %rbx, %rcx xorl %eax, %eax popq %rbx popq %r14 popq %rbp jmp 0xa2fcb popq %rbx popq %r14 popq %rbp retq
my_large_free: push rbp mov rbp, rsp push r14 push rbx mov rbx, rsi mov r14, rdi call _munmap test eax, eax jz short loc_AF848 call ___errno_location mov r8d, [rax] mov esi, 80h mov edi, 24h ; '$' mov rdx, r14 mov rcx, rbx xor eax, eax pop rbx pop r14 pop rbp jmp my_error loc_AF848: pop rbx pop r14 pop rbp retn
unsigned long long my_large_free(long long a1, long long a2) { unsigned long long result; // rax unsigned int *v3; // rax result = munmap(a1, a2); if ( (_DWORD)result ) { v3 = (unsigned int *)__errno_location(a1); return my_error(0x24u, 128LL, a1, a2, *v3); } return result; }
my_large_free: PUSH RBP MOV RBP,RSP PUSH R14 PUSH RBX MOV RBX,RSI MOV R14,RDI CALL 0x0012a4c0 TEST EAX,EAX JZ 0x001af848 CALL 0x0012a7a0 MOV R8D,dword ptr [RAX] MOV ESI,0x80 MOV EDI,0x24 MOV RDX,R14 MOV RCX,RBX XOR EAX,EAX POP RBX POP R14 POP RBP JMP 0x001a2fcb LAB_001af848: POP RBX POP R14 POP RBP RET
void my_large_free(void *param_1,size_t param_2) { int iVar1; int *piVar2; iVar1 = munmap(param_1,param_2); if (iVar1 != 0) { piVar2 = __errno_location(); my_error(0x24,0x80,param_1,param_2,*piVar2); return; } return; }
6,254
my_uni_utf32
eloqsql/strings/ctype-ucs2.c
static int my_uni_utf32(CHARSET_INFO *cs __attribute__((unused)), my_wc_t wc, uchar *s, uchar *e) { if (s + 4 > e) return MY_CS_TOOSMALL4; if (wc > 0x10FFFF) return MY_CS_ILUNI; s[0]= (uchar) (wc >> 24); s[1]= (uchar) (wc >> 16) & 0xFF; s[2]= (uchar) (wc >> 8) & 0xFF; s[3]= (uchar) wc & 0xFF; return 4; }
O0
c
my_uni_utf32: pushq %rbp movq %rsp, %rbp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq -0x20(%rbp), %rax addq $0x4, %rax cmpq -0x28(%rbp), %rax jbe 0x2c75b movl $0xffffff98, -0x4(%rbp) # imm = 0xFFFFFF98 jmp 0x2c7cc cmpq $0x10ffff, -0x18(%rbp) # imm = 0x10FFFF jbe 0x2c76e movl $0x0, -0x4(%rbp) jmp 0x2c7cc movq -0x18(%rbp), %rax shrq $0x18, %rax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, (%rax) movq -0x18(%rbp), %rax shrq $0x10, %rax movzbl %al, %eax andl $0xff, %eax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, 0x1(%rax) movq -0x18(%rbp), %rax shrq $0x8, %rax movzbl %al, %eax andl $0xff, %eax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, 0x2(%rax) movq -0x18(%rbp), %rax movzbl %al, %eax andl $0xff, %eax movb %al, %cl movq -0x20(%rbp), %rax movb %cl, 0x3(%rax) movl $0x4, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopw %cs:(%rax,%rax)
my_uni_utf32: push rbp mov rbp, rsp 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] add rax, 4 cmp rax, [rbp+var_28] jbe short loc_2C75B mov [rbp+var_4], 0FFFFFF98h jmp short loc_2C7CC loc_2C75B: cmp [rbp+var_18], offset unk_10FFFF jbe short loc_2C76E mov [rbp+var_4], 0 jmp short loc_2C7CC loc_2C76E: mov rax, [rbp+var_18] shr rax, 18h mov cl, al mov rax, [rbp+var_20] mov [rax], cl mov rax, [rbp+var_18] shr rax, 10h movzx eax, al and eax, 0FFh mov cl, al mov rax, [rbp+var_20] mov [rax+1], cl mov rax, [rbp+var_18] shr rax, 8 movzx eax, al and eax, 0FFh mov cl, al mov rax, [rbp+var_20] mov [rax+2], cl mov rax, [rbp+var_18] movzx eax, al and eax, 0FFh mov cl, al mov rax, [rbp+var_20] mov [rax+3], cl mov [rbp+var_4], 4 loc_2C7CC: mov eax, [rbp+var_4] pop rbp retn
long long my_uni_utf32(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4) { if ( (unsigned long long)(a3 + 4) <= a4 ) { if ( a2 <= (unsigned long long)&unk_10FFFF ) { *a3 = BYTE3(a2); a3[1] = BYTE2(a2); a3[2] = BYTE1(a2); a3[3] = a2; return 4; } else { return 0; } } else { return (unsigned int)-104; } }
my_uni_utf32: PUSH RBP MOV RBP,RSP 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] ADD RAX,0x4 CMP RAX,qword ptr [RBP + -0x28] JBE 0x0012c75b MOV dword ptr [RBP + -0x4],0xffffff98 JMP 0x0012c7cc LAB_0012c75b: CMP qword ptr [RBP + -0x18],0x10ffff JBE 0x0012c76e MOV dword ptr [RBP + -0x4],0x0 JMP 0x0012c7cc LAB_0012c76e: MOV RAX,qword ptr [RBP + -0x18] SHR RAX,0x18 MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX],CL MOV RAX,qword ptr [RBP + -0x18] SHR RAX,0x10 MOVZX EAX,AL AND EAX,0xff MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x1],CL MOV RAX,qword ptr [RBP + -0x18] SHR RAX,0x8 MOVZX EAX,AL AND EAX,0xff MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x2],CL MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,AL AND EAX,0xff MOV CL,AL MOV RAX,qword ptr [RBP + -0x20] MOV byte ptr [RAX + 0x3],CL MOV dword ptr [RBP + -0x4],0x4 LAB_0012c7cc: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 my_uni_utf32(int8 param_1,ulong param_2,int1 *param_3,int1 *param_4) { int4 local_c; if (param_4 < param_3 + 4) { local_c = 0xffffff98; } else if (param_2 < 0x110000) { *param_3 = (char)(param_2 >> 0x18); param_3[1] = (char)(param_2 >> 0x10); param_3[2] = (char)(param_2 >> 8); param_3[3] = (char)param_2; local_c = 4; } else { local_c = 0; } return local_c; }
6,255
my_uni_utf32
eloqsql/strings/ctype-ucs2.c
static int my_uni_utf32(CHARSET_INFO *cs __attribute__((unused)), my_wc_t wc, uchar *s, uchar *e) { if (s + 4 > e) return MY_CS_TOOSMALL4; if (wc > 0x10FFFF) return MY_CS_ILUNI; s[0]= (uchar) (wc >> 24); s[1]= (uchar) (wc >> 16) & 0xFF; s[2]= (uchar) (wc >> 8) & 0xFF; s[3]= (uchar) wc & 0xFF; return 4; }
O3
c
my_uni_utf32: pushq %rbp movq %rsp, %rbp pushq %rbx movq %rsi, %rbx leaq 0x4(%rdx), %rsi movl $0xffffff98, %eax # imm = 0xFFFFFF98 cmpq %rcx, %rsi ja 0x2a908 xorl %eax, %eax cmpq $0x10ffff, %rbx # imm = 0x10FFFF ja 0x2a908 movb $0x0, (%rdx) movl %ebx, %eax shrl $0x10, %eax movb %al, 0x1(%rdx) movb %bh, 0x2(%rdx) movb %bl, 0x3(%rdx) movl $0x4, %eax popq %rbx popq %rbp retq
my_uni_utf32: push rbp mov rbp, rsp push rbx mov rbx, rsi lea rsi, [rdx+4] mov eax, 0FFFFFF98h cmp rsi, rcx ja short loc_2A908 xor eax, eax cmp rbx, offset unk_10FFFF ja short loc_2A908 mov byte ptr [rdx], 0 mov eax, ebx shr eax, 10h mov [rdx+1], al mov [rdx+2], bh mov [rdx+3], bl mov eax, 4 loc_2A908: pop rbx pop rbp retn
long long my_uni_utf32(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4) { long long result; // rax result = 4294967192LL; if ( (unsigned long long)(a3 + 4) <= a4 ) { result = 0LL; if ( a2 <= (unsigned long long)&unk_10FFFF ) { *a3 = 0; a3[1] = BYTE2(a2); a3[2] = BYTE1(a2); a3[3] = a2; return 4LL; } } return result; }
my_uni_utf32: PUSH RBP MOV RBP,RSP PUSH RBX MOV RBX,RSI LEA RSI,[RDX + 0x4] MOV EAX,0xffffff98 CMP RSI,RCX JA 0x0012a908 XOR EAX,EAX CMP RBX,0x10ffff JA 0x0012a908 MOV byte ptr [RDX],0x0 MOV EAX,EBX SHR EAX,0x10 MOV byte ptr [RDX + 0x1],AL MOV byte ptr [RDX + 0x2],BH MOV byte ptr [RDX + 0x3],BL MOV EAX,0x4 LAB_0012a908: POP RBX POP RBP RET
int8 my_uni_utf32(int8 param_1,ulong param_2,int1 *param_3,int1 *param_4) { int8 uVar1; uVar1 = 0xffffff98; if ((param_3 + 4 <= param_4) && (uVar1 = 0, param_2 < 0x110000)) { *param_3 = 0; param_3[1] = (char)(param_2 >> 0x10); param_3[2] = (char)(param_2 >> 8); param_3[3] = (char)param_2; uVar1 = 4; } return uVar1; }
6,256
decltype(from_json_array_impl(fp, fp0, nlohmann::json_abi_v3_11_3::detail::priority_tag<3u>{}), fp.get<std::vector<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::allocator<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>>>::value_type>(), (void)()) nlohmann::json_abi_v3_11_3::detail::from_json<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::vector<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::allocator<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>>>, 0>(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&, std::vector<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::allocator<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>>>&)
monkey531[P]llama/common/json.hpp
auto from_json(const BasicJsonType& j, ConstructibleArrayType& arr) -> decltype(from_json_array_impl(j, arr, priority_tag<3> {}), j.template get<typename ConstructibleArrayType::value_type>(), void()) { if (JSON_HEDLEY_UNLIKELY(!j.is_array())) { JSON_THROW(type_error::create(302, concat("type must be array, but is ", j.type_name()), &j)); } from_json_array_impl(j, arr, priority_tag<3> {}); }
O3
cpp
decltype(from_json_array_impl(fp, fp0, nlohmann::json_abi_v3_11_3::detail::priority_tag<3u>{}), fp.get<std::vector<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::allocator<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>>>::value_type>(), (void)()) nlohmann::json_abi_v3_11_3::detail::from_json<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::vector<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::allocator<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>>>, 0>(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&, std::vector<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::allocator<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>>>&): pushq %rbp pushq %r14 pushq %rbx subq $0x30, %rsp movq %rdi, %r14 cmpb $0x2, (%rdi) jne 0xe9407 movq 0x8(%r14), %rax movq %rsi, %rdi movq %rax, %rsi addq $0x30, %rsp popq %rbx popq %r14 popq %rbp jmp 0xe9526 movl $0x20, %edi callq 0x1d5b0 movq %rax, %rbx movq %r14, %rdi callq 0x8f08a leaq 0x8(%rsp), %rdx movq %rax, (%rdx) leaq 0x30a59(%rip), %rsi # 0x119e84 leaq 0x10(%rsp), %rdi callq 0xe949d movb $0x1, %bpl leaq 0x10(%rsp), %rdx movq %rbx, %rdi movl $0x12e, %esi # imm = 0x12E movq %r14, %rcx callq 0xa9d1a xorl %ebp, %ebp leaq 0x6ad42(%rip), %rsi # 0x154198 leaq -0x5e0c9(%rip), %rdx # 0x8b394 movq %rbx, %rdi callq 0x1e5b0 movq %rax, %r14 leaq 0x20(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xe9483 movq 0x20(%rsp), %rsi incq %rsi callq 0x1dc50 testb %bpl, %bpl jne 0xe948d jmp 0xe9495 movq %rax, %r14 movq %rbx, %rdi callq 0x1d8c0 movq %r14, %rdi callq 0x1e660
_ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EETnNSt9enable_ifIXaaaaaaaasr27is_constructible_array_typeIT_T0_EE5valuentsr28is_constructible_object_typeISJ_SK_EE5valuentsr28is_constructible_string_typeISJ_SK_EE5valuentsr3std7is_sameISK_NSJ_8binary_tEEE5valuentsr13is_basic_jsonISK_EE5valueEiE4typeELi0EEEDTcmcmcl20from_json_array_implfp_fp0_tlNS1_12priority_tagILj3EEEEEcldtfp_3getINSK_10value_typeEEEcvv_EERKSJ_RSK_: push rbp; char push r14; int push rbx; __int64 sub rsp, 30h mov r14, rdi cmp byte ptr [rdi], 2 jnz short loc_E9407 mov rax, [r14+8] mov rdi, rsi mov rsi, rax add rsp, 30h pop rbx pop r14 pop rbp jmp _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EEaSERKSF_; std::vector<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=(std::vector<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&) loc_E9407: mov edi, 20h ; ' '; 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+48h+var_40] mov [rdx], rax lea rsi, aTypeMustBeArra; "type must be array, but is " lea rdi, [rsp+48h+var_38] call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA28_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[28],char const*>(char const(&)[28],char const* &&) mov bpl, 1 lea rdx, [rsp+48h+var_38] mov rdi, rbx; this mov esi, 12Eh; 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 mov r14, rax lea rax, [rsp+48h+var_28] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_E9483 mov rsi, [rsp+48h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_E9483: test bpl, bpl jnz short loc_E948D jmp short loc_E9495 mov r14, rax loc_E948D: mov rdi, rbx; void * call ___cxa_free_exception loc_E9495: mov rdi, r14 call __Unwind_Resume
long long ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EETnNSt9enable_ifIXaaaaaaaasr27is_constructible_array_typeIT_T0_EE5valuentsr28is_constructible_object_typeISJ_SK_EE5valuentsr28is_constructible_string_typeISJ_SK_EE5valuentsr3std7is_sameISK_NSJ_8binary_tEEE5valuentsr13is_basic_jsonISK_EE5valueEiE4typeELi0EEEDTcmcmcl20from_json_array_implfp_fp0_tlNS1_12priority_tagILj3EEEEEcldtfp_3getINSK_10value_typeEEEcvv_EERKSJ_RSK_( long long a1, long long a2) { nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx _QWORD v4[2]; // [rsp+10h] [rbp-38h] BYREF if ( *(_BYTE *)a1 != 2 ) { exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL); 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(&)[28],char const*>( v4, "type must be array, but is "); ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_( exception, 302, v4); __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); } return std::vector<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=( a2, *(_QWORD *)(a1 + 8)); }
_ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EETnNSt9enable_ifIXaaaaaaaasr27is_constructible_array_typeIT_T0_EE5valuentsr28is_constructible_object_typeISJ_SK_EE5valuentsr28is_constructible_string_typeISJ_SK_EE5valuentsr3std7is_sameISK_NSJ_8binary_tEEE5valuentsr13is_basic_jsonISK_EE5valueEiE4typeELi0EEEDTcmcmcl20from_json_array_implfp_fp0_tlNS1_12priority_tagILj3EEEEEcldtfp_3getINSK_10value_typeEEEcvv_EERKSJ_RSK_: PUSH RBP PUSH R14 PUSH RBX SUB RSP,0x30 MOV R14,RDI CMP byte ptr [RDI],0x2 JNZ 0x001e9407 MOV RAX,qword ptr [R14 + 0x8] MOV RDI,RSI MOV RSI,RAX ADD RSP,0x30 POP RBX POP R14 POP RBP JMP 0x001e9526 LAB_001e9407: MOV EDI,0x20 CALL 0x0011d5b0 MOV RBX,RAX MOV RDI,R14 CALL 0x0018f08a LEA RDX,[RSP + 0x8] MOV qword ptr [RDX],RAX LAB_001e9424: LEA RSI,[0x219e84] LEA RDI,[RSP + 0x10] CALL 0x001e949d MOV BPL,0x1 LAB_001e9438: LEA RDX,[RSP + 0x10] MOV RDI,RBX MOV ESI,0x12e MOV RCX,R14 CALL 0x001a9d1a XOR EBP,EBP LEA RSI,[0x254198] LEA RDX,[0x18b394] MOV RDI,RBX CALL 0x0011e5b0
void _ZN8nlohmann16json_abi_v3_11_36detail9from_jsonINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEES5_ISF_SaISF_EETnNSt9enable_ifIXaaaaaaaasr27is_constructible_array_typeIT_T0_EE5valuentsr28is_constructible_object_typeISJ_SK_EE5valuentsr28is_constructible_string_typeISJ_SK_EE5valuentsr3std7is_sameISK_NSJ_8binary_tEEE5valuentsr13is_basic_jsonISK_EE5valueEiE4typeELi0EEEDTcmcmcl20from_json_array_implfp_fp0_tlNS1_12priority_tagILj3EEEEEcldtfp_3getINSK_10value_typeEEEcvv_EERKSJ_RSK_ (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, vector<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::allocator<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_2) { int8 uVar1; char *local_40; detail local_38 [32]; 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> )0x2) { std:: vector<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::allocator<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=(param_2,*(vector **)(param_1 + 8)); return; } uVar1 = __cxa_allocate_exception(0x20); local_40 = (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 001e9424 to 001e9434 has its CatchHandler @ 001e948a */ nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[28],char_const*> (local_38,"type must be array, but is ",&local_40); /* try { // try from 001e9438 to 001e9464 has its CatchHandler @ 001e9465 */ _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_ (uVar1,0x12e,local_38,param_1); /* WARNING: Subroutine does not return */ __cxa_throw(uVar1,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo, nlohmann::json_abi_v3_11_3::detail::exception::~exception); }
6,257
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>>>>>::parse(bool, 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>&)
monkey531[P]llama/common/json.hpp
void parse(const bool strict, BasicJsonType& result) { if (callback) { json_sax_dom_callback_parser<BasicJsonType> sdp(result, callback, allow_exceptions); sax_parse_internal(&sdp); // in strict mode, input must be completely read if (strict && (get_token() != token_type::end_of_input)) { sdp.parse_error(m_lexer.get_position(), m_lexer.get_token_string(), parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), nullptr)); } // in case of an error, return discarded value if (sdp.is_errored()) { result = value_t::discarded; return; } // set top-level value to null if it was discarded by the callback // function if (result.is_discarded()) { result = nullptr; } } else { json_sax_dom_parser<BasicJsonType> sdp(result, allow_exceptions); sax_parse_internal(&sdp); // in strict mode, input must be completely read if (strict && (get_token() != token_type::end_of_input)) { sdp.parse_error(m_lexer.get_position(), m_lexer.get_token_string(), parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), nullptr)); } // in case of an error, return discarded value if (sdp.is_errored()) { result = value_t::discarded; return; } } result.assert_invariant(); }
O2
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>>>>>::parse(bool, 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>&): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x1c0, %rsp # imm = 0x1C0 movq %rdx, %rbx movl %esi, %ebp movq %rdi, %r15 cmpq $0x0, 0x10(%rdi) je 0x431bc leaq 0xc8(%rsp), %r14 movq %r14, %rdi movq %r15, %rsi callq 0x4300e movzbl 0xc0(%r15), %ecx leaq 0x108(%rsp), %rdi movq %rbx, %rsi movq %r14, %rdx callq 0x4420c leaq 0xc8(%rsp), %rdi callq 0x648c4 leaq 0x108(%rsp), %rsi movq %r15, %rdi callq 0x442d0 testb %bpl, %bpl je 0x43192 movq %r15, %rdi callq 0x434f4 cmpl $0xf, %eax je 0x43192 leaq 0x28(%r15), %rsi movq 0x48(%r15), %r14 leaq 0x70(%rsp), %rdi callq 0x44dec leaq 0x48(%r15), %rax movq 0x10(%rax), %rcx movq %rcx, 0x20(%rsp) movups (%rax), %xmm0 movaps %xmm0, 0x10(%rsp) leaq 0x4e7a5(%rip), %rsi # 0x918ae leaq 0x30(%rsp), %rdi leaq 0xf(%rsp), %rdx callq 0x2336c leaq 0x50(%rsp), %rdi pushq $0xf popq %rdx leaq 0x30(%rsp), %rcx movq %r15, %rsi callq 0x44fca leaq 0x90(%rsp), %rdi pushq $0x65 popq %rsi leaq 0x10(%rsp), %rdx leaq 0x50(%rsp), %rcx xorl %r8d, %r8d callq 0x44e94 leaq 0x108(%rsp), %rdi leaq 0x70(%rsp), %rdx leaq 0x90(%rsp), %rcx movq %r14, %rsi callq 0x44da8 leaq 0x90(%rsp), %rdi callq 0x4972a leaq 0x50(%rsp), %rdi callq 0x20de8 leaq 0x30(%rsp), %rdi callq 0x20de8 leaq 0x70(%rsp), %rdi callq 0x20de8 movb 0x180(%rsp), %bpl cmpb $0x1, %bpl jne 0x43304 leaq 0xf8(%rsp), %r14 pushq $0x9 popq %rsi movq %r14, %rdi callq 0x45166 jmp 0x4331b movb 0xc0(%r15), %al leaq 0x110(%rsp), %r14 movq %rbx, -0x8(%r14) xorps %xmm0, %xmm0 movups %xmm0, (%r14) movups %xmm0, 0x10(%r14) movb $0x0, 0x20(%r14) movb %al, 0x21(%r14) leaq 0x108(%rsp), %rsi movq %r15, %rdi callq 0x451b8 testb %bpl, %bpl je 0x432c5 movq %r15, %rdi callq 0x434f4 cmpl $0xf, %eax je 0x432c5 leaq 0x28(%r15), %rsi movq 0x48(%r15), %r12 leaq 0x70(%rsp), %rdi callq 0x44dec leaq 0x48(%r15), %rax movq 0x10(%rax), %rcx movq %rcx, 0x20(%rsp) movups (%rax), %xmm0 movaps %xmm0, 0x10(%rsp) leaq 0x4e672(%rip), %rsi # 0x918ae leaq 0x30(%rsp), %rdi leaq 0xf(%rsp), %rdx callq 0x2336c leaq 0x50(%rsp), %rdi pushq $0xf popq %rdx leaq 0x30(%rsp), %rcx movq %r15, %rsi callq 0x44fca leaq 0x90(%rsp), %rdi pushq $0x65 popq %rsi leaq 0x10(%rsp), %rdx leaq 0x50(%rsp), %rcx xorl %r8d, %r8d callq 0x44e94 leaq 0x108(%rsp), %rdi leaq 0x70(%rsp), %rdx leaq 0x90(%rsp), %rcx movq %r12, %rsi callq 0x45c90 leaq 0x90(%rsp), %rdi callq 0x4972a leaq 0x50(%rsp), %rdi callq 0x20de8 leaq 0x30(%rsp), %rdi callq 0x20de8 leaq 0x70(%rsp), %rdi callq 0x20de8 cmpb $0x1, 0x130(%rsp) jne 0x43342 leaq 0xb8(%rsp), %rdi pushq $0x9 popq %rsi callq 0x45166 leaq 0xb8(%rsp), %r15 movq %rbx, %rdi movq %r15, %rsi callq 0x2d74a movq %r15, %rdi callq 0x2d78e movq %r14, %rdi callq 0x4620c jmp 0x43355 cmpb $0x9, (%rbx) jne 0x4332e leaq 0xe8(%rsp), %r14 movq %r14, %rdi xorl %esi, %esi callq 0x2e21e movq %rbx, %rdi movq %r14, %rsi callq 0x2d74a movq %r14, %rdi callq 0x2d78e leaq 0x108(%rsp), %rdi callq 0x4517c testb %bpl, %bpl je 0x4334a jmp 0x43355 movq %r14, %rdi callq 0x4620c pushq $0x1 popq %rsi movq %rbx, %rdi callq 0x3dcd2 addq $0x1c0, %rsp # imm = 0x1C0 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0x90(%rsp), %rdi callq 0x4972a jmp 0x4337a movq %rax, %rbx leaq 0x50(%rsp), %rdi callq 0x20de8 jmp 0x43389 movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0x20de8 jmp 0x43398 movq %rax, %rbx leaq 0x70(%rsp), %rdi callq 0x20de8 jmp 0x433fc jmp 0x433f9 movq %rax, %rbx leaq 0x90(%rsp), %rdi callq 0x4972a jmp 0x433bb movq %rax, %rbx leaq 0x50(%rsp), %rdi callq 0x20de8 jmp 0x433ca movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0x20de8 jmp 0x433d9 movq %rax, %rbx leaq 0x70(%rsp), %rdi callq 0x20de8 jmp 0x43409 jmp 0x43406 movq %rax, %rbx leaq 0xc8(%rsp), %rdi callq 0x648c4 jmp 0x43416 movq %rax, %rbx movq %r14, %rdi callq 0x4620c jmp 0x43416 movq %rax, %rbx leaq 0x108(%rsp), %rdi callq 0x4517c movq %rbx, %rdi callq 0x20bf0
_ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_: push rbp push r15 push r14 push r12 push rbx sub rsp, 1C0h mov rbx, rdx mov ebp, esi mov r15, rdi cmp qword ptr [rdi+10h], 0 jz loc_431BC lea r14, [rsp+1E8h+var_120] mov rdi, r14 mov rsi, r15 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&) movzx ecx, byte ptr [r15+0C0h] lea rdi, [rsp+1E8h+var_E0] mov rsi, rbx mov rdx, r14 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; 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) lea rdi, [rsp+1E8h+var_120]; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() lea rsi, [rsp+1E8h+var_E0] mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18sax_parse_internalINS1_28json_sax_dom_callback_parserISF_EEEEbPT_; 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,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>>>::sax_parse_internal<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>>>(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>> *) test bpl, bpl jz loc_43192 mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE9get_tokenEv; 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,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(void) cmp eax, 0Fh jz loc_43192 lea rsi, [r15+28h] mov r14, [r15+48h] lea rdi, [rsp+1E8h+var_178] 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 rax, [r15+48h] mov rcx, [rax+10h] mov qword ptr [rsp+1E8h+var_1C8], rcx; int movups xmm0, xmmword ptr [rax] movaps xmmword ptr [rsp+1E8h+var_1D8], xmm0; char lea rsi, aNamespacedSetN+32h; "value" lea rdi, [rsp+1E8h+var_1B8] lea rdx, [rsp+1E8h+var_1D9] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rdi, [rsp+1E8h+var_198] push 0Fh pop rdx lea rcx, [rsp+1E8h+var_1B8] mov rsi, r15 call _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_; 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,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>>>::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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type,std::string const&) lea rdi, [rsp+1E8h+var_158]; this push 65h ; 'e' pop rsi; int lea rdx, [rsp+1E8h+var_1D8] lea rcx, [rsp+1E8h+var_198] xor r8d, r8d call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ lea rdi, [rsp+1E8h+var_E0] lea rdx, [rsp+1E8h+var_178] lea rcx, [rsp+1E8h+var_158] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11parse_errorINS1_11parse_errorEEEbmRKSB_RKT_; 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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(ulong,std::string const&,nlohmann::json_abi_v3_11_3::detail::parse_error const&) lea rdi, [rsp+1E8h+var_158]; void * call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception() lea rdi, [rsp+1E8h+var_198]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+1E8h+var_1B8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+1E8h+var_178]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_43192: mov bpl, [rsp+1E8h+var_68] cmp bpl, 1 jnz loc_43304 lea r14, [rsp+1E8h+var_F0] push 9 pop rsi mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ENS0_6detail7value_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(nlohmann::json_abi_v3_11_3::detail::value_t) jmp loc_4331B loc_431BC: mov al, [r15+0C0h] lea r14, [rsp+1E8h+var_D8] mov [r14-8], rbx xorps xmm0, xmm0 movups xmmword ptr [r14], xmm0 movups xmmword ptr [r14+10h], xmm0 mov byte ptr [r14+20h], 0 mov [r14+21h], al lea rsi, [rsp+1E8h+var_E0] mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18sax_parse_internalINS1_19json_sax_dom_parserISF_EEEEbPT_; 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,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>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>>>(nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>> *) test bpl, bpl jz loc_432C5 mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE9get_tokenEv; 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,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(void) cmp eax, 0Fh jz loc_432C5 lea rsi, [r15+28h] mov r12, [r15+48h] lea rdi, [rsp+1E8h+var_178] 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 rax, [r15+48h] mov rcx, [rax+10h] mov qword ptr [rsp+1E8h+var_1C8], rcx; int movups xmm0, xmmword ptr [rax] movaps xmmword ptr [rsp+1E8h+var_1D8], xmm0; char lea rsi, aNamespacedSetN+32h; "value" lea rdi, [rsp+1E8h+var_1B8] lea rdx, [rsp+1E8h+var_1D9] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rdi, [rsp+1E8h+var_198] push 0Fh pop rdx lea rcx, [rsp+1E8h+var_1B8] mov rsi, r15 call _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_; 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,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>>>::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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type,std::string const&) lea rdi, [rsp+1E8h+var_158]; this push 65h ; 'e' pop rsi; int lea rdx, [rsp+1E8h+var_1D8] lea rcx, [rsp+1E8h+var_198] xor r8d, r8d call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ lea rdi, [rsp+1E8h+var_E0] lea rdx, [rsp+1E8h+var_178] lea rcx, [rsp+1E8h+var_158] mov rsi, r12 call _ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11parse_errorINS1_11parse_errorEEEbmRKSB_RKT_; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(ulong,std::string const&,nlohmann::json_abi_v3_11_3::detail::parse_error const&) lea rdi, [rsp+1E8h+var_158]; void * call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception() lea rdi, [rsp+1E8h+var_198]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+1E8h+var_1B8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+1E8h+var_178]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_432C5: cmp [rsp+1E8h+var_B8], 1 jnz short loc_43342 lea rdi, [rsp+1E8h+var_130] push 9 pop rsi call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ENS0_6detail7value_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(nlohmann::json_abi_v3_11_3::detail::value_t) lea r15, [rsp+1E8h+var_130] mov rdi, rbx mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; 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=(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>) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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() mov rdi, r14 call _ZNSt12_Vector_baseIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEESaISF_EED2Ev; std::_Vector_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> *,std::allocator<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> *>>::~_Vector_base() jmp short loc_43355 loc_43304: cmp byte ptr [rbx], 9 jnz short loc_4332E lea r14, [rsp+1E8h+var_100] mov rdi, r14 xor esi, esi call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; 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(decltype(nullptr)) loc_4331B: mov rdi, rbx mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; 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=(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>) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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() loc_4332E: lea rdi, [rsp+1E8h+var_E0] call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; 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() test bpl, bpl jz short loc_4334A jmp short loc_43355 loc_43342: mov rdi, r14 call _ZNSt12_Vector_baseIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEESaISF_EED2Ev; std::_Vector_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> *,std::allocator<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> *>>::~_Vector_base() loc_4334A: push 1 pop rsi mov rdi, rbx 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_43355: add rsp, 1C0h pop rbx pop r12 pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, [rsp+arg_88]; void * call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception() jmp short loc_4337A mov rbx, rax loc_4337A: lea rdi, [rsp+arg_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_43389 mov rbx, rax loc_43389: lea rdi, [rsp+arg_28]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_43398 mov rbx, rax loc_43398: lea rdi, [rsp+arg_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_433FC jmp short loc_433F9 mov rbx, rax lea rdi, [rsp+arg_88]; void * call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception() jmp short loc_433BB mov rbx, rax loc_433BB: lea rdi, [rsp+arg_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_433CA mov rbx, rax loc_433CA: lea rdi, [rsp+arg_28]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_433D9 mov rbx, rax loc_433D9: lea rdi, [rsp+arg_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_43409 jmp short loc_43406 mov rbx, rax lea rdi, [rsp+arg_C0]; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() jmp short loc_43416 loc_433F9: mov rbx, rax loc_433FC: mov rdi, r14 call _ZNSt12_Vector_baseIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEESaISF_EED2Ev; std::_Vector_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> *,std::allocator<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> *>>::~_Vector_base() jmp short loc_43416 loc_43406: mov rbx, rax loc_43409: lea rdi, [rsp+arg_100] call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; 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() loc_43416: mov rdi, rbx call __Unwind_Resume
long 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::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>>>::parse( long long a1, char a2, char *a3, int a4, int a5, int a6) { int v7; // edx int v8; // ecx int v9; // r8d int v10; // r9d long long v11; // r14 int v12; // r8d int v13; // r9d char v14; // bp char *v15; // r14 char v16; // al long long v17; // r12 int v18; // r8d int v19; // r9d long long result; // rax int v21; // [rsp+0h] [rbp-1E8h] int v22; // [rsp+8h] [rbp-1E0h] char v23[16]; // [rsp+10h] [rbp-1D8h] char v24[16]; // [rsp+10h] [rbp-1D8h] int v25[2]; // [rsp+20h] [rbp-1C8h] int v26[2]; // [rsp+20h] [rbp-1C8h] int v27; // [rsp+28h] [rbp-1C0h] long long v28; // [rsp+30h] [rbp-1B8h] BYREF int v29; // [rsp+38h] [rbp-1B0h] int v30; // [rsp+40h] [rbp-1A8h] int v31; // [rsp+48h] [rbp-1A0h] char v32[8]; // [rsp+50h] [rbp-198h] BYREF int v33; // [rsp+58h] [rbp-190h] int v34; // [rsp+60h] [rbp-188h] int v35; // [rsp+68h] [rbp-180h] char v36[8]; // [rsp+70h] [rbp-178h] BYREF int v37; // [rsp+78h] [rbp-170h] int v38; // [rsp+80h] [rbp-168h] int v39; // [rsp+88h] [rbp-160h] char v40[40]; // [rsp+90h] [rbp-158h] BYREF char v41[16]; // [rsp+B8h] [rbp-130h] BYREF _OWORD v42[2]; // [rsp+C8h] [rbp-120h] BYREF _BYTE v43[16]; // [rsp+E8h] [rbp-100h] BYREF _BYTE v44[16]; // [rsp+F8h] [rbp-F0h] BYREF char *v45; // [rsp+108h] [rbp-E0h] BYREF _BYTE v46[32]; // [rsp+110h] [rbp-D8h] BYREF char v47; // [rsp+130h] [rbp-B8h] char v48; // [rsp+131h] [rbp-B7h] char v49; // [rsp+180h] [rbp-68h] if ( !*(_QWORD *)(a1 + 16) ) { v16 = *(_BYTE *)(a1 + 192); v45 = a3; memset(v46, 0, sizeof(v46)); v47 = 0; v48 = v16; 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>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>>>( a1, (unsigned int)&v45, (_DWORD)a3, a4, a5, a6); if ( a2 && (unsigned int)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>>>::get_token(a1) != 15 ) { v17 = *(_QWORD *)(a1 + 72); 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( v36, a1 + 40); *(_QWORD *)v26 = *(_QWORD *)(a1 + 88); *(_OWORD *)v24 = *(_OWORD *)(a1 + 72); std::string::basic_string<std::allocator<char>>(&v28, (long long)"value"); 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( (unsigned int)v32, a1, 15, (unsigned int)&v28, v18, v19); ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( (nlohmann::json_abi_v3_11_3::detail::parse_error *)v40, 101, v21, v22, v24[0], *(int *)&v24[8], v26[0], v27, v28, v29, v30, v31, v32[0], v33, v34, v35, v36[0], v37, v38, v39, v40[0]); nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>( &v45, v17, v36, v40); nlohmann::json_abi_v3_11_3::detail::exception::~exception(v40); std::string::~string(v32); std::string::~string(&v28); std::string::~string(v36); } if ( v47 == 1 ) { 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( v41, 9LL); 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=( a3, v41); 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)v41); return std::_Vector_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> *,std::allocator<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> *>>::~_Vector_base(v46); } result = std::_Vector_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> *,std::allocator<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> *>>::~_Vector_base(v46); goto LABEL_18; } 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( v42, a1); 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( &v45, a3, v42, *(unsigned __int8 *)(a1 + 192)); std::_Function_base::~_Function_base((std::_Function_base *)v42); 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>>>::sax_parse_internal<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>>>( a1, (unsigned int)&v45, v7, v8, v9, v10); if ( a2 ) { if ( (unsigned int)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>>>::get_token(a1) != 15 ) { v11 = *(_QWORD *)(a1 + 72); 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( v36, a1 + 40); *(_QWORD *)v25 = *(_QWORD *)(a1 + 88); *(_OWORD *)v23 = *(_OWORD *)(a1 + 72); std::string::basic_string<std::allocator<char>>(&v28, (long long)"value"); 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( (unsigned int)v32, a1, 15, (unsigned int)&v28, v12, v13); ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( (nlohmann::json_abi_v3_11_3::detail::parse_error *)v40, 101, v21, v22, v23[0], *(int *)&v23[8], v25[0], v27, v28, v29, v30, v31, v32[0], v33, v34, v35, v36[0], v37, v38, v39, v40[0]); 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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>( &v45, v11, v36, v40); nlohmann::json_abi_v3_11_3::detail::exception::~exception(v40); std::string::~string(v32); std::string::~string(&v28); std::string::~string(v36); } } v14 = v49; if ( v49 == 1 ) { v15 = v44; 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( v44, 9LL); } else { if ( *a3 != 9 ) goto LABEL_15; v15 = v43; 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)v43); } 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=( a3, v15); 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)v15); LABEL_15: result = 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(&v45); if ( !v14 ) LABEL_18: 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(a3); return result; }
parse: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x1c0 MOV RBX,RDX MOV EBP,ESI MOV R15,RDI CMP qword ptr [RDI + 0x10],0x0 JZ 0x001431bc LEA R14,[RSP + 0xc8] MOV RDI,R14 MOV RSI,R15 CALL 0x0014300e MOVZX ECX,byte ptr [R15 + 0xc0] LAB_00143091: LEA RDI,[RSP + 0x108] MOV RSI,RBX MOV RDX,R14 CALL 0x0014420c LEA RDI,[RSP + 0xc8] CALL 0x001648c4 LAB_001430b1: LEA RSI,[RSP + 0x108] MOV RDI,R15 CALL 0x001442d0 TEST BPL,BPL JZ 0x00143192 MOV RDI,R15 CALL 0x001434f4 CMP EAX,0xf JZ 0x00143192 LEA RSI,[R15 + 0x28] MOV R14,qword ptr [R15 + 0x48] LAB_001430e3: LEA RDI,[RSP + 0x70] CALL 0x00144dec LEA RAX,[R15 + 0x48] MOV RCX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x20],RCX MOVUPS XMM0,xmmword ptr [RAX] MOVAPS xmmword ptr [RSP + 0x10],XMM0 LAB_00143102: LEA RSI,[0x1918ae] LEA RDI,[RSP + 0x30] LEA RDX,[RSP + 0xf] CALL 0x0012336c LAB_00143118: LEA RDI,[RSP + 0x50] PUSH 0xf POP RDX LEA RCX,[RSP + 0x30] MOV RSI,R15 CALL 0x00144fca LAB_0014312d: LEA RDI,[RSP + 0x90] PUSH 0x65 POP RSI LEA RDX,[RSP + 0x10] LEA RCX,[RSP + 0x50] XOR R8D,R8D CALL 0x00144e94 LAB_0014314a: LEA RDI,[RSP + 0x108] LEA RDX,[RSP + 0x70] LEA RCX,[RSP + 0x90] MOV RSI,R14 CALL 0x00144da8 LEA RDI,[RSP + 0x90] CALL 0x0014972a LEA RDI,[RSP + 0x50] CALL 0x00120de8 LEA RDI,[RSP + 0x30] CALL 0x00120de8 LEA RDI,[RSP + 0x70] CALL 0x00120de8 LAB_00143192: MOV BPL,byte ptr [RSP + 0x180] CMP BPL,0x1 JNZ 0x00143304 LEA R14,[RSP + 0xf8] LAB_001431ac: PUSH 0x9 POP RSI MOV RDI,R14 CALL 0x00145166 JMP 0x0014331b LAB_001431bc: MOV AL,byte ptr [R15 + 0xc0] LEA R14,[RSP + 0x110] MOV qword ptr [R14 + -0x8],RBX XORPS XMM0,XMM0 MOVUPS xmmword ptr [R14],XMM0 MOVUPS xmmword ptr [R14 + 0x10],XMM0 MOV byte ptr [R14 + 0x20],0x0 MOV byte ptr [R14 + 0x21],AL LAB_001431e4: LEA RSI,[RSP + 0x108] MOV RDI,R15 CALL 0x001451b8 TEST BPL,BPL JZ 0x001432c5 MOV RDI,R15 CALL 0x001434f4 CMP EAX,0xf JZ 0x001432c5 LEA RSI,[R15 + 0x28] MOV R12,qword ptr [R15 + 0x48] LAB_00143216: LEA RDI,[RSP + 0x70] CALL 0x00144dec LEA RAX,[R15 + 0x48] MOV RCX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x20],RCX MOVUPS XMM0,xmmword ptr [RAX] MOVAPS xmmword ptr [RSP + 0x10],XMM0 LAB_00143235: LEA RSI,[0x1918ae] LEA RDI,[RSP + 0x30] LEA RDX,[RSP + 0xf] CALL 0x0012336c LAB_0014324b: LEA RDI,[RSP + 0x50] PUSH 0xf POP RDX LEA RCX,[RSP + 0x30] MOV RSI,R15 CALL 0x00144fca LAB_00143260: LEA RDI,[RSP + 0x90] PUSH 0x65 POP RSI LEA RDX,[RSP + 0x10] LEA RCX,[RSP + 0x50] XOR R8D,R8D CALL 0x00144e94 LAB_0014327d: LEA RDI,[RSP + 0x108] LEA RDX,[RSP + 0x70] LEA RCX,[RSP + 0x90] MOV RSI,R12 CALL 0x00145c90 LEA RDI,[RSP + 0x90] CALL 0x0014972a LEA RDI,[RSP + 0x50] CALL 0x00120de8 LEA RDI,[RSP + 0x30] CALL 0x00120de8 LEA RDI,[RSP + 0x70] CALL 0x00120de8 LAB_001432c5: CMP byte ptr [RSP + 0x130],0x1 JNZ 0x00143342 LAB_001432cf: LEA RDI,[RSP + 0xb8] PUSH 0x9 POP RSI CALL 0x00145166 LAB_001432df: LEA R15,[RSP + 0xb8] MOV RDI,RBX MOV RSI,R15 CALL 0x0012d74a MOV RDI,R15 CALL 0x0012d78e MOV RDI,R14 CALL 0x0014620c JMP 0x00143355 LAB_00143304: CMP byte ptr [RBX],0x9 JNZ 0x0014332e LEA R14,[RSP + 0xe8] MOV RDI,R14 XOR ESI,ESI CALL 0x0012e21e LAB_0014331b: MOV RDI,RBX MOV RSI,R14 CALL 0x0012d74a MOV RDI,R14 CALL 0x0012d78e LAB_0014332e: LEA RDI,[RSP + 0x108] CALL 0x0014517c TEST BPL,BPL JZ 0x0014334a JMP 0x00143355 LAB_00143342: MOV RDI,R14 CALL 0x0014620c LAB_0014334a: PUSH 0x1 POP RSI MOV RDI,RBX CALL 0x0013dcd2 LAB_00143355: ADD RSP,0x1c0 POP RBX POP R12 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 > > >::parse(bool, 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>&) */ void __thiscall 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>>> ::parse(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>>> *this,bool param_1,basic_json *param_2) { ulong uVar1; int iVar2; 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_00; allocator local_1d9; int8 local_1d8; int8 uStack_1d0; int8 local_1c8; string local_1b8 [32]; string local_198 [32]; string local_178 [32]; parse_error local_158 [40]; 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_130 [16]; 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>&)> local_120 [32]; 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_100 [16]; 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_f0 [16]; basic_json *local_e0; int8 local_d8; int8 uStack_d0; int8 local_c8; int8 uStack_c0; char local_b8; 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>>> local_b7; char local_68; if (*(long *)(this + 0x10) == 0) { local_b7 = this[0xc0]; local_d8 = 0; uStack_d0 = 0; local_c8 = 0; uStack_c0 = 0; local_b8 = '\0'; /* try { // try from 001431e4 to 00143204 has its CatchHandler @ 001433f9 */ local_e0 = param_2; sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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,(json_sax_dom_parser *)&local_e0); if ((param_1) && (iVar2 = get_token(this), iVar2 != 0xf)) { uVar1 = *(ulong *)(this + 0x48); /* try { // try from 00143216 to 0014321f has its CatchHandler @ 001433a4 */ 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_1c8 = *(int8 *)(this + 0x58); local_1d8 = *(int8 *)(this + 0x48); uStack_1d0 = *(int8 *)(this + 0x50); /* try { // try from 00143235 to 0014324a has its CatchHandler @ 00143395 */ std::__cxx11::string::string<std::allocator<char>>(local_1b8,"value",&local_1d9); /* try { // try from 0014324b to 0014325f has its CatchHandler @ 00143386 */ exception_message(local_198,this,0xf,local_1b8); /* try { // try from 00143260 to 0014327c has its CatchHandler @ 00143377 */ _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ (local_158,0x65,&local_1d8,local_198,0); /* try { // try from 0014327d to 00143299 has its CatchHandler @ 00143365 */ json_sax_dom_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>> ::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error> ((json_sax_dom_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>> *)&local_e0,uVar1,local_178,local_158); exception::~exception((exception *)local_158); std::__cxx11::string::~string(local_198); std::__cxx11::string::~string(local_1b8); std::__cxx11::string::~string(local_178); } if (local_b8 == '\x01') { /* try { // try from 001432cf to 001432de has its CatchHandler @ 001433f9 */ 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_130,9); 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=((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_2,local_130); 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_130); std:: _Vector_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>*,std::allocator<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>*>> ::~_Vector_base((_Vector_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>*,std::allocator<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>*>> *)&local_d8); return; } std:: _Vector_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>*,std::allocator<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>*>> ::~_Vector_base((_Vector_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>*,std::allocator<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>*>> *)&local_d8); goto LAB_0014334a; } 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(local_120,(function *)this); /* try { // try from 00143091 to 001430a3 has its CatchHandler @ 001433e7 */ 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>> *)&local_e0,param_2,local_120,this[0xc0]); std::_Function_base::~_Function_base((_Function_base *)local_120); /* try { // try from 001430b1 to 001430d1 has its CatchHandler @ 00143406 */ sax_parse_internal<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>>> (this,(json_sax_dom_callback_parser *)&local_e0); if ((param_1) && (iVar2 = get_token(this), iVar2 != 0xf)) { uVar1 = *(ulong *)(this + 0x48); /* try { // try from 001430e3 to 001430ec has its CatchHandler @ 001433e5 */ 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_1c8 = *(int8 *)(this + 0x58); local_1d8 = *(int8 *)(this + 0x48); uStack_1d0 = *(int8 *)(this + 0x50); /* try { // try from 00143102 to 00143117 has its CatchHandler @ 001433d6 */ std::__cxx11::string::string<std::allocator<char>>(local_1b8,"value",&local_1d9); /* try { // try from 00143118 to 0014312c has its CatchHandler @ 001433c7 */ exception_message(local_198,this,0xf,local_1b8); /* try { // try from 0014312d to 00143149 has its CatchHandler @ 001433b8 */ _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ (local_158,0x65,&local_1d8,local_198,0); /* try { // try from 0014314a to 00143166 has its CatchHandler @ 001433a6 */ 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>> ::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error> ((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>> *)&local_e0,uVar1,local_178,local_158); exception::~exception((exception *)local_158); std::__cxx11::string::~string(local_198); std::__cxx11::string::~string(local_1b8); std::__cxx11::string::~string(local_178); } if (local_68 == '\x01') { this_00 = local_f0; /* try { // try from 001431ac to 001431b6 has its CatchHandler @ 00143406 */ 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(this_00,9); LAB_0014331b: 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=((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_2,this_00); 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(this_00); } else if (*param_2 == '\t') { this_00 = local_100; 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((_func_decltype_nullptr *)this_00); goto LAB_0014331b; } 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>> *)&local_e0); if (local_68 != '\0') { return; } LAB_0014334a: 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(param_2,0)); return; }
6,258
bf_add_epsilon
bluesky950520[P]quickjs/libbf.c
static int bf_add_epsilon(bf_t *r, const bf_t *a, slimb_t e, int e_sign, limb_t prec, int flags) { bf_t T_s, *T = &T_s; int ret; /* small argument case: result = 1 + epsilon * sign(x) */ bf_init(a->ctx, T); bf_set_ui(T, 1); T->sign = e_sign; T->expn += e; ret = bf_add(r, r, T, prec, flags); bf_delete(T); return ret; }
O0
c
bf_add_epsilon: subq $0x68, %rsp movq %rdi, 0x60(%rsp) movq %rsi, 0x58(%rsp) movq %rdx, 0x50(%rsp) movl %ecx, 0x4c(%rsp) movq %r8, 0x40(%rsp) movl %r9d, 0x3c(%rsp) leaq 0x10(%rsp), %rax movq %rax, 0x8(%rsp) movq 0x58(%rsp), %rax movq (%rax), %rdi movq 0x8(%rsp), %rsi callq 0xe5f70 movq 0x8(%rsp), %rdi movl $0x1, %esi callq 0xe60a0 movl 0x4c(%rsp), %ecx movq 0x8(%rsp), %rax movl %ecx, 0x8(%rax) movq 0x50(%rsp), %rcx movq 0x8(%rsp), %rax addq 0x10(%rax), %rcx movq %rcx, 0x10(%rax) movq 0x60(%rsp), %rdi movq 0x60(%rsp), %rsi movq 0x8(%rsp), %rdx movq 0x40(%rsp), %rcx movl 0x3c(%rsp), %r8d callq 0xea170 movl %eax, 0x4(%rsp) movq 0x8(%rsp), %rdi callq 0xe93d0 movl 0x4(%rsp), %eax addq $0x68, %rsp retq nop
bf_add_epsilon: sub rsp, 68h mov [rsp+68h+var_8], rdi mov [rsp+68h+var_10], rsi mov [rsp+68h+var_18], rdx mov [rsp+68h+var_1C], ecx mov [rsp+68h+var_28], r8 mov [rsp+68h+var_2C], r9d lea rax, [rsp+68h+var_58] mov [rsp+68h+var_60], rax mov rax, [rsp+68h+var_10] mov rdi, [rax] mov rsi, [rsp+68h+var_60] call bf_init mov rdi, [rsp+68h+var_60] mov esi, 1 call bf_set_ui mov ecx, [rsp+68h+var_1C] mov rax, [rsp+68h+var_60] mov [rax+8], ecx mov rcx, [rsp+68h+var_18] mov rax, [rsp+68h+var_60] add rcx, [rax+10h] mov [rax+10h], rcx mov rdi, [rsp+68h+var_8] mov rsi, [rsp+68h+var_8] mov rdx, [rsp+68h+var_60] mov rcx, [rsp+68h+var_28] mov r8d, [rsp+68h+var_2C] call bf_add mov [rsp+68h+var_64], eax mov rdi, [rsp+68h+var_60] call bf_delete_0 mov eax, [rsp+68h+var_64] add rsp, 68h retn
long long bf_add_epsilon(long long a1, long long *a2, long long a3, int a4, long long a5, unsigned int a6) { long long v6; // rsi long long v7; // rdx long long v8; // rcx long long v9; // r8 long long v10; // r9 unsigned int v12; // [rsp+4h] [rbp-64h] long long v13; // [rsp+10h] [rbp-58h] BYREF int v14; // [rsp+18h] [rbp-50h] long long v15; // [rsp+20h] [rbp-48h] unsigned int v16; // [rsp+3Ch] [rbp-2Ch] long long v17; // [rsp+40h] [rbp-28h] int v18; // [rsp+4Ch] [rbp-1Ch] long long v19; // [rsp+50h] [rbp-18h] long long *v20; // [rsp+58h] [rbp-10h] long long v21; // [rsp+60h] [rbp-8h] v21 = a1; v20 = a2; v19 = a3; v18 = a4; v17 = a5; v16 = a6; bf_init(*a2, (long long)&v13); bf_set_ui((long long)&v13, 1LL); v14 = v18; v15 += v19; v6 = v21; v12 = bf_add(v21, v21, (long long)&v13, v17, v16); bf_delete_0(&v13, v6, v7, v8, v9, v10); return v12; }
bf_add_epsilon: SUB RSP,0x68 MOV qword ptr [RSP + 0x60],RDI MOV qword ptr [RSP + 0x58],RSI MOV qword ptr [RSP + 0x50],RDX MOV dword ptr [RSP + 0x4c],ECX MOV qword ptr [RSP + 0x40],R8 MOV dword ptr [RSP + 0x3c],R9D LEA RAX,[RSP + 0x10] MOV qword ptr [RSP + 0x8],RAX MOV RAX,qword ptr [RSP + 0x58] MOV RDI,qword ptr [RAX] MOV RSI,qword ptr [RSP + 0x8] CALL 0x001e5f70 MOV RDI,qword ptr [RSP + 0x8] MOV ESI,0x1 CALL 0x001e60a0 MOV ECX,dword ptr [RSP + 0x4c] MOV RAX,qword ptr [RSP + 0x8] MOV dword ptr [RAX + 0x8],ECX MOV RCX,qword ptr [RSP + 0x50] MOV RAX,qword ptr [RSP + 0x8] ADD RCX,qword ptr [RAX + 0x10] MOV qword ptr [RAX + 0x10],RCX MOV RDI,qword ptr [RSP + 0x60] MOV RSI,qword ptr [RSP + 0x60] MOV RDX,qword ptr [RSP + 0x8] MOV RCX,qword ptr [RSP + 0x40] MOV R8D,dword ptr [RSP + 0x3c] CALL 0x001ea170 MOV dword ptr [RSP + 0x4],EAX MOV RDI,qword ptr [RSP + 0x8] CALL 0x001e93d0 MOV EAX,dword ptr [RSP + 0x4] ADD RSP,0x68 RET
int4 bf_add_epsilon(int8 param_1,int8 *param_2,long param_3,int4 param_4, int8 param_5,int4 param_6) { int4 uVar1; int1 local_58 [8]; int4 local_50; long local_48; int4 local_2c; int8 local_28; int4 local_1c; long local_18; int8 *local_10; int8 local_8; local_2c = param_6; local_28 = param_5; local_1c = param_4; local_18 = param_3; local_10 = param_2; local_8 = param_1; bf_init(*param_2,local_58); bf_set_ui(local_58,1); local_50 = local_1c; local_48 = local_18 + local_48; uVar1 = bf_add(local_8,local_8,local_58,local_28,local_2c); bf_delete(local_58); return uVar1; }
6,259
bf_add_epsilon
bluesky950520[P]quickjs/libbf.c
static int bf_add_epsilon(bf_t *r, const bf_t *a, slimb_t e, int e_sign, limb_t prec, int flags) { bf_t T_s, *T = &T_s; int ret; /* small argument case: result = 1 + epsilon * sign(x) */ bf_init(a->ctx, T); bf_set_ui(T, 1); T->sign = e_sign; T->expn += e; ret = bf_add(r, r, T, prec, flags); bf_delete(T); return ret; }
O1
c
bf_add_epsilon: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movl %r9d, %ebx movq %r8, %r14 movl %ecx, %ebp movq %rdx, %r15 movq %rdi, %r12 movq (%rsi), %rax movq %rsp, %r13 movq %rax, (%r13) movl $0x0, 0x8(%r13) movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000 movq %rax, 0x10(%r13) xorps %xmm0, %xmm0 movups %xmm0, 0x18(%r13) movl $0x1, %esi movq %r13, %rdi callq 0x84abb movl %ebp, 0x8(%r13) addq %r15, 0x10(%r13) leaq -0x30d6(%rip), %r9 # 0x87bd4 movq %r12, %rdi movq %r12, %rsi movq %r13, %rdx movq %r14, %rcx movl %ebx, %r8d callq 0x87b3a movl %eax, %ebx movq (%r13), %rax testq %rax, %rax je 0x8acdb movq 0x20(%rsp), %rsi testq %rsi, %rsi je 0x8acdb movq (%rax), %rdi xorl %edx, %edx callq *0x8(%rax) movl %ebx, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
bf_add_epsilon: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov ebx, r9d mov r14, r8 mov ebp, ecx mov r15, rdx mov r12, rdi mov rax, [rsi] mov r13, rsp mov [r13+0], rax mov dword ptr [r13+8], 0 mov rax, 8000000000000000h mov [r13+10h], rax xorps xmm0, xmm0 movups xmmword ptr [r13+18h], xmm0 mov esi, 1 mov rdi, r13 call bf_set_ui mov [r13+8], ebp add [r13+10h], r15 lea r9, __bf_add mov rdi, r12 mov rsi, r12 mov rdx, r13 mov rcx, r14 mov r8d, ebx call bf_op2 mov ebx, eax mov rax, [r13+0] test rax, rax jz short loc_8ACDB mov rsi, [rsp+58h+var_38] test rsi, rsi jz short loc_8ACDB mov rdi, [rax] xor edx, edx call qword ptr [rax+8] loc_8ACDB: mov eax, ebx add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long bf_add_epsilon(__int128 *a1, _QWORD *a2, long long a3, int a4, long long a5, unsigned int a6) { unsigned int v10; // ebx __int128 v12; // [rsp+0h] [rbp-58h] BYREF unsigned long long v13; // [rsp+10h] [rbp-48h] __int128 v14; // [rsp+18h] [rbp-40h] *(_QWORD *)&v12 = *a2; DWORD2(v12) = 0; v13 = 0x8000000000000000LL; v14 = 0LL; bf_set_ui((_QWORD **)&v12, 1uLL); DWORD2(v12) = a4; v13 += a3; v10 = bf_op2(a1, a1, &v12, a5, a6, (long long ( *)(__int128 *))_bf_add); if ( (_QWORD)v12 && *((_QWORD *)&v14 + 1) ) (*(void ( **)(_QWORD, _QWORD, _QWORD))(v12 + 8))(*(_QWORD *)v12, *((_QWORD *)&v14 + 1), 0LL); return v10; }
bf_add_epsilon: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV EBX,R9D MOV R14,R8 MOV EBP,ECX MOV R15,RDX MOV R12,RDI MOV RAX,qword ptr [RSI] MOV R13,RSP MOV qword ptr [R13],RAX MOV dword ptr [R13 + 0x8],0x0 MOV RAX,-0x8000000000000000 MOV qword ptr [R13 + 0x10],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [R13 + 0x18],XMM0 MOV ESI,0x1 MOV RDI,R13 CALL 0x00184abb MOV dword ptr [R13 + 0x8],EBP ADD qword ptr [R13 + 0x10],R15 LEA R9,[0x187bd4] MOV RDI,R12 MOV RSI,R12 MOV RDX,R13 MOV RCX,R14 MOV R8D,EBX CALL 0x00187b3a MOV EBX,EAX MOV RAX,qword ptr [R13] TEST RAX,RAX JZ 0x0018acdb MOV RSI,qword ptr [RSP + 0x20] TEST RSI,RSI JZ 0x0018acdb MOV RDI,qword ptr [RAX] XOR EDX,EDX CALL qword ptr [RAX + 0x8] LAB_0018acdb: MOV EAX,EBX ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int4 bf_add_epsilon(int8 param_1,int8 *param_2,long param_3,int4 param_4, int8 param_5,int4 param_6) { int4 uVar1; int8 *local_58; int4 local_50; long local_48; int8 local_40; long lStack_38; local_58 = (int8 *)*param_2; local_50 = 0; local_48 = -0x8000000000000000; local_40 = 0; lStack_38 = 0; bf_set_ui(&local_58,1); local_48 = local_48 + param_3; local_50 = param_4; uVar1 = bf_op2(param_1,param_1,&local_58,param_5,param_6,__bf_add); if ((local_58 != (int8 *)0x0) && (lStack_38 != 0)) { (*(code *)local_58[1])(*local_58,lStack_38,0); } return uVar1; }
6,260
bf_add_epsilon
bluesky950520[P]quickjs/libbf.c
static int bf_add_epsilon(bf_t *r, const bf_t *a, slimb_t e, int e_sign, limb_t prec, int flags) { bf_t T_s, *T = &T_s; int ret; /* small argument case: result = 1 + epsilon * sign(x) */ bf_init(a->ctx, T); bf_set_ui(T, 1); T->sign = e_sign; T->expn += e; ret = bf_add(r, r, T, prec, flags); bf_delete(T); return ret; }
O2
c
bf_add_epsilon: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movl %r9d, %ebx movq %r8, %r14 movl %ecx, %ebp movq %rdx, %r15 movq %rdi, %r12 movq (%rsi), %rax movq %rsp, %r13 movq %rax, (%r13) andl $0x0, 0x8(%r13) movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000 movq %rax, 0x10(%r13) xorps %xmm0, %xmm0 movups %xmm0, 0x18(%r13) pushq $0x1 popq %rsi movq %r13, %rdi callq 0x6f556 movl %ebp, 0x8(%r13) addq %r15, 0x10(%r13) movq %r12, %rdi movq %r12, %rsi movq %r13, %rdx movq %r14, %rcx movl %ebx, %r8d callq 0x71c49 movl %eax, %ebx movq %r13, %rdi callq 0x7145e movl %ebx, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
bf_add_epsilon: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov ebx, r9d mov r14, r8 mov ebp, ecx mov r15, rdx mov r12, rdi mov rax, [rsi] mov r13, rsp mov [r13+0], rax and dword ptr [r13+8], 0 mov rax, 8000000000000000h mov [r13+10h], rax xorps xmm0, xmm0 movups xmmword ptr [r13+18h], xmm0 push 1 pop rsi mov rdi, r13 call bf_set_ui mov [r13+8], ebp add [r13+10h], r15 mov rdi, r12 mov rsi, r12 mov rdx, r13 mov rcx, r14 mov r8d, ebx call bf_add mov ebx, eax mov rdi, r13 call bf_delete_0 mov eax, ebx add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long bf_add_epsilon(long long a1, long long *a2, long long a3, int a4, long long a5, unsigned int a6) { unsigned int v10; // ebx long long v12; // [rsp+0h] [rbp-58h] BYREF int v13; // [rsp+8h] [rbp-50h] unsigned long long v14; // [rsp+10h] [rbp-48h] __int128 v15; // [rsp+18h] [rbp-40h] v12 = *a2; v13 = 0; v14 = 0x8000000000000000LL; v15 = 0LL; bf_set_ui((long long)&v12, 1uLL); v13 = a4; v14 += a3; v10 = bf_add(a1, a1, (long long)&v12, a5, a6); bf_delete_0(&v12); return v10; }
bf_add_epsilon: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV EBX,R9D MOV R14,R8 MOV EBP,ECX MOV R15,RDX MOV R12,RDI MOV RAX,qword ptr [RSI] MOV R13,RSP MOV qword ptr [R13],RAX AND dword ptr [R13 + 0x8],0x0 MOV RAX,-0x8000000000000000 MOV qword ptr [R13 + 0x10],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [R13 + 0x18],XMM0 PUSH 0x1 POP RSI MOV RDI,R13 CALL 0x0016f556 MOV dword ptr [R13 + 0x8],EBP ADD qword ptr [R13 + 0x10],R15 MOV RDI,R12 MOV RSI,R12 MOV RDX,R13 MOV RCX,R14 MOV R8D,EBX CALL 0x00171c49 MOV EBX,EAX MOV RDI,R13 CALL 0x0017145e MOV EAX,EBX ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int4 bf_add_epsilon(int8 param_1,int8 *param_2,long param_3,int4 param_4, int8 param_5,int4 param_6) { int4 uVar1; int8 local_58; int4 local_50; long local_48; int8 local_40; int8 uStack_38; local_58 = *param_2; local_50 = 0; local_48 = -0x8000000000000000; local_40 = 0; uStack_38 = 0; bf_set_ui(&local_58,1); local_48 = local_48 + param_3; local_50 = param_4; uVar1 = bf_add(param_1,param_1,&local_58,param_5,param_6); bf_delete(&local_58); return uVar1; }
6,261
bf_add_epsilon
bluesky950520[P]quickjs/libbf.c
static int bf_add_epsilon(bf_t *r, const bf_t *a, slimb_t e, int e_sign, limb_t prec, int flags) { bf_t T_s, *T = &T_s; int ret; /* small argument case: result = 1 + epsilon * sign(x) */ bf_init(a->ctx, T); bf_set_ui(T, 1); T->sign = e_sign; T->expn += e; ret = bf_add(r, r, T, prec, flags); bf_delete(T); return ret; }
O3
c
bf_add_epsilon: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movl %r9d, %ebx movq %r8, %r14 movl %ecx, %ebp movq %rdx, %r15 movq %rdi, %r12 movq %rsp, %r13 movq %rsi, (%r13) movl $0x0, 0x8(%r13) movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000 movq %rax, 0x10(%r13) xorps %xmm0, %xmm0 movups %xmm0, 0x18(%r13) movl $0x1, %esi movq %r13, %rdi callq 0x87504 movl %ebp, 0x8(%r13) addq %r15, 0x10(%r13) leaq -0x306c(%rip), %r9 # 0x8a6d3 movq %r12, %rdi movq %r12, %rsi movq %r13, %rdx movq %r14, %rcx movl %ebx, %r8d callq 0x8a639 movl %eax, %ebx movq (%r13), %rax testq %rax, %rax je 0x8d770 movq 0x20(%rsp), %rsi testq %rsi, %rsi je 0x8d770 movq (%rax), %rdi xorl %edx, %edx callq *0x8(%rax) movl %ebx, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
bf_add_epsilon: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov ebx, r9d mov r14, r8 mov ebp, ecx mov r15, rdx mov r12, rdi mov r13, rsp mov [r13+0], rsi mov dword ptr [r13+8], 0 mov rax, 8000000000000000h mov [r13+10h], rax xorps xmm0, xmm0 movups xmmword ptr [r13+18h], xmm0 mov esi, 1 mov rdi, r13 call bf_set_ui mov [r13+8], ebp add [r13+10h], r15 lea r9, __bf_add mov rdi, r12 mov rsi, r12 mov rdx, r13 mov rcx, r14 mov r8d, ebx call bf_op2 mov ebx, eax mov rax, [r13+0] test rax, rax jz short loc_8D770 mov rsi, [rsp+58h+var_38] test rsi, rsi jz short loc_8D770 mov rdi, [rax] xor edx, edx call qword ptr [rax+8] loc_8D770: mov eax, ebx add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long bf_add_epsilon(__int128 *a1, long long a2, long long a3, int a4, long long a5, unsigned int a6) { unsigned int v10; // ebx __int128 v12; // [rsp+0h] [rbp-58h] BYREF unsigned long long v13; // [rsp+10h] [rbp-48h] __int128 v14; // [rsp+18h] [rbp-40h] *(_QWORD *)&v12 = a2; DWORD2(v12) = 0; v13 = 0x8000000000000000LL; v14 = 0LL; bf_set_ui((_QWORD **)&v12, 1uLL); DWORD2(v12) = a4; v13 += a3; v10 = bf_op2(a1, a1, &v12, a5, a6, (long long ( *)(__int128 *))_bf_add); if ( (_QWORD)v12 && *((_QWORD *)&v14 + 1) ) (*(void ( **)(_QWORD, _QWORD, _QWORD))(v12 + 8))(*(_QWORD *)v12, *((_QWORD *)&v14 + 1), 0LL); return v10; }
bf_add_epsilon: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV EBX,R9D MOV R14,R8 MOV EBP,ECX MOV R15,RDX MOV R12,RDI MOV R13,RSP MOV qword ptr [R13],RSI MOV dword ptr [R13 + 0x8],0x0 MOV RAX,-0x8000000000000000 MOV qword ptr [R13 + 0x10],RAX XORPS XMM0,XMM0 MOVUPS xmmword ptr [R13 + 0x18],XMM0 MOV ESI,0x1 MOV RDI,R13 CALL 0x00187504 MOV dword ptr [R13 + 0x8],EBP ADD qword ptr [R13 + 0x10],R15 LEA R9,[0x18a6d3] MOV RDI,R12 MOV RSI,R12 MOV RDX,R13 MOV RCX,R14 MOV R8D,EBX CALL 0x0018a639 MOV EBX,EAX MOV RAX,qword ptr [R13] TEST RAX,RAX JZ 0x0018d770 MOV RSI,qword ptr [RSP + 0x20] TEST RSI,RSI JZ 0x0018d770 MOV RDI,qword ptr [RAX] XOR EDX,EDX CALL qword ptr [RAX + 0x8] LAB_0018d770: MOV EAX,EBX ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int4 bf_add_epsilon(int8 param_1,int8 *param_2,long param_3,int4 param_4, int8 param_5,int4 param_6) { int4 uVar1; int8 *local_58; int4 local_50; long local_48; int8 local_40; long lStack_38; local_50 = 0; local_48 = -0x8000000000000000; local_40 = 0; lStack_38 = 0; local_58 = param_2; bf_set_ui(&local_58,1); local_48 = local_48 + param_3; local_50 = param_4; uVar1 = bf_op2(param_1,param_1,&local_58,param_5,param_6,__bf_add); if ((local_58 != (int8 *)0x0) && (lStack_38 != 0)) { (*(code *)local_58[1])(*local_58,lStack_38,0); } return uVar1; }
6,262
POINTonE2_on_curve
corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/e2.c
static bool_t POINTonE2_on_curve(const POINTonE2 *p) { vec384x XXX, YY, BZ6; limb_t inf = vec_is_zero(p->Z, sizeof(p->Z)); sqr_fp2(BZ6, p->Z); mul_fp2(BZ6, BZ6, p->Z); sqr_fp2(XXX, BZ6); /* Z^6 */ mul_by_b_onE2(BZ6, XXX); /* B*Z^6 */ sqr_fp2(XXX, p->X); mul_fp2(XXX, XXX, p->X); /* X^3 */ add_fp2(XXX, XXX, BZ6); /* X^3 + B*Z^6 */ sqr_fp2(YY, p->Y); /* Y^2 */ return vec_is_equal(XXX, YY, sizeof(XXX)) | inf; }
O0
c
POINTonE2_on_curve: pushq %rbp movq %rsp, %rbp subq $0x140, %rsp # imm = 0x140 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi addq $0xc0, %rdi movl $0x60, %esi callq 0x23820 movq %rax, -0x138(%rbp) leaq -0x130(%rbp), %rdi movq -0x8(%rbp), %rsi addq $0xc0, %rsi callq 0x312a0 leaq -0x130(%rbp), %rdi leaq -0x130(%rbp), %rsi movq -0x8(%rbp), %rdx addq $0xc0, %rdx callq 0x31230 leaq -0x70(%rbp), %rdi leaq -0x130(%rbp), %rsi callq 0x312a0 leaq -0x130(%rbp), %rdi leaq -0x70(%rbp), %rsi callq 0x362c0 leaq -0x70(%rbp), %rdi movq -0x8(%rbp), %rsi callq 0x312a0 leaq -0x70(%rbp), %rdi leaq -0x70(%rbp), %rsi movq -0x8(%rbp), %rdx callq 0x31230 leaq -0x70(%rbp), %rdi leaq -0x70(%rbp), %rsi leaq -0x130(%rbp), %rdx callq 0x31000 leaq -0xd0(%rbp), %rdi movq -0x8(%rbp), %rsi addq $0x60, %rsi callq 0x312a0 leaq -0x70(%rbp), %rdi leaq -0xd0(%rbp), %rsi movl $0x60, %edx callq 0x26010 orq -0x138(%rbp), %rax addq $0x140, %rsp # imm = 0x140 popq %rbp retq nopl (%rax,%rax)
POINTonE2_on_curve: push rbp mov rbp, rsp sub rsp, 140h mov [rbp+var_8], rdi mov rdi, [rbp+var_8] add rdi, 0C0h mov esi, 60h ; '`' call vec_is_zero mov [rbp+var_138], rax lea rdi, [rbp+var_130] mov rsi, [rbp+var_8] add rsi, 0C0h call sqr_fp2 lea rdi, [rbp+var_130] lea rsi, [rbp+var_130] mov rdx, [rbp+var_8] add rdx, 0C0h call mul_fp2 lea rdi, [rbp+var_70] lea rsi, [rbp+var_130] call sqr_fp2 lea rdi, [rbp+var_130] lea rsi, [rbp+var_70] call mul_by_b_onE2 lea rdi, [rbp+var_70] mov rsi, [rbp+var_8] call sqr_fp2 lea rdi, [rbp+var_70] lea rsi, [rbp+var_70] mov rdx, [rbp+var_8] call mul_fp2 lea rdi, [rbp+var_70] lea rsi, [rbp+var_70] lea rdx, [rbp+var_130] call add_fp2 lea rdi, [rbp+var_D0] mov rsi, [rbp+var_8] add rsi, 60h ; '`' call sqr_fp2 lea rdi, [rbp+var_70] lea rsi, [rbp+var_D0] mov edx, 60h ; '`' call vec_is_equal or rax, [rbp+var_138] add rsp, 140h pop rbp retn
unsigned long long POINTonE2_on_curve(long long a1) { unsigned long long is_zero; // [rsp+8h] [rbp-138h] _BYTE v3[96]; // [rsp+10h] [rbp-130h] BYREF _BYTE v4[96]; // [rsp+70h] [rbp-D0h] BYREF _BYTE v5[104]; // [rsp+D0h] [rbp-70h] BYREF long long v6; // [rsp+138h] [rbp-8h] v6 = a1; is_zero = vec_is_zero(a1 + 192, 0x60uLL); sqr_fp2(v3, a1 + 192); mul_fp2(v3, v3, v6 + 192); sqr_fp2(v5, v3); mul_by_b_onE2(v3, v5); sqr_fp2(v5, v6); mul_fp2(v5, v5, v6); add_fp2(v5, v5, v3); sqr_fp2(v4, v6 + 96); return is_zero | vec_is_equal((long long)v5, (long long)v4, 0x60uLL); }
POINTonE2_on_curve: PUSH RBP MOV RBP,RSP SUB RSP,0x140 MOV qword ptr [RBP + -0x8],RDI MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0xc0 MOV ESI,0x60 CALL 0x00123820 MOV qword ptr [RBP + -0x138],RAX LEA RDI,[RBP + -0x130] MOV RSI,qword ptr [RBP + -0x8] ADD RSI,0xc0 CALL 0x001312a0 LEA RDI,[RBP + -0x130] LEA RSI,[RBP + -0x130] MOV RDX,qword ptr [RBP + -0x8] ADD RDX,0xc0 CALL 0x00131230 LEA RDI,[RBP + -0x70] LEA RSI,[RBP + -0x130] CALL 0x001312a0 LEA RDI,[RBP + -0x130] LEA RSI,[RBP + -0x70] CALL 0x001362c0 LEA RDI,[RBP + -0x70] MOV RSI,qword ptr [RBP + -0x8] CALL 0x001312a0 LEA RDI,[RBP + -0x70] LEA RSI,[RBP + -0x70] MOV RDX,qword ptr [RBP + -0x8] CALL 0x00131230 LEA RDI,[RBP + -0x70] LEA RSI,[RBP + -0x70] LEA RDX,[RBP + -0x130] CALL 0x00131000 LEA RDI,[RBP + -0xd0] MOV RSI,qword ptr [RBP + -0x8] ADD RSI,0x60 CALL 0x001312a0 LEA RDI,[RBP + -0x70] LEA RSI,[RBP + -0xd0] MOV EDX,0x60 CALL 0x00126010 OR RAX,qword ptr [RBP + -0x138] ADD RSP,0x140 POP RBP RET
ulong POINTonE2_on_curve(long param_1) { ulong uVar1; ulong uVar2; int1 local_138 [96]; int1 local_d8 [96]; int1 local_78 [104]; long local_10; local_10 = param_1; uVar1 = vec_is_zero(param_1 + 0xc0,0x60); sqr_fp2(local_138,local_10 + 0xc0); mul_fp2(local_138,local_138,local_10 + 0xc0); sqr_fp2(local_78,local_138); mul_by_b_onE2(local_138,local_78); sqr_fp2(local_78,local_10); mul_fp2(local_78,local_78,local_10); add_fp2(local_78,local_78,local_138); sqr_fp2(local_d8,local_10 + 0x60); uVar2 = vec_is_equal(local_78,local_d8,0x60); return uVar2 | uVar1; }
6,263
mi_pack_key
eloqsql/storage/myisam/mi_key.c
uint _mi_pack_key(register MI_INFO *info, uint keynr, uchar *key, uchar *old, key_part_map keypart_map, HA_KEYSEG **last_used_keyseg) { uchar *start_key=key; HA_KEYSEG *keyseg; my_bool is_ft= info->s->keyinfo[keynr].flag & HA_FULLTEXT; DBUG_ENTER("_mi_pack_key"); /* "one part" rtree key is 2*SPDIMS part key in MyISAM */ if (info->s->keyinfo[keynr].key_alg == HA_KEY_ALG_RTREE) keypart_map= (((key_part_map)1) << (2*SPDIMS)) - 1; /* only key prefixes are supported */ DBUG_ASSERT(((keypart_map+1) & keypart_map) == 0); for (keyseg= info->s->keyinfo[keynr].seg ; keyseg->type && keypart_map; old+= keyseg->length, keyseg++) { enum ha_base_keytype type= (enum ha_base_keytype) keyseg->type; size_t length= keyseg->length; size_t char_length; uchar *pos; CHARSET_INFO *cs=keyseg->charset; keypart_map>>= 1; if (keyseg->null_bit) { if (!(*key++= (char) 1-*old++)) /* Copy null marker */ { if (keyseg->flag & (HA_VAR_LENGTH_PART | HA_BLOB_PART)) old+= 2; continue; /* Found NULL */ } } char_length= (!is_ft && cs && cs->mbmaxlen > 1) ? length/cs->mbmaxlen : length; pos=old; if (keyseg->flag & HA_SPACE_PACK) { if (type == HA_KEYTYPE_NUM) { uchar *end= pos + length; while (pos < end && pos[0] == ' ') pos++; length= (size_t)(end - pos); } else if (type != HA_KEYTYPE_BINARY) { length= my_ci_lengthsp(cs, (char*) pos, length); } FIX_LENGTH(cs, pos, length, char_length); store_key_length_inc(key,char_length); memcpy(key,pos,char_length); key+= char_length; continue; } else if (keyseg->flag & (HA_VAR_LENGTH_PART | HA_BLOB_PART)) { /* Length of key-part used with mi_rkey() always 2 */ uint tmp_length=uint2korr(pos); pos+=2; set_if_smaller(length,tmp_length); /* Safety */ FIX_LENGTH(cs, pos, length, char_length); store_key_length_inc(key,char_length); old+=2; /* Skip length */ memcpy(key, pos, char_length); key+= char_length; continue; } else if (keyseg->flag & HA_SWAP_KEY) { /* Numerical column */ pos+=length; while (length--) *key++ = *--pos; continue; } FIX_LENGTH(cs, pos, length, char_length); memcpy((uchar*) key, pos, char_length); if (length > char_length) my_ci_fill(cs, (char*) key+char_length, length-char_length, ' '); key+= length; } if (last_used_keyseg) *last_used_keyseg= keyseg; DBUG_RETURN((uint) (key-start_key)); }
O3
c
mi_pack_key: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %r9, -0x50(%rbp) movq (%rdi), %rax movq 0x218(%rax), %rax movl %esi, %esi imulq $0x70, %rsi, %rsi cmpb $0x2, 0xc(%rax,%rsi) movq %rcx, %r12 movl $0xf, %r15d cmovneq %r8, %r15 movq %rdx, -0x40(%rbp) movq 0x28(%rax,%rsi), %r14 movb 0x18(%r14), %cl testb %cl, %cl je 0x7b6dc testq %r15, %r15 je 0x7b6dc addq %rsi, %rax movzwl 0xa(%rax), %eax movw %ax, -0x32(%rbp) movq -0x40(%rbp), %rdi movzwl 0x14(%r14), %ebx movq (%r14), %r13 cmpb $0x0, 0x19(%r14) je 0x7b499 leaq 0x1(%r12), %rdx movb (%r12), %sil leaq 0x1(%rdi), %rax movq %rdi, %r8 leal -0x1(%rsi), %edi negb %dil movb %dil, (%r8) decb %sil jne 0x7b493 addq $0x3, %r12 testb $0x28, 0x12(%r14) cmoveq %rdx, %r12 movq %rax, %rdi jmp 0x7b69a movq %rdx, %r12 movq %rax, %rdi movq %rbx, %rdx cmpb $0x0, -0x32(%rbp) js 0x7b4c1 movq %rbx, %rdx testq %r13, %r13 je 0x7b4c1 movl 0x9c(%r13), %esi movq %rbx, %rdx cmpl $0x2, %esi jb 0x7b4c1 movl %ebx, %eax xorl %edx, %edx divl %esi movl %eax, %edx movzwl 0x12(%r14), %eax testb $0x1, %al jne 0x7b529 testb $0x28, %al je 0x7b56b movzwl (%r12), %eax addq $0x2, %r12 cmpw %ax, %bx cmovbl %ebx, %eax movzwl %ax, %ebx cmpl %ebx, %edx jae 0x7b50a movq %rdx, %rcx leaq (%r12,%rbx), %rdx movq 0xb8(%r13), %rax movq %rdi, -0x30(%rbp) movq %r13, %rdi movq %r12, %rsi callq *0x10(%rax) movq -0x30(%rbp), %rdi movq %rax, %rdx cmpq %rbx, %rdx cmovaeq %rbx, %rdx cmpq $0xff, %rdx jae 0x7b678 leaq 0x1(%rdi), %rbx movl %edx, %eax jmp 0x7b684 cmpb $0x2, %cl movq %r15, -0x48(%rbp) je 0x7b60e movzbl %cl, %eax cmpl $0x7, %eax jne 0x7b5ea movq %rbx, %rax addq %r12, %rax movq %r12, %r15 testl %ebx, %ebx je 0x7b560 movq %r12, %r15 cmpb $0x20, (%r15) jne 0x7b560 incq %r15 cmpq %rax, %r15 jb 0x7b552 subq %r15, %rax movq %rax, %rbx jmp 0x7b611 testb $0x40, %al jne 0x7b6c6 cmpl %ebx, %edx movq %r15, -0x48(%rbp) jae 0x7b59b movq %rdx, %rcx leaq (%r12,%rbx), %rdx movq 0xb8(%r13), %rax movq %rdi, %r15 movq %r13, %rdi movq %r12, %rsi callq *0x10(%rax) movq %r15, %rdi movq %rax, %rdx movq %rdx, -0x58(%rbp) cmpq %rbx, %rdx movq %rbx, %r15 cmovbq %rdx, %r15 movq %rdi, -0x30(%rbp) movq %r12, %rsi movq %r15, %rdx callq 0x29080 cmpq %rbx, -0x58(%rbp) jae 0x7b5de movq -0x30(%rbp), %rax leaq (%rax,%r15), %rsi movq %rbx, %rdx subq %r15, %rdx movq 0xb8(%r13), %rax movq %r13, %rdi movl $0x20, %ecx callq *0x78(%rax) movq -0x30(%rbp), %rdi addq %rbx, %rdi jmp 0x7b672 movq 0xb8(%r13), %rax movq %rdi, -0x30(%rbp) movq %r13, %rdi movq %r12, %rsi movq %rdx, %r15 movq %rbx, %rdx callq *0x18(%rax) movq %r15, %rdx movq -0x30(%rbp), %rdi movq %rax, %rbx movq %r12, %r15 cmpq %rdx, %rbx jbe 0x7b638 movq %rdx, %rcx leaq (%r15,%rbx), %rdx movq 0xb8(%r13), %rax movq %rdi, -0x30(%rbp) movq %r13, %rdi movq %r15, %rsi callq *0x10(%rax) movq -0x30(%rbp), %rdi movq %rax, %rdx cmpq %rbx, %rdx cmovbq %rdx, %rbx cmpq $0xff, %rbx jae 0x7b650 leaq 0x1(%rdi), %r13 movl %ebx, %eax jmp 0x7b65c movb %bl, 0x2(%rdi) movb %bh, 0x1(%rdi) leaq 0x3(%rdi), %r13 movb $-0x1, %al movb %al, (%rdi) movq %r13, %rdi movq %r15, %rsi movq %rbx, %rdx callq 0x29080 addq %rbx, %r13 movq %r13, %rdi movq -0x48(%rbp), %r15 jmp 0x7b69a movb %dl, 0x2(%rdi) movb %dh, 0x1(%rdi) leaq 0x3(%rdi), %rbx movb $-0x1, %al movb %al, (%rdi) movq %rbx, %rdi movq %r12, %rsi movq %rdx, %r13 callq 0x29080 addq %r13, %rbx movq %rbx, %rdi leaq 0x20(%r14), %rax movb 0x38(%r14), %cl testb %cl, %cl je 0x7b6e3 movq %r15, %rdx shrq %rdx movzwl 0x14(%r14), %esi addq %rsi, %r12 movq %rax, %r14 cmpq $0x1, %r15 movq %rdx, %r15 ja 0x7b451 jmp 0x7b6e3 testq %rbx, %rbx je 0x7b69a movb -0x1(%r12,%rbx), %cl movb %cl, (%rdi) incq %rdi decq %rbx jne 0x7b6cb jmp 0x7b69a movq %r14, %rax movq -0x40(%rbp), %rdi movq -0x50(%rbp), %rcx testq %rcx, %rcx je 0x7b6ef movq %rax, (%rcx) subl -0x40(%rbp), %edi movl %edi, %eax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_mi_pack_key: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov [rbp+var_50], r9 mov rax, [rdi] mov rax, [rax+218h] mov esi, esi imul rsi, 70h ; 'p' cmp byte ptr [rax+rsi+0Ch], 2 mov r12, rcx mov r15d, 0Fh cmovnz r15, r8 mov [rbp+var_40], rdx mov r14, [rax+rsi+28h] mov cl, [r14+18h] test cl, cl jz loc_7B6DC test r15, r15 jz loc_7B6DC add rax, rsi movzx eax, word ptr [rax+0Ah] mov [rbp+var_32], ax mov rdi, [rbp+var_40] loc_7B451: movzx ebx, word ptr [r14+14h] mov r13, [r14] cmp byte ptr [r14+19h], 0 jz short loc_7B499 lea rdx, [r12+1] mov sil, [r12] lea rax, [rdi+1] mov r8, rdi lea edi, [rsi-1] neg dil mov [r8], dil dec sil jnz short loc_7B493 add r12, 3 test byte ptr [r14+12h], 28h cmovz r12, rdx mov rdi, rax jmp loc_7B69A loc_7B493: mov r12, rdx mov rdi, rax loc_7B499: mov rdx, rbx cmp byte ptr [rbp+var_32], 0 js short loc_7B4C1 mov rdx, rbx test r13, r13 jz short loc_7B4C1 mov esi, [r13+9Ch] mov rdx, rbx cmp esi, 2 jb short loc_7B4C1 mov eax, ebx xor edx, edx div esi mov edx, eax loc_7B4C1: movzx eax, word ptr [r14+12h] test al, 1 jnz short loc_7B529 test al, 28h jz loc_7B56B movzx eax, word ptr [r12] add r12, 2 cmp bx, ax cmovb eax, ebx movzx ebx, ax cmp edx, ebx jnb short loc_7B50A mov rcx, rdx lea rdx, [r12+rbx] mov rax, [r13+0B8h] mov [rbp+var_30], rdi mov rdi, r13 mov rsi, r12 call qword ptr [rax+10h] mov rdi, [rbp+var_30] mov rdx, rax loc_7B50A: cmp rdx, rbx cmovnb rdx, rbx cmp rdx, 0FFh jnb loc_7B678 lea rbx, [rdi+1] mov eax, edx jmp loc_7B684 loc_7B529: cmp cl, 2 mov [rbp+var_48], r15 jz loc_7B60E movzx eax, cl cmp eax, 7 jnz loc_7B5EA mov rax, rbx add rax, r12 mov r15, r12 test ebx, ebx jz short loc_7B560 mov r15, r12 loc_7B552: cmp byte ptr [r15], 20h ; ' ' jnz short loc_7B560 inc r15 cmp r15, rax jb short loc_7B552 loc_7B560: sub rax, r15 mov rbx, rax jmp loc_7B611 loc_7B56B: test al, 40h jnz loc_7B6C6 cmp edx, ebx mov [rbp+var_48], r15 jnb short loc_7B59B mov rcx, rdx lea rdx, [r12+rbx] mov rax, [r13+0B8h] mov r15, rdi mov rdi, r13 mov rsi, r12 call qword ptr [rax+10h] mov rdi, r15 mov rdx, rax loc_7B59B: mov [rbp+var_58], rdx cmp rdx, rbx mov r15, rbx cmovb r15, rdx mov [rbp+var_30], rdi mov rsi, r12 mov rdx, r15 call _memcpy cmp [rbp+var_58], rbx jnb short loc_7B5DE mov rax, [rbp+var_30] lea rsi, [rax+r15] mov rdx, rbx sub rdx, r15 mov rax, [r13+0B8h] mov rdi, r13 mov ecx, 20h ; ' ' call qword ptr [rax+78h] loc_7B5DE: mov rdi, [rbp+var_30] add rdi, rbx jmp loc_7B672 loc_7B5EA: mov rax, [r13+0B8h] mov [rbp+var_30], rdi mov rdi, r13 mov rsi, r12 mov r15, rdx mov rdx, rbx call qword ptr [rax+18h] mov rdx, r15 mov rdi, [rbp+var_30] mov rbx, rax loc_7B60E: mov r15, r12 loc_7B611: cmp rbx, rdx jbe short loc_7B638 mov rcx, rdx lea rdx, [r15+rbx] mov rax, [r13+0B8h] mov [rbp+var_30], rdi mov rdi, r13 mov rsi, r15 call qword ptr [rax+10h] mov rdi, [rbp+var_30] mov rdx, rax loc_7B638: cmp rdx, rbx cmovb rbx, rdx cmp rbx, 0FFh jnb short loc_7B650 lea r13, [rdi+1] mov eax, ebx jmp short loc_7B65C loc_7B650: mov [rdi+2], bl mov [rdi+1], bh lea r13, [rdi+3] mov al, 0FFh loc_7B65C: mov [rdi], al mov rdi, r13 mov rsi, r15 mov rdx, rbx call _memcpy add r13, rbx mov rdi, r13 loc_7B672: mov r15, [rbp+var_48] jmp short loc_7B69A loc_7B678: mov [rdi+2], dl mov [rdi+1], dh lea rbx, [rdi+3] mov al, 0FFh loc_7B684: mov [rdi], al mov rdi, rbx mov rsi, r12 mov r13, rdx call _memcpy add rbx, r13 mov rdi, rbx loc_7B69A: lea rax, [r14+20h] mov cl, [r14+38h] test cl, cl jz short loc_7B6E3 mov rdx, r15 shr rdx, 1 movzx esi, word ptr [r14+14h] add r12, rsi mov r14, rax cmp r15, 1 mov r15, rdx ja loc_7B451 jmp short loc_7B6E3 loc_7B6C6: test rbx, rbx jz short loc_7B69A loc_7B6CB: mov cl, [r12+rbx-1] mov [rdi], cl inc rdi dec rbx jnz short loc_7B6CB jmp short loc_7B69A loc_7B6DC: mov rax, r14 mov rdi, [rbp+var_40] loc_7B6E3: mov rcx, [rbp+var_50] test rcx, rcx jz short loc_7B6EF mov [rcx], rax loc_7B6EF: sub edi, dword ptr [rbp+var_40] mov eax, edi add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long mi_pack_key(long long a1, unsigned int a2, char *a3, _BYTE *a4, unsigned long long a5, long long **a6) { long long v6; // rax long long v7; // rsi unsigned long long v9; // r15 long long *v10; // r14 char v11; // cl char *v12; // rdi unsigned long long v13; // rbx long long v14; // r13 _BYTE *v15; // rdx char v16; // si unsigned long long v17; // rdx unsigned int v18; // esi __int16 v19; // ax unsigned __int16 v20; // ax unsigned long long v21; // rbx _BYTE *v22; // rbx char v23; // al _BYTE *v24; // rax _BYTE *v25; // r15 unsigned long long v26; // r15 unsigned long long v27; // r15 long long v28; // rax _BYTE *v29; // r13 char v30; // al unsigned long long v31; // r13 long long *v32; // rax bool v33; // cc unsigned long long v35; // [rsp+8h] [rbp-58h] unsigned long long v37; // [rsp+18h] [rbp-48h] int v38; // [rsp+20h] [rbp-40h] __int16 v39; // [rsp+2Eh] [rbp-32h] v6 = *(_QWORD *)(*(_QWORD *)a1 + 536LL); v7 = 112LL * a2; v9 = 15LL; if ( *(_BYTE *)(v6 + v7 + 12) != 2 ) v9 = a5; v38 = (int)a3; v10 = *(long long **)(v6 + v7 + 40); v11 = *((_BYTE *)v10 + 24); if ( v11 && v9 ) { v39 = *(_WORD *)(v7 + v6 + 10); v12 = a3; while ( 1 ) { v13 = *((unsigned __int16 *)v10 + 10); v14 = *v10; if ( *((_BYTE *)v10 + 25) ) { v15 = a4 + 1; v16 = *a4; *v12 = 1 - *a4; if ( v16 == 1 ) { a4 += 3; if ( (*((_BYTE *)v10 + 18) & 0x28) == 0 ) a4 = v15; ++v12; goto LABEL_54; } ++a4; ++v12; } v17 = v13; if ( (v39 & 0x80u) == 0 ) { v17 = v13; if ( v14 ) { v18 = *(_DWORD *)(v14 + 156); v17 = v13; if ( v18 >= 2 ) v17 = (unsigned int)v13 / v18; } } v19 = *((_WORD *)v10 + 9); if ( (v19 & 1) == 0 ) { if ( (v19 & 0x28) != 0 ) { v20 = *(_WORD *)a4; a4 += 2; if ( (unsigned __int16)v13 < v20 ) v20 = v13; v21 = v20; if ( (unsigned int)v17 < v20 ) v17 = (*(long long ( **)(long long, _BYTE *, _BYTE *, unsigned long long))(*(_QWORD *)(v14 + 184) + 16LL))( v14, a4, &a4[v20], v17); if ( v17 >= v21 ) v17 = v21; if ( v17 >= 0xFF ) { v12[2] = v17; v12[1] = BYTE1(v17); v22 = v12 + 3; v23 = -1; } else { v22 = v12 + 1; v23 = v17; } *v12 = v23; v31 = v17; memcpy(v22, a4, v17); v12 = &v22[v31]; goto LABEL_54; } if ( (v19 & 0x40) != 0 ) { for ( ; v13; --v13 ) *v12++ = a4[v13 - 1]; goto LABEL_54; } v37 = v9; if ( (unsigned int)v17 < (unsigned int)v13 ) v17 = (*(long long ( **)(long long, _BYTE *, _BYTE *, unsigned long long))(*(_QWORD *)(v14 + 184) + 16LL))( v14, a4, &a4[v13], v17); v35 = v17; v26 = v13; if ( v17 < v13 ) v26 = v17; memcpy(v12, a4, v26); if ( v35 < v13 ) (*(void ( **)(long long, char *, unsigned long long, long long))(*(_QWORD *)(v14 + 184) + 120LL))( v14, &v12[v26], v13 - v26, 32LL); v12 += v13; goto LABEL_51; } v37 = v9; if ( v11 != 2 ) { if ( v11 == 7 ) { v24 = &a4[v13]; v25 = a4; if ( (_DWORD)v13 ) { v25 = a4; do { if ( *v25 != 32 ) break; ++v25; } while ( v25 < v24 ); } v13 = v24 - v25; goto LABEL_43; } v27 = v17; v28 = (*(long long ( **)(long long, _BYTE *, unsigned long long))(*(_QWORD *)(v14 + 184) + 24LL))( v14, a4, v13); v17 = v27; v13 = v28; } v25 = a4; LABEL_43: if ( v13 > v17 ) v17 = (*(long long ( **)(long long, _BYTE *, _BYTE *, unsigned long long))(*(_QWORD *)(v14 + 184) + 16LL))( v14, v25, &v25[v13], v17); if ( v17 < v13 ) v13 = v17; if ( v13 >= 0xFF ) { v12[2] = v13; v12[1] = BYTE1(v13); v29 = v12 + 3; v30 = -1; } else { v29 = v12 + 1; v30 = v13; } *v12 = v30; memcpy(v29, v25, v13); v12 = &v29[v13]; LABEL_51: v9 = v37; LABEL_54: v32 = v10 + 4; v11 = *((_BYTE *)v10 + 56); if ( v11 ) { a4 += *((unsigned __int16 *)v10 + 10); v10 += 4; v33 = v9 <= 1; v9 >>= 1; if ( !v33 ) continue; } goto LABEL_61; } } v32 = *(long long **)(v6 + v7 + 40); LODWORD(v12) = (_DWORD)a3; LABEL_61: if ( a6 ) *a6 = v32; return (unsigned int)((_DWORD)v12 - v38); }
_mi_pack_key: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV qword ptr [RBP + -0x50],R9 MOV RAX,qword ptr [RDI] MOV RAX,qword ptr [RAX + 0x218] MOV ESI,ESI IMUL RSI,RSI,0x70 CMP byte ptr [RAX + RSI*0x1 + 0xc],0x2 MOV R12,RCX MOV R15D,0xf CMOVNZ R15,R8 MOV qword ptr [RBP + -0x40],RDX MOV R14,qword ptr [RAX + RSI*0x1 + 0x28] MOV CL,byte ptr [R14 + 0x18] TEST CL,CL JZ 0x0017b6dc TEST R15,R15 JZ 0x0017b6dc ADD RAX,RSI MOVZX EAX,word ptr [RAX + 0xa] MOV word ptr [RBP + -0x32],AX MOV RDI,qword ptr [RBP + -0x40] LAB_0017b451: MOVZX EBX,word ptr [R14 + 0x14] MOV R13,qword ptr [R14] CMP byte ptr [R14 + 0x19],0x0 JZ 0x0017b499 LEA RDX,[R12 + 0x1] MOV SIL,byte ptr [R12] LEA RAX,[RDI + 0x1] MOV R8,RDI LEA EDI,[RSI + -0x1] NEG DIL MOV byte ptr [R8],DIL DEC SIL JNZ 0x0017b493 ADD R12,0x3 TEST byte ptr [R14 + 0x12],0x28 CMOVZ R12,RDX MOV RDI,RAX JMP 0x0017b69a LAB_0017b493: MOV R12,RDX MOV RDI,RAX LAB_0017b499: MOV RDX,RBX CMP byte ptr [RBP + -0x32],0x0 JS 0x0017b4c1 MOV RDX,RBX TEST R13,R13 JZ 0x0017b4c1 MOV ESI,dword ptr [R13 + 0x9c] MOV RDX,RBX CMP ESI,0x2 JC 0x0017b4c1 MOV EAX,EBX XOR EDX,EDX DIV ESI MOV EDX,EAX LAB_0017b4c1: MOVZX EAX,word ptr [R14 + 0x12] TEST AL,0x1 JNZ 0x0017b529 TEST AL,0x28 JZ 0x0017b56b MOVZX EAX,word ptr [R12] ADD R12,0x2 CMP BX,AX CMOVC EAX,EBX MOVZX EBX,AX CMP EDX,EBX JNC 0x0017b50a MOV RCX,RDX LEA RDX,[R12 + RBX*0x1] MOV RAX,qword ptr [R13 + 0xb8] MOV qword ptr [RBP + -0x30],RDI MOV RDI,R13 MOV RSI,R12 CALL qword ptr [RAX + 0x10] MOV RDI,qword ptr [RBP + -0x30] MOV RDX,RAX LAB_0017b50a: CMP RDX,RBX CMOVNC RDX,RBX CMP RDX,0xff JNC 0x0017b678 LEA RBX,[RDI + 0x1] MOV EAX,EDX JMP 0x0017b684 LAB_0017b529: CMP CL,0x2 MOV qword ptr [RBP + -0x48],R15 JZ 0x0017b60e MOVZX EAX,CL CMP EAX,0x7 JNZ 0x0017b5ea MOV RAX,RBX ADD RAX,R12 MOV R15,R12 TEST EBX,EBX JZ 0x0017b560 MOV R15,R12 LAB_0017b552: CMP byte ptr [R15],0x20 JNZ 0x0017b560 INC R15 CMP R15,RAX JC 0x0017b552 LAB_0017b560: SUB RAX,R15 MOV RBX,RAX JMP 0x0017b611 LAB_0017b56b: TEST AL,0x40 JNZ 0x0017b6c6 CMP EDX,EBX MOV qword ptr [RBP + -0x48],R15 JNC 0x0017b59b MOV RCX,RDX LEA RDX,[R12 + RBX*0x1] MOV RAX,qword ptr [R13 + 0xb8] MOV R15,RDI MOV RDI,R13 MOV RSI,R12 CALL qword ptr [RAX + 0x10] MOV RDI,R15 MOV RDX,RAX LAB_0017b59b: MOV qword ptr [RBP + -0x58],RDX CMP RDX,RBX MOV R15,RBX CMOVC R15,RDX MOV qword ptr [RBP + -0x30],RDI MOV RSI,R12 MOV RDX,R15 CALL 0x00129080 CMP qword ptr [RBP + -0x58],RBX JNC 0x0017b5de MOV RAX,qword ptr [RBP + -0x30] LEA RSI,[RAX + R15*0x1] MOV RDX,RBX SUB RDX,R15 MOV RAX,qword ptr [R13 + 0xb8] MOV RDI,R13 MOV ECX,0x20 CALL qword ptr [RAX + 0x78] LAB_0017b5de: MOV RDI,qword ptr [RBP + -0x30] ADD RDI,RBX JMP 0x0017b672 LAB_0017b5ea: MOV RAX,qword ptr [R13 + 0xb8] MOV qword ptr [RBP + -0x30],RDI MOV RDI,R13 MOV RSI,R12 MOV R15,RDX MOV RDX,RBX CALL qword ptr [RAX + 0x18] MOV RDX,R15 MOV RDI,qword ptr [RBP + -0x30] MOV RBX,RAX LAB_0017b60e: MOV R15,R12 LAB_0017b611: CMP RBX,RDX JBE 0x0017b638 MOV RCX,RDX LEA RDX,[R15 + RBX*0x1] MOV RAX,qword ptr [R13 + 0xb8] MOV qword ptr [RBP + -0x30],RDI MOV RDI,R13 MOV RSI,R15 CALL qword ptr [RAX + 0x10] MOV RDI,qword ptr [RBP + -0x30] MOV RDX,RAX LAB_0017b638: CMP RDX,RBX CMOVC RBX,RDX CMP RBX,0xff JNC 0x0017b650 LEA R13,[RDI + 0x1] MOV EAX,EBX JMP 0x0017b65c LAB_0017b650: MOV byte ptr [RDI + 0x2],BL MOV byte ptr [RDI + 0x1],BH LEA R13,[RDI + 0x3] MOV AL,0xff LAB_0017b65c: MOV byte ptr [RDI],AL MOV RDI,R13 MOV RSI,R15 MOV RDX,RBX CALL 0x00129080 ADD R13,RBX MOV RDI,R13 LAB_0017b672: MOV R15,qword ptr [RBP + -0x48] JMP 0x0017b69a LAB_0017b678: MOV byte ptr [RDI + 0x2],DL MOV byte ptr [RDI + 0x1],DH LEA RBX,[RDI + 0x3] MOV AL,0xff LAB_0017b684: MOV byte ptr [RDI],AL MOV RDI,RBX MOV RSI,R12 MOV R13,RDX CALL 0x00129080 ADD RBX,R13 MOV RDI,RBX LAB_0017b69a: LEA RAX,[R14 + 0x20] MOV CL,byte ptr [R14 + 0x38] TEST CL,CL JZ 0x0017b6e3 MOV RDX,R15 SHR RDX,0x1 MOVZX ESI,word ptr [R14 + 0x14] ADD R12,RSI MOV R14,RAX CMP R15,0x1 MOV R15,RDX JA 0x0017b451 JMP 0x0017b6e3 LAB_0017b6c6: TEST RBX,RBX JZ 0x0017b69a LAB_0017b6cb: MOV CL,byte ptr [R12 + RBX*0x1 + -0x1] MOV byte ptr [RDI],CL INC RDI DEC RBX JNZ 0x0017b6cb JMP 0x0017b69a LAB_0017b6dc: MOV RAX,R14 MOV RDI,qword ptr [RBP + -0x40] LAB_0017b6e3: MOV RCX,qword ptr [RBP + -0x50] TEST RCX,RCX JZ 0x0017b6ef MOV qword ptr [RCX],RAX LAB_0017b6ef: SUB EDI,dword ptr [RBP + -0x40] MOV EAX,EDI ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int _mi_pack_key(long *param_1,uint param_2,char *param_3,ushort *param_4,ulong param_5, long *param_6) { int2 uVar1; ushort uVar2; long lVar3; bool bVar4; char cVar5; ushort uVar6; ulong __n; long *plVar7; char *pcVar8; char *__dest; ulong uVar9; long lVar10; ushort *__src; long *plVar11; ulong uVar12; ushort *puVar13; ulong __n_00; int local_48; char local_3a; lVar3 = *(long *)(*param_1 + 0x218); lVar10 = (ulong)param_2 * 0x70; uVar12 = 0xf; if (*(char *)(lVar3 + 0xc + lVar10) != '\x02') { uVar12 = param_5; } plVar7 = *(long **)(lVar3 + 0x28 + lVar10); cVar5 = (char)plVar7[3]; __dest = param_3; if ((cVar5 != '\0') && (uVar12 != 0)) { uVar1 = *(int2 *)(lVar3 + lVar10 + 10); pcVar8 = param_3; plVar11 = plVar7; do { uVar2 = *(ushort *)((long)plVar11 + 0x14); uVar9 = (ulong)uVar2; lVar3 = *plVar11; __dest = pcVar8; __src = param_4; if (*(char *)((long)plVar11 + 0x19) == '\0') { LAB_0017b499: local_3a = (char)uVar1; __n = uVar9; if (((-1 < local_3a) && (lVar3 != 0)) && (1 < *(uint *)(lVar3 + 0x9c))) { __n = uVar9 / *(uint *)(lVar3 + 0x9c); } uVar6 = *(ushort *)((long)plVar11 + 0x12); if ((uVar6 & 1) == 0) { if ((uVar6 & 0x28) == 0) { if ((uVar6 & 0x40) == 0) { if ((uint)__n < (uint)uVar2) { __n = (**(code **)(*(long *)(lVar3 + 0xb8) + 0x10)) (lVar3,__src,(char *)((long)__src + uVar9),__n); } __n_00 = uVar9; if (__n < uVar9) { __n_00 = __n; } memcpy(__dest,__src,__n_00); if (__n < uVar9) { (**(code **)(*(long *)(lVar3 + 0xb8) + 0x78)) (lVar3,__dest + __n_00,uVar9 - __n_00,0x20); } __dest = __dest + uVar9; } else { for (; uVar9 != 0; uVar9 = uVar9 - 1) { *__dest = *(char *)((long)__src + (uVar9 - 1)); __dest = __dest + 1; } } } else { puVar13 = __src + 1; uVar6 = *__src; if (uVar2 < *__src) { uVar6 = uVar2; } uVar9 = (ulong)uVar6; if ((uint)__n < (uint)uVar6) { __n = (**(code **)(*(long *)(lVar3 + 0xb8) + 0x10)) (lVar3,puVar13,(char *)((long)puVar13 + uVar9),__n); } if (uVar9 <= __n) { __n = uVar9; } cVar5 = (char)__n; if (__n < 0xff) { pcVar8 = __dest + 1; } else { __dest[2] = cVar5; __dest[1] = (char)(__n >> 8); pcVar8 = __dest + 3; cVar5 = -1; } *__dest = cVar5; memcpy(pcVar8,puVar13,__n); __dest = pcVar8 + __n; __src = puVar13; } } else { puVar13 = __src; if (cVar5 != '\x02') { if (cVar5 == '\a') { if (uVar2 != 0) { do { if ((char)*puVar13 != ' ') break; puVar13 = (ushort *)((long)puVar13 + 1); } while (puVar13 < (ushort *)(uVar9 + (long)__src)); } uVar9 = (long)(uVar9 + (long)__src) - (long)puVar13; } else { uVar9 = (**(code **)(*(long *)(lVar3 + 0xb8) + 0x18))(lVar3,__src,uVar9); } } if (__n < uVar9) { __n = (**(code **)(*(long *)(lVar3 + 0xb8) + 0x10)) (lVar3,puVar13,(char *)((long)puVar13 + uVar9),__n); } if (__n < uVar9) { uVar9 = __n; } cVar5 = (char)uVar9; if (uVar9 < 0xff) { pcVar8 = __dest + 1; } else { __dest[2] = cVar5; __dest[1] = (char)(uVar9 >> 8); pcVar8 = __dest + 3; cVar5 = -1; } *__dest = cVar5; memcpy(pcVar8,puVar13,uVar9); __dest = pcVar8 + uVar9; } } else { uVar6 = *param_4; __dest = pcVar8 + 1; *pcVar8 = -((char)uVar6 + -1); __src = (ushort *)((long)param_4 + 1); if ((char)uVar6 != '\x01') goto LAB_0017b499; __src = (ushort *)((long)param_4 + 3); if ((*(byte *)((long)plVar11 + 0x12) & 0x28) == 0) { __src = (ushort *)((long)param_4 + 1); } } plVar7 = plVar11 + 4; cVar5 = (char)plVar11[7]; if (cVar5 == '\0') break; param_4 = (ushort *)((long)__src + (ulong)*(ushort *)((long)plVar11 + 0x14)); bVar4 = 1 < uVar12; pcVar8 = __dest; plVar11 = plVar7; uVar12 = uVar12 >> 1; } while (bVar4); } if (param_6 != (long *)0x0) { *param_6 = (long)plVar7; } local_48 = (int)param_3; return (int)__dest - local_48; }
6,264
YogaTest_max_content_flex_basis_column_Test::TestBody()
yoga-mod/tests/generated/YGIntrinsicSizeTest.cpp
TEST(YogaTest, max_content_flex_basis_column) { YGConfigRef config = YGConfigNew(); YGNodeRef root = YGNodeNewWithConfig(config); YGNodeStyleSetPositionType(root, YGPositionTypeAbsolute); YGNodeStyleSetFlexWrap(root, YGWrapWrap); YGNodeStyleSetFlexBasisMaxContent(root); YGNodeRef root_child0 = YGNodeNewWithConfig(config); YGNodeStyleSetWidth(root_child0, 50); YGNodeStyleSetHeight(root_child0, 50); YGNodeInsertChild(root, root_child0, 0); YGNodeRef root_child1 = YGNodeNewWithConfig(config); YGNodeStyleSetWidth(root_child1, 50); YGNodeStyleSetHeight(root_child1, 100); YGNodeInsertChild(root, root_child1, 1); YGNodeRef root_child2 = YGNodeNewWithConfig(config); YGNodeStyleSetWidth(root_child2, 50); YGNodeStyleSetHeight(root_child2, 25); YGNodeInsertChild(root, root_child2, 2); YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionLTR); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root)); ASSERT_FLOAT_EQ(175, YGNodeLayoutGetHeight(root)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child0)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetHeight(root_child0)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child1)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetTop(root_child1)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child1)); ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child1)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child2)); ASSERT_FLOAT_EQ(150, YGNodeLayoutGetTop(root_child2)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child2)); ASSERT_FLOAT_EQ(25, YGNodeLayoutGetHeight(root_child2)); YGNodeCalculateLayout(root, YGUndefined, YGUndefined, YGDirectionRTL); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root)); ASSERT_FLOAT_EQ(175, YGNodeLayoutGetHeight(root)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child0)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetTop(root_child0)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child0)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetHeight(root_child0)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child1)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetTop(root_child1)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child1)); ASSERT_FLOAT_EQ(100, YGNodeLayoutGetHeight(root_child1)); ASSERT_FLOAT_EQ(0, YGNodeLayoutGetLeft(root_child2)); ASSERT_FLOAT_EQ(150, YGNodeLayoutGetTop(root_child2)); ASSERT_FLOAT_EQ(50, YGNodeLayoutGetWidth(root_child2)); ASSERT_FLOAT_EQ(25, YGNodeLayoutGetHeight(root_child2)); YGNodeFreeRecursive(root); YGConfigFree(config); }
O0
cpp
YogaTest_max_content_flex_basis_column_Test::TestBody(): pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x7047d0 movq -0x10(%rbp), %rax leaq 0x387b7c(%rip), %rcx # 0x869e70 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
_ZN43YogaTest_max_content_flex_basis_column_TestC2Ev: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi mov rdi, [rbp+var_8]; this mov [rbp+var_10], rdi call _ZN7testing4TestC2Ev; testing::Test::Test(void) mov rax, [rbp+var_10] lea rcx, _ZTV43YogaTest_max_content_flex_basis_column_Test; `vtable for'YogaTest_max_content_flex_basis_column_Test add rcx, 10h mov [rax], rcx add rsp, 10h pop rbp retn
void YogaTest_max_content_flex_basis_column_Test::YogaTest_max_content_flex_basis_column_Test( YogaTest_max_content_flex_basis_column_Test *this) { testing::Test::Test(this); *(_QWORD *)this = (char *)&`vtable for'YogaTest_max_content_flex_basis_column_Test + 16; }
~YogaTest_flex_direction_col_reverse_inner_margin_bottom_Test: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI MOV RDI,qword ptr [RBP + -0x8] CALL 0x00804850 ADD RSP,0x10 POP RBP RET
/* YogaTest_flex_direction_col_reverse_inner_margin_bottom_Test::~YogaTest_flex_direction_col_reverse_inner_margin_bottom_Test() */ void __thiscall YogaTest_flex_direction_col_reverse_inner_margin_bottom_Test:: ~YogaTest_flex_direction_col_reverse_inner_margin_bottom_Test (YogaTest_flex_direction_col_reverse_inner_margin_bottom_Test *this) { testing::Test::~Test((Test *)this); return; }
6,265
uf_prespace
eloqsql/storage/maria/ma_packrec.c
static void uf_prespace(MARIA_COLUMNDEF *rec, MARIA_BIT_BUFF *bit_buff, uchar *to, uchar *end) { uint spaces; if ((spaces=get_bits(bit_buff,rec->space_length_bits))+to > end) { bit_buff->error=1; return; } bfill(to, spaces, ' '); if (to+spaces != end) decode_bytes(rec,bit_buff,to+spaces,end); }
O0
c
uf_prespace: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq -0x10(%rbp), %rax movl 0x4(%rax), %eax movq -0x8(%rbp), %rcx cmpl 0x24(%rcx), %eax jb 0x3a87b movq -0x10(%rbp), %rax movl (%rax), %eax movq -0x8(%rbp), %rcx movl 0x24(%rcx), %esi movq -0x10(%rbp), %rdx movl 0x4(%rdx), %ecx subl %esi, %ecx movl %ecx, 0x4(%rdx) shrl %cl, %eax movq -0x8(%rbp), %rcx movl 0x24(%rcx), %ecx movl %ecx, %edx leaq 0x282a6d(%rip), %rcx # 0x2bd2e0 andl (%rcx,%rdx,4), %eax movl %eax, -0x28(%rbp) jmp 0x3a88e movq -0x10(%rbp), %rdi movq -0x8(%rbp), %rax movl 0x24(%rax), %esi callq 0x38e40 movl %eax, -0x28(%rbp) movl -0x28(%rbp), %ecx movl %ecx, -0x24(%rbp) movq -0x18(%rbp), %rax movl %ecx, %ecx addq %rcx, %rax cmpq -0x20(%rbp), %rax jbe 0x3a8b0 movq -0x10(%rbp), %rax movl $0x1, 0x28(%rax) jmp 0x3a8ee movq -0x18(%rbp), %rdi movl -0x24(%rbp), %eax movl %eax, %edx movl $0x20, %esi callq 0x2a2c0 movq -0x18(%rbp), %rax movl -0x24(%rbp), %ecx addq %rcx, %rax cmpq -0x20(%rbp), %rax je 0x3a8ee movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx movl -0x24(%rbp), %eax addq %rax, %rdx movq -0x20(%rbp), %rcx callq 0x399d0 addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
uf_prespace: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov rax, [rbp+var_10] mov eax, [rax+4] mov rcx, [rbp+var_8] cmp eax, [rcx+24h] jb short loc_3A87B mov rax, [rbp+var_10] mov eax, [rax] mov rcx, [rbp+var_8] mov esi, [rcx+24h] mov rdx, [rbp+var_10] mov ecx, [rdx+4] sub ecx, esi mov [rdx+4], ecx shr eax, cl mov rcx, [rbp+var_8] mov ecx, [rcx+24h] mov edx, ecx lea rcx, mask and eax, [rcx+rdx*4] mov [rbp+var_28], eax jmp short loc_3A88E loc_3A87B: mov rdi, [rbp+var_10] mov rax, [rbp+var_8] mov esi, [rax+24h] call fill_and_get_bits mov [rbp+var_28], eax loc_3A88E: mov ecx, [rbp+var_28] mov [rbp+var_24], ecx mov rax, [rbp+var_18] mov ecx, ecx add rax, rcx cmp rax, [rbp+var_20] jbe short loc_3A8B0 mov rax, [rbp+var_10] mov dword ptr [rax+28h], 1 jmp short loc_3A8EE loc_3A8B0: mov rdi, [rbp+var_18] mov eax, [rbp+var_24] mov edx, eax mov esi, 20h ; ' ' call _memset mov rax, [rbp+var_18] mov ecx, [rbp+var_24] add rax, rcx cmp rax, [rbp+var_20] jz short loc_3A8EE mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov rdx, [rbp+var_18] mov eax, [rbp+var_24] add rdx, rax mov rcx, [rbp+var_20] call decode_bytes loc_3A8EE: add rsp, 30h pop rbp retn
long long uf_prespace(long long a1, unsigned int *a2, long long a3, _BYTE *a4) { unsigned int v4; // eax int v5; // ecx long long result; // rax unsigned int bits; // [rsp+8h] [rbp-28h] if ( a2[1] < *(_DWORD *)(a1 + 36) ) { bits = fill_and_get_bits(a2, *(_DWORD *)(a1 + 36)); } else { v4 = *a2; v5 = a2[1] - *(_DWORD *)(a1 + 36); a2[1] = v5; bits = mask[*(unsigned int *)(a1 + 36)] & (v4 >> v5); } if ( (unsigned long long)bits + a3 <= (unsigned long long)a4 ) { memset(a3, 32LL, bits); result = bits + a3; if ( (_BYTE *)result != a4 ) return decode_bytes(a1, (long long)a2, (_BYTE *)(bits + a3), a4); } else { result = (long long)a2; a2[10] = 1; } return result; }
uf_prespace: PUSH RBP MOV RBP,RSP SUB RSP,0x30 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 RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX + 0x4] MOV RCX,qword ptr [RBP + -0x8] CMP EAX,dword ptr [RCX + 0x24] JC 0x0013a87b MOV RAX,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RAX] MOV RCX,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RCX + 0x24] MOV RDX,qword ptr [RBP + -0x10] MOV ECX,dword ptr [RDX + 0x4] SUB ECX,ESI MOV dword ptr [RDX + 0x4],ECX SHR EAX,CL MOV RCX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RCX + 0x24] MOV EDX,ECX LEA RCX,[0x3bd2e0] AND EAX,dword ptr [RCX + RDX*0x4] MOV dword ptr [RBP + -0x28],EAX JMP 0x0013a88e LAB_0013a87b: MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RAX + 0x24] CALL 0x00138e40 MOV dword ptr [RBP + -0x28],EAX LAB_0013a88e: MOV ECX,dword ptr [RBP + -0x28] MOV dword ptr [RBP + -0x24],ECX MOV RAX,qword ptr [RBP + -0x18] MOV ECX,ECX ADD RAX,RCX CMP RAX,qword ptr [RBP + -0x20] JBE 0x0013a8b0 MOV RAX,qword ptr [RBP + -0x10] MOV dword ptr [RAX + 0x28],0x1 JMP 0x0013a8ee LAB_0013a8b0: MOV RDI,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RBP + -0x24] MOV EDX,EAX MOV ESI,0x20 CALL 0x0012a2c0 MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x24] ADD RAX,RCX CMP RAX,qword ptr [RBP + -0x20] JZ 0x0013a8ee MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV RDX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RBP + -0x24] ADD RDX,RAX MOV RCX,qword ptr [RBP + -0x20] CALL 0x001399d0 LAB_0013a8ee: ADD RSP,0x30 POP RBP RET
void uf_prespace(long param_1,uint *param_2,void *param_3,ulong param_4) { uint uVar1; uint local_30; if (param_2[1] < *(uint *)(param_1 + 0x24)) { local_30 = fill_and_get_bits(param_2,*(int4 *)(param_1 + 0x24)); } else { uVar1 = param_2[1] - *(int *)(param_1 + 0x24); param_2[1] = uVar1; local_30 = *param_2 >> ((byte)uVar1 & 0x1f) & *(uint *)(mask + (ulong)*(uint *)(param_1 + 0x24) * 4); } if (param_4 < (long)param_3 + (ulong)local_30) { param_2[10] = 1; } else { memset(param_3,0x20,(ulong)local_30); if ((long)param_3 + (ulong)local_30 != param_4) { decode_bytes(param_1,param_2,(long)param_3 + (ulong)local_30,param_4); } } return; }
6,266
nglog::TruncateStdoutStderr()
ng-log[P]ng-log/src/logging.cc
static uint32 MaxLogSize() { return (FLAGS_max_log_size > 0 && FLAGS_max_log_size < 4096 ? FLAGS_max_log_size : 1); }
O1
cpp
nglog::TruncateStdoutStderr(): pushq %rbx leaq 0x22652(%rip), %rax # 0x2fa6c movl (%rax), %eax leal -0x1(%rax), %ecx shll $0x14, %eax cmpl $0xfff, %ecx # imm = 0xFFF movl $0x100000, %ebx # imm = 0x100000 cmovbl %eax, %ebx leaq 0x15390(%rip), %rdi # 0x227c7 movl $0x100000, %edx # imm = 0x100000 movq %rbx, %rsi callq 0xcc99 leaq 0x1538c(%rip), %rdi # 0x227d7 movl $0x100000, %edx # imm = 0x100000 movq %rbx, %rsi popq %rbx jmp 0xcc99
_ZN5nglog20TruncateStdoutStderrEv: push rbx lea rax, _ZN3fLU18FLAGS_max_log_sizeE; fLU::FLAGS_max_log_size mov eax, [rax] lea ecx, [rax-1]; unsigned __int64 shl eax, 14h cmp ecx, 0FFFh mov ebx, 100000h cmovb ebx, eax lea rdi, aProcSelfFd1; "/proc/self/fd/1" mov edx, 100000h; unsigned __int64 mov rsi, rbx; char * call _ZN5nglog15TruncateLogFileEPKcmm; nglog::TruncateLogFile(char const*,ulong,ulong) lea rdi, aProcSelfFd2; "/proc/self/fd/2" mov edx, 100000h; unsigned __int64 mov rsi, rbx; char * pop rbx jmp _ZN5nglog15TruncateLogFileEPKcmm; nglog::TruncateLogFile(char const*,ulong,ulong)
void nglog::TruncateStdoutStderr(nglog *this) { long long v1; // rbx v1 = 0x100000LL; if ( (unsigned int)(fLU::FLAGS_max_log_size - 1) < 0xFFF ) v1 = (unsigned int)(fLU::FLAGS_max_log_size << 20); nglog::TruncateLogFile((nglog *)"/proc/self/fd/1", (const char *)v1, 0x100000LL); nglog::TruncateLogFile((nglog *)"/proc/self/fd/2", (const char *)v1, 0x100000LL); }
TruncateStdoutStderr: PUSH RBX LEA RAX,[0x12fa6c] MOV EAX,dword ptr [RAX] LEA ECX,[RAX + -0x1] SHL EAX,0x14 CMP ECX,0xfff MOV EBX,0x100000 CMOVC EBX,EAX LEA RDI,[0x1227c7] MOV EDX,0x100000 MOV RSI,RBX CALL 0x0010cc99 LEA RDI,[0x1227d7] MOV EDX,0x100000 MOV RSI,RBX POP RBX JMP 0x0010cc99
/* nglog::TruncateStdoutStderr() */ void nglog::TruncateStdoutStderr(void) { ulong uVar1; uVar1 = 0x100000; if (fLU::FLAGS_max_log_size - 1U < 0xfff) { uVar1 = (ulong)(uint)(fLU::FLAGS_max_log_size << 0x14); } TruncateLogFile("/proc/self/fd/1",uVar1,0x100000); TruncateLogFile("/proc/self/fd/2",uVar1,0x100000); return; }
6,267
my_multi_malloc
eloqsql/mysys/mulalloc.c
void* my_multi_malloc(PSI_memory_key key, myf myFlags, ...) { va_list args; char **ptr,*start,*res; size_t tot_length,length; DBUG_ENTER("my_multi_malloc"); va_start(args,myFlags); tot_length=0; while ((ptr=va_arg(args, char **))) { length=va_arg(args,uint); tot_length+=ALIGN_SIZE(length); } va_end(args); if (!(start=(char *) my_malloc(key, tot_length,myFlags))) DBUG_RETURN(0); /* purecov: inspected */ va_start(args,myFlags); res=start; while ((ptr=va_arg(args, char **))) { *ptr=res; length=va_arg(args,uint); res+=ALIGN_SIZE(length); } va_end(args); DBUG_RETURN((void*) start); }
O3
c
my_multi_malloc: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx subq $0xc8, %rsp movq %rdx, %r10 movq %rsi, %rdx leaq -0xe0(%rbp), %r14 movq %r10, 0x10(%r14) movq %rcx, 0x18(%r14) movq %r8, 0x20(%r14) movq %r9, 0x28(%r14) testb %al, %al je 0x9f7a6 movaps %xmm0, -0xb0(%rbp) movaps %xmm1, -0xa0(%rbp) movaps %xmm2, -0x90(%rbp) movaps %xmm3, -0x80(%rbp) movaps %xmm4, -0x70(%rbp) movaps %xmm5, -0x60(%rbp) movaps %xmm6, -0x50(%rbp) movaps %xmm7, -0x40(%rbp) movabsq $0x1fffffff8, %rbx # imm = 0x1FFFFFFF8 movq %r14, -0x20(%rbp) leaq 0x10(%rbp), %rcx movq %rcx, -0x28(%rbp) movabsq $0x3000000010, %r15 # imm = 0x3000000010 movq %r15, -0x30(%rbp) movl $0x10, %eax xorl %esi, %esi cmpl $0x28, %eax ja 0x9f7e6 movq %rcx, %r8 movl %eax, %ecx addq %r14, %rcx addl $0x8, %eax movl %eax, -0x30(%rbp) jmp 0x9f7ee leaq 0x8(%rcx), %r8 movq %r8, -0x28(%rbp) cmpq $0x0, (%rcx) je 0x9f821 cmpl $0x28, %eax ja 0x9f80a movq %r8, %rcx movl %eax, %r8d addq %r14, %r8 addl $0x8, %eax movl %eax, -0x30(%rbp) jmp 0x9f812 leaq 0x8(%r8), %rcx movq %rcx, -0x28(%rbp) movl (%r8), %r8d addq $0x7, %r8 andq %rbx, %r8 addq %r8, %rsi jmp 0x9f7d1 callq 0xa2c71 testq %rax, %rax je 0x9f89f movq %r14, -0x20(%rbp) leaq 0x10(%rbp), %rcx movq %rcx, -0x28(%rbp) movq %r15, -0x30(%rbp) movl $0x10, %edx movq %rax, %rcx cmpl $0x28, %edx ja 0x9f856 movl %edx, %esi addq -0x20(%rbp), %rsi addl $0x8, %edx movl %edx, -0x30(%rbp) jmp 0x9f862 movq -0x28(%rbp), %rsi leaq 0x8(%rsi), %rdx movq %rdx, -0x28(%rbp) movq (%rsi), %rdx testq %rdx, %rdx je 0x9f89f movq %rcx, (%rdx) movl -0x30(%rbp), %edx cmpq $0x28, %rdx ja 0x9f885 movq %rdx, %rsi addq -0x20(%rbp), %rsi addl $0x8, %edx movl %edx, -0x30(%rbp) jmp 0x9f891 movq -0x28(%rbp), %rsi leaq 0x8(%rsi), %rdi movq %rdi, -0x28(%rbp) movl (%rsi), %esi addq $0x7, %rsi andq %rbx, %rsi addq %rsi, %rcx jmp 0x9f843 addq $0xc8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
my_multi_malloc: push rbp mov rbp, rsp push r15 push r14 push rbx sub rsp, 0C8h mov r10, rdx mov rdx, rsi lea r14, [rbp+var_E0] mov [r14+10h], r10 mov [r14+18h], rcx mov [r14+20h], r8 mov [r14+28h], r9 test al, al jz short loc_9F7A6 movaps [rbp+var_B0], xmm0 movaps [rbp+var_A0], xmm1 movaps [rbp+var_90], xmm2 movaps [rbp+var_80], xmm3 movaps [rbp+var_70], xmm4 movaps [rbp+var_60], xmm5 movaps [rbp+var_50], xmm6 movaps [rbp+var_40], xmm7 loc_9F7A6: mov rbx, 1FFFFFFF8h mov [rbp+var_20], r14 lea rcx, [rbp+arg_0] mov [rbp+var_28], rcx mov r15, 3000000010h mov [rbp+var_30], r15 mov eax, 10h xor esi, esi loc_9F7D1: cmp eax, 28h ; '(' ja short loc_9F7E6 mov r8, rcx mov ecx, eax add rcx, r14 add eax, 8 mov dword ptr [rbp+var_30], eax jmp short loc_9F7EE loc_9F7E6: lea r8, [rcx+8] mov [rbp+var_28], r8 loc_9F7EE: cmp qword ptr [rcx], 0 jz short loc_9F821 cmp eax, 28h ; '(' ja short loc_9F80A mov rcx, r8 mov r8d, eax add r8, r14 add eax, 8 mov dword ptr [rbp+var_30], eax jmp short loc_9F812 loc_9F80A: lea rcx, [r8+8] mov [rbp+var_28], rcx loc_9F812: mov r8d, [r8] add r8, 7 and r8, rbx add rsi, r8 jmp short loc_9F7D1 loc_9F821: call my_malloc test rax, rax jz short loc_9F89F mov [rbp+var_20], r14 lea rcx, [rbp+arg_0] mov [rbp+var_28], rcx mov [rbp+var_30], r15 mov edx, 10h mov rcx, rax loc_9F843: cmp edx, 28h ; '(' ja short loc_9F856 mov esi, edx add rsi, [rbp+var_20] add edx, 8 mov dword ptr [rbp+var_30], edx jmp short loc_9F862 loc_9F856: mov rsi, [rbp+var_28] lea rdx, [rsi+8] mov [rbp+var_28], rdx loc_9F862: mov rdx, [rsi] test rdx, rdx jz short loc_9F89F mov [rdx], rcx mov edx, dword ptr [rbp+var_30] cmp rdx, 28h ; '(' ja short loc_9F885 mov rsi, rdx add rsi, [rbp+var_20] add edx, 8 mov dword ptr [rbp+var_30], edx jmp short loc_9F891 loc_9F885: mov rsi, [rbp+var_28] lea rdi, [rsi+8] mov [rbp+var_28], rdi loc_9F891: mov esi, [rsi] add rsi, 7 and rsi, rbx add rcx, rsi jmp short loc_9F843 loc_9F89F: add rsp, 0C8h pop rbx pop r14 pop r15 pop rbp retn
long long my_multi_malloc( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14, char a15) { unsigned int *v17; // rcx unsigned int v18; // eax long long i; // rsi unsigned int *v20; // r8 long long result; // rax unsigned int v22; // edx long long j; // rcx char *v24; // rsi char *v25; // rsi _BYTE v26[16]; // [rsp+0h] [rbp-E0h] BYREF long long v27; // [rsp+10h] [rbp-D0h] long long v28; // [rsp+18h] [rbp-C8h] long long v29; // [rsp+20h] [rbp-C0h] long long v30; // [rsp+28h] [rbp-B8h] __m128 v31; // [rsp+30h] [rbp-B0h] __m128 v32; // [rsp+40h] [rbp-A0h] __m128 v33; // [rsp+50h] [rbp-90h] __m128 v34; // [rsp+60h] [rbp-80h] __m128 v35; // [rsp+70h] [rbp-70h] __m128 v36; // [rsp+80h] [rbp-60h] __m128 v37; // [rsp+90h] [rbp-50h] __m128 v38; // [rsp+A0h] [rbp-40h] long long v39; // [rsp+B0h] [rbp-30h] char *v40; // [rsp+B8h] [rbp-28h] _BYTE *v41; // [rsp+C0h] [rbp-20h] v31 = a7; v32 = a8; v33 = a9; v34 = a10; v35 = a11; v36 = a12; v37 = a13; v38 = a14; v27 = a3; v28 = a4; v29 = a5; v30 = a6; v41 = v26; v17 = (unsigned int *)&a15; v40 = &a15; v39 = 0x3000000010LL; v18 = 16; for ( i = 0LL; ; i += (*v20 + 7LL) & 0x1FFFFFFF8LL ) { if ( v18 > 0x28 ) { v20 = v17 + 2; v40 = (char *)(v17 + 2); } else { v20 = v17; v17 = (unsigned int *)&v26[v18]; v18 += 8; LODWORD(v39) = v18; } if ( !*(_QWORD *)v17 ) break; if ( v18 > 0x28 ) { v17 = v20 + 2; v40 = (char *)(v20 + 2); } else { v17 = v20; v20 = (unsigned int *)&v26[v18]; v18 += 8; LODWORD(v39) = v18; } } result = my_malloc(a1, i, a2); if ( result ) { v41 = v26; v40 = &a15; v39 = 0x3000000010LL; v22 = 16; for ( j = result; ; j += (*(unsigned int *)v25 + 7LL) & 0x1FFFFFFF8LL ) { if ( v22 > 0x28 ) { v24 = v40; v40 += 8; } else { v24 = &v41[v22]; LODWORD(v39) = v22 + 8; } if ( !*(_QWORD *)v24 ) break; **(_QWORD **)v24 = j; v22 = v39; if ( (unsigned int)v39 > 0x28uLL ) { v25 = v40; v40 += 8; } else { v25 = &v41[(unsigned int)v39]; v22 = v39 + 8; LODWORD(v39) = v39 + 8; } } } return result; }
my_multi_malloc: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0xc8 MOV R10,RDX MOV RDX,RSI LEA R14,[RBP + -0xe0] MOV qword ptr [R14 + 0x10],R10 MOV qword ptr [R14 + 0x18],RCX MOV qword ptr [R14 + 0x20],R8 MOV qword ptr [R14 + 0x28],R9 TEST AL,AL JZ 0x0019f7a6 MOVAPS xmmword ptr [RBP + -0xb0],XMM0 MOVAPS xmmword ptr [RBP + -0xa0],XMM1 MOVAPS xmmword ptr [RBP + -0x90],XMM2 MOVAPS xmmword ptr [RBP + -0x80],XMM3 MOVAPS xmmword ptr [RBP + -0x70],XMM4 MOVAPS xmmword ptr [RBP + -0x60],XMM5 MOVAPS xmmword ptr [RBP + -0x50],XMM6 MOVAPS xmmword ptr [RBP + -0x40],XMM7 LAB_0019f7a6: MOV RBX,0x1fffffff8 MOV qword ptr [RBP + -0x20],R14 LEA RCX,[RBP + 0x10] MOV qword ptr [RBP + -0x28],RCX MOV R15,0x3000000010 MOV qword ptr [RBP + -0x30],R15 MOV EAX,0x10 XOR ESI,ESI LAB_0019f7d1: CMP EAX,0x28 JA 0x0019f7e6 MOV R8,RCX MOV ECX,EAX ADD RCX,R14 ADD EAX,0x8 MOV dword ptr [RBP + -0x30],EAX JMP 0x0019f7ee LAB_0019f7e6: LEA R8,[RCX + 0x8] MOV qword ptr [RBP + -0x28],R8 LAB_0019f7ee: CMP qword ptr [RCX],0x0 JZ 0x0019f821 CMP EAX,0x28 JA 0x0019f80a MOV RCX,R8 MOV R8D,EAX ADD R8,R14 ADD EAX,0x8 MOV dword ptr [RBP + -0x30],EAX JMP 0x0019f812 LAB_0019f80a: LEA RCX,[R8 + 0x8] MOV qword ptr [RBP + -0x28],RCX LAB_0019f812: MOV R8D,dword ptr [R8] ADD R8,0x7 AND R8,RBX ADD RSI,R8 JMP 0x0019f7d1 LAB_0019f821: CALL 0x001a2c71 TEST RAX,RAX JZ 0x0019f89f MOV qword ptr [RBP + -0x20],R14 LEA RCX,[RBP + 0x10] MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R15 MOV EDX,0x10 MOV RCX,RAX LAB_0019f843: CMP EDX,0x28 JA 0x0019f856 MOV ESI,EDX ADD RSI,qword ptr [RBP + -0x20] ADD EDX,0x8 MOV dword ptr [RBP + -0x30],EDX JMP 0x0019f862 LAB_0019f856: MOV RSI,qword ptr [RBP + -0x28] LEA RDX,[RSI + 0x8] MOV qword ptr [RBP + -0x28],RDX LAB_0019f862: MOV RDX,qword ptr [RSI] TEST RDX,RDX JZ 0x0019f89f MOV qword ptr [RDX],RCX MOV EDX,dword ptr [RBP + -0x30] CMP RDX,0x28 JA 0x0019f885 MOV RSI,RDX ADD RSI,qword ptr [RBP + -0x20] ADD EDX,0x8 MOV dword ptr [RBP + -0x30],EDX JMP 0x0019f891 LAB_0019f885: MOV RSI,qword ptr [RBP + -0x28] LEA RDI,[RSI + 0x8] MOV qword ptr [RBP + -0x28],RDI LAB_0019f891: MOV ESI,dword ptr [RSI] ADD RSI,0x7 AND RSI,RBX ADD RCX,RSI JMP 0x0019f843 LAB_0019f89f: ADD RSP,0xc8 POP RBX POP R14 POP R15 POP RBP RET
void my_multi_malloc(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, int8 param_9,int8 param_10,int8 param_11,int8 param_12, int8 param_13,int8 param_14) { char in_AL; uint uVar1; uint *puVar2; ulong uVar3; long lVar4; uint *puVar5; uint *puVar6; uint local_e8 [4]; int8 local_d8; int8 local_d0; int8 local_c8; int8 local_c0; int8 local_b8; int8 local_a8; int8 local_98; int8 local_88; int8 local_78; int8 local_68; int8 local_58; int8 local_48; uint local_38; int4 uStack_34; uint *local_30; uint *local_28; local_d8 = param_11; local_d0 = param_12; local_c8 = param_13; local_c0 = param_14; if (in_AL != '\0') { local_b8 = param_1; local_a8 = param_2; local_98 = param_3; local_88 = param_4; local_78 = param_5; local_68 = param_6; local_58 = param_7; local_48 = param_8; } local_28 = local_e8; puVar5 = (uint *)&stack0x00000008; local_30 = puVar5; local_38 = 0x10; uStack_34 = 0x30; uVar1 = 0x10; lVar4 = 0; while( true ) { if (uVar1 < 0x29) { uVar3 = (ulong)uVar1; uVar1 = uVar1 + 8; local_38 = uVar1; puVar2 = (uint *)((long)local_e8 + uVar3); puVar6 = puVar5; } else { puVar6 = puVar5 + 2; local_30 = puVar6; puVar2 = puVar5; } if (*(long *)puVar2 == 0) break; if (uVar1 < 0x29) { uVar3 = (ulong)uVar1; uVar1 = uVar1 + 8; local_38 = uVar1; puVar5 = puVar6; puVar6 = (uint *)((long)local_e8 + uVar3); } else { puVar5 = puVar6 + 2; local_30 = puVar5; } lVar4 = lVar4 + ((ulong)*puVar6 + 7 & 0x1fffffff8); } lVar4 = my_malloc(param_9,lVar4,param_10); if (lVar4 != 0) { local_30 = (uint *)&stack0x00000008; uVar1 = 0x10; uVar3 = 0x10; while( true ) { if ((uint)uVar3 < 0x29) { uVar1 = (uint)uVar3 + 8; puVar5 = (uint *)((long)local_e8 + uVar3); } else { puVar5 = local_30; local_30 = local_30 + 2; } if (*(long **)puVar5 == (long *)0x0) break; **(long **)puVar5 = lVar4; uVar3 = (ulong)uVar1; if (uVar3 < 0x29) { puVar5 = (uint *)((long)local_e8 + uVar3); uVar1 = uVar1 + 8; uVar3 = (ulong)uVar1; } else { puVar5 = local_30; local_30 = local_30 + 2; } lVar4 = lVar4 + ((ulong)*puVar5 + 7 & 0x1fffffff8); } } return; }
6,268
my_scan_utf32
eloqsql/strings/ctype-ucs2.c
static size_t my_scan_utf32(CHARSET_INFO *cs, const char *str, const char *end, int sequence_type) { const char *str0= str; switch (sequence_type) { case MY_SEQ_SPACES: for ( ; str < end; ) { my_wc_t wc; int res= my_utf32_uni(cs, &wc, (uchar*) str, (uchar*) end); if (res < 0 || wc != ' ') break; str+= res; } return (size_t) (str - str0); case MY_SEQ_NONSPACES: DBUG_ASSERT(0); /* Not implemented */ /* pass through */ default: return 0; } }
O3
c
my_scan_utf32: cmpl $0x2, %ecx jne 0xc5069 pushq %rbp movq %rsp, %rbp movq %rsi, %rcx movq %rcx, %rax cmpq %rdx, %rcx jae 0xc5064 leaq 0x4(%rax), %rcx cmpq %rdx, %rcx ja 0xc5064 movzbl (%rax), %ecx shll $0x18, %ecx movzbl 0x1(%rax), %edi shll $0x10, %edi orl %ecx, %edi xorl %ecx, %ecx cmpl $0x110000, %edi # imm = 0x110000 setb %cl movzwl 0x2(%rax), %r8d rolw $0x8, %r8w movzwl %r8w, %r8d orl %edi, %r8d leaq (%rax,%rcx,4), %rcx cmpl $0x20, %r8d je 0xc501e subq %rsi, %rax popq %rbp retq xorl %eax, %eax retq
my_scan_utf32: cmp ecx, 2 jnz short loc_C5069 push rbp mov rbp, rsp mov rcx, rsi loc_C501E: mov rax, rcx cmp rcx, rdx jnb short loc_C5064 lea rcx, [rax+4] cmp rcx, rdx ja short loc_C5064 movzx ecx, byte ptr [rax] shl ecx, 18h movzx edi, byte ptr [rax+1] shl edi, 10h or edi, ecx xor ecx, ecx cmp edi, offset unk_110000 setb cl movzx r8d, word ptr [rax+2] rol r8w, 8 movzx r8d, r8w or r8d, edi lea rcx, [rax+rcx*4] cmp r8d, 20h ; ' ' jz short loc_C501E loc_C5064: sub rax, rsi pop rbp retn loc_C5069: xor eax, eax retn
long long my_scan_utf32(long long a1, unsigned __int8 *a2, unsigned long long a3, int a4) { unsigned __int8 *v4; // rcx unsigned __int8 *v5; // rax unsigned int v6; // edi if ( a4 != 2 ) return 0LL; v4 = a2; do { v5 = v4; if ( (unsigned long long)v4 >= a3 ) break; if ( (unsigned long long)(v4 + 4) > a3 ) break; v6 = (*v4 << 24) | (v4[1] << 16); v4 += 4 * (v6 < (unsigned int)&unk_110000); } while ( (v6 | (unsigned __int16)__ROL2__(*((_WORD *)v5 + 1), 8)) == 0x20 ); return v5 - a2; }
my_scan_utf32: CMP ECX,0x2 JNZ 0x001c5069 PUSH RBP MOV RBP,RSP MOV RCX,RSI LAB_001c501e: MOV RAX,RCX CMP RCX,RDX JNC 0x001c5064 LEA RCX,[RAX + 0x4] CMP RCX,RDX JA 0x001c5064 MOVZX ECX,byte ptr [RAX] SHL ECX,0x18 MOVZX EDI,byte ptr [RAX + 0x1] SHL EDI,0x10 OR EDI,ECX XOR ECX,ECX CMP EDI,0x110000 SETC CL MOVZX R8D,word ptr [RAX + 0x2] ROL R8W,0x8 MOVZX R8D,R8W OR R8D,EDI LEA RCX,[RAX + RCX*0x4] CMP R8D,0x20 JZ 0x001c501e LAB_001c5064: SUB RAX,RSI POP RBP RET LAB_001c5069: XOR EAX,EAX RET
long my_scan_utf32(int8 param_1,byte *param_2,byte *param_3,int param_4) { byte *pbVar1; byte *pbVar2; uint uVar3; pbVar1 = param_2; if (param_4 != 2) { return 0; } do { pbVar2 = pbVar1; if ((param_3 <= pbVar2) || (param_3 < pbVar2 + 4)) break; uVar3 = (uint)pbVar2[1] << 0x10 | (uint)*pbVar2 << 0x18; pbVar1 = pbVar2 + (ulong)(uVar3 < 0x110000) * 4; } while (((ushort)(*(ushort *)(pbVar2 + 2) << 8 | *(ushort *)(pbVar2 + 2) >> 8) | uVar3) == 0x20); return (long)pbVar2 - (long)param_2; }
6,269
file_set
corpus-core[P]colibri-stateless/src/util/plugin.c
static void file_set(char* key, bytes_t value) { char* full_path = combine_filename(key); if (full_path == NULL) return; FILE* file = fopen(full_path, "wb"); safe_free(full_path); if (!file) return; fwrite(value.data, 1, value.len, file); fclose(file); }
O0
c
file_set: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movl %esi, -0x10(%rbp) movq %rdx, -0x8(%rbp) movq %rdi, -0x18(%rbp) movq -0x18(%rbp), %rdi callq 0xa3ae0 movq %rax, -0x20(%rbp) cmpq $0x0, -0x20(%rbp) jne 0xa39f9 jmp 0xa3a3f movq -0x20(%rbp), %rdi leaq 0x36736(%rip), %rsi # 0xda13a callq 0x23280 movq %rax, -0x28(%rbp) movq -0x20(%rbp), %rdi callq 0x9c5a0 cmpq $0x0, -0x28(%rbp) jne 0xa3a1f jmp 0xa3a3f movq -0x8(%rbp), %rdi movl -0x10(%rbp), %eax movl %eax, %edx movq -0x28(%rbp), %rcx movl $0x1, %esi callq 0x23480 movq -0x28(%rbp), %rdi callq 0x23210 addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
file_set: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], esi mov [rbp+var_8], rdx mov [rbp+var_18], rdi mov rdi, [rbp+var_18] call combine_filename mov [rbp+var_20], rax cmp [rbp+var_20], 0 jnz short loc_A39F9 jmp short loc_A3A3F loc_A39F9: mov rdi, [rbp+var_20] lea rsi, aWb; "wb" call _fopen mov [rbp+var_28], rax mov rdi, [rbp+var_20] call safe_free cmp [rbp+var_28], 0 jnz short loc_A3A1F jmp short loc_A3A3F loc_A3A1F: mov rdi, [rbp+var_8] mov eax, [rbp+var_10] mov edx, eax mov rcx, [rbp+var_28] mov esi, 1 call _fwrite mov rdi, [rbp+var_28] call _fclose loc_A3A3F: add rsp, 30h pop rbp retn
long long file_set(long long a1, unsigned int a2, long long a3) { long long result; // rax long long v4; // [rsp+8h] [rbp-28h] long long v5; // [rsp+10h] [rbp-20h] result = combine_filename(a1); v5 = result; if ( result ) { v4 = fopen(result, "wb"); result = safe_free(v5); if ( v4 ) { fwrite(a3, 1LL, a2, v4); return fclose(v4); } } return result; }
file_set: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV dword ptr [RBP + -0x10],ESI MOV qword ptr [RBP + -0x8],RDX MOV qword ptr [RBP + -0x18],RDI MOV RDI,qword ptr [RBP + -0x18] CALL 0x001a3ae0 MOV qword ptr [RBP + -0x20],RAX CMP qword ptr [RBP + -0x20],0x0 JNZ 0x001a39f9 JMP 0x001a3a3f LAB_001a39f9: MOV RDI,qword ptr [RBP + -0x20] LEA RSI,[0x1da13a] CALL 0x00123280 MOV qword ptr [RBP + -0x28],RAX MOV RDI,qword ptr [RBP + -0x20] CALL 0x0019c5a0 CMP qword ptr [RBP + -0x28],0x0 JNZ 0x001a3a1f JMP 0x001a3a3f LAB_001a3a1f: MOV RDI,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RBP + -0x10] MOV EDX,EAX MOV RCX,qword ptr [RBP + -0x28] MOV ESI,0x1 CALL 0x00123480 MOV RDI,qword ptr [RBP + -0x28] CALL 0x00123210 LAB_001a3a3f: ADD RSP,0x30 POP RBP RET
void file_set(int8 param_1,uint param_2,void *param_3) { char *__filename; FILE *__s; __filename = (char *)combine_filename(param_1); if (__filename != (char *)0x0) { __s = fopen(__filename,"wb"); safe_free(__filename); if (__s != (FILE *)0x0) { fwrite(param_3,1,(ulong)param_2,__s); fclose(__s); } } return; }
6,270
file_set
corpus-core[P]colibri-stateless/src/util/plugin.c
static void file_set(char* key, bytes_t value) { char* full_path = combine_filename(key); if (full_path == NULL) return; FILE* file = fopen(full_path, "wb"); safe_free(full_path); if (!file) return; fwrite(value.data, 1, value.len, file); fclose(file); }
O3
c
file_set: pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rdx, %rbx movl %esi, %ebp callq 0x55246 testq %rax, %rax je 0x551f0 movq %rax, %r15 leaq 0x29f86(%rip), %rsi # 0x7f13a movq %rax, %rdi callq 0x21250 movq %rax, %r14 movq %r15, %rdi callq 0x50f4c testq %r14, %r14 je 0x551f0 movl %ebp, %edx movl $0x1, %esi movq %rbx, %rdi movq %r14, %rcx callq 0x21400 movq %r14, %rdi addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp jmp 0x211e0 addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
file_set: push rbp push r15 push r14 push rbx push rax mov rbx, rdx mov ebp, esi call combine_filename test rax, rax jz short loc_551F0 mov r15, rax lea rsi, aWb; "wb" mov rdi, rax call _fopen mov r14, rax mov rdi, r15 call safe_free test r14, r14 jz short loc_551F0 mov edx, ebp mov esi, 1 mov rdi, rbx mov rcx, r14 call _fwrite mov rdi, r14 add rsp, 8 pop rbx pop r14 pop r15 pop rbp jmp _fclose loc_551F0: add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long file_set(long long a1, unsigned int a2, long long a3) { long long result; // rax long long v5; // rdx long long v6; // rcx long long v7; // r15 long long v8; // r14 result = combine_filename(a1); if ( result ) { v7 = result; v8 = fopen(result, "wb", v5, v6); result = safe_free(v7); if ( v8 ) { fwrite(a3, 1LL, a2, v8); return fclose(v8); } } return result; }
file_set: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV RBX,RDX MOV EBP,ESI CALL 0x00155246 TEST RAX,RAX JZ 0x001551f0 MOV R15,RAX LEA RSI,[0x17f13a] MOV RDI,RAX CALL 0x00121250 MOV R14,RAX MOV RDI,R15 CALL 0x00150f4c TEST R14,R14 JZ 0x001551f0 MOV EDX,EBP MOV ESI,0x1 MOV RDI,RBX MOV RCX,R14 CALL 0x00121400 MOV RDI,R14 ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP JMP 0x001211e0 LAB_001551f0: ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
void file_set(int8 param_1,ulong param_2,void *param_3) { char *__filename; FILE *__s; __filename = (char *)combine_filename(); if (__filename != (char *)0x0) { __s = fopen(__filename,"wb"); safe_free(__filename); if (__s != (FILE *)0x0) { fwrite(param_3,1,param_2 & 0xffffffff,__s); fclose(__s); return; } } return; }
6,271
sapphire_plugins::shared::ProcessorShim<sapphire_plugins::elastika::ElastikaClap>::registerOrUnregisterTimer(unsigned int&, int, bool)
sapphire-plugins/src/shared/processor_shim.h
bool registerOrUnregisterTimer(clap_id &id, int ms, bool reg) override { if (!_host.canUseTimerSupport()) return false; if (reg) { _host.timerSupportRegister(ms, &id); } else { _host.timerSupportUnregister(id); } return true; }
O3
c
sapphire_plugins::shared::ProcessorShim<sapphire_plugins::elastika::ElastikaClap>::registerOrUnregisterTimer(unsigned int&, int, bool): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx movl %ecx, %r12d movl %edx, %ebp movq %rsi, %r14 movq %rdi, %r15 addq $0x8, %r15 movq %r15, %rdi callq 0xeb0e8 movl %eax, %ebx testb %al, %al je 0xd3aaa testb %r12b, %r12b je 0xd3a9f movq %r15, %rdi movl %ebp, %esi movq %r14, %rdx callq 0xeb11e jmp 0xd3aaa movl (%r14), %esi movq %r15, %rdi callq 0xeb152 movl %ebx, %eax popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq nop
_ZN16sapphire_plugins6shared13ProcessorShimINS_8elastika12ElastikaClapEE25registerOrUnregisterTimerERjib: push rbp push r15 push r14 push r12 push rbx mov r12d, ecx mov ebp, edx mov r14, rsi mov r15, rdi add r15, 8 mov rdi, r15 call _ZNK4clap7helpers9HostProxyILNS0_19MisbehaviourHandlerE0ELNS0_13CheckingLevelE2EE18canUseTimerSupportEv; clap::helpers::HostProxy<(clap::helpers::MisbehaviourHandler)0,(clap::helpers::CheckingLevel)2>::canUseTimerSupport(void) mov ebx, eax test al, al jz short loc_D3AAA test r12b, r12b jz short loc_D3A9F mov rdi, r15 mov esi, ebp mov rdx, r14 call _ZNK4clap7helpers9HostProxyILNS0_19MisbehaviourHandlerE0ELNS0_13CheckingLevelE2EE20timerSupportRegisterEjPj; clap::helpers::HostProxy<(clap::helpers::MisbehaviourHandler)0,(clap::helpers::CheckingLevel)2>::timerSupportRegister(uint,uint *) jmp short loc_D3AAA loc_D3A9F: mov esi, [r14] mov rdi, r15 call _ZNK4clap7helpers9HostProxyILNS0_19MisbehaviourHandlerE0ELNS0_13CheckingLevelE2EE22timerSupportUnregisterEj; clap::helpers::HostProxy<(clap::helpers::MisbehaviourHandler)0,(clap::helpers::CheckingLevel)2>::timerSupportUnregister(uint) loc_D3AAA: mov eax, ebx pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long sapphire_plugins::shared::ProcessorShim<sapphire_plugins::elastika::ElastikaClap>::registerOrUnregisterTimer( long long a1, unsigned int *a2, unsigned int a3, char a4) { long long v6; // r15 unsigned int canUseTimerSupport; // ebx v6 = a1 + 8; canUseTimerSupport = clap::helpers::HostProxy<(clap::helpers::MisbehaviourHandler)0,(clap::helpers::CheckingLevel)2>::canUseTimerSupport(a1 + 8); if ( (_BYTE)canUseTimerSupport ) { if ( a4 ) clap::helpers::HostProxy<(clap::helpers::MisbehaviourHandler)0,(clap::helpers::CheckingLevel)2>::timerSupportRegister( v6, a3, a2); else clap::helpers::HostProxy<(clap::helpers::MisbehaviourHandler)0,(clap::helpers::CheckingLevel)2>::timerSupportUnregister( v6, *a2); } return canUseTimerSupport; }
registerOrUnregisterTimer: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX MOV R12D,ECX MOV EBP,EDX MOV R14,RSI MOV R15,RDI ADD R15,0x8 MOV RDI,R15 CALL 0x001eb0e8 MOV EBX,EAX TEST AL,AL JZ 0x001d3aaa TEST R12B,R12B JZ 0x001d3a9f MOV RDI,R15 MOV ESI,EBP MOV RDX,R14 CALL 0x001eb11e JMP 0x001d3aaa LAB_001d3a9f: MOV ESI,dword ptr [R14] MOV RDI,R15 CALL 0x001eb152 LAB_001d3aaa: MOV EAX,EBX POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* sapphire_plugins::shared::ProcessorShim<sapphire_plugins::elastika::ElastikaClap>::registerOrUnregisterTimer(unsigned int&, int, bool) */ int4 __thiscall sapphire_plugins::shared::ProcessorShim<sapphire_plugins::elastika::ElastikaClap>:: registerOrUnregisterTimer (ProcessorShim<sapphire_plugins::elastika::ElastikaClap> *this,uint *param_1,int param_2, bool param_3) { int4 uVar1; HostProxy<(clap::helpers::MisbehaviourHandler)0,(clap::helpers::CheckingLevel)2> *this_00; this_00 = (HostProxy<(clap::helpers::MisbehaviourHandler)0,(clap::helpers::CheckingLevel)2> *) (this + 8); uVar1 = clap::helpers:: HostProxy<(clap::helpers::MisbehaviourHandler)0,(clap::helpers::CheckingLevel)2>:: canUseTimerSupport(this_00); if ((char)uVar1 != '\0') { if (param_3) { clap::helpers:: HostProxy<(clap::helpers::MisbehaviourHandler)0,(clap::helpers::CheckingLevel)2>:: timerSupportRegister(this_00,param_2,param_1); } else { clap::helpers:: HostProxy<(clap::helpers::MisbehaviourHandler)0,(clap::helpers::CheckingLevel)2>:: timerSupportUnregister(this_00,*param_1); } } return uVar1; }
6,272
Settings::setLastShot(unsigned long, unsigned long)
666mxvbee[P]BattleShip/lib/Settings/Settings.cpp
void Settings::setLastShot(uint64_t x, uint64_t y) { std::lock_guard<std::mutex> lock(settings_mutex); lastShotX = x; lastShotY = y; haveLastShot = true; }
O1
cpp
Settings::setLastShot(unsigned long, unsigned long): pushq %r15 pushq %r14 pushq %rbx movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx callq 0x5520 testl %eax, %eax jne 0x6e31 movq %r15, 0xc8(%rbx) movq %r14, 0xd0(%rbx) movb $0x1, 0xc0(%rbx) movq %rbx, %rdi popq %rbx popq %r14 popq %r15 jmp 0x52f0 movl %eax, %edi callq 0x5260
_ZN8Settings11setLastShotEmm: push r15 push r14 push rbx mov r14, rdx mov r15, rsi mov rbx, rdi call _pthread_mutex_lock test eax, eax jnz short loc_6E31 mov [rbx+0C8h], r15 mov [rbx+0D0h], r14 mov byte ptr [rbx+0C0h], 1 mov rdi, rbx pop rbx pop r14 pop r15 jmp _pthread_mutex_unlock loc_6E31: mov edi, eax; int call __ZSt20__throw_system_errori; std::__throw_system_error(int)
long long Settings::setLastShot(Settings *this, long long a2, long long a3) { int v4; // eax v4 = pthread_mutex_lock(this); if ( v4 ) std::__throw_system_error(v4); *((_QWORD *)this + 25) = a2; *((_QWORD *)this + 26) = a3; *((_BYTE *)this + 192) = 1; return pthread_mutex_unlock(this); }
setLastShot: PUSH R15 PUSH R14 PUSH RBX MOV R14,RDX MOV R15,RSI MOV RBX,RDI CALL 0x00105520 TEST EAX,EAX JNZ 0x00106e31 MOV qword ptr [RBX + 0xc8],R15 MOV qword ptr [RBX + 0xd0],R14 MOV byte ptr [RBX + 0xc0],0x1 MOV RDI,RBX POP RBX POP R14 POP R15 JMP 0x001052f0 LAB_00106e31: MOV EDI,EAX CALL 0x00105260
/* Settings::setLastShot(unsigned long, unsigned long) */ void __thiscall Settings::setLastShot(Settings *this,ulong param_1,ulong param_2) { int iVar1; iVar1 = pthread_mutex_lock((pthread_mutex_t *)this); if (iVar1 == 0) { *(ulong *)(this + 200) = param_1; *(ulong *)(this + 0xd0) = param_2; this[0xc0] = (Settings)0x1; pthread_mutex_unlock((pthread_mutex_t *)this); return; } /* WARNING: Subroutine does not return */ std::__throw_system_error(iVar1); }
6,273
mysql_hex_string
eloqsql/libmariadb/libmariadb/mariadb_lib.c
ulong STDCALL mysql_hex_string(char *to, const char *from, unsigned long len) { char *start= to; char hexdigits[]= "0123456789ABCDEF"; while (len--) { *to++= hexdigits[((unsigned char)*from) >> 4]; *to++= hexdigits[((unsigned char)*from) & 0x0F]; from++; } *to= 0; return (ulong)(to - start); }
O0
c
mysql_hex_string: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x28(%rbp) movq %rsi, -0x30(%rbp) movq %rdx, -0x38(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x40(%rbp) movq 0x2cfa0(%rip), %rax # 0x4ede0 movq %rax, -0x20(%rbp) movq 0x2cf9d(%rip), %rax # 0x4ede8 movq %rax, -0x18(%rbp) movb 0x2cf9b(%rip), %al # 0x4edf0 movb %al, -0x10(%rbp) movq -0x38(%rbp), %rax movq %rax, %rcx addq $-0x1, %rcx movq %rcx, -0x38(%rbp) cmpq $0x0, %rax je 0x21ebd movq -0x30(%rbp), %rax movzbl (%rax), %eax sarl $0x4, %eax cltq movb -0x20(%rbp,%rax), %cl movq -0x28(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x28(%rbp) movb %cl, (%rax) movq -0x30(%rbp), %rax movzbl (%rax), %eax andl $0xf, %eax cltq movb -0x20(%rbp,%rax), %cl movq -0x28(%rbp), %rax movq %rax, %rdx addq $0x1, %rdx movq %rdx, -0x28(%rbp) movb %cl, (%rax) movq -0x30(%rbp), %rax addq $0x1, %rax movq %rax, -0x30(%rbp) jmp 0x21e58 movq -0x28(%rbp), %rax movb $0x0, (%rax) movq -0x28(%rbp), %rax movq -0x40(%rbp), %rcx subq %rcx, %rax movq %rax, -0x48(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x21eef movq -0x48(%rbp), %rax addq $0x50, %rsp popq %rbp retq callq 0x134b0 nopw %cs:(%rax,%rax)
mysql_hex_string: push rbp mov rbp, rsp sub rsp, 50h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_28], rdi mov [rbp+var_30], rsi mov [rbp+var_38], rdx mov rax, [rbp+var_28] mov [rbp+var_40], rax mov rax, cs:qword_4EDE0 mov [rbp+var_20], rax mov rax, cs:qword_4EDE8 mov [rbp+var_18], rax mov al, cs:byte_4EDF0 mov [rbp+var_10], al loc_21E58: mov rax, [rbp+var_38] mov rcx, rax add rcx, 0FFFFFFFFFFFFFFFFh mov [rbp+var_38], rcx cmp rax, 0 jz short loc_21EBD mov rax, [rbp+var_30] movzx eax, byte ptr [rax] sar eax, 4 cdqe mov cl, byte ptr [rbp+rax+var_20] mov rax, [rbp+var_28] mov rdx, rax add rdx, 1 mov [rbp+var_28], rdx mov [rax], cl mov rax, [rbp+var_30] movzx eax, byte ptr [rax] and eax, 0Fh cdqe mov cl, byte ptr [rbp+rax+var_20] mov rax, [rbp+var_28] mov rdx, rax add rdx, 1 mov [rbp+var_28], rdx mov [rax], cl mov rax, [rbp+var_30] add rax, 1 mov [rbp+var_30], rax jmp short loc_21E58 loc_21EBD: mov rax, [rbp+var_28] mov byte ptr [rax], 0 mov rax, [rbp+var_28] mov rcx, [rbp+var_40] sub rax, rcx mov [rbp+var_48], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_21EEF mov rax, [rbp+var_48] add rsp, 50h pop rbp retn loc_21EEF: call ___stack_chk_fail
_BYTE * mysql_hex_string(_BYTE *a1, unsigned __int8 *a2, long long a3) { _BYTE *v4; // rax _BYTE *v8; // [rsp+28h] [rbp-28h] char v9[24]; // [rsp+30h] [rbp-20h] BYREF unsigned long long v10; // [rsp+48h] [rbp-8h] v10 = __readfsqword(0x28u); v8 = a1; strcpy(v9, "0123456789ABCDEF"); while ( a3-- ) { *v8 = v9[(int)*a2 >> 4]; v4 = v8 + 1; v8 += 2; *v4 = v9[*a2++ & 0xF]; } *v8 = 0; return (_BYTE *)(v8 - a1); }
mysql_hex_string: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x28],RDI MOV qword ptr [RBP + -0x30],RSI MOV qword ptr [RBP + -0x38],RDX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [0x0014ede0] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [0x0014ede8] MOV qword ptr [RBP + -0x18],RAX MOV AL,byte ptr [0x0014edf0] MOV byte ptr [RBP + -0x10],AL LAB_00121e58: MOV RAX,qword ptr [RBP + -0x38] MOV RCX,RAX ADD RCX,-0x1 MOV qword ptr [RBP + -0x38],RCX CMP RAX,0x0 JZ 0x00121ebd MOV RAX,qword ptr [RBP + -0x30] MOVZX EAX,byte ptr [RAX] SAR EAX,0x4 CDQE MOV CL,byte ptr [RBP + RAX*0x1 + -0x20] MOV RAX,qword ptr [RBP + -0x28] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x28],RDX MOV byte ptr [RAX],CL MOV RAX,qword ptr [RBP + -0x30] MOVZX EAX,byte ptr [RAX] AND EAX,0xf CDQE MOV CL,byte ptr [RBP + RAX*0x1 + -0x20] MOV RAX,qword ptr [RBP + -0x28] MOV RDX,RAX ADD RDX,0x1 MOV qword ptr [RBP + -0x28],RDX MOV byte ptr [RAX],CL MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x1 MOV qword ptr [RBP + -0x30],RAX JMP 0x00121e58 LAB_00121ebd: MOV RAX,qword ptr [RBP + -0x28] MOV byte ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x40] SUB RAX,RCX MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x00121eef MOV RAX,qword ptr [RBP + -0x48] ADD RSP,0x50 POP RBP RET LAB_00121eef: CALL 0x001134b0
long mysql_hex_string(char *param_1,byte *param_2,long param_3) { char *pcVar1; long in_FS_OFFSET; long local_40; byte *local_38; char *local_30; char local_28 [16]; char local_18; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_28._0_8_ = s_0123456789ABCDEF_0014ede0._0_8_; local_28._8_8_ = s_0123456789ABCDEF_0014ede0._8_8_; local_18 = s_0123456789ABCDEF_0014ede0[0x10]; local_40 = param_3; local_38 = param_2; local_30 = param_1; while (local_40 != 0) { pcVar1 = local_30 + 1; *local_30 = local_28[(int)(uint)*local_38 >> 4]; local_30 = local_30 + 2; *pcVar1 = local_28[(int)(*local_38 & 0xf)]; local_38 = local_38 + 1; local_40 = local_40 + -1; } *local_30 = '\0'; if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return (long)local_30 - (long)param_1; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
6,274
intx::operator>>(intx::uint<256u> const&, unsigned long)
corpus-core[P]colibri-stateless/build_O2/_deps/intx-src/include/intx/intx.hpp
inline constexpr uint256 operator>>(const uint256& x, uint64_t shift) noexcept { if (INTX_UNLIKELY(shift >= uint256::num_bits)) return 0; constexpr auto num_bits = uint256::num_bits; constexpr auto half_bits = num_bits / 2; const auto xhi = uint128{x[2], x[3]}; if (shift < half_bits) { const auto hi = xhi >> shift; const auto xlo = uint128{x[0], x[1]}; // Find the part moved from hi to lo. // The shift left here can be invalid: // for shift == 0 => lshift == half_bits. // Split it into 2 valid shifts by (lshift - 1) and 1. const auto lshift = half_bits - shift; const auto hi_overflow = (xhi << (lshift - 1)) << 1; const auto lo = (xlo >> shift) | hi_overflow; return {lo[0], lo[1], hi[0], hi[1]}; } const auto lo = xhi >> (shift - half_bits); return {lo[0], lo[1], 0, 0}; }
O2
cpp
intx::operator>>(intx::uint<256u> const&, unsigned long): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %rbx cmpq $0x100, %rdx # imm = 0x100 jae 0x39daf movq %rdx, %r14 movq %rsi, %r15 movq 0x10(%rsi), %rbp movq 0x18(%rsi), %r13 cmpq $0x7f, %rdx ja 0x39d7d movq %rbp, %rdi movq %r13, %rsi movq %r14, %rdx callq 0x38a41 movq %rax, 0x10(%rsp) movq %rdx, 0x8(%rsp) movq (%r15), %r12 movq 0x8(%r15), %r15 pushq $0x7f popq %rdx subq %r14, %rdx movq %rbp, %rdi movq %r13, %rsi callq 0x38e41 movq %rax, %r13 movq %rdx, %rbp shldq $0x1, %rax, %rbp addq %rax, %r13 movq %r12, %rdi movq %r15, %rsi movq %r14, %rdx callq 0x38a41 orq %r13, %rax orq %rbp, %rdx movq %rax, (%rbx) movq %rdx, 0x8(%rbx) movq 0x10(%rsp), %rax movq %rax, 0x10(%rbx) movq 0x8(%rsp), %rax movq %rax, 0x18(%rbx) jmp 0x39d9d addq $-0x80, %r14 movq %rbp, %rdi movq %r13, %rsi movq %r14, %rdx callq 0x38a41 movq %rax, (%rbx) movq %rdx, 0x8(%rbx) xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rbx) movq %rbx, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rbx) movups %xmm0, (%rbx) jmp 0x39d9d
_ZN4intxrsERKNS_4uintILj256EEEm: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov rbx, rdi cmp rdx, 100h jnb loc_39DAF mov r14, rdx mov r15, rsi mov rbp, [rsi+10h] mov r13, [rsi+18h] cmp rdx, 7Fh ja short loc_39D7D mov rdi, rbp mov rsi, r13 mov rdx, r14 call _ZN4intxrsENS_4uintILj128EEEm; intx::operator>>(intx::uint<128u>,ulong) mov [rsp+48h+var_38], rax mov [rsp+48h+var_40], rdx mov r12, [r15] mov r15, [r15+8] push 7Fh pop rdx sub rdx, r14 mov rdi, rbp mov rsi, r13 call _ZN4intxlsENS_4uintILj128EEEm; intx::operator<<(intx::uint<128u>,ulong) mov r13, rax mov rbp, rdx shld rbp, rax, 1 add r13, rax mov rdi, r12 mov rsi, r15 mov rdx, r14 call _ZN4intxrsENS_4uintILj128EEEm; intx::operator>>(intx::uint<128u>,ulong) or rax, r13 or rdx, rbp mov [rbx], rax mov [rbx+8], rdx mov rax, [rsp+48h+var_38] mov [rbx+10h], rax mov rax, [rsp+48h+var_40] mov [rbx+18h], rax jmp short loc_39D9D loc_39D7D: add r14, 0FFFFFFFFFFFFFF80h mov rdi, rbp mov rsi, r13 mov rdx, r14 call _ZN4intxrsENS_4uintILj128EEEm; intx::operator>>(intx::uint<128u>,ulong) mov [rbx], rax mov [rbx+8], rdx xorps xmm0, xmm0 movups xmmword ptr [rbx+10h], xmm0 loc_39D9D: mov rax, rbx add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_39DAF: xorps xmm0, xmm0 movups xmmword ptr [rbx+10h], xmm0 movups xmmword ptr [rbx], xmm0 jmp short loc_39D9D
long long intx::operator>>(long long a1, unsigned long long *a2, unsigned long long a3) { long long v4; // rbp long long v5; // r13 long long v6; // rdx unsigned long long v7; // r12 unsigned long long v8; // r15 __int128 v9; // rax __int128 v10; // rt0 long long v11; // rdx long long v12; // rdx long long v14; // [rsp+8h] [rbp-40h] long long v15; // [rsp+10h] [rbp-38h] if ( a3 >= 0x100 ) { *(_OWORD *)(a1 + 16) = 0LL; *(_OWORD *)a1 = 0LL; } else { v4 = a2[2]; v5 = a2[3]; if ( a3 > 0x7F ) { *(_QWORD *)a1 = intx::operator>>(a2[2], a2[3], a3 - 128); *(_QWORD *)(a1 + 8) = v12; *(_OWORD *)(a1 + 16) = 0LL; } else { v15 = intx::operator>>(a2[2], a2[3], a3); v14 = v6; v7 = *a2; v8 = a2[1]; *(_QWORD *)&v9 = intx::operator<<(v4, v5, 127 - a3); v10 = v9; *(_QWORD *)a1 = (2 * v9) | intx::operator>>(v7, v8, a3); *(_QWORD *)(a1 + 8) = (v10 >> 63) | v11; *(_QWORD *)(a1 + 16) = v15; *(_QWORD *)(a1 + 24) = v14; } } return a1; }
operator>>: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV RBX,RDI CMP RDX,0x100 JNC 0x00139daf MOV R14,RDX MOV R15,RSI MOV RBP,qword ptr [RSI + 0x10] MOV R13,qword ptr [RSI + 0x18] CMP RDX,0x7f JA 0x00139d7d MOV RDI,RBP MOV RSI,R13 MOV RDX,R14 CALL 0x00138a41 MOV qword ptr [RSP + 0x10],RAX MOV qword ptr [RSP + 0x8],RDX MOV R12,qword ptr [R15] MOV R15,qword ptr [R15 + 0x8] PUSH 0x7f POP RDX SUB RDX,R14 MOV RDI,RBP MOV RSI,R13 CALL 0x00138e41 MOV R13,RAX MOV RBP,RDX SHLD RBP,RAX,0x1 ADD R13,RAX MOV RDI,R12 MOV RSI,R15 MOV RDX,R14 CALL 0x00138a41 OR RAX,R13 OR RDX,RBP MOV qword ptr [RBX],RAX MOV qword ptr [RBX + 0x8],RDX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RBX + 0x10],RAX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RBX + 0x18],RAX JMP 0x00139d9d LAB_00139d7d: ADD R14,-0x80 MOV RDI,RBP MOV RSI,R13 MOV RDX,R14 CALL 0x00138a41 MOV qword ptr [RBX],RAX MOV qword ptr [RBX + 0x8],RDX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x10],XMM0 LAB_00139d9d: MOV RAX,RBX ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00139daf: XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x10],XMM0 MOVUPS xmmword ptr [RBX],XMM0 JMP 0x00139d9d
/* intx::TEMPNAMEPLACEHOLDERVALUE(intx::uint<256u> const&, unsigned long) */ intx * __thiscall intx::operator>>(intx *this,uint *param_1,ulong param_2) { intx *piVar1; int8 uVar2; intx *piVar3; int8 uVar4; int1 auVar5 [16]; int1 auVar6 [16]; int1 auVar7 [16]; if (param_2 < 0x100) { piVar1 = *(intx **)(param_1 + 0x10); uVar2 = *(int8 *)(param_1 + 0x18); if (param_2 < 0x80) { auVar5 = operator>>(piVar1,uVar2,param_2); piVar3 = *(intx **)param_1; uVar4 = *(int8 *)(param_1 + 8); auVar6 = operator<<(piVar1,uVar2,0x7f - param_2); auVar7 = operator>>(piVar3,uVar4,param_2); *(ulong *)this = auVar7._0_8_ | auVar6._0_8_ * 2; *(ulong *)(this + 8) = auVar7._8_8_ | auVar6._8_8_ << 1 | auVar6._0_8_ >> 0x3f; *(int1 (*) [16])(this + 0x10) = auVar5; } else { auVar5 = operator>>(piVar1,uVar2,param_2 - 0x80); *(int1 (*) [16])this = auVar5; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; } } else { *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)this = 0; *(int8 *)(this + 8) = 0; } return this; }
6,275
my_coll_parser_scan_reset_sequence
eloqsql/strings/ctype-uca.c
static int my_coll_parser_scan_reset_sequence(MY_COLL_RULE_PARSER *p) { my_coll_rule_reset(&p->rule); /* Scan "[before x]" option, if exists */ if (my_coll_parser_curr(p)->term == MY_COLL_LEXEM_OPTION) my_coll_parser_scan_reset_before(p); /* Try logical reset position */ if (my_coll_parser_curr(p)->term == MY_COLL_LEXEM_OPTION) { if (!my_coll_parser_scan_logical_position(p, p->rule.base, 1)) return 0; } else { /* Scan single reset character or expansion */ if (!my_coll_parser_scan_character_list(p, p->rule.base, MY_UCA_MAX_EXPANSION, "Expansion")) return 0; } return 1; }
O0
c
my_coll_parser_scan_reset_sequence: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rdi addq $0x50, %rdi callq 0x4f7c0 movq -0x10(%rbp), %rdi callq 0x4ecc0 cmpl $0x7, (%rax) jne 0x4f520 movq -0x10(%rbp), %rdi callq 0x4f7f0 movq -0x10(%rbp), %rdi callq 0x4ecc0 cmpl $0x7, (%rax) jne 0x4f554 movq -0x10(%rbp), %rdi movq -0x10(%rbp), %rsi addq $0x50, %rsi movl $0x1, %edx callq 0x4f960 cmpl $0x0, %eax jne 0x4f552 movl $0x0, -0x4(%rbp) jmp 0x4f588 jmp 0x4f581 movq -0x10(%rbp), %rdi movq -0x10(%rbp), %rsi addq $0x50, %rsi movl $0xa, %edx leaq 0x2c568(%rip), %rcx # 0x7bad4 callq 0x4fc80 cmpl $0x0, %eax jne 0x4f57f movl $0x0, -0x4(%rbp) jmp 0x4f588 jmp 0x4f581 movl $0x1, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_coll_parser_scan_reset_sequence: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_10], rdi mov rdi, [rbp+var_10] add rdi, 50h ; 'P' call my_coll_rule_reset mov rdi, [rbp+var_10] call my_coll_parser_curr cmp dword ptr [rax], 7 jnz short loc_4F520 mov rdi, [rbp+var_10] call my_coll_parser_scan_reset_before loc_4F520: mov rdi, [rbp+var_10] call my_coll_parser_curr cmp dword ptr [rax], 7 jnz short loc_4F554 mov rdi, [rbp+var_10] mov rsi, [rbp+var_10] add rsi, 50h ; 'P' mov edx, 1 call my_coll_parser_scan_logical_position cmp eax, 0 jnz short loc_4F552 mov [rbp+var_4], 0 jmp short loc_4F588 loc_4F552: jmp short loc_4F581 loc_4F554: mov rdi, [rbp+var_10] mov rsi, [rbp+var_10] add rsi, 50h ; 'P' mov edx, 0Ah lea rcx, aExpansion; "Expansion" call my_coll_parser_scan_character_list cmp eax, 0 jnz short loc_4F57F mov [rbp+var_4], 0 jmp short loc_4F588 loc_4F57F: jmp short $+2 loc_4F581: mov [rbp+var_4], 1 loc_4F588: mov eax, [rbp+var_4] add rsp, 10h pop rbp retn
_BOOL8 my_coll_parser_scan_reset_sequence(long long a1) { my_coll_rule_reset(a1 + 80); if ( *(_DWORD *)my_coll_parser_curr(a1) == 7 ) my_coll_parser_scan_reset_before(a1); if ( *(_DWORD *)my_coll_parser_curr(a1) != 7 ) return (unsigned int)my_coll_parser_scan_character_list(a1, a1 + 80, 10LL, "Expansion") != 0; return (unsigned int)my_coll_parser_scan_logical_position(a1, a1 + 80, 1LL) != 0; }
my_coll_parser_scan_reset_sequence: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x10],RDI MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x50 CALL 0x0014f7c0 MOV RDI,qword ptr [RBP + -0x10] CALL 0x0014ecc0 CMP dword ptr [RAX],0x7 JNZ 0x0014f520 MOV RDI,qword ptr [RBP + -0x10] CALL 0x0014f7f0 LAB_0014f520: MOV RDI,qword ptr [RBP + -0x10] CALL 0x0014ecc0 CMP dword ptr [RAX],0x7 JNZ 0x0014f554 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x50 MOV EDX,0x1 CALL 0x0014f960 CMP EAX,0x0 JNZ 0x0014f552 MOV dword ptr [RBP + -0x4],0x0 JMP 0x0014f588 LAB_0014f552: JMP 0x0014f581 LAB_0014f554: MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x50 MOV EDX,0xa LEA RCX,[0x17bad4] CALL 0x0014fc80 CMP EAX,0x0 JNZ 0x0014f57f MOV dword ptr [RBP + -0x4],0x0 JMP 0x0014f588 LAB_0014f57f: JMP 0x0014f581 LAB_0014f581: MOV dword ptr [RBP + -0x4],0x1 LAB_0014f588: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x10 POP RBP RET
int4 my_coll_parser_scan_reset_sequence(long param_1) { int iVar1; int *piVar2; my_coll_rule_reset(param_1 + 0x50); piVar2 = (int *)my_coll_parser_curr(param_1); if (*piVar2 == 7) { my_coll_parser_scan_reset_before(param_1); } piVar2 = (int *)my_coll_parser_curr(param_1); if (*piVar2 == 7) { iVar1 = my_coll_parser_scan_logical_position(param_1,param_1 + 0x50,1); if (iVar1 == 0) { return 0; } } else { iVar1 = my_coll_parser_scan_character_list(param_1,param_1 + 0x50,10,"Expansion"); if (iVar1 == 0) { return 0; } } return 1; }
6,276
mysql_server_init
eloqsql/libmariadb/libmariadb/mariadb_lib.c
int STDCALL mysql_server_init(int argc __attribute__((unused)), char **argv __attribute__((unused)), char **groups __attribute__((unused))) { #ifdef _WIN32 BOOL ret = InitOnceExecuteOnce(&init_once, win_init_once, NULL, NULL); return ret? 0: 1; #else return pthread_once(&init_once, mysql_once_init); #endif }
O0
c
mysql_server_init: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl %edi, -0x4(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) leaq 0x44eb6(%rip), %rdi # 0x64690 leaq 0x809f(%rip), %rsi # 0x27880 callq 0x133d0 addq $0x20, %rsp popq %rbp retq nopl (%rax)
mysql_server_init: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_4], edi mov [rbp+var_10], rsi mov [rbp+var_18], rdx lea rdi, init_once lea rsi, mysql_once_init call _pthread_once add rsp, 20h pop rbp retn
long long mysql_server_init() { return pthread_once(&init_once, mysql_once_init); }
mysql_server_init: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV dword ptr [RBP + -0x4],EDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX LEA RDI,[0x164690] LEA RSI,[0x127880] CALL 0x001133d0 ADD RSP,0x20 POP RBP RET
void mysql_server_init(void) { pthread_once(&init_once,mysql_once_init); return; }
6,277
void OpenSubdiv::v3_6_0::Bfr::points::Combine1<float>::apply<1>(OpenSubdiv::v3_6_0::Bfr::points::CommonCombinationParameters<float> const&)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/../bfr/pointOperations.h
static void apply(Parameters const & args) { typedef struct PointBuilder<REAL,SIZE> Point; int pSize = args.pointSize; int pStride = args.pointStride; REAL const * w = args.weightArray[0]; REAL * p = args.resultArray[0]; if (args.srcIndices == 0) { REAL const * pSrc = args.pointData; Point::Set(p, w[0], pSrc, pSize); for (int i = 1; i < args.srcCount; ++i) { pSrc += pStride; Point::Add(p, w[i], pSrc, pSize); } } else { REAL const * pSrc = args.pointData + pStride * args.srcIndices[0]; Point::Set(p, w[0], pSrc, pSize); for (int i = 1; i < args.srcCount; ++i) { pSrc = args.pointData + pStride * args.srcIndices[i]; Point::Add(p, w[i], pSrc, pSize); } } }
O0
c
void OpenSubdiv::v3_6_0::Bfr::points::Combine1<float>::apply<1>(OpenSubdiv::v3_6_0::Bfr::points::CommonCombinationParameters<float> const&): pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movl 0x8(%rax), %eax movl %eax, -0xc(%rbp) movq -0x8(%rbp), %rax movl 0xc(%rax), %eax movl %eax, -0x10(%rbp) movq -0x8(%rbp), %rax movq 0x28(%rax), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) movq -0x8(%rbp), %rax movq 0x20(%rax), %rax movq (%rax), %rax movq %rax, -0x20(%rbp) movq -0x8(%rbp), %rax cmpq $0x0, 0x10(%rax) jne 0x1b25d1 movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x28(%rbp) movq -0x20(%rbp), %rdi movq -0x18(%rbp), %rax movsd (%rax), %xmm0 movq -0x28(%rbp), %rsi movl -0xc(%rbp), %edx callq 0xc8630 movl $0x1, -0x2c(%rbp) movl -0x2c(%rbp), %eax movq -0x8(%rbp), %rcx cmpl 0x18(%rcx), %eax jge 0x1b25cc movl -0x10(%rbp), %ecx movq -0x28(%rbp), %rax movslq %ecx, %rcx shlq $0x3, %rcx addq %rcx, %rax movq %rax, -0x28(%rbp) movq -0x20(%rbp), %rdi movq -0x18(%rbp), %rax movslq -0x2c(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 movq -0x28(%rbp), %rsi movl -0xc(%rbp), %edx callq 0xcd1b0 movl -0x2c(%rbp), %eax addl $0x1, %eax movl %eax, -0x2c(%rbp) jmp 0x1b2583 jmp 0x1b2671 movq -0x8(%rbp), %rax movq (%rax), %rax movl -0x10(%rbp), %ecx movq -0x8(%rbp), %rdx movq 0x10(%rdx), %rdx imull (%rdx), %ecx movslq %ecx, %rcx shlq $0x3, %rcx addq %rcx, %rax movq %rax, -0x38(%rbp) movq -0x20(%rbp), %rdi movq -0x18(%rbp), %rax movsd (%rax), %xmm0 movq -0x38(%rbp), %rsi movl -0xc(%rbp), %edx callq 0xc8630 movl $0x1, -0x3c(%rbp) movl -0x3c(%rbp), %eax movq -0x8(%rbp), %rcx cmpl 0x18(%rcx), %eax jge 0x1b266f movq -0x8(%rbp), %rax movq (%rax), %rax movl -0x10(%rbp), %ecx movq -0x8(%rbp), %rdx movq 0x10(%rdx), %rdx movslq -0x3c(%rbp), %rsi imull (%rdx,%rsi,4), %ecx movslq %ecx, %rcx shlq $0x3, %rcx addq %rcx, %rax movq %rax, -0x38(%rbp) movq -0x20(%rbp), %rdi movq -0x18(%rbp), %rax movslq -0x3c(%rbp), %rcx movsd (%rax,%rcx,8), %xmm0 movq -0x38(%rbp), %rsi movl -0xc(%rbp), %edx callq 0xcd1b0 movl -0x3c(%rbp), %eax addl $0x1, %eax movl %eax, -0x3c(%rbp) jmp 0x1b2613 jmp 0x1b2671 addq $0x40, %rsp popq %rbp retq nopw (%rax,%rax)
_ZN10OpenSubdiv6v3_6_03Bfr6points8Combine1IdE5applyILi4EEEvRKNS2_27CommonCombinationParametersIdEE: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov eax, [rax+8] mov [rbp+var_C], eax mov rax, [rbp+var_8] mov eax, [rax+0Ch] mov [rbp+var_10], eax mov rax, [rbp+var_8] mov rax, [rax+28h] mov rax, [rax] mov [rbp+var_18], rax mov rax, [rbp+var_8] mov rax, [rax+20h] mov rax, [rax] mov [rbp+var_20], rax mov rax, [rbp+var_8] cmp qword ptr [rax+10h], 0 jnz short loc_1B25D1 mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_28], rax mov rdi, [rbp+var_20] mov rax, [rbp+var_18] movsd xmm0, qword ptr [rax] mov rsi, [rbp+var_28] mov edx, [rbp+var_C] call __ZN10OpenSubdiv6v3_6_03Bfr6points12PointBuilderIdLi4EE3SetEPddPKdi; OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,4>::Set(double *,double,double const*,int) mov [rbp+var_2C], 1 loc_1B2583: mov eax, [rbp+var_2C] mov rcx, [rbp+var_8] cmp eax, [rcx+18h] jge short loc_1B25CC mov ecx, [rbp+var_10] mov rax, [rbp+var_28] movsxd rcx, ecx shl rcx, 3 add rax, rcx mov [rbp+var_28], rax mov rdi, [rbp+var_20] mov rax, [rbp+var_18] movsxd rcx, [rbp+var_2C] movsd xmm0, qword ptr [rax+rcx*8] mov rsi, [rbp+var_28] mov edx, [rbp+var_C] call __ZN10OpenSubdiv6v3_6_03Bfr6points12PointBuilderIdLi4EE3AddEPddPKdi; OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,4>::Add(double *,double,double const*,int) mov eax, [rbp+var_2C] add eax, 1 mov [rbp+var_2C], eax jmp short loc_1B2583 loc_1B25CC: jmp loc_1B2671 loc_1B25D1: mov rax, [rbp+var_8] mov rax, [rax] mov ecx, [rbp+var_10] mov rdx, [rbp+var_8] mov rdx, [rdx+10h] imul ecx, [rdx] movsxd rcx, ecx shl rcx, 3 add rax, rcx mov [rbp+var_38], rax mov rdi, [rbp+var_20] mov rax, [rbp+var_18] movsd xmm0, qword ptr [rax] mov rsi, [rbp+var_38] mov edx, [rbp+var_C] call __ZN10OpenSubdiv6v3_6_03Bfr6points12PointBuilderIdLi4EE3SetEPddPKdi; OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,4>::Set(double *,double,double const*,int) mov [rbp+var_3C], 1 loc_1B2613: mov eax, [rbp+var_3C] mov rcx, [rbp+var_8] cmp eax, [rcx+18h] jge short loc_1B266F mov rax, [rbp+var_8] mov rax, [rax] mov ecx, [rbp+var_10] mov rdx, [rbp+var_8] mov rdx, [rdx+10h] movsxd rsi, [rbp+var_3C] imul ecx, [rdx+rsi*4] movsxd rcx, ecx shl rcx, 3 add rax, rcx mov [rbp+var_38], rax mov rdi, [rbp+var_20] mov rax, [rbp+var_18] movsxd rcx, [rbp+var_3C] movsd xmm0, qword ptr [rax+rcx*8] mov rsi, [rbp+var_38] mov edx, [rbp+var_C] call __ZN10OpenSubdiv6v3_6_03Bfr6points12PointBuilderIdLi4EE3AddEPddPKdi; OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,4>::Add(double *,double,double const*,int) mov eax, [rbp+var_3C] add eax, 1 mov [rbp+var_3C], eax jmp short loc_1B2613 loc_1B266F: jmp short $+2 loc_1B2671: add rsp, 40h pop rbp retn
long long OpenSubdiv::v3_6_0::Bfr::points::Combine1<double>::apply<4>(long long *a1) { long long result; // rax int i; // [rsp+4h] [rbp-3Ch] int j; // [rsp+14h] [rbp-2Ch] long long v4; // [rsp+18h] [rbp-28h] long long v5; // [rsp+20h] [rbp-20h] double *v6; // [rsp+28h] [rbp-18h] int v7; // [rsp+30h] [rbp-10h] unsigned int v8; // [rsp+34h] [rbp-Ch] v8 = *((_DWORD *)a1 + 2); v7 = *((_DWORD *)a1 + 3); v6 = *(double **)a1[5]; v5 = *(_QWORD *)a1[4]; if ( a1[2] ) { OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,4>::Set(v5, 8LL * *(_DWORD *)a1[2] * v7 + *a1, v8, *v6); for ( i = 1; ; ++i ) { result = (unsigned int)i; if ( i >= *((_DWORD *)a1 + 6) ) break; OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,4>::Add( v5, 8LL * *(_DWORD *)(a1[2] + 4LL * i) * v7 + *a1, v8, v6[i]); } } else { v4 = *a1; OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,4>::Set(v5, *a1, v8, *v6); for ( j = 1; ; ++j ) { result = (unsigned int)j; if ( j >= *((_DWORD *)a1 + 6) ) break; v4 += 8LL * v7; OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,4>::Add(v5, v4, v8, v6[j]); } } return result; }
6,278
void OpenSubdiv::v3_6_0::Bfr::points::Combine1<float>::apply<1>(OpenSubdiv::v3_6_0::Bfr::points::CommonCombinationParameters<float> const&)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/../bfr/pointOperations.h
static void apply(Parameters const & args) { typedef struct PointBuilder<REAL,SIZE> Point; int pSize = args.pointSize; int pStride = args.pointStride; REAL const * w = args.weightArray[0]; REAL * p = args.resultArray[0]; if (args.srcIndices == 0) { REAL const * pSrc = args.pointData; Point::Set(p, w[0], pSrc, pSize); for (int i = 1; i < args.srcCount; ++i) { pSrc += pStride; Point::Add(p, w[i], pSrc, pSize); } } else { REAL const * pSrc = args.pointData + pStride * args.srcIndices[0]; Point::Set(p, w[0], pSrc, pSize); for (int i = 1; i < args.srcCount; ++i) { pSrc = args.pointData + pStride * args.srcIndices[i]; Point::Add(p, w[i], pSrc, pSize); } } }
O1
c
void OpenSubdiv::v3_6_0::Bfr::points::Combine1<float>::apply<1>(OpenSubdiv::v3_6_0::Bfr::points::CommonCombinationParameters<float> const&): pushq %rbx movl 0x8(%rdi), %eax movslq 0xc(%rdi), %rcx movq 0x28(%rdi), %rdx movq (%rdx), %rdx movq 0x20(%rdi), %rsi movq (%rsi), %rsi movq 0x10(%rdi), %r9 movq (%rdi), %r8 testq %r9, %r9 je 0x9a9ce testl %eax, %eax jle 0x9a979 movl (%r9), %r10d imull %ecx, %r10d movslq %r10d, %r10 leaq (%r8,%r10,8), %r10 movsd (%rdx), %xmm0 xorl %r11d, %r11d movsd (%r10,%r11,8), %xmm1 mulsd %xmm0, %xmm1 movsd %xmm1, (%rsi,%r11,8) incq %r11 cmpq %r11, %rax jne 0x9a961 movslq 0x18(%rdi), %rdi cmpq $0x2, %rdi jl 0x9aa3f movl $0x1, %r10d testl %eax, %eax jle 0x9a9c4 movl (%r9,%r10,4), %r11d imull %ecx, %r11d movslq %r11d, %r11 leaq (%r8,%r11,8), %r11 movsd (%rdx,%r10,8), %xmm0 xorl %ebx, %ebx movsd (%r11,%rbx,8), %xmm1 mulsd %xmm0, %xmm1 addsd (%rsi,%rbx,8), %xmm1 movsd %xmm1, (%rsi,%rbx,8) incq %rbx cmpq %rbx, %rax jne 0x9a9a8 incq %r10 cmpq %rdi, %r10 jne 0x9a98d jmp 0x9aa3f testl %eax, %eax jle 0x9a9f1 movsd (%rdx), %xmm0 xorl %r9d, %r9d movsd (%r8,%r9,8), %xmm1 mulsd %xmm0, %xmm1 movsd %xmm1, (%rsi,%r9,8) incq %r9 cmpq %r9, %rax jne 0x9a9d9 movslq 0x18(%rdi), %rdi cmpq $0x2, %rdi jl 0x9aa3f leaq (%r8,%rcx,8), %r8 shlq $0x3, %rcx movl $0x1, %r9d testl %eax, %eax jle 0x9aa34 movsd (%rdx,%r9,8), %xmm0 xorl %r10d, %r10d movsd (%r8,%r10,8), %xmm1 mulsd %xmm0, %xmm1 addsd (%rsi,%r10,8), %xmm1 movsd %xmm1, (%rsi,%r10,8) incq %r10 cmpq %r10, %rax jne 0x9aa16 incq %r9 addq %rcx, %r8 cmpq %rdi, %r9 jne 0x9aa09 popq %rbx retq nop
_ZN10OpenSubdiv6v3_6_03Bfr6points8Combine1IdE5applyILi0EEEvRKNS2_27CommonCombinationParametersIdEE: push rbx mov eax, [rdi+8] movsxd rcx, dword ptr [rdi+0Ch] mov rdx, [rdi+28h] mov rdx, [rdx] mov rsi, [rdi+20h] mov rsi, [rsi] mov r9, [rdi+10h] mov r8, [rdi] test r9, r9 jz loc_9A9CE test eax, eax jle short loc_9A979 mov r10d, [r9] imul r10d, ecx movsxd r10, r10d lea r10, [r8+r10*8] movsd xmm0, qword ptr [rdx] xor r11d, r11d loc_9A961: movsd xmm1, qword ptr [r10+r11*8] mulsd xmm1, xmm0 movsd qword ptr [rsi+r11*8], xmm1 inc r11 cmp rax, r11 jnz short loc_9A961 loc_9A979: movsxd rdi, dword ptr [rdi+18h] cmp rdi, 2 jl loc_9AA3F mov r10d, 1 loc_9A98D: test eax, eax jle short loc_9A9C4 mov r11d, [r9+r10*4] imul r11d, ecx movsxd r11, r11d lea r11, [r8+r11*8] movsd xmm0, qword ptr [rdx+r10*8] xor ebx, ebx loc_9A9A8: movsd xmm1, qword ptr [r11+rbx*8] mulsd xmm1, xmm0 addsd xmm1, qword ptr [rsi+rbx*8] movsd qword ptr [rsi+rbx*8], xmm1 inc rbx cmp rax, rbx jnz short loc_9A9A8 loc_9A9C4: inc r10 cmp r10, rdi jnz short loc_9A98D jmp short loc_9AA3F loc_9A9CE: test eax, eax jle short loc_9A9F1 movsd xmm0, qword ptr [rdx] xor r9d, r9d loc_9A9D9: movsd xmm1, qword ptr [r8+r9*8] mulsd xmm1, xmm0 movsd qword ptr [rsi+r9*8], xmm1 inc r9 cmp rax, r9 jnz short loc_9A9D9 loc_9A9F1: movsxd rdi, dword ptr [rdi+18h] cmp rdi, 2 jl short loc_9AA3F lea r8, [r8+rcx*8] shl rcx, 3 mov r9d, 1 loc_9AA09: test eax, eax jle short loc_9AA34 movsd xmm0, qword ptr [rdx+r9*8] xor r10d, r10d loc_9AA16: movsd xmm1, qword ptr [r8+r10*8] mulsd xmm1, xmm0 addsd xmm1, qword ptr [rsi+r10*8] movsd qword ptr [rsi+r10*8], xmm1 inc r10 cmp rax, r10 jnz short loc_9AA16 loc_9AA34: inc r9 add r8, rcx cmp r9, rdi jnz short loc_9AA09 loc_9AA3F: pop rbx retn
long long OpenSubdiv::v3_6_0::Bfr::points::Combine1<double>::apply<0>(long long *a1) { long long result; // rax long long v2; // rcx double *v3; // rdx long long v4; // rsi _DWORD *v5; // r9 long long v6; // r8 long long v7; // r10 double v8; // xmm0_8 long long i; // r11 long long v10; // rdi long long j; // r10 long long v12; // r11 double v13; // xmm0_8 long long k; // rbx double v15; // xmm0_8 long long m; // r9 long long v17; // rdi long long v18; // r8 long long v19; // rcx long long n; // r9 double v21; // xmm0_8 long long ii; // r10 result = *((unsigned int *)a1 + 2); v2 = *((int *)a1 + 3); v3 = *(double **)a1[5]; v4 = *(_QWORD *)a1[4]; v5 = (_DWORD *)a1[2]; v6 = *a1; if ( v5 ) { if ( (int)result > 0 ) { v7 = v6 + 8LL * (int)v2 * *v5; v8 = *v3; for ( i = 0LL; i != result; ++i ) *(double *)(v4 + 8 * i) = *(double *)(v7 + 8 * i) * v8; } v10 = *((int *)a1 + 6); if ( v10 >= 2 ) { for ( j = 1LL; j != v10; ++j ) { if ( (int)result > 0 ) { v12 = v6 + 8LL * (int)v2 * v5[j]; v13 = v3[j]; for ( k = 0LL; k != result; ++k ) *(double *)(v4 + 8 * k) = *(double *)(v12 + 8 * k) * v13 + *(double *)(v4 + 8 * k); } } } } else { if ( (int)result > 0 ) { v15 = *v3; for ( m = 0LL; m != result; ++m ) *(double *)(v4 + 8 * m) = *(double *)(v6 + 8 * m) * v15; } v17 = *((int *)a1 + 6); if ( v17 >= 2 ) { v18 = v6 + 8 * v2; v19 = 8 * v2; for ( n = 1LL; n != v17; ++n ) { if ( (int)result > 0 ) { v21 = v3[n]; for ( ii = 0LL; ii != result; ++ii ) *(double *)(v4 + 8 * ii) = *(double *)(v18 + 8 * ii) * v21 + *(double *)(v4 + 8 * ii); } v18 += v19; } } } return result; }
apply<0>: PUSH RBX MOV EAX,dword ptr [RDI + 0x8] MOVSXD RCX,dword ptr [RDI + 0xc] MOV RDX,qword ptr [RDI + 0x28] MOV RDX,qword ptr [RDX] MOV RSI,qword ptr [RDI + 0x20] MOV RSI,qword ptr [RSI] MOV R9,qword ptr [RDI + 0x10] MOV R8,qword ptr [RDI] TEST R9,R9 JZ 0x0019a9ce TEST EAX,EAX JLE 0x0019a979 MOV R10D,dword ptr [R9] IMUL R10D,ECX MOVSXD R10,R10D LEA R10,[R8 + R10*0x8] MOVSD XMM0,qword ptr [RDX] XOR R11D,R11D LAB_0019a961: MOVSD XMM1,qword ptr [R10 + R11*0x8] MULSD XMM1,XMM0 MOVSD qword ptr [RSI + R11*0x8],XMM1 INC R11 CMP RAX,R11 JNZ 0x0019a961 LAB_0019a979: MOVSXD RDI,dword ptr [RDI + 0x18] CMP RDI,0x2 JL 0x0019aa3f MOV R10D,0x1 LAB_0019a98d: TEST EAX,EAX JLE 0x0019a9c4 MOV R11D,dword ptr [R9 + R10*0x4] IMUL R11D,ECX MOVSXD R11,R11D LEA R11,[R8 + R11*0x8] MOVSD XMM0,qword ptr [RDX + R10*0x8] XOR EBX,EBX LAB_0019a9a8: MOVSD XMM1,qword ptr [R11 + RBX*0x8] MULSD XMM1,XMM0 ADDSD XMM1,qword ptr [RSI + RBX*0x8] MOVSD qword ptr [RSI + RBX*0x8],XMM1 INC RBX CMP RAX,RBX JNZ 0x0019a9a8 LAB_0019a9c4: INC R10 CMP R10,RDI JNZ 0x0019a98d JMP 0x0019aa3f LAB_0019a9ce: TEST EAX,EAX JLE 0x0019a9f1 MOVSD XMM0,qword ptr [RDX] XOR R9D,R9D LAB_0019a9d9: MOVSD XMM1,qword ptr [R8 + R9*0x8] MULSD XMM1,XMM0 MOVSD qword ptr [RSI + R9*0x8],XMM1 INC R9 CMP RAX,R9 JNZ 0x0019a9d9 LAB_0019a9f1: MOVSXD RDI,dword ptr [RDI + 0x18] CMP RDI,0x2 JL 0x0019aa3f LEA R8,[R8 + RCX*0x8] SHL RCX,0x3 MOV R9D,0x1 LAB_0019aa09: TEST EAX,EAX JLE 0x0019aa34 MOVSD XMM0,qword ptr [RDX + R9*0x8] XOR R10D,R10D LAB_0019aa16: MOVSD XMM1,qword ptr [R8 + R10*0x8] MULSD XMM1,XMM0 ADDSD XMM1,qword ptr [RSI + R10*0x8] MOVSD qword ptr [RSI + R10*0x8],XMM1 INC R10 CMP RAX,R10 JNZ 0x0019aa16 LAB_0019aa34: INC R9 ADD R8,RCX CMP R9,RDI JNZ 0x0019aa09 LAB_0019aa3f: POP RBX RET
/* void OpenSubdiv::v3_6_0::Bfr::points::Combine1<double>::apply<0>(OpenSubdiv::v3_6_0::Bfr::points::CommonCombinationParameters<double> const&) */ void OpenSubdiv::v3_6_0::Bfr::points::Combine1<double>::apply<0> (CommonCombinationParameters *param_1) { double dVar1; uint uVar2; int iVar3; int iVar4; int iVar5; double *pdVar6; long lVar7; int *piVar8; ulong uVar9; long lVar10; long lVar11; ulong uVar12; uVar2 = *(uint *)(param_1 + 8); uVar9 = (ulong)uVar2; iVar3 = *(int *)(param_1 + 0xc); pdVar6 = (double *)**(int8 **)(param_1 + 0x28); lVar7 = **(long **)(param_1 + 0x20); piVar8 = *(int **)(param_1 + 0x10); lVar10 = *(long *)param_1; if (piVar8 == (int *)0x0) { if (0 < (int)uVar2) { dVar1 = *pdVar6; uVar12 = 0; do { *(double *)(lVar7 + uVar12 * 8) = *(double *)(lVar10 + uVar12 * 8) * dVar1; uVar12 = uVar12 + 1; } while (uVar9 != uVar12); } iVar4 = *(int *)(param_1 + 0x18); if (1 < (long)iVar4) { lVar10 = lVar10 + (long)iVar3 * 8; lVar11 = 1; do { if (0 < (int)uVar2) { dVar1 = pdVar6[lVar11]; uVar12 = 0; do { *(double *)(lVar7 + uVar12 * 8) = *(double *)(lVar10 + uVar12 * 8) * dVar1 + *(double *)(lVar7 + uVar12 * 8); uVar12 = uVar12 + 1; } while (uVar9 != uVar12); } lVar11 = lVar11 + 1; lVar10 = lVar10 + (long)iVar3 * 8; } while (lVar11 != iVar4); } } else { if (0 < (int)uVar2) { iVar4 = *piVar8; dVar1 = *pdVar6; uVar12 = 0; do { *(double *)(lVar7 + uVar12 * 8) = *(double *)(lVar10 + (long)(iVar4 * iVar3) * 8 + uVar12 * 8) * dVar1; uVar12 = uVar12 + 1; } while (uVar9 != uVar12); } iVar4 = *(int *)(param_1 + 0x18); if (1 < (long)iVar4) { lVar11 = 1; do { if (0 < (int)uVar2) { iVar5 = piVar8[lVar11]; dVar1 = pdVar6[lVar11]; uVar12 = 0; do { *(double *)(lVar7 + uVar12 * 8) = *(double *)(lVar10 + (long)(iVar5 * iVar3) * 8 + uVar12 * 8) * dVar1 + *(double *)(lVar7 + uVar12 * 8); uVar12 = uVar12 + 1; } while (uVar9 != uVar12); } lVar11 = lVar11 + 1; } while (lVar11 != iVar4); } } return; }
6,279
void OpenSubdiv::v3_6_0::Bfr::points::Combine1<float>::apply<1>(OpenSubdiv::v3_6_0::Bfr::points::CommonCombinationParameters<float> const&)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/../bfr/pointOperations.h
static void apply(Parameters const & args) { typedef struct PointBuilder<REAL,SIZE> Point; int pSize = args.pointSize; int pStride = args.pointStride; REAL const * w = args.weightArray[0]; REAL * p = args.resultArray[0]; if (args.srcIndices == 0) { REAL const * pSrc = args.pointData; Point::Set(p, w[0], pSrc, pSize); for (int i = 1; i < args.srcCount; ++i) { pSrc += pStride; Point::Add(p, w[i], pSrc, pSize); } } else { REAL const * pSrc = args.pointData + pStride * args.srcIndices[0]; Point::Set(p, w[0], pSrc, pSize); for (int i = 1; i < args.srcCount; ++i) { pSrc = args.pointData + pStride * args.srcIndices[i]; Point::Add(p, w[i], pSrc, pSize); } } }
O2
c
void OpenSubdiv::v3_6_0::Bfr::points::Combine1<float>::apply<1>(OpenSubdiv::v3_6_0::Bfr::points::CommonCombinationParameters<float> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdi, %rbx movl 0x8(%rdi), %edx movslq 0xc(%rdi), %r12 movq 0x28(%rdi), %rax movq (%rax), %r13 movq 0x20(%rdi), %rax movq (%rax), %r14 movq 0x10(%rdi), %rax movq (%rdi), %r15 testq %rax, %rax je 0xa6d7c movslq (%rax), %rax imulq %r12, %rax leaq (%r15,%rax,8), %rsi movsd (%r13), %xmm0 movq %r14, %rdi movl %edx, %ebp callq 0x55ec0 pushq $0x1 popq %r15 movslq 0x18(%rbx), %rax cmpq %rax, %r15 jge 0xa6dc3 movq 0x10(%rbx), %rax movslq (%rax,%r15,4), %rsi imulq %r12, %rsi shlq $0x3, %rsi addq (%rbx), %rsi movsd (%r13,%r15,8), %xmm0 movq %r14, %rdi movl %ebp, %edx callq 0x54de0 incq %r15 jmp 0xa6d4a movsd (%r13), %xmm0 movq %r14, %rdi movq %r15, %rsi movl %edx, 0x4(%rsp) callq 0x55ec0 leaq (%r15,%r12,8), %r15 shlq $0x3, %r12 pushq $0x1 popq %rbp movslq 0x18(%rbx), %rax cmpq %rax, %rbp jge 0xa6dc3 movsd (%r13,%rbp,8), %xmm0 movq %r14, %rdi movq %r15, %rsi movl 0x4(%rsp), %edx callq 0x54de0 incq %rbp addq %r12, %r15 jmp 0xa6d9c addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_ZN10OpenSubdiv6v3_6_03Bfr6points8Combine1IdE5applyILi0EEEvRKNS2_27CommonCombinationParametersIdEE: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rdi mov edx, [rdi+8] movsxd r12, dword ptr [rdi+0Ch] mov rax, [rdi+28h] mov r13, [rax] mov rax, [rdi+20h] mov r14, [rax] mov rax, [rdi+10h] mov r15, [rdi] test rax, rax jz short loc_A6D7C movsxd rax, dword ptr [rax] imul rax, r12 lea rsi, [r15+rax*8] movsd xmm0, qword ptr [r13+0] mov rdi, r14 mov ebp, edx call __ZN10OpenSubdiv6v3_6_03Bfr6points12PointBuilderIdLi0EE3SetEPddPKdi; OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,0>::Set(double *,double,double const*,int) push 1 pop r15 loc_A6D4A: movsxd rax, dword ptr [rbx+18h] cmp r15, rax jge short loc_A6DC3 mov rax, [rbx+10h] movsxd rsi, dword ptr [rax+r15*4] imul rsi, r12 shl rsi, 3 add rsi, [rbx] movsd xmm0, qword ptr [r13+r15*8+0] mov rdi, r14 mov edx, ebp call __ZN10OpenSubdiv6v3_6_03Bfr6points12PointBuilderIdLi0EE3AddEPddPKdi; OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,0>::Add(double *,double,double const*,int) inc r15 jmp short loc_A6D4A loc_A6D7C: movsd xmm0, qword ptr [r13+0] mov rdi, r14 mov rsi, r15 mov [rsp+38h+var_34], edx call __ZN10OpenSubdiv6v3_6_03Bfr6points12PointBuilderIdLi0EE3SetEPddPKdi; OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,0>::Set(double *,double,double const*,int) lea r15, [r15+r12*8] shl r12, 3 push 1 pop rbp loc_A6D9C: movsxd rax, dword ptr [rbx+18h] cmp rbp, rax jge short loc_A6DC3 movsd xmm0, qword ptr [r13+rbp*8+0] mov rdi, r14 mov rsi, r15 mov edx, [rsp+38h+var_34] call __ZN10OpenSubdiv6v3_6_03Bfr6points12PointBuilderIdLi0EE3AddEPddPKdi; OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,0>::Add(double *,double,double const*,int) inc rbp add r15, r12 jmp short loc_A6D9C loc_A6DC3: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long OpenSubdiv::v3_6_0::Bfr::points::Combine1<double>::apply<0>(long long *a1) { long long v1; // r12 double *v2; // r13 long long v3; // r14 int *v4; // rax long long v5; // r15 unsigned int v6; // ebp long long i; // r15 long long result; // rax long long v9; // r15 long long v10; // r12 long long j; // rbp unsigned int v12; // [rsp+0h] [rbp-34h] v1 = *((int *)a1 + 3); v2 = *(double **)a1[5]; v3 = *(_QWORD *)a1[4]; v4 = (int *)a1[2]; v5 = *a1; if ( v4 ) { v6 = *((_DWORD *)a1 + 2); OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,0>::Set(*(_QWORD *)a1[4], v5 + 8 * v1 * *v4, *v2); for ( i = 1LL; ; ++i ) { result = *((int *)a1 + 6); if ( i >= result ) break; OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,0>::Add( v3, *a1 + 8 * v1 * *(int *)(a1[2] + 4 * i), v6, v2[i]); } } else { v12 = *((_DWORD *)a1 + 2); OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,0>::Set(*(_QWORD *)a1[4], v5, *v2); v9 = v5 + 8 * v1; v10 = 8 * v1; for ( j = 1LL; ; ++j ) { result = *((int *)a1 + 6); if ( j >= result ) break; OpenSubdiv::v3_6_0::Bfr::points::PointBuilder<double,0>::Add(v3, v9, v12, v2[j]); v9 += v10; } } return result; }
apply<0>: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RDI MOV EDX,dword ptr [RDI + 0x8] MOVSXD R12,dword ptr [RDI + 0xc] MOV RAX,qword ptr [RDI + 0x28] MOV R13,qword ptr [RAX] MOV RAX,qword ptr [RDI + 0x20] MOV R14,qword ptr [RAX] MOV RAX,qword ptr [RDI + 0x10] MOV R15,qword ptr [RDI] TEST RAX,RAX JZ 0x001a6d7c MOVSXD RAX,dword ptr [RAX] IMUL RAX,R12 LEA RSI,[R15 + RAX*0x8] MOVSD XMM0,qword ptr [R13] MOV RDI,R14 MOV EBP,EDX CALL 0x00155ec0 PUSH 0x1 POP R15 LAB_001a6d4a: MOVSXD RAX,dword ptr [RBX + 0x18] CMP R15,RAX JGE 0x001a6dc3 MOV RAX,qword ptr [RBX + 0x10] MOVSXD RSI,dword ptr [RAX + R15*0x4] IMUL RSI,R12 SHL RSI,0x3 ADD RSI,qword ptr [RBX] MOVSD XMM0,qword ptr [R13 + R15*0x8] MOV RDI,R14 MOV EDX,EBP CALL 0x00154de0 INC R15 JMP 0x001a6d4a LAB_001a6d7c: MOVSD XMM0,qword ptr [R13] MOV RDI,R14 MOV RSI,R15 MOV dword ptr [RSP + 0x4],EDX CALL 0x00155ec0 LEA R15,[R15 + R12*0x8] SHL R12,0x3 PUSH 0x1 POP RBP LAB_001a6d9c: MOVSXD RAX,dword ptr [RBX + 0x18] CMP RBP,RAX JGE 0x001a6dc3 MOVSD XMM0,qword ptr [R13 + RBP*0x8] MOV RDI,R14 MOV RSI,R15 MOV EDX,dword ptr [RSP + 0x4] CALL 0x00154de0 INC RBP ADD R15,R12 JMP 0x001a6d9c LAB_001a6dc3: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* void OpenSubdiv::v3_6_0::Bfr::points::Combine1<double>::apply<0>(OpenSubdiv::v3_6_0::Bfr::points::CommonCombinationParameters<double> const&) */ void OpenSubdiv::v3_6_0::Bfr::points::Combine1<double>::apply<0> (CommonCombinationParameters *param_1) { int iVar1; double *pdVar2; double *pdVar3; long lVar4; long lVar5; double *pdVar6; iVar1 = *(int *)(param_1 + 8); lVar4 = (long)*(int *)(param_1 + 0xc); pdVar2 = (double *)**(int8 **)(param_1 + 0x28); pdVar3 = (double *)**(int8 **)(param_1 + 0x20); pdVar6 = *(double **)param_1; if (*(int **)(param_1 + 0x10) == (int *)0x0) { PointBuilder<double,0>::Set(pdVar3,*pdVar2,pdVar6,iVar1); for (lVar5 = 1; pdVar6 = pdVar6 + lVar4, lVar5 < *(int *)(param_1 + 0x18); lVar5 = lVar5 + 1) { PointBuilder<double,0>::Add(pdVar3,pdVar2[lVar5],pdVar6,iVar1); } } else { PointBuilder<double,0>::Set(pdVar3,*pdVar2,pdVar6 + **(int **)(param_1 + 0x10) * lVar4,iVar1); for (lVar5 = 1; lVar5 < *(int *)(param_1 + 0x18); lVar5 = lVar5 + 1) { PointBuilder<double,0>::Add (pdVar3,pdVar2[lVar5], (double *) (*(int *)(*(long *)(param_1 + 0x10) + lVar5 * 4) * lVar4 * 8 + *(long *)param_1), iVar1); } } return; }
6,280
void OpenSubdiv::v3_6_0::Bfr::points::Combine1<float>::apply<1>(OpenSubdiv::v3_6_0::Bfr::points::CommonCombinationParameters<float> const&)
NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/../bfr/pointOperations.h
static void apply(Parameters const & args) { typedef struct PointBuilder<REAL,SIZE> Point; int pSize = args.pointSize; int pStride = args.pointStride; REAL const * w = args.weightArray[0]; REAL * p = args.resultArray[0]; if (args.srcIndices == 0) { REAL const * pSrc = args.pointData; Point::Set(p, w[0], pSrc, pSize); for (int i = 1; i < args.srcCount; ++i) { pSrc += pStride; Point::Add(p, w[i], pSrc, pSize); } } else { REAL const * pSrc = args.pointData + pStride * args.srcIndices[0]; Point::Set(p, w[0], pSrc, pSize); for (int i = 1; i < args.srcCount; ++i) { pSrc = args.pointData + pStride * args.srcIndices[i]; Point::Add(p, w[i], pSrc, pSize); } } }
O3
c
void OpenSubdiv::v3_6_0::Bfr::points::Combine1<float>::apply<1>(OpenSubdiv::v3_6_0::Bfr::points::CommonCombinationParameters<float> const&): pushq %rbx movl 0x8(%rdi), %eax movslq 0xc(%rdi), %rcx movq 0x28(%rdi), %rdx movq (%rdx), %rdx movq 0x20(%rdi), %rsi movq (%rsi), %rsi movq 0x10(%rdi), %r9 movq (%rdi), %r8 testq %r9, %r9 je 0x9d4fa testl %eax, %eax jle 0x9d4a5 movl (%r9), %r10d imull %ecx, %r10d movslq %r10d, %r10 leaq (%r8,%r10,8), %r10 movsd (%rdx), %xmm0 xorl %r11d, %r11d movsd (%r10,%r11,8), %xmm1 mulsd %xmm0, %xmm1 movsd %xmm1, (%rsi,%r11,8) incq %r11 cmpq %r11, %rax jne 0x9d48d movslq 0x18(%rdi), %rdi cmpq $0x2, %rdi jl 0x9d56b movl $0x1, %r10d testl %eax, %eax jle 0x9d4f0 movl (%r9,%r10,4), %r11d imull %ecx, %r11d movslq %r11d, %r11 leaq (%r8,%r11,8), %r11 movsd (%rdx,%r10,8), %xmm0 xorl %ebx, %ebx movsd (%r11,%rbx,8), %xmm1 mulsd %xmm0, %xmm1 addsd (%rsi,%rbx,8), %xmm1 movsd %xmm1, (%rsi,%rbx,8) incq %rbx cmpq %rbx, %rax jne 0x9d4d4 incq %r10 cmpq %rdi, %r10 jne 0x9d4b9 jmp 0x9d56b testl %eax, %eax jle 0x9d51d movsd (%rdx), %xmm0 xorl %r9d, %r9d movsd (%r8,%r9,8), %xmm1 mulsd %xmm0, %xmm1 movsd %xmm1, (%rsi,%r9,8) incq %r9 cmpq %r9, %rax jne 0x9d505 movslq 0x18(%rdi), %rdi cmpq $0x2, %rdi jl 0x9d56b leaq (%r8,%rcx,8), %r8 shlq $0x3, %rcx movl $0x1, %r9d testl %eax, %eax jle 0x9d560 movsd (%rdx,%r9,8), %xmm0 xorl %r10d, %r10d movsd (%r8,%r10,8), %xmm1 mulsd %xmm0, %xmm1 addsd (%rsi,%r10,8), %xmm1 movsd %xmm1, (%rsi,%r10,8) incq %r10 cmpq %r10, %rax jne 0x9d542 incq %r9 addq %rcx, %r8 cmpq %rdi, %r9 jne 0x9d535 popq %rbx retq nop
_ZN10OpenSubdiv6v3_6_03Bfr6points8Combine1IdE5applyILi0EEEvRKNS2_27CommonCombinationParametersIdEE: push rbx mov eax, [rdi+8] movsxd rcx, dword ptr [rdi+0Ch] mov rdx, [rdi+28h] mov rdx, [rdx] mov rsi, [rdi+20h] mov rsi, [rsi] mov r9, [rdi+10h] mov r8, [rdi] test r9, r9 jz loc_9D4FA test eax, eax jle short loc_9D4A5 mov r10d, [r9] imul r10d, ecx movsxd r10, r10d lea r10, [r8+r10*8] movsd xmm0, qword ptr [rdx] xor r11d, r11d loc_9D48D: movsd xmm1, qword ptr [r10+r11*8] mulsd xmm1, xmm0 movsd qword ptr [rsi+r11*8], xmm1 inc r11 cmp rax, r11 jnz short loc_9D48D loc_9D4A5: movsxd rdi, dword ptr [rdi+18h] cmp rdi, 2 jl loc_9D56B mov r10d, 1 loc_9D4B9: test eax, eax jle short loc_9D4F0 mov r11d, [r9+r10*4] imul r11d, ecx movsxd r11, r11d lea r11, [r8+r11*8] movsd xmm0, qword ptr [rdx+r10*8] xor ebx, ebx loc_9D4D4: movsd xmm1, qword ptr [r11+rbx*8] mulsd xmm1, xmm0 addsd xmm1, qword ptr [rsi+rbx*8] movsd qword ptr [rsi+rbx*8], xmm1 inc rbx cmp rax, rbx jnz short loc_9D4D4 loc_9D4F0: inc r10 cmp r10, rdi jnz short loc_9D4B9 jmp short loc_9D56B loc_9D4FA: test eax, eax jle short loc_9D51D movsd xmm0, qword ptr [rdx] xor r9d, r9d loc_9D505: movsd xmm1, qword ptr [r8+r9*8] mulsd xmm1, xmm0 movsd qword ptr [rsi+r9*8], xmm1 inc r9 cmp rax, r9 jnz short loc_9D505 loc_9D51D: movsxd rdi, dword ptr [rdi+18h] cmp rdi, 2 jl short loc_9D56B lea r8, [r8+rcx*8] shl rcx, 3 mov r9d, 1 loc_9D535: test eax, eax jle short loc_9D560 movsd xmm0, qword ptr [rdx+r9*8] xor r10d, r10d loc_9D542: movsd xmm1, qword ptr [r8+r10*8] mulsd xmm1, xmm0 addsd xmm1, qword ptr [rsi+r10*8] movsd qword ptr [rsi+r10*8], xmm1 inc r10 cmp rax, r10 jnz short loc_9D542 loc_9D560: inc r9 add r8, rcx cmp r9, rdi jnz short loc_9D535 loc_9D56B: pop rbx retn
long long OpenSubdiv::v3_6_0::Bfr::points::Combine1<double>::apply<0>(long long *a1) { long long result; // rax long long v2; // rcx double *v3; // rdx long long v4; // rsi _DWORD *v5; // r9 long long v6; // r8 long long v7; // r10 double v8; // xmm0_8 long long i; // r11 long long v10; // rdi long long j; // r10 long long v12; // r11 double v13; // xmm0_8 long long k; // rbx double v15; // xmm0_8 long long m; // r9 long long v17; // rdi long long v18; // r8 long long v19; // rcx long long n; // r9 double v21; // xmm0_8 long long ii; // r10 result = *((unsigned int *)a1 + 2); v2 = *((int *)a1 + 3); v3 = *(double **)a1[5]; v4 = *(_QWORD *)a1[4]; v5 = (_DWORD *)a1[2]; v6 = *a1; if ( v5 ) { if ( (int)result > 0 ) { v7 = v6 + 8LL * (int)v2 * *v5; v8 = *v3; for ( i = 0LL; i != result; ++i ) *(double *)(v4 + 8 * i) = *(double *)(v7 + 8 * i) * v8; } v10 = *((int *)a1 + 6); if ( v10 >= 2 ) { for ( j = 1LL; j != v10; ++j ) { if ( (int)result > 0 ) { v12 = v6 + 8LL * (int)v2 * v5[j]; v13 = v3[j]; for ( k = 0LL; k != result; ++k ) *(double *)(v4 + 8 * k) = *(double *)(v12 + 8 * k) * v13 + *(double *)(v4 + 8 * k); } } } } else { if ( (int)result > 0 ) { v15 = *v3; for ( m = 0LL; m != result; ++m ) *(double *)(v4 + 8 * m) = *(double *)(v6 + 8 * m) * v15; } v17 = *((int *)a1 + 6); if ( v17 >= 2 ) { v18 = v6 + 8 * v2; v19 = 8 * v2; for ( n = 1LL; n != v17; ++n ) { if ( (int)result > 0 ) { v21 = v3[n]; for ( ii = 0LL; ii != result; ++ii ) *(double *)(v4 + 8 * ii) = *(double *)(v18 + 8 * ii) * v21 + *(double *)(v4 + 8 * ii); } v18 += v19; } } } return result; }
apply<0>: PUSH RBX MOV EAX,dword ptr [RDI + 0x8] MOVSXD RCX,dword ptr [RDI + 0xc] MOV RDX,qword ptr [RDI + 0x28] MOV RDX,qword ptr [RDX] MOV RSI,qword ptr [RDI + 0x20] MOV RSI,qword ptr [RSI] MOV R9,qword ptr [RDI + 0x10] MOV R8,qword ptr [RDI] TEST R9,R9 JZ 0x0019d4fa TEST EAX,EAX JLE 0x0019d4a5 MOV R10D,dword ptr [R9] IMUL R10D,ECX MOVSXD R10,R10D LEA R10,[R8 + R10*0x8] MOVSD XMM0,qword ptr [RDX] XOR R11D,R11D LAB_0019d48d: MOVSD XMM1,qword ptr [R10 + R11*0x8] MULSD XMM1,XMM0 MOVSD qword ptr [RSI + R11*0x8],XMM1 INC R11 CMP RAX,R11 JNZ 0x0019d48d LAB_0019d4a5: MOVSXD RDI,dword ptr [RDI + 0x18] CMP RDI,0x2 JL 0x0019d56b MOV R10D,0x1 LAB_0019d4b9: TEST EAX,EAX JLE 0x0019d4f0 MOV R11D,dword ptr [R9 + R10*0x4] IMUL R11D,ECX MOVSXD R11,R11D LEA R11,[R8 + R11*0x8] MOVSD XMM0,qword ptr [RDX + R10*0x8] XOR EBX,EBX LAB_0019d4d4: MOVSD XMM1,qword ptr [R11 + RBX*0x8] MULSD XMM1,XMM0 ADDSD XMM1,qword ptr [RSI + RBX*0x8] MOVSD qword ptr [RSI + RBX*0x8],XMM1 INC RBX CMP RAX,RBX JNZ 0x0019d4d4 LAB_0019d4f0: INC R10 CMP R10,RDI JNZ 0x0019d4b9 JMP 0x0019d56b LAB_0019d4fa: TEST EAX,EAX JLE 0x0019d51d MOVSD XMM0,qword ptr [RDX] XOR R9D,R9D LAB_0019d505: MOVSD XMM1,qword ptr [R8 + R9*0x8] MULSD XMM1,XMM0 MOVSD qword ptr [RSI + R9*0x8],XMM1 INC R9 CMP RAX,R9 JNZ 0x0019d505 LAB_0019d51d: MOVSXD RDI,dword ptr [RDI + 0x18] CMP RDI,0x2 JL 0x0019d56b LEA R8,[R8 + RCX*0x8] SHL RCX,0x3 MOV R9D,0x1 LAB_0019d535: TEST EAX,EAX JLE 0x0019d560 MOVSD XMM0,qword ptr [RDX + R9*0x8] XOR R10D,R10D LAB_0019d542: MOVSD XMM1,qword ptr [R8 + R10*0x8] MULSD XMM1,XMM0 ADDSD XMM1,qword ptr [RSI + R10*0x8] MOVSD qword ptr [RSI + R10*0x8],XMM1 INC R10 CMP RAX,R10 JNZ 0x0019d542 LAB_0019d560: INC R9 ADD R8,RCX CMP R9,RDI JNZ 0x0019d535 LAB_0019d56b: POP RBX RET
/* void OpenSubdiv::v3_6_0::Bfr::points::Combine1<double>::apply<0>(OpenSubdiv::v3_6_0::Bfr::points::CommonCombinationParameters<double> const&) */ void OpenSubdiv::v3_6_0::Bfr::points::Combine1<double>::apply<0> (CommonCombinationParameters *param_1) { double dVar1; uint uVar2; int iVar3; int iVar4; int iVar5; double *pdVar6; long lVar7; int *piVar8; ulong uVar9; long lVar10; long lVar11; ulong uVar12; uVar2 = *(uint *)(param_1 + 8); uVar9 = (ulong)uVar2; iVar3 = *(int *)(param_1 + 0xc); pdVar6 = (double *)**(int8 **)(param_1 + 0x28); lVar7 = **(long **)(param_1 + 0x20); piVar8 = *(int **)(param_1 + 0x10); lVar10 = *(long *)param_1; if (piVar8 == (int *)0x0) { if (0 < (int)uVar2) { dVar1 = *pdVar6; uVar12 = 0; do { *(double *)(lVar7 + uVar12 * 8) = *(double *)(lVar10 + uVar12 * 8) * dVar1; uVar12 = uVar12 + 1; } while (uVar9 != uVar12); } iVar4 = *(int *)(param_1 + 0x18); if (1 < (long)iVar4) { lVar10 = lVar10 + (long)iVar3 * 8; lVar11 = 1; do { if (0 < (int)uVar2) { dVar1 = pdVar6[lVar11]; uVar12 = 0; do { *(double *)(lVar7 + uVar12 * 8) = *(double *)(lVar10 + uVar12 * 8) * dVar1 + *(double *)(lVar7 + uVar12 * 8); uVar12 = uVar12 + 1; } while (uVar9 != uVar12); } lVar11 = lVar11 + 1; lVar10 = lVar10 + (long)iVar3 * 8; } while (lVar11 != iVar4); } } else { if (0 < (int)uVar2) { iVar4 = *piVar8; dVar1 = *pdVar6; uVar12 = 0; do { *(double *)(lVar7 + uVar12 * 8) = *(double *)(lVar10 + (long)(iVar4 * iVar3) * 8 + uVar12 * 8) * dVar1; uVar12 = uVar12 + 1; } while (uVar9 != uVar12); } iVar4 = *(int *)(param_1 + 0x18); if (1 < (long)iVar4) { lVar11 = 1; do { if (0 < (int)uVar2) { iVar5 = piVar8[lVar11]; dVar1 = pdVar6[lVar11]; uVar12 = 0; do { *(double *)(lVar7 + uVar12 * 8) = *(double *)(lVar10 + (long)(iVar5 * iVar3) * 8 + uVar12 * 8) * dVar1 + *(double *)(lVar7 + uVar12 * 8); uVar12 = uVar12 + 1; } while (uVar9 != uVar12); } lVar11 = lVar11 + 1; } while (lVar11 != iVar4); } } return; }
6,281
mthd_stmt_read_all_rows
eloqsql/libmariadb/libmariadb/mariadb_stmt.c
int mthd_stmt_read_all_rows(MYSQL_STMT *stmt) { MYSQL_DATA *result= &stmt->result; MYSQL_ROWS *current, **pprevious; ulong packet_len; unsigned char *p; pprevious= &result->data; while ((packet_len = ma_net_safe_read(stmt->mysql)) != packet_error) { p= stmt->mysql->net.read_pos; if (packet_len > 7 || p[0] != 254) { /* allocate space for rows */ if (!(current= (MYSQL_ROWS *)ma_alloc_root(&result->alloc, sizeof(MYSQL_ROWS) + packet_len))) { SET_CLIENT_STMT_ERROR(stmt, CR_OUT_OF_MEMORY, SQLSTATE_UNKNOWN, 0); return(1); } current->data= (MYSQL_ROW)(current + 1); *pprevious= current; pprevious= &current->next; /* copy binary row, we will encode it during mysql_stmt_fetch */ memcpy((char *)current->data, (char *)p, packet_len); if (stmt->update_max_length) { uchar *null_ptr, bit_offset= 4; uchar *cp= p; unsigned int i; cp++; /* skip first byte */ null_ptr= cp; cp+= (stmt->field_count + 9) / 8; for (i=0; i < stmt->field_count; i++) { if (!(*null_ptr & bit_offset)) { if (mysql_ps_fetch_functions[stmt->fields[i].type].pack_len < 0) { /* We need to calculate the sizes for date and time types */ size_t len= net_field_length(&cp); switch(stmt->fields[i].type) { case MYSQL_TYPE_TIME: case MYSQL_TYPE_DATE: case MYSQL_TYPE_DATETIME: case MYSQL_TYPE_TIMESTAMP: stmt->fields[i].max_length= mysql_ps_fetch_functions[stmt->fields[i].type].max_len; break; default: if (len > stmt->fields[i].max_length) stmt->fields[i].max_length= (ulong)len; break; } cp+= len; } else { if (stmt->fields[i].flags & ZEROFILL_FLAG) { /* The -1 is because a ZEROFILL:ed field is always unsigned */ size_t len= MAX(stmt->fields[i].length, mysql_ps_fetch_functions[stmt->fields[i].type].max_len-1); if (len > stmt->fields[i].max_length) stmt->fields[i].max_length= (unsigned long)len; } else if (!stmt->fields[i].max_length) { stmt->fields[i].max_length= mysql_ps_fetch_functions[stmt->fields[i].type].max_len; if (stmt->fields[i].flags & UNSIGNED_FLAG && stmt->fields[i].type != MYSQL_TYPE_INT24 && stmt->fields[i].type != MYSQL_TYPE_LONGLONG) { /* Unsigned integers has one character less than signed integers as '-' is counted as part of max_length */ stmt->fields[i].max_length--; } } cp+= mysql_ps_fetch_functions[stmt->fields[i].type].pack_len; } } if (!((bit_offset <<=1) & 255)) { bit_offset= 1; /* To next byte */ null_ptr++; } } } current->length= packet_len; result->rows++; } else /* end of stream */ { *pprevious= 0; /* sace status info */ p++; stmt->upsert_status.warning_count= stmt->mysql->warning_count= uint2korr(p); p+=2; stmt->upsert_status.server_status= stmt->mysql->server_status= uint2korr(p); stmt->result_cursor= result->data; return(0); } } stmt->result_cursor= 0; SET_CLIENT_STMT_ERROR(stmt, stmt->mysql->net.last_errno, stmt->mysql->net.sqlstate, stmt->mysql->net.last_error); return(1); }
O3
c
mthd_stmt_read_all_rows: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx movq 0x38(%rdi), %rdi callq 0x595d3 movq %rax, %r15 movl $0xffffffff, %eax # imm = 0xFFFFFFFF cmpq %rax, %r15 je 0x626ce leaq 0x80(%rbx), %r14 leaq 0x90(%rbx), %rax movq %rax, -0x38(%rbp) movq 0x38(%rbx), %rax movq 0x20(%rax), %r13 cmpq $0x7, %r15 ja 0x624fe cmpb $-0x2, (%r13) je 0x62783 leaq 0x18(%r15), %rsi movq -0x38(%rbp), %rdi callq 0x61e0b testq %rax, %rax je 0x6271d movq %rax, %r12 addq $0x18, %rax movq %rax, 0x8(%r12) movq %r12, (%r14) movq 0x8(%r12), %rdi movq %r13, %rsi movq %r15, %rdx callq 0x3a0c0 cmpb $0x0, 0x313(%rbx) je 0x626a5 movq %r12, -0x40(%rbp) movq %r15, -0x48(%rbp) movl 0x60(%rbx), %eax leal 0x9(%rax), %ecx shrl $0x3, %ecx addq %r13, %rcx incq %rcx movq %rcx, -0x30(%rbp) testl %eax, %eax leaq 0x38478c(%rip), %rsi # 0x3e6cf0 movl $0x1, %edi je 0x6269d incq %r13 movl $0x4, %r14d xorl %r15d, %r15d xorl %r12d, %r12d movzbl (%r13), %eax testl %eax, %r14d jne 0x62658 movq 0x58(%rbx), %rax movl 0x70(%rax,%r15), %ecx leaq (%rcx,%rcx,2), %rcx cmpl $0x0, 0x8(%rsi,%rcx,8) js 0x625e1 leaq (%rsi,%rcx,8), %rcx testb $0x40, 0x64(%rax,%r15) jne 0x62623 cmpq $0x0, 0x40(%rax,%r15) jne 0x62642 movq 0x10(%rcx), %rcx movq %rcx, 0x40(%rax,%r15) movq 0x58(%rbx), %rax testb $0x20, 0x64(%rax,%r15) je 0x62642 movl 0x70(%rax,%r15), %ecx andl $-0x2, %ecx cmpl $0x8, %ecx je 0x62642 decq 0x40(%rax,%r15) jmp 0x62642 leaq -0x30(%rbp), %rdi callq 0x599b1 movq 0x58(%rbx), %rcx movl 0x70(%rcx,%r15), %edx cmpq $0xc, %rdx ja 0x62683 movl $0x1c80, %esi # imm = 0x1C80 btl %edx, %esi jae 0x62683 leaq (%rdx,%rdx,2), %rdx leaq 0x3846de(%rip), %rsi # 0x3e6cf0 movq 0x10(%rsi,%rdx,8), %rdx movq %rdx, 0x40(%rcx,%r15) movl $0x1, %edi jmp 0x62654 movq 0x38(%rax,%r15), %rdx movq 0x10(%rcx), %rcx decq %rcx cmpq %rcx, %rdx cmovaq %rdx, %rcx cmpq 0x40(%rax,%r15), %rcx jbe 0x62642 movq %rcx, 0x40(%rax,%r15) movq 0x58(%rbx), %rax movl 0x70(%rax,%r15), %eax leaq (%rax,%rax,2), %rax movslq 0x8(%rsi,%rax,8), %rax addq %rax, -0x30(%rbp) movzbl %r14b, %eax leal (%rax,%rax), %r14d xorl %ecx, %ecx testb $0x7f, %al sete %cl cmovel %edi, %r14d addq %rcx, %r13 incq %r12 movl 0x60(%rbx), %eax subq $-0x80, %r15 cmpq %rax, %r12 jb 0x6257e jmp 0x6269d cmpq 0x40(%rcx,%r15), %rax leaq 0x384661(%rip), %rsi # 0x3e6cf0 movl $0x1, %edi jbe 0x62654 movq %rax, 0x40(%rcx,%r15) jmp 0x62654 movq -0x48(%rbp), %r15 movq -0x40(%rbp), %r12 movq %r15, 0x10(%r12) incq 0xc8(%rbx) movq 0x38(%rbx), %rdi callq 0x595d3 movq %rax, %r15 movq %r12, %r14 movl $0xffffffff, %eax # imm = 0xFFFFFFFF cmpq %rax, %r15 jne 0x624e5 movq $0x0, 0xe0(%rbx) movq 0x38(%rbx), %rsi movl 0x90(%rsi), %eax movl %eax, 0x108(%rbx) leaq 0x30d(%rbx), %rdi addq $0x297, %rsi # imm = 0x297 movl $0x5, %edx callq 0x3a1a0 xorl %r14d, %r14d movb %r14b, 0x312(%rbx) leaq 0x10c(%rbx), %rdi movl $0x97, %esi addq 0x38(%rbx), %rsi jmp 0x6275e movl $0x7d8, 0x108(%rbx) # imm = 0x7D8 leaq 0x30d(%rbx), %rdi leaq 0x30b37b(%rip), %rax # 0x36dab0 movq (%rax), %rsi movl $0x5, %edx callq 0x3a1a0 xorl %r14d, %r14d movb %r14b, 0x312(%rbx) leaq 0x10c(%rbx), %rdi leaq 0x30b366(%rip), %rax # 0x36dac0 movq 0x40(%rax), %rsi movl $0x200, %edx # imm = 0x200 callq 0x3a1a0 movb %r14b, 0x30b(%rbx) movl $0x1, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq $0x0, (%r14) movzwl 0x1(%r13), %eax movq 0x38(%rbx), %rcx movl %eax, 0x388(%rcx) movl %eax, 0xf0(%rbx) movzwl 0x3(%r13), %eax movq 0x38(%rbx), %rcx movl %eax, 0x380(%rcx) movl %eax, 0xf4(%rbx) movq 0x80(%rbx), %rax movq %rax, 0xe0(%rbx) xorl %eax, %eax jmp 0x62774
mthd_stmt_read_all_rows: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rdi mov rdi, [rdi+38h] call ma_net_safe_read mov r15, rax mov eax, 0FFFFFFFFh cmp r15, rax jz loc_626CE lea r14, [rbx+80h] lea rax, [rbx+90h] mov [rbp+var_38], rax loc_624E5: mov rax, [rbx+38h] mov r13, [rax+20h] cmp r15, 7 ja short loc_624FE cmp byte ptr [r13+0], 0FEh jz loc_62783 loc_624FE: lea rsi, [r15+18h] mov rdi, [rbp+var_38] call ma_alloc_root test rax, rax jz loc_6271D mov r12, rax add rax, 18h mov [r12+8], rax mov [r14], r12 mov rdi, [r12+8] mov rsi, r13 mov rdx, r15 call _memcpy cmp byte ptr [rbx+313h], 0 jz loc_626A5 mov [rbp+var_40], r12 mov [rbp+var_48], r15 mov eax, [rbx+60h] lea ecx, [rax+9] shr ecx, 3 add rcx, r13 inc rcx mov [rbp+var_30], rcx test eax, eax lea rsi, mysql_ps_fetch_functions mov edi, 1 jz loc_6269D inc r13 mov r14d, 4 xor r15d, r15d xor r12d, r12d loc_6257E: movzx eax, byte ptr [r13+0] test r14d, eax jnz loc_62658 mov rax, [rbx+58h] mov ecx, [rax+r15+70h] lea rcx, [rcx+rcx*2] cmp dword ptr [rsi+rcx*8+8], 0 js short loc_625E1 lea rcx, [rsi+rcx*8] test byte ptr [rax+r15+64h], 40h jnz short loc_62623 cmp qword ptr [rax+r15+40h], 0 jnz loc_62642 mov rcx, [rcx+10h] mov [rax+r15+40h], rcx mov rax, [rbx+58h] test byte ptr [rax+r15+64h], 20h jz short loc_62642 mov ecx, [rax+r15+70h] and ecx, 0FFFFFFFEh cmp ecx, 8 jz short loc_62642 dec qword ptr [rax+r15+40h] jmp short loc_62642 loc_625E1: lea rdi, [rbp+var_30] call net_field_length mov rcx, [rbx+58h] mov edx, [rcx+r15+70h] cmp rdx, 0Ch ja loc_62683 mov esi, 1C80h bt esi, edx jnb short loc_62683 lea rdx, [rdx+rdx*2] lea rsi, mysql_ps_fetch_functions mov rdx, [rsi+rdx*8+10h] mov [rcx+r15+40h], rdx mov edi, 1 jmp short loc_62654 loc_62623: mov rdx, [rax+r15+38h] mov rcx, [rcx+10h] dec rcx cmp rdx, rcx cmova rcx, rdx cmp rcx, [rax+r15+40h] jbe short loc_62642 mov [rax+r15+40h], rcx loc_62642: mov rax, [rbx+58h] mov eax, [rax+r15+70h] lea rax, [rax+rax*2] movsxd rax, dword ptr [rsi+rax*8+8] loc_62654: add [rbp+var_30], rax loc_62658: movzx eax, r14b lea r14d, [rax+rax] xor ecx, ecx test al, 7Fh setz cl cmovz r14d, edi add r13, rcx inc r12 mov eax, [rbx+60h] sub r15, 0FFFFFFFFFFFFFF80h cmp r12, rax jb loc_6257E jmp short loc_6269D loc_62683: cmp rax, [rcx+r15+40h] lea rsi, mysql_ps_fetch_functions mov edi, 1 jbe short loc_62654 mov [rcx+r15+40h], rax jmp short loc_62654 loc_6269D: mov r15, [rbp+var_48] mov r12, [rbp+var_40] loc_626A5: mov [r12+10h], r15 inc qword ptr [rbx+0C8h] mov rdi, [rbx+38h] call ma_net_safe_read mov r15, rax mov r14, r12 mov eax, 0FFFFFFFFh cmp r15, rax jnz loc_624E5 loc_626CE: mov qword ptr [rbx+0E0h], 0 mov rsi, [rbx+38h] mov eax, [rsi+90h] mov [rbx+108h], eax lea rdi, [rbx+30Dh] add rsi, 297h mov edx, 5 call _strncpy xor r14d, r14d mov [rbx+312h], r14b lea rdi, [rbx+10Ch] mov esi, 97h add rsi, [rbx+38h] jmp short loc_6275E loc_6271D: mov dword ptr [rbx+108h], 7D8h lea rdi, [rbx+30Dh] lea rax, SQLSTATE_UNKNOWN mov rsi, [rax] mov edx, 5 call _strncpy xor r14d, r14d mov [rbx+312h], r14b lea rdi, [rbx+10Ch] lea rax, client_errors mov rsi, [rax+40h] loc_6275E: mov edx, 200h call _strncpy mov [rbx+30Bh], r14b mov eax, 1 loc_62774: add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_62783: mov qword ptr [r14], 0 movzx eax, word ptr [r13+1] mov rcx, [rbx+38h] mov [rcx+388h], eax mov [rbx+0F0h], eax movzx eax, word ptr [r13+3] mov rcx, [rbx+38h] mov [rcx+380h], eax mov [rbx+0F4h], eax mov rax, [rbx+80h] mov [rbx+0E0h], rax xor eax, eax jmp short loc_62774
long long mthd_stmt_read_all_rows(long long a1, long long a2, long long a3, long long a4, unsigned long long a5, int a6) { unsigned long long v7; // r15 char **v8; // r14 _BYTE *v9; // r13 char *v10; // rax long long v11; // rcx long long v12; // r8 long long v13; // r9 char *v14; // r12 void *v15; // rsi unsigned long long v16; // rdx long long v17; // rcx unsigned long long v18; // r8 int v19; // r9d int v20; // eax _BYTE *v21; // r13 char v22; // r14 long long v23; // r15 unsigned long long v24; // r12 long long v25; // rax char *v26; // rcx long long v27; // rax unsigned long long v28; // rax long long v29; // rcx int v30; // esi unsigned long long v31; // rcx char v32; // al long long v33; // rsi long long v34; // rdi char *v35; // rsi int v37; // eax int v38; // eax unsigned long long v39; // [rsp+8h] [rbp-48h] char *v40; // [rsp+10h] [rbp-40h] unsigned __int8 *v41; // [rsp+20h] [rbp-30h] BYREF v7 = ma_net_safe_read(*(_QWORD *)(a1 + 56), a2, a3, a4, a5, a6); if ( v7 == 0xFFFFFFFF ) { LABEL_33: *(_QWORD *)(a1 + 224) = 0LL; v33 = *(_QWORD *)(a1 + 56); *(_DWORD *)(a1 + 264) = *(_DWORD *)(v33 + 144); strncpy(a1 + 781, v33 + 663, 5LL); *(_BYTE *)(a1 + 786) = 0; v34 = a1 + 268; v35 = (char *)(*(_QWORD *)(a1 + 56) + 151LL); LABEL_35: strncpy(v34, v35, 512LL); *(_BYTE *)(a1 + 779) = 0; return 1LL; } else { v8 = (char **)(a1 + 128); while ( 1 ) { v9 = *(_BYTE **)(*(_QWORD *)(a1 + 56) + 32LL); if ( v7 <= 7 && *v9 == 0xFE ) break; v10 = ma_alloc_root(a1 + 144, v7 + 24); if ( !v10 ) { *(_DWORD *)(a1 + 264) = 2008; strncpy(a1 + 781, SQLSTATE_UNKNOWN, 5LL); *(_BYTE *)(a1 + 786) = 0; v34 = a1 + 268; v35 = client_errors[8]; goto LABEL_35; } v14 = v10; *((_QWORD *)v10 + 1) = v10 + 24; *v8 = v10; v15 = v9; memcpy(*((_QWORD *)v10 + 1), v9, v7, v11, v12, v13); if ( *(_BYTE *)(a1 + 787) ) { v40 = v14; v39 = v7; v20 = *(_DWORD *)(a1 + 96); v17 = (long long)&v9[((unsigned int)(v20 + 9) >> 3) + 1]; v41 = (unsigned __int8 *)v17; v15 = &mysql_ps_fetch_functions; if ( v20 ) { v21 = v9 + 1; v22 = 4; v23 = 0LL; v24 = 0LL; do { if ( (*v21 & (unsigned __int8)v22) == 0 ) { v25 = *(_QWORD *)(a1 + 88); if ( *((int *)&mysql_ps_fetch_functions + 6 * *(unsigned int *)(v25 + v23 + 112) + 2) < 0 ) { v28 = net_field_length(&v41); v29 = *(_QWORD *)(a1 + 88); v16 = *(unsigned int *)(v29 + v23 + 112); if ( v16 <= 0xC && (v30 = 7296, _bittest(&v30, v16)) ) { v15 = &mysql_ps_fetch_functions; v16 = *((_QWORD *)&mysql_ps_fetch_functions + 3 * v16 + 2); *(_QWORD *)(v29 + v23 + 64) = v16; } else { v15 = &mysql_ps_fetch_functions; if ( v28 > *(_QWORD *)(v29 + v23 + 64) ) *(_QWORD *)(v29 + v23 + 64) = v28; } } else { v26 = (char *)&mysql_ps_fetch_functions + 24 * *(unsigned int *)(v25 + v23 + 112); if ( (*(_BYTE *)(v25 + v23 + 100) & 0x40) != 0 ) { v16 = *(_QWORD *)(v25 + v23 + 56); v31 = *((_QWORD *)v26 + 2) - 1LL; if ( v16 > v31 ) v31 = *(_QWORD *)(v25 + v23 + 56); if ( v31 > *(_QWORD *)(v25 + v23 + 64) ) *(_QWORD *)(v25 + v23 + 64) = v31; } else if ( !*(_QWORD *)(v25 + v23 + 64) ) { *(_QWORD *)(v25 + v23 + 64) = *((_QWORD *)v26 + 2); v27 = *(_QWORD *)(a1 + 88); if ( (*(_BYTE *)(v27 + v23 + 100) & 0x20) != 0 && (*(_DWORD *)(v27 + v23 + 112) & 0xFFFFFFFE) != 8 ) --*(_QWORD *)(v27 + v23 + 64); } v28 = *((int *)&mysql_ps_fetch_functions + 6 * *(unsigned int *)(*(_QWORD *)(a1 + 88) + v23 + 112) + 2); } v41 += v28; } v32 = v22; v22 *= 2; v17 = (v32 & 0x7F) == 0; if ( (v32 & 0x7F) == 0 ) v22 = 1; v21 += v17; ++v24; v23 += 128LL; } while ( v24 < *(unsigned int *)(a1 + 96) ); } v7 = v39; v14 = v40; } *((_QWORD *)v14 + 2) = v7; ++*(_QWORD *)(a1 + 200); v7 = ma_net_safe_read(*(_QWORD *)(a1 + 56), (long long)v15, v16, v17, v18, v19); v8 = (char **)v14; if ( v7 == 0xFFFFFFFF ) goto LABEL_33; } *v8 = 0LL; v37 = *(unsigned __int16 *)(v9 + 1); *(_DWORD *)(*(_QWORD *)(a1 + 56) + 904LL) = v37; *(_DWORD *)(a1 + 240) = v37; v38 = *(unsigned __int16 *)(v9 + 3); *(_DWORD *)(*(_QWORD *)(a1 + 56) + 896LL) = v38; *(_DWORD *)(a1 + 244) = v38; *(_QWORD *)(a1 + 224) = *(_QWORD *)(a1 + 128); return 0LL; } }
mthd_stmt_read_all_rows: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDI MOV RDI,qword ptr [RDI + 0x38] CALL 0x001595d3 MOV R15,RAX MOV EAX,0xffffffff CMP R15,RAX JZ 0x001626ce LEA R14,[RBX + 0x80] LEA RAX,[RBX + 0x90] MOV qword ptr [RBP + -0x38],RAX LAB_001624e5: MOV RAX,qword ptr [RBX + 0x38] MOV R13,qword ptr [RAX + 0x20] CMP R15,0x7 JA 0x001624fe CMP byte ptr [R13],0xfe JZ 0x00162783 LAB_001624fe: LEA RSI,[R15 + 0x18] MOV RDI,qword ptr [RBP + -0x38] CALL 0x00161e0b TEST RAX,RAX JZ 0x0016271d MOV R12,RAX ADD RAX,0x18 MOV qword ptr [R12 + 0x8],RAX MOV qword ptr [R14],R12 MOV RDI,qword ptr [R12 + 0x8] MOV RSI,R13 MOV RDX,R15 CALL 0x0013a0c0 CMP byte ptr [RBX + 0x313],0x0 JZ 0x001626a5 MOV qword ptr [RBP + -0x40],R12 MOV qword ptr [RBP + -0x48],R15 MOV EAX,dword ptr [RBX + 0x60] LEA ECX,[RAX + 0x9] SHR ECX,0x3 ADD RCX,R13 INC RCX MOV qword ptr [RBP + -0x30],RCX TEST EAX,EAX LEA RSI,[0x4e6cf0] MOV EDI,0x1 JZ 0x0016269d INC R13 MOV R14D,0x4 XOR R15D,R15D XOR R12D,R12D LAB_0016257e: MOVZX EAX,byte ptr [R13] TEST R14D,EAX JNZ 0x00162658 MOV RAX,qword ptr [RBX + 0x58] MOV ECX,dword ptr [RAX + R15*0x1 + 0x70] LEA RCX,[RCX + RCX*0x2] CMP dword ptr [RSI + RCX*0x8 + 0x8],0x0 JS 0x001625e1 LEA RCX,[RSI + RCX*0x8] TEST byte ptr [RAX + R15*0x1 + 0x64],0x40 JNZ 0x00162623 CMP qword ptr [RAX + R15*0x1 + 0x40],0x0 JNZ 0x00162642 MOV RCX,qword ptr [RCX + 0x10] MOV qword ptr [RAX + R15*0x1 + 0x40],RCX MOV RAX,qword ptr [RBX + 0x58] TEST byte ptr [RAX + R15*0x1 + 0x64],0x20 JZ 0x00162642 MOV ECX,dword ptr [RAX + R15*0x1 + 0x70] AND ECX,0xfffffffe CMP ECX,0x8 JZ 0x00162642 DEC qword ptr [RAX + R15*0x1 + 0x40] JMP 0x00162642 LAB_001625e1: LEA RDI,[RBP + -0x30] CALL 0x001599b1 MOV RCX,qword ptr [RBX + 0x58] MOV EDX,dword ptr [RCX + R15*0x1 + 0x70] CMP RDX,0xc JA 0x00162683 MOV ESI,0x1c80 BT ESI,EDX JNC 0x00162683 LEA RDX,[RDX + RDX*0x2] LEA RSI,[0x4e6cf0] MOV RDX,qword ptr [RSI + RDX*0x8 + 0x10] MOV qword ptr [RCX + R15*0x1 + 0x40],RDX MOV EDI,0x1 JMP 0x00162654 LAB_00162623: MOV RDX,qword ptr [RAX + R15*0x1 + 0x38] MOV RCX,qword ptr [RCX + 0x10] DEC RCX CMP RDX,RCX CMOVA RCX,RDX CMP RCX,qword ptr [RAX + R15*0x1 + 0x40] JBE 0x00162642 MOV qword ptr [RAX + R15*0x1 + 0x40],RCX LAB_00162642: MOV RAX,qword ptr [RBX + 0x58] MOV EAX,dword ptr [RAX + R15*0x1 + 0x70] LEA RAX,[RAX + RAX*0x2] MOVSXD RAX,dword ptr [RSI + RAX*0x8 + 0x8] LAB_00162654: ADD qword ptr [RBP + -0x30],RAX LAB_00162658: MOVZX EAX,R14B LEA R14D,[RAX + RAX*0x1] XOR ECX,ECX TEST AL,0x7f SETZ CL CMOVZ R14D,EDI ADD R13,RCX INC R12 MOV EAX,dword ptr [RBX + 0x60] SUB R15,-0x80 CMP R12,RAX JC 0x0016257e JMP 0x0016269d LAB_00162683: CMP RAX,qword ptr [RCX + R15*0x1 + 0x40] LEA RSI,[0x4e6cf0] MOV EDI,0x1 JBE 0x00162654 MOV qword ptr [RCX + R15*0x1 + 0x40],RAX JMP 0x00162654 LAB_0016269d: MOV R15,qword ptr [RBP + -0x48] MOV R12,qword ptr [RBP + -0x40] LAB_001626a5: MOV qword ptr [R12 + 0x10],R15 INC qword ptr [RBX + 0xc8] MOV RDI,qword ptr [RBX + 0x38] CALL 0x001595d3 MOV R15,RAX MOV R14,R12 MOV EAX,0xffffffff CMP R15,RAX JNZ 0x001624e5 LAB_001626ce: MOV qword ptr [RBX + 0xe0],0x0 MOV RSI,qword ptr [RBX + 0x38] MOV EAX,dword ptr [RSI + 0x90] MOV dword ptr [RBX + 0x108],EAX LEA RDI,[RBX + 0x30d] ADD RSI,0x297 MOV EDX,0x5 CALL 0x0013a1a0 XOR R14D,R14D MOV byte ptr [RBX + 0x312],R14B LEA RDI,[RBX + 0x10c] MOV ESI,0x97 ADD RSI,qword ptr [RBX + 0x38] JMP 0x0016275e LAB_0016271d: MOV dword ptr [RBX + 0x108],0x7d8 LEA RDI,[RBX + 0x30d] LEA RAX,[0x46dab0] MOV RSI,qword ptr [RAX] MOV EDX,0x5 CALL 0x0013a1a0 XOR R14D,R14D MOV byte ptr [RBX + 0x312],R14B LEA RDI,[RBX + 0x10c] LEA RAX,[0x46dac0] MOV RSI,qword ptr [RAX + 0x40] LAB_0016275e: MOV EDX,0x200 CALL 0x0013a1a0 MOV byte ptr [RBX + 0x30b],R14B MOV EAX,0x1 LAB_00162774: ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00162783: MOV qword ptr [R14],0x0 MOVZX EAX,word ptr [R13 + 0x1] MOV RCX,qword ptr [RBX + 0x38] MOV dword ptr [RCX + 0x388],EAX MOV dword ptr [RBX + 0xf0],EAX MOVZX EAX,word ptr [R13 + 0x3] MOV RCX,qword ptr [RBX + 0x38] MOV dword ptr [RCX + 0x380],EAX MOV dword ptr [RBX + 0xf4],EAX MOV RAX,qword ptr [RBX + 0x80] MOV qword ptr [RBX + 0xe0],RAX XOR EAX,EAX JMP 0x00162774
int8 mthd_stmt_read_all_rows(long param_1) { long *plVar1; ushort uVar2; uint uVar3; long lVar4; ulong uVar5; ulong __n; int8 *puVar6; ulong uVar7; ulong uVar8; char *pcVar9; ulong uVar10; byte *pbVar11; byte bVar12; int8 *puVar13; long lVar14; bool bVar15; char *local_38; __n = ma_net_safe_read(*(int8 *)(param_1 + 0x38)); if (__n != 0xffffffff) { puVar13 = (int8 *)(param_1 + 0x80); do { pcVar9 = *(char **)(*(long *)(param_1 + 0x38) + 0x20); if ((__n < 8) && (*pcVar9 == -2)) { *puVar13 = 0; uVar2 = *(ushort *)(pcVar9 + 1); *(uint *)(*(long *)(param_1 + 0x38) + 0x388) = (uint)uVar2; *(uint *)(param_1 + 0xf0) = (uint)uVar2; uVar2 = *(ushort *)(pcVar9 + 3); *(uint *)(*(long *)(param_1 + 0x38) + 0x380) = (uint)uVar2; *(uint *)(param_1 + 0xf4) = (uint)uVar2; *(int8 *)(param_1 + 0xe0) = *(int8 *)(param_1 + 0x80); return 0; } puVar6 = (int8 *)ma_alloc_root(param_1 + 0x90,__n + 0x18); if (puVar6 == (int8 *)0x0) { *(int4 *)(param_1 + 0x108) = 0x7d8; strncpy((char *)(param_1 + 0x30d),SQLSTATE_UNKNOWN,5); *(int1 *)(param_1 + 0x312) = 0; pcVar9 = PTR_s_Client_run_out_of_memory_0046db00; goto LAB_0016275e; } puVar6[1] = puVar6 + 3; *puVar13 = puVar6; memcpy((void *)puVar6[1],pcVar9,__n); if ((*(char *)(param_1 + 0x313) != '\0') && (local_38 = pcVar9 + (ulong)(*(int *)(param_1 + 0x60) + 9U >> 3) + 1, *(int *)(param_1 + 0x60) != 0)) { pbVar11 = (byte *)(pcVar9 + 1); bVar12 = 4; lVar14 = 0; uVar10 = 0; do { if ((bVar12 & *pbVar11) == 0) { lVar4 = *(long *)(param_1 + 0x58); uVar7 = (ulong)*(uint *)(lVar4 + 0x70 + lVar14); if ((int)(&DAT_004e6cf8)[uVar7 * 6] < 0) { uVar7 = net_field_length(&local_38); lVar4 = *(long *)(param_1 + 0x58); uVar3 = *(uint *)(lVar4 + 0x70 + lVar14); if (((ulong)uVar3 < 0xd) && ((0x1c80U >> (uVar3 & 0x1f) & 1) != 0)) { *(int8 *)(lVar4 + 0x40 + lVar14) = (&DAT_004e6d00)[(ulong)uVar3 * 3]; } else if (*(ulong *)(lVar4 + 0x40 + lVar14) < uVar7) { *(ulong *)(lVar4 + 0x40 + lVar14) = uVar7; } } else { if ((*(byte *)(lVar4 + 100 + lVar14) & 0x40) == 0) { if (*(long *)(lVar4 + 0x40 + lVar14) == 0) { *(int8 *)(lVar4 + 0x40 + lVar14) = (&DAT_004e6d00)[uVar7 * 3]; lVar4 = *(long *)(param_1 + 0x58); if (((*(byte *)(lVar4 + 100 + lVar14) & 0x20) != 0) && ((*(uint *)(lVar4 + 0x70 + lVar14) & 0xfffffffe) != 8)) { plVar1 = (long *)(lVar4 + 0x40 + lVar14); *plVar1 = *plVar1 + -1; } } } else { uVar5 = *(ulong *)(lVar4 + 0x38 + lVar14); uVar8 = (&DAT_004e6d00)[uVar7 * 3] - 1; if ((&DAT_004e6d00)[uVar7 * 3] - 1 < uVar5) { uVar8 = uVar5; } if (*(ulong *)(lVar4 + 0x40 + lVar14) < uVar8) { *(ulong *)(lVar4 + 0x40 + lVar14) = uVar8; } } uVar7 = (ulong)(int)(&DAT_004e6cf8) [(ulong)*(uint *)(*(long *)(param_1 + 0x58) + 0x70 + lVar14) * 6]; } local_38 = local_38 + uVar7; } bVar15 = (bVar12 & 0x7f) == 0; bVar12 = bVar12 * '\x02'; if (bVar15) { bVar12 = 1; } pbVar11 = pbVar11 + bVar15; uVar10 = uVar10 + 1; lVar14 = lVar14 + 0x80; } while (uVar10 < *(uint *)(param_1 + 0x60)); } puVar6[2] = __n; *(long *)(param_1 + 200) = *(long *)(param_1 + 200) + 1; __n = ma_net_safe_read(*(int8 *)(param_1 + 0x38)); puVar13 = puVar6; } while (__n != 0xffffffff); } *(int8 *)(param_1 + 0xe0) = 0; *(int4 *)(param_1 + 0x108) = *(int4 *)(*(long *)(param_1 + 0x38) + 0x90); strncpy((char *)(param_1 + 0x30d),(char *)(*(long *)(param_1 + 0x38) + 0x297),5); *(int1 *)(param_1 + 0x312) = 0; pcVar9 = (char *)(*(long *)(param_1 + 0x38) + 0x97); LAB_0016275e: strncpy((char *)(param_1 + 0x10c),pcVar9,0x200); *(int1 *)(param_1 + 0x30b) = 0; return 1; }
6,282
my_init
eloqsql/mysys/my_init.c
my_bool my_init(void) { char *str; if (my_init_done) return 0; my_init_done= 1; mysys_usage_id++; my_umask= 0660; /* Default umask for new files */ my_umask_dir= 0700; /* Default umask for new directories */ my_global_flags= 0; /* Default creation of new files */ if ((str= getenv("UMASK")) != 0) my_umask= (int) (atoi_octal(str) | 0600); /* Default creation of new dir's */ if ((str= getenv("UMASK_DIR")) != 0) my_umask_dir= (int) (atoi_octal(str) | 0700); init_glob_errs(); instrumented_stdin.m_file= stdin; instrumented_stdin.m_psi= NULL; /* not yet instrumented */ mysql_stdin= & instrumented_stdin; my_progname_short= "unknown"; if (my_progname) my_progname_short= my_progname + dirname_length(my_progname); /* Initialize our mutex handling */ my_mutex_init(); if (my_thread_global_init()) return 1; #if defined(SAFEMALLOC) && !defined(DBUG_OFF) dbug_sanity= sf_sanity; #endif /* $HOME is needed early to parse configuration files located in ~/ */ if ((home_dir= getenv("HOME")) != 0) home_dir= intern_filename(home_dir_buff, home_dir); { DBUG_ENTER("my_init"); DBUG_PROCESS((char*) (my_progname ? my_progname : "unknown")); my_time_init(); my_win_init(); DBUG_PRINT("exit", ("home: '%s'", home_dir)); #ifdef _WIN32 if (win32_init_tcp_ip()) DBUG_RETURN(1); #endif #ifdef CHECK_UNLIKELY init_my_likely(); #endif DBUG_RETURN(0); } }
O0
c
my_init: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp leaq 0xb901a1(%rip), %rax # 0xc828f0 cmpb $0x0, (%rax) je 0xf275d movb $0x0, -0x1(%rbp) jmp 0xf28e6 leaq 0xb9018c(%rip), %rax # 0xc828f0 movb $0x1, (%rax) leaq 0xb90186(%rip), %rax # 0xc828f4 movl (%rax), %ecx addl $0x1, %ecx leaq 0xb9017a(%rip), %rax # 0xc828f4 movl %ecx, (%rax) leaq 0x1cd425(%rip), %rax # 0x2bfba8 movl $0x1b0, (%rax) # imm = 0x1B0 leaq 0x1cd41c(%rip), %rax # 0x2bfbac movl $0x1c0, (%rax) # imm = 0x1C0 leaq 0xb9062b(%rip), %rax # 0xc82dc8 movq $0x0, (%rax) leaq 0x61acb(%rip), %rdi # 0x154276 callq 0x2a5e0 movq %rax, -0x10(%rbp) cmpq $0x0, %rax je 0xf27d4 movq -0x10(%rbp), %rdi callq 0xf28f0 orq $0x180, %rax # imm = 0x180 movl %eax, %ecx leaq 0x1cd3d6(%rip), %rax # 0x2bfba8 movl %ecx, (%rax) leaq 0x61aa1(%rip), %rdi # 0x15427c callq 0x2a5e0 movq %rax, -0x10(%rbp) cmpq $0x0, %rax je 0xf2804 movq -0x10(%rbp), %rdi callq 0xf28f0 orq $0x1c0, %rax # imm = 0x1C0 movl %eax, %ecx leaq 0x1cd3aa(%rip), %rax # 0x2bfbac movl %ecx, (%rax) callq 0x102cf0 movq 0x1ca7d8(%rip), %rax # 0x2bcfe8 movq (%rax), %rax movq %rax, 0xb900e6(%rip) # 0xc82900 movq $0x0, 0xb900e3(%rip) # 0xc82908 leaq 0xb900cc(%rip), %rax # 0xc828f8 leaq 0xb900cd(%rip), %rcx # 0xc82900 movq %rcx, (%rax) leaq 0xb9016b(%rip), %rax # 0xc829a8 leaq 0x61a42(%rip), %rcx # 0x154286 movq %rcx, (%rax) leaq 0xb90152(%rip), %rax # 0xc829a0 cmpq $0x0, (%rax) je 0xf2882 leaq 0xb90145(%rip), %rax # 0xc829a0 movq (%rax), %rax movq %rax, -0x18(%rbp) leaq 0xb90137(%rip), %rax # 0xc829a0 movq (%rax), %rdi callq 0xdf620 movq -0x18(%rbp), %rcx addq %rax, %rcx leaq 0xb90129(%rip), %rax # 0xc829a8 movq %rcx, (%rax) callq 0xf9e60 callq 0xf6160 cmpb $0x0, %al je 0xf2896 movb $0x1, -0x1(%rbp) jmp 0xf28e6 leaq 0x619f1(%rip), %rdi # 0x15428e callq 0x2a5e0 leaq 0xb900ef(%rip), %rcx # 0xc82998 movq %rax, (%rcx) cmpq $0x0, %rax je 0xf28d5 leaq 0xb900df(%rip), %rax # 0xc82998 movq (%rax), %rsi leaq 0xb902ed(%rip), %rdi # 0xc82bb0 callq 0xe8cd0 movq %rax, %rcx leaq 0xb900c6(%rip), %rax # 0xc82998 movq %rcx, (%rax) jmp 0xf28d7 jmp 0xf28d9 callq 0xf0120 jmp 0xf28e0 jmp 0xf28e2 movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x20, %rsp popq %rbp retq nop
my_init: push rbp mov rbp, rsp sub rsp, 20h lea rax, my_init_done cmp byte ptr [rax], 0 jz short loc_F275D mov [rbp+var_1], 0 jmp loc_F28E6 loc_F275D: lea rax, my_init_done mov byte ptr [rax], 1 lea rax, mysys_usage_id mov ecx, [rax] add ecx, 1 lea rax, mysys_usage_id mov [rax], ecx lea rax, my_umask mov dword ptr [rax], 1B0h lea rax, my_umask_dir mov dword ptr [rax], 1C0h lea rax, my_global_flags mov qword ptr [rax], 0 lea rdi, aUmask; "UMASK" call _getenv mov [rbp+var_10], rax cmp rax, 0 jz short loc_F27D4 mov rdi, [rbp+var_10] call atoi_octal or rax, 180h mov ecx, eax lea rax, my_umask mov [rax], ecx loc_F27D4: lea rdi, aUmaskDir; "UMASK_DIR" call _getenv mov [rbp+var_10], rax cmp rax, 0 jz short loc_F2804 mov rdi, [rbp+var_10] call atoi_octal or rax, 1C0h mov ecx, eax lea rax, my_umask_dir mov [rax], ecx loc_F2804: call init_glob_errs mov rax, cs:stdin_ptr mov rax, [rax] mov cs:instrumented_stdin, rax mov cs:qword_C82908, 0 lea rax, mysql_stdin lea rcx, instrumented_stdin mov [rax], rcx lea rax, my_progname_short lea rcx, aUnknown_0; "unknown" mov [rax], rcx lea rax, my_progname cmp qword ptr [rax], 0 jz short loc_F2882 lea rax, my_progname mov rax, [rax] mov [rbp+var_18], rax lea rax, my_progname mov rdi, [rax] call dirname_length mov rcx, [rbp+var_18] add rcx, rax lea rax, my_progname_short mov [rax], rcx loc_F2882: call my_mutex_init call my_thread_global_init cmp al, 0 jz short loc_F2896 mov [rbp+var_1], 1 jmp short loc_F28E6 loc_F2896: lea rdi, aHome; "HOME" call _getenv lea rcx, home_dir mov [rcx], rax cmp rax, 0 jz short loc_F28D5 lea rax, home_dir mov rsi, [rax] lea rdi, home_dir_buff call intern_filename mov rcx, rax lea rax, home_dir mov [rax], rcx loc_F28D5: jmp short $+2 loc_F28D7: jmp short $+2 loc_F28D9: call my_time_init jmp short $+2 loc_F28E0: jmp short $+2 loc_F28E2: mov [rbp+var_1], 0 loc_F28E6: mov al, [rbp+var_1] add rsp, 20h pop rbp retn
char my_init() { _BYTE *v1; // [rsp+8h] [rbp-18h] long long v2; // [rsp+10h] [rbp-10h] long long v3; // [rsp+10h] [rbp-10h] if ( my_init_done ) return 0; my_init_done = 1; ++mysys_usage_id; my_umask = 432; my_umask_dir = 448; my_global_flags = 0LL; v2 = getenv("UMASK"); if ( v2 ) my_umask = atoi_octal(v2) | 0x180; v3 = getenv("UMASK_DIR"); if ( v3 ) my_umask_dir = atoi_octal(v3) | 0x1C0; init_glob_errs(); instrumented_stdin = stdin; qword_C82908 = 0LL; mysql_stdin = &instrumented_stdin; my_progname_short = "unknown"; if ( my_progname ) { v1 = my_progname; my_progname_short = &v1[dirname_length(my_progname)]; } my_mutex_init(); if ( (unsigned __int8)my_thread_global_init() ) return 1; home_dir = (_BYTE *)getenv("HOME"); if ( home_dir ) home_dir = (_BYTE *)intern_filename((long long)&home_dir_buff, home_dir); my_time_init(); return 0; }
my_init: PUSH RBP MOV RBP,RSP SUB RSP,0x20 LEA RAX,[0xd828f0] CMP byte ptr [RAX],0x0 JZ 0x001f275d MOV byte ptr [RBP + -0x1],0x0 JMP 0x001f28e6 LAB_001f275d: LEA RAX,[0xd828f0] MOV byte ptr [RAX],0x1 LEA RAX,[0xd828f4] MOV ECX,dword ptr [RAX] ADD ECX,0x1 LEA RAX,[0xd828f4] MOV dword ptr [RAX],ECX LEA RAX,[0x3bfba8] MOV dword ptr [RAX],0x1b0 LEA RAX,[0x3bfbac] MOV dword ptr [RAX],0x1c0 LEA RAX,[0xd82dc8] MOV qword ptr [RAX],0x0 LEA RDI,[0x254276] CALL 0x0012a5e0 MOV qword ptr [RBP + -0x10],RAX CMP RAX,0x0 JZ 0x001f27d4 MOV RDI,qword ptr [RBP + -0x10] CALL 0x001f28f0 OR RAX,0x180 MOV ECX,EAX LEA RAX,[0x3bfba8] MOV dword ptr [RAX],ECX LAB_001f27d4: LEA RDI,[0x25427c] CALL 0x0012a5e0 MOV qword ptr [RBP + -0x10],RAX CMP RAX,0x0 JZ 0x001f2804 MOV RDI,qword ptr [RBP + -0x10] CALL 0x001f28f0 OR RAX,0x1c0 MOV ECX,EAX LEA RAX,[0x3bfbac] MOV dword ptr [RAX],ECX LAB_001f2804: CALL 0x00202cf0 MOV RAX,qword ptr [0x003bcfe8] MOV RAX,qword ptr [RAX] MOV qword ptr [0x00d82900],RAX MOV qword ptr [0x00d82908],0x0 LEA RAX,[0xd828f8] LEA RCX,[0xd82900] MOV qword ptr [RAX],RCX LEA RAX,[0xd829a8] LEA RCX,[0x254286] MOV qword ptr [RAX],RCX LEA RAX,[0xd829a0] CMP qword ptr [RAX],0x0 JZ 0x001f2882 LEA RAX,[0xd829a0] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX LEA RAX,[0xd829a0] MOV RDI,qword ptr [RAX] CALL 0x001df620 MOV RCX,qword ptr [RBP + -0x18] ADD RCX,RAX LEA RAX,[0xd829a8] MOV qword ptr [RAX],RCX LAB_001f2882: CALL 0x001f9e60 CALL 0x001f6160 CMP AL,0x0 JZ 0x001f2896 MOV byte ptr [RBP + -0x1],0x1 JMP 0x001f28e6 LAB_001f2896: LEA RDI,[0x25428e] CALL 0x0012a5e0 LEA RCX,[0xd82998] MOV qword ptr [RCX],RAX CMP RAX,0x0 JZ 0x001f28d5 LEA RAX,[0xd82998] MOV RSI,qword ptr [RAX] LEA RDI,[0xd82bb0] CALL 0x001e8cd0 MOV RCX,RAX LEA RAX,[0xd82998] MOV qword ptr [RAX],RCX LAB_001f28d5: JMP 0x001f28d7 LAB_001f28d7: JMP 0x001f28d9 LAB_001f28d9: CALL 0x001f0120 JMP 0x001f28e0 LAB_001f28e0: JMP 0x001f28e2 LAB_001f28e2: MOV byte ptr [RBP + -0x1],0x0 LAB_001f28e6: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x20 POP RBP RET
int1 my_init(void) { long lVar1; char cVar2; uint uVar3; char *pcVar4; long lVar5; int1 local_9; if (my_init_done == '\0') { my_init_done = '\x01'; mysys_usage_id = mysys_usage_id + 1; my_umask = 0x1b0; my_umask_dir = 0x1c0; my_global_flags = 0; pcVar4 = getenv("UMASK"); if (pcVar4 != (char *)0x0) { uVar3 = atoi_octal(pcVar4); my_umask = uVar3 | 0x180; } pcVar4 = getenv("UMASK_DIR"); if (pcVar4 != (char *)0x0) { uVar3 = atoi_octal(pcVar4); my_umask_dir = uVar3 | 0x1c0; } init_glob_errs(); lVar1 = my_progname; instrumented_stdin._0_8_ = *(int8 *)PTR_stdin_003bcfe8; instrumented_stdin._8_8_ = 0; mysql_stdin = instrumented_stdin; my_progname_short = "unknown"; if (my_progname != 0) { lVar5 = dirname_length(my_progname); my_progname_short = (char *)(lVar1 + lVar5); } my_mutex_init(); cVar2 = my_thread_global_init(); if (cVar2 == '\0') { home_dir = getenv("HOME"); if (home_dir != (char *)0x0) { home_dir = (char *)intern_filename(home_dir_buff,home_dir); } my_time_init(); local_9 = 0; } else { local_9 = 1; } } else { local_9 = 0; } return local_9; }
6,283
ma_write_init_default
eloqsql/storage/maria/ma_write.c
MARIA_RECORD_POS _ma_write_init_default(MARIA_HA *info, const uchar *record __attribute__((unused))) { return ((info->s->state.dellink != HA_OFFSET_ERROR && !info->append_insert_at_end) ? info->s->state.dellink : info->state->data_file_length); }
O0
c
ma_write_init_default: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax cmpq $-0x1, 0xc8(%rax) je 0x6158e movq -0x8(%rbp), %rax cmpb $0x0, 0x681(%rax) jne 0x6158e movq -0x8(%rbp), %rax movq (%rax), %rax movq 0xc8(%rax), %rax movq %rax, -0x18(%rbp) jmp 0x6159e movq -0x8(%rbp), %rax movq 0x20(%rax), %rax movq 0x28(%rax), %rax movq %rax, -0x18(%rbp) movq -0x18(%rbp), %rax popq %rbp retq nopw %cs:(%rax,%rax)
_ma_write_init_default: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rax, [rbp+var_8] mov rax, [rax] cmp qword ptr [rax+0C8h], 0FFFFFFFFFFFFFFFFh jz short loc_6158E mov rax, [rbp+var_8] cmp byte ptr [rax+681h], 0 jnz short loc_6158E mov rax, [rbp+var_8] mov rax, [rax] mov rax, [rax+0C8h] mov [rbp+var_18], rax jmp short loc_6159E loc_6158E: mov rax, [rbp+var_8] mov rax, [rax+20h] mov rax, [rax+28h] mov [rbp+var_18], rax loc_6159E: mov rax, [rbp+var_18] pop rbp retn
long long ma_write_init_default(long long a1) { if ( *(_QWORD *)(*(_QWORD *)a1 + 200LL) == -1LL || *(_BYTE *)(a1 + 1665) ) return *(_QWORD *)(*(_QWORD *)(a1 + 32) + 40LL); else return *(_QWORD *)(*(_QWORD *)a1 + 200LL); }
_ma_write_init_default: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] CMP qword ptr [RAX + 0xc8],-0x1 JZ 0x0016158e MOV RAX,qword ptr [RBP + -0x8] CMP byte ptr [RAX + 0x681],0x0 JNZ 0x0016158e MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV RAX,qword ptr [RAX + 0xc8] MOV qword ptr [RBP + -0x18],RAX JMP 0x0016159e LAB_0016158e: MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x18],RAX LAB_0016159e: MOV RAX,qword ptr [RBP + -0x18] POP RBP RET
int8 _ma_write_init_default(long *param_1) { int8 local_20; if ((*(long *)(*param_1 + 200) == -1) || (*(char *)((long)param_1 + 0x681) != '\0')) { local_20 = *(int8 *)(param_1[4] + 0x28); } else { local_20 = *(int8 *)(*param_1 + 200); } return local_20; }
6,284
minja::UnaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const
monkey531[P]llama/common/minja.hpp
Value do_evaluate(const std::shared_ptr<Context> & context) const override { if (!expr) throw std::runtime_error("UnaryOpExpr.expr is null"); auto e = expr->evaluate(context); switch (op) { case Op::Plus: return e; case Op::Minus: return -e; case Op::LogicalNot: return !e.to_bool(); case Op::Expansion: case Op::ExpansionDict: throw std::runtime_error("Expansion operator is only supported in function calls and collections"); } throw std::runtime_error("Unknown unary operator"); }
O1
cpp
minja::UnaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x58, %rsp movq %rsi, %r14 movq 0x20(%rsi), %rsi testq %rsi, %rsi je 0x6d474 movq %rdi, %rbx leaq 0x8(%rsp), %rdi callq 0x6d5d0 movl 0x30(%r14), %eax cmpq $0x4, %rax ja 0x6d4c4 leaq 0x49623(%rip), %rcx # 0xb694c movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax xorps %xmm0, %xmm0 movups %xmm0, (%rbx) xorl %r12d, %r12d movq %r12, 0x18(%rbx) leaq 0x48(%rsp), %r15 movups -0x30(%r15), %xmm0 movq %r12, -0x28(%r15) movups %xmm0, 0x10(%rbx) movq %r12, -0x30(%r15) movq %r12, 0x28(%rbx) movups -0x20(%r15), %xmm0 movq %r12, -0x18(%r15) movups %xmm0, 0x20(%rbx) movq %r12, -0x20(%r15) movq %r12, 0x38(%rbx) movups -0x10(%r15), %xmm0 movq %r12, -0x8(%r15) movups %xmm0, 0x30(%rbx) movq %r12, -0x10(%r15) leaq 0x40(%rbx), %r14 movups (%r15), %xmm0 movups %xmm0, 0x40(%rbx) movq %r15, %rdi xorl %esi, %esi callq 0x6d806 movb $0x0, (%r15) movq %r12, 0x8(%r15) jmp 0x6d3d0 leaq 0x8(%rsp), %rdi callq 0x3d7a0 xorb $0x1, %al leaq 0x40(%rbx), %r14 xorps %xmm0, %xmm0 movups %xmm0, 0x40(%rbx) movups %xmm0, 0x30(%rbx) movups %xmm0, 0x20(%rbx) movups %xmm0, 0x10(%rbx) movups %xmm0, (%rbx) movzbl %al, %esi movq %r14, %rdi callq 0x3a47e movq %r14, %rdi movl $0x1, %esi callq 0x6d806 jmp 0x6d3ec leaq 0x8(%rsp), %rsi movq %rbx, %rdi callq 0x6d74e leaq 0x48(%rsp), %r14 movq %r14, %rdi xorl %esi, %esi callq 0x6d806 movq %r14, %rdi callq 0x2968c movq -0x8(%r14), %rdi testq %rdi, %rdi je 0x6d411 callq 0x34304 movq 0x30(%rsp), %rdi testq %rdi, %rdi je 0x6d420 callq 0x34304 movq 0x20(%rsp), %rdi testq %rdi, %rdi je 0x6d42f callq 0x34304 movq 0x10(%rsp), %rdi testq %rdi, %rdi je 0x6d465 movq 0x7db50(%rip), %rax # 0xeaf90 cmpb $0x0, (%rax) je 0x6d450 movl 0xc(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0xc(%rdi) jmp 0x6d45a movl $0xffffffff, %eax # imm = 0xFFFFFFFF lock xaddl %eax, 0xc(%rdi) cmpl $0x1, %eax jne 0x6d465 movq (%rdi), %rax callq *0x18(%rax) movq %rbx, %rax addq $0x58, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movl $0x10, %edi callq 0x193b0 movq %rax, %r14 leaq 0x4aecf(%rip), %rsi # 0xb8357 movq %rax, %rdi callq 0x192c0 movq 0x7db59(%rip), %rsi # 0xeaff0 movq 0x7daca(%rip), %rdx # 0xeaf68 movq %r14, %rdi callq 0x19d90 movl $0x10, %edi callq 0x193b0 movq %rax, %r14 leaq 0x4aeb6(%rip), %rsi # 0xb8370 movq %rax, %rdi callq 0x192c0 jmp 0x6d4e0 movl $0x10, %edi callq 0x193b0 movq %rax, %r14 leaq 0x4aedf(%rip), %rsi # 0xb83b7 movq %rax, %rdi callq 0x192c0 movq 0x7db09(%rip), %rsi # 0xeaff0 movq 0x7da7a(%rip), %rdx # 0xeaf68 movq %r14, %rdi callq 0x19d90 jmp 0x6d4fa jmp 0x6d514 movq %rax, %rbx movq %r14, %rdi callq 0x19560 jmp 0x6d517 movq %rax, %rbx movq %r14, %rdi callq 0x19560 jmp 0x6d521 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x32700 movq %rbx, %rdi callq 0x19e00 nop
_ZNK5minja11UnaryOpExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE: push r15 push r14 push r12 push rbx sub rsp, 58h mov r14, rsi mov rsi, [rsi+20h] test rsi, rsi jz loc_6D474 mov rbx, rdi lea rdi, [rsp+78h+var_70] call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) mov eax, [r14+30h] cmp rax, 4; switch 5 cases ja def_6D330; jumptable 000000000006D330 default case lea rcx, jpt_6D330 movsxd rax, ds:(jpt_6D330 - 0B694Ch)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_6D332: xorps xmm0, xmm0; jumptable 000000000006D330 case 0 movups xmmword ptr [rbx], xmm0 xor r12d, r12d mov [rbx+18h], r12 lea r15, [rsp+78h+var_30] movups xmm0, xmmword ptr [r15-30h] mov [r15-28h], r12 movups xmmword ptr [rbx+10h], xmm0 mov [r15-30h], r12 mov [rbx+28h], r12 movups xmm0, xmmword ptr [r15-20h] mov [r15-18h], r12 movups xmmword ptr [rbx+20h], xmm0 mov [r15-20h], r12 mov [rbx+38h], r12 movups xmm0, xmmword ptr [r15-10h] mov [r15-8], r12 movups xmmword ptr [rbx+30h], xmm0 mov [r15-10h], r12 lea r14, [rbx+40h] movups xmm0, xmmword ptr [r15] movups xmmword ptr [rbx+40h], xmm0 mov rdi, r15 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 [r15], 0 mov [r15+8], r12 jmp short loc_6D3D0 loc_6D39F: lea rdi, [rsp+78h+var_70]; jumptable 000000000006D330 case 2 call _ZNK5minja5Value7to_boolEv; minja::Value::to_bool(void) xor al, 1 lea r14, [rbx+40h] xorps xmm0, xmm0 movups xmmword ptr [rbx+40h], xmm0 movups xmmword ptr [rbx+30h], xmm0 movups xmmword ptr [rbx+20h], xmm0 movups xmmword ptr [rbx+10h], xmm0 movups xmmword ptr [rbx], xmm0 movzx esi, al mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail20external_constructorILNS1_7value_tE4EE9constructINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES8_IhSaIhEEvEEEEvRT_NSJ_9boolean_tE; nlohmann::json_abi_v3_11_3::detail::external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>::construct<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::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::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>::boolean_t) loc_6D3D0: mov rdi, r14 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) jmp short loc_6D3EC loc_6D3DF: lea rsi, [rsp+78h+var_70]; jumptable 000000000006D330 case 1 mov rdi, rbx call _ZNK5minja5ValuengEv; minja::Value::operator-(void) loc_6D3EC: lea r14, [rsp+78h+var_30] 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 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() mov rdi, [r14-8] test rdi, rdi jz short loc_6D411 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_6D411: mov rdi, [rsp+78h+var_48] test rdi, rdi jz short loc_6D420 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_6D420: mov rdi, [rsp+78h+var_58] test rdi, rdi jz short loc_6D42F call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_6D42F: mov rdi, [rsp+78h+var_68] test rdi, rdi jz short loc_6D465 mov rax, cs:__libc_single_threaded_ptr cmp byte ptr [rax], 0 jz short loc_6D450 mov eax, [rdi+0Ch] lea ecx, [rax-1] mov [rdi+0Ch], ecx jmp short loc_6D45A loc_6D450: mov eax, 0FFFFFFFFh lock xadd [rdi+0Ch], eax loc_6D45A: cmp eax, 1 jnz short loc_6D465 mov rax, [rdi] call qword ptr [rax+18h] loc_6D465: mov rax, rbx add rsp, 58h pop rbx pop r12 pop r14 pop r15 retn loc_6D474: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aUnaryopexprExp; "UnaryOpExpr.expr is null" 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 loc_6D4A6: mov edi, 10h; jumptable 000000000006D330 cases 3,4 call ___cxa_allocate_exception mov r14, rax lea rsi, aExpansionOpera; "Expansion operator is only supported in"... mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) jmp short loc_6D4E0 def_6D330: mov edi, 10h; jumptable 000000000006D330 default case call ___cxa_allocate_exception mov r14, rax lea rsi, aUnknownUnaryOp; "Unknown unary operator" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) loc_6D4E0: mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r14; void * call ___cxa_throw jmp short loc_6D4FA jmp short loc_6D514 loc_6D4FA: mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception jmp short loc_6D517 mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception jmp short loc_6D521 loc_6D514: mov rbx, rax loc_6D517: lea rdi, [rsp+78h+var_70]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() loc_6D521: mov rdi, rbx call __Unwind_Resume
do_evaluate: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x58 MOV R14,RSI MOV RSI,qword ptr [RSI + 0x20] TEST RSI,RSI JZ 0x0016d474 MOV RBX,RDI LEA RDI,[RSP + 0x8] CALL 0x0016d5d0 MOV EAX,dword ptr [R14 + 0x30] CMP RAX,0x4 JA 0x0016d4c4 LEA RCX,[0x1b694c] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_0: XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 XOR R12D,R12D MOV qword ptr [RBX + 0x18],R12 LEA R15,[RSP + 0x48] MOVUPS XMM0,xmmword ptr [R15 + -0x30] MOV qword ptr [R15 + -0x28],R12 MOVUPS xmmword ptr [RBX + 0x10],XMM0 MOV qword ptr [R15 + -0x30],R12 MOV qword ptr [RBX + 0x28],R12 MOVUPS XMM0,xmmword ptr [R15 + -0x20] MOV qword ptr [R15 + -0x18],R12 MOVUPS xmmword ptr [RBX + 0x20],XMM0 MOV qword ptr [R15 + -0x20],R12 MOV qword ptr [RBX + 0x38],R12 MOVUPS XMM0,xmmword ptr [R15 + -0x10] MOV qword ptr [R15 + -0x8],R12 MOVUPS xmmword ptr [RBX + 0x30],XMM0 MOV qword ptr [R15 + -0x10],R12 LEA R14,[RBX + 0x40] MOVUPS XMM0,xmmword ptr [R15] MOVUPS xmmword ptr [RBX + 0x40],XMM0 MOV RDI,R15 XOR ESI,ESI CALL 0x0016d806 MOV byte ptr [R15],0x0 MOV qword ptr [R15 + 0x8],R12 JMP 0x0016d3d0 caseD_2: LEA RDI,[RSP + 0x8] CALL 0x0013d7a0 XOR AL,0x1 LEA R14,[RBX + 0x40] XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX + 0x40],XMM0 MOVUPS xmmword ptr [RBX + 0x30],XMM0 MOVUPS xmmword ptr [RBX + 0x20],XMM0 MOVUPS xmmword ptr [RBX + 0x10],XMM0 MOVUPS xmmword ptr [RBX],XMM0 MOVZX ESI,AL MOV RDI,R14 CALL 0x0013a47e LAB_0016d3d0: MOV RDI,R14 MOV ESI,0x1 CALL 0x0016d806 JMP 0x0016d3ec caseD_1: LEA RSI,[RSP + 0x8] MOV RDI,RBX CALL 0x0016d74e LAB_0016d3ec: LEA R14,[RSP + 0x48] MOV RDI,R14 XOR ESI,ESI CALL 0x0016d806 MOV RDI,R14 CALL 0x0012968c MOV RDI,qword ptr [R14 + -0x8] TEST RDI,RDI JZ 0x0016d411 CALL 0x00134304 LAB_0016d411: MOV RDI,qword ptr [RSP + 0x30] TEST RDI,RDI JZ 0x0016d420 CALL 0x00134304 LAB_0016d420: MOV RDI,qword ptr [RSP + 0x20] TEST RDI,RDI JZ 0x0016d42f CALL 0x00134304 LAB_0016d42f: MOV RDI,qword ptr [RSP + 0x10] TEST RDI,RDI JZ 0x0016d465 MOV RAX,qword ptr [0x001eaf90] CMP byte ptr [RAX],0x0 JZ 0x0016d450 MOV EAX,dword ptr [RDI + 0xc] LEA ECX,[RAX + -0x1] MOV dword ptr [RDI + 0xc],ECX JMP 0x0016d45a LAB_0016d450: MOV EAX,0xffffffff XADD.LOCK dword ptr [RDI + 0xc],EAX LAB_0016d45a: CMP EAX,0x1 JNZ 0x0016d465 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] LAB_0016d465: MOV RAX,RBX ADD RSP,0x58 POP RBX POP R12 POP R14 POP R15 RET LAB_0016d474: MOV EDI,0x10 CALL 0x001193b0 MOV R14,RAX LAB_0016d481: LEA RSI,[0x1b8357] MOV RDI,RAX CALL 0x001192c0 LAB_0016d490: MOV RSI,qword ptr [0x001eaff0] MOV RDX,qword ptr [0x001eaf68] MOV RDI,R14 CALL 0x00119d90 caseD_3: MOV EDI,0x10 CALL 0x001193b0 MOV R14,RAX LAB_0016d4b3: LEA RSI,[0x1b8370] MOV RDI,RAX CALL 0x001192c0 LAB_0016d4c2: JMP 0x0016d4e0 default: MOV EDI,0x10 CALL 0x001193b0 MOV R14,RAX LAB_0016d4d1: LEA RSI,[0x1b83b7] MOV RDI,RAX CALL 0x001192c0 LAB_0016d4e0: MOV RSI,qword ptr [0x001eaff0] MOV RDX,qword ptr [0x001eaf68] MOV RDI,R14 CALL 0x00119d90
/* minja::UnaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */ UnaryOpExpr * __thiscall minja::UnaryOpExpr::do_evaluate(UnaryOpExpr *this,shared_ptr *param_1) { int *piVar1; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Var2; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Var3; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Var4; byte bVar5; int iVar6; runtime_error *prVar7; Expression local_70 [8]; long *local_68; int8 local_60; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_58; int8 local_50; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_48; int8 local_40; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_38; data local_30; int7 uStack_2f; int8 uStack_28; if (*(shared_ptr **)(param_1 + 0x20) == (shared_ptr *)0x0) { prVar7 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0016d481 to 0016d48f has its CatchHandler @ 0016d507 */ std::runtime_error::runtime_error(prVar7,"UnaryOpExpr.expr is null"); /* WARNING: Subroutine does not return */ __cxa_throw(prVar7,PTR_typeinfo_001eaff0,PTR__runtime_error_001eaf68); } Expression::evaluate(local_70,*(shared_ptr **)(param_1 + 0x20)); p_Var4 = p_Stack_38; p_Var3 = p_Stack_48; p_Var2 = p_Stack_58; switch(*(int4 *)(param_1 + 0x30)) { case 0: *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x18) = 0; p_Stack_58 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0; *(int8 *)(this + 0x10) = local_60; *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x18) = p_Var2; local_60 = 0; *(int8 *)(this + 0x28) = 0; p_Stack_48 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0; *(int8 *)(this + 0x20) = local_50; *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28) = p_Var3; local_50 = 0; *(int8 *)(this + 0x38) = 0; p_Stack_38 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0; *(int8 *)(this + 0x30) = local_40; *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x38) = p_Var4; local_40 = 0; *(ulong *)(this + 0x40) = CONCAT71(uStack_2f,local_30); *(int8 *)(this + 0x48) = uStack_28; 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> ::assert_invariant(SUB81(&local_30,0)); local_30 = (data)0x0; uStack_28 = 0; break; case 1: /* try { // try from 0016d3df to 0016d3eb has its CatchHandler @ 0016d514 */ minja::Value::operator-((Value *)this); goto LAB_0016d3ec; case 2: /* try { // try from 0016d39f to 0016d3a8 has its CatchHandler @ 0016d4f8 */ bVar5 = minja::Value::to_bool((Value *)local_70); *(int8 *)(this + 0x40) = 0; *(int8 *)(this + 0x48) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)this = 0; *(int8 *)(this + 8) = 0; nlohmann::json_abi_v3_11_3::detail:: external_constructor<(nlohmann::json_abi_v3_11_3::detail::value_t)4>:: construct<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 + 0x40,bVar5 ^ 1); break; case 3: case 4: prVar7 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0016d4b3 to 0016d4c1 has its CatchHandler @ 0016d4fa */ std::runtime_error::runtime_error (prVar7,"Expansion operator is only supported in function calls and collections"); goto LAB_0016d4e0; default: prVar7 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0016d4d1 to 0016d4df has its CatchHandler @ 0016d4f6 */ std::runtime_error::runtime_error(prVar7,"Unknown unary operator"); LAB_0016d4e0: /* try { // try from 0016d4e0 to 0016d4f5 has its CatchHandler @ 0016d514 */ /* WARNING: Subroutine does not return */ __cxa_throw(prVar7,PTR_typeinfo_001eaff0,PTR__runtime_error_001eaf68); } 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> ::assert_invariant((bool)((char)this + '@')); LAB_0016d3ec: 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> ::assert_invariant(SUB81(&local_30,0)); 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_30); if (p_Stack_38 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_38); } if (p_Stack_48 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_48); } if (p_Stack_58 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_58); } if (local_68 != (long *)0x0) { if (*PTR___libc_single_threaded_001eaf90 == '\0') { LOCK(); piVar1 = (int *)((long)local_68 + 0xc); iVar6 = *piVar1; *piVar1 = *piVar1 + -1; UNLOCK(); } else { iVar6 = *(int *)((long)local_68 + 0xc); *(int *)((long)local_68 + 0xc) = iVar6 + -1; } if (iVar6 == 1) { (**(code **)(*local_68 + 0x18))(); } } return this; }
6,285
minja::UnaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const
monkey531[P]llama/common/minja.hpp
Value do_evaluate(const std::shared_ptr<Context> & context) const override { if (!expr) throw std::runtime_error("UnaryOpExpr.expr is null"); auto e = expr->evaluate(context); switch (op) { case Op::Plus: return e; case Op::Minus: return -e; case Op::LogicalNot: return !e.to_bool(); case Op::Expansion: case Op::ExpansionDict: throw std::runtime_error("Expansion operator is only supported in function calls and collections"); } throw std::runtime_error("Unknown unary operator"); }
O2
cpp
minja::UnaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const: pushq %r14 pushq %rbx subq $0x58, %rsp movq %rsi, %r14 movq 0x20(%rsi), %rsi testq %rsi, %rsi je 0x60eae movq %rdi, %rbx leaq 0x8(%rsp), %rdi callq 0x60fb2 movl 0x30(%r14), %eax cmpq $0x4, %rax ja 0x60efa leaq 0x36ad5(%rip), %rcx # 0x9792c movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax leaq 0x8(%rsp), %rsi movq %rbx, %rdi callq 0x3b9bc jmp 0x60e99 leaq 0x8(%rsp), %rdi callq 0x3c48a xorb $0x1, %al leaq 0x7(%rsp), %rsi movb %al, (%rsi) movq %rbx, %rdi callq 0x42afa jmp 0x60e99 leaq 0x8(%rsp), %rsi movq %rbx, %rdi callq 0x610dc leaq 0x8(%rsp), %rdi callq 0x328fa movq %rbx, %rax addq $0x58, %rsp popq %rbx popq %r14 retq pushq $0x10 popq %rdi callq 0x213f0 movq %rax, %r14 leaq 0x38477(%rip), %rsi # 0x99337 movq %rax, %rdi callq 0x212d0 movq 0x79121(%rip), %rsi # 0xd9ff0 movq 0x79092(%rip), %rdx # 0xd9f68 movq %r14, %rdi callq 0x21de0 pushq $0x10 popq %rdi callq 0x213f0 movq %rax, %r14 leaq 0x38460(%rip), %rsi # 0x99350 movq %rax, %rdi callq 0x212d0 jmp 0x60f14 pushq $0x10 popq %rdi callq 0x213f0 movq %rax, %r14 leaq 0x3848b(%rip), %rsi # 0x99397 movq %rax, %rdi callq 0x212d0 movq 0x790d5(%rip), %rsi # 0xd9ff0 movq 0x79046(%rip), %rdx # 0xd9f68 movq %r14, %rdi callq 0x21de0 jmp 0x60f2e jmp 0x60f48 movq %rax, %rbx movq %r14, %rdi callq 0x215c0 jmp 0x60f4b movq %rax, %rbx movq %r14, %rdi callq 0x215c0 jmp 0x60f55 movq %rax, %rbx leaq 0x8(%rsp), %rdi callq 0x328fa movq %rbx, %rdi callq 0x21e50 nop
_ZNK5minja11UnaryOpExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE: push r14 push rbx sub rsp, 58h mov r14, rsi mov rsi, [rsi+20h] test rsi, rsi jz short loc_60EAE mov rbx, rdi lea rdi, [rsp+68h+var_60] call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) mov eax, [r14+30h] cmp rax, 4; switch 5 cases ja def_60E5E; jumptable 0000000000060E5E default case lea rcx, jpt_60E5E movsxd rax, ds:(jpt_60E5E - 9792Ch)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_60E60: lea rsi, [rsp+68h+var_60]; jumptable 0000000000060E5E case 0 mov rdi, rbx call _ZN5minja5ValueC2EOS0_; minja::Value::Value(minja::Value&&) jmp short loc_60E99 loc_60E6F: lea rdi, [rsp+68h+var_60]; jumptable 0000000000060E5E case 2 call _ZNK5minja5Value7to_boolEv; minja::Value::to_bool(void) xor al, 1 lea rsi, [rsp+68h+var_61]; bool * mov [rsi], al mov rdi, rbx; this call _ZN5minja5ValueC2ERKb; minja::Value::Value(bool const&) jmp short loc_60E99 loc_60E8C: lea rsi, [rsp+68h+var_60]; jumptable 0000000000060E5E case 1 mov rdi, rbx; this call _ZNK5minja5ValuengEv; minja::Value::operator-(void) loc_60E99: lea rdi, [rsp+68h+var_60]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() mov rax, rbx add rsp, 58h pop rbx pop r14 retn loc_60EAE: push 10h pop rdi; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aUnaryopexprExp; "UnaryOpExpr.expr is null" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, r14; void * call ___cxa_throw loc_60EDE: push 10h; jumptable 0000000000060E5E cases 3,4 pop rdi; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aExpansionOpera; "Expansion operator is only supported in"... mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) jmp short loc_60F14 def_60E5E: push 10h; jumptable 0000000000060E5E default case pop rdi; thrown_size call ___cxa_allocate_exception mov r14, rax lea rsi, aUnknownUnaryOp; "Unknown unary operator" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) loc_60F14: mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *) mov rdi, r14; void * call ___cxa_throw jmp short loc_60F2E jmp short loc_60F48 loc_60F2E: mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception jmp short loc_60F4B mov rbx, rax mov rdi, r14; void * call ___cxa_free_exception jmp short loc_60F55 loc_60F48: mov rbx, rax loc_60F4B: lea rdi, [rsp+68h+var_60]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() loc_60F55: mov rdi, rbx call __Unwind_Resume
minja::Value * minja::UnaryOpExpr::do_evaluate( minja::Value *this, long long a2, int a3, int a4, int a5, int a6) { long long v7; // rsi std::runtime_error *exception; // r14 std::runtime_error *v10; // r14 bool v11; // [rsp+7h] [rbp-61h] BYREF _BYTE v12[96]; // [rsp+8h] [rbp-60h] BYREF v7 = *(_QWORD *)(a2 + 32); if ( !v7 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "UnaryOpExpr.expr is null"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } minja::Expression::evaluate((unsigned int)v12, v7, a3, a4, a5, a6); switch ( *(_DWORD *)(a2 + 48) ) { case 0: minja::Value::Value((long long)this, (long long)v12); goto LABEL_6; case 1: minja::Value::operator-(this); goto LABEL_6; case 2: v11 = minja::Value::to_bool((minja::Value *)v12) ^ 1; minja::Value::Value(this, &v11); LABEL_6: minja::Value::~Value((minja::Value *)v12); return this; case 3: case 4: v10 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(v10, "Expansion operator is only supported in function calls and collections"); break; default: v10 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(v10, "Unknown unary operator"); break; } __cxa_throw( v10, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); }
do_evaluate: PUSH R14 PUSH RBX SUB RSP,0x58 MOV R14,RSI MOV RSI,qword ptr [RSI + 0x20] TEST RSI,RSI JZ 0x00160eae MOV RBX,RDI LEA RDI,[RSP + 0x8] CALL 0x00160fb2 MOV EAX,dword ptr [R14 + 0x30] CMP RAX,0x4 JA 0x00160efa LEA RCX,[0x19792c] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_0: LEA RSI,[RSP + 0x8] MOV RDI,RBX CALL 0x0013b9bc JMP 0x00160e99 caseD_2: LEA RDI,[RSP + 0x8] CALL 0x0013c48a XOR AL,0x1 LEA RSI,[RSP + 0x7] MOV byte ptr [RSI],AL MOV RDI,RBX CALL 0x00142afa JMP 0x00160e99 caseD_1: LEA RSI,[RSP + 0x8] MOV RDI,RBX CALL 0x001610dc LAB_00160e99: LEA RDI,[RSP + 0x8] CALL 0x001328fa MOV RAX,RBX ADD RSP,0x58 POP RBX POP R14 RET LAB_00160eae: PUSH 0x10 POP RDI CALL 0x001213f0 MOV R14,RAX LAB_00160eb9: LEA RSI,[0x199337] MOV RDI,RAX CALL 0x001212d0 LAB_00160ec8: MOV RSI,qword ptr [0x001d9ff0] MOV RDX,qword ptr [0x001d9f68] MOV RDI,R14 CALL 0x00121de0 caseD_3: PUSH 0x10 POP RDI CALL 0x001213f0 MOV R14,RAX LAB_00160ee9: LEA RSI,[0x199350] MOV RDI,RAX CALL 0x001212d0 LAB_00160ef8: JMP 0x00160f14 default: PUSH 0x10 POP RDI CALL 0x001213f0 MOV R14,RAX LAB_00160f05: LEA RSI,[0x199397] MOV RDI,RAX CALL 0x001212d0 LAB_00160f14: MOV RSI,qword ptr [0x001d9ff0] MOV RDX,qword ptr [0x001d9f68] MOV RDI,R14 CALL 0x00121de0
/* minja::UnaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */ UnaryOpExpr * __thiscall minja::UnaryOpExpr::do_evaluate(UnaryOpExpr *this,shared_ptr *param_1) { runtime_error *prVar1; bool local_61; Expression local_60 [80]; if (*(shared_ptr **)(param_1 + 0x20) == (shared_ptr *)0x0) { prVar1 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00160eb9 to 00160ec7 has its CatchHandler @ 00160f3b */ std::runtime_error::runtime_error(prVar1,"UnaryOpExpr.expr is null"); /* WARNING: Subroutine does not return */ __cxa_throw(prVar1,PTR_typeinfo_001d9ff0,PTR__runtime_error_001d9f68); } Expression::evaluate(local_60,*(shared_ptr **)(param_1 + 0x20)); switch(*(int4 *)(param_1 + 0x30)) { case 0: Value::Value((Value *)this,(Value *)local_60); break; case 1: /* try { // try from 00160e8c to 00160e98 has its CatchHandler @ 00160f48 */ Value::operator-((Value *)this); break; case 2: /* try { // try from 00160e6f to 00160e78 has its CatchHandler @ 00160f2c */ local_61 = (bool)Value::to_bool((Value *)local_60); local_61 = (bool)(local_61 ^ 1); Value::Value((Value *)this,&local_61); break; case 3: case 4: prVar1 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00160ee9 to 00160ef7 has its CatchHandler @ 00160f2e */ std::runtime_error::runtime_error (prVar1,"Expansion operator is only supported in function calls and collections"); goto LAB_00160f14; default: prVar1 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 00160f05 to 00160f13 has its CatchHandler @ 00160f2a */ std::runtime_error::runtime_error(prVar1,"Unknown unary operator"); LAB_00160f14: /* try { // try from 00160f14 to 00160f29 has its CatchHandler @ 00160f48 */ /* WARNING: Subroutine does not return */ __cxa_throw(prVar1,PTR_typeinfo_001d9ff0,PTR__runtime_error_001d9f68); } Value::~Value((Value *)local_60); return this; }
6,286
my_char_weight_put
eloqsql/strings/ctype-uca.c
static my_bool my_char_weight_put(MY_UCA_WEIGHT_LEVEL *dst, uint16 *to, size_t to_length, size_t *nweights, my_wc_t *str, size_t len) { size_t count; int rc= FALSE; if (!to_length) { *nweights= 0; return len > 0; } to_length--; /* Without trailing zero */ for (count= 0; len; ) { size_t chlen; const uint16 *from= NULL; uint16 implicit_weights[3]; for (chlen= len; chlen > 1; chlen--) { const MY_CONTRACTION *cnt; if (chlen <= MY_UCA_MAX_CONTRACTION && (cnt= my_uca_contraction_find(&dst->contractions, str, chlen))) { from= cnt->weight; str+= chlen; len-= chlen; break; } } if (!from) { from= my_char_weight_addr(dst, *str); if (!from) { from= implicit_weights; my_uca_implicit_weight_put(implicit_weights, *str, dst->levelno); } str++; len--; } for ( ; from && *from && count < to_length; ) { *to++= *from++; count++; } if (count == to_length && from && * from) rc= TRUE; /* All weights did not fit */ } *to= 0; *nweights= count; return rc; }
O0
c
my_char_weight_put: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) movl $0x0, -0x44(%rbp) cmpq $0x0, -0x20(%rbp) jne 0x513fe movq -0x28(%rbp), %rax movq $0x0, (%rax) cmpq $0x0, -0x38(%rbp) seta %al andb $0x1, %al movzbl %al, %eax movb %al, -0x1(%rbp) jmp 0x5159d movq -0x20(%rbp), %rax addq $-0x1, %rax movq %rax, -0x20(%rbp) movq $0x0, -0x40(%rbp) cmpq $0x0, -0x38(%rbp) je 0x51583 movq $0x0, -0x58(%rbp) movq -0x38(%rbp), %rax movq %rax, -0x50(%rbp) cmpq $0x1, -0x50(%rbp) jbe 0x51497 cmpq $0x6, -0x50(%rbp) ja 0x51487 movq -0x10(%rbp), %rdi addq $0x18, %rdi movq -0x30(%rbp), %rsi movq -0x50(%rbp), %rdx callq 0x51850 movq %rax, -0x68(%rbp) cmpq $0x0, %rax je 0x51487 movq -0x68(%rbp), %rax addq $0x30, %rax movq %rax, -0x58(%rbp) movq -0x50(%rbp), %rax shlq $0x3, %rax addq -0x30(%rbp), %rax movq %rax, -0x30(%rbp) movq -0x50(%rbp), %rcx movq -0x38(%rbp), %rax subq %rcx, %rax movq %rax, -0x38(%rbp) jmp 0x51497 jmp 0x51489 movq -0x50(%rbp), %rax addq $-0x1, %rax movq %rax, -0x50(%rbp) jmp 0x5142d cmpq $0x0, -0x58(%rbp) jne 0x514f2 movq -0x10(%rbp), %rdi movq -0x30(%rbp), %rax movq (%rax), %rax movl %eax, %esi callq 0x4eb70 movq %rax, -0x58(%rbp) cmpq $0x0, -0x58(%rbp) jne 0x514da leaq -0x5e(%rbp), %rax movq %rax, -0x58(%rbp) leaq -0x5e(%rbp), %rdi movq -0x30(%rbp), %rax movq (%rax), %rsi movq -0x10(%rbp), %rax movl 0x30(%rax), %edx callq 0x51170 movq -0x30(%rbp), %rax addq $0x8, %rax movq %rax, -0x30(%rbp) movq -0x38(%rbp), %rax addq $-0x1, %rax movq %rax, -0x38(%rbp) jmp 0x514f4 xorl %eax, %eax cmpq $0x0, -0x58(%rbp) movb %al, -0x69(%rbp) je 0x5151f movq -0x58(%rbp), %rax movzwl (%rax), %ecx xorl %eax, %eax cmpl $0x0, %ecx movb %al, -0x69(%rbp) je 0x5151f movq -0x40(%rbp), %rax cmpq -0x20(%rbp), %rax setb %al movb %al, -0x69(%rbp) movb -0x69(%rbp), %al testb $0x1, %al jne 0x51528 jmp 0x5155a movq -0x58(%rbp), %rax movq %rax, %rcx addq $0x2, %rcx movq %rcx, -0x58(%rbp) movw (%rax), %cx movq -0x18(%rbp), %rax movq %rax, %rdx addq $0x2, %rdx movq %rdx, -0x18(%rbp) movw %cx, (%rax) movq -0x40(%rbp), %rax addq $0x1, %rax movq %rax, -0x40(%rbp) jmp 0x514f4 movq -0x40(%rbp), %rax cmpq -0x20(%rbp), %rax jne 0x5157e cmpq $0x0, -0x58(%rbp) je 0x5157e movq -0x58(%rbp), %rax movzwl (%rax), %eax cmpl $0x0, %eax je 0x5157e movl $0x1, -0x44(%rbp) jmp 0x51412 movq -0x18(%rbp), %rax movw $0x0, (%rax) movq -0x40(%rbp), %rcx movq -0x28(%rbp), %rax movq %rcx, (%rax) movl -0x44(%rbp), %eax movb %al, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x70, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
my_char_weight_put: 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_28], rcx mov [rbp+var_30], r8 mov [rbp+var_38], r9 mov [rbp+var_44], 0 cmp [rbp+var_20], 0 jnz short loc_513FE mov rax, [rbp+var_28] mov qword ptr [rax], 0 cmp [rbp+var_38], 0 setnbe al and al, 1 movzx eax, al mov [rbp+var_1], al jmp loc_5159D loc_513FE: mov rax, [rbp+var_20] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_20], rax mov [rbp+var_40], 0 loc_51412: cmp [rbp+var_38], 0 jz loc_51583 mov [rbp+var_58], 0 mov rax, [rbp+var_38] mov [rbp+var_50], rax loc_5142D: cmp [rbp+var_50], 1 jbe short loc_51497 cmp [rbp+var_50], 6 ja short loc_51487 mov rdi, [rbp+var_10] add rdi, 18h mov rsi, [rbp+var_30] mov rdx, [rbp+var_50] call my_uca_contraction_find mov [rbp+var_68], rax cmp rax, 0 jz short loc_51487 mov rax, [rbp+var_68] add rax, 30h ; '0' mov [rbp+var_58], rax mov rax, [rbp+var_50] shl rax, 3 add rax, [rbp+var_30] mov [rbp+var_30], rax mov rcx, [rbp+var_50] mov rax, [rbp+var_38] sub rax, rcx mov [rbp+var_38], rax jmp short loc_51497 loc_51487: jmp short $+2 loc_51489: mov rax, [rbp+var_50] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_50], rax jmp short loc_5142D loc_51497: cmp [rbp+var_58], 0 jnz short loc_514F2 mov rdi, [rbp+var_10] mov rax, [rbp+var_30] mov rax, [rax] mov esi, eax call my_char_weight_addr mov [rbp+var_58], rax cmp [rbp+var_58], 0 jnz short loc_514DA lea rax, [rbp+var_5E] mov [rbp+var_58], rax lea rdi, [rbp+var_5E] mov rax, [rbp+var_30] mov rsi, [rax] mov rax, [rbp+var_10] mov edx, [rax+30h] call my_uca_implicit_weight_put loc_514DA: mov rax, [rbp+var_30] add rax, 8 mov [rbp+var_30], rax mov rax, [rbp+var_38] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+var_38], rax loc_514F2: jmp short $+2 loc_514F4: xor eax, eax cmp [rbp+var_58], 0 mov [rbp+var_69], al jz short loc_5151F mov rax, [rbp+var_58] movzx ecx, word ptr [rax] xor eax, eax cmp ecx, 0 mov [rbp+var_69], al jz short loc_5151F mov rax, [rbp+var_40] cmp rax, [rbp+var_20] setb al mov [rbp+var_69], al loc_5151F: mov al, [rbp+var_69] test al, 1 jnz short loc_51528 jmp short loc_5155A loc_51528: mov rax, [rbp+var_58] mov rcx, rax add rcx, 2 mov [rbp+var_58], rcx mov cx, [rax] mov rax, [rbp+var_18] mov rdx, rax add rdx, 2 mov [rbp+var_18], rdx mov [rax], cx mov rax, [rbp+var_40] add rax, 1 mov [rbp+var_40], rax jmp short loc_514F4 loc_5155A: mov rax, [rbp+var_40] cmp rax, [rbp+var_20] jnz short loc_5157E cmp [rbp+var_58], 0 jz short loc_5157E mov rax, [rbp+var_58] movzx eax, word ptr [rax] cmp eax, 0 jz short loc_5157E mov [rbp+var_44], 1 loc_5157E: jmp loc_51412 loc_51583: mov rax, [rbp+var_18] mov word ptr [rax], 0 mov rcx, [rbp+var_40] mov rax, [rbp+var_28] mov [rax], rcx mov eax, [rbp+var_44] mov [rbp+var_1], al loc_5159D: mov al, [rbp+var_1] add rsp, 70h pop rbp retn
bool my_char_weight_put( _QWORD *a1, _WORD *a2, unsigned long long a3, unsigned long long *a4, unsigned long long *a5, unsigned long long a6) { __int16 *v6; // rax __int16 v7; // cx _WORD *v8; // rax bool v10; // [rsp+7h] [rbp-69h] long long v11; // [rsp+8h] [rbp-68h] _WORD v12[3]; // [rsp+12h] [rbp-5Eh] BYREF __int16 *v13; // [rsp+18h] [rbp-58h] unsigned long long i; // [rsp+20h] [rbp-50h] int v15; // [rsp+2Ch] [rbp-44h] unsigned long long v16; // [rsp+30h] [rbp-40h] unsigned long long v17; // [rsp+38h] [rbp-38h] unsigned long long *v18; // [rsp+40h] [rbp-30h] unsigned long long *v19; // [rsp+48h] [rbp-28h] unsigned long long v20; // [rsp+50h] [rbp-20h] _WORD *v21; // [rsp+58h] [rbp-18h] _QWORD *v22; // [rsp+60h] [rbp-10h] v22 = a1; v21 = a2; v20 = a3; v19 = a4; v18 = a5; v17 = a6; v15 = 0; if ( a3 ) { --v20; v16 = 0LL; while ( v17 ) { v13 = 0LL; for ( i = v17; i > 1; --i ) { if ( i <= 6 ) { v11 = my_uca_contraction_find(v22 + 3, v18, i); if ( v11 ) { v13 = (__int16 *)(v11 + 48); v18 += i; v17 -= i; break; } } } if ( !v13 ) { v13 = (__int16 *)my_char_weight_addr(v22, *v18); if ( !v13 ) { v13 = v12; my_uca_implicit_weight_put(v12, *v18, *((_DWORD *)v22 + 12)); } ++v18; --v17; } while ( 1 ) { v10 = 0; if ( v13 ) { v10 = 0; if ( *v13 ) v10 = v16 < v20; } if ( !v10 ) break; v6 = v13++; v7 = *v6; v8 = v21++; *v8 = v7; ++v16; } if ( v16 == v20 && v13 && *v13 ) v15 = 1; } *v21 = 0; *v19 = v16; return v15; } else { *v19 = 0LL; return v17 != 0; } }
my_char_weight_put: 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 qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R8 MOV qword ptr [RBP + -0x38],R9 MOV dword ptr [RBP + -0x44],0x0 CMP qword ptr [RBP + -0x20],0x0 JNZ 0x001513fe MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX],0x0 CMP qword ptr [RBP + -0x38],0x0 SETA AL AND AL,0x1 MOVZX EAX,AL MOV byte ptr [RBP + -0x1],AL JMP 0x0015159d LAB_001513fe: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,-0x1 MOV qword ptr [RBP + -0x20],RAX MOV qword ptr [RBP + -0x40],0x0 LAB_00151412: CMP qword ptr [RBP + -0x38],0x0 JZ 0x00151583 MOV qword ptr [RBP + -0x58],0x0 MOV RAX,qword ptr [RBP + -0x38] MOV qword ptr [RBP + -0x50],RAX LAB_0015142d: CMP qword ptr [RBP + -0x50],0x1 JBE 0x00151497 CMP qword ptr [RBP + -0x50],0x6 JA 0x00151487 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x18 MOV RSI,qword ptr [RBP + -0x30] MOV RDX,qword ptr [RBP + -0x50] CALL 0x00151850 MOV qword ptr [RBP + -0x68],RAX CMP RAX,0x0 JZ 0x00151487 MOV RAX,qword ptr [RBP + -0x68] ADD RAX,0x30 MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x50] SHL RAX,0x3 ADD RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x30],RAX MOV RCX,qword ptr [RBP + -0x50] MOV RAX,qword ptr [RBP + -0x38] SUB RAX,RCX MOV qword ptr [RBP + -0x38],RAX JMP 0x00151497 LAB_00151487: JMP 0x00151489 LAB_00151489: MOV RAX,qword ptr [RBP + -0x50] ADD RAX,-0x1 MOV qword ptr [RBP + -0x50],RAX JMP 0x0015142d LAB_00151497: CMP qword ptr [RBP + -0x58],0x0 JNZ 0x001514f2 MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX] MOV ESI,EAX CALL 0x0014eb70 MOV qword ptr [RBP + -0x58],RAX CMP qword ptr [RBP + -0x58],0x0 JNZ 0x001514da LEA RAX,[RBP + -0x5e] MOV qword ptr [RBP + -0x58],RAX LEA RDI,[RBP + -0x5e] MOV RAX,qword ptr [RBP + -0x30] MOV RSI,qword ptr [RAX] MOV RAX,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RAX + 0x30] CALL 0x00151170 LAB_001514da: MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x8 MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x38] ADD RAX,-0x1 MOV qword ptr [RBP + -0x38],RAX LAB_001514f2: JMP 0x001514f4 LAB_001514f4: XOR EAX,EAX CMP qword ptr [RBP + -0x58],0x0 MOV byte ptr [RBP + -0x69],AL JZ 0x0015151f MOV RAX,qword ptr [RBP + -0x58] MOVZX ECX,word ptr [RAX] XOR EAX,EAX CMP ECX,0x0 MOV byte ptr [RBP + -0x69],AL JZ 0x0015151f MOV RAX,qword ptr [RBP + -0x40] CMP RAX,qword ptr [RBP + -0x20] SETC AL MOV byte ptr [RBP + -0x69],AL LAB_0015151f: MOV AL,byte ptr [RBP + -0x69] TEST AL,0x1 JNZ 0x00151528 JMP 0x0015155a LAB_00151528: MOV RAX,qword ptr [RBP + -0x58] MOV RCX,RAX ADD RCX,0x2 MOV qword ptr [RBP + -0x58],RCX MOV CX,word ptr [RAX] MOV RAX,qword ptr [RBP + -0x18] MOV RDX,RAX ADD RDX,0x2 MOV qword ptr [RBP + -0x18],RDX MOV word ptr [RAX],CX MOV RAX,qword ptr [RBP + -0x40] ADD RAX,0x1 MOV qword ptr [RBP + -0x40],RAX JMP 0x001514f4 LAB_0015155a: MOV RAX,qword ptr [RBP + -0x40] CMP RAX,qword ptr [RBP + -0x20] JNZ 0x0015157e CMP qword ptr [RBP + -0x58],0x0 JZ 0x0015157e MOV RAX,qword ptr [RBP + -0x58] MOVZX EAX,word ptr [RAX] CMP EAX,0x0 JZ 0x0015157e MOV dword ptr [RBP + -0x44],0x1 LAB_0015157e: JMP 0x00151412 LAB_00151583: MOV RAX,qword ptr [RBP + -0x18] MOV word ptr [RAX],0x0 MOV RCX,qword ptr [RBP + -0x40] MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RAX],RCX MOV EAX,dword ptr [RBP + -0x44] MOV byte ptr [RBP + -0x1],AL LAB_0015159d: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x70 POP RBP RET
int8 my_char_weight_put(long param_1,short *param_2,long param_3,ulong *param_4,ulong *param_5, ulong param_6) { long lVar1; ulong uVar2; bool bVar3; short local_66 [3]; short *local_60; ulong local_58; uint local_4c; ulong local_48; ulong local_40; ulong *local_38; ulong *local_30; ulong local_28; short *local_20; long local_18; int1 local_9; local_4c = 0; if (param_3 == 0) { *param_4 = 0; local_9 = param_6 != 0; uVar2 = 0; } else { local_28 = param_3 - 1; local_48 = 0; local_40 = param_6; local_38 = param_5; local_30 = param_4; local_20 = param_2; local_18 = param_1; while (local_40 != 0) { local_60 = (short *)0x0; for (local_58 = local_40; 1 < local_58; local_58 = local_58 - 1) { if ((local_58 < 7) && (lVar1 = my_uca_contraction_find(local_18 + 0x18,local_38,local_58), lVar1 != 0)) { local_60 = (short *)(lVar1 + 0x30); local_38 = local_38 + local_58; local_40 = local_40 - local_58; break; } } if (local_60 == (short *)0x0) { local_60 = (short *)my_char_weight_addr(local_18,*local_38 & 0xffffffff); if (local_60 == (short *)0x0) { local_60 = local_66; my_uca_implicit_weight_put(local_66,*local_38,*(int4 *)(local_18 + 0x30)); } local_38 = local_38 + 1; local_40 = local_40 - 1; } while( true ) { bVar3 = false; if ((local_60 != (short *)0x0) && (bVar3 = false, *local_60 != 0)) { bVar3 = local_48 < local_28; } if (!bVar3) break; *local_20 = *local_60; local_48 = local_48 + 1; local_60 = local_60 + 1; local_20 = local_20 + 1; } if (((local_48 == local_28) && (local_60 != (short *)0x0)) && (*local_60 != 0)) { local_4c = 1; } } *local_20 = 0; *local_30 = local_48; uVar2 = (ulong)local_4c; local_9 = (int1)local_4c; } return CONCAT71((int7)(uVar2 >> 8),local_9); }
6,287
translog_buffer_increase_writers
eloqsql/storage/maria/ma_loghandler.c
static inline void translog_buffer_increase_writers(struct st_translog_buffer *buffer) { DBUG_ENTER("translog_buffer_increase_writers"); translog_buffer_lock_assert_owner(buffer); buffer->copy_to_buffer_in_progress++; DBUG_PRINT("info", ("copy_to_buffer_in_progress. Buffer #%u %p progress: %d", (uint) buffer->buffer_no, buffer, buffer->copy_to_buffer_in_progress)); DBUG_VOID_RETURN; }
O0
c
translog_buffer_increase_writers: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movl 0x100078(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x100078(%rax) jmp 0x9623d jmp 0x9623f jmp 0x96241 popq %rbp retq nopw %cs:(%rax,%rax)
translog_buffer_increase_writers: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov rax, [rbp+var_8] mov ecx, dword ptr ds:loc_100078[rax] add ecx, 1 mov dword ptr ds:loc_100078[rax], ecx jmp short $+2 loc_9623D: jmp short $+2 loc_9623F: jmp short $+2 loc_96241: pop rbp retn
long long translog_buffer_increase_writers(long long a1) { long long result; // rax result = a1; ++*(_DWORD *)((char *)&loc_100078 + a1); return result; }
translog_buffer_increase_writers: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x100078] ADD ECX,0x1 MOV dword ptr [RAX + 0x100078],ECX JMP 0x0019623d LAB_0019623d: JMP 0x0019623f LAB_0019623f: JMP 0x00196241 LAB_00196241: POP RBP RET
void translog_buffer_increase_writers(long param_1) { *(int *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_type + param_1) = *(int *)((long)&Elf64_Phdr_ARRAY_00100040[1].p_type + param_1) + 1; return; }
6,288
translog_scanner_set_last_page
eloqsql/storage/maria/ma_loghandler.c
static my_bool translog_scanner_set_last_page(TRANSLOG_SCANNER_DATA *scanner) { my_bool page_ok; if (LSN_FILE_NO(scanner->page_addr) == LSN_FILE_NO(scanner->horizon)) { /* It is last file => we can easy find last page address by horizon */ uint pagegrest= LSN_OFFSET(scanner->horizon) % TRANSLOG_PAGE_SIZE; scanner->last_file_page= (scanner->horizon - (pagegrest ? pagegrest : TRANSLOG_PAGE_SIZE)); return (0); } scanner->last_file_page= scanner->page_addr; return (translog_get_last_page_addr(&scanner->last_file_page, &page_ok, 0)); }
O3
c
translog_scanner_set_last_page: movq 0x2000(%rdi), %rcx movq 0x2008(%rdi), %rax movq %rax, %rdx xorq %rcx, %rdx shrq $0x20, %rdx jne 0x4bfe7 movl %eax, %ecx andl $0x1fff, %ecx # imm = 0x1FFF movl $0x2000, %edx # imm = 0x2000 cmovnel %ecx, %edx subq %rdx, %rax movq %rax, 0x2010(%rdi) xorl %eax, %eax retq pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rcx, 0x2010(%rdi) addq $0x2010, %rdi # imm = 0x2010 leaq -0x1(%rbp), %rsi xorl %edx, %edx callq 0x4a29a addq $0x10, %rsp popq %rbp retq
translog_scanner_set_last_page: mov rcx, [rdi+2000h] mov rax, [rdi+2008h] mov rdx, rax xor rdx, rcx shr rdx, 20h jnz short loc_4BFE7 mov ecx, eax and ecx, 1FFFh mov edx, 2000h cmovnz edx, ecx sub rax, rdx mov [rdi+2010h], rax xor eax, eax retn loc_4BFE7: push rbp mov rbp, rsp sub rsp, 10h mov [rdi+2010h], rcx add rdi, 2010h lea rsi, [rbp-1] xor edx, edx call translog_get_last_page_addr add rsp, 10h pop rbp retn
char translog_scanner_set_last_page(_QWORD *a1) { long long v1; // rcx unsigned long long v2; // rax long long v3; // rdx bool v5; // [rsp-9h] [rbp-9h] BYREF v1 = a1[1024]; v2 = a1[1025]; if ( (v1 ^ v2) >> 32 ) { a1[1026] = v1; return translog_get_last_page_addr(a1 + 1026, &v5, 0); } else { v3 = 0x2000LL; if ( (v2 & 0x1FFF) != 0 ) v3 = v2 & 0x1FFF; a1[1026] = v2 - v3; return 0; } }
translog_scanner_set_last_page: MOV RCX,qword ptr [RDI + 0x2000] MOV RAX,qword ptr [RDI + 0x2008] MOV RDX,RAX XOR RDX,RCX SHR RDX,0x20 JNZ 0x0014bfe7 MOV ECX,EAX AND ECX,0x1fff MOV EDX,0x2000 CMOVNZ EDX,ECX SUB RAX,RDX MOV qword ptr [RDI + 0x2010],RAX XOR EAX,EAX RET LAB_0014bfe7: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RDI + 0x2010],RCX ADD RDI,0x2010 LEA RSI,[RBP + -0x1] XOR EDX,EDX CALL 0x0014a29a ADD RSP,0x10 POP RBP RET
int8 translog_scanner_set_last_page(long param_1) { ulong uVar1; int8 uVar2; ulong uVar3; int1 local_9; uVar1 = *(ulong *)(param_1 + 0x2008); if ((uVar1 ^ *(ulong *)(param_1 + 0x2000)) >> 0x20 == 0) { uVar3 = 0x2000; if ((uVar1 & 0x1fff) != 0) { uVar3 = uVar1 & 0x1fff; } *(ulong *)(param_1 + 0x2010) = uVar1 - uVar3; return 0; } *(ulong *)(param_1 + 0x2010) = *(ulong *)(param_1 + 0x2000); uVar2 = translog_get_last_page_addr(param_1 + 0x2010,&local_9,0); return uVar2; }
6,289
js_method_set_home_object
bluesky950520[P]quickjs/quickjs.c
static void js_method_set_home_object(JSContext *ctx, JSValue func_obj, JSValue home_obj) { JSObject *p, *p1; JSFunctionBytecode *b; if (JS_VALUE_GET_TAG(func_obj) != JS_TAG_OBJECT) return; p = JS_VALUE_GET_OBJ(func_obj); if (!js_class_has_bytecode(p->class_id)) return; b = p->u.func.function_bytecode; if (b->need_home_object) { p1 = p->u.func.home_object; if (p1) { JS_FreeValue(ctx, JS_MKPTR(JS_TAG_OBJECT, p1)); } if (JS_VALUE_GET_TAG(home_obj) == JS_TAG_OBJECT) p1 = JS_VALUE_GET_OBJ(js_dup(home_obj)); else p1 = NULL; p->u.func.home_object = p1; } }
O3
c
js_method_set_home_object: cmpl $-0x1, %edx jne 0x40a76 pushq %r15 pushq %r14 pushq %rbx movq %rsi, %r14 movzwl 0x6(%rsi), %eax cmpq $0x38, %rax ja 0x40a71 movq %rcx, %rbx movabsq $0x110000000012000, %rcx # imm = 0x110000000012000 btq %rax, %rcx jae 0x40a71 movq 0x30(%r14), %rax testb $0x10, 0x18(%rax) je 0x40a71 movq %r8, %r15 movq 0x40(%r14), %rsi testq %rsi, %rsi je 0x40a61 movq 0x18(%rdi), %rdi movl (%rsi), %eax leal -0x1(%rax), %ecx movl %ecx, (%rsi) cmpl $0x1, %eax jg 0x40a61 movq $-0x1, %rdx callq 0x20d90 cmpl $-0x1, %r15d jne 0x40a6b incl (%rbx) jmp 0x40a6d xorl %ebx, %ebx movq %rbx, 0x40(%r14) popq %rbx popq %r14 popq %r15 retq
js_method_set_home_object: cmp edx, 0FFFFFFFFh jnz short locret_40A76 push r15 push r14 push rbx mov r14, rsi movzx eax, word ptr [rsi+6] cmp rax, 38h ; '8' ja short loc_40A71 mov rbx, rcx mov rcx, 110000000012000h bt rcx, rax jnb short loc_40A71 mov rax, [r14+30h] test byte ptr [rax+18h], 10h jz short loc_40A71 mov r15, r8 mov rsi, [r14+40h] test rsi, rsi jz short loc_40A61 mov rdi, [rdi+18h] mov eax, [rsi] lea ecx, [rax-1] mov [rsi], ecx cmp eax, 1 jg short loc_40A61 mov rdx, 0FFFFFFFFFFFFFFFFh call js_free_value_rt loc_40A61: cmp r15d, 0FFFFFFFFh jnz short loc_40A6B inc dword ptr [rbx] jmp short loc_40A6D loc_40A6B: xor ebx, ebx loc_40A6D: mov [r14+40h], rbx loc_40A71: pop rbx pop r14 pop r15 locret_40A76: retn
void js_method_set_home_object(long long a1, long long a2, int a3, _DWORD *a4, long long a5, long long a6) { unsigned long long v7; // rax long long v9; // rcx int v10; // r15d _QWORD *v11; // rsi long long v12; // rdi int v13; // eax long long v14; // rcx if ( a3 == -1 ) { v7 = *(unsigned __int16 *)(a2 + 6); if ( v7 <= 0x38 ) { v9 = 0x110000000012000LL; if ( _bittest64(&v9, v7) ) { if ( (*(_BYTE *)(*(_QWORD *)(a2 + 48) + 24LL) & 0x10) != 0 ) { v10 = a5; v11 = *(_QWORD **)(a2 + 64); if ( v11 ) { v12 = *(_QWORD *)(a1 + 24); v13 = *(_DWORD *)v11; v14 = (unsigned int)(*(_DWORD *)v11 - 1); *(_DWORD *)v11 = v14; if ( v13 <= 1 ) js_free_value_rt(v12, v11, -1LL, v14, a5, a6); } if ( v10 == -1 ) ++*a4; else a4 = 0LL; *(_QWORD *)(a2 + 64) = a4; } } } } }
js_method_set_home_object: CMP EDX,-0x1 JNZ 0x00140a76 PUSH R15 PUSH R14 PUSH RBX MOV R14,RSI MOVZX EAX,word ptr [RSI + 0x6] CMP RAX,0x38 JA 0x00140a71 MOV RBX,RCX MOV RCX,0x110000000012000 BT RCX,RAX JNC 0x00140a71 MOV RAX,qword ptr [R14 + 0x30] TEST byte ptr [RAX + 0x18],0x10 JZ 0x00140a71 MOV R15,R8 MOV RSI,qword ptr [R14 + 0x40] TEST RSI,RSI JZ 0x00140a61 MOV RDI,qword ptr [RDI + 0x18] MOV EAX,dword ptr [RSI] LEA ECX,[RAX + -0x1] MOV dword ptr [RSI],ECX CMP EAX,0x1 JG 0x00140a61 MOV RDX,-0x1 CALL 0x00120d90 LAB_00140a61: CMP R15D,-0x1 JNZ 0x00140a6b INC dword ptr [RBX] JMP 0x00140a6d LAB_00140a6b: XOR EBX,EBX LAB_00140a6d: MOV qword ptr [R14 + 0x40],RBX LAB_00140a71: POP RBX POP R14 POP R15 LAB_00140a76: RET
void js_method_set_home_object(long param_1,long param_2,int param_3,int *param_4,int param_5) { int iVar1; int *piVar2; int8 uVar3; if ((((param_3 == -1) && ((ulong)*(ushort *)(param_2 + 6) < 0x39)) && ((0x110000000012000U >> ((ulong)*(ushort *)(param_2 + 6) & 0x3f) & 1) != 0)) && ((*(byte *)(*(long *)(param_2 + 0x30) + 0x18) & 0x10) != 0)) { piVar2 = *(int **)(param_2 + 0x40); if (piVar2 != (int *)0x0) { uVar3 = *(int8 *)(param_1 + 0x18); iVar1 = *piVar2; *piVar2 = iVar1 + -1; if (iVar1 < 2) { js_free_value_rt(uVar3,piVar2,0xffffffffffffffff); } } if (param_5 == -1) { *param_4 = *param_4 + 1; } else { param_4 = (int *)0x0; } *(int **)(param_2 + 0x40) = param_4; } return; }
6,290
ma_apply_redo_free_head_or_tail
eloqsql/storage/maria/ma_blockrec.c
uint _ma_apply_redo_free_head_or_tail(MARIA_HA *info, LSN lsn, const uchar *header) { MARIA_SHARE *share= info->s; uchar *buff; pgcache_page_no_t page; MARIA_PINNED_PAGE page_link; my_bool res; DBUG_ENTER("_ma_apply_redo_free_head_or_tail"); share->state.changed|= (STATE_CHANGED | STATE_NOT_ZEROFILLED | STATE_NOT_MOVABLE); page= page_korr(header); if (!(buff= pagecache_read(share->pagecache, &info->dfile, page, 0, 0, PAGECACHE_PLAIN_PAGE, PAGECACHE_LOCK_WRITE, &page_link.link))) { pagecache_unlock_by_link(share->pagecache, page_link.link, PAGECACHE_LOCK_WRITE_UNLOCK, PAGECACHE_UNPIN, LSN_IMPOSSIBLE, LSN_IMPOSSIBLE, 0, FALSE); goto err; } if (lsn_korr(buff) >= lsn) { /* Already applied */ check_skipped_lsn(info, lsn_korr(buff), 1, page); pagecache_unlock_by_link(share->pagecache, page_link.link, PAGECACHE_LOCK_WRITE_UNLOCK, PAGECACHE_UNPIN, LSN_IMPOSSIBLE, LSN_IMPOSSIBLE, 0, FALSE); } else { buff[PAGE_TYPE_OFFSET]= UNALLOCATED_PAGE; #ifdef IDENTICAL_PAGES_AFTER_RECOVERY { uint number_of_records= (uint) buff[DIR_COUNT_OFFSET]; uchar *dir= dir_entry_pos(buff, share->block_size, number_of_records-1); buff[DIR_FREE_OFFSET]= END_OF_DIR_FREE_LIST; bzero(dir, number_of_records * DIR_ENTRY_SIZE); } #endif page_link.unlock= PAGECACHE_LOCK_WRITE_UNLOCK; page_link.changed= 1; push_dynamic(&info->pinned_pages, (void*) &page_link); } /** @todo leave bitmap lock to the bitmap code... */ mysql_mutex_lock(&share->bitmap.bitmap_lock); res= _ma_bitmap_reset_full_page_bits(info, &share->bitmap, page, 1); mysql_mutex_unlock(&share->bitmap.bitmap_lock); if (res) goto err; DBUG_RETURN(0); err: _ma_mark_file_crashed(share); DBUG_ASSERT(!maria_assert_if_crashed_table); DBUG_RETURN(1); }
O0
c
ma_apply_redo_free_head_or_tail: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rax movl 0x170(%rax), %ecx orl $0x181, %ecx # imm = 0x181 movl %ecx, 0x170(%rax) movq -0x20(%rbp), %rdi callq 0xef2f10 movq %rax, -0x38(%rbp) movq -0x28(%rbp), %rax movq 0x600(%rax), %rdi movq -0x10(%rbp), %rsi addq $0x470, %rsi # imm = 0x470 movq -0x38(%rbp), %rdx leaq -0x50(%rbp), %rax xorl %ecx, %ecx xorl %r8d, %r8d movl $0x1, %r9d movl $0x4, (%rsp) movq %rax, 0x8(%rsp) callq 0xebf950 movq %rax, -0x30(%rbp) cmpq $0x0, %rax jne 0xef3dc2 movq -0x28(%rbp), %rax movq 0x600(%rax), %rdi movq -0x50(%rbp), %rsi movl $0x6, %edx movl $0x3, %ecx xorl %eax, %eax movl %eax, %r9d xorl %eax, %eax movq %r9, %r8 movl $0x0, (%rsp) movl $0x0, 0x8(%rsp) callq 0xebf6f0 jmp 0xef3f0b movq -0x30(%rbp), %rax movzbl (%rax), %eax movq -0x30(%rbp), %rcx movzbl 0x1(%rcx), %ecx shll $0x8, %ecx orl %ecx, %eax movq -0x30(%rbp), %rcx movzbl 0x2(%rcx), %ecx shll $0x10, %ecx orl %ecx, %eax movl %eax, %eax shlq $0x20, %rax movq -0x30(%rbp), %rcx movl 0x3(%rcx), %ecx orq %rcx, %rax cmpq -0x18(%rbp), %rax jl 0xef3e77 movq -0x10(%rbp), %rdi movq -0x30(%rbp), %rax movzbl (%rax), %eax movq -0x30(%rbp), %rcx movzbl 0x1(%rcx), %ecx shll $0x8, %ecx orl %ecx, %eax movq -0x30(%rbp), %rcx movzbl 0x2(%rcx), %ecx shll $0x10, %ecx orl %ecx, %eax movl %eax, %eax movl %eax, %esi shlq $0x20, %rsi movq -0x30(%rbp), %rax movl 0x3(%rax), %eax orq %rax, %rsi movq -0x38(%rbp), %rcx movl $0x1, %edx callq 0xeb67b0 movq -0x28(%rbp), %rax movq 0x600(%rax), %rdi movq -0x50(%rbp), %rsi movl $0x6, %edx movl $0x3, %ecx xorl %eax, %eax movl %eax, %r9d xorl %eax, %eax movq %r9, %r8 movl $0x0, (%rsp) movl $0x0, 0x8(%rsp) callq 0xebf6f0 jmp 0xef3e9e movq -0x30(%rbp), %rax movb $0x0, 0x7(%rax) movl $0x6, -0x48(%rbp) movb $0x1, -0x40(%rbp) movq -0x10(%rbp), %rdi addq $0x2e8, %rdi # imm = 0x2E8 leaq -0x50(%rbp), %rsi callq 0x13012c0 movq -0x28(%rbp), %rdi addq $0xa10, %rdi # imm = 0xA10 addq $0x88, %rdi leaq 0x55685c(%rip), %rsi # 0x144a713 movl $0x1a93, %edx # imm = 0x1A93 callq 0xef3c30 movq -0x10(%rbp), %rdi movq -0x28(%rbp), %rsi addq $0xa10, %rsi # imm = 0xA10 movq -0x38(%rbp), %rdx movl $0x1, %ecx callq 0xefc590 movb %al, -0x51(%rbp) movq -0x28(%rbp), %rdi addq $0xa10, %rdi # imm = 0xA10 addq $0x88, %rdi callq 0xef3ca0 cmpb $0x0, -0x51(%rbp) je 0xef3f00 jmp 0xef3f0b jmp 0xef3f02 movl $0x0, -0x4(%rbp) jmp 0xef3f1f movq -0x28(%rbp), %rdi callq 0xe95000 jmp 0xef3f16 jmp 0xef3f18 movl $0x1, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x70, %rsp popq %rbp retq nopl (%rax,%rax)
_ma_apply_redo_free_head_or_tail: push rbp mov rbp, rsp sub rsp, 70h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov rax, [rbp+var_10] mov rax, [rax] mov [rbp+var_28], rax mov rax, [rbp+var_28] mov ecx, [rax+170h] or ecx, 181h mov [rax+170h], ecx mov rdi, [rbp+var_20] call uint5korr_1 mov [rbp+var_38], rax mov rax, [rbp+var_28] mov rdi, [rax+600h] mov rsi, [rbp+var_10] add rsi, 470h mov rdx, [rbp+var_38] lea rax, [rbp+var_50] xor ecx, ecx xor r8d, r8d mov r9d, 1 mov [rsp+70h+var_70], 4 mov [rsp+70h+var_68], rax call pagecache_read mov [rbp+var_30], rax cmp rax, 0 jnz short loc_EF3DC2 mov rax, [rbp+var_28] mov rdi, [rax+600h] mov rsi, [rbp+var_50] mov edx, 6 mov ecx, 3 xor eax, eax mov r9d, eax xor eax, eax mov r8, r9 mov [rsp+70h+var_70], 0 mov dword ptr [rsp+70h+var_68], 0 call pagecache_unlock_by_link jmp loc_EF3F0B loc_EF3DC2: mov rax, [rbp+var_30] movzx eax, byte ptr [rax] mov rcx, [rbp+var_30] movzx ecx, byte ptr [rcx+1] shl ecx, 8 or eax, ecx mov rcx, [rbp+var_30] movzx ecx, byte ptr [rcx+2] shl ecx, 10h or eax, ecx mov eax, eax shl rax, 20h mov rcx, [rbp+var_30] mov ecx, [rcx+3] or rax, rcx cmp rax, [rbp+var_18] jl short loc_EF3E77 mov rdi, [rbp+var_10] mov rax, [rbp+var_30] movzx eax, byte ptr [rax] mov rcx, [rbp+var_30] movzx ecx, byte ptr [rcx+1] shl ecx, 8 or eax, ecx mov rcx, [rbp+var_30] movzx ecx, byte ptr [rcx+2] shl ecx, 10h or eax, ecx mov eax, eax mov esi, eax shl rsi, 20h mov rax, [rbp+var_30] mov eax, [rax+3] or rsi, rax mov rcx, [rbp+var_38] mov edx, 1 call check_skipped_lsn mov rax, [rbp+var_28] mov rdi, [rax+600h] mov rsi, [rbp+var_50] mov edx, 6 mov ecx, 3 xor eax, eax mov r9d, eax xor eax, eax mov r8, r9 mov [rsp+70h+var_70], 0 mov dword ptr [rsp+70h+var_68], 0 call pagecache_unlock_by_link jmp short loc_EF3E9E loc_EF3E77: mov rax, [rbp+var_30] mov byte ptr [rax+7], 0 mov [rbp+var_48], 6 mov [rbp+var_40], 1 mov rdi, [rbp+var_10] add rdi, 2E8h lea rsi, [rbp+var_50] call insert_dynamic loc_EF3E9E: mov rdi, [rbp+var_28] add rdi, 0A10h add rdi, 88h lea rsi, aWorkspaceLlm4b_146; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 1A93h call inline_mysql_mutex_lock_16 mov rdi, [rbp+var_10] mov rsi, [rbp+var_28] add rsi, 0A10h mov rdx, [rbp+var_38] mov ecx, 1 call _ma_bitmap_reset_full_page_bits mov [rbp+var_51], al mov rdi, [rbp+var_28] add rdi, 0A10h add rdi, 88h call inline_mysql_mutex_unlock_16 cmp [rbp+var_51], 0 jz short loc_EF3F00 jmp short loc_EF3F0B loc_EF3F00: jmp short $+2 loc_EF3F02: mov [rbp+var_4], 0 jmp short loc_EF3F1F loc_EF3F0B: mov rdi, [rbp+var_28] call _ma_mark_file_crashed jmp short $+2 loc_EF3F16: jmp short $+2 loc_EF3F18: mov [rbp+var_4], 1 loc_EF3F1F: mov eax, [rbp+var_4] add rsp, 70h pop rbp retn
long long ma_apply_redo_free_head_or_tail(long long *a1, signed long long a2, unsigned int *a3, double a4) { char v5; // [rsp+1Fh] [rbp-51h] long long v6; // [rsp+20h] [rbp-50h] BYREF int v7; // [rsp+28h] [rbp-48h] char v8; // [rsp+30h] [rbp-40h] unsigned long long v9; // [rsp+38h] [rbp-38h] unsigned __int16 *v10; // [rsp+40h] [rbp-30h] long long v11; // [rsp+48h] [rbp-28h] unsigned int *v12; // [rsp+50h] [rbp-20h] signed long long v13; // [rsp+58h] [rbp-18h] long long *v14; // [rsp+60h] [rbp-10h] v14 = a1; v13 = a2; v12 = a3; v11 = *a1; *(_DWORD *)(v11 + 368) |= 0x181u; v9 = uint5korr_1(v12); v10 = (unsigned __int16 *)pagecache_read( *(_QWORD **)(v11 + 1536), (long long)(v14 + 142), v9, 0, 0LL, 1, a4, 4u, (char *)&v6); if ( !v10 ) { pagecache_unlock_by_link(*(_QWORD **)(v11 + 1536), v6, 6, 3, 0LL, 0LL, 0, 0); LABEL_8: ma_mark_file_crashed(v11); return 1; } if ( (long long)(*(unsigned int *)((char *)v10 + 3) | ((unsigned long long)((*((unsigned __int8 *)v10 + 2) << 16) | (unsigned int)*v10) << 32)) < v13 ) { *((_BYTE *)v10 + 7) = 0; v7 = 6; v8 = 1; insert_dynamic(v14 + 93, &v6); } else { check_skipped_lsn( (long long)v14, *(unsigned int *)((char *)v10 + 3) | ((unsigned long long)((*((unsigned __int8 *)v10 + 2) << 16) | (unsigned int)*v10) << 32), 1, v9); pagecache_unlock_by_link(*(_QWORD **)(v11 + 1536), v6, 6, 3, 0LL, 0LL, 0, 0); } inline_mysql_mutex_lock_16( v11 + 2712, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_blockrec.c", 0x1A93u); v5 = ma_bitmap_reset_full_page_bits(v14, v11 + 2576, v9, 1LL); inline_mysql_mutex_unlock_16(v11 + 2712); if ( v5 ) goto LABEL_8; return 0; }
val_str: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x28],RAX JMP 0x00ef3d1a LAB_00ef3d1a: MOV RAX,qword ptr [RBP + -0x28] TEST byte ptr [RAX + 0x64],0x1 JZ 0x00ef3d30 JMP 0x00ef3d26 LAB_00ef3d26: MOV qword ptr [RBP + -0x8],0x0 JMP 0x00ef3d78 LAB_00ef3d30: MOV RAX,qword ptr [RBP + -0x28] MOV RDI,qword ptr [RAX + 0x120] MOV RSI,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x108] MOV RCX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RCX + 0x120] MOV AL,byte ptr [RAX + 0x64] MOV DL,AL AND DL,0x1 MOV byte ptr [RCX + 0x64],DL TEST AL,0x1 JNZ 0x00ef3d68 JMP 0x00ef3d6e LAB_00ef3d68: JMP 0x00ef3d6a LAB_00ef3d6a: JMP 0x00ef3d6c LAB_00ef3d6c: JMP 0x00ef3d6e LAB_00ef3d6e: JMP 0x00ef3d70 LAB_00ef3d70: MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x8],RAX LAB_00ef3d78: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x30 POP RBP RET
/* Item_sum_min_max::val_str(String*) */ int8 __thiscall Item_sum_min_max::val_str(Item_sum_min_max *this,String *param_1) { int8 local_10; if (((byte)this[100] & 1) == 0) { local_10 = (**(code **)(**(long **)(this + 0x120) + 0x108))(*(long **)(this + 0x120),param_1); this[100] = (Item_sum_min_max)(*(byte *)(*(long *)(this + 0x120) + 100) & 1); } else { local_10 = 0; } return local_10; }
6,291
LefDefParser::lefwMacroTimingRisecs(double, double)
Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefwWriter.cpp
int lefwMacroTimingRisecs(double min, double max) { if (!lefwFile) return LEFW_UNINITIALIZED; if (!lefwDidInit) return LEFW_BAD_ORDER; if (!lefwIsMacroTiming) return LEFW_BAD_ORDER; if (lefwWriteEncrypt) encPrint(lefwFile, (char*) " RISECS %.11g %.11g ;\n", min, max); else fprintf(lefwFile, " RISECS %.11g %.11g ;\n", min, max); lefwLines++; return LEFW_OK; }
O3
cpp
LefDefParser::lefwMacroTimingRisecs(double, double): leaq 0x6b8a8(%rip), %rax # 0x8d0f0 movq (%rax), %rdi testq %rdi, %rdi je 0x21887 leaq 0x6baed(%rip), %rax # 0x8d344 cmpl $0x0, (%rax) movl $0x2, %eax je 0x218aa leaq 0x6bb34(%rip), %rcx # 0x8d39c cmpl $0x0, (%rcx) je 0x218aa pushq %rax cmpb $0x1, 0x6bb67(%rip) # 0x8d3dc jne 0x2188d leaq 0x3af5e(%rip), %rsi # 0x5c7dc movb $0x2, %al callq 0x55afd jmp 0x2189b movl $0x1, %eax retq leaq 0x3af48(%rip), %rsi # 0x5c7dc movb $0x2, %al callq 0x22e0 leaq 0x6ba9a(%rip), %rax # 0x8d33c incl (%rax) xorl %eax, %eax addq $0x8, %rsp retq
_ZN12LefDefParser21lefwMacroTimingRisecsEdd: lea rax, _ZN12LefDefParser8lefwFileE; LefDefParser::lefwFile mov rdi, [rax] test rdi, rdi jz short loc_21887 lea rax, _ZN12LefDefParser11lefwDidInitE; LefDefParser::lefwDidInit cmp dword ptr [rax], 0 mov eax, 2 jz short locret_218AA lea rcx, _ZN12LefDefParser17lefwIsMacroTimingE; LefDefParser::lefwIsMacroTiming cmp dword ptr [rcx], 0 jz short locret_218AA push rax cmp cs:_ZN12LefDefParserL16lefwWriteEncryptE, 1; LefDefParser::lefwWriteEncrypt jnz short loc_2188D lea rsi, aRisecs11g11g; " RISECS %.11g %.11g ;\n" mov al, 2 call _ZN12LefDefParser8encPrintEP8_IO_FILEPcz; LefDefParser::encPrint(_IO_FILE *,char *,...) jmp short loc_2189B loc_21887: mov eax, 1 retn loc_2188D: lea rsi, aRisecs11g11g; " RISECS %.11g %.11g ;\n" mov al, 2 call _fprintf loc_2189B: lea rax, _ZN12LefDefParser9lefwLinesE; LefDefParser::lefwLines inc dword ptr [rax] xor eax, eax add rsp, 8 locret_218AA: retn
long long LefDefParser::lefwMacroTimingRisecs( LefDefParser *this, double a2, double a3, long long a4, int a5, long long a6, int a7, int a8) { long long result; // rax if ( !*(_QWORD *)&LefDefParser::lefwFile ) return 1LL; result = 2LL; if ( LefDefParser::lefwDidInit && LefDefParser::lefwIsMacroTiming ) { if ( LefDefParser::lefwWriteEncrypt == 1 ) LefDefParser::encPrint( LefDefParser::lefwFile, (unsigned int)" RISECS %.11g %.11g ;\n", a5, (unsigned int)&LefDefParser::lefwIsMacroTiming, a7, a8); else fprintf(*(_QWORD *)&LefDefParser::lefwFile, " RISECS %.11g %.11g ;\n", a2, a3); ++LefDefParser::lefwLines; return 0LL; } return result; }
lefwMacroTimingRisecs: LEA RAX,[0x18d0f0] MOV RDI,qword ptr [RAX] TEST RDI,RDI JZ 0x00121887 LEA RAX,[0x18d344] CMP dword ptr [RAX],0x0 MOV EAX,0x2 JZ 0x001218aa LEA RCX,[0x18d39c] CMP dword ptr [RCX],0x0 JZ 0x001218aa PUSH RAX CMP byte ptr [0x0018d3dc],0x1 JNZ 0x0012188d LEA RSI,[0x15c7dc] MOV AL,0x2 CALL 0x00155afd JMP 0x0012189b LAB_00121887: MOV EAX,0x1 RET LAB_0012188d: LEA RSI,[0x15c7dc] MOV AL,0x2 CALL 0x001022e0 LAB_0012189b: LEA RAX,[0x18d33c] INC dword ptr [RAX] XOR EAX,EAX ADD RSP,0x8 LAB_001218aa: RET
/* LefDefParser::lefwMacroTimingRisecs(double, double) */ int8 LefDefParser::lefwMacroTimingRisecs(double param_1,double param_2) { int8 uVar1; if (lefwFile != (_IO_FILE *)0x0) { uVar1 = 2; if ((lefwDidInit != 0) && (lefwIsMacroTiming != 0)) { if (lefwWriteEncrypt == '\x01') { encPrint(lefwFile," RISECS %.11g %.11g ;\n"); } else { fprintf(lefwFile," RISECS %.11g %.11g ;\n"); } lefwLines = lefwLines + 1; uVar1 = 0; } return uVar1; } return 1; }
6,292
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); }
O3
c
ft_parse_internal: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdi, %rbx leaq -0x48(%rbp), %r14 movq %rsi, (%r14) movslq %edx, %r15 addq %rsi, %r15 movq 0x18(%rdi), %rax movq (%rax), %r12 leaq -0x40(%rbp), %r13 movq 0x230(%r12), %rdi movq %r14, %rsi movq %r15, %rdx movq %r13, %rcx movl $0x1, %r8d callq 0x7556d testb %al, %al je 0x757a7 movq -0x40(%rbp), %rsi movl -0x30(%rbp), %edx movq %rbx, %rdi xorl %ecx, %ecx callq *0x8(%rbx) testl %eax, %eax je 0x7576d movl $0x1, %eax jmp 0x757a9 xorl %eax, %eax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
ft_parse_internal: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rdi lea r14, [rbp+var_48] mov [r14], rsi movsxd r15, edx add r15, rsi mov rax, [rdi+18h] mov r12, [rax] lea r13, [rbp+var_40] loc_7576D: mov rdi, [r12+230h] mov rsi, r14 mov rdx, r15 mov rcx, r13 mov r8d, 1 call ft_simple_get_word test al, al jz short loc_757A7 mov rsi, [rbp+var_40] mov edx, [rbp+var_30] mov rdi, rbx xor ecx, ecx call qword ptr [rbx+8] test eax, eax jz short loc_7576D mov eax, 1 jmp short loc_757A9 loc_757A7: xor eax, eax loc_757A9: add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long ft_parse_internal(long long a1, _BYTE *a2, int a3) { unsigned long long v3; // r15 long long v4; // r12 _BYTE *v6; // [rsp+8h] [rbp-48h] BYREF long long v7; // [rsp+10h] [rbp-40h] BYREF unsigned int v8; // [rsp+20h] [rbp-30h] v6 = a2; v3 = (unsigned long long)&a2[a3]; v4 = **(_QWORD **)(a1 + 24); while ( ft_simple_get_word(*(_QWORD *)(v4 + 560), &v6, v3, &v7, 1) ) { if ( (*(unsigned int ( **)(long long, long long, _QWORD, _QWORD))(a1 + 8))(a1, v7, v8, 0LL) ) return 1LL; } return 0LL; }
ft_parse_internal: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDI LEA R14,[RBP + -0x48] MOV qword ptr [R14],RSI MOVSXD R15,EDX ADD R15,RSI MOV RAX,qword ptr [RDI + 0x18] MOV R12,qword ptr [RAX] LEA R13,[RBP + -0x40] LAB_0017576d: MOV RDI,qword ptr [R12 + 0x230] MOV RSI,R14 MOV RDX,R15 MOV RCX,R13 MOV R8D,0x1 CALL 0x0017556d TEST AL,AL JZ 0x001757a7 MOV RSI,qword ptr [RBP + -0x40] MOV EDX,dword ptr [RBP + -0x30] MOV RDI,RBX XOR ECX,ECX CALL qword ptr [RBX + 0x8] TEST EAX,EAX JZ 0x0017576d MOV EAX,0x1 JMP 0x001757a9 LAB_001757a7: XOR EAX,EAX LAB_001757a9: ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 ft_parse_internal(long param_1,long param_2,int param_3) { long lVar1; char cVar2; int iVar3; long local_50; int8 local_48 [2]; int4 local_38; lVar1 = **(long **)(param_1 + 0x18); local_50 = param_2; do { cVar2 = ft_simple_get_word(*(int8 *)(lVar1 + 0x230),&local_50,param_3 + param_2,local_48,1 ); if (cVar2 == '\0') { return 0; } iVar3 = (**(code **)(param_1 + 8))(param_1,local_48[0],local_38,0); } while (iVar3 == 0); return 1; }
6,293
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>>>>>::parse(bool, 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>&)
monkey531[P]llama/common/./json.hpp
void parse(const bool strict, BasicJsonType& result) { if (callback) { json_sax_dom_callback_parser<BasicJsonType> sdp(result, callback, allow_exceptions); sax_parse_internal(&sdp); // in strict mode, input must be completely read if (strict && (get_token() != token_type::end_of_input)) { sdp.parse_error(m_lexer.get_position(), m_lexer.get_token_string(), parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), nullptr)); } // in case of an error, return discarded value if (sdp.is_errored()) { result = value_t::discarded; return; } // set top-level value to null if it was discarded by the callback // function if (result.is_discarded()) { result = nullptr; } } else { json_sax_dom_parser<BasicJsonType> sdp(result, allow_exceptions); sax_parse_internal(&sdp); // in strict mode, input must be completely read if (strict && (get_token() != token_type::end_of_input)) { sdp.parse_error(m_lexer.get_position(), m_lexer.get_token_string(), parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), nullptr)); } // in case of an error, return discarded value if (sdp.is_errored()) { result = value_t::discarded; return; } } result.assert_invariant(); }
O2
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>>>>>::parse(bool, 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>&): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x1c0, %rsp # imm = 0x1C0 movq %rdx, %rbx movl %esi, %ebp movq %rdi, %r15 cmpq $0x0, 0x10(%rdi) je 0x409f8 leaq 0xc8(%rsp), %r14 movq %r14, %rdi movq %r15, %rsi callq 0x4084a movzbl 0xc0(%r15), %ecx leaq 0x108(%rsp), %rdi movq %rbx, %rsi movq %r14, %rdx callq 0x41a42 leaq 0xc8(%rsp), %rdi callq 0x64088 leaq 0x108(%rsp), %rsi movq %r15, %rdi callq 0x41b06 testb %bpl, %bpl je 0x409ce movq %r15, %rdi callq 0x40d30 cmpl $0xf, %eax je 0x409ce leaq 0x28(%r15), %rsi movq 0x48(%r15), %r14 leaq 0x70(%rsp), %rdi callq 0x4263a leaq 0x48(%r15), %rax movq 0x10(%rax), %rcx movq %rcx, 0x20(%rsp) movups (%rax), %xmm0 movaps %xmm0, 0x10(%rsp) leaq 0x5e059(%rip), %rsi # 0x9e99e leaq 0x30(%rsp), %rdi leaq 0xf(%rsp), %rdx callq 0x262e2 leaq 0x50(%rsp), %rdi pushq $0xf popq %rdx leaq 0x30(%rsp), %rcx movq %r15, %rsi callq 0x42818 leaq 0x90(%rsp), %rdi pushq $0x65 popq %rsi leaq 0x10(%rsp), %rdx leaq 0x50(%rsp), %rcx xorl %r8d, %r8d callq 0x426e2 leaq 0x108(%rsp), %rdi leaq 0x70(%rsp), %rdx leaq 0x90(%rsp), %rcx movq %r14, %rsi callq 0x425f6 leaq 0x90(%rsp), %rdi callq 0x46fe2 leaq 0x50(%rsp), %rdi callq 0x20d78 leaq 0x30(%rsp), %rdi callq 0x20d78 leaq 0x70(%rsp), %rdi callq 0x20d78 movb 0x180(%rsp), %bpl cmpb $0x1, %bpl jne 0x40b40 leaq 0xf8(%rsp), %r14 pushq $0x9 popq %rsi movq %r14, %rdi callq 0x429b4 jmp 0x40b57 movb 0xc0(%r15), %al leaq 0x110(%rsp), %r14 movq %rbx, -0x8(%r14) xorps %xmm0, %xmm0 movups %xmm0, (%r14) movups %xmm0, 0x10(%r14) movb $0x0, 0x20(%r14) movb %al, 0x21(%r14) leaq 0x108(%rsp), %rsi movq %r15, %rdi callq 0x42a4a testb %bpl, %bpl je 0x40b01 movq %r15, %rdi callq 0x40d30 cmpl $0xf, %eax je 0x40b01 leaq 0x28(%r15), %rsi movq 0x48(%r15), %r12 leaq 0x70(%rsp), %rdi callq 0x4263a leaq 0x48(%r15), %rax movq 0x10(%rax), %rcx movq %rcx, 0x20(%rsp) movups (%rax), %xmm0 movaps %xmm0, 0x10(%rsp) leaq 0x5df26(%rip), %rsi # 0x9e99e leaq 0x30(%rsp), %rdi leaq 0xf(%rsp), %rdx callq 0x262e2 leaq 0x50(%rsp), %rdi pushq $0xf popq %rdx leaq 0x30(%rsp), %rcx movq %r15, %rsi callq 0x42818 leaq 0x90(%rsp), %rdi pushq $0x65 popq %rsi leaq 0x10(%rsp), %rdx leaq 0x50(%rsp), %rcx xorl %r8d, %r8d callq 0x426e2 leaq 0x108(%rsp), %rdi leaq 0x70(%rsp), %rdx leaq 0x90(%rsp), %rcx movq %r12, %rsi callq 0x4353a leaq 0x90(%rsp), %rdi callq 0x46fe2 leaq 0x50(%rsp), %rdi callq 0x20d78 leaq 0x30(%rsp), %rdi callq 0x20d78 leaq 0x70(%rsp), %rdi callq 0x20d78 cmpb $0x1, 0x130(%rsp) jne 0x40b7e leaq 0xb8(%rsp), %rdi pushq $0x9 popq %rsi callq 0x429b4 leaq 0xb8(%rsp), %r15 movq %rbx, %rdi movq %r15, %rsi callq 0x429ca movq %r15, %rdi callq 0x2b1f0 movq %r14, %rdi callq 0x43ab6 jmp 0x40b91 cmpb $0x9, (%rbx) jne 0x40b6a leaq 0xe8(%rsp), %r14 movq %r14, %rdi xorl %esi, %esi callq 0x2b1d0 movq %rbx, %rdi movq %r14, %rsi callq 0x429ca movq %r14, %rdi callq 0x2b1f0 leaq 0x108(%rsp), %rdi callq 0x42a0e testb %bpl, %bpl je 0x40b86 jmp 0x40b91 movq %r14, %rdi callq 0x43ab6 pushq $0x1 popq %rsi movq %rbx, %rdi callq 0x3b386 addq $0x1c0, %rsp # imm = 0x1C0 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0x90(%rsp), %rdi callq 0x46fe2 jmp 0x40bb6 movq %rax, %rbx leaq 0x50(%rsp), %rdi callq 0x20d78 jmp 0x40bc5 movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0x20d78 jmp 0x40bd4 movq %rax, %rbx leaq 0x70(%rsp), %rdi callq 0x20d78 jmp 0x40c38 jmp 0x40c35 movq %rax, %rbx leaq 0x90(%rsp), %rdi callq 0x46fe2 jmp 0x40bf7 movq %rax, %rbx leaq 0x50(%rsp), %rdi callq 0x20d78 jmp 0x40c06 movq %rax, %rbx leaq 0x30(%rsp), %rdi callq 0x20d78 jmp 0x40c15 movq %rax, %rbx leaq 0x70(%rsp), %rdi callq 0x20d78 jmp 0x40c45 jmp 0x40c42 movq %rax, %rbx leaq 0xc8(%rsp), %rdi callq 0x64088 jmp 0x40c52 movq %rax, %rbx movq %r14, %rdi callq 0x43ab6 jmp 0x40c52 movq %rax, %rbx leaq 0x108(%rsp), %rdi callq 0x42a0e movq %rbx, %rdi callq 0x20b90
_ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_: push rbp push r15 push r14 push r12 push rbx sub rsp, 1C0h mov rbx, rdx mov ebp, esi mov r15, rdi cmp qword ptr [rdi+10h], 0 jz loc_409F8 lea r14, [rsp+1E8h+var_120] mov rdi, r14 mov rsi, r15 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&) movzx ecx, byte ptr [r15+0C0h] lea rdi, [rsp+1E8h+var_E0] mov rsi, rbx mov rdx, r14 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; 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) lea rdi, [rsp+1E8h+var_120]; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() lea rsi, [rsp+1E8h+var_E0] mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18sax_parse_internalINS1_28json_sax_dom_callback_parserISF_EEEEbPT_; 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,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>>>::sax_parse_internal<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>>>(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>> *) test bpl, bpl jz loc_409CE mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE9get_tokenEv; 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,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(void) cmp eax, 0Fh jz loc_409CE lea rsi, [r15+28h] mov r14, [r15+48h] lea rdi, [rsp+1E8h+var_178] 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 rax, [r15+48h] mov rcx, [rax+10h] mov qword ptr [rsp+1E8h+var_1C8], rcx; int movups xmm0, xmmword ptr [rax] movaps xmmword ptr [rsp+1E8h+var_1D8], xmm0; char lea rsi, aNamespacedSetN+32h; "value" lea rdi, [rsp+1E8h+var_1B8] lea rdx, [rsp+1E8h+var_1D9] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rdi, [rsp+1E8h+var_198] push 0Fh pop rdx lea rcx, [rsp+1E8h+var_1B8] mov rsi, r15 call _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_; 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,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>>>::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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type,std::string const&) lea rdi, [rsp+1E8h+var_158]; this push 65h ; 'e' pop rsi; int lea rdx, [rsp+1E8h+var_1D8] lea rcx, [rsp+1E8h+var_198] xor r8d, r8d call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ lea rdi, [rsp+1E8h+var_E0] lea rdx, [rsp+1E8h+var_178] lea rcx, [rsp+1E8h+var_158] mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11parse_errorINS1_11parse_errorEEEbmRKSB_RKT_; 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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(ulong,std::string const&,nlohmann::json_abi_v3_11_3::detail::parse_error const&) lea rdi, [rsp+1E8h+var_158]; void * call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception() lea rdi, [rsp+1E8h+var_198]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+1E8h+var_1B8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+1E8h+var_178]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_409CE: mov bpl, [rsp+1E8h+var_68] cmp bpl, 1 jnz loc_40B40 lea r14, [rsp+1E8h+var_F0] push 9 pop rsi mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ENS0_6detail7value_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(nlohmann::json_abi_v3_11_3::detail::value_t) jmp loc_40B57 loc_409F8: mov al, [r15+0C0h] lea r14, [rsp+1E8h+var_D8] mov [r14-8], rbx xorps xmm0, xmm0 movups xmmword ptr [r14], xmm0 movups xmmword ptr [r14+10h], xmm0 mov byte ptr [r14+20h], 0 mov [r14+21h], al lea rsi, [rsp+1E8h+var_E0] mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18sax_parse_internalINS1_19json_sax_dom_parserISF_EEEEbPT_; 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,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>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>>>(nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>> *) test bpl, bpl jz loc_40B01 mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE9get_tokenEv; 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,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(void) cmp eax, 0Fh jz loc_40B01 lea rsi, [r15+28h] mov r12, [r15+48h] lea rdi, [rsp+1E8h+var_178] 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 rax, [r15+48h] mov rcx, [rax+10h] mov qword ptr [rsp+1E8h+var_1C8], rcx; int movups xmm0, xmmword ptr [rax] movaps xmmword ptr [rsp+1E8h+var_1D8], xmm0; char lea rsi, aNamespacedSetN+32h; "value" lea rdi, [rsp+1E8h+var_1B8] lea rdx, [rsp+1E8h+var_1D9] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) lea rdi, [rsp+1E8h+var_198] push 0Fh pop rdx lea rcx, [rsp+1E8h+var_1B8] mov rsi, r15 call _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_; 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,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>>>::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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type,std::string const&) lea rdi, [rsp+1E8h+var_158]; this push 65h ; 'e' pop rsi; int lea rdx, [rsp+1E8h+var_1D8] lea rcx, [rsp+1E8h+var_198] xor r8d, r8d call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ lea rdi, [rsp+1E8h+var_E0] lea rdx, [rsp+1E8h+var_178] lea rcx, [rsp+1E8h+var_158] mov rsi, r12 call _ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11parse_errorINS1_11parse_errorEEEbmRKSB_RKT_; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(ulong,std::string const&,nlohmann::json_abi_v3_11_3::detail::parse_error const&) lea rdi, [rsp+1E8h+var_158]; void * call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception() lea rdi, [rsp+1E8h+var_198]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+1E8h+var_1B8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() lea rdi, [rsp+1E8h+var_178]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() loc_40B01: cmp [rsp+1E8h+var_B8], 1 jnz short loc_40B7E lea rdi, [rsp+1E8h+var_130] push 9 pop rsi call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ENS0_6detail7value_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(nlohmann::json_abi_v3_11_3::detail::value_t) lea r15, [rsp+1E8h+var_130] mov rdi, rbx mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; 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=(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>) mov rdi, r15 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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() mov rdi, r14 call _ZNSt12_Vector_baseIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEESaISF_EED2Ev; std::_Vector_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> *,std::allocator<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> *>>::~_Vector_base() jmp short loc_40B91 loc_40B40: cmp byte ptr [rbx], 9 jnz short loc_40B6A lea r14, [rsp+1E8h+var_100] mov rdi, r14 xor esi, esi call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EDn; 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(decltype(nullptr)) loc_40B57: mov rdi, rbx mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; 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=(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>) mov rdi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; 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() loc_40B6A: lea rdi, [rsp+1E8h+var_E0] call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; 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() test bpl, bpl jz short loc_40B86 jmp short loc_40B91 loc_40B7E: mov rdi, r14 call _ZNSt12_Vector_baseIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEESaISF_EED2Ev; std::_Vector_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> *,std::allocator<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> *>>::~_Vector_base() loc_40B86: push 1 pop rsi mov rdi, rbx 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_40B91: add rsp, 1C0h pop rbx pop r12 pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, [rsp+arg_88]; void * call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception() jmp short loc_40BB6 mov rbx, rax loc_40BB6: lea rdi, [rsp+arg_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_40BC5 mov rbx, rax loc_40BC5: lea rdi, [rsp+arg_28]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_40BD4 mov rbx, rax loc_40BD4: lea rdi, [rsp+arg_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_40C38 jmp short loc_40C35 mov rbx, rax lea rdi, [rsp+arg_88]; void * call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; nlohmann::json_abi_v3_11_3::detail::exception::~exception() jmp short loc_40BF7 mov rbx, rax loc_40BF7: lea rdi, [rsp+arg_48]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_40C06 mov rbx, rax loc_40C06: lea rdi, [rsp+arg_28]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_40C15 mov rbx, rax loc_40C15: lea rdi, [rsp+arg_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_40C45 jmp short loc_40C42 mov rbx, rax lea rdi, [rsp+arg_C0]; this call _ZNSt14_Function_baseD2Ev; std::_Function_base::~_Function_base() jmp short loc_40C52 loc_40C35: mov rbx, rax loc_40C38: mov rdi, r14 call _ZNSt12_Vector_baseIPN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEESaISF_EED2Ev; std::_Vector_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> *,std::allocator<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> *>>::~_Vector_base() jmp short loc_40C52 loc_40C42: mov rbx, rax loc_40C45: lea rdi, [rsp+arg_100] call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; 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() loc_40C52: mov rdi, rbx call __Unwind_Resume
long 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::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>>>::parse( long long a1, char a2, char *a3, int a4, int a5, int a6) { int v7; // edx int v8; // ecx int v9; // r8d int v10; // r9d long long v11; // r14 int v12; // r8d int v13; // r9d char v14; // bp _BYTE *v15; // r14 char v16; // al long long v17; // r12 int v18; // r8d int v19; // r9d long long result; // rax int v21; // [rsp+0h] [rbp-1E8h] int v22; // [rsp+8h] [rbp-1E0h] char v23[16]; // [rsp+10h] [rbp-1D8h] char v24[16]; // [rsp+10h] [rbp-1D8h] int v25[2]; // [rsp+20h] [rbp-1C8h] int v26[2]; // [rsp+20h] [rbp-1C8h] int v27; // [rsp+28h] [rbp-1C0h] long long v28; // [rsp+30h] [rbp-1B8h] BYREF int v29; // [rsp+38h] [rbp-1B0h] int v30; // [rsp+40h] [rbp-1A8h] int v31; // [rsp+48h] [rbp-1A0h] char v32[8]; // [rsp+50h] [rbp-198h] BYREF int v33; // [rsp+58h] [rbp-190h] int v34; // [rsp+60h] [rbp-188h] int v35; // [rsp+68h] [rbp-180h] char v36[8]; // [rsp+70h] [rbp-178h] BYREF int v37; // [rsp+78h] [rbp-170h] int v38; // [rsp+80h] [rbp-168h] int v39; // [rsp+88h] [rbp-160h] char v40[40]; // [rsp+90h] [rbp-158h] BYREF _BYTE v41[16]; // [rsp+B8h] [rbp-130h] BYREF _OWORD v42[2]; // [rsp+C8h] [rbp-120h] BYREF _BYTE v43[16]; // [rsp+E8h] [rbp-100h] BYREF _BYTE v44[16]; // [rsp+F8h] [rbp-F0h] BYREF char *v45; // [rsp+108h] [rbp-E0h] BYREF _BYTE v46[32]; // [rsp+110h] [rbp-D8h] BYREF char v47; // [rsp+130h] [rbp-B8h] char v48; // [rsp+131h] [rbp-B7h] char v49; // [rsp+180h] [rbp-68h] if ( !*(_QWORD *)(a1 + 16) ) { v16 = *(_BYTE *)(a1 + 192); v45 = a3; memset(v46, 0, sizeof(v46)); v47 = 0; v48 = v16; 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>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>>>( a1, (unsigned int)&v45, (_DWORD)a3, a4, a5, a6); if ( a2 && (unsigned int)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>>>::get_token(a1) != 15 ) { v17 = *(_QWORD *)(a1 + 72); 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( v36, a1 + 40); *(_QWORD *)v26 = *(_QWORD *)(a1 + 88); *(_OWORD *)v24 = *(_OWORD *)(a1 + 72); std::string::basic_string<std::allocator<char>>(&v28, (long long)"value"); 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( (unsigned int)v32, a1, 15, (unsigned int)&v28, v18, v19); ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( (nlohmann::json_abi_v3_11_3::detail::parse_error *)v40, 101, v21, v22, v24[0], *(int *)&v24[8], v26[0], v27, v28, v29, v30, v31, v32[0], v33, v34, v35, v36[0], v37, v38, v39, v40[0]); nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>( &v45, v17, v36, v40); nlohmann::json_abi_v3_11_3::detail::exception::~exception(v40); std::string::~string(v32); std::string::~string(&v28); std::string::~string(v36); } if ( v47 == 1 ) { 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( v41, 9LL); 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=( a3, v41); 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)v41); return std::_Vector_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> *,std::allocator<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> *>>::~_Vector_base(v46); } result = std::_Vector_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> *,std::allocator<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> *>>::~_Vector_base(v46); goto LABEL_18; } 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( v42, a1); 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( &v45, a3, v42, *(unsigned __int8 *)(a1 + 192)); std::_Function_base::~_Function_base((std::_Function_base *)v42); 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>>>::sax_parse_internal<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>>>( a1, (unsigned int)&v45, v7, v8, v9, v10); if ( a2 ) { if ( (unsigned int)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>>>::get_token(a1) != 15 ) { v11 = *(_QWORD *)(a1 + 72); 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( v36, a1 + 40); *(_QWORD *)v25 = *(_QWORD *)(a1 + 88); *(_OWORD *)v23 = *(_OWORD *)(a1 + 72); std::string::basic_string<std::allocator<char>>(&v28, (long long)"value"); 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( (unsigned int)v32, a1, 15, (unsigned int)&v28, v12, v13); ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( (nlohmann::json_abi_v3_11_3::detail::parse_error *)v40, 101, v21, v22, v23[0], *(int *)&v23[8], v25[0], v27, v28, v29, v30, v31, v32[0], v33, v34, v35, v36[0], v37, v38, v39, v40[0]); 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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>( &v45, v11, v36, v40); nlohmann::json_abi_v3_11_3::detail::exception::~exception(v40); std::string::~string(v32); std::string::~string(&v28); std::string::~string(v36); } } v14 = v49; if ( v49 == 1 ) { v15 = v44; 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( v44, 9LL); } else { if ( *a3 != 9 ) goto LABEL_15; v15 = v43; 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)v43); } 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=( a3, v15); 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)v15); LABEL_15: result = 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(&v45); if ( !v14 ) LABEL_18: 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(a3); return result; }
6,294
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>>>>>::parse(bool, 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>&)
monkey531[P]llama/common/./json.hpp
void parse(const bool strict, BasicJsonType& result) { if (callback) { json_sax_dom_callback_parser<BasicJsonType> sdp(result, callback, allow_exceptions); sax_parse_internal(&sdp); // in strict mode, input must be completely read if (strict && (get_token() != token_type::end_of_input)) { sdp.parse_error(m_lexer.get_position(), m_lexer.get_token_string(), parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), nullptr)); } // in case of an error, return discarded value if (sdp.is_errored()) { result = value_t::discarded; return; } // set top-level value to null if it was discarded by the callback // function if (result.is_discarded()) { result = nullptr; } } else { json_sax_dom_parser<BasicJsonType> sdp(result, allow_exceptions); sax_parse_internal(&sdp); // in strict mode, input must be completely read if (strict && (get_token() != token_type::end_of_input)) { sdp.parse_error(m_lexer.get_position(), m_lexer.get_token_string(), parse_error::create(101, m_lexer.get_position(), exception_message(token_type::end_of_input, "value"), nullptr)); } // in case of an error, return discarded value if (sdp.is_errored()) { result = value_t::discarded; return; } } result.assert_invariant(); }
O3
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>>>>>::parse(bool, 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>&): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x1b0, %rsp # imm = 0x1B0 movq %rdx, %rbx movl %esi, %ebp movq %rdi, %r14 cmpq $0x0, 0x10(%rdi) je 0x44909 leaq 0xa8(%rsp), %r15 movq %r15, %rdi movq %r14, %rsi callq 0x446a2 movzbl 0xc0(%r14), %ecx leaq 0xc8(%rsp), %rdi movq %rbx, %rsi movq %r15, %rdx callq 0x45a38 movq 0xb8(%rsp), %rax testq %rax, %rax je 0x4476f leaq 0xa8(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax leaq 0xc8(%rsp), %rsi movq %r14, %rdi callq 0x45b32 testb %bpl, %bpl je 0x448ab leaq 0x28(%r14), %r12 movq %r12, %rdi callq 0x44e3a movl %eax, 0x20(%r14) cmpl $0xf, %eax je 0x448ab movq 0x48(%r14), %r15 leaq 0x48(%rsp), %rdi movq %r12, %rsi callq 0x46932 leaq 0x48(%r14), %rax movq 0x10(%rax), %rcx movq %rcx, 0xa0(%rsp) movups (%rax), %xmm0 movaps %xmm0, 0x90(%rsp) leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) leaq 0x76e4a(%rip), %rsi # 0xbb628 leaq 0x76e48(%rip), %rdx # 0xbb62d leaq 0x8(%rsp), %rdi callq 0x590a2 leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rcx movq %r14, %rsi movl $0xf, %edx callq 0x46bea leaq 0x68(%rsp), %rdi leaq 0x90(%rsp), %rdx leaq 0x28(%rsp), %rcx movl $0x65, %esi xorl %r8d, %r8d callq 0x469ec leaq 0xc8(%rsp), %rdi leaq 0x48(%rsp), %rdx leaq 0x68(%rsp), %rcx movq %r15, %rsi callq 0x468ec leaq 0xa9ac2(%rip), %rax # 0xee308 leaq 0x78(%rsp), %rdi movq %rax, -0x10(%rdi) callq 0x18d30 leaq 0x68(%rsp), %rdi callq 0x18c30 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x44879 movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x44890 movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x448ab movq 0x58(%rsp), %rsi incq %rsi callq 0x186a0 cmpb $0x0, 0x140(%rsp) je 0x44ad1 leaq 0x1a0(%rsp), %r14 movb $0x9, (%r14) movq $0x0, 0x8(%r14) movq %r14, %rdi movl $0x1, %esi callq 0x3d970 movq %rbx, %rdi movq %r14, %rsi callq 0x46ee0 movq %r14, %rdi xorl %esi, %esi callq 0x3d970 movq %r14, %rdi callq 0x4a5c0 leaq 0xc8(%rsp), %rdi callq 0x46f2a jmp 0x44b3b movb 0xc0(%r14), %al leaq 0xc8(%rsp), %rsi movq %rbx, (%rsi) xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rsi) movups %xmm0, 0x18(%rsi) movb $0x0, 0x28(%rsi) movb %al, 0x29(%rsi) movq %r14, %rdi callq 0x46faa testb %bpl, %bpl je 0x44a61 leaq 0x28(%r14), %r12 movq %r12, %rdi callq 0x44e3a movl %eax, 0x20(%r14) cmpl $0xf, %eax je 0x44a61 movq 0x48(%r14), %r15 leaq 0x48(%rsp), %rdi movq %r12, %rsi callq 0x46932 leaq 0x48(%r14), %rax movq 0x10(%rax), %rcx movq %rcx, 0xa0(%rsp) movups (%rax), %xmm0 movaps %xmm0, 0x90(%rsp) leaq 0x18(%rsp), %r12 movq %r12, -0x10(%r12) leaq 0x76c94(%rip), %rsi # 0xbb628 leaq 0x76c92(%rip), %rdx # 0xbb62d leaq 0x8(%rsp), %rdi callq 0x590a2 leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rcx movq %r14, %rsi movl $0xf, %edx callq 0x46bea leaq 0x68(%rsp), %rdi leaq 0x90(%rsp), %rdx leaq 0x28(%rsp), %rcx movl $0x65, %esi xorl %r8d, %r8d callq 0x469ec leaq 0xc8(%rsp), %rdi leaq 0x48(%rsp), %rdx leaq 0x68(%rsp), %rcx movq %r15, %rsi callq 0x47d84 leaq 0xa990c(%rip), %rax # 0xee308 leaq 0x78(%rsp), %rdi movq %rax, -0x10(%rdi) callq 0x18d30 leaq 0x68(%rsp), %rdi callq 0x18c30 leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x44a2f movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x44a46 movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x44a61 movq 0x58(%rsp), %rsi incq %rsi callq 0x186a0 movb 0xf0(%rsp), %bpl cmpb $0x1, %bpl jne 0x44aad leaq 0x180(%rsp), %r14 movb $0x9, (%r14) movq $0x0, 0x8(%r14) movq %r14, %rdi movl $0x1, %esi callq 0x3d970 movq %rbx, %rdi movq %r14, %rsi callq 0x46ee0 movq %r14, %rdi xorl %esi, %esi callq 0x3d970 movq %r14, %rdi callq 0x4a5c0 movq 0xd0(%rsp), %rdi testq %rdi, %rdi je 0x44aca movq 0xe0(%rsp), %rsi subq %rdi, %rsi callq 0x186a0 testb %bpl, %bpl je 0x44b2e jmp 0x44b3b cmpb $0x9, (%rbx) jne 0x44b21 leaq 0x190(%rsp), %r14 movb $0x0, (%r14) movq $0x0, 0x8(%r14) movq %r14, %rdi movl $0x1, %esi callq 0x3d970 movq %r14, %rdi movl $0x1, %esi callq 0x3d970 movq %rbx, %rdi movq %r14, %rsi callq 0x46ee0 movq %r14, %rdi xorl %esi, %esi callq 0x3d970 movq %r14, %rdi callq 0x4a5c0 leaq 0xc8(%rsp), %rdi callq 0x46f2a movq %rbx, %rdi movl $0x1, %esi callq 0x3d970 addq $0x1b0, %rsp # imm = 0x1B0 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0xa97b3(%rip), %rax # 0xee308 leaq 0x78(%rsp), %rdi movq %rax, -0x10(%rdi) callq 0x18d30 leaq 0x68(%rsp), %rdi callq 0x18c30 jmp 0x44b72 movq %rax, %rbx leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x44b92 movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x44b92 movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x44bae movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x44bae movq %rax, %rbx leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x44c5e movq 0x58(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x44c5e jmp 0x44c5b movq %rax, %rbx leaq 0xa9727(%rip), %rax # 0xee308 leaq 0x78(%rsp), %rdi movq %rax, -0x10(%rdi) callq 0x18d30 leaq 0x68(%rsp), %rdi callq 0x18c30 jmp 0x44bfe movq %rax, %rbx leaq 0x38(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x44c1e movq 0x38(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x44c1e movq %rax, %rbx movq 0x8(%rsp), %rdi cmpq %r12, %rdi je 0x44c3a movq 0x18(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x44c3a movq %rax, %rbx leaq 0x58(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x44cac movq 0x58(%rsp), %rsi incq %rsi callq 0x186a0 jmp 0x44cac jmp 0x44ca9 jmp 0x44ca1 movq %rax, %rbx movq 0xd0(%rsp), %rdi testq %rdi, %rdi je 0x44cb9 movq 0xe0(%rsp), %rsi subq %rdi, %rsi callq 0x186a0 jmp 0x44cb9 movq %rax, %rbx movq 0xb8(%rsp), %rax testq %rax, %rax je 0x44cb9 leaq 0xa8(%rsp), %rdi movq %rdi, %rsi movl $0x3, %edx callq *%rax jmp 0x44cb9 movq %rax, %rdi callq 0x2ad73 movq %rax, %rbx leaq 0xc8(%rsp), %rdi callq 0x46f2a movq %rbx, %rdi callq 0x18b90 nop
_ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE5parseEbRSF_: push rbp push r15 push r14 push r12 push rbx sub rsp, 1B0h mov rbx, rdx mov ebp, esi mov r14, rdi cmp qword ptr [rdi+10h], 0 jz loc_44909 lea r15, [rsp+1D8h+var_130] mov rdi, r15 mov rsi, r14 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&) movzx ecx, byte ptr [r14+0C0h] lea rdi, [rsp+1D8h+var_110] mov rsi, rbx mov rdx, r15 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; 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) mov rax, [rsp+1D8h+var_120] test rax, rax jz short loc_4476F lea rdi, [rsp+1D8h+var_130] mov rsi, rdi mov edx, 3 call rax loc_4476F: lea rsi, [rsp+1D8h+var_110] mov rdi, r14; int call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18sax_parse_internalINS1_28json_sax_dom_callback_parserISF_EEEEbPT_; 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,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>>>::sax_parse_internal<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>>>(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>> *) test bpl, bpl jz loc_448AB lea r12, [r14+28h] mov rdi, r12 call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE4scanEv; 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>>>::scan(void) mov [r14+20h], eax cmp eax, 0Fh jz loc_448AB mov r15, [r14+48h] lea rdi, [rsp+1D8h+var_190] mov rsi, r12 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 rax, [r14+48h] mov rcx, [rax+10h] mov [rsp+1D8h+var_138], rcx movups xmm0, xmmword ptr [rax] movaps xmmword ptr [rsp+1D8h+var_148], xmm0; __int64 lea r12, [rsp+1D8h+var_1C0] mov [r12-10h], r12 lea rsi, aNamespacedSetN+32h; "value" lea rdx, aNamespacedSetN+37h; "" lea rdi, [rsp+1D8h+var_1D0] 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) lea rdi, [rsp+1D8h+var_1B0]; int lea rcx, [rsp+1D8h+var_1D0]; int mov rsi, r14; int mov edx, 0Fh; int call _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_; 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,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>>>::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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type,std::string const&) lea rdi, [rsp+1D8h+var_170]; this lea rdx, [rsp+1D8h+var_148]; int lea rcx, [rsp+1D8h+var_1B0] mov esi, 65h ; 'e'; int xor r8d, r8d call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ lea rdi, [rsp+1D8h+var_110] lea rdx, [rsp+1D8h+var_190] lea rcx, [rsp+1D8h+var_170] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11parse_errorINS1_11parse_errorEEEbmRKSB_RKT_; 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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(ulong,std::string const&,nlohmann::json_abi_v3_11_3::detail::parse_error const&) lea rax, off_EE308 lea rdi, [rsp+1D8h+var_160]; this mov [rdi-10h], rax call _ZNSt13runtime_errorD1Ev; std::runtime_error::~runtime_error() lea rdi, [rsp+1D8h+var_170]; this call __ZNSt9exceptionD2Ev; std::exception::~exception() lea rax, [rsp+1D8h+var_1A0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_44879 mov rsi, [rsp+1D8h+var_1A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_44879: mov rdi, [rsp+1D8h+var_1D0]; void * cmp rdi, r12 jz short loc_44890 mov rsi, [rsp+1D8h+var_1C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_44890: lea rax, [rsp+1D8h+var_180] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_448AB mov rsi, [rsp+1D8h+var_180] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_448AB: cmp [rsp+1D8h+var_98], 0 jz loc_44AD1 lea r14, [rsp+1D8h+var_38] mov byte ptr [r14], 9 mov qword ptr [r14+8], 0 mov rdi, r14 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, rbx mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; 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=(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>) 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 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() lea rdi, [rsp+1D8h+var_110] call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; 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() jmp loc_44B3B loc_44909: mov al, [r14+0C0h] lea rsi, [rsp+1D8h+var_110] mov [rsi], rbx xorps xmm0, xmm0 movups xmmword ptr [rsi+8], xmm0 movups xmmword ptr [rsi+18h], xmm0 mov byte ptr [rsi+28h], 0 mov [rsi+29h], al mov rdi, r14; int call _ZN8nlohmann16json_abi_v3_11_36detail6parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18sax_parse_internalINS1_19json_sax_dom_parserISF_EEEEbPT_; 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,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>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>>>(nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>> *) test bpl, bpl jz loc_44A61 lea r12, [r14+28h] mov rdi, r12 call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE4scanEv; 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>>>::scan(void) mov [r14+20h], eax cmp eax, 0Fh jz loc_44A61 mov r15, [r14+48h] lea rdi, [rsp+1D8h+var_190] mov rsi, r12 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 rax, [r14+48h] mov rcx, [rax+10h] mov [rsp+1D8h+var_138], rcx movups xmm0, xmmword ptr [rax] movaps xmmword ptr [rsp+1D8h+var_148], xmm0; __int64 lea r12, [rsp+1D8h+var_1C0] mov [r12-10h], r12 lea rsi, aNamespacedSetN+32h; "value" lea rdx, aNamespacedSetN+37h; "" lea rdi, [rsp+1D8h+var_1D0] 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) lea rdi, [rsp+1D8h+var_1B0]; int lea rcx, [rsp+1D8h+var_1D0]; int mov rsi, r14; int mov edx, 0Fh; int call _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_; 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,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>>>::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::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::token_type,std::string const&) lea rdi, [rsp+1D8h+var_170]; this lea rdx, [rsp+1D8h+var_148]; int lea rcx, [rsp+1D8h+var_1B0] mov esi, 65h ; 'e'; int xor r8d, r8d call _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ lea rdi, [rsp+1D8h+var_110] lea rdx, [rsp+1D8h+var_190] lea rcx, [rsp+1D8h+var_170] mov rsi, r15 call _ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE11parse_errorINS1_11parse_errorEEEbmRKSB_RKT_; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>(ulong,std::string const&,nlohmann::json_abi_v3_11_3::detail::parse_error const&) lea rax, off_EE308 lea rdi, [rsp+1D8h+var_160]; this mov [rdi-10h], rax call _ZNSt13runtime_errorD1Ev; std::runtime_error::~runtime_error() lea rdi, [rsp+1D8h+var_170]; this call __ZNSt9exceptionD2Ev; std::exception::~exception() lea rax, [rsp+1D8h+var_1A0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_44A2F mov rsi, [rsp+1D8h+var_1A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_44A2F: mov rdi, [rsp+1D8h+var_1D0]; void * cmp rdi, r12 jz short loc_44A46 mov rsi, [rsp+1D8h+var_1C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_44A46: lea rax, [rsp+1D8h+var_180] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_44A61 mov rsi, [rsp+1D8h+var_180] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_44A61: mov bpl, [rsp+1D8h+var_E8] cmp bpl, 1 jnz short loc_44AAD lea r14, [rsp+1D8h+var_58] mov byte ptr [r14], 9 mov qword ptr [r14+8], 0 mov rdi, r14 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, rbx mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; 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=(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>) 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 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() loc_44AAD: mov rdi, [rsp+1D8h+var_108]; void * test rdi, rdi jz short loc_44ACA mov rsi, [rsp+1D8h+var_F8] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_44ACA: test bpl, bpl jz short loc_44B2E jmp short loc_44B3B loc_44AD1: cmp byte ptr [rbx], 9 jnz short loc_44B21 lea r14, [rsp+1D8h+var_48] mov byte ptr [r14], 0 mov qword ptr [r14+8], 0 mov rdi, r14 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 _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, rbx mov rsi, r14 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEaSESD_; 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=(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>) 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 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() loc_44B21: lea rdi, [rsp+1D8h+var_110] call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; 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() loc_44B2E: 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_44B3B: add rsp, 1B0h pop rbx pop r12 pop r14 pop r15 pop rbp retn mov rbx, rax lea rax, off_EE308 lea rdi, [rsp+1D8h+var_160]; this mov [rdi-10h], rax call _ZNSt13runtime_errorD1Ev; std::runtime_error::~runtime_error() lea rdi, [rsp+1D8h+var_170]; this call __ZNSt9exceptionD2Ev; std::exception::~exception() jmp short loc_44B72 mov rbx, rax loc_44B72: lea rax, [rsp+1D8h+var_1A0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_44B92 mov rsi, [rsp+1D8h+var_1A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_44B92 mov rbx, rax loc_44B92: mov rdi, [rsp+1D8h+var_1D0]; void * cmp rdi, r12 jz short loc_44BAE mov rsi, [rsp+1D8h+var_1C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_44BAE mov rbx, rax loc_44BAE: lea rax, [rsp+1D8h+var_180] mov rdi, [rax-10h]; void * cmp rdi, rax jz loc_44C5E mov rsi, [rsp+1D8h+var_180] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp loc_44C5E jmp loc_44C5B mov rbx, rax lea rax, off_EE308 lea rdi, [rsp+1D8h+var_160]; this mov [rdi-10h], rax call _ZNSt13runtime_errorD1Ev; std::runtime_error::~runtime_error() lea rdi, [rsp+1D8h+var_170]; this call __ZNSt9exceptionD2Ev; std::exception::~exception() jmp short loc_44BFE mov rbx, rax loc_44BFE: lea rax, [rsp+1D8h+var_1A0] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_44C1E mov rsi, [rsp+1D8h+var_1A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_44C1E mov rbx, rax loc_44C1E: mov rdi, [rsp+1D8h+var_1D0]; void * cmp rdi, r12 jz short loc_44C3A mov rsi, [rsp+1D8h+var_1C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_44C3A mov rbx, rax loc_44C3A: lea rax, [rsp+1D8h+var_180] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_44CAC mov rsi, [rsp+1D8h+var_180] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_44CAC jmp short loc_44CA9 jmp short loc_44CA1 loc_44C5B: mov rbx, rax loc_44C5E: mov rdi, [rsp+1D8h+var_108]; void * test rdi, rdi jz short loc_44CB9 mov rsi, [rsp+1D8h+var_F8] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_44CB9 mov rbx, rax mov rax, [rsp+1D8h+var_120] test rax, rax jz short loc_44CB9 lea rdi, [rsp+1D8h+var_130] mov rsi, rdi mov edx, 3 call rax jmp short loc_44CB9 loc_44CA1: mov rdi, rax call __clang_call_terminate loc_44CA9: mov rbx, rax loc_44CAC: lea rdi, [rsp+1D8h+var_110] call _ZN8nlohmann16json_abi_v3_11_36detail28json_sax_dom_callback_parserINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEED2Ev; 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() loc_44CB9: mov rdi, rbx call __Unwind_Resume
void 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>>>::parse( long long a1, char a2, char *a3) { char **v5; // rsi int v6; // eax char **v7; // r15 int v8; // r8d int v9; // r9d char v10; // al int v11; // eax long long v12; // r15 int v13; // r8d int v14; // r9d char v15; // bp void *v16; // [rsp+0h] [rbp-1D8h] void *v17; // [rsp+0h] [rbp-1D8h] void *v18; // [rsp+0h] [rbp-1D8h] void *v19; // [rsp+8h] [rbp-1D0h] BYREF long long v20; // [rsp+10h] [rbp-1C8h] long long v21; // [rsp+18h] [rbp-1C0h] BYREF void *v22; // [rsp+20h] [rbp-1B8h] long long *v23; // [rsp+28h] [rbp-1B0h] BYREF long long v24; // [rsp+30h] [rbp-1A8h] long long v25; // [rsp+38h] [rbp-1A0h] BYREF long long v26; // [rsp+40h] [rbp-198h] long long *v27; // [rsp+48h] [rbp-190h] BYREF long long v28; // [rsp+50h] [rbp-188h] long long v29; // [rsp+58h] [rbp-180h] BYREF int v30; // [rsp+60h] [rbp-178h] void ( **v31)(nlohmann::json_abi_v3_11_3::detail::exception *__hidden); // [rsp+68h] [rbp-170h] BYREF long long v32; // [rsp+70h] [rbp-168h] int v33; // [rsp+78h] [rbp-160h] BYREF int v34; // [rsp+80h] [rbp-158h] int v35; // [rsp+88h] [rbp-150h] long long v36[2]; // [rsp+90h] [rbp-148h] BYREF long long v37; // [rsp+A0h] [rbp-138h] __int128 v38; // [rsp+A8h] [rbp-130h] BYREF void ( *v39)(__int128 *, __int128 *, long long); // [rsp+B8h] [rbp-120h] char *v40; // [rsp+C8h] [rbp-110h] BYREF __int128 v41; // [rsp+D0h] [rbp-108h] __int128 v42; // [rsp+E0h] [rbp-F8h] char v43; // [rsp+F0h] [rbp-E8h] char v44; // [rsp+F1h] [rbp-E7h] char v45; // [rsp+140h] [rbp-98h] char v46[8]; // [rsp+180h] [rbp-58h] BYREF long long v47; // [rsp+188h] [rbp-50h] char v48[8]; // [rsp+190h] [rbp-48h] BYREF long long v49; // [rsp+198h] [rbp-40h] char v50[8]; // [rsp+1A0h] [rbp-38h] BYREF long long v51; // [rsp+1A8h] [rbp-30h] if ( *(_QWORD *)(a1 + 16) ) { 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( &v38, a1); 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( &v40, a3, &v38, *(unsigned __int8 *)(a1 + 192)); if ( v39 ) v39(&v38, &v38, 3LL); v5 = &v40; 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>>>::sax_parse_internal<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>>>(a1); if ( a2 ) { v6 = 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>>>::scan(a1 + 40); *(_DWORD *)(a1 + 32) = v6; if ( v6 != 15 ) { v7 = *(char ***)(a1 + 72); 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( &v27, a1 + 40); v37 = *(_QWORD *)(a1 + 88); *(_OWORD *)v36 = *(_OWORD *)(a1 + 72); v19 = &v21; std::string::_M_construct<char const*>(&v19, "value", ""); 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( (int)&v23, a1, 15, (int)&v19, v8, v9, v16, (int)v19, v20, v21, (int)v22, (int)v23, v24, v25, v26); ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( (nlohmann::json_abi_v3_11_3::detail::exception *)&v31, 101, (int)v36, v17, (int)v19, v20, v21, v22, (int)v23, v24, v25, v26, (int)v27, v28, v29, v30, (int)v31, v32, v33, v34, v35, v36[0]); v5 = v7; 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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>( &v40, v7, &v27, &v31); v31 = off_EE308; std::runtime_error::~runtime_error((std::runtime_error *)&v33); std::exception::~exception((std::exception *)&v31); if ( v23 != &v25 ) { v5 = (char **)(v25 + 1); operator delete(v23, v25 + 1); } if ( v19 != &v21 ) { v5 = (char **)(v21 + 1); operator delete(v19, v21 + 1); } if ( v27 != &v29 ) { v5 = (char **)(v29 + 1); operator delete(v27, v29 + 1); } } } if ( v45 ) { v50[0] = 9; v51 = 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(v50); 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=( a3, v50); 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(v50); 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(v50); 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( &v40, 0LL); return; } if ( *a3 == 9 ) { v48[0] = 0; v49 = 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(v48); 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(v48); 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=( a3, v48); v5 = 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(v48); 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(v48); } 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( &v40, v5); goto LABEL_31; } v10 = *(_BYTE *)(a1 + 192); v40 = a3; v41 = 0LL; v42 = 0LL; v43 = 0; v44 = v10; 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>>>::sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>>>(a1); if ( a2 ) { v11 = 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>>>::scan(a1 + 40); *(_DWORD *)(a1 + 32) = v11; if ( v11 != 15 ) { v12 = *(_QWORD *)(a1 + 72); 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( &v27, a1 + 40); v37 = *(_QWORD *)(a1 + 88); *(_OWORD *)v36 = *(_OWORD *)(a1 + 72); v19 = &v21; std::string::_M_construct<char const*>(&v19, "value", ""); 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( (int)&v23, a1, 15, (int)&v19, v13, v14, v16, (int)v19, v20, v21, (int)v22, (int)v23, v24, v25, v26); ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_( (nlohmann::json_abi_v3_11_3::detail::exception *)&v31, 101, (int)v36, v18, (int)v19, v20, v21, v22, (int)v23, v24, v25, v26, (int)v27, v28, v29, v30, (int)v31, v32, v33, v34, v35, v36[0]); nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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>>::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error>( &v40, v12, &v27, &v31); v31 = off_EE308; std::runtime_error::~runtime_error((std::runtime_error *)&v33); std::exception::~exception((std::exception *)&v31); if ( v23 != &v25 ) operator delete(v23, v25 + 1); if ( v19 != &v21 ) operator delete(v19, v21 + 1); if ( v27 != &v29 ) operator delete(v27, v29 + 1); } } v15 = v43; if ( v43 == 1 ) { v46[0] = 9; v47 = 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(v46); 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=( a3, v46); 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(v46); 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(v46); } if ( (_QWORD)v41 ) operator delete((void *)v41, v42 - v41); if ( !v15 ) LABEL_31: 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(a3); }
parse: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x1b0 MOV RBX,RDX MOV EBP,ESI MOV R14,RDI CMP qword ptr [RDI + 0x10],0x0 JZ 0x00144909 LEA R15,[RSP + 0xa8] MOV RDI,R15 MOV RSI,R14 CALL 0x001446a2 MOVZX ECX,byte ptr [R14 + 0xc0] LAB_0014473d: LEA RDI,[RSP + 0xc8] MOV RSI,RBX MOV RDX,R15 CALL 0x00145a38 MOV RAX,qword ptr [RSP + 0xb8] TEST RAX,RAX JZ 0x0014476f LAB_0014475d: LEA RDI,[RSP + 0xa8] MOV RSI,RDI MOV EDX,0x3 CALL RAX LAB_0014476f: LEA RSI,[RSP + 0xc8] MOV RDI,R14 CALL 0x00145b32 TEST BPL,BPL JZ 0x001448ab LEA R12,[R14 + 0x28] MOV RDI,R12 CALL 0x00144e3a MOV dword ptr [R14 + 0x20],EAX CMP EAX,0xf JZ 0x001448ab MOV R15,qword ptr [R14 + 0x48] LAB_001447a5: LEA RDI,[RSP + 0x48] MOV RSI,R12 CALL 0x00146932 LEA RAX,[R14 + 0x48] MOV RCX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0xa0],RCX MOVUPS XMM0,xmmword ptr [RAX] MOVAPS xmmword ptr [RSP + 0x90],XMM0 LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 LAB_001447d7: LEA RSI,[0x1bb628] LEA RDX,[0x1bb62d] LEA RDI,[RSP + 0x8] CALL 0x001590a2 LAB_001447ef: LEA RDI,[RSP + 0x28] LEA RCX,[RSP + 0x8] MOV RSI,R14 MOV EDX,0xf CALL 0x00146bea LAB_00144806: LEA RDI,[RSP + 0x68] LEA RDX,[RSP + 0x90] LEA RCX,[RSP + 0x28] MOV ESI,0x65 XOR R8D,R8D CALL 0x001469ec LAB_00144825: LEA RDI,[RSP + 0xc8] LEA RDX,[RSP + 0x48] LEA RCX,[RSP + 0x68] MOV RSI,R15 CALL 0x001468ec LEA RAX,[0x1ee308] LEA RDI,[RSP + 0x78] MOV qword ptr [RDI + -0x10],RAX CALL 0x00118d30 LEA RDI,[RSP + 0x68] CALL 0x00118c30 LEA RAX,[RSP + 0x38] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00144879 MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x001186a0 LAB_00144879: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x00144890 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001186a0 LAB_00144890: LEA RAX,[RSP + 0x58] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x001448ab MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x001186a0 LAB_001448ab: CMP byte ptr [RSP + 0x140],0x0 JZ 0x00144ad1 LEA R14,[RSP + 0x1a0] MOV byte ptr [R14],0x9 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R14 MOV ESI,0x1 CALL 0x0013d970 MOV RDI,RBX MOV RSI,R14 CALL 0x00146ee0 MOV RDI,R14 XOR ESI,ESI CALL 0x0013d970 MOV RDI,R14 CALL 0x0014a5c0 LEA RDI,[RSP + 0xc8] CALL 0x00146f2a JMP 0x00144b3b LAB_00144909: MOV AL,byte ptr [R14 + 0xc0] LEA RSI,[RSP + 0xc8] MOV qword ptr [RSI],RBX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RSI + 0x8],XMM0 MOVUPS xmmword ptr [RSI + 0x18],XMM0 MOV byte ptr [RSI + 0x28],0x0 MOV byte ptr [RSI + 0x29],AL LAB_0014492d: MOV RDI,R14 CALL 0x00146faa TEST BPL,BPL JZ 0x00144a61 LEA R12,[R14 + 0x28] MOV RDI,R12 CALL 0x00144e3a MOV dword ptr [R14 + 0x20],EAX CMP EAX,0xf JZ 0x00144a61 MOV R15,qword ptr [R14 + 0x48] LAB_0014495b: LEA RDI,[RSP + 0x48] MOV RSI,R12 CALL 0x00146932 LEA RAX,[R14 + 0x48] MOV RCX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0xa0],RCX MOVUPS XMM0,xmmword ptr [RAX] MOVAPS xmmword ptr [RSP + 0x90],XMM0 LEA R12,[RSP + 0x18] MOV qword ptr [R12 + -0x10],R12 LAB_0014498d: LEA RSI,[0x1bb628] LEA RDX,[0x1bb62d] LEA RDI,[RSP + 0x8] CALL 0x001590a2 LAB_001449a5: LEA RDI,[RSP + 0x28] LEA RCX,[RSP + 0x8] MOV RSI,R14 MOV EDX,0xf CALL 0x00146bea LAB_001449bc: LEA RDI,[RSP + 0x68] LEA RDX,[RSP + 0x90] LEA RCX,[RSP + 0x28] MOV ESI,0x65 XOR R8D,R8D CALL 0x001469ec LAB_001449db: LEA RDI,[RSP + 0xc8] LEA RDX,[RSP + 0x48] LEA RCX,[RSP + 0x68] MOV RSI,R15 CALL 0x00147d84 LEA RAX,[0x1ee308] LEA RDI,[RSP + 0x78] MOV qword ptr [RDI + -0x10],RAX CALL 0x00118d30 LEA RDI,[RSP + 0x68] CALL 0x00118c30 LEA RAX,[RSP + 0x38] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00144a2f MOV RSI,qword ptr [RSP + 0x38] INC RSI CALL 0x001186a0 LAB_00144a2f: MOV RDI,qword ptr [RSP + 0x8] CMP RDI,R12 JZ 0x00144a46 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x001186a0 LAB_00144a46: LEA RAX,[RSP + 0x58] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00144a61 MOV RSI,qword ptr [RSP + 0x58] INC RSI CALL 0x001186a0 LAB_00144a61: MOV BPL,byte ptr [RSP + 0xf0] CMP BPL,0x1 JNZ 0x00144aad LEA R14,[RSP + 0x180] MOV byte ptr [R14],0x9 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R14 MOV ESI,0x1 CALL 0x0013d970 MOV RDI,RBX MOV RSI,R14 CALL 0x00146ee0 MOV RDI,R14 XOR ESI,ESI CALL 0x0013d970 MOV RDI,R14 CALL 0x0014a5c0 LAB_00144aad: MOV RDI,qword ptr [RSP + 0xd0] TEST RDI,RDI JZ 0x00144aca MOV RSI,qword ptr [RSP + 0xe0] SUB RSI,RDI CALL 0x001186a0 LAB_00144aca: TEST BPL,BPL JZ 0x00144b2e JMP 0x00144b3b LAB_00144ad1: CMP byte ptr [RBX],0x9 JNZ 0x00144b21 LEA R14,[RSP + 0x190] MOV byte ptr [R14],0x0 MOV qword ptr [R14 + 0x8],0x0 MOV RDI,R14 MOV ESI,0x1 CALL 0x0013d970 MOV RDI,R14 MOV ESI,0x1 CALL 0x0013d970 MOV RDI,RBX MOV RSI,R14 CALL 0x00146ee0 MOV RDI,R14 XOR ESI,ESI CALL 0x0013d970 MOV RDI,R14 CALL 0x0014a5c0 LAB_00144b21: LEA RDI,[RSP + 0xc8] CALL 0x00146f2a LAB_00144b2e: MOV RDI,RBX MOV ESI,0x1 CALL 0x0013d970 LAB_00144b3b: ADD RSP,0x1b0 POP RBX POP R12 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 > > >::parse(bool, 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>&) */ void __thiscall 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>>> ::parse(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>>> *this,bool param_1,basic_json *param_2) { ulong uVar1; char cVar2; int iVar3; bool bVar4; long *local_1d0 [2]; long local_1c0 [2]; long *local_1b0 [2]; long local_1a0 [2]; long *local_190 [2]; long local_180 [2]; int **local_170 [2]; runtime_error local_160 [24]; int4 local_148; int4 uStack_144; int4 uStack_140; int4 uStack_13c; int8 local_138; 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>&)> local_130 [16]; code *local_120; basic_json *local_110; void *local_108; int8 uStack_100; long local_f8; int8 uStack_f0; char local_e8; 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>>> local_e7; char local_98; data local_58 [8]; int8 local_50; data local_48 [8]; int8 local_40; data local_38 [8]; int8 local_30; if (*(long *)(this + 0x10) == 0) { local_e7 = this[0xc0]; local_108 = (void *)0x0; uStack_100 = 0; local_f8 = 0; uStack_f0 = 0; local_e8 = '\0'; local_110 = param_2; /* try { // try from 0014492d to 00144949 has its CatchHandler @ 00144c5b */ sax_parse_internal<nlohmann::json_abi_v3_11_3::detail::json_sax_dom_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,(json_sax_dom_parser *)&local_110); if (param_1) { iVar3 = 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>>> ::scan((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 + 0x28)); *(int *)(this + 0x20) = iVar3; if (iVar3 != 0xf) { uVar1 = *(ulong *)(this + 0x48); /* try { // try from 0014495b to 00144967 has its CatchHandler @ 00144bd2 */ 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_138 = *(int8 *)(this + 0x58); local_148 = *(int4 *)(this + 0x48); uStack_144 = *(int4 *)(this + 0x4c); uStack_140 = *(int4 *)(this + 0x50); uStack_13c = *(int4 *)(this + 0x54); /* try { // try from 0014498d to 001449a4 has its CatchHandler @ 00144bab */ local_1d0[0] = local_1c0; std::__cxx11::string::_M_construct<char_const*>(local_1d0,"value",""); /* try { // try from 001449a5 to 001449bb has its CatchHandler @ 00144b8f */ exception_message(local_1b0,this,0xf,local_1d0); /* try { // try from 001449bc to 001449da has its CatchHandler @ 00144b6f */ _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ (local_170,0x65,&local_148,local_1b0,0); /* try { // try from 001449db to 001449f4 has its CatchHandler @ 00144b4b */ json_sax_dom_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>> ::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error> ((json_sax_dom_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>> *)&local_110,uVar1,(string *)local_190,(parse_error *)local_170); local_170[0] = &PTR__exception_001ee308; std::runtime_error::~runtime_error(local_160); std::exception::~exception((exception *)local_170); if (local_1b0[0] != local_1a0) { operator_delete(local_1b0[0],local_1a0[0] + 1); } if (local_1d0[0] != local_1c0) { operator_delete(local_1d0[0],local_1c0[0] + 1); } if (local_190[0] != local_180) { operator_delete(local_190[0],local_180[0] + 1); } } } cVar2 = local_e8; if (local_e8 == '\x01') { local_58[0] = (data)0x9; local_50 = 0; bVar4 = SUB81(local_58,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(bVar4); 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=((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_2,local_58); 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(bVar4); 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); } if (local_108 != (void *)0x0) { operator_delete(local_108,local_f8 - (long)local_108); } if (cVar2 != '\0') { return; } } else { 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(local_130,this); /* try { // try from 0014473d to 0014474f has its CatchHandler @ 00144c7d */ 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>> *)&local_110,param_2,local_130,this[0xc0]); if (local_120 != (code *)0x0) { /* try { // try from 0014475d to 0014476e has its CatchHandler @ 00144c59 */ (*local_120)(local_130,local_130,3); } /* try { // try from 0014476f to 00144793 has its CatchHandler @ 00144ca9 */ sax_parse_internal<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>>> (this,(json_sax_dom_callback_parser *)&local_110); if (param_1) { iVar3 = 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>>> ::scan((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 + 0x28)); *(int *)(this + 0x20) = iVar3; if (iVar3 != 0xf) { uVar1 = *(ulong *)(this + 0x48); /* try { // try from 001447a5 to 001447b1 has its CatchHandler @ 00144c57 */ 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_138 = *(int8 *)(this + 0x58); local_148 = *(int4 *)(this + 0x48); uStack_144 = *(int4 *)(this + 0x4c); uStack_140 = *(int4 *)(this + 0x50); uStack_13c = *(int4 *)(this + 0x54); /* try { // try from 001447d7 to 001447ee has its CatchHandler @ 00144c37 */ local_1d0[0] = local_1c0; std::__cxx11::string::_M_construct<char_const*>(local_1d0,"value",""); /* try { // try from 001447ef to 00144805 has its CatchHandler @ 00144c1b */ exception_message(local_1b0,this,0xf,local_1d0); /* try { // try from 00144806 to 00144824 has its CatchHandler @ 00144bfb */ _ZN8nlohmann16json_abi_v3_11_36detail11parse_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNS1_10position_tERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ (local_170,0x65,&local_148,local_1b0,0); /* try { // try from 00144825 to 0014483e has its CatchHandler @ 00144bd7 */ 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>> ::parse_error<nlohmann::json_abi_v3_11_3::detail::parse_error> ((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>> *)&local_110,uVar1,(string *)local_190,(parse_error *)local_170); local_170[0] = &PTR__exception_001ee308; std::runtime_error::~runtime_error(local_160); std::exception::~exception((exception *)local_170); if (local_1b0[0] != local_1a0) { operator_delete(local_1b0[0],local_1a0[0] + 1); } if (local_1d0[0] != local_1c0) { operator_delete(local_1d0[0],local_1c0[0] + 1); } if (local_190[0] != local_180) { operator_delete(local_190[0],local_180[0] + 1); } } } if (local_98 != '\0') { local_38[0] = (data)0x9; local_30 = 0; bVar4 = SUB81(local_38,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(bVar4); 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=((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_2,local_38); 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(bVar4); 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_38); 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>> *)&local_110); return; } if (*param_2 == (basic_json)0x9) { local_48[0] = (data)0x0; local_40 = 0; bVar4 = SUB81(local_48,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(bVar4); 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(bVar4); 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=((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_2,local_48); 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(bVar4); 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_48); } 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>> *)&local_110); } 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(param_2,0)); return; }
6,295
scan_one_character
eloqsql/strings/ctype.c
static size_t scan_one_character(const char *s, const char *e, my_wc_t *wc) { CHARSET_INFO *cs= &my_charset_utf8mb3_general_ci; if (s >= e) return 0; /* Escape sequence: \uXXXX */ if (s[0] == '\\' && s + 2 < e && s[1] == 'u' && my_isxdigit(cs, s[2])) { size_t len= 3; /* We have at least one digit */ for (s+= 3; s < e && my_isxdigit(cs, s[0]); s++, len++) { } wc[0]= 0; return len; } else if ((int8) s[0] > 0) /* 7-bit character */ { wc[0]= 0; return 1; } else /* Non-escaped character */ { int rc= my_ci_mb_wc(cs, wc, (uchar *) s, (uchar *) e); if (rc > 0) return (size_t) rc; } return 0; }
O0
c
scan_one_character: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) leaq 0x315bf5(%rip), %rax # 0x38d080 movq %rax, -0x28(%rbp) movq -0x10(%rbp), %rax cmpq -0x18(%rbp), %rax jb 0x774a6 movq $0x0, -0x8(%rbp) jmp 0x775d8 movq -0x10(%rbp), %rax movsbl (%rax), %eax cmpl $0x5c, %eax jne 0x77577 movq -0x10(%rbp), %rax addq $0x2, %rax cmpq -0x18(%rbp), %rax jae 0x77577 movq -0x10(%rbp), %rax movsbl 0x1(%rax), %eax cmpl $0x75, %eax jne 0x77577 movq -0x28(%rbp), %rax movq 0x40(%rax), %rax movq -0x10(%rbp), %rcx movzbl 0x2(%rcx), %ecx movzbl 0x1(%rax,%rcx), %eax andl $0x80, %eax cmpl $0x0, %eax je 0x77577 movq $0x3, -0x30(%rbp) movq -0x10(%rbp), %rax addq $0x3, %rax movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rcx xorl %eax, %eax cmpq -0x18(%rbp), %rcx movb %al, -0x35(%rbp) jae 0x7753d movq -0x28(%rbp), %rax movq 0x40(%rax), %rax movq -0x10(%rbp), %rcx movzbl (%rcx), %ecx movzbl 0x1(%rax,%rcx), %eax andl $0x80, %eax cmpl $0x0, %eax setne %al movb %al, -0x35(%rbp) movb -0x35(%rbp), %al testb $0x1, %al jne 0x77546 jmp 0x77562 jmp 0x77548 movq -0x10(%rbp), %rax addq $0x1, %rax movq %rax, -0x10(%rbp) movq -0x30(%rbp), %rax addq $0x1, %rax movq %rax, -0x30(%rbp) jmp 0x7750c movq -0x20(%rbp), %rax movq $0x0, (%rax) movq -0x30(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x775d8 movq -0x10(%rbp), %rax movsbl (%rax), %eax cmpl $0x0, %eax jle 0x77598 movq -0x20(%rbp), %rax movq $0x0, (%rax) movq $0x1, -0x8(%rbp) jmp 0x775d8 movq -0x28(%rbp), %rax movq 0xb8(%rax), %rax movq 0x28(%rax), %rax movq -0x28(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x10(%rbp), %rdx movq -0x18(%rbp), %rcx callq *%rax movl %eax, -0x34(%rbp) cmpl $0x0, -0x34(%rbp) jle 0x775cc movslq -0x34(%rbp), %rax movq %rax, -0x8(%rbp) jmp 0x775d8 jmp 0x775ce jmp 0x775d0 movq $0x0, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
scan_one_character: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx lea rax, my_charset_utf8mb3_general_ci mov [rbp+var_28], rax mov rax, [rbp+var_10] cmp rax, [rbp+var_18] jb short loc_774A6 mov [rbp+var_8], 0 jmp loc_775D8 loc_774A6: mov rax, [rbp+var_10] movsx eax, byte ptr [rax] cmp eax, 5Ch ; '\' jnz loc_77577 mov rax, [rbp+var_10] add rax, 2 cmp rax, [rbp+var_18] jnb loc_77577 mov rax, [rbp+var_10] movsx eax, byte ptr [rax+1] cmp eax, 75h ; 'u' jnz loc_77577 mov rax, [rbp+var_28] mov rax, [rax+40h] mov rcx, [rbp+var_10] movzx ecx, byte ptr [rcx+2] movzx eax, byte ptr [rax+rcx+1] and eax, 80h cmp eax, 0 jz short loc_77577 mov [rbp+var_30], 3 mov rax, [rbp+var_10] add rax, 3 mov [rbp+var_10], rax loc_7750C: mov rcx, [rbp+var_10] xor eax, eax cmp rcx, [rbp+var_18] mov [rbp+var_35], al jnb short loc_7753D mov rax, [rbp+var_28] mov rax, [rax+40h] mov rcx, [rbp+var_10] movzx ecx, byte ptr [rcx] movzx eax, byte ptr [rax+rcx+1] and eax, 80h cmp eax, 0 setnz al mov [rbp+var_35], al loc_7753D: mov al, [rbp+var_35] test al, 1 jnz short loc_77546 jmp short loc_77562 loc_77546: jmp short $+2 loc_77548: mov rax, [rbp+var_10] add rax, 1 mov [rbp+var_10], rax mov rax, [rbp+var_30] add rax, 1 mov [rbp+var_30], rax jmp short loc_7750C loc_77562: mov rax, [rbp+var_20] mov qword ptr [rax], 0 mov rax, [rbp+var_30] mov [rbp+var_8], rax jmp short loc_775D8 loc_77577: mov rax, [rbp+var_10] movsx eax, byte ptr [rax] cmp eax, 0 jle short loc_77598 mov rax, [rbp+var_20] mov qword ptr [rax], 0 mov [rbp+var_8], 1 jmp short loc_775D8 loc_77598: mov rax, [rbp+var_28] mov rax, [rax+0B8h] mov rax, [rax+28h] mov rdi, [rbp+var_28] mov rsi, [rbp+var_20] mov rdx, [rbp+var_10] mov rcx, [rbp+var_18] call rax mov [rbp+var_34], eax cmp [rbp+var_34], 0 jle short loc_775CC movsxd rax, [rbp+var_34] mov [rbp+var_8], rax jmp short loc_775D8 loc_775CC: jmp short $+2 loc_775CE: jmp short $+2 loc_775D0: mov [rbp+var_8], 0 loc_775D8: mov rax, [rbp+var_8] add rsp, 40h pop rbp retn
long long scan_one_character(char *a1, unsigned long long a2, _QWORD *a3) { bool v4; // [rsp+Bh] [rbp-35h] int v5; // [rsp+Ch] [rbp-34h] long long v6; // [rsp+10h] [rbp-30h] unsigned __int8 *i; // [rsp+30h] [rbp-10h] if ( (unsigned long long)a1 >= a2 ) return 0LL; if ( *a1 == 92 && (unsigned long long)(a1 + 2) < a2 && a1[1] == 117 && (*(_BYTE *)(*(_QWORD *)&my_charset_utf8mb3_general_ci[16] + (unsigned __int8)a1[2] + 1LL) & 0x80) != 0 ) { v6 = 3LL; for ( i = (unsigned __int8 *)(a1 + 3); ; ++i ) { v4 = 0; if ( (unsigned long long)i < a2 ) v4 = (*(_BYTE *)(*(_QWORD *)&my_charset_utf8mb3_general_ci[16] + *i + 1LL) & 0x80) != 0; if ( !v4 ) break; ++v6; } *a3 = 0LL; return v6; } else if ( *a1 <= 0 ) { v5 = (*(long long ( **)(unsigned int *, _QWORD *, char *, unsigned long long))(*(_QWORD *)&my_charset_utf8mb3_general_ci[46] + 40LL))( my_charset_utf8mb3_general_ci, a3, a1, a2); if ( v5 <= 0 ) return 0LL; else return v5; } else { *a3 = 0LL; return 1LL; } }
scan_one_character: 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 LEA RAX,[0x48d080] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RBP + -0x18] JC 0x001774a6 MOV qword ptr [RBP + -0x8],0x0 JMP 0x001775d8 LAB_001774a6: MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] CMP EAX,0x5c JNZ 0x00177577 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x2 CMP RAX,qword ptr [RBP + -0x18] JNC 0x00177577 MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX + 0x1] CMP EAX,0x75 JNZ 0x00177577 MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x40] MOV RCX,qword ptr [RBP + -0x10] MOVZX ECX,byte ptr [RCX + 0x2] MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1] AND EAX,0x80 CMP EAX,0x0 JZ 0x00177577 MOV qword ptr [RBP + -0x30],0x3 MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x3 MOV qword ptr [RBP + -0x10],RAX LAB_0017750c: MOV RCX,qword ptr [RBP + -0x10] XOR EAX,EAX CMP RCX,qword ptr [RBP + -0x18] MOV byte ptr [RBP + -0x35],AL JNC 0x0017753d MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0x40] MOV RCX,qword ptr [RBP + -0x10] MOVZX ECX,byte ptr [RCX] MOVZX EAX,byte ptr [RAX + RCX*0x1 + 0x1] AND EAX,0x80 CMP EAX,0x0 SETNZ AL MOV byte ptr [RBP + -0x35],AL LAB_0017753d: MOV AL,byte ptr [RBP + -0x35] TEST AL,0x1 JNZ 0x00177546 JMP 0x00177562 LAB_00177546: JMP 0x00177548 LAB_00177548: MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x1 MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x1 MOV qword ptr [RBP + -0x30],RAX JMP 0x0017750c LAB_00177562: MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x8],RAX JMP 0x001775d8 LAB_00177577: MOV RAX,qword ptr [RBP + -0x10] MOVSX EAX,byte ptr [RAX] CMP EAX,0x0 JLE 0x00177598 MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RAX],0x0 MOV qword ptr [RBP + -0x8],0x1 JMP 0x001775d8 LAB_00177598: MOV RAX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RAX + 0xb8] MOV RAX,qword ptr [RAX + 0x28] MOV RDI,qword ptr [RBP + -0x28] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x18] CALL RAX MOV dword ptr [RBP + -0x34],EAX CMP dword ptr [RBP + -0x34],0x0 JLE 0x001775cc MOVSXD RAX,dword ptr [RBP + -0x34] MOV qword ptr [RBP + -0x8],RAX JMP 0x001775d8 LAB_001775cc: JMP 0x001775ce LAB_001775ce: JMP 0x001775d0 LAB_001775d0: MOV qword ptr [RBP + -0x8],0x0 LAB_001775d8: MOV RAX,qword ptr [RBP + -0x8] ADD RSP,0x40 POP RBP RET
long scan_one_character(byte *param_1,byte *param_2,int8 *param_3) { int iVar1; bool bVar2; long local_38; byte *local_18; long local_10; if (param_1 < param_2) { if ((((*param_1 == 0x5c) && (param_1 + 2 < param_2)) && (param_1[1] == 0x75)) && ((*(byte *)(my_charset_utf8mb3_general_ci._64_8_ + 1 + (ulong)param_1[2]) & 0x80) != 0)) { local_38 = 3; local_18 = param_1 + 3; while( true ) { bVar2 = false; if (local_18 < param_2) { bVar2 = (*(byte *)(my_charset_utf8mb3_general_ci._64_8_ + 1 + (ulong)*local_18) & 0x80) != 0; } if (!bVar2) break; local_18 = local_18 + 1; local_38 = local_38 + 1; } *param_3 = 0; local_10 = local_38; } else if ((char)*param_1 < '\x01') { iVar1 = (**(code **)(my_charset_utf8mb3_general_ci._184_8_ + 0x28)) (my_charset_utf8mb3_general_ci,param_3,param_1,param_2); if (iVar1 < 1) { local_10 = 0; } else { local_10 = (long)iVar1; } } else { *param_3 = 0; local_10 = 1; } } else { local_10 = 0; } return local_10; }
6,296
ma_end_block_record
eloqsql/storage/maria/ma_blockrec.c
void _ma_end_block_record(MARIA_HA *info) { DBUG_ENTER("_ma_end_block_record"); my_free(info->cur_row.empty_bits); delete_dynamic(&info->bitmap_blocks); my_free(info->cur_row.extents); my_free(info->blob_buff); /* The data file is closed, when needed, in ma_once_end_block_record(). The following protects us from doing an extra, not allowed, close in maria_close() */ info->dfile.file= -1; DBUG_VOID_RETURN; }
O3
c
ma_end_block_record: pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq %rdi, %rbx movq 0xc8(%rdi), %rdi callq 0x9ffde leaq 0x2c0(%rbx), %rdi callq 0x91e20 movq 0x90(%rbx), %rdi callq 0x9ffde movq 0x3a8(%rbx), %rdi callq 0x9ffde movl $0xffffffff, 0x480(%rbx) # imm = 0xFFFFFFFF addq $0x8, %rsp popq %rbx popq %rbp retq
_ma_end_block_record: push rbp mov rbp, rsp push rbx push rax mov rbx, rdi mov rdi, [rdi+0C8h] call my_free lea rdi, [rbx+2C0h] call delete_dynamic mov rdi, [rbx+90h] call my_free mov rdi, [rbx+3A8h] call my_free mov dword ptr [rbx+480h], 0FFFFFFFFh add rsp, 8 pop rbx pop rbp retn
long long ma_end_block_record(long long a1) { long long result; // rax my_free(*(_QWORD *)(a1 + 200)); delete_dynamic(a1 + 704); my_free(*(_QWORD *)(a1 + 144)); result = my_free(*(_QWORD *)(a1 + 936)); *(_DWORD *)(a1 + 1152) = -1; return result; }
_ma_end_block_record: PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX MOV RBX,RDI MOV RDI,qword ptr [RDI + 0xc8] CALL 0x0019ffde LEA RDI,[RBX + 0x2c0] CALL 0x00191e20 MOV RDI,qword ptr [RBX + 0x90] CALL 0x0019ffde MOV RDI,qword ptr [RBX + 0x3a8] CALL 0x0019ffde MOV dword ptr [RBX + 0x480],0xffffffff ADD RSP,0x8 POP RBX POP RBP RET
void _ma_end_block_record(long param_1) { my_free(*(int8 *)(param_1 + 200)); delete_dynamic(param_1 + 0x2c0); my_free(*(int8 *)(param_1 + 0x90)); my_free(*(int8 *)(param_1 + 0x3a8)); *(int4 *)(param_1 + 0x480) = 0xffffffff; return; }
6,297
JS_DefineObjectNameComputed
bluesky950520[P]quickjs/quickjs.c
static int JS_DefineObjectNameComputed(JSContext *ctx, JSValue obj, JSValue str, int flags) { if (JS_IsObject(obj) && !js_object_has_name(ctx, obj)) { JSAtom prop; JSValue name_str; prop = JS_ValueToAtom(ctx, str); if (prop == JS_ATOM_NULL) return -1; name_str = js_get_function_name(ctx, prop); JS_FreeAtom(ctx, prop); if (JS_IsException(name_str)) return -1; if (JS_DefinePropertyValue(ctx, obj, JS_ATOM_name, name_str, flags) < 0) return -1; } return 0; }
O2
c
JS_DefineObjectNameComputed: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdx, %rbx cmpl $-0x1, %ebx jne 0x37f92 movq %r8, %r12 movq %rcx, %r13 movq %rsi, %r14 movq %rdi, %r15 movq %rsi, %rdi callq 0x39b54 testl %eax, %eax je 0x37fa5 xorl %ebp, %ebp movl %ebp, %eax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %r15, %rdi movq %r13, %rsi movq %r12, %rdx callq 0x1e0bc pushq $-0x1 popq %rbp testl %eax, %eax je 0x37f94 movl %eax, %r12d movq %r15, %rdi movl %eax, %esi callq 0x39bb0 movq %rax, 0x10(%rsp) movq %rdx, %r13 movq %r15, %rdi movl %r12d, %esi callq 0x1a995 cmpl $0x6, %r13d je 0x37f94 movl $0x1, (%rsp) pushq $0x37 popq %rcx movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx movq 0x10(%rsp), %r8 movq %r13, %r9 callq 0x20872 testl %eax, %eax jns 0x37f92 jmp 0x37f94
JS_DefineObjectNameComputed: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov rbx, rdx cmp ebx, 0FFFFFFFFh jnz short loc_37F92 mov r12, r8 mov r13, rcx mov r14, rsi mov r15, rdi mov rdi, rsi call js_object_has_name test eax, eax jz short loc_37FA5 loc_37F92: xor ebp, ebp loc_37F94: mov eax, ebp add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_37FA5: mov rdi, r15 mov rsi, r13 mov rdx, r12 call JS_ValueToAtom push 0FFFFFFFFFFFFFFFFh pop rbp test eax, eax jz short loc_37F94 mov r12d, eax mov rdi, r15 mov esi, eax call js_get_function_name mov [rsp+48h+var_38], rax mov r13, rdx mov rdi, r15 mov esi, r12d call JS_FreeAtom cmp r13d, 6 jz short loc_37F94 mov [rsp+48h+var_48], 1 push 37h ; '7' pop rcx mov rdi, r15 mov rsi, r14 mov rdx, rbx mov r8, [rsp+48h+var_38] mov r9, r13 call JS_DefinePropertyValue test eax, eax jns short loc_37F92 jmp short loc_37F94
long long JS_DefineObjectNameComputed( long long a1, long long a2, long long a3, long long a4, int a5, double a6, __m128 a7, __m128 a8, __m128 a9, double a10, double a11, __m128 a12, __m128 a13) { unsigned int v16; // ebp unsigned int v18; // eax int v19; // r12d long long v20; // rdx long long v21; // r13 __m128 v22; // xmm4 __m128 v23; // xmm5 _DWORD *function_name; // [rsp+10h] [rbp-38h] if ( (_DWORD)a3 != -1 ) return 0; if ( (unsigned int)js_object_has_name(a2) ) return 0; v18 = JS_ValueToAtom(a1, a4, a5); v16 = -1; if ( v18 ) { v19 = v18; function_name = (_DWORD *)js_get_function_name(a1, v18); v21 = v20; JS_FreeAtom(a1, v19); if ( (_DWORD)v21 != 6 && (int)JS_DefinePropertyValue(a1, a2, a3, 55LL, function_name, v21, a6, a7, a8, a9, v22, v23, a12, a13, 1) >= 0 ) { return 0; } } return v16; }
JS_DefineObjectNameComputed: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV RBX,RDX CMP EBX,-0x1 JNZ 0x00137f92 MOV R12,R8 MOV R13,RCX MOV R14,RSI MOV R15,RDI MOV RDI,RSI CALL 0x00139b54 TEST EAX,EAX JZ 0x00137fa5 LAB_00137f92: XOR EBP,EBP LAB_00137f94: MOV EAX,EBP ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00137fa5: MOV RDI,R15 MOV RSI,R13 MOV RDX,R12 CALL 0x0011e0bc PUSH -0x1 POP RBP TEST EAX,EAX JZ 0x00137f94 MOV R12D,EAX MOV RDI,R15 MOV ESI,EAX CALL 0x00139bb0 MOV qword ptr [RSP + 0x10],RAX MOV R13,RDX MOV RDI,R15 MOV ESI,R12D CALL 0x0011a995 CMP R13D,0x6 JZ 0x00137f94 MOV dword ptr [RSP],0x1 PUSH 0x37 POP RCX MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX MOV R8,qword ptr [RSP + 0x10] MOV R9,R13 CALL 0x00120872 TEST EAX,EAX JNS 0x00137f92 JMP 0x00137f94
int4 JS_DefineObjectNameComputed (int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5) { int iVar1; int1 auVar2 [16]; if (((int)param_3 == -1) && (iVar1 = js_object_has_name(param_2), iVar1 == 0)) { iVar1 = JS_ValueToAtom(param_1,param_4,param_5); if (iVar1 == 0) { return 0xffffffff; } auVar2 = js_get_function_name(param_1,iVar1); JS_FreeAtom(param_1,iVar1); if (auVar2._8_4_ == 6) { return 0xffffffff; } iVar1 = JS_DefinePropertyValue(param_1,param_2,param_3,0x37,auVar2._0_8_,auVar2._8_8_,1); if (iVar1 < 0) { return 0xffffffff; } } return 0; }
6,298
mi_read_rnd_dynamic_record
eloqsql/storage/myisam/mi_dynrec.c
int _mi_read_rnd_dynamic_record(MI_INFO *info, uchar *buf, register my_off_t filepos, my_bool skip_deleted_blocks) { int block_of_record, info_read, save_errno; uint left_len,b_type; uchar *UNINIT_VAR(to); MI_BLOCK_INFO block_info; MYISAM_SHARE *share=info->s; DBUG_ENTER("_mi_read_rnd_dynamic_record"); info_read=0; if (info->lock_type == F_UNLCK) { #ifndef UNSAFE_LOCKING if (share->tot_locks == 0) { if (my_lock(share->kfile,F_RDLCK,0L,F_TO_EOF, MYF(MY_SEEK_NOT_DONE) | info->lock_wait)) DBUG_RETURN(my_errno); } #else info->tmp_lock_type=F_RDLCK; #endif } else info_read=1; /* memory-keyinfoblock is ok */ block_of_record= 0; /* First block of record is numbered as zero. */ block_info.second_read= 0; left_len=1; do { if (filepos >= info->state->data_file_length) { if (!info_read) { /* Check if changed */ info_read=1; info->rec_cache.seek_not_done=1; if (mi_state_info_read_dsk(share->kfile,&share->state,1)) goto panic; } if (filepos >= info->state->data_file_length) { my_errno= HA_ERR_END_OF_FILE; goto err; } } if (info->opt_flag & READ_CACHE_USED) { if (_mi_read_cache(&info->rec_cache,(uchar*) block_info.header,filepos, sizeof(block_info.header), (!block_of_record && skip_deleted_blocks ? READING_NEXT : 0) | READING_HEADER)) goto panic; b_type=_mi_get_block_info(&block_info,-1,filepos); } else { if (info->opt_flag & WRITE_CACHE_USED && info->rec_cache.pos_in_file < filepos + MI_BLOCK_INFO_HEADER_LENGTH && flush_io_cache(&info->rec_cache)) DBUG_RETURN(my_errno); info->rec_cache.seek_not_done=1; b_type=_mi_get_block_info(&block_info,info->dfile,filepos); } if (b_type & (BLOCK_DELETED | BLOCK_ERROR | BLOCK_SYNC_ERROR | BLOCK_FATAL_ERROR)) { if ((b_type & (BLOCK_DELETED | BLOCK_SYNC_ERROR))) { if (skip_deleted_blocks) { filepos=block_info.filepos+block_info.block_len; block_info.second_read=0; continue; /* Search after next_record */ } /* If we're not on the first block of a record and the block is marked as deleted or out of sync, something's gone wrong: the record is damaged. */ if (block_of_record != 0) goto panic; my_errno=HA_ERR_RECORD_DELETED; info->lastpos=block_info.filepos; info->nextpos=block_info.filepos+block_info.block_len; } goto err; } if (block_of_record == 0) /* First block */ { if (block_info.rec_len > (uint) share->base.max_pack_length) goto panic; info->lastpos=filepos; if (share->base.blobs) { if (!(to= mi_alloc_rec_buff(info, block_info.rec_len, &info->rec_buff))) goto err; } else to= info->rec_buff; left_len=block_info.rec_len; } if (left_len < block_info.data_len) goto panic; /* Wrong linked record */ /* copy information that is already read */ { uint offset=(uint) (block_info.filepos - filepos); uint tmp_length= (sizeof(block_info.header) - offset); filepos=block_info.filepos; if (tmp_length > block_info.data_len) tmp_length= block_info.data_len; if (tmp_length) { memcpy((uchar*) to, block_info.header+offset,tmp_length); block_info.data_len-=tmp_length; left_len-=tmp_length; to+=tmp_length; filepos+=tmp_length; } } /* read rest of record from file */ if (block_info.data_len) { if (info->opt_flag & READ_CACHE_USED) { if (_mi_read_cache(&info->rec_cache,(uchar*) to,filepos, block_info.data_len, (!block_of_record && skip_deleted_blocks) ? READING_NEXT : 0)) goto panic; } else { if (info->opt_flag & WRITE_CACHE_USED && info->rec_cache.pos_in_file < block_info.filepos + block_info.data_len && flush_io_cache(&info->rec_cache)) goto err; /* mysql_file_seek(info->dfile, filepos, MY_SEEK_SET, MYF(0)); */ if (mysql_file_read(info->dfile, (uchar*) to, block_info.data_len, MYF(MY_NABP))) { if (my_errno == HA_ERR_FILE_TOO_SHORT) my_errno= HA_ERR_WRONG_IN_RECORD; /* Unexpected end of file */ goto err; } } } /* Increment block-of-record counter. If it was the first block, remember the position behind the block for the next call. */ if (block_of_record++ == 0) { info->nextpos= block_info.filepos + block_info.block_len; skip_deleted_blocks= 0; } left_len-=block_info.data_len; to+=block_info.data_len; filepos=block_info.next_filepos; } while (left_len); info->update|= HA_STATE_AKTIV | HA_STATE_KEY_CHANGED; fast_mi_writeinfo(info); if (_mi_rec_unpack(info,buf,info->rec_buff,block_info.rec_len) != MY_FILE_ERROR) DBUG_RETURN(0); DBUG_RETURN(my_errno); /* Wrong record */ panic: my_errno=HA_ERR_WRONG_IN_RECORD; /* Something is fatal wrong */ err: save_errno=my_errno; (void) _mi_writeinfo(info,0); DBUG_RETURN(my_errno=save_errno); }
O3
c
mi_read_rnd_dynamic_record: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xf8, %rsp movl %ecx, %r13d movq %rdx, %r14 movq %rsi, -0xd0(%rbp) movq %rdi, %rbx movq %fs:0x28, %rax movq %rax, -0x30(%rbp) movq (%rdi), %rax movl $0x1, %r15d cmpl $0x2, 0x1f4(%rdi) movl $0x1, %ecx movq %rcx, -0xa8(%rbp) movq %rax, -0xb0(%rbp) jne 0x794b5 movq $0x0, -0xa8(%rbp) cmpl $0x0, 0x368(%rax) je 0x798e6 leaq -0x88(%rbp), %rax movl $0x0, 0x50(%rax) leaq 0x220(%rbx), %rax movq %rax, -0xa0(%rbp) leaq 0x120(%rbx), %rax movq %rax, -0xc8(%rbp) movl $0x0, -0x8c(%rbp) movq %rbx, -0xd8(%rbp) movq 0x8(%rbx), %rax movq 0x28(%rax), %rax cmpq %rax, %r14 jb 0x7954c cmpl $0x0, -0xa8(%rbp) jne 0x79537 movl $0x1, 0x300(%rbx) movq -0xb0(%rbp), %rsi movl 0x350(%rsi), %edi movl $0x1, %edx callq 0x7fcf4 testl %eax, %eax jne 0x79935 movq 0x8(%rbx), %rax movq 0x28(%rax), %rax movl $0x1, %ecx movq %rcx, -0xa8(%rbp) cmpq %rax, %r14 jae 0x7991f movl 0x1c8(%rbx), %eax testb $0x2, %al jne 0x79595 testb $0x10, %al je 0x79583 leaq 0x14(%r14), %rax movq -0xa0(%rbp), %rcx cmpq %rax, (%rcx) jae 0x79583 movq -0xa0(%rbp), %rdi movl $0x1, %esi callq 0x950b1 testl %eax, %eax jne 0x79915 movl $0x1, 0x300(%rbx) movl 0x1c0(%rbx), %esi jmp 0x795d7 cmpl $0x0, -0x8c(%rbp) sete %al testb %r13b, %r13b setne %cl andb %al, %cl movzbl %cl, %r8d orl $0x2, %r8d movl $0x14, %ecx movq -0xa0(%rbp), %rdi leaq -0x88(%rbp), %rsi movq %r14, %rdx callq 0x8eaa4 movl $0xffffffff, %esi # imm = 0xFFFFFFFF testl %eax, %eax jne 0x79935 leaq -0x88(%rbp), %rdi movq %r14, %rdx callq 0x77f63 cmpl $0x4, %eax jae 0x79651 cmpl $0x0, -0x8c(%rbp) jne 0x7968a movq -0x70(%rbp), %rcx movq -0xb0(%rbp), %rax movl 0x158(%rax), %eax cmpq %rax, %rcx ja 0x79935 movq %rcx, %rsi movq %r14, 0x170(%rbx) movq -0xb0(%rbp), %rax cmpl $0x0, 0x188(%rax) je 0x79676 movq %rbx, %rdi movq -0xc8(%rbp), %rdx callq 0x7f84d movq %rax, -0x98(%rbp) testq %rax, %rax je 0x79940 movq -0x70(%rbp), %r15 jmp 0x7968a testb $0x14, %al je 0x79940 testb %r13b, %r13b je 0x7992c movq -0x60(%rbp), %r14 addq -0x50(%rbp), %r14 movl $0x0, -0x38(%rbp) jmp 0x79833 movq -0xc8(%rbp), %rax movq (%rax), %rax movq %rax, -0x98(%rbp) movq %rsi, %r15 movq %r15, -0xb8(%rbp) movl %r15d, %eax movq -0x68(%rbp), %r15 cmpq %rax, %r15 ja 0x79935 movl %r13d, -0xbc(%rbp) movq -0x50(%rbp), %r12 movq %r12, %rax subq %r14, %rax movl $0x14, %ecx subl %eax, %ecx cmpq %rcx, %r15 movl %r15d, %r13d cmovael %ecx, %r13d testl %r13d, %r13d je 0x79713 movl %eax, %eax leaq (%rax,%rbp), %rsi addq $-0x88, %rsi movl %r13d, %r14d movq -0x98(%rbp), %rbx movq %rbx, %rdi movq %r14, %rdx callq 0x29080 movq -0x68(%rbp), %r15 subq %r14, %r15 movq %r15, -0x68(%rbp) movq -0xb8(%rbp), %rax subl %r13d, %eax movq %rax, -0xb8(%rbp) addq %r14, %rbx movq %rbx, -0x98(%rbp) addq %r14, %r12 testq %r15, %r15 movl -0xbc(%rbp), %r13d movq -0xd8(%rbp), %rbx je 0x797f6 movl 0x1c8(%rbx), %eax testb $0x2, %al jne 0x797bf testb $0x10, %al je 0x7976c movq -0x50(%rbp), %rax addq %r15, %rax movq -0xa0(%rbp), %rcx cmpq %rax, (%rcx) jae 0x7976c movq -0xa0(%rbp), %rdi movl $0x1, %esi callq 0x950b1 testl %eax, %eax jne 0x79940 movq -0x68(%rbp), %r15 movl 0x1c0(%rbx), %r14d leaq 0x30c896(%rip), %rax # 0x386010 movq (%rax), %rax leaq -0x120(%rbp), %rdi movl %r14d, %esi movl $0x6, %edx callq *0x158(%rax) testq %rax, %rax jne 0x7983e movl $0x4, %ecx movl %r14d, %edi movq -0x98(%rbp), %rsi movq %r15, %rdx callq 0xa04f0 movq %rax, %r14 testq %r14, %r14 je 0x797f6 jmp 0x799a1 cmpl $0x0, -0x8c(%rbp) sete %al testb %r13b, %r13b setne %cl andb %al, %cl movzbl %cl, %r8d movq -0xa0(%rbp), %rdi movq -0x98(%rbp), %rsi movq %r12, %rdx movq %r15, %rcx callq 0x8eaa4 testl %eax, %eax jne 0x79935 movl -0x8c(%rbp), %ecx testl %ecx, %ecx jne 0x79812 movq -0x60(%rbp), %rax addq -0x50(%rbp), %rax movq %rax, 0x178(%rbx) xorl %r13d, %r13d incl %ecx movl %ecx, -0x8c(%rbp) movq -0x68(%rbp), %rax movq -0x48(%rbp), %r14 movq -0xb8(%rbp), %r15 subl %eax, %r15d addq %rax, -0x98(%rbp) testl %r15d, %r15d jne 0x794f0 jmp 0x798a4 movq %rax, %r12 leaq 0x30c7c8(%rip), %rax # 0x386010 movq (%rax), %rax movq %r12, %rdi movq %r15, %rsi leaq 0x62054(%rip), %rdx # 0xdb8ac movl $0x743, %ecx # imm = 0x743 callq *0x210(%rax) movl $0x4, %ecx movl %r14d, %edi movq -0x98(%rbp), %rsi movq %r15, %rdx callq 0xa04f0 movq %rax, %r14 testq %rax, %rax movl $0x0, %eax cmovneq %rax, %r15 leaq 0x30c780(%rip), %rax # 0x386010 movq (%rax), %rax movq %r12, %rdi movq %r15, %rsi callq *0x218(%rax) jmp 0x797b5 orb $-0x7e, 0x1d0(%rbx) movq (%rbx), %rax cmpl $0x0, 0x368(%rax) jne 0x798c1 movq %rbx, %rdi xorl %esi, %esi callq 0x7c466 movq 0x120(%rbx), %rdx movq -0x70(%rbp), %rcx movq %rbx, %rdi movq -0xd0(%rbp), %rsi callq 0x7881d xorl %r14d, %r14d cmpq $-0x1, %rax jne 0x7995a jmp 0x79915 movl 0x350(%rax), %edi movq 0x330(%rbx), %r8 orq $0x20, %r8 movq $0x0, -0xa8(%rbp) xorl %esi, %esi xorl %edx, %edx xorl %ecx, %ecx callq 0x9f6a4 testl %eax, %eax je 0x794b5 callq 0xa1672 movl (%rax), %r14d jmp 0x7995a callq 0xa1672 movl $0x89, (%rax) jmp 0x79940 cmpl $0x0, -0x8c(%rbp) je 0x7997e callq 0xa1672 movl $0x7f, (%rax) callq 0xa1672 movl (%rax), %r14d movq %rbx, %rdi xorl %esi, %esi callq 0x7c466 callq 0xa1672 movl %r14d, (%rax) movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x799b0 movl %r14d, %eax addq $0xf8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0xa1672 movl $0x86, (%rax) movq -0x50(%rbp), %rax movq %rax, 0x170(%rbx) addq -0x60(%rbp), %rax movq %rax, 0x178(%rbx) jmp 0x79940 callq 0xa1672 cmpl $0xaf, (%rax) je 0x79935 jmp 0x79940 callq 0x29270
_mi_read_rnd_dynamic_record: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 0F8h mov r13d, ecx mov r14, rdx mov [rbp+var_D0], rsi mov rbx, rdi mov rax, fs:28h mov [rbp+var_30], rax mov rax, [rdi] mov r15d, 1 cmp dword ptr [rdi+1F4h], 2 mov ecx, 1 mov [rbp+var_A8], rcx mov [rbp+var_B0], rax jnz short loc_794B5 mov [rbp+var_A8], 0 cmp dword ptr [rax+368h], 0 jz loc_798E6 loc_794B5: lea rax, [rbp+var_88] mov dword ptr [rax+50h], 0 lea rax, [rbx+220h] mov [rbp+var_A0], rax lea rax, [rbx+120h] mov [rbp+var_C8], rax mov [rbp+var_8C], 0 mov [rbp+var_D8], rbx loc_794F0: mov rax, [rbx+8] mov rax, [rax+28h] cmp r14, rax jb short loc_7954C cmp dword ptr [rbp+var_A8], 0 jnz short loc_79537 mov dword ptr [rbx+300h], 1 mov rsi, [rbp+var_B0] mov edi, [rsi+350h] mov edx, 1 call mi_state_info_read_dsk test eax, eax jnz loc_79935 mov rax, [rbx+8] mov rax, [rax+28h] loc_79537: mov ecx, 1 mov [rbp+var_A8], rcx cmp r14, rax jnb loc_7991F loc_7954C: mov eax, [rbx+1C8h] test al, 2 jnz short loc_79595 test al, 10h jz short loc_79583 lea rax, [r14+14h] mov rcx, [rbp+var_A0] cmp [rcx], rax jnb short loc_79583 mov rdi, [rbp+var_A0] mov esi, 1 call my_b_flush_io_cache test eax, eax jnz loc_79915 loc_79583: mov dword ptr [rbx+300h], 1 mov esi, [rbx+1C0h] jmp short loc_795D7 loc_79595: cmp [rbp+var_8C], 0 setz al test r13b, r13b setnz cl and cl, al movzx r8d, cl or r8d, 2 mov ecx, 14h mov rdi, [rbp+var_A0] lea rsi, [rbp+var_88] mov rdx, r14 call _mi_read_cache mov esi, 0FFFFFFFFh test eax, eax jnz loc_79935 loc_795D7: lea rdi, [rbp+var_88] mov rdx, r14 call _mi_get_block_info cmp eax, 4 jnb short loc_79651 cmp [rbp+var_8C], 0 jnz loc_7968A mov rcx, [rbp+var_70] mov rax, [rbp+var_B0] mov eax, [rax+158h] cmp rcx, rax ja loc_79935 mov rsi, rcx mov [rbx+170h], r14 mov rax, [rbp+var_B0] cmp dword ptr [rax+188h], 0 jz short loc_79676 mov rdi, rbx mov rdx, [rbp+var_C8] call mi_alloc_rec_buff mov [rbp+var_98], rax test rax, rax jz loc_79940 mov r15, [rbp+var_70] jmp short loc_7968A loc_79651: test al, 14h jz loc_79940 test r13b, r13b jz loc_7992C mov r14, [rbp+var_60] add r14, [rbp+var_50] mov [rbp+var_38], 0 jmp loc_79833 loc_79676: mov rax, [rbp+var_C8] mov rax, [rax] mov [rbp+var_98], rax mov r15, rsi loc_7968A: mov [rbp+var_B8], r15 mov eax, r15d mov r15, [rbp+var_68] cmp r15, rax ja loc_79935 mov [rbp+var_BC], r13d mov r12, [rbp+var_50] mov rax, r12 sub rax, r14 mov ecx, 14h sub ecx, eax cmp r15, rcx mov r13d, r15d cmovnb r13d, ecx test r13d, r13d jz short loc_79713 mov eax, eax lea rsi, [rax+rbp] add rsi, 0FFFFFFFFFFFFFF78h mov r14d, r13d mov rbx, [rbp+var_98] mov rdi, rbx mov rdx, r14 call _memcpy mov r15, [rbp+var_68] sub r15, r14 mov [rbp+var_68], r15 mov rax, [rbp+var_B8] sub eax, r13d mov [rbp+var_B8], rax add rbx, r14 mov [rbp+var_98], rbx add r12, r14 loc_79713: test r15, r15 mov r13d, [rbp+var_BC] mov rbx, [rbp+var_D8] jz loc_797F6 mov eax, [rbx+1C8h] test al, 2 jnz loc_797BF test al, 10h jz short loc_7976C mov rax, [rbp+var_50] add rax, r15 mov rcx, [rbp+var_A0] cmp [rcx], rax jnb short loc_7976C mov rdi, [rbp+var_A0] mov esi, 1 call my_b_flush_io_cache test eax, eax jnz loc_79940 mov r15, [rbp+var_68] loc_7976C: mov r14d, [rbx+1C0h] lea rax, PSI_server mov rax, [rax] lea rdi, [rbp+var_120] mov esi, r14d mov edx, 6 call qword ptr [rax+158h] test rax, rax jnz loc_7983E mov ecx, 4 mov edi, r14d mov rsi, [rbp+var_98] mov rdx, r15 call my_read mov r14, rax loc_797B5: test r14, r14 jz short loc_797F6 jmp loc_799A1 loc_797BF: cmp [rbp+var_8C], 0 setz al test r13b, r13b setnz cl and cl, al movzx r8d, cl mov rdi, [rbp+var_A0] mov rsi, [rbp+var_98] mov rdx, r12 mov rcx, r15 call _mi_read_cache test eax, eax jnz loc_79935 loc_797F6: mov ecx, [rbp+var_8C] test ecx, ecx jnz short loc_79812 mov rax, [rbp+var_60] add rax, [rbp+var_50] mov [rbx+178h], rax xor r13d, r13d loc_79812: inc ecx mov [rbp+var_8C], ecx mov rax, [rbp+var_68] mov r14, [rbp+var_48] mov r15, [rbp+var_B8] sub r15d, eax add [rbp+var_98], rax loc_79833: test r15d, r15d jnz loc_794F0 jmp short loc_798A4 loc_7983E: mov r12, rax lea rax, PSI_server mov rax, [rax] mov rdi, r12 mov rsi, r15 lea rdx, aWorkspaceLlm4b_12; "/workspace/llm4binary/github2025/eloqsq"... mov ecx, 743h call qword ptr [rax+210h] mov ecx, 4 mov edi, r14d mov rsi, [rbp+var_98] mov rdx, r15 call my_read mov r14, rax test rax, rax mov eax, 0 cmovnz r15, rax lea rax, PSI_server mov rax, [rax] mov rdi, r12 mov rsi, r15 call qword ptr [rax+218h] jmp loc_797B5 loc_798A4: or byte ptr [rbx+1D0h], 82h mov rax, [rbx] cmp dword ptr [rax+368h], 0 jnz short loc_798C1 mov rdi, rbx xor esi, esi call _mi_writeinfo loc_798C1: mov rdx, [rbx+120h] mov rcx, [rbp+var_70] mov rdi, rbx mov rsi, [rbp+var_D0] call _mi_rec_unpack xor r14d, r14d cmp rax, 0FFFFFFFFFFFFFFFFh jnz short loc_7995A jmp short loc_79915 loc_798E6: mov edi, [rax+350h] mov r8, [rbx+330h] or r8, 20h mov [rbp+var_A8], 0 xor esi, esi xor edx, edx xor ecx, ecx call my_lock test eax, eax jz loc_794B5 loc_79915: call _my_thread_var mov r14d, [rax] jmp short loc_7995A loc_7991F: call _my_thread_var mov dword ptr [rax], 89h jmp short loc_79940 loc_7992C: cmp [rbp+var_8C], 0 jz short loc_7997E loc_79935: call _my_thread_var mov dword ptr [rax], 7Fh loc_79940: call _my_thread_var mov r14d, [rax] mov rdi, rbx xor esi, esi call _mi_writeinfo call _my_thread_var mov [rax], r14d loc_7995A: mov rax, fs:28h cmp rax, [rbp+var_30] jnz short loc_799B0 mov eax, r14d add rsp, 0F8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_7997E: call _my_thread_var mov dword ptr [rax], 86h mov rax, [rbp+var_50] mov [rbx+170h], rax add rax, [rbp+var_60] mov [rbx+178h], rax jmp short loc_79940 loc_799A1: call _my_thread_var cmp dword ptr [rax], 0AFh jz short loc_79935 jmp short loc_79940 loc_799B0: call ___stack_chk_fail
long long mi_read_rnd_dynamic_record(unsigned long long a1, unsigned long long a2, unsigned long long a3, int a4) { long long v6; // rbx unsigned int *v7; // rax long long v8; // r15 bool v9; // zf unsigned long long v10; // rax int v11; // eax unsigned int block_info; // eax unsigned long long v13; // rcx unsigned long long v14; // rax unsigned long long v15; // r15 long long v16; // r12 unsigned int v17; // r13d long long v18; // rbx int v19; // eax unsigned int v20; // r14d long long v21; // rax long long v22; // r14 int v23; // ecx _BYTE *v24; // r12 unsigned int v25; // r14d long long v26; // r8 long long v28; // rax _BYTE v29[72]; // [rsp+0h] [rbp-120h] BYREF long long v30; // [rsp+48h] [rbp-D8h] const char *v31; // [rsp+50h] [rbp-D0h] long long *v32; // [rsp+58h] [rbp-C8h] int v33; // [rsp+64h] [rbp-BCh] long long v34; // [rsp+68h] [rbp-B8h] unsigned int *v35; // [rsp+70h] [rbp-B0h] long long v36; // [rsp+78h] [rbp-A8h] _QWORD *v37; // [rsp+80h] [rbp-A0h] long long v38; // [rsp+88h] [rbp-98h] int v39; // [rsp+94h] [rbp-8Ch] _BYTE v40[24]; // [rsp+98h] [rbp-88h] BYREF unsigned long long v41; // [rsp+B0h] [rbp-70h] unsigned long long v42; // [rsp+B8h] [rbp-68h] long long v43; // [rsp+C0h] [rbp-60h] long long v44; // [rsp+D0h] [rbp-50h] unsigned long long v45; // [rsp+D8h] [rbp-48h] int v46; // [rsp+E8h] [rbp-38h] unsigned long long v47; // [rsp+F0h] [rbp-30h] v31 = (const char *)a2; v6 = a1; v47 = __readfsqword(0x28u); v7 = *(unsigned int **)a1; v8 = 1LL; v9 = *(_DWORD *)(a1 + 500) == 2; v36 = 1LL; v35 = v7; if ( v9 ) { v36 = 0LL; if ( !v7[218] ) { a1 = v7[212]; v26 = *(_QWORD *)(v6 + 816) | 0x20LL; v36 = 0LL; a2 = 0LL; if ( (unsigned int)my_lock(a1, 0LL, 0LL, 0LL, v26) ) return *(unsigned int *)my_thread_var(a1, (const char *)a2); } } v46 = 0; v37 = (_QWORD *)(v6 + 544); v32 = (long long *)(v6 + 288); v39 = 0; v30 = v6; do { v10 = *(_QWORD *)(*(_QWORD *)(v6 + 8) + 40LL); if ( a3 >= v10 ) { if ( !(_DWORD)v36 ) { *(_DWORD *)(v6 + 768) = 1; a2 = (unsigned long long)v35; a1 = v35[212]; if ( (unsigned int)mi_state_info_read_dsk(a1, v35, 1LL) ) goto LABEL_57; v10 = *(_QWORD *)(*(_QWORD *)(v6 + 8) + 40LL); } v36 = 1LL; if ( a3 >= v10 ) { *(_DWORD *)my_thread_var(a1, (const char *)a2) = 137; goto LABEL_58; } } v11 = *(_DWORD *)(v6 + 456); if ( (v11 & 2) != 0 ) { a1 = (unsigned long long)v37; a2 = 0xFFFFFFFFLL; if ( (unsigned int)mi_read_cache(v37, v40, a3, 20LL, (v39 == 0 && (_BYTE)a4 != 0) | 2u) ) goto LABEL_57; } else { if ( (v11 & 0x10) != 0 && *v37 < a3 + 20 ) { a1 = (unsigned long long)v37; a2 = 1LL; if ( (unsigned int)my_b_flush_io_cache(v37, 1LL) ) return *(unsigned int *)my_thread_var(a1, (const char *)a2); } *(_DWORD *)(v6 + 768) = 1; a2 = *(unsigned int *)(v6 + 448); } a1 = (unsigned long long)v40; block_info = mi_get_block_info((long long)v40, a2, a3); if ( block_info >= 4 ) { if ( (block_info & 0x14) == 0 ) goto LABEL_58; if ( !(_BYTE)a4 ) { if ( v39 ) goto LABEL_57; *(_DWORD *)my_thread_var(v40, (const char *)a2) = 134; v28 = v44; *(_QWORD *)(v6 + 368) = v44; *(_QWORD *)(v6 + 376) = v43 + v28; LABEL_58: v25 = *(_DWORD *)my_thread_var(a1, (const char *)a2); mi_writeinfo(v6, 0LL); *(_DWORD *)my_thread_var(v6, 0LL) = v25; return v25; } a3 = v44 + v43; v46 = 0; } else { if ( !v39 ) { v13 = v41; if ( v41 > v35[86] ) goto LABEL_57; a2 = v41; *(_QWORD *)(v6 + 368) = a3; if ( v35[98] ) { a1 = v6; v38 = mi_alloc_rec_buff(v6, a2, v32); if ( !v38 ) goto LABEL_58; v8 = v41; } else { v38 = *v32; v8 = v13; } } v34 = v8; v14 = (unsigned int)v8; v15 = v42; if ( v42 > v14 ) goto LABEL_57; v33 = a4; v16 = v44; v17 = v42; if ( v42 >= (unsigned int)(20 - (v44 - a3)) ) v17 = 20 - (v44 - a3); if ( v17 ) { a2 = (unsigned long long)&v40[(unsigned int)(v44 - a3)]; v18 = v38; a1 = v38; memcpy(v38, a2, v17); v15 = v42 - v17; v42 = v15; v34 = (unsigned int)v34 - v17; v38 = v17 + v18; v16 += v17; } a4 = v33; v6 = v30; if ( v15 ) { v19 = *(_DWORD *)(v30 + 456); if ( (v19 & 2) != 0 ) { a1 = (unsigned long long)v37; a2 = v38; if ( (unsigned int)mi_read_cache(v37, v38, v16, v15, (v39 == 0) & (unsigned __int8)((_BYTE)v33 != 0)) ) goto LABEL_57; } else { if ( (v19 & 0x10) != 0 && *v37 < v15 + v44 ) { a1 = (unsigned long long)v37; a2 = 1LL; if ( (unsigned int)my_b_flush_io_cache(v37, 1LL) ) goto LABEL_58; v15 = v42; } v20 = *(_DWORD *)(v6 + 448); v21 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v29, v20, 6LL); if ( v21 ) { v24 = (_BYTE *)v21; ((void ( *)(long long, unsigned long long, const char *, long long))PSI_server[66])( v21, v15, "/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_dynrec.c", 1859LL); v22 = my_read(v20, v38, v15, 4LL); if ( v22 ) v15 = 0LL; a1 = (unsigned long long)v24; a2 = v15; ((void ( *)(_BYTE *, unsigned long long))PSI_server[67])(v24, v15); } else { a1 = v20; a2 = v38; v22 = my_read(v20, v38, v15, 4LL); } if ( v22 ) { if ( *(_DWORD *)my_thread_var(a1, (const char *)a2) != 175 ) goto LABEL_58; LABEL_57: *(_DWORD *)my_thread_var(a1, (const char *)a2) = 127; goto LABEL_58; } } } v23 = v39; if ( !v39 ) { *(_QWORD *)(v6 + 376) = v44 + v43; a4 = 0; } v39 = v23 + 1; a3 = v45; v8 = (unsigned int)(v34 - v42); v38 += v42; } } while ( (_DWORD)v8 ); *(_BYTE *)(v6 + 464) |= 0x82u; if ( !*(_DWORD *)(*(_QWORD *)v6 + 872LL) ) mi_writeinfo(v6, 0LL); a1 = v6; a2 = (unsigned long long)v31; v25 = 0; if ( mi_rec_unpack(v6, v31, *(unsigned __int8 **)(v6 + 288), v41) == -1 ) return *(unsigned int *)my_thread_var(a1, (const char *)a2); return v25; }
_mi_read_rnd_dynamic_record: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xf8 MOV R13D,ECX MOV R14,RDX MOV qword ptr [RBP + -0xd0],RSI MOV RBX,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RDI] MOV R15D,0x1 CMP dword ptr [RDI + 0x1f4],0x2 MOV ECX,0x1 MOV qword ptr [RBP + -0xa8],RCX MOV qword ptr [RBP + -0xb0],RAX JNZ 0x001794b5 MOV qword ptr [RBP + -0xa8],0x0 CMP dword ptr [RAX + 0x368],0x0 JZ 0x001798e6 LAB_001794b5: LEA RAX,[RBP + -0x88] MOV dword ptr [RAX + 0x50],0x0 LEA RAX,[RBX + 0x220] MOV qword ptr [RBP + -0xa0],RAX LEA RAX,[RBX + 0x120] MOV qword ptr [RBP + -0xc8],RAX MOV dword ptr [RBP + -0x8c],0x0 MOV qword ptr [RBP + -0xd8],RBX LAB_001794f0: MOV RAX,qword ptr [RBX + 0x8] MOV RAX,qword ptr [RAX + 0x28] CMP R14,RAX JC 0x0017954c CMP dword ptr [RBP + -0xa8],0x0 JNZ 0x00179537 MOV dword ptr [RBX + 0x300],0x1 MOV RSI,qword ptr [RBP + -0xb0] MOV EDI,dword ptr [RSI + 0x350] MOV EDX,0x1 CALL 0x0017fcf4 TEST EAX,EAX JNZ 0x00179935 MOV RAX,qword ptr [RBX + 0x8] MOV RAX,qword ptr [RAX + 0x28] LAB_00179537: MOV ECX,0x1 MOV qword ptr [RBP + -0xa8],RCX CMP R14,RAX JNC 0x0017991f LAB_0017954c: MOV EAX,dword ptr [RBX + 0x1c8] TEST AL,0x2 JNZ 0x00179595 TEST AL,0x10 JZ 0x00179583 LEA RAX,[R14 + 0x14] MOV RCX,qword ptr [RBP + -0xa0] CMP qword ptr [RCX],RAX JNC 0x00179583 MOV RDI,qword ptr [RBP + -0xa0] MOV ESI,0x1 CALL 0x001950b1 TEST EAX,EAX JNZ 0x00179915 LAB_00179583: MOV dword ptr [RBX + 0x300],0x1 MOV ESI,dword ptr [RBX + 0x1c0] JMP 0x001795d7 LAB_00179595: CMP dword ptr [RBP + -0x8c],0x0 SETZ AL TEST R13B,R13B SETNZ CL AND CL,AL MOVZX R8D,CL OR R8D,0x2 MOV ECX,0x14 MOV RDI,qword ptr [RBP + -0xa0] LEA RSI,[RBP + -0x88] MOV RDX,R14 CALL 0x0018eaa4 MOV ESI,0xffffffff TEST EAX,EAX JNZ 0x00179935 LAB_001795d7: LEA RDI,[RBP + -0x88] MOV RDX,R14 CALL 0x00177f63 CMP EAX,0x4 JNC 0x00179651 CMP dword ptr [RBP + -0x8c],0x0 JNZ 0x0017968a MOV RCX,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RBP + -0xb0] MOV EAX,dword ptr [RAX + 0x158] CMP RCX,RAX JA 0x00179935 MOV RSI,RCX MOV qword ptr [RBX + 0x170],R14 MOV RAX,qword ptr [RBP + -0xb0] CMP dword ptr [RAX + 0x188],0x0 JZ 0x00179676 MOV RDI,RBX MOV RDX,qword ptr [RBP + -0xc8] CALL 0x0017f84d MOV qword ptr [RBP + -0x98],RAX TEST RAX,RAX JZ 0x00179940 MOV R15,qword ptr [RBP + -0x70] JMP 0x0017968a LAB_00179651: TEST AL,0x14 JZ 0x00179940 TEST R13B,R13B JZ 0x0017992c MOV R14,qword ptr [RBP + -0x60] ADD R14,qword ptr [RBP + -0x50] MOV dword ptr [RBP + -0x38],0x0 JMP 0x00179833 LAB_00179676: MOV RAX,qword ptr [RBP + -0xc8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x98],RAX MOV R15,RSI LAB_0017968a: MOV qword ptr [RBP + -0xb8],R15 MOV EAX,R15D MOV R15,qword ptr [RBP + -0x68] CMP R15,RAX JA 0x00179935 MOV dword ptr [RBP + -0xbc],R13D MOV R12,qword ptr [RBP + -0x50] MOV RAX,R12 SUB RAX,R14 MOV ECX,0x14 SUB ECX,EAX CMP R15,RCX MOV R13D,R15D CMOVNC R13D,ECX TEST R13D,R13D JZ 0x00179713 MOV EAX,EAX LEA RSI,[RAX + RBP*0x1] ADD RSI,-0x88 MOV R14D,R13D MOV RBX,qword ptr [RBP + -0x98] MOV RDI,RBX MOV RDX,R14 CALL 0x00129080 MOV R15,qword ptr [RBP + -0x68] SUB R15,R14 MOV qword ptr [RBP + -0x68],R15 MOV RAX,qword ptr [RBP + -0xb8] SUB EAX,R13D MOV qword ptr [RBP + -0xb8],RAX ADD RBX,R14 MOV qword ptr [RBP + -0x98],RBX ADD R12,R14 LAB_00179713: TEST R15,R15 MOV R13D,dword ptr [RBP + -0xbc] MOV RBX,qword ptr [RBP + -0xd8] JZ 0x001797f6 MOV EAX,dword ptr [RBX + 0x1c8] TEST AL,0x2 JNZ 0x001797bf TEST AL,0x10 JZ 0x0017976c MOV RAX,qword ptr [RBP + -0x50] ADD RAX,R15 MOV RCX,qword ptr [RBP + -0xa0] CMP qword ptr [RCX],RAX JNC 0x0017976c MOV RDI,qword ptr [RBP + -0xa0] MOV ESI,0x1 CALL 0x001950b1 TEST EAX,EAX JNZ 0x00179940 MOV R15,qword ptr [RBP + -0x68] LAB_0017976c: MOV R14D,dword ptr [RBX + 0x1c0] LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] LEA RDI,[RBP + -0x120] MOV ESI,R14D MOV EDX,0x6 CALL qword ptr [RAX + 0x158] TEST RAX,RAX JNZ 0x0017983e MOV ECX,0x4 MOV EDI,R14D MOV RSI,qword ptr [RBP + -0x98] MOV RDX,R15 CALL 0x001a04f0 MOV R14,RAX LAB_001797b5: TEST R14,R14 JZ 0x001797f6 JMP 0x001799a1 LAB_001797bf: CMP dword ptr [RBP + -0x8c],0x0 SETZ AL TEST R13B,R13B SETNZ CL AND CL,AL MOVZX R8D,CL MOV RDI,qword ptr [RBP + -0xa0] MOV RSI,qword ptr [RBP + -0x98] MOV RDX,R12 MOV RCX,R15 CALL 0x0018eaa4 TEST EAX,EAX JNZ 0x00179935 LAB_001797f6: MOV ECX,dword ptr [RBP + -0x8c] TEST ECX,ECX JNZ 0x00179812 MOV RAX,qword ptr [RBP + -0x60] ADD RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBX + 0x178],RAX XOR R13D,R13D LAB_00179812: INC ECX MOV dword ptr [RBP + -0x8c],ECX MOV RAX,qword ptr [RBP + -0x68] MOV R14,qword ptr [RBP + -0x48] MOV R15,qword ptr [RBP + -0xb8] SUB R15D,EAX ADD qword ptr [RBP + -0x98],RAX LAB_00179833: TEST R15D,R15D JNZ 0x001794f0 JMP 0x001798a4 LAB_0017983e: MOV R12,RAX LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] MOV RDI,R12 MOV RSI,R15 LEA RDX,[0x1db8ac] MOV ECX,0x743 CALL qword ptr [RAX + 0x210] MOV ECX,0x4 MOV EDI,R14D MOV RSI,qword ptr [RBP + -0x98] MOV RDX,R15 CALL 0x001a04f0 MOV R14,RAX TEST RAX,RAX MOV EAX,0x0 CMOVNZ R15,RAX LEA RAX,[0x486010] MOV RAX,qword ptr [RAX] MOV RDI,R12 MOV RSI,R15 CALL qword ptr [RAX + 0x218] JMP 0x001797b5 LAB_001798a4: OR byte ptr [RBX + 0x1d0],0x82 MOV RAX,qword ptr [RBX] CMP dword ptr [RAX + 0x368],0x0 JNZ 0x001798c1 MOV RDI,RBX XOR ESI,ESI CALL 0x0017c466 LAB_001798c1: MOV RDX,qword ptr [RBX + 0x120] MOV RCX,qword ptr [RBP + -0x70] MOV RDI,RBX MOV RSI,qword ptr [RBP + -0xd0] CALL 0x0017881d XOR R14D,R14D CMP RAX,-0x1 JNZ 0x0017995a JMP 0x00179915 LAB_001798e6: MOV EDI,dword ptr [RAX + 0x350] MOV R8,qword ptr [RBX + 0x330] OR R8,0x20 MOV qword ptr [RBP + -0xa8],0x0 XOR ESI,ESI XOR EDX,EDX XOR ECX,ECX CALL 0x0019f6a4 TEST EAX,EAX JZ 0x001794b5 LAB_00179915: CALL 0x001a1672 MOV R14D,dword ptr [RAX] JMP 0x0017995a LAB_0017991f: CALL 0x001a1672 MOV dword ptr [RAX],0x89 JMP 0x00179940 LAB_0017992c: CMP dword ptr [RBP + -0x8c],0x0 JZ 0x0017997e LAB_00179935: CALL 0x001a1672 MOV dword ptr [RAX],0x7f LAB_00179940: CALL 0x001a1672 MOV R14D,dword ptr [RAX] MOV RDI,RBX XOR ESI,ESI CALL 0x0017c466 CALL 0x001a1672 MOV dword ptr [RAX],R14D LAB_0017995a: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x001799b0 MOV EAX,R14D ADD RSP,0xf8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0017997e: CALL 0x001a1672 MOV dword ptr [RAX],0x86 MOV RAX,qword ptr [RBP + -0x50] MOV qword ptr [RBX + 0x170],RAX ADD RAX,qword ptr [RBP + -0x60] MOV qword ptr [RBX + 0x178],RAX JMP 0x00179940 LAB_001799a1: CALL 0x001a1672 CMP dword ptr [RAX],0xaf JZ 0x00179935 JMP 0x00179940 LAB_001799b0: CALL 0x00129270
int4 _mi_read_rnd_dynamic_record(long *param_1,int8 param_2,ulong param_3,int4 param_4) { void *pvVar1; int iVar2; uint uVar3; uint uVar4; ulong uVar5; long lVar6; int4 *puVar7; int *piVar8; uint uVar9; long lVar10; int4 uVar11; ulong uVar12; long in_FS_OFFSET; int1 local_128 [72]; long *local_e0; int8 local_d8; long *local_d0; int4 local_c4; ulong local_c0; long local_b8; int8 local_b0; ulong *local_a8; void *local_a0; int local_94; int1 local_90 [24]; ulong local_78; ulong local_70; long local_68; long local_58; ulong local_50; int4 local_40; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); local_b8 = *param_1; uVar12 = 1; local_b0 = 1; local_d8 = param_2; if ((*(int *)((long)param_1 + 500) == 2) && (local_b0 = 0, *(int *)(local_b8 + 0x368) == 0)) { local_b0 = 0; iVar2 = my_lock(*(int4 *)(local_b8 + 0x350),0,0,0,param_1[0x66] | 0x20); if (iVar2 == 0) goto LAB_001794b5; } else { LAB_001794b5: local_40 = 0; local_a8 = (ulong *)(param_1 + 0x44); local_d0 = param_1 + 0x24; local_94 = 0; local_e0 = param_1; do { uVar5 = *(ulong *)(param_1[1] + 0x28); if (uVar5 <= param_3) { if ((int)local_b0 == 0) { *(int4 *)(param_1 + 0x60) = 1; iVar2 = mi_state_info_read_dsk(*(int4 *)(local_b8 + 0x350),local_b8,1); if (iVar2 == 0) { uVar5 = *(ulong *)(param_1[1] + 0x28); goto LAB_00179537; } LAB_00179935: puVar7 = (int4 *)_my_thread_var(); *puVar7 = 0x7f; } else { LAB_00179537: local_b0 = 1; if (param_3 < uVar5) goto LAB_0017954c; puVar7 = (int4 *)_my_thread_var(); *puVar7 = 0x89; } LAB_00179940: puVar7 = (int4 *)_my_thread_var(); uVar11 = *puVar7; _mi_writeinfo(param_1,0); puVar7 = (int4 *)_my_thread_var(); *puVar7 = uVar11; goto LAB_0017995a; } LAB_0017954c: if ((*(uint *)(param_1 + 0x39) & 2) == 0) { if ((((*(uint *)(param_1 + 0x39) & 0x10) != 0) && (*local_a8 < param_3 + 0x14)) && (iVar2 = my_b_flush_io_cache(local_a8,1), iVar2 != 0)) goto LAB_00179915; *(int4 *)(param_1 + 0x60) = 1; uVar11 = (int4)param_1[0x38]; } else { iVar2 = _mi_read_cache(local_a8,local_90,param_3,0x14, ((char)param_4 != '\0' && local_94 == 0) | 2); uVar11 = 0xffffffff; if (iVar2 != 0) goto LAB_00179935; } uVar3 = _mi_get_block_info(local_90,uVar11,param_3); if (3 < uVar3) { if ((uVar3 & 0x14) != 0) { if ((char)param_4 != '\0') { param_3 = local_68 + local_58; local_40 = 0; goto LAB_00179833; } if (local_94 != 0) goto LAB_00179935; puVar7 = (int4 *)_my_thread_var(); *puVar7 = 0x86; param_1[0x2e] = local_58; param_1[0x2f] = local_58 + local_68; } goto LAB_00179940; } if (local_94 == 0) { if (*(uint *)(local_b8 + 0x158) < local_78) goto LAB_00179935; param_1[0x2e] = param_3; if (*(int *)(local_b8 + 0x188) == 0) { local_a0 = (void *)*local_d0; uVar12 = local_78; } else { local_a0 = (void *)mi_alloc_rec_buff(param_1,local_78,local_d0); uVar12 = local_78; if (local_a0 == (void *)0x0) goto LAB_00179940; } } lVar10 = local_58; pvVar1 = local_a0; local_c0 = uVar12; if ((uVar12 & 0xffffffff) < local_70) goto LAB_00179935; uVar4 = (int)local_58 - (int)param_3; uVar9 = 0x14 - uVar4; uVar3 = (uint)local_70; if (uVar9 <= local_70) { uVar3 = uVar9; } local_c4 = param_4; if (uVar3 != 0) { uVar12 = (ulong)uVar3; memcpy(local_a0,local_90 + uVar4,uVar12); local_70 = local_70 - uVar12; local_c0 = (ulong)((int)local_c0 - uVar3); local_a0 = (void *)((long)pvVar1 + uVar12); lVar10 = lVar10 + uVar12; } param_4 = local_c4; param_1 = local_e0; if (local_70 != 0) { if ((*(uint *)(local_e0 + 0x39) & 2) == 0) { if ((((*(uint *)(local_e0 + 0x39) & 0x10) == 0) || (local_58 + local_70 <= *local_a8)) || (iVar2 = my_b_flush_io_cache(local_a8,1), iVar2 == 0)) { uVar12 = local_70; uVar11 = (int4)param_1[0x38]; lVar10 = (**(code **)(PSI_server + 0x158))(local_128,uVar11,6); if (lVar10 == 0) { lVar6 = my_read(uVar11,local_a0,uVar12,4); } else { (**(code **)(PSI_server + 0x210)) (lVar10,uVar12, "/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_dynrec.c",0x743 ); lVar6 = my_read(uVar11,local_a0,uVar12,4); if (lVar6 != 0) { uVar12 = 0; } (**(code **)(PSI_server + 0x218))(lVar10,uVar12); } if (lVar6 == 0) goto LAB_001797f6; piVar8 = (int *)_my_thread_var(); if (*piVar8 == 0xaf) goto LAB_00179935; } goto LAB_00179940; } iVar2 = _mi_read_cache(local_a8,local_a0,lVar10,local_70, (char)local_c4 != '\0' && local_94 == 0); if (iVar2 != 0) goto LAB_00179935; } LAB_001797f6: if (local_94 == 0) { param_1[0x2f] = local_68 + local_58; param_4 = 0; } local_94 = local_94 + 1; uVar12 = (ulong)(uint)((int)local_c0 - (int)local_70); local_a0 = (void *)((long)local_a0 + local_70); param_3 = local_50; LAB_00179833: } while ((int)uVar12 != 0); *(byte *)(param_1 + 0x3a) = *(byte *)(param_1 + 0x3a) | 0x82; if (*(int *)(*param_1 + 0x368) == 0) { _mi_writeinfo(param_1,0); } lVar10 = _mi_rec_unpack(param_1,local_d8,param_1[0x24],local_78); uVar11 = 0; if (lVar10 != -1) goto LAB_0017995a; } LAB_00179915: puVar7 = (int4 *)_my_thread_var(); uVar11 = *puVar7; LAB_0017995a: if (*(long *)(in_FS_OFFSET + 0x28) != local_38) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return uVar11; }
6,299
js_typed_array_get_buffer
bluesky950520[P]quickjs/quickjs.c
static JSValue js_typed_array_get_buffer(JSContext *ctx, JSValue this_val) { JSObject *p; JSTypedArray *ta; p = get_typed_array(ctx, this_val); if (!p) return JS_EXCEPTION; ta = p->u.typed_array; return js_dup(JS_MKPTR(JS_TAG_OBJECT, ta->buffer)); }
O1
c
js_typed_array_get_buffer: pushq %rbx subq $0x10, %rsp movq %rsi, 0x8(%rsp) cmpl $-0x1, %edx jne 0x7fc31 movq 0x8(%rsp), %rbx movzwl 0x6(%rbx), %eax addl $-0x15, %eax cmpw $0xc, %ax jb 0x7fc41 leaq 0x210d1(%rip), %rsi # 0xa0d09 xorl %ebx, %ebx xorl %eax, %eax callq 0x21953 testq %rbx, %rbx je 0x7fc59 movq 0x30(%rbx), %rax movq 0x18(%rax), %rax incl (%rax) movq $-0x1, %rdx jmp 0x7fc60 movl $0x6, %edx xorl %eax, %eax addq $0x10, %rsp popq %rbx retq
js_typed_array_get_buffer: push rbx sub rsp, 10h mov [rsp+18h+var_10], rsi cmp edx, 0FFFFFFFFh jnz short loc_7FC31 mov rbx, [rsp+18h+var_10] movzx eax, word ptr [rbx+6] add eax, 0FFFFFFEBh cmp ax, 0Ch jb short loc_7FC41 loc_7FC31: lea rsi, aNotATypedarray; "not a TypedArray" xor ebx, ebx xor eax, eax call JS_ThrowTypeError loc_7FC41: test rbx, rbx jz short loc_7FC59 mov rax, [rbx+30h] mov rax, [rax+18h] inc dword ptr [rax] mov rdx, 0FFFFFFFFFFFFFFFFh jmp short loc_7FC60 loc_7FC59: mov edx, 6 xor eax, eax loc_7FC60: add rsp, 10h pop rbx retn
_DWORD * js_typed_array_get_buffer( long long a1, long long a2, long long a3, long long 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 v14; // rbx _DWORD *result; // rax char v16; // [rsp+0h] [rbp-18h] if ( (_DWORD)a3 != -1 || (v14 = a2, (unsigned __int16)(*(_WORD *)(a2 + 6) - 21) >= 0xCu) ) { v14 = 0LL; JS_ThrowTypeError(a1, (long long)"not a TypedArray", a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v16); } if ( !v14 ) return 0LL; result = *(_DWORD **)(*(_QWORD *)(v14 + 48) + 24LL); ++*result; return result; }
js_typed_array_get_buffer: PUSH RBX SUB RSP,0x10 MOV qword ptr [RSP + 0x8],RSI CMP EDX,-0x1 JNZ 0x0017fc31 MOV RBX,qword ptr [RSP + 0x8] MOVZX EAX,word ptr [RBX + 0x6] ADD EAX,-0x15 CMP AX,0xc JC 0x0017fc41 LAB_0017fc31: LEA RSI,[0x1a0d09] XOR EBX,EBX XOR EAX,EAX CALL 0x00121953 LAB_0017fc41: TEST RBX,RBX JZ 0x0017fc59 MOV RAX,qword ptr [RBX + 0x30] MOV RAX,qword ptr [RAX + 0x18] INC dword ptr [RAX] MOV RDX,-0x1 JMP 0x0017fc60 LAB_0017fc59: MOV EDX,0x6 XOR EAX,EAX LAB_0017fc60: ADD RSP,0x10 POP RBX RET
int1 [16] js_typed_array_get_buffer(int8 param_1,long param_2,int param_3) { int *piVar1; int8 uVar2; int1 auVar3 [16]; if ((param_3 != -1) || (0xb < (ushort)(*(short *)(param_2 + 6) - 0x15U))) { param_2 = 0; JS_ThrowTypeError(param_1,"not a TypedArray"); } if (param_2 == 0) { uVar2 = 6; piVar1 = (int *)0x0; } else { piVar1 = *(int **)(*(long *)(param_2 + 0x30) + 0x18); *piVar1 = *piVar1 + 1; uVar2 = 0xffffffffffffffff; } auVar3._8_8_ = uVar2; auVar3._0_8_ = piVar1; return auVar3; }