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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
28,100 | init_myisam_psi_keys | eloqsql/storage/myisam/mi_static.c | void init_myisam_psi_keys()
{
const char* category= "myisam";
int count;
count= array_elements(all_myisam_mutexes);
mysql_mutex_register(category, all_myisam_mutexes, count);
count= array_elements(all_myisam_rwlocks);
mysql_rwlock_register(category, all_myisam_rwlocks, count);
count= array_elements(all_myisam_conds);
mysql_cond_register(category, all_myisam_conds, count);
count= array_elements(all_myisam_files);
mysql_file_register(category, all_myisam_files, count);
count= array_elements(all_myisam_threads);
mysql_thread_register(category, all_myisam_threads, count);
count= array_elements(all_myisam_memory);
mysql_memory_register(category, all_myisam_memory, count);
} | O3 | c | init_myisam_psi_keys:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
leaq 0x313dfa(%rip), %r14 # 0x387050
movq (%r14), %rax
leaq 0x6a113(%rip), %rbx # 0xdd373
leaq 0x313189(%rip), %rsi # 0x3863f0
movq %rbx, %rdi
movl $0x3, %edx
callq *(%rax)
movq (%r14), %rax
leaq 0x3131c5(%rip), %rsi # 0x386440
movq %rbx, %rdi
movl $0x2, %edx
callq *0x8(%rax)
movq (%r14), %rax
leaq 0x3131e0(%rip), %rsi # 0x386470
movq %rbx, %rdi
movl $0x1, %edx
callq *0x10(%rax)
movq (%r14), %rax
leaq 0x3131eb(%rip), %rsi # 0x386490
movq %rbx, %rdi
movl $0x4, %edx
callq *0x20(%rax)
movq (%r14), %rax
leaq 0x313236(%rip), %rsi # 0x3864f0
movq %rbx, %rdi
movl $0x1, %edx
callq *0x18(%rax)
movq (%r14), %rax
movq 0x3d8(%rax), %rax
leaq 0x31323a(%rip), %rsi # 0x386510
movq %rbx, %rdi
movl $0x15, %edx
popq %rbx
popq %r14
popq %rbp
jmpq *%rax
| init_myisam_psi_keys:
push rbp
mov rbp, rsp
push r14
push rbx
lea r14, PSI_server
mov rax, [r14]
lea rbx, aThrLockMyisam+9; "myisam"
lea rsi, all_myisam_mutexes
mov rdi, rbx
mov edx, 3
call qword ptr [rax]
mov rax, [r14]
lea rsi, all_myisam_rwlocks
mov rdi, rbx
mov edx, 2
call qword ptr [rax+8]
mov rax, [r14]
lea rsi, all_myisam_conds
mov rdi, rbx
mov edx, 1
call qword ptr [rax+10h]
mov rax, [r14]
lea rsi, all_myisam_files
mov rdi, rbx
mov edx, 4
call qword ptr [rax+20h]
mov rax, [r14]
lea rsi, all_myisam_threads
mov rdi, rbx
mov edx, 1
call qword ptr [rax+18h]
mov rax, [r14]
mov rax, [rax+3D8h]
lea rsi, all_myisam_memory
mov rdi, rbx
mov edx, 15h
pop rbx
pop r14
pop rbp
jmp rax
| long long init_myisam_psi_keys()
{
((void ( *)(char *, _UNKNOWN **, long long))*PSI_server)("myisam", &all_myisam_mutexes, 3LL);
((void ( *)(char *, _UNKNOWN **, long long))PSI_server[1])("myisam", &all_myisam_rwlocks, 2LL);
((void ( *)(char *, _UNKNOWN **, long long))PSI_server[2])("myisam", &all_myisam_conds, 1LL);
((void ( *)(char *, _UNKNOWN **, long long))PSI_server[4])("myisam", &all_myisam_files, 4LL);
((void ( *)(char *, _UNKNOWN **, long long))PSI_server[3])("myisam", &all_myisam_threads, 1LL);
return ((long long ( *)(char *, _UNKNOWN **, long long))PSI_server[123])("myisam", &all_myisam_memory, 21LL);
}
| init_myisam_psi_keys:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
LEA R14,[0x487050]
MOV RAX,qword ptr [R14]
LEA RBX,[0x1dd373]
LEA RSI,[0x4863f0]
MOV RDI,RBX
MOV EDX,0x3
CALL qword ptr [RAX]
MOV RAX,qword ptr [R14]
LEA RSI,[0x486440]
MOV RDI,RBX
MOV EDX,0x2
CALL qword ptr [RAX + 0x8]
MOV RAX,qword ptr [R14]
LEA RSI,[0x486470]
MOV RDI,RBX
MOV EDX,0x1
CALL qword ptr [RAX + 0x10]
MOV RAX,qword ptr [R14]
LEA RSI,[0x486490]
MOV RDI,RBX
MOV EDX,0x4
CALL qword ptr [RAX + 0x20]
MOV RAX,qword ptr [R14]
LEA RSI,[0x4864f0]
MOV RDI,RBX
MOV EDX,0x1
CALL qword ptr [RAX + 0x18]
MOV RAX,qword ptr [R14]
MOV RAX,qword ptr [RAX + 0x3d8]
LEA RSI,[0x486510]
MOV RDI,RBX
MOV EDX,0x15
POP RBX
POP R14
POP RBP
JMP RAX
|
void init_myisam_psi_keys(void)
{
(**(code **)PSI_server)("myisam",all_myisam_mutexes,3);
(**(code **)(PSI_server + 8))("myisam",all_myisam_rwlocks,2);
(**(code **)(PSI_server + 0x10))("myisam",all_myisam_conds,1);
(**(code **)(PSI_server + 0x20))("myisam",all_myisam_files,4);
(**(code **)(PSI_server + 0x18))("myisam",all_myisam_threads,1);
/* WARNING: Could not recover jumptable at 0x001732e2. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(PSI_server + 0x3d8))("myisam",all_myisam_memory,0x15);
return;
}
| |
28,101 | 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> minja::Value::get<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 | monkey531[P]llama/common/minja.hpp | inline json Value::get<json>() const {
if (is_primitive()) return primitive_;
if (is_null()) return json();
if (array_) {
std::vector<json> res;
for (const auto& item : *array_) {
res.push_back(item.get<json>());
}
return res;
}
if (object_) {
json res = json::object();
for (const auto& [key, value] : *object_) {
if (key.is_string()) {
res[key.get<std::string>()] = value.get<json>();
} else if (key.is_primitive()) {
res[key.dump()] = value.get<json>();
} else {
throw std::runtime_error("Invalid key type for conversion to JSON: " + key.dump());
}
}
if (is_callable()) {
res["__callable__"] = true;
}
return res;
}
throw std::runtime_error("get<json> not defined for this value type: " + dump());
} | O1 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> minja::Value::get<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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x10(%rsi), %rax
movq 0x20(%rsi), %rcx
movq %rax, %rsi
orq %rcx, %rsi
movq 0x30(%r14), %rdx
orq %rdx, %rsi
jne 0xb37a6
addq $0x40, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5ea8c
jmp 0xb39fc
testq %rdx, %rdx
sete %dl
movq %rax, %rsi
orq %rcx, %rsi
sete %sil
cmpb $0x0, 0x40(%r14)
sete %dil
andb %sil, %dil
andb %dl, %dil
cmpb $0x1, %dil
jne 0xb37f5
movb $0x0, (%rbx)
movq $0x0, 0x8(%rbx)
movq %rbx, %rdi
movl $0x1, %esi
callq 0x59800
movq %rbx, %rdi
movl $0x1, %esi
callq 0x59800
jmp 0xb39fc
testq %rax, %rax
je 0xb3867
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movq (%rax), %r14
movq 0x8(%rax), %r13
cmpq %r13, %r14
je 0xb384f
leaq 0x20(%rsp), %r15
movq %rsp, %r12
movq %r15, %rdi
movq %r14, %rsi
callq 0xb3764
movq %r12, %rdi
movq %r15, %rsi
callq 0x5e632
movq %r15, %rdi
xorl %esi, %esi
callq 0x59800
movq %r15, %rdi
callq 0x5efec
addq $0x50, %r14
cmpq %r13, %r14
jne 0xb381e
movq %rsp, %rsi
movq %rbx, %rdi
callq 0xb434e
movq %rsp, %rdi
callq 0x5f828
jmp 0xb39fc
testq %rcx, %rcx
je 0xb3a77
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x1, %r8d
callq 0x8066a
movq 0x20(%r14), %rax
movq (%rax), %r15
movq 0x8(%rax), %r13
cmpq %r13, %r15
je 0xb399e
leaq 0xa8(%rsp), %rbp
leaq 0x68(%rsp), %r12
leaq 0x10(%r15), %rsi
movzbl (%r15), %eax
testl %eax, %eax
je 0xb391c
cmpl $0x4, %eax
je 0xb391c
cmpl $0x3, %eax
jne 0xb3912
leaq 0x40(%rsp), %rdi
callq 0xb3764
leaq 0x88(%rsp), %r12
movq %r12, %rdi
movq %r15, %rsi
callq 0x89326
movq %rbx, %rdi
movq %r12, %rsi
callq 0xad5f2
movq %rax, %rdi
leaq 0x40(%rsp), %r12
movq %r12, %rsi
callq 0x5c19c
movq 0x88(%rsp), %rdi
leaq 0x98(%rsp), %rcx
movq %rcx, %rax
cmpq %rcx, %rdi
jne 0xb396a
leaq 0x40(%rsp), %r12
jmp 0xb397a
addb $-0x5, %al
cmpb $0x3, %al
ja 0xb3a11
movq %rbp, %rdi
callq 0xb3764
movq %r12, %rdi
movq %r15, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
movl $0x20, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x8137a
movq %rbx, %rdi
movq %r12, %rsi
callq 0xad5f2
movq %rax, %rdi
movq %rbp, %rsi
callq 0x5c19c
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rcx
movq %rcx, %rax
movq %rbp, %r12
cmpq %rcx, %rdi
je 0xb3977
movq (%rax), %rsi
incq %rsi
callq 0x1b8e0
jmp 0xb397a
movq %rbp, %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x59800
movq %r12, %rdi
callq 0x5efec
addq $0x60, %r15
cmpq %r13, %r15
leaq 0x68(%rsp), %r12
jne 0xb38a5
cmpq $0x0, 0x30(%r14)
je 0xb39fc
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %r14
movaps %xmm0, (%r14)
movq %r14, %rdi
movl $0x1, %esi
callq 0x61144
movq %r14, %rdi
movl $0x1, %esi
callq 0x59800
leaq 0x40711(%rip), %rsi # 0xf40e3
movq %rbx, %rdi
callq 0xa6a68
leaq 0x50(%rsp), %r14
movq %rax, %rdi
movq %r14, %rsi
callq 0x5c19c
movq %r14, %rdi
xorl %esi, %esi
callq 0x59800
movq %r14, %rdi
callq 0x5efec
movq %rbx, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x1b430
movq %rax, %r12
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
movl $0x20, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x8137a
leaq 0x40677(%rip), %rsi # 0xf40b9
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x7a07b
movb $0x1, %bpl
movq %rsp, %rsi
movq %r12, %rdi
callq 0x1be30
xorl %ebp, %ebp
movq 0x7b58a(%rip), %rsi # 0x12eff0
movq 0x7b4f3(%rip), %rdx # 0x12ef60
movq %r12, %rdi
callq 0x1bf20
jmp 0xb3ad2
movl $0x10, %edi
callq 0x1b430
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movl $0xffffffff, %edx # imm = 0xFFFFFFFF
xorl %ecx, %ecx
callq 0x88256
leaq 0x40651(%rip), %rsi # 0xf40f0
movq %rsp, %rdi
leaq 0x20(%rsp), %rdx
callq 0x7a07b
movb $0x1, %bpl
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x1be30
xorl %ebp, %ebp
movq 0x7b52d(%rip), %rsi # 0x12eff0
movq 0x7b496(%rip), %rdx # 0x12ef60
movq %rbx, %rdi
callq 0x1bf20
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb3af8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1b8e0
jmp 0xb3af8
movq %rax, %r14
movb $0x1, %bpl
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb3b1b
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1b8e0
jmp 0xb3b1b
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0xb3c48
movq %rbx, %rdi
callq 0x1b670
jmp 0xb3c48
movq %rax, %r14
leaq 0x50(%rsp), %r15
jmp 0xb3bf6
movq %rax, %r14
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb3b64
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x1b8e0
jmp 0xb3b64
movq %rax, %r14
movb $0x1, %bpl
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb3b8c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x1b8e0
jmp 0xb3b8c
jmp 0xb3c21
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0xb3c0d
movq %r12, %rdi
callq 0x1b670
jmp 0xb3c0d
movq %rax, %r14
leaq 0x98(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb3bc4
movq 0x98(%rsp), %rsi
incq %rsi
callq 0x1b8e0
jmp 0xb3bc4
movq %rax, %r14
leaq 0x40(%rsp), %r15
jmp 0xb3bf6
movq %rax, %r14
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb3bee
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x1b8e0
jmp 0xb3bee
movq %rax, %r14
leaq 0xa8(%rsp), %r15
movq %r15, %rdi
xorl %esi, %esi
callq 0x59800
movq %r15, %rdi
callq 0x5efec
jmp 0xb3c0d
movq %rax, %r14
movq %rbx, %rdi
xorl %esi, %esi
callq 0x59800
movq %rbx, %rdi
callq 0x5efec
jmp 0xb3c48
movq %rax, %r14
jmp 0xb3c40
movq %rax, %r14
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x59800
movq %rbx, %rdi
callq 0x5efec
movq %rsp, %rdi
callq 0x5f828
movq %r14, %rdi
callq 0x1bfb0
| _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov r14, rsi
mov rbx, rdi
mov rax, [rsi+10h]
mov rcx, [rsi+20h]
mov rsi, rax
or rsi, rcx
mov rdx, [r14+30h]
or rsi, rdx
jnz short loc_B37A6
add r14, 40h ; '@'
mov rdi, rbx
mov rsi, r14
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 loc_B39FC
loc_B37A6:
test rdx, rdx
setz dl
mov rsi, rax
or rsi, rcx
setz sil
cmp byte ptr [r14+40h], 0
setz dil
and dil, sil
and dil, dl
cmp dil, 1
jnz short loc_B37F5
mov byte ptr [rbx], 0
mov qword ptr [rbx+8], 0
mov rdi, rbx
mov esi, 1
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
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)
jmp loc_B39FC
loc_B37F5:
test rax, rax
jz short loc_B3867
xorps xmm0, xmm0
movaps [rsp+0E8h+var_E8], xmm0
mov [rsp+0E8h+var_D8], 0
mov r14, [rax]
mov r13, [rax+8]
cmp r14, r13
jz short loc_B384F
lea r15, [rsp+0E8h+var_C8]
mov r12, rsp
loc_B381E:
mov rdi, r15
mov rsi, r14
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<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>>(void)
mov rdi, r12
mov rsi, r15
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE12emplace_backIJSD_EEERSD_DpOT_; 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>>::emplace_back<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> &&)
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 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()
add r14, 50h ; 'P'
cmp r14, r13
jnz short loc_B381E
loc_B384F:
mov rsi, rsp
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; 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>>::~vector()
jmp loc_B39FC
loc_B3867:
test rcx, rcx
jz loc_B3A77
mov rdi, rbx
xor esi, esi
xor edx, edx
xor ecx, ecx
mov r8d, 1
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)
mov rax, [r14+20h]
mov r15, [rax]
mov r13, [rax+8]
cmp r15, r13
jz loc_B399E
lea rbp, [rsp+0E8h+var_40]
lea r12, [rsp+0E8h+var_80]
loc_B38A5:
lea rsi, [r15+10h]
movzx eax, byte ptr [r15]
test eax, eax
jz short loc_B391C
cmp eax, 4
jz short loc_B391C
cmp eax, 3
jnz short loc_B3912
lea rdi, [rsp+0E8h+var_A8]
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<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>>(void)
lea r12, [rsp+0E8h+var_60]
mov rdi, r12
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
mov rdi, rbx
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixES9_; 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::string)
mov rdi, rax
lea r12, [rsp+0E8h+var_A8]
mov rsi, r12
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, [rsp+0E8h+var_60]
lea rcx, [rsp+0E8h+var_50]
mov rax, rcx
cmp rdi, rcx
jnz short loc_B396A
lea r12, [rsp+0E8h+var_A8]
jmp short loc_B397A
loc_B3912:
add al, 0FBh
cmp al, 3
ja loc_B3A11
loc_B391C:
mov rdi, rbp
call _ZNK5minja5Value3getIN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEET_v; minja::Value::get<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>>(void)
mov rdi, r12
mov rsi, r15
mov edx, 0FFFFFFFFh
mov ecx, 20h ; ' '
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)
mov rdi, rbx
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixES9_; 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::string)
mov rdi, rax
mov rsi, rbp
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, [rsp+0E8h+var_80]; void *
lea rcx, [rsp+0E8h+var_70]
mov rax, rcx
mov r12, rbp
cmp rdi, rcx
jz short loc_B3977
loc_B396A:
mov rsi, [rax]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_B397A
loc_B3977:
mov r12, rbp
loc_B397A:
mov rdi, r12
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, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
add r15, 60h ; '`'
cmp r15, r13
lea r12, [rsp+0E8h+var_80]
jnz loc_B38A5
loc_B399E:
cmp qword ptr [r14+30h], 0
jz short loc_B39FC
xorps xmm0, xmm0
lea r14, [rsp+0E8h+var_98]
movaps xmmword ptr [r14], xmm0
mov rdi, r14
mov esi, 1
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)
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)
lea rsi, aCallable; "__callable__"
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixIKcEERSD_PT_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[]<char const>(char const *)
lea r14, [rsp+0E8h+var_98]
mov rdi, rax
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_B39FC:
mov rax, rbx
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_B3A11:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r12, rax
lea rdi, [rsp+0E8h+var_C8]
mov rsi, r15
mov edx, 0FFFFFFFFh
mov ecx, 20h ; ' '
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)
lea rsi, aInvalidKeyType; "Invalid key type for conversion to JSON"...
mov rdi, rsp
lea rdx, [rsp+0E8h+var_C8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
mov rsi, rsp
mov rdi, r12
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r12; void *
call ___cxa_throw
jmp short loc_B3AD2
loc_B3A77:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+0E8h+var_C8]
mov rsi, r14
mov edx, 0FFFFFFFFh
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aGetJsonNotDefi; "get<json> not defined for this value ty"...
mov rdi, rsp
lea rdx, [rsp+0E8h+var_C8]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
mov rsi, rsp
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_B3AD2:
mov r14, rax
lea rax, [rsp+0E8h+var_D8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B3AF8
mov rsi, [rsp+0E8h+var_D8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_B3AF8
mov r14, rax
mov bpl, 1
loc_B3AF8:
lea rax, [rsp+0E8h+var_B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B3B1B
mov rsi, [rsp+0E8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_B3B1B
mov r14, rax
mov bpl, 1
loc_B3B1B:
test bpl, bpl
jz loc_B3C48
mov rdi, rbx; void *
call ___cxa_free_exception
jmp loc_B3C48
mov r14, rax
lea r15, [rsp+0E8h+var_98]
jmp loc_B3BF6
mov r14, rax
lea rax, [rsp+0E8h+var_D8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B3B64
mov rsi, [rsp+0E8h+var_D8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_B3B64
mov r14, rax
mov bpl, 1
loc_B3B64:
lea rax, [rsp+0E8h+var_B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B3B8C
mov rsi, [rsp+0E8h+var_B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_B3B8C
jmp loc_B3C21
mov r14, rax
mov bpl, 1
loc_B3B8C:
test bpl, bpl
jz short loc_B3C0D
mov rdi, r12; void *
call ___cxa_free_exception
jmp short loc_B3C0D
mov r14, rax
lea rax, [rsp+0E8h+var_50]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B3BC4
mov rsi, [rsp+0E8h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_B3BC4
mov r14, rax
loc_B3BC4:
lea r15, [rsp+0E8h+var_A8]
jmp short loc_B3BF6
mov r14, rax
lea rax, [rsp+0E8h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_B3BEE
mov rsi, [rsp+0E8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_B3BEE
mov r14, rax
loc_B3BEE:
lea r15, [rsp+0E8h+var_40]
loc_B3BF6:
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 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()
jmp short loc_B3C0D
mov r14, rax
loc_B3C0D:
mov rdi, rbx
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, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
jmp short loc_B3C48
loc_B3C21:
mov r14, rax
jmp short loc_B3C40
mov r14, rax
lea rbx, [rsp+0E8h+var_C8]
mov rdi, rbx
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, rbx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_B3C40:
mov rdi, rsp
call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; 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>>::~vector()
loc_B3C48:
mov rdi, r14
call __Unwind_Resume
| long long minja::Value::get<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 a1,
long long a2)
{
unsigned long long v4; // rax
long long v5; // rcx
long long v6; // rdx
long long v7; // r14
long long v8; // r13
long long v9; // rax
_BYTE *v10; // r15
_BYTE *v11; // r13
_BYTE *v12; // rsi
int v13; // eax
long long v14; // rax
char *v15; // r12
void *v16; // rdi
_QWORD *v17; // rax
long long v18; // rax
long long v19; // rax
void *v21; // r12
void *exception; // rbx
__int128 v23; // [rsp+0h] [rbp-E8h] BYREF
long long v24; // [rsp+10h] [rbp-D8h]
char v25[16]; // [rsp+20h] [rbp-C8h] BYREF
_BYTE v26[16]; // [rsp+40h] [rbp-A8h] BYREF
char v27[24]; // [rsp+50h] [rbp-98h] BYREF
void *v28[2]; // [rsp+68h] [rbp-80h] BYREF
_QWORD v29[2]; // [rsp+78h] [rbp-70h] BYREF
long long v30[2]; // [rsp+88h] [rbp-60h] BYREF
_QWORD v31[2]; // [rsp+98h] [rbp-50h] BYREF
_BYTE v32[64]; // [rsp+A8h] [rbp-40h] BYREF
v4 = *(_QWORD *)(a2 + 16);
v5 = *(_QWORD *)(a2 + 32);
v6 = *(_QWORD *)(a2 + 48);
if ( !(v6 | v5 | v4) )
{
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 *)a1,
(unsigned __int8 *)(a2 + 64));
return a1;
}
if ( v6 == 0 && (v5 | v4) == 0 && *(_BYTE *)(a2 + 64) == 0 )
{
*(_BYTE *)a1 = 0;
*(_QWORD *)(a1 + 8) = 0LL;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)a1);
return a1;
}
if ( v4 )
{
v23 = 0LL;
v24 = 0LL;
v7 = *(_QWORD *)v4;
v8 = *(_QWORD *)(v4 + 8);
if ( *(_QWORD *)v4 != v8 )
{
do
{
minja::Value::get<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>>(
v25,
v7);
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>>::emplace_back<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)&v23,
(long long)v25);
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(v25);
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);
v7 += 80LL;
}
while ( v7 != v8 );
}
((void ( *)(long long, __int128 *))ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_)(
a1,
&v23);
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>>::~vector((long long)&v23);
return a1;
}
if ( !v5 )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v25, a2, 0xFFFFFFFF, 0);
std::operator+<char>((long long)&v23, (long long)"get<json> not defined for this value type: ", (long long)v25);
std::runtime_error::runtime_error(exception, &v23);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
a1,
0LL,
0LL,
0LL,
1LL);
v9 = *(_QWORD *)(a2 + 32);
v10 = *(_BYTE **)v9;
v11 = *(_BYTE **)(v9 + 8);
if ( *(_BYTE **)v9 != v11 )
{
while ( 1 )
{
v12 = v10 + 16;
v13 = (unsigned __int8)*v10;
if ( !*v10 || v13 == 4 )
goto LABEL_17;
if ( v13 != 3 )
break;
minja::Value::get<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>>(
v26,
v12);
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)v30,
(long long)v10);
v14 = 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[](
a1,
v30);
v15 = v26;
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=(
v14,
(long long)v26);
v16 = (void *)v30[0];
v17 = v31;
if ( (_QWORD *)v30[0] != v31 )
goto LABEL_18;
v15 = v26;
LABEL_20:
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(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>::data::~data(v15);
v10 += 96;
if ( v10 == v11 )
goto LABEL_21;
}
if ( (unsigned __int8)(v13 - 5) > 3u )
{
v21 = __cxa_allocate_exception(0x10uLL);
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)v25,
(long long)v10,
-1,
32,
0,
0);
std::operator+<char>((long long)&v23, (long long)"Invalid key type for conversion to JSON: ", (long long)v25);
std::runtime_error::runtime_error(v21, &v23);
__cxa_throw(
v21,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
LABEL_17:
minja::Value::get<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>>(
v32,
v12);
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)v28,
(long long)v10,
-1,
32,
0,
0);
v18 = 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[](
a1,
(long long *)v28);
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=(
v18,
(long long)v32);
v16 = v28[0];
v17 = v29;
v15 = v32;
if ( v28[0] == v29 )
{
v15 = v32;
goto LABEL_20;
}
LABEL_18:
operator delete(v16, *v17 + 1LL);
goto LABEL_20;
}
LABEL_21:
if ( *(_QWORD *)(a2 + 48) )
{
*(_OWORD *)v27 = 0LL;
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,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>(
(unsigned __int8 *)v27,
1u);
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(v27);
v19 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[]<char const>(
a1,
"__callable__");
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=(
v19,
(long long)v27);
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(v27);
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(v27);
}
return a1;
}
| get<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>>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RSI + 0x10]
MOV RCX,qword ptr [RSI + 0x20]
MOV RSI,RAX
OR RSI,RCX
MOV RDX,qword ptr [R14 + 0x30]
OR RSI,RDX
JNZ 0x001b37a6
ADD R14,0x40
MOV RDI,RBX
MOV RSI,R14
CALL 0x0015ea8c
JMP 0x001b39fc
LAB_001b37a6:
TEST RDX,RDX
SETZ DL
MOV RSI,RAX
OR RSI,RCX
SETZ SIL
CMP byte ptr [R14 + 0x40],0x0
SETZ DIL
AND DIL,SIL
AND DIL,DL
CMP DIL,0x1
JNZ 0x001b37f5
MOV byte ptr [RBX],0x0
MOV qword ptr [RBX + 0x8],0x0
MOV RDI,RBX
MOV ESI,0x1
CALL 0x00159800
MOV RDI,RBX
MOV ESI,0x1
CALL 0x00159800
JMP 0x001b39fc
LAB_001b37f5:
TEST RAX,RAX
JZ 0x001b3867
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x10],0x0
MOV R14,qword ptr [RAX]
MOV R13,qword ptr [RAX + 0x8]
CMP R14,R13
JZ 0x001b384f
LEA R15,[RSP + 0x20]
MOV R12,RSP
LAB_001b381e:
MOV RDI,R15
MOV RSI,R14
CALL 0x001b3764
LAB_001b3829:
MOV RDI,R12
MOV RSI,R15
CALL 0x0015e632
MOV RDI,R15
XOR ESI,ESI
CALL 0x00159800
MOV RDI,R15
CALL 0x0015efec
ADD R14,0x50
CMP R14,R13
JNZ 0x001b381e
LAB_001b384f:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x001b434e
LAB_001b385a:
MOV RDI,RSP
CALL 0x0015f828
JMP 0x001b39fc
LAB_001b3867:
TEST RCX,RCX
JZ 0x001b3a77
MOV RDI,RBX
XOR ESI,ESI
XOR EDX,EDX
XOR ECX,ECX
MOV R8D,0x1
CALL 0x0018066a
MOV RAX,qword ptr [R14 + 0x20]
MOV R15,qword ptr [RAX]
MOV R13,qword ptr [RAX + 0x8]
CMP R15,R13
JZ 0x001b399e
LEA RBP,[RSP + 0xa8]
LEA R12,[RSP + 0x68]
LAB_001b38a5:
LEA RSI,[R15 + 0x10]
MOVZX EAX,byte ptr [R15]
TEST EAX,EAX
JZ 0x001b391c
CMP EAX,0x4
JZ 0x001b391c
CMP EAX,0x3
JNZ 0x001b3912
LAB_001b38bb:
LEA RDI,[RSP + 0x40]
CALL 0x001b3764
LAB_001b38c5:
LEA R12,[RSP + 0x88]
MOV RDI,R12
MOV RSI,R15
CALL 0x00189326
LAB_001b38d8:
MOV RDI,RBX
MOV RSI,R12
CALL 0x001ad5f2
MOV RDI,RAX
LEA R12,[RSP + 0x40]
MOV RSI,R12
CALL 0x0015c19c
MOV RDI,qword ptr [RSP + 0x88]
LEA RCX,[RSP + 0x98]
MOV RAX,RCX
CMP RDI,RCX
JNZ 0x001b396a
LEA R12,[RSP + 0x40]
JMP 0x001b397a
LAB_001b3912:
ADD AL,0xfb
CMP AL,0x3
JA 0x001b3a11
LAB_001b391c:
MOV RDI,RBP
CALL 0x001b3764
LAB_001b3924:
MOV RDI,R12
MOV RSI,R15
MOV EDX,0xffffffff
MOV ECX,0x20
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0018137a
LAB_001b393f:
MOV RDI,RBX
MOV RSI,R12
CALL 0x001ad5f2
MOV RDI,RAX
MOV RSI,RBP
CALL 0x0015c19c
MOV RDI,qword ptr [RSP + 0x68]
LEA RCX,[RSP + 0x78]
MOV RAX,RCX
MOV R12,RBP
CMP RDI,RCX
JZ 0x001b3977
LAB_001b396a:
MOV RSI,qword ptr [RAX]
INC RSI
CALL 0x0011b8e0
JMP 0x001b397a
LAB_001b3977:
MOV R12,RBP
LAB_001b397a:
MOV RDI,R12
XOR ESI,ESI
CALL 0x00159800
MOV RDI,R12
CALL 0x0015efec
ADD R15,0x60
CMP R15,R13
LEA R12,[RSP + 0x68]
JNZ 0x001b38a5
LAB_001b399e:
CMP qword ptr [R14 + 0x30],0x0
JZ 0x001b39fc
XORPS XMM0,XMM0
LEA R14,[RSP + 0x50]
MOVAPS xmmword ptr [R14],XMM0
MOV RDI,R14
MOV ESI,0x1
CALL 0x00161144
MOV RDI,R14
MOV ESI,0x1
CALL 0x00159800
LAB_001b39cb:
LEA RSI,[0x1f40e3]
MOV RDI,RBX
CALL 0x001a6a68
LAB_001b39da:
LEA R14,[RSP + 0x50]
MOV RDI,RAX
MOV RSI,R14
CALL 0x0015c19c
MOV RDI,R14
XOR ESI,ESI
CALL 0x00159800
MOV RDI,R14
CALL 0x0015efec
LAB_001b39fc:
MOV RAX,RBX
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001b3a11:
MOV EDI,0x10
CALL 0x0011b430
MOV R12,RAX
LAB_001b3a1e:
LEA RDI,[RSP + 0x20]
MOV RSI,R15
MOV EDX,0xffffffff
MOV ECX,0x20
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0018137a
LAB_001b3a3b:
LEA RSI,[0x1f40b9]
MOV RDI,RSP
LEA RDX,[RSP + 0x20]
CALL 0x0017a07b
MOV BPL,0x1
LAB_001b3a52:
MOV RSI,RSP
MOV RDI,R12
CALL 0x0011be30
XOR EBP,EBP
MOV RSI,qword ptr [0x0022eff0]
MOV RDX,qword ptr [0x0022ef60]
MOV RDI,R12
CALL 0x0011bf20
LAB_001b3a77:
MOV EDI,0x10
CALL 0x0011b430
MOV RBX,RAX
LAB_001b3a84:
LEA RDI,[RSP + 0x20]
MOV RSI,R14
MOV EDX,0xffffffff
XOR ECX,ECX
CALL 0x00188256
LAB_001b3a98:
LEA RSI,[0x1f40f0]
MOV RDI,RSP
LEA RDX,[RSP + 0x20]
CALL 0x0017a07b
MOV BPL,0x1
LAB_001b3aaf:
MOV RSI,RSP
MOV RDI,RBX
CALL 0x0011be30
XOR EBP,EBP
MOV RSI,qword ptr [0x0022eff0]
MOV RDX,qword ptr [0x0022ef60]
MOV RDI,RBX
CALL 0x0011bf20
|
/* 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>
minja::Value::get<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 */
void minja::Value::
get<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)
{
char cVar1;
long lVar2;
char *pcVar3;
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>
*pbVar4;
long *plVar5;
basic_json *pbVar6;
runtime_error *prVar7;
long in_RSI;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*in_RDI;
long *plVar8;
data *this;
long lVar9;
char *pcVar10;
int8 local_e8;
int8 uStack_e0;
int8 local_d8;
data local_c8 [32];
data local_a8 [16];
int8 local_98;
int8 uStack_90;
long *local_80 [2];
long local_70 [2];
long *local_60 [2];
long local_50 [2];
data local_40 [16];
plVar5 = *(long **)(in_RSI + 0x10);
lVar9 = *(long *)(in_RSI + 0x20);
if ((plVar5 == (long *)0x0 && lVar9 == 0) && *(long *)(in_RSI + 0x30) == 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(in_RDI,(basic_json *)(in_RSI + 0x40));
}
else if ((*(char *)(in_RSI + 0x40) == '\0' && (plVar5 == (long *)0x0 && lVar9 == 0)) &&
*(long *)(in_RSI + 0x30) == 0) {
*in_RDI = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x0;
*(int8 *)(in_RDI + 8) = 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>
::assert_invariant(SUB81(in_RDI,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>
::assert_invariant(SUB81(in_RDI,0));
}
else if (plVar5 == (long *)0x0) {
if (lVar9 == 0) {
prVar7 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001b3a84 to 001b3a97 has its CatchHandler @ 001b3b15 */
dump_abi_cxx11_((int)local_c8,SUB81(in_RSI,0));
/* try { // try from 001b3a98 to 001b3aab has its CatchHandler @ 001b3af2 */
std::operator+((char *)&local_e8,(string *)"get<json> not defined for this value type: ");
/* try { // try from 001b3aaf to 001b3ad1 has its CatchHandler @ 001b3ad2 */
std::runtime_error::runtime_error(prVar7,(string *)&local_e8);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar7,PTR_typeinfo_0022eff0,PTR__runtime_error_0022ef60);
}
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();
pcVar10 = (char *)**(int8 **)(in_RSI + 0x20);
pcVar3 = (char *)(*(int8 **)(in_RSI + 0x20))[1];
if (pcVar10 != pcVar3) {
do {
cVar1 = *pcVar10;
if ((cVar1 == '\0') || (cVar1 == '\x04')) {
LAB_001b391c:
/* try { // try from 001b391c to 001b3923 has its CatchHandler @ 001b3c0a */
get<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>>
();
/* try { // try from 001b3924 to 001b393e has its CatchHandler @ 001b3beb */
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_80,pcVar10,0xffffffff,0x20,0,0);
/* try { // try from 001b393f to 001b3949 has its CatchHandler @ 001b3bcb */
pbVar4 = (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::
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[]();
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=(pbVar4,local_40);
plVar5 = local_70;
plVar8 = local_80[0];
this = local_40;
if (local_80[0] != plVar5) {
LAB_001b396a:
operator_delete(plVar8,*plVar5 + 1);
}
}
else {
if (cVar1 != '\x03') {
if (3 < (byte)(cVar1 - 5U)) {
prVar7 = (runtime_error *)__cxa_allocate_exception(0x10,pcVar10 + 0x10);
/* try { // try from 001b3a1e to 001b3a3a has its CatchHandler @ 001b3b86 */
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_c8,pcVar10,0xffffffff,0x20,0,0);
/* try { // try from 001b3a3b to 001b3a4e has its CatchHandler @ 001b3b5e */
std::operator+((char *)&local_e8,(string *)"Invalid key type for conversion to JSON: "
);
/* try { // try from 001b3a52 to 001b3a74 has its CatchHandler @ 001b3b3e */
std::runtime_error::runtime_error(prVar7,(string *)&local_e8);
/* WARNING: Subroutine does not return */
__cxa_throw(prVar7,PTR_typeinfo_0022eff0,PTR__runtime_error_0022ef60);
}
goto LAB_001b391c;
}
/* try { // try from 001b38bb to 001b38c4 has its CatchHandler @ 001b3c0a */
get<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>>
();
/* try { // try from 001b38c5 to 001b38d7 has its CatchHandler @ 001b3bc1 */
_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_60,pcVar10);
/* try { // try from 001b38d8 to 001b38e2 has its CatchHandler @ 001b3b9b */
pbVar4 = (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::
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[]();
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=(pbVar4,local_a8);
plVar5 = local_50;
plVar8 = local_60[0];
this = local_a8;
if (local_60[0] != plVar5) goto LAB_001b396a;
this = local_a8;
}
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(this,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(this);
pcVar10 = pcVar10 + 0x60;
} while (pcVar10 != pcVar3);
}
if (*(long *)(in_RSI + 0x30) != 0) {
local_98 = 0;
uStack_90 = 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>>
(&local_98,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>
::assert_invariant(SUB81(&local_98,0));
/* try { // try from 001b39cb to 001b39d9 has its CatchHandler @ 001b3b31 */
pbVar6 = nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[]<char_const>(in_RDI,"__callable__");
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=((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>
*)pbVar6,(data *)&local_98);
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((data *)&local_98,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((data *)&local_98);
}
}
else {
local_e8 = 0;
uStack_e0 = 0;
local_d8 = 0;
lVar9 = *plVar5;
lVar2 = plVar5[1];
if (lVar9 != lVar2) {
do {
/* try { // try from 001b381e to 001b3828 has its CatchHandler @ 001b3c21 */
get<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>>
();
/* try { // try from 001b3829 to 001b3833 has its CatchHandler @ 001b3c26 */
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>>>
::
emplace_back<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<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_e8,(basic_json *)local_c8);
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_c8,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_c8);
lVar9 = lVar9 + 0x50;
} while (lVar9 != lVar2);
}
/* try { // try from 001b384f to 001b3859 has its CatchHandler @ 001b3b81 */
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS3_ISD_SaISD_EESG_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SI_EE5valueEiE4typeELi0EEEOT_
();
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>>>
::~vector((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>>>
*)&local_e8);
}
return;
}
| |
28,102 | dec_counter_for_resize_op | eloqsql/storage/maria/ma_pagecache.c | static inline void dec_counter_for_resize_op(PAGECACHE *pagecache)
{
struct st_my_thread_var *last_thread;
mysql_mutex_assert_owner(&pagecache->cache_lock);
if (!--pagecache->cnt_for_resize_op &&
(last_thread= pagecache->resize_queue.last_thread))
{
DBUG_PRINT("signal",
("thread %s %ld", last_thread->next->name,
(ulong) last_thread->next->id));
pagecache_pthread_cond_signal(&last_thread->next->suspend);
}
} | O0 | c | dec_counter_for_resize_op:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
jmp 0x2d5be
movq -0x8(%rbp), %rcx
movq 0x68(%rcx), %rax
addq $-0x1, %rax
movq %rax, 0x68(%rcx)
cmpq $0x0, %rax
jne 0x2d601
movq -0x8(%rbp), %rax
movq 0x110(%rax), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, %rax
je 0x2d601
jmp 0x2d5eb
jmp 0x2d5ed
movq -0x10(%rbp), %rax
movq 0x88(%rax), %rdi
addq $0x8, %rdi
callq 0x30e30
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| dec_counter_for_resize_op:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
jmp short $+2
loc_2D5BE:
mov rcx, [rbp+var_8]
mov rax, [rcx+68h]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rcx+68h], rax
cmp rax, 0
jnz short loc_2D601
mov rax, [rbp+var_8]
mov rax, [rax+110h]
mov [rbp+var_10], rax
cmp rax, 0
jz short loc_2D601
jmp short $+2
loc_2D5EB:
jmp short $+2
loc_2D5ED:
mov rax, [rbp+var_10]
mov rdi, [rax+88h]
add rdi, 8
call inline_mysql_cond_signal
loc_2D601:
add rsp, 10h
pop rbp
retn
| long long dec_counter_for_resize_op(long long a1)
{
long long result; // rax
result = *(_QWORD *)(a1 + 104) - 1LL;
*(_QWORD *)(a1 + 104) = result;
if ( !result )
{
result = *(_QWORD *)(a1 + 272);
if ( result )
return inline_mysql_cond_signal(*(_QWORD *)(result + 136) + 8LL);
}
return result;
}
| dec_counter_for_resize_op:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
JMP 0x0012d5be
LAB_0012d5be:
MOV RCX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RCX + 0x68]
ADD RAX,-0x1
MOV qword ptr [RCX + 0x68],RAX
CMP RAX,0x0
JNZ 0x0012d601
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x110]
MOV qword ptr [RBP + -0x10],RAX
CMP RAX,0x0
JZ 0x0012d601
JMP 0x0012d5eb
LAB_0012d5eb:
JMP 0x0012d5ed
LAB_0012d5ed:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x88]
ADD RDI,0x8
CALL 0x00130e30
LAB_0012d601:
ADD RSP,0x10
POP RBP
RET
|
void dec_counter_for_resize_op(long param_1)
{
long lVar1;
lVar1 = *(long *)(param_1 + 0x68) + -1;
*(long *)(param_1 + 0x68) = lVar1;
if ((lVar1 == 0) && (*(long *)(param_1 + 0x110) != 0)) {
inline_mysql_cond_signal(*(long *)(*(long *)(param_1 + 0x110) + 0x88) + 8);
}
return;
}
| |
28,103 | fmt::v10::appender fmt::v10::detail::write_significand<fmt::v10::appender, char>(fmt::v10::appender, char const*, int, int, char) | AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/fmt/bundled/format.h | FMT_CONSTEXPR auto write_significand(OutputIt out, const char* significand,
int significand_size, int integral_size,
Char decimal_point) -> OutputIt {
out = detail::copy_str_noinline<Char>(significand,
significand + integral_size, out);
if (!decimal_point) return out;
*out++ = decimal_point;
return detail::copy_str_noinline<Char>(significand + integral_size,
significand + significand_size, out);
} | O0 | c | fmt::v10::appender fmt::v10::detail::write_significand<fmt::v10::appender, char>(fmt::v10::appender, char const*, int, int, char):
subq $0x48, %rsp
movb %r8b, %al
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movl %edx, 0x2c(%rsp)
movl %ecx, 0x28(%rsp)
movb %al, 0x27(%rsp)
movq 0x30(%rsp), %rdi
movq 0x30(%rsp), %rsi
movslq 0x28(%rsp), %rax
addq %rax, %rsi
movq 0x38(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rdx
callq 0xdd720
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x38(%rsp)
cmpb $0x0, 0x27(%rsp)
jne 0xdd6b5
movq 0x38(%rsp), %rax
movq %rax, 0x40(%rsp)
jmp 0xdd70e
leaq 0x38(%rsp), %rdi
xorl %esi, %esi
callq 0x24c00
movq %rax, 0x8(%rsp)
leaq 0x8(%rsp), %rdi
callq 0x24c20
movq %rax, %rdi
leaq 0x27(%rsp), %rsi
callq 0xd0180
movq 0x30(%rsp), %rdi
movslq 0x28(%rsp), %rax
addq %rax, %rdi
movq 0x30(%rsp), %rsi
movslq 0x2c(%rsp), %rax
addq %rax, %rsi
movq 0x38(%rsp), %rax
movq %rax, (%rsp)
movq (%rsp), %rdx
callq 0xdd720
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
addq $0x48, %rsp
retq
nopl (%rax,%rax)
| _ZN3fmt3v106detail17write_significandINS0_8appenderEcEET_S4_PKciiT0_:
sub rsp, 48h
mov al, r8b
mov [rsp+48h+var_10], rdi
mov [rsp+48h+var_18], rsi
mov [rsp+48h+var_1C], edx
mov [rsp+48h+var_20], ecx
mov [rsp+48h+var_21], al
mov rdi, [rsp+48h+var_18]
mov rsi, [rsp+48h+var_18]
movsxd rax, [rsp+48h+var_20]
add rsi, rax
mov rax, [rsp+48h+var_10]
mov [rsp+48h+var_38], rax
mov rdx, [rsp+48h+var_38]
call _ZN3fmt3v106detail17copy_str_noinlineIcPKcNS0_8appenderEEET1_T0_S7_S6_; fmt::v10::detail::copy_str_noinline<char,char const*,fmt::v10::appender>(char const*,char const*,fmt::v10::appender)
mov [rsp+48h+var_30], rax
mov rax, [rsp+48h+var_30]
mov [rsp+48h+var_10], rax
cmp [rsp+48h+var_21], 0
jnz short loc_DD6B5
mov rax, [rsp+48h+var_10]
mov [rsp+48h+var_8], rax
jmp short loc_DD70E
loc_DD6B5:
lea rdi, [rsp+48h+var_10]
xor esi, esi
call _ZN3fmt3v108appenderppEi; fmt::v10::appender::operator++(int)
mov [rsp+48h+var_40], rax
lea rdi, [rsp+48h+var_40]
call _ZNSt20back_insert_iteratorIN3fmt3v106detail6bufferIcEEEdeEv; std::back_insert_iterator<fmt::v10::detail::buffer<char>>::operator*(void)
mov rdi, rax
lea rsi, [rsp+48h+var_21]
call _ZNSt20back_insert_iteratorIN3fmt3v106detail6bufferIcEEEaSERKc; std::back_insert_iterator<fmt::v10::detail::buffer<char>>::operator=(char const&)
mov rdi, [rsp+48h+var_18]
movsxd rax, [rsp+48h+var_20]
add rdi, rax
mov rsi, [rsp+48h+var_18]
movsxd rax, [rsp+48h+var_1C]
add rsi, rax
mov rax, [rsp+48h+var_10]
mov [rsp+48h+var_48], rax
mov rdx, [rsp+48h+var_48]
call _ZN3fmt3v106detail17copy_str_noinlineIcPKcNS0_8appenderEEET1_T0_S7_S6_; fmt::v10::detail::copy_str_noinline<char,char const*,fmt::v10::appender>(char const*,char const*,fmt::v10::appender)
mov [rsp+48h+var_8], rax
loc_DD70E:
mov rax, [rsp+48h+var_8]
add rsp, 48h
retn
| long long fmt::v10::detail::write_significand<fmt::v10::appender,char>(
long long a1,
long long a2,
int a3,
int a4,
char a5)
{
long long *v5; // rax
_QWORD v7[2]; // [rsp+8h] [rbp-40h] BYREF
long long v8; // [rsp+18h] [rbp-30h]
char v9; // [rsp+27h] [rbp-21h] BYREF
int v10; // [rsp+28h] [rbp-20h]
int v11; // [rsp+2Ch] [rbp-1Ch]
long long v12; // [rsp+30h] [rbp-18h]
long long v13; // [rsp+38h] [rbp-10h] BYREF
v12 = a2;
v11 = a3;
v10 = a4;
v9 = a5;
v7[1] = a1;
v8 = fmt::v10::detail::copy_str_noinline<char,char const*,fmt::v10::appender>(a2, a4 + a2, a1);
v13 = v8;
if ( !v9 )
return v13;
v7[0] = fmt::v10::appender::operator++((long long)&v13);
v5 = (long long *)std::back_insert_iterator<fmt::v10::detail::buffer<char>>::operator*((long long)v7);
std::back_insert_iterator<fmt::v10::detail::buffer<char>>::operator=(v5, &v9);
return fmt::v10::detail::copy_str_noinline<char,char const*,fmt::v10::appender>(v10 + v12, v11 + v12, v13);
}
| write_significand<fmt::v10::appender,char>:
SUB RSP,0x48
MOV AL,R8B
MOV qword ptr [RSP + 0x38],RDI
MOV qword ptr [RSP + 0x30],RSI
MOV dword ptr [RSP + 0x2c],EDX
MOV dword ptr [RSP + 0x28],ECX
MOV byte ptr [RSP + 0x27],AL
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x30]
MOVSXD RAX,dword ptr [RSP + 0x28]
ADD RSI,RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x10],RAX
MOV RDX,qword ptr [RSP + 0x10]
CALL 0x001dd720
MOV qword ptr [RSP + 0x18],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x38],RAX
CMP byte ptr [RSP + 0x27],0x0
JNZ 0x001dd6b5
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x40],RAX
JMP 0x001dd70e
LAB_001dd6b5:
LEA RDI,[RSP + 0x38]
XOR ESI,ESI
CALL 0x00124c00
MOV qword ptr [RSP + 0x8],RAX
LEA RDI,[RSP + 0x8]
CALL 0x00124c20
MOV RDI,RAX
LEA RSI,[RSP + 0x27]
CALL 0x001d0180
MOV RDI,qword ptr [RSP + 0x30]
MOVSXD RAX,dword ptr [RSP + 0x28]
ADD RDI,RAX
MOV RSI,qword ptr [RSP + 0x30]
MOVSXD RAX,dword ptr [RSP + 0x2c]
ADD RSI,RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP],RAX
MOV RDX,qword ptr [RSP]
CALL 0x001dd720
MOV qword ptr [RSP + 0x40],RAX
LAB_001dd70e:
MOV RAX,qword ptr [RSP + 0x40]
ADD RSP,0x48
RET
|
/* fmt::v10::appender fmt::v10::detail::write_significand<fmt::v10::appender,
char>(fmt::v10::appender, char const*, int, int, char) */
int8
fmt::v10::detail::write_significand<fmt::v10::appender,char>
(int8 param_1,long param_2,int param_3,int param_4,char param_5)
{
back_insert_iterator<fmt::v10::detail::buffer<char>> *this;
int8 local_40;
int8 local_38;
int8 local_30;
char local_21;
int local_20;
int local_1c;
long local_18;
int8 local_10;
int8 local_8;
local_38 = param_1;
local_21 = param_5;
local_20 = param_4;
local_1c = param_3;
local_18 = param_2;
local_10 = param_1;
local_30 = copy_str_noinline<char,char_const*,fmt::v10::appender>
(param_2,param_2 + param_4,param_1);
local_8 = local_30;
if (local_21 != '\0') {
local_10 = local_30;
local_40 = appender::operator++((appender *)&local_10,0);
this = (back_insert_iterator<fmt::v10::detail::buffer<char>> *)
std::back_insert_iterator<fmt::v10::detail::buffer<char>>::operator*
((back_insert_iterator<fmt::v10::detail::buffer<char>> *)&local_40);
std::back_insert_iterator<fmt::v10::detail::buffer<char>>::operator=(this,&local_21);
local_8 = copy_str_noinline<char,char_const*,fmt::v10::appender>
(local_18 + local_20,local_18 + local_1c,local_10);
}
return local_8;
}
| |
28,104 | ftxui::(anonymous namespace)::Border::ComputeRequirement() | Andrewchistyakov[P]flashcards_lyc/build_O0/_deps/ftxui-src/src/ftxui/dom/border.cpp | void ComputeRequirement() override {
Node::ComputeRequirement();
requirement_ = children_[0]->requirement();
requirement_.min_x += 2;
requirement_.min_y += 2;
if (children_.size() == 2) {
requirement_.min_x =
std::max(requirement_.min_x, children_[1]->requirement().min_x + 2);
}
requirement_.selected_box.x_min++;
requirement_.selected_box.x_max++;
requirement_.selected_box.y_min++;
requirement_.selected_box.y_max++;
} | O0 | cpp | ftxui::(anonymous namespace)::Border::ComputeRequirement():
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x70(%rbp)
callq 0x445f0
movq -0x70(%rbp), %rdi
addq $0x8, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x3e6a0
movq %rax, %rdi
callq 0x3e6c0
movq %rax, %rsi
leaq -0x34(%rbp), %rdi
callq 0x3e6e0
movq -0x70(%rbp), %rdi
addq $0x20, %rdi
leaq -0x34(%rbp), %rsi
movl $0x2c, %edx
callq 0xd4a0
movq -0x70(%rbp), %rdi
movl 0x20(%rdi), %eax
addl $0x2, %eax
movl %eax, 0x20(%rdi)
movl 0x24(%rdi), %eax
addl $0x2, %eax
movl %eax, 0x24(%rdi)
addq $0x8, %rdi
callq 0x24980
cmpq $0x2, %rax
jne 0x3c0df
movq -0x70(%rbp), %rdi
movq %rdi, %rax
addq $0x20, %rax
movq %rax, -0x78(%rbp)
addq $0x8, %rdi
movl $0x1, %esi
callq 0x3e6a0
movq %rax, %rdi
callq 0x3e6c0
movq %rax, %rsi
leaq -0x64(%rbp), %rdi
callq 0x3e6e0
movq -0x78(%rbp), %rdi
movl -0x64(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x38(%rbp)
leaq -0x38(%rbp), %rsi
callq 0x3e710
movq %rax, %rcx
movq -0x70(%rbp), %rax
movl (%rcx), %ecx
movl %ecx, 0x20(%rax)
movq -0x70(%rbp), %rax
movl 0x3c(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x3c(%rax)
movl 0x40(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x40(%rax)
movl 0x44(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x44(%rax)
movl 0x48(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x48(%rax)
addq $0x80, %rsp
popq %rbp
retq
| _ZN5ftxui12_GLOBAL__N_111BorderPixel18ComputeRequirementEv:
push rbp
mov rbp, rsp
sub rsp, 80h
mov [rbp+var_8], rdi
mov rdi, [rbp+var_8]; this
mov [rbp+var_70], rdi
call _ZN5ftxui4Node18ComputeRequirementEv; ftxui::Node::ComputeRequirement(void)
mov rdi, [rbp+var_70]
add rdi, 8
xor eax, eax
mov esi, eax
call _ZNSt6vectorISt10shared_ptrIN5ftxui4NodeEESaIS3_EEixEm; std::vector<std::shared_ptr<ftxui::Node>>::operator[](ulong)
mov rdi, rax
call _ZNKSt19__shared_ptr_accessIN5ftxui4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<ftxui::Node,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void)
mov rsi, rax
lea rdi, [rbp+var_34]; this
call _ZN5ftxui4Node11requirementEv; ftxui::Node::requirement(void)
mov rdi, [rbp+var_70]
add rdi, 20h ; ' '
lea rsi, [rbp+var_34]
mov edx, 2Ch ; ','
call _memcpy
mov rdi, [rbp+var_70]
mov eax, [rdi+20h]
add eax, 2
mov [rdi+20h], eax
mov eax, [rdi+24h]
add eax, 2
mov [rdi+24h], eax
add rdi, 8
call _ZNKSt6vectorISt10shared_ptrIN5ftxui4NodeEESaIS3_EE4sizeEv; std::vector<std::shared_ptr<ftxui::Node>>::size(void)
cmp rax, 2
jnz short loc_3C0DF
mov rdi, [rbp+var_70]
mov rax, rdi
add rax, 20h ; ' '
mov [rbp+var_78], rax
add rdi, 8
mov esi, 1
call _ZNSt6vectorISt10shared_ptrIN5ftxui4NodeEESaIS3_EEixEm; std::vector<std::shared_ptr<ftxui::Node>>::operator[](ulong)
mov rdi, rax
call _ZNKSt19__shared_ptr_accessIN5ftxui4NodeELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<ftxui::Node,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void)
mov rsi, rax
lea rdi, [rbp+var_64]; this
call _ZN5ftxui4Node11requirementEv; ftxui::Node::requirement(void)
mov rdi, [rbp+var_78]
mov eax, [rbp+var_64]
add eax, 2
mov [rbp+var_38], eax
lea rsi, [rbp+var_38]
call _ZSt3maxIiERKT_S2_S2_; std::max<int>(int const&,int const&)
mov rcx, rax
mov rax, [rbp+var_70]
mov ecx, [rcx]
mov [rax+20h], ecx
loc_3C0DF:
mov rax, [rbp+var_70]
mov ecx, [rax+3Ch]
add ecx, 1
mov [rax+3Ch], ecx
mov ecx, [rax+40h]
add ecx, 1
mov [rax+40h], ecx
mov ecx, [rax+44h]
add ecx, 1
mov [rax+44h], ecx
mov ecx, [rax+48h]
add ecx, 1
mov [rax+48h], ecx
add rsp, 80h
pop rbp
retn
| ftxui::_anonymous_namespace_::BorderPixel * ftxui::`anonymous namespace'::BorderPixel::ComputeRequirement(
ftxui::_anonymous_namespace_::BorderPixel *this)
{
long long v1; // rax
long long v2; // rax
ftxui::_anonymous_namespace_::BorderPixel *result; // rax
_DWORD v4[11]; // [rsp+1Ch] [rbp-64h] BYREF
int v5; // [rsp+48h] [rbp-38h] BYREF
_BYTE v6[44]; // [rsp+4Ch] [rbp-34h] BYREF
ftxui::Node *v7; // [rsp+78h] [rbp-8h]
v7 = this;
ftxui::Node::ComputeRequirement(this);
v1 = std::vector<std::shared_ptr<ftxui::Node>>::operator[]((char *)this + 8, 0LL);
std::__shared_ptr_access<ftxui::Node,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(v1);
ftxui::Node::requirement((ftxui::Node *)v6);
memcpy((char *)this + 32, v6, 44LL);
*((_DWORD *)this + 8) += 2;
*((_DWORD *)this + 9) += 2;
if ( std::vector<std::shared_ptr<ftxui::Node>>::size((_QWORD *)this + 1) == 2 )
{
v2 = std::vector<std::shared_ptr<ftxui::Node>>::operator[]((char *)this + 8, 1LL);
std::__shared_ptr_access<ftxui::Node,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(v2);
ftxui::Node::requirement((ftxui::Node *)v4);
v5 = v4[0] + 2;
*((_DWORD *)this + 8) = *(_DWORD *)std::max<int>((char *)this + 32, &v5);
}
result = this;
++*((_DWORD *)this + 15);
++*((_DWORD *)this + 16);
++*((_DWORD *)this + 17);
++*((_DWORD *)this + 18);
return result;
}
| ComputeRequirement:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x70],RDI
CALL 0x001445f0
MOV RDI,qword ptr [RBP + -0x70]
ADD RDI,0x8
XOR EAX,EAX
MOV ESI,EAX
CALL 0x0013e6a0
MOV RDI,RAX
CALL 0x0013e6c0
MOV RSI,RAX
LEA RDI,[RBP + -0x34]
CALL 0x0013e6e0
MOV RDI,qword ptr [RBP + -0x70]
ADD RDI,0x20
LEA RSI,[RBP + -0x34]
MOV EDX,0x2c
CALL 0x0010d4a0
MOV RDI,qword ptr [RBP + -0x70]
MOV EAX,dword ptr [RDI + 0x20]
ADD EAX,0x2
MOV dword ptr [RDI + 0x20],EAX
MOV EAX,dword ptr [RDI + 0x24]
ADD EAX,0x2
MOV dword ptr [RDI + 0x24],EAX
ADD RDI,0x8
CALL 0x00124980
CMP RAX,0x2
JNZ 0x0013c0df
MOV RDI,qword ptr [RBP + -0x70]
MOV RAX,RDI
ADD RAX,0x20
MOV qword ptr [RBP + -0x78],RAX
ADD RDI,0x8
MOV ESI,0x1
CALL 0x0013e6a0
MOV RDI,RAX
CALL 0x0013e6c0
MOV RSI,RAX
LEA RDI,[RBP + -0x64]
CALL 0x0013e6e0
MOV RDI,qword ptr [RBP + -0x78]
MOV EAX,dword ptr [RBP + -0x64]
ADD EAX,0x2
MOV dword ptr [RBP + -0x38],EAX
LEA RSI,[RBP + -0x38]
CALL 0x0013e710
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x70]
MOV ECX,dword ptr [RCX]
MOV dword ptr [RAX + 0x20],ECX
LAB_0013c0df:
MOV RAX,qword ptr [RBP + -0x70]
MOV ECX,dword ptr [RAX + 0x3c]
ADD ECX,0x1
MOV dword ptr [RAX + 0x3c],ECX
MOV ECX,dword ptr [RAX + 0x40]
ADD ECX,0x1
MOV dword ptr [RAX + 0x40],ECX
MOV ECX,dword ptr [RAX + 0x44]
ADD ECX,0x1
MOV dword ptr [RAX + 0x44],ECX
MOV ECX,dword ptr [RAX + 0x48]
ADD ECX,0x1
MOV dword ptr [RAX + 0x48],ECX
ADD RSP,0x80
POP RBP
RET
|
/* ftxui::(anonymous namespace)::BorderPixel::ComputeRequirement() */
void __thiscall ftxui::(anonymous_namespace)::BorderPixel::ComputeRequirement(BorderPixel *this)
{
__shared_ptr_access<ftxui::Node,(__gnu_cxx::_Lock_policy)2,false,false> *p_Var1;
long lVar2;
int *piVar3;
int local_6c;
int local_40;
int1 local_3c [44];
BorderPixel *local_10;
local_10 = this;
Node::ComputeRequirement((Node *)this);
p_Var1 = (__shared_ptr_access<ftxui::Node,(__gnu_cxx::_Lock_policy)2,false,false> *)
std::vector<std::shared_ptr<ftxui::Node>,std::allocator<std::shared_ptr<ftxui::Node>>>::
operator[]((vector<std::shared_ptr<ftxui::Node>,std::allocator<std::shared_ptr<ftxui::Node>>>
*)(this + 8),0);
std::__shared_ptr_access<ftxui::Node,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(p_Var1);
Node::requirement();
memcpy(this + 0x20,local_3c,0x2c);
*(int *)(this + 0x20) = *(int *)(this + 0x20) + 2;
*(int *)(this + 0x24) = *(int *)(this + 0x24) + 2;
lVar2 = std::vector<std::shared_ptr<ftxui::Node>,std::allocator<std::shared_ptr<ftxui::Node>>>::
size((vector<std::shared_ptr<ftxui::Node>,std::allocator<std::shared_ptr<ftxui::Node>>> *)
(this + 8));
if (lVar2 == 2) {
p_Var1 = (__shared_ptr_access<ftxui::Node,(__gnu_cxx::_Lock_policy)2,false,false> *)
std::vector<std::shared_ptr<ftxui::Node>,std::allocator<std::shared_ptr<ftxui::Node>>>
::operator[]((vector<std::shared_ptr<ftxui::Node>,std::allocator<std::shared_ptr<ftxui::Node>>>
*)(this + 8),1);
std::__shared_ptr_access<ftxui::Node,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(p_Var1)
;
Node::requirement();
local_40 = local_6c + 2;
piVar3 = std::max<int>((int *)(this + 0x20),&local_40);
*(int *)(this + 0x20) = *piVar3;
}
*(int *)(this + 0x3c) = *(int *)(this + 0x3c) + 1;
*(int *)(this + 0x40) = *(int *)(this + 0x40) + 1;
*(int *)(this + 0x44) = *(int *)(this + 0x44) + 1;
*(int *)(this + 0x48) = *(int *)(this + 0x48) + 1;
return;
}
| |
28,105 | my_xml_error_pos | eloqsql/strings/xml.c | size_t my_xml_error_pos(MY_XML_PARSER *p)
{
const char *beg=p->beg;
const char *s;
for ( s=p->beg ; s<p->cur; s++)
{
if (s[0] == '\n')
beg=s;
}
return (size_t) (p->cur-beg);
} | O0 | c | my_xml_error_pos:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x128(%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x128(%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x130(%rcx), %rax
jae 0x8060b
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0xa, %eax
jne 0x805fb
movq -0x18(%rbp), %rax
movq %rax, -0x10(%rbp)
jmp 0x805fd
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x805d6
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rax
movq -0x10(%rbp), %rcx
subq %rcx, %rax
popq %rbp
retq
nop
| my_xml_error_pos:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov rax, [rax+128h]
mov [rbp+var_10], rax
mov rax, [rbp+var_8]
mov rax, [rax+128h]
mov [rbp+var_18], rax
loc_805D6:
mov rax, [rbp+var_18]
mov rcx, [rbp+var_8]
cmp rax, [rcx+130h]
jnb short loc_8060B
mov rax, [rbp+var_18]
movsx eax, byte ptr [rax]
cmp eax, 0Ah
jnz short loc_805FB
mov rax, [rbp+var_18]
mov [rbp+var_10], rax
loc_805FB:
jmp short $+2
loc_805FD:
mov rax, [rbp+var_18]
add rax, 1
mov [rbp+var_18], rax
jmp short loc_805D6
loc_8060B:
mov rax, [rbp+var_8]
mov rax, [rax+130h]
mov rcx, [rbp+var_10]
sub rax, rcx
pop rbp
retn
| long long my_xml_error_pos(long long a1)
{
_BYTE *i; // [rsp+0h] [rbp-18h]
_BYTE *v3; // [rsp+8h] [rbp-10h]
v3 = *(_BYTE **)(a1 + 296);
for ( i = v3; (unsigned long long)i < *(_QWORD *)(a1 + 304); ++i )
{
if ( *i == 10 )
v3 = i;
}
return *(_QWORD *)(a1 + 304) - (_QWORD)v3;
}
| my_xml_error_pos:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x128]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x128]
MOV qword ptr [RBP + -0x18],RAX
LAB_001805d6:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RCX + 0x130]
JNC 0x0018060b
MOV RAX,qword ptr [RBP + -0x18]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0xa
JNZ 0x001805fb
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x10],RAX
LAB_001805fb:
JMP 0x001805fd
LAB_001805fd:
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x1
MOV qword ptr [RBP + -0x18],RAX
JMP 0x001805d6
LAB_0018060b:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x130]
MOV RCX,qword ptr [RBP + -0x10]
SUB RAX,RCX
POP RBP
RET
|
long my_xml_error_pos(long param_1)
{
char *local_20;
char *local_18;
local_18 = *(char **)(param_1 + 0x128);
for (local_20 = *(char **)(param_1 + 0x128); local_20 < *(char **)(param_1 + 0x130);
local_20 = local_20 + 1) {
if (*local_20 == '\n') {
local_18 = local_20;
}
}
return *(long *)(param_1 + 0x130) - (long)local_18;
}
| |
28,106 | ma_apply_redo_index | eloqsql/storage/maria/ma_key_recover.c | uint _ma_apply_redo_index(MARIA_HA *info,
LSN lsn, const uchar *header, uint head_length)
{
MARIA_SHARE *share= info->s;
pgcache_page_no_t page_pos= page_korr(header);
MARIA_PINNED_PAGE page_link;
uchar *buff;
const uchar *header_end= header + head_length;
uint page_offset= 0, org_page_length;
uint page_length, keypage_header, keynr;
uint max_page_size= share->max_index_block_size;
#ifdef DBUG_ASSERT_EXISTS
uint new_page_length= 0;
#endif
int result, mark_crashed;
MARIA_PAGE page;
DBUG_ENTER("_ma_apply_redo_index");
DBUG_PRINT("enter", ("page: %lu", (ulong) page_pos));
/* Set header to point at key data */
header+= PAGE_STORE_SIZE;
if (!(buff= pagecache_read(share->pagecache, &share->kfile,
page_pos, 0, 0,
PAGECACHE_PLAIN_PAGE, PAGECACHE_LOCK_WRITE,
&page_link.link)))
{
result= 1; mark_crashed= 0;
_ma_set_fatal_error(info, my_errno);
goto err;
}
if (lsn_korr(buff) >= lsn)
{
/* Already applied */
check_skipped_lsn(info, lsn_korr(buff), 0, page_pos);
result= mark_crashed= 0;
goto err;
}
keynr= _ma_get_keynr(share, buff);
_ma_page_setup(&page, info, share->keyinfo + keynr, page_pos, buff);
org_page_length= page_length= page.size;
keypage_header= share->keypage_header;
DBUG_PRINT("redo", ("page_length: %u", page_length));
/* Apply modifications to page */
do
{
switch ((enum en_key_op) (*header++)) {
case KEY_OP_OFFSET: /* 1 */
page_offset= uint2korr(header);
header+= 2;
DBUG_PRINT("redo", ("key_op_offset: %u", page_offset));
DBUG_ASSERT(page_offset >= keypage_header && page_offset <= page_length);
break;
case KEY_OP_SHIFT: /* 2 */
{
int length= sint2korr(header);
header+= 2;
DBUG_PRINT("redo", ("key_op_shift: %d", length));
DBUG_ASSERT(page_offset != 0 && page_offset <= page_length &&
page_length + length <= max_page_size);
if (length < 0)
{
DBUG_ASSERT(page_offset - length <= page_length);
bmove(buff + page_offset, buff + page_offset - length,
page_length - page_offset + length);
}
else if (page_length != page_offset)
bmove_upp(buff + page_length + length, buff + page_length,
page_length - page_offset);
page_length+= length;
break;
}
case KEY_OP_CHANGE: /* 3 */
{
uint length= uint2korr(header);
DBUG_PRINT("redo", ("key_op_change: %u", length));
DBUG_ASSERT(page_offset != 0 && page_offset + length <= page_length);
memcpy(buff + page_offset, header + 2 , length);
page_offset+= length; /* Put offset after changed length */
header+= 2 + length;
break;
}
case KEY_OP_ADD_PREFIX: /* 4 */
{
uint insert_length= uint2korr(header);
uint changed_length= uint2korr(header+2);
DBUG_PRINT("redo", ("key_op_add_prefix: %u %u",
insert_length, changed_length));
DBUG_ASSERT(insert_length <= changed_length &&
page_length + insert_length <= max_page_size);
bmove_upp(buff + page_length + insert_length, buff + page_length,
page_length - keypage_header);
memcpy(buff + keypage_header, header + 4 , changed_length);
header+= 4 + changed_length;
page_length+= insert_length;
break;
}
case KEY_OP_DEL_PREFIX: /* 5 */
{
uint length= uint2korr(header);
header+= 2;
DBUG_PRINT("redo", ("key_op_del_prefix: %u", length));
DBUG_ASSERT(length <= page_length - keypage_header);
bmove(buff + keypage_header, buff + keypage_header +
length, page_length - keypage_header - length);
page_length-= length;
page_offset= keypage_header; /* Prepare for change */
break;
}
case KEY_OP_ADD_SUFFIX: /* 6 */
{
uint insert_length= uint2korr(header);
DBUG_PRINT("redo", ("key_op_add_suffix: %u", insert_length));
DBUG_ASSERT(page_length + insert_length <= max_page_size);
memcpy(buff + page_length, header+2, insert_length);
page_length+= insert_length;
header+= 2 + insert_length;
break;
}
case KEY_OP_DEL_SUFFIX: /* 7 */
{
uint del_length= uint2korr(header);
header+= 2;
DBUG_PRINT("redo", ("key_op_del_suffix: %u", del_length));
DBUG_ASSERT(page_length - del_length >= keypage_header);
page_length-= del_length;
break;
}
case KEY_OP_CHECK: /* 8 */
{
#ifdef EXTRA_DEBUG_KEY_CHANGES
uint check_page_length;
ha_checksum crc;
check_page_length= uint2korr(header);
crc= uint4korr(header+2);
_ma_store_page_used(share, buff, page_length);
if (check_page_length != page_length ||
crc != (uint32) my_checksum(0, buff + LSN_STORE_SIZE,
page_length - LSN_STORE_SIZE))
{
DBUG_DUMP("KEY_OP_CHECK bad page", buff, page_length);
if (header + 6 + check_page_length <= header_end)
{
DBUG_DUMP("KEY_OP_CHECK org page", header + 6, check_page_length);
}
DBUG_ASSERT("crc failure in REDO_INDEX" == 0);
}
#endif
DBUG_PRINT("redo", ("key_op_check"));
/*
This is the last entry in the block and it can contain page_length
data or not
*/
DBUG_ASSERT(header + 6 == header_end ||
header + 6 + page_length == header_end);
header= header_end;
break;
}
case KEY_OP_DEBUG:
DBUG_PRINT("redo", ("Debug: %u", (uint) header[0]));
header++;
break;
case KEY_OP_DEBUG_2:
DBUG_PRINT("redo", ("org_page_length: %u new_page_length: %u",
uint2korr(header), uint2korr(header+2)));
DBUG_ASSERT(uint2korr(header) == page_length);
#ifdef DBUG_ASSERT_EXISTS
new_page_length= MY_MIN(uint2korr(header+2), max_page_size);
#endif
header+= 4;
break;
case KEY_OP_MAX_PAGELENGTH:
DBUG_PRINT("redo", ("key_op_max_page_length"));
page_length= max_page_size;
break;
case KEY_OP_MULTI_COPY: /* 9 */
{
/*
List of fixed-len memcpy() operations with their source located inside
the page. The log record's piece looks like:
first the length 'full_length' to be used by memcpy()
then the number of bytes used by the list of (to,from) pairs
then the (to,from) pairs, so we do:
for (t,f) in [list of (to,from) pairs]:
memcpy(t, f, full_length).
*/
uint full_length, log_memcpy_length;
const uchar *log_memcpy_end;
DBUG_PRINT("redo", ("key_op_multi_copy"));
full_length= uint2korr(header);
header+= 2;
log_memcpy_length= uint2korr(header);
header+= 2;
log_memcpy_end= header + log_memcpy_length;
DBUG_ASSERT(full_length <= max_page_size);
while (header < log_memcpy_end)
{
uint to, from;
to= uint2korr(header);
header+= 2;
from= uint2korr(header);
header+= 2;
/* "from" is a place in the existing page */
DBUG_ASSERT(MY_MAX(from, to) < max_page_size);
memcpy(buff + to, buff + from, full_length);
}
break;
}
case KEY_OP_SET_PAGEFLAG:
DBUG_PRINT("redo", ("key_op_set_pageflag"));
_ma_store_keypage_flag(share, buff, *header++);
break;
case KEY_OP_COMPACT_PAGE:
{
TrID transid= transid_korr(header);
DBUG_PRINT("redo", ("key_op_compact_page"));
header+= TRANSID_SIZE;
if (_ma_compact_keypage(&page, transid))
{
result= mark_crashed= 1;
goto err;
}
page_length= page.size;
break;
}
case KEY_OP_NONE:
default:
DBUG_ASSERT(0);
result= mark_crashed= 1;
goto err;
}
} while (header < header_end);
DBUG_ASSERT(header == header_end);
DBUG_ASSERT(new_page_length == 0 || new_page_length == page_length);
/* Write modified page */
page.size= page_length;
_ma_store_page_used(share, buff, page_length);
/*
Clean old stuff up. Gives us better compression of we archive things
and makes things easer to debug
*/
if (page_length < org_page_length)
bzero(buff + page_length, org_page_length-page_length);
/* Mark page to be unlocked and written at _ma_unpin_all_pages() */
page_link.unlock= PAGECACHE_LOCK_WRITE_UNLOCK;
page_link.changed= 1;
push_dynamic(&info->pinned_pages, (void*) &page_link);
DBUG_RETURN(0);
err:
pagecache_unlock_by_link(share->pagecache, page_link.link,
PAGECACHE_LOCK_WRITE_UNLOCK,
PAGECACHE_UNPIN, LSN_IMPOSSIBLE,
LSN_IMPOSSIBLE, 0, FALSE);
if (mark_crashed)
_ma_mark_file_crashed(share);
DBUG_RETURN(result);
} | O3 | c | ma_apply_redo_index:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movl %ecx, -0x38(%rbp)
movq %rdx, %r14
movq %rsi, -0x30(%rbp)
movq %rdi, %r15
movq (%rdi), %rcx
movl (%rdx), %eax
movzbl 0x4(%rdx), %r13d
shlq $0x20, %r13
orq %rax, %r13
movl 0x7c0(%rcx), %eax
movl %eax, -0x54(%rbp)
movq 0x600(%rcx), %rdi
movq %rcx, -0x40(%rbp)
leaq 0x750(%rcx), %rsi
leaq -0x88(%rbp), %rax
movl $0x1, %r12d
movq %r13, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
movl $0x1, %r9d
pushq %rax
pushq $0x4
callq 0x33566
addq $0x10, %rsp
testq %rax, %rax
je 0x5b803
movq %rax, %rbx
movq %r15, -0x50(%rbp)
movzwl (%rax), %eax
shlq $0x20, %rax
movzbl 0x2(%rbx), %ecx
shlq $0x30, %rcx
orq %rax, %rcx
movl 0x3(%rbx), %esi
orq %rcx, %rsi
cmpq -0x30(%rbp), %rsi
jge 0x5b814
movl -0x38(%rbp), %r8d
addq %r14, %r8
addq $0x5, %r14
movq -0x40(%rbp), %r15
movl 0x744(%r15), %eax
addl $-0x4, %eax
movzbl (%rbx,%rax), %eax
imulq $0x118, %rax, %rdx # imm = 0x118
addq 0x570(%r15), %rdx
leaq -0xc0(%rbp), %rdi
movq -0x50(%rbp), %r12
movq %r12, %rsi
movq %r13, %rcx
movq %r8, %r13
movq %rbx, %r8
callq 0x59dd8
movq %r13, %r8
leaq -0xc0(%rbp), %rax
movl 0x20(%rax), %eax
movl 0x744(%r15), %ecx
movq %rcx, -0x68(%rbp)
addq %rbx, %rcx
movq %rcx, -0x60(%rbp)
xorl %r13d, %r13d
leaq 0x871ae(%rip), %rsi # 0xe2708
movq %rax, -0x70(%rbp)
movl %eax, %edx
movq %r8, -0x38(%rbp)
movzbl (%r14), %eax
decl %eax
cmpl $0xd, %eax
ja 0x5b8c7
leaq 0x1(%r14), %r15
movslq (%rsi,%rax,4), %rax
addq %rsi, %rax
jmpq *%rax
movzwl 0x1(%r14), %r13d
addq $0x3, %r14
jmp 0x5b7b4
movl -0x54(%rbp), %eax
movl %eax, %edx
movq %r15, %r12
jmp 0x5b7b7
movl 0x1(%r14), %eax
movzwl 0x5(%r14), %esi
shlq $0x20, %rsi
orq %rax, %rsi
leaq -0xc0(%rbp), %rdi
movq %r8, %r15
callq 0x5a43c
leaq 0x87147(%rip), %rsi # 0xe2708
testb %al, %al
jne 0x5b8c7
movq %r15, %r8
addq $0x7, %r14
movl -0xa0(%rbp), %edx
jmp 0x5b7b4
movzwl 0x3(%r14), %eax
leaq 0x5(%r14), %r12
testq %rax, %rax
je 0x5b7b7
movq %r13, -0x48(%rbp)
movq %rdx, -0x30(%rbp)
leaq (%r14,%rax), %r13
addq $0x5, %r13
movzwl (%r15), %r14d
movzwl (%r12), %edi
movzwl 0x2(%r12), %esi
addq $0x4, %r12
addq %rbx, %rdi
addq %rbx, %rsi
movq %r14, %rdx
callq 0x29080
cmpq %r13, %r12
jb 0x5b601
movq -0x38(%rbp), %r8
leaq 0x870da(%rip), %rsi # 0xe2708
movq -0x30(%rbp), %rdx
movq -0x48(%rbp), %r13
jmp 0x5b7b7
movzwl 0x1(%r14), %r12d
movl %r13d, %edi
addq %rbx, %rdi
addq $0x3, %r14
movq %r14, %rsi
movq %rdx, -0x30(%rbp)
movq %r12, %rdx
movq %r13, %r14
movq %r8, %r13
callq 0x29080
movq %r13, %r8
movq -0x30(%rbp), %rdx
leaq 0x8709b(%rip), %rsi # 0xe2708
leal (%r12,%r14), %r13d
jmp 0x5b6da
movswl 0x1(%r14), %r12d
testl %r12d, %r12d
js 0x5b7cc
movq %rdx, %r15
subl %r13d, %edx
je 0x5b7f4
movl %r15d, %esi
addq %rbx, %rsi
movl %r12d, %edi
addq %rsi, %rdi
callq 0xabc04
jmp 0x5b7e9
movzwl 0x1(%r14), %r12d
movl %edx, %edi
addq %rbx, %rdi
addq $0x3, %r14
movq %r14, %rsi
movq %rdx, -0x30(%rbp)
movq %r12, %rdx
movq %r13, %r14
movq %r8, %r13
callq 0x29080
movq %r13, %r8
movq %r14, %r13
movq -0x30(%rbp), %rdx
leaq 0x87031(%rip), %rsi # 0xe2708
addl %r12d, %edx
addq %r15, %r12
addq $0x2, %r12
jmp 0x5b7b7
movzwl 0x1(%r14), %eax
addq $0x3, %r14
subl %eax, %edx
jmp 0x5b7b4
addq $0x5, %r14
jmp 0x5b7b4
movb 0x1(%r14), %al
addq $0x2, %r14
movq -0x40(%rbp), %rcx
movl 0x744(%rcx), %ecx
addl $-0x3, %ecx
movb %al, (%rbx,%rcx)
jmp 0x5b7b4
movzwl 0x1(%r14), %r15d
addq $0x3, %r14
movq %r15, %rsi
movq -0x60(%rbp), %rdi
addq %rdi, %rsi
movq -0x68(%rbp), %r12
movq %rdx, %r13
subl %r12d, %edx
subl %r15d, %edx
callq 0x29120
movq -0x38(%rbp), %r8
movq %r13, %rdx
leaq 0x86fb9(%rip), %rsi # 0xe2708
subl %r15d, %edx
movl %r12d, %r13d
jmp 0x5b7b4
movzwl 0x1(%r14), %edi
movq %rdi, -0x30(%rbp)
movzwl 0x3(%r14), %r12d
movl %edx, %esi
addq %rbx, %rsi
addq %rsi, %rdi
movq %r13, -0x48(%rbp)
movq %rdx, %r13
subl -0x68(%rbp), %edx
callq 0xabc04
addq $0x5, %r14
movq -0x60(%rbp), %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x29080
movq %r13, %rdx
movq -0x48(%rbp), %r13
leaq 0x86f6b(%rip), %rsi # 0xe2708
addq %r15, %r12
addq $0x4, %r12
movq -0x30(%rbp), %rax
addl %eax, %edx
movq -0x38(%rbp), %r8
jmp 0x5b7b7
addq $0x2, %r14
movq %r14, %r12
movq %r12, %r14
cmpq %r8, %r12
movq -0x50(%rbp), %r12
jb 0x5b564
jmp 0x5b856
movl %r13d, %edi
addq %rbx, %rdi
movslq %r12d, %rax
movq %rdi, %rsi
subq %rax, %rsi
movq %rdx, %r15
subl %r13d, %edx
addl %r12d, %edx
callq 0x29120
movq -0x38(%rbp), %r8
leaq 0x86f14(%rip), %rsi # 0xe2708
addq $0x3, %r14
addl %r12d, %r15d
movq %r14, %r12
movq %r15, %rdx
jmp 0x5b7b7
callq 0xa2a4e
movl (%rax), %esi
movq %r15, %rdi
callq 0x37978
jmp 0x5b825
xorl %r12d, %r12d
movq -0x50(%rbp), %rdi
xorl %edx, %edx
movq %r13, %rcx
callq 0x4d729
movq -0x40(%rbp), %rax
movq 0x600(%rax), %rdi
movq -0x88(%rbp), %rsi
xorl %eax, %eax
movl $0x6, %edx
movl $0x3, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %rax
pushq %rax
callq 0x33281
addq $0x10, %rsp
jmp 0x5b8b2
movl %edx, -0xa0(%rbp)
movq -0x40(%rbp), %rcx
movl 0x744(%rcx), %eax
movb %dl, -0x1(%rbx,%rax)
movl 0x744(%rcx), %eax
movb %dh, -0x2(%rbx,%rax)
movq %rdx, %rax
movq -0x70(%rbp), %rdx
subl %eax, %edx
jbe 0x5b88e
movl %eax, %eax
addq %rax, %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x292c0
leaq -0x88(%rbp), %rsi
movl $0x6, 0x8(%rsi)
movb $0x1, 0x10(%rsi)
addq $0x2e8, %r12 # imm = 0x2E8
movq %r12, %rdi
callq 0x92af2
xorl %r12d, %r12d
movl %r12d, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x40(%rbp), %rbx
movq 0x600(%rbx), %rdi
movq -0x88(%rbp), %rsi
xorl %eax, %eax
movl $0x6, %edx
movl $0x3, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %rax
pushq %rax
callq 0x33281
addq $0x10, %rsp
movq %rbx, %rdi
callq 0x39176
movl $0x1, %r12d
jmp 0x5b8b2
| _ma_apply_redo_index:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov dword ptr [rbp+var_38], ecx
mov r14, rdx
mov [rbp+var_30], rsi
mov r15, rdi
mov rcx, [rdi]
mov eax, [rdx]
movzx r13d, byte ptr [rdx+4]
shl r13, 20h
or r13, rax
mov eax, [rcx+7C0h]
mov [rbp+var_54], eax
mov rdi, [rcx+600h]
mov [rbp+var_40], rcx
lea rsi, [rcx+750h]
lea rax, [rbp+var_88]
mov r12d, 1
mov rdx, r13
xor ecx, ecx
xor r8d, r8d
mov r9d, 1
push rax
push 4
call pagecache_read
add rsp, 10h
test rax, rax
jz loc_5B803
mov rbx, rax
mov [rbp+var_50], r15
movzx eax, word ptr [rax]
shl rax, 20h
movzx ecx, byte ptr [rbx+2]
shl rcx, 30h
or rcx, rax
mov esi, [rbx+3]
or rsi, rcx
cmp rsi, [rbp+var_30]
jge loc_5B814
mov r8d, dword ptr [rbp+var_38]
add r8, r14
add r14, 5
mov r15, [rbp+var_40]
mov eax, [r15+744h]
add eax, 0FFFFFFFCh
movzx eax, byte ptr [rbx+rax]
imul rdx, rax, 118h
add rdx, [r15+570h]
lea rdi, [rbp+var_C0]
mov r12, [rbp+var_50]
mov rsi, r12
mov rcx, r13
mov r13, r8
mov r8, rbx
call _ma_page_setup
mov r8, r13
lea rax, [rbp+var_C0]
mov eax, [rax+20h]
mov ecx, [r15+744h]
mov [rbp+var_68], rcx
add rcx, rbx
mov [rbp+var_60], rcx
xor r13d, r13d
lea rsi, jpt_5B57E
mov [rbp+var_70], rax
mov edx, eax
mov [rbp+var_38], r8
loc_5B564:
movzx eax, byte ptr [r14]
dec eax; switch 14 cases
cmp eax, 0Dh
ja def_5B57E; jumptable 000000000005B57E default case
lea r15, [r14+1]
movsxd rax, ds:(jpt_5B57E - 0E2708h)[rsi+rax*4]
add rax, rsi
jmp rax; switch jump
loc_5B580:
movzx r13d, word ptr [r14+1]; jumptable 000000000005B57E case 1
add r14, 3
jmp loc_5B7B4
loc_5B58E:
mov eax, [rbp+var_54]; jumptable 000000000005B57E case 12
mov edx, eax
mov r12, r15
jmp loc_5B7B7
loc_5B59B:
mov eax, [r14+1]; jumptable 000000000005B57E case 11
movzx esi, word ptr [r14+5]
shl rsi, 20h
or rsi, rax
lea rdi, [rbp+var_C0]
mov r15, r8
call _ma_compact_keypage
lea rsi, jpt_5B57E
test al, al
jnz def_5B57E; jumptable 000000000005B57E default case
mov r8, r15
add r14, 7
mov edx, [rbp+var_A0]
jmp loc_5B7B4
loc_5B5DB:
movzx eax, word ptr [r14+3]; jumptable 000000000005B57E case 9
lea r12, [r14+5]
test rax, rax
jz loc_5B7B7
mov [rbp+var_48], r13
mov [rbp+var_30], rdx
lea r13, [r14+rax]
add r13, 5
movzx r14d, word ptr [r15]
loc_5B601:
movzx edi, word ptr [r12]
movzx esi, word ptr [r12+2]
add r12, 4
add rdi, rbx
add rsi, rbx
mov rdx, r14
call _memcpy
cmp r12, r13
jb short loc_5B601
mov r8, [rbp+var_38]
lea rsi, jpt_5B57E
mov rdx, [rbp+var_30]
mov r13, [rbp+var_48]
jmp loc_5B7B7
loc_5B63B:
movzx r12d, word ptr [r14+1]; jumptable 000000000005B57E case 3
mov edi, r13d
add rdi, rbx
add r14, 3
mov rsi, r14
mov [rbp+var_30], rdx
mov rdx, r12
mov r14, r13
mov r13, r8
call _memcpy
mov r8, r13
mov rdx, [rbp+var_30]
lea rsi, jpt_5B57E
lea r13d, [r12+r14]
jmp short loc_5B6DA
loc_5B673:
movsx r12d, word ptr [r14+1]; jumptable 000000000005B57E case 2
test r12d, r12d
js loc_5B7CC
mov r15, rdx
sub edx, r13d
jz loc_5B7F4
mov esi, r15d
add rsi, rbx
mov edi, r12d
add rdi, rsi
call bmove_upp
jmp loc_5B7E9
loc_5B6A3:
movzx r12d, word ptr [r14+1]; jumptable 000000000005B57E case 6
mov edi, edx
add rdi, rbx
add r14, 3
mov rsi, r14
mov [rbp+var_30], rdx
mov rdx, r12
mov r14, r13
mov r13, r8
call _memcpy
mov r8, r13
mov r13, r14
mov rdx, [rbp+var_30]
lea rsi, jpt_5B57E
add edx, r12d
loc_5B6DA:
add r12, r15
add r12, 2
jmp loc_5B7B7
loc_5B6E6:
movzx eax, word ptr [r14+1]; jumptable 000000000005B57E case 7
add r14, 3
sub edx, eax
jmp loc_5B7B4
loc_5B6F6:
add r14, 5; jumptable 000000000005B57E case 14
jmp loc_5B7B4
loc_5B6FF:
mov al, [r14+1]; jumptable 000000000005B57E case 10
add r14, 2
mov rcx, [rbp+var_40]
mov ecx, [rcx+744h]
add ecx, 0FFFFFFFDh
mov [rbx+rcx], al
jmp loc_5B7B4
loc_5B71C:
movzx r15d, word ptr [r14+1]; jumptable 000000000005B57E case 5
add r14, 3
mov rsi, r15
mov rdi, [rbp+var_60]
add rsi, rdi
mov r12, [rbp+var_68]
mov r13, rdx
sub edx, r12d
sub edx, r15d
call _memmove
mov r8, [rbp+var_38]
mov rdx, r13
lea rsi, jpt_5B57E
sub edx, r15d
mov r13d, r12d
jmp short loc_5B7B4
loc_5B757:
movzx edi, word ptr [r14+1]; jumptable 000000000005B57E case 4
mov [rbp+var_30], rdi
movzx r12d, word ptr [r14+3]
mov esi, edx
add rsi, rbx
add rdi, rsi
mov [rbp+var_48], r13
mov r13, rdx
sub edx, dword ptr [rbp+var_68]
call bmove_upp
add r14, 5
mov rdi, [rbp+var_60]
mov rsi, r14
mov rdx, r12
call _memcpy
mov rdx, r13
mov r13, [rbp+var_48]
lea rsi, jpt_5B57E
add r12, r15
add r12, 4
mov rax, [rbp+var_30]
add edx, eax
mov r8, [rbp+var_38]
jmp short loc_5B7B7
loc_5B7B0:
add r14, 2; jumptable 000000000005B57E case 13
loc_5B7B4:
mov r12, r14
loc_5B7B7:
mov r14, r12
cmp r12, r8
mov r12, [rbp+var_50]
jb loc_5B564
jmp loc_5B856; jumptable 000000000005B57E case 8
loc_5B7CC:
mov edi, r13d
add rdi, rbx
movsxd rax, r12d
mov rsi, rdi
sub rsi, rax
mov r15, rdx
sub edx, r13d
add edx, r12d
call _memmove
loc_5B7E9:
mov r8, [rbp+var_38]
lea rsi, jpt_5B57E
loc_5B7F4:
add r14, 3
add r15d, r12d
mov r12, r14
mov rdx, r15
jmp short loc_5B7B7
loc_5B803:
call _my_thread_var
mov esi, [rax]
mov rdi, r15
call _ma_set_fatal_error
jmp short loc_5B825
loc_5B814:
xor r12d, r12d
mov rdi, [rbp+var_50]
xor edx, edx
mov rcx, r13
call check_skipped_lsn
loc_5B825:
mov rax, [rbp+var_40]
mov rdi, [rax+600h]
mov rsi, [rbp+var_88]
xor eax, eax
mov edx, 6
mov ecx, 3
xor r8d, r8d
xor r9d, r9d
push rax
push rax
call pagecache_unlock_by_link
add rsp, 10h
jmp short loc_5B8B2
loc_5B856:
mov [rbp+var_A0], edx; jumptable 000000000005B57E case 8
mov rcx, [rbp+var_40]
mov eax, [rcx+744h]
mov [rbx+rax-1], dl
mov eax, [rcx+744h]
mov [rbx+rax-2], dh
mov rax, rdx
mov rdx, [rbp+var_70]
sub edx, eax
jbe short loc_5B88E
mov eax, eax
add rbx, rax
mov rdi, rbx
xor esi, esi
call _memset
loc_5B88E:
lea rsi, [rbp+var_88]
mov dword ptr [rsi+8], 6
mov byte ptr [rsi+10h], 1
add r12, 2E8h
mov rdi, r12
call insert_dynamic
xor r12d, r12d
loc_5B8B2:
mov eax, r12d
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
def_5B57E:
mov rbx, [rbp+var_40]; jumptable 000000000005B57E default case
mov rdi, [rbx+600h]
mov rsi, [rbp+var_88]
xor eax, eax
mov edx, 6
mov ecx, 3
xor r8d, r8d
xor r9d, r9d
push rax
push rax
call pagecache_unlock_by_link
add rsp, 10h
mov rdi, rbx
call _ma_mark_file_crashed
mov r12d, 1
jmp short loc_5B8B2
| long long ma_apply_redo_index(long long *a1, signed long long a2, unsigned int *a3, int a4)
{
long long v6; // rcx
unsigned long long v7; // r13
long long v8; // rdi
const char *v9; // rsi
unsigned int v10; // r12d
unsigned __int16 *v11; // rax
unsigned __int16 *v12; // rbx
signed long long v13; // rsi
char *v14; // r8
unsigned __int16 *v15; // r14
long long v16; // r15
long long *v17; // r12
long long v18; // rcx
char *v19; // r13
unsigned long long v20; // r8
long long v21; // r13
signed long long v22; // rdx
unsigned __int16 *v23; // r15
unsigned __int16 *v24; // r14
unsigned __int16 *v25; // r12
unsigned long long v26; // r15
long long v27; // rax
unsigned long long v28; // r13
long long v29; // r14
long long v30; // rdi
long long v31; // rsi
long long v32; // r12
char *v33; // rdi
char *v34; // rsi
int v35; // r14d
unsigned long long v36; // r13
int v37; // r12d
int v38; // r15d
char *v39; // rsi
long long v40; // r14
unsigned long long v41; // r13
int v42; // eax
char v43; // al
long long v44; // r15
unsigned int v45; // r12d
int v46; // r13d
long long v47; // r12
int v48; // r13d
int v49; // edx
bool v50; // cf
signed long long v51; // r15
unsigned int *v52; // rax
long long v53; // rdx
long long v54; // rcx
long long v55; // r8
int v56; // r9d
long long v57; // rcx
unsigned int v58; // eax
long long v59; // rdx
long long v61; // rbx
_BYTE v62[32]; // [rsp+0h] [rbp-C0h] BYREF
unsigned int v63; // [rsp+20h] [rbp-A0h]
long long v64; // [rsp+38h] [rbp-88h] BYREF
int v65; // [rsp+40h] [rbp-80h]
char v66; // [rsp+48h] [rbp-78h]
long long v67; // [rsp+50h] [rbp-70h]
long long v68; // [rsp+58h] [rbp-68h]
char *v69; // [rsp+60h] [rbp-60h]
unsigned int v70; // [rsp+6Ch] [rbp-54h]
long long *v71; // [rsp+70h] [rbp-50h]
long long v72; // [rsp+78h] [rbp-48h]
long long v73; // [rsp+80h] [rbp-40h]
unsigned long long v74; // [rsp+88h] [rbp-38h]
signed long long v75; // [rsp+90h] [rbp-30h]
LODWORD(v74) = a4;
v75 = a2;
v6 = *a1;
v7 = *a3 | ((unsigned long long)*((unsigned __int8 *)a3 + 4) << 32);
v70 = *(_DWORD *)(*a1 + 1984);
v8 = *(_QWORD *)(v6 + 1536);
v73 = v6;
v9 = (const char *)(v6 + 1872);
v10 = 1;
v11 = (unsigned __int16 *)pagecache_read(v8, v6 + 1872, v7, 0, 0LL, 1, 4u, &v64);
if ( !v11 )
{
v52 = (unsigned int *)my_thread_var(v8, v9);
ma_set_fatal_error(a1, *v52, v53, v54, v55, v56);
LABEL_33:
pagecache_unlock_by_link(*(_QWORD *)(v73 + 1536), v64, 6, 3, 0LL, 0LL, 0);
return v10;
}
v12 = v11;
v71 = a1;
v13 = ((unsigned long long)*v11 << 32) | ((unsigned long long)*((unsigned __int8 *)v11 + 2) << 48) | *(unsigned int *)((char *)v11 + 3);
if ( v13 >= v75 )
{
v10 = 0;
check_skipped_lsn((long long)v71, v13, 0, v7);
goto LABEL_33;
}
v14 = (char *)a3 + (unsigned int)v74;
v15 = (unsigned __int16 *)((char *)a3 + 5);
v16 = v73;
v17 = v71;
v18 = v7;
v19 = v14;
ma_page_setup(
(long long)v62,
v71,
*(_QWORD *)(v73 + 1392) + 280LL * *((unsigned __int8 *)v11 + (unsigned int)(*(_DWORD *)(v73 + 1860) - 4)),
v18,
(long long)v11);
v20 = (unsigned long long)v19;
v68 = *(unsigned int *)(v16 + 1860);
v69 = (char *)v12 + v68;
v21 = 0LL;
v67 = v63;
v22 = v63;
v74 = v20;
while ( 2 )
{
v23 = (unsigned __int16 *)((char *)v15 + 1);
switch ( *(_BYTE *)v15 )
{
case 1:
v21 = *(unsigned __int16 *)((char *)v15 + 1);
v24 = (unsigned __int16 *)((char *)v15 + 3);
goto LABEL_25;
case 2:
v37 = *(__int16 *)((char *)v15 + 1);
if ( v37 < 0 )
{
v38 = v22;
memmove(
(char *)v12 + (unsigned int)v21,
(char *)v12 + (unsigned int)v21 - *(__int16 *)((char *)v15 + 1),
(unsigned int)(v37 + v22 - v21));
}
else
{
v38 = v22;
if ( (_DWORD)v22 == (_DWORD)v21 )
goto LABEL_30;
bmove_upp((char *)v12 + (unsigned int)v22 + v37, (char *)v12 + (unsigned int)v22);
}
v20 = v74;
LABEL_30:
v51 = (unsigned int)(v37 + v38);
v25 = (unsigned __int16 *)((char *)v15 + 3);
v22 = v51;
LABEL_26:
v15 = v25;
v50 = (unsigned long long)v25 < v20;
v17 = v71;
if ( v50 )
continue;
LABEL_34:
v63 = v22;
v57 = v73;
*((_BYTE *)v12 + *(unsigned int *)(v73 + 1860) - 1) = v22;
*((_BYTE *)v12 + *(unsigned int *)(v57 + 1860) - 2) = BYTE1(v22);
v58 = v22;
v59 = (unsigned int)(v67 - v22);
if ( (unsigned int)v67 > v58 )
memset((char *)v12 + v58, 0LL, v59);
v65 = 6;
v66 = 1;
insert_dynamic(v17 + 93, &v64);
v10 = 0;
break;
case 3:
v32 = *(unsigned __int16 *)((char *)v15 + 1);
v33 = (char *)v12 + (unsigned int)v21;
v34 = (char *)v15 + 3;
v75 = v22;
v35 = v21;
v36 = v20;
memcpy(v33, v34, v32);
v20 = v36;
v22 = v75;
v21 = (unsigned int)(v32 + v35);
goto LABEL_18;
case 4:
v75 = *(unsigned __int16 *)((char *)v15 + 1);
v47 = *(unsigned __int16 *)((char *)v15 + 3);
v72 = v21;
v48 = v22;
bmove_upp((char *)v12 + (unsigned int)v22 + v75, (char *)v12 + (unsigned int)v22);
memcpy(v69, (char *)v15 + 5, v47);
v49 = v48;
v21 = v72;
v25 = (unsigned __int16 *)((char *)v23 + v47 + 4);
v22 = (unsigned int)(v75 + v49);
v20 = v74;
goto LABEL_26;
case 5:
v44 = *(unsigned __int16 *)((char *)v15 + 1);
v24 = (unsigned __int16 *)((char *)v15 + 3);
v45 = v68;
v46 = v22;
memmove(v69, &v69[v44], (unsigned int)(v22 - v68 - v44));
v20 = v74;
v22 = (unsigned int)(v46 - v44);
v21 = v45;
goto LABEL_25;
case 6:
v32 = *(unsigned __int16 *)((char *)v15 + 1);
v39 = (char *)v15 + 3;
v75 = v22;
v40 = v21;
v41 = v20;
memcpy((char *)v12 + (unsigned int)v22, v39, v32);
v20 = v41;
v21 = v40;
v22 = (unsigned int)(v32 + v75);
LABEL_18:
v25 = (unsigned __int16 *)((char *)v23 + v32 + 2);
goto LABEL_26;
case 7:
v42 = *(unsigned __int16 *)((char *)v15 + 1);
v24 = (unsigned __int16 *)((char *)v15 + 3);
v22 = (unsigned int)(v22 - v42);
goto LABEL_25;
case 8:
goto LABEL_34;
case 9:
v27 = *(unsigned __int16 *)((char *)v15 + 3);
v25 = (unsigned __int16 *)((char *)v15 + 5);
if ( *(unsigned __int16 *)((char *)v15 + 3) )
{
v72 = v21;
v75 = v22;
v28 = (unsigned long long)v15 + v27 + 5;
v29 = *v23;
do
{
v30 = *v25;
v31 = v25[1];
v25 += 2;
memcpy((char *)v12 + v30, (char *)v12 + v31, v29);
}
while ( (unsigned long long)v25 < v28 );
v20 = v74;
v22 = v75;
v21 = v72;
}
goto LABEL_26;
case 0xA:
v43 = *((_BYTE *)v15 + 1);
v24 = v15 + 1;
*((_BYTE *)v12 + (unsigned int)(*(_DWORD *)(v73 + 1860) - 3)) = v43;
goto LABEL_25;
case 0xB:
v26 = v20;
if ( (unsigned __int8)ma_compact_keypage(
(long long)v62,
*(unsigned int *)((char *)v15 + 1) | ((unsigned long long)*(unsigned __int16 *)((char *)v15 + 5) << 32)) )
goto LABEL_38;
v20 = v26;
v24 = (unsigned __int16 *)((char *)v15 + 7);
v22 = v63;
LABEL_25:
v25 = v24;
goto LABEL_26;
case 0xC:
v22 = v70;
v25 = (unsigned __int16 *)((char *)v15 + 1);
goto LABEL_26;
case 0xD:
v24 = v15 + 1;
goto LABEL_25;
case 0xE:
v24 = (unsigned __int16 *)((char *)v15 + 5);
goto LABEL_25;
default:
LABEL_38:
v61 = v73;
pagecache_unlock_by_link(*(_QWORD *)(v73 + 1536), v64, 6, 3, 0LL, 0LL, 0);
ma_mark_file_crashed(v61);
return 1;
}
return v10;
}
}
| _ma_apply_redo_index:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV dword ptr [RBP + -0x38],ECX
MOV R14,RDX
MOV qword ptr [RBP + -0x30],RSI
MOV R15,RDI
MOV RCX,qword ptr [RDI]
MOV EAX,dword ptr [RDX]
MOVZX R13D,byte ptr [RDX + 0x4]
SHL R13,0x20
OR R13,RAX
MOV EAX,dword ptr [RCX + 0x7c0]
MOV dword ptr [RBP + -0x54],EAX
MOV RDI,qword ptr [RCX + 0x600]
MOV qword ptr [RBP + -0x40],RCX
LEA RSI,[RCX + 0x750]
LEA RAX,[RBP + -0x88]
MOV R12D,0x1
MOV RDX,R13
XOR ECX,ECX
XOR R8D,R8D
MOV R9D,0x1
PUSH RAX
PUSH 0x4
CALL 0x00133566
ADD RSP,0x10
TEST RAX,RAX
JZ 0x0015b803
MOV RBX,RAX
MOV qword ptr [RBP + -0x50],R15
MOVZX EAX,word ptr [RAX]
SHL RAX,0x20
MOVZX ECX,byte ptr [RBX + 0x2]
SHL RCX,0x30
OR RCX,RAX
MOV ESI,dword ptr [RBX + 0x3]
OR RSI,RCX
CMP RSI,qword ptr [RBP + -0x30]
JGE 0x0015b814
MOV R8D,dword ptr [RBP + -0x38]
ADD R8,R14
ADD R14,0x5
MOV R15,qword ptr [RBP + -0x40]
MOV EAX,dword ptr [R15 + 0x744]
ADD EAX,-0x4
MOVZX EAX,byte ptr [RBX + RAX*0x1]
IMUL RDX,RAX,0x118
ADD RDX,qword ptr [R15 + 0x570]
LEA RDI,[RBP + -0xc0]
MOV R12,qword ptr [RBP + -0x50]
MOV RSI,R12
MOV RCX,R13
MOV R13,R8
MOV R8,RBX
CALL 0x00159dd8
MOV R8,R13
LEA RAX,[RBP + -0xc0]
MOV EAX,dword ptr [RAX + 0x20]
MOV ECX,dword ptr [R15 + 0x744]
MOV qword ptr [RBP + -0x68],RCX
ADD RCX,RBX
MOV qword ptr [RBP + -0x60],RCX
XOR R13D,R13D
LEA RSI,[0x1e2708]
MOV qword ptr [RBP + -0x70],RAX
MOV EDX,EAX
MOV qword ptr [RBP + -0x38],R8
LAB_0015b564:
MOVZX EAX,byte ptr [R14]
DEC EAX
CMP EAX,0xd
JA 0x0015b8c7
LEA R15,[R14 + 0x1]
MOVSXD RAX,dword ptr [RSI + RAX*0x4]
ADD RAX,RSI
switchD:
JMP RAX
caseD_1:
MOVZX R13D,word ptr [R14 + 0x1]
ADD R14,0x3
JMP 0x0015b7b4
caseD_c:
MOV EAX,dword ptr [RBP + -0x54]
MOV EDX,EAX
MOV R12,R15
JMP 0x0015b7b7
caseD_b:
MOV EAX,dword ptr [R14 + 0x1]
MOVZX ESI,word ptr [R14 + 0x5]
SHL RSI,0x20
OR RSI,RAX
LEA RDI,[RBP + -0xc0]
MOV R15,R8
CALL 0x0015a43c
LEA RSI,[0x1e2708]
TEST AL,AL
JNZ 0x0015b8c7
MOV R8,R15
ADD R14,0x7
MOV EDX,dword ptr [RBP + -0xa0]
JMP 0x0015b7b4
caseD_9:
MOVZX EAX,word ptr [R14 + 0x3]
LEA R12,[R14 + 0x5]
TEST RAX,RAX
JZ 0x0015b7b7
MOV qword ptr [RBP + -0x48],R13
MOV qword ptr [RBP + -0x30],RDX
LEA R13,[R14 + RAX*0x1]
ADD R13,0x5
MOVZX R14D,word ptr [R15]
LAB_0015b601:
MOVZX EDI,word ptr [R12]
MOVZX ESI,word ptr [R12 + 0x2]
ADD R12,0x4
ADD RDI,RBX
ADD RSI,RBX
MOV RDX,R14
CALL 0x00129080
CMP R12,R13
JC 0x0015b601
MOV R8,qword ptr [RBP + -0x38]
LEA RSI,[0x1e2708]
MOV RDX,qword ptr [RBP + -0x30]
MOV R13,qword ptr [RBP + -0x48]
JMP 0x0015b7b7
caseD_3:
MOVZX R12D,word ptr [R14 + 0x1]
MOV EDI,R13D
ADD RDI,RBX
ADD R14,0x3
MOV RSI,R14
MOV qword ptr [RBP + -0x30],RDX
MOV RDX,R12
MOV R14,R13
MOV R13,R8
CALL 0x00129080
MOV R8,R13
MOV RDX,qword ptr [RBP + -0x30]
LEA RSI,[0x1e2708]
LEA R13D,[R12 + R14*0x1]
JMP 0x0015b6da
caseD_2:
MOVSX R12D,word ptr [R14 + 0x1]
TEST R12D,R12D
JS 0x0015b7cc
MOV R15,RDX
SUB EDX,R13D
JZ 0x0015b7f4
MOV ESI,R15D
ADD RSI,RBX
MOV EDI,R12D
ADD RDI,RSI
CALL 0x001abc04
JMP 0x0015b7e9
caseD_6:
MOVZX R12D,word ptr [R14 + 0x1]
MOV EDI,EDX
ADD RDI,RBX
ADD R14,0x3
MOV RSI,R14
MOV qword ptr [RBP + -0x30],RDX
MOV RDX,R12
MOV R14,R13
MOV R13,R8
CALL 0x00129080
MOV R8,R13
MOV R13,R14
MOV RDX,qword ptr [RBP + -0x30]
LEA RSI,[0x1e2708]
ADD EDX,R12D
LAB_0015b6da:
ADD R12,R15
ADD R12,0x2
JMP 0x0015b7b7
caseD_7:
MOVZX EAX,word ptr [R14 + 0x1]
ADD R14,0x3
SUB EDX,EAX
JMP 0x0015b7b4
caseD_e:
ADD R14,0x5
JMP 0x0015b7b4
caseD_a:
MOV AL,byte ptr [R14 + 0x1]
ADD R14,0x2
MOV RCX,qword ptr [RBP + -0x40]
MOV ECX,dword ptr [RCX + 0x744]
ADD ECX,-0x3
MOV byte ptr [RBX + RCX*0x1],AL
JMP 0x0015b7b4
caseD_5:
MOVZX R15D,word ptr [R14 + 0x1]
ADD R14,0x3
MOV RSI,R15
MOV RDI,qword ptr [RBP + -0x60]
ADD RSI,RDI
MOV R12,qword ptr [RBP + -0x68]
MOV R13,RDX
SUB EDX,R12D
SUB EDX,R15D
CALL 0x00129120
MOV R8,qword ptr [RBP + -0x38]
MOV RDX,R13
LEA RSI,[0x1e2708]
SUB EDX,R15D
MOV R13D,R12D
JMP 0x0015b7b4
caseD_4:
MOVZX EDI,word ptr [R14 + 0x1]
MOV qword ptr [RBP + -0x30],RDI
MOVZX R12D,word ptr [R14 + 0x3]
MOV ESI,EDX
ADD RSI,RBX
ADD RDI,RSI
MOV qword ptr [RBP + -0x48],R13
MOV R13,RDX
SUB EDX,dword ptr [RBP + -0x68]
CALL 0x001abc04
ADD R14,0x5
MOV RDI,qword ptr [RBP + -0x60]
MOV RSI,R14
MOV RDX,R12
CALL 0x00129080
MOV RDX,R13
MOV R13,qword ptr [RBP + -0x48]
LEA RSI,[0x1e2708]
ADD R12,R15
ADD R12,0x4
MOV RAX,qword ptr [RBP + -0x30]
ADD EDX,EAX
MOV R8,qword ptr [RBP + -0x38]
JMP 0x0015b7b7
caseD_d:
ADD R14,0x2
LAB_0015b7b4:
MOV R12,R14
LAB_0015b7b7:
MOV R14,R12
CMP R12,R8
MOV R12,qword ptr [RBP + -0x50]
JC 0x0015b564
JMP 0x0015b856
LAB_0015b7cc:
MOV EDI,R13D
ADD RDI,RBX
MOVSXD RAX,R12D
MOV RSI,RDI
SUB RSI,RAX
MOV R15,RDX
SUB EDX,R13D
ADD EDX,R12D
CALL 0x00129120
LAB_0015b7e9:
MOV R8,qword ptr [RBP + -0x38]
LEA RSI,[0x1e2708]
LAB_0015b7f4:
ADD R14,0x3
ADD R15D,R12D
MOV R12,R14
MOV RDX,R15
JMP 0x0015b7b7
LAB_0015b803:
CALL 0x001a2a4e
MOV ESI,dword ptr [RAX]
MOV RDI,R15
CALL 0x00137978
JMP 0x0015b825
LAB_0015b814:
XOR R12D,R12D
MOV RDI,qword ptr [RBP + -0x50]
XOR EDX,EDX
MOV RCX,R13
CALL 0x0014d729
LAB_0015b825:
MOV RAX,qword ptr [RBP + -0x40]
MOV RDI,qword ptr [RAX + 0x600]
MOV RSI,qword ptr [RBP + -0x88]
XOR EAX,EAX
MOV EDX,0x6
MOV ECX,0x3
XOR R8D,R8D
XOR R9D,R9D
PUSH RAX
PUSH RAX
CALL 0x00133281
ADD RSP,0x10
JMP 0x0015b8b2
caseD_8:
MOV dword ptr [RBP + -0xa0],EDX
MOV RCX,qword ptr [RBP + -0x40]
MOV EAX,dword ptr [RCX + 0x744]
MOV byte ptr [RBX + RAX*0x1 + -0x1],DL
MOV EAX,dword ptr [RCX + 0x744]
MOV byte ptr [RBX + RAX*0x1 + -0x2],DH
MOV RAX,RDX
MOV RDX,qword ptr [RBP + -0x70]
SUB EDX,EAX
JBE 0x0015b88e
MOV EAX,EAX
ADD RBX,RAX
MOV RDI,RBX
XOR ESI,ESI
CALL 0x001292c0
LAB_0015b88e:
LEA RSI,[RBP + -0x88]
MOV dword ptr [RSI + 0x8],0x6
MOV byte ptr [RSI + 0x10],0x1
ADD R12,0x2e8
MOV RDI,R12
CALL 0x00192af2
XOR R12D,R12D
LAB_0015b8b2:
MOV EAX,R12D
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0015b8c7:
MOV RBX,qword ptr [RBP + -0x40]
MOV RDI,qword ptr [RBX + 0x600]
MOV RSI,qword ptr [RBP + -0x88]
XOR EAX,EAX
MOV EDX,0x6
MOV ECX,0x3
XOR R8D,R8D
XOR R9D,R9D
PUSH RAX
PUSH RAX
CALL 0x00133281
ADD RSP,0x10
MOV RDI,RBX
CALL 0x00139176
MOV R12D,0x1
JMP 0x0015b8b2
|
int8 _ma_apply_redo_index(long *param_1,ulong param_2,uint5 *param_3,int4 param_4)
{
ushort *puVar1;
ushort uVar2;
ushort uVar3;
ushort uVar4;
char cVar5;
ushort *puVar6;
int4 *puVar7;
int iVar8;
uint uVar9;
ulong uVar10;
long lVar11;
void *__dest;
ushort *puVar12;
int8 uVar13;
ulong uVar14;
int iVar15;
ulong uVar16;
ushort *puVar17;
ushort *puVar18;
int1 local_c8 [32];
uint local_a8;
int8 local_90;
int4 local_88;
int1 local_80;
ulong local_78;
ulong local_70;
void *local_68;
uint local_5c;
long *local_58;
ulong local_50;
long local_48;
ushort *local_40;
ulong local_38;
local_40 = (ushort *)CONCAT44(local_40._4_4_,param_4);
local_48 = *param_1;
uVar16 = (ulong)*param_3;
local_5c = *(uint *)(local_48 + 0x7c0);
uVar13 = 1;
local_38 = param_2;
puVar6 = (ushort *)
pagecache_read(*(int8 *)(local_48 + 0x600),local_48 + 0x750,uVar16,0,0,1,4,
&local_90);
lVar11 = local_48;
if (puVar6 == (ushort *)0x0) {
puVar7 = (int4 *)_my_thread_var();
_ma_set_fatal_error(param_1,*puVar7);
}
else {
uVar10 = (ulong)*(uint *)((long)puVar6 + 3) |
(ulong)(byte)puVar6[1] << 0x30 | (ulong)*puVar6 << 0x20;
local_58 = param_1;
if ((long)uVar10 < (long)local_38) {
puVar12 = (ushort *)(((ulong)local_40 & 0xffffffff) + (long)param_3);
_ma_page_setup(local_c8,param_1,
(ulong)*(byte *)((long)puVar6 + (ulong)(*(int *)(local_48 + 0x744) - 4)) *
0x118 + *(long *)(local_48 + 0x570),uVar16,puVar6);
local_78 = (ulong)local_a8;
local_70 = (ulong)*(uint *)(lVar11 + 0x744);
local_68 = (void *)(local_70 + (long)puVar6);
uVar10 = 0;
uVar16 = (ulong)local_a8;
puVar17 = (ushort *)((long)param_3 + 5);
local_40 = puVar12;
do {
uVar14 = local_70;
if (0xd < (byte)*puVar17 - 1) {
LAB_0015b8c7:
lVar11 = local_48;
pagecache_unlock_by_link(*(int8 *)(local_48 + 0x600),local_90,6,3,0,0,0,0);
_ma_mark_file_crashed(lVar11);
return 1;
}
puVar1 = (ushort *)((long)puVar17 + 1);
iVar15 = (int)uVar10;
iVar8 = (int)uVar16;
switch((uint)(byte)*puVar17) {
case 1:
uVar10 = (ulong)*(ushort *)((long)puVar17 + 1);
puVar18 = (ushort *)((long)puVar17 + 3);
break;
case 2:
uVar9 = (uint)*(short *)((long)puVar17 + 1);
if (*(short *)((long)puVar17 + 1) < 0) {
__dest = (void *)((uVar10 & 0xffffffff) + (long)puVar6);
memmove(__dest,(void *)((long)__dest - (long)(int)uVar9),
(ulong)((iVar8 - iVar15) + uVar9));
puVar12 = local_40;
}
else if (iVar8 != iVar15) {
bmove_upp((long)puVar6 + (ulong)uVar9 + (uVar16 & 0xffffffff));
puVar12 = local_40;
}
puVar18 = (ushort *)((long)puVar17 + 3);
uVar16 = (ulong)(iVar8 + uVar9);
break;
case 3:
uVar2 = *(ushort *)((long)puVar17 + 1);
uVar14 = (ulong)uVar2;
local_38 = uVar16;
memcpy((void *)((uVar10 & 0xffffffff) + (long)puVar6),(byte *)((long)puVar17 + 3),uVar14);
uVar10 = (ulong)((uint)uVar2 + iVar15);
uVar16 = local_38;
goto LAB_0015b6da;
case 4:
local_38 = (ulong)*(ushort *)((long)puVar17 + 1);
uVar2 = *(ushort *)((long)puVar17 + 3);
lVar11 = (uVar16 & 0xffffffff) + (long)puVar6;
local_50 = uVar10;
bmove_upp(local_38 + lVar11,lVar11,iVar8 - (int)local_70);
memcpy(local_68,(byte *)((long)puVar17 + 5),(ulong)uVar2);
puVar18 = (ushort *)((long)puVar1 + (ulong)uVar2 + 4);
uVar16 = (ulong)(uint)(iVar8 + (int)local_38);
puVar12 = local_40;
uVar10 = local_50;
break;
case 5:
uVar2 = *(ushort *)((long)puVar17 + 1);
puVar18 = (ushort *)((long)puVar17 + 3);
memmove(local_68,(void *)((ulong)uVar2 + (long)local_68),
(ulong)((iVar8 - (int)local_70) - (uint)uVar2));
uVar16 = (ulong)(iVar8 - (uint)uVar2);
uVar10 = uVar14 & 0xffffffff;
puVar12 = local_40;
break;
case 6:
uVar2 = *(ushort *)((long)puVar17 + 1);
uVar14 = (ulong)uVar2;
local_38 = uVar16;
memcpy((void *)((uVar16 & 0xffffffff) + (long)puVar6),(byte *)((long)puVar17 + 3),uVar14);
uVar16 = (ulong)((int)local_38 + (uint)uVar2);
LAB_0015b6da:
puVar18 = (ushort *)((long)puVar1 + uVar14 + 2);
break;
case 7:
puVar18 = (ushort *)((long)puVar17 + 3);
uVar16 = (ulong)(iVar8 - (uint)*(ushort *)((long)puVar17 + 1));
break;
case 8:
goto switchD_0015b57e_caseD_8;
case 9:
uVar2 = *(ushort *)((long)puVar17 + 3);
puVar18 = (ushort *)((long)puVar17 + 5);
if ((ulong)uVar2 != 0) {
uVar3 = *puVar1;
local_50 = uVar10;
local_38 = uVar16;
do {
uVar4 = *puVar18;
puVar12 = puVar18 + 1;
puVar18 = puVar18 + 2;
memcpy((void *)((ulong)uVar4 + (long)puVar6),(void *)((ulong)*puVar12 + (long)puVar6),
(ulong)uVar3);
uVar16 = local_38;
puVar12 = local_40;
uVar10 = local_50;
} while (puVar18 < (ushort *)((long)puVar17 + (ulong)uVar2 + 5));
}
break;
case 10:
puVar18 = puVar17 + 1;
*(byte *)((long)puVar6 + (ulong)(*(int *)(local_48 + 0x744) - 3)) =
*(byte *)((long)puVar17 + 1);
break;
case 0xb:
cVar5 = _ma_compact_keypage(local_c8,(ulong)*(uint6 *)((long)puVar17 + 1));
if (cVar5 != '\0') goto LAB_0015b8c7;
puVar18 = (ushort *)((long)puVar17 + 7);
uVar16 = (ulong)local_a8;
break;
case 0xc:
uVar16 = (ulong)local_5c;
puVar18 = puVar1;
break;
case 0xd:
puVar18 = puVar17 + 1;
break;
case 0xe:
puVar18 = (ushort *)((long)puVar17 + 5);
}
param_1 = local_58;
puVar17 = puVar18;
} while (puVar18 < puVar12);
switchD_0015b57e_caseD_8:
local_a8 = (uint)uVar16;
*(char *)((long)puVar6 + ((ulong)*(uint *)(local_48 + 0x744) - 1)) = (char)uVar16;
*(char *)((long)puVar6 + ((ulong)*(uint *)(local_48 + 0x744) - 2)) = (char)(uVar16 >> 8);
uVar9 = (uint)local_78 - local_a8;
if (local_a8 <= (uint)local_78 && uVar9 != 0) {
memset((void *)((long)puVar6 + (uVar16 & 0xffffffff)),0,(ulong)uVar9);
}
local_88 = 6;
local_80 = 1;
insert_dynamic(param_1 + 0x5d);
return 0;
}
uVar13 = 0;
check_skipped_lsn(param_1,uVar10,0,uVar16);
}
pagecache_unlock_by_link(*(int8 *)(local_48 + 0x600),local_90,6,3,0,0,0,0);
return uVar13;
}
| |
28,107 | ggml_hash_find_or_insert | monkey531[P]llama/ggml/src/ggml-impl.h | static size_t ggml_hash_find_or_insert(struct ggml_hash_set * hash_set, struct ggml_tensor * key) {
size_t h = ggml_hash(key) % hash_set->size;
// linear probing
size_t i = h;
do {
if (!ggml_bitset_get(hash_set->used, i)) {
ggml_bitset_set(hash_set->used, i);
hash_set->keys[i] = key;
return i;
}
if (hash_set->keys[i] == key) {
return i;
}
i = (i + 1) % hash_set->size;
} while (i != h);
// visited all hash table entries -> not found
GGML_ABORT("fatal error");
} | O0 | c | ggml_hash_find_or_insert:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq 0x10(%rsp), %rdi
callq 0x5d370
movq 0x18(%rsp), %rcx
xorl %edx, %edx
divq (%rcx)
movq %rdx, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, (%rsp)
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rdi
movq (%rsp), %rsi
callq 0x5d380
testb $0x1, %al
jne 0x5d2f9
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rdi
movq (%rsp), %rsi
callq 0x5d3c0
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq (%rsp), %rax
movq %rax, 0x20(%rsp)
jmp 0x5d35b
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rsp), %rcx
movq (%rax,%rcx,8), %rax
cmpq 0x10(%rsp), %rax
jne 0x5d31c
movq (%rsp), %rax
movq %rax, 0x20(%rsp)
jmp 0x5d35b
movq (%rsp), %rax
addq $0x1, %rax
movq 0x18(%rsp), %rcx
xorl %edx, %edx
divq (%rcx)
movq %rdx, (%rsp)
movq (%rsp), %rax
cmpq 0x8(%rsp), %rax
jne 0x5d2b0
leaq 0x59453(%rip), %rdi # 0xb679b
movl $0x114, %esi # imm = 0x114
leaq 0x5921f(%rip), %rdx # 0xb6573
movb $0x0, %al
callq 0x46770
movq 0x20(%rsp), %rax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
| ggml_hash_find_or_insert:
sub rsp, 28h
mov [rsp+28h+var_10], rdi
mov [rsp+28h+var_18], rsi
mov rdi, [rsp+28h+var_18]
call ggml_hash_0
mov rcx, [rsp+28h+var_10]
xor edx, edx
div qword ptr [rcx]
mov [rsp+28h+var_20], rdx
mov rax, [rsp+28h+var_20]
mov [rsp+28h+var_28], rax
loc_5D2B0:
mov rax, [rsp+28h+var_10]
mov rdi, [rax+8]
mov rsi, [rsp+28h+var_28]
call ggml_bitset_get_0
test al, 1
jnz short loc_5D2F9
mov rax, [rsp+28h+var_10]
mov rdi, [rax+8]
mov rsi, [rsp+28h+var_28]
call ggml_bitset_set_0
mov rdx, [rsp+28h+var_18]
mov rax, [rsp+28h+var_10]
mov rax, [rax+10h]
mov rcx, [rsp+28h+var_28]
mov [rax+rcx*8], rdx
mov rax, [rsp+28h+var_28]
mov [rsp+28h+var_8], rax
jmp short loc_5D35B
loc_5D2F9:
mov rax, [rsp+28h+var_10]
mov rax, [rax+10h]
mov rcx, [rsp+28h+var_28]
mov rax, [rax+rcx*8]
cmp rax, [rsp+28h+var_18]
jnz short loc_5D31C
mov rax, [rsp+28h+var_28]
mov [rsp+28h+var_8], rax
jmp short loc_5D35B
loc_5D31C:
mov rax, [rsp+28h+var_28]
add rax, 1
mov rcx, [rsp+28h+var_10]
xor edx, edx
div qword ptr [rcx]
mov [rsp+28h+var_28], rdx
mov rax, [rsp+28h+var_28]
cmp rax, [rsp+28h+var_20]
jnz loc_5D2B0
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
mov esi, 114h
lea rdx, aFatalError; "fatal error"
mov al, 0
call _ggml_abort
loc_5D35B:
mov rax, [rsp+28h+var_8]
add rsp, 28h
retn
| unsigned long long ggml_hash_find_or_insert(_QWORD *a1, long long a2)
{
unsigned long long v3; // [rsp+0h] [rbp-28h]
unsigned long long v4; // [rsp+8h] [rbp-20h]
v4 = (unsigned long long)ggml_hash_0(a2) % *a1;
v3 = v4;
while ( 1 )
{
if ( (ggml_bitset_get_0(a1[1], v3) & 1) == 0 )
{
ggml_bitset_set_0(a1[1], v3);
*(_QWORD *)(a1[2] + 8 * v3) = a2;
return v3;
}
if ( *(_QWORD *)(a1[2] + 8 * v3) == a2 )
break;
v3 = (v3 + 1) % *a1;
if ( v3 == v4 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/ggml-impl.h",
276,
(long long)"fatal error");
}
return v3;
}
| ggml_hash_find_or_insert:
SUB RSP,0x28
MOV qword ptr [RSP + 0x18],RDI
MOV qword ptr [RSP + 0x10],RSI
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x0015d370
MOV RCX,qword ptr [RSP + 0x18]
XOR EDX,EDX
DIV qword ptr [RCX]
MOV qword ptr [RSP + 0x8],RDX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP],RAX
LAB_0015d2b0:
MOV RAX,qword ptr [RSP + 0x18]
MOV RDI,qword ptr [RAX + 0x8]
MOV RSI,qword ptr [RSP]
CALL 0x0015d380
TEST AL,0x1
JNZ 0x0015d2f9
MOV RAX,qword ptr [RSP + 0x18]
MOV RDI,qword ptr [RAX + 0x8]
MOV RSI,qword ptr [RSP]
CALL 0x0015d3c0
MOV RDX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RSP]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV RAX,qword ptr [RSP]
MOV qword ptr [RSP + 0x20],RAX
JMP 0x0015d35b
LAB_0015d2f9:
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RSP]
MOV RAX,qword ptr [RAX + RCX*0x8]
CMP RAX,qword ptr [RSP + 0x10]
JNZ 0x0015d31c
MOV RAX,qword ptr [RSP]
MOV qword ptr [RSP + 0x20],RAX
JMP 0x0015d35b
LAB_0015d31c:
MOV RAX,qword ptr [RSP]
ADD RAX,0x1
MOV RCX,qword ptr [RSP + 0x18]
XOR EDX,EDX
DIV qword ptr [RCX]
MOV qword ptr [RSP],RDX
MOV RAX,qword ptr [RSP]
CMP RAX,qword ptr [RSP + 0x8]
JNZ 0x0015d2b0
LEA RDI,[0x1b679b]
MOV ESI,0x114
LEA RDX,[0x1b6573]
MOV AL,0x0
CALL 0x00146770
LAB_0015d35b:
MOV RAX,qword ptr [RSP + 0x20]
ADD RSP,0x28
RET
|
ulong ggml_hash_find_or_insert(ulong *param_1,long param_2)
{
ulong uVar1;
ulong uVar2;
ulong uVar3;
ulong local_28;
ulong local_8;
uVar2 = ggml_hash(param_2);
uVar1 = *param_1;
local_28 = uVar2 % uVar1;
while( true ) {
uVar3 = ggml_bitset_get(param_1[1],local_28);
if ((uVar3 & 1) == 0) {
ggml_bitset_set(param_1[1],local_28);
*(long *)(param_1[2] + local_28 * 8) = param_2;
return local_28;
}
if (*(long *)(param_1[2] + local_28 * 8) == param_2) break;
local_28 = (local_28 + 1) % *param_1;
if (local_28 == uVar2 % uVar1) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/ggml/src/ggml-impl.h",
0x114,"fatal error");
return local_8;
}
}
return local_28;
}
| |
28,108 | wsrep::server_state::resume_and_resync() | eloqsql/wsrep-lib/src/server_state.cpp | void wsrep::server_state::resume_and_resync()
{
wsrep::log_info() << "Resuming and resyncing the provider";
try
{
// Assign desynced_on_pause_ to local variable before resuming
// in order to avoid concurrent access to desynced_on_pause_ member
// variable.
bool do_resync = desynced_on_pause_;
desynced_on_pause_ = false;
resume();
if (do_resync)
{
resync();
}
}
catch (const wsrep::runtime_error& e)
{
wsrep::log_warning()
<< "Resume and resync failed, server may have to be restarted";
}
} | O0 | cpp | wsrep::server_state::resume_and_resync():
pushq %rbp
movq %rsp, %rbp
subq $0x350, %rsp # imm = 0x350
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x320(%rbp)
movq -0x320(%rbp), %rax
movq %rax, -0x348(%rbp)
leaq -0x190(%rbp), %rdi
movq %rdi, -0x340(%rbp)
callq 0xd41660
movq -0x340(%rbp), %rdi
leaq 0xbbb05(%rip), %rsi # 0xe09673
callq 0xd547b0
jmp 0xd4db75
leaq -0x190(%rbp), %rdi
callq 0xd416c0
movq -0x348(%rbp), %rdi
movb 0xa8(%rdi), %al
andb $0x1, %al
movb %al, -0x32d(%rbp)
movb $0x0, 0xa8(%rdi)
callq 0xd4d660
jmp 0xd4dba4
testb $0x1, -0x32d(%rbp)
je 0xd4dc6e
movq -0x348(%rbp), %rdi
callq 0xd49cd0
jmp 0xd4dbbf
jmp 0xd4dc6e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x328(%rbp)
movl %eax, -0x32c(%rbp)
leaq -0x190(%rbp), %rdi
callq 0xd416c0
jmp 0xd4dcab
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x328(%rbp)
movl %eax, -0x32c(%rbp)
movl -0x32c(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0xd4dcab
movq -0x328(%rbp), %rdi
callq 0x433120
movq %rax, -0x338(%rbp)
leaq -0x318(%rbp), %rdi
callq 0xd49b00
jmp 0xd4dc2d
leaq 0xbba63(%rip), %rsi # 0xe09697
leaq -0x318(%rbp), %rdi
callq 0xd41690
jmp 0xd4dc42
leaq -0x318(%rbp), %rdi
callq 0xd49b60
callq 0x434390
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xd4dcdf
addq $0x350, %rsp # imm = 0x350
popq %rbp
retq
jmp 0xd4dc53
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x328(%rbp)
movl %eax, -0x32c(%rbp)
jmp 0xd4dca2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x328(%rbp)
movl %eax, -0x32c(%rbp)
leaq -0x318(%rbp), %rdi
callq 0xd49b60
callq 0x434390
jmp 0xd4dca9
jmp 0xd4dcab
movq -0x328(%rbp), %rax
movq %rax, -0x350(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xd4dcdf
movq -0x350(%rbp), %rdi
callq 0x433ff0
movq %rax, %rdi
callq 0x48dca0
callq 0x433650
nopw %cs:(%rax,%rax)
| _ZN5wsrep12server_state17resume_and_resyncEv:
push rbp
mov rbp, rsp
sub rsp, 350h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_320], rdi
mov rax, [rbp+var_320]
mov [rbp+var_348], rax
lea rdi, [rbp+var_190]; this
mov [rbp+var_340], rdi
call _ZN5wsrep8log_infoC2Ev; wsrep::log_info::log_info(void)
mov rdi, [rbp+var_340]
lea rsi, aResumingAndRes; "Resuming and resyncing the provider"
call _ZN5wsrep3loglsIA36_cEERSoRKT_; wsrep::log::operator<<<char [36]>(char [36] const&)
jmp short $+2
loc_D4DB75:
lea rdi, [rbp+var_190]; this
call _ZN5wsrep8log_infoD2Ev; wsrep::log_info::~log_info()
mov rdi, [rbp+var_348]; this
mov al, [rdi+0A8h]
and al, 1
mov [rbp+var_32D], al
mov byte ptr [rdi+0A8h], 0
call _ZN5wsrep12server_state6resumeEv; wsrep::server_state::resume(void)
jmp short $+2
loc_D4DBA4:
test [rbp+var_32D], 1
jz loc_D4DC6E
mov rdi, [rbp+var_348]; this
call _ZN5wsrep12server_state6resyncEv; wsrep::server_state::resync(void)
jmp short $+2
loc_D4DBBF:
jmp loc_D4DC6E
mov rcx, rax
mov eax, edx
mov [rbp+var_328], rcx
mov [rbp+var_32C], eax
lea rdi, [rbp+var_190]; this
call _ZN5wsrep8log_infoD2Ev; wsrep::log_info::~log_info()
jmp loc_D4DCAB
mov rcx, rax
mov eax, edx
mov [rbp+var_328], rcx
mov [rbp+var_32C], eax
mov eax, [rbp+var_32C]
mov ecx, 1
cmp eax, ecx
jnz loc_D4DCAB
mov rdi, [rbp+var_328]; void *
call ___cxa_begin_catch
mov [rbp+var_338], rax
lea rdi, [rbp+var_318]; this
call _ZN5wsrep11log_warningC2Ev; wsrep::log_warning::log_warning(void)
jmp short $+2
loc_D4DC2D:
lea rsi, aResumeAndResyn; "Resume and resync failed, server may ha"...
lea rdi, [rbp+var_318]
call _ZN5wsrep3loglsIA58_cEERSoRKT_; wsrep::log::operator<<<char [58]>(char [58] const&)
jmp short $+2
loc_D4DC42:
lea rdi, [rbp+var_318]; this
call _ZN5wsrep11log_warningD2Ev; wsrep::log_warning::~log_warning()
call ___cxa_end_catch
loc_D4DC53:
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_D4DCDF
add rsp, 350h
pop rbp
retn
loc_D4DC6E:
jmp short loc_D4DC53
mov rcx, rax
mov eax, edx
mov [rbp+var_328], rcx
mov [rbp+var_32C], eax
jmp short loc_D4DCA2
mov rcx, rax
mov eax, edx
mov [rbp+var_328], rcx
mov [rbp+var_32C], eax
lea rdi, [rbp+var_318]; this
call _ZN5wsrep11log_warningD2Ev; wsrep::log_warning::~log_warning()
loc_D4DCA2:
call ___cxa_end_catch
jmp short $+2
loc_D4DCA9:
jmp short $+2
loc_D4DCAB:
mov rax, [rbp+var_328]
mov [rbp+var_350], rax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_D4DCDF
mov rdi, [rbp+var_350]
call __Unwind_Resume
mov rdi, rax
call __clang_call_terminate
loc_D4DCDF:
call ___stack_chk_fail
| unsigned long long wsrep::server_state::resume_and_resync(wsrep::server_state *this)
{
char v2; // [rsp+23h] [rbp-32Dh]
_BYTE v3[392]; // [rsp+1C0h] [rbp-190h] BYREF
unsigned long long v4; // [rsp+348h] [rbp-8h]
v4 = __readfsqword(0x28u);
wsrep::log_info::log_info((wsrep::log_info *)v3);
wsrep::log::operator<<<char [36]>(v3, "Resuming and resyncing the provider");
wsrep::log_info::~log_info((wsrep::log_info *)v3);
v2 = *((_BYTE *)this + 168) & 1;
*((_BYTE *)this + 168) = 0;
wsrep::server_state::resume(this);
if ( (v2 & 1) != 0 )
wsrep::server_state::resync(this);
return __readfsqword(0x28u);
}
| my_hash_sort_latin1_de:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV RAX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x40],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x00d4dc40
MOV qword ptr [RBP + -0x30],RAX
LAB_00d4db63:
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x30]
JNC 0x00d4dc21
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX]
MOV EAX,EAX
MOV ECX,EAX
LEA RAX,[0x1105540]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV dword ptr [RBP + -0x44],EAX
MOV RAX,qword ptr [RBP + -0x38]
AND RAX,0x3f
ADD RAX,qword ptr [RBP + -0x40]
MOV ECX,dword ptr [RBP + -0x44]
IMUL RAX,RCX
MOV RCX,qword ptr [RBP + -0x38]
SHL RCX,0x8
ADD RAX,RCX
XOR RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,0x3
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x1105640]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV dword ptr [RBP + -0x44],EAX
CMP EAX,0x0
JZ 0x00d4dc0e
JMP 0x00d4dbda
LAB_00d4dbda:
MOV RAX,qword ptr [RBP + -0x38]
AND RAX,0x3f
ADD RAX,qword ptr [RBP + -0x40]
MOV ECX,dword ptr [RBP + -0x44]
IMUL RAX,RCX
MOV RCX,qword ptr [RBP + -0x38]
SHL RCX,0x8
ADD RAX,RCX
XOR RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,0x3
MOV qword ptr [RBP + -0x40],RAX
JMP 0x00d4dc0e
LAB_00d4dc0e:
JMP 0x00d4dc10
LAB_00d4dc10:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x1
MOV qword ptr [RBP + -0x10],RAX
JMP 0x00d4db63
LAB_00d4dc21:
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RAX],RCX
ADD RSP,0x50
POP RBP
RET
|
void my_hash_sort_latin1_de
(int8 param_1,byte *param_2,int8 param_3,ulong *param_4,long *param_5)
{
long lVar1;
byte *pbVar2;
long local_48;
ulong local_40;
byte *local_18;
local_40 = *param_4;
local_48 = *param_5;
pbVar2 = (byte *)skip_trailing_space(param_2,param_3);
for (local_18 = param_2; local_18 < pbVar2; local_18 = local_18 + 1) {
local_40 = ((local_40 & 0x3f) + local_48) * (ulong)(byte)combo1map[*local_18] + local_40 * 0x100
^ local_40;
lVar1 = local_48 + 3;
if ((byte)combo2map[*local_18] != 0) {
local_40 = ((local_40 & 0x3f) + local_48 + 3) * (ulong)(uint)(byte)combo2map[*local_18] +
local_40 * 0x100 ^ local_40;
lVar1 = local_48 + 6;
}
local_48 = lVar1;
}
*param_4 = local_40;
*param_5 = local_48;
return;
}
| |
28,109 | minja::ExpressionNode::~ExpressionNode() | monkey531[P]llama/common/./minja.hpp | ExpressionNode(const Location & location, std::shared_ptr<Expression> && e) : TemplateNode(location), expr(std::move(e)) {} | O3 | cpp | minja::ExpressionNode::~ExpressionNode():
pushq %rbx
movq %rdi, %rbx
leaq 0x8da3f(%rip), %rax # 0xef2c8
movq %rax, (%rdi)
movq 0x28(%rdi), %rdi
testq %rdi, %rdi
je 0x6189a
callq 0x2f80e
leaq 0x8d747(%rip), %rax # 0xeefe8
movq %rax, (%rbx)
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x618b3
popq %rbx
jmp 0x2f80e
popq %rbx
retq
nop
| _ZN5minja14ExpressionNodeD2Ev:
push rbx
mov rbx, rdi
lea rax, off_EF2C8
mov [rdi], rax
mov rdi, [rdi+28h]
test rdi, rdi
jz short loc_6189A
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_6189A:
lea rax, off_EEFE8
mov [rbx], rax
mov rdi, [rbx+10h]
test rdi, rdi
jz short loc_618B3
pop rbx
jmp _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_618B3:
pop rbx
retn
| void minja::ExpressionNode::~ExpressionNode(minja::ExpressionNode *this)
{
volatile signed __int32 *v2; // rdi
volatile signed __int32 *v3; // rdi
*(_QWORD *)this = &off_EF2C8;
v2 = (volatile signed __int32 *)*((_QWORD *)this + 5);
if ( v2 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v2);
*(_QWORD *)this = &off_EEFE8;
v3 = (volatile signed __int32 *)*((_QWORD *)this + 2);
if ( v3 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3);
}
| ~ExpressionNode:
PUSH RBX
MOV RBX,RDI
LEA RAX,[0x1ef2c8]
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x28]
TEST RDI,RDI
JZ 0x0016189a
CALL 0x0012f80e
LAB_0016189a:
LEA RAX,[0x1eefe8]
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RBX + 0x10]
TEST RDI,RDI
JZ 0x001618b3
POP RBX
JMP 0x0012f80e
LAB_001618b3:
POP RBX
RET
|
/* minja::ExpressionNode::~ExpressionNode() */
void __thiscall minja::ExpressionNode::~ExpressionNode(ExpressionNode *this)
{
*(int ***)this = &PTR_do_render_001ef2c8;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x28));
}
*(int ***)this = &PTR___cxa_pure_virtual_001eefe8;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10) !=
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release
(*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10));
return;
}
return;
}
| |
28,110 | file_rename | tsotchke[P]eshkol/src/core/utils/file_io.c | bool file_rename(const char* old_path, const char* new_path) {
assert(old_path != NULL);
assert(new_path != NULL);
// Rename the file
if (rename(old_path, new_path) != 0) {
set_last_error(errno_to_file_error(errno));
return false;
}
set_last_error(FILE_ERROR_NONE);
return true;
} | O0 | c | file_rename:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x5059
jmp 0x5078
leaq 0x2e94(%rip), %rdi # 0x7ef4
leaq 0x2d6a(%rip), %rsi # 0x7dd1
movl $0x175, %edx # imm = 0x175
leaq 0x2e92(%rip), %rcx # 0x7f05
callq 0x2170
cmpq $0x0, -0x18(%rbp)
je 0x5081
jmp 0x50a0
leaq 0x2eab(%rip), %rdi # 0x7f33
leaq 0x2d42(%rip), %rsi # 0x7dd1
movl $0x176, %edx # imm = 0x176
leaq 0x2e6a(%rip), %rcx # 0x7f05
callq 0x2170
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x22c0
cmpl $0x0, %eax
je 0x50cb
callq 0x2060
movl (%rax), %edi
callq 0x4940
movl %eax, %edi
callq 0x4920
movb $0x0, -0x1(%rbp)
jmp 0x50d6
xorl %edi, %edi
callq 0x4920
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| file_rename:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
cmp [rbp+var_10], 0
jz short loc_5059
jmp short loc_5078
loc_5059:
lea rdi, aOldPathNull; "old_path != NULL"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov edx, 175h
lea rcx, aBoolFileRename; "_Bool file_rename(const char *, const c"...
call ___assert_fail
loc_5078:
cmp [rbp+var_18], 0
jz short loc_5081
jmp short loc_50A0
loc_5081:
lea rdi, aNewPathNull; "new_path != NULL"
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"...
mov edx, 176h
lea rcx, aBoolFileRename; "_Bool file_rename(const char *, const c"...
call ___assert_fail
loc_50A0:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call _rename
cmp eax, 0
jz short loc_50CB
call ___errno_location
mov edi, [rax]
call errno_to_file_error
mov edi, eax
call set_last_error
mov [rbp+var_1], 0
jmp short loc_50D6
loc_50CB:
xor edi, edi
call set_last_error
mov [rbp+var_1], 1
loc_50D6:
mov al, [rbp+var_1]
and al, 1
add rsp, 20h
pop rbp
retn
| char file_rename(long long a1, long long a2)
{
int *v2; // rax
unsigned int v3; // eax
if ( !a1 )
__assert_fail(
"old_path != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/file_io.c",
373LL,
"_Bool file_rename(const char *, const char *)");
if ( !a2 )
__assert_fail(
"new_path != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/core/utils/file_io.c",
374LL,
"_Bool file_rename(const char *, const char *)");
if ( (unsigned int)rename(a1, a2) )
{
v2 = (int *)__errno_location();
v3 = errno_to_file_error(*v2);
set_last_error(v3);
return 0;
}
else
{
set_last_error(0);
return 1;
}
}
| file_rename:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
CMP qword ptr [RBP + -0x10],0x0
JZ 0x00105059
JMP 0x00105078
LAB_00105059:
LEA RDI,[0x107ebe]
LEA RSI,[0x107dad]
MOV EDX,0x175
LEA RCX,[0x107ecf]
CALL 0x00102170
LAB_00105078:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x00105081
JMP 0x001050a0
LAB_00105081:
LEA RDI,[0x107efd]
LEA RSI,[0x107dad]
MOV EDX,0x176
LEA RCX,[0x107ecf]
CALL 0x00102170
LAB_001050a0:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x001022c0
CMP EAX,0x0
JZ 0x001050cb
CALL 0x00102060
MOV EDI,dword ptr [RAX]
CALL 0x00104940
MOV EDI,EAX
CALL 0x00104920
MOV byte ptr [RBP + -0x1],0x0
JMP 0x001050d6
LAB_001050cb:
XOR EDI,EDI
CALL 0x00104920
MOV byte ptr [RBP + -0x1],0x1
LAB_001050d6:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0x20
POP RBP
RET
|
bool file_rename(char *param_1,char *param_2)
{
int iVar1;
int4 uVar2;
int *piVar3;
if (param_1 == (char *)0x0) {
/* WARNING: Subroutine does not return */
__assert_fail("old_path != NULL",
"/workspace/llm4binary/github2025/eshkol/src/core/utils/file_io.c",0x175,
"_Bool file_rename(const char *, const char *)");
}
if (param_2 != (char *)0x0) {
iVar1 = rename(param_1,param_2);
if (iVar1 == 0) {
set_last_error(0);
}
else {
piVar3 = __errno_location();
uVar2 = errno_to_file_error(*piVar3);
set_last_error(uVar2);
}
return iVar1 == 0;
}
/* WARNING: Subroutine does not return */
__assert_fail("new_path != NULL",
"/workspace/llm4binary/github2025/eshkol/src/core/utils/file_io.c",0x176,
"_Bool file_rename(const char *, const char *)");
}
| |
28,111 | set_dynamic | eloqsql/mysys/array.c | my_bool set_dynamic(DYNAMIC_ARRAY *array, const void *element, uint idx)
{
if (idx >= array->elements)
{
if (idx >= array->max_element && allocate_dynamic(array, idx))
return TRUE;
bzero((uchar*) (array->buffer+array->elements*array->size_of_element),
(idx - array->elements)*array->size_of_element);
array->elements=idx+1;
}
memcpy(array->buffer+(idx * array->size_of_element),element,
(size_t) array->size_of_element);
return FALSE;
} | O0 | c | set_dynamic:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jb 0x3bcfa
movl -0x1c(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0xc(%rcx), %eax
jb 0x3bcb5
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %esi
callq 0x3bd30
movsbl %al, %eax
cmpl $0x0, %eax
je 0x3bcb5
movb $0x1, -0x1(%rbp)
jmp 0x3bd27
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x10(%rbp), %rcx
imull 0x14(%rcx), %eax
movl %eax, %eax
addq %rax, %rdi
movl -0x1c(%rbp), %eax
movq -0x10(%rbp), %rcx
subl 0x8(%rcx), %eax
movq -0x10(%rbp), %rcx
imull 0x14(%rcx), %eax
movl %eax, %eax
movl %eax, %edx
xorl %esi, %esi
callq 0x251d0
movl -0x1c(%rbp), %ecx
addl $0x1, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movl -0x1c(%rbp), %eax
movq -0x10(%rbp), %rcx
imull 0x14(%rcx), %eax
movl %eax, %eax
addq %rax, %rdi
movq -0x18(%rbp), %rsi
movq -0x10(%rbp), %rax
movl 0x14(%rax), %eax
movl %eax, %edx
callq 0x25260
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
| set_dynamic:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov eax, [rbp+var_1C]
mov rcx, [rbp+var_10]
cmp eax, [rcx+8]
jb short loc_3BCFA
mov eax, [rbp+var_1C]
mov rcx, [rbp+var_10]
cmp eax, [rcx+0Ch]
jb short loc_3BCB5
mov rdi, [rbp+var_10]
mov esi, [rbp+var_1C]
call allocate_dynamic
movsx eax, al
cmp eax, 0
jz short loc_3BCB5
mov [rbp+var_1], 1
jmp short loc_3BD27
loc_3BCB5:
mov rax, [rbp+var_10]
mov rdi, [rax]
mov rax, [rbp+var_10]
mov eax, [rax+8]
mov rcx, [rbp+var_10]
imul eax, [rcx+14h]
mov eax, eax
add rdi, rax
mov eax, [rbp+var_1C]
mov rcx, [rbp+var_10]
sub eax, [rcx+8]
mov rcx, [rbp+var_10]
imul eax, [rcx+14h]
mov eax, eax
mov edx, eax
xor esi, esi
call _memset
mov ecx, [rbp+var_1C]
add ecx, 1
mov rax, [rbp+var_10]
mov [rax+8], ecx
loc_3BCFA:
mov rax, [rbp+var_10]
mov rdi, [rax]
mov eax, [rbp+var_1C]
mov rcx, [rbp+var_10]
imul eax, [rcx+14h]
mov eax, eax
add rdi, rax
mov rsi, [rbp+var_18]
mov rax, [rbp+var_10]
mov eax, [rax+14h]
mov edx, eax
call _memcpy
mov [rbp+var_1], 0
loc_3BD27:
mov al, [rbp+var_1]
add rsp, 20h
pop rbp
retn
| char set_dynamic(long long a1, long long a2, unsigned int a3)
{
if ( a3 < *(_DWORD *)(a1 + 8) )
goto LABEL_6;
if ( a3 < *(_DWORD *)(a1 + 12) || !(unsigned __int8)allocate_dynamic(a1, a3) )
{
memset(
(unsigned int)(*(_DWORD *)(a1 + 20) * *(_DWORD *)(a1 + 8)) + *(_QWORD *)a1,
0LL,
*(_DWORD *)(a1 + 20) * (a3 - *(_DWORD *)(a1 + 8)));
*(_DWORD *)(a1 + 8) = a3 + 1;
LABEL_6:
memcpy(*(_DWORD *)(a1 + 20) * a3 + *(_QWORD *)a1, a2, *(unsigned int *)(a1 + 20));
return 0;
}
return 1;
}
| set_dynamic:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV EAX,dword ptr [RBP + -0x1c]
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0x8]
JC 0x0013bcfa
MOV EAX,dword ptr [RBP + -0x1c]
MOV RCX,qword ptr [RBP + -0x10]
CMP EAX,dword ptr [RCX + 0xc]
JC 0x0013bcb5
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x1c]
CALL 0x0013bd30
MOVSX EAX,AL
CMP EAX,0x0
JZ 0x0013bcb5
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0013bd27
LAB_0013bcb5:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
IMUL EAX,dword ptr [RCX + 0x14]
MOV EAX,EAX
ADD RDI,RAX
MOV EAX,dword ptr [RBP + -0x1c]
MOV RCX,qword ptr [RBP + -0x10]
SUB EAX,dword ptr [RCX + 0x8]
MOV RCX,qword ptr [RBP + -0x10]
IMUL EAX,dword ptr [RCX + 0x14]
MOV EAX,EAX
MOV EDX,EAX
XOR ESI,ESI
CALL 0x001251d0
MOV ECX,dword ptr [RBP + -0x1c]
ADD ECX,0x1
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x8],ECX
LAB_0013bcfa:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
MOV EAX,dword ptr [RBP + -0x1c]
MOV RCX,qword ptr [RBP + -0x10]
IMUL EAX,dword ptr [RCX + 0x14]
MOV EAX,EAX
ADD RDI,RAX
MOV RSI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x14]
MOV EDX,EAX
CALL 0x00125260
MOV byte ptr [RBP + -0x1],0x0
LAB_0013bd27:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x20
POP RBP
RET
|
int1 set_dynamic(long *param_1,void *param_2,uint param_3)
{
char cVar1;
if (*(uint *)(param_1 + 1) <= param_3) {
if ((*(uint *)((long)param_1 + 0xc) <= param_3) &&
(cVar1 = allocate_dynamic(param_1), cVar1 != '\0')) {
return 1;
}
memset((void *)(*param_1 + (ulong)(uint)((int)param_1[1] * *(int *)((long)param_1 + 0x14))),0,
(ulong)((param_3 - (int)param_1[1]) * *(int *)((long)param_1 + 0x14)));
*(uint *)(param_1 + 1) = param_3 + 1;
}
memcpy((void *)(*param_1 + (ulong)(param_3 * *(int *)((long)param_1 + 0x14))),param_2,
(ulong)*(uint *)((long)param_1 + 0x14));
return 0;
}
| |
28,112 | set_dynamic | eloqsql/mysys/array.c | my_bool set_dynamic(DYNAMIC_ARRAY *array, const void *element, uint idx)
{
if (idx >= array->elements)
{
if (idx >= array->max_element && allocate_dynamic(array, idx))
return TRUE;
bzero((uchar*) (array->buffer+array->elements*array->size_of_element),
(idx - array->elements)*array->size_of_element);
array->elements=idx+1;
}
memcpy(array->buffer+(idx * array->size_of_element),element,
(size_t) array->size_of_element);
return FALSE;
} | O3 | c | set_dynamic:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %r14d
movq %rsi, %rbx
movq %rdi, %r15
movl 0x8(%rdi), %eax
cmpl %edx, %eax
ja 0x32dd2
cmpl %r14d, 0xc(%r15)
ja 0x32daf
movq %r15, %rdi
movl %r14d, %esi
callq 0x32df5
movl %eax, %ecx
movb $0x1, %al
testb %cl, %cl
jne 0x32dea
movl 0x8(%r15), %eax
movl 0x14(%r15), %ecx
movl %r14d, %edx
subl %eax, %edx
imull %ecx, %edx
movl %ecx, %edi
imull %eax, %edi
addq (%r15), %rdi
xorl %esi, %esi
callq 0x241e0
leal 0x1(%r14), %eax
movl %eax, 0x8(%r15)
movl 0x14(%r15), %edx
imull %edx, %r14d
addq (%r15), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x24290
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| set_dynamic:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14d, edx
mov rbx, rsi
mov r15, rdi
mov eax, [rdi+8]
cmp eax, edx
ja short loc_32DD2
cmp [r15+0Ch], r14d
ja short loc_32DAF
mov rdi, r15
mov esi, r14d
call allocate_dynamic
mov ecx, eax
mov al, 1
test cl, cl
jnz short loc_32DEA
mov eax, [r15+8]
loc_32DAF:
mov ecx, [r15+14h]
mov edx, r14d
sub edx, eax
imul edx, ecx
mov edi, ecx
imul edi, eax
add rdi, [r15]
xor esi, esi
call _memset
lea eax, [r14+1]
mov [r15+8], eax
loc_32DD2:
mov edx, [r15+14h]
imul r14d, edx
add r14, [r15]
mov rdi, r14
mov rsi, rbx
call _memcpy
xor eax, eax
loc_32DEA:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| char set_dynamic(long long a1, long long a2, unsigned int a3)
{
unsigned int v4; // eax
char dynamic; // cl
char result; // al
v4 = *(_DWORD *)(a1 + 8);
if ( v4 <= a3 )
{
if ( *(_DWORD *)(a1 + 12) <= a3 )
{
dynamic = allocate_dynamic(a1, a3);
result = 1;
if ( dynamic )
return result;
v4 = *(_DWORD *)(a1 + 8);
}
memset(*(_QWORD *)a1 + v4 * *(_DWORD *)(a1 + 20), 0LL, *(_DWORD *)(a1 + 20) * (a3 - v4));
*(_DWORD *)(a1 + 8) = a3 + 1;
}
memcpy(*(_QWORD *)a1 + *(_DWORD *)(a1 + 20) * a3, a2);
return 0;
}
| set_dynamic:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14D,EDX
MOV RBX,RSI
MOV R15,RDI
MOV EAX,dword ptr [RDI + 0x8]
CMP EAX,EDX
JA 0x00132dd2
CMP dword ptr [R15 + 0xc],R14D
JA 0x00132daf
MOV RDI,R15
MOV ESI,R14D
CALL 0x00132df5
MOV ECX,EAX
MOV AL,0x1
TEST CL,CL
JNZ 0x00132dea
MOV EAX,dword ptr [R15 + 0x8]
LAB_00132daf:
MOV ECX,dword ptr [R15 + 0x14]
MOV EDX,R14D
SUB EDX,EAX
IMUL EDX,ECX
MOV EDI,ECX
IMUL EDI,EAX
ADD RDI,qword ptr [R15]
XOR ESI,ESI
CALL 0x001241e0
LEA EAX,[R14 + 0x1]
MOV dword ptr [R15 + 0x8],EAX
LAB_00132dd2:
MOV EDX,dword ptr [R15 + 0x14]
IMUL R14D,EDX
ADD R14,qword ptr [R15]
MOV RDI,R14
MOV RSI,RBX
CALL 0x00124290
XOR EAX,EAX
LAB_00132dea:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
int8 set_dynamic(long *param_1,void *param_2,uint param_3)
{
char cVar1;
uint uVar2;
uVar2 = *(uint *)(param_1 + 1);
if (uVar2 <= param_3) {
if (*(uint *)((long)param_1 + 0xc) <= param_3) {
cVar1 = allocate_dynamic(param_1);
if (cVar1 != '\0') {
return 1;
}
uVar2 = *(uint *)(param_1 + 1);
}
memset((void *)((ulong)(*(int *)((long)param_1 + 0x14) * uVar2) + *param_1),0,
(ulong)((param_3 - uVar2) * *(int *)((long)param_1 + 0x14)));
*(uint *)(param_1 + 1) = param_3 + 1;
}
memcpy((void *)((ulong)(param_3 * *(uint *)((long)param_1 + 0x14)) + *param_1),param_2,
(ulong)*(uint *)((long)param_1 + 0x14));
return 0;
}
| |
28,113 | google::protobuf::stringpiece_internal::StringPiece::compare(google::protobuf::stringpiece_internal::StringPiece) const | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/stringpiece.h | int compare(StringPiece x) const {
size_type min_size = length_ < x.length_ ? length_ : x.length_;
int r = memcmp(ptr_, x.ptr_, static_cast<size_t>(min_size));
if (r < 0) return -1;
if (r > 0) return 1;
if (length_ < x.length_) return -1;
if (length_ > x.length_) return 1;
return 0;
} | O0 | c | google::protobuf::stringpiece_internal::StringPiece::compare(google::protobuf::stringpiece_internal::StringPiece) const:
subq $0x48, %rsp
movq %rsi, 0x30(%rsp)
movq %rdx, 0x38(%rsp)
movq %rdi, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x8(%rax), %rax
cmpq 0x38(%rsp), %rax
jae 0xf65f8
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x8(%rsp)
jmp 0xf6602
movq 0x38(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rax
movq 0x8(%rsp), %rcx
movq %rcx, 0x20(%rsp)
movq (%rax), %rdi
movq 0x30(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x131c0
movl %eax, 0x1c(%rsp)
cmpl $0x0, 0x1c(%rsp)
jge 0xf6638
movl $0xffffffff, 0x44(%rsp) # imm = 0xFFFFFFFF
jmp 0xf6685
cmpl $0x0, 0x1c(%rsp)
jle 0xf6649
movl $0x1, 0x44(%rsp)
jmp 0xf6685
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
cmpq 0x38(%rsp), %rax
jae 0xf6663
movl $0xffffffff, 0x44(%rsp) # imm = 0xFFFFFFFF
jmp 0xf6685
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
cmpq 0x38(%rsp), %rax
jbe 0xf667d
movl $0x1, 0x44(%rsp)
jmp 0xf6685
movl $0x0, 0x44(%rsp)
movl 0x44(%rsp), %eax
addq $0x48, %rsp
retq
nop
| _ZNK6google8protobuf20stringpiece_internal11StringPiece7compareES2_:
sub rsp, 48h
mov [rsp+48h+var_18], rsi
mov [rsp+48h+var_10], rdx
mov [rsp+48h+var_20], rdi
mov rax, [rsp+48h+var_20]
mov [rsp+48h+var_38], rax
mov rax, [rax+8]
cmp rax, [rsp+48h+var_10]
jnb short loc_F65F8
mov rax, [rsp+48h+var_38]
mov rax, [rax+8]
mov [rsp+48h+var_40], rax
jmp short loc_F6602
loc_F65F8:
mov rax, [rsp+48h+var_10]
mov [rsp+48h+var_40], rax
loc_F6602:
mov rax, [rsp+48h+var_38]
mov rcx, [rsp+48h+var_40]
mov [rsp+48h+var_28], rcx
mov rdi, [rax]
mov rsi, [rsp+48h+var_18]
mov rdx, [rsp+48h+var_28]
call _memcmp
mov [rsp+48h+var_2C], eax
cmp [rsp+48h+var_2C], 0
jge short loc_F6638
mov [rsp+48h+var_4], 0FFFFFFFFh
jmp short loc_F6685
loc_F6638:
cmp [rsp+48h+var_2C], 0
jle short loc_F6649
mov [rsp+48h+var_4], 1
jmp short loc_F6685
loc_F6649:
mov rax, [rsp+48h+var_38]
mov rax, [rax+8]
cmp rax, [rsp+48h+var_10]
jnb short loc_F6663
mov [rsp+48h+var_4], 0FFFFFFFFh
jmp short loc_F6685
loc_F6663:
mov rax, [rsp+48h+var_38]
mov rax, [rax+8]
cmp rax, [rsp+48h+var_10]
jbe short loc_F667D
mov [rsp+48h+var_4], 1
jmp short loc_F6685
loc_F667D:
mov [rsp+48h+var_4], 0
loc_F6685:
mov eax, [rsp+48h+var_4]
add rsp, 48h
retn
| long long google::protobuf::stringpiece_internal::StringPiece::compare(
_QWORD *a1,
long long a2,
unsigned long long a3)
{
unsigned long long v4; // [rsp+8h] [rbp-40h]
int v5; // [rsp+1Ch] [rbp-2Ch]
if ( a1[1] >= a3 )
v4 = a3;
else
v4 = a1[1];
v5 = memcmp(*a1, a2, v4);
if ( v5 >= 0 )
{
if ( v5 <= 0 )
{
if ( a1[1] >= a3 )
return a1[1] > a3;
else
return (unsigned int)-1;
}
else
{
return 1;
}
}
else
{
return (unsigned int)-1;
}
}
| compare:
SUB RSP,0x48
MOV qword ptr [RSP + 0x30],RSI
MOV qword ptr [RSP + 0x38],RDX
MOV qword ptr [RSP + 0x28],RDI
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RAX + 0x8]
CMP RAX,qword ptr [RSP + 0x38]
JNC 0x001f65f8
MOV RAX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RAX
JMP 0x001f6602
LAB_001f65f8:
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x8],RAX
LAB_001f6602:
MOV RAX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x20],RCX
MOV RDI,qword ptr [RAX]
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x20]
CALL 0x001131c0
MOV dword ptr [RSP + 0x1c],EAX
CMP dword ptr [RSP + 0x1c],0x0
JGE 0x001f6638
MOV dword ptr [RSP + 0x44],0xffffffff
JMP 0x001f6685
LAB_001f6638:
CMP dword ptr [RSP + 0x1c],0x0
JLE 0x001f6649
MOV dword ptr [RSP + 0x44],0x1
JMP 0x001f6685
LAB_001f6649:
MOV RAX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RAX + 0x8]
CMP RAX,qword ptr [RSP + 0x38]
JNC 0x001f6663
MOV dword ptr [RSP + 0x44],0xffffffff
JMP 0x001f6685
LAB_001f6663:
MOV RAX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RAX + 0x8]
CMP RAX,qword ptr [RSP + 0x38]
JBE 0x001f667d
MOV dword ptr [RSP + 0x44],0x1
JMP 0x001f6685
LAB_001f667d:
MOV dword ptr [RSP + 0x44],0x0
LAB_001f6685:
MOV EAX,dword ptr [RSP + 0x44]
ADD RSP,0x48
RET
|
/* google::protobuf::stringpiece_internal::StringPiece::compare(google::protobuf::stringpiece_internal::StringPiece)
const */
int4
google::protobuf::stringpiece_internal::StringPiece::compare
(int8 *param_1,void *param_2,ulong param_3)
{
int iVar1;
size_t local_40;
int4 local_4;
local_40 = param_3;
if ((ulong)param_1[1] < param_3) {
local_40 = param_1[1];
}
iVar1 = memcmp((void *)*param_1,param_2,local_40);
if (iVar1 < 0) {
local_4 = 0xffffffff;
}
else if (iVar1 < 1) {
if ((ulong)param_1[1] < param_3) {
local_4 = 0xffffffff;
}
else if (param_3 < (ulong)param_1[1]) {
local_4 = 1;
}
else {
local_4 = 0;
}
}
else {
local_4 = 1;
}
return local_4;
}
| |
28,114 | Item_func_match::val_real() | eloqsql/sql/item_func.cc | double Item_func_match::val_real()
{
DBUG_ASSERT(fixed());
DBUG_ENTER("Item_func_match::val");
if (ft_handler == NULL)
DBUG_RETURN(-1.0);
if (key != NO_SUCH_KEY && table->null_row) /* NULL row from an outer join */
DBUG_RETURN(0.0);
if (join_key)
{
if (table->file->ft_handler)
DBUG_RETURN(ft_handler->please->get_relevance(ft_handler));
join_key=0;
}
if (key == NO_SUCH_KEY)
{
String *a= concat_ws->val_str(&value);
if ((null_value= (a == 0)) || !a->length())
DBUG_RETURN(0);
DBUG_RETURN(ft_handler->please->find_relevance(ft_handler,
(uchar *)a->ptr(), a->length()));
}
DBUG_RETURN(ft_handler->please->find_relevance(ft_handler,
table->record[0], 0));
} | O0 | cpp | Item_func_match::val_real():
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
jmp 0xd93366
movq -0x20(%rbp), %rax
cmpq $0x0, 0xc8(%rax)
jne 0xd93388
jmp 0xd93376
movsd 0x718712(%rip), %xmm0 # 0x14aba90
movsd %xmm0, -0x8(%rbp)
jmp 0xd9350c
movq -0x20(%rbp), %rax
cmpl $-0x1, 0xa8(%rax)
je 0xd933b8
movq -0x20(%rbp), %rax
movq 0xd0(%rax), %rax
testb $0x1, 0x2a6(%rax)
je 0xd933b8
jmp 0xd933ab
xorps %xmm0, %xmm0
movsd %xmm0, -0x8(%rbp)
jmp 0xd9350c
movq -0x20(%rbp), %rax
testb $0x1, 0xb0(%rax)
je 0xd93414
movq -0x20(%rbp), %rax
movq 0xd0(%rax), %rax
movq 0x8(%rax), %rax
cmpq $0x0, 0x1a8(%rax)
je 0xd93409
jmp 0xd933e0
movq -0x20(%rbp), %rcx
movq 0xc8(%rcx), %rax
movq (%rax), %rax
movq 0x18(%rax), %rax
movq 0xc8(%rcx), %rdi
callq *%rax
cvtss2sd %xmm0, %xmm0
movsd %xmm0, -0x8(%rbp)
jmp 0xd9350c
movq -0x20(%rbp), %rax
movb $0x0, 0xb0(%rax)
movq -0x20(%rbp), %rax
cmpl $-0x1, 0xa8(%rax)
jne 0xd934d9
movq -0x20(%rbp), %rsi
movq 0xe0(%rsi), %rdi
addq $0xe8, %rsi
movq (%rdi), %rax
callq *0x108(%rax)
movq -0x20(%rbp), %rcx
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
sete %al
movb %al, %dl
andb $0x1, %dl
movb %dl, 0x64(%rcx)
testb $0x1, %al
jne 0xd9346e
movq -0x18(%rbp), %rdi
addq $0x8, %rdi
callq 0x81be40
cmpl $0x0, %eax
jne 0xd9347d
jmp 0xd93470
xorps %xmm0, %xmm0
movsd %xmm0, -0x8(%rbp)
jmp 0xd9350c
jmp 0xd9347f
movq -0x20(%rbp), %rax
movq 0xc8(%rax), %rcx
movq (%rcx), %rcx
movq 0x8(%rcx), %rcx
movq %rcx, -0x28(%rbp)
movq 0xc8(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rdi
addq $0x8, %rdi
callq 0x81bf20
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rdi
addq $0x8, %rdi
callq 0x81be40
movq -0x38(%rbp), %rdi
movq -0x30(%rbp), %rsi
movl %eax, %edx
movq -0x28(%rbp), %rax
callq *%rax
cvtss2sd %xmm0, %xmm0
movsd %xmm0, -0x8(%rbp)
jmp 0xd9350c
jmp 0xd934db
movq -0x20(%rbp), %rcx
movq 0xc8(%rcx), %rax
movq (%rax), %rax
movq 0x8(%rax), %rax
movq 0xc8(%rcx), %rdi
movq 0xd0(%rcx), %rcx
movq 0x50(%rcx), %rsi
xorl %edx, %edx
callq *%rax
cvtss2sd %xmm0, %xmm0
movsd %xmm0, -0x8(%rbp)
movsd -0x8(%rbp), %xmm0
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| _ZN15Item_func_match8val_realEv:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov [rbp+var_20], rax
jmp short $+2
loc_D93366:
mov rax, [rbp+var_20]
cmp qword ptr [rax+0C8h], 0
jnz short loc_D93388
jmp short $+2
loc_D93376:
movsd xmm0, cs:qword_14ABA90
movsd [rbp+var_8], xmm0
jmp loc_D9350C
loc_D93388:
mov rax, [rbp+var_20]
cmp dword ptr [rax+0A8h], 0FFFFFFFFh
jz short loc_D933B8
mov rax, [rbp+var_20]
mov rax, [rax+0D0h]
test byte ptr [rax+2A6h], 1
jz short loc_D933B8
jmp short $+2
loc_D933AB:
xorps xmm0, xmm0
movsd [rbp+var_8], xmm0
jmp loc_D9350C
loc_D933B8:
mov rax, [rbp+var_20]
test byte ptr [rax+0B0h], 1
jz short loc_D93414
mov rax, [rbp+var_20]
mov rax, [rax+0D0h]
mov rax, [rax+8]
cmp qword ptr [rax+1A8h], 0
jz short loc_D93409
jmp short $+2
loc_D933E0:
mov rcx, [rbp+var_20]
mov rax, [rcx+0C8h]
mov rax, [rax]
mov rax, [rax+18h]
mov rdi, [rcx+0C8h]
call rax
cvtss2sd xmm0, xmm0
movsd [rbp+var_8], xmm0
jmp loc_D9350C
loc_D93409:
mov rax, [rbp+var_20]
mov byte ptr [rax+0B0h], 0
loc_D93414:
mov rax, [rbp+var_20]
cmp dword ptr [rax+0A8h], 0FFFFFFFFh
jnz loc_D934D9
mov rsi, [rbp+var_20]
mov rdi, [rsi+0E0h]
add rsi, 0E8h
mov rax, [rdi]
call qword ptr [rax+108h]
mov rcx, [rbp+var_20]
mov [rbp+var_18], rax
cmp [rbp+var_18], 0
setz al
mov dl, al
and dl, 1
mov [rcx+64h], dl
test al, 1
jnz short loc_D9346E
mov rdi, [rbp+var_18]
add rdi, 8; this
call _ZNK13Binary_string6lengthEv; Binary_string::length(void)
cmp eax, 0
jnz short loc_D9347D
loc_D9346E:
jmp short $+2
loc_D93470:
xorps xmm0, xmm0
movsd [rbp+var_8], xmm0
jmp loc_D9350C
loc_D9347D:
jmp short $+2
loc_D9347F:
mov rax, [rbp+var_20]
mov rcx, [rax+0C8h]
mov rcx, [rcx]
mov rcx, [rcx+8]
mov [rbp+var_28], rcx
mov rax, [rax+0C8h]
mov [rbp+var_38], rax
mov rdi, [rbp+var_18]
add rdi, 8; this
call _ZNK13Binary_string3ptrEv; Binary_string::ptr(void)
mov [rbp+var_30], rax
mov rdi, [rbp+var_18]
add rdi, 8; this
call _ZNK13Binary_string6lengthEv; Binary_string::length(void)
mov rdi, [rbp+var_38]
mov rsi, [rbp+var_30]
mov edx, eax
mov rax, [rbp+var_28]
call rax
cvtss2sd xmm0, xmm0
movsd [rbp+var_8], xmm0
jmp short loc_D9350C
loc_D934D9:
jmp short $+2
loc_D934DB:
mov rcx, [rbp+var_20]
mov rax, [rcx+0C8h]
mov rax, [rax]
mov rax, [rax+8]
mov rdi, [rcx+0C8h]
mov rcx, [rcx+0D0h]
mov rsi, [rcx+50h]
xor edx, edx
call rax
cvtss2sd xmm0, xmm0
movsd [rbp+var_8], xmm0
loc_D9350C:
movsd xmm0, [rbp+var_8]
add rsp, 40h
pop rbp
retn
| double Item_func_match::val_real(Item_func_match *this)
{
unsigned int v1; // eax
long long v3; // [rsp+8h] [rbp-38h]
long long v4; // [rsp+10h] [rbp-30h]
float ( *v5)(long long, long long, _QWORD); // [rsp+18h] [rbp-28h]
long long v6; // [rsp+28h] [rbp-18h]
if ( !*((_QWORD *)this + 25) )
return -1.0;
if ( *((_DWORD *)this + 42) != -1 && (*(_BYTE *)(*((_QWORD *)this + 26) + 678LL) & 1) != 0 )
return 0.0;
if ( (*((_BYTE *)this + 176) & 1) != 0 )
{
if ( *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 26) + 8LL) + 424LL) )
return (*(float ( **)(_QWORD))(**((_QWORD **)this + 25) + 24LL))(*((_QWORD *)this + 25));
*((_BYTE *)this + 176) = 0;
}
if ( *((_DWORD *)this + 42) != -1 )
return (*(float ( **)(_QWORD, _QWORD, _QWORD))(**((_QWORD **)this + 25) + 8LL))(
*((_QWORD *)this + 25),
*(_QWORD *)(*((_QWORD *)this + 26) + 80LL),
0LL);
v6 = (*(long long ( **)(_QWORD, char *))(**((_QWORD **)this + 28) + 264LL))(
*((_QWORD *)this + 28),
(char *)this + 232);
*((_BYTE *)this + 100) = v6 == 0;
if ( !v6 || !(unsigned int)Binary_string::length((Binary_string *)(v6 + 8)) )
return 0.0;
v5 = *(float ( **)(long long, long long, _QWORD))(**((_QWORD **)this + 25) + 8LL);
v3 = *((_QWORD *)this + 25);
v4 = Binary_string::ptr((Binary_string *)(v6 + 8));
v1 = Binary_string::length((Binary_string *)(v6 + 8));
return v5(v3, v4, v1);
}
| get_item_copy<Item_func_istrue>:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00e1f2e0
MOV RSI,RAX
MOV qword ptr [RBP + -0x48],RSI
MOV EDI,0xb8
CALL 0x0097dea0
MOV RCX,RAX
MOV qword ptr [RBP + -0x40],RCX
MOV byte ptr [RBP + -0x19],0x0
XOR EAX,EAX
CMP RCX,0x0
MOV qword ptr [RBP + -0x38],RAX
JZ 0x00d933ae
MOV RDI,qword ptr [RBP + -0x40]
MOV byte ptr [RBP + -0x19],0x1
MOV RSI,qword ptr [RBP + -0x10]
LAB_00d9339d:
CALL 0x00d93410
LAB_00d933a2:
JMP 0x00d933a4
LAB_00d933a4:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x38],RAX
JMP 0x00d933ae
LAB_00d933ae:
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x18],RAX
CMP qword ptr [RBP + -0x18],0x0
JZ 0x00d933ef
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x8]
CALL 0x00e3b790
JMP 0x00d933ef
LAB_00d933ef:
MOV RAX,qword ptr [RBP + -0x18]
ADD RSP,0x50
POP RBP
RET
|
/* Item* get_item_copy<Item_func_istrue>(THD*, Item_func_istrue*) */
Item * get_item_copy<Item_func_istrue>(THD *param_1,Item_func_istrue *param_2)
{
st_mem_root *psVar1;
Item_func_istrue *this;
int8 local_40;
psVar1 = (st_mem_root *)get_thd_memroot(param_1);
this = (Item_func_istrue *)Item::operator_new(0xb8,psVar1);
local_40 = (Item *)0x0;
if (this != (Item_func_istrue *)0x0) {
/* try { // try from 00d9339d to 00d933a1 has its CatchHandler @ 00d933cc */
Item_func_istrue::Item_func_istrue(this,param_2);
local_40 = (Item *)this;
}
if (local_40 != (Item *)0x0) {
Item::register_in(local_40,param_1);
}
return local_40;
}
| |
28,115 | Item_func_match::val_real() | eloqsql/sql/item_func.cc | double Item_func_match::val_real()
{
DBUG_ASSERT(fixed());
DBUG_ENTER("Item_func_match::val");
if (ft_handler == NULL)
DBUG_RETURN(-1.0);
if (key != NO_SUCH_KEY && table->null_row) /* NULL row from an outer join */
DBUG_RETURN(0.0);
if (join_key)
{
if (table->file->ft_handler)
DBUG_RETURN(ft_handler->please->get_relevance(ft_handler));
join_key=0;
}
if (key == NO_SUCH_KEY)
{
String *a= concat_ws->val_str(&value);
if ((null_value= (a == 0)) || !a->length())
DBUG_RETURN(0);
DBUG_RETURN(ft_handler->please->find_relevance(ft_handler,
(uchar *)a->ptr(), a->length()));
}
DBUG_RETURN(ft_handler->please->find_relevance(ft_handler,
table->record[0], 0));
} | O3 | cpp | Item_func_match::val_real():
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0xc8(%rdi), %rdi
testq %rdi, %rdi
je 0x9e21e3
movl 0xa8(%rbx), %eax
cmpl $-0x1, %eax
je 0x9e21bd
movq 0xd0(%rbx), %rcx
xorps %xmm0, %xmm0
cmpb $0x0, 0x2a6(%rcx)
jne 0x9e2210
cmpb $0x1, 0xb0(%rbx)
jne 0x9e21f4
movq 0xd0(%rbx), %rcx
movq 0x8(%rcx), %rcx
cmpq $0x0, 0x1a8(%rcx)
je 0x9e21ed
movq (%rdi), %rax
callq *0x18(%rax)
jmp 0x9e220c
movsd 0x449efd(%rip), %xmm0 # 0xe2c0e8
jmp 0x9e2210
movb $0x0, 0xb0(%rbx)
cmpl $-0x1, %eax
je 0x9e2217
movq (%rdi), %rax
movq 0xd0(%rbx), %rcx
movq 0x50(%rcx), %rsi
xorl %edx, %edx
callq *0x8(%rax)
cvtss2sd %xmm0, %xmm0
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0xe0(%rbx), %rdi
leaq 0xe8(%rbx), %rsi
movq (%rdi), %rax
callq *0x108(%rax)
xorps %xmm0, %xmm0
testq %rax, %rax
sete 0x64(%rbx)
je 0x9e2210
movl 0x10(%rax), %edx
testl %edx, %edx
je 0x9e2210
movq 0xc8(%rbx), %rdi
movq (%rdi), %rcx
movq 0x8(%rax), %rsi
callq *0x8(%rcx)
jmp 0x9e220c
| _ZN15Item_func_match8val_realEv:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
mov rdi, [rdi+0C8h]
test rdi, rdi
jz short loc_9E21E3
mov eax, [rbx+0A8h]
cmp eax, 0FFFFFFFFh
jz short loc_9E21BD
mov rcx, [rbx+0D0h]
xorps xmm0, xmm0
cmp byte ptr [rcx+2A6h], 0
jnz short loc_9E2210
loc_9E21BD:
cmp byte ptr [rbx+0B0h], 1
jnz short loc_9E21F4
mov rcx, [rbx+0D0h]
mov rcx, [rcx+8]
cmp qword ptr [rcx+1A8h], 0
jz short loc_9E21ED
mov rax, [rdi]
call qword ptr [rax+18h]
jmp short loc_9E220C
loc_9E21E3:
movsd xmm0, cs:qword_E2C0E8
jmp short loc_9E2210
loc_9E21ED:
mov byte ptr [rbx+0B0h], 0
loc_9E21F4:
cmp eax, 0FFFFFFFFh
jz short loc_9E2217
mov rax, [rdi]
mov rcx, [rbx+0D0h]
mov rsi, [rcx+50h]
xor edx, edx
call qword ptr [rax+8]
loc_9E220C:
cvtss2sd xmm0, xmm0
loc_9E2210:
add rsp, 8
pop rbx
pop rbp
retn
loc_9E2217:
mov rdi, [rbx+0E0h]
lea rsi, [rbx+0E8h]
mov rax, [rdi]
call qword ptr [rax+108h]
xorps xmm0, xmm0
test rax, rax
setz byte ptr [rbx+64h]
jz short loc_9E2210
mov edx, [rax+10h]
test edx, edx
jz short loc_9E2210
mov rdi, [rbx+0C8h]
mov rcx, [rdi]
mov rsi, [rax+8]
call qword ptr [rcx+8]
jmp short loc_9E220C
| void Item_func_match::val_real(Item_func_match *this)
{
long long v2; // rdi
int v3; // eax
long long v4; // rax
v2 = *((_QWORD *)this + 25);
if ( v2 )
{
v3 = *((_DWORD *)this + 42);
if ( v3 == -1 || !*(_BYTE *)(*((_QWORD *)this + 26) + 678LL) )
{
if ( *((_BYTE *)this + 176) == 1 )
{
if ( *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 26) + 8LL) + 424LL) )
{
(*(void ( **)(long long))(*(_QWORD *)v2 + 24LL))(v2);
return;
}
*((_BYTE *)this + 176) = 0;
}
if ( v3 == -1 )
{
v4 = (*(long long ( **)(_QWORD, char *))(**((_QWORD **)this + 28) + 264LL))(
*((_QWORD *)this + 28),
(char *)this + 232);
*((_BYTE *)this + 100) = v4 == 0;
if ( v4 )
{
if ( *(_DWORD *)(v4 + 16) )
(*(void ( **)(_QWORD, _QWORD, double))(**((_QWORD **)this + 25) + 8LL))(
*((_QWORD *)this + 25),
*(_QWORD *)(v4 + 8),
0.0);
}
}
else
{
(*(void ( **)(long long, _QWORD, _QWORD))(*(_QWORD *)v2 + 8LL))(
v2,
*(_QWORD *)(*((_QWORD *)this + 26) + 80LL),
0LL);
}
}
}
}
| |||
28,116 | my_uni_utf8mb3 | eloqsql/strings/ctype-utf8.c | static int my_uni_utf8mb3(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc, uchar *r, uchar *e)
{
if (wc < 0x80)
{
if (r >= e)
return MY_CS_TOOSMALL;
*r= (uchar) wc;
return 1;
}
if (wc < 0x800)
{
if (r + 2 > e)
return MY_CS_TOOSMALLN(2);
/* U+0080..U+07FF: 00000xxx.xxyyyyyy -> 110xxxxx 10yyyyyy */
*r++= (uchar) (0xC0 | (wc >> 6));
*r= (uchar) (0x80 | (wc & 0x3F));
return 2;
}
if (wc < 0x10000)
{
if (r + 3 > e)
return MY_CS_TOOSMALLN(3);
/* U+0800..U+FFFF: xxxxyyyy.yyzzzzzz -> 1110xxxx 10yyyyyy 10zzzzzz */
*r++= (uchar) (0xE0 | (wc >> 12));
*r++= (uchar) (0x80 | ((wc >> 6) & 0x3f));
*r= (uchar) (0x80 | (wc & 0x3f));
return 3;
}
return MY_CS_ILUNI;
} | O3 | c | my_uni_utf8mb3:
pushq %rbp
movq %rsp, %rbp
cmpq $0x7f, %rsi
ja 0x4f606
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0x4f678
movb %sil, (%rdx)
movl $0x1, %eax
jmp 0x4f678
cmpq $0x7ff, %rsi # imm = 0x7FF
ja 0x4f639
leaq 0x2(%rdx), %rdi
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %rdi
ja 0x4f678
movl %esi, %eax
shrl $0x6, %eax
orb $-0x40, %al
movb %al, (%rdx)
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, 0x1(%rdx)
movl $0x2, %eax
jmp 0x4f678
xorl %eax, %eax
cmpq $0xffff, %rsi # imm = 0xFFFF
ja 0x4f678
leaq 0x3(%rdx), %rdi
movl $0xffffff99, %eax # imm = 0xFFFFFF99
cmpq %rcx, %rdi
ja 0x4f678
movl %esi, %eax
shrl $0xc, %eax
orb $-0x20, %al
movb %al, (%rdx)
movl %esi, %eax
shrl $0x6, %eax
andb $0x3f, %al
orb $-0x80, %al
movb %al, 0x1(%rdx)
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, 0x2(%rdx)
movl $0x3, %eax
popq %rbp
retq
| my_uni_utf8mb3:
push rbp
mov rbp, rsp
cmp rsi, 7Fh
ja short loc_4F606
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short loc_4F678
mov [rdx], sil
mov eax, 1
jmp short loc_4F678
loc_4F606:
cmp rsi, 7FFh
ja short loc_4F639
lea rdi, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp rdi, rcx
ja short loc_4F678
mov eax, esi
shr eax, 6
or al, 0C0h
mov [rdx], al
and sil, 3Fh
or sil, 80h
mov [rdx+1], sil
mov eax, 2
jmp short loc_4F678
loc_4F639:
xor eax, eax
cmp rsi, 0FFFFh
ja short loc_4F678
lea rdi, [rdx+3]
mov eax, 0FFFFFF99h
cmp rdi, rcx
ja short loc_4F678
mov eax, esi
shr eax, 0Ch
or al, 0E0h
mov [rdx], al
mov eax, esi
shr eax, 6
and al, 3Fh
or al, 80h
mov [rdx+1], al
and sil, 3Fh
or sil, 80h
mov [rdx+2], sil
mov eax, 3
loc_4F678:
pop rbp
retn
| long long my_uni_utf8mb3(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
long long result; // rax
if ( a2 > 0x7F )
{
if ( a2 > 0x7FF )
{
result = 0LL;
if ( a2 <= 0xFFFF )
{
result = 4294967193LL;
if ( (unsigned long long)(a3 + 3) <= a4 )
{
*a3 = ((unsigned int)a2 >> 12) | 0xE0;
a3[1] = ((unsigned int)a2 >> 6) & 0x3F | 0x80;
a3[2] = a2 & 0x3F | 0x80;
return 3LL;
}
}
}
else
{
result = 4294967194LL;
if ( (unsigned long long)(a3 + 2) <= a4 )
{
*a3 = ((unsigned int)a2 >> 6) | 0xC0;
a3[1] = a2 & 0x3F | 0x80;
return 2LL;
}
}
}
else
{
result = 4294967195LL;
if ( (unsigned long long)a3 < a4 )
{
*a3 = a2;
return 1LL;
}
}
return result;
}
| my_uni_utf8mb3:
PUSH RBP
MOV RBP,RSP
CMP RSI,0x7f
JA 0x0014f606
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x0014f678
MOV byte ptr [RDX],SIL
MOV EAX,0x1
JMP 0x0014f678
LAB_0014f606:
CMP RSI,0x7ff
JA 0x0014f639
LEA RDI,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP RDI,RCX
JA 0x0014f678
MOV EAX,ESI
SHR EAX,0x6
OR AL,0xc0
MOV byte ptr [RDX],AL
AND SIL,0x3f
OR SIL,0x80
MOV byte ptr [RDX + 0x1],SIL
MOV EAX,0x2
JMP 0x0014f678
LAB_0014f639:
XOR EAX,EAX
CMP RSI,0xffff
JA 0x0014f678
LEA RDI,[RDX + 0x3]
MOV EAX,0xffffff99
CMP RDI,RCX
JA 0x0014f678
MOV EAX,ESI
SHR EAX,0xc
OR AL,0xe0
MOV byte ptr [RDX],AL
MOV EAX,ESI
SHR EAX,0x6
AND AL,0x3f
OR AL,0x80
MOV byte ptr [RDX + 0x1],AL
AND SIL,0x3f
OR SIL,0x80
MOV byte ptr [RDX + 0x2],SIL
MOV EAX,0x3
LAB_0014f678:
POP RBP
RET
|
int8 my_uni_utf8mb3(int8 param_1,ulong param_2,byte *param_3,byte *param_4)
{
int8 uVar1;
byte bVar2;
uint uVar3;
uVar3 = (uint)param_2;
bVar2 = (byte)param_2;
if (param_2 < 0x80) {
uVar1 = 0xffffff9b;
if (param_3 < param_4) {
*param_3 = bVar2;
uVar1 = 1;
}
}
else if (param_2 < 0x800) {
uVar1 = 0xffffff9a;
if (param_3 + 2 <= param_4) {
*param_3 = (byte)(uVar3 >> 6) | 0xc0;
param_3[1] = bVar2 & 0x3f | 0x80;
uVar1 = 2;
}
}
else {
uVar1 = 0;
if ((param_2 < 0x10000) && (uVar1 = 0xffffff99, param_3 + 3 <= param_4)) {
*param_3 = (byte)(uVar3 >> 0xc) | 0xe0;
param_3[1] = (byte)(uVar3 >> 6) & 0x3f | 0x80;
param_3[2] = bVar2 & 0x3f | 0x80;
uVar1 = 3;
}
}
return uVar1;
}
| |
28,117 | my_vfprintf | eloqsql/strings/my_vsnprintf.c | int my_vfprintf(FILE *stream, const char* format, va_list args)
{
char cvtbuf[1024];
int alloc= 0;
char *p= cvtbuf;
size_t cur_len= sizeof(cvtbuf), actual;
int ret;
/*
We do not know how much buffer we need.
So start with a reasonably-sized stack-allocated buffer, and increase
it exponentially until it is big enough.
*/
for (;;)
{
size_t new_len;
actual= my_vsnprintf(p, cur_len, format, args);
if (actual < cur_len - 1)
break;
/*
Not enough space (or just enough with nothing to spare - but we cannot
distinguish this case from the return value). Allocate a bigger buffer
and try again.
*/
if (alloc)
my_free(p);
else
alloc= 1;
new_len= cur_len*2;
if (new_len < cur_len)
return 0; /* Overflow */
cur_len= new_len;
p= my_malloc(PSI_INSTRUMENT_ME, cur_len, MYF(MY_FAE));
if (!p)
return 0;
}
ret= (int) actual;
if (fputs(p, stream) < 0)
ret= -1;
if (alloc)
my_free(p);
return ret;
} | O3 | c | my_vfprintf:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x418, %rsp # imm = 0x418
movq %rdx, -0x440(%rbp)
movq %rsi, %r12
movq %rdi, -0x438(%rbp)
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movb $0x1, %bl
movl $0x400, %r13d # imm = 0x400
leaq -0x430(%rbp), %r14
leaq 0x2dd040(%rip), %rdi # 0x349d00
movq %r14, %rsi
movq %r13, %rdx
movq %r12, %rcx
movq -0x440(%rbp), %r8
callq 0x6ba10
movq %rax, %r15
leaq -0x1(%r13), %rax
cmpq %rax, %r15
jb 0x6cd11
testb $0x1, %bl
jne 0x6ccee
movq %r14, %rdi
callq 0x3795e
testq %r13, %r13
js 0x6cd3e
addq %r13, %r13
xorl %ebx, %ebx
movl $0x8, %edx
xorl %edi, %edi
movq %r13, %rsi
callq 0x37731
movq %rax, %r14
testq %rax, %rax
jne 0x6ccb9
jmp 0x6cd40
movq %r14, %rdi
movq -0x438(%rbp), %rsi
callq 0x33390
testl %eax, %eax
movl $0xffffffff, %r12d # imm = 0xFFFFFFFF
cmovnsl %r15d, %r12d
testb $0x1, %bl
jne 0x6cd39
movq %r14, %rdi
callq 0x3795e
movl %r12d, %ebx
jmp 0x6cd40
xorl %ebx, %ebx
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x6cd63
movl %ebx, %eax
addq $0x418, %rsp # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x33370
| my_vfprintf:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 418h
mov [rbp+var_440], rdx
mov r12, rsi
mov [rbp+var_438], rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov bl, 1
mov r13d, 400h
lea r14, [rbp+var_430]
loc_6CCB9:
lea rdi, my_charset_latin1
mov rsi, r14
mov rdx, r13
mov rcx, r12
mov r8, [rbp+var_440]
call my_vsnprintf_ex
mov r15, rax
lea rax, [r13-1]
cmp r15, rax
jb short loc_6CD11
test bl, 1
jnz short loc_6CCEE
mov rdi, r14
call my_free
loc_6CCEE:
test r13, r13
js short loc_6CD3E
add r13, r13
xor ebx, ebx
mov edx, 8
xor edi, edi
mov rsi, r13
call my_malloc
mov r14, rax
test rax, rax
jnz short loc_6CCB9
jmp short loc_6CD40
loc_6CD11:
mov rdi, r14
mov rsi, [rbp+var_438]
call _fputs
test eax, eax
mov r12d, 0FFFFFFFFh
cmovns r12d, r15d
test bl, 1
jnz short loc_6CD39
mov rdi, r14
call my_free
loc_6CD39:
mov ebx, r12d
jmp short loc_6CD40
loc_6CD3E:
xor ebx, ebx
loc_6CD40:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz short loc_6CD63
mov eax, ebx
add rsp, 418h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_6CD63:
call ___stack_chk_fail
| long long my_vfprintf(long long a1, unsigned __int8 *a2, unsigned int *a3)
{
unsigned int v3; // ebx
long long v4; // r13
char *v5; // r14
unsigned long long v6; // r15
unsigned int v7; // r12d
char v10; // [rsp+10h] [rbp-430h] BYREF
unsigned long long v11; // [rsp+410h] [rbp-30h]
v11 = __readfsqword(0x28u);
LOBYTE(v3) = 1;
v4 = 1024LL;
v5 = &v10;
while ( 1 )
{
v6 = my_vsnprintf_ex((long long)my_charset_latin1, (unsigned long long)v5, v4, a2, a3);
if ( v6 < v4 - 1 )
break;
if ( (v3 & 1) == 0 )
my_free((long long)v5);
if ( v4 < 0 )
return 0;
v4 *= 2LL;
v3 = 0;
v5 = (char *)my_malloc(0, v4, 8);
if ( !v5 )
return v3;
}
v7 = -1;
if ( (int)fputs(v5, a1) >= 0 )
v7 = v6;
if ( (v3 & 1) == 0 )
my_free((long long)v5);
return v7;
}
| my_vfprintf:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x418
MOV qword ptr [RBP + -0x440],RDX
MOV R12,RSI
MOV qword ptr [RBP + -0x438],RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV BL,0x1
MOV R13D,0x400
LEA R14,[RBP + -0x430]
LAB_0016ccb9:
LEA RDI,[0x449d00]
MOV RSI,R14
MOV RDX,R13
MOV RCX,R12
MOV R8,qword ptr [RBP + -0x440]
CALL 0x0016ba10
MOV R15,RAX
LEA RAX,[R13 + -0x1]
CMP R15,RAX
JC 0x0016cd11
TEST BL,0x1
JNZ 0x0016ccee
MOV RDI,R14
CALL 0x0013795e
LAB_0016ccee:
TEST R13,R13
JS 0x0016cd3e
ADD R13,R13
XOR EBX,EBX
MOV EDX,0x8
XOR EDI,EDI
MOV RSI,R13
CALL 0x00137731
MOV R14,RAX
TEST RAX,RAX
JNZ 0x0016ccb9
JMP 0x0016cd40
LAB_0016cd11:
MOV RDI,R14
MOV RSI,qword ptr [RBP + -0x438]
CALL 0x00133390
TEST EAX,EAX
MOV R12D,0xffffffff
CMOVNS R12D,R15D
TEST BL,0x1
JNZ 0x0016cd39
MOV RDI,R14
CALL 0x0013795e
LAB_0016cd39:
MOV EBX,R12D
JMP 0x0016cd40
LAB_0016cd3e:
XOR EBX,EBX
LAB_0016cd40:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x0016cd63
MOV EAX,EBX
ADD RSP,0x418
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0016cd63:
CALL 0x00133370
|
ulong my_vfprintf(FILE *param_1,int8 param_2,int8 param_3)
{
int iVar1;
ulong uVar2;
char *__s;
ulong uVar3;
ulong uVar4;
long lVar5;
long in_FS_OFFSET;
char local_438 [1024];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
lVar5 = 0x400;
__s = local_438;
uVar3 = 1;
do {
uVar2 = my_vsnprintf_ex(&my_charset_latin1,__s,lVar5,param_2,param_3);
if (uVar2 < lVar5 - 1U) {
iVar1 = fputs(__s,param_1);
uVar4 = 0xffffffff;
if (-1 < iVar1) {
uVar4 = uVar2 & 0xffffffff;
}
if (uVar3 == 0) {
my_free(__s);
}
break;
}
if ((char)uVar3 == '\0') {
my_free(__s);
}
if (lVar5 < 0) {
uVar4 = 0;
break;
}
lVar5 = lVar5 * 2;
uVar4 = 0;
__s = (char *)my_malloc(0,lVar5,8);
uVar3 = uVar4;
} while (__s != (char *)0x0);
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return uVar4;
}
| |
28,118 | run_plugin_auth | eloqsql/libmariadb/plugins/auth/my_auth.c | int run_plugin_auth(MYSQL *mysql, char *data, uint data_len,
const char *data_plugin, const char *db)
{
const char *auth_plugin_name= NULL;
auth_plugin_t *auth_plugin;
MCPVIO_EXT mpvio;
ulong pkt_length;
int res;
/* determine the default/initial plugin to use */
if (mysql->server_capabilities & CLIENT_PLUGIN_AUTH)
{
if (mysql->options.extension && mysql->options.extension->default_auth)
auth_plugin_name= mysql->options.extension->default_auth;
else if (data_plugin)
auth_plugin_name= data_plugin;
}
if (!auth_plugin_name)
{
if (mysql->server_capabilities & CLIENT_PROTOCOL_41)
auth_plugin_name= native_password_plugin_name;
else
auth_plugin_name= "mysql_old_password";
}
if (!(auth_plugin= (auth_plugin_t*) mysql_client_find_plugin(mysql,
auth_plugin_name, MYSQL_CLIENT_AUTHENTICATION_PLUGIN)))
auth_plugin= &dummy_fallback_client_plugin;
mysql->net.last_errno= 0; /* just in case */
if (data_plugin && strcmp(data_plugin, auth_plugin_name))
{
/* data was prepared for a different plugin, so we don't
send any data */
data= 0;
data_len= 0;
}
mpvio.mysql_change_user= data_plugin == 0;
mpvio.cached_server_reply.pkt= (uchar*)data;
mpvio.cached_server_reply.pkt_len= data_len;
mpvio.read_packet= client_mpvio_read_packet;
mpvio.write_packet= client_mpvio_write_packet;
mpvio.info= client_mpvio_info;
mpvio.mysql= mysql;
mpvio.packets_read= mpvio.packets_written= 0;
mpvio.db= db;
retry:
mpvio.plugin= auth_plugin;
if (auth_plugin_name &&
mysql->options.extension &&
mysql->options.extension->restricted_auth)
{
if (!strstr(mysql->options.extension->restricted_auth, auth_plugin_name))
{
my_set_error(mysql, CR_PLUGIN_NOT_ALLOWED, SQLSTATE_UNKNOWN, 0, data_plugin);
return 1;
}
}
mysql->net.read_pos[0]= 0;
res= auth_plugin->authenticate_user((struct st_plugin_vio *)&mpvio, mysql);
if ((res == CR_ERROR && !mysql->net.buff) ||
(res > CR_OK && mysql->net.read_pos[0] != 254))
{
/*
the plugin returned an error. write it down in mysql,
unless the error code is CR_ERROR and mysql->net.last_errno
is already set (the plugin has done it)
*/
if (res > CR_ERROR)
my_set_error(mysql, res, SQLSTATE_UNKNOWN, 0);
else
if (!mysql->net.last_errno) {
my_set_error(mysql, CR_UNKNOWN_ERROR, SQLSTATE_UNKNOWN, 0);
}
return 1;
}
/* read the OK packet (or use the cached value in mysql->net.read_pos */
if (res == CR_OK)
pkt_length= ma_net_safe_read(mysql);
else /* res == CR_OK_HANDSHAKE_COMPLETE or an error */
pkt_length= mpvio.last_read_packet_len;
if (pkt_length == packet_error)
{
if (mysql->net.last_errno == CR_SERVER_LOST)
my_set_error(mysql, CR_SERVER_LOST, SQLSTATE_UNKNOWN,
ER(CR_SERVER_LOST_EXTENDED),
"reading authorization packet",
errno);
return 1;
}
if (mysql->net.read_pos[0] == 254)
{
/* The server asked to use a different authentication plugin */
if (pkt_length == 1)
{
/* old "use short scramble" packet */
auth_plugin_name= old_password_plugin_name;
mpvio.cached_server_reply.pkt= (uchar*)mysql->scramble_buff;
mpvio.cached_server_reply.pkt_len= SCRAMBLE_LENGTH + 1;
}
else
{
/* new "use different plugin" packet */
uint len;
auth_plugin_name= (char*)mysql->net.read_pos + 1;
len= (uint)strlen(auth_plugin_name); /* safe as ma_net_read always appends \0 */
mpvio.cached_server_reply.pkt_len= pkt_length - len - 2;
mpvio.cached_server_reply.pkt= mysql->net.read_pos + len + 2;
}
if (!(auth_plugin= (auth_plugin_t *) mysql_client_find_plugin(mysql,
auth_plugin_name, MYSQL_CLIENT_AUTHENTICATION_PLUGIN)))
auth_plugin= &dummy_fallback_client_plugin;
goto retry;
}
/*
net->read_pos[0] should always be 0 here if the server implements
the protocol correctly
*/
if (mysql->net.read_pos[0] == 0)
return ma_read_ok_packet(mysql, mysql->net.read_pos + 1, pkt_length);
return 1;
} | O0 | c | run_plugin_auth:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq $0x0, -0x38(%rbp)
movq -0x10(%rbp), %rax
movq 0x370(%rax), %rax
andq $0x80000, %rax # imm = 0x80000
cmpq $0x0, %rax
je 0x5a105
movq -0x10(%rbp), %rax
cmpq $0x0, 0x480(%rax)
je 0x5a0f2
movq -0x10(%rbp), %rax
movq 0x480(%rax), %rax
cmpq $0x0, 0x8(%rax)
je 0x5a0f2
movq -0x10(%rbp), %rax
movq 0x480(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0x38(%rbp)
jmp 0x5a103
cmpq $0x0, -0x28(%rbp)
je 0x5a101
movq -0x28(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x5a103
jmp 0x5a105
cmpq $0x0, -0x38(%rbp)
jne 0x5a13d
movq -0x10(%rbp), %rax
movq 0x370(%rax), %rax
andq $0x200, %rax # imm = 0x200
cmpq $0x0, %rax
je 0x5a130
leaq 0x10dd0(%rip), %rax # 0x6aefa
movq %rax, -0x38(%rbp)
jmp 0x5a13b
leaq 0x10db0(%rip), %rax # 0x6aee7
movq %rax, -0x38(%rbp)
jmp 0x5a13d
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
movl $0x2, %edx
callq 0x50a10
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
jne 0x5a164
leaq 0x25d08(%rip), %rax # 0x7fe68
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movl $0x0, 0x90(%rax)
cmpq $0x0, -0x28(%rbp)
je 0x5a19a
movq -0x28(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x14600
cmpl $0x0, %eax
je 0x5a19a
movq $0x0, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
cmpq $0x0, -0x28(%rbp)
sete %al
andb $0x1, %al
movzbl %al, %eax
movb %al, -0x48(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x60(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x58(%rbp)
leaq 0x331(%rip), %rax # 0x5a4f0
movq %rax, -0x90(%rbp)
leaq 0x463(%rip), %rax # 0x5a630
movq %rax, -0x88(%rbp)
leaq 0x5a5(%rip), %rax # 0x5a780
movq %rax, -0x80(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x78(%rbp)
movl $0x0, -0x4c(%rbp)
movl $0x0, -0x50(%rbp)
movq -0x30(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x70(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x5a280
movq -0x10(%rbp), %rax
cmpq $0x0, 0x480(%rax)
je 0x5a280
movq -0x10(%rbp), %rax
movq 0x480(%rax), %rax
cmpq $0x0, 0x150(%rax)
je 0x5a280
movq -0x10(%rbp), %rax
movq 0x480(%rax), %rax
movq 0x150(%rax), %rdi
movq -0x38(%rbp), %rsi
callq 0x14100
cmpq $0x0, %rax
jne 0x5a27e
movq -0x10(%rbp), %rdi
leaq 0x26c45(%rip), %rax # 0x80ea0
movq (%rax), %rdx
movq -0x28(%rbp), %r8
movl $0x1392, %esi # imm = 0x1392
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0x307d0
movl $0x1, -0x4(%rbp)
jmp 0x5a4de
jmp 0x5a280
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movb $0x0, (%rax)
movq -0x40(%rbp), %rax
movq 0x58(%rax), %rax
movq -0x10(%rbp), %rsi
leaq -0x90(%rbp), %rdi
callq *%rax
movl %eax, -0x9c(%rbp)
cmpl $0x0, -0x9c(%rbp)
jne 0x5a2ba
movq -0x10(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x5a2d5
cmpl $-0x1, -0x9c(%rbp)
jle 0x5a338
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movzbl (%rax), %eax
cmpl $0xfe, %eax
je 0x5a338
cmpl $0x0, -0x9c(%rbp)
jle 0x5a2ff
movq -0x10(%rbp), %rdi
movl -0x9c(%rbp), %esi
leaq 0x26bb1(%rip), %rax # 0x80ea0
movq (%rax), %rdx
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0x307d0
jmp 0x5a32c
movq -0x10(%rbp), %rax
cmpl $0x0, 0x90(%rax)
jne 0x5a32a
movq -0x10(%rbp), %rdi
leaq 0x26b89(%rip), %rax # 0x80ea0
movq (%rax), %rdx
movl $0x7d0, %esi # imm = 0x7D0
xorl %eax, %eax
movl %eax, %ecx
movb $0x0, %al
callq 0x307d0
jmp 0x5a32c
movl $0x1, -0x4(%rbp)
jmp 0x5a4de
cmpl $-0x1, -0x9c(%rbp)
jne 0x5a353
movq -0x10(%rbp), %rdi
callq 0x304c0
movq %rax, -0x98(%rbp)
jmp 0x5a35e
movslq -0x44(%rbp), %rax
movq %rax, -0x98(%rbp)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
cmpq %rax, -0x98(%rbp)
jne 0x5a3e9
movq -0x10(%rbp), %rax
cmpl $0x7dd, 0x90(%rax) # imm = 0x7DD
jne 0x5a3dd
movq -0x10(%rbp), %rax
movq %rax, -0xb8(%rbp)
leaq 0x26b12(%rip), %rax # 0x80ea0
movq (%rax), %rax
movq %rax, -0xb0(%rbp)
leaq 0x26b11(%rip), %rax # 0x80eb0
movq 0x1b8(%rax), %rax
movq %rax, -0xa8(%rbp)
callq 0x14050
movq -0xb8(%rbp), %rdi
movq -0xb0(%rbp), %rdx
movq -0xa8(%rbp), %rcx
movl (%rax), %r9d
movl $0x7dd, %esi # imm = 0x7DD
leaq 0x11083(%rip), %r8 # 0x6b459
movb $0x0, %al
callq 0x307d0
movl $0x1, -0x4(%rbp)
jmp 0x5a4de
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movzbl (%rax), %eax
cmpl $0xfe, %eax
jne 0x5a4a6
cmpq $0x1, -0x98(%rbp)
jne 0x5a42b
leaq 0x10ad7(%rip), %rax # 0x6aee7
movq %rax, -0x38(%rbp)
movq -0x10(%rbp), %rax
addq $0x48e, %rax # imm = 0x48E
movq %rax, -0x60(%rbp)
movl $0x15, -0x58(%rbp)
jmp 0x5a47a
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
addq $0x1, %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rdi
callq 0x141a0
movl %eax, -0xa0(%rbp)
movq -0x98(%rbp), %rax
movl -0xa0(%rbp), %ecx
subq %rcx, %rax
subq $0x2, %rax
movl %eax, -0x58(%rbp)
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movl -0xa0(%rbp), %ecx
addq %rcx, %rax
addq $0x2, %rax
movq %rax, -0x60(%rbp)
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
movl $0x2, %edx
callq 0x50a10
movq %rax, -0x40(%rbp)
cmpq $0x0, %rax
jne 0x5a4a1
leaq 0x259cb(%rip), %rax # 0x7fe68
movq %rax, -0x40(%rbp)
jmp 0x5a1fd
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movzbl (%rax), %eax
cmpl $0x0, %eax
jne 0x5a4d7
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rsi
addq $0x1, %rsi
movq -0x98(%rbp), %rdx
callq 0x38ef0
movl %eax, -0x4(%rbp)
jmp 0x5a4de
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0xc0, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| run_plugin_auth:
push rbp
mov rbp, rsp
sub rsp, 0C0h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_1C], edx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_38], 0
mov rax, [rbp+var_10]
mov rax, [rax+370h]
and rax, 80000h
cmp rax, 0
jz short loc_5A105
mov rax, [rbp+var_10]
cmp qword ptr [rax+480h], 0
jz short loc_5A0F2
mov rax, [rbp+var_10]
mov rax, [rax+480h]
cmp qword ptr [rax+8], 0
jz short loc_5A0F2
mov rax, [rbp+var_10]
mov rax, [rax+480h]
mov rax, [rax+8]
mov [rbp+var_38], rax
jmp short loc_5A103
loc_5A0F2:
cmp [rbp+var_28], 0
jz short loc_5A101
mov rax, [rbp+var_28]
mov [rbp+var_38], rax
loc_5A101:
jmp short $+2
loc_5A103:
jmp short $+2
loc_5A105:
cmp [rbp+var_38], 0
jnz short loc_5A13D
mov rax, [rbp+var_10]
mov rax, [rax+370h]
and rax, 200h
cmp rax, 0
jz short loc_5A130
lea rax, aMysqlNativePas; "mysql_native_password"
mov [rbp+var_38], rax
jmp short loc_5A13B
loc_5A130:
lea rax, aMysqlOldPasswo; "mysql_old_password"
mov [rbp+var_38], rax
loc_5A13B:
jmp short $+2
loc_5A13D:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
mov edx, 2
call mysql_client_find_plugin
mov [rbp+var_40], rax
cmp rax, 0
jnz short loc_5A164
lea rax, dummy_fallback_client_plugin
mov [rbp+var_40], rax
loc_5A164:
mov rax, [rbp+var_10]
mov dword ptr [rax+90h], 0
cmp [rbp+var_28], 0
jz short loc_5A19A
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_38]
call _strcmp
cmp eax, 0
jz short loc_5A19A
mov [rbp+var_18], 0
mov [rbp+var_1C], 0
loc_5A19A:
cmp [rbp+var_28], 0
setz al
and al, 1
movzx eax, al
mov [rbp+var_48], al
mov rax, [rbp+var_18]
mov [rbp+var_60], rax
mov eax, [rbp+var_1C]
mov [rbp+var_58], eax
lea rax, client_mpvio_read_packet
mov [rbp+var_90], rax
lea rax, client_mpvio_write_packet
mov [rbp+var_88], rax
lea rax, client_mpvio_info
mov [rbp+var_80], rax
mov rax, [rbp+var_10]
mov [rbp+var_78], rax
mov [rbp+var_4C], 0
mov [rbp+var_50], 0
mov rax, [rbp+var_30]
mov [rbp+var_68], rax
loc_5A1FD:
mov rax, [rbp+var_40]
mov [rbp+var_70], rax
cmp [rbp+var_38], 0
jz short loc_5A280
mov rax, [rbp+var_10]
cmp qword ptr [rax+480h], 0
jz short loc_5A280
mov rax, [rbp+var_10]
mov rax, [rax+480h]
cmp qword ptr [rax+150h], 0
jz short loc_5A280
mov rax, [rbp+var_10]
mov rax, [rax+480h]
mov rdi, [rax+150h]
mov rsi, [rbp+var_38]
call _strstr
cmp rax, 0
jnz short loc_5A27E
mov rdi, [rbp+var_10]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
mov r8, [rbp+var_28]
mov esi, 1392h
xor eax, eax
mov ecx, eax
mov al, 0
call my_set_error
mov [rbp+var_4], 1
jmp loc_5A4DE
loc_5A27E:
jmp short $+2
loc_5A280:
mov rax, [rbp+var_10]
mov rax, [rax+20h]
mov byte ptr [rax], 0
mov rax, [rbp+var_40]
mov rax, [rax+58h]
mov rsi, [rbp+var_10]
lea rdi, [rbp+var_90]
call rax
mov [rbp+var_9C], eax
cmp [rbp+var_9C], 0
jnz short loc_5A2BA
mov rax, [rbp+var_10]
cmp qword ptr [rax+8], 0
jz short loc_5A2D5
loc_5A2BA:
cmp [rbp+var_9C], 0FFFFFFFFh
jle short loc_5A338
mov rax, [rbp+var_10]
mov rax, [rax+20h]
movzx eax, byte ptr [rax]
cmp eax, 0FEh
jz short loc_5A338
loc_5A2D5:
cmp [rbp+var_9C], 0
jle short loc_5A2FF
mov rdi, [rbp+var_10]
mov esi, [rbp+var_9C]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
xor eax, eax
mov ecx, eax
mov al, 0
call my_set_error
jmp short loc_5A32C
loc_5A2FF:
mov rax, [rbp+var_10]
cmp dword ptr [rax+90h], 0
jnz short loc_5A32A
mov rdi, [rbp+var_10]
lea rax, SQLSTATE_UNKNOWN
mov rdx, [rax]
mov esi, 7D0h
xor eax, eax
mov ecx, eax
mov al, 0
call my_set_error
loc_5A32A:
jmp short $+2
loc_5A32C:
mov [rbp+var_4], 1
jmp loc_5A4DE
loc_5A338:
cmp [rbp+var_9C], 0FFFFFFFFh
jnz short loc_5A353
mov rdi, [rbp+var_10]
call ma_net_safe_read
mov [rbp+var_98], rax
jmp short loc_5A35E
loc_5A353:
movsxd rax, [rbp+var_44]
mov [rbp+var_98], rax
loc_5A35E:
mov eax, 0FFFFFFFFh
cmp [rbp+var_98], rax
jnz short loc_5A3E9
mov rax, [rbp+var_10]
cmp dword ptr [rax+90h], 7DDh
jnz short loc_5A3DD
mov rax, [rbp+var_10]
mov [rbp+var_B8], rax
lea rax, SQLSTATE_UNKNOWN
mov rax, [rax]
mov [rbp+var_B0], rax
lea rax, client_errors
mov rax, [rax+1B8h]
mov [rbp+var_A8], rax
call ___errno_location
mov rdi, [rbp+var_B8]
mov rdx, [rbp+var_B0]
mov rcx, [rbp+var_A8]
mov r9d, [rax]
mov esi, 7DDh
lea r8, aReadingAuthori; "reading authorization packet"
mov al, 0
call my_set_error
loc_5A3DD:
mov [rbp+var_4], 1
jmp loc_5A4DE
loc_5A3E9:
mov rax, [rbp+var_10]
mov rax, [rax+20h]
movzx eax, byte ptr [rax]
cmp eax, 0FEh
jnz loc_5A4A6
cmp [rbp+var_98], 1
jnz short loc_5A42B
lea rax, aMysqlOldPasswo; "mysql_old_password"
mov [rbp+var_38], rax
mov rax, [rbp+var_10]
add rax, 48Eh
mov [rbp+var_60], rax
mov [rbp+var_58], 15h
jmp short loc_5A47A
loc_5A42B:
mov rax, [rbp+var_10]
mov rax, [rax+20h]
add rax, 1
mov [rbp+var_38], rax
mov rdi, [rbp+var_38]
call _strlen
mov [rbp+var_A0], eax
mov rax, [rbp+var_98]
mov ecx, [rbp+var_A0]
sub rax, rcx
sub rax, 2
mov [rbp+var_58], eax
mov rax, [rbp+var_10]
mov rax, [rax+20h]
mov ecx, [rbp+var_A0]
add rax, rcx
add rax, 2
mov [rbp+var_60], rax
loc_5A47A:
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_38]
mov edx, 2
call mysql_client_find_plugin
mov [rbp+var_40], rax
cmp rax, 0
jnz short loc_5A4A1
lea rax, dummy_fallback_client_plugin
mov [rbp+var_40], rax
loc_5A4A1:
jmp loc_5A1FD
loc_5A4A6:
mov rax, [rbp+var_10]
mov rax, [rax+20h]
movzx eax, byte ptr [rax]
cmp eax, 0
jnz short loc_5A4D7
mov rdi, [rbp+var_10]
mov rax, [rbp+var_10]
mov rsi, [rax+20h]
add rsi, 1
mov rdx, [rbp+var_98]
call ma_read_ok_packet
mov [rbp+var_4], eax
jmp short loc_5A4DE
loc_5A4D7:
mov [rbp+var_4], 1
loc_5A4DE:
mov eax, [rbp+var_4]
add rsp, 0C0h
pop rbp
retn
| long long run_plugin_auth(long long a1, long long a2, int a3, const char *a4, long long a5)
{
long long v5; // rsi
long long v6; // rdx
long long v7; // rcx
int v8; // r8d
int v9; // r9d
unsigned int *v10; // rax
long long v12; // [rsp+8h] [rbp-B8h]
char *v13; // [rsp+10h] [rbp-B0h]
char *v14; // [rsp+18h] [rbp-A8h]
unsigned int v15; // [rsp+20h] [rbp-A0h]
signed int v16; // [rsp+24h] [rbp-9Ch]
long long v17; // [rsp+28h] [rbp-98h]
_QWORD v18[6]; // [rsp+30h] [rbp-90h] BYREF
long long v19; // [rsp+60h] [rbp-60h]
int v20; // [rsp+68h] [rbp-58h]
int v21; // [rsp+70h] [rbp-50h]
int v22; // [rsp+74h] [rbp-4Ch]
bool v23; // [rsp+78h] [rbp-48h]
int v24; // [rsp+7Ch] [rbp-44h]
void (**plugin)(void); // [rsp+80h] [rbp-40h]
const char *v26; // [rsp+88h] [rbp-38h]
long long v27; // [rsp+90h] [rbp-30h]
const char *v28; // [rsp+98h] [rbp-28h]
int v29; // [rsp+A4h] [rbp-1Ch]
long long v30; // [rsp+A8h] [rbp-18h]
long long v31; // [rsp+B0h] [rbp-10h]
v31 = a1;
v30 = a2;
v29 = a3;
v28 = a4;
v27 = a5;
v26 = 0LL;
if ( (*(_QWORD *)(a1 + 880) & 0x80000LL) != 0 )
{
if ( *(_QWORD *)(v31 + 1152) && *(_QWORD *)(*(_QWORD *)(v31 + 1152) + 8LL) )
{
v26 = *(const char **)(*(_QWORD *)(v31 + 1152) + 8LL);
}
else if ( v28 )
{
v26 = v28;
}
}
if ( !v26 )
{
if ( (*(_QWORD *)(v31 + 880) & 0x200LL) != 0 )
v26 = "mysql_native_password";
else
v26 = "mysql_old_password";
}
plugin = mysql_client_find_plugin(v31, v26, 2u);
if ( !plugin )
plugin = (void (**)(void))&dummy_fallback_client_plugin;
*(_DWORD *)(v31 + 144) = 0;
if ( v28 && (unsigned int)strcmp(v28, v26) )
{
v30 = 0LL;
v29 = 0;
}
v23 = v28 == 0LL;
v19 = v30;
v20 = v29;
v18[0] = client_mpvio_read_packet;
v18[1] = client_mpvio_write_packet;
v18[2] = client_mpvio_info;
v18[3] = v31;
v22 = 0;
v21 = 0;
v18[5] = v27;
while ( 1 )
{
v18[4] = plugin;
if ( v26
&& *(_QWORD *)(v31 + 1152)
&& *(_QWORD *)(*(_QWORD *)(v31 + 1152) + 336LL)
&& !strstr(*(_QWORD *)(*(_QWORD *)(v31 + 1152) + 336LL), v26) )
{
my_set_error(v31, 0x1392u, (long long)SQLSTATE_UNKNOWN, 0LL, v28);
return 1;
}
**(_BYTE **)(v31 + 32) = 0;
v5 = v31;
v16 = ((long long ( *)(_QWORD *, long long))plugin[11])(v18, v31);
if ( !v16 && !*(_QWORD *)(v31 + 8) || v16 > -1 && **(unsigned __int8 **)(v31 + 32) != 254 )
{
if ( v16 <= 0 )
{
if ( !*(_DWORD *)(v31 + 144) )
my_set_error(v31, 0x7D0u, (long long)SQLSTATE_UNKNOWN, 0LL);
}
else
{
my_set_error(v31, v16, (long long)SQLSTATE_UNKNOWN, 0LL);
}
return 1;
}
v17 = v16 == -1 ? ma_net_safe_read(v31, v5, v6, v7, v8, v9) : v24;
if ( v17 == 0xFFFFFFFFLL )
break;
if ( **(unsigned __int8 **)(v31 + 32) != 254 )
{
if ( **(_BYTE **)(v31 + 32) )
return 1;
else
return (unsigned int)ma_read_ok_packet(v31, (unsigned __int8 *)(*(_QWORD *)(v31 + 32) + 1LL), v17);
}
if ( v17 == 1 )
{
v26 = "mysql_old_password";
v19 = v31 + 1166;
v20 = 21;
}
else
{
v26 = (const char *)(*(_QWORD *)(v31 + 32) + 1LL);
v15 = strlen(v26);
v20 = v17 - v15 - 2;
v19 = v15 + *(_QWORD *)(v31 + 32) + 2LL;
}
plugin = mysql_client_find_plugin(v31, v26, 2u);
if ( !plugin )
plugin = (void (**)(void))&dummy_fallback_client_plugin;
}
if ( *(_DWORD *)(v31 + 144) == 2013 )
{
v12 = v31;
v13 = SQLSTATE_UNKNOWN;
v14 = client_errors[55];
v10 = (unsigned int *)__errno_location();
my_set_error(v12, 0x7DDu, (long long)v13, (long long)v14, "reading authorization packet", *v10);
}
return 1;
}
| run_plugin_auth:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xc0
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV dword ptr [RBP + -0x1c],EDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV qword ptr [RBP + -0x38],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x370]
AND RAX,0x80000
CMP RAX,0x0
JZ 0x0015a105
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x480],0x0
JZ 0x0015a0f2
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x480]
CMP qword ptr [RAX + 0x8],0x0
JZ 0x0015a0f2
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x38],RAX
JMP 0x0015a103
LAB_0015a0f2:
CMP qword ptr [RBP + -0x28],0x0
JZ 0x0015a101
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x38],RAX
LAB_0015a101:
JMP 0x0015a103
LAB_0015a103:
JMP 0x0015a105
LAB_0015a105:
CMP qword ptr [RBP + -0x38],0x0
JNZ 0x0015a13d
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x370]
AND RAX,0x200
CMP RAX,0x0
JZ 0x0015a130
LEA RAX,[0x16aefa]
MOV qword ptr [RBP + -0x38],RAX
JMP 0x0015a13b
LAB_0015a130:
LEA RAX,[0x16aee7]
MOV qword ptr [RBP + -0x38],RAX
LAB_0015a13b:
JMP 0x0015a13d
LAB_0015a13d:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
MOV EDX,0x2
CALL 0x00150a10
MOV qword ptr [RBP + -0x40],RAX
CMP RAX,0x0
JNZ 0x0015a164
LEA RAX,[0x17fe68]
MOV qword ptr [RBP + -0x40],RAX
LAB_0015a164:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x90],0x0
CMP qword ptr [RBP + -0x28],0x0
JZ 0x0015a19a
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x38]
CALL 0x00114600
CMP EAX,0x0
JZ 0x0015a19a
MOV qword ptr [RBP + -0x18],0x0
MOV dword ptr [RBP + -0x1c],0x0
LAB_0015a19a:
CMP qword ptr [RBP + -0x28],0x0
SETZ AL
AND AL,0x1
MOVZX EAX,AL
MOV byte ptr [RBP + -0x48],AL
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x60],RAX
MOV EAX,dword ptr [RBP + -0x1c]
MOV dword ptr [RBP + -0x58],EAX
LEA RAX,[0x15a4f0]
MOV qword ptr [RBP + -0x90],RAX
LEA RAX,[0x15a630]
MOV qword ptr [RBP + -0x88],RAX
LEA RAX,[0x15a780]
MOV qword ptr [RBP + -0x80],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x78],RAX
MOV dword ptr [RBP + -0x4c],0x0
MOV dword ptr [RBP + -0x50],0x0
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x68],RAX
LAB_0015a1fd:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x70],RAX
CMP qword ptr [RBP + -0x38],0x0
JZ 0x0015a280
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x480],0x0
JZ 0x0015a280
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x480]
CMP qword ptr [RAX + 0x150],0x0
JZ 0x0015a280
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x480]
MOV RDI,qword ptr [RAX + 0x150]
MOV RSI,qword ptr [RBP + -0x38]
CALL 0x00114100
CMP RAX,0x0
JNZ 0x0015a27e
MOV RDI,qword ptr [RBP + -0x10]
LEA RAX,[0x180ea0]
MOV RDX,qword ptr [RAX]
MOV R8,qword ptr [RBP + -0x28]
MOV ESI,0x1392
XOR EAX,EAX
MOV ECX,EAX
MOV AL,0x0
CALL 0x001307d0
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0015a4de
LAB_0015a27e:
JMP 0x0015a280
LAB_0015a280:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x40]
MOV RAX,qword ptr [RAX + 0x58]
MOV RSI,qword ptr [RBP + -0x10]
LEA RDI,[RBP + -0x90]
CALL RAX
MOV dword ptr [RBP + -0x9c],EAX
CMP dword ptr [RBP + -0x9c],0x0
JNZ 0x0015a2ba
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x8],0x0
JZ 0x0015a2d5
LAB_0015a2ba:
CMP dword ptr [RBP + -0x9c],-0x1
JLE 0x0015a338
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xfe
JZ 0x0015a338
LAB_0015a2d5:
CMP dword ptr [RBP + -0x9c],0x0
JLE 0x0015a2ff
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x9c]
LEA RAX,[0x180ea0]
MOV RDX,qword ptr [RAX]
XOR EAX,EAX
MOV ECX,EAX
MOV AL,0x0
CALL 0x001307d0
JMP 0x0015a32c
LAB_0015a2ff:
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x90],0x0
JNZ 0x0015a32a
MOV RDI,qword ptr [RBP + -0x10]
LEA RAX,[0x180ea0]
MOV RDX,qword ptr [RAX]
MOV ESI,0x7d0
XOR EAX,EAX
MOV ECX,EAX
MOV AL,0x0
CALL 0x001307d0
LAB_0015a32a:
JMP 0x0015a32c
LAB_0015a32c:
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0015a4de
LAB_0015a338:
CMP dword ptr [RBP + -0x9c],-0x1
JNZ 0x0015a353
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001304c0
MOV qword ptr [RBP + -0x98],RAX
JMP 0x0015a35e
LAB_0015a353:
MOVSXD RAX,dword ptr [RBP + -0x44]
MOV qword ptr [RBP + -0x98],RAX
LAB_0015a35e:
MOV EAX,0xffffffff
CMP qword ptr [RBP + -0x98],RAX
JNZ 0x0015a3e9
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x90],0x7dd
JNZ 0x0015a3dd
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0xb8],RAX
LEA RAX,[0x180ea0]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0xb0],RAX
LEA RAX,[0x180eb0]
MOV RAX,qword ptr [RAX + 0x1b8]
MOV qword ptr [RBP + -0xa8],RAX
CALL 0x00114050
MOV RDI,qword ptr [RBP + -0xb8]
MOV RDX,qword ptr [RBP + -0xb0]
MOV RCX,qword ptr [RBP + -0xa8]
MOV R9D,dword ptr [RAX]
MOV ESI,0x7dd
LEA R8,[0x16b459]
MOV AL,0x0
CALL 0x001307d0
LAB_0015a3dd:
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0015a4de
LAB_0015a3e9:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0xfe
JNZ 0x0015a4a6
CMP qword ptr [RBP + -0x98],0x1
JNZ 0x0015a42b
LEA RAX,[0x16aee7]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x48e
MOV qword ptr [RBP + -0x60],RAX
MOV dword ptr [RBP + -0x58],0x15
JMP 0x0015a47a
LAB_0015a42b:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x38],RAX
MOV RDI,qword ptr [RBP + -0x38]
CALL 0x001141a0
MOV dword ptr [RBP + -0xa0],EAX
MOV RAX,qword ptr [RBP + -0x98]
MOV ECX,dword ptr [RBP + -0xa0]
SUB RAX,RCX
SUB RAX,0x2
MOV dword ptr [RBP + -0x58],EAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOV ECX,dword ptr [RBP + -0xa0]
ADD RAX,RCX
ADD RAX,0x2
MOV qword ptr [RBP + -0x60],RAX
LAB_0015a47a:
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x38]
MOV EDX,0x2
CALL 0x00150a10
MOV qword ptr [RBP + -0x40],RAX
CMP RAX,0x0
JNZ 0x0015a4a1
LEA RAX,[0x17fe68]
MOV qword ptr [RBP + -0x40],RAX
LAB_0015a4a1:
JMP 0x0015a1fd
LAB_0015a4a6:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x0
JNZ 0x0015a4d7
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x20]
ADD RSI,0x1
MOV RDX,qword ptr [RBP + -0x98]
CALL 0x00138ef0
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0015a4de
LAB_0015a4d7:
MOV dword ptr [RBP + -0x4],0x1
LAB_0015a4de:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0xc0
POP RBP
RET
|
int4 run_plugin_auth(long param_1,long param_2,int param_3,char *param_4,int8 param_5)
{
int *puVar1;
int *puVar2;
long lVar3;
int iVar4;
char *pcVar5;
int *piVar6;
size_t sVar7;
long local_a0;
code *local_98;
code *local_90;
code *local_88;
long local_80;
int1 *local_78;
int8 local_70;
long local_68;
int local_60;
int4 local_58;
int4 local_54;
int1 local_50;
int local_4c;
int1 *local_48;
char *local_40;
int8 local_38;
char *local_30;
int local_24;
long local_20;
long local_18;
int4 local_c;
local_40 = (char *)0x0;
if ((*(ulong *)(param_1 + 0x370) & 0x80000) != 0) {
if ((*(long *)(param_1 + 0x480) == 0) || (*(long *)(*(long *)(param_1 + 0x480) + 8) == 0)) {
if (param_4 != (char *)0x0) {
local_40 = param_4;
}
}
else {
local_40 = *(char **)(*(long *)(param_1 + 0x480) + 8);
}
}
if (local_40 == (char *)0x0) {
if ((*(ulong *)(param_1 + 0x370) & 0x200) == 0) {
local_40 = "mysql_old_password";
}
else {
local_40 = "mysql_native_password";
}
}
local_38 = param_5;
local_30 = param_4;
local_24 = param_3;
local_20 = param_2;
local_18 = param_1;
local_48 = (int1 *)mysql_client_find_plugin(param_1,local_40,2);
if (local_48 == (int1 *)0x0) {
local_48 = dummy_fallback_client_plugin;
}
*(int4 *)(local_18 + 0x90) = 0;
if ((local_30 != (char *)0x0) && (iVar4 = strcmp(local_30,local_40), iVar4 != 0)) {
local_20 = 0;
local_24 = 0;
}
local_50 = local_30 == (char *)0x0;
local_68 = local_20;
local_60 = local_24;
local_98 = client_mpvio_read_packet;
local_90 = client_mpvio_write_packet;
local_88 = client_mpvio_info;
local_80 = local_18;
local_54 = 0;
local_58 = 0;
local_70 = local_38;
while( true ) {
local_78 = local_48;
if ((((local_40 != (char *)0x0) && (*(long *)(local_18 + 0x480) != 0)) &&
(*(long *)(*(long *)(local_18 + 0x480) + 0x150) != 0)) &&
(pcVar5 = strstr(*(char **)(*(long *)(local_18 + 0x480) + 0x150),local_40),
pcVar5 == (char *)0x0)) {
my_set_error(local_18,0x1392,SQLSTATE_UNKNOWN,0,local_30);
return 1;
}
**(int1 **)(local_18 + 0x20) = 0;
iVar4 = (**(code **)(local_48 + 0x58))(&local_98,local_18);
if (((iVar4 == 0) && (*(long *)(local_18 + 8) == 0)) ||
((-1 < iVar4 && (**(char **)(local_18 + 0x20) != -2)))) {
if (iVar4 < 1) {
if (*(int *)(local_18 + 0x90) == 0) {
my_set_error(local_18,2000,SQLSTATE_UNKNOWN,0);
}
}
else {
my_set_error(local_18,iVar4,SQLSTATE_UNKNOWN,0);
}
return 1;
}
if (iVar4 == -1) {
local_a0 = ma_net_safe_read(local_18);
}
else {
local_a0 = (long)local_4c;
}
lVar3 = local_18;
puVar2 = PTR_s_Lost_connection_to_server_at___s_00181068;
puVar1 = SQLSTATE_UNKNOWN;
if (local_a0 == 0xffffffff) break;
if (**(char **)(local_18 + 0x20) != -2) {
if (**(char **)(local_18 + 0x20) == '\0') {
local_c = ma_read_ok_packet(local_18,*(long *)(local_18 + 0x20) + 1,local_a0);
}
else {
local_c = 1;
}
return local_c;
}
if (local_a0 == 1) {
local_40 = "mysql_old_password";
local_68 = local_18 + 0x48e;
local_60 = 0x15;
}
else {
local_40 = (char *)(*(long *)(local_18 + 0x20) + 1);
sVar7 = strlen(local_40);
local_60 = ((int)local_a0 - (int)sVar7) + -2;
local_68 = *(long *)(local_18 + 0x20) + (sVar7 & 0xffffffff) + 2;
}
local_48 = (int1 *)mysql_client_find_plugin(local_18,local_40,2);
if (local_48 == (int1 *)0x0) {
local_48 = dummy_fallback_client_plugin;
}
}
if (*(int *)(local_18 + 0x90) == 0x7dd) {
piVar6 = __errno_location();
my_set_error(lVar3,0x7dd,puVar1,puVar2,"reading authorization packet",*piVar6);
}
return 1;
}
| |
28,119 | ps_fetch_float | eloqsql/libmariadb/libmariadb/ma_stmt_codec.c | static
void ps_fetch_float(MYSQL_BIND *r_param, const MYSQL_FIELD * field, unsigned char **row)
{
switch(r_param->buffer_type)
{
case MYSQL_TYPE_FLOAT:
{
float *value= (float *)r_param->buffer;
float4get(*value, *row);
r_param->buffer_length= 4;
*r_param->error= 0;
}
break;
default:
{
float value;
memcpy(&value, *row, sizeof(float));
float4get(value, (char *)*row);
convert_from_float(r_param, field, value, sizeof(float));
}
break;
}
(*row)+= 4;
} | O3 | c | ps_fetch_float:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x150, %rsp # imm = 0x150
movq %rdx, %rbx
movq %rdi, %r14
movq %fs:0x28, %rax
movq %rax, -0x28(%rbp)
movl 0x60(%rdi), %r12d
cmpl $0x4, %r12d
jne 0x267b6
movq 0x10(%r14), %rax
movq (%rbx), %rcx
movl (%rcx), %ecx
movl %ecx, (%rax)
movq $0x4, 0x40(%r14)
movq 0x18(%r14), %rax
movb $0x0, (%rax)
jmp 0x26a67
movq %rsi, %r15
movq (%rbx), %rax
movss (%rax), %xmm1
xorps %xmm0, %xmm0
ucomiss %xmm0, %xmm1
movaps %xmm1, -0x170(%rbp)
jbe 0x267dd
movaps %xmm1, %xmm0
callq 0x131a0
cvtss2sd %xmm0, %xmm0
jmp 0x267f7
movaps 0x159ac(%rip), %xmm0 # 0x3c190
xorps %xmm1, %xmm0
callq 0x131a0
cvtss2sd %xmm0, %xmm0
xorps 0x159a9(%rip), %xmm0 # 0x3c1a0
decl %r12d
cmpl $0xc, %r12d
ja 0x268ad
movq 0x10(%r14), %rax
leaq 0x15851(%rip), %rcx # 0x3c060
movslq (%rcx,%r12,4), %rdx
addq %rcx, %rdx
jmpq *%rdx
cmpb $0x0, 0x65(%r14)
movaps -0x170(%rbp), %xmm1
cvttss2si %xmm1, %ecx
je 0x2692b
movzwl %cx, %edx
jmp 0x2692e
cmpb $0x0, 0x65(%r14)
movaps -0x170(%rbp), %xmm1
je 0x26a3d
cvttss2si %xmm1, %rcx
movq %rcx, %rdx
subss 0x107ac(%rip), %xmm1 # 0x37004
cvttss2si %xmm1, %rsi
sarq $0x3f, %rdx
andq %rdx, %rsi
orq %rcx, %rsi
movq %rsi, %xmm2
punpckldq 0x1593c(%rip), %xmm2 # xmm2 = xmm2[0],mem[0],xmm2[1],mem[1]
subpd 0x15944(%rip), %xmm2 # 0x3c1c0
movq %rsi, (%rax)
movapd %xmm2, %xmm1
unpckhpd %xmm2, %xmm1 # xmm1 = xmm1[1],xmm2[1]
addsd %xmm2, %xmm1
jmp 0x26a4d
cvttss2si -0x170(%rbp), %ecx
movb %cl, (%rax)
cmpb $0x0, 0x65(%r14)
je 0x26957
movzbl %cl, %eax
jmp 0x2695a
movl 0x68(%r15), %edi
cmpl $0x1f, %edi
movaps -0x170(%rbp), %xmm0
jb 0x26980
movq 0x40(%r14), %rax
movl $0x12b, %esi # imm = 0x12B
cmpq %rsi, %rax
cmovbq %rax, %rsi
cvtss2sd %xmm0, %xmm0
leaq -0x160(%rbp), %rdx
xorl %edi, %edi
xorl %ecx, %ecx
callq 0x2940d
jmp 0x26992
cmpb $0x0, 0x65(%r14)
movaps -0x170(%rbp), %xmm1
cvttss2si %xmm1, %ecx
cvttss2si %xmm1, %rdx
cmovnel %edx, %ecx
je 0x26a17
movl %edx, %edx
xorps %xmm1, %xmm1
cvtsi2sd %rdx, %xmm1
jmp 0x26a1f
xorps %xmm0, %xmm0
cvtss2sd -0x170(%rbp), %xmm0
movsd %xmm0, (%rax)
jmp 0x26a5f
movswl %cx, %edx
xorps %xmm1, %xmm1
cvtsi2sd %edx, %xmm1
movw %cx, (%rax)
ucomisd %xmm1, %xmm0
setp %al
setne %cl
orb %al, %cl
movq 0x18(%r14), %rax
movb %cl, (%rax)
movq $0x2, 0x40(%r14)
jmp 0x26a67
movsbl %cl, %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
ucomisd %xmm1, %xmm0
setp %al
setne %cl
orb %al, %cl
movq 0x18(%r14), %rax
movb %cl, (%rax)
movq $0x1, 0x40(%r14)
jmp 0x26a67
cvtss2sd %xmm0, %xmm0
leaq -0x160(%rbp), %rsi
xorl %edx, %edx
callq 0x27e30
testb $0x40, 0x64(%r15)
jne 0x2699e
movq %rax, %r15
jmp 0x26a03
movq 0x38(%r15), %r15
movq %r15, %rdx
subq %rax, %rdx
setb %cl
cmpq $0x12c, %r15 # imm = 0x12C
setae %sil
orb %cl, %sil
jne 0x26a67
testq %rax, %rax
je 0x269ed
leaq -0x160(%rbp), %rsi
leaq (%rax,%rsi), %rcx
decq %rcx
negq %rax
addq %r15, %rsi
decq %rsi
xorl %edi, %edi
movb (%rcx,%rdi), %r8b
movb %r8b, (%rsi,%rdi)
decq %rdi
cmpq %rdi, %rax
jne 0x269dd
leaq -0x160(%rbp), %rdi
movl $0x12c, %ecx # imm = 0x12C
movl $0x30, %esi
callq 0x13630
leaq -0x160(%rbp), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x27525
jmp 0x26a67
cvttps2dq %xmm1, %xmm1
cvtdq2pd %xmm1, %xmm1
movl %ecx, (%rax)
ucomisd %xmm1, %xmm0
setp %al
setne %cl
orb %al, %cl
movq 0x18(%r14), %rax
movb %cl, (%rax)
movq $0x4, 0x40(%r14)
jmp 0x26a67
cvttss2si %xmm1, %rcx
movq %rcx, (%rax)
xorps %xmm1, %xmm1
cvtsi2sd %rcx, %xmm1
ucomisd %xmm1, %xmm0
setp %al
setne %cl
orb %al, %cl
movq 0x18(%r14), %rax
movb %cl, (%rax)
movq $0x8, 0x40(%r14)
addq $0x4, (%rbx)
movq %fs:0x28, %rax
cmpq -0x28(%rbp), %rax
jne 0x26a8a
addq $0x150, %rsp # imm = 0x150
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x13500
| ps_fetch_float:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 150h
mov rbx, rdx
mov r14, rdi
mov rax, fs:28h
mov [rbp+var_28], rax
mov r12d, [rdi+60h]
cmp r12d, 4
jnz short loc_267B6
mov rax, [r14+10h]
mov rcx, [rbx]
mov ecx, [rcx]
mov [rax], ecx
mov qword ptr [r14+40h], 4
mov rax, [r14+18h]
mov byte ptr [rax], 0
jmp loc_26A67
loc_267B6:
mov r15, rsi
mov rax, [rbx]
movss xmm1, dword ptr [rax]
xorps xmm0, xmm0
ucomiss xmm1, xmm0
movaps [rbp+var_170], xmm1
jbe short loc_267DD
movaps xmm0, xmm1
call _floorf
cvtss2sd xmm0, xmm0
jmp short loc_267F7
loc_267DD:
movaps xmm0, cs:xmmword_3C190
xorps xmm0, xmm1
call _floorf
cvtss2sd xmm0, xmm0
xorps xmm0, cs:xmmword_3C1A0
loc_267F7:
dec r12d; switch 13 cases
cmp r12d, 0Ch
ja def_26816; jumptable 0000000000026816 default case, cases 4,6,7,9-12
mov rax, [r14+10h]
lea rcx, jpt_26816
movsxd rdx, ds:(jpt_26816 - 3C060h)[rcx+r12*4]
add rdx, rcx
jmp rdx; switch jump
loc_26818:
cmp byte ptr [r14+65h], 0; jumptable 0000000000026816 cases 2,13
movaps xmm1, [rbp+var_170]
cvttss2si ecx, xmm1
jz loc_2692B
movzx edx, cx
jmp loc_2692E
loc_26836:
cmp byte ptr [r14+65h], 0; jumptable 0000000000026816 case 8
movaps xmm1, [rbp+var_170]
jz loc_26A3D
cvttss2si rcx, xmm1
mov rdx, rcx
subss xmm1, cs:dword_37004
cvttss2si rsi, xmm1
sar rdx, 3Fh
and rsi, rdx
or rsi, rcx
movq xmm2, rsi
punpckldq xmm2, cs:xmmword_3C1B0
subpd xmm2, cs:xmmword_3C1C0
mov [rax], rsi
movapd xmm1, xmm2
unpckhpd xmm1, xmm2
addsd xmm1, xmm2
jmp loc_26A4D
loc_26890:
cvttss2si ecx, dword ptr [rbp+var_170]; jumptable 0000000000026816 case 1
mov [rax], cl
cmp byte ptr [r14+65h], 0
jz loc_26957
movzx eax, cl
jmp loc_2695A
def_26816:
mov edi, [r15+68h]; jumptable 0000000000026816 default case, cases 4,6,7,9-12
cmp edi, 1Fh
movaps xmm0, [rbp+var_170]
jb loc_26980
mov rax, [r14+40h]
mov esi, 12Bh
cmp rax, rsi
cmovb rsi, rax
cvtss2sd xmm0, xmm0
lea rdx, [rbp+var_160]
xor edi, edi
xor ecx, ecx
call ma_gcvt
jmp loc_26992
loc_268EA:
cmp byte ptr [r14+65h], 0; jumptable 0000000000026816 case 3
movaps xmm1, [rbp+var_170]
cvttss2si ecx, xmm1
cvttss2si rdx, xmm1
cmovnz ecx, edx
jz loc_26A17
mov edx, edx
xorps xmm1, xmm1
cvtsi2sd xmm1, rdx
jmp loc_26A1F
loc_26917:
xorps xmm0, xmm0; jumptable 0000000000026816 case 5
cvtss2sd xmm0, dword ptr [rbp+var_170]
movsd qword ptr [rax], xmm0
jmp loc_26A5F
loc_2692B:
movsx edx, cx
loc_2692E:
xorps xmm1, xmm1
cvtsi2sd xmm1, edx
mov [rax], cx
ucomisd xmm0, xmm1
setp al
setnz cl
or cl, al
mov rax, [r14+18h]
mov [rax], cl
mov qword ptr [r14+40h], 2
jmp loc_26A67
loc_26957:
movsx eax, cl
loc_2695A:
xorps xmm1, xmm1
cvtsi2sd xmm1, eax
ucomisd xmm0, xmm1
setp al
setnz cl
or cl, al
mov rax, [r14+18h]
mov [rax], cl
mov qword ptr [r14+40h], 1
jmp loc_26A67
loc_26980:
cvtss2sd xmm0, xmm0
lea rsi, [rbp+var_160]
xor edx, edx
call ma_fcvt
loc_26992:
test byte ptr [r15+64h], 40h
jnz short loc_2699E
mov r15, rax
jmp short loc_26A03
loc_2699E:
mov r15, [r15+38h]
mov rdx, r15
sub rdx, rax
setb cl
cmp r15, 12Ch
setnb sil
or sil, cl
jnz loc_26A67
test rax, rax
jz short loc_269ED
lea rsi, [rbp+var_160]
lea rcx, [rax+rsi]
dec rcx
neg rax
add rsi, r15
dec rsi
xor edi, edi
loc_269DD:
mov r8b, [rcx+rdi]
mov [rsi+rdi], r8b
dec rdi
cmp rax, rdi
jnz short loc_269DD
loc_269ED:
lea rdi, [rbp+var_160]
mov ecx, 12Ch
mov esi, 30h ; '0'
call ___memset_chk
loc_26A03:
lea rsi, [rbp+var_160]
mov rdi, r14
mov rdx, r15
call convert_froma_string
jmp short loc_26A67
loc_26A17:
cvttps2dq xmm1, xmm1
cvtdq2pd xmm1, xmm1
loc_26A1F:
mov [rax], ecx
ucomisd xmm0, xmm1
setp al
setnz cl
or cl, al
mov rax, [r14+18h]
mov [rax], cl
mov qword ptr [r14+40h], 4
jmp short loc_26A67
loc_26A3D:
cvttss2si rcx, xmm1
mov [rax], rcx
xorps xmm1, xmm1
cvtsi2sd xmm1, rcx
loc_26A4D:
ucomisd xmm0, xmm1
setp al
setnz cl
or cl, al
mov rax, [r14+18h]
mov [rax], cl
loc_26A5F:
mov qword ptr [r14+40h], 8
loc_26A67:
add qword ptr [rbx], 4
mov rax, fs:28h
cmp rax, [rbp+var_28]
jnz short loc_26A8A
add rsp, 150h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_26A8A:
call ___stack_chk_fail
| unsigned long long ps_fetch_float(long long a1, long long a2, _DWORD **a3)
{
int v5; // r12d
double v7; // xmm1_8
double v8; // xmm0_8
_BYTE *v9; // rax
int v10; // ecx
int v11; // edx
__m128d v12; // xmm2
double v13; // xmm1_8
int v14; // ecx
int v15; // eax
long long v16; // rdi
long long v17; // rsi
unsigned long long v18; // rax
int v19; // ecx
double v20; // xmm1_8
unsigned long long v21; // r15
unsigned long long v22; // rdx
_BYTE *v23; // rcx
long long v24; // rax
long long v25; // rdi
long long v26; // rcx
__m128 v28; // [rsp+0h] [rbp-170h]
_BYTE v29[312]; // [rsp+10h] [rbp-160h] BYREF
unsigned long long v30; // [rsp+148h] [rbp-28h]
v30 = __readfsqword(0x28u);
v5 = *(_DWORD *)(a1 + 96);
if ( v5 == 4 )
{
**(_DWORD **)(a1 + 16) = **a3;
*(_QWORD *)(a1 + 64) = 4LL;
**(_BYTE **)(a1 + 24) = 0;
}
else
{
*(_QWORD *)&v7 = (unsigned int)**a3;
v28 = (__m128)(unsigned int)**a3;
if ( *(float *)&v7 <= 0.0 )
v8 = -floorf(COERCE_DOUBLE(*(_QWORD *)&v7 ^ 0x8000000080000000LL));
else
v8 = floorf(v7);
v9 = *(_BYTE **)(a1 + 16);
switch ( v5 )
{
case 1:
v14 = (int)v28.m128_f32[0];
*v9 = (int)v28.m128_f32[0];
if ( *(_BYTE *)(a1 + 101) )
v15 = (unsigned __int8)v14;
else
v15 = (char)v14;
**(_BYTE **)(a1 + 24) = v8 != (double)v15;
*(_QWORD *)(a1 + 64) = 1LL;
break;
case 2:
case 13:
v10 = (int)v28.m128_f32[0];
if ( *(_BYTE *)(a1 + 101) )
v11 = (unsigned __int16)v10;
else
v11 = (__int16)v10;
*(_WORD *)v9 = v10;
**(_BYTE **)(a1 + 24) = v8 != (double)v11;
*(_QWORD *)(a1 + 64) = 2LL;
break;
case 3:
v19 = (int)v28.m128_f32[0];
if ( *(_BYTE *)(a1 + 101) )
{
v19 = (int)v28.m128_f32[0];
v20 = (double)(int)v28.m128_f32[0];
}
else
{
*(_QWORD *)&v20 = *(_OWORD *)&_mm_cvtepi32_pd(_mm_cvttps_epi32(v28));
}
*(_DWORD *)v9 = v19;
**(_BYTE **)(a1 + 24) = v8 != v20;
*(_QWORD *)(a1 + 64) = 4LL;
break;
case 5:
*(double *)v9 = v28.m128_f32[0];
goto LABEL_37;
case 8:
if ( *(_BYTE *)(a1 + 101) )
{
v12 = _mm_sub_pd(
(__m128d)_mm_unpacklo_epi32((__m128i)(unsigned int)(int)v28.m128_f32[0], (__m128i)xmmword_3C1B0),
(__m128d)xmmword_3C1C0);
*(_QWORD *)v9 = (unsigned int)(int)v28.m128_f32[0];
v13 = _mm_unpackhi_pd(v12, v12).m128d_f64[0] + v12.m128d_f64[0];
}
else
{
v26 = (unsigned int)(int)v28.m128_f32[0];
*(_QWORD *)v9 = v26;
v13 = (double)(int)v26;
}
**(_BYTE **)(a1 + 24) = v8 != v13;
LABEL_37:
*(_QWORD *)(a1 + 64) = 8LL;
break;
default:
v16 = *(unsigned int *)(a2 + 104);
if ( (unsigned int)v16 < 0x1F )
{
v18 = ma_fcvt(v16, v29, 0LL, v28.m128_f32[0]);
}
else
{
v17 = 299LL;
if ( *(_QWORD *)(a1 + 64) < 0x12BuLL )
v17 = *(_QWORD *)(a1 + 64);
v18 = ma_gcvt(0LL, v17, v29, 0LL, v28.m128_f32[0]);
}
if ( (*(_BYTE *)(a2 + 100) & 0x40) != 0 )
{
v21 = *(_QWORD *)(a2 + 56);
v22 = v21 - v18;
if ( v21 < v18 || v21 >= 0x12C )
break;
if ( v18 )
{
v23 = &v29[v18 - 1];
v24 = -(long long)v18;
v25 = 0LL;
do
{
v29[v21 - 1 + v25] = v23[v25];
--v25;
}
while ( v24 != v25 );
}
__memset_chk(v29, 48LL, v22, 300LL);
}
else
{
v21 = v18;
}
convert_froma_string(a1, v29, v21);
break;
}
}
++*a3;
return __readfsqword(0x28u);
}
| ps_fetch_float:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x150
MOV RBX,RDX
MOV R14,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x28],RAX
MOV R12D,dword ptr [RDI + 0x60]
CMP R12D,0x4
JNZ 0x001267b6
MOV RAX,qword ptr [R14 + 0x10]
MOV RCX,qword ptr [RBX]
MOV ECX,dword ptr [RCX]
MOV dword ptr [RAX],ECX
MOV qword ptr [R14 + 0x40],0x4
MOV RAX,qword ptr [R14 + 0x18]
MOV byte ptr [RAX],0x0
JMP 0x00126a67
LAB_001267b6:
MOV R15,RSI
MOV RAX,qword ptr [RBX]
MOVSS XMM1,dword ptr [RAX]
XORPS XMM0,XMM0
UCOMISS XMM1,XMM0
MOVAPS xmmword ptr [RBP + -0x170],XMM1
JBE 0x001267dd
MOVAPS XMM0,XMM1
CALL 0x001131a0
CVTSS2SD XMM0,XMM0
JMP 0x001267f7
LAB_001267dd:
MOVAPS XMM0,xmmword ptr [0x0013c190]
XORPS XMM0,XMM1
CALL 0x001131a0
CVTSS2SD XMM0,XMM0
XORPS XMM0,xmmword ptr [0x0013c1a0]
LAB_001267f7:
DEC R12D
CMP R12D,0xc
JA 0x001268ad
MOV RAX,qword ptr [R14 + 0x10]
LEA RCX,[0x13c060]
MOVSXD RDX,dword ptr [RCX + R12*0x4]
ADD RDX,RCX
switchD:
JMP RDX
caseD_2:
CMP byte ptr [R14 + 0x65],0x0
MOVAPS XMM1,xmmword ptr [RBP + -0x170]
CVTTSS2SI ECX,XMM1
JZ 0x0012692b
MOVZX EDX,CX
JMP 0x0012692e
caseD_8:
CMP byte ptr [R14 + 0x65],0x0
MOVAPS XMM1,xmmword ptr [RBP + -0x170]
JZ 0x00126a3d
CVTTSS2SI RCX,XMM1
MOV RDX,RCX
SUBSS XMM1,dword ptr [0x00137004]
CVTTSS2SI RSI,XMM1
SAR RDX,0x3f
AND RSI,RDX
OR RSI,RCX
MOVQ XMM2,RSI
PUNPCKLDQ XMM2,xmmword ptr [0x0013c1b0]
SUBPD XMM2,xmmword ptr [0x0013c1c0]
MOV qword ptr [RAX],RSI
MOVAPD XMM1,XMM2
UNPCKHPD XMM1,XMM2
ADDSD XMM1,XMM2
JMP 0x00126a4d
caseD_1:
CVTTSS2SI ECX,dword ptr [RBP + -0x170]
MOV byte ptr [RAX],CL
CMP byte ptr [R14 + 0x65],0x0
JZ 0x00126957
MOVZX EAX,CL
JMP 0x0012695a
caseD_4:
MOV EDI,dword ptr [R15 + 0x68]
CMP EDI,0x1f
MOVAPS XMM0,xmmword ptr [RBP + -0x170]
JC 0x00126980
MOV RAX,qword ptr [R14 + 0x40]
MOV ESI,0x12b
CMP RAX,RSI
CMOVC RSI,RAX
CVTSS2SD XMM0,XMM0
LEA RDX,[RBP + -0x160]
XOR EDI,EDI
XOR ECX,ECX
CALL 0x0012940d
JMP 0x00126992
caseD_3:
CMP byte ptr [R14 + 0x65],0x0
MOVAPS XMM1,xmmword ptr [RBP + -0x170]
CVTTSS2SI ECX,XMM1
CVTTSS2SI RDX,XMM1
CMOVNZ ECX,EDX
JZ 0x00126a17
MOV EDX,EDX
XORPS XMM1,XMM1
CVTSI2SD XMM1,RDX
JMP 0x00126a1f
caseD_5:
XORPS XMM0,XMM0
CVTSS2SD XMM0,dword ptr [RBP + -0x170]
MOVSD qword ptr [RAX],XMM0
JMP 0x00126a5f
LAB_0012692b:
MOVSX EDX,CX
LAB_0012692e:
XORPS XMM1,XMM1
CVTSI2SD XMM1,EDX
MOV word ptr [RAX],CX
UCOMISD XMM0,XMM1
SETP AL
SETNZ CL
OR CL,AL
MOV RAX,qword ptr [R14 + 0x18]
MOV byte ptr [RAX],CL
MOV qword ptr [R14 + 0x40],0x2
JMP 0x00126a67
LAB_00126957:
MOVSX EAX,CL
LAB_0012695a:
XORPS XMM1,XMM1
CVTSI2SD XMM1,EAX
UCOMISD XMM0,XMM1
SETP AL
SETNZ CL
OR CL,AL
MOV RAX,qword ptr [R14 + 0x18]
MOV byte ptr [RAX],CL
MOV qword ptr [R14 + 0x40],0x1
JMP 0x00126a67
LAB_00126980:
CVTSS2SD XMM0,XMM0
LEA RSI,[RBP + -0x160]
XOR EDX,EDX
CALL 0x00127e30
LAB_00126992:
TEST byte ptr [R15 + 0x64],0x40
JNZ 0x0012699e
MOV R15,RAX
JMP 0x00126a03
LAB_0012699e:
MOV R15,qword ptr [R15 + 0x38]
MOV RDX,R15
SUB RDX,RAX
SETC CL
CMP R15,0x12c
SETNC SIL
OR SIL,CL
JNZ 0x00126a67
TEST RAX,RAX
JZ 0x001269ed
LEA RSI,[RBP + -0x160]
LEA RCX,[RAX + RSI*0x1]
DEC RCX
NEG RAX
ADD RSI,R15
DEC RSI
XOR EDI,EDI
LAB_001269dd:
MOV R8B,byte ptr [RCX + RDI*0x1]
MOV byte ptr [RSI + RDI*0x1],R8B
DEC RDI
CMP RAX,RDI
JNZ 0x001269dd
LAB_001269ed:
LEA RDI,[RBP + -0x160]
MOV ECX,0x12c
MOV ESI,0x30
CALL 0x00113630
LAB_00126a03:
LEA RSI,[RBP + -0x160]
MOV RDI,R14
MOV RDX,R15
CALL 0x00127525
JMP 0x00126a67
LAB_00126a17:
CVTTPS2DQ XMM1,XMM1
CVTDQ2PD XMM1,XMM1
LAB_00126a1f:
MOV dword ptr [RAX],ECX
UCOMISD XMM0,XMM1
SETP AL
SETNZ CL
OR CL,AL
MOV RAX,qword ptr [R14 + 0x18]
MOV byte ptr [RAX],CL
MOV qword ptr [R14 + 0x40],0x4
JMP 0x00126a67
LAB_00126a3d:
CVTTSS2SI RCX,XMM1
MOV qword ptr [RAX],RCX
XORPS XMM1,XMM1
CVTSI2SD XMM1,RCX
LAB_00126a4d:
UCOMISD XMM0,XMM1
SETP AL
SETNZ CL
OR CL,AL
MOV RAX,qword ptr [R14 + 0x18]
MOV byte ptr [RAX],CL
LAB_00126a5f:
MOV qword ptr [R14 + 0x40],0x8
LAB_00126a67:
ADD qword ptr [RBX],0x4
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x28]
JNZ 0x00126a8a
ADD RSP,0x150
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_00126a8a:
CALL 0x00113500
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void ps_fetch_float(long param_1,long param_2,long *param_3)
{
double *pdVar1;
ulong uVar2;
ulong uVar3;
char cVar4;
short sVar5;
int iVar6;
uint uVar7;
double dVar8;
long lVar9;
long in_FS_OFFSET;
float fVar10;
double dVar11;
double dVar12;
int1 auVar13 [16];
double dVar14;
int1 local_178 [16];
int1 local_168 [312];
long local_30;
local_30 = *(long *)(in_FS_OFFSET + 0x28);
iVar6 = *(int *)(param_1 + 0x60);
if (iVar6 == 4) {
**(int4 **)(param_1 + 0x10) = *(int4 *)*param_3;
*(int8 *)(param_1 + 0x40) = 4;
**(int1 **)(param_1 + 0x18) = 0;
goto LAB_00126a67;
}
fVar10 = *(float *)*param_3;
local_178 = ZEXT416((uint)fVar10);
if (fVar10 <= 0.0) {
fVar10 = floorf((float)(_DAT_0013c190 ^ (uint)fVar10));
dVar11 = (double)CONCAT44((uint)((ulong)(double)fVar10 >> 0x20) ^ _UNK_0013c1a4,
SUB84((double)fVar10,0) ^ _DAT_0013c1a0);
}
else {
fVar10 = floorf(fVar10);
dVar11 = (double)fVar10;
}
if (0xc < iVar6 - 1U) {
switchD_00126816_caseD_4:
if (*(uint *)(param_2 + 0x68) < 0x1f) {
uVar3 = ma_fcvt((double)(float)local_178._0_4_,*(uint *)(param_2 + 0x68),local_168,0);
}
else {
uVar3 = 299;
if (*(ulong *)(param_1 + 0x40) < 299) {
uVar3 = *(ulong *)(param_1 + 0x40);
}
uVar3 = ma_gcvt((double)(float)local_178._0_4_,0,uVar3,local_168,0);
}
if ((*(byte *)(param_2 + 100) & 0x40) != 0) {
uVar2 = *(ulong *)(param_2 + 0x38);
if (299 < uVar2 || uVar2 < uVar3) goto LAB_00126a67;
if (uVar3 != 0) {
lVar9 = 0;
do {
local_178[lVar9 + uVar2 + 0xf] = local_178[lVar9 + uVar3 + 0xf];
lVar9 = lVar9 + -1;
} while (-lVar9 != uVar3);
}
__memset_chk(local_168,0x30,uVar2 - uVar3,300);
uVar3 = uVar2;
}
convert_froma_string(param_1,local_168,uVar3);
goto LAB_00126a67;
}
pdVar1 = *(double **)(param_1 + 0x10);
switch(iVar6) {
case 1:
cVar4 = (char)(int)(float)local_178._0_4_;
*(char *)pdVar1 = cVar4;
if (*(char *)(param_1 + 0x65) == '\0') {
uVar7 = (uint)cVar4;
}
else {
uVar7 = (int)(float)local_178._0_4_ & 0xff;
}
*(bool *)*(int8 *)(param_1 + 0x18) = dVar11 != (double)(int)uVar7;
*(int8 *)(param_1 + 0x40) = 1;
break;
case 2:
case 0xd:
sVar5 = (short)(int)(float)local_178._0_4_;
if (*(char *)(param_1 + 0x65) == '\0') {
uVar7 = (uint)sVar5;
}
else {
uVar7 = (int)(float)local_178._0_4_ & 0xffff;
}
*(short *)pdVar1 = sVar5;
*(bool *)*(int8 *)(param_1 + 0x18) = dVar11 != (double)(int)uVar7;
*(int8 *)(param_1 + 0x40) = 2;
break;
case 3:
iVar6 = (int)(float)local_178._0_4_;
if (*(char *)(param_1 + 0x65) == '\0') {
dVar14 = (double)(int)(float)local_178._0_4_;
}
else {
iVar6 = (int)(long)(float)local_178._0_4_;
dVar14 = (double)((long)(float)local_178._0_4_ & 0xffffffff);
}
*(int *)pdVar1 = iVar6;
*(bool *)*(int8 *)(param_1 + 0x18) = dVar11 != dVar14;
*(int8 *)(param_1 + 0x40) = 4;
break;
default:
goto switchD_00126816_caseD_4;
case 5:
*pdVar1 = (double)(float)local_178._0_4_;
goto LAB_00126a5f;
case 8:
if (*(char *)(param_1 + 0x65) == '\0') {
*pdVar1 = (double)(long)(float)local_178._0_4_;
dVar14 = (double)(long)(float)local_178._0_4_;
}
else {
dVar8 = (double)((long)((float)local_178._0_4_ - _DAT_00137004) &
(long)(float)local_178._0_4_ >> 0x3f | (long)(float)local_178._0_4_);
auVar13._8_4_ = (int)((ulong)dVar8 >> 0x20);
auVar13._0_8_ = dVar8;
auVar13._12_4_ = _UNK_0013c1b4;
dVar12 = (double)CONCAT44(_DAT_0013c1b0,SUB84(dVar8,0)) - _DAT_0013c1c0;
dVar14 = auVar13._8_8_ - _UNK_0013c1c8;
*pdVar1 = dVar8;
dVar14 = dVar14 + dVar12;
}
*(bool *)*(int8 *)(param_1 + 0x18) = dVar11 != dVar14;
LAB_00126a5f:
*(int8 *)(param_1 + 0x40) = 8;
}
LAB_00126a67:
*param_3 = *param_3 + 4;
if (*(long *)(in_FS_OFFSET + 0x28) == local_30) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
28,120 | my_thread_global_end | eloqsql/mysys/my_thr_init.c | void my_thread_global_end(void)
{
struct timespec abstime;
my_bool all_threads_killed= 1;
set_timespec(abstime, my_thread_end_wait_time);
mysql_mutex_lock(&THR_LOCK_threads);
while (THR_thread_count > 0)
{
int error= mysql_cond_timedwait(&THR_COND_threads, &THR_LOCK_threads,
&abstime);
if (error == ETIMEDOUT || error == ETIME)
{
#ifdef HAVE_PTHREAD_KILL
/*
We shouldn't give an error here, because if we don't have
pthread_kill(), programs like mysqld can't ensure that all threads
are killed when we enter here.
*/
if (THR_thread_count)
fprintf(stderr,
"Error in my_thread_global_end(): %d threads didn't exit\n",
THR_thread_count);
#endif
all_threads_killed= 0;
break;
}
}
mysql_mutex_unlock(&THR_LOCK_threads);
my_thread_destroy_common_mutex();
/*
Only destroy the mutex & conditions if we don't have other threads around
that could use them.
*/
if (all_threads_killed)
{
my_thread_destroy_internal_mutex();
}
my_thread_global_init_done= 0;
} | O3 | c | my_thread_global_end:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
callq 0x9e560
imulq $0x3e8, %rax, %rax # imm = 0x3E8
leaq 0x2e3e05(%rip), %rcx # 0x385ba8
movl (%rcx), %ecx
imulq $0x3b9aca00, %rcx, %rcx # imm = 0x3B9ACA00
addq %rax, %rcx
movq %rcx, %rax
shrq $0x9, %rax
movabsq $0x44b82fa09b5a53, %rdx # imm = 0x44B82FA09B5A53
mulq %rdx
shrq $0xb, %rdx
movq %rdx, -0x38(%rbp)
imulq $0x3b9aca00, %rdx, %rax # imm = 0x3B9ACA00
subq %rax, %rcx
movq %rcx, -0x30(%rbp)
leaq 0xb66b48(%rip), %rax # 0xc08928
cmpq $0x0, 0x40(%rax)
jne 0xa1eb6
leaq 0xb66b36(%rip), %rdi # 0xc08928
callq 0x29220
leaq 0xb6692a(%rip), %r12 # 0xc08728
leaq 0xb66bb3(%rip), %r14 # 0xc089b8
leaq 0xb66b1c(%rip), %rbx # 0xc08928
leaq -0x38(%rbp), %r15
movl (%r12), %r13d
testl %r13d, %r13d
je 0xa1e7c
cmpq $0x0, 0x30(%r14)
jne 0xa1e3a
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x29680
cmpl $0x6e, %eax
je 0xa1e57
cmpl $0x3e, %eax
jne 0xa1e10
jmp 0xa1e57
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
leaq 0x3a938(%rip), %rcx # 0xdc782
movl $0xd2, %r8d
callq 0x2ef10
jmp 0xa1e2e
movl (%r12), %ecx
testl %ecx, %ecx
je 0xa1e7c
movq 0x2e214a(%rip), %rax # 0x383fb0
movq (%rax), %rdi
leaq 0x3a94f(%rip), %rdx # 0xdc7bf
movl $0x1, %esi
xorl %eax, %eax
callq 0x29200
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
jne 0xa1ec0
leaq 0xb66a9c(%rip), %rdi # 0xc08928
callq 0x291e0
callq 0xa1684
testl %r13d, %r13d
jne 0xa1ea0
callq 0xa17e7
movb $0x0, 0xb66b49(%rip) # 0xc089f0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2efca
jmp 0xa1df7
leaq 0x2e4149(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0xa1e85
| my_thread_global_end:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
call my_hrtime
imul rax, 3E8h
lea rcx, my_thread_end_wait_time
mov ecx, [rcx]
imul rcx, 3B9ACA00h
add rcx, rax
mov rax, rcx
shr rax, 9
mov rdx, 44B82FA09B5A53h
mul rdx
shr rdx, 0Bh
mov [rbp+var_38], rdx
imul rax, rdx, 3B9ACA00h
sub rcx, rax
mov [rbp+var_30], rcx
lea rax, THR_LOCK_threads
cmp qword ptr [rax+40h], 0
jnz loc_A1EB6
lea rdi, THR_LOCK_threads
call _pthread_mutex_lock
loc_A1DF7:
lea r12, THR_thread_count
lea r14, THR_COND_threads
lea rbx, THR_LOCK_threads
lea r15, [rbp+var_38]
loc_A1E10:
mov r13d, [r12]
test r13d, r13d
jz short loc_A1E7C
cmp qword ptr [r14+30h], 0
jnz short loc_A1E3A
mov rdi, r14
mov rsi, rbx
mov rdx, r15
call _pthread_cond_timedwait
loc_A1E2E:
cmp eax, 6Eh ; 'n'
jz short loc_A1E57
cmp eax, 3Eh ; '>'
jnz short loc_A1E10
jmp short loc_A1E57
loc_A1E3A:
mov rdi, r14
mov rsi, rbx
mov rdx, r15
lea rcx, aWorkspaceLlm4b_22; "/workspace/llm4binary/github2025/eloqsq"...
mov r8d, 0D2h
call psi_cond_timedwait
jmp short loc_A1E2E
loc_A1E57:
mov ecx, [r12]
test ecx, ecx
jz short loc_A1E7C
mov rax, cs:stderr_ptr
mov rdi, [rax]
lea rdx, aErrorInMyThrea; "Error in my_thread_global_end(): %d thr"...
mov esi, 1
xor eax, eax
call ___fprintf_chk
loc_A1E7C:
mov rdi, [rbx+40h]
test rdi, rdi
jnz short loc_A1EC0
loc_A1E85:
lea rdi, THR_LOCK_threads
call _pthread_mutex_unlock
call my_thread_destroy_common_mutex
test r13d, r13d
jnz short loc_A1EA0
call my_thread_destroy_internal_mutex
loc_A1EA0:
mov cs:my_thread_global_init_done, 0
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_A1EB6:
call my_thread_global_end_cold_1
jmp loc_A1DF7
loc_A1EC0:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_A1E85
| long long my_thread_global_end()
{
unsigned long long v0; // rax
int v1; // r13d
int v2; // eax
long long result; // rax
_QWORD v4[7]; // [rsp+8h] [rbp-38h] BYREF
v0 = my_hrtime();
v4[0] = (1000 * v0 + 1000000000LL * my_thread_end_wait_time) / 0x3B9ACA00;
v4[1] = (1000 * v0 + 1000000000LL * my_thread_end_wait_time) % 0x3B9ACA00;
if ( THR_LOCK_threads[8] )
my_thread_global_end_cold_1();
else
pthread_mutex_lock(THR_LOCK_threads);
while ( 1 )
{
v1 = THR_thread_count;
if ( !THR_thread_count )
break;
if ( THR_COND_threads[6] )
v2 = psi_cond_timedwait(
(long long)THR_COND_threads,
(long long)THR_LOCK_threads,
(long long)v4,
(long long)"/workspace/llm4binary/github2025/eloqsql/mysys/my_thr_init.c",
0xD2u);
else
v2 = pthread_cond_timedwait(THR_COND_threads, THR_LOCK_threads, v4);
if ( v2 == 110 || v2 == 62 )
{
if ( THR_thread_count )
__fprintf_chk(stderr, 1LL, "Error in my_thread_global_end(): %d threads didn't exit\n", THR_thread_count);
break;
}
}
if ( THR_LOCK_threads[8] )
PSI_server[44]();
pthread_mutex_unlock(THR_LOCK_threads);
result = my_thread_destroy_common_mutex();
if ( !v1 )
result = my_thread_destroy_internal_mutex();
my_thread_global_init_done = 0;
return result;
}
| my_thread_global_end:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
CALL 0x0019e560
IMUL RAX,RAX,0x3e8
LEA RCX,[0x485ba8]
MOV ECX,dword ptr [RCX]
IMUL RCX,RCX,0x3b9aca00
ADD RCX,RAX
MOV RAX,RCX
SHR RAX,0x9
MOV RDX,0x44b82fa09b5a53
MUL RDX
SHR RDX,0xb
MOV qword ptr [RBP + -0x38],RDX
IMUL RAX,RDX,0x3b9aca00
SUB RCX,RAX
MOV qword ptr [RBP + -0x30],RCX
LEA RAX,[0xd08928]
CMP qword ptr [RAX + 0x40],0x0
JNZ 0x001a1eb6
LEA RDI,[0xd08928]
CALL 0x00129220
LAB_001a1df7:
LEA R12,[0xd08728]
LEA R14,[0xd089b8]
LEA RBX,[0xd08928]
LEA R15,[RBP + -0x38]
LAB_001a1e10:
MOV R13D,dword ptr [R12]
TEST R13D,R13D
JZ 0x001a1e7c
CMP qword ptr [R14 + 0x30],0x0
JNZ 0x001a1e3a
MOV RDI,R14
MOV RSI,RBX
MOV RDX,R15
CALL 0x00129680
LAB_001a1e2e:
CMP EAX,0x6e
JZ 0x001a1e57
CMP EAX,0x3e
JNZ 0x001a1e10
JMP 0x001a1e57
LAB_001a1e3a:
MOV RDI,R14
MOV RSI,RBX
MOV RDX,R15
LEA RCX,[0x1dc782]
MOV R8D,0xd2
CALL 0x0012ef10
JMP 0x001a1e2e
LAB_001a1e57:
MOV ECX,dword ptr [R12]
TEST ECX,ECX
JZ 0x001a1e7c
MOV RAX,qword ptr [0x00483fb0]
MOV RDI,qword ptr [RAX]
LEA RDX,[0x1dc7bf]
MOV ESI,0x1
XOR EAX,EAX
CALL 0x00129200
LAB_001a1e7c:
MOV RDI,qword ptr [RBX + 0x40]
TEST RDI,RDI
JNZ 0x001a1ec0
LAB_001a1e85:
LEA RDI,[0xd08928]
CALL 0x001291e0
CALL 0x001a1684
TEST R13D,R13D
JNZ 0x001a1ea0
CALL 0x001a17e7
LAB_001a1ea0:
MOV byte ptr [0x00d089f0],0x0
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001a1eb6:
CALL 0x0012efca
JMP 0x001a1df7
LAB_001a1ec0:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x001a1e85
|
void my_thread_global_end(void)
{
int iVar1;
int iVar2;
long lVar3;
timespec local_40;
lVar3 = my_hrtime();
local_40.tv_nsec = (ulong)my_thread_end_wait_time * 1000000000 + lVar3 * 1000;
local_40.tv_sec = (ulong)local_40.tv_nsec / 1000000000;
local_40.tv_nsec = (ulong)local_40.tv_nsec % 1000000000;
if (THR_LOCK_threads._64_8_ == 0) {
pthread_mutex_lock((pthread_mutex_t *)THR_LOCK_threads);
}
else {
my_thread_global_end_cold_1();
}
do {
iVar1 = THR_thread_count;
if (THR_thread_count == 0) goto LAB_001a1e7c;
if (THR_COND_threads._48_8_ == 0) {
iVar2 = pthread_cond_timedwait
((pthread_cond_t *)THR_COND_threads,(pthread_mutex_t *)THR_LOCK_threads,
&local_40);
}
else {
iVar2 = psi_cond_timedwait(THR_COND_threads,THR_LOCK_threads,&local_40,
"/workspace/llm4binary/github2025/eloqsql/mysys/my_thr_init.c",0xd2
);
}
} while ((iVar2 != 0x6e) && (iVar2 != 0x3e));
if (THR_thread_count != 0) {
__fprintf_chk(*(int8 *)PTR_stderr_00483fb0,1,
"Error in my_thread_global_end(): %d threads didn\'t exit\n");
}
LAB_001a1e7c:
if (THR_LOCK_threads._64_8_ != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)THR_LOCK_threads);
my_thread_destroy_common_mutex();
if (iVar1 == 0) {
my_thread_destroy_internal_mutex();
}
my_thread_global_init_done = 0;
return;
}
| |
28,121 | ftxui::Loop::RunOnceBlocking() | Andrewchistyakov[P]flashcards_lyc/build_O3/_deps/ftxui-src/src/ftxui/component/loop.cpp | void Loop::RunOnceBlocking() {
screen_->RunOnceBlocking(component_);
} | O3 | cpp | ftxui::Loop::RunOnceBlocking():
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rax
movq (%rdi), %rdi
movq 0x8(%rax), %rcx
movq %rcx, (%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x36932
movq 0x2268c(%rip), %rcx # 0x58fb0
cmpb $0x0, (%rcx)
je 0x3692e
incl 0x8(%rax)
jmp 0x36932
lock
incl 0x8(%rax)
movq %rsp, %rsi
callq 0x2e60a
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x36949
callq 0x14af8
addq $0x10, %rsp
popq %rbx
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x36961
callq 0x14af8
movq %rbx, %rdi
callq 0xb780
nop
| _ZN5ftxui4Loop15RunOnceBlockingEv:
push rbx; __int64
sub rsp, 10h
mov rax, rdi
mov rdi, [rdi]; this
mov rcx, [rax+8]
mov [rsp+18h+var_18], rcx; __int64
mov rax, [rax+10h]
mov qword ptr [rsp+18h+var_10], rax; int
test rax, rax
jz short loc_36932
mov rcx, cs:__libc_single_threaded_ptr
cmp byte ptr [rcx], 0
jz short loc_3692E
inc dword ptr [rax+8]
jmp short loc_36932
loc_3692E:
lock inc dword ptr [rax+8]
loc_36932:
mov rsi, rsp
call _ZN5ftxui17ScreenInteractive15RunOnceBlockingESt10shared_ptrINS_13ComponentBaseEE; ftxui::ScreenInteractive::RunOnceBlocking(std::shared_ptr<ftxui::ComponentBase>)
mov rdi, qword ptr [rsp+18h+var_10]
test rdi, rdi
jz short loc_36949
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_36949:
add rsp, 10h
pop rbx
retn
mov rbx, rax
mov rdi, [rsp+arg_0]
test rdi, rdi
jz short loc_36961
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_36961:
mov rdi, rbx
call __Unwind_Resume
| long long ftxui::Loop::RunOnceBlocking(ftxui::Loop *this)
{
ftxui::ScreenInteractive *v2; // rdi
long long v3; // rax
long long result; // rax
long long v5; // [rsp+0h] [rbp-18h] BYREF
int v6[2]; // [rsp+8h] [rbp-10h]
v2 = *(ftxui::ScreenInteractive **)this;
v5 = *((_QWORD *)this + 1);
v3 = *((_QWORD *)this + 2);
*(_QWORD *)v6 = v3;
if ( v3 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v3 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v3 + 8));
}
result = ftxui::ScreenInteractive::RunOnceBlocking(v2, &v5);
if ( *(_QWORD *)v6 )
return std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*(volatile signed __int32 **)v6);
return result;
}
| RunOnceBlocking:
PUSH RBX
SUB RSP,0x10
MOV RAX,RDI
MOV RDI,qword ptr [RDI]
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP],RCX
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x8],RAX
TEST RAX,RAX
JZ 0x00136932
MOV RCX,qword ptr [0x00158fb0]
CMP byte ptr [RCX],0x0
JZ 0x0013692e
INC dword ptr [RAX + 0x8]
JMP 0x00136932
LAB_0013692e:
INC.LOCK dword ptr [RAX + 0x8]
LAB_00136932:
MOV RSI,RSP
CALL 0x0012e60a
LAB_0013693a:
MOV RDI,qword ptr [RSP + 0x8]
TEST RDI,RDI
JZ 0x00136949
CALL 0x00114af8
LAB_00136949:
ADD RSP,0x10
POP RBX
RET
|
/* ftxui::Loop::RunOnceBlocking() */
void __thiscall ftxui::Loop::RunOnceBlocking(Loop *this)
{
ScreenInteractive *pSVar1;
int8 local_18;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_10;
pSVar1 = *(ScreenInteractive **)this;
local_18 = *(int8 *)(this + 8);
local_10 = *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x10);
if (local_10 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
if (*PTR___libc_single_threaded_00158fb0 == '\0') {
LOCK();
*(int *)(local_10 + 8) = *(int *)(local_10 + 8) + 1;
UNLOCK();
}
else {
*(int *)(local_10 + 8) = *(int *)(local_10 + 8) + 1;
}
}
/* try { // try from 00136932 to 00136939 has its CatchHandler @ 0013694f */
ScreenInteractive::RunOnceBlocking(pSVar1,&local_18);
if (local_10 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_10);
}
return;
}
| |
28,122 | my_mb_wc_sjis | eloqsql/strings/ctype-sjis.c | static int
my_mb_wc_sjis(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t *pwc, const uchar *s, const uchar *e){
int hi;
if (s >= e)
return MY_CS_TOOSMALL;
if ((hi= s[0]) < 0x80) /* ASCII: [00..7F] -> [U+0000..U+007F] */
{
*pwc= hi;
return 1;
}
/* JIS-X-0201 Half width Katakana: [A1..DF] -> [U+FF61..U+FF9F] */
if (hi >= 0xA1 && hi <= 0xDF)
{
*pwc= sjis_to_unicode[hi];
return 1;
}
if (s + 2 > e)
return MY_CS_TOOSMALL2;
/* JIS-X-0208 [81..9F,E0..FC][40..7E,80..FC] */
if (!(pwc[0]= sjis_to_unicode[(hi << 8) + s[1]]))
return (issjishead(hi) && issjistail(s[1])) ? -2 : MY_CS_ILSEQ;
return 2;
} | O0 | c | my_mb_wc_sjis:
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
cmpq -0x28(%rbp), %rax
jb 0x45d7a
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0x45ed8
movq -0x20(%rbp), %rax
movzbl (%rax), %eax
movl %eax, -0x2c(%rbp)
cmpl $0x80, %eax
jge 0x45da2
movslq -0x2c(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x45ed8
cmpl $0xa1, -0x2c(%rbp)
jl 0x45dd8
cmpl $0xdf, -0x2c(%rbp)
jg 0x45dd8
movslq -0x2c(%rbp), %rcx
leaq 0x230971(%rip), %rax # 0x276730
movzwl (%rax,%rcx,2), %eax
movl %eax, %ecx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x45ed8
movq -0x20(%rbp), %rax
addq $0x2, %rax
cmpq -0x28(%rbp), %rax
jbe 0x45df2
movl $0xffffff9a, -0x4(%rbp) # imm = 0xFFFFFF9A
jmp 0x45ed8
movl -0x2c(%rbp), %eax
shll $0x8, %eax
movq -0x20(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
addl %ecx, %eax
movslq %eax, %rcx
leaq 0x230924(%rip), %rax # 0x276730
movzwl (%rax,%rcx,2), %eax
movq -0x18(%rbp), %rcx
movq %rax, (%rcx)
cmpq $0x0, %rax
jne 0x45ed1
movl -0x2c(%rbp), %eax
movzbl %al, %ecx
movl $0x81, %eax
cmpl %ecx, %eax
jg 0x45e3d
movl -0x2c(%rbp), %eax
movzbl %al, %eax
cmpl $0x9f, %eax
jle 0x45e64
movl -0x2c(%rbp), %eax
movzbl %al, %edx
xorl %eax, %eax
movl $0xe0, %ecx
cmpl %edx, %ecx
movb %al, -0x2d(%rbp)
jg 0x45ebc
movl -0x2c(%rbp), %eax
movzbl %al, %ecx
xorl %eax, %eax
cmpl $0xfc, %ecx
movb %al, -0x2d(%rbp)
jg 0x45ebc
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %ecx
movl $0x40, %eax
cmpl %ecx, %eax
jg 0x45e87
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %ecx
movb $0x1, %al
cmpl $0x7e, %ecx
movb %al, -0x2e(%rbp)
jle 0x45eb6
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %edx
xorl %eax, %eax
movl $0x80, %ecx
cmpl %edx, %ecx
movb %al, -0x2f(%rbp)
jg 0x45eb0
movq -0x20(%rbp), %rax
movzbl 0x1(%rax), %eax
cmpl $0xfc, %eax
setle %al
movb %al, -0x2f(%rbp)
movb -0x2f(%rbp), %al
movb %al, -0x2e(%rbp)
movb -0x2e(%rbp), %al
movb %al, -0x2d(%rbp)
movb -0x2d(%rbp), %dl
xorl %eax, %eax
movl $0xfffffffe, %ecx # imm = 0xFFFFFFFE
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x45ed8
movl $0x2, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax)
| my_mb_wc_sjis:
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]
cmp rax, [rbp+var_28]
jb short loc_45D7A
mov [rbp+var_4], 0FFFFFF9Bh
jmp loc_45ED8
loc_45D7A:
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax]
mov [rbp+var_2C], eax
cmp eax, 80h
jge short loc_45DA2
movsxd rcx, [rbp+var_2C]
mov rax, [rbp+var_18]
mov [rax], rcx
mov [rbp+var_4], 1
jmp loc_45ED8
loc_45DA2:
cmp [rbp+var_2C], 0A1h
jl short loc_45DD8
cmp [rbp+var_2C], 0DFh
jg short loc_45DD8
movsxd rcx, [rbp+var_2C]
lea rax, sjis_to_unicode
movzx eax, word ptr [rax+rcx*2]
mov ecx, eax
mov rax, [rbp+var_18]
mov [rax], rcx
mov [rbp+var_4], 1
jmp loc_45ED8
loc_45DD8:
mov rax, [rbp+var_20]
add rax, 2
cmp rax, [rbp+var_28]
jbe short loc_45DF2
mov [rbp+var_4], 0FFFFFF9Ah
jmp loc_45ED8
loc_45DF2:
mov eax, [rbp+var_2C]
shl eax, 8
mov rcx, [rbp+var_20]
movzx ecx, byte ptr [rcx+1]
add eax, ecx
movsxd rcx, eax
lea rax, sjis_to_unicode
movzx eax, word ptr [rax+rcx*2]
mov rcx, [rbp+var_18]
mov [rcx], rax
cmp rax, 0
jnz loc_45ED1
mov eax, [rbp+var_2C]
movzx ecx, al
mov eax, 81h
cmp eax, ecx
jg short loc_45E3D
mov eax, [rbp+var_2C]
movzx eax, al
cmp eax, 9Fh
jle short loc_45E64
loc_45E3D:
mov eax, [rbp+var_2C]
movzx edx, al
xor eax, eax
mov ecx, 0E0h
cmp ecx, edx
mov [rbp+var_2D], al
jg short loc_45EBC
mov eax, [rbp+var_2C]
movzx ecx, al
xor eax, eax
cmp ecx, 0FCh
mov [rbp+var_2D], al
jg short loc_45EBC
loc_45E64:
mov rax, [rbp+var_20]
movzx ecx, byte ptr [rax+1]
mov eax, 40h ; '@'
cmp eax, ecx
jg short loc_45E87
mov rax, [rbp+var_20]
movzx ecx, byte ptr [rax+1]
mov al, 1
cmp ecx, 7Eh ; '~'
mov [rbp+var_2E], al
jle short loc_45EB6
loc_45E87:
mov rax, [rbp+var_20]
movzx edx, byte ptr [rax+1]
xor eax, eax
mov ecx, 80h
cmp ecx, edx
mov [rbp+var_2F], al
jg short loc_45EB0
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax+1]
cmp eax, 0FCh
setle al
mov [rbp+var_2F], al
loc_45EB0:
mov al, [rbp+var_2F]
mov [rbp+var_2E], al
loc_45EB6:
mov al, [rbp+var_2E]
mov [rbp+var_2D], al
loc_45EBC:
mov dl, [rbp+var_2D]
xor eax, eax
mov ecx, 0FFFFFFFEh
test dl, 1
cmovnz eax, ecx
mov [rbp+var_4], eax
jmp short loc_45ED8
loc_45ED1:
mov [rbp+var_4], 2
loc_45ED8:
mov eax, [rbp+var_4]
pop rbp
retn
| long long my_mb_wc_sjis(long long a1, _QWORD *a2, unsigned __int8 *a3, unsigned long long a4)
{
long long v4; // rax
unsigned int v5; // eax
bool v7; // [rsp+1h] [rbp-2Fh]
char v8; // [rsp+2h] [rbp-2Eh]
char v9; // [rsp+3h] [rbp-2Dh]
unsigned int v10; // [rsp+4h] [rbp-2Ch]
if ( (unsigned long long)a3 < a4 )
{
v10 = *a3;
if ( v10 >= 0x80 )
{
if ( *a3 < 0xA1u || *a3 > 0xDFu )
{
if ( (unsigned long long)(a3 + 2) <= a4 )
{
v4 = sjis_to_unicode[a3[1] + (v10 << 8)];
*a2 = v4;
if ( v4 )
{
return 2;
}
else
{
if ( (unsigned __int8)v10 >= 0x81u && (unsigned __int8)v10 <= 0x9Fu
|| (v9 = 0, (unsigned __int8)v10 >= 0xE0u) && (v9 = 0, (unsigned __int8)v10 <= 0xFCu) )
{
if ( a3[1] < 0x40u || (v8 = 1, a3[1] > 0x7Eu) )
{
v7 = 0;
if ( a3[1] >= 0x80u )
v7 = a3[1] <= 0xFCu;
v8 = v7;
}
v9 = v8;
}
v5 = 0;
if ( (v9 & 1) != 0 )
return (unsigned int)-2;
return v5;
}
}
else
{
return (unsigned int)-102;
}
}
else
{
*a2 = sjis_to_unicode[*a3];
return 1;
}
}
else
{
*a2 = *a3;
return 1;
}
}
else
{
return (unsigned int)-101;
}
}
| my_mb_wc_sjis:
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]
CMP RAX,qword ptr [RBP + -0x28]
JC 0x00145d7a
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x00145ed8
LAB_00145d7a:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX]
MOV dword ptr [RBP + -0x2c],EAX
CMP EAX,0x80
JGE 0x00145da2
MOVSXD RCX,dword ptr [RBP + -0x2c]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00145ed8
LAB_00145da2:
CMP dword ptr [RBP + -0x2c],0xa1
JL 0x00145dd8
CMP dword ptr [RBP + -0x2c],0xdf
JG 0x00145dd8
MOVSXD RCX,dword ptr [RBP + -0x2c]
LEA RAX,[0x376730]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00145ed8
LAB_00145dd8:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
CMP RAX,qword ptr [RBP + -0x28]
JBE 0x00145df2
MOV dword ptr [RBP + -0x4],0xffffff9a
JMP 0x00145ed8
LAB_00145df2:
MOV EAX,dword ptr [RBP + -0x2c]
SHL EAX,0x8
MOV RCX,qword ptr [RBP + -0x20]
MOVZX ECX,byte ptr [RCX + 0x1]
ADD EAX,ECX
MOVSXD RCX,EAX
LEA RAX,[0x376730]
MOVZX EAX,word ptr [RAX + RCX*0x2]
MOV RCX,qword ptr [RBP + -0x18]
MOV qword ptr [RCX],RAX
CMP RAX,0x0
JNZ 0x00145ed1
MOV EAX,dword ptr [RBP + -0x2c]
MOVZX ECX,AL
MOV EAX,0x81
CMP EAX,ECX
JG 0x00145e3d
MOV EAX,dword ptr [RBP + -0x2c]
MOVZX EAX,AL
CMP EAX,0x9f
JLE 0x00145e64
LAB_00145e3d:
MOV EAX,dword ptr [RBP + -0x2c]
MOVZX EDX,AL
XOR EAX,EAX
MOV ECX,0xe0
CMP ECX,EDX
MOV byte ptr [RBP + -0x2d],AL
JG 0x00145ebc
MOV EAX,dword ptr [RBP + -0x2c]
MOVZX ECX,AL
XOR EAX,EAX
CMP ECX,0xfc
MOV byte ptr [RBP + -0x2d],AL
JG 0x00145ebc
LAB_00145e64:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX ECX,byte ptr [RAX + 0x1]
MOV EAX,0x40
CMP EAX,ECX
JG 0x00145e87
MOV RAX,qword ptr [RBP + -0x20]
MOVZX ECX,byte ptr [RAX + 0x1]
MOV AL,0x1
CMP ECX,0x7e
MOV byte ptr [RBP + -0x2e],AL
JLE 0x00145eb6
LAB_00145e87:
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EDX,byte ptr [RAX + 0x1]
XOR EAX,EAX
MOV ECX,0x80
CMP ECX,EDX
MOV byte ptr [RBP + -0x2f],AL
JG 0x00145eb0
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX + 0x1]
CMP EAX,0xfc
SETLE AL
MOV byte ptr [RBP + -0x2f],AL
LAB_00145eb0:
MOV AL,byte ptr [RBP + -0x2f]
MOV byte ptr [RBP + -0x2e],AL
LAB_00145eb6:
MOV AL,byte ptr [RBP + -0x2e]
MOV byte ptr [RBP + -0x2d],AL
LAB_00145ebc:
MOV DL,byte ptr [RBP + -0x2d]
XOR EAX,EAX
MOV ECX,0xfffffffe
TEST DL,0x1
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00145ed8
LAB_00145ed1:
MOV dword ptr [RBP + -0x4],0x2
LAB_00145ed8:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int4 my_mb_wc_sjis(int8 param_1,ulong *param_2,byte *param_3,byte *param_4)
{
ushort uVar1;
bool bVar2;
uint uVar3;
int4 local_c;
if (param_3 < param_4) {
uVar3 = (uint)*param_3;
if (uVar3 < 0x80) {
*param_2 = (long)(int)uVar3;
local_c = 1;
}
else if ((uVar3 < 0xa1) || (0xdf < uVar3)) {
if (param_4 < param_3 + 2) {
local_c = 0xffffff9a;
}
else {
uVar1 = *(ushort *)(sjis_to_unicode + (long)(int)(uVar3 * 0x100 + (uint)param_3[1]) * 2);
*param_2 = (ulong)uVar1;
if ((ulong)uVar1 == 0) {
if ((((0x80 < uVar3) && (uVar3 < 0xa0)) ||
((bVar2 = false, 0xdf < uVar3 && (bVar2 = false, uVar3 < 0xfd)))) &&
(((param_3[1] < 0x40 || (bVar2 = true, 0x7e < param_3[1])) &&
(bVar2 = false, 0x7f < param_3[1])))) {
bVar2 = param_3[1] < 0xfd;
}
local_c = 0;
if (bVar2) {
local_c = 0xfffffffe;
}
}
else {
local_c = 2;
}
}
}
else {
*param_2 = (ulong)*(ushort *)(sjis_to_unicode + (long)(int)uVar3 * 2);
local_c = 1;
}
}
else {
local_c = 0xffffff9b;
}
return local_c;
}
| |
28,123 | my_mb_wc_sjis | eloqsql/strings/ctype-sjis.c | static int
my_mb_wc_sjis(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t *pwc, const uchar *s, const uchar *e){
int hi;
if (s >= e)
return MY_CS_TOOSMALL;
if ((hi= s[0]) < 0x80) /* ASCII: [00..7F] -> [U+0000..U+007F] */
{
*pwc= hi;
return 1;
}
/* JIS-X-0201 Half width Katakana: [A1..DF] -> [U+FF61..U+FF9F] */
if (hi >= 0xA1 && hi <= 0xDF)
{
*pwc= sjis_to_unicode[hi];
return 1;
}
if (s + 2 > e)
return MY_CS_TOOSMALL2;
/* JIS-X-0208 [81..9F,E0..FC][40..7E,80..FC] */
if (!(pwc[0]= sjis_to_unicode[(hi << 8) + s[1]]))
return (issjishead(hi) && issjistail(s[1])) ? -2 : MY_CS_ILSEQ;
return 2;
} | O3 | c | my_mb_wc_sjis:
pushq %rbp
movq %rsp, %rbp
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0x3921b
movzbl (%rdx), %edi
testb %dil, %dil
js 0x39201
movq %rdi, (%rsi)
jmp 0x39216
leal 0x5f(%rdi), %eax
cmpb $0x3e, %al
ja 0x3921d
leaq 0x1690f1(%rip), %rax # 0x1a2300
movzwl (%rax,%rdi,2), %eax
movq %rax, (%rsi)
movl $0x1, %eax
popq %rbp
retq
leaq 0x2(%rdx), %r8
movl $0xffffff9a, %eax # imm = 0xFFFFFF9A
cmpq %rcx, %r8
ja 0x3921b
movzbl 0x1(%rdx), %eax
movl %edi, %ecx
shll $0x9, %ecx
leal (%rcx,%rax,2), %eax
leaq 0x1690c2(%rip), %rcx # 0x1a2300
movzwl (%rax,%rcx), %ecx
movq %rcx, (%rsi)
movl $0x2, %eax
testq %rcx, %rcx
jne 0x3921b
cmpb $-0x80, %dil
setne %al
cmpb $-0x60, %dil
setb %cl
andb %al, %cl
addb $0x20, %dil
cmpb $0x1d, %dil
setb %sil
orb %cl, %sil
xorl %eax, %eax
cmpb $0x1, %sil
jne 0x3921b
movb 0x1(%rdx), %cl
leal -0x40(%rcx), %edx
movl $0xfffffffe, %eax # imm = 0xFFFFFFFE
cmpb $0x3f, %dl
jb 0x3921b
movl $0x0, %eax
testb %cl, %cl
jns 0x3921b
xorl %eax, %eax
cmpb $-0x3, %cl
setae %al
leal -0x2(,%rax,2), %eax
jmp 0x3921b
| my_mb_wc_sjis:
push rbp
mov rbp, rsp
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short loc_3921B
movzx edi, byte ptr [rdx]
test dil, dil
js short loc_39201
mov [rsi], rdi
jmp short loc_39216
loc_39201:
lea eax, [rdi+5Fh]
cmp al, 3Eh ; '>'
ja short loc_3921D
lea rax, sjis_to_unicode
movzx eax, word ptr [rax+rdi*2]
mov [rsi], rax
loc_39216:
mov eax, 1
loc_3921B:
pop rbp
retn
loc_3921D:
lea r8, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp r8, rcx
ja short loc_3921B
movzx eax, byte ptr [rdx+1]
mov ecx, edi
shl ecx, 9
lea eax, [rcx+rax*2]
lea rcx, sjis_to_unicode
movzx ecx, word ptr [rax+rcx]
mov [rsi], rcx
mov eax, 2
test rcx, rcx
jnz short loc_3921B
cmp dil, 80h
setnz al
cmp dil, 0A0h
setb cl
and cl, al
add dil, 20h ; ' '
cmp dil, 1Dh
setb sil
or sil, cl
xor eax, eax
cmp sil, 1
jnz short loc_3921B
mov cl, [rdx+1]
lea edx, [rcx-40h]
mov eax, 0FFFFFFFEh
cmp dl, 3Fh ; '?'
jb short loc_3921B
mov eax, 0
test cl, cl
jns short loc_3921B
xor eax, eax
cmp cl, 0FDh
setnb al
lea eax, ds:0FFFFFFFFFFFFFFFEh[rax*2]
jmp loc_3921B
| long long my_mb_wc_sjis(long long a1, _QWORD *a2, unsigned __int8 *a3, unsigned long long a4)
{
long long result; // rax
long long v5; // rdi
long long v6; // rcx
char v7; // cl
result = 4294967195LL;
if ( (unsigned long long)a3 < a4 )
{
v5 = *a3;
if ( (v5 & 0x80u) == 0LL )
{
*a2 = v5;
return 1LL;
}
if ( (unsigned __int8)(v5 + 95) <= 0x3Eu )
{
*a2 = sjis_to_unicode[v5];
return 1LL;
}
result = 4294967194LL;
if ( (unsigned long long)(a3 + 2) <= a4 )
{
v6 = sjis_to_unicode[256 * (_DWORD)v5 + a3[1]];
*a2 = v6;
result = 2LL;
if ( !v6 )
{
result = 0LL;
if ( (_BYTE)v5 != 0x80 && (unsigned __int8)v5 < 0xA0u || (unsigned __int8)(v5 + 32) < 0x1Du )
{
v7 = a3[1];
result = 4294967294LL;
if ( (unsigned __int8)(v7 - 64) >= 0x3Fu )
{
result = 0LL;
if ( v7 < 0 )
return 2 * (unsigned int)((unsigned __int8)v7 >= 0xFDu) - 2;
}
}
}
}
}
return result;
}
| my_mb_wc_sjis:
PUSH RBP
MOV RBP,RSP
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x0013921b
MOVZX EDI,byte ptr [RDX]
TEST DIL,DIL
JS 0x00139201
MOV qword ptr [RSI],RDI
JMP 0x00139216
LAB_00139201:
LEA EAX,[RDI + 0x5f]
CMP AL,0x3e
JA 0x0013921d
LEA RAX,[0x2a2300]
MOVZX EAX,word ptr [RAX + RDI*0x2]
MOV qword ptr [RSI],RAX
LAB_00139216:
MOV EAX,0x1
LAB_0013921b:
POP RBP
RET
LAB_0013921d:
LEA R8,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP R8,RCX
JA 0x0013921b
MOVZX EAX,byte ptr [RDX + 0x1]
MOV ECX,EDI
SHL ECX,0x9
LEA EAX,[RCX + RAX*0x2]
LEA RCX,[0x2a2300]
MOVZX ECX,word ptr [RAX + RCX*0x1]
MOV qword ptr [RSI],RCX
MOV EAX,0x2
TEST RCX,RCX
JNZ 0x0013921b
CMP DIL,0x80
SETNZ AL
CMP DIL,0xa0
SETC CL
AND CL,AL
ADD DIL,0x20
CMP DIL,0x1d
SETC SIL
OR SIL,CL
XOR EAX,EAX
CMP SIL,0x1
JNZ 0x0013921b
MOV CL,byte ptr [RDX + 0x1]
LEA EDX,[RCX + -0x40]
MOV EAX,0xfffffffe
CMP DL,0x3f
JC 0x0013921b
MOV EAX,0x0
TEST CL,CL
JNS 0x0013921b
XOR EAX,EAX
CMP CL,0xfd
SETNC AL
LEA EAX,[-0x2 + RAX*0x2]
JMP 0x0013921b
|
int my_mb_wc_sjis(int8 param_1,ulong *param_2,byte *param_3,byte *param_4)
{
byte bVar1;
ushort uVar2;
int iVar3;
iVar3 = -0x65;
if (param_3 < param_4) {
bVar1 = *param_3;
if ((char)bVar1 < '\0') {
if (0x3e < (byte)(bVar1 + 0x5f)) {
if (param_4 < param_3 + 2) {
return -0x66;
}
uVar2 = *(ushort *)(sjis_to_unicode + ((uint)bVar1 * 0x200 + (uint)param_3[1] * 2));
*param_2 = (ulong)uVar2;
if ((ulong)uVar2 != 0) {
return 2;
}
if (0x1c < (byte)(bVar1 + 0x20) && (0x9f < bVar1 || bVar1 == 0x80)) {
return 0;
}
bVar1 = param_3[1];
if ((byte)(bVar1 - 0x40) < 0x3f) {
return -2;
}
if (-1 < (char)bVar1) {
return 0;
}
return (uint)(0xfc < bVar1) * 2 + -2;
}
*param_2 = (ulong)*(ushort *)(sjis_to_unicode + (ulong)bVar1 * 2);
}
else {
*param_2 = (ulong)bVar1;
}
iVar3 = 1;
}
return iVar3;
}
| |
28,124 | my_is_printable | eloqsql/strings/ctype.c | static inline my_bool
my_is_printable(my_wc_t wc)
{
/*
Blocks:
U+0000 .. U+001F control
U+0020 .. U+007E printable
U+007F .. U+009F control
U+00A0 .. U+00FF printable
U+0100 .. U+10FFFF As of Unicode-6.1.0, this range does not have any
characters of the "Cc" (Other, control) category.
Should be mostly safe to print.
Except for the surrogate halfs,
which are encoding components, not real characters.
*/
if (wc >= 0x20 && wc <= 0x7E) /* Quickly detect ASCII printable */
return TRUE;
if (wc <= 0x9F) /* The rest of U+0000..U+009F are control characters */
{
/* NL, CR, TAB are Ok */
return (wc == '\r' || wc == '\n' || wc == '\t');
}
/*
Surrogate halfs (when alone) print badly in terminals:
SELECT _ucs2 0xD800;
Let's escape them as well.
*/
if (wc >= 0xD800 && wc <= 0xDFFF)
return FALSE;
return TRUE;
} | O0 | c | my_is_printable:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
cmpq $0x20, -0x10(%rbp)
jb 0x81b0c
cmpq $0x7e, -0x10(%rbp)
ja 0x81b0c
movb $0x1, -0x1(%rbp)
jmp 0x81b64
cmpq $0x9f, -0x10(%rbp)
ja 0x81b46
movb $0x1, %al
cmpq $0xd, -0x10(%rbp)
movb %al, -0x11(%rbp)
je 0x81b39
movb $0x1, %al
cmpq $0xa, -0x10(%rbp)
movb %al, -0x11(%rbp)
je 0x81b39
cmpq $0x9, -0x10(%rbp)
sete %al
movb %al, -0x11(%rbp)
movb -0x11(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movb %al, -0x1(%rbp)
jmp 0x81b64
cmpq $0xd800, -0x10(%rbp) # imm = 0xD800
jb 0x81b60
cmpq $0xdfff, -0x10(%rbp) # imm = 0xDFFF
ja 0x81b60
movb $0x0, -0x1(%rbp)
jmp 0x81b64
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
popq %rbp
retq
nopl (%rax)
| my_is_printable:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
cmp [rbp+var_10], 20h ; ' '
jb short loc_81B0C
cmp [rbp+var_10], 7Eh ; '~'
ja short loc_81B0C
mov [rbp+var_1], 1
jmp short loc_81B64
loc_81B0C:
cmp [rbp+var_10], 9Fh
ja short loc_81B46
mov al, 1
cmp [rbp+var_10], 0Dh
mov [rbp+var_11], al
jz short loc_81B39
mov al, 1
cmp [rbp+var_10], 0Ah
mov [rbp+var_11], al
jz short loc_81B39
cmp [rbp+var_10], 9
setz al
mov [rbp+var_11], al
loc_81B39:
mov al, [rbp+var_11]
and al, 1
movzx eax, al
mov [rbp+var_1], al
jmp short loc_81B64
loc_81B46:
cmp [rbp+var_10], 0D800h
jb short loc_81B60
cmp [rbp+var_10], 0DFFFh
ja short loc_81B60
mov [rbp+var_1], 0
jmp short loc_81B64
loc_81B60:
mov [rbp+var_1], 1
loc_81B64:
mov al, [rbp+var_1]
pop rbp
retn
| bool my_is_printable(unsigned long long a1)
{
bool v2; // [rsp+1h] [rbp-11h]
if ( a1 >= 0x20 && a1 <= 0x7E )
return 1;
if ( a1 > 0x9F )
return a1 < 0xD800 || a1 > 0xDFFF;
v2 = 1;
if ( a1 != 13 )
{
v2 = 1;
if ( a1 != 10 )
return a1 == 9;
}
return v2;
}
| my_is_printable:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
CMP qword ptr [RBP + -0x10],0x20
JC 0x00181b0c
CMP qword ptr [RBP + -0x10],0x7e
JA 0x00181b0c
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00181b64
LAB_00181b0c:
CMP qword ptr [RBP + -0x10],0x9f
JA 0x00181b46
MOV AL,0x1
CMP qword ptr [RBP + -0x10],0xd
MOV byte ptr [RBP + -0x11],AL
JZ 0x00181b39
MOV AL,0x1
CMP qword ptr [RBP + -0x10],0xa
MOV byte ptr [RBP + -0x11],AL
JZ 0x00181b39
CMP qword ptr [RBP + -0x10],0x9
SETZ AL
MOV byte ptr [RBP + -0x11],AL
LAB_00181b39:
MOV AL,byte ptr [RBP + -0x11]
AND AL,0x1
MOVZX EAX,AL
MOV byte ptr [RBP + -0x1],AL
JMP 0x00181b64
LAB_00181b46:
CMP qword ptr [RBP + -0x10],0xd800
JC 0x00181b60
CMP qword ptr [RBP + -0x10],0xdfff
JA 0x00181b60
MOV byte ptr [RBP + -0x1],0x0
JMP 0x00181b64
LAB_00181b60:
MOV byte ptr [RBP + -0x1],0x1
LAB_00181b64:
MOV AL,byte ptr [RBP + -0x1]
POP RBP
RET
|
bool my_is_printable(ulong param_1)
{
int1 local_19;
int1 local_9;
if ((param_1 < 0x20) || (0x7e < param_1)) {
if (param_1 < 0xa0) {
local_19 = true;
if ((param_1 != 0xd) && (local_19 = true, param_1 != 10)) {
local_19 = param_1 == 9;
}
local_9 = local_19;
}
else if ((param_1 < 0xd800) || (0xdfff < param_1)) {
local_9 = true;
}
else {
local_9 = false;
}
}
else {
local_9 = true;
}
return local_9;
}
| |
28,125 | link_to_file_list | eloqsql/mysys/mf_keycache.c | static void link_to_file_list(SIMPLE_KEY_CACHE_CB *keycache,
BLOCK_LINK *block, int file,
my_bool unlink_block)
{
DBUG_ASSERT(block->status & BLOCK_IN_USE);
DBUG_ASSERT(block->hash_link && block->hash_link->block == block);
DBUG_ASSERT(block->hash_link->file == file);
if (unlink_block)
unlink_changed(block);
link_changed(block, &keycache->file_blocks[FILE_HASH(file, keycache)]);
if (block->status & BLOCK_CHANGED)
{
block->status&= ~BLOCK_CHANGED;
keycache->blocks_changed--;
keycache->global_blocks_changed--;
}
} | O0 | c | link_to_file_list:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movb %cl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movb %al, -0x15(%rbp)
jmp 0xe8b3a
jmp 0xe8b3c
jmp 0xe8b3e
jmp 0xe8b40
jmp 0xe8b42
cmpb $0x0, -0x15(%rbp)
je 0xe8b51
movq -0x10(%rbp), %rdi
callq 0xe8d00
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x130(%rax), %rsi
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
movl 0x3c(%rcx), %ecx
subl $0x1, %ecx
andl %ecx, %eax
movl %eax, %eax
shlq $0x3, %rax
addq %rax, %rsi
callq 0xe8f60
movq -0x10(%rbp), %rax
movl 0x50(%rax), %eax
andl $0x20, %eax
cmpl $0x0, %eax
je 0xe8bbf
movq -0x10(%rbp), %rax
movl 0x50(%rax), %ecx
andl $-0x21, %ecx
movl %ecx, 0x50(%rax)
movq -0x8(%rbp), %rax
movq 0x60(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x60(%rax)
movq -0x8(%rbp), %rax
movq 0x138(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0x138(%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| link_to_file_list_0:
push rbp
mov rbp, rsp
sub rsp, 20h
mov al, cl
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov [rbp+var_15], al
jmp short $+2
loc_E8B3A:
jmp short $+2
loc_E8B3C:
jmp short $+2
loc_E8B3E:
jmp short $+2
loc_E8B40:
jmp short $+2
loc_E8B42:
cmp [rbp+var_15], 0
jz short loc_E8B51
mov rdi, [rbp+var_10]
call unlink_changed_0
loc_E8B51:
mov rdi, [rbp+var_10]
mov rax, [rbp+var_8]
mov rsi, [rax+130h]
mov eax, [rbp+var_14]
mov rcx, [rbp+var_8]
mov ecx, [rcx+3Ch]
sub ecx, 1
and eax, ecx
mov eax, eax
shl rax, 3
add rsi, rax
call link_changed_0
mov rax, [rbp+var_10]
mov eax, [rax+50h]
and eax, 20h
cmp eax, 0
jz short loc_E8BBF
mov rax, [rbp+var_10]
mov ecx, [rax+50h]
and ecx, 0FFFFFFDFh
mov [rax+50h], ecx
mov rax, [rbp+var_8]
mov rcx, [rax+60h]
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rax+60h], rcx
mov rax, [rbp+var_8]
mov rcx, [rax+138h]
add rcx, 0FFFFFFFFFFFFFFFFh
mov [rax+138h], rcx
loc_E8BBF:
add rsp, 20h
pop rbp
retn
| long long link_to_file_list_0(long long a1, long long a2, unsigned int a3, char a4)
{
long long result; // rax
if ( a4 )
unlink_changed_0(a2);
link_changed_0(a2, 8LL * ((*(_DWORD *)(a1 + 60) - 1) & a3) + *(_QWORD *)(a1 + 304));
result = *(_DWORD *)(a2 + 80) & 0x20;
if ( (_DWORD)result )
{
*(_DWORD *)(a2 + 80) &= ~0x20u;
--*(_QWORD *)(a1 + 96);
result = a1;
--*(_QWORD *)(a1 + 312);
}
return result;
}
| link_to_file_list:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV AL,CL
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV byte ptr [RBP + -0x15],AL
JMP 0x001e8b3a
LAB_001e8b3a:
JMP 0x001e8b3c
LAB_001e8b3c:
JMP 0x001e8b3e
LAB_001e8b3e:
JMP 0x001e8b40
LAB_001e8b40:
JMP 0x001e8b42
LAB_001e8b42:
CMP byte ptr [RBP + -0x15],0x0
JZ 0x001e8b51
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001e8d00
LAB_001e8b51:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RAX + 0x130]
MOV EAX,dword ptr [RBP + -0x14]
MOV RCX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RCX + 0x3c]
SUB ECX,0x1
AND EAX,ECX
MOV EAX,EAX
SHL RAX,0x3
ADD RSI,RAX
CALL 0x001e8f60
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x50]
AND EAX,0x20
CMP EAX,0x0
JZ 0x001e8bbf
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RAX + 0x50]
AND ECX,0xffffffdf
MOV dword ptr [RAX + 0x50],ECX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x60]
ADD RCX,-0x1
MOV qword ptr [RAX + 0x60],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x138]
ADD RCX,-0x1
MOV qword ptr [RAX + 0x138],RCX
LAB_001e8bbf:
ADD RSP,0x20
POP RBP
RET
|
void link_to_file_list(long param_1,long param_2,uint param_3,char param_4)
{
if (param_4 != '\0') {
unlink_changed(param_2);
}
link_changed(param_2,*(long *)(param_1 + 0x130) +
(ulong)(param_3 & *(int *)(param_1 + 0x3c) - 1U) * 8);
if ((*(uint *)(param_2 + 0x50) & 0x20) != 0) {
*(uint *)(param_2 + 0x50) = *(uint *)(param_2 + 0x50) & 0xffffffdf;
*(long *)(param_1 + 0x60) = *(long *)(param_1 + 0x60) + -1;
*(long *)(param_1 + 0x138) = *(long *)(param_1 + 0x138) + -1;
}
return;
}
| |
28,126 | link_to_file_list | eloqsql/mysys/mf_keycache.c | static void link_to_file_list(SIMPLE_KEY_CACHE_CB *keycache,
BLOCK_LINK *block, int file,
my_bool unlink_block)
{
DBUG_ASSERT(block->status & BLOCK_IN_USE);
DBUG_ASSERT(block->hash_link && block->hash_link->block == block);
DBUG_ASSERT(block->hash_link->file == file);
if (unlink_block)
unlink_changed(block);
link_changed(block, &keycache->file_blocks[FILE_HASH(file, keycache)]);
if (block->status & BLOCK_CHANGED)
{
block->status&= ~BLOCK_CHANGED;
keycache->blocks_changed--;
keycache->global_blocks_changed--;
}
} | O3 | c | link_to_file_list:
pushq %rbp
movq %rsp, %rbp
testb %cl, %cl
je 0x9b656
movq 0x10(%rsi), %rcx
movq 0x18(%rsi), %rax
testq %rcx, %rcx
je 0x9b651
movq %rax, 0x18(%rcx)
movq 0x10(%rsi), %rcx
jmp 0x9b653
xorl %ecx, %ecx
movq %rcx, (%rax)
movq 0x130(%rdi), %rax
movl 0x3c(%rdi), %ecx
decl %ecx
andl %edx, %ecx
leaq (%rax,%rcx,8), %rax
movq %rax, 0x18(%rsi)
movq (%rax), %rcx
movq %rcx, 0x10(%rsi)
testq %rcx, %rcx
je 0x9b680
leaq 0x10(%rsi), %rdx
movq %rdx, 0x18(%rcx)
movq %rsi, (%rax)
movl 0x50(%rsi), %eax
testb $0x20, %al
je 0x9b69b
andl $-0x21, %eax
movl %eax, 0x50(%rsi)
decq 0x60(%rdi)
decq 0x138(%rdi)
popq %rbp
retq
| link_to_file_list_0:
push rbp
mov rbp, rsp
test cl, cl
jz short loc_9B656
mov rcx, [rsi+10h]
mov rax, [rsi+18h]
test rcx, rcx
jz short loc_9B651
mov [rcx+18h], rax
mov rcx, [rsi+10h]
jmp short loc_9B653
loc_9B651:
xor ecx, ecx
loc_9B653:
mov [rax], rcx
loc_9B656:
mov rax, [rdi+130h]
mov ecx, [rdi+3Ch]
dec ecx
and ecx, edx
lea rax, [rax+rcx*8]
mov [rsi+18h], rax
mov rcx, [rax]
mov [rsi+10h], rcx
test rcx, rcx
jz short loc_9B680
lea rdx, [rsi+10h]
mov [rcx+18h], rdx
loc_9B680:
mov [rax], rsi
mov eax, [rsi+50h]
test al, 20h
jz short loc_9B69B
and eax, 0FFFFFFDFh
mov [rsi+50h], eax
dec qword ptr [rdi+60h]
dec qword ptr [rdi+138h]
loc_9B69B:
pop rbp
retn
| long long link_to_file_list_0(long long a1, long long a2, int a3, char a4)
{
long long v4; // rcx
_QWORD *v5; // rax
long long v6; // rcx
long long *v7; // rax
long long v8; // rcx
long long result; // rax
if ( a4 )
{
v4 = *(_QWORD *)(a2 + 16);
v5 = *(_QWORD **)(a2 + 24);
if ( v4 )
{
*(_QWORD *)(v4 + 24) = v5;
v6 = *(_QWORD *)(a2 + 16);
}
else
{
v6 = 0LL;
}
*v5 = v6;
}
v7 = (long long *)(*(_QWORD *)(a1 + 304) + 8LL * (a3 & (unsigned int)(*(_DWORD *)(a1 + 60) - 1)));
*(_QWORD *)(a2 + 24) = v7;
v8 = *v7;
*(_QWORD *)(a2 + 16) = *v7;
if ( v8 )
*(_QWORD *)(v8 + 24) = a2 + 16;
*v7 = a2;
result = *(unsigned int *)(a2 + 80);
if ( (result & 0x20) != 0 )
{
result = (unsigned int)result & 0xFFFFFFDF;
*(_DWORD *)(a2 + 80) = result;
--*(_QWORD *)(a1 + 96);
--*(_QWORD *)(a1 + 312);
}
return result;
}
| link_to_file_list:
PUSH RBP
MOV RBP,RSP
TEST CL,CL
JZ 0x0019b656
MOV RCX,qword ptr [RSI + 0x10]
MOV RAX,qword ptr [RSI + 0x18]
TEST RCX,RCX
JZ 0x0019b651
MOV qword ptr [RCX + 0x18],RAX
MOV RCX,qword ptr [RSI + 0x10]
JMP 0x0019b653
LAB_0019b651:
XOR ECX,ECX
LAB_0019b653:
MOV qword ptr [RAX],RCX
LAB_0019b656:
MOV RAX,qword ptr [RDI + 0x130]
MOV ECX,dword ptr [RDI + 0x3c]
DEC ECX
AND ECX,EDX
LEA RAX,[RAX + RCX*0x8]
MOV qword ptr [RSI + 0x18],RAX
MOV RCX,qword ptr [RAX]
MOV qword ptr [RSI + 0x10],RCX
TEST RCX,RCX
JZ 0x0019b680
LEA RDX,[RSI + 0x10]
MOV qword ptr [RCX + 0x18],RDX
LAB_0019b680:
MOV qword ptr [RAX],RSI
MOV EAX,dword ptr [RSI + 0x50]
TEST AL,0x20
JZ 0x0019b69b
AND EAX,0xffffffdf
MOV dword ptr [RSI + 0x50],EAX
DEC qword ptr [RDI + 0x60]
DEC qword ptr [RDI + 0x138]
LAB_0019b69b:
POP RBP
RET
|
void link_to_file_list(long param_1,long param_2,uint param_3,char param_4)
{
long *plVar1;
int8 *puVar2;
long lVar3;
int8 uVar4;
if (param_4 != '\0') {
puVar2 = *(int8 **)(param_2 + 0x18);
if (*(long *)(param_2 + 0x10) == 0) {
uVar4 = 0;
}
else {
*(int8 **)(*(long *)(param_2 + 0x10) + 0x18) = puVar2;
uVar4 = *(int8 *)(param_2 + 0x10);
}
*puVar2 = uVar4;
}
plVar1 = (long *)(*(long *)(param_1 + 0x130) +
(ulong)(*(int *)(param_1 + 0x3c) - 1U & param_3) * 8);
*(long **)(param_2 + 0x18) = plVar1;
lVar3 = *plVar1;
*(long *)(param_2 + 0x10) = lVar3;
if (lVar3 != 0) {
*(long *)(lVar3 + 0x18) = param_2 + 0x10;
}
*plVar1 = param_2;
if ((*(uint *)(param_2 + 0x50) & 0x20) != 0) {
*(uint *)(param_2 + 0x50) = *(uint *)(param_2 + 0x50) & 0xffffffdf;
*(long *)(param_1 + 0x60) = *(long *)(param_1 + 0x60) + -1;
*(long *)(param_1 + 0x138) = *(long *)(param_1 + 0x138) + -1;
}
return;
}
| |
28,127 | get_access_family_id(memory_access&) | msxemulator/build_O3/_deps/picotool-src/main.cpp | uint32_t get_access_family_id(memory_access &file_access) {
uint32_t family_id = 0;
vector<uint8_t> bin;
std::unique_ptr<block> best_block = find_best_block(file_access, bin);
if (best_block == NULL) {
// No block, so RP2040 or absolute
if (file_access.get_binary_start() == FLASH_START) {
vector<uint8_t> checksum_data = {};
file_access.read_into_vector(FLASH_START, 252, checksum_data);
uint32_t checksum = file_access.read_int(FLASH_START + 252);
if (checksum == calc_checksum(checksum_data)) {
// Checksum is correct, so RP2040
DEBUG_LOG("Detected family ID %s due to boot2 checksum\n", family_name(RP2040_FAMILY_ID).c_str());
return RP2040_FAMILY_ID;
} else {
// Checksum incorrect, so absolute
DEBUG_LOG("Assumed family ID %s\n", family_name(ABSOLUTE_FAMILY_ID).c_str());
return ABSOLUTE_FAMILY_ID;
}
} else {
// no_flash RP2040 binaries have no checksum
DEBUG_LOG("Assumed family ID %s\n", family_name(RP2040_FAMILY_ID).c_str());
return RP2040_FAMILY_ID;
}
}
auto first_item = best_block->items[0].get();
if (first_item->type() != PICOBIN_BLOCK_ITEM_1BS_IMAGE_TYPE) {
// This will apply for partition tables
DEBUG_LOG("Assumed family ID %s due to block with no IMAGE_DEF\n", family_name(ABSOLUTE_FAMILY_ID).c_str());
return ABSOLUTE_FAMILY_ID;
}
auto image_def = dynamic_cast<image_type_item*>(first_item);
if (image_def->image_type() == type_exe) {
if (image_def->chip() == chip_rp2040) {
family_id = RP2040_FAMILY_ID;
} else if (image_def->chip() == chip_rp2350) {
if (image_def->cpu() == cpu_riscv) {
family_id = RP2350_RISCV_FAMILY_ID;
} else if (image_def->cpu() == cpu_arm) {
if (image_def->security() == sec_s) {
family_id = RP2350_ARM_S_FAMILY_ID;
} else if (image_def->security() == sec_ns) {
family_id = RP2350_ARM_NS_FAMILY_ID;
} else {
fail(ERROR_INCOMPATIBLE, "Cannot autodetect UF2 family: Unsupported security level %x\n", image_def->security());
}
} else {
fail(ERROR_INCOMPATIBLE, "Cannot autodetect UF2 family: Unsupported cpu %x\n", image_def->cpu());
}
} else {
fail(ERROR_INCOMPATIBLE, "Cannot autodetect UF2 family: Unsupported chip %x\n", image_def->chip());
}
} else if (image_def->image_type() == type_data) {
family_id = DATA_FAMILY_ID;
} else {
fail(ERROR_INCOMPATIBLE, "Cannot autodetect UF2 family: Unsupported image type %x\n", image_def->image_type());
}
return family_id;
} | O3 | cpp | get_access_family_id(memory_access&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x70, %rsp
movq %rdi, %r14
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %rdx
movaps %xmm0, (%rdx)
movq $0x0, 0x10(%rdx)
movq %rsp, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x219d7
movq (%rsp), %rax
testq %rax, %rax
je 0x2a9b5
movq 0x10(%rax), %rax
movq (%rax), %r14
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movl $0xe48bff57, %ebx # imm = 0xE48BFF57
cmpb $0x42, %al
jne 0x2ab13
leaq 0xb5021(%rip), %rsi # 0xdf950
leaq 0xb5042(%rip), %rdx # 0xdf978
movq %r14, %rdi
xorl %ecx, %ecx
callq 0xf4f0
movzwl 0x8(%rax), %eax
movl %eax, %ecx
andl $0xf, %ecx
cmpl $0x2, %ecx
je 0x2aa58
cmpl $0x1, %ecx
jne 0x2aa62
movl %eax, %ecx
shrl $0xc, %ecx
andl $0x7, %ecx
je 0x2aae2
cmpl $0x1, %ecx
jne 0x2aae9
movl %eax, %ecx
shrl $0x8, %ecx
andl $0x7, %ecx
cmpl $0x1, %ecx
je 0x2aaf2
testl %ecx, %ecx
jne 0x2aaf9
shrl $0x4, %eax
andl $0x3, %eax
cmpw $0x1, %ax
je 0x2ab41
movl $0xe48bff59, %ebx # imm = 0xE48BFF59
cmpl $0x2, %eax
je 0x2ab13
leaq 0x7a18f(%rip), %rsi # 0xa4b3f
jmp 0x2ab02
movq (%r14), %rax
movq %r14, %rdi
callq *0x20(%rax)
movl $0xe48bff56, %ebx # imm = 0xE48BFF56
cmpl $0x10000000, %eax # imm = 0x10000000
jne 0x2ab13
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %rcx
movaps %xmm0, (%rcx)
movq $0x0, 0x10(%rcx)
movq %r14, %rdi
movl $0x10000000, %esi # imm = 0x10000000
movl $0xfc, %edx
xorl %r8d, %r8d
callq 0x3a34c
movq (%r14), %rax
leaq 0xc(%rsp), %rdx
movq %r14, %rdi
movl $0x100000fc, %esi # imm = 0x100000FC
movl $0x4, %ecx
callq *(%rax)
movl 0xc(%rsp), %r12d
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rax
movq %rax, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
subq %rsi, %rbx
je 0x2aa6e
js 0x2ab48
movq %rbx, %rdi
callq 0xf460
movq %rax, %r14
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rax
movq %rax, %r15
subq %rsi, %r15
jmp 0x2aa74
movl $0xe48bff58, %ebx # imm = 0xE48BFF58
jmp 0x2ab13
leaq 0x7a178(%rip), %rsi # 0xa4be1
jmp 0x2ab00
xorl %r14d, %r14d
movq %rbx, %r15
movq %r14, 0x10(%rsp)
addq %r14, %rbx
movq %rbx, 0x20(%rsp)
cmpq %rsi, %rax
je 0x2aa91
movq %r14, %rdi
movq %r15, %rdx
callq 0xf730
addq %r15, %r14
leaq 0x10(%rsp), %rdi
movq %r14, 0x8(%rdi)
callq 0x73835
movl %eax, %ebp
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2aabb
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0xf470
xorl %ebx, %ebx
cmpl %ebp, %r12d
sete %bl
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x2aada
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0xf470
xorl $0xe48bff57, %ebx # imm = 0xE48BFF57
jmp 0x2ab13
movl $0xe48bff56, %ebx # imm = 0xE48BFF56
jmp 0x2ab13
leaq 0x7a0be(%rip), %rsi # 0xa4bae
jmp 0x2ab00
movl $0xe48bff5a, %ebx # imm = 0xE48BFF5A
jmp 0x2ab13
leaq 0x7a07c(%rip), %rsi # 0xa4b7c
movl %ecx, %eax
movzwl %ax, %edx
xorl %ebx, %ebx
movl $0xfffffffd, %edi # imm = 0xFFFFFFFD
xorl %eax, %eax
callq 0x7b492
movq %rsp, %rdi
callq 0x39aea
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x2ab32
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0xf470
movl %ebx, %eax
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0xe48bff5b, %ebx # imm = 0xE48BFF5B
jmp 0x2ab13
callq 0xf1c0
jmp 0x2ab6f
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2ab7c
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0xf470
jmp 0x2ab7c
jmp 0x2ab79
jmp 0x2ab6f
movq %rax, %rbx
jmp 0x2ab93
movq %rax, %rbx
jmp 0x2ab9b
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x2ab93
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0xf470
movq %rsp, %rdi
callq 0x39aea
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x2abb2
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0xf470
movq %rbx, %rdi
callq 0xf7d0
| _Z20get_access_family_idR13memory_access:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 70h
mov r14, rdi
xorps xmm0, xmm0
lea rdx, [rsp+98h+var_48]; int
movaps xmmword ptr [rdx], xmm0
mov qword ptr [rdx+10h], 0
mov rdi, rsp; int
mov rsi, r14; __int64
xor ecx, ecx
call _Z15find_best_blockR13memory_accessRSt6vectorIhSaIhEEb; find_best_block(memory_access &,std::vector<uchar> &,bool)
mov rax, [rsp+98h+var_98]
test rax, rax
jz loc_2A9B5
mov rax, [rax+10h]
mov r14, [rax]
mov rax, [r14]
mov rdi, r14
call qword ptr [rax+10h]
mov ebx, 0E48BFF57h
cmp al, 42h ; 'B'
jnz loc_2AB13
lea rsi, _ZTI4item; lpstype
lea rdx, _ZTI15image_type_item; lpdtype
mov rdi, r14; lpsrc
xor ecx, ecx; s2d
call ___dynamic_cast
movzx eax, word ptr [rax+8]
mov ecx, eax
and ecx, 0Fh
cmp ecx, 2
jz loc_2AA58
cmp ecx, 1
jnz loc_2AA62
mov ecx, eax
shr ecx, 0Ch
and ecx, 7
jz loc_2AAE2
cmp ecx, 1
jnz loc_2AAE9
mov ecx, eax
shr ecx, 8
and ecx, 7
cmp ecx, 1
jz loc_2AAF2
test ecx, ecx
jnz loc_2AAF9
shr eax, 4
and eax, 3
cmp ax, 1
jz loc_2AB41
mov ebx, 0E48BFF59h
cmp eax, 2
jz loc_2AB13
lea rsi, aCannotAutodete; "Cannot autodetect UF2 family: Unsupport"...
jmp loc_2AB02
loc_2A9B5:
mov rax, [r14]
mov rdi, r14
call qword ptr [rax+20h]
mov ebx, 0E48BFF56h
cmp eax, 10000000h
jnz loc_2AB13
xorps xmm0, xmm0
lea rcx, [rsp+98h+var_68]; int
movaps xmmword ptr [rcx], xmm0
mov qword ptr [rcx+10h], 0
mov rdi, r14; int
mov esi, 10000000h; int
mov edx, 0FCh; int
xor r8d, r8d; int
call _ZN13memory_access16read_into_vectorIhEEvjjRSt6vectorIT_SaIS2_EEb; memory_access::read_into_vector<uchar>(uint,uint,std::vector<uchar> &,bool)
mov rax, [r14]
lea rdx, [rsp+98h+var_8C]
mov rdi, r14
mov esi, 100000FCh
mov ecx, 4
call qword ptr [rax]
mov r12d, [rsp+98h+var_8C]
mov rsi, [rsp+98h+var_68]
mov rax, [rsp+98h+var_60]
mov rbx, rax
xorps xmm0, xmm0
movaps xmmword ptr [rsp+98h+var_88], xmm0
mov [rsp+98h+var_78], 0
sub rbx, rsi
jz short loc_2AA6E
js loc_2AB48
mov rdi, rbx; unsigned __int64
call __Znwm; operator new(ulong)
mov r14, rax
mov rsi, [rsp+98h+var_68]
mov rax, [rsp+98h+var_60]
mov r15, rax
sub r15, rsi
jmp short loc_2AA74
loc_2AA58:
mov ebx, 0E48BFF58h
jmp loc_2AB13
loc_2AA62:
lea rsi, aCannotAutodete_0; "Cannot autodetect UF2 family: Unsupport"...
jmp loc_2AB00
loc_2AA6E:
xor r14d, r14d
mov r15, rbx
loc_2AA74:
mov [rsp+98h+var_88], r14
add rbx, r14
mov [rsp+98h+var_78], rbx
cmp rax, rsi
jz short loc_2AA91
mov rdi, r14
mov rdx, r15
call _memmove
loc_2AA91:
add r14, r15
lea rdi, [rsp+98h+var_88]
mov [rdi+8], r14
call _Z13calc_checksumSt6vectorIhSaIhEE; calc_checksum(std::vector<uchar>)
mov ebp, eax
mov rdi, [rsp+98h+var_88]; void *
test rdi, rdi
jz short loc_2AABB
mov rsi, [rsp+98h+var_78]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2AABB:
xor ebx, ebx
cmp r12d, ebp
setz bl
mov rdi, [rsp+98h+var_68]; void *
test rdi, rdi
jz short loc_2AADA
mov rsi, [rsp+98h+var_58]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2AADA:
xor ebx, 0E48BFF57h
jmp short loc_2AB13
loc_2AAE2:
mov ebx, 0E48BFF56h
jmp short loc_2AB13
loc_2AAE9:
lea rsi, aCannotAutodete_1; "Cannot autodetect UF2 family: Unsupport"...
jmp short loc_2AB00
loc_2AAF2:
mov ebx, 0E48BFF5Ah
jmp short loc_2AB13
loc_2AAF9:
lea rsi, aCannotAutodete_2; "Cannot autodetect UF2 family: Unsupport"...
loc_2AB00:
mov eax, ecx
loc_2AB02:
movzx edx, ax
xor ebx, ebx
mov edi, 0FFFFFFFDh; int
xor eax, eax
call _Z4failiPKcz; fail(int,char const*,...)
loc_2AB13:
mov rdi, rsp
call _ZNSt10unique_ptrI5blockSt14default_deleteIS0_EED2Ev; std::unique_ptr<block>::~unique_ptr()
mov rdi, [rsp+98h+var_48]; void *
test rdi, rdi
jz short loc_2AB32
mov rsi, [rsp+98h+var_38]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2AB32:
mov eax, ebx
add rsp, 70h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_2AB41:
mov ebx, 0E48BFF5Bh
jmp short loc_2AB13
loc_2AB48:
call __ZSt17__throw_bad_allocv; std::__throw_bad_alloc(void)
jmp short loc_2AB6F
mov rbx, rax
mov rdi, [rsp+98h+var_88]; void *
test rdi, rdi
jz short loc_2AB7C
mov rsi, [rsp+98h+var_78]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_2AB7C
jmp short loc_2AB79
jmp short $+2
loc_2AB6F:
mov rbx, rax
jmp short loc_2AB93
mov rbx, rax
jmp short loc_2AB9B
loc_2AB79:
mov rbx, rax
loc_2AB7C:
mov rdi, [rsp+98h+var_68]; void *
test rdi, rdi
jz short loc_2AB93
mov rsi, [rsp+98h+var_58]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2AB93:
mov rdi, rsp
call _ZNSt10unique_ptrI5blockSt14default_deleteIS0_EED2Ev; std::unique_ptr<block>::~unique_ptr()
loc_2AB9B:
mov rdi, [rsp+98h+var_48]; void *
test rdi, rdi
jz short loc_2ABB2
mov rsi, [rsp+98h+var_38]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2ABB2:
mov rdi, rbx
call __Unwind_Resume
| long long get_access_family_id(memory_access *a1)
{
const void *v1; // r14
unsigned int v2; // ebx
unsigned int v3; // eax
int v4; // ecx
int v5; // eax
const char *v6; // rsi
int v7; // r9d
int v8; // r12d
__int128 v9; // kr00_16
long long v10; // rbx
char *v11; // r14
long long v12; // r15
int v13; // ebp
long long v15; // [rsp+0h] [rbp-98h] BYREF
void *v16; // [rsp+8h] [rbp-90h] BYREF
void *v17[2]; // [rsp+10h] [rbp-88h]
char *v18; // [rsp+20h] [rbp-78h]
__int128 v19; // [rsp+30h] [rbp-68h] BYREF
long long v20; // [rsp+40h] [rbp-58h]
__int128 v21; // [rsp+50h] [rbp-48h] BYREF
long long v22; // [rsp+60h] [rbp-38h]
v21 = 0LL;
v22 = 0LL;
find_best_block(&v15, (unsigned long long)a1, (long long)&v21, 0);
if ( !v15 )
{
v2 = -460587178;
if ( (*(unsigned int ( **)(memory_access *))(*(_QWORD *)a1 + 32LL))(a1) == 0x10000000 )
{
v19 = 0LL;
v20 = 0LL;
memory_access::read_into_vector<unsigned char>(
(int)a1,
0x10000000,
252,
(int)&v19,
0,
v7,
v15,
v16,
(int)v17[0],
(long long)v17[1]);
(**(void ( ***)(memory_access *, long long, char *, long long))a1)(a1, 268435708LL, (char *)&v16 + 4, 4LL);
v8 = HIDWORD(v16);
v9 = v19;
*(_OWORD *)v17 = 0LL;
v18 = 0LL;
v10 = *((_QWORD *)&v19 + 1) - v19;
if ( *((_QWORD *)&v19 + 1) == (_QWORD)v19 )
{
v11 = 0LL;
v12 = *((_QWORD *)&v19 + 1) - v19;
}
else
{
if ( (long long)(*((_QWORD *)&v19 + 1) - v19) < 0 )
std::__throw_bad_alloc();
v11 = (char *)operator new(*((_QWORD *)&v19 + 1) - v19);
v12 = *((_QWORD *)&v19 + 1) - v19;
v9 = v19;
}
v17[0] = v11;
v18 = &v11[v10];
if ( *((_QWORD *)&v9 + 1) != (_QWORD)v9 )
memmove(v11, v9, v12);
v17[1] = &v11[v12];
v13 = calc_checksum();
if ( v17[0] )
operator delete(v17[0], v18 - (char *)v17[0]);
if ( (_QWORD)v19 )
operator delete((void *)v19, v20 - v19);
v2 = (v8 == v13) ^ 0xE48BFF57;
}
goto LABEL_32;
}
v1 = **(const void ***)(v15 + 16);
v2 = -460587177;
if ( (*(unsigned __int8 ( **)(const void *))(*(_QWORD *)v1 + 16LL))(v1) != 66 )
goto LABEL_32;
v3 = *((unsigned __int16 *)__dynamic_cast(
v1,
(const struct __class_type_info *)&`typeinfo for'item,
(const struct __class_type_info *)&`typeinfo for'image_type_item,
0LL)
+ 4);
v4 = v3 & 0xF;
if ( v4 == 2 )
{
v2 = -460587176;
goto LABEL_32;
}
if ( v4 != 1 )
{
v6 = "Cannot autodetect UF2 family: Unsupported image type %x\n";
LABEL_30:
LOWORD(v5) = v4;
LABEL_31:
fail(-3, v6, (unsigned __int16)v5);
}
v4 = (v3 >> 12) & 7;
if ( !v4 )
{
v2 = -460587178;
goto LABEL_32;
}
if ( v4 != 1 )
{
v6 = "Cannot autodetect UF2 family: Unsupported chip %x\n";
goto LABEL_30;
}
v4 = (v3 >> 8) & 7;
if ( v4 == 1 )
{
v2 = -460587174;
goto LABEL_32;
}
if ( v4 )
{
v6 = "Cannot autodetect UF2 family: Unsupported cpu %x\n";
goto LABEL_30;
}
v5 = (v3 >> 4) & 3;
if ( (_WORD)v5 == 1 )
{
v2 = -460587173;
}
else
{
v2 = -460587175;
if ( v5 != 2 )
{
v6 = "Cannot autodetect UF2 family: Unsupported security level %x\n";
goto LABEL_31;
}
}
LABEL_32:
std::unique_ptr<block>::~unique_ptr(&v15);
if ( (_QWORD)v21 )
operator delete((void *)v21, v22 - v21);
return v2;
}
| get_access_family_id:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x70
MOV R14,RDI
XORPS XMM0,XMM0
LEA RDX,[RSP + 0x50]
MOVAPS xmmword ptr [RDX],XMM0
MOV qword ptr [RDX + 0x10],0x0
LAB_0012a8f1:
MOV RDI,RSP
MOV RSI,R14
XOR ECX,ECX
CALL 0x001219d7
MOV RAX,qword ptr [RSP]
TEST RAX,RAX
JZ 0x0012a9b5
MOV RAX,qword ptr [RAX + 0x10]
MOV R14,qword ptr [RAX]
MOV RAX,qword ptr [R14]
LAB_0012a915:
MOV RDI,R14
CALL qword ptr [RAX + 0x10]
MOV EBX,0xe48bff57
CMP AL,0x42
JNZ 0x0012ab13
LEA RSI,[0x1df950]
LEA RDX,[0x1df978]
MOV RDI,R14
XOR ECX,ECX
CALL 0x0010f4f0
MOVZX EAX,word ptr [RAX + 0x8]
MOV ECX,EAX
AND ECX,0xf
CMP ECX,0x2
JZ 0x0012aa58
CMP ECX,0x1
JNZ 0x0012aa62
MOV ECX,EAX
SHR ECX,0xc
AND ECX,0x7
JZ 0x0012aae2
CMP ECX,0x1
JNZ 0x0012aae9
MOV ECX,EAX
SHR ECX,0x8
AND ECX,0x7
CMP ECX,0x1
JZ 0x0012aaf2
TEST ECX,ECX
JNZ 0x0012aaf9
SHR EAX,0x4
AND EAX,0x3
CMP AX,0x1
JZ 0x0012ab41
MOV EBX,0xe48bff59
CMP EAX,0x2
JZ 0x0012ab13
LEA RSI,[0x1a4b3f]
JMP 0x0012ab02
LAB_0012a9b5:
MOV RAX,qword ptr [R14]
LAB_0012a9b8:
MOV RDI,R14
CALL qword ptr [RAX + 0x20]
MOV EBX,0xe48bff56
CMP EAX,0x10000000
JNZ 0x0012ab13
XORPS XMM0,XMM0
LEA RCX,[RSP + 0x30]
MOVAPS xmmword ptr [RCX],XMM0
MOV qword ptr [RCX + 0x10],0x0
LAB_0012a9e1:
MOV RDI,R14
MOV ESI,0x10000000
MOV EDX,0xfc
XOR R8D,R8D
CALL 0x0013a34c
MOV RAX,qword ptr [R14]
LAB_0012a9f9:
LEA RDX,[RSP + 0xc]
MOV RDI,R14
MOV ESI,0x100000fc
MOV ECX,0x4
CALL qword ptr [RAX]
MOV R12D,dword ptr [RSP + 0xc]
MOV RSI,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RSP + 0x38]
MOV RBX,RAX
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x10],XMM0
MOV qword ptr [RSP + 0x20],0x0
SUB RBX,RSI
JZ 0x0012aa6e
JS 0x0012ab48
MOV RDI,RBX
CALL 0x0010f460
LAB_0012aa43:
MOV R14,RAX
MOV RSI,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RSP + 0x38]
MOV R15,RAX
SUB R15,RSI
JMP 0x0012aa74
LAB_0012aa58:
MOV EBX,0xe48bff58
JMP 0x0012ab13
LAB_0012aa62:
LEA RSI,[0x1a4be1]
JMP 0x0012ab00
LAB_0012aa6e:
XOR R14D,R14D
MOV R15,RBX
LAB_0012aa74:
MOV qword ptr [RSP + 0x10],R14
ADD RBX,R14
MOV qword ptr [RSP + 0x20],RBX
CMP RAX,RSI
JZ 0x0012aa91
MOV RDI,R14
MOV RDX,R15
CALL 0x0010f730
LAB_0012aa91:
ADD R14,R15
LEA RDI,[RSP + 0x10]
MOV qword ptr [RDI + 0x8],R14
LAB_0012aa9d:
CALL 0x00173835
MOV EBP,EAX
MOV RDI,qword ptr [RSP + 0x10]
TEST RDI,RDI
JZ 0x0012aabb
MOV RSI,qword ptr [RSP + 0x20]
SUB RSI,RDI
CALL 0x0010f470
LAB_0012aabb:
XOR EBX,EBX
CMP R12D,EBP
SETZ BL
MOV RDI,qword ptr [RSP + 0x30]
TEST RDI,RDI
JZ 0x0012aada
MOV RSI,qword ptr [RSP + 0x40]
SUB RSI,RDI
CALL 0x0010f470
LAB_0012aada:
XOR EBX,0xe48bff57
JMP 0x0012ab13
LAB_0012aae2:
MOV EBX,0xe48bff56
JMP 0x0012ab13
LAB_0012aae9:
LEA RSI,[0x1a4bae]
JMP 0x0012ab00
LAB_0012aaf2:
MOV EBX,0xe48bff5a
JMP 0x0012ab13
LAB_0012aaf9:
LEA RSI,[0x1a4b7c]
LAB_0012ab00:
MOV EAX,ECX
LAB_0012ab02:
MOVZX EDX,AX
XOR EBX,EBX
LAB_0012ab07:
MOV EDI,0xfffffffd
XOR EAX,EAX
CALL 0x0017b492
LAB_0012ab13:
MOV RDI,RSP
CALL 0x00139aea
MOV RDI,qword ptr [RSP + 0x50]
TEST RDI,RDI
JZ 0x0012ab32
MOV RSI,qword ptr [RSP + 0x60]
SUB RSI,RDI
CALL 0x0010f470
LAB_0012ab32:
MOV EAX,EBX
ADD RSP,0x70
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0012ab41:
MOV EBX,0xe48bff5b
JMP 0x0012ab13
LAB_0012ab48:
CALL 0x0010f1c0
|
/* get_access_family_id(memory_access&) */
uint get_access_family_id(memory_access *param_1)
{
ushort uVar1;
long *plVar2;
char cVar3;
int iVar4;
long lVar5;
void *__dest;
ushort uVar6;
uint uVar7;
ulong uVar8;
char *pcVar9;
size_t __n;
long local_98;
int local_8c;
void *local_88;
long lStack_80;
long local_78;
void *local_68;
void *pvStack_60;
long local_58;
void *local_48;
int8 uStack_40;
long local_38;
local_48 = (void *)0x0;
uStack_40 = 0;
local_38 = 0;
/* try { // try from 0012a8f1 to 0012a8fd has its CatchHandler @ 0012ab74 */
find_best_block((memory_access *)&local_98,param_1,SUB81(&local_48,0));
if (local_98 == 0) {
/* try { // try from 0012a9b8 to 0012a9bd has its CatchHandler @ 0012ab6d */
iVar4 = (**(code **)(*(long *)param_1 + 0x20))(param_1);
uVar7 = 0xe48bff56;
if (iVar4 == 0x10000000) {
local_68 = (void *)0x0;
pvStack_60 = (void *)0x0;
local_58 = 0;
/* try { // try from 0012a9e1 to 0012a9f5 has its CatchHandler @ 0012ab6b */
memory_access::read_into_vector<unsigned_char>
(param_1,0x10000000,0xfc,(vector *)&local_68,false);
/* try { // try from 0012a9f9 to 0012aa42 has its CatchHandler @ 0012ab79 */
(*(code *)**(int8 **)param_1)(param_1,0x100000fc,&local_8c,4);
local_88 = (void *)0x0;
lStack_80 = 0;
local_78 = 0;
uVar8 = (long)pvStack_60 - (long)local_68;
if (uVar8 == 0) {
__dest = (void *)0x0;
__n = 0;
}
else {
if ((long)uVar8 < 0) {
/* WARNING: Subroutine does not return */
/* try { // try from 0012ab48 to 0012ab4c has its CatchHandler @ 0012ab79 */
std::__throw_bad_alloc();
}
__dest = operator_new(uVar8);
__n = (long)pvStack_60 - (long)local_68;
}
local_78 = uVar8 + (long)__dest;
local_88 = __dest;
if (pvStack_60 != local_68) {
memmove(__dest,local_68,__n);
}
lStack_80 = (long)__dest + __n;
/* try { // try from 0012aa9d to 0012aaa1 has its CatchHandler @ 0012ab4f */
iVar4 = calc_checksum();
if (local_88 != (void *)0x0) {
operator_delete(local_88,local_78 - (long)local_88);
}
if (local_68 != (void *)0x0) {
operator_delete(local_68,local_58 - (long)local_68);
}
uVar7 = local_8c == iVar4 ^ 0xe48bff57;
}
}
else {
plVar2 = (long *)**(int8 **)(local_98 + 0x10);
/* try { // try from 0012a915 to 0012a91a has its CatchHandler @ 0012ab6f */
cVar3 = (**(code **)(*plVar2 + 0x10))(plVar2);
uVar7 = 0xe48bff57;
if (cVar3 == 'B') {
lVar5 = __dynamic_cast(plVar2,&item::typeinfo,&image_type_item::typeinfo,0);
uVar1 = *(ushort *)(lVar5 + 8);
uVar6 = uVar1 & 0xf;
if (uVar6 == 2) {
uVar7 = 0xe48bff58;
}
else {
if (uVar6 == 1) {
uVar6 = uVar1 >> 0xc & 7;
if ((uVar1 >> 0xc & 7) == 0) {
uVar7 = 0xe48bff56;
goto LAB_0012ab13;
}
if (uVar6 == 1) {
uVar6 = uVar1 >> 8 & 7;
if (uVar6 == 1) {
uVar7 = 0xe48bff5a;
goto LAB_0012ab13;
}
if ((uVar1 >> 8 & 7) == 0) {
uVar6 = uVar1 >> 4 & 3;
if (uVar6 == 1) {
uVar7 = 0xe48bff5b;
goto LAB_0012ab13;
}
uVar7 = 0xe48bff59;
if (uVar6 == 2) goto LAB_0012ab13;
pcVar9 = "Cannot autodetect UF2 family: Unsupported security level %x\n";
}
else {
pcVar9 = "Cannot autodetect UF2 family: Unsupported cpu %x\n";
}
}
else {
pcVar9 = "Cannot autodetect UF2 family: Unsupported chip %x\n";
}
}
else {
pcVar9 = "Cannot autodetect UF2 family: Unsupported image type %x\n";
}
uVar7 = 0;
/* try { // try from 0012ab07 to 0012ab12 has its CatchHandler @ 0012ab4d */
fail(-3,pcVar9,(ulong)uVar6);
}
}
}
LAB_0012ab13:
std::unique_ptr<block,std::default_delete<block>>::~unique_ptr
((unique_ptr<block,std::default_delete<block>> *)&local_98);
if (local_48 != (void *)0x0) {
operator_delete(local_48,local_38 - (long)local_48);
}
return uVar7;
}
| |
28,128 | mysql_kill_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_kill_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_kill,
(parms->mysql, parms->pid),
parms->mysql,
int,
r_int)
} | O0 | c | mysql_kill_start_internal:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x26080
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| mysql_kill_start_internal:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rdi, [rax]
mov rax, [rbp+var_10]
mov rsi, [rax+8]
call mysql_kill
mov [rbp+var_14], eax
mov ecx, [rbp+var_14]
mov rax, [rbp+var_20]
mov [rax+8], ecx
mov rax, [rbp+var_20]
mov dword ptr [rax], 0
add rsp, 20h
pop rbp
retn
| _DWORD * mysql_kill_start_internal(long long *a1)
{
_DWORD *result; // rax
_DWORD *v2; // [rsp+0h] [rbp-20h]
v2 = *(_DWORD **)(*(_QWORD *)(*a1 + 1152) + 40LL);
v2[2] = mysql_kill(*a1, a1[1]);
result = v2;
*v2 = 0;
return result;
}
| mysql_kill_start_internal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x00126080
MOV dword ptr [RBP + -0x14],EAX
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x8],ECX
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX],0x0
ADD RSP,0x20
POP RBP
RET
|
void mysql_kill_start_internal(long *param_1)
{
int4 *puVar1;
int4 uVar2;
puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28);
uVar2 = mysql_kill(*param_1,param_1[1]);
puVar1[2] = uVar2;
*puVar1 = 0;
return;
}
| |
28,129 | mi_ck_write_btree | eloqsql/storage/myisam/mi_write.c | int _mi_ck_write_btree(register MI_INFO *info, uint keynr, uchar *key,
uint key_length)
{
int error;
uint comp_flag;
MI_KEYDEF *keyinfo=info->s->keyinfo+keynr;
my_off_t *root=&info->s->state.key_root[keynr];
DBUG_ENTER("_mi_ck_write_btree");
if (keyinfo->flag & HA_SORT_ALLOWS_SAME)
comp_flag=SEARCH_BIGGER; /* Put after same key */
else if (keyinfo->flag & (HA_NOSAME|HA_FULLTEXT))
{
comp_flag=SEARCH_FIND | SEARCH_UPDATE | SEARCH_INSERT; /* No duplicates */
if (keyinfo->flag & HA_NULL_ARE_EQUAL)
comp_flag|= SEARCH_NULL_ARE_EQUAL;
}
else
comp_flag=SEARCH_SAME; /* Keys in rec-pos order */
error=_mi_ck_real_write_btree(info, keyinfo, key, key_length,
root, comp_flag);
if (info->ft1_to_ft2)
{
if (!error)
error= _mi_ft_convert_to_ft2(info, keynr, key);
delete_dynamic(info->ft1_to_ft2);
my_free(info->ft1_to_ft2);
info->ft1_to_ft2=0;
}
DBUG_RETURN(error);
} | O0 | c | mi_ck_write_btree:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x218(%rax), %rax
movl -0xc(%rbp), %ecx
imulq $0x70, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x98(%rax), %rax
movl -0xc(%rbp), %ecx
shlq $0x3, %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movzwl 0xa(%rax), %eax
andl $0x200, %eax # imm = 0x200
cmpl $0x0, %eax
je 0xc70b9
movl $0x8, -0x24(%rbp)
jmp 0xc70fa
movq -0x30(%rbp), %rax
movzwl 0xa(%rax), %eax
andl $0x81, %eax
cmpl $0x0, %eax
je 0xc70f1
movl $0x20041, -0x24(%rbp) # imm = 0x20041
movq -0x30(%rbp), %rax
movzwl 0xa(%rax), %eax
andl $0x800, %eax # imm = 0x800
cmpl $0x0, %eax
je 0xc70ef
movl -0x24(%rbp), %eax
orl $0x8000, %eax # imm = 0x8000
movl %eax, -0x24(%rbp)
jmp 0xc70f8
movl $0x4, -0x24(%rbp)
jmp 0xc70fa
movq -0x8(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x1c(%rbp), %ecx
movq -0x38(%rbp), %r8
movl -0x24(%rbp), %r9d
callq 0xc7180
movl %eax, -0x20(%rbp)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x88(%rax)
je 0xc716f
cmpl $0x0, -0x20(%rbp)
jne 0xc7140
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
callq 0xa4910
movl %eax, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq 0x88(%rax), %rdi
callq 0xdc0d0
movq -0x8(%rbp), %rax
movq 0x88(%rax), %rdi
callq 0xf86d0
movq -0x8(%rbp), %rax
movq $0x0, 0x88(%rax)
jmp 0xc7171
movl -0x20(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
| _mi_ck_write_btree:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov [rbp+var_1C], ecx
mov rax, [rbp+var_8]
mov rax, [rax]
mov rax, [rax+218h]
mov ecx, [rbp+var_C]
imul rcx, 70h ; 'p'
add rax, rcx
mov [rbp+var_30], rax
mov rax, [rbp+var_8]
mov rax, [rax]
mov rax, [rax+98h]
mov ecx, [rbp+var_C]
shl rcx, 3
add rax, rcx
mov [rbp+var_38], rax
mov rax, [rbp+var_30]
movzx eax, word ptr [rax+0Ah]
and eax, 200h
cmp eax, 0
jz short loc_C70B9
mov [rbp+var_24], 8
jmp short loc_C70FA
loc_C70B9:
mov rax, [rbp+var_30]
movzx eax, word ptr [rax+0Ah]
and eax, 81h
cmp eax, 0
jz short loc_C70F1
mov [rbp+var_24], 20041h
mov rax, [rbp+var_30]
movzx eax, word ptr [rax+0Ah]
and eax, 800h
cmp eax, 0
jz short loc_C70EF
mov eax, [rbp+var_24]
or eax, 8000h
mov [rbp+var_24], eax
loc_C70EF:
jmp short loc_C70F8
loc_C70F1:
mov [rbp+var_24], 4
loc_C70F8:
jmp short $+2
loc_C70FA:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_30]
mov rdx, [rbp+var_18]
mov ecx, [rbp+var_1C]
mov r8, [rbp+var_38]
mov r9d, [rbp+var_24]
call _mi_ck_real_write_btree
mov [rbp+var_20], eax
mov rax, [rbp+var_8]
cmp qword ptr [rax+88h], 0
jz short loc_C716F
cmp [rbp+var_20], 0
jnz short loc_C7140
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
call _mi_ft_convert_to_ft2
mov [rbp+var_20], eax
loc_C7140:
mov rax, [rbp+var_8]
mov rdi, [rax+88h]
call delete_dynamic
mov rax, [rbp+var_8]
mov rdi, [rax+88h]
call my_free
mov rax, [rbp+var_8]
mov qword ptr [rax+88h], 0
loc_C716F:
jmp short $+2
loc_C7171:
mov eax, [rbp+var_20]
mov [rbp+var_3C], eax
mov eax, [rbp+var_3C]
add rsp, 40h
pop rbp
retn
| long long mi_ck_write_btree(_QWORD *a1, unsigned int a2, unsigned __int8 *a3, unsigned int a4)
{
long long v5; // [rsp+10h] [rbp-30h]
unsigned int v6; // [rsp+1Ch] [rbp-24h]
unsigned int v7; // [rsp+20h] [rbp-20h]
v5 = 112LL * a2 + *(_QWORD *)(*a1 + 536LL);
if ( (*(_WORD *)(v5 + 10) & 0x200) != 0 )
{
v6 = 8;
}
else if ( (*(_WORD *)(v5 + 10) & 0x81) != 0 )
{
v6 = 131137;
if ( (*(_WORD *)(v5 + 10) & 0x800) != 0 )
v6 = 163905;
}
else
{
v6 = 4;
}
v7 = mi_ck_real_write_btree(a1, v5, a3, a4, 8LL * a2 + *(_QWORD *)(*a1 + 152LL), v6);
if ( a1[17] )
{
if ( !v7 )
v7 = mi_ft_convert_to_ft2(a1, a2, a3);
delete_dynamic(a1[17]);
my_free(a1[17]);
a1[17] = 0LL;
}
return v7;
}
| _mi_ck_write_btree:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
MOV dword ptr [RBP + -0x1c],ECX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x218]
MOV ECX,dword ptr [RBP + -0xc]
IMUL RCX,RCX,0x70
ADD RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x98]
MOV ECX,dword ptr [RBP + -0xc]
SHL RCX,0x3
ADD RAX,RCX
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,word ptr [RAX + 0xa]
AND EAX,0x200
CMP EAX,0x0
JZ 0x001c70b9
MOV dword ptr [RBP + -0x24],0x8
JMP 0x001c70fa
LAB_001c70b9:
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,word ptr [RAX + 0xa]
AND EAX,0x81
CMP EAX,0x0
JZ 0x001c70f1
MOV dword ptr [RBP + -0x24],0x20041
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,word ptr [RAX + 0xa]
AND EAX,0x800
CMP EAX,0x0
JZ 0x001c70ef
MOV EAX,dword ptr [RBP + -0x24]
OR EAX,0x8000
MOV dword ptr [RBP + -0x24],EAX
LAB_001c70ef:
JMP 0x001c70f8
LAB_001c70f1:
MOV dword ptr [RBP + -0x24],0x4
LAB_001c70f8:
JMP 0x001c70fa
LAB_001c70fa:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x30]
MOV RDX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x1c]
MOV R8,qword ptr [RBP + -0x38]
MOV R9D,dword ptr [RBP + -0x24]
CALL 0x001c7180
MOV dword ptr [RBP + -0x20],EAX
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x88],0x0
JZ 0x001c716f
CMP dword ptr [RBP + -0x20],0x0
JNZ 0x001c7140
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x001a4910
MOV dword ptr [RBP + -0x20],EAX
LAB_001c7140:
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x88]
CALL 0x001dc0d0
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x88]
CALL 0x001f86d0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x88],0x0
LAB_001c716f:
JMP 0x001c7171
LAB_001c7171:
MOV EAX,dword ptr [RBP + -0x20]
MOV dword ptr [RBP + -0x3c],EAX
MOV EAX,dword ptr [RBP + -0x3c]
ADD RSP,0x40
POP RBP
RET
|
int _mi_ck_write_btree(long *param_1,uint param_2,int8 param_3,int4 param_4)
{
long lVar1;
int4 local_2c;
int local_28;
lVar1 = *(long *)(*param_1 + 0x218) + (ulong)param_2 * 0x70;
if ((*(ushort *)(lVar1 + 10) & 0x200) == 0) {
if ((*(ushort *)(lVar1 + 10) & 0x81) == 0) {
local_2c = 4;
}
else {
local_2c = 0x20041;
if ((*(ushort *)(lVar1 + 10) & 0x800) != 0) {
local_2c = 0x28041;
}
}
}
else {
local_2c = 8;
}
local_28 = _mi_ck_real_write_btree
(param_1,lVar1,param_3,param_4,
*(long *)(*param_1 + 0x98) + (ulong)param_2 * 8,local_2c);
if (param_1[0x11] != 0) {
if (local_28 == 0) {
local_28 = _mi_ft_convert_to_ft2(param_1,param_2,param_3);
}
delete_dynamic(param_1[0x11]);
my_free(param_1[0x11]);
param_1[0x11] = 0;
}
return local_28;
}
| |
28,130 | minja::Parser::parseString[abi:cxx11]() | monkey531[P]llama/common/minja.hpp | std::unique_ptr<std::string> parseString() {
auto doParse = [&](char quote) -> std::unique_ptr<std::string> {
if (it == end || *it != quote) return nullptr;
std::string result;
bool escape = false;
for (++it; it != end; ++it) {
if (escape) {
escape = false;
switch (*it) {
case 'n': result += '\n'; break;
case 'r': result += '\r'; break;
case 't': result += '\t'; break;
case 'b': result += '\b'; break;
case 'f': result += '\f'; break;
case '\\': result += '\\'; break;
default:
if (*it == quote) {
result += quote;
} else {
result += *it;
}
break;
}
} else if (*it == '\\') {
escape = true;
} else if (*it == quote) {
++it;
return std::make_unique<std::string>(std::move(result));
} else {
result += *it;
}
}
return nullptr;
};
consumeSpaces();
if (it == end) return nullptr;
if (*it == '"') return doParse('"');
if (*it == '\'') return doParse('\'');
return nullptr;
} | O1 | cpp | minja::Parser::parseString[abi:cxx11]():
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, (%rsp)
movq 0x18(%rsi), %r15
movq 0x20(%rsi), %r12
cmpq %r15, %r12
je 0x8c1ec
movsbl (%r12), %edi
callq 0x1b0c0
testl %eax, %eax
je 0x8c1ec
incq %r12
movq %r12, 0x20(%r14)
jmp 0x8c1d0
movq 0x20(%r14), %rax
cmpq %r15, %rax
je 0x8c20f
movzbl (%rax), %eax
cmpl $0x27, %eax
je 0x8c218
cmpl $0x22, %eax
jne 0x8c20f
movq %rsp, %rsi
movq %rbx, %rdi
movl $0x22, %edx
jmp 0x8c223
movq $0x0, (%rbx)
jmp 0x8c228
movq %rsp, %rsi
movq %rbx, %rdi
movl $0x27, %edx
callq 0x8c676
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
| _ZN5minja6Parser11parseStringB5cxx11Ev:
push r15
push r14
push r12; __int64
push rbx; int
push rax
mov r14, rsi
mov rbx, rdi
mov [rsp+28h+var_28], rsi; void *
mov r15, [rsi+18h]
mov r12, [rsi+20h]
loc_8C1D0:
cmp r12, r15
jz short loc_8C1EC
movsx edi, byte ptr [r12]
call _isspace
test eax, eax
jz short loc_8C1EC
inc r12
mov [r14+20h], r12
jmp short loc_8C1D0
loc_8C1EC:
mov rax, [r14+20h]
cmp rax, r15
jz short loc_8C20F
movzx eax, byte ptr [rax]
cmp eax, 27h ; '''
jz short loc_8C218
cmp eax, 22h ; '"'
jnz short loc_8C20F
mov rsi, rsp
mov rdi, rbx
mov edx, 22h ; '"'
jmp short loc_8C223
loc_8C20F:
mov qword ptr [rbx], 0
jmp short loc_8C228
loc_8C218:
mov rsi, rsp; int
mov rdi, rbx; int
mov edx, 27h ; '''; int
loc_8C223:
call _ZZN5minja6Parser11parseStringB5cxx11EvENKUlcE_clB5cxx11Ec; minja::Parser::parseString(void)::{lambda(char)#1}::operator()(char)
loc_8C228:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| _QWORD * minja::Parser::parseString[abi:cxx11](_QWORD *a1, char **a2, long long a3, int a4, int a5, int a6)
{
char *v6; // r15
char *i; // r12
unsigned __int8 *v8; // rax
int v9; // eax
int v10; // edx
void *v12; // [rsp+0h] [rbp-28h] BYREF
int v13; // [rsp+8h] [rbp-20h]
long long v14; // [rsp+10h] [rbp-18h]
v12 = a2;
v6 = a2[3];
for ( i = a2[4]; i != v6 && (unsigned int)isspace((unsigned int)*i); a2[4] = i )
++i;
v8 = (unsigned __int8 *)a2[4];
if ( v8 != (unsigned __int8 *)v6 )
{
v9 = *v8;
if ( v9 == 39 )
{
v10 = 39;
goto LABEL_11;
}
if ( v9 == 34 )
{
v10 = 34;
LABEL_11:
minja::Parser::parseString[abi:cxx11](void)::{lambda(char)#1}::operator()[abi:cxx11](
(int)a1,
(int)&v12,
v10,
a4,
a5,
a6,
v12,
v13,
v14);
return a1;
}
}
*a1 = 0LL;
return a1;
}
| parseString[abi:cxx11]:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
MOV qword ptr [RSP],RSI
MOV R15,qword ptr [RSI + 0x18]
MOV R12,qword ptr [RSI + 0x20]
LAB_0018c1d0:
CMP R12,R15
JZ 0x0018c1ec
MOVSX EDI,byte ptr [R12]
CALL 0x0011b0c0
TEST EAX,EAX
JZ 0x0018c1ec
INC R12
MOV qword ptr [R14 + 0x20],R12
JMP 0x0018c1d0
LAB_0018c1ec:
MOV RAX,qword ptr [R14 + 0x20]
CMP RAX,R15
JZ 0x0018c20f
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x27
JZ 0x0018c218
CMP EAX,0x22
JNZ 0x0018c20f
MOV RSI,RSP
MOV RDI,RBX
MOV EDX,0x22
JMP 0x0018c223
LAB_0018c20f:
MOV qword ptr [RBX],0x0
JMP 0x0018c228
LAB_0018c218:
MOV RSI,RSP
MOV RDI,RBX
MOV EDX,0x27
LAB_0018c223:
CALL 0x0018c676
LAB_0018c228:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* minja::Parser::parseString[abi:cxx11]() */
void minja::Parser::parseString_abi_cxx11_(void)
{
char cVar1;
char *pcVar2;
int iVar3;
long in_RSI;
int8 *in_RDI;
char *pcVar4;
pcVar2 = *(char **)(in_RSI + 0x18);
pcVar4 = *(char **)(in_RSI + 0x20);
while ((pcVar4 != pcVar2 && (iVar3 = isspace((int)*pcVar4), iVar3 != 0))) {
pcVar4 = pcVar4 + 1;
*(char **)(in_RSI + 0x20) = pcVar4;
}
if ((*(char **)(in_RSI + 0x20) == pcVar2) ||
((cVar1 = **(char **)(in_RSI + 0x20), cVar1 != '\'' && (cVar1 != '\"')))) {
*in_RDI = 0;
}
else {
parseString[abi:cxx11]()::{lambda(char)#1}::operator()[abi_cxx11_((char)in_RDI);
}
return;
}
| |
28,131 | my_hash_sort_simple | eloqsql/strings/ctype-simple.c | void my_hash_sort_simple(CHARSET_INFO *cs,
const uchar *key, size_t len,
ulong *nr1, ulong *nr2)
{
register const uchar *sort_order=cs->sort_order;
const uchar *end;
uint16 space_weight= sort_order[' '];
/*
Remove all trailing characters that are equal to space.
We have to do this to be able to compare 'A ' and 'A' as identical.
If the key is long enough, cut the trailing spaces (0x20) using an
optimized function implemented in skip_trailing_spaces().
"len > 16" is just some heuristic here.
Calling skip_triling_space() for short values is not desirable,
because its initialization block may be more expensive than the
performance gained.
*/
end= len > 16 ? skip_trailing_space(key, len) : key + len;
/*
We removed all trailing characters that are binary equal to space 0x20.
Now remove all trailing characters that have weights equal to space.
Some 8bit simple collations may have such characters:
- cp1250_general_ci 0xA0 NO-BREAK SPACE == 0x20 SPACE
- cp1251_ukrainian_ci 0x60 GRAVE ACCENT == 0x20 SPACE
- koi8u_general_ci 0x60 GRAVE ACCENT == 0x20 SPACE
*/
for ( ; key < end ; )
{
if (sort_order[*--end] != space_weight)
{
end++;
break;
}
}
my_hash_sort_simple_nopad(cs, key, end - key, nr1, nr2);
} | O3 | c | my_hash_sort_simple:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
movq 0x58(%rdi), %rax
leaq (%rsi,%rdx), %rdi
cmpq $0x11, %rdx
jb 0x3879d
cmpq $0x15, %rdx
jb 0x38788
movq %rdi, %r10
andq $-0x4, %r10
cmpq %rsi, %r10
jbe 0x38788
leaq 0x3(%rsi), %r9
andq $-0x4, %r9
movq %rdi, %rdx
movb -0x1(%rdi), %r11b
cmpq %r10, %rdi
jbe 0x38808
leaq -0x1(%rdx), %rdi
cmpb $0x20, %r11b
je 0x3876c
jmp 0x3878b
movq %rdi, %rdx
movq %rdx, %rdi
cmpq %rsi, %rdx
jbe 0x3879d
leaq -0x1(%rdi), %rdx
cmpb $0x20, -0x1(%rdi)
je 0x3878b
movb 0x20(%rax), %r9b
movq %rdi, %r11
subq %rsi, %r11
movq %rdi, %rdx
movq %r11, %r10
cmpq %rsi, %rdi
jbe 0x387c4
leaq -0x1(%rdx), %rdi
movzbl -0x1(%rdx), %ebx
leaq -0x1(%r10), %r11
cmpb %r9b, (%rax,%rbx)
je 0x387a7
movq (%rcx), %rdi
movq (%r8), %r9
testq %r10, %r10
jle 0x387ff
movl %edi, %r10d
andl $0x3f, %r10d
addq %r9, %r10
movzbl (%rsi), %r11d
movzbl (%rax,%r11), %r11d
imulq %r10, %r11
movq %rdi, %r10
shlq $0x8, %r10
addq %r11, %r10
xorq %r10, %rdi
addq $0x3, %r9
incq %rsi
cmpq %rdx, %rsi
jb 0x387cf
movq %rdi, (%rcx)
movq %r9, (%r8)
popq %rbx
popq %rbp
retq
cmpb $0x20, %r11b
setne %dil
cmpq %r10, %r9
setae %r10b
orb %dil, %r10b
jne 0x3878b
movq %rdx, %rdi
movq %rdi, %rdx
cmpq %r9, %rdi
jbe 0x3878b
leaq -0x4(%rdx), %rdi
cmpl $0x20202020, -0x4(%rdx) # imm = 0x20202020
je 0x38823
jmp 0x3878b
| my_hash_sort_simple:
push rbp
mov rbp, rsp
push rbx
mov rax, [rdi+58h]
lea rdi, [rsi+rdx]
cmp rdx, 11h
jb short loc_3879D
cmp rdx, 15h
jb short loc_38788
mov r10, rdi
and r10, 0FFFFFFFFFFFFFFFCh
cmp r10, rsi
jbe short loc_38788
lea r9, [rsi+3]
and r9, 0FFFFFFFFFFFFFFFCh
loc_3876C:
mov rdx, rdi
mov r11b, [rdi-1]
cmp rdi, r10
jbe loc_38808
lea rdi, [rdx-1]
cmp r11b, 20h ; ' '
jz short loc_3876C
jmp short loc_3878B
loc_38788:
mov rdx, rdi
loc_3878B:
mov rdi, rdx
cmp rdx, rsi
jbe short loc_3879D
lea rdx, [rdi-1]
cmp byte ptr [rdi-1], 20h ; ' '
jz short loc_3878B
loc_3879D:
mov r9b, [rax+20h]
mov r11, rdi
sub r11, rsi
loc_387A7:
mov rdx, rdi
mov r10, r11
cmp rdi, rsi
jbe short loc_387C4
lea rdi, [rdx-1]
movzx ebx, byte ptr [rdx-1]
lea r11, [r10-1]
cmp [rax+rbx], r9b
jz short loc_387A7
loc_387C4:
mov rdi, [rcx]
mov r9, [r8]
test r10, r10
jle short loc_387FF
loc_387CF:
mov r10d, edi
and r10d, 3Fh
add r10, r9
movzx r11d, byte ptr [rsi]
movzx r11d, byte ptr [rax+r11]
imul r11, r10
mov r10, rdi
shl r10, 8
add r10, r11
xor rdi, r10
add r9, 3
inc rsi
cmp rsi, rdx
jb short loc_387CF
loc_387FF:
mov [rcx], rdi
mov [r8], r9
pop rbx
pop rbp
retn
loc_38808:
cmp r11b, 20h ; ' '
setnz dil
cmp r9, r10
setnb r10b
or r10b, dil
jnz loc_3878B
mov rdi, rdx
loc_38823:
mov rdx, rdi
cmp rdi, r9
jbe loc_3878B
lea rdi, [rdx-4]
cmp dword ptr [rdx-4], 20202020h
jz short loc_38823
jmp loc_3878B
| long long my_hash_sort_simple(long long a1, unsigned __int8 *a2, unsigned long long a3, long long *a4, long long *a5)
{
long long result; // rax
unsigned long long v6; // rdi
unsigned long long v7; // r10
unsigned long long v8; // r9
unsigned __int8 *v9; // rdx
char v10; // r11
long long v11; // r11
unsigned long long v12; // rdx
long long v13; // r10
long long v14; // rdi
long long v15; // r9
result = *(_QWORD *)(a1 + 88);
v6 = (unsigned long long)&a2[a3];
if ( a3 >= 0x11 )
{
if ( a3 < 0x15 || (v7 = v6 & 0xFFFFFFFFFFFFFFFCLL, (v6 & 0xFFFFFFFFFFFFFFFCLL) <= (unsigned long long)a2) )
{
v9 = &a2[a3];
}
else
{
v8 = (unsigned long long)(a2 + 3) & 0xFFFFFFFFFFFFFFFCLL;
while ( 1 )
{
v9 = (unsigned __int8 *)v6;
v10 = *(_BYTE *)(v6 - 1);
if ( v6 <= v7 )
break;
--v6;
if ( v10 != 32 )
goto LABEL_9;
}
if ( v10 == 32 && v8 < v7 )
{
do
{
v9 = (unsigned __int8 *)v6;
if ( v6 <= v8 )
break;
v6 -= 4LL;
}
while ( *((_DWORD *)v9 - 1) == 538976288 );
}
}
do
{
LABEL_9:
v6 = (unsigned long long)v9;
if ( v9 <= a2 )
break;
--v9;
}
while ( *(_BYTE *)(v6 - 1) == 32 );
}
v11 = v6 - (_QWORD)a2;
do
{
v12 = v6;
v13 = v11;
if ( v6 <= (unsigned long long)a2 )
break;
--v6;
--v11;
}
while ( *(_BYTE *)(result + *(unsigned __int8 *)(v12 - 1)) == *(_BYTE *)(result + 32) );
v14 = *a4;
v15 = *a5;
if ( v13 > 0 )
{
do
{
v14 ^= (v15 + (v14 & 0x3F)) * *(unsigned __int8 *)(result + *a2) + (v14 << 8);
v15 += 3LL;
++a2;
}
while ( (unsigned long long)a2 < v12 );
}
*a4 = v14;
*a5 = v15;
return result;
}
| my_hash_sort_simple:
PUSH RBP
MOV RBP,RSP
PUSH RBX
MOV RAX,qword ptr [RDI + 0x58]
LEA RDI,[RSI + RDX*0x1]
CMP RDX,0x11
JC 0x0013879d
CMP RDX,0x15
JC 0x00138788
MOV R10,RDI
AND R10,-0x4
CMP R10,RSI
JBE 0x00138788
LEA R9,[RSI + 0x3]
AND R9,-0x4
LAB_0013876c:
MOV RDX,RDI
MOV R11B,byte ptr [RDI + -0x1]
CMP RDI,R10
JBE 0x00138808
LEA RDI,[RDX + -0x1]
CMP R11B,0x20
JZ 0x0013876c
JMP 0x0013878b
LAB_00138788:
MOV RDX,RDI
LAB_0013878b:
MOV RDI,RDX
CMP RDX,RSI
JBE 0x0013879d
LEA RDX,[RDI + -0x1]
CMP byte ptr [RDI + -0x1],0x20
JZ 0x0013878b
LAB_0013879d:
MOV R9B,byte ptr [RAX + 0x20]
MOV R11,RDI
SUB R11,RSI
LAB_001387a7:
MOV RDX,RDI
MOV R10,R11
CMP RDI,RSI
JBE 0x001387c4
LEA RDI,[RDX + -0x1]
MOVZX EBX,byte ptr [RDX + -0x1]
LEA R11,[R10 + -0x1]
CMP byte ptr [RAX + RBX*0x1],R9B
JZ 0x001387a7
LAB_001387c4:
MOV RDI,qword ptr [RCX]
MOV R9,qword ptr [R8]
TEST R10,R10
JLE 0x001387ff
LAB_001387cf:
MOV R10D,EDI
AND R10D,0x3f
ADD R10,R9
MOVZX R11D,byte ptr [RSI]
MOVZX R11D,byte ptr [RAX + R11*0x1]
IMUL R11,R10
MOV R10,RDI
SHL R10,0x8
ADD R10,R11
XOR RDI,R10
ADD R9,0x3
INC RSI
CMP RSI,RDX
JC 0x001387cf
LAB_001387ff:
MOV qword ptr [RCX],RDI
MOV qword ptr [R8],R9
POP RBX
POP RBP
RET
LAB_00138808:
CMP R11B,0x20
SETNZ DIL
CMP R9,R10
SETNC R10B
OR R10B,DIL
JNZ 0x0013878b
MOV RDI,RDX
LAB_00138823:
MOV RDX,RDI
CMP RDI,R9
JBE 0x0013878b
LEA RDI,[RDX + -0x4]
CMP dword ptr [RDX + -0x4],0x20202020
JZ 0x00138823
JMP 0x0013878b
|
void my_hash_sort_simple(long param_1,byte *param_2,ulong param_3,ulong *param_4,long *param_5)
{
byte *pbVar1;
long lVar2;
byte *pbVar3;
ulong uVar4;
byte *pbVar5;
long lVar6;
byte *pbVar7;
long lVar8;
lVar2 = *(long *)(param_1 + 0x58);
pbVar5 = param_2 + param_3;
if (param_3 < 0x11) goto LAB_0013879d;
pbVar3 = pbVar5;
if ((0x14 < param_3) && (pbVar7 = (byte *)((ulong)pbVar5 & 0xfffffffffffffffc), param_2 < pbVar7))
{
do {
pbVar1 = pbVar5 + -1;
pbVar3 = pbVar5;
if (pbVar5 <= pbVar7) {
if ((byte *)((ulong)(param_2 + 3) & 0xfffffffffffffffc) < pbVar7 && *pbVar1 == 0x20)
goto LAB_00138823;
break;
}
pbVar5 = pbVar5 + -1;
} while (*pbVar1 == 0x20);
}
goto LAB_0013878b;
while (pbVar7 = pbVar5 + -4, pbVar5 = pbVar5 + -4, *(int *)pbVar7 == 0x20202020) {
LAB_00138823:
pbVar3 = pbVar5;
if (pbVar5 <= (byte *)((ulong)(param_2 + 3) & 0xfffffffffffffffc)) break;
}
LAB_0013878b:
do {
pbVar5 = pbVar3;
if (pbVar5 <= param_2) break;
pbVar3 = pbVar5 + -1;
} while (pbVar5[-1] == 0x20);
LAB_0013879d:
lVar6 = (long)pbVar5 - (long)param_2;
do {
lVar8 = lVar6;
pbVar3 = pbVar5;
if (pbVar3 <= param_2) break;
pbVar5 = pbVar3 + -1;
lVar6 = lVar8 + -1;
} while (*(char *)(lVar2 + (ulong)pbVar3[-1]) == *(char *)(lVar2 + 0x20));
uVar4 = *param_4;
lVar6 = *param_5;
if (0 < lVar8) {
do {
uVar4 = uVar4 ^ uVar4 * 0x100 +
(ulong)*(byte *)(lVar2 + (ulong)*param_2) *
((ulong)((uint)uVar4 & 0x3f) + lVar6);
lVar6 = lVar6 + 3;
param_2 = param_2 + 1;
} while (param_2 < pbVar3);
}
*param_4 = uVar4;
*param_5 = lVar6;
return;
}
| |
28,132 | my_coll_parser_scan_logical_position | eloqsql/strings/ctype-uca.c | static int
my_coll_parser_scan_logical_position(MY_COLL_RULE_PARSER *p,
my_wc_t *pwc, size_t limit)
{
MY_COLL_RULES *rules= p->rules;
MY_COLL_LEXEM *lexem= my_coll_parser_curr(p);
if (!lex_cmp(lexem, C_STRING_WITH_LEN("[first non-ignorable]")))
lexem->code= rules->uca->first_non_ignorable;
else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[last non-ignorable]")))
lexem->code= rules->uca->last_non_ignorable;
else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[first primary ignorable]")))
lexem->code= rules->uca->first_primary_ignorable;
else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[last primary ignorable]")))
lexem->code= rules->uca->last_primary_ignorable;
else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[first secondary ignorable]")))
lexem->code= rules->uca->first_secondary_ignorable;
else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[last secondary ignorable]")))
lexem->code= rules->uca->last_secondary_ignorable;
else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[first tertiary ignorable]")))
lexem->code= rules->uca->first_tertiary_ignorable;
else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[last tertiary ignorable]")))
lexem->code= rules->uca->last_tertiary_ignorable;
else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[first trailing]")))
lexem->code= rules->uca->first_trailing;
else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[last trailing]")))
lexem->code= rules->uca->last_trailing;
else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[first variable]")))
lexem->code= rules->uca->first_variable;
else if (!lex_cmp(lexem, C_STRING_WITH_LEN("[last variable]")))
lexem->code= rules->uca->last_variable;
else
return 0; /* Don't scan the next token */
if (!my_coll_rule_expand(pwc, limit, lexem->code))
{
/*
Logical position can not be in a contraction,
so the above call should never fail.
Let's assert in debug version and print
a nice error message in production version.
*/
DBUG_ASSERT(0);
return my_coll_parser_too_long_error(p, "Logical position");
}
return my_coll_parser_scan(p);
} | O0 | c | my_coll_parser_scan_logical_position:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0xf0(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rdi
callq 0x9e5b0
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
leaq 0x30b5c(%rip), %rsi # 0xcfde7
movl $0x15, %edx
callq 0x9ed30
cmpl $0x0, %eax
jne 0x9f2b4
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x70(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x9f524
movq -0x30(%rbp), %rdi
leaq 0x30b3e(%rip), %rsi # 0xcfdfd
movl $0x14, %edx
callq 0x9ed30
cmpl $0x0, %eax
jne 0x9f2e8
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x78(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x9f522
movq -0x30(%rbp), %rdi
leaq 0x30b1f(%rip), %rsi # 0xcfe12
movl $0x19, %edx
callq 0x9ed30
cmpl $0x0, %eax
jne 0x9f31f
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x80(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x9f520
movq -0x30(%rbp), %rdi
leaq 0x30b02(%rip), %rsi # 0xcfe2c
movl $0x18, %edx
callq 0x9ed30
cmpl $0x0, %eax
jne 0x9f356
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x88(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x9f51e
movq -0x30(%rbp), %rdi
leaq 0x30ae4(%rip), %rsi # 0xcfe45
movl $0x1b, %edx
callq 0x9ed30
cmpl $0x0, %eax
jne 0x9f38d
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x90(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x9f51c
movq -0x30(%rbp), %rdi
leaq 0x30ac9(%rip), %rsi # 0xcfe61
movl $0x1a, %edx
callq 0x9ed30
cmpl $0x0, %eax
jne 0x9f3c4
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x98(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x9f51a
movq -0x30(%rbp), %rdi
leaq 0x30aad(%rip), %rsi # 0xcfe7c
movl $0x1a, %edx
callq 0x9ed30
cmpl $0x0, %eax
jne 0x9f3fb
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0xa0(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x9f518
movq -0x30(%rbp), %rdi
leaq 0x30a91(%rip), %rsi # 0xcfe97
movl $0x19, %edx
callq 0x9ed30
cmpl $0x0, %eax
jne 0x9f432
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0xa8(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x9f516
movq -0x30(%rbp), %rdi
leaq 0x30a74(%rip), %rsi # 0xcfeb1
movl $0x10, %edx
callq 0x9ed30
cmpl $0x0, %eax
jne 0x9f469
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0xb0(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x9f514
movq -0x30(%rbp), %rdi
leaq 0x30a4e(%rip), %rsi # 0xcfec2
movl $0xf, %edx
callq 0x9ed30
cmpl $0x0, %eax
jne 0x9f49d
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0xb8(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x9f512
movq -0x30(%rbp), %rdi
leaq 0x30a2a(%rip), %rsi # 0xcfed2
movl $0x10, %edx
callq 0x9ed30
cmpl $0x0, %eax
jne 0x9f4d1
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0xc0(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x9f510
movq -0x30(%rbp), %rdi
leaq 0x30a07(%rip), %rsi # 0xcfee3
movl $0xf, %edx
callq 0x9ed30
cmpl $0x0, %eax
jne 0x9f505
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq 0xc8(%rax), %rax
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x24(%rax)
jmp 0x9f50e
movl $0x0, -0x4(%rbp)
jmp 0x9f563
jmp 0x9f510
jmp 0x9f512
jmp 0x9f514
jmp 0x9f516
jmp 0x9f518
jmp 0x9f51a
jmp 0x9f51c
jmp 0x9f51e
jmp 0x9f520
jmp 0x9f522
jmp 0x9f524
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq -0x30(%rbp), %rax
movslq 0x24(%rax), %rdx
callq 0x9f680
cmpl $0x0, %eax
jne 0x9f557
jmp 0x9f540
jmp 0x9f542
movq -0x10(%rbp), %rdi
leaq 0x309a6(%rip), %rsi # 0xcfef3
callq 0x9f6f0
movl %eax, -0x4(%rbp)
jmp 0x9f563
movq -0x10(%rbp), %rdi
callq 0x9ed90
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
| my_coll_parser_scan_logical_position:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_10]
mov rax, [rax+0F0h]
mov [rbp+var_28], rax
mov rdi, [rbp+var_10]
call my_coll_parser_curr
mov [rbp+var_30], rax
mov rdi, [rbp+var_30]
lea rsi, aFirstNonIgnora; "[first non-ignorable]"
mov edx, 15h
call lex_cmp
cmp eax, 0
jnz short loc_9F2B4
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+70h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp loc_9F524
loc_9F2B4:
mov rdi, [rbp+var_30]
lea rsi, aLastNonIgnorab; "[last non-ignorable]"
mov edx, 14h
call lex_cmp
cmp eax, 0
jnz short loc_9F2E8
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+78h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp loc_9F522
loc_9F2E8:
mov rdi, [rbp+var_30]
lea rsi, aFirstPrimaryIg; "[first primary ignorable]"
mov edx, 19h
call lex_cmp
cmp eax, 0
jnz short loc_9F31F
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+80h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp loc_9F520
loc_9F31F:
mov rdi, [rbp+var_30]
lea rsi, aLastPrimaryIgn; "[last primary ignorable]"
mov edx, 18h
call lex_cmp
cmp eax, 0
jnz short loc_9F356
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+88h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp loc_9F51E
loc_9F356:
mov rdi, [rbp+var_30]
lea rsi, aFirstSecondary; "[first secondary ignorable]"
mov edx, 1Bh
call lex_cmp
cmp eax, 0
jnz short loc_9F38D
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+90h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp loc_9F51C
loc_9F38D:
mov rdi, [rbp+var_30]
lea rsi, aLastSecondaryI; "[last secondary ignorable]"
mov edx, 1Ah
call lex_cmp
cmp eax, 0
jnz short loc_9F3C4
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+98h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp loc_9F51A
loc_9F3C4:
mov rdi, [rbp+var_30]
lea rsi, aFirstTertiaryI; "[first tertiary ignorable]"
mov edx, 1Ah
call lex_cmp
cmp eax, 0
jnz short loc_9F3FB
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+0A0h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp loc_9F518
loc_9F3FB:
mov rdi, [rbp+var_30]
lea rsi, aLastTertiaryIg; "[last tertiary ignorable]"
mov edx, 19h
call lex_cmp
cmp eax, 0
jnz short loc_9F432
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+0A8h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp loc_9F516
loc_9F432:
mov rdi, [rbp+var_30]
lea rsi, aFirstTrailing; "[first trailing]"
mov edx, 10h
call lex_cmp
cmp eax, 0
jnz short loc_9F469
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+0B0h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp loc_9F514
loc_9F469:
mov rdi, [rbp+var_30]
lea rsi, aLastTrailing; "[last trailing]"
mov edx, 0Fh
call lex_cmp
cmp eax, 0
jnz short loc_9F49D
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+0B8h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp short loc_9F512
loc_9F49D:
mov rdi, [rbp+var_30]
lea rsi, aFirstVariable; "[first variable]"
mov edx, 10h
call lex_cmp
cmp eax, 0
jnz short loc_9F4D1
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+0C0h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp short loc_9F510
loc_9F4D1:
mov rdi, [rbp+var_30]
lea rsi, aLastVariable; "[last variable]"
mov edx, 0Fh
call lex_cmp
cmp eax, 0
jnz short loc_9F505
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov rax, [rax+0C8h]
mov ecx, eax
mov rax, [rbp+var_30]
mov [rax+24h], ecx
jmp short loc_9F50E
loc_9F505:
mov [rbp+var_4], 0
jmp short loc_9F563
loc_9F50E:
jmp short $+2
loc_9F510:
jmp short $+2
loc_9F512:
jmp short $+2
loc_9F514:
jmp short $+2
loc_9F516:
jmp short $+2
loc_9F518:
jmp short $+2
loc_9F51A:
jmp short $+2
loc_9F51C:
jmp short $+2
loc_9F51E:
jmp short $+2
loc_9F520:
jmp short $+2
loc_9F522:
jmp short $+2
loc_9F524:
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_20]
mov rax, [rbp+var_30]
movsxd rdx, dword ptr [rax+24h]
call my_coll_rule_expand
cmp eax, 0
jnz short loc_9F557
jmp short $+2
loc_9F540:
jmp short $+2
loc_9F542:
mov rdi, [rbp+var_10]
lea rsi, aLogicalPositio; "Logical position"
call my_coll_parser_too_long_error
mov [rbp+var_4], eax
jmp short loc_9F563
loc_9F557:
mov rdi, [rbp+var_10]
call my_coll_parser_scan
mov [rbp+var_4], eax
loc_9F563:
mov eax, [rbp+var_4]
add rsp, 30h
pop rbp
retn
| long long my_coll_parser_scan_logical_position(long long a1, long long a2, long long a3)
{
long long v4; // [rsp+0h] [rbp-30h]
long long v5; // [rsp+8h] [rbp-28h]
v5 = *(_QWORD *)(a1 + 240);
v4 = my_coll_parser_curr(a1);
if ( (unsigned int)lex_cmp(v4, (long long)"[first non-ignorable]", 0x15uLL) )
{
if ( (unsigned int)lex_cmp(v4, (long long)"[last non-ignorable]", 0x14uLL) )
{
if ( (unsigned int)lex_cmp(v4, (long long)"[first primary ignorable]", 0x19uLL) )
{
if ( (unsigned int)lex_cmp(v4, (long long)"[last primary ignorable]", 0x18uLL) )
{
if ( (unsigned int)lex_cmp(v4, (long long)"[first secondary ignorable]", 0x1BuLL) )
{
if ( (unsigned int)lex_cmp(v4, (long long)"[last secondary ignorable]", 0x1AuLL) )
{
if ( (unsigned int)lex_cmp(v4, (long long)"[first tertiary ignorable]", 0x1AuLL) )
{
if ( (unsigned int)lex_cmp(v4, (long long)"[last tertiary ignorable]", 0x19uLL) )
{
if ( (unsigned int)lex_cmp(v4, (long long)"[first trailing]", 0x10uLL) )
{
if ( (unsigned int)lex_cmp(v4, (long long)"[last trailing]", 0xFuLL) )
{
if ( (unsigned int)lex_cmp(v4, (long long)"[first variable]", 0x10uLL) )
{
if ( (unsigned int)lex_cmp(v4, (long long)"[last variable]", 0xFuLL) )
return 0;
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 200LL);
}
else
{
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 192LL);
}
}
else
{
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 184LL);
}
}
else
{
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 176LL);
}
}
else
{
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 168LL);
}
}
else
{
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 160LL);
}
}
else
{
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 152LL);
}
}
else
{
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 144LL);
}
}
else
{
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 136LL);
}
}
else
{
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 128LL);
}
}
else
{
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 120LL);
}
}
else
{
*(_DWORD *)(v4 + 36) = *(_QWORD *)(*(_QWORD *)(v5 + 8) + 112LL);
}
if ( (unsigned int)my_coll_rule_expand(a2, a3, *(int *)(v4 + 36)) )
return (unsigned int)my_coll_parser_scan(a1);
else
return (unsigned int)my_coll_parser_too_long_error(a1, "Logical position");
}
| my_coll_parser_scan_logical_position:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0xf0]
MOV qword ptr [RBP + -0x28],RAX
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0019e5b0
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x1cfde7]
MOV EDX,0x15
CALL 0x0019ed30
CMP EAX,0x0
JNZ 0x0019f2b4
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x70]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0019f524
LAB_0019f2b4:
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x1cfdfd]
MOV EDX,0x14
CALL 0x0019ed30
CMP EAX,0x0
JNZ 0x0019f2e8
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x78]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0019f522
LAB_0019f2e8:
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x1cfe12]
MOV EDX,0x19
CALL 0x0019ed30
CMP EAX,0x0
JNZ 0x0019f31f
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x80]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0019f520
LAB_0019f31f:
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x1cfe2c]
MOV EDX,0x18
CALL 0x0019ed30
CMP EAX,0x0
JNZ 0x0019f356
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x88]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0019f51e
LAB_0019f356:
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x1cfe45]
MOV EDX,0x1b
CALL 0x0019ed30
CMP EAX,0x0
JNZ 0x0019f38d
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x90]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0019f51c
LAB_0019f38d:
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x1cfe61]
MOV EDX,0x1a
CALL 0x0019ed30
CMP EAX,0x0
JNZ 0x0019f3c4
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x98]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0019f51a
LAB_0019f3c4:
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x1cfe7c]
MOV EDX,0x1a
CALL 0x0019ed30
CMP EAX,0x0
JNZ 0x0019f3fb
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0xa0]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0019f518
LAB_0019f3fb:
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x1cfe97]
MOV EDX,0x19
CALL 0x0019ed30
CMP EAX,0x0
JNZ 0x0019f432
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0xa8]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0019f516
LAB_0019f432:
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x1cfeb1]
MOV EDX,0x10
CALL 0x0019ed30
CMP EAX,0x0
JNZ 0x0019f469
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0xb0]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0019f514
LAB_0019f469:
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x1cfec2]
MOV EDX,0xf
CALL 0x0019ed30
CMP EAX,0x0
JNZ 0x0019f49d
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0xb8]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0019f512
LAB_0019f49d:
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x1cfed2]
MOV EDX,0x10
CALL 0x0019ed30
CMP EAX,0x0
JNZ 0x0019f4d1
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0xc0]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0019f510
LAB_0019f4d1:
MOV RDI,qword ptr [RBP + -0x30]
LEA RSI,[0x1cfee3]
MOV EDX,0xf
CALL 0x0019ed30
CMP EAX,0x0
JNZ 0x0019f505
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0xc8]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x30]
MOV dword ptr [RAX + 0x24],ECX
JMP 0x0019f50e
LAB_0019f505:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0019f563
LAB_0019f50e:
JMP 0x0019f510
LAB_0019f510:
JMP 0x0019f512
LAB_0019f512:
JMP 0x0019f514
LAB_0019f514:
JMP 0x0019f516
LAB_0019f516:
JMP 0x0019f518
LAB_0019f518:
JMP 0x0019f51a
LAB_0019f51a:
JMP 0x0019f51c
LAB_0019f51c:
JMP 0x0019f51e
LAB_0019f51e:
JMP 0x0019f520
LAB_0019f520:
JMP 0x0019f522
LAB_0019f522:
JMP 0x0019f524
LAB_0019f524:
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x30]
MOVSXD RDX,dword ptr [RAX + 0x24]
CALL 0x0019f680
CMP EAX,0x0
JNZ 0x0019f557
JMP 0x0019f540
LAB_0019f540:
JMP 0x0019f542
LAB_0019f542:
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x1cfef3]
CALL 0x0019f6f0
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0019f563
LAB_0019f557:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x0019ed90
MOV dword ptr [RBP + -0x4],EAX
LAB_0019f563:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x30
POP RBP
RET
|
int4 my_coll_parser_scan_logical_position(long param_1,int8 param_2,int8 param_3)
{
long lVar1;
int iVar2;
long lVar3;
int4 local_c;
lVar1 = *(long *)(param_1 + 0xf0);
lVar3 = my_coll_parser_curr(param_1);
iVar2 = lex_cmp(lVar3,"[first non-ignorable]",0x15);
if (iVar2 == 0) {
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 0x70);
}
else {
iVar2 = lex_cmp(lVar3,"[last non-ignorable]",0x14);
if (iVar2 == 0) {
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 0x78);
}
else {
iVar2 = lex_cmp(lVar3,"[first primary ignorable]",0x19);
if (iVar2 == 0) {
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 0x80);
}
else {
iVar2 = lex_cmp(lVar3,"[last primary ignorable]",0x18);
if (iVar2 == 0) {
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 0x88);
}
else {
iVar2 = lex_cmp(lVar3,"[first secondary ignorable]",0x1b);
if (iVar2 == 0) {
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 0x90);
}
else {
iVar2 = lex_cmp(lVar3,"[last secondary ignorable]",0x1a);
if (iVar2 == 0) {
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 0x98);
}
else {
iVar2 = lex_cmp(lVar3,"[first tertiary ignorable]",0x1a);
if (iVar2 == 0) {
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 0xa0);
}
else {
iVar2 = lex_cmp(lVar3,"[last tertiary ignorable]",0x19);
if (iVar2 == 0) {
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 0xa8);
}
else {
iVar2 = lex_cmp(lVar3,"[first trailing]",0x10);
if (iVar2 == 0) {
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 0xb0);
}
else {
iVar2 = lex_cmp(lVar3,"[last trailing]",0xf);
if (iVar2 == 0) {
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 0xb8);
}
else {
iVar2 = lex_cmp(lVar3,"[first variable]",0x10);
if (iVar2 == 0) {
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 0xc0);
}
else {
iVar2 = lex_cmp(lVar3,"[last variable]",0xf);
if (iVar2 != 0) {
return 0;
}
*(int *)(lVar3 + 0x24) = (int)*(int8 *)(*(long *)(lVar1 + 8) + 200);
}
}
}
}
}
}
}
}
}
}
}
iVar2 = my_coll_rule_expand(param_2,param_3,(long)*(int *)(lVar3 + 0x24));
if (iVar2 == 0) {
local_c = my_coll_parser_too_long_error(param_1,"Logical position");
}
else {
local_c = my_coll_parser_scan(param_1);
}
return local_c;
}
| |
28,133 | minja::Parser::parseConstant() | monkey531[P]llama/common/minja.hpp | std::shared_ptr<Value> parseConstant() {
auto start = it;
consumeSpaces();
if (it == end) return nullptr;
if (*it == '"' || *it == '\'') {
auto str = parseString();
if (str) return std::make_shared<Value>(*str);
}
static std::regex prim_tok(R"(true\b|True\b|false\b|False\b|None\b)");
auto token = consumeToken(prim_tok);
if (!token.empty()) {
if (token == "true" || token == "True") return std::make_shared<Value>(true);
if (token == "false" || token == "False") return std::make_shared<Value>(false);
if (token == "None") return std::make_shared<Value>(nullptr);
throw std::runtime_error("Unknown constant token: " + token);
}
auto number = parseNumber(it, end);
if (!number.is_null()) return std::make_shared<Value>(number);
it = start;
return nullptr;
} | O2 | cpp | minja::Parser::parseConstant():
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x20(%rsi), %r12
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x6493c
movq 0x20(%r14), %rax
cmpq 0x18(%r14), %rax
je 0x69275
movzbl (%rax), %eax
cmpl $0x27, %eax
je 0x6924a
cmpl $0x22, %eax
jne 0x69288
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x69f62
movq (%r15), %rsi
testq %rsi, %rsi
je 0x69280
movq %rbx, %rdi
callq 0x69fb8
movq %rsp, %rdi
callq 0x69fd6
jmp 0x69371
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
jmp 0x69371
movq %rsp, %rdi
callq 0x69fd6
leaq 0x99ff1(%rip), %rax # 0x103280
movb (%rax), %al
testb %al, %al
je 0x693a7
leaq 0x99fc0(%rip), %rdx # 0x103260
movq %rsp, %r15
pushq $0x1
popq %rcx
movq %r15, %rdi
movq %r14, %rsi
callq 0x63a32
cmpq $0x0, 0x8(%r15)
je 0x692f0
leaq 0x456eb(%rip), %rsi # 0xae9aa
movq %rsp, %rdi
callq 0x2aa4b
testb %al, %al
jne 0x692de
leaq 0x4e71e(%rip), %rsi # 0xb79f0
movq %rsp, %rdi
callq 0x2aa4b
testb %al, %al
je 0x6931e
leaq 0x20(%rsp), %rsi
movb $0x1, (%rsi)
movq %rbx, %rdi
callq 0x69ff0
jmp 0x69369
leaq 0x20(%r14), %r15
leaq 0x18(%r14), %rcx
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x6a02c
cmpb $0x0, 0x20(%rsp)
je 0x69356
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x6a2f5
jmp 0x6935f
leaq 0x4836e(%rip), %rsi # 0xb1693
movq %rsp, %rdi
callq 0x2aa4b
testb %al, %al
jne 0x69344
leaq 0x4e6bd(%rip), %rsi # 0xb79f5
movq %rsp, %rdi
callq 0x2aa4b
testb %al, %al
je 0x69381
leaq 0x20(%rsp), %rsi
movb $0x0, (%rsi)
movq %rbx, %rdi
callq 0x69ff0
jmp 0x69369
movq %r12, (%r15)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
leaq 0x20(%rsp), %rdi
callq 0x40a0c
movq %rsp, %rdi
callq 0x24348
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4ea88(%rip), %rsi # 0xb7e10
movq %rsp, %rdi
callq 0x2aa4b
testb %al, %al
je 0x693fc
leaq 0x20(%rsp), %rsi
andq $0x0, (%rsi)
movq %rbx, %rdi
callq 0x6a00e
jmp 0x69369
leaq 0x99ed2(%rip), %rdi # 0x103280
callq 0x24150
testl %eax, %eax
je 0x69299
leaq 0x99e9e(%rip), %rdi # 0x103260
leaq 0x4ea22(%rip), %rsi # 0xb7deb
pushq $0x10
popq %rdx
callq 0x49b0a
leaq -0x1f6a8(%rip), %rdi # 0x49d30
leaq 0x99e81(%rip), %rsi # 0x103260
leaq 0x995c2(%rip), %rdx # 0x1029a8
callq 0x23820
leaq 0x99e8e(%rip), %rdi # 0x103280
callq 0x23640
jmp 0x69299
pushq $0x10
popq %rdi
callq 0x234b0
movq %rax, %r14
leaq 0x4ea07(%rip), %rsi # 0xb7e15
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x3ce02
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x23f50
xorl %ebp, %ebp
movq 0x98bb4(%rip), %rsi # 0x101fe8
movq 0x98b0d(%rip), %rdx # 0x101f48
movq %r14, %rdi
callq 0x24050
movq %rax, %rbx
leaq 0x99e33(%rip), %rdi # 0x103280
callq 0x23630
jmp 0x694a2
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x24348
testb %bpl, %bpl
jne 0x6946b
jmp 0x6948d
movq %rax, %rbx
movq %r14, %rdi
callq 0x236f0
jmp 0x6948d
jmp 0x6948a
jmp 0x6948a
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x40a0c
jmp 0x6948d
jmp 0x6948a
movq %rax, %rbx
movq %rsp, %rdi
callq 0x24348
jmp 0x694a2
movq %rax, %rbx
movq %rsp, %rdi
callq 0x69fd6
movq %rbx, %rdi
callq 0x240e0
| _ZN5minja6Parser13parseConstantEv:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 40h
mov r14, rsi
mov rbx, rdi
mov r12, [rsi+20h]
push 1
pop rsi
mov rdi, r14
call _ZN5minja6Parser13consumeSpacesENS_13SpaceHandlingE; minja::Parser::consumeSpaces(minja::SpaceHandling)
mov rax, [r14+20h]
cmp rax, [r14+18h]
jz short loc_69275
movzx eax, byte ptr [rax]
cmp eax, 27h ; '''
jz short loc_6924A
cmp eax, 22h ; '"'
jnz short loc_69288
loc_6924A:
mov r15, rsp
mov rdi, r15
mov rsi, r14
call _ZN5minja6Parser11parseStringB5cxx11Ev; minja::Parser::parseString(void)
mov rsi, [r15]
test rsi, rsi
jz short loc_69280
mov rdi, rbx
call _ZSt11make_sharedIN5minja5ValueEJRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEESt10shared_ptrIT_EDpOT0_; std::make_shared<minja::Value,std::string &>(std::string &)
mov rdi, rsp
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
jmp loc_69371
loc_69275:
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
jmp loc_69371
loc_69280:
mov rdi, rsp
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
loc_69288:
lea rax, _ZGVZN5minja6Parser13parseConstantEvE8prim_tokB5cxx11; `guard variable for'minja::Parser::parseConstant(void)::prim_tok
mov al, [rax]
test al, al
jz loc_693A7
loc_69299:
lea rdx, _ZZN5minja6Parser13parseConstantEvE8prim_tokB5cxx11; minja::Parser::parseConstant(void)::prim_tok
mov r15, rsp
push 1
pop rcx
mov rdi, r15
mov rsi, r14
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling)
cmp qword ptr [r15+8], 0
jz short loc_692F0
lea rsi, aTrue; "true"
mov rdi, rsp
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, al
jnz short loc_692DE
lea rsi, aTrue_0; "True"
mov rdi, rsp
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, al
jz short loc_6931E
loc_692DE:
lea rsi, [rsp+68h+var_48]
mov byte ptr [rsi], 1
mov rdi, rbx
call _ZSt11make_sharedIN5minja5ValueEJbEESt10shared_ptrIT_EDpOT0_; std::make_shared<minja::Value,bool>(bool &&)
jmp short loc_69369
loc_692F0:
lea r15, [r14+20h]
lea rcx, [r14+18h]
lea rdi, [rsp+68h+var_48]
mov rsi, r14
mov rdx, r15
call _ZN5minja6Parser11parseNumberERN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERKSB_; minja::Parser::parseNumber(__gnu_cxx::__normal_iterator<char const*,std::string> &,__gnu_cxx::__normal_iterator<char const*,std::string> const&)
cmp [rsp+68h+var_48], 0
jz short loc_69356
lea rsi, [rsp+68h+var_48]
mov rdi, rbx
call _ZSt11make_sharedIN5minja5ValueEJRN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEEESt10shared_ptrIT_EDpOT0_; std::make_shared<minja::Value,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> &)
jmp short loc_6935F
loc_6931E:
lea rsi, aAdvancedOption+0ABh; "false"
mov rdi, rsp
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, al
jnz short loc_69344
lea rsi, aFalse; "False"
mov rdi, rsp
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, al
jz short loc_69381
loc_69344:
lea rsi, [rsp+68h+var_48]
mov byte ptr [rsi], 0
mov rdi, rbx
call _ZSt11make_sharedIN5minja5ValueEJbEESt10shared_ptrIT_EDpOT0_; std::make_shared<minja::Value,bool>(bool &&)
jmp short loc_69369
loc_69356:
mov [r15], r12
xorps xmm0, xmm0
movups xmmword ptr [rbx], xmm0
loc_6935F:
lea rdi, [rsp+68h+var_48]
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_69369:
mov rdi, rsp; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_69371:
mov rax, rbx
add rsp, 40h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_69381:
lea rsi, aNone_0; "None"
mov rdi, rsp
call _ZSteqIcSt11char_traitsIcESaIcEEbRKNSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_; std::operator==<char>(std::string const&,char const*)
test al, al
jz short loc_693FC
lea rsi, [rsp+68h+var_48]
and qword ptr [rsi], 0
mov rdi, rbx
call _ZSt11make_sharedIN5minja5ValueEJDnEESt10shared_ptrIT_EDpOT0_; std::make_shared<minja::Value,decltype(nullptr)>(decltype(nullptr) &&)
jmp short loc_69369
loc_693A7:
lea rdi, _ZGVZN5minja6Parser13parseConstantEvE8prim_tokB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_69299
lea rdi, _ZZN5minja6Parser13parseConstantEvE8prim_tokB5cxx11; minja::Parser::parseConstant(void)::prim_tok
lea rsi, aTrueBTrueBFals; "true\\b|True\\b|false\\b|False\\b|None"...
push 10h
pop rdx
call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type)
lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc
lea rsi, _ZZN5minja6Parser13parseConstantEvE8prim_tokB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN5minja6Parser13parseConstantEvE8prim_tokB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_69299
loc_693FC:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aUnknownConstan; "Unknown constant token: "
lea rdi, [rsp+68h+var_48]
mov rdx, rsp
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&)
mov bpl, 1
lea rsi, [rsp+68h+var_48]
mov rdi, r14
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
mov rbx, rax
lea rdi, _ZGVZN5minja6Parser13parseConstantEvE8prim_tokB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_694A2
mov rbx, rax
lea rdi, [rsp+68h+var_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_6946B
jmp short loc_6948D
mov rbx, rax
loc_6946B:
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_6948D
jmp short loc_6948A
jmp short loc_6948A
mov rbx, rax
lea rdi, [rsp+68h+var_48]
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()
jmp short loc_6948D
jmp short $+2
loc_6948A:
mov rbx, rax
loc_6948D:
mov rdi, rsp; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_694A2
mov rbx, rax
mov rdi, rsp
call _ZNSt10unique_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt14default_deleteIS5_EED2Ev; std::unique_ptr<std::string>::~unique_ptr()
loc_694A2:
mov rdi, rbx
call __Unwind_Resume
| minja::Parser * minja::Parser::parseConstant(minja::Parser *this, long long a2)
{
long long v2; // r12
unsigned __int8 *v3; // rax
int v4; // eax
void *exception; // r14
_QWORD v7[4]; // [rsp+0h] [rbp-68h] BYREF
_QWORD v8[9]; // [rsp+20h] [rbp-48h] BYREF
v2 = *(_QWORD *)(a2 + 32);
minja::Parser::consumeSpaces(a2, 1);
v3 = *(unsigned __int8 **)(a2 + 32);
if ( v3 == *(unsigned __int8 **)(a2 + 24) )
{
*(_OWORD *)this = 0LL;
return this;
}
v4 = *v3;
if ( v4 == 39 || v4 == 34 )
{
minja::Parser::parseString[abi:cxx11](v7, a2);
if ( v7[0] )
{
std::make_shared<minja::Value,std::string &>(this);
std::unique_ptr<std::string>::~unique_ptr(v7);
return this;
}
std::unique_ptr<std::string>::~unique_ptr(v7);
}
if ( !(_BYTE)`guard variable for'minja::Parser::parseConstant(void)::prim_tok[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'minja::Parser::parseConstant(void)::prim_tok[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&minja::Parser::parseConstant(void)::prim_tok[abi:cxx11],
(long long)"true\\b|True\\b|false\\b|False\\b|None\\b",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&minja::Parser::parseConstant(void)::prim_tok[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'minja::Parser::parseConstant(void)::prim_tok[abi:cxx11]);
}
minja::Parser::consumeToken(v7, a2, (long long)&minja::Parser::parseConstant(void)::prim_tok[abi:cxx11], 1u);
if ( v7[1] )
{
if ( std::operator==<char>((long long)v7) || std::operator==<char>((long long)v7) )
{
LOBYTE(v8[0]) = 1;
std::make_shared<minja::Value,bool>(this, v8);
}
else if ( std::operator==<char>((long long)v7) || std::operator==<char>((long long)v7) )
{
LOBYTE(v8[0]) = 0;
std::make_shared<minja::Value,bool>(this, v8);
}
else
{
if ( !std::operator==<char>((long long)v7) )
{
exception = __cxa_allocate_exception(0x10uLL);
std::operator+<char>((long long)v8, (long long)"Unknown constant token: ", (long long)v7);
std::runtime_error::runtime_error(exception, v8);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v8[0] = 0LL;
std::make_shared<minja::Value,decltype(nullptr)>(this, v8);
}
}
else
{
minja::Parser::parseNumber(v8, a2, a2 + 32, a2 + 24);
if ( LOBYTE(v8[0]) )
{
std::make_shared<minja::Value,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> &>(
this,
v8);
}
else
{
*(_QWORD *)(a2 + 32) = v2;
*(_OWORD *)this = 0LL;
}
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v8);
}
std::string::~string(v7);
return this;
}
| parseConstant:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x40
MOV R14,RSI
MOV RBX,RDI
MOV R12,qword ptr [RSI + 0x20]
PUSH 0x1
POP RSI
MOV RDI,R14
CALL 0x0016493c
MOV RAX,qword ptr [R14 + 0x20]
CMP RAX,qword ptr [R14 + 0x18]
JZ 0x00169275
MOVZX EAX,byte ptr [RAX]
CMP EAX,0x27
JZ 0x0016924a
CMP EAX,0x22
JNZ 0x00169288
LAB_0016924a:
MOV R15,RSP
MOV RDI,R15
MOV RSI,R14
CALL 0x00169f62
MOV RSI,qword ptr [R15]
TEST RSI,RSI
JZ 0x00169280
LAB_00169260:
MOV RDI,RBX
CALL 0x00169fb8
LAB_00169268:
MOV RDI,RSP
CALL 0x00169fd6
JMP 0x00169371
LAB_00169275:
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
JMP 0x00169371
LAB_00169280:
MOV RDI,RSP
CALL 0x00169fd6
LAB_00169288:
LEA RAX,[0x203280]
MOV AL,byte ptr [RAX]
TEST AL,AL
JZ 0x001693a7
LAB_00169299:
LEA RDX,[0x203260]
MOV R15,RSP
PUSH 0x1
POP RCX
MOV RDI,R15
MOV RSI,R14
CALL 0x00163a32
CMP qword ptr [R15 + 0x8],0x0
JZ 0x001692f0
LEA RSI,[0x1ae9aa]
MOV RDI,RSP
CALL 0x0012aa4b
TEST AL,AL
JNZ 0x001692de
LEA RSI,[0x1b79f0]
MOV RDI,RSP
CALL 0x0012aa4b
TEST AL,AL
JZ 0x0016931e
LAB_001692de:
LEA RSI,[RSP + 0x20]
MOV byte ptr [RSI],0x1
LAB_001692e6:
MOV RDI,RBX
CALL 0x00169ff0
JMP 0x00169369
LAB_001692f0:
LEA R15,[R14 + 0x20]
LEA RCX,[R14 + 0x18]
LEA RDI,[RSP + 0x20]
MOV RSI,R14
MOV RDX,R15
CALL 0x0016a02c
CMP byte ptr [RSP + 0x20],0x0
JZ 0x00169356
LAB_0016930f:
LEA RSI,[RSP + 0x20]
MOV RDI,RBX
CALL 0x0016a2f5
JMP 0x0016935f
LAB_0016931e:
LEA RSI,[0x1b1693]
MOV RDI,RSP
CALL 0x0012aa4b
TEST AL,AL
JNZ 0x00169344
LEA RSI,[0x1b79f5]
MOV RDI,RSP
CALL 0x0012aa4b
TEST AL,AL
JZ 0x00169381
LAB_00169344:
LEA RSI,[RSP + 0x20]
MOV byte ptr [RSI],0x0
LAB_0016934c:
MOV RDI,RBX
CALL 0x00169ff0
JMP 0x00169369
LAB_00169356:
MOV qword ptr [R15],R12
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBX],XMM0
LAB_0016935f:
LEA RDI,[RSP + 0x20]
CALL 0x00140a0c
LAB_00169369:
MOV RDI,RSP
CALL 0x00124348
LAB_00169371:
MOV RAX,RBX
ADD RSP,0x40
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_00169381:
LEA RSI,[0x1b7e10]
MOV RDI,RSP
CALL 0x0012aa4b
TEST AL,AL
JZ 0x001693fc
LEA RSI,[RSP + 0x20]
AND qword ptr [RSI],0x0
LAB_0016939d:
MOV RDI,RBX
CALL 0x0016a00e
JMP 0x00169369
LAB_001693a7:
LEA RDI,[0x203280]
CALL 0x00124150
TEST EAX,EAX
JZ 0x00169299
LAB_001693bb:
LEA RDI,[0x203260]
LEA RSI,[0x1b7deb]
PUSH 0x10
POP RDX
CALL 0x00149b0a
LAB_001693d1:
LEA RDI,[0x149d30]
LEA RSI,[0x203260]
LEA RDX,[0x2029a8]
CALL 0x00123820
LEA RDI,[0x203280]
CALL 0x00123640
JMP 0x00169299
LAB_001693fc:
PUSH 0x10
POP RDI
CALL 0x001234b0
MOV R14,RAX
LAB_00169407:
LEA RSI,[0x1b7e15]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x0013ce02
MOV BPL,0x1
LAB_0016941e:
LEA RSI,[RSP + 0x20]
MOV RDI,R14
CALL 0x00123f50
XOR EBP,EBP
MOV RSI,qword ptr [0x00201fe8]
MOV RDX,qword ptr [0x00201f48]
MOV RDI,R14
CALL 0x00124050
|
/* minja::Parser::parseConstant() */
void minja::Parser::parseConstant(void)
{
char cVar1;
int8 uVar2;
bool bVar3;
int iVar4;
runtime_error *this;
__normal_iterator *in_RSI;
string *in_RDI;
long local_68;
long local_60;
ulong local_48 [4];
uVar2 = *(int8 *)(in_RSI + 0x20);
consumeSpaces();
if (*(char **)(in_RSI + 0x20) == *(char **)(in_RSI + 0x18)) {
*(int8 *)in_RDI = 0;
*(int8 *)(in_RDI + 8) = 0;
return;
}
cVar1 = **(char **)(in_RSI + 0x20);
if ((cVar1 == '\'') || (cVar1 == '\"')) {
parseString_abi_cxx11_();
if (local_68 != 0) {
/* try { // try from 00169260 to 00169267 has its CatchHandler @ 00169497 */
std::make_shared<minja::Value,std::__cxx11::string&>(in_RDI);
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)
&local_68);
return;
}
std::unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>>::~unique_ptr
((unique_ptr<std::__cxx11::string,std::default_delete<std::__cxx11::string>> *)
&local_68);
}
if ((parseConstant()::prim_tok_abi_cxx11_ == '\0') &&
(iVar4 = __cxa_guard_acquire(&parseConstant()::prim_tok_abi_cxx11_), iVar4 != 0)) {
/* try { // try from 001693bb to 001693d0 has its CatchHandler @ 00169443 */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)
parseConstant()::prim_tok_abi_cxx11_,"true\\b|True\\b|false\\b|False\\b|None\\b",0x10
);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
parseConstant()::prim_tok_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&parseConstant()::prim_tok_abi_cxx11_);
}
consumeToken(&local_68);
if (local_60 == 0) {
/* try { // try from 001692f0 to 00169307 has its CatchHandler @ 00169488 */
parseNumber((__normal_iterator *)local_48,in_RSI);
if (local_48[0]._0_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>
)0x0) {
*(int8 *)(in_RSI + 0x20) = uVar2;
*(int8 *)in_RDI = 0;
*(int8 *)(in_RDI + 8) = 0;
}
else {
/* try { // try from 0016930f to 0016931b has its CatchHandler @ 00169479 */
std::
make_shared<minja::Value,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&>
(in_RDI);
}
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_48);
}
else {
bVar3 = std::operator==((string *)&local_68,"true");
if ((bVar3) || (bVar3 = std::operator==((string *)&local_68,"True"), bVar3)) {
local_48[0] = CONCAT71(local_48[0]._1_7_,1);
/* try { // try from 001692e6 to 001692ed has its CatchHandler @ 0016948a */
std::make_shared<minja::Value,bool>((bool *)in_RDI);
}
else {
bVar3 = std::operator==((string *)&local_68,"false");
if ((bVar3) || (bVar3 = std::operator==((string *)&local_68,"False"), bVar3)) {
local_48[0] = local_48[0] & 0xffffffffffffff00;
/* try { // try from 0016934c to 00169353 has its CatchHandler @ 00169477 */
std::make_shared<minja::Value,bool>((bool *)in_RDI);
}
else {
bVar3 = std::operator==((string *)&local_68,"None");
if (!bVar3) {
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 00169407 to 0016941a has its CatchHandler @ 00169468 */
std::operator+((char *)local_48,(string *)"Unknown constant token: ");
/* try { // try from 0016941e to 00169442 has its CatchHandler @ 00169454 */
std::runtime_error::runtime_error(this,(string *)local_48);
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_00201fe8,PTR__runtime_error_00201f48);
}
local_48[0] = 0;
/* try { // try from 0016939d to 001693a4 has its CatchHandler @ 00169475 */
std::make_shared<minja::Value,decltype(nullptr)>((_func_decltype_nullptr **)in_RDI);
}
}
}
std::__cxx11::string::~string((string *)&local_68);
return;
}
| |
28,134 | minja::CallExpr::CallExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, minja::ArgumentsExpression&&) | monkey531[P]llama/common/minja.hpp | CallExpr(const Location & location, std::shared_ptr<Expression> && obj, ArgumentsExpression && a)
: Expression(location), object(std::move(obj)), args(std::move(a)) {} | O2 | cpp | minja::CallExpr::CallExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, minja::ArgumentsExpression&&):
pushq %r15
pushq %r14
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r14
movq %rdi, %r15
callq 0x62c3a
leaq 0x8dc6a(%rip), %rax # 0xfc8d0
addq $0x10, %rax
movq %rax, (%r15)
andq $0x0, 0x28(%r15)
movups (%r14), %xmm0
andq $0x0, 0x8(%r14)
movups %xmm0, 0x20(%r15)
andq $0x0, (%r14)
addq $0x30, %r15
movq %r15, %rdi
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x6bb10
| _ZN5minja8CallExprC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEEONS_19ArgumentsExpressionE:
push r15
push r14
push rbx
mov rbx, rcx
mov r14, rdx
mov r15, rdi
call _ZN5minja10ExpressionC2ERKNS_8LocationE; minja::Expression::Expression(minja::Location const&)
lea rax, _ZTVN5minja8CallExprE; `vtable for'minja::CallExpr
add rax, 10h
mov [r15], rax
and qword ptr [r15+28h], 0
movups xmm0, xmmword ptr [r14]
and qword ptr [r14+8], 0
movups xmmword ptr [r15+20h], xmm0
and qword ptr [r14], 0
add r15, 30h ; '0'
mov rdi, r15
mov rsi, rbx
pop rbx
pop r14
pop r15
jmp _ZN5minja19ArgumentsExpressionC2EOS0_; minja::ArgumentsExpression::ArgumentsExpression(minja::ArgumentsExpression&&)
| long long minja::CallExpr::CallExpr(long long a1, _QWORD *a2, __int128 *a3, long long a4)
{
__int128 v6; // xmm0
minja::Expression::Expression((_QWORD *)a1, a2);
*(_QWORD *)a1 = &`vtable for'minja::CallExpr + 2;
*(_QWORD *)(a1 + 40) = 0LL;
v6 = *a3;
*((_QWORD *)a3 + 1) = 0LL;
*(_OWORD *)(a1 + 32) = v6;
*(_QWORD *)a3 = 0LL;
return minja::ArgumentsExpression::ArgumentsExpression(a1 + 48, a4);
}
| CallExpr:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RCX
MOV R14,RDX
MOV R15,RDI
CALL 0x00162c3a
LEA RAX,[0x1fc8d0]
ADD RAX,0x10
MOV qword ptr [R15],RAX
AND qword ptr [R15 + 0x28],0x0
MOVUPS XMM0,xmmword ptr [R14]
AND qword ptr [R14 + 0x8],0x0
MOVUPS xmmword ptr [R15 + 0x20],XMM0
AND qword ptr [R14],0x0
ADD R15,0x30
MOV RDI,R15
MOV RSI,RBX
POP RBX
POP R14
POP R15
JMP 0x0016bb10
|
/* minja::CallExpr::CallExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&,
minja::ArgumentsExpression&&) */
void __thiscall
minja::CallExpr::CallExpr
(CallExpr *this,Location *param_1,shared_ptr *param_2,ArgumentsExpression *param_3)
{
int8 uVar1;
Expression::Expression((Expression *)this,param_1);
*(int ***)this = &PTR_do_evaluate_001fc8e0;
*(int8 *)(this + 0x28) = 0;
uVar1 = *(int8 *)(param_2 + 8);
*(int8 *)(param_2 + 8) = 0;
*(int8 *)(this + 0x20) = *(int8 *)param_2;
*(int8 *)(this + 0x28) = uVar1;
*(int8 *)param_2 = 0;
ArgumentsExpression::ArgumentsExpression((ArgumentsExpression *)(this + 0x30),param_3);
return;
}
| |
28,135 | insert_events_transactions_history_long(PFS_events_transactions*) | eloqsql/storage/perfschema/pfs_events_transactions.cc | void insert_events_transactions_history_long(PFS_events_transactions *transaction)
{
if (unlikely(events_transactions_history_long_size == 0))
return ;
assert(events_transactions_history_long_array != NULL);
uint index= PFS_atomic::add_u32(&events_transactions_history_long_index.m_u32, 1);
index= index % events_transactions_history_long_size;
if (index == 0)
events_transactions_history_long_full= true;
/* See related comment in insert_events_transactions_history. */
copy_events_transactions(&events_transactions_history_long_array[index], transaction);
} | O3 | cpp | insert_events_transactions_history_long(PFS_events_transactions*):
pushq %rbp
movq %rsp, %rbp
cmpq $0x0, 0x3a77f2(%rip) # 0x3d2dc0
je 0x2b60e
movq %rdi, %rsi
movl $0x1, %eax
lock
xaddl %eax, 0x3a7920(%rip) # 0x3d2f00
xorl %edx, %edx
divq 0x3a77d7(%rip) # 0x3d2dc0
testq %rdx, %rdx
jne 0x2b5f5
movb $0x1, 0x3a78cb(%rip) # 0x3d2ec0
imulq $0x140, %rdx, %rdi # imm = 0x140
addq 0x3a793d(%rip), %rdi # 0x3d2f40
movl $0x140, %edx # imm = 0x140
popq %rbp
jmp 0x26290
popq %rbp
retq
| _Z39insert_events_transactions_history_longP23PFS_events_transactions:
push rbp
mov rbp, rsp
cmp cs:events_transactions_history_long_size, 0
jz short loc_2B60E
mov rsi, rdi
mov eax, 1
lock xadd cs:events_transactions_history_long_index, eax
xor edx, edx
div cs:events_transactions_history_long_size
test rdx, rdx
jnz short loc_2B5F5
mov cs:events_transactions_history_long_full, 1
loc_2B5F5:
imul rdi, rdx, 140h
add rdi, cs:events_transactions_history_long_array
mov edx, 140h
pop rbp
jmp _memcpy
loc_2B60E:
pop rbp
retn
| long long insert_events_transactions_history_long(long long a1)
{
unsigned long long v1; // rdx
long long result; // rax
if ( events_transactions_history_long_size )
{
v1 = (unsigned int)_InterlockedExchangeAdd(&events_transactions_history_long_index, 1u)
% (unsigned long long)events_transactions_history_long_size;
if ( !v1 )
events_transactions_history_long_full = 1;
return memcpy(events_transactions_history_long_array + 320 * v1, a1, 320LL);
}
return result;
}
| insert_events_transactions_history_long:
PUSH RBP
MOV RBP,RSP
CMP qword ptr [0x004d2dc0],0x0
JZ 0x0012b60e
MOV RSI,RDI
MOV EAX,0x1
XADD.LOCK dword ptr [0x004d2f00],EAX
XOR EDX,EDX
DIV qword ptr [0x004d2dc0]
TEST RDX,RDX
JNZ 0x0012b5f5
MOV byte ptr [0x004d2ec0],0x1
LAB_0012b5f5:
IMUL RDI,RDX,0x140
ADD RDI,qword ptr [0x004d2f40]
MOV EDX,0x140
POP RBP
JMP 0x00126290
LAB_0012b60e:
POP RBP
RET
|
/* insert_events_transactions_history_long(PFS_events_transactions*) */
void insert_events_transactions_history_long(PFS_events_transactions *param_1)
{
ulong uVar1;
if (events_transactions_history_long_size != 0) {
LOCK();
UNLOCK();
uVar1 = (ulong)events_transactions_history_long_index;
if (uVar1 % events_transactions_history_long_size == 0) {
events_transactions_history_long_full = 1;
}
events_transactions_history_long_index = events_transactions_history_long_index + 1;
memcpy((void *)((uVar1 % events_transactions_history_long_size) * 0x140 +
events_transactions_history_long_array),param_1,0x140);
return;
}
return;
}
| |
28,136 | ggml_get_max_tensor_size | llama.cpp/ggml/src/ggml.c | struct ggml_tensor * ggml_get_first_tensor(const struct ggml_context * ctx) {
struct ggml_object * obj = ctx->objects_begin;
char * const mem_buffer = ctx->mem_buffer;
while (obj != NULL) {
if (obj->type == GGML_OBJECT_TYPE_TENSOR) {
return (struct ggml_tensor *)(mem_buffer + obj->offs);
}
obj = obj->next;
}
return NULL;
} | O3 | c | ggml_get_max_tensor_size:
movq 0x18(%rdi), %rcx
testq %rcx, %rcx
je 0x19b3d
pushq %r15
pushq %r14
pushq %rbx
movq 0x8(%rdi), %r14
xorl %eax, %eax
cmpl $0x0, 0x18(%rcx)
je 0x19b40
movq 0x10(%rcx), %rcx
testq %rcx, %rcx
jne 0x19b2c
jmp 0x19b93
xorl %eax, %eax
retq
testq %r14, %r14
je 0x19b91
movq (%rcx), %r15
leaq (%r14,%r15), %rdi
callq 0x161b0
movq %rax, %rbx
movq -0x10(%r14,%r15), %rcx
testq %rcx, %rcx
je 0x19b8c
cmpl $0x0, 0x18(%rcx)
jne 0x19b86
movq (%rcx), %r15
leaq (%r14,%r15), %rdi
callq 0x161b0
cmpq %rax, %rbx
cmovaq %rbx, %rax
movq -0x10(%r14,%r15), %rcx
movq %rax, %rbx
testq %rcx, %rcx
jne 0x19b5e
jmp 0x19b93
movq 0x10(%rcx), %rcx
jmp 0x19b59
movq %rbx, %rax
jmp 0x19b93
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
| ggml_get_max_tensor_size:
mov rcx, [rdi+18h]
test rcx, rcx
jz short loc_19B3D
push r15
push r14
push rbx
mov r14, [rdi+8]
xor eax, eax
loc_19B2C:
cmp dword ptr [rcx+18h], 0
jz short loc_19B40
mov rcx, [rcx+10h]
test rcx, rcx
jnz short loc_19B2C
jmp short loc_19B93
loc_19B3D:
xor eax, eax
retn
loc_19B40:
test r14, r14
jz short loc_19B91
mov r15, [rcx]
lea rdi, [r14+r15]
call _ggml_nbytes
mov rbx, rax
mov rcx, [r14+r15-10h]
loc_19B59:
test rcx, rcx
jz short loc_19B8C
loc_19B5E:
cmp dword ptr [rcx+18h], 0
jnz short loc_19B86
mov r15, [rcx]
lea rdi, [r14+r15]
call _ggml_nbytes
cmp rbx, rax
cmova rax, rbx
mov rcx, [r14+r15-10h]
mov rbx, rax
test rcx, rcx
jnz short loc_19B5E
jmp short loc_19B93
loc_19B86:
mov rcx, [rcx+10h]
jmp short loc_19B59
loc_19B8C:
mov rax, rbx
jmp short loc_19B93
loc_19B91:
xor eax, eax
loc_19B93:
pop rbx
pop r14
pop r15
retn
| unsigned long long ggml_get_max_tensor_size(long long a1)
{
long long *v1; // rcx
long long v2; // r14
unsigned long long result; // rax
long long v4; // r15
unsigned long long v5; // rbx
long long *i; // rcx
long long v7; // r15
v1 = *(long long **)(a1 + 24);
if ( !v1 )
return 0LL;
v2 = *(_QWORD *)(a1 + 8);
result = 0LL;
while ( *((_DWORD *)v1 + 6) )
{
v1 = (long long *)v1[2];
if ( !v1 )
return result;
}
if ( !v2 )
return 0LL;
v4 = *v1;
v5 = ggml_nbytes((unsigned int *)(v2 + *v1));
for ( i = *(long long **)(v2 + v4 - 16); i; i = (long long *)i[2] )
{
while ( !*((_DWORD *)i + 6) )
{
v7 = *i;
result = ggml_nbytes((unsigned int *)(v2 + *i));
if ( v5 > result )
result = v5;
i = *(long long **)(v2 + v7 - 16);
v5 = result;
if ( !i )
return result;
}
}
return v5;
}
| ggml_get_max_tensor_size:
MOV RCX,qword ptr [RDI + 0x18]
TEST RCX,RCX
JZ 0x00119b3d
PUSH R15
PUSH R14
PUSH RBX
MOV R14,qword ptr [RDI + 0x8]
XOR EAX,EAX
LAB_00119b2c:
CMP dword ptr [RCX + 0x18],0x0
JZ 0x00119b40
MOV RCX,qword ptr [RCX + 0x10]
TEST RCX,RCX
JNZ 0x00119b2c
JMP 0x00119b93
LAB_00119b3d:
XOR EAX,EAX
RET
LAB_00119b40:
TEST R14,R14
JZ 0x00119b91
MOV R15,qword ptr [RCX]
LEA RDI,[R14 + R15*0x1]
CALL 0x001161b0
MOV RBX,RAX
MOV RCX,qword ptr [R14 + R15*0x1 + -0x10]
LAB_00119b59:
TEST RCX,RCX
JZ 0x00119b8c
LAB_00119b5e:
CMP dword ptr [RCX + 0x18],0x0
JNZ 0x00119b86
MOV R15,qword ptr [RCX]
LEA RDI,[R14 + R15*0x1]
CALL 0x001161b0
CMP RBX,RAX
CMOVA RAX,RBX
MOV RCX,qword ptr [R14 + R15*0x1 + -0x10]
MOV RBX,RAX
TEST RCX,RCX
JNZ 0x00119b5e
JMP 0x00119b93
LAB_00119b86:
MOV RCX,qword ptr [RCX + 0x10]
JMP 0x00119b59
LAB_00119b8c:
MOV RAX,RBX
JMP 0x00119b93
LAB_00119b91:
XOR EAX,EAX
LAB_00119b93:
POP RBX
POP R14
POP R15
RET
|
ulong ggml_get_max_tensor_size(long param_1)
{
long lVar1;
long lVar2;
ulong uVar3;
ulong uVar4;
long *plVar5;
plVar5 = *(long **)(param_1 + 0x18);
if (plVar5 == (long *)0x0) {
return 0;
}
lVar1 = *(long *)(param_1 + 8);
while ((int)plVar5[3] != 0) {
plVar5 = (long *)plVar5[2];
if (plVar5 == (long *)0x0) {
return 0;
}
}
if (lVar1 == 0) {
return 0;
}
lVar2 = *plVar5;
uVar3 = ggml_nbytes(lVar1 + lVar2);
plVar5 = *(long **)(lVar1 + -0x10 + lVar2);
do {
if (plVar5 == (long *)0x0) {
return uVar3;
}
while ((int)plVar5[3] == 0) {
lVar2 = *plVar5;
uVar4 = ggml_nbytes(lVar1 + lVar2);
if (uVar4 < uVar3) {
uVar4 = uVar3;
}
plVar5 = *(long **)(lVar1 + -0x10 + lVar2);
uVar3 = uVar4;
if (plVar5 == (long *)0x0) {
return uVar4;
}
}
plVar5 = (long *)plVar5[2];
} while( true );
}
| |
28,137 | stbi__vertical_flip(void*, int, int, int) | monkey531[P]llama/examples/llava/../../common/stb_image.h | static void stbi__vertical_flip(void *image, int w, int h, int bytes_per_pixel)
{
int row;
size_t bytes_per_row = (size_t)w * bytes_per_pixel;
stbi_uc temp[2048];
stbi_uc *bytes = (stbi_uc *)image;
for (row = 0; row < (h>>1); row++) {
stbi_uc *row0 = bytes + row*bytes_per_row;
stbi_uc *row1 = bytes + (h - row - 1)*bytes_per_row;
// swap row0 with row1
size_t bytes_left = bytes_per_row;
while (bytes_left) {
size_t bytes_copy = (bytes_left < sizeof(temp)) ? bytes_left : sizeof(temp);
memcpy(temp, row0, bytes_copy);
memcpy(row0, row1, bytes_copy);
memcpy(row1, temp, bytes_copy);
row0 += bytes_copy;
row1 += bytes_copy;
bytes_left -= bytes_copy;
}
}
} | O2 | c | stbi__vertical_flip(void*, int, int, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x838, %rsp # imm = 0x838
movq %rdi, 0x18(%rsp)
movslq %esi, %rax
movslq %ecx, %rcx
imulq %rax, %rcx
movq %rcx, 0x10(%rsp)
movl %edx, 0xc(%rsp)
movl %edx, %eax
sarl %eax
xorl %edx, %edx
testl %eax, %eax
cmovlel %edx, %eax
movq %rax, 0x20(%rsp)
movl $0x800, %ebx # imm = 0x800
leaq 0x30(%rsp), %r15
cmpq 0x20(%rsp), %rdx
je 0x3c15a
movq 0x10(%rsp), %r14
movq %r14, %r12
imulq %rdx, %r12
movq 0x18(%rsp), %rcx
addq %rcx, %r12
movq %rdx, 0x28(%rsp)
movl %edx, %eax
notl %eax
addl 0xc(%rsp), %eax
movslq %eax, %r13
imulq %r14, %r13
addq %rcx, %r13
testq %r14, %r14
je 0x3c14d
cmpq %rbx, %r14
movl $0x800, %ebp # imm = 0x800
cmovbq %r14, %rbp
movq %r15, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x26a10
movq %r12, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x26a10
movq %r13, %rdi
movq %r15, %rsi
movq %rbp, %rdx
callq 0x26a10
addq %rbp, %r12
addq %rbp, %r13
subq %rbp, %r14
jmp 0x3c107
movq 0x28(%rsp), %rdx
incq %rdx
jmp 0x3c0d5
addq $0x838, %rsp # imm = 0x838
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ZL19stbi__vertical_flipPviii:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 838h
mov [rsp+868h+var_850], rdi
movsxd rax, esi
movsxd rcx, ecx
imul rcx, rax
mov [rsp+868h+var_858], rcx
mov [rsp+868h+var_85C], edx
mov eax, edx
sar eax, 1
xor edx, edx
test eax, eax
cmovle eax, edx
mov [rsp+868h+var_848], rax
mov ebx, 800h
lea r15, [rsp+868h+var_838]
loc_3C0D5:
cmp rdx, [rsp+868h+var_848]
jz short loc_3C15A
mov r14, [rsp+868h+var_858]
mov r12, r14
imul r12, rdx
mov rcx, [rsp+868h+var_850]
add r12, rcx
mov [rsp+868h+var_840], rdx
mov eax, edx
not eax
add eax, [rsp+868h+var_85C]
movsxd r13, eax
imul r13, r14
add r13, rcx
loc_3C107:
test r14, r14
jz short loc_3C14D
cmp r14, rbx
mov ebp, 800h
cmovb rbp, r14
mov rdi, r15
mov rsi, r12
mov rdx, rbp
call _memcpy
mov rdi, r12
mov rsi, r13
mov rdx, rbp
call _memcpy
mov rdi, r13
mov rsi, r15
mov rdx, rbp
call _memcpy
add r12, rbp
add r13, rbp
sub r14, rbp
jmp short loc_3C107
loc_3C14D:
mov rdx, [rsp+868h+var_840]
inc rdx
jmp loc_3C0D5
loc_3C15A:
add rsp, 838h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long stbi__vertical_flip(char *a1, int a2, int a3, int a4)
{
long long result; // rax
long long v5; // rdx
unsigned long long v6; // r14
char *v7; // r12
char *v8; // r13
long long v9; // rbp
long long v11; // [rsp+10h] [rbp-858h]
long long v12; // [rsp+20h] [rbp-848h]
long long v13; // [rsp+28h] [rbp-840h]
_BYTE v14[2104]; // [rsp+30h] [rbp-838h] BYREF
v11 = a2 * (long long)a4;
result = (unsigned int)(a3 >> 1);
v5 = 0LL;
if ( (int)result <= 0 )
result = 0LL;
v12 = result;
while ( v5 != v12 )
{
v6 = v11;
v7 = &a1[v5 * v11];
v13 = v5;
result = (unsigned int)(a3 + ~(_DWORD)v5);
v8 = &a1[v11 * (int)result];
while ( v6 )
{
v9 = 2048LL;
if ( v6 < 0x800 )
v9 = v6;
memcpy(v14, v7, v9);
memcpy(v7, v8, v9);
result = memcpy(v8, v14, v9);
v7 += v9;
v8 += v9;
v6 -= v9;
}
v5 = v13 + 1;
}
return result;
}
| stbi__vertical_flip:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x838
MOV qword ptr [RSP + 0x18],RDI
MOVSXD RAX,ESI
MOVSXD RCX,ECX
IMUL RCX,RAX
MOV qword ptr [RSP + 0x10],RCX
MOV dword ptr [RSP + 0xc],EDX
MOV EAX,EDX
SAR EAX,0x1
XOR EDX,EDX
TEST EAX,EAX
CMOVLE EAX,EDX
MOV qword ptr [RSP + 0x20],RAX
MOV EBX,0x800
LEA R15,[RSP + 0x30]
LAB_0013c0d5:
CMP RDX,qword ptr [RSP + 0x20]
JZ 0x0013c15a
MOV R14,qword ptr [RSP + 0x10]
MOV R12,R14
IMUL R12,RDX
MOV RCX,qword ptr [RSP + 0x18]
ADD R12,RCX
MOV qword ptr [RSP + 0x28],RDX
MOV EAX,EDX
NOT EAX
ADD EAX,dword ptr [RSP + 0xc]
MOVSXD R13,EAX
IMUL R13,R14
ADD R13,RCX
LAB_0013c107:
TEST R14,R14
JZ 0x0013c14d
CMP R14,RBX
MOV EBP,0x800
CMOVC RBP,R14
MOV RDI,R15
MOV RSI,R12
MOV RDX,RBP
CALL 0x00126a10
MOV RDI,R12
MOV RSI,R13
MOV RDX,RBP
CALL 0x00126a10
MOV RDI,R13
MOV RSI,R15
MOV RDX,RBP
CALL 0x00126a10
ADD R12,RBP
ADD R13,RBP
SUB R14,RBP
JMP 0x0013c107
LAB_0013c14d:
MOV RDX,qword ptr [RSP + 0x28]
INC RDX
JMP 0x0013c0d5
LAB_0013c15a:
ADD RSP,0x838
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* stbi__vertical_flip(void*, int, int, int) */
void stbi__vertical_flip(void *param_1,int param_2,int param_3,int param_4)
{
ulong uVar1;
ulong uVar2;
ulong uVar3;
size_t __n;
void *__src;
void *__src_00;
ulong uVar4;
int1 local_838 [2056];
uVar2 = (long)param_4 * (long)param_2;
uVar3 = 0;
uVar1 = (ulong)(uint)(param_3 >> 1);
if (param_3 >> 1 < 1) {
uVar1 = uVar3;
}
for (; uVar3 != uVar1; uVar3 = uVar3 + 1) {
__src = (void *)(uVar2 * uVar3 + (long)param_1);
__src_00 = (void *)((long)(int)(~(uint)uVar3 + param_3) * uVar2 + (long)param_1);
for (uVar4 = uVar2; uVar4 != 0; uVar4 = uVar4 - __n) {
__n = 0x800;
if (uVar4 < 0x800) {
__n = uVar4;
}
memcpy(local_838,__src,__n);
memcpy(__src,__src_00,__n);
memcpy(__src_00,local_838,__n);
__src = (void *)((long)__src + __n);
__src_00 = (void *)((long)__src_00 + __n);
}
}
return;
}
| |
28,138 | rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::GenericValue(long) | mnn-tts/MNN/3rd_party/rapidjson/document.h | explicit GenericValue(int64_t i64) RAPIDJSON_NOEXCEPT : data_() {
data_.n.i64 = i64;
data_.f.flags = kNumberInt64Flag;
if (i64 >= 0) {
data_.f.flags |= kNumberUint64Flag;
if (!(static_cast<uint64_t>(i64) & RAPIDJSON_UINT64_C2(0xFFFFFFFF, 0x00000000)))
data_.f.flags |= kUintFlag;
if (!(static_cast<uint64_t>(i64) & RAPIDJSON_UINT64_C2(0xFFFFFFFF, 0x80000000)))
data_.f.flags |= kIntFlag;
}
else if (i64 >= static_cast<int64_t>(RAPIDJSON_UINT64_C2(0xFFFFFFFF, 0x80000000)))
data_.f.flags |= kIntFlag;
} | O0 | c | rapidjson::GenericValue<rapidjson::UTF8<char>, rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::GenericValue(long):
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movq %rdi, (%rsp)
xorl %esi, %esi
movl $0x10, %edx
callq 0x3060
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
movq %rcx, (%rax)
movw $0x96, 0xe(%rax)
cmpq $0x0, 0x8(%rsp)
jl 0xb955
movq (%rsp), %rax
movzwl 0xe(%rax), %ecx
orl $0x116, %ecx # imm = 0x116
movw %cx, 0xe(%rax)
movabsq $-0x100000000, %rax # imm = 0xFFFFFFFF00000000
andq 0x8(%rsp), %rax
cmpq $0x0, %rax
jne 0xb933
movq (%rsp), %rax
movzwl 0xe(%rax), %ecx
orl $0x40, %ecx
movw %cx, 0xe(%rax)
movq 0x8(%rsp), %rax
andq $-0x80000000, %rax # imm = 0x80000000
cmpq $0x0, %rax
jne 0xb953
movq (%rsp), %rax
movzwl 0xe(%rax), %ecx
orl $0x20, %ecx
movw %cx, 0xe(%rax)
jmp 0xb971
cmpq $-0x80000000, 0x8(%rsp) # imm = 0x80000000
jl 0xb96f
movq (%rsp), %rax
movzwl 0xe(%rax), %ecx
orl $0x20, %ecx
movw %cx, 0xe(%rax)
jmp 0xb971
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
| _ZN9rapidjson12GenericValueINS_4UTF8IcEENS_19MemoryPoolAllocatorINS_12CrtAllocatorEEEEC2El:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov [rsp+18h+var_10], rsi
mov rdi, [rsp+18h+var_8]
mov [rsp+18h+var_18], rdi
xor esi, esi
mov edx, 10h
call _memset
mov rax, [rsp+18h+var_18]
mov rcx, [rsp+18h+var_10]
mov [rax], rcx
mov word ptr [rax+0Eh], 96h
cmp [rsp+18h+var_10], 0
jl short loc_B955
mov rax, [rsp+18h+var_18]
movzx ecx, word ptr [rax+0Eh]
or ecx, 116h
mov [rax+0Eh], cx
mov rax, 0FFFFFFFF00000000h
and rax, [rsp+18h+var_10]
cmp rax, 0
jnz short loc_B933
mov rax, [rsp+18h+var_18]
movzx ecx, word ptr [rax+0Eh]
or ecx, 40h
mov [rax+0Eh], cx
loc_B933:
mov rax, [rsp+18h+var_10]
and rax, 0FFFFFFFF80000000h
cmp rax, 0
jnz short loc_B953
mov rax, [rsp+18h+var_18]
movzx ecx, word ptr [rax+0Eh]
or ecx, 20h
mov [rax+0Eh], cx
loc_B953:
jmp short loc_B971
loc_B955:
cmp [rsp+18h+var_10], 0FFFFFFFF80000000h
jl short loc_B96F
mov rax, [rsp+18h+var_18]
movzx ecx, word ptr [rax+0Eh]
or ecx, 20h
mov [rax+0Eh], cx
loc_B96F:
jmp short $+2
loc_B971:
add rsp, 18h
retn
| long long rapidjson::GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::GenericValue(
long long a1,
long long a2)
{
long long result; // rax
memset(a1, 0LL, 16LL);
result = a1;
*(_QWORD *)a1 = a2;
*(_WORD *)(a1 + 14) = 150;
if ( a2 < 0 )
{
if ( a2 >= (long long)0xFFFFFFFF80000000LL )
{
result = a1;
*(_WORD *)(a1 + 14) |= 0x20u;
}
}
else
{
*(_WORD *)(a1 + 14) |= 0x116u;
if ( (a2 & 0xFFFFFFFF00000000LL) == 0 )
*(_WORD *)(a1 + 14) |= 0x40u;
result = a2 & 0x7FFFFFFF80000000LL;
if ( (a2 & 0xFFFFFFFF80000000LL) == 0 )
{
result = a1;
*(_WORD *)(a1 + 14) |= 0x20u;
}
}
return result;
}
| GenericValue:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV qword ptr [RSP + 0x8],RSI
MOV RDI,qword ptr [RSP + 0x10]
MOV qword ptr [RSP],RDI
XOR ESI,ESI
MOV EDX,0x10
CALL 0x00103060
MOV RAX,qword ptr [RSP]
MOV RCX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX],RCX
MOV word ptr [RAX + 0xe],0x96
CMP qword ptr [RSP + 0x8],0x0
JL 0x0010b955
MOV RAX,qword ptr [RSP]
MOVZX ECX,word ptr [RAX + 0xe]
OR ECX,0x116
MOV word ptr [RAX + 0xe],CX
MOV RAX,-0x100000000
AND RAX,qword ptr [RSP + 0x8]
CMP RAX,0x0
JNZ 0x0010b933
MOV RAX,qword ptr [RSP]
MOVZX ECX,word ptr [RAX + 0xe]
OR ECX,0x40
MOV word ptr [RAX + 0xe],CX
LAB_0010b933:
MOV RAX,qword ptr [RSP + 0x8]
AND RAX,-0x80000000
CMP RAX,0x0
JNZ 0x0010b953
MOV RAX,qword ptr [RSP]
MOVZX ECX,word ptr [RAX + 0xe]
OR ECX,0x20
MOV word ptr [RAX + 0xe],CX
LAB_0010b953:
JMP 0x0010b971
LAB_0010b955:
CMP qword ptr [RSP + 0x8],-0x80000000
JL 0x0010b96f
MOV RAX,qword ptr [RSP]
MOVZX ECX,word ptr [RAX + 0xe]
OR ECX,0x20
MOV word ptr [RAX + 0xe],CX
LAB_0010b96f:
JMP 0x0010b971
LAB_0010b971:
ADD RSP,0x18
RET
|
/* rapidjson::GenericValue<rapidjson::UTF8<char>,
rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator> >::GenericValue(long) */
void __thiscall
rapidjson::
GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>::
GenericValue(GenericValue<rapidjson::UTF8<char>,rapidjson::MemoryPoolAllocator<rapidjson::CrtAllocator>>
*this,long param_1)
{
memset(this,0,0x10);
*(long *)this = param_1;
*(int2 *)(this + 0xe) = 0x96;
if (param_1 < 0) {
if (-0x80000001 < param_1) {
*(ushort *)(this + 0xe) = *(ushort *)(this + 0xe) | 0x20;
}
}
else {
*(ushort *)(this + 0xe) = *(ushort *)(this + 0xe) | 0x116;
if ((param_1 & 0xffffffff00000000U) == 0) {
*(ushort *)(this + 0xe) = *(ushort *)(this + 0xe) | 0x40;
}
if ((param_1 & 0xffffffff80000000U) == 0) {
*(ushort *)(this + 0xe) = *(ushort *)(this + 0xe) | 0x20;
}
}
return;
}
| |
28,139 | unsigned long nlohmann::json_abi_v3_11_3::detail::hash<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::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&) | monkey531[P]llama/common/json.hpp | constexpr value_t type() const noexcept
{
return m_data.m_type;
} | O2 | cpp | unsigned long nlohmann::json_abi_v3_11_3::detail::hash<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::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&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movzbl (%rdi), %r15d
cmpq $0x9, %r15
ja 0x830ff
movq %rdi, %r14
leaq 0x31a0b(%rip), %rax # 0xb4818
movslq (%rax,%r15,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl %r15d, %eax
shll $0x6, %eax
movl %r15d, %ecx
shrl $0x2, %ecx
orl %eax, %ecx
movl $0x9e3779b9, %ebx # imm = 0x9E3779B9
addq %rcx, %rbx
jmp 0x830ce
movq %r14, %rdi
callq 0x8320e
leaq 0x18(%rsp), %rdi
movq %rax, %rsi
callq 0x3a876
jmp 0x830b5
movl $0x9e3779b9, %r12d # imm = 0x9E3779B9
movq %r14, %rdi
callq 0x8316e
movl %r15d, %ecx
shll $0x6, %ecx
movl %r15d, %ebx
shrl $0x2, %ebx
orl %ecx, %ebx
addq 0x8(%rax), %rbx
addq %r12, %rbx
subq (%rax), %rbx
xorq %r15, %rbx
movq %r14, %rdi
callq 0x8316e
movzbl 0x20(%rax), %eax
movq %rbx, %rcx
shlq $0x6, %rcx
orq %rax, %rcx
movq %rbx, %r15
shrq $0x2, %r15
addq %r12, %r15
addq %rcx, %r15
xorq %rbx, %r15
movq %r14, %rdi
callq 0x8316e
movq 0x18(%rax), %rcx
addq %r12, %rcx
leaq -0x1(%r12), %rdx
cmpb $0x0, 0x20(%rax)
cmovneq %rcx, %rdx
movq %r15, %rax
shlq $0x6, %rax
addq %rdx, %rax
movq %r15, %rbx
shrq $0x2, %rbx
addq %rax, %rbx
xorq %r15, %rbx
movq %r14, %rdi
callq 0x8316e
movq (%rax), %rcx
movq 0x8(%rax), %rax
cmpq %rax, %rcx
je 0x830d1
movzbl (%rcx), %edx
movq %rbx, %rsi
shlq $0x6, %rsi
movq %rbx, %rdi
shrq $0x2, %rdi
addq %r12, %rsi
addq %rdi, %rsi
addq %rdx, %rsi
xorq %rsi, %rbx
incq %rcx
jmp 0x82edc
movl $0x9e3779b9, %ebp # imm = 0x9E3779B9
movq %r14, %rdi
callq 0x42134
movq %rax, %rbx
movl %r15d, %eax
shll $0x6, %eax
movl %r15d, %ecx
shrl $0x2, %ecx
orl %eax, %ecx
addq %rbp, %rbx
addq %rcx, %rbx
xorq %r15, %rbx
leaq 0x10(%rsp), %r12
movq %r14, (%r12)
leaq 0x18(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
callq 0x7d856
leaq 0x88(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
callq 0x7d888
leaq 0xf(%rsp), %r12
movq %r14, %rdi
movq %r15, %rsi
callq 0x67b8c
testb %al, %al
je 0x830e6
movq %r14, %rdi
callq 0x7d8ba
movq %r12, %rdi
movq %rax, %rsi
callq 0x3a876
movq %rax, %r13
movq %r14, %rdi
callq 0x67d86
movq %rax, %rdi
callq 0x82de4
movq %rbx, %rcx
shlq $0x6, %rcx
movq %rbx, %rdx
shrq $0x2, %rdx
addq %rbp, %rcx
addq %rdx, %rcx
addq %r13, %rcx
xorq %rbx, %rcx
movq %rcx, %rdx
shlq $0x6, %rdx
movq %rcx, %rbx
shrq $0x2, %rbx
addq %rbp, %rdx
addq %rax, %rbx
addq %rdx, %rbx
xorq %rcx, %rbx
movq %r14, %rdi
callq 0x7d928
jmp 0x82f5f
movl $0x9e3779b9, %r13d # imm = 0x9E3779B9
movq %r14, %rdi
callq 0x42134
movq %rax, %rbx
movl %r15d, %eax
shll $0x6, %eax
movl %r15d, %ecx
shrl $0x2, %ecx
orl %eax, %ecx
addq %r13, %rbx
addq %rcx, %rbx
xorq %r15, %rbx
leaq 0x18(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x680e8
leaq 0x88(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x68354
movq %r15, %rdi
movq %r12, %rsi
callq 0x67b8c
testb %al, %al
je 0x830d1
movq %r15, %rdi
callq 0x67d86
movq %rax, %rdi
callq 0x82de4
movq %rbx, %rcx
shlq $0x6, %rcx
movq %rbx, %rdx
shrq $0x2, %rdx
addq %r13, %rcx
addq %rdx, %rcx
addq %rax, %rcx
xorq %rcx, %rbx
movq %r15, %rdi
callq 0x67d1e
jmp 0x83021
movq %r14, %rdi
callq 0x83332
jmp 0x830b5
movq %r14, %rdi
callq 0x63eac
movl $0x9e3779b9, %ecx # imm = 0x9E3779B9
leaq 0x1(%rcx), %rdx
testb %al, %al
cmoveq %rcx, %rdx
movl %r15d, %eax
shll $0x6, %eax
movl %r15d, %ebx
shrl $0x2, %ebx
orl %eax, %ebx
jmp 0x830cb
movq %r14, %rdi
callq 0x6339a
jmp 0x830b5
movq %r14, %rdi
callq 0x63b7a
leaq 0x18(%rsp), %rdi
callq 0x83146
movl %r15d, %ecx
shll $0x6, %ecx
movl %r15d, %edx
shrl $0x2, %edx
orl %ecx, %edx
movl $0x9e3779b9, %ebx # imm = 0x9E3779B9
addq %rax, %rbx
addq %rdx, %rbx
xorq %r15, %rbx
movq %rbx, %rax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x88(%rsp), %rdi
callq 0x7d93a
leaq 0x18(%rsp), %rdi
callq 0x7d93a
jmp 0x830d1
leaq 0x2eae0(%rip), %rdi # 0xb1be6
leaq 0x29033(%rip), %rdx # 0xac140
leaq 0x2c5af(%rip), %rcx # 0xaf6c3
movl $0x17d9, %esi # imm = 0x17D9
xorl %eax, %eax
callq 0x24e90
jmp 0x83124
jmp 0x83124
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x7d93a
leaq 0x18(%rsp), %rdi
callq 0x7d93a
movq %rbx, %rdi
callq 0x24f60
| _ZN8nlohmann16json_abi_v3_11_36detail4hashINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEmRKT_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0F8h
movzx r15d, byte ptr [rdi]
cmp r15, 9; switch 10 cases
ja def_82E14; jumptable 0000000000082E14 default case
mov r14, rdi
lea rax, jpt_82E14
movsxd rcx, ds:(jpt_82E14 - 0B4818h)[rax+r15*4]
add rcx, rax
jmp rcx; switch jump
loc_82E16:
mov eax, r15d; jumptable 0000000000082E14 cases 0,9
shl eax, 6
mov ecx, r15d
shr ecx, 2
or ecx, eax
mov ebx, 9E3779B9h
add rbx, rcx
jmp loc_830CE
loc_82E31:
mov rdi, r14; jumptable 0000000000082E14 case 3
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE12get_ref_implIRKS9_KSD_EET_RT0_; 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>::get_ref_impl<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>(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const &)
lea rdi, [rsp+128h+var_110]
mov rsi, rax
call _ZNKSt4hashINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclERKS5_; std::hash<std::string>::operator()(std::string const&)
jmp loc_830B5
loc_82E4B:
mov r12d, 9E3779B9h; jumptable 0000000000082E14 case 8
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10get_binaryEv; 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>::get_binary(void)
mov ecx, r15d
shl ecx, 6
mov ebx, r15d
shr ebx, 2
or ebx, ecx
add rbx, [rax+8]
add rbx, r12
sub rbx, [rax]
xor rbx, r15
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10get_binaryEv; 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>::get_binary(void)
movzx eax, byte ptr [rax+20h]
mov rcx, rbx
shl rcx, 6
or rcx, rax
mov r15, rbx
shr r15, 2
add r15, r12
add r15, rcx
xor r15, rbx
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10get_binaryEv; 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>::get_binary(void)
mov rcx, [rax+18h]
add rcx, r12
lea rdx, [r12-1]
cmp byte ptr [rax+20h], 0
cmovnz rdx, rcx
mov rax, r15
shl rax, 6
add rax, rdx
mov rbx, r15
shr rbx, 2
add rbx, rax
xor rbx, r15
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10get_binaryEv; 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>::get_binary(void)
mov rcx, [rax]
mov rax, [rax+8]
loc_82EDC:
cmp rcx, rax
jz loc_830D1
movzx edx, byte ptr [rcx]
mov rsi, rbx
shl rsi, 6
mov rdi, rbx
shr rdi, 2
add rsi, r12
add rsi, rdi
add rsi, rdx
xor rbx, rsi
inc rcx
jmp short loc_82EDC
loc_82F07:
mov ebp, 9E3779B9h; jumptable 0000000000082E14 case 1
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4sizeEv; 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>::size(void)
mov rbx, rax
mov eax, r15d
shl eax, 6
mov ecx, r15d
shr ecx, 2
or ecx, eax
add rbx, rbp
add rbx, rcx
xor rbx, r15
lea r12, [rsp+128h+var_118]
mov [r12], r14
lea r14, [rsp+128h+var_110]
mov rdi, r14
mov rsi, r12
call _ZNK8nlohmann16json_abi_v3_11_36detail15iteration_proxyINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEE5beginEv; nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::begin(void)
lea r15, [rsp+128h+var_A0]
mov rdi, r15
mov rsi, r12
call _ZNK8nlohmann16json_abi_v3_11_36detail15iteration_proxyINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEE3endEv; nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::end(void)
lea r12, [rsp+128h+var_119]
loc_82F5F:
mov rdi, r14
mov rsi, r15
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
test al, al
jz loc_830E6
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEE3keyEv; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::key(void)
mov rdi, r12
mov rsi, rax
call _ZNKSt4hashINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEclERKS5_; std::hash<std::string>::operator()(std::string const&)
mov r13, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEdeEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator*(void)
mov rdi, rax
call _ZN8nlohmann16json_abi_v3_11_36detail4hashINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEmRKT_; nlohmann::json_abi_v3_11_3::detail::hash<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> const&)
mov rcx, rbx
shl rcx, 6
mov rdx, rbx
shr rdx, 2
add rcx, rbp
add rcx, rdx
add rcx, r13
xor rcx, rbx
mov rdx, rcx
shl rdx, 6
mov rbx, rcx
shr rbx, 2
add rdx, rbp
add rbx, rax
add rbx, rdx
xor rbx, rcx
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEEppEv; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::operator++(void)
jmp short loc_82F5F
loc_82FD6:
mov r13d, 9E3779B9h; jumptable 0000000000082E14 case 2
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4sizeEv; 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>::size(void)
mov rbx, rax
mov eax, r15d
shl eax, 6
mov ecx, r15d
shr ecx, 2
or ecx, eax
add rbx, r13
add rbx, rcx
xor rbx, r15
lea r15, [rsp+128h+var_110]
mov rdi, r15
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE6cbeginEv; 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>::cbegin(void)
lea r12, [rsp+128h+var_A0]
mov rdi, r12
mov rsi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4cendEv; 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>::cend(void)
loc_83021:
mov rdi, r15
mov rsi, r12
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
test al, al
jz loc_830D1
mov rdi, r15
call _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEdeEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator*(void)
mov rdi, rax
call _ZN8nlohmann16json_abi_v3_11_36detail4hashINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEEmRKT_; nlohmann::json_abi_v3_11_3::detail::hash<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> const&)
mov rcx, rbx
shl rcx, 6
mov rdx, rbx
shr rdx, 2
add rcx, r13
add rcx, rdx
add rcx, rax
xor rbx, rcx
mov rdi, r15
call _ZN8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEppEv; nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>::operator++(void)
jmp short loc_83021
loc_83068:
mov rdi, r14; jumptable 0000000000082E14 case 6
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implImTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
jmp short loc_830B5
loc_83072:
mov rdi, r14; jumptable 0000000000082E14 case 4
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIbTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
mov ecx, 9E3779B9h
lea rdx, [rcx+1]
test al, al
cmovz rdx, rcx
mov eax, r15d
shl eax, 6
mov ebx, r15d
shr ebx, 2
or ebx, eax
jmp short loc_830CB
loc_83099:
mov rdi, r14; jumptable 0000000000082E14 case 5
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIlTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
jmp short loc_830B5
loc_830A3:
mov rdi, r14; jumptable 0000000000082E14 case 7
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIdTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
lea rdi, [rsp+128h+var_110]
call _ZNKSt4hashIdEclEd; std::hash<double>::operator()(double)
loc_830B5:
mov ecx, r15d
shl ecx, 6
mov edx, r15d
shr edx, 2
or edx, ecx
mov ebx, 9E3779B9h
add rbx, rax
loc_830CB:
add rbx, rdx
loc_830CE:
xor rbx, r15
loc_830D1:
mov rax, rbx
add rsp, 0F8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_830E6:
lea rdi, [rsp+128h+var_A0]
call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::~iteration_proxy_value()
lea rdi, [rsp+128h+var_110]
call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::~iteration_proxy_value()
jmp short loc_830D1
def_82E14:
lea rdi, aWorkspaceLlm4b_1; jumptable 0000000000082E14 default case
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aAdvancedOption+0ABh; "false"
mov esi, 17D9h
xor eax, eax
call _ggml_abort
jmp short loc_83124
jmp short $+2
loc_83124:
mov rbx, rax
lea rdi, [rsp+128h+var_A0]
call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::~iteration_proxy_value()
lea rdi, [rsp+128h+var_110]
call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEED2Ev; nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const>>::~iteration_proxy_value()
mov rdi, rbx
call __Unwind_Resume
| unsigned long long nlohmann::json_abi_v3_11_3::detail::hash<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>>(
unsigned __int8 *a1)
{
long long v1; // r15
long long v2; // rbx
long long v3; // rax
long long v4; // rax
_QWORD *binary; // rax
unsigned long long v6; // rbx
unsigned long long v7; // r15
long long v8; // rax
long long v9; // rdx
unsigned long long v10; // rbx
unsigned __int8 **v11; // rax
unsigned __int8 *v12; // rcx
unsigned __int8 *v13; // rax
long long v14; // rax
long long v15; // r13
long long v16; // rax
long long v17; // rax
char v18; // al
long long v19; // rdx
long long v20; // rbx
double v21; // xmm0_8
long long v23; // rbx
char v24; // [rsp+Fh] [rbp-119h] BYREF
unsigned __int8 *v25; // [rsp+10h] [rbp-118h] BYREF
unsigned __int8 *v26[14]; // [rsp+18h] [rbp-110h] BYREF
_BYTE v27[160]; // [rsp+88h] [rbp-A0h] BYREF
v1 = *a1;
switch ( *a1 )
{
case 0u:
case 9u:
v2 = (((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2)) + 2654435769LL;
goto LABEL_23;
case 1u:
v10 = v1 ^ ((((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2))
+ 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>::size(a1)
+ 2654435769LL);
v25 = a1;
nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::begin(
(long long)v26,
(long long *)&v25);
nlohmann::json_abi_v3_11_3::detail::iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::end(
(long long)v27,
(long long *)&v25);
while ( ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_((long long)v26) )
{
v14 = nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::key(v26);
v15 = std::hash<std::string>::operator()((long long)&v24, v14);
v16 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator*(v26);
v10 ^= (v15 + (v10 >> 2) + (v10 << 6) + 2654435769u) ^ (((v10 ^ (v15 + (v10 >> 2) + (v10 << 6) + 2654435769u)) << 6)
+ 2654435769u
+ nlohmann::json_abi_v3_11_3::detail::hash<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>>(v16)
+ ((v10 ^ (v15 + (v10 >> 2) + (v10 << 6) + 2654435769u)) >> 2));
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::operator++((long long)v26);
}
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::~iteration_proxy_value((long long)v27);
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::~iteration_proxy_value((long long)v26);
return v10;
case 2u:
v10 = v1 ^ ((((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2))
+ 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>::size(a1)
+ 2654435769LL);
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>::cbegin(
(long long)v26,
(long long)a1);
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>::cend(
(long long)v27,
(long long)a1);
while ( ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_((long long)v26) )
{
v17 = nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator*(v26);
v10 ^= nlohmann::json_abi_v3_11_3::detail::hash<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>>(v17)
+ (v10 >> 2)
+ (v10 << 6)
+ 2654435769u;
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>::operator++(v26);
}
return v10;
case 3u:
v3 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get_ref_impl<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> const>(a1);
v4 = std::hash<std::string>::operator()((long long)v26, v3);
goto LABEL_21;
case 4u:
v18 = ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIbTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE((long long)a1);
v19 = 2654435770LL;
if ( !v18 )
v19 = 2654435769LL;
v20 = ((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2);
goto LABEL_22;
case 5u:
v4 = ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIlTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE((long long)a1);
goto LABEL_21;
case 6u:
v4 = ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implImTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE(a1);
goto LABEL_21;
case 7u:
v21 = ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIdTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE((long long)a1);
v4 = std::hash<double>::operator()(v26, v21);
LABEL_21:
v19 = ((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2);
v20 = v4 + 2654435769LL;
LABEL_22:
v2 = v19 + v20;
LABEL_23:
v10 = v1 ^ v2;
break;
case 8u:
binary = (_QWORD *)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>::get_binary(a1);
v6 = v1 ^ (binary[1] + (((_DWORD)v1 << 6) | ((unsigned int)v1 >> 2)) + 2654435769LL - *binary);
v7 = v6 ^ ((*(unsigned __int8 *)(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>::get_binary(a1)
+ 32) | (v6 << 6))
+ (v6 >> 2)
+ 2654435769u);
v8 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::get_binary(a1);
v9 = 2654435768LL;
if ( *(_BYTE *)(v8 + 32) )
v9 = *(_QWORD *)(v8 + 24) + 2654435769LL;
v10 = v7 ^ (v9 + (v7 << 6) + (v7 >> 2));
v11 = (unsigned __int8 **)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>::get_binary(a1);
v12 = *v11;
v13 = v11[1];
while ( v12 != v13 )
v10 ^= *v12++ + (v10 >> 2) + (v10 << 6) + 2654435769u;
break;
default:
v23 = ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
6105LL,
"GGML_ASSERT(%s) failed",
"false");
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::~iteration_proxy_value((long long)v27);
nlohmann::json_abi_v3_11_3::detail::iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const>>::~iteration_proxy_value((long long)v26);
_Unwind_Resume(v23);
}
return v10;
}
| hash<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>>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xf8
MOVZX R15D,byte ptr [RDI]
CMP R15,0x9
JA 0x001830ff
MOV R14,RDI
LEA RAX,[0x1b4818]
MOVSXD RCX,dword ptr [RAX + R15*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_0:
MOV EAX,R15D
SHL EAX,0x6
MOV ECX,R15D
SHR ECX,0x2
OR ECX,EAX
MOV EBX,0x9e3779b9
ADD RBX,RCX
JMP 0x001830ce
caseD_3:
MOV RDI,R14
CALL 0x0018320e
LEA RDI,[RSP + 0x18]
MOV RSI,RAX
CALL 0x0013a876
JMP 0x001830b5
caseD_8:
MOV R12D,0x9e3779b9
MOV RDI,R14
CALL 0x0018316e
MOV ECX,R15D
SHL ECX,0x6
MOV EBX,R15D
SHR EBX,0x2
OR EBX,ECX
ADD RBX,qword ptr [RAX + 0x8]
ADD RBX,R12
SUB RBX,qword ptr [RAX]
XOR RBX,R15
MOV RDI,R14
CALL 0x0018316e
MOVZX EAX,byte ptr [RAX + 0x20]
MOV RCX,RBX
SHL RCX,0x6
OR RCX,RAX
MOV R15,RBX
SHR R15,0x2
ADD R15,R12
ADD R15,RCX
XOR R15,RBX
MOV RDI,R14
CALL 0x0018316e
MOV RCX,qword ptr [RAX + 0x18]
ADD RCX,R12
LEA RDX,[R12 + -0x1]
CMP byte ptr [RAX + 0x20],0x0
CMOVNZ RDX,RCX
MOV RAX,R15
SHL RAX,0x6
ADD RAX,RDX
MOV RBX,R15
SHR RBX,0x2
ADD RBX,RAX
XOR RBX,R15
MOV RDI,R14
CALL 0x0018316e
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x8]
LAB_00182edc:
CMP RCX,RAX
JZ 0x001830d1
MOVZX EDX,byte ptr [RCX]
MOV RSI,RBX
SHL RSI,0x6
MOV RDI,RBX
SHR RDI,0x2
ADD RSI,R12
ADD RSI,RDI
ADD RSI,RDX
XOR RBX,RSI
INC RCX
JMP 0x00182edc
caseD_1:
MOV EBP,0x9e3779b9
MOV RDI,R14
CALL 0x00142134
MOV RBX,RAX
MOV EAX,R15D
SHL EAX,0x6
MOV ECX,R15D
SHR ECX,0x2
OR ECX,EAX
ADD RBX,RBP
ADD RBX,RCX
XOR RBX,R15
LEA R12,[RSP + 0x10]
MOV qword ptr [R12],R14
LEA R14,[RSP + 0x18]
MOV RDI,R14
MOV RSI,R12
CALL 0x0017d856
LEA R15,[RSP + 0x88]
MOV RDI,R15
MOV RSI,R12
CALL 0x0017d888
LEA R12,[RSP + 0xf]
LAB_00182f5f:
MOV RDI,R14
MOV RSI,R15
CALL 0x00167b8c
TEST AL,AL
JZ 0x001830e6
LAB_00182f72:
MOV RDI,R14
CALL 0x0017d8ba
MOV RDI,R12
MOV RSI,RAX
CALL 0x0013a876
MOV R13,RAX
LAB_00182f88:
MOV RDI,R14
CALL 0x00167d86
MOV RDI,RAX
CALL 0x00182de4
MOV RCX,RBX
SHL RCX,0x6
MOV RDX,RBX
SHR RDX,0x2
ADD RCX,RBP
ADD RCX,RDX
ADD RCX,R13
XOR RCX,RBX
MOV RDX,RCX
SHL RDX,0x6
MOV RBX,RCX
SHR RBX,0x2
ADD RDX,RBP
ADD RBX,RAX
ADD RBX,RDX
XOR RBX,RCX
LAB_00182fcc:
MOV RDI,R14
CALL 0x0017d928
LAB_00182fd4:
JMP 0x00182f5f
caseD_2:
MOV R13D,0x9e3779b9
MOV RDI,R14
CALL 0x00142134
MOV RBX,RAX
MOV EAX,R15D
SHL EAX,0x6
MOV ECX,R15D
SHR ECX,0x2
OR ECX,EAX
ADD RBX,R13
ADD RBX,RCX
XOR RBX,R15
LEA R15,[RSP + 0x18]
MOV RDI,R15
MOV RSI,R14
CALL 0x001680e8
LEA R12,[RSP + 0x88]
MOV RDI,R12
MOV RSI,R14
CALL 0x00168354
LAB_00183021:
MOV RDI,R15
MOV RSI,R12
CALL 0x00167b8c
TEST AL,AL
JZ 0x001830d1
MOV RDI,R15
CALL 0x00167d86
MOV RDI,RAX
CALL 0x00182de4
MOV RCX,RBX
SHL RCX,0x6
MOV RDX,RBX
SHR RDX,0x2
ADD RCX,R13
ADD RCX,RDX
ADD RCX,RAX
XOR RBX,RCX
MOV RDI,R15
CALL 0x00167d1e
JMP 0x00183021
caseD_6:
MOV RDI,R14
CALL 0x00183332
JMP 0x001830b5
caseD_4:
MOV RDI,R14
CALL 0x00163eac
MOV ECX,0x9e3779b9
LEA RDX,[RCX + 0x1]
TEST AL,AL
CMOVZ RDX,RCX
MOV EAX,R15D
SHL EAX,0x6
MOV EBX,R15D
SHR EBX,0x2
OR EBX,EAX
JMP 0x001830cb
caseD_5:
MOV RDI,R14
CALL 0x0016339a
JMP 0x001830b5
caseD_7:
MOV RDI,R14
CALL 0x00163b7a
LEA RDI,[RSP + 0x18]
CALL 0x00183146
LAB_001830b5:
MOV ECX,R15D
SHL ECX,0x6
MOV EDX,R15D
SHR EDX,0x2
OR EDX,ECX
MOV EBX,0x9e3779b9
ADD RBX,RAX
LAB_001830cb:
ADD RBX,RDX
LAB_001830ce:
XOR RBX,R15
LAB_001830d1:
MOV RAX,RBX
ADD RSP,0xf8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001830e6:
LEA RDI,[RSP + 0x88]
CALL 0x0017d93a
LEA RDI,[RSP + 0x18]
CALL 0x0017d93a
JMP 0x001830d1
default:
LEA RDI,[0x1b1be6]
LEA RDX,[0x1ac140]
LEA RCX,[0x1af6c3]
MOV ESI,0x17d9
XOR EAX,EAX
CALL 0x00124e90
|
/* unsigned long
nlohmann::json_abi_v3_11_3::detail::hash<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::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&) */
ulong nlohmann::json_abi_v3_11_3::detail::
hash<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 *param_1)
{
byte bVar1;
char cVar2;
string *psVar3;
long *plVar4;
long lVar5;
long lVar6;
int8 *puVar7;
basic_json *pbVar8;
byte *pbVar9;
ulong uVar10;
ulong uVar11;
ulong uVar12;
double dVar13;
hash<std::__cxx11::string> local_119;
basic_json *local_118;
hash<std::__cxx11::string> local_110 [112];
iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__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>>
local_a0 [112];
bVar1 = *param_1;
uVar12 = (ulong)bVar1;
switch(uVar12) {
case 0:
case 9:
uVar11 = (ulong)((uint)(bVar1 >> 2) | (uint)bVar1 << 6) + 0x9e3779b9;
goto LAB_001830ce;
case 1:
lVar5 = 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>
::size((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);
uVar12 = lVar5 + 0x9e3779b9 + (ulong)((uint)(bVar1 >> 2) | (uint)bVar1 << 6) ^ uVar12;
local_118 = param_1;
iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__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>>
::begin((iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__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>>
*)local_110);
iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__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>>
::end(local_a0);
/* try { // try from 00182f5f to 00182f69 has its CatchHandler @ 00183124 */
while (cVar2 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
((iteration_proxy<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__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>>
*)local_110,local_a0), cVar2 != '\0') {
/* try { // try from 00182f72 to 00182f79 has its CatchHandler @ 00183120 */
psVar3 = (string *)
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__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>>
::key((iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__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>>
*)local_110);
lVar5 = std::hash<std::__cxx11::string>::operator()(&local_119,psVar3);
/* try { // try from 00182f88 to 00182f97 has its CatchHandler @ 00183122 */
pbVar8 = (basic_json *)
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
::operator*((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
*)local_110);
uVar10 = hash<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>>
(pbVar8);
uVar12 = uVar12 * 0x40 + 0x9e3779b9 + (uVar12 >> 2) + lVar5 ^ uVar12;
uVar12 = (uVar12 >> 2) + uVar10 + uVar12 * 0x40 + 0x9e3779b9 ^ uVar12;
/* try { // try from 00182fcc to 00182fd3 has its CatchHandler @ 00183124 */
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__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>>
::operator++((iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__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>>
*)local_110);
}
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__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>>
::~iteration_proxy_value
((iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__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>>
*)local_a0);
iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__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>>
::~iteration_proxy_value
((iteration_proxy_value<nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__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>>
*)local_110);
return uVar12;
case 2:
lVar5 = 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>
::size((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);
uVar12 = lVar5 + 0x9e3779b9 + (ulong)((uint)(bVar1 >> 2) | (uint)bVar1 << 6) ^ uVar12;
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>
::cbegin();
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>
::cend();
while (cVar2 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implIKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISH_TnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISK_NS2_ISF_EEEE5valueEDnE4typeELDn0EEEbRKSK_
((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
*)local_110,local_a0), cVar2 != '\0') {
pbVar8 = (basic_json *)
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
::operator*((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
*)local_110);
uVar10 = hash<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>>
(pbVar8);
uVar12 = uVar12 ^ uVar12 * 0x40 + 0x9e3779b9 + (uVar12 >> 2) + uVar10;
iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
::operator++((iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>const>
*)local_110);
}
return uVar12;
case 3:
psVar3 = 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>
::
get_ref_impl<std::__cxx11::string_const&,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>
(param_1);
lVar5 = std::hash<std::__cxx11::string>::operator()(local_110,psVar3);
break;
case 4:
cVar2 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIbTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(param_1);
uVar10 = 0x9e3779ba;
if (cVar2 == '\0') {
uVar10 = 0x9e3779b9;
}
uVar11 = (ulong)((uint)(bVar1 >> 2) | (uint)bVar1 << 6);
goto LAB_001830cb;
case 5:
lVar5 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIlTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(param_1);
break;
case 6:
lVar5 = _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implImTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(param_1);
break;
case 7:
dVar13 = (double)_ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8get_implIdTnNSt9enable_ifIXaasr6detail24is_default_constructibleIT_EE5valuesr6detail13has_from_jsonISD_SG_EE5valueEiE4typeELi0EEESG_NS0_6detail12priority_tagILj0EEE
(param_1);
lVar5 = std::hash<double>::operator()((hash<double> *)local_110,dVar13);
break;
case 8:
plVar4 = (long *)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>
::get_binary((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);
uVar12 = ((ulong)((uint)(bVar1 >> 2) | (uint)bVar1 << 6) + plVar4[1] + 0x9e3779b9) - *plVar4 ^
uVar12;
lVar5 = 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>
::get_binary((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);
uVar12 = (uVar12 >> 2) + 0x9e3779b9 + (uVar12 << 6 | (ulong)*(byte *)(lVar5 + 0x20)) ^ uVar12;
lVar6 = 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>
::get_binary((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);
lVar5 = 0x9e3779b8;
if (*(char *)(lVar6 + 0x20) != '\0') {
lVar5 = *(long *)(lVar6 + 0x18) + 0x9e3779b9;
}
uVar12 = (uVar12 >> 2) + uVar12 * 0x40 + lVar5 ^ uVar12;
puVar7 = (int8 *)
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>
::get_binary((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);
for (pbVar9 = (byte *)*puVar7; pbVar9 != (byte *)puVar7[1]; pbVar9 = pbVar9 + 1) {
uVar12 = uVar12 ^ uVar12 * 0x40 + 0x9e3779b9 + (uVar12 >> 2) + (ulong)*pbVar9;
}
return uVar12;
default:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x17d9,
"GGML_ASSERT(%s) failed","false");
}
uVar10 = (ulong)((uint)(bVar1 >> 2) | (uint)bVar1 << 6);
uVar11 = lVar5 + 0x9e3779b9;
LAB_001830cb:
uVar11 = uVar11 + uVar10;
LAB_001830ce:
return uVar11 ^ uVar12;
}
| |
28,140 | unsigned long nlohmann::json_abi_v3_11_3::detail::hash<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::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&) | monkey531[P]llama/common/json.hpp | constexpr value_t type() const noexcept
{
return m_data.m_type;
} | O3 | cpp | unsigned long nlohmann::json_abi_v3_11_3::detail::hash<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::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&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
movzbl (%rdi), %eax
movb (%rsi), %cl
cmpb %cl, %al
jne 0x8d03e
cmpl $0x8, %eax
ja 0x8d206
movb $0x1, %bl
movl %eax, %eax
leaq 0x636e8(%rip), %rcx # 0xf0710
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x8(%rdi), %rax
cmpq 0x8(%rsi), %rax
jmp 0x8d18f
movl %eax, %edx
xorb $0x5, %dl
movl %ecx, %r8d
xorb $0x7, %r8b
orb %r8b, %dl
jne 0x8d060
cvtsi2sdq 0x8(%rdi), %xmm0
cmpeqsd 0x8(%rsi), %xmm0
jmp 0x8d106
movl %eax, %r9d
xorb $0x7, %r9b
movl %ecx, %edx
xorb $0x5, %dl
orb %dl, %r9b
jne 0x8d07c
cvtsi2sdq 0x8(%rsi), %xmm0
jmp 0x8d100
movl %eax, %r9d
xorb $0x6, %r9b
orb %r8b, %r9b
jne 0x8d0b0
movsd 0x8(%rdi), %xmm0
unpcklps 0x635dc(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x635e4(%rip), %xmm0 # 0xf0680
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1 # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
cmpeqsd 0x8(%rsi), %xmm1
jmp 0x8d0e9
movl %eax, %r8d
xorb $0x7, %r8b
xorb $0x6, %cl
orb %cl, %r8b
jne 0x8d257
movsd 0x8(%rsi), %xmm0
unpcklps 0x635a1(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x635a9(%rip), %xmm0 # 0xf0680
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1 # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
cmpeqsd 0x8(%rdi), %xmm1
movq %xmm1, %rbx
jmp 0x8d10b
movb 0x8(%rdi), %al
cmpb 0x8(%rsi), %al
jmp 0x8d18f
movsd 0x8(%rsi), %xmm0
cmpeqsd 0x8(%rdi), %xmm0
movq %xmm0, %rbx
andl $0x1, %ebx
jmp 0x8d249
movq 0x8(%rdi), %rax
movq 0x8(%rsi), %rcx
movq (%rax), %r14
movq 0x8(%rax), %r12
movq %r12, %rax
subq %r14, %rax
movq (%rcx), %r15
movq 0x8(%rcx), %rcx
subq %r15, %rcx
cmpq %rcx, %rax
jne 0x8d206
cmpq %r12, %r14
je 0x8d249
movq %r14, %rdi
movq %r15, %rsi
callq 0x8d000
movl %eax, %ebx
testb %al, %al
je 0x8d249
addq $0x10, %r14
addq $0x10, %r15
jmp 0x8d13b
movq 0x8(%rdi), %rax
movq 0x8(%rsi), %rcx
movq 0x8(%rax), %rdx
cmpq 0x8(%rcx), %rdx
jne 0x8d206
testq %rdx, %rdx
je 0x8d249
movq (%rcx), %rsi
movq (%rax), %rdi
callq 0x1b8f0
testl %eax, %eax
sete %bl
jmp 0x8d249
movq 0x8(%rdi), %rax
movq 0x8(%rsi), %rcx
movq (%rax), %r15
movq 0x8(%rax), %r12
movq %r12, %rax
subq %r15, %rax
movq (%rcx), %r14
movq 0x8(%rcx), %rcx
subq %r14, %rcx
cmpq %rcx, %rax
jne 0x8d206
cmpq %r12, %r15
je 0x8d249
addq $0x20, %r14
movq 0x8(%r15), %rdx
cmpq -0x18(%r14), %rdx
jne 0x8d206
testq %rdx, %rdx
je 0x8d1e7
movq -0x20(%r14), %rsi
movq (%r15), %rdi
callq 0x1b8f0
testl %eax, %eax
jne 0x8d206
leaq 0x20(%r15), %rdi
movq %r14, %rsi
callq 0x8d000
testb %al, %al
je 0x8d206
addq $0x30, %r15
addq $0x30, %r14
cmpq %r12, %r15
jne 0x8d1c8
jmp 0x8d249
xorl %ebx, %ebx
jmp 0x8d249
movq 0x8(%rdi), %rax
movq 0x8(%rsi), %rcx
leaq 0x18(%rax), %rdx
leaq 0x20(%rax), %rsi
leaq 0x20(%rsp), %rdi
movq %rsi, (%rdi)
movq %rdx, 0x8(%rdi)
movq %rax, 0x10(%rdi)
leaq 0x18(%rcx), %rax
leaq 0x20(%rcx), %rdx
leaq 0x8(%rsp), %rsi
movq %rdx, (%rsi)
movq %rax, 0x8(%rsi)
movq %rcx, 0x10(%rsi)
callq 0x8d2e0
movl %eax, %ebx
movl %ebx, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl %eax, %r8d
xorb $0x6, %r8b
orb %dl, %r8b
je 0x8d031
xorb $0x5, %al
orb %cl, %al
je 0x8d031
xorl %ebx, %ebx
xorl %edx, %edx
callq 0x8d284
jmp 0x8d249
movq %rax, %rdi
callq 0x21ae5
| _ZN8nlohmann16json_abi_v3_11_3eqERKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEESF_:
push r15
push r14
push r12
push rbx
sub rsp, 38h
movzx eax, byte ptr [rdi]
mov cl, [rsi]
cmp al, cl
jnz short loc_8D03E
cmp eax, 8; switch 9 cases
ja def_8D02F; jumptable 000000000008D02F default case
mov bl, 1
mov eax, eax
lea rcx, jpt_8D02F
movsxd rax, ds:(jpt_8D02F - 0F0710h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_8D031:
mov rax, [rdi+8]; jumptable 000000000008D02F cases 5,6
cmp rax, [rsi+8]
jmp loc_8D18F
loc_8D03E:
mov edx, eax
xor dl, 5
mov r8d, ecx
xor r8b, 7
or dl, r8b
jnz short loc_8D060
cvtsi2sd xmm0, qword ptr [rdi+8]
cmpeqsd xmm0, qword ptr [rsi+8]
jmp loc_8D106
loc_8D060:
mov r9d, eax
xor r9b, 7
mov edx, ecx
xor dl, 5
or r9b, dl
jnz short loc_8D07C
cvtsi2sd xmm0, qword ptr [rsi+8]
jmp loc_8D100
loc_8D07C:
mov r9d, eax
xor r9b, 6
or r9b, r8b
jnz short loc_8D0B0
movsd xmm0, qword ptr [rdi+8]
unpcklps xmm0, cs:xmmword_F0670
subpd xmm0, cs:xmmword_F0680
movapd xmm1, xmm0
unpckhpd xmm1, xmm0
addsd xmm1, xmm0
cmpeqsd xmm1, qword ptr [rsi+8]
jmp short loc_8D0E9
loc_8D0B0:
mov r8d, eax
xor r8b, 7
xor cl, 6
or r8b, cl
jnz loc_8D257
movsd xmm0, qword ptr [rsi+8]
unpcklps xmm0, cs:xmmword_F0670
subpd xmm0, cs:xmmword_F0680
movapd xmm1, xmm0
unpckhpd xmm1, xmm0
addsd xmm1, xmm0
cmpeqsd xmm1, qword ptr [rdi+8]
loc_8D0E9:
movq rbx, xmm1
jmp short loc_8D10B
loc_8D0F0:
mov al, [rdi+8]; jumptable 000000000008D02F case 4
cmp al, [rsi+8]
jmp loc_8D18F
loc_8D0FB:
movsd xmm0, qword ptr [rsi+8]; jumptable 000000000008D02F case 7
loc_8D100:
cmpeqsd xmm0, qword ptr [rdi+8]
loc_8D106:
movq rbx, xmm0
loc_8D10B:
and ebx, 1
jmp loc_8D249; jumptable 000000000008D02F case 0
loc_8D113:
mov rax, [rdi+8]; jumptable 000000000008D02F case 2
mov rcx, [rsi+8]
mov r14, [rax]
mov r12, [rax+8]
mov rax, r12
sub rax, r14
mov r15, [rcx]
mov rcx, [rcx+8]
sub rcx, r15
cmp rax, rcx
jnz def_8D02F; jumptable 000000000008D02F default case
loc_8D13B:
cmp r14, r12
jz loc_8D249; jumptable 000000000008D02F case 0
mov rdi, r14
mov rsi, r15
call _ZN8nlohmann16json_abi_v3_11_3eqERKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEESF_; nlohmann::json_abi_v3_11_3::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> 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&)
mov ebx, eax
test al, al
jz loc_8D249; jumptable 000000000008D02F case 0
add r14, 10h
add r15, 10h
jmp short loc_8D13B
loc_8D163:
mov rax, [rdi+8]; jumptable 000000000008D02F case 3
mov rcx, [rsi+8]
mov rdx, [rax+8]
cmp rdx, [rcx+8]
jnz def_8D02F; jumptable 000000000008D02F default case
test rdx, rdx
jz loc_8D249; jumptable 000000000008D02F case 0
mov rsi, [rcx]
mov rdi, [rax]
call _bcmp
test eax, eax
loc_8D18F:
setz bl
jmp loc_8D249; jumptable 000000000008D02F case 0
loc_8D197:
mov rax, [rdi+8]; jumptable 000000000008D02F case 1
mov rcx, [rsi+8]
mov r15, [rax]
mov r12, [rax+8]
mov rax, r12
sub rax, r15
mov r14, [rcx]
mov rcx, [rcx+8]
sub rcx, r14
cmp rax, rcx
jnz short def_8D02F; jumptable 000000000008D02F default case
cmp r15, r12
jz loc_8D249; jumptable 000000000008D02F case 0
add r14, 20h ; ' '
loc_8D1C8:
mov rdx, [r15+8]
cmp rdx, [r14-18h]
jnz short def_8D02F; jumptable 000000000008D02F default case
test rdx, rdx
jz short loc_8D1E7
mov rsi, [r14-20h]
mov rdi, [r15]
call _bcmp
test eax, eax
jnz short def_8D02F; jumptable 000000000008D02F default case
loc_8D1E7:
lea rdi, [r15+20h]
mov rsi, r14
call _ZN8nlohmann16json_abi_v3_11_3eqERKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEESF_; nlohmann::json_abi_v3_11_3::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> 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, al
jz short def_8D02F; jumptable 000000000008D02F default case
add r15, 30h ; '0'
add r14, 30h ; '0'
cmp r15, r12
jnz short loc_8D1C8
jmp short loc_8D249; jumptable 000000000008D02F case 0
def_8D02F:
xor ebx, ebx; jumptable 000000000008D02F default case
jmp short loc_8D249; jumptable 000000000008D02F case 0
loc_8D20A:
mov rax, [rdi+8]; jumptable 000000000008D02F case 8
mov rcx, [rsi+8]
lea rdx, [rax+18h]
lea rsi, [rax+20h]
lea rdi, [rsp+58h+var_38]
mov [rdi], rsi
mov [rdi+8], rdx
mov [rdi+10h], rax
lea rax, [rcx+18h]
lea rdx, [rcx+20h]
lea rsi, [rsp+58h+var_50]
mov [rsi], rdx
mov [rsi+8], rax
mov [rsi+10h], rcx
call _ZNSt15__tuple_compareISt5tupleIJRKSt6vectorIhSaIhEERKmRKbEESA_Lm0ELm3EE4__eqERKSA_SD_; std::__tuple_compare<std::tuple<std::vector<uchar> const&,ulong const&,bool const&>,std::tuple<std::vector<uchar> const&,ulong const&,bool const&>,0ul,3ul>::__eq(std::tuple<std::vector<uchar> const&,ulong const&,bool const&> const&,std::tuple<std::vector<uchar> const&,ulong const&,bool const&> const&)
mov ebx, eax
loc_8D249:
mov eax, ebx; jumptable 000000000008D02F case 0
add rsp, 38h
pop rbx
pop r12
pop r14
pop r15
retn
loc_8D257:
mov r8d, eax
xor r8b, 6
or r8b, dl
jz loc_8D031; jumptable 000000000008D02F cases 5,6
xor al, 5
or al, cl
jz loc_8D031; jumptable 000000000008D02F cases 5,6
xor ebx, ebx
xor edx, edx
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE18compares_unorderedERKSD_SF_b; 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>::compares_unordered(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)
jmp short loc_8D249; jumptable 000000000008D02F case 0
mov rdi, rax
call __clang_call_terminate
| long long nlohmann::json_abi_v3_11_3::operator==(unsigned __int8 *a1, unsigned __int8 *a2, __m128d a3)
{
unsigned int v3; // ebx
unsigned __int8 v4; // al
unsigned __int8 v5; // cl
bool v6; // zf
__m128d v7; // rt1
unsigned __int8 v8; // dl
__m128d v9; // xmm0
__m128d v10; // xmm1
__m128d v11; // rt1
__int8 v12; // xmm1_1
unsigned __int8 v13; // cl
__m128d v14; // xmm0
__m128d v15; // xmm1
__m128d v16; // rt1
__int8 v17; // bl
__m128d v18; // rt1
long long *v19; // rax
long long *v20; // rcx
long long v21; // r14
long long v22; // r12
long long v23; // r15
_QWORD *v24; // rax
_QWORD *v25; // rcx
long long v26; // rdx
_QWORD *v27; // rax
_QWORD *v28; // rcx
_QWORD *v29; // r15
_QWORD *v30; // r12
long long v31; // r14
long long v32; // rdx
v4 = *a1;
v5 = *a2;
if ( *a1 != *a2 )
{
if ( v5 ^ 7 | v4 ^ 5 )
{
v8 = v5 ^ 5;
if ( v5 ^ 5 | v4 ^ 7 )
{
if ( v5 ^ 7 | v4 ^ 6 )
{
v13 = v5 ^ 6;
if ( v13 | v4 ^ 7 )
{
if ( v8 | v4 ^ 6 && v13 | v4 ^ 5 )
{
v3 = 0;
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>::compares_unordered(
a1,
a2,
0LL);
}
else
{
LABEL_3:
v6 = *((_QWORD *)a1 + 1) == *((_QWORD *)a2 + 1);
LABEL_25:
LOBYTE(v3) = v6;
}
return v3;
}
v14 = _mm_sub_pd(
(__m128d)_mm_unpacklo_ps((__m128)*((unsigned long long *)a2 + 1), (__m128)xmmword_F0670),
(__m128d)xmmword_F0680);
v15 = _mm_unpackhi_pd(v14, v14);
v15.m128d_f64[0] = v15.m128d_f64[0] + v14.m128d_f64[0];
v16.m128d_f64[0] = *((double *)a1 + 1);
v12 = *(_OWORD *)&_mm_cmpeq_sd(v15, v16);
}
else
{
v9 = _mm_sub_pd(
(__m128d)_mm_unpacklo_ps((__m128)*((unsigned long long *)a1 + 1), (__m128)xmmword_F0670),
(__m128d)xmmword_F0680);
v10 = _mm_unpackhi_pd(v9, v9);
v10.m128d_f64[0] = v10.m128d_f64[0] + v9.m128d_f64[0];
v11.m128d_f64[0] = *((double *)a2 + 1);
v12 = *(_OWORD *)&_mm_cmpeq_sd(v10, v11);
}
v17 = v12;
return v17 & 1;
}
a3.m128d_f64[0] = (double)(int)*((_QWORD *)a2 + 1);
LABEL_15:
v18.m128d_f64[0] = *((double *)a1 + 1);
LOBYTE(a3.m128d_f64[0]) = *(_OWORD *)&_mm_cmpeq_sd(a3, v18);
}
else
{
a3.m128d_f64[0] = (double)(int)*((_QWORD *)a1 + 1);
v7.m128d_f64[0] = *((double *)a2 + 1);
LOBYTE(a3.m128d_f64[0]) = *(_OWORD *)&_mm_cmpeq_sd(a3, v7);
}
v17 = LOBYTE(a3.m128d_f64[0]);
return v17 & 1;
}
LOBYTE(v3) = 1;
switch ( *a1 )
{
case 0u:
return v3;
case 1u:
v27 = (_QWORD *)*((_QWORD *)a1 + 1);
v28 = (_QWORD *)*((_QWORD *)a2 + 1);
v29 = (_QWORD *)*v27;
v30 = (_QWORD *)v27[1];
if ( (_QWORD *)((char *)v30 - *v27) != (_QWORD *)(v28[1] - *v28) )
return 0;
if ( v29 == v30 )
return v3;
v31 = *v28 + 32LL;
break;
case 2u:
v19 = (long long *)*((_QWORD *)a1 + 1);
v20 = (long long *)*((_QWORD *)a2 + 1);
v21 = *v19;
v22 = v19[1];
v23 = *v20;
if ( v22 - *v19 != v20[1] - *v20 )
return 0;
while ( v21 != v22 )
{
v3 = nlohmann::json_abi_v3_11_3::operator==(v21, v23);
if ( !(_BYTE)v3 )
break;
v21 += 16LL;
v23 += 16LL;
}
return v3;
case 3u:
v24 = (_QWORD *)*((_QWORD *)a1 + 1);
v25 = (_QWORD *)*((_QWORD *)a2 + 1);
v26 = v24[1];
if ( v26 != v25[1] )
return 0;
if ( !v26 )
return v3;
v6 = (unsigned int)bcmp(*v24, *v25) == 0;
goto LABEL_25;
case 4u:
v6 = a1[8] == a2[8];
goto LABEL_25;
case 5u:
case 6u:
goto LABEL_3;
case 7u:
a3 = (__m128d)*((unsigned long long *)a2 + 1);
goto LABEL_15;
case 8u:
return (unsigned int)std::__tuple_compare<std::tuple<std::vector<unsigned char> const&,unsigned long const&,bool const&>,std::tuple<std::vector<unsigned char> const&,unsigned long const&,bool const&>,0ul,3ul>::__eq();
default:
return 0;
}
while ( 1 )
{
v32 = v29[1];
if ( v32 != *(_QWORD *)(v31 - 24) || v32 && (unsigned int)bcmp(*v29, *(_QWORD *)(v31 - 32)) )
break;
if ( !(unsigned __int8)nlohmann::json_abi_v3_11_3::operator==(v29 + 4, v31) )
break;
v29 += 6;
v31 += 48LL;
if ( v29 == v30 )
return v3;
}
return 0;
}
| |||
28,141 | skip | eloqsql/libmariadb/unittest/mytap/tap.c | void
skip(int how_many, char const *const fmt, ...)
{
char reason[80];
if (fmt && *fmt)
{
va_list ap;
va_start(ap, fmt);
vsnprintf(reason, sizeof(reason), fmt, ap);
va_end(ap);
}
else
reason[0] = '\0';
while (how_many-- > 0)
{
va_list ap;
memset((char*) &ap, 0, sizeof(ap)); /* Keep compiler happy */
vemit_tap(1, NULL, ap);
emit_dir("skip", reason);
emit_endl();
}
} | O0 | c | skip:
pushq %rbp
movq %rsp, %rbp
subq $0x160, %rsp # imm = 0x160
testb %al, %al
je 0x300f7
movaps %xmm0, -0x130(%rbp)
movaps %xmm1, -0x120(%rbp)
movaps %xmm2, -0x110(%rbp)
movaps %xmm3, -0x100(%rbp)
movaps %xmm4, -0xf0(%rbp)
movaps %xmm5, -0xe0(%rbp)
movaps %xmm6, -0xd0(%rbp)
movaps %xmm7, -0xc0(%rbp)
movq %r9, -0x138(%rbp)
movq %r8, -0x140(%rbp)
movq %rcx, -0x148(%rbp)
movq %rdx, -0x150(%rbp)
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movl %edi, -0x64(%rbp)
movq %rsi, -0x70(%rbp)
cmpq $0x0, -0x70(%rbp)
je 0x30183
movq -0x70(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x30183
leaq -0x90(%rbp), %rax
leaq -0x160(%rbp), %rcx
movq %rcx, 0x10(%rax)
leaq 0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x30, 0x4(%rax)
movl $0x10, (%rax)
leaq -0x60(%rbp), %rdi
movq -0x70(%rbp), %rdx
leaq -0x90(%rbp), %rcx
movl $0x50, %esi
callq 0x142b0
leaq -0x90(%rbp), %rax
jmp 0x30187
movb $0x0, -0x60(%rbp)
jmp 0x30189
movl -0x64(%rbp), %eax
movl %eax, %ecx
addl $-0x1, %ecx
movl %ecx, -0x64(%rbp)
cmpl $0x0, %eax
jle 0x301d8
leaq -0xb0(%rbp), %rdi
xorl %esi, %esi
movl $0x18, %edx
callq 0x14260
leaq -0xb0(%rbp), %rdx
movl $0x1, %edi
xorl %eax, %eax
movl %eax, %esi
callq 0x2ffa0
leaq -0x60(%rbp), %rsi
leaq 0x3a977(%rip), %rdi # 0x6ab43
callq 0x30070
callq 0x30360
jmp 0x30189
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x301f3
addq $0x160, %rsp # imm = 0x160
popq %rbp
retq
callq 0x144c0
nopl (%rax,%rax)
| skip:
push rbp
mov rbp, rsp
sub rsp, 160h
test al, al
jz short loc_300F7
movaps [rbp+var_130], xmm0
movaps [rbp+var_120], xmm1
movaps [rbp+var_110], xmm2
movaps [rbp+var_100], xmm3
movaps [rbp+var_F0], xmm4
movaps [rbp+var_E0], xmm5
movaps [rbp+var_D0], xmm6
movaps [rbp+var_C0], xmm7
loc_300F7:
mov [rbp+var_138], r9
mov [rbp+var_140], r8
mov [rbp+var_148], rcx
mov [rbp+var_150], rdx
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_64], edi
mov [rbp+var_70], rsi
cmp [rbp+var_70], 0
jz short loc_30183
mov rax, [rbp+var_70]
movsx eax, byte ptr [rax]
cmp eax, 0
jz short loc_30183
lea rax, [rbp+var_90]
lea rcx, [rbp+var_160]
mov [rax+10h], rcx
lea rcx, [rbp+arg_0]
mov [rax+8], rcx
mov dword ptr [rax+4], 30h ; '0'
mov dword ptr [rax], 10h
lea rdi, [rbp+var_60]
mov rdx, [rbp+var_70]
lea rcx, [rbp+var_90]
mov esi, 50h ; 'P'
call _vsnprintf
lea rax, [rbp+var_90]
jmp short loc_30187
loc_30183:
mov [rbp+var_60], 0
loc_30187:
jmp short $+2
loc_30189:
mov eax, [rbp+var_64]
mov ecx, eax
add ecx, 0FFFFFFFFh
mov [rbp+var_64], ecx
cmp eax, 0
jle short loc_301D8
lea rdi, [rbp+var_B0]
xor esi, esi
mov edx, 18h
call _memset
lea rdx, [rbp+var_B0]
mov edi, 1
xor eax, eax
mov esi, eax
call vemit_tap
lea rsi, [rbp+var_60]
lea rdi, aSkip; "skip"
call emit_dir
call emit_endl
jmp short loc_30189
loc_301D8:
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_301F3
add rsp, 160h
pop rbp
retn
loc_301F3:
call ___stack_chk_fail
| unsigned long long skip(int a1, _BYTE *a2, ...)
{
int v2; // eax
_BYTE v4[32]; // [rsp+B0h] [rbp-B0h] BYREF
va_list va; // [rsp+D0h] [rbp-90h] BYREF
_BYTE *v6; // [rsp+F0h] [rbp-70h]
int v7; // [rsp+FCh] [rbp-64h]
char v8[88]; // [rsp+100h] [rbp-60h] BYREF
unsigned long long v9; // [rsp+158h] [rbp-8h]
v9 = __readfsqword(0x28u);
v7 = a1;
v6 = a2;
if ( a2 && *v6 )
{
va_start(va, a2);
vsnprintf(v8, 80LL, v6, va);
}
else
{
v8[0] = 0;
}
while ( 1 )
{
v2 = v7--;
if ( v2 <= 0 )
break;
memset(v4, 0LL, 24LL);
vemit_tap(1, 0LL, (long long)v4);
emit_dir("skip", v8);
emit_endl();
}
return __readfsqword(0x28u);
}
| skip:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x160
TEST AL,AL
JZ 0x001300f7
MOVAPS xmmword ptr [RBP + -0x130],XMM0
MOVAPS xmmword ptr [RBP + -0x120],XMM1
MOVAPS xmmword ptr [RBP + -0x110],XMM2
MOVAPS xmmword ptr [RBP + -0x100],XMM3
MOVAPS xmmword ptr [RBP + -0xf0],XMM4
MOVAPS xmmword ptr [RBP + -0xe0],XMM5
MOVAPS xmmword ptr [RBP + -0xd0],XMM6
MOVAPS xmmword ptr [RBP + -0xc0],XMM7
LAB_001300f7:
MOV qword ptr [RBP + -0x138],R9
MOV qword ptr [RBP + -0x140],R8
MOV qword ptr [RBP + -0x148],RCX
MOV qword ptr [RBP + -0x150],RDX
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV dword ptr [RBP + -0x64],EDI
MOV qword ptr [RBP + -0x70],RSI
CMP qword ptr [RBP + -0x70],0x0
JZ 0x00130183
MOV RAX,qword ptr [RBP + -0x70]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JZ 0x00130183
LEA RAX,[RBP + -0x90]
LEA RCX,[RBP + -0x160]
MOV qword ptr [RAX + 0x10],RCX
LEA RCX,[RBP + 0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV dword ptr [RAX + 0x4],0x30
MOV dword ptr [RAX],0x10
LEA RDI,[RBP + -0x60]
MOV RDX,qword ptr [RBP + -0x70]
LEA RCX,[RBP + -0x90]
MOV ESI,0x50
CALL 0x001142b0
LEA RAX,[RBP + -0x90]
JMP 0x00130187
LAB_00130183:
MOV byte ptr [RBP + -0x60],0x0
LAB_00130187:
JMP 0x00130189
LAB_00130189:
MOV EAX,dword ptr [RBP + -0x64]
MOV ECX,EAX
ADD ECX,-0x1
MOV dword ptr [RBP + -0x64],ECX
CMP EAX,0x0
JLE 0x001301d8
LEA RDI,[RBP + -0xb0]
XOR ESI,ESI
MOV EDX,0x18
CALL 0x00114260
LEA RDX,[RBP + -0xb0]
MOV EDI,0x1
XOR EAX,EAX
MOV ESI,EAX
CALL 0x0012ffa0
LEA RSI,[RBP + -0x60]
LEA RDI,[0x16ab43]
CALL 0x00130070
CALL 0x00130360
JMP 0x00130189
LAB_001301d8:
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001301f3
ADD RSP,0x160
POP RBP
RET
LAB_001301f3:
CALL 0x001144c0
|
void skip(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,int param_9,
char *param_10,int8 param_11,int8 param_12,int8 param_13,
int8 param_14)
{
char in_AL;
long in_FS_OFFSET;
int1 local_168 [16];
int8 local_158;
int8 local_150;
int8 local_148;
int8 local_140;
int8 local_138;
int8 local_128;
int8 local_118;
int8 local_108;
int8 local_f8;
int8 local_e8;
int8 local_d8;
int8 local_c8;
int1 local_b8 [32];
int4 local_98;
int4 local_94;
int1 *local_90;
int1 *local_88;
char *local_78;
int local_6c;
char local_68 [88];
long local_10;
if (in_AL != '\0') {
local_138 = param_1;
local_128 = param_2;
local_118 = param_3;
local_108 = param_4;
local_f8 = param_5;
local_e8 = param_6;
local_d8 = param_7;
local_c8 = param_8;
}
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_158 = param_11;
local_150 = param_12;
local_148 = param_13;
local_140 = param_14;
local_78 = param_10;
local_6c = param_9;
if ((param_10 == (char *)0x0) || (*param_10 == '\0')) {
local_68[0] = '\0';
}
else {
local_88 = local_168;
local_90 = &stack0x00000008;
local_94 = 0x30;
local_98 = 0x10;
vsnprintf(local_68,0x50,param_10,&local_98);
}
while (0 < local_6c) {
local_6c = local_6c + -1;
memset(local_b8,0,0x18);
vemit_tap(1,0,local_b8);
emit_dir(&DAT_0016ab43);
emit_endl();
}
if (*(long *)(in_FS_OFFSET + 0x28) != local_10) {
local_6c = local_6c + -1;
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return;
}
| |
28,142 | gguf_get_arr_data | Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp | const void * gguf_get_arr_data(const struct gguf_context * ctx, int64_t key_id) {
GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx));
GGML_ASSERT(ctx->kv[key_id].get_type() != GGUF_TYPE_STRING);
return ctx->kv[key_id].data.data();
} | O1 | cpp | gguf_get_arr_data:
pushq %rax
testq %rsi, %rsi
js 0x3e9c3
movq 0x8(%rdi), %rax
movq 0x10(%rdi), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
movabsq $0x2e8ba2e8ba2e8ba3, %rcx # imm = 0x2E8BA2E8BA2E8BA3
imulq %rcx, %rdx
cmpq %rsi, %rdx
jle 0x3e9c3
movq 0x10(%rdi), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
imulq %rcx, %rdx
cmpq %rsi, %rdx
jbe 0x3e9be
imulq $0x58, %rsi, %rcx
cmpl $0x8, 0x24(%rax,%rcx)
je 0x3e9df
addq %rcx, %rax
movq 0x28(%rax), %rax
popq %rcx
retq
callq 0x19a71
leaq 0x1e623(%rip), %rdi # 0x5cfed
leaq 0xdbf0(%rip), %rdx # 0x4c5c1
leaq 0x1ea8b(%rip), %rcx # 0x5d463
movl $0x307, %esi # imm = 0x307
jmp 0x3e9f9
leaq 0x1e607(%rip), %rdi # 0x5cfed
leaq 0xdbd4(%rip), %rdx # 0x4c5c1
leaq 0x1eab3(%rip), %rcx # 0x5d4a7
movl $0x308, %esi # imm = 0x308
xorl %eax, %eax
callq 0x18ce0
| gguf_get_arr_data:
push rax
test rsi, rsi
js short loc_3E9C3
mov rax, [rdi+8]
mov rdx, [rdi+10h]
sub rdx, rax
sar rdx, 3
mov rcx, 2E8BA2E8BA2E8BA3h
imul rdx, rcx
cmp rdx, rsi
jle short loc_3E9C3
mov rdx, [rdi+10h]
sub rdx, rax
sar rdx, 3
imul rdx, rcx
cmp rdx, rsi
jbe short loc_3E9BE
imul rcx, rsi, 58h ; 'X'
cmp dword ptr [rax+rcx+24h], 8
jz short loc_3E9DF
add rax, rcx
mov rax, [rax+28h]
pop rcx
retn
loc_3E9BE:
call gguf_get_arr_data_cold_1
loc_3E9C3:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKeyId0KeyIdGgu; "key_id >= 0 && key_id < gguf_get_n_kv(c"...
mov esi, 307h
jmp short loc_3E9F9
loc_3E9DF:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aCtxKvKeyIdGetT; "ctx->kv[key_id].get_type() != GGUF_TYPE"...
mov esi, 308h
loc_3E9F9:
xor eax, eax
call _ggml_abort
| long long gguf_get_arr_data(long long a1, long long a2, long long a3, long long a4, int a5, int a6)
{
long long v6; // rax
const char *v8; // rcx
int v9; // esi
if ( a2 < 0 || (v6 = *(_QWORD *)(a1 + 8), 0x2E8BA2E8BA2E8BA3LL * ((*(_QWORD *)(a1 + 16) - v6) >> 3) <= a2) )
{
v8 = "key_id >= 0 && key_id < gguf_get_n_kv(ctx)";
v9 = 775;
goto LABEL_9;
}
if ( 0x2E8BA2E8BA2E8BA3LL * ((*(_QWORD *)(a1 + 16) - v6) >> 3) <= (unsigned long long)a2 )
gguf_get_arr_data_cold_1(a1);
if ( *(_DWORD *)(v6 + 88 * a2 + 36) == 8 )
{
v8 = "ctx->kv[key_id].get_type() != GGUF_TYPE_STRING";
v9 = 776;
LABEL_9:
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp",
v9,
(unsigned int)"GGML_ASSERT(%s) failed",
(_DWORD)v8,
a5,
a6);
}
return *(_QWORD *)(88 * a2 + v6 + 40);
}
| gguf_get_arr_data:
PUSH RAX
TEST RSI,RSI
JS 0x0013e9c3
MOV RAX,qword ptr [RDI + 0x8]
MOV RDX,qword ptr [RDI + 0x10]
SUB RDX,RAX
SAR RDX,0x3
MOV RCX,0x2e8ba2e8ba2e8ba3
IMUL RDX,RCX
CMP RDX,RSI
JLE 0x0013e9c3
MOV RDX,qword ptr [RDI + 0x10]
SUB RDX,RAX
SAR RDX,0x3
IMUL RDX,RCX
CMP RDX,RSI
JBE 0x0013e9be
IMUL RCX,RSI,0x58
CMP dword ptr [RAX + RCX*0x1 + 0x24],0x8
JZ 0x0013e9df
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x28]
POP RCX
RET
LAB_0013e9be:
CALL 0x00119a71
LAB_0013e9c3:
LEA RDI,[0x15cfed]
LEA RDX,[0x14c5c1]
LEA RCX,[0x15d463]
MOV ESI,0x307
JMP 0x0013e9f9
LAB_0013e9df:
LEA RDI,[0x15cfed]
LEA RDX,[0x14c5c1]
LEA RCX,[0x15d4a7]
MOV ESI,0x308
LAB_0013e9f9:
XOR EAX,EAX
CALL 0x00118ce0
|
int8 gguf_get_arr_data(long param_1,ulong param_2)
{
long lVar1;
char *pcVar2;
long lVar3;
ulong uVar4;
int8 uVar5;
if ((-1 < (long)param_2) &&
(lVar1 = *(long *)(param_1 + 8),
lVar3 = (*(long *)(param_1 + 0x10) - lVar1 >> 3) * 0x2e8ba2e8ba2e8ba3,
lVar3 - param_2 != 0 && (long)param_2 <= lVar3)) {
uVar4 = (*(long *)(param_1 + 0x10) - lVar1 >> 3) * 0x2e8ba2e8ba2e8ba3;
if (param_2 <= uVar4 && uVar4 - param_2 != 0) {
if (*(int *)(lVar1 + 0x24 + param_2 * 0x58) != 8) {
return *(int8 *)(lVar1 + param_2 * 0x58 + 0x28);
}
pcVar2 = "ctx->kv[key_id].get_type() != GGUF_TYPE_STRING";
uVar5 = 0x308;
goto LAB_0013e9f9;
}
gguf_get_arr_data_cold_1();
}
pcVar2 = "key_id >= 0 && key_id < gguf_get_n_kv(ctx)";
uVar5 = 0x307;
LAB_0013e9f9:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp",
uVar5,"GGML_ASSERT(%s) failed",pcVar2);
}
| |
28,143 | gguf_get_arr_data | Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp | const void * gguf_get_arr_data(const struct gguf_context * ctx, int64_t key_id) {
GGML_ASSERT(key_id >= 0 && key_id < gguf_get_n_kv(ctx));
GGML_ASSERT(ctx->kv[key_id].get_type() != GGUF_TYPE_STRING);
return ctx->kv[key_id].data.data();
} | O3 | cpp | gguf_get_arr_data:
pushq %rax
testq %rsi, %rsi
js 0x3e206
movq 0x8(%rdi), %rax
movq 0x10(%rdi), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $0x2e8ba2e8ba2e8ba3, %rdx # imm = 0x2E8BA2E8BA2E8BA3
imulq %rcx, %rdx
cmpq %rsi, %rdx
jle 0x3e206
imulq $0x58, %rsi, %rcx
cmpl $0x8, 0x24(%rax,%rcx)
je 0x3e222
addq %rcx, %rax
movq 0x28(%rax), %rax
popq %rcx
retq
leaq 0x1f2d0(%rip), %rdi # 0x5d4dd
leaq 0xe451(%rip), %rdx # 0x4c665
leaq 0x1f738(%rip), %rcx # 0x5d953
movl $0x307, %esi # imm = 0x307
jmp 0x3e23c
leaq 0x1f2b4(%rip), %rdi # 0x5d4dd
leaq 0xe435(%rip), %rdx # 0x4c665
leaq 0x1f760(%rip), %rcx # 0x5d997
movl $0x308, %esi # imm = 0x308
xorl %eax, %eax
callq 0x17cd0
| gguf_get_arr_data:
push rax
test rsi, rsi
js short loc_3E206
mov rax, [rdi+8]
mov rcx, [rdi+10h]
sub rcx, rax
sar rcx, 3
mov rdx, 2E8BA2E8BA2E8BA3h
imul rdx, rcx
cmp rdx, rsi
jle short loc_3E206
imul rcx, rsi, 58h ; 'X'
cmp dword ptr [rax+rcx+24h], 8
jz short loc_3E222
add rax, rcx
mov rax, [rax+28h]
pop rcx
retn
loc_3E206:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aKeyId0KeyIdGgu; "key_id >= 0 && key_id < gguf_get_n_kv(c"...
mov esi, 307h
jmp short loc_3E23C
loc_3E222:
lea rdi, aWorkspaceLlm4b_5; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aCtxKvKeyIdGetT; "ctx->kv[key_id].get_type() != GGUF_TYPE"...
mov esi, 308h
loc_3E23C:
xor eax, eax
call _ggml_abort
| long long gguf_get_arr_data(long long a1, long long a2, long long a3, long long a4, int a5, int a6)
{
long long v6; // rax
const char *v8; // rcx
int v9; // esi
if ( a2 < 0 || (v6 = *(_QWORD *)(a1 + 8), 0x2E8BA2E8BA2E8BA3LL * ((*(_QWORD *)(a1 + 16) - v6) >> 3) <= a2) )
{
v8 = "key_id >= 0 && key_id < gguf_get_n_kv(ctx)";
v9 = 775;
goto LABEL_7;
}
if ( *(_DWORD *)(v6 + 88 * a2 + 36) == 8 )
{
v8 = "ctx->kv[key_id].get_type() != GGUF_TYPE_STRING";
v9 = 776;
LABEL_7:
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp",
v9,
(unsigned int)"GGML_ASSERT(%s) failed",
(_DWORD)v8,
a5,
a6);
}
return *(_QWORD *)(88 * a2 + v6 + 40);
}
| gguf_get_arr_data:
PUSH RAX
TEST RSI,RSI
JS 0x0013e206
MOV RAX,qword ptr [RDI + 0x8]
MOV RCX,qword ptr [RDI + 0x10]
SUB RCX,RAX
SAR RCX,0x3
MOV RDX,0x2e8ba2e8ba2e8ba3
IMUL RDX,RCX
CMP RDX,RSI
JLE 0x0013e206
IMUL RCX,RSI,0x58
CMP dword ptr [RAX + RCX*0x1 + 0x24],0x8
JZ 0x0013e222
ADD RAX,RCX
MOV RAX,qword ptr [RAX + 0x28]
POP RCX
RET
LAB_0013e206:
LEA RDI,[0x15d4dd]
LEA RDX,[0x14c665]
LEA RCX,[0x15d953]
MOV ESI,0x307
JMP 0x0013e23c
LAB_0013e222:
LEA RDI,[0x15d4dd]
LEA RDX,[0x14c665]
LEA RCX,[0x15d997]
MOV ESI,0x308
LAB_0013e23c:
XOR EAX,EAX
CALL 0x00117cd0
|
int8 gguf_get_arr_data(long param_1,long param_2)
{
long lVar1;
char *pcVar2;
long lVar3;
int8 uVar4;
if ((param_2 < 0) ||
(lVar1 = *(long *)(param_1 + 8),
lVar3 = (*(long *)(param_1 + 0x10) - lVar1 >> 3) * 0x2e8ba2e8ba2e8ba3,
lVar3 - param_2 == 0 || lVar3 < param_2)) {
pcVar2 = "key_id >= 0 && key_id < gguf_get_n_kv(ctx)";
uVar4 = 0x307;
}
else {
if (*(int *)(lVar1 + 0x24 + param_2 * 0x58) != 8) {
return *(int8 *)(lVar1 + param_2 * 0x58 + 0x28);
}
pcVar2 = "ctx->kv[key_id].get_type() != GGUF_TYPE_STRING";
uVar4 = 0x308;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/gguf.cpp",
uVar4,"GGML_ASSERT(%s) failed",pcVar2);
}
| |
28,144 | mi_unmap_file | eloqsql/storage/myisam/mi_packrec.c | void _mi_unmap_file(MI_INFO *info)
{
DBUG_ASSERT(info->s->options & HA_OPTION_COMPRESS_RECORD);
(void) my_munmap((char*) info->s->file_map, info->s->mmaped_length);
if (myisam_mmap_size != SIZE_T_MAX)
{
mysql_mutex_lock(&THR_LOCK_myisam_mmap);
myisam_mmap_used-= info->s->mmaped_length;
mysql_mutex_unlock(&THR_LOCK_myisam_mmap);
}
} | O0 | c | mi_unmap_file:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
jmp 0x420fe
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x270(%rax), %rdi
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x4d0(%rax), %rsi
callq 0x28200
leaq 0x1f4fc2(%rip), %rax # 0x2370e8
cmpq $-0x1, (%rax)
je 0x42175
leaq 0x3b6b75(%rip), %rdi # 0x3f8ca8
leaq 0x96682(%rip), %rsi # 0xd87bc
movl $0x61b, %edx # imm = 0x61B
callq 0x41dc0
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq 0x4d0(%rax), %rax
leaq 0x3add57(%rip), %rcx # 0x3efeb0
movq (%rcx), %rcx
subq %rax, %rcx
leaq 0x3add4a(%rip), %rax # 0x3efeb0
movq %rcx, (%rax)
leaq 0x3b6b38(%rip), %rdi # 0x3f8ca8
callq 0x41e30
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| _mi_unmap_file:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
jmp short $+2
loc_420FE:
mov rax, [rbp+var_8]
mov rax, [rax]
mov rdi, [rax+270h]
mov rax, [rbp+var_8]
mov rax, [rax]
mov rsi, [rax+4D0h]
call _munmap
lea rax, myisam_mmap_size
cmp qword ptr [rax], 0FFFFFFFFFFFFFFFFh
jz short loc_42175
lea rdi, THR_LOCK_myisam_mmap
lea rsi, aWorkspaceLlm4b_7; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 61Bh
call inline_mysql_mutex_lock_6
mov rax, [rbp+var_8]
mov rax, [rax]
mov rax, [rax+4D0h]
lea rcx, myisam_mmap_used
mov rcx, [rcx]
sub rcx, rax
lea rax, myisam_mmap_used
mov [rax], rcx
lea rdi, THR_LOCK_myisam_mmap
call inline_mysql_mutex_unlock_6
loc_42175:
add rsp, 10h
pop rbp
retn
| _QWORD * mi_unmap_file(long long a1)
{
_QWORD *result; // rax
munmap(*(_QWORD *)(*(_QWORD *)a1 + 624LL), *(_QWORD *)(*(_QWORD *)a1 + 1232LL));
result = &myisam_mmap_size;
if ( myisam_mmap_size != -1LL )
{
inline_mysql_mutex_lock_6(
(long long)&THR_LOCK_myisam_mmap,
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_packrec.c",
0x61Bu);
myisam_mmap_used -= *(_QWORD *)(*(_QWORD *)a1 + 1232LL);
return (_QWORD *)inline_mysql_mutex_unlock_6((long long)&THR_LOCK_myisam_mmap);
}
return result;
}
| _mi_unmap_file:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
JMP 0x001420fe
LAB_001420fe:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x270]
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x4d0]
CALL 0x00128200
LEA RAX,[0x3370e8]
CMP qword ptr [RAX],-0x1
JZ 0x00142175
LEA RDI,[0x4f8ca8]
LEA RSI,[0x1d87bc]
MOV EDX,0x61b
CALL 0x00141dc0
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x4d0]
LEA RCX,[0x4efeb0]
MOV RCX,qword ptr [RCX]
SUB RCX,RAX
LEA RAX,[0x4efeb0]
MOV qword ptr [RAX],RCX
LEA RDI,[0x4f8ca8]
CALL 0x00141e30
LAB_00142175:
ADD RSP,0x10
POP RBP
RET
|
void _mi_unmap_file(long *param_1)
{
munmap(*(void **)(*param_1 + 0x270),*(size_t *)(*param_1 + 0x4d0));
if (myisam_mmap_size != -1) {
inline_mysql_mutex_lock
(THR_LOCK_myisam_mmap,
"/workspace/llm4binary/github2025/eloqsql/storage/myisam/mi_packrec.c",0x61b);
myisam_mmap_used = myisam_mmap_used - *(long *)(*param_1 + 0x4d0);
inline_mysql_mutex_unlock(THR_LOCK_myisam_mmap);
}
return;
}
| |
28,145 | llama_state_seq_set_data | monkey531[P]llama/src/llama-context.cpp | size_t llama_state_seq_set_data(struct llama_context * ctx, const uint8_t * src, size_t size, llama_seq_id dest_seq_id) {
llama_data_read_buffer data_ctx(src, size);
try {
return llama_state_seq_set_data_internal(ctx, data_ctx, dest_seq_id);
} catch (const std::exception & err) {
LLAMA_LOG_ERROR("%s: error loading sequence state: %s\n", __func__, err.what());
return 0;
}
} | O2 | cpp | llama_state_seq_set_data:
pushq %rbx
subq $0x20, %rsp
movq 0xc1874(%rip), %r8 # 0x199e60
addq $0x10, %r8
movq %rsp, %rax
movq %r8, (%rax)
movq %rsi, 0x8(%rax)
movq %rdx, 0x10(%rax)
andq $0x0, 0x18(%rax)
movq %rax, %rsi
movl %ecx, %edx
callq 0xd8668
addq $0x20, %rsp
popq %rbx
retq
movq %rax, %rbx
cmpl $0x1, %edx
jne 0xd8658
movq %rbx, %rdi
callq 0x9d760
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
leaq 0x6a461(%rip), %rsi # 0x142a94
leaq 0x6a480(%rip), %rdx # 0x142aba
pushq $0x4
popq %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0xa16d0
callq 0xa6400
xorl %eax, %eax
jmp 0xd860d
movq %rax, %rbx
callq 0xa6400
movq %rbx, %rdi
callq 0xa7540
movq %rax, %rdi
callq 0xb133d
| llama_state_seq_set_data:
push rbx
sub rsp, 20h
mov r8, cs:_ZTV22llama_data_read_buffer_ptr
add r8, 10h
mov rax, rsp
mov [rax], r8
mov [rax+8], rsi
mov [rax+10h], rdx
and qword ptr [rax+18h], 0
mov rsi, rax; this
mov edx, ecx; int
call _ZL33llama_state_seq_set_data_internalP13llama_contextR15llama_data_readi; llama_state_seq_set_data_internal(llama_context *,llama_data_read &,int)
loc_D860D:
add rsp, 20h
pop rbx
retn
mov rbx, rax
cmp edx, 1
jnz short loc_D8658
mov rdi, rbx; void *
call ___cxa_begin_catch
mov rcx, [rax]
mov rdi, rax
call qword ptr [rcx+10h]
lea rsi, aSErrorLoadingS_1; "%s: error loading sequence state: %s\n"
lea rdx, aLlamaStateSeqS_1; "llama_state_seq_set_data"
push 4
pop rdi
mov rcx, rax
xor eax, eax
call __Z18llama_log_internal14ggml_log_levelPKcz; llama_log_internal(ggml_log_level,char const*,...)
call ___cxa_end_catch
xor eax, eax
jmp short loc_D860D
mov rbx, rax
call ___cxa_end_catch
loc_D8658:
mov rdi, rbx
call __Unwind_Resume
mov rdi, rax
call __clang_call_terminate
| long long llama_state_seq_set_data(llama_context *a1, long long a2, long long a3, int a4)
{
_QWORD v5[5]; // [rsp+0h] [rbp-28h] BYREF
v5[0] = &`vtable for'llama_data_read_buffer + 2;
v5[1] = a2;
v5[2] = a3;
v5[3] = 0LL;
return llama_state_seq_set_data_internal(a1, (llama_data_read *)v5, a4);
}
| llama_state_seq_set_data:
PUSH RBX
SUB RSP,0x20
MOV R8,qword ptr [0x00299e60]
ADD R8,0x10
MOV RAX,RSP
MOV qword ptr [RAX],R8
MOV qword ptr [RAX + 0x8],RSI
MOV qword ptr [RAX + 0x10],RDX
AND qword ptr [RAX + 0x18],0x0
LAB_001d8603:
MOV RSI,RAX
MOV EDX,ECX
CALL 0x001d8668
LAB_001d860d:
ADD RSP,0x20
POP RBX
RET
|
void llama_state_seq_set_data
(llama_context *param_1,int8 param_2,int8 param_3,int param_4)
{
int *local_28;
int8 local_20;
int8 local_18;
int8 local_10;
local_28 = PTR_vtable_00299e60 + 0x10;
local_10 = 0;
local_20 = param_2;
local_18 = param_3;
/* try { // try from 001d8603 to 001d860c has its CatchHandler @ 001d8613 */
llama_state_seq_set_data_internal(param_1,(llama_data_read *)&local_28,param_4);
return;
}
| |
28,146 | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> CLI::detail::rjoin<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) | MikePodsytnik[P]TCRtrie/build_O1/_deps/cli11-src/include/CLI/StringTools.hpp | std::string rjoin(const T &v, std::string delim = ",") {
std::ostringstream s;
for(std::size_t start = 0; start < v.size(); start++) {
if(start > 0)
s << delim;
s << v[v.size() - start - 1];
}
return s.str();
} | O1 | cpp | std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> CLI::detail::rjoin<std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, 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 $0x178, %rsp # imm = 0x178
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rsp, %rdi
callq 0x7580
movq 0x8(%r15), %rax
cmpq (%r15), %rax
je 0x24325
movq $-0x20, %r13
xorl %ebp, %ebp
movq %rsp, %r12
testq %rbp, %rbp
je 0x242f9
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r12, %rdi
callq 0x74b0
movq 0x8(%r15), %rax
movq (%rax,%r13), %rsi
movq 0x8(%rax,%r13), %rdx
movq %r12, %rdi
callq 0x74b0
movq 0x8(%r15), %rax
subq (%r15), %rax
incq %rbp
sarq $0x5, %rax
addq $-0x20, %r13
cmpq %rax, %rbp
jb 0x242e5
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x7680
movq 0x25c57(%rip), %rsi # 0x49f90
movq %rsp, %rdi
callq 0x7200
leaq 0x70(%rsp), %rdi
callq 0x7150
movq %rbx, %rax
addq $0x178, %rsp # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x24362
movq %rax, %rbx
movq 0x25c24(%rip), %rsi # 0x49f90
movq %rsp, %rdi
callq 0x7200
leaq 0x70(%rsp), %rdi
callq 0x7150
movq %rbx, %rdi
callq 0x7780
| _ZN3CLI6detail5rjoinISt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EEEES8_RKT_S8_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 178h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov rdi, rsp
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void)
mov rax, [r15+8]
cmp rax, [r15]
jz short loc_24325
mov r13, 0FFFFFFFFFFFFFFE0h
xor ebp, ebp
mov r12, rsp
loc_242E5:
test rbp, rbp
jz short loc_242F9
mov rsi, [r14]
mov rdx, [r14+8]
mov rdi, r12
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
loc_242F9:
mov rax, [r15+8]
mov rsi, [rax+r13]
mov rdx, [rax+r13+8]
mov rdi, r12
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rax, [r15+8]
sub rax, [r15]
inc rbp
sar rax, 5
add r13, 0FFFFFFFFFFFFFFE0h
cmp rbp, rax
jb short loc_242E5
loc_24325:
lea rsi, [rsp+1A8h+var_1A0]
mov rdi, rbx
call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void)
mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr
mov rdi, rsp
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream()
lea rdi, [rsp+1A8h+var_138]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rax, rbx
add rsp, 178h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_24362:
mov rbx, rax
mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr
mov rdi, rsp
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream()
lea rdi, [rsp+arg_68]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rdi, rbx
call __Unwind_Resume
| long long CLI::detail::rjoin<std::vector<std::string>>(long long a1, _QWORD *a2, _QWORD *a3)
{
long long v4; // r13
unsigned long long v5; // rbp
long long v7; // [rsp+0h] [rbp-1A8h] BYREF
_BYTE v8[104]; // [rsp+8h] [rbp-1A0h] BYREF
_BYTE v9[312]; // [rsp+70h] [rbp-138h] BYREF
std::ostringstream::basic_ostringstream(&v7);
if ( a2[1] != *a2 )
{
v4 = -32LL;
v5 = 0LL;
do
{
if ( v5 )
std::__ostream_insert<char,std::char_traits<char>>(&v7, *a3, a3[1]);
std::__ostream_insert<char,std::char_traits<char>>(&v7, *(_QWORD *)(a2[1] + v4), *(_QWORD *)(a2[1] + v4 + 8));
++v5;
v4 -= 32LL;
}
while ( v5 < (long long)(a2[1] - *a2) >> 5 );
}
std::stringbuf::str(a1, v8);
std::ostringstream::~ostringstream(&v7, &`VTT for'std::ostringstream);
std::ios_base::~ios_base((std::ios_base *)v9);
return a1;
}
| rjoin<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x178
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV RDI,RSP
CALL 0x00107580
MOV RAX,qword ptr [R15 + 0x8]
CMP RAX,qword ptr [R15]
JZ 0x00124325
MOV R13,-0x20
XOR EBP,EBP
MOV R12,RSP
LAB_001242e5:
TEST RBP,RBP
JZ 0x001242f9
MOV RSI,qword ptr [R14]
MOV RDX,qword ptr [R14 + 0x8]
LAB_001242f1:
MOV RDI,R12
CALL 0x001074b0
LAB_001242f9:
MOV RAX,qword ptr [R15 + 0x8]
MOV RSI,qword ptr [RAX + R13*0x1]
MOV RDX,qword ptr [RAX + R13*0x1 + 0x8]
MOV RDI,R12
CALL 0x001074b0
MOV RAX,qword ptr [R15 + 0x8]
SUB RAX,qword ptr [R15]
INC RBP
SAR RAX,0x5
ADD R13,-0x20
CMP RBP,RAX
JC 0x001242e5
LAB_00124325:
LEA RSI,[RSP + 0x8]
LAB_0012432a:
MOV RDI,RBX
CALL 0x00107680
LAB_00124332:
MOV RSI,qword ptr [0x00149f90]
MOV RDI,RSP
CALL 0x00107200
LEA RDI,[RSP + 0x70]
CALL 0x00107150
MOV RAX,RBX
ADD RSP,0x178
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* std::__cxx11::string CLI::detail::rjoin<std::vector<std::__cxx11::string,
std::allocator<std::__cxx11::string > > >(std::vector<std::__cxx11::string,
std::allocator<std::__cxx11::string > > const&, std::__cxx11::string) */
detail * __thiscall
CLI::detail::rjoin<std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>
(detail *this,long *param_1,int8 *param_3)
{
ulong uVar1;
long lVar2;
ostringstream aoStack_1a8 [112];
ios_base local_138 [264];
std::__cxx11::ostringstream::ostringstream(aoStack_1a8);
if (param_1[1] != *param_1) {
lVar2 = -0x20;
uVar1 = 0;
do {
if (uVar1 != 0) {
/* try { // try from 001242f1 to 0012430d has its CatchHandler @ 00124362 */
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)aoStack_1a8,(char *)*param_3,param_3[1]);
}
std::__ostream_insert<char,std::char_traits<char>>
((ostream *)aoStack_1a8,*(char **)(param_1[1] + lVar2),
*(long *)(param_1[1] + 8 + lVar2));
uVar1 = uVar1 + 1;
lVar2 = lVar2 + -0x20;
} while (uVar1 < (ulong)(param_1[1] - *param_1 >> 5));
}
/* try { // try from 0012432a to 00124331 has its CatchHandler @ 00124360 */
std::__cxx11::stringbuf::str();
std::__cxx11::ostringstream::~ostringstream(aoStack_1a8);
std::ios_base::~ios_base(local_138);
return this;
}
| |
28,147 | testing::internal::StreamingListener::OnTestIterationStart(testing::UnitTest const&, int) | seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/src/gtest-internal-inl.h | void OnTestIterationStart(const UnitTest& /* unit_test */,
int iteration) override {
SendLn("event=TestIterationStart&iteration=" +
StreamableToString(iteration));
} | O1 | c | testing::internal::StreamingListener::OnTestIterationStart(testing::UnitTest const&, int):
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %rbx
leaq 0x24(%rsp), %rsi
movl %edx, (%rsi)
leaq 0x28(%rsp), %r14
movq %r14, %rdi
callq 0x35203
leaq 0x95f5(%rip), %rcx # 0x44704
movl $0x23, %r8d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x9580
leaq 0x10(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x3b147
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x3b14e
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rsp, %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rbx), %rdi
callq 0x3c7ae
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x3b187
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x94c0
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3b1a2
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x94c0
addq $0x48, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x3b1c8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x94c0
jmp 0x3b1c8
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3b1e3
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x94c0
movq %rbx, %rdi
callq 0x99a0
nop
| _ZN7testing8internal17StreamingListener20OnTestIterationStartERKNS_8UnitTestEi:
push r14
push rbx
sub rsp, 48h
mov rbx, rdi
lea rsi, [rsp+58h+var_34]
mov [rsi], edx
lea r14, [rsp+58h+var_30]
mov rdi, r14
call _ZN7testing8internal18StreamableToStringIiEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; testing::internal::StreamableToString<int>(int const&)
lea rcx, aEventTestitera; "event=TestIterationStart&iteration="
mov r8d, 23h ; '#'
mov rdi, r14
xor esi, esi
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong)
lea r14, [rsp+58h+var_48]
mov [r14-10h], r14
mov rdx, [rax]
mov rcx, rax
add rcx, 10h
cmp rdx, rcx
jz short loc_3B147
mov [rsp+58h+var_58], rdx
mov rdx, [rcx]
mov [rsp+58h+var_48], rdx
jmp short loc_3B14E
loc_3B147:
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [r14], xmm0
loc_3B14E:
mov rdx, [rax+8]
mov rsi, rsp
mov [rsi+8], rdx
mov [rax], rcx
mov qword ptr [rax+8], 0
mov byte ptr [rax+10h], 0
mov rdi, [rbx+8]
call _ZN7testing8internal17StreamingListener20AbstractSocketWriter6SendLnERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::StreamingListener::AbstractSocketWriter::SendLn(std::string const&)
mov rdi, [rsp+58h+var_58]; void *
cmp rdi, r14
jz short loc_3B187
mov rsi, [rsp+58h+var_48]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3B187:
lea rax, [rsp+58h+var_20]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3B1A2
mov rsi, [rsp+58h+var_20]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3B1A2:
add rsp, 48h
pop rbx
pop r14
retn
mov rbx, rax
mov rdi, [rsp+0]; void *
cmp rdi, r14
jz short loc_3B1C8
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_3B1C8
mov rbx, rax
loc_3B1C8:
lea rax, [rsp+arg_30]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_3B1E3
mov rsi, [rsp+arg_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_3B1E3:
mov rdi, rbx
call __Unwind_Resume
| void testing::internal::StreamingListener::OnTestIterationStart(
testing::internal::StreamingListener *this,
const testing::UnitTest *a2,
unsigned int a3)
{
long long v3; // rax
int v4; // r8d
int v5; // r9d
__int128 *v6; // rcx
int v7; // edx
void *v8; // [rsp+0h] [rbp-58h] BYREF
long long v9; // [rsp+8h] [rbp-50h]
__int128 v10; // [rsp+10h] [rbp-48h] BYREF
unsigned int v11; // [rsp+24h] [rbp-34h] BYREF
void *v12[2]; // [rsp+28h] [rbp-30h] BYREF
long long v13; // [rsp+38h] [rbp-20h] BYREF
v11 = a3;
testing::internal::StreamableToString<int>((long long)v12, &v11);
v3 = std::string::replace(v12, 0LL, 0LL);
v8 = &v10;
v6 = (__int128 *)(v3 + 16);
if ( *(_QWORD *)v3 == v3 + 16 )
{
v10 = *v6;
}
else
{
v8 = *(void **)v3;
*(_QWORD *)&v10 = *(_QWORD *)v6;
}
v9 = *(_QWORD *)(v3 + 8);
v7 = v9;
*(_QWORD *)v3 = v6;
*(_QWORD *)(v3 + 8) = 0LL;
*(_BYTE *)(v3 + 16) = 0;
testing::internal::StreamingListener::AbstractSocketWriter::SendLn(
*((_QWORD *)this + 1),
(unsigned int)&v8,
v7,
(_DWORD)v6,
v4,
v5,
(_DWORD)v8,
v9);
if ( v8 != &v10 )
operator delete(v8, v10 + 1);
if ( v12[0] != &v13 )
operator delete(v12[0], v13 + 1);
}
| OnTestIterationStart:
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV RBX,RDI
LEA RSI,[RSP + 0x24]
MOV dword ptr [RSI],EDX
LEA R14,[RSP + 0x28]
MOV RDI,R14
CALL 0x00135203
LAB_0013b108:
LEA RCX,[0x144704]
MOV R8D,0x23
MOV RDI,R14
XOR ESI,ESI
XOR EDX,EDX
CALL 0x00109580
LEA R14,[RSP + 0x10]
MOV qword ptr [R14 + -0x10],R14
MOV RDX,qword ptr [RAX]
MOV RCX,RAX
ADD RCX,0x10
CMP RDX,RCX
JZ 0x0013b147
MOV qword ptr [RSP],RDX
MOV RDX,qword ptr [RCX]
MOV qword ptr [RSP + 0x10],RDX
JMP 0x0013b14e
LAB_0013b147:
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [R14],XMM0
LAB_0013b14e:
MOV RDX,qword ptr [RAX + 0x8]
MOV RSI,RSP
MOV qword ptr [RSI + 0x8],RDX
MOV qword ptr [RAX],RCX
MOV qword ptr [RAX + 0x8],0x0
MOV byte ptr [RAX + 0x10],0x0
MOV RDI,qword ptr [RBX + 0x8]
LAB_0013b16c:
CALL 0x0013c7ae
LAB_0013b171:
MOV RDI,qword ptr [RSP]
CMP RDI,R14
JZ 0x0013b187
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x001094c0
LAB_0013b187:
LEA RAX,[RSP + 0x38]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0013b1a2
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x001094c0
LAB_0013b1a2:
ADD RSP,0x48
POP RBX
POP R14
RET
|
/* testing::internal::StreamingListener::OnTestIterationStart(testing::UnitTest const&, int) */
void __thiscall
testing::internal::StreamingListener::OnTestIterationStart
(StreamingListener *this,UnitTest *param_1,int param_2)
{
long *plVar1;
long *plVar2;
long *local_58;
long local_50;
long local_48;
long lStack_40;
int local_34;
long *local_30 [2];
long local_20 [2];
local_34 = param_2;
StreamableToString<int>((internal *)local_30,&local_34);
/* try { // try from 0013b108 to 0013b120 has its CatchHandler @ 0013b1c5 */
plVar1 = (long *)std::__cxx11::string::replace((ulong)local_30,0,(char *)0x0,0x144704);
plVar2 = plVar1 + 2;
if ((long *)*plVar1 == plVar2) {
local_48 = *plVar2;
lStack_40 = plVar1[3];
local_58 = &local_48;
}
else {
local_48 = *plVar2;
local_58 = (long *)*plVar1;
}
local_50 = plVar1[1];
*plVar1 = (long)plVar2;
plVar1[1] = 0;
*(int1 *)(plVar1 + 2) = 0;
/* try { // try from 0013b16c to 0013b170 has its CatchHandler @ 0013b1aa */
AbstractSocketWriter::SendLn(*(AbstractSocketWriter **)(this + 8),(string *)&local_58);
if (local_58 != &local_48) {
operator_delete(local_58,local_48 + 1);
}
if (local_30[0] != local_20) {
operator_delete(local_30[0],local_20[0] + 1);
}
return;
}
| |
28,148 | my_uca_previous_context_find | eloqsql/strings/ctype-uca.c | static const MY_CONTRACTION *
my_uca_previous_context_find(my_uca_scanner *scanner,
my_wc_t wc0, my_wc_t wc1)
{
const MY_CONTRACTIONS *list= &scanner->level->contractions;
MY_CONTRACTION *c, *last;
for (c= list->item, last= c + list->nitems; c < last; c++)
{
if (c->with_context && wc0 == c->ch[0] && wc1 == c->ch[1])
{
scanner->wbeg= c->weight + 1;
return c;
}
}
return NULL;
} | O0 | c | my_uca_previous_context_find:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
addq $0x18, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq -0x28(%rbp), %rcx
imulq $0x58, (%rcx), %rcx
addq %rcx, %rax
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0xafaee
movq -0x30(%rbp), %rax
movsbl 0x52(%rax), %eax
cmpl $0x0, %eax
je 0xafade
movq -0x18(%rbp), %rax
movq -0x30(%rbp), %rcx
cmpq (%rcx), %rax
jne 0xafade
movq -0x20(%rbp), %rax
movq -0x30(%rbp), %rcx
cmpq 0x8(%rcx), %rax
jne 0xafade
movq -0x30(%rbp), %rcx
addq $0x30, %rcx
addq $0x2, %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
jmp 0xafaf6
jmp 0xafae0
movq -0x30(%rbp), %rax
addq $0x58, %rax
movq %rax, -0x30(%rbp)
jmp 0xafa8f
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
popq %rbp
retq
nopl (%rax)
| my_uca_previous_context_find:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_10]
mov rax, [rax+18h]
add rax, 18h
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov rax, [rax+8]
mov [rbp+var_30], rax
mov rax, [rbp+var_30]
mov rcx, [rbp+var_28]
imul rcx, [rcx], 58h ; 'X'
add rax, rcx
mov [rbp+var_38], rax
loc_AFA8F:
mov rax, [rbp+var_30]
cmp rax, [rbp+var_38]
jnb short loc_AFAEE
mov rax, [rbp+var_30]
movsx eax, byte ptr [rax+52h]
cmp eax, 0
jz short loc_AFADE
mov rax, [rbp+var_18]
mov rcx, [rbp+var_30]
cmp rax, [rcx]
jnz short loc_AFADE
mov rax, [rbp+var_20]
mov rcx, [rbp+var_30]
cmp rax, [rcx+8]
jnz short loc_AFADE
mov rcx, [rbp+var_30]
add rcx, 30h ; '0'
add rcx, 2
mov rax, [rbp+var_10]
mov [rax], rcx
mov rax, [rbp+var_30]
mov [rbp+var_8], rax
jmp short loc_AFAF6
loc_AFADE:
jmp short $+2
loc_AFAE0:
mov rax, [rbp+var_30]
add rax, 58h ; 'X'
mov [rbp+var_30], rax
jmp short loc_AFA8F
loc_AFAEE:
mov [rbp+var_8], 0
loc_AFAF6:
mov rax, [rbp+var_8]
pop rbp
retn
| unsigned long long my_uca_previous_context_find(_QWORD *a1, long long a2, long long a3)
{
unsigned long long v4; // [rsp+0h] [rbp-38h]
unsigned long long v5; // [rsp+8h] [rbp-30h]
v5 = *(_QWORD *)(a1[3] + 32LL);
v4 = 88LL * *(_QWORD *)(a1[3] + 24LL) + v5;
while ( v5 < v4 )
{
if ( *(_BYTE *)(v5 + 82) && a2 == *(_QWORD *)v5 && a3 == *(_QWORD *)(v5 + 8) )
{
*a1 = v5 + 50;
return v5;
}
v5 += 88LL;
}
return 0LL;
}
| my_uca_previous_context_find:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
ADD RAX,0x18
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x28]
IMUL RCX,qword ptr [RCX],0x58
ADD RAX,RCX
MOV qword ptr [RBP + -0x38],RAX
LAB_001afa8f:
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x001afaee
MOV RAX,qword ptr [RBP + -0x30]
MOVSX EAX,byte ptr [RAX + 0x52]
CMP EAX,0x0
JZ 0x001afade
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RCX]
JNZ 0x001afade
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RCX + 0x8]
JNZ 0x001afade
MOV RCX,qword ptr [RBP + -0x30]
ADD RCX,0x30
ADD RCX,0x2
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001afaf6
LAB_001afade:
JMP 0x001afae0
LAB_001afae0:
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0x58
MOV qword ptr [RBP + -0x30],RAX
JMP 0x001afa8f
LAB_001afaee:
MOV qword ptr [RBP + -0x8],0x0
LAB_001afaf6:
MOV RAX,qword ptr [RBP + -0x8]
POP RBP
RET
|
long * my_uca_previous_context_find(long *param_1,long param_2,long param_3)
{
long *plVar1;
long *local_38;
local_38 = *(long **)(param_1[3] + 0x20);
plVar1 = local_38 + *(long *)(param_1[3] + 0x18) * 0xb;
while( true ) {
if (plVar1 <= local_38) {
return (long *)0x0;
}
if (((*(char *)((long)local_38 + 0x52) != '\0') && (param_2 == *local_38)) &&
(param_3 == local_38[1])) break;
local_38 = local_38 + 0xb;
}
*param_1 = (long)local_38 + 0x32;
return local_38;
}
| |
28,149 | void sdflib::VHQueries<sdflib::TriCubicInterpolation>::calculateVerticesInfo<19ul>(glm::tvec3<float, (glm::precision)0>, float, std::vector<unsigned int, std::allocator<unsigned int>> const&, std::array<glm::tvec3<float, (glm::precision)0>, 19ul> const&, unsigned int, std::array<float, 64ul> const&, std::array<std::array<float, 8ul>, 19ul>&, std::array<unsigned int, 19ul>&, sdflib::Mesh const&, std::vector<sdflib::TriangleUtils::TriangleData, std::allocator<sdflib::TriangleUtils::TriangleData>> const&) | aimrt_mujoco_sim/_deps/sdflib-src/include/SdfLib/TrianglesInfluence.h | inline void calculateVerticesInfo(const glm::vec3 nodeCenter, const float nodeHalfSize,
const std::vector<uint32_t>& triangles,
const std::array<glm::vec3, N>& pointsRelPos,
const uint32_t pointToInterpolateMask,
const std::array<float, InterpolationMethod::NUM_COEFFICIENTS>& interpolationCoeff,
std::array<std::array<float, InterpolationMethod::VALUES_PER_VERTEX>, N>& outPointsValues,
std::array<VertexInfo, N>& outPointsInfo,
const Mesh& mesh, const std::vector<TriangleUtils::TriangleData>& trianglesData)
{
if(icg == nullptr)
{
icg = std::make_shared<ICG>(mesh);
}
std::array<glm::vec3, N> inPoints;
for(uint32_t i=0; i < N; i++)
{
if(pointToInterpolateMask & (1 << (N-i-1)))
{
InterpolationMethod::interpolateVertexValues(interpolationCoeff, 0.5f * pointsRelPos[i] + 0.5f, 2.0f * nodeHalfSize, outPointsValues[i]);
}
else
{
inPoints[i] = nodeCenter + pointsRelPos[i] * nodeHalfSize;
const glm::uvec3 pointId = glm::uvec3(glm::round((inPoints[i] - minPoint) * coordToId));
const uint32_t cacheId = ((pointId.z & CACHE_AXIS_MASK) << (2*CACHE_AXIS_POWER)) |
((pointId.y & CACHE_AXIS_MASK) << CACHE_AXIS_POWER) |
(pointId.x & CACHE_AXIS_MASK);
if(vertexInfoCache[cacheId].first == pointId)
{
outPointsInfo[i] = vertexInfoCache[cacheId].second;
}
else
{
outPointsInfo[i] = icg->getNearestTriangle(inPoints[i]);
vertexInfoCache[cacheId] = std::make_pair(pointId, outPointsInfo[i]);
}
InterpolationMethod::calculatePointValues(inPoints[i], outPointsInfo[i], mesh, trianglesData, outPointsValues[i]);
}
}
} | O3 | c | void sdflib::VHQueries<sdflib::TriCubicInterpolation>::calculateVerticesInfo<19ul>(glm::tvec3<float, (glm::precision)0>, float, std::vector<unsigned int, std::allocator<unsigned int>> const&, std::array<glm::tvec3<float, (glm::precision)0>, 19ul> const&, unsigned int, std::array<float, 64ul> const&, std::array<std::array<float, 8ul>, 19ul>&, std::array<unsigned int, 19ul>&, sdflib::Mesh const&, std::vector<sdflib::TriangleUtils::TriangleData, std::allocator<sdflib::TriangleUtils::TriangleData>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %r9, %r13
movq %r8, 0x68(%rsp)
movl %ecx, %r14d
movq %rdx, %r15
movss %xmm1, 0x14(%rsp)
movaps %xmm0, 0xb0(%rsp)
movq %rdi, 0x8(%rsp)
cmpq $0x0, 0x40(%rdi)
movq %r9, 0x20(%rsp)
movaps %xmm2, 0x70(%rsp)
jne 0x22ad4
leaq 0x38(%rsp), %rdi
movq $0x0, -0x8(%rdi)
leaq 0x30(%rsp), %r13
leaq 0x80(%rsp), %rdx
movq %r13, %rsi
movq 0x128(%rsp), %rcx
callq 0x1e38a
movaps (%r13), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, (%r13)
movq 0x8(%rsp), %rax
movq 0x48(%rax), %rdi
movups %xmm0, 0x40(%rax)
testq %rdi, %rdi
je 0x22aca
callq 0x1b08a
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x22aca
callq 0x1b08a
movq 0x20(%rsp), %r13
movaps 0x70(%rsp), %xmm2
movq 0x120(%rsp), %r12
movaps %xmm2, %xmm0
addss %xmm2, %xmm0
movaps %xmm0, 0xd0(%rsp)
movaps %xmm2, %xmm0
shufps $0x0, %xmm2, %xmm0 # xmm0 = xmm0[0,0],xmm2[0,0]
movaps %xmm0, 0xa0(%rsp)
addq $0x8, %r15
movl $0x12, %ebp
xorl %ebx, %ebx
leaq 0x30(%rsp), %rsi
movl %r14d, 0x4(%rsp)
btl %ebp, %r14d
movsd -0x8(%r15), %xmm9
movss (%r15), %xmm8
jae 0x22b65
movss 0x27b88(%rip), %xmm0 # 0x4a6b0
mulss %xmm0, %xmm8
movaps 0x28a7c(%rip), %xmm1 # 0x4b5b0
mulps %xmm1, %xmm9
addps %xmm1, %xmm9
addss %xmm0, %xmm8
leaq (%r13,%rbx), %rsi
movq 0x68(%rsp), %rdi
movaps %xmm9, %xmm0
movaps %xmm8, %xmm1
movaps 0xd0(%rsp), %xmm2
callq 0x1b9c2
jmp 0x22df0
mulps 0xa0(%rsp), %xmm9
addps 0xb0(%rsp), %xmm9
movq 0x8(%rsp), %rax
movsd 0x34(%rax), %xmm0
movaps %xmm9, %xmm1
subps %xmm0, %xmm1
movsd 0x28(%rax), %xmm0
mulps %xmm1, %xmm0
movaps %xmm0, %xmm1
cmpltps 0x28a05(%rip), %xmm1 # 0x4b5a0
unpcklps %xmm1, %xmm1 # xmm1 = xmm1[0,0,1,1]
movmskpd %xmm1, %eax
movss 0x27b22(%rip), %xmm1 # 0x4a6cc
testb $0x1, %al
jne 0x22bb6
movss 0x27afa(%rip), %xmm1 # 0x4a6b0
movq %r12, 0x28(%rsp)
movss 0x27b09(%rip), %xmm4 # 0x4a6cc
testb $0x2, %al
jne 0x22bcf
movss 0x27ae1(%rip), %xmm4 # 0x4a6b0
mulss %xmm2, %xmm8
addss 0x14(%rsp), %xmm8
movaps %xmm8, %xmm3
movq 0x8(%rsp), %r8
subss 0x3c(%r8), %xmm3
mulss 0x30(%r8), %xmm3
addss %xmm0, %xmm1
cvttss2si %xmm1, %edx
shufps $0x55, %xmm0, %xmm0 # xmm0 = xmm0[1,1,1,1]
addss %xmm4, %xmm0
movaps %xmm3, %xmm1
cmpltss 0x27ac4(%rip), %xmm1 # 0x4a6d0
movaps %xmm1, %xmm2
movss 0x27ab5(%rip), %xmm4 # 0x4a6cc
andps %xmm4, %xmm2
movss 0x27a8e(%rip), %xmm4 # 0x4a6b0
andnps %xmm4, %xmm1
orps %xmm2, %xmm1
addss %xmm3, %xmm1
cvttss2si %xmm1, %r10d
movl 0x4(%r8), %eax
movl 0x8(%r8), %r12d
movl %r12d, %r9d
andl %r10d, %r9d
leal (%rax,%rax), %ecx
shll %cl, %r9d
cvttss2si %xmm0, %r14d
movl %r12d, %edi
andl %r14d, %edi
movl %eax, %ecx
shll %cl, %edi
andl %edx, %r12d
orl %edi, %r12d
orl %r9d, %r12d
movq 0x10(%r8), %rax
shlq $0x4, %r12
cmpl %edx, (%rax,%r12)
jne 0x22c8b
addq %r12, %rax
cmpl %r14d, 0x4(%rax)
jne 0x22c8b
cmpl %r10d, 0x8(%rax)
jne 0x22c8b
movl 0xc(%rax), %eax
movq 0x28(%rsp), %r12
movl %eax, (%r12)
jmp 0x22d3c
shlq $0x20, %r14
orq %rdx, %r14
cvtps2pd %xmm9, %xmm0
movq %r15, 0x60(%rsp)
movq 0x8(%rsp), %r15
movq 0x40(%r15), %r13
movaps %xmm0, 0x80(%rsp)
xorps %xmm0, %xmm0
cvtss2sd %xmm8, %xmm0
movsd %xmm0, 0x90(%rsp)
movq %rsi, %rdi
movq %r13, %rsi
leaq 0x80(%rsp), %rdx
movss %xmm8, 0x1c(%rsp)
movaps %xmm9, 0xc0(%rsp)
movl %r10d, 0x18(%rsp)
callq 0x2140e
movaps 0xc0(%rsp), %xmm9
movss 0x1c(%rsp), %xmm8
leaq 0x30(%rsp), %rsi
movl $0x0, 0xc0(%r13)
incq 0xb8(%r13)
movq 0x20(%rsp), %r13
movl 0x54(%rsp), %eax
movq 0x28(%rsp), %rdx
movl %eax, (%rdx)
movq 0x10(%r15), %rcx
movq 0x60(%rsp), %r15
movq %r14, (%rcx,%r12)
movl 0x18(%rsp), %edi
movl %edi, 0x8(%rcx,%r12)
movl %eax, 0xc(%rcx,%r12)
movq %rdx, %r12
movl (%rdx), %eax
movl 0x4(%rsp), %r14d
movq $0x0, 0x30(%rsp)
movl $0x0, 0x38(%rsp)
movl %eax, %ecx
imulq $0x94, %rcx, %rdi
movq 0x130(%rsp), %rcx
addq (%rcx), %rdi
leal (%rax,%rax,2), %ecx
movq 0x128(%rsp), %r8
movq (%r8), %rdx
movq 0x18(%r8), %r8
movl (%r8,%rcx,4), %ecx
leaq (%rcx,%rcx,2), %rcx
movsd (%rdx,%rcx,4), %xmm2
movss 0x8(%rdx,%rcx,4), %xmm3
leal 0x1(%rax,%rax,2), %ecx
movl (%r8,%rcx,4), %ecx
leaq (%rcx,%rcx,2), %rcx
movsd (%rdx,%rcx,4), %xmm4
movss 0x8(%rdx,%rcx,4), %xmm5
leal 0x2(%rax,%rax,2), %eax
movl (%r8,%rax,4), %eax
leaq (%rax,%rax,2), %rax
movsd (%rdx,%rax,4), %xmm6
movss 0x8(%rdx,%rax,4), %xmm7
movaps %xmm9, %xmm0
movaps %xmm8, %xmm1
callq 0x21d60
movss %xmm0, (%r13,%rbx)
movsd 0x30(%rsp), %xmm0
movsd %xmm0, 0x4(%r13,%rbx)
movss 0x38(%rsp), %xmm0
movss %xmm0, 0xc(%r13,%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r13,%rbx)
decl %ebp
addq $0x20, %rbx
addq $0x4, %r12
addq $0xc, %r15
cmpq $0x260, %rbx # imm = 0x260
movaps 0x70(%rsp), %xmm2
leaq 0x30(%rsp), %rsi
jne 0x22b0f
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
| _ZN6sdflib9VHQueriesINS_21TriCubicInterpolationEE21calculateVerticesInfoILm19EEEvN3glm5tvec3IfLNS4_9precisionE0EEEfRKSt6vectorIjSaIjEERKSt5arrayIS7_XT_EEjRKSD_IfLm64EERSD_ISD_IfLm8EEXT_EERSD_IjXT_EERKNS_4MeshERKS8_INS_13TriangleUtils12TriangleDataESaIST_EE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0E8h
mov r13, r9
mov [rsp+118h+var_B0], r8
mov r14d, ecx
mov r15, rdx
movss [rsp+118h+var_104], xmm1
movaps [rsp+118h+var_68], xmm0
mov [rsp+118h+var_110], rdi
cmp qword ptr [rdi+40h], 0
mov [rsp+118h+var_F8], r9
movaps [rsp+118h+var_A8], xmm2
jnz short loc_22AD4
lea rdi, [rsp+118h+var_E0]
mov qword ptr [rdi-8], 0
lea r13, [rsp+118h+var_E8]
lea rdx, [rsp+118h+var_98]
mov rsi, r13
mov rcx, [rsp+118h+arg_8]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EEC2IN6sdflib3ICGESaIS5_EJRKNS4_4MeshEEEERPT_St20_Sp_alloc_shared_tagIT0_EDpOT1_; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<sdflib::ICG,std::allocator<sdflib::ICG>,sdflib::Mesh const&>(sdflib::ICG *&,std::_Sp_alloc_shared_tag<std::allocator<sdflib::ICG>>,sdflib::Mesh const&)
movaps xmm0, xmmword ptr [r13+0]
xorps xmm1, xmm1
movaps xmmword ptr [r13+0], xmm1
mov rax, [rsp+118h+var_110]
mov rdi, [rax+48h]
movups xmmword ptr [rax+40h], xmm0
test rdi, rdi
jz short loc_22ACA
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
mov rdi, [rsp+118h+var_E0]
test rdi, rdi
jz short loc_22ACA
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_22ACA:
mov r13, [rsp+118h+var_F8]
movaps xmm2, [rsp+118h+var_A8]
loc_22AD4:
mov r12, [rsp+118h+arg_0]
movaps xmm0, xmm2
addss xmm0, xmm2
movaps [rsp+118h+var_48], xmm0
movaps xmm0, xmm2
shufps xmm0, xmm2, 0
movaps [rsp+118h+var_78], xmm0
add r15, 8
mov ebp, 12h
xor ebx, ebx
lea rsi, [rsp+118h+var_E8]
mov [rsp+118h+var_114], r14d
loc_22B0F:
bt r14d, ebp
movsd xmm9, qword ptr [r15-8]
movss xmm8, dword ptr [r15]
jnb short loc_22B65
movss xmm0, cs:dword_4A6B0
mulss xmm8, xmm0
movaps xmm1, cs:xmmword_4B5B0
mulps xmm9, xmm1
addps xmm9, xmm1
addss xmm8, xmm0
lea rsi, [r13+rbx+0]
mov rdi, [rsp+118h+var_B0]
movaps xmm0, xmm9
movaps xmm1, xmm8
movaps xmm2, [rsp+118h+var_48]
call _ZN6sdflib21TriCubicInterpolation23interpolateVertexValuesERKSt5arrayIfLm64EEN3glm5tvec3IfLNS5_9precisionE0EEEfRS1_IfLm8EE; sdflib::TriCubicInterpolation::interpolateVertexValues(std::array<float,64ul> const&,glm::tvec3<float,(glm::precision)0>,float,std::array&<float,8ul>)
jmp loc_22DF0
loc_22B65:
mulps xmm9, [rsp+118h+var_78]
addps xmm9, [rsp+118h+var_68]
mov rax, [rsp+118h+var_110]
movsd xmm0, qword ptr [rax+34h]
movaps xmm1, xmm9
subps xmm1, xmm0
movsd xmm0, qword ptr [rax+28h]
mulps xmm0, xmm1
movaps xmm1, xmm0
cmpltps xmm1, cs:xmmword_4B5A0
unpcklps xmm1, xmm1
movmskpd eax, xmm1
movss xmm1, cs:dword_4A6CC
test al, 1
jnz short loc_22BB6
movss xmm1, cs:dword_4A6B0
loc_22BB6:
mov [rsp+118h+var_F0], r12
movss xmm4, cs:dword_4A6CC
test al, 2
jnz short loc_22BCF
movss xmm4, cs:dword_4A6B0
loc_22BCF:
mulss xmm8, xmm2
addss xmm8, [rsp+118h+var_104]
movaps xmm3, xmm8
mov r8, [rsp+118h+var_110]
subss xmm3, dword ptr [r8+3Ch]
mulss xmm3, dword ptr [r8+30h]
addss xmm1, xmm0
cvttss2si edx, xmm1
shufps xmm0, xmm0, 55h ; 'U'
addss xmm0, xmm4
movaps xmm1, xmm3
cmpltss xmm1, cs:dword_4A6D0
movaps xmm2, xmm1
movss xmm4, cs:dword_4A6CC
andps xmm2, xmm4
movss xmm4, cs:dword_4A6B0
andnps xmm1, xmm4
orps xmm1, xmm2
addss xmm1, xmm3
cvttss2si r10d, xmm1
mov eax, [r8+4]
mov r12d, [r8+8]
mov r9d, r12d
and r9d, r10d
lea ecx, [rax+rax]
shl r9d, cl
cvttss2si r14d, xmm0
mov edi, r12d
and edi, r14d
mov ecx, eax
shl edi, cl
and r12d, edx
or r12d, edi
or r12d, r9d
mov rax, [r8+10h]
shl r12, 4
cmp [rax+r12], edx
jnz short loc_22C8B
add rax, r12
cmp [rax+4], r14d
jnz short loc_22C8B
cmp [rax+8], r10d
jnz short loc_22C8B
mov eax, [rax+0Ch]
mov r12, [rsp+118h+var_F0]
mov [r12], eax
jmp loc_22D3C
loc_22C8B:
shl r14, 20h
or r14, rdx
cvtps2pd xmm0, xmm9
mov [rsp+118h+var_B8], r15
mov r15, [rsp+118h+var_110]
mov r13, [r15+40h]
movaps [rsp+118h+var_98], xmm0
xorps xmm0, xmm0
cvtss2sd xmm0, xmm8
movsd [rsp+118h+var_88], xmm0
mov rdi, rsi
mov rsi, r13
lea rdx, [rsp+118h+var_98]
movss [rsp+118h+var_FC], xmm8
movaps [rsp+118h+var_58], xmm9
mov [rsp+118h+var_100], r10d
call _ZNK3tmd20TriangleMeshDistance15signed_distanceERKSt5arrayIdLm3EE; tmd::TriangleMeshDistance::signed_distance(std::array<double,3ul> const&)
movaps xmm9, [rsp+118h+var_58]
movss xmm8, [rsp+118h+var_FC]
lea rsi, [rsp+118h+var_E8]
mov dword ptr [r13+0C0h], 0
inc qword ptr [r13+0B8h]
mov r13, [rsp+118h+var_F8]
mov eax, [rsp+118h+var_C4]
mov rdx, [rsp+118h+var_F0]
mov [rdx], eax
mov rcx, [r15+10h]
mov r15, [rsp+118h+var_B8]
mov [rcx+r12], r14
mov edi, [rsp+118h+var_100]
mov [rcx+r12+8], edi
mov [rcx+r12+0Ch], eax
mov r12, rdx
mov eax, [rdx]
loc_22D3C:
mov r14d, [rsp+118h+var_114]
mov [rsp+118h+var_E8], 0
mov dword ptr [rsp+118h+var_E0], 0
mov ecx, eax
imul rdi, rcx, 94h
mov rcx, [rsp+118h+arg_10]
add rdi, [rcx]
lea ecx, [rax+rax*2]
mov r8, [rsp+118h+arg_8]
mov rdx, [r8]
mov r8, [r8+18h]
mov ecx, [r8+rcx*4]
lea rcx, [rcx+rcx*2]
movsd xmm2, qword ptr [rdx+rcx*4]
movss xmm3, dword ptr [rdx+rcx*4+8]
lea ecx, [rax+rax*2+1]
mov ecx, [r8+rcx*4]
lea rcx, [rcx+rcx*2]
movsd xmm4, qword ptr [rdx+rcx*4]
movss xmm5, dword ptr [rdx+rcx*4+8]
lea eax, [rax+rax*2+2]
mov eax, [r8+rax*4]
lea rax, [rax+rax*2]
movsd xmm6, qword ptr [rdx+rax*4]
movss xmm7, dword ptr [rdx+rax*4+8]
movaps xmm0, xmm9
movaps xmm1, xmm8
call _ZN6sdflib13TriangleUtils29getSignedDistPointAndTriangleEN3glm5tvec3IfLNS1_9precisionE0EEERKNS0_12TriangleDataES4_S4_S4_RS4_; sdflib::TriangleUtils::getSignedDistPointAndTriangle(glm::tvec3<float,(glm::precision)0>,sdflib::TriangleUtils::TriangleData const&,glm::tvec3<float,(glm::precision)0>,glm::tvec3<float,(glm::precision)0>,glm::tvec3<float,(glm::precision)0>,glm::tvec3<float,(glm::precision)0>&)
movss dword ptr [r13+rbx+0], xmm0
movsd xmm0, [rsp+118h+var_E8]
movsd qword ptr [r13+rbx+4], xmm0
movss xmm0, dword ptr [rsp+118h+var_E0]
movss dword ptr [r13+rbx+0Ch], xmm0
xorps xmm0, xmm0
movups xmmword ptr [r13+rbx+10h], xmm0
loc_22DF0:
dec ebp
add rbx, 20h ; ' '
add r12, 4
add r15, 0Ch
cmp rbx, 260h
movaps xmm2, [rsp+118h+var_A8]
lea rsi, [rsp+118h+var_E8]
jnz loc_22B0F
add rsp, 0E8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| void sdflib::VHQueries<sdflib::TriCubicInterpolation>::calculateVerticesInfo<19ul>(
long long a1,
__m128 a2,
float a3,
__m128 a4,
long long a5,
long long a6,
int a7,
float *a8,
long long a9,
unsigned int *a10,
const sdflib::Mesh *a11,
_QWORD *a12)
{
long long v12; // r13
bool v15; // zf
__int128 v16; // xmm0
volatile signed __int32 *v17; // rdi
__m128 v19; // xmm0
unsigned int *v20; // r15
unsigned int v21; // ebp
long long v22; // rbx
__m128 v23; // xmm9
__m128 v24; // xmm8
__m128 v25; // xmm9
__m128 v26; // xmm0
__m128 v27; // xmm1
char v28; // al
float v29; // xmm1_4
float v30; // xmm4_4
__m128 v31; // xmm3
long long v32; // rdx
__m128 v33; // rt1
__m128 v34; // xmm1
double v35; // xmm2_8
double v36; // xmm1_8
long long v37; // r14
long long v38; // rax
long long v39; // r12
_DWORD *v40; // rax
unsigned int v41; // eax
long long v42; // r14
long long v43; // r13
unsigned int v44; // eax
long long v45; // rcx
long long v46; // rdi
long long v47; // r8
__m128 v48; // xmm2
float v49; // xmm3_4
__m128 v50; // xmm4
float v51; // xmm5_4
long long v52; // rax
int v53; // [rsp+4h] [rbp-114h]
unsigned int *v57; // [rsp+28h] [rbp-F0h]
_OWORD v58[2]; // [rsp+30h] [rbp-E8h] BYREF
unsigned int v59; // [rsp+54h] [rbp-C4h]
unsigned int *v60; // [rsp+60h] [rbp-B8h]
float *v61; // [rsp+68h] [rbp-B0h]
__m128 v62; // [rsp+70h] [rbp-A8h]
__m128d v63; // [rsp+80h] [rbp-98h] BYREF
double v64; // [rsp+90h] [rbp-88h]
__m128 v65; // [rsp+A0h] [rbp-78h]
__m128 v66; // [rsp+B0h] [rbp-68h]
__m128 v67; // [rsp+C0h] [rbp-58h]
__m128 v68; // [rsp+D0h] [rbp-48h]
v12 = a9;
v61 = a8;
v66 = a2;
v15 = *(_QWORD *)(a1 + 64) == 0LL;
v62 = a4;
if ( v15 )
{
*(_QWORD *)&v58[0] = 0LL;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<sdflib::ICG,std::allocator<sdflib::ICG>,sdflib::Mesh const&>(
(_QWORD *)v58 + 1,
v58,
(long long)&v63,
a11);
v16 = v58[0];
v58[0] = 0LL;
v17 = *(volatile signed __int32 **)(a1 + 72);
*(_OWORD *)(a1 + 64) = v16;
if ( v17 )
{
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v17);
if ( *((_QWORD *)&v58[0] + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v58[0] + 1));
}
v12 = a9;
a4 = v62;
}
v19 = a4;
v19.m128_f32[0] = a4.m128_f32[0] + a4.m128_f32[0];
v68 = v19;
v65 = _mm_shuffle_ps(a4, a4, 0);
v20 = (unsigned int *)(a6 + 8);
v21 = 18;
v22 = 0LL;
v53 = a7;
do
{
v23 = (__m128)*((unsigned long long *)v20 - 1);
v24 = (__m128)*v20;
if ( _bittest(&a7, v21) )
{
sdflib::TriCubicInterpolation::interpolateVertexValues(
v61,
(float *)(v12 + v22),
_mm_add_ps(_mm_mul_ps(v23, (__m128)xmmword_4B5B0), (__m128)xmmword_4B5B0),
(float)(v24.m128_f32[0] * 0.5) + 0.5,
v68.m128_f32[0]);
}
else
{
v25 = _mm_add_ps(_mm_mul_ps(v23, v65), v66);
v26 = _mm_mul_ps((__m128)*(unsigned long long *)(a1 + 40), _mm_sub_ps(v25, (__m128)*(unsigned long long *)(a1 + 52)));
v27 = _mm_cmplt_ps(v26, (__m128)xmmword_4B5A0);
v28 = _mm_movemask_pd((__m128d)_mm_unpacklo_ps(v27, v27));
v29 = -0.5;
if ( (v28 & 1) == 0 )
v29 = 0.5;
v57 = a10;
v30 = -0.5;
if ( (v28 & 2) == 0 )
v30 = 0.5;
v24.m128_f32[0] = (float)(v24.m128_f32[0] * a4.m128_f32[0]) + a3;
v31 = v24;
v31.m128_f32[0] = (float)(v24.m128_f32[0] - *(float *)(a1 + 60)) * *(float *)(a1 + 48);
v32 = (unsigned int)(int)(float)(v29 + v26.m128_f32[0]);
v33.m128_i32[0] = 0;
v34 = _mm_cmplt_ss(v31, v33);
*(_QWORD *)&v35 = v34.m128_i32[0] & 0xBF000000;
*(_QWORD *)&v36 = _mm_andnot_ps(v34, (__m128)0x3F000000u).m128_u64[0] | *(_QWORD *)&v35;
*(float *)&v36 = *(float *)&v36 + v31.m128_f32[0];
v37 = (unsigned int)(int)(float)(_mm_shuffle_ps(v26, v26, 85).m128_f32[0] + v30);
v38 = *(_QWORD *)(a1 + 16);
v39 = 16LL
* ((((int)*(float *)&v36 & *(_DWORD *)(a1 + 8)) << (2 * *(_DWORD *)(a1 + 4))) | (((unsigned int)v37 & *(_DWORD *)(a1 + 8)) << *(_DWORD *)(a1 + 4)) | (unsigned int)v32 & *(_DWORD *)(a1 + 8));
if ( *(_DWORD *)(v38 + v39) == (_DWORD)v32
&& (v40 = (_DWORD *)(v39 + v38), v40[1] == (_DWORD)v37)
&& v40[2] == (int)*(float *)&v36 )
{
v41 = v40[3];
a10 = v57;
*v57 = v41;
}
else
{
v42 = v32 | (v37 << 32);
v60 = v20;
v43 = *(_QWORD *)(a1 + 64);
v63 = _mm_cvtps_pd(v25);
v64 = v24.m128_f32[0];
v67 = v25;
tmd::TriangleMeshDistance::signed_distance((long long)v58, v43, &v63, v24.m128_f32[0], v36, v35);
v25 = v67;
v24 = (__m128)v24.m128_u32[0];
*(_DWORD *)(v43 + 192) = 0;
++*(_QWORD *)(v43 + 184);
v12 = a9;
v44 = v59;
*v57 = v59;
v45 = *(_QWORD *)(a1 + 16);
v20 = v60;
*(_QWORD *)(v45 + v39) = v42;
*(_DWORD *)(v45 + v39 + 8) = (int)*(float *)&v36;
*(_DWORD *)(v45 + v39 + 12) = v44;
a10 = v57;
v41 = *v57;
}
a7 = v53;
*(_QWORD *)&v58[0] = 0LL;
DWORD2(v58[0]) = 0;
v46 = *a12 + 148LL * v41;
v47 = *((_QWORD *)a11 + 3);
v48 = (__m128)*(unsigned long long *)(*(_QWORD *)a11 + 12LL * *(unsigned int *)(v47 + 12LL * v41));
v49 = *(float *)(*(_QWORD *)a11 + 12LL * *(unsigned int *)(v47 + 12LL * v41) + 8);
v50 = (__m128)*(unsigned long long *)(*(_QWORD *)a11 + 12LL * *(unsigned int *)(v47 + 4LL * (3 * v41 + 1)));
v51 = *(float *)(*(_QWORD *)a11 + 12LL * *(unsigned int *)(v47 + 4LL * (3 * v41 + 1)) + 8);
v52 = 3LL * *(unsigned int *)(v47 + 4LL * (3 * v41 + 2));
*(float *)(v12 + v22) = sdflib::TriangleUtils::getSignedDistPointAndTriangle(
v46,
(long long)v58,
v25,
v24,
v48,
v49,
v50,
v51,
(__m128)*(unsigned long long *)(*(_QWORD *)a11 + 4 * v52),
*(float *)(*(_QWORD *)a11 + 4 * v52 + 8));
*(_QWORD *)(v12 + v22 + 4) = *(_QWORD *)&v58[0];
*(_DWORD *)(v12 + v22 + 12) = DWORD2(v58[0]);
*(_OWORD *)(v12 + v22 + 16) = 0LL;
}
--v21;
v22 += 32LL;
++a10;
v20 += 3;
a4.m128_i32[0] = v62.m128_i32[0];
}
while ( v22 != 608 );
}
| calculateVerticesInfo<19ul>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xe8
MOV R13,R9
MOV qword ptr [RSP + 0x68],R8
MOV R14D,ECX
MOV R15,RDX
MOVSS dword ptr [RSP + 0x14],XMM1
MOVAPS xmmword ptr [RSP + 0xb0],XMM0
MOV qword ptr [RSP + 0x8],RDI
CMP qword ptr [RDI + 0x40],0x0
MOV qword ptr [RSP + 0x20],R9
MOVAPS xmmword ptr [RSP + 0x70],XMM2
JNZ 0x00122ad4
LEA RDI,[RSP + 0x38]
MOV qword ptr [RDI + -0x8],0x0
LEA R13,[RSP + 0x30]
LEA RDX,[RSP + 0x80]
MOV RSI,R13
MOV RCX,qword ptr [RSP + 0x128]
CALL 0x0011e38a
MOVAPS XMM0,xmmword ptr [R13]
XORPS XMM1,XMM1
MOVAPS xmmword ptr [R13],XMM1
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x48]
MOVUPS xmmword ptr [RAX + 0x40],XMM0
TEST RDI,RDI
JZ 0x00122aca
CALL 0x0011b08a
MOV RDI,qword ptr [RSP + 0x38]
TEST RDI,RDI
JZ 0x00122aca
CALL 0x0011b08a
LAB_00122aca:
MOV R13,qword ptr [RSP + 0x20]
MOVAPS XMM2,xmmword ptr [RSP + 0x70]
LAB_00122ad4:
MOV R12,qword ptr [RSP + 0x120]
MOVAPS XMM0,XMM2
ADDSS XMM0,XMM2
MOVAPS xmmword ptr [RSP + 0xd0],XMM0
MOVAPS XMM0,XMM2
SHUFPS XMM0,XMM2,0x0
MOVAPS xmmword ptr [RSP + 0xa0],XMM0
ADD R15,0x8
MOV EBP,0x12
XOR EBX,EBX
LEA RSI,[RSP + 0x30]
MOV dword ptr [RSP + 0x4],R14D
LAB_00122b0f:
BT R14D,EBP
MOVSD XMM9,qword ptr [R15 + -0x8]
MOVSS XMM8,dword ptr [R15]
JNC 0x00122b65
MOVSS XMM0,dword ptr [0x0014a6b0]
MULSS XMM8,XMM0
MOVAPS XMM1,xmmword ptr [0x0014b5b0]
MULPS XMM9,XMM1
ADDPS XMM9,XMM1
ADDSS XMM8,XMM0
LEA RSI,[R13 + RBX*0x1]
MOV RDI,qword ptr [RSP + 0x68]
MOVAPS XMM0,XMM9
MOVAPS XMM1,XMM8
MOVAPS XMM2,xmmword ptr [RSP + 0xd0]
CALL 0x0011b9c2
JMP 0x00122df0
LAB_00122b65:
MULPS XMM9,xmmword ptr [RSP + 0xa0]
ADDPS XMM9,xmmword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RSP + 0x8]
MOVSD XMM0,qword ptr [RAX + 0x34]
MOVAPS XMM1,XMM9
SUBPS XMM1,XMM0
MOVSD XMM0,qword ptr [RAX + 0x28]
MULPS XMM0,XMM1
MOVAPS XMM1,XMM0
CMPLTPS XMM1,xmmword ptr [0x0014b5a0]
UNPCKLPS XMM1,XMM1
MOVMSKPD EAX,XMM1
MOVSS XMM1,dword ptr [0x0014a6cc]
TEST AL,0x1
JNZ 0x00122bb6
MOVSS XMM1,dword ptr [0x0014a6b0]
LAB_00122bb6:
MOV qword ptr [RSP + 0x28],R12
MOVSS XMM4,dword ptr [0x0014a6cc]
TEST AL,0x2
JNZ 0x00122bcf
MOVSS XMM4,dword ptr [0x0014a6b0]
LAB_00122bcf:
MULSS XMM8,XMM2
ADDSS XMM8,dword ptr [RSP + 0x14]
MOVAPS XMM3,XMM8
MOV R8,qword ptr [RSP + 0x8]
SUBSS XMM3,dword ptr [R8 + 0x3c]
MULSS XMM3,dword ptr [R8 + 0x30]
ADDSS XMM1,XMM0
CVTTSS2SI EDX,XMM1
SHUFPS XMM0,XMM0,0x55
ADDSS XMM0,XMM4
MOVAPS XMM1,XMM3
CMPLTSS XMM1,dword ptr [0x0014a6d0]
MOVAPS XMM2,XMM1
MOVSS XMM4,dword ptr [0x0014a6cc]
ANDPS XMM2,XMM4
MOVSS XMM4,dword ptr [0x0014a6b0]
ANDNPS XMM1,XMM4
ORPS XMM1,XMM2
ADDSS XMM1,XMM3
CVTTSS2SI R10D,XMM1
MOV EAX,dword ptr [R8 + 0x4]
MOV R12D,dword ptr [R8 + 0x8]
MOV R9D,R12D
AND R9D,R10D
LEA ECX,[RAX + RAX*0x1]
SHL R9D,CL
CVTTSS2SI R14D,XMM0
MOV EDI,R12D
AND EDI,R14D
MOV ECX,EAX
SHL EDI,CL
AND R12D,EDX
OR R12D,EDI
OR R12D,R9D
MOV RAX,qword ptr [R8 + 0x10]
SHL R12,0x4
CMP dword ptr [RAX + R12*0x1],EDX
JNZ 0x00122c8b
ADD RAX,R12
CMP dword ptr [RAX + 0x4],R14D
JNZ 0x00122c8b
CMP dword ptr [RAX + 0x8],R10D
JNZ 0x00122c8b
MOV EAX,dword ptr [RAX + 0xc]
MOV R12,qword ptr [RSP + 0x28]
MOV dword ptr [R12],EAX
JMP 0x00122d3c
LAB_00122c8b:
SHL R14,0x20
OR R14,RDX
CVTPS2PD XMM0,XMM9
MOV qword ptr [RSP + 0x60],R15
MOV R15,qword ptr [RSP + 0x8]
MOV R13,qword ptr [R15 + 0x40]
MOVAPS xmmword ptr [RSP + 0x80],XMM0
XORPS XMM0,XMM0
CVTSS2SD XMM0,XMM8
MOVSD qword ptr [RSP + 0x90],XMM0
MOV RDI,RSI
MOV RSI,R13
LEA RDX,[RSP + 0x80]
MOVSS dword ptr [RSP + 0x1c],XMM8
MOVAPS xmmword ptr [RSP + 0xc0],XMM9
MOV dword ptr [RSP + 0x18],R10D
CALL 0x0012140e
MOVAPS XMM9,xmmword ptr [RSP + 0xc0]
MOVSS XMM8,dword ptr [RSP + 0x1c]
LEA RSI,[RSP + 0x30]
MOV dword ptr [R13 + 0xc0],0x0
INC qword ptr [R13 + 0xb8]
MOV R13,qword ptr [RSP + 0x20]
MOV EAX,dword ptr [RSP + 0x54]
MOV RDX,qword ptr [RSP + 0x28]
MOV dword ptr [RDX],EAX
MOV RCX,qword ptr [R15 + 0x10]
MOV R15,qword ptr [RSP + 0x60]
MOV qword ptr [RCX + R12*0x1],R14
MOV EDI,dword ptr [RSP + 0x18]
MOV dword ptr [RCX + R12*0x1 + 0x8],EDI
MOV dword ptr [RCX + R12*0x1 + 0xc],EAX
MOV R12,RDX
MOV EAX,dword ptr [RDX]
LAB_00122d3c:
MOV R14D,dword ptr [RSP + 0x4]
MOV qword ptr [RSP + 0x30],0x0
MOV dword ptr [RSP + 0x38],0x0
MOV ECX,EAX
IMUL RDI,RCX,0x94
MOV RCX,qword ptr [RSP + 0x130]
ADD RDI,qword ptr [RCX]
LEA ECX,[RAX + RAX*0x2]
MOV R8,qword ptr [RSP + 0x128]
MOV RDX,qword ptr [R8]
MOV R8,qword ptr [R8 + 0x18]
MOV ECX,dword ptr [R8 + RCX*0x4]
LEA RCX,[RCX + RCX*0x2]
MOVSD XMM2,qword ptr [RDX + RCX*0x4]
MOVSS XMM3,dword ptr [RDX + RCX*0x4 + 0x8]
LEA ECX,[RAX + RAX*0x2 + 0x1]
MOV ECX,dword ptr [R8 + RCX*0x4]
LEA RCX,[RCX + RCX*0x2]
MOVSD XMM4,qword ptr [RDX + RCX*0x4]
MOVSS XMM5,dword ptr [RDX + RCX*0x4 + 0x8]
LEA EAX,[RAX + RAX*0x2 + 0x2]
MOV EAX,dword ptr [R8 + RAX*0x4]
LEA RAX,[RAX + RAX*0x2]
MOVSD XMM6,qword ptr [RDX + RAX*0x4]
MOVSS XMM7,dword ptr [RDX + RAX*0x4 + 0x8]
MOVAPS XMM0,XMM9
MOVAPS XMM1,XMM8
CALL 0x00121d60
MOVSS dword ptr [R13 + RBX*0x1],XMM0
MOVSD XMM0,qword ptr [RSP + 0x30]
MOVSD qword ptr [R13 + RBX*0x1 + 0x4],XMM0
MOVSS XMM0,dword ptr [RSP + 0x38]
MOVSS dword ptr [R13 + RBX*0x1 + 0xc],XMM0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R13 + RBX*0x1 + 0x10],XMM0
LAB_00122df0:
DEC EBP
ADD RBX,0x20
ADD R12,0x4
ADD R15,0xc
CMP RBX,0x260
MOVAPS XMM2,xmmword ptr [RSP + 0x70]
LEA RSI,[RSP + 0x30]
JNZ 0x00122b0f
ADD RSP,0xe8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* void
sdflib::VHQueries<sdflib::TriCubicInterpolation>::calculateVerticesInfo<19ul>(glm::tvec3<float,
(glm::precision)0>, float, std::vector<unsigned int, std::allocator<unsigned int> > const&,
std::array<glm::tvec3<float, (glm::precision)0>, 19ul> const&, unsigned int, std::array<float,
64ul> const&, std::array<std::array<float, 8ul>, 19ul>&, std::array<unsigned int, 19ul>&,
sdflib::Mesh const&, std::vector<sdflib::TriangleUtils::TriangleData,
std::allocator<sdflib::TriangleUtils::TriangleData> > const&) */
void sdflib::VHQueries<sdflib::TriCubicInterpolation>::calculateVerticesInfo<19ul>
(int8 param_1,float param_2,float param_3,long param_4,int8 param_5,
long param_6,uint param_7,int8 param_8,long param_9,uint *param_10,
int8 param_11,long *param_12)
{
long *plVar1;
int8 *puVar2;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this;
byte bVar3;
int8 uVar4;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Var5;
uint uVar6;
long lVar7;
uint uVar8;
long extraout_RDX;
long extraout_RDX_00;
long extraout_RDX_01;
long extraout_RDX_02;
long extraout_RDX_03;
long lVar9;
long lVar10;
uint uVar11;
uint uVar12;
long lVar13;
uint uVar14;
float *pfVar15;
int iVar16;
int iVar17;
float fVar18;
int4 uVar19;
float fVar20;
float in_XMM0_Dc;
float in_XMM0_Dd;
float fVar21;
int1 auVar23 [16];
float fVar24;
float fVar25;
float fVar26;
float fVar27;
float fVar28;
int8 local_e8;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *ap_Stack_e0 [3];
uint local_c4;
float *local_b8;
int8 local_b0;
float local_a8;
int1 local_98 [16];
double local_88;
float local_78;
float fStack_74;
float fStack_70;
float fStack_6c;
float local_68;
float fStack_64;
float fStack_60;
float fStack_5c;
float local_58;
float fStack_54;
float fStack_50;
float fStack_4c;
float local_48;
int1 auVar22 [16];
fStack_64 = (float)((ulong)param_1 >> 0x20);
local_68 = (float)param_1;
lVar9 = param_6;
local_b0 = param_8;
local_a8 = param_3;
fStack_60 = in_XMM0_Dc;
fStack_5c = in_XMM0_Dd;
if (*(long *)(param_4 + 0x40) == 0) {
local_e8 = 0;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::
__shared_count<sdflib::ICG,std::allocator<sdflib::ICG>,sdflib::Mesh_const&>
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)ap_Stack_e0,&local_e8,local_98,param_11
);
p_Var5 = ap_Stack_e0[0];
uVar4 = local_e8;
local_e8 = 0;
ap_Stack_e0[0] = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
this = *(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(param_4 + 0x48);
*(int8 *)(param_4 + 0x40) = uVar4;
*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(param_4 + 0x48) = p_Var5;
lVar9 = extraout_RDX;
if ((this != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) &&
(std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this), lVar9 = extraout_RDX_00
, ap_Stack_e0[0] != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0)) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(ap_Stack_e0[0]);
lVar9 = extraout_RDX_01;
}
}
local_48 = local_a8 + local_a8;
pfVar15 = (float *)(param_6 + 8);
uVar11 = 0x12;
lVar10 = 0;
local_78 = local_a8;
fStack_74 = local_a8;
fStack_70 = local_a8;
fStack_6c = local_a8;
do {
fVar27 = (float)*(int8 *)(pfVar15 + -2);
if ((param_7 >> (uVar11 & 0x1f) & 1) == 0) {
fVar27 = fVar27 * local_78 + local_68;
fVar28 = (float)((ulong)*(int8 *)(pfVar15 + -2) >> 0x20) * fStack_74 + fStack_64;
fVar18 = (float)*(int8 *)(param_4 + 0x28) *
(fVar27 - (float)*(int8 *)(param_4 + 0x34));
fVar20 = (float)((ulong)*(int8 *)(param_4 + 0x28) >> 0x20) *
(fVar28 - (float)((ulong)*(int8 *)(param_4 + 0x34) >> 0x20));
iVar16 = -(uint)(fVar18 < _DAT_0014b5a0);
iVar17 = -(uint)(fVar20 < _UNK_0014b5a4);
auVar23._4_4_ = iVar17;
auVar23._0_4_ = iVar16;
auVar23._8_4_ = iVar17;
auVar23._12_4_ = iVar17;
auVar22._8_8_ = auVar23._8_8_;
auVar22._4_4_ = iVar16;
auVar22._0_4_ = iVar16;
uVar6 = movmskpd((int)param_4,auVar22);
fVar21 = DAT_0014a6cc;
if ((uVar6 & 1) == 0) {
fVar21 = DAT_0014a6b0;
}
fVar25 = DAT_0014a6cc;
if ((uVar6 & 2) == 0) {
fVar25 = DAT_0014a6b0;
}
fVar26 = *pfVar15 * local_a8 + param_2;
fVar24 = (fVar26 - *(float *)(param_4 + 0x3c)) * *(float *)(param_4 + 0x30);
uVar8 = (uint)(fVar21 + fVar18);
uVar6 = -(uint)(fVar24 < DAT_0014a6d0);
uVar12 = (uint)((float)(~uVar6 & (uint)DAT_0014a6b0 | uVar6 & (uint)DAT_0014a6cc) + fVar24);
uVar6 = *(uint *)(param_4 + 8);
bVar3 = (byte)*(int4 *)(param_4 + 4);
uVar14 = (uint)(fVar20 + fVar25);
lVar13 = (ulong)(uVar6 & uVar8 | (uVar6 & uVar14) << (bVar3 & 0x1f) |
(uVar6 & uVar12) << (bVar3 * '\x02' & 0x1f)) * 0x10;
if (((*(uint *)(*(long *)(param_4 + 0x10) + lVar13) == uVar8) &&
(lVar7 = *(long *)(param_4 + 0x10) + lVar13, *(uint *)(lVar7 + 4) == uVar14)) &&
(*(uint *)(lVar7 + 8) == uVar12)) {
uVar6 = *(uint *)(lVar7 + 0xc);
*param_10 = uVar6;
}
else {
lVar7 = *(long *)(param_4 + 0x40);
local_98._8_4_ = SUB84((double)fVar28,0);
local_98._0_8_ = (double)fVar27;
local_98._12_4_ = (int)((ulong)(double)fVar28 >> 0x20);
local_88 = (double)fVar26;
local_b8 = pfVar15;
local_58 = fVar27;
fStack_54 = fVar28;
fStack_50 = fStack_70 * 0.0 + fStack_60;
fStack_4c = fStack_6c * 0.0 + fStack_5c;
tmd::TriangleMeshDistance::signed_distance((array *)&local_e8);
*(int4 *)(lVar7 + 0xc0) = 0;
plVar1 = (long *)(lVar7 + 0xb8);
*plVar1 = *plVar1 + 1;
*param_10 = local_c4;
lVar7 = *(long *)(param_4 + 0x10);
*(ulong *)(lVar7 + lVar13) =
(ulong)uVar14 << 0x20 | CONCAT44((int)((ulong)lVar9 >> 0x20),uVar8);
*(uint *)(lVar7 + 8 + lVar13) = uVar12;
*(uint *)(lVar7 + 0xc + lVar13) = local_c4;
uVar6 = *param_10;
pfVar15 = local_b8;
fVar27 = local_58;
}
local_e8 = 0;
ap_Stack_e0[0] =
(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)
((ulong)ap_Stack_e0[0] & 0xffffffff00000000);
uVar19 = TriangleUtils::getSignedDistPointAndTriangle
(fVar27,(ulong)uVar6 * 0x94 + *param_12,&local_e8);
*(int4 *)(param_9 + lVar10) = uVar19;
*(int8 *)(param_9 + 4 + lVar10) = local_e8;
*(int4 *)(param_9 + 0xc + lVar10) = ap_Stack_e0[0]._0_4_;
puVar2 = (int8 *)(param_9 + 0x10 + lVar10);
*puVar2 = 0;
puVar2[1] = 0;
lVar9 = extraout_RDX_03;
}
else {
TriCubicInterpolation::interpolateVertexValues
((TriCubicInterpolation *)(fVar27 * _DAT_0014b5b0 + _DAT_0014b5b0),local_b0,
param_9 + lVar10);
lVar9 = extraout_RDX_02;
}
uVar11 = uVar11 - 1;
lVar10 = lVar10 + 0x20;
param_10 = param_10 + 1;
pfVar15 = pfVar15 + 3;
} while (lVar10 != 0x260);
return;
}
| |
28,150 | get_simple_collation_handler_by_flags | eloqsql/mysys/charset.c | static MY_COLLATION_HANDLER *get_simple_collation_handler_by_flags(uint flags)
{
return flags & MY_CS_BINSORT ?
(flags & MY_CS_NOPAD ?
&my_collation_8bit_nopad_bin_handler :
&my_collation_8bit_bin_handler) :
(flags & MY_CS_NOPAD ?
&my_collation_8bit_simple_nopad_ci_handler :
&my_collation_8bit_simple_ci_handler);
} | O0 | c | get_simple_collation_handler_by_flags:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x4(%rbp)
movl -0x4(%rbp), %eax
andl $0x10, %eax
cmpl $0x0, %eax
je 0x2c536
movl -0x4(%rbp), %edx
andl $0x20000, %edx # imm = 0x20000
leaq 0x1acb86(%rip), %rax # 0x1d90a8
leaq 0x1acbef(%rip), %rcx # 0x1d9118
cmpl $0x0, %edx
cmovneq %rcx, %rax
movq %rax, -0x10(%rbp)
jmp 0x2c558
movl -0x4(%rbp), %edx
andl $0x20000, %edx # imm = 0x20000
leaq 0x1af6a2(%rip), %rax # 0x1dbbe8
leaq 0x1af70b(%rip), %rcx # 0x1dbc58
cmpl $0x0, %edx
cmovneq %rcx, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
popq %rbp
retq
nop
| get_simple_collation_handler_by_flags:
push rbp
mov rbp, rsp
mov [rbp+var_4], edi
mov eax, [rbp+var_4]
and eax, 10h
cmp eax, 0
jz short loc_2C536
mov edx, [rbp+var_4]
and edx, 20000h
lea rax, my_collation_8bit_bin_handler
lea rcx, my_collation_8bit_nopad_bin_handler
cmp edx, 0
cmovnz rax, rcx
mov [rbp+var_10], rax
jmp short loc_2C558
loc_2C536:
mov edx, [rbp+var_4]
and edx, 20000h
lea rax, my_collation_8bit_simple_ci_handler
lea rcx, my_collation_8bit_simple_nopad_ci_handler
cmp edx, 0
cmovnz rax, rcx
mov [rbp+var_10], rax
loc_2C558:
mov rax, [rbp+var_10]
pop rbp
retn
| long long ( ** get_simple_collation_handler_by_flags(int a1))()
{
long long ( **v1)(); // rax
long long ( **v2)(); // rax
if ( (a1 & 0x10) != 0 )
{
v1 = my_collation_8bit_bin_handler;
if ( (a1 & 0x20000) != 0 )
return my_collation_8bit_nopad_bin_handler;
return v1;
}
else
{
v2 = my_collation_8bit_simple_ci_handler;
if ( (a1 & 0x20000) != 0 )
return my_collation_8bit_simple_nopad_ci_handler;
return v2;
}
}
| get_simple_collation_handler_by_flags:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RBP + -0x4],EDI
MOV EAX,dword ptr [RBP + -0x4]
AND EAX,0x10
CMP EAX,0x0
JZ 0x0012c536
MOV EDX,dword ptr [RBP + -0x4]
AND EDX,0x20000
LEA RAX,[0x2d90a8]
LEA RCX,[0x2d9118]
CMP EDX,0x0
CMOVNZ RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
JMP 0x0012c558
LAB_0012c536:
MOV EDX,dword ptr [RBP + -0x4]
AND EDX,0x20000
LEA RAX,[0x2dbbe8]
LEA RCX,[0x2dbc58]
CMP EDX,0x0
CMOVNZ RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
LAB_0012c558:
MOV RAX,qword ptr [RBP + -0x10]
POP RBP
RET
|
int1 * get_simple_collation_handler_by_flags(uint param_1)
{
int1 *local_18;
if ((param_1 & 0x10) == 0) {
local_18 = my_collation_8bit_simple_ci_handler;
if ((param_1 & 0x20000) != 0) {
local_18 = my_collation_8bit_simple_nopad_ci_handler;
}
}
else {
local_18 = my_collation_8bit_bin_handler;
if ((param_1 & 0x20000) != 0) {
local_18 = my_collation_8bit_nopad_bin_handler;
}
}
return local_18;
}
| |
28,151 | my_wildcmp_mb_impl | eloqsql/strings/ctype-mb.c | static
int my_wildcmp_mb_impl(CHARSET_INFO *cs,
const char *str,const char *str_end,
const char *wildstr,const char *wildend,
int escape, int w_one, int w_many, int recurse_level)
{
int result= -1; /* Not found, using wildcards */
if (my_string_stack_guard && my_string_stack_guard(recurse_level))
return 1;
while (wildstr != wildend)
{
while (*wildstr != w_many && *wildstr != w_one)
{
int l;
if (*wildstr == escape && wildstr+1 != wildend)
wildstr++;
if ((l = my_ismbchar(cs, wildstr, wildend)))
{
if (str+l > str_end || memcmp(str, wildstr, l) != 0)
return 1;
str += l;
wildstr += l;
}
else
if (str == str_end || likeconv(cs,*wildstr++) != likeconv(cs,*str++))
return(1); /* No match */
if (wildstr == wildend)
return (str != str_end); /* Match if both are at end */
result=1; /* Found an anchor char */
}
if (*wildstr == w_one)
{
do
{
if (str == str_end) /* Skip one char if possible */
return (result);
INC_PTR(cs,str,str_end);
} while (++wildstr < wildend && *wildstr == w_one);
if (wildstr == wildend)
break;
}
if (*wildstr == w_many)
{ /* Found w_many */
uchar cmp;
const char* mb = wildstr;
int mb_len=0;
wildstr++;
/* Remove any '%' and '_' from the wild search string */
for (; wildstr != wildend ; wildstr++)
{
if (*wildstr == w_many)
continue;
if (*wildstr == w_one)
{
if (str == str_end)
return (-1);
INC_PTR(cs,str,str_end);
continue;
}
break; /* Not a wild character */
}
if (wildstr == wildend)
return(0); /* Ok if w_many is last */
if (str == str_end)
return -1;
if ((cmp= *wildstr) == escape && wildstr+1 != wildend)
cmp= *++wildstr;
mb=wildstr;
mb_len= my_ismbchar(cs, wildstr, wildend);
INC_PTR(cs,wildstr,wildend); /* This is compared trough cmp */
cmp=likeconv(cs,cmp);
do
{
for (;;)
{
if (str >= str_end)
return -1;
if (mb_len)
{
if (str+mb_len <= str_end && memcmp(str, mb, mb_len) == 0)
{
str += mb_len;
break;
}
}
else if (!my_ismbchar(cs, str, str_end) &&
likeconv(cs,*str) == cmp)
{
str++;
break;
}
INC_PTR(cs,str, str_end);
}
{
int tmp=my_wildcmp_mb_impl(cs,str,str_end,wildstr,wildend,escape,w_one,
w_many, recurse_level + 1);
if (tmp <= 0)
return (tmp);
}
} while (str != str_end);
return(-1);
}
}
return (str != str_end ? 1 : 0);
} | O3 | c | my_wildcmp_mb_impl:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %r9d, -0x44(%rbp)
movq %r8, -0x40(%rbp)
movq %rcx, %r15
movq %rdx, -0x58(%rbp)
movq %rsi, %r12
movq %rdi, -0x38(%rbp)
movl 0x20(%rbp), %eax
movq %rax, -0x68(%rbp)
leaq 0x33b664(%rip), %rax # 0x3763f8
movq (%rax), %rax
testq %rax, %rax
je 0x3adaf
movl 0x20(%rbp), %edi
callq *%rax
movl $0x1, %r14d
testl %eax, %eax
jne 0x3af4a
movl 0x10(%rbp), %edi
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
cmpq -0x40(%rbp), %r15
je 0x3af3c
movb (%r15), %al
movsbl %al, %ecx
movl 0x18(%rbp), %edx
cmpl %edx, %ecx
sete %sil
cmpl %edi, %ecx
sete %dl
orb %dl, %sil
movq -0x58(%rbp), %r13
je 0x3ae78
testb %dl, %dl
je 0x3ae65
incq %r15
movq %r15, %rax
movq -0x38(%rbp), %rbx
cmpq %r13, %r12
je 0x3af4a
movq %rax, %r15
movq 0xb8(%rbx), %rax
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq *0xc0(%rax)
movl %eax, %ecx
movl $0x1, %eax
cmpl $0x2, %ecx
jl 0x3ae40
movq 0xb8(%rbx), %rax
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq *0xc0(%rax)
cmpl $0x2, %eax
movl $0x0, %ecx
cmovll %ecx, %eax
addq %rax, %r12
cmpq -0x40(%rbp), %r15
movl 0x10(%rbp), %edi
jae 0x3ae58
movsbl (%r15), %ecx
leaq 0x1(%r15), %rax
cmpl %edi, %ecx
je 0x3adf1
cmpq -0x40(%rbp), %r15
je 0x3af40
movb (%r15), %al
movsbl %al, %eax
movl 0x18(%rbp), %ecx
cmpl %ecx, %eax
jne 0x3adb8
jmp 0x3af5c
leaq 0x1(%r15), %rbx
movq -0x40(%rbp), %rdx
cmpq %rdx, %rbx
cmoveq %r15, %rbx
cmpl -0x44(%rbp), %ecx
cmovneq %r15, %rbx
movq -0x38(%rbp), %rdi
movq 0xb8(%rdi), %rax
movq %rbx, %rsi
callq *0xc0(%rax)
cmpl $0x2, %eax
jge 0x3aedc
movl $0x1, %r14d
cmpq %r13, %r12
je 0x3af4a
movq -0x38(%rbp), %rax
movq 0x58(%rax), %rax
movzbl (%rbx), %ecx
movb (%rax,%rcx), %cl
movzbl (%r12), %edx
cmpb (%rax,%rdx), %cl
movl 0x10(%rbp), %edi
jne 0x3af4a
incq %rbx
incq %r12
movq %rbx, %r15
jmp 0x3af0f
movl %eax, %r15d
movq %r13, %rax
leaq (%r12,%r15), %r13
movl $0x1, %r14d
cmpq %rax, %r13
ja 0x3af4a
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x242e0
testl %eax, %eax
movl 0x10(%rbp), %edi
jne 0x3af4a
addq %r15, %rbx
movq %rbx, %r15
movq %r13, %r12
cmpq -0x40(%rbp), %r15
movq -0x58(%rbp), %r13
je 0x3af40
movb (%r15), %al
movsbl %al, %ecx
cmpl %edi, %ecx
sete %dl
movl 0x18(%rbp), %esi
cmpl %esi, %ecx
je 0x3ade3
cmpl %edi, %ecx
jne 0x3ae78
jmp 0x3ade3
movq -0x58(%rbp), %r13
xorl %r14d, %r14d
cmpq %r13, %r12
setne %r14b
movl %r14d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1(%r15), %rax
cmpq -0x40(%rbp), %rax
je 0x3afec
addq $0x2, %r15
xorl %r13d, %r13d
xorl %r14d, %r14d
movb -0x1(%r15), %bl
movsbl %bl, %eax
movl 0x18(%rbp), %ecx
cmpl %ecx, %eax
je 0x3afda
cmpl %edi, %eax
jne 0x3aff4
movq -0x58(%rbp), %rbx
cmpq %rbx, %r12
je 0x3b1be
movq -0x38(%rbp), %rdi
movq 0xb8(%rdi), %rax
movq %r12, %rsi
movq %rbx, %rdx
callq *0xc0(%rax)
movl %eax, %ecx
movl $0x1, %eax
cmpl $0x2, %ecx
jl 0x3afd4
movq -0x38(%rbp), %rdi
movq 0xb8(%rdi), %rax
movq %r12, %rsi
movq %rbx, %rdx
callq *0xc0(%rax)
cmpl $0x2, %eax
cmovll %r13d, %eax
addq %rax, %r12
movl 0x10(%rbp), %edi
leaq 0x1(%r15), %rax
cmpq -0x40(%rbp), %r15
movq %rax, %r15
jne 0x3af74
jmp 0x3af4a
xorl %r14d, %r14d
jmp 0x3af4a
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
movq -0x58(%rbp), %r13
cmpq %r13, %r12
je 0x3af4a
movzbl %bl, %eax
leaq -0x1(%r15), %rcx
movq %rcx, -0x50(%rbp)
cmpl -0x44(%rbp), %eax
jne 0x3b024
cmpq -0x40(%rbp), %r15
je 0x3b024
movb (%r15), %bl
movq %r15, -0x50(%rbp)
movq -0x38(%rbp), %rdi
movq 0xb8(%rdi), %rax
movq -0x50(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq *0xc0(%rax)
xorl %ecx, %ecx
cmpl $0x2, %eax
movl %eax, %r15d
cmovll %ecx, %eax
movl %eax, -0x60(%rbp)
movq -0x38(%rbp), %rdi
movq 0xb8(%rdi), %rax
movq -0x50(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq *0xc0(%rax)
movl $0x1, %ecx
cmpl $0x2, %eax
jl 0x3b094
movq -0x38(%rbp), %rdi
movq 0xb8(%rdi), %rax
movq -0x50(%rbp), %rsi
movq -0x40(%rbp), %rdx
callq *0xc0(%rax)
movl %eax, %ecx
cmpl $0x2, %eax
movl $0x0, %eax
cmovll %eax, %ecx
addq -0x50(%rbp), %rcx
movq %rcx, -0x70(%rbp)
movq -0x38(%rbp), %rax
movq 0x58(%rax), %rax
movzbl %bl, %ecx
movb (%rax,%rcx), %al
movb %al, -0x29(%rbp)
movl -0x60(%rbp), %eax
movq %rax, -0x60(%rbp)
movq -0x68(%rbp), %rax
incl %eax
movq %rax, -0x68(%rbp)
cmpq %r13, %r12
jae 0x3af4a
movq %r12, %rbx
cmpl $0x2, %r15d
jge 0x3b101
movq -0x38(%rbp), %rdi
movq 0xb8(%rdi), %rax
movq %rbx, %rsi
movq %r13, %rdx
callq *0xc0(%rax)
cmpl $0x1, %eax
jg 0x3b122
movq -0x38(%rbp), %rax
movq 0x58(%rax), %rax
movzbl (%rbx), %ecx
movb -0x29(%rbp), %dl
cmpb %dl, (%rax,%rcx)
jne 0x3b122
jmp 0x3b178
movq -0x60(%rbp), %rax
leaq (%rbx,%rax), %r12
cmpq %r13, %r12
ja 0x3b122
movq %rbx, %rdi
movq -0x50(%rbp), %rsi
movq -0x60(%rbp), %rdx
callq 0x242e0
testl %eax, %eax
je 0x3b17e
movq -0x38(%rbp), %rdi
movq 0xb8(%rdi), %rax
movq %rbx, %rsi
movq %r13, %rdx
callq *0xc0(%rax)
movl %eax, %ecx
movl $0x1, %eax
cmpl $0x2, %ecx
jl 0x3b167
movq -0x38(%rbp), %rdi
movq 0xb8(%rdi), %rax
movq %rbx, %rsi
movq %r13, %rdx
callq *0xc0(%rax)
cmpl $0x2, %eax
movl $0x0, %ecx
cmovll %ecx, %eax
addq %rax, %rbx
cmpq %r13, %rbx
jb 0x3b0ca
jmp 0x3af4a
incq %rbx
movq %rbx, %r12
subq $0x8, %rsp
movq -0x38(%rbp), %rdi
movq %r12, %rsi
movq %r13, %rdx
movq -0x70(%rbp), %rcx
movq -0x40(%rbp), %r8
movl -0x44(%rbp), %r9d
pushq -0x68(%rbp)
movl 0x18(%rbp), %eax
pushq %rax
movl 0x10(%rbp), %eax
pushq %rax
callq 0x3ad5f
addq $0x20, %rsp
testl %eax, %eax
jle 0x3b1c9
cmpq %r13, %r12
jne 0x3b0be
jmp 0x3af4a
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
jmp 0x3af4a
movl %eax, %r14d
jmp 0x3af4a
| my_wildcmp_mb_impl:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov [rbp+var_44], r9d
mov [rbp+var_40], r8
mov r15, rcx
mov [rbp+var_58], rdx
mov r12, rsi
mov [rbp+var_38], rdi
mov eax, [rbp+arg_10]
mov [rbp+var_68], rax
lea rax, my_string_stack_guard
mov rax, [rax]
test rax, rax
jz short loc_3ADAF
mov edi, [rbp+arg_10]
call rax
mov r14d, 1
test eax, eax
jnz loc_3AF4A
loc_3ADAF:
mov edi, [rbp+arg_0]
mov r14d, 0FFFFFFFFh
loc_3ADB8:
cmp r15, [rbp+var_40]
jz loc_3AF3C
mov al, [r15]
movsx ecx, al
mov edx, [rbp+arg_8]
cmp ecx, edx
setz sil
cmp ecx, edi
setz dl
or sil, dl
mov r13, [rbp+var_58]
jz loc_3AE78
loc_3ADE3:
test dl, dl
jz short loc_3AE65
inc r15
mov rax, r15
mov rbx, [rbp+var_38]
loc_3ADF1:
cmp r12, r13
jz loc_3AF4A
mov r15, rax
mov rax, [rbx+0B8h]
mov rdi, rbx
mov rsi, r12
mov rdx, r13
call qword ptr [rax+0C0h]
mov ecx, eax
mov eax, 1
cmp ecx, 2
jl short loc_3AE40
mov rax, [rbx+0B8h]
mov rdi, rbx
mov rsi, r12
mov rdx, r13
call qword ptr [rax+0C0h]
cmp eax, 2
mov ecx, 0
cmovl eax, ecx
loc_3AE40:
add r12, rax
cmp r15, [rbp+var_40]
mov edi, [rbp+arg_0]
jnb short loc_3AE58
movsx ecx, byte ptr [r15]
lea rax, [r15+1]
cmp ecx, edi
jz short loc_3ADF1
loc_3AE58:
cmp r15, [rbp+var_40]
jz loc_3AF40
mov al, [r15]
loc_3AE65:
movsx eax, al
mov ecx, [rbp+arg_8]
cmp eax, ecx
jnz loc_3ADB8
jmp loc_3AF5C
loc_3AE78:
lea rbx, [r15+1]
mov rdx, [rbp+var_40]
cmp rbx, rdx
cmovz rbx, r15
cmp ecx, [rbp+var_44]
cmovnz rbx, r15
mov rdi, [rbp+var_38]
mov rax, [rdi+0B8h]
mov rsi, rbx
call qword ptr [rax+0C0h]
cmp eax, 2
jge short loc_3AEDC
mov r14d, 1
cmp r12, r13
jz loc_3AF4A
mov rax, [rbp+var_38]
mov rax, [rax+58h]
movzx ecx, byte ptr [rbx]
mov cl, [rax+rcx]
movzx edx, byte ptr [r12]
cmp cl, [rax+rdx]
mov edi, [rbp+arg_0]
jnz short loc_3AF4A
inc rbx
inc r12
mov r15, rbx
jmp short loc_3AF0F
loc_3AEDC:
mov r15d, eax
mov rax, r13
lea r13, [r12+r15]
mov r14d, 1
cmp r13, rax
ja short loc_3AF4A
mov rdi, r12
mov rsi, rbx
mov rdx, r15
call _bcmp
test eax, eax
mov edi, [rbp+arg_0]
jnz short loc_3AF4A
add rbx, r15
mov r15, rbx
mov r12, r13
loc_3AF0F:
cmp r15, [rbp+var_40]
mov r13, [rbp+var_58]
jz short loc_3AF40
mov al, [r15]
movsx ecx, al
cmp ecx, edi
setz dl
mov esi, [rbp+arg_8]
cmp ecx, esi
jz loc_3ADE3
cmp ecx, edi
jnz loc_3AE78
jmp loc_3ADE3
loc_3AF3C:
mov r13, [rbp+var_58]
loc_3AF40:
xor r14d, r14d
cmp r12, r13
setnz r14b
loc_3AF4A:
mov eax, r14d
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3AF5C:
lea rax, [r15+1]
cmp rax, [rbp+var_40]
jz loc_3AFEC
add r15, 2
xor r13d, r13d
xor r14d, r14d
loc_3AF74:
mov bl, [r15-1]
movsx eax, bl
mov ecx, [rbp+arg_8]
cmp eax, ecx
jz short loc_3AFDA
cmp eax, edi
jnz short loc_3AFF4
mov rbx, [rbp+var_58]
cmp r12, rbx
jz loc_3B1BE
mov rdi, [rbp+var_38]
mov rax, [rdi+0B8h]
mov rsi, r12
mov rdx, rbx
call qword ptr [rax+0C0h]
mov ecx, eax
mov eax, 1
cmp ecx, 2
jl short loc_3AFD4
mov rdi, [rbp+var_38]
mov rax, [rdi+0B8h]
mov rsi, r12
mov rdx, rbx
call qword ptr [rax+0C0h]
cmp eax, 2
cmovl eax, r13d
loc_3AFD4:
add r12, rax
mov edi, [rbp+arg_0]
loc_3AFDA:
lea rax, [r15+1]
cmp r15, [rbp+var_40]
mov r15, rax
jnz short loc_3AF74
jmp loc_3AF4A
loc_3AFEC:
xor r14d, r14d
jmp loc_3AF4A
loc_3AFF4:
mov r14d, 0FFFFFFFFh
mov r13, [rbp+var_58]
cmp r12, r13
jz loc_3AF4A
movzx eax, bl
lea rcx, [r15-1]
mov [rbp+var_50], rcx
cmp eax, [rbp+var_44]
jnz short loc_3B024
cmp r15, [rbp+var_40]
jz short loc_3B024
mov bl, [r15]
mov [rbp+var_50], r15
loc_3B024:
mov rdi, [rbp+var_38]
mov rax, [rdi+0B8h]
mov rsi, [rbp+var_50]
mov rdx, [rbp+var_40]
call qword ptr [rax+0C0h]
xor ecx, ecx
cmp eax, 2
mov r15d, eax
cmovl eax, ecx
mov dword ptr [rbp+var_60], eax
mov rdi, [rbp+var_38]
mov rax, [rdi+0B8h]
mov rsi, [rbp+var_50]
mov rdx, [rbp+var_40]
call qword ptr [rax+0C0h]
mov ecx, 1
cmp eax, 2
jl short loc_3B094
mov rdi, [rbp+var_38]
mov rax, [rdi+0B8h]
mov rsi, [rbp+var_50]
mov rdx, [rbp+var_40]
call qword ptr [rax+0C0h]
mov ecx, eax
cmp eax, 2
mov eax, 0
cmovl ecx, eax
loc_3B094:
add rcx, [rbp+var_50]
mov [rbp+var_70], rcx
mov rax, [rbp+var_38]
mov rax, [rax+58h]
movzx ecx, bl
mov al, [rax+rcx]
mov [rbp+var_29], al
mov eax, dword ptr [rbp+var_60]
mov [rbp+var_60], rax
mov rax, [rbp+var_68]
inc eax
mov [rbp+var_68], rax
loc_3B0BE:
cmp r12, r13
jnb loc_3AF4A
mov rbx, r12
loc_3B0CA:
cmp r15d, 2
jge short loc_3B101
mov rdi, [rbp+var_38]
mov rax, [rdi+0B8h]
mov rsi, rbx
mov rdx, r13
call qword ptr [rax+0C0h]
cmp eax, 1
jg short loc_3B122
mov rax, [rbp+var_38]
mov rax, [rax+58h]
movzx ecx, byte ptr [rbx]
mov dl, [rbp+var_29]
cmp [rax+rcx], dl
jnz short loc_3B122
jmp short loc_3B178
loc_3B101:
mov rax, [rbp+var_60]
lea r12, [rbx+rax]
cmp r12, r13
ja short loc_3B122
mov rdi, rbx
mov rsi, [rbp+var_50]
mov rdx, [rbp+var_60]
call _bcmp
test eax, eax
jz short loc_3B17E
loc_3B122:
mov rdi, [rbp+var_38]
mov rax, [rdi+0B8h]
mov rsi, rbx
mov rdx, r13
call qword ptr [rax+0C0h]
mov ecx, eax
mov eax, 1
cmp ecx, 2
jl short loc_3B167
mov rdi, [rbp+var_38]
mov rax, [rdi+0B8h]
mov rsi, rbx
mov rdx, r13
call qword ptr [rax+0C0h]
cmp eax, 2
mov ecx, 0
cmovl eax, ecx
loc_3B167:
add rbx, rax
cmp rbx, r13
jb loc_3B0CA
jmp loc_3AF4A
loc_3B178:
inc rbx
mov r12, rbx
loc_3B17E:
sub rsp, 8
mov rdi, [rbp+var_38]
mov rsi, r12
mov rdx, r13
mov rcx, [rbp+var_70]
mov r8, [rbp+var_40]
mov r9d, [rbp+var_44]
push [rbp+var_68]
mov eax, [rbp+arg_8]
push rax
mov eax, [rbp+arg_0]
push rax
call my_wildcmp_mb_impl
add rsp, 20h
test eax, eax
jle short loc_3B1C9
cmp r12, r13
jnz loc_3B0BE
jmp loc_3AF4A
loc_3B1BE:
mov r14d, 0FFFFFFFFh
jmp loc_3AF4A
loc_3B1C9:
mov r14d, eax
jmp loc_3AF4A
| long long my_wildcmp_mb_impl(
long long a1,
unsigned __int8 *a2,
unsigned __int8 *a3,
char *a4,
char *a5,
int a6,
int a7,
int a8,
unsigned int a9)
{
unsigned int v11; // r14d
int v12; // edi
char v13; // al
int v14; // ecx
bool v15; // dl
unsigned __int8 *v16; // r13
char *v17; // rax
int v18; // ecx
long long v19; // rax
unsigned __int8 *v20; // rbx
int v21; // eax
long long v22; // r15
unsigned __int8 *v23; // rax
unsigned __int8 *v24; // r13
char *v26; // r15
unsigned __int8 v27; // bl
int v28; // ecx
long long v29; // rax
int v31; // eax
int v32; // r15d
int v33; // eax
int v34; // ecx
unsigned __int8 *v35; // rbx
int v36; // ecx
long long v37; // rax
int v38; // eax
int v39; // [rsp+0h] [rbp-70h]
unsigned int v40; // [rsp+10h] [rbp-60h]
char *v42; // [rsp+20h] [rbp-50h]
char v46; // [rsp+47h] [rbp-29h]
if ( !my_string_stack_guard || (v11 = 1, !(unsigned int)my_string_stack_guard(a9)) )
{
v12 = a7;
v11 = -1;
do
{
if ( a4 == a5 )
{
v16 = a3;
return a2 != v16;
}
v13 = *a4;
v14 = *a4;
v15 = v14 == v12;
v16 = a3;
if ( v14 != v12 && v14 != a8 )
{
do
{
v20 = (unsigned __int8 *)(a4 + 1);
if ( a4 + 1 == a5 )
v20 = (unsigned __int8 *)a4;
if ( v14 != a6 )
v20 = (unsigned __int8 *)a4;
v21 = (*(long long ( **)(long long, unsigned __int8 *))(*(_QWORD *)(a1 + 184) + 192LL))(a1, v20);
if ( v21 >= 2 )
{
v22 = (unsigned int)v21;
v23 = v16;
v24 = &a2[v22];
v11 = 1;
if ( &a2[v22] > v23 )
return v11;
v12 = a7;
if ( (unsigned int)bcmp(a2, v20, v22) )
return v11;
a4 = (char *)&v20[v22];
a2 = v24;
}
else
{
v11 = 1;
if ( a2 == v16 )
return v11;
v12 = a7;
if ( *(_BYTE *)(*(_QWORD *)(a1 + 88) + *v20) != *(_BYTE *)(*(_QWORD *)(a1 + 88) + *a2) )
return v11;
++a2;
a4 = (char *)(v20 + 1);
}
v16 = a3;
if ( a4 == a5 )
return a2 != v16;
v13 = *a4;
v14 = *a4;
v15 = v14 == v12;
}
while ( v14 != a8 && v14 != v12 );
}
if ( v15 )
{
v17 = a4 + 1;
do
{
if ( a2 == v16 )
return v11;
a4 = v17;
v18 = (*(long long ( **)(long long, unsigned __int8 *, unsigned __int8 *))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
a2,
v16);
v19 = 1LL;
if ( v18 >= 2 )
{
v19 = (*(long long ( **)(long long, unsigned __int8 *, unsigned __int8 *))(*(_QWORD *)(a1 + 184)
+ 192LL))(
a1,
a2,
v16);
if ( (int)v19 < 2 )
v19 = 0LL;
}
a2 += v19;
v12 = a7;
if ( a4 >= a5 )
break;
v17 = a4 + 1;
}
while ( *a4 == a7 );
if ( a4 == a5 )
return a2 != v16;
v13 = *a4;
}
}
while ( v13 != a8 );
if ( a4 + 1 == a5 )
{
return 0;
}
else
{
v26 = a4 + 2;
v11 = 0;
while ( 1 )
{
v27 = *(v26 - 1);
if ( (char)v27 == a8 )
goto LABEL_45;
if ( (char)v27 != v12 )
break;
if ( a2 == a3 )
return (unsigned int)-1;
v28 = (*(long long ( **)(long long, unsigned __int8 *, unsigned __int8 *))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
a2,
a3);
v29 = 1LL;
if ( v28 >= 2 )
{
v29 = (*(long long ( **)(long long, unsigned __int8 *, unsigned __int8 *))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
a2,
a3);
if ( (int)v29 < 2 )
v29 = 0LL;
}
a2 += v29;
v12 = a7;
LABEL_45:
if ( v26++ == a5 )
return v11;
}
v11 = -1;
if ( a2 != a3 )
{
v42 = v26 - 1;
if ( v27 == a6 && v26 != a5 )
{
v27 = *v26;
v42 = v26;
}
v31 = (*(long long ( **)(long long, char *, char *))(*(_QWORD *)(a1 + 184) + 192LL))(a1, v42, a5);
v32 = v31;
if ( v31 < 2 )
v31 = 0;
v40 = v31;
v33 = (*(long long ( **)(long long, char *, char *))(*(_QWORD *)(a1 + 184) + 192LL))(a1, v42, a5);
v34 = 1;
if ( v33 >= 2 )
{
v34 = (*(long long ( **)(long long, char *, char *, long long))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
v42,
a5,
1LL);
if ( v34 < 2 )
v34 = 0;
}
v39 = (_DWORD)v42 + v34;
v46 = *(_BYTE *)(*(_QWORD *)(a1 + 88) + v27);
do
{
if ( a2 >= a3 )
return v11;
v35 = a2;
while ( v32 >= 2 )
{
a2 = &v35[v40];
if ( a2 <= a3 && !(unsigned int)bcmp(v35, v42, v40) )
goto LABEL_71;
LABEL_66:
v36 = (*(long long ( **)(long long, unsigned __int8 *, unsigned __int8 *))(*(_QWORD *)(a1 + 184)
+ 192LL))(
a1,
v35,
a3);
v37 = 1LL;
if ( v36 >= 2 )
{
v37 = (*(long long ( **)(long long, unsigned __int8 *, unsigned __int8 *))(*(_QWORD *)(a1 + 184)
+ 192LL))(
a1,
v35,
a3);
if ( (int)v37 < 2 )
v37 = 0LL;
}
v35 += v37;
if ( v35 >= a3 )
return v11;
}
if ( (*(int ( **)(long long, unsigned __int8 *, unsigned __int8 *))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
v35,
a3) > 1
|| *(_BYTE *)(*(_QWORD *)(a1 + 88) + *v35) != v46 )
{
goto LABEL_66;
}
a2 = v35 + 1;
LABEL_71:
v38 = my_wildcmp_mb_impl(a1, (_DWORD)a2, (_DWORD)a3, v39, (_DWORD)a5, a6, a7, a8, a9 + 1);
if ( v38 <= 0 )
return (unsigned int)v38;
}
while ( a2 != a3 );
}
}
}
return v11;
}
| my_wildcmp_mb_impl:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV dword ptr [RBP + -0x44],R9D
MOV qword ptr [RBP + -0x40],R8
MOV R15,RCX
MOV qword ptr [RBP + -0x58],RDX
MOV R12,RSI
MOV qword ptr [RBP + -0x38],RDI
MOV EAX,dword ptr [RBP + 0x20]
MOV qword ptr [RBP + -0x68],RAX
LEA RAX,[0x4763f8]
MOV RAX,qword ptr [RAX]
TEST RAX,RAX
JZ 0x0013adaf
MOV EDI,dword ptr [RBP + 0x20]
CALL RAX
MOV R14D,0x1
TEST EAX,EAX
JNZ 0x0013af4a
LAB_0013adaf:
MOV EDI,dword ptr [RBP + 0x10]
MOV R14D,0xffffffff
LAB_0013adb8:
CMP R15,qword ptr [RBP + -0x40]
JZ 0x0013af3c
MOV AL,byte ptr [R15]
MOVSX ECX,AL
MOV EDX,dword ptr [RBP + 0x18]
CMP ECX,EDX
SETZ SIL
CMP ECX,EDI
SETZ DL
OR SIL,DL
MOV R13,qword ptr [RBP + -0x58]
JZ 0x0013ae78
LAB_0013ade3:
TEST DL,DL
JZ 0x0013ae65
INC R15
MOV RAX,R15
MOV RBX,qword ptr [RBP + -0x38]
LAB_0013adf1:
CMP R12,R13
JZ 0x0013af4a
MOV R15,RAX
MOV RAX,qword ptr [RBX + 0xb8]
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R13
CALL qword ptr [RAX + 0xc0]
MOV ECX,EAX
MOV EAX,0x1
CMP ECX,0x2
JL 0x0013ae40
MOV RAX,qword ptr [RBX + 0xb8]
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R13
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x2
MOV ECX,0x0
CMOVL EAX,ECX
LAB_0013ae40:
ADD R12,RAX
CMP R15,qword ptr [RBP + -0x40]
MOV EDI,dword ptr [RBP + 0x10]
JNC 0x0013ae58
MOVSX ECX,byte ptr [R15]
LEA RAX,[R15 + 0x1]
CMP ECX,EDI
JZ 0x0013adf1
LAB_0013ae58:
CMP R15,qword ptr [RBP + -0x40]
JZ 0x0013af40
MOV AL,byte ptr [R15]
LAB_0013ae65:
MOVSX EAX,AL
MOV ECX,dword ptr [RBP + 0x18]
CMP EAX,ECX
JNZ 0x0013adb8
JMP 0x0013af5c
LAB_0013ae78:
LEA RBX,[R15 + 0x1]
MOV RDX,qword ptr [RBP + -0x40]
CMP RBX,RDX
CMOVZ RBX,R15
CMP ECX,dword ptr [RBP + -0x44]
CMOVNZ RBX,R15
MOV RDI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RDI + 0xb8]
MOV RSI,RBX
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x2
JGE 0x0013aedc
MOV R14D,0x1
CMP R12,R13
JZ 0x0013af4a
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x58]
MOVZX ECX,byte ptr [RBX]
MOV CL,byte ptr [RAX + RCX*0x1]
MOVZX EDX,byte ptr [R12]
CMP CL,byte ptr [RAX + RDX*0x1]
MOV EDI,dword ptr [RBP + 0x10]
JNZ 0x0013af4a
INC RBX
INC R12
MOV R15,RBX
JMP 0x0013af0f
LAB_0013aedc:
MOV R15D,EAX
MOV RAX,R13
LEA R13,[R12 + R15*0x1]
MOV R14D,0x1
CMP R13,RAX
JA 0x0013af4a
MOV RDI,R12
MOV RSI,RBX
MOV RDX,R15
CALL 0x001242e0
TEST EAX,EAX
MOV EDI,dword ptr [RBP + 0x10]
JNZ 0x0013af4a
ADD RBX,R15
MOV R15,RBX
MOV R12,R13
LAB_0013af0f:
CMP R15,qword ptr [RBP + -0x40]
MOV R13,qword ptr [RBP + -0x58]
JZ 0x0013af40
MOV AL,byte ptr [R15]
MOVSX ECX,AL
CMP ECX,EDI
SETZ DL
MOV ESI,dword ptr [RBP + 0x18]
CMP ECX,ESI
JZ 0x0013ade3
CMP ECX,EDI
JNZ 0x0013ae78
JMP 0x0013ade3
LAB_0013af3c:
MOV R13,qword ptr [RBP + -0x58]
LAB_0013af40:
XOR R14D,R14D
CMP R12,R13
SETNZ R14B
LAB_0013af4a:
MOV EAX,R14D
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013af5c:
LEA RAX,[R15 + 0x1]
CMP RAX,qword ptr [RBP + -0x40]
JZ 0x0013afec
ADD R15,0x2
XOR R13D,R13D
XOR R14D,R14D
LAB_0013af74:
MOV BL,byte ptr [R15 + -0x1]
MOVSX EAX,BL
MOV ECX,dword ptr [RBP + 0x18]
CMP EAX,ECX
JZ 0x0013afda
CMP EAX,EDI
JNZ 0x0013aff4
MOV RBX,qword ptr [RBP + -0x58]
CMP R12,RBX
JZ 0x0013b1be
MOV RDI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RDI + 0xb8]
MOV RSI,R12
MOV RDX,RBX
CALL qword ptr [RAX + 0xc0]
MOV ECX,EAX
MOV EAX,0x1
CMP ECX,0x2
JL 0x0013afd4
MOV RDI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RDI + 0xb8]
MOV RSI,R12
MOV RDX,RBX
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x2
CMOVL EAX,R13D
LAB_0013afd4:
ADD R12,RAX
MOV EDI,dword ptr [RBP + 0x10]
LAB_0013afda:
LEA RAX,[R15 + 0x1]
CMP R15,qword ptr [RBP + -0x40]
MOV R15,RAX
JNZ 0x0013af74
JMP 0x0013af4a
LAB_0013afec:
XOR R14D,R14D
JMP 0x0013af4a
LAB_0013aff4:
MOV R14D,0xffffffff
MOV R13,qword ptr [RBP + -0x58]
CMP R12,R13
JZ 0x0013af4a
MOVZX EAX,BL
LEA RCX,[R15 + -0x1]
MOV qword ptr [RBP + -0x50],RCX
CMP EAX,dword ptr [RBP + -0x44]
JNZ 0x0013b024
CMP R15,qword ptr [RBP + -0x40]
JZ 0x0013b024
MOV BL,byte ptr [R15]
MOV qword ptr [RBP + -0x50],R15
LAB_0013b024:
MOV RDI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RDI + 0xb8]
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x40]
CALL qword ptr [RAX + 0xc0]
XOR ECX,ECX
CMP EAX,0x2
MOV R15D,EAX
CMOVL EAX,ECX
MOV dword ptr [RBP + -0x60],EAX
MOV RDI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RDI + 0xb8]
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x40]
CALL qword ptr [RAX + 0xc0]
MOV ECX,0x1
CMP EAX,0x2
JL 0x0013b094
MOV RDI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RDI + 0xb8]
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x40]
CALL qword ptr [RAX + 0xc0]
MOV ECX,EAX
CMP EAX,0x2
MOV EAX,0x0
CMOVL ECX,EAX
LAB_0013b094:
ADD RCX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x70],RCX
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x58]
MOVZX ECX,BL
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RBP + -0x29],AL
MOV EAX,dword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x68]
INC EAX
MOV qword ptr [RBP + -0x68],RAX
LAB_0013b0be:
CMP R12,R13
JNC 0x0013af4a
MOV RBX,R12
LAB_0013b0ca:
CMP R15D,0x2
JGE 0x0013b101
MOV RDI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RDI + 0xb8]
MOV RSI,RBX
MOV RDX,R13
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x1
JG 0x0013b122
MOV RAX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RAX + 0x58]
MOVZX ECX,byte ptr [RBX]
MOV DL,byte ptr [RBP + -0x29]
CMP byte ptr [RAX + RCX*0x1],DL
JNZ 0x0013b122
JMP 0x0013b178
LAB_0013b101:
MOV RAX,qword ptr [RBP + -0x60]
LEA R12,[RBX + RAX*0x1]
CMP R12,R13
JA 0x0013b122
MOV RDI,RBX
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x60]
CALL 0x001242e0
TEST EAX,EAX
JZ 0x0013b17e
LAB_0013b122:
MOV RDI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RDI + 0xb8]
MOV RSI,RBX
MOV RDX,R13
CALL qword ptr [RAX + 0xc0]
MOV ECX,EAX
MOV EAX,0x1
CMP ECX,0x2
JL 0x0013b167
MOV RDI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RDI + 0xb8]
MOV RSI,RBX
MOV RDX,R13
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x2
MOV ECX,0x0
CMOVL EAX,ECX
LAB_0013b167:
ADD RBX,RAX
CMP RBX,R13
JC 0x0013b0ca
JMP 0x0013af4a
LAB_0013b178:
INC RBX
MOV R12,RBX
LAB_0013b17e:
SUB RSP,0x8
MOV RDI,qword ptr [RBP + -0x38]
MOV RSI,R12
MOV RDX,R13
MOV RCX,qword ptr [RBP + -0x70]
MOV R8,qword ptr [RBP + -0x40]
MOV R9D,dword ptr [RBP + -0x44]
PUSH qword ptr [RBP + -0x68]
MOV EAX,dword ptr [RBP + 0x18]
PUSH RAX
MOV EAX,dword ptr [RBP + 0x10]
PUSH RAX
CALL 0x0013ad5f
ADD RSP,0x20
TEST EAX,EAX
JLE 0x0013b1c9
CMP R12,R13
JNZ 0x0013b0be
JMP 0x0013af4a
LAB_0013b1be:
MOV R14D,0xffffffff
JMP 0x0013af4a
LAB_0013b1c9:
MOV R14D,EAX
JMP 0x0013af4a
|
uint my_wildcmp_mb_impl(long param_1,byte *param_2,byte *param_3,byte *param_4,byte *param_5,
uint param_6,uint param_7,uint param_8,int param_9)
{
char cVar1;
byte bVar2;
int iVar3;
uint uVar4;
uint uVar5;
ulong uVar6;
ulong uVar7;
uint uVar8;
byte *__s2;
byte *pbVar9;
bool bVar10;
byte *local_58;
if ((my_string_stack_guard != (code *)0x0) &&
(iVar3 = (*my_string_stack_guard)(param_9), iVar3 != 0)) {
return 1;
}
uVar4 = 0xffffffff;
do {
if (param_4 == param_5) {
LAB_0013af40:
return (uint)(param_2 != param_3);
}
bVar2 = *param_4;
uVar8 = (uint)(char)bVar2;
bVar10 = uVar8 == param_7;
pbVar9 = param_2;
if (uVar8 != param_8 && !bVar10) {
do {
__s2 = param_4 + 1;
if (param_4 + 1 == param_5) {
__s2 = param_4;
}
if (uVar8 != param_6) {
__s2 = param_4;
}
uVar4 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,__s2);
if ((int)uVar4 < 2) {
if (pbVar9 == param_3) {
return 1;
}
if (*(char *)(*(long *)(param_1 + 0x58) + (ulong)*__s2) !=
*(char *)(*(long *)(param_1 + 0x58) + (ulong)*pbVar9)) {
return 1;
}
param_4 = __s2 + 1;
param_2 = pbVar9 + 1;
}
else {
uVar6 = (ulong)uVar4;
param_2 = pbVar9 + uVar6;
if (param_3 < param_2) {
return 1;
}
iVar3 = bcmp(pbVar9,__s2,uVar6);
if (iVar3 != 0) {
return 1;
}
param_4 = __s2 + uVar6;
}
uVar4 = 1;
if (param_4 == param_5) goto LAB_0013af40;
bVar2 = *param_4;
uVar8 = (uint)(char)bVar2;
bVar10 = uVar8 == param_7;
} while ((uVar8 != param_8) && (pbVar9 = param_2, uVar8 != param_7));
}
if (bVar10) {
do {
param_4 = param_4 + 1;
if (param_2 == param_3) {
return uVar4;
}
iVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,param_3);
uVar6 = 1;
if (1 < iVar3) {
uVar8 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,param_3);
uVar6 = (ulong)uVar8;
if ((int)uVar8 < 2) {
uVar6 = 0;
}
}
param_2 = param_2 + uVar6;
} while ((param_4 < param_5) && ((int)(char)*param_4 == param_7));
if (param_4 == param_5) goto LAB_0013af40;
bVar2 = *param_4;
}
} while ((int)(char)bVar2 != param_8);
if (param_4 + 1 != param_5) {
pbVar9 = param_4 + 2;
do {
bVar2 = pbVar9[-1];
if ((int)(char)bVar2 != param_8) {
if ((int)(char)bVar2 != param_7) {
if (param_2 == param_3) {
return 0xffffffff;
}
local_58 = pbVar9 + -1;
if ((bVar2 == param_6) && (pbVar9 != param_5)) {
bVar2 = *pbVar9;
local_58 = pbVar9;
}
uVar8 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,local_58,param_5);
uVar4 = uVar8;
if ((int)uVar8 < 2) {
uVar4 = 0;
}
iVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,local_58,param_5);
uVar6 = 1;
if (1 < iVar3) {
uVar5 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,local_58,param_5);
uVar6 = (ulong)uVar5;
if ((int)uVar5 < 2) {
uVar6 = 0;
}
}
cVar1 = *(char *)(*(long *)(param_1 + 0x58) + (ulong)bVar2);
goto LAB_0013b0be;
}
if (param_2 == param_3) {
return 0xffffffff;
}
iVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,param_3);
uVar6 = 1;
if (1 < iVar3) {
uVar4 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,param_3);
uVar6 = (ulong)uVar4;
if ((int)uVar4 < 2) {
uVar6 = 0;
}
}
param_2 = param_2 + uVar6;
}
bVar10 = pbVar9 != param_5;
pbVar9 = pbVar9 + 1;
} while (bVar10);
}
return 0;
LAB_0013b0be:
if (param_3 <= param_2) {
return 0xffffffff;
}
do {
if ((int)uVar8 < 2) {
iVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,param_3);
if ((iVar3 < 2) && (*(char *)(*(long *)(param_1 + 0x58) + (ulong)*param_2) == cVar1)) break;
}
else {
pbVar9 = param_2 + uVar4;
if ((pbVar9 <= param_3) && (iVar3 = bcmp(param_2,local_58,(ulong)uVar4), iVar3 == 0))
goto LAB_0013b17e;
}
iVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,param_3);
uVar7 = 1;
if (1 < iVar3) {
uVar5 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,param_3);
uVar7 = (ulong)uVar5;
if ((int)uVar5 < 2) {
uVar7 = 0;
}
}
param_2 = param_2 + uVar7;
if (param_3 <= param_2) {
return 0xffffffff;
}
} while( true );
pbVar9 = param_2 + 1;
LAB_0013b17e:
uVar5 = my_wildcmp_mb_impl(param_1,pbVar9,param_3,local_58 + uVar6,param_5,param_6,param_7,param_8
,param_9 + 1);
if ((int)uVar5 < 1) {
return uVar5;
}
param_2 = pbVar9;
if (pbVar9 == param_3) {
return 0xffffffff;
}
goto LAB_0013b0be;
}
| |
28,152 | string_get_sortable_timestamp[abi:cxx11]() | llama.cpp/common/common.cpp | std::string string_get_sortable_timestamp() {
using clock = std::chrono::system_clock;
const clock::time_point current_time = clock::now();
const time_t as_time_t = clock::to_time_t(current_time);
char timestamp_no_ns[100];
std::strftime(timestamp_no_ns, 100, "%Y_%m_%d-%H_%M_%S", std::localtime(&as_time_t));
const int64_t ns = std::chrono::duration_cast<std::chrono::nanoseconds>(
current_time.time_since_epoch() % 1000000000).count();
char timestamp_ns[11];
snprintf(timestamp_ns, 11, "%09" PRId64, ns);
return std::string(timestamp_no_ns) + "." + std::string(timestamp_ns);
} | O3 | cpp | string_get_sortable_timestamp[abi:cxx11]():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rdi, %rbx
callq 0x20c60
movq %rax, %r14
movabsq $0x112e0be826d694b3, %rcx # imm = 0x112E0BE826D694B3
imulq %rcx
movq %rdx, %r12
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x1a, %r12
addq %rax, %r12
leaq 0x78(%rsp), %rdi
movq %r12, (%rdi)
callq 0x20b30
leaq 0x2d6db(%rip), %rdx # 0x12323c
leaq 0x80(%rsp), %r15
movl $0x64, %esi
movq %r15, %rdi
movq %rax, %rcx
callq 0x20f20
imulq $0x3b9aca00, %r12, %rax # imm = 0x3B9ACA00
subq %rax, %r14
leaq 0x2d6c4(%rip), %rdx # 0x12324e
leaq 0x4d(%rsp), %rdi
movl $0xb, %esi
movq %r14, %rcx
xorl %eax, %eax
callq 0x20890
leaq 0x68(%rsp), %r13
movq %r13, -0x10(%r13)
movq %r15, %rdi
callq 0x20690
leaq (%rsp,%rax), %rdx
addq $0x80, %rdx
leaq 0x58(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x27960
leaq 0x1fe8d(%rip), %rsi # 0x115a5e
movq %r14, %rdi
callq 0x20b50
movq %rax, %r15
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rax
movq %r15, %r12
addq $0x10, %r12
cmpq %r12, %rax
je 0xf5c08
movq %rax, 0x8(%rsp)
movq 0x10(%r15), %rax
movq %rax, 0x18(%rsp)
movq 0x8(%r15), %rbp
jmp 0xf5c1b
movq 0x8(%r15), %rbp
leaq 0x1(%rbp), %rdx
movq %r14, %rdi
movq %r12, %rsi
callq 0x200f0
movq %rbp, 0x10(%rsp)
movq %r12, (%r15)
movq $0x0, 0x8(%r15)
movb $0x0, 0x10(%r15)
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
leaq 0x4d(%rsp), %r15
movq %r15, %rdi
callq 0x20690
leaq (%rsp,%rax), %rdx
addq $0x4d, %rdx
leaq 0x28(%rsp), %rdi
movq %r15, %rsi
callq 0x27960
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x30(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r14, %rcx
je 0xf5c7d
movq 0x18(%rsp), %rdi
movq 0x28(%rsp), %rsi
cmpq %rdi, %rax
jbe 0xf5c9b
movl $0xf, %edi
cmpq %rbp, %rsi
je 0xf5c96
movq 0x38(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xf5ca7
leaq 0x8(%rsp), %rdi
callq 0x20570
jmp 0xf5cb5
leaq 0x28(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x20250
movq %rax, %r12
leaq 0x10(%rbx), %rdi
movq %rdi, (%rbx)
movq (%rax), %rax
leaq 0x10(%r12), %r15
cmpq %r15, %rax
je 0xf5cd8
movq %rax, (%rbx)
movq (%r15), %rax
movq %rax, 0x10(%rbx)
jmp 0xf5ce8
movq 0x8(%r12), %rdx
incq %rdx
movq %r15, %rsi
callq 0x200f0
movq %r12, %rax
addq $0x8, %rax
movq 0x8(%r12), %rcx
movq %rcx, 0x8(%rbx)
movq %r15, (%r12)
movq $0x0, (%rax)
movb $0x0, (%r15)
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0xf5d1e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x20190
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0xf5d35
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x20190
movq 0x58(%rsp), %rdi
cmpq %r13, %rdi
je 0xf5d4c
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x20190
movq %rbx, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0xf5d80
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x20190
jmp 0xf5d80
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0xf5d9c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x20190
jmp 0xf5d9c
movq %rax, %rbx
movq 0x58(%rsp), %rdi
cmpq %r13, %rdi
je 0xf5db3
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x20190
movq %rbx, %rdi
callq 0x20b00
| _Z29string_get_sortable_timestampB5cxx11v:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0E8h
mov rbx, rdi
call __ZNSt6chrono3_V212system_clock3nowEv; std::chrono::_V2::system_clock::now(void)
mov r14, rax
mov rcx, 112E0BE826D694B3h
imul rcx
mov r12, rdx
mov rax, rdx
shr rax, 3Fh
sar r12, 1Ah
add r12, rax
lea rdi, [rsp+118h+var_A0]
mov [rdi], r12
call _localtime
lea rdx, aYMDHMS; "%Y_%m_%d-%H_%M_%S"
lea r15, [rsp+118h+var_98]
mov esi, 64h ; 'd'
mov rdi, r15
mov rcx, rax
call _strftime
imul rax, r12, 3B9ACA00h
sub r14, rax
lea rdx, a09ld; "%09ld"
lea rdi, [rsp+118h+var_CB]
mov esi, 0Bh
mov rcx, r14
xor eax, eax
call _snprintf
lea r13, [rsp+118h+var_B0]
mov [r13-10h], r13
mov rdi, r15
call _strlen
lea rdx, [rsp+rax+118h+var_118]
add rdx, 80h
lea r14, [rsp+118h+var_C0]
mov rdi, r14
mov rsi, r15
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 rsi, aN0N1+8; "."
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*)
mov r15, rax
lea r14, [rsp+118h+var_100]
mov [r14-10h], r14
mov rax, [rax]
mov r12, r15
add r12, 10h
cmp rax, r12
jz short loc_F5C08
mov [rsp+118h+var_110], rax
mov rax, [r15+10h]
mov [rsp+118h+var_100], rax
mov rbp, [r15+8]
jmp short loc_F5C1B
loc_F5C08:
mov rbp, [r15+8]
lea rdx, [rbp+1]
mov rdi, r14
mov rsi, r12
call _memcpy
loc_F5C1B:
mov [rsp+118h+var_108], rbp
mov [r15], r12
mov qword ptr [r15+8], 0
mov byte ptr [r15+10h], 0
lea rbp, [rsp+118h+var_E0]
mov [rbp-10h], rbp
lea r15, [rsp+118h+var_CB]
mov rdi, r15
call _strlen
lea rdx, [rsp+rax+118h+var_118]
add rdx, 4Dh ; 'M'
lea rdi, [rsp+118h+var_F0]
mov rsi, r15
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+118h+var_110]
mov r8, [rsp+118h+var_108]
mov rdx, [rsp+118h+var_E8]
lea rax, [rdx+r8]
mov edi, 0Fh
cmp rcx, r14
jz short loc_F5C7D
mov rdi, [rsp+118h+var_100]
loc_F5C7D:
mov rsi, [rsp+118h+var_F0]
cmp rax, rdi
jbe short loc_F5C9B
mov edi, 0Fh
cmp rsi, rbp
jz short loc_F5C96
mov rdi, [rsp+118h+var_E0]
loc_F5C96:
cmp rax, rdi
jbe short loc_F5CA7
loc_F5C9B:
lea rdi, [rsp+118h+var_110]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm; std::string::append(char const*,ulong)
jmp short loc_F5CB5
loc_F5CA7:
lea rdi, [rsp+118h+var_F0]
xor esi, esi
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceEmmPKcm; std::string::replace(ulong,ulong,char const*,ulong)
loc_F5CB5:
mov r12, rax
lea rdi, [rbx+10h]
mov [rbx], rdi
mov rax, [rax]
lea r15, [r12+10h]
cmp rax, r15
jz short loc_F5CD8
mov [rbx], rax
mov rax, [r15]
mov [rbx+10h], rax
jmp short loc_F5CE8
loc_F5CD8:
mov rdx, [r12+8]
inc rdx
mov rsi, r15
call _memcpy
loc_F5CE8:
mov rax, r12
add rax, 8
mov rcx, [r12+8]
mov [rbx+8], rcx
mov [r12], r15
mov qword ptr [rax], 0
mov byte ptr [r15], 0
mov rdi, [rsp+118h+var_F0]; void *
cmp rdi, rbp
jz short loc_F5D1E
mov rsi, [rsp+118h+var_E0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_F5D1E:
mov rdi, [rsp+118h+var_110]; void *
cmp rdi, r14
jz short loc_F5D35
mov rsi, [rsp+118h+var_100]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_F5D35:
mov rdi, [rsp+118h+var_C0]; void *
cmp rdi, r13
jz short loc_F5D4C
mov rsi, [rsp+118h+var_B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_F5D4C:
mov rax, rbx
add rsp, 0E8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+arg_20]; void *
cmp rdi, rbp
jz short loc_F5D80
mov rsi, [rsp+arg_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_F5D80
mov rbx, rax
loc_F5D80:
mov rdi, [rsp+arg_0]; void *
cmp rdi, r14
jz short loc_F5D9C
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_F5D9C
mov rbx, rax
loc_F5D9C:
mov rdi, [rsp+arg_50]; void *
cmp rdi, r13
jz short loc_F5DB3
mov rsi, [rsp+arg_60]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_F5DB3:
mov rdi, rbx
call __Unwind_Resume
| std::chrono::_V2::system_clock * string_get_sortable_timestamp[abi:cxx11](std::chrono::_V2::system_clock *a1)
{
long long v2; // r14
long long v3; // rax
long long v4; // rax
long long v5; // r15
long long v6; // rbp
long long v7; // rax
unsigned long long v8; // rax
unsigned long long v9; // rdi
unsigned long long v10; // rdi
_QWORD *v11; // rax
_QWORD *v12; // r12
_QWORD *v13; // rax
_QWORD *v14; // r15
void *v16; // [rsp+8h] [rbp-110h] BYREF
long long v17; // [rsp+10h] [rbp-108h]
_QWORD v18[2]; // [rsp+18h] [rbp-100h] BYREF
void *v19; // [rsp+28h] [rbp-F0h] BYREF
long long v20; // [rsp+30h] [rbp-E8h]
_QWORD v21[2]; // [rsp+38h] [rbp-E0h] BYREF
_BYTE v22[11]; // [rsp+4Dh] [rbp-CBh] BYREF
void *v23[2]; // [rsp+58h] [rbp-C0h] BYREF
_QWORD v24[3]; // [rsp+68h] [rbp-B0h] BYREF
_BYTE v25[152]; // [rsp+80h] [rbp-98h] BYREF
v2 = std::chrono::_V2::system_clock::now(a1);
v24[2] = v2 / 1000000000;
v3 = localtime();
strftime(v25, 100LL, "%Y_%m_%d-%H_%M_%S", v3);
snprintf(v22, 11LL, "%09ld", v2 % 1000000000);
v23[0] = v24;
v4 = strlen(v25);
std::string::_M_construct<char const*>((long long)v23, v25, (long long)&v25[v4]);
v5 = std::string::append(v23, ".");
v16 = v18;
if ( *(_QWORD *)v5 == v5 + 16 )
{
v6 = *(_QWORD *)(v5 + 8);
memcpy(v18, v5 + 16, v6 + 1);
}
else
{
v16 = *(void **)v5;
v18[0] = *(_QWORD *)(v5 + 16);
v6 = *(_QWORD *)(v5 + 8);
}
v17 = v6;
*(_QWORD *)v5 = v5 + 16;
*(_QWORD *)(v5 + 8) = 0LL;
*(_BYTE *)(v5 + 16) = 0;
v19 = v21;
v7 = strlen(v22);
std::string::_M_construct<char const*>((long long)&v19, v22, (long long)&v22[v7]);
v8 = v20 + v17;
v9 = 15LL;
if ( v16 != v18 )
v9 = v18[0];
if ( v8 <= v9 )
goto LABEL_10;
v10 = 15LL;
if ( v19 != v21 )
v10 = v21[0];
if ( v8 <= v10 )
v11 = (_QWORD *)std::string::replace(&v19, 0LL, 0LL);
else
LABEL_10:
v11 = (_QWORD *)std::string::append(&v16, v19, v20);
v12 = v11;
*(_QWORD *)a1 = (char *)a1 + 16;
v13 = (_QWORD *)*v11;
v14 = v12 + 2;
if ( v13 == v12 + 2 )
{
memcpy((char *)a1 + 16, v12 + 2, v12[1] + 1LL);
}
else
{
*(_QWORD *)a1 = v13;
*((_QWORD *)a1 + 2) = *v14;
}
*((_QWORD *)a1 + 1) = v12[1];
*v12 = v14;
v12[1] = 0LL;
*(_BYTE *)v14 = 0;
if ( v19 != v21 )
operator delete(v19, v21[0] + 1LL);
if ( v16 != v18 )
operator delete(v16, v18[0] + 1LL);
if ( v23[0] != v24 )
operator delete(v23[0], v24[0] + 1LL);
return a1;
}
| string_get_sortable_timestamp[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xe8
MOV RBX,RDI
CALL 0x00120c60
MOV R14,RAX
MOV RCX,0x112e0be826d694b3
IMUL RCX
MOV R12,RDX
MOV RAX,RDX
SHR RAX,0x3f
SAR R12,0x1a
ADD R12,RAX
LEA RDI,[RSP + 0x78]
MOV qword ptr [RDI],R12
CALL 0x00120b30
LEA RDX,[0x22323c]
LEA R15,[RSP + 0x80]
MOV ESI,0x64
MOV RDI,R15
MOV RCX,RAX
CALL 0x00120f20
IMUL RAX,R12,0x3b9aca00
SUB R14,RAX
LEA RDX,[0x22324e]
LEA RDI,[RSP + 0x4d]
MOV ESI,0xb
MOV RCX,R14
XOR EAX,EAX
CALL 0x00120890
LEA R13,[RSP + 0x68]
MOV qword ptr [R13 + -0x10],R13
MOV RDI,R15
CALL 0x00120690
LEA RDX,[RSP + RAX*0x1]
ADD RDX,0x80
LEA R14,[RSP + 0x58]
MOV RDI,R14
MOV RSI,R15
CALL 0x00127960
LAB_001f5bca:
LEA RSI,[0x215a5e]
MOV RDI,R14
CALL 0x00120b50
LAB_001f5bd9:
MOV R15,RAX
LEA R14,[RSP + 0x18]
MOV qword ptr [R14 + -0x10],R14
MOV RAX,qword ptr [RAX]
MOV R12,R15
ADD R12,0x10
CMP RAX,R12
JZ 0x001f5c08
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [R15 + 0x10]
MOV qword ptr [RSP + 0x18],RAX
MOV RBP,qword ptr [R15 + 0x8]
JMP 0x001f5c1b
LAB_001f5c08:
MOV RBP,qword ptr [R15 + 0x8]
LEA RDX,[RBP + 0x1]
MOV RDI,R14
MOV RSI,R12
CALL 0x001200f0
LAB_001f5c1b:
MOV qword ptr [RSP + 0x10],RBP
MOV qword ptr [R15],R12
MOV qword ptr [R15 + 0x8],0x0
MOV byte ptr [R15 + 0x10],0x0
LEA RBP,[RSP + 0x38]
MOV qword ptr [RBP + -0x10],RBP
LEA R15,[RSP + 0x4d]
MOV RDI,R15
CALL 0x00120690
LEA RDX,[RSP + RAX*0x1]
ADD RDX,0x4d
LAB_001f5c4e:
LEA RDI,[RSP + 0x28]
MOV RSI,R15
CALL 0x00127960
MOV RCX,qword ptr [RSP + 0x8]
MOV R8,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x30]
LEA RAX,[RDX + R8*0x1]
MOV EDI,0xf
CMP RCX,R14
JZ 0x001f5c7d
MOV RDI,qword ptr [RSP + 0x18]
LAB_001f5c7d:
MOV RSI,qword ptr [RSP + 0x28]
CMP RAX,RDI
JBE 0x001f5c9b
MOV EDI,0xf
CMP RSI,RBP
JZ 0x001f5c96
MOV RDI,qword ptr [RSP + 0x38]
LAB_001f5c96:
CMP RAX,RDI
JBE 0x001f5ca7
LAB_001f5c9b:
LEA RDI,[RSP + 0x8]
CALL 0x00120570
JMP 0x001f5cb5
LAB_001f5ca7:
LEA RDI,[RSP + 0x28]
XOR ESI,ESI
XOR EDX,EDX
CALL 0x00120250
LAB_001f5cb5:
MOV R12,RAX
LEA RDI,[RBX + 0x10]
MOV qword ptr [RBX],RDI
MOV RAX,qword ptr [RAX]
LEA R15,[R12 + 0x10]
CMP RAX,R15
JZ 0x001f5cd8
MOV qword ptr [RBX],RAX
MOV RAX,qword ptr [R15]
MOV qword ptr [RBX + 0x10],RAX
JMP 0x001f5ce8
LAB_001f5cd8:
MOV RDX,qword ptr [R12 + 0x8]
INC RDX
MOV RSI,R15
CALL 0x001200f0
LAB_001f5ce8:
MOV RAX,R12
ADD RAX,0x8
MOV RCX,qword ptr [R12 + 0x8]
MOV qword ptr [RBX + 0x8],RCX
MOV qword ptr [R12],R15
MOV qword ptr [RAX],0x0
MOV byte ptr [R15],0x0
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,RBP
JZ 0x001f5d1e
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x00120190
LAB_001f5d1e:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R14
JZ 0x001f5d35
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x00120190
LAB_001f5d35:
MOV RDI,qword ptr [RSP + 0x58]
CMP RDI,R13
JZ 0x001f5d4c
MOV RSI,qword ptr [RSP + 0x68]
INC RSI
CALL 0x00120190
LAB_001f5d4c:
MOV RAX,RBX
ADD RSP,0xe8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Unknown calling convention -- yet parameter storage is locked */
/* string_get_sortable_timestamp[abi:cxx11]() */
void string_get_sortable_timestamp_abi_cxx11_(void)
{
int8 *__src;
long lVar1;
tm *__tp;
size_t sVar2;
int8 *puVar3;
int8 *in_RDI;
ulong uVar4;
ulong *__src_00;
ulong *local_110;
long local_108;
ulong local_100 [2];
ulong *local_f0;
long local_e8;
ulong local_e0 [2];
char local_cb [11];
long *local_c0 [2];
long local_b0 [2];
long local_a0;
char local_98 [104];
lVar1 = std::chrono::_V2::system_clock::now();
local_a0 = lVar1 / 1000000000;
__tp = localtime(&local_a0);
strftime(local_98,100,"%Y_%m_%d-%H_%M_%S",__tp);
snprintf(local_cb,0xb,"%09ld",lVar1 % 1000000000);
local_c0[0] = local_b0;
sVar2 = strlen(local_98);
std::__cxx11::string::_M_construct<char_const*>(local_c0,local_98,local_98 + sVar2);
/* try { // try from 001f5bca to 001f5bd8 has its CatchHandler @ 001f5d99 */
puVar3 = (int8 *)std::__cxx11::string::append((char *)local_c0);
local_110 = (ulong *)*puVar3;
__src_00 = puVar3 + 2;
if (local_110 == __src_00) {
lVar1 = puVar3[1];
local_110 = local_100;
memcpy(local_100,__src_00,lVar1 + 1);
}
else {
local_100[0] = puVar3[2];
lVar1 = puVar3[1];
}
*puVar3 = __src_00;
puVar3[1] = 0;
*(int1 *)(puVar3 + 2) = 0;
local_108 = lVar1;
local_f0 = local_e0;
sVar2 = strlen(local_cb);
/* try { // try from 001f5c4e to 001f5c5a has its CatchHandler @ 001f5d7d */
std::__cxx11::string::_M_construct<char_const*>(&local_f0,local_cb,local_cb + sVar2);
uVar4 = 0xf;
if (local_110 != local_100) {
uVar4 = local_100[0];
}
if (uVar4 < (ulong)(local_e8 + local_108)) {
uVar4 = 0xf;
if (local_f0 != local_e0) {
uVar4 = local_e0[0];
}
if ((ulong)(local_e8 + local_108) <= uVar4) {
puVar3 = (int8 *)
std::__cxx11::string::replace((ulong)&local_f0,0,(char *)0x0,(ulong)local_110);
goto LAB_001f5cb5;
}
}
/* try { // try from 001f5c9b to 001f5cb4 has its CatchHandler @ 001f5d61 */
puVar3 = (int8 *)std::__cxx11::string::append((char *)&local_110,(ulong)local_f0);
LAB_001f5cb5:
*in_RDI = in_RDI + 2;
__src = puVar3 + 2;
if ((int8 *)*puVar3 == __src) {
memcpy(in_RDI + 2,__src,puVar3[1] + 1);
}
else {
*in_RDI = (int8 *)*puVar3;
in_RDI[2] = *__src;
}
in_RDI[1] = puVar3[1];
*puVar3 = __src;
puVar3[1] = 0;
*(int1 *)__src = 0;
if (local_f0 != local_e0) {
operator_delete(local_f0,local_e0[0] + 1);
}
if (local_110 != local_100) {
operator_delete(local_110,local_100[0] + 1);
}
if (local_c0[0] != local_b0) {
operator_delete(local_c0[0],local_b0[0] + 1);
}
return;
}
| |
28,153 | lo0bits | eloqsql/libmariadb/libmariadb/ma_dtoa.c | static int lo0bits(ULong *y)
{
register int k;
register ULong x= *y;
if (x & 7)
{
if (x & 1)
return 0;
if (x & 2)
{
*y= x >> 1;
return 1;
}
*y= x >> 2;
return 2;
}
k= 0;
if (!(x & 0xffff))
{
k= 16;
x>>= 16;
}
if (!(x & 0xff))
{
k+= 8;
x>>= 8;
}
if (!(x & 0xf))
{
k+= 4;
x>>= 4;
}
if (!(x & 0x3))
{
k+= 2;
x>>= 2;
}
if (!(x & 1))
{
k++;
x>>= 1;
if (!x)
return 32;
}
*y= x;
return k;
} | O0 | c | lo0bits:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movl (%rax), %eax
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %eax
andl $0x7, %eax
cmpl $0x0, %eax
je 0x5a91d
movl -0x18(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x5a8e3
movl $0x0, -0x4(%rbp)
jmp 0x5a9d6
movl -0x18(%rbp), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x5a905
movl -0x18(%rbp), %ecx
shrl %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x5a9d6
movl -0x18(%rbp), %ecx
shrl $0x2, %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
movl $0x2, -0x4(%rbp)
jmp 0x5a9d6
movl $0x0, -0x14(%rbp)
movl -0x18(%rbp), %eax
andl $0xffff, %eax # imm = 0xFFFF
cmpl $0x0, %eax
jne 0x5a941
movl $0x10, -0x14(%rbp)
movl -0x18(%rbp), %eax
shrl $0x10, %eax
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %eax
andl $0xff, %eax
cmpl $0x0, %eax
jne 0x5a960
movl -0x14(%rbp), %eax
addl $0x8, %eax
movl %eax, -0x14(%rbp)
movl -0x18(%rbp), %eax
shrl $0x8, %eax
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %eax
andl $0xf, %eax
cmpl $0x0, %eax
jne 0x5a97d
movl -0x14(%rbp), %eax
addl $0x4, %eax
movl %eax, -0x14(%rbp)
movl -0x18(%rbp), %eax
shrl $0x4, %eax
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %eax
andl $0x3, %eax
cmpl $0x0, %eax
jne 0x5a99a
movl -0x14(%rbp), %eax
addl $0x2, %eax
movl %eax, -0x14(%rbp)
movl -0x18(%rbp), %eax
shrl $0x2, %eax
movl %eax, -0x18(%rbp)
movl -0x18(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x5a9c7
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movl -0x18(%rbp), %eax
shrl %eax
movl %eax, -0x18(%rbp)
cmpl $0x0, -0x18(%rbp)
jne 0x5a9c5
movl $0x20, -0x4(%rbp)
jmp 0x5a9d6
jmp 0x5a9c7
movl -0x18(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
movl -0x14(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax,%rax)
| lo0bits:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov eax, [rax]
mov [rbp+var_18], eax
mov eax, [rbp+var_18]
and eax, 7
cmp eax, 0
jz short loc_5A91D
mov eax, [rbp+var_18]
and eax, 1
cmp eax, 0
jz short loc_5A8E3
mov [rbp+var_4], 0
jmp loc_5A9D6
loc_5A8E3:
mov eax, [rbp+var_18]
and eax, 2
cmp eax, 0
jz short loc_5A905
mov ecx, [rbp+var_18]
shr ecx, 1
mov rax, [rbp+var_10]
mov [rax], ecx
mov [rbp+var_4], 1
jmp loc_5A9D6
loc_5A905:
mov ecx, [rbp+var_18]
shr ecx, 2
mov rax, [rbp+var_10]
mov [rax], ecx
mov [rbp+var_4], 2
jmp loc_5A9D6
loc_5A91D:
mov [rbp+var_14], 0
mov eax, [rbp+var_18]
and eax, 0FFFFh
cmp eax, 0
jnz short loc_5A941
mov [rbp+var_14], 10h
mov eax, [rbp+var_18]
shr eax, 10h
mov [rbp+var_18], eax
loc_5A941:
mov eax, [rbp+var_18]
and eax, 0FFh
cmp eax, 0
jnz short loc_5A960
mov eax, [rbp+var_14]
add eax, 8
mov [rbp+var_14], eax
mov eax, [rbp+var_18]
shr eax, 8
mov [rbp+var_18], eax
loc_5A960:
mov eax, [rbp+var_18]
and eax, 0Fh
cmp eax, 0
jnz short loc_5A97D
mov eax, [rbp+var_14]
add eax, 4
mov [rbp+var_14], eax
mov eax, [rbp+var_18]
shr eax, 4
mov [rbp+var_18], eax
loc_5A97D:
mov eax, [rbp+var_18]
and eax, 3
cmp eax, 0
jnz short loc_5A99A
mov eax, [rbp+var_14]
add eax, 2
mov [rbp+var_14], eax
mov eax, [rbp+var_18]
shr eax, 2
mov [rbp+var_18], eax
loc_5A99A:
mov eax, [rbp+var_18]
and eax, 1
cmp eax, 0
jnz short loc_5A9C7
mov eax, [rbp+var_14]
add eax, 1
mov [rbp+var_14], eax
mov eax, [rbp+var_18]
shr eax, 1
mov [rbp+var_18], eax
cmp [rbp+var_18], 0
jnz short loc_5A9C5
mov [rbp+var_4], 20h ; ' '
jmp short loc_5A9D6
loc_5A9C5:
jmp short $+2
loc_5A9C7:
mov ecx, [rbp+var_18]
mov rax, [rbp+var_10]
mov [rax], ecx
mov eax, [rbp+var_14]
mov [rbp+var_4], eax
loc_5A9D6:
mov eax, [rbp+var_4]
pop rbp
retn
| long long lo0bits(unsigned int *a1)
{
unsigned int v2; // [rsp+0h] [rbp-18h]
unsigned int v3; // [rsp+4h] [rbp-14h]
v2 = *a1;
if ( (*a1 & 7) != 0 )
{
if ( (v2 & 1) != 0 )
{
return 0;
}
else if ( (v2 & 2) != 0 )
{
*a1 = v2 >> 1;
return 1;
}
else
{
*a1 = v2 >> 2;
return 2;
}
}
else
{
v3 = 0;
if ( !(_WORD)v2 )
{
v3 = 16;
v2 >>= 16;
}
if ( !(_BYTE)v2 )
{
v3 += 8;
v2 >>= 8;
}
if ( (v2 & 0xF) == 0 )
{
v3 += 4;
v2 >>= 4;
}
if ( (v2 & 3) == 0 )
{
v3 += 2;
v2 >>= 2;
}
if ( (v2 & 1) != 0 || (++v3, (v2 >>= 1) != 0) )
{
*a1 = v2;
return v3;
}
else
{
return 32;
}
}
}
| lo0bits:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x18],EAX
MOV EAX,dword ptr [RBP + -0x18]
AND EAX,0x7
CMP EAX,0x0
JZ 0x0015a91d
MOV EAX,dword ptr [RBP + -0x18]
AND EAX,0x1
CMP EAX,0x0
JZ 0x0015a8e3
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0015a9d6
LAB_0015a8e3:
MOV EAX,dword ptr [RBP + -0x18]
AND EAX,0x2
CMP EAX,0x0
JZ 0x0015a905
MOV ECX,dword ptr [RBP + -0x18]
SHR ECX,0x1
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX],ECX
MOV dword ptr [RBP + -0x4],0x1
JMP 0x0015a9d6
LAB_0015a905:
MOV ECX,dword ptr [RBP + -0x18]
SHR ECX,0x2
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX],ECX
MOV dword ptr [RBP + -0x4],0x2
JMP 0x0015a9d6
LAB_0015a91d:
MOV dword ptr [RBP + -0x14],0x0
MOV EAX,dword ptr [RBP + -0x18]
AND EAX,0xffff
CMP EAX,0x0
JNZ 0x0015a941
MOV dword ptr [RBP + -0x14],0x10
MOV EAX,dword ptr [RBP + -0x18]
SHR EAX,0x10
MOV dword ptr [RBP + -0x18],EAX
LAB_0015a941:
MOV EAX,dword ptr [RBP + -0x18]
AND EAX,0xff
CMP EAX,0x0
JNZ 0x0015a960
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x8
MOV dword ptr [RBP + -0x14],EAX
MOV EAX,dword ptr [RBP + -0x18]
SHR EAX,0x8
MOV dword ptr [RBP + -0x18],EAX
LAB_0015a960:
MOV EAX,dword ptr [RBP + -0x18]
AND EAX,0xf
CMP EAX,0x0
JNZ 0x0015a97d
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x4
MOV dword ptr [RBP + -0x14],EAX
MOV EAX,dword ptr [RBP + -0x18]
SHR EAX,0x4
MOV dword ptr [RBP + -0x18],EAX
LAB_0015a97d:
MOV EAX,dword ptr [RBP + -0x18]
AND EAX,0x3
CMP EAX,0x0
JNZ 0x0015a99a
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x2
MOV dword ptr [RBP + -0x14],EAX
MOV EAX,dword ptr [RBP + -0x18]
SHR EAX,0x2
MOV dword ptr [RBP + -0x18],EAX
LAB_0015a99a:
MOV EAX,dword ptr [RBP + -0x18]
AND EAX,0x1
CMP EAX,0x0
JNZ 0x0015a9c7
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x14],EAX
MOV EAX,dword ptr [RBP + -0x18]
SHR EAX,0x1
MOV dword ptr [RBP + -0x18],EAX
CMP dword ptr [RBP + -0x18],0x0
JNZ 0x0015a9c5
MOV dword ptr [RBP + -0x4],0x20
JMP 0x0015a9d6
LAB_0015a9c5:
JMP 0x0015a9c7
LAB_0015a9c7:
MOV ECX,dword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX],ECX
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x4],EAX
LAB_0015a9d6:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
int lo0bits(uint *param_1)
{
uint local_20;
int local_1c;
int local_c;
local_20 = *param_1;
if ((local_20 & 7) == 0) {
local_1c = 0;
if ((local_20 & 0xffff) == 0) {
local_1c = 0x10;
local_20 = local_20 >> 0x10;
}
if ((local_20 & 0xff) == 0) {
local_1c = local_1c + 8;
local_20 = local_20 >> 8;
}
if ((local_20 & 0xf) == 0) {
local_1c = local_1c + 4;
local_20 = local_20 >> 4;
}
if ((local_20 & 3) == 0) {
local_1c = local_1c + 2;
local_20 = local_20 >> 2;
}
if ((local_20 & 1) == 0) {
local_1c = local_1c + 1;
local_20 = local_20 >> 1;
if (local_20 == 0) {
return 0x20;
}
}
*param_1 = local_20;
local_c = local_1c;
}
else if ((local_20 & 1) == 0) {
if ((local_20 & 2) == 0) {
*param_1 = local_20 >> 2;
local_c = 2;
}
else {
*param_1 = local_20 >> 1;
local_c = 1;
}
}
else {
local_c = 0;
}
return local_c;
}
| |
28,154 | printRx(char const*, unsigned char const*, unsigned short) | serhmarch[P]ModbusBridge/src/mbridge.cpp | void printRx(const Modbus::Char *source, const uint8_t* buff, uint16_t size)
{
std::cout << source << " Rx: " << Modbus::bytesToString(buff, size) << std::endl;
} | O3 | cpp | printRx(char const*, unsigned char const*, unsigned short):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebp
movq %rsi, %rbx
testq %rdi, %rdi
je 0x5e09
movq %rdi, %r14
callq 0x5180
movq 0x1c1dc(%rip), %rdi # 0x21fd8
movq %r14, %rsi
movq %rax, %rdx
callq 0x5370
jmp 0x5e27
movq 0x1c1c8(%rip), %rax # 0x21fd8
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
leaq (%rax,%rcx), %rdi
movl 0x20(%rax,%rcx), %esi
orl $0x1, %esi
callq 0x5520
movq 0x1c1aa(%rip), %r14 # 0x21fd8
leaq 0x12696(%rip), %rsi # 0x184cb
movl $0x5, %edx
movq %r14, %rdi
callq 0x5370
movzwl %bp, %edx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x7f48
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r14, %rdi
callq 0x5370
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x52f0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5040
movq %rax, %rdi
callq 0x5240
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5ea9
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5310
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5ed2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x5310
movq %rbx, %rdi
callq 0x5550
| _Z7printRxPKcPKht:
push rbp
push r15
push r14
push rbx
sub rsp, 28h
mov ebp, edx
mov rbx, rsi
test rdi, rdi
jz short loc_5E09
mov r14, rdi
call _strlen
mov rdi, cs:_ZSt4cout_ptr
mov rsi, r14
mov rdx, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
jmp short loc_5E27
loc_5E09:
mov rax, cs:_ZSt4cout_ptr
mov rcx, [rax]
mov rcx, [rcx-18h]
lea rdi, [rax+rcx]
mov esi, [rax+rcx+20h]
or esi, 1
call __ZNSt9basic_iosIcSt11char_traitsIcEE5clearESt12_Ios_Iostate; std::ios::clear(std::_Ios_Iostate)
loc_5E27:
mov r14, cs:_ZSt4cout_ptr
lea rsi, aRx; " Rx: "
mov edx, 5
mov rdi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
movzx edx, bp
lea r15, [rsp+48h+var_40]
mov rdi, r15
mov rsi, rbx
call _ZN6Modbus13bytesToStringB5cxx11EPKhj; Modbus::bytesToString(uchar const*,uint)
mov rsi, [r15]
mov rdx, [r15+8]
mov rdi, r14
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rbx, rax
mov rax, [rax]
mov rdi, [rax-18h]
add rdi, rbx
mov esi, 0Ah
call __ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc; std::ios::widen(char)
movsx esi, al; char
mov rdi, rbx; this
call __ZNSo3putEc; std::ostream::put(char)
mov rdi, rax; this
call __ZNSo5flushEv; std::ostream::flush(void)
lea rax, [rsp+48h+var_30]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5EA9
mov rsi, [rsp+48h+var_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5EA9:
add rsp, 28h
pop rbx
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5ED2
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5ED2:
mov rdi, rbx
call __Unwind_Resume
| void printRx(const char *a1, const unsigned __int8 *a2, unsigned __int16 a3)
{
long long v4; // rax
std::ostream *v5; // rbx
char v6; // al
std::ostream *v7; // rax
void *v8[2]; // [rsp+8h] [rbp-40h] BYREF
long long v9; // [rsp+18h] [rbp-30h] BYREF
if ( a1 )
{
v4 = strlen();
std::__ostream_insert<char,std::char_traits<char>>(&std::cout, a1, v4);
}
else
{
std::ios::clear(
(char *)&std::cout + *(_QWORD *)(std::cout - 24LL),
*(_DWORD *)((char *)&std::cout + *(_QWORD *)(std::cout - 24LL) + 32) | 1u);
}
std::__ostream_insert<char,std::char_traits<char>>(&std::cout, " Rx: ", 5LL);
Modbus::bytesToString[abi:cxx11](v8, a2, a3);
v5 = (std::ostream *)std::__ostream_insert<char,std::char_traits<char>>(&std::cout, v8[0], v8[1]);
v6 = std::ios::widen((char *)v5 + *(_QWORD *)(*(_QWORD *)v5 - 24LL), 10LL);
v7 = (std::ostream *)std::ostream::put(v5, v6);
std::ostream::flush(v7);
if ( v8[0] != &v9 )
operator delete(v8[0], v9 + 1);
}
| printRx:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x28
MOV EBP,EDX
MOV RBX,RSI
TEST RDI,RDI
JZ 0x00105e09
MOV R14,RDI
CALL 0x00105180
MOV RDI,qword ptr [0x00121fd8]
MOV RSI,R14
MOV RDX,RAX
CALL 0x00105370
JMP 0x00105e27
LAB_00105e09:
MOV RAX,qword ptr [0x00121fd8]
MOV RCX,qword ptr [RAX]
MOV RCX,qword ptr [RCX + -0x18]
LEA RDI,[RAX + RCX*0x1]
MOV ESI,dword ptr [RAX + RCX*0x1 + 0x20]
OR ESI,0x1
CALL 0x00105520
LAB_00105e27:
MOV R14,qword ptr [0x00121fd8]
LEA RSI,[0x1184cb]
MOV EDX,0x5
MOV RDI,R14
CALL 0x00105370
MOVZX EDX,BP
LEA R15,[RSP + 0x8]
MOV RDI,R15
MOV RSI,RBX
CALL 0x00107f48
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
LAB_00105e5c:
MOV RDI,R14
CALL 0x00105370
MOV RBX,RAX
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,RBX
MOV ESI,0xa
CALL 0x001052f0
MOVSX ESI,AL
MOV RDI,RBX
CALL 0x00105040
MOV RDI,RAX
CALL 0x00105240
LAB_00105e8e:
LEA RAX,[RSP + 0x18]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x00105ea9
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x00105310
LAB_00105ea9:
ADD RSP,0x28
POP RBX
POP R14
POP R15
POP RBP
RET
|
/* printRx(char const*, unsigned char const*, unsigned short) */
void printRx(char *param_1,uchar *param_2,ushort param_3)
{
int *puVar1;
size_t sVar2;
ostream *poVar3;
long *local_40;
long local_38;
long local_30 [2];
if (param_1 == (char *)0x0) {
std::ios::clear(PTR_cout_00121fd8 + *(long *)(*(long *)PTR_cout_00121fd8 + -0x18),
*(uint *)(PTR_cout_00121fd8 +
*(long *)(*(long *)PTR_cout_00121fd8 + -0x18) + 0x20) | 1);
}
else {
sVar2 = strlen(param_1);
std::__ostream_insert<char,std::char_traits<char>>((ostream *)PTR_cout_00121fd8,param_1,sVar2);
}
puVar1 = PTR_cout_00121fd8;
std::__ostream_insert<char,std::char_traits<char>>((ostream *)PTR_cout_00121fd8," Rx: ",5);
Modbus::bytesToString_abi_cxx11_((Modbus *)&local_40,param_2,(uint)param_3);
/* try { // try from 00105e5c to 00105e8d has its CatchHandler @ 00105eb4 */
poVar3 = std::__ostream_insert<char,std::char_traits<char>>
((ostream *)puVar1,(char *)local_40,local_38);
std::ios::widen((char)*(int8 *)(*(long *)poVar3 + -0x18) + (char)poVar3);
std::ostream::put((char)poVar3);
std::ostream::flush();
if (local_40 != local_30) {
operator_delete(local_40,local_30[0] + 1);
}
return;
}
| |
28,155 | mysql_mbcharlen_utf8mb3 | eloqsql/libmariadb/libmariadb/ma_charset.c | static unsigned int mysql_mbcharlen_utf8mb3(unsigned int utf8)
{
if (utf8 < 0x80) {
return 1; /* single byte character */
}
if (utf8 < 0xC2) {
return 0; /* invalid multibyte header */
}
if (utf8 < 0xE0) {
return 2; /* double byte character */
}
if (utf8 < 0xF0) {
return 3; /* triple byte character */
}
return 0;
} | O3 | c | mysql_mbcharlen_utf8mb3:
pushq %rbp
movq %rsp, %rbp
movl $0x1, %eax
cmpl $0x80, %edi
jb 0x32a8c
xorl %eax, %eax
cmpl $0xc2, %edi
jb 0x32a8c
movl $0x2, %eax
cmpl $0xe0, %edi
jb 0x32a8c
xorl %eax, %eax
cmpl $0xf0, %edi
setb %al
leal (%rax,%rax,2), %eax
popq %rbp
retq
| mysql_mbcharlen_utf8mb3:
push rbp
mov rbp, rsp
mov eax, 1
cmp edi, 80h
jb short loc_32A8C
xor eax, eax
cmp edi, 0C2h
jb short loc_32A8C
mov eax, 2
cmp edi, 0E0h
jb short loc_32A8C
xor eax, eax
cmp edi, 0F0h
setb al
lea eax, [rax+rax*2]
loc_32A8C:
pop rbp
retn
| long long mysql_mbcharlen_utf8mb3(unsigned int a1)
{
long long result; // rax
result = 1LL;
if ( a1 >= 0x80 )
{
result = 0LL;
if ( a1 >= 0xC2 )
{
result = 2LL;
if ( a1 >= 0xE0 )
return 3 * (unsigned int)(a1 < 0xF0);
}
}
return result;
}
| mysql_mbcharlen_utf8mb3:
PUSH RBP
MOV RBP,RSP
MOV EAX,0x1
CMP EDI,0x80
JC 0x00132a8c
XOR EAX,EAX
CMP EDI,0xc2
JC 0x00132a8c
MOV EAX,0x2
CMP EDI,0xe0
JC 0x00132a8c
XOR EAX,EAX
CMP EDI,0xf0
SETC AL
LEA EAX,[RAX + RAX*0x2]
LAB_00132a8c:
POP RBP
RET
|
char mysql_mbcharlen_utf8mb3(uint param_1)
{
char cVar1;
cVar1 = '\x01';
if (((0x7f < param_1) && (cVar1 = '\0', 0xc1 < param_1)) && (cVar1 = '\x02', 0xdf < param_1)) {
cVar1 = (param_1 < 0xf0) * '\x03';
}
return cVar1;
}
| |
28,156 | ma_sync_table_files | eloqsql/storage/maria/ma_extra.c | int _ma_sync_table_files(const MARIA_HA *info)
{
return (mysql_file_sync(info->dfile.file, MYF(MY_WME)) ||
mysql_file_sync(info->s->kfile.file, MYF(MY_WME)));
} | O3 | c | ma_sync_table_files:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
movl 0x480(%rdi), %r14d
leaq 0x34c40e(%rip), %r12 # 0x38c3c8
movq (%r12), %rax
leaq -0x70(%rbp), %rdi
movl %r14d, %esi
movl $0x10, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x40032
movl $0x10, %esi
movl %r14d, %edi
callq 0xa5d80
movl %eax, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jne 0x40025
movq (%rbx), %rax
movl 0x760(%rax), %ebx
movq (%r12), %rax
leaq -0x70(%rbp), %rdi
movl %ebx, %esi
movl $0x10, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x40049
movl $0x10, %esi
movl %ebx, %edi
callq 0xa5d80
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
setne %al
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq -0x24(%rbp), %r15
movq %rax, %rdi
movl %r14d, %esi
movq %r15, %rdx
callq 0x2d0e0
movl (%r15), %ecx
jmp 0x3ffe4
leaq -0x24(%rbp), %r14
movq %rax, %rdi
movl %ebx, %esi
movq %r14, %rdx
callq 0x2d139
movl (%r14), %ecx
jmp 0x4001e
| _ma_sync_table_files:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 50h
mov rbx, rdi
mov r14d, [rdi+480h]
lea r12, PSI_server
mov rax, [r12]
lea rdi, [rbp+var_70]
mov esi, r14d
mov edx, 10h
call qword ptr [rax+158h]
test rax, rax
jnz short loc_40032
mov esi, 10h
mov edi, r14d
call my_sync
mov ecx, eax
loc_3FFE4:
mov eax, 1
test ecx, ecx
jnz short loc_40025
mov rax, [rbx]
mov ebx, [rax+760h]
mov rax, [r12]
lea rdi, [rbp+var_70]
mov esi, ebx
loc_40000:
mov edx, 10h
call qword ptr [rax+158h]
test rax, rax
jnz short loc_40049
mov esi, 10h
mov edi, ebx
call my_sync
mov ecx, eax
loc_4001E:
xor eax, eax
test ecx, ecx
setnz al
loc_40025:
add rsp, 50h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_40032:
lea r15, [rbp+var_24]
mov rdi, rax
mov esi, r14d
mov rdx, r15
call _ma_sync_table_files_cold_1
mov ecx, [r15]
jmp short loc_3FFE4
loc_40049:
lea r14, [rbp+var_24]
mov rdi, rax
mov esi, ebx
mov rdx, r14
call _ma_sync_table_files_cold_2
mov ecx, [r14]
jmp short loc_4001E
| _BOOL8 ma_sync_table_files(_DWORD *a1)
{
unsigned int v1; // r14d
long long v2; // rax
int v3; // ecx
_BOOL8 result; // rax
unsigned int v5; // ebx
long long v6; // rax
int v7; // ecx
_BYTE v8[76]; // [rsp+0h] [rbp-70h] BYREF
_DWORD v9[9]; // [rsp+4Ch] [rbp-24h] BYREF
v1 = a1[288];
v2 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v8, v1, 16LL);
if ( v2 )
{
ma_sync_table_files_cold_1(v2, v1, v9);
v3 = v9[0];
}
else
{
v3 = my_sync(v1, 16LL);
}
result = 1LL;
if ( !v3 )
{
v5 = *(_DWORD *)(*(_QWORD *)a1 + 1888LL);
v6 = ((long long ( *)(_BYTE *, _QWORD, long long))PSI_server[43])(v8, v5, 16LL);
if ( v6 )
{
ma_sync_table_files_cold_2(v6, v5, v9);
v7 = v9[0];
}
else
{
v7 = my_sync(v5, 16LL);
}
return v7 != 0;
}
return result;
}
| _ma_sync_table_files:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x50
MOV RBX,RDI
MOV R14D,dword ptr [RDI + 0x480]
LEA R12,[0x48c3c8]
MOV RAX,qword ptr [R12]
LEA RDI,[RBP + -0x70]
MOV ESI,R14D
MOV EDX,0x10
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x00140032
MOV ESI,0x10
MOV EDI,R14D
CALL 0x001a5d80
MOV ECX,EAX
LAB_0013ffe4:
MOV EAX,0x1
TEST ECX,ECX
JNZ 0x00140025
MOV RAX,qword ptr [RBX]
MOV EBX,dword ptr [RAX + 0x760]
MOV RAX,qword ptr [R12]
LEA RDI,[RBP + -0x70]
MOV ESI,EBX
MOV EDX,0x10
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x00140049
MOV ESI,0x10
MOV EDI,EBX
CALL 0x001a5d80
MOV ECX,EAX
LAB_0014001e:
XOR EAX,EAX
TEST ECX,ECX
SETNZ AL
LAB_00140025:
ADD RSP,0x50
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_00140032:
LEA R15,[RBP + -0x24]
MOV RDI,RAX
MOV ESI,R14D
MOV RDX,R15
CALL 0x0012d0e0
MOV ECX,dword ptr [R15]
JMP 0x0013ffe4
LAB_00140049:
LEA R14,[RBP + -0x24]
MOV RDI,RAX
MOV ESI,EBX
MOV RDX,R14
CALL 0x0012d139
MOV ECX,dword ptr [R14]
JMP 0x0014001e
|
bool _ma_sync_table_files(long *param_1)
{
int4 uVar1;
int iVar2;
long lVar3;
bool bVar4;
int1 local_78 [76];
int local_2c;
uVar1 = (int4)param_1[0x90];
lVar3 = (**(code **)(PSI_server + 0x158))(local_78,uVar1,0x10);
if (lVar3 == 0) {
iVar2 = my_sync(uVar1,0x10);
}
else {
_ma_sync_table_files_cold_1(lVar3,uVar1,&local_2c);
iVar2 = local_2c;
}
bVar4 = true;
if (iVar2 == 0) {
uVar1 = *(int4 *)(*param_1 + 0x760);
lVar3 = (**(code **)(PSI_server + 0x158))(local_78,uVar1,0x10);
if (lVar3 == 0) {
local_2c = my_sync(uVar1,0x10);
}
else {
_ma_sync_table_files_cold_2(lVar3,uVar1,&local_2c);
}
bVar4 = local_2c != 0;
}
return bVar4;
}
| |
28,157 | ankerl::nanobench::Bench& ankerl::nanobench::Bench::run<int BenchVector<main::Payload16B>(ankerl::nanobench::Bench&, bool)::'lambda'()>(int BenchVector<main::Payload16B>(ankerl::nanobench::Bench&, bool)::'lambda'()&&) | BadAccessGuards/build_O3/_deps/nanobench-src/src/include/nanobench.h | Bench& Bench::run(Op&& op) {
// It is important that this method is kept short so the compiler can do better optimizations/ inlining of op()
detail::IterationLogic iterationLogic(*this);
auto& pc = detail::performanceCounters();
while (auto n = iterationLogic.numIters()) {
pc.beginMeasure();
Clock::time_point const before = Clock::now();
while (n-- > 0) {
op();
}
Clock::time_point const after = Clock::now();
pc.endMeasure();
pc.updateResults(iterationLogic.numIters());
iterationLogic.add(after - before, pc);
}
iterationLogic.moveResultTo(mResults);
return *this;
} | O3 | c | ankerl::nanobench::Bench& ankerl::nanobench::Bench::run<int BenchVector<main::Payload16B>(ankerl::nanobench::Bench&, bool)::'lambda'()>(int BenchVector<main::Payload16B>(ankerl::nanobench::Bench&, bool)::'lambda'()&&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rsi
leaq 0x8(%rsp), %rdi
movq %rsi, 0x10(%rsp)
callq 0x922c
callq 0x83cb
movq %rax, %r15
leaq 0x8(%rsp), %rdi
callq 0x92a8
testq %rax, %rax
je 0x6cfe
movq %rax, %r13
leaq 0x8(%rsp), %r12
movq %r15, %rdi
callq 0x9b8e
callq 0x3420
movq %rax, %rbp
subq $0x1, %r13
jb 0x6cb6
movq (%r14), %rax
cmpq $0x0, (%rax)
je 0x6c79
xorl %ebx, %ebx
movq 0x8(%r14), %rdi
movq 0x10(%r14), %rsi
callq 0x66d2
incq %rbx
movq (%r14), %rax
cmpq %rbx, (%rax)
ja 0x6c61
movq 0x8(%r14), %rbx
movq 0x18(%rbx), %rdi
testb $0x3, %dil
jne 0x6cad
movq 0x8(%rbx), %rax
subq (%rbx), %rax
sarq $0x3, %rax
movq 0x10(%r14), %rcx
addq %rax, (%rcx)
movq 0x8(%r14), %rdi
callq 0x651a
movq 0x8(%r14), %rdi
callq 0x6b8e
jmp 0x6c50
xorl %esi, %esi
callq 0x63a5
jmp 0x6c87
callq 0x3420
movq %rax, %r13
movq %r15, %rdi
callq 0x9be2
movq %r12, %rdi
callq 0x92a8
movq %r15, %rdi
movq %rax, %rsi
callq 0x9c46
subq %rbp, %r13
movq %r12, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x92b0
movq %r12, %rdi
callq 0x92a8
movq %rax, %r13
testq %rax, %rax
jne 0x6c40
movq 0x10(%rsp), %rbx
leaq 0x118(%rbx), %rsi
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x92b8
movq %r14, %rdi
callq 0x9270
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6d39
jmp 0x6d39
jmp 0x6d39
jmp 0x6d39
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x9270
movq %rbx, %rdi
callq 0x35a0
nop
| _ZN6ankerl9nanobench5Bench3runIZ11BenchVectorImEiRS1_bEUlvE4_EES4_OT_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r14, rsi
mov rsi, rdi; ankerl::nanobench::Bench *
lea rdi, [rsp+48h+var_40]; this
mov [rsp+48h+var_38], rsi
call _ZN6ankerl9nanobench6detail14IterationLogicC2ERKNS0_5BenchE; ankerl::nanobench::detail::IterationLogic::IterationLogic(ankerl::nanobench::Bench const&)
call _ZN6ankerl9nanobench6detail19performanceCountersEv; ankerl::nanobench::detail::performanceCounters(void)
mov r15, rax
lea rdi, [rsp+48h+var_40]; this
call _ZNK6ankerl9nanobench6detail14IterationLogic8numItersEv; ankerl::nanobench::detail::IterationLogic::numIters(void)
test rax, rax
jz loc_6CFE
mov r13, rax
lea r12, [rsp+48h+var_40]
loc_6C40:
mov rdi, r15; this
call _ZN6ankerl9nanobench6detail19PerformanceCounters12beginMeasureEv; ankerl::nanobench::detail::PerformanceCounters::beginMeasure(void)
call __ZNSt6chrono3_V212steady_clock3nowEv; std::chrono::_V2::steady_clock::now(void)
mov rbp, rax
loc_6C50:
sub r13, 1
jb short loc_6CB6
mov rax, [r14]
cmp qword ptr [rax], 0
jz short loc_6C79
xor ebx, ebx
loc_6C61:
mov rdi, [r14+8]
mov rsi, [r14+10h]
call _ZN20ExampleGuardedVectorImE9push_backERKm; ExampleGuardedVector<ulong>::push_back(ulong const&)
inc rbx
mov rax, [r14]
cmp [rax], rbx
ja short loc_6C61
loc_6C79:
mov rbx, [r14+8]
mov rdi, [rbx+18h]
test dil, 3
jnz short loc_6CAD
loc_6C87:
mov rax, [rbx+8]
sub rax, [rbx]
sar rax, 3
mov rcx, [r14+10h]
add [rcx], rax
mov rdi, [r14+8]
call _ZN20ExampleGuardedVectorImE5clearEv; ExampleGuardedVector<ulong>::clear(void)
mov rdi, [r14+8]
call _ZN20ExampleGuardedVectorImE13shrink_to_fitEv; ExampleGuardedVector<ulong>::shrink_to_fit(void)
jmp short loc_6C50
loc_6CAD:
xor esi, esi
call _Z22BAGuardHandleBadAccessm19BadAccessGuardState; BAGuardHandleBadAccess(ulong,BadAccessGuardState)
jmp short loc_6C87
loc_6CB6:
call __ZNSt6chrono3_V212steady_clock3nowEv; std::chrono::_V2::steady_clock::now(void)
mov r13, rax
mov rdi, r15; this
call _ZN6ankerl9nanobench6detail19PerformanceCounters10endMeasureEv; ankerl::nanobench::detail::PerformanceCounters::endMeasure(void)
mov rdi, r12; this
call _ZNK6ankerl9nanobench6detail14IterationLogic8numItersEv; ankerl::nanobench::detail::IterationLogic::numIters(void)
mov rdi, r15; this
mov rsi, rax; unsigned __int64
call _ZN6ankerl9nanobench6detail19PerformanceCounters13updateResultsEm; ankerl::nanobench::detail::PerformanceCounters::updateResults(ulong)
sub r13, rbp
mov rdi, r12
mov rsi, r13
mov rdx, r15
call _ZN6ankerl9nanobench6detail14IterationLogic3addENSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEERKNS1_19PerformanceCountersE; ankerl::nanobench::detail::IterationLogic::add(std::chrono::duration<long,std::ratio<1l,1000000000l>>,ankerl::nanobench::detail::PerformanceCounters const&)
mov rdi, r12; this
call _ZNK6ankerl9nanobench6detail14IterationLogic8numItersEv; ankerl::nanobench::detail::IterationLogic::numIters(void)
mov r13, rax
test rax, rax
jnz loc_6C40
loc_6CFE:
mov rbx, [rsp+48h+var_38]
lea rsi, [rbx+118h]
lea r14, [rsp+48h+var_40]
mov rdi, r14
call _ZN6ankerl9nanobench6detail14IterationLogic12moveResultToERSt6vectorINS0_6ResultESaIS4_EE; ankerl::nanobench::detail::IterationLogic::moveResultTo(std::vector<ankerl::nanobench::Result> &)
mov rdi, r14; this
call _ZN6ankerl9nanobench6detail14IterationLogicD2Ev; ankerl::nanobench::detail::IterationLogic::~IterationLogic()
mov rax, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_6D39
jmp short loc_6D39
jmp short loc_6D39
jmp short $+2
loc_6D39:
mov rbx, rax
lea rdi, [rsp+arg_0]; this
call _ZN6ankerl9nanobench6detail14IterationLogicD2Ev; ankerl::nanobench::detail::IterationLogic::~IterationLogic()
mov rdi, rbx
call __Unwind_Resume
| ankerl::nanobench::Bench * ankerl::nanobench::Bench::run<int BenchVector<unsigned long>(ankerl::nanobench::Bench&,bool)::{lambda(void)#6}>(
ankerl::nanobench::Bench *a1,
unsigned long long **a2)
{
ankerl::nanobench::detail::PerformanceCounters *v2; // r15
long long v3; // rax
long long v4; // r13
ankerl::nanobench::detail::PerformanceCounters *v5; // rdi
long long v6; // rbp
unsigned long long v8; // rbx
unsigned long long *v9; // rbx
long long v10; // rdi
long long v11; // r13
unsigned long long v12; // rax
ankerl::nanobench::Bench *v13; // rbx
char v15[8]; // [rsp+8h] [rbp-40h] BYREF
ankerl::nanobench::Bench *v16; // [rsp+10h] [rbp-38h]
v16 = a1;
ankerl::nanobench::detail::IterationLogic::IterationLogic((ankerl::nanobench::detail::IterationLogic *)v15, a1);
v2 = (ankerl::nanobench::detail::PerformanceCounters *)ankerl::nanobench::detail::performanceCounters((ankerl::nanobench::detail *)v15);
v3 = ankerl::nanobench::detail::IterationLogic::numIters((ankerl::nanobench::detail::IterationLogic *)v15);
if ( v3 )
{
v4 = v3;
do
{
v5 = v2;
ankerl::nanobench::detail::PerformanceCounters::beginMeasure(v2);
v6 = std::chrono::_V2::steady_clock::now(v2);
while ( v4-- != 0 )
{
if ( **a2 )
{
v8 = 0LL;
do
{
ExampleGuardedVector<unsigned long>::push_back((long long *)a2[1], a2[2]);
++v8;
}
while ( **a2 > v8 );
}
v9 = a2[1];
v10 = v9[3];
if ( (v10 & 3) != 0 )
BAGuardHandleBadAccess(v10, 0LL);
*a2[2] += (long long)(v9[1] - *v9) >> 3;
ExampleGuardedVector<unsigned long>::clear(a2[1]);
v5 = (ankerl::nanobench::detail::PerformanceCounters *)a2[1];
ExampleGuardedVector<unsigned long>::shrink_to_fit(v5);
}
v11 = std::chrono::_V2::steady_clock::now(v5);
ankerl::nanobench::detail::PerformanceCounters::endMeasure(v2);
v12 = ankerl::nanobench::detail::IterationLogic::numIters((ankerl::nanobench::detail::IterationLogic *)v15);
ankerl::nanobench::detail::PerformanceCounters::updateResults(v2, v12);
ankerl::nanobench::detail::IterationLogic::add(v15, v11 - v6, v2);
v4 = ankerl::nanobench::detail::IterationLogic::numIters((ankerl::nanobench::detail::IterationLogic *)v15);
}
while ( v4 );
}
v13 = v16;
ankerl::nanobench::detail::IterationLogic::moveResultTo(v15, (char *)v16 + 280);
ankerl::nanobench::detail::IterationLogic::~IterationLogic((ankerl::nanobench::detail::IterationLogic *)v15);
return v13;
}
| run<BenchVector<unsigned_long>(ankerl::nanobench::Bench&,bool)::{lambda()#6}>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R14,RSI
MOV RSI,RDI
LEA RDI,[RSP + 0x8]
MOV qword ptr [RSP + 0x10],RSI
CALL 0x0010922c
LAB_00106c1d:
CALL 0x001083cb
MOV R15,RAX
LEA RDI,[RSP + 0x8]
CALL 0x001092a8
TEST RAX,RAX
JZ 0x00106cfe
MOV R13,RAX
LEA R12,[RSP + 0x8]
LAB_00106c40:
MOV RDI,R15
CALL 0x00109b8e
CALL 0x00103420
MOV RBP,RAX
LAB_00106c50:
SUB R13,0x1
JC 0x00106cb6
MOV RAX,qword ptr [R14]
CMP qword ptr [RAX],0x0
JZ 0x00106c79
XOR EBX,EBX
LAB_00106c61:
MOV RDI,qword ptr [R14 + 0x8]
MOV RSI,qword ptr [R14 + 0x10]
LAB_00106c69:
CALL 0x001066d2
INC RBX
MOV RAX,qword ptr [R14]
CMP qword ptr [RAX],RBX
JA 0x00106c61
LAB_00106c79:
MOV RBX,qword ptr [R14 + 0x8]
MOV RDI,qword ptr [RBX + 0x18]
TEST DIL,0x3
JNZ 0x00106cad
LAB_00106c87:
MOV RAX,qword ptr [RBX + 0x8]
SUB RAX,qword ptr [RBX]
SAR RAX,0x3
MOV RCX,qword ptr [R14 + 0x10]
ADD qword ptr [RCX],RAX
MOV RDI,qword ptr [R14 + 0x8]
CALL 0x0010651a
MOV RDI,qword ptr [R14 + 0x8]
LAB_00106ca6:
CALL 0x00106b8e
JMP 0x00106c50
LAB_00106cad:
XOR ESI,ESI
CALL 0x001063a5
JMP 0x00106c87
LAB_00106cb6:
CALL 0x00103420
MOV R13,RAX
LAB_00106cbe:
MOV RDI,R15
CALL 0x00109be2
MOV RDI,R12
CALL 0x001092a8
MOV RDI,R15
MOV RSI,RAX
CALL 0x00109c46
LAB_00106cd9:
SUB R13,RBP
MOV RDI,R12
MOV RSI,R13
MOV RDX,R15
CALL 0x001092b0
MOV RDI,R12
CALL 0x001092a8
MOV R13,RAX
TEST RAX,RAX
JNZ 0x00106c40
LAB_00106cfe:
MOV RBX,qword ptr [RSP + 0x10]
LEA RSI,[RBX + 0x118]
LEA R14,[RSP + 0x8]
MOV RDI,R14
CALL 0x001092b8
MOV RDI,R14
CALL 0x00109270
MOV RAX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* ankerl::nanobench::Bench& ankerl::nanobench::Bench::run<BenchVector<unsigned
long>(ankerl::nanobench::Bench&, bool)::{lambda()#6}>(BenchVector<unsigned
long>(ankerl::nanobench::Bench&, bool)::{lambda()#6}&&) */
Bench * __thiscall
ankerl::nanobench::Bench::
run<BenchVector<unsigned_long>(ankerl::nanobench::Bench&,bool)::_lambda()_6_>
(Bench *this,_lambda___6_ *param_1)
{
long *plVar1;
Bench *pBVar2;
PerformanceCounters *this_00;
long lVar3;
long lVar4;
ulong uVar5;
bool bVar6;
IterationLogic local_40 [8];
Bench *local_38;
local_38 = this;
detail::IterationLogic::IterationLogic(local_40,this);
/* try { // try from 00106c1d to 00106c21 has its CatchHandler @ 00106d31 */
this_00 = (PerformanceCounters *)detail::performanceCounters();
lVar3 = detail::IterationLogic::numIters(local_40);
if (lVar3 != 0) {
do {
/* try { // try from 00106c40 to 00106c47 has its CatchHandler @ 00106d33 */
detail::PerformanceCounters::beginMeasure(this_00);
lVar4 = std::chrono::_V2::steady_clock::now();
while (bVar6 = lVar3 != 0, lVar3 = lVar3 + -1, bVar6) {
if (**(long **)param_1 != 0) {
uVar5 = 0;
do {
/* try { // try from 00106c69 to 00106c6d has its CatchHandler @ 00106d39 */
ExampleGuardedVector<unsigned_long>::push_back
(*(ExampleGuardedVector<unsigned_long> **)(param_1 + 8),
*(ulong **)(param_1 + 0x10));
uVar5 = uVar5 + 1;
} while (uVar5 < **(ulong **)param_1);
}
plVar1 = *(long **)(param_1 + 8);
if ((plVar1[3] & 3U) != 0) {
BAGuardHandleBadAccess(plVar1[3],0);
}
**(long **)(param_1 + 0x10) = **(long **)(param_1 + 0x10) + (plVar1[1] - *plVar1 >> 3);
ExampleGuardedVector<unsigned_long>::clear
(*(ExampleGuardedVector<unsigned_long> **)(param_1 + 8));
/* try { // try from 00106ca6 to 00106cb3 has its CatchHandler @ 00106d37 */
ExampleGuardedVector<unsigned_long>::shrink_to_fit
(*(ExampleGuardedVector<unsigned_long> **)(param_1 + 8));
}
lVar3 = std::chrono::_V2::steady_clock::now();
/* try { // try from 00106cbe to 00106cd8 has its CatchHandler @ 00106d35 */
detail::PerformanceCounters::endMeasure(this_00);
uVar5 = detail::IterationLogic::numIters(local_40);
detail::PerformanceCounters::updateResults(this_00,uVar5);
detail::IterationLogic::add(local_40,lVar3 - lVar4,this_00);
lVar3 = detail::IterationLogic::numIters(local_40);
} while (lVar3 != 0);
}
pBVar2 = local_38;
detail::IterationLogic::moveResultTo(local_40,(vector *)(local_38 + 0x118));
detail::IterationLogic::~IterationLogic(local_40);
return pBVar2;
}
| |
28,158 | void OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::Interpolate<OpenSubdiv::v3_6_0::Tmr::ControlRow, OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int, OpenSubdiv::v3_6_0::Tmr::ControlRow const&, OpenSubdiv::v3_6_0::Tmr::StencilRow<float>&) const | NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/../far/primvarRefiner.h | inline void
PrimvarRefinerReal<REAL>::Interpolate(int level, T const & src, U & dst) const {
assert(level>0 && level<=(int)_refiner._refinements.size());
switch (_refiner._subdivType) {
case Sdc::SCHEME_CATMARK:
interpFromFaces<Sdc::SCHEME_CATMARK>(level, src, dst);
interpFromEdges<Sdc::SCHEME_CATMARK>(level, src, dst);
interpFromVerts<Sdc::SCHEME_CATMARK>(level, src, dst);
break;
case Sdc::SCHEME_LOOP:
interpFromFaces<Sdc::SCHEME_LOOP>(level, src, dst);
interpFromEdges<Sdc::SCHEME_LOOP>(level, src, dst);
interpFromVerts<Sdc::SCHEME_LOOP>(level, src, dst);
break;
case Sdc::SCHEME_BILINEAR:
interpFromFaces<Sdc::SCHEME_BILINEAR>(level, src, dst);
interpFromEdges<Sdc::SCHEME_BILINEAR>(level, src, dst);
interpFromVerts<Sdc::SCHEME_BILINEAR>(level, src, dst);
break;
}
} | O0 | c | void OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::Interpolate<OpenSubdiv::v3_6_0::Tmr::ControlRow, OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int, OpenSubdiv::v3_6_0::Tmr::ControlRow const&, OpenSubdiv::v3_6_0::Tmr::StencilRow<float>&) const:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
xorl %eax, %eax
cmpl $0x0, -0xc(%rbp)
movb %al, -0x21(%rbp)
jle 0x1d3e7e
movq -0x30(%rbp), %rax
movl -0xc(%rbp), %ecx
movl %ecx, -0x34(%rbp)
movq (%rax), %rdi
addq $0x48, %rdi
callq 0xc65a0
movq %rax, %rcx
movl -0x34(%rbp), %eax
cmpl %ecx, %eax
setle %al
movb %al, -0x21(%rbp)
movb -0x21(%rbp), %al
testb $0x1, %al
jne 0x1d3e87
jmp 0x1d3e89
jmp 0x1d3ea8
leaq 0x1e109(%rip), %rdi # 0x1f1f99
leaq 0x2a30c(%rip), %rsi # 0x1fe1a3
movl $0x10d, %edx # imm = 0x10D
leaq 0x2a365(%rip), %rcx # 0x1fe208
callq 0xc9440
movq -0x30(%rbp), %rax
movq (%rax), %rax
movl (%rax), %eax
movl %eax, -0x38(%rbp)
testl %eax, %eax
je 0x1d3f51
jmp 0x1d3ebe
movl -0x38(%rbp), %eax
subl $0x1, %eax
je 0x1d3ed5
jmp 0x1d3ec8
movl -0x38(%rbp), %eax
subl $0x2, %eax
je 0x1d3f13
jmp 0x1d3f8d
movq -0x30(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0xd6ad0
movq -0x30(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0xd7bc0
movq -0x30(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0xd74f0
jmp 0x1d3f8d
movq -0x30(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0xcb490
movq -0x30(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0xcb090
movq -0x30(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0xd5980
jmp 0x1d3f8d
movq -0x30(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0xc87f0
movq -0x30(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0xcfe50
movq -0x30(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0xd6490
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| _ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE11InterpolateINS0_3Tmr10ControlRowENS5_10StencilRowIfEEEEviRKT_RT0_:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov rax, [rbp+var_8]
mov [rbp+var_30], rax
xor eax, eax
cmp [rbp+var_C], 0
mov [rbp+var_21], al
jle short loc_1D3E7E
mov rax, [rbp+var_30]
mov ecx, [rbp+var_C]
mov [rbp+var_34], ecx
mov rdi, [rax]
add rdi, 48h ; 'H'
call __ZNKSt6vectorIPN10OpenSubdiv6v3_6_03Vtr8internal10RefinementESaIS5_EE4sizeEv; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement *>::size(void)
mov rcx, rax
mov eax, [rbp+var_34]
cmp eax, ecx
setle al
mov [rbp+var_21], al
loc_1D3E7E:
mov al, [rbp+var_21]
test al, 1
jnz short loc_1D3E87
jmp short loc_1D3E89
loc_1D3E87:
jmp short loc_1D3EA8
loc_1D3E89:
lea rdi, aLevel0LevelInt; "level>0 && level<=(int)_refiner._refine"...
lea rsi, aWorkspaceLlm4b_49; "/workspace/llm4binary/github/2025_star3"...
mov edx, 10Dh
lea rcx, aVoidOpensubdiv_180; "void OpenSubdiv::v3_6_0::Far::PrimvarRe"...
call ___assert_fail
loc_1D3EA8:
mov rax, [rbp+var_30]
mov rax, [rax]
mov eax, [rax]
mov [rbp+var_38], eax
test eax, eax
jz loc_1D3F51
jmp short $+2
loc_1D3EBE:
mov eax, [rbp+var_38]
sub eax, 1
jz short loc_1D3ED5
jmp short $+2
loc_1D3EC8:
mov eax, [rbp+var_38]
sub eax, 2
jz short loc_1D3F13
jmp loc_1D3F8D
loc_1D3ED5:
mov rdi, [rbp+var_30]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
call __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromFacesILNS0_3Sdc10SchemeTypeE1ENS0_3Tmr10ControlRowENS7_10StencilRowIfEEEEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromFaces<(OpenSubdiv::v3_6_0::Sdc::SchemeType)1,OpenSubdiv::v3_6_0::Tmr::ControlRow,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::ControlRow const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
mov rdi, [rbp+var_30]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
call __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromEdgesILNS0_3Sdc10SchemeTypeE1ENS0_3Tmr10ControlRowENS7_10StencilRowIfEEEEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromEdges<(OpenSubdiv::v3_6_0::Sdc::SchemeType)1,OpenSubdiv::v3_6_0::Tmr::ControlRow,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::ControlRow const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
mov rdi, [rbp+var_30]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
call __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromVertsILNS0_3Sdc10SchemeTypeE1ENS0_3Tmr10ControlRowENS7_10StencilRowIfEEEEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromVerts<(OpenSubdiv::v3_6_0::Sdc::SchemeType)1,OpenSubdiv::v3_6_0::Tmr::ControlRow,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::ControlRow const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
jmp short loc_1D3F8D
loc_1D3F13:
mov rdi, [rbp+var_30]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
call __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromFacesILNS0_3Sdc10SchemeTypeE2ENS0_3Tmr10ControlRowENS7_10StencilRowIfEEEEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromFaces<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2,OpenSubdiv::v3_6_0::Tmr::ControlRow,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::ControlRow const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
mov rdi, [rbp+var_30]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
call __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromEdgesILNS0_3Sdc10SchemeTypeE2ENS0_3Tmr10ControlRowENS7_10StencilRowIfEEEEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromEdges<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2,OpenSubdiv::v3_6_0::Tmr::ControlRow,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::ControlRow const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
mov rdi, [rbp+var_30]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
call __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromVertsILNS0_3Sdc10SchemeTypeE2ENS0_3Tmr10ControlRowENS7_10StencilRowIfEEEEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromVerts<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2,OpenSubdiv::v3_6_0::Tmr::ControlRow,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::ControlRow const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
jmp short loc_1D3F8D
loc_1D3F51:
mov rdi, [rbp+var_30]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
call __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromFacesILNS0_3Sdc10SchemeTypeE0ENS0_3Tmr10ControlRowENS7_10StencilRowIfEEEEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromFaces<(OpenSubdiv::v3_6_0::Sdc::SchemeType)0,OpenSubdiv::v3_6_0::Tmr::ControlRow,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::ControlRow const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
mov rdi, [rbp+var_30]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
call __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromEdgesILNS0_3Sdc10SchemeTypeE0ENS0_3Tmr10ControlRowENS7_10StencilRowIfEEEEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromEdges<(OpenSubdiv::v3_6_0::Sdc::SchemeType)0,OpenSubdiv::v3_6_0::Tmr::ControlRow,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::ControlRow const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
mov rdi, [rbp+var_30]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
call __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromVertsILNS0_3Sdc10SchemeTypeE0ENS0_3Tmr10ControlRowENS7_10StencilRowIfEEEEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromVerts<(OpenSubdiv::v3_6_0::Sdc::SchemeType)0,OpenSubdiv::v3_6_0::Tmr::ControlRow,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::ControlRow const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
loc_1D3F8D:
add rsp, 40h
pop rbp
retn
| long long OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::Interpolate<OpenSubdiv::v3_6_0::Tmr::ControlRow,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(
int **a1,
unsigned int a2,
long long a3,
long long a4)
{
long long result; // rax
int v5; // [rsp+8h] [rbp-38h]
bool v6; // [rsp+1Fh] [rbp-21h]
v6 = 0;
if ( (int)a2 > 0 )
v6 = (int)a2 <= (int)std::vector<OpenSubdiv::v3_6_0::Vtr::internal::Refinement *>::size(*a1 + 18);
if ( !v6 )
__assert_fail(
"level>0 && level<=(int)_refiner._refinements.size()",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/../far/primvarRefiner.h",
269LL,
"void OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::Interpolate(int, const T &, U &) const [REAL = float, T ="
" OpenSubdiv::v3_6_0::Tmr::ControlRow, U = OpenSubdiv::v3_6_0::Tmr::StencilRow<>]");
v5 = **a1;
if ( v5 )
{
if ( v5 == 1 )
{
OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromFaces<(OpenSubdiv::v3_6_0::Sdc::SchemeType)1,OpenSubdiv::v3_6_0::Tmr::ControlRow,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(
a1,
a2,
a3,
a4);
OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromEdges<(OpenSubdiv::v3_6_0::Sdc::SchemeType)1,OpenSubdiv::v3_6_0::Tmr::ControlRow,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(
a1,
a2,
a3,
a4);
return OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromVerts<(OpenSubdiv::v3_6_0::Sdc::SchemeType)1,OpenSubdiv::v3_6_0::Tmr::ControlRow,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(
a1,
a2,
a3,
a4);
}
else
{
result = (unsigned int)(v5 - 2);
if ( v5 == 2 )
{
OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromFaces<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2,OpenSubdiv::v3_6_0::Tmr::ControlRow,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(
a1,
a2,
a3,
a4);
OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromEdges<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2,OpenSubdiv::v3_6_0::Tmr::ControlRow,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(
a1,
a2,
a3,
a4);
return OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromVerts<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2,OpenSubdiv::v3_6_0::Tmr::ControlRow,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(
a1,
a2,
a3,
a4);
}
}
}
else
{
OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromFaces<(OpenSubdiv::v3_6_0::Sdc::SchemeType)0,OpenSubdiv::v3_6_0::Tmr::ControlRow,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(
a1,
a2,
a3,
a4);
OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromEdges<(OpenSubdiv::v3_6_0::Sdc::SchemeType)0,OpenSubdiv::v3_6_0::Tmr::ControlRow,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(
a1,
a2,
a3,
a4);
return OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromVerts<(OpenSubdiv::v3_6_0::Sdc::SchemeType)0,OpenSubdiv::v3_6_0::Tmr::ControlRow,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(
a1,
a2,
a3,
a4);
}
return result;
}
| |||
28,159 | void OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::Interpolate<OpenSubdiv::v3_6_0::Tmr::ControlRow, OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int, OpenSubdiv::v3_6_0::Tmr::ControlRow const&, OpenSubdiv::v3_6_0::Tmr::StencilRow<float>&) const | NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/../far/primvarRefiner.h | inline void
PrimvarRefinerReal<REAL>::Interpolate(int level, T const & src, U & dst) const {
assert(level>0 && level<=(int)_refiner._refinements.size());
switch (_refiner._subdivType) {
case Sdc::SCHEME_CATMARK:
interpFromFaces<Sdc::SCHEME_CATMARK>(level, src, dst);
interpFromEdges<Sdc::SCHEME_CATMARK>(level, src, dst);
interpFromVerts<Sdc::SCHEME_CATMARK>(level, src, dst);
break;
case Sdc::SCHEME_LOOP:
interpFromFaces<Sdc::SCHEME_LOOP>(level, src, dst);
interpFromEdges<Sdc::SCHEME_LOOP>(level, src, dst);
interpFromVerts<Sdc::SCHEME_LOOP>(level, src, dst);
break;
case Sdc::SCHEME_BILINEAR:
interpFromFaces<Sdc::SCHEME_BILINEAR>(level, src, dst);
interpFromEdges<Sdc::SCHEME_BILINEAR>(level, src, dst);
interpFromVerts<Sdc::SCHEME_BILINEAR>(level, src, dst);
break;
}
} | O2 | c | void OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::Interpolate<OpenSubdiv::v3_6_0::Tmr::ControlRow, OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int, OpenSubdiv::v3_6_0::Tmr::ControlRow const&, OpenSubdiv::v3_6_0::Tmr::StencilRow<float>&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testl %esi, %esi
jle 0xb4a66
movq %rcx, %rbx
movl %esi, %ebp
movq %rdi, %r15
movq (%rdi), %rax
movq 0x50(%rax), %rcx
subq 0x48(%rax), %rcx
shrq $0x3, %rcx
cmpl %esi, %ecx
jl 0xb4a66
movq %rdx, %r14
movl (%rax), %eax
testl %eax, %eax
je 0xb4a21
cmpl $0x2, %eax
je 0xb49e7
cmpl $0x1, %eax
jne 0xb4a5b
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x535b0
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x55230
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x53d70
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x51850
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x504e0
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x52eb0
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x4fcb0
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x53180
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x50680
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0xfb9c(%rip), %rdi # 0xc4609
leaq 0x1ac9e(%rip), %rsi # 0xcf712
leaq 0x1b2d6(%rip), %rcx # 0xcfd51
movl $0x10d, %edx # imm = 0x10D
callq 0x512a0
nop
| _ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE11InterpolateINS0_3Tmr10StencilRowIfEES7_EEviRKT_RT0_:
push rbp; int
push r15; int
push r14; int
push rbx; int
push rax; int
test esi, esi
jle loc_B4A66
mov rbx, rcx
mov ebp, esi
mov r15, rdi
mov rax, [rdi]
mov rcx, [rax+50h]
sub rcx, [rax+48h]
shr rcx, 3
cmp ecx, esi
jl loc_B4A66
mov r14, rdx
mov eax, [rax]
test eax, eax
jz loc_B4A21
cmp eax, 2
jz short loc_B49E7
cmp eax, 1
jnz loc_B4A5B
mov rdi, r15; int
mov esi, ebp; int
mov rdx, r14; int
mov rcx, rbx; int
call __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromFacesILNS0_3Sdc10SchemeTypeE1ENS0_3Tmr10StencilRowIfEES9_EEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromFaces<(OpenSubdiv::v3_6_0::Sdc::SchemeType)1,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
mov rdi, r15
mov esi, ebp
mov rdx, r14
mov rcx, rbx
call __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromEdgesILNS0_3Sdc10SchemeTypeE1ENS0_3Tmr10StencilRowIfEES9_EEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromEdges<(OpenSubdiv::v3_6_0::Sdc::SchemeType)1,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
mov rdi, r15
mov esi, ebp
mov rdx, r14
mov rcx, rbx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromVertsILNS0_3Sdc10SchemeTypeE1ENS0_3Tmr10StencilRowIfEES9_EEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromVerts<(OpenSubdiv::v3_6_0::Sdc::SchemeType)1,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
loc_B49E7:
mov rdi, r15; int
mov esi, ebp; int
mov rdx, r14; int
mov rcx, rbx; int
call __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromFacesILNS0_3Sdc10SchemeTypeE2ENS0_3Tmr10StencilRowIfEES9_EEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromFaces<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
mov rdi, r15
mov esi, ebp
mov rdx, r14
mov rcx, rbx
call __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromEdgesILNS0_3Sdc10SchemeTypeE2ENS0_3Tmr10StencilRowIfEES9_EEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromEdges<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
mov rdi, r15
mov esi, ebp
mov rdx, r14
mov rcx, rbx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromVertsILNS0_3Sdc10SchemeTypeE2ENS0_3Tmr10StencilRowIfEES9_EEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromVerts<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
loc_B4A21:
mov rdi, r15; int
mov esi, ebp; int
mov rdx, r14; int
mov rcx, rbx; int
call __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromFacesILNS0_3Sdc10SchemeTypeE0ENS0_3Tmr10StencilRowIfEES9_EEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromFaces<(OpenSubdiv::v3_6_0::Sdc::SchemeType)0,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
mov rdi, r15; int
mov esi, ebp; int
mov rdx, r14; int
mov rcx, rbx; int
call __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromEdgesILNS0_3Sdc10SchemeTypeE0ENS0_3Tmr10StencilRowIfEES9_EEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromEdges<(OpenSubdiv::v3_6_0::Sdc::SchemeType)0,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
mov rdi, r15; int
mov esi, ebp; int
mov rdx, r14; int
mov rcx, rbx; int
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromVertsILNS0_3Sdc10SchemeTypeE0ENS0_3Tmr10StencilRowIfEES9_EEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromVerts<(OpenSubdiv::v3_6_0::Sdc::SchemeType)0,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
loc_B4A5B:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_B4A66:
lea rdi, aLevel0LevelInt; "level>0 && level<=(int)_refiner._refine"...
lea rsi, aWorkspaceLlm4b_49; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidOpensubdiv_168; "void OpenSubdiv::v3_6_0::Far::PrimvarRe"...
mov edx, 10Dh
call ___assert_fail
| Interpolate<OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
TEST ESI,ESI
JLE 0x001b4a66
MOV RBX,RCX
MOV EBP,ESI
MOV R15,RDI
MOV RAX,qword ptr [RDI]
MOV RCX,qword ptr [RAX + 0x50]
SUB RCX,qword ptr [RAX + 0x48]
SHR RCX,0x3
CMP ECX,ESI
JL 0x001b4a66
MOV R14,RDX
MOV EAX,dword ptr [RAX]
TEST EAX,EAX
JZ 0x001b4a21
CMP EAX,0x2
JZ 0x001b49e7
CMP EAX,0x1
JNZ 0x001b4a5b
MOV RDI,R15
MOV ESI,EBP
MOV RDX,R14
MOV RCX,RBX
CALL 0x001535b0
MOV RDI,R15
MOV ESI,EBP
MOV RDX,R14
MOV RCX,RBX
CALL 0x00155230
MOV RDI,R15
MOV ESI,EBP
MOV RDX,R14
MOV RCX,RBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x00153d70
LAB_001b49e7:
MOV RDI,R15
MOV ESI,EBP
MOV RDX,R14
MOV RCX,RBX
CALL 0x00151850
MOV RDI,R15
MOV ESI,EBP
MOV RDX,R14
MOV RCX,RBX
CALL 0x001504e0
MOV RDI,R15
MOV ESI,EBP
MOV RDX,R14
MOV RCX,RBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x00152eb0
LAB_001b4a21:
MOV RDI,R15
MOV ESI,EBP
MOV RDX,R14
MOV RCX,RBX
CALL 0x0014fcb0
MOV RDI,R15
MOV ESI,EBP
MOV RDX,R14
MOV RCX,RBX
CALL 0x00153180
MOV RDI,R15
MOV ESI,EBP
MOV RDX,R14
MOV RCX,RBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x00150680
LAB_001b4a5b:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_001b4a66:
LEA RDI,[0x1c4609]
LEA RSI,[0x1cf712]
LEA RCX,[0x1cfd51]
MOV EDX,0x10d
CALL 0x001512a0
|
/* void
OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::Interpolate<OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,
OpenSubdiv::v3_6_0::Tmr::StencilRow<float> >(int, OpenSubdiv::v3_6_0::Tmr::StencilRow<float>
const&, OpenSubdiv::v3_6_0::Tmr::StencilRow<float>&) const */
void __thiscall
OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::
Interpolate<OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>
(PrimvarRefinerReal<float> *this,int param_1,StencilRow *param_2,StencilRow *param_3)
{
int iVar1;
int *piVar2;
if ((param_1 < 1) ||
(piVar2 = *(int **)this,
(int)((ulong)(*(long *)(piVar2 + 0x14) - *(long *)(piVar2 + 0x12)) >> 3) < param_1)) {
/* WARNING: Subroutine does not return */
__assert_fail("level>0 && level<=(int)_refiner._refinements.size()",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/../far/primvarRefiner.h"
,0x10d,
"void OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::Interpolate(int, const T &, U &) const [REAL = float, T = OpenSubdiv::v3_6_0::Tmr::StencilRow<>, U = OpenSubdiv::v3_6_0::Tmr::StencilRow<>]"
);
}
iVar1 = *piVar2;
if (iVar1 == 0) {
interpFromFaces<(OpenSubdiv::v3_6_0::Sdc::SchemeType)0,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>
(this,param_1,param_2,param_3);
interpFromEdges<(OpenSubdiv::v3_6_0::Sdc::SchemeType)0,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>
(this,param_1,param_2,param_3);
interpFromVerts<(OpenSubdiv::v3_6_0::Sdc::SchemeType)0,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>
(this,param_1,param_2,param_3);
return;
}
if (iVar1 != 2) {
if (iVar1 == 1) {
interpFromFaces<(OpenSubdiv::v3_6_0::Sdc::SchemeType)1,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>
(this,param_1,param_2,param_3);
interpFromEdges<(OpenSubdiv::v3_6_0::Sdc::SchemeType)1,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>
(this,param_1,param_2,param_3);
interpFromVerts<(OpenSubdiv::v3_6_0::Sdc::SchemeType)1,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>
(this,param_1,param_2,param_3);
return;
}
return;
}
interpFromFaces<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>
(this,param_1,param_2,param_3);
interpFromEdges<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>
(this,param_1,param_2,param_3);
interpFromVerts<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>
(this,param_1,param_2,param_3);
return;
}
| ||
28,160 | void OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::Interpolate<OpenSubdiv::v3_6_0::Tmr::ControlRow, OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int, OpenSubdiv::v3_6_0::Tmr::ControlRow const&, OpenSubdiv::v3_6_0::Tmr::StencilRow<float>&) const | NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/../far/primvarRefiner.h | inline void
PrimvarRefinerReal<REAL>::Interpolate(int level, T const & src, U & dst) const {
assert(level>0 && level<=(int)_refiner._refinements.size());
switch (_refiner._subdivType) {
case Sdc::SCHEME_CATMARK:
interpFromFaces<Sdc::SCHEME_CATMARK>(level, src, dst);
interpFromEdges<Sdc::SCHEME_CATMARK>(level, src, dst);
interpFromVerts<Sdc::SCHEME_CATMARK>(level, src, dst);
break;
case Sdc::SCHEME_LOOP:
interpFromFaces<Sdc::SCHEME_LOOP>(level, src, dst);
interpFromEdges<Sdc::SCHEME_LOOP>(level, src, dst);
interpFromVerts<Sdc::SCHEME_LOOP>(level, src, dst);
break;
case Sdc::SCHEME_BILINEAR:
interpFromFaces<Sdc::SCHEME_BILINEAR>(level, src, dst);
interpFromEdges<Sdc::SCHEME_BILINEAR>(level, src, dst);
interpFromVerts<Sdc::SCHEME_BILINEAR>(level, src, dst);
break;
}
} | O3 | c | void OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::Interpolate<OpenSubdiv::v3_6_0::Tmr::ControlRow, OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int, OpenSubdiv::v3_6_0::Tmr::ControlRow const&, OpenSubdiv::v3_6_0::Tmr::StencilRow<float>&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
testl %esi, %esi
jle 0xac80e
movq %rcx, %rbx
movl %esi, %ebp
movq %rdi, %r15
movq (%rdi), %rax
movq 0x50(%rax), %rcx
subq 0x48(%rax), %rcx
shrq $0x3, %rcx
cmpl %esi, %ecx
jl 0xac80e
movq %rdx, %r14
movl (%rax), %eax
testl %eax, %eax
je 0xac6c7
cmpl $0x2, %eax
je 0xac686
cmpl $0x1, %eax
jne 0xac7fc
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x3aa60
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x3bca0
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rbx, %rcx
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3af40
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x39860
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x38d70
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rbx, %rcx
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3a630
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x387b0
movq %r15, %rdi
movl %ebp, %esi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x3a810
movq (%r15), %rax
movq 0x48(%rax), %rax
movl %ebp, %ecx
movq -0x8(%rax,%rcx,8), %rbp
movq 0x8(%rbp), %rax
movq %rax, 0x8(%rsp)
movl 0x14(%rax), %r12d
addl %r12d, %r12d
leaq 0x40(%rsp), %rax
movq %rax, -0x10(%rax)
movl %r12d, -0x8(%rax)
movl $0x20, -0x4(%rax)
movq $0x0, 0x80(%rax)
cmpl $0x21, %r12d
jb 0xac74d
movl %r12d, %edi
shlq $0x2, %rdi
callq 0x3a210
movq %rax, %rdi
movq %rax, 0xc0(%rsp)
movq %rax, 0x30(%rsp)
movl %r12d, 0x3c(%rsp)
jmp 0xac74f
xorl %edi, %edi
movq 0x8(%rsp), %rax
movl 0x8(%rax), %eax
testl %eax, %eax
jle 0xac7f7
xorl %r12d, %r12d
movq 0xf0(%rbp), %rcx
movl (%rcx,%r12,4), %ecx
cmpl $-0x1, %ecx
je 0xac7e0
movslq 0x8(%rbx), %r15
imull %r15d, %ecx
movq (%rbx), %rax
movslq %ecx, %rcx
leaq (%rax,%rcx,4), %r13
testq %r15, %r15
jle 0xac79a
movq %r15, %rdx
shlq $0x2, %rdx
movq %r13, %rdi
xorl %esi, %esi
callq 0x391a0
movq %r13, 0x20(%rsp)
movl %r15d, 0x28(%rsp)
movl 0x8(%r14), %eax
movl %r12d, %ecx
imull %eax, %ecx
movslq %ecx, %rcx
shlq $0x2, %rcx
addq (%r14), %rcx
movq %rcx, 0x10(%rsp)
movl %eax, 0x18(%rsp)
leaq 0x20(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movss 0x882d(%rip), %xmm0 # 0xb5000
callq 0x3c0b0
movq 0x8(%rsp), %rax
movl 0x8(%rax), %eax
incq %r12
movslq %eax, %rcx
cmpq %rcx, %r12
jl 0xac762
movq 0xc0(%rsp), %rdi
callq 0x3a0a0
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10f94(%rip), %rdi # 0xbd7a9
leaq 0x1baea(%rip), %rsi # 0xc8306
leaq 0x1c122(%rip), %rcx # 0xc8945
movl $0x10d, %edx # imm = 0x10D
callq 0x39540
nop
| _ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE11InterpolateINS0_3Tmr10StencilRowIfEES7_EEviRKT_RT0_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0C8h
test esi, esi
jle loc_AC80E
mov rbx, rcx
mov ebp, esi
mov r15, rdi
mov rax, [rdi]
mov rcx, [rax+50h]
sub rcx, [rax+48h]
shr rcx, 3
cmp ecx, esi
jl loc_AC80E
mov r14, rdx
mov eax, [rax]
test eax, eax
jz loc_AC6C7
cmp eax, 2
jz short loc_AC686
cmp eax, 1
jnz loc_AC7FC
mov rdi, r15
mov esi, ebp
mov rdx, r14
mov rcx, rbx
call __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromFacesILNS0_3Sdc10SchemeTypeE1ENS0_3Tmr10StencilRowIfEES9_EEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromFaces<(OpenSubdiv::v3_6_0::Sdc::SchemeType)1,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
mov rdi, r15
mov esi, ebp
mov rdx, r14
mov rcx, rbx
call __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromEdgesILNS0_3Sdc10SchemeTypeE1ENS0_3Tmr10StencilRowIfEES9_EEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromEdges<(OpenSubdiv::v3_6_0::Sdc::SchemeType)1,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
mov rdi, r15
mov esi, ebp
mov rdx, r14
mov rcx, rbx
add rsp, 0C8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromVertsILNS0_3Sdc10SchemeTypeE1ENS0_3Tmr10StencilRowIfEES9_EEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromVerts<(OpenSubdiv::v3_6_0::Sdc::SchemeType)1,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
loc_AC686:
mov rdi, r15
mov esi, ebp
mov rdx, r14
mov rcx, rbx
call __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromFacesILNS0_3Sdc10SchemeTypeE2ENS0_3Tmr10StencilRowIfEES9_EEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromFaces<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
mov rdi, r15
mov esi, ebp
mov rdx, r14
mov rcx, rbx
call __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromEdgesILNS0_3Sdc10SchemeTypeE2ENS0_3Tmr10StencilRowIfEES9_EEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromEdges<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
mov rdi, r15
mov esi, ebp
mov rdx, r14
mov rcx, rbx
add rsp, 0C8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromVertsILNS0_3Sdc10SchemeTypeE2ENS0_3Tmr10StencilRowIfEES9_EEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromVerts<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
loc_AC6C7:
mov rdi, r15
mov esi, ebp
mov rdx, r14
mov rcx, rbx
call __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromFacesILNS0_3Sdc10SchemeTypeE0ENS0_3Tmr10StencilRowIfEES9_EEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromFaces<(OpenSubdiv::v3_6_0::Sdc::SchemeType)0,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
mov rdi, r15
mov esi, ebp
mov rdx, r14
mov rcx, rbx
call __ZNK10OpenSubdiv6v3_6_03Far18PrimvarRefinerRealIfE15interpFromEdgesILNS0_3Sdc10SchemeTypeE0ENS0_3Tmr10StencilRowIfEES9_EEviRKT0_RT1_; OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromEdges<(OpenSubdiv::v3_6_0::Sdc::SchemeType)0,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(int,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> const&,OpenSubdiv::v3_6_0::Tmr::StencilRow<float> &)
mov rax, [r15]
mov rax, [rax+48h]
mov ecx, ebp
mov rbp, [rax+rcx*8-8]
mov rax, [rbp+8]
mov [rsp+0F8h+var_F0], rax
mov r12d, [rax+14h]
add r12d, r12d
lea rax, [rsp+0F8h+var_B8]
mov [rax-10h], rax
mov [rax-8], r12d
mov dword ptr [rax-4], 20h ; ' '
mov qword ptr [rax+80h], 0
cmp r12d, 21h ; '!'
jb short loc_AC74D
mov edi, r12d
shl rdi, 2; unsigned __int64
call __Znwm; operator new(ulong)
mov rdi, rax
mov [rsp+0F8h+var_38], rax
mov [rsp+0F8h+var_C8], rax
mov [rsp+0F8h+var_BC], r12d
jmp short loc_AC74F
loc_AC74D:
xor edi, edi
loc_AC74F:
mov rax, [rsp+0F8h+var_F0]
mov eax, [rax+8]
test eax, eax
jle loc_AC7F7
xor r12d, r12d
loc_AC762:
mov rcx, [rbp+0F0h]
mov ecx, [rcx+r12*4]
cmp ecx, 0FFFFFFFFh
jz short loc_AC7E0
movsxd r15, dword ptr [rbx+8]
imul ecx, r15d
mov rax, [rbx]
movsxd rcx, ecx
lea r13, [rax+rcx*4]
test r15, r15
jle short loc_AC79A
mov rdx, r15
shl rdx, 2
mov rdi, r13
xor esi, esi
call _memset
loc_AC79A:
mov [rsp+0F8h+var_D8], r13
mov [rsp+0F8h+var_D0], r15d
mov eax, [r14+8]
mov ecx, r12d
imul ecx, eax
movsxd rcx, ecx
shl rcx, 2
add rcx, [r14]
mov [rsp+0F8h+var_E8], rcx
mov [rsp+0F8h+var_E0], eax
lea rdi, [rsp+0F8h+var_D8]
lea rsi, [rsp+0F8h+var_E8]
movss xmm0, cs:dword_B5000
call __ZN10OpenSubdiv6v3_6_03Tmr10StencilRowIfE13AddWithWeightERKS3_f; OpenSubdiv::v3_6_0::Tmr::StencilRow<float>::AddWithWeight(OpenSubdiv::v3_6_0::Tmr::StencilRow<float> const&,float)
mov rax, [rsp+0F8h+var_F0]
mov eax, [rax+8]
loc_AC7E0:
inc r12
movsxd rcx, eax
cmp r12, rcx
jl loc_AC762
mov rdi, [rsp+0F8h+var_38]; void *
loc_AC7F7:
call __ZdlPv; operator delete(void *)
loc_AC7FC:
add rsp, 0C8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_AC80E:
lea rdi, aLevel0LevelInt; "level>0 && level<=(int)_refiner._refine"...
lea rsi, aWorkspaceLlm4b_53; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aVoidOpensubdiv_166; "void OpenSubdiv::v3_6_0::Far::PrimvarRe"...
mov edx, 10Dh
call ___assert_fail
| void OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::Interpolate<OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(
int **a1,
unsigned int a2,
long long a3,
long long a4)
{
int v6; // eax
long long v7; // rbp
unsigned int v8; // r12d
void *v9; // rdi
int v10; // eax
long long i; // r12
int v12; // ecx
long long v13; // r15
long long v14; // rcx
long long v15; // r13
int v16; // eax
long long v17; // [rsp+8h] [rbp-F0h]
long long v18; // [rsp+10h] [rbp-E8h] BYREF
int v19; // [rsp+18h] [rbp-E0h]
long long v20; // [rsp+20h] [rbp-D8h] BYREF
int v21; // [rsp+28h] [rbp-D0h]
char *v22; // [rsp+30h] [rbp-C8h]
unsigned int v23; // [rsp+38h] [rbp-C0h]
int v24; // [rsp+3Ch] [rbp-BCh]
char v25; // [rsp+40h] [rbp-B8h] BYREF
void *v26; // [rsp+C0h] [rbp-38h]
if ( (int)a2 <= 0 || (int)((*((_QWORD *)*a1 + 10) - *((_QWORD *)*a1 + 9)) >> 3) < (int)a2 )
__assert_fail(
"level>0 && level<=(int)_refiner._refinements.size()",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/../far/primvarRefiner.h",
269LL,
"void OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::Interpolate(int, const T &, U &) const [REAL = float, T ="
" OpenSubdiv::v3_6_0::Tmr::StencilRow<>, U = OpenSubdiv::v3_6_0::Tmr::StencilRow<>]");
v6 = **a1;
if ( v6 )
{
if ( v6 == 2 )
{
OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromFaces<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(
a1,
a2,
a3,
a4);
OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromEdges<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(
a1,
a2,
a3,
a4);
OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromVerts<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(
a1,
a2,
a3,
a4);
}
else if ( v6 == 1 )
{
OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromFaces<(OpenSubdiv::v3_6_0::Sdc::SchemeType)1,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(
a1,
a2,
a3,
a4);
OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromEdges<(OpenSubdiv::v3_6_0::Sdc::SchemeType)1,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(
a1,
a2,
a3,
a4);
OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromVerts<(OpenSubdiv::v3_6_0::Sdc::SchemeType)1,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(
a1,
a2,
a3,
a4);
}
}
else
{
OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromFaces<(OpenSubdiv::v3_6_0::Sdc::SchemeType)0,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(
a1,
a2,
a3,
a4);
OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::interpFromEdges<(OpenSubdiv::v3_6_0::Sdc::SchemeType)0,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>(
a1,
a2,
a3,
a4);
v7 = *(_QWORD *)(*((_QWORD *)*a1 + 9) + 8LL * a2 - 8);
v17 = *(_QWORD *)(v7 + 8);
v8 = 2 * *(_DWORD *)(v17 + 20);
v22 = &v25;
v23 = v8;
v24 = 32;
v26 = 0LL;
if ( v8 < 0x21 )
{
v9 = 0LL;
}
else
{
v9 = (void *)operator new(4LL * v8);
v26 = v9;
v22 = (char *)v9;
v24 = v8;
}
v10 = *(_DWORD *)(v17 + 8);
if ( v10 > 0 )
{
for ( i = 0LL; i < v10; ++i )
{
v12 = *(_DWORD *)(*(_QWORD *)(v7 + 240) + 4 * i);
if ( v12 != -1 )
{
v13 = *(int *)(a4 + 8);
v14 = (int)v13 * v12;
v15 = *(_QWORD *)a4 + 4 * v14;
if ( v13 > 0 )
memset(*(_QWORD *)a4 + 4 * v14, 0LL, 4 * v13);
v20 = v15;
v21 = v13;
v16 = *(_DWORD *)(a3 + 8);
v18 = *(_QWORD *)a3 + 4LL * v16 * (int)i;
v19 = v16;
OpenSubdiv::v3_6_0::Tmr::StencilRow<float>::AddWithWeight(&v20, &v18, 1.0);
v10 = *(_DWORD *)(v17 + 8);
}
}
v9 = v26;
}
operator delete(v9);
}
}
| Interpolate<OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xc8
TEST ESI,ESI
JLE 0x001ac80e
MOV RBX,RCX
MOV EBP,ESI
MOV R15,RDI
MOV RAX,qword ptr [RDI]
MOV RCX,qword ptr [RAX + 0x50]
SUB RCX,qword ptr [RAX + 0x48]
SHR RCX,0x3
CMP ECX,ESI
JL 0x001ac80e
MOV R14,RDX
MOV EAX,dword ptr [RAX]
TEST EAX,EAX
JZ 0x001ac6c7
CMP EAX,0x2
JZ 0x001ac686
CMP EAX,0x1
JNZ 0x001ac7fc
MOV RDI,R15
MOV ESI,EBP
MOV RDX,R14
MOV RCX,RBX
CALL 0x0013aa60
MOV RDI,R15
MOV ESI,EBP
MOV RDX,R14
MOV RCX,RBX
CALL 0x0013bca0
MOV RDI,R15
MOV ESI,EBP
MOV RDX,R14
MOV RCX,RBX
ADD RSP,0xc8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0013af40
LAB_001ac686:
MOV RDI,R15
MOV ESI,EBP
MOV RDX,R14
MOV RCX,RBX
CALL 0x00139860
MOV RDI,R15
MOV ESI,EBP
MOV RDX,R14
MOV RCX,RBX
CALL 0x00138d70
MOV RDI,R15
MOV ESI,EBP
MOV RDX,R14
MOV RCX,RBX
ADD RSP,0xc8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0013a630
LAB_001ac6c7:
MOV RDI,R15
MOV ESI,EBP
MOV RDX,R14
MOV RCX,RBX
CALL 0x001387b0
MOV RDI,R15
MOV ESI,EBP
MOV RDX,R14
MOV RCX,RBX
CALL 0x0013a810
MOV RAX,qword ptr [R15]
MOV RAX,qword ptr [RAX + 0x48]
MOV ECX,EBP
MOV RBP,qword ptr [RAX + RCX*0x8 + -0x8]
MOV RAX,qword ptr [RBP + 0x8]
MOV qword ptr [RSP + 0x8],RAX
MOV R12D,dword ptr [RAX + 0x14]
ADD R12D,R12D
LEA RAX,[RSP + 0x40]
MOV qword ptr [RAX + -0x10],RAX
MOV dword ptr [RAX + -0x8],R12D
MOV dword ptr [RAX + -0x4],0x20
MOV qword ptr [RAX + 0x80],0x0
CMP R12D,0x21
JC 0x001ac74d
MOV EDI,R12D
SHL RDI,0x2
CALL 0x0013a210
MOV RDI,RAX
MOV qword ptr [RSP + 0xc0],RAX
MOV qword ptr [RSP + 0x30],RAX
MOV dword ptr [RSP + 0x3c],R12D
JMP 0x001ac74f
LAB_001ac74d:
XOR EDI,EDI
LAB_001ac74f:
MOV RAX,qword ptr [RSP + 0x8]
MOV EAX,dword ptr [RAX + 0x8]
TEST EAX,EAX
JLE 0x001ac7f7
XOR R12D,R12D
LAB_001ac762:
MOV RCX,qword ptr [RBP + 0xf0]
MOV ECX,dword ptr [RCX + R12*0x4]
CMP ECX,-0x1
JZ 0x001ac7e0
MOVSXD R15,dword ptr [RBX + 0x8]
IMUL ECX,R15D
MOV RAX,qword ptr [RBX]
MOVSXD RCX,ECX
LEA R13,[RAX + RCX*0x4]
TEST R15,R15
JLE 0x001ac79a
MOV RDX,R15
SHL RDX,0x2
MOV RDI,R13
XOR ESI,ESI
CALL 0x001391a0
LAB_001ac79a:
MOV qword ptr [RSP + 0x20],R13
MOV dword ptr [RSP + 0x28],R15D
MOV EAX,dword ptr [R14 + 0x8]
MOV ECX,R12D
IMUL ECX,EAX
MOVSXD RCX,ECX
SHL RCX,0x2
ADD RCX,qword ptr [R14]
MOV qword ptr [RSP + 0x10],RCX
MOV dword ptr [RSP + 0x18],EAX
LEA RDI,[RSP + 0x20]
LEA RSI,[RSP + 0x10]
MOVSS XMM0,dword ptr [0x001b5000]
CALL 0x0013c0b0
MOV RAX,qword ptr [RSP + 0x8]
MOV EAX,dword ptr [RAX + 0x8]
LAB_001ac7e0:
INC R12
MOVSXD RCX,EAX
CMP R12,RCX
JL 0x001ac762
MOV RDI,qword ptr [RSP + 0xc0]
LAB_001ac7f7:
CALL 0x0013a0a0
LAB_001ac7fc:
ADD RSP,0xc8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001ac80e:
LEA RDI,[0x1bd7a9]
LEA RSI,[0x1c8306]
LEA RCX,[0x1c8945]
MOV EDX,0x10d
CALL 0x00139540
|
/* void
OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::Interpolate<OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,
OpenSubdiv::v3_6_0::Tmr::StencilRow<float> >(int, OpenSubdiv::v3_6_0::Tmr::StencilRow<float>
const&, OpenSubdiv::v3_6_0::Tmr::StencilRow<float>&) const */
void __thiscall
OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::
Interpolate<OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>
(PrimvarRefinerReal<float> *this,int param_1,StencilRow *param_2,StencilRow *param_3)
{
void *__s;
int iVar1;
int *piVar2;
long lVar3;
long lVar4;
uint uVar5;
int iVar6;
long lVar7;
long local_e8;
int local_e0;
void *local_d8;
int local_d0;
int1 *local_c8;
uint local_c0;
uint local_bc;
int1 local_b8 [128];
int1 *local_38;
if (0 < param_1) {
piVar2 = *(int **)this;
if (param_1 <= (int)((ulong)(*(long *)(piVar2 + 0x14) - *(long *)(piVar2 + 0x12)) >> 3)) {
iVar6 = *piVar2;
if (iVar6 == 0) {
interpFromFaces<(OpenSubdiv::v3_6_0::Sdc::SchemeType)0,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>
(this,param_1,param_2,param_3);
interpFromEdges<(OpenSubdiv::v3_6_0::Sdc::SchemeType)0,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>
(this,param_1,param_2,param_3);
lVar3 = *(long *)(*(long *)(*(long *)this + 0x48) + -8 + (ulong)(uint)param_1 * 8);
lVar4 = *(long *)(lVar3 + 8);
uVar5 = *(int *)(lVar4 + 0x14) * 2;
local_c8 = local_b8;
local_bc = 0x20;
local_38 = (int1 *)0x0;
local_c0 = uVar5;
if (0x20 < uVar5) {
local_c8 = (int1 *)operator_new((ulong)uVar5 << 2);
local_bc = uVar5;
local_38 = local_c8;
}
iVar6 = *(int *)(lVar4 + 8);
if (0 < iVar6) {
lVar7 = 0;
do {
iVar1 = *(int *)(*(long *)(lVar3 + 0xf0) + lVar7 * 4);
if (iVar1 != -1) {
iVar6 = *(int *)(param_3 + 8);
__s = (void *)(*(long *)param_3 + (long)(iVar1 * iVar6) * 4);
if (0 < (long)iVar6) {
memset(__s,0,(long)iVar6 << 2);
}
local_e0 = *(int *)(param_2 + 8);
local_e8 = (long)((int)lVar7 * local_e0) * 4 + *(long *)param_2;
local_d8 = __s;
local_d0 = iVar6;
Tmr::StencilRow<float>::AddWithWeight
((StencilRow<float> *)&local_d8,(StencilRow *)&local_e8,DAT_001b5000);
iVar6 = *(int *)(lVar4 + 8);
}
lVar7 = lVar7 + 1;
} while (lVar7 < iVar6);
}
operator_delete(local_38);
}
else {
if (iVar6 == 2) {
interpFromFaces<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>
(this,param_1,param_2,param_3);
interpFromEdges<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>
(this,param_1,param_2,param_3);
interpFromVerts<(OpenSubdiv::v3_6_0::Sdc::SchemeType)2,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>
(this,param_1,param_2,param_3);
return;
}
if (iVar6 == 1) {
interpFromFaces<(OpenSubdiv::v3_6_0::Sdc::SchemeType)1,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>
(this,param_1,param_2,param_3);
interpFromEdges<(OpenSubdiv::v3_6_0::Sdc::SchemeType)1,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>
(this,param_1,param_2,param_3);
interpFromVerts<(OpenSubdiv::v3_6_0::Sdc::SchemeType)1,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>,OpenSubdiv::v3_6_0::Tmr::StencilRow<float>>
(this,param_1,param_2,param_3);
return;
}
}
return;
}
}
/* WARNING: Subroutine does not return */
__assert_fail("level>0 && level<=(int)_refiner._refinements.size()",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/tmr/../far/primvarRefiner.h"
,0x10d,
"void OpenSubdiv::v3_6_0::Far::PrimvarRefinerReal<float>::Interpolate(int, const T &, U &) const [REAL = float, T = OpenSubdiv::v3_6_0::Tmr::StencilRow<>, U = OpenSubdiv::v3_6_0::Tmr::StencilRow<>]"
);
}
| |
28,161 | ImPlot3DQuat::FromElAz(float, float) | zkingston[P]unknot/build_O0/_deps/implot3d-src/implot3d.cpp | ImPlot3DQuat ImPlot3DQuat::FromElAz(float elevation, float azimuth) {
// Create quaternions for azimuth and elevation
ImPlot3DQuat azimuth_quat(azimuth, ImPlot3DPoint(0.0f, 0.0f, 1.0f)); // Rotate around Z-axis
ImPlot3DQuat elevation_quat(elevation, ImPlot3DPoint(1.0f, 0.0f, 0.0f)); // Rotate around X-axis
ImPlot3DQuat zero_quat(-IM_PI / 2, ImPlot3DPoint(1.0f, 0.0f, 0.0f)); // Rotate to zero azimuth/elevation orientation
// Combine rotations
return elevation_quat * zero_quat * azimuth_quat;
} | O0 | cpp | ImPlot3DQuat::FromElAz(float, float):
subq $0xc8, %rsp
movss %xmm0, 0xb4(%rsp)
movss %xmm1, 0xb0(%rsp)
movss 0xb0(%rsp), %xmm0
movss %xmm0, 0x4(%rsp)
leaq 0x94(%rsp), %rdi
movq %rdi, 0x8(%rsp)
xorps %xmm1, %xmm1
movss %xmm1, 0x24(%rsp)
movss 0x4fa84e(%rip), %xmm2 # 0x5cc014
movss %xmm2, 0x20(%rsp)
movaps %xmm1, %xmm0
callq 0xd8c50
movss 0x4(%rsp), %xmm0
movq 0x8(%rsp), %rsi
leaq 0xa0(%rsp), %rdi
movq %rdi, 0x40(%rsp)
callq 0xd7c90
movss 0x20(%rsp), %xmm0
movss 0x24(%rsp), %xmm2
movss 0xb4(%rsp), %xmm1
movss %xmm1, 0x14(%rsp)
leaq 0x78(%rsp), %rdi
movq %rdi, 0x18(%rsp)
movaps %xmm2, %xmm1
callq 0xd8c50
movss 0x14(%rsp), %xmm0
movq 0x18(%rsp), %rsi
leaq 0x84(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0xd7c90
movss 0x20(%rsp), %xmm0
movss 0x24(%rsp), %xmm2
leaq 0x5c(%rsp), %rdi
movq %rdi, 0x28(%rsp)
movaps %xmm2, %xmm1
callq 0xd8c50
movq 0x28(%rsp), %rsi
leaq 0x68(%rsp), %rdi
movq %rdi, 0x38(%rsp)
movss 0x500140(%rip), %xmm0 # 0x5d19b0
callq 0xd7c90
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rsi
callq 0xd4ba0
movq 0x40(%rsp), %rsi
movlpd %xmm0, 0x4c(%rsp)
movlpd %xmm1, 0x54(%rsp)
leaq 0x4c(%rsp), %rdi
callq 0xd4ba0
movlpd %xmm0, 0xb8(%rsp)
movlpd %xmm1, 0xc0(%rsp)
movsd 0xb8(%rsp), %xmm0
movsd 0xc0(%rsp), %xmm1
addq $0xc8, %rsp
retq
nopl (%rax,%rax)
| _ZN12ImPlot3DQuat8FromElAzEff:
sub rsp, 0C8h
movss [rsp+0C8h+var_14], xmm0
movss [rsp+0C8h+var_18], xmm1
movss xmm0, [rsp+0C8h+var_18]
movss [rsp+0C8h+var_C4], xmm0
lea rdi, [rsp+0C8h+var_34]; this
mov [rsp+0C8h+var_C0], rdi
xorps xmm1, xmm1; float
movss [rsp+0C8h+var_A4], xmm1
movss xmm2, cs:flt_5CC014; float
movss [rsp+0C8h+var_A8], xmm2
movaps xmm0, xmm1; float
call _ZN13ImPlot3DPointC2Efff; ImPlot3DPoint::ImPlot3DPoint(float,float,float)
movss xmm0, [rsp+0C8h+var_C4]; float
mov rsi, [rsp+0C8h+var_C0]; ImPlot3DPoint *
lea rdi, [rsp+0C8h+var_28]; this
mov [rsp+0C8h+var_88], rdi
call _ZN12ImPlot3DQuatC2EfRK13ImPlot3DPoint; ImPlot3DQuat::ImPlot3DQuat(float,ImPlot3DPoint const&)
movss xmm0, [rsp+0C8h+var_A8]; float
movss xmm2, [rsp+0C8h+var_A4]; float
movss xmm1, [rsp+0C8h+var_14]
movss [rsp+0C8h+var_B4], xmm1
lea rdi, [rsp+0C8h+var_50]; this
mov [rsp+0C8h+var_B0], rdi
movaps xmm1, xmm2; float
call _ZN13ImPlot3DPointC2Efff; ImPlot3DPoint::ImPlot3DPoint(float,float,float)
movss xmm0, [rsp+0C8h+var_B4]; float
mov rsi, [rsp+0C8h+var_B0]; ImPlot3DPoint *
lea rdi, [rsp+0C8h+var_44]; this
mov [rsp+0C8h+var_98], rdi
call _ZN12ImPlot3DQuatC2EfRK13ImPlot3DPoint; ImPlot3DQuat::ImPlot3DQuat(float,ImPlot3DPoint const&)
movss xmm0, [rsp+0C8h+var_A8]; float
movss xmm2, [rsp+0C8h+var_A4]; float
lea rdi, [rsp+0C8h+var_6C]; this
mov [rsp+0C8h+var_A0], rdi
movaps xmm1, xmm2; float
call _ZN13ImPlot3DPointC2Efff; ImPlot3DPoint::ImPlot3DPoint(float,float,float)
mov rsi, [rsp+0C8h+var_A0]; ImPlot3DPoint *
lea rdi, [rsp+0C8h+var_60]; this
mov [rsp+0C8h+var_90], rdi
movss xmm0, cs:flt_5D19B0; float
call _ZN12ImPlot3DQuatC2EfRK13ImPlot3DPoint; ImPlot3DQuat::ImPlot3DQuat(float,ImPlot3DPoint const&)
mov rdi, [rsp+0C8h+var_98]
mov rsi, [rsp+0C8h+var_90]
call _ZNK12ImPlot3DQuatmlERKS_; ImPlot3DQuat::operator*(ImPlot3DQuat const&)
mov rsi, [rsp+0C8h+var_88]
movlpd [rsp+0C8h+var_7C], xmm0
movlpd [rsp+0C8h+var_74], xmm1
lea rdi, [rsp+0C8h+var_7C]
call _ZNK12ImPlot3DQuatmlERKS_; ImPlot3DQuat::operator*(ImPlot3DQuat const&)
movlpd [rsp+0C8h+var_10], xmm0
movlpd [rsp+0C8h+var_8], xmm1
movsd xmm0, [rsp+0C8h+var_10]
movsd xmm1, [rsp+0C8h+var_8]
add rsp, 0C8h
retn
| void ImPlot3DQuat::FromElAz(ImPlot3DQuat *this, float a2, float a3)
{
float v3; // [rsp+14h] [rbp-B4h]
_QWORD v4[2]; // [rsp+4Ch] [rbp-7Ch] BYREF
_BYTE v5[12]; // [rsp+5Ch] [rbp-6Ch] BYREF
_BYTE v6[16]; // [rsp+68h] [rbp-60h] BYREF
_BYTE v7[12]; // [rsp+78h] [rbp-50h] BYREF
_BYTE v8[16]; // [rsp+84h] [rbp-44h] BYREF
_BYTE v9[12]; // [rsp+94h] [rbp-34h] BYREF
_BYTE v10[16]; // [rsp+A0h] [rbp-28h] BYREF
float v11; // [rsp+B0h] [rbp-18h]
float v12; // [rsp+B4h] [rbp-14h]
v12 = a2;
v11 = a3;
ImPlot3DPoint::ImPlot3DPoint((ImPlot3DPoint *)v9, 0.0, 0.0, 1.0);
ImPlot3DQuat::ImPlot3DQuat((ImPlot3DQuat *)v10, a3, (const ImPlot3DPoint *)v9);
v3 = v12;
ImPlot3DPoint::ImPlot3DPoint((ImPlot3DPoint *)v7, 1.0, 0.0, 0.0);
ImPlot3DQuat::ImPlot3DQuat((ImPlot3DQuat *)v8, v3, (const ImPlot3DPoint *)v7);
ImPlot3DPoint::ImPlot3DPoint((ImPlot3DPoint *)v5, 1.0, 0.0, 0.0);
ImPlot3DQuat::ImPlot3DQuat((ImPlot3DQuat *)v6, -1.5707964, (const ImPlot3DPoint *)v5);
v4[0] = ImPlot3DQuat::operator*(v8, v6);
v4[1] = 0LL;
ImPlot3DQuat::operator*(v4, v10);
}
| FromElAz:
SUB RSP,0xc8
MOVSS dword ptr [RSP + 0xb4],XMM0
MOVSS dword ptr [RSP + 0xb0],XMM1
MOVSS XMM0,dword ptr [RSP + 0xb0]
MOVSS dword ptr [RSP + 0x4],XMM0
LEA RDI,[RSP + 0x94]
MOV qword ptr [RSP + 0x8],RDI
XORPS XMM1,XMM1
MOVSS dword ptr [RSP + 0x24],XMM1
MOVSS XMM2,dword ptr [0x006cc014]
MOVSS dword ptr [RSP + 0x20],XMM2
MOVAPS XMM0,XMM1
CALL 0x001d8c50
MOVSS XMM0,dword ptr [RSP + 0x4]
MOV RSI,qword ptr [RSP + 0x8]
LEA RDI,[RSP + 0xa0]
MOV qword ptr [RSP + 0x40],RDI
CALL 0x001d7c90
MOVSS XMM0,dword ptr [RSP + 0x20]
MOVSS XMM2,dword ptr [RSP + 0x24]
MOVSS XMM1,dword ptr [RSP + 0xb4]
MOVSS dword ptr [RSP + 0x14],XMM1
LEA RDI,[RSP + 0x78]
MOV qword ptr [RSP + 0x18],RDI
MOVAPS XMM1,XMM2
CALL 0x001d8c50
MOVSS XMM0,dword ptr [RSP + 0x14]
MOV RSI,qword ptr [RSP + 0x18]
LEA RDI,[RSP + 0x84]
MOV qword ptr [RSP + 0x30],RDI
CALL 0x001d7c90
MOVSS XMM0,dword ptr [RSP + 0x20]
MOVSS XMM2,dword ptr [RSP + 0x24]
LEA RDI,[RSP + 0x5c]
MOV qword ptr [RSP + 0x28],RDI
MOVAPS XMM1,XMM2
CALL 0x001d8c50
MOV RSI,qword ptr [RSP + 0x28]
LEA RDI,[RSP + 0x68]
MOV qword ptr [RSP + 0x38],RDI
MOVSS XMM0,dword ptr [0x006d19b0]
CALL 0x001d7c90
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x38]
CALL 0x001d4ba0
MOV RSI,qword ptr [RSP + 0x40]
MOVLPD qword ptr [RSP + 0x4c],XMM0
MOVLPD qword ptr [RSP + 0x54],XMM1
LEA RDI,[RSP + 0x4c]
CALL 0x001d4ba0
MOVLPD qword ptr [RSP + 0xb8],XMM0
MOVLPD qword ptr [RSP + 0xc0],XMM1
MOVSD XMM0,qword ptr [RSP + 0xb8]
MOVSD XMM1,qword ptr [RSP + 0xc0]
ADD RSP,0xc8
RET
|
/* ImPlot3DQuat::FromElAz(float, float) */
int1 [16] ImPlot3DQuat::FromElAz(float param_1,float param_2)
{
int1 auVar1 [16];
float fVar2;
float fVar3;
int8 uVar4;
int8 uVar5;
int8 local_7c;
int8 local_74;
ImPlot3DPoint local_6c [12];
ImPlot3DQuat local_60 [16];
ImPlot3DPoint local_50 [12];
ImPlot3DQuat local_44 [16];
ImPlot3DPoint local_34 [12];
ImPlot3DQuat local_28 [16];
float local_18;
float local_14;
fVar2 = DAT_006cc014;
local_18 = param_2;
local_14 = param_1;
ImPlot3DPoint::ImPlot3DPoint(local_34,0.0,0.0,DAT_006cc014);
ImPlot3DQuat(local_28,param_2,local_34);
fVar3 = local_14;
ImPlot3DPoint::ImPlot3DPoint(local_50,fVar2,0.0,0.0);
ImPlot3DQuat(local_44,fVar3,local_50);
uVar5 = 0;
ImPlot3DPoint::ImPlot3DPoint(local_6c,fVar2,0.0,0.0);
ImPlot3DQuat(local_60,DAT_006d19b0,local_6c);
local_7c = operator*(local_44,local_60);
local_74 = uVar5;
uVar4 = operator*((ImPlot3DQuat *)&local_7c,local_28);
auVar1._8_8_ = uVar5;
auVar1._0_8_ = uVar4;
return auVar1;
}
| |
28,162 | gguf_add_tensor | 7CodeWizard[P]stablediffusion/ggml/src/ggml.c | void gguf_add_tensor(
struct gguf_context * ctx,
const struct ggml_tensor * tensor) {
const int idx = ctx->header.n_tensors;
ctx->infos = realloc(ctx->infos, (idx + 1)*sizeof(struct gguf_tensor_info));
ctx->infos[idx].name.n = strlen(tensor->name);
ctx->infos[idx].name.data = strdup(tensor->name);
for (int i = 0; i < GGML_MAX_DIMS; ++i) {
ctx->infos[idx].ne[i] = 1;
}
ctx->infos[idx].n_dims = ggml_n_dims(tensor);
for (uint32_t i = 0; i < ctx->infos[idx].n_dims; i++) {
ctx->infos[idx].ne[i] = tensor->ne[i];
}
ctx->infos[idx].type = tensor->type;
ctx->infos[idx].offset = 0;
ctx->infos[idx].data = tensor->data;
ctx->infos[idx].size = ggml_nbytes(tensor);
if (ctx->header.n_tensors > 0) {
ctx->infos[idx].offset = ctx->infos[idx - 1].offset + GGML_PAD(ctx->infos[idx - 1].size, ctx->alignment);
}
ctx->header.n_tensors++;
} | O1 | c | gguf_add_tensor:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
movq 0x8(%rdi), %rbp
movq 0x20(%rdi), %rdi
movq %rbp, %r13
shlq $0x20, %r13
movabsq $0x100000000, %rax # imm = 0x100000000
addq %r13, %rax
sarq $0x20, %rax
imulq $0x58, %rax, %rsi
callq 0xaa40
movq %rax, %r14
movq %rax, 0x20(%rbx)
leaq 0x120(%r15), %r12
movq %r12, %rdi
callq 0xa240
movslq %ebp, %rcx
imulq $0x58, %rcx, %rbp
leaq (%r14,%rbp), %rcx
movq %rcx, (%rsp)
movq %rax, (%r14,%rbp)
movq %r12, %rdi
callq 0xab60
vbroadcastsd 0x27397(%rip), %ymm0 # 0xc5a18
movq %rax, 0x8(%r14,%rbp)
vmovups %ymm0, 0x18(%r14,%rbp)
leaq 0x10(%r15), %rsi
movl $0x4, %eax
movl %eax, %ecx
leal -0x1(%rcx), %eax
cmpq $0x1, (%rsi,%rax,8)
jg 0x9e6ac
cmpl $0x1, %eax
ja 0x9e696
movl $0x1, %ecx
movl %ecx, 0x10(%r14,%rbp)
movq (%rsp), %r12
movl 0x10(%r12), %edx
testq %rdx, %rdx
je 0x9e6d0
leaq 0x18(%r12), %rdi
shlq $0x3, %rdx
vzeroupper
callq 0xa4c0
movl (%r15), %eax
movl %eax, 0x38(%r12)
movq $0x0, 0x40(%r14,%rbp)
movq 0x118(%r15), %rax
movq %rax, 0x48(%r14,%rbp)
movq %r15, %rdi
vzeroupper
callq 0x8e066
movq %rax, 0x50(%r14,%rbp)
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x9e740
leaq (%r14,%rbp), %rcx
addq $0x40, %rcx
movabsq $-0x100000000, %rdx # imm = 0xFFFFFFFF00000000
addq %rdx, %r13
sarq $0x20, %r13
imulq $0x58, %r13, %rdx
movq 0x50(%r14,%rdx), %rsi
movq 0x28(%rbx), %rdi
addq %rdi, %rsi
decq %rsi
negq %rdi
andq %rsi, %rdi
addq 0x40(%r14,%rdx), %rdi
movq %rdi, (%rcx)
incq %rax
movq %rax, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| gguf_add_tensor:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r15, rsi
mov rbx, rdi
mov rbp, [rdi+8]
mov rdi, [rdi+20h]
mov r13, rbp
shl r13, 20h
mov rax, 100000000h
add rax, r13
sar rax, 20h
imul rsi, rax, 58h ; 'X'
call _realloc
mov r14, rax
mov [rbx+20h], rax
lea r12, [r15+120h]
mov rdi, r12
call _strlen
movsxd rcx, ebp
imul rbp, rcx, 58h ; 'X'
lea rcx, [r14+rbp]
mov [rsp+38h+var_38], rcx
mov [r14+rbp], rax
mov rdi, r12
call _strdup
vbroadcastsd ymm0, cs:qword_C5A18
mov [r14+rbp+8], rax
vmovups ymmword ptr [r14+rbp+18h], ymm0
lea rsi, [r15+10h]
mov eax, 4
loc_9E696:
mov ecx, eax
lea eax, [rcx-1]
cmp qword ptr [rsi+rax*8], 1
jg short loc_9E6AC
cmp eax, 1
ja short loc_9E696
mov ecx, 1
loc_9E6AC:
mov [r14+rbp+10h], ecx
mov r12, [rsp+38h+var_38]
mov edx, [r12+10h]
test rdx, rdx
jz short loc_9E6D0
lea rdi, [r12+18h]
shl rdx, 3
vzeroupper
call _memcpy
loc_9E6D0:
mov eax, [r15]
mov [r12+38h], eax
mov qword ptr [r14+rbp+40h], 0
mov rax, [r15+118h]
mov [r14+rbp+48h], rax
mov rdi, r15
vzeroupper
call ggml_nbytes
mov [r14+rbp+50h], rax
mov rax, [rbx+8]
test rax, rax
jz short loc_9E740
lea rcx, [r14+rbp]
add rcx, 40h ; '@'
mov rdx, 0FFFFFFFF00000000h
add r13, rdx
sar r13, 20h
imul rdx, r13, 58h ; 'X'
mov rsi, [r14+rdx+50h]
mov rdi, [rbx+28h]
add rsi, rdi
dec rsi
neg rdi
and rdi, rsi
add rdi, [r14+rdx+40h]
mov [rcx], rdi
loc_9E740:
inc rax
mov [rbx+8], rax
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long gguf_add_tensor(_QWORD *a1, long long a2, double a3, __m128 a4)
{
long long v5; // rbp
long long v6; // r13
long long v10; // rsi
long long v11; // rax
int v12; // ecx
long long v13; // rax
long long result; // rax
long long v15; // [rsp+0h] [rbp-38h]
v5 = a1[1];
v6 = v5 << 32;
_R14 = realloc(a1[4], 88 * (((v5 << 32) + 0x100000000LL) >> 32));
a1[4] = _R14;
_RBP = 88LL * (int)v5;
v15 = _R14 + _RBP;
*(_QWORD *)(_R14 + _RBP) = strlen(a2 + 288);
__asm { vbroadcastsd ymm0, cs:qword_C5A18 }
*(_QWORD *)(_R14 + _RBP + 8) = strdup(a2 + 288);
__asm { vmovups ymmword ptr [r14+rbp+18h], ymm0 }
v10 = a2 + 16;
LODWORD(v11) = 4;
while ( 1 )
{
v12 = v11;
v11 = (unsigned int)(v11 - 1);
if ( *(long long *)(v10 + 8 * v11) > 1 )
break;
if ( (unsigned int)v11 <= 1 )
{
v12 = 1;
break;
}
}
*(_DWORD *)(_R14 + _RBP + 16) = v12;
if ( *(_DWORD *)(v15 + 16) )
{
__asm { vzeroupper }
memcpy(v15 + 24, v10, 8LL * *(unsigned int *)(v15 + 16));
}
*(_DWORD *)(v15 + 56) = *(_DWORD *)a2;
*(_QWORD *)(_R14 + _RBP + 64) = 0LL;
*(_QWORD *)(_R14 + _RBP + 72) = *(_QWORD *)(a2 + 280);
__asm { vzeroupper }
*(_QWORD *)(_R14 + _RBP + 80) = ggml_nbytes((unsigned int *)a2, a3, a4);
v13 = a1[1];
if ( v13 )
*(_QWORD *)(_R14 + _RBP + 64) = *(_QWORD *)(_R14 + 88 * ((v6 - 0x100000000LL) >> 32) + 64)
+ ((a1[5] + *(_QWORD *)(_R14 + 88 * ((v6 - 0x100000000LL) >> 32) + 80) - 1LL) & -a1[5]);
result = v13 + 1;
a1[1] = result;
return result;
}
| |||
28,163 | gguf_add_tensor | 7CodeWizard[P]stablediffusion/ggml/src/ggml.c | void gguf_add_tensor(
struct gguf_context * ctx,
const struct ggml_tensor * tensor) {
const int idx = ctx->header.n_tensors;
ctx->infos = realloc(ctx->infos, (idx + 1)*sizeof(struct gguf_tensor_info));
ctx->infos[idx].name.n = strlen(tensor->name);
ctx->infos[idx].name.data = strdup(tensor->name);
for (int i = 0; i < GGML_MAX_DIMS; ++i) {
ctx->infos[idx].ne[i] = 1;
}
ctx->infos[idx].n_dims = ggml_n_dims(tensor);
for (uint32_t i = 0; i < ctx->infos[idx].n_dims; i++) {
ctx->infos[idx].ne[i] = tensor->ne[i];
}
ctx->infos[idx].type = tensor->type;
ctx->infos[idx].offset = 0;
ctx->infos[idx].data = tensor->data;
ctx->infos[idx].size = ggml_nbytes(tensor);
if (ctx->header.n_tensors > 0) {
ctx->infos[idx].offset = ctx->infos[idx - 1].offset + GGML_PAD(ctx->infos[idx - 1].size, ctx->alignment);
}
ctx->header.n_tensors++;
} | O2 | c | gguf_add_tensor:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r15
movq %rdi, %r12
movq 0x8(%rdi), %rbx
movq 0x20(%rdi), %rdi
movq %rbx, %rcx
shlq $0x20, %rcx
movabsq $0x100000000, %rax # imm = 0x100000000
movq %rcx, 0x8(%rsp)
addq %rcx, %rax
sarq $0x20, %rax
imulq $0x58, %rax, %rsi
callq 0xaa20
movq %rax, %r14
movq %r12, 0x10(%rsp)
movq %rax, 0x20(%r12)
leaq 0x120(%r15), %r12
movq %r12, %rdi
callq 0xa220
movslq %ebx, %rcx
imulq $0x58, %rcx, %rbp
leaq (%r14,%rbp), %rbx
leaq (%r14,%rbp), %r13
addq $0x18, %r13
movq %rax, -0x18(%r13)
movq %r12, %rdi
callq 0xab40
movq %rax, -0x10(%r13)
xorl %eax, %eax
cmpq $0x4, %rax
je 0x78933
movq $0x1, (%r13,%rax,8)
incq %rax
jmp 0x7891f
movq %r15, %rdi
callq 0x67d2a
movl %eax, 0x10(%r14,%rbp)
movl %eax, %eax
xorl %ecx, %ecx
cmpq %rax, %rcx
jae 0x78958
movq 0x10(%r15,%rcx,8), %rdx
movq %rdx, 0x18(%rbx,%rcx,8)
incq %rcx
jmp 0x78944
movl (%r15), %eax
movl %eax, 0x38(%rbx)
andq $0x0, 0x40(%r14,%rbp)
movq 0x118(%r15), %rax
movq %rax, 0x48(%r14,%rbp)
movq %r15, %rdi
callq 0x67afd
movq %rax, 0x50(%r14,%rbp)
movq 0x10(%rsp), %r8
movq 0x8(%r8), %rax
testq %rax, %rax
je 0x789ca
leaq (%r14,%rbp), %rcx
addq $0x40, %rcx
movabsq $-0x100000000, %rdx # imm = 0xFFFFFFFF00000000
movq 0x8(%rsp), %rsi
addq %rdx, %rsi
sarq $0x20, %rsi
imulq $0x58, %rsi, %rdx
movq 0x50(%r14,%rdx), %rsi
movq 0x28(%r8), %rdi
addq %rdi, %rsi
decq %rsi
negq %rdi
andq %rsi, %rdi
addq 0x40(%r14,%rdx), %rdi
movq %rdi, (%rcx)
incq %rax
movq %rax, 0x8(%r8)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| gguf_add_tensor:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r15, rsi
mov r12, rdi
mov rbx, [rdi+8]
mov rdi, [rdi+20h]
mov rcx, rbx
shl rcx, 20h
mov rax, 100000000h
mov [rsp+48h+var_40], rcx
add rax, rcx
sar rax, 20h
imul rsi, rax, 58h ; 'X'
call _realloc
mov r14, rax
mov [rsp+48h+var_38], r12
mov [r12+20h], rax
lea r12, [r15+120h]
mov rdi, r12
call _strlen
movsxd rcx, ebx
imul rbp, rcx, 58h ; 'X'
lea rbx, [r14+rbp]
lea r13, [r14+rbp]
add r13, 18h
mov [r13-18h], rax
mov rdi, r12
call _strdup
mov [r13-10h], rax
xor eax, eax
loc_7891F:
cmp rax, 4
jz short loc_78933
mov qword ptr [r13+rax*8+0], 1
inc rax
jmp short loc_7891F
loc_78933:
mov rdi, r15
call ggml_n_dims
mov [r14+rbp+10h], eax
mov eax, eax
xor ecx, ecx
loc_78944:
cmp rcx, rax
jnb short loc_78958
mov rdx, [r15+rcx*8+10h]
mov [rbx+rcx*8+18h], rdx
inc rcx
jmp short loc_78944
loc_78958:
mov eax, [r15]
mov [rbx+38h], eax
and qword ptr [r14+rbp+40h], 0
mov rax, [r15+118h]
mov [r14+rbp+48h], rax
mov rdi, r15
call ggml_nbytes
mov [r14+rbp+50h], rax
mov r8, [rsp+48h+var_38]
mov rax, [r8+8]
test rax, rax
jz short loc_789CA
lea rcx, [r14+rbp]
add rcx, 40h ; '@'
mov rdx, 0FFFFFFFF00000000h
mov rsi, [rsp+48h+var_40]
add rsi, rdx
sar rsi, 20h
imul rdx, rsi, 58h ; 'X'
mov rsi, [r14+rdx+50h]
mov rdi, [r8+28h]
add rsi, rdi
dec rsi
neg rdi
and rdi, rsi
add rdi, [r14+rdx+40h]
mov [rcx], rdi
loc_789CA:
inc rax
mov [r8+8], rax
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long gguf_add_tensor(_QWORD *a1, long long a2)
{
long long v2; // rbx
long long v3; // r14
long long v4; // rbp
long long v5; // rbx
long long i; // rax
unsigned int v7; // eax
unsigned long long j; // rcx
long long v9; // rax
long long result; // rax
long long v11; // [rsp+8h] [rbp-40h]
v2 = a1[1];
v11 = v2 << 32;
v3 = realloc(a1[4], 88 * (((v2 << 32) + 0x100000000LL) >> 32));
a1[4] = v3;
v4 = 88LL * (int)v2;
v5 = v3 + v4;
*(_QWORD *)(v3 + v4) = strlen(a2 + 288);
*(_QWORD *)(v3 + v4 + 8) = strdup(a2 + 288);
for ( i = 0LL; i != 4; ++i )
*(_QWORD *)(v3 + v4 + 24 + 8 * i) = 1LL;
v7 = ggml_n_dims(a2);
*(_DWORD *)(v3 + v4 + 16) = v7;
for ( j = 0LL; j < v7; ++j )
*(_QWORD *)(v5 + 8 * j + 24) = *(_QWORD *)(a2 + 8 * j + 16);
*(_DWORD *)(v5 + 56) = *(_DWORD *)a2;
*(_QWORD *)(v3 + v4 + 64) = 0LL;
*(_QWORD *)(v3 + v4 + 72) = *(_QWORD *)(a2 + 280);
*(_QWORD *)(v3 + v4 + 80) = ggml_nbytes((unsigned int *)a2);
v9 = a1[1];
if ( v9 )
*(_QWORD *)(v3 + v4 + 64) = *(_QWORD *)(v3 + 88 * ((v11 - 0x100000000LL) >> 32) + 64)
+ ((a1[5] + *(_QWORD *)(v3 + 88 * ((v11 - 0x100000000LL) >> 32) + 80) - 1LL) & -a1[5]);
result = v9 + 1;
a1[1] = result;
return result;
}
| gguf_add_tensor:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R15,RSI
MOV R12,RDI
MOV RBX,qword ptr [RDI + 0x8]
MOV RDI,qword ptr [RDI + 0x20]
MOV RCX,RBX
SHL RCX,0x20
MOV RAX,0x100000000
MOV qword ptr [RSP + 0x8],RCX
ADD RAX,RCX
SAR RAX,0x20
IMUL RSI,RAX,0x58
CALL 0x0010aa20
MOV R14,RAX
MOV qword ptr [RSP + 0x10],R12
MOV qword ptr [R12 + 0x20],RAX
LEA R12,[R15 + 0x120]
MOV RDI,R12
CALL 0x0010a220
MOVSXD RCX,EBX
IMUL RBP,RCX,0x58
LEA RBX,[R14 + RBP*0x1]
LEA R13,[R14 + RBP*0x1]
ADD R13,0x18
MOV qword ptr [R13 + -0x18],RAX
MOV RDI,R12
CALL 0x0010ab40
MOV qword ptr [R13 + -0x10],RAX
XOR EAX,EAX
LAB_0017891f:
CMP RAX,0x4
JZ 0x00178933
MOV qword ptr [R13 + RAX*0x8],0x1
INC RAX
JMP 0x0017891f
LAB_00178933:
MOV RDI,R15
CALL 0x00167d2a
MOV dword ptr [R14 + RBP*0x1 + 0x10],EAX
MOV EAX,EAX
XOR ECX,ECX
LAB_00178944:
CMP RCX,RAX
JNC 0x00178958
MOV RDX,qword ptr [R15 + RCX*0x8 + 0x10]
MOV qword ptr [RBX + RCX*0x8 + 0x18],RDX
INC RCX
JMP 0x00178944
LAB_00178958:
MOV EAX,dword ptr [R15]
MOV dword ptr [RBX + 0x38],EAX
AND qword ptr [R14 + RBP*0x1 + 0x40],0x0
MOV RAX,qword ptr [R15 + 0x118]
MOV qword ptr [R14 + RBP*0x1 + 0x48],RAX
MOV RDI,R15
CALL 0x00167afd
MOV qword ptr [R14 + RBP*0x1 + 0x50],RAX
MOV R8,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [R8 + 0x8]
TEST RAX,RAX
JZ 0x001789ca
LEA RCX,[R14 + RBP*0x1]
ADD RCX,0x40
MOV RDX,-0x100000000
MOV RSI,qword ptr [RSP + 0x8]
ADD RSI,RDX
SAR RSI,0x20
IMUL RDX,RSI,0x58
MOV RSI,qword ptr [R14 + RDX*0x1 + 0x50]
MOV RDI,qword ptr [R8 + 0x28]
ADD RSI,RDI
DEC RSI
NEG RDI
AND RDI,RSI
ADD RDI,qword ptr [R14 + RDX*0x1 + 0x40]
MOV qword ptr [RCX],RDI
LAB_001789ca:
INC RAX
MOV qword ptr [R8 + 0x8],RAX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void gguf_add_tensor(long param_1,int4 *param_2)
{
size_t *psVar1;
uint uVar2;
void *pvVar3;
size_t sVar4;
char *pcVar5;
long lVar6;
int8 uVar7;
long lVar8;
ulong uVar9;
long lVar10;
lVar6 = *(long *)(param_1 + 8);
lVar8 = lVar6 << 0x20;
pvVar3 = realloc(*(void **)(param_1 + 0x20),(lVar8 + 0x100000000 >> 0x20) * 0x58);
*(void **)(param_1 + 0x20) = pvVar3;
sVar4 = strlen((char *)(param_2 + 0x48));
lVar10 = (long)(int)lVar6 * 0x58;
psVar1 = (size_t *)((long)pvVar3 + lVar10);
*psVar1 = sVar4;
pcVar5 = strdup((char *)(param_2 + 0x48));
psVar1[1] = (size_t)pcVar5;
for (lVar6 = 0; lVar6 != 4; lVar6 = lVar6 + 1) {
psVar1[lVar6 + 3] = 1;
}
uVar2 = ggml_n_dims(param_2);
*(uint *)((long)pvVar3 + lVar10 + 0x10) = uVar2;
for (uVar9 = 0; uVar9 < uVar2; uVar9 = uVar9 + 1) {
*(int8 *)((long)pvVar3 + uVar9 * 8 + lVar10 + 0x18) =
*(int8 *)(param_2 + uVar9 * 2 + 4);
}
*(int4 *)((long)pvVar3 + lVar10 + 0x38) = *param_2;
*(int8 *)((long)pvVar3 + lVar10 + 0x40) = 0;
*(int8 *)((long)pvVar3 + lVar10 + 0x48) = *(int8 *)(param_2 + 0x46);
uVar7 = ggml_nbytes(param_2);
*(int8 *)((long)pvVar3 + lVar10 + 0x50) = uVar7;
lVar6 = *(long *)(param_1 + 8);
if (lVar6 != 0) {
lVar8 = (lVar8 + -0x100000000 >> 0x20) * 0x58;
*(ulong *)((long)pvVar3 + lVar10 + 0x40) =
(-*(long *)(param_1 + 0x28) &
(*(long *)((long)pvVar3 + lVar8 + 0x50) + *(long *)(param_1 + 0x28)) - 1U) +
*(long *)((long)pvVar3 + lVar8 + 0x40);
}
*(long *)(param_1 + 8) = lVar6 + 1;
return;
}
| |
28,164 | parse_v1_header(char*, unsigned long, proxy_peer_info*) | eloqsql/sql/proxy_protocol.cc | static int parse_v1_header(char *hdr, size_t len, proxy_peer_info *peer_info)
{
char address_family[MAX_PROXY_HEADER_LEN + 1];
char client_address[MAX_PROXY_HEADER_LEN + 1];
char server_address[MAX_PROXY_HEADER_LEN + 1];
int client_port;
int server_port;
int ret = sscanf(hdr, "PROXY %s %s %s %d %d",
address_family, client_address, server_address,
&client_port, &server_port);
if (ret != 5)
{
if (ret >= 1 && !strcmp(address_family, "UNKNOWN"))
{
peer_info->is_local_command= true;
return 0;
}
return -1;
}
if (client_port < 0 || client_port > 0xffff
|| server_port < 0 || server_port > 0xffff)
return -1;
if (!strcmp(address_family, "UNKNOWN"))
{
peer_info->is_local_command= true;
return 0;
}
else if (!strcmp(address_family, "TCP4"))
{
/* Initialize IPv4 peer address.*/
peer_info->peer_addr.ss_family= AF_INET;
if (!inet_pton(AF_INET, client_address,
&((struct sockaddr_in *)(&peer_info->peer_addr))->sin_addr))
return -1;
}
else if (!strcmp(address_family, "TCP6"))
{
/* Initialize IPv6 peer address.*/
peer_info->peer_addr.ss_family= AF_INET6;
if (!inet_pton(AF_INET6, client_address,
&((struct sockaddr_in6 *)(&peer_info->peer_addr))->sin6_addr))
return -1;
}
peer_info->port= client_port;
/* Check if server address is legal.*/
char addr_bin[16];
if (!inet_pton(peer_info->peer_addr.ss_family,
server_address, addr_bin))
return -1;
return 0;
} | O0 | cpp | parse_v1_header(char*, unsigned long, proxy_peer_info*):
pushq %rbp
movq %rsp, %rbp
subq $0x380, %rsp # imm = 0x380
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x350(%rbp)
movq %rsi, -0x358(%rbp)
movq %rdx, -0x360(%rbp)
movq -0x350(%rbp), %rdi
leaq -0x110(%rbp), %rdx
leaq -0x220(%rbp), %rcx
leaq -0x330(%rbp), %r8
leaq 0x5a9925(%rip), %rsi # 0xda8d05
leaq -0x364(%rbp), %r9
leaq -0x368(%rbp), %rax
movq %rax, (%rsp)
movb $0x0, %al
callq 0x434840
movl %eax, -0x36c(%rbp)
cmpl $0x5, -0x36c(%rbp)
je 0x7ff455
cmpl $0x1, -0x36c(%rbp)
jl 0x7ff446
leaq -0x110(%rbp), %rdi
leaq 0x58557c(%rip), %rsi # 0xd8499b
callq 0x434520
cmpl $0x0, %eax
jne 0x7ff446
movq -0x360(%rbp), %rax
movb $0x1, 0x84(%rax)
movl $0x0, -0x344(%rbp)
jmp 0x7ff5bb
movl $0xffffffff, -0x344(%rbp) # imm = 0xFFFFFFFF
jmp 0x7ff5bb
cmpl $0x0, -0x364(%rbp)
jl 0x7ff47f
cmpl $0xffff, -0x364(%rbp) # imm = 0xFFFF
jg 0x7ff47f
cmpl $0x0, -0x368(%rbp)
jl 0x7ff47f
cmpl $0xffff, -0x368(%rbp) # imm = 0xFFFF
jle 0x7ff48e
movl $0xffffffff, -0x344(%rbp) # imm = 0xFFFFFFFF
jmp 0x7ff5bb
leaq -0x110(%rbp), %rdi
leaq 0x5854ff(%rip), %rsi # 0xd8499b
callq 0x434520
cmpl $0x0, %eax
jne 0x7ff4c3
movq -0x360(%rbp), %rax
movb $0x1, 0x84(%rax)
movl $0x0, -0x344(%rbp)
jmp 0x7ff5bb
leaq -0x110(%rbp), %rdi
leaq 0x5a9849(%rip), %rsi # 0xda8d1a
callq 0x434520
cmpl $0x0, %eax
jne 0x7ff519
movq -0x360(%rbp), %rax
movw $0x2, (%rax)
leaq -0x220(%rbp), %rsi
movq -0x360(%rbp), %rdx
addq $0x4, %rdx
movl $0x2, %edi
callq 0x4349d0
cmpl $0x0, %eax
jne 0x7ff517
movl $0xffffffff, -0x344(%rbp) # imm = 0xFFFFFFFF
jmp 0x7ff5bb
jmp 0x7ff56e
leaq -0x110(%rbp), %rdi
leaq 0x5a97f8(%rip), %rsi # 0xda8d1f
callq 0x434520
cmpl $0x0, %eax
jne 0x7ff56c
movq -0x360(%rbp), %rax
movw $0xa, (%rax)
leaq -0x220(%rbp), %rsi
movq -0x360(%rbp), %rdx
addq $0x8, %rdx
movl $0xa, %edi
callq 0x4349d0
cmpl $0x0, %eax
jne 0x7ff56a
movl $0xffffffff, -0x344(%rbp) # imm = 0xFFFFFFFF
jmp 0x7ff5bb
jmp 0x7ff56c
jmp 0x7ff56e
jmp 0x7ff570
movl -0x364(%rbp), %ecx
movq -0x360(%rbp), %rax
movl %ecx, 0x80(%rax)
movq -0x360(%rbp), %rax
movzwl (%rax), %edi
leaq -0x330(%rbp), %rsi
leaq -0x340(%rbp), %rdx
callq 0x4349d0
cmpl $0x0, %eax
jne 0x7ff5b1
movl $0xffffffff, -0x344(%rbp) # imm = 0xFFFFFFFF
jmp 0x7ff5bb
movl $0x0, -0x344(%rbp)
movl -0x344(%rbp), %eax
movl %eax, -0x370(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0x7ff5e8
movl -0x370(%rbp), %eax
addq $0x380, %rsp # imm = 0x380
popq %rbp
retq
callq 0x433650
nopl (%rax)
| _ZL15parse_v1_headerPcmP15proxy_peer_info:
push rbp
mov rbp, rsp
sub rsp, 380h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_350], rdi
mov [rbp+var_358], rsi
mov [rbp+var_360], rdx
mov rdi, [rbp+var_350]
lea rdx, [rbp+var_110]
lea rcx, [rbp+var_220]
lea r8, [rbp+var_330]
lea rsi, aProxySSSDD; "PROXY %s %s %s %d %d"
lea r9, [rbp+var_364]
lea rax, [rbp+var_368]
mov [rsp+380h+var_380], rax
mov al, 0
call ___isoc23_sscanf
mov [rbp+var_36C], eax
cmp [rbp+var_36C], 5
jz short loc_7FF455
cmp [rbp+var_36C], 1
jl short loc_7FF446
lea rdi, [rbp+var_110]
lea rsi, aUnknown_2; "UNKNOWN"
call _strcmp
cmp eax, 0
jnz short loc_7FF446
mov rax, [rbp+var_360]
mov byte ptr [rax+84h], 1
mov [rbp+var_344], 0
jmp loc_7FF5BB
loc_7FF446:
mov [rbp+var_344], 0FFFFFFFFh
jmp loc_7FF5BB
loc_7FF455:
cmp [rbp+var_364], 0
jl short loc_7FF47F
cmp [rbp+var_364], 0FFFFh
jg short loc_7FF47F
cmp [rbp+var_368], 0
jl short loc_7FF47F
cmp [rbp+var_368], 0FFFFh
jle short loc_7FF48E
loc_7FF47F:
mov [rbp+var_344], 0FFFFFFFFh
jmp loc_7FF5BB
loc_7FF48E:
lea rdi, [rbp+var_110]
lea rsi, aUnknown_2; "UNKNOWN"
call _strcmp
cmp eax, 0
jnz short loc_7FF4C3
mov rax, [rbp+var_360]
mov byte ptr [rax+84h], 1
mov [rbp+var_344], 0
jmp loc_7FF5BB
loc_7FF4C3:
lea rdi, [rbp+var_110]
lea rsi, aTcp4; "TCP4"
call _strcmp
cmp eax, 0
jnz short loc_7FF519
mov rax, [rbp+var_360]
mov word ptr [rax], 2
lea rsi, [rbp+var_220]
mov rdx, [rbp+var_360]
add rdx, 4
mov edi, 2
call _inet_pton
cmp eax, 0
jnz short loc_7FF517
mov [rbp+var_344], 0FFFFFFFFh
jmp loc_7FF5BB
loc_7FF517:
jmp short loc_7FF56E
loc_7FF519:
lea rdi, [rbp+var_110]
lea rsi, aTcp6; "TCP6"
call _strcmp
cmp eax, 0
jnz short loc_7FF56C
mov rax, [rbp+var_360]
mov word ptr [rax], 0Ah
lea rsi, [rbp+var_220]
mov rdx, [rbp+var_360]
add rdx, 8
mov edi, 0Ah
call _inet_pton
cmp eax, 0
jnz short loc_7FF56A
mov [rbp+var_344], 0FFFFFFFFh
jmp short loc_7FF5BB
loc_7FF56A:
jmp short $+2
loc_7FF56C:
jmp short $+2
loc_7FF56E:
jmp short $+2
loc_7FF570:
mov ecx, [rbp+var_364]
mov rax, [rbp+var_360]
mov [rax+80h], ecx
mov rax, [rbp+var_360]
movzx edi, word ptr [rax]
lea rsi, [rbp+var_330]
lea rdx, [rbp+var_340]
call _inet_pton
cmp eax, 0
jnz short loc_7FF5B1
mov [rbp+var_344], 0FFFFFFFFh
jmp short loc_7FF5BB
loc_7FF5B1:
mov [rbp+var_344], 0
loc_7FF5BB:
mov eax, [rbp+var_344]
mov [rbp+var_370], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_7FF5E8
mov eax, [rbp+var_370]
add rsp, 380h
pop rbp
retn
loc_7FF5E8:
call ___stack_chk_fail
| long long parse_v1_header(long long a1, long long a2, unsigned __int16 *a3)
{
int v4; // [rsp+14h] [rbp-36Ch]
unsigned int v5; // [rsp+18h] [rbp-368h] BYREF
unsigned int v6; // [rsp+1Ch] [rbp-364h] BYREF
unsigned __int16 *v7; // [rsp+20h] [rbp-360h]
long long v8; // [rsp+28h] [rbp-358h]
long long v9; // [rsp+30h] [rbp-350h]
_BYTE v11[16]; // [rsp+40h] [rbp-340h] BYREF
_BYTE v12[272]; // [rsp+50h] [rbp-330h] BYREF
_BYTE v13[272]; // [rsp+160h] [rbp-220h] BYREF
_BYTE v14[264]; // [rsp+270h] [rbp-110h] BYREF
unsigned long long v15; // [rsp+378h] [rbp-8h]
v15 = __readfsqword(0x28u);
v9 = a1;
v8 = a2;
v7 = a3;
v4 = __isoc23_sscanf(a1, "PROXY %s %s %s %d %d", v14, v13, v12, &v6, &v5);
if ( v4 == 5 )
{
if ( v6 < 0x10000 && v5 < 0x10000 )
{
if ( !(unsigned int)strcmp(v14, "UNKNOWN") )
{
*((_BYTE *)v7 + 132) = 1;
return 0;
}
else
{
if ( !(unsigned int)strcmp(v14, "TCP4") )
{
*v7 = 2;
if ( !(unsigned int)inet_pton(2LL, v13, v7 + 2) )
return (unsigned int)-1;
}
else if ( !(unsigned int)strcmp(v14, "TCP6") )
{
*v7 = 10;
if ( !(unsigned int)inet_pton(10LL, v13, v7 + 4) )
return (unsigned int)-1;
}
*((_DWORD *)v7 + 32) = v6;
if ( (unsigned int)inet_pton(*v7, v12, v11) )
return 0;
else
return (unsigned int)-1;
}
}
else
{
return (unsigned int)-1;
}
}
else if ( v4 >= 1 && !(unsigned int)strcmp(v14, "UNKNOWN") )
{
*((_BYTE *)v7 + 132) = 1;
return 0;
}
else
{
return (unsigned int)-1;
}
}
| max_display_length_for_field:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x00801950
MOVZX ESI,AX
MOV EDI,0x13
CALL 0x007ff330
ADD RSP,0x10
POP RBP
RET
|
/* Type_handler_datetime2::max_display_length_for_field(Conv_source const&) const */
void __thiscall
Type_handler_datetime2::max_display_length_for_field
(Type_handler_datetime2 *this,Conv_source *param_1)
{
ushort uVar1;
uVar1 = Conv_source::metadata(param_1);
max_display_length_for_temporal2_field(0x13,(uint)uVar1);
return;
}
| |
28,165 | test_repeat_back::build_graph(ggml_context*) | monkey531[P]llama/tests/test-backend-ops.cpp | ggml_tensor * build_graph(ggml_context * ctx) override {
ggml_tensor * src = ggml_new_tensor_4d(ctx, type, ne[0]*nr[0], ne[1]*nr[1], ne[2]*nr[2], ne[3]*nr[3]);
ggml_set_name(src, "src");
if (v) {
GGML_ASSERT(ne[0] % 2 == 0);
GGML_ASSERT(ne[1] % 2 == 0);
GGML_ASSERT(ne[2] % 2 == 0);
GGML_ASSERT(ne[3] % 2 == 0);
GGML_ASSERT(nr[0] % 2 == 0 || nr[0] == 1);
GGML_ASSERT(nr[1] % 2 == 0 || nr[1] == 1);
GGML_ASSERT(nr[2] % 2 == 0 || nr[2] == 1);
GGML_ASSERT(nr[3] % 2 == 0 || nr[3] == 1);
const int64_t ne00 = nr[0] == 1 ? src->ne[0] : src->ne[0] / 2;
const int64_t ne01 = nr[1] == 1 ? src->ne[1] : src->ne[1] / 2;
const int64_t ne02 = nr[2] == 1 ? src->ne[2] : src->ne[2] / 2;
const int64_t ne03 = nr[3] == 1 ? src->ne[3] : src->ne[3] / 2;
src = ggml_view_4d(ctx, src, ne00, ne01, ne02, ne03, src->nb[1], src->nb[2], src->nb[3], 0);
}
ggml_tensor * target = ggml_new_tensor(ctx, type, 4, ne.data());
ggml_set_name(target, "target");
ggml_tensor * out = ggml_repeat_back(ctx, src, target);
ggml_set_name(out, "out");
return out;
} | O3 | cpp | test_repeat_back::build_graph(ggml_context*):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r14
movslq 0x60(%rdi), %rdx
imulq 0x40(%rdi), %rdx
movq %rsi, %rbx
movslq 0x64(%rdi), %rcx
imulq 0x48(%rdi), %rcx
movl 0x38(%rdi), %esi
movslq 0x68(%rdi), %r8
imulq 0x50(%rdi), %r8
leaq 0x40(%rdi), %r15
movslq 0x6c(%rdi), %r9
imulq 0x58(%rdi), %r9
movq %rbx, %rdi
callq 0xdc00
movq %rax, %r12
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1b8ae
leaq 0x202c0(%rip), %rsi # 0x44c49
movq %r12, %rdi
callq 0xdb10
cmpb $0x1, 0x70(%r14)
jne 0x24aba
testb $0x1, (%r15)
jne 0x24b1a
testb $0x1, 0x48(%r14)
jne 0x24b39
testb $0x1, 0x50(%r14)
jne 0x24b58
testb $0x1, 0x58(%r14)
jne 0x24b77
movl 0x60(%r14), %eax
testb $0x1, %al
sete %cl
cmpl $0x1, %eax
sete %dl
orb %cl, %dl
je 0x24b93
movl 0x64(%r14), %esi
testb $0x1, %sil
sete %cl
cmpl $0x1, %esi
sete %dl
orb %cl, %dl
je 0x24baf
movl 0x68(%r14), %edi
testb $0x1, %dil
sete %cl
cmpl $0x1, %edi
sete %dl
orb %cl, %dl
je 0x24bcb
movl 0x6c(%r14), %r10d
testb $0x1, %r10b
sete %cl
cmpl $0x1, %r10d
sete %dl
orb %cl, %dl
je 0x24be7
movq 0x10(%r12), %rcx
movq 0x18(%r12), %r8
movq %rcx, %rdx
shrq $0x3f, %rdx
addq %rcx, %rdx
sarq %rdx
cmpl $0x1, %eax
cmoveq %rcx, %rdx
movq %r8, %rcx
shrq $0x3f, %rcx
addq %r8, %rcx
sarq %rcx
cmpl $0x1, %esi
cmoveq %r8, %rcx
movq 0x20(%r12), %rax
movq %rax, %r8
shrq $0x3f, %r8
addq %rax, %r8
sarq %r8
cmpl $0x1, %edi
cmoveq %rax, %r8
movq 0x28(%r12), %rax
movq %rax, %r9
shrq $0x3f, %r9
addq %rax, %r9
sarq %r9
cmpl $0x1, %r10d
cmoveq %rax, %r9
movups 0x38(%r12), %xmm0
movq 0x48(%r12), %rax
movq %rax, 0x10(%rsp)
movups %xmm0, (%rsp)
movq $0x0, 0x18(%rsp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0xdbd0
movq %rax, %r12
movl 0x38(%r14), %esi
movq %rbx, %rdi
movl $0x4, %edx
movq %r15, %rcx
callq 0xd080
movq %rax, %r15
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1b8ae
leaq 0x2015f(%rip), %rsi # 0x44c42
movq %r15, %rdi
callq 0xdb10
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0xd1a0
movq %rax, %rbx
leaq 0x2062b(%rip), %rsi # 0x4512e
movq %rax, %rdi
callq 0xdb10
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x1fe3d(%rip), %rdi # 0x4495e
leaq 0x1fe8b(%rip), %rdx # 0x449b3
leaq 0x2011e(%rip), %rcx # 0x44c4d
movl $0x533, %esi # imm = 0x533
jmp 0x24c01
leaq 0x1fe1e(%rip), %rdi # 0x4495e
leaq 0x1fe6c(%rip), %rdx # 0x449b3
leaq 0x2010e(%rip), %rcx # 0x44c5c
movl $0x534, %esi # imm = 0x534
jmp 0x24c01
leaq 0x1fdff(%rip), %rdi # 0x4495e
leaq 0x1fe4d(%rip), %rdx # 0x449b3
leaq 0x200fe(%rip), %rcx # 0x44c6b
movl $0x535, %esi # imm = 0x535
jmp 0x24c01
leaq 0x1fde0(%rip), %rdi # 0x4495e
leaq 0x1fe2e(%rip), %rdx # 0x449b3
leaq 0x200ee(%rip), %rcx # 0x44c7a
movl $0x536, %esi # imm = 0x536
jmp 0x24c01
leaq 0x1fdc4(%rip), %rdi # 0x4495e
leaq 0x1fe12(%rip), %rdx # 0x449b3
leaq 0x200e1(%rip), %rcx # 0x44c89
movl $0x537, %esi # imm = 0x537
jmp 0x24c01
leaq 0x1fda8(%rip), %rdi # 0x4495e
leaq 0x1fdf6(%rip), %rdx # 0x449b3
leaq 0x200e2(%rip), %rcx # 0x44ca6
movl $0x538, %esi # imm = 0x538
jmp 0x24c01
leaq 0x1fd8c(%rip), %rdi # 0x4495e
leaq 0x1fdda(%rip), %rdx # 0x449b3
leaq 0x200e3(%rip), %rcx # 0x44cc3
movl $0x539, %esi # imm = 0x539
jmp 0x24c01
leaq 0x1fd70(%rip), %rdi # 0x4495e
leaq 0x1fdbe(%rip), %rdx # 0x449b3
leaq 0x200e4(%rip), %rcx # 0x44ce0
movl $0x53a, %esi # imm = 0x53A
xorl %eax, %eax
callq 0xda20
| _ZN16test_repeat_back11build_graphEP12ggml_context:
push r15
push r14
push r12
push rbx
sub rsp, 28h
mov r14, rdi
movsxd rdx, dword ptr [rdi+60h]
imul rdx, [rdi+40h]
mov rbx, rsi
movsxd rcx, dword ptr [rdi+64h]
imul rcx, [rdi+48h]
mov esi, [rdi+38h]
movsxd r8, dword ptr [rdi+68h]
imul r8, [rdi+50h]
lea r15, [rdi+40h]
movsxd r9, dword ptr [rdi+6Ch]
imul r9, [rdi+58h]
mov rdi, rbx
call _ggml_new_tensor_4d
mov r12, rax
mov rdi, r14
mov rsi, rbx
call _ZN9test_case12add_sentinelEP12ggml_context; test_case::add_sentinel(ggml_context *)
lea rsi, aSrc; "src"
mov rdi, r12
call _ggml_set_name
cmp byte ptr [r14+70h], 1
jnz loc_24ABA
test byte ptr [r15], 1
jnz loc_24B1A
test byte ptr [r14+48h], 1
jnz loc_24B39
test byte ptr [r14+50h], 1
jnz loc_24B58
test byte ptr [r14+58h], 1
jnz loc_24B77
mov eax, [r14+60h]
test al, 1
setz cl
cmp eax, 1
setz dl
or dl, cl
jz loc_24B93
mov esi, [r14+64h]
test sil, 1
setz cl
cmp esi, 1
setz dl
or dl, cl
jz loc_24BAF
mov edi, [r14+68h]
test dil, 1
setz cl
cmp edi, 1
setz dl
or dl, cl
jz loc_24BCB
mov r10d, [r14+6Ch]
test r10b, 1
setz cl
cmp r10d, 1
setz dl
or dl, cl
jz loc_24BE7
mov rcx, [r12+10h]
mov r8, [r12+18h]
mov rdx, rcx
shr rdx, 3Fh
add rdx, rcx
sar rdx, 1
cmp eax, 1
cmovz rdx, rcx
mov rcx, r8
shr rcx, 3Fh
add rcx, r8
sar rcx, 1
cmp esi, 1
cmovz rcx, r8
mov rax, [r12+20h]
mov r8, rax
shr r8, 3Fh
add r8, rax
sar r8, 1
cmp edi, 1
cmovz r8, rax
mov rax, [r12+28h]
mov r9, rax
shr r9, 3Fh
add r9, rax
sar r9, 1
cmp r10d, 1
cmovz r9, rax
movups xmm0, xmmword ptr [r12+38h]
mov rax, [r12+48h]
mov [rsp+48h+var_38], rax
movups [rsp+48h+var_48], xmm0
mov [rsp+48h+var_30], 0
mov rdi, rbx
mov rsi, r12
call _ggml_view_4d
mov r12, rax
loc_24ABA:
mov esi, [r14+38h]
mov rdi, rbx
mov edx, 4
mov rcx, r15
call _ggml_new_tensor
mov r15, rax
mov rdi, r14
mov rsi, rbx
call _ZN9test_case12add_sentinelEP12ggml_context; test_case::add_sentinel(ggml_context *)
lea rsi, aTarget; "target"
mov rdi, r15
call _ggml_set_name
mov rdi, rbx
mov rsi, r12
mov rdx, r15
call _ggml_repeat_back
mov rbx, rax
lea rsi, aSumOfOut+7; "out"
mov rdi, rax
call _ggml_set_name
mov rax, rbx
add rsp, 28h
pop rbx
pop r12
pop r14
pop r15
retn
loc_24B1A:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNe020; "ne[0] % 2 == 0"
mov esi, 533h
jmp loc_24C01
loc_24B39:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNe120; "ne[1] % 2 == 0"
mov esi, 534h
jmp loc_24C01
loc_24B58:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNe220; "ne[2] % 2 == 0"
mov esi, 535h
jmp loc_24C01
loc_24B77:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNe320; "ne[3] % 2 == 0"
mov esi, 536h
jmp short loc_24C01
loc_24B93:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNr020Nr01; "nr[0] % 2 == 0 || nr[0] == 1"
mov esi, 537h
jmp short loc_24C01
loc_24BAF:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNr120Nr11; "nr[1] % 2 == 0 || nr[1] == 1"
mov esi, 538h
jmp short loc_24C01
loc_24BCB:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNr220Nr21; "nr[2] % 2 == 0 || nr[2] == 1"
mov esi, 539h
jmp short loc_24C01
loc_24BE7:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNr320Nr31; "nr[3] % 2 == 0 || nr[3] == 1"
mov esi, 53Ah
loc_24C01:
xor eax, eax
call _ggml_abort
| long long test_repeat_back::build_graph(long long a1, long long a2)
{
_QWORD *v4; // r12
int v5; // eax
int v6; // esi
int v7; // edi
int v8; // r10d
long long v9; // rdx
long long v10; // rcx
long long v11; // r8
long long v12; // r9
long long v13; // r15
long long v14; // rbx
v4 = (_QWORD *)ggml_new_tensor_4d(
a2,
*(unsigned int *)(a1 + 56),
*(_QWORD *)(a1 + 64) * *(int *)(a1 + 96),
*(_QWORD *)(a1 + 72) * *(int *)(a1 + 100),
*(_QWORD *)(a1 + 80) * *(int *)(a1 + 104),
*(_QWORD *)(a1 + 88) * *(int *)(a1 + 108));
test_case::add_sentinel(a1, a2);
ggml_set_name(v4, "src");
if ( *(_BYTE *)(a1 + 112) != 1 )
{
LABEL_19:
v13 = ggml_new_tensor(a2, *(unsigned int *)(a1 + 56), 4LL);
test_case::add_sentinel(a1, a2);
ggml_set_name(v13, "target");
v14 = ggml_repeat_back(a2, v4, v13);
ggml_set_name(v14, "out");
return v14;
}
if ( (*(_BYTE *)(a1 + 64) & 1) != 0 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/tests/test-backend-ops.cpp",
1331LL,
"GGML_ASSERT(%s) failed",
"ne[0] % 2 == 0");
}
else if ( (*(_BYTE *)(a1 + 72) & 1) != 0 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/tests/test-backend-ops.cpp",
1332LL,
"GGML_ASSERT(%s) failed",
"ne[1] % 2 == 0");
}
else if ( (*(_BYTE *)(a1 + 80) & 1) != 0 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/tests/test-backend-ops.cpp",
1333LL,
"GGML_ASSERT(%s) failed",
"ne[2] % 2 == 0");
}
else if ( (*(_BYTE *)(a1 + 88) & 1) != 0 )
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/tests/test-backend-ops.cpp",
1334LL,
"GGML_ASSERT(%s) failed",
"ne[3] % 2 == 0");
}
else
{
v5 = *(_DWORD *)(a1 + 96);
if ( (v5 & 1) == 0 || v5 == 1 )
{
v6 = *(_DWORD *)(a1 + 100);
if ( (v6 & 1) == 0 || v6 == 1 )
{
v7 = *(_DWORD *)(a1 + 104);
if ( (v7 & 1) == 0 || v7 == 1 )
{
v8 = *(_DWORD *)(a1 + 108);
if ( (v8 & 1) == 0 || v8 == 1 )
{
v9 = v4[2] / 2LL;
if ( v5 == 1 )
v9 = v4[2];
v10 = v4[3] / 2LL;
if ( v6 == 1 )
v10 = v4[3];
v11 = v4[4] / 2LL;
if ( v7 == 1 )
v11 = v4[4];
v12 = v4[5] / 2LL;
if ( v8 == 1 )
v12 = v4[5];
v4 = (_QWORD *)ggml_view_4d(a2, v4, v9, v10, v11, v12, v4[7], v4[8], v4[9], 0LL);
goto LABEL_19;
}
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/tests/test-backend-ops.cpp",
1338LL,
"GGML_ASSERT(%s) failed",
"nr[3] % 2 == 0 || nr[3] == 1");
}
else
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/tests/test-backend-ops.cpp",
1337LL,
"GGML_ASSERT(%s) failed",
"nr[2] % 2 == 0 || nr[2] == 1");
}
}
else
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/tests/test-backend-ops.cpp",
1336LL,
"GGML_ASSERT(%s) failed",
"nr[1] % 2 == 0 || nr[1] == 1");
}
}
else
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/tests/test-backend-ops.cpp",
1335LL,
"GGML_ASSERT(%s) failed",
"nr[0] % 2 == 0 || nr[0] == 1");
}
}
return test_repeat_back::op_size();
}
| build_graph:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R14,RDI
MOVSXD RDX,dword ptr [RDI + 0x60]
IMUL RDX,qword ptr [RDI + 0x40]
MOV RBX,RSI
MOVSXD RCX,dword ptr [RDI + 0x64]
IMUL RCX,qword ptr [RDI + 0x48]
MOV ESI,dword ptr [RDI + 0x38]
MOVSXD R8,dword ptr [RDI + 0x68]
IMUL R8,qword ptr [RDI + 0x50]
LEA R15,[RDI + 0x40]
MOVSXD R9,dword ptr [RDI + 0x6c]
IMUL R9,qword ptr [RDI + 0x58]
MOV RDI,RBX
CALL 0x0010dc00
MOV R12,RAX
MOV RDI,R14
MOV RSI,RBX
CALL 0x0011b8ae
LEA RSI,[0x144c49]
MOV RDI,R12
CALL 0x0010db10
CMP byte ptr [R14 + 0x70],0x1
JNZ 0x00124aba
TEST byte ptr [R15],0x1
JNZ 0x00124b1a
TEST byte ptr [R14 + 0x48],0x1
JNZ 0x00124b39
TEST byte ptr [R14 + 0x50],0x1
JNZ 0x00124b58
TEST byte ptr [R14 + 0x58],0x1
JNZ 0x00124b77
MOV EAX,dword ptr [R14 + 0x60]
TEST AL,0x1
SETZ CL
CMP EAX,0x1
SETZ DL
OR DL,CL
JZ 0x00124b93
MOV ESI,dword ptr [R14 + 0x64]
TEST SIL,0x1
SETZ CL
CMP ESI,0x1
SETZ DL
OR DL,CL
JZ 0x00124baf
MOV EDI,dword ptr [R14 + 0x68]
TEST DIL,0x1
SETZ CL
CMP EDI,0x1
SETZ DL
OR DL,CL
JZ 0x00124bcb
MOV R10D,dword ptr [R14 + 0x6c]
TEST R10B,0x1
SETZ CL
CMP R10D,0x1
SETZ DL
OR DL,CL
JZ 0x00124be7
MOV RCX,qword ptr [R12 + 0x10]
MOV R8,qword ptr [R12 + 0x18]
MOV RDX,RCX
SHR RDX,0x3f
ADD RDX,RCX
SAR RDX,0x1
CMP EAX,0x1
CMOVZ RDX,RCX
MOV RCX,R8
SHR RCX,0x3f
ADD RCX,R8
SAR RCX,0x1
CMP ESI,0x1
CMOVZ RCX,R8
MOV RAX,qword ptr [R12 + 0x20]
MOV R8,RAX
SHR R8,0x3f
ADD R8,RAX
SAR R8,0x1
CMP EDI,0x1
CMOVZ R8,RAX
MOV RAX,qword ptr [R12 + 0x28]
MOV R9,RAX
SHR R9,0x3f
ADD R9,RAX
SAR R9,0x1
CMP R10D,0x1
CMOVZ R9,RAX
MOVUPS XMM0,xmmword ptr [R12 + 0x38]
MOV RAX,qword ptr [R12 + 0x48]
MOV qword ptr [RSP + 0x10],RAX
MOVUPS xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x18],0x0
MOV RDI,RBX
MOV RSI,R12
CALL 0x0010dbd0
MOV R12,RAX
LAB_00124aba:
MOV ESI,dword ptr [R14 + 0x38]
MOV RDI,RBX
MOV EDX,0x4
MOV RCX,R15
CALL 0x0010d080
MOV R15,RAX
MOV RDI,R14
MOV RSI,RBX
CALL 0x0011b8ae
LEA RSI,[0x144c42]
MOV RDI,R15
CALL 0x0010db10
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R15
CALL 0x0010d1a0
MOV RBX,RAX
LEA RSI,[0x14512e]
MOV RDI,RAX
CALL 0x0010db10
MOV RAX,RBX
ADD RSP,0x28
POP RBX
POP R12
POP R14
POP R15
RET
LAB_00124b1a:
LEA RDI,[0x14495e]
LEA RDX,[0x1449b3]
LEA RCX,[0x144c4d]
MOV ESI,0x533
JMP 0x00124c01
LAB_00124b39:
LEA RDI,[0x14495e]
LEA RDX,[0x1449b3]
LEA RCX,[0x144c5c]
MOV ESI,0x534
JMP 0x00124c01
LAB_00124b58:
LEA RDI,[0x14495e]
LEA RDX,[0x1449b3]
LEA RCX,[0x144c6b]
MOV ESI,0x535
JMP 0x00124c01
LAB_00124b77:
LEA RDI,[0x14495e]
LEA RDX,[0x1449b3]
LEA RCX,[0x144c7a]
MOV ESI,0x536
JMP 0x00124c01
LAB_00124b93:
LEA RDI,[0x14495e]
LEA RDX,[0x1449b3]
LEA RCX,[0x144c89]
MOV ESI,0x537
JMP 0x00124c01
LAB_00124baf:
LEA RDI,[0x14495e]
LEA RDX,[0x1449b3]
LEA RCX,[0x144ca6]
MOV ESI,0x538
JMP 0x00124c01
LAB_00124bcb:
LEA RDI,[0x14495e]
LEA RDX,[0x1449b3]
LEA RCX,[0x144cc3]
MOV ESI,0x539
JMP 0x00124c01
LAB_00124be7:
LEA RDI,[0x14495e]
LEA RDX,[0x1449b3]
LEA RCX,[0x144ce0]
MOV ESI,0x53a
LAB_00124c01:
XOR EAX,EAX
CALL 0x0010da20
|
/* test_repeat_back::build_graph(ggml_context*) */
int8 __thiscall test_repeat_back::build_graph(test_repeat_back *this,ggml_context *param_1)
{
uint uVar1;
uint uVar2;
uint uVar3;
uint uVar4;
long lVar5;
int8 uVar6;
long lVar7;
char *pcVar8;
long lVar9;
long lVar10;
long lVar11;
lVar5 = ggml_new_tensor_4d(param_1,*(int4 *)(this + 0x38),
(long)*(int *)(this + 0x60) * *(long *)(this + 0x40),
(long)*(int *)(this + 100) * *(long *)(this + 0x48),
(long)*(int *)(this + 0x68) * *(long *)(this + 0x50),
(long)*(int *)(this + 0x6c) * *(long *)(this + 0x58));
test_case::add_sentinel((test_case *)this,param_1);
ggml_set_name(lVar5,&DAT_00144c49);
if (this[0x70] != (test_repeat_back)0x1) {
LAB_00124aba:
uVar6 = ggml_new_tensor(param_1,*(int4 *)(this + 0x38),4,this + 0x40);
test_case::add_sentinel((test_case *)this,param_1);
ggml_set_name(uVar6,"target");
uVar6 = ggml_repeat_back(param_1,lVar5,uVar6);
ggml_set_name(uVar6,"out");
return uVar6;
}
if (((byte)this[0x40] & 1) == 0) {
if (((byte)this[0x48] & 1) == 0) {
if (((byte)this[0x50] & 1) == 0) {
if (((byte)this[0x58] & 1) == 0) {
uVar1 = *(uint *)(this + 0x60);
if (uVar1 == 1 || (uVar1 & 1) == 0) {
uVar2 = *(uint *)(this + 100);
if (uVar2 == 1 || (uVar2 & 1) == 0) {
uVar3 = *(uint *)(this + 0x68);
if (uVar3 == 1 || (uVar3 & 1) == 0) {
uVar4 = *(uint *)(this + 0x6c);
if (uVar4 == 1 || (uVar4 & 1) == 0) {
lVar9 = *(long *)(lVar5 + 0x10) / 2;
if (uVar1 == 1) {
lVar9 = *(long *)(lVar5 + 0x10);
}
lVar7 = *(long *)(lVar5 + 0x18) / 2;
if (uVar2 == 1) {
lVar7 = *(long *)(lVar5 + 0x18);
}
lVar10 = *(long *)(lVar5 + 0x20) / 2;
if (uVar3 == 1) {
lVar10 = *(long *)(lVar5 + 0x20);
}
lVar11 = *(long *)(lVar5 + 0x28) / 2;
if (uVar4 == 1) {
lVar11 = *(long *)(lVar5 + 0x28);
}
lVar5 = ggml_view_4d(param_1,lVar5,lVar9,lVar7,lVar10,lVar11,
*(int4 *)(lVar5 + 0x38),*(int4 *)(lVar5 + 0x40),
*(int8 *)(lVar5 + 0x48),0);
goto LAB_00124aba;
}
pcVar8 = "nr[3] % 2 == 0 || nr[3] == 1";
uVar6 = 0x53a;
}
else {
pcVar8 = "nr[2] % 2 == 0 || nr[2] == 1";
uVar6 = 0x539;
}
}
else {
pcVar8 = "nr[1] % 2 == 0 || nr[1] == 1";
uVar6 = 0x538;
}
}
else {
pcVar8 = "nr[0] % 2 == 0 || nr[0] == 1";
uVar6 = 0x537;
}
}
else {
pcVar8 = "ne[3] % 2 == 0";
uVar6 = 0x536;
}
}
else {
pcVar8 = "ne[2] % 2 == 0";
uVar6 = 0x535;
}
}
else {
pcVar8 = "ne[1] % 2 == 0";
uVar6 = 0x534;
}
}
else {
pcVar8 = "ne[0] % 2 == 0";
uVar6 = 0x533;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/tests/test-backend-ops.cpp",
uVar6,"GGML_ASSERT(%s) failed",pcVar8);
}
| |
28,166 | parse_time | eloqsql/libmariadb/libmariadb/ma_stmt_codec.c | static int parse_time(const char *str, size_t length, const char **end_ptr, MYSQL_TIME *tm)
{
int err= 0;
const char *p = str;
const char *end = str + length;
size_t frac_len;
int ret=1;
tm->hour = my_strtoui(p, end-p, &p, &err);
if (err || tm->hour > 838 || p == end || *p != ':' )
goto end;
p++;
tm->minute = my_strtoui(p, end-p, &p, &err);
if (err || tm->minute > 59 || p == end || *p != ':')
goto end;
p++;
tm->second = my_strtoui(p, end-p, &p, &err);
if (err || tm->second > 59)
goto end;
ret = 0;
tm->second_part = 0;
if (p == end)
goto end;
/* Check for fractional part*/
if (*p != '.')
goto end;
p++;
frac_len = MIN(6,end-p);
tm->second_part = my_strtoui(p, frac_len, &p, &err);
if (err)
goto end;
if (frac_len < 6)
tm->second_part *= frac_mul[frac_len];
ret = 0;
/* Consume whole fractional part, even after 6 digits.*/
p += frac_len;
while(p < *end_ptr)
{
if (*p < '0' || *p > '9')
break;
p++;
}
end:
*end_ptr = p;
return ret;
} | O0 | c | parse_time:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
addq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movl $0x1, -0x44(%rbp)
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rax
subq %rax, %rsi
leaq -0x30(%rbp), %rdx
leaq -0x24(%rbp), %rcx
callq 0x2f800
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0xc(%rax)
cmpl $0x0, -0x24(%rbp)
jne 0x2e468
movq -0x20(%rbp), %rax
cmpl $0x346, 0xc(%rax) # imm = 0x346
ja 0x2e468
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
je 0x2e468
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3a, %eax
je 0x2e46d
jmp 0x2e61c
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rax
subq %rax, %rsi
leaq -0x30(%rbp), %rdx
leaq -0x24(%rbp), %rcx
callq 0x2f800
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x10(%rax)
cmpl $0x0, -0x24(%rbp)
jne 0x2e4c4
movq -0x20(%rbp), %rax
cmpl $0x3b, 0x10(%rax)
ja 0x2e4c4
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
je 0x2e4c4
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3a, %eax
je 0x2e4c9
jmp 0x2e61c
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rax
subq %rax, %rsi
leaq -0x30(%rbp), %rdx
leaq -0x24(%rbp), %rcx
callq 0x2f800
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x14(%rax)
cmpl $0x0, -0x24(%rbp)
jne 0x2e50a
movq -0x20(%rbp), %rax
cmpl $0x3b, 0x14(%rax)
jbe 0x2e50f
jmp 0x2e61c
movl $0x0, -0x44(%rbp)
movq -0x20(%rbp), %rax
movq $0x0, 0x18(%rax)
movq -0x30(%rbp), %rax
cmpq -0x38(%rbp), %rax
jne 0x2e531
jmp 0x2e61c
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2e, %eax
je 0x2e542
jmp 0x2e61c
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
movq -0x38(%rbp), %rcx
movq -0x30(%rbp), %rax
subq %rax, %rcx
movl $0x6, %eax
cmpq %rcx, %rax
jge 0x2e56e
movl $0x6, %eax
movq %rax, -0x50(%rbp)
jmp 0x2e57d
movq -0x38(%rbp), %rax
movq -0x30(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x30(%rbp), %rdi
movq -0x40(%rbp), %rsi
leaq -0x30(%rbp), %rdx
leaq -0x24(%rbp), %rcx
callq 0x2f800
movl %eax, %eax
movl %eax, %ecx
movq -0x20(%rbp), %rax
movq %rcx, 0x18(%rax)
cmpl $0x0, -0x24(%rbp)
je 0x2e5ae
jmp 0x2e61c
cmpq $0x6, -0x40(%rbp)
jae 0x2e5d2
movq -0x40(%rbp), %rcx
leaq 0x20940(%rip), %rax # 0x4ef00
movl (%rax,%rcx,4), %eax
movl %eax, %ecx
movq -0x20(%rbp), %rax
imulq 0x18(%rax), %rcx
movq %rcx, 0x18(%rax)
movl $0x0, -0x44(%rbp)
movq -0x40(%rbp), %rax
addq -0x30(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rax
movq -0x18(%rbp), %rcx
cmpq (%rcx), %rax
jae 0x2e61a
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x30, %eax
jl 0x2e60a
movq -0x30(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x39, %eax
jle 0x2e60c
jmp 0x2e61a
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
jmp 0x2e5e5
jmp 0x2e61c
movq -0x30(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, (%rax)
movl -0x44(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
| parse_time:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_24], 0
mov rax, [rbp+var_8]
mov [rbp+var_30], rax
mov rax, [rbp+var_8]
add rax, [rbp+var_10]
mov [rbp+var_38], rax
mov [rbp+var_44], 1
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_38]
mov rax, [rbp+var_30]
sub rsi, rax
lea rdx, [rbp+var_30]
lea rcx, [rbp+var_24]
call my_strtoui
mov ecx, eax
mov rax, [rbp+var_20]
mov [rax+0Ch], ecx
cmp [rbp+var_24], 0
jnz short loc_2E468
mov rax, [rbp+var_20]
cmp dword ptr [rax+0Ch], 346h
ja short loc_2E468
mov rax, [rbp+var_30]
cmp rax, [rbp+var_38]
jz short loc_2E468
mov rax, [rbp+var_30]
movsx eax, byte ptr [rax]
cmp eax, 3Ah ; ':'
jz short loc_2E46D
loc_2E468:
jmp loc_2E61C
loc_2E46D:
mov rax, [rbp+var_30]
add rax, 1
mov [rbp+var_30], rax
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_38]
mov rax, [rbp+var_30]
sub rsi, rax
lea rdx, [rbp+var_30]
lea rcx, [rbp+var_24]
call my_strtoui
mov ecx, eax
mov rax, [rbp+var_20]
mov [rax+10h], ecx
cmp [rbp+var_24], 0
jnz short loc_2E4C4
mov rax, [rbp+var_20]
cmp dword ptr [rax+10h], 3Bh ; ';'
ja short loc_2E4C4
mov rax, [rbp+var_30]
cmp rax, [rbp+var_38]
jz short loc_2E4C4
mov rax, [rbp+var_30]
movsx eax, byte ptr [rax]
cmp eax, 3Ah ; ':'
jz short loc_2E4C9
loc_2E4C4:
jmp loc_2E61C
loc_2E4C9:
mov rax, [rbp+var_30]
add rax, 1
mov [rbp+var_30], rax
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_38]
mov rax, [rbp+var_30]
sub rsi, rax
lea rdx, [rbp+var_30]
lea rcx, [rbp+var_24]
call my_strtoui
mov ecx, eax
mov rax, [rbp+var_20]
mov [rax+14h], ecx
cmp [rbp+var_24], 0
jnz short loc_2E50A
mov rax, [rbp+var_20]
cmp dword ptr [rax+14h], 3Bh ; ';'
jbe short loc_2E50F
loc_2E50A:
jmp loc_2E61C
loc_2E50F:
mov [rbp+var_44], 0
mov rax, [rbp+var_20]
mov qword ptr [rax+18h], 0
mov rax, [rbp+var_30]
cmp rax, [rbp+var_38]
jnz short loc_2E531
jmp loc_2E61C
loc_2E531:
mov rax, [rbp+var_30]
movsx eax, byte ptr [rax]
cmp eax, 2Eh ; '.'
jz short loc_2E542
jmp loc_2E61C
loc_2E542:
mov rax, [rbp+var_30]
add rax, 1
mov [rbp+var_30], rax
mov rcx, [rbp+var_38]
mov rax, [rbp+var_30]
sub rcx, rax
mov eax, 6
cmp rax, rcx
jge short loc_2E56E
mov eax, 6
mov [rbp+var_50], rax
jmp short loc_2E57D
loc_2E56E:
mov rax, [rbp+var_38]
mov rcx, [rbp+var_30]
sub rax, rcx
mov [rbp+var_50], rax
loc_2E57D:
mov rax, [rbp+var_50]
mov [rbp+var_40], rax
mov rdi, [rbp+var_30]
mov rsi, [rbp+var_40]
lea rdx, [rbp+var_30]
lea rcx, [rbp+var_24]
call my_strtoui
mov eax, eax
mov ecx, eax
mov rax, [rbp+var_20]
mov [rax+18h], rcx
cmp [rbp+var_24], 0
jz short loc_2E5AE
jmp short loc_2E61C
loc_2E5AE:
cmp [rbp+var_40], 6
jnb short loc_2E5D2
mov rcx, [rbp+var_40]
lea rax, frac_mul
mov eax, [rax+rcx*4]
mov ecx, eax
mov rax, [rbp+var_20]
imul rcx, [rax+18h]
mov [rax+18h], rcx
loc_2E5D2:
mov [rbp+var_44], 0
mov rax, [rbp+var_40]
add rax, [rbp+var_30]
mov [rbp+var_30], rax
loc_2E5E5:
mov rax, [rbp+var_30]
mov rcx, [rbp+var_18]
cmp rax, [rcx]
jnb short loc_2E61A
mov rax, [rbp+var_30]
movsx eax, byte ptr [rax]
cmp eax, 30h ; '0'
jl short loc_2E60A
mov rax, [rbp+var_30]
movsx eax, byte ptr [rax]
cmp eax, 39h ; '9'
jle short loc_2E60C
loc_2E60A:
jmp short loc_2E61A
loc_2E60C:
mov rax, [rbp+var_30]
add rax, 1
mov [rbp+var_30], rax
jmp short loc_2E5E5
loc_2E61A:
jmp short $+2
loc_2E61C:
mov rcx, [rbp+var_30]
mov rax, [rbp+var_18]
mov [rax], rcx
mov eax, [rbp+var_44]
add rsp, 50h
pop rbp
retn
| long long parse_time(_BYTE *a1, long long a2, _QWORD *a3, long long a4)
{
int v4; // eax
int v5; // eax
int v6; // eax
unsigned int v7; // eax
unsigned long long v9; // [rsp+0h] [rbp-50h]
unsigned int v10; // [rsp+Ch] [rbp-44h]
_BYTE *v11; // [rsp+18h] [rbp-38h]
_BYTE *v12; // [rsp+20h] [rbp-30h] BYREF
int v13; // [rsp+2Ch] [rbp-24h] BYREF
long long v14; // [rsp+30h] [rbp-20h]
_QWORD *v15; // [rsp+38h] [rbp-18h]
long long v16; // [rsp+40h] [rbp-10h]
_BYTE *v17; // [rsp+48h] [rbp-8h]
v17 = a1;
v16 = a2;
v15 = a3;
v14 = a4;
v13 = 0;
v12 = a1;
v11 = &a1[a2];
v10 = 1;
v4 = my_strtoui(a1, a2, &v12, &v13);
*(_DWORD *)(v14 + 12) = v4;
if ( !v13 && *(_DWORD *)(v14 + 12) <= 0x346u && v12 != v11 && *v12 == 58 )
{
++v12;
v5 = my_strtoui(v12, v11 - v12, &v12, &v13);
*(_DWORD *)(v14 + 16) = v5;
if ( !v13 && *(_DWORD *)(v14 + 16) <= 0x3Bu && v12 != v11 && *v12 == 58 )
{
++v12;
v6 = my_strtoui(v12, v11 - v12, &v12, &v13);
*(_DWORD *)(v14 + 20) = v6;
if ( !v13 && *(_DWORD *)(v14 + 20) <= 0x3Bu )
{
v10 = 0;
*(_QWORD *)(v14 + 24) = 0LL;
if ( v12 != v11 && *v12 == 46 )
{
++v12;
v9 = v11 - v12 <= 6 ? v11 - v12 : 6LL;
v7 = my_strtoui(v12, v9, &v12, &v13);
*(_QWORD *)(v14 + 24) = v7;
if ( !v13 )
{
if ( v9 < 6 )
*(_QWORD *)(v14 + 24) *= frac_mul[v9];
v10 = 0;
for ( v12 += v9; (unsigned long long)v12 < *v15 && (char)*v12 >= 48 && (char)*v12 <= 57; ++v12 )
;
}
}
}
}
}
*v15 = v12;
return v10;
}
| parse_time:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
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 dword ptr [RBP + -0x24],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RBP + -0x8]
ADD RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x38],RAX
MOV dword ptr [RBP + -0x44],0x1
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x30]
SUB RSI,RAX
LEA RDX,[RBP + -0x30]
LEA RCX,[RBP + -0x24]
CALL 0x0012f800
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0xc],ECX
CMP dword ptr [RBP + -0x24],0x0
JNZ 0x0012e468
MOV RAX,qword ptr [RBP + -0x20]
CMP dword ptr [RAX + 0xc],0x346
JA 0x0012e468
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x38]
JZ 0x0012e468
MOV RAX,qword ptr [RBP + -0x30]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x3a
JZ 0x0012e46d
LAB_0012e468:
JMP 0x0012e61c
LAB_0012e46d:
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0x1
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x30]
SUB RSI,RAX
LEA RDX,[RBP + -0x30]
LEA RCX,[RBP + -0x24]
CALL 0x0012f800
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x10],ECX
CMP dword ptr [RBP + -0x24],0x0
JNZ 0x0012e4c4
MOV RAX,qword ptr [RBP + -0x20]
CMP dword ptr [RAX + 0x10],0x3b
JA 0x0012e4c4
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x38]
JZ 0x0012e4c4
MOV RAX,qword ptr [RBP + -0x30]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x3a
JZ 0x0012e4c9
LAB_0012e4c4:
JMP 0x0012e61c
LAB_0012e4c9:
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0x1
MOV qword ptr [RBP + -0x30],RAX
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x30]
SUB RSI,RAX
LEA RDX,[RBP + -0x30]
LEA RCX,[RBP + -0x24]
CALL 0x0012f800
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x14],ECX
CMP dword ptr [RBP + -0x24],0x0
JNZ 0x0012e50a
MOV RAX,qword ptr [RBP + -0x20]
CMP dword ptr [RAX + 0x14],0x3b
JBE 0x0012e50f
LAB_0012e50a:
JMP 0x0012e61c
LAB_0012e50f:
MOV dword ptr [RBP + -0x44],0x0
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x18],0x0
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x38]
JNZ 0x0012e531
JMP 0x0012e61c
LAB_0012e531:
MOV RAX,qword ptr [RBP + -0x30]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x2e
JZ 0x0012e542
JMP 0x0012e61c
LAB_0012e542:
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0x1
MOV qword ptr [RBP + -0x30],RAX
MOV RCX,qword ptr [RBP + -0x38]
MOV RAX,qword ptr [RBP + -0x30]
SUB RCX,RAX
MOV EAX,0x6
CMP RAX,RCX
JGE 0x0012e56e
MOV EAX,0x6
MOV qword ptr [RBP + -0x50],RAX
JMP 0x0012e57d
LAB_0012e56e:
MOV RAX,qword ptr [RBP + -0x38]
MOV RCX,qword ptr [RBP + -0x30]
SUB RAX,RCX
MOV qword ptr [RBP + -0x50],RAX
LAB_0012e57d:
MOV RAX,qword ptr [RBP + -0x50]
MOV qword ptr [RBP + -0x40],RAX
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,qword ptr [RBP + -0x40]
LEA RDX,[RBP + -0x30]
LEA RCX,[RBP + -0x24]
CALL 0x0012f800
MOV EAX,EAX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX + 0x18],RCX
CMP dword ptr [RBP + -0x24],0x0
JZ 0x0012e5ae
JMP 0x0012e61c
LAB_0012e5ae:
CMP qword ptr [RBP + -0x40],0x6
JNC 0x0012e5d2
MOV RCX,qword ptr [RBP + -0x40]
LEA RAX,[0x14ef00]
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x20]
IMUL RCX,qword ptr [RAX + 0x18]
MOV qword ptr [RAX + 0x18],RCX
LAB_0012e5d2:
MOV dword ptr [RBP + -0x44],0x0
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x30],RAX
LAB_0012e5e5:
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RCX]
JNC 0x0012e61a
MOV RAX,qword ptr [RBP + -0x30]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x30
JL 0x0012e60a
MOV RAX,qword ptr [RBP + -0x30]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x39
JLE 0x0012e60c
LAB_0012e60a:
JMP 0x0012e61a
LAB_0012e60c:
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,0x1
MOV qword ptr [RBP + -0x30],RAX
JMP 0x0012e5e5
LAB_0012e61a:
JMP 0x0012e61c
LAB_0012e61c:
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RAX],RCX
MOV EAX,dword ptr [RBP + -0x44]
ADD RSP,0x50
POP RBP
RET
|
int4 parse_time(char *param_1,long param_2,int8 *param_3,long param_4)
{
int4 uVar1;
uint uVar2;
char *pcVar3;
ulong local_58;
int4 local_4c;
char *local_38;
int local_2c;
long local_28;
int8 *local_20;
long local_18;
char *local_10;
local_2c = 0;
pcVar3 = param_1 + param_2;
local_4c = 1;
local_38 = param_1;
local_28 = param_4;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
uVar1 = my_strtoui(param_1,(long)pcVar3 - (long)param_1,&local_38,&local_2c);
*(int4 *)(local_28 + 0xc) = uVar1;
if ((((local_2c == 0) && (*(uint *)(local_28 + 0xc) < 0x347)) && (local_38 != pcVar3)) &&
(*local_38 == ':')) {
local_38 = local_38 + 1;
uVar1 = my_strtoui(local_38,(long)pcVar3 - (long)local_38,&local_38,&local_2c);
*(int4 *)(local_28 + 0x10) = uVar1;
if (((local_2c == 0) && (*(uint *)(local_28 + 0x10) < 0x3c)) &&
((local_38 != pcVar3 && (*local_38 == ':')))) {
local_38 = local_38 + 1;
uVar1 = my_strtoui(local_38,(long)pcVar3 - (long)local_38,&local_38,&local_2c);
*(int4 *)(local_28 + 0x14) = uVar1;
if ((local_2c == 0) && (*(uint *)(local_28 + 0x14) < 0x3c)) {
local_4c = 0;
*(int8 *)(local_28 + 0x18) = 0;
if ((local_38 != pcVar3) && (*local_38 == '.')) {
local_38 = local_38 + 1;
if ((long)pcVar3 - (long)local_38 < 7) {
local_58 = (long)pcVar3 - (long)local_38;
}
else {
local_58 = 6;
}
uVar2 = my_strtoui(local_38,local_58,&local_38,&local_2c);
*(ulong *)(local_28 + 0x18) = (ulong)uVar2;
if (local_2c == 0) {
if (local_58 < 6) {
*(ulong *)(local_28 + 0x18) =
(ulong)*(uint *)(frac_mul + local_58 * 4) * *(long *)(local_28 + 0x18);
}
local_4c = 0;
for (local_38 = local_38 + local_58;
((local_38 < (char *)*local_20 && ('/' < *local_38)) && (*local_38 < ':'));
local_38 = local_38 + 1) {
}
}
}
}
}
}
*local_20 = local_38;
return local_4c;
}
| |
28,167 | parse_time | eloqsql/libmariadb/libmariadb/ma_stmt_codec.c | static int parse_time(const char *str, size_t length, const char **end_ptr, MYSQL_TIME *tm)
{
int err= 0;
const char *p = str;
const char *end = str + length;
size_t frac_len;
int ret=1;
tm->hour = my_strtoui(p, end-p, &p, &err);
if (err || tm->hour > 838 || p == end || *p != ':' )
goto end;
p++;
tm->minute = my_strtoui(p, end-p, &p, &err);
if (err || tm->minute > 59 || p == end || *p != ':')
goto end;
p++;
tm->second = my_strtoui(p, end-p, &p, &err);
if (err || tm->second > 59)
goto end;
ret = 0;
tm->second_part = 0;
if (p == end)
goto end;
/* Check for fractional part*/
if (*p != '.')
goto end;
p++;
frac_len = MIN(6,end-p);
tm->second_part = my_strtoui(p, frac_len, &p, &err);
if (err)
goto end;
if (frac_len < 6)
tm->second_part *= frac_mul[frac_len];
ret = 0;
/* Consume whole fractional part, even after 6 digits.*/
p += frac_len;
while(p < *end_ptr)
{
if (*p < '0' || *p > '9')
break;
p++;
}
end:
*end_ptr = p;
return ret;
} | O3 | c | parse_time:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rcx, %r14
movq %rdx, %rbx
movl $0x0, -0x24(%rbp)
leaq (%rdi,%rsi), %rax
testq %rsi, %rsi
jle 0x23390
movabsq $0x1999999999999999, %r8 # imm = 0x1999999999999999
xorl %edx, %edx
xorl %esi, %esi
xorl %ecx, %ecx
movsbq (%rdi,%rsi), %r9
leal -0x3a(%r9), %r10d
cmpb $-0xa, %r10b
jb 0x233a0
cmpq %r8, %rcx
ja 0x23394
leaq (%rcx,%rcx), %r10
leaq (%r10,%r10,4), %r10
movl $0x2f, %r11d
subq %r9, %r11
cmpq %r11, %r10
ja 0x23394
leaq (%r10,%r9), %rcx
addq $-0x30, %rcx
leaq (%rdi,%rsi), %r9
incq %r9
incq %rsi
cmpq %rax, %r9
jb 0x23348
addq %rsi, %rdi
xorl %edx, %edx
jmp 0x233b6
xorl %ecx, %ecx
jmp 0x233aa
movl $0x22, -0x24(%rbp)
movl $0x22, %edx
testq %rsi, %rsi
je 0x233aa
addq %rsi, %rdi
jmp 0x233b6
movl $0x22, -0x24(%rbp)
movl $0x22, %edx
movq %rdi, -0x30(%rbp)
movq %rcx, %rsi
shrq $0x20, %rsi
movl %ecx, 0xc(%r14)
movl $0x1, %r15d
jne 0x23497
testl %edx, %edx
setne %dl
cmpl $0x347, %ecx # imm = 0x347
setae %cl
orb %dl, %cl
cmpq %rax, %rdi
sete %dl
orb %cl, %dl
jne 0x23497
cmpb $0x3a, (%rdi)
jne 0x23497
incq %rdi
movq %rdi, -0x30(%rbp)
movq %rax, %rcx
subq %rdi, %rcx
testq %rcx, %rcx
jle 0x23462
movabsq $0x1999999999999999, %r8 # imm = 0x1999999999999999
xorl %edx, %edx
xorl %esi, %esi
xorl %ecx, %ecx
movsbq (%rdi,%rsi), %r9
leal -0x3a(%r9), %r10d
cmpb $-0xa, %r10b
jb 0x23472
cmpq %r8, %rcx
ja 0x23466
leaq (%rcx,%rcx), %r10
leaq (%r10,%r10,4), %r10
movl $0x2f, %r11d
subq %r9, %r11
cmpq %r11, %r10
ja 0x23466
leaq (%r10,%r9), %rcx
addq $-0x30, %rcx
leaq (%rdi,%rsi), %r9
incq %r9
incq %rsi
cmpq %rax, %r9
jb 0x2341a
addq %rsi, %rdi
xorl %edx, %edx
jmp 0x23486
xorl %ecx, %ecx
jmp 0x2347a
movl $0x22, -0x24(%rbp)
movl $0x22, %edx
addq %rsi, %rdi
testq %rsi, %rsi
jne 0x23486
movl $0x22, -0x24(%rbp)
movl $0x22, %edx
movq %rdi, -0x30(%rbp)
movq %rcx, %rsi
shrq $0x20, %rsi
movl %ecx, 0x10(%r14)
je 0x234ae
movq -0x30(%rbp), %rax
movq %rax, (%rbx)
movl %r15d, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x3b, %ecx
ja 0x23497
testl %edx, %edx
jne 0x23497
cmpq %rax, %rdi
je 0x23497
cmpb $0x3a, (%rdi)
jne 0x23497
incq %rdi
movq %rdi, -0x30(%rbp)
movq %rax, %rcx
subq %rdi, %rcx
testq %rcx, %rcx
jle 0x2352b
movabsq $0x1999999999999999, %r8 # imm = 0x1999999999999999
xorl %edx, %edx
xorl %esi, %esi
xorl %ecx, %ecx
movsbq (%rdi,%rsi), %r9
leal -0x3a(%r9), %r10d
cmpb $-0xa, %r10b
jb 0x2353b
cmpq %r8, %rcx
ja 0x2352f
leaq (%rcx,%rcx), %r10
leaq (%r10,%r10,4), %r10
movl $0x2f, %r11d
subq %r9, %r11
cmpq %r11, %r10
ja 0x2352f
leaq (%r10,%r9), %rcx
addq $-0x30, %rcx
leaq (%rdi,%rsi), %r9
incq %r9
incq %rsi
cmpq %rax, %r9
jb 0x234e3
addq %rsi, %rdi
xorl %edx, %edx
jmp 0x2354f
xorl %ecx, %ecx
jmp 0x23543
movl $0x22, -0x24(%rbp)
movl $0x22, %edx
addq %rsi, %rdi
testq %rsi, %rsi
jne 0x2354f
movl $0x22, -0x24(%rbp)
movl $0x22, %edx
movq %rdi, -0x30(%rbp)
movq %rcx, %rsi
shrq $0x20, %rsi
movl %ecx, 0x14(%r14)
jne 0x23497
testl %edx, %edx
setne %dl
cmpl $0x3c, %ecx
setae %cl
orb %dl, %cl
jne 0x23497
movq $0x0, 0x18(%r14)
xorl %r15d, %r15d
cmpq %rax, %rdi
je 0x23497
cmpb $0x2e, (%rdi)
jne 0x23497
incq %rdi
leaq -0x30(%rbp), %rdx
movq %rdi, (%rdx)
subq %rdi, %rax
cmpq $0x6, %rax
movl $0x6, %r12d
cmovlq %rax, %r12
leaq -0x24(%rbp), %rcx
movq %r12, %rsi
callq 0x243ec
movq %rax, %rcx
shrq $0x20, %rcx
je 0x235cf
movl %eax, %eax
movq %rax, 0x18(%r14)
jmp 0x23497
cmpl $0x0, -0x24(%rbp)
movq %rax, 0x18(%r14)
jne 0x23497
cmpq $0x5, %r12
ja 0x235f6
leaq 0x14c46(%rip), %rcx # 0x38230
movl (%rcx,%r12,4), %ecx
imulq %rcx, %rax
movq %rax, 0x18(%r14)
addq -0x30(%rbp), %r12
movq (%rbx), %rax
cmpq %rax, %r12
jae 0x23619
movb (%r12), %cl
addb $-0x3a, %cl
cmpb $-0xa, %cl
jb 0x23619
incq %r12
cmpq %rax, %r12
jb 0x23602
movq %rax, %r12
movq %r12, -0x30(%rbp)
jmp 0x23497
| parse_time:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov r14, rcx
mov rbx, rdx
mov [rbp+var_24], 0
lea rax, [rdi+rsi]
test rsi, rsi
jle short loc_23390
mov r8, 1999999999999999h
xor edx, edx
xor esi, esi
xor ecx, ecx
loc_23348:
movsx r9, byte ptr [rdi+rsi]
lea r10d, [r9-3Ah]
cmp r10b, 0F6h
jb short loc_233A0
cmp rcx, r8
ja short loc_23394
lea r10, [rcx+rcx]
lea r10, [r10+r10*4]
mov r11d, 2Fh ; '/'
sub r11, r9
cmp r10, r11
ja short loc_23394
lea rcx, [r10+r9]
add rcx, 0FFFFFFFFFFFFFFD0h
lea r9, [rdi+rsi]
inc r9
inc rsi
cmp r9, rax
jb short loc_23348
add rdi, rsi
xor edx, edx
jmp short loc_233B6
loc_23390:
xor ecx, ecx
jmp short loc_233AA
loc_23394:
mov [rbp+var_24], 22h ; '"'
mov edx, 22h ; '"'
loc_233A0:
test rsi, rsi
jz short loc_233AA
add rdi, rsi
jmp short loc_233B6
loc_233AA:
mov [rbp+var_24], 22h ; '"'
mov edx, 22h ; '"'
loc_233B6:
mov [rbp+var_30], rdi
mov rsi, rcx
shr rsi, 20h
mov [r14+0Ch], ecx
mov r15d, 1
jnz loc_23497
test edx, edx
setnz dl
cmp ecx, 347h
setnb cl
or cl, dl
cmp rdi, rax
setz dl
or dl, cl
jnz loc_23497
cmp byte ptr [rdi], 3Ah ; ':'
jnz loc_23497
inc rdi
mov [rbp+var_30], rdi
mov rcx, rax
sub rcx, rdi
test rcx, rcx
jle short loc_23462
mov r8, 1999999999999999h
xor edx, edx
xor esi, esi
xor ecx, ecx
loc_2341A:
movsx r9, byte ptr [rdi+rsi]
lea r10d, [r9-3Ah]
cmp r10b, 0F6h
jb short loc_23472
cmp rcx, r8
ja short loc_23466
lea r10, [rcx+rcx]
lea r10, [r10+r10*4]
mov r11d, 2Fh ; '/'
sub r11, r9
cmp r10, r11
ja short loc_23466
lea rcx, [r10+r9]
add rcx, 0FFFFFFFFFFFFFFD0h
lea r9, [rdi+rsi]
inc r9
inc rsi
cmp r9, rax
jb short loc_2341A
add rdi, rsi
xor edx, edx
jmp short loc_23486
loc_23462:
xor ecx, ecx
jmp short loc_2347A
loc_23466:
mov [rbp+var_24], 22h ; '"'
mov edx, 22h ; '"'
loc_23472:
add rdi, rsi
test rsi, rsi
jnz short loc_23486
loc_2347A:
mov [rbp+var_24], 22h ; '"'
mov edx, 22h ; '"'
loc_23486:
mov [rbp+var_30], rdi
mov rsi, rcx
shr rsi, 20h
mov [r14+10h], ecx
jz short loc_234AE
loc_23497:
mov rax, [rbp+var_30]
mov [rbx], rax
mov eax, r15d
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_234AE:
cmp ecx, 3Bh ; ';'
ja short loc_23497
test edx, edx
jnz short loc_23497
cmp rdi, rax
jz short loc_23497
cmp byte ptr [rdi], 3Ah ; ':'
jnz short loc_23497
inc rdi
mov [rbp+var_30], rdi
mov rcx, rax
sub rcx, rdi
test rcx, rcx
jle short loc_2352B
mov r8, 1999999999999999h
xor edx, edx
xor esi, esi
xor ecx, ecx
loc_234E3:
movsx r9, byte ptr [rdi+rsi]
lea r10d, [r9-3Ah]
cmp r10b, 0F6h
jb short loc_2353B
cmp rcx, r8
ja short loc_2352F
lea r10, [rcx+rcx]
lea r10, [r10+r10*4]
mov r11d, 2Fh ; '/'
sub r11, r9
cmp r10, r11
ja short loc_2352F
lea rcx, [r10+r9]
add rcx, 0FFFFFFFFFFFFFFD0h
lea r9, [rdi+rsi]
inc r9
inc rsi
cmp r9, rax
jb short loc_234E3
add rdi, rsi
xor edx, edx
jmp short loc_2354F
loc_2352B:
xor ecx, ecx
jmp short loc_23543
loc_2352F:
mov [rbp+var_24], 22h ; '"'
mov edx, 22h ; '"'
loc_2353B:
add rdi, rsi
test rsi, rsi
jnz short loc_2354F
loc_23543:
mov [rbp+var_24], 22h ; '"'
mov edx, 22h ; '"'
loc_2354F:
mov [rbp+var_30], rdi
mov rsi, rcx
shr rsi, 20h
mov [r14+14h], ecx
jnz loc_23497
test edx, edx
setnz dl
cmp ecx, 3Ch ; '<'
setnb cl
or cl, dl
jnz loc_23497
mov qword ptr [r14+18h], 0
xor r15d, r15d
cmp rdi, rax
jz loc_23497
cmp byte ptr [rdi], 2Eh ; '.'
jnz loc_23497
inc rdi
lea rdx, [rbp+var_30]
mov [rdx], rdi
sub rax, rdi
cmp rax, 6
mov r12d, 6
cmovl r12, rax
lea rcx, [rbp+var_24]
mov rsi, r12
call my_strtoull
mov rcx, rax
shr rcx, 20h
jz short loc_235CF
mov eax, eax
mov [r14+18h], rax
jmp loc_23497
loc_235CF:
cmp [rbp+var_24], 0
mov [r14+18h], rax
jnz loc_23497
cmp r12, 5
ja short loc_235F6
lea rcx, frac_mul
mov ecx, [rcx+r12*4]
imul rax, rcx
mov [r14+18h], rax
loc_235F6:
add r12, [rbp+var_30]
mov rax, [rbx]
cmp r12, rax
jnb short loc_23619
loc_23602:
mov cl, [r12]
add cl, 0C6h
cmp cl, 0F6h
jb short loc_23619
inc r12
cmp r12, rax
jb short loc_23602
mov r12, rax
loc_23619:
mov [rbp+var_30], r12
jmp loc_23497
| long long parse_time(_BYTE *a1, long long a2, _BYTE **a3, long long a4, long long a5)
{
_BYTE *v7; // rax
int v8; // edx
long long v9; // rsi
unsigned long long v10; // rcx
long long v11; // r9
unsigned long long v12; // r9
unsigned int v13; // r15d
_BYTE *v14; // rdi
int v15; // edx
long long v16; // rsi
unsigned long long v17; // rcx
long long v18; // r9
unsigned long long v19; // r9
_BYTE *v21; // rdi
int v22; // edx
long long v23; // rsi
unsigned long long v24; // rcx
long long v25; // r9
unsigned long long v26; // r9
_BYTE *v27; // rdi
long long v28; // rax
unsigned long long v29; // r12
unsigned long long v30; // rax
bool v31; // zf
_BYTE *v32; // r12
_BYTE *v33; // [rsp+0h] [rbp-30h] BYREF
int v34[9]; // [rsp+Ch] [rbp-24h] BYREF
v34[0] = 0;
v7 = &a1[a2];
if ( a2 <= 0 )
{
v10 = 0LL;
LABEL_12:
v34[0] = 34;
v8 = 34;
goto LABEL_13;
}
a5 = 0x1999999999999999LL;
v8 = 0;
v9 = 0LL;
v10 = 0LL;
while ( 1 )
{
v11 = (char)a1[v9];
if ( (unsigned __int8)(v11 - 58) < 0xF6u )
break;
if ( v10 > 0x1999999999999999LL || 10 * v10 > 47 - v11 )
{
v34[0] = 34;
v8 = 34;
break;
}
v10 = 10 * v10 + v11 - 48;
v12 = (unsigned long long)&a1[++v9];
if ( v12 >= (unsigned long long)v7 )
{
a1 += v9;
v8 = 0;
goto LABEL_13;
}
}
if ( !v9 )
goto LABEL_12;
a1 += v9;
LABEL_13:
v33 = a1;
*(_DWORD *)(a4 + 12) = v10;
v13 = 1;
if ( HIDWORD(v10) || v8 != 0 || (unsigned int)v10 >= 0x347 || a1 == v7 || *a1 != 58 )
goto LABEL_28;
v14 = a1 + 1;
v33 = v14;
if ( v7 - v14 <= 0 )
{
v17 = 0LL;
LABEL_26:
v34[0] = 34;
v15 = 34;
goto LABEL_27;
}
a5 = 0x1999999999999999LL;
v15 = 0;
v16 = 0LL;
v17 = 0LL;
while ( 1 )
{
v18 = (char)v14[v16];
if ( (unsigned __int8)(v18 - 58) < 0xF6u )
break;
if ( v17 > 0x1999999999999999LL || 10 * v17 > 47 - v18 )
{
v34[0] = 34;
v15 = 34;
break;
}
v17 = 10 * v17 + v18 - 48;
v19 = (unsigned long long)&v14[++v16];
if ( v19 >= (unsigned long long)v7 )
{
v14 += v16;
v15 = 0;
goto LABEL_27;
}
}
v14 += v16;
if ( !v16 )
goto LABEL_26;
LABEL_27:
v33 = v14;
*(_DWORD *)(a4 + 16) = v17;
if ( HIDWORD(v17) || (unsigned int)v17 > 0x3B || v15 || v14 == v7 || *v14 != 58 )
goto LABEL_28;
v21 = v14 + 1;
v33 = v21;
if ( v7 - v21 <= 0 )
{
v24 = 0LL;
}
else
{
a5 = 0x1999999999999999LL;
v22 = 0;
v23 = 0LL;
v24 = 0LL;
while ( 1 )
{
v25 = (char)v21[v23];
if ( (unsigned __int8)(v25 - 58) < 0xF6u )
break;
if ( v24 > 0x1999999999999999LL || 10 * v24 > 47 - v25 )
{
v34[0] = 34;
v22 = 34;
break;
}
v24 = 10 * v24 + v25 - 48;
v26 = (unsigned long long)&v21[++v23];
if ( v26 >= (unsigned long long)v7 )
{
v21 += v23;
v22 = 0;
goto LABEL_44;
}
}
v21 += v23;
if ( v23 )
goto LABEL_44;
}
v34[0] = 34;
v22 = 34;
LABEL_44:
v33 = v21;
*(_DWORD *)(a4 + 20) = v24;
if ( !HIDWORD(v24) && v22 == 0 && (unsigned int)v24 < 0x3C )
{
*(_QWORD *)(a4 + 24) = 0LL;
v13 = 0;
if ( v21 != v7 && *v21 == 46 )
{
v27 = v21 + 1;
v33 = v27;
v28 = v7 - v27;
v29 = 6LL;
if ( v28 < 6 )
v29 = v28;
v30 = my_strtoull(v27, v29, &v33, v34, a5);
if ( HIDWORD(v30) )
{
*(_QWORD *)(a4 + 24) = (unsigned int)v30;
}
else
{
v31 = v34[0] == 0;
*(_QWORD *)(a4 + 24) = v30;
if ( v31 )
{
if ( v29 <= 5 )
*(_QWORD *)(a4 + 24) = frac_mul[v29] * v30;
v32 = &v33[v29];
if ( v32 < *a3 )
{
while ( (unsigned __int8)(*v32 - 58) >= 0xF6u )
{
if ( ++v32 >= *a3 )
{
v32 = *a3;
break;
}
}
}
v33 = v32;
}
}
}
}
LABEL_28:
*a3 = v33;
return v13;
}
| parse_time:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV R14,RCX
MOV RBX,RDX
MOV dword ptr [RBP + -0x24],0x0
LEA RAX,[RDI + RSI*0x1]
TEST RSI,RSI
JLE 0x00123390
MOV R8,0x1999999999999999
XOR EDX,EDX
XOR ESI,ESI
XOR ECX,ECX
LAB_00123348:
MOVSX R9,byte ptr [RDI + RSI*0x1]
LEA R10D,[R9 + -0x3a]
CMP R10B,0xf6
JC 0x001233a0
CMP RCX,R8
JA 0x00123394
LEA R10,[RCX + RCX*0x1]
LEA R10,[R10 + R10*0x4]
MOV R11D,0x2f
SUB R11,R9
CMP R10,R11
JA 0x00123394
LEA RCX,[R10 + R9*0x1]
ADD RCX,-0x30
LEA R9,[RDI + RSI*0x1]
INC R9
INC RSI
CMP R9,RAX
JC 0x00123348
ADD RDI,RSI
XOR EDX,EDX
JMP 0x001233b6
LAB_00123390:
XOR ECX,ECX
JMP 0x001233aa
LAB_00123394:
MOV dword ptr [RBP + -0x24],0x22
MOV EDX,0x22
LAB_001233a0:
TEST RSI,RSI
JZ 0x001233aa
ADD RDI,RSI
JMP 0x001233b6
LAB_001233aa:
MOV dword ptr [RBP + -0x24],0x22
MOV EDX,0x22
LAB_001233b6:
MOV qword ptr [RBP + -0x30],RDI
MOV RSI,RCX
SHR RSI,0x20
MOV dword ptr [R14 + 0xc],ECX
MOV R15D,0x1
JNZ 0x00123497
TEST EDX,EDX
SETNZ DL
CMP ECX,0x347
SETNC CL
OR CL,DL
CMP RDI,RAX
SETZ DL
OR DL,CL
JNZ 0x00123497
CMP byte ptr [RDI],0x3a
JNZ 0x00123497
INC RDI
MOV qword ptr [RBP + -0x30],RDI
MOV RCX,RAX
SUB RCX,RDI
TEST RCX,RCX
JLE 0x00123462
MOV R8,0x1999999999999999
XOR EDX,EDX
XOR ESI,ESI
XOR ECX,ECX
LAB_0012341a:
MOVSX R9,byte ptr [RDI + RSI*0x1]
LEA R10D,[R9 + -0x3a]
CMP R10B,0xf6
JC 0x00123472
CMP RCX,R8
JA 0x00123466
LEA R10,[RCX + RCX*0x1]
LEA R10,[R10 + R10*0x4]
MOV R11D,0x2f
SUB R11,R9
CMP R10,R11
JA 0x00123466
LEA RCX,[R10 + R9*0x1]
ADD RCX,-0x30
LEA R9,[RDI + RSI*0x1]
INC R9
INC RSI
CMP R9,RAX
JC 0x0012341a
ADD RDI,RSI
XOR EDX,EDX
JMP 0x00123486
LAB_00123462:
XOR ECX,ECX
JMP 0x0012347a
LAB_00123466:
MOV dword ptr [RBP + -0x24],0x22
MOV EDX,0x22
LAB_00123472:
ADD RDI,RSI
TEST RSI,RSI
JNZ 0x00123486
LAB_0012347a:
MOV dword ptr [RBP + -0x24],0x22
MOV EDX,0x22
LAB_00123486:
MOV qword ptr [RBP + -0x30],RDI
MOV RSI,RCX
SHR RSI,0x20
MOV dword ptr [R14 + 0x10],ECX
JZ 0x001234ae
LAB_00123497:
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBX],RAX
MOV EAX,R15D
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001234ae:
CMP ECX,0x3b
JA 0x00123497
TEST EDX,EDX
JNZ 0x00123497
CMP RDI,RAX
JZ 0x00123497
CMP byte ptr [RDI],0x3a
JNZ 0x00123497
INC RDI
MOV qword ptr [RBP + -0x30],RDI
MOV RCX,RAX
SUB RCX,RDI
TEST RCX,RCX
JLE 0x0012352b
MOV R8,0x1999999999999999
XOR EDX,EDX
XOR ESI,ESI
XOR ECX,ECX
LAB_001234e3:
MOVSX R9,byte ptr [RDI + RSI*0x1]
LEA R10D,[R9 + -0x3a]
CMP R10B,0xf6
JC 0x0012353b
CMP RCX,R8
JA 0x0012352f
LEA R10,[RCX + RCX*0x1]
LEA R10,[R10 + R10*0x4]
MOV R11D,0x2f
SUB R11,R9
CMP R10,R11
JA 0x0012352f
LEA RCX,[R10 + R9*0x1]
ADD RCX,-0x30
LEA R9,[RDI + RSI*0x1]
INC R9
INC RSI
CMP R9,RAX
JC 0x001234e3
ADD RDI,RSI
XOR EDX,EDX
JMP 0x0012354f
LAB_0012352b:
XOR ECX,ECX
JMP 0x00123543
LAB_0012352f:
MOV dword ptr [RBP + -0x24],0x22
MOV EDX,0x22
LAB_0012353b:
ADD RDI,RSI
TEST RSI,RSI
JNZ 0x0012354f
LAB_00123543:
MOV dword ptr [RBP + -0x24],0x22
MOV EDX,0x22
LAB_0012354f:
MOV qword ptr [RBP + -0x30],RDI
MOV RSI,RCX
SHR RSI,0x20
MOV dword ptr [R14 + 0x14],ECX
JNZ 0x00123497
TEST EDX,EDX
SETNZ DL
CMP ECX,0x3c
SETNC CL
OR CL,DL
JNZ 0x00123497
MOV qword ptr [R14 + 0x18],0x0
XOR R15D,R15D
CMP RDI,RAX
JZ 0x00123497
CMP byte ptr [RDI],0x2e
JNZ 0x00123497
INC RDI
LEA RDX,[RBP + -0x30]
MOV qword ptr [RDX],RDI
SUB RAX,RDI
CMP RAX,0x6
MOV R12D,0x6
CMOVL R12,RAX
LEA RCX,[RBP + -0x24]
MOV RSI,R12
CALL 0x001243ec
MOV RCX,RAX
SHR RCX,0x20
JZ 0x001235cf
MOV EAX,EAX
MOV qword ptr [R14 + 0x18],RAX
JMP 0x00123497
LAB_001235cf:
CMP dword ptr [RBP + -0x24],0x0
MOV qword ptr [R14 + 0x18],RAX
JNZ 0x00123497
CMP R12,0x5
JA 0x001235f6
LEA RCX,[0x138230]
MOV ECX,dword ptr [RCX + R12*0x4]
IMUL RAX,RCX
MOV qword ptr [R14 + 0x18],RAX
LAB_001235f6:
ADD R12,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBX]
CMP R12,RAX
JNC 0x00123619
LAB_00123602:
MOV CL,byte ptr [R12]
ADD CL,0xc6
CMP CL,0xf6
JC 0x00123619
INC R12
CMP R12,RAX
JC 0x00123602
MOV R12,RAX
LAB_00123619:
MOV qword ptr [RBP + -0x30],R12
JMP 0x00123497
|
int8 parse_time(char *param_1,long param_2,ulong *param_3,long param_4)
{
char cVar1;
long lVar2;
ulong uVar3;
ulong uVar4;
int iVar5;
long lVar6;
char *pcVar7;
int8 uVar8;
int8 uVar9;
char *local_38;
int local_2c;
local_2c = 0;
pcVar7 = param_1 + param_2;
if (param_2 < 1) {
uVar4 = 0;
LAB_001233aa:
local_2c = 0x22;
iVar5 = 0x22;
}
else {
iVar5 = 0;
lVar6 = 0;
uVar4 = 0;
do {
cVar1 = param_1[lVar6];
if ((byte)(cVar1 - 0x3aU) < 0xf6) {
LAB_001233a0:
if (lVar6 == 0) goto LAB_001233aa;
param_1 = param_1 + lVar6;
goto LAB_001233b6;
}
if ((0x1999999999999999 < uVar4) || (0x2fU - (long)cVar1 < uVar4 * 10)) {
local_2c = 0x22;
iVar5 = 0x22;
goto LAB_001233a0;
}
uVar4 = (uVar4 * 10 + (long)cVar1) - 0x30;
lVar2 = lVar6 + 1;
lVar6 = lVar6 + 1;
} while (param_1 + lVar2 < pcVar7);
param_1 = param_1 + lVar6;
iVar5 = 0;
}
LAB_001233b6:
*(uint *)(param_4 + 0xc) = (uint)uVar4;
uVar8 = 1;
local_38 = param_1;
if (((uVar4 >> 0x20 == 0) &&
(local_38 = param_1, param_1 != pcVar7 && ((uint)uVar4 < 0x347 && iVar5 == 0))) &&
(local_38 = param_1, *param_1 == ':')) {
local_38 = param_1 + 1;
if (pcVar7 == local_38 || (long)pcVar7 - (long)local_38 < 0) {
uVar4 = 0;
LAB_0012347a:
local_2c = 0x22;
iVar5 = 0x22;
}
else {
iVar5 = 0;
lVar6 = 0;
uVar4 = 0;
do {
cVar1 = local_38[lVar6];
if ((byte)(cVar1 - 0x3aU) < 0xf6) {
LAB_00123472:
local_38 = local_38 + lVar6;
if (lVar6 == 0) goto LAB_0012347a;
goto LAB_00123486;
}
if ((0x1999999999999999 < uVar4) || (0x2fU - (long)cVar1 < uVar4 * 10)) {
local_2c = 0x22;
iVar5 = 0x22;
goto LAB_00123472;
}
uVar4 = (uVar4 * 10 + (long)cVar1) - 0x30;
lVar2 = lVar6 + 1;
lVar6 = lVar6 + 1;
} while (local_38 + lVar2 < pcVar7);
local_38 = local_38 + lVar6;
iVar5 = 0;
}
LAB_00123486:
*(uint *)(param_4 + 0x10) = (uint)uVar4;
if (((uVar4 >> 0x20 == 0) && ((uint)uVar4 < 0x3c)) &&
((iVar5 == 0 && ((local_38 != pcVar7 && (*local_38 == ':')))))) {
local_38 = local_38 + 1;
if (pcVar7 == local_38 || (long)pcVar7 - (long)local_38 < 0) {
uVar4 = 0;
LAB_00123543:
local_2c = 0x22;
iVar5 = 0x22;
}
else {
iVar5 = 0;
lVar6 = 0;
uVar4 = 0;
do {
cVar1 = local_38[lVar6];
if ((byte)(cVar1 - 0x3aU) < 0xf6) {
LAB_0012353b:
local_38 = local_38 + lVar6;
if (lVar6 == 0) goto LAB_00123543;
goto LAB_0012354f;
}
if ((0x1999999999999999 < uVar4) || (0x2fU - (long)cVar1 < uVar4 * 10)) {
local_2c = 0x22;
iVar5 = 0x22;
goto LAB_0012353b;
}
uVar4 = (uVar4 * 10 + (long)cVar1) - 0x30;
lVar2 = lVar6 + 1;
lVar6 = lVar6 + 1;
} while (local_38 + lVar2 < pcVar7);
local_38 = local_38 + lVar6;
iVar5 = 0;
}
LAB_0012354f:
*(uint *)(param_4 + 0x14) = (uint)uVar4;
if ((uVar4 >> 0x20 == 0) && ((uint)uVar4 < 0x3c && iVar5 == 0)) {
*(int8 *)(param_4 + 0x18) = 0;
uVar8 = 0;
uVar9 = 0;
if ((local_38 != pcVar7) && (*local_38 == '.')) {
local_38 = local_38 + 1;
uVar4 = 6;
if ((long)pcVar7 - (long)local_38 < 6) {
uVar4 = (long)pcVar7 - (long)local_38;
}
uVar3 = my_strtoull(local_38,uVar4,&local_38,&local_2c);
if (uVar3 >> 0x20 == 0) {
*(ulong *)(param_4 + 0x18) = uVar3;
uVar8 = uVar9;
if (local_2c == 0) {
if (uVar4 < 6) {
*(ulong *)(param_4 + 0x18) = uVar3 * *(uint *)(frac_mul + uVar4 * 4);
}
pcVar7 = local_38 + uVar4;
local_38 = pcVar7;
for (; (pcVar7 < (char *)*param_3 &&
(local_38 = pcVar7, 0xf5 < (byte)(*pcVar7 - 0x3aU))); pcVar7 = pcVar7 + 1) {
local_38 = (char *)*param_3;
}
}
}
else {
*(ulong *)(param_4 + 0x18) = uVar3 & 0xffffffff;
}
}
}
}
}
*param_3 = (ulong)local_38;
return uVar8;
}
| |
28,168 | ma_check_env_str | eloqsql/libmariadb/include/ma_string.h | static inline my_bool ma_check_env_str(const char *env)
{
unsigned int i;
if (!env)
return 1;
for (i=0; i < MAX_ENV_SIZE; i++)
{
if (env[i] == 0)
break;
}
if (i >= MAX_ENV_SIZE)
return 1;
return 0;
} | O0 | c | ma_check_env_str:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x38725
movb $0x1, -0x1(%rbp)
jmp 0x38767
movl $0x0, -0x14(%rbp)
cmpl $0x400, -0x14(%rbp) # imm = 0x400
jae 0x38754
movq -0x10(%rbp), %rax
movl -0x14(%rbp), %ecx
movsbl (%rax,%rcx), %eax
cmpl $0x0, %eax
jne 0x38747
jmp 0x38754
jmp 0x38749
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x3872c
cmpl $0x400, -0x14(%rbp) # imm = 0x400
jb 0x38763
movb $0x1, -0x1(%rbp)
jmp 0x38767
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
popq %rbp
retq
nopl (%rax)
| ma_check_env_str:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
cmp [rbp+var_10], 0
jnz short loc_38725
mov [rbp+var_1], 1
jmp short loc_38767
loc_38725:
mov [rbp+var_14], 0
loc_3872C:
cmp [rbp+var_14], 400h
jnb short loc_38754
mov rax, [rbp+var_10]
mov ecx, [rbp+var_14]
movsx eax, byte ptr [rax+rcx]
cmp eax, 0
jnz short loc_38747
jmp short loc_38754
loc_38747:
jmp short $+2
loc_38749:
mov eax, [rbp+var_14]
add eax, 1
mov [rbp+var_14], eax
jmp short loc_3872C
loc_38754:
cmp [rbp+var_14], 400h
jb short loc_38763
mov [rbp+var_1], 1
jmp short loc_38767
loc_38763:
mov [rbp+var_1], 0
loc_38767:
mov al, [rbp+var_1]
pop rbp
retn
| bool ma_check_env_str(long long a1)
{
unsigned int i; // [rsp+0h] [rbp-14h]
if ( !a1 )
return 1;
for ( i = 0; i < 0x400 && *(_BYTE *)(a1 + i); ++i )
;
return i >= 0x400;
}
| ma_check_env_str:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
CMP qword ptr [RBP + -0x10],0x0
JNZ 0x00138725
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00138767
LAB_00138725:
MOV dword ptr [RBP + -0x14],0x0
LAB_0013872c:
CMP dword ptr [RBP + -0x14],0x400
JNC 0x00138754
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RBP + -0x14]
MOVSX EAX,byte ptr [RAX + RCX*0x1]
CMP EAX,0x0
JNZ 0x00138747
JMP 0x00138754
LAB_00138747:
JMP 0x00138749
LAB_00138749:
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,0x1
MOV dword ptr [RBP + -0x14],EAX
JMP 0x0013872c
LAB_00138754:
CMP dword ptr [RBP + -0x14],0x400
JC 0x00138763
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00138767
LAB_00138763:
MOV byte ptr [RBP + -0x1],0x0
LAB_00138767:
MOV AL,byte ptr [RBP + -0x1]
POP RBP
RET
|
int1 ma_check_env_str(long param_1)
{
uint local_1c;
int1 local_9;
if (param_1 == 0) {
local_9 = 1;
}
else {
for (local_1c = 0; (local_1c < 0x400 && (*(char *)(param_1 + (ulong)local_1c) != '\0'));
local_1c = local_1c + 1) {
}
if (local_1c < 0x400) {
local_9 = 0;
}
else {
local_9 = 1;
}
}
return local_9;
}
| |
28,169 | mariadb_convert_string | eloqsql/libmariadb/libmariadb/ma_charset.c | size_t STDCALL mariadb_convert_string(const char *from __attribute__((unused)),
size_t *from_len __attribute__((unused)),
MARIADB_CHARSET_INFO *from_cs __attribute__((unused)),
char *to __attribute__((unused)),
size_t *to_len __attribute__((unused)),
MARIADB_CHARSET_INFO *to_cs __attribute__((unused)), int *errorcode)
{
#ifndef HAVE_ICONV
*errorcode= ENOTSUP;
return -1;
#else
iconv_t conv= 0;
size_t rc= -1;
size_t save_len= *to_len;
char to_encoding[128], from_encoding[128];
*errorcode= 0;
/* check if conversion is supported */
if (!from_cs || !from_cs->encoding || !from_cs->encoding[0] ||
!to_cs || !to_cs->encoding || !to_cs->encoding[0])
{
*errorcode= EINVAL;
return rc;
}
map_charset_name(to_cs->encoding, 1, to_encoding, sizeof(to_encoding));
map_charset_name(from_cs->encoding, 0, from_encoding, sizeof(from_encoding));
if ((conv= iconv_open(to_encoding, from_encoding)) == (iconv_t)-1)
{
*errorcode= errno;
goto error;
}
if ((rc= iconv(conv, IF_WIN(,IF_SOLARIS(,(char **)))&from, from_len, &to, to_len)) == (size_t)-1)
{
*errorcode= errno;
goto error;
}
rc= save_len - *to_len;
error:
if (conv != (iconv_t)-1)
iconv_close(conv);
return rc;
#endif
} | O0 | c | mariadb_convert_string:
pushq %rbp
movq %rsp, %rbp
movq 0x10(%rbp), %rax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq 0x10(%rbp), %rax
movl $0x5f, (%rax)
movq $-0x1, %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| mariadb_convert_string:
push rbp
mov rbp, rsp
mov rax, [rbp+arg_0]
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+arg_0]
mov dword ptr [rax], 5Fh ; '_'
mov rax, 0FFFFFFFFFFFFFFFFh
pop rbp
retn
| long long mariadb_convert_string(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
_DWORD *a7)
{
*a7 = 95;
return -1LL;
}
| mariadb_convert_string:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV RAX,qword ptr [RBP + 0x10]
MOV dword ptr [RAX],0x5f
MOV RAX,-0x1
POP RBP
RET
|
int8 mariadb_convert_string(void)
{
int4 *in_stack_00000008;
*in_stack_00000008 = 0x5f;
return 0xffffffffffffffff;
}
| |
28,170 | mariadb_convert_string | eloqsql/libmariadb/libmariadb/ma_charset.c | size_t STDCALL mariadb_convert_string(const char *from __attribute__((unused)),
size_t *from_len __attribute__((unused)),
MARIADB_CHARSET_INFO *from_cs __attribute__((unused)),
char *to __attribute__((unused)),
size_t *to_len __attribute__((unused)),
MARIADB_CHARSET_INFO *to_cs __attribute__((unused)), int *errorcode)
{
#ifndef HAVE_ICONV
*errorcode= ENOTSUP;
return -1;
#else
iconv_t conv= 0;
size_t rc= -1;
size_t save_len= *to_len;
char to_encoding[128], from_encoding[128];
*errorcode= 0;
/* check if conversion is supported */
if (!from_cs || !from_cs->encoding || !from_cs->encoding[0] ||
!to_cs || !to_cs->encoding || !to_cs->encoding[0])
{
*errorcode= EINVAL;
return rc;
}
map_charset_name(to_cs->encoding, 1, to_encoding, sizeof(to_encoding));
map_charset_name(from_cs->encoding, 0, from_encoding, sizeof(from_encoding));
if ((conv= iconv_open(to_encoding, from_encoding)) == (iconv_t)-1)
{
*errorcode= errno;
goto error;
}
if ((rc= iconv(conv, IF_WIN(,IF_SOLARIS(,(char **)))&from, from_len, &to, to_len)) == (size_t)-1)
{
*errorcode= errno;
goto error;
}
rc= save_len - *to_len;
error:
if (conv != (iconv_t)-1)
iconv_close(conv);
return rc;
#endif
} | O3 | c | mariadb_convert_string:
pushq %rbp
movq %rsp, %rbp
movq 0x10(%rbp), %rax
movl $0x5f, (%rax)
movq $-0x1, %rax
popq %rbp
retq
nopl (%rax)
| mariadb_convert_string:
push rbp
mov rbp, rsp
mov rax, [rbp+arg_0]
mov dword ptr [rax], 5Fh ; '_'
mov rax, 0FFFFFFFFFFFFFFFFh
pop rbp
retn
| long long mariadb_convert_string(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
_DWORD *a7)
{
*a7 = 95;
return -1LL;
}
| mariadb_convert_string:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RBP + 0x10]
MOV dword ptr [RAX],0x5f
MOV RAX,-0x1
POP RBP
RET
|
int8 mariadb_convert_string(void)
{
int4 *in_stack_00000008;
*in_stack_00000008 = 0x5f;
return 0xffffffffffffffff;
}
| |
28,171 | void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<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>, unsigned long, 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&, unsigned long&) | monkey531[P]llama/common/json.hpp | void get_arithmetic_value(const BasicJsonType& j, ArithmeticType& val)
{
switch (static_cast<value_t>(j))
{
case value_t::number_unsigned:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>());
break;
}
case value_t::number_integer:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>());
break;
}
case value_t::number_float:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>());
break;
}
case value_t::null:
case value_t::object:
case value_t::array:
case value_t::string:
case value_t::boolean:
case value_t::binary:
case value_t::discarded:
default:
JSON_THROW(type_error::create(302, concat("type must be number, but is ", j.type_name()), &j));
}
} | O0 | cpp | void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<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>, unsigned long, 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&, unsigned long&):
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq 0x50(%rsp), %rdi
callq 0x11a1f0
movzbl %al, %ecx
movq %rcx, 0x8(%rsp)
subb $0x9, %al
ja 0x184ba4
movq 0x8(%rsp), %rax
leaq 0x91a80(%rip), %rcx # 0x2165a4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x50(%rsp), %rdi
callq 0x11a200
movq (%rax), %rcx
movq 0x48(%rsp), %rax
movq %rcx, (%rax)
jmp 0x184c52
movq 0x50(%rsp), %rdi
callq 0x11a220
movq (%rax), %rcx
movq 0x48(%rsp), %rax
movq %rcx, (%rax)
jmp 0x184c52
movq 0x50(%rsp), %rdi
callq 0x11a240
movsd (%rax), %xmm0
movsd 0x91491(%rip), %xmm2 # 0x216008
movaps %xmm0, %xmm1
subsd %xmm2, %xmm1
cvttsd2si %xmm1, %rax
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
andq %rdx, %rax
orq %rax, %rcx
movq 0x48(%rsp), %rax
movq %rcx, (%rax)
jmp 0x184c52
jmp 0x184ba4
movb $0x1, 0x13(%rsp)
movl $0x20, %edi
callq 0x5b740
movq %rax, (%rsp)
movq 0x50(%rsp), %rdi
callq 0xbc3a0
movq %rax, 0x20(%rsp)
leaq 0x92c7a(%rip), %rsi # 0x217847
leaq 0x28(%rsp), %rdi
leaq 0x20(%rsp), %rdx
callq 0x11a410
jmp 0x184bde
movq (%rsp), %rdi
movq 0x50(%rsp), %rcx
movl $0x12e, %esi # imm = 0x12E
leaq 0x28(%rsp), %rdx
callq 0x11a260
jmp 0x184bf8
movq (%rsp), %rdi
movb $0x0, 0x13(%rsp)
leaq 0x124180(%rip), %rsi # 0x2a8d88
leaq -0xc87bf(%rip), %rdx # 0xbc450
callq 0x5bc30
jmp 0x184c61
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
jmp 0x184c3e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x18(%rsp)
movl %eax, 0x14(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x5c7f8
testb $0x1, 0x13(%rsp)
jne 0x184c47
jmp 0x184c50
movq (%rsp), %rdi
callq 0x5c130
jmp 0x184c57
addq $0x58, %rsp
retq
movq 0x18(%rsp), %rdi
callq 0x5bd10
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
| _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEmTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_:
sub rsp, 58h
mov qword ptr [rsp+58h+var_8], rdi; char
mov qword ptr [rsp+58h+var_10], rsi; int
mov rdi, qword ptr [rsp+58h+var_8]
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEcvNS0_6detail7value_tEEv; 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::detail::value_t(void)
movzx ecx, al
mov qword ptr [rsp+58h+var_50], rcx; int
sub al, 9; switch 10 cases
ja def_184B2B; jumptable 0000000000184B2B default case
mov rax, qword ptr [rsp+58h+var_50]
lea rcx, jpt_184B2B
movsxd rax, ds:(jpt_184B2B - 2165A4h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_184B2D:
mov rdi, qword ptr [rsp+58h+var_8]; jumptable 0000000000184B2B case 6
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE7get_ptrIPKmTnNSt9enable_ifIXaasr3std10is_pointerIT_EE5valuesr3std8is_constINSt14remove_pointerISI_E4typeEEE5valueEiE4typeELi0EEEDTcldtclL_ZSt7declvalIRKSD_EDTcl9__declvalISI_ELi0EEEvEE12get_impl_ptrclsr3stdE7declvalISI_EEEEv
mov rcx, [rax]
mov rax, qword ptr [rsp+58h+var_10]
mov [rax], rcx
jmp loc_184C52
loc_184B47:
mov rdi, qword ptr [rsp+58h+var_8]; jumptable 0000000000184B2B case 5
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE7get_ptrIPKlTnNSt9enable_ifIXaasr3std10is_pointerIT_EE5valuesr3std8is_constINSt14remove_pointerISI_E4typeEEE5valueEiE4typeELi0EEEDTcldtclL_ZSt7declvalIRKSD_EDTcl9__declvalISI_ELi0EEEvEE12get_impl_ptrclsr3stdE7declvalISI_EEEEv
mov rcx, [rax]
mov rax, qword ptr [rsp+58h+var_10]
mov [rax], rcx
jmp loc_184C52
loc_184B61:
mov rdi, qword ptr [rsp+58h+var_8]; jumptable 0000000000184B2B case 7
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE7get_ptrIPKdTnNSt9enable_ifIXaasr3std10is_pointerIT_EE5valuesr3std8is_constINSt14remove_pointerISI_E4typeEEE5valueEiE4typeELi0EEEDTcldtclL_ZSt7declvalIRKSD_EDTcl9__declvalISI_ELi0EEEvEE12get_impl_ptrclsr3stdE7declvalISI_EEEEv
movsd xmm0, qword ptr [rax]
movsd xmm2, cs:qword_216008
movaps xmm1, xmm0
subsd xmm1, xmm2
cvttsd2si rax, xmm1
cvttsd2si rcx, xmm0
mov rdx, rcx
sar rdx, 3Fh
and rax, rdx
or rcx, rax
mov rax, qword ptr [rsp+58h+var_10]
mov [rax], rcx
jmp loc_184C52
loc_184BA2:
jmp short $+2; jumptable 0000000000184B2B cases 0-4,8,9
def_184B2B:
mov [rsp+58h+var_45], 1; jumptable 0000000000184B2B default case
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov [rsp+58h+var_58], rax; int
mov rdi, qword ptr [rsp+58h+var_8]
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)
mov qword ptr [rsp+58h+var_38], rax; int
lea rsi, aTypeMustBeNumb; "type must be number, but is "
lea rdi, [rsp+58h+var_30]
lea rdx, [rsp+58h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],char const* &&)
jmp short $+2
loc_184BDE:
mov rdi, [rsp+58h+var_58]; int
mov rcx, qword ptr [rsp+58h+var_8]
mov esi, 12Eh
lea rdx, [rsp+58h+var_30]
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
jmp short $+2
loc_184BF8:
mov rdi, [rsp+58h+var_58]; void *
mov [rsp+58h+var_45], 0
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail10type_errorD2Ev; void (*)(void *)
call ___cxa_throw
jmp short loc_184C61
mov rcx, rax
mov eax, edx
mov [rsp+arg_10], rcx
mov [rsp+arg_C], eax
jmp short loc_184C3E
mov rcx, rax
mov eax, edx
mov [rsp+arg_10], rcx
mov [rsp+arg_C], eax
lea rdi, [rsp+arg_20]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_184C3E:
test [rsp+arg_B], 1
jnz short loc_184C47
jmp short loc_184C50
loc_184C47:
mov rdi, [rsp+0]; void *
call ___cxa_free_exception
loc_184C50:
jmp short loc_184C57
loc_184C52:
add rsp, 58h
retn
loc_184C57:
mov rdi, [rsp+arg_10]
call __Unwind_Resume
loc_184C61:
nop word ptr [rax+rax+00000000h]
nop dword ptr [rax+rax+00h]
| long long ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEmTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_(
long long a1,
long long a2)
{
long long v2; // rcx
long long result; // rax
long long v4; // rcx
double v5; // xmm0_8
nlohmann::json_abi_v3_11_3::detail::type_error *exception; // [rsp+0h] [rbp-58h]
int v7[2]; // [rsp+20h] [rbp-38h] BYREF
_BYTE v8[32]; // [rsp+28h] [rbp-30h] BYREF
int v9[2]; // [rsp+48h] [rbp-10h]
char v10[8]; // [rsp+50h] [rbp-8h]
*(_QWORD *)v10 = a1;
*(_QWORD *)v9 = a2;
switch ( 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 nlohmann::json_abi_v3_11_3::detail::value_t(a1) )
{
case 5:
v4 = *(_QWORD *)ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE7get_ptrIPKlTnNSt9enable_ifIXaasr3std10is_pointerIT_EE5valuesr3std8is_constINSt14remove_pointerISI_E4typeEEE5valueEiE4typeELi0EEEDTcldtclL_ZSt7declvalIRKSD_EDTcl9__declvalISI_ELi0EEEvEE12get_impl_ptrclsr3stdE7declvalISI_EEEEv(*(long long *)v10);
result = *(_QWORD *)v9;
**(_QWORD **)v9 = v4;
break;
case 6:
v2 = *(_QWORD *)ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE7get_ptrIPKmTnNSt9enable_ifIXaasr3std10is_pointerIT_EE5valuesr3std8is_constINSt14remove_pointerISI_E4typeEEE5valueEiE4typeELi0EEEDTcldtclL_ZSt7declvalIRKSD_EDTcl9__declvalISI_ELi0EEEvEE12get_impl_ptrclsr3stdE7declvalISI_EEEEv(*(long long *)v10);
result = *(_QWORD *)v9;
**(_QWORD **)v9 = v2;
break;
case 7:
v5 = *(double *)ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE7get_ptrIPKdTnNSt9enable_ifIXaasr3std10is_pointerIT_EE5valuesr3std8is_constINSt14remove_pointerISI_E4typeEEE5valueEiE4typeELi0EEEDTcldtclL_ZSt7declvalIRKSD_EDTcl9__declvalISI_ELi0EEEvEE12get_impl_ptrclsr3stdE7declvalISI_EEEEv(*(long long *)v10);
result = *(_QWORD *)v9;
**(_QWORD **)v9 = (unsigned int)(int)v5;
break;
default:
exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL);
*(_QWORD *)v7 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name(*(_BYTE **)v10);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(
(long long)v8,
(long long)"type must be number, but is ",
(nlohmann::json_abi_v3_11_3::detail **)v7);
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,
(long long)v8,
*(long long *)v10);
__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::type_error::~type_error);
}
return result;
}
| |||
28,172 | void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<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>, unsigned long, 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&, unsigned long&) | monkey531[P]llama/common/json.hpp | void get_arithmetic_value(const BasicJsonType& j, ArithmeticType& val)
{
switch (static_cast<value_t>(j))
{
case value_t::number_unsigned:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>());
break;
}
case value_t::number_integer:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>());
break;
}
case value_t::number_float:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>());
break;
}
case value_t::null:
case value_t::object:
case value_t::array:
case value_t::string:
case value_t::boolean:
case value_t::binary:
case value_t::discarded:
default:
JSON_THROW(type_error::create(302, concat("type must be number, but is ", j.type_name()), &j));
}
} | O2 | cpp | void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<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>, unsigned long, 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&, unsigned long&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %r14
movzbl (%rdi), %eax
cmpl $0x5, %eax
je 0x66440
cmpl $0x7, %eax
je 0x66438
cmpl $0x6, %eax
jne 0x66453
movsd 0x8(%r14), %xmm1
unpcklps 0x4e65e(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x4e666(%rip), %xmm1 # 0xb4a90
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0 # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
jmp 0x66446
movsd 0x8(%r14), %xmm0
jmp 0x66446
cvtsi2sdq 0x8(%r14), %xmm0
movsd %xmm0, (%rsi)
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0x24520
movq %rax, %rbx
movq %r14, %rdi
callq 0x45c5c
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x4f9e7(%rip), %rsi # 0xb5e5c
leaq 0x10(%rsp), %rdi
callq 0x65dbd
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x12e, %esi # imm = 0x12E
movq %r14, %rcx
callq 0x65cd0
xorl %ebp, %ebp
leaq 0x98aa8(%rip), %rsi # 0xfef48
leaq -0x23ba5(%rip), %rdx # 0x42902
movq %rbx, %rdi
callq 0x25150
movq %rax, %r14
leaq 0x10(%rsp), %rdi
callq 0x25478
testb %bpl, %bpl
jne 0x664c6
jmp 0x664ce
movq %rax, %r14
movq %rbx, %rdi
callq 0x247a0
movq %r14, %rdi
callq 0x251e0
| _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_:
push rbp; char
push r14; int
push rbx; int
sub rsp, 30h
mov r14, rdi
movzx eax, byte ptr [rdi]
cmp eax, 5
jz short loc_66440
cmp eax, 7
jz short loc_66438
cmp eax, 6
jnz short loc_66453
movsd xmm1, qword ptr [r14+8]
unpcklps xmm1, cs:xmmword_B4A80
subpd xmm1, cs:xmmword_B4A90
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
jmp short loc_66446
loc_66438:
movsd xmm0, qword ptr [r14+8]
jmp short loc_66446
loc_66440:
cvtsi2sd xmm0, qword ptr [r14+8]
loc_66446:
movsd qword ptr [rsi], xmm0
add rsp, 30h
pop rbx
pop r14
pop rbp
retn
loc_66453:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, [rsp+48h+var_40]
mov [rdx], rax
lea rsi, aTypeMustBeNumb; "type must be number, but is "
lea rdi, [rsp+48h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],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 rdi, [rsp+48h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_664C6
jmp short loc_664CE
mov r14, rax
loc_664C6:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_664CE:
mov rdi, r14
call __Unwind_Resume
| long long ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_(
unsigned __int8 *a1,
double *a2)
{
long long result; // rax
__m128d v3; // xmm1
double v4; // xmm0_8
nlohmann::json_abi_v3_11_3::detail::type_error *exception; // rbx
const char *v6; // [rsp+8h] [rbp-40h] BYREF
_BYTE v7[56]; // [rsp+10h] [rbp-38h] BYREF
result = *a1;
switch ( (_DWORD)result )
{
case 5:
v4 = (double)(int)*((_QWORD *)a1 + 1);
break;
case 7:
v4 = *((double *)a1 + 1);
break;
case 6:
v3 = _mm_sub_pd(
(__m128d)_mm_unpacklo_ps((__m128)*((unsigned long long *)a1 + 1), (__m128)xmmword_B4A80),
(__m128d)xmmword_B4A90);
v4 = _mm_unpackhi_pd(v3, v3).m128d_f64[0] + v3.m128d_f64[0];
break;
default:
exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL);
v6 = 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(a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(
(long long)v7,
(long long)"type must be number, but is ",
&v6);
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,
(long long)v7);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
*a2 = v4;
return result;
}
| _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RDI
MOVZX EAX,byte ptr [RDI]
CMP EAX,0x5
JZ 0x00166440
CMP EAX,0x7
JZ 0x00166438
CMP EAX,0x6
JNZ 0x00166453
MOVSD XMM1,qword ptr [R14 + 0x8]
UNPCKLPS XMM1,xmmword ptr [0x001b4a80]
SUBPD XMM1,xmmword ptr [0x001b4a90]
MOVAPD XMM0,XMM1
UNPCKHPD XMM0,XMM1
ADDSD XMM0,XMM1
JMP 0x00166446
LAB_00166438:
MOVSD XMM0,qword ptr [R14 + 0x8]
JMP 0x00166446
LAB_00166440:
CVTSI2SD XMM0,qword ptr [R14 + 0x8]
LAB_00166446:
MOVSD qword ptr [RSI],XMM0
ADD RSP,0x30
POP RBX
POP R14
POP RBP
RET
LAB_00166453:
PUSH 0x20
POP RDI
CALL 0x00124520
MOV RBX,RAX
MOV RDI,R14
CALL 0x00145c5c
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],RAX
LAB_0016646e:
LEA RSI,[0x1b5e5c]
LEA RDI,[RSP + 0x10]
CALL 0x00165dbd
MOV BPL,0x1
LAB_00166482:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x12e
MOV RCX,R14
CALL 0x00165cd0
XOR EBP,EBP
LEA RSI,[0x1fef48]
LEA RDX,[0x142902]
MOV RDI,RBX
CALL 0x00125150
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_
(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,double *param_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>
bVar1;
int8 uVar2;
double dVar3;
char *local_40;
detail local_38 [32];
bVar1 = *param_1;
if (bVar1 == (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>
)0x5) {
dVar3 = (double)*(long *)(param_1 + 8);
}
else if (bVar1 == (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>
)0x7) {
dVar3 = *(double *)(param_1 + 8);
}
else {
if (bVar1 != (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>
)0x6) {
uVar2 = __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 0016646e to 0016647e has its CatchHandler @ 001664c3 */
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[29],char_const*>
(local_38,"type must be number, but is ",&local_40);
/* try { // try from 00166482 to 001664ae has its CatchHandler @ 001664af */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar2,0x12e,local_38,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
dVar3 = ((double)CONCAT44(_UNK_001b4a84,(int)((ulong)*(int8 *)(param_1 + 8) >> 0x20)) -
_UNK_001b4a98) +
((double)CONCAT44(_DAT_001b4a80,(int)*(int8 *)(param_1 + 8)) - _DAT_001b4a90);
}
*param_2 = dVar3;
return;
}
| |
28,173 | void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<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>, unsigned long, 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&, unsigned long&) | monkey531[P]llama/common/json.hpp | void get_arithmetic_value(const BasicJsonType& j, ArithmeticType& val)
{
switch (static_cast<value_t>(j))
{
case value_t::number_unsigned:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_unsigned_t*>());
break;
}
case value_t::number_integer:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_integer_t*>());
break;
}
case value_t::number_float:
{
val = static_cast<ArithmeticType>(*j.template get_ptr<const typename BasicJsonType::number_float_t*>());
break;
}
case value_t::null:
case value_t::object:
case value_t::array:
case value_t::string:
case value_t::boolean:
case value_t::binary:
case value_t::discarded:
default:
JSON_THROW(type_error::create(302, concat("type must be number, but is ", j.type_name()), &j));
}
} | O3 | cpp | void nlohmann::json_abi_v3_11_3::detail::get_arithmetic_value<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>, unsigned long, 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&, unsigned long&):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rdi, %r14
movzbl (%rdi), %eax
cmpl $0x5, %eax
je 0x89e63
cmpl $0x7, %eax
je 0x89e5b
cmpl $0x6, %eax
jne 0x89e76
movsd 0x8(%r14), %xmm1
unpcklps 0x66c2b(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x66c33(%rip), %xmm1 # 0xf0a80
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0 # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
jmp 0x89e69
movsd 0x8(%r14), %xmm0
jmp 0x89e69
cvtsi2sdq 0x8(%r14), %xmm0
movsd %xmm0, (%rsi)
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl $0x20, %edi
callq 0x1b4f0
movq %rax, %rbx
movq %r14, %rdi
callq 0x6195a
leaq 0x8(%rsp), %rdx
movq %rax, (%rdx)
leaq 0x67fd2(%rip), %rsi # 0xf1e6c
leaq 0x10(%rsp), %rdi
callq 0x89503
movb $0x1, %bpl
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x12e, %esi # imm = 0x12E
movq %r14, %rcx
callq 0x89334
xorl %ebp, %ebp
leaq 0xa2083(%rip), %rsi # 0x12bf48
leaq -0x2c284(%rip), %rdx # 0x5dc48
movq %rbx, %rdi
callq 0x1c150
movq %rax, %r14
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x89ef2
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x1ba20
testb %bpl, %bpl
jne 0x89efc
jmp 0x89f04
movq %rax, %r14
movq %rbx, %rdi
callq 0x1b770
movq %r14, %rdi
callq 0x1c1e0
| _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_:
push rbp; char
push r14; int
push rbx; __int64
sub rsp, 30h
mov r14, rdi
movzx eax, byte ptr [rdi]
cmp eax, 5
jz short loc_89E63
cmp eax, 7
jz short loc_89E5B
cmp eax, 6
jnz short loc_89E76
movsd xmm1, qword ptr [r14+8]
unpcklps xmm1, cs:xmmword_F0A70
subpd xmm1, cs:xmmword_F0A80
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
jmp short loc_89E69
loc_89E5B:
movsd xmm0, qword ptr [r14+8]
jmp short loc_89E69
loc_89E63:
cvtsi2sd xmm0, qword ptr [r14+8]
loc_89E69:
movsd qword ptr [rsi], xmm0
add rsp, 30h
pop rbx
pop r14
pop rbp
retn
loc_89E76:
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, aTypeMustBeNumb; "type must be number, but is "
lea rdi, [rsp+48h+var_38]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA29_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(char const(&)[29],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_89EF2
mov rsi, [rsp+48h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_89EF2:
test bpl, bpl
jnz short loc_89EFC
jmp short loc_89F04
mov r14, rax
loc_89EFC:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_89F04:
mov rdi, r14
call __Unwind_Resume
| long long ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_(
unsigned __int8 *a1,
double *a2)
{
long long result; // rax
__m128d v3; // xmm1
double v4; // xmm0_8
nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx
const char *v6; // [rsp+8h] [rbp-40h] BYREF
_QWORD v7[2]; // [rsp+10h] [rbp-38h] BYREF
result = *a1;
switch ( (_DWORD)result )
{
case 5:
v4 = (double)(int)*((_QWORD *)a1 + 1);
break;
case 7:
v4 = *((double *)a1 + 1);
break;
case 6:
v3 = _mm_sub_pd(
(__m128d)_mm_unpacklo_ps((__m128)*((unsigned long long *)a1 + 1), (__m128)xmmword_F0A70),
(__m128d)xmmword_F0A80);
v4 = _mm_unpackhi_pd(v3, v3).m128d_f64[0] + v3.m128d_f64[0];
break;
default:
exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL);
v6 = 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(a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[29],char const*>(
(long long)v7,
(long long)"type must be number, but is ",
&v6);
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,
v7);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
*a2 = v4;
return result;
}
| _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RDI
MOVZX EAX,byte ptr [RDI]
CMP EAX,0x5
JZ 0x00189e63
CMP EAX,0x7
JZ 0x00189e5b
CMP EAX,0x6
JNZ 0x00189e76
MOVSD XMM1,qword ptr [R14 + 0x8]
UNPCKLPS XMM1,xmmword ptr [0x001f0a70]
SUBPD XMM1,xmmword ptr [0x001f0a80]
MOVAPD XMM0,XMM1
UNPCKHPD XMM0,XMM1
ADDSD XMM0,XMM1
JMP 0x00189e69
LAB_00189e5b:
MOVSD XMM0,qword ptr [R14 + 0x8]
JMP 0x00189e69
LAB_00189e63:
CVTSI2SD XMM0,qword ptr [R14 + 0x8]
LAB_00189e69:
MOVSD qword ptr [RSI],XMM0
ADD RSP,0x30
POP RBX
POP R14
POP RBP
RET
LAB_00189e76:
MOV EDI,0x20
CALL 0x0011b4f0
MOV RBX,RAX
MOV RDI,R14
CALL 0x0016195a
LEA RDX,[RSP + 0x8]
MOV qword ptr [RDX],RAX
LAB_00189e93:
LEA RSI,[0x1f1e6c]
LEA RDI,[RSP + 0x10]
CALL 0x00189503
MOV BPL,0x1
LAB_00189ea7:
LEA RDX,[RSP + 0x10]
MOV RDI,RBX
MOV ESI,0x12e
MOV RCX,R14
CALL 0x00189334
XOR EBP,EBP
LEA RSI,[0x22bf48]
LEA RDX,[0x15dc48]
MOV RDI,RBX
CALL 0x0011c150
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void _ZN8nlohmann16json_abi_v3_11_36detail20get_arithmetic_valueINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEdTnNSt9enable_ifIXaasr3std13is_arithmeticIT0_EE5valuentsr3std7is_sameISH_NT_9boolean_tEEE5valueEiE4typeELi0EEEvRKSI_RSH_
(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,double *param_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>
bVar1;
int8 uVar2;
double dVar3;
char *local_40;
detail local_38 [32];
bVar1 = *param_1;
if (bVar1 == (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>
)0x5) {
dVar3 = (double)*(long *)(param_1 + 8);
}
else if (bVar1 == (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>
)0x7) {
dVar3 = *(double *)(param_1 + 8);
}
else {
if (bVar1 != (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>
)0x6) {
uVar2 = __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 00189e93 to 00189ea3 has its CatchHandler @ 00189ef9 */
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[29],char_const*>
(local_38,"type must be number, but is ",&local_40);
/* try { // try from 00189ea7 to 00189ed3 has its CatchHandler @ 00189ed4 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar2,0x12e,local_38,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
dVar3 = ((double)CONCAT44(_UNK_001f0a74,(int)((ulong)*(int8 *)(param_1 + 8) >> 0x20)) -
_UNK_001f0a88) +
((double)CONCAT44(_DAT_001f0a70,(int)*(int8 *)(param_1 + 8)) - _DAT_001f0a80);
}
*param_2 = dVar3;
return;
}
| |
28,174 | common_chat_format_single[abi:cxx11](minja::chat_template const&, std::vector<common_chat_msg, std::allocator<common_chat_msg>> const&, common_chat_msg const&, bool, bool) | monkey531[P]llama/common/common.cpp | std::string common_chat_format_single(
const common_chat_template & tmpl,
const std::vector<common_chat_msg> & past_msg,
const common_chat_msg & new_msg,
bool add_ass,
bool use_jinja) {
std::ostringstream ss;
auto fmt_past_msg = past_msg.empty() ? "" : common_chat_apply_template(tmpl, past_msg, false, use_jinja);
std::vector<common_chat_msg> chat_new(past_msg);
// if the past_msg ends with a newline, we must preserve it in the formatted version
if (add_ass && !fmt_past_msg.empty() && fmt_past_msg.back() == '\n') {
ss << "\n";
};
// format chat with new_msg
chat_new.push_back(new_msg);
auto fmt_new_msg = common_chat_apply_template(tmpl, chat_new, add_ass, use_jinja);
// get the diff part
ss << fmt_new_msg.substr(fmt_past_msg.size(), fmt_new_msg.size() - fmt_past_msg.size());
return ss.str();
} | O0 | cpp | common_chat_format_single[abi:cxx11](minja::chat_template const&, std::vector<common_chat_msg, std::allocator<common_chat_msg>> const&, common_chat_msg const&, bool, bool):
subq $0x288, %rsp # imm = 0x288
movl %r8d, 0x2c(%rsp)
movq %rcx, %rax
movl 0x2c(%rsp), %ecx
movq %rax, 0x30(%rsp)
movq %rdx, %rax
movq 0x30(%rsp), %rdx
movq %rax, 0x38(%rsp)
movq %rsi, %rax
movq 0x38(%rsp), %rsi
movq %rax, 0x40(%rsp)
movq %rdi, %r8
movq 0x40(%rsp), %rdi
movq %r8, 0x48(%rsp)
movb %r9b, %al
movq %r8, %r9
movq %r9, 0x50(%rsp)
movq %r8, 0x280(%rsp)
movq %rdi, 0x278(%rsp)
movq %rsi, 0x270(%rsp)
movq %rdx, 0x268(%rsp)
andb $0x1, %cl
movb %cl, 0x267(%rsp)
andb $0x1, %al
movb %al, 0x266(%rsp)
leaq 0xe8(%rsp), %rdi
callq 0x5b150
movq 0x270(%rsp), %rdi
callq 0x104d50
movb $0x0, 0xc6(%rsp)
testb $0x1, %al
jne 0xf5da5
jmp 0xf5ddc
leaq 0xc7(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x5b180
movq 0x20(%rsp), %rdx
movb $0x1, 0xc6(%rsp)
leaq 0x11473c(%rip), %rsi # 0x20a507
leaq 0xc8(%rsp), %rdi
callq 0x65530
jmp 0xf5dda
jmp 0xf5e0c
movq 0x278(%rsp), %rsi
movq 0x270(%rsp), %rdx
movzbl 0x266(%rsp), %r8d
andl $0x1, %r8d
leaq 0xc8(%rsp), %rdi
xorl %ecx, %ecx
callq 0xf50d0
jmp 0xf5e0a
jmp 0xf5e0c
testb $0x1, 0xc6(%rsp)
jne 0xf5e18
jmp 0xf5e25
leaq 0xc7(%rsp), %rdi
callq 0x5b620
movq 0x270(%rsp), %rsi
leaq 0x98(%rsp), %rdi
callq 0x104da0
jmp 0xf5e3c
testb $0x1, 0x267(%rsp)
je 0xf5ef0
leaq 0xc8(%rsp), %rdi
callq 0x5a4e0
testb $0x1, %al
jne 0xf5ef0
leaq 0xc8(%rsp), %rdi
callq 0x5b1f0
movsbl (%rax), %eax
cmpl $0xa, %eax
jne 0xf5ef0
leaq 0x11468b(%rip), %rsi # 0x20a506
leaq 0xe8(%rsp), %rdi
callq 0x5aa60
jmp 0xf5e8a
jmp 0xf5ef0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb8(%rsp)
movl %eax, 0xb4(%rsp)
testb $0x1, 0xc6(%rsp)
jne 0xf5eac
jmp 0xf5eb9
leaq 0xc7(%rsp), %rdi
callq 0x5b620
jmp 0xf6054
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb8(%rsp)
movl %eax, 0xb4(%rsp)
jmp 0xf6047
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb8(%rsp)
movl %eax, 0xb4(%rsp)
jmp 0xf603a
movq 0x268(%rsp), %rsi
leaq 0x98(%rsp), %rdi
callq 0x104ea0
jmp 0xf5f07
movq 0x278(%rsp), %rsi
movzbl 0x266(%rsp), %r8d
movzbl 0x267(%rsp), %ecx
andl $0x1, %ecx
andl $0x1, %r8d
leaq 0x78(%rsp), %rdi
leaq 0x98(%rsp), %rdx
callq 0xf50d0
jmp 0xf5f3b
leaq 0xc8(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x5a520
movq %rax, 0x18(%rsp)
leaq 0x78(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x5a520
movq (%rsp), %rdi
movq %rax, 0x8(%rsp)
callq 0x5a520
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
subq %rax, %rcx
leaq 0x58(%rsp), %rdi
callq 0x5b1e0
jmp 0xf5f8c
leaq 0xe8(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x5a540
jmp 0xf5fa0
leaq 0x58(%rsp), %rdi
callq 0x5b648
movq 0x48(%rsp), %rdi
leaq 0xe8(%rsp), %rsi
callq 0x5b520
jmp 0xf5fbe
leaq 0x78(%rsp), %rdi
callq 0x5b648
leaq 0x98(%rsp), %rdi
callq 0x104f10
leaq 0xc8(%rsp), %rdi
callq 0x5b648
leaq 0xe8(%rsp), %rdi
callq 0x5b070
movq 0x50(%rsp), %rax
addq $0x288, %rsp # imm = 0x288
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb8(%rsp)
movl %eax, 0xb4(%rsp)
jmp 0xf6030
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xb8(%rsp)
movl %eax, 0xb4(%rsp)
leaq 0x58(%rsp), %rdi
callq 0x5b648
leaq 0x78(%rsp), %rdi
callq 0x5b648
leaq 0x98(%rsp), %rdi
callq 0x104f10
leaq 0xc8(%rsp), %rdi
callq 0x5b648
leaq 0xe8(%rsp), %rdi
callq 0x5b070
movq 0xb8(%rsp), %rdi
callq 0x5ac00
nop
| _Z25common_chat_format_singleB5cxx11RKN5minja13chat_templateERKSt6vectorI15common_chat_msgSaIS4_EERKS4_bb:
sub rsp, 288h
mov [rsp+288h+var_25C], r8d
mov rax, rcx
mov ecx, [rsp+288h+var_25C]
mov qword ptr [rsp+288h+var_258], rax; int
mov rax, rdx
mov rdx, qword ptr [rsp+288h+var_258]
mov qword ptr [rsp+288h+var_250], rax; int
mov rax, rsi
mov rsi, qword ptr [rsp+288h+var_250]
mov qword ptr [rsp+288h+var_248], rax; int
mov r8, rdi
mov rdi, qword ptr [rsp+288h+var_248]
mov qword ptr [rsp+288h+var_240], r8; int
mov al, r9b
mov r9, r8
mov qword ptr [rsp+288h+var_238], r9; int
mov qword ptr [rsp+288h+var_8], r8; int
mov qword ptr [rsp+288h+var_10], rdi; int
mov qword ptr [rsp+288h+var_18], rsi; int
mov qword ptr [rsp+288h+var_20], rdx; int
and cl, 1
mov [rsp+288h+var_21], cl
and al, 1
mov [rsp+288h+var_22], al
lea rdi, [rsp+288h+var_1A0]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void)
mov rdi, qword ptr [rsp+288h+var_18]
call _ZNKSt6vectorI15common_chat_msgSaIS0_EE5emptyEv; std::vector<common_chat_msg>::empty(void)
mov [rsp+288h+var_1C2], 0
test al, 1
jnz short loc_F5DA5
jmp short loc_F5DDC
loc_F5DA5:
lea rdi, [rsp+288h+var_1C1]
mov qword ptr [rsp+288h+var_268], rdi; int
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, qword ptr [rsp+288h+var_268]
mov [rsp+288h+var_1C2], 1
lea rsi, aInfillMode+1Ch; ""
lea rdi, [rsp+288h+var_1C1+1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_F5DDA:
jmp short loc_F5E0C
loc_F5DDC:
mov rsi, qword ptr [rsp+288h+var_10]; int
mov rdx, qword ptr [rsp+288h+var_18]; int
movzx r8d, [rsp+288h+var_22]
and r8d, 1; int
lea rdi, [rsp+288h+var_1C1+1]; int
xor ecx, ecx; int
call _Z26common_chat_apply_templateB5cxx11RKN5minja13chat_templateERKSt6vectorI15common_chat_msgSaIS4_EEbb; common_chat_apply_template(minja::chat_template const&,std::vector<common_chat_msg> const&,bool,bool)
jmp short $+2
loc_F5E0A:
jmp short $+2
loc_F5E0C:
test [rsp+288h+var_1C2], 1
jnz short loc_F5E18
jmp short loc_F5E25
loc_F5E18:
lea rdi, [rsp+288h+var_1C1]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
loc_F5E25:
mov rsi, qword ptr [rsp+288h+var_18]
lea rdi, [rsp+288h+var_1F0]
call _ZNSt6vectorI15common_chat_msgSaIS0_EEC2ERKS2_; std::vector<common_chat_msg>::vector(std::vector<common_chat_msg> const&)
jmp short $+2
loc_F5E3C:
test [rsp+288h+var_21], 1
jz loc_F5EF0
lea rdi, [rsp+288h+var_1C1+1]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
test al, 1
jnz loc_F5EF0
lea rdi, [rsp+288h+var_1C1+1]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4backEv; std::string::back(void)
movsx eax, byte ptr [rax]
cmp eax, 0Ah
jnz short loc_F5EF0
lea rsi, aInfillMode+1Bh; "\n"
lea rdi, [rsp+288h+var_1A0]
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
jmp short $+2
loc_F5E8A:
jmp short loc_F5EF0
mov rcx, rax
mov eax, edx
mov [rsp+arg_B0], rcx
mov [rsp+arg_AC], eax
test [rsp+arg_BE], 1
jnz short loc_F5EAC
jmp short loc_F5EB9
loc_F5EAC:
lea rdi, [rsp+arg_BF]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
loc_F5EB9:
jmp loc_F6054
mov rcx, rax
mov eax, edx
mov [rsp+arg_B0], rcx
mov [rsp+arg_AC], eax
jmp loc_F6047
mov rcx, rax
mov eax, edx
mov [rsp+arg_B0], rcx
mov [rsp+arg_AC], eax
jmp loc_F603A
loc_F5EF0:
mov rsi, qword ptr [rsp+288h+var_20]
lea rdi, [rsp+288h+var_1F0]
call _ZNSt6vectorI15common_chat_msgSaIS0_EE9push_backERKS0_; std::vector<common_chat_msg>::push_back(common_chat_msg const&)
jmp short $+2
loc_F5F07:
mov rsi, qword ptr [rsp+288h+var_10]; int
movzx r8d, [rsp+288h+var_22]
movzx ecx, [rsp+288h+var_21]
and ecx, 1; int
and r8d, 1; int
lea rdi, [rsp+288h+var_210]; int
lea rdx, [rsp+288h+var_1F0]; int
call _Z26common_chat_apply_templateB5cxx11RKN5minja13chat_templateERKSt6vectorI15common_chat_msgSaIS4_EEbb; common_chat_apply_template(minja::chat_template const&,std::vector<common_chat_msg> const&,bool,bool)
jmp short $+2
loc_F5F3B:
lea rdi, [rsp+288h+var_1C1+1]
mov [rsp+288h+var_288], rdi
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void)
mov [rsp+288h+var_270], rax
lea rdi, [rsp+288h+var_210]
mov [rsp+288h+var_278], rdi
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void)
mov rdi, [rsp+288h+var_288]
mov [rsp+288h+var_280], rax
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void)
mov rcx, [rsp+288h+var_280]
mov rsi, [rsp+288h+var_278]
mov rdx, [rsp+288h+var_270]
sub rcx, rax
lea rdi, [rsp+288h+var_230]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
jmp short $+2
loc_F5F8C:
lea rdi, [rsp+288h+var_1A0]
lea rsi, [rsp+288h+var_230]
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
jmp short $+2
loc_F5FA0:
lea rdi, [rsp+288h+var_230]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rdi, qword ptr [rsp+288h+var_240]
lea rsi, [rsp+288h+var_1A0]
call __ZNKSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEE3strEv; std::ostringstream::str(void)
jmp short $+2
loc_F5FBE:
lea rdi, [rsp+288h+var_210]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+288h+var_1F0]
call _ZNSt6vectorI15common_chat_msgSaIS0_EED2Ev; std::vector<common_chat_msg>::~vector()
lea rdi, [rsp+288h+var_1C1+1]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+288h+var_1A0]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream()
mov rax, qword ptr [rsp+288h+var_238]
add rsp, 288h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_B0], rcx
mov [rsp+arg_AC], eax
jmp short loc_F6030
mov rcx, rax
mov eax, edx
mov [rsp+arg_B0], rcx
mov [rsp+arg_AC], eax
lea rdi, [rsp+arg_50]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_F6030:
lea rdi, [rsp+arg_70]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_F603A:
lea rdi, [rsp+arg_90]
call _ZNSt6vectorI15common_chat_msgSaIS0_EED2Ev; std::vector<common_chat_msg>::~vector()
loc_F6047:
lea rdi, [rsp+arg_C0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_F6054:
lea rdi, [rsp+arg_E0]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream()
mov rdi, [rsp+arg_B0]
call __Unwind_Resume
| long long common_chat_format_single[abi:cxx11](
long long a1,
long long a2,
long long a3,
long long a4,
char a5,
char a6)
{
int v6; // edx
int v7; // ecx
int v8; // r8d
int v9; // r9d
long long v10; // rax
long long v12; // [rsp+8h] [rbp-280h]
long long v13; // [rsp+18h] [rbp-270h]
_BYTE v14[32]; // [rsp+58h] [rbp-230h] BYREF
int v15[8]; // [rsp+78h] [rbp-210h] BYREF
int v16[11]; // [rsp+98h] [rbp-1F0h] BYREF
char v17; // [rsp+C6h] [rbp-1C2h]
int v18[8]; // [rsp+C7h] [rbp-1C1h] BYREF
_BYTE v19[382]; // [rsp+E8h] [rbp-1A0h] BYREF
char v20; // [rsp+266h] [rbp-22h]
char v21; // [rsp+267h] [rbp-21h]
int v22[2]; // [rsp+268h] [rbp-20h]
int v23[2]; // [rsp+270h] [rbp-18h]
int v24[2]; // [rsp+278h] [rbp-10h]
int v25[2]; // [rsp+280h] [rbp-8h]
*(_QWORD *)v25 = a1;
*(_QWORD *)v24 = a2;
*(_QWORD *)v23 = a3;
*(_QWORD *)v22 = a4;
v21 = a5 & 1;
v20 = a6 & 1;
std::ostringstream::basic_ostringstream(v19);
v17 = 0;
if ( (std::vector<common_chat_msg>::empty(*(_QWORD *)v23) & 1) != 0 )
{
std::allocator<char>::allocator();
v17 = 1;
std::string::basic_string<std::allocator<char>>((long long)v18 + 1, (long long)"", (long long)v18);
}
else
{
common_chat_apply_template[abi:cxx11]((long long)v18 + 1, *(common_chat_inputs **)v24, *(long long *)v23, 0, v20 & 1);
}
if ( (v17 & 1) != 0 )
std::allocator<char>::~allocator(v18);
std::vector<common_chat_msg>::vector((unsigned int)v16, v23[0], v6, v7, v8, v9);
if ( (v21 & 1) != 0
&& (std::string::empty((char *)v18 + 1) & 1) == 0
&& *(_BYTE *)std::string::back((char *)v18 + 1) == 10 )
{
std::operator<<<std::char_traits<char>>(v19, "\n");
}
std::vector<common_chat_msg>::push_back(v16, *(_QWORD *)v22);
common_chat_apply_template[abi:cxx11]((long long)v15, *(common_chat_inputs **)v24, (long long)v16, v21 & 1, v20 & 1);
v13 = std::string::size((char *)v18 + 1);
v12 = std::string::size(v15);
v10 = std::string::size((char *)v18 + 1);
std::string::substr(v14, v15, v13, v12 - v10);
std::operator<<<char>(v19, v14);
std::string::~string(v14);
std::ostringstream::str(a1, v19);
std::string::~string(v15);
std::vector<common_chat_msg>::~vector(v16);
std::string::~string((char *)v18 + 1);
std::ostringstream::~ostringstream(v19);
return a1;
}
| common_chat_format_single[abi:cxx11]:
SUB RSP,0x288
MOV dword ptr [RSP + 0x2c],R8D
MOV RAX,RCX
MOV ECX,dword ptr [RSP + 0x2c]
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,RDX
MOV RDX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,RSI
MOV RSI,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x40],RAX
MOV R8,RDI
MOV RDI,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x48],R8
MOV AL,R9B
MOV R9,R8
MOV qword ptr [RSP + 0x50],R9
MOV qword ptr [RSP + 0x280],R8
MOV qword ptr [RSP + 0x278],RDI
MOV qword ptr [RSP + 0x270],RSI
MOV qword ptr [RSP + 0x268],RDX
AND CL,0x1
MOV byte ptr [RSP + 0x267],CL
AND AL,0x1
MOV byte ptr [RSP + 0x266],AL
LEA RDI,[RSP + 0xe8]
CALL 0x0015b150
MOV RDI,qword ptr [RSP + 0x270]
CALL 0x00204d50
MOV byte ptr [RSP + 0xc6],0x0
TEST AL,0x1
JNZ 0x001f5da5
JMP 0x001f5ddc
LAB_001f5da5:
LEA RDI,[RSP + 0xc7]
MOV qword ptr [RSP + 0x20],RDI
CALL 0x0015b180
MOV RDX,qword ptr [RSP + 0x20]
MOV byte ptr [RSP + 0xc6],0x1
LAB_001f5dc4:
LEA RSI,[0x30a507]
LEA RDI,[RSP + 0xc8]
CALL 0x00165530
JMP 0x001f5dda
LAB_001f5dda:
JMP 0x001f5e0c
LAB_001f5ddc:
MOV RSI,qword ptr [RSP + 0x278]
MOV RDX,qword ptr [RSP + 0x270]
MOVZX R8D,byte ptr [RSP + 0x266]
AND R8D,0x1
LEA RDI,[RSP + 0xc8]
XOR ECX,ECX
CALL 0x001f50d0
JMP 0x001f5e0a
LAB_001f5e0a:
JMP 0x001f5e0c
LAB_001f5e0c:
TEST byte ptr [RSP + 0xc6],0x1
JNZ 0x001f5e18
JMP 0x001f5e25
LAB_001f5e18:
LEA RDI,[RSP + 0xc7]
CALL 0x0015b620
LAB_001f5e25:
MOV RSI,qword ptr [RSP + 0x270]
LAB_001f5e2d:
LEA RDI,[RSP + 0x98]
CALL 0x00204da0
JMP 0x001f5e3c
LAB_001f5e3c:
TEST byte ptr [RSP + 0x267],0x1
JZ 0x001f5ef0
LEA RDI,[RSP + 0xc8]
CALL 0x0015a4e0
TEST AL,0x1
JNZ 0x001f5ef0
LEA RDI,[RSP + 0xc8]
CALL 0x0015b1f0
MOVSX EAX,byte ptr [RAX]
CMP EAX,0xa
JNZ 0x001f5ef0
LAB_001f5e74:
LEA RSI,[0x30a506]
LEA RDI,[RSP + 0xe8]
CALL 0x0015aa60
JMP 0x001f5e8a
LAB_001f5e8a:
JMP 0x001f5ef0
LAB_001f5ef0:
MOV RSI,qword ptr [RSP + 0x268]
LEA RDI,[RSP + 0x98]
CALL 0x00204ea0
JMP 0x001f5f07
LAB_001f5f07:
MOV RSI,qword ptr [RSP + 0x278]
MOVZX R8D,byte ptr [RSP + 0x266]
MOVZX ECX,byte ptr [RSP + 0x267]
AND ECX,0x1
AND R8D,0x1
LEA RDI,[RSP + 0x78]
LEA RDX,[RSP + 0x98]
CALL 0x001f50d0
JMP 0x001f5f3b
LAB_001f5f3b:
LEA RDI,[RSP + 0xc8]
MOV qword ptr [RSP],RDI
CALL 0x0015a520
MOV qword ptr [RSP + 0x18],RAX
LEA RDI,[RSP + 0x78]
MOV qword ptr [RSP + 0x10],RDI
CALL 0x0015a520
MOV RDI,qword ptr [RSP]
MOV qword ptr [RSP + 0x8],RAX
CALL 0x0015a520
MOV RCX,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x18]
SUB RCX,RAX
LAB_001f5f80:
LEA RDI,[RSP + 0x58]
CALL 0x0015b1e0
JMP 0x001f5f8c
LAB_001f5f8c:
LEA RDI,[RSP + 0xe8]
LEA RSI,[RSP + 0x58]
CALL 0x0015a540
JMP 0x001f5fa0
LAB_001f5fa0:
LEA RDI,[RSP + 0x58]
CALL 0x0015b648
MOV RDI,qword ptr [RSP + 0x48]
LAB_001f5faf:
LEA RSI,[RSP + 0xe8]
CALL 0x0015b520
LAB_001f5fbc:
JMP 0x001f5fbe
LAB_001f5fbe:
LEA RDI,[RSP + 0x78]
CALL 0x0015b648
LEA RDI,[RSP + 0x98]
CALL 0x00204f10
LEA RDI,[RSP + 0xc8]
CALL 0x0015b648
LEA RDI,[RSP + 0xe8]
CALL 0x0015b070
MOV RAX,qword ptr [RSP + 0x50]
ADD RSP,0x288
RET
|
/* common_chat_format_single[abi:cxx11](minja::chat_template const&, std::vector<common_chat_msg,
std::allocator<common_chat_msg> > const&, common_chat_msg const&, bool, bool) */
chat_template *
common_chat_format_single_abi_cxx11_
(chat_template *param_1,vector *param_2,common_chat_msg *param_3,bool param_4,bool param_5
)
{
ulong uVar1;
char *pcVar2;
int7 in_register_00000009;
byte in_R9B;
string local_230 [32];
chat_template local_210 [32];
vector<common_chat_msg,std::allocator<common_chat_msg>> local_1f0 [46];
byte local_1c2;
allocator local_1c1;
string local_1c0 [32];
ostringstream local_1a0 [382];
byte local_22;
byte local_21;
common_chat_msg *local_20;
vector<common_chat_msg,std::allocator<common_chat_msg>> *local_18;
vector *local_10;
chat_template *local_8;
local_20 = (common_chat_msg *)CONCAT71(in_register_00000009,param_4);
local_22 = in_R9B & 1;
local_21 = param_5;
local_18 = (vector<common_chat_msg,std::allocator<common_chat_msg>> *)param_3;
local_10 = param_2;
local_8 = param_1;
std::__cxx11::ostringstream::ostringstream(local_1a0);
uVar1 = std::vector<common_chat_msg,std::allocator<common_chat_msg>>::empty(local_18);
local_1c2 = 0;
if ((uVar1 & 1) == 0) {
common_chat_apply_template_abi_cxx11_
((chat_template *)local_1c0,local_10,SUB81(local_18,0),false);
}
else {
std::allocator<char>::allocator();
local_1c2 = 1;
/* try { // try from 001f5dc4 to 001f5e07 has its CatchHandler @ 001f5e8c */
std::__cxx11::string::string<std::allocator<char>>(local_1c0,"",&local_1c1);
}
if ((local_1c2 & 1) != 0) {
std::allocator<char>::~allocator((allocator<char> *)&local_1c1);
}
/* try { // try from 001f5e2d to 001f5e39 has its CatchHandler @ 001f5ebe */
std::vector<common_chat_msg,std::allocator<common_chat_msg>>::vector(local_1f0,(vector *)local_18)
;
if ((((local_21 & 1) != 0) && (uVar1 = std::__cxx11::string::empty(), (uVar1 & 1) == 0)) &&
(pcVar2 = (char *)std::__cxx11::string::back(), *pcVar2 == '\n')) {
/* try { // try from 001f5e74 to 001f5f38 has its CatchHandler @ 001f5ed7 */
std::operator<<((ostream *)local_1a0,"\n");
}
std::vector<common_chat_msg,std::allocator<common_chat_msg>>::push_back(local_1f0,local_20);
common_chat_apply_template_abi_cxx11_(local_210,local_10,SUB81(local_1f0,0),(bool)(local_21 & 1));
std::__cxx11::string::size();
std::__cxx11::string::size();
std::__cxx11::string::size();
/* try { // try from 001f5f80 to 001f5f89 has its CatchHandler @ 001f5ffc */
std::__cxx11::string::substr((ulong)local_230,(ulong)local_210);
/* try { // try from 001f5f8c to 001f5f9d has its CatchHandler @ 001f6012 */
std::operator<<((ostream *)local_1a0,local_230);
std::__cxx11::string::~string(local_230);
/* try { // try from 001f5faf to 001f5fbb has its CatchHandler @ 001f5ffc */
std::__cxx11::ostringstream::str();
std::__cxx11::string::~string((string *)local_210);
std::vector<common_chat_msg,std::allocator<common_chat_msg>>::~vector(local_1f0);
std::__cxx11::string::~string(local_1c0);
std::__cxx11::ostringstream::~ostringstream(local_1a0);
return param_1;
}
| |
28,175 | mi_ck_write_btree | eloqsql/storage/myisam/mi_write.c | int _mi_ck_write_btree(register MI_INFO *info, uint keynr, uchar *key,
uint key_length)
{
int error;
uint comp_flag;
MI_KEYDEF *keyinfo=info->s->keyinfo+keynr;
my_off_t *root=&info->s->state.key_root[keynr];
DBUG_ENTER("_mi_ck_write_btree");
if (keyinfo->flag & HA_SORT_ALLOWS_SAME)
comp_flag=SEARCH_BIGGER; /* Put after same key */
else if (keyinfo->flag & (HA_NOSAME|HA_FULLTEXT))
{
comp_flag=SEARCH_FIND | SEARCH_UPDATE | SEARCH_INSERT; /* No duplicates */
if (keyinfo->flag & HA_NULL_ARE_EQUAL)
comp_flag|= SEARCH_NULL_ARE_EQUAL;
}
else
comp_flag=SEARCH_SAME; /* Keys in rec-pos order */
error=_mi_ck_real_write_btree(info, keyinfo, key, key_length,
root, comp_flag);
if (info->ft1_to_ft2)
{
if (!error)
error= _mi_ft_convert_to_ft2(info, keynr, key);
delete_dynamic(info->ft1_to_ft2);
my_free(info->ft1_to_ft2);
info->ft1_to_ft2=0;
}
DBUG_RETURN(error);
} | O3 | c | mi_ck_write_btree:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %rbx
movq (%rdi), %rdx
movq 0x218(%rdx), %rax
movl %esi, %r8d
imulq $0x70, %r8, %rdi
leaq (%rax,%rdi), %rsi
shlq $0x3, %r8
movzwl 0xa(%rax,%rdi), %eax
movl $0x8, %r9d
addq 0x98(%rdx), %r8
btl $0x9, %eax
jb 0x87eec
testb $-0x7f, %al
je 0x87ee6
andl $0x800, %eax # imm = 0x800
shll $0x4, %eax
orl $0x20041, %eax # imm = 0x20041
movl %eax, %r9d
jmp 0x87eec
movl $0x4, %r9d
movq %rbx, %rdi
movq %r14, %rdx
callq 0x87f4b
movl %eax, %r12d
movq 0x88(%rbx), %rdi
testq %rdi, %rdi
je 0x87f3f
testl %r12d, %r12d
jne 0x87f23
movq %rbx, %rdi
movl %r15d, %esi
movq %r14, %rdx
callq 0x743f7
movl %eax, %r12d
movq 0x88(%rbx), %rdi
callq 0x919ec
movq 0x88(%rbx), %rdi
callq 0x9fbaa
movq $0x0, 0x88(%rbx)
movl %r12d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| _mi_ck_write_btree:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov r14, rdx
mov r15d, esi
mov rbx, rdi
mov rdx, [rdi]
mov rax, [rdx+218h]
mov r8d, esi
imul rdi, r8, 70h ; 'p'
lea rsi, [rax+rdi]
shl r8, 3
movzx eax, word ptr [rax+rdi+0Ah]
mov r9d, 8
add r8, [rdx+98h]
bt eax, 9
jb short loc_87EEC
test al, 81h
jz short loc_87EE6
and eax, 800h
shl eax, 4
or eax, 20041h
mov r9d, eax
jmp short loc_87EEC
loc_87EE6:
mov r9d, 4
loc_87EEC:
mov rdi, rbx
mov rdx, r14
call _mi_ck_real_write_btree
mov r12d, eax
mov rdi, [rbx+88h]
test rdi, rdi
jz short loc_87F3F
test r12d, r12d
jnz short loc_87F23
mov rdi, rbx
mov esi, r15d
mov rdx, r14
call _mi_ft_convert_to_ft2
mov r12d, eax
mov rdi, [rbx+88h]
loc_87F23:
call delete_dynamic
mov rdi, [rbx+88h]
call my_free
mov qword ptr [rbx+88h], 0
loc_87F3F:
mov eax, r12d
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long mi_ck_write_btree(long long *a1, unsigned int a2, unsigned __int8 *a3, long long a4)
{
long long v7; // r8
long long v8; // rsi
__int16 v9; // ax
long long v10; // r9
long long v11; // r8
unsigned int v12; // r12d
long long v13; // rdi
v7 = a2;
v8 = *(_QWORD *)(*a1 + 536) + 112LL * a2;
v9 = *(_WORD *)(v8 + 10);
v10 = 8LL;
v11 = *(_QWORD *)(*a1 + 152) + 8 * v7;
if ( (v9 & 0x200) == 0 )
{
if ( (v9 & 0x81) != 0 )
v10 = (16 * (v9 & 0x800)) | 0x20041u;
else
v10 = 4LL;
}
v12 = mi_ck_real_write_btree(a1, v8, a3, a4, v11, v10);
v13 = a1[17];
if ( v13 )
{
if ( !v12 )
{
v12 = mi_ft_convert_to_ft2(a1, a2, a3);
v13 = a1[17];
}
delete_dynamic(v13);
my_free(a1[17]);
a1[17] = 0LL;
}
return v12;
}
| _mi_ck_write_btree:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R14,RDX
MOV R15D,ESI
MOV RBX,RDI
MOV RDX,qword ptr [RDI]
MOV RAX,qword ptr [RDX + 0x218]
MOV R8D,ESI
IMUL RDI,R8,0x70
LEA RSI,[RAX + RDI*0x1]
SHL R8,0x3
MOVZX EAX,word ptr [RAX + RDI*0x1 + 0xa]
MOV R9D,0x8
ADD R8,qword ptr [RDX + 0x98]
BT EAX,0x9
JC 0x00187eec
TEST AL,0x81
JZ 0x00187ee6
AND EAX,0x800
SHL EAX,0x4
OR EAX,0x20041
MOV R9D,EAX
JMP 0x00187eec
LAB_00187ee6:
MOV R9D,0x4
LAB_00187eec:
MOV RDI,RBX
MOV RDX,R14
CALL 0x00187f4b
MOV R12D,EAX
MOV RDI,qword ptr [RBX + 0x88]
TEST RDI,RDI
JZ 0x00187f3f
TEST R12D,R12D
JNZ 0x00187f23
MOV RDI,RBX
MOV ESI,R15D
MOV RDX,R14
CALL 0x001743f7
MOV R12D,EAX
MOV RDI,qword ptr [RBX + 0x88]
LAB_00187f23:
CALL 0x001919ec
MOV RDI,qword ptr [RBX + 0x88]
CALL 0x0019fbaa
MOV qword ptr [RBX + 0x88],0x0
LAB_00187f3f:
MOV EAX,R12D
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
int _mi_ck_write_btree(long *param_1,uint param_2,int8 param_3,int8 param_4)
{
ushort uVar1;
uint uVar2;
int iVar3;
long lVar4;
long lVar5;
lVar5 = *(long *)(*param_1 + 0x218);
lVar4 = (ulong)param_2 * 0x70;
uVar1 = *(ushort *)(lVar5 + 10 + lVar4);
uVar2 = 8;
if ((uVar1 >> 9 & 1) == 0) {
if ((uVar1 & 0x81) == 0) {
uVar2 = 4;
}
else {
uVar2 = (uVar1 & 0x800) << 4 | 0x20041;
}
}
iVar3 = _mi_ck_real_write_btree
(param_1,lVar5 + lVar4,param_3,param_4,
(ulong)param_2 * 8 + *(long *)(*param_1 + 0x98),uVar2);
lVar5 = param_1[0x11];
if (lVar5 != 0) {
if (iVar3 == 0) {
iVar3 = _mi_ft_convert_to_ft2(param_1,param_2,param_3);
lVar5 = param_1[0x11];
}
delete_dynamic(lVar5);
my_free(param_1[0x11]);
param_1[0x11] = 0;
}
return iVar3;
}
| |
28,176 | emittra::Emittra::remove_listener(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::function<void (std::function<void (std::any const&)> const&, std::vector<std::any, std::allocator<std::any>> const&)> const&) | angrymouse[P]emittra/src/emittra.cpp | void Emittra::remove_listener(const std::string& event_name, const EventCallback& callback) {
auto event_data = get_or_create_event_data(event_name);
std::unique_lock<std::shared_mutex> lock(event_data->mutex);
auto& event_listeners = event_data->listeners;
event_listeners.erase(
std::remove_if(event_listeners.begin(), event_listeners.end(),
[&callback](const EventCallback& cb) {
return cb.target_type() == callback.target_type();
}),
event_listeners.end()
);
} | O0 | cpp | emittra::Emittra::remove_listener(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::function<void (std::function<void (std::any const&)> const&, std::vector<std::any, std::allocator<std::any>> const&)> const&):
subq $0xb8, %rsp
movq %rdi, 0xb0(%rsp)
movq %rsi, 0xa8(%rsp)
movq %rdx, 0xa0(%rsp)
movq 0xb0(%rsp), %rsi
movq 0xa8(%rsp), %rdx
leaq 0x90(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0xa3d0
movq 0x20(%rsp), %rdi
callq 0xe160
movq %rax, %rsi
addq $0x280, %rsi # imm = 0x280
leaq 0x80(%rsp), %rdi
callq 0xe170
jmp 0xb0d4
leaq 0x90(%rsp), %rdi
callq 0xe160
movq %rax, 0x68(%rsp)
movq 0x68(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0xe690
movq %rax, 0x50(%rsp)
movq 0x68(%rsp), %rdi
callq 0xe6c0
movq %rax, 0x48(%rsp)
movq 0xa0(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x50(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq 0xb200
movq %rax, 0x18(%rsp)
jmp 0xb131
movq 0x18(%rsp), %rax
movq %rax, 0x58(%rsp)
leaq 0x60(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0xe6f0
movq 0x68(%rsp), %rdi
callq 0xe6c0
movq %rax, 0x30(%rsp)
leaq 0x38(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0xe6f0
movq 0x10(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x38(%rsp), %rdx
callq 0xe5f0
movq %rax, 0x8(%rsp)
jmp 0xb183
movq 0x8(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x80(%rsp), %rdi
callq 0xe1e0
leaq 0x90(%rsp), %rdi
callq 0x6970
addq $0xb8, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
jmp 0xb1da
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
leaq 0x80(%rsp), %rdi
callq 0xe1e0
leaq 0x90(%rsp), %rdi
callq 0x6970
movq 0x78(%rsp), %rdi
callq 0x4490
nopw %cs:(%rax,%rax)
| _ZN7emittra7Emittra15remove_listenerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt8functionIFvRKS9_IFvRKSt3anyEERKSt6vectorISA_SaISA_EEEE:
sub rsp, 0B8h
mov [rsp+0B8h+var_8], rdi
mov [rsp+0B8h+var_10], rsi
mov [rsp+0B8h+var_18], rdx
mov rsi, [rsp+0B8h+var_8]
mov rdx, [rsp+0B8h+var_10]
lea rdi, [rsp+0B8h+var_28]
mov [rsp+0B8h+var_98], rdi
call _ZN7emittra7Emittra24get_or_create_event_dataERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; emittra::Emittra::get_or_create_event_data(std::string const&)
mov rdi, [rsp+0B8h+var_98]
call _ZNKSt19__shared_ptr_accessIN7emittra7Emittra9EventDataELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<emittra::Emittra::EventData,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void)
mov rsi, rax
add rsi, 280h
lea rdi, [rsp+0B8h+var_38]
call _ZNSt11unique_lockISt12shared_mutexEC2ERS0_; std::unique_lock<std::shared_mutex>::unique_lock(std::shared_mutex&)
jmp short $+2
loc_B0D4:
lea rdi, [rsp+0B8h+var_28]
call _ZNKSt19__shared_ptr_accessIN7emittra7Emittra9EventDataELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv; std::__shared_ptr_access<emittra::Emittra::EventData,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(void)
mov [rsp+0B8h+var_50], rax
mov rdi, [rsp+0B8h+var_50]
mov [rsp+0B8h+var_A8], rdi
call _ZNSt6vectorISt8functionIFvRKS0_IFvRKSt3anyEERKS_IS1_SaIS1_EEEESaISD_EE5beginEv; std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector const&<std::function const,std::allocator<std::function const>>)>>::begin(void)
mov [rsp+0B8h+var_68], rax
mov rdi, [rsp+0B8h+var_50]
call _ZNSt6vectorISt8functionIFvRKS0_IFvRKSt3anyEERKS_IS1_SaIS1_EEEESaISD_EE3endEv; std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector const&<std::function const,std::allocator<std::function const>>)>>::end(void)
mov [rsp+0B8h+var_70], rax
mov rax, [rsp+0B8h+var_18]
mov [rsp+0B8h+var_78], rax
mov rdi, [rsp+0B8h+var_68]
mov rsi, [rsp+0B8h+var_70]
mov rdx, [rsp+0B8h+var_78]
call _ZSt9remove_ifIN9__gnu_cxx17__normal_iteratorIPSt8functionIFvRKS2_IFvRKSt3anyEERKSt6vectorIS3_SaIS3_EEEESA_ISG_SaISG_EEEEZN7emittra7Emittra15remove_listenerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSG_E3$_0ET_SY_SY_T0_; std::remove_if<__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> *,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>,emittra::Emittra::remove_listener(std::string const&,std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> const&)::$_0>(__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> *,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>,__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> *,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>,emittra::Emittra::remove_listener(std::string const&,std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> const&)::$_0)
mov [rsp+0B8h+var_A0], rax
jmp short $+2
loc_B131:
mov rax, [rsp+0B8h+var_A0]
mov [rsp+0B8h+var_60], rax
lea rdi, [rsp+0B8h+var_58]
lea rsi, [rsp+0B8h+var_60]
call _ZN9__gnu_cxx17__normal_iteratorIPKSt8functionIFvRKS1_IFvRKSt3anyEERKSt6vectorIS2_SaIS2_EEEES9_ISF_SaISF_EEEC2IPSF_EERKNS0_IT_NS_11__enable_ifIXsr3std10__are_sameISN_SM_EE7__valueESJ_E6__typeEEE
mov rdi, [rsp+0B8h+var_50]
call _ZNSt6vectorISt8functionIFvRKS0_IFvRKSt3anyEERKS_IS1_SaIS1_EEEESaISD_EE3endEv; std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector const&<std::function const,std::allocator<std::function const>>)>>::end(void)
mov [rsp+0B8h+var_88], rax
lea rdi, [rsp+0B8h+var_80]
lea rsi, [rsp+0B8h+var_88]
call _ZN9__gnu_cxx17__normal_iteratorIPKSt8functionIFvRKS1_IFvRKSt3anyEERKSt6vectorIS2_SaIS2_EEEES9_ISF_SaISF_EEEC2IPSF_EERKNS0_IT_NS_11__enable_ifIXsr3std10__are_sameISN_SM_EE7__valueESJ_E6__typeEEE
mov rdi, [rsp+0B8h+var_A8]
mov rsi, [rsp+0B8h+var_58]
mov rdx, [rsp+0B8h+var_80]
call _ZNSt6vectorISt8functionIFvRKS0_IFvRKSt3anyEERKS_IS1_SaIS1_EEEESaISD_EE5eraseEN9__gnu_cxx17__normal_iteratorIPKSD_SF_EESK_; std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector const&<std::function const,std::allocator<std::function const>>)>>::erase(__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector const&<std::function const,std::allocator<std::function const>>)> const*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector const&<std::function const,std::allocator<std::function const>>)>>>,__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector const&<std::function const,std::allocator<std::function const>>)> const*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector const&<std::function const,std::allocator<std::function const>>)>>>)
mov [rsp+0B8h+var_B0], rax
jmp short $+2
loc_B183:
mov rax, [rsp+0B8h+var_B0]
mov [rsp+0B8h+var_90], rax
lea rdi, [rsp+0B8h+var_38]
call _ZNSt11unique_lockISt12shared_mutexED2Ev; std::unique_lock<std::shared_mutex>::~unique_lock()
lea rdi, [rsp+0B8h+var_28]
call _ZNSt10shared_ptrIN7emittra7Emittra9EventDataEED2Ev; std::shared_ptr<emittra::Emittra::EventData>::~shared_ptr()
add rsp, 0B8h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
jmp short loc_B1DA
mov rcx, rax
mov eax, edx
mov [rsp+arg_70], rcx
mov [rsp+arg_6C], eax
lea rdi, [rsp+arg_78]
call _ZNSt11unique_lockISt12shared_mutexED2Ev; std::unique_lock<std::shared_mutex>::~unique_lock()
loc_B1DA:
lea rdi, [rsp+arg_88]
call _ZNSt10shared_ptrIN7emittra7Emittra9EventDataEED2Ev; std::shared_ptr<emittra::Emittra::EventData>::~shared_ptr()
mov rdi, [rsp+arg_70]
call __Unwind_Resume
| long long emittra::Emittra::remove_listener(long long a1, long long a2, long long a3)
{
long long v3; // rsi
long long v5; // [rsp+10h] [rbp-A8h]
long long v6; // [rsp+30h] [rbp-88h] BYREF
_QWORD v7[2]; // [rsp+38h] [rbp-80h] BYREF
long long v8; // [rsp+48h] [rbp-70h]
long long v9; // [rsp+50h] [rbp-68h]
long long v10; // [rsp+58h] [rbp-60h] BYREF
long long v11; // [rsp+60h] [rbp-58h] BYREF
long long v12; // [rsp+68h] [rbp-50h]
_BYTE v13[16]; // [rsp+80h] [rbp-38h] BYREF
_BYTE v14[16]; // [rsp+90h] [rbp-28h] BYREF
long long v15; // [rsp+A0h] [rbp-18h]
long long v16; // [rsp+A8h] [rbp-10h]
long long v17; // [rsp+B0h] [rbp-8h]
v17 = a1;
v16 = a2;
v15 = a3;
emittra::Emittra::get_or_create_event_data((long long)v14, a1, a2);
v3 = std::__shared_ptr_access<emittra::Emittra::EventData,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(v14)
+ 640;
std::unique_lock<std::shared_mutex>::unique_lock(v13, v3);
v12 = std::__shared_ptr_access<emittra::Emittra::EventData,(__gnu_cxx::_Lock_policy)2,false,false>::operator->(v14);
v5 = v12;
v9 = std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector const&<std::function const,std::allocator<std::function const>>)>>::begin();
v8 = std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector const&<std::function const,std::allocator<std::function const>>)>>::end(v12);
v7[1] = v15;
v10 = std::remove_if<__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> *,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>,emittra::Emittra::remove_listener(std::string const&,std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> const&)::$_0>(
v9,
v8,
v15);
__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> const*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*>(
&v11,
&v10);
v6 = std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector const&<std::function const,std::allocator<std::function const>>)>>::end(v12);
__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> const*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*>(
v7,
&v6);
std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector const&<std::function const,std::allocator<std::function const>>)>>::erase(
v5,
v11,
v7[0]);
std::unique_lock<std::shared_mutex>::~unique_lock(v13);
return std::shared_ptr<emittra::Emittra::EventData>::~shared_ptr((long long)v14);
}
| remove_listener:
SUB RSP,0xb8
MOV qword ptr [RSP + 0xb0],RDI
MOV qword ptr [RSP + 0xa8],RSI
MOV qword ptr [RSP + 0xa0],RDX
MOV RSI,qword ptr [RSP + 0xb0]
MOV RDX,qword ptr [RSP + 0xa8]
LEA RDI,[RSP + 0x90]
MOV qword ptr [RSP + 0x20],RDI
CALL 0x0010a3d0
MOV RDI,qword ptr [RSP + 0x20]
CALL 0x0010e160
MOV RSI,RAX
ADD RSI,0x280
LAB_0010b0c5:
LEA RDI,[RSP + 0x80]
CALL 0x0010e170
JMP 0x0010b0d4
LAB_0010b0d4:
LEA RDI,[RSP + 0x90]
CALL 0x0010e160
MOV qword ptr [RSP + 0x68],RAX
MOV RDI,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0x10],RDI
CALL 0x0010e690
MOV qword ptr [RSP + 0x50],RAX
MOV RDI,qword ptr [RSP + 0x68]
CALL 0x0010e6c0
MOV qword ptr [RSP + 0x48],RAX
MOV RAX,qword ptr [RSP + 0xa0]
MOV qword ptr [RSP + 0x40],RAX
MOV RDI,qword ptr [RSP + 0x50]
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x40]
LAB_0010b125:
CALL 0x0010b200
MOV qword ptr [RSP + 0x18],RAX
JMP 0x0010b131
LAB_0010b131:
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x58],RAX
LEA RDI,[RSP + 0x60]
LEA RSI,[RSP + 0x58]
CALL 0x0010e6f0
MOV RDI,qword ptr [RSP + 0x68]
CALL 0x0010e6c0
MOV qword ptr [RSP + 0x30],RAX
LEA RDI,[RSP + 0x38]
LEA RSI,[RSP + 0x30]
CALL 0x0010e6f0
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x60]
MOV RDX,qword ptr [RSP + 0x38]
CALL 0x0010e5f0
LAB_0010b17c:
MOV qword ptr [RSP + 0x8],RAX
JMP 0x0010b183
LAB_0010b183:
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x28],RAX
LEA RDI,[RSP + 0x80]
CALL 0x0010e1e0
LEA RDI,[RSP + 0x90]
CALL 0x00106970
ADD RSP,0xb8
RET
|
/* emittra::Emittra::remove_listener(std::__cxx11::string const&, std::function<void
(std::function<void (std::any const&)> const&, std::vector<std::any, std::allocator<std::any> >
const&)> const&) */
void __thiscall emittra::Emittra::remove_listener(Emittra *this,string *param_1,function *param_2)
{
long lVar1;
vector<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>,std::allocator<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>>>
*this_00;
int8 local_88;
int8 local_80;
function *local_78;
int8 local_70;
int8 local_68;
int8 local_60;
int8 local_58;
vector<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>,std::allocator<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>>>
*local_50;
unique_lock<std::shared_mutex> local_38 [16];
string local_28 [16];
function *local_18;
string *local_10;
Emittra *local_8;
local_18 = param_2;
local_10 = param_1;
local_8 = this;
get_or_create_event_data(local_28);
lVar1 = std::
__shared_ptr_access<emittra::Emittra::EventData,(__gnu_cxx::_Lock_policy)2,false,false>::
operator->((__shared_ptr_access<emittra::Emittra::EventData,(__gnu_cxx::_Lock_policy)2,false,false>
*)local_28);
/* try { // try from 0010b0c5 to 0010b0d1 has its CatchHandler @ 0010b1af */
std::unique_lock<std::shared_mutex>::unique_lock(local_38,(shared_mutex *)(lVar1 + 0x280));
this_00 = (vector<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>,std::allocator<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>>>
*)std::
__shared_ptr_access<emittra::Emittra::EventData,(__gnu_cxx::_Lock_policy)2,false,false>
::operator->((__shared_ptr_access<emittra::Emittra::EventData,(__gnu_cxx::_Lock_policy)2,false,false>
*)local_28);
local_50 = this_00;
local_68 = std::
vector<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>,std::allocator<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>>>
::begin(this_00);
local_70 = std::
vector<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>,std::allocator<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>>>
::end(local_50);
local_78 = local_18;
/* try { // try from 0010b125 to 0010b17b has its CatchHandler @ 0010b1bf */
local_60 = std::
remove_if<__gnu_cxx::__normal_iterator<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>*,std::vector<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>,std::allocator<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>>>>,emittra::Emittra::remove_listener(std::__cxx11::string_const&,std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>const&)::__0>
(local_68,local_70,local_18);
__gnu_cxx::
__normal_iterator<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>const*,std::vector<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>,std::allocator<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>>>>
::
__normal_iterator<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>*>
((__normal_iterator<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>const*,std::vector<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>,std::allocator<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>>>>
*)&local_58,(__normal_iterator *)&local_60);
local_88 = std::
vector<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>,std::allocator<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>>>
::end(local_50);
__gnu_cxx::
__normal_iterator<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>const*,std::vector<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>,std::allocator<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>>>>
::
__normal_iterator<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>*>
((__normal_iterator<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>const*,std::vector<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>,std::allocator<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>>>>
*)&local_80,(__normal_iterator *)&local_88);
std::
vector<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>,std::allocator<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>>>
::erase(this_00,local_58,local_80);
std::unique_lock<std::shared_mutex>::~unique_lock(local_38);
std::shared_ptr<emittra::Emittra::EventData>::~shared_ptr
((shared_ptr<emittra::Emittra::EventData> *)local_28);
return;
}
| |
28,177 | emittra::Emittra::remove_listener(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::function<void (std::function<void (std::any const&)> const&, std::vector<std::any, std::allocator<std::any>> const&)> const&) | angrymouse[P]emittra/src/emittra.cpp | void Emittra::remove_listener(const std::string& event_name, const EventCallback& callback) {
auto event_data = get_or_create_event_data(event_name);
std::unique_lock<std::shared_mutex> lock(event_data->mutex);
auto& event_listeners = event_data->listeners;
event_listeners.erase(
std::remove_if(event_listeners.begin(), event_listeners.end(),
[&callback](const EventCallback& cb) {
return cb.target_type() == callback.target_type();
}),
event_listeners.end()
);
} | O1 | cpp | emittra::Emittra::remove_listener(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::function<void (std::function<void (std::any const&)> const&, std::vector<std::any, std::allocator<std::any>> const&)> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r15
movq %rsi, %rdx
movq %rdi, %rsi
leaq 0x28(%rsp), %rbx
movq %rbx, %rdi
callq 0x4c50
movq (%rbx), %rbx
leaq 0x280(%rbx), %rax
leaq 0x10(%rsp), %rdi
movq %rax, (%rdi)
movb $0x0, 0x8(%rdi)
callq 0x78e6
movb $0x1, 0x18(%rsp)
movq (%rbx), %r14
movq 0x8(%rbx), %r13
movq %r15, 0x20(%rsp)
movq %r15, 0x8(%rsp)
movq %r13, %rbp
subq %r14, %rbp
sarq $0x7, %rbp
testq %rbp, %rbp
jle 0x5581
incq %rbp
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x627a
testb %al, %al
jne 0x55dd
leaq 0x20(%r14), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x627a
testb %al, %al
jne 0x55e0
leaq 0x40(%r14), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x627a
testb %al, %al
jne 0x55e0
leaq 0x60(%r14), %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x627a
testb %al, %al
jne 0x55e0
subq $-0x80, %r14
decq %rbp
cmpq $0x1, %rbp
jg 0x5524
movq %r13, %rax
subq %r14, %rax
sarq $0x5, %rax
cmpq $0x1, %rax
je 0x55ca
cmpq $0x2, %rax
je 0x55b5
movq %r13, %r15
cmpq $0x3, %rax
jne 0x55e0
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x627a
testb %al, %al
jne 0x55dd
addq $0x20, %r14
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x627a
testb %al, %al
jne 0x55dd
addq $0x20, %r14
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x627a
testb %al, %al
cmoveq %r13, %r14
movq %r14, %r15
cmpq %r13, %r15
sete %al
leaq 0x20(%r15), %r14
cmpq %r13, %r14
sete %cl
orb %al, %cl
jne 0x5620
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x627a
testb %al, %al
jne 0x5617
movq %r15, %rdi
movq %r14, %rsi
callq 0x921c
addq $0x20, %r15
addq $0x20, %r14
cmpq %r13, %r14
jne 0x55f9
movq 0x8(%rbx), %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x92e6
leaq 0x10(%rsp), %rdi
callq 0x656c
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x5648
callq 0x4352
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x656c
jmp 0x5669
movq %rax, %rbx
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x5678
callq 0x4352
movq %rbx, %rdi
callq 0x3450
| _ZN7emittra7Emittra15remove_listenerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt8functionIFvRKS9_IFvRKSt3anyEERKSt6vectorISA_SaISA_EEEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r15, rdx
mov rdx, rsi
mov rsi, rdi
lea rbx, [rsp+68h+var_40]
mov rdi, rbx
call _ZN7emittra7Emittra24get_or_create_event_dataERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; emittra::Emittra::get_or_create_event_data(std::string const&)
mov rbx, [rbx]
lea rax, [rbx+280h]
lea rdi, [rsp+68h+var_58]
mov [rdi], rax
mov byte ptr [rdi+8], 0
call _ZNSt11unique_lockISt12shared_mutexE4lockEv; std::unique_lock<std::shared_mutex>::lock(void)
mov [rsp+68h+var_50], 1
mov r14, [rbx]
mov r13, [rbx+8]
mov [rsp+68h+var_48], r15
mov [rsp+68h+var_60], r15
mov rbp, r13
sub rbp, r14
sar rbp, 7
test rbp, rbp
jle short loc_5581
inc rbp
lea r12, [rsp+68h+var_60]
loc_5524:
mov rdi, r12
mov rsi, r14
call _ZN9__gnu_cxx5__ops10_Iter_predIZN7emittra7Emittra15remove_listenerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt8functionIFvRKSC_IFvRKSt3anyEERKSt6vectorISD_SaISD_EEEEE3$_0EclINS_17__normal_iteratorIPSQ_SK_ISQ_SaISQ_EEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<emittra::Emittra::remove_listener(std::string const&,std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>>(__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>)
test al, al
jnz loc_55DD
lea r15, [r14+20h]
mov rdi, r12
mov rsi, r15
call _ZN9__gnu_cxx5__ops10_Iter_predIZN7emittra7Emittra15remove_listenerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt8functionIFvRKSC_IFvRKSt3anyEERKSt6vectorISD_SaISD_EEEEE3$_0EclINS_17__normal_iteratorIPSQ_SK_ISQ_SaISQ_EEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<emittra::Emittra::remove_listener(std::string const&,std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>>(__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>)
test al, al
jnz loc_55E0
lea r15, [r14+40h]
mov rdi, r12
mov rsi, r15
call _ZN9__gnu_cxx5__ops10_Iter_predIZN7emittra7Emittra15remove_listenerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt8functionIFvRKSC_IFvRKSt3anyEERKSt6vectorISD_SaISD_EEEEE3$_0EclINS_17__normal_iteratorIPSQ_SK_ISQ_SaISQ_EEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<emittra::Emittra::remove_listener(std::string const&,std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>>(__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>)
test al, al
jnz short loc_55E0
lea r15, [r14+60h]
mov rdi, r12
mov rsi, r15
call _ZN9__gnu_cxx5__ops10_Iter_predIZN7emittra7Emittra15remove_listenerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt8functionIFvRKSC_IFvRKSt3anyEERKSt6vectorISD_SaISD_EEEEE3$_0EclINS_17__normal_iteratorIPSQ_SK_ISQ_SaISQ_EEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<emittra::Emittra::remove_listener(std::string const&,std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>>(__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>)
test al, al
jnz short loc_55E0
sub r14, 0FFFFFFFFFFFFFF80h
dec rbp
cmp rbp, 1
jg short loc_5524
loc_5581:
mov rax, r13
sub rax, r14
sar rax, 5
cmp rax, 1
jz short loc_55CA
cmp rax, 2
jz short loc_55B5
mov r15, r13
cmp rax, 3
jnz short loc_55E0
lea rdi, [rsp+68h+var_60]
mov rsi, r14
call _ZN9__gnu_cxx5__ops10_Iter_predIZN7emittra7Emittra15remove_listenerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt8functionIFvRKSC_IFvRKSt3anyEERKSt6vectorISD_SaISD_EEEEE3$_0EclINS_17__normal_iteratorIPSQ_SK_ISQ_SaISQ_EEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<emittra::Emittra::remove_listener(std::string const&,std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>>(__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>)
test al, al
jnz short loc_55DD
add r14, 20h ; ' '
loc_55B5:
lea rdi, [rsp+68h+var_60]
mov rsi, r14
call _ZN9__gnu_cxx5__ops10_Iter_predIZN7emittra7Emittra15remove_listenerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt8functionIFvRKSC_IFvRKSt3anyEERKSt6vectorISD_SaISD_EEEEE3$_0EclINS_17__normal_iteratorIPSQ_SK_ISQ_SaISQ_EEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<emittra::Emittra::remove_listener(std::string const&,std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>>(__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>)
test al, al
jnz short loc_55DD
add r14, 20h ; ' '
loc_55CA:
lea rdi, [rsp+68h+var_60]
mov rsi, r14
call _ZN9__gnu_cxx5__ops10_Iter_predIZN7emittra7Emittra15remove_listenerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt8functionIFvRKSC_IFvRKSt3anyEERKSt6vectorISD_SaISD_EEEEE3$_0EclINS_17__normal_iteratorIPSQ_SK_ISQ_SaISQ_EEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<emittra::Emittra::remove_listener(std::string const&,std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>>(__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>)
test al, al
cmovz r14, r13
loc_55DD:
mov r15, r14
loc_55E0:
cmp r15, r13
setz al
lea r14, [r15+20h]
cmp r14, r13
setz cl
or cl, al
jnz short loc_5620
lea r12, [rsp+68h+var_48]
loc_55F9:
mov rdi, r12
mov rsi, r14
call _ZN9__gnu_cxx5__ops10_Iter_predIZN7emittra7Emittra15remove_listenerERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt8functionIFvRKSC_IFvRKSt3anyEERKSt6vectorISD_SaISD_EEEEE3$_0EclINS_17__normal_iteratorIPSQ_SK_ISQ_SaISQ_EEEEEEbT_; __gnu_cxx::__ops::_Iter_pred<emittra::Emittra::remove_listener(std::string const&,std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>>(__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>)
test al, al
jnz short loc_5617
mov rdi, r15
mov rsi, r14
call _ZNSt8functionIFvRKS_IFvRKSt3anyEERKSt6vectorIS0_SaIS0_EEEEaSEOSD_; std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>::operator=(std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>&&)
add r15, 20h ; ' '
loc_5617:
add r14, 20h ; ' '
cmp r14, r13
jnz short loc_55F9
loc_5620:
mov rdx, [rbx+8]
mov rdi, rbx
mov rsi, r15
call _ZNSt6vectorISt8functionIFvRKS0_IFvRKSt3anyEERKS_IS1_SaIS1_EEEESaISD_EE8_M_eraseEN9__gnu_cxx17__normal_iteratorIPSD_SF_EESJ_; std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector const&<std::function const,std::allocator<std::function const>>)>>::_M_erase(__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector const&<std::function const,std::allocator<std::function const>>)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector const&<std::function const,std::allocator<std::function const>>)>>>,__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector const&<std::function const,std::allocator<std::function const>>)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector const&<std::function const,std::allocator<std::function const>>)>>>)
lea rdi, [rsp+68h+var_58]
call _ZNSt11unique_lockISt12shared_mutexED2Ev; std::unique_lock<std::shared_mutex>::~unique_lock()
mov rdi, [rsp+68h+var_38]
test rdi, rdi
jz short loc_5648
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_5648:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_8]
call _ZNSt11unique_lockISt12shared_mutexED2Ev; std::unique_lock<std::shared_mutex>::~unique_lock()
jmp short loc_5669
mov rbx, rax
loc_5669:
mov rdi, [rsp+arg_28]
test rdi, rdi
jz short loc_5678
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_5678:
mov rdi, rbx
call __Unwind_Resume
| long long emittra::Emittra::remove_listener(std::__shared_mutex_pthread *a1, long long a2, long long a3)
{
long long *v4; // rbx
long long v5; // r14
long long v6; // r13
long long v7; // rbp
long long v8; // rbp
long long v9; // r15
long long v10; // rax
long long v11; // r14
long long result; // rax
long long v13; // [rsp+8h] [rbp-60h] BYREF
_QWORD *v14; // [rsp+10h] [rbp-58h] BYREF
char v15; // [rsp+18h] [rbp-50h]
long long v16; // [rsp+20h] [rbp-48h] BYREF
long long *v17; // [rsp+28h] [rbp-40h] BYREF
volatile signed __int32 *v18; // [rsp+30h] [rbp-38h]
emittra::Emittra::get_or_create_event_data(&v17, a1, a2);
v4 = v17;
v14 = v17 + 80;
v15 = 0;
std::unique_lock<std::shared_mutex>::lock(&v14);
v15 = 1;
v5 = *v4;
v6 = v4[1];
v16 = a3;
v13 = a3;
v7 = (v6 - v5) >> 7;
if ( v7 > 0 )
{
v8 = v7 + 1;
while ( !(unsigned __int8)__gnu_cxx::__ops::_Iter_pred<emittra::Emittra::remove_listener(std::string const&,std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>>(
&v13,
v5) )
{
v9 = v5 + 32;
if ( (unsigned __int8)__gnu_cxx::__ops::_Iter_pred<emittra::Emittra::remove_listener(std::string const&,std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>>(
&v13,
v5 + 32) )
goto LABEL_18;
v9 = v5 + 64;
if ( (unsigned __int8)__gnu_cxx::__ops::_Iter_pred<emittra::Emittra::remove_listener(std::string const&,std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>>(
&v13,
v5 + 64) )
goto LABEL_18;
v9 = v5 + 96;
if ( (unsigned __int8)__gnu_cxx::__ops::_Iter_pred<emittra::Emittra::remove_listener(std::string const&,std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>>(
&v13,
v5 + 96) )
goto LABEL_18;
v5 += 128LL;
if ( --v8 <= 1 )
goto LABEL_8;
}
goto LABEL_17;
}
LABEL_8:
v10 = (v6 - v5) >> 5;
if ( v10 == 1 )
goto LABEL_15;
if ( v10 != 2 )
{
v9 = v6;
if ( v10 != 3 )
goto LABEL_18;
if ( (unsigned __int8)__gnu_cxx::__ops::_Iter_pred<emittra::Emittra::remove_listener(std::string const&,std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>>(
&v13,
v5) )
goto LABEL_17;
v5 += 32LL;
}
if ( !(unsigned __int8)__gnu_cxx::__ops::_Iter_pred<emittra::Emittra::remove_listener(std::string const&,std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>>(
&v13,
v5) )
{
v5 += 32LL;
LABEL_15:
if ( !(unsigned __int8)__gnu_cxx::__ops::_Iter_pred<emittra::Emittra::remove_listener(std::string const&,std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>>(
&v13,
v5) )
v5 = v6;
}
LABEL_17:
v9 = v5;
LABEL_18:
v11 = v9 + 32;
if ( v9 != v6 && v9 + 32 != v6 )
{
do
{
if ( !(unsigned __int8)__gnu_cxx::__ops::_Iter_pred<emittra::Emittra::remove_listener(std::string const&,std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)> const&)::$_0>::operator()<__gnu_cxx::__normal_iterator<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>*,std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>>>>(
&v16,
v11) )
{
std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector<std::function const> const&)>::operator=(
v9,
v11);
v9 += 32LL;
}
v11 += 32LL;
}
while ( v11 != v6 );
}
std::vector<std::function<void ()(std::function const&<void ()(std::any const&)>,std::vector const&<std::function const,std::allocator<std::function const>>)>>::_M_erase(
v4,
v9,
v4[1]);
result = std::unique_lock<std::shared_mutex>::~unique_lock(&v14);
if ( v18 )
return std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v18);
return result;
}
| remove_listener:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R15,RDX
MOV RDX,RSI
MOV RSI,RDI
LEA RBX,[RSP + 0x28]
MOV RDI,RBX
CALL 0x00104c50
MOV RBX,qword ptr [RBX]
LEA RAX,[RBX + 0x280]
LEA RDI,[RSP + 0x10]
MOV qword ptr [RDI],RAX
MOV byte ptr [RDI + 0x8],0x0
LAB_001054f2:
CALL 0x001078e6
MOV byte ptr [RSP + 0x18],0x1
MOV R14,qword ptr [RBX]
MOV R13,qword ptr [RBX + 0x8]
MOV qword ptr [RSP + 0x20],R15
MOV qword ptr [RSP + 0x8],R15
MOV RBP,R13
SUB RBP,R14
SAR RBP,0x7
TEST RBP,RBP
JLE 0x00105581
INC RBP
LEA R12,[RSP + 0x8]
LAB_00105524:
MOV RDI,R12
MOV RSI,R14
CALL 0x0010627a
TEST AL,AL
JNZ 0x001055dd
LEA R15,[R14 + 0x20]
MOV RDI,R12
MOV RSI,R15
CALL 0x0010627a
TEST AL,AL
JNZ 0x001055e0
LEA R15,[R14 + 0x40]
MOV RDI,R12
MOV RSI,R15
CALL 0x0010627a
TEST AL,AL
JNZ 0x001055e0
LEA R15,[R14 + 0x60]
MOV RDI,R12
MOV RSI,R15
CALL 0x0010627a
TEST AL,AL
JNZ 0x001055e0
SUB R14,-0x80
DEC RBP
CMP RBP,0x1
JG 0x00105524
LAB_00105581:
MOV RAX,R13
SUB RAX,R14
SAR RAX,0x5
CMP RAX,0x1
JZ 0x001055ca
CMP RAX,0x2
JZ 0x001055b5
MOV R15,R13
CMP RAX,0x3
JNZ 0x001055e0
LEA RDI,[RSP + 0x8]
MOV RSI,R14
CALL 0x0010627a
TEST AL,AL
JNZ 0x001055dd
ADD R14,0x20
LAB_001055b5:
LEA RDI,[RSP + 0x8]
MOV RSI,R14
CALL 0x0010627a
TEST AL,AL
JNZ 0x001055dd
ADD R14,0x20
LAB_001055ca:
LEA RDI,[RSP + 0x8]
MOV RSI,R14
CALL 0x0010627a
TEST AL,AL
CMOVZ R14,R13
LAB_001055dd:
MOV R15,R14
LAB_001055e0:
CMP R15,R13
SETZ AL
LEA R14,[R15 + 0x20]
CMP R14,R13
SETZ CL
OR CL,AL
JNZ 0x00105620
LEA R12,[RSP + 0x20]
LAB_001055f9:
MOV RDI,R12
MOV RSI,R14
CALL 0x0010627a
TEST AL,AL
JNZ 0x00105617
MOV RDI,R15
MOV RSI,R14
CALL 0x0010921c
ADD R15,0x20
LAB_00105617:
ADD R14,0x20
CMP R14,R13
JNZ 0x001055f9
LAB_00105620:
MOV RDX,qword ptr [RBX + 0x8]
LAB_00105624:
MOV RDI,RBX
MOV RSI,R15
CALL 0x001092e6
LAB_0010562f:
LEA RDI,[RSP + 0x10]
CALL 0x0010656c
MOV RDI,qword ptr [RSP + 0x30]
TEST RDI,RDI
JZ 0x00105648
CALL 0x00104352
LAB_00105648:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* emittra::Emittra::remove_listener(std::__cxx11::string const&, std::function<void
(std::function<void (std::any const&)> const&, std::vector<std::any, std::allocator<std::any> >
const&)> const&) */
void __thiscall emittra::Emittra::remove_listener(Emittra *this,string *param_1,function *param_2)
{
function *pfVar1;
bool bVar2;
long lVar3;
function *pfVar4;
function *this_00;
function *local_60;
vector<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>,std::allocator<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>>>
*local_58;
int1 local_50;
function *local_48;
vector<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>,std::allocator<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>>>
*local_40;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_38;
get_or_create_event_data((string *)&local_40);
local_58 = local_40 + 0x280;
local_50 = 0;
/* try { // try from 001054f2 to 001054f6 has its CatchHandler @ 00105666 */
std::unique_lock<std::shared_mutex>::lock((unique_lock<std::shared_mutex> *)&local_58);
local_50 = 1;
pfVar4 = *(function **)local_40;
pfVar1 = *(function **)(local_40 + 8);
lVar3 = (long)pfVar1 - (long)pfVar4 >> 7;
local_60 = param_2;
local_48 = param_2;
if (0 < lVar3) {
lVar3 = lVar3 + 1;
do {
bVar2 = __gnu_cxx::__ops::
_Iter_pred<emittra::Emittra::remove_listener(std::__cxx11::string_const&,std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>const&)::$_0>
::operator()((_Iter_pred<emittra::Emittra::remove_listener(std::__cxx11::string_const&,std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>const&)::__0>
*)&local_60,pfVar4);
this_00 = pfVar4;
if (bVar2) goto LAB_001055e0;
bVar2 = __gnu_cxx::__ops::
_Iter_pred<emittra::Emittra::remove_listener(std::__cxx11::string_const&,std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>const&)::$_0>
::operator()((_Iter_pred<emittra::Emittra::remove_listener(std::__cxx11::string_const&,std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>const&)::__0>
*)&local_60,pfVar4 + 0x20);
this_00 = pfVar4 + 0x20;
if (bVar2) goto LAB_001055e0;
bVar2 = __gnu_cxx::__ops::
_Iter_pred<emittra::Emittra::remove_listener(std::__cxx11::string_const&,std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>const&)::$_0>
::operator()((_Iter_pred<emittra::Emittra::remove_listener(std::__cxx11::string_const&,std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>const&)::__0>
*)&local_60,pfVar4 + 0x40);
this_00 = pfVar4 + 0x40;
if (bVar2) goto LAB_001055e0;
bVar2 = __gnu_cxx::__ops::
_Iter_pred<emittra::Emittra::remove_listener(std::__cxx11::string_const&,std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>const&)::$_0>
::operator()((_Iter_pred<emittra::Emittra::remove_listener(std::__cxx11::string_const&,std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>const&)::__0>
*)&local_60,pfVar4 + 0x60);
this_00 = pfVar4 + 0x60;
if (bVar2) goto LAB_001055e0;
pfVar4 = pfVar4 + 0x80;
lVar3 = lVar3 + -1;
} while (1 < lVar3);
}
lVar3 = (long)pfVar1 - (long)pfVar4 >> 5;
if (lVar3 != 1) {
if (lVar3 != 2) {
this_00 = pfVar1;
if ((lVar3 != 3) ||
(bVar2 = __gnu_cxx::__ops::
_Iter_pred<emittra::Emittra::remove_listener(std::__cxx11::string_const&,std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>const&)::$_0>
::operator()((_Iter_pred<emittra::Emittra::remove_listener(std::__cxx11::string_const&,std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>const&)::__0>
*)&local_60,pfVar4), this_00 = pfVar4, bVar2)) goto LAB_001055e0;
pfVar4 = pfVar4 + 0x20;
}
bVar2 = __gnu_cxx::__ops::
_Iter_pred<emittra::Emittra::remove_listener(std::__cxx11::string_const&,std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>const&)::$_0>
::operator()((_Iter_pred<emittra::Emittra::remove_listener(std::__cxx11::string_const&,std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>const&)::__0>
*)&local_60,pfVar4);
this_00 = pfVar4;
if (bVar2) goto LAB_001055e0;
pfVar4 = pfVar4 + 0x20;
}
bVar2 = __gnu_cxx::__ops::
_Iter_pred<emittra::Emittra::remove_listener(std::__cxx11::string_const&,std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>const&)::$_0>
::operator()((_Iter_pred<emittra::Emittra::remove_listener(std::__cxx11::string_const&,std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>const&)::__0>
*)&local_60,pfVar4);
this_00 = pfVar4;
if (!bVar2) {
this_00 = pfVar1;
}
LAB_001055e0:
pfVar4 = this_00 + 0x20;
if (pfVar4 != pfVar1 && this_00 != pfVar1) {
do {
bVar2 = __gnu_cxx::__ops::
_Iter_pred<emittra::Emittra::remove_listener(std::__cxx11::string_const&,std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>const&)::$_0>
::operator()((_Iter_pred<emittra::Emittra::remove_listener(std::__cxx11::string_const&,std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>const&)::__0>
*)&local_48,pfVar4);
if (!bVar2) {
std::
function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>
::operator=((function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>
*)this_00,pfVar4);
this_00 = (function *)
((function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>
*)this_00 + 0x20);
}
pfVar4 = pfVar4 + 0x20;
} while (pfVar4 != pfVar1);
}
/* try { // try from 00105624 to 0010562e has its CatchHandler @ 00105657 */
std::
vector<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>,std::allocator<std::function<void(std::function<void(std::any_const&)>const&,std::vector<std::any,std::allocator<std::any>>const&)>>>
::_M_erase(local_40,this_00,*(int8 *)(local_40 + 8));
std::unique_lock<std::shared_mutex>::~unique_lock((unique_lock<std::shared_mutex> *)&local_58);
if (local_38 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_38);
}
return;
}
| |
28,178 | common_log::set_file(char const*) | monkey531[P]llama/common/log.cpp | void set_file(const char * path) {
pause();
if (file) {
fclose(file);
}
if (path) {
file = fopen(path, "w");
} else {
file = nullptr;
}
resume();
} | O1 | cpp | common_log::set_file(char const*):
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
callq 0xd17d4
movq 0x60(%rbx), %rdi
testq %rdi, %rdi
je 0xd1be3
callq 0x1b8e0
testq %r14, %r14
je 0xd1bf9
leaq 0x1fda3(%rip), %rsi # 0xf1992
movq %r14, %rdi
callq 0x1ba80
jmp 0xd1bfb
xorl %eax, %eax
movq %rax, 0x60(%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0xd185c
| _ZN10common_log8set_fileEPKc:
push r14
push rbx
push rax
mov r14, rsi
mov rbx, rdi
call _ZN10common_log5pauseEv; common_log::pause(void)
mov rdi, [rbx+60h]
test rdi, rdi
jz short loc_D1BE3
call _fclose
loc_D1BE3:
test r14, r14
jz short loc_D1BF9
lea rsi, aGrpAttnW+0Bh; "w"
mov rdi, r14
call _fopen
jmp short loc_D1BFB
loc_D1BF9:
xor eax, eax
loc_D1BFB:
mov [rbx+60h], rax
mov rdi, rbx; this
add rsp, 8
pop rbx
pop r14
jmp _ZN10common_log6resumeEv; common_log::resume(void)
| long long common_log::set_file(common_log *this, const char *a2)
{
long long v3; // rdi
long long v4; // rax
common_log::pause(this);
v3 = *((_QWORD *)this + 12);
if ( v3 )
fclose(v3);
if ( a2 )
v4 = fopen(a2, "w");
else
v4 = 0LL;
*((_QWORD *)this + 12) = v4;
return common_log::resume(this);
}
| set_file:
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RSI
MOV RBX,RDI
CALL 0x001d17d4
MOV RDI,qword ptr [RBX + 0x60]
TEST RDI,RDI
JZ 0x001d1be3
CALL 0x0011b8e0
LAB_001d1be3:
TEST R14,R14
JZ 0x001d1bf9
LEA RSI,[0x1f1992]
MOV RDI,R14
CALL 0x0011ba80
JMP 0x001d1bfb
LAB_001d1bf9:
XOR EAX,EAX
LAB_001d1bfb:
MOV qword ptr [RBX + 0x60],RAX
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP 0x001d185c
|
/* common_log::set_file(char const*) */
void __thiscall common_log::set_file(common_log *this,char *param_1)
{
FILE *pFVar1;
pause(this);
if (*(FILE **)(this + 0x60) != (FILE *)0x0) {
fclose(*(FILE **)(this + 0x60));
}
if (param_1 == (char *)0x0) {
pFVar1 = (FILE *)0x0;
}
else {
pFVar1 = fopen(param_1,"w");
}
*(FILE **)(this + 0x60) = pFVar1;
resume(this);
return;
}
| |
28,179 | crypt_data_scheme_locker | eloqsql/storage/maria/ma_crypt.c | static void crypt_data_scheme_locker(struct st_encryption_scheme *scheme,
int unlock)
{
MARIA_CRYPT_DATA *crypt_data = (MARIA_CRYPT_DATA*)scheme;
if (unlock)
mysql_mutex_unlock(&crypt_data->lock);
else
mysql_mutex_lock(&crypt_data->lock);
} | O3 | c | crypt_data_scheme_locker:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
leaq 0x68(%rdi), %rbx
movq 0xa8(%rdi), %rdi
testl %esi, %esi
je 0x66ed9
testq %rdi, %rdi
jne 0x66eec
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x291c0
testq %rdi, %rdi
jne 0x66efe
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x29200
leaq 0x31f11d(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x66ecb
leaq 0x7383b(%rip), %rsi # 0xda740
movq %rbx, %rdi
movl $0x61, %edx
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2eb6f
| crypt_data_scheme_locker:
push rbp
mov rbp, rsp
push rbx
push rax
lea rbx, [rdi+68h]
mov rdi, [rdi+0A8h]
test esi, esi
jz short loc_66ED9
test rdi, rdi
jnz short loc_66EEC
loc_66ECB:
mov rdi, rbx
add rsp, 8
pop rbx
pop rbp
jmp _pthread_mutex_unlock
loc_66ED9:
test rdi, rdi
jnz short loc_66EFE
mov rdi, rbx
add rsp, 8
pop rbx
pop rbp
jmp _pthread_mutex_lock
loc_66EEC:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_66ECB
loc_66EFE:
lea rsi, aWorkspaceLlm4b_10; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, rbx
mov edx, 61h ; 'a'
add rsp, 8
pop rbx
pop rbp
jmp psi_mutex_lock
| long long crypt_data_scheme_locker(long long a1, int a2)
{
long long v2; // rbx
long long v3; // rdi
v2 = a1 + 104;
v3 = *(_QWORD *)(a1 + 168);
if ( a2 )
{
if ( v3 )
((void ( *)(long long))PSI_server[44])(v3);
return pthread_mutex_unlock(v2);
}
else if ( v3 )
{
return psi_mutex_lock(v2, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_crypt.c", 0x61u);
}
else
{
return pthread_mutex_lock(v2);
}
}
| crypt_data_scheme_locker:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
LEA RBX,[RDI + 0x68]
MOV RDI,qword ptr [RDI + 0xa8]
TEST ESI,ESI
JZ 0x00166ed9
TEST RDI,RDI
JNZ 0x00166eec
LAB_00166ecb:
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x001291c0
LAB_00166ed9:
TEST RDI,RDI
JNZ 0x00166efe
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x00129200
LAB_00166eec:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x00166ecb
LAB_00166efe:
LEA RSI,[0x1da740]
MOV RDI,RBX
MOV EDX,0x61
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x0012eb6f
|
void crypt_data_scheme_locker(long param_1,int param_2)
{
pthread_mutex_t *__mutex;
__mutex = (pthread_mutex_t *)(param_1 + 0x68);
if (param_2 != 0) {
if (*(long *)(param_1 + 0xa8) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
return;
}
if (*(long *)(param_1 + 0xa8) == 0) {
pthread_mutex_lock(__mutex);
return;
}
psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_crypt.c",0x61);
return;
}
| |
28,180 | my_sync_dir_by_file | eloqsql/mysys/my_sync.c | int my_sync_dir_by_file(const char *file_name __attribute__((unused)),
myf my_flags __attribute__((unused)))
{
#ifdef NEED_EXPLICIT_SYNC_DIR
char dir_name[FN_REFLEN];
size_t dir_name_length;
dirname_part(dir_name, file_name, &dir_name_length);
return my_sync_dir(dir_name, my_flags & ~MY_NOSYMLINKS);
#else
return 0;
#endif
} | O0 | c | my_sync_dir_by_file:
pushq %rbp
movq %rsp, %rbp
subq $0x240, %rsp # imm = 0x240
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x218(%rbp)
movq %rsi, -0x220(%rbp)
movq -0x218(%rbp), %rsi
leaq -0x210(%rbp), %rdi
movq %rdi, -0x238(%rbp)
leaq -0x228(%rbp), %rdx
callq 0xdec70
movq -0x238(%rbp), %rdi
movq -0x220(%rbp), %rax
andl $0xfffffdff, %eax # imm = 0xFFFFFDFF
movl %eax, %esi
callq 0xf51e0
movl %eax, -0x22c(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xf5318
movl -0x22c(%rbp), %eax
addq $0x240, %rsp # imm = 0x240
popq %rbp
retq
callq 0x2a260
nopl (%rax)
| my_sync_dir_by_file:
push rbp
mov rbp, rsp
sub rsp, 240h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_218], rdi
mov [rbp+var_220], rsi
mov rsi, [rbp+var_218]
lea rdi, [rbp+var_210]
mov [rbp+var_238], rdi
lea rdx, [rbp+var_228]
call dirname_part
mov rdi, [rbp+var_238]
mov rax, [rbp+var_220]
and eax, 0FFFFFDFFh
mov esi, eax
call my_sync_dir
mov [rbp+var_22C], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_F5318
mov eax, [rbp+var_22C]
add rsp, 240h
pop rbp
retn
loc_F5318:
call ___stack_chk_fail
| long long my_sync_dir_by_file(_BYTE *a1, long long a2, double a3)
{
long long v4; // [rsp+18h] [rbp-228h] BYREF
long long v5; // [rsp+20h] [rbp-220h]
_BYTE *v6; // [rsp+28h] [rbp-218h]
_BYTE v7[520]; // [rsp+30h] [rbp-210h] BYREF
unsigned long long v8; // [rsp+238h] [rbp-8h]
v8 = __readfsqword(0x28u);
v6 = a1;
v5 = a2;
dirname_part((long long)v7, a1, &v4);
return (unsigned int)my_sync_dir(v7, (unsigned int)v5 & 0xFFFFFDFF, a3);
}
| my_sync_dir_by_file:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x240
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x218],RDI
MOV qword ptr [RBP + -0x220],RSI
MOV RSI,qword ptr [RBP + -0x218]
LEA RDI,[RBP + -0x210]
MOV qword ptr [RBP + -0x238],RDI
LEA RDX,[RBP + -0x228]
CALL 0x001dec70
MOV RDI,qword ptr [RBP + -0x238]
MOV RAX,qword ptr [RBP + -0x220]
AND EAX,0xfffffdff
MOV ESI,EAX
CALL 0x001f51e0
MOV dword ptr [RBP + -0x22c],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001f5318
MOV EAX,dword ptr [RBP + -0x22c]
ADD RSP,0x240
POP RBP
RET
LAB_001f5318:
CALL 0x0012a260
|
int4 my_sync_dir_by_file(int8 param_1,int8 param_2)
{
int4 uVar1;
long in_FS_OFFSET;
int1 local_230 [8];
int8 local_228;
int8 local_220;
int1 local_218 [520];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_228 = param_2;
local_220 = param_1;
dirname_part(local_218,param_1,local_230);
uVar1 = my_sync_dir(local_218,(uint)local_228 & 0xfffffdff);
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return uVar1;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
28,181 | my_strxfrm_pad_desc_and_reverse_nopad | eloqsql/strings/ctype-simple.c | size_t
my_strxfrm_pad_desc_and_reverse_nopad(CHARSET_INFO *cs,
uchar *str, uchar *frmend, uchar *strend,
uint nweights, uint flags, uint level)
{
if (nweights && frmend < strend && (flags & MY_STRXFRM_PAD_WITH_SPACE))
{
uint fill_length= MY_MIN((uint) (strend - frmend), nweights * cs->mbminlen);
memset(frmend, 0x00, fill_length);
frmend+= fill_length;
}
my_strxfrm_desc_and_reverse(str, frmend, flags, level);
if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && frmend < strend)
{
size_t fill_length= strend - frmend;
memset(frmend, 0x00, fill_length);
frmend= strend;
}
return frmend - str;
} | O3 | c | my_strxfrm_pad_desc_and_reverse_nopad:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %r12d
movq %rcx, %r15
movq %rdx, %r14
movq %rsi, %rbx
movl 0x10(%rbp), %ecx
testl %r8d, %r8d
sete %al
cmpq %r15, %rdx
setae %sil
testb $0x40, %r12b
sete %dl
orb %al, %dl
orb %sil, %dl
jne 0xb4ddd
movl %r8d, %r13d
movl %r15d, %eax
imull 0x98(%rdi), %r13d
subl %r14d, %eax
cmpl %eax, %r13d
cmovael %eax, %r13d
movq %r14, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x292c0
movl 0x10(%rbp), %ecx
addq %r13, %r14
movq %rbx, %rdi
movq %r14, %rsi
movl %r12d, %edx
callq 0xb661e
testb %r12b, %r12b
jns 0xb4e08
cmpq %r15, %r14
jae 0xb4e08
movq %r15, %rdx
subq %r14, %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x292c0
movq %r15, %r14
subq %rbx, %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_strxfrm_pad_desc_and_reverse_nopad:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r12d, r9d
mov r15, rcx
mov r14, rdx
mov rbx, rsi
mov ecx, [rbp+arg_0]
test r8d, r8d
setz al
cmp rdx, r15
setnb sil
test r12b, 40h
setz dl
or dl, al
or dl, sil
jnz short loc_B4DDD
mov r13d, r8d
mov eax, r15d
imul r13d, [rdi+98h]
sub eax, r14d
cmp r13d, eax
cmovnb r13d, eax
mov rdi, r14
xor esi, esi
mov rdx, r13
call _memset
mov ecx, [rbp+arg_0]
add r14, r13
loc_B4DDD:
mov rdi, rbx
mov rsi, r14
mov edx, r12d
call my_strxfrm_desc_and_reverse
test r12b, r12b
jns short loc_B4E08
cmp r14, r15
jnb short loc_B4E08
mov rdx, r15
sub rdx, r14
mov rdi, r14
xor esi, esi
call _memset
mov r14, r15
loc_B4E08:
sub r14, rbx
mov rax, r14
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_strxfrm_pad_desc_and_reverse_nopad(
long long a1,
long long a2,
unsigned long long a3,
unsigned long long a4,
int a5,
unsigned int a6,
unsigned int a7)
{
unsigned long long v9; // r14
long long v10; // rcx
long long v11; // r13
v9 = a3;
v10 = a7;
if ( a3 < a4 && a5 != 0 && (a6 & 0x40) != 0 )
{
v11 = (unsigned int)(*(_DWORD *)(a1 + 152) * a5);
if ( (unsigned int)v11 >= (int)a4 - (int)a3 )
v11 = (unsigned int)(a4 - a3);
memset(a3, 0LL, v11);
v10 = a7;
v9 += v11;
}
my_strxfrm_desc_and_reverse(a2, v9, a6, v10);
if ( (a6 & 0x80u) != 0 && v9 < a4 )
{
memset(v9, 0LL, a4 - v9);
v9 = a4;
}
return v9 - a2;
}
| my_strxfrm_pad_desc_and_reverse_nopad:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R12D,R9D
MOV R15,RCX
MOV R14,RDX
MOV RBX,RSI
MOV ECX,dword ptr [RBP + 0x10]
TEST R8D,R8D
SETZ AL
CMP RDX,R15
SETNC SIL
TEST R12B,0x40
SETZ DL
OR DL,AL
OR DL,SIL
JNZ 0x001b4ddd
MOV R13D,R8D
MOV EAX,R15D
IMUL R13D,dword ptr [RDI + 0x98]
SUB EAX,R14D
CMP R13D,EAX
CMOVNC R13D,EAX
MOV RDI,R14
XOR ESI,ESI
MOV RDX,R13
CALL 0x001292c0
MOV ECX,dword ptr [RBP + 0x10]
ADD R14,R13
LAB_001b4ddd:
MOV RDI,RBX
MOV RSI,R14
MOV EDX,R12D
CALL 0x001b661e
TEST R12B,R12B
JNS 0x001b4e08
CMP R14,R15
JNC 0x001b4e08
MOV RDX,R15
SUB RDX,R14
MOV RDI,R14
XOR ESI,ESI
CALL 0x001292c0
MOV R14,R15
LAB_001b4e08:
SUB R14,RBX
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_strxfrm_pad_desc_and_reverse_nopad
(long param_1,long param_2,void *param_3,void *param_4,int param_5,uint param_6,
int4 param_7)
{
uint uVar1;
uint uVar2;
if (((param_6 & 0x40) != 0 && param_5 != 0) && param_3 < param_4) {
uVar2 = param_5 * *(int *)(param_1 + 0x98);
uVar1 = (int)param_4 - (int)param_3;
if (uVar1 <= uVar2) {
uVar2 = uVar1;
}
memset(param_3,0,(ulong)uVar2);
param_3 = (void *)((long)param_3 + (ulong)uVar2);
}
my_strxfrm_desc_and_reverse(param_2,param_3,param_6,param_7);
if (((char)param_6 < '\0') && (param_3 < param_4)) {
memset(param_3,0,(long)param_4 - (long)param_3);
param_3 = param_4;
}
return (long)param_3 - param_2;
}
| |
28,182 | ma_hashtbl_init | eloqsql/libmariadb/libmariadb/ma_hashtbl.c | my_bool _ma_hashtbl_init(MA_HASHTBL *hash,uint size,uint key_offset,uint key_length,
hash_get_key get_key,
void (*free_element)(void*),uint flags CALLER_INFO_PROTO)
{
hash->records=0;
if (ma_init_dynamic_array_ci(&hash->array,sizeof(MA_HASHTBL_LINK),size,0))
{
hash->free=0; /* Allow call to hash_free */
return(TRUE);
}
hash->key_offset=key_offset;
hash->key_length=key_length;
hash->blength=1;
hash->current_record= NO_RECORD; /* For the future */
hash->get_key=get_key;
hash->free=free_element;
hash->flags=flags;
if (flags & MA_HASHTBL_CASE_INSENSITIVE)
hash->calc_hashnr=calc_hashnr_caseup;
else
hash->calc_hashnr=calc_hashnr;
return(0);
} | O0 | c | ma_hashtbl_init:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movl %edx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
movl $0x0, 0x8(%rax)
movq -0x10(%rbp), %rdi
addq $0x18, %rdi
movl -0x14(%rbp), %edx
movl $0x10, %esi
xorl %ecx, %ecx
callq 0x42810
cmpb $0x0, %al
je 0x446f8
movq -0x10(%rbp), %rax
movq $0x0, 0x38(%rax)
movb $0x1, -0x1(%rbp)
jmp 0x44772
movl -0x18(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
movl -0x1c(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
movq -0x10(%rbp), %rax
movl $0x1, 0xc(%rax)
movq -0x10(%rbp), %rax
movl $0xffffffff, 0x10(%rax) # imm = 0xFFFFFFFF
movq -0x28(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x38(%rax)
movl 0x10(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x14(%rax)
movl 0x10(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x4475f
movq -0x10(%rbp), %rax
leaq 0x27(%rip), %rcx # 0x44780
movq %rcx, 0x40(%rax)
jmp 0x4476e
movq -0x10(%rbp), %rax
leaq 0x96(%rip), %rcx # 0x44800
movq %rcx, 0x40(%rax)
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| _ma_hashtbl_init:
push rbp
mov rbp, rsp
sub rsp, 30h
mov eax, [rbp+arg_0]
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_18], edx
mov [rbp+var_1C], ecx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+var_10]
mov dword ptr [rax+8], 0
mov rdi, [rbp+var_10]
add rdi, 18h
mov edx, [rbp+var_14]
mov esi, 10h
xor ecx, ecx
call ma_init_dynamic_array
cmp al, 0
jz short loc_446F8
mov rax, [rbp+var_10]
mov qword ptr [rax+38h], 0
mov [rbp+var_1], 1
jmp short loc_44772
loc_446F8:
mov ecx, [rbp+var_18]
mov rax, [rbp+var_10]
mov [rax], ecx
mov ecx, [rbp+var_1C]
mov rax, [rbp+var_10]
mov [rax+4], ecx
mov rax, [rbp+var_10]
mov dword ptr [rax+0Ch], 1
mov rax, [rbp+var_10]
mov dword ptr [rax+10h], 0FFFFFFFFh
mov rcx, [rbp+var_28]
mov rax, [rbp+var_10]
mov [rax+30h], rcx
mov rcx, [rbp+var_30]
mov rax, [rbp+var_10]
mov [rax+38h], rcx
mov ecx, [rbp+arg_0]
mov rax, [rbp+var_10]
mov [rax+14h], ecx
mov eax, [rbp+arg_0]
and eax, 1
cmp eax, 0
jz short loc_4475F
mov rax, [rbp+var_10]
lea rcx, calc_hashnr_caseup
mov [rax+40h], rcx
jmp short loc_4476E
loc_4475F:
mov rax, [rbp+var_10]
lea rcx, calc_hashnr
mov [rax+40h], rcx
loc_4476E:
mov [rbp+var_1], 0
loc_44772:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
| char ma_hashtbl_init(long long a1, unsigned int a2, int a3, int a4, long long a5, long long a6, int a7)
{
*(_DWORD *)(a1 + 8) = 0;
if ( ma_init_dynamic_array(a1 + 24, 0x10u, a2, 0) )
{
*(_QWORD *)(a1 + 56) = 0LL;
return 1;
}
else
{
*(_DWORD *)a1 = a3;
*(_DWORD *)(a1 + 4) = a4;
*(_DWORD *)(a1 + 12) = 1;
*(_DWORD *)(a1 + 16) = -1;
*(_QWORD *)(a1 + 48) = a5;
*(_QWORD *)(a1 + 56) = a6;
*(_DWORD *)(a1 + 20) = a7;
if ( (a7 & 1) != 0 )
*(_QWORD *)(a1 + 64) = calc_hashnr_caseup;
else
*(_QWORD *)(a1 + 64) = calc_hashnr;
return 0;
}
}
| _ma_hashtbl_init:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV EAX,dword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV dword ptr [RBP + -0x18],EDX
MOV dword ptr [RBP + -0x1c],ECX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x8],0x0
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x18
MOV EDX,dword ptr [RBP + -0x14]
MOV ESI,0x10
XOR ECX,ECX
CALL 0x00142810
CMP AL,0x0
JZ 0x001446f8
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x38],0x0
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00144772
LAB_001446f8:
MOV ECX,dword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX],ECX
MOV ECX,dword ptr [RBP + -0x1c]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x4],ECX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0xc],0x1
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x10],0xffffffff
MOV RCX,qword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x30],RCX
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x38],RCX
MOV ECX,dword ptr [RBP + 0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x14],ECX
MOV EAX,dword ptr [RBP + 0x10]
AND EAX,0x1
CMP EAX,0x0
JZ 0x0014475f
MOV RAX,qword ptr [RBP + -0x10]
LEA RCX,[0x144780]
MOV qword ptr [RAX + 0x40],RCX
JMP 0x0014476e
LAB_0014475f:
MOV RAX,qword ptr [RBP + -0x10]
LEA RCX,[0x144800]
MOV qword ptr [RAX + 0x40],RCX
LAB_0014476e:
MOV byte ptr [RBP + -0x1],0x0
LAB_00144772:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
int1
_ma_hashtbl_init(int4 *param_1,int4 param_2,int4 param_3,int4 param_4,
int8 param_5,int8 param_6,uint param_7)
{
char cVar1;
int1 local_9;
param_1[2] = 0;
cVar1 = ma_init_dynamic_array(param_1 + 6,0x10,param_2,0);
if (cVar1 == '\0') {
*param_1 = param_3;
param_1[1] = param_4;
param_1[3] = 1;
param_1[4] = 0xffffffff;
*(int8 *)(param_1 + 0xc) = param_5;
*(int8 *)(param_1 + 0xe) = param_6;
param_1[5] = param_7;
if ((param_7 & 1) == 0) {
*(code **)(param_1 + 0x10) = calc_hashnr;
}
else {
*(code **)(param_1 + 0x10) = calc_hashnr_caseup;
}
local_9 = 0;
}
else {
*(int8 *)(param_1 + 0xe) = 0;
local_9 = 1;
}
return local_9;
}
| |
28,183 | ma_hashtbl_init | eloqsql/libmariadb/libmariadb/ma_hashtbl.c | my_bool _ma_hashtbl_init(MA_HASHTBL *hash,uint size,uint key_offset,uint key_length,
hash_get_key get_key,
void (*free_element)(void*),uint flags CALLER_INFO_PROTO)
{
hash->records=0;
if (ma_init_dynamic_array_ci(&hash->array,sizeof(MA_HASHTBL_LINK),size,0))
{
hash->free=0; /* Allow call to hash_free */
return(TRUE);
}
hash->key_offset=key_offset;
hash->key_length=key_length;
hash->blength=1;
hash->current_record= NO_RECORD; /* For the future */
hash->get_key=get_key;
hash->free=free_element;
hash->flags=flags;
if (flags & MA_HASHTBL_CASE_INSENSITIVE)
hash->calc_hashnr=calc_hashnr_caseup;
else
hash->calc_hashnr=calc_hashnr;
return(0);
} | O3 | c | ma_hashtbl_init:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r14
movq %r8, %r15
movl %ecx, %r12d
movl %edx, %r13d
movl %esi, %edx
movq %rdi, %rbx
movl $0x0, 0x8(%rdi)
addq $0x18, %rdi
movl $0x10, %esi
xorl %ecx, %ecx
callq 0x2f61c
testb %al, %al
je 0x30312
movq $0x0, 0x38(%rbx)
movb $0x1, %al
jmp 0x3034f
movl 0x10(%rbp), %eax
movl %r13d, (%rbx)
movl %r12d, 0x4(%rbx)
movabsq $-0xffffffff, %rcx # imm = 0xFFFFFFFF00000001
movq %rcx, 0xc(%rbx)
movq %r15, 0x30(%rbx)
movq %r14, 0x38(%rbx)
movl %eax, 0x14(%rbx)
testb $0x1, %al
jne 0x30342
leaq 0x80(%rip), %rax # 0x303c0
jmp 0x30349
leaq 0x15(%rip), %rax # 0x3035e
movq %rax, 0x40(%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ma_hashtbl_init:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, r9
mov r15, r8
mov r12d, ecx
mov r13d, edx
mov edx, esi
mov rbx, rdi
mov dword ptr [rdi+8], 0
add rdi, 18h
mov esi, 10h
xor ecx, ecx
call ma_init_dynamic_array
test al, al
jz short loc_30312
mov qword ptr [rbx+38h], 0
mov al, 1
jmp short loc_3034F
loc_30312:
mov eax, [rbp+arg_0]
mov [rbx], r13d
mov [rbx+4], r12d
mov rcx, 0FFFFFFFF00000001h
mov [rbx+0Ch], rcx
mov [rbx+30h], r15
mov [rbx+38h], r14
mov [rbx+14h], eax
test al, 1
jnz short loc_30342
lea rax, calc_hashnr
jmp short loc_30349
loc_30342:
lea rax, calc_hashnr_caseup
loc_30349:
mov [rbx+40h], rax
xor eax, eax
loc_3034F:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| char ma_hashtbl_init(long long a1, unsigned int a2, int a3, int a4, long long a5, long long a6, int a7)
{
long long ( *v12)(); // rax
*(_DWORD *)(a1 + 8) = 0;
if ( (unsigned __int8)ma_init_dynamic_array(a1 + 24, 0x10u, a2, 0) )
{
*(_QWORD *)(a1 + 56) = 0LL;
return 1;
}
else
{
*(_DWORD *)a1 = a3;
*(_DWORD *)(a1 + 4) = a4;
*(_QWORD *)(a1 + 12) = 0xFFFFFFFF00000001LL;
*(_QWORD *)(a1 + 48) = a5;
*(_QWORD *)(a1 + 56) = a6;
*(_DWORD *)(a1 + 20) = a7;
if ( (a7 & 1) != 0 )
v12 = calc_hashnr_caseup;
else
v12 = calc_hashnr;
*(_QWORD *)(a1 + 64) = v12;
return 0;
}
}
| _ma_hashtbl_init:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,R9
MOV R15,R8
MOV R12D,ECX
MOV R13D,EDX
MOV EDX,ESI
MOV RBX,RDI
MOV dword ptr [RDI + 0x8],0x0
ADD RDI,0x18
MOV ESI,0x10
XOR ECX,ECX
CALL 0x0012f61c
TEST AL,AL
JZ 0x00130312
MOV qword ptr [RBX + 0x38],0x0
MOV AL,0x1
JMP 0x0013034f
LAB_00130312:
MOV EAX,dword ptr [RBP + 0x10]
MOV dword ptr [RBX],R13D
MOV dword ptr [RBX + 0x4],R12D
MOV RCX,-0xffffffff
MOV qword ptr [RBX + 0xc],RCX
MOV qword ptr [RBX + 0x30],R15
MOV qword ptr [RBX + 0x38],R14
MOV dword ptr [RBX + 0x14],EAX
TEST AL,0x1
JNZ 0x00130342
LEA RAX,[0x1303c0]
JMP 0x00130349
LAB_00130342:
LEA RAX,[0x13035e]
LAB_00130349:
MOV qword ptr [RBX + 0x40],RAX
XOR EAX,EAX
LAB_0013034f:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8
_ma_hashtbl_init(int4 *param_1,int4 param_2,int4 param_3,int4 param_4,
int8 param_5,int8 param_6,uint param_7)
{
char cVar1;
int8 uVar2;
code *pcVar3;
param_1[2] = 0;
cVar1 = ma_init_dynamic_array(param_1 + 6,0x10,param_2,0);
if (cVar1 == '\0') {
*param_1 = param_3;
param_1[1] = param_4;
*(int8 *)(param_1 + 3) = 0xffffffff00000001;
*(int8 *)(param_1 + 0xc) = param_5;
*(int8 *)(param_1 + 0xe) = param_6;
param_1[5] = param_7;
if ((param_7 & 1) == 0) {
pcVar3 = calc_hashnr;
}
else {
pcVar3 = calc_hashnr_caseup;
}
*(code **)(param_1 + 0x10) = pcVar3;
uVar2 = 0;
}
else {
*(int8 *)(param_1 + 0xe) = 0;
uVar2 = 1;
}
return uVar2;
}
| |
28,184 | my_rnd_init | eloqsql/mysys/my_rnd.c | void my_rnd_init(struct my_rnd_struct *rand_st, ulong seed1, ulong seed2)
{
#ifdef HAVE_valgrind
bzero((char*) rand_st,sizeof(*rand_st)); /* Avoid UMC varnings */
#endif
rand_st->max_value= 0x3FFFFFFFL;
rand_st->max_value_dbl=(double) rand_st->max_value;
rand_st->seed1=seed1%rand_st->max_value ;
rand_st->seed2=seed2%rand_st->max_value;
} | O0 | c | my_rnd_init:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq $0x3fffffff, 0x10(%rax) # imm = 0x3FFFFFFF
movq -0x8(%rbp), %rax
movq 0x10(%rax), %xmm0
movaps 0x59e34(%rip), %xmm1 # 0x18a040
punpckldq %xmm1, %xmm0 # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x59e38(%rip), %xmm1 # 0x18a050
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0 # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movq -0x8(%rbp), %rax
movsd %xmm0, 0x18(%rax)
movq -0x10(%rbp), %rax
movq -0x8(%rbp), %rcx
xorl %edx, %edx
divq 0x10(%rcx)
movq -0x8(%rbp), %rax
movq %rdx, (%rax)
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
xorl %edx, %edx
divq 0x10(%rcx)
movq -0x8(%rbp), %rax
movq %rdx, 0x8(%rax)
popq %rbp
retq
nopl (%rax)
| my_rnd_init:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rax, [rbp+var_8]
mov qword ptr [rax+10h], 3FFFFFFFh
mov rax, [rbp+var_8]
movq xmm0, qword ptr [rax+10h]
movaps xmm1, cs:xmmword_18A040
punpckldq xmm0, xmm1
movapd xmm1, cs:xmmword_18A050
subpd xmm0, xmm1
movaps xmm1, xmm0
unpckhpd xmm0, xmm0
addsd xmm0, xmm1
mov rax, [rbp+var_8]
movsd qword ptr [rax+18h], xmm0
mov rax, [rbp+var_10]
mov rcx, [rbp+var_8]
xor edx, edx
div qword ptr [rcx+10h]
mov rax, [rbp+var_8]
mov [rax], rdx
mov rax, [rbp+var_18]
mov rcx, [rbp+var_8]
xor edx, edx
div qword ptr [rcx+10h]
mov rax, [rbp+var_8]
mov [rax+8], rdx
pop rbp
retn
| long long my_rnd_init(long long a1, unsigned long long a2, unsigned long long a3)
{
__m128d v3; // xmm1
long long result; // rax
*(_QWORD *)(a1 + 16) = 0x3FFFFFFFLL;
v3 = _mm_sub_pd(
(__m128d)_mm_unpacklo_epi32(_mm_loadl_epi64((const __m128i *)(a1 + 16)), (__m128i)xmmword_18A040),
(__m128d)xmmword_18A050);
*(double *)(a1 + 24) = _mm_unpackhi_pd(v3, v3).m128d_f64[0] + v3.m128d_f64[0];
*(_QWORD *)a1 = a2 % *(_QWORD *)(a1 + 16);
result = a1;
*(_QWORD *)(a1 + 8) = a3 % *(_QWORD *)(a1 + 16);
return result;
}
| |||
28,185 | my_rnd_init | eloqsql/mysys/my_rnd.c | void my_rnd_init(struct my_rnd_struct *rand_st, ulong seed1, ulong seed2)
{
#ifdef HAVE_valgrind
bzero((char*) rand_st,sizeof(*rand_st)); /* Avoid UMC varnings */
#endif
rand_st->max_value= 0x3FFFFFFFL;
rand_st->max_value_dbl=(double) rand_st->max_value;
rand_st->seed1=seed1%rand_st->max_value ;
rand_st->seed2=seed2%rand_st->max_value;
} | O3 | c | my_rnd_init:
pushq %rbp
movq %rsp, %rbp
movq %rdx, %rcx
movq $0x3fffffff, 0x10(%rdi) # imm = 0x3FFFFFFF
movabsq $0x41cfffffff800000, %rax # imm = 0x41CFFFFFFF800000
movq %rax, 0x18(%rdi)
movabsq $0x400000011, %r8 # imm = 0x400000011
movq %rsi, %rax
mulq %r8
movq %rsi, %r9
subq %rdx, %r9
shrq %r9
addq %rdx, %r9
shrq $0x1d, %r9
movq %r9, %rax
shlq $0x1e, %rax
subq %rax, %r9
addq %rsi, %r9
movq %rcx, %rax
mulq %r8
movq %r9, (%rdi)
movq %rcx, %rax
subq %rdx, %rax
shrq %rax
addq %rdx, %rax
shrq $0x1d, %rax
movq %rax, %rdx
shlq $0x1e, %rdx
subq %rdx, %rax
addq %rcx, %rax
movq %rax, 0x8(%rdi)
popq %rbp
retq
| my_rnd_init:
push rbp
mov rbp, rsp
mov rcx, rdx
mov qword ptr [rdi+10h], 3FFFFFFFh
mov rax, 41CFFFFFFF800000h
mov [rdi+18h], rax
mov r8, 400000011h
mov rax, rsi
mul r8
mov r9, rsi
sub r9, rdx
shr r9, 1
add r9, rdx
shr r9, 1Dh
mov rax, r9
shl rax, 1Eh
sub r9, rax
add r9, rsi
mov rax, rcx
mul r8
mov [rdi], r9
mov rax, rcx
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 1Dh
mov rdx, rax
shl rdx, 1Eh
sub rax, rdx
add rax, rcx
mov [rdi+8], rax
pop rbp
retn
| unsigned long long my_rnd_init(unsigned long long *a1, unsigned long long a2, unsigned long long a3)
{
unsigned long long result; // rax
a1[2] = 0x3FFFFFFFLL;
a1[3] = 0x41CFFFFFFF800000LL;
*a1 = a2 % 0x3FFFFFFF;
result = a3 % 0x3FFFFFFF;
a1[1] = a3 % 0x3FFFFFFF;
return result;
}
| my_rnd_init:
PUSH RBP
MOV RBP,RSP
MOV RCX,RDX
MOV qword ptr [RDI + 0x10],0x3fffffff
MOV RAX,0x41cfffffff800000
MOV qword ptr [RDI + 0x18],RAX
MOV R8,0x400000011
MOV RAX,RSI
MUL R8
MOV R9,RSI
SUB R9,RDX
SHR R9,0x1
ADD R9,RDX
SHR R9,0x1d
MOV RAX,R9
SHL RAX,0x1e
SUB R9,RAX
ADD R9,RSI
MOV RAX,RCX
MUL R8
MOV qword ptr [RDI],R9
MOV RAX,RCX
SUB RAX,RDX
SHR RAX,0x1
ADD RAX,RDX
SHR RAX,0x1d
MOV RDX,RAX
SHL RDX,0x1e
SUB RAX,RDX
ADD RAX,RCX
MOV qword ptr [RDI + 0x8],RAX
POP RBP
RET
|
void my_rnd_init(ulong *param_1,ulong param_2,ulong param_3)
{
param_1[2] = 0x3fffffff;
param_1[3] = 0x41cfffffff800000;
*param_1 = param_2 % 0x3fffffff;
param_1[1] = param_3 % 0x3fffffff;
return;
}
| |
28,186 | eth_get_account_value | corpus-core[P]colibri-stateless/src/chains/eth/verifier/eth_account.c | void eth_get_account_value(ssz_ob_t account, eth_account_field_t field, bytes32_t value) {
bytes_t last_value = get_last_value(ssz_get(&account, "accountProof"));
if (!last_value.data) return;
if (rlp_decode(&last_value, 0, &last_value) != RLP_LIST) return;
if (rlp_decode(&last_value, field - 1, &last_value) != RLP_ITEM) return;
if (last_value.len > 32) return;
memcpy(value + 32 - last_value.len, last_value.data, last_value.len);
} | O0 | c | eth_get_account_value:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rsi, %rax
leaq 0x10(%rbp), %rsi
movl %edi, -0x4(%rbp)
movq %rax, -0x10(%rbp)
leaq -0x38(%rbp), %rdi
leaq 0x3f210(%rip), %rdx # 0x52671
callq 0x1c760
leaq -0x38(%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 0x132e0
movl %eax, -0x20(%rbp)
movq %rdx, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x13498
jmp 0x134f1
leaq -0x20(%rbp), %rdx
xorl %esi, %esi
movq %rdx, %rdi
callq 0x15f10
cmpl $0x2, %eax
je 0x134ad
jmp 0x134f1
movl -0x4(%rbp), %esi
subl $0x1, %esi
leaq -0x20(%rbp), %rdx
movq %rdx, %rdi
callq 0x15f10
cmpl $0x1, %eax
je 0x134c6
jmp 0x134f1
cmpl $0x20, -0x20(%rbp)
jbe 0x134ce
jmp 0x134f1
movq -0x10(%rbp), %rdi
addq $0x20, %rdi
movl -0x20(%rbp), %eax
movl %eax, %ecx
xorl %eax, %eax
subq %rcx, %rax
addq %rax, %rdi
movq -0x18(%rbp), %rsi
movl -0x20(%rbp), %eax
movl %eax, %edx
callq 0x5060
addq $0x50, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| eth_get_account_value:
push rbp
mov rbp, rsp
sub rsp, 50h
mov rax, rsi
lea rsi, [rbp+arg_0]
mov [rbp+var_4], edi
mov [rbp+var_10], rax
lea rdi, [rbp+var_38]
lea rdx, aAccountproof; "accountProof"
call ssz_get
lea rax, [rbp+var_38]
mov rcx, [rax]
mov [rsp+50h+var_50], rcx
mov rcx, [rax+8]
mov [rsp+50h+var_48], rcx
mov rax, [rax+10h]
mov [rsp+50h+var_40], rax
call get_last_value
mov [rbp+var_20], eax
mov [rbp+var_18], rdx
cmp [rbp+var_18], 0
jnz short loc_13498
jmp short loc_134F1
loc_13498:
lea rdx, [rbp+var_20]
xor esi, esi
mov rdi, rdx
call rlp_decode
cmp eax, 2
jz short loc_134AD
jmp short loc_134F1
loc_134AD:
mov esi, [rbp+var_4]
sub esi, 1
lea rdx, [rbp+var_20]
mov rdi, rdx
call rlp_decode
cmp eax, 1
jz short loc_134C6
jmp short loc_134F1
loc_134C6:
cmp [rbp+var_20], 20h ; ' '
jbe short loc_134CE
jmp short loc_134F1
loc_134CE:
mov rdi, [rbp+var_10]
add rdi, 20h ; ' '
mov eax, [rbp+var_20]
mov ecx, eax
xor eax, eax
sub rax, rcx
add rdi, rax
mov rsi, [rbp+var_18]
mov eax, [rbp+var_20]
mov edx, eax
call _memcpy
loc_134F1:
add rsp, 50h
pop rbp
retn
| long long eth_get_account_value(int a1, long long a2, long long a3, long long a4, long long a5, long long a6, char a7)
{
int v7; // edx
int v8; // r8d
int v9; // r9d
long long result; // rax
long long v11; // rdx
long long v12; // [rsp+18h] [rbp-38h] BYREF
long long v13; // [rsp+20h] [rbp-30h]
long long v14; // [rsp+28h] [rbp-28h]
unsigned int v15; // [rsp+30h] [rbp-20h] BYREF
long long v16; // [rsp+38h] [rbp-18h]
long long v17; // [rsp+40h] [rbp-10h]
int v18; // [rsp+4Ch] [rbp-4h]
v18 = a1;
v17 = a2;
ssz_get(&v12, &a7, "accountProof");
result = get_last_value((int)&v12, (int)&a7, v7, v13, v8, v9, v12, v13, v14);
v15 = result;
v16 = v11;
if ( v11 )
{
result = rlp_decode(&v15, 0LL);
if ( (_DWORD)result == 2 )
{
result = rlp_decode(&v15, (unsigned int)(v18 - 1));
if ( (_DWORD)result == 1 && v15 <= 0x20 )
return memcpy(v17 + 32 - v15, v16, v15);
}
}
return result;
}
| eth_get_account_value:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV RAX,RSI
LEA RSI,[RBP + 0x10]
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RAX
LEA RDI,[RBP + -0x38]
LEA RDX,[0x152671]
CALL 0x0011c760
LEA RAX,[RBP + -0x38]
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 0x001132e0
MOV dword ptr [RBP + -0x20],EAX
MOV qword ptr [RBP + -0x18],RDX
CMP qword ptr [RBP + -0x18],0x0
JNZ 0x00113498
JMP 0x001134f1
LAB_00113498:
LEA RDX,[RBP + -0x20]
XOR ESI,ESI
MOV RDI,RDX
CALL 0x00115f10
CMP EAX,0x2
JZ 0x001134ad
JMP 0x001134f1
LAB_001134ad:
MOV ESI,dword ptr [RBP + -0x4]
SUB ESI,0x1
LEA RDX,[RBP + -0x20]
MOV RDI,RDX
CALL 0x00115f10
CMP EAX,0x1
JZ 0x001134c6
JMP 0x001134f1
LAB_001134c6:
CMP dword ptr [RBP + -0x20],0x20
JBE 0x001134ce
JMP 0x001134f1
LAB_001134ce:
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x20
MOV EAX,dword ptr [RBP + -0x20]
MOV ECX,EAX
XOR EAX,EAX
SUB RAX,RCX
ADD RDI,RAX
MOV RSI,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x20]
MOV EDX,EAX
CALL 0x00105060
LAB_001134f1:
ADD RSP,0x50
POP RBP
RET
|
void eth_get_account_value(int param_1,long param_2)
{
int iVar1;
void *extraout_RDX;
int1 local_40 [24];
uint local_28 [2];
void *local_20;
long local_18;
int local_c;
local_18 = param_2;
local_c = param_1;
ssz_get(local_40,&stack0x00000008,"accountProof");
local_28[0] = get_last_value();
if ((((extraout_RDX != (void *)0x0) &&
(local_20 = extraout_RDX, iVar1 = rlp_decode(local_28,0), iVar1 == 2)) &&
(iVar1 = rlp_decode(local_28,local_c + -1), iVar1 == 1)) && (local_28[0] < 0x21)) {
memcpy((void *)((local_18 + 0x20) - (ulong)local_28[0]),local_20,(ulong)local_28[0]);
}
return;
}
| |
28,187 | Catch::matchTest(Catch::TestCaseHandle const&, Catch::TestSpec const&, Catch::IConfig const&) | AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.cpp | bool matchTest( TestCaseHandle const& testCase, TestSpec const& testSpec, IConfig const& config ) {
return testSpec.matches( testCase.getTestCaseInfo() ) && isThrowSafe( testCase, config );
} | O3 | cpp | Catch::matchTest(Catch::TestCaseHandle const&, Catch::TestSpec const&, Catch::IConfig const&):
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %rax
movq %rdi, %r14
movq (%rdi), %rsi
movq %rax, %rdi
callq 0x578f2
testb %al, %al
je 0x61eee
movq (%r14), %rcx
movb $0x1, %al
testb $0x10, 0x78(%rcx)
je 0x61ef0
movq (%rbx), %rax
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *0x10(%rax)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| _ZN5Catch9matchTestERKNS_14TestCaseHandleERKNS_8TestSpecERKNS_7IConfigE:
push r14
push rbx
push rax
mov rbx, rdx
mov rax, rsi
mov r14, rdi
mov rsi, [rdi]; Catch::TestCaseInfo *
mov rdi, rax; this
call _ZNK5Catch8TestSpec7matchesERKNS_12TestCaseInfoE; Catch::TestSpec::matches(Catch::TestCaseInfo const&)
test al, al
jz short loc_61EEE
mov rcx, [r14]
mov al, 1
test byte ptr [rcx+78h], 10h
jz short loc_61EF0
mov rax, [rbx]
mov rdi, rbx
add rsp, 8
pop rbx
pop r14
jmp qword ptr [rax+10h]
loc_61EEE:
xor eax, eax
loc_61EF0:
add rsp, 8
pop rbx
pop r14
retn
| char Catch::matchTest(
const Catch::TestCaseInfo **this,
const Catch::TestCaseHandle *a2,
const Catch::TestSpec *a3,
const Catch::IConfig *a4)
{
char result; // al
if ( !Catch::TestSpec::matches(a2, *this) )
return 0;
result = 1;
if ( (*((_BYTE *)*this + 120) & 0x10) != 0 )
return (*(long long ( **)(const Catch::TestSpec *))(*(_QWORD *)a3 + 16LL))(a3);
return result;
}
| matchTest:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV RAX,RSI
MOV R14,RDI
MOV RSI,qword ptr [RDI]
MOV RDI,RAX
CALL 0x001578f2
TEST AL,AL
JZ 0x00161eee
MOV RCX,qword ptr [R14]
MOV AL,0x1
TEST byte ptr [RCX + 0x78],0x10
JZ 0x00161ef0
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R14
JMP qword ptr [RAX + 0x10]
LAB_00161eee:
XOR EAX,EAX
LAB_00161ef0:
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* Catch::matchTest(Catch::TestCaseHandle const&, Catch::TestSpec const&, Catch::IConfig const&) */
int8 Catch::matchTest(TestCaseHandle *param_1,TestSpec *param_2,IConfig *param_3)
{
char cVar1;
int8 uVar2;
cVar1 = TestSpec::matches(param_2,*(TestCaseInfo **)param_1);
if (cVar1 == '\0') {
uVar2 = 0;
}
else {
uVar2 = 1;
if ((*(byte *)(*(long *)param_1 + 0x78) & 0x10) != 0) {
/* WARNING: Could not recover jumptable at 0x00161eeb. Too many branches */
/* WARNING: Treating indirect jump as call */
uVar2 = (**(code **)(*(long *)param_3 + 0x10))(param_3);
return uVar2;
}
}
return uVar2;
}
| |
28,188 | spdlog::details::registry::flush_on(spdlog::level::level_enum) | AlayaLite/build_O3/_deps/spdlog-src/include/spdlog/details/registry-inl.h | SPDLOG_INLINE void registry::flush_on(level::level_enum log_level) {
std::lock_guard<std::mutex> lock(logger_map_mutex_);
for (auto &l : loggers_) {
l.second->flush_on(log_level);
}
flush_level_ = log_level;
} | O3 | c | spdlog::details::registry::flush_on(spdlog::level::level_enum):
pushq %rbp
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
callq 0x11350
testl %eax, %eax
jne 0x2dc93
movq 0x88(%rbx), %rax
testq %rax, %rax
je 0x2dc7f
movq 0x28(%rax), %rcx
movl %ebp, %edx
xchgl %edx, 0x44(%rcx)
movq (%rax), %rax
jmp 0x2dc6c
movl %ebp, 0xf4(%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x112d0
movl %eax, %edi
callq 0x114f0
| _ZN6spdlog7details8registry8flush_onENS_5level10level_enumE:
push rbp
push rbx
push rax
mov ebp, esi
mov rbx, rdi
call _pthread_mutex_lock
test eax, eax
jnz short loc_2DC93
mov rax, [rbx+88h]
loc_2DC6C:
test rax, rax
jz short loc_2DC7F
mov rcx, [rax+28h]
mov edx, ebp
xchg edx, [rcx+44h]
mov rax, [rax]
jmp short loc_2DC6C
loc_2DC7F:
mov [rbx+0F4h], ebp
mov rdi, rbx
add rsp, 8
pop rbx
pop rbp
jmp _pthread_mutex_unlock
loc_2DC93:
mov edi, eax; int
call __ZSt20__throw_system_errori; std::__throw_system_error(int)
| long long spdlog::details::registry::flush_on(long long a1, __int32 a2)
{
int v2; // eax
_QWORD *i; // rax
v2 = pthread_mutex_lock(a1);
if ( v2 )
std::__throw_system_error(v2);
for ( i = *(_QWORD **)(a1 + 136); i; i = (_QWORD *)*i )
_InterlockedExchange((volatile __int32 *)(i[5] + 68LL), a2);
*(_DWORD *)(a1 + 244) = a2;
return pthread_mutex_unlock(a1);
}
| flush_on:
PUSH RBP
PUSH RBX
PUSH RAX
MOV EBP,ESI
MOV RBX,RDI
CALL 0x00111350
TEST EAX,EAX
JNZ 0x0012dc93
MOV RAX,qword ptr [RBX + 0x88]
LAB_0012dc6c:
TEST RAX,RAX
JZ 0x0012dc7f
MOV RCX,qword ptr [RAX + 0x28]
MOV EDX,EBP
XCHG dword ptr [RCX + 0x44],EDX
MOV RAX,qword ptr [RAX]
JMP 0x0012dc6c
LAB_0012dc7f:
MOV dword ptr [RBX + 0xf4],EBP
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x001112d0
LAB_0012dc93:
MOV EDI,EAX
CALL 0x001114f0
|
/* spdlog::details::registry::flush_on(spdlog::level::level_enum) */
void __thiscall spdlog::details::registry::flush_on(registry *this,int4 param_2)
{
int iVar1;
int8 *puVar2;
iVar1 = pthread_mutex_lock((pthread_mutex_t *)this);
if (iVar1 == 0) {
for (puVar2 = *(int8 **)(this + 0x88); puVar2 != (int8 *)0x0;
puVar2 = (int8 *)*puVar2) {
LOCK();
*(int4 *)(puVar2[5] + 0x44) = param_2;
UNLOCK();
}
*(int4 *)(this + 0xf4) = param_2;
pthread_mutex_unlock((pthread_mutex_t *)this);
return;
}
/* WARNING: Subroutine does not return */
std::__throw_system_error(iVar1);
}
| |
28,189 | fs_create_directory_with_parents(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | monkey531[P]llama/common/common.cpp | bool fs_create_directory_with_parents(const std::string & path) {
#ifdef _WIN32
std::wstring_convert<std::codecvt_utf8<wchar_t>> converter;
std::wstring wpath = converter.from_bytes(path);
// if the path already exists, check whether it's a directory
const DWORD attributes = GetFileAttributesW(wpath.c_str());
if ((attributes != INVALID_FILE_ATTRIBUTES) && (attributes & FILE_ATTRIBUTE_DIRECTORY)) {
return true;
}
size_t pos_slash = 0;
// process path from front to back, procedurally creating directories
while ((pos_slash = path.find('\\', pos_slash)) != std::string::npos) {
const std::wstring subpath = wpath.substr(0, pos_slash);
const wchar_t * test = subpath.c_str();
const bool success = CreateDirectoryW(test, NULL);
if (!success) {
const DWORD error = GetLastError();
// if the path already exists, ensure that it's a directory
if (error == ERROR_ALREADY_EXISTS) {
const DWORD attributes = GetFileAttributesW(subpath.c_str());
if (attributes == INVALID_FILE_ATTRIBUTES || !(attributes & FILE_ATTRIBUTE_DIRECTORY)) {
return false;
}
} else {
return false;
}
}
pos_slash += 1;
}
return true;
#else
// if the path already exists, check whether it's a directory
struct stat info;
if (stat(path.c_str(), &info) == 0) {
return S_ISDIR(info.st_mode);
}
size_t pos_slash = 1; // skip leading slashes for directory creation
// process path from front to back, procedurally creating directories
while ((pos_slash = path.find('/', pos_slash)) != std::string::npos) {
const std::string subpath = path.substr(0, pos_slash);
struct stat info;
// if the path already exists, ensure that it's a directory
if (stat(subpath.c_str(), &info) == 0) {
if (!S_ISDIR(info.st_mode)) {
return false;
}
} else {
// create parent directories
const int ret = mkdir(subpath.c_str(), 0755);
if (ret != 0) {
return false;
}
}
pos_slash += 1;
}
return true;
#endif // _WIN32
} | O1 | cpp | fs_create_directory_with_parents(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp # imm = 0x148
movq %rdi, %rbx
movq (%rdi), %rdi
leaq 0xb8(%rsp), %rsi
callq 0x1b800
testl %eax, %eax
je 0x739b5
movl $0x1, %r14d
leaq 0x18(%rsp), %r13
leaq 0x8(%rsp), %r15
leaq 0x28(%rsp), %r12
movq %rbx, %rdi
movl $0x2f, %esi
movq %r14, %rdx
callq 0x1bb30
movq %rax, %r14
cmpq $-0x1, %rax
sete %al
je 0x739c9
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
movq %r14, %rcx
callq 0x1b930
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x1b800
testl %eax, %eax
je 0x73979
movq 0x8(%rsp), %rdi
movl $0x1ed, %esi # imm = 0x1ED
callq 0x1b420
testl %eax, %eax
je 0x7398b
xorl %ebp, %ebp
jmp 0x73991
movl 0x40(%rsp), %eax
movl $0xf000, %ecx # imm = 0xF000
andl %ecx, %eax
cmpl $0x4000, %eax # imm = 0x4000
jne 0x73975
incq %r14
movb $0x1, %bpl
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x739a8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1b8e0
testb %bpl, %bpl
jne 0x73921
xorl %eax, %eax
jmp 0x739c9
movl $0xf000, %eax # imm = 0xF000
andl 0xd0(%rsp), %eax
cmpl $0x4000, %eax # imm = 0x4000
sete %al
addq $0x148, %rsp # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _Z32fs_create_directory_with_parentsRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 148h
mov rbx, rdi
mov rdi, [rdi]
lea rsi, [rsp+178h+var_C0]
call _stat
test eax, eax
jz loc_739B5
mov r14d, 1
lea r13, [rsp+178h+var_160]
lea r15, [rsp+178h+var_170]
lea r12, [rsp+178h+var_150]
loc_73921:
mov rdi, rbx
mov esi, 2Fh ; '/'
mov rdx, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm; std::string::find(char,ulong)
mov r14, rax
cmp rax, 0FFFFFFFFFFFFFFFFh
setz al
jz loc_739C9
mov rdi, r15
mov rsi, rbx
xor edx, edx
mov rcx, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
mov rdi, [rsp+178h+var_170]
mov rsi, r12
call _stat
test eax, eax
jz short loc_73979
mov rdi, [rsp+178h+var_170]
mov esi, 1EDh
call _mkdir
test eax, eax
jz short loc_7398B
loc_73975:
xor ebp, ebp
jmp short loc_73991
loc_73979:
mov eax, [rsp+178h+var_138]
mov ecx, 0F000h
and eax, ecx
cmp eax, 4000h
jnz short loc_73975
loc_7398B:
inc r14
mov bpl, 1
loc_73991:
mov rdi, [rsp+178h+var_170]; void *
cmp rdi, r13
jz short loc_739A8
mov rsi, [rsp+178h+var_160]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_739A8:
test bpl, bpl
jnz loc_73921
xor eax, eax
jmp short loc_739C9
loc_739B5:
mov eax, 0F000h
and eax, [rsp+178h+var_A8]
cmp eax, 4000h
setz al
loc_739C9:
add rsp, 148h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| bool fs_create_directory_with_parents(_QWORD *a1)
{
long long v1; // r14
bool result; // al
char v3; // bp
void *v4; // [rsp+8h] [rbp-170h] BYREF
long long v5; // [rsp+18h] [rbp-160h] BYREF
_BYTE v6[24]; // [rsp+28h] [rbp-150h] BYREF
int v7; // [rsp+40h] [rbp-138h]
_BYTE v8[24]; // [rsp+B8h] [rbp-C0h] BYREF
int v9; // [rsp+D0h] [rbp-A8h]
if ( (unsigned int)stat(*a1, v8) )
{
v1 = 1LL;
while ( 1 )
{
v1 = std::string::find(a1, 47LL, v1);
result = v1 == -1;
if ( v1 == -1 )
return result;
std::string::substr(&v4, a1, 0LL, v1);
if ( (unsigned int)stat(v4, v6) )
{
if ( !(unsigned int)mkdir(v4, 493LL) )
goto LABEL_8;
}
else if ( (v7 & 0xF000) == 0x4000 )
{
LABEL_8:
++v1;
v3 = 1;
goto LABEL_9;
}
v3 = 0;
LABEL_9:
if ( v4 != &v5 )
operator delete(v4, v5 + 1);
if ( !v3 )
return 0;
}
}
return (v9 & 0xF000) == 0x4000;
}
| fs_create_directory_with_parents:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x148
MOV RBX,RDI
MOV RDI,qword ptr [RDI]
LEA RSI,[RSP + 0xb8]
CALL 0x0011b800
TEST EAX,EAX
JZ 0x001739b5
MOV R14D,0x1
LEA R13,[RSP + 0x18]
LEA R15,[RSP + 0x8]
LEA R12,[RSP + 0x28]
LAB_00173921:
MOV RDI,RBX
MOV ESI,0x2f
MOV RDX,R14
CALL 0x0011bb30
MOV R14,RAX
CMP RAX,-0x1
SETZ AL
JZ 0x001739c9
MOV RDI,R15
MOV RSI,RBX
XOR EDX,EDX
MOV RCX,R14
CALL 0x0011b930
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,R12
CALL 0x0011b800
TEST EAX,EAX
JZ 0x00173979
MOV RDI,qword ptr [RSP + 0x8]
MOV ESI,0x1ed
CALL 0x0011b420
TEST EAX,EAX
JZ 0x0017398b
LAB_00173975:
XOR EBP,EBP
JMP 0x00173991
LAB_00173979:
MOV EAX,dword ptr [RSP + 0x40]
MOV ECX,0xf000
AND EAX,ECX
CMP EAX,0x4000
JNZ 0x00173975
LAB_0017398b:
INC R14
MOV BPL,0x1
LAB_00173991:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R13
JZ 0x001739a8
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011b8e0
LAB_001739a8:
TEST BPL,BPL
JNZ 0x00173921
XOR EAX,EAX
JMP 0x001739c9
LAB_001739b5:
MOV EAX,0xf000
AND EAX,dword ptr [RSP + 0xd0]
CMP EAX,0x4000
SETZ AL
LAB_001739c9:
ADD RSP,0x148
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* fs_create_directory_with_parents(std::__cxx11::string const&) */
bool fs_create_directory_with_parents(string *param_1)
{
int iVar1;
long lVar2;
bool bVar3;
long *local_170 [2];
long local_160 [2];
stat local_150;
stat local_c0;
iVar1 = stat(*(char **)param_1,&local_c0);
if (iVar1 == 0) {
bVar3 = (local_c0.st_mode & 0xf000) == 0x4000;
}
else {
do {
lVar2 = std::__cxx11::string::find((char)param_1,0x2f);
if (lVar2 == -1) {
return lVar2 == -1;
}
std::__cxx11::string::substr((ulong)local_170,(ulong)param_1);
iVar1 = stat((char *)local_170[0],&local_150);
if (iVar1 == 0) {
if ((local_150.st_mode & 0xf000) != 0x4000) goto LAB_00173975;
LAB_0017398b:
bVar3 = true;
}
else {
iVar1 = mkdir((char *)local_170[0],0x1ed);
if (iVar1 == 0) goto LAB_0017398b;
LAB_00173975:
bVar3 = false;
}
if (local_170[0] != local_160) {
operator_delete(local_170[0],local_160[0] + 1);
}
} while (bVar3);
bVar3 = false;
}
return bVar3;
}
| |
28,190 | fs_create_directory_with_parents(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | monkey531[P]llama/common/common.cpp | bool fs_create_directory_with_parents(const std::string & path) {
#ifdef _WIN32
std::wstring_convert<std::codecvt_utf8<wchar_t>> converter;
std::wstring wpath = converter.from_bytes(path);
// if the path already exists, check whether it's a directory
const DWORD attributes = GetFileAttributesW(wpath.c_str());
if ((attributes != INVALID_FILE_ATTRIBUTES) && (attributes & FILE_ATTRIBUTE_DIRECTORY)) {
return true;
}
size_t pos_slash = 0;
// process path from front to back, procedurally creating directories
while ((pos_slash = path.find('\\', pos_slash)) != std::string::npos) {
const std::wstring subpath = wpath.substr(0, pos_slash);
const wchar_t * test = subpath.c_str();
const bool success = CreateDirectoryW(test, NULL);
if (!success) {
const DWORD error = GetLastError();
// if the path already exists, ensure that it's a directory
if (error == ERROR_ALREADY_EXISTS) {
const DWORD attributes = GetFileAttributesW(subpath.c_str());
if (attributes == INVALID_FILE_ATTRIBUTES || !(attributes & FILE_ATTRIBUTE_DIRECTORY)) {
return false;
}
} else {
return false;
}
}
pos_slash += 1;
}
return true;
#else
// if the path already exists, check whether it's a directory
struct stat info;
if (stat(path.c_str(), &info) == 0) {
return S_ISDIR(info.st_mode);
}
size_t pos_slash = 1; // skip leading slashes for directory creation
// process path from front to back, procedurally creating directories
while ((pos_slash = path.find('/', pos_slash)) != std::string::npos) {
const std::string subpath = path.substr(0, pos_slash);
struct stat info;
// if the path already exists, ensure that it's a directory
if (stat(subpath.c_str(), &info) == 0) {
if (!S_ISDIR(info.st_mode)) {
return false;
}
} else {
// create parent directories
const int ret = mkdir(subpath.c_str(), 0755);
if (ret != 0) {
return false;
}
}
pos_slash += 1;
}
return true;
#endif // _WIN32
} | O2 | cpp | fs_create_directory_with_parents(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp # imm = 0x148
movq %rdi, %rbx
movq (%rdi), %rdi
leaq 0xb8(%rsp), %rsi
callq 0x23830
testl %eax, %eax
je 0x54709
pushq $0x1
popq %r14
leaq 0x8(%rsp), %r15
leaq 0x28(%rsp), %r12
movq %rbx, %rdi
pushq $0x2f
popq %rsi
movq %r14, %rdx
callq 0x23b70
cmpq $-0x1, %rax
sete %r13b
je 0x5471e
movq %rax, %r14
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x23950
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x23830
testl %eax, %eax
je 0x546e2
movq 0x8(%rsp), %rdi
movl $0x1ed, %esi # imm = 0x1ED
callq 0x23420
testl %eax, %eax
je 0x546f4
xorl %ebp, %ebp
jmp 0x546fa
movl 0x40(%rsp), %eax
movl $0xf000, %ecx # imm = 0xF000
andl %ecx, %eax
cmpl $0x4000, %eax # imm = 0x4000
jne 0x546de
incq %r14
movb $0x1, %bpl
movq %r15, %rdi
callq 0x241d8
testb %bpl, %bpl
jne 0x5468f
jmp 0x5471e
movl $0xf000, %eax # imm = 0xF000
andl 0xd0(%rsp), %eax
cmpl $0x4000, %eax # imm = 0x4000
sete %r13b
movl %r13d, %eax
addq $0x148, %rsp # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _Z32fs_create_directory_with_parentsRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 148h
mov rbx, rdi
mov rdi, [rdi]
lea rsi, [rsp+178h+var_C0]
call _stat
test eax, eax
jz loc_54709
push 1
pop r14
lea r15, [rsp+178h+var_170]
lea r12, [rsp+178h+var_150]
loc_5468F:
mov rdi, rbx
push 2Fh ; '/'
pop rsi
mov rdx, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm; std::string::find(char,ulong)
cmp rax, 0FFFFFFFFFFFFFFFFh
setz r13b
jz short loc_5471E
mov r14, rax
mov rdi, r15
mov rsi, rbx
xor edx, edx
mov rcx, rax
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
mov rdi, [rsp+178h+var_170]
mov rsi, r12
call _stat
test eax, eax
jz short loc_546E2
mov rdi, [rsp+178h+var_170]
mov esi, 1EDh
call _mkdir
test eax, eax
jz short loc_546F4
loc_546DE:
xor ebp, ebp
jmp short loc_546FA
loc_546E2:
mov eax, [rsp+178h+var_138]
mov ecx, 0F000h
and eax, ecx
cmp eax, 4000h
jnz short loc_546DE
loc_546F4:
inc r14
mov bpl, 1
loc_546FA:
mov rdi, r15; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_5468F
jmp short loc_5471E
loc_54709:
mov eax, 0F000h
and eax, [rsp+178h+var_A8]
cmp eax, 4000h
setz r13b
loc_5471E:
mov eax, r13d
add rsp, 148h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long fs_create_directory_with_parents(_QWORD *a1)
{
unsigned int v1; // r13d
long long v2; // r14
long long v3; // rax
char v4; // bp
_QWORD v6[4]; // [rsp+8h] [rbp-170h] BYREF
_BYTE v7[24]; // [rsp+28h] [rbp-150h] BYREF
int v8; // [rsp+40h] [rbp-138h]
_BYTE v9[24]; // [rsp+B8h] [rbp-C0h] BYREF
int v10; // [rsp+D0h] [rbp-A8h]
if ( (unsigned int)stat(*a1, v9) )
{
v2 = 1LL;
while ( 1 )
{
v3 = std::string::find(a1, 47LL, v2);
LOBYTE(v1) = v3 == -1;
if ( v3 == -1 )
return v1;
v2 = v3;
std::string::substr(v6, a1, 0LL, v3);
if ( (unsigned int)stat(v6[0], v7) )
{
if ( !(unsigned int)mkdir(v6[0], 493LL) )
goto LABEL_8;
}
else if ( (v8 & 0xF000) == 0x4000 )
{
LABEL_8:
++v2;
v4 = 1;
goto LABEL_9;
}
v4 = 0;
LABEL_9:
std::string::~string(v6);
if ( !v4 )
return v1;
}
}
LOBYTE(v1) = (v10 & 0xF000) == 0x4000;
return v1;
}
| fs_create_directory_with_parents:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x148
MOV RBX,RDI
MOV RDI,qword ptr [RDI]
LEA RSI,[RSP + 0xb8]
CALL 0x00123830
TEST EAX,EAX
JZ 0x00154709
PUSH 0x1
POP R14
LEA R15,[RSP + 0x8]
LEA R12,[RSP + 0x28]
LAB_0015468f:
MOV RDI,RBX
PUSH 0x2f
POP RSI
MOV RDX,R14
CALL 0x00123b70
CMP RAX,-0x1
SETZ R13B
JZ 0x0015471e
MOV R14,RAX
MOV RDI,R15
MOV RSI,RBX
XOR EDX,EDX
MOV RCX,RAX
CALL 0x00123950
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,R12
CALL 0x00123830
TEST EAX,EAX
JZ 0x001546e2
MOV RDI,qword ptr [RSP + 0x8]
MOV ESI,0x1ed
CALL 0x00123420
TEST EAX,EAX
JZ 0x001546f4
LAB_001546de:
XOR EBP,EBP
JMP 0x001546fa
LAB_001546e2:
MOV EAX,dword ptr [RSP + 0x40]
MOV ECX,0xf000
AND EAX,ECX
CMP EAX,0x4000
JNZ 0x001546de
LAB_001546f4:
INC R14
MOV BPL,0x1
LAB_001546fa:
MOV RDI,R15
CALL 0x001241d8
TEST BPL,BPL
JNZ 0x0015468f
JMP 0x0015471e
LAB_00154709:
MOV EAX,0xf000
AND EAX,dword ptr [RSP + 0xd0]
CMP EAX,0x4000
SETZ R13B
LAB_0015471e:
MOV EAX,R13D
ADD RSP,0x148
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* fs_create_directory_with_parents(std::__cxx11::string const&) */
ulong fs_create_directory_with_parents(string *param_1)
{
bool bVar1;
int iVar2;
long lVar3;
ulong unaff_R13;
char *local_170 [4];
stat local_150;
stat local_c0;
iVar2 = stat(*(char **)param_1,&local_c0);
if (iVar2 == 0) {
unaff_R13 = CONCAT71((int7)(unaff_R13 >> 8),(local_c0.st_mode & 0xf000) == 0x4000);
}
else {
do {
lVar3 = std::__cxx11::string::find((char)param_1,0x2f);
unaff_R13 = CONCAT71((int7)(unaff_R13 >> 8),lVar3 == -1);
if (lVar3 == -1) break;
std::__cxx11::string::substr((ulong)local_170,(ulong)param_1);
iVar2 = stat(local_170[0],&local_150);
if (iVar2 == 0) {
if ((local_150.st_mode & 0xf000) != 0x4000) goto LAB_001546de;
LAB_001546f4:
bVar1 = true;
}
else {
iVar2 = mkdir(local_170[0],0x1ed);
if (iVar2 == 0) goto LAB_001546f4;
LAB_001546de:
bVar1 = false;
}
std::__cxx11::string::~string((string *)local_170);
} while (bVar1);
}
return unaff_R13 & 0xffffffff;
}
| |
28,191 | fs_create_directory_with_parents(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | monkey531[P]llama/common/common.cpp | bool fs_create_directory_with_parents(const std::string & path) {
#ifdef _WIN32
std::wstring_convert<std::codecvt_utf8<wchar_t>> converter;
std::wstring wpath = converter.from_bytes(path);
// if the path already exists, check whether it's a directory
const DWORD attributes = GetFileAttributesW(wpath.c_str());
if ((attributes != INVALID_FILE_ATTRIBUTES) && (attributes & FILE_ATTRIBUTE_DIRECTORY)) {
return true;
}
size_t pos_slash = 0;
// process path from front to back, procedurally creating directories
while ((pos_slash = path.find('\\', pos_slash)) != std::string::npos) {
const std::wstring subpath = wpath.substr(0, pos_slash);
const wchar_t * test = subpath.c_str();
const bool success = CreateDirectoryW(test, NULL);
if (!success) {
const DWORD error = GetLastError();
// if the path already exists, ensure that it's a directory
if (error == ERROR_ALREADY_EXISTS) {
const DWORD attributes = GetFileAttributesW(subpath.c_str());
if (attributes == INVALID_FILE_ATTRIBUTES || !(attributes & FILE_ATTRIBUTE_DIRECTORY)) {
return false;
}
} else {
return false;
}
}
pos_slash += 1;
}
return true;
#else
// if the path already exists, check whether it's a directory
struct stat info;
if (stat(path.c_str(), &info) == 0) {
return S_ISDIR(info.st_mode);
}
size_t pos_slash = 1; // skip leading slashes for directory creation
// process path from front to back, procedurally creating directories
while ((pos_slash = path.find('/', pos_slash)) != std::string::npos) {
const std::string subpath = path.substr(0, pos_slash);
struct stat info;
// if the path already exists, ensure that it's a directory
if (stat(subpath.c_str(), &info) == 0) {
if (!S_ISDIR(info.st_mode)) {
return false;
}
} else {
// create parent directories
const int ret = mkdir(subpath.c_str(), 0755);
if (ret != 0) {
return false;
}
}
pos_slash += 1;
}
return true;
#endif // _WIN32
} | O3 | cpp | fs_create_directory_with_parents(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x148, %rsp # imm = 0x148
movq %rdi, %rbx
movq (%rdi), %rdi
leaq 0xb8(%rsp), %rsi
callq 0x1a800
testl %eax, %eax
je 0x73247
movl $0x1, %r14d
leaq 0x8(%rsp), %r15
leaq 0x28(%rsp), %r12
movq %rbx, %rdi
movl $0x2f, %esi
movq %r14, %rdx
callq 0x1ab30
cmpq $-0x1, %rax
sete %bpl
je 0x7325c
movq %rax, %r14
movq %r15, %rdi
movq %rbx, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x1a930
movq 0x8(%rsp), %rdi
movq %r12, %rsi
callq 0x1a800
testl %eax, %eax
je 0x73208
movq 0x8(%rsp), %rdi
movl $0x1ed, %esi # imm = 0x1ED
callq 0x1a420
testl %eax, %eax
je 0x7321a
xorl %r13d, %r13d
jmp 0x73220
movl 0x40(%rsp), %eax
movl $0xf000, %ecx # imm = 0xF000
andl %ecx, %eax
cmpl $0x4000, %eax # imm = 0x4000
jne 0x73203
incq %r14
movb $0x1, %r13b
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x7323c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1a8e0
testb %r13b, %r13b
jne 0x731ae
jmp 0x7325c
movl $0xf000, %eax # imm = 0xF000
andl 0xd0(%rsp), %eax
cmpl $0x4000, %eax # imm = 0x4000
sete %bpl
movl %ebp, %eax
addq $0x148, %rsp # imm = 0x148
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _Z32fs_create_directory_with_parentsRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 148h
mov rbx, rdi
mov rdi, [rdi]
lea rsi, [rsp+178h+var_C0]
call _stat
test eax, eax
jz loc_73247
mov r14d, 1
lea r15, [rsp+178h+var_170]
lea r12, [rsp+178h+var_150]
loc_731AE:
mov rdi, rbx
mov esi, 2Fh ; '/'
mov rdx, r14
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcm; std::string::find(char,ulong)
cmp rax, 0FFFFFFFFFFFFFFFFh
setz bpl
jz loc_7325C
mov r14, rax
mov rdi, r15
mov rsi, rbx
xor edx, edx
mov rcx, rax
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
mov rdi, [rsp+178h+var_170]
mov rsi, r12
call _stat
test eax, eax
jz short loc_73208
mov rdi, [rsp+178h+var_170]
mov esi, 1EDh
call _mkdir
test eax, eax
jz short loc_7321A
loc_73203:
xor r13d, r13d
jmp short loc_73220
loc_73208:
mov eax, [rsp+178h+var_138]
mov ecx, 0F000h
and eax, ecx
cmp eax, 4000h
jnz short loc_73203
loc_7321A:
inc r14
mov r13b, 1
loc_73220:
mov rdi, [rsp+178h+var_170]; void *
lea rax, [rsp+178h+var_160]
cmp rdi, rax
jz short loc_7323C
mov rsi, [rsp+178h+var_160]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_7323C:
test r13b, r13b
jnz loc_731AE
jmp short loc_7325C
loc_73247:
mov eax, 0F000h
and eax, [rsp+178h+var_A8]
cmp eax, 4000h
setz bpl
loc_7325C:
mov eax, ebp
add rsp, 148h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long fs_create_directory_with_parents(_QWORD *a1)
{
unsigned int v1; // ebp
long long v2; // r14
long long v3; // rax
char v4; // r13
void *v6; // [rsp+8h] [rbp-170h] BYREF
long long v7; // [rsp+18h] [rbp-160h] BYREF
_BYTE v8[24]; // [rsp+28h] [rbp-150h] BYREF
int v9; // [rsp+40h] [rbp-138h]
_BYTE v10[24]; // [rsp+B8h] [rbp-C0h] BYREF
int v11; // [rsp+D0h] [rbp-A8h]
if ( (unsigned int)stat(*a1, v10) )
{
v2 = 1LL;
while ( 1 )
{
v3 = std::string::find(a1, 47LL, v2);
LOBYTE(v1) = v3 == -1;
if ( v3 == -1 )
return v1;
v2 = v3;
std::string::substr(&v6, a1, 0LL, v3);
if ( (unsigned int)stat(v6, v8) )
{
if ( !(unsigned int)mkdir(v6, 493LL) )
goto LABEL_8;
}
else if ( (v9 & 0xF000) == 0x4000 )
{
LABEL_8:
++v2;
v4 = 1;
goto LABEL_9;
}
v4 = 0;
LABEL_9:
if ( v6 != &v7 )
operator delete(v6, v7 + 1);
if ( !v4 )
return v1;
}
}
LOBYTE(v1) = (v11 & 0xF000) == 0x4000;
return v1;
}
| fs_create_directory_with_parents:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x148
MOV RBX,RDI
MOV RDI,qword ptr [RDI]
LEA RSI,[RSP + 0xb8]
CALL 0x0011a800
TEST EAX,EAX
JZ 0x00173247
MOV R14D,0x1
LEA R15,[RSP + 0x8]
LEA R12,[RSP + 0x28]
LAB_001731ae:
MOV RDI,RBX
MOV ESI,0x2f
MOV RDX,R14
CALL 0x0011ab30
CMP RAX,-0x1
SETZ BPL
JZ 0x0017325c
MOV R14,RAX
MOV RDI,R15
MOV RSI,RBX
XOR EDX,EDX
MOV RCX,RAX
CALL 0x0011a930
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,R12
CALL 0x0011a800
TEST EAX,EAX
JZ 0x00173208
MOV RDI,qword ptr [RSP + 0x8]
MOV ESI,0x1ed
CALL 0x0011a420
TEST EAX,EAX
JZ 0x0017321a
LAB_00173203:
XOR R13D,R13D
JMP 0x00173220
LAB_00173208:
MOV EAX,dword ptr [RSP + 0x40]
MOV ECX,0xf000
AND EAX,ECX
CMP EAX,0x4000
JNZ 0x00173203
LAB_0017321a:
INC R14
MOV R13B,0x1
LAB_00173220:
MOV RDI,qword ptr [RSP + 0x8]
LEA RAX,[RSP + 0x18]
CMP RDI,RAX
JZ 0x0017323c
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011a8e0
LAB_0017323c:
TEST R13B,R13B
JNZ 0x001731ae
JMP 0x0017325c
LAB_00173247:
MOV EAX,0xf000
AND EAX,dword ptr [RSP + 0xd0]
CMP EAX,0x4000
SETZ BPL
LAB_0017325c:
MOV EAX,EBP
ADD RSP,0x148
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* fs_create_directory_with_parents(std::__cxx11::string const&) */
ulong fs_create_directory_with_parents(string *param_1)
{
bool bVar1;
int iVar2;
long lVar3;
ulong unaff_RBP;
long *local_170 [2];
long local_160 [2];
stat local_150;
stat local_c0;
iVar2 = stat(*(char **)param_1,&local_c0);
if (iVar2 == 0) {
unaff_RBP = CONCAT71((int7)(unaff_RBP >> 8),(local_c0.st_mode & 0xf000) == 0x4000);
}
else {
do {
lVar3 = std::__cxx11::string::find((char)param_1,0x2f);
unaff_RBP = CONCAT71((int7)(unaff_RBP >> 8),lVar3 == -1);
if (lVar3 == -1) break;
std::__cxx11::string::substr((ulong)local_170,(ulong)param_1);
iVar2 = stat((char *)local_170[0],&local_150);
if (iVar2 == 0) {
if ((local_150.st_mode & 0xf000) != 0x4000) goto LAB_00173203;
LAB_0017321a:
bVar1 = true;
}
else {
iVar2 = mkdir((char *)local_170[0],0x1ed);
if (iVar2 == 0) goto LAB_0017321a;
LAB_00173203:
bVar1 = false;
}
if (local_170[0] != local_160) {
operator_delete(local_170[0],local_160[0] + 1);
}
} while (bVar1);
}
return unaff_RBP & 0xffffffff;
}
| |
28,192 | trnman_end_trn | eloqsql/storage/maria/trnman.c | my_bool trnman_end_trn(TRN *trn, my_bool commit)
{
int res= 1;
uint16 cached_short_id= trn->short_id; /* we have to cache it, see below */
TRN *free_me= 0;
LF_PINS *pins= trn->pins;
DBUG_ENTER("trnman_end_trn");
DBUG_PRINT("enter", ("trn: %p commit: %d", trn, commit));
/* if a rollback, all UNDO records should have been executed */
DBUG_ASSERT(commit || trn->undo_lsn == 0);
DBUG_ASSERT(trn != &dummy_transaction_object);
DBUG_ASSERT(trn->locked_tables == 0 && trn->used_instances == 0);
DBUG_PRINT("info", ("mysql_mutex_lock LOCK_trn_list"));
mysql_mutex_lock(&LOCK_trn_list);
/* remove from active list */
trn->next->prev= trn->prev;
trn->prev->next= trn->next;
/*
if trn was the oldest active transaction, now that it goes away there
may be committed transactions in the list which no active transaction
needs to bother about - clean up the committed list
*/
if (trn->prev == &active_list_min)
{
uint free_me_count;
TRN *t;
for (t= committed_list_min.next, free_me_count= 0;
t->commit_trid < active_list_min.next->min_read_from;
t= t->next, free_me_count++) /* no-op */;
DBUG_ASSERT((t != committed_list_min.next && free_me_count > 0) ||
(t == committed_list_min.next && free_me_count == 0));
/* found transactions committed before the oldest active one */
if (t != committed_list_min.next)
{
free_me= committed_list_min.next;
committed_list_min.next= t;
t->prev->next= 0;
t->prev= &committed_list_min;
trnman_committed_transactions-= free_me_count;
}
}
mysql_mutex_lock(&trn->state_lock);
if (commit)
trn->commit_trid= global_trid_generator;
wt_thd_release_self(trn);
mysql_mutex_unlock(&trn->state_lock);
/*
if transaction is committed and it was not the only active transaction -
add it to the committed list
*/
if (commit && active_list_min.next != &active_list_max)
{
trn->next= &committed_list_max;
trn->prev= committed_list_max.prev;
trnman_committed_transactions++;
committed_list_max.prev= trn->prev->next= trn;
}
else
{
trn->next= free_me;
free_me= trn;
}
trid_min_read_from= active_list_min.next->min_read_from;
if ((*trnman_end_trans_hook)(trn, commit,
active_list_min.next != &active_list_max))
res= -1;
trnman_active_transactions--;
DBUG_PRINT("info", ("mysql_mutex_unlock LOCK_trn_list"));
mysql_mutex_unlock(&LOCK_trn_list);
/*
the rest is done outside of a critical section
note that we don't own trn anymore, it may be in a shared list now.
Thus, we cannot dereference it, and must use cached_short_id below.
*/
my_atomic_storeptr((void **)&short_trid_to_active_trn[cached_short_id], 0);
/*
we, under the mutex, removed going-in-free_me transactions from the
active and committed lists, thus nobody else may see them when it scans
those lists, and thus nobody may want to free them. Now we don't
need a mutex to access free_me list
*/
/* QQ: send them to the purge thread */
while (free_me)
{
TRN *t= free_me;
free_me= free_me->next;
/* ignore OOM. it's harmless, and we can do nothing here anyway */
(void)lf_hash_delete(&trid_to_trn, pins, &t->trid, sizeof(TrID));
trnman_free_trn(t);
}
lf_hash_put_pins(pins);
DBUG_RETURN(res < 0);
} | O3 | c | trnman_end_trn:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %esi, %r12d
movq %rdi, %r15
movzwl 0xac(%rdi), %r13d
movq (%rdi), %rbx
cmpq $0x0, 0xba4dbc(%rip) # 0xc085e0
jne 0x63a1c
leaq 0xba4d6f(%rip), %rdi # 0xc085a0
callq 0x2a220
movq 0x68(%r15), %rax
movq 0x70(%r15), %rcx
movq %rcx, 0x70(%rax)
movq 0x68(%r15), %rax
movq %rax, 0x68(%rcx)
leaq 0xba49a7(%rip), %rax # 0xc081f8
cmpq %rax, 0x70(%r15)
movq %r13, -0x30(%rbp)
jne 0x638b8
movq 0xba49fe(%rip), %rax # 0xc08260
movq 0x80(%rax), %rdx
movq 0xba4c00(%rip), %r14 # 0xc08470
xorl %eax, %eax
cmpq %rdx, 0x88(%r14)
jae 0x638b8
movq %r14, %rcx
movq 0x68(%rcx), %rcx
decl %eax
cmpq %rdx, 0x88(%rcx)
jb 0x6387e
cmpq %r14, %rcx
je 0x638b8
movq %rcx, 0xba4bd7(%rip) # 0xc08470
leaq 0xba4b68(%rip), %rdx # 0xc08408
movq 0x70(%rcx), %rsi
movq $0x0, 0x68(%rsi)
movq %rdx, 0x70(%rcx)
addl %eax, 0xba4c06(%rip) # 0xc084bc
jmp 0x638bb
xorl %r14d, %r14d
leaq 0x10(%r15), %r13
cmpq $0x0, 0x50(%r15)
jne 0x63a26
movq %r13, %rdi
callq 0x2a220
testb %r12b, %r12b
je 0x638e5
movq 0xba4bf2(%rip), %rax # 0xc084d0
movq %rax, 0x88(%r15)
movq 0x8(%r15), %rdi
testq %rdi, %rdi
je 0x6390d
leaq 0x329983(%rip), %rax # 0x38d278
leaq -0x40(%rbp), %rsi
movq %rax, 0x8(%rsi)
movq %r15, (%rsi)
callq 0xaddae
movq $0x0, 0x8(%r15)
movq 0x50(%r15), %rdi
testq %rdi, %rdi
jne 0x63a3f
movq %r13, %rdi
callq 0x2a1e0
leaq 0xba497f(%rip), %rax # 0xc082a8
testb %r12b, %r12b
je 0x63960
cmpq %rax, 0xba492b(%rip) # 0xc08260
je 0x63960
leaq 0xba4a1a(%rip), %rcx # 0xc08358
movq %rcx, 0x68(%r15)
movq 0xba4a7f(%rip), %rcx # 0xc083c8
movq %rcx, 0x70(%r15)
incl 0xba4b69(%rip) # 0xc084bc
movq %r15, 0x68(%rcx)
movq %r15, 0xba4a6a(%rip) # 0xc083c8
jmp 0x63967
movq %r14, 0x68(%r15)
movq %r15, %r14
movq -0x30(%rbp), %r13
movq 0xba48ee(%rip), %rcx # 0xc08260
movq 0x80(%rcx), %rdx
movq %rdx, 0x329a28(%rip) # 0x38d3a8
xorl %edx, %edx
cmpq %rax, %rcx
setne %dl
movsbl %r12b, %esi
movq %r15, %rdi
callq *0x329a0b(%rip) # 0x38d3a0
decl 0xba4b1d(%rip) # 0xc084b8
movl %eax, %r15d
movq 0xba4c3b(%rip), %rdi # 0xc085e0
testq %rdi, %rdi
jne 0x63a54
leaq 0xba4beb(%rip), %rdi # 0xc085a0
callq 0x2a1e0
movq 0xba482f(%rip), %rax # 0xc081f0
xorl %ecx, %ecx
xchgq %rcx, (%rax,%r13,8)
testq %r14, %r14
je 0x639fb
leaq 0xba4b05(%rip), %r12 # 0xc084d8
movq 0x68(%r14), %r13
leaq 0x78(%r14), %rdx
movq %r12, %rdi
movq %rbx, %rsi
movl $0x8, %ecx
callq 0x311a5
movq %r14, %rdi
callq 0x63780
movq %r13, %r14
testq %r13, %r13
jne 0x639d3
testb %r15b, %r15b
setne %r14b
movq %rbx, %rdi
callq 0xac16f
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2e07c
jmp 0x63836
leaq 0x7e65a(%rip), %rsi # 0xe2087
movq %r13, %rdi
movl $0x1d9, %edx # imm = 0x1D9
callq 0x30603
jmp 0x638d2
leaq 0x32b812(%rip), %rax # 0x38f258
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x6391a
leaq 0x32b7fd(%rip), %rax # 0x38f258
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x639ae
| trnman_end_trn:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r12d, esi
mov r15, rdi
movzx r13d, word ptr [rdi+0ACh]
mov rbx, [rdi]
cmp cs:qword_C085E0, 0
jnz loc_63A1C
lea rdi, LOCK_trn_list
call _pthread_mutex_lock
loc_63836:
mov rax, [r15+68h]
mov rcx, [r15+70h]
mov [rax+70h], rcx
mov rax, [r15+68h]
mov [rcx+68h], rax
lea rax, active_list_min
cmp [r15+70h], rax
mov [rbp+var_30], r13
jnz short loc_638B8
mov rax, cs:qword_C08260
mov rdx, [rax+80h]
mov r14, cs:qword_C08470
xor eax, eax
cmp [r14+88h], rdx
jnb short loc_638B8
mov rcx, r14
loc_6387E:
mov rcx, [rcx+68h]
dec eax
cmp [rcx+88h], rdx
jb short loc_6387E
cmp rcx, r14
jz short loc_638B8
mov cs:qword_C08470, rcx
lea rdx, committed_list_min
mov rsi, [rcx+70h]
mov qword ptr [rsi+68h], 0
mov [rcx+70h], rdx
add cs:trnman_committed_transactions, eax
jmp short loc_638BB
loc_638B8:
xor r14d, r14d
loc_638BB:
lea r13, [r15+10h]
cmp qword ptr [r15+50h], 0
jnz loc_63A26
mov rdi, r13
call _pthread_mutex_lock
loc_638D2:
test r12b, r12b
jz short loc_638E5
mov rax, cs:global_trid_generator
mov [r15+88h], rax
loc_638E5:
mov rdi, [r15+8]
test rdi, rdi
jz short loc_6390D
lea rax, ma_rc_dup_unique
lea rsi, [rbp+var_40]
mov [rsi+8], rax
mov [rsi], r15
call wt_thd_release
mov qword ptr [r15+8], 0
loc_6390D:
mov rdi, [r15+50h]
test rdi, rdi
jnz loc_63A3F
loc_6391A:
mov rdi, r13
call _pthread_mutex_unlock
lea rax, active_list_max
test r12b, r12b
jz short loc_63960
cmp cs:qword_C08260, rax
jz short loc_63960
lea rcx, committed_list_max
mov [r15+68h], rcx
mov rcx, cs:qword_C083C8
mov [r15+70h], rcx
inc cs:trnman_committed_transactions
mov [rcx+68h], r15
mov cs:qword_C083C8, r15
jmp short loc_63967
loc_63960:
mov [r15+68h], r14
mov r14, r15
loc_63967:
mov r13, [rbp+var_30]
mov rcx, cs:qword_C08260
mov rdx, [rcx+80h]
mov cs:trid_min_read_from, rdx
xor edx, edx
cmp rcx, rax
setnz dl
movsx esi, r12b
mov rdi, r15
call cs:trnman_end_trans_hook
dec cs:trnman_active_transactions
mov r15d, eax
mov rdi, cs:qword_C085E0
test rdi, rdi
jnz loc_63A54
loc_639AE:
lea rdi, LOCK_trn_list
call _pthread_mutex_unlock
mov rax, cs:short_trid_to_active_trn
xor ecx, ecx
xchg rcx, [rax+r13*8]
test r14, r14
jz short loc_639FB
lea r12, trid_to_trn
loc_639D3:
mov r13, [r14+68h]
lea rdx, [r14+78h]
mov rdi, r12
mov rsi, rbx
mov ecx, 8
call lf_hash_delete
mov rdi, r14
call trnman_free_trn
mov r14, r13
test r13, r13
jnz short loc_639D3
loc_639FB:
test r15b, r15b
setnz r14b
mov rdi, rbx
call lf_pinbox_put_pins
mov eax, r14d
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_63A1C:
call trnman_end_trn_cold_1
jmp loc_63836
loc_63A26:
lea rsi, aWorkspaceLlm4b_9; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, r13
mov edx, 1D9h
call psi_mutex_lock
jmp loc_638D2
loc_63A3F:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp loc_6391A
loc_63A54:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp loc_639AE
| long long trnman_end_trn(long long a1, char a2)
{
long long v3; // r13
volatile long long *v4; // rbx
long long v5; // rcx
bool v6; // zf
unsigned long long v7; // rdx
signed long long v8; // r14
int v9; // eax
_QWORD *v10; // rcx
long long v11; // rdi
long long v12; // rcx
long long v13; // r13
volatile long long *v14; // rsi
char v15; // al
char v16; // r15
long long v17; // rdx
long long v18; // rcx
signed long long v19; // r13
_QWORD v21[2]; // [rsp+0h] [rbp-40h] BYREF
long long v22; // [rsp+10h] [rbp-30h]
v3 = *(unsigned __int16 *)(a1 + 172);
v4 = *(volatile long long **)a1;
if ( qword_C085E0 )
trnman_end_trn_cold_1();
else
pthread_mutex_lock(&LOCK_trn_list);
v5 = *(_QWORD *)(a1 + 112);
*(_QWORD *)(*(_QWORD *)(a1 + 104) + 112LL) = v5;
*(_QWORD *)(v5 + 104) = *(_QWORD *)(a1 + 104);
v6 = *(_QWORD *)(a1 + 112) == (_QWORD)&active_list_min;
v22 = v3;
if ( !v6 )
goto LABEL_9;
v7 = *(_QWORD *)(qword_C08260 + 128);
v8 = qword_C08470;
v9 = 0;
if ( *(_QWORD *)(qword_C08470 + 136) >= v7 )
goto LABEL_9;
v10 = (_QWORD *)qword_C08470;
do
{
v10 = (_QWORD *)v10[13];
--v9;
}
while ( v10[17] < v7 );
if ( v10 == (_QWORD *)qword_C08470 )
{
LABEL_9:
v8 = 0LL;
}
else
{
qword_C08470 = (long long)v10;
*(_QWORD *)(v10[14] + 104LL) = 0LL;
v10[14] = &committed_list_min;
trnman_committed_transactions += v9;
}
if ( *(_QWORD *)(a1 + 80) )
psi_mutex_lock(a1 + 16, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/trnman.c", 0x1D9u);
else
pthread_mutex_lock(a1 + 16);
if ( a2 )
*(_QWORD *)(a1 + 136) = global_trid_generator;
v11 = *(_QWORD *)(a1 + 8);
if ( v11 )
{
v21[1] = &ma_rc_dup_unique;
v21[0] = a1;
wt_thd_release(v11, v21);
*(_QWORD *)(a1 + 8) = 0LL;
}
if ( *(_QWORD *)(a1 + 80) )
PSI_server[44]();
pthread_mutex_unlock(a1 + 16);
if ( !a2 || (_UNKNOWN *)qword_C08260 == &active_list_max )
{
*(_QWORD *)(a1 + 104) = v8;
v8 = a1;
}
else
{
*(_QWORD *)(a1 + 104) = &committed_list_max;
v12 = qword_C083C8;
*(_QWORD *)(a1 + 112) = qword_C083C8;
++trnman_committed_transactions;
*(_QWORD *)(v12 + 104) = a1;
qword_C083C8 = a1;
}
v13 = v22;
trid_min_read_from = *(_QWORD *)(qword_C08260 + 128);
v14 = (volatile long long *)(unsigned int)a2;
v15 = trnman_end_trans_hook();
--trnman_active_transactions;
v16 = v15;
if ( qword_C085E0 )
((void ( *)(long long, volatile long long *))PSI_server[44])(qword_C085E0, v14);
pthread_mutex_unlock(&LOCK_trn_list);
v18 = _InterlockedExchange64((volatile long long *)(short_trid_to_active_trn + 8 * v13), 0LL);
if ( v8 )
{
do
{
v19 = *(_QWORD *)(v8 + 104);
v14 = v4;
lf_hash_delete((long long)&trid_to_trn, v4, v8 + 120, 8u);
trnman_free_trn(v8);
v8 = v19;
}
while ( v19 );
}
LOBYTE(v8) = v16 != 0;
lf_pinbox_put_pins(v4, v14, v17, v18);
return (unsigned int)v8;
}
| trnman_end_trn:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R12D,ESI
MOV R15,RDI
MOVZX R13D,word ptr [RDI + 0xac]
MOV RBX,qword ptr [RDI]
CMP qword ptr [0x00d085e0],0x0
JNZ 0x00163a1c
LEA RDI,[0xd085a0]
CALL 0x0012a220
LAB_00163836:
MOV RAX,qword ptr [R15 + 0x68]
MOV RCX,qword ptr [R15 + 0x70]
MOV qword ptr [RAX + 0x70],RCX
MOV RAX,qword ptr [R15 + 0x68]
MOV qword ptr [RCX + 0x68],RAX
LEA RAX,[0xd081f8]
CMP qword ptr [R15 + 0x70],RAX
MOV qword ptr [RBP + -0x30],R13
JNZ 0x001638b8
MOV RAX,qword ptr [0x00d08260]
MOV RDX,qword ptr [RAX + 0x80]
MOV R14,qword ptr [0x00d08470]
XOR EAX,EAX
CMP qword ptr [R14 + 0x88],RDX
JNC 0x001638b8
MOV RCX,R14
LAB_0016387e:
MOV RCX,qword ptr [RCX + 0x68]
DEC EAX
CMP qword ptr [RCX + 0x88],RDX
JC 0x0016387e
CMP RCX,R14
JZ 0x001638b8
MOV qword ptr [0x00d08470],RCX
LEA RDX,[0xd08408]
MOV RSI,qword ptr [RCX + 0x70]
MOV qword ptr [RSI + 0x68],0x0
MOV qword ptr [RCX + 0x70],RDX
ADD dword ptr [0x00d084bc],EAX
JMP 0x001638bb
LAB_001638b8:
XOR R14D,R14D
LAB_001638bb:
LEA R13,[R15 + 0x10]
CMP qword ptr [R15 + 0x50],0x0
JNZ 0x00163a26
MOV RDI,R13
CALL 0x0012a220
LAB_001638d2:
TEST R12B,R12B
JZ 0x001638e5
MOV RAX,qword ptr [0x00d084d0]
MOV qword ptr [R15 + 0x88],RAX
LAB_001638e5:
MOV RDI,qword ptr [R15 + 0x8]
TEST RDI,RDI
JZ 0x0016390d
LEA RAX,[0x48d278]
LEA RSI,[RBP + -0x40]
MOV qword ptr [RSI + 0x8],RAX
MOV qword ptr [RSI],R15
CALL 0x001addae
MOV qword ptr [R15 + 0x8],0x0
LAB_0016390d:
MOV RDI,qword ptr [R15 + 0x50]
TEST RDI,RDI
JNZ 0x00163a3f
LAB_0016391a:
MOV RDI,R13
CALL 0x0012a1e0
LEA RAX,[0xd082a8]
TEST R12B,R12B
JZ 0x00163960
CMP qword ptr [0x00d08260],RAX
JZ 0x00163960
LEA RCX,[0xd08358]
MOV qword ptr [R15 + 0x68],RCX
MOV RCX,qword ptr [0x00d083c8]
MOV qword ptr [R15 + 0x70],RCX
INC dword ptr [0x00d084bc]
MOV qword ptr [RCX + 0x68],R15
MOV qword ptr [0x00d083c8],R15
JMP 0x00163967
LAB_00163960:
MOV qword ptr [R15 + 0x68],R14
MOV R14,R15
LAB_00163967:
MOV R13,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [0x00d08260]
MOV RDX,qword ptr [RCX + 0x80]
MOV qword ptr [0x0048d3a8],RDX
XOR EDX,EDX
CMP RCX,RAX
SETNZ DL
MOVSX ESI,R12B
MOV RDI,R15
CALL qword ptr [0x0048d3a0]
DEC dword ptr [0x00d084b8]
MOV R15D,EAX
MOV RDI,qword ptr [0x00d085e0]
TEST RDI,RDI
JNZ 0x00163a54
LAB_001639ae:
LEA RDI,[0xd085a0]
CALL 0x0012a1e0
MOV RAX,qword ptr [0x00d081f0]
XOR ECX,ECX
XCHG qword ptr [RAX + R13*0x8],RCX
TEST R14,R14
JZ 0x001639fb
LEA R12,[0xd084d8]
LAB_001639d3:
MOV R13,qword ptr [R14 + 0x68]
LEA RDX,[R14 + 0x78]
MOV RDI,R12
MOV RSI,RBX
MOV ECX,0x8
CALL 0x001311a5
MOV RDI,R14
CALL 0x00163780
MOV R14,R13
TEST R13,R13
JNZ 0x001639d3
LAB_001639fb:
TEST R15B,R15B
SETNZ R14B
MOV RDI,RBX
CALL 0x001ac16f
MOV EAX,R14D
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00163a1c:
CALL 0x0012e07c
JMP 0x00163836
LAB_00163a26:
LEA RSI,[0x1e2087]
MOV RDI,R13
MOV EDX,0x1d9
CALL 0x00130603
JMP 0x001638d2
LAB_00163a3f:
LEA RAX,[0x48f258]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x0016391a
LAB_00163a54:
LEA RAX,[0x48f258]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x001639ae
|
bool trnman_end_trn(int8 *param_1,char param_2)
{
pthread_mutex_t *__mutex;
ushort uVar1;
int8 uVar2;
int8 *puVar3;
char cVar4;
int iVar5;
long lVar6;
int8 *puVar7;
uVar1 = *(ushort *)((long)param_1 + 0xac);
uVar2 = *param_1;
if (LOCK_trn_list._64_8_ == 0) {
pthread_mutex_lock((pthread_mutex_t *)LOCK_trn_list);
}
else {
trnman_end_trn_cold_1();
}
lVar6 = param_1[0xe];
*(long *)(param_1[0xd] + 0x70) = lVar6;
*(int8 *)(lVar6 + 0x68) = param_1[0xd];
puVar7 = (int8 *)committed_list_min._104_8_;
if ((int1 *)param_1[0xe] == active_list_min) {
iVar5 = 0;
lVar6 = committed_list_min._104_8_;
if (*(ulong *)(committed_list_min._104_8_ + 0x88) < *(ulong *)(active_list_min._104_8_ + 0x80))
{
do {
lVar6 = *(long *)(lVar6 + 0x68);
iVar5 = iVar5 + -1;
} while (*(ulong *)(lVar6 + 0x88) < *(ulong *)(active_list_min._104_8_ + 0x80));
if (lVar6 != committed_list_min._104_8_) {
committed_list_min._104_8_ = lVar6;
*(int8 *)(*(long *)(lVar6 + 0x70) + 0x68) = 0;
*(int1 **)(lVar6 + 0x70) = committed_list_min;
trnman_committed_transactions = trnman_committed_transactions + iVar5;
goto LAB_001638bb;
}
}
}
puVar7 = (int8 *)0x0;
LAB_001638bb:
__mutex = (pthread_mutex_t *)(param_1 + 2);
if (param_1[10] == 0) {
pthread_mutex_lock(__mutex);
}
else {
psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/maria/trnman.c",0x1d9);
}
if (param_2 != '\0') {
param_1[0x11] = global_trid_generator;
}
if (param_1[1] != 0) {
wt_thd_release();
param_1[1] = 0;
}
if (param_1[10] != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
if ((param_2 == '\0') || ((int1 *)active_list_min._104_8_ == active_list_max)) {
param_1[0xd] = puVar7;
puVar7 = param_1;
}
else {
param_1[0xd] = committed_list_max;
param_1[0xe] = committed_list_max._112_8_;
trnman_committed_transactions = trnman_committed_transactions + 1;
*(int8 **)(committed_list_max._112_8_ + 0x68) = param_1;
committed_list_max._112_8_ = param_1;
}
trid_min_read_from = *(int8 *)(active_list_min._104_8_ + 0x80);
cVar4 = (*(code *)trnman_end_trans_hook)
(param_1,(int)param_2,(int1 *)active_list_min._104_8_ != active_list_max);
trnman_active_transactions = trnman_active_transactions + -1;
if (LOCK_trn_list._64_8_ != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)LOCK_trn_list);
LOCK();
*(int8 *)(short_trid_to_active_trn + (ulong)uVar1 * 8) = 0;
UNLOCK();
while (puVar7 != (int8 *)0x0) {
puVar3 = (int8 *)puVar7[0xd];
lf_hash_delete(trid_to_trn,uVar2,puVar7 + 0xf,8);
trnman_free_trn(puVar7);
puVar7 = puVar3;
}
lf_pinbox_put_pins(uVar2);
return cVar4 != '\0';
}
| |
28,193 | mbedtls_rsa_import | msxemulator/build_O3/_deps/pico_sdk-src/lib/mbedtls/library/rsa.c | int mbedtls_rsa_import(mbedtls_rsa_context *ctx,
const mbedtls_mpi *N,
const mbedtls_mpi *P, const mbedtls_mpi *Q,
const mbedtls_mpi *D, const mbedtls_mpi *E)
{
int ret = MBEDTLS_ERR_ERROR_CORRUPTION_DETECTED;
RSA_VALIDATE_RET(ctx != NULL);
if ((N != NULL && (ret = mbedtls_mpi_copy(&ctx->N, N)) != 0) ||
(P != NULL && (ret = mbedtls_mpi_copy(&ctx->P, P)) != 0) ||
(Q != NULL && (ret = mbedtls_mpi_copy(&ctx->Q, Q)) != 0) ||
(D != NULL && (ret = mbedtls_mpi_copy(&ctx->D, D)) != 0) ||
(E != NULL && (ret = mbedtls_mpi_copy(&ctx->E, E)) != 0)) {
return MBEDTLS_ERROR_ADD(MBEDTLS_ERR_RSA_BAD_INPUT_DATA, ret);
}
if (N != NULL) {
ctx->len = mbedtls_mpi_size(&ctx->N);
}
return 0;
} | O3 | c | mbedtls_rsa_import:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, (%rsp)
movq %r8, %r12
movq %rcx, %r13
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
testq %rsi, %rsi
je 0x8f5db
leaq 0x10(%rbx), %rdi
movq %r14, %rsi
callq 0x7e098
testl %eax, %eax
jne 0x8f630
testq %r15, %r15
je 0x8f5f0
leaq 0x58(%rbx), %rdi
movq %r15, %rsi
callq 0x7e098
testl %eax, %eax
jne 0x8f630
testq %r13, %r13
je 0x8f605
leaq 0x70(%rbx), %rdi
movq %r13, %rsi
callq 0x7e098
testl %eax, %eax
jne 0x8f630
testq %r12, %r12
je 0x8f61a
leaq 0x40(%rbx), %rdi
movq %r12, %rsi
callq 0x7e098
testl %eax, %eax
jne 0x8f630
movq (%rsp), %rsi
testq %rsi, %rsi
je 0x8f649
leaq 0x28(%rbx), %rdi
callq 0x7e098
testl %eax, %eax
je 0x8f649
movl %eax, %ebp
addl $0xffffbf80, %ebp # imm = 0xFFFFBF80
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
testq %r14, %r14
je 0x8f638
leaq 0x10(%rbx), %rdi
callq 0x7e32b
movq %rax, 0x8(%rbx)
jmp 0x8f638
| mbedtls_rsa_import:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov [rsp+38h+var_38], r9
mov r12, r8
mov r13, rcx
mov r15, rdx
mov r14, rsi
mov rbx, rdi
test rsi, rsi
jz short loc_8F5DB
lea rdi, [rbx+10h]
mov rsi, r14
call mbedtls_mpi_copy
test eax, eax
jnz short loc_8F630
loc_8F5DB:
test r15, r15
jz short loc_8F5F0
lea rdi, [rbx+58h]
mov rsi, r15
call mbedtls_mpi_copy
test eax, eax
jnz short loc_8F630
loc_8F5F0:
test r13, r13
jz short loc_8F605
lea rdi, [rbx+70h]
mov rsi, r13
call mbedtls_mpi_copy
test eax, eax
jnz short loc_8F630
loc_8F605:
test r12, r12
jz short loc_8F61A
lea rdi, [rbx+40h]
mov rsi, r12
call mbedtls_mpi_copy
test eax, eax
jnz short loc_8F630
loc_8F61A:
mov rsi, [rsp+38h+var_38]
test rsi, rsi
jz short loc_8F649
lea rdi, [rbx+28h]
call mbedtls_mpi_copy
test eax, eax
jz short loc_8F649
loc_8F630:
mov ebp, eax
add ebp, 0FFFFBF80h
loc_8F638:
mov eax, ebp
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_8F649:
xor ebp, ebp
test r14, r14
jz short loc_8F638
lea rdi, [rbx+10h]
call mbedtls_mpi_size
mov [rbx+8], rax
jmp short loc_8F638
| long long mbedtls_rsa_import(long long a1, long long a2, long long a3, long long a4, long long a5, long long a6)
{
int v9; // eax
unsigned int v10; // ebp
if ( a2 )
{
v9 = mbedtls_mpi_copy(a1 + 16, a2);
if ( v9 )
return (unsigned int)(v9 - 16512);
}
if ( a3 )
{
v9 = mbedtls_mpi_copy(a1 + 88, a3);
if ( v9 )
return (unsigned int)(v9 - 16512);
}
if ( a4 )
{
v9 = mbedtls_mpi_copy(a1 + 112, a4);
if ( v9 )
return (unsigned int)(v9 - 16512);
}
if ( a5 )
{
v9 = mbedtls_mpi_copy(a1 + 64, a5);
if ( v9 )
return (unsigned int)(v9 - 16512);
}
if ( a6 && (v9 = mbedtls_mpi_copy(a1 + 40, a6)) != 0 )
{
return (unsigned int)(v9 - 16512);
}
else
{
v10 = 0;
if ( a2 )
*(_QWORD *)(a1 + 8) = mbedtls_mpi_size(a1 + 16);
}
return v10;
}
| mbedtls_rsa_import:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV qword ptr [RSP],R9
MOV R12,R8
MOV R13,RCX
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
TEST RSI,RSI
JZ 0x0018f5db
LEA RDI,[RBX + 0x10]
MOV RSI,R14
CALL 0x0017e098
TEST EAX,EAX
JNZ 0x0018f630
LAB_0018f5db:
TEST R15,R15
JZ 0x0018f5f0
LEA RDI,[RBX + 0x58]
MOV RSI,R15
CALL 0x0017e098
TEST EAX,EAX
JNZ 0x0018f630
LAB_0018f5f0:
TEST R13,R13
JZ 0x0018f605
LEA RDI,[RBX + 0x70]
MOV RSI,R13
CALL 0x0017e098
TEST EAX,EAX
JNZ 0x0018f630
LAB_0018f605:
TEST R12,R12
JZ 0x0018f61a
LEA RDI,[RBX + 0x40]
MOV RSI,R12
CALL 0x0017e098
TEST EAX,EAX
JNZ 0x0018f630
LAB_0018f61a:
MOV RSI,qword ptr [RSP]
TEST RSI,RSI
JZ 0x0018f649
LEA RDI,[RBX + 0x28]
CALL 0x0017e098
TEST EAX,EAX
JZ 0x0018f649
LAB_0018f630:
MOV EBP,EAX
ADD EBP,0xffffbf80
LAB_0018f638:
MOV EAX,EBP
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0018f649:
XOR EBP,EBP
TEST R14,R14
JZ 0x0018f638
LEA RDI,[RBX + 0x10]
CALL 0x0017e32b
MOV qword ptr [RBX + 0x8],RAX
JMP 0x0018f638
|
int mbedtls_rsa_import(long param_1,long param_2,long param_3,long param_4,long param_5,long param_6
)
{
int iVar1;
int8 uVar2;
if (param_2 == 0) {
LAB_0018f5db:
if (param_3 != 0) {
iVar1 = mbedtls_mpi_copy(param_1 + 0x58,param_3);
if (iVar1 != 0) goto LAB_0018f630;
}
if (param_4 != 0) {
iVar1 = mbedtls_mpi_copy(param_1 + 0x70,param_4);
if (iVar1 != 0) goto LAB_0018f630;
}
if (param_5 != 0) {
iVar1 = mbedtls_mpi_copy(param_1 + 0x40,param_5);
if (iVar1 != 0) goto LAB_0018f630;
}
if (param_6 != 0) {
iVar1 = mbedtls_mpi_copy(param_1 + 0x28);
if (iVar1 != 0) goto LAB_0018f630;
}
iVar1 = 0;
if (param_2 != 0) {
uVar2 = mbedtls_mpi_size(param_1 + 0x10);
*(int8 *)(param_1 + 8) = uVar2;
}
}
else {
iVar1 = mbedtls_mpi_copy(param_1 + 0x10,param_2);
if (iVar1 == 0) goto LAB_0018f5db;
LAB_0018f630:
iVar1 = iVar1 + -0x4080;
}
return iVar1;
}
| |
28,194 | my_thread_init | eloqsql/mysys/my_thr_init.c | my_bool my_thread_init(void)
{
struct st_my_thread_var *tmp;
my_bool error=0;
if (!my_thread_global_init_done)
return 1; /* cannot proceed with uninitialized library */
#ifdef EXTRA_DEBUG_THREADS
fprintf(stderr,"my_thread_init(): pthread_self: %p\n", pthread_self());
#endif
if (my_thread_var)
{
#ifdef EXTRA_DEBUG_THREADS
fprintf(stderr,"my_thread_init() called more than once in thread 0x%lx\n",
(long) pthread_self());
#endif
goto end;
}
#ifdef _MSC_VER
install_sigabrt_handler();
#endif
if (!(tmp= (struct st_my_thread_var *) calloc(1, sizeof(*tmp))))
{
error= 1;
goto end;
}
set_mysys_var(tmp);
tmp->pthread_self= pthread_self();
my_thread_init_thr_mutex(tmp);
tmp->stack_ends_here= (char*)&tmp +
STACK_DIRECTION * (long)my_thread_stack_size;
mysql_mutex_lock(&THR_LOCK_threads);
tmp->id= tmp->dbug_id= ++thread_id;
++THR_thread_count;
mysql_mutex_unlock(&THR_LOCK_threads);
tmp->init= 1;
#ifndef DBUG_OFF
/* Generate unique name for thread */
(void) my_thread_name();
#endif
end:
return error;
} | O3 | c | my_thread_init:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movb $0x1, %bl
cmpb $0x1, 0xb66884(%rip) # 0xc08530
jne 0xa1d85
leaq 0xb6687b(%rip), %r15 # 0xc08534
movl (%r15), %edi
callq 0x29840
testq %rax, %rax
jne 0xa1d83
movl $0x1, %edi
movl $0xf0, %esi
callq 0x296c0
movq %rax, -0x20(%rbp)
testq %rax, %rax
je 0xa1d85
movq %rax, %r14
movl (%r15), %edi
movq %rax, %rsi
callq 0x292f0
callq 0x29580
movq %rax, 0xc8(%r14)
movq %r14, %rdi
callq 0xa1ba3
leaq 0x2e3ac1(%rip), %rax # 0x3857d0
leaq -0x20(%rbp), %rcx
addq (%rax), %rcx
movq %rcx, 0xb8(%r14)
leaq 0xb66744(%rip), %rbx # 0xc08468
cmpq $0x0, 0x40(%rbx)
jne 0xa1d92
leaq 0xb66736(%rip), %rdi # 0xc08468
callq 0x29200
movq 0xb667fa(%rip), %rax # 0xc08538
incq %rax
movq %rax, 0xb667f0(%rip) # 0xc08538
movq -0x20(%rbp), %rcx
movq %rax, 0xd8(%rcx)
movq %rax, 0xd0(%rcx)
leaq 0xb66507(%rip), %rax # 0xc08268
incl (%rax)
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
jne 0xa1d99
leaq 0xb666f5(%rip), %rdi # 0xc08468
callq 0x291c0
movq -0x20(%rbp), %rax
movb $0x1, 0xe8(%rax)
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x2ef8c
jmp 0xa1d37
leaq 0x2e4270(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0xa1d6c
| my_thread_init:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov bl, 1
cmp cs:my_thread_global_init_done, 1
jnz loc_A1D85
lea r15, THR_KEY_mysys
mov edi, [r15]
call _pthread_getspecific
test rax, rax
jnz loc_A1D83
mov edi, 1
mov esi, 0F0h
call _calloc
mov [rbp+var_20], rax
test rax, rax
jz loc_A1D85
mov r14, rax
mov edi, [r15]
mov rsi, rax
call _pthread_setspecific
call _pthread_self
mov [r14+0C8h], rax
mov rdi, r14
call my_thread_init_thr_mutex
lea rax, my_thread_stack_size
lea rcx, [rbp+var_20]
add rcx, [rax]
mov [r14+0B8h], rcx
lea rbx, THR_LOCK_threads
cmp qword ptr [rbx+40h], 0
jnz short loc_A1D92
lea rdi, THR_LOCK_threads
call _pthread_mutex_lock
loc_A1D37:
mov rax, cs:thread_id
inc rax
mov cs:thread_id, rax
mov rcx, [rbp+var_20]
mov [rcx+0D8h], rax
mov [rcx+0D0h], rax
lea rax, THR_thread_count
inc dword ptr [rax]
mov rdi, [rbx+40h]
test rdi, rdi
jnz short loc_A1D99
loc_A1D6C:
lea rdi, THR_LOCK_threads
call _pthread_mutex_unlock
mov rax, [rbp+var_20]
mov byte ptr [rax+0E8h], 1
loc_A1D83:
xor ebx, ebx
loc_A1D85:
mov eax, ebx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_A1D92:
call my_thread_init_cold_1
jmp short loc_A1D37
loc_A1D99:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_A1D6C
| long long my_thread_init()
{
long long v0; // rax
unsigned int v1; // ebx
long long v2; // rax
long long v3; // r14
long long v4; // rdi
long long v5; // rax
long long v6; // rcx
_QWORD v8[4]; // [rsp+0h] [rbp-20h] BYREF
v8[0] = v0;
LOBYTE(v1) = 1;
if ( my_thread_global_init_done == 1 )
{
if ( pthread_getspecific(THR_KEY_mysys) )
return 0;
v2 = calloc(1LL, 240LL);
v8[0] = v2;
if ( v2 )
{
v3 = v2;
v4 = THR_KEY_mysys;
pthread_setspecific(THR_KEY_mysys, v2);
*(_QWORD *)(v3 + 200) = pthread_self(v4);
my_thread_init_thr_mutex(v3);
*(_QWORD *)(v3 + 184) = (char *)v8 + my_thread_stack_size;
if ( THR_LOCK_threads[8] )
my_thread_init_cold_1();
else
pthread_mutex_lock(THR_LOCK_threads);
v5 = thread_id + 1;
thread_id = v5;
v6 = v8[0];
*(_QWORD *)(v8[0] + 216LL) = v5;
*(_QWORD *)(v6 + 208) = v5;
++THR_thread_count;
if ( THR_LOCK_threads[8] )
PSI_server[44]();
pthread_mutex_unlock(THR_LOCK_threads);
*(_BYTE *)(v8[0] + 232LL) = 1;
return 0;
}
}
return v1;
}
| my_thread_init:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV BL,0x1
CMP byte ptr [0x00d08530],0x1
JNZ 0x001a1d85
LEA R15,[0xd08534]
MOV EDI,dword ptr [R15]
CALL 0x00129840
TEST RAX,RAX
JNZ 0x001a1d83
MOV EDI,0x1
MOV ESI,0xf0
CALL 0x001296c0
MOV qword ptr [RBP + -0x20],RAX
TEST RAX,RAX
JZ 0x001a1d85
MOV R14,RAX
MOV EDI,dword ptr [R15]
MOV RSI,RAX
CALL 0x001292f0
CALL 0x00129580
MOV qword ptr [R14 + 0xc8],RAX
MOV RDI,R14
CALL 0x001a1ba3
LEA RAX,[0x4857d0]
LEA RCX,[RBP + -0x20]
ADD RCX,qword ptr [RAX]
MOV qword ptr [R14 + 0xb8],RCX
LEA RBX,[0xd08468]
CMP qword ptr [RBX + 0x40],0x0
JNZ 0x001a1d92
LEA RDI,[0xd08468]
CALL 0x00129200
LAB_001a1d37:
MOV RAX,qword ptr [0x00d08538]
INC RAX
MOV qword ptr [0x00d08538],RAX
MOV RCX,qword ptr [RBP + -0x20]
MOV qword ptr [RCX + 0xd8],RAX
MOV qword ptr [RCX + 0xd0],RAX
LEA RAX,[0xd08268]
INC dword ptr [RAX]
MOV RDI,qword ptr [RBX + 0x40]
TEST RDI,RDI
JNZ 0x001a1d99
LAB_001a1d6c:
LEA RDI,[0xd08468]
CALL 0x001291c0
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX + 0xe8],0x1
LAB_001a1d83:
XOR EBX,EBX
LAB_001a1d85:
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_001a1d92:
CALL 0x0012ef8c
JMP 0x001a1d37
LAB_001a1d99:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x001a1d6c
|
ulong my_thread_init(void)
{
void *pvVar1;
pthread_t pVar2;
long lVar3;
int8 unaff_RBX;
ulong uVar4;
void *local_28;
uVar4 = CONCAT71((int7)((ulong)unaff_RBX >> 8),1);
if (my_thread_global_init_done == '\x01') {
pvVar1 = pthread_getspecific(THR_KEY_mysys);
if (pvVar1 == (void *)0x0) {
pvVar1 = calloc(1,0xf0);
if (pvVar1 == (void *)0x0) goto LAB_001a1d85;
local_28 = pvVar1;
pthread_setspecific(THR_KEY_mysys,pvVar1);
pVar2 = pthread_self();
*(pthread_t *)((long)pvVar1 + 200) = pVar2;
my_thread_init_thr_mutex(pvVar1);
*(long *)((long)pvVar1 + 0xb8) = (long)&local_28 + my_thread_stack_size;
if (THR_LOCK_threads._64_8_ == 0) {
pthread_mutex_lock((pthread_mutex_t *)THR_LOCK_threads);
}
else {
my_thread_init_cold_1();
}
lVar3 = thread_id + 1;
thread_id = lVar3;
*(long *)((long)local_28 + 0xd8) = lVar3;
*(long *)((long)local_28 + 0xd0) = lVar3;
THR_thread_count = THR_thread_count + 1;
if (THR_LOCK_threads._64_8_ != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock((pthread_mutex_t *)THR_LOCK_threads);
*(int1 *)((long)local_28 + 0xe8) = 1;
}
uVar4 = 0;
}
LAB_001a1d85:
return uVar4 & 0xffffffff;
}
| |
28,195 | ConfigNumber<unsigned int>::ConfigNumber(unsigned int, unsigned int, unsigned int) | untodesu[P]voxelius/core/config.hh | inline ConfigNumber<T>::ConfigNumber(T default_value, T min_value, T max_value)
{
m_value = default_value;
m_min_value = min_value;
m_max_value = max_value;
m_string = std::to_string(default_value);
} | O3 | cpp | ConfigNumber<unsigned int>::ConfigNumber(unsigned int, unsigned int, unsigned int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %esi, %ebp
movq %rdi, %rbx
leaq 0xe3bf8(%rip), %rax # 0x1018c8
movq %rax, (%rdi)
leaq 0x28(%rdi), %r15
movq %r15, 0x18(%rdi)
movq $0x0, 0x20(%rdi)
movb $0x0, 0x28(%rdi)
movl %esi, 0x8(%rdi)
movl %edx, 0xc(%rdi)
movl %ecx, 0x10(%rdi)
movl $0x1, %eax
cmpl $0xa, %esi
jb 0x1dd3e
movl $0x4, %eax
movl $0xd1b71759, %ecx # imm = 0xD1B71759
movl %ebp, %edx
cmpl $0x63, %edx
jbe 0x1dd37
cmpl $0x3e7, %edx # imm = 0x3E7
jbe 0x1dd3c
cmpl $0x2710, %edx # imm = 0x2710
jb 0x1dd3e
movl %edx, %esi
imulq %rcx, %rsi
shrq $0x2d, %rsi
addl $0x4, %eax
cmpl $0x1869f, %edx # imm = 0x1869F
movl %esi, %edx
ja 0x1dd06
addl $-0x3, %eax
jmp 0x1dd3e
addl $-0x2, %eax
jmp 0x1dd3e
decl %eax
addq $0x18, %rbx
movl %eax, %esi
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rsp, %rdi
xorl %edx, %edx
callq 0x167b0
movq %rsp, %r14
movq (%r14), %rdi
movl 0x8(%r14), %esi
movl %ebp, %edx
callq 0x1cd86
movq %rbx, %rdi
movq %r14, %rsi
callq 0x16840
movq (%r14), %rdi
cmpq %r12, %rdi
je 0x1dd89
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x166c0
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x1ddac
movq (%r15), %rsi
incq %rsi
callq 0x166c0
movq %r14, %rdi
callq 0x16c90
| _ZN12ConfigNumberIjEC2Ejjj:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 20h
mov ebp, esi
mov rbx, rdi
lea rax, off_1018C8
mov [rdi], rax
lea r15, [rdi+28h]
mov [rdi+18h], r15
mov qword ptr [rdi+20h], 0
mov byte ptr [rdi+28h], 0
mov [rdi+8], esi
mov [rdi+0Ch], edx
mov [rdi+10h], ecx
mov eax, 1
cmp esi, 0Ah
jb short loc_1DD3E
mov eax, 4
mov ecx, 0D1B71759h
mov edx, ebp
loc_1DD06:
cmp edx, 63h ; 'c'
jbe short loc_1DD37
cmp edx, 3E7h
jbe short loc_1DD3C
cmp edx, 2710h
jb short loc_1DD3E
mov esi, edx
imul rsi, rcx
shr rsi, 2Dh
add eax, 4
cmp edx, (offset loc_1869C+3)
mov edx, esi
ja short loc_1DD06
add eax, 0FFFFFFFDh
jmp short loc_1DD3E
loc_1DD37:
add eax, 0FFFFFFFEh
jmp short loc_1DD3E
loc_1DD3C:
dec eax
loc_1DD3E:
add rbx, 18h
mov esi, eax
lea r12, [rsp+48h+var_38]
mov [r12-10h], r12
mov rdi, rsp
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructEmc; std::string::_M_construct(ulong,char)
mov r14, rsp
mov rdi, [r14]
mov esi, [r14+8]
mov edx, ebp
call _ZNSt8__detail18__to_chars_10_implIjEEvPcjT_; std::__detail::__to_chars_10_impl<uint>(char *,uint,uint)
mov rdi, rbx
mov rsi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r14]; void *
cmp rdi, r12
jz short loc_1DD89
mov rsi, [rsp+48h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1DD89:
add rsp, 20h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, r15
jz short loc_1DDAC
mov rsi, [r15]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1DDAC:
mov rdi, r14
call __Unwind_Resume
| void ConfigNumber<unsigned int>::ConfigNumber(long long a1, unsigned int a2, int a3, int a4)
{
unsigned int v4; // eax
unsigned int v5; // edx
bool v6; // cc
char *v7; // [rsp+0h] [rbp-48h] BYREF
int v8; // [rsp+8h] [rbp-40h]
_QWORD v9[7]; // [rsp+10h] [rbp-38h] BYREF
*(_QWORD *)a1 = &off_1018C8;
*(_QWORD *)(a1 + 24) = a1 + 40;
*(_QWORD *)(a1 + 32) = 0LL;
*(_BYTE *)(a1 + 40) = 0;
*(_DWORD *)(a1 + 8) = a2;
*(_DWORD *)(a1 + 12) = a3;
*(_DWORD *)(a1 + 16) = a4;
v4 = 1;
if ( a2 >= 0xA )
{
v4 = 4;
v5 = a2;
while ( 1 )
{
if ( v5 <= 0x63 )
{
v4 -= 2;
goto LABEL_10;
}
if ( v5 <= 0x3E7 )
break;
if ( v5 < 0x2710 )
goto LABEL_10;
v4 += 4;
v6 = v5 <= (unsigned int)&loc_1869C + 3;
v5 /= 0x2710u;
if ( v6 )
{
v4 -= 3;
goto LABEL_10;
}
}
--v4;
}
LABEL_10:
v7 = (char *)v9;
std::string::_M_construct(&v7, v4, 0LL);
std::__detail::__to_chars_10_impl<unsigned int>(v7, v8, a2);
std::string::operator=(a1 + 24, &v7);
if ( v7 != (char *)v9 )
operator delete(v7, v9[0] + 1LL);
}
| ConfigNumber:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x20
MOV EBP,ESI
MOV RBX,RDI
LEA RAX,[0x2018c8]
MOV qword ptr [RDI],RAX
LEA R15,[RDI + 0x28]
MOV qword ptr [RDI + 0x18],R15
MOV qword ptr [RDI + 0x20],0x0
MOV byte ptr [RDI + 0x28],0x0
MOV dword ptr [RDI + 0x8],ESI
MOV dword ptr [RDI + 0xc],EDX
MOV dword ptr [RDI + 0x10],ECX
MOV EAX,0x1
CMP ESI,0xa
JC 0x0011dd3e
MOV EAX,0x4
MOV ECX,0xd1b71759
MOV EDX,EBP
LAB_0011dd06:
CMP EDX,0x63
JBE 0x0011dd37
CMP EDX,0x3e7
JBE 0x0011dd3c
CMP EDX,0x2710
JC 0x0011dd3e
MOV ESI,EDX
IMUL RSI,RCX
SHR RSI,0x2d
ADD EAX,0x4
CMP EDX,0x1869f
MOV EDX,ESI
JA 0x0011dd06
ADD EAX,-0x3
JMP 0x0011dd3e
LAB_0011dd37:
ADD EAX,-0x2
JMP 0x0011dd3e
LAB_0011dd3c:
DEC EAX
LAB_0011dd3e:
ADD RBX,0x18
MOV ESI,EAX
LEA R12,[RSP + 0x10]
MOV qword ptr [R12 + -0x10],R12
LAB_0011dd4e:
MOV RDI,RSP
XOR EDX,EDX
CALL 0x001167b0
LAB_0011dd58:
MOV R14,RSP
MOV RDI,qword ptr [R14]
MOV ESI,dword ptr [R14 + 0x8]
MOV EDX,EBP
CALL 0x0011cd86
MOV RDI,RBX
MOV RSI,R14
CALL 0x00116840
MOV RDI,qword ptr [R14]
CMP RDI,R12
JZ 0x0011dd89
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x001166c0
LAB_0011dd89:
ADD RSP,0x20
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* ConfigNumber<unsigned int>::ConfigNumber(unsigned int, unsigned int, unsigned int) */
void __thiscall
ConfigNumber<unsigned_int>::ConfigNumber
(ConfigNumber<unsigned_int> *this,uint param_1,uint param_2,uint param_3)
{
bool bVar1;
uint uVar2;
char cVar3;
char cVar4;
long *local_48;
uint local_40;
long local_38 [2];
*(int ***)this = &PTR__ConfigNumber_002018c8;
*(ConfigNumber<unsigned_int> **)(this + 0x18) = this + 0x28;
*(int8 *)(this + 0x20) = 0;
this[0x28] = (ConfigNumber<unsigned_int>)0x0;
*(uint *)(this + 8) = param_1;
*(uint *)(this + 0xc) = param_2;
*(uint *)(this + 0x10) = param_3;
cVar4 = '\x01';
if (9 < param_1) {
uVar2 = param_1;
cVar3 = '\x04';
do {
cVar4 = cVar3;
if (uVar2 < 100) {
cVar4 = cVar4 + -2;
goto LAB_0011dd3e;
}
if (uVar2 < 1000) {
cVar4 = cVar4 + -1;
goto LAB_0011dd3e;
}
if (uVar2 < 10000) goto LAB_0011dd3e;
bVar1 = 99999 < uVar2;
uVar2 = uVar2 / 10000;
cVar3 = cVar4 + '\x04';
} while (bVar1);
cVar4 = cVar4 + '\x01';
}
LAB_0011dd3e:
local_48 = local_38;
/* try { // try from 0011dd4e to 0011dd57 has its CatchHandler @ 0011dd96 */
std::__cxx11::string::_M_construct((ulong)&local_48,cVar4);
std::__detail::__to_chars_10_impl<unsigned_int>((char *)local_48,local_40,param_1);
std::__cxx11::string::operator=((string *)(this + 0x18),(string *)&local_48);
if (local_48 != local_38) {
operator_delete(local_48,local_38[0] + 1);
}
return;
}
| |
28,196 | nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t) | monkey531[P]llama/common/json.hpp | static type_error create(int id_, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("type_error", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
} | O2 | cpp | nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x90, %rsp
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x3bc06(%rip), %rsi # 0xd03be
leaq 0x30(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x2b18e
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rsi
movl %ebp, %edx
callq 0x65a6a
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
callq 0x65ae0
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rsi
leaq 0x10(%rsp), %rdx
movq %r14, %rcx
callq 0x65a01
leaq 0x10(%rsp), %rdi
callq 0x27998
leaq 0x50(%rsp), %rdi
callq 0x27998
leaq 0x30(%rsp), %rdi
callq 0x27998
movq 0x70(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x6b158
leaq 0x70(%rsp), %rdi
callq 0x27998
movq %rbx, %rax
addq $0x90, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
jmp 0x94871
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x27998
jmp 0x9485d
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
callq 0x27998
jmp 0x9486c
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x27998
jmp 0x9487b
movq %rax, %rbx
movq %rbx, %rdi
callq 0x27660
nop
| _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
push rbp
push r14
push rbx
sub rsp, 90h
mov r14, rdx
mov ebp, esi
mov rbx, rdi
lea rsi, aTypeError; "type_error"
lea rdi, [rsp+0A8h+var_78]
lea rdx, [rsp+0A8h+var_99]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rdi, [rsp+0A8h+var_58]
lea rsi, [rsp+0A8h+var_78]
mov edx, ebp
call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea rdi, [rsp+0A8h+var_98]
xor esi, esi
call _ZN8nlohmann16json_abi_v3_11_36detail9exception11diagnosticsB5cxx11EDn; nlohmann::json_abi_v3_11_3::detail::exception::diagnostics(decltype(nullptr))
lea rdi, [rsp+0A8h+var_38]
lea rsi, [rsp+0A8h+var_58]
lea rdx, [rsp+0A8h+var_98]
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJS8_S8_RKS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(std::string,std::string,std::string const&)
lea rdi, [rsp+0A8h+var_98]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_58]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+0A8h+var_78]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdx, [rsp+0A8h+var_38]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail10type_errorC2EiPKc; nlohmann::json_abi_v3_11_3::detail::type_error::type_error(int,char const*)
lea rdi, [rsp+0A8h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, rbx
add rsp, 90h
pop rbx
pop r14
pop rbp
retn
mov rbx, rax
lea rdi, [rsp+arg_68]
jmp short loc_94871
mov rbx, rax
lea rdi, [rsp+arg_8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_9485D
mov rbx, rax
loc_9485D:
lea rdi, [rsp+arg_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_9486C
mov rbx, rax
loc_9486C:
lea rdi, [rsp+arg_28]; void *
loc_94871:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_9487B
mov rbx, rax
loc_9487B:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_3::detail::type_error * ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_(
nlohmann::json_abi_v3_11_3::detail::type_error *this,
int a2,
long long a3)
{
_QWORD v5[4]; // [rsp+10h] [rbp-98h] BYREF
_QWORD v6[4]; // [rsp+30h] [rbp-78h] BYREF
_BYTE v7[32]; // [rsp+50h] [rbp-58h] BYREF
char *v8[7]; // [rsp+70h] [rbp-38h] BYREF
std::string::basic_string<std::allocator<char>>(v6, (long long)"type_error");
nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v7, (long long)v6, a2);
nlohmann::json_abi_v3_11_3::detail::exception::diagnostics[abi:cxx11](v5);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,std::string,std::string,std::string const&>(
(long long)v8,
(long long)v7,
(long long)v5,
a3);
std::string::~string(v5);
std::string::~string(v7);
std::string::~string(v6);
nlohmann::json_abi_v3_11_3::detail::type_error::type_error(this, a2, v8[0]);
std::string::~string(v8);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x90
MOV R14,RDX
MOV EBP,ESI
MOV RBX,RDI
LAB_001947b1:
LEA RSI,[0x1d03be]
LEA RDI,[RSP + 0x30]
LEA RDX,[RSP + 0xf]
CALL 0x0012b18e
LAB_001947c7:
LEA RDI,[RSP + 0x50]
LEA RSI,[RSP + 0x30]
MOV EDX,EBP
CALL 0x00165a6a
LAB_001947d8:
LEA RDI,[RSP + 0x10]
XOR ESI,ESI
CALL 0x00165ae0
LAB_001947e4:
LEA RDI,[RSP + 0x70]
LEA RSI,[RSP + 0x50]
LEA RDX,[RSP + 0x10]
MOV RCX,R14
CALL 0x00165a01
LEA RDI,[RSP + 0x10]
CALL 0x00127998
LEA RDI,[RSP + 0x50]
CALL 0x00127998
LEA RDI,[RSP + 0x30]
CALL 0x00127998
MOV RDX,qword ptr [RSP + 0x70]
LAB_0019481e:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x0016b158
LAB_00194828:
LEA RDI,[RSP + 0x70]
CALL 0x00127998
MOV RAX,RBX
ADD RSP,0x90
POP RBX
POP R14
POP RBP
RET
|
type_error *
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_
(type_error *param_1,int param_2,string *param_3)
{
allocator local_99;
string local_98 [32];
string local_78 [32];
exception local_58 [32];
char *local_38 [4];
/* try { // try from 001947b1 to 001947c6 has its CatchHandler @ 00194878 */
std::__cxx11::string::string<std::allocator<char>>(local_78,"type_error",&local_99);
/* try { // try from 001947c7 to 001947d7 has its CatchHandler @ 00194869 */
nlohmann::json_abi_v3_11_3::detail::exception::name(local_58,local_78,param_2);
/* try { // try from 001947d8 to 001947e3 has its CatchHandler @ 0019485a */
nlohmann::json_abi_v3_11_3::detail::exception::diagnostics_abi_cxx11_
((_func_decltype_nullptr *)local_98);
/* try { // try from 001947e4 to 001947fa has its CatchHandler @ 0019484b */
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,std::__cxx11::string,std::__cxx11::string,std::__cxx11::string_const&>
((detail *)local_38,(string *)local_58,local_98,param_3);
std::__cxx11::string::~string(local_98);
std::__cxx11::string::~string((string *)local_58);
std::__cxx11::string::~string(local_78);
/* try { // try from 0019481e to 00194827 has its CatchHandler @ 00194841 */
nlohmann::json_abi_v3_11_3::detail::type_error::type_error(param_1,param_2,local_38[0]);
std::__cxx11::string::~string((string *)local_38);
return param_1;
}
| |
28,197 | nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t) | monkey531[P]llama/common/json.hpp | static type_error create(int id_, const std::string& what_arg, BasicJsonContext context)
{
const std::string w = concat(exception::name("type_error", id_), exception::diagnostics(context), what_arg);
return {id_, w.c_str()};
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::type_error nlohmann::json_abi_v3_11_3::detail::type_error::create<std::nullptr_t, 0>(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::nullptr_t):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x38(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x68cc1(%rip), %rsi # 0x1134cc
leaq 0x68cc4(%rip), %rdx # 0x1134d6
leaq 0x28(%rsp), %rdi
callq 0x26926
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movl %ebp, %edx
callq 0x899e2
leaq 0x78(%rsp), %r14
movq %r14, -0x10(%r14)
xorl %eax, %eax
movq %rax, -0x8(%r14)
movb %al, (%r14)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb %al, (%r12)
movq 0x8(%r15), %rsi
addq 0x50(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x1e370
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x1d310
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
leaq 0x8(%rsp), %rdi
callq 0x1d310
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x8(%rsp), %rdi
callq 0x1d310
movq 0x68(%rsp), %rdi
cmpq %r14, %rdi
je 0xaa8b5
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x1dc50
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xaa8d0
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x1dc50
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xaa8e7
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1dc50
movq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x89bde
leaq 0xa98b3(%rip), %rax # 0x1541b0
addq $0x10, %rax
movq %rax, (%rbx)
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xaa91b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1dc50
movq %rbx, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xaa9a9
movq 0x18(%rsp), %rsi
jmp 0xaa9a1
movq %rax, %rbx
jmp 0xaa992
movq %rax, %rbx
jmp 0xaa9a9
movq %rdx, %rbx
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0xaa96b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1dc50
leaq 0x68(%rsp), %rdi
leaq 0x48(%rsp), %rdx
leaq 0x88(%rsp), %r12
movq %r14, %rsi
movq %r15, %rcx
movl %ebx, %r8d
movq %r12, %r9
callq 0x1f895
movq (%r12), %rbx
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0xaa9a9
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1dc50
movq %rbx, %rdi
callq 0x1e660
| _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 98h
mov r15, rdx
mov ebp, esi
mov rbx, rdi
lea r13, [rsp+0C8h+var_90]
mov [r13-10h], r13
lea rsi, aTypeError; "type_error"
lea rdx, aTypeError+0Ah; ""
lea rdi, [rsp+0C8h+var_A0]
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+0C8h+var_80]; int
lea rsi, [rsp+0C8h+var_A0]; int
mov edx, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail9exception4nameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; nlohmann::json_abi_v3_11_3::detail::exception::name(std::string const&,int)
lea r14, [rsp+0C8h+var_50]
mov [r14-10h], r14
xor eax, eax
mov [r14-8], rax
mov [r14], al
lea r12, [rsp+0C8h+var_B0]
mov [r12-10h], r12
mov [r12-8], rax
mov [r12], al
mov rsi, [r15+8]
add rsi, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
mov rsi, qword ptr [rsp+0C8h+var_80]
mov rdx, [rsp+0C8h+var_78]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [rsp+0C8h+var_60]
mov rdx, [rsp+0C8h+var_58]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rsi, [r15]
mov rdx, [r15+8]
lea rdi, [rsp+0C8h+var_C0]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcm; std::string::_M_append(char const*,ulong)
mov rdi, [rsp+0C8h+var_60]; void *
cmp rdi, r14
jz short loc_AA8B5
mov rsi, [rsp+0C8h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AA8B5:
lea rax, [rsp+0C8h+var_70]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_AA8D0
mov rsi, [rsp+0C8h+var_70]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AA8D0:
mov rdi, [rsp+0C8h+var_A0]; void *
cmp rdi, r13
jz short loc_AA8E7
mov rsi, [rsp+0C8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AA8E7:
mov rdx, [rsp+0C8h+var_C0]; char *
mov rdi, rbx; this
mov esi, ebp; int
call _ZN8nlohmann16json_abi_v3_11_36detail9exceptionC2EiPKc; nlohmann::json_abi_v3_11_3::detail::exception::exception(int,char const*)
lea rax, _ZTVN8nlohmann16json_abi_v3_11_36detail10type_errorE; `vtable for'nlohmann::json_abi_v3_11_3::detail::type_error
add rax, 10h
mov [rbx], rax
mov rdi, [rsp+0C8h+var_C0]; void *
cmp rdi, r12
jz short loc_AA91B
mov rsi, [rsp+0C8h+var_B0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AA91B:
mov rax, rbx
add rsp, 98h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
mov rdi, [rsp+arg_0]
cmp rdi, r12
jz short loc_AA9A9
mov rsi, [rsp+arg_10]
jmp short loc_AA9A1
mov rbx, rax
jmp short loc_AA992
mov rbx, rax
jmp short loc_AA9A9
mov rbx, rdx
mov r15, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_AA96B
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AA96B:
lea rdi, [rsp+arg_60]
lea rdx, [rsp+arg_40]
lea r12, [rsp+arg_80]
mov rsi, r14
mov rcx, r15
mov r8d, ebx
mov r9, r12
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK__cold_1
mov rbx, [r12]
loc_AA992:
mov rdi, [rsp+arg_20]; void *
cmp rdi, r13
jz short loc_AA9A9
mov rsi, [rsp+arg_30]
loc_AA9A1:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_AA9A9:
mov rdi, rbx
call __Unwind_Resume
| nlohmann::json_abi_v3_11_3::detail::exception * ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
nlohmann::json_abi_v3_11_3::detail::exception *this,
int a2,
_QWORD *a3)
{
char *v5[2]; // [rsp+8h] [rbp-C0h] BYREF
_QWORD v6[2]; // [rsp+18h] [rbp-B0h] BYREF
void *v7[2]; // [rsp+28h] [rbp-A0h] BYREF
_QWORD v8[2]; // [rsp+38h] [rbp-90h] BYREF
int v9[2]; // [rsp+48h] [rbp-80h] BYREF
long long v10; // [rsp+50h] [rbp-78h]
long long v11; // [rsp+58h] [rbp-70h] BYREF
void *v12; // [rsp+68h] [rbp-60h]
long long v13; // [rsp+70h] [rbp-58h]
_QWORD v14[10]; // [rsp+78h] [rbp-50h] BYREF
v7[0] = v8;
std::string::_M_construct<char const*>((long long)v7, "type_error", (long long)"");
nlohmann::json_abi_v3_11_3::detail::exception::name((long long)v9, (long long)v7, a2);
v12 = v14;
v13 = 0LL;
LOBYTE(v14[0]) = 0;
v5[0] = (char *)v6;
v5[1] = 0LL;
LOBYTE(v6[0]) = 0;
std::string::reserve(v5, v10 + a3[1]);
std::string::_M_append(v5, *(_QWORD *)v9, v10);
std::string::_M_append(v5, v12, v13);
std::string::_M_append(v5, *a3, a3[1]);
if ( v12 != v14 )
operator delete(v12, v14[0] + 1LL);
if ( *(long long **)v9 != &v11 )
operator delete(*(void **)v9, v11 + 1);
if ( v7[0] != v8 )
operator delete(v7[0], v8[0] + 1LL);
nlohmann::json_abi_v3_11_3::detail::exception::exception(this, a2, v5[0]);
*(_QWORD *)this = &`vtable for'nlohmann::json_abi_v3_11_3::detail::type_error + 2;
if ( (_QWORD *)v5[0] != v6 )
operator delete(v5[0], v6[0] + 1LL);
return this;
}
| _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x98
MOV R15,RDX
MOV EBP,ESI
MOV RBX,RDI
LEA R13,[RSP + 0x38]
MOV qword ptr [R13 + -0x10],R13
LAB_001aa804:
LEA RSI,[0x2134cc]
LEA RDX,[0x2134d6]
LEA RDI,[RSP + 0x28]
CALL 0x00126926
LAB_001aa81c:
LEA RDI,[RSP + 0x48]
LEA RSI,[RSP + 0x28]
MOV EDX,EBP
CALL 0x001899e2
LEA R14,[RSP + 0x78]
MOV qword ptr [R14 + -0x10],R14
XOR EAX,EAX
MOV qword ptr [R14 + -0x8],RAX
MOV byte ptr [R14],AL
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
MOV qword ptr [R12 + -0x8],RAX
MOV byte ptr [R12],AL
MOV RSI,qword ptr [R15 + 0x8]
ADD RSI,qword ptr [RSP + 0x50]
LAB_001aa85b:
LEA RDI,[RSP + 0x8]
CALL 0x0011e370
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
LEA RDI,[RSP + 0x8]
CALL 0x0011d310
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
LEA RDI,[RSP + 0x8]
CALL 0x0011d310
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
LEA RDI,[RSP + 0x8]
CALL 0x0011d310
MOV RDI,qword ptr [RSP + 0x68]
CMP RDI,R14
JZ 0x001aa8b5
MOV RSI,qword ptr [RSP + 0x78]
INC RSI
CALL 0x0011dc50
LAB_001aa8b5:
LEA RAX,[RSP + 0x58]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001aa8d0
MOV RSI,qword ptr [RSP + 0x58]
INC RSI
CALL 0x0011dc50
LAB_001aa8d0:
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R13
JZ 0x001aa8e7
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x0011dc50
LAB_001aa8e7:
MOV RDX,qword ptr [RSP + 0x8]
LAB_001aa8ec:
MOV RDI,RBX
MOV ESI,EBP
CALL 0x00189bde
LAB_001aa8f6:
LEA RAX,[0x2541b0]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x001aa91b
MOV RSI,qword ptr [RSP + 0x18]
INC RSI
CALL 0x0011dc50
LAB_001aa91b:
MOV RAX,RBX
ADD RSP,0x98
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
exception *
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(exception *param_1,int param_2,ulong *param_3)
{
char *local_c0;
int8 local_b8;
char local_b0;
int7 uStack_af;
long *local_a0 [2];
long local_90 [2];
long *local_80 [2];
long local_70 [2];
int1 *local_60;
int8 local_58;
int1 local_50;
int7 uStack_4f;
/* try { // try from 001aa804 to 001aa81b has its CatchHandler @ 001aa949 */
local_a0[0] = local_90;
std::__cxx11::string::_M_construct<char_const*>(local_a0,"type_error","");
/* try { // try from 001aa81c to 001aa82c has its CatchHandler @ 001aa944 */
nlohmann::json_abi_v3_11_3::detail::exception::name
((exception *)local_80,(string *)local_a0,param_2);
local_58 = 0;
local_50 = 0;
local_b8 = 0;
local_b0 = '\0';
/* try { // try from 001aa85b to 001aa89d has its CatchHandler @ 001aa94e */
local_c0 = &local_b0;
local_60 = &local_50;
std::__cxx11::string::reserve((ulong)&local_c0);
std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_80[0]);
std::__cxx11::string::_M_append((char *)&local_c0,(ulong)local_60);
std::__cxx11::string::_M_append((char *)&local_c0,*param_3);
if (local_60 != &local_50) {
operator_delete(local_60,CONCAT71(uStack_4f,local_50) + 1);
}
if (local_80[0] != local_70) {
operator_delete(local_80[0],local_70[0] + 1);
}
if (local_a0[0] != local_90) {
operator_delete(local_a0[0],local_90[0] + 1);
}
/* try { // try from 001aa8ec to 001aa8f5 has its CatchHandler @ 001aa930 */
nlohmann::json_abi_v3_11_3::detail::exception::exception(param_1,param_2,local_c0);
*(int ***)param_1 = &PTR__exception_002541c0;
if (local_c0 != &local_b0) {
operator_delete(local_c0,CONCAT71(uStack_af,local_b0) + 1);
}
return param_1;
}
| |
28,198 | char_prefix_to_ulonglong(unsigned char*) | eloqsql/sql/field.cc | static
inline ulonglong char_prefix_to_ulonglong(uchar *src)
{
uint sz= sizeof(ulonglong);
for (uint i= 0; i < sz/2; i++)
{
uchar tmp= src[i];
src[i]= src[sz-1-i];
src[sz-1-i]= tmp;
}
return uint8korr(src);
} | O0 | cpp | char_prefix_to_ulonglong(unsigned char*):
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl $0x8, -0xc(%rbp)
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
movl -0xc(%rbp), %ecx
shrl %ecx
cmpl %ecx, %eax
jae 0x8a7fbb
movq -0x8(%rbp), %rax
movl -0x10(%rbp), %ecx
movb (%rax,%rcx), %al
movb %al, -0x11(%rbp)
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
subl $0x1, %ecx
subl -0x10(%rbp), %ecx
movl %ecx, %ecx
movb (%rax,%rcx), %dl
movq -0x8(%rbp), %rax
movl -0x10(%rbp), %ecx
movb %dl, (%rax,%rcx)
movb -0x11(%rbp), %dl
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
subl $0x1, %ecx
subl -0x10(%rbp), %ecx
movl %ecx, %ecx
movb %dl, (%rax,%rcx)
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x8a7f66
movq -0x8(%rbp), %rax
movq (%rax), %rax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ZL24char_prefix_to_ulonglongPh:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_C], 8
mov [rbp+var_10], 0
loc_8A7F66:
mov eax, [rbp+var_10]
mov ecx, [rbp+var_C]
shr ecx, 1
cmp eax, ecx
jnb short loc_8A7FBB
mov rax, [rbp+var_8]
mov ecx, [rbp+var_10]
mov al, [rax+rcx]
mov [rbp+var_11], al
mov rax, [rbp+var_8]
mov ecx, [rbp+var_C]
sub ecx, 1
sub ecx, [rbp+var_10]
mov ecx, ecx
mov dl, [rax+rcx]
mov rax, [rbp+var_8]
mov ecx, [rbp+var_10]
mov [rax+rcx], dl
mov dl, [rbp+var_11]
mov rax, [rbp+var_8]
mov ecx, [rbp+var_C]
sub ecx, 1
sub ecx, [rbp+var_10]
mov ecx, ecx
mov [rax+rcx], dl
mov eax, [rbp+var_10]
add eax, 1
mov [rbp+var_10], eax
jmp short loc_8A7F66
loc_8A7FBB:
mov rax, [rbp+var_8]
mov rax, [rax]
pop rbp
retn
| long long char_prefix_to_ulonglong(unsigned __int8 *a1)
{
unsigned __int8 v2; // [rsp+1h] [rbp-11h]
unsigned int i; // [rsp+2h] [rbp-10h]
for ( i = 0; i < 4; ++i )
{
v2 = a1[i];
a1[i] = a1[7 - i];
a1[7 - i] = v2;
}
return *(_QWORD *)a1;
}
| String_ptr:
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 RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x108]
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RAX],RCX
ADD RSP,0x20
POP RBP
RET
|
/* String_ptr::String_ptr(Item*, String*) */
void __thiscall String_ptr::String_ptr(String_ptr *this,Item *param_1,String *param_2)
{
int8 uVar1;
uVar1 = (**(code **)(*(long *)param_1 + 0x108))(param_1,param_2);
*(int8 *)this = uVar1;
return;
}
| |
28,199 | ps_fetch_int64 | eloqsql/libmariadb/libmariadb/ma_stmt_codec.c | static
void ps_fetch_int64(MYSQL_BIND *r_param, const MYSQL_FIELD * const field,
unsigned char **row)
{
switch(r_param->buffer_type)
{
/* case MYSQL_TYPE_TINY:
ps_fetch_from_1_to_8_bytes(r_param, field, row, 1);
break;
case MYSQL_TYPE_YEAR:
case MYSQL_TYPE_SHORT:
ps_fetch_from_1_to_8_bytes(r_param, field, row, 2);
break;
case MYSQL_TYPE_INT24:
case MYSQL_TYPE_LONG:
ps_fetch_from_1_to_8_bytes(r_param, field, row, 4);
break; */
case MYSQL_TYPE_LONGLONG:
ps_fetch_from_1_to_8_bytes(r_param, field, row, 8);
break;
default:
{
longlong sval= (longlong)sint8korr(*row);
longlong lval= field->flags & UNSIGNED_FLAG ? (longlong)(ulonglong) sval : (longlong)sval;
convert_from_long(r_param, field, lval, field->flags & UNSIGNED_FLAG);
(*row) += 8;
}
break;
}
} | O3 | c | ps_fetch_int64:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdx, %rbx
cmpl $0x8, 0x60(%rdi)
jne 0x2a7a0
movq %rbx, %rdx
movl $0x8, %ecx
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x29b2c
movq (%rbx), %rax
movq (%rax), %rdx
movl 0x64(%rsi), %ecx
andl $0x20, %ecx
callq 0x2b207
addq $0x8, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| ps_fetch_int64:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdx
cmp dword ptr [rdi+60h], 8
jnz short loc_2A7A0
mov rdx, rbx
mov ecx, 8
add rsp, 8
pop rbx
pop rbp
jmp ps_fetch_from_1_to_8_bytes
loc_2A7A0:
mov rax, [rbx]
mov rdx, [rax]
mov ecx, [rsi+64h]
and ecx, 20h
call convert_from_long
add qword ptr [rbx], 8
add rsp, 8
pop rbx
pop rbp
retn
| long long ps_fetch_int64(long long a1, long long a2, _BYTE **a3)
{
long long result; // rax
if ( *(_DWORD *)(a1 + 96) == 8 )
return ps_fetch_from_1_to_8_bytes(a1, a2, a3, 8u);
result = convert_from_long(a1, a2, *(_QWORD *)*a3, *(_DWORD *)(a2 + 100) & 0x20);
*a3 += 8;
return result;
}
| ps_fetch_int64:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDX
CMP dword ptr [RDI + 0x60],0x8
JNZ 0x0012a7a0
MOV RDX,RBX
MOV ECX,0x8
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x00129b2c
LAB_0012a7a0:
MOV RAX,qword ptr [RBX]
MOV RDX,qword ptr [RAX]
MOV ECX,dword ptr [RSI + 0x64]
AND ECX,0x20
CALL 0x0012b207
ADD qword ptr [RBX],0x8
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void ps_fetch_int64(long param_1,long param_2,long *param_3)
{
if (*(int *)(param_1 + 0x60) == 8) {
ps_fetch_from_1_to_8_bytes(param_1,param_2,param_3,8);
return;
}
convert_from_long(param_1,param_2,*(int8 *)*param_3,*(uint *)(param_2 + 100) & 0x20);
*param_3 = *param_3 + 8;
return;
}
|
Subsets and Splits
C++ Functions With Standard Library Dependencies
Identifies C++ functions that depend on standard library components, revealing patterns in how developers utilize STL libraries and potentially highlighting common coding practices or dependencies in the dataset.
C++ Standard Library Function Analysis
Filters C++ code examples that use standard library containers and types, providing useful insights into common programming patterns and data structures in the dataset.
Random Training Function Samples
Performs basic filtering and random sampling of assembly code data without revealing meaningful patterns or relationships.
Random Training Function Samples
Retrieves a random sample of 1000 records from the training dataset, providing basic data exploration but offering limited analytical value beyond seeing raw entries.