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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
44,300 | SEMANTICANALYZER::SemanticAnalyzer::checkObjectDecl(SEMANTICANALYZER::ObjectDecl const&, int) | 11AgReS1SoR11[P]Graph/Common/SemanticAnalyzer/src/SemanticAnalyzer.cpp | void SEMANTICANALYZER::SemanticAnalyzer::checkObjectDecl(const ObjectDecl &obj, int statementNumber)
{
if (isObjectDeclared(obj.id))
{
throw SemanticError("Объект " + obj.id + " уже объявлен.", statementNumber);
}
declareObject(obj.id, statementNumber);
std::vector<std::string> allowedProperties = COMMON_PROPERTIES;
if (SHAPE_SPECIFIC_PROPERTIES.count(obj.shape))
{
auto specificProps = SHAPE_SPECIFIC_PROPERTIES.at(obj.shape);
allowedProperties.insert(allowedProperties.end(), specificProps.begin(), specificProps.end());
}
for (const Property& prop : obj.properties)
{
if (std::find(allowedProperties.begin(), allowedProperties.end(), prop.key) == allowedProperties.end())
{
throw SemanticError("Недопустимое свойство " + prop.key + " для фигуры " + obj.shape, statementNumber);
}
checkPropertyValue(prop, PROPERTY_CONSTRAINTS.at(prop.key), statementNumber);
}
} | O0 | cpp | SEMANTICANALYZER::SemanticAnalyzer::checkObjectDecl(SEMANTICANALYZER::ObjectDecl const&, int):
pushq %rbp
movq %rsp, %rbp
subq $0x1d0, %rsp # imm = 0x1D0
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x170(%rbp)
movq -0x10(%rbp), %rsi
addq $0x20, %rsi
callq 0x2e690
testb $0x1, %al
jne 0x366d7
jmp 0x367a7
movb $0x1, -0x65(%rbp)
movl $0x10, %edi
callq 0x2df00
movq %rax, -0x178(%rbp)
movq -0x10(%rbp), %rdx
addq $0x20, %rdx
leaq 0x16a3f(%rip), %rsi # 0x4d13a
leaq -0x58(%rbp), %rdi
callq 0x2ee40
jmp 0x36706
leaq 0x16bba(%rip), %rdx # 0x4d2c7
leaq -0x38(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x2d6e0
jmp 0x3671c
movq -0x178(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq -0x38(%rbp), %rsi
callq 0x2f4b0
jmp 0x36731
movq -0x178(%rbp), %rdi
movb $0x0, -0x65(%rbp)
movq 0x247b5(%rip), %rsi # 0x5aef8
movq 0x2480e(%rip), %rdx # 0x5af58
callq 0x30cc0
jmp 0x36b6f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x3678e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x36785
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x2e520
leaq -0x58(%rbp), %rdi
callq 0x2e520
testb $0x1, -0x65(%rbp)
jne 0x36796
jmp 0x367a2
movq -0x178(%rbp), %rdi
callq 0x2e7c0
jmp 0x36b66
movq -0x170(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x20, %rsi
movl -0x14(%rbp), %edx
callq 0x304b0
leaq 0x26c03(%rip), %rsi # 0x5d3c8
leaq -0x80(%rbp), %rdi
callq 0x30150
movq -0x10(%rbp), %rsi
leaq 0x26c07(%rip), %rdi # 0x5d3e0
callq 0x2fee0
movq %rax, -0x180(%rbp)
jmp 0x367e7
movq -0x180(%rbp), %rax
cmpq $0x0, %rax
je 0x368f1
movq -0x10(%rbp), %rsi
leaq 0x26bdd(%rip), %rdi # 0x5d3e0
callq 0x314a0
movq %rax, -0x188(%rbp)
jmp 0x36811
movq -0x188(%rbp), %rsi
leaq -0x98(%rbp), %rdi
callq 0x30150
jmp 0x36826
leaq -0x80(%rbp), %rdi
movq %rdi, -0x198(%rbp)
callq 0x30b70
movq %rax, -0xa8(%rbp)
leaq -0xa0(%rbp), %rdi
leaq -0xa8(%rbp), %rsi
callq 0x2f3f0
leaq -0x98(%rbp), %rdi
movq %rdi, -0x1a0(%rbp)
callq 0x30a60
movq -0x1a0(%rbp), %rdi
movq %rax, -0xb0(%rbp)
callq 0x30b70
movq -0x198(%rbp), %rdi
movq %rax, -0xb8(%rbp)
movq -0xa0(%rbp), %rsi
movq -0xb0(%rbp), %rdx
movq -0xb8(%rbp), %rcx
callq 0x2f380
movq %rax, -0x190(%rbp)
jmp 0x368a7
movq -0x190(%rbp), %rax
movq %rax, -0xc0(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x31760
jmp 0x368f1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x36b5d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x31760
jmp 0x36b5d
movq -0x10(%rbp), %rax
addq $0x40, %rax
movq %rax, -0xc8(%rbp)
movq -0xc8(%rbp), %rdi
callq 0x30340
movq %rax, -0xd0(%rbp)
movq -0xc8(%rbp), %rdi
callq 0x2e8e0
movq %rax, -0xd8(%rbp)
leaq -0xd0(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0x301a0
testb $0x1, %al
jne 0x36942
jmp 0x36b4b
leaq -0xd0(%rbp), %rdi
callq 0x2f810
movq %rax, -0xe0(%rbp)
leaq -0x80(%rbp), %rdi
movq %rdi, -0x1b0(%rbp)
callq 0x30a60
movq -0x1b0(%rbp), %rdi
movq %rax, -0xf0(%rbp)
callq 0x30b70
movq %rax, -0xf8(%rbp)
movq -0xe0(%rbp), %rdx
movq -0xf0(%rbp), %rdi
movq -0xf8(%rbp), %rsi
callq 0x30670
movq %rax, -0x1a8(%rbp)
jmp 0x369a2
movq -0x1a8(%rbp), %rax
movq %rax, -0xe8(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x30b70
movq %rax, -0x100(%rbp)
leaq -0xe8(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0x31070
testb $0x1, %al
jne 0x369dc
jmp 0x36af6
movb $0x1, -0x161(%rbp)
movl $0x10, %edi
callq 0x2df00
movq %rax, -0x1b8(%rbp)
movq -0xe0(%rbp), %rdx
leaq 0x168df(%rip), %rsi # 0x4d2e1
leaq -0x160(%rbp), %rdi
callq 0x2ee40
jmp 0x36a10
leaq 0x168f5(%rip), %rdx # 0x4d30c
leaq -0x140(%rbp), %rdi
leaq -0x160(%rbp), %rsi
callq 0x2d6e0
jmp 0x36a2c
movq -0x10(%rbp), %rdx
leaq -0x120(%rbp), %rdi
leaq -0x140(%rbp), %rsi
callq 0x303b0
jmp 0x36a45
movq -0x1b8(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq -0x120(%rbp), %rsi
callq 0x2f4b0
jmp 0x36a5d
movq -0x1b8(%rbp), %rdi
movb $0x0, -0x161(%rbp)
movq 0x24486(%rip), %rsi # 0x5aef8
movq 0x244df(%rip), %rdx # 0x5af58
callq 0x30cc0
jmp 0x36b6f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x36add
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x36ad1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
jmp 0x36ac5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x60(%rbp)
movl %eax, -0x64(%rbp)
leaq -0x120(%rbp), %rdi
callq 0x2e520
leaq -0x140(%rbp), %rdi
callq 0x2e520
leaq -0x160(%rbp), %rdi
callq 0x2e520
testb $0x1, -0x161(%rbp)
jne 0x36ae8
jmp 0x36af4
movq -0x1b8(%rbp), %rdi
callq 0x2e7c0
jmp 0x36b5d
movq -0xe0(%rbp), %rsi
movq %rsi, -0x1c8(%rbp)
leaq 0x26905(%rip), %rdi # 0x5d410
callq 0x2d930
movq %rax, -0x1c0(%rbp)
jmp 0x36b19
movq -0x1c0(%rbp), %rdx
movq -0x1c8(%rbp), %rsi
movq -0x170(%rbp), %rdi
movl -0x14(%rbp), %ecx
callq 0x305d0
jmp 0x36b38
jmp 0x36b3a
leaq -0xd0(%rbp), %rdi
callq 0x30410
jmp 0x36926
leaq -0x80(%rbp), %rdi
callq 0x31760
addq $0x1d0, %rsp # imm = 0x1D0
popq %rbp
retq
leaq -0x80(%rbp), %rdi
callq 0x31760
movq -0x60(%rbp), %rdi
callq 0x30ed0
nop
| _ZN16SEMANTICANALYZER16SemanticAnalyzer15checkObjectDeclERKNS_10ObjectDeclEi:
push rbp
mov rbp, rsp
sub rsp, 1D0h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_14], edx
mov rdi, [rbp+var_8]
mov [rbp+var_170], rdi
mov rsi, [rbp+var_10]
add rsi, 20h ; ' '
call __ZNK16SEMANTICANALYZER16SemanticAnalyzer16isObjectDeclaredERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; SEMANTICANALYZER::SemanticAnalyzer::isObjectDeclared(std::string const&)
test al, 1
jnz short loc_366D7
jmp loc_367A7
loc_366D7:
mov [rbp+var_65], 1
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov [rbp+var_178], rax
mov rdx, [rbp+var_10]
add rdx, 20h ; ' '
lea rsi, unk_4D13A
lea rdi, [rbp+var_58]
call __ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&)
jmp short $+2
loc_36706:
lea rdx, unk_4D2C7
lea rdi, [rbp+var_38]
lea rsi, [rbp+var_58]
call __ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
jmp short $+2
loc_3671C:
mov rdi, [rbp+var_178]
mov edx, [rbp+var_14]
lea rsi, [rbp+var_38]
call __ZN16SEMANTICANALYZER13SemanticErrorC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; SEMANTICANALYZER::SemanticError::SemanticError(std::string const&,int)
jmp short $+2
loc_36731:
mov rdi, [rbp+var_178]; void *
mov [rbp+var_65], 0
mov rsi, cs:_ZTIN16SEMANTICANALYZER13SemanticErrorE_ptr; lptinfo
mov rdx, cs:_ZN16SEMANTICANALYZER13SemanticErrorD2Ev_ptr; void (*)(void *)
call ___cxa_throw
jmp loc_36B6F
mov rcx, rax
mov eax, edx
mov [rbp+var_60], rcx
mov [rbp+var_64], eax
jmp short loc_3678E
mov rcx, rax
mov eax, edx
mov [rbp+var_60], rcx
mov [rbp+var_64], eax
jmp short loc_36785
mov rcx, rax
mov eax, edx
mov [rbp+var_60], rcx
mov [rbp+var_64], eax
lea rdi, [rbp+var_38]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_36785:
lea rdi, [rbp+var_58]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_3678E:
test [rbp+var_65], 1
jnz short loc_36796
jmp short loc_367A2
loc_36796:
mov rdi, [rbp+var_178]; void *
call ___cxa_free_exception
loc_367A2:
jmp loc_36B66
loc_367A7:
mov rdi, [rbp+var_170]
mov rsi, [rbp+var_10]
add rsi, 20h ; ' '
mov edx, [rbp+var_14]
call __ZN16SEMANTICANALYZER16SemanticAnalyzer13declareObjectERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; SEMANTICANALYZER::SemanticAnalyzer::declareObject(std::string const&,int)
lea rsi, _ZN16SEMANTICANALYZERL17COMMON_PROPERTIESB5cxx11E; SEMANTICANALYZER::COMMON_PROPERTIES
lea rdi, [rbp+var_80]
call __ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&)
mov rsi, [rbp+var_10]
lea rdi, _ZN16SEMANTICANALYZERL25SHAPE_SPECIFIC_PROPERTIESB5cxx11E; SEMANTICANALYZER::SHAPE_SPECIFIC_PROPERTIES
call __ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS5_SaIS5_EESt4lessIS5_ESaISt4pairIKS5_S8_EEE5countERSC_; std::map<std::string,std::vector<std::string>>::count(std::string const&)
mov [rbp+var_180], rax
jmp short $+2
loc_367E7:
mov rax, [rbp+var_180]
cmp rax, 0
jz loc_368F1
mov rsi, [rbp+var_10]
lea rdi, _ZN16SEMANTICANALYZERL25SHAPE_SPECIFIC_PROPERTIESB5cxx11E; SEMANTICANALYZER::SHAPE_SPECIFIC_PROPERTIES
call __ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS5_SaIS5_EESt4lessIS5_ESaISt4pairIKS5_S8_EEE2atERSC_; std::map<std::string,std::vector<std::string>>::at(std::string const&)
mov [rbp+var_188], rax
jmp short $+2
loc_36811:
mov rsi, [rbp+var_188]
lea rdi, [rbp+var_98]
call __ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2ERKS7_; std::vector<std::string>::vector(std::vector<std::string> const&)
jmp short $+2
loc_36826:
lea rdi, [rbp+var_80]
mov [rbp+var_198], rdi
call __ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv; std::vector<std::string>::end(void)
mov [rbp+var_A8], rax
lea rdi, [rbp+var_A0]
lea rsi, [rbp+var_A8]
call __ZN9__gnu_cxx17__normal_iteratorIPKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEC2IPS6_EERKNS0_IT_NS_11__enable_ifIXsr3std10__are_sameISF_SE_EE7__valueESB_E6__typeEEE
lea rdi, [rbp+var_98]
mov [rbp+var_1A0], rdi
call __ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv; std::vector<std::string>::begin(void)
mov rdi, [rbp+var_1A0]
mov [rbp+var_B0], rax
call __ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv; std::vector<std::string>::end(void)
mov rdi, [rbp+var_198]
mov [rbp+var_B8], rax
mov rsi, [rbp+var_A0]
mov rdx, [rbp+var_B0]
mov rcx, [rbp+var_B8]
call __ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE6insertIN9__gnu_cxx17__normal_iteratorIPS5_S7_EEvEESC_NSA_IPKS5_S7_EET_SG_; std::vector<std::string>::insert<__gnu_cxx::__normal_iterator<std::string*,std::vector<std::string>>,void>(__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>,__gnu_cxx::__normal_iterator<std::string*,std::vector<std::string>>,__gnu_cxx::__normal_iterator<std::string*,std::vector<std::string>>)
mov [rbp+var_190], rax
jmp short $+2
loc_368A7:
mov rax, [rbp+var_190]
mov [rbp+var_C0], rax
lea rdi, [rbp+var_98]; void *
call j__ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp short loc_368F1
mov rcx, rax
mov eax, edx
mov [rbp+var_60], rcx
mov [rbp+var_64], eax
jmp loc_36B5D
mov rcx, rax
mov eax, edx
mov [rbp+var_60], rcx
mov [rbp+var_64], eax
lea rdi, [rbp+var_98]; void *
call j__ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
jmp loc_36B5D
loc_368F1:
mov rax, [rbp+var_10]
add rax, 40h ; '@'
mov [rbp+var_C8], rax
mov rdi, [rbp+var_C8]
call __ZNKSt6vectorIN16SEMANTICANALYZER8PropertyESaIS1_EE5beginEv; std::vector<SEMANTICANALYZER::Property>::begin(void)
mov [rbp+var_D0], rax
mov rdi, [rbp+var_C8]
call __ZNKSt6vectorIN16SEMANTICANALYZER8PropertyESaIS1_EE3endEv; std::vector<SEMANTICANALYZER::Property>::end(void)
mov [rbp+var_D8], rax
loc_36926:
lea rdi, [rbp+var_D0]
lea rsi, [rbp+var_D8]
call __ZN9__gnu_cxxneIPKN16SEMANTICANALYZER8PropertyESt6vectorIS2_SaIS2_EEEEbRKNS_17__normal_iteratorIT_T0_EESD_; __gnu_cxx::operator!=<SEMANTICANALYZER::Property const*,std::vector<SEMANTICANALYZER::Property>>(__gnu_cxx::__normal_iterator<SEMANTICANALYZER::Property const*,std::vector<SEMANTICANALYZER::Property>> const&,__gnu_cxx::__normal_iterator<SEMANTICANALYZER::Property const*,std::vector<SEMANTICANALYZER::Property>> const&)
test al, 1
jnz short loc_36942
jmp loc_36B4B
loc_36942:
lea rdi, [rbp+var_D0]
call __ZNK9__gnu_cxx17__normal_iteratorIPKN16SEMANTICANALYZER8PropertyESt6vectorIS2_SaIS2_EEEdeEv; __gnu_cxx::__normal_iterator<SEMANTICANALYZER::Property const*,std::vector<SEMANTICANALYZER::Property>>::operator*(void)
mov [rbp+var_E0], rax
lea rdi, [rbp+var_80]
mov [rbp+var_1B0], rdi
call __ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE5beginEv; std::vector<std::string>::begin(void)
mov rdi, [rbp+var_1B0]
mov [rbp+var_F0], rax
call __ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv; std::vector<std::string>::end(void)
mov [rbp+var_F8], rax
mov rdx, [rbp+var_E0]
mov rdi, [rbp+var_F0]
mov rsi, [rbp+var_F8]
call __ZSt4findIN9__gnu_cxx17__normal_iteratorIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS7_SaIS7_EEEES7_ET_SD_SD_RKT0_; std::find<__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>,std::string>(__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>,__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>,std::string const&)
mov [rbp+var_1A8], rax
jmp short $+2
loc_369A2:
mov rax, [rbp+var_1A8]
mov [rbp+var_E8], rax
lea rdi, [rbp+var_80]
call __ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE3endEv; std::vector<std::string>::end(void)
mov [rbp+var_100], rax
lea rdi, [rbp+var_E8]
lea rsi, [rbp+var_100]
call __ZN9__gnu_cxxeqIPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_; __gnu_cxx::operator==<std::string *,std::vector<std::string>>(__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>> const&,__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>> const&)
test al, 1
jnz short loc_369DC
jmp loc_36AF6
loc_369DC:
mov [rbp+var_161], 1
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov [rbp+var_1B8], rax
mov rdx, [rbp+var_E0]
lea rsi, unk_4D2E1
lea rdi, [rbp+var_160]
call __ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_RKS8_; std::operator+<char>(char const*,std::string const&)
jmp short $+2
loc_36A10:
lea rdx, unk_4D30C
lea rdi, [rbp+var_140]
lea rsi, [rbp+var_160]
call __ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
jmp short $+2
loc_36A2C:
mov rdx, [rbp+var_10]
lea rdi, [rbp+var_120]
lea rsi, [rbp+var_140]
call __ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_; std::operator+<char>(std::string&&,std::string const&)
jmp short $+2
loc_36A45:
mov rdi, [rbp+var_1B8]
mov edx, [rbp+var_14]
lea rsi, [rbp+var_120]
call __ZN16SEMANTICANALYZER13SemanticErrorC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi; SEMANTICANALYZER::SemanticError::SemanticError(std::string const&,int)
jmp short $+2
loc_36A5D:
mov rdi, [rbp+var_1B8]; void *
mov [rbp+var_161], 0
mov rsi, cs:_ZTIN16SEMANTICANALYZER13SemanticErrorE_ptr; lptinfo
mov rdx, cs:_ZN16SEMANTICANALYZER13SemanticErrorD2Ev_ptr; void (*)(void *)
call ___cxa_throw
jmp loc_36B6F
mov rcx, rax
mov eax, edx
mov [rbp+var_60], rcx
mov [rbp+var_64], eax
jmp short loc_36ADD
mov rcx, rax
mov eax, edx
mov [rbp+var_60], rcx
mov [rbp+var_64], eax
jmp short loc_36AD1
mov rcx, rax
mov eax, edx
mov [rbp+var_60], rcx
mov [rbp+var_64], eax
jmp short loc_36AC5
mov rcx, rax
mov eax, edx
mov [rbp+var_60], rcx
mov [rbp+var_64], eax
lea rdi, [rbp+var_120]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_36AC5:
lea rdi, [rbp+var_140]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_36AD1:
lea rdi, [rbp+var_160]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_36ADD:
test [rbp+var_161], 1
jnz short loc_36AE8
jmp short loc_36AF4
loc_36AE8:
mov rdi, [rbp+var_1B8]; void *
call ___cxa_free_exception
loc_36AF4:
jmp short loc_36B5D
loc_36AF6:
mov rsi, [rbp+var_E0]
mov [rbp+var_1C8], rsi
lea rdi, _ZN16SEMANTICANALYZERL20PROPERTY_CONSTRAINTSB5cxx11E; SEMANTICANALYZER::PROPERTY_CONSTRAINTS
call __ZNKSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN16SEMANTICANALYZER14ConstraintInfoESt4lessIS5_ESaISt4pairIKS5_S7_EEE2atERSB_; std::map<std::string,SEMANTICANALYZER::ConstraintInfo>::at(std::string const&)
mov [rbp+var_1C0], rax
jmp short $+2
loc_36B19:
mov rdx, [rbp+var_1C0]; SEMANTICANALYZER::ConstraintInfo *
mov rsi, [rbp+var_1C8]; SEMANTICANALYZER::Property *
mov rdi, [rbp+var_170]; this
mov ecx, [rbp+var_14]; int
call __ZNK16SEMANTICANALYZER16SemanticAnalyzer18checkPropertyValueERKNS_8PropertyERKNS_14ConstraintInfoEi; SEMANTICANALYZER::SemanticAnalyzer::checkPropertyValue(SEMANTICANALYZER::Property const&,SEMANTICANALYZER::ConstraintInfo const&,int)
jmp short $+2
loc_36B38:
jmp short $+2
loc_36B3A:
lea rdi, [rbp+var_D0]
call __ZN9__gnu_cxx17__normal_iteratorIPKN16SEMANTICANALYZER8PropertyESt6vectorIS2_SaIS2_EEEppEv; __gnu_cxx::__normal_iterator<SEMANTICANALYZER::Property const*,std::vector<SEMANTICANALYZER::Property>>::operator++(void)
jmp loc_36926
loc_36B4B:
lea rdi, [rbp+var_80]; void *
call j__ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
add rsp, 1D0h
pop rbp
retn
loc_36B5D:
lea rdi, [rbp+var_80]; void *
call j__ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
loc_36B66:
mov rdi, [rbp+var_60]
call __Unwind_Resume
loc_36B6F:
nop
| void SEMANTICANALYZER::SemanticAnalyzer::checkObjectDecl(
SEMANTICANALYZER::SemanticAnalyzer *this,
const SEMANTICANALYZER::ObjectDecl *a2,
int a3)
{
SEMANTICANALYZER::Property *v3; // [rsp+8h] [rbp-1C8h]
SEMANTICANALYZER::ConstraintInfo *v4; // [rsp+10h] [rbp-1C0h]
void *v5; // [rsp+18h] [rbp-1B8h]
long long v6; // [rsp+48h] [rbp-188h]
void *exception; // [rsp+58h] [rbp-178h]
_BYTE v8[32]; // [rsp+70h] [rbp-160h] BYREF
_BYTE v9[32]; // [rsp+90h] [rbp-140h] BYREF
_BYTE v10[32]; // [rsp+B0h] [rbp-120h] BYREF
long long v11; // [rsp+D0h] [rbp-100h] BYREF
long long v12; // [rsp+D8h] [rbp-F8h]
long long v13; // [rsp+E0h] [rbp-F0h]
long long v14; // [rsp+E8h] [rbp-E8h] BYREF
long long v15; // [rsp+F0h] [rbp-E0h]
long long v16; // [rsp+F8h] [rbp-D8h] BYREF
long long v17; // [rsp+100h] [rbp-D0h] BYREF
char *v18; // [rsp+108h] [rbp-C8h]
long long v19; // [rsp+110h] [rbp-C0h]
long long v20; // [rsp+118h] [rbp-B8h]
long long v21; // [rsp+120h] [rbp-B0h]
long long v22; // [rsp+128h] [rbp-A8h] BYREF
long long v23; // [rsp+130h] [rbp-A0h] BYREF
_BYTE v24[24]; // [rsp+138h] [rbp-98h] BYREF
_BYTE v25[28]; // [rsp+150h] [rbp-80h] BYREF
_BYTE v26[32]; // [rsp+178h] [rbp-58h] BYREF
_BYTE v27[36]; // [rsp+198h] [rbp-38h] BYREF
int v28; // [rsp+1BCh] [rbp-14h]
const SEMANTICANALYZER::ObjectDecl *v29; // [rsp+1C0h] [rbp-10h]
SEMANTICANALYZER::SemanticAnalyzer *v30; // [rsp+1C8h] [rbp-8h]
v30 = this;
v29 = a2;
v28 = a3;
if ( (SEMANTICANALYZER::SemanticAnalyzer::isObjectDeclared(this, (char *)a2 + 32) & 1) != 0 )
{
exception = __cxa_allocate_exception(0x10uLL);
std::operator+<char>(v26, &unk_4D13A, (char *)v29 + 32);
std::operator+<char>(v27, v26, &unk_4D2C7);
SEMANTICANALYZER::SemanticError::SemanticError(exception, v27, (unsigned int)v28);
v25[27] = 0;
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'SEMANTICANALYZER::SemanticError,
(void (*)(void *))SEMANTICANALYZER::SemanticError::~SemanticError);
}
SEMANTICANALYZER::SemanticAnalyzer::declareObject(this, (char *)v29 + 32, (unsigned int)v28);
std::vector<std::string>::vector(v25, &SEMANTICANALYZER::COMMON_PROPERTIES[abi:cxx11]);
if ( std::map<std::string,std::vector<std::string>>::count(
&SEMANTICANALYZER::SHAPE_SPECIFIC_PROPERTIES[abi:cxx11],
v29) )
{
v6 = std::map<std::string,std::vector<std::string>>::at(
&SEMANTICANALYZER::SHAPE_SPECIFIC_PROPERTIES[abi:cxx11],
v29);
std::vector<std::string>::vector(v24, v6);
v22 = ((long long (*)(void))std::vector<std::string>::end)();
__gnu_cxx::__normal_iterator<std::string const*,std::vector<std::string>>::__normal_iterator<std::string*>(
&v23,
&v22);
v21 = std::vector<std::string>::begin();
v20 = std::vector<std::string>::end(v24);
v19 = std::vector<std::string>::insert<__gnu_cxx::__normal_iterator<std::string*,std::vector<std::string>>,void>(
v25,
v23,
v21,
v20);
std::vector<std::string>::~vector(v24);
}
v18 = (char *)v29 + 64;
v17 = std::vector<SEMANTICANALYZER::Property>::begin((char *)v29 + 64);
v16 = std::vector<SEMANTICANALYZER::Property>::end(v18);
while ( (__gnu_cxx::operator!=<SEMANTICANALYZER::Property const*,std::vector<SEMANTICANALYZER::Property>>(&v17, &v16) & 1) != 0 )
{
v15 = __gnu_cxx::__normal_iterator<SEMANTICANALYZER::Property const*,std::vector<SEMANTICANALYZER::Property>>::operator*(&v17);
v13 = std::vector<std::string>::begin();
v12 = std::vector<std::string>::end(v25);
v14 = std::find<__gnu_cxx::__normal_iterator<std::string *,std::vector<std::string>>,std::string>(v13, v12, v15);
v11 = std::vector<std::string>::end(v25);
if ( (__gnu_cxx::operator==<std::string *,std::vector<std::string>>(&v14, &v11) & 1) != 0 )
{
v5 = __cxa_allocate_exception(0x10uLL);
std::operator+<char>(v8, &unk_4D2E1, v15);
std::operator+<char>(v9, v8, &unk_4D30C);
std::operator+<char>(v10, v9, v29);
SEMANTICANALYZER::SemanticError::SemanticError(v5, v10, (unsigned int)v28);
__cxa_throw(
v5,
(struct type_info *)&`typeinfo for'SEMANTICANALYZER::SemanticError,
(void (*)(void *))SEMANTICANALYZER::SemanticError::~SemanticError);
}
v3 = (SEMANTICANALYZER::Property *)v15;
v4 = (SEMANTICANALYZER::ConstraintInfo *)std::map<std::string,SEMANTICANALYZER::ConstraintInfo>::at(&SEMANTICANALYZER::PROPERTY_CONSTRAINTS[abi:cxx11]);
SEMANTICANALYZER::SemanticAnalyzer::checkPropertyValue(this, v3, v4, v28);
__gnu_cxx::__normal_iterator<SEMANTICANALYZER::Property const*,std::vector<SEMANTICANALYZER::Property>>::operator++(&v17);
}
std::vector<std::string>::~vector(v25);
}
| checkObjectDecl:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x1d0
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x14],EDX
MOV RDI,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x170],RDI
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x20
CALL 0x0012e690
TEST AL,0x1
JNZ 0x001366d7
JMP 0x001367a7
LAB_001366d7:
MOV byte ptr [RBP + -0x65],0x1
MOV EDI,0x10
CALL 0x0012df00
MOV qword ptr [RBP + -0x178],RAX
MOV RDX,qword ptr [RBP + -0x10]
ADD RDX,0x20
LAB_001366f4:
LEA RSI,[0x14d13a]
LEA RDI,[RBP + -0x58]
CALL 0x0012ee40
JMP 0x00136706
LAB_00136706:
LEA RDX,[0x14d2c7]
LEA RDI,[RBP + -0x38]
LEA RSI,[RBP + -0x58]
CALL 0x0012d6e0
JMP 0x0013671c
LAB_0013671c:
MOV RDI,qword ptr [RBP + -0x178]
MOV EDX,dword ptr [RBP + -0x14]
LAB_00136726:
LEA RSI,[RBP + -0x38]
CALL 0x0012f4b0
JMP 0x00136731
LAB_00136731:
MOV RDI,qword ptr [RBP + -0x178]
MOV byte ptr [RBP + -0x65],0x0
MOV RSI,qword ptr [0x0015aef8]
MOV RDX,qword ptr [0x0015af58]
CALL 0x00130cc0
LAB_001367a7:
MOV RDI,qword ptr [RBP + -0x170]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x20
MOV EDX,dword ptr [RBP + -0x14]
CALL 0x001304b0
LEA RSI,[0x15d3c8]
LEA RDI,[RBP + -0x80]
CALL 0x00130150
MOV RSI,qword ptr [RBP + -0x10]
LAB_001367d2:
LEA RDI,[0x15d3e0]
CALL 0x0012fee0
MOV qword ptr [RBP + -0x180],RAX
JMP 0x001367e7
LAB_001367e7:
MOV RAX,qword ptr [RBP + -0x180]
CMP RAX,0x0
JZ 0x001368f1
MOV RSI,qword ptr [RBP + -0x10]
LEA RDI,[0x15d3e0]
CALL 0x001314a0
MOV qword ptr [RBP + -0x188],RAX
JMP 0x00136811
LAB_00136811:
MOV RSI,qword ptr [RBP + -0x188]
LEA RDI,[RBP + -0x98]
CALL 0x00130150
JMP 0x00136826
LAB_00136826:
LEA RDI,[RBP + -0x80]
MOV qword ptr [RBP + -0x198],RDI
CALL 0x00130b70
MOV qword ptr [RBP + -0xa8],RAX
LEA RDI,[RBP + -0xa0]
LEA RSI,[RBP + -0xa8]
CALL 0x0012f3f0
LEA RDI,[RBP + -0x98]
MOV qword ptr [RBP + -0x1a0],RDI
CALL 0x00130a60
MOV RDI,qword ptr [RBP + -0x1a0]
MOV qword ptr [RBP + -0xb0],RAX
CALL 0x00130b70
MOV RDI,qword ptr [RBP + -0x198]
MOV qword ptr [RBP + -0xb8],RAX
MOV RSI,qword ptr [RBP + -0xa0]
MOV RDX,qword ptr [RBP + -0xb0]
MOV RCX,qword ptr [RBP + -0xb8]
LAB_00136899:
CALL 0x0012f380
MOV qword ptr [RBP + -0x190],RAX
JMP 0x001368a7
LAB_001368a7:
MOV RAX,qword ptr [RBP + -0x190]
MOV qword ptr [RBP + -0xc0],RAX
LEA RDI,[RBP + -0x98]
CALL 0x00131760
JMP 0x001368f1
LAB_001368f1:
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0x40
MOV qword ptr [RBP + -0xc8],RAX
MOV RDI,qword ptr [RBP + -0xc8]
CALL 0x00130340
MOV qword ptr [RBP + -0xd0],RAX
MOV RDI,qword ptr [RBP + -0xc8]
CALL 0x0012e8e0
MOV qword ptr [RBP + -0xd8],RAX
LAB_00136926:
LEA RDI,[RBP + -0xd0]
LEA RSI,[RBP + -0xd8]
CALL 0x001301a0
TEST AL,0x1
JNZ 0x00136942
JMP 0x00136b4b
LAB_00136942:
LEA RDI,[RBP + -0xd0]
CALL 0x0012f810
MOV qword ptr [RBP + -0xe0],RAX
LEA RDI,[RBP + -0x80]
MOV qword ptr [RBP + -0x1b0],RDI
CALL 0x00130a60
MOV RDI,qword ptr [RBP + -0x1b0]
MOV qword ptr [RBP + -0xf0],RAX
CALL 0x00130b70
MOV qword ptr [RBP + -0xf8],RAX
MOV RDX,qword ptr [RBP + -0xe0]
MOV RDI,qword ptr [RBP + -0xf0]
MOV RSI,qword ptr [RBP + -0xf8]
LAB_00136994:
CALL 0x00130670
LAB_00136999:
MOV qword ptr [RBP + -0x1a8],RAX
JMP 0x001369a2
LAB_001369a2:
MOV RAX,qword ptr [RBP + -0x1a8]
MOV qword ptr [RBP + -0xe8],RAX
LEA RDI,[RBP + -0x80]
CALL 0x00130b70
MOV qword ptr [RBP + -0x100],RAX
LEA RDI,[RBP + -0xe8]
LEA RSI,[RBP + -0x100]
CALL 0x00131070
TEST AL,0x1
JNZ 0x001369dc
JMP 0x00136af6
LAB_001369dc:
MOV byte ptr [RBP + -0x161],0x1
MOV EDI,0x10
CALL 0x0012df00
MOV qword ptr [RBP + -0x1b8],RAX
MOV RDX,qword ptr [RBP + -0xe0]
LAB_001369fb:
LEA RSI,[0x14d2e1]
LEA RDI,[RBP + -0x160]
CALL 0x0012ee40
JMP 0x00136a10
LAB_00136a10:
LEA RDX,[0x14d30c]
LEA RDI,[RBP + -0x140]
LEA RSI,[RBP + -0x160]
CALL 0x0012d6e0
JMP 0x00136a2c
LAB_00136a2c:
MOV RDX,qword ptr [RBP + -0x10]
LAB_00136a30:
LEA RDI,[RBP + -0x120]
LEA RSI,[RBP + -0x140]
CALL 0x001303b0
JMP 0x00136a45
LAB_00136a45:
MOV RDI,qword ptr [RBP + -0x1b8]
MOV EDX,dword ptr [RBP + -0x14]
LAB_00136a4f:
LEA RSI,[RBP + -0x120]
CALL 0x0012f4b0
JMP 0x00136a5d
LAB_00136a5d:
MOV RDI,qword ptr [RBP + -0x1b8]
MOV byte ptr [RBP + -0x161],0x0
MOV RSI,qword ptr [0x0015aef8]
MOV RDX,qword ptr [0x0015af58]
CALL 0x00130cc0
LAB_00136af6:
MOV RSI,qword ptr [RBP + -0xe0]
MOV qword ptr [RBP + -0x1c8],RSI
LAB_00136b04:
LEA RDI,[0x15d410]
CALL 0x0012d930
MOV qword ptr [RBP + -0x1c0],RAX
JMP 0x00136b19
LAB_00136b19:
MOV RDX,qword ptr [RBP + -0x1c0]
MOV RSI,qword ptr [RBP + -0x1c8]
MOV RDI,qword ptr [RBP + -0x170]
MOV ECX,dword ptr [RBP + -0x14]
CALL 0x001305d0
LAB_00136b36:
JMP 0x00136b38
LAB_00136b38:
JMP 0x00136b3a
LAB_00136b3a:
LEA RDI,[RBP + -0xd0]
CALL 0x00130410
JMP 0x00136926
LAB_00136b4b:
LEA RDI,[RBP + -0x80]
CALL 0x00131760
ADD RSP,0x1d0
POP RBP
RET
|
/* SEMANTICANALYZER::SemanticAnalyzer::checkObjectDecl(SEMANTICANALYZER::ObjectDecl const&, int) */
void __thiscall
SEMANTICANALYZER::SemanticAnalyzer::checkObjectDecl
(SemanticAnalyzer *this,ObjectDecl *param_1,int param_2)
{
string *psVar1;
bool bVar2;
ulong uVar3;
long lVar4;
vector *pvVar5;
SemanticError *pSVar6;
ConstraintInfo *pCVar7;
char local_168 [32];
string local_148 [32];
string local_128 [32];
int8 local_108;
int8 local_100;
int8 local_f8;
int8 local_f0;
string *local_e8;
int8 local_e0;
int8 local_d8;
vector<SEMANTICANALYZER::Property,std::allocator<SEMANTICANALYZER::Property>> *local_d0;
int8 local_c8;
int8 local_c0;
int8 local_b8;
int8 local_b0;
int8 local_a8;
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_a0 [24];
vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> local_88 [27];
int1 local_6d;
char local_60 [32];
string local_40 [36];
int local_1c;
ObjectDecl *local_18;
SemanticAnalyzer *local_10;
local_1c = param_2;
local_18 = param_1;
local_10 = this;
uVar3 = isObjectDeclared(this,(string *)(param_1 + 0x20));
if ((uVar3 & 1) != 0) {
local_6d = 1;
pSVar6 = (SemanticError *)__cxa_allocate_exception(0x10);
/* try { // try from 001366f4 to 00136703 has its CatchHandler @ 00136754 */
std::operator+(local_60,(string *)&DAT_0014d13a);
/* try { // try from 00136706 to 00136719 has its CatchHandler @ 00136762 */
std::operator+(local_40,local_60);
/* try { // try from 00136726 to 0013674e has its CatchHandler @ 00136770 */
SemanticError::SemanticError(pSVar6,local_40,local_1c);
local_6d = 0;
/* WARNING: Subroutine does not return */
__cxa_throw(pSVar6,PTR_typeinfo_0015aef8,PTR__SemanticError_0015af58);
}
declareObject(this,(string *)(local_18 + 0x20),local_1c);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector
(local_88,(vector *)COMMON_PROPERTIES_abi_cxx11_);
/* try { // try from 001367d2 to 00136823 has its CatchHandler @ 001368c3 */
lVar4 = std::
map<std::__cxx11::string,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>>
::count((map<std::__cxx11::string,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>>
*)SHAPE_SPECIFIC_PROPERTIES_abi_cxx11_,(string *)local_18);
if (lVar4 != 0) {
pvVar5 = (vector *)
std::
map<std::__cxx11::string,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>>
::at((map<std::__cxx11::string,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>>>
*)SHAPE_SPECIFIC_PROPERTIES_abi_cxx11_,(string *)local_18);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::vector(local_a0,pvVar5);
local_b0 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::end(local_88)
;
__gnu_cxx::
__normal_iterator<std::__cxx11::string_const*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>
::__normal_iterator<std::__cxx11::string*>
((__normal_iterator<std::__cxx11::string_const*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>
*)&local_a8,(__normal_iterator *)&local_b0);
local_b8 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::begin
(local_a0);
local_c0 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::end(local_a0)
;
/* try { // try from 00136899 to 0013689d has its CatchHandler @ 001368d4 */
local_c8 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::
insert<__gnu_cxx::__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>,void>
(local_88,local_a8,local_b8,local_c0);
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_a0);
}
local_d0 = (vector<SEMANTICANALYZER::Property,std::allocator<SEMANTICANALYZER::Property>> *)
(local_18 + 0x40);
local_d8 = std::vector<SEMANTICANALYZER::Property,std::allocator<SEMANTICANALYZER::Property>>::
begin(local_d0);
local_e0 = std::vector<SEMANTICANALYZER::Property,std::allocator<SEMANTICANALYZER::Property>>::end
(local_d0);
while( true ) {
bVar2 = __gnu_cxx::operator!=((__normal_iterator *)&local_d8,(__normal_iterator *)&local_e0);
if (!bVar2) {
std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::~vector(local_88);
return;
}
local_e8 = (string *)
__gnu_cxx::
__normal_iterator<SEMANTICANALYZER::Property_const*,std::vector<SEMANTICANALYZER::Property,std::allocator<SEMANTICANALYZER::Property>>>
::operator*((__normal_iterator<SEMANTICANALYZER::Property_const*,std::vector<SEMANTICANALYZER::Property,std::allocator<SEMANTICANALYZER::Property>>>
*)&local_d8);
local_f8 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::begin
(local_88);
local_100 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::end
(local_88);
/* try { // try from 00136994 to 00136998 has its CatchHandler @ 001368c3 */
local_f0 = std::
find<__gnu_cxx::__normal_iterator<std::__cxx11::string*,std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>>,std::__cxx11::string>
(local_f8,local_100,local_e8);
local_108 = std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>::end
(local_88);
bVar2 = __gnu_cxx::operator==((__normal_iterator *)&local_f0,(__normal_iterator *)&local_108);
psVar1 = local_e8;
if (bVar2) break;
/* try { // try from 00136b04 to 00136b35 has its CatchHandler @ 001368c3 */
pCVar7 = (ConstraintInfo *)
std::
map<std::__cxx11::string,SEMANTICANALYZER::ConstraintInfo,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,SEMANTICANALYZER::ConstraintInfo>>>
::at((map<std::__cxx11::string,SEMANTICANALYZER::ConstraintInfo,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,SEMANTICANALYZER::ConstraintInfo>>>
*)PROPERTY_CONSTRAINTS_abi_cxx11_,local_e8);
checkPropertyValue(this,(Property *)psVar1,pCVar7,local_1c);
__gnu_cxx::
__normal_iterator<SEMANTICANALYZER::Property_const*,std::vector<SEMANTICANALYZER::Property,std::allocator<SEMANTICANALYZER::Property>>>
::operator++((__normal_iterator<SEMANTICANALYZER::Property_const*,std::vector<SEMANTICANALYZER::Property,std::allocator<SEMANTICANALYZER::Property>>>
*)&local_d8);
}
pSVar6 = (SemanticError *)__cxa_allocate_exception(0x10);
/* try { // try from 001369fb to 00136a0d has its CatchHandler @ 00136a83 */
std::operator+(local_168,(string *)&DAT_0014d2e1);
/* try { // try from 00136a10 to 00136a29 has its CatchHandler @ 00136a91 */
std::operator+(local_148,local_168);
/* try { // try from 00136a30 to 00136a42 has its CatchHandler @ 00136a9f */
std::operator+(local_128,local_148);
/* try { // try from 00136a4f to 00136a7d has its CatchHandler @ 00136aad */
SemanticError::SemanticError(pSVar6,local_128,local_1c);
/* WARNING: Subroutine does not return */
__cxa_throw(pSVar6,PTR_typeinfo_0015aef8,PTR__SemanticError_0015af58);
}
| |
44,301 | YAML::detail::node_iterator_base<YAML::detail::node>::increment_until_defined(__gnu_cxx::__normal_iterator<std::pair<YAML::detail::node*, YAML::detail::node*>*, std::vector<std::pair<YAML::detail::node*, YAML::detail::node*>, std::allocator<std::pair<YAML::detail::node*, YAML::detail::node*>>>>) | aimrt_mujoco_sim/_deps/yaml-cpp-src/include/yaml-cpp/node/detail/node_iterator.h | MapIter increment_until_defined(MapIter it) {
while (it != m_mapEnd && !is_defined(it))
++it;
return it;
} | O0 | c | YAML::detail::node_iterator_base<YAML::detail::node>::increment_until_defined(__gnu_cxx::__normal_iterator<std::pair<YAML::detail::node*, YAML::detail::node*>*, std::vector<std::pair<YAML::detail::node*, YAML::detail::node*>, std::allocator<std::pair<YAML::detail::node*, YAML::detail::node*>>>>):
subq $0x38, %rsp
movq %rsi, 0x28(%rsp)
movq %rdi, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rsi
addq $0x18, %rsi
leaq 0x28(%rsp), %rdi
callq 0xcdab0
movb %al, %cl
xorb $-0x1, %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, 0xf(%rsp)
jne 0xcf50d
jmp 0xcf52c
movq 0x10(%rsp), %rdi
movq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rsi
callq 0xcf560
xorb $-0x1, %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0xcf536
jmp 0xcf542
leaq 0x28(%rsp), %rdi
callq 0xcf4b0
jmp 0xcf4e8
movq 0x28(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)
| _ZN4YAML6detail18node_iterator_baseINS0_4nodeEE23increment_until_definedEN9__gnu_cxx17__normal_iteratorIPSt4pairIPS2_S7_ESt6vectorIS8_SaIS8_EEEE:
sub rsp, 38h
mov [rsp+38h+var_10], rsi
mov [rsp+38h+var_18], rdi
mov rax, [rsp+38h+var_18]
mov [rsp+38h+var_28], rax
loc_CF4E8:
mov rsi, [rsp+38h+var_28]
add rsi, 18h
lea rdi, [rsp+38h+var_10]
call _ZN9__gnu_cxxeqIPSt4pairIPN4YAML6detail4nodeES5_ESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_QrqXeqcldtfp_4baseEcldtfp0_4baseERSt14convertible_toIbEE
mov cl, al
xor cl, 0FFh
xor eax, eax
test cl, 1
mov [rsp+38h+var_29], al
jnz short loc_CF50D
jmp short loc_CF52C
loc_CF50D:
mov rdi, [rsp+38h+var_28]
mov rax, [rsp+38h+var_10]
mov [rsp+38h+var_20], rax
mov rsi, [rsp+38h+var_20]
call _ZNK4YAML6detail18node_iterator_baseINS0_4nodeEE10is_definedEN9__gnu_cxx17__normal_iteratorIPSt4pairIPS2_S7_ESt6vectorIS8_SaIS8_EEEE; YAML::detail::node_iterator_base<YAML::detail::node>::is_defined(__gnu_cxx::__normal_iterator<std::pair<YAML::detail::node*,YAML::detail::node*> *,std::vector<std::pair<YAML::detail::node*,YAML::detail::node*>>>)
xor al, 0FFh
mov [rsp+38h+var_29], al
loc_CF52C:
mov al, [rsp+38h+var_29]
test al, 1
jnz short loc_CF536
jmp short loc_CF542
loc_CF536:
lea rdi, [rsp+38h+var_10]
call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIPN4YAML6detail4nodeES5_ESt6vectorIS6_SaIS6_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<YAML::detail::node *,YAML::detail::node *> *,std::vector<std::pair<YAML::detail::node *,YAML::detail::node *>>>::operator++(void)
jmp short loc_CF4E8
loc_CF542:
mov rax, [rsp+38h+var_10]
mov [rsp+38h+var_8], rax
mov rax, [rsp+38h+var_8]
add rsp, 38h
retn
| long long YAML::detail::node_iterator_base<YAML::detail::node>::increment_until_defined(
long long a1,
long long a2)
{
char v3; // [rsp+Fh] [rbp-29h]
long long i; // [rsp+28h] [rbp-10h] BYREF
for ( i = a2;
;
__gnu_cxx::__normal_iterator<std::pair<YAML::detail::node *,YAML::detail::node *> *,std::vector<std::pair<YAML::detail::node *,YAML::detail::node *>>>::operator++(&i) )
{
v3 = 0;
if ( !__gnu_cxx::operator==<std::pair<YAML::detail::node *,YAML::detail::node *> *,std::vector<std::pair<YAML::detail::node *,YAML::detail::node *>>>(
(long long)&i,
a1 + 24) )
v3 = ~(unsigned __int8)YAML::detail::node_iterator_base<YAML::detail::node>::is_defined(a1, i);
if ( (v3 & 1) == 0 )
break;
}
return i;
}
| increment_until_defined:
SUB RSP,0x38
MOV qword ptr [RSP + 0x28],RSI
MOV qword ptr [RSP + 0x20],RDI
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x10],RAX
LAB_001cf4e8:
MOV RSI,qword ptr [RSP + 0x10]
ADD RSI,0x18
LEA RDI,[RSP + 0x28]
CALL 0x001cdab0
MOV CL,AL
XOR CL,0xff
XOR EAX,EAX
TEST CL,0x1
MOV byte ptr [RSP + 0xf],AL
JNZ 0x001cf50d
JMP 0x001cf52c
LAB_001cf50d:
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x18],RAX
MOV RSI,qword ptr [RSP + 0x18]
CALL 0x001cf560
XOR AL,0xff
MOV byte ptr [RSP + 0xf],AL
LAB_001cf52c:
MOV AL,byte ptr [RSP + 0xf]
TEST AL,0x1
JNZ 0x001cf536
JMP 0x001cf542
LAB_001cf536:
LEA RDI,[RSP + 0x28]
CALL 0x001cf4b0
JMP 0x001cf4e8
LAB_001cf542:
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x30]
ADD RSP,0x38
RET
|
/* YAML::detail::node_iterator_base<YAML::detail::node>::increment_until_defined(__gnu_cxx::__normal_iterator<std::pair<YAML::detail::node*,
YAML::detail::node*>*, std::vector<std::pair<YAML::detail::node*, YAML::detail::node*>,
std::allocator<std::pair<YAML::detail::node*, YAML::detail::node*> > > >) */
int8 __thiscall
YAML::detail::node_iterator_base<YAML::detail::node>::increment_until_defined
(node_iterator_base<YAML::detail::node> *this,int8 param_2)
{
byte bVar1;
byte local_29;
int8 local_10 [2];
local_10[0] = param_2;
while( true ) {
bVar1 = _ZN9__gnu_cxxeqIPSt4pairIPN4YAML6detail4nodeES5_ESt6vectorIS6_SaIS6_EEEEbRKNS_17__normal_iteratorIT_T0_EESG_QrqXeqcldtfp_4baseEcldtfp0_4baseERSt14convertible_toIbEE
(local_10,this + 0x18);
local_29 = 0;
if (((bVar1 ^ 0xff) & 1) != 0) {
local_29 = is_defined(this,local_10[0]);
local_29 = local_29 ^ 0xff;
}
if ((local_29 & 1) == 0) break;
__gnu_cxx::
__normal_iterator<std::pair<YAML::detail::node*,YAML::detail::node*>*,std::vector<std::pair<YAML::detail::node*,YAML::detail::node*>,std::allocator<std::pair<YAML::detail::node*,YAML::detail::node*>>>>
::operator++((__normal_iterator<std::pair<YAML::detail::node*,YAML::detail::node*>*,std::vector<std::pair<YAML::detail::node*,YAML::detail::node*>,std::allocator<std::pair<YAML::detail::node*,YAML::detail::node*>>>>
*)local_10);
}
return local_10[0];
}
| |
44,302 | ma_apply_undo_bulk_insert | eloqsql/storage/maria/ma_blockrec.c | my_bool _ma_apply_undo_bulk_insert(MARIA_HA *info, LSN undo_lsn)
{
my_bool error;
LSN lsn;
DBUG_ENTER("_ma_apply_undo_bulk_insert");
/*
We delete all rows, re-enable indices as bulk insert had disabled
non-unique ones.
*/
error= (maria_delete_all_rows(info) ||
maria_enable_indexes(info) ||
/* we enabled indices so need '2' below */
_ma_state_info_write(info->s,
MA_STATE_INFO_WRITE_DONT_MOVE_OFFSET |
MA_STATE_INFO_WRITE_FULL_INFO |
MA_STATE_INFO_WRITE_LOCK) ||
_ma_write_clr(info, undo_lsn, LOGREC_UNDO_BULK_INSERT,
FALSE, 0, &lsn, NULL));
DBUG_RETURN(error);
} | O0 | c | ma_apply_undo_bulk_insert:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
callq 0x746c0
movl %eax, %ecx
movb $0x1, %al
cmpl $0x0, %ecx
movb %al, -0x21(%rbp)
jne 0x5e679
movq -0x8(%rbp), %rdi
callq 0x93300
movl %eax, %ecx
movb $0x1, %al
cmpl $0x0, %ecx
movb %al, -0x21(%rbp)
jne 0x5e679
movq -0x8(%rbp), %rax
movq (%rax), %rdi
movl $0x7, %esi
callq 0x8fa30
movl %eax, %ecx
movb $0x1, %al
cmpl $0x0, %ecx
movb %al, -0x21(%rbp)
jne 0x5e679
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl $0x27, %edx
xorl %r8d, %r8d
leaq -0x20(%rbp), %r9
xorl %eax, %eax
movl %r8d, %ecx
movq $0x0, (%rsp)
callq 0x42410
movsbl %al, %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x21(%rbp)
movb -0x21(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movb %al, -0x11(%rbp)
movb -0x11(%rbp), %al
movb %al, -0x22(%rbp)
movb -0x22(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _ma_apply_undo_bulk_insert:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rdi, [rbp+var_8]
call maria_delete_all_rows
mov ecx, eax
mov al, 1
cmp ecx, 0
mov [rbp+var_21], al
jnz short loc_5E679
mov rdi, [rbp+var_8]
call maria_enable_indexes
mov ecx, eax
mov al, 1
cmp ecx, 0
mov [rbp+var_21], al
jnz short loc_5E679
mov rax, [rbp+var_8]
mov rdi, [rax]
mov esi, 7
call _ma_state_info_write
mov ecx, eax
mov al, 1
cmp ecx, 0
mov [rbp+var_21], al
jnz short loc_5E679
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov edx, 27h ; '''
xor r8d, r8d
lea r9, [rbp+var_20]
xor eax, eax
mov ecx, r8d
mov [rsp+30h+var_30], 0
call _ma_write_clr
movsx eax, al
cmp eax, 0
setnz al
mov [rbp+var_21], al
loc_5E679:
mov al, [rbp+var_21]
and al, 1
movzx eax, al
mov [rbp+var_11], al
mov al, [rbp+var_11]
mov [rbp+var_22], al
mov al, [rbp+var_22]
add rsp, 30h
pop rbp
retn
| _BOOL8 ma_apply_undo_bulk_insert(long long *a1, long long a2)
{
bool v3; // [rsp+Fh] [rbp-21h]
_BYTE v4[15]; // [rsp+10h] [rbp-20h] BYREF
long long v5; // [rsp+20h] [rbp-10h]
long long *v6; // [rsp+28h] [rbp-8h]
v6 = a1;
v5 = a2;
v3 = 1;
if ( !(unsigned int)maria_delete_all_rows(a1) )
{
v3 = 1;
if ( !(unsigned int)maria_enable_indexes(v6) )
{
v3 = 1;
if ( !(unsigned int)ma_state_info_write(*v6, 7LL) )
return ma_write_clr(v6, v5, 39, 0, 0, (long long)v4, 0LL) != 0;
}
}
return v3;
}
| _ma_apply_undo_bulk_insert:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001746c0
MOV ECX,EAX
MOV AL,0x1
CMP ECX,0x0
MOV byte ptr [RBP + -0x21],AL
JNZ 0x0015e679
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00193300
MOV ECX,EAX
MOV AL,0x1
CMP ECX,0x0
MOV byte ptr [RBP + -0x21],AL
JNZ 0x0015e679
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX]
MOV ESI,0x7
CALL 0x0018fa30
MOV ECX,EAX
MOV AL,0x1
CMP ECX,0x0
MOV byte ptr [RBP + -0x21],AL
JNZ 0x0015e679
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV EDX,0x27
XOR R8D,R8D
LEA R9,[RBP + -0x20]
XOR EAX,EAX
MOV ECX,R8D
MOV qword ptr [RSP],0x0
CALL 0x00142410
MOVSX EAX,AL
CMP EAX,0x0
SETNZ AL
MOV byte ptr [RBP + -0x21],AL
LAB_0015e679:
MOV AL,byte ptr [RBP + -0x21]
AND AL,0x1
MOVZX EAX,AL
MOV byte ptr [RBP + -0x11],AL
MOV AL,byte ptr [RBP + -0x11]
MOV byte ptr [RBP + -0x22],AL
MOV AL,byte ptr [RBP + -0x22]
ADD RSP,0x30
POP RBP
RET
|
bool _ma_apply_undo_bulk_insert(int8 *param_1,int8 param_2)
{
char cVar1;
int iVar2;
bool local_29;
int1 local_28 [16];
int8 local_18;
int8 *local_10;
local_18 = param_2;
local_10 = param_1;
iVar2 = maria_delete_all_rows(param_1);
local_29 = true;
if (iVar2 == 0) {
iVar2 = maria_enable_indexes(local_10);
local_29 = true;
if (iVar2 == 0) {
iVar2 = _ma_state_info_write(*local_10,7);
local_29 = true;
if (iVar2 == 0) {
cVar1 = _ma_write_clr(local_10,local_18,0x27,0,0,local_28,0);
local_29 = cVar1 != '\0';
}
}
}
return local_29;
}
| |
44,303 | google::protobuf::UnknownFieldSet::SpaceUsedExcludingSelfLong() const | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/unknown_field_set.cc | size_t UnknownFieldSet::SpaceUsedExcludingSelfLong() const {
if (fields_.empty()) return 0;
size_t total_size = sizeof(UnknownField) * fields_.capacity();
for (const UnknownField& field : fields_) {
switch (field.type()) {
case UnknownField::TYPE_LENGTH_DELIMITED:
total_size += sizeof(*field.data_.length_delimited_.string_value) +
internal::StringSpaceUsedExcludingSelfLong(
*field.data_.length_delimited_.string_value);
break;
case UnknownField::TYPE_GROUP:
total_size += field.data_.group_->SpaceUsedLong();
break;
default:
break;
}
}
return total_size;
} | O0 | cpp | google::protobuf::UnknownFieldSet::SpaceUsedExcludingSelfLong() const:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq 0x38(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x8b610
testb $0x1, %al
jne 0x16311e
jmp 0x16312c
movq $0x0, 0x40(%rsp)
jmp 0x163205
movq 0x8(%rsp), %rdi
callq 0x163f70
movq %rax, %rcx
movq 0x8(%rsp), %rax
shlq $0x4, %rcx
movq %rcx, 0x30(%rsp)
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rdi
callq 0x8b6a0
movq %rax, 0x20(%rsp)
movq 0x28(%rsp), %rdi
callq 0x8b6d0
movq %rax, 0x18(%rsp)
leaq 0x20(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x163f90
testb $0x1, %al
jne 0x16317f
jmp 0x1631fb
leaq 0x20(%rsp), %rdi
callq 0x163fd0
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rdi
callq 0x7b070
movl %eax, %ecx
movl %ecx, 0x4(%rsp)
subl $0x3, %eax
je 0x1631b0
jmp 0x1631a5
movl 0x4(%rsp), %eax
subl $0x4, %eax
je 0x1631ce
jmp 0x1631e8
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x1aad20
addq $0x20, %rax
addq 0x30(%rsp), %rax
movq %rax, 0x30(%rsp)
jmp 0x1631ea
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x163210
addq 0x30(%rsp), %rax
movq %rax, 0x30(%rsp)
jmp 0x1631ea
jmp 0x1631ea
jmp 0x1631ec
leaq 0x20(%rsp), %rdi
callq 0x163fe0
jmp 0x16316a
movq 0x30(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
addq $0x48, %rsp
retq
nop
| _ZNK6google8protobuf15UnknownFieldSet26SpaceUsedExcludingSelfLongEv:
sub rsp, 48h
mov [rsp+48h+var_10], rdi
mov rdi, [rsp+48h+var_10]
mov [rsp+48h+var_40], rdi
call _ZNKSt6vectorIN6google8protobuf12UnknownFieldESaIS2_EE5emptyEv; std::vector<google::protobuf::UnknownField>::empty(void)
test al, 1
jnz short loc_16311E
jmp short loc_16312C
loc_16311E:
mov [rsp+48h+var_8], 0
jmp loc_163205
loc_16312C:
mov rdi, [rsp+48h+var_40]
call _ZNKSt6vectorIN6google8protobuf12UnknownFieldESaIS2_EE8capacityEv; std::vector<google::protobuf::UnknownField>::capacity(void)
mov rcx, rax
mov rax, [rsp+48h+var_40]
shl rcx, 4
mov [rsp+48h+var_18], rcx
mov [rsp+48h+var_20], rax
mov rdi, [rsp+48h+var_20]
call _ZNKSt6vectorIN6google8protobuf12UnknownFieldESaIS2_EE5beginEv; std::vector<google::protobuf::UnknownField>::begin(void)
mov [rsp+48h+var_28], rax
mov rdi, [rsp+48h+var_20]
call _ZNKSt6vectorIN6google8protobuf12UnknownFieldESaIS2_EE3endEv; std::vector<google::protobuf::UnknownField>::end(void)
mov [rsp+48h+var_30], rax
loc_16316A:
lea rdi, [rsp+48h+var_28]
lea rsi, [rsp+48h+var_30]
call _ZN9__gnu_cxxneIPKN6google8protobuf12UnknownFieldESt6vectorIS3_SaIS3_EEEEbRKNS_17__normal_iteratorIT_T0_EESE_; __gnu_cxx::operator!=<google::protobuf::UnknownField const*,std::vector<google::protobuf::UnknownField>>(__gnu_cxx::__normal_iterator<google::protobuf::UnknownField const*,std::vector<google::protobuf::UnknownField>> const&,__gnu_cxx::__normal_iterator<google::protobuf::UnknownField const*,std::vector<google::protobuf::UnknownField>> const&)
test al, 1
jnz short loc_16317F
jmp short loc_1631FB
loc_16317F:
lea rdi, [rsp+48h+var_28]
call _ZNK9__gnu_cxx17__normal_iteratorIPKN6google8protobuf12UnknownFieldESt6vectorIS3_SaIS3_EEEdeEv; __gnu_cxx::__normal_iterator<google::protobuf::UnknownField const*,std::vector<google::protobuf::UnknownField>>::operator*(void)
mov [rsp+48h+var_38], rax
mov rdi, [rsp+48h+var_38]; this
call _ZNK6google8protobuf12UnknownField4typeEv; google::protobuf::UnknownField::type(void)
mov ecx, eax
mov [rsp+48h+var_44], ecx
sub eax, 3
jz short loc_1631B0
jmp short $+2
loc_1631A5:
mov eax, [rsp+48h+var_44]
sub eax, 4
jz short loc_1631CE
jmp short loc_1631E8
loc_1631B0:
mov rax, [rsp+48h+var_38]
mov rdi, [rax+8]
call _ZN6google8protobuf8internal32StringSpaceUsedExcludingSelfLongERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::StringSpaceUsedExcludingSelfLong(std::string const&)
add rax, 20h ; ' '
add rax, [rsp+48h+var_18]
mov [rsp+48h+var_18], rax
jmp short loc_1631EA
loc_1631CE:
mov rax, [rsp+48h+var_38]
mov rdi, [rax+8]; this
call _ZNK6google8protobuf15UnknownFieldSet13SpaceUsedLongEv; google::protobuf::UnknownFieldSet::SpaceUsedLong(void)
add rax, [rsp+48h+var_18]
mov [rsp+48h+var_18], rax
jmp short loc_1631EA
loc_1631E8:
jmp short $+2
loc_1631EA:
jmp short $+2
loc_1631EC:
lea rdi, [rsp+48h+var_28]
call _ZN9__gnu_cxx17__normal_iteratorIPKN6google8protobuf12UnknownFieldESt6vectorIS3_SaIS3_EEEppEv; __gnu_cxx::__normal_iterator<google::protobuf::UnknownField const*,std::vector<google::protobuf::UnknownField>>::operator++(void)
jmp loc_16316A
loc_1631FB:
mov rax, [rsp+48h+var_18]
mov [rsp+48h+var_8], rax
loc_163205:
mov rax, [rsp+48h+var_8]
add rsp, 48h
retn
| long long google::protobuf::UnknownFieldSet::SpaceUsedExcludingSelfLong(
google::protobuf::UnknownFieldSet *this)
{
long long v1; // rax
long long v2; // rax
int v4; // [rsp+4h] [rbp-44h]
google::protobuf::UnknownFieldSet **v5; // [rsp+10h] [rbp-38h]
long long v6; // [rsp+18h] [rbp-30h] BYREF
_QWORD v7[2]; // [rsp+20h] [rbp-28h] BYREF
long long v8; // [rsp+30h] [rbp-18h]
google::protobuf::UnknownFieldSet *v9; // [rsp+38h] [rbp-10h]
v9 = this;
if ( (std::vector<google::protobuf::UnknownField>::empty((long long)this) & 1) != 0 )
return 0LL;
v8 = 16 * std::vector<google::protobuf::UnknownField>::capacity(this);
v7[1] = this;
v7[0] = std::vector<google::protobuf::UnknownField>::begin((long long)this);
v6 = std::vector<google::protobuf::UnknownField>::end((long long)this);
while ( (__gnu_cxx::operator!=<google::protobuf::UnknownField const*,std::vector<google::protobuf::UnknownField>>(
v7,
&v6) & 1) != 0 )
{
v5 = (google::protobuf::UnknownFieldSet **)__gnu_cxx::__normal_iterator<google::protobuf::UnknownField const*,std::vector<google::protobuf::UnknownField>>::operator*(v7);
v4 = google::protobuf::UnknownField::type((google::protobuf::UnknownField *)v5);
if ( v4 == 3 )
{
v1 = google::protobuf::internal::StringSpaceUsedExcludingSelfLong(v5[1]);
v8 += v1 + 32;
}
else if ( v4 == 4 )
{
v2 = google::protobuf::UnknownFieldSet::SpaceUsedLong(v5[1]);
v8 += v2;
}
__gnu_cxx::__normal_iterator<google::protobuf::UnknownField const*,std::vector<google::protobuf::UnknownField>>::operator++(v7);
}
return v8;
}
| _M_equals:
SUB RSP,0x48
MOV qword ptr [RSP + 0x40],RDI
MOV qword ptr [RSP + 0x38],RSI
MOV qword ptr [RSP + 0x30],RDX
MOV qword ptr [RSP + 0x28],RCX
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,qword ptr [RSP + 0x30]
MOV RSI,qword ptr [RSP + 0x28]
ADD RSI,0x20
CALL 0x001631d0
MOV CL,AL
XOR EAX,EAX
TEST CL,0x1
MOV byte ptr [RSP + 0x26],AL
JNZ 0x00163144
JMP 0x0016318a
LAB_00163144:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001631f0
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x10],RAX
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x0017fd10
MOV RSI,RAX
LEA RDI,[RSP + 0x27]
CALL 0x0017fcf0
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,RAX
CALL 0x0017fcc0
MOV byte ptr [RSP + 0x26],AL
LAB_0016318a:
MOV AL,byte ptr [RSP + 0x26]
AND AL,0x1
ADD RSP,0x48
RET
|
/* std::__detail::_Hashtable_base<std::pair<void const*,
google::protobuf::stringpiece_internal::StringPiece>, std::pair<std::pair<void const*,
google::protobuf::stringpiece_internal::StringPiece> const, google::protobuf::FieldDescriptor
const*>, std::__detail::_Select1st, std::equal_to<std::pair<void const*,
google::protobuf::stringpiece_internal::StringPiece> >, google::protobuf::(anonymous
namespace)::PointerStringPairHash, std::__detail::_Mod_range_hashing,
std::__detail::_Default_ranged_hash, std::__detail::_Hashtable_traits<true, false, true>
>::_M_equals(std::pair<void const*, google::protobuf::stringpiece_internal::StringPiece> const&,
unsigned long, std::__detail::_Hash_node_value<std::pair<std::pair<void const*,
google::protobuf::stringpiece_internal::StringPiece> const, google::protobuf::FieldDescriptor
const*>, true> const&) const */
ulong __thiscall
std::__detail::
_Hashtable_base<std::pair<void_const*,google::protobuf::stringpiece_internal::StringPiece>,std::pair<std::pair<void_const*,google::protobuf::stringpiece_internal::StringPiece>const,google::protobuf::FieldDescriptor_const*>,std::__detail::_Select1st,std::equal_to<std::pair<void_const*,google::protobuf::stringpiece_internal::StringPiece>>,google::protobuf::(anonymous_namespace)::PointerStringPairHash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Hashtable_traits<true,false,true>>
::_M_equals(_Hashtable_base<std::pair<void_const*,google::protobuf::stringpiece_internal::StringPiece>,std::pair<std::pair<void_const*,google::protobuf::stringpiece_internal::StringPiece>const,google::protobuf::FieldDescriptor_const*>,std::__detail::_Select1st,std::equal_to<std::pair<void_const*,google::protobuf::stringpiece_internal::StringPiece>>,google::protobuf::(anonymous_namespace)::PointerStringPairHash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Hashtable_traits<true,false,true>>
*this,pair *param_1,ulong param_2,_Hash_node_value *param_3)
{
pair *ppVar1;
uint uVar2;
equal_to<std::pair<void_const*,google::protobuf::stringpiece_internal::StringPiece>> *this_00;
pair *ppVar3;
int8 uVar4;
int1 local_22;
_Select1st local_21;
_Hash_node_value *local_20;
ulong local_18;
pair *local_10;
_Hashtable_base<std::pair<void_const*,google::protobuf::stringpiece_internal::StringPiece>,std::pair<std::pair<void_const*,google::protobuf::stringpiece_internal::StringPiece>const,google::protobuf::FieldDescriptor_const*>,std::__detail::_Select1st,std::equal_to<std::pair<void_const*,google::protobuf::stringpiece_internal::StringPiece>>,google::protobuf::(anonymous_namespace)::PointerStringPairHash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Hashtable_traits<true,false,true>>
*local_8;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
local_8 = this;
uVar2 = _S_equals(param_2,(_Hash_node_code_cache *)(param_3 + 0x20));
uVar4 = 0;
local_22 = 0;
if ((uVar2 & 1) != 0) {
this_00 = (equal_to<std::pair<void_const*,google::protobuf::stringpiece_internal::StringPiece>>
*)_M_eq(this);
ppVar1 = local_10;
ppVar3 = (pair *)_Hash_node_value_base<std::pair<std::pair<void_const*,google::protobuf::stringpiece_internal::StringPiece>const,google::protobuf::FieldDescriptor_const*>>
::_M_v((_Hash_node_value_base<std::pair<std::pair<void_const*,google::protobuf::stringpiece_internal::StringPiece>const,google::protobuf::FieldDescriptor_const*>>
*)local_20);
ppVar3 = (pair *)_Select1st::operator()(&local_21,ppVar3);
uVar4 = equal_to<std::pair<void_const*,google::protobuf::stringpiece_internal::StringPiece>>::
operator()(this_00,ppVar1,ppVar3);
local_22 = (int1)uVar4;
}
return CONCAT71((int7)((ulong)uVar4 >> 8),local_22) & 0xffffffffffffff01;
}
| |
44,304 | test_bug5399 | eloqsql/tests/mysql_client_test.c | static void test_bug5399()
{
/*
Ascii 97 is 'a', which gets mapped to Ascii 65 'A' unless internal
statement id hash in the server uses binary collation.
*/
#define NUM_OF_USED_STMT 97
MYSQL_STMT *stmt_list[NUM_OF_USED_STMT];
MYSQL_STMT **stmt;
MYSQL_BIND my_bind[1];
char buff[600];
int rc;
int32 no;
myheader("test_bug5399");
bzero((char*) my_bind, sizeof(my_bind));
my_bind[0].buffer_type= MYSQL_TYPE_LONG;
my_bind[0].buffer= &no;
for (stmt= stmt_list; stmt != stmt_list + NUM_OF_USED_STMT; ++stmt)
{
sprintf(buff, "select %d", (int) (stmt - stmt_list));
*stmt= mysql_stmt_init(mysql);
rc= mysql_stmt_prepare(*stmt, buff, strlen(buff));
check_execute(*stmt, rc);
mysql_stmt_bind_result(*stmt, my_bind);
}
if (!opt_silent)
printf("%d statements prepared.\n", NUM_OF_USED_STMT);
for (stmt= stmt_list; stmt != stmt_list + NUM_OF_USED_STMT; ++stmt)
{
rc= mysql_stmt_execute(*stmt);
check_execute(*stmt, rc);
rc= mysql_stmt_store_result(*stmt);
check_execute(*stmt, rc);
rc= mysql_stmt_fetch(*stmt);
DIE_UNLESS(rc == 0);
DIE_UNLESS((int32) (stmt - stmt_list) == no);
}
for (stmt= stmt_list; stmt != stmt_list + NUM_OF_USED_STMT; ++stmt)
mysql_stmt_close(*stmt);
#undef NUM_OF_USED_STMT
} | O3 | c | test_bug5399:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x608, %rsp # imm = 0x608
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
cmpb $0x1, 0x3b960b(%rip) # 0x41a4c1
jg 0x60f31
movq 0x33f101(%rip), %rbx # 0x39ffc0
movq (%rbx), %rdi
leaq 0x7e5fb(%rip), %rdx # 0xdf4c4
movl $0x1, %esi
xorl %eax, %eax
callq 0x39240
movq (%rbx), %rdi
movl 0x3b982e(%rip), %ecx # 0x41a70c
leal 0x1(%rcx), %eax
movl %eax, 0x3b9825(%rip) # 0x41a70c
movl 0x3b981a(%rip), %r8d # 0x41a708
movl 0x3b95f7(%rip), %r9d # 0x41a4ec
leaq 0x7ef7c(%rip), %rax # 0xdfe78
movq %rax, (%rsp)
leaq 0x7f8c5(%rip), %rdx # 0xe07cc
movl $0x1, %esi
xorl %eax, %eax
callq 0x39240
movq (%rbx), %rdi
leaq 0x7e5df(%rip), %rdx # 0xdf4fc
movl $0x1, %esi
xorl %eax, %eax
callq 0x39240
movq (%rbx), %rdi
callq 0x394b0
xorps %xmm0, %xmm0
leaq -0x310(%rbp), %rbx
movaps %xmm0, 0x60(%rbx)
movaps %xmm0, 0x10(%rbx)
movaps %xmm0, 0x50(%rbx)
movaps %xmm0, 0x40(%rbx)
movaps %xmm0, 0x30(%rbx)
movaps %xmm0, 0x20(%rbx)
movaps %xmm0, (%rbx)
movl $0x3, 0x60(%rbx)
leaq -0x294(%rbp), %rax
movq %rax, 0x10(%rbx)
movl $0x308, %r14d # imm = 0x308
leaq -0x290(%rbp), %r15
xorl %r12d, %r12d
movl $0x258, %edx # imm = 0x258
movq %r15, %rdi
movl $0x1, %esi
leaq 0x8a484(%rip), %rcx # 0xeb410
movl %r12d, %r8d
xorl %eax, %eax
callq 0x39c50
movq 0x3b952b(%rip), %rdi # 0x41a4c8
callq 0x9191c
movq %rax, %r13
movq %rax, -0x620(%rbp,%r12,8)
movq %r15, %rdi
callq 0x39400
movq %r13, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x3b4a1
movq %r13, %rdi
testl %eax, %eax
jne 0x6109b
movq %rbx, %rsi
callq 0x91084
incq %r12
addq $-0x8, %r14
jne 0x60f78
cmpb $0x0, 0x3b94db(%rip) # 0x41a4c1
jne 0x61000
leaq 0x8a42b(%rip), %rsi # 0xeb41a
movl $0x1, %edi
movl $0x61, %edx
xorl %eax, %eax
callq 0x39a60
movl $0xffffffff, %r14d # imm = 0xFFFFFFFF
xorl %r15d, %r15d
movq -0x620(%rbp,%r15), %rbx
movq %rbx, %rdi
callq 0x3b510
testl %eax, %eax
jne 0x61105
movq %rbx, %rdi
callq 0x3b5d6
movq %rbx, %rdi
testl %eax, %eax
jne 0x610e8
callq 0x3b573
testl %eax, %eax
jne 0x610d0
incl %r14d
cmpl -0x294(%rbp), %r14d
jne 0x610b8
addq $0x8, %r15
cmpq $0x308, %r15 # imm = 0x308
jne 0x61009
xorl %ebx, %ebx
movq -0x620(%rbp,%rbx), %rdi
callq 0x3b639
addq $0x8, %rbx
cmpq $0x308, %rbx # imm = 0x308
jne 0x6105c
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x61125
addq $0x608, %rsp # imm = 0x608
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3bbbe
leaq 0x7dd05(%rip), %rdi # 0xdedac
leaq 0x898b9(%rip), %rdx # 0xea967
movl $0x2df2, %esi # imm = 0x2DF2
callq 0x3bb30
leaq 0x7dced(%rip), %rdi # 0xdedac
leaq 0x8a36d(%rip), %rdx # 0xeb433
movl $0x2e00, %esi # imm = 0x2E00
callq 0x3bb30
leaq 0x7dcd5(%rip), %rdi # 0xdedac
leaq 0x89889(%rip), %rdx # 0xea967
movl $0x2dff, %esi # imm = 0x2DFF
callq 0x3bb30
callq 0x3bbbe
leaq 0x7dcb8(%rip), %rdi # 0xdedac
leaq 0x8986c(%rip), %rdx # 0xea967
movl $0x2dfd, %esi # imm = 0x2DFD
callq 0x3bb30
movq %rbx, %rdi
callq 0x3bbbe
leaq 0x7dc98(%rip), %rdi # 0xdedac
leaq 0x8984c(%rip), %rdx # 0xea967
movl $0x2dfb, %esi # imm = 0x2DFB
callq 0x3bb30
callq 0x39290
| test_bug5399:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 608h
mov rax, fs:28h
mov [rbp+var_30], rax
cmp cs:opt_silent, 1
jg short loc_60F31
mov rbx, cs:stdout_ptr
mov rdi, [rbx]
lea rdx, asc_DF4C4; "\n\n###################################"...
mov esi, 1
xor eax, eax
call ___fprintf_chk
mov rdi, [rbx]
mov ecx, cs:test_count
lea eax, [rcx+1]
mov cs:test_count, eax
mov r8d, cs:iter_count
mov r9d, cs:opt_count
lea rax, aTestBug5399; "test_bug5399"
mov [rsp+630h+var_630], rax
lea rdx, aUOfUUS; "%u of (%u/%u): %s"
mov esi, 1
xor eax, eax
call ___fprintf_chk
mov rdi, [rbx]
lea rdx, asc_DF4FC; " \n###################################"...
mov esi, 1
xor eax, eax
call ___fprintf_chk
mov rdi, [rbx]
call _fflush
loc_60F31:
xorps xmm0, xmm0
lea rbx, [rbp+var_310]
movaps xmmword ptr [rbx+60h], xmm0
movaps xmmword ptr [rbx+10h], xmm0
movaps xmmword ptr [rbx+50h], xmm0
movaps xmmword ptr [rbx+40h], xmm0
movaps xmmword ptr [rbx+30h], xmm0
movaps xmmword ptr [rbx+20h], xmm0
movaps xmmword ptr [rbx], xmm0
mov dword ptr [rbx+60h], 3
lea rax, [rbp+var_294]
mov [rbx+10h], rax
mov r14d, 308h
lea r15, [rbp+var_290]
xor r12d, r12d
loc_60F78:
mov edx, 258h
mov rdi, r15
mov esi, 1
lea rcx, aSelectD; "select %d"
mov r8d, r12d
xor eax, eax
call ___sprintf_chk
mov rdi, cs:mysql
call mysql_stmt_init
mov r13, rax
mov [rbp+r12*8+var_620], rax
mov rdi, r15
call _strlen
mov rdi, r13
mov rsi, r15
mov rdx, rax
call wrap_mysql_stmt_prepare
mov rdi, r13
test eax, eax
jnz loc_6109B
mov rsi, rbx
call mysql_stmt_bind_result
inc r12
add r14, 0FFFFFFFFFFFFFFF8h
jnz short loc_60F78
cmp cs:opt_silent, 0
jnz short loc_61000
lea rsi, aDStatementsPre; "%d statements prepared.\n"
mov edi, 1
mov edx, 61h ; 'a'
xor eax, eax
call ___printf_chk
loc_61000:
mov r14d, 0FFFFFFFFh
xor r15d, r15d
loc_61009:
mov rbx, [rbp+r15+var_620]
mov rdi, rbx
call wrap_mysql_stmt_execute
test eax, eax
jnz loc_61105
mov rdi, rbx
call wrap_mysql_stmt_store_result
mov rdi, rbx
test eax, eax
jnz loc_610E8
call wrap_mysql_stmt_fetch
test eax, eax
jnz loc_610D0
inc r14d
cmp r14d, [rbp+var_294]
jnz short loc_610B8
add r15, 8
cmp r15, 308h
jnz short loc_61009
xor ebx, ebx
loc_6105C:
mov rdi, [rbp+rbx+var_620]
call wrap_mysql_stmt_close
add rbx, 8
cmp rbx, 308h
jnz short loc_6105C
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz loc_61125
add rsp, 608h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_6109B:
call print_st_error
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"...
lea rdx, aRcMysqlDataTru+1Eh; "rc == 0"
mov esi, 2DF2h
call die
loc_610B8:
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"...
lea rdx, aInt32StmtStmtL; "(int32) (stmt - stmt_list) == no"
mov esi, 2E00h
call die
loc_610D0:
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"...
lea rdx, aRcMysqlDataTru+1Eh; "rc == 0"
mov esi, 2DFFh
call die
loc_610E8:
call print_st_error
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"...
lea rdx, aRcMysqlDataTru+1Eh; "rc == 0"
mov esi, 2DFDh
call die
loc_61105:
mov rdi, rbx
call print_st_error
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/eloqsq"...
lea rdx, aRcMysqlDataTru+1Eh; "rc == 0"
mov esi, 2DFBh
call die
loc_61125:
call ___stack_chk_fail
| unsigned long long test_bug5399()
{
int v0; // ecx
long long v1; // r14
long long v2; // r12
long long v3; // r13
long long v4; // rax
long long v5; // rdx
long long v6; // rcx
int v7; // r14d
long long i; // r15
long long v9; // rbx
long long j; // rbx
_QWORD v12[98]; // [rsp+10h] [rbp-620h]
__int128 v13; // [rsp+320h] [rbp-310h] BYREF
__int128 v14; // [rsp+330h] [rbp-300h]
__int128 v15; // [rsp+340h] [rbp-2F0h]
__int128 v16; // [rsp+350h] [rbp-2E0h]
__int128 v17; // [rsp+360h] [rbp-2D0h]
__int128 v18; // [rsp+370h] [rbp-2C0h]
__int128 v19; // [rsp+380h] [rbp-2B0h]
int v20; // [rsp+39Ch] [rbp-294h] BYREF
_BYTE v21[608]; // [rsp+3A0h] [rbp-290h] BYREF
unsigned long long v22; // [rsp+600h] [rbp-30h]
v22 = __readfsqword(0x28u);
if ( opt_silent <= 1 )
{
__fprintf_chk(stdout, 1LL, "\n\n#####################################\n");
v0 = test_count++;
__fprintf_chk(stdout, 1LL, "%u of (%u/%u): %s", v0, iter_count, opt_count, "test_bug5399");
__fprintf_chk(stdout, 1LL, " \n#####################################\n");
fflush(stdout);
}
v19 = 0LL;
v14 = 0LL;
v18 = 0LL;
v17 = 0LL;
v16 = 0LL;
v15 = 0LL;
v13 = 0LL;
LODWORD(v19) = 3;
*(_QWORD *)&v14 = &v20;
v1 = 776LL;
v2 = 0LL;
do
{
__sprintf_chk(v21, 1LL, 600LL, "select %d", v2);
v3 = mysql_stmt_init(mysql);
v12[v2] = v3;
v4 = strlen(v21);
if ( (unsigned int)wrap_mysql_stmt_prepare(v3, (long long)v21, v4) )
{
print_st_error(v3);
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 11762, "rc == 0");
}
mysql_stmt_bind_result(v3, &v13, v5, v6);
++v2;
v1 -= 8LL;
}
while ( v1 );
if ( !opt_silent )
__printf_chk(1LL, "%d statements prepared.\n", 97);
v7 = -1;
for ( i = 0LL; i != 97; ++i )
{
v9 = v12[i];
if ( (unsigned int)wrap_mysql_stmt_execute(v9) )
{
print_st_error(v9);
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 11771, "rc == 0");
}
if ( (unsigned int)wrap_mysql_stmt_store_result(v9) )
{
print_st_error(v9);
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 11773, "rc == 0");
}
if ( (unsigned int)wrap_mysql_stmt_fetch(v9) )
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c", 11775, "rc == 0");
if ( ++v7 != v20 )
die(
"/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",
11776,
"(int32) (stmt - stmt_list) == no");
}
for ( j = 0LL; j != 97; ++j )
wrap_mysql_stmt_close(v12[j]);
return __readfsqword(0x28u);
}
| test_bug5399:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x608
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
CMP byte ptr [0x0051a4c1],0x1
JG 0x00160f31
MOV RBX,qword ptr [0x0049ffc0]
MOV RDI,qword ptr [RBX]
LEA RDX,[0x1df4c4]
MOV ESI,0x1
XOR EAX,EAX
CALL 0x00139240
MOV RDI,qword ptr [RBX]
MOV ECX,dword ptr [0x0051a70c]
LEA EAX,[RCX + 0x1]
MOV dword ptr [0x0051a70c],EAX
MOV R8D,dword ptr [0x0051a708]
MOV R9D,dword ptr [0x0051a4ec]
LEA RAX,[0x1dfe78]
MOV qword ptr [RSP],RAX
LEA RDX,[0x1e07cc]
MOV ESI,0x1
XOR EAX,EAX
CALL 0x00139240
MOV RDI,qword ptr [RBX]
LEA RDX,[0x1df4fc]
MOV ESI,0x1
XOR EAX,EAX
CALL 0x00139240
MOV RDI,qword ptr [RBX]
CALL 0x001394b0
LAB_00160f31:
XORPS XMM0,XMM0
LEA RBX,[RBP + -0x310]
MOVAPS xmmword ptr [RBX + 0x60],XMM0
MOVAPS xmmword ptr [RBX + 0x10],XMM0
MOVAPS xmmword ptr [RBX + 0x50],XMM0
MOVAPS xmmword ptr [RBX + 0x40],XMM0
MOVAPS xmmword ptr [RBX + 0x30],XMM0
MOVAPS xmmword ptr [RBX + 0x20],XMM0
MOVAPS xmmword ptr [RBX],XMM0
MOV dword ptr [RBX + 0x60],0x3
LEA RAX,[RBP + -0x294]
MOV qword ptr [RBX + 0x10],RAX
MOV R14D,0x308
LEA R15,[RBP + -0x290]
XOR R12D,R12D
LAB_00160f78:
MOV EDX,0x258
MOV RDI,R15
MOV ESI,0x1
LEA RCX,[0x1eb410]
MOV R8D,R12D
XOR EAX,EAX
CALL 0x00139c50
MOV RDI,qword ptr [0x0051a4c8]
CALL 0x0019191c
MOV R13,RAX
MOV qword ptr [RBP + R12*0x8 + -0x620],RAX
MOV RDI,R15
CALL 0x00139400
MOV RDI,R13
MOV RSI,R15
MOV RDX,RAX
CALL 0x0013b4a1
MOV RDI,R13
TEST EAX,EAX
JNZ 0x0016109b
MOV RSI,RBX
CALL 0x00191084
INC R12
ADD R14,-0x8
JNZ 0x00160f78
CMP byte ptr [0x0051a4c1],0x0
JNZ 0x00161000
LEA RSI,[0x1eb41a]
MOV EDI,0x1
MOV EDX,0x61
XOR EAX,EAX
CALL 0x00139a60
LAB_00161000:
MOV R14D,0xffffffff
XOR R15D,R15D
LAB_00161009:
MOV RBX,qword ptr [RBP + R15*0x1 + -0x620]
MOV RDI,RBX
CALL 0x0013b510
TEST EAX,EAX
JNZ 0x00161105
MOV RDI,RBX
CALL 0x0013b5d6
MOV RDI,RBX
TEST EAX,EAX
JNZ 0x001610e8
CALL 0x0013b573
TEST EAX,EAX
JNZ 0x001610d0
INC R14D
CMP R14D,dword ptr [RBP + -0x294]
JNZ 0x001610b8
ADD R15,0x8
CMP R15,0x308
JNZ 0x00161009
XOR EBX,EBX
LAB_0016105c:
MOV RDI,qword ptr [RBP + RBX*0x1 + -0x620]
CALL 0x0013b639
ADD RBX,0x8
CMP RBX,0x308
JNZ 0x0016105c
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00161125
ADD RSP,0x608
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0016109b:
CALL 0x0013bbbe
LEA RDI,[0x1dedac]
LEA RDX,[0x1ea967]
MOV ESI,0x2df2
CALL 0x0013bb30
LAB_001610b8:
LEA RDI,[0x1dedac]
LEA RDX,[0x1eb433]
MOV ESI,0x2e00
CALL 0x0013bb30
LAB_001610d0:
LEA RDI,[0x1dedac]
LEA RDX,[0x1ea967]
MOV ESI,0x2dff
CALL 0x0013bb30
LAB_001610e8:
CALL 0x0013bbbe
LEA RDI,[0x1dedac]
LEA RDX,[0x1ea967]
MOV ESI,0x2dfd
CALL 0x0013bb30
LAB_00161105:
MOV RDI,RBX
CALL 0x0013bbbe
LEA RDI,[0x1dedac]
LEA RDX,[0x1ea967]
MOV ESI,0x2dfb
CALL 0x0013bb30
LAB_00161125:
CALL 0x00139290
|
void test_bug5399(void)
{
int *puVar1;
int iVar2;
int iVar3;
int8 uVar4;
size_t sVar5;
ulong uVar6;
long lVar7;
long in_FS_OFFSET;
int8 auStack_628 [98];
int8 local_318;
int8 uStack_310;
int *local_308;
int8 uStack_300;
int8 local_2f8;
int8 uStack_2f0;
int8 local_2e8;
int8 uStack_2e0;
int8 local_2d8;
int8 uStack_2d0;
int8 local_2c8;
int8 uStack_2c0;
int8 local_2b8;
int8 uStack_2b0;
int local_29c;
char local_298 [608];
long local_38;
puVar1 = PTR_stdout_0049ffc0;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
if (opt_silent < '\x02') {
__fprintf_chk(*(int8 *)PTR_stdout_0049ffc0,1,"\n\n#####################################\n"
);
iVar2 = test_count;
test_count = test_count + 1;
__fprintf_chk(*(int8 *)puVar1,1,"%u of (%u/%u): %s",iVar2,iter_count,opt_count,
"test_bug5399");
__fprintf_chk(*(int8 *)puVar1,1," \n#####################################\n");
fflush(*(FILE **)puVar1);
}
uStack_2b0 = 0;
uStack_300 = 0;
local_2c8 = 0;
uStack_2c0 = 0;
local_2d8 = 0;
uStack_2d0 = 0;
local_2e8 = 0;
uStack_2e0 = 0;
local_2f8 = 0;
uStack_2f0 = 0;
local_318 = 0;
uStack_310 = 0;
local_2b8 = 3;
local_308 = &local_29c;
lVar7 = 0x308;
uVar6 = 0;
do {
__sprintf_chk(local_298,1,600,"select %d",uVar6 & 0xffffffff);
uVar4 = mysql_stmt_init(mysql);
auStack_628[uVar6] = uVar4;
sVar5 = strlen(local_298);
iVar2 = wrap_mysql_stmt_prepare(uVar4,local_298,sVar5);
if (iVar2 != 0) {
print_st_error(uVar4);
/* WARNING: Subroutine does not return */
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x2df2,"rc == 0");
}
mysql_stmt_bind_result(uVar4,&local_318);
uVar6 = uVar6 + 1;
lVar7 = lVar7 + -8;
} while (lVar7 != 0);
if (opt_silent == '\0') {
__printf_chk(1,"%d statements prepared.\n",0x61);
}
iVar2 = -1;
lVar7 = 0;
while( true ) {
uVar4 = *(int8 *)((long)auStack_628 + lVar7);
iVar3 = wrap_mysql_stmt_execute(uVar4);
if (iVar3 != 0) {
print_st_error(uVar4);
/* WARNING: Subroutine does not return */
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x2dfb,"rc == 0");
}
iVar3 = wrap_mysql_stmt_store_result(uVar4);
if (iVar3 != 0) {
print_st_error(uVar4);
/* WARNING: Subroutine does not return */
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x2dfd,"rc == 0");
}
iVar3 = wrap_mysql_stmt_fetch();
if (iVar3 != 0) {
/* WARNING: Subroutine does not return */
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x2dff,"rc == 0");
}
iVar2 = iVar2 + 1;
if (iVar2 != local_29c) break;
lVar7 = lVar7 + 8;
if (lVar7 == 0x308) {
lVar7 = 0;
do {
wrap_mysql_stmt_close(*(int8 *)((long)auStack_628 + lVar7));
lVar7 = lVar7 + 8;
} while (lVar7 != 0x308);
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
}
/* WARNING: Subroutine does not return */
die("/workspace/llm4binary/github2025/eloqsql/tests/mysql_client_test.c",0x2e00,
"(int32) (stmt - stmt_list) == no");
}
| |
44,305 | my_rw_tryrdlock | eloqsql/mysys/thr_rwlock.c | int my_rw_tryrdlock(my_rw_lock_t *rwp)
{
int res;
pthread_mutex_lock(&rwp->lock);
if ((rwp->state < 0 ) || rwp->waiters)
res= EBUSY; /* Can't get lock */
else
{
res=0;
rwp->state++;
}
pthread_mutex_unlock(&rwp->lock);
return(res);
} | O3 | c | my_rw_tryrdlock:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
callq 0x28570
movl 0x88(%rbx), %eax
movl $0x10, %r14d
testl %eax, %eax
js 0x61611
cmpl $0x0, 0x8c(%rbx)
jne 0x61611
incl %eax
movl %eax, 0x88(%rbx)
xorl %r14d, %r14d
movq %rbx, %rdi
callq 0x28280
movl %r14d, %eax
popq %rbx
popq %r14
popq %rbp
retq
| my_rw_tryrdlock:
push rbp
mov rbp, rsp
push r14
push rbx
mov rbx, rdi
call _pthread_mutex_lock
mov eax, [rbx+88h]
mov r14d, 10h
test eax, eax
js short loc_61611
cmp dword ptr [rbx+8Ch], 0
jnz short loc_61611
inc eax
mov [rbx+88h], eax
xor r14d, r14d
loc_61611:
mov rdi, rbx
call _pthread_mutex_unlock
mov eax, r14d
pop rbx
pop r14
pop rbp
retn
| long long my_rw_tryrdlock(long long a1)
{
int v1; // eax
unsigned int v2; // r14d
pthread_mutex_lock(a1);
v1 = *(_DWORD *)(a1 + 136);
v2 = 16;
if ( v1 >= 0 && !*(_DWORD *)(a1 + 140) )
{
*(_DWORD *)(a1 + 136) = v1 + 1;
v2 = 0;
}
pthread_mutex_unlock(a1);
return v2;
}
| my_rw_tryrdlock:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV RBX,RDI
CALL 0x00128570
MOV EAX,dword ptr [RBX + 0x88]
MOV R14D,0x10
TEST EAX,EAX
JS 0x00161611
CMP dword ptr [RBX + 0x8c],0x0
JNZ 0x00161611
INC EAX
MOV dword ptr [RBX + 0x88],EAX
XOR R14D,R14D
LAB_00161611:
MOV RDI,RBX
CALL 0x00128280
MOV EAX,R14D
POP RBX
POP R14
POP RBP
RET
|
int8 my_rw_tryrdlock(pthread_mutex_t *param_1)
{
int8 uVar1;
pthread_mutex_lock(param_1);
uVar1 = 0x10;
if ((-1 < *(int *)((long)param_1 + 0x88)) && (*(int *)((long)param_1 + 0x8c) == 0)) {
*(int *)((long)param_1 + 0x88) = *(int *)((long)param_1 + 0x88) + 1;
uVar1 = 0;
}
pthread_mutex_unlock(param_1);
return uVar1;
}
| |
44,306 | js_map_iterator_mark | bluesky950520[P]quickjs/quickjs.c | static void js_map_iterator_mark(JSRuntime *rt, JSValue val,
JS_MarkFunc *mark_func)
{
JSObject *p = JS_VALUE_GET_OBJ(val);
JSMapIteratorData *it;
it = p->u.map_iterator_data;
if (it) {
/* the record is already marked by the object */
JS_MarkValue(rt, it->obj, mark_func);
}
} | O0 | c | js_map_iterator_mark:
subq $0x38, %rsp
movq %rsi, 0x28(%rsp)
movq %rdx, 0x30(%rsp)
movq %rdi, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
je 0x620e3
movq 0x20(%rsp), %rdi
movq 0x8(%rsp), %rax
movq 0x18(%rsp), %rcx
movq (%rax), %rsi
movq 0x8(%rax), %rdx
callq 0x30ed0
addq $0x38, %rsp
retq
nopl (%rax,%rax)
| js_map_iterator_mark:
sub rsp, 38h
mov [rsp+38h+var_10], rsi
mov [rsp+38h+var_8], rdx
mov [rsp+38h+var_18], rdi
mov [rsp+38h+var_20], rcx
mov rax, [rsp+38h+var_10]
mov [rsp+38h+var_28], rax
mov rax, [rsp+38h+var_28]
mov rax, [rax+30h]
mov [rsp+38h+var_30], rax
cmp [rsp+38h+var_30], 0
jz short loc_620E3
mov rdi, [rsp+38h+var_18]
mov rax, [rsp+38h+var_30]
mov rcx, [rsp+38h+var_20]
mov rsi, [rax]
mov rdx, [rax+8]
call JS_MarkValue
loc_620E3:
add rsp, 38h
retn
| long long * js_map_iterator_mark(
long long a1,
long long a2,
long long a3,
long long ( *a4)(long long, long long))
{
long long *result; // rax
result = *(long long **)(a2 + 48);
if ( result )
return (long long *)JS_MarkValue(a1, *result, result[1], a4);
return result;
}
| js_map_iterator_mark:
SUB RSP,0x38
MOV qword ptr [RSP + 0x28],RSI
MOV qword ptr [RSP + 0x30],RDX
MOV qword ptr [RSP + 0x20],RDI
MOV qword ptr [RSP + 0x18],RCX
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RAX + 0x30]
MOV qword ptr [RSP + 0x8],RAX
CMP qword ptr [RSP + 0x8],0x0
JZ 0x001620e3
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x8]
MOV RCX,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
CALL 0x00130ed0
LAB_001620e3:
ADD RSP,0x38
RET
|
void js_map_iterator_mark(int8 param_1,long param_2,int8 param_3,int8 param_4)
{
int8 *puVar1;
puVar1 = *(int8 **)(param_2 + 0x30);
if (puVar1 != (int8 *)0x0) {
JS_MarkValue(param_1,*puVar1,puVar1[1],param_4);
}
return;
}
| |
44,307 | my_numcells_cp932 | eloqsql/strings/ctype-cp932.c | static
size_t my_numcells_cp932(CHARSET_INFO *cs __attribute__((unused)),
const char *str, const char *str_end)
{
size_t clen= 0;
const uchar *b= (const uchar *) str;
const uchar *e= (const uchar *) str_end;
for (clen= 0; b < e; )
{
if (*b >= 0xA1 && *b <= 0xDF)
{
clen++;
b++;
}
else if (*b > 0x7F)
{
clen+= 2;
b+= 2;
}
else
{
clen++;
b++;
}
}
return clen;
} | O3 | c | my_numcells_cp932:
cmpq %rdx, %rsi
jae 0x52d6f
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
movl $0x1, %ecx
movb (%rsi), %dil
leal 0x5f(%rdi), %r8d
shrb $0x7, %dil
movzbl %dil, %edi
incq %rdi
cmpb $0x3f, %r8b
cmovbq %rcx, %rdi
addq %rdi, %rax
addq %rdi, %rsi
cmpq %rdx, %rsi
jb 0x52d48
popq %rbp
retq
xorl %eax, %eax
retq
| my_numcells_cp932:
cmp rsi, rdx
jnb short loc_52D6F
push rbp
mov rbp, rsp
xor eax, eax
mov ecx, 1
loc_52D48:
mov dil, [rsi]
lea r8d, [rdi+5Fh]
shr dil, 7
movzx edi, dil
inc rdi
cmp r8b, 3Fh ; '?'
cmovb rdi, rcx
add rax, rdi
add rsi, rdi
cmp rsi, rdx
jb short loc_52D48
pop rbp
retn
loc_52D6F:
xor eax, eax
retn
| long long my_numcells_cp932(long long a1, _BYTE *a2, unsigned long long a3)
{
long long result; // rax
long long v4; // rdi
if ( (unsigned long long)a2 >= a3 )
return 0LL;
result = 0LL;
do
{
v4 = (*a2 >> 7) + 1LL;
if ( (unsigned __int8)(*a2 + 95) < 0x3Fu )
v4 = 1LL;
result += v4;
a2 += v4;
}
while ( (unsigned long long)a2 < a3 );
return result;
}
| my_numcells_cp932:
CMP RSI,RDX
JNC 0x00152d6f
PUSH RBP
MOV RBP,RSP
XOR EAX,EAX
MOV ECX,0x1
LAB_00152d48:
MOV DIL,byte ptr [RSI]
LEA R8D,[RDI + 0x5f]
SHR DIL,0x7
MOVZX EDI,DIL
INC RDI
CMP R8B,0x3f
CMOVC RDI,RCX
ADD RAX,RDI
ADD RSI,RDI
CMP RSI,RDX
JC 0x00152d48
POP RBP
RET
LAB_00152d6f:
XOR EAX,EAX
RET
|
long my_numcells_cp932(int8 param_1,byte *param_2,byte *param_3)
{
long lVar1;
long lVar2;
if (param_2 < param_3) {
lVar1 = 0;
do {
lVar2 = (ulong)(*param_2 >> 7) + 1;
if ((byte)(*param_2 + 0x5f) < 0x3f) {
lVar2 = 1;
}
lVar1 = lVar1 + lVar2;
param_2 = param_2 + lVar2;
} while (param_2 < param_3);
return lVar1;
}
return 0;
}
| |
44,308 | nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::next_byte_in_range(std::initializer_list<int>) | monkey531[P]llama/common/json.hpp | bool next_byte_in_range(std::initializer_list<char_int_type> ranges)
{
JSON_ASSERT(ranges.size() == 2 || ranges.size() == 4 || ranges.size() == 6);
add(current);
for (auto range = ranges.begin(); range != ranges.end(); ++range)
{
get();
if (JSON_HEDLEY_LIKELY(*range <= current && current <= *(++range))) // NOLINT(bugprone-inc-dec-in-conditions)
{
add(current);
}
else
{
error_message = "invalid string: ill-formed UTF-8 byte";
return false;
}
}
return true;
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>::next_byte_in_range(std::initializer_list<int>):
pushq %rbx
subq $0x10, %rsp
cmpq $0x6, %rdx
ja 0x595fb
movl $0x54, %eax
btq %rdx, %rax
jae 0x595fb
leaq 0xf(%rsp), %rbx
movq %rbx, %rcx
callq 0x1b42c
movb (%rbx), %al
andb $0x1, %al
addq $0x10, %rsp
popq %rbx
retq
leaq 0x91851(%rip), %rdi # 0xeae53
leaq 0x8bcb2(%rip), %rdx # 0xe52bb
leaq 0x92595(%rip), %rcx # 0xebba5
movl $0x1da8, %esi # imm = 0x1DA8
xorl %eax, %eax
callq 0x1ae80
| _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18next_byte_in_rangeESt16initializer_listIiE:
push rbx
sub rsp, 10h
cmp rdx, 6
ja short loc_595FB
mov eax, 54h ; 'T'
bt rax, rdx
jnb short loc_595FB
lea rbx, [rsp+18h+var_9]
mov rcx, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE18next_byte_in_rangeESt16initializer_listIiE_cold_1; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::next_byte_in_range(std::initializer_list<int>) [clone]
mov al, [rbx]
and al, 1
add rsp, 10h
pop rbx
retn
loc_595FB:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aRangesSize2Ran; "ranges.size() == 2 || ranges.size() == "...
mov esi, 1DA8h
xor eax, eax
call _ggml_abort
| char nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::next_byte_in_range(
__m128i *a1,
__int32 *a2,
unsigned long long a3)
{
long long v3; // rax
long long v5; // rdx
long long v6; // rcx
char v7[9]; // [rsp+Fh] [rbp-9h] BYREF
if ( a3 <= 6 && (v3 = 84LL, _bittest64(&v3, a3)) )
{
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::next_byte_in_range(
a1,
a2,
a3,
v7);
return v7[0] & 1;
}
else
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7592LL,
"GGML_ASSERT(%s) failed",
"ranges.size() == 2 || ranges.size() == 4 || ranges.size() == 6");
return nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::json_sax_dom_callback_parser(
"/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",
7592LL,
v5,
v6);
}
}
| next_byte_in_range:
PUSH RBX
SUB RSP,0x10
CMP RDX,0x6
JA 0x001595fb
MOV EAX,0x54
BT RAX,RDX
JNC 0x001595fb
LEA RBX,[RSP + 0xf]
MOV RCX,RBX
CALL 0x0011b42c
MOV AL,byte ptr [RBX]
AND AL,0x1
ADD RSP,0x10
POP RBX
RET
LAB_001595fb:
LEA RDI,[0x1eae53]
LEA RDX,[0x1e52bb]
LEA RCX,[0x1ebba5]
MOV ESI,0x1da8
XOR EAX,EAX
CALL 0x0011ae80
|
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >::next_byte_in_range(std::initializer_list<int>) */
ulong nlohmann::json_abi_v3_11_3::detail::
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::next_byte_in_range(int8 param_1,int8 param_2,ulong param_3)
{
int8 uVar1;
int1 local_9;
if ((param_3 < 7) && ((0x54UL >> (param_3 & 0x3f) & 1) != 0)) {
uVar1 = next_byte_in_range();
return CONCAT71((int7)((ulong)uVar1 >> 8),local_9) & 0xffffffffffffff01;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1da8,
"GGML_ASSERT(%s) failed",
"ranges.size() == 2 || ranges.size() == 4 || ranges.size() == 6");
}
| |
44,309 | ma_bitmap_reset_full_page_bits | eloqsql/storage/maria/ma_bitmap.c | my_bool _ma_bitmap_reset_full_page_bits(MARIA_HA *info,
MARIA_FILE_BITMAP *bitmap,
pgcache_page_no_t page,
uint page_count)
{
ulonglong bitmap_page;
uint offset, bit_start, bit_count, tmp, byte_offset;
uchar *data;
DBUG_ENTER("_ma_bitmap_reset_full_page_bits");
DBUG_PRINT("enter", ("page: %lu page_count: %u", (ulong) page, page_count));
mysql_mutex_assert_owner(&info->s->bitmap.bitmap_lock);
bitmap_page= page - page % bitmap->pages_covered;
DBUG_ASSERT(page != bitmap_page);
if (bitmap_page != bitmap->page &&
_ma_change_bitmap_page(info, bitmap, bitmap_page))
DBUG_RETURN(1);
/* Find page number from start of bitmap */
offset= (uint) (page - bitmap->page - 1);
/* Clear bits from 'page * 3' -> '(page + page_count) * 3' */
bit_start= offset * 3;
bit_count= page_count * 3;
byte_offset= bit_start/8;
data= bitmap->map + byte_offset;
offset= bit_start & 7;
tmp= (255 << offset); /* Bits to keep */
if (bit_count + offset < 8)
{
/* Only clear bits between 'offset' and 'offset+bit_count-1' */
tmp^= (255 << (offset + bit_count));
}
*data&= ~tmp;
set_if_smaller(bitmap->full_head_size, byte_offset);
set_if_smaller(bitmap->full_tail_size, byte_offset);
if ((int) (bit_count-= (8 - offset)) > 0)
{
uint fill;
data++;
/*
-1 is here to avoid one 'if' statement and to let the following code
handle the last byte
*/
if ((fill= (bit_count - 1) / 8))
{
bzero(data, fill);
data+= fill;
}
bit_count-= fill * 8; /* Bits left to clear */
tmp= (1 << bit_count) - 1;
*data&= ~tmp;
}
set_if_smaller(info->s->state.first_bitmap_with_space, bitmap_page);
bitmap->changed= 1;
DBUG_EXECUTE("bitmap", _ma_print_bitmap_changes(bitmap););
DBUG_RETURN(0);
} | O0 | c | ma_bitmap_reset_full_page_bits:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
jmp 0x621d9
jmp 0x621db
jmp 0x621dd
movq -0x20(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x20(%rbp), %rax
movq -0x18(%rbp), %rcx
xorl %edx, %edx
divq 0x138(%rcx)
movq -0x60(%rbp), %rax
subq %rdx, %rax
movq %rax, -0x30(%rbp)
jmp 0x62203
movq -0x30(%rbp), %rax
movq -0x18(%rbp), %rcx
cmpq 0x10(%rcx), %rax
je 0x62235
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x30(%rbp), %rdx
callq 0x61f00
movsbl %al, %eax
cmpl $0x0, %eax
je 0x62235
jmp 0x6222c
movb $0x1, -0x1(%rbp)
jmp 0x623a3
movq -0x20(%rbp), %rax
movq -0x18(%rbp), %rcx
subq 0x10(%rcx), %rax
subq $0x1, %rax
movl %eax, -0x34(%rbp)
imull $0x3, -0x34(%rbp), %eax
movl %eax, -0x38(%rbp)
imull $0x3, -0x24(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x38(%rbp), %eax
shrl $0x3, %eax
movl %eax, -0x44(%rbp)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movl -0x44(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movl -0x38(%rbp), %eax
andl $0x7, %eax
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %ecx
movl $0xff, %eax
shll %cl, %eax
movl %eax, -0x40(%rbp)
movl -0x3c(%rbp), %eax
addl -0x34(%rbp), %eax
cmpl $0x8, %eax
jae 0x622a5
movl -0x34(%rbp), %ecx
addl -0x3c(%rbp), %ecx
movl $0xff, %eax
shll %cl, %eax
xorl -0x40(%rbp), %eax
movl %eax, -0x40(%rbp)
movl -0x40(%rbp), %edx
xorl $-0x1, %edx
movq -0x50(%rbp), %rax
movzbl (%rax), %ecx
andl %edx, %ecx
movb %cl, (%rax)
movq -0x18(%rbp), %rax
movl 0x28(%rax), %eax
cmpl -0x44(%rbp), %eax
jbe 0x622cc
movl -0x44(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x28(%rax)
jmp 0x622ce
jmp 0x622d0
movq -0x18(%rbp), %rax
movl 0x2c(%rax), %eax
cmpl -0x44(%rbp), %eax
jbe 0x622e6
movl -0x44(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x2c(%rax)
jmp 0x622e8
movl $0x8, %ecx
subl -0x34(%rbp), %ecx
movl -0x3c(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x3c(%rbp)
cmpl $0x0, %eax
jle 0x62369
movq -0x50(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x50(%rbp)
movl -0x3c(%rbp), %eax
subl $0x1, %eax
shrl $0x3, %eax
movl %eax, -0x54(%rbp)
cmpl $0x0, %eax
je 0x6233a
movq -0x50(%rbp), %rdi
movl -0x54(%rbp), %eax
movl %eax, %edx
xorl %esi, %esi
callq 0x2a2a0
movl -0x54(%rbp), %ecx
movq -0x50(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x50(%rbp)
movl -0x54(%rbp), %ecx
shll $0x3, %ecx
movl -0x3c(%rbp), %eax
subl %ecx, %eax
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %ecx
movl $0x1, %eax
shll %cl, %eax
subl $0x1, %eax
movl %eax, -0x40(%rbp)
movl -0x40(%rbp), %edx
xorl $-0x1, %edx
movq -0x50(%rbp), %rax
movzbl (%rax), %ecx
andl %edx, %ecx
movb %cl, (%rax)
jmp 0x6236b
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0xd0(%rax), %rax
cmpq -0x30(%rbp), %rax
jbe 0x62391
movq -0x30(%rbp), %rcx
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rcx, 0xd0(%rax)
jmp 0x62393
movq -0x18(%rbp), %rax
movb $0x1, 0x20(%rax)
jmp 0x6239d
jmp 0x6239f
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x60, %rsp
popq %rbp
retq
nopl (%rax)
| _ma_bitmap_reset_full_page_bits:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_24], ecx
jmp short $+2
loc_621D9:
jmp short $+2
loc_621DB:
jmp short $+2
loc_621DD:
mov rax, [rbp+var_20]
mov [rbp+var_60], rax
mov rax, [rbp+var_20]
mov rcx, [rbp+var_18]
xor edx, edx
div qword ptr [rcx+138h]
mov rax, [rbp+var_60]
sub rax, rdx
mov [rbp+var_30], rax
jmp short $+2
loc_62203:
mov rax, [rbp+var_30]
mov rcx, [rbp+var_18]
cmp rax, [rcx+10h]
jz short loc_62235
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_30]
call _ma_change_bitmap_page
movsx eax, al
cmp eax, 0
jz short loc_62235
jmp short $+2
loc_6222C:
mov [rbp+var_1], 1
jmp loc_623A3
loc_62235:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_18]
sub rax, [rcx+10h]
sub rax, 1
mov [rbp+var_34], eax
imul eax, [rbp+var_34], 3
mov [rbp+var_38], eax
imul eax, [rbp+var_24], 3
mov [rbp+var_3C], eax
mov eax, [rbp+var_38]
shr eax, 3
mov [rbp+var_44], eax
mov rax, [rbp+var_18]
mov rax, [rax+8]
mov ecx, [rbp+var_44]
add rax, rcx
mov [rbp+var_50], rax
mov eax, [rbp+var_38]
and eax, 7
mov [rbp+var_34], eax
mov ecx, [rbp+var_34]
mov eax, 0FFh
shl eax, cl
mov [rbp+var_40], eax
mov eax, [rbp+var_3C]
add eax, [rbp+var_34]
cmp eax, 8
jnb short loc_622A5
mov ecx, [rbp+var_34]
add ecx, [rbp+var_3C]
mov eax, 0FFh
shl eax, cl
xor eax, [rbp+var_40]
mov [rbp+var_40], eax
loc_622A5:
mov edx, [rbp+var_40]
xor edx, 0FFFFFFFFh
mov rax, [rbp+var_50]
movzx ecx, byte ptr [rax]
and ecx, edx
mov [rax], cl
mov rax, [rbp+var_18]
mov eax, [rax+28h]
cmp eax, [rbp+var_44]
jbe short loc_622CC
mov ecx, [rbp+var_44]
mov rax, [rbp+var_18]
mov [rax+28h], ecx
loc_622CC:
jmp short $+2
loc_622CE:
jmp short $+2
loc_622D0:
mov rax, [rbp+var_18]
mov eax, [rax+2Ch]
cmp eax, [rbp+var_44]
jbe short loc_622E6
mov ecx, [rbp+var_44]
mov rax, [rbp+var_18]
mov [rax+2Ch], ecx
loc_622E6:
jmp short $+2
loc_622E8:
mov ecx, 8
sub ecx, [rbp+var_34]
mov eax, [rbp+var_3C]
sub eax, ecx
mov [rbp+var_3C], eax
cmp eax, 0
jle short loc_62369
mov rax, [rbp+var_50]
add rax, 1
mov [rbp+var_50], rax
mov eax, [rbp+var_3C]
sub eax, 1
shr eax, 3
mov [rbp+var_54], eax
cmp eax, 0
jz short loc_6233A
mov rdi, [rbp+var_50]
mov eax, [rbp+var_54]
mov edx, eax
xor esi, esi
call _memset
mov ecx, [rbp+var_54]
mov rax, [rbp+var_50]
mov ecx, ecx
add rax, rcx
mov [rbp+var_50], rax
loc_6233A:
mov ecx, [rbp+var_54]
shl ecx, 3
mov eax, [rbp+var_3C]
sub eax, ecx
mov [rbp+var_3C], eax
mov ecx, [rbp+var_3C]
mov eax, 1
shl eax, cl
sub eax, 1
mov [rbp+var_40], eax
mov edx, [rbp+var_40]
xor edx, 0FFFFFFFFh
mov rax, [rbp+var_50]
movzx ecx, byte ptr [rax]
and ecx, edx
mov [rax], cl
loc_62369:
jmp short $+2
loc_6236B:
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+0D0h]
cmp rax, [rbp+var_30]
jbe short loc_62391
mov rcx, [rbp+var_30]
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rax+0D0h], rcx
loc_62391:
jmp short $+2
loc_62393:
mov rax, [rbp+var_18]
mov byte ptr [rax+20h], 1
jmp short $+2
loc_6239D:
jmp short $+2
loc_6239F:
mov [rbp+var_1], 0
loc_623A3:
mov al, [rbp+var_1]
add rsp, 60h
pop rbp
retn
| char ma_bitmap_reset_full_page_bits(long long *a1, long long a2, unsigned long long a3, int a4)
{
unsigned int v5; // [rsp+Ch] [rbp-54h]
_BYTE *v6; // [rsp+10h] [rbp-50h]
_BYTE *v7; // [rsp+10h] [rbp-50h]
unsigned int v8; // [rsp+1Ch] [rbp-44h]
int v9; // [rsp+20h] [rbp-40h]
int v10; // [rsp+24h] [rbp-3Ch]
int v11; // [rsp+24h] [rbp-3Ch]
int v12; // [rsp+2Ch] [rbp-34h]
int v13; // [rsp+2Ch] [rbp-34h]
unsigned long long v14; // [rsp+30h] [rbp-30h]
int v16; // [rsp+40h] [rbp-20h]
v16 = a3;
v14 = a3 - a3 % *(_QWORD *)(a2 + 312);
if ( v14 != *(_QWORD *)(a2 + 16) && ma_change_bitmap_page(a1, a2, v14) )
return 1;
v12 = v16 - *(_DWORD *)(a2 + 16) - 1;
v10 = 3 * a4;
v8 = (unsigned int)(3 * v12) >> 3;
v6 = (_BYTE *)(v8 + *(_QWORD *)(a2 + 8));
v13 = (3 * (_BYTE)v12) & 7;
v9 = 255 << v13;
if ( (unsigned int)(v13 + 3 * a4) < 8 )
v9 ^= 255 << (v10 + v13);
*v6 &= ~(_BYTE)v9;
if ( *(_DWORD *)(a2 + 40) > v8 )
*(_DWORD *)(a2 + 40) = v8;
if ( *(_DWORD *)(a2 + 44) > v8 )
*(_DWORD *)(a2 + 44) = v8;
v11 = v10 - (8 - v13);
if ( v11 > 0 )
{
v7 = v6 + 1;
v5 = (unsigned int)(v11 - 1) >> 3;
if ( v5 )
{
memset(v7, 0LL, v5);
v7 += v5;
}
*v7 &= ~((1 << (v11 - 8 * v5)) - 1);
}
if ( *(_QWORD *)(*a1 + 208) > v14 )
*(_QWORD *)(*a1 + 208) = v14;
*(_BYTE *)(a2 + 32) = 1;
return 0;
}
| _ma_bitmap_reset_full_page_bits:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV dword ptr [RBP + -0x24],ECX
JMP 0x001621d9
LAB_001621d9:
JMP 0x001621db
LAB_001621db:
JMP 0x001621dd
LAB_001621dd:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x18]
XOR EDX,EDX
DIV qword ptr [RCX + 0x138]
MOV RAX,qword ptr [RBP + -0x60]
SUB RAX,RDX
MOV qword ptr [RBP + -0x30],RAX
JMP 0x00162203
LAB_00162203:
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RCX + 0x10]
JZ 0x00162235
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x30]
CALL 0x00161f00
MOVSX EAX,AL
CMP EAX,0x0
JZ 0x00162235
JMP 0x0016222c
LAB_0016222c:
MOV byte ptr [RBP + -0x1],0x1
JMP 0x001623a3
LAB_00162235:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x18]
SUB RAX,qword ptr [RCX + 0x10]
SUB RAX,0x1
MOV dword ptr [RBP + -0x34],EAX
IMUL EAX,dword ptr [RBP + -0x34],0x3
MOV dword ptr [RBP + -0x38],EAX
IMUL EAX,dword ptr [RBP + -0x24],0x3
MOV dword ptr [RBP + -0x3c],EAX
MOV EAX,dword ptr [RBP + -0x38]
SHR EAX,0x3
MOV dword ptr [RBP + -0x44],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV ECX,dword ptr [RBP + -0x44]
ADD RAX,RCX
MOV qword ptr [RBP + -0x50],RAX
MOV EAX,dword ptr [RBP + -0x38]
AND EAX,0x7
MOV dword ptr [RBP + -0x34],EAX
MOV ECX,dword ptr [RBP + -0x34]
MOV EAX,0xff
SHL EAX,CL
MOV dword ptr [RBP + -0x40],EAX
MOV EAX,dword ptr [RBP + -0x3c]
ADD EAX,dword ptr [RBP + -0x34]
CMP EAX,0x8
JNC 0x001622a5
MOV ECX,dword ptr [RBP + -0x34]
ADD ECX,dword ptr [RBP + -0x3c]
MOV EAX,0xff
SHL EAX,CL
XOR EAX,dword ptr [RBP + -0x40]
MOV dword ptr [RBP + -0x40],EAX
LAB_001622a5:
MOV EDX,dword ptr [RBP + -0x40]
XOR EDX,0xffffffff
MOV RAX,qword ptr [RBP + -0x50]
MOVZX ECX,byte ptr [RAX]
AND ECX,EDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x28]
CMP EAX,dword ptr [RBP + -0x44]
JBE 0x001622cc
MOV ECX,dword ptr [RBP + -0x44]
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x28],ECX
LAB_001622cc:
JMP 0x001622ce
LAB_001622ce:
JMP 0x001622d0
LAB_001622d0:
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x2c]
CMP EAX,dword ptr [RBP + -0x44]
JBE 0x001622e6
MOV ECX,dword ptr [RBP + -0x44]
MOV RAX,qword ptr [RBP + -0x18]
MOV dword ptr [RAX + 0x2c],ECX
LAB_001622e6:
JMP 0x001622e8
LAB_001622e8:
MOV ECX,0x8
SUB ECX,dword ptr [RBP + -0x34]
MOV EAX,dword ptr [RBP + -0x3c]
SUB EAX,ECX
MOV dword ptr [RBP + -0x3c],EAX
CMP EAX,0x0
JLE 0x00162369
MOV RAX,qword ptr [RBP + -0x50]
ADD RAX,0x1
MOV qword ptr [RBP + -0x50],RAX
MOV EAX,dword ptr [RBP + -0x3c]
SUB EAX,0x1
SHR EAX,0x3
MOV dword ptr [RBP + -0x54],EAX
CMP EAX,0x0
JZ 0x0016233a
MOV RDI,qword ptr [RBP + -0x50]
MOV EAX,dword ptr [RBP + -0x54]
MOV EDX,EAX
XOR ESI,ESI
CALL 0x0012a2a0
MOV ECX,dword ptr [RBP + -0x54]
MOV RAX,qword ptr [RBP + -0x50]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x50],RAX
LAB_0016233a:
MOV ECX,dword ptr [RBP + -0x54]
SHL ECX,0x3
MOV EAX,dword ptr [RBP + -0x3c]
SUB EAX,ECX
MOV dword ptr [RBP + -0x3c],EAX
MOV ECX,dword ptr [RBP + -0x3c]
MOV EAX,0x1
SHL EAX,CL
SUB EAX,0x1
MOV dword ptr [RBP + -0x40],EAX
MOV EDX,dword ptr [RBP + -0x40]
XOR EDX,0xffffffff
MOV RAX,qword ptr [RBP + -0x50]
MOVZX ECX,byte ptr [RAX]
AND ECX,EDX
MOV byte ptr [RAX],CL
LAB_00162369:
JMP 0x0016236b
LAB_0016236b:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0xd0]
CMP RAX,qword ptr [RBP + -0x30]
JBE 0x00162391
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX + 0xd0],RCX
LAB_00162391:
JMP 0x00162393
LAB_00162393:
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX + 0x20],0x1
JMP 0x0016239d
LAB_0016239d:
JMP 0x0016239f
LAB_0016239f:
MOV byte ptr [RBP + -0x1],0x0
LAB_001623a3:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x60
POP RBP
RET
|
int1 _ma_bitmap_reset_full_page_bits(long *param_1,long param_2,ulong param_3,int param_4)
{
char cVar1;
uint uVar2;
uint uVar3;
ulong uVar4;
byte *local_58;
byte local_48;
uVar4 = param_3 - param_3 % *(ulong *)(param_2 + 0x138);
if ((uVar4 != *(ulong *)(param_2 + 0x10)) &&
(cVar1 = _ma_change_bitmap_page(param_1,param_2,uVar4), cVar1 != '\0')) {
return 1;
}
uVar2 = (((int)param_3 - (int)*(int8 *)(param_2 + 0x10)) + -1) * 3;
param_4 = param_4 * 3;
uVar3 = uVar2 >> 3;
local_58 = (byte *)(*(long *)(param_2 + 8) + (ulong)uVar3);
uVar2 = uVar2 & 7;
local_48 = (byte)(0xff << (sbyte)uVar2);
if (param_4 + uVar2 < 8) {
local_48 = (byte)(0xff << ((sbyte)uVar2 + (char)param_4 & 0x1fU)) ^ local_48;
}
*local_58 = *local_58 & (local_48 ^ 0xff);
if (uVar3 < *(uint *)(param_2 + 0x28)) {
*(uint *)(param_2 + 0x28) = uVar3;
}
if (uVar3 < *(uint *)(param_2 + 0x2c)) {
*(uint *)(param_2 + 0x2c) = uVar3;
}
param_4 = param_4 - (8 - uVar2);
if (0 < param_4) {
local_58 = local_58 + 1;
uVar3 = param_4 - 1U >> 3;
if (uVar3 != 0) {
memset(local_58,0,(ulong)uVar3);
local_58 = local_58 + uVar3;
}
*local_58 = *local_58 & ((char)(1 << ((char)param_4 + (char)uVar3 * -8 & 0x1fU)) - 1U ^ 0xff);
}
if (uVar4 < *(ulong *)(*param_1 + 0xd0)) {
*(ulong *)(*param_1 + 0xd0) = uVar4;
}
*(int1 *)(param_2 + 0x20) = 1;
return 0;
}
| |
44,310 | get_charset_by_name | eloqsql/mysys/charset.c | CHARSET_INFO *get_charset_by_name(const char *cs_name, myf flags)
{
MY_CHARSET_LOADER loader;
my_charset_loader_init_mysys(&loader);
return my_collation_get_by_name(&loader, cs_name, flags);
} | O3 | c | get_charset_by_name:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rsi, %rdx
movq %rdi, %rsi
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
leaq -0xb8(%rbp), %rdi
movb $0x0, (%rdi)
leaq -0x10d0(%rip), %rax # 0x4b5da
movq %rax, 0x80(%rdi)
leaq -0x10cf(%rip), %rax # 0x4b5e9
movq %rax, 0x88(%rdi)
leaq -0x10c2(%rip), %rax # 0x4b604
movq %rax, 0x90(%rdi)
leaq -0x3e12(%rip), %rax # 0x488c2
movq %rax, 0x98(%rdi)
leaq 0x2d0806(%rip), %rax # 0x31cee8
movq (%rax), %rax
movq %rax, 0xa0(%rdi)
leaq -0x10d1(%rip), %rax # 0x4b622
movq %rax, 0xa8(%rdi)
callq 0x4c554
movq %fs:0x28, %rcx
cmpq -0x8(%rbp), %rcx
jne 0x4c717
addq $0xc0, %rsp
popq %rbp
retq
callq 0x263a0
| get_charset_by_name:
push rbp
mov rbp, rsp
sub rsp, 0C0h
mov rdx, rsi
mov rsi, rdi
mov rax, fs:28h
mov [rbp+var_8], rax
lea rdi, [rbp+var_B8]
mov byte ptr [rdi], 0
lea rax, my_once_alloc_c
mov [rdi+80h], rax
lea rax, my_malloc_c
mov [rdi+88h], rax
lea rax, my_realloc_c
mov [rdi+90h], rax
lea rax, my_free
mov [rdi+98h], rax
lea rax, my_charset_error_reporter
mov rax, [rax]
mov [rdi+0A0h], rax
lea rax, add_collation
mov [rdi+0A8h], rax
call my_collation_get_by_name
mov rcx, fs:28h
cmp rcx, [rbp+var_8]
jnz short loc_4C717
add rsp, 0C0h
pop rbp
retn
loc_4C717:
call ___stack_chk_fail
| long long get_charset_by_name(long long a1, long long a2)
{
_BYTE v3[128]; // [rsp+8h] [rbp-B8h] BYREF
long long ( *v4)(long long); // [rsp+88h] [rbp-38h]
long long ( *v5)(unsigned long long); // [rsp+90h] [rbp-30h]
long long ( *v6)(long long, unsigned long long); // [rsp+98h] [rbp-28h]
long long ( *v7)(long long); // [rsp+A0h] [rbp-20h]
long long ( *v8)(); // [rsp+A8h] [rbp-18h]
long long ( *v9)(unsigned int *); // [rsp+B0h] [rbp-10h]
unsigned long long v10; // [rsp+B8h] [rbp-8h]
v10 = __readfsqword(0x28u);
v3[0] = 0;
v4 = my_once_alloc_c;
v5 = my_malloc_c;
v6 = my_realloc_c;
v7 = my_free;
v8 = my_charset_error_reporter;
v9 = add_collation;
return my_collation_get_by_name((long long)v3, a1, a2);
}
| get_charset_by_name:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xc0
MOV RDX,RSI
MOV RSI,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
LEA RDI,[RBP + -0xb8]
MOV byte ptr [RDI],0x0
LEA RAX,[0x14b5da]
MOV qword ptr [RDI + 0x80],RAX
LEA RAX,[0x14b5e9]
MOV qword ptr [RDI + 0x88],RAX
LEA RAX,[0x14b604]
MOV qword ptr [RDI + 0x90],RAX
LEA RAX,[0x1488c2]
MOV qword ptr [RDI + 0x98],RAX
LEA RAX,[0x41cee8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RDI + 0xa0],RAX
LEA RAX,[0x14b622]
MOV qword ptr [RDI + 0xa8],RAX
CALL 0x0014c554
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x8]
JNZ 0x0014c717
ADD RSP,0xc0
POP RBP
RET
LAB_0014c717:
CALL 0x001263a0
|
void get_charset_by_name(int8 param_1,int8 param_2)
{
long in_FS_OFFSET;
int1 local_c0 [128];
code *local_40;
code *local_38;
code *local_30;
code *local_28;
int *local_20;
code *local_18;
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_c0[0] = 0;
local_40 = my_once_alloc_c;
local_38 = my_malloc_c;
local_30 = my_realloc_c;
local_28 = my_free;
local_20 = my_charset_error_reporter;
local_18 = add_collation;
my_collation_get_by_name(local_c0,param_1,param_2);
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
44,311 | nlohmann::json_abi_v3_11_3::ordered_map<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, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<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, minja::Value>>>::emplace(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&, minja::Value&&) | monkey531[P]llama/common/json.hpp | std::pair<iterator, bool> emplace(const key_type& key, T&& t)
{
for (auto it = this->begin(); it != this->end(); ++it)
{
if (m_compare(it->first, key))
{
return {it, false};
}
}
Container::emplace_back(key, std::forward<T>(t));
return {std::prev(this->end()), true};
} | O0 | cpp | nlohmann::json_abi_v3_11_3::ordered_map<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, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<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, minja::Value>>>::emplace(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&, minja::Value&&):
subq $0x68, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movq 0x50(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x1117b0
movq %rax, 0x38(%rsp)
movq 0x8(%rsp), %rdi
callq 0x111820
movq %rax, 0x30(%rsp)
leaq 0x38(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x1117e0
testb $0x1, %al
jne 0x12534b
jmp 0x1253a2
movq 0x8(%rsp), %rax
addq $0x18, %rax
movq %rax, (%rsp)
leaq 0x38(%rsp), %rdi
callq 0x111850
movq (%rsp), %rdi
movq %rax, %rsi
movq 0x48(%rsp), %rdx
callq 0x125400
testb $0x1, %al
jne 0x125379
jmp 0x125394
movb $0x0, 0x2f(%rsp)
leaq 0x58(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x2f(%rsp), %rdx
callq 0x11e160
jmp 0x1253f2
jmp 0x125396
leaq 0x38(%rsp), %rdi
callq 0x111ba0
jmp 0x125327
movq 0x8(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq 0x125430
movq 0x8(%rsp), %rdi
callq 0x111820
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
movl $0x1, %esi
callq 0x11e220
movq %rax, 0x20(%rsp)
movb $0x1, 0x17(%rsp)
leaq 0x58(%rsp), %rdi
leaq 0x20(%rsp), %rsi
leaq 0x17(%rsp), %rdx
callq 0x11e260
movq 0x58(%rsp), %rax
movb 0x60(%rsp), %dl
addq $0x68, %rsp
retq
| _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceERSJ_OSF_:
sub rsp, 68h
mov [rsp+68h+var_18], rdi
mov [rsp+68h+var_20], rsi
mov [rsp+68h+var_28], rdx
mov rdi, [rsp+68h+var_18]
mov [rsp+68h+var_60], rdi
call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE5beginEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>::begin(void)
mov [rsp+68h+var_30], rax
loc_125327:
mov rdi, [rsp+68h+var_60]
call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE3endEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>::end(void)
mov [rsp+68h+var_38], rax
lea rdi, [rsp+68h+var_30]
lea rsi, [rsp+68h+var_38]
call _ZN9__gnu_cxxneIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEEbRKNS_17__normal_iteratorIT_T0_EEST_; __gnu_cxx::operator!=<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>>(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>> const&,__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>> const&)
test al, 1
jnz short loc_12534B
jmp short loc_1253A2
loc_12534B:
mov rax, [rsp+68h+var_60]
add rax, 18h
mov [rsp+68h+var_68], rax
lea rdi, [rsp+68h+var_30]
call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEptEv; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>>::operator->(void)
mov rdi, [rsp+68h+var_68]
mov rsi, rax
mov rdx, [rsp+68h+var_20]
call _ZNKSt8equal_toIvEclIRKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEESI_EEDTeqclsr3stdE7forwardIT_Efp_Eclsr3stdE7forwardIT0_Efp0_EEOSJ_OSK_
test al, 1
jnz short loc_125379
jmp short loc_125394
loc_125379:
mov [rsp+68h+var_39], 0
lea rdi, [rsp+68h+var_10]
lea rsi, [rsp+68h+var_30]
lea rdx, [rsp+68h+var_39]
call _ZNSt4pairIN9__gnu_cxx17__normal_iteratorIPS_IKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEEbEC2IRSO_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIST_SU_EEEbE4typeELb1EEEOST_OSU_
jmp short loc_1253F2
loc_125394:
jmp short $+2
loc_125396:
lea rdi, [rsp+68h+var_30]
call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>>::operator++(void)
jmp short loc_125327
loc_1253A2:
mov rdi, [rsp+68h+var_60]
mov rsi, [rsp+68h+var_20]
mov rdx, [rsp+68h+var_28]
call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE12emplace_backIJRSF_SH_EEERSI_DpOT_; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>::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> const&,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> const&,minja::Value &&)
mov rdi, [rsp+68h+var_60]
call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE3endEv; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>::end(void)
mov [rsp+68h+var_50], rax
mov rdi, [rsp+68h+var_50]
mov esi, 1
call _ZSt4prevIN9__gnu_cxx17__normal_iteratorIPSt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS4_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS4_14adl_serializerES7_IhSaIhEEvEEN5minja5ValueEES7_ISL_SaISL_EEEEET_SQ_NSt15iterator_traitsISQ_E15difference_typeE; std::prev<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>>>(__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>>,std::iterator_traits<__gnu_cxx::__normal_iterator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value> *,std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>>>::difference_type)
mov [rsp+68h+var_48], rax
mov [rsp+68h+var_51], 1
lea rdi, [rsp+68h+var_10]
lea rsi, [rsp+68h+var_48]
lea rdx, [rsp+68h+var_51]
call _ZNSt4pairIN9__gnu_cxx17__normal_iteratorIPS_IKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEEbEC2ISO_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISS_ST_EEEbE4typeELb1EEEOSS_OST_
loc_1253F2:
mov rax, [rsp+68h+var_10]
mov dl, [rsp+68h+var_8]
add rsp, 68h
retn
| long long nlohmann::json_abi_v3_11_3::ordered_map<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>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<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,minja::Value>>>::emplace(
long long a1,
long long a2,
long long a3)
{
long long v3; // rax
char v5; // [rsp+17h] [rbp-51h] BYREF
long long v6; // [rsp+18h] [rbp-50h]
long long v7; // [rsp+20h] [rbp-48h] BYREF
char v8; // [rsp+2Fh] [rbp-39h] BYREF
long long v9; // [rsp+30h] [rbp-38h] BYREF
long long i; // [rsp+38h] [rbp-30h] BYREF
long long v11; // [rsp+40h] [rbp-28h]
long long v12; // [rsp+48h] [rbp-20h]
long long v13; // [rsp+50h] [rbp-18h]
long long v14; // [rsp+58h] [rbp-10h] BYREF
v13 = a1;
v12 = a2;
v11 = a3;
for ( i = std::vector<std::pair<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,minja::Value>>::begin(a1);
;
__gnu_cxx::__normal_iterator<std::pair<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,minja::Value> *,std::vector<std::pair<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,minja::Value>>>::operator++(&i) )
{
v9 = std::vector<std::pair<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,minja::Value>>::end(a1);
if ( !__gnu_cxx::operator!=<std::pair<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,minja::Value> *,std::vector<std::pair<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,minja::Value>>>(
(long long)&i,
(long long)&v9) )
break;
v3 = __gnu_cxx::__normal_iterator<std::pair<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,minja::Value> *,std::vector<std::pair<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,minja::Value>>>::operator->((long long)&i);
if ( (std::equal_to<void>::operator()<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&,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 + 24,
v3,
v12) & 1) != 0 )
{
v8 = 0;
ZNSt4pairIN9__gnu_cxx17__normal_iteratorIPS_IKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEEbEC2IRSO_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairIST_SU_EEEbE4typeELb1EEEOST_OSU_(
(long long)&v14,
&i,
&v8);
return v14;
}
}
std::vector<std::pair<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,minja::Value>>::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> const&,minja::Value>(
a1,
v12,
v11);
v6 = std::vector<std::pair<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,minja::Value>>::end(a1);
v7 = std::prev<__gnu_cxx::__normal_iterator<std::pair<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,minja::Value> *,std::vector<std::pair<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,minja::Value>>>>(
v6,
1LL);
v5 = 1;
ZNSt4pairIN9__gnu_cxx17__normal_iteratorIPS_IKN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEEN5minja5ValueEES6_ISK_SaISK_EEEEbEC2ISO_bTnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISS_ST_EEEbE4typeELb1EEEOSS_OST_(
(long long)&v14,
&v7,
&v5);
return v14;
}
| |||
44,312 | nlohmann::json_abi_v3_11_3::ordered_map<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, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<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, minja::Value>>>::emplace(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&, minja::Value&&) | monkey531[P]llama/common/json.hpp | std::pair<iterator, bool> emplace(const key_type& key, T&& t)
{
for (auto it = this->begin(); it != this->end(); ++it)
{
if (m_compare(it->first, key))
{
return {it, false};
}
}
Container::emplace_back(key, std::forward<T>(t));
return {std::prev(this->end()), true};
} | O2 | cpp | nlohmann::json_abi_v3_11_3::ordered_map<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, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<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, minja::Value>>>::emplace(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&, minja::Value&&):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movq (%rdi), %rbx
cmpq 0x8(%r14), %rbx
je 0x69193
movq %rbx, %rdi
movq %r12, %rsi
callq 0x67688
testb %al, %al
jne 0x691ad
addq $0x60, %rbx
jmp 0x69178
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x691be
movq 0x8(%r14), %rbx
addq $-0x60, %rbx
movb $0x1, %dl
jmp 0x691af
xorl %edx, %edx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| _ZN8nlohmann16json_abi_v3_11_311ordered_mapINS0_10basic_jsonIS1_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEEN5minja5ValueESt4lessISD_ESaISt4pairIKSD_SF_EEE7emplaceERSJ_OSF_:
push r15
push r14
push r12
push rbx
push rax
mov r15, rdx
mov r12, rsi
mov r14, rdi
mov rbx, [rdi]
loc_69178:
cmp rbx, [r14+8]
jz short loc_69193
mov rdi, rbx
mov rsi, r12
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
jnz short loc_691AD
add rbx, 60h ; '`'
jmp short loc_69178
loc_69193:
mov rdi, r14
mov rsi, r12
mov rdx, r15
call _ZNSt6vectorISt4pairIKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES_IhSaIhEEvEEN5minja5ValueEESaISI_EE12emplace_backIJRSF_SH_EEERSI_DpOT_; std::vector<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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,minja::Value>>::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> const&,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> const&,minja::Value &&)
mov rbx, [r14+8]
add rbx, 0FFFFFFFFFFFFFFA0h
mov dl, 1
jmp short loc_691AF
loc_691AD:
xor edx, edx
loc_691AF:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| long long nlohmann::json_abi_v3_11_3::ordered_map<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>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<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,minja::Value>>>::emplace(
unsigned __int8 **a1,
unsigned __int8 *a2,
long long a3,
__m128d a4)
{
unsigned __int8 *i; // rbx
for ( i = *a1; i != a1[1]; i += 96 )
{
if ( nlohmann::json_abi_v3_11_3::operator==(i, a2, a4) )
return (long long)i;
}
std::vector<std::pair<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,minja::Value>>::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> const&,minja::Value>(
a1,
a2,
a3);
return (long long)(a1[1] - 96);
}
| emplace:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,RDX
MOV R12,RSI
MOV R14,RDI
MOV RBX,qword ptr [RDI]
LAB_00169178:
CMP RBX,qword ptr [R14 + 0x8]
JZ 0x00169193
MOV RDI,RBX
MOV RSI,R12
CALL 0x00167688
TEST AL,AL
JNZ 0x001691ad
ADD RBX,0x60
JMP 0x00169178
LAB_00169193:
MOV RDI,R14
MOV RSI,R12
MOV RDX,R15
CALL 0x001691be
MOV RBX,qword ptr [R14 + 0x8]
ADD RBX,-0x60
MOV DL,0x1
JMP 0x001691af
LAB_001691ad:
XOR EDX,EDX
LAB_001691af:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* nlohmann::json_abi_v3_11_3::ordered_map<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,
std::less<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<std::pair<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, minja::Value> >
>::emplace(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&, minja::Value&&) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::
ordered_map<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,std::less<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<std::pair<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,minja::Value>>>
::emplace(ordered_map<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,std::less<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<std::pair<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,minja::Value>>>
*this,basic_json *param_1,Value *param_2)
{
char cVar1;
int8 extraout_RDX;
int8 uVar2;
basic_json *pbVar3;
int1 auVar4 [16];
pbVar3 = *(basic_json **)this;
do {
if (pbVar3 == *(basic_json **)(this + 8)) {
std::
vector<std::pair<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,minja::Value>,std::allocator<std::pair<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,minja::Value>>>
::
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>const&,minja::Value>
((vector<std::pair<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,minja::Value>,std::allocator<std::pair<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,minja::Value>>>
*)this,param_1,param_2);
pbVar3 = (basic_json *)(*(long *)(this + 8) + -0x60);
uVar2 = CONCAT71((int7)((ulong)extraout_RDX >> 8),1);
LAB_001691af:
auVar4._8_8_ = uVar2;
auVar4._0_8_ = pbVar3;
return auVar4;
}
cVar1 = json_abi_v3_11_3::operator==(pbVar3,param_1);
if (cVar1 != '\0') {
uVar2 = 0;
goto LAB_001691af;
}
pbVar3 = pbVar3 + 0x60;
} while( true );
}
| |
44,313 | nlohmann::json_abi_v3_11_3::ordered_map<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, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<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, minja::Value>>>::emplace(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&, minja::Value&&) | monkey531[P]llama/common/json.hpp | std::pair<iterator, bool> emplace(const key_type& key, T&& t)
{
for (auto it = this->begin(); it != this->end(); ++it)
{
if (m_compare(it->first, key))
{
return {it, false};
}
}
Container::emplace_back(key, std::forward<T>(t));
return {std::prev(this->end()), true};
} | O3 | cpp | nlohmann::json_abi_v3_11_3::ordered_map<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, std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>, std::allocator<std::pair<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, minja::Value>>>::emplace(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&, minja::Value&&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, (%rsp)
movq %rsi, %r12
movq %rdi, %r14
movq (%rdi), %rbx
movq 0x8(%rdi), %r15
cmpq %r15, %rbx
je 0x5e5f8
movq (%r12), %r13
movq 0x8(%r12), %rbp
cmpq %rbp, 0x8(%rbx)
jne 0x5e5ef
testq %rbp, %rbp
je 0x5e613
movq (%rbx), %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq 0x1a8d0
testl %eax, %eax
je 0x5e613
addq $0x30, %rbx
cmpq %r15, %rbx
jne 0x5e5d2
movq %r14, %rdi
movq %r12, %rsi
movq (%rsp), %rdx
callq 0x5e628
movq 0x8(%r14), %rbx
addq $-0x30, %rbx
movb $0x1, %dl
jmp 0x5e615
xorl %edx, %edx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
| _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE7emplaceERSH_OSD_:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov [rsp+38h+var_38], rdx
mov r12, rsi
mov r14, rdi
mov rbx, [rdi]
mov r15, [rdi+8]
cmp rbx, r15
jz short loc_5E5F8
mov r13, [r12]
mov rbp, [r12+8]
loc_5E5D2:
cmp [rbx+8], rbp
jnz short loc_5E5EF
test rbp, rbp
jz short loc_5E613
mov rdi, [rbx]
mov rsi, r13
mov rdx, rbp
call _bcmp
test eax, eax
jz short loc_5E613
loc_5E5EF:
add rbx, 30h ; '0'
cmp rbx, r15
jnz short loc_5E5D2
loc_5E5F8:
mov rdi, r14
mov rsi, r12
mov rdx, [rsp+38h+var_38]
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE12emplace_backIJRS7_SF_EEERSG_DpOT_; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::emplace_back<std::string const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>(std::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> &&)
mov rbx, [r14+8]
add rbx, 0FFFFFFFFFFFFFFD0h
mov dl, 1
jmp short loc_5E615
loc_5E613:
xor edx, edx
loc_5E615:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::emplace(
_QWORD *a1,
long long *a2,
long long a3)
{
_QWORD *v3; // rbx
_QWORD *v4; // r15
long long v5; // r13
long long v6; // rbp
v3 = (_QWORD *)*a1;
v4 = (_QWORD *)a1[1];
if ( (_QWORD *)*a1 == v4 )
{
LABEL_7:
std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::emplace_back<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>>(
a1,
a2,
a3);
return a1[1] - 48LL;
}
else
{
v5 = *a2;
v6 = a2[1];
while ( v3[1] != v6 || v6 && (unsigned int)bcmp(*v3, v5) )
{
v3 += 6;
if ( v3 == v4 )
goto LABEL_7;
}
}
return (long long)v3;
}
| emplace:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV qword ptr [RSP],RDX
MOV R12,RSI
MOV R14,RDI
MOV RBX,qword ptr [RDI]
MOV R15,qword ptr [RDI + 0x8]
CMP RBX,R15
JZ 0x0015e5f8
MOV R13,qword ptr [R12]
MOV RBP,qword ptr [R12 + 0x8]
LAB_0015e5d2:
CMP qword ptr [RBX + 0x8],RBP
JNZ 0x0015e5ef
TEST RBP,RBP
JZ 0x0015e613
MOV RDI,qword ptr [RBX]
MOV RSI,R13
MOV RDX,RBP
CALL 0x0011a8d0
TEST EAX,EAX
JZ 0x0015e613
LAB_0015e5ef:
ADD RBX,0x30
CMP RBX,R15
JNZ 0x0015e5d2
LAB_0015e5f8:
MOV RDI,R14
MOV RSI,R12
MOV RDX,qword ptr [RSP]
CALL 0x0015e628
MOV RBX,qword ptr [R14 + 0x8]
ADD RBX,-0x30
MOV DL,0x1
JMP 0x0015e615
LAB_0015e613:
XOR EDX,EDX
LAB_0015e615:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,
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::less<void>, std::allocator<std::pair<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> > > >::emplace(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>&&) */
int1 [16] __thiscall
nlohmann::json_abi_v3_11_3::
ordered_map<std::__cxx11::string,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::less<void>,std::allocator<std::pair<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>>>>
::emplace(ordered_map<std::__cxx11::string,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::less<void>,std::allocator<std::pair<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>>>>
*this,string *param_1,basic_json *param_2)
{
int8 *puVar1;
void *__s2;
size_t __n;
int iVar2;
int8 extraout_RDX;
int8 uVar3;
int8 *puVar4;
int1 auVar5 [16];
puVar4 = *(int8 **)this;
puVar1 = *(int8 **)(this + 8);
if (puVar4 != puVar1) {
__s2 = *(void **)param_1;
__n = *(size_t *)(param_1 + 8);
do {
if (puVar4[1] == __n) {
if (__n != 0) {
iVar2 = bcmp((void *)*puVar4,__s2,__n);
if (iVar2 != 0) goto LAB_0015e5ef;
}
uVar3 = 0;
goto LAB_0015e615;
}
LAB_0015e5ef:
puVar4 = puVar4 + 6;
} while (puVar4 != puVar1);
}
std::
vector<std::pair<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>>,std::allocator<std::pair<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>>>>
::
emplace_back<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>>
((vector<std::pair<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>>,std::allocator<std::pair<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>>>>
*)this,param_1,param_2);
puVar4 = (int8 *)(*(long *)(this + 8) + -0x30);
uVar3 = CONCAT71((int7)((ulong)extraout_RDX >> 8),1);
LAB_0015e615:
auVar5._8_8_ = uVar3;
auVar5._0_8_ = puVar4;
return auVar5;
}
| |
44,314 | print_aria_log_control | eloqsql/storage/maria/ma_control_file.c | my_bool print_aria_log_control()
{
uchar buffer[CF_MAX_SIZE];
char name[FN_REFLEN], uuid_str[MY_UUID_STRING_LENGTH+1];
const char *errmsg;
uint new_cf_create_time_size, new_cf_changeable_size;
my_off_t file_size;
ulong logno;
ulonglong trid,checkpoint_lsn;
int open_flags= O_BINARY | /*O_DIRECT |*/ O_RDWR | O_CLOEXEC;
int error= CONTROL_FILE_UNKNOWN_ERROR;
uint recovery_fails;
File file;
DBUG_ENTER("ma_control_file_open");
if (fn_format(name, CONTROL_FILE_BASE_NAME,
maria_data_root, "", MYF(MY_WME)) == NullS)
DBUG_RETURN(CONTROL_FILE_UNKNOWN_ERROR);
if ((file= mysql_file_open(key_file_control, name,
open_flags, MYF(MY_WME))) < 0)
{
errmsg= "Can't open file";
goto err;
}
file_size= mysql_file_seek(file, 0, SEEK_END, MYF(MY_WME));
if (file_size == MY_FILEPOS_ERROR)
{
errmsg= "Can't read size";
goto err;
}
if (file_size < CF_MIN_SIZE)
{
/*
Given that normally we write only a sector and it's atomic, the only
possibility for a file to be of too short size is if we crashed at the
very first startup, between file creation and file write. Quite unlikely
(and can be made even more unlikely by doing this: create a temp file,
write it, and then rename it to be the control file).
What's more likely is if someone forgot to restore the control file,
just did a "touch control" to try to get Maria to start, or if the
disk/filesystem has a problem.
So let's be rigid.
*/
error= CONTROL_FILE_TOO_SMALL;
errmsg= "Size of control file is smaller than expected";
goto err;
}
/* Check if control file is unexpectedly big */
if (file_size > CF_MAX_SIZE)
{
error= CONTROL_FILE_TOO_BIG;
errmsg= "File size bigger than expected";
goto err;
}
if (mysql_file_pread(file, buffer, (size_t)file_size, 0, MYF(MY_FNABP)))
{
errmsg= "Can't read file";
goto err;
}
if (memcmp(buffer + CF_MAGIC_STRING_OFFSET,
CF_MAGIC_STRING, CF_MAGIC_STRING_SIZE))
{
error= CONTROL_FILE_BAD_MAGIC_STRING;
errmsg= "Missing valid id at start of file. File is not a valid aria control file";
goto err;
}
printf("Aria file version: %u\n", buffer[CF_VERSION_OFFSET]);
new_cf_create_time_size= uint2korr(buffer + CF_CREATE_TIME_SIZE_OFFSET);
new_cf_changeable_size= uint2korr(buffer + CF_CHANGEABLE_SIZE_OFFSET);
if (new_cf_create_time_size < CF_MIN_CREATE_TIME_TOTAL_SIZE ||
new_cf_changeable_size < CF_MIN_CHANGEABLE_TOTAL_SIZE ||
new_cf_create_time_size + new_cf_changeable_size != file_size)
{
error= CONTROL_FILE_INCONSISTENT_INFORMATION;
errmsg= "Sizes stored in control file are inconsistent";
goto err;
}
checkpoint_lsn= lsn_korr(buffer + new_cf_create_time_size +
CF_LSN_OFFSET);
logno= uint4korr(buffer + new_cf_create_time_size + CF_FILENO_OFFSET);
my_uuid2str(buffer + CF_UUID_OFFSET, uuid_str);
uuid_str[MY_UUID_STRING_LENGTH]= 0;
printf("Block size: %u\n", uint2korr(buffer + CF_BLOCKSIZE_OFFSET));
printf("maria_uuid: %s\n", uuid_str);
printf("last_checkpoint_lsn: " LSN_FMT "\n", LSN_IN_PARTS(checkpoint_lsn));
printf("last_log_number: %lu\n", (ulong) logno);
if (new_cf_changeable_size >= (CF_MAX_TRID_OFFSET + CF_MAX_TRID_SIZE))
{
trid= transid_korr(buffer + new_cf_create_time_size + CF_MAX_TRID_OFFSET);
printf("trid: %llu\n", (ulonglong) trid);
}
if (new_cf_changeable_size >= (CF_RECOV_FAIL_OFFSET + CF_RECOV_FAIL_SIZE))
{
recovery_fails=
(buffer + new_cf_create_time_size + CF_RECOV_FAIL_OFFSET)[0];
printf("recovery_failures: %u\n", recovery_fails);
}
DBUG_RETURN(0);
err:
my_printf_error(HA_ERR_INITIALIZATION,
"Got error '%s' when trying to use aria control file "
"'%s'", 0, errmsg, name);
DBUG_RETURN(error);
} | O3 | c | print_aria_log_control:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x478, %rsp # imm = 0x478
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
leaq 0x39a866(%rip), %rax # 0x3ff8d0
movq (%rax), %rdx
leaq 0x7642c(%rip), %rsi # 0xdb4a0
leaq 0x7ce94(%rip), %rcx # 0xe1f0f
leaq -0x480(%rbp), %rdi
movl $0x10, %r8d
callq 0x976b8
testq %rax, %rax
je 0x65149
leaq 0x39a9f3(%rip), %rax # 0x3ffa90
movl (%rax), %esi
leaq 0x323fba(%rip), %r13 # 0x389060
movq (%r13), %rax
leaq -0x280(%rbp), %rdi
leaq -0x480(%rbp), %rcx
leaq -0x80(%rbp), %rbx
movl $0x2, %edx
movq %rbx, %r8
callq *0x148(%rax)
movq %rax, (%rbx)
testq %rax, %rax
jne 0x6539b
leaq -0x480(%rbp), %rdi
movl $0x10, %edx
movl $0x80002, %esi # imm = 0x80002
callq 0xa3058
movl %eax, %r15d
movb $0xb, %bl
testl %r15d, %r15d
js 0x65150
movq (%r13), %rax
leaq -0x280(%rbp), %rdi
movl %r15d, %esi
movl $0x8, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x653c0
movl $0x10, %ecx
movl %r15d, %edi
xorl %esi, %esi
movl $0x2, %edx
callq 0xa3954
movq %rax, %r14
cmpq $-0x1, %r14
je 0x6515c
cmpq $0x2d, %r14
jae 0x65168
leaq 0x76b73(%rip), %rcx # 0xdbcb5
movb $0x1, %bl
jmp 0x651e9
movb $0xb, %bl
jmp 0x65205
leaq 0x76b3e(%rip), %rcx # 0xdbc95
jmp 0x651e9
leaq 0x76b42(%rip), %rcx # 0xdbca5
jmp 0x651e9
cmpq $0x200, %r14 # imm = 0x200
jbe 0x6517c
leaq 0x76b6b(%rip), %rcx # 0xdbce3
movb $0x2, %bl
jmp 0x651e9
movq (%r13), %rax
leaq -0x80(%rbp), %rdi
movl %r15d, %esi
movl $0x6, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x653da
leaq -0x280(%rbp), %rsi
movl $0x2, %r8d
movl %r15d, %edi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0xa32d8
movq %rax, %r15
testq %r15, %r15
je 0x651c6
leaq 0x76b3e(%rip), %rcx # 0xdbd02
jmp 0x651e9
movl $0xfefe, %eax # imm = 0xFEFE
xorl -0x280(%rbp), %eax
movzbl -0x27e(%rbp), %ecx
xorl $0xc, %ecx
orw %ax, %cx
je 0x6522c
leaq 0x76b2f(%rip), %rcx # 0xdbd16
movb $0x3, %bl
leaq 0x76c7c(%rip), %rsi # 0xdbe6c
leaq -0x480(%rbp), %r8
movl $0xae, %edi
xorl %edx, %edx
xorl %eax, %eax
callq 0xa0fd5
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x65434
movl %ebx, %eax
addq $0x478, %rsp # imm = 0x478
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movzbl -0x27d(%rbp), %edx
leaq 0x76ce1(%rip), %rsi # 0xdbf1b
movl $0x1, %edi
xorl %eax, %eax
callq 0x297d0
movzwl -0x26c(%rbp), %r12d
leaq 0x76b48(%rip), %rcx # 0xdbd9d
movb $0x8, %bl
cmpq $0x1e, %r12
jb 0x651e9
movzwl -0x26a(%rbp), %r13d
cmpw $0xf, %r13w
jb 0x651e9
movq %r13, %rax
addq %r12, %rax
cmpq %rax, %r14
jne 0x651e9
movzwl -0x27c(%rbp,%r12), %eax
movzbl -0x27a(%rbp,%r12), %r15d
shll $0x10, %r15d
orl %eax, %r15d
movl -0x279(%rbp,%r12), %eax
movl %eax, -0x484(%rbp)
movl -0x275(%rbp,%r12), %eax
movq %rax, -0x490(%rbp)
leaq -0x27c(%rbp), %rbx
leaq -0x80(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xa9272
movb $0x0, 0x24(%r14)
movzwl 0x14(%rbx), %edx
leaq 0x76c59(%rip), %rsi # 0xdbf34
xorl %ebx, %ebx
movl $0x1, %edi
xorl %eax, %eax
callq 0x297d0
leaq 0x76c5d(%rip), %rsi # 0xdbf4d
movl $0x1, %edi
movq %r14, %rdx
xorl %eax, %eax
callq 0x297d0
leaq 0x76c60(%rip), %rsi # 0xdbf66
movl $0x1, %edi
movl %r15d, %edx
movl -0x484(%rbp), %ecx
xorl %eax, %eax
callq 0x297d0
leaq 0x76c64(%rip), %rsi # 0xdbf86
movl $0x1, %edi
movq -0x490(%rbp), %rdx
xorl %eax, %eax
callq 0x297d0
cmpw $0x15, %r13w
jb 0x65205
movl -0x271(%rbp,%r12), %eax
movzwl -0x26d(%rbp,%r12), %edx
shlq $0x20, %rdx
orq %rax, %rdx
leaq 0x76c41(%rip), %rsi # 0xdbfa0
xorl %ebx, %ebx
movl $0x1, %edi
xorl %eax, %eax
callq 0x297d0
cmpw $0x15, %r13w
je 0x65205
movzbl -0x26b(%rbp,%r12), %edx
leaq 0x76c33(%rip), %rsi # 0xdbfbb
xorl %ebx, %ebx
movl $0x1, %edi
xorl %eax, %eax
callq 0x297d0
jmp 0x65205
leaq -0x480(%rbp), %rsi
leaq -0x80(%rbp), %rdx
leaq -0x494(%rbp), %rbx
movq %rax, %rdi
movq %rbx, %rcx
callq 0x2acbf
movl (%rbx), %r15d
jmp 0x650ef
leaq -0x80(%rbp), %r14
movq %rax, %rdi
movl %r15d, %esi
movq %r14, %rdx
callq 0x2ad1b
movq (%r14), %r14
jmp 0x6512f
movq %rax, %r12
movq (%r13), %rax
leaq 0x76864(%rip), %rdx # 0xdbc4c
movq %r12, %rdi
movq %r14, %rsi
movl $0x2a6, %ecx # imm = 0x2A6
callq *0x210(%rax)
leaq -0x280(%rbp), %rsi
movl $0x2, %r8d
movl %r15d, %edi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0xa32d8
movq %rax, %r15
testq %rax, %rax
movl $0x0, %esi
cmoveq %r14, %rsi
movq (%r13), %rax
movq %r12, %rdi
callq *0x218(%rax)
jmp 0x651b8
callq 0x29240
nopl (%rax)
| print_aria_log_control:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 478h
mov rax, fs:28h
mov [rbp+var_30], rax
lea rax, maria_data_root
mov rdx, [rax]
lea rsi, aMariaLogContro+1; "aria_log_control"
lea rcx, asc_E1F0B+4; ""
lea rdi, [rbp+var_480]
mov r8d, 10h
call fn_format
test rax, rax
jz loc_65149
lea rax, key_file_control
mov esi, [rax]
lea r13, PSI_server
mov rax, [r13+0]
lea rdi, [rbp+var_280]
lea rcx, [rbp+var_480]
lea rbx, [rbp+var_80]
mov edx, 2
mov r8, rbx
call qword ptr [rax+148h]
mov [rbx], rax
test rax, rax
jnz loc_6539B
lea rdi, [rbp+var_480]
mov edx, 10h
mov esi, 80002h
call my_open
mov r15d, eax
loc_650EF:
mov bl, 0Bh
test r15d, r15d
js short loc_65150
mov rax, [r13+0]
lea rdi, [rbp+var_280]
mov esi, r15d
mov edx, 8
call qword ptr [rax+158h]
test rax, rax
jnz loc_653C0
mov ecx, 10h
mov edi, r15d
xor esi, esi
mov edx, 2
call my_seek
mov r14, rax
loc_6512F:
cmp r14, 0FFFFFFFFFFFFFFFFh
jz short loc_6515C
cmp r14, 2Dh ; '-'
jnb short loc_65168
lea rcx, aSizeOfControlF; "Size of control file is smaller than ex"...
mov bl, 1
jmp loc_651E9
loc_65149:
mov bl, 0Bh
jmp loc_65205
loc_65150:
lea rcx, aCanTOpenFile; "Can't open file"
jmp loc_651E9
loc_6515C:
lea rcx, aCanTReadSize; "Can't read size"
jmp loc_651E9
loc_65168:
cmp r14, 200h
jbe short loc_6517C
lea rcx, aFileSizeBigger; "File size bigger than expected"
mov bl, 2
jmp short loc_651E9
loc_6517C:
mov rax, [r13+0]
lea rdi, [rbp+var_80]
mov esi, r15d
mov edx, 6
call qword ptr [rax+158h]
test rax, rax
jnz loc_653DA
lea rsi, [rbp+var_280]
mov r8d, 2
mov edi, r15d
mov rdx, r14
xor ecx, ecx
call my_pread
mov r15, rax
loc_651B8:
test r15, r15
jz short loc_651C6
lea rcx, aCanTReadFile; "Can't read file"
jmp short loc_651E9
loc_651C6:
mov eax, 0FEFEh
xor eax, [rbp+var_280]
movzx ecx, byte ptr [rbp+var_280+2]
xor ecx, 0Ch
or cx, ax
jz short loc_6522C
lea rcx, aMissingValidId; "Missing valid id at start of file. File"...
mov bl, 3
loc_651E9:
lea rsi, aGotErrorSWhenT; "Got error '%s' when trying to use aria "...
lea r8, [rbp+var_480]
mov edi, 0AEh
xor edx, edx
xor eax, eax
call my_printf_error
loc_65205:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz loc_65434
mov eax, ebx
add rsp, 478h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_6522C:
movzx edx, byte ptr [rbp+var_280+3]
lea rsi, aAriaFileVersio; "Aria file version: %u\n"
mov edi, 1
xor eax, eax
call ___printf_chk
movzx r12d, [rbp+var_26C]
lea rcx, aSizesStoredInC; "Sizes stored in control file are incons"...
mov bl, 8
cmp r12, 1Eh
jb short loc_651E9
movzx r13d, [rbp+var_26A]
cmp r13w, 0Fh
jb loc_651E9
mov rax, r13
add rax, r12
cmp r14, rax
jnz loc_651E9
movzx eax, [rbp+r12+var_27C]
movzx r15d, [rbp+r12+var_27A]
shl r15d, 10h
or r15d, eax
mov eax, [rbp+r12+var_279]
mov [rbp+var_484], eax
mov eax, [rbp+r12+var_275]
mov [rbp+var_490], rax
lea rbx, [rbp+var_27C]
lea r14, [rbp+var_80]
mov rdi, rbx
mov rsi, r14
call my_uuid2str
mov byte ptr [r14+24h], 0
movzx edx, word ptr [rbx+14h]
lea rsi, aBlockSizeU; "Block size: %u\n"
xor ebx, ebx
mov edi, 1
xor eax, eax
call ___printf_chk
lea rsi, aMariaUuidS; "maria_uuid: %s\n"
mov edi, 1
mov rdx, r14
xor eax, eax
call ___printf_chk
lea rsi, aLastCheckpoint; "last_checkpoint_lsn: (%u,0x%x)\n"
mov edi, 1
mov edx, r15d
mov ecx, [rbp+var_484]
xor eax, eax
call ___printf_chk
lea rsi, aLastLogNumberL; "last_log_number: %lu\n"
mov edi, 1
mov rdx, [rbp+var_490]
xor eax, eax
call ___printf_chk
cmp r13w, 15h
jb loc_65205
mov eax, [rbp+r12+var_271]
movzx edx, word ptr [rbp+r12-26Dh]
shl rdx, 20h
or rdx, rax
lea rsi, aTridLlu; "trid: %llu\n"
xor ebx, ebx
mov edi, 1
xor eax, eax
call ___printf_chk
cmp r13w, 15h
jz loc_65205
movzx edx, byte ptr [rbp+r12+var_26C+1]
lea rsi, aRecoveryFailur; "recovery_failures: %u\n"
xor ebx, ebx
mov edi, 1
xor eax, eax
call ___printf_chk
jmp loc_65205
loc_6539B:
lea rsi, [rbp+var_480]
lea rdx, [rbp+var_80]
lea rbx, [rbp+var_494]
mov rdi, rax
mov rcx, rbx
call print_aria_log_control_cold_1
mov r15d, [rbx]
jmp loc_650EF
loc_653C0:
lea r14, [rbp+var_80]
mov rdi, rax
mov esi, r15d
mov rdx, r14
call print_aria_log_control_cold_2
mov r14, [r14]
jmp loc_6512F
loc_653DA:
mov r12, rax
mov rax, [r13+0]
lea rdx, aWorkspaceLlm4b_9; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, r12
mov rsi, r14
mov ecx, 2A6h
call qword ptr [rax+210h]
lea rsi, [rbp+var_280]
mov r8d, 2
mov edi, r15d
mov rdx, r14
xor ecx, ecx
call my_pread
mov r15, rax
test rax, rax
mov esi, 0
cmovz rsi, r14
mov rax, [r13+0]
mov rdi, r12
call qword ptr [rax+218h]
jmp loc_651B8
loc_65434:
call ___stack_chk_fail
| long long print_aria_log_control()
{
unsigned int *v0; // rbx
long long v1; // rax
int v2; // r9d
unsigned int v3; // r15d
long long v4; // rax
unsigned long long v5; // r14
const char *v6; // rcx
long long v7; // rax
long long v8; // r15
long long v10; // rdx
long long v11; // r12
unsigned __int16 v12; // r13
int v13; // r15d
long long v14; // r12
unsigned long long v15; // rsi
unsigned int v16; // [rsp+Ch] [rbp-494h] BYREF
long long v17; // [rsp+10h] [rbp-490h]
int v18; // [rsp+1Ch] [rbp-484h]
_BYTE v19[512]; // [rsp+20h] [rbp-480h] BYREF
unsigned __int16 v20; // [rsp+220h] [rbp-280h] BYREF
unsigned __int8 v21; // [rsp+222h] [rbp-27Eh]
unsigned __int8 v22; // [rsp+223h] [rbp-27Dh]
_WORD v23[8]; // [rsp+224h] [rbp-27Ch] BYREF
unsigned __int16 v24; // [rsp+234h] [rbp-26Ch]
unsigned __int16 v25; // [rsp+236h] [rbp-26Ah]
unsigned __int16 v26; // [rsp+238h] [rbp-268h]
_QWORD v27[4]; // [rsp+420h] [rbp-80h] BYREF
char v28; // [rsp+444h] [rbp-5Ch]
unsigned long long v29; // [rsp+470h] [rbp-30h]
v29 = __readfsqword(0x28u);
if ( fn_format(v19, "aria_log_control", maria_data_root, "", 16LL) )
{
v0 = (unsigned int *)v27;
v1 = ((long long ( *)(unsigned __int16 *, _QWORD, long long, _BYTE *, _QWORD *))PSI_server[41])(
&v20,
key_file_control,
2LL,
v19,
v27);
v27[0] = v1;
if ( v1 )
{
v0 = &v16;
print_aria_log_control_cold_1(v1, (long long)v19, v27, &v16);
v3 = v16;
}
else
{
v3 = my_open(v19, 524290LL, 16LL);
}
LOBYTE(v0) = 11;
if ( (v3 & 0x80000000) != 0 )
{
v6 = "Can't open file";
goto LABEL_21;
}
v4 = ((long long ( *)(unsigned __int16 *, _QWORD, long long))PSI_server[43])(&v20, v3, 8LL);
if ( v4 )
{
print_aria_log_control_cold_2(v4, v3, v27);
v5 = v27[0];
}
else
{
v5 = my_seek(v3, 0LL, 2LL, 16LL);
}
if ( v5 == -1LL )
{
v6 = "Can't read size";
goto LABEL_21;
}
if ( v5 < 0x2D )
{
v6 = "Size of control file is smaller than expected";
LOBYTE(v0) = 1;
LABEL_21:
my_printf_error(
174,
(unsigned int)"Got error '%s' when trying to use aria control file '%s'",
0,
(_DWORD)v6,
(unsigned int)v19,
v2);
return (unsigned int)v0;
}
if ( v5 > 0x200 )
{
v6 = "File size bigger than expected";
LOBYTE(v0) = 2;
goto LABEL_21;
}
v7 = ((long long ( *)(_QWORD *, _QWORD, long long))PSI_server[43])(v27, v3, 6LL);
if ( v7 )
{
v14 = v7;
((void ( *)(long long, unsigned long long, const char *, long long))PSI_server[66])(
v7,
v5,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_control_file.c",
678LL);
v8 = my_pread(v3, &v20, v5, 0LL, 2LL);
v15 = 0LL;
if ( !v8 )
v15 = v5;
((void ( *)(long long, unsigned long long))PSI_server[67])(v14, v15);
}
else
{
v8 = my_pread(v3, &v20, v5, 0LL, 2LL);
}
if ( v8 )
{
v6 = "Can't read file";
goto LABEL_21;
}
if ( v20 ^ 0xFEFE | v21 ^ 0xC )
{
v6 = "Missing valid id at start of file. File is not a valid aria control file";
LOBYTE(v0) = 3;
goto LABEL_21;
}
__printf_chk(1LL, "Aria file version: %u\n", v22);
v11 = v24;
v6 = "Sizes stored in control file are inconsistent";
LOBYTE(v0) = 8;
if ( v24 < 0x1EuLL )
goto LABEL_21;
v12 = v25;
if ( v25 < 0xFu || v5 != v24 + (unsigned long long)v25 )
goto LABEL_21;
v13 = *(unsigned __int16 *)((char *)v23 + v24) | (*((unsigned __int8 *)&v23[1] + v24) << 16);
v18 = *(_DWORD *)((char *)&v23[1] + v24 + 1);
v17 = *(unsigned int *)((char *)&v23[3] + v24 + 1);
my_uuid2str(v23, v27, v10, "Sizes stored in control file are inconsistent");
v28 = 0;
LODWORD(v0) = 0;
__printf_chk(1LL, "Block size: %u\n", v26);
__printf_chk(1LL, "maria_uuid: %s\n", (const char *)v27);
__printf_chk(1LL, "last_checkpoint_lsn: (%u,0x%x)\n", v13, v18);
__printf_chk(1LL, "last_log_number: %lu\n", v17);
if ( v12 >= 0x15u )
{
LODWORD(v0) = 0;
__printf_chk(
1LL,
"trid: %llu\n",
*(unsigned int *)((char *)&v23[5] + v11 + 1) | ((unsigned long long)*(unsigned __int16 *)((char *)&v23[7] + v11 + 1) << 32));
if ( v12 != 21 )
{
LODWORD(v0) = 0;
__printf_chk(1LL, "recovery_failures: %u\n", *((unsigned __int8 *)&v24 + v11 + 1));
}
}
}
else
{
LOBYTE(v0) = 11;
}
return (unsigned int)v0;
}
| print_aria_log_control:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x478
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
LEA RAX,[0x4ff8d0]
MOV RDX,qword ptr [RAX]
LEA RSI,[0x1db4a0]
LEA RCX,[0x1e1f0f]
LEA RDI,[RBP + -0x480]
MOV R8D,0x10
CALL 0x001976b8
TEST RAX,RAX
JZ 0x00165149
LEA RAX,[0x4ffa90]
MOV ESI,dword ptr [RAX]
LEA R13,[0x489060]
MOV RAX,qword ptr [R13]
LEA RDI,[RBP + -0x280]
LEA RCX,[RBP + -0x480]
LEA RBX,[RBP + -0x80]
MOV EDX,0x2
MOV R8,RBX
CALL qword ptr [RAX + 0x148]
MOV qword ptr [RBX],RAX
TEST RAX,RAX
JNZ 0x0016539b
LEA RDI,[RBP + -0x480]
MOV EDX,0x10
MOV ESI,0x80002
CALL 0x001a3058
MOV R15D,EAX
LAB_001650ef:
MOV BL,0xb
TEST R15D,R15D
JS 0x00165150
MOV RAX,qword ptr [R13]
LEA RDI,[RBP + -0x280]
MOV ESI,R15D
MOV EDX,0x8
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x001653c0
MOV ECX,0x10
MOV EDI,R15D
XOR ESI,ESI
MOV EDX,0x2
CALL 0x001a3954
MOV R14,RAX
LAB_0016512f:
CMP R14,-0x1
JZ 0x0016515c
CMP R14,0x2d
JNC 0x00165168
LEA RCX,[0x1dbcb5]
MOV BL,0x1
JMP 0x001651e9
LAB_00165149:
MOV BL,0xb
JMP 0x00165205
LAB_00165150:
LEA RCX,[0x1dbc95]
JMP 0x001651e9
LAB_0016515c:
LEA RCX,[0x1dbca5]
JMP 0x001651e9
LAB_00165168:
CMP R14,0x200
JBE 0x0016517c
LEA RCX,[0x1dbce3]
MOV BL,0x2
JMP 0x001651e9
LAB_0016517c:
MOV RAX,qword ptr [R13]
LEA RDI,[RBP + -0x80]
MOV ESI,R15D
MOV EDX,0x6
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x001653da
LEA RSI,[RBP + -0x280]
MOV R8D,0x2
MOV EDI,R15D
MOV RDX,R14
XOR ECX,ECX
CALL 0x001a32d8
MOV R15,RAX
LAB_001651b8:
TEST R15,R15
JZ 0x001651c6
LEA RCX,[0x1dbd02]
JMP 0x001651e9
LAB_001651c6:
MOV EAX,0xfefe
XOR EAX,dword ptr [RBP + -0x280]
MOVZX ECX,byte ptr [RBP + -0x27e]
XOR ECX,0xc
OR CX,AX
JZ 0x0016522c
LEA RCX,[0x1dbd16]
MOV BL,0x3
LAB_001651e9:
LEA RSI,[0x1dbe6c]
LEA R8,[RBP + -0x480]
MOV EDI,0xae
XOR EDX,EDX
XOR EAX,EAX
CALL 0x001a0fd5
LAB_00165205:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x00165434
MOV EAX,EBX
ADD RSP,0x478
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0016522c:
MOVZX EDX,byte ptr [RBP + -0x27d]
LEA RSI,[0x1dbf1b]
MOV EDI,0x1
XOR EAX,EAX
CALL 0x001297d0
MOVZX R12D,word ptr [RBP + -0x26c]
LEA RCX,[0x1dbd9d]
MOV BL,0x8
CMP R12,0x1e
JC 0x001651e9
MOVZX R13D,word ptr [RBP + -0x26a]
CMP R13W,0xf
JC 0x001651e9
MOV RAX,R13
ADD RAX,R12
CMP R14,RAX
JNZ 0x001651e9
MOVZX EAX,word ptr [RBP + R12*0x1 + -0x27c]
MOVZX R15D,byte ptr [RBP + R12*0x1 + -0x27a]
SHL R15D,0x10
OR R15D,EAX
MOV EAX,dword ptr [RBP + R12*0x1 + -0x279]
MOV dword ptr [RBP + -0x484],EAX
MOV EAX,dword ptr [RBP + R12*0x1 + -0x275]
MOV qword ptr [RBP + -0x490],RAX
LEA RBX,[RBP + -0x27c]
LEA R14,[RBP + -0x80]
MOV RDI,RBX
MOV RSI,R14
CALL 0x001a9272
MOV byte ptr [R14 + 0x24],0x0
MOVZX EDX,word ptr [RBX + 0x14]
LEA RSI,[0x1dbf34]
XOR EBX,EBX
MOV EDI,0x1
XOR EAX,EAX
CALL 0x001297d0
LEA RSI,[0x1dbf4d]
MOV EDI,0x1
MOV RDX,R14
XOR EAX,EAX
CALL 0x001297d0
LEA RSI,[0x1dbf66]
MOV EDI,0x1
MOV EDX,R15D
MOV ECX,dword ptr [RBP + -0x484]
XOR EAX,EAX
CALL 0x001297d0
LEA RSI,[0x1dbf86]
MOV EDI,0x1
MOV RDX,qword ptr [RBP + -0x490]
XOR EAX,EAX
CALL 0x001297d0
CMP R13W,0x15
JC 0x00165205
MOV EAX,dword ptr [RBP + R12*0x1 + -0x271]
MOVZX EDX,word ptr [RBP + R12*0x1 + -0x26d]
SHL RDX,0x20
OR RDX,RAX
LEA RSI,[0x1dbfa0]
XOR EBX,EBX
MOV EDI,0x1
XOR EAX,EAX
CALL 0x001297d0
CMP R13W,0x15
JZ 0x00165205
MOVZX EDX,byte ptr [RBP + R12*0x1 + -0x26b]
LEA RSI,[0x1dbfbb]
XOR EBX,EBX
MOV EDI,0x1
XOR EAX,EAX
CALL 0x001297d0
JMP 0x00165205
LAB_0016539b:
LEA RSI,[RBP + -0x480]
LEA RDX,[RBP + -0x80]
LEA RBX,[RBP + -0x494]
MOV RDI,RAX
MOV RCX,RBX
CALL 0x0012acbf
MOV R15D,dword ptr [RBX]
JMP 0x001650ef
LAB_001653c0:
LEA R14,[RBP + -0x80]
MOV RDI,RAX
MOV ESI,R15D
MOV RDX,R14
CALL 0x0012ad1b
MOV R14,qword ptr [R14]
JMP 0x0016512f
LAB_001653da:
MOV R12,RAX
MOV RAX,qword ptr [R13]
LEA RDX,[0x1dbc4c]
MOV RDI,R12
MOV RSI,R14
MOV ECX,0x2a6
CALL qword ptr [RAX + 0x210]
LEA RSI,[RBP + -0x280]
MOV R8D,0x2
MOV EDI,R15D
MOV RDX,R14
XOR ECX,ECX
CALL 0x001a32d8
MOV R15,RAX
TEST RAX,RAX
MOV ESI,0x0
CMOVZ RSI,R14
MOV RAX,qword ptr [R13]
MOV RDI,R12
CALL qword ptr [RAX + 0x218]
JMP 0x001651b8
LAB_00165434:
CALL 0x00129240
|
ulong print_aria_log_control(void)
{
int1 uVar1;
int2 uVar2;
int iVar3;
long lVar4;
ulong uVar5;
long lVar6;
char *pcVar7;
int8 extraout_RDX;
int8 unaff_RBX;
ulong uVar8;
ulong uVar11;
long in_FS_OFFSET;
int local_49c;
ulong local_498;
int4 local_48c;
int1 local_488 [512];
int1 local_288 [2];
char cStack_286;
int1 uStack_285;
int2 local_284;
int1 uStack_282;
uint auStack_281 [3];
int1 auStack_275 [2];
int1 uStack_273;
ushort local_272;
int2 local_270;
ulong local_88 [4];
int1 local_64;
long local_38;
ulong *puVar9;
int7 uVar10;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
lVar4 = fn_format(local_488,"aria_log_control",maria_data_root,&DAT_001e1f0f,0x10);
if (lVar4 == 0) {
uVar8 = CONCAT71((int7)((ulong)unaff_RBX >> 8),0xb);
}
else {
puVar9 = local_88;
local_88[0] = (**(code **)(PSI_server + 0x148))(local_288,key_file_control,2,local_488,puVar9);
if (local_88[0] == 0) {
iVar3 = my_open(local_488,0x80002,0x10);
}
else {
puVar9 = (ulong *)&local_49c;
print_aria_log_control_cold_1(local_88[0],local_488,local_88,puVar9);
iVar3 = local_49c;
}
uVar10 = (int7)((ulong)puVar9 >> 8);
uVar8 = CONCAT71(uVar10,0xb);
if (iVar3 < 0) {
pcVar7 = "Can\'t open file";
}
else {
lVar4 = (**(code **)(PSI_server + 0x158))(local_288,iVar3,8);
if (lVar4 == 0) {
uVar5 = my_seek(iVar3,0,2,0x10);
}
else {
print_aria_log_control_cold_2(lVar4,iVar3,local_88);
uVar5 = local_88[0];
}
if (uVar5 == 0xffffffffffffffff) {
pcVar7 = "Can\'t read size";
}
else if (uVar5 < 0x2d) {
pcVar7 = "Size of control file is smaller than expected";
uVar8 = CONCAT71(uVar10,1);
}
else if (uVar5 < 0x201) {
lVar4 = (**(code **)(PSI_server + 0x158))(local_88,iVar3,6);
if (lVar4 == 0) {
lVar6 = my_pread(iVar3,local_288,uVar5,0,2);
}
else {
(**(code **)(PSI_server + 0x210))
(lVar4,uVar5,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_control_file.c",
0x2a6);
lVar6 = my_pread(iVar3,local_288,uVar5,0,2);
uVar11 = 0;
if (lVar6 == 0) {
uVar11 = uVar5;
}
(**(code **)(PSI_server + 0x218))(lVar4,uVar11);
}
if (lVar6 == 0) {
if (cStack_286 == '\f' && (short)_local_288 == -0x102) {
__printf_chk(1,"Aria file version: %u\n",uStack_285);
uVar11 = (ulong)stack0xfffffffffffffd8c;
pcVar7 = "Sizes stored in control file are inconsistent";
uVar8 = CONCAT71(uVar10,8);
if (0x1d < uVar11) {
if ((0xe < local_272) && (uVar5 == local_272 + uVar11)) {
uVar2 = *(int2 *)((long)&local_284 + uVar11);
uVar1 = *(int1 *)((long)auStack_281 + (uVar11 - 1));
local_48c = *(int4 *)((long)auStack_281 + uVar11);
local_498 = (ulong)*(uint *)((long)auStack_281 + uVar11 + 4);
my_uuid2str(&local_284,local_88,extraout_RDX,
"Sizes stored in control file are inconsistent");
local_64 = 0;
uVar8 = 0;
__printf_chk(1,"Block size: %u\n",local_270);
__printf_chk(1,"maria_uuid: %s\n",local_88);
__printf_chk(1,"last_checkpoint_lsn: (%u,0x%x)\n",(ulong)CONCAT12(uVar1,uVar2),
local_48c);
__printf_chk(1,"last_log_number: %lu\n",local_498);
if (0x14 < local_272) {
uVar8 = 0;
__printf_chk(1,"trid: %llu\n",
(ulong)CONCAT24(*(int2 *)(auStack_275 + uVar11),
*(int4 *)((long)auStack_281 + uVar11 + 8)));
if (local_272 != 0x15) {
uVar8 = 0;
__printf_chk(1,"recovery_failures: %u\n",(&uStack_273)[uVar11]);
}
}
goto LAB_00165205;
}
}
}
else {
pcVar7 = "Missing valid id at start of file. File is not a valid aria control file";
uVar8 = CONCAT71(uVar10,3);
}
}
else {
pcVar7 = "Can\'t read file";
}
}
else {
pcVar7 = "File size bigger than expected";
uVar8 = CONCAT71(uVar10,2);
}
}
my_printf_error(0xae,"Got error \'%s\' when trying to use aria control file \'%s\'",0,pcVar7,
local_488);
}
LAB_00165205:
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return uVar8 & 0xffffffff;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
44,315 | fmt::v10::detail::format_decimal_result<char*> fmt::v10::detail::format_decimal<char, unsigned long>(char*, unsigned long, int) | AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/fmt/bundled/format.h | FMT_CONSTEXPR20 auto format_decimal(Char* out, UInt value, int size)
-> format_decimal_result<Char*> {
FMT_ASSERT(size >= count_digits(value), "invalid digit count");
out += size;
Char* end = out;
while (value >= 100) {
// Integer division is slow so do it for a group of two digits instead
// of for every digit. The idea comes from the talk by Alexandrescu
// "Three Optimization Tips for C++". See speed-test for a comparison.
out -= 2;
copy2(out, digits2(static_cast<size_t>(value % 100)));
value /= 100;
}
if (value < 10) {
*--out = static_cast<Char>('0' + value);
return {out, end};
}
out -= 2;
copy2(out, digits2(static_cast<size_t>(value)));
return {out, end};
} | O0 | c | fmt::v10::detail::format_decimal_result<char*> fmt::v10::detail::format_decimal<char, unsigned long>(char*, unsigned long, int):
subq $0x68, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movl %edx, 0x24(%rsp)
movl 0x24(%rsp), %eax
movl %eax, 0x14(%rsp)
movq 0x28(%rsp), %rdi
callq 0x54be0
movl %eax, %ecx
movl 0x14(%rsp), %eax
cmpl %ecx, %eax
setge %al
andb $0x1, %al
movb %al, 0x23(%rsp)
leaq 0x23(%rsp), %rdi
leaq 0xb8ab6(%rip), %rsi # 0x10d7c7
callq 0x4d790
movl 0x24(%rsp), %ecx
movq 0x30(%rsp), %rax
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x18(%rsp)
cmpq $0x64, 0x28(%rsp)
jb 0x54da0
movq 0x30(%rsp), %rax
addq $-0x2, %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x28(%rsp), %rax
movl $0x64, %ecx
xorl %edx, %edx
divq %rcx
movq %rdx, %rdi
callq 0x4d7e0
movq 0x8(%rsp), %rcx
movq %rcx, 0x60(%rsp)
movq %rax, 0x58(%rsp)
movq 0x60(%rsp), %rax
movq 0x58(%rsp), %rcx
movw (%rcx), %cx
movw %cx, (%rax)
movq 0x28(%rsp), %rax
movl $0x64, %ecx
xorl %edx, %edx
divq %rcx
movq %rax, 0x28(%rsp)
jmp 0x54d34
cmpq $0xa, 0x28(%rsp)
jae 0x54ddd
movq 0x28(%rsp), %rax
addq $0x30, %rax
movb %al, %cl
movq 0x30(%rsp), %rax
movq %rax, %rdx
addq $-0x1, %rdx
movq %rdx, 0x30(%rsp)
movb %cl, -0x1(%rax)
movq 0x30(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x40(%rsp)
jmp 0x54e30
movq 0x30(%rsp), %rax
addq $-0x2, %rax
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq %rax, (%rsp)
movq 0x28(%rsp), %rdi
callq 0x4d7e0
movq (%rsp), %rcx
movq %rcx, 0x50(%rsp)
movq %rax, 0x48(%rsp)
movq 0x50(%rsp), %rax
movq 0x48(%rsp), %rcx
movw (%rcx), %cx
movw %cx, (%rax)
movq 0x30(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x38(%rsp), %rax
movq 0x40(%rsp), %rdx
addq $0x68, %rsp
retq
nop
| _ZN3fmt3v106detail14format_decimalIcmEENS1_21format_decimal_resultIPT_EES5_T0_i:
sub rsp, 68h
mov [rsp+68h+var_38], rdi
mov [rsp+68h+var_40], rsi
mov [rsp+68h+var_44], edx
mov eax, [rsp+68h+var_44]
mov [rsp+68h+var_54], eax
mov rdi, [rsp+68h+var_40]; this
call _ZN3fmt3v106detail12count_digitsEm; fmt::v10::detail::count_digits(ulong)
mov ecx, eax
mov eax, [rsp+68h+var_54]
cmp eax, ecx
setnl al
and al, 1
mov [rsp+68h+var_45], al
lea rdi, [rsp+68h+var_45]
lea rsi, aInvalidDigitCo; "invalid digit count"
call _ZN3fmt3v106detail13ignore_unusedIJbA20_cEEEvDpRKT_; fmt::v10::detail::ignore_unused<bool,char [20]>(bool,char [20] const&)
mov ecx, [rsp+68h+var_44]
mov rax, [rsp+68h+var_38]
movsxd rcx, ecx
add rax, rcx
mov [rsp+68h+var_38], rax
mov rax, [rsp+68h+var_38]
mov [rsp+68h+var_50], rax
loc_54D34:
cmp [rsp+68h+var_40], 64h ; 'd'
jb short loc_54DA0
mov rax, [rsp+68h+var_38]
add rax, 0FFFFFFFFFFFFFFFEh
mov [rsp+68h+var_38], rax
mov rax, [rsp+68h+var_38]
mov [rsp+68h+var_60], rax
mov rax, [rsp+68h+var_40]
mov ecx, 64h ; 'd'
xor edx, edx
div rcx
mov rdi, rdx; this
call _ZN3fmt3v106detail7digits2Em; fmt::v10::detail::digits2(ulong)
mov rcx, [rsp+68h+var_60]
mov [rsp+68h+var_8], rcx
mov [rsp+68h+var_10], rax
mov rax, [rsp+68h+var_8]
mov rcx, [rsp+68h+var_10]
mov cx, [rcx]
mov [rax], cx
mov rax, [rsp+68h+var_40]
mov ecx, 64h ; 'd'
xor edx, edx
div rcx
mov [rsp+68h+var_40], rax
jmp short loc_54D34
loc_54DA0:
cmp [rsp+68h+var_40], 0Ah
jnb short loc_54DDD
mov rax, [rsp+68h+var_40]
add rax, 30h ; '0'
mov cl, al
mov rax, [rsp+68h+var_38]
mov rdx, rax
add rdx, 0FFFFFFFFFFFFFFFFh
mov [rsp+68h+var_38], rdx
mov [rax-1], cl
mov rax, [rsp+68h+var_38]
mov [rsp+68h+var_30], rax
mov rax, [rsp+68h+var_50]
mov [rsp+68h+var_28], rax
jmp short loc_54E30
loc_54DDD:
mov rax, [rsp+68h+var_38]
add rax, 0FFFFFFFFFFFFFFFEh
mov [rsp+68h+var_38], rax
mov rax, [rsp+68h+var_38]
mov [rsp+68h+var_68], rax
mov rdi, [rsp+68h+var_40]; this
call _ZN3fmt3v106detail7digits2Em; fmt::v10::detail::digits2(ulong)
mov rcx, [rsp+68h+var_68]
mov [rsp+68h+var_18], rcx
mov [rsp+68h+var_20], rax
mov rax, [rsp+68h+var_18]
mov rcx, [rsp+68h+var_20]
mov cx, [rcx]
mov [rax], cx
mov rax, [rsp+68h+var_38]
mov [rsp+68h+var_30], rax
mov rax, [rsp+68h+var_50]
mov [rsp+68h+var_28], rax
loc_54E30:
mov rax, [rsp+68h+var_30]
mov rdx, [rsp+68h+var_28]
add rsp, 68h
retn
| _WORD * fmt::v10::detail::format_decimal<char,unsigned long>(long long a1, fmt::v10::detail *a2, int a3)
{
unsigned long long v5; // [rsp+28h] [rbp-40h]
_WORD *v6; // [rsp+30h] [rbp-38h]
v5 = (unsigned long long)a2;
fmt::v10::detail::count_digits(a2, (unsigned long long)a2);
fmt::v10::detail::ignore_unused<bool,char [20]>();
v6 = (_WORD *)(a3 + a1);
while ( v5 >= 0x64 )
{
*--v6 = *(_WORD *)fmt::v10::detail::digits2((fmt::v10::detail *)(v5 % 0x64));
v5 /= 0x64uLL;
}
if ( v5 >= 0xA )
{
*(v6 - 1) = *(_WORD *)fmt::v10::detail::digits2((fmt::v10::detail *)v5);
return v6 - 1;
}
else
{
*((_BYTE *)v6 - 1) = v5 + 48;
return (_WORD *)((char *)v6 - 1);
}
}
| format_decimal<char,unsigned_long>:
SUB RSP,0x68
MOV qword ptr [RSP + 0x30],RDI
MOV qword ptr [RSP + 0x28],RSI
MOV dword ptr [RSP + 0x24],EDX
MOV EAX,dword ptr [RSP + 0x24]
MOV dword ptr [RSP + 0x14],EAX
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x00154be0
MOV ECX,EAX
MOV EAX,dword ptr [RSP + 0x14]
CMP EAX,ECX
SETGE AL
AND AL,0x1
MOV byte ptr [RSP + 0x23],AL
LEA RDI,[RSP + 0x23]
LEA RSI,[0x20d7c7]
CALL 0x0014d790
MOV ECX,dword ptr [RSP + 0x24]
MOV RAX,qword ptr [RSP + 0x30]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x18],RAX
LAB_00154d34:
CMP qword ptr [RSP + 0x28],0x64
JC 0x00154da0
MOV RAX,qword ptr [RSP + 0x30]
ADD RAX,-0x2
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x8],RAX
MOV RAX,qword ptr [RSP + 0x28]
MOV ECX,0x64
XOR EDX,EDX
DIV RCX
MOV RDI,RDX
CALL 0x0014d7e0
MOV RCX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x60],RCX
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [RSP + 0x60]
MOV RCX,qword ptr [RSP + 0x58]
MOV CX,word ptr [RCX]
MOV word ptr [RAX],CX
MOV RAX,qword ptr [RSP + 0x28]
MOV ECX,0x64
XOR EDX,EDX
DIV RCX
MOV qword ptr [RSP + 0x28],RAX
JMP 0x00154d34
LAB_00154da0:
CMP qword ptr [RSP + 0x28],0xa
JNC 0x00154ddd
MOV RAX,qword ptr [RSP + 0x28]
ADD RAX,0x30
MOV CL,AL
MOV RAX,qword ptr [RSP + 0x30]
MOV RDX,RAX
ADD RDX,-0x1
MOV qword ptr [RSP + 0x30],RDX
MOV byte ptr [RAX + -0x1],CL
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x40],RAX
JMP 0x00154e30
LAB_00154ddd:
MOV RAX,qword ptr [RSP + 0x30]
ADD RAX,-0x2
MOV qword ptr [RSP + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP],RAX
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x0014d7e0
MOV RCX,qword ptr [RSP]
MOV qword ptr [RSP + 0x50],RCX
MOV qword ptr [RSP + 0x48],RAX
MOV RAX,qword ptr [RSP + 0x50]
MOV RCX,qword ptr [RSP + 0x48]
MOV CX,word ptr [RCX]
MOV word ptr [RAX],CX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RSP + 0x40],RAX
LAB_00154e30:
MOV RAX,qword ptr [RSP + 0x38]
MOV RDX,qword ptr [RSP + 0x40]
ADD RSP,0x68
RET
|
/* fmt::v10::detail::format_decimal_result<char*> fmt::v10::detail::format_decimal<char, unsigned
long>(char*, unsigned long, int) */
int1 [16]
fmt::v10::detail::format_decimal<char,unsigned_long>(char *param_1,ulong param_2,int param_3)
{
int1 auVar1 [16];
int iVar2;
char *pcVar3;
char *pcVar4;
int2 *puVar5;
bool local_45;
int local_44;
ulong local_40;
char *local_38;
char *local_30;
int2 *local_10;
char *local_8;
local_44 = param_3;
local_40 = param_2;
local_38 = param_1;
iVar2 = count_digits(param_2);
local_45 = iVar2 <= param_3;
ignore_unused<bool,char[20]>(&local_45,"invalid digit count");
pcVar3 = local_38 + local_44;
local_38 = pcVar3;
for (; 99 < local_40; local_40 = local_40 / 100) {
pcVar4 = local_38 + -2;
local_38 = pcVar4;
local_10 = (int2 *)digits2(local_40 % 100);
*(int2 *)pcVar4 = *local_10;
local_8 = pcVar4;
}
if (local_40 < 10) {
local_30 = local_38 + -1;
local_38[-1] = (char)local_40 + '0';
}
else {
pcVar4 = local_38 + -2;
local_38 = pcVar4;
puVar5 = (int2 *)digits2(local_40);
*(int2 *)pcVar4 = *puVar5;
local_30 = local_38;
}
auVar1._8_8_ = pcVar3;
auVar1._0_8_ = local_30;
return auVar1;
}
| |
44,316 | get_charset_number | eloqsql/mysys/charset.c | uint get_charset_number(const char *charset_name, uint cs_flags, myf flags)
{
uint id;
const char *new_charset_name= flags & MY_UTF8_IS_UTF8MB3 ? "utf8mb3" :
"utf8mb4";
my_pthread_once(&charsets_initialized, init_available_charsets);
if ((id= get_charset_number_internal(charset_name, cs_flags)))
return id;
if ((charset_name= !my_strcasecmp(&my_charset_latin1, charset_name, "utf8") ?
new_charset_name : NULL))
return get_charset_number_internal(charset_name, cs_flags);
return 0;
} | O3 | c | get_charset_number:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %ebx
movq %rdi, %r15
leaq 0x34ade9(%rip), %rdi # 0x37caa0
leaq -0x20b(%rip), %rsi # 0x31ab3
callq 0x242e0
movq %r15, %rdi
movl %ebx, %esi
callq 0x31d24
testl %eax, %eax
jne 0x31cf4
leaq 0x2f1b48(%rip), %rdi # 0x323820
movq 0xc0(%rdi), %rax
leaq 0x36e43(%rip), %rdx # 0x68b29
movq %r15, %rsi
callq *0x40(%rax)
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
je 0x31cff
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
btl $0xa, %r14d
leaq 0x36e16(%rip), %rax # 0x68b21
leaq 0x36e07(%rip), %rdi # 0x68b19
cmovaeq %rax, %rdi
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x31d24
| get_charset_number:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov r14, rdx
mov ebx, esi
mov r15, rdi
lea rdi, charsets_initialized
lea rsi, init_available_charsets
call _pthread_once
mov rdi, r15
mov esi, ebx
call get_charset_number_internal
test eax, eax
jnz short loc_31CF4
lea rdi, my_charset_latin1
mov rax, [rdi+0C0h]
lea rdx, aUtf8; "utf8"
mov rsi, r15
call qword ptr [rax+40h]
mov ecx, eax
xor eax, eax
test ecx, ecx
jz short loc_31CFF
loc_31CF4:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_31CFF:
bt r14d, 0Ah
lea rax, aUtf8mb4; "utf8mb4"
lea rdi, aUtf8mb3; "utf8mb3"
cmovnb rdi, rax
mov esi, ebx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
jmp short $+2
| long long get_charset_number(long long a1, unsigned int a2, __int16 a3)
{
long long result; // rax
int v5; // ecx
const char *v6; // rdi
pthread_once(&charsets_initialized, init_available_charsets);
result = get_charset_number_internal(a1, a2);
if ( !(_DWORD)result )
{
v5 = (*(long long ( **)(void *, long long, const char *))(*((_QWORD *)&my_charset_latin1 + 24) + 64LL))(
&my_charset_latin1,
a1,
"utf8");
result = 0LL;
if ( !v5 )
{
v6 = "utf8mb3";
if ( (a3 & 0x400) == 0 )
v6 = "utf8mb4";
return get_charset_number_internal(v6, a2);
}
}
return result;
}
| get_charset_number:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV R14,RDX
MOV EBX,ESI
MOV R15,RDI
LEA RDI,[0x47caa0]
LEA RSI,[0x131ab3]
CALL 0x001242e0
MOV RDI,R15
MOV ESI,EBX
CALL 0x00131d24
TEST EAX,EAX
JNZ 0x00131cf4
LEA RDI,[0x423820]
MOV RAX,qword ptr [RDI + 0xc0]
LEA RDX,[0x168b29]
MOV RSI,R15
CALL qword ptr [RAX + 0x40]
MOV ECX,EAX
XOR EAX,EAX
TEST ECX,ECX
JZ 0x00131cff
LAB_00131cf4:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_00131cff:
BT R14D,0xa
LEA RAX,[0x168b21]
LEA RDI,[0x168b19]
CMOVNC RDI,RAX
MOV ESI,EBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x00131d24
|
int8 get_charset_number(int8 param_1,int4 param_2,uint param_3)
{
int iVar1;
int8 uVar2;
char *pcVar3;
pthread_once(&charsets_initialized,init_available_charsets);
uVar2 = get_charset_number_internal(param_1,param_2);
if ((int)uVar2 == 0) {
iVar1 = (**(code **)(PTR_my_collation_8bit_simple_ci_handler_004238e0 + 0x40))
(&my_charset_latin1,param_1,&DAT_00168b29);
uVar2 = 0;
if (iVar1 == 0) {
pcVar3 = "utf8mb3";
if ((param_3 >> 10 & 1) == 0) {
pcVar3 = "utf8mb4";
}
uVar2 = get_charset_number_internal(pcVar3,param_2);
return uVar2;
}
}
return uVar2;
}
| |
44,317 | sapphire_plugins::shared::ProcessorShim<sapphire_plugins::tube_unit::TubeUnitClap>::pushFullUIRefresh() | sapphire-plugins/src/shared/processor_shim.h | void pushFullUIRefresh()
{
SPLLOG("Full UI Refresh Requested");
for (const auto *p : asProcessor()->patch.params)
{
shared::AudioToUIMsg au{shared::AudioToUIMsg::UPDATE_PARAM, p->meta.id, p->value};
audioToUi.push(au);
}
} | O3 | c | sapphire_plugins::shared::ProcessorShim<sapphire_plugins::tube_unit::TubeUnitClap>::pushFullUIRefresh():
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x28fcd8(%rip), %rsi # 0x373bfd
leaq 0x28fd1e(%rip), %rdx # 0x373c4a
movq %rsp, %r14
movq %r14, %rdi
callq 0x79380
leaq 0x4c9a9a(%rip), %r13 # 0x5ad9d8
movq (%r13), %r15
movq %r15, %rdi
callq 0x79950
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %rax, %rcx
callq 0x79870
cmpq $-0x1, %rax
je 0xe3f87
movq %rax, %r14
movq (%r13), %rdi
callq 0x79950
leaq 0x1(%r14,%rax), %rdx
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
movq $-0x1, %rcx
callq 0x7aa40
jmp 0xe3fa6
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x20(%rsp), %rdi
callq 0x790c0
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
movq 0x4c7f59(%rip), %rdi # 0x5abf10
callq 0x7a9e0
movq %rax, %r14
leaq 0x2c1f53(%rip), %rsi # 0x3a5f19
movl $0x1, %edx
movq %rax, %rdi
callq 0x7a9e0
movq %r14, %rdi
movl $0x3d, %esi
callq 0x79700
movq %rax, %r14
leaq 0x2990c1(%rip), %rsi # 0x37d0ab
movl $0x1, %edx
movq %rax, %rdi
callq 0x7a9e0
leaq 0x28fc4d(%rip), %rsi # 0x373c4b
movl $0x19, %edx
movq %r14, %rdi
callq 0x7a9e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7ab70
movsbl %al, %esi
movq %r14, %rdi
callq 0x79d20
movq %rax, %rdi
callq 0x79bf0
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xe404d
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x79200
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0xe4063
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x79200
movq 0x100260(%rbx), %rax
movq 0x100268(%rbx), %rcx
cmpq %rcx, %rax
je 0xe40bb
leaq 0x1e8(%rbx), %rdx
movq (%rax), %rsi
movl 0x50(%rsi), %edi
shlq $0x20, %rdi
movss (%rsi), %xmm0
movq 0x1d8(%rbx), %rsi
movq %rsi, %r8
shlq $0x4, %r8
movq %rdi, (%rdx,%r8)
movlps %xmm0, 0x8(%rdx,%r8)
incl %esi
andl $0x3fff, %esi # imm = 0x3FFF
movq %rsi, 0x1d8(%rbx)
addq $0x8, %rax
cmpq %rcx, %rax
jne 0xe407d
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
jmp 0xe40ec
movq %rax, %rbx
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xe40ec
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x79200
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0xe4102
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x79200
movq %rbx, %rdi
callq 0x79f90
| _ZN16sapphire_plugins6shared13ProcessorShimINS_9tube_unit12TubeUnitClapEE17pushFullUIRefreshEv:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 40h
mov rbx, rdi
lea r12, [rsp+68h+var_58]
mov [r12-10h], r12
lea rsi, aWorkspaceLlm4b_1; "/workspace/llm4binary/github2025/sapphi"...
lea rdx, aWorkspaceLlm4b_1+4Dh; ""
mov r14, rsp
mov rdi, r14
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 r13, _ZN3sst11plugininfra18VersionInformation16cmake_source_dirE; sst::plugininfra::VersionInformation::cmake_source_dir
mov r15, [r13+0]
mov rdi, r15
call _strlen
mov rdi, r14
mov rsi, r15
xor edx, edx
mov rcx, rax
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm; std::string::find(char const*,ulong,ulong)
cmp rax, 0FFFFFFFFFFFFFFFFh
jz short loc_E3F87
mov r14, rax
mov rdi, [r13+0]
call _strlen
lea rdx, [r14+rax+1]
lea rdi, [rsp+68h+var_48]
mov rsi, rsp
mov rcx, 0FFFFFFFFFFFFFFFFh
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
jmp short loc_E3FA6
loc_E3F87:
lea rax, [rsp+68h+var_38]
mov [rax-10h], rax
mov rsi, [rsp+68h+var_68]
mov rdx, [rsp+68h+var_60]
add rdx, rsi
lea rdi, [rsp+68h+var_48]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
loc_E3FA6:
mov rsi, [rsp+68h+var_48]
mov rdx, [rsp+68h+var_40]
mov rdi, cs:_ZSt4cout_ptr
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov r14, rax
lea rsi, aG_5+3; ":"
mov edx, 1
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, r14
mov esi, 3Dh ; '='
call __ZNSolsEi; std::ostream::operator<<(int)
mov r14, rax
lea rsi, asc_37D0A8+3; " "
mov edx, 1
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, aFullUiRefreshR; "Full UI Refresh Requested"
mov edx, 19h
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 rax, [r14]
mov rdi, [rax-18h]
add rdi, r14
mov esi, 0Ah
call __ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc; std::ios::widen(char)
movsx esi, al; char
mov rdi, r14; this
call __ZNSo3putEc; std::ostream::put(char)
mov rdi, rax; this
call __ZNSo5flushEv; std::ostream::flush(void)
lea rax, [rsp+68h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_E404D
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E404D:
mov rdi, [rsp+68h+var_68]; void *
cmp rdi, r12
jz short loc_E4063
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E4063:
mov rax, qword ptr ds:loc_100260[rbx]
mov rcx, qword ptr ds:loc_100268[rbx]
cmp rax, rcx
jz short loc_E40BB
lea rdx, [rbx+1E8h]
loc_E407D:
mov rsi, [rax]
mov edi, [rsi+50h]
shl rdi, 20h
movss xmm0, dword ptr [rsi]
mov rsi, [rbx+1D8h]
mov r8, rsi
shl r8, 4
mov [rdx+r8], rdi
movlps qword ptr [rdx+r8+8], xmm0
inc esi
and esi, 3FFFh
mov [rbx+1D8h], rsi
add rax, 8
cmp rax, rcx
jnz short loc_E407D
loc_E40BB:
add rsp, 40h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
mov rbx, rax
jmp short loc_E40EC
mov rbx, rax
lea rax, [rsp+arg_28]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_E40EC
mov rsi, [rsp+arg_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E40EC:
mov rdi, [rsp+0]; void *
cmp rdi, r12
jz short loc_E4102
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E4102:
mov rdi, rbx
call __Unwind_Resume
| unsigned int ** sapphire_plugins::shared::ProcessorShim<sapphire_plugins::tube_unit::TubeUnitClap>::pushFullUIRefresh(
long long a1)
{
char *v1; // r15
long long v2; // rax
long long v3; // rax
long long v4; // r14
long long v5; // rax
long long v6; // r14
std::ostream *v7; // r14
char v8; // al
std::ostream *v9; // rax
unsigned int **result; // rax
unsigned int **v11; // rcx
long long v12; // rdx
__m128 v13; // xmm0
long long v14; // rsi
void *v15[2]; // [rsp+0h] [rbp-68h] BYREF
_QWORD v16[2]; // [rsp+10h] [rbp-58h] BYREF
void *v17[2]; // [rsp+20h] [rbp-48h] BYREF
_QWORD v18[7]; // [rsp+30h] [rbp-38h] BYREF
v15[0] = v16;
std::string::_M_construct<char const*>(
v15,
"/workspace/llm4binary/github2025/sapphire-plugins/src/shared/processor_shim.h",
"");
v1 = sst::plugininfra::VersionInformation::cmake_source_dir[0];
v2 = strlen(sst::plugininfra::VersionInformation::cmake_source_dir[0]);
v3 = std::string::find(v15, v1, 0LL, v2);
if ( v3 == -1 )
{
v17[0] = v18;
std::string::_M_construct<char *>(v17, v15[0], (char *)v15[0] + (unsigned long long)v15[1]);
}
else
{
v4 = v3;
v5 = strlen(sst::plugininfra::VersionInformation::cmake_source_dir[0]);
std::string::substr(v17, v15, v4 + v5 + 1, -1LL);
}
v6 = std::__ostream_insert<char,std::char_traits<char>>(&std::cout, v17[0], v17[1]);
std::__ostream_insert<char,std::char_traits<char>>(v6, ":", 1LL);
v7 = (std::ostream *)std::ostream::operator<<(v6, 61LL);
std::__ostream_insert<char,std::char_traits<char>>(v7, " ", 1LL);
std::__ostream_insert<char,std::char_traits<char>>(v7, "Full UI Refresh Requested", 25LL);
v8 = std::ios::widen((char *)v7 + *(_QWORD *)(*(_QWORD *)v7 - 24LL), 10LL);
v9 = (std::ostream *)std::ostream::put(v7, v8);
std::ostream::flush(v9);
if ( v17[0] != v18 )
operator delete(v17[0], v18[0] + 1LL);
if ( v15[0] != v16 )
operator delete(v15[0], v16[0] + 1LL);
result = *(unsigned int ***)((char *)&loc_100260 + a1);
v11 = *(unsigned int ***)((char *)&loc_100268 + a1);
if ( result != v11 )
{
v12 = a1 + 488;
do
{
v13 = (__m128)**result;
v14 = *(_QWORD *)(a1 + 472);
*(_QWORD *)(v12 + 16 * v14) = (unsigned long long)(*result)[20] << 32;
_mm_storel_ps((double *)(v12 + 16 * v14 + 8), v13);
*(_QWORD *)(a1 + 472) = ((_WORD)v14 + 1) & 0x3FFF;
++result;
}
while ( result != v11 );
}
return result;
}
| pushFullUIRefresh:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x40
MOV RBX,RDI
LEA R12,[RSP + 0x10]
MOV qword ptr [R12 + -0x10],R12
LEA RSI,[0x473bfd]
LEA RDX,[0x473c4a]
MOV R14,RSP
MOV RDI,R14
CALL 0x00179380
LEA R13,[0x6ad9d8]
MOV R15,qword ptr [R13]
MOV RDI,R15
CALL 0x00179950
MOV RDI,R14
MOV RSI,R15
XOR EDX,EDX
MOV RCX,RAX
CALL 0x00179870
CMP RAX,-0x1
JZ 0x001e3f87
MOV R14,RAX
MOV RDI,qword ptr [R13]
CALL 0x00179950
LEA RDX,[R14 + RAX*0x1 + 0x1]
LAB_001e3f71:
LEA RDI,[RSP + 0x20]
MOV RSI,RSP
MOV RCX,-0x1
CALL 0x0017aa40
JMP 0x001e3fa6
LAB_001e3f87:
LEA RAX,[RSP + 0x30]
MOV qword ptr [RAX + -0x10],RAX
MOV RSI,qword ptr [RSP]
MOV RDX,qword ptr [RSP + 0x8]
ADD RDX,RSI
LEA RDI,[RSP + 0x20]
CALL 0x001790c0
LAB_001e3fa6:
MOV RSI,qword ptr [RSP + 0x20]
MOV RDX,qword ptr [RSP + 0x28]
LAB_001e3fb0:
MOV RDI,qword ptr [0x006abf10]
CALL 0x0017a9e0
MOV R14,RAX
LEA RSI,[0x4a5f19]
MOV EDX,0x1
MOV RDI,RAX
CALL 0x0017a9e0
MOV RDI,R14
MOV ESI,0x3d
CALL 0x00179700
MOV R14,RAX
LEA RSI,[0x47d0ab]
MOV EDX,0x1
MOV RDI,RAX
CALL 0x0017a9e0
LEA RSI,[0x473c4b]
MOV EDX,0x19
MOV RDI,R14
CALL 0x0017a9e0
MOV RAX,qword ptr [R14]
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,R14
MOV ESI,0xa
CALL 0x0017ab70
MOVSX ESI,AL
MOV RDI,R14
CALL 0x00179d20
MOV RDI,RAX
CALL 0x00179bf0
LAB_001e4032:
LEA RAX,[RSP + 0x30]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x001e404d
MOV RSI,qword ptr [RSP + 0x30]
INC RSI
CALL 0x00179200
LAB_001e404d:
MOV RDI,qword ptr [RSP]
CMP RDI,R12
JZ 0x001e4063
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x00179200
LAB_001e4063:
MOV RAX,qword ptr [RBX + 0x100260]
MOV RCX,qword ptr [RBX + 0x100268]
CMP RAX,RCX
JZ 0x001e40bb
LEA RDX,[RBX + 0x1e8]
LAB_001e407d:
MOV RSI,qword ptr [RAX]
MOV EDI,dword ptr [RSI + 0x50]
SHL RDI,0x20
MOVSS XMM0,dword ptr [RSI]
MOV RSI,qword ptr [RBX + 0x1d8]
MOV R8,RSI
SHL R8,0x4
MOV qword ptr [RDX + R8*0x1],RDI
MOVLPS qword ptr [RDX + R8*0x1 + 0x8],XMM0
INC ESI
AND ESI,0x3fff
MOV qword ptr [RBX + 0x1d8],RSI
ADD RAX,0x8
CMP RAX,RCX
JNZ 0x001e407d
LAB_001e40bb:
ADD RSP,0x40
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* sapphire_plugins::shared::ProcessorShim<sapphire_plugins::tube_unit::TubeUnitClap>::pushFullUIRefresh()
*/
void __thiscall
sapphire_plugins::shared::ProcessorShim<sapphire_plugins::tube_unit::TubeUnitClap>::
pushFullUIRefresh(ProcessorShim<sapphire_plugins::tube_unit::TubeUnitClap> *this)
{
uint uVar1;
int8 *puVar2;
int *puVar3;
long lVar4;
ostream *poVar5;
int8 *puVar6;
long lVar7;
long *local_68;
long local_60;
long local_58 [2];
long *local_48;
long local_40;
long local_38 [2];
local_68 = local_58;
std::__cxx11::string::_M_construct<char_const*>
(&local_68,
"/workspace/llm4binary/github2025/sapphire-plugins/src/shared/processor_shim.h","");
puVar3 = sst::plugininfra::VersionInformation::cmake_source_dir;
strlen(sst::plugininfra::VersionInformation::cmake_source_dir);
lVar4 = std::__cxx11::string::find((char *)&local_68,(ulong)puVar3,0);
if (lVar4 == -1) {
local_48 = local_38;
std::__cxx11::string::_M_construct<char*>(&local_48,local_68,local_60 + (long)local_68);
}
else {
strlen(sst::plugininfra::VersionInformation::cmake_source_dir);
/* try { // try from 001e3f71 to 001e3fa5 has its CatchHandler @ 001e40c9 */
std::__cxx11::string::substr((ulong)&local_48,(ulong)&local_68);
}
/* try { // try from 001e3fb0 to 001e4031 has its CatchHandler @ 001e40ce */
poVar5 = std::__ostream_insert<char,std::char_traits<char>>
((ostream *)PTR_cout_006abf10,(char *)local_48,local_40);
std::__ostream_insert<char,std::char_traits<char>>(poVar5,":",1);
poVar5 = (ostream *)std::ostream::operator<<(poVar5,0x3d);
std::__ostream_insert<char,std::char_traits<char>>(poVar5," ",1);
std::__ostream_insert<char,std::char_traits<char>>(poVar5,"Full UI Refresh Requested",0x19);
std::ios::widen((char)*(int8 *)(*(long *)poVar5 + -0x18) + (char)poVar5);
std::ostream::put((char)poVar5);
std::ostream::flush();
if (local_48 != local_38) {
operator_delete(local_48,local_38[0] + 1);
}
if (local_68 != local_58) {
operator_delete(local_68,local_58[0] + 1);
}
puVar2 = *(int8 **)(this + 0x100268);
for (puVar6 = *(int8 **)(this + 0x100260); puVar6 != puVar2; puVar6 = puVar6 + 1) {
uVar1 = *(uint *)*puVar6;
lVar4 = *(long *)(this + 0x1d8);
lVar7 = lVar4 * 0x10;
*(ulong *)(this + lVar7 + 0x1e8) = (ulong)((uint *)*puVar6)[0x14] << 0x20;
*(ulong *)(this + lVar7 + 0x1f0) = (ulong)uVar1;
*(ulong *)(this + 0x1d8) = (ulong)((int)lVar4 + 1U & 0x3fff);
}
return;
}
| |
44,318 | binding_system_get_binding_scope | tsotchke[P]eshkol/src/frontend/binding/core/binding_management.c | uint64_t binding_system_get_binding_scope(BindingSystem* system, uint64_t binding_id) {
assert(system != NULL);
// Search for binding
for (size_t i = 0; i < system->binding_table.count; i++) {
if (system->binding_table.binding_ids[i] == binding_id) {
// Found binding
return system->binding_table.scope_ids[i];
}
}
// Binding not found
return 0;
} | O0 | c | binding_system_get_binding_scope:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0xbd69
jmp 0xbd88
leaq 0x600f(%rip), %rdi # 0x11d7f
leaq 0x61fb(%rip), %rsi # 0x11f72
movl $0x8d, %edx
leaq 0x6325(%rip), %rcx # 0x120a8
callq 0x10a0
movq $0x0, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x48(%rcx), %rax
jae 0xbdda
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rax
movq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
cmpq -0x18(%rbp), %rax
jne 0xbdca
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rax
movq -0x20(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x8(%rbp)
jmp 0xbde2
jmp 0xbdcc
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0xbd90
movq $0x0, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
| binding_system_get_binding_scope:
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_BD69
jmp short loc_BD88
loc_BD69:
lea rdi, aSystemNull; "system != NULL"
lea rsi, aWorkspaceLlm4b_7; "/workspace/llm4binary/github/2025_star3"...
mov edx, 8Dh
lea rcx, aUint64TBinding_4; "uint64_t binding_system_get_binding_sco"...
call ___assert_fail
loc_BD88:
mov [rbp+var_20], 0
loc_BD90:
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
cmp rax, [rcx+48h]
jnb short loc_BDDA
mov rax, [rbp+var_10]
mov rax, [rax+18h]
mov rcx, [rbp+var_20]
mov rax, [rax+rcx*8]
cmp rax, [rbp+var_18]
jnz short loc_BDCA
mov rax, [rbp+var_10]
mov rax, [rax+20h]
mov rcx, [rbp+var_20]
mov rax, [rax+rcx*8]
mov [rbp+var_8], rax
jmp short loc_BDE2
loc_BDCA:
jmp short $+2
loc_BDCC:
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
jmp short loc_BD90
loc_BDDA:
mov [rbp+var_8], 0
loc_BDE2:
mov rax, [rbp+var_8]
add rsp, 20h
pop rbp
retn
| long long binding_system_get_binding_scope(_QWORD *a1, long long a2)
{
unsigned long long i; // [rsp+0h] [rbp-20h]
if ( !a1 )
__assert_fail(
"system != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/core/binding_management.c",
141LL,
"uint64_t binding_system_get_binding_scope(BindingSystem *, uint64_t)");
for ( i = 0LL; i < a1[9]; ++i )
{
if ( *(_QWORD *)(a1[3] + 8 * i) == a2 )
return *(_QWORD *)(a1[4] + 8 * i);
}
return 0LL;
}
| binding_system_get_binding_scope:
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 0x0010bd69
JMP 0x0010bd88
LAB_0010bd69:
LEA RDI,[0x111d7f]
LEA RSI,[0x111f72]
MOV EDX,0x8d
LEA RCX,[0x1120a8]
CALL 0x001010a0
LAB_0010bd88:
MOV qword ptr [RBP + -0x20],0x0
LAB_0010bd90:
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RCX + 0x48]
JNC 0x0010bdda
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x18]
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + RCX*0x8]
CMP RAX,qword ptr [RBP + -0x18]
JNZ 0x0010bdca
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x20]
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0010bde2
LAB_0010bdca:
JMP 0x0010bdcc
LAB_0010bdcc:
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0010bd90
LAB_0010bdda:
MOV qword ptr [RBP + -0x8],0x0
LAB_0010bde2:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x20
POP RBP
RET
|
int8 binding_system_get_binding_scope(long param_1,long param_2)
{
ulong local_28;
if (param_1 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("system != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/core/binding_management.c"
,0x8d,"uint64_t binding_system_get_binding_scope(BindingSystem *, uint64_t)");
}
local_28 = 0;
while( true ) {
if (*(ulong *)(param_1 + 0x48) <= local_28) {
return 0;
}
if (*(long *)(*(long *)(param_1 + 0x18) + local_28 * 8) == param_2) break;
local_28 = local_28 + 1;
}
return *(int8 *)(*(long *)(param_1 + 0x20) + local_28 * 8);
}
| |
44,319 | js_string_indexOf | bluesky950520[P]quickjs/quickjs.c | static JSValue js_string_indexOf(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv, int lastIndexOf)
{
JSValue str, v;
int i, len, v_len, pos, start, stop, ret, inc;
JSString *p;
JSString *p1;
str = JS_ToStringCheckObject(ctx, this_val);
if (JS_IsException(str))
return str;
v = JS_ToString(ctx, argv[0]);
if (JS_IsException(v))
goto fail;
p = JS_VALUE_GET_STRING(str);
p1 = JS_VALUE_GET_STRING(v);
len = p->len;
v_len = p1->len;
if (lastIndexOf) {
pos = len - v_len;
if (argc > 1) {
double d;
if (JS_ToFloat64(ctx, &d, argv[1]))
goto fail;
if (!isnan(d)) {
if (d <= 0)
pos = 0;
else if (d < pos)
pos = d;
}
}
start = pos;
stop = 0;
inc = -1;
} else {
pos = 0;
if (argc > 1) {
if (JS_ToInt32Clamp(ctx, &pos, argv[1], 0, len, 0))
goto fail;
}
start = pos;
stop = len - v_len;
inc = 1;
}
ret = -1;
if (len >= v_len && inc * (stop - start) >= 0) {
for (i = start;; i += inc) {
if (!string_cmp(p, p1, i, 0, v_len)) {
ret = i;
break;
}
if (i == stop)
break;
}
}
JS_FreeValue(ctx, str);
JS_FreeValue(ctx, v);
return js_int32(ret);
fail:
JS_FreeValue(ctx, str);
JS_FreeValue(ctx, v);
return JS_EXCEPTION;
} | O2 | c | js_string_indexOf:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r9d, %ebp
movq %r8, %r12
movl %ecx, %r13d
movq %rdi, %rbx
callq 0x3de40
movq %rax, %r14
movq %rdx, %r15
cmpl $0x6, %r15d
je 0x6b63e
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %rbx, %rdi
callq 0x1ebec
movq %rdx, 0x28(%rsp)
cmpl $0x6, %edx
jne 0x6b4cf
xorl %r12d, %r12d
movq %rax, %r13
pushq $0x6
popq %rbp
jmp 0x6b61a
movl $0x7fffffff, %r8d # imm = 0x7FFFFFFF
movl 0x4(%r14), %r9d
andl %r8d, %r9d
movq %rax, 0x18(%rsp)
andl 0x4(%rax), %r8d
testl %ebp, %ebp
je 0x6b53f
pushq $-0x1
popq %rax
movl %eax, 0x10(%rsp)
movl %r9d, %ebp
subl %r8d, %ebp
movl %ebp, 0xc(%rsp)
movl $0x0, 0x14(%rsp)
cmpl $0x2, %r13d
jl 0x6b596
movl %r9d, 0x20(%rsp)
movl %r8d, 0x24(%rsp)
movq 0x10(%r12), %rdx
movq 0x18(%r12), %rcx
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x24e2f
testl %eax, %eax
movq 0x18(%rsp), %r13
je 0x6b5de
xorl %r12d, %r12d
jmp 0x6b4c7
andl $0x0, 0xc(%rsp)
cmpl $0x2, %r13d
jl 0x6b585
movq 0x10(%r12), %rdx
movq 0x18(%r12), %rcx
andl $0x0, (%rsp)
leaq 0xc(%rsp), %rsi
xorl %r12d, %r12d
movq %rbx, %rdi
movl %r8d, %ebp
xorl %r8d, %r8d
movl %r9d, %r13d
callq 0x24f85
movl %r13d, %r9d
movl %ebp, %r8d
testl %eax, %eax
je 0x6b585
movq 0x18(%rsp), %r13
jmp 0x6b4c7
movl %r9d, %eax
subl %r8d, %eax
movl %eax, 0x14(%rsp)
pushq $0x1
popq %rax
movl %eax, 0x10(%rsp)
movq 0x18(%rsp), %r13
movl $0xffffffff, %r12d # imm = 0xFFFFFFFF
cmpl %r8d, %r9d
jb 0x6b618
movl 0xc(%rsp), %ebp
movl 0x14(%rsp), %eax
subl %ebp, %eax
imull 0x10(%rsp), %eax
testl %eax, %eax
js 0x6b618
movq %r14, %rdi
movq %r13, %rsi
movl %ebp, %edx
xorl %ecx, %ecx
movl %r8d, %r12d
callq 0x6d1ca
testl %eax, %eax
je 0x6b615
cmpl %ebp, 0x14(%rsp)
je 0x6b612
addl 0x10(%rsp), %ebp
movl %r12d, %r8d
jmp 0x6b5b9
movsd 0x30(%rsp), %xmm0
ucomisd %xmm0, %xmm0
movl 0x24(%rsp), %r8d
movl 0x20(%rsp), %r9d
jp 0x6b59b
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
jae 0x6b653
cvtsi2sd %ebp, %xmm1
ucomisd %xmm0, %xmm1
jbe 0x6b59b
cvttsd2si %xmm0, %eax
movl %eax, 0xc(%rsp)
jmp 0x6b59b
pushq $-0x1
popq %rbp
movl %ebp, %r12d
xorl %ebp, %ebp
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x1bbce
movq %rbx, %rdi
movq %r13, %rsi
movq 0x28(%rsp), %rdx
callq 0x1bbce
movq %r12, %r14
movq %rbp, %r15
movq %r14, %rax
movq %r15, %rdx
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
andl $0x0, 0xc(%rsp)
jmp 0x6b59b
| js_string_indexOf:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov ebp, r9d
mov r12, r8
mov r13d, ecx
mov rbx, rdi
call JS_ToStringCheckObject
mov r14, rax
mov r15, rdx
cmp r15d, 6
jz loc_6B63E
mov rsi, [r12]
mov rdx, [r12+8]
mov rdi, rbx
call JS_ToString
mov [rsp+68h+var_40], rdx
cmp edx, 6
jnz short loc_6B4CF
xor r12d, r12d
mov r13, rax
loc_6B4C7:
push 6
pop rbp
jmp loc_6B61A
loc_6B4CF:
mov r8d, 7FFFFFFFh
mov r9d, [r14+4]
and r9d, r8d
mov [rsp+68h+var_50], rax
and r8d, [rax+4]
test ebp, ebp
jz short loc_6B53F
push 0FFFFFFFFFFFFFFFFh
pop rax
mov [rsp+68h+var_58], eax
mov ebp, r9d
sub ebp, r8d
mov [rsp+68h+var_5C], ebp
mov [rsp+68h+var_54], 0
cmp r13d, 2
jl loc_6B596
mov [rsp+68h+var_48], r9d
mov [rsp+68h+var_44], r8d
mov rdx, [r12+10h]
mov rcx, [r12+18h]
lea rsi, [rsp+68h+var_38]
mov rdi, rbx
call JS_ToFloat64
test eax, eax
mov r13, [rsp+68h+var_50]
jz loc_6B5DE
xor r12d, r12d
jmp short loc_6B4C7
loc_6B53F:
and [rsp+68h+var_5C], 0
cmp r13d, 2
jl short loc_6B585
mov rdx, [r12+10h]
mov rcx, [r12+18h]
and [rsp+68h+var_68], 0
lea rsi, [rsp+68h+var_5C]
xor r12d, r12d
mov rdi, rbx
mov ebp, r8d
xor r8d, r8d
mov r13d, r9d
call JS_ToInt32Clamp
mov r9d, r13d
mov r8d, ebp
test eax, eax
jz short loc_6B585
mov r13, [rsp+68h+var_50]
jmp loc_6B4C7
loc_6B585:
mov eax, r9d
sub eax, r8d
mov [rsp+68h+var_54], eax
push 1
pop rax
mov [rsp+68h+var_58], eax
loc_6B596:
mov r13, [rsp+68h+var_50]
loc_6B59B:
mov r12d, 0FFFFFFFFh
cmp r9d, r8d
jb short loc_6B618
mov ebp, [rsp+68h+var_5C]
mov eax, [rsp+68h+var_54]
sub eax, ebp
imul eax, [rsp+68h+var_58]
test eax, eax
js short loc_6B618
loc_6B5B9:
mov rdi, r14
mov rsi, r13
mov edx, ebp
xor ecx, ecx
mov r12d, r8d
call string_cmp
test eax, eax
jz short loc_6B615
cmp [rsp+68h+var_54], ebp
jz short loc_6B612
add ebp, [rsp+68h+var_58]
mov r8d, r12d
jmp short loc_6B5B9
loc_6B5DE:
movsd xmm0, [rsp+68h+var_38]
ucomisd xmm0, xmm0
mov r8d, [rsp+68h+var_44]
mov r9d, [rsp+68h+var_48]
jp short loc_6B59B
xorpd xmm1, xmm1
ucomisd xmm1, xmm0
jnb short loc_6B653
cvtsi2sd xmm1, ebp
ucomisd xmm1, xmm0
jbe short loc_6B59B
cvttsd2si eax, xmm0
mov [rsp+68h+var_5C], eax
jmp short loc_6B59B
loc_6B612:
push 0FFFFFFFFFFFFFFFFh
pop rbp
loc_6B615:
mov r12d, ebp
loc_6B618:
xor ebp, ebp
loc_6B61A:
mov rdi, rbx
mov rsi, r14
mov rdx, r15
call JS_FreeValue
mov rdi, rbx
mov rsi, r13
mov rdx, [rsp+68h+var_40]
call JS_FreeValue
mov r14, r12
mov r15, rbp
loc_6B63E:
mov rax, r14
mov rdx, r15
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_6B653:
and [rsp+68h+var_5C], 0
jmp loc_6B59B
| long long js_string_indexOf(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
int v14; // ebp
int v16; // r13d
long long v17; // r14
long long v18; // rdx
long long v19; // r15
long long v20; // rax
long long v21; // rdx
long long v22; // r12
long long v23; // r13
unsigned int v24; // r9d
unsigned int v25; // r8d
int v26; // ebp
_DWORD *v27; // rdx
long long v28; // rcx
unsigned int v29; // ebp
unsigned int v30; // r13d
int v31; // eax
unsigned int v32; // ebp
unsigned int v33; // r12d
unsigned int v35; // [rsp+Ch] [rbp-5Ch] BYREF
int v36; // [rsp+10h] [rbp-58h]
unsigned int v37; // [rsp+14h] [rbp-54h]
long long v38; // [rsp+18h] [rbp-50h]
unsigned int v39; // [rsp+20h] [rbp-48h]
unsigned int v40; // [rsp+24h] [rbp-44h]
long long v41; // [rsp+28h] [rbp-40h]
double v42[7]; // [rsp+30h] [rbp-38h] BYREF
v14 = a6;
v16 = a4;
v17 = JS_ToStringCheckObject(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14);
v19 = v18;
if ( (_DWORD)v18 != 6 )
{
v20 = JS_ToString(a1, *(_QWORD *)a5, *(_QWORD *)(a5 + 8));
v41 = v21;
if ( (_DWORD)v21 == 6 )
{
v22 = 0LL;
v23 = v20;
LABEL_23:
JS_FreeValue(a1, v17, v19);
JS_FreeValue(a1, v23, v41);
return v22;
}
v24 = *(_DWORD *)(v17 + 4) & 0x7FFFFFFF;
v38 = v20;
v25 = *(_DWORD *)(v20 + 4) & 0x7FFFFFFF;
if ( v14 )
{
v36 = -1;
v26 = v24 - v25;
v35 = v24 - v25;
v37 = 0;
if ( v16 >= 2 )
{
v39 = v24;
v40 = v25;
v23 = v38;
if ( (unsigned int)JS_ToFloat64(a1, (long long)v42, *(_DWORD **)(a5 + 16), *(_QWORD *)(a5 + 24)) )
{
v22 = 0LL;
goto LABEL_23;
}
v25 = v40;
v24 = v39;
if ( v42[0] <= 0.0 )
{
v35 = 0;
}
else if ( (double)v26 > v42[0] )
{
v35 = (int)v42[0];
}
LABEL_13:
v22 = 0xFFFFFFFFLL;
if ( v24 >= v25 )
{
v32 = v35;
if ( ((v36 * (v37 - v35)) & 0x80000000) == 0 )
{
while ( 1 )
{
v33 = v25;
if ( !(unsigned int)string_cmp(v17, v23, v32, 0LL) )
break;
if ( v37 == v32 )
{
v32 = -1;
break;
}
v32 += v36;
v25 = v33;
}
v22 = v32;
}
}
goto LABEL_23;
}
}
else
{
v35 = 0;
if ( v16 >= 2 )
{
v27 = *(_DWORD **)(a5 + 16);
v28 = *(_QWORD *)(a5 + 24);
v22 = 0LL;
v29 = v25;
v30 = v24;
v31 = JS_ToInt32Clamp(a1, (int *)&v35, v27, v28, 0, v24, 0);
v24 = v30;
v25 = v29;
if ( v31 )
{
v23 = v38;
goto LABEL_23;
}
}
v37 = v24 - v25;
v36 = 1;
}
v23 = v38;
goto LABEL_13;
}
return v17;
}
| js_string_indexOf:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV EBP,R9D
MOV R12,R8
MOV R13D,ECX
MOV RBX,RDI
CALL 0x0013de40
MOV R14,RAX
MOV R15,RDX
CMP R15D,0x6
JZ 0x0016b63e
MOV RSI,qword ptr [R12]
MOV RDX,qword ptr [R12 + 0x8]
MOV RDI,RBX
CALL 0x0011ebec
MOV qword ptr [RSP + 0x28],RDX
CMP EDX,0x6
JNZ 0x0016b4cf
XOR R12D,R12D
MOV R13,RAX
LAB_0016b4c7:
PUSH 0x6
POP RBP
JMP 0x0016b61a
LAB_0016b4cf:
MOV R8D,0x7fffffff
MOV R9D,dword ptr [R14 + 0x4]
AND R9D,R8D
MOV qword ptr [RSP + 0x18],RAX
AND R8D,dword ptr [RAX + 0x4]
TEST EBP,EBP
JZ 0x0016b53f
PUSH -0x1
POP RAX
MOV dword ptr [RSP + 0x10],EAX
MOV EBP,R9D
SUB EBP,R8D
MOV dword ptr [RSP + 0xc],EBP
MOV dword ptr [RSP + 0x14],0x0
CMP R13D,0x2
JL 0x0016b596
MOV dword ptr [RSP + 0x20],R9D
MOV dword ptr [RSP + 0x24],R8D
MOV RDX,qword ptr [R12 + 0x10]
MOV RCX,qword ptr [R12 + 0x18]
LEA RSI,[RSP + 0x30]
MOV RDI,RBX
CALL 0x00124e2f
TEST EAX,EAX
MOV R13,qword ptr [RSP + 0x18]
JZ 0x0016b5de
XOR R12D,R12D
JMP 0x0016b4c7
LAB_0016b53f:
AND dword ptr [RSP + 0xc],0x0
CMP R13D,0x2
JL 0x0016b585
MOV RDX,qword ptr [R12 + 0x10]
MOV RCX,qword ptr [R12 + 0x18]
AND dword ptr [RSP],0x0
LEA RSI,[RSP + 0xc]
XOR R12D,R12D
MOV RDI,RBX
MOV EBP,R8D
XOR R8D,R8D
MOV R13D,R9D
CALL 0x00124f85
MOV R9D,R13D
MOV R8D,EBP
TEST EAX,EAX
JZ 0x0016b585
MOV R13,qword ptr [RSP + 0x18]
JMP 0x0016b4c7
LAB_0016b585:
MOV EAX,R9D
SUB EAX,R8D
MOV dword ptr [RSP + 0x14],EAX
PUSH 0x1
POP RAX
MOV dword ptr [RSP + 0x10],EAX
LAB_0016b596:
MOV R13,qword ptr [RSP + 0x18]
LAB_0016b59b:
MOV R12D,0xffffffff
CMP R9D,R8D
JC 0x0016b618
MOV EBP,dword ptr [RSP + 0xc]
MOV EAX,dword ptr [RSP + 0x14]
SUB EAX,EBP
IMUL EAX,dword ptr [RSP + 0x10]
TEST EAX,EAX
JS 0x0016b618
LAB_0016b5b9:
MOV RDI,R14
MOV RSI,R13
MOV EDX,EBP
XOR ECX,ECX
MOV R12D,R8D
CALL 0x0016d1ca
TEST EAX,EAX
JZ 0x0016b615
CMP dword ptr [RSP + 0x14],EBP
JZ 0x0016b612
ADD EBP,dword ptr [RSP + 0x10]
MOV R8D,R12D
JMP 0x0016b5b9
LAB_0016b5de:
MOVSD XMM0,qword ptr [RSP + 0x30]
UCOMISD XMM0,XMM0
MOV R8D,dword ptr [RSP + 0x24]
MOV R9D,dword ptr [RSP + 0x20]
JP 0x0016b59b
XORPD XMM1,XMM1
UCOMISD XMM1,XMM0
JNC 0x0016b653
CVTSI2SD XMM1,EBP
UCOMISD XMM1,XMM0
JBE 0x0016b59b
CVTTSD2SI EAX,XMM0
MOV dword ptr [RSP + 0xc],EAX
JMP 0x0016b59b
LAB_0016b612:
PUSH -0x1
POP RBP
LAB_0016b615:
MOV R12D,EBP
LAB_0016b618:
XOR EBP,EBP
LAB_0016b61a:
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
CALL 0x0011bbce
MOV RDI,RBX
MOV RSI,R13
MOV RDX,qword ptr [RSP + 0x28]
CALL 0x0011bbce
MOV R14,R12
MOV R15,RBP
LAB_0016b63e:
MOV RAX,R14
MOV RDX,R15
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0016b653:
AND dword ptr [RSP + 0xc],0x0
JMP 0x0016b59b
|
int1 [16]
js_string_indexOf(int8 param_1,int8 param_2,int8 param_3,int param_4,
int8 *param_5,int param_6)
{
int1 auVar1 [16];
int1 auVar2 [16];
int1 auVar3 [16];
int1 auVar4 [16];
int1 auVar5 [16];
int iVar6;
long lVar7;
uint uVar8;
int8 uVar9;
uint uVar10;
uint uVar11;
ulong uVar12;
long lVar13;
int1 auVar14 [16];
int1 auVar15 [16];
uint local_5c;
int local_58;
uint local_54;
long local_50;
uint local_48;
uint local_44;
int8 local_40;
double local_38;
auVar14 = JS_ToStringCheckObject();
lVar7 = auVar14._0_8_;
if (auVar14._8_4_ == 6) {
return auVar14;
}
auVar15 = JS_ToString(param_1,*param_5,param_5[1]);
local_40 = auVar15._8_8_;
lVar13 = auVar15._0_8_;
if (auVar15._8_4_ == 6) {
LAB_0016b4c7:
local_40 = auVar15._8_8_;
lVar13 = auVar15._0_8_;
auVar15._8_8_ = local_40;
auVar15._0_8_ = local_50;
uVar12 = 0;
uVar9 = 6;
}
else {
uVar11 = *(uint *)(lVar7 + 4) & 0x7fffffff;
uVar10 = *(uint *)(lVar13 + 4) & 0x7fffffff;
local_50 = lVar13;
if (param_6 == 0) {
local_5c = 0;
if (1 < param_4) {
iVar6 = JS_ToInt32Clamp(param_1,&local_5c,param_5[2],param_5[3],0,uVar11,0);
auVar15._8_8_ = local_40;
auVar15._0_8_ = local_50;
if (iVar6 != 0) goto LAB_0016b4c7;
}
local_54 = uVar11 - uVar10;
local_58 = 1;
}
else {
local_58 = -1;
uVar8 = uVar11 - uVar10;
local_54 = 0;
local_5c = uVar8;
if (1 < param_4) {
local_48 = uVar11;
local_44 = uVar10;
iVar6 = JS_ToFloat64(param_1,&local_38,param_5[2],param_5[3]);
auVar5._8_8_ = local_40;
auVar5._0_8_ = local_50;
auVar4._8_8_ = local_40;
auVar4._0_8_ = local_50;
auVar3._8_8_ = local_40;
auVar3._0_8_ = local_50;
auVar2._8_8_ = local_40;
auVar2._0_8_ = local_50;
auVar15 = auVar5;
if (iVar6 != 0) goto LAB_0016b4c7;
uVar11 = local_48;
uVar10 = local_44;
auVar15 = auVar2;
if (!NAN(local_38)) {
if (local_38 <= 0.0) {
local_5c = 0;
auVar15 = auVar5;
}
else {
auVar15 = auVar3;
if (local_38 < (double)(int)uVar8) {
local_5c = (int)local_38;
auVar15 = auVar4;
}
}
}
}
}
local_50 = auVar15._0_8_;
lVar13 = local_50;
uVar12 = 0xffffffff;
if ((uVar10 <= uVar11) && (uVar11 = local_5c, -1 < (int)((local_54 - local_5c) * local_58))) {
while( true ) {
local_40 = auVar15._8_8_;
local_50 = auVar15._0_8_;
iVar6 = string_cmp(lVar7,lVar13,uVar11,0,uVar10);
auVar15._8_8_ = local_40;
auVar15._0_8_ = local_50;
if (iVar6 == 0) break;
if (local_54 == uVar11) {
uVar11 = 0xffffffff;
break;
}
uVar11 = uVar11 + local_58;
}
uVar12 = (ulong)uVar11;
}
uVar9 = 0;
}
local_40 = auVar15._8_8_;
local_50 = auVar15._0_8_;
auVar1._8_8_ = uVar9;
auVar1._0_8_ = uVar12;
JS_FreeValue(param_1,lVar7,auVar14._8_8_);
JS_FreeValue(param_1,lVar13,local_40);
return auVar1;
}
| |
44,320 | _LexGetIndex | navaro[P]qoraal-tictactoe/build_O3/_deps/qoraal_engine-src/src/tool/parse.c | int
__LexGetIndex(struct LexState * Lexer, enum LexToken idxtok, const char* name, int len, struct Value* Value)
{
int idx = 0 ;
if (/*(idxtok == TokenIndexConstant) && */(isdigit((int)name[0]))) {
Value->Typ = TypeInt;
Value->Id = 0 ; // PARSER_ID(parseConst, PARSER_ID_VALUE(Value->Id)) ;
if (sscanf (name, "%d", &Value->Val.Integer) != 1) {
return 0 ;
}
}
else {
if (parse_get_identifier(name, len, Value)) {
/*
* If it is a variable it is already in the _parser_declared collection.
*/
if (PARSER_ID_TYPE(Value->Id) != parseVariable) {
// not a variable
PARSER_STATEMACHINE_T * statemachine = (PARSER_STATEMACHINE_T *)Lexer->ctx ;
PARSER_REPORT(statemachine->logif, "warning: %s unexpected!\r\n",
Value->Val.Identifier) ;
return 0 ;
}
} else {
/*
* Put it in the string table to use for indexed lookup in an action or function.
*/
idx = collection_count (_parser_strings) ;
if ( parse_install_string(_parser_strings, name, len, idx, Value) ) {
}
}
}
return 1 ;
} | O3 | c | _LexGetIndex:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %r8, %rbx
movl %ecx, %r15d
movq %rdx, %r14
movq %rdi, %r12
callq 0x65f0
movq (%rax), %rax
movsbq (%r14), %rcx
testb $0x8, 0x1(%rax,%rcx,2)
jne 0xd43f
movq %r14, %rdi
movl %r15d, %esi
movq %rbx, %rdx
callq 0xcebd
testl %eax, %eax
je 0xd46e
movzbl 0x12(%rbx), %eax
shll $0x10, %eax
cmpl $0x20000, %eax # imm = 0x20000
je 0xd491
movq 0x20(%r12), %rax
movq 0x50(%rax), %rax
xorl %r15d, %r15d
testq %rax, %rax
je 0xd497
movq 0x8(%rax), %rcx
testq %rcx, %rcx
je 0xd497
movq 0x8(%rbx), %rsi
leaq 0x18b50(%rip), %rdi # 0x25f86
xorl %r15d, %r15d
xorl %eax, %eax
callq *%rcx
jmp 0xd497
movl $0x1, (%rbx)
movl $0x0, 0x10(%rbx)
addq $0x8, %rbx
leaq 0x2669f(%rip), %rsi # 0x33af6
xorl %r15d, %r15d
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x63e0
cmpl $0x1, %eax
je 0xd491
jmp 0xd497
movq 0x31c43(%rip), %rdi # 0x3f0b8
callq 0xaa11
movq 0x31c37(%rip), %rdi # 0x3f0b8
movq %r14, %rsi
movl %r15d, %edx
movl %eax, %ecx
movq %rbx, %r8
callq 0xd67e
movl $0x1, %r15d
movl %r15d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| __LexGetIndex:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov rbx, r8
mov r15d, ecx
mov r14, rdx
mov r12, rdi
call ___ctype_b_loc
mov rax, [rax]
movsx rcx, byte ptr [r14]
test byte ptr [rax+rcx*2+1], 8
jnz short loc_D43F
mov rdi, r14
mov esi, r15d
mov rdx, rbx
call parse_get_identifier
test eax, eax
jz short loc_D46E
movzx eax, byte ptr [rbx+12h]
shl eax, 10h
cmp eax, 20000h
jz loc_D491
mov rax, [r12+20h]
mov rax, [rax+50h]
xor r15d, r15d
test rax, rax
jz short loc_D497
mov rcx, [rax+8]
test rcx, rcx
jz short loc_D497
mov rsi, [rbx+8]
lea rdi, aWarningSUnexpe; "warning: %s unexpected!\r\n"
xor r15d, r15d
xor eax, eax
call rcx
jmp short loc_D497
loc_D43F:
mov dword ptr [rbx], 1
mov dword ptr [rbx+10h], 0
add rbx, 8
lea rsi, aHttpHttpclient_0+1Bh; "%d"
xor r15d, r15d
mov rdi, r14
mov rdx, rbx
xor eax, eax
call ___isoc99_sscanf
cmp eax, 1
jz short loc_D491
jmp short loc_D497
loc_D46E:
mov rdi, cs:_parser_strings
call collection_count
mov rdi, cs:_parser_strings
mov rsi, r14
mov edx, r15d
mov ecx, eax
mov r8, rbx
call parse_install_string
loc_D491:
mov r15d, 1
loc_D497:
mov eax, r15d
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long _LexGetIndex(long long a1, long long a2, char *a3, unsigned int a4, long long a5)
{
long long v8; // rax
unsigned int v9; // r15d
void (*v10)(const char *, ...); // rcx
unsigned int v11; // eax
if ( (*(_BYTE *)(*(_QWORD *)__ctype_b_loc(a1) + 2LL * *a3 + 1) & 8) != 0 )
{
*(_DWORD *)a5 = 1;
*(_DWORD *)(a5 + 16) = 0;
v9 = 0;
if ( (unsigned int)__isoc99_sscanf(a3, "%d", a5 + 8) != 1 )
return v9;
return 1;
}
if ( !(unsigned int)parse_get_identifier((long long)a3, a4, a5) )
{
v11 = collection_count(parser_strings);
parse_install_string(parser_strings, a3, a4, v11, a5);
return 1;
}
if ( *(unsigned __int8 *)(a5 + 18) << 16 == 0x20000 )
return 1;
v8 = *(_QWORD *)(*(_QWORD *)(a1 + 32) + 80LL);
v9 = 0;
if ( v8 )
{
v10 = *(void (**)(const char *, ...))(v8 + 8);
if ( v10 )
{
v9 = 0;
v10("warning: %s unexpected!\r\n", *(const char **)(a5 + 8));
}
}
return v9;
}
| __LexGetIndex:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV RBX,R8
MOV R15D,ECX
MOV R14,RDX
MOV R12,RDI
CALL 0x001065f0
MOV RAX,qword ptr [RAX]
MOVSX RCX,byte ptr [R14]
TEST byte ptr [RAX + RCX*0x2 + 0x1],0x8
JNZ 0x0010d43f
MOV RDI,R14
MOV ESI,R15D
MOV RDX,RBX
CALL 0x0010cebd
TEST EAX,EAX
JZ 0x0010d46e
MOVZX EAX,byte ptr [RBX + 0x12]
SHL EAX,0x10
CMP EAX,0x20000
JZ 0x0010d491
MOV RAX,qword ptr [R12 + 0x20]
MOV RAX,qword ptr [RAX + 0x50]
XOR R15D,R15D
TEST RAX,RAX
JZ 0x0010d497
MOV RCX,qword ptr [RAX + 0x8]
TEST RCX,RCX
JZ 0x0010d497
MOV RSI,qword ptr [RBX + 0x8]
LEA RDI,[0x125f86]
XOR R15D,R15D
XOR EAX,EAX
CALL RCX
JMP 0x0010d497
LAB_0010d43f:
MOV dword ptr [RBX],0x1
MOV dword ptr [RBX + 0x10],0x0
ADD RBX,0x8
LEA RSI,[0x133af6]
XOR R15D,R15D
MOV RDI,R14
MOV RDX,RBX
XOR EAX,EAX
CALL 0x001063e0
CMP EAX,0x1
JZ 0x0010d491
JMP 0x0010d497
LAB_0010d46e:
MOV RDI,qword ptr [0x0013f0b8]
CALL 0x0010aa11
MOV RDI,qword ptr [0x0013f0b8]
MOV RSI,R14
MOV EDX,R15D
MOV ECX,EAX
MOV R8,RBX
CALL 0x0010d67e
LAB_0010d491:
MOV R15D,0x1
LAB_0010d497:
MOV EAX,R15D
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
int8
__LexGetIndex(long param_1,int8 param_2,char *param_3,int4 param_4,int4 *param_5)
{
long lVar1;
code *pcVar2;
int iVar3;
int4 uVar4;
ushort **ppuVar5;
ppuVar5 = __ctype_b_loc();
if ((*(byte *)((long)*ppuVar5 + (long)*param_3 * 2 + 1) & 8) == 0) {
iVar3 = parse_get_identifier(param_3,param_4,param_5);
if (iVar3 == 0) {
uVar4 = collection_count(_parser_strings);
parse_install_string(_parser_strings,param_3,param_4,uVar4,param_5);
}
else if (*(char *)((long)param_5 + 0x12) != '\x02') {
lVar1 = *(long *)(*(long *)(param_1 + 0x20) + 0x50);
if (lVar1 == 0) {
return 0;
}
pcVar2 = *(code **)(lVar1 + 8);
if (pcVar2 == (code *)0x0) {
return 0;
}
(*pcVar2)(s_warning___s_unexpected__00125f86,*(int8 *)(param_5 + 2));
return 0;
}
}
else {
*param_5 = 1;
param_5[4] = 0;
iVar3 = __isoc99_sscanf(param_3,s_HTTP_____httpclient_read__d_00133adb + 0x1b,param_5 + 2);
if (iVar3 != 1) {
return 0;
}
}
return 1;
}
| |
44,321 | pcmp | eloqsql/strings/ctype-simple.c | static int pcmp(const void * f, const void * s)
{
const uni_idx *F= (const uni_idx*) f;
const uni_idx *S= (const uni_idx*) s;
int res;
if (!(res=((S->nchars)-(F->nchars))))
res=((F->uidx.from)-(S->uidx.to));
return res;
} | O3 | c | pcmp:
pushq %rbp
movq %rsp, %rbp
movl (%rsi), %eax
subl (%rdi), %eax
jne 0x4c7a1
movzwl 0x8(%rdi), %eax
movzwl 0xa(%rsi), %ecx
subl %ecx, %eax
popq %rbp
retq
nop
| pcmp:
push rbp
mov rbp, rsp
mov eax, [rsi]
sub eax, [rdi]
jnz short loc_4C7A1
movzx eax, word ptr [rdi+8]
movzx ecx, word ptr [rsi+0Ah]
sub eax, ecx
loc_4C7A1:
pop rbp
retn
| long long pcmp(long long a1, long long a2)
{
long long result; // rax
result = (unsigned int)(*(_DWORD *)a2 - *(_DWORD *)a1);
if ( *(_DWORD *)a2 == *(_DWORD *)a1 )
return *(unsigned __int16 *)(a1 + 8) - (unsigned int)*(unsigned __int16 *)(a2 + 10);
return result;
}
| pcmp:
PUSH RBP
MOV RBP,RSP
MOV EAX,dword ptr [RSI]
SUB EAX,dword ptr [RDI]
JNZ 0x0014c7a1
MOVZX EAX,word ptr [RDI + 0x8]
MOVZX ECX,word ptr [RSI + 0xa]
SUB EAX,ECX
LAB_0014c7a1:
POP RBP
RET
|
int pcmp(int *param_1,int *param_2)
{
int iVar1;
iVar1 = *param_2 - *param_1;
if (iVar1 == 0) {
iVar1 = (uint)*(ushort *)(param_1 + 2) - (uint)*(ushort *)((long)param_2 + 10);
}
return iVar1;
}
| |
44,322 | minja::FilterExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const | monkey531[P]llama/common/minja.hpp | Value do_evaluate(const std::shared_ptr<Context> & context) const override {
Value result;
bool first = true;
for (const auto& part : parts) {
if (!part) throw std::runtime_error("FilterExpr.part is null");
if (first) {
first = false;
result = part->evaluate(context);
} else {
if (auto ce = dynamic_cast<CallExpr*>(part.get())) {
auto target = ce->object->evaluate(context);
ArgumentsValue args = ce->args.evaluate(context);
args.args.insert(args.args.begin(), result);
result = target.call(context, args);
} else {
auto callable = part->evaluate(context);
ArgumentsValue args;
args.args.insert(args.args.begin(), result);
result = callable.call(context, args);
}
}
}
return result;
} | O1 | cpp | minja::FilterExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq %rdx, %rbp
movq %rsi, %r15
leaq 0x40(%rdi), %r12
movq $0x0, 0x48(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movups %xmm0, 0x10(%rdi)
movups %xmm0, 0x20(%rdi)
movups %xmm0, 0x30(%rdi)
movq %rdi, (%rsp)
movb $0x0, 0x40(%rdi)
movq %r12, %rdi
movl $0x1, %esi
callq 0x3dcd2
movq %r12, %rdi
movl $0x1, %esi
callq 0x3dcd2
movq 0x20(%r15), %r13
movq 0x28(%r15), %rbx
cmpq %rbx, %r13
je 0x57538
movb $0x1, %al
leaq 0x58(%rsp), %r15
leaq 0x20(%rsp), %r14
movq %rbp, 0x8(%rsp)
movq %rbx, 0x18(%rsp)
movq (%r13), %rdi
testq %rdi, %rdi
je 0x5754e
testb $0x1, %al
je 0x572f9
movq (%r13), %rsi
movq %r15, %rdi
movq %rbp, %rdx
callq 0x3d950
movq (%rsp), %rdi
movq %r15, %rsi
callq 0x4e446
leaq 0x98(%rsp), %r12
movq %r12, %rdi
xorl %esi, %esi
callq 0x3dcd2
movq %r12, %rdi
callq 0x4ac3e
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x572ac
callq 0x2fde4
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x572be
callq 0x2fde4
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
je 0x572cd
callq 0x2fde4
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x57466
movq 0x87cb6(%rip), %rax # 0xdef98
cmpb $0x0, (%rax)
je 0x57451
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x5745b
movl %eax, 0x14(%rsp)
movq %r14, %r12
movq %r15, %rbx
leaq 0x85f56(%rip), %rsi # 0xdd260
leaq 0x865f7(%rip), %rdx # 0xdd908
xorl %ecx, %ecx
callq 0x18760
testq %rax, %rax
je 0x5737c
movq %rax, %rbp
movq 0x20(%rax), %rsi
movq %rbx, %rdi
movq 0x8(%rsp), %r15
movq %r15, %rdx
callq 0x3d950
addq $0x30, %rbp
movq %r12, %r14
movq %r12, %rdi
movq %rbp, %rsi
movq %r15, %rdx
callq 0x5419e
movq 0x20(%rsp), %rsi
movq %r14, %rdi
movq (%rsp), %rdx
callq 0x56358
movq %r14, %rcx
leaq 0xa8(%rsp), %r14
movq %rbx, %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x554d8
movq (%rsp), %rdi
movq %r14, %rsi
jmp 0x573d5
movq (%r13), %rsi
movq %rbx, %rbp
movq %rbx, %rdi
movq 0x8(%rsp), %rdx
callq 0x3d950
xorps %xmm0, %xmm0
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movq %r12, %r14
movq %r12, %rdi
xorl %esi, %esi
movq (%rsp), %rdx
callq 0x56358
leaq 0xa8(%rsp), %r15
movq %r15, %rdi
movq %rbp, %rsi
movq 0x8(%rsp), %rdx
movq %r14, %rcx
callq 0x554d8
movq (%rsp), %rdi
movq %r15, %rsi
callq 0x4e446
leaq 0xe8(%rsp), %rbp
movq %rbp, %rdi
xorl %esi, %esi
callq 0x3dcd2
movq %rbp, %rdi
callq 0x4ac3e
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0x57406
callq 0x2fde4
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0x57418
callq 0x2fde4
movq 0xc0(%rsp), %rdi
testq %rdi, %rdi
movq %r12, %rbp
je 0x5742d
callq 0x2fde4
movq 0xb0(%rsp), %rdi
testq %rdi, %rdi
je 0x57482
movq 0x87b57(%rip), %rax # 0xdef98
cmpb $0x0, (%rax)
je 0x5746d
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x57477
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x57466
movq (%rdi), %rax
callq *0x18(%rax)
xorl %eax, %eax
jmp 0x5752b
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x57482
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x38(%rsp), %rdi
callq 0x56846
movq %rbp, %rdi
callq 0x4f5c6
leaq 0x98(%rsp), %rbp
movq %rbp, %rdi
xorl %esi, %esi
callq 0x3dcd2
movq %rbp, %rdi
callq 0x4ac3e
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x574c0
callq 0x2fde4
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
movq %rbx, %r15
movq 0x18(%rsp), %rbx
movq 0x8(%rsp), %rbp
je 0x574df
callq 0x2fde4
movq 0x70(%rsp), %rdi
testq %rdi, %rdi
movq %r12, %r14
je 0x574f1
callq 0x2fde4
movq 0x60(%rsp), %rdi
testq %rdi, %rdi
je 0x57527
movq 0x87a96(%rip), %rax # 0xdef98
cmpb $0x0, (%rax)
je 0x57512
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x5751c
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x57527
movq (%rdi), %rax
callq *0x18(%rax)
movl 0x14(%rsp), %eax
addq $0x10, %r13
cmpq %rbx, %r13
jne 0x57250
movq (%rsp), %rax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x18350
movq %rax, %r15
leaq 0x57059(%rip), %rsi # 0xae5bb
movq %rax, %rdi
callq 0x18260
movq 0x87a7f(%rip), %rsi # 0xdeff0
movq 0x879f8(%rip), %rdx # 0xdef70
movq %r15, %rdi
callq 0x18b30
jmp 0x5758f
jmp 0x5758f
jmp 0x575c1
jmp 0x5758f
movq %rax, %r14
jmp 0x575a6
jmp 0x575c1
movq %rax, %r14
leaq 0x38(%rsp), %rdi
callq 0x56846
leaq 0x20(%rsp), %rdi
callq 0x4f5c6
leaq 0x58(%rsp), %rdi
callq 0x3dc46
jmp 0x575c4
jmp 0x575c1
movq %rax, %r14
movq %r15, %rdi
callq 0x184f0
jmp 0x575c4
movq %rax, %r14
movq (%rsp), %rdi
callq 0x3dc46
movq %r14, %rdi
callq 0x18bb0
nop
| _ZNK5minja10FilterExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0F8h
mov rbp, rdx
mov r15, rsi
lea r12, [rdi+40h]
mov qword ptr [rdi+48h], 0
xorps xmm0, xmm0
movups xmmword ptr [rdi], xmm0
movups xmmword ptr [rdi+10h], xmm0
movups xmmword ptr [rdi+20h], xmm0
movups xmmword ptr [rdi+30h], xmm0
mov [rsp+128h+var_128], rdi
mov byte ptr [rdi+40h], 0
mov rdi, r12
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, r12
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 r13, [r15+20h]
mov rbx, [r15+28h]
cmp r13, rbx
jz loc_57538
mov al, 1
lea r15, [rsp+128h+var_D0]
lea r14, [rsp+128h+var_108]
mov [rsp+128h+var_120], rbp
mov [rsp+128h+var_110], rbx
loc_57250:
mov rdi, [r13+0]; lpsrc
test rdi, rdi
jz loc_5754E
test al, 1
jz loc_572F9
mov rsi, [r13+0]
mov rdi, r15
mov rdx, rbp
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
mov rdi, [rsp+128h+var_128]
mov rsi, r15
call _ZN5minja5ValueaSEOS0_; minja::Value::operator=(minja::Value&&)
lea r12, [rsp+128h+var_90]
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()
mov rdi, [rsp+128h+var_98]
test rdi, rdi
jz short loc_572AC
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_572AC:
mov rdi, [rsp+128h+var_A8]
test rdi, rdi
jz short loc_572BE
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_572BE:
mov rdi, [rsp+128h+var_B8]
test rdi, rdi
jz short loc_572CD
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_572CD:
mov rdi, [rsp+128h+var_C8]
test rdi, rdi
jz loc_57466
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz loc_57451
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp loc_5745B
loc_572F9:
mov [rsp+128h+var_114], eax
mov r12, r14
mov rbx, r15
lea rsi, _ZTIN5minja10ExpressionE; lpstype
lea rdx, _ZTIN5minja8CallExprE; lpdtype
xor ecx, ecx; s2d
call ___dynamic_cast
test rax, rax
jz short loc_5737C
mov rbp, rax
mov rsi, [rax+20h]
mov rdi, rbx
mov r15, [rsp+128h+var_120]
mov rdx, r15
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
add rbp, 30h ; '0'
mov r14, r12
mov rdi, r12
mov rsi, rbp
mov rdx, r15
call _ZNK5minja19ArgumentsExpression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::ArgumentsExpression::evaluate(std::shared_ptr<minja::Context> const&)
mov rsi, qword ptr [rsp+128h+var_108]
mov rdi, r14
mov rdx, [rsp+128h+var_128]
call _ZNSt6vectorIN5minja5ValueESaIS1_EE6insertEN9__gnu_cxx17__normal_iteratorIPKS1_S3_EERS6_; std::vector<minja::Value>::insert(__gnu_cxx::__normal_iterator<minja::Value const*,std::vector<minja::Value>>,minja::Value const&)
mov rcx, r14
lea r14, [rsp+128h+var_80]
mov rsi, rbx
mov rdi, r14
mov rdx, r15
call _ZNK5minja5Value4callERKSt10shared_ptrINS_7ContextEERNS_14ArgumentsValueE; minja::Value::call(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)
mov rdi, [rsp+128h+var_128]
mov rsi, r14
jmp short loc_573D5
loc_5737C:
mov rsi, [r13+0]
mov rbp, rbx
mov rdi, rbx
mov rdx, [rsp+128h+var_120]
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
xorps xmm0, xmm0
movaps [rsp+128h+var_E8], xmm0
movaps [rsp+128h+var_F8], xmm0
movaps [rsp+128h+var_108], xmm0
mov r14, r12
mov rdi, r12
xor esi, esi
mov rdx, [rsp+128h+var_128]
call _ZNSt6vectorIN5minja5ValueESaIS1_EE6insertEN9__gnu_cxx17__normal_iteratorIPKS1_S3_EERS6_; std::vector<minja::Value>::insert(__gnu_cxx::__normal_iterator<minja::Value const*,std::vector<minja::Value>>,minja::Value const&)
lea r15, [rsp+128h+var_80]
mov rdi, r15
mov rsi, rbp
mov rdx, [rsp+128h+var_120]
mov rcx, r14
call _ZNK5minja5Value4callERKSt10shared_ptrINS_7ContextEERNS_14ArgumentsValueE; minja::Value::call(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)
mov rdi, [rsp+128h+var_128]
mov rsi, r15
loc_573D5:
call _ZN5minja5ValueaSEOS0_; minja::Value::operator=(minja::Value&&)
lea rbp, [rsp+128h+var_40]
mov rdi, rbp
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, rbp
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [rsp+128h+var_48]
test rdi, rdi
jz short loc_57406
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_57406:
mov rdi, [rsp+128h+var_58]
test rdi, rdi
jz short loc_57418
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_57418:
mov rdi, [rsp+128h+var_68]
test rdi, rdi
mov rbp, r12
jz short loc_5742D
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_5742D:
mov rdi, [rsp+128h+var_78]
test rdi, rdi
jz short loc_57482
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_5746D
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_57477
loc_57451:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_5745B:
cmp eax, 1
jnz short loc_57466
mov rax, [rdi]
call qword ptr [rax+18h]
loc_57466:
xor eax, eax
jmp loc_5752B
loc_5746D:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_57477:
cmp eax, 1
jnz short loc_57482
mov rax, [rdi]
call qword ptr [rax+18h]
loc_57482:
lea rdi, [rsp+128h+var_F8+8]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5minja5ValueEESaIS9_EED2Ev; std::vector<std::pair<std::string,minja::Value>>::~vector()
mov rdi, rbp
call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector()
lea rbp, [rsp+128h+var_90]
mov rdi, rbp
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, rbp
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [rsp+128h+var_98]
test rdi, rdi
jz short loc_574C0
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_574C0:
mov rdi, [rsp+128h+var_A8]
test rdi, rdi
mov r15, rbx
mov rbx, [rsp+128h+var_110]
mov rbp, [rsp+128h+var_120]
jz short loc_574DF
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_574DF:
mov rdi, [rsp+128h+var_B8]
test rdi, rdi
mov r14, r12
jz short loc_574F1
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_574F1:
mov rdi, [rsp+128h+var_C8]
test rdi, rdi
jz short loc_57527
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_57512
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_5751C
loc_57512:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_5751C:
cmp eax, 1
jnz short loc_57527
mov rax, [rdi]
call qword ptr [rax+18h]
loc_57527:
mov eax, [rsp+128h+var_114]
loc_5752B:
add r13, 10h
cmp r13, rbx
jnz loc_57250
loc_57538:
mov rax, [rsp+128h+var_128]
add rsp, 0F8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_5754E:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r15, rax
lea rsi, aFilterexprPart; "FilterExpr.part is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *)
mov rdi, r15; void *
call ___cxa_throw
jmp short loc_5758F
jmp short loc_5758F
jmp short loc_575C1
jmp short loc_5758F
mov r14, rax
jmp short loc_575A6
jmp short loc_575C1
loc_5758F:
mov r14, rax
lea rdi, [rsp+128h+var_F8+8]
call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5minja5ValueEESaIS9_EED2Ev; std::vector<std::pair<std::string,minja::Value>>::~vector()
lea rdi, [rsp+128h+var_108]
call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector()
loc_575A6:
lea rdi, [rsp+128h+var_D0]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
jmp short loc_575C4
jmp short loc_575C1
mov r14, rax
mov rdi, r15; void *
call ___cxa_free_exception
jmp short loc_575C4
loc_575C1:
mov r14, rax
loc_575C4:
mov rdi, [rsp+128h+var_128]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov rdi, r14
call __Unwind_Resume
| long long minja::FilterExpr::do_evaluate(long long a1, long long a2, long long a3)
{
int v3; // eax
void (****v5)(void); // r13
void (****v6)(void); // rbx
long long v7; // rdi
signed __int32 v8; // eax
void (****v9)(void); // rax
void (****v10)(void); // rbp
long long v11; // rdi
signed __int32 v12; // eax
long long v13; // rdi
signed __int32 v14; // eax
std::runtime_error *exception; // r15
long long v18; // [rsp+8h] [rbp-120h]
int v19; // [rsp+14h] [rbp-114h]
void (****v20)(void); // [rsp+18h] [rbp-110h]
_OWORD v21[3]; // [rsp+20h] [rbp-108h] BYREF
char v22[8]; // [rsp+58h] [rbp-D0h] BYREF
long long v23; // [rsp+60h] [rbp-C8h]
volatile signed __int32 *v24; // [rsp+70h] [rbp-B8h]
volatile signed __int32 *v25; // [rsp+80h] [rbp-A8h]
volatile signed __int32 *v26; // [rsp+90h] [rbp-98h]
void *v27[2]; // [rsp+98h] [rbp-90h] BYREF
char v28[8]; // [rsp+A8h] [rbp-80h] BYREF
long long v29; // [rsp+B0h] [rbp-78h]
volatile signed __int32 *v30; // [rsp+C0h] [rbp-68h]
volatile signed __int32 *v31; // [rsp+D0h] [rbp-58h]
volatile signed __int32 *v32; // [rsp+E0h] [rbp-48h]
void *v33[8]; // [rsp+E8h] [rbp-40h] BYREF
*(_QWORD *)(a1 + 72) = 0LL;
*(_OWORD *)a1 = 0LL;
*(_OWORD *)(a1 + 16) = 0LL;
*(_OWORD *)(a1 + 32) = 0LL;
*(_OWORD *)(a1 + 48) = 0LL;
*(_BYTE *)(a1 + 64) = 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>::assert_invariant((char *)(a1 + 64));
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 + 64));
v5 = *(void (*****)(void))(a2 + 32);
v6 = *(void (*****)(void))(a2 + 40);
if ( v5 != v6 )
{
LOBYTE(v3) = 1;
v18 = a3;
v20 = *(void (*****)(void))(a2 + 40);
do
{
if ( !*v5 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "FilterExpr.part is null");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( (v3 & 1) != 0 )
{
minja::Expression::evaluate((long long)v22, *v5);
minja::Value::operator=(a1, (long long)v22);
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 *)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);
if ( v26 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v26);
if ( v25 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v25);
if ( v24 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v24);
v7 = v23;
if ( v23 )
{
if ( _libc_single_threaded )
{
v8 = *(_DWORD *)(v23 + 12);
*(_DWORD *)(v23 + 12) = v8 - 1;
}
else
{
v8 = _InterlockedExchangeAdd((volatile signed __int32 *)(v23 + 12), 0xFFFFFFFF);
}
if ( v8 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v7 + 24LL))(v7, 0LL);
}
v3 = 0;
}
else
{
v19 = v3;
v9 = (void (****)(void))__dynamic_cast(
*v5,
(const struct __class_type_info *)&`typeinfo for'minja::Expression,
(const struct __class_type_info *)&`typeinfo for'minja::CallExpr,
0LL);
if ( v9 )
{
v10 = v9;
minja::Expression::evaluate((long long)v22, v9[4]);
minja::ArgumentsExpression::evaluate(v21, v10 + 6, v18);
std::vector<minja::Value>::insert((long long *)v21, *(long long *)&v21[0], (const minja::Value *)a1);
}
else
{
minja::Expression::evaluate((long long)v22, *v5);
memset(v21, 0, sizeof(v21));
std::vector<minja::Value>::insert((long long *)v21, 0LL, (const minja::Value *)a1);
}
minja::Value::call((long long)v28, (long long)v22);
minja::Value::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>::assert_invariant((char *)v33);
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(v33);
if ( v32 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v32);
if ( v31 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v31);
if ( v30 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v30);
v11 = v29;
if ( v29 )
{
if ( _libc_single_threaded )
{
v12 = *(_DWORD *)(v29 + 12);
*(_DWORD *)(v29 + 12) = v12 - 1;
}
else
{
v12 = _InterlockedExchangeAdd((volatile signed __int32 *)(v29 + 12), 0xFFFFFFFF);
}
if ( v12 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v11 + 24LL))(v11, 0LL);
}
std::vector<std::pair<std::string,minja::Value>>::~vector((long long *)&v21[1] + 1);
std::vector<minja::Value>::~vector(v21);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)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);
if ( v26 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v26);
v6 = v20;
if ( v25 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v25);
if ( v24 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v24);
v13 = v23;
if ( v23 )
{
if ( _libc_single_threaded )
{
v14 = *(_DWORD *)(v23 + 12);
*(_DWORD *)(v23 + 12) = v14 - 1;
}
else
{
v14 = _InterlockedExchangeAdd((volatile signed __int32 *)(v23 + 12), 0xFFFFFFFF);
}
if ( v14 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v13 + 24LL))(v13, 0LL);
}
v3 = v19;
}
v5 += 2;
}
while ( v5 != v6 );
}
return a1;
}
| do_evaluate:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xf8
MOV RBP,RDX
MOV R15,RSI
LEA R12,[RDI + 0x40]
MOV qword ptr [RDI + 0x48],0x0
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI],XMM0
MOVUPS xmmword ptr [RDI + 0x10],XMM0
MOVUPS xmmword ptr [RDI + 0x20],XMM0
MOVUPS xmmword ptr [RDI + 0x30],XMM0
MOV qword ptr [RSP],RDI
MOV byte ptr [RDI + 0x40],0x0
MOV RDI,R12
MOV ESI,0x1
CALL 0x0013dcd2
MOV RDI,R12
MOV ESI,0x1
CALL 0x0013dcd2
MOV R13,qword ptr [R15 + 0x20]
MOV RBX,qword ptr [R15 + 0x28]
CMP R13,RBX
JZ 0x00157538
MOV AL,0x1
LEA R15,[RSP + 0x58]
LEA R14,[RSP + 0x20]
MOV qword ptr [RSP + 0x8],RBP
MOV qword ptr [RSP + 0x18],RBX
LAB_00157250:
MOV RDI,qword ptr [R13]
TEST RDI,RDI
JZ 0x0015754e
TEST AL,0x1
JZ 0x001572f9
MOV RSI,qword ptr [R13]
LAB_00157269:
MOV RDI,R15
MOV RDX,RBP
CALL 0x0013d950
MOV RDI,qword ptr [RSP]
MOV RSI,R15
CALL 0x0014e446
LEA R12,[RSP + 0x98]
MOV RDI,R12
XOR ESI,ESI
CALL 0x0013dcd2
MOV RDI,R12
CALL 0x0014ac3e
MOV RDI,qword ptr [RSP + 0x90]
TEST RDI,RDI
JZ 0x001572ac
CALL 0x0012fde4
LAB_001572ac:
MOV RDI,qword ptr [RSP + 0x80]
TEST RDI,RDI
JZ 0x001572be
CALL 0x0012fde4
LAB_001572be:
MOV RDI,qword ptr [RSP + 0x70]
TEST RDI,RDI
JZ 0x001572cd
CALL 0x0012fde4
LAB_001572cd:
MOV RDI,qword ptr [RSP + 0x60]
TEST RDI,RDI
JZ 0x00157466
MOV RAX,qword ptr [0x001def98]
CMP byte ptr [RAX],0x0
JZ 0x00157451
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x0015745b
LAB_001572f9:
MOV dword ptr [RSP + 0x14],EAX
MOV R12,R14
MOV RBX,R15
LEA RSI,[0x1dd260]
LEA RDX,[0x1dd908]
XOR ECX,ECX
CALL 0x00118760
TEST RAX,RAX
JZ 0x0015737c
MOV RBP,RAX
MOV RSI,qword ptr [RAX + 0x20]
LAB_00157324:
MOV RDI,RBX
MOV R15,qword ptr [RSP + 0x8]
MOV RDX,R15
CALL 0x0013d950
ADD RBP,0x30
LAB_00157338:
MOV R14,R12
MOV RDI,R12
MOV RSI,RBP
MOV RDX,R15
CALL 0x0015419e
MOV RSI,qword ptr [RSP + 0x20]
LAB_0015734e:
MOV RDI,R14
MOV RDX,qword ptr [RSP]
CALL 0x00156358
MOV RCX,R14
LEA R14,[RSP + 0xa8]
LAB_00157365:
MOV RSI,RBX
MOV RDI,R14
MOV RDX,R15
CALL 0x001554d8
MOV RDI,qword ptr [RSP]
MOV RSI,R14
JMP 0x001573d5
LAB_0015737c:
MOV RSI,qword ptr [R13]
LAB_00157380:
MOV RBP,RBX
MOV RDI,RBX
MOV RDX,qword ptr [RSP + 0x8]
CALL 0x0013d950
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOVAPS xmmword ptr [RSP + 0x30],XMM0
MOVAPS xmmword ptr [RSP + 0x20],XMM0
LAB_001573a2:
MOV R14,R12
MOV RDI,R12
XOR ESI,ESI
MOV RDX,qword ptr [RSP]
CALL 0x00156358
LEA R15,[RSP + 0xa8]
LAB_001573bb:
MOV RDI,R15
MOV RSI,RBP
MOV RDX,qword ptr [RSP + 0x8]
MOV RCX,R14
CALL 0x001554d8
LAB_001573ce:
MOV RDI,qword ptr [RSP]
MOV RSI,R15
LAB_001573d5:
CALL 0x0014e446
LEA RBP,[RSP + 0xe8]
MOV RDI,RBP
XOR ESI,ESI
CALL 0x0013dcd2
MOV RDI,RBP
CALL 0x0014ac3e
MOV RDI,qword ptr [RSP + 0xe0]
TEST RDI,RDI
JZ 0x00157406
CALL 0x0012fde4
LAB_00157406:
MOV RDI,qword ptr [RSP + 0xd0]
TEST RDI,RDI
JZ 0x00157418
CALL 0x0012fde4
LAB_00157418:
MOV RDI,qword ptr [RSP + 0xc0]
TEST RDI,RDI
MOV RBP,R12
JZ 0x0015742d
CALL 0x0012fde4
LAB_0015742d:
MOV RDI,qword ptr [RSP + 0xb0]
TEST RDI,RDI
JZ 0x00157482
MOV RAX,qword ptr [0x001def98]
CMP byte ptr [RAX],0x0
JZ 0x0015746d
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x00157477
LAB_00157451:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_0015745b:
CMP EAX,0x1
JNZ 0x00157466
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_00157466:
XOR EAX,EAX
JMP 0x0015752b
LAB_0015746d:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_00157477:
CMP EAX,0x1
JNZ 0x00157482
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_00157482:
LEA RDI,[RSP + 0x38]
CALL 0x00156846
MOV RDI,RBP
CALL 0x0014f5c6
LEA RBP,[RSP + 0x98]
MOV RDI,RBP
XOR ESI,ESI
CALL 0x0013dcd2
MOV RDI,RBP
CALL 0x0014ac3e
MOV RDI,qword ptr [RSP + 0x90]
TEST RDI,RDI
JZ 0x001574c0
CALL 0x0012fde4
LAB_001574c0:
MOV RDI,qword ptr [RSP + 0x80]
TEST RDI,RDI
MOV R15,RBX
MOV RBX,qword ptr [RSP + 0x18]
MOV RBP,qword ptr [RSP + 0x8]
JZ 0x001574df
CALL 0x0012fde4
LAB_001574df:
MOV RDI,qword ptr [RSP + 0x70]
TEST RDI,RDI
MOV R14,R12
JZ 0x001574f1
CALL 0x0012fde4
LAB_001574f1:
MOV RDI,qword ptr [RSP + 0x60]
TEST RDI,RDI
JZ 0x00157527
MOV RAX,qword ptr [0x001def98]
CMP byte ptr [RAX],0x0
JZ 0x00157512
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x0015751c
LAB_00157512:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_0015751c:
CMP EAX,0x1
JNZ 0x00157527
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_00157527:
MOV EAX,dword ptr [RSP + 0x14]
LAB_0015752b:
ADD R13,0x10
CMP R13,RBX
JNZ 0x00157250
LAB_00157538:
MOV RAX,qword ptr [RSP]
ADD RSP,0xf8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0015754e:
MOV EDI,0x10
CALL 0x00118350
MOV R15,RAX
LAB_0015755b:
LEA RSI,[0x1ae5bb]
MOV RDI,RAX
CALL 0x00118260
LAB_0015756a:
MOV RSI,qword ptr [0x001deff0]
MOV RDX,qword ptr [0x001def70]
MOV RDI,R15
CALL 0x00118b30
|
/* minja::FilterExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */
FilterExpr * __thiscall minja::FilterExpr::do_evaluate(FilterExpr *this,shared_ptr *param_1)
{
int *piVar1;
long *plVar2;
int iVar3;
long lVar4;
runtime_error *this_00;
bool bVar5;
long *plVar6;
int8 local_108;
int8 uStack_100;
int8 local_f8;
int8 uStack_f0;
int8 local_e8;
int8 uStack_e0;
Expression local_d0 [8];
long *local_c8;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_b8;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_a8;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_98;
data local_90 [16];
shared_ptr local_80 [8];
long *local_78;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_68;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_58;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_48;
data local_40 [16];
bVar5 = (bool)((char)this + '@');
*(int8 *)(this + 0x48) = 0;
*(int8 *)this = 0;
*(int8 *)(this + 8) = 0;
*(int8 *)(this + 0x10) = 0;
*(int8 *)(this + 0x18) = 0;
*(int8 *)(this + 0x20) = 0;
*(int8 *)(this + 0x28) = 0;
*(int8 *)(this + 0x30) = 0;
*(int8 *)(this + 0x38) = 0;
this[0x40] = (FilterExpr)0x0;
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(bVar5);
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(bVar5);
plVar6 = *(long **)(param_1 + 0x20);
plVar2 = *(long **)(param_1 + 0x28);
if (plVar6 != plVar2) {
bVar5 = true;
do {
if (*plVar6 == 0) {
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 0015755b to 00157569 has its CatchHandler @ 001575b4 */
std::runtime_error::runtime_error(this_00,"FilterExpr.part is null");
/* try { // try from 0015756a to 0015757f has its CatchHandler @ 001575b2 */
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_001deff0,PTR__runtime_error_001def70);
}
if (bVar5) {
/* try { // try from 00157269 to 00157273 has its CatchHandler @ 001575c1 */
Expression::evaluate(local_d0,(shared_ptr *)*plVar6);
Value::operator=((Value *)this,(Value *)local_d0);
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_90,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_90);
if (local_98 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_98);
}
if (local_a8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_a8);
}
if (local_b8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_b8);
}
if (local_c8 != (long *)0x0) {
if (*PTR___libc_single_threaded_001def98 == '\0') {
LOCK();
piVar1 = (int *)((long)local_c8 + 0xc);
iVar3 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar3 = *(int *)((long)local_c8 + 0xc);
*(int *)((long)local_c8 + 0xc) = iVar3 + -1;
}
if (iVar3 == 1) {
(**(code **)(*local_c8 + 0x18))();
}
}
bVar5 = false;
}
else {
lVar4 = __dynamic_cast(*plVar6,&Expression::typeinfo,&CallExpr::typeinfo,0);
if (lVar4 == 0) {
/* try { // try from 00157380 to 0015738f has its CatchHandler @ 00157584 */
Expression::evaluate(local_d0,(shared_ptr *)*plVar6);
local_e8 = 0;
uStack_e0 = 0;
local_f8 = 0;
uStack_f0 = 0;
local_108 = 0;
uStack_100 = 0;
/* try { // try from 001573a2 to 001573b2 has its CatchHandler @ 00157582 */
std::vector<minja::Value,std::allocator<minja::Value>>::insert
((vector<minja::Value,std::allocator<minja::Value>> *)&local_108,0,this);
/* try { // try from 001573bb to 001573cd has its CatchHandler @ 00157580 */
Value::call(local_80,(ArgumentsValue *)local_d0);
}
else {
/* try { // try from 00157324 to 00157333 has its CatchHandler @ 0015758d */
Expression::evaluate(local_d0,*(shared_ptr **)(lVar4 + 0x20));
/* try { // try from 00157338 to 00157348 has its CatchHandler @ 00157588 */
ArgumentsExpression::evaluate((shared_ptr *)&local_108);
/* try { // try from 0015734e to 00157359 has its CatchHandler @ 00157586 */
std::vector<minja::Value,std::allocator<minja::Value>>::insert
((vector<minja::Value,std::allocator<minja::Value>> *)&local_108,local_108,this)
;
/* try { // try from 00157365 to 00157372 has its CatchHandler @ 0015758f */
Value::call(local_80,(ArgumentsValue *)local_d0);
}
Value::operator=((Value *)this,(Value *)local_80);
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_40,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_40);
if (local_48 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_48);
}
if (local_58 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_58);
}
if (local_68 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_68);
}
if (local_78 != (long *)0x0) {
if (*PTR___libc_single_threaded_001def98 == '\0') {
LOCK();
piVar1 = (int *)((long)local_78 + 0xc);
iVar3 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar3 = *(int *)((long)local_78 + 0xc);
*(int *)((long)local_78 + 0xc) = iVar3 + -1;
}
if (iVar3 == 1) {
(**(code **)(*local_78 + 0x18))();
}
}
std::
vector<std::pair<std::__cxx11::string,minja::Value>,std::allocator<std::pair<std::__cxx11::string,minja::Value>>>
::~vector((vector<std::pair<std::__cxx11::string,minja::Value>,std::allocator<std::pair<std::__cxx11::string,minja::Value>>>
*)&uStack_f0);
std::vector<minja::Value,std::allocator<minja::Value>>::~vector
((vector<minja::Value,std::allocator<minja::Value>> *)&local_108);
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_90,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_90);
if (local_98 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_98);
}
if (local_a8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_a8);
}
if (local_b8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_b8);
}
if (local_c8 != (long *)0x0) {
if (*PTR___libc_single_threaded_001def98 == '\0') {
LOCK();
piVar1 = (int *)((long)local_c8 + 0xc);
iVar3 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar3 = *(int *)((long)local_c8 + 0xc);
*(int *)((long)local_c8 + 0xc) = iVar3 + -1;
}
if (iVar3 == 1) {
(**(code **)(*local_c8 + 0x18))();
}
}
}
plVar6 = plVar6 + 2;
} while (plVar6 != plVar2);
}
return this;
}
| |
44,323 | check_struct_option | eloqsql/mysys/my_getopt.c | static char *check_struct_option(char *cur_arg, char *key_name)
{
char *ptr, *end;
DBUG_ENTER("check_struct_option");
ptr= strcend(cur_arg + 1, '.'); /* Skip the first character */
end= strcend(cur_arg, '=');
/*
If the first dot is after an equal sign, then it is part
of a variable value and the option is not a struct option.
Also, if the last character in the string before the ending
NULL, or the character right before equal sign is the first
dot found, the option is not a struct option.
*/
if (end - ptr > 1)
{
uint len= (uint) (ptr - cur_arg);
set_if_smaller(len, FN_REFLEN-1);
strmake(key_name, cur_arg, len);
DBUG_RETURN(++ptr);
}
else
{
key_name[0]= 0;
DBUG_RETURN(cur_arg);
}
} | O0 | c | check_struct_option:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
addq $0x1, %rdi
movl $0x2e, %esi
callq 0x7fc60
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
movl $0x3d, %esi
callq 0x7fc60
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq -0x20(%rbp), %rcx
subq %rcx, %rax
cmpq $0x1, %rax
jle 0x28cdd
movq -0x20(%rbp), %rax
movq -0x10(%rbp), %rcx
subq %rcx, %rax
movl %eax, -0x2c(%rbp)
cmpl $0x1ff, -0x2c(%rbp) # imm = 0x1FF
jbe 0x28cb7
movl $0x1ff, -0x2c(%rbp) # imm = 0x1FF
jmp 0x28cb9
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rsi
movl -0x2c(%rbp), %eax
movl %eax, %edx
callq 0x7fd40
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
movq %rax, -0x8(%rbp)
jmp 0x28cec
movq -0x18(%rbp), %rax
movb $0x0, (%rax)
movq -0x10(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| check_struct_option:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rdi, [rbp+var_10]
add rdi, 1
mov esi, 2Eh ; '.'
call strcend
mov [rbp+var_20], rax
mov rdi, [rbp+var_10]
mov esi, 3Dh ; '='
call strcend
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov rcx, [rbp+var_20]
sub rax, rcx
cmp rax, 1
jle short loc_28CDD
mov rax, [rbp+var_20]
mov rcx, [rbp+var_10]
sub rax, rcx
mov [rbp+var_2C], eax
cmp [rbp+var_2C], 1FFh
jbe short loc_28CB7
mov [rbp+var_2C], 1FFh
loc_28CB7:
jmp short $+2
loc_28CB9:
mov rdi, [rbp+var_18]
mov rsi, [rbp+var_10]
mov eax, [rbp+var_2C]
mov edx, eax
call strmake
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
mov [rbp+var_8], rax
jmp short loc_28CEC
loc_28CDD:
mov rax, [rbp+var_18]
mov byte ptr [rax], 0
mov rax, [rbp+var_10]
mov [rbp+var_8], rax
loc_28CEC:
mov rax, [rbp+var_8]
add rsp, 30h
pop rbp
retn
| long long check_struct_option(long long a1, _BYTE *a2)
{
unsigned int v3; // [rsp+4h] [rbp-2Ch]
long long v4; // [rsp+10h] [rbp-20h]
v4 = strcend(a1 + 1, 46LL);
if ( strcend(a1, 61LL) - v4 <= 1 )
{
*a2 = 0;
return a1;
}
else
{
v3 = v4 - a1;
if ( (unsigned int)(v4 - a1) > 0x1FF )
v3 = 511;
strmake(a2, a1, v3);
return v4 + 1;
}
}
| check_struct_option:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x1
MOV ESI,0x2e
CALL 0x0017fc60
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,0x3d
CALL 0x0017fc60
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RCX,qword ptr [RBP + -0x20]
SUB RAX,RCX
CMP RAX,0x1
JLE 0x00128cdd
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x10]
SUB RAX,RCX
MOV dword ptr [RBP + -0x2c],EAX
CMP dword ptr [RBP + -0x2c],0x1ff
JBE 0x00128cb7
MOV dword ptr [RBP + -0x2c],0x1ff
LAB_00128cb7:
JMP 0x00128cb9
LAB_00128cb9:
MOV RDI,qword ptr [RBP + -0x18]
MOV RSI,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RBP + -0x2c]
MOV EDX,EAX
CALL 0x0017fd40
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
MOV qword ptr [RBP + -0x8],RAX
JMP 0x00128cec
LAB_00128cdd:
MOV RAX,qword ptr [RBP + -0x18]
MOV byte ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x8],RAX
LAB_00128cec:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x30
POP RBP
RET
|
long check_struct_option(long param_1,int1 *param_2)
{
long lVar1;
int4 local_34;
int8 local_10;
local_10 = strcend(param_1 + 1,0x2e);
lVar1 = strcend(param_1,0x3d);
if (lVar1 - local_10 < 2) {
*param_2 = 0;
local_10 = param_1;
}
else {
local_34 = (int)local_10 - (int)param_1;
if (0x1ff < local_34) {
local_34 = 0x1ff;
}
strmake(param_2,param_1,local_34);
local_10 = local_10 + 1;
}
return local_10;
}
| |
44,324 | ma_set_dynamic | eloqsql/libmariadb/libmariadb/ma_array.c | my_bool ma_set_dynamic(DYNAMIC_ARRAY *array, void * element, uint idx)
{
if (idx >= array->elements)
{
if (idx >= array->max_element)
{
uint size;
char *new_ptr;
size=(idx+array->alloc_increment)/array->alloc_increment;
size*= array->alloc_increment;
if (!(new_ptr=(char*) realloc(array->buffer,size*
array->size_of_element)))
return TRUE;
array->buffer=new_ptr;
array->max_element=size;
}
memset((array->buffer+array->elements*array->size_of_element), 0,
(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 | ma_set_dynamic:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %r14d
movq %rsi, %rbx
movq %rdi, %r15
movl 0x8(%rdi), %eax
cmpl %edx, %eax
ja 0x2fbc8
movq (%r15), %rcx
cmpl %r14d, 0xc(%r15)
ja 0x2fba5
movl 0x10(%r15), %esi
movl %esi, %r12d
addl %r14d, %r12d
movl %r12d, %eax
xorl %edx, %edx
divl %esi
subl %edx, %r12d
movl 0x14(%r15), %esi
imull %r12d, %esi
movq %rcx, %rdi
callq 0x13730
testq %rax, %rax
je 0x2fbe9
movq %rax, %rcx
movq %rax, (%r15)
movl %r12d, 0xc(%r15)
movl 0x8(%r15), %eax
movl 0x14(%r15), %esi
movl %r14d, %edx
subl %eax, %edx
imull %esi, %edx
movl %esi, %edi
imull %eax, %edi
addq %rcx, %rdi
xorl %esi, %esi
callq 0x13260
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 0x13390
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movb $0x1, %al
jmp 0x2fbe0
| ma_set_dynamic:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
mov r14d, edx
mov rbx, rsi
mov r15, rdi
mov eax, [rdi+8]
cmp eax, edx
ja short loc_2FBC8
mov rcx, [r15]
cmp [r15+0Ch], r14d
ja short loc_2FBA5
mov esi, [r15+10h]
mov r12d, esi
add r12d, r14d
mov eax, r12d
xor edx, edx
div esi
sub r12d, edx
mov esi, [r15+14h]
imul esi, r12d
mov rdi, rcx
call _realloc
test rax, rax
jz short loc_2FBE9
mov rcx, rax
mov [r15], rax
mov [r15+0Ch], r12d
mov eax, [r15+8]
loc_2FBA5:
mov esi, [r15+14h]
mov edx, r14d
sub edx, eax
imul edx, esi
mov edi, esi
imul edi, eax
add rdi, rcx
xor esi, esi
call _memset
lea eax, [r14+1]
mov [r15+8], eax
loc_2FBC8:
mov edx, [r15+14h]
imul r14d, edx
add r14, [r15]
mov rdi, r14
mov rsi, rbx
call _memcpy
xor eax, eax
loc_2FBE0:
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_2FBE9:
mov al, 1
jmp short loc_2FBE0
| long long ma_set_dynamic(long long *a1, long long a2, unsigned int a3)
{
unsigned int v4; // eax
long long v5; // rcx
unsigned int v6; // r12d
long long v7; // rax
v4 = *((_DWORD *)a1 + 2);
if ( v4 > a3 )
goto LABEL_6;
v5 = *a1;
if ( *((_DWORD *)a1 + 3) > a3 )
{
LABEL_5:
memset(v5 + v4 * *((_DWORD *)a1 + 5), 0LL, *((_DWORD *)a1 + 5) * (a3 - v4));
*((_DWORD *)a1 + 2) = a3 + 1;
LABEL_6:
memcpy(*a1 + *((_DWORD *)a1 + 5) * a3, a2, *((unsigned int *)a1 + 5));
return 0LL;
}
v6 = a3 + *((_DWORD *)a1 + 4) - (a3 + *((_DWORD *)a1 + 4)) % *((_DWORD *)a1 + 4);
v7 = realloc(*a1, v6 * *((_DWORD *)a1 + 5));
if ( v7 )
{
v5 = v7;
*a1 = v7;
*((_DWORD *)a1 + 3) = v6;
v4 = *((_DWORD *)a1 + 2);
goto LABEL_5;
}
return 1LL;
}
| ma_set_dynamic:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R14D,EDX
MOV RBX,RSI
MOV R15,RDI
MOV EAX,dword ptr [RDI + 0x8]
CMP EAX,EDX
JA 0x0012fbc8
MOV RCX,qword ptr [R15]
CMP dword ptr [R15 + 0xc],R14D
JA 0x0012fba5
MOV ESI,dword ptr [R15 + 0x10]
MOV R12D,ESI
ADD R12D,R14D
MOV EAX,R12D
XOR EDX,EDX
DIV ESI
SUB R12D,EDX
MOV ESI,dword ptr [R15 + 0x14]
IMUL ESI,R12D
MOV RDI,RCX
CALL 0x00113730
TEST RAX,RAX
JZ 0x0012fbe9
MOV RCX,RAX
MOV qword ptr [R15],RAX
MOV dword ptr [R15 + 0xc],R12D
MOV EAX,dword ptr [R15 + 0x8]
LAB_0012fba5:
MOV ESI,dword ptr [R15 + 0x14]
MOV EDX,R14D
SUB EDX,EAX
IMUL EDX,ESI
MOV EDI,ESI
IMUL EDI,EAX
ADD RDI,RCX
XOR ESI,ESI
CALL 0x00113260
LEA EAX,[R14 + 0x1]
MOV dword ptr [R15 + 0x8],EAX
LAB_0012fbc8:
MOV EDX,dword ptr [R15 + 0x14]
IMUL R14D,EDX
ADD R14,qword ptr [R15]
MOV RDI,R14
MOV RSI,RBX
CALL 0x00113390
XOR EAX,EAX
LAB_0012fbe0:
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0012fbe9:
MOV AL,0x1
JMP 0x0012fbe0
|
int8 ma_set_dynamic(long *param_1,void *param_2,uint param_3)
{
void *__ptr;
uint uVar1;
int iVar2;
uVar1 = *(uint *)(param_1 + 1);
if (uVar1 <= param_3) {
__ptr = (void *)*param_1;
if (*(uint *)((long)param_1 + 0xc) <= param_3) {
uVar1 = *(uint *)(param_1 + 2) + param_3;
iVar2 = uVar1 - uVar1 % *(uint *)(param_1 + 2);
__ptr = realloc(__ptr,(ulong)(uint)(*(int *)((long)param_1 + 0x14) * iVar2));
if (__ptr == (void *)0x0) {
return 1;
}
*param_1 = (long)__ptr;
*(int *)((long)param_1 + 0xc) = iVar2;
uVar1 = *(uint *)(param_1 + 1);
}
memset((void *)((ulong)(*(int *)((long)param_1 + 0x14) * uVar1) + (long)__ptr),0,
(ulong)((param_3 - uVar1) * *(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;
}
| |
44,325 | fmt::v11::basic_appender<char> fmt::v11::detail::write_nonfinite<char, fmt::v11::basic_appender<char>>(fmt::v11::basic_appender<char>, bool, fmt::v11::format_specs, fmt::v11::sign) | zkingston[P]unknot/build_O1/_deps/fmt-src/include/fmt/format.h | FMT_CONSTEXPR20 auto write_nonfinite(OutputIt out, bool isnan,
format_specs specs, sign s) -> OutputIt {
auto str =
isnan ? (specs.upper() ? "NAN" : "nan") : (specs.upper() ? "INF" : "inf");
constexpr size_t str_size = 3;
auto size = str_size + (s != sign::none ? 1 : 0);
// Replace '0'-padding with space for non-finite values.
const bool is_zero_fill =
specs.fill_size() == 1 && specs.fill_unit<Char>() == '0';
if (is_zero_fill) specs.set_fill(' ');
return write_padded<Char>(out, specs, size,
[=](reserve_iterator<OutputIt> it) {
if (s != sign::none)
*it++ = detail::getsign<Char>(s);
return copy<Char>(str, str + str_size, it);
});
} | O1 | c | fmt::v11::basic_appender<char> fmt::v11::detail::write_nonfinite<char, fmt::v11::basic_appender<char>>(fmt::v11::basic_appender<char>, bool, fmt::v11::format_specs, fmt::v11::sign):
subq $0x28, %rsp
movq %rdx, 0x8(%rsp)
movq %rcx, 0x10(%rsp)
movl %edx, %eax
andl $0x38000, %eax # imm = 0x38000
cmpl $0x8000, %eax # imm = 0x8000
jne 0x4116e
cmpb $0x30, 0xc(%rsp)
jne 0x4116e
movb $0x20, 0xc(%rsp)
movl %edx, 0x8(%rsp)
btl $0xc, %edx
leaq 0x2527ba(%rip), %rax # 0x293933
leaq 0x2527af(%rip), %rcx # 0x29392f
cmovaeq %rax, %rcx
leaq 0x2527b0(%rip), %rax # 0x29393b
leaq 0x2527a5(%rip), %rdx # 0x293937
cmovaeq %rax, %rdx
testb %sil, %sil
cmovneq %rcx, %rdx
cmpl $0x1, %r8d
movl $0x4, %ecx
sbbq $0x0, %rcx
leaq 0x18(%rsp), %rax
movl %r8d, (%rax)
movq %rdx, 0x8(%rax)
leaq 0x8(%rsp), %rsi
movq %rcx, %rdx
movq %rax, %r8
callq 0x411cb
addq $0x28, %rsp
retq
| _ZN3fmt3v116detail15write_nonfiniteIcNS0_14basic_appenderIcEEEET0_S5_bNS0_12format_specsENS0_4signE:
sub rsp, 28h
mov [rsp+28h+var_20], rdx
mov [rsp+28h+var_18], rcx
mov eax, edx
and eax, 38000h
cmp eax, 8000h
jnz short loc_4116E
cmp byte ptr [rsp+28h+var_20+4], 30h ; '0'
jnz short loc_4116E
mov byte ptr [rsp+28h+var_20+4], 20h ; ' '
mov dword ptr [rsp+28h+var_20], edx
loc_4116E:
bt edx, 0Ch
lea rax, aNan_0; "nan"
lea rcx, aNan; "NAN"
cmovnb rcx, rax
lea rax, aInf_0; "inf"
lea rdx, aInf; "INF"
cmovnb rdx, rax
test sil, sil
cmovnz rdx, rcx
cmp r8d, 1
mov ecx, 4
sbb rcx, 0
lea rax, [rsp+28h+var_10]
mov [rax], r8d
mov [rax+8], rdx
lea rsi, [rsp+28h+var_20]
mov rdx, rcx
mov r8, rax
call _ZN3fmt3v116detail12write_paddedIcLNS0_5alignE1ENS0_14basic_appenderIcEERZNS1_15write_nonfiniteIcS5_EET0_S7_bNS0_12format_specsENS0_4signEEUlS5_E_EET1_SC_RKS8_mmOT2_; fmt::v11::detail::write_padded<char,(fmt::v11::align)1,fmt::v11::basic_appender<char>,fmt::v11::detail::write_nonfinite<char,fmt::v11::basic_appender<char>>(fmt::v11::basic_appender<char>,bool,fmt::v11::format_specs,fmt::v11::sign)::{lambda(fmt::v11::basic_appender<char>)#1} &>(fmt::v11::basic_appender<char>,fmt::v11::format_specs const&,ulong,ulong,fmt::v11::detail::write_nonfinite<char,fmt::v11::basic_appender<char>>(fmt::v11::basic_appender<char>,bool,fmt::v11::format_specs,fmt::v11::sign)::{lambda(fmt::v11::basic_appender<char>)#1} &)
add rsp, 28h
retn
| long long fmt::v11::detail::write_nonfinite<char,fmt::v11::basic_appender<char>>(
long long a1,
char a2,
long long a3,
long long a4,
int a5)
{
bool v5; // cf
const char *v6; // rcx
const char *v7; // rdx
_QWORD v9[2]; // [rsp+8h] [rbp-20h] BYREF
int v10; // [rsp+18h] [rbp-10h] BYREF
const char *v11; // [rsp+20h] [rbp-8h]
v9[0] = a3;
v9[1] = a4;
if ( (a3 & 0x38000) == 0x8000 && BYTE4(v9[0]) == 48 )
{
BYTE4(v9[0]) = 32;
LODWORD(v9[0]) = a3;
}
v5 = (a3 & 0x1000) != 0;
v6 = "NAN";
if ( (a3 & 0x1000) == 0 )
v6 = "nan";
v7 = "INF";
if ( !v5 )
v7 = "inf";
if ( a2 )
v7 = v6;
v10 = a5;
v11 = v7;
return fmt::v11::detail::write_padded<char,(fmt::v11::align)1,fmt::v11::basic_appender<char>,fmt::v11::basic_appender<char> fmt::v11::detail::write_nonfinite<char,fmt::v11::basic_appender<char>>(fmt::v11::basic_appender<char>,bool,fmt::v11::format_specs,fmt::v11::sign)::{lambda(fmt::v11::basic_appender<char>)#1} &>(
a1,
v9,
4LL - (a5 == 0),
4LL - (a5 == 0),
&v10);
}
| write_nonfinite<char,fmt::v11::basic_appender<char>>:
SUB RSP,0x28
MOV qword ptr [RSP + 0x8],RDX
MOV qword ptr [RSP + 0x10],RCX
MOV EAX,EDX
AND EAX,0x38000
CMP EAX,0x8000
JNZ 0x0014116e
CMP byte ptr [RSP + 0xc],0x30
JNZ 0x0014116e
MOV byte ptr [RSP + 0xc],0x20
MOV dword ptr [RSP + 0x8],EDX
LAB_0014116e:
BT EDX,0xc
LEA RAX,[0x393933]
LEA RCX,[0x39392f]
CMOVNC RCX,RAX
LEA RAX,[0x39393b]
LEA RDX,[0x393937]
CMOVNC RDX,RAX
TEST SIL,SIL
CMOVNZ RDX,RCX
CMP R8D,0x1
MOV ECX,0x4
SBB RCX,0x0
LEA RAX,[RSP + 0x18]
MOV dword ptr [RAX],R8D
MOV qword ptr [RAX + 0x8],RDX
LEA RSI,[RSP + 0x8]
MOV RDX,RCX
MOV R8,RAX
CALL 0x001411cb
ADD RSP,0x28
RET
|
/* fmt::v11::basic_appender<char> fmt::v11::detail::write_nonfinite<char,
fmt::v11::basic_appender<char> >(fmt::v11::basic_appender<char>, bool, fmt::v11::format_specs,
fmt::v11::sign) */
void __thiscall
fmt::v11::detail::write_nonfinite<char,fmt::v11::basic_appender<char>>
(detail *this,char param_2,int8 param_3,int8 param_4,int param_5)
{
int *puVar1;
long lVar2;
uint uVar3;
bool bVar4;
int8 local_20;
int8 local_18;
int local_10 [2];
int *local_8;
uVar3 = (uint)param_3;
local_20 = param_3;
if (((uVar3 & 0x38000) == 0x8000) &&
(local_20._4_1_ = (char)((ulong)param_3 >> 0x20), bVar4 = local_20._4_1_ == '0', bVar4)) {
local_20 = CONCAT35((int3)((ulong)param_3 >> 0x28),0x2000000000);
local_20 = CONCAT44(local_20._4_4_,uVar3);
}
bVar4 = (uVar3 >> 0xc & 1) == 0;
puVar1 = &DAT_0039392f;
if (bVar4) {
puVar1 = &DAT_00393933;
}
local_8 = &DAT_00393937;
if (bVar4) {
local_8 = &DAT_0039393b;
}
if (param_2 != '\0') {
local_8 = puVar1;
}
lVar2 = 4 - (ulong)(param_5 == 0);
local_18 = param_4;
local_10[0] = param_5;
write_padded<char,(fmt::v11::align)1,fmt::v11::basic_appender<char>,fmt::v11::detail::write_nonfinite<char,fmt::v11::basic_appender<char>>(fmt::v11::basic_appender<char>,bool,fmt::v11::format_specs,fmt::v11::sign)::_lambda(fmt::v11::basic_appender<char>)_1_&>
(this,&local_20,lVar2,lVar2,local_10);
return;
}
| |
44,326 | Json::valueToString[abi:cxx11](long) | aimrt_mujoco_sim/_deps/jsoncpp-src/src/lib_json/json_writer.cpp | String valueToString(LargestInt value) {
UIntToStringBuffer buffer;
char* current = buffer + sizeof(buffer);
if (value == Value::minLargestInt) {
uintToString(LargestUInt(Value::maxLargestInt) + 1, current);
*--current = '-';
} else if (value < 0) {
uintToString(LargestUInt(-value), current);
*--current = '-';
} else {
uintToString(LargestUInt(value), current);
}
assert(current >= buffer);
return current;
} | O3 | cpp | Json::valueToString[abi:cxx11](long):
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
movq %rsi, %rdi
negq %rdi
jno 0x7b894
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
leaq 0x29(%rsp), %rsi
movb $0x0, -0x1(%rsi)
movabsq $-0x3333333333333333, %rdi # imm = 0xCCCCCCCCCCCCCCCD
movq %rcx, %rax
mulq %rdi
shrq $0x3, %rdx
leal (%rdx,%rdx), %eax
leal (%rax,%rax,4), %eax
movl %ecx, %r8d
subl %eax, %r8d
orb $0x30, %r8b
movb %r8b, -0x2(%rsi)
decq %rsi
cmpq $0xa, %rcx
movq %rdx, %rcx
jae 0x7b865
jmp 0x7b917
movq %rsi, %rcx
testq %rsi, %rsi
js 0x7b8da
leaq 0x28(%rsp), %rsi
movb $0x0, (%rsi)
movabsq $-0x3333333333333333, %rdi # imm = 0xCCCCCCCCCCCCCCCD
movq %rcx, %rax
mulq %rdi
shrq $0x3, %rdx
leal (%rdx,%rdx), %eax
leal (%rax,%rax,4), %eax
movl %ecx, %r8d
subl %eax, %r8d
orb $0x30, %r8b
movb %r8b, -0x1(%rsi)
decq %rsi
cmpq $0xa, %rcx
movq %rdx, %rcx
jae 0x7b8ae
jmp 0x7b91f
leaq 0x29(%rsp), %rsi
movb $0x0, -0x1(%rsi)
movabsq $-0x3333333333333333, %rcx # imm = 0xCCCCCCCCCCCCCCCD
movq %rdi, %rax
mulq %rcx
shrq $0x3, %rdx
leal (%rdx,%rdx), %eax
leal (%rax,%rax,4), %eax
movl %edi, %r8d
subl %eax, %r8d
orb $0x30, %r8b
movb %r8b, -0x2(%rsi)
decq %rsi
cmpq $0xa, %rdi
movq %rdx, %rdi
jae 0x7b8ed
movb $0x2d, -0x2(%rsi)
addq $-0x2, %rsi
leaq 0xf(%rsp), %rdx
movq %rbx, %rdi
callq 0x1e630
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
retq
| _ZN4Json13valueToStringB5cxx11El:
push rbx
sub rsp, 30h
mov rbx, rdi
mov rdi, rsi
neg rdi
jno short loc_7B894
mov rcx, 8000000000000000h
lea rsi, [rsp+38h+var_F]
mov byte ptr [rsi-1], 0
mov rdi, 0CCCCCCCCCCCCCCCDh
loc_7B865:
mov rax, rcx
mul rdi
shr rdx, 3
lea eax, [rdx+rdx]
lea eax, [rax+rax*4]
mov r8d, ecx
sub r8d, eax
or r8b, 30h
mov [rsi-2], r8b
dec rsi
cmp rcx, 0Ah
mov rcx, rdx
jnb short loc_7B865
jmp loc_7B917
loc_7B894:
mov rcx, rsi
test rsi, rsi
js short loc_7B8DA
lea rsi, [rsp+38h+var_10]
mov byte ptr [rsi], 0
mov rdi, 0CCCCCCCCCCCCCCCDh
loc_7B8AE:
mov rax, rcx
mul rdi
shr rdx, 3
lea eax, [rdx+rdx]
lea eax, [rax+rax*4]
mov r8d, ecx
sub r8d, eax
or r8b, 30h
mov [rsi-1], r8b
dec rsi
cmp rcx, 0Ah
mov rcx, rdx
jnb short loc_7B8AE
jmp short loc_7B91F
loc_7B8DA:
lea rsi, [rsp+38h+var_F]
mov byte ptr [rsi-1], 0
mov rcx, 0CCCCCCCCCCCCCCCDh
loc_7B8ED:
mov rax, rdi
mul rcx
shr rdx, 3
lea eax, [rdx+rdx]
lea eax, [rax+rax*4]
mov r8d, edi
sub r8d, eax
or r8b, 30h
mov [rsi-2], r8b
dec rsi
cmp rdi, 0Ah
mov rdi, rdx
jnb short loc_7B8ED
loc_7B917:
mov byte ptr [rsi-2], 2Dh ; '-'
add rsi, 0FFFFFFFFFFFFFFFEh
loc_7B91F:
lea rdx, [rsp+38h+var_29]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EPKcRKS3_; std::string::basic_string(char const*,std::allocator<char> const&)
mov rax, rbx
add rsp, 30h
pop rbx
retn
| long long Json::valueToString[abi:cxx11](long long a1, long long a2)
{
unsigned long long v3; // rdi
unsigned long long v4; // rcx
_BYTE *v5; // rsi
bool v6; // cf
unsigned long long v7; // rcx
char *v8; // rsi
_BYTE v10[25]; // [rsp+Fh] [rbp-29h] BYREF
char v11; // [rsp+28h] [rbp-10h] BYREF
_BYTE v12[15]; // [rsp+29h] [rbp-Fh] BYREF
v3 = -a2;
if ( __OFSUB__(-a2, 1LL) )
{
v4 = 0x8000000000000000LL;
v5 = v12;
v11 = 0;
do
{
*(v5 - 2) = (v4 % 0xA) | 0x30;
--v5;
v6 = v4 < 0xA;
v4 /= 0xAuLL;
}
while ( !v6 );
LABEL_11:
*(v5 - 2) = 45;
v8 = v5 - 2;
goto LABEL_12;
}
v7 = a2;
if ( a2 < 0 )
{
v5 = v12;
v11 = 0;
do
{
*(v5 - 2) = (v3 % 0xA) | 0x30;
--v5;
v6 = v3 < 0xA;
v3 /= 0xAuLL;
}
while ( !v6 );
goto LABEL_11;
}
v8 = &v11;
v11 = 0;
do
{
*--v8 = (v7 % 0xA) | 0x30;
v6 = v7 < 0xA;
v7 /= 0xAuLL;
}
while ( !v6 );
LABEL_12:
std::string::basic_string(a1, v8, v10);
return a1;
}
| valueToString[abi:cxx11]:
PUSH RBX
SUB RSP,0x30
MOV RBX,RDI
MOV RDI,RSI
NEG RDI
JNO 0x0017b894
MOV RCX,-0x8000000000000000
LEA RSI,[RSP + 0x29]
MOV byte ptr [RSI + -0x1],0x0
MOV RDI,-0x3333333333333333
LAB_0017b865:
MOV RAX,RCX
MUL RDI
SHR RDX,0x3
LEA EAX,[RDX + RDX*0x1]
LEA EAX,[RAX + RAX*0x4]
MOV R8D,ECX
SUB R8D,EAX
OR R8B,0x30
MOV byte ptr [RSI + -0x2],R8B
DEC RSI
CMP RCX,0xa
MOV RCX,RDX
JNC 0x0017b865
JMP 0x0017b917
LAB_0017b894:
MOV RCX,RSI
TEST RSI,RSI
JS 0x0017b8da
LEA RSI,[RSP + 0x28]
MOV byte ptr [RSI],0x0
MOV RDI,-0x3333333333333333
LAB_0017b8ae:
MOV RAX,RCX
MUL RDI
SHR RDX,0x3
LEA EAX,[RDX + RDX*0x1]
LEA EAX,[RAX + RAX*0x4]
MOV R8D,ECX
SUB R8D,EAX
OR R8B,0x30
MOV byte ptr [RSI + -0x1],R8B
DEC RSI
CMP RCX,0xa
MOV RCX,RDX
JNC 0x0017b8ae
JMP 0x0017b91f
LAB_0017b8da:
LEA RSI,[RSP + 0x29]
MOV byte ptr [RSI + -0x1],0x0
MOV RCX,-0x3333333333333333
LAB_0017b8ed:
MOV RAX,RDI
MUL RCX
SHR RDX,0x3
LEA EAX,[RDX + RDX*0x1]
LEA EAX,[RAX + RAX*0x4]
MOV R8D,EDI
SUB R8D,EAX
OR R8B,0x30
MOV byte ptr [RSI + -0x2],R8B
DEC RSI
CMP RDI,0xa
MOV RDI,RDX
JNC 0x0017b8ed
LAB_0017b917:
MOV byte ptr [RSI + -0x2],0x2d
ADD RSI,-0x2
LAB_0017b91f:
LEA RDX,[RSP + 0xf]
MOV RDI,RBX
CALL 0x0011e630
MOV RAX,RBX
ADD RSP,0x30
POP RBX
RET
|
/* WARNING: Removing unreachable block (ram,0x0017b848) */
/* WARNING: Removing unreachable block (ram,0x0017b865) */
/* WARNING: Removing unreachable block (ram,0x0017b88f) */
/* Json::valueToString[abi:cxx11](long) */
Json * __thiscall Json::valueToString_abi_cxx11_(Json *this,long param_1)
{
byte *pbVar1;
byte *pbVar2;
ulong uVar3;
bool bVar4;
allocator local_29 [23];
byte local_12 [10];
if (param_1 < 0) {
pbVar1 = local_12 + 3;
uVar3 = -param_1;
do {
pbVar2 = pbVar1;
pbVar2[-2] = (char)uVar3 + (char)(uVar3 / 10) * -10 | 0x30;
bVar4 = 9 < uVar3;
pbVar1 = pbVar2 + -1;
uVar3 = uVar3 / 10;
} while (bVar4);
pbVar2[-3] = 0x2d;
pbVar2 = pbVar2 + -3;
}
else {
pbVar2 = local_12 + 2;
do {
pbVar2[-1] = (char)param_1 + (char)((ulong)param_1 / 10) * -10 | 0x30;
pbVar2 = pbVar2 + -1;
bVar4 = 9 < (ulong)param_1;
param_1 = (ulong)param_1 / 10;
} while (bVar4);
}
local_12[2] = 0;
std::__cxx11::string::string((string *)this,(char *)pbVar2,local_29);
return this;
}
| |
44,327 | my_realpath | eloqsql/mysys/my_symlink.c | int my_realpath(char *to, const char *filename, myf MyFlags)
{
#if defined(HAVE_REALPATH) && !defined(HAVE_BROKEN_REALPATH)
int result=0;
char buff[BUFF_LEN];
char *ptr;
DBUG_ENTER("my_realpath");
DBUG_PRINT("info",("executing realpath"));
if ((ptr=realpath(filename,buff)))
strmake(to, ptr, FN_REFLEN-1);
else
{
/*
Realpath didn't work; Use my_load_path() which is a poor substitute
original name but will at least be able to resolve paths that starts
with '.'.
*/
if (MyFlags)
DBUG_PRINT("error",("realpath failed with errno: %d", errno));
my_errno=errno;
if (MyFlags & MY_WME)
my_error(EE_REALPATH, MYF(0), filename, my_errno);
my_load_path(to, filename, NullS);
if (my_errno == ENOENT)
result= 1;
else
result= -1;
}
DBUG_RETURN(result);
#elif defined(_WIN32)
int ret= GetFullPathName(filename,FN_REFLEN, to, NULL);
if (ret == 0 || ret > FN_REFLEN)
{
my_errno= (ret > FN_REFLEN) ? ENAMETOOLONG : GetLastError();
if (MyFlags & MY_WME)
my_error(EE_REALPATH, MYF(0), filename, my_errno);
/*
GetFullPathName didn't work : use my_load_path() which is a poor
substitute original name but will at least be able to resolve
paths that starts with '.'.
*/
my_load_path(to, filename, NullS);
return -1;
}
#else
my_load_path(to, filename, NullS);
#endif
return 0;
} | O3 | c | my_realpath:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1010, %rsp # imm = 0x1010
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq %fs:0x28, %rax
movq %rax, -0x28(%rbp)
leaq -0x1030(%rbp), %rsi
movq %r14, %rdi
callq 0x2a4d0
testq %rax, %rax
je 0xab611
movl $0x1ff, %edx # imm = 0x1FF
movq %rbx, %rdi
movq %rax, %rsi
callq 0xe1f70
xorl %eax, %eax
jmp 0xab660
callq 0x2a7f0
movl (%rax), %r12d
callq 0xac2be
movl %r12d, (%rax)
testb $0x10, %r15b
je 0xab63f
callq 0xac2be
movl (%rax), %ecx
movl $0x1a, %edi
xorl %esi, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0xa5c33
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xb3ac0
callq 0xac2be
xorl %ecx, %ecx
cmpl $0x2, (%rax)
sete %cl
leal -0x1(,%rcx,2), %eax
movq %fs:0x28, %rcx
cmpq -0x28(%rbp), %rcx
jne 0xab67f
addq $0x1010, %rsp # imm = 0x1010
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
callq 0x2a250
| my_realpath:
push rbp
mov rbp, rsp
push r15
push r14
push r12
push rbx
sub rsp, 1010h
mov r15, rdx
mov r14, rsi
mov rbx, rdi
mov rax, fs:28h
mov [rbp+var_28], rax
lea rsi, [rbp+var_1030]
mov rdi, r14
call _realpath
test rax, rax
jz short loc_AB611
mov edx, 1FFh
mov rdi, rbx
mov rsi, rax
call strmake
xor eax, eax
jmp short loc_AB660
loc_AB611:
call ___errno_location
mov r12d, [rax]
call _my_thread_var
mov [rax], r12d
test r15b, 10h
jz short loc_AB63F
call _my_thread_var
mov ecx, [rax]
mov edi, 1Ah
xor esi, esi
mov rdx, r14
xor eax, eax
call my_error
loc_AB63F:
mov rdi, rbx
mov rsi, r14
xor edx, edx
call my_load_path
call _my_thread_var
xor ecx, ecx
cmp dword ptr [rax], 2
setz cl
lea eax, ds:0FFFFFFFFFFFFFFFFh[rcx*2]
loc_AB660:
mov rcx, fs:28h
cmp rcx, [rbp+var_28]
jnz short loc_AB67F
add rsp, 1010h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_AB67F:
call ___stack_chk_fail
| long long my_realpath(long long a1, long long a2, char a3)
{
long long v4; // rax
int v6; // r12d
unsigned int *v7; // rax
_BYTE v8[4104]; // [rsp+0h] [rbp-1030h] BYREF
unsigned long long v9; // [rsp+1008h] [rbp-28h]
v9 = __readfsqword(0x28u);
v4 = realpath(a2, v8);
if ( v4 )
{
strmake(a1, v4, 511LL);
return 0LL;
}
else
{
v6 = *(_DWORD *)__errno_location(a2);
*(_DWORD *)my_thread_var(a2) = v6;
if ( (a3 & 0x10) != 0 )
{
v7 = (unsigned int *)my_thread_var(a2);
my_error(0x1Au, 0LL, a2, *v7);
}
my_load_path(a1, a2, 0LL);
return 2 * (unsigned int)(*(_DWORD *)my_thread_var(a1) == 2) - 1;
}
}
| my_realpath:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x1010
MOV R15,RDX
MOV R14,RSI
MOV RBX,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x28],RAX
LEA RSI,[RBP + -0x1030]
MOV RDI,R14
CALL 0x0012a4d0
TEST RAX,RAX
JZ 0x001ab611
MOV EDX,0x1ff
MOV RDI,RBX
MOV RSI,RAX
CALL 0x001e1f70
XOR EAX,EAX
JMP 0x001ab660
LAB_001ab611:
CALL 0x0012a7f0
MOV R12D,dword ptr [RAX]
CALL 0x001ac2be
MOV dword ptr [RAX],R12D
TEST R15B,0x10
JZ 0x001ab63f
CALL 0x001ac2be
MOV ECX,dword ptr [RAX]
MOV EDI,0x1a
XOR ESI,ESI
MOV RDX,R14
XOR EAX,EAX
CALL 0x001a5c33
LAB_001ab63f:
MOV RDI,RBX
MOV RSI,R14
XOR EDX,EDX
CALL 0x001b3ac0
CALL 0x001ac2be
XOR ECX,ECX
CMP dword ptr [RAX],0x2
SETZ CL
LEA EAX,[-0x1 + RCX*0x2]
LAB_001ab660:
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x28]
JNZ 0x001ab67f
ADD RSP,0x1010
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_001ab67f:
CALL 0x0012a250
|
int my_realpath(int8 param_1,char *param_2,ulong param_3)
{
int iVar1;
char *pcVar2;
int *piVar3;
int4 *puVar4;
long in_FS_OFFSET;
char local_1038 [4104];
long local_30;
local_30 = *(long *)(in_FS_OFFSET + 0x28);
pcVar2 = realpath(param_2,local_1038);
if (pcVar2 == (char *)0x0) {
piVar3 = __errno_location();
iVar1 = *piVar3;
piVar3 = (int *)_my_thread_var();
*piVar3 = iVar1;
if ((param_3 & 0x10) != 0) {
puVar4 = (int4 *)_my_thread_var();
my_error(0x1a,0,param_2,*puVar4);
}
my_load_path(param_1,param_2,0);
piVar3 = (int *)_my_thread_var();
iVar1 = (uint)(*piVar3 == 2) * 2 + -1;
}
else {
strmake(param_1,pcVar2,0x1ff);
iVar1 = 0;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_30) {
return iVar1;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
44,328 | ma_apply_redo_free_head_or_tail | eloqsql/storage/maria/ma_blockrec.c | uint _ma_apply_redo_free_head_or_tail(MARIA_HA *info, LSN lsn,
const uchar *header)
{
MARIA_SHARE *share= info->s;
uchar *buff;
pgcache_page_no_t page;
MARIA_PINNED_PAGE page_link;
my_bool res;
DBUG_ENTER("_ma_apply_redo_free_head_or_tail");
share->state.changed|= (STATE_CHANGED | STATE_NOT_ZEROFILLED |
STATE_NOT_MOVABLE);
page= page_korr(header);
if (!(buff= pagecache_read(share->pagecache,
&info->dfile,
page, 0, 0,
PAGECACHE_PLAIN_PAGE,
PAGECACHE_LOCK_WRITE, &page_link.link)))
{
pagecache_unlock_by_link(share->pagecache, page_link.link,
PAGECACHE_LOCK_WRITE_UNLOCK,
PAGECACHE_UNPIN, LSN_IMPOSSIBLE,
LSN_IMPOSSIBLE, 0, FALSE);
goto err;
}
if (lsn_korr(buff) >= lsn)
{
/* Already applied */
check_skipped_lsn(info, lsn_korr(buff), 1, page);
pagecache_unlock_by_link(share->pagecache, page_link.link,
PAGECACHE_LOCK_WRITE_UNLOCK,
PAGECACHE_UNPIN, LSN_IMPOSSIBLE,
LSN_IMPOSSIBLE, 0, FALSE);
}
else
{
buff[PAGE_TYPE_OFFSET]= UNALLOCATED_PAGE;
#ifdef IDENTICAL_PAGES_AFTER_RECOVERY
{
uint number_of_records= (uint) buff[DIR_COUNT_OFFSET];
uchar *dir= dir_entry_pos(buff, share->block_size,
number_of_records-1);
buff[DIR_FREE_OFFSET]= END_OF_DIR_FREE_LIST;
bzero(dir, number_of_records * DIR_ENTRY_SIZE);
}
#endif
page_link.unlock= PAGECACHE_LOCK_WRITE_UNLOCK;
page_link.changed= 1;
push_dynamic(&info->pinned_pages, (void*) &page_link);
}
/** @todo leave bitmap lock to the bitmap code... */
mysql_mutex_lock(&share->bitmap.bitmap_lock);
res= _ma_bitmap_reset_full_page_bits(info, &share->bitmap, page, 1);
mysql_mutex_unlock(&share->bitmap.bitmap_lock);
if (res)
goto err;
DBUG_RETURN(0);
err:
_ma_mark_file_crashed(share);
DBUG_ASSERT(!maria_assert_if_crashed_table);
DBUG_RETURN(1);
} | O0 | c | ma_apply_redo_free_head_or_tail:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movl 0x170(%rax), %ecx
orl $0x181, %ecx # imm = 0x181
movl %ecx, 0x170(%rax)
movq -0x20(%rbp), %rdi
callq 0x5c090
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
movq 0x600(%rax), %rdi
movq -0x10(%rbp), %rsi
addq $0x470, %rsi # imm = 0x470
movq -0x38(%rbp), %rdx
leaq -0x50(%rbp), %rax
xorl %ecx, %ecx
xorl %r8d, %r8d
movl $0x1, %r9d
movl $0x4, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x3e9c0
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
jne 0x5cf42
movq -0x28(%rbp), %rax
movq 0x600(%rax), %rdi
movq -0x50(%rbp), %rsi
movl $0x6, %edx
movl $0x3, %ecx
xorl %eax, %eax
movl %eax, %r9d
xorl %eax, %eax
movq %r9, %r8
movl $0x0, (%rsp)
movl $0x0, 0x8(%rsp)
callq 0x3e760
jmp 0x5d08b
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
movq -0x30(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x30(%rbp), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movl %eax, %eax
shlq $0x20, %rax
movq -0x30(%rbp), %rcx
movl 0x3(%rcx), %ecx
orq %rcx, %rax
cmpq -0x18(%rbp), %rax
jl 0x5cff7
movq -0x10(%rbp), %rdi
movq -0x30(%rbp), %rax
movzbl (%rax), %eax
movq -0x30(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x30(%rbp), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movl %eax, %eax
movl %eax, %esi
shlq $0x20, %rsi
movq -0x30(%rbp), %rax
movl 0x3(%rax), %eax
orq %rax, %rsi
movq -0x38(%rbp), %rcx
movl $0x1, %edx
callq 0x35820
movq -0x28(%rbp), %rax
movq 0x600(%rax), %rdi
movq -0x50(%rbp), %rsi
movl $0x6, %edx
movl $0x3, %ecx
xorl %eax, %eax
movl %eax, %r9d
xorl %eax, %eax
movq %r9, %r8
movl $0x0, (%rsp)
movl $0x0, 0x8(%rsp)
callq 0x3e760
jmp 0x5d01e
movq -0x30(%rbp), %rax
movb $0x0, 0x7(%rax)
movl $0x6, -0x48(%rbp)
movb $0x1, -0x40(%rbp)
movq -0x10(%rbp), %rdi
addq $0x2e8, %rdi # imm = 0x2E8
leaq -0x50(%rbp), %rsi
callq 0xdc040
movq -0x28(%rbp), %rdi
addq $0xa10, %rdi # imm = 0xA10
addq $0x88, %rdi
leaq 0xf6b25(%rip), %rsi # 0x153b5c
movl $0x1a93, %edx # imm = 0x1A93
callq 0x5cdb0
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
addq $0xa10, %rsi # imm = 0xA10
movq -0x38(%rbp), %rdx
movl $0x1, %ecx
callq 0x65710
movb %al, -0x51(%rbp)
movq -0x28(%rbp), %rdi
addq $0xa10, %rdi # imm = 0xA10
addq $0x88, %rdi
callq 0x5ce20
cmpb $0x0, -0x51(%rbp)
je 0x5d080
jmp 0x5d08b
jmp 0x5d082
movl $0x0, -0x4(%rbp)
jmp 0x5d09f
movq -0x28(%rbp), %rdi
callq 0x4ac50
jmp 0x5d096
jmp 0x5d098
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x70, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| _ma_apply_redo_free_head_or_tail:
push rbp
mov rbp, rsp
sub rsp, 70h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov rax, [rbp+var_10]
mov rax, [rax]
mov [rbp+var_28], rax
mov rax, [rbp+var_28]
mov ecx, [rax+170h]
or ecx, 181h
mov [rax+170h], ecx
mov rdi, [rbp+var_20]
call uint5korr_0
mov [rbp+var_38], rax
mov rax, [rbp+var_28]
mov rdi, [rax+600h]
mov rsi, [rbp+var_10]
add rsi, 470h
mov rdx, [rbp+var_38]
lea rax, [rbp+var_50]
xor ecx, ecx
xor r8d, r8d
mov r9d, 1
mov [rsp+70h+var_70], 4
mov [rsp+70h+var_68], rax
call pagecache_read
mov [rbp+var_30], rax
cmp rax, 0
jnz short loc_5CF42
mov rax, [rbp+var_28]
mov rdi, [rax+600h]
mov rsi, [rbp+var_50]
mov edx, 6
mov ecx, 3
xor eax, eax
mov r9d, eax
xor eax, eax
mov r8, r9
mov [rsp+70h+var_70], 0
mov dword ptr [rsp+70h+var_68], 0
call pagecache_unlock_by_link
jmp loc_5D08B
loc_5CF42:
mov rax, [rbp+var_30]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_30]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
or eax, ecx
mov rcx, [rbp+var_30]
movzx ecx, byte ptr [rcx+2]
shl ecx, 10h
or eax, ecx
mov eax, eax
shl rax, 20h
mov rcx, [rbp+var_30]
mov ecx, [rcx+3]
or rax, rcx
cmp rax, [rbp+var_18]
jl short loc_5CFF7
mov rdi, [rbp+var_10]
mov rax, [rbp+var_30]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_30]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
or eax, ecx
mov rcx, [rbp+var_30]
movzx ecx, byte ptr [rcx+2]
shl ecx, 10h
or eax, ecx
mov eax, eax
mov esi, eax
shl rsi, 20h
mov rax, [rbp+var_30]
mov eax, [rax+3]
or rsi, rax
mov rcx, [rbp+var_38]
mov edx, 1
call check_skipped_lsn
mov rax, [rbp+var_28]
mov rdi, [rax+600h]
mov rsi, [rbp+var_50]
mov edx, 6
mov ecx, 3
xor eax, eax
mov r9d, eax
xor eax, eax
mov r8, r9
mov [rsp+70h+var_70], 0
mov dword ptr [rsp+70h+var_68], 0
call pagecache_unlock_by_link
jmp short loc_5D01E
loc_5CFF7:
mov rax, [rbp+var_30]
mov byte ptr [rax+7], 0
mov [rbp+var_48], 6
mov [rbp+var_40], 1
mov rdi, [rbp+var_10]
add rdi, 2E8h
lea rsi, [rbp+var_50]
call insert_dynamic
loc_5D01E:
mov rdi, [rbp+var_28]
add rdi, 0A10h
add rdi, 88h
lea rsi, aWorkspaceLlm4b_10; "/workspace/llm4binary/github2025/eloqsq"...
mov edx, 1A93h
call inline_mysql_mutex_lock_7
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_28]
add rsi, 0A10h
mov rdx, [rbp+var_38]
mov ecx, 1
call _ma_bitmap_reset_full_page_bits
mov [rbp+var_51], al
mov rdi, [rbp+var_28]
add rdi, 0A10h
add rdi, 88h
call inline_mysql_mutex_unlock_7
cmp [rbp+var_51], 0
jz short loc_5D080
jmp short loc_5D08B
loc_5D080:
jmp short $+2
loc_5D082:
mov [rbp+var_4], 0
jmp short loc_5D09F
loc_5D08B:
mov rdi, [rbp+var_28]
call _ma_mark_file_crashed
jmp short $+2
loc_5D096:
jmp short $+2
loc_5D098:
mov [rbp+var_4], 1
loc_5D09F:
mov eax, [rbp+var_4]
add rsp, 70h
pop rbp
retn
| long long ma_apply_redo_free_head_or_tail(long long *a1, signed long long a2, unsigned int *a3)
{
char v4; // [rsp+1Fh] [rbp-51h]
long long v5; // [rsp+20h] [rbp-50h] BYREF
int v6; // [rsp+28h] [rbp-48h]
char v7; // [rsp+30h] [rbp-40h]
unsigned long long v8; // [rsp+38h] [rbp-38h]
unsigned __int16 *v9; // [rsp+40h] [rbp-30h]
long long v10; // [rsp+48h] [rbp-28h]
unsigned int *v11; // [rsp+50h] [rbp-20h]
signed long long v12; // [rsp+58h] [rbp-18h]
long long *v13; // [rsp+60h] [rbp-10h]
v13 = a1;
v12 = a2;
v11 = a3;
v10 = *a1;
*(_DWORD *)(v10 + 368) |= 0x181u;
v8 = uint5korr_0(v11);
v9 = (unsigned __int16 *)pagecache_read(
*(_QWORD **)(v10 + 1536),
(long long)(v13 + 142),
v8,
0,
0LL,
1,
4u,
(char *)&v5);
if ( !v9 )
{
pagecache_unlock_by_link(*(_QWORD **)(v10 + 1536), v5, 6, 3, 0LL, 0LL, 0, 0);
LABEL_8:
ma_mark_file_crashed(v10);
return 1;
}
if ( (long long)(*(unsigned int *)((char *)v9 + 3) | ((unsigned long long)((*((unsigned __int8 *)v9 + 2) << 16) | (unsigned int)*v9) << 32)) < v12 )
{
*((_BYTE *)v9 + 7) = 0;
v6 = 6;
v7 = 1;
insert_dynamic(v13 + 93, &v5);
}
else
{
check_skipped_lsn(
(long long)v13,
*(unsigned int *)((char *)v9 + 3) | ((unsigned long long)((*((unsigned __int8 *)v9 + 2) << 16) | (unsigned int)*v9) << 32),
1,
v8);
pagecache_unlock_by_link(*(_QWORD **)(v10 + 1536), v5, 6, 3, 0LL, 0LL, 0, 0);
}
inline_mysql_mutex_lock_7(
v10 + 2712,
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_blockrec.c",
0x1A93u);
v4 = ma_bitmap_reset_full_page_bits(v13, v10 + 2576, v8, 1LL);
inline_mysql_mutex_unlock_7(v10 + 2712);
if ( v4 )
goto LABEL_8;
return 0;
}
| _ma_apply_redo_free_head_or_tail:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x70
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV ECX,dword ptr [RAX + 0x170]
OR ECX,0x181
MOV dword ptr [RAX + 0x170],ECX
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0015c090
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV RDI,qword ptr [RAX + 0x600]
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x470
MOV RDX,qword ptr [RBP + -0x38]
LEA RAX,[RBP + -0x50]
XOR ECX,ECX
XOR R8D,R8D
MOV R9D,0x1
MOV dword ptr [RSP],0x4
MOV qword ptr [RSP + 0x8],RAX
CALL 0x0013e9c0
MOV qword ptr [RBP + -0x30],RAX
CMP RAX,0x0
JNZ 0x0015cf42
MOV RAX,qword ptr [RBP + -0x28]
MOV RDI,qword ptr [RAX + 0x600]
MOV RSI,qword ptr [RBP + -0x50]
MOV EDX,0x6
MOV ECX,0x3
XOR EAX,EAX
MOV R9D,EAX
XOR EAX,EAX
MOV R8,R9
MOV dword ptr [RSP],0x0
MOV dword ptr [RSP + 0x8],0x0
CALL 0x0013e760
JMP 0x0015d08b
LAB_0015cf42:
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x30]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x30]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x10
OR EAX,ECX
MOV EAX,EAX
SHL RAX,0x20
MOV RCX,qword ptr [RBP + -0x30]
MOV ECX,dword ptr [RCX + 0x3]
OR RAX,RCX
CMP RAX,qword ptr [RBP + -0x18]
JL 0x0015cff7
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x30]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x30]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x30]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x10
OR EAX,ECX
MOV EAX,EAX
MOV ESI,EAX
SHL RSI,0x20
MOV RAX,qword ptr [RBP + -0x30]
MOV EAX,dword ptr [RAX + 0x3]
OR RSI,RAX
MOV RCX,qword ptr [RBP + -0x38]
MOV EDX,0x1
CALL 0x00135820
MOV RAX,qword ptr [RBP + -0x28]
MOV RDI,qword ptr [RAX + 0x600]
MOV RSI,qword ptr [RBP + -0x50]
MOV EDX,0x6
MOV ECX,0x3
XOR EAX,EAX
MOV R9D,EAX
XOR EAX,EAX
MOV R8,R9
MOV dword ptr [RSP],0x0
MOV dword ptr [RSP + 0x8],0x0
CALL 0x0013e760
JMP 0x0015d01e
LAB_0015cff7:
MOV RAX,qword ptr [RBP + -0x30]
MOV byte ptr [RAX + 0x7],0x0
MOV dword ptr [RBP + -0x48],0x6
MOV byte ptr [RBP + -0x40],0x1
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x2e8
LEA RSI,[RBP + -0x50]
CALL 0x001dc040
LAB_0015d01e:
MOV RDI,qword ptr [RBP + -0x28]
ADD RDI,0xa10
ADD RDI,0x88
LEA RSI,[0x253b5c]
MOV EDX,0x1a93
CALL 0x0015cdb0
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x28]
ADD RSI,0xa10
MOV RDX,qword ptr [RBP + -0x38]
MOV ECX,0x1
CALL 0x00165710
MOV byte ptr [RBP + -0x51],AL
MOV RDI,qword ptr [RBP + -0x28]
ADD RDI,0xa10
ADD RDI,0x88
CALL 0x0015ce20
CMP byte ptr [RBP + -0x51],0x0
JZ 0x0015d080
JMP 0x0015d08b
LAB_0015d080:
JMP 0x0015d082
LAB_0015d082:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0015d09f
LAB_0015d08b:
MOV RDI,qword ptr [RBP + -0x28]
CALL 0x0014ac50
JMP 0x0015d096
LAB_0015d096:
JMP 0x0015d098
LAB_0015d098:
MOV dword ptr [RBP + -0x4],0x1
LAB_0015d09f:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x70
POP RBP
RET
|
int4 _ma_apply_redo_free_head_or_tail(long *param_1,long param_2,int8 param_3)
{
char cVar1;
int8 *puVar2;
int8 local_58;
int4 local_50;
int1 local_48;
int8 local_40;
int3 *local_38;
long local_30;
int8 local_28;
long local_20;
long *local_18;
local_30 = *param_1;
*(uint *)(local_30 + 0x170) = *(uint *)(local_30 + 0x170) | 0x181;
local_28 = param_3;
local_20 = param_2;
local_18 = param_1;
local_40 = uint5korr(param_3);
puVar2 = &local_58;
local_38 = (int3 *)
pagecache_read(*(int8 *)(local_30 + 0x600),local_18 + 0x8e,local_40,0,0,1,4,
puVar2);
if (local_38 == (int3 *)0x0) {
pagecache_unlock_by_link
(*(int8 *)(local_30 + 0x600),local_58,6,3,0,0,0,
(ulong)puVar2 & 0xffffffff00000000);
}
else {
if ((long)(ulong)CONCAT34(*local_38,*(int4 *)((long)local_38 + 3)) < local_20) {
*(int1 *)((long)local_38 + 7) = 0;
local_50 = 6;
local_48 = 1;
insert_dynamic(local_18 + 0x5d,&local_58);
}
else {
check_skipped_lsn(local_18,(ulong)CONCAT34(*local_38,*(int4 *)((long)local_38 + 3)),1,
local_40);
pagecache_unlock_by_link
(*(int8 *)(local_30 + 0x600),local_58,6,3,0,0,0,
(ulong)puVar2 & 0xffffffff00000000);
}
inline_mysql_mutex_lock
(local_30 + 0xa98,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_blockrec.c",0x1a93);
cVar1 = _ma_bitmap_reset_full_page_bits(local_18,local_30 + 0xa10,local_40,1);
inline_mysql_mutex_unlock(local_30 + 0xa98);
if (cVar1 == '\0') {
return 0;
}
}
_ma_mark_file_crashed(local_30);
return 1;
}
| |
44,329 | coro::task<void> coro::detail::make_when_any_task<coro::task<long>, long>(coro::task<long>, coro::mutex&, std::atomic<bool>&, coro::event&, std::optional<long>&) (.destroy) | AlayaLite/build_O3/_deps/libcoro-src/include/coro/when_any.hpp | static auto make_when_any_task(
awaitable a,
coro::mutex& m,
std::atomic<bool>& return_value_set,
coro::event& notify,
std::optional<return_type>& return_value) -> coro::task<void>
{
auto result = co_await static_cast<awaitable&&>(a);
co_await m.lock();
// Its important to only touch return_value and notify once since their lifetimes will be destroyed
// after being set ane notified the first time.
if (return_value_set.load(std::memory_order::acquire) == false)
{
return_value_set.store(true, std::memory_order::release);
return_value = std::move(result);
notify.set();
}
co_return;
} | O3 | cpp | coro::task<void> coro::detail::make_when_any_task<coro::task<long>, long>(coro::task<long>, coro::mutex&, std::atomic<bool>&, coro::event&, std::optional<long>&) (.destroy):
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, 0x18(%rdi)
je 0x9bf27
leaq 0x18(%rbx), %rdi
callq 0x17260
movq 0x60(%rbx), %rdi
testq %rdi, %rdi
je 0x9bf33
callq *0x8(%rdi)
movl $0x78, %esi
movq %rbx, %rdi
popq %rbx
jmp 0x17150
movq %rax, %rdi
callq 0x1f2c3
| _ZN4coro6detailL18make_when_any_taskITkNS_8concepts9awaitableENS_4taskIlEElEENS3_IvEET_RNS_5mutexERSt6atomicIbERNS_5eventERSt8optionalIT0_E_destroy:
push rbx
mov rbx, rdi
cmp qword ptr [rdi+18h], 0
jz short loc_9BF27
lea rdi, [rbx+18h]; this
call __ZNSt15__exception_ptr13exception_ptr10_M_releaseEv; std::__exception_ptr::exception_ptr::_M_release(void)
loc_9BF27:
mov rdi, [rbx+60h]
test rdi, rdi
jz short loc_9BF33
call qword ptr [rdi+8]
loc_9BF33:
mov esi, 78h ; 'x'; unsigned __int64
mov rdi, rbx; void *
pop rbx
jmp __ZdlPvm; operator delete(void *,ulong)
mov rdi, rax
call __clang_call_terminate
| void ZN4coro6detailL18make_when_any_taskITkNS_8concepts9awaitableENS_4taskIlEElEENS3_IvEET_RNS_5mutexERSt6atomicIbERNS_5eventERSt8optionalIT0_E_destroy(
_QWORD *a1)
{
long long v2; // rdi
if ( a1[3] )
std::__exception_ptr::exception_ptr::_M_release((std::__exception_ptr::exception_ptr *)(a1 + 3));
v2 = a1[12];
if ( v2 )
(*(void (**)(void))(v2 + 8))();
operator delete(a1, 0x78uLL);
}
| _ZN4coro6detailL18make_when_any_taskITkNS_8concepts9awaitableENS_4taskIlEElEENS3_IvEET_RNS_5mutexERSt6atomicIbERNS_5eventERSt8optionalIT0_E.destroy:
PUSH RBX
MOV RBX,RDI
CMP qword ptr [RDI + 0x18],0x0
JZ 0x0019bf27
LEA RDI,[RBX + 0x18]
CALL 0x00117260
LAB_0019bf27:
MOV RDI,qword ptr [RBX + 0x60]
TEST RDI,RDI
JZ 0x0019bf33
LAB_0019bf30:
CALL qword ptr [RDI + 0x8]
LAB_0019bf33:
MOV ESI,0x78
MOV RDI,RBX
POP RBX
JMP 0x00117150
|
void _ZN4coro6detailL18make_when_any_taskITkNS_8concepts9awaitableENS_4taskIlEElEENS3_IvEET_RNS_5mutexERSt6atomicIbERNS_5eventERSt8optionalIT0_E_destroy
(void *param_1)
{
if (*(long *)((long)param_1 + 0x18) != 0) {
std::__exception_ptr::exception_ptr::_M_release();
}
if (*(long *)((long)param_1 + 0x60) != 0) {
/* try { // try from 0019bf30 to 0019bf32 has its CatchHandler @ 0019bf41 */
(**(code **)(*(long *)((long)param_1 + 0x60) + 8))();
}
operator_delete(param_1,0x78);
return;
}
| |
44,330 | mysql_next_result | eloqsql/libmariadb/libmariadb/mariadb_lib.c | int STDCALL mysql_next_result(MYSQL *mysql)
{
/* make sure communication is not blocking */
if (mysql->status != MYSQL_STATUS_READY)
{
SET_CLIENT_ERROR(mysql, CR_COMMANDS_OUT_OF_SYNC, SQLSTATE_UNKNOWN, 0);
return(1);
}
/* clear error, and mysql status variables */
CLEAR_CLIENT_ERROR(mysql);
mysql->affected_rows = (ulonglong) ~0;
if (mysql->server_status & SERVER_MORE_RESULTS_EXIST)
{
return(mysql->methods->db_read_query_result(mysql));
}
return(-1);
} | O0 | c | mysql_next_result:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x488(%rax)
je 0x22e4a
jmp 0x22ddb
movq -0x10(%rbp), %rax
movl $0x7de, 0x90(%rax) # imm = 0x7DE
movq -0x10(%rbp), %rdi
addq $0x297, %rdi # imm = 0x297
leaq 0x44445(%rip), %rax # 0x67240
movq (%rax), %rsi
movl $0x5, %edx
callq 0x13210
movq -0x10(%rbp), %rax
movb $0x0, 0x29c(%rax)
movq -0x10(%rbp), %rdi
addq $0x97, %rdi
leaq 0x4442b(%rip), %rax # 0x67250
movq 0x70(%rax), %rsi
movl $0x1ff, %edx # imm = 0x1FF
callq 0x13210
movq -0x10(%rbp), %rax
movb $0x0, 0x296(%rax)
movl $0x1, -0x4(%rbp)
jmp 0x22ee0
jmp 0x22e4c
movq -0x10(%rbp), %rax
movl $0x0, 0x90(%rax)
movq -0x10(%rbp), %rdi
addq $0x297, %rdi # imm = 0x297
leaq 0x2faff(%rip), %rsi # 0x5296b
callq 0x133c0
movq -0x10(%rbp), %rax
movb $0x0, 0x97(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x2a0(%rax)
je 0x22e9c
movq -0x10(%rbp), %rax
movq 0x2a0(%rax), %rax
movl $0x0, 0x4(%rax)
jmp 0x22e9e
movq -0x10(%rbp), %rax
movq $-0x1, 0x338(%rax)
movq -0x10(%rbp), %rax
movl 0x380(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x22ed9
movq -0x10(%rbp), %rax
movq 0x4d0(%rax), %rax
movq 0x20(%rax), %rax
movq -0x10(%rbp), %rdi
callq *%rax
movl %eax, -0x4(%rbp)
jmp 0x22ee0
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
movl -0x4(%rbp), %eax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
| mysql_next_result:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
cmp dword ptr [rax+488h], 0
jz short loc_22E4A
jmp short $+2
loc_22DDB:
mov rax, [rbp+var_10]
mov dword ptr [rax+90h], 7DEh
mov rdi, [rbp+var_10]
add rdi, 297h
lea rax, SQLSTATE_UNKNOWN
mov rsi, [rax]
mov edx, 5
call _strncpy
mov rax, [rbp+var_10]
mov byte ptr [rax+29Ch], 0
mov rdi, [rbp+var_10]
add rdi, 97h
lea rax, client_errors
mov rsi, [rax+70h]
mov edx, 1FFh
call _strncpy
mov rax, [rbp+var_10]
mov byte ptr [rax+296h], 0
mov [rbp+var_4], 1
jmp loc_22EE0
loc_22E4A:
jmp short $+2
loc_22E4C:
mov rax, [rbp+var_10]
mov dword ptr [rax+90h], 0
mov rdi, [rbp+var_10]
add rdi, 297h
lea rsi, a00000; "00000"
call _strcpy
mov rax, [rbp+var_10]
mov byte ptr [rax+97h], 0
mov rax, [rbp+var_10]
cmp qword ptr [rax+2A0h], 0
jz short loc_22E9C
mov rax, [rbp+var_10]
mov rax, [rax+2A0h]
mov dword ptr [rax+4], 0
loc_22E9C:
jmp short $+2
loc_22E9E:
mov rax, [rbp+var_10]
mov qword ptr [rax+338h], 0FFFFFFFFFFFFFFFFh
mov rax, [rbp+var_10]
mov eax, [rax+380h]
and eax, 8
cmp eax, 0
jz short loc_22ED9
mov rax, [rbp+var_10]
mov rax, [rax+4D0h]
mov rax, [rax+20h]
mov rdi, [rbp+var_10]
call rax
mov [rbp+var_4], eax
jmp short loc_22EE0
loc_22ED9:
mov [rbp+var_4], 0FFFFFFFFh
loc_22EE0:
mov eax, [rbp+var_4]
add rsp, 10h
pop rbp
retn
| long long mysql_next_result(long long a1)
{
if ( *(_DWORD *)(a1 + 1160) )
{
*(_DWORD *)(a1 + 144) = 2014;
strncpy(a1 + 663, SQLSTATE_UNKNOWN, 5LL);
*(_BYTE *)(a1 + 668) = 0;
strncpy(a1 + 151, client_errors[14], 511LL);
*(_BYTE *)(a1 + 662) = 0;
return 1;
}
else
{
*(_DWORD *)(a1 + 144) = 0;
strcpy(a1 + 663, "00000");
*(_BYTE *)(a1 + 151) = 0;
if ( *(_QWORD *)(a1 + 672) )
*(_DWORD *)(*(_QWORD *)(a1 + 672) + 4LL) = 0;
*(_QWORD *)(a1 + 824) = -1LL;
if ( (*(_DWORD *)(a1 + 896) & 8) != 0 )
return (unsigned int)(*(long long ( **)(long long))(*(_QWORD *)(a1 + 1232) + 32LL))(a1);
else
return (unsigned int)-1;
}
}
| mysql_next_result:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x488],0x0
JZ 0x00122e4a
JMP 0x00122ddb
LAB_00122ddb:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x90],0x7de
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x297
LEA RAX,[0x167240]
MOV RSI,qword ptr [RAX]
MOV EDX,0x5
CALL 0x00113210
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x29c],0x0
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x97
LEA RAX,[0x167250]
MOV RSI,qword ptr [RAX + 0x70]
MOV EDX,0x1ff
CALL 0x00113210
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x296],0x0
MOV dword ptr [RBP + -0x4],0x1
JMP 0x00122ee0
LAB_00122e4a:
JMP 0x00122e4c
LAB_00122e4c:
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x90],0x0
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,0x297
LEA RSI,[0x15296b]
CALL 0x001133c0
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x97],0x0
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x2a0],0x0
JZ 0x00122e9c
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x2a0]
MOV dword ptr [RAX + 0x4],0x0
LAB_00122e9c:
JMP 0x00122e9e
LAB_00122e9e:
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x338],-0x1
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x380]
AND EAX,0x8
CMP EAX,0x0
JZ 0x00122ed9
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x4d0]
MOV RAX,qword ptr [RAX + 0x20]
MOV RDI,qword ptr [RBP + -0x10]
CALL RAX
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00122ee0
LAB_00122ed9:
MOV dword ptr [RBP + -0x4],0xffffffff
LAB_00122ee0:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x10
POP RBP
RET
|
int4 mysql_next_result(long param_1)
{
int4 local_c;
if (*(int *)(param_1 + 0x488) == 0) {
*(int4 *)(param_1 + 0x90) = 0;
strcpy((char *)(param_1 + 0x297),"00000");
*(int1 *)(param_1 + 0x97) = 0;
if (*(long *)(param_1 + 0x2a0) != 0) {
*(int4 *)(*(long *)(param_1 + 0x2a0) + 4) = 0;
}
*(int8 *)(param_1 + 0x338) = 0xffffffffffffffff;
if ((*(uint *)(param_1 + 0x380) & 8) == 0) {
local_c = 0xffffffff;
}
else {
local_c = (**(code **)(*(long *)(param_1 + 0x4d0) + 0x20))(param_1);
}
}
else {
*(int4 *)(param_1 + 0x90) = 0x7de;
strncpy((char *)(param_1 + 0x297),SQLSTATE_UNKNOWN,5);
*(int1 *)(param_1 + 0x29c) = 0;
strncpy((char *)(param_1 + 0x97),PTR_s_Commands_out_of_sync__you_can_t_r_001672c0,0x1ff);
*(int1 *)(param_1 + 0x296) = 0;
local_c = 1;
}
return local_c;
}
| |
44,331 | mysql_mbcharlen_gb18030 | eloqsql/libmariadb/libmariadb/ma_charset.c | static unsigned int mysql_mbcharlen_gb18030(unsigned int c)
{
if (c <= 0xFF) {
return !is_gb18030_odd(c);
}
if (c > 0xFFFF || !is_gb18030_odd((c >> 8) & 0xFF)) {
return 0;
}
if (is_gb18030_even_2((c & 0xFF))) {
return 2;
}
if (is_gb18030_even_4((c & 0xFF))) {
return 4;
}
return 0;
} | O0 | c | mysql_mbcharlen_gb18030:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x8(%rbp)
cmpl $0xff, -0x8(%rbp)
ja 0x4bad7
movl -0x8(%rbp), %eax
movzbl %al, %edx
xorl %eax, %eax
movl $0x81, %ecx
cmpl %edx, %ecx
movb %al, -0x9(%rbp)
jg 0x4bac5
movl -0x8(%rbp), %eax
movzbl %al, %eax
cmpl $0xfe, %eax
setle %al
movb %al, -0x9(%rbp)
movb -0x9(%rbp), %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
movl %eax, -0x4(%rbp)
jmp 0x4bb9f
cmpl $0xffff, -0x8(%rbp) # imm = 0xFFFF
ja 0x4bb0c
movl -0x8(%rbp), %eax
shrl $0x8, %eax
andl $0xff, %eax
movzbl %al, %ecx
movl $0x81, %eax
cmpl %ecx, %eax
jg 0x4bb0c
movl -0x8(%rbp), %eax
shrl $0x8, %eax
andl $0xff, %eax
movzbl %al, %eax
cmpl $0xfe, %eax
jle 0x4bb18
movl $0x0, -0x4(%rbp)
jmp 0x4bb9f
movl -0x8(%rbp), %eax
andl $0xff, %eax
movzbl %al, %ecx
movl $0x40, %eax
cmpl %ecx, %eax
jg 0x4bb3c
movl -0x8(%rbp), %eax
andl $0xff, %eax
movzbl %al, %eax
cmpl $0x7e, %eax
jle 0x4bb62
movl -0x8(%rbp), %eax
andl $0xff, %eax
movzbl %al, %ecx
movl $0x80, %eax
cmpl %ecx, %eax
jg 0x4bb6b
movl -0x8(%rbp), %eax
andl $0xff, %eax
movzbl %al, %eax
cmpl $0xfe, %eax
jg 0x4bb6b
movl $0x2, -0x4(%rbp)
jmp 0x4bb9f
movl -0x8(%rbp), %eax
andl $0xff, %eax
movzbl %al, %ecx
movl $0x30, %eax
cmpl %ecx, %eax
jg 0x4bb98
movl -0x8(%rbp), %eax
andl $0xff, %eax
movzbl %al, %eax
cmpl $0x39, %eax
jg 0x4bb98
movl $0x4, -0x4(%rbp)
jmp 0x4bb9f
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| mysql_mbcharlen_gb18030:
push rbp
mov rbp, rsp
mov [rbp+var_8], edi
cmp [rbp+var_8], 0FFh
ja short loc_4BAD7
mov eax, [rbp+var_8]
movzx edx, al
xor eax, eax
mov ecx, 81h
cmp ecx, edx
mov [rbp+var_9], al
jg short loc_4BAC5
mov eax, [rbp+var_8]
movzx eax, al
cmp eax, 0FEh
setle al
mov [rbp+var_9], al
loc_4BAC5:
mov al, [rbp+var_9]
xor al, 0FFh
and al, 1
movzx eax, al
mov [rbp+var_4], eax
jmp loc_4BB9F
loc_4BAD7:
cmp [rbp+var_8], 0FFFFh
ja short loc_4BB0C
mov eax, [rbp+var_8]
shr eax, 8
and eax, 0FFh
movzx ecx, al
mov eax, 81h
cmp eax, ecx
jg short loc_4BB0C
mov eax, [rbp+var_8]
shr eax, 8
and eax, 0FFh
movzx eax, al
cmp eax, 0FEh
jle short loc_4BB18
loc_4BB0C:
mov [rbp+var_4], 0
jmp loc_4BB9F
loc_4BB18:
mov eax, [rbp+var_8]
and eax, 0FFh
movzx ecx, al
mov eax, 40h ; '@'
cmp eax, ecx
jg short loc_4BB3C
mov eax, [rbp+var_8]
and eax, 0FFh
movzx eax, al
cmp eax, 7Eh ; '~'
jle short loc_4BB62
loc_4BB3C:
mov eax, [rbp+var_8]
and eax, 0FFh
movzx ecx, al
mov eax, 80h
cmp eax, ecx
jg short loc_4BB6B
mov eax, [rbp+var_8]
and eax, 0FFh
movzx eax, al
cmp eax, 0FEh
jg short loc_4BB6B
loc_4BB62:
mov [rbp+var_4], 2
jmp short loc_4BB9F
loc_4BB6B:
mov eax, [rbp+var_8]
and eax, 0FFh
movzx ecx, al
mov eax, 30h ; '0'
cmp eax, ecx
jg short loc_4BB98
mov eax, [rbp+var_8]
and eax, 0FFh
movzx eax, al
cmp eax, 39h ; '9'
jg short loc_4BB98
mov [rbp+var_4], 4
jmp short loc_4BB9F
loc_4BB98:
mov [rbp+var_4], 0
loc_4BB9F:
mov eax, [rbp+var_4]
pop rbp
retn
| long long mysql_mbcharlen_gb18030(unsigned int a1)
{
bool v2; // [rsp+1h] [rbp-9h]
if ( a1 > 0xFF )
{
if ( a1 > 0xFFFF || BYTE1(a1) < 0x81u || BYTE1(a1) == 255 )
{
return 0;
}
else if ( ((unsigned __int8)a1 < 0x40u || (unsigned __int8)a1 > 0x7Eu)
&& ((unsigned __int8)a1 < 0x80u || (unsigned __int8)a1 == 255) )
{
if ( (unsigned __int8)a1 < 0x30u || (unsigned __int8)a1 > 0x39u )
return 0;
else
return 4;
}
else
{
return 2;
}
}
else
{
v2 = 0;
if ( (unsigned __int8)a1 >= 0x81u )
v2 = (unsigned __int8)a1 != 255;
return !v2;
}
}
| mysql_mbcharlen_gb18030:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RBP + -0x8],EDI
CMP dword ptr [RBP + -0x8],0xff
JA 0x0014bad7
MOV EAX,dword ptr [RBP + -0x8]
MOVZX EDX,AL
XOR EAX,EAX
MOV ECX,0x81
CMP ECX,EDX
MOV byte ptr [RBP + -0x9],AL
JG 0x0014bac5
MOV EAX,dword ptr [RBP + -0x8]
MOVZX EAX,AL
CMP EAX,0xfe
SETLE AL
MOV byte ptr [RBP + -0x9],AL
LAB_0014bac5:
MOV AL,byte ptr [RBP + -0x9]
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
MOV dword ptr [RBP + -0x4],EAX
JMP 0x0014bb9f
LAB_0014bad7:
CMP dword ptr [RBP + -0x8],0xffff
JA 0x0014bb0c
MOV EAX,dword ptr [RBP + -0x8]
SHR EAX,0x8
AND EAX,0xff
MOVZX ECX,AL
MOV EAX,0x81
CMP EAX,ECX
JG 0x0014bb0c
MOV EAX,dword ptr [RBP + -0x8]
SHR EAX,0x8
AND EAX,0xff
MOVZX EAX,AL
CMP EAX,0xfe
JLE 0x0014bb18
LAB_0014bb0c:
MOV dword ptr [RBP + -0x4],0x0
JMP 0x0014bb9f
LAB_0014bb18:
MOV EAX,dword ptr [RBP + -0x8]
AND EAX,0xff
MOVZX ECX,AL
MOV EAX,0x40
CMP EAX,ECX
JG 0x0014bb3c
MOV EAX,dword ptr [RBP + -0x8]
AND EAX,0xff
MOVZX EAX,AL
CMP EAX,0x7e
JLE 0x0014bb62
LAB_0014bb3c:
MOV EAX,dword ptr [RBP + -0x8]
AND EAX,0xff
MOVZX ECX,AL
MOV EAX,0x80
CMP EAX,ECX
JG 0x0014bb6b
MOV EAX,dword ptr [RBP + -0x8]
AND EAX,0xff
MOVZX EAX,AL
CMP EAX,0xfe
JG 0x0014bb6b
LAB_0014bb62:
MOV dword ptr [RBP + -0x4],0x2
JMP 0x0014bb9f
LAB_0014bb6b:
MOV EAX,dword ptr [RBP + -0x8]
AND EAX,0xff
MOVZX ECX,AL
MOV EAX,0x30
CMP EAX,ECX
JG 0x0014bb98
MOV EAX,dword ptr [RBP + -0x8]
AND EAX,0xff
MOVZX EAX,AL
CMP EAX,0x39
JG 0x0014bb98
MOV dword ptr [RBP + -0x4],0x4
JMP 0x0014bb9f
LAB_0014bb98:
MOV dword ptr [RBP + -0x4],0x0
LAB_0014bb9f:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
byte mysql_mbcharlen_gb18030(uint param_1)
{
byte bVar1;
bool local_11;
if (param_1 < 0x100) {
local_11 = 0x80 < (param_1 & 0xff) && (param_1 & 0xff) < 0xff;
bVar1 = (local_11 ^ 0xffU) & 1;
}
else if (((param_1 < 0x10000) && (0x80 < (param_1 >> 8 & 0xff))) && ((param_1 >> 8 & 0xff) < 0xff)
) {
if ((((param_1 & 0xff) < 0x40) || (0x7e < (param_1 & 0xff))) &&
(((param_1 & 0xff) < 0x80 || (0xfe < (param_1 & 0xff))))) {
if (((param_1 & 0xff) < 0x30) || (0x39 < (param_1 & 0xff))) {
bVar1 = 0;
}
else {
bVar1 = 4;
}
}
else {
bVar1 = 2;
}
}
else {
bVar1 = 0;
}
return bVar1;
}
| |
44,332 | minja::Parser::parseIfExpression() | llama.cpp/common/minja/minja.hpp | std::pair<std::shared_ptr<Expression>, std::shared_ptr<Expression>> parseIfExpression() {
auto condition = parseLogicalOr();
if (!condition) throw std::runtime_error("Expected condition expression");
static std::regex else_tok(R"(else\b)");
std::shared_ptr<Expression> else_expr;
if (!consumeToken(else_tok).empty()) {
else_expr = parseExpression();
if (!else_expr) throw std::runtime_error("Expected 'else' expression");
}
return std::pair(std::move(condition), std::move(else_expr));
} | O3 | cpp | minja::Parser::parseIfExpression():
pushq %r15
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rsp), %r15
movq %r15, %rdi
callq 0xdfef8
cmpq $0x0, (%r15)
je 0xe02cd
leaq 0x8647b(%rip), %rax # 0x166630
movb (%rax), %al
testb %al, %al
je 0xe02ff
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
leaq 0x86443(%rip), %rdx # 0x166610
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
movl $0x1, %ecx
callq 0xdecbe
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
movq -0x8(%rax), %r15
cmpq %rax, %rdi
je 0xe01fe
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21170
testq %r15, %r15
je 0xe0282
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
movl $0x1, %edx
callq 0xdea9e
leaq 0x38(%rsp), %rdi
leaq 0x28(%rsp), %r14
movaps -0x8(%r14), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, -0x8(%r14)
movaps (%rsp), %xmm1
movaps %xmm0, (%rsp)
movaps %xmm1, -0x8(%rdi)
callq 0x70882
movq %r14, %rdi
callq 0x70882
movq (%rsp), %rax
testq %rax, %rax
jne 0xe0286
movl $0x10, %edi
callq 0x21630
movq %rax, %r14
leaq 0x4377e(%rip), %rsi # 0x1239e0
movq %rax, %rdi
callq 0x21400
movq 0x84d4f(%rip), %rsi # 0x164fc0
movq 0x84d00(%rip), %rdx # 0x164f78
movq %r14, %rdi
callq 0x21a50
jmp 0xe02ff
movq (%rsp), %rax
leaq 0x18(%rsp), %r14
movaps -0x8(%r14), %xmm0
xorl %ecx, %ecx
movq %rcx, (%r14)
movups %xmm0, (%rbx)
movq %rcx, -0x8(%r14)
movq %rax, 0x10(%rbx)
leaq 0x8(%rsp), %rdi
movq (%rdi), %rax
movq %rcx, (%rdi)
movq %rax, 0x18(%rbx)
movq %rcx, -0x8(%rdi)
callq 0x70882
movq %r14, %rdi
callq 0x70882
movq %rbx, %rax
addq $0x50, %rsp
popq %rbx
popq %r14
popq %r15
retq
movl $0x10, %edi
callq 0x21630
movq %rax, %r14
leaq 0x436da(%rip), %rsi # 0x1239bb
movq %rax, %rdi
callq 0x21400
movq 0x84cd0(%rip), %rsi # 0x164fc0
movq 0x84c81(%rip), %rdx # 0x164f78
movq %r14, %rdi
callq 0x21a50
leaq 0x8632a(%rip), %rdi # 0x166630
callq 0x21580
testl %eax, %eax
je 0xe01bf
leaq 0x862f6(%rip), %rdi # 0x166610
leaq 0x436b8(%rip), %rsi # 0x1239d9
movl $0x10, %edx
callq 0x6619c
leaq -0x7a0ea(%rip), %rdi # 0x66248
leaq 0x862d7(%rip), %rsi # 0x166610
leaq 0x85718(%rip), %rdx # 0x165a58
callq 0x21ee0
leaq 0x862e4(%rip), %rdi # 0x166630
callq 0x21960
jmp 0xe01bf
movq %rax, %rbx
leaq 0x862d0(%rip), %rdi # 0x166630
callq 0x216b0
jmp 0xe0397
jmp 0xe038a
movq %rax, %rbx
movq %r14, %rdi
callq 0x21f00
jmp 0xe038d
movq %rax, %rbx
jmp 0xe0397
movq %rax, %rbx
movq %r14, %rdi
callq 0x21f00
jmp 0xe0397
jmp 0xe038a
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x70882
leaq 0x18(%rsp), %rdi
callq 0x70882
movq %rbx, %rdi
callq 0x21af0
nop
| _ZN5minja6Parser17parseIfExpressionEv:
push r15
push r14
push rbx
sub rsp, 50h
mov r14, rsi
mov rbx, rdi
lea r15, [rsp+68h+var_58]
mov rdi, r15; this
call _ZN5minja6Parser14parseLogicalOrEv; minja::Parser::parseLogicalOr(void)
cmp qword ptr [r15], 0
jz loc_E02CD
lea rax, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; `guard variable for'minja::Parser::parseIfExpression(void)::else_tok
mov al, [rax]
test al, al
jz loc_E02FF
loc_E01BF:
xorps xmm0, xmm0
movaps xmmword ptr [rsp+68h+var_68], xmm0; int
lea rdx, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; int
lea rdi, [rsp+68h+var_38]; int
mov rsi, r14; int
mov ecx, 1; int
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling)
lea rax, [rsp+68h+var_28]
mov rdi, [rax-10h]; void *
mov r15, [rax-8]
cmp rdi, rax
jz short loc_E01FE
mov rsi, [rsp+68h+var_28]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_E01FE:
test r15, r15
jz short loc_E0282
lea rdi, [rsp+68h+var_48]; this
mov rsi, r14; bool
mov edx, 1
call _ZN5minja6Parser15parseExpressionEb; minja::Parser::parseExpression(bool)
lea rdi, [rsp+68h+var_30]
lea r14, [rsp+68h+var_40]
movaps xmm0, xmmword ptr [r14-8]
xorps xmm1, xmm1
movaps xmmword ptr [r14-8], xmm1
movaps xmm1, xmmword ptr [rsp+68h+var_68]
movaps xmmword ptr [rsp+68h+var_68], xmm0
movaps xmmword ptr [rdi-8], xmm1
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, r14
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rax, qword ptr [rsp+68h+var_68]
test rax, rax
jnz short loc_E0286
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedElseEx; "Expected 'else' expression"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
jmp short loc_E02FF
loc_E0282:
mov rax, qword ptr [rsp+68h+var_68]
loc_E0286:
lea r14, [rsp+68h+var_50]
movaps xmm0, xmmword ptr [r14-8]
xor ecx, ecx
mov [r14], rcx
movups xmmword ptr [rbx], xmm0
mov [r14-8], rcx
mov [rbx+10h], rax
lea rdi, [rsp+68h+var_68+8]
mov rax, [rdi]
mov [rdi], rcx
mov [rbx+18h], rax
mov [rdi-8], rcx
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, r14
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rax, rbx
add rsp, 50h
pop rbx
pop r14
pop r15
retn
loc_E02CD:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aExpectedCondit_1; "Expected condition expression"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
loc_E02FF:
lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard *
call ___cxa_guard_acquire
test eax, eax
jz loc_E01BF
lea rdi, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; minja::Parser::parseIfExpression(void)::else_tok
lea rsi, aElseB; "else\\b"
mov edx, 10h
call _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEEC2EPKcNSt15regex_constants18syntax_option_typeE; std::basic_regex<char,std::regex_traits<char>>::basic_regex(char const*,std::regex_constants::syntax_option_type)
lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc
lea rsi, _ZZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard *
call ___cxa_guard_release
jmp loc_E01BF
mov rbx, rax
lea rdi, _ZGVZN5minja6Parser17parseIfExpressionEvE8else_tokB5cxx11; __guard *
call ___cxa_guard_abort
jmp short loc_E0397
jmp short loc_E038A
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_E038D
mov rbx, rax
jmp short loc_E0397
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_E0397
jmp short $+2
loc_E038A:
mov rbx, rax
loc_E038D:
lea rdi, [rsp+arg_0]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
loc_E0397:
lea rdi, [rsp+arg_10]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, rbx
call __Unwind_Resume
| minja::Parser * minja::Parser::parseIfExpression(minja::Parser *this, long long *a2)
{
long long v2; // r15
__int128 v3; // xmm0
__int128 v4; // xmm1
long long v5; // rax
std::runtime_error *v6; // r14
__int128 v7; // xmm0
long long v8; // rax
std::runtime_error *exception; // r14
int v11[4]; // [rsp+0h] [rbp-68h] BYREF
__int128 v12; // [rsp+10h] [rbp-58h] BYREF
__int128 v13; // [rsp+20h] [rbp-48h] BYREF
__int128 v14; // [rsp+30h] [rbp-38h] BYREF
long long v15; // [rsp+40h] [rbp-28h] BYREF
minja::Parser::parseLogicalOr((minja::Parser *)&v12, a2);
if ( !(_QWORD)v12 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected condition expression");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
if ( !(_BYTE)`guard variable for'minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11],
(long long)"else\\b",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11]);
}
*(_OWORD *)v11 = 0LL;
minja::Parser::consumeToken(
&v14,
(long long)a2,
(long long)&minja::Parser::parseIfExpression(void)::else_tok[abi:cxx11],
1u);
v2 = *((_QWORD *)&v14 + 1);
if ( (long long *)v14 != &v15 )
operator delete((void *)v14, v15 + 1);
if ( v2 )
{
minja::Parser::parseExpression((minja::Parser *)&v13, a2, 1);
v3 = v13;
v13 = 0LL;
v4 = *(_OWORD *)v11;
*(_OWORD *)v11 = v3;
v14 = v4;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)&v14 + 1);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)&v13 + 1);
v5 = v3;
if ( !(_QWORD)v3 )
{
v6 = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(v6, "Expected 'else' expression");
__cxa_throw(
v6,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
}
else
{
v5 = *(_QWORD *)v11;
}
v7 = v12;
*((_QWORD *)&v12 + 1) = 0LL;
*(_OWORD *)this = v7;
*(_QWORD *)&v12 = 0LL;
*((_QWORD *)this + 2) = v5;
v8 = *(_QWORD *)&v11[2];
*(_QWORD *)&v11[2] = 0LL;
*((_QWORD *)this + 3) = v8;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)&v11[2]);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((volatile signed __int32 **)&v12 + 1);
return this;
}
| parseIfExpression:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x50
MOV R14,RSI
MOV RBX,RDI
LEA R15,[RSP + 0x10]
MOV RDI,R15
CALL 0x001dfef8
CMP qword ptr [R15],0x0
JZ 0x001e02cd
LEA RAX,[0x266630]
MOV AL,byte ptr [RAX]
TEST AL,AL
JZ 0x001e02ff
LAB_001e01bf:
XORPS XMM0,XMM0
MOVAPS xmmword ptr [RSP],XMM0
LAB_001e01c6:
LEA RDX,[0x266610]
LEA RDI,[RSP + 0x30]
MOV RSI,R14
MOV ECX,0x1
CALL 0x001decbe
LEA RAX,[RSP + 0x40]
MOV RDI,qword ptr [RAX + -0x10]
MOV R15,qword ptr [RAX + -0x8]
CMP RDI,RAX
JZ 0x001e01fe
MOV RSI,qword ptr [RSP + 0x40]
INC RSI
CALL 0x00121170
LAB_001e01fe:
TEST R15,R15
JZ 0x001e0282
LAB_001e0203:
LEA RDI,[RSP + 0x20]
MOV RSI,R14
MOV EDX,0x1
CALL 0x001dea9e
LAB_001e0215:
LEA RDI,[RSP + 0x38]
LEA R14,[RSP + 0x28]
MOVAPS XMM0,xmmword ptr [R14 + -0x8]
XORPS XMM1,XMM1
MOVAPS xmmword ptr [R14 + -0x8],XMM1
MOVAPS XMM1,xmmword ptr [RSP]
MOVAPS xmmword ptr [RSP],XMM0
MOVAPS xmmword ptr [RDI + -0x8],XMM1
CALL 0x00170882
MOV RDI,R14
CALL 0x00170882
MOV RAX,qword ptr [RSP]
TEST RAX,RAX
JNZ 0x001e0286
MOV EDI,0x10
CALL 0x00121630
MOV R14,RAX
LAB_001e025b:
LEA RSI,[0x2239e0]
MOV RDI,RAX
CALL 0x00121400
LAB_001e026a:
MOV RSI,qword ptr [0x00264fc0]
MOV RDX,qword ptr [0x00264f78]
MOV RDI,R14
CALL 0x00121a50
LAB_001e0282:
MOV RAX,qword ptr [RSP]
LAB_001e0286:
LEA R14,[RSP + 0x18]
MOVAPS XMM0,xmmword ptr [R14 + -0x8]
XOR ECX,ECX
MOV qword ptr [R14],RCX
MOVUPS xmmword ptr [RBX],XMM0
MOV qword ptr [R14 + -0x8],RCX
MOV qword ptr [RBX + 0x10],RAX
LEA RDI,[RSP + 0x8]
MOV RAX,qword ptr [RDI]
MOV qword ptr [RDI],RCX
MOV qword ptr [RBX + 0x18],RAX
MOV qword ptr [RDI + -0x8],RCX
CALL 0x00170882
MOV RDI,R14
CALL 0x00170882
MOV RAX,RBX
ADD RSP,0x50
POP RBX
POP R14
POP R15
RET
LAB_001e02cd:
MOV EDI,0x10
CALL 0x00121630
MOV R14,RAX
LAB_001e02da:
LEA RSI,[0x2239bb]
MOV RDI,RAX
CALL 0x00121400
LAB_001e02e9:
MOV RSI,qword ptr [0x00264fc0]
MOV RDX,qword ptr [0x00264f78]
MOV RDI,R14
CALL 0x00121a50
LAB_001e02ff:
LEA RDI,[0x266630]
CALL 0x00121580
TEST EAX,EAX
JZ 0x001e01bf
LAB_001e0313:
LEA RDI,[0x266610]
LEA RSI,[0x2239d9]
MOV EDX,0x10
CALL 0x0016619c
LAB_001e032b:
LEA RDI,[0x166248]
LEA RSI,[0x266610]
LEA RDX,[0x265a58]
CALL 0x00121ee0
LEA RDI,[0x266630]
CALL 0x00121960
JMP 0x001e01bf
|
/* minja::Parser::parseIfExpression() */
void minja::Parser::parseIfExpression(void)
{
long lVar1;
long lVar2;
int iVar3;
runtime_error *prVar4;
long lVar5;
long *in_RDI;
long lStack_60;
long local_58;
long lStack_50;
long local_48;
long lStack_40;
long *local_38;
long lStack_30;
long local_28 [2];
parseLogicalOr();
if (local_58 == 0) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001e02da to 001e02e8 has its CatchHandler @ 001e037b */
std::runtime_error::runtime_error(prVar4,"Expected condition expression");
/* try { // try from 001e02e9 to 001e02fe has its CatchHandler @ 001e0376 */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar4,PTR_typeinfo_00264fc0,PTR__runtime_error_00264f78);
}
if (parseIfExpression()::else_tok_abi_cxx11_ == '\0') {
iVar3 = __cxa_guard_acquire(&parseIfExpression()::else_tok_abi_cxx11_);
if (iVar3 != 0) {
/* try { // try from 001e0313 to 001e032a has its CatchHandler @ 001e0356 */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
((basic_regex<char,std::__cxx11::regex_traits<char>> *)
parseIfExpression()::else_tok_abi_cxx11_,"else\\b",0x10);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
parseIfExpression()::else_tok_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&parseIfExpression()::else_tok_abi_cxx11_);
}
}
lStack_60 = 0;
/* try { // try from 001e01c6 to 001e01de has its CatchHandler @ 001e038a */
consumeToken(&local_38);
lVar5 = lStack_30;
if (local_38 != local_28) {
operator_delete(local_38,local_28[0] + 1);
}
if (lVar5 == 0) {
lVar5 = 0;
}
else {
/* try { // try from 001e0203 to 001e0214 has its CatchHandler @ 001e0388 */
parseExpression(SUB81(&local_48,0));
lVar1 = lStack_40;
lVar5 = local_48;
lStack_30 = lStack_60;
local_48 = 0;
lStack_40 = 0;
lStack_60 = lVar1;
local_38 = (long *)0x0;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&lStack_30);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&lStack_40);
if (lVar5 == 0) {
prVar4 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001e025b to 001e0269 has its CatchHandler @ 001e0369 */
std::runtime_error::runtime_error(prVar4,"Expected \'else\' expression");
/* try { // try from 001e026a to 001e027f has its CatchHandler @ 001e0367 */
/* WARNING: Subroutine does not return */
__cxa_throw(prVar4,PTR_typeinfo_00264fc0,PTR__runtime_error_00264f78);
}
}
lVar2 = lStack_50;
lVar1 = lStack_60;
lStack_50 = 0;
*in_RDI = local_58;
in_RDI[1] = lVar2;
local_58 = 0;
in_RDI[2] = lVar5;
lStack_60 = 0;
in_RDI[3] = lVar1;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&lStack_60);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)&lStack_50);
return;
}
| |
44,333 | my_strnxfrm_latin1_de | eloqsql/strings/ctype-latin1.c | static size_t
my_strnxfrm_latin1_de(CHARSET_INFO *cs,
uchar *dst, size_t dstlen, uint nweights,
const uchar* src, size_t srclen, uint flags)
{
uchar *de= dst + dstlen;
const uchar *se= src + srclen;
uchar *d0= dst;
for ( ; src < se && dst < de && nweights; src++, nweights--)
{
uchar chr= combo1map[*src];
*dst++= chr;
if ((chr= combo2map[*src]) && dst < de && nweights > 1)
{
*dst++= chr;
nweights--;
}
}
return my_strxfrm_pad_desc_and_reverse(cs, d0, dst, de, nweights, flags, 0);
} | O0 | c | my_strnxfrm_latin1_de:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x10(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rax
addq -0x30(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x28(%rbp), %rcx
xorl %eax, %eax
cmpq -0x40(%rbp), %rcx
movb %al, -0x4a(%rbp)
jae 0x3e4aa
movq -0x10(%rbp), %rcx
xorl %eax, %eax
cmpq -0x38(%rbp), %rcx
movb %al, -0x4a(%rbp)
jae 0x3e4aa
cmpl $0x0, -0x1c(%rbp)
setne %al
movb %al, -0x4a(%rbp)
movb -0x4a(%rbp), %al
testb $0x1, %al
jne 0x3e4b6
jmp 0x3e547
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0xff1fa(%rip), %rax # 0x13d6c0
movb (%rax,%rcx), %al
movb %al, -0x49(%rbp)
movb -0x49(%rbp), %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movq -0x28(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0xff2d0(%rip), %rax # 0x13d7c0
movb (%rax,%rcx), %al
movb %al, -0x49(%rbp)
movzbl %al, %eax
cmpl $0x0, %eax
je 0x3e52b
movq -0x10(%rbp), %rax
cmpq -0x38(%rbp), %rax
jae 0x3e52b
cmpl $0x1, -0x1c(%rbp)
jbe 0x3e52b
movb -0x49(%rbp), %cl
movq -0x10(%rbp), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, -0x10(%rbp)
movb %cl, (%rax)
movl -0x1c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x3e52d
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x28(%rbp)
movl -0x1c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x3e482
movq -0x8(%rbp), %rdi
movq -0x48(%rbp), %rsi
movq -0x10(%rbp), %rdx
movq -0x38(%rbp), %rcx
movl -0x1c(%rbp), %r8d
movl 0x10(%rbp), %r9d
xorl %eax, %eax
movl $0x0, (%rsp)
callq 0x41550
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| my_strnxfrm_latin1_de:
push rbp
mov rbp, rsp
sub rsp, 60h
mov eax, [rbp+arg_0]
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_1C], ecx
mov [rbp+var_28], r8
mov [rbp+var_30], r9
mov rax, [rbp+var_10]
add rax, [rbp+var_18]
mov [rbp+var_38], rax
mov rax, [rbp+var_28]
add rax, [rbp+var_30]
mov [rbp+var_40], rax
mov rax, [rbp+var_10]
mov [rbp+var_48], rax
loc_3E482:
mov rcx, [rbp+var_28]
xor eax, eax
cmp rcx, [rbp+var_40]
mov [rbp+var_4A], al
jnb short loc_3E4AA
mov rcx, [rbp+var_10]
xor eax, eax
cmp rcx, [rbp+var_38]
mov [rbp+var_4A], al
jnb short loc_3E4AA
cmp [rbp+var_1C], 0
setnz al
mov [rbp+var_4A], al
loc_3E4AA:
mov al, [rbp+var_4A]
test al, 1
jnz short loc_3E4B6
jmp loc_3E547
loc_3E4B6:
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, combo1map
mov al, [rax+rcx]
mov [rbp+var_49], al
mov cl, [rbp+var_49]
mov rax, [rbp+var_10]
mov rdx, rax
add rdx, 1
mov [rbp+var_10], rdx
mov [rax], cl
mov rax, [rbp+var_28]
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, combo2map
mov al, [rax+rcx]
mov [rbp+var_49], al
movzx eax, al
cmp eax, 0
jz short loc_3E52B
mov rax, [rbp+var_10]
cmp rax, [rbp+var_38]
jnb short loc_3E52B
cmp [rbp+var_1C], 1
jbe short loc_3E52B
mov cl, [rbp+var_49]
mov rax, [rbp+var_10]
mov rdx, rax
add rdx, 1
mov [rbp+var_10], rdx
mov [rax], cl
mov eax, [rbp+var_1C]
add eax, 0FFFFFFFFh
mov [rbp+var_1C], eax
loc_3E52B:
jmp short $+2
loc_3E52D:
mov rax, [rbp+var_28]
add rax, 1
mov [rbp+var_28], rax
mov eax, [rbp+var_1C]
add eax, 0FFFFFFFFh
mov [rbp+var_1C], eax
jmp loc_3E482
loc_3E547:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_48]
mov rdx, [rbp+var_10]
mov rcx, [rbp+var_38]
mov r8d, [rbp+var_1C]
mov r9d, [rbp+arg_0]
xor eax, eax
mov [rsp+60h+var_60], 0
call my_strxfrm_pad_desc_and_reverse
add rsp, 60h
pop rbp
retn
| long long my_strnxfrm_latin1_de(
int a1,
unsigned __int8 *a2,
long long a3,
unsigned int a4,
unsigned __int8 *a5,
long long a6,
int a7)
{
unsigned __int8 *v7; // rax
unsigned __int8 *v8; // rax
bool v10; // [rsp+16h] [rbp-4Ah]
unsigned __int8 v11; // [rsp+17h] [rbp-49h]
unsigned long long v12; // [rsp+28h] [rbp-38h]
unsigned __int8 *v13; // [rsp+38h] [rbp-28h]
unsigned __int8 *v15; // [rsp+50h] [rbp-10h]
v15 = a2;
v13 = a5;
v12 = (unsigned long long)&a2[a3];
while ( 1 )
{
v10 = 0;
if ( v13 < &a5[a6] )
{
v10 = 0;
if ( (unsigned long long)v15 < v12 )
v10 = a4 != 0;
}
if ( !v10 )
break;
v7 = v15++;
*v7 = combo1map[*v13];
v11 = combo2map[*v13];
if ( v11 && (unsigned long long)v15 < v12 && a4 > 1 )
{
v8 = v15++;
*v8 = v11;
--a4;
}
++v13;
--a4;
}
return my_strxfrm_pad_desc_and_reverse(a1, (_DWORD)a2, (_DWORD)v15, v12, a4, a7, 0);
}
| my_strnxfrm_latin1_de:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV EAX,dword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV dword ptr [RBP + -0x1c],ECX
MOV qword ptr [RBP + -0x28],R8
MOV qword ptr [RBP + -0x30],R9
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x40],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x48],RAX
LAB_0013e482:
MOV RCX,qword ptr [RBP + -0x28]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x40]
MOV byte ptr [RBP + -0x4a],AL
JNC 0x0013e4aa
MOV RCX,qword ptr [RBP + -0x10]
XOR EAX,EAX
CMP RCX,qword ptr [RBP + -0x38]
MOV byte ptr [RBP + -0x4a],AL
JNC 0x0013e4aa
CMP dword ptr [RBP + -0x1c],0x0
SETNZ AL
MOV byte ptr [RBP + -0x4a],AL
LAB_0013e4aa:
MOV AL,byte ptr [RBP + -0x4a]
TEST AL,0x1
JNZ 0x0013e4b6
JMP 0x0013e547
LAB_0013e4b6:
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x23d6c0]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RBP + -0x49],AL
MOV CL,byte ptr [RBP + -0x49]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x10],RDX
MOV byte ptr [RAX],CL
MOV RAX,qword ptr [RBP + -0x28]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x23d7c0]
MOV AL,byte ptr [RAX + RCX*0x1]
MOV byte ptr [RBP + -0x49],AL
MOVZX EAX,AL
CMP EAX,0x0
JZ 0x0013e52b
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x0013e52b
CMP dword ptr [RBP + -0x1c],0x1
JBE 0x0013e52b
MOV CL,byte ptr [RBP + -0x49]
MOV RAX,qword ptr [RBP + -0x10]
MOV RDX,RAX
ADD RDX,0x1
MOV qword ptr [RBP + -0x10],RDX
MOV byte ptr [RAX],CL
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x1c],EAX
LAB_0013e52b:
JMP 0x0013e52d
LAB_0013e52d:
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,0x1
MOV qword ptr [RBP + -0x28],RAX
MOV EAX,dword ptr [RBP + -0x1c]
ADD EAX,-0x1
MOV dword ptr [RBP + -0x1c],EAX
JMP 0x0013e482
LAB_0013e547:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x48]
MOV RDX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x38]
MOV R8D,dword ptr [RBP + -0x1c]
MOV R9D,dword ptr [RBP + 0x10]
XOR EAX,EAX
MOV dword ptr [RSP],0x0
CALL 0x00141550
ADD RSP,0x60
POP RBP
RET
|
void my_strnxfrm_latin1_de
(int8 param_1,char *param_2,long param_3,uint param_4,byte *param_5,
long param_6,int4 param_7)
{
char *pcVar1;
char *pcVar2;
bool bVar3;
byte *local_30;
uint local_24;
char *local_18;
pcVar1 = param_2 + param_3;
local_30 = param_5;
local_24 = param_4;
local_18 = param_2;
while( true ) {
bVar3 = false;
if ((local_30 < param_5 + param_6) && (bVar3 = false, local_18 < pcVar1)) {
bVar3 = local_24 != 0;
}
if (!bVar3) break;
pcVar2 = local_18 + 1;
*local_18 = combo1map[*local_30];
if (((combo2map[*local_30] != '\0') && (pcVar2 < pcVar1)) && (1 < local_24)) {
*pcVar2 = combo2map[*local_30];
local_24 = local_24 - 1;
pcVar2 = local_18 + 2;
}
local_18 = pcVar2;
local_30 = local_30 + 1;
local_24 = local_24 - 1;
}
my_strxfrm_pad_desc_and_reverse(param_1,param_2,local_18,pcVar1,local_24,param_7,0);
return;
}
| |
44,334 | my_strnxfrm_latin1_de | eloqsql/strings/ctype-latin1.c | static size_t
my_strnxfrm_latin1_de(CHARSET_INFO *cs,
uchar *dst, size_t dstlen, uint nweights,
const uchar* src, size_t srclen, uint flags)
{
uchar *de= dst + dstlen;
const uchar *se= src + srclen;
uchar *d0= dst;
for ( ; src < se && dst < de && nweights; src++, nweights--)
{
uchar chr= combo1map[*src];
*dst++= chr;
if ((chr= combo2map[*src]) && dst < de && nweights > 1)
{
*dst++= chr;
nweights--;
}
}
return my_strxfrm_pad_desc_and_reverse(cs, d0, dst, de, nweights, flags, 0);
} | O3 | c | my_strnxfrm_latin1_de:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rax
movl %ecx, %r10d
movq %rdx, %rcx
movl 0x10(%rbp), %r9d
addq %rsi, %rcx
testq %rax, %rax
jle 0x35057
addq %r8, %rax
leaq 0x16b72f(%rip), %r11 # 0x1a0720
leaq 0x16b828(%rip), %rbx # 0x1a0820
movq %rsi, %r14
cmpq %rcx, %r14
jae 0x3505c
testl %r10d, %r10d
je 0x3505c
movzbl (%r8), %edx
movb (%rdx,%r11), %r15b
leaq 0x1(%r14), %rdx
movb %r15b, (%r14)
movzbl (%r8), %r15d
movb (%r15,%rbx), %r15b
testb %r15b, %r15b
je 0x35047
cmpq %rcx, %rdx
setb %r12b
cmpl $0x2, %r10d
setae %r13b
andb %r12b, %r13b
cmpb $0x1, %r13b
jne 0x35047
movb %r15b, 0x1(%r14)
addq $0x2, %r14
decl %r10d
movq %r14, %rdx
incq %r8
decl %r10d
movq %rdx, %r14
cmpq %rax, %r8
jb 0x34ffb
jmp 0x3505f
movq %rsi, %rdx
jmp 0x3505f
movq %r14, %rdx
movl $0x0, (%rsp)
movl %r10d, %r8d
callq 0x36de8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
| my_strnxfrm_latin1_de:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rax, r9
mov r10d, ecx
mov rcx, rdx
mov r9d, [rbp+arg_0]
add rcx, rsi
test rax, rax
jle short loc_35057
add rax, r8
lea r11, combo1map
lea rbx, combo2map
mov r14, rsi
loc_34FFB:
cmp r14, rcx
jnb short loc_3505C
test r10d, r10d
jz short loc_3505C
movzx edx, byte ptr [r8]
mov r15b, [rdx+r11]
lea rdx, [r14+1]
mov [r14], r15b
movzx r15d, byte ptr [r8]
mov r15b, [r15+rbx]
test r15b, r15b
jz short loc_35047
cmp rdx, rcx
setb r12b
cmp r10d, 2
setnb r13b
and r13b, r12b
cmp r13b, 1
jnz short loc_35047
mov [r14+1], r15b
add r14, 2
dec r10d
mov rdx, r14
loc_35047:
inc r8
dec r10d
mov r14, rdx
cmp r8, rax
jb short loc_34FFB
jmp short loc_3505F
loc_35057:
mov rdx, rsi
jmp short loc_3505F
loc_3505C:
mov rdx, r14
loc_3505F:
mov [rsp+30h+var_30], 0
mov r8d, r10d
call my_strxfrm_pad_desc_and_reverse
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_strnxfrm_latin1_de(
int a1,
_BYTE *a2,
long long a3,
unsigned int a4,
unsigned __int8 *a5,
long long a6,
int a7)
{
unsigned long long v8; // rcx
unsigned __int8 *v9; // rax
_BYTE *v10; // r14
_BYTE *v11; // rdx
unsigned __int8 v12; // r15
v8 = (unsigned long long)&a2[a3];
if ( a6 <= 0 )
{
LODWORD(v11) = (_DWORD)a2;
}
else
{
v9 = &a5[a6];
v10 = a2;
while ( (unsigned long long)v10 < v8 && a4 )
{
v11 = v10 + 1;
*v10 = combo1map[*a5];
v12 = combo2map[*a5];
if ( v12 && (unsigned long long)v11 < v8 && a4 >= 2 )
{
v10[1] = v12;
--a4;
v11 = v10 + 2;
}
++a5;
--a4;
v10 = v11;
if ( a5 >= v9 )
return my_strxfrm_pad_desc_and_reverse(a1, (_DWORD)a2, (_DWORD)v11, v8, a4, a7, 0);
}
LODWORD(v11) = (_DWORD)v10;
}
return my_strxfrm_pad_desc_and_reverse(a1, (_DWORD)a2, (_DWORD)v11, v8, a4, a7, 0);
}
| my_strnxfrm_latin1_de:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RAX,R9
MOV R10D,ECX
MOV RCX,RDX
MOV R9D,dword ptr [RBP + 0x10]
ADD RCX,RSI
TEST RAX,RAX
JLE 0x00135057
ADD RAX,R8
LEA R11,[0x2a0720]
LEA RBX,[0x2a0820]
MOV R14,RSI
LAB_00134ffb:
CMP R14,RCX
JNC 0x0013505c
TEST R10D,R10D
JZ 0x0013505c
MOVZX EDX,byte ptr [R8]
MOV R15B,byte ptr [RDX + R11*0x1]
LEA RDX,[R14 + 0x1]
MOV byte ptr [R14],R15B
MOVZX R15D,byte ptr [R8]
MOV R15B,byte ptr [R15 + RBX*0x1]
TEST R15B,R15B
JZ 0x00135047
CMP RDX,RCX
SETC R12B
CMP R10D,0x2
SETNC R13B
AND R13B,R12B
CMP R13B,0x1
JNZ 0x00135047
MOV byte ptr [R14 + 0x1],R15B
ADD R14,0x2
DEC R10D
MOV RDX,R14
LAB_00135047:
INC R8
DEC R10D
MOV R14,RDX
CMP R8,RAX
JC 0x00134ffb
JMP 0x0013505f
LAB_00135057:
MOV RDX,RSI
JMP 0x0013505f
LAB_0013505c:
MOV RDX,R14
LAB_0013505f:
MOV dword ptr [RSP],0x0
MOV R8D,R10D
CALL 0x00136de8
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void my_strnxfrm_latin1_de
(int8 param_1,int1 *param_2,long param_3,uint param_4,byte *param_5,
long param_6,int4 param_7)
{
ulong in_RAX;
byte *pbVar1;
int1 *puVar2;
int1 *puVar3;
int1 *puVar4;
puVar2 = param_2 + param_3;
puVar4 = param_2;
if (0 < param_6) {
pbVar1 = param_5 + param_6;
puVar3 = param_2;
do {
puVar4 = puVar3;
if ((puVar2 <= puVar3) || (param_4 == 0)) break;
puVar4 = puVar3 + 1;
*puVar3 = combo1map[*param_5];
if ((combo2map[*param_5] != '\0') && (1 < param_4 && puVar4 < puVar2)) {
puVar3[1] = combo2map[*param_5];
puVar4 = puVar3 + 2;
param_4 = param_4 - 1;
}
param_5 = param_5 + 1;
param_4 = param_4 - 1;
puVar3 = puVar4;
} while (param_5 < pbVar1);
}
my_strxfrm_pad_desc_and_reverse
(param_1,param_2,puVar4,puVar2,param_4,param_7,in_RAX & 0xffffffff00000000);
return;
}
| |
44,335 | my_casefold_ujis | eloqsql/strings/ctype-ujis.c | static size_t
my_casefold_ujis(CHARSET_INFO *cs,
const char *src, size_t srclen,
char *dst, size_t dstlen __attribute__((unused)),
const uchar * const map,
size_t is_upper)
{
const char *srcend= src + srclen, *dst0= dst;
while (src < srcend)
{
size_t mblen= my_ismbchar(cs, src, srcend);
if (mblen)
{
MY_UNICASE_CHARACTER *ch;
ch= (mblen == 2) ?
get_case_info_for_ch(cs, 0, (uchar) src[0], (uchar) src[1]) :
get_case_info_for_ch(cs, 1, (uchar) src[1], (uchar) src[2]);
if (ch)
{
int code= is_upper ? ch->toupper : ch->tolower;
src+= mblen;
if (code > 0xFFFF)
*dst++= (char) (uchar) ((code >> 16) & 0xFF);
if (code > 0xFF)
*dst++= (char) (uchar) ((code >> 8) & 0xFF);
*dst++= (char) (uchar) (code & 0xFF);
}
else
{
if (mblen == 3)
*dst++= *src++;
*dst++= *src++;
*dst++= *src++;
}
}
else
{
*dst++= (char) map[(uchar) *src++];
}
}
return (size_t) (dst - dst0);
} | O3 | c | my_casefold_ujis:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, -0x40(%rbp)
movq %rcx, %rbx
movq %rcx, -0x30(%rbp)
testq %rdx, %rdx
jle 0x4cdcb
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
addq %rsi, %r15
xorl %eax, %eax
testq %r9, %r9
sete %al
shll $0x2, %eax
movq %rax, -0x38(%rbp)
xorl %r14d, %r14d
movq -0x30(%rbp), %rbx
movq 0xb8(%r13), %rax
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq *0xc0(%rax)
cmpl $0x2, %eax
cmovll %r14d, %eax
testl %eax, %eax
je 0x4cd25
cmpl $0x2, %eax
jne 0x4cd3b
movzbl (%r12), %ecx
movq 0x78(%r13), %rdx
movq 0x8(%rdx), %rdx
movq (%rdx,%rcx,8), %rcx
testq %rcx, %rcx
je 0x4cd95
movzbl 0x1(%r12), %edx
jmp 0x4cd5c
movzbl (%r12), %eax
incq %r12
movq -0x40(%rbp), %rcx
movb (%rcx,%rax), %al
movb %al, (%rbx)
jmp 0x4cdbf
movzbl 0x1(%r12), %ecx
movq 0x78(%r13), %rdx
movq 0x8(%rdx), %rdx
movq 0x800(%rdx,%rcx,8), %rcx
testq %rcx, %rcx
je 0x4cd84
movzbl 0x2(%r12), %edx
leaq (%rdx,%rdx,2), %rdx
leaq (%rcx,%rdx,4), %rcx
testq %rcx, %rcx
je 0x4cd84
movq -0x38(%rbp), %rdx
movl (%rcx,%rdx), %ecx
cmpl $0x10000, %ecx # imm = 0x10000
jl 0x4cdad
movl %ecx, %edx
shrl $0x10, %edx
movb %dl, (%rbx)
incq %rbx
jmp 0x4cdb5
cmpl $0x3, %eax
jne 0x4cd95
movb (%r12), %al
incq %r12
movb %al, (%rbx)
incq %rbx
movb (%r12), %al
movb %al, (%rbx)
movb 0x1(%r12), %al
addq $0x2, %r12
movb %al, 0x1(%rbx)
addq $0x2, %rbx
jmp 0x4cdc2
cmpl $0x100, %ecx # imm = 0x100
jl 0x4cdba
movb %ch, (%rbx)
incq %rbx
addq %rax, %r12
movb %cl, (%rbx)
incq %rbx
cmpq %r15, %r12
jb 0x4cce1
subq -0x30(%rbp), %rbx
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_casefold_ujis:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rbp+var_40], r8
mov rbx, rcx
mov [rbp+var_30], rcx
test rdx, rdx
jle loc_4CDCB
mov r15, rdx
mov r12, rsi
mov r13, rdi
add r15, rsi
xor eax, eax
test r9, r9
setz al
shl eax, 2
mov [rbp+var_38], rax
xor r14d, r14d
mov rbx, [rbp+var_30]
loc_4CCE1:
mov rax, [r13+0B8h]
mov rdi, r13
mov rsi, r12
mov rdx, r15
call qword ptr [rax+0C0h]
cmp eax, 2
cmovl eax, r14d
test eax, eax
jz short loc_4CD25
cmp eax, 2
jnz short loc_4CD3B
movzx ecx, byte ptr [r12]
mov rdx, [r13+78h]
mov rdx, [rdx+8]
mov rcx, [rdx+rcx*8]
test rcx, rcx
jz short loc_4CD95
movzx edx, byte ptr [r12+1]
jmp short loc_4CD5C
loc_4CD25:
movzx eax, byte ptr [r12]
inc r12
mov rcx, [rbp+var_40]
mov al, [rcx+rax]
mov [rbx], al
jmp loc_4CDBF
loc_4CD3B:
movzx ecx, byte ptr [r12+1]
mov rdx, [r13+78h]
mov rdx, [rdx+8]
mov rcx, [rdx+rcx*8+800h]
test rcx, rcx
jz short loc_4CD84
movzx edx, byte ptr [r12+2]
loc_4CD5C:
lea rdx, [rdx+rdx*2]
lea rcx, [rcx+rdx*4]
test rcx, rcx
jz short loc_4CD84
mov rdx, [rbp+var_38]
mov ecx, [rcx+rdx]
cmp ecx, offset stru_10000
jl short loc_4CDAD
mov edx, ecx
shr edx, 10h
mov [rbx], dl
inc rbx
jmp short loc_4CDB5
loc_4CD84:
cmp eax, 3
jnz short loc_4CD95
mov al, [r12]
inc r12
mov [rbx], al
inc rbx
loc_4CD95:
mov al, [r12]
mov [rbx], al
mov al, [r12+1]
add r12, 2
mov [rbx+1], al
add rbx, 2
jmp short loc_4CDC2
loc_4CDAD:
cmp ecx, 100h
jl short loc_4CDBA
loc_4CDB5:
mov [rbx], ch
inc rbx
loc_4CDBA:
add r12, rax
mov [rbx], cl
loc_4CDBF:
inc rbx
loc_4CDC2:
cmp r12, r15
jb loc_4CCE1
loc_4CDCB:
sub rbx, [rbp+var_30]
mov rax, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| _BYTE * my_casefold_ujis(
long long a1,
unsigned __int8 *a2,
long long a3,
unsigned __int8 *a4,
long long a5,
long long a6)
{
unsigned __int8 *v6; // rbx
unsigned __int8 *v7; // r12
unsigned long long v8; // r15
long long v9; // rax
long long v10; // rcx
long long v11; // rdx
long long v12; // rax
long long v13; // rcx
int v14; // ecx
unsigned __int8 v15; // al
unsigned __int8 v16; // al
long long v19; // [rsp+8h] [rbp-38h]
v6 = a4;
if ( a3 > 0 )
{
v7 = a2;
v8 = (unsigned long long)&a2[a3];
v19 = 4 * (unsigned int)(a6 == 0);
v6 = a4;
while ( 1 )
{
v9 = (*(long long ( **)(long long, unsigned __int8 *, unsigned long long))(*(_QWORD *)(a1 + 184) + 192LL))(
a1,
v7,
v8);
if ( (int)v9 < 2 )
v9 = 0LL;
if ( !(_DWORD)v9 )
{
v12 = *v7++;
*v6 = *(_BYTE *)(a5 + v12);
goto LABEL_21;
}
if ( (_DWORD)v9 != 2 )
break;
v10 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 120) + 8LL) + 8LL * *v7);
if ( v10 )
{
v11 = v7[1];
LABEL_12:
v13 = v10 + 12 * v11;
if ( v13 )
{
v14 = *(_DWORD *)(v13 + v19);
if ( v14 >= (int)&stru_10000 )
{
*v6++ = BYTE2(v14);
goto LABEL_19;
}
if ( v14 >= 256 )
LABEL_19:
*v6++ = BYTE1(v14);
v7 += v9;
*v6 = v14;
LABEL_21:
++v6;
goto LABEL_22;
}
goto LABEL_15;
}
LABEL_17:
*v6 = *v7;
v16 = v7[1];
v7 += 2;
v6[1] = v16;
v6 += 2;
LABEL_22:
if ( (unsigned long long)v7 >= v8 )
return (_BYTE *)(v6 - a4);
}
v10 = *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(a1 + 120) + 8LL) + 8LL * v7[1] + 2048);
if ( v10 )
{
v11 = v7[2];
goto LABEL_12;
}
LABEL_15:
if ( (_DWORD)v9 == 3 )
{
v15 = *v7++;
*v6++ = v15;
}
goto LABEL_17;
}
return (_BYTE *)(v6 - a4);
}
| my_casefold_ujis:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV qword ptr [RBP + -0x40],R8
MOV RBX,RCX
MOV qword ptr [RBP + -0x30],RCX
TEST RDX,RDX
JLE 0x0014cdcb
MOV R15,RDX
MOV R12,RSI
MOV R13,RDI
ADD R15,RSI
XOR EAX,EAX
TEST R9,R9
SETZ AL
SHL EAX,0x2
MOV qword ptr [RBP + -0x38],RAX
XOR R14D,R14D
MOV RBX,qword ptr [RBP + -0x30]
LAB_0014cce1:
MOV RAX,qword ptr [R13 + 0xb8]
MOV RDI,R13
MOV RSI,R12
MOV RDX,R15
CALL qword ptr [RAX + 0xc0]
CMP EAX,0x2
CMOVL EAX,R14D
TEST EAX,EAX
JZ 0x0014cd25
CMP EAX,0x2
JNZ 0x0014cd3b
MOVZX ECX,byte ptr [R12]
MOV RDX,qword ptr [R13 + 0x78]
MOV RDX,qword ptr [RDX + 0x8]
MOV RCX,qword ptr [RDX + RCX*0x8]
TEST RCX,RCX
JZ 0x0014cd95
MOVZX EDX,byte ptr [R12 + 0x1]
JMP 0x0014cd5c
LAB_0014cd25:
MOVZX EAX,byte ptr [R12]
INC R12
MOV RCX,qword ptr [RBP + -0x40]
MOV AL,byte ptr [RCX + RAX*0x1]
MOV byte ptr [RBX],AL
JMP 0x0014cdbf
LAB_0014cd3b:
MOVZX ECX,byte ptr [R12 + 0x1]
MOV RDX,qword ptr [R13 + 0x78]
MOV RDX,qword ptr [RDX + 0x8]
MOV RCX,qword ptr [RDX + RCX*0x8 + 0x800]
TEST RCX,RCX
JZ 0x0014cd84
MOVZX EDX,byte ptr [R12 + 0x2]
LAB_0014cd5c:
LEA RDX,[RDX + RDX*0x2]
LEA RCX,[RCX + RDX*0x4]
TEST RCX,RCX
JZ 0x0014cd84
MOV RDX,qword ptr [RBP + -0x38]
MOV ECX,dword ptr [RCX + RDX*0x1]
CMP ECX,0x10000
JL 0x0014cdad
MOV EDX,ECX
SHR EDX,0x10
MOV byte ptr [RBX],DL
INC RBX
JMP 0x0014cdb5
LAB_0014cd84:
CMP EAX,0x3
JNZ 0x0014cd95
MOV AL,byte ptr [R12]
INC R12
MOV byte ptr [RBX],AL
INC RBX
LAB_0014cd95:
MOV AL,byte ptr [R12]
MOV byte ptr [RBX],AL
MOV AL,byte ptr [R12 + 0x1]
ADD R12,0x2
MOV byte ptr [RBX + 0x1],AL
ADD RBX,0x2
JMP 0x0014cdc2
LAB_0014cdad:
CMP ECX,0x100
JL 0x0014cdba
LAB_0014cdb5:
MOV byte ptr [RBX],CH
INC RBX
LAB_0014cdba:
ADD R12,RAX
MOV byte ptr [RBX],CL
LAB_0014cdbf:
INC RBX
LAB_0014cdc2:
CMP R12,R15
JC 0x0014cce1
LAB_0014cdcb:
SUB RBX,qword ptr [RBP + -0x30]
MOV RAX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_casefold_ujis(long param_1,byte *param_2,long param_3,byte *param_4,long param_5,
long param_6)
{
byte *pbVar1;
byte bVar2;
uint uVar3;
int iVar4;
long lVar6;
byte *pbVar7;
byte *pbVar8;
ulong uVar5;
pbVar7 = param_4;
if (0 < param_3) {
pbVar8 = param_2 + param_3;
do {
uVar3 = (**(code **)(*(long *)(param_1 + 0xb8) + 0xc0))(param_1,param_2,pbVar8);
uVar5 = (ulong)uVar3;
if ((int)uVar3 < 2) {
uVar5 = 0;
}
iVar4 = (int)uVar5;
if (iVar4 == 0) {
bVar2 = *param_2;
param_2 = param_2 + 1;
*pbVar7 = *(byte *)(param_5 + (ulong)bVar2);
LAB_0014cdbf:
pbVar7 = pbVar7 + 1;
}
else {
if (iVar4 == 2) {
lVar6 = *(long *)(*(long *)(*(long *)(param_1 + 0x78) + 8) + (ulong)*param_2 * 8);
if (lVar6 != 0) {
bVar2 = param_2[1];
LAB_0014cd5c:
lVar6 = lVar6 + (ulong)bVar2 * 0xc;
if (lVar6 == 0) goto LAB_0014cd84;
iVar4 = *(int *)(lVar6 + (ulong)(param_6 == 0) * 4);
if (iVar4 < 0x10000) {
if (0xff < iVar4) goto LAB_0014cdb5;
}
else {
*pbVar7 = (byte)((uint)iVar4 >> 0x10);
pbVar7 = pbVar7 + 1;
LAB_0014cdb5:
*pbVar7 = (byte)((uint)iVar4 >> 8);
pbVar7 = pbVar7 + 1;
}
param_2 = param_2 + uVar5;
*pbVar7 = (byte)iVar4;
goto LAB_0014cdbf;
}
}
else {
lVar6 = *(long *)(*(long *)(*(long *)(param_1 + 0x78) + 8) + 0x800 + (ulong)param_2[1] * 8
);
if (lVar6 != 0) {
bVar2 = param_2[2];
goto LAB_0014cd5c;
}
LAB_0014cd84:
if (iVar4 == 3) {
bVar2 = *param_2;
param_2 = param_2 + 1;
*pbVar7 = bVar2;
pbVar7 = pbVar7 + 1;
}
}
*pbVar7 = *param_2;
pbVar1 = param_2 + 1;
param_2 = param_2 + 2;
pbVar7[1] = *pbVar1;
pbVar7 = pbVar7 + 2;
}
} while (param_2 < pbVar8);
}
return (long)pbVar7 - (long)param_4;
}
| |
44,336 | google::protobuf::util::converter::(anonymous namespace)::WriteBool(int, google::protobuf::util::converter::DataPiece const&, google::protobuf::io::CodedOutputStream*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/util/internal/proto_writer.cc | inline util::Status WriteBool(int field_number, const DataPiece& data,
CodedOutputStream* stream) {
util::StatusOr<bool> b = data.ToBool();
if (b.ok()) {
WireFormatLite::WriteBool(field_number, b.value(), stream);
}
return b.status();
} | O0 | cpp | google::protobuf::util::converter::(anonymous namespace)::WriteBool(int, google::protobuf::util::converter::DataPiece const&, google::protobuf::io::CodedOutputStream*):
subq $0x98, %rsp
movq %rdi, 0x20(%rsp)
movq %rdi, %rax
movq %rax, 0x28(%rsp)
movq %rdi, 0x90(%rsp)
movl %esi, 0x8c(%rsp)
movq %rdx, 0x80(%rsp)
movq %rcx, 0x78(%rsp)
movq 0x80(%rsp), %rsi
leaq 0x48(%rsp), %rdi
movq %rdi, 0x30(%rsp)
callq 0x3719c0
movq 0x30(%rsp), %rdi
callq 0x344590
movb %al, 0x3b(%rsp)
jmp 0x3824f7
movb 0x3b(%rsp), %al
testb $0x1, %al
jne 0x382501
jmp 0x382554
movl 0x8c(%rsp), %eax
movl %eax, 0x14(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x3445b0
movq %rax, 0x18(%rsp)
jmp 0x38251d
movl 0x14(%rsp), %edi
movq 0x18(%rsp), %rax
movq 0x78(%rsp), %rdx
movzbl (%rax), %esi
andl $0x1, %esi
callq 0x1aa200
jmp 0x382538
jmp 0x382554
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x40(%rsp)
movl %eax, 0x3c(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x3445f0
jmp 0x38258d
leaq 0x48(%rsp), %rdi
callq 0x344600
movq %rax, 0x8(%rsp)
jmp 0x382565
movq 0x8(%rsp), %rsi
movq 0x20(%rsp), %rdi
callq 0x19c200
jmp 0x382576
leaq 0x48(%rsp), %rdi
callq 0x3445f0
movq 0x28(%rsp), %rax
addq $0x98, %rsp
retq
movq 0x40(%rsp), %rdi
callq 0x90db0
nopw (%rax,%rax)
| _ZN6google8protobuf4util9converter12_GLOBAL__N_19WriteBoolEiRKNS2_9DataPieceEPNS0_2io17CodedOutputStreamE:
sub rsp, 98h
mov [rsp+98h+var_78], rdi
mov rax, rdi
mov [rsp+98h+var_70], rax
mov [rsp+98h+var_8], rdi
mov [rsp+98h+var_C], esi
mov [rsp+98h+var_18], rdx
mov qword ptr [rsp+98h+var_20], rcx
mov rsi, [rsp+98h+var_18]
lea rdi, [rsp+98h+var_50]; this
mov [rsp+98h+var_68], rdi
call _ZNK6google8protobuf4util9converter9DataPiece6ToBoolEv; google::protobuf::util::converter::DataPiece::ToBool(void)
mov rdi, [rsp+98h+var_68]
call _ZNK6google8protobuf4util17statusor_internal8StatusOrIbE2okEv; google::protobuf::util::statusor_internal::StatusOr<bool>::ok(void)
mov [rsp+98h+var_5D], al
jmp short $+2
loc_3824F7:
mov al, [rsp+98h+var_5D]
test al, 1
jnz short loc_382501
jmp short loc_382554
loc_382501:
mov eax, [rsp+98h+var_C]
mov dword ptr [rsp+98h+var_84], eax
lea rdi, [rsp+98h+var_50]
call _ZNK6google8protobuf4util17statusor_internal8StatusOrIbE5valueEv; google::protobuf::util::statusor_internal::StatusOr<bool>::value(void)
mov [rsp+98h+var_84+4], rax
jmp short $+2
loc_38251D:
mov edi, dword ptr [rsp+98h+var_84]; this
mov rax, [rsp+98h+var_84+4]
mov rdx, qword ptr [rsp+98h+var_20]; bool
movzx esi, byte ptr [rax]
and esi, 1; int
call _ZN6google8protobuf8internal14WireFormatLite9WriteBoolEibPNS0_2io17CodedOutputStreamE; google::protobuf::internal::WireFormatLite::WriteBool(int,bool,google::protobuf::io::CodedOutputStream *)
jmp short $+2
loc_382538:
jmp short loc_382554
mov rcx, rax
mov eax, edx
mov [rsp+arg_38], rcx
mov [rsp+arg_34], eax
lea rdi, [rsp+arg_40]
call _ZN6google8protobuf4util17statusor_internal8StatusOrIbED2Ev; google::protobuf::util::statusor_internal::StatusOr<bool>::~StatusOr()
jmp short loc_38258D
loc_382554:
lea rdi, [rsp+98h+var_50]
call _ZNK6google8protobuf4util17statusor_internal8StatusOrIbE6statusEv; google::protobuf::util::statusor_internal::StatusOr<bool>::status(void)
mov [rsp+98h+var_90], rax
jmp short $+2
loc_382565:
mov rsi, [rsp+98h+var_90]; google::protobuf::util::status_internal::Status *
mov rdi, [rsp+98h+var_78]; this
call _ZN6google8protobuf4util15status_internal6StatusC2ERKS3_; google::protobuf::util::status_internal::Status::Status(google::protobuf::util::status_internal::Status const&)
jmp short $+2
loc_382576:
lea rdi, [rsp+98h+var_50]
call _ZN6google8protobuf4util17statusor_internal8StatusOrIbED2Ev; google::protobuf::util::statusor_internal::StatusOr<bool>::~StatusOr()
mov rax, [rsp+98h+var_70]
add rsp, 98h
retn
loc_38258D:
mov rdi, [rsp+arg_38]
call __Unwind_Resume
| google::protobuf::util::converter::_anonymous_namespace_ * google::protobuf::util::converter::`anonymous namespace'::WriteBool(
google::protobuf::util::converter::_anonymous_namespace_ *this,
unsigned int a2,
const google::protobuf::util::converter::DataPiece *a3,
google::protobuf::io::CodedOutputStream *a4,
int a5,
int a6)
{
google::protobuf::io::CodedOutputStream *v7; // rcx
google::protobuf::util::status_internal::Status *v9; // [rsp+8h] [rbp-90h]
unsigned int v10; // [rsp+14h] [rbp-84h]
char *v11; // [rsp+18h] [rbp-80h]
bool v12[48]; // [rsp+48h] [rbp-50h] BYREF
bool v13[8]; // [rsp+78h] [rbp-20h]
const google::protobuf::util::converter::DataPiece *v14; // [rsp+80h] [rbp-18h]
unsigned int v15; // [rsp+8Ch] [rbp-Ch]
google::protobuf::util::converter::_anonymous_namespace_ *v16; // [rsp+90h] [rbp-8h]
v16 = this;
v15 = a2;
v14 = a3;
*(_QWORD *)v13 = a4;
google::protobuf::util::converter::DataPiece::ToBool(
(google::protobuf::util::converter::DataPiece *)v12,
(long long)a3,
(int)a3,
(int)a4,
a5,
a6);
if ( google::protobuf::util::statusor_internal::StatusOr<bool>::ok((long long)v12) )
{
v10 = v15;
v11 = google::protobuf::util::statusor_internal::StatusOr<bool>::value(
(google::protobuf::util::statusor_internal::StatusOrHelper *)v12,
a3);
google::protobuf::internal::WireFormatLite::WriteBool(
(google::protobuf::internal::WireFormatLite *)v10,
*v11 & 1,
*(google::protobuf::io::CodedOutputStream **)v13,
v7);
}
v9 = (google::protobuf::util::status_internal::Status *)google::protobuf::util::statusor_internal::StatusOr<bool>::status((long long)v12);
google::protobuf::util::status_internal::Status::Status(this, v9);
google::protobuf::util::statusor_internal::StatusOr<bool>::~StatusOr((google::protobuf::util::status_internal::Status *)v12);
return this;
}
| enum_descriptor:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV RDI,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x00386b90
CMP EAX,0x4
JNZ 0x003824cb
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP],RAX
JMP 0x003824d3
LAB_003824cb:
XOR EAX,EAX
MOV qword ptr [RSP],RAX
JMP 0x003824d3
LAB_003824d3:
MOV RAX,qword ptr [RSP]
ADD RSP,0x18
RET
|
/* google::protobuf::Symbol::enum_descriptor() const */
int8 __thiscall google::protobuf::Symbol::enum_descriptor(Symbol *this)
{
int iVar1;
int8 local_18;
iVar1 = type(this);
if (iVar1 == 4) {
local_18 = *(int8 *)this;
}
else {
local_18 = 0;
}
return local_18;
}
| |
44,337 | common_tokenize(llama_vocab const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool, bool) | llama.cpp/common/common.cpp | std::vector<llama_token> common_tokenize(
const struct llama_vocab * vocab,
const std::string & text,
bool add_special,
bool parse_special) {
// upper limit for the number of tokens
int n_tokens = text.length() + 2 * add_special;
std::vector<llama_token> result(n_tokens);
n_tokens = llama_tokenize(vocab, text.data(), text.length(), result.data(), result.size(), add_special, parse_special);
if (n_tokens < 0) {
result.resize(-n_tokens);
int check = llama_tokenize(vocab, text.data(), text.length(), result.data(), result.size(), add_special, parse_special);
GGML_ASSERT(check == -n_tokens);
} else {
result.resize(n_tokens);
}
return result;
} | O3 | cpp | common_tokenize(llama_vocab const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %ebp
movl %ecx, %r14d
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %rbx
leal (%r14,%r14), %eax
addl 0x8(%rdx), %eax
movslq %eax, %rsi
leaq 0x17(%rsp), %rdx
callq 0xb0c9e
movq (%r12), %rsi
movl 0x8(%r12), %edx
movq (%rbx), %rcx
movq 0x8(%rbx), %r8
subq %rcx, %r8
shrq $0x2, %r8
movl %ebp, (%rsp)
movq %r15, %rdi
movl %r14d, %r9d
callq 0x1cdb0
movl %eax, %r13d
testl %eax, %eax
js 0xb0182
movl %r13d, %esi
movq %rbx, %rdi
callq 0xb0d2a
jmp 0xb01bf
negl %r13d
movq %rbx, %rdi
movq %r13, %rsi
callq 0xb0d2a
movq (%r12), %rsi
movl 0x8(%r12), %edx
movq (%rbx), %rcx
movq 0x8(%rbx), %r8
subq %rcx, %r8
shrq $0x2, %r8
movzbl %bpl, %eax
movl %eax, (%rsp)
movzbl %r14b, %r9d
movq %r15, %rdi
callq 0x1cdb0
cmpl %r13d, %eax
jne 0xb01d1
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20a39(%rip), %rdi # 0xd0c11
leaq 0x17eb1(%rip), %rdx # 0xc8090
leaq 0x21047(%rip), %rcx # 0xd122d
movl $0x4db, %esi # imm = 0x4DB
xorl %eax, %eax
callq 0x1ca40
jmp 0xb01f4
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xb020b
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x1c110
movq %r14, %rdi
callq 0x1c7d0
| _Z15common_tokenizePK11llama_vocabRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbb:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov ebp, r8d
mov r14d, ecx
mov r12, rdx
mov r15, rsi
mov rbx, rdi
lea eax, [r14+r14]
add eax, [rdx+8]
movsxd rsi, eax
lea rdx, [rsp+48h+var_31]
call _ZNSt6vectorIiSaIiEEC2EmRKS0_; std::vector<int>::vector(ulong,std::allocator<int> const&)
mov rsi, [r12]
mov edx, [r12+8]
mov rcx, [rbx]
mov r8, [rbx+8]
sub r8, rcx
shr r8, 2
mov [rsp+48h+var_48], ebp
mov rdi, r15
mov r9d, r14d
call _llama_tokenize
mov r13d, eax
test eax, eax
js short loc_B0182
mov esi, r13d
mov rdi, rbx
call _ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong)
jmp short loc_B01BF
loc_B0182:
neg r13d
mov rdi, rbx
mov rsi, r13
call _ZNSt6vectorIiSaIiEE6resizeEm; std::vector<int>::resize(ulong)
mov rsi, [r12]
mov edx, [r12+8]
mov rcx, [rbx]
mov r8, [rbx+8]
sub r8, rcx
shr r8, 2
movzx eax, bpl
mov [rsp+48h+var_48], eax
movzx r9d, r14b
mov rdi, r15
call _llama_tokenize
cmp eax, r13d
jnz short loc_B01D1
loc_B01BF:
mov rax, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_B01D1:
lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aCheckNTokens; "check == -n_tokens"
mov esi, 4DBh
xor eax, eax
call _ggml_abort
jmp short $+2
loc_B01F4:
mov r14, rax
mov rdi, [rbx]; void *
test rdi, rdi
jz short loc_B020B
mov rsi, [rbx+10h]
sub rsi, rdi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_B020B:
mov rdi, r14
call __Unwind_Resume
| _QWORD * common_tokenize(_QWORD *a1, long long a2, _QWORD *a3, unsigned int a4, int a5)
{
int v8; // eax
int v9; // r13d
long long v11; // r14
_BYTE v12[49]; // [rsp+17h] [rbp-31h] BYREF
std::vector<int>::vector(a1, (int)(*((_DWORD *)a3 + 2) + 2 * a4), v12);
v8 = llama_tokenize(a2, *a3, *((unsigned int *)a3 + 2), *a1, (a1[1] - *a1) >> 2, a4, a5);
if ( v8 < 0 )
{
v9 = -v8;
std::vector<int>::resize(a1, (unsigned int)-v8);
if ( (unsigned int)llama_tokenize(
a2,
*a3,
*((unsigned int *)a3 + 2),
*a1,
(a1[1] - *a1) >> 2,
(unsigned __int8)a4,
(unsigned __int8)a5) != v9 )
{
v11 = ggml_abort(
"/workspace/llm4binary/github2025/llama.cpp/common/common.cpp",
1243LL,
"GGML_ASSERT(%s) failed",
"check == -n_tokens");
if ( *a1 )
operator delete((void *)*a1, a1[2] - *a1);
_Unwind_Resume(v11);
}
}
else
{
std::vector<int>::resize(a1, (unsigned int)v8);
}
return a1;
}
| common_tokenize:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV EBP,R8D
MOV R14D,ECX
MOV R12,RDX
MOV R15,RSI
MOV RBX,RDI
LEA EAX,[R14 + R14*0x1]
ADD EAX,dword ptr [RDX + 0x8]
MOVSXD RSI,EAX
LEA RDX,[RSP + 0x17]
CALL 0x001b0c9e
MOV RSI,qword ptr [R12]
MOV EDX,dword ptr [R12 + 0x8]
MOV RCX,qword ptr [RBX]
MOV R8,qword ptr [RBX + 0x8]
SUB R8,RCX
SHR R8,0x2
LAB_001b0160:
MOV dword ptr [RSP],EBP
MOV RDI,R15
MOV R9D,R14D
CALL 0x0011cdb0
MOV R13D,EAX
TEST EAX,EAX
JS 0x001b0182
MOV ESI,R13D
MOV RDI,RBX
CALL 0x001b0d2a
JMP 0x001b01bf
LAB_001b0182:
NEG R13D
MOV RDI,RBX
MOV RSI,R13
CALL 0x001b0d2a
MOV RSI,qword ptr [R12]
MOV EDX,dword ptr [R12 + 0x8]
MOV RCX,qword ptr [RBX]
MOV R8,qword ptr [RBX + 0x8]
SUB R8,RCX
SHR R8,0x2
LAB_001b01a7:
MOVZX EAX,BPL
MOV dword ptr [RSP],EAX
MOVZX R9D,R14B
MOV RDI,R15
CALL 0x0011cdb0
CMP EAX,R13D
JNZ 0x001b01d1
LAB_001b01bf:
MOV RAX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001b01d1:
LEA RDI,[0x1d0c11]
LEA RDX,[0x1c8090]
LEA RCX,[0x1d122d]
MOV ESI,0x4db
XOR EAX,EAX
CALL 0x0011ca40
|
/* common_tokenize(llama_vocab const*, std::__cxx11::string const&, bool, bool) */
llama_vocab * common_tokenize(llama_vocab *param_1,string *param_2,bool param_3,bool param_4)
{
uint uVar1;
uint uVar2;
int7 in_register_00000009;
int7 in_register_00000011;
int8 *puVar3;
uint in_R8D;
puVar3 = (int8 *)CONCAT71(in_register_00000011,param_3);
std::vector<int,std::allocator<int>>::vector
((ulong)param_1,
(allocator *)
(long)((int)CONCAT71(in_register_00000009,param_4) * 2 + *(int *)(puVar3 + 1)));
/* try { // try from 001b0160 to 001b018f has its CatchHandler @ 001b01f4 */
uVar1 = llama_tokenize(param_2,*puVar3,*(int4 *)(puVar3 + 1),*(long *)param_1,
(ulong)(*(long *)(param_1 + 8) - *(long *)param_1) >> 2,
CONCAT71(in_register_00000009,param_4) & 0xffffffff,in_R8D);
if ((int)uVar1 < 0) {
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)param_1,(ulong)-uVar1);
/* try { // try from 001b01a7 to 001b01f1 has its CatchHandler @ 001b01f2 */
uVar2 = llama_tokenize(param_2,*puVar3,*(int4 *)(puVar3 + 1),*(long *)param_1,
(ulong)(*(long *)(param_1 + 8) - *(long *)param_1) >> 2,param_4,
in_R8D & 0xff);
if (uVar2 != -uVar1) {
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/common.cpp",0x4db,
"GGML_ASSERT(%s) failed","check == -n_tokens");
}
}
else {
std::vector<int,std::allocator<int>>::resize
((vector<int,std::allocator<int>> *)param_1,(ulong)uVar1);
}
return param_1;
}
| |
44,338 | nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get_codepoint() | msxemulator/build_O3/_deps/picotool-src/lib/nlohmann_json/single_include/nlohmann/json.hpp | int get_codepoint()
{
// this function only makes sense after reading `\u`
JSON_ASSERT(current == 'u');
int codepoint = 0;
const auto factors = { 12u, 8u, 4u, 0u };
for (const auto factor : factors)
{
get();
if (current >= '0' && current <= '9')
{
codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x30u) << factor);
}
else if (current >= 'A' && current <= 'F')
{
codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x37u) << factor);
}
else if (current >= 'a' && current <= 'f')
{
codepoint += static_cast<int>((static_cast<unsigned int>(current) - 0x57u) << factor);
}
else
{
return -1;
}
}
JSON_ASSERT(0x0000 <= codepoint && codepoint <= 0xFFFF);
return codepoint;
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get_codepoint():
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
movaps 0x93b14(%rip), %xmm0 # 0xa38d0
movaps %xmm0, (%rsp)
xorl %ebx, %ebx
pushq $-0x1
popq %r15
xorl %r12d, %r12d
movl (%rsp,%r12), %ebp
movq %r14, %rdi
callq 0xfcac
movl 0x14(%r14), %eax
leal -0x30(%rax), %edx
cmpl $0xa, %edx
jb 0xfdfb
leal -0x41(%rax), %ecx
cmpl $0x5, %ecx
ja 0xfdee
addl $-0x37, %eax
jmp 0xfdf9
leal -0x61(%rax), %ecx
cmpl $0x5, %ecx
ja 0xfe1a
addl $-0x57, %eax
movl %eax, %edx
movl %ebp, %ecx
shll %cl, %edx
addl %edx, %ebx
addq $0x4, %r12
cmpq $0x10, %r12
jne 0xfdc9
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl %r15d, %ebx
jmp 0xfe0b
| _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE13get_codepointEv:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 10h
mov r14, rdi
movaps xmm0, cs:xmmword_A38D0
movaps [rsp+38h+var_38], xmm0
xor ebx, ebx
push 0FFFFFFFFFFFFFFFFh
pop r15
xor r12d, r12d
loc_FDC9:
mov ebp, dword ptr [rsp+r12+38h+var_38]
mov rdi, r14; this
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE3getEv; nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(void)
mov eax, [r14+14h]
lea edx, [rax-30h]
cmp edx, 0Ah
jb short loc_FDFB
lea ecx, [rax-41h]
cmp ecx, 5
ja short loc_FDEE
add eax, 0FFFFFFC9h
jmp short loc_FDF9
loc_FDEE:
lea ecx, [rax-61h]
cmp ecx, 5
ja short loc_FE1A
add eax, 0FFFFFFA9h
loc_FDF9:
mov edx, eax
loc_FDFB:
mov ecx, ebp
shl edx, cl
add ebx, edx
add r12, 4
cmp r12, 10h
jnz short loc_FDC9
loc_FE0B:
mov eax, ebx
add rsp, 10h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_FE1A:
mov ebx, r15d
jmp short loc_FE0B
| long long nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get_codepoint(
__m128i *this)
{
unsigned int v1; // ebx
long long v2; // r12
int v3; // ebp
__int32 v4; // eax
__int32 v5; // edx
__int32 v6; // eax
_OWORD v8[3]; // [rsp+0h] [rbp-38h]
v8[0] = xmmword_A38D0;
v1 = 0;
v2 = 0LL;
while ( 1 )
{
v3 = *(_DWORD *)((char *)v8 + v2);
nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get(this);
v4 = this[1].m128i_i32[1];
v5 = v4 - 48;
if ( (unsigned int)(v4 - 48) >= 0xA )
break;
LABEL_8:
v1 += v5 << v3;
v2 += 4LL;
if ( v2 == 16 )
return v1;
}
if ( (unsigned int)(v4 - 65) <= 5 )
{
v6 = v4 - 55;
LABEL_7:
v5 = v6;
goto LABEL_8;
}
if ( (unsigned int)(v4 - 97) <= 5 )
{
v6 = v4 - 87;
goto LABEL_7;
}
return (unsigned int)-1;
}
| get_codepoint:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x10
MOV R14,RDI
MOVAPS XMM0,xmmword ptr [0x001a38d0]
MOVAPS xmmword ptr [RSP],XMM0
XOR EBX,EBX
PUSH -0x1
POP R15
XOR R12D,R12D
LAB_0010fdc9:
MOV EBP,dword ptr [RSP + R12*0x1]
MOV RDI,R14
CALL 0x0010fcac
MOV EAX,dword ptr [R14 + 0x14]
LEA EDX,[RAX + -0x30]
CMP EDX,0xa
JC 0x0010fdfb
LEA ECX,[RAX + -0x41]
CMP ECX,0x5
JA 0x0010fdee
ADD EAX,-0x37
JMP 0x0010fdf9
LAB_0010fdee:
LEA ECX,[RAX + -0x61]
CMP ECX,0x5
JA 0x0010fe1a
ADD EAX,-0x57
LAB_0010fdf9:
MOV EDX,EAX
LAB_0010fdfb:
MOV ECX,EBP
SHL EDX,CL
ADD EBX,EDX
ADD R12,0x4
CMP R12,0x10
JNZ 0x0010fdc9
LAB_0010fe0b:
MOV EAX,EBX
ADD RSP,0x10
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0010fe1a:
MOV EBX,R15D
JMP 0x0010fe0b
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>, nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>::get_codepoint() */
int __thiscall
nlohmann::json_abi_v3_11_3::detail::
lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>
::get_codepoint(lexer<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::input_stream_adapter>
*this)
{
int4 uVar1;
int iVar2;
uint uVar3;
int iVar4;
long lVar5;
int8 local_38;
int8 uStack_30;
local_38 = _DAT_001a38d0;
uStack_30 = _UNK_001a38d8;
iVar4 = 0;
lVar5 = 0;
do {
uVar1 = *(int4 *)((long)&local_38 + lVar5);
get(this);
iVar2 = *(int *)(this + 0x14);
uVar3 = iVar2 - 0x30;
if (9 < uVar3) {
if (iVar2 - 0x41U < 6) {
uVar3 = iVar2 - 0x37;
}
else {
if (5 < iVar2 - 0x61U) {
return -1;
}
uVar3 = iVar2 - 0x57;
}
}
iVar4 = iVar4 + (uVar3 << ((byte)uVar1 & 0x1f));
lVar5 = lVar5 + 4;
} while (lVar5 != 0x10);
return iVar4;
}
| |
44,339 | make_array_native | fabiosvm[P]rak/src/builtin.c | static void make_array_native(RakVM *vm, RakValue *slots, RakError *err)
{
RakValue val1 = slots[1];
RakValue val2 = slots[2];
if (rak_is_nil(val2))
{
RakArray *arr = rak_array_new(err);
if (!rak_is_ok(err)) return;
rak_vm_push_object(vm, rak_array_value(arr), err);
return;
}
if (!rak_is_number(val2) || !rak_is_integer(val2))
{
rak_error_set(err, "argument #2 must be nil or an integer number, got %s",
rak_type_to_cstr(val2.type));
return;
}
int len = (int) rak_as_number(val2);
len = len < 0 ? 0 : len;
RakValue val3 = slots[3];
if (rak_is_nil(val3))
{
RakArray *arr = rak_array_new_with_capacity(len, err);
if (!rak_is_ok(err)) return;
for (int i = 0; i < len; ++i)
rak_slice_set(&arr->slice, i, val1);
arr->slice.len = len;
rak_vm_push_object(vm, rak_array_value(arr), err);
return;
}
if (!rak_is_number(val3) || !rak_is_integer(val3))
{
rak_error_set(err, "argument #3 must be nil or an integer number, got %s",
rak_type_to_cstr(val3.type));
return;
}
int cap = (int) rak_as_number(val3);
cap = cap < len ? len : cap;
RakArray *arr = rak_array_new_with_capacity(cap, err);
if (!rak_is_ok(err)) return;
for (int i = 0; i < len; ++i)
rak_slice_set(&arr->slice, i, val1);
arr->slice.len = len;
rak_vm_push_object(vm, rak_array_value(arr), err);
} | O2 | c | make_array_native:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rdi, %r14
movupd 0x10(%rsi), %xmm0
movapd %xmm0, (%rsp)
movl 0x20(%rsi), %edi
cmpl $0x2, %edi
je 0x2e7e
testl %edi, %edi
jne 0x2ee4
movq %rbx, %rdi
callq 0x2396
cmpb $0x1, (%rbx)
je 0x2f68
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movsd 0x28(%rsi), %xmm0
cvttsd2si %xmm0, %rax
cvtsi2sd %rax, %xmm1
ucomisd %xmm1, %xmm0
jne 0x2ee4
jp 0x2ee4
cvttsd2si %xmm0, %eax
xorl %ebp, %ebp
testl %eax, %eax
cmovgl %eax, %ebp
movl 0x30(%rsi), %edi
cmpl $0x2, %edi
je 0x2f05
testl %edi, %edi
jne 0x2f57
movl %ebp, %edi
movq %rbx, %rsi
callq 0x23d7
cmpb $0x1, (%rbx)
jne 0x2e75
movl %ebp, %ecx
shlq $0x4, %rcx
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x2f65
movq 0x10(%rax), %rsi
movapd (%rsp), %xmm0
movupd %xmm0, (%rsi,%rdx)
addq $0x10, %rdx
jmp 0x2ec7
callq 0x6a44
leaq 0x61df(%rip), %rsi # 0x90cf
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x5408
movsd 0x38(%rsi), %xmm0
cvttsd2si %xmm0, %rax
cvtsi2sd %rax, %xmm1
ucomisd %xmm1, %xmm0
jne 0x2f57
jp 0x2f57
cvttsd2si %xmm0, %edi
cmpl %edi, %ebp
cmovgl %ebp, %edi
movq %rbx, %rsi
callq 0x23d7
cmpb $0x1, (%rbx)
jne 0x2e75
movl %ebp, %ecx
shlq $0x4, %rcx
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x2f65
movq 0x10(%rax), %rsi
movapd (%rsp), %xmm0
movupd %xmm0, (%rsi,%rdx)
addq $0x10, %rdx
jmp 0x2f3e
callq 0x6a44
leaq 0x61a1(%rip), %rsi # 0x9104
jmp 0x2ef0
movl %ebp, 0xc(%rax)
movabsq $0x200000004, %rsi # imm = 0x200000004
movq %r14, %rdi
movq %rax, %rdx
movq %rbx, %rcx
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
jmp 0x31d8
| make_array_native:
push rbp
push r14
push rbx
sub rsp, 10h
mov rbx, rdx
mov r14, rdi
movupd xmm0, xmmword ptr [rsi+10h]
movapd [rsp+28h+var_28], xmm0
mov edi, [rsi+20h]
cmp edi, 2
jz short loc_2E7E
test edi, edi
jnz loc_2EE4
mov rdi, rbx
call rak_array_new
cmp byte ptr [rbx], 1
jz loc_2F68
loc_2E75:
add rsp, 10h
pop rbx
pop r14
pop rbp
retn
loc_2E7E:
movsd xmm0, qword ptr [rsi+28h]
cvttsd2si rax, xmm0
cvtsi2sd xmm1, rax
ucomisd xmm0, xmm1
jnz short loc_2EE4
jp short loc_2EE4
cvttsd2si eax, xmm0
xor ebp, ebp
test eax, eax
cmovg ebp, eax
mov edi, [rsi+30h]
cmp edi, 2
jz short loc_2F05
test edi, edi
jnz loc_2F57
mov edi, ebp
mov rsi, rbx
call rak_array_new_with_capacity
cmp byte ptr [rbx], 1
jnz short loc_2E75
mov ecx, ebp
shl rcx, 4
xor edx, edx
loc_2EC7:
cmp rcx, rdx
jz loc_2F65
mov rsi, [rax+10h]
movapd xmm0, [rsp+28h+var_28]
movupd xmmword ptr [rsi+rdx], xmm0
add rdx, 10h
jmp short loc_2EC7
loc_2EE4:
call rak_type_to_cstr
lea rsi, aArgument2MustB; "argument #2 must be nil or an integer n"...
loc_2EF0:
mov rdi, rbx
mov rdx, rax
xor eax, eax
add rsp, 10h
pop rbx
pop r14
pop rbp
jmp rak_error_set
loc_2F05:
movsd xmm0, qword ptr [rsi+38h]
cvttsd2si rax, xmm0
cvtsi2sd xmm1, rax
ucomisd xmm0, xmm1
jnz short loc_2F57
jp short loc_2F57
cvttsd2si edi, xmm0
cmp ebp, edi
cmovg edi, ebp
mov rsi, rbx
call rak_array_new_with_capacity
cmp byte ptr [rbx], 1
jnz loc_2E75
mov ecx, ebp
shl rcx, 4
xor edx, edx
loc_2F3E:
cmp rcx, rdx
jz short loc_2F65
mov rsi, [rax+10h]
movapd xmm0, [rsp+28h+var_28]
movupd xmmword ptr [rsi+rdx], xmm0
add rdx, 10h
jmp short loc_2F3E
loc_2F57:
call rak_type_to_cstr
lea rsi, aArgument3MustB; "argument #3 must be nil or an integer n"...
jmp short loc_2EF0
loc_2F65:
mov [rax+0Ch], ebp
loc_2F68:
mov rsi, 200000004h
mov rdi, r14
mov rdx, rax
mov rcx, rbx
add rsp, 10h
pop rbx
pop r14
pop rbp
jmp rak_vm_push_object
| long long make_array_native(long long a1, long long a2, _BYTE *a3, long long a4, long long a5, long long a6, char a7)
{
int v9; // edi
long long result; // rax
double v11; // xmm0_8
unsigned int v12; // ebp
int v13; // edi
long long i; // rdx
int v15; // eax
int v16; // ecx
int v17; // r8d
int v18; // r9d
const char *v19; // rsi
double v20; // xmm0_8
int v21; // edi
long long j; // rdx
__int128 v23; // [rsp+0h] [rbp-28h]
v23 = *(_OWORD *)(a2 + 16);
v9 = *(_DWORD *)(a2 + 32);
if ( v9 != 2 )
{
if ( !v9 )
{
result = rak_array_new(a3);
if ( *a3 != 1 )
return result;
return rak_vm_push_object(a1, 0x200000004LL, result, a3);
}
goto LABEL_14;
}
v11 = *(double *)(a2 + 40);
if ( v11 != (double)(int)v11 )
{
LABEL_14:
v15 = rak_type_to_cstr();
v19 = "argument #2 must be nil or an integer number, got %s";
return rak_error_set((_DWORD)a3, (_DWORD)v19, v15, v16, v17, v18, a7);
}
v12 = 0;
if ( (int)v11 > 0 )
v12 = (int)v11;
v13 = *(_DWORD *)(a2 + 48);
if ( v13 != 2 )
{
if ( !v13 )
{
result = rak_array_new_with_capacity(v12, a3);
if ( *a3 == 1 )
{
for ( i = 0LL; 16LL * v12 != i; i += 16LL )
*(_OWORD *)(*(_QWORD *)(result + 16) + i) = v23;
LABEL_24:
*(_DWORD *)(result + 12) = v12;
return rak_vm_push_object(a1, 0x200000004LL, result, a3);
}
return result;
}
LABEL_23:
v15 = rak_type_to_cstr();
v19 = "argument #3 must be nil or an integer number, got %s";
return rak_error_set((_DWORD)a3, (_DWORD)v19, v15, v16, v17, v18, a7);
}
v20 = *(double *)(a2 + 56);
if ( v20 != (double)(int)v20 )
goto LABEL_23;
v21 = (int)v20;
if ( (int)v12 > (int)v20 )
v21 = v12;
result = rak_array_new_with_capacity(v21, a3);
if ( *a3 == 1 )
{
for ( j = 0LL; 16LL * v12 != j; j += 16LL )
*(_OWORD *)(*(_QWORD *)(result + 16) + j) = v23;
goto LABEL_24;
}
return result;
}
| make_array_native:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV RBX,RDX
MOV R14,RDI
MOVUPD XMM0,xmmword ptr [RSI + 0x10]
MOVAPD xmmword ptr [RSP],XMM0
MOV EDI,dword ptr [RSI + 0x20]
CMP EDI,0x2
JZ 0x00102e7e
TEST EDI,EDI
JNZ 0x00102ee4
MOV RDI,RBX
CALL 0x00102396
CMP byte ptr [RBX],0x1
JZ 0x00102f68
LAB_00102e75:
ADD RSP,0x10
POP RBX
POP R14
POP RBP
RET
LAB_00102e7e:
MOVSD XMM0,qword ptr [RSI + 0x28]
CVTTSD2SI RAX,XMM0
CVTSI2SD XMM1,RAX
UCOMISD XMM0,XMM1
JNZ 0x00102ee4
JP 0x00102ee4
CVTTSD2SI EAX,XMM0
XOR EBP,EBP
TEST EAX,EAX
CMOVG EBP,EAX
MOV EDI,dword ptr [RSI + 0x30]
CMP EDI,0x2
JZ 0x00102f05
TEST EDI,EDI
JNZ 0x00102f57
MOV EDI,EBP
MOV RSI,RBX
CALL 0x001023d7
CMP byte ptr [RBX],0x1
JNZ 0x00102e75
MOV ECX,EBP
SHL RCX,0x4
XOR EDX,EDX
LAB_00102ec7:
CMP RCX,RDX
JZ 0x00102f65
MOV RSI,qword ptr [RAX + 0x10]
MOVAPD XMM0,xmmword ptr [RSP]
MOVUPD xmmword ptr [RSI + RDX*0x1],XMM0
ADD RDX,0x10
JMP 0x00102ec7
LAB_00102ee4:
CALL 0x00106a44
LEA RSI,[0x1090cf]
LAB_00102ef0:
MOV RDI,RBX
MOV RDX,RAX
XOR EAX,EAX
ADD RSP,0x10
POP RBX
POP R14
POP RBP
JMP 0x00105408
LAB_00102f05:
MOVSD XMM0,qword ptr [RSI + 0x38]
CVTTSD2SI RAX,XMM0
CVTSI2SD XMM1,RAX
UCOMISD XMM0,XMM1
JNZ 0x00102f57
JP 0x00102f57
CVTTSD2SI EDI,XMM0
CMP EBP,EDI
CMOVG EDI,EBP
MOV RSI,RBX
CALL 0x001023d7
CMP byte ptr [RBX],0x1
JNZ 0x00102e75
MOV ECX,EBP
SHL RCX,0x4
XOR EDX,EDX
LAB_00102f3e:
CMP RCX,RDX
JZ 0x00102f65
MOV RSI,qword ptr [RAX + 0x10]
MOVAPD XMM0,xmmword ptr [RSP]
MOVUPD xmmword ptr [RSI + RDX*0x1],XMM0
ADD RDX,0x10
JMP 0x00102f3e
LAB_00102f57:
CALL 0x00106a44
LEA RSI,[0x109104]
JMP 0x00102ef0
LAB_00102f65:
MOV dword ptr [RAX + 0xc],EBP
LAB_00102f68:
MOV RSI,0x200000004
MOV RDI,R14
MOV RDX,RAX
MOV RCX,RBX
ADD RSP,0x10
POP RBX
POP R14
POP RBP
JMP 0x001031d8
|
void make_array_native(int8 param_1,long param_2,char *param_3)
{
int8 *puVar1;
double dVar2;
uint uVar3;
int8 uVar4;
long lVar5;
int8 uVar6;
long lVar7;
uint uVar8;
char *pcVar9;
uVar6 = *(int8 *)(param_2 + 0x10);
uVar4 = *(int8 *)(param_2 + 0x18);
if (*(int *)(param_2 + 0x20) == 2) {
dVar2 = *(double *)(param_2 + 0x28);
if ((dVar2 == (double)(long)dVar2) && (!NAN(dVar2) && !NAN((double)(long)dVar2))) {
uVar8 = 0;
if (0 < (int)dVar2) {
uVar8 = (int)dVar2;
}
if (*(int *)(param_2 + 0x30) == 2) {
dVar2 = *(double *)(param_2 + 0x38);
if ((dVar2 != (double)(long)dVar2) || (NAN(dVar2) || NAN((double)(long)dVar2)))
goto LAB_00102f57;
uVar3 = (int)dVar2;
if ((int)dVar2 < (int)uVar8) {
uVar3 = uVar8;
}
lVar5 = rak_array_new_with_capacity(uVar3,param_3);
if (*param_3 != '\x01') {
return;
}
for (lVar7 = 0; (ulong)uVar8 << 4 != lVar7; lVar7 = lVar7 + 0x10) {
puVar1 = (int8 *)(*(long *)(lVar5 + 0x10) + lVar7);
*puVar1 = uVar6;
puVar1[1] = uVar4;
}
}
else {
if (*(int *)(param_2 + 0x30) != 0) {
LAB_00102f57:
uVar6 = rak_type_to_cstr();
pcVar9 = "argument #3 must be nil or an integer number, got %s";
goto LAB_00102ef0;
}
lVar5 = rak_array_new_with_capacity(uVar8,param_3);
if (*param_3 != '\x01') {
return;
}
for (lVar7 = 0; (ulong)uVar8 << 4 != lVar7; lVar7 = lVar7 + 0x10) {
puVar1 = (int8 *)(*(long *)(lVar5 + 0x10) + lVar7);
*puVar1 = uVar6;
puVar1[1] = uVar4;
}
}
*(uint *)(lVar5 + 0xc) = uVar8;
LAB_00102f68:
rak_vm_push_object(param_1,0x200000004,lVar5,param_3);
return;
}
}
else if (*(int *)(param_2 + 0x20) == 0) {
lVar5 = rak_array_new(param_3);
if (*param_3 != '\x01') {
return;
}
goto LAB_00102f68;
}
uVar6 = rak_type_to_cstr();
pcVar9 = "argument #2 must be nil or an integer number, got %s";
LAB_00102ef0:
rak_error_set(param_3,pcVar9,uVar6);
return;
}
| |
44,340 | pagecache_unpin | eloqsql/storage/maria/ma_pagecache.c | void pagecache_unpin(PAGECACHE *pagecache,
PAGECACHE_FILE *file,
pgcache_page_no_t pageno,
LSN lsn)
{
PAGECACHE_BLOCK_LINK *block;
int page_st;
DBUG_ENTER("pagecache_unpin");
DBUG_PRINT("enter", ("fd: %u page: %lu",
(uint) file->file, (ulong) pageno));
pagecache_pthread_mutex_lock(&pagecache->cache_lock);
/*
As soon as we keep lock cache can be used, and we have lock bacause want
aunlock.
*/
DBUG_ASSERT(pagecache->can_be_used);
inc_counter_for_resize_op(pagecache);
/* See NOTE for pagecache_unlock about registering requests */
block= find_block(pagecache, file, pageno, 0, 0, 0, 0, FALSE, &page_st);
DBUG_ASSERT(block != 0);
DBUG_ASSERT(page_st == PAGE_READ);
/* we can't unpin such page without unlock */
DBUG_ASSERT((block->status & PCBLOCK_DIRECT_W) == 0);
if (lsn != LSN_IMPOSSIBLE)
check_and_set_lsn(pagecache, lsn, block);
/*
we can just unpin only with keeping read lock because:
a) we can't pin without any lock
b) we can't unpin keeping write lock
*/
if (make_lock_and_pin(pagecache, block,
PAGECACHE_LOCK_LEFT_READLOCKED,
PAGECACHE_UNPIN, FALSE))
DBUG_ASSERT(0); /* should not happend */
remove_reader(block);
/*
Link the block into the LRU chain if it's the last submitted request
for the block and block will not be pinned.
See NOTE for pagecache_unlock about registering requests
*/
unreg_request(pagecache, block, 1);
dec_counter_for_resize_op(pagecache);
pagecache_pthread_mutex_unlock(&pagecache->cache_lock);
DBUG_VOID_RETURN;
} | O3 | c | pagecache_unpin:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r13
movq %rdi, %r14
leaq 0xc8(%rdi), %rbx
cmpq $0x0, 0x108(%rdi)
jne 0x32303
movq %rbx, %rdi
callq 0x29220
incq 0x68(%r14)
subq $0x8, %rsp
leaq -0x2c(%rbp), %rax
xorl %r10d, %r10d
movq %r14, %rdi
movq %r13, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %rax
pushq %r10
pushq %r10
callq 0x31880
addq $0x20, %rsp
movq %rax, %r12
testq %r15, %r15
je 0x32275
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x31eca
decl 0x64(%r12)
movq 0x20(%r12), %rax
decl 0x68(%rax)
jne 0x322a3
movq 0x28(%r12), %r15
testq %r15, %r15
je 0x322a3
movq 0x30(%r15), %rdi
testq %rdi, %rdi
jne 0x3232e
movq %r15, %rdi
callq 0x295c0
movq %r14, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq 0x320f7
decq 0x68(%r14)
jne 0x322e1
movq 0x110(%r14), %rax
testq %rax, %rax
je 0x322e1
movq 0x88(%rax), %r15
movq 0x38(%r15), %rdi
addq $0x8, %r15
testq %rdi, %rdi
jne 0x32343
movq %r15, %rdi
callq 0x295c0
movq 0x108(%r14), %rdi
testq %rdi, %rdi
jne 0x3231c
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x291e0
leaq 0xa72a8(%rip), %rsi # 0xd95b2
movq %rbx, %rdi
movl $0xcef, %edx # imm = 0xCEF
callq 0x2eb8f
jmp 0x32231
leaq 0x353ced(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x322ed
leaq 0x353cdb(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x170(%rax)
jmp 0x3229b
leaq 0x353cc6(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x170(%rax)
jmp 0x322d9
| pagecache_unpin:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r15, rcx
mov r12, rdx
mov r13, rsi
mov r14, rdi
lea rbx, [rdi+0C8h]
cmp qword ptr [rdi+108h], 0
jnz loc_32303
mov rdi, rbx
call _pthread_mutex_lock
loc_32231:
inc qword ptr [r14+68h]
sub rsp, 8
lea rax, [rbp+var_2C]
xor r10d, r10d
mov rdi, r14
mov rsi, r13
mov rdx, r12
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
push rax
push r10
push r10
call find_block
add rsp, 20h
mov r12, rax
test r15, r15
jz short loc_32275
mov rdi, r14
mov rsi, r15
mov rdx, r12
call check_and_set_lsn
loc_32275:
dec dword ptr [r12+64h]
mov rax, [r12+20h]
dec dword ptr [rax+68h]
jnz short loc_322A3
mov r15, [r12+28h]
test r15, r15
jz short loc_322A3
mov rdi, [r15+30h]
test rdi, rdi
jnz loc_3232E
loc_3229B:
mov rdi, r15
call _pthread_cond_signal
loc_322A3:
mov rdi, r14
mov rsi, r12
mov edx, 1
call unreg_request
dec qword ptr [r14+68h]
jnz short loc_322E1
mov rax, [r14+110h]
test rax, rax
jz short loc_322E1
mov r15, [rax+88h]
mov rdi, [r15+38h]
add r15, 8
test rdi, rdi
jnz short loc_32343
loc_322D9:
mov rdi, r15
call _pthread_cond_signal
loc_322E1:
mov rdi, [r14+108h]
test rdi, rdi
jnz short loc_3231C
loc_322ED:
mov rdi, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _pthread_mutex_unlock
loc_32303:
lea rsi, aWorkspaceLlm4b_25; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, rbx
mov edx, 0CEFh
call psi_mutex_lock
jmp loc_32231
loc_3231C:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_322ED
loc_3232E:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+170h]
jmp loc_3229B
loc_32343:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+170h]
jmp short loc_322D9
| long long pagecache_unpin(_QWORD *a1, int *a2, long long a3, signed long long a4)
{
long long v4; // rax
_QWORD *v8; // rbx
long long block; // rax
long long v10; // r12
long long v11; // rax
bool v12; // zf
long long v13; // r15
long long v14; // rdi
long long v15; // rax
long long v16; // r15
long long v17; // rdi
long long v18; // r15
long long v19; // rdi
_DWORD v21[11]; // [rsp+0h] [rbp-2Ch] BYREF
v21[0] = HIDWORD(v4);
v8 = a1 + 25;
if ( a1[33] )
psi_mutex_lock(
(long long)(a1 + 25),
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",
0xCEFu);
else
pthread_mutex_lock(a1 + 25);
++a1[13];
block = find_block((long long)a1, a2, a3, 0, 0, 0, 0, 0, v21);
v10 = block;
if ( a4 )
check_and_set_lsn((long long)a1, a4, block);
--*(_DWORD *)(v10 + 100);
v11 = *(_QWORD *)(v10 + 32);
v12 = (*(_DWORD *)(v11 + 104))-- == 1;
if ( v12 )
{
v13 = *(_QWORD *)(v10 + 40);
if ( v13 )
{
v14 = *(_QWORD *)(v13 + 48);
if ( v14 )
((void ( *)(long long))PSI_server[46])(v14);
pthread_cond_signal(v13);
}
}
unreg_request(a1, v10, 1);
v12 = a1[13]-- == 1LL;
if ( v12 )
{
v15 = a1[34];
if ( v15 )
{
v16 = *(_QWORD *)(v15 + 136);
v17 = *(_QWORD *)(v16 + 56);
v18 = v16 + 8;
if ( v17 )
((void ( *)(long long))PSI_server[46])(v17);
pthread_cond_signal(v18);
}
}
v19 = a1[33];
if ( v19 )
((void ( *)(long long))PSI_server[44])(v19);
return pthread_mutex_unlock(v8);
}
| pagecache_unpin:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,RCX
MOV R12,RDX
MOV R13,RSI
MOV R14,RDI
LEA RBX,[RDI + 0xc8]
CMP qword ptr [RDI + 0x108],0x0
JNZ 0x00132303
MOV RDI,RBX
CALL 0x00129220
LAB_00132231:
INC qword ptr [R14 + 0x68]
SUB RSP,0x8
LEA RAX,[RBP + -0x2c]
XOR R10D,R10D
MOV RDI,R14
MOV RSI,R13
MOV RDX,R12
XOR ECX,ECX
XOR R8D,R8D
XOR R9D,R9D
PUSH RAX
PUSH R10
PUSH R10
CALL 0x00131880
ADD RSP,0x20
MOV R12,RAX
TEST R15,R15
JZ 0x00132275
MOV RDI,R14
MOV RSI,R15
MOV RDX,R12
CALL 0x00131eca
LAB_00132275:
DEC dword ptr [R12 + 0x64]
MOV RAX,qword ptr [R12 + 0x20]
DEC dword ptr [RAX + 0x68]
JNZ 0x001322a3
MOV R15,qword ptr [R12 + 0x28]
TEST R15,R15
JZ 0x001322a3
MOV RDI,qword ptr [R15 + 0x30]
TEST RDI,RDI
JNZ 0x0013232e
LAB_0013229b:
MOV RDI,R15
CALL 0x001295c0
LAB_001322a3:
MOV RDI,R14
MOV RSI,R12
MOV EDX,0x1
CALL 0x001320f7
DEC qword ptr [R14 + 0x68]
JNZ 0x001322e1
MOV RAX,qword ptr [R14 + 0x110]
TEST RAX,RAX
JZ 0x001322e1
MOV R15,qword ptr [RAX + 0x88]
MOV RDI,qword ptr [R15 + 0x38]
ADD R15,0x8
TEST RDI,RDI
JNZ 0x00132343
LAB_001322d9:
MOV RDI,R15
CALL 0x001295c0
LAB_001322e1:
MOV RDI,qword ptr [R14 + 0x108]
TEST RDI,RDI
JNZ 0x0013231c
LAB_001322ed:
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001291e0
LAB_00132303:
LEA RSI,[0x1d95b2]
MOV RDI,RBX
MOV EDX,0xcef
CALL 0x0012eb8f
JMP 0x00132231
LAB_0013231c:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x001322ed
LAB_0013232e:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x170]
JMP 0x0013229b
LAB_00132343:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x170]
JMP 0x001322d9
|
void pagecache_unpin(long param_1,int8 param_2,int8 param_3,long param_4)
{
int *piVar1;
long *plVar2;
pthread_mutex_t *__mutex;
pthread_cond_t *__cond;
long lVar3;
int1 local_34 [4];
__mutex = (pthread_mutex_t *)(param_1 + 200);
if (*(long *)(param_1 + 0x108) == 0) {
pthread_mutex_lock(__mutex);
}
else {
psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_pagecache.c",
0xcef);
}
*(long *)(param_1 + 0x68) = *(long *)(param_1 + 0x68) + 1;
lVar3 = find_block(param_1,param_2,param_3,0,0,0,0,0,local_34);
if (param_4 != 0) {
check_and_set_lsn(param_1,param_4,lVar3);
}
*(int *)(lVar3 + 100) = *(int *)(lVar3 + 100) + -1;
piVar1 = (int *)(*(long *)(lVar3 + 0x20) + 0x68);
*piVar1 = *piVar1 + -1;
if ((*piVar1 == 0) &&
(__cond = *(pthread_cond_t **)(lVar3 + 0x28), __cond != (pthread_cond_t *)0x0)) {
if (__cond[1].__align != 0) {
(**(code **)(PSI_server + 0x170))();
}
pthread_cond_signal(__cond);
}
unreg_request(param_1,lVar3,1);
plVar2 = (long *)(param_1 + 0x68);
*plVar2 = *plVar2 + -1;
if ((*plVar2 == 0) && (*(long *)(param_1 + 0x110) != 0)) {
lVar3 = *(long *)(*(long *)(param_1 + 0x110) + 0x88);
if (*(long *)(lVar3 + 0x38) != 0) {
(**(code **)(PSI_server + 0x170))();
}
pthread_cond_signal((pthread_cond_t *)(lVar3 + 8));
}
if (*(long *)(param_1 + 0x108) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
return;
}
| |
44,341 | my_uca_coll_init_utf8mb4 | eloqsql/strings/ctype-uca.c | static my_bool
my_uca_coll_init_utf8mb4(struct charset_info_st *cs, MY_CHARSET_LOADER *loader)
{
if (my_coll_init_uca(cs, loader))
return TRUE;
if (my_uca_collation_can_optimize_no_contractions(cs))
my_uca_handler_map(cs, &my_uca_package_utf8mb4,
&my_uca_package_no_contractions_utf8mb4);
return FALSE;
} | O0 | c | my_uca_coll_init_utf8mb4:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x9a2c0
cmpb $0x0, %al
je 0x9cb37
movb $0x1, -0x1(%rbp)
jmp 0x9cb5f
movq -0x10(%rbp), %rdi
callq 0xa62b0
cmpb $0x0, %al
je 0x9cb5b
movq -0x10(%rbp), %rdi
leaq 0x28b771(%rip), %rsi # 0x3282c0
leaq 0x28b78a(%rip), %rdx # 0x3282e0
callq 0xa6310
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| my_uca_coll_init_utf8mb4:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call my_coll_init_uca
cmp al, 0
jz short loc_9CB37
mov [rbp+var_1], 1
jmp short loc_9CB5F
loc_9CB37:
mov rdi, [rbp+var_10]
call my_uca_collation_can_optimize_no_contractions
cmp al, 0
jz short loc_9CB5B
mov rdi, [rbp+var_10]
lea rsi, my_uca_package_utf8mb4
lea rdx, my_uca_package_no_contractions_utf8mb4
call my_uca_handler_map
loc_9CB5B:
mov [rbp+var_1], 0
loc_9CB5F:
mov al, [rbp+var_1]
add rsp, 20h
pop rbp
retn
| char my_uca_coll_init_utf8mb4(long long a1, long long a2)
{
if ( (unsigned __int8)my_coll_init_uca(a1, a2) )
return 1;
if ( (unsigned __int8)my_uca_collation_can_optimize_no_contractions(a1) )
my_uca_handler_map(a1, my_uca_package_utf8mb4, my_uca_package_no_contractions_utf8mb4);
return 0;
}
| my_uca_coll_init_utf8mb4:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x0019a2c0
CMP AL,0x0
JZ 0x0019cb37
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0019cb5f
LAB_0019cb37:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001a62b0
CMP AL,0x0
JZ 0x0019cb5b
MOV RDI,qword ptr [RBP + -0x10]
LEA RSI,[0x4282c0]
LEA RDX,[0x4282e0]
CALL 0x001a6310
LAB_0019cb5b:
MOV byte ptr [RBP + -0x1],0x0
LAB_0019cb5f:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x20
POP RBP
RET
|
int1 my_uca_coll_init_utf8mb4(int8 param_1,int8 param_2)
{
char cVar1;
int1 local_9;
cVar1 = my_coll_init_uca(param_1,param_2);
if (cVar1 == '\0') {
cVar1 = my_uca_collation_can_optimize_no_contractions(param_1);
if (cVar1 != '\0') {
my_uca_handler_map(param_1,my_uca_package_utf8mb4,my_uca_package_no_contractions_utf8mb4);
}
local_9 = 0;
}
else {
local_9 = 1;
}
return local_9;
}
| |
44,342 | mi_munmap_file | eloqsql/storage/myisam/mi_dynrec.c | int mi_munmap_file(MI_INFO *info)
{
int ret;
DBUG_ENTER("mi_unmap_file");
if ((ret= my_munmap((void*) info->s->file_map, info->s->mmaped_length)))
DBUG_RETURN(ret);
info->s->file_read= mi_nommap_pread;
info->s->file_write= mi_nommap_pwrite;
info->s->file_map= 0;
info->s->mmaped_length= 0;
DBUG_RETURN(0);
} | O0 | c | mi_munmap_file:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x270(%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x4d0(%rax), %rsi
callq 0x2a4a0
movl %eax, -0x14(%rbp)
cmpl $0x0, %eax
je 0xa73cf
jmp 0xa73c7
movl -0x14(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0xa7424
movq -0x10(%rbp), %rax
movq (%rax), %rax
leaq 0x53(%rip), %rcx # 0xa7430
movq %rcx, 0x2e0(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
leaq 0x9e(%rip), %rcx # 0xa7490
movq %rcx, 0x2e8(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq $0x0, 0x270(%rax)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq $0x0, 0x4d0(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
| mi_munmap_file:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov rax, [rax]
mov rdi, [rax+270h]
mov rax, [rbp+var_10]
mov rax, [rax]
mov rsi, [rax+4D0h]
call _munmap
mov [rbp+var_14], eax
cmp eax, 0
jz short loc_A73CF
jmp short $+2
loc_A73C7:
mov eax, [rbp+var_14]
mov [rbp+var_4], eax
jmp short loc_A7424
loc_A73CF:
mov rax, [rbp+var_10]
mov rax, [rax]
lea rcx, mi_nommap_pread
mov [rax+2E0h], rcx
mov rax, [rbp+var_10]
mov rax, [rax]
lea rcx, mi_nommap_pwrite
mov [rax+2E8h], rcx
mov rax, [rbp+var_10]
mov rax, [rax]
mov qword ptr [rax+270h], 0
mov rax, [rbp+var_10]
mov rax, [rax]
mov qword ptr [rax+4D0h], 0
mov [rbp+var_4], 0
loc_A7424:
mov eax, [rbp+var_4]
add rsp, 20h
pop rbp
retn
| long long mi_munmap_file(long long a1)
{
unsigned int v2; // [rsp+Ch] [rbp-14h]
v2 = munmap(*(_QWORD *)(*(_QWORD *)a1 + 624LL), *(_QWORD *)(*(_QWORD *)a1 + 1232LL));
if ( v2 )
{
return v2;
}
else
{
*(_QWORD *)(*(_QWORD *)a1 + 736LL) = mi_nommap_pread;
*(_QWORD *)(*(_QWORD *)a1 + 744LL) = mi_nommap_pwrite;
*(_QWORD *)(*(_QWORD *)a1 + 624LL) = 0LL;
*(_QWORD *)(*(_QWORD *)a1 + 1232LL) = 0LL;
return 0;
}
}
| mi_munmap_file:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + 0x270]
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x4d0]
CALL 0x0012a4a0
MOV dword ptr [RBP + -0x14],EAX
CMP EAX,0x0
JZ 0x001a73cf
JMP 0x001a73c7
LAB_001a73c7:
MOV EAX,dword ptr [RBP + -0x14]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x001a7424
LAB_001a73cf:
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
LEA RCX,[0x1a7430]
MOV qword ptr [RAX + 0x2e0],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
LEA RCX,[0x1a7490]
MOV qword ptr [RAX + 0x2e8],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX + 0x270],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX + 0x4d0],0x0
MOV dword ptr [RBP + -0x4],0x0
LAB_001a7424:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x20
POP RBP
RET
|
int mi_munmap_file(long *param_1)
{
int local_c;
local_c = munmap(*(void **)(*param_1 + 0x270),*(size_t *)(*param_1 + 0x4d0));
if (local_c == 0) {
*(code **)(*param_1 + 0x2e0) = mi_nommap_pread;
*(code **)(*param_1 + 0x2e8) = mi_nommap_pwrite;
*(int8 *)(*param_1 + 0x270) = 0;
*(int8 *)(*param_1 + 0x4d0) = 0;
local_c = 0;
}
return local_c;
}
| |
44,343 | mi_munmap_file | eloqsql/storage/myisam/mi_dynrec.c | int mi_munmap_file(MI_INFO *info)
{
int ret;
DBUG_ENTER("mi_unmap_file");
if ((ret= my_munmap((void*) info->s->file_map, info->s->mmaped_length)))
DBUG_RETURN(ret);
info->s->file_read= mi_nommap_pread;
info->s->file_write= mi_nommap_pwrite;
info->s->file_map= 0;
info->s->mmaped_length= 0;
DBUG_RETURN(0);
} | O3 | c | mi_munmap_file:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x270(%rax), %rdi
movq 0x4d0(%rax), %rsi
callq 0x294e0
testl %eax, %eax
jne 0x76ed9
movq (%rbx), %rcx
leaq 0x35(%rip), %rdx # 0x76ee0
movq %rdx, 0x2e0(%rcx)
movq (%rbx), %rcx
leaq 0xfe(%rip), %rdx # 0x76fba
movq %rdx, 0x2e8(%rcx)
movq (%rbx), %rcx
xorl %edx, %edx
movq %rdx, 0x270(%rcx)
movq (%rbx), %rcx
movq %rdx, 0x4d0(%rcx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| mi_munmap_file:
push rbp
mov rbp, rsp
push rbx
push rax
mov rbx, rdi
mov rax, [rdi]
mov rdi, [rax+270h]
mov rsi, [rax+4D0h]
call _munmap
test eax, eax
jnz short loc_76ED9
mov rcx, [rbx]
lea rdx, mi_nommap_pread
mov [rcx+2E0h], rdx
mov rcx, [rbx]
lea rdx, mi_nommap_pwrite
mov [rcx+2E8h], rdx
mov rcx, [rbx]
xor edx, edx
mov [rcx+270h], rdx
mov rcx, [rbx]
mov [rcx+4D0h], rdx
loc_76ED9:
add rsp, 8
pop rbx
pop rbp
retn
| long long mi_munmap_file(long long a1)
{
long long result; // rax
result = munmap(*(_QWORD *)(*(_QWORD *)a1 + 624LL), *(_QWORD *)(*(_QWORD *)a1 + 1232LL));
if ( !(_DWORD)result )
{
*(_QWORD *)(*(_QWORD *)a1 + 736LL) = mi_nommap_pread;
*(_QWORD *)(*(_QWORD *)a1 + 744LL) = mi_nommap_pwrite;
*(_QWORD *)(*(_QWORD *)a1 + 624LL) = 0LL;
*(_QWORD *)(*(_QWORD *)a1 + 1232LL) = 0LL;
}
return result;
}
| mi_munmap_file:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOV RAX,qword ptr [RDI]
MOV RDI,qword ptr [RAX + 0x270]
MOV RSI,qword ptr [RAX + 0x4d0]
CALL 0x001294e0
TEST EAX,EAX
JNZ 0x00176ed9
MOV RCX,qword ptr [RBX]
LEA RDX,[0x176ee0]
MOV qword ptr [RCX + 0x2e0],RDX
MOV RCX,qword ptr [RBX]
LEA RDX,[0x176fba]
MOV qword ptr [RCX + 0x2e8],RDX
MOV RCX,qword ptr [RBX]
XOR EDX,EDX
MOV qword ptr [RCX + 0x270],RDX
MOV RCX,qword ptr [RBX]
MOV qword ptr [RCX + 0x4d0],RDX
LAB_00176ed9:
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void mi_munmap_file(long *param_1)
{
int iVar1;
iVar1 = munmap(*(void **)(*param_1 + 0x270),*(size_t *)(*param_1 + 0x4d0));
if (iVar1 == 0) {
*(code **)(*param_1 + 0x2e0) = mi_nommap_pread;
*(code **)(*param_1 + 0x2e8) = mi_nommap_pwrite;
*(int8 *)(*param_1 + 0x270) = 0;
*(int8 *)(*param_1 + 0x4d0) = 0;
}
return;
}
| |
44,344 | google::protobuf::DescriptorPool::Tables::AddFile(google::protobuf::FileDescriptor const*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor.cc | bool DescriptorPool::Tables::AddFile(const FileDescriptor* file) {
if (InsertIfNotPresent(&files_by_name_, file->name(), file)) {
files_after_checkpoint_.push_back(file);
return true;
} else {
return false;
}
} | O3 | cpp | google::protobuf::DescriptorPool::Tables::AddFile(google::protobuf::FileDescriptor const*):
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, 0x8(%rsp)
addq $0x160, %rdi # imm = 0x160
movq 0x8(%rsi), %rax
movups (%rax), %xmm0
leaq 0x18(%rsp), %rsi
movups %xmm0, (%rsi)
movq %r14, 0x10(%rsi)
leaq 0x10(%rsp), %rdx
movq %rdi, (%rdx)
callq 0x41e44
movl %edx, %ebp
testb $0x1, %dl
je 0x1d5ae
movq 0x200(%rbx), %rsi
cmpq 0x208(%rbx), %rsi
je 0x1d59a
movq %r14, (%rsi)
addq $0x8, 0x200(%rbx)
jmp 0x1d5ae
addq $0x1f8, %rbx # imm = 0x1F8
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x420dc
andb $0x1, %bpl
movl %ebp, %eax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
| _ZN6google8protobuf14DescriptorPool6Tables7AddFileEPKNS0_14FileDescriptorE:
push rbp
push r14
push rbx
sub rsp, 30h
mov r14, rsi
mov rbx, rdi
mov [rsp+48h+var_40], rsi
add rdi, 160h
mov rax, [rsi+8]
movups xmm0, xmmword ptr [rax]
lea rsi, [rsp+48h+var_30]
movups xmmword ptr [rsi], xmm0
mov [rsi+10h], r14
lea rdx, [rsp+48h+var_38]
mov [rdx], rdi
call _ZNSt10_HashtableIN6google8protobuf20stringpiece_internal11StringPieceESt4pairIKS3_PKNS1_14FileDescriptorEESaIS9_ENSt8__detail10_Select1stESt8equal_toIS3_ENS1_4hashIS3_EENSB_18_Mod_range_hashingENSB_20_Default_ranged_hashENSB_20_Prime_rehash_policyENSB_17_Hashtable_traitsILb1ELb0ELb1EEEE9_M_insertIRKS9_NSB_10_AllocNodeISaINSB_10_Hash_nodeIS9_Lb1EEEEEEEES4_INSB_14_Node_iteratorIS9_Lb0ELb1EEEbEOT_RKT0_St17integral_constantIbLb1EE; std::_Hashtable<google::protobuf::stringpiece_internal::StringPiece,std::pair<google::protobuf::stringpiece_internal::StringPiece const,google::protobuf::FileDescriptor const*>,std::allocator<std::pair<google::protobuf::stringpiece_internal::StringPiece const,google::protobuf::FileDescriptor const*>>,std::__detail::_Select1st,std::equal_to<google::protobuf::stringpiece_internal::StringPiece>,google::protobuf::hash<google::protobuf::stringpiece_internal::StringPiece>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::_M_insert<std::pair<google::protobuf::stringpiece_internal::StringPiece const,google::protobuf::FileDescriptor const*> const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::pair<google::protobuf::stringpiece_internal::StringPiece const,google::protobuf::FileDescriptor const*>,true>>>>(std::pair<google::protobuf::stringpiece_internal::StringPiece const,google::protobuf::FileDescriptor const*> const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::pair<google::protobuf::stringpiece_internal::StringPiece const,google::protobuf::FileDescriptor const*>,true>>> const&,std::integral_constant<bool,true>)
mov ebp, edx
test dl, 1
jz short loc_1D5AE
mov rsi, [rbx+200h]
cmp rsi, [rbx+208h]
jz short loc_1D59A
mov [rsi], r14
add qword ptr [rbx+200h], 8
jmp short loc_1D5AE
loc_1D59A:
add rbx, 1F8h
lea rdx, [rsp+48h+var_40]
mov rdi, rbx
call _ZNSt6vectorIPKN6google8protobuf14FileDescriptorESaIS4_EE17_M_realloc_insertIJRKS4_EEEvN9__gnu_cxx17__normal_iteratorIPS4_S6_EEDpOT_; std::vector<google::protobuf::FileDescriptor const*>::_M_realloc_insert<google::protobuf::FileDescriptor const* const&>(__gnu_cxx::__normal_iterator<google::protobuf::FileDescriptor const**,std::vector<google::protobuf::FileDescriptor const*>>,google::protobuf::FileDescriptor const* const&)
loc_1D5AE:
and bpl, 1
mov eax, ebp
add rsp, 30h
pop rbx
pop r14
pop rbp
retn
| long long google::protobuf::DescriptorPool::Tables::AddFile(
google::protobuf::DescriptorPool::Tables *this,
const google::protobuf::FileDescriptor *a2)
{
unsigned int v3; // edx
unsigned int v4; // ebp
_QWORD *v5; // rsi
_QWORD v7[2]; // [rsp+8h] [rbp-40h] BYREF
__int128 v8; // [rsp+18h] [rbp-30h]
const google::protobuf::FileDescriptor *v9; // [rsp+28h] [rbp-20h]
v7[0] = a2;
v8 = *(_OWORD *)*((_QWORD *)a2 + 1);
v9 = a2;
v7[1] = (char *)this + 352;
std::_Hashtable<google::protobuf::stringpiece_internal::StringPiece,std::pair<google::protobuf::stringpiece_internal::StringPiece const,google::protobuf::FileDescriptor const*>,std::allocator<std::pair<google::protobuf::stringpiece_internal::StringPiece const,google::protobuf::FileDescriptor const*>>,std::__detail::_Select1st,std::equal_to<google::protobuf::stringpiece_internal::StringPiece>,google::protobuf::hash<google::protobuf::stringpiece_internal::StringPiece>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>::_M_insert<std::pair<google::protobuf::stringpiece_internal::StringPiece const,google::protobuf::FileDescriptor const*> const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::pair<google::protobuf::stringpiece_internal::StringPiece const,google::protobuf::FileDescriptor const*>,true>>>>();
v4 = v3;
if ( (v3 & 1) != 0 )
{
v5 = (_QWORD *)*((_QWORD *)this + 64);
if ( v5 == *((_QWORD **)this + 65) )
{
std::vector<google::protobuf::FileDescriptor const*>::_M_realloc_insert<google::protobuf::FileDescriptor const* const&>(
(char *)this + 504,
v5,
v7);
}
else
{
*v5 = a2;
*((_QWORD *)this + 64) += 8LL;
}
}
LOBYTE(v4) = v4 & 1;
return v4;
}
| AddFile:
PUSH RBP
PUSH R14
PUSH RBX
SUB RSP,0x30
MOV R14,RSI
MOV RBX,RDI
MOV qword ptr [RSP + 0x8],RSI
ADD RDI,0x160
MOV RAX,qword ptr [RSI + 0x8]
MOVUPS XMM0,xmmword ptr [RAX]
LEA RSI,[RSP + 0x18]
MOVUPS xmmword ptr [RSI],XMM0
MOV qword ptr [RSI + 0x10],R14
LEA RDX,[RSP + 0x10]
MOV qword ptr [RDX],RDI
CALL 0x00141e44
MOV EBP,EDX
TEST DL,0x1
JZ 0x0011d5ae
MOV RSI,qword ptr [RBX + 0x200]
CMP RSI,qword ptr [RBX + 0x208]
JZ 0x0011d59a
MOV qword ptr [RSI],R14
ADD qword ptr [RBX + 0x200],0x8
JMP 0x0011d5ae
LAB_0011d59a:
ADD RBX,0x1f8
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
CALL 0x001420dc
LAB_0011d5ae:
AND BPL,0x1
MOV EAX,EBP
ADD RSP,0x30
POP RBX
POP R14
POP RBP
RET
|
/* google::protobuf::DescriptorPool::Tables::AddFile(google::protobuf::FileDescriptor const*) */
uint __thiscall
google::protobuf::DescriptorPool::Tables::AddFile(Tables *this,FileDescriptor *param_1)
{
int4 *puVar1;
int8 *puVar2;
uint extraout_EDX;
FileDescriptor *local_40;
Tables *local_38;
int4 local_30;
int4 uStack_2c;
int4 uStack_28;
int4 uStack_24;
FileDescriptor *local_20;
local_38 = this + 0x160;
puVar1 = *(int4 **)(param_1 + 8);
local_30 = *puVar1;
uStack_2c = puVar1[1];
uStack_28 = puVar1[2];
uStack_24 = puVar1[3];
local_40 = param_1;
local_20 = param_1;
std::
_Hashtable<google::protobuf::stringpiece_internal::StringPiece,std::pair<google::protobuf::stringpiece_internal::StringPiece_const,google::protobuf::FileDescriptor_const*>,std::allocator<std::pair<google::protobuf::stringpiece_internal::StringPiece_const,google::protobuf::FileDescriptor_const*>>,std::__detail::_Select1st,std::equal_to<google::protobuf::stringpiece_internal::StringPiece>,google::protobuf::hash<google::protobuf::stringpiece_internal::StringPiece>,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits<true,false,true>>
::
_M_insert<std::pair<google::protobuf::stringpiece_internal::StringPiece_const,google::protobuf::FileDescriptor_const*>const&,std::__detail::_AllocNode<std::allocator<std::__detail::_Hash_node<std::pair<google::protobuf::stringpiece_internal::StringPiece_const,google::protobuf::FileDescriptor_const*>,true>>>>
();
if ((extraout_EDX & 1) != 0) {
puVar2 = *(int8 **)(this + 0x200);
if (puVar2 == *(int8 **)(this + 0x208)) {
std::
vector<google::protobuf::FileDescriptor_const*,std::allocator<google::protobuf::FileDescriptor_const*>>
::_M_realloc_insert<google::protobuf::FileDescriptor_const*const&>
((vector<google::protobuf::FileDescriptor_const*,std::allocator<google::protobuf::FileDescriptor_const*>>
*)(this + 0x1f8),puVar2,&local_40);
}
else {
*puVar2 = param_1;
*(long *)(this + 0x200) = *(long *)(this + 0x200) + 8;
}
}
return extraout_EDX & 0xffffff01;
}
| |
44,345 | ftxui::Container::Horizontal(std::vector<std::shared_ptr<ftxui::ComponentBase>, std::allocator<std::shared_ptr<ftxui::ComponentBase>>>, int*) | Andrewchistyakov[P]flashcards_lyc/build_O2/_deps/ftxui-src/src/ftxui/component/container.cpp | Component Horizontal(Components children, int* selector) {
return std::make_shared<HorizontalContainer>(std::move(children), selector);
} | O2 | cpp | ftxui::Container::Horizontal(std::vector<std::shared_ptr<ftxui::ComponentBase>, std::allocator<std::shared_ptr<ftxui::ComponentBase>>>, int*):
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0x18(%rsp), %rax
movq %rdx, (%rax)
movq %rsp, %rdi
movq %rax, %rdx
callq 0x2224a
leaq 0x8(%rsp), %rdi
movaps -0x8(%rdi), %xmm0
andq $0x0, (%rdi)
movups %xmm0, (%rbx)
andq $0x0, -0x8(%rdi)
callq 0x13452
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
retq
| _ZN5ftxui9Container10HorizontalESt6vectorISt10shared_ptrINS_13ComponentBaseEESaIS4_EEPi:
push rbx
sub rsp, 20h
mov rbx, rdi
lea rax, [rsp+28h+var_10]
mov [rax], rdx
mov rdi, rsp
mov rdx, rax
call _ZSt11make_sharedIN5ftxui19HorizontalContainerEJSt6vectorISt10shared_ptrINS0_13ComponentBaseEESaIS5_EERPiEES3_IT_EDpOT0_; std::make_shared<ftxui::HorizontalContainer,std::vector<std::shared_ptr<ftxui::ComponentBase>>,int *&>(std::vector<std::shared_ptr<ftxui::ComponentBase>>,int *&)
lea rdi, [rsp+28h+var_20]
movaps xmm0, xmmword ptr [rdi-8]
and qword ptr [rdi], 0
movups xmmword ptr [rbx], xmm0
and qword ptr [rdi-8], 0
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rax, rbx
add rsp, 20h
pop rbx
retn
| _OWORD * ftxui::Container::Horizontal(_OWORD *a1, long long a2, long long a3)
{
__int128 v3; // xmm0
__int128 v5; // [rsp+0h] [rbp-28h] BYREF
long long v6; // [rsp+18h] [rbp-10h] BYREF
v6 = a3;
std::make_shared<ftxui::HorizontalContainer,std::vector<std::shared_ptr<ftxui::ComponentBase>>,int *&>(&v5, a2, &v6);
v3 = v5;
*((_QWORD *)&v5 + 1) = 0LL;
*a1 = v3;
*(_QWORD *)&v5 = 0LL;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count((_QWORD *)&v5 + 1);
return a1;
}
| Horizontal:
PUSH RBX
SUB RSP,0x20
MOV RBX,RDI
LEA RAX,[RSP + 0x18]
MOV qword ptr [RAX],RDX
MOV RDI,RSP
MOV RDX,RAX
CALL 0x0012224a
LEA RDI,[RSP + 0x8]
MOVAPS XMM0,xmmword ptr [RDI + -0x8]
AND qword ptr [RDI],0x0
MOVUPS xmmword ptr [RBX],XMM0
AND qword ptr [RDI + -0x8],0x0
CALL 0x00113452
MOV RAX,RBX
ADD RSP,0x20
POP RBX
RET
|
/* ftxui::Container::Horizontal(std::vector<std::shared_ptr<ftxui::ComponentBase>,
std::allocator<std::shared_ptr<ftxui::ComponentBase> > >, int*) */
Container * __thiscall
ftxui::Container::Horizontal(Container *this,int **param_2,int8 param_3)
{
int8 uVar1;
int8 local_28;
int8 auStack_20 [2];
int8 local_10;
local_10 = param_3;
std::
make_shared<ftxui::HorizontalContainer,std::vector<std::shared_ptr<ftxui::ComponentBase>,std::allocator<std::shared_ptr<ftxui::ComponentBase>>>,int*&>
((vector *)&local_28,param_2);
uVar1 = auStack_20[0];
auStack_20[0] = 0;
*(int8 *)this = local_28;
*(int8 *)(this + 8) = uVar1;
local_28 = 0;
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count
((__shared_count<(__gnu_cxx::_Lock_policy)2> *)auStack_20);
return this;
}
| |
44,346 | minja::Context::~Context() | monkey531[P]llama/common/minja.hpp | virtual ~Context() {} | O1 | cpp | minja::Context::~Context():
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x8fe28(%rip), %rax # 0x12e140
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x70(%rdi), %rdi
testq %rdi, %rdi
je 0x9e32d
callq 0x6e1aa
leaq 0x58(%rbx), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x59052
movq %r14, %rdi
callq 0x5e83e
movq 0x50(%rbx), %rdi
testq %rdi, %rdi
je 0x9e351
callq 0x6e1aa
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x9e35f
callq 0x6e1aa
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x9e36d
callq 0x6e1aa
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x9e3a2
movq 0x90c0b(%rip), %rax # 0x12ef88
cmpb $0x0, (%rax)
je 0x9e38d
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x9e397
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x9e3a2
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x9e3de
movq 0x90bd6(%rip), %rax # 0x12ef88
cmpb $0x0, (%rax)
je 0x9e3c2
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x9e3cc
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x9e3de
movq (%rdi), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *0x18(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| _ZN5minja7ContextD2Ev:
push r14
push rbx
push rax
mov rbx, rdi
lea rax, _ZTVN5minja7ContextE; `vtable for'minja::Context
add rax, 10h
mov [rdi], rax
mov rdi, [rdi+70h]
test rdi, rdi
jz short loc_9E32D
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9E32D:
lea r14, [rbx+58h]
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [rbx+50h]
test rdi, rdi
jz short loc_9E351
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9E351:
mov rdi, [rbx+40h]
test rdi, rdi
jz short loc_9E35F
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9E35F:
mov rdi, [rbx+30h]
test rdi, rdi
jz short loc_9E36D
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9E36D:
mov rdi, [rbx+20h]
test rdi, rdi
jz short loc_9E3A2
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_9E38D
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_9E397
loc_9E38D:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_9E397:
cmp eax, 1
jnz short loc_9E3A2
mov rax, [rdi]
call qword ptr [rax+18h]
loc_9E3A2:
mov rdi, [rbx+10h]
test rdi, rdi
jz short loc_9E3DE
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_9E3C2
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_9E3CC
loc_9E3C2:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_9E3CC:
cmp eax, 1
jnz short loc_9E3DE
mov rax, [rdi]
add rsp, 8
pop rbx
pop r14
jmp qword ptr [rax+18h]
loc_9E3DE:
add rsp, 8
pop rbx
pop r14
retn
| void minja::Context::~Context(minja::Context *this)
{
volatile signed __int32 *v2; // rdi
volatile signed __int32 *v3; // rdi
volatile signed __int32 *v4; // rdi
volatile signed __int32 *v5; // rdi
volatile signed __int32 *v6; // rdi
signed __int32 v7; // eax
volatile signed __int32 *v8; // rdi
signed __int32 v9; // eax
*(_QWORD *)this = &`vtable for'minja::Context + 2;
v2 = (volatile signed __int32 *)*((_QWORD *)this + 14);
if ( v2 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v2);
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 *)this + 88);
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((char *)this + 88);
v3 = (volatile signed __int32 *)*((_QWORD *)this + 10);
if ( v3 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3);
v4 = (volatile signed __int32 *)*((_QWORD *)this + 8);
if ( v4 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v4);
v5 = (volatile signed __int32 *)*((_QWORD *)this + 6);
if ( v5 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v5);
v6 = (volatile signed __int32 *)*((_QWORD *)this + 4);
if ( v6 )
{
if ( _libc_single_threaded )
{
v7 = *((_DWORD *)v6 + 3);
*((_DWORD *)v6 + 3) = v7 - 1;
}
else
{
v7 = _InterlockedExchangeAdd(v6 + 3, 0xFFFFFFFF);
}
if ( v7 == 1 )
(*(void ( **)(volatile signed __int32 *, _QWORD))(*(_QWORD *)v6 + 24LL))(v6, 0LL);
}
v8 = (volatile signed __int32 *)*((_QWORD *)this + 2);
if ( v8 )
{
if ( _libc_single_threaded )
{
v9 = *((_DWORD *)v8 + 3);
*((_DWORD *)v8 + 3) = v9 - 1;
}
else
{
v9 = _InterlockedExchangeAdd(v8 + 3, 0xFFFFFFFF);
}
if ( v9 == 1 )
(*(void ( **)(volatile signed __int32 *, _QWORD))(*(_QWORD *)v8 + 24LL))(v8, 0LL);
}
}
| ~Context:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA RAX,[0x22e140]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x70]
TEST RDI,RDI
JZ 0x0019e32d
CALL 0x0016e1aa
LAB_0019e32d:
LEA R14,[RBX + 0x58]
MOV RDI,R14
XOR ESI,ESI
CALL 0x00159052
MOV RDI,R14
CALL 0x0015e83e
MOV RDI,qword ptr [RBX + 0x50]
TEST RDI,RDI
JZ 0x0019e351
CALL 0x0016e1aa
LAB_0019e351:
MOV RDI,qword ptr [RBX + 0x40]
TEST RDI,RDI
JZ 0x0019e35f
CALL 0x0016e1aa
LAB_0019e35f:
MOV RDI,qword ptr [RBX + 0x30]
TEST RDI,RDI
JZ 0x0019e36d
CALL 0x0016e1aa
LAB_0019e36d:
MOV RDI,qword ptr [RBX + 0x20]
TEST RDI,RDI
JZ 0x0019e3a2
MOV RAX,qword ptr [0x0022ef88]
CMP byte ptr [RAX],0x0
JZ 0x0019e38d
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x0019e397
LAB_0019e38d:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_0019e397:
CMP EAX,0x1
JNZ 0x0019e3a2
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_0019e3a2:
MOV RDI,qword ptr [RBX + 0x10]
TEST RDI,RDI
JZ 0x0019e3de
MOV RAX,qword ptr [0x0022ef88]
CMP byte ptr [RAX],0x0
JZ 0x0019e3c2
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x0019e3cc
LAB_0019e3c2:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_0019e3cc:
CMP EAX,0x1
JNZ 0x0019e3de
MOV RAX,qword ptr [RDI]
ADD RSP,0x8
POP RBX
POP R14
JMP qword ptr [RAX + 0x18]
LAB_0019e3de:
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* minja::Context::~Context() */
void __thiscall minja::Context::~Context(Context *this)
{
int *piVar1;
long *plVar2;
int iVar3;
*(int ***)this = &PTR__Context_0022e150;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x70) !=
(_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 + 0x70));
}
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 *)(this + 0x58),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 *)(this + 0x58));
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x50) !=
(_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 + 0x50));
}
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x40) !=
(_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 + 0x40));
}
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x30) !=
(_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 + 0x30));
}
plVar2 = *(long **)(this + 0x20);
if (plVar2 != (long *)0x0) {
if (*PTR___libc_single_threaded_0022ef88 == '\0') {
LOCK();
piVar1 = (int *)((long)plVar2 + 0xc);
iVar3 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar3 = *(int *)((long)plVar2 + 0xc);
*(int *)((long)plVar2 + 0xc) = iVar3 + -1;
}
if (iVar3 == 1) {
(**(code **)(*plVar2 + 0x18))();
}
}
plVar2 = *(long **)(this + 0x10);
if (plVar2 != (long *)0x0) {
if (*PTR___libc_single_threaded_0022ef88 == '\0') {
LOCK();
piVar1 = (int *)((long)plVar2 + 0xc);
iVar3 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar3 = *(int *)((long)plVar2 + 0xc);
*(int *)((long)plVar2 + 0xc) = iVar3 + -1;
}
if (iVar3 == 1) {
/* WARNING: Could not recover jumptable at 0x0019e3db. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(*plVar2 + 0x18))();
return;
}
}
return;
}
| |
44,347 | minja::Context::~Context() | monkey531[P]llama/common/minja.hpp | virtual ~Context() {} | O3 | cpp | minja::Context::~Context():
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x8e4fa(%rip), %rax # 0x12b140
addq $0x10, %rax
movq %rax, (%rdi)
movq 0x70(%rdi), %rdi
testq %rdi, %rdi
je 0x9cc5b
callq 0x6d9b6
leaq 0x58(%rbx), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x58aa4
movq %r14, %rdi
callq 0x5df92
movq 0x50(%rbx), %rdi
testq %rdi, %rdi
je 0x9cc7f
callq 0x6d9b6
movq 0x40(%rbx), %rdi
testq %rdi, %rdi
je 0x9cc8d
callq 0x6d9b6
movq 0x30(%rbx), %rdi
testq %rdi, %rdi
je 0x9cc9b
callq 0x6d9b6
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x9ccd0
movq 0x8f2dd(%rip), %rax # 0x12bf88
cmpb $0x0, (%rax)
je 0x9ccbb
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x9ccc5
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x9ccd0
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x9cd0c
movq 0x8f2a8(%rip), %rax # 0x12bf88
cmpb $0x0, (%rax)
je 0x9ccf0
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0x9ccfa
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0x9cd0c
movq (%rdi), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *0x18(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
| _ZN5minja7ContextD2Ev:
push r14
push rbx
push rax
mov rbx, rdi
lea rax, _ZTVN5minja7ContextE; `vtable for'minja::Context
add rax, 10h
mov [rdi], rax
mov rdi, [rdi+70h]
test rdi, rdi
jz short loc_9CC5B
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9CC5B:
lea r14, [rbx+58h]
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [rbx+50h]
test rdi, rdi
jz short loc_9CC7F
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9CC7F:
mov rdi, [rbx+40h]
test rdi, rdi
jz short loc_9CC8D
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9CC8D:
mov rdi, [rbx+30h]
test rdi, rdi
jz short loc_9CC9B
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_9CC9B:
mov rdi, [rbx+20h]
test rdi, rdi
jz short loc_9CCD0
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_9CCBB
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_9CCC5
loc_9CCBB:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_9CCC5:
cmp eax, 1
jnz short loc_9CCD0
mov rax, [rdi]
call qword ptr [rax+18h]
loc_9CCD0:
mov rdi, [rbx+10h]
test rdi, rdi
jz short loc_9CD0C
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_9CCF0
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_9CCFA
loc_9CCF0:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_9CCFA:
cmp eax, 1
jnz short loc_9CD0C
mov rax, [rdi]
add rsp, 8
pop rbx
pop r14
jmp qword ptr [rax+18h]
loc_9CD0C:
add rsp, 8
pop rbx
pop r14
retn
| void minja::Context::~Context(minja::Context *this)
{
volatile signed __int32 *v2; // rdi
volatile signed __int32 *v3; // rdi
volatile signed __int32 *v4; // rdi
volatile signed __int32 *v5; // rdi
volatile signed __int32 *v6; // rdi
signed __int32 v7; // eax
volatile signed __int32 *v8; // rdi
signed __int32 v9; // eax
*(_QWORD *)this = &`vtable for'minja::Context + 2;
v2 = (volatile signed __int32 *)*((_QWORD *)this + 14);
if ( v2 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v2);
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 *)this + 88);
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((char *)this + 88);
v3 = (volatile signed __int32 *)*((_QWORD *)this + 10);
if ( v3 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v3);
v4 = (volatile signed __int32 *)*((_QWORD *)this + 8);
if ( v4 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v4);
v5 = (volatile signed __int32 *)*((_QWORD *)this + 6);
if ( v5 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v5);
v6 = (volatile signed __int32 *)*((_QWORD *)this + 4);
if ( v6 )
{
if ( _libc_single_threaded )
{
v7 = *((_DWORD *)v6 + 3);
*((_DWORD *)v6 + 3) = v7 - 1;
}
else
{
v7 = _InterlockedExchangeAdd(v6 + 3, 0xFFFFFFFF);
}
if ( v7 == 1 )
(*(void ( **)(volatile signed __int32 *, _QWORD))(*(_QWORD *)v6 + 24LL))(v6, 0LL);
}
v8 = (volatile signed __int32 *)*((_QWORD *)this + 2);
if ( v8 )
{
if ( _libc_single_threaded )
{
v9 = *((_DWORD *)v8 + 3);
*((_DWORD *)v8 + 3) = v9 - 1;
}
else
{
v9 = _InterlockedExchangeAdd(v8 + 3, 0xFFFFFFFF);
}
if ( v9 == 1 )
(*(void ( **)(volatile signed __int32 *, _QWORD))(*(_QWORD *)v8 + 24LL))(v8, 0LL);
}
}
| ~Context:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA RAX,[0x22b140]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RDI,qword ptr [RDI + 0x70]
TEST RDI,RDI
JZ 0x0019cc5b
CALL 0x0016d9b6
LAB_0019cc5b:
LEA R14,[RBX + 0x58]
MOV RDI,R14
XOR ESI,ESI
CALL 0x00158aa4
MOV RDI,R14
CALL 0x0015df92
MOV RDI,qword ptr [RBX + 0x50]
TEST RDI,RDI
JZ 0x0019cc7f
CALL 0x0016d9b6
LAB_0019cc7f:
MOV RDI,qword ptr [RBX + 0x40]
TEST RDI,RDI
JZ 0x0019cc8d
CALL 0x0016d9b6
LAB_0019cc8d:
MOV RDI,qword ptr [RBX + 0x30]
TEST RDI,RDI
JZ 0x0019cc9b
CALL 0x0016d9b6
LAB_0019cc9b:
MOV RDI,qword ptr [RBX + 0x20]
TEST RDI,RDI
JZ 0x0019ccd0
MOV RAX,qword ptr [0x0022bf88]
CMP byte ptr [RAX],0x0
JZ 0x0019ccbb
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x0019ccc5
LAB_0019ccbb:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_0019ccc5:
CMP EAX,0x1
JNZ 0x0019ccd0
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_0019ccd0:
MOV RDI,qword ptr [RBX + 0x10]
TEST RDI,RDI
JZ 0x0019cd0c
MOV RAX,qword ptr [0x0022bf88]
CMP byte ptr [RAX],0x0
JZ 0x0019ccf0
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x0019ccfa
LAB_0019ccf0:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_0019ccfa:
CMP EAX,0x1
JNZ 0x0019cd0c
MOV RAX,qword ptr [RDI]
ADD RSP,0x8
POP RBX
POP R14
JMP qword ptr [RAX + 0x18]
LAB_0019cd0c:
ADD RSP,0x8
POP RBX
POP R14
RET
|
/* minja::Context::~Context() */
void __thiscall minja::Context::~Context(Context *this)
{
int *piVar1;
long *plVar2;
int iVar3;
*(int ***)this = &PTR__Context_0022b150;
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x70) !=
(_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 + 0x70));
}
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 *)(this + 0x58),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 *)(this + 0x58));
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x50) !=
(_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 + 0x50));
}
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x40) !=
(_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 + 0x40));
}
if (*(_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> **)(this + 0x30) !=
(_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 + 0x30));
}
plVar2 = *(long **)(this + 0x20);
if (plVar2 != (long *)0x0) {
if (*PTR___libc_single_threaded_0022bf88 == '\0') {
LOCK();
piVar1 = (int *)((long)plVar2 + 0xc);
iVar3 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar3 = *(int *)((long)plVar2 + 0xc);
*(int *)((long)plVar2 + 0xc) = iVar3 + -1;
}
if (iVar3 == 1) {
(**(code **)(*plVar2 + 0x18))();
}
}
plVar2 = *(long **)(this + 0x10);
if (plVar2 != (long *)0x0) {
if (*PTR___libc_single_threaded_0022bf88 == '\0') {
LOCK();
piVar1 = (int *)((long)plVar2 + 0xc);
iVar3 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar3 = *(int *)((long)plVar2 + 0xc);
*(int *)((long)plVar2 + 0xc) = iVar3 + -1;
}
if (iVar3 == 1) {
/* WARNING: Could not recover jumptable at 0x0019cd09. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(*plVar2 + 0x18))();
return;
}
}
return;
}
| |
44,348 | js_TA_cmp_generic | bluesky950520[P]quickjs/quickjs.c | static int js_TA_cmp_generic(const void *a, const void *b, void *opaque) {
struct TA_sort_context *psc = opaque;
JSContext *ctx = psc->ctx;
uint32_t a_idx, b_idx;
JSValue argv[2];
JSValue res;
JSObject *p;
int cmp;
p = JS_VALUE_GET_OBJ(psc->arr);
if (typed_array_is_oob(p))
return 0;
cmp = 0;
if (!psc->exception) {
a_idx = *(uint32_t *)a;
b_idx = *(uint32_t *)b;
if (a_idx >= p->u.array.count || b_idx >= p->u.array.count)
return 0;
argv[0] = psc->getfun(ctx, (char *)p->u.array.u.ptr +
a_idx * (size_t)psc->elt_size);
argv[1] = psc->getfun(ctx, (char *)p->u.array.u.ptr +
b_idx * (size_t)(psc->elt_size));
res = JS_Call(ctx, psc->cmp, JS_UNDEFINED, 2, argv);
if (JS_IsException(res)) {
psc->exception = 1;
goto done;
}
if (JS_VALUE_GET_TAG(res) == JS_TAG_INT) {
int val = JS_VALUE_GET_INT(res);
cmp = (val > 0) - (val < 0);
} else {
double val;
if (JS_ToFloat64Free(ctx, &val, res) < 0) {
psc->exception = 1;
goto done;
} else {
cmp = (val > 0) - (val < 0);
}
}
if (cmp == 0) {
/* make sort stable: compare array offsets */
cmp = (a_idx > b_idx) - (a_idx < b_idx);
}
done:
JS_FreeValue(ctx, argv[0]);
JS_FreeValue(ctx, argv[1]);
}
return cmp;
} | O0 | c | js_TA_cmp_generic:
subq $0xd8, %rsp
movq %rdi, 0xc8(%rsp)
movq %rsi, 0xc0(%rsp)
movq %rdx, 0xb8(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0xb0(%rsp), %rax
movq (%rax), %rax
movq %rax, 0xa8(%rsp)
movq 0xb0(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x68(%rsp)
movq 0x68(%rsp), %rdi
callq 0x57710
cmpl $0x0, %eax
je 0xe2212
movl $0x0, 0xd4(%rsp)
jmp 0xe24e1
movl $0x0, 0x64(%rsp)
movq 0xb0(%rsp), %rax
cmpl $0x0, 0x8(%rax)
jne 0xe24d6
movq 0xc8(%rsp), %rax
movl (%rax), %eax
movl %eax, 0xa4(%rsp)
movq 0xc0(%rsp), %rax
movl (%rax), %eax
movl %eax, 0xa0(%rsp)
movl 0xa4(%rsp), %eax
movq 0x68(%rsp), %rcx
cmpl 0x40(%rcx), %eax
jae 0xe2270
movl 0xa0(%rsp), %eax
movq 0x68(%rsp), %rcx
cmpl 0x40(%rcx), %eax
jb 0xe2280
movl $0x0, 0xd4(%rsp)
jmp 0xe24e1
movq 0xb0(%rsp), %rax
movq 0x30(%rax), %rax
movq 0xa8(%rsp), %rdi
movq 0x68(%rsp), %rcx
movq 0x38(%rcx), %rsi
movl 0xa4(%rsp), %ecx
movq 0xb0(%rsp), %rdx
movslq 0x38(%rdx), %rdx
imulq %rdx, %rcx
addq %rcx, %rsi
callq *%rax
movq %rax, 0x50(%rsp)
movq %rdx, 0x58(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0xb0(%rsp), %rax
movq 0x30(%rax), %rax
movq 0xa8(%rsp), %rdi
movq 0x68(%rsp), %rcx
movq 0x38(%rcx), %rsi
movl 0xa0(%rsp), %ecx
movq 0xb0(%rsp), %rdx
movslq 0x38(%rdx), %rdx
imulq %rdx, %rcx
addq %rcx, %rsi
callq *%rax
movq %rax, 0x40(%rsp)
movq %rdx, 0x48(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0xa8(%rsp), %rdi
movq 0xb0(%rsp), %rcx
movl $0x0, 0x20(%rsp)
movq $0x3, 0x28(%rsp)
leaq 0x80(%rsp), %rax
movq 0x20(%rcx), %rsi
movq 0x28(%rcx), %rdx
movq 0x20(%rsp), %rcx
movq 0x28(%rsp), %r8
movl $0x2, %r9d
movq %rax, (%rsp)
callq 0x38d90
movq %rax, 0x30(%rsp)
movq %rdx, 0x38(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x70(%rsp), %rdi
movq 0x78(%rsp), %rsi
callq 0x22a00
cmpl $0x0, %eax
je 0xe23ca
movq 0xb0(%rsp), %rax
movl $0x1, 0x8(%rax)
jmp 0xe249c
movq 0x78(%rsp), %rax
cmpl $0x0, %eax
jne 0xe23ff
movl 0x70(%rsp), %eax
movl %eax, 0x1c(%rsp)
cmpl $0x0, 0x1c(%rsp)
setg %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, 0x1c(%rsp)
setl %cl
andb $0x1, %cl
movzbl %cl, %ecx
subl %ecx, %eax
movl %eax, 0x64(%rsp)
jmp 0xe2460
movq 0xa8(%rsp), %rdi
movq 0x70(%rsp), %rdx
movq 0x78(%rsp), %rcx
leaq 0x10(%rsp), %rsi
callq 0x37330
cmpl $0x0, %eax
jge 0xe2431
movq 0xb0(%rsp), %rax
movl $0x1, 0x8(%rax)
jmp 0xe249c
movsd 0x10(%rsp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
seta %al
andb $0x1, %al
movzbl %al, %eax
xorps %xmm0, %xmm0
ucomisd 0x10(%rsp), %xmm0
seta %cl
andb $0x1, %cl
movzbl %cl, %ecx
subl %ecx, %eax
movl %eax, 0x64(%rsp)
jmp 0xe2460
cmpl $0x0, 0x64(%rsp)
jne 0xe249a
movl 0xa4(%rsp), %eax
cmpl 0xa0(%rsp), %eax
seta %al
andb $0x1, %al
movzbl %al, %eax
movl 0xa4(%rsp), %ecx
cmpl 0xa0(%rsp), %ecx
setb %cl
andb $0x1, %cl
movzbl %cl, %ecx
subl %ecx, %eax
movl %eax, 0x64(%rsp)
jmp 0xe249c
movq 0xa8(%rsp), %rdi
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rdx
callq 0x229d0
movq 0xa8(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
callq 0x229d0
movl 0x64(%rsp), %eax
movl %eax, 0xd4(%rsp)
movl 0xd4(%rsp), %eax
addq $0xd8, %rsp
retq
| js_TA_cmp_generic:
sub rsp, 0D8h
mov [rsp+0D8h+var_10], rdi
mov [rsp+0D8h+var_18], rsi
mov [rsp+0D8h+var_20], rdx
mov rax, [rsp+0D8h+var_20]
mov [rsp+0D8h+var_28], rax
mov rax, [rsp+0D8h+var_28]
mov rax, [rax]
mov [rsp+0D8h+var_30], rax
mov rax, [rsp+0D8h+var_28]
mov rax, [rax+10h]
mov [rsp+0D8h+var_70], rax
mov rdi, [rsp+0D8h+var_70]
call typed_array_is_oob
cmp eax, 0
jz short loc_E2212
mov [rsp+0D8h+var_4], 0
jmp loc_E24E1
loc_E2212:
mov [rsp+0D8h+var_74], 0
mov rax, [rsp+0D8h+var_28]
cmp dword ptr [rax+8], 0
jnz loc_E24D6
mov rax, [rsp+0D8h+var_10]
mov eax, [rax]
mov [rsp+0D8h+var_34], eax
mov rax, [rsp+0D8h+var_18]
mov eax, [rax]
mov [rsp+0D8h+var_38], eax
mov eax, [rsp+0D8h+var_34]
mov rcx, [rsp+0D8h+var_70]
cmp eax, [rcx+40h]
jnb short loc_E2270
mov eax, [rsp+0D8h+var_38]
mov rcx, [rsp+0D8h+var_70]
cmp eax, [rcx+40h]
jb short loc_E2280
loc_E2270:
mov [rsp+0D8h+var_4], 0
jmp loc_E24E1
loc_E2280:
mov rax, [rsp+0D8h+var_28]
mov rax, [rax+30h]
mov rdi, [rsp+0D8h+var_30]
mov rcx, [rsp+0D8h+var_70]
mov rsi, [rcx+38h]
mov ecx, [rsp+0D8h+var_34]
mov rdx, [rsp+0D8h+var_28]
movsxd rdx, dword ptr [rdx+38h]
imul rcx, rdx
add rsi, rcx
call rax
mov [rsp+0D8h+var_88], rax
mov [rsp+0D8h+var_80], rdx
mov rax, [rsp+0D8h+var_88]
mov [rsp+0D8h+var_58], rax
mov rax, [rsp+0D8h+var_80]
mov [rsp+0D8h+var_50], rax
mov rax, [rsp+0D8h+var_28]
mov rax, [rax+30h]
mov rdi, [rsp+0D8h+var_30]
mov rcx, [rsp+0D8h+var_70]
mov rsi, [rcx+38h]
mov ecx, [rsp+0D8h+var_38]
mov rdx, [rsp+0D8h+var_28]
movsxd rdx, dword ptr [rdx+38h]
imul rcx, rdx
add rsi, rcx
call rax
mov [rsp+0D8h+var_98], rax
mov [rsp+0D8h+var_90], rdx
mov rax, [rsp+0D8h+var_98]
mov [rsp+0D8h+var_48], rax
mov rax, [rsp+0D8h+var_90]
mov [rsp+0D8h+var_40], rax
mov rdi, [rsp+0D8h+var_30]
mov rcx, [rsp+0D8h+var_28]
mov dword ptr [rsp+0D8h+var_B8], 0
mov [rsp+0D8h+var_B0], 3
lea rax, [rsp+0D8h+var_58]
mov rsi, [rcx+20h]
mov rdx, [rcx+28h]
mov rcx, [rsp+0D8h+var_B8]
mov r8, [rsp+0D8h+var_B0]
mov r9d, 2
mov [rsp+0D8h+var_D8], rax
call JS_Call
mov [rsp+0D8h+var_A8], rax
mov [rsp+0D8h+var_A0], rdx
mov rax, [rsp+0D8h+var_A8]
mov [rsp+0D8h+var_68], rax
mov rax, [rsp+0D8h+var_A0]
mov [rsp+0D8h+var_60], rax
mov rdi, [rsp+0D8h+var_68]
mov rsi, [rsp+0D8h+var_60]
call JS_IsException_1
cmp eax, 0
jz short loc_E23CA
mov rax, [rsp+0D8h+var_28]
mov dword ptr [rax+8], 1
jmp loc_E249C
loc_E23CA:
mov rax, [rsp+0D8h+var_60]
cmp eax, 0
jnz short loc_E23FF
mov eax, dword ptr [rsp+0D8h+var_68]
mov [rsp+0D8h+var_BC], eax
cmp [rsp+0D8h+var_BC], 0
setnle al
and al, 1
movzx eax, al
cmp [rsp+0D8h+var_BC], 0
setl cl
and cl, 1
movzx ecx, cl
sub eax, ecx
mov [rsp+0D8h+var_74], eax
jmp short loc_E2460
loc_E23FF:
mov rdi, [rsp+0D8h+var_30]
mov rdx, [rsp+0D8h+var_68]
mov rcx, [rsp+0D8h+var_60]
lea rsi, [rsp+0D8h+var_C8]
call JS_ToFloat64Free
cmp eax, 0
jge short loc_E2431
mov rax, [rsp+0D8h+var_28]
mov dword ptr [rax+8], 1
jmp short loc_E249C
loc_E2431:
movsd xmm0, [rsp+0D8h+var_C8]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
setnbe al
and al, 1
movzx eax, al
xorps xmm0, xmm0
ucomisd xmm0, [rsp+0D8h+var_C8]
setnbe cl
and cl, 1
movzx ecx, cl
sub eax, ecx
mov [rsp+0D8h+var_74], eax
jmp short $+2
loc_E2460:
cmp [rsp+0D8h+var_74], 0
jnz short loc_E249A
mov eax, [rsp+0D8h+var_34]
cmp eax, [rsp+0D8h+var_38]
setnbe al
and al, 1
movzx eax, al
mov ecx, [rsp+0D8h+var_34]
cmp ecx, [rsp+0D8h+var_38]
setb cl
and cl, 1
movzx ecx, cl
sub eax, ecx
mov [rsp+0D8h+var_74], eax
loc_E249A:
jmp short $+2
loc_E249C:
mov rdi, [rsp+0D8h+var_30]
mov rsi, [rsp+0D8h+var_58]
mov rdx, [rsp+0D8h+var_50]
call JS_FreeValue
mov rdi, [rsp+0D8h+var_30]
mov rsi, [rsp+0D8h+var_48]
mov rdx, [rsp+0D8h+var_40]
call JS_FreeValue
loc_E24D6:
mov eax, [rsp+0D8h+var_74]
mov [rsp+0D8h+var_4], eax
loc_E24E1:
mov eax, [rsp+0D8h+var_4]
add rsp, 0D8h
retn
| long long js_TA_cmp_generic(unsigned int *a1, unsigned int *a2, long long *a3)
{
long long v3; // rdx
long long v4; // rdx
long long v5; // rdx
double v7; // [rsp+10h] [rbp-C8h] BYREF
int v8; // [rsp+1Ch] [rbp-BCh]
long long v9; // [rsp+20h] [rbp-B8h]
long long v10; // [rsp+28h] [rbp-B0h]
long long v11; // [rsp+30h] [rbp-A8h]
long long v12; // [rsp+38h] [rbp-A0h]
long long v13; // [rsp+40h] [rbp-98h]
long long v14; // [rsp+48h] [rbp-90h]
long long v15; // [rsp+50h] [rbp-88h]
long long v16; // [rsp+58h] [rbp-80h]
unsigned int v17; // [rsp+64h] [rbp-74h]
long long v18; // [rsp+68h] [rbp-70h]
long long v19; // [rsp+70h] [rbp-68h]
long long v20; // [rsp+78h] [rbp-60h]
long long v21; // [rsp+80h] [rbp-58h] BYREF
long long v22; // [rsp+88h] [rbp-50h]
long long v23; // [rsp+90h] [rbp-48h]
long long v24; // [rsp+98h] [rbp-40h]
unsigned int v25; // [rsp+A0h] [rbp-38h]
unsigned int v26; // [rsp+A4h] [rbp-34h]
long long v27; // [rsp+A8h] [rbp-30h]
long long *v28; // [rsp+B0h] [rbp-28h]
long long *v29; // [rsp+B8h] [rbp-20h]
unsigned int *v30; // [rsp+C0h] [rbp-18h]
unsigned int *v31; // [rsp+C8h] [rbp-10h]
v31 = a1;
v30 = a2;
v29 = a3;
v28 = a3;
v27 = *a3;
v18 = a3[2];
if ( !typed_array_is_oob(v18) )
{
v17 = 0;
if ( *((_DWORD *)v28 + 2) )
return v17;
v26 = *v31;
v25 = *v30;
if ( v26 >= *(_DWORD *)(v18 + 64) || v25 >= *(_DWORD *)(v18 + 64) )
return 0;
v15 = ((long long ( *)(long long, unsigned long long))v28[6])(
v27,
*((int *)v28 + 14) * (unsigned long long)v26 + *(_QWORD *)(v18 + 56));
v16 = v3;
v21 = v15;
v22 = v3;
v13 = ((long long ( *)(long long, unsigned long long))v28[6])(
v27,
*((int *)v28 + 14) * (unsigned long long)v25 + *(_QWORD *)(v18 + 56));
v14 = v4;
v23 = v13;
v24 = v4;
LODWORD(v9) = 0;
v10 = 3LL;
v11 = JS_Call(v27, v28[4], v28[5], 0, 3, 2, (long long)&v21);
v12 = v5;
v19 = v11;
v20 = v5;
if ( JS_IsException_1(v11, v5) )
{
*((_DWORD *)v28 + 2) = 1;
LABEL_16:
JS_FreeValue(v27, v21, v22);
JS_FreeValue(v27, v23, v24);
return v17;
}
if ( (_DWORD)v20 )
{
if ( (int)JS_ToFloat64Free(v27, &v7, v19, v20) < 0 )
{
*((_DWORD *)v28 + 2) = 1;
goto LABEL_16;
}
v17 = (v7 > 0.0) - (v7 < 0.0);
}
else
{
v8 = v19;
v17 = ((int)v19 > 0) - ((int)v19 < 0);
}
if ( !v17 )
v17 = (__PAIR64__(v26 > v25, v26) - v25) >> 32;
goto LABEL_16;
}
return 0;
}
| js_TA_cmp_generic:
SUB RSP,0xd8
MOV qword ptr [RSP + 0xc8],RDI
MOV qword ptr [RSP + 0xc0],RSI
MOV qword ptr [RSP + 0xb8],RDX
MOV RAX,qword ptr [RSP + 0xb8]
MOV qword ptr [RSP + 0xb0],RAX
MOV RAX,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0xa8],RAX
MOV RAX,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RAX + 0x10]
MOV qword ptr [RSP + 0x68],RAX
MOV RDI,qword ptr [RSP + 0x68]
CALL 0x00157710
CMP EAX,0x0
JZ 0x001e2212
MOV dword ptr [RSP + 0xd4],0x0
JMP 0x001e24e1
LAB_001e2212:
MOV dword ptr [RSP + 0x64],0x0
MOV RAX,qword ptr [RSP + 0xb0]
CMP dword ptr [RAX + 0x8],0x0
JNZ 0x001e24d6
MOV RAX,qword ptr [RSP + 0xc8]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RSP + 0xa4],EAX
MOV RAX,qword ptr [RSP + 0xc0]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RSP + 0xa0],EAX
MOV EAX,dword ptr [RSP + 0xa4]
MOV RCX,qword ptr [RSP + 0x68]
CMP EAX,dword ptr [RCX + 0x40]
JNC 0x001e2270
MOV EAX,dword ptr [RSP + 0xa0]
MOV RCX,qword ptr [RSP + 0x68]
CMP EAX,dword ptr [RCX + 0x40]
JC 0x001e2280
LAB_001e2270:
MOV dword ptr [RSP + 0xd4],0x0
JMP 0x001e24e1
LAB_001e2280:
MOV RAX,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RAX + 0x30]
MOV RDI,qword ptr [RSP + 0xa8]
MOV RCX,qword ptr [RSP + 0x68]
MOV RSI,qword ptr [RCX + 0x38]
MOV ECX,dword ptr [RSP + 0xa4]
MOV RDX,qword ptr [RSP + 0xb0]
MOVSXD RDX,dword ptr [RDX + 0x38]
IMUL RCX,RDX
ADD RSI,RCX
CALL RAX
MOV qword ptr [RSP + 0x50],RAX
MOV qword ptr [RSP + 0x58],RDX
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x80],RAX
MOV RAX,qword ptr [RSP + 0x58]
MOV qword ptr [RSP + 0x88],RAX
MOV RAX,qword ptr [RSP + 0xb0]
MOV RAX,qword ptr [RAX + 0x30]
MOV RDI,qword ptr [RSP + 0xa8]
MOV RCX,qword ptr [RSP + 0x68]
MOV RSI,qword ptr [RCX + 0x38]
MOV ECX,dword ptr [RSP + 0xa0]
MOV RDX,qword ptr [RSP + 0xb0]
MOVSXD RDX,dword ptr [RDX + 0x38]
IMUL RCX,RDX
ADD RSI,RCX
CALL RAX
MOV qword ptr [RSP + 0x40],RAX
MOV qword ptr [RSP + 0x48],RDX
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x90],RAX
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x98],RAX
MOV RDI,qword ptr [RSP + 0xa8]
MOV RCX,qword ptr [RSP + 0xb0]
MOV dword ptr [RSP + 0x20],0x0
MOV qword ptr [RSP + 0x28],0x3
LEA RAX,[RSP + 0x80]
MOV RSI,qword ptr [RCX + 0x20]
MOV RDX,qword ptr [RCX + 0x28]
MOV RCX,qword ptr [RSP + 0x20]
MOV R8,qword ptr [RSP + 0x28]
MOV R9D,0x2
MOV qword ptr [RSP],RAX
CALL 0x00138d90
MOV qword ptr [RSP + 0x30],RAX
MOV qword ptr [RSP + 0x38],RDX
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x70],RAX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x78],RAX
MOV RDI,qword ptr [RSP + 0x70]
MOV RSI,qword ptr [RSP + 0x78]
CALL 0x00122a00
CMP EAX,0x0
JZ 0x001e23ca
MOV RAX,qword ptr [RSP + 0xb0]
MOV dword ptr [RAX + 0x8],0x1
JMP 0x001e249c
LAB_001e23ca:
MOV RAX,qword ptr [RSP + 0x78]
CMP EAX,0x0
JNZ 0x001e23ff
MOV EAX,dword ptr [RSP + 0x70]
MOV dword ptr [RSP + 0x1c],EAX
CMP dword ptr [RSP + 0x1c],0x0
SETG AL
AND AL,0x1
MOVZX EAX,AL
CMP dword ptr [RSP + 0x1c],0x0
SETL CL
AND CL,0x1
MOVZX ECX,CL
SUB EAX,ECX
MOV dword ptr [RSP + 0x64],EAX
JMP 0x001e2460
LAB_001e23ff:
MOV RDI,qword ptr [RSP + 0xa8]
MOV RDX,qword ptr [RSP + 0x70]
MOV RCX,qword ptr [RSP + 0x78]
LEA RSI,[RSP + 0x10]
CALL 0x00137330
CMP EAX,0x0
JGE 0x001e2431
MOV RAX,qword ptr [RSP + 0xb0]
MOV dword ptr [RAX + 0x8],0x1
JMP 0x001e249c
LAB_001e2431:
MOVSD XMM0,qword ptr [RSP + 0x10]
XORPS XMM1,XMM1
UCOMISD XMM0,XMM1
SETA AL
AND AL,0x1
MOVZX EAX,AL
XORPS XMM0,XMM0
UCOMISD XMM0,qword ptr [RSP + 0x10]
SETA CL
AND CL,0x1
MOVZX ECX,CL
SUB EAX,ECX
MOV dword ptr [RSP + 0x64],EAX
JMP 0x001e2460
LAB_001e2460:
CMP dword ptr [RSP + 0x64],0x0
JNZ 0x001e249a
MOV EAX,dword ptr [RSP + 0xa4]
CMP EAX,dword ptr [RSP + 0xa0]
SETA AL
AND AL,0x1
MOVZX EAX,AL
MOV ECX,dword ptr [RSP + 0xa4]
CMP ECX,dword ptr [RSP + 0xa0]
SETC CL
AND CL,0x1
MOVZX ECX,CL
SUB EAX,ECX
MOV dword ptr [RSP + 0x64],EAX
LAB_001e249a:
JMP 0x001e249c
LAB_001e249c:
MOV RDI,qword ptr [RSP + 0xa8]
MOV RSI,qword ptr [RSP + 0x80]
MOV RDX,qword ptr [RSP + 0x88]
CALL 0x001229d0
MOV RDI,qword ptr [RSP + 0xa8]
MOV RSI,qword ptr [RSP + 0x90]
MOV RDX,qword ptr [RSP + 0x98]
CALL 0x001229d0
LAB_001e24d6:
MOV EAX,dword ptr [RSP + 0x64]
MOV dword ptr [RSP + 0xd4],EAX
LAB_001e24e1:
MOV EAX,dword ptr [RSP + 0xd4]
ADD RSP,0xd8
RET
|
int js_TA_cmp_generic(uint *param_1,uint *param_2,int8 *param_3)
{
int iVar1;
double local_c8;
int local_bc;
int4 local_b8;
uint uStack_b4;
int8 local_b0;
int1 local_a8 [16];
int1 local_98 [16];
int1 local_88 [16];
int local_74;
long local_70;
int1 local_68 [16];
int1 local_58 [16];
int1 local_48 [16];
uint local_38;
uint local_34;
int8 local_30;
int8 *local_28;
int8 *local_20;
uint *local_18;
uint *local_10;
local_30 = *param_3;
local_70 = param_3[2];
local_28 = param_3;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
iVar1 = typed_array_is_oob(local_70);
if (iVar1 != 0) {
return 0;
}
local_74 = 0;
if (*(int *)(local_28 + 1) != 0) {
return 0;
}
local_34 = *local_10;
local_38 = *local_18;
if ((*(uint *)(local_70 + 0x40) <= local_34) || (*(uint *)(local_70 + 0x40) <= local_38)) {
return 0;
}
local_88 = (*(code *)local_28[6])
(local_30,*(long *)(local_70 + 0x38) +
(ulong)local_34 * (long)*(int *)(local_28 + 7));
local_58 = local_88;
local_98 = (*(code *)local_28[6])
(local_30,*(long *)(local_70 + 0x38) +
(ulong)local_38 * (long)*(int *)(local_28 + 7));
local_b8 = 0;
local_b0 = 3;
local_48 = local_98;
local_a8 = JS_Call(local_30,local_28[4],local_28[5],(ulong)uStack_b4 << 0x20,3,2,local_58);
local_68 = local_a8;
iVar1 = JS_IsException(local_a8._0_8_,local_a8._8_8_);
if (iVar1 == 0) {
if (local_68._8_4_ == 0) {
local_bc = local_68._0_4_;
local_74 = (uint)(0 < (int)local_68._0_4_) - (uint)((int)local_68._0_4_ < 0);
}
else {
iVar1 = JS_ToFloat64Free(local_30,&local_c8,local_68._0_8_,local_68._8_8_);
if (iVar1 < 0) {
*(int4 *)(local_28 + 1) = 1;
goto LAB_001e249c;
}
local_74 = (uint)(0.0 < local_c8) - (uint)(local_c8 < 0.0);
}
if (local_74 == 0) {
local_74 = (uint)(local_38 < local_34) - (uint)(local_34 < local_38);
}
}
else {
*(int4 *)(local_28 + 1) = 1;
}
LAB_001e249c:
JS_FreeValue(local_30,local_58._0_8_,local_58._8_8_);
JS_FreeValue(local_30,local_48._0_8_,local_48._8_8_);
return local_74;
}
| |
44,349 | js_TA_cmp_generic | bluesky950520[P]quickjs/quickjs.c | static int js_TA_cmp_generic(const void *a, const void *b, void *opaque) {
struct TA_sort_context *psc = opaque;
JSContext *ctx = psc->ctx;
uint32_t a_idx, b_idx;
JSValue argv[2];
JSValue res;
JSObject *p;
int cmp;
p = JS_VALUE_GET_OBJ(psc->arr);
if (typed_array_is_oob(p))
return 0;
cmp = 0;
if (!psc->exception) {
a_idx = *(uint32_t *)a;
b_idx = *(uint32_t *)b;
if (a_idx >= p->u.array.count || b_idx >= p->u.array.count)
return 0;
argv[0] = psc->getfun(ctx, (char *)p->u.array.u.ptr +
a_idx * (size_t)psc->elt_size);
argv[1] = psc->getfun(ctx, (char *)p->u.array.u.ptr +
b_idx * (size_t)(psc->elt_size));
res = JS_Call(ctx, psc->cmp, JS_UNDEFINED, 2, argv);
if (JS_IsException(res)) {
psc->exception = 1;
goto done;
}
if (JS_VALUE_GET_TAG(res) == JS_TAG_INT) {
int val = JS_VALUE_GET_INT(res);
cmp = (val > 0) - (val < 0);
} else {
double val;
if (JS_ToFloat64Free(ctx, &val, res) < 0) {
psc->exception = 1;
goto done;
} else {
cmp = (val > 0) - (val < 0);
}
}
if (cmp == 0) {
/* make sort stable: compare array offsets */
cmp = (a_idx > b_idx) - (a_idx < b_idx);
}
done:
JS_FreeValue(ctx, argv[0]);
JS_FreeValue(ctx, argv[1]);
}
return cmp;
} | O1 | c | js_TA_cmp_generic:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r13
movq (%rdx), %rbx
movq 0x10(%rdx), %r15
movq %r15, %rdi
callq 0x38ab0
xorl %ebp, %ebp
testl %eax, %eax
jne 0x82572
cmpl $0x0, 0x8(%r14)
jne 0x82572
movl (%r13), %r13d
movl (%r12), %eax
movl 0x40(%r15), %ecx
cmpl %ecx, %r13d
setb %dl
cmpl %ecx, %eax
setb %cl
andb %dl, %cl
cmpb $0x1, %cl
jne 0x82572
movl %eax, %r12d
movslq 0x38(%r14), %rsi
imulq %r13, %rsi
addq 0x38(%r15), %rsi
movq %rbx, %rdi
callq *0x30(%r14)
leaq 0x30(%rsp), %rbp
movq %rax, (%rbp)
movq %rdx, 0x8(%rbp)
movslq 0x38(%r14), %rsi
imulq %r12, %rsi
addq 0x38(%r15), %rsi
movq %rbx, %rdi
callq *0x30(%r14)
movq %rax, 0x10(%rbp)
movq %rdx, 0x18(%rbp)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
movl $0x0, 0x20(%rsp)
movq $0x3, 0x28(%rsp)
movupd 0x20(%rsp), %xmm0
movupd %xmm0, (%rsp)
movq %rbp, 0x10(%rsp)
movl $0x2, 0x18(%rsp)
movl $0x3, %r8d
movq %rbx, %rdi
xorl %ecx, %ecx
movl $0x2, %r9d
callq 0x278b6
movq %rdx, %rcx
testl %ecx, %ecx
je 0x824c3
cmpl $0x6, %ecx
jne 0x824d4
movl $0x1, 0x8(%r14)
xorl %ebp, %ebp
jmp 0x8254c
movl %eax, %ecx
sarl $0x1f, %ecx
xorl %ebp, %ebp
testl %eax, %eax
setne %bpl
orl %ecx, %ebp
jmp 0x8253c
cmpl $0x2, %ecx
ja 0x824e8
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x20(%rsp)
jmp 0x824f2
cmpl $0x7, %ecx
jne 0x824f6
movq %rax, 0x20(%rsp)
xorl %eax, %eax
jmp 0x82509
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
movq %rax, %rdx
callq 0x3d31b
shrl $0x1f, %eax
testb %al, %al
je 0x82519
movl $0x1, 0x8(%r14)
xorl %ebp, %ebp
jmp 0x82538
movsd 0x20(%rsp), %xmm0
xorpd %xmm1, %xmm1
xorl %ebp, %ebp
ucomisd %xmm1, %xmm0
seta %bpl
xorl %ecx, %ecx
ucomisd %xmm0, %xmm1
seta %cl
subl %ecx, %ebp
testb %al, %al
jne 0x8254c
testl %ebp, %ebp
jne 0x8254c
xorl %ebp, %ebp
cmpl %r12d, %r13d
seta %bpl
sbbl $0x0, %ebp
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq 0x18(%rbx), %rdi
callq 0x1ccb2
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
movq 0x18(%rbx), %rdi
callq 0x1ccb2
movl %ebp, %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| js_TA_cmp_generic:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 58h
mov r14, rdx
mov r12, rsi
mov r13, rdi
mov rbx, [rdx]
mov r15, [rdx+10h]
mov rdi, r15
call typed_array_is_oob
xor ebp, ebp
test eax, eax
jnz loc_82572
cmp dword ptr [r14+8], 0
jnz loc_82572
mov r13d, [r13+0]
mov eax, [r12]
mov ecx, [r15+40h]
cmp r13d, ecx
setb dl
cmp eax, ecx
setb cl
and cl, dl
cmp cl, 1
jnz loc_82572
mov r12d, eax
movsxd rsi, dword ptr [r14+38h]
imul rsi, r13
add rsi, [r15+38h]
mov rdi, rbx
call qword ptr [r14+30h]
lea rbp, [rsp+88h+var_58]
mov [rbp+0], rax
mov [rbp+8], rdx
movsxd rsi, dword ptr [r14+38h]
imul rsi, r12
add rsi, [r15+38h]
mov rdi, rbx
call qword ptr [r14+30h]
mov [rbp+10h], rax
mov [rbp+18h], rdx
mov rsi, [r14+20h]
mov rdx, [r14+28h]
mov dword ptr [rsp+88h+var_68], 0
mov qword ptr [rsp+88h+var_68+8], 3
movupd xmm0, [rsp+88h+var_68]
movupd [rsp+88h+var_88], xmm0
mov [rsp+88h+var_78], rbp
mov [rsp+88h+var_70], 2
mov r8d, 3
mov rdi, rbx
xor ecx, ecx
mov r9d, 2
call JS_CallInternal
mov rcx, rdx
test ecx, ecx
jz short loc_824C3
cmp ecx, 6
jnz short loc_824D4
mov dword ptr [r14+8], 1
xor ebp, ebp
jmp loc_8254C
loc_824C3:
mov ecx, eax
sar ecx, 1Fh
xor ebp, ebp
test eax, eax
setnz bpl
or ebp, ecx
jmp short loc_8253C
loc_824D4:
cmp ecx, 2
ja short loc_824E8
xorps xmm0, xmm0
cvtsi2sd xmm0, eax
movsd qword ptr [rsp+88h+var_68], xmm0
jmp short loc_824F2
loc_824E8:
cmp ecx, 7
jnz short loc_824F6
mov qword ptr [rsp+88h+var_68], rax
loc_824F2:
xor eax, eax
jmp short loc_82509
loc_824F6:
lea rsi, [rsp+88h+var_68]
mov rdi, rbx
mov rdx, rax
call __JS_ToFloat64Free
shr eax, 1Fh
loc_82509:
test al, al
jz short loc_82519
mov dword ptr [r14+8], 1
xor ebp, ebp
jmp short loc_82538
loc_82519:
movsd xmm0, qword ptr [rsp+88h+var_68]
xorpd xmm1, xmm1
xor ebp, ebp
ucomisd xmm0, xmm1
setnbe bpl
xor ecx, ecx
ucomisd xmm1, xmm0
setnbe cl
sub ebp, ecx
loc_82538:
test al, al
jnz short loc_8254C
loc_8253C:
test ebp, ebp
jnz short loc_8254C
xor ebp, ebp
cmp r13d, r12d
setnbe bpl
sbb ebp, 0
loc_8254C:
mov rsi, [rsp+88h+var_58]
mov rdx, [rsp+88h+var_50]
mov rdi, [rbx+18h]
call JS_FreeValueRT
mov rsi, [rsp+88h+var_48]
mov rdx, [rsp+88h+var_40]
mov rdi, [rbx+18h]
call JS_FreeValueRT
loc_82572:
mov eax, ebp
add rsp, 58h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long js_TA_cmp_generic(
unsigned int *a1,
_DWORD *a2,
long long a3,
double a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11)
{
long long v12; // rbx
long long v13; // r15
unsigned int v14; // ebp
long long v15; // r13
long long v16; // r12
long long v17; // rdx
long long v18; // rdx
long long v19; // rsi
long long v20; // rdx
__m128 v21; // xmm4
__m128 v22; // xmm5
unsigned long long v23; // rax
long long v24; // rdx
unsigned int v25; // eax
__m128 v27; // [rsp+20h] [rbp-68h] BYREF
_DWORD *v28; // [rsp+30h] [rbp-58h] BYREF
long long v29; // [rsp+38h] [rbp-50h]
_DWORD *v30; // [rsp+40h] [rbp-48h]
long long v31; // [rsp+48h] [rbp-40h]
v12 = *(_QWORD *)a3;
v13 = *(_QWORD *)(a3 + 16);
v14 = 0;
if ( !typed_array_is_oob(v13) && !*(_DWORD *)(a3 + 8) )
{
v15 = *a1;
if ( (unsigned int)v15 < *(_DWORD *)(v13 + 64) && *a2 < *(_DWORD *)(v13 + 64) )
{
v16 = (unsigned int)*a2;
v28 = (_DWORD *)(*(long long ( **)(long long, long long))(a3 + 48))(
v12,
*(_QWORD *)(v13 + 56) + v15 * *(int *)(a3 + 56));
v29 = v17;
v30 = (_DWORD *)(*(long long ( **)(long long, long long))(a3 + 48))(
v12,
*(_QWORD *)(v13 + 56) + v16 * *(int *)(a3 + 56));
v31 = v18;
v19 = *(_QWORD *)(a3 + 32);
v20 = *(_QWORD *)(a3 + 40);
v27.m128_i32[0] = 0;
v27.m128_u64[1] = 3LL;
v23 = JS_CallInternal(v12, v19, v20, 0LL, 3LL, 2LL, v27, a5, a6, a7, v21, v22, a10, a11, 0, 3, (long long)&v28, 2u);
if ( !(_DWORD)v24 )
{
v14 = ((int)v23 >> 31) | ((_DWORD)v23 != 0);
LABEL_18:
if ( !v14 )
v14 = (__PAIR64__((unsigned int)v15 > (unsigned int)v16, v15) - (unsigned int)v16) >> 32;
goto LABEL_20;
}
if ( (_DWORD)v24 == 6 )
{
*(_DWORD *)(a3 + 8) = 1;
v14 = 0;
LABEL_20:
JS_FreeValueRT(*(_QWORD *)(v12 + 24), v28, v29);
JS_FreeValueRT(*(_QWORD *)(v12 + 24), v30, v31);
return v14;
}
if ( (unsigned int)v24 > 2 )
{
if ( (_DWORD)v24 != 7 )
{
v25 = (unsigned int)_JS_ToFloat64Free(v12, (long long *)&v27, v23, v24) >> 31;
LABEL_14:
if ( (_BYTE)v25 )
{
*(_DWORD *)(a3 + 8) = 1;
v14 = 0;
}
else
{
v14 = (*(double *)v27.m128_u64 > 0.0) - (*(double *)v27.m128_u64 < 0.0);
}
if ( (_BYTE)v25 )
goto LABEL_20;
goto LABEL_18;
}
v27.m128_u64[0] = v23;
}
else
{
*(double *)v27.m128_u64 = (double)(int)v23;
}
LOBYTE(v25) = 0;
goto LABEL_14;
}
}
return v14;
}
| js_TA_cmp_generic:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x58
MOV R14,RDX
MOV R12,RSI
MOV R13,RDI
MOV RBX,qword ptr [RDX]
MOV R15,qword ptr [RDX + 0x10]
MOV RDI,R15
CALL 0x00138ab0
XOR EBP,EBP
TEST EAX,EAX
JNZ 0x00182572
CMP dword ptr [R14 + 0x8],0x0
JNZ 0x00182572
MOV R13D,dword ptr [R13]
MOV EAX,dword ptr [R12]
MOV ECX,dword ptr [R15 + 0x40]
CMP R13D,ECX
SETC DL
CMP EAX,ECX
SETC CL
AND CL,DL
CMP CL,0x1
JNZ 0x00182572
MOV R12D,EAX
MOVSXD RSI,dword ptr [R14 + 0x38]
IMUL RSI,R13
ADD RSI,qword ptr [R15 + 0x38]
MOV RDI,RBX
CALL qword ptr [R14 + 0x30]
LEA RBP,[RSP + 0x30]
MOV qword ptr [RBP],RAX
MOV qword ptr [RBP + 0x8],RDX
MOVSXD RSI,dword ptr [R14 + 0x38]
IMUL RSI,R12
ADD RSI,qword ptr [R15 + 0x38]
MOV RDI,RBX
CALL qword ptr [R14 + 0x30]
MOV qword ptr [RBP + 0x10],RAX
MOV qword ptr [RBP + 0x18],RDX
MOV RSI,qword ptr [R14 + 0x20]
MOV RDX,qword ptr [R14 + 0x28]
MOV dword ptr [RSP + 0x20],0x0
MOV qword ptr [RSP + 0x28],0x3
MOVUPD XMM0,xmmword ptr [RSP + 0x20]
MOVUPD xmmword ptr [RSP],XMM0
MOV qword ptr [RSP + 0x10],RBP
MOV dword ptr [RSP + 0x18],0x2
MOV R8D,0x3
MOV RDI,RBX
XOR ECX,ECX
MOV R9D,0x2
CALL 0x001278b6
MOV RCX,RDX
TEST ECX,ECX
JZ 0x001824c3
CMP ECX,0x6
JNZ 0x001824d4
MOV dword ptr [R14 + 0x8],0x1
XOR EBP,EBP
JMP 0x0018254c
LAB_001824c3:
MOV ECX,EAX
SAR ECX,0x1f
XOR EBP,EBP
TEST EAX,EAX
SETNZ BPL
OR EBP,ECX
JMP 0x0018253c
LAB_001824d4:
CMP ECX,0x2
JA 0x001824e8
XORPS XMM0,XMM0
CVTSI2SD XMM0,EAX
MOVSD qword ptr [RSP + 0x20],XMM0
JMP 0x001824f2
LAB_001824e8:
CMP ECX,0x7
JNZ 0x001824f6
MOV qword ptr [RSP + 0x20],RAX
LAB_001824f2:
XOR EAX,EAX
JMP 0x00182509
LAB_001824f6:
LEA RSI,[RSP + 0x20]
MOV RDI,RBX
MOV RDX,RAX
CALL 0x0013d31b
SHR EAX,0x1f
LAB_00182509:
TEST AL,AL
JZ 0x00182519
MOV dword ptr [R14 + 0x8],0x1
XOR EBP,EBP
JMP 0x00182538
LAB_00182519:
MOVSD XMM0,qword ptr [RSP + 0x20]
XORPD XMM1,XMM1
XOR EBP,EBP
UCOMISD XMM0,XMM1
SETA BPL
XOR ECX,ECX
UCOMISD XMM1,XMM0
SETA CL
SUB EBP,ECX
LAB_00182538:
TEST AL,AL
JNZ 0x0018254c
LAB_0018253c:
TEST EBP,EBP
JNZ 0x0018254c
XOR EBP,EBP
CMP R13D,R12D
SETA BPL
SBB EBP,0x0
LAB_0018254c:
MOV RSI,qword ptr [RSP + 0x30]
MOV RDX,qword ptr [RSP + 0x38]
MOV RDI,qword ptr [RBX + 0x18]
CALL 0x0011ccb2
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x48]
MOV RDI,qword ptr [RBX + 0x18]
CALL 0x0011ccb2
LAB_00182572:
MOV EAX,EBP
ADD RSP,0x58
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
uint js_TA_cmp_generic(uint *param_1,uint *param_2,long *param_3)
{
uint uVar1;
uint uVar2;
long lVar3;
long lVar4;
double dVar5;
byte bVar6;
int iVar7;
byte extraout_var;
uint uVar8;
int1 auVar9 [12];
int8 local_68;
int8 uStack_60;
int1 local_58 [16];
int1 local_48 [16];
lVar3 = *param_3;
lVar4 = param_3[2];
iVar7 = typed_array_is_oob(lVar4);
if (iVar7 != 0) {
return 0;
}
if ((int)param_3[1] != 0) {
return 0;
}
uVar1 = *param_1;
uVar2 = *param_2;
if (*(uint *)(lVar4 + 0x40) <= uVar2 || *(uint *)(lVar4 + 0x40) <= uVar1) {
return 0;
}
local_58 = (*(code *)param_3[6])
(lVar3,(long)(int)param_3[7] * (ulong)uVar1 + *(long *)(lVar4 + 0x38));
local_48 = (*(code *)param_3[6])
(lVar3,(long)(int)param_3[7] * (ulong)uVar2 + *(long *)(lVar4 + 0x38));
local_68 = (double)((ulong)local_68._4_4_ << 0x20);
uStack_60 = 3;
auVar9 = JS_CallInternal(lVar3,param_3[4],param_3[5],0,3,2,0,3,local_58,2);
uVar8 = auVar9._8_4_;
iVar7 = auVar9._0_4_;
if (uVar8 == 0) {
uVar8 = (uint)(iVar7 != 0) | iVar7 >> 0x1f;
}
else {
if (uVar8 == 6) {
*(int4 *)(param_3 + 1) = 1;
uVar8 = 0;
goto LAB_0018254c;
}
if (uVar8 < 3) {
dVar5 = (double)iVar7;
LAB_001824f2:
local_68 = dVar5;
bVar6 = 0;
}
else {
dVar5 = auVar9._0_8_;
if (uVar8 == 7) goto LAB_001824f2;
__JS_ToFloat64Free(lVar3,&local_68,auVar9._0_8_);
bVar6 = extraout_var >> 7;
}
if (bVar6 != 0) {
*(int4 *)(param_3 + 1) = 1;
uVar8 = 0;
goto LAB_0018254c;
}
uVar8 = (uint)(0.0 < local_68) - (uint)(local_68 < 0.0);
}
if (uVar8 == 0) {
uVar8 = (uint)(uVar2 < uVar1) - (uint)(uVar1 < uVar2);
}
LAB_0018254c:
JS_FreeValueRT(*(int8 *)(lVar3 + 0x18),local_58._0_8_,local_58._8_8_);
JS_FreeValueRT(*(int8 *)(lVar3 + 0x18),local_48._0_8_,local_48._8_8_);
return uVar8;
}
| |
44,350 | std::vector<int, std::allocator<int>> string_split<int>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char) | monkey531[P]llama/common/common.h | static std::vector<T> string_split(const std::string & str, char delim) {
static_assert(!std::is_same<T, std::string>::value, "Please use the specialized version for std::string");
std::vector<T> values;
std::istringstream str_stream(str);
std::string token;
while (std::getline(str_stream, token, delim)) {
T value;
std::istringstream token_stream(token);
token_stream >> value;
values.push_back(value);
}
return values;
} | O0 | c | std::vector<int, std::allocator<int>> string_split<int>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, char):
subq $0x378, %rsp # imm = 0x378
movq %rdi, 0x18(%rsp)
movb %dl, %al
movq %rdi, %rcx
movq %rcx, 0x20(%rsp)
movq %rdi, 0x370(%rsp)
movq %rsi, 0x368(%rsp)
movb %al, 0x367(%rsp)
movb $0x0, 0x366(%rsp)
callq 0x60ea0
movq 0x368(%rsp), %rsi
leaq 0x1e0(%rsp), %rdi
movl $0x8, %edx
callq 0x597e0
jmp 0x85c06
leaq 0x1b0(%rsp), %rdi
callq 0x595c0
movsbl 0x367(%rsp), %edx
leaq 0x1e0(%rsp), %rdi
leaq 0x1b0(%rsp), %rsi
callq 0x59040
movq %rax, 0x10(%rsp)
jmp 0x85c37
movq 0x10(%rsp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x59600
movb %al, 0xf(%rsp)
jmp 0x85c51
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x85c5e
jmp 0x85cfd
leaq 0x28(%rsp), %rdi
leaq 0x1b0(%rsp), %rsi
movl $0x8, %edx
callq 0x597e0
jmp 0x85c77
leaq 0x28(%rsp), %rdi
leaq 0x1ac(%rsp), %rsi
callq 0x5a410
jmp 0x85c8b
movq 0x18(%rsp), %rdi
leaq 0x1ac(%rsp), %rsi
callq 0xe5e50
jmp 0x85c9f
leaq 0x28(%rsp), %rdi
callq 0x59990
jmp 0x85c13
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d8(%rsp)
movl %eax, 0x1d4(%rsp)
jmp 0x85d5e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d8(%rsp)
movl %eax, 0x1d4(%rsp)
jmp 0x85d2b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x1d8(%rsp)
movl %eax, 0x1d4(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x59990
jmp 0x85d2b
movb $0x1, 0x366(%rsp)
leaq 0x1b0(%rsp), %rdi
callq 0x5a4d8
leaq 0x1e0(%rsp), %rdi
callq 0x59990
testb $0x1, 0x366(%rsp)
jne 0x85d51
jmp 0x85d47
leaq 0x1b0(%rsp), %rdi
callq 0x5a4d8
leaq 0x1e0(%rsp), %rdi
callq 0x59990
jmp 0x85d5e
movq 0x18(%rsp), %rdi
callq 0x60f10
movq 0x20(%rsp), %rax
addq $0x378, %rsp # imm = 0x378
retq
movq 0x18(%rsp), %rdi
callq 0x60f10
movq 0x1d8(%rsp), %rdi
callq 0x59b80
nopw %cs:(%rax,%rax)
| _ZL12string_splitIiESt6vectorIT_SaIS1_EERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEc:
sub rsp, 378h
mov [rsp+378h+var_360], rdi
mov al, dl
mov rcx, rdi
mov [rsp+378h+var_358], rcx
mov [rsp+378h+var_8], rdi
mov [rsp+378h+var_10], rsi
mov [rsp+378h+var_11], al
mov [rsp+378h+var_12], 0
call _ZNSt6vectorIiSaIiEEC2Ev; std::vector<int>::vector(void)
mov rsi, [rsp+378h+var_10]
lea rdi, [rsp+378h+var_198]
mov edx, 8
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode; std::istringstream::basic_istringstream(std::string const&,std::_Ios_Openmode)
jmp short $+2
loc_85C06:
lea rdi, [rsp+378h+var_1C8]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void)
loc_85C13:
movsx edx, [rsp+378h+var_11]
lea rdi, [rsp+378h+var_198]
lea rsi, [rsp+378h+var_1C8]
call __ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_; std::getline<char,std::char_traits<char>,std::allocator<char>>(std::istream &,std::string &,char)
mov [rsp+378h+var_368], rax
jmp short $+2
loc_85C37:
mov rdi, [rsp+378h+var_368]
mov rax, [rdi]
mov rax, [rax-18h]
add rdi, rax
call __ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv; std::ios::operator bool(void)
mov [rsp+378h+var_369], al
jmp short $+2
loc_85C51:
mov al, [rsp+378h+var_369]
test al, 1
jnz short loc_85C5E
jmp loc_85CFD
loc_85C5E:
lea rdi, [rsp+378h+var_350]
lea rsi, [rsp+378h+var_1C8]
mov edx, 8
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode; std::istringstream::basic_istringstream(std::string const&,std::_Ios_Openmode)
jmp short $+2
loc_85C77:
lea rdi, [rsp+378h+var_350]
lea rsi, [rsp+378h+var_1CC]
call __ZNSirsERi; std::istream::operator>>(int &)
jmp short $+2
loc_85C8B:
mov rdi, [rsp+378h+var_360]
lea rsi, [rsp+378h+var_1CC]
call _ZNSt6vectorIiSaIiEE9push_backERKi; std::vector<int>::push_back(int const&)
jmp short $+2
loc_85C9F:
lea rdi, [rsp+378h+var_350]
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev; std::istringstream::~istringstream()
jmp loc_85C13
mov rcx, rax
mov eax, edx
mov [rsp+arg_1D0], rcx
mov [rsp+arg_1CC], eax
jmp loc_85D5E
mov rcx, rax
mov eax, edx
mov [rsp+arg_1D0], rcx
mov [rsp+arg_1CC], eax
jmp short loc_85D2B
mov rcx, rax
mov eax, edx
mov [rsp+arg_1D0], rcx
mov [rsp+arg_1CC], eax
lea rdi, [rsp+arg_20]
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev; std::istringstream::~istringstream()
jmp short loc_85D2B
loc_85CFD:
mov [rsp+378h+var_12], 1
lea rdi, [rsp+378h+var_1C8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+378h+var_198]
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev; std::istringstream::~istringstream()
test [rsp+378h+var_12], 1
jnz short loc_85D51
jmp short loc_85D47
loc_85D2B:
lea rdi, [rsp+arg_1A8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+arg_1D8]
call __ZNSt7__cxx1119basic_istringstreamIcSt11char_traitsIcESaIcEED1Ev; std::istringstream::~istringstream()
jmp short loc_85D5E
loc_85D47:
mov rdi, [rsp+378h+var_360]
call _ZNSt6vectorIiSaIiEED2Ev; std::vector<int>::~vector()
loc_85D51:
mov rax, [rsp+378h+var_358]
add rsp, 378h
retn
loc_85D5E:
mov rdi, [rsp+arg_10]
call _ZNSt6vectorIiSaIiEED2Ev; std::vector<int>::~vector()
mov rdi, [rsp+arg_1D0]
call __Unwind_Resume
| long long * string_split<int>(long long *a1, long long a2, char a3)
{
_QWORD *v4; // [rsp+10h] [rbp-368h]
_BYTE v5[388]; // [rsp+28h] [rbp-350h] BYREF
_BYTE v6[4]; // [rsp+1ACh] [rbp-1CCh] BYREF
_BYTE v7[48]; // [rsp+1B0h] [rbp-1C8h] BYREF
_BYTE v8[390]; // [rsp+1E0h] [rbp-198h] BYREF
char v9; // [rsp+366h] [rbp-12h]
char v10; // [rsp+367h] [rbp-11h]
long long v11; // [rsp+368h] [rbp-10h]
long long *v12; // [rsp+370h] [rbp-8h]
v12 = a1;
v11 = a2;
v10 = a3;
v9 = 0;
std::vector<int>::vector((long long)a1);
std::istringstream::basic_istringstream(v8, a2, 8LL);
std::string::basic_string(v7);
while ( 1 )
{
v4 = (_QWORD *)std::getline<char,std::char_traits<char>,std::allocator<char>>(v8, v7, (unsigned int)v10);
if ( (std::ios::operator bool((char *)v4 + *(_QWORD *)(*v4 - 24LL)) & 1) == 0 )
break;
std::istringstream::basic_istringstream(v5, v7, 8LL);
std::istream::operator>>(v5, v6);
std::vector<int>::push_back(a1, v6);
std::istringstream::~istringstream(v5);
}
v9 = 1;
std::string::~string(v7);
std::istringstream::~istringstream(v8);
if ( (v9 & 1) == 0 )
std::vector<int>::~vector(a1);
return a1;
}
| string_split<int>:
SUB RSP,0x378
MOV qword ptr [RSP + 0x18],RDI
MOV AL,DL
MOV RCX,RDI
MOV qword ptr [RSP + 0x20],RCX
MOV qword ptr [RSP + 0x370],RDI
MOV qword ptr [RSP + 0x368],RSI
MOV byte ptr [RSP + 0x367],AL
MOV byte ptr [RSP + 0x366],0x0
CALL 0x00160ea0
MOV RSI,qword ptr [RSP + 0x368]
LAB_00185bf2:
LEA RDI,[RSP + 0x1e0]
MOV EDX,0x8
CALL 0x001597e0
JMP 0x00185c06
LAB_00185c06:
LEA RDI,[RSP + 0x1b0]
CALL 0x001595c0
LAB_00185c13:
MOVSX EDX,byte ptr [RSP + 0x367]
LAB_00185c1b:
LEA RDI,[RSP + 0x1e0]
LEA RSI,[RSP + 0x1b0]
CALL 0x00159040
MOV qword ptr [RSP + 0x10],RAX
JMP 0x00185c37
LAB_00185c37:
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + -0x18]
ADD RDI,RAX
CALL 0x00159600
MOV byte ptr [RSP + 0xf],AL
JMP 0x00185c51
LAB_00185c51:
MOV AL,byte ptr [RSP + 0xf]
TEST AL,0x1
JNZ 0x00185c5e
JMP 0x00185cfd
LAB_00185c5e:
LEA RDI,[RSP + 0x28]
LEA RSI,[RSP + 0x1b0]
MOV EDX,0x8
CALL 0x001597e0
JMP 0x00185c77
LAB_00185c77:
LEA RDI,[RSP + 0x28]
LEA RSI,[RSP + 0x1ac]
CALL 0x0015a410
JMP 0x00185c8b
LAB_00185c8b:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[RSP + 0x1ac]
CALL 0x001e5e50
LAB_00185c9d:
JMP 0x00185c9f
LAB_00185c9f:
LEA RDI,[RSP + 0x28]
CALL 0x00159990
JMP 0x00185c13
LAB_00185cfd:
MOV byte ptr [RSP + 0x366],0x1
LEA RDI,[RSP + 0x1b0]
CALL 0x0015a4d8
LEA RDI,[RSP + 0x1e0]
CALL 0x00159990
TEST byte ptr [RSP + 0x366],0x1
JNZ 0x00185d51
JMP 0x00185d47
LAB_00185d47:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x00160f10
LAB_00185d51:
MOV RAX,qword ptr [RSP + 0x20]
ADD RSP,0x378
RET
|
/* std::vector<int, std::allocator<int> > string_split<int>(std::__cxx11::string const&, char) */
string * string_split<int>(string *param_1,char param_2)
{
bool bVar1;
istream *piVar2;
char in_DL;
int7 in_register_00000031;
istringstream local_350 [388];
int local_1cc;
string local_1c8 [48];
istringstream local_198 [390];
byte local_12;
char local_11;
int8 local_10;
string *local_8;
local_10 = CONCAT71(in_register_00000031,param_2);
local_12 = 0;
local_11 = in_DL;
local_8 = param_1;
std::vector<int,std::allocator<int>>::vector((vector<int,std::allocator<int>> *)param_1);
/* try { // try from 00185bf2 to 00185c03 has its CatchHandler @ 00185cae */
std::__cxx11::istringstream::istringstream(local_198,local_10,8);
std::__cxx11::string::string(local_1c8);
while( true ) {
/* try { // try from 00185c1b to 00185c74 has its CatchHandler @ 00185cc7 */
piVar2 = std::getline<char,std::char_traits<char>,std::allocator<char>>
((istream *)local_198,local_1c8,local_11);
bVar1 = std::ios::operator_cast_to_bool((ios *)(piVar2 + *(long *)(*(long *)piVar2 + -0x18)));
if (!bVar1) break;
std::__cxx11::istringstream::istringstream(local_350,local_1c8,8);
/* try { // try from 00185c77 to 00185c9c has its CatchHandler @ 00185cdd */
std::istream::operator>>((istream *)local_350,&local_1cc);
std::vector<int,std::allocator<int>>::push_back
((vector<int,std::allocator<int>> *)param_1,&local_1cc);
std::__cxx11::istringstream::~istringstream(local_350);
}
local_12 = 1;
std::__cxx11::string::~string(local_1c8);
std::__cxx11::istringstream::~istringstream(local_198);
if ((local_12 & 1) == 0) {
std::vector<int,std::allocator<int>>::~vector((vector<int,std::allocator<int>> *)param_1);
}
return param_1;
}
| |
44,351 | Catch::RunContext::runCurrentTest(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) | AlayaLite/build_O3/_deps/libcoro-src/test/catch_amalgamated.cpp | void RunContext::runCurrentTest(std::string & redirectedCout, std::string & redirectedCerr) {
auto const& testCaseInfo = m_activeTestCase->getTestCaseInfo();
SectionInfo testCaseSection(testCaseInfo.lineInfo, testCaseInfo.name);
m_reporter->sectionStarting(testCaseSection);
Counts prevAssertions = m_totals.assertions;
double duration = 0;
m_shouldReportUnexpected = true;
m_lastAssertionInfo = { "TEST_CASE"_sr, testCaseInfo.lineInfo, StringRef(), ResultDisposition::Normal };
Timer timer;
CATCH_TRY {
if (m_reporter->getPreferences().shouldRedirectStdOut) {
#if !defined(CATCH_CONFIG_EXPERIMENTAL_REDIRECT)
RedirectedStreams redirectedStreams(redirectedCout, redirectedCerr);
timer.start();
invokeActiveTestCase();
#else
OutputRedirect r(redirectedCout, redirectedCerr);
timer.start();
invokeActiveTestCase();
#endif
} | O3 | cpp | Catch::RunContext::runCurrentTest(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, 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 $0x128, %rsp # imm = 0x128
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq 0x20(%rdi), %rax
movq (%rax), %rax
leaq 0x68(%rax), %rbp
leaq 0x50(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x40(%rsp), %r12
movq %r12, %rdi
callq 0x251d8
leaq 0x20(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq (%r12), %rax
cmpq %r13, %rax
je 0x5f09e
movq %rax, 0x10(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x20(%rsp)
jmp 0x5f0a6
movups (%r13), %xmm0
movups %xmm0, (%rcx)
movq 0x48(%rsp), %rax
leaq 0x10(%rsp), %rsi
movq %rax, 0x8(%rsi)
movq %r13, 0x40(%rsp)
movq $0x0, 0x48(%rsp)
movb $0x0, 0x50(%rsp)
movdqu (%rbp), %xmm0
movdqu %xmm0, 0x20(%rsi)
movq 0x110(%rbx), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
movups 0xd0(%rbx), %xmm0
movaps %xmm0, 0x100(%rsp)
movups 0xe0(%rbx), %xmm0
movaps %xmm0, 0x110(%rsp)
movb $0x1, 0x1ca(%rbx)
movups (%rbp), %xmm0
movaps %xmm0, 0x80(%rsp)
leaq 0x7ec26(%rip), %rax # 0xddd3c
movq %rax, 0x148(%rbx)
movq $0x9, 0x150(%rbx)
movapd 0x80(%rsp), %xmm0
movupd %xmm0, 0x158(%rbx)
leaq 0x7f448(%rip), %rax # 0xde588
movq %rax, 0x168(%rbx)
movq $0x0, 0x170(%rbx)
movl $0x1, 0x178(%rbx)
movq 0x110(%rbx), %rax
cmpb $0x1, 0x8(%rax)
jne 0x5f19b
leaq 0x80(%rsp), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x5cdb2
callq 0x17800
movq %rax, %r14
movq %rbx, %rdi
callq 0x6019a
leaq 0x80(%rsp), %rdi
callq 0x5cdfc
jmp 0x5f1ab
callq 0x17800
movq %rax, %r14
movq %rbx, %rdi
callq 0x6019a
callq 0x17800
subq %r14, %rax
shrq $0x3, %rax
movabsq $0x20c49ba5e353f7cf, %rcx # imm = 0x20C49BA5E353F7CF
mulq %rcx
shrq $0x4, %rdx
xorps %xmm0, %xmm0
cvtsi2sd %rdx, %xmm0
mulsd 0x7bf00(%rip), %xmm0 # 0xdb0d8
movsd %xmm0, 0x8(%rsp)
movdqu 0xd0(%rbx), %xmm0
psubq 0x100(%rsp), %xmm0
leaq 0x60(%rsp), %rsi
movdqa %xmm0, (%rsi)
movdqu 0xe0(%rbx), %xmm0
psubq 0x110(%rsp), %xmm0
movdqa %xmm0, 0x10(%rsi)
movq %rbx, %rdi
callq 0x5f9c0
movl %eax, %ebp
movq 0x28(%rbx), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movq %rbx, %rdi
callq 0x600b8
leaq 0x118(%rbx), %rdi
movq 0x118(%rbx), %rsi
callq 0x8748c
movq 0x130(%rbx), %r15
movq 0x138(%rbx), %r12
cmpq %r15, %r12
je 0x5f26b
movq %r15, %r14
movq %r14, %rdi
callq 0x4c506
addq $0x50, %r14
cmpq %r12, %r14
jne 0x5f253
movq %r15, 0x138(%rbx)
movzbl %bpl, %ecx
leaq 0x80(%rsp), %rdi
leaq 0x10(%rsp), %rsi
leaq 0x60(%rsp), %rdx
movq 0x8(%rsp), %xmm0
callq 0x58e72
movq 0x110(%rbx), %rdi
movq (%rdi), %rax
leaq 0x80(%rsp), %rsi
callq *0x70(%rax)
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5f2c2
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x17150
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x5f2de
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x17150
addq $0x128, %rsp # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, %r14
movq %rax, %r15
leaq 0x80(%rsp), %rdi
callq 0x5cdfc
jmp 0x5f30d
jmp 0x5f307
movq %rdx, %r14
movq %rax, %r15
movq %r15, %rdi
cmpl $0x3, %r14d
jne 0x5f32f
callq 0x170c0
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
callq 0x17910
jmp 0x5f1de
callq 0x170c0
cmpl $0x2, %r14d
jne 0x5f34e
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
callq 0x17910
jmp 0x5f1de
cmpb $0x1, 0x1ca(%rbx)
jne 0x5f3c3
movw $0x0, 0x60(%rsp)
movb $0x0, 0x62(%rsp)
callq 0x735c6
movq (%rax), %rcx
movq %rax, %rdi
callq *0x28(%rcx)
movq (%rax), %rcx
leaq 0x80(%rsp), %rdi
movq %rax, %rsi
callq *0x10(%rcx)
leaq 0x148(%rbx), %rsi
movq (%rbx), %rax
leaq 0x80(%rsp), %rdx
leaq 0x60(%rsp), %rcx
movq %rbx, %rdi
callq *0x90(%rax)
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5f3c3
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x17150
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
callq 0x17910
jmp 0x5f1de
movq %rax, %rbx
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5f404
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x17150
jmp 0x5f404
jmp 0x5f43f
jmp 0x5f43f
movq %rax, %rbx
callq 0x17910
jmp 0x5f442
movq %rax, %rdi
callq 0x1f2c3
jmp 0x5f43f
movq %rax, %rbx
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x5f442
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x17150
jmp 0x5f442
jmp 0x5f43f
jmp 0x5f43f
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x5f45e
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x17150
movq %rbx, %rdi
callq 0x17740
| _ZN5Catch10RunContext14runCurrentTestERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 128h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov rax, [rdi+20h]
mov rax, [rax]
lea rbp, [rax+68h]
lea r13, [rsp+158h+var_108]
mov [r13-10h], r13
mov rsi, [rax]
mov rdx, [rax+8]
add rdx, rsi
lea r12, [rsp+158h+var_118]
mov rdi, r12
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
lea rcx, [rsp+158h+var_138]
mov [rcx-10h], rcx
mov rax, [r12]
cmp rax, r13
jz short loc_5F09E
mov [rsp+158h+var_148], rax
mov rax, [rsp+158h+var_108]
mov [rsp+158h+var_138], rax
jmp short loc_5F0A6
loc_5F09E:
movups xmm0, xmmword ptr [r13+0]
movups xmmword ptr [rcx], xmm0
loc_5F0A6:
mov rax, [rsp+158h+var_110]
lea rsi, [rsp+158h+var_148]
mov [rsi+8], rax
mov [rsp+158h+var_118], r13
mov [rsp+158h+var_110], 0
mov byte ptr [rsp+158h+var_108], 0
movdqu xmm0, xmmword ptr [rbp+0]
movdqu xmmword ptr [rsi+20h], xmm0
mov rdi, [rbx+110h]; this
mov rax, [rdi]
call qword ptr [rax+38h]
movups xmm0, xmmword ptr [rbx+0D0h]
movaps [rsp+158h+var_58], xmm0
movups xmm0, xmmword ptr [rbx+0E0h]
movaps [rsp+158h+var_48], xmm0
mov byte ptr [rbx+1CAh], 1
movups xmm0, xmmword ptr [rbp+0]
movaps [rsp+158h+var_D8], xmm0
lea rax, aTestCase; "TEST_CASE"
mov [rbx+148h], rax
mov qword ptr [rbx+150h], 9
movapd xmm0, [rsp+158h+var_D8]
movupd xmmword ptr [rbx+158h], xmm0
lea rax, aWithExpansion_0+11h; ""
mov [rbx+168h], rax
mov qword ptr [rbx+170h], 0
mov dword ptr [rbx+178h], 1
mov rax, [rbx+110h]
cmp byte ptr [rax+8], 1
jnz short loc_5F19B
lea rdi, [rsp+158h+var_D8]; this
mov rsi, r15
mov rdx, r14
call _ZN5Catch17RedirectedStreamsC2ERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_; Catch::RedirectedStreams::RedirectedStreams(std::string &,std::string &)
call __ZNSt6chrono3_V212system_clock3nowEv; std::chrono::_V2::system_clock::now(void)
mov r14, rax
mov rdi, rbx; this
call _ZN5Catch10RunContext20invokeActiveTestCaseEv; Catch::RunContext::invokeActiveTestCase(void)
lea rdi, [rsp+158h+var_D8]; this
call _ZN5Catch17RedirectedStreamsD2Ev; Catch::RedirectedStreams::~RedirectedStreams()
jmp short loc_5F1AB
loc_5F19B:
call __ZNSt6chrono3_V212system_clock3nowEv; std::chrono::_V2::system_clock::now(void)
mov r14, rax
mov rdi, rbx; this
call _ZN5Catch10RunContext20invokeActiveTestCaseEv; Catch::RunContext::invokeActiveTestCase(void)
loc_5F1AB:
call __ZNSt6chrono3_V212system_clock3nowEv; std::chrono::_V2::system_clock::now(void)
sub rax, r14
shr rax, 3
mov rcx, 20C49BA5E353F7CFh
mul rcx
shr rdx, 4
xorps xmm0, xmm0
cvtsi2sd xmm0, rdx
mulsd xmm0, cs:qword_DB0D8
movsd [rsp+158h+var_150], xmm0
loc_5F1DE:
movdqu xmm0, xmmword ptr [rbx+0D0h]
psubq xmm0, [rsp+158h+var_58]
lea rsi, [rsp+158h+var_F8]; Catch::Counts *
movdqa xmmword ptr [rsi], xmm0
movdqu xmm0, xmmword ptr [rbx+0E0h]
psubq xmm0, [rsp+158h+var_48]
movdqa xmmword ptr [rsi+10h], xmm0
mov rdi, rbx; this
call _ZN5Catch10RunContext24testForMissingAssertionsERNS_6CountsE; Catch::RunContext::testForMissingAssertions(Catch::Counts &)
mov ebp, eax
mov rdi, [rbx+28h]
mov rax, [rdi]
call qword ptr [rax+18h]
mov rdi, rbx; this
call _ZN5Catch10RunContext24handleUnfinishedSectionsEv; Catch::RunContext::handleUnfinishedSections(void)
lea rdi, [rbx+118h]
mov rsi, [rbx+118h]
call _ZNSt6vectorIN5Catch11MessageInfoESaIS1_EE15_M_erase_at_endEPS1_; std::vector<Catch::MessageInfo>::_M_erase_at_end(Catch::MessageInfo*)
mov r15, [rbx+130h]
mov r12, [rbx+138h]
cmp r12, r15
jz short loc_5F26B
mov r14, r15
loc_5F253:
mov rdi, r14; this
call _ZN5Catch13ScopedMessageD2Ev; Catch::ScopedMessage::~ScopedMessage()
add r14, 50h ; 'P'
cmp r14, r12
jnz short loc_5F253
mov [rbx+138h], r15
loc_5F26B:
movzx ecx, bpl
lea rdi, [rsp+158h+var_D8]
lea rsi, [rsp+158h+var_148]
lea rdx, [rsp+158h+var_F8]
movq xmm0, [rsp+158h+var_150]
call _ZN5Catch12SectionStatsC2EONS_11SectionInfoERKNS_6CountsEdb; Catch::SectionStats::SectionStats(Catch::SectionInfo &&,Catch::Counts const&,double,bool)
mov rdi, [rbx+110h]
mov rax, [rdi]
lea rsi, [rsp+158h+var_D8]
call qword ptr [rax+70h]
lea rax, [rsp+158h+var_C8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5F2C2
mov rsi, [rsp+158h+var_C8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5F2C2:
mov rdi, [rsp+158h+var_148]; void *
lea rax, [rsp+158h+var_138]
cmp rdi, rax
jz short loc_5F2DE
mov rsi, [rsp+158h+var_138]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5F2DE:
add rsp, 128h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov r14, rdx
mov r15, rax
lea rdi, [rsp+158h+var_D8]; this
call _ZN5Catch17RedirectedStreamsD2Ev; Catch::RedirectedStreams::~RedirectedStreams()
jmp short loc_5F30D
jmp short $+2
loc_5F307:
mov r14, rdx
mov r15, rax
loc_5F30D:
mov rdi, r15; void *
cmp r14d, 3
jnz short loc_5F32F
call ___cxa_begin_catch
xorpd xmm0, xmm0
movsd [rsp+158h+var_150], xmm0
call ___cxa_end_catch
jmp loc_5F1DE
loc_5F32F:
call ___cxa_begin_catch
cmp r14d, 2
jnz short loc_5F34E
xorpd xmm0, xmm0
movsd [rsp+158h+var_150], xmm0
call ___cxa_end_catch
jmp loc_5F1DE
loc_5F34E:
cmp byte ptr [rbx+1CAh], 1
jnz short loc_5F3C3
mov word ptr [rsp+158h+var_F8], 0
mov [rsp+158h+var_F6], 0
call _ZN5Catch9SingletonINS_12_GLOBAL__N_111RegistryHubENS_12IRegistryHubENS_19IMutableRegistryHubEE11getInternalEv; Catch::Singleton<Catch::`anonymous namespace'::RegistryHub,Catch::IRegistryHub,Catch::IMutableRegistryHub>::getInternal(void)
mov rcx, [rax]
mov rdi, rax
call qword ptr [rcx+28h]
mov rcx, [rax]
lea rdi, [rsp+158h+var_D8]
mov rsi, rax
call qword ptr [rcx+10h]
lea rsi, [rbx+148h]
mov rax, [rbx]
lea rdx, [rsp+158h+var_D8]
lea rcx, [rsp+158h+var_F8]
mov rdi, rbx
call qword ptr [rax+90h]
lea rax, [rsp+158h+var_C8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5F3C3
mov rsi, [rsp+158h+var_C8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5F3C3:
xorpd xmm0, xmm0
movsd [rsp+158h+var_150], xmm0
call ___cxa_end_catch
jmp loc_5F1DE
mov rbx, rax
lea rax, [rsp+arg_88]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5F404
mov rsi, [rsp+arg_88]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_5F404
jmp short loc_5F43F
jmp short loc_5F43F
mov rbx, rax
loc_5F404:
call ___cxa_end_catch
jmp short loc_5F442
mov rdi, rax
call __clang_call_terminate
jmp short loc_5F43F
mov rbx, rax
lea rax, [rsp+arg_88]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_5F442
mov rsi, [rsp+arg_88]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_5F442
jmp short loc_5F43F
jmp short $+2
loc_5F43F:
mov rbx, rax
loc_5F442:
mov rdi, [rsp+arg_8]; void *
lea rax, [rsp+arg_18]
cmp rdi, rax
jz short loc_5F45E
mov rsi, [rsp+arg_18]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_5F45E:
mov rdi, rbx
call __Unwind_Resume
| void Catch::RunContext::runCurrentTest(Catch::RunContext *this, long long a2, long long a3)
{
long long v5; // rax
const __m128i *v6; // rbp
std::chrono::_V2::system_clock *v7; // rdi
double v8; // xmm0_8
long long v9; // r14
std::chrono::_V2::system_clock *v10; // rdi
__m128i v11; // xmm0
char v12; // bp
Catch::ScopedMessage *v13; // r15
Catch::ScopedMessage *v14; // r12
Catch::ScopedMessage *v15; // r14
double v16; // [rsp+8h] [rbp-150h]
void *v17[2]; // [rsp+10h] [rbp-148h] BYREF
__m128i v18[2]; // [rsp+20h] [rbp-138h] BYREF
__int128 *v19; // [rsp+40h] [rbp-118h] BYREF
void *v20; // [rsp+48h] [rbp-110h]
__m128i v21; // [rsp+50h] [rbp-108h] BYREF
_OWORD v22[2]; // [rsp+60h] [rbp-F8h] BYREF
__m128i v23; // [rsp+80h] [rbp-D8h] BYREF
long long v24; // [rsp+90h] [rbp-C8h] BYREF
__m128i v25; // [rsp+100h] [rbp-58h]
__m128i v26; // [rsp+110h] [rbp-48h]
v5 = **((_QWORD **)this + 4);
v6 = (const __m128i *)(v5 + 104);
v19 = (__int128 *)&v21;
std::string::_M_construct<char *>(&v19, *(_BYTE **)v5, *(_QWORD *)v5 + *(_QWORD *)(v5 + 8));
v17[0] = v18;
if ( v19 == (__int128 *)&v21 )
{
v18[0] = v21;
}
else
{
v17[0] = v19;
v18[0].m128i_i64[0] = v21.m128i_i64[0];
}
v17[1] = v20;
v19 = (__int128 *)&v21;
v20 = 0LL;
v21.m128i_i8[0] = 0;
v18[1] = _mm_loadu_si128(v6);
v7 = (std::chrono::_V2::system_clock *)*((_QWORD *)this + 34);
(*(void ( **)(std::chrono::_V2::system_clock *))(*(_QWORD *)v7 + 56LL))(v7);
v25 = *((__m128i *)this + 13);
v26 = *((__m128i *)this + 14);
*((_BYTE *)this + 458) = 1;
v23 = *v6;
*((_QWORD *)this + 41) = "TEST_CASE";
*((_QWORD *)this + 42) = 9LL;
v8 = *(double *)v23.m128i_i64;
*(__m128i *)((char *)this + 344) = v23;
*((_QWORD *)this + 45) = "";
*((_QWORD *)this + 46) = 0LL;
*((_DWORD *)this + 94) = 1;
if ( *(_BYTE *)(*((_QWORD *)this + 34) + 8LL) == 1 )
{
Catch::RedirectedStreams::RedirectedStreams((long long)&v23, a2, a3);
v9 = std::chrono::_V2::system_clock::now((std::chrono::_V2::system_clock *)&v23);
Catch::RunContext::invokeActiveTestCase(this);
v10 = (std::chrono::_V2::system_clock *)&v23;
Catch::RedirectedStreams::~RedirectedStreams((Catch::RedirectedStreams *)&v23, v8);
}
else
{
v9 = std::chrono::_V2::system_clock::now(v7);
v10 = this;
Catch::RunContext::invokeActiveTestCase(this);
}
v16 = (double)(int)((std::chrono::_V2::system_clock::now(v10) - v9) / 0x3E8uLL) * 0.000001;
v22[0] = _mm_sub_epi64(_mm_loadu_si128((const __m128i *)this + 13), v25);
v11 = _mm_sub_epi64(_mm_loadu_si128((const __m128i *)this + 14), v26);
v22[1] = v11;
v12 = Catch::RunContext::testForMissingAssertions(this, (Catch::Counts *)v22);
(*(void ( **)(_QWORD))(**((_QWORD **)this + 5) + 24LL))(*((_QWORD *)this + 5));
Catch::RunContext::handleUnfinishedSections(this);
std::vector<Catch::MessageInfo>::_M_erase_at_end((char *)this + 280, *((_QWORD *)this + 35));
v13 = (Catch::ScopedMessage *)*((_QWORD *)this + 38);
v14 = (Catch::ScopedMessage *)*((_QWORD *)this + 39);
if ( v14 != v13 )
{
v15 = (Catch::ScopedMessage *)*((_QWORD *)this + 38);
do
{
Catch::ScopedMessage::~ScopedMessage(v15, *(double *)v11.m128i_i64);
v15 = (Catch::ScopedMessage *)((char *)v15 + 80);
}
while ( v15 != v14 );
*((_QWORD *)this + 39) = v13;
}
Catch::SectionStats::SectionStats((long long)&v23, (long long)v17, v22, v12, v16);
(*(void ( **)(_QWORD, __m128i *))(**((_QWORD **)this + 34) + 112LL))(*((_QWORD *)this + 34), &v23);
if ( (long long *)v23.m128i_i64[0] != &v24 )
operator delete((void *)v23.m128i_i64[0], v24 + 1);
if ( v17[0] != v18 )
operator delete(v17[0], v18[0].m128i_i64[0] + 1);
}
| runCurrentTest:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x128
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV RAX,qword ptr [RDI + 0x20]
MOV RAX,qword ptr [RAX]
LEA RBP,[RAX + 0x68]
LEA R13,[RSP + 0x50]
MOV qword ptr [R13 + -0x10],R13
MOV RSI,qword ptr [RAX]
MOV RDX,qword ptr [RAX + 0x8]
ADD RDX,RSI
LEA R12,[RSP + 0x40]
MOV RDI,R12
CALL 0x001251d8
LEA RCX,[RSP + 0x20]
MOV qword ptr [RCX + -0x10],RCX
MOV RAX,qword ptr [R12]
CMP RAX,R13
JZ 0x0015f09e
MOV qword ptr [RSP + 0x10],RAX
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x20],RAX
JMP 0x0015f0a6
LAB_0015f09e:
MOVUPS XMM0,xmmword ptr [R13]
MOVUPS xmmword ptr [RCX],XMM0
LAB_0015f0a6:
MOV RAX,qword ptr [RSP + 0x48]
LEA RSI,[RSP + 0x10]
MOV qword ptr [RSI + 0x8],RAX
MOV qword ptr [RSP + 0x40],R13
MOV qword ptr [RSP + 0x48],0x0
MOV byte ptr [RSP + 0x50],0x0
MOVDQU XMM0,xmmword ptr [RBP]
MOVDQU xmmword ptr [RSI + 0x20],XMM0
MOV RDI,qword ptr [RBX + 0x110]
MOV RAX,qword ptr [RDI]
LAB_0015f0db:
CALL qword ptr [RAX + 0x38]
MOVUPS XMM0,xmmword ptr [RBX + 0xd0]
MOVAPS xmmword ptr [RSP + 0x100],XMM0
MOVUPS XMM0,xmmword ptr [RBX + 0xe0]
MOVAPS xmmword ptr [RSP + 0x110],XMM0
MOV byte ptr [RBX + 0x1ca],0x1
MOVUPS XMM0,xmmword ptr [RBP]
MOVAPS xmmword ptr [RSP + 0x80],XMM0
LEA RAX,[0x1ddd3c]
MOV qword ptr [RBX + 0x148],RAX
MOV qword ptr [RBX + 0x150],0x9
MOVAPD XMM0,xmmword ptr [RSP + 0x80]
MOVUPD xmmword ptr [RBX + 0x158],XMM0
LEA RAX,[0x1de588]
MOV qword ptr [RBX + 0x168],RAX
MOV qword ptr [RBX + 0x170],0x0
MOV dword ptr [RBX + 0x178],0x1
MOV RAX,qword ptr [RBX + 0x110]
CMP byte ptr [RAX + 0x8],0x1
JNZ 0x0015f19b
LAB_0015f169:
LEA RDI,[RSP + 0x80]
MOV RSI,R15
MOV RDX,R14
CALL 0x0015cdb2
CALL 0x00117800
MOV R14,RAX
LAB_0015f184:
MOV RDI,RBX
CALL 0x0016019a
LAB_0015f18c:
LEA RDI,[RSP + 0x80]
CALL 0x0015cdfc
JMP 0x0015f1ab
LAB_0015f19b:
CALL 0x00117800
MOV R14,RAX
LAB_0015f1a3:
MOV RDI,RBX
CALL 0x0016019a
LAB_0015f1ab:
CALL 0x00117800
SUB RAX,R14
SHR RAX,0x3
MOV RCX,0x20c49ba5e353f7cf
MUL RCX
SHR RDX,0x4
XORPS XMM0,XMM0
CVTSI2SD XMM0,RDX
MULSD XMM0,qword ptr [0x001db0d8]
MOVSD qword ptr [RSP + 0x8],XMM0
LAB_0015f1de:
MOVDQU XMM0,xmmword ptr [RBX + 0xd0]
PSUBQ XMM0,xmmword ptr [RSP + 0x100]
LEA RSI,[RSP + 0x60]
MOVDQA xmmword ptr [RSI],XMM0
MOVDQU XMM0,xmmword ptr [RBX + 0xe0]
PSUBQ XMM0,xmmword ptr [RSP + 0x110]
MOVDQA xmmword ptr [RSI + 0x10],XMM0
LAB_0015f20e:
MOV RDI,RBX
CALL 0x0015f9c0
MOV EBP,EAX
MOV RDI,qword ptr [RBX + 0x28]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
MOV RDI,RBX
CALL 0x001600b8
LAB_0015f22a:
LEA RDI,[RBX + 0x118]
MOV RSI,qword ptr [RBX + 0x118]
CALL 0x0018748c
MOV R15,qword ptr [RBX + 0x130]
MOV R12,qword ptr [RBX + 0x138]
CMP R12,R15
JZ 0x0015f26b
MOV R14,R15
LAB_0015f253:
MOV RDI,R14
CALL 0x0014c506
ADD R14,0x50
CMP R14,R12
JNZ 0x0015f253
MOV qword ptr [RBX + 0x138],R15
LAB_0015f26b:
MOVZX ECX,BPL
LEA RDI,[RSP + 0x80]
LEA RSI,[RSP + 0x10]
LEA RDX,[RSP + 0x60]
MOVQ XMM0,qword ptr [RSP + 0x8]
CALL 0x00158e72
MOV RDI,qword ptr [RBX + 0x110]
MOV RAX,qword ptr [RDI]
LAB_0015f296:
LEA RSI,[RSP + 0x80]
CALL qword ptr [RAX + 0x70]
LAB_0015f2a1:
LEA RAX,[RSP + 0x90]
MOV RDI,qword ptr [RAX + -0x10]
CMP RDI,RAX
JZ 0x0015f2c2
MOV RSI,qword ptr [RSP + 0x90]
INC RSI
CALL 0x00117150
LAB_0015f2c2:
MOV RDI,qword ptr [RSP + 0x10]
LEA RAX,[RSP + 0x20]
CMP RDI,RAX
JZ 0x0015f2de
MOV RSI,qword ptr [RSP + 0x20]
INC RSI
CALL 0x00117150
LAB_0015f2de:
ADD RSP,0x128
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* Catch::RunContext::runCurrentTest(std::__cxx11::string&, std::__cxx11::string&) */
void __thiscall Catch::RunContext::runCurrentTest(RunContext *this,string *param_1,string *param_2)
{
long *plVar1;
ScopedMessage *pSVar2;
ScopedMessage *pSVar3;
bool bVar4;
long lVar5;
long lVar6;
ScopedMessage *this_00;
double dVar7;
long *local_148;
int8 local_140;
long local_138;
int8 uStack_130;
long local_128;
long lStack_120;
long *local_118;
int8 local_110;
int1 local_108;
int7 uStack_107;
int8 uStack_100;
long local_f8;
long lStack_f0;
long local_e8;
long lStack_e0;
long *local_d8;
long lStack_d0;
long local_c8 [14];
long local_58;
long lStack_50;
long local_48;
long lStack_40;
plVar1 = (long *)**(long **)(this + 0x20);
local_118 = (long *)&local_108;
std::__cxx11::string::_M_construct<char*>(&local_118,*plVar1,plVar1[1] + *plVar1);
local_148 = &local_138;
if (local_118 == (long *)&local_108) {
uStack_130 = uStack_100;
}
else {
local_148 = local_118;
}
local_138 = CONCAT71(uStack_107,local_108);
local_140 = local_110;
local_110 = 0;
local_108 = 0;
local_128 = plVar1[0xd];
lStack_120 = plVar1[0xe];
/* try { // try from 0015f0db to 0015f0dd has its CatchHandler @ 0015f43d */
local_118 = (long *)&local_108;
(**(code **)(**(long **)(this + 0x110) + 0x38))();
local_58 = *(long *)(this + 0xd0);
lStack_50 = *(long *)(this + 0xd8);
local_48 = *(long *)(this + 0xe0);
lStack_40 = *(long *)(this + 0xe8);
this[0x1ca] = (RunContext)0x1;
local_d8 = (long *)plVar1[0xd];
lStack_d0 = plVar1[0xe];
*(char **)(this + 0x148) = "TEST_CASE";
*(int8 *)(this + 0x150) = 9;
*(long **)(this + 0x158) = local_d8;
*(long *)(this + 0x160) = lStack_d0;
*(char **)(this + 0x168) = "";
*(int8 *)(this + 0x170) = 0;
*(int4 *)(this + 0x178) = 1;
if (*(char *)(*(long *)(this + 0x110) + 8) == '\x01') {
/* try { // try from 0015f169 to 0015f17b has its CatchHandler @ 0015f307 */
RedirectedStreams::RedirectedStreams((RedirectedStreams *)&local_d8,param_1,param_2);
lVar5 = std::chrono::_V2::system_clock::now();
/* try { // try from 0015f184 to 0015f18b has its CatchHandler @ 0015f2f0 */
invokeActiveTestCase(this);
RedirectedStreams::~RedirectedStreams((RedirectedStreams *)&local_d8);
}
else {
lVar5 = std::chrono::_V2::system_clock::now();
/* try { // try from 0015f1a3 to 0015f1aa has its CatchHandler @ 0015f305 */
invokeActiveTestCase(this);
}
lVar6 = std::chrono::_V2::system_clock::now();
dVar7 = (double)((ulong)(lVar6 - lVar5) / 1000) * _DAT_001db0d8;
local_f8 = *(long *)(this + 0xd0) - local_58;
lStack_f0 = *(long *)(this + 0xd8) - lStack_50;
local_e8 = *(long *)(this + 0xe0) - local_48;
lStack_e0 = *(long *)(this + 0xe8) - lStack_40;
/* try { // try from 0015f20e to 0015f229 has its CatchHandler @ 0015f43f */
bVar4 = (bool)testForMissingAssertions(this,(Counts *)&local_f8);
(**(code **)(**(long **)(this + 0x28) + 0x18))();
handleUnfinishedSections(this);
std::vector<Catch::MessageInfo,std::allocator<Catch::MessageInfo>>::_M_erase_at_end
((vector<Catch::MessageInfo,std::allocator<Catch::MessageInfo>> *)(this + 0x118),
*(MessageInfo **)(this + 0x118));
pSVar2 = *(ScopedMessage **)(this + 0x130);
pSVar3 = *(ScopedMessage **)(this + 0x138);
this_00 = pSVar2;
if (pSVar3 != pSVar2) {
do {
ScopedMessage::~ScopedMessage(this_00);
this_00 = this_00 + 0x50;
} while (this_00 != pSVar3);
*(ScopedMessage **)(this + 0x138) = pSVar2;
}
/* try { // try from 0015f26b to 0015f28b has its CatchHandler @ 0015f43b */
SectionStats::SectionStats
((SectionStats *)&local_d8,(SectionInfo *)&local_148,(Counts *)&local_f8,dVar7,bVar4);
/* try { // try from 0015f296 to 0015f2a0 has its CatchHandler @ 0015f415 */
(**(code **)(**(long **)(this + 0x110) + 0x70))(*(long **)(this + 0x110),&local_d8);
if (local_d8 != local_c8) {
operator_delete(local_d8,local_c8[0] + 1);
}
if (local_148 != &local_138) {
operator_delete(local_148,local_138 + 1);
}
return;
}
| |
44,352 | mi_get_key | eloqsql/storage/myisam/mi_search.c | uchar *_mi_get_key(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *page,
uchar *key, uchar *keypos, uint *return_key_length)
{
uint nod_flag;
DBUG_ENTER("_mi_get_key");
nod_flag=mi_test_if_nod(page);
if (! (keyinfo->flag & (HA_VAR_LENGTH_KEY | HA_BINARY_PACK_KEY)))
{
bmove((uchar*) key,(uchar*) keypos,keyinfo->keylength+nod_flag);
DBUG_RETURN(keypos+keyinfo->keylength+nod_flag);
}
else
{
page+=2+nod_flag;
key[0]=0; /* safety */
while (page <= keypos)
{
*return_key_length=(*keyinfo->get_key)(keyinfo,nod_flag,&page,key);
if (*return_key_length == 0)
{
mi_print_error(info->s, HA_ERR_CRASHED);
my_errno=HA_ERR_CRASHED;
DBUG_RETURN(0);
}
}
}
DBUG_PRINT("exit",("page: %p length: %u", page,
*return_key_length));
DBUG_RETURN(page);
} | O0 | c | mi_get_key:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq %r8, -0x30(%rbp)
movq %r9, -0x38(%rbp)
movq -0x20(%rbp), %rax
movzbl (%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0xc18b3
movq -0x10(%rbp), %rax
movq (%rax), %rax
movl 0x17c(%rax), %eax
movl %eax, -0x40(%rbp)
jmp 0xc18ba
xorl %eax, %eax
movl %eax, -0x40(%rbp)
jmp 0xc18ba
movl -0x40(%rbp), %eax
movl %eax, -0x3c(%rbp)
movq -0x18(%rbp), %rax
movzwl 0xa(%rax), %eax
andl $0x28, %eax
cmpl $0x0, %eax
jne 0xc190d
movq -0x28(%rbp), %rdi
movq -0x30(%rbp), %rsi
movq -0x18(%rbp), %rax
movzwl 0x12(%rax), %eax
addl -0x3c(%rbp), %eax
movl %eax, %eax
movl %eax, %edx
callq 0x2a130
movq -0x30(%rbp), %rax
movq -0x18(%rbp), %rcx
movzwl 0x12(%rcx), %ecx
movslq %ecx, %rcx
addq %rcx, %rax
movl -0x3c(%rbp), %ecx
addq %rcx, %rax
movq %rax, -0x8(%rbp)
jmp 0xc199a
movl -0x3c(%rbp), %ecx
addl $0x2, %ecx
movq -0x20(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x28(%rbp), %rax
movb $0x0, (%rax)
movq -0x20(%rbp), %rax
cmpq -0x30(%rbp), %rax
ja 0xc198a
movq -0x18(%rbp), %rax
movq 0x48(%rax), %rax
movq -0x18(%rbp), %rdi
movl -0x3c(%rbp), %esi
movq -0x28(%rbp), %rcx
leaq -0x20(%rbp), %rdx
callq *%rax
movl %eax, %ecx
movq -0x38(%rbp), %rax
movl %ecx, (%rax)
movq -0x38(%rbp), %rax
cmpl $0x0, (%rax)
jne 0xc1988
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x268(%rax), %rsi
movl $0x7e, %edi
callq 0xae540
callq 0xf6090
movl $0x7e, (%rax)
movq $0x0, -0x8(%rbp)
jmp 0xc199a
jmp 0xc1927
jmp 0xc198c
jmp 0xc198e
jmp 0xc1990
jmp 0xc1992
movq -0x20(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| _mi_get_key:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_30], r8
mov [rbp+var_38], r9
mov rax, [rbp+var_20]
movzx eax, byte ptr [rax]
and eax, 80h
cmp eax, 0
jz short loc_C18B3
mov rax, [rbp+var_10]
mov rax, [rax]
mov eax, [rax+17Ch]
mov [rbp+var_40], eax
jmp short loc_C18BA
loc_C18B3:
xor eax, eax
mov [rbp+var_40], eax
jmp short $+2
loc_C18BA:
mov eax, [rbp+var_40]
mov [rbp+var_3C], eax
mov rax, [rbp+var_18]
movzx eax, word ptr [rax+0Ah]
and eax, 28h
cmp eax, 0
jnz short loc_C190D
mov rdi, [rbp+var_28]
mov rsi, [rbp+var_30]
mov rax, [rbp+var_18]
movzx eax, word ptr [rax+12h]
add eax, [rbp+var_3C]
mov eax, eax
mov edx, eax
call _memmove
mov rax, [rbp+var_30]
mov rcx, [rbp+var_18]
movzx ecx, word ptr [rcx+12h]
movsxd rcx, ecx
add rax, rcx
mov ecx, [rbp+var_3C]
add rax, rcx
mov [rbp+var_8], rax
jmp loc_C199A
loc_C190D:
mov ecx, [rbp+var_3C]
add ecx, 2
mov rax, [rbp+var_20]
mov ecx, ecx
add rax, rcx
mov [rbp+var_20], rax
mov rax, [rbp+var_28]
mov byte ptr [rax], 0
loc_C1927:
mov rax, [rbp+var_20]
cmp rax, [rbp+var_30]
ja short loc_C198A
mov rax, [rbp+var_18]
mov rax, [rax+48h]
mov rdi, [rbp+var_18]
mov esi, [rbp+var_3C]
mov rcx, [rbp+var_28]
lea rdx, [rbp+var_20]
call rax
mov ecx, eax
mov rax, [rbp+var_38]
mov [rax], ecx
mov rax, [rbp+var_38]
cmp dword ptr [rax], 0
jnz short loc_C1988
mov rax, [rbp+var_10]
mov rax, [rax]
mov rsi, [rax+268h]
mov edi, 7Eh ; '~'
call mi_report_error
call _my_thread_var
mov dword ptr [rax], 7Eh ; '~'
mov [rbp+var_8], 0
jmp short loc_C199A
loc_C1988:
jmp short loc_C1927
loc_C198A:
jmp short $+2
loc_C198C:
jmp short $+2
loc_C198E:
jmp short $+2
loc_C1990:
jmp short $+2
loc_C1992:
mov rax, [rbp+var_20]
mov [rbp+var_8], rax
loc_C199A:
mov rax, [rbp+var_8]
add rsp, 40h
pop rbp
retn
| _BYTE * mi_get_key(long long a1, long long a2, _BYTE *a3, _BYTE *a4, unsigned long long a5, _DWORD *a6)
{
const char *v6; // rsi
unsigned int v8; // [rsp+0h] [rbp-40h]
_BYTE *v12; // [rsp+20h] [rbp-20h] BYREF
long long v13; // [rsp+28h] [rbp-18h]
long long v14; // [rsp+30h] [rbp-10h]
v14 = a1;
v13 = a2;
v12 = a3;
if ( (*a3 & 0x80) != 0 )
v8 = *(_DWORD *)(*(_QWORD *)v14 + 380LL);
else
v8 = 0;
if ( (*(_WORD *)(v13 + 10) & 0x28) != 0 )
{
v12 += v8 + 2;
*a4 = 0;
while ( (unsigned long long)v12 <= a5 )
{
*a6 = (*(long long ( **)(long long, _QWORD, _BYTE **, _BYTE *))(v13 + 72))(v13, v8, &v12, a4);
if ( !*a6 )
{
v6 = *(const char **)(*(_QWORD *)v14 + 616LL);
mi_report_error(126, (long long)v6);
*(_DWORD *)my_thread_var(126LL, v6) = 126;
return 0LL;
}
}
return v12;
}
else
{
memmove(a4, a5, v8 + *(unsigned __int16 *)(v13 + 18));
return (_BYTE *)(v8 + *(unsigned __int16 *)(v13 + 18) + a5);
}
}
| _mi_get_key:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x30],R8
MOV qword ptr [RBP + -0x38],R9
MOV RAX,qword ptr [RBP + -0x20]
MOVZX EAX,byte ptr [RAX]
AND EAX,0x80
CMP EAX,0x0
JZ 0x001c18b3
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV EAX,dword ptr [RAX + 0x17c]
MOV dword ptr [RBP + -0x40],EAX
JMP 0x001c18ba
LAB_001c18b3:
XOR EAX,EAX
MOV dword ptr [RBP + -0x40],EAX
JMP 0x001c18ba
LAB_001c18ba:
MOV EAX,dword ptr [RBP + -0x40]
MOV dword ptr [RBP + -0x3c],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,word ptr [RAX + 0xa]
AND EAX,0x28
CMP EAX,0x0
JNZ 0x001c190d
MOV RDI,qword ptr [RBP + -0x28]
MOV RSI,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,word ptr [RAX + 0x12]
ADD EAX,dword ptr [RBP + -0x3c]
MOV EAX,EAX
MOV EDX,EAX
CALL 0x0012a130
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,word ptr [RCX + 0x12]
MOVSXD RCX,ECX
ADD RAX,RCX
MOV ECX,dword ptr [RBP + -0x3c]
ADD RAX,RCX
MOV qword ptr [RBP + -0x8],RAX
JMP 0x001c199a
LAB_001c190d:
MOV ECX,dword ptr [RBP + -0x3c]
ADD ECX,0x2
MOV RAX,qword ptr [RBP + -0x20]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x28]
MOV byte ptr [RAX],0x0
LAB_001c1927:
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x30]
JA 0x001c198a
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x48]
MOV RDI,qword ptr [RBP + -0x18]
MOV ESI,dword ptr [RBP + -0x3c]
MOV RCX,qword ptr [RBP + -0x28]
LEA RDX,[RBP + -0x20]
CALL RAX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x38]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x38]
CMP dword ptr [RAX],0x0
JNZ 0x001c1988
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RSI,qword ptr [RAX + 0x268]
MOV EDI,0x7e
CALL 0x001ae540
CALL 0x001f6090
MOV dword ptr [RAX],0x7e
MOV qword ptr [RBP + -0x8],0x0
JMP 0x001c199a
LAB_001c1988:
JMP 0x001c1927
LAB_001c198a:
JMP 0x001c198c
LAB_001c198c:
JMP 0x001c198e
LAB_001c198e:
JMP 0x001c1990
LAB_001c1990:
JMP 0x001c1992
LAB_001c1992:
MOV RAX,qword ptr [RBP + -0x20]
MOV qword ptr [RBP + -0x8],RAX
LAB_001c199a:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x40
POP RBP
RET
|
byte * _mi_get_key(long *param_1,long param_2,byte *param_3,int1 *param_4,byte *param_5,
int *param_6)
{
int iVar1;
int4 *puVar2;
uint local_48;
byte *local_28;
long local_20;
long *local_18;
byte *local_10;
if ((*param_3 & 0x80) == 0) {
local_48 = 0;
}
else {
local_48 = *(uint *)(*param_1 + 0x17c);
}
local_20 = param_2;
local_18 = param_1;
if ((*(ushort *)(param_2 + 10) & 0x28) == 0) {
local_28 = param_3;
memmove(param_4,param_5,(ulong)(*(ushort *)(param_2 + 0x12) + local_48));
local_10 = param_5 + (ulong)local_48 + (long)(int)(uint)*(ushort *)(local_20 + 0x12);
}
else {
local_28 = param_3 + (local_48 + 2);
*param_4 = 0;
do {
if (param_5 < local_28) {
return local_28;
}
iVar1 = (**(code **)(local_20 + 0x48))(local_20,local_48,&local_28,param_4);
*param_6 = iVar1;
} while (*param_6 != 0);
mi_report_error(0x7e,*(int8 *)(*local_18 + 0x268));
puVar2 = (int4 *)_my_thread_var();
*puVar2 = 0x7e;
local_10 = (byte *)0x0;
}
return local_10;
}
| |
44,353 | js_async_module_execution_fulfilled | bluesky950520[P]quickjs/quickjs.c | static JSValue js_async_module_execution_fulfilled(JSContext *ctx, JSValueConst this_val,
int argc, JSValueConst *argv, int magic, JSValue *func_data)
{
JSModuleDef *module = JS_VALUE_GET_PTR(func_data[0]);
ExecModuleList exec_list_s, *exec_list = &exec_list_s;
int i;
if (module->status == JS_MODULE_STATUS_EVALUATED) {
assert(module->eval_has_exception);
return JS_UNDEFINED;
}
assert(module->status == JS_MODULE_STATUS_EVALUATING_ASYNC);
assert(!module->eval_has_exception);
assert(module->async_evaluation);
module->async_evaluation = FALSE;
js_set_module_evaluated(ctx, module);
exec_list->tab = NULL;
exec_list->count = 0;
exec_list->size = 0;
if (gather_available_ancestors(ctx, module, exec_list) < 0) {
js_free(ctx, exec_list->tab);
return JS_EXCEPTION;
}
/* sort by increasing async_evaluation timestamp */
rqsort(exec_list->tab, exec_list->count, sizeof(exec_list->tab[0]),
exec_module_list_cmp, NULL);
for(i = 0; i < exec_list->count; i++) {
JSModuleDef *m = exec_list->tab[i];
if (m->status == JS_MODULE_STATUS_EVALUATED) {
assert(m->eval_has_exception);
} else if (m->has_tla) {
js_execute_async_module(ctx, m);
} else {
JSValue error;
if (js_execute_sync_module(ctx, m, &error) < 0) {
JSValue m_obj = JS_NewModuleValue(ctx, m);
js_async_module_execution_rejected(ctx, JS_UNDEFINED,
1, (JSValueConst *)&error, 0,
&m_obj);
JS_FreeValue(ctx, m_obj);
JS_FreeValue(ctx, error);
} else {
js_set_module_evaluated(ctx, m);
}
}
}
js_free(ctx, exec_list->tab);
return JS_UNDEFINED;
} | O1 | c | js_async_module_execution_fulfilled:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq 0x80(%rsp), %rax
movq (%rax), %r14
movzbl 0x83(%r14), %eax
shll $0x18, %eax
movl $0x3, %r15d
cmpl $0x5000000, %eax # imm = 0x5000000
je 0x44fbd
movq %rdi, %rbx
movl $0x0, 0xac(%r14)
movq %r14, %rsi
callq 0x4514b
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdx
movaps %xmm0, (%rdx)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x451c8
testl %eax, %eax
js 0x44fa7
movq 0x10(%rsp), %r14
movslq 0x18(%rsp), %r12
leaq 0x40b(%rip), %rcx # 0x452e0
movl $0x8, %edx
movq %r14, %rdi
movq %r12, %rsi
xorl %r8d, %r8d
callq 0x1c031
movl $0x3, %r15d
testq %r12, %r12
jle 0x44fb2
xorl %r15d, %r15d
leaq 0x38(%rsp), %r13
movq (%r14,%r15,8), %rbp
movl 0x80(%rbp), %eax
movl %eax, %ecx
andl $0xff000000, %ecx # imm = 0xFF000000
cmpl $0x5000000, %ecx # imm = 0x5000000
je 0x44f87
movq %rbx, %rdi
testb %al, %al
jne 0x44f95
movq %rbp, %rsi
movq %r13, %rdx
callq 0x44ddd
testl %eax, %eax
js 0x44f3c
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x4514b
jmp 0x44f87
incl (%rbp)
movq %rbp, 0x28(%rsp)
movq $-0x3, 0x30(%rsp)
leaq 0x28(%rsp), %rax
movq %rax, (%rsp)
movq %rbx, %rdi
movq %r13, %r8
callq 0x44fd1
movq 0x18(%rbx), %rdi
movq %rbp, %rsi
movq $-0x3, %rdx
callq 0x1d8c6
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq 0x18(%rbx), %rdi
callq 0x1d8c6
incq %r15
cmpq %r15, %r12
jne 0x44eff
jmp 0x44f9f
movq %rbp, %rsi
callq 0x110af
jmp 0x44f87
movl $0x3, %r15d
jmp 0x44fb2
movl $0x6, %r15d
movq 0x10(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1cb99
xorl %eax, %eax
movq %r15, %rdx
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| js_async_module_execution_fulfilled:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov rax, [rsp+78h+arg_0]
mov r14, [rax]
movzx eax, byte ptr [r14+83h]
shl eax, 18h
mov r15d, 3
cmp eax, 5000000h
jz loc_44FBD
mov rbx, rdi
mov dword ptr [r14+0ACh], 0
mov rsi, r14
call js_set_module_evaluated
xorps xmm0, xmm0
lea rdx, [rsp+78h+var_68]
movaps xmmword ptr [rdx], xmm0
mov rdi, rbx
mov rsi, r14
call gather_available_ancestors
test eax, eax
js loc_44FA7
mov r14, [rsp+78h+var_68]
movsxd r12, [rsp+78h+var_60]
lea rcx, exec_module_list_cmp
mov edx, 8
mov rdi, r14
mov rsi, r12
xor r8d, r8d
call rqsort
mov r15d, 3
test r12, r12
jle loc_44FB2
xor r15d, r15d
lea r13, [rsp+78h+var_40]
loc_44EFF:
mov rbp, [r14+r15*8]
mov eax, [rbp+80h]
mov ecx, eax
and ecx, 0FF000000h
cmp ecx, 5000000h
jz short loc_44F87
mov rdi, rbx
test al, al
jnz short loc_44F95
mov rsi, rbp
mov rdx, r13
call js_execute_sync_module
test eax, eax
js short loc_44F3C
mov rdi, rbx
mov rsi, rbp
call js_set_module_evaluated
jmp short loc_44F87
loc_44F3C:
inc dword ptr [rbp+0]
mov [rsp+78h+var_50], rbp
mov [rsp+78h+var_48], 0FFFFFFFFFFFFFFFDh
lea rax, [rsp+78h+var_50]
mov [rsp+78h+var_78], rax
mov rdi, rbx
mov r8, r13
call js_async_module_execution_rejected
mov rdi, [rbx+18h]
mov rsi, rbp
mov rdx, 0FFFFFFFFFFFFFFFDh
call JS_FreeValueRT
mov rsi, [rsp+78h+var_40]
mov rdx, [rsp+78h+var_38]
mov rdi, [rbx+18h]
call JS_FreeValueRT
loc_44F87:
inc r15
cmp r12, r15
jnz loc_44EFF
jmp short loc_44F9F
loc_44F95:
mov rsi, rbp
call js_execute_async_module
jmp short loc_44F87
loc_44F9F:
mov r15d, 3
jmp short loc_44FB2
loc_44FA7:
mov r15d, 6
mov r14, [rsp+78h+var_68]
loc_44FB2:
mov rdi, rbx
mov rsi, r14
call js_free
loc_44FBD:
xor eax, eax
mov rdx, r15
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long js_async_module_execution_fulfilled(
long long a1,
long long a2,
long long a3,
long long a4,
long long a5,
long long a6,
long long *a7)
{
long long v7; // r14
long long v8; // r14
long long v9; // r12
long long i; // r15
_DWORD *v11; // rbp
int v12; // eax
long long v13; // rsi
int v14; // edx
int v15; // ecx
int v16; // r9d
__int128 v18; // [rsp+10h] [rbp-68h] BYREF
_QWORD v19[2]; // [rsp+28h] [rbp-50h] BYREF
_DWORD *v20[8]; // [rsp+38h] [rbp-40h] BYREF
v7 = *a7;
if ( *(unsigned __int8 *)(*a7 + 131) << 24 != 83886080 )
{
*(_DWORD *)(v7 + 172) = 0;
js_set_module_evaluated(a1, v7);
v18 = 0LL;
if ( (int)gather_available_ancestors(a1, v7, &v18) < 0 )
{
v8 = v18;
}
else
{
v8 = v18;
v9 = SDWORD2(v18);
rqsort(
v18,
SDWORD2(v18),
8LL,
(long long ( *)(unsigned long long, unsigned long long, long long))exec_module_list_cmp,
0LL);
if ( v9 > 0 )
{
for ( i = 0LL; i != v9; ++i )
{
v11 = *(_DWORD **)(v8 + 8 * i);
v12 = v11[32];
if ( (v12 & 0xFF000000) != 0x5000000 )
{
if ( (_BYTE)v12 )
{
js_execute_async_module(a1, *(_QWORD *)(v8 + 8 * i));
}
else
{
v13 = *(_QWORD *)(v8 + 8 * i);
if ( (int)js_execute_sync_module(a1, v13, v20) < 0 )
{
++*v11;
v19[0] = v11;
v19[1] = -3LL;
js_async_module_execution_rejected(a1, v13, v14, v15, (int)v20, v16, (long long)v19);
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v11, -3LL);
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v20[0], (long long)v20[1]);
}
else
{
js_set_module_evaluated(a1, v11);
}
}
}
}
}
}
js_free(a1, v8);
}
return 0LL;
}
| js_async_module_execution_fulfilled:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV RAX,qword ptr [RSP + 0x80]
MOV R14,qword ptr [RAX]
MOVZX EAX,byte ptr [R14 + 0x83]
SHL EAX,0x18
MOV R15D,0x3
CMP EAX,0x5000000
JZ 0x00144fbd
MOV RBX,RDI
MOV dword ptr [R14 + 0xac],0x0
MOV RSI,R14
CALL 0x0014514b
XORPS XMM0,XMM0
LEA RDX,[RSP + 0x10]
MOVAPS xmmword ptr [RDX],XMM0
MOV RDI,RBX
MOV RSI,R14
CALL 0x001451c8
TEST EAX,EAX
JS 0x00144fa7
MOV R14,qword ptr [RSP + 0x10]
MOVSXD R12,dword ptr [RSP + 0x18]
LEA RCX,[0x1452e0]
MOV EDX,0x8
MOV RDI,R14
MOV RSI,R12
XOR R8D,R8D
CALL 0x0011c031
MOV R15D,0x3
TEST R12,R12
JLE 0x00144fb2
XOR R15D,R15D
LEA R13,[RSP + 0x38]
LAB_00144eff:
MOV RBP,qword ptr [R14 + R15*0x8]
MOV EAX,dword ptr [RBP + 0x80]
MOV ECX,EAX
AND ECX,0xff000000
CMP ECX,0x5000000
JZ 0x00144f87
MOV RDI,RBX
TEST AL,AL
JNZ 0x00144f95
MOV RSI,RBP
MOV RDX,R13
CALL 0x00144ddd
TEST EAX,EAX
JS 0x00144f3c
MOV RDI,RBX
MOV RSI,RBP
CALL 0x0014514b
JMP 0x00144f87
LAB_00144f3c:
INC dword ptr [RBP]
MOV qword ptr [RSP + 0x28],RBP
MOV qword ptr [RSP + 0x30],-0x3
LEA RAX,[RSP + 0x28]
MOV qword ptr [RSP],RAX
MOV RDI,RBX
MOV R8,R13
CALL 0x00144fd1
MOV RDI,qword ptr [RBX + 0x18]
MOV RSI,RBP
MOV RDX,-0x3
CALL 0x0011d8c6
MOV RSI,qword ptr [RSP + 0x38]
MOV RDX,qword ptr [RSP + 0x40]
MOV RDI,qword ptr [RBX + 0x18]
CALL 0x0011d8c6
LAB_00144f87:
INC R15
CMP R12,R15
JNZ 0x00144eff
JMP 0x00144f9f
LAB_00144f95:
MOV RSI,RBP
CALL 0x001110af
JMP 0x00144f87
LAB_00144f9f:
MOV R15D,0x3
JMP 0x00144fb2
LAB_00144fa7:
MOV R15D,0x6
MOV R14,qword ptr [RSP + 0x10]
LAB_00144fb2:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0011cb99
LAB_00144fbd:
XOR EAX,EAX
MOV RDX,R15
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Removing unreachable block (ram,0x00144ef7) */
/* WARNING: Removing unreachable block (ram,0x00144eff) */
/* WARNING: Removing unreachable block (ram,0x00144f19) */
/* WARNING: Removing unreachable block (ram,0x00144f95) */
/* WARNING: Removing unreachable block (ram,0x00144f20) */
/* WARNING: Removing unreachable block (ram,0x00144f3c) */
/* WARNING: Removing unreachable block (ram,0x00144f2f) */
/* WARNING: Removing unreachable block (ram,0x00144f87) */
/* WARNING: Removing unreachable block (ram,0x00144f93) */
int1 [16] js_async_module_execution_fulfilled(int8 param_1)
{
long lVar1;
int1 auVar2 [16];
int iVar3;
ulong uVar4;
long *in_stack_00000008;
lVar1 = *in_stack_00000008;
uVar4 = 3;
if (*(char *)(lVar1 + 0x83) != '\x05') {
*(int4 *)(lVar1 + 0xac) = 0;
js_set_module_evaluated(param_1,lVar1);
iVar3 = gather_available_ancestors(param_1,lVar1);
if (iVar3 < 0) {
uVar4 = 6;
}
else {
rqsort(0,0,8,exec_module_list_cmp,0);
uVar4 = 3;
}
js_free(param_1,0);
}
auVar2._8_8_ = 0;
auVar2._0_8_ = uVar4;
return auVar2 << 0x40;
}
| |
44,354 | js_async_module_execution_fulfilled | bluesky950520[P]quickjs/quickjs.c | static JSValue js_async_module_execution_fulfilled(JSContext *ctx, JSValueConst this_val,
int argc, JSValueConst *argv, int magic, JSValue *func_data)
{
JSModuleDef *module = JS_VALUE_GET_PTR(func_data[0]);
ExecModuleList exec_list_s, *exec_list = &exec_list_s;
int i;
if (module->status == JS_MODULE_STATUS_EVALUATED) {
assert(module->eval_has_exception);
return JS_UNDEFINED;
}
assert(module->status == JS_MODULE_STATUS_EVALUATING_ASYNC);
assert(!module->eval_has_exception);
assert(module->async_evaluation);
module->async_evaluation = FALSE;
js_set_module_evaluated(ctx, module);
exec_list->tab = NULL;
exec_list->count = 0;
exec_list->size = 0;
if (gather_available_ancestors(ctx, module, exec_list) < 0) {
js_free(ctx, exec_list->tab);
return JS_EXCEPTION;
}
/* sort by increasing async_evaluation timestamp */
rqsort(exec_list->tab, exec_list->count, sizeof(exec_list->tab[0]),
exec_module_list_cmp, NULL);
for(i = 0; i < exec_list->count; i++) {
JSModuleDef *m = exec_list->tab[i];
if (m->status == JS_MODULE_STATUS_EVALUATED) {
assert(m->eval_has_exception);
} else if (m->has_tla) {
js_execute_async_module(ctx, m);
} else {
JSValue error;
if (js_execute_sync_module(ctx, m, &error) < 0) {
JSValue m_obj = JS_NewModuleValue(ctx, m);
js_async_module_execution_rejected(ctx, JS_UNDEFINED,
1, (JSValueConst *)&error, 0,
&m_obj);
JS_FreeValue(ctx, m_obj);
JS_FreeValue(ctx, error);
} else {
js_set_module_evaluated(ctx, m);
}
}
}
js_free(ctx, exec_list->tab);
return JS_UNDEFINED;
} | O2 | c | js_async_module_execution_fulfilled:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq 0x80(%rsp), %rax
movq (%rax), %r14
movzbl 0x83(%r14), %eax
shll $0x18, %eax
cmpl $0x5000000, %eax # imm = 0x5000000
jne 0x3cac3
pushq $0x3
popq %r15
jmp 0x3cbe2
movq %rdi, %rbx
andl $0x0, 0xac(%r14)
movq %r14, %rsi
callq 0x3cd3c
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %r15
movaps %xmm0, (%r15)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x3cd99
movq (%r15), %r14
testl %eax, %eax
js 0x3cbd3
movslq 0x38(%rsp), %r15
leaq 0x394(%rip), %rcx # 0x3ce9b
xorl %r13d, %r13d
pushq $0x8
popq %rdx
movq %r14, %rdi
movq %r15, %rsi
xorl %r8d, %r8d
callq 0x1683c
testl %r15d, %r15d
movl $0x0, %r12d
cmovgl %r15d, %r12d
leaq 0x10(%rsp), %r15
cmpq %r13, %r12
je 0x3cbcf
movq (%r14,%r13,8), %rbp
movl 0x80(%rbp), %eax
movl %eax, %ecx
andl $0xff000000, %ecx # imm = 0xFF000000
cmpl $0x5000000, %ecx # imm = 0x5000000
je 0x3cbc7
movq %rbx, %rdi
testb %al, %al
je 0x3cb61
movq %rbp, %rsi
callq 0x3c873
jmp 0x3cbc2
movq %rbp, %rsi
movq %r15, %rdx
callq 0x3c994
testl %eax, %eax
js 0x3cb7d
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x3cd3c
jmp 0x3cbc2
incl (%rbp)
movq %rbp, 0x20(%rsp)
movq $-0x3, 0x28(%rsp)
leaq 0x20(%rsp), %rax
movq %rax, (%rsp)
movq %rbx, %rdi
movq %r15, %r8
callq 0x3cbf6
movq %rbx, %rdi
movq %rbp, %rsi
pushq $-0x3
popq %rdx
callq 0x1801e
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %rbx, %rdi
callq 0x1801e
leaq 0x10(%rsp), %r15
incq %r13
jmp 0x3cb2d
pushq $0x3
jmp 0x3cbd5
pushq $0x6
popq %r15
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1726e
xorl %eax, %eax
movq %r15, %rdx
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| js_async_module_execution_fulfilled:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov rax, [rsp+78h+arg_0]
mov r14, [rax]
movzx eax, byte ptr [r14+83h]
shl eax, 18h
cmp eax, 5000000h
jnz short loc_3CAC3
push 3
pop r15
jmp loc_3CBE2
loc_3CAC3:
mov rbx, rdi
and dword ptr [r14+0ACh], 0
mov rsi, r14
call js_set_module_evaluated
xorps xmm0, xmm0
lea r15, [rsp+78h+var_48]
movaps xmmword ptr [r15], xmm0
mov rdi, rbx
mov rsi, r14
mov rdx, r15
call gather_available_ancestors
mov r14, [r15]
test eax, eax
js loc_3CBD3
movsxd r15, [rsp+78h+var_40]
lea rcx, exec_module_list_cmp
xor r13d, r13d
push 8
pop rdx
mov rdi, r14
mov rsi, r15
xor r8d, r8d
call rqsort
test r15d, r15d
mov r12d, 0
cmovg r12d, r15d
lea r15, [rsp+78h+var_68]
loc_3CB2D:
cmp r12, r13
jz loc_3CBCF
mov rbp, [r14+r13*8]
mov eax, [rbp+80h]
mov ecx, eax
and ecx, 0FF000000h
cmp ecx, 5000000h
jz short loc_3CBC7
mov rdi, rbx
test al, al
jz short loc_3CB61
mov rsi, rbp
call js_execute_async_module
jmp short loc_3CBC2
loc_3CB61:
mov rsi, rbp
mov rdx, r15
call js_execute_sync_module
test eax, eax
js short loc_3CB7D
mov rdi, rbx
mov rsi, rbp
call js_set_module_evaluated
jmp short loc_3CBC2
loc_3CB7D:
inc dword ptr [rbp+0]
mov [rsp+78h+var_58], rbp
mov [rsp+78h+var_50], 0FFFFFFFFFFFFFFFDh
lea rax, [rsp+78h+var_58]
mov [rsp+78h+var_78], rax
mov rdi, rbx
mov r8, r15
call js_async_module_execution_rejected
mov rdi, rbx
mov rsi, rbp
push 0FFFFFFFFFFFFFFFDh
pop rdx
call JS_FreeValue
mov rsi, [rsp+78h+var_68]
mov rdx, [rsp+78h+var_60]
mov rdi, rbx
call JS_FreeValue
loc_3CBC2:
lea r15, [rsp+78h+var_68]
loc_3CBC7:
inc r13
jmp loc_3CB2D
loc_3CBCF:
push 3
jmp short loc_3CBD5
loc_3CBD3:
push 6
loc_3CBD5:
pop r15
mov rdi, rbx
mov rsi, r14
call js_free
loc_3CBE2:
xor eax, eax
mov rdx, r15
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long js_async_module_execution_fulfilled(
long long a1,
double a2,
__m128 a3,
__m128 a4,
__m128 a5,
double a6,
double a7,
__m128 a8,
__m128 a9,
long long a10,
long long a11,
long long a12,
long long a13,
long long a14,
long long *a15)
{
long long v15; // r14
int v16; // eax
long long v17; // r14
int v18; // r15d
long long v19; // r13
double v20; // xmm4_8
double v21; // xmm5_8
long long v22; // r12
_DWORD *v23; // rbp
int v24; // eax
_QWORD *v25; // rsi
int v26; // edx
int v27; // ecx
int v28; // r9d
long long v30[2]; // [rsp+10h] [rbp-68h] BYREF
_QWORD v31[2]; // [rsp+20h] [rbp-58h] BYREF
__int128 v32; // [rsp+30h] [rbp-48h] BYREF
v15 = *a15;
if ( *(unsigned __int8 *)(*a15 + 131) << 24 != 83886080 )
{
*(_DWORD *)(v15 + 172) = 0;
js_set_module_evaluated(a1, v15);
v32 = 0LL;
v16 = gather_available_ancestors(a1, v15, &v32);
v17 = v32;
if ( v16 >= 0 )
{
v18 = DWORD2(v32);
v19 = 0LL;
rqsort(
v32,
SDWORD2(v32),
8LL,
(long long ( *)(unsigned long long, unsigned long long, long long))exec_module_list_cmp,
0LL);
v22 = 0LL;
if ( v18 > 0 )
v22 = (unsigned int)v18;
while ( v22 != v19 )
{
v23 = *(_DWORD **)(v17 + 8 * v19);
v24 = v23[32];
if ( (v24 & 0xFF000000) != 0x5000000 )
{
if ( (_BYTE)v24 )
{
js_execute_async_module(a1, *(_QWORD *)(v17 + 8 * v19), (__m128)0LL, a3, a4, a5, v20, v21, a8, a9);
}
else
{
v25 = *(_QWORD **)(v17 + 8 * v19);
if ( (int)js_execute_sync_module(a1, v25, (long long)v30, (__m128)0LL, a3, a4, a5, v20, v21, a8, a9) < 0 )
{
++*v23;
v31[0] = v23;
v31[1] = -3LL;
js_async_module_execution_rejected(a1, (int)v25, v26, v27, (int)v30, v28, (long long)v31);
JS_FreeValue(a1, (long long)v23, -3LL);
JS_FreeValue(a1, v30[0], v30[1]);
}
else
{
js_set_module_evaluated(a1, v23);
}
}
}
++v19;
}
}
js_free(a1, v17);
}
return 0LL;
}
| js_async_module_execution_fulfilled:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV RAX,qword ptr [RSP + 0x80]
MOV R14,qword ptr [RAX]
MOVZX EAX,byte ptr [R14 + 0x83]
SHL EAX,0x18
CMP EAX,0x5000000
JNZ 0x0013cac3
PUSH 0x3
POP R15
JMP 0x0013cbe2
LAB_0013cac3:
MOV RBX,RDI
AND dword ptr [R14 + 0xac],0x0
MOV RSI,R14
CALL 0x0013cd3c
XORPS XMM0,XMM0
LEA R15,[RSP + 0x30]
MOVAPS xmmword ptr [R15],XMM0
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
CALL 0x0013cd99
MOV R14,qword ptr [R15]
TEST EAX,EAX
JS 0x0013cbd3
MOVSXD R15,dword ptr [RSP + 0x38]
LEA RCX,[0x13ce9b]
XOR R13D,R13D
PUSH 0x8
POP RDX
MOV RDI,R14
MOV RSI,R15
XOR R8D,R8D
CALL 0x0011683c
TEST R15D,R15D
MOV R12D,0x0
CMOVG R12D,R15D
LEA R15,[RSP + 0x10]
LAB_0013cb2d:
CMP R12,R13
JZ 0x0013cbcf
MOV RBP,qword ptr [R14 + R13*0x8]
MOV EAX,dword ptr [RBP + 0x80]
MOV ECX,EAX
AND ECX,0xff000000
CMP ECX,0x5000000
JZ 0x0013cbc7
MOV RDI,RBX
TEST AL,AL
JZ 0x0013cb61
MOV RSI,RBP
CALL 0x0013c873
JMP 0x0013cbc2
LAB_0013cb61:
MOV RSI,RBP
MOV RDX,R15
CALL 0x0013c994
TEST EAX,EAX
JS 0x0013cb7d
MOV RDI,RBX
MOV RSI,RBP
CALL 0x0013cd3c
JMP 0x0013cbc2
LAB_0013cb7d:
INC dword ptr [RBP]
MOV qword ptr [RSP + 0x20],RBP
MOV qword ptr [RSP + 0x28],-0x3
LEA RAX,[RSP + 0x20]
MOV qword ptr [RSP],RAX
MOV RDI,RBX
MOV R8,R15
CALL 0x0013cbf6
MOV RDI,RBX
MOV RSI,RBP
PUSH -0x3
POP RDX
CALL 0x0011801e
MOV RSI,qword ptr [RSP + 0x10]
MOV RDX,qword ptr [RSP + 0x18]
MOV RDI,RBX
CALL 0x0011801e
LAB_0013cbc2:
LEA R15,[RSP + 0x10]
LAB_0013cbc7:
INC R13
JMP 0x0013cb2d
LAB_0013cbcf:
PUSH 0x3
JMP 0x0013cbd5
LAB_0013cbd3:
PUSH 0x6
LAB_0013cbd5:
POP R15
MOV RDI,RBX
MOV RSI,R14
CALL 0x0011726e
LAB_0013cbe2:
XOR EAX,EAX
MOV RDX,R15
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int1 [16] js_async_module_execution_fulfilled(int8 param_1)
{
long lVar1;
int *piVar2;
int1 auVar3 [16];
ulong uVar4;
int iVar5;
ulong uVar6;
ulong uVar7;
long *in_stack_00000008;
ulong uStack_80;
int8 local_68;
int8 local_60;
int *local_58;
int8 local_50;
long local_48;
ulong uStack_40;
lVar1 = *in_stack_00000008;
if (*(char *)(lVar1 + 0x83) == '\x05') {
uStack_80 = 3;
}
else {
*(int4 *)(lVar1 + 0xac) = 0;
js_set_module_evaluated(param_1,lVar1);
local_48 = 0;
uStack_40 = 0;
iVar5 = gather_available_ancestors(param_1,lVar1,&local_48);
uVar4 = uStack_40;
lVar1 = local_48;
if (iVar5 < 0) {
uStack_80 = 6;
}
else {
iVar5 = (int)uStack_40;
uVar7 = 0;
rqsort(local_48,(long)(int)uStack_40,8,exec_module_list_cmp,0);
uVar6 = 0;
if (0 < iVar5) {
uVar6 = uVar4 & 0xffffffff;
}
for (; uVar6 != uVar7; uVar7 = uVar7 + 1) {
piVar2 = *(int **)(lVar1 + uVar7 * 8);
if ((piVar2[0x20] & 0xff000000U) != 0x5000000) {
if ((char)piVar2[0x20] == '\0') {
iVar5 = js_execute_sync_module(param_1,piVar2,&local_68);
if (iVar5 < 0) {
*piVar2 = *piVar2 + 1;
local_50 = 0xfffffffffffffffd;
local_58 = piVar2;
js_async_module_execution_rejected(param_1);
JS_FreeValue(param_1,piVar2,0xfffffffffffffffd);
JS_FreeValue(param_1,local_68,local_60);
}
else {
js_set_module_evaluated(param_1,piVar2);
}
}
else {
js_execute_async_module(param_1,piVar2);
}
}
}
uStack_80 = 3;
}
js_free(param_1,lVar1);
}
auVar3._8_8_ = 0;
auVar3._0_8_ = uStack_80;
return auVar3 << 0x40;
}
| |
44,355 | ma_kpointer | eloqsql/storage/maria/ma_search.c | void _ma_kpointer(register MARIA_HA *info, register uchar *buff, my_off_t pos)
{
pos/=maria_block_size;
switch (info->s->base.key_reflength) {
#if SIZEOF_OFF_T > 4
case 7: mi_int7store(buff,pos); break;
case 6: mi_int6store(buff,pos); break;
case 5: mi_int5store(buff,pos); break;
#else
case 7: *buff++=0;
/* fall through */
case 6: *buff++=0;
/* fall through */
case 5: *buff++=0;
/* fall through */
#endif
case 4: mi_int4store(buff,pos); break;
case 3: mi_int3store(buff,pos); break;
case 2: mi_int2store(buff,(uint) pos); break;
case 1: buff[0]= (uchar) pos; break;
default: abort(); /* impossible */
}
} | O3 | c | ma_kpointer:
movq %rdx, %rax
leaq 0x32d4cd(%rip), %rcx # 0x384060
xorl %edx, %edx
divq (%rcx)
movq (%rdi), %rcx
movl 0x3e4(%rcx), %ecx
decl %ecx
cmpl $0x6, %ecx
ja 0x56c37
leaq 0x8a661(%rip), %rdx # 0xe1214
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movb %al, 0x1(%rsi)
shrq $0x8, %rax
jmp 0x56c34
movq %rax, %rcx
shrq $0x20, %rcx
bswapl %eax
movl %eax, 0x1(%rsi)
movq %rcx, %rax
jmp 0x56c34
movl %eax, %ecx
rolw $0x8, %cx
movw %cx, 0x1(%rsi)
shrq $0x10, %rax
jmp 0x56c34
movl %eax, %ecx
rolw $0x8, %cx
movw %cx, 0x2(%rsi)
movl %eax, %ecx
shrl $0x10, %ecx
movb %cl, 0x1(%rsi)
shrq $0x18, %rax
jmp 0x56c34
movq %rax, %rcx
shrq $0x20, %rcx
movl %eax, %edx
bswapl %edx
movl %edx, 0x2(%rsi)
movb %cl, 0x1(%rsi)
shrq $0x28, %rax
jmp 0x56c34
movq %rax, %rcx
shrq $0x20, %rcx
movl %eax, %edx
bswapl %edx
movl %edx, 0x3(%rsi)
movb %cl, 0x2(%rsi)
movq %rax, %rcx
shrq $0x28, %rcx
movb %cl, 0x1(%rsi)
shrq $0x30, %rax
movb %al, (%rsi)
retq
pushq %rbp
movq %rsp, %rbp
callq 0x29610
| _ma_kpointer:
mov rax, rdx
lea rcx, maria_block_size
xor edx, edx
div qword ptr [rcx]
mov rcx, [rdi]
mov ecx, [rcx+3E4h]
dec ecx; switch 7 cases
cmp ecx, 6
ja def_56BBA; jumptable 0000000000056BBA default case
lea rdx, jpt_56BBA
movsxd rcx, ds:(jpt_56BBA - 0E1214h)[rdx+rcx*4]
add rcx, rdx
jmp rcx; switch jump
loc_56BBC:
mov [rsi+1], al; jumptable 0000000000056BBA case 2
shr rax, 8
jmp short loc_56C34; jumptable 0000000000056BBA case 1
loc_56BC5:
mov rcx, rax; jumptable 0000000000056BBA case 5
shr rcx, 20h
bswap eax
mov [rsi+1], eax
mov rax, rcx
jmp short loc_56C34; jumptable 0000000000056BBA case 1
loc_56BD6:
mov ecx, eax; jumptable 0000000000056BBA case 3
rol cx, 8
mov [rsi+1], cx
shr rax, 10h
jmp short loc_56C34; jumptable 0000000000056BBA case 1
loc_56BE6:
mov ecx, eax; jumptable 0000000000056BBA case 4
rol cx, 8
mov [rsi+2], cx
mov ecx, eax
shr ecx, 10h
mov [rsi+1], cl
shr rax, 18h
jmp short loc_56C34; jumptable 0000000000056BBA case 1
loc_56BFE:
mov rcx, rax; jumptable 0000000000056BBA case 6
shr rcx, 20h
mov edx, eax
bswap edx
mov [rsi+2], edx
mov [rsi+1], cl
shr rax, 28h
jmp short loc_56C34; jumptable 0000000000056BBA case 1
loc_56C15:
mov rcx, rax; jumptable 0000000000056BBA case 7
shr rcx, 20h
mov edx, eax
bswap edx
mov [rsi+3], edx
mov [rsi+2], cl
mov rcx, rax
shr rcx, 28h
mov [rsi+1], cl
shr rax, 30h
loc_56C34:
mov [rsi], al; jumptable 0000000000056BBA case 1
retn
def_56BBA:
push rbp; jumptable 0000000000056BBA default case
mov rbp, rsp
call _abort
| unsigned long long ma_kpointer(long long a1, long long a2, unsigned long long a3)
{
unsigned long long result; // rax
unsigned long long v4; // rdx
result = a3 / *(_QWORD *)&maria_block_size;
v4 = a3 % *(_QWORD *)&maria_block_size;
switch ( *(_DWORD *)(*(_QWORD *)a1 + 996LL) )
{
case 1:
break;
case 2:
*(_BYTE *)(a2 + 1) = result;
result >>= 8;
break;
case 3:
*(_WORD *)(a2 + 1) = __ROL2__(result, 8);
result >>= 16;
break;
case 4:
*(_WORD *)(a2 + 2) = __ROL2__(result, 8);
*(_BYTE *)(a2 + 1) = BYTE2(result);
result >>= 24;
break;
case 5:
*(_DWORD *)(a2 + 1) = _byteswap_ulong(result);
result >>= 32;
break;
case 6:
*(_DWORD *)(a2 + 2) = _byteswap_ulong(result);
*(_BYTE *)(a2 + 1) = BYTE4(result);
result >>= 40;
break;
case 7:
*(_DWORD *)(a2 + 3) = _byteswap_ulong(result);
*(_BYTE *)(a2 + 2) = BYTE4(result);
*(_BYTE *)(a2 + 1) = BYTE5(result);
result >>= 48;
break;
default:
abort(a1, a2, v4);
}
*(_BYTE *)a2 = result;
return result;
}
| _ma_kpointer:
MOV RAX,RDX
LEA RCX,[0x484060]
XOR EDX,EDX
DIV qword ptr [RCX]
MOV RCX,qword ptr [RDI]
MOV ECX,dword ptr [RCX + 0x3e4]
DEC ECX
CMP ECX,0x6
JA 0x00156c37
LEA RDX,[0x1e1214]
MOVSXD RCX,dword ptr [RDX + RCX*0x4]
ADD RCX,RDX
switchD:
JMP RCX
caseD_2:
MOV byte ptr [RSI + 0x1],AL
SHR RAX,0x8
JMP 0x00156c34
caseD_5:
MOV RCX,RAX
SHR RCX,0x20
BSWAP EAX
MOV dword ptr [RSI + 0x1],EAX
MOV RAX,RCX
JMP 0x00156c34
caseD_3:
MOV ECX,EAX
ROL CX,0x8
MOV word ptr [RSI + 0x1],CX
SHR RAX,0x10
JMP 0x00156c34
caseD_4:
MOV ECX,EAX
ROL CX,0x8
MOV word ptr [RSI + 0x2],CX
MOV ECX,EAX
SHR ECX,0x10
MOV byte ptr [RSI + 0x1],CL
SHR RAX,0x18
JMP 0x00156c34
caseD_6:
MOV RCX,RAX
SHR RCX,0x20
MOV EDX,EAX
BSWAP EDX
MOV dword ptr [RSI + 0x2],EDX
MOV byte ptr [RSI + 0x1],CL
SHR RAX,0x28
JMP 0x00156c34
caseD_7:
MOV RCX,RAX
SHR RCX,0x20
MOV EDX,EAX
BSWAP EDX
MOV dword ptr [RSI + 0x3],EDX
MOV byte ptr [RSI + 0x2],CL
MOV RCX,RAX
SHR RCX,0x28
MOV byte ptr [RSI + 0x1],CL
SHR RAX,0x30
caseD_1:
MOV byte ptr [RSI],AL
RET
default:
PUSH RBP
MOV RBP,RSP
CALL 0x00129610
|
void _ma_kpointer(long *param_1,int1 *param_2,ulong param_3)
{
int1 auVar1 [16];
int1 auVar2 [16];
ushort uVar3;
uint uVar4;
ulong uVar5;
auVar1._8_8_ = 0;
auVar1._0_8_ = maria_block_size;
auVar2._8_8_ = 0;
auVar2._0_8_ = param_3;
auVar2 = auVar2 / auVar1;
uVar5 = auVar2._0_8_;
uVar4 = auVar2._0_4_;
uVar3 = auVar2._0_2_;
switch(*(int4 *)(*param_1 + 0x3e4)) {
case 1:
break;
case 2:
param_2[1] = auVar2[0];
uVar5 = uVar5 >> 8;
break;
case 3:
*(ushort *)(param_2 + 1) = uVar3 << 8 | uVar3 >> 8;
uVar5 = uVar5 >> 0x10;
break;
case 4:
*(ushort *)(param_2 + 2) = uVar3 << 8 | uVar3 >> 8;
param_2[1] = auVar2[2];
uVar5 = uVar5 >> 0x18;
break;
case 5:
uVar5 = uVar5 >> 0x20;
*(uint *)(param_2 + 1) =
uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;
break;
case 6:
*(uint *)(param_2 + 2) =
uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;
param_2[1] = auVar2[4];
uVar5 = uVar5 >> 0x28;
break;
case 7:
*(uint *)(param_2 + 3) =
uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;
param_2[2] = auVar2[4];
param_2[1] = auVar2[5];
uVar5 = uVar5 >> 0x30;
break;
default:
/* WARNING: Subroutine does not return */
abort();
}
*param_2 = (char)uVar5;
return;
}
| |
44,356 | uf_space_prespace_selected | eloqsql/storage/myisam/mi_packrec.c | static void uf_space_prespace_selected(MI_COLUMNDEF *rec, MI_BIT_BUFF *bit_buff,
uchar *to, uchar *end)
{
uint spaces;
if (get_bit(bit_buff))
bfill((uchar*) to,(end-to),' ');
else
{
if (get_bit(bit_buff))
{
if ((spaces=get_bits(bit_buff,rec->space_length_bits))+to > end)
{
bit_buff->error=1;
return;
}
bfill((uchar*) to,spaces,' ');
if (to+spaces != end)
decode_bytes(rec,bit_buff,to+spaces,end);
}
else
decode_bytes(rec,bit_buff,to,end);
}
} | O0 | c | uf_space_prespace_selected:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0xc2437
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x10(%rbp), %rdx
movl 0x4(%rdx), %ecx
addl $-0x1, %ecx
movl %ecx, 0x4(%rdx)
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
jne 0xc245b
jmp 0xc2479
movq -0x10(%rbp), %rdi
callq 0xc12f0
movq -0x10(%rbp), %rax
movl $0x1f, 0x4(%rax)
movq -0x10(%rbp), %rax
movl (%rax), %eax
andl $0x80000000, %eax # imm = 0x80000000
cmpl $0x0, %eax
je 0xc2479
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rdx
movq -0x18(%rbp), %rax
subq %rax, %rdx
movl $0x20, %esi
callq 0x2a2a0
jmp 0xc25a2
movq -0x10(%rbp), %rax
cmpl $0x0, 0x4(%rax)
je 0xc24ab
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x10(%rbp), %rdx
movl 0x4(%rdx), %ecx
addl $-0x1, %ecx
movl %ecx, 0x4(%rdx)
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
jne 0xc24d3
jmp 0xc258b
movq -0x10(%rbp), %rdi
callq 0xc12f0
movq -0x10(%rbp), %rax
movl $0x1f, 0x4(%rax)
movq -0x10(%rbp), %rax
movl (%rax), %eax
andl $0x80000000, %eax # imm = 0x80000000
cmpl $0x0, %eax
je 0xc258b
movq -0x10(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x1c(%rcx), %eax
jb 0xc2516
movq -0x10(%rbp), %rax
movl (%rax), %eax
movq -0x8(%rbp), %rcx
movl 0x1c(%rcx), %esi
movq -0x10(%rbp), %rdx
movl 0x4(%rdx), %ecx
subl %esi, %ecx
movl %ecx, 0x4(%rdx)
shrl %cl, %eax
movq -0x8(%rbp), %rcx
movl 0x1c(%rcx), %ecx
movl %ecx, %edx
leaq 0x20af42(%rip), %rcx # 0x2cd450
andl (%rcx,%rdx,4), %eax
movl %eax, -0x28(%rbp)
jmp 0xc2529
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl 0x1c(%rax), %esi
callq 0xbfaa0
movl %eax, -0x28(%rbp)
movl -0x28(%rbp), %ecx
movl %ecx, -0x24(%rbp)
movq -0x18(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
cmpq -0x20(%rbp), %rax
jbe 0xc254b
movq -0x10(%rbp), %rax
movl $0x1, 0x28(%rax)
jmp 0xc25a2
movq -0x18(%rbp), %rdi
movl -0x24(%rbp), %eax
movl %eax, %edx
movl $0x20, %esi
callq 0x2a2a0
movq -0x18(%rbp), %rax
movl -0x24(%rbp), %ecx
addq %rcx, %rax
cmpq -0x20(%rbp), %rax
je 0xc2589
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movl -0x24(%rbp), %eax
addq %rax, %rdx
movq -0x20(%rbp), %rcx
callq 0xc1a00
jmp 0xc25a0
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
callq 0xc1a00
jmp 0xc25a2
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| uf_space_prespace_selected_0:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov rax, [rbp+var_10]
cmp dword ptr [rax+4], 0
jz short loc_C2437
mov rax, [rbp+var_10]
mov eax, [rax]
mov rdx, [rbp+var_10]
mov ecx, [rdx+4]
add ecx, 0FFFFFFFFh
mov [rdx+4], ecx
mov edx, 1
shl edx, cl
mov ecx, edx
and eax, ecx
cmp eax, 0
jnz short loc_C245B
jmp short loc_C2479
loc_C2437:
mov rdi, [rbp+var_10]
call fill_buffer_0
mov rax, [rbp+var_10]
mov dword ptr [rax+4], 1Fh
mov rax, [rbp+var_10]
mov eax, [rax]
and eax, 80000000h
cmp eax, 0
jz short loc_C2479
loc_C245B:
mov rdi, [rbp+var_18]
mov rdx, [rbp+var_20]
mov rax, [rbp+var_18]
sub rdx, rax
mov esi, 20h ; ' '
call _memset
jmp loc_C25A2
loc_C2479:
mov rax, [rbp+var_10]
cmp dword ptr [rax+4], 0
jz short loc_C24AB
mov rax, [rbp+var_10]
mov eax, [rax]
mov rdx, [rbp+var_10]
mov ecx, [rdx+4]
add ecx, 0FFFFFFFFh
mov [rdx+4], ecx
mov edx, 1
shl edx, cl
mov ecx, edx
and eax, ecx
cmp eax, 0
jnz short loc_C24D3
jmp loc_C258B
loc_C24AB:
mov rdi, [rbp+var_10]
call fill_buffer_0
mov rax, [rbp+var_10]
mov dword ptr [rax+4], 1Fh
mov rax, [rbp+var_10]
mov eax, [rax]
and eax, 80000000h
cmp eax, 0
jz loc_C258B
loc_C24D3:
mov rax, [rbp+var_10]
mov eax, [rax+4]
mov rcx, [rbp+var_8]
cmp eax, [rcx+1Ch]
jb short loc_C2516
mov rax, [rbp+var_10]
mov eax, [rax]
mov rcx, [rbp+var_8]
mov esi, [rcx+1Ch]
mov rdx, [rbp+var_10]
mov ecx, [rdx+4]
sub ecx, esi
mov [rdx+4], ecx
shr eax, cl
mov rcx, [rbp+var_8]
mov ecx, [rcx+1Ch]
mov edx, ecx
lea rcx, mask_0
and eax, [rcx+rdx*4]
mov [rbp+var_28], eax
jmp short loc_C2529
loc_C2516:
mov rdi, [rbp+var_10]
mov rax, [rbp+var_8]
mov esi, [rax+1Ch]
call fill_and_get_bits_0
mov [rbp+var_28], eax
loc_C2529:
mov ecx, [rbp+var_28]
mov [rbp+var_24], ecx
mov rax, [rbp+var_18]
mov ecx, ecx
add rax, rcx
cmp rax, [rbp+var_20]
jbe short loc_C254B
mov rax, [rbp+var_10]
mov dword ptr [rax+28h], 1
jmp short loc_C25A2
loc_C254B:
mov rdi, [rbp+var_18]
mov eax, [rbp+var_24]
mov edx, eax
mov esi, 20h ; ' '
call _memset
mov rax, [rbp+var_18]
mov ecx, [rbp+var_24]
add rax, rcx
cmp rax, [rbp+var_20]
jz short loc_C2589
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov eax, [rbp+var_24]
add rdx, rax
mov rcx, [rbp+var_20]
call decode_bytes_0
loc_C2589:
jmp short loc_C25A0
loc_C258B:
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_20]
call decode_bytes_0
loc_C25A0:
jmp short $+2
loc_C25A2:
add rsp, 30h
pop rbp
retn
| long long uf_space_prespace_selected_0(long long a1, int *a2, _BYTE *a3, _BYTE *a4)
{
int v4; // eax
int v5; // ecx
long long result; // rax
int v7; // eax
int v8; // ecx
unsigned int v9; // eax
int v10; // ecx
unsigned int bits_0; // [rsp+8h] [rbp-28h]
if ( !a2[1] )
{
fill_buffer_0((long long)a2);
a2[1] = 31;
if ( *a2 >= 0 )
goto LABEL_6;
return memset(a3, 32LL, a4 - a3);
}
v4 = *a2;
v5 = a2[1] - 1;
a2[1] = v5;
if ( ((1 << v5) & v4) != 0 )
return memset(a3, 32LL, a4 - a3);
LABEL_6:
if ( a2[1] )
{
v7 = *a2;
v8 = a2[1] - 1;
a2[1] = v8;
if ( ((1 << v8) & v7) == 0 )
return decode_bytes_0(a1, (long long)a2, a3, a4);
}
else
{
fill_buffer_0((long long)a2);
a2[1] = 31;
if ( *a2 >= 0 )
return decode_bytes_0(a1, (long long)a2, a3, a4);
}
if ( (unsigned int)a2[1] < *(_DWORD *)(a1 + 28) )
{
bits_0 = fill_and_get_bits_0(a2, *(_DWORD *)(a1 + 28));
}
else
{
v9 = *a2;
v10 = a2[1] - *(_DWORD *)(a1 + 28);
a2[1] = v10;
bits_0 = mask_0[*(unsigned int *)(a1 + 28)] & (v9 >> v10);
}
if ( &a3[bits_0] <= a4 )
{
memset(a3, 32LL, bits_0);
result = (long long)&a3[bits_0];
if ( (_BYTE *)result != a4 )
return decode_bytes_0(a1, (long long)a2, &a3[bits_0], a4);
}
else
{
result = (long long)a2;
a2[10] = 1;
}
return result;
}
| uf_space_prespace_selected:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x4],0x0
JZ 0x001c2437
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RDX + 0x4]
ADD ECX,-0x1
MOV dword ptr [RDX + 0x4],ECX
MOV EDX,0x1
SHL EDX,CL
MOV ECX,EDX
AND EAX,ECX
CMP EAX,0x0
JNZ 0x001c245b
JMP 0x001c2479
LAB_001c2437:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001c12f0
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x4],0x1f
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
AND EAX,0x80000000
CMP EAX,0x0
JZ 0x001c2479
LAB_001c245b:
MOV RDI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x18]
SUB RDX,RAX
MOV ESI,0x20
CALL 0x0012a2a0
JMP 0x001c25a2
LAB_001c2479:
MOV RAX,qword ptr [RBP + -0x10]
CMP dword ptr [RAX + 0x4],0x0
JZ 0x001c24ab
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RDX + 0x4]
ADD ECX,-0x1
MOV dword ptr [RDX + 0x4],ECX
MOV EDX,0x1
SHL EDX,CL
MOV ECX,EDX
AND EAX,ECX
CMP EAX,0x0
JNZ 0x001c24d3
JMP 0x001c258b
LAB_001c24ab:
MOV RDI,qword ptr [RBP + -0x10]
CALL 0x001c12f0
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x4],0x1f
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
AND EAX,0x80000000
CMP EAX,0x0
JZ 0x001c258b
LAB_001c24d3:
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX + 0x4]
MOV RCX,qword ptr [RBP + -0x8]
CMP EAX,dword ptr [RCX + 0x1c]
JC 0x001c2516
MOV RAX,qword ptr [RBP + -0x10]
MOV EAX,dword ptr [RAX]
MOV RCX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RCX + 0x1c]
MOV RDX,qword ptr [RBP + -0x10]
MOV ECX,dword ptr [RDX + 0x4]
SUB ECX,ESI
MOV dword ptr [RDX + 0x4],ECX
SHR EAX,CL
MOV RCX,qword ptr [RBP + -0x8]
MOV ECX,dword ptr [RCX + 0x1c]
MOV EDX,ECX
LEA RCX,[0x3cd450]
AND EAX,dword ptr [RCX + RDX*0x4]
MOV dword ptr [RBP + -0x28],EAX
JMP 0x001c2529
LAB_001c2516:
MOV RDI,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RAX + 0x1c]
CALL 0x001bfaa0
MOV dword ptr [RBP + -0x28],EAX
LAB_001c2529:
MOV ECX,dword ptr [RBP + -0x28]
MOV dword ptr [RBP + -0x24],ECX
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,ECX
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x20]
JBE 0x001c254b
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x28],0x1
JMP 0x001c25a2
LAB_001c254b:
MOV RDI,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x24]
MOV EDX,EAX
MOV ESI,0x20
CALL 0x0012a2a0
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,dword ptr [RBP + -0x24]
ADD RAX,RCX
CMP RAX,qword ptr [RBP + -0x20]
JZ 0x001c2589
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RBP + -0x24]
ADD RDX,RAX
MOV RCX,qword ptr [RBP + -0x20]
CALL 0x001c1a00
LAB_001c2589:
JMP 0x001c25a0
LAB_001c258b:
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x20]
CALL 0x001c1a00
LAB_001c25a0:
JMP 0x001c25a2
LAB_001c25a2:
ADD RSP,0x30
POP RBP
RET
|
void uf_space_prespace_selected(long param_1,uint *param_2,void *param_3,ulong param_4)
{
uint uVar1;
uint local_30;
if (param_2[1] == 0) {
fill_buffer(param_2);
param_2[1] = 0x1f;
uVar1 = *param_2 & 0x80000000;
}
else {
uVar1 = param_2[1];
param_2[1] = uVar1 - 1;
uVar1 = *param_2 & 1 << ((byte)(uVar1 - 1) & 0x1f);
}
if (uVar1 == 0) {
if (param_2[1] == 0) {
fill_buffer(param_2);
param_2[1] = 0x1f;
uVar1 = *param_2 & 0x80000000;
}
else {
uVar1 = param_2[1];
param_2[1] = uVar1 - 1;
uVar1 = *param_2 & 1 << ((byte)(uVar1 - 1) & 0x1f);
}
if (uVar1 == 0) {
decode_bytes(param_1,param_2,param_3,param_4);
}
else {
if (param_2[1] < *(uint *)(param_1 + 0x1c)) {
local_30 = fill_and_get_bits(param_2,*(int4 *)(param_1 + 0x1c));
}
else {
uVar1 = param_2[1] - *(int *)(param_1 + 0x1c);
param_2[1] = uVar1;
local_30 = *param_2 >> ((byte)uVar1 & 0x1f) &
*(uint *)(mask + (ulong)*(uint *)(param_1 + 0x1c) * 4);
}
if (param_4 < (long)param_3 + (ulong)local_30) {
param_2[10] = 1;
}
else {
memset(param_3,0x20,(ulong)local_30);
if ((long)param_3 + (ulong)local_30 != param_4) {
decode_bytes(param_1,param_2,(long)param_3 + (ulong)local_30,param_4);
}
}
}
}
else {
memset(param_3,0x20,param_4 - (long)param_3);
}
return;
}
| |
44,357 | uf_space_prespace_selected | eloqsql/storage/myisam/mi_packrec.c | static void uf_space_prespace_selected(MI_COLUMNDEF *rec, MI_BIT_BUFF *bit_buff,
uchar *to, uchar *end)
{
uint spaces;
if (get_bit(bit_buff))
bfill((uchar*) to,(end-to),' ');
else
{
if (get_bit(bit_buff))
{
if ((spaces=get_bits(bit_buff,rec->space_length_bits))+to > end)
{
bit_buff->error=1;
return;
}
bfill((uchar*) to,spaces,' ');
if (to+spaces != end)
decode_bytes(rec,bit_buff,to+spaces,end);
}
else
decode_bytes(rec,bit_buff,to,end);
}
} | O3 | c | uf_space_prespace_selected:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %r13
movl 0x4(%rsi), %eax
testl %eax, %eax
je 0x885c9
movl (%r14), %r15d
decl %eax
movl %eax, 0x4(%r14)
btl %eax, %r15d
jb 0x8863e
testl %eax, %eax
jne 0x885e6
movq %r14, %rdi
callq 0x875a9
movl $0x1f, 0x4(%r14)
movl (%r14), %r15d
testl %r15d, %r15d
jns 0x8865f
movl $0x1f, %eax
jmp 0x885f2
movq %r14, %rdi
callq 0x875a9
movl $0x1f, 0x4(%r14)
movl (%r14), %r15d
movl $0x1f, %eax
testl %r15d, %r15d
js 0x8863e
decl %eax
movl %eax, 0x4(%r14)
btl %eax, %r15d
jae 0x8865f
movq %r13, %rdx
movl 0x1c(%r13), %r13d
movl %eax, %ecx
subl %r13d, %ecx
movq %rdx, -0x30(%rbp)
jae 0x8866a
subl %eax, %r13d
movl %eax, %eax
leaq 0x626f0(%rip), %rcx # 0xead00
andl (%rcx,%rax,4), %r15d
movl %r13d, %ecx
shll %cl, %r15d
movq %r14, %rdi
callq 0x875a9
movl $0x20, %eax
subl %r13d, %eax
movl %eax, 0x4(%r14)
movl (%r14), %eax
negl %r13d
movl %r13d, %ecx
shrl %cl, %eax
addl %eax, %r15d
jmp 0x8867f
subq %r12, %rbx
movq %r12, %rdi
movl $0x20, %esi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2a290
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
jmp 0x886b1
movl %ecx, 0x4(%r14)
shrl %cl, %r15d
movl 0x1c(%rdx), %eax
leaq 0x62685(%rip), %rcx # 0xead00
andl (%rcx,%rax,4), %r15d
movl %r15d, %edx
leaq (%r12,%rdx), %r13
cmpq %rbx, %r13
jbe 0x88695
movl $0x1, 0x28(%r14)
jmp 0x886c7
movq %r12, %rdi
movl $0x20, %esi
callq 0x2a290
cmpq %rbx, %r13
je 0x886c7
movq -0x30(%rbp), %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x87e9a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| uf_space_prespace_selected_0:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rcx
mov r12, rdx
mov r14, rsi
mov r13, rdi
mov eax, [rsi+4]
test eax, eax
jz short loc_885C9
mov r15d, [r14]
dec eax
mov [r14+4], eax
bt r15d, eax
jb loc_8863E
test eax, eax
jnz short loc_885E6
mov rdi, r14
call fill_buffer_0
mov dword ptr [r14+4], 1Fh
mov r15d, [r14]
test r15d, r15d
jns loc_8865F
mov eax, 1Fh
jmp short loc_885F2
loc_885C9:
mov rdi, r14
call fill_buffer_0
mov dword ptr [r14+4], 1Fh
mov r15d, [r14]
mov eax, 1Fh
test r15d, r15d
js short loc_8863E
loc_885E6:
dec eax
mov [r14+4], eax
bt r15d, eax
jnb short loc_8865F
loc_885F2:
mov rdx, r13
mov r13d, [r13+1Ch]
mov ecx, eax
sub ecx, r13d
mov [rbp+var_30], rdx
jnb short loc_8866A
sub r13d, eax
mov eax, eax
lea rcx, mask_0
and r15d, [rcx+rax*4]
mov ecx, r13d
shl r15d, cl
mov rdi, r14
call fill_buffer_0
mov eax, 20h ; ' '
sub eax, r13d
mov [r14+4], eax
mov eax, [r14]
neg r13d
mov ecx, r13d
shr eax, cl
add r15d, eax
jmp short loc_8867F
loc_8863E:
sub rbx, r12
mov rdi, r12
mov esi, 20h ; ' '
mov rdx, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _memset
loc_8865F:
mov rdi, r13
mov rsi, r14
mov rdx, r12
jmp short loc_886B1
loc_8866A:
mov [r14+4], ecx
shr r15d, cl
mov eax, [rdx+1Ch]
lea rcx, mask_0
and r15d, [rcx+rax*4]
loc_8867F:
mov edx, r15d
lea r13, [r12+rdx]
cmp r13, rbx
jbe short loc_88695
mov dword ptr [r14+28h], 1
jmp short loc_886C7
loc_88695:
mov rdi, r12
mov esi, 20h ; ' '
call _memset
cmp r13, rbx
jz short loc_886C7
mov rdi, [rbp+var_30]
mov rsi, r14
mov rdx, r13
loc_886B1:
mov rcx, rbx
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp decode_bytes_0
loc_886C7:
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long uf_space_prespace_selected_0(long long a1, unsigned int *a2, _BYTE *a3, _BYTE *a4)
{
unsigned int v6; // eax
unsigned int v7; // r15d
unsigned int v8; // eax
unsigned int v9; // eax
unsigned int v10; // r13d
unsigned int v11; // ecx
int v12; // r13d
int v13; // r15d
long long result; // rax
unsigned int v15; // r15d
_BYTE *v16; // rdx
_BYTE *v17; // r13
v6 = a2[1];
if ( !v6 )
{
fill_buffer_0((long long)a2);
a2[1] = 31;
v7 = *a2;
v8 = 31;
if ( (*a2 & 0x80000000) == 0 )
goto LABEL_7;
return memset(a3, 32LL, a4 - a3);
}
v7 = *a2;
v8 = v6 - 1;
a2[1] = v8;
if ( _bittest((const int *)&v7, v8) )
return memset(a3, 32LL, a4 - a3);
if ( !v8 )
{
fill_buffer_0((long long)a2);
a2[1] = 31;
v7 = *a2;
if ( (*a2 & 0x80000000) != 0 )
{
v9 = 31;
goto LABEL_8;
}
LABEL_11:
v16 = a3;
return (long long)decode_bytes_0(a1, (long long)a2, v16, a4);
}
LABEL_7:
v9 = v8 - 1;
a2[1] = v9;
if ( !_bittest((const int *)&v7, v9) )
goto LABEL_11;
LABEL_8:
v10 = *(_DWORD *)(a1 + 28);
v11 = v9 - v10;
if ( v9 >= v10 )
{
a2[1] = v11;
result = *(unsigned int *)(a1 + 28);
v15 = mask_0[result] & (v7 >> v11);
}
else
{
v12 = v10 - v9;
v13 = (mask_0[v9] & v7) << v12;
fill_buffer_0((long long)a2);
a2[1] = 32 - v12;
result = *a2 >> -(char)v12;
v15 = result + v13;
}
v17 = &a3[v15];
if ( v17 > a4 )
{
a2[10] = 1;
return result;
}
result = memset(a3, 32LL, v15);
if ( v17 != a4 )
{
v16 = &a3[v15];
return (long long)decode_bytes_0(a1, (long long)a2, v16, a4);
}
return result;
}
| uf_space_prespace_selected:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RCX
MOV R12,RDX
MOV R14,RSI
MOV R13,RDI
MOV EAX,dword ptr [RSI + 0x4]
TEST EAX,EAX
JZ 0x001885c9
MOV R15D,dword ptr [R14]
DEC EAX
MOV dword ptr [R14 + 0x4],EAX
BT R15D,EAX
JC 0x0018863e
TEST EAX,EAX
JNZ 0x001885e6
MOV RDI,R14
CALL 0x001875a9
MOV dword ptr [R14 + 0x4],0x1f
MOV R15D,dword ptr [R14]
TEST R15D,R15D
JNS 0x0018865f
MOV EAX,0x1f
JMP 0x001885f2
LAB_001885c9:
MOV RDI,R14
CALL 0x001875a9
MOV dword ptr [R14 + 0x4],0x1f
MOV R15D,dword ptr [R14]
MOV EAX,0x1f
TEST R15D,R15D
JS 0x0018863e
LAB_001885e6:
DEC EAX
MOV dword ptr [R14 + 0x4],EAX
BT R15D,EAX
JNC 0x0018865f
LAB_001885f2:
MOV RDX,R13
MOV R13D,dword ptr [R13 + 0x1c]
MOV ECX,EAX
SUB ECX,R13D
MOV qword ptr [RBP + -0x30],RDX
JNC 0x0018866a
SUB R13D,EAX
MOV EAX,EAX
LEA RCX,[0x1ead00]
AND R15D,dword ptr [RCX + RAX*0x4]
MOV ECX,R13D
SHL R15D,CL
MOV RDI,R14
CALL 0x001875a9
MOV EAX,0x20
SUB EAX,R13D
MOV dword ptr [R14 + 0x4],EAX
MOV EAX,dword ptr [R14]
NEG R13D
MOV ECX,R13D
SHR EAX,CL
ADD R15D,EAX
JMP 0x0018867f
LAB_0018863e:
SUB RBX,R12
MOV RDI,R12
MOV ESI,0x20
MOV RDX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x0012a290
LAB_0018865f:
MOV RDI,R13
MOV RSI,R14
MOV RDX,R12
JMP 0x001886b1
LAB_0018866a:
MOV dword ptr [R14 + 0x4],ECX
SHR R15D,CL
MOV EAX,dword ptr [RDX + 0x1c]
LEA RCX,[0x1ead00]
AND R15D,dword ptr [RCX + RAX*0x4]
LAB_0018867f:
MOV EDX,R15D
LEA R13,[R12 + RDX*0x1]
CMP R13,RBX
JBE 0x00188695
MOV dword ptr [R14 + 0x28],0x1
JMP 0x001886c7
LAB_00188695:
MOV RDI,R12
MOV ESI,0x20
CALL 0x0012a290
CMP R13,RBX
JZ 0x001886c7
MOV RDI,qword ptr [RBP + -0x30]
MOV RSI,R14
MOV RDX,R13
LAB_001886b1:
MOV RCX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x00187e9a
LAB_001886c7:
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void uf_space_prespace_selected(long param_1,uint *param_2,void *param_3,void *param_4)
{
uint uVar1;
uint uVar2;
uint uVar3;
byte bVar4;
void *pvVar5;
uint uVar6;
pvVar5 = param_3;
if (param_2[1] == 0) {
fill_buffer(param_2);
param_2[1] = 0x1f;
uVar6 = *param_2;
uVar3 = 0x1f;
if ((int)uVar6 < 0) goto LAB_0018863e;
LAB_001885e6:
uVar3 = uVar3 - 1;
param_2[1] = uVar3;
if ((uVar6 >> (uVar3 & 0x1f) & 1) == 0) goto LAB_001886b1;
}
else {
uVar6 = *param_2;
uVar3 = param_2[1] - 1;
param_2[1] = uVar3;
if ((uVar6 >> (uVar3 & 0x1f) & 1) != 0) {
LAB_0018863e:
memset(param_3,0x20,(long)param_4 - (long)param_3);
return;
}
if (uVar3 != 0) goto LAB_001885e6;
fill_buffer(param_2);
param_2[1] = 0x1f;
uVar6 = *param_2;
if (-1 < (int)uVar6) goto LAB_001886b1;
uVar3 = 0x1f;
}
uVar1 = *(uint *)(param_1 + 0x1c);
if (uVar3 < uVar1) {
uVar2 = (&mask)[uVar3];
bVar4 = (byte)(uVar1 - uVar3);
fill_buffer(param_2);
param_2[1] = 0x20 - (uVar1 - uVar3);
uVar6 = ((uVar6 & uVar2) << (bVar4 & 0x1f)) + (*param_2 >> (-bVar4 & 0x1f));
}
else {
param_2[1] = uVar3 - uVar1;
uVar6 = uVar6 >> ((byte)(uVar3 - uVar1) & 0x1f) & (&mask)[*(uint *)(param_1 + 0x1c)];
}
pvVar5 = (void *)((long)param_3 + (ulong)uVar6);
if (param_4 < pvVar5) {
param_2[10] = 1;
}
else {
memset(param_3,0x20,(ulong)uVar6);
if (pvVar5 != param_4) {
LAB_001886b1:
decode_bytes(param_1,param_2,pvVar5,param_4);
return;
}
}
return;
}
| |
44,358 | ggml_map_custom2_impl | ngxson[P]ggml-easy/ggml/src/ggml.c | static struct ggml_tensor * ggml_map_custom2_impl(
struct ggml_context * ctx,
struct ggml_tensor * a,
struct ggml_tensor * b,
const ggml_custom2_op_t fun,
int n_tasks,
void * userdata,
bool inplace) {
GGML_ASSERT(n_tasks == GGML_N_TASKS_MAX || n_tasks > 0);
struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a);
struct ggml_map_custom2_op_params params = {
/*.fun =*/ fun,
/*.n_tasks =*/ n_tasks,
/*.userdata =*/ userdata
};
ggml_set_op_params(result, ¶ms, sizeof(params));
result->op = GGML_OP_MAP_CUSTOM2;
result->src[0] = a;
result->src[1] = b;
return result;
} | O0 | c | ggml_map_custom2_impl:
subq $0x68, %rsp
movb 0x70(%rsp), %al
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq %rdx, 0x50(%rsp)
movq %rcx, 0x48(%rsp)
movl %r8d, 0x44(%rsp)
movq %r9, 0x38(%rsp)
andb $0x1, %al
movb %al, 0x37(%rsp)
cmpl $-0x1, 0x44(%rsp)
je 0x53b3b
cmpl $0x0, 0x44(%rsp)
jg 0x53b3b
leaq 0x60a96(%rip), %rdi # 0xb45b7
movl $0x134f, %esi # imm = 0x134F
leaq 0x60ad5(%rip), %rdx # 0xb4602
leaq 0x63041(%rip), %rcx # 0xb6b75
movb $0x0, %al
callq 0x46780
testb $0x1, 0x37(%rsp)
je 0x53b58
movq 0x60(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0x408f0
movq %rax, 0x8(%rsp)
jmp 0x53b6c
movq 0x60(%rsp), %rdi
movq 0x58(%rsp), %rsi
callq 0x43c20
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x10(%rsp)
movl 0x44(%rsp), %eax
movl %eax, 0x18(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x28(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movl $0x18, %edx
callq 0x4c4d0
movq 0x28(%rsp), %rax
movl $0x4c, 0x50(%rax)
movq 0x58(%rsp), %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0x98(%rax)
movq 0x50(%rsp), %rcx
movq 0x28(%rsp), %rax
movq %rcx, 0xa0(%rax)
movq 0x28(%rsp), %rax
addq $0x68, %rsp
retq
nop
| ggml_map_custom2_impl:
sub rsp, 68h
mov al, [rsp+68h+arg_0]
mov [rsp+68h+var_8], rdi
mov [rsp+68h+var_10], rsi
mov [rsp+68h+var_18], rdx
mov [rsp+68h+var_20], rcx
mov [rsp+68h+var_24], r8d
mov [rsp+68h+var_30], r9
and al, 1
mov [rsp+68h+var_31], al
cmp [rsp+68h+var_24], 0FFFFFFFFh
jz short loc_53B3B
cmp [rsp+68h+var_24], 0
jg short loc_53B3B
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov esi, 134Fh
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNTasksGgmlNTas; "n_tasks == GGML_N_TASKS_MAX || n_tasks "...
mov al, 0
call _ggml_abort
loc_53B3B:
test [rsp+68h+var_31], 1
jz short loc_53B58
mov rdi, [rsp+68h+var_8]
mov rsi, [rsp+68h+var_10]
call _ggml_view_tensor
mov [rsp+68h+var_60], rax
jmp short loc_53B6C
loc_53B58:
mov rdi, [rsp+68h+var_8]
mov rsi, [rsp+68h+var_10]
call _ggml_dup_tensor
mov [rsp+68h+var_60], rax
loc_53B6C:
mov rax, [rsp+68h+var_60]
mov [rsp+68h+var_40], rax
mov rax, [rsp+68h+var_20]
mov [rsp+68h+var_58], rax
mov eax, [rsp+68h+var_24]
mov [rsp+68h+var_50], eax
mov rax, [rsp+68h+var_30]
mov [rsp+68h+var_48], rax
mov rdi, [rsp+68h+var_40]
lea rsi, [rsp+68h+var_58]
mov edx, 18h
call ggml_set_op_params
mov rax, [rsp+68h+var_40]
mov dword ptr [rax+50h], 4Ch ; 'L'
mov rcx, [rsp+68h+var_10]
mov rax, [rsp+68h+var_40]
mov [rax+98h], rcx
mov rcx, [rsp+68h+var_18]
mov rax, [rsp+68h+var_40]
mov [rax+0A0h], rcx
mov rax, [rsp+68h+var_40]
add rsp, 68h
retn
| long long ggml_map_custom2_impl(
long long a1,
unsigned int *a2,
long long a3,
long long a4,
int a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
double a11,
double a12,
__m128 a13,
__m128 a14,
char a15)
{
long long v16; // [rsp+8h] [rbp-60h]
long long v17; // [rsp+10h] [rbp-58h] BYREF
int v18; // [rsp+18h] [rbp-50h]
long long v19; // [rsp+20h] [rbp-48h]
long long v20; // [rsp+28h] [rbp-40h]
char v21; // [rsp+37h] [rbp-31h]
long long v22; // [rsp+38h] [rbp-30h]
int v23; // [rsp+44h] [rbp-24h]
long long v24; // [rsp+48h] [rbp-20h]
long long v25; // [rsp+50h] [rbp-18h]
unsigned int *v26; // [rsp+58h] [rbp-10h]
long long v27; // [rsp+60h] [rbp-8h]
v27 = a1;
v26 = a2;
v25 = a3;
v24 = a4;
v23 = a5;
v22 = a6;
v21 = a15 & 1;
if ( a5 != -1 && v23 <= 0 )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c",
4943,
(long long)"GGML_ASSERT(%s) failed",
"n_tasks == GGML_N_TASKS_MAX || n_tasks > 0");
if ( (v21 & 1) != 0 )
v16 = (long long)ggml_view_tensor(v27, (long long)v26, a7, a8, a9, a10, a11, a12, a13, a14);
else
v16 = ggml_dup_tensor(v27, v26);
v20 = v16;
v17 = v24;
v18 = v23;
v19 = v22;
ggml_set_op_params(v16, (long long)&v17, 24LL);
*(_DWORD *)(v20 + 80) = 76;
*(_QWORD *)(v20 + 152) = v26;
*(_QWORD *)(v20 + 160) = v25;
return v20;
}
| ggml_map_custom2_impl:
SUB RSP,0x68
MOV AL,byte ptr [RSP + 0x70]
MOV qword ptr [RSP + 0x60],RDI
MOV qword ptr [RSP + 0x58],RSI
MOV qword ptr [RSP + 0x50],RDX
MOV qword ptr [RSP + 0x48],RCX
MOV dword ptr [RSP + 0x44],R8D
MOV qword ptr [RSP + 0x38],R9
AND AL,0x1
MOV byte ptr [RSP + 0x37],AL
CMP dword ptr [RSP + 0x44],-0x1
JZ 0x00153b3b
CMP dword ptr [RSP + 0x44],0x0
JG 0x00153b3b
LEA RDI,[0x1b45b7]
MOV ESI,0x134f
LEA RDX,[0x1b4602]
LEA RCX,[0x1b6b75]
MOV AL,0x0
CALL 0x00146780
LAB_00153b3b:
TEST byte ptr [RSP + 0x37],0x1
JZ 0x00153b58
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x58]
CALL 0x001408f0
MOV qword ptr [RSP + 0x8],RAX
JMP 0x00153b6c
LAB_00153b58:
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x58]
CALL 0x00143c20
MOV qword ptr [RSP + 0x8],RAX
LAB_00153b6c:
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [RSP + 0x48]
MOV qword ptr [RSP + 0x10],RAX
MOV EAX,dword ptr [RSP + 0x44]
MOV dword ptr [RSP + 0x18],EAX
MOV RAX,qword ptr [RSP + 0x38]
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0x28]
LEA RSI,[RSP + 0x10]
MOV EDX,0x18
CALL 0x0014c4d0
MOV RAX,qword ptr [RSP + 0x28]
MOV dword ptr [RAX + 0x50],0x4c
MOV RCX,qword ptr [RSP + 0x58]
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RAX + 0x98],RCX
MOV RCX,qword ptr [RSP + 0x50]
MOV RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RAX + 0xa0],RCX
MOV RAX,qword ptr [RSP + 0x28]
ADD RSP,0x68
RET
|
long ggml_map_custom2_impl
(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int param_5,int8 param_6,byte param_7)
{
long local_60;
int8 local_58;
int local_50;
int8 local_48;
long local_40;
byte local_31;
int8 local_30;
int local_24;
int8 local_20;
int8 local_18;
int8 local_10;
int8 local_8;
local_31 = param_7 & 1;
local_30 = param_6;
local_24 = param_5;
local_20 = param_4;
local_18 = param_3;
local_10 = param_2;
local_8 = param_1;
if ((param_5 != -1) && (param_5 < 1)) {
ggml_abort("/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c",0x134f,
"GGML_ASSERT(%s) failed","n_tasks == GGML_N_TASKS_MAX || n_tasks > 0");
}
if ((local_31 & 1) == 0) {
local_60 = ggml_dup_tensor(local_8,local_10);
}
else {
local_60 = ggml_view_tensor(local_8,local_10);
}
local_40 = local_60;
local_58 = local_20;
local_50 = local_24;
local_48 = local_30;
ggml_set_op_params(local_60,&local_58,0x18);
*(int4 *)(local_40 + 0x50) = 0x4c;
*(int8 *)(local_40 + 0x98) = local_10;
*(int8 *)(local_40 + 0xa0) = local_18;
return local_40;
}
| |
44,359 | ggml_map_custom2_impl | ngxson[P]ggml-easy/ggml/src/ggml.c | static struct ggml_tensor * ggml_map_custom2_impl(
struct ggml_context * ctx,
struct ggml_tensor * a,
struct ggml_tensor * b,
const ggml_custom2_op_t fun,
int n_tasks,
void * userdata,
bool inplace) {
GGML_ASSERT(n_tasks == GGML_N_TASKS_MAX || n_tasks > 0);
struct ggml_tensor * result = inplace ? ggml_view_tensor(ctx, a) : ggml_dup_tensor(ctx, a);
struct ggml_map_custom2_op_params params = {
/*.fun =*/ fun,
/*.n_tasks =*/ n_tasks,
/*.userdata =*/ userdata
};
ggml_set_op_params(result, ¶ms, sizeof(params));
result->op = GGML_OP_MAP_CUSTOM2;
result->src[0] = a;
result->src[1] = b;
return result;
} | O3 | c | ggml_map_custom2_impl:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r12
cmpl $-0x1, %r8d
sete %al
testl %r8d, %r8d
setg %cl
orb %al, %cl
je 0x1f84e
movq %r9, %r14
movl %r8d, %ebp
movq %rdx, %rbx
movq %rsi, %r15
cmpb $0x0, 0x30(%rsp)
je 0x1f809
movq %r15, %rsi
callq 0x16260
jmp 0x1f820
movl (%r15), %esi
leaq 0x10(%r15), %rcx
movl $0x4, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x19c13
testq %rax, %rax
je 0x1f86a
movq %r12, 0x54(%rax)
movl %ebp, 0x5c(%rax)
movq %r14, 0x64(%rax)
movl $0x4c, 0x50(%rax)
movq %r15, 0x98(%rax)
movq %rbx, 0xa0(%rax)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2adbe(%rip), %rdi # 0x4a613
leaq 0x2ae02(%rip), %rdx # 0x4a65e
leaq 0x2d1eb(%rip), %rcx # 0x4ca4e
movl $0x134f, %esi # imm = 0x134F
jmp 0x1f884
leaq 0x2cf6b(%rip), %rdi # 0x4c7dc
leaq 0x2ade6(%rip), %rdx # 0x4a65e
leaq 0x2cfad(%rip), %rcx # 0x4c82c
movl $0x70, %esi
xorl %eax, %eax
callq 0x17c60
| ggml_map_custom2_impl:
push rbp
push r15
push r14
push r12
push rbx
mov r12, rcx
cmp r8d, 0FFFFFFFFh
setz al
test r8d, r8d
setnle cl
or cl, al
jz short loc_1F84E
mov r14, r9
mov ebp, r8d
mov rbx, rdx
mov r15, rsi
cmp [rsp+28h+arg_0], 0
jz short loc_1F809
mov rsi, r15
call _ggml_view_tensor
jmp short loc_1F820
loc_1F809:
mov esi, [r15]
lea rcx, [r15+10h]
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
loc_1F820:
test rax, rax
jz short loc_1F86A
mov [rax+54h], r12
mov [rax+5Ch], ebp
mov [rax+64h], r14
mov dword ptr [rax+50h], 4Ch ; 'L'
mov [rax+98h], r15
mov [rax+0A0h], rbx
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_1F84E:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aNTasksGgmlNTas; "n_tasks == GGML_N_TASKS_MAX || n_tasks "...
mov esi, 134Fh
jmp short loc_1F884
loc_1F86A:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aTensorNull; "tensor != NULL"
mov esi, 70h ; 'p'
loc_1F884:
xor eax, eax
call _ggml_abort
| long long ggml_map_custom2_impl(long long a1, long long a2, long long a3, long long a4, int a5, long long a6, char a7)
{
long long result; // rax
const char *v12; // rdi
const char *v13; // rcx
int v14; // esi
if ( a5 != -1 && a5 <= 0 )
{
v12 = "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c";
v13 = "n_tasks == GGML_N_TASKS_MAX || n_tasks > 0";
v14 = 4943;
goto LABEL_9;
}
if ( a7 )
result = ggml_view_tensor(a1, a2);
else
result = ggml_new_tensor_impl(a1, *(_DWORD *)a2, 4u, (_QWORD *)(a2 + 16), 0LL, 0LL);
if ( !result )
{
v12 = "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-impl.h";
v13 = "tensor != NULL";
v14 = 112;
LABEL_9:
ggml_abort((_DWORD)v12, v14, (unsigned int)"GGML_ASSERT(%s) failed", (_DWORD)v13, a5, a6);
}
*(_QWORD *)(result + 84) = a4;
*(_DWORD *)(result + 92) = a5;
*(_QWORD *)(result + 100) = a6;
*(_DWORD *)(result + 80) = 76;
*(_QWORD *)(result + 152) = a2;
*(_QWORD *)(result + 160) = a3;
return result;
}
| ggml_map_custom2_impl:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R12,RCX
CMP R8D,-0x1
SETZ AL
TEST R8D,R8D
SETG CL
OR CL,AL
JZ 0x0011f84e
MOV R14,R9
MOV EBP,R8D
MOV RBX,RDX
MOV R15,RSI
CMP byte ptr [RSP + 0x30],0x0
JZ 0x0011f809
MOV RSI,R15
CALL 0x00116260
JMP 0x0011f820
LAB_0011f809:
MOV ESI,dword ptr [R15]
LEA RCX,[R15 + 0x10]
MOV EDX,0x4
XOR R8D,R8D
XOR R9D,R9D
CALL 0x00119c13
LAB_0011f820:
TEST RAX,RAX
JZ 0x0011f86a
MOV qword ptr [RAX + 0x54],R12
MOV dword ptr [RAX + 0x5c],EBP
MOV qword ptr [RAX + 0x64],R14
MOV dword ptr [RAX + 0x50],0x4c
MOV qword ptr [RAX + 0x98],R15
MOV qword ptr [RAX + 0xa0],RBX
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0011f84e:
LEA RDI,[0x14a613]
LEA RDX,[0x14a65e]
LEA RCX,[0x14ca4e]
MOV ESI,0x134f
JMP 0x0011f884
LAB_0011f86a:
LEA RDI,[0x14c7dc]
LEA RDX,[0x14a65e]
LEA RCX,[0x14c82c]
MOV ESI,0x70
LAB_0011f884:
XOR EAX,EAX
CALL 0x00117c60
|
void ggml_map_custom2_impl
(int8 param_1,int4 *param_2,int8 param_3,int8 param_4,
int param_5,int8 param_6,char param_7)
{
long lVar1;
char *pcVar2;
int8 uVar3;
char *pcVar4;
if (param_5 < 1 && param_5 != -1) {
pcVar4 = "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml.c";
pcVar2 = "n_tasks == GGML_N_TASKS_MAX || n_tasks > 0";
uVar3 = 0x134f;
}
else {
if (param_7 == '\0') {
lVar1 = ggml_new_tensor_impl(param_1,*param_2,4,param_2 + 4,0,0);
}
else {
lVar1 = ggml_view_tensor(param_1,param_2);
}
if (lVar1 != 0) {
*(int8 *)(lVar1 + 0x54) = param_4;
*(int *)(lVar1 + 0x5c) = param_5;
*(int8 *)(lVar1 + 100) = param_6;
*(int4 *)(lVar1 + 0x50) = 0x4c;
*(int4 **)(lVar1 + 0x98) = param_2;
*(int8 *)(lVar1 + 0xa0) = param_3;
return;
}
pcVar4 = "/workspace/llm4binary/github/2025_star3/ngxson[P]ggml-easy/ggml/src/ggml-impl.h";
pcVar2 = "tensor != NULL";
uVar3 = 0x70;
}
/* WARNING: Subroutine does not return */
ggml_abort(pcVar4,uVar3,"GGML_ASSERT(%s) failed",pcVar2);
}
| |
44,360 | my_convert_fix | eloqsql/strings/ctype.c | size_t
my_convert_fix(CHARSET_INFO *to_cs, char *to, size_t to_length,
CHARSET_INFO *from_cs, const char *from, size_t from_length,
size_t nchars,
MY_STRCOPY_STATUS *copy_status,
MY_STRCONV_STATUS *conv_status)
{
int cnvres;
my_wc_t wc;
my_charset_conv_mb_wc mb_wc= from_cs->cset->mb_wc;
my_charset_conv_wc_mb wc_mb= to_cs->cset->wc_mb;
const uchar *from_end= (const uchar*) from + from_length;
uchar *to_end= (uchar*) to + to_length;
char *to_start= to;
DBUG_ASSERT(to_cs != &my_charset_bin);
DBUG_ASSERT(from_cs != &my_charset_bin);
copy_status->m_well_formed_error_pos= NULL;
conv_status->m_cannot_convert_error_pos= NULL;
for ( ; nchars; nchars--)
{
const char *from_prev= from;
if ((cnvres= (*mb_wc)(from_cs, &wc, (uchar*) from, from_end)) > 0)
from+= cnvres;
else if (cnvres == MY_CS_ILSEQ)
{
if (!copy_status->m_well_formed_error_pos)
copy_status->m_well_formed_error_pos= from;
from++;
wc= '?';
}
else if (cnvres > MY_CS_TOOSMALL)
{
/*
A correct multibyte sequence detected
But it doesn't have Unicode mapping.
*/
if (!conv_status->m_cannot_convert_error_pos)
conv_status->m_cannot_convert_error_pos= from;
from+= (-cnvres);
wc= '?';
}
else
{
if ((uchar *) from >= from_end)
break; // End of line
// Incomplete byte sequence
if (!copy_status->m_well_formed_error_pos)
copy_status->m_well_formed_error_pos= from;
from++;
wc= '?';
}
outp:
if ((cnvres= (*wc_mb)(to_cs, wc, (uchar*) to, to_end)) > 0)
to+= cnvres;
else if (cnvres == MY_CS_ILUNI && wc != '?')
{
if (!conv_status->m_cannot_convert_error_pos)
conv_status->m_cannot_convert_error_pos= from_prev;
wc= '?';
goto outp;
}
else
{
from= from_prev;
break;
}
}
copy_status->m_source_end_pos= from;
return to - to_start;
} | O3 | c | my_convert_fix:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %r14
movq %rdx, %r12
movq %rdi, %r13
movq 0x20(%rbp), %rdi
movq 0x18(%rbp), %rdx
movq 0x10(%rbp), %r8
movq %rcx, -0x60(%rbp)
movq 0xb8(%rcx), %rax
movq 0x28(%rax), %rax
movq %rax, -0x58(%rbp)
movq 0xb8(%r13), %rax
movq 0x30(%rax), %rax
movq %rax, -0x40(%rbp)
xorl %eax, %eax
movq %rax, 0x8(%rdx)
movq %rax, (%rdi)
testq %r8, %r8
movq %rsi, -0x48(%rbp)
je 0x78083
movq %r8, -0x50(%rbp)
addq %r14, %r9
movq %r9, -0x38(%rbp)
addq %rsi, %r12
movq %rsi, %rbx
movq -0x60(%rbp), %rdi
leaq -0x30(%rbp), %rsi
movq %r14, %rdx
movq -0x38(%rbp), %rcx
callq *-0x58(%rbp)
movl %eax, %r15d
testl %eax, %eax
jle 0x77ffb
movl %r15d, %r15d
addq %r14, %r15
movq -0x30(%rbp), %rsi
jmp 0x78033
je 0x7801e
cmpl $-0x64, %r15d
jb 0x78018
movq 0x20(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x78010
movq %r14, (%rax)
negl %r15d
addq %r14, %r15
jmp 0x7805b
cmpq -0x38(%rbp), %r14
jae 0x7807e
movq 0x18(%rbp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x7802d
movq %r14, 0x8(%rax)
leaq 0x1(%r14), %r15
jmp 0x7805b
movq %r13, %rdi
movq %rbx, %rdx
movq %r12, %rcx
callq *-0x40(%rbp)
testl %eax, %eax
jg 0x7806a
testl %eax, %eax
jne 0x7807e
cmpq $0x3f, -0x30(%rbp)
je 0x7807e
movq 0x20(%rbp), %rax
cmpq $0x0, (%rax)
jne 0x7805b
movq %r14, (%rax)
movq $0x3f, -0x30(%rbp)
movl $0x3f, %esi
jmp 0x78033
movl %eax, %eax
addq %rax, %rbx
movq %r15, %r14
decq -0x50(%rbp)
jne 0x77fd6
jmp 0x78089
movq %r14, %r15
jmp 0x78089
movq %r14, %r15
movq %rsi, %rbx
movq 0x18(%rbp), %rax
movq %r15, (%rax)
subq -0x48(%rbp), %rbx
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_convert_fix:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r14, r8
mov r12, rdx
mov r13, rdi
mov rdi, [rbp+arg_10]
mov rdx, [rbp+arg_8]
mov r8, [rbp+arg_0]
mov [rbp+var_60], rcx
mov rax, [rcx+0B8h]
mov rax, [rax+28h]
mov [rbp+var_58], rax
mov rax, [r13+0B8h]
mov rax, [rax+30h]
mov [rbp+var_40], rax
xor eax, eax
mov [rdx+8], rax
mov [rdi], rax
test r8, r8
mov [rbp+var_48], rsi
jz loc_78083
mov [rbp+var_50], r8
add r9, r14
mov [rbp+var_38], r9
add r12, rsi
mov rbx, rsi
loc_77FD6:
mov rdi, [rbp+var_60]
lea rsi, [rbp+var_30]
mov rdx, r14
mov rcx, [rbp+var_38]
call [rbp+var_58]
mov r15d, eax
test eax, eax
jle short loc_77FFB
mov r15d, r15d
add r15, r14
mov rsi, [rbp+var_30]
jmp short loc_78033
loc_77FFB:
jz short loc_7801E
cmp r15d, 0FFFFFF9Ch
jb short loc_78018
mov rax, [rbp+arg_10]
cmp qword ptr [rax], 0
jnz short loc_78010
mov [rax], r14
loc_78010:
neg r15d
add r15, r14
jmp short loc_7805B
loc_78018:
cmp r14, [rbp+var_38]
jnb short loc_7807E
loc_7801E:
mov rax, [rbp+arg_8]
cmp qword ptr [rax+8], 0
jnz short loc_7802D
mov [rax+8], r14
loc_7802D:
lea r15, [r14+1]
jmp short loc_7805B
loc_78033:
mov rdi, r13
mov rdx, rbx
mov rcx, r12
call [rbp+var_40]
test eax, eax
jg short loc_7806A
test eax, eax
jnz short loc_7807E
cmp [rbp+var_30], 3Fh ; '?'
jz short loc_7807E
mov rax, [rbp+arg_10]
cmp qword ptr [rax], 0
jnz short loc_7805B
mov [rax], r14
loc_7805B:
mov [rbp+var_30], 3Fh ; '?'
mov esi, 3Fh ; '?'
jmp short loc_78033
loc_7806A:
mov eax, eax
add rbx, rax
mov r14, r15
dec [rbp+var_50]
jnz loc_77FD6
jmp short loc_78089
loc_7807E:
mov r15, r14
jmp short loc_78089
loc_78083:
mov r15, r14
mov rbx, rsi
loc_78089:
mov rax, [rbp+arg_8]
mov [rax], r15
sub rbx, [rbp+var_48]
mov rax, rbx
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_convert_fix(
long long a1,
long long a2,
long long a3,
long long a4,
unsigned long long a5,
long long a6,
long long a7,
unsigned long long *a8,
unsigned long long *a9)
{
unsigned long long v9; // r14
long long v10; // r12
long long v11; // rbx
int v12; // eax
unsigned long long v13; // r15
long long v14; // rsi
int v15; // eax
long long ( *v18)(long long, long long *, unsigned long long, unsigned long long); // [rsp+8h] [rbp-58h]
long long v19; // [rsp+10h] [rbp-50h]
long long ( *v21)(long long, long long, long long, long long); // [rsp+20h] [rbp-40h]
unsigned long long v22; // [rsp+28h] [rbp-38h]
long long v23[6]; // [rsp+30h] [rbp-30h] BYREF
v9 = a5;
v18 = *(long long ( **)(long long, long long *, unsigned long long, unsigned long long))(*(_QWORD *)(a4 + 184) + 40LL);
v21 = *(long long ( **)(long long, long long, long long, long long))(*(_QWORD *)(a1 + 184) + 48LL);
a8[1] = 0LL;
*a9 = 0LL;
if ( a7 )
{
v19 = a7;
v22 = a5 + a6;
v10 = a2 + a3;
v11 = a2;
while ( 1 )
{
v12 = v18(a4, v23, v9, v22);
if ( v12 > 0 )
{
v13 = v9 + (unsigned int)v12;
v14 = v23[0];
goto LABEL_14;
}
if ( !v12 )
goto LABEL_11;
if ( (unsigned int)v12 < 0xFFFFFF9C )
break;
if ( !*a9 )
*a9 = v9;
v13 = v9 + (unsigned int)-v12;
LABEL_19:
while ( 1 )
{
v23[0] = 63LL;
v14 = 63LL;
LABEL_14:
v15 = v21(a1, v14, v11, v10);
if ( v15 > 0 )
break;
if ( v15 || v23[0] == 63 )
goto LABEL_22;
if ( !*a9 )
*a9 = v9;
}
v11 += (unsigned int)v15;
v9 = v13;
if ( !--v19 )
goto LABEL_24;
}
if ( v9 < v22 )
{
LABEL_11:
if ( !a8[1] )
a8[1] = v9;
v13 = v9 + 1;
goto LABEL_19;
}
LABEL_22:
v13 = v9;
}
else
{
v13 = a5;
v11 = a2;
}
LABEL_24:
*a8 = v13;
return v11 - a2;
}
| my_convert_fix:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R14,R8
MOV R12,RDX
MOV R13,RDI
MOV RDI,qword ptr [RBP + 0x20]
MOV RDX,qword ptr [RBP + 0x18]
MOV R8,qword ptr [RBP + 0x10]
MOV qword ptr [RBP + -0x60],RCX
MOV RAX,qword ptr [RCX + 0xb8]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [R13 + 0xb8]
MOV RAX,qword ptr [RAX + 0x30]
MOV qword ptr [RBP + -0x40],RAX
XOR EAX,EAX
MOV qword ptr [RDX + 0x8],RAX
MOV qword ptr [RDI],RAX
TEST R8,R8
MOV qword ptr [RBP + -0x48],RSI
JZ 0x00178083
MOV qword ptr [RBP + -0x50],R8
ADD R9,R14
MOV qword ptr [RBP + -0x38],R9
ADD R12,RSI
MOV RBX,RSI
LAB_00177fd6:
MOV RDI,qword ptr [RBP + -0x60]
LEA RSI,[RBP + -0x30]
MOV RDX,R14
MOV RCX,qword ptr [RBP + -0x38]
CALL qword ptr [RBP + -0x58]
MOV R15D,EAX
TEST EAX,EAX
JLE 0x00177ffb
MOV R15D,R15D
ADD R15,R14
MOV RSI,qword ptr [RBP + -0x30]
JMP 0x00178033
LAB_00177ffb:
JZ 0x0017801e
CMP R15D,-0x64
JC 0x00178018
MOV RAX,qword ptr [RBP + 0x20]
CMP qword ptr [RAX],0x0
JNZ 0x00178010
MOV qword ptr [RAX],R14
LAB_00178010:
NEG R15D
ADD R15,R14
JMP 0x0017805b
LAB_00178018:
CMP R14,qword ptr [RBP + -0x38]
JNC 0x0017807e
LAB_0017801e:
MOV RAX,qword ptr [RBP + 0x18]
CMP qword ptr [RAX + 0x8],0x0
JNZ 0x0017802d
MOV qword ptr [RAX + 0x8],R14
LAB_0017802d:
LEA R15,[R14 + 0x1]
JMP 0x0017805b
LAB_00178033:
MOV RDI,R13
MOV RDX,RBX
MOV RCX,R12
CALL qword ptr [RBP + -0x40]
TEST EAX,EAX
JG 0x0017806a
TEST EAX,EAX
JNZ 0x0017807e
CMP qword ptr [RBP + -0x30],0x3f
JZ 0x0017807e
MOV RAX,qword ptr [RBP + 0x20]
CMP qword ptr [RAX],0x0
JNZ 0x0017805b
MOV qword ptr [RAX],R14
LAB_0017805b:
MOV qword ptr [RBP + -0x30],0x3f
MOV ESI,0x3f
JMP 0x00178033
LAB_0017806a:
MOV EAX,EAX
ADD RBX,RAX
MOV R14,R15
DEC qword ptr [RBP + -0x50]
JNZ 0x00177fd6
JMP 0x00178089
LAB_0017807e:
MOV R15,R14
JMP 0x00178089
LAB_00178083:
MOV R15,R14
MOV RBX,RSI
LAB_00178089:
MOV RAX,qword ptr [RBP + 0x18]
MOV qword ptr [RAX],R15
SUB RBX,qword ptr [RBP + -0x48]
MOV RAX,RBX
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_convert_fix(long param_1,long param_2,long param_3,long param_4,ulong param_5,long param_6,
long param_7,ulong *param_8,ulong *param_9)
{
code *pcVar1;
code *pcVar2;
uint uVar3;
long lVar4;
ulong uVar5;
ulong uVar6;
long local_58;
long local_38;
pcVar1 = *(code **)(*(long *)(param_4 + 0xb8) + 0x28);
pcVar2 = *(code **)(*(long *)(param_1 + 0xb8) + 0x30);
param_8[1] = 0;
*param_9 = 0;
lVar4 = param_2;
uVar5 = param_5;
if (param_7 != 0) {
local_58 = param_7;
while( true ) {
uVar3 = (*pcVar1)(param_4,&local_38,uVar5,param_6 + param_5);
if ((int)uVar3 < 1) break;
uVar6 = uVar3 + uVar5;
while (uVar3 = (*pcVar2)(param_1,local_38,lVar4,param_3 + param_2), (int)uVar3 < 1) {
if ((uVar3 != 0) || (local_38 == 0x3f)) goto LAB_00178089;
if (*param_9 == 0) {
*param_9 = uVar5;
}
LAB_0017805b:
local_38 = 0x3f;
}
lVar4 = lVar4 + (ulong)uVar3;
local_58 = local_58 + -1;
uVar5 = uVar6;
if (local_58 == 0) goto LAB_00178089;
}
if (uVar3 != 0) {
if (0xffffff9b < uVar3) {
if (*param_9 == 0) {
*param_9 = uVar5;
}
uVar6 = -uVar3 + uVar5;
goto LAB_0017805b;
}
if (param_6 + param_5 <= uVar5) goto LAB_00178089;
}
if (param_8[1] == 0) {
param_8[1] = uVar5;
}
uVar6 = uVar5 + 1;
goto LAB_0017805b;
}
LAB_00178089:
*param_8 = uVar5;
return lVar4 - param_2;
}
| |
44,361 | my_strntoul_8bit | eloqsql/strings/ctype-simple.c | ulong my_strntoul_8bit(CHARSET_INFO *cs,
const char *nptr, size_t l, int base,
char **endptr, int *err)
{
int negative;
register uint32 cutoff;
register uint cutlim;
register uint32 i;
register const char *s;
const char *save, *e;
int overflow;
*err= 0; /* Initialize error indicator */
s = nptr;
e = nptr+l;
for( ; s<e && my_isspace(cs, *s); s++);
if (s==e)
{
goto noconv;
}
if (*s == '-')
{
negative = 1;
++s;
}
else if (*s == '+')
{
negative = 0;
++s;
}
else
negative = 0;
save = s;
cutoff = ((uint32)~0L) / (uint32) base;
cutlim = (uint) (((uint32)~0L) % (uint32) base);
overflow = 0;
i = 0;
for ( ; s != e; ++s)
{
register uchar c= *s;
if (c>='0' && c<='9')
c -= '0';
else if (c>='A' && c<='Z')
c = c - 'A' + 10;
else if (c>='a' && c<='z')
c = c - 'a' + 10;
else
break;
if (c >= base)
break;
if (i > cutoff || (i == cutoff && c > cutlim))
overflow = 1;
else
{
i *= (uint32) base;
i += c;
}
}
if (s == save)
goto noconv;
if (endptr != NULL)
*endptr = (char *) s;
if (overflow)
{
err[0]= ERANGE;
return (~(uint32) 0);
}
return (negative ? -((long) i) : (long) i);
noconv:
err[0]= EDOM;
if (endptr != NULL)
*endptr = (char *) nptr;
return 0L;
} | O3 | c | my_strntoul_8bit:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movl $0x0, (%r9)
leaq (%rsi,%rdx), %r11
movq %rsi, %r10
testq %rdx, %rdx
jle 0x37c54
movq 0x40(%rdi), %rax
movq %rsi, %r10
movzbl (%r10), %edx
testb $0x8, 0x1(%rax,%rdx)
je 0x37c54
incq %r10
cmpq %r11, %r10
jb 0x37c41
cmpq %r11, %r10
je 0x37d32
movb (%r10), %dil
leal -0x2b(%rdi), %eax
andb $-0x3, %al
cmpb $0x1, %al
adcq $0x0, %r10
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
xorl %edx, %edx
divl %ecx
xorl %r15d, %r15d
cmpq %r11, %r10
je 0x37d0f
movq %rdi, -0x30(%rbp)
movq %r10, %rbx
xorl %r13d, %r13d
movl %r13d, %r14d
movl %r15d, %r12d
movb (%rbx), %r15b
leal -0x30(%r15), %edi
cmpb $0xa, %dil
jb 0x37cbe
leal -0x41(%r15), %edi
cmpb $0x19, %dil
ja 0x37cad
addb $-0x37, %r15b
jmp 0x37cbb
leal -0x61(%r15), %edi
cmpb $0x19, %dil
ja 0x37cfd
addb $-0x57, %r15b
movl %r15d, %edi
movzbl %dil, %edi
cmpl %ecx, %edi
jge 0x37cfd
movl $0x1, %r15d
cmpl %eax, %r14d
jbe 0x37cd6
movl %r14d, %r13d
jmp 0x37cec
jne 0x37cdf
movl %eax, %r13d
cmpl %edi, %edx
jb 0x37cec
imull %ecx, %r14d
addl %edi, %r14d
movl %r14d, %r13d
movl %r12d, %r15d
incq %rbx
cmpq %r11, %rbx
jne 0x37c8a
movl %r13d, %r14d
movq %r11, %rbx
movl %r15d, %r12d
testl %r12d, %r12d
sete %al
movl %r14d, %r15d
movq %rbx, %r11
movq -0x30(%rbp), %rdi
jmp 0x37d11
movb $0x1, %al
cmpq %r10, %r11
je 0x37d32
testq %r8, %r8
je 0x37d1e
movq %r11, (%r8)
testb %al, %al
je 0x37d45
movq %r15, %rax
negq %rax
cmpb $0x2d, %dil
cmovneq %r15, %rax
jmp 0x37d51
movl $0x21, (%r9)
testq %r8, %r8
je 0x37d41
movq %rsi, (%r8)
xorl %eax, %eax
jmp 0x37d51
movl $0x22, (%r9)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_strntoul_8bit:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
mov dword ptr [r9], 0
lea r11, [rsi+rdx]
mov r10, rsi
test rdx, rdx
jle short loc_37C54
mov rax, [rdi+40h]
mov r10, rsi
loc_37C41:
movzx edx, byte ptr [r10]
test byte ptr [rax+rdx+1], 8
jz short loc_37C54
inc r10
cmp r10, r11
jb short loc_37C41
loc_37C54:
cmp r10, r11
jz loc_37D32
mov dil, [r10]
lea eax, [rdi-2Bh]
and al, 0FDh
cmp al, 1
adc r10, 0
mov eax, 0FFFFFFFFh
xor edx, edx
div ecx
xor r15d, r15d
cmp r10, r11
jz loc_37D0F
mov [rbp+var_30], rdi
mov rbx, r10
xor r13d, r13d
loc_37C8A:
mov r14d, r13d
mov r12d, r15d
mov r15b, [rbx]
lea edi, [r15-30h]
cmp dil, 0Ah
jb short loc_37CBE
lea edi, [r15-41h]
cmp dil, 19h
ja short loc_37CAD
add r15b, 0C9h
jmp short loc_37CBB
loc_37CAD:
lea edi, [r15-61h]
cmp dil, 19h
ja short loc_37CFD
add r15b, 0A9h
loc_37CBB:
mov edi, r15d
loc_37CBE:
movzx edi, dil
cmp edi, ecx
jge short loc_37CFD
mov r15d, 1
cmp r14d, eax
jbe short loc_37CD6
mov r13d, r14d
jmp short loc_37CEC
loc_37CD6:
jnz short loc_37CDF
mov r13d, eax
cmp edx, edi
jb short loc_37CEC
loc_37CDF:
imul r14d, ecx
add r14d, edi
mov r13d, r14d
mov r15d, r12d
loc_37CEC:
inc rbx
cmp rbx, r11
jnz short loc_37C8A
mov r14d, r13d
mov rbx, r11
mov r12d, r15d
loc_37CFD:
test r12d, r12d
setz al
mov r15d, r14d
mov r11, rbx
mov rdi, [rbp+var_30]
jmp short loc_37D11
loc_37D0F:
mov al, 1
loc_37D11:
cmp r11, r10
jz short loc_37D32
test r8, r8
jz short loc_37D1E
mov [r8], r11
loc_37D1E:
test al, al
jz short loc_37D45
mov rax, r15
neg rax
cmp dil, 2Dh ; '-'
cmovnz rax, r15
jmp short loc_37D51
loc_37D32:
mov dword ptr [r9], 21h ; '!'
test r8, r8
jz short loc_37D41
mov [r8], rsi
loc_37D41:
xor eax, eax
jmp short loc_37D51
loc_37D45:
mov dword ptr [r9], 22h ; '"'
mov eax, 0FFFFFFFFh
loc_37D51:
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_strntoul_8bit(
long long a1,
unsigned __int8 *a2,
long long a3,
unsigned int a4,
unsigned __int8 **a5,
_DWORD *a6)
{
unsigned __int8 *v6; // r11
unsigned __int8 *v7; // r10
unsigned __int8 v8; // di
unsigned __int8 *v9; // r10
unsigned int v10; // eax
long long v11; // r15
unsigned __int8 *v12; // rbx
unsigned int v13; // r13d
unsigned int v14; // r14d
int v15; // r12d
unsigned __int8 v16; // r15
unsigned __int8 v17; // di
unsigned __int8 v18; // r15
bool v19; // al
long long result; // rax
unsigned __int8 v21; // [rsp+0h] [rbp-30h]
*a6 = 0;
v6 = &a2[a3];
v7 = a2;
if ( a3 > 0 )
{
v7 = a2;
do
{
if ( (*(_BYTE *)(*(_QWORD *)(a1 + 64) + *v7 + 1LL) & 8) == 0 )
break;
++v7;
}
while ( v7 < v6 );
}
if ( v7 == v6 )
goto LABEL_30;
v8 = *v7;
v9 = &v7[((*v7 - 43) & 0xFD) == 0];
v10 = 0xFFFFFFFF / a4;
v11 = 0LL;
if ( v9 == v6 )
{
v19 = 1;
}
else
{
v21 = v8;
v12 = v9;
v13 = 0;
while ( 1 )
{
v14 = v13;
v15 = v11;
v16 = *v12;
v17 = *v12 - 48;
if ( v17 >= 0xAu )
{
if ( (unsigned __int8)(v16 - 65) > 0x19u )
{
if ( (unsigned __int8)(v16 - 97) > 0x19u )
break;
v18 = v16 - 87;
}
else
{
v18 = v16 - 55;
}
v17 = v18;
}
if ( v17 >= (int)a4 )
break;
LODWORD(v11) = 1;
if ( v13 <= v10 )
{
if ( v13 != v10 || (v13 = 0xFFFFFFFF / a4, 0xFFFFFFFF % a4 >= v17) )
{
v13 = v17 + a4 * v14;
LODWORD(v11) = v15;
}
}
if ( ++v12 == v6 )
{
v14 = v13;
v12 = &a2[a3];
v15 = v11;
break;
}
}
v19 = v15 == 0;
v11 = v14;
v6 = v12;
v8 = v21;
}
if ( v6 == v9 )
{
LABEL_30:
*a6 = 33;
if ( a5 )
*a5 = a2;
return 0LL;
}
else
{
if ( a5 )
*a5 = v6;
if ( v19 )
{
result = -v11;
if ( v8 != 45 )
return v11;
}
else
{
*a6 = 34;
return 0xFFFFFFFFLL;
}
}
return result;
}
| my_strntoul_8bit:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
MOV dword ptr [R9],0x0
LEA R11,[RSI + RDX*0x1]
MOV R10,RSI
TEST RDX,RDX
JLE 0x00137c54
MOV RAX,qword ptr [RDI + 0x40]
MOV R10,RSI
LAB_00137c41:
MOVZX EDX,byte ptr [R10]
TEST byte ptr [RAX + RDX*0x1 + 0x1],0x8
JZ 0x00137c54
INC R10
CMP R10,R11
JC 0x00137c41
LAB_00137c54:
CMP R10,R11
JZ 0x00137d32
MOV DIL,byte ptr [R10]
LEA EAX,[RDI + -0x2b]
AND AL,0xfd
CMP AL,0x1
ADC R10,0x0
MOV EAX,0xffffffff
XOR EDX,EDX
DIV ECX
XOR R15D,R15D
CMP R10,R11
JZ 0x00137d0f
MOV qword ptr [RBP + -0x30],RDI
MOV RBX,R10
XOR R13D,R13D
LAB_00137c8a:
MOV R14D,R13D
MOV R12D,R15D
MOV R15B,byte ptr [RBX]
LEA EDI,[R15 + -0x30]
CMP DIL,0xa
JC 0x00137cbe
LEA EDI,[R15 + -0x41]
CMP DIL,0x19
JA 0x00137cad
ADD R15B,0xc9
JMP 0x00137cbb
LAB_00137cad:
LEA EDI,[R15 + -0x61]
CMP DIL,0x19
JA 0x00137cfd
ADD R15B,0xa9
LAB_00137cbb:
MOV EDI,R15D
LAB_00137cbe:
MOVZX EDI,DIL
CMP EDI,ECX
JGE 0x00137cfd
MOV R15D,0x1
CMP R14D,EAX
JBE 0x00137cd6
MOV R13D,R14D
JMP 0x00137cec
LAB_00137cd6:
JNZ 0x00137cdf
MOV R13D,EAX
CMP EDX,EDI
JC 0x00137cec
LAB_00137cdf:
IMUL R14D,ECX
ADD R14D,EDI
MOV R13D,R14D
MOV R15D,R12D
LAB_00137cec:
INC RBX
CMP RBX,R11
JNZ 0x00137c8a
MOV R14D,R13D
MOV RBX,R11
MOV R12D,R15D
LAB_00137cfd:
TEST R12D,R12D
SETZ AL
MOV R15D,R14D
MOV R11,RBX
MOV RDI,qword ptr [RBP + -0x30]
JMP 0x00137d11
LAB_00137d0f:
MOV AL,0x1
LAB_00137d11:
CMP R11,R10
JZ 0x00137d32
TEST R8,R8
JZ 0x00137d1e
MOV qword ptr [R8],R11
LAB_00137d1e:
TEST AL,AL
JZ 0x00137d45
MOV RAX,R15
NEG RAX
CMP DIL,0x2d
CMOVNZ RAX,R15
JMP 0x00137d51
LAB_00137d32:
MOV dword ptr [R9],0x21
TEST R8,R8
JZ 0x00137d41
MOV qword ptr [R8],RSI
LAB_00137d41:
XOR EAX,EAX
JMP 0x00137d51
LAB_00137d45:
MOV dword ptr [R9],0x22
MOV EAX,0xffffffff
LAB_00137d51:
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
ulong my_strntoul_8bit(long param_1,byte *param_2,long param_3,uint param_4,ulong *param_5,
int4 *param_6)
{
byte bVar1;
byte bVar2;
uint uVar3;
uint uVar4;
byte *pbVar5;
byte *pbVar6;
byte *pbVar7;
int iVar8;
uint uVar9;
byte bVar10;
ulong uVar11;
ulong uVar12;
bool bVar13;
*param_6 = 0;
pbVar7 = param_2 + param_3;
pbVar6 = param_2;
if (0 < param_3) {
do {
if ((*(byte *)(*(long *)(param_1 + 0x40) + 1 + (ulong)*pbVar6) & 8) == 0) break;
pbVar6 = pbVar6 + 1;
} while (pbVar6 < pbVar7);
}
if (pbVar6 != pbVar7) {
bVar1 = *pbVar6;
pbVar6 = pbVar6 + ((bVar1 - 0x2b & 0xfd) == 0);
uVar11 = 0;
if (pbVar6 == pbVar7) {
bVar13 = true;
}
else {
uVar9 = 0;
pbVar5 = pbVar6;
do {
iVar8 = (int)uVar11;
bVar2 = *pbVar5;
bVar10 = bVar2 - 0x30;
if (9 < bVar10) {
if ((byte)(bVar2 + 0xbf) < 0x1a) {
bVar10 = bVar2 - 0x37;
}
else {
if (0x19 < (byte)(bVar2 + 0x9f)) goto LAB_00137cfd;
bVar10 = bVar2 + 0xa9;
}
}
if ((int)param_4 <= (int)(uint)bVar10) goto LAB_00137cfd;
uVar12 = 1;
uVar4 = (uint)(0xffffffff / (ulong)param_4);
uVar3 = uVar9;
if ((uVar9 <= uVar4) &&
((uVar9 != uVar4 || (uVar3 = uVar4, (uint)bVar10 <= (uint)(0xffffffff % (ulong)param_4)))
)) {
uVar12 = uVar11;
uVar3 = uVar9 * param_4 + (uint)bVar10;
}
uVar9 = uVar3;
pbVar5 = pbVar5 + 1;
uVar11 = uVar12;
} while (pbVar5 != pbVar7);
iVar8 = (int)uVar12;
pbVar5 = pbVar7;
LAB_00137cfd:
bVar13 = iVar8 == 0;
uVar11 = (ulong)uVar9;
pbVar7 = pbVar5;
}
if (pbVar7 != pbVar6) {
if (param_5 != (ulong *)0x0) {
*param_5 = (ulong)pbVar7;
}
if (bVar13) {
if (bVar1 == 0x2d) {
return -uVar11;
}
return uVar11;
}
*param_6 = 0x22;
return 0xffffffff;
}
}
*param_6 = 0x21;
if (param_5 != (ulong *)0x0) {
*param_5 = (ulong)param_2;
}
return 0;
}
| |
44,362 | mthd_stmt_get_param_metadata | eloqsql/libmariadb/libmariadb/mariadb_stmt.c | my_bool mthd_stmt_get_param_metadata(MYSQL_STMT *stmt)
{
MYSQL_DATA *result;
if (!(result= stmt->mysql->methods->db_read_rows(stmt->mysql, (MYSQL_FIELD *)0,
7 + ma_extended_type_info_rows(stmt->mysql))))
return(1);
free_rows(result);
return(0);
} | O0 | c | mthd_stmt_get_param_metadata:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x4d0(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x30280
movq -0x28(%rbp), %rdi
movl %eax, %edx
movq -0x20(%rbp), %rax
addl $0x7, %edx
xorl %ecx, %ecx
movl %ecx, %esi
callq *%rax
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
jne 0x3025f
movb $0x1, -0x1(%rbp)
jmp 0x3026c
movq -0x18(%rbp), %rdi
callq 0x1bf30
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| mthd_stmt_get_param_metadata:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov rax, [rbp+var_10]
mov rax, [rax+38h]
mov rax, [rax+4D0h]
mov rax, [rax+28h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rax, [rax+38h]
mov [rbp+var_28], rax
mov rax, [rbp+var_10]
mov rdi, [rax+38h]
call ma_extended_type_info_rows
mov rdi, [rbp+var_28]
mov edx, eax
mov rax, [rbp+var_20]
add edx, 7
xor ecx, ecx
mov esi, ecx
call rax
mov [rbp+var_18], rax
cmp rax, 0
jnz short loc_3025F
mov [rbp+var_1], 1
jmp short loc_3026C
loc_3025F:
mov rdi, [rbp+var_18]
call free_rows
mov [rbp+var_1], 0
loc_3026C:
mov al, [rbp+var_1]
add rsp, 30h
pop rbp
retn
| char mthd_stmt_get_param_metadata(long long a1)
{
int v1; // eax
long long v3; // [rsp+8h] [rbp-28h]
long long ( *v4)(long long, _QWORD, _QWORD); // [rsp+10h] [rbp-20h]
long long v5; // [rsp+18h] [rbp-18h]
v4 = *(long long ( **)(long long, _QWORD, _QWORD))(*(_QWORD *)(*(_QWORD *)(a1 + 56) + 1232LL) + 40LL);
v3 = *(_QWORD *)(a1 + 56);
v1 = ma_extended_type_info_rows(v3);
v5 = v4(v3, 0LL, (unsigned int)(v1 + 7));
if ( !v5 )
return 1;
free_rows(v5);
return 0;
}
| mthd_stmt_get_param_metadata:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x38]
MOV RAX,qword ptr [RAX + 0x4d0]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x38]
MOV qword ptr [RBP + -0x28],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x38]
CALL 0x00130280
MOV RDI,qword ptr [RBP + -0x28]
MOV EDX,EAX
MOV RAX,qword ptr [RBP + -0x20]
ADD EDX,0x7
XOR ECX,ECX
MOV ESI,ECX
CALL RAX
MOV qword ptr [RBP + -0x18],RAX
CMP RAX,0x0
JNZ 0x0013025f
MOV byte ptr [RBP + -0x1],0x1
JMP 0x0013026c
LAB_0013025f:
MOV RDI,qword ptr [RBP + -0x18]
CALL 0x0011bf30
MOV byte ptr [RBP + -0x1],0x0
LAB_0013026c:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x30
POP RBP
RET
|
bool mthd_stmt_get_param_metadata(long param_1)
{
code *pcVar1;
int8 uVar2;
int iVar3;
long lVar4;
bool local_9;
pcVar1 = *(code **)(*(long *)(*(long *)(param_1 + 0x38) + 0x4d0) + 0x28);
uVar2 = *(int8 *)(param_1 + 0x38);
iVar3 = ma_extended_type_info_rows(*(int8 *)(param_1 + 0x38));
lVar4 = (*pcVar1)(uVar2,0,iVar3 + 7);
if (lVar4 != 0) {
free_rows(lVar4);
}
local_9 = lVar4 == 0;
return local_9;
}
| |
44,363 | my_snprintf_8bit | eloqsql/strings/ctype-simple.c | size_t my_snprintf_8bit(CHARSET_INFO *cs __attribute__((unused)),
char* to, size_t n __attribute__((unused)),
const char* fmt, ...)
{
va_list args;
size_t result;
va_start(args,fmt);
result= my_vsnprintf(to, n, fmt, args);
va_end(args);
return result;
} | O0 | c | my_snprintf_8bit:
pushq %rbp
movq %rsp, %rbp
subq $0x100, %rsp # imm = 0x100
testb %al, %al
je 0x29efe
movaps %xmm0, -0xd0(%rbp)
movaps %xmm1, -0xc0(%rbp)
movaps %xmm2, -0xb0(%rbp)
movaps %xmm3, -0xa0(%rbp)
movaps %xmm4, -0x90(%rbp)
movaps %xmm5, -0x80(%rbp)
movaps %xmm6, -0x70(%rbp)
movaps %xmm7, -0x60(%rbp)
movq %r9, -0xd8(%rbp)
movq %r8, -0xe0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
leaq -0x100(%rbp), %rax
movq %rax, -0x30(%rbp)
leaq 0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movl $0x30, -0x3c(%rbp)
movl $0x20, -0x40(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
leaq -0x40(%rbp), %rcx
callq 0x28280
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
addq $0x100, %rsp # imm = 0x100
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_snprintf_8bit:
push rbp
mov rbp, rsp
sub rsp, 100h
test al, al
jz short loc_29EFE
movaps [rbp+var_D0], xmm0
movaps [rbp+var_C0], xmm1
movaps [rbp+var_B0], xmm2
movaps [rbp+var_A0], xmm3
movaps [rbp+var_90], xmm4
movaps [rbp+var_80], xmm5
movaps [rbp+var_70], xmm6
movaps [rbp+var_60], xmm7
loc_29EFE:
mov [rbp+var_D8], r9
mov [rbp+var_E0], r8
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
lea rax, [rbp+var_100]
mov [rbp+var_30], rax
lea rax, [rbp+arg_0]
mov [rbp+var_38], rax
mov [rbp+var_3C], 30h ; '0'
mov [rbp+var_40], 20h ; ' '
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
lea rcx, [rbp+var_40]
call my_vsnprintf
mov [rbp+var_48], rax
mov rax, [rbp+var_48]
add rsp, 100h
pop rbp
retn
| _BYTE * my_snprintf_8bit(
long long a1,
_BYTE *a2,
long long a3,
char *a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14,
char a15)
{
char v16; // [rsp+0h] [rbp-100h] BYREF
long long v17; // [rsp+20h] [rbp-E0h]
long long v18; // [rsp+28h] [rbp-D8h]
__m128 v19; // [rsp+30h] [rbp-D0h]
__m128 v20; // [rsp+40h] [rbp-C0h]
__m128 v21; // [rsp+50h] [rbp-B0h]
__m128 v22; // [rsp+60h] [rbp-A0h]
__m128 v23; // [rsp+70h] [rbp-90h]
__m128 v24; // [rsp+80h] [rbp-80h]
__m128 v25; // [rsp+90h] [rbp-70h]
__m128 v26; // [rsp+A0h] [rbp-60h]
int v27[2]; // [rsp+C0h] [rbp-40h] BYREF
char *v28; // [rsp+C8h] [rbp-38h]
char *v29; // [rsp+D0h] [rbp-30h]
char *v30; // [rsp+E0h] [rbp-20h]
long long v31; // [rsp+E8h] [rbp-18h]
_BYTE *v32; // [rsp+F0h] [rbp-10h]
long long v33; // [rsp+F8h] [rbp-8h]
v19 = a7;
v20 = a8;
v21 = a9;
v22 = a10;
v23 = a11;
v24 = a12;
v25 = a13;
v26 = a14;
v18 = a6;
v17 = a5;
v33 = a1;
v32 = a2;
v31 = a3;
v30 = a4;
v29 = &v16;
v28 = &a15;
v27[1] = 48;
v27[0] = 32;
return my_vsnprintf(a2, a3, a4, v27);
}
| my_snprintf_8bit:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x100
TEST AL,AL
JZ 0x00129efe
MOVAPS xmmword ptr [RBP + -0xd0],XMM0
MOVAPS xmmword ptr [RBP + -0xc0],XMM1
MOVAPS xmmword ptr [RBP + -0xb0],XMM2
MOVAPS xmmword ptr [RBP + -0xa0],XMM3
MOVAPS xmmword ptr [RBP + -0x90],XMM4
MOVAPS xmmword ptr [RBP + -0x80],XMM5
MOVAPS xmmword ptr [RBP + -0x70],XMM6
MOVAPS xmmword ptr [RBP + -0x60],XMM7
LAB_00129efe:
MOV qword ptr [RBP + -0xd8],R9
MOV qword ptr [RBP + -0xe0],R8
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
LEA RAX,[RBP + -0x100]
MOV qword ptr [RBP + -0x30],RAX
LEA RAX,[RBP + 0x10]
MOV qword ptr [RBP + -0x38],RAX
MOV dword ptr [RBP + -0x3c],0x30
MOV dword ptr [RBP + -0x40],0x20
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
LEA RCX,[RBP + -0x40]
CALL 0x00128280
MOV qword ptr [RBP + -0x48],RAX
MOV RAX,qword ptr [RBP + -0x48]
ADD RSP,0x100
POP RBP
RET
|
int8
my_snprintf_8bit(int8 param_1,int8 param_2,int8 param_3,int8 param_4,
int8 param_5,int8 param_6,int8 param_7,int8 param_8,
int8 param_9,int8 param_10,int8 param_11,int8 param_12,
int8 param_13,int8 param_14)
{
char in_AL;
int8 uVar1;
int1 local_108 [32];
int8 local_e8;
int8 local_e0;
int8 local_d8;
int8 local_c8;
int8 local_b8;
int8 local_a8;
int8 local_98;
int8 local_88;
int8 local_78;
int8 local_68;
int4 local_48;
int4 local_44;
int1 *local_40;
int1 *local_38;
int8 local_28;
int8 local_20;
int8 local_18;
int8 local_10;
if (in_AL != '\0') {
local_d8 = param_1;
local_c8 = param_2;
local_b8 = param_3;
local_a8 = param_4;
local_98 = param_5;
local_88 = param_6;
local_78 = param_7;
local_68 = param_8;
}
local_38 = local_108;
local_40 = &stack0x00000008;
local_44 = 0x30;
local_48 = 0x20;
local_e8 = param_13;
local_e0 = param_14;
local_28 = param_12;
local_20 = param_11;
local_18 = param_10;
local_10 = param_9;
uVar1 = my_vsnprintf(param_10,param_11,param_12,&local_48);
return uVar1;
}
| |
44,364 | OpenSubdiv::v3_6_0::Bfr::VertexDescriptor::Initialize(int) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/vertexDescriptor.cpp | bool
VertexDescriptor::Initialize(int numFaces) {
// Mark invalid if too many or too few incident faces specified:
_isValid = (numFaces > 0) && (numFaces <= Limits::MaxValence());
_numFaces = _isValid ? (short) numFaces : 0;
// Initialize all other members regardless of the above:
_vertSharpness = 0.0f;
_isManifold = false;
_isBoundary = false;
_hasFaceSizes = false;
_hasEdgeSharpness = false;
_isInitialized = _isValid;
_isFinalized = false;
return _isInitialized;
} | O0 | cpp | OpenSubdiv::v3_6_0::Bfr::VertexDescriptor::Initialize(int):
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
xorl %eax, %eax
cmpl $0x0, -0xc(%rbp)
movb %al, -0xd(%rbp)
jle 0x1c610a
movl -0xc(%rbp), %eax
movl %eax, -0x1c(%rbp)
callq 0xca7a0
movl %eax, %ecx
movl -0x1c(%rbp), %eax
cmpl %ecx, %eax
setle %al
movb %al, -0xd(%rbp)
movq -0x18(%rbp), %rax
movb -0xd(%rbp), %cl
andb $0x1, %cl
movzbl %cl, %ecx
movb %cl, %dl
movb (%rax), %cl
andb $0x1, %dl
andb $-0x2, %cl
orb %dl, %cl
movb %cl, (%rax)
movb (%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpw $0x0, %ax
je 0x1c613b
movl -0xc(%rbp), %eax
cwtl
movl %eax, -0x20(%rbp)
jmp 0x1c6142
xorl %eax, %eax
movl %eax, -0x20(%rbp)
jmp 0x1c6142
movq -0x18(%rbp), %rax
movl -0x20(%rbp), %ecx
movw %cx, 0x2(%rax)
xorps %xmm0, %xmm0
movss %xmm0, 0x4(%rax)
movb (%rax), %cl
andb $-0x9, %cl
orb $0x0, %cl
movb %cl, (%rax)
movb (%rax), %cl
andb $-0x11, %cl
orb $0x0, %cl
movb %cl, (%rax)
movb (%rax), %cl
andb $-0x21, %cl
orb $0x0, %cl
movb %cl, (%rax)
movb (%rax), %cl
andb $-0x41, %cl
orb $0x0, %cl
movb %cl, (%rax)
movb (%rax), %cl
andb $0x1, %cl
movzbl %cl, %ecx
movb %cl, %dl
movb (%rax), %cl
andb $0x1, %dl
shlb %dl
andb $-0x3, %cl
orb %dl, %cl
movb %cl, (%rax)
movb (%rax), %cl
andb $-0x5, %cl
orb $0x0, %cl
movb %cl, (%rax)
movb (%rax), %al
shrb %al
andb $0x1, %al
movzbl %al, %eax
cmpw $0x0, %ax
setne %al
andb $0x1, %al
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| _ZN10OpenSubdiv6v3_6_03Bfr16VertexDescriptor10InitializeEi:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov rax, [rbp+var_8]
mov [rbp+var_18], rax
xor eax, eax
cmp [rbp+var_C], 0
mov [rbp+var_D], al
jle short loc_1C610A
mov eax, [rbp+var_C]
mov [rbp+var_1C], eax
call __ZN10OpenSubdiv6v3_6_03Bfr6Limits10MaxValenceEv; OpenSubdiv::v3_6_0::Bfr::Limits::MaxValence(void)
mov ecx, eax
mov eax, [rbp+var_1C]
cmp eax, ecx
setle al
mov [rbp+var_D], al
loc_1C610A:
mov rax, [rbp+var_18]
mov cl, [rbp+var_D]
and cl, 1
movzx ecx, cl
mov dl, cl
mov cl, [rax]
and dl, 1
and cl, 0FEh
or cl, dl
mov [rax], cl
mov al, [rax]
and al, 1
movzx eax, al
cmp ax, 0
jz short loc_1C613B
mov eax, [rbp+var_C]
cwde
mov [rbp+var_20], eax
jmp short loc_1C6142
loc_1C613B:
xor eax, eax
mov [rbp+var_20], eax
jmp short $+2
loc_1C6142:
mov rax, [rbp+var_18]
mov ecx, [rbp+var_20]
mov [rax+2], cx
xorps xmm0, xmm0
movss dword ptr [rax+4], xmm0
mov cl, [rax]
and cl, 0F7h
or cl, 0
mov [rax], cl
mov cl, [rax]
and cl, 0EFh
or cl, 0
mov [rax], cl
mov cl, [rax]
and cl, 0DFh
or cl, 0
mov [rax], cl
mov cl, [rax]
and cl, 0BFh
or cl, 0
mov [rax], cl
mov cl, [rax]
and cl, 1
movzx ecx, cl
mov dl, cl
mov cl, [rax]
and dl, 1
shl dl, 1
and cl, 0FDh
or cl, dl
mov [rax], cl
mov cl, [rax]
and cl, 0FBh
or cl, 0
mov [rax], cl
mov al, [rax]
shr al, 1
and al, 1
movzx eax, al
cmp ax, 0
setnz al
and al, 1
add rsp, 20h
pop rbp
retn
| bool OpenSubdiv::v3_6_0::Bfr::VertexDescriptor::Initialize(
OpenSubdiv::v3_6_0::Bfr::VertexDescriptor *this,
int a2)
{
__int16 v3; // [rsp+0h] [rbp-20h]
bool v4; // [rsp+13h] [rbp-Dh]
v4 = 0;
if ( a2 > 0 )
v4 = a2 <= (int)OpenSubdiv::v3_6_0::Bfr::Limits::MaxValence(this);
*(_BYTE *)this = v4 | *(_BYTE *)this & 0xFE;
if ( (*(_BYTE *)this & 1) != 0 )
v3 = a2;
else
v3 = 0;
*((_WORD *)this + 1) = v3;
*((_DWORD *)this + 1) = 0;
*(_BYTE *)this &= ~8u;
*(_BYTE *)this &= ~0x10u;
*(_BYTE *)this &= ~0x20u;
*(_BYTE *)this &= ~0x40u;
*(_BYTE *)this = (2 * (*(_BYTE *)this & 1)) | *(_BYTE *)this & 0xFD;
*(_BYTE *)this &= ~4u;
return (*(_BYTE *)this & 2) != 0;
}
| |||
44,365 | OpenSubdiv::v3_6_0::Bfr::VertexDescriptor::Initialize(int) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/vertexDescriptor.cpp | bool
VertexDescriptor::Initialize(int numFaces) {
// Mark invalid if too many or too few incident faces specified:
_isValid = (numFaces > 0) && (numFaces <= Limits::MaxValence());
_numFaces = _isValid ? (short) numFaces : 0;
// Initialize all other members regardless of the above:
_vertSharpness = 0.0f;
_isManifold = false;
_isBoundary = false;
_hasFaceSizes = false;
_hasEdgeSharpness = false;
_isInitialized = _isValid;
_isFinalized = false;
return _isInitialized;
} | O1 | cpp | OpenSubdiv::v3_6_0::Bfr::VertexDescriptor::Initialize(int):
leal -0x1(%rsi), %eax
movb (%rdi), %cl
andb $-0x80, %cl
xorl %edx, %edx
cmpl $0xffff, %eax # imm = 0xFFFF
cmovael %edx, %esi
setb %al
orb %al, %cl
movw %si, 0x2(%rdi)
movl %edx, 0x4(%rdi)
leal (%rax,%rax), %edx
orb %cl, %dl
movb %dl, (%rdi)
retq
| _ZN10OpenSubdiv6v3_6_03Bfr16VertexDescriptor10InitializeEi:
lea eax, [rsi-1]
mov cl, [rdi]
and cl, 80h
xor edx, edx
cmp eax, 0FFFFh
cmovnb esi, edx
setb al
or cl, al
mov [rdi+2], si
mov [rdi+4], edx
lea edx, [rax+rax]
or dl, cl
mov [rdi], dl
retn
| bool OpenSubdiv::v3_6_0::Bfr::VertexDescriptor::Initialize(
OpenSubdiv::v3_6_0::Bfr::VertexDescriptor *this,
int a2)
{
unsigned int v2; // eax
bool v3; // cf
bool result; // al
char v5; // cl
v2 = a2 - 1;
v3 = (unsigned int)(a2 - 1) < 0xFFFF;
if ( (unsigned int)(a2 - 1) >= 0xFFFF )
LOWORD(a2) = 0;
result = v2 < 0xFFFF;
v5 = v3 | *(_BYTE *)this & 0x80;
*((_WORD *)this + 1) = a2;
*((_DWORD *)this + 1) = 0;
*(_BYTE *)this = v5 | (2 * v3);
return result;
}
| Initialize:
LEA EAX,[RSI + -0x1]
MOV CL,byte ptr [RDI]
AND CL,0x80
XOR EDX,EDX
CMP EAX,0xffff
CMOVNC ESI,EDX
SETC AL
OR CL,AL
MOV word ptr [RDI + 0x2],SI
MOV dword ptr [RDI + 0x4],EDX
LEA EDX,[RAX + RAX*0x1]
OR DL,CL
MOV byte ptr [RDI],DL
RET
|
/* OpenSubdiv::v3_6_0::Bfr::VertexDescriptor::Initialize(int) */
void __thiscall
OpenSubdiv::v3_6_0::Bfr::VertexDescriptor::Initialize(VertexDescriptor *this,int param_1)
{
int2 uVar1;
bool bVar2;
bVar2 = param_1 - 1U < 0xffff;
uVar1 = (int2)param_1;
if (!bVar2) {
uVar1 = 0;
}
*(int2 *)(this + 2) = uVar1;
*(int4 *)(this + 4) = 0;
*this = (VertexDescriptor)(bVar2 * '\x02' | (byte)*this & 0x80 | bVar2);
return;
}
| |
44,366 | OpenSubdiv::v3_6_0::Bfr::VertexDescriptor::Initialize(int) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/bfr/vertexDescriptor.cpp | bool
VertexDescriptor::Initialize(int numFaces) {
// Mark invalid if too many or too few incident faces specified:
_isValid = (numFaces > 0) && (numFaces <= Limits::MaxValence());
_numFaces = _isValid ? (short) numFaces : 0;
// Initialize all other members regardless of the above:
_vertSharpness = 0.0f;
_isManifold = false;
_isBoundary = false;
_hasFaceSizes = false;
_hasEdgeSharpness = false;
_isInitialized = _isValid;
_isFinalized = false;
return _isInitialized;
} | O3 | cpp | OpenSubdiv::v3_6_0::Bfr::VertexDescriptor::Initialize(int):
testl %esi, %esi
jle 0xa5cde
movb (%rdi), %dl
andb $-0x2, %dl
movl $0x10000, %ecx # imm = 0x10000
cmpl %ecx, %esi
setb %al
cmovbl %esi, %ecx
orb %dl, %al
jmp 0xa5ce4
movb (%rdi), %al
andb $-0x2, %al
xorl %ecx, %ecx
movw %cx, 0x2(%rdi)
movl $0x0, 0x4(%rdi)
leal (%rax,%rax), %ecx
andb $0x2, %cl
movl %eax, %edx
andb $-0x7f, %dl
orb %cl, %dl
movb %dl, (%rdi)
andb $0x1, %al
retq
nop
| _ZN10OpenSubdiv6v3_6_03Bfr16VertexDescriptor10InitializeEi:
test esi, esi
jle short loc_A5CDE
mov dl, [rdi]
and dl, 0FEh
mov ecx, 10000h
cmp esi, ecx
setb al
cmovb ecx, esi
or al, dl
jmp short loc_A5CE4
loc_A5CDE:
mov al, [rdi]
and al, 0FEh
xor ecx, ecx
loc_A5CE4:
mov [rdi+2], cx
mov dword ptr [rdi+4], 0
lea ecx, [rax+rax]
and cl, 2
mov edx, eax
and dl, 81h
or dl, cl
mov [rdi], dl
and al, 1
retn
| char OpenSubdiv::v3_6_0::Bfr::VertexDescriptor::Initialize(
OpenSubdiv::v3_6_0::Bfr::VertexDescriptor *this,
int a2)
{
__int16 v2; // cx
char v3; // al
if ( a2 <= 0 )
{
v3 = *(_BYTE *)this & 0xFE;
v2 = 0;
}
else
{
v2 = 0;
if ( (unsigned int)a2 < 0x10000 )
v2 = a2;
v3 = *(_BYTE *)this & 0xFE | ((unsigned int)a2 < 0x10000);
}
*((_WORD *)this + 1) = v2;
*((_DWORD *)this + 1) = 0;
*(_BYTE *)this = (2 * v3) & 2 | v3 & 0x81;
return v3 & 1;
}
| Initialize:
TEST ESI,ESI
JLE 0x001a5cde
MOV DL,byte ptr [RDI]
AND DL,0xfe
MOV ECX,0x10000
CMP ESI,ECX
SETC AL
CMOVC ECX,ESI
OR AL,DL
JMP 0x001a5ce4
LAB_001a5cde:
MOV AL,byte ptr [RDI]
AND AL,0xfe
XOR ECX,ECX
LAB_001a5ce4:
MOV word ptr [RDI + 0x2],CX
MOV dword ptr [RDI + 0x4],0x0
LEA ECX,[RAX + RAX*0x1]
AND CL,0x2
MOV EDX,EAX
AND DL,0x81
OR DL,CL
MOV byte ptr [RDI],DL
AND AL,0x1
RET
|
/* OpenSubdiv::v3_6_0::Bfr::VertexDescriptor::Initialize(int) */
uint __thiscall
OpenSubdiv::v3_6_0::Bfr::VertexDescriptor::Initialize(VertexDescriptor *this,int param_1)
{
int4 in_EAX;
int3 uVar2;
uint uVar1;
int2 uVar3;
int iVar4;
uVar2 = (int3)((uint)in_EAX >> 8);
if (param_1 < 1) {
uVar1 = CONCAT31(uVar2,*this) & 0xfffffffe;
uVar3 = 0;
}
else {
iVar4 = 0;
if ((uint)param_1 < 0x10000) {
iVar4 = param_1;
}
uVar3 = (int2)iVar4;
uVar1 = CONCAT31(uVar2,(uint)param_1 < 0x10000 | (byte)*this & 0xfe);
}
*(int2 *)(this + 2) = uVar3;
*(int4 *)(this + 4) = 0;
*this = (VertexDescriptor)((byte)uVar1 & 0x81 | (byte)uVar1 * '\x02' & 2);
return uVar1 & 0xffffff01;
}
| |
44,367 | nglog::InitializeVLOG3(nglog::SiteFlag*, int*, char const*, int) | ng-log[P]ng-log/src/vlog_is_on.cc | bool InitializeVLOG3(SiteFlag* site_flag, int32* level_default,
const char* fname, int32 verbose_level) {
std::lock_guard<std::mutex> l(vmodule_mutex);
bool read_vmodule_flag = inited_vmodule;
if (!read_vmodule_flag) {
VLOG2Initializer();
}
// protect the errno global in case someone writes:
// VLOG(..) << "The last error was " << strerror(errno)
int old_errno = errno;
// site_default normally points to FLAGS_v
int32* site_flag_value = level_default;
// Get basename for file
const char* base = strrchr(fname, '/');
#ifdef _WIN32
if (!base) {
base = strrchr(fname, '\\');
}
#endif
base = base ? (base + 1) : fname;
const char* base_end = strchr(base, '.');
size_t base_length =
base_end ? static_cast<size_t>(base_end - base) : strlen(base);
// Trim out trailing "-inl" if any
if (base_length >= 4 && (memcmp(base + base_length - 4, "-inl", 4) == 0)) {
base_length -= 4;
}
// TODO: Trim out _unittest suffix? Perhaps it is better to have
// the extra control and just leave it there.
// find target in vector of modules, replace site_flag_value with
// a module-specific verbose level, if any.
for (const VModuleInfo* info = vmodule_list; info != nullptr;
info = info->next) {
if (SafeFNMatch_(info->module_pattern.c_str(), info->module_pattern.size(),
base, base_length)) {
site_flag_value = &info->vlog_level;
// value at info->vlog_level is now what controls
// the VLOG at the caller site forever
break;
}
}
// Cache the vlog value pointer if --vmodule flag has been parsed.
ANNOTATE_BENIGN_RACE(site_flag,
"*site_flag may be written by several threads,"
" but the value will be the same");
if (read_vmodule_flag) {
site_flag->level = site_flag_value;
// If VLOG flag has been cached to the default site pointer,
// we want to add to the cached list in order to invalidate in case
// SetVModule is called afterwards with new modules.
// The performance penalty here is neglible, because InitializeVLOG3 is
// called once per site.
if (site_flag_value == level_default && !site_flag->base_name) {
site_flag->base_name = base;
site_flag->base_len = base_length;
site_flag->next = cached_site_list;
cached_site_list = site_flag;
}
}
// restore the errno in case something recoverable went wrong during
// the initialization of the VLOG mechanism (see above note "protect the..")
errno = old_errno;
return *site_flag_value >= verbose_level;
} | O3 | cpp | nglog::InitializeVLOG3(nglog::SiteFlag*, int*, char const*, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %ecx, %ebp
movq %rdx, %r14
movq %rsi, %r13
movq %rdi, %r15
leaq 0x1e66b(%rip), %rdi # 0x3fa90
callq 0x7820
testl %eax, %eax
jne 0x2164b
movb 0x1e650(%rip), %al # 0x3fa88
movb %al, 0x7(%rsp)
testb %al, %al
jne 0x2156a
movq %r14, 0x10(%rsp)
movq %r13, 0x18(%rsp)
movq %r15, 0x20(%rsp)
movl %ebp, 0x8(%rsp)
movb $0x0, 0x1e62a(%rip) # 0x3fa88
leaq 0xd1a3(%rip), %rax # 0x2e608
movq (%rax), %rax
movq (%rax), %r15
leaq 0x38(%rsp), %r12
leaq 0x28(%rsp), %r13
xorl %ebp, %ebp
xorl %ebx, %ebx
movq %r15, %rdi
movl $0x3d, %esi
callq 0x71a0
testq %rax, %rax
je 0x21539
movq %rax, %r14
movq %r12, 0x28(%rsp)
movq %r13, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x92c4
movq %r14, %rdi
leaq 0x2b3b(%rip), %rsi # 0x23fea
leaq 0xc(%rsp), %rdx
xorl %eax, %eax
callq 0x74f0
cmpl $0x1, %eax
jne 0x21505
movl $0x30, %edi
callq 0x7530
movq %rax, %r15
addq $0x10, %rax
movq %rax, (%r15)
movq $0x0, 0x8(%r15)
movb $0x0, 0x10(%r15)
movq %r15, %rdi
movq %r13, %rsi
callq 0x72a0
movl 0xc(%rsp), %eax
movl %eax, 0x20(%r15)
testq %rbp, %rbp
je 0x214ff
movq %r15, 0x28(%rbx)
jmp 0x21502
movq %r15, %rbp
movq %r15, %rbx
movq %r14, %rdi
movl $0x2c, %esi
callq 0x71a0
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x2152c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x7540
leaq 0x1(%r14), %r15
testq %r14, %r14
jne 0x21479
testq %rbp, %rbp
je 0x21550
movq 0x1e513(%rip), %rax # 0x3fa58
movq %rax, 0x28(%rbx)
movq %rbp, 0x1e508(%rip) # 0x3fa58
movb $0x1, 0x1e531(%rip) # 0x3fa88
movl 0x8(%rsp), %ebp
movq 0x20(%rsp), %r15
movq 0x18(%rsp), %r13
movq 0x10(%rsp), %r14
movq %r14, %rdi
movl $0x2f, %esi
callq 0x75d0
leaq 0x1(%rax), %rbx
testq %rax, %rax
cmoveq %r14, %rbx
movq %rbx, %rdi
movl $0x2e, %esi
callq 0x71a0
testq %rax, %rax
je 0x2159c
movq %rax, %r12
subq %rbx, %r12
jmp 0x215a7
movq %rbx, %rdi
callq 0x71f0
movq %rax, %r12
cmpq $0x4, %r12
jb 0x215bf
leaq -0x4(%r12), %rax
cmpl $0x6c6e692d, -0x4(%rbx,%r12) # imm = 0x6C6E692D
cmoveq %rax, %r12
movq 0x1e492(%rip), %r14 # 0x3fa58
movq %r13, %rax
testq %r14, %r14
je 0x215f9
movq (%r14), %rdi
movq 0x8(%r14), %rsi
movq %rbx, %rdx
movq %r12, %rcx
callq 0x21174
testb %al, %al
jne 0x215f2
movq 0x28(%r14), %r14
testq %r14, %r14
jne 0x215ce
movq %r13, %rax
jmp 0x215f9
addq $0x20, %r14
movq %r14, %rax
cmpb $0x0, 0x7(%rsp)
je 0x21629
movq %rax, (%r15)
cmpq %r13, %rax
jne 0x21629
cmpq $0x0, 0x8(%r15)
jne 0x21629
movq %rbx, 0x8(%r15)
movq %r12, 0x10(%r15)
movq 0x1e442(%rip), %rcx # 0x3fa60
movq %rcx, 0x18(%r15)
movq %r15, 0x1e437(%rip) # 0x3fa60
cmpl %ebp, (%rax)
setge %bl
leaq 0x1e45b(%rip), %rdi # 0x3fa90
callq 0x73e0
movl %ebx, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %edi
callq 0x7350
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x21671
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x7540
jmp 0x21671
movq %rax, %rbx
leaq 0x1e418(%rip), %rdi # 0x3fa90
callq 0x73e0
movq %rbx, %rdi
callq 0x7980
| _ZN5nglog15InitializeVLOG3EPNS_8SiteFlagEPiPKci:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov ebp, ecx
mov r14, rdx
mov r13, rsi
mov r15, rdi
lea rdi, _ZN5nglogL13vmodule_mutexE; nglog::vmodule_mutex
call _pthread_mutex_lock
test eax, eax
jnz loc_2164B
mov al, cs:_ZN5nglogL14inited_vmoduleE; nglog::inited_vmodule
mov [rsp+78h+var_71], al
test al, al
jnz loc_2156A
mov [rsp+78h+var_68], r14
mov [rsp+78h+var_60], r13
mov [rsp+78h+var_58], r15
mov [rsp+78h+var_70], ebp
mov cs:_ZN5nglogL14inited_vmoduleE, 0; nglog::inited_vmodule
lea rax, _ZN3fLS13FLAGS_vmoduleB5cxx11E; fLS::FLAGS_vmodule
mov rax, [rax]
mov r15, [rax]
lea r12, [rsp+78h+var_40]
lea r13, [rsp+78h+var_50]
xor ebp, ebp
xor ebx, ebx
loc_21479:
mov rdi, r15
mov esi, 3Dh ; '='
call _strchr
test rax, rax
jz loc_21539
mov r14, rax
mov [rsp+78h+var_50], r12
mov rdi, r13
mov rsi, r15
mov rdx, rax
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 rdi, r14
lea rsi, aD; "=%d"
lea rdx, [rsp+78h+var_6C]
xor eax, eax
call ___isoc99_sscanf
cmp eax, 1
jnz short loc_21505
mov edi, 30h ; '0'; unsigned __int64
call __Znwm; operator new(ulong)
mov r15, rax
add rax, 10h
mov [r15], rax
mov qword ptr [r15+8], 0
mov byte ptr [r15+10h], 0
mov rdi, r15
mov rsi, r13
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_; std::string::_M_assign(std::string const&)
mov eax, [rsp+78h+var_6C]
mov [r15+20h], eax
test rbp, rbp
jz short loc_214FF
mov [rbx+28h], r15
jmp short loc_21502
loc_214FF:
mov rbp, r15
loc_21502:
mov rbx, r15
loc_21505:
mov rdi, r14
mov esi, 2Ch ; ','
call _strchr
mov r14, rax
mov rdi, [rsp+78h+var_50]; void *
cmp rdi, r12
jz short loc_2152C
mov rsi, [rsp+78h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_2152C:
lea r15, [r14+1]
test r14, r14
jnz loc_21479
loc_21539:
test rbp, rbp
jz short loc_21550
mov rax, cs:_ZN5nglogL12vmodule_listE; nglog::vmodule_list
mov [rbx+28h], rax
mov cs:_ZN5nglogL12vmodule_listE, rbp; nglog::vmodule_list
loc_21550:
mov cs:_ZN5nglogL14inited_vmoduleE, 1; nglog::inited_vmodule
mov ebp, [rsp+78h+var_70]
mov r15, [rsp+78h+var_58]
mov r13, [rsp+78h+var_60]
mov r14, [rsp+78h+var_68]
loc_2156A:
mov rdi, r14
mov esi, 2Fh ; '/'
call _strrchr
lea rbx, [rax+1]
test rax, rax
cmovz rbx, r14
mov rdi, rbx
mov esi, 2Eh ; '.'
call _strchr
test rax, rax
jz short loc_2159C
mov r12, rax
sub r12, rbx
jmp short loc_215A7
loc_2159C:
mov rdi, rbx
call _strlen
mov r12, rax
loc_215A7:
cmp r12, 4
jb short loc_215BF
lea rax, [r12-4]
cmp dword ptr [rbx+r12-4], 6C6E692Dh
cmovz r12, rax
loc_215BF:
mov r14, cs:_ZN5nglogL12vmodule_listE; nglog::vmodule_list
mov rax, r13
test r14, r14
jz short loc_215F9
loc_215CE:
mov rdi, [r14]; this
mov rsi, [r14+8]; char *
mov rdx, rbx; unsigned __int64
mov rcx, r12; char *
call _ZN5nglog5tools12SafeFNMatch_EPKcmS2_m; nglog::tools::SafeFNMatch_(char const*,ulong,char const*,ulong)
test al, al
jnz short loc_215F2
mov r14, [r14+28h]
test r14, r14
jnz short loc_215CE
mov rax, r13
jmp short loc_215F9
loc_215F2:
add r14, 20h ; ' '
mov rax, r14
loc_215F9:
cmp [rsp+78h+var_71], 0
jz short loc_21629
mov [r15], rax
cmp rax, r13
jnz short loc_21629
cmp qword ptr [r15+8], 0
jnz short loc_21629
mov [r15+8], rbx
mov [r15+10h], r12
mov rcx, cs:_ZN5nglogL16cached_site_listE; nglog::cached_site_list
mov [r15+18h], rcx
mov cs:_ZN5nglogL16cached_site_listE, r15; nglog::cached_site_list
loc_21629:
cmp [rax], ebp
setnl bl
lea rdi, _ZN5nglogL13vmodule_mutexE; nglog::vmodule_mutex
call _pthread_mutex_unlock
mov eax, ebx
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_2164B:
mov edi, eax; int
call __ZSt20__throw_system_errori; std::__throw_system_error(int)
mov rbx, rax
mov rdi, [rsp+78h+var_50]; void *
cmp rdi, r12
jz short loc_21671
mov rsi, [rsp+78h+var_40]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_21671
mov rbx, rax
loc_21671:
lea rdi, _ZN5nglogL13vmodule_mutexE; nglog::vmodule_mutex
call _pthread_mutex_unlock
mov rdi, rbx
call __Unwind_Resume
| long long nglog::InitializeVLOG3(_QWORD *a1, _DWORD *a2, long long a3, int a4)
{
_DWORD *v6; // r13
_QWORD *v7; // r15
int v8; // eax
_BYTE *v9; // r15
long long v10; // rbp
long long v11; // rbx
long long v12; // rax
long long v13; // r14
long long v14; // r15
long long v15; // r14
long long v16; // rax
long long v17; // rbx
long long v18; // rax
unsigned long long v19; // r8
const char *v20; // r12
long long v21; // r14
_DWORD *v22; // rax
char v24; // [rsp+7h] [rbp-71h]
int v25; // [rsp+8h] [rbp-70h]
int v26; // [rsp+Ch] [rbp-6Ch] BYREF
long long v27; // [rsp+10h] [rbp-68h]
_DWORD *v28; // [rsp+18h] [rbp-60h]
_QWORD *v29; // [rsp+20h] [rbp-58h]
void *v30[2]; // [rsp+28h] [rbp-50h] BYREF
_QWORD v31[8]; // [rsp+38h] [rbp-40h] BYREF
v6 = a2;
v7 = a1;
v8 = pthread_mutex_lock(&nglog::vmodule_mutex);
if ( v8 )
std::__throw_system_error(v8);
v24 = nglog::inited_vmodule;
if ( !nglog::inited_vmodule )
{
v27 = a3;
v28 = a2;
v29 = a1;
v25 = a4;
nglog::inited_vmodule = 0;
v9 = (_BYTE *)fLS::FLAGS_vmodule_buf[abi:cxx11];
v10 = 0LL;
v11 = 0LL;
do
{
v12 = strchr(v9, 61LL);
if ( !v12 )
break;
v13 = v12;
v30[0] = v31;
std::string::_M_construct<char const*>((long long)v30, v9, v12);
if ( (unsigned int)__isoc99_sscanf(v13, "=%d", &v26) == 1 )
{
v14 = operator new(0x30uLL);
*(_QWORD *)v14 = v14 + 16;
*(_QWORD *)(v14 + 8) = 0LL;
*(_BYTE *)(v14 + 16) = 0;
std::string::_M_assign(v14, v30);
*(_DWORD *)(v14 + 32) = v26;
if ( v10 )
*(_QWORD *)(v11 + 40) = v14;
else
v10 = v14;
v11 = v14;
}
v15 = strchr(v13, 44LL);
if ( v30[0] != v31 )
operator delete(v30[0], v31[0] + 1LL);
v9 = (_BYTE *)(v15 + 1);
}
while ( v15 );
if ( v10 )
{
*(_QWORD *)(v11 + 40) = nglog::vmodule_list;
nglog::vmodule_list = v10;
}
nglog::inited_vmodule = 1;
a4 = v25;
v7 = v29;
v6 = v28;
a3 = v27;
}
v16 = strrchr(a3, 47LL);
v17 = v16 + 1;
if ( !v16 )
v17 = a3;
v18 = strchr(v17, 46LL);
if ( v18 )
v20 = (const char *)(v18 - v17);
else
v20 = (const char *)strlen(v17);
if ( (unsigned long long)v20 >= 4 && *(_DWORD *)&v20[v17 - 4] == 1819175213 )
v20 -= 4;
v21 = nglog::vmodule_list;
v22 = v6;
if ( nglog::vmodule_list )
{
while ( !nglog::tools::SafeFNMatch_(*(nglog::tools **)v21, *(const char **)(v21 + 8), v17, v20, v19) )
{
v21 = *(_QWORD *)(v21 + 40);
if ( !v21 )
{
v22 = v6;
goto LABEL_29;
}
}
v22 = (_DWORD *)(v21 + 32);
}
LABEL_29:
if ( v24 )
{
*v7 = v22;
if ( v22 == v6 && !v7[1] )
{
v7[1] = v17;
v7[2] = v20;
v7[3] = nglog::cached_site_list;
nglog::cached_site_list = (long long)v7;
}
}
LOBYTE(v17) = *v22 >= a4;
pthread_mutex_unlock(&nglog::vmodule_mutex);
return (unsigned int)v17;
}
| InitializeVLOG3:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV EBP,ECX
MOV R14,RDX
MOV R13,RSI
MOV R15,RDI
LEA RDI,[0x13fa90]
CALL 0x00107820
TEST EAX,EAX
JNZ 0x0012164b
MOV AL,byte ptr [0x0013fa88]
MOV byte ptr [RSP + 0x7],AL
TEST AL,AL
JNZ 0x0012156a
MOV qword ptr [RSP + 0x10],R14
MOV qword ptr [RSP + 0x18],R13
MOV qword ptr [RSP + 0x20],R15
MOV dword ptr [RSP + 0x8],EBP
MOV byte ptr [0x0013fa88],0x0
LEA RAX,[0x12e608]
MOV RAX,qword ptr [RAX]
MOV R15,qword ptr [RAX]
LEA R12,[RSP + 0x38]
LEA R13,[RSP + 0x28]
XOR EBP,EBP
XOR EBX,EBX
LAB_00121479:
MOV RDI,R15
MOV ESI,0x3d
CALL 0x001071a0
TEST RAX,RAX
JZ 0x00121539
MOV R14,RAX
MOV qword ptr [RSP + 0x28],R12
LAB_00121497:
MOV RDI,R13
MOV RSI,R15
MOV RDX,RAX
CALL 0x001092c4
MOV RDI,R14
LEA RSI,[0x123fea]
LEA RDX,[RSP + 0xc]
XOR EAX,EAX
CALL 0x001074f0
CMP EAX,0x1
JNZ 0x00121505
LAB_001214c0:
MOV EDI,0x30
CALL 0x00107530
MOV R15,RAX
ADD RAX,0x10
MOV qword ptr [R15],RAX
MOV qword ptr [R15 + 0x8],0x0
MOV byte ptr [R15 + 0x10],0x0
MOV RDI,R15
MOV RSI,R13
CALL 0x001072a0
LAB_001214ec:
MOV EAX,dword ptr [RSP + 0xc]
MOV dword ptr [R15 + 0x20],EAX
TEST RBP,RBP
JZ 0x001214ff
MOV qword ptr [RBX + 0x28],R15
JMP 0x00121502
LAB_001214ff:
MOV RBP,R15
LAB_00121502:
MOV RBX,R15
LAB_00121505:
MOV RDI,R14
MOV ESI,0x2c
CALL 0x001071a0
MOV R14,RAX
MOV RDI,qword ptr [RSP + 0x28]
CMP RDI,R12
JZ 0x0012152c
MOV RSI,qword ptr [RSP + 0x38]
INC RSI
CALL 0x00107540
LAB_0012152c:
LEA R15,[R14 + 0x1]
TEST R14,R14
JNZ 0x00121479
LAB_00121539:
TEST RBP,RBP
JZ 0x00121550
MOV RAX,qword ptr [0x0013fa58]
MOV qword ptr [RBX + 0x28],RAX
MOV qword ptr [0x0013fa58],RBP
LAB_00121550:
MOV byte ptr [0x0013fa88],0x1
MOV EBP,dword ptr [RSP + 0x8]
MOV R15,qword ptr [RSP + 0x20]
MOV R13,qword ptr [RSP + 0x18]
MOV R14,qword ptr [RSP + 0x10]
LAB_0012156a:
MOV RDI,R14
MOV ESI,0x2f
CALL 0x001075d0
LEA RBX,[RAX + 0x1]
TEST RAX,RAX
CMOVZ RBX,R14
MOV RDI,RBX
MOV ESI,0x2e
CALL 0x001071a0
TEST RAX,RAX
JZ 0x0012159c
MOV R12,RAX
SUB R12,RBX
JMP 0x001215a7
LAB_0012159c:
MOV RDI,RBX
CALL 0x001071f0
MOV R12,RAX
LAB_001215a7:
CMP R12,0x4
JC 0x001215bf
LEA RAX,[R12 + -0x4]
CMP dword ptr [RBX + R12*0x1 + -0x4],0x6c6e692d
CMOVZ R12,RAX
LAB_001215bf:
MOV R14,qword ptr [0x0013fa58]
MOV RAX,R13
TEST R14,R14
JZ 0x001215f9
LAB_001215ce:
MOV RDI,qword ptr [R14]
MOV RSI,qword ptr [R14 + 0x8]
MOV RDX,RBX
MOV RCX,R12
CALL 0x00121174
TEST AL,AL
JNZ 0x001215f2
MOV R14,qword ptr [R14 + 0x28]
TEST R14,R14
JNZ 0x001215ce
MOV RAX,R13
JMP 0x001215f9
LAB_001215f2:
ADD R14,0x20
MOV RAX,R14
LAB_001215f9:
CMP byte ptr [RSP + 0x7],0x0
JZ 0x00121629
MOV qword ptr [R15],RAX
CMP RAX,R13
JNZ 0x00121629
CMP qword ptr [R15 + 0x8],0x0
JNZ 0x00121629
MOV qword ptr [R15 + 0x8],RBX
MOV qword ptr [R15 + 0x10],R12
MOV RCX,qword ptr [0x0013fa60]
MOV qword ptr [R15 + 0x18],RCX
MOV qword ptr [0x0013fa60],R15
LAB_00121629:
CMP dword ptr [RAX],EBP
SETGE BL
LEA RDI,[0x13fa90]
CALL 0x001073e0
MOV EAX,EBX
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0012164b:
MOV EDI,EAX
CALL 0x00107350
|
/* nglog::InitializeVLOG3(nglog::SiteFlag*, int*, char const*, int) */
ulong nglog::InitializeVLOG3(SiteFlag *param_1,int *param_2,char *param_3,int param_4)
{
char cVar1;
char cVar2;
int iVar3;
char *pcVar4;
string *psVar5;
string *psVar6;
char *pcVar7;
string *psVar8;
ulong uVar9;
string *psVar10;
int4 local_6c;
char *local_68;
string *local_60;
SiteFlag *local_58;
long *local_50 [2];
long local_40 [2];
iVar3 = pthread_mutex_lock((pthread_mutex_t *)vmodule_mutex);
cVar1 = inited_vmodule;
if (iVar3 != 0) {
/* WARNING: Subroutine does not return */
std::__throw_system_error(iVar3);
}
if (inited_vmodule == '\0') {
inited_vmodule = 0;
pcVar7 = *(char **)fLS::FLAGS_vmodule_abi_cxx11_;
psVar6 = (string *)0x0;
psVar10 = (string *)0x0;
local_68 = param_3;
local_60 = (string *)param_2;
local_58 = param_1;
do {
pcVar4 = strchr(pcVar7,0x3d);
psVar5 = psVar6;
psVar8 = psVar10;
if (pcVar4 == (char *)0x0) break;
local_50[0] = local_40;
/* try { // try from 00121497 to 001214a4 has its CatchHandler @ 0012166e */
std::__cxx11::string::_M_construct<char_const*>(local_50,pcVar7,pcVar4);
iVar3 = __isoc99_sscanf(pcVar4,&DAT_00123fea,&local_6c);
if (iVar3 == 1) {
/* try { // try from 001214c0 to 001214eb has its CatchHandler @ 00121652 */
psVar5 = (string *)operator_new(0x30);
*(string **)psVar5 = psVar5 + 0x10;
*(int8 *)(psVar5 + 8) = 0;
psVar5[0x10] = (string)0x0;
std::__cxx11::string::_M_assign(psVar5);
*(int4 *)(psVar5 + 0x20) = local_6c;
psVar8 = psVar5;
if (psVar10 != (string *)0x0) {
*(string **)(psVar6 + 0x28) = psVar5;
psVar8 = psVar10;
}
}
pcVar4 = strchr(pcVar4,0x2c);
if (local_50[0] != local_40) {
operator_delete(local_50[0],local_40[0] + 1);
}
pcVar7 = pcVar4 + 1;
psVar6 = psVar5;
psVar10 = psVar8;
} while (pcVar4 != (char *)0x0);
if (psVar8 != (string *)0x0) {
*(string **)(psVar5 + 0x28) = vmodule_list;
vmodule_list = psVar8;
}
inited_vmodule = '\x01';
param_2 = (int *)local_60;
param_3 = local_68;
param_1 = local_58;
}
pcVar4 = strrchr(param_3,0x2f);
pcVar7 = pcVar4 + 1;
if (pcVar4 == (char *)0x0) {
pcVar7 = param_3;
}
pcVar4 = strchr(pcVar7,0x2e);
if (pcVar4 == (char *)0x0) {
uVar9 = strlen(pcVar7);
}
else {
uVar9 = (long)pcVar4 - (long)pcVar7;
}
psVar6 = vmodule_list;
if ((3 < uVar9) && (*(int *)(pcVar7 + (uVar9 - 4)) == 0x6c6e692d)) {
uVar9 = uVar9 - 4;
}
do {
psVar10 = (string *)param_2;
if (psVar6 == (string *)0x0) {
LAB_001215f9:
if (((cVar1 != '\0') && (*(string **)param_1 = psVar10, psVar10 == (string *)param_2)) &&
(*(long *)(param_1 + 8) == 0)) {
*(char **)(param_1 + 8) = pcVar7;
*(ulong *)(param_1 + 0x10) = uVar9;
*(SiteFlag **)(param_1 + 0x18) = cached_site_list;
cached_site_list = param_1;
}
iVar3 = *(int *)psVar10;
pthread_mutex_unlock((pthread_mutex_t *)vmodule_mutex);
return CONCAT71((int7)((ulong)pcVar7 >> 8),param_4 <= iVar3) & 0xffffffff;
}
cVar2 = tools::SafeFNMatch_(*(char **)psVar6,*(ulong *)(psVar6 + 8),pcVar7,uVar9);
if (cVar2 != '\0') {
psVar10 = psVar6 + 0x20;
goto LAB_001215f9;
}
psVar6 = *(string **)(psVar6 + 0x28);
} while( true );
}
| |
44,368 | my_mb_wc_cp932 | eloqsql/strings/ctype-cp932.c | static int
my_mb_wc_cp932(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= cp932_to_unicode[hi];
return 1;
}
if (s + 2 > e)
return MY_CS_TOOSMALL2;
/* JIS-X-0208-MS [81..9F,E0..FC][40..7E,80..FC] */
if (!(pwc[0]= cp932_to_unicode[(hi << 8) + s[1]]))
return (iscp932head(hi) && iscp932tail(s[1])) ? -2 : MY_CS_ILSEQ;
return 2;
} | O3 | c | my_mb_wc_cp932:
pushq %rbp
movq %rsp, %rbp
movl $0xffffff9b, %eax # imm = 0xFFFFFF9B
cmpq %rcx, %rdx
jae 0xadb3f
movzbl (%rdx), %edi
testb %dil, %dil
js 0xadb25
movq %rdi, (%rsi)
jmp 0xadb3a
leal 0x5f(%rdi), %eax
cmpb $0x3e, %al
ja 0xadb41
leaq 0x4dfdd(%rip), %rax # 0xfbb10
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 0xadb3f
movzbl 0x1(%rdx), %eax
movl %edi, %ecx
shll $0x9, %ecx
leal (%rcx,%rax,2), %eax
leaq 0x4dfae(%rip), %rcx # 0xfbb10
movzwl (%rax,%rcx), %ecx
movq %rcx, (%rsi)
movl $0x2, %eax
testq %rcx, %rcx
jne 0xadb3f
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 0xadb3f
movb 0x1(%rdx), %cl
leal -0x40(%rcx), %edx
movl $0xfffffffe, %eax # imm = 0xFFFFFFFE
cmpb $0x3f, %dl
jb 0xadb3f
movl $0x0, %eax
testb %cl, %cl
jns 0xadb3f
xorl %eax, %eax
cmpb $-0x3, %cl
setae %al
leal -0x2(,%rax,2), %eax
jmp 0xadb3f
| my_mb_wc_cp932:
push rbp
mov rbp, rsp
mov eax, 0FFFFFF9Bh
cmp rdx, rcx
jnb short loc_ADB3F
movzx edi, byte ptr [rdx]
test dil, dil
js short loc_ADB25
mov [rsi], rdi
jmp short loc_ADB3A
loc_ADB25:
lea eax, [rdi+5Fh]
cmp al, 3Eh ; '>'
ja short loc_ADB41
lea rax, cp932_to_unicode
movzx eax, word ptr [rax+rdi*2]
mov [rsi], rax
loc_ADB3A:
mov eax, 1
loc_ADB3F:
pop rbp
retn
loc_ADB41:
lea r8, [rdx+2]
mov eax, 0FFFFFF9Ah
cmp r8, rcx
ja short loc_ADB3F
movzx eax, byte ptr [rdx+1]
mov ecx, edi
shl ecx, 9
lea eax, [rcx+rax*2]
lea rcx, cp932_to_unicode
movzx ecx, word ptr [rax+rcx]
mov [rsi], rcx
mov eax, 2
test rcx, rcx
jnz short loc_ADB3F
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_ADB3F
mov cl, [rdx+1]
lea edx, [rcx-40h]
mov eax, 0FFFFFFFEh
cmp dl, 3Fh ; '?'
jb short loc_ADB3F
mov eax, 0
test cl, cl
jns short loc_ADB3F
xor eax, eax
cmp cl, 0FDh
setnb al
lea eax, ds:0FFFFFFFFFFFFFFFEh[rax*2]
jmp loc_ADB3F
| long long my_mb_wc_cp932(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 = cp932_to_unicode[v5];
return 1LL;
}
result = 4294967194LL;
if ( (unsigned long long)(a3 + 2) <= a4 )
{
v6 = cp932_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_cp932:
PUSH RBP
MOV RBP,RSP
MOV EAX,0xffffff9b
CMP RDX,RCX
JNC 0x001adb3f
MOVZX EDI,byte ptr [RDX]
TEST DIL,DIL
JS 0x001adb25
MOV qword ptr [RSI],RDI
JMP 0x001adb3a
LAB_001adb25:
LEA EAX,[RDI + 0x5f]
CMP AL,0x3e
JA 0x001adb41
LEA RAX,[0x1fbb10]
MOVZX EAX,word ptr [RAX + RDI*0x2]
MOV qword ptr [RSI],RAX
LAB_001adb3a:
MOV EAX,0x1
LAB_001adb3f:
POP RBP
RET
LAB_001adb41:
LEA R8,[RDX + 0x2]
MOV EAX,0xffffff9a
CMP R8,RCX
JA 0x001adb3f
MOVZX EAX,byte ptr [RDX + 0x1]
MOV ECX,EDI
SHL ECX,0x9
LEA EAX,[RCX + RAX*0x2]
LEA RCX,[0x1fbb10]
MOVZX ECX,word ptr [RAX + RCX*0x1]
MOV qword ptr [RSI],RCX
MOV EAX,0x2
TEST RCX,RCX
JNZ 0x001adb3f
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 0x001adb3f
MOV CL,byte ptr [RDX + 0x1]
LEA EDX,[RCX + -0x40]
MOV EAX,0xfffffffe
CMP DL,0x3f
JC 0x001adb3f
MOV EAX,0x0
TEST CL,CL
JNS 0x001adb3f
XOR EAX,EAX
CMP CL,0xfd
SETNC AL
LEA EAX,[-0x2 + RAX*0x2]
JMP 0x001adb3f
|
int my_mb_wc_cp932(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 *)(cp932_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 *)(cp932_to_unicode + (ulong)bVar1 * 2);
}
else {
*param_2 = (ulong)bVar1;
}
iVar3 = 1;
}
return iVar3;
}
| |
44,369 | my_getwd | eloqsql/mysys/my_getwd.c | int my_getwd(char * buf, size_t size, myf MyFlags)
{
char * pos;
DBUG_ENTER("my_getwd");
DBUG_PRINT("my",("buf:%p size: %u MyFlags %lu",
buf, (uint) size, MyFlags));
if (size < 1)
DBUG_RETURN(-1);
if (curr_dir[0]) /* Current pos is saved here */
(void) strmake(buf,&curr_dir[0],size-1);
else
{
#if defined(HAVE_GETCWD)
if (size < 2)
DBUG_RETURN(-1);
if (!getcwd(buf,(uint) (size-2)) && MyFlags & MY_WME)
{
my_errno=errno;
my_error(EE_GETWD,MYF(ME_BELL),errno);
DBUG_RETURN(-1);
}
#elif defined(HAVE_GETWD)
{
char pathname[MAXPATHLEN];
getwd(pathname);
strmake(buf,pathname,size-1);
}
#else
#error "No way to get current directory"
#endif
if (*((pos=strend(buf))-1) != FN_LIBCHAR) /* End with FN_LIBCHAR */
{
pos[0]= FN_LIBCHAR;
pos[1]=0;
}
(void) strmake(&curr_dir[0],buf, (size_t) (FN_REFLEN-1));
}
DBUG_RETURN(0);
} | O3 | c | my_getwd:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl $0xffffffff, %ebx # imm = 0xFFFFFFFF
testq %rsi, %rsi
je 0x83b75
movq %rdx, %r15
movq %rsi, %rdx
movq %rdi, %r14
leaq 0x36d0cc(%rip), %rax # 0x3f0be0
cmpb $0x0, (%rax)
je 0x83b2f
decq %rdx
leaq 0x36d0bd(%rip), %rsi # 0x3f0be0
movq %r14, %rdi
callq 0xb6940
xorl %ebx, %ebx
jmp 0x83b75
cmpq $0x1, %rdx
je 0x83b75
addl $-0x2, %edx
movq %r14, %rdi
movq %rdx, %rsi
callq 0x3a470
testb $0x10, %r15b
je 0x83b82
testq %rax, %rax
jne 0x83b82
callq 0x3ab70
movq %rax, %r14
movl (%rax), %r15d
callq 0x85d6a
movl %r15d, (%rax)
movl (%r14), %edx
movl $0x4, %esi
movl $0x10, %edi
xorl %eax, %eax
callq 0x80bfb
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
callq 0xb68f8
cmpb $0x2f, -0x1(%rax)
je 0x83b95
movw $0x2f, (%rax)
leaq 0x36d044(%rip), %rdi # 0x3f0be0
movl $0x1ff, %edx # imm = 0x1FF
movq %r14, %rsi
jmp 0x83b26
| my_getwd:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov ebx, 0FFFFFFFFh
test rsi, rsi
jz short loc_83B75
mov r15, rdx
mov rdx, rsi
mov r14, rdi
lea rax, curr_dir
cmp byte ptr [rax], 0
jz short loc_83B2F
dec rdx
lea rsi, curr_dir
mov rdi, r14
loc_83B26:
call strmake
xor ebx, ebx
jmp short loc_83B75
loc_83B2F:
cmp rdx, 1
jz short loc_83B75
add edx, 0FFFFFFFEh
mov rdi, r14
mov rsi, rdx
call _getcwd
test r15b, 10h
jz short loc_83B82
test rax, rax
jnz short loc_83B82
call ___errno_location
mov r14, rax
mov r15d, [rax]
call _my_thread_var
mov [rax], r15d
mov edx, [r14]
mov esi, 4
mov edi, 10h
xor eax, eax
call my_error
loc_83B75:
mov eax, ebx
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_83B82:
mov rdi, r14
call strend
cmp byte ptr [rax-1], 2Fh ; '/'
jz short loc_83B95
mov word ptr [rax], 2Fh ; '/'
loc_83B95:
lea rdi, curr_dir
mov edx, 1FFh
mov rsi, r14
jmp short loc_83B26
| long long my_getwd(_BYTE *a1, long long a2, char a3)
{
unsigned int v3; // ebx
_BYTE *v5; // r14
long long v6; // rdx
_BYTE *v7; // rsi
long long v8; // rsi
long long v9; // rax
unsigned int *v10; // r14
unsigned int v11; // r15d
_WORD *v13; // rax
v3 = -1;
if ( a2 )
{
v5 = a1;
if ( curr_dir[0] )
{
v6 = a2 - 1;
v7 = curr_dir;
}
else
{
if ( a2 == 1 )
return v3;
v8 = (unsigned int)(a2 - 2);
v9 = getcwd(a1, v8);
if ( (a3 & 0x10) != 0 && !v9 )
{
v10 = (unsigned int *)__errno_location(a1);
v11 = *v10;
*(_DWORD *)my_thread_var(a1, v8) = v11;
my_error(0x10u, 4LL, *v10);
return v3;
}
v13 = (_WORD *)strend(a1);
if ( *((_BYTE *)v13 - 1) != 47 )
*v13 = 47;
a1 = curr_dir;
v6 = 511LL;
v7 = v5;
}
strmake(a1, v7, v6);
return 0;
}
return v3;
}
| my_getwd:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV EBX,0xffffffff
TEST RSI,RSI
JZ 0x00183b75
MOV R15,RDX
MOV RDX,RSI
MOV R14,RDI
LEA RAX,[0x4f0be0]
CMP byte ptr [RAX],0x0
JZ 0x00183b2f
DEC RDX
LEA RSI,[0x4f0be0]
MOV RDI,R14
LAB_00183b26:
CALL 0x001b6940
XOR EBX,EBX
JMP 0x00183b75
LAB_00183b2f:
CMP RDX,0x1
JZ 0x00183b75
ADD EDX,-0x2
MOV RDI,R14
MOV RSI,RDX
CALL 0x0013a470
TEST R15B,0x10
JZ 0x00183b82
TEST RAX,RAX
JNZ 0x00183b82
CALL 0x0013ab70
MOV R14,RAX
MOV R15D,dword ptr [RAX]
CALL 0x00185d6a
MOV dword ptr [RAX],R15D
MOV EDX,dword ptr [R14]
MOV ESI,0x4
MOV EDI,0x10
XOR EAX,EAX
CALL 0x00180bfb
LAB_00183b75:
MOV EAX,EBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_00183b82:
MOV RDI,R14
CALL 0x001b68f8
CMP byte ptr [RAX + -0x1],0x2f
JZ 0x00183b95
MOV word ptr [RAX],0x2f
LAB_00183b95:
LEA RDI,[0x4f0be0]
MOV EDX,0x1ff
MOV RSI,R14
JMP 0x00183b26
|
int8 my_getwd(char *param_1,long param_2,ulong param_3)
{
int iVar1;
char *pcVar2;
int *piVar3;
int *piVar4;
int2 *puVar5;
char *pcVar6;
if (param_2 == 0) {
return 0xffffffff;
}
if (curr_dir == '\0') {
if (param_2 == 1) {
return 0xffffffff;
}
pcVar2 = getcwd(param_1,(ulong)((int)param_2 - 2));
if (((param_3 & 0x10) != 0) && (pcVar2 == (char *)0x0)) {
piVar3 = __errno_location();
iVar1 = *piVar3;
piVar4 = (int *)_my_thread_var();
*piVar4 = iVar1;
my_error(0x10,4,*piVar3);
return 0xffffffff;
}
puVar5 = (int2 *)strend(param_1);
if (*(char *)((long)puVar5 + -1) != '/') {
*puVar5 = 0x2f;
}
pcVar6 = &curr_dir;
param_2 = 0x1ff;
pcVar2 = param_1;
}
else {
param_2 = param_2 + -1;
pcVar2 = &curr_dir;
pcVar6 = param_1;
}
strmake(pcVar6,pcVar2,param_2);
return 0;
}
| |
44,370 | common_batch_add(llama_batch&, int, int, std::vector<int, std::allocator<int>> const&, bool) | llama.cpp/common/common.cpp | void common_batch_add(
struct llama_batch & batch,
llama_token id,
llama_pos pos,
const std::vector<llama_seq_id> & seq_ids,
bool logits) {
GGML_ASSERT(batch.seq_id[batch.n_tokens] && "llama_batch size exceeded");
batch.token [batch.n_tokens] = id;
batch.pos [batch.n_tokens] = pos;
batch.n_seq_id[batch.n_tokens] = seq_ids.size();
for (size_t i = 0; i < seq_ids.size(); ++i) {
batch.seq_id[batch.n_tokens][i] = seq_ids[i];
}
batch.logits [batch.n_tokens] = logits;
batch.n_tokens++;
} | O3 | cpp | common_batch_add(llama_batch&, int, int, std::vector<int, std::allocator<int>> const&, bool):
pushq %rax
movq 0x28(%rdi), %rax
movslq (%rdi), %r9
cmpq $0x0, (%rax,%r9,8)
je 0x1b171
movq 0x8(%rdi), %r10
movl %esi, (%r10,%r9,4)
movq 0x18(%rdi), %rsi
movslq (%rdi), %r9
movl %edx, (%rsi,%r9,4)
movq (%rcx), %rdx
movq 0x8(%rcx), %rsi
movq %rsi, %rcx
subq %rdx, %rcx
sarq $0x2, %rcx
movq 0x20(%rdi), %r9
movslq (%rdi), %r10
movl %ecx, (%r9,%r10,4)
cmpq %rdx, %rsi
je 0x1b162
cmpq $0x1, %rcx
adcq $0x0, %rcx
xorl %esi, %esi
movl (%rdx,%rsi,4), %r9d
movslq (%rdi), %r10
movq (%rax,%r10,8), %r10
movl %r9d, (%r10,%rsi,4)
incq %rsi
cmpq %rsi, %rcx
jne 0x1b14b
movq 0x30(%rdi), %rax
movslq (%rdi), %rcx
movb %r8b, (%rax,%rcx)
incl (%rdi)
popq %rax
retq
leaq 0x12410(%rip), %rdi # 0x2d588
leaq 0x12446(%rip), %rdx # 0x2d5c5
leaq 0x12a04(%rip), %rcx # 0x2db8a
movl $0x478, %esi # imm = 0x478
xorl %eax, %eax
callq 0x15870
| _Z16common_batch_addR11llama_batchiiRKSt6vectorIiSaIiEEb:
push rax
mov rax, [rdi+28h]
movsxd r9, dword ptr [rdi]
cmp qword ptr [rax+r9*8], 0
jz short loc_1B171
mov r10, [rdi+8]
mov [r10+r9*4], esi
mov rsi, [rdi+18h]
movsxd r9, dword ptr [rdi]
mov [rsi+r9*4], edx
mov rdx, [rcx]
mov rsi, [rcx+8]
mov rcx, rsi
sub rcx, rdx
sar rcx, 2
mov r9, [rdi+20h]
movsxd r10, dword ptr [rdi]
mov [r9+r10*4], ecx
cmp rsi, rdx
jz short loc_1B162
cmp rcx, 1
adc rcx, 0
xor esi, esi
loc_1B14B:
mov r9d, [rdx+rsi*4]
movsxd r10, dword ptr [rdi]
mov r10, [rax+r10*8]
mov [r10+rsi*4], r9d
inc rsi
cmp rcx, rsi
jnz short loc_1B14B
loc_1B162:
mov rax, [rdi+30h]
movsxd rcx, dword ptr [rdi]
mov [rax+rcx], r8b
inc dword ptr [rdi]
pop rax
retn
loc_1B171:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aBatchSeqIdBatc; "batch.seq_id[batch.n_tokens] && \"llama"...
mov esi, 478h
xor eax, eax
call _ggml_abort
| long long common_batch_add(int *a1, int a2, int a3, long long *a4, char a5)
{
long long v5; // rax
long long v6; // rax
long long v7; // r9
long long v8; // rdx
long long v9; // rsi
long long v10; // rcx
long long v11; // rcx
long long v12; // rsi
long long v14; // [rsp-8h] [rbp-8h]
v14 = v5;
v6 = *((_QWORD *)a1 + 5);
v7 = *a1;
if ( *(_QWORD *)(v6 + 8 * v7) )
{
*(_DWORD *)(*((_QWORD *)a1 + 1) + 4 * v7) = a2;
*(_DWORD *)(*((_QWORD *)a1 + 3) + 4LL * *a1) = a3;
v8 = *a4;
v9 = a4[1];
v10 = (v9 - *a4) >> 2;
*(_DWORD *)(*((_QWORD *)a1 + 4) + 4LL * *a1) = v10;
if ( v9 != v8 )
{
v11 = (v10 == 0) + v10;
v12 = 0LL;
do
{
*(_DWORD *)(*(_QWORD *)(v6 + 8LL * *a1) + 4 * v12) = *(_DWORD *)(v8 + 4 * v12);
++v12;
}
while ( v11 != v12 );
}
*(_BYTE *)(*((_QWORD *)a1 + 6) + (*a1)++) = a5;
return v14;
}
else
{
ggml_abort(
"/workspace/llm4binary/github2025/llama.cpp/common/common.cpp",
1144LL,
"GGML_ASSERT(%s) failed",
"batch.seq_id[batch.n_tokens] && \"llama_batch size exceeded\"");
return common_lcp();
}
}
| common_batch_add:
PUSH RAX
MOV RAX,qword ptr [RDI + 0x28]
MOVSXD R9,dword ptr [RDI]
CMP qword ptr [RAX + R9*0x8],0x0
JZ 0x0011b171
MOV R10,qword ptr [RDI + 0x8]
MOV dword ptr [R10 + R9*0x4],ESI
MOV RSI,qword ptr [RDI + 0x18]
MOVSXD R9,dword ptr [RDI]
MOV dword ptr [RSI + R9*0x4],EDX
MOV RDX,qword ptr [RCX]
MOV RSI,qword ptr [RCX + 0x8]
MOV RCX,RSI
SUB RCX,RDX
SAR RCX,0x2
MOV R9,qword ptr [RDI + 0x20]
MOVSXD R10,dword ptr [RDI]
MOV dword ptr [R9 + R10*0x4],ECX
CMP RSI,RDX
JZ 0x0011b162
CMP RCX,0x1
ADC RCX,0x0
XOR ESI,ESI
LAB_0011b14b:
MOV R9D,dword ptr [RDX + RSI*0x4]
MOVSXD R10,dword ptr [RDI]
MOV R10,qword ptr [RAX + R10*0x8]
MOV dword ptr [R10 + RSI*0x4],R9D
INC RSI
CMP RCX,RSI
JNZ 0x0011b14b
LAB_0011b162:
MOV RAX,qword ptr [RDI + 0x30]
MOVSXD RCX,dword ptr [RDI]
MOV byte ptr [RAX + RCX*0x1],R8B
INC dword ptr [RDI]
POP RAX
RET
LAB_0011b171:
LEA RDI,[0x12d588]
LEA RDX,[0x12d5c5]
LEA RCX,[0x12db8a]
MOV ESI,0x478
XOR EAX,EAX
CALL 0x00115870
|
/* common_batch_add(llama_batch&, int, int, std::vector<int, std::allocator<int> > const&, bool) */
long common_batch_add(llama_batch *param_1,int param_2,int param_3,vector *param_4,bool param_5)
{
long in_RAX;
long lVar1;
long lVar2;
long lVar3;
long lVar4;
long *plVar5;
char *pcVar6;
lVar3 = *(long *)(param_1 + 0x28);
if (*(long *)(lVar3 + (long)*(int *)param_1 * 8) != 0) {
*(int *)(*(long *)(param_1 + 8) + (long)*(int *)param_1 * 4) = param_2;
*(int *)(*(long *)(param_1 + 0x18) + (long)*(int *)param_1 * 4) = param_3;
lVar1 = *(long *)param_4;
lVar4 = *(long *)(param_4 + 8);
lVar2 = lVar4 - lVar1 >> 2;
*(int *)(*(long *)(param_1 + 0x20) + (long)*(int *)param_1 * 4) = (int)lVar2;
if (lVar4 != lVar1) {
lVar4 = 0;
do {
*(int4 *)(*(long *)(lVar3 + (long)*(int *)param_1 * 8) + lVar4 * 4) =
*(int4 *)(lVar1 + lVar4 * 4);
lVar4 = lVar4 + 1;
} while (lVar2 + (ulong)(lVar2 == 0) != lVar4);
}
*(bool *)(*(long *)(param_1 + 0x30) + (long)*(int *)param_1) = param_5;
*(int *)param_1 = *(int *)param_1 + 1;
return in_RAX;
}
pcVar6 = "/workspace/llm4binary/github2025/llama.cpp/common/common.cpp";
plVar5 = (long *)0x478;
ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/common.cpp",0x478,
"GGML_ASSERT(%s) failed",
"batch.seq_id[batch.n_tokens] && \"llama_batch size exceeded\"");
lVar3 = *(long *)((long)pcVar6 + 8) - *(long *)pcVar6;
if (lVar3 == 0) {
lVar1 = 0;
}
else {
lVar3 = lVar3 >> 2;
lVar1 = plVar5[1] - *plVar5 >> 2;
lVar3 = lVar3 + (ulong)(lVar3 == 0);
lVar4 = 0;
while (lVar1 != lVar4) {
if (*(int *)(*(long *)pcVar6 + lVar4 * 4) != *(int *)(*plVar5 + lVar4 * 4)) {
return lVar4;
}
lVar4 = lVar4 + 1;
if (lVar3 == lVar4) {
return lVar3;
}
}
}
return lVar1;
}
| |
44,371 | translog_interpret_file_header | eloqsql/storage/maria/ma_loghandler.c | void translog_interpret_file_header(LOGHANDLER_FILE_INFO *desc,
uchar *page_buff)
{
uchar *ptr;
ptr= page_buff + sizeof(maria_trans_file_magic);
desc->timestamp= uint8korr(ptr);
ptr+= 8;
desc->maria_version= uint4korr(ptr);
ptr+= 4;
desc->mysql_version= uint4korr(ptr);
ptr+= 4;
desc->server_id= uint4korr(ptr);
ptr+= 4;
desc->page_size= uint2korr(ptr) + 1;
ptr+= 2;
desc->file_number= uint3korr(ptr);
ptr+= 3;
desc->max_lsn= lsn_korr(ptr);
} | O0 | c | translog_interpret_file_header:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
addq $0xc, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x18(%rbp), %rax
addq $0x8, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl (%rax), %eax
movl %eax, %ecx
movq -0x8(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl (%rax), %eax
movl %eax, %ecx
movq -0x8(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x18(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl (%rax), %eax
movl %eax, %ecx
movq -0x8(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x18(%rbp), %rax
addq $0x4, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movzwl (%rax), %eax
addl $0x1, %eax
movslq %eax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x28(%rax)
movq -0x18(%rbp), %rax
addq $0x2, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
movq -0x18(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x18(%rbp), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movl %eax, %eax
movl %eax, %ecx
movq -0x8(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x18(%rbp), %rax
addq $0x3, %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rax
movzbl (%rax), %eax
movq -0x18(%rbp), %rcx
movzbl 0x1(%rcx), %ecx
shll $0x8, %ecx
orl %ecx, %eax
movq -0x18(%rbp), %rcx
movzbl 0x2(%rcx), %ecx
shll $0x10, %ecx
orl %ecx, %eax
movl %eax, %eax
movl %eax, %ecx
shlq $0x20, %rcx
movq -0x18(%rbp), %rax
movl 0x3(%rax), %eax
orq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
popq %rbp
retq
nopl (%rax)
| translog_interpret_file_header:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov rax, [rbp+var_10]
add rax, 0Ch
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov rcx, [rax]
mov rax, [rbp+var_8]
mov [rax+8], rcx
mov rax, [rbp+var_18]
add rax, 8
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov eax, [rax]
mov ecx, eax
mov rax, [rbp+var_8]
mov [rax+10h], rcx
mov rax, [rbp+var_18]
add rax, 4
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov eax, [rax]
mov ecx, eax
mov rax, [rbp+var_8]
mov [rax+18h], rcx
mov rax, [rbp+var_18]
add rax, 4
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
mov eax, [rax]
mov ecx, eax
mov rax, [rbp+var_8]
mov [rax+20h], rcx
mov rax, [rbp+var_18]
add rax, 4
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
movzx eax, word ptr [rax]
add eax, 1
movsxd rcx, eax
mov rax, [rbp+var_8]
mov [rax+28h], rcx
mov rax, [rbp+var_18]
add rax, 2
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
or eax, ecx
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+2]
shl ecx, 10h
or eax, ecx
mov eax, eax
mov ecx, eax
mov rax, [rbp+var_8]
mov [rax+30h], rcx
mov rax, [rbp+var_18]
add rax, 3
mov [rbp+var_18], rax
mov rax, [rbp+var_18]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+1]
shl ecx, 8
or eax, ecx
mov rcx, [rbp+var_18]
movzx ecx, byte ptr [rcx+2]
shl ecx, 10h
or eax, ecx
mov eax, eax
mov ecx, eax
shl rcx, 20h
mov rax, [rbp+var_18]
mov eax, [rax+3]
or rcx, rax
mov rax, [rbp+var_8]
mov [rax], rcx
pop rbp
retn
| unsigned long long * translog_interpret_file_header(unsigned long long *a1, long long a2)
{
unsigned long long *result; // rax
a1[1] = *(_QWORD *)(a2 + 12);
a1[2] = *(unsigned int *)(a2 + 20);
a1[3] = *(unsigned int *)(a2 + 24);
a1[4] = *(unsigned int *)(a2 + 28);
a1[5] = *(unsigned __int16 *)(a2 + 32) + 1;
a1[6] = (*(unsigned __int8 *)(a2 + 36) << 16) | (unsigned int)*(unsigned __int16 *)(a2 + 34);
result = a1;
*a1 = *(unsigned int *)(a2 + 40) | ((unsigned long long)((*(unsigned __int8 *)(a2 + 39) << 16) | (unsigned int)*(unsigned __int16 *)(a2 + 37)) << 32);
return result;
}
| translog_interpret_file_header:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV RAX,qword ptr [RBP + -0x10]
ADD RAX,0xc
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x8
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x4
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x18],RCX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x4
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX]
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x20],RCX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x4
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,word ptr [RAX]
ADD EAX,0x1
MOVSXD RCX,EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x28],RCX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x2
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x10
OR EAX,ECX
MOV EAX,EAX
MOV ECX,EAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x30],RCX
MOV RAX,qword ptr [RBP + -0x18]
ADD RAX,0x3
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x1]
SHL ECX,0x8
OR EAX,ECX
MOV RCX,qword ptr [RBP + -0x18]
MOVZX ECX,byte ptr [RCX + 0x2]
SHL ECX,0x10
OR EAX,ECX
MOV EAX,EAX
MOV ECX,EAX
SHL RCX,0x20
MOV RAX,qword ptr [RBP + -0x18]
MOV EAX,dword ptr [RAX + 0x3]
OR RCX,RAX
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX],RCX
POP RBP
RET
|
void translog_interpret_file_header(ulong *param_1,long param_2)
{
param_1[1] = *(ulong *)(param_2 + 0xc);
param_1[2] = (ulong)*(uint *)(param_2 + 0x14);
param_1[3] = (ulong)*(uint *)(param_2 + 0x18);
param_1[4] = (ulong)*(uint *)(param_2 + 0x1c);
param_1[5] = (long)(int)(*(ushort *)(param_2 + 0x20) + 1);
param_1[6] = (ulong)*(uint3 *)(param_2 + 0x22);
*param_1 = (ulong)CONCAT34(*(int3 *)(param_2 + 0x25),*(int4 *)(param_2 + 0x28));
return;
}
| |
44,372 | translog_interpret_file_header | eloqsql/storage/maria/ma_loghandler.c | void translog_interpret_file_header(LOGHANDLER_FILE_INFO *desc,
uchar *page_buff)
{
uchar *ptr;
ptr= page_buff + sizeof(maria_trans_file_magic);
desc->timestamp= uint8korr(ptr);
ptr+= 8;
desc->maria_version= uint4korr(ptr);
ptr+= 4;
desc->mysql_version= uint4korr(ptr);
ptr+= 4;
desc->server_id= uint4korr(ptr);
ptr+= 4;
desc->page_size= uint2korr(ptr) + 1;
ptr+= 2;
desc->file_number= uint3korr(ptr);
ptr+= 3;
desc->max_lsn= lsn_korr(ptr);
} | O3 | c | translog_interpret_file_header:
pushq %rbp
movq %rsp, %rbp
movq 0xc(%rsi), %rax
movq %rax, 0x8(%rdi)
movl 0x14(%rsi), %eax
movq %rax, 0x10(%rdi)
movl 0x18(%rsi), %eax
movq %rax, 0x18(%rdi)
movl 0x1c(%rsi), %eax
movq %rax, 0x20(%rdi)
movzwl 0x20(%rsi), %eax
incq %rax
movq %rax, 0x28(%rdi)
movzwl 0x22(%rsi), %eax
movzbl 0x24(%rsi), %ecx
shll $0x10, %ecx
orq %rax, %rcx
movq %rcx, 0x30(%rdi)
movzwl 0x25(%rsi), %eax
shlq $0x20, %rax
movzbl 0x27(%rsi), %ecx
shlq $0x30, %rcx
orq %rax, %rcx
movl 0x28(%rsi), %eax
orq %rcx, %rax
movq %rax, (%rdi)
popq %rbp
retq
| translog_interpret_file_header:
push rbp
mov rbp, rsp
mov rax, [rsi+0Ch]
mov [rdi+8], rax
mov eax, [rsi+14h]
mov [rdi+10h], rax
mov eax, [rsi+18h]
mov [rdi+18h], rax
mov eax, [rsi+1Ch]
mov [rdi+20h], rax
movzx eax, word ptr [rsi+20h]
inc rax
mov [rdi+28h], rax
movzx eax, word ptr [rsi+22h]
movzx ecx, byte ptr [rsi+24h]
shl ecx, 10h
or rcx, rax
mov [rdi+30h], rcx
movzx eax, word ptr [rsi+25h]
shl rax, 20h
movzx ecx, byte ptr [rsi+27h]
shl rcx, 30h
or rcx, rax
mov eax, [rsi+28h]
or rax, rcx
mov [rdi], rax
pop rbp
retn
| unsigned long long translog_interpret_file_header(unsigned long long *a1, long long a2)
{
unsigned long long result; // rax
a1[1] = *(_QWORD *)(a2 + 12);
a1[2] = *(unsigned int *)(a2 + 20);
a1[3] = *(unsigned int *)(a2 + 24);
a1[4] = *(unsigned int *)(a2 + 28);
a1[5] = *(unsigned __int16 *)(a2 + 32) + 1LL;
a1[6] = *(unsigned __int16 *)(a2 + 34) | (unsigned long long)(*(unsigned __int8 *)(a2 + 36) << 16);
result = ((unsigned long long)*(unsigned __int16 *)(a2 + 37) << 32) | ((unsigned long long)*(unsigned __int8 *)(a2 + 39) << 48) | *(unsigned int *)(a2 + 40);
*a1 = result;
return result;
}
| translog_interpret_file_header:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RSI + 0xc]
MOV qword ptr [RDI + 0x8],RAX
MOV EAX,dword ptr [RSI + 0x14]
MOV qword ptr [RDI + 0x10],RAX
MOV EAX,dword ptr [RSI + 0x18]
MOV qword ptr [RDI + 0x18],RAX
MOV EAX,dword ptr [RSI + 0x1c]
MOV qword ptr [RDI + 0x20],RAX
MOVZX EAX,word ptr [RSI + 0x20]
INC RAX
MOV qword ptr [RDI + 0x28],RAX
MOVZX EAX,word ptr [RSI + 0x22]
MOVZX ECX,byte ptr [RSI + 0x24]
SHL ECX,0x10
OR RCX,RAX
MOV qword ptr [RDI + 0x30],RCX
MOVZX EAX,word ptr [RSI + 0x25]
SHL RAX,0x20
MOVZX ECX,byte ptr [RSI + 0x27]
SHL RCX,0x30
OR RCX,RAX
MOV EAX,dword ptr [RSI + 0x28]
OR RAX,RCX
MOV qword ptr [RDI],RAX
POP RBP
RET
|
void translog_interpret_file_header(ulong *param_1,long param_2)
{
param_1[1] = *(ulong *)(param_2 + 0xc);
param_1[2] = (ulong)*(uint *)(param_2 + 0x14);
param_1[3] = (ulong)*(uint *)(param_2 + 0x18);
param_1[4] = (ulong)*(uint *)(param_2 + 0x1c);
param_1[5] = (ulong)*(ushort *)(param_2 + 0x20) + 1;
param_1[6] = (ulong)*(uint3 *)(param_2 + 0x22);
*param_1 = (ulong)*(uint *)(param_2 + 0x28) |
(ulong)*(byte *)(param_2 + 0x27) << 0x30 | (ulong)*(ushort *)(param_2 + 0x25) << 0x20;
return;
}
| |
44,373 | mysql_set_character_set_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_set_character_set_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_set_character_set,
(parms->mysql, parms->csname),
parms->mysql,
int,
r_int)
} | O3 | c | mysql_set_character_set_start_internal:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq (%rdi), %rax
movq 0x8(%rdi), %rsi
movq 0x480(%rax), %rcx
movq 0x28(%rcx), %rbx
movq %rax, %rdi
callq 0x3eb07
movl %eax, 0x8(%rbx)
movl $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
| mysql_set_character_set_start_internal:
push rbp
mov rbp, rsp
push rbx
push rax
mov rax, [rdi]
mov rsi, [rdi+8]
mov rcx, [rax+480h]
mov rbx, [rcx+28h]
mov rdi, rax
call mysql_set_character_set
mov [rbx+8], eax
mov dword ptr [rbx], 0
add rsp, 8
pop rbx
pop rbp
retn
| long long mysql_set_character_set_start_internal(long long *a1)
{
_DWORD *v1; // rbx
long long result; // rax
v1 = *(_DWORD **)(*(_QWORD *)(*a1 + 1152) + 40LL);
result = mysql_set_character_set(*a1, a1[1]);
v1[2] = result;
*v1 = 0;
return result;
}
| mysql_set_character_set_start_internal:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
MOV RAX,qword ptr [RDI]
MOV RSI,qword ptr [RDI + 0x8]
MOV RCX,qword ptr [RAX + 0x480]
MOV RBX,qword ptr [RCX + 0x28]
MOV RDI,RAX
CALL 0x0013eb07
MOV dword ptr [RBX + 0x8],EAX
MOV dword ptr [RBX],0x0
ADD RSP,0x8
POP RBX
POP RBP
RET
|
void mysql_set_character_set_start_internal(long *param_1)
{
int4 *puVar1;
int4 uVar2;
puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28);
uVar2 = mysql_set_character_set(*param_1,param_1[1]);
puVar1[2] = uVar2;
*puVar1 = 0;
return;
}
| |
44,374 | my_caseup_str_utf8mb3 | eloqsql/strings/ctype-utf8.c | static size_t my_caseup_str_utf8mb3(CHARSET_INFO *cs, char *src)
{
my_wc_t wc;
int srcres, dstres;
char *dst= src, *dst0= src;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(cs->caseup_multiply == 1);
while (*src &&
(srcres= my_utf8mb3_uni_no_range(cs, &wc, (uchar *) src)) > 0)
{
my_toupper_utf8mb3(uni_plane, &wc);
if ((dstres= my_uni_utf8mb3_no_range(cs, wc, (uchar*) dst)) <= 0)
break;
src+= srcres;
dst+= dstres;
}
*dst= '\0';
return (size_t) (dst - dst0);
} | O3 | c | my_caseup_str_utf8mb3:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
cmpb $0x0, (%rsi)
movq %rsi, %r14
je 0x5506b
movq 0x78(%rdi), %r13
leaq -0x30(%rbp), %r15
movq %rbx, %r12
movq %rbx, %r14
movq %r15, %rdi
movq %r12, %rsi
callq 0x55944
testl %eax, %eax
je 0x5506b
movq 0x8(%r13), %rdx
movq -0x30(%rbp), %rcx
movzbl %ch, %esi
movq (%rdx,%rsi,8), %rdx
testq %rdx, %rdx
je 0x54ffa
movzbl %cl, %ecx
leaq (%rcx,%rcx,2), %rcx
movl (%rdx,%rcx,4), %ecx
movq %rcx, -0x30(%rbp)
movl $0x1, %edx
cmpq $0x80, %rcx
jb 0x55054
movl $0x2, %edx
cmpq $0x800, %rcx # imm = 0x800
jb 0x5503b
cmpq $0xffff, %rcx # imm = 0xFFFF
ja 0x5506b
movl %ecx, %edx
andb $0x3f, %dl
orb $-0x80, %dl
movb %dl, 0x2(%r14)
shrq $0x6, %rcx
orq $0x800, %rcx # imm = 0x800
movl $0x3, %edx
movl %ecx, %esi
andb $0x3f, %sil
orb $-0x80, %sil
movb %sil, 0x1(%r14)
shrq $0x6, %rcx
orq $0xc0, %rcx
movb %cl, (%r14)
movl %eax, %eax
addq %rdx, %r14
cmpb $0x0, (%r12,%rax)
leaq (%r12,%rax), %r12
jne 0x54fc5
movb $0x0, (%r14)
subq %rbx, %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_caseup_str_utf8mb3:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov rbx, rsi
cmp byte ptr [rsi], 0
mov r14, rsi
jz loc_5506B
mov r13, [rdi+78h]
lea r15, [rbp+var_30]
mov r12, rbx
mov r14, rbx
loc_54FC5:
mov rdi, r15
mov rsi, r12
call my_utf8mb3_uni_no_range
test eax, eax
jz loc_5506B
mov rdx, [r13+8]
mov rcx, [rbp+var_30]
movzx esi, ch
mov rdx, [rdx+rsi*8]
test rdx, rdx
jz short loc_54FFA
movzx ecx, cl
lea rcx, [rcx+rcx*2]
mov ecx, [rdx+rcx*4]
mov [rbp+var_30], rcx
loc_54FFA:
mov edx, 1
cmp rcx, 80h
jb short loc_55054
mov edx, 2
cmp rcx, 800h
jb short loc_5503B
cmp rcx, 0FFFFh
ja short loc_5506B
mov edx, ecx
and dl, 3Fh
or dl, 80h
mov [r14+2], dl
shr rcx, 6
or rcx, 800h
mov edx, 3
loc_5503B:
mov esi, ecx
and sil, 3Fh
or sil, 80h
mov [r14+1], sil
shr rcx, 6
or rcx, 0C0h
loc_55054:
mov [r14], cl
mov eax, eax
add r14, rdx
cmp byte ptr [r12+rax], 0
lea r12, [r12+rax]
jnz loc_54FC5
loc_5506B:
mov byte ptr [r14], 0
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_caseup_str_utf8mb3(long long a1, _BYTE *a2)
{
unsigned long long v2; // rax
_BYTE *v3; // r14
long long v4; // r13
_BYTE *v5; // r12
unsigned int v6; // eax
unsigned long long v7; // rcx
long long v8; // rdx
long long v9; // rdx
bool v10; // zf
unsigned long long v12; // [rsp+0h] [rbp-30h] BYREF
v12 = v2;
v3 = a2;
if ( *a2 )
{
v4 = *(_QWORD *)(a1 + 120);
v5 = a2;
v3 = a2;
do
{
v6 = my_utf8mb3_uni_no_range(&v12, v5);
if ( !v6 )
break;
v7 = v12;
v8 = *(_QWORD *)(*(_QWORD *)(v4 + 8) + 8LL * BYTE1(v12));
if ( v8 )
{
v7 = *(unsigned int *)(v8 + 12LL * (unsigned __int8)v12);
v12 = v7;
}
v9 = 1LL;
if ( v7 >= 0x80 )
{
v9 = 2LL;
if ( v7 >= 0x800 )
{
if ( v7 > 0xFFFF )
break;
v3[2] = v7 & 0x3F | 0x80;
v7 = (v7 >> 6) | 0x800;
v9 = 3LL;
}
v3[1] = v7 & 0x3F | 0x80;
v7 = (v7 >> 6) | 0xC0;
}
*v3 = v7;
v3 += v9;
v10 = v5[v6] == 0;
v5 += v6;
}
while ( !v10 );
}
*v3 = 0;
return v3 - a2;
}
| my_caseup_str_utf8mb3:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RSI
CMP byte ptr [RSI],0x0
MOV R14,RSI
JZ 0x0015506b
MOV R13,qword ptr [RDI + 0x78]
LEA R15,[RBP + -0x30]
MOV R12,RBX
MOV R14,RBX
LAB_00154fc5:
MOV RDI,R15
MOV RSI,R12
CALL 0x00155944
TEST EAX,EAX
JZ 0x0015506b
MOV RDX,qword ptr [R13 + 0x8]
MOV RCX,qword ptr [RBP + -0x30]
MOVZX ESI,CH
MOV RDX,qword ptr [RDX + RSI*0x8]
TEST RDX,RDX
JZ 0x00154ffa
MOVZX ECX,CL
LEA RCX,[RCX + RCX*0x2]
MOV ECX,dword ptr [RDX + RCX*0x4]
MOV qword ptr [RBP + -0x30],RCX
LAB_00154ffa:
MOV EDX,0x1
CMP RCX,0x80
JC 0x00155054
MOV EDX,0x2
CMP RCX,0x800
JC 0x0015503b
CMP RCX,0xffff
JA 0x0015506b
MOV EDX,ECX
AND DL,0x3f
OR DL,0x80
MOV byte ptr [R14 + 0x2],DL
SHR RCX,0x6
OR RCX,0x800
MOV EDX,0x3
LAB_0015503b:
MOV ESI,ECX
AND SIL,0x3f
OR SIL,0x80
MOV byte ptr [R14 + 0x1],SIL
SHR RCX,0x6
OR RCX,0xc0
LAB_00155054:
MOV byte ptr [R14],CL
MOV EAX,EAX
ADD R14,RDX
CMP byte ptr [R12 + RAX*0x1],0x0
LEA R12,[R12 + RAX*0x1]
JNZ 0x00154fc5
LAB_0015506b:
MOV byte ptr [R14],0x0
SUB R14,RBX
MOV RAX,R14
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_caseup_str_utf8mb3(long param_1,char *param_2)
{
char *pcVar1;
long lVar2;
uint uVar3;
ulong in_RAX;
ulong uVar4;
long lVar5;
char *pcVar6;
char *pcVar7;
ulong local_38;
pcVar7 = param_2;
if (*param_2 != '\0') {
lVar2 = *(long *)(param_1 + 0x78);
pcVar6 = param_2;
local_38 = in_RAX;
do {
uVar3 = my_utf8mb3_uni_no_range(&local_38,pcVar6);
if (uVar3 == 0) break;
lVar5 = *(long *)(*(long *)(lVar2 + 8) + (local_38 >> 8 & 0xff) * 8);
if (lVar5 != 0) {
local_38 = (ulong)*(uint *)(lVar5 + (local_38 & 0xff) * 0xc);
}
lVar5 = 1;
uVar4 = local_38;
if (0x7f < local_38) {
lVar5 = 2;
if (0x7ff < local_38) {
if (0xffff < local_38) break;
pcVar7[2] = (byte)local_38 & 0x3f | 0x80;
uVar4 = local_38 >> 6 | 0x800;
lVar5 = 3;
}
pcVar7[1] = (byte)uVar4 & 0x3f | 0x80;
uVar4 = uVar4 >> 6 | 0xc0;
}
*pcVar7 = (char)uVar4;
pcVar7 = pcVar7 + lVar5;
pcVar1 = pcVar6 + uVar3;
pcVar6 = pcVar6 + uVar3;
} while (*pcVar1 != '\0');
}
*pcVar7 = '\0';
return (long)pcVar7 - (long)param_2;
}
| |
44,375 | Host_errors::has_error() const | eloqsql/sql/hostname.h | bool has_error() const
{
return ((m_host_blocked != 0)
|| (m_nameinfo_transient != 0)
|| (m_nameinfo_permanent != 0)
|| (m_format != 0)
|| (m_addrinfo_transient != 0)
|| (m_addrinfo_permanent != 0)
|| (m_FCrDNS != 0)
|| (m_host_acl != 0)
|| (m_no_auth_plugin != 0)
|| (m_auth_plugin != 0)
|| (m_handshake != 0)
|| (m_proxy_user != 0)
|| (m_proxy_user_acl != 0)
|| (m_authentication != 0)
|| (m_ssl != 0)
|| (m_max_user_connection != 0)
|| (m_max_user_connection_per_hour != 0)
|| (m_default_database != 0)
|| (m_init_connect != 0)
|| (m_local != 0));
} | O0 | c | Host_errors::has_error() const:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rcx
movq %rcx, -0x18(%rbp)
movb $0x1, %al
cmpq $0x0, 0x8(%rcx)
movb %al, -0x9(%rbp)
jne 0xd1f1da
movq -0x18(%rbp), %rcx
movb $0x1, %al
cmpq $0x0, 0x10(%rcx)
movb %al, -0x9(%rbp)
jne 0xd1f1da
movq -0x18(%rbp), %rcx
movb $0x1, %al
cmpq $0x0, 0x18(%rcx)
movb %al, -0x9(%rbp)
jne 0xd1f1da
movq -0x18(%rbp), %rcx
movb $0x1, %al
cmpq $0x0, 0x20(%rcx)
movb %al, -0x9(%rbp)
jne 0xd1f1da
movq -0x18(%rbp), %rcx
movb $0x1, %al
cmpq $0x0, 0x28(%rcx)
movb %al, -0x9(%rbp)
jne 0xd1f1da
movq -0x18(%rbp), %rcx
movb $0x1, %al
cmpq $0x0, 0x30(%rcx)
movb %al, -0x9(%rbp)
jne 0xd1f1da
movq -0x18(%rbp), %rcx
movb $0x1, %al
cmpq $0x0, 0x38(%rcx)
movb %al, -0x9(%rbp)
jne 0xd1f1da
movq -0x18(%rbp), %rcx
movb $0x1, %al
cmpq $0x0, 0x40(%rcx)
movb %al, -0x9(%rbp)
jne 0xd1f1da
movq -0x18(%rbp), %rcx
movb $0x1, %al
cmpq $0x0, 0x48(%rcx)
movb %al, -0x9(%rbp)
jne 0xd1f1da
movq -0x18(%rbp), %rcx
movb $0x1, %al
cmpq $0x0, 0x50(%rcx)
movb %al, -0x9(%rbp)
jne 0xd1f1da
movq -0x18(%rbp), %rcx
movb $0x1, %al
cmpq $0x0, 0x58(%rcx)
movb %al, -0x9(%rbp)
jne 0xd1f1da
movq -0x18(%rbp), %rcx
movb $0x1, %al
cmpq $0x0, 0x60(%rcx)
movb %al, -0x9(%rbp)
jne 0xd1f1da
movq -0x18(%rbp), %rcx
movb $0x1, %al
cmpq $0x0, 0x68(%rcx)
movb %al, -0x9(%rbp)
jne 0xd1f1da
movq -0x18(%rbp), %rcx
movb $0x1, %al
cmpq $0x0, 0x70(%rcx)
movb %al, -0x9(%rbp)
jne 0xd1f1da
movq -0x18(%rbp), %rcx
movb $0x1, %al
cmpq $0x0, 0x78(%rcx)
movb %al, -0x9(%rbp)
jne 0xd1f1da
movq -0x18(%rbp), %rcx
movb $0x1, %al
cmpq $0x0, 0x80(%rcx)
movb %al, -0x9(%rbp)
jne 0xd1f1da
movq -0x18(%rbp), %rcx
movb $0x1, %al
cmpq $0x0, 0x88(%rcx)
movb %al, -0x9(%rbp)
jne 0xd1f1da
movq -0x18(%rbp), %rcx
movb $0x1, %al
cmpq $0x0, 0x90(%rcx)
movb %al, -0x9(%rbp)
jne 0xd1f1da
movq -0x18(%rbp), %rcx
movb $0x1, %al
cmpq $0x0, 0x98(%rcx)
movb %al, -0x9(%rbp)
jne 0xd1f1da
movq -0x18(%rbp), %rax
cmpq $0x0, 0xa0(%rax)
setne %al
movb %al, -0x9(%rbp)
movb -0x9(%rbp), %al
andb $0x1, %al
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
| _ZNK11Host_errors9has_errorEv:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov rcx, [rbp+var_8]
mov [rbp+var_18], rcx
mov al, 1
cmp qword ptr [rcx+8], 0
mov [rbp+var_9], al
jnz loc_D1F1DA
mov rcx, [rbp+var_18]
mov al, 1
cmp qword ptr [rcx+10h], 0
mov [rbp+var_9], al
jnz loc_D1F1DA
mov rcx, [rbp+var_18]
mov al, 1
cmp qword ptr [rcx+18h], 0
mov [rbp+var_9], al
jnz loc_D1F1DA
mov rcx, [rbp+var_18]
mov al, 1
cmp qword ptr [rcx+20h], 0
mov [rbp+var_9], al
jnz loc_D1F1DA
mov rcx, [rbp+var_18]
mov al, 1
cmp qword ptr [rcx+28h], 0
mov [rbp+var_9], al
jnz loc_D1F1DA
mov rcx, [rbp+var_18]
mov al, 1
cmp qword ptr [rcx+30h], 0
mov [rbp+var_9], al
jnz loc_D1F1DA
mov rcx, [rbp+var_18]
mov al, 1
cmp qword ptr [rcx+38h], 0
mov [rbp+var_9], al
jnz loc_D1F1DA
mov rcx, [rbp+var_18]
mov al, 1
cmp qword ptr [rcx+40h], 0
mov [rbp+var_9], al
jnz loc_D1F1DA
mov rcx, [rbp+var_18]
mov al, 1
cmp qword ptr [rcx+48h], 0
mov [rbp+var_9], al
jnz loc_D1F1DA
mov rcx, [rbp+var_18]
mov al, 1
cmp qword ptr [rcx+50h], 0
mov [rbp+var_9], al
jnz loc_D1F1DA
mov rcx, [rbp+var_18]
mov al, 1
cmp qword ptr [rcx+58h], 0
mov [rbp+var_9], al
jnz loc_D1F1DA
mov rcx, [rbp+var_18]
mov al, 1
cmp qword ptr [rcx+60h], 0
mov [rbp+var_9], al
jnz loc_D1F1DA
mov rcx, [rbp+var_18]
mov al, 1
cmp qword ptr [rcx+68h], 0
mov [rbp+var_9], al
jnz short loc_D1F1DA
mov rcx, [rbp+var_18]
mov al, 1
cmp qword ptr [rcx+70h], 0
mov [rbp+var_9], al
jnz short loc_D1F1DA
mov rcx, [rbp+var_18]
mov al, 1
cmp qword ptr [rcx+78h], 0
mov [rbp+var_9], al
jnz short loc_D1F1DA
mov rcx, [rbp+var_18]
mov al, 1
cmp qword ptr [rcx+80h], 0
mov [rbp+var_9], al
jnz short loc_D1F1DA
mov rcx, [rbp+var_18]
mov al, 1
cmp qword ptr [rcx+88h], 0
mov [rbp+var_9], al
jnz short loc_D1F1DA
mov rcx, [rbp+var_18]
mov al, 1
cmp qword ptr [rcx+90h], 0
mov [rbp+var_9], al
jnz short loc_D1F1DA
mov rcx, [rbp+var_18]
mov al, 1
cmp qword ptr [rcx+98h], 0
mov [rbp+var_9], al
jnz short loc_D1F1DA
mov rax, [rbp+var_18]
cmp qword ptr [rax+0A0h], 0
setnz al
mov [rbp+var_9], al
loc_D1F1DA:
mov al, [rbp+var_9]
and al, 1
pop rbp
retn
| bool Host_errors::has_error(Host_errors *this)
{
bool v2; // [rsp+Fh] [rbp-9h]
v2 = 1;
if ( !*((_QWORD *)this + 1) )
{
v2 = 1;
if ( !*((_QWORD *)this + 2) )
{
v2 = 1;
if ( !*((_QWORD *)this + 3) )
{
v2 = 1;
if ( !*((_QWORD *)this + 4) )
{
v2 = 1;
if ( !*((_QWORD *)this + 5) )
{
v2 = 1;
if ( !*((_QWORD *)this + 6) )
{
v2 = 1;
if ( !*((_QWORD *)this + 7) )
{
v2 = 1;
if ( !*((_QWORD *)this + 8) )
{
v2 = 1;
if ( !*((_QWORD *)this + 9) )
{
v2 = 1;
if ( !*((_QWORD *)this + 10) )
{
v2 = 1;
if ( !*((_QWORD *)this + 11) )
{
v2 = 1;
if ( !*((_QWORD *)this + 12) )
{
v2 = 1;
if ( !*((_QWORD *)this + 13) )
{
v2 = 1;
if ( !*((_QWORD *)this + 14) )
{
v2 = 1;
if ( !*((_QWORD *)this + 15) )
{
v2 = 1;
if ( !*((_QWORD *)this + 16) )
{
v2 = 1;
if ( !*((_QWORD *)this + 17) )
{
v2 = 1;
if ( !*((_QWORD *)this + 18) )
{
v2 = 1;
if ( !*((_QWORD *)this + 19) )
return *((_QWORD *)this + 20) != 0LL;
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
return v2;
}
| ~Item_func_trt_id:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x00ad2ae0
ADD RSP,0x10
POP RBP
RET
|
/* Item_func_trt_id::~Item_func_trt_id() */
void __thiscall Item_func_trt_id::~Item_func_trt_id(Item_func_trt_id *this)
{
Item_longlong_func::~Item_longlong_func((Item_longlong_func *)this);
return;
}
| |
44,376 | set_prealloc_root | eloqsql/mysys/my_alloc.c | void set_prealloc_root(MEM_ROOT *root, char *ptr)
{
USED_MEM *next;
for (next=root->used; next ; next=next->next)
{
if ((char*) next <= ptr && (char*) next + next->size > ptr)
{
root->pre_alloc=next;
return;
}
}
for (next=root->free ; next ; next=next->next)
{
if ((char*) next <= ptr && (char*) next + next->size > ptr)
{
root->pre_alloc=next;
return;
}
}
} | O3 | c | set_prealloc_root:
pushq %rbp
movq %rsp, %rbp
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x364b6
cmpq %rsi, %rax
ja 0x364b1
movq 0x10(%rax), %rcx
addq %rax, %rcx
cmpq %rsi, %rcx
ja 0x364d4
movq (%rax), %rax
jmp 0x3649b
movq (%rdi), %rax
testq %rax, %rax
je 0x364d8
cmpq %rsi, %rax
ja 0x364cf
movq 0x10(%rax), %rcx
addq %rax, %rcx
cmpq %rsi, %rcx
ja 0x364d4
movq (%rax), %rax
jmp 0x364b9
movq %rax, 0x10(%rdi)
popq %rbp
retq
| set_prealloc_root:
push rbp
mov rbp, rsp
mov rax, [rdi+8]
loc_3649B:
test rax, rax
jz short loc_364B6
cmp rax, rsi
ja short loc_364B1
mov rcx, [rax+10h]
add rcx, rax
cmp rcx, rsi
ja short loc_364D4
loc_364B1:
mov rax, [rax]
jmp short loc_3649B
loc_364B6:
mov rax, [rdi]
loc_364B9:
test rax, rax
jz short loc_364D8
cmp rax, rsi
ja short loc_364CF
mov rcx, [rax+10h]
add rcx, rax
cmp rcx, rsi
ja short loc_364D4
loc_364CF:
mov rax, [rax]
jmp short loc_364B9
loc_364D4:
mov [rdi+10h], rax
loc_364D8:
pop rbp
retn
| _QWORD * set_prealloc_root(_QWORD *a1, unsigned long long a2)
{
_QWORD *result; // rax
for ( result = (_QWORD *)a1[1]; result; result = (_QWORD *)*result )
{
if ( (unsigned long long)result <= a2 && (unsigned long long)result + result[2] > a2 )
{
LABEL_11:
a1[2] = result;
return result;
}
}
for ( result = (_QWORD *)*a1; result; result = (_QWORD *)*result )
{
if ( (unsigned long long)result <= a2 && (unsigned long long)result + result[2] > a2 )
goto LABEL_11;
}
return result;
}
| set_prealloc_root:
PUSH RBP
MOV RBP,RSP
MOV RAX,qword ptr [RDI + 0x8]
LAB_0013649b:
TEST RAX,RAX
JZ 0x001364b6
CMP RAX,RSI
JA 0x001364b1
MOV RCX,qword ptr [RAX + 0x10]
ADD RCX,RAX
CMP RCX,RSI
JA 0x001364d4
LAB_001364b1:
MOV RAX,qword ptr [RAX]
JMP 0x0013649b
LAB_001364b6:
MOV RAX,qword ptr [RDI]
LAB_001364b9:
TEST RAX,RAX
JZ 0x001364d8
CMP RAX,RSI
JA 0x001364cf
MOV RCX,qword ptr [RAX + 0x10]
ADD RCX,RAX
CMP RCX,RSI
JA 0x001364d4
LAB_001364cf:
MOV RAX,qword ptr [RAX]
JMP 0x001364b9
LAB_001364d4:
MOV qword ptr [RDI + 0x10],RAX
LAB_001364d8:
POP RBP
RET
|
void set_prealloc_root(int8 *param_1,int8 *param_2)
{
int8 *puVar1;
for (puVar1 = (int8 *)param_1[1]; puVar1 != (int8 *)0x0;
puVar1 = (int8 *)*puVar1) {
if ((puVar1 <= param_2) && (param_2 < (int8 *)(puVar1[2] + (long)puVar1)))
goto LAB_001364d4;
}
puVar1 = (int8 *)*param_1;
while( true ) {
if (puVar1 == (int8 *)0x0) {
return;
}
if ((puVar1 <= param_2) && (param_2 < (int8 *)(puVar1[2] + (long)puVar1))) break;
puVar1 = (int8 *)*puVar1;
}
LAB_001364d4:
param_1[2] = puVar1;
return;
}
| |
44,377 | Saver_Sprintf::step() | untodesu[P]riteg/riteg/saver_sprintf.cc | void Saver_Sprintf::step(void)
{
if(!m_is_done && m_frame <= m_limit) {
m_buffer.resize(2 + std::snprintf(nullptr, 0, m_format.c_str(), static_cast<int>(m_frame)));
std::snprintf(m_buffer.data(), m_buffer.size(), m_format.c_str(), static_cast<int>(m_frame));
if(!Saver::write_source_RGBA(project::get_output_source(), m_buffer)) {
riteg_warning << "failed to write image: " << m_buffer << std::endl;
m_is_done = true;
return;
}
riteg_info << "wrote image: " << m_buffer << std::endl;
m_frame += 1;
}
} | O3 | cpp | Saver_Sprintf::step():
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x70, %rsp
cmpb $0x0, 0x58(%rdi)
jne 0x164a3
movq %rdi, %rbx
movq 0x48(%rdi), %rcx
cmpq 0x50(%rdi), %rcx
ja 0x164a3
leaq 0x28(%rbx), %r14
movq 0x8(%rbx), %rdx
xorl %edi, %edi
xorl %esi, %esi
xorl %eax, %eax
callq 0xcd90
addl $0x2, %eax
movslq %eax, %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0xc220
movq 0x8(%rbx), %rdx
movq 0x28(%rbx), %rdi
movq 0x30(%rbx), %rsi
movl 0x48(%rbx), %ecx
xorl %eax, %eax
callq 0xcd90
callq 0x14f34
movq %rax, %r15
leaq 0x48(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
movl $0x2, %edx
callq 0x10416
movq %r15, %rdi
movq %r12, %rsi
callq 0x16550
movl %eax, %ebp
leaq 0x48(%rsp), %rdi
callq 0xe222
movq 0x90ea7(%rip), %rdi # 0xa6ff0
leaq 0x4ffdd(%rip), %rsi # 0x6612d
movl $0x1, %edx
callq 0xc9e0
leaq 0x508f6(%rip), %rsi # 0x66a57
leaq 0x20(%rsp), %r14
movq %r14, %rdi
movl $0x2, %edx
testb %bpl, %bpl
je 0x161bd
callq 0xf0da
movq 0x8(%r14), %rcx
testq %rcx, %rcx
je 0x1624e
movq 0x40(%rsp), %rax
movl %eax, %edx
notb %dl
testb $0x3, %dl
je 0x1623f
movl %eax, %edx
andl $0x3, %edx
jne 0x1624e
movq 0x20(%rsp), %rdx
cmpb $0x2f, -0x1(%rdx,%rcx)
je 0x1624e
testb $0x3, %al
je 0x1620e
leaq 0x20(%rsp), %r14
jmp 0x16239
callq 0xf0da
movq 0x8(%r14), %rcx
testq %rcx, %rcx
je 0x1639b
movq 0x40(%rsp), %rax
movl %eax, %edx
notb %dl
testb $0x3, %dl
je 0x1638c
movl %eax, %edx
andl $0x3, %edx
jne 0x1639b
movq 0x20(%rsp), %rdx
cmpb $0x2f, -0x1(%rdx,%rcx)
je 0x1639b
testb $0x3, %al
je 0x1635b
leaq 0x20(%rsp), %r14
jmp 0x16386
leaq 0x40(%rsp), %r15
movq %r15, %rdi
callq 0xc520
movq (%r15), %rcx
leaq -0x30(%rax), %rdx
addq $-0x10, %rax
testb $0x3, %cl
leaq 0x20(%rsp), %r14
cmoveq %rdx, %r14
cmovneq %r15, %rax
movq (%rax), %rax
notl %eax
testb $0x3, %al
jne 0x1624e
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0xe282
jmp 0x16258
leaq 0x48(%rsp), %rdi
callq 0xe25a
movq 0x48(%rsp), %rsi
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0xe36e
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq 0x90d6a(%rip), %rdi # 0xa6ff0
callq 0xc9e0
movq %rax, %r14
leaq 0x77176(%rip), %rsi # 0x8d40b
movl $0x1, %edx
movq %rax, %rdi
callq 0xc9e0
movq %r14, %rdi
movl $0x24, %esi
callq 0xceb0
movq %rax, %r14
leaq 0x4fe76(%rip), %rsi # 0x6612f
movl $0x3, %edx
movq %rax, %rdi
callq 0xc9e0
leaq 0x50725(%rip), %rsi # 0x669f2
movl $0x14, %edx
movq %r14, %rdi
callq 0xc9e0
leaq 0x50726(%rip), %rsi # 0x66a07
movl $0xd, %edx
movq %r14, %rdi
callq 0xc9e0
movq 0x28(%rbx), %rsi
movq 0x30(%rbx), %rdx
movq %r14, %rdi
callq 0xc9e0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xc860
movsbl %al, %esi
movq %r14, %rdi
callq 0xc050
movq %rax, %rdi
callq 0xc590
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x1633e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xc8d0
leaq 0x48(%rsp), %rdi
callq 0xe222
leaq 0x20(%rsp), %rdi
callq 0xe222
incq 0x48(%rbx)
jmp 0x164a3
leaq 0x40(%rsp), %r15
movq %r15, %rdi
callq 0xc520
movq (%r15), %rcx
leaq -0x30(%rax), %rdx
addq $-0x10, %rax
testb $0x3, %cl
leaq 0x20(%rsp), %r14
cmoveq %rdx, %r14
cmovneq %r15, %rax
movq (%rax), %rax
notl %eax
testb $0x3, %al
jne 0x1639b
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0xe282
jmp 0x163a5
leaq 0x48(%rsp), %rdi
callq 0xe25a
movq 0x48(%rsp), %rsi
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq 0x50(%rsp), %rdx
addq %rsi, %rdx
movq %rsp, %rdi
callq 0xe36e
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq 0x90c1d(%rip), %rdi # 0xa6ff0
callq 0xc9e0
movq %rax, %r14
leaq 0x77029(%rip), %rsi # 0x8d40b
movl $0x1, %edx
movq %rax, %rdi
callq 0xc9e0
movq %r14, %rdi
movl $0x1f, %esi
callq 0xceb0
movq %rax, %r14
leaq 0x4fd29(%rip), %rsi # 0x6612f
movl $0x3, %edx
movq %rax, %rdi
callq 0xc9e0
leaq 0x4fea7(%rip), %rsi # 0x662c1
movl $0x17, %edx
movq %r14, %rdi
callq 0xc9e0
leaq 0x505e7(%rip), %rsi # 0x66a15
movl $0x17, %edx
movq %r14, %rdi
callq 0xc9e0
movq 0x28(%rbx), %rsi
movq 0x30(%rbx), %rdx
movq %r14, %rdi
callq 0xc9e0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0xc860
movsbl %al, %esi
movq %r14, %rdi
callq 0xc050
movq %rax, %rdi
callq 0xc590
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x1648b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xc8d0
leaq 0x48(%rsp), %rdi
callq 0xe222
leaq 0x20(%rsp), %rdi
callq 0xe222
movb $0x1, 0x58(%rbx)
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x164b2
movq %rax, %rbx
jmp 0x164ed
jmp 0x164b9
movq %rax, %rbx
jmp 0x164e3
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
jmp 0x164f2
jmp 0x164ca
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x164e3
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xc8d0
leaq 0x48(%rsp), %rdi
callq 0xe222
leaq 0x20(%rsp), %rdi
callq 0xe222
movq %rbx, %rdi
callq 0xcf00
nop
| _ZN13Saver_Sprintf4stepEv:
push rbp
push r15
push r14
push r12
push rbx
sub rsp, 70h
cmp byte ptr [rdi+58h], 0
jnz loc_164A3
mov rbx, rdi
mov rcx, [rdi+48h]
cmp rcx, [rdi+50h]
ja loc_164A3
lea r14, [rbx+28h]
mov rdx, [rbx+8]
xor edi, edi
xor esi, esi
xor eax, eax
call _snprintf
add eax, 2
movsxd rsi, eax
mov rdi, r14
xor edx, edx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEmc; std::string::resize(ulong,char)
mov rdx, [rbx+8]
mov rdi, [rbx+28h]; this
mov rsi, [rbx+30h]
mov ecx, [rbx+48h]
xor eax, eax
call _snprintf
call _ZN7project17get_output_sourceEv; project::get_output_source(void)
mov r15, rax
lea r12, [rsp+98h+var_50]
mov rdi, r12; this
mov rsi, r14
mov edx, 2
call _ZNSt10filesystem7__cxx114pathC2INSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES1_EERKT_NS1_6formatE; std::filesystem::__cxx11::path::path<std::string,std::filesystem::__cxx11::path>(std::string const&,std::filesystem::__cxx11::path::format)
mov rdi, r15
mov rsi, r12
call _ZN5Saver17write_source_RGBAEPK6SourceRKNSt10filesystem7__cxx114pathE; Saver::write_source_RGBA(Source const*,std::filesystem::__cxx11::path const&)
mov ebp, eax
lea rdi, [rsp+98h+var_50]; this
call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path()
mov rdi, cs:_ZSt4cerr_ptr
lea rsi, asc_6612D; "["
mov edx, 1
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, aWorkspaceLlm4b_8; "/workspace/llm4binary/github/2025_star3"...
lea r14, [rsp+98h+var_78]
mov rdi, r14; this
mov edx, 2
test bpl, bpl
jz short loc_161BD
call _ZNSt10filesystem7__cxx114pathC2IA80_cS1_EERKT_NS1_6formatE; std::filesystem::__cxx11::path::path<char [80],std::filesystem::__cxx11::path>(char [80] const&,std::filesystem::__cxx11::path::format)
mov rcx, [r14+8]
test rcx, rcx
jz loc_1624E
mov rax, [rsp+98h+var_58]
mov edx, eax
not dl
test dl, 3
jz loc_1623F
mov edx, eax
and edx, 3
jnz loc_1624E
mov rdx, [rsp+98h+var_78]
cmp byte ptr [rdx+rcx-1], 2Fh ; '/'
jz loc_1624E
test al, 3
jz short loc_1620E
lea r14, [rsp+98h+var_78]
jmp short loc_16239
loc_161BD:
call _ZNSt10filesystem7__cxx114pathC2IA80_cS1_EERKT_NS1_6formatE; std::filesystem::__cxx11::path::path<char [80],std::filesystem::__cxx11::path>(char [80] const&,std::filesystem::__cxx11::path::format)
mov rcx, [r14+8]
test rcx, rcx
jz loc_1639B
mov rax, [rsp+98h+var_58]
mov edx, eax
not dl
test dl, 3
jz loc_1638C
mov edx, eax
and edx, 3
jnz loc_1639B
mov rdx, [rsp+98h+var_78]
cmp byte ptr [rdx+rcx-1], 2Fh ; '/'
jz loc_1639B
test al, 3
jz loc_1635B
lea r14, [rsp+98h+var_78]
jmp loc_16386
loc_1620E:
lea r15, [rsp+98h+var_58]
mov rdi, r15; this
call __ZNKSt10filesystem7__cxx114path5_List3endEv; std::filesystem::__cxx11::path::_List::end(void)
mov rcx, [r15]
lea rdx, [rax-30h]
add rax, 0FFFFFFFFFFFFFFF0h
test cl, 3
lea r14, [rsp+98h+var_78]
cmovz r14, rdx
cmovnz rax, r15
mov rax, [rax]
loc_16239:
not eax
test al, 3
jnz short loc_1624E
loc_1623F:
lea rdi, [rsp+98h+var_50]; this
mov rsi, r14; std::filesystem::__cxx11::path *
call _ZNSt10filesystem7__cxx114pathC2ERKS1_; std::filesystem::__cxx11::path::path(std::filesystem::__cxx11::path const&)
jmp short loc_16258
loc_1624E:
lea rdi, [rsp+98h+var_50]; this
call _ZNSt10filesystem7__cxx114pathC2Ev; std::filesystem::__cxx11::path::path(void)
loc_16258:
mov rsi, [rsp+98h+var_50]
lea r15, [rsp+98h+var_88]
mov [r15-10h], r15
mov rdx, [rsp+98h+var_48]
add rdx, rsi
mov rdi, rsp
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rsi, [rsp+98h+var_98]
mov rdx, [rsp+98h+var_90]
mov rdi, cs:_ZSt4cerr_ptr
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov r14, rax
lea rsi, asc_8D40A+1; ":"
mov edx, 1
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, r14
mov esi, 24h ; '$'
call __ZNSolsEi; std::ostream::operator<<(int)
mov r14, rax
lea rsi, asc_6612F; "]: "
mov edx, 3
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, a13292minfo0m; "\x1B[1;32;92minfo:\x1B[0m "
mov edx, 14h
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)
lea rsi, aWroteImage; "wrote image: "
mov edx, 0Dh
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 rsi, [rbx+28h]
mov rdx, [rbx+30h]
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 r14, rax
mov rax, [rax]
mov rdi, [rax-18h]
add rdi, r14
mov esi, 0Ah
call __ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc; std::ios::widen(char)
movsx esi, al; char
mov rdi, r14; this
call __ZNSo3putEc; std::ostream::put(char)
mov rdi, rax; this
call __ZNSo5flushEv; std::ostream::flush(void)
mov rdi, [rsp+98h+var_98]; void *
cmp rdi, r15
jz short loc_1633E
mov rsi, [rsp+98h+var_88]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1633E:
lea rdi, [rsp+98h+var_50]; this
call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path()
lea rdi, [rsp+98h+var_78]; this
call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path()
inc qword ptr [rbx+48h]
jmp loc_164A3
loc_1635B:
lea r15, [rsp+98h+var_58]
mov rdi, r15; this
call __ZNKSt10filesystem7__cxx114path5_List3endEv; std::filesystem::__cxx11::path::_List::end(void)
mov rcx, [r15]
lea rdx, [rax-30h]
add rax, 0FFFFFFFFFFFFFFF0h
test cl, 3
lea r14, [rsp+98h+var_78]
cmovz r14, rdx
cmovnz rax, r15
mov rax, [rax]
loc_16386:
not eax
test al, 3
jnz short loc_1639B
loc_1638C:
lea rdi, [rsp+98h+var_50]; this
mov rsi, r14; std::filesystem::__cxx11::path *
call _ZNSt10filesystem7__cxx114pathC2ERKS1_; std::filesystem::__cxx11::path::path(std::filesystem::__cxx11::path const&)
jmp short loc_163A5
loc_1639B:
lea rdi, [rsp+98h+var_50]; this
call _ZNSt10filesystem7__cxx114pathC2Ev; std::filesystem::__cxx11::path::path(void)
loc_163A5:
mov rsi, [rsp+98h+var_50]
lea r15, [rsp+98h+var_88]
mov [r15-10h], r15
mov rdx, [rsp+98h+var_48]
add rdx, rsi
mov rdi, rsp
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rsi, [rsp+98h+var_98]
mov rdx, [rsp+98h+var_90]
mov rdi, cs:_ZSt4cerr_ptr
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov r14, rax
lea rsi, asc_8D40A+1; ":"
mov edx, 1
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rdi, r14
mov esi, 1Fh
call __ZNSolsEi; std::ostream::operator<<(int)
mov r14, rax
lea rsi, asc_6612F; "]: "
mov edx, 3
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, a13393mwarning0; "\x1B[1;33;93mwarning:\x1B[0m "
mov edx, 17h
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)
lea rsi, aFailedToWriteI; "failed to write image: "
mov edx, 17h
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 rsi, [rbx+28h]
mov rdx, [rbx+30h]
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 r14, rax
mov rax, [rax]
mov rdi, [rax-18h]
add rdi, r14
mov esi, 0Ah
call __ZNKSt9basic_iosIcSt11char_traitsIcEE5widenEc; std::ios::widen(char)
movsx esi, al; char
mov rdi, r14; this
call __ZNSo3putEc; std::ostream::put(char)
mov rdi, rax; this
call __ZNSo5flushEv; std::ostream::flush(void)
mov rdi, [rsp+98h+var_98]; void *
cmp rdi, r15
jz short loc_1648B
mov rsi, [rsp+98h+var_88]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_1648B:
lea rdi, [rsp+98h+var_50]; this
call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path()
lea rdi, [rsp+98h+var_78]; this
call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path()
mov byte ptr [rbx+58h], 1
loc_164A3:
add rsp, 70h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_164B2:
mov rbx, rax
jmp short loc_164ED
jmp short $+2
loc_164B9:
mov rbx, rax
jmp short loc_164E3
mov rbx, rax
lea rdi, [rsp+arg_40]
jmp short loc_164F2
jmp short $+2
loc_164CA:
mov rbx, rax
mov rdi, [rsp+0]; void *
cmp rdi, r15
jz short loc_164E3
mov rsi, [rsp+arg_8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_164E3:
lea rdi, [rsp+arg_40]; this
call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path()
loc_164ED:
lea rdi, [rsp+arg_18]; this
loc_164F2:
call _ZNSt10filesystem7__cxx114pathD2Ev; std::filesystem::__cxx11::path::~path()
mov rdi, rbx
call __Unwind_Resume
| void Saver_Sprintf::step(Saver_Sprintf *this)
{
int v2; // eax
project *v3; // rdi
long long output_source; // r15
char v5; // bp
const std::filesystem::__cxx11::path *v6; // r14
long long v7; // rax
long long v8; // rax
long long v9; // rax
const std::filesystem::__cxx11::path *v10; // rdx
long long *v11; // rax
long long v12; // r14
long long v13; // r14
std::ostream *v14; // r14
char v15; // al
std::ostream *v16; // rax
long long v17; // rax
const std::filesystem::__cxx11::path *v18; // rdx
long long *v19; // rax
long long v20; // r14
long long v21; // r14
std::ostream *v22; // r14
char v23; // al
std::ostream *v24; // rax
void *v25; // [rsp+0h] [rbp-98h] BYREF
long long v26; // [rsp+8h] [rbp-90h]
_QWORD v27[2]; // [rsp+10h] [rbp-88h] BYREF
long long v28; // [rsp+20h] [rbp-78h] BYREF
long long v29; // [rsp+28h] [rbp-70h]
long long v30; // [rsp+40h] [rbp-58h] BYREF
_BYTE *v31; // [rsp+48h] [rbp-50h] BYREF
long long v32; // [rsp+50h] [rbp-48h]
if ( !*((_BYTE *)this + 88) && *((_QWORD *)this + 9) <= *((_QWORD *)this + 10) )
{
v2 = snprintf(0LL, 0LL, *((_QWORD *)this + 1));
std::string::resize((char *)this + 40, v2 + 2, 0LL);
v3 = (project *)*((_QWORD *)this + 5);
snprintf(v3, *((_QWORD *)this + 6), *((_QWORD *)this + 1));
output_source = project::get_output_source(v3);
std::filesystem::__cxx11::path::path<std::string,std::filesystem::__cxx11::path>(
(std::filesystem::__cxx11::path *)&v31,
(long long)this + 40);
v5 = Saver::write_source_RGBA(output_source, &v31);
std::filesystem::__cxx11::path::~path((std::filesystem::__cxx11::path *)&v31);
std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, "[", 1LL);
v6 = (const std::filesystem::__cxx11::path *)&v28;
if ( v5 )
{
std::filesystem::__cxx11::path::path<char [80],std::filesystem::__cxx11::path>(
(std::filesystem::__cxx11::path *)&v28,
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/riteg/saver_sprintf.cc");
if ( !v29
|| (LOBYTE(v7) = v30, (~(_BYTE)v30 & 3) != 0)
&& ((v30 & 3) != 0
|| *(_BYTE *)(v28 + v29 - 1) == 47
|| ((v30 & 3) == 0
? (const std::filesystem::__cxx11::path *)((v9 = std::filesystem::__cxx11::path::_List::end((std::filesystem::__cxx11::path::_List *)&v30),
v10 = (const std::filesystem::__cxx11::path *)(v9 - 48),
v11 = (long long *)(v9 - 16),
v6 = (const std::filesystem::__cxx11::path *)&v28,
(v30 & 3) != 0)
? (v11 = &v30)
: (long long *)(v6 = v10),
v7 = *v11)
: (v6 = (const std::filesystem::__cxx11::path *)&v28),
(~(_BYTE)v7 & 3) != 0)) )
{
std::filesystem::__cxx11::path::path((std::filesystem::__cxx11::path *)&v31);
}
else
{
std::filesystem::__cxx11::path::path((std::filesystem::__cxx11::path *)&v31, v6);
}
v25 = v27;
std::string::_M_construct<char const*>((long long)&v25, v31, (long long)&v31[v32]);
v12 = std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, v25, v26);
std::__ostream_insert<char,std::char_traits<char>>(v12, ":", 1LL);
v13 = std::ostream::operator<<(v12, 36LL);
std::__ostream_insert<char,std::char_traits<char>>(v13, "]: ", 3LL);
std::__ostream_insert<char,std::char_traits<char>>(v13, "\x1B[1;32;92minfo:\x1B[0m ", 20LL);
std::__ostream_insert<char,std::char_traits<char>>(v13, "wrote image: ", 13LL);
v14 = (std::ostream *)std::__ostream_insert<char,std::char_traits<char>>(
v13,
*((_QWORD *)this + 5),
*((_QWORD *)this + 6));
v15 = std::ios::widen((char *)v14 + *(_QWORD *)(*(_QWORD *)v14 - 24LL), 10LL);
v16 = (std::ostream *)std::ostream::put(v14, v15);
std::ostream::flush(v16);
if ( v25 != v27 )
operator delete(v25, v27[0] + 1LL);
std::filesystem::__cxx11::path::~path((std::filesystem::__cxx11::path *)&v31);
std::filesystem::__cxx11::path::~path((std::filesystem::__cxx11::path *)&v28);
++*((_QWORD *)this + 9);
}
else
{
std::filesystem::__cxx11::path::path<char [80],std::filesystem::__cxx11::path>(
(std::filesystem::__cxx11::path *)&v28,
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/riteg/saver_sprintf.cc");
if ( !v29
|| (LOBYTE(v8) = v30, (~(_BYTE)v30 & 3) != 0)
&& ((v30 & 3) != 0
|| *(_BYTE *)(v28 + v29 - 1) == 47
|| ((v30 & 3) == 0
? (const std::filesystem::__cxx11::path *)((v17 = std::filesystem::__cxx11::path::_List::end((std::filesystem::__cxx11::path::_List *)&v30),
v18 = (const std::filesystem::__cxx11::path *)(v17 - 48),
v19 = (long long *)(v17 - 16),
v6 = (const std::filesystem::__cxx11::path *)&v28,
(v30 & 3) != 0)
? (v19 = &v30)
: (long long *)(v6 = v18),
v8 = *v19)
: (v6 = (const std::filesystem::__cxx11::path *)&v28),
(~(_BYTE)v8 & 3) != 0)) )
{
std::filesystem::__cxx11::path::path((std::filesystem::__cxx11::path *)&v31);
}
else
{
std::filesystem::__cxx11::path::path((std::filesystem::__cxx11::path *)&v31, v6);
}
v25 = v27;
std::string::_M_construct<char const*>((long long)&v25, v31, (long long)&v31[v32]);
v20 = std::__ostream_insert<char,std::char_traits<char>>(&std::cerr, v25, v26);
std::__ostream_insert<char,std::char_traits<char>>(v20, ":", 1LL);
v21 = std::ostream::operator<<(v20, 31LL);
std::__ostream_insert<char,std::char_traits<char>>(v21, "]: ", 3LL);
std::__ostream_insert<char,std::char_traits<char>>(v21, "\x1B[1;33;93mwarning:\x1B[0m ", 23LL);
std::__ostream_insert<char,std::char_traits<char>>(v21, "failed to write image: ", 23LL);
v22 = (std::ostream *)std::__ostream_insert<char,std::char_traits<char>>(
v21,
*((_QWORD *)this + 5),
*((_QWORD *)this + 6));
v23 = std::ios::widen((char *)v22 + *(_QWORD *)(*(_QWORD *)v22 - 24LL), 10LL);
v24 = (std::ostream *)std::ostream::put(v22, v23);
std::ostream::flush(v24);
if ( v25 != v27 )
operator delete(v25, v27[0] + 1LL);
std::filesystem::__cxx11::path::~path((std::filesystem::__cxx11::path *)&v31);
std::filesystem::__cxx11::path::~path((std::filesystem::__cxx11::path *)&v28);
*((_BYTE *)this + 88) = 1;
}
}
}
| step:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x70
CMP byte ptr [RDI + 0x58],0x0
JNZ 0x001164a3
MOV RBX,RDI
MOV RCX,qword ptr [RDI + 0x48]
CMP RCX,qword ptr [RDI + 0x50]
JA 0x001164a3
LEA R14,[RBX + 0x28]
MOV RDX,qword ptr [RBX + 0x8]
XOR EDI,EDI
XOR ESI,ESI
XOR EAX,EAX
CALL 0x0010cd90
ADD EAX,0x2
MOVSXD RSI,EAX
MOV RDI,R14
XOR EDX,EDX
CALL 0x0010c220
MOV RDX,qword ptr [RBX + 0x8]
MOV RDI,qword ptr [RBX + 0x28]
MOV RSI,qword ptr [RBX + 0x30]
MOV ECX,dword ptr [RBX + 0x48]
XOR EAX,EAX
CALL 0x0010cd90
CALL 0x00114f34
MOV R15,RAX
LEA R12,[RSP + 0x48]
MOV RDI,R12
MOV RSI,R14
MOV EDX,0x2
CALL 0x00110416
LAB_0011612b:
MOV RDI,R15
MOV RSI,R12
CALL 0x00116550
LAB_00116136:
MOV EBP,EAX
LEA RDI,[RSP + 0x48]
CALL 0x0010e222
MOV RDI,qword ptr [0x001a6ff0]
LEA RSI,[0x16612d]
MOV EDX,0x1
CALL 0x0010c9e0
LEA RSI,[0x166a57]
LEA R14,[RSP + 0x20]
MOV RDI,R14
MOV EDX,0x2
TEST BPL,BPL
JZ 0x001161bd
CALL 0x0010f0da
MOV RCX,qword ptr [R14 + 0x8]
TEST RCX,RCX
JZ 0x0011624e
MOV RAX,qword ptr [RSP + 0x40]
MOV EDX,EAX
NOT DL
TEST DL,0x3
JZ 0x0011623f
MOV EDX,EAX
AND EDX,0x3
JNZ 0x0011624e
MOV RDX,qword ptr [RSP + 0x20]
CMP byte ptr [RDX + RCX*0x1 + -0x1],0x2f
JZ 0x0011624e
TEST AL,0x3
JZ 0x0011620e
LEA R14,[RSP + 0x20]
JMP 0x00116239
LAB_001161bd:
CALL 0x0010f0da
MOV RCX,qword ptr [R14 + 0x8]
TEST RCX,RCX
JZ 0x0011639b
MOV RAX,qword ptr [RSP + 0x40]
MOV EDX,EAX
NOT DL
TEST DL,0x3
JZ 0x0011638c
MOV EDX,EAX
AND EDX,0x3
JNZ 0x0011639b
MOV RDX,qword ptr [RSP + 0x20]
CMP byte ptr [RDX + RCX*0x1 + -0x1],0x2f
JZ 0x0011639b
TEST AL,0x3
JZ 0x0011635b
LEA R14,[RSP + 0x20]
JMP 0x00116386
LAB_0011620e:
LEA R15,[RSP + 0x40]
MOV RDI,R15
CALL 0x0010c520
MOV RCX,qword ptr [R15]
LEA RDX,[RAX + -0x30]
ADD RAX,-0x10
TEST CL,0x3
LEA R14,[RSP + 0x20]
CMOVZ R14,RDX
CMOVNZ RAX,R15
MOV RAX,qword ptr [RAX]
LAB_00116239:
NOT EAX
TEST AL,0x3
JNZ 0x0011624e
LAB_0011623f:
LEA RDI,[RSP + 0x48]
MOV RSI,R14
CALL 0x0010e282
JMP 0x00116258
LAB_0011624e:
LEA RDI,[RSP + 0x48]
CALL 0x0010e25a
LAB_00116258:
MOV RSI,qword ptr [RSP + 0x48]
LEA R15,[RSP + 0x10]
MOV qword ptr [R15 + -0x10],R15
MOV RDX,qword ptr [RSP + 0x50]
ADD RDX,RSI
LAB_0011626e:
MOV RDI,RSP
CALL 0x0010e36e
MOV RSI,qword ptr [RSP]
MOV RDX,qword ptr [RSP + 0x8]
LAB_0011627f:
MOV RDI,qword ptr [0x001a6ff0]
CALL 0x0010c9e0
MOV R14,RAX
LEA RSI,[0x18d40b]
MOV EDX,0x1
MOV RDI,RAX
CALL 0x0010c9e0
MOV RDI,R14
MOV ESI,0x24
CALL 0x0010ceb0
MOV R14,RAX
LEA RSI,[0x16612f]
MOV EDX,0x3
MOV RDI,RAX
CALL 0x0010c9e0
LEA RSI,[0x1669f2]
MOV EDX,0x14
MOV RDI,R14
CALL 0x0010c9e0
LEA RSI,[0x166a07]
MOV EDX,0xd
MOV RDI,R14
CALL 0x0010c9e0
MOV RSI,qword ptr [RBX + 0x28]
MOV RDX,qword ptr [RBX + 0x30]
MOV RDI,R14
CALL 0x0010c9e0
MOV R14,RAX
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,R14
MOV ESI,0xa
CALL 0x0010c860
MOVSX ESI,AL
MOV RDI,R14
CALL 0x0010c050
MOV RDI,RAX
CALL 0x0010c590
MOV RDI,qword ptr [RSP]
CMP RDI,R15
JZ 0x0011633e
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0010c8d0
LAB_0011633e:
LEA RDI,[RSP + 0x48]
CALL 0x0010e222
LEA RDI,[RSP + 0x20]
CALL 0x0010e222
INC qword ptr [RBX + 0x48]
JMP 0x001164a3
LAB_0011635b:
LEA R15,[RSP + 0x40]
MOV RDI,R15
CALL 0x0010c520
MOV RCX,qword ptr [R15]
LEA RDX,[RAX + -0x30]
ADD RAX,-0x10
TEST CL,0x3
LEA R14,[RSP + 0x20]
CMOVZ R14,RDX
CMOVNZ RAX,R15
MOV RAX,qword ptr [RAX]
LAB_00116386:
NOT EAX
TEST AL,0x3
JNZ 0x0011639b
LAB_0011638c:
LEA RDI,[RSP + 0x48]
MOV RSI,R14
CALL 0x0010e282
JMP 0x001163a5
LAB_0011639b:
LEA RDI,[RSP + 0x48]
CALL 0x0010e25a
LAB_001163a5:
MOV RSI,qword ptr [RSP + 0x48]
LEA R15,[RSP + 0x10]
MOV qword ptr [R15 + -0x10],R15
MOV RDX,qword ptr [RSP + 0x50]
ADD RDX,RSI
LAB_001163bb:
MOV RDI,RSP
CALL 0x0010e36e
MOV RSI,qword ptr [RSP]
MOV RDX,qword ptr [RSP + 0x8]
LAB_001163cc:
MOV RDI,qword ptr [0x001a6ff0]
CALL 0x0010c9e0
MOV R14,RAX
LEA RSI,[0x18d40b]
MOV EDX,0x1
MOV RDI,RAX
CALL 0x0010c9e0
MOV RDI,R14
MOV ESI,0x1f
CALL 0x0010ceb0
MOV R14,RAX
LEA RSI,[0x16612f]
MOV EDX,0x3
MOV RDI,RAX
CALL 0x0010c9e0
LEA RSI,[0x1662c1]
MOV EDX,0x17
MOV RDI,R14
CALL 0x0010c9e0
LEA RSI,[0x166a15]
MOV EDX,0x17
MOV RDI,R14
CALL 0x0010c9e0
MOV RSI,qword ptr [RBX + 0x28]
MOV RDX,qword ptr [RBX + 0x30]
MOV RDI,R14
CALL 0x0010c9e0
MOV R14,RAX
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RAX + -0x18]
ADD RDI,R14
MOV ESI,0xa
CALL 0x0010c860
MOVSX ESI,AL
MOV RDI,R14
CALL 0x0010c050
MOV RDI,RAX
CALL 0x0010c590
LAB_00116475:
MOV RDI,qword ptr [RSP]
CMP RDI,R15
JZ 0x0011648b
MOV RSI,qword ptr [RSP + 0x10]
INC RSI
CALL 0x0010c8d0
LAB_0011648b:
LEA RDI,[RSP + 0x48]
CALL 0x0010e222
LEA RDI,[RSP + 0x20]
CALL 0x0010e222
MOV byte ptr [RBX + 0x58],0x1
LAB_001164a3:
ADD RSP,0x70
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
/* Saver_Sprintf::step() */
void __thiscall Saver_Sprintf::step(Saver_Sprintf *this)
{
char cVar1;
int iVar2;
uint uVar3;
Source *pSVar4;
long lVar5;
ulong *puVar6;
ostream *poVar7;
path *ppVar8;
long *local_98;
long local_90;
long local_88 [2];
long local_78;
long local_70;
ulong local_58;
long local_50;
long local_48;
if (this[0x58] != (Saver_Sprintf)0x0) {
return;
}
if (*(ulong *)(this + 0x50) < *(ulong *)(this + 0x48)) {
return;
}
iVar2 = snprintf((char *)0x0,0,*(char **)(this + 8));
std::__cxx11::string::resize((ulong)(this + 0x28),(char)iVar2 + '\x02');
snprintf(*(char **)(this + 0x28),*(size_t *)(this + 0x30),*(char **)(this + 8),
(ulong)*(uint *)(this + 0x48));
pSVar4 = (Source *)project::get_output_source();
std::filesystem::__cxx11::path::path<std::__cxx11::string,std::filesystem::__cxx11::path>
((path *)&local_50,this + 0x28,2);
/* try { // try from 0011612b to 00116135 has its CatchHandler @ 001164be */
cVar1 = Saver::write_source_RGBA(pSVar4,(path *)&local_50);
std::filesystem::__cxx11::path::~path((path *)&local_50);
std::__ostream_insert<char,std::char_traits<char>>((ostream *)PTR_cerr_001a6ff0,"[",1);
ppVar8 = (path *)&local_78;
if (cVar1 == '\0') {
std::filesystem::__cxx11::path::path<char[80],std::filesystem::__cxx11::path>
(ppVar8,
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/riteg/saver_sprintf.cc",2);
if (local_70 != 0) {
uVar3 = (uint)local_58;
if ((~(byte)local_58 & 3) == 0) {
LAB_0011638c:
/* try { // try from 0011638c to 00116398 has its CatchHandler @ 001164b0 */
std::filesystem::__cxx11::path::path((path *)&local_50,ppVar8);
goto LAB_001163a5;
}
if (((local_58 & 3) == 0) && (*(char *)(local_78 + -1 + local_70) != '/')) {
if ((local_58 & 3) == 0) {
lVar5 = std::filesystem::__cxx11::path::_List::end();
ppVar8 = (path *)(lVar5 + -0x30);
puVar6 = (ulong *)(lVar5 + -0x10);
if ((local_58 & 3) != 0) {
puVar6 = &local_58;
ppVar8 = (path *)&local_78;
}
uVar3 = (uint)*puVar6;
}
else {
ppVar8 = (path *)&local_78;
}
if ((~uVar3 & 3) == 0) goto LAB_0011638c;
}
}
std::filesystem::__cxx11::path::path((path *)&local_50);
LAB_001163a5:
local_98 = local_88;
/* try { // try from 001163bb to 001163c2 has its CatchHandler @ 001164b7 */
std::__cxx11::string::_M_construct<char_const*>(&local_98,local_50,local_48 + local_50);
/* try { // try from 001163cc to 00116474 has its CatchHandler @ 001164c8 */
poVar7 = std::__ostream_insert<char,std::char_traits<char>>
((ostream *)PTR_cerr_001a6ff0,(char *)local_98,local_90);
std::__ostream_insert<char,std::char_traits<char>>(poVar7,":",1);
poVar7 = (ostream *)std::ostream::operator<<(poVar7,0x1f);
std::__ostream_insert<char,std::char_traits<char>>(poVar7,"]: ",3);
std::__ostream_insert<char,std::char_traits<char>>(poVar7,"\x1b[1;33;93mwarning:\x1b[0m ",0x17);
std::__ostream_insert<char,std::char_traits<char>>(poVar7,"failed to write image: ",0x17);
poVar7 = std::__ostream_insert<char,std::char_traits<char>>
(poVar7,*(char **)(this + 0x28),*(long *)(this + 0x30));
std::ios::widen((char)*(int8 *)(*(long *)poVar7 + -0x18) + (char)poVar7);
std::ostream::put((char)poVar7);
std::ostream::flush();
if (local_98 != local_88) {
operator_delete(local_98,local_88[0] + 1);
}
std::filesystem::__cxx11::path::~path((path *)&local_50);
std::filesystem::__cxx11::path::~path((path *)&local_78);
this[0x58] = (Saver_Sprintf)0x1;
return;
}
std::filesystem::__cxx11::path::path<char[80],std::filesystem::__cxx11::path>
(ppVar8,
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/riteg/saver_sprintf.cc",2);
if (local_70 != 0) {
uVar3 = (uint)local_58;
if ((~(byte)local_58 & 3) == 0) {
LAB_0011623f:
/* try { // try from 0011623f to 0011624b has its CatchHandler @ 001164b2 */
std::filesystem::__cxx11::path::path((path *)&local_50,ppVar8);
goto LAB_00116258;
}
if (((local_58 & 3) == 0) && (*(char *)(local_78 + -1 + local_70) != '/')) {
if ((local_58 & 3) == 0) {
lVar5 = std::filesystem::__cxx11::path::_List::end();
ppVar8 = (path *)(lVar5 + -0x30);
puVar6 = (ulong *)(lVar5 + -0x10);
if ((local_58 & 3) != 0) {
puVar6 = &local_58;
ppVar8 = (path *)&local_78;
}
uVar3 = (uint)*puVar6;
}
else {
ppVar8 = (path *)&local_78;
}
if ((~uVar3 & 3) == 0) goto LAB_0011623f;
}
}
std::filesystem::__cxx11::path::path((path *)&local_50);
LAB_00116258:
local_98 = local_88;
/* try { // try from 0011626e to 00116275 has its CatchHandler @ 001164b9 */
std::__cxx11::string::_M_construct<char_const*>(&local_98,local_50,local_48 + local_50);
/* try { // try from 0011627f to 00116327 has its CatchHandler @ 001164ca */
poVar7 = std::__ostream_insert<char,std::char_traits<char>>
((ostream *)PTR_cerr_001a6ff0,(char *)local_98,local_90);
std::__ostream_insert<char,std::char_traits<char>>(poVar7,":",1);
poVar7 = (ostream *)std::ostream::operator<<(poVar7,0x24);
std::__ostream_insert<char,std::char_traits<char>>(poVar7,"]: ",3);
std::__ostream_insert<char,std::char_traits<char>>(poVar7,"\x1b[1;32;92minfo:\x1b[0m ",0x14);
std::__ostream_insert<char,std::char_traits<char>>(poVar7,"wrote image: ",0xd);
poVar7 = std::__ostream_insert<char,std::char_traits<char>>
(poVar7,*(char **)(this + 0x28),*(long *)(this + 0x30));
std::ios::widen((char)*(int8 *)(*(long *)poVar7 + -0x18) + (char)poVar7);
std::ostream::put((char)poVar7);
std::ostream::flush();
if (local_98 != local_88) {
operator_delete(local_98,local_88[0] + 1);
}
std::filesystem::__cxx11::path::~path((path *)&local_50);
std::filesystem::__cxx11::path::~path((path *)&local_78);
*(long *)(this + 0x48) = *(long *)(this + 0x48) + 1;
return;
}
| |
44,378 | 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::__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>>>::begin() const | monkey531[P]llama/common/./json.hpp | iteration_proxy_value<IteratorType> begin() const noexcept
{
return iteration_proxy_value<IteratorType>(container->begin());
} | O3 | cpp | 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::__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>>>::begin() const:
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq (%rsi), %rax
movq %rax, (%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsp)
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
movq %rcx, 0x18(%rsp)
movzbl (%rax), %ecx
testl %ecx, %ecx
je 0xe47cf
cmpl $0x2, %ecx
je 0xe47c1
cmpl $0x1, %ecx
jne 0xe47da
movq 0x8(%rax), %rax
movq (%rax), %rax
movq %rax, 0x8(%rsp)
jmp 0xe47e3
movq 0x8(%rax), %rax
movq (%rax), %rax
movq %rax, 0x10(%rsp)
jmp 0xe47e3
movq $0x1, 0x18(%rsp)
jmp 0xe47e3
movq $0x0, 0x18(%rsp)
movq %rsp, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0xae214
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
retq
nop
| _ZNK8nlohmann16json_abi_v3_11_36detail15iteration_proxyINS1_9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEE5beginEv:
push rbx
sub rsp, 20h
mov rbx, rdi
mov rax, [rsi]
mov [rsp+28h+var_28], rax
xorps xmm0, xmm0
movups [rsp+28h+var_20], xmm0
mov rcx, 8000000000000000h
mov [rsp+28h+var_10], rcx
movzx ecx, byte ptr [rax]
test ecx, ecx
jz short loc_E47CF
cmp ecx, 2
jz short loc_E47C1
cmp ecx, 1
jnz short loc_E47DA
mov rax, [rax+8]
mov rax, [rax]
mov qword ptr [rsp+28h+var_20], rax
jmp short loc_E47E3
loc_E47C1:
mov rax, [rax+8]
mov rax, [rax]
mov qword ptr [rsp+28h+var_20+8], rax
jmp short loc_E47E3
loc_E47CF:
mov [rsp+28h+var_10], 1
jmp short loc_E47E3
loc_E47DA:
mov [rsp+28h+var_10], 0
loc_E47E3:
mov rsi, rsp
mov rdi, rbx
xor edx, edx
call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEEC2ESH_m; 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>>>::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>>,ulong)
mov rax, rbx
add rsp, 20h
pop rbx
retn
| long long 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>>>::begin(
long long a1,
unsigned __int8 **a2)
{
unsigned __int8 *v2; // rax
int v3; // ecx
unsigned __int8 *v5; // [rsp+0h] [rbp-28h] BYREF
__int128 v6; // [rsp+8h] [rbp-20h]
long long v7; // [rsp+18h] [rbp-10h]
v2 = *a2;
v5 = v2;
v6 = 0LL;
v7 = 0x8000000000000000LL;
v3 = *v2;
if ( *v2 )
{
if ( v3 == 2 )
{
*((_QWORD *)&v6 + 1) = **((_QWORD **)v2 + 1);
}
else if ( v3 == 1 )
{
*(_QWORD *)&v6 = **((_QWORD **)v2 + 1);
}
else
{
v7 = 0LL;
}
}
else
{
v7 = 1LL;
}
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>>>::iteration_proxy_value(
a1,
(__int128 *)&v5,
0LL);
return a1;
}
| begin:
PUSH RBX
SUB RSP,0x20
MOV RBX,RDI
MOV RAX,qword ptr [RSI]
MOV qword ptr [RSP],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSP + 0x8],XMM0
MOV RCX,-0x8000000000000000
MOV qword ptr [RSP + 0x18],RCX
MOVZX ECX,byte ptr [RAX]
TEST ECX,ECX
JZ 0x001e47cf
CMP ECX,0x2
JZ 0x001e47c1
CMP ECX,0x1
JNZ 0x001e47da
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x8],RAX
JMP 0x001e47e3
LAB_001e47c1:
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x10],RAX
JMP 0x001e47e3
LAB_001e47cf:
MOV qword ptr [RSP + 0x18],0x1
JMP 0x001e47e3
LAB_001e47da:
MOV qword ptr [RSP + 0x18],0x0
LAB_001e47e3:
MOV RSI,RSP
MOV RDI,RBX
XOR EDX,EDX
CALL 0x001ae214
MOV RAX,RBX
ADD RSP,0x20
POP RBX
RET
|
/* 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::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> > >::begin() const */
void 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::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::begin(void)
{
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>>>
::iteration_proxy_value();
return;
}
| |
44,379 | 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::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>::end() const | monkey531[P]llama/common/./json.hpp | iteration_proxy_value<IteratorType> end() const noexcept
{
return iteration_proxy_value<IteratorType>(container->end());
} | O3 | cpp | 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::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>::end() const:
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movq (%rsi), %rax
movq %rax, (%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rsp)
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
movq %rcx, 0x18(%rsp)
movzbl (%rax), %ecx
cmpl $0x2, %ecx
je 0xb03c8
cmpl $0x1, %ecx
jne 0xb03d7
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x8(%rsp)
jmp 0xb03e0
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, 0x10(%rsp)
jmp 0xb03e0
movq $0x1, 0x18(%rsp)
movq %rsp, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x55b26
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
retq
| _ZNK8nlohmann16json_abi_v3_11_36detail15iteration_proxyINS1_9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEE3endEv:
push rbx
sub rsp, 20h
mov rbx, rdi
mov rax, [rsi]
mov [rsp+28h+var_28], rax
xorps xmm0, xmm0
movups [rsp+28h+var_20], xmm0
mov rcx, 8000000000000000h
mov [rsp+28h+var_10], rcx
movzx ecx, byte ptr [rax]
cmp ecx, 2
jz short loc_B03C8
cmp ecx, 1
jnz short loc_B03D7
mov rax, [rax+8]
mov rax, [rax+8]
mov qword ptr [rsp+28h+var_20], rax
jmp short loc_B03E0
loc_B03C8:
mov rax, [rax+8]
mov rax, [rax+8]
mov qword ptr [rsp+28h+var_20+8], rax
jmp short loc_B03E0
loc_B03D7:
mov [rsp+28h+var_10], 1
loc_B03E0:
mov rsi, rsp
mov rdi, rbx
xor edx, edx
call _ZN8nlohmann16json_abi_v3_11_36detail21iteration_proxy_valueINS1_9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEEEEEC2ESH_m; 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>>>::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>>,ulong)
mov rax, rbx
add rsp, 20h
pop rbx
retn
| long long 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>>>::end(
long long a1,
unsigned __int8 **a2)
{
unsigned __int8 *v2; // rax
int v3; // ecx
unsigned __int8 *v5; // [rsp+0h] [rbp-28h] BYREF
__int128 v6; // [rsp+8h] [rbp-20h]
long long v7; // [rsp+18h] [rbp-10h]
v2 = *a2;
v5 = v2;
v6 = 0LL;
v7 = 0x8000000000000000LL;
v3 = *v2;
if ( v3 == 2 )
{
*((_QWORD *)&v6 + 1) = *(_QWORD *)(*((_QWORD *)v2 + 1) + 8LL);
}
else if ( v3 == 1 )
{
*(_QWORD *)&v6 = *(_QWORD *)(*((_QWORD *)v2 + 1) + 8LL);
}
else
{
v7 = 1LL;
}
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>>>::iteration_proxy_value(
a1,
(__int128 *)&v5,
0LL);
return a1;
}
| end:
PUSH RBX
SUB RSP,0x20
MOV RBX,RDI
MOV RAX,qword ptr [RSI]
MOV qword ptr [RSP],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSP + 0x8],XMM0
MOV RCX,-0x8000000000000000
MOV qword ptr [RSP + 0x18],RCX
MOVZX ECX,byte ptr [RAX]
CMP ECX,0x2
JZ 0x001b03c8
CMP ECX,0x1
JNZ 0x001b03d7
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x8],RAX
JMP 0x001b03e0
LAB_001b03c8:
MOV RAX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x10],RAX
JMP 0x001b03e0
LAB_001b03d7:
MOV qword ptr [RSP + 0x18],0x1
LAB_001b03e0:
MOV RSI,RSP
MOV RDI,RBX
XOR EDX,EDX
CALL 0x00155b26
MOV RAX,RBX
ADD RSP,0x20
POP RBX
RET
|
/* 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::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> > >::end() const */
void 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::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>
::end(void)
{
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>>>
::iteration_proxy_value();
return;
}
| |
44,380 | add_ic_slot | bluesky950520[P]quickjs/quickjs.c | static void add_ic_slot(JSContext *ctx, JSInlineCacheUpdate *icu,
JSAtom atom, JSObject *object, uint32_t prop_offset)
{
int32_t i;
uint32_t h;
JSInlineCacheHashSlot *ch;
JSInlineCacheRingSlot *cr;
JSInlineCache *ic;
JSShape *sh;
if (!icu)
return;
ic = icu->ic;
if (!ic)
return;
sh = object->shape;
if (!sh->is_hashed)
return;
cr = NULL;
h = get_index_hash(atom, ic->hash_bits);
for (ch = ic->hash[h]; ch != NULL; ch = ch->next) {
if (ch->atom == atom) {
cr = ic->cache + ch->index;
break;
}
}
assert(cr != NULL);
i = cr->index;
do {
if (sh == cr->shape[i]) {
cr->prop_offset[i] = prop_offset;
goto end;
}
i = (i + 1) % countof(cr->shape);
} while (i != cr->index);
js_free_shape_null(ctx->rt, cr->shape[i]);
cr->shape[i] = js_dup_shape(sh);
cr->prop_offset[i] = prop_offset;
end:
icu->offset = ch->index;
} | O0 | c | add_ic_slot:
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
movl %edx, 0x3c(%rsp)
movq %rcx, 0x30(%rsp)
movl %r8d, 0x2c(%rsp)
cmpq $0x0, 0x40(%rsp)
jne 0x5f2b9
jmp 0x5f42e
movq 0x40(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x5f2d3
jmp 0x5f42e
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, (%rsp)
movq (%rsp), %rax
cmpb $0x0, 0x18(%rax)
jne 0x5f2ef
jmp 0x5f42e
movq $0x0, 0x10(%rsp)
movl 0x3c(%rsp), %ecx
movq 0x8(%rsp), %rax
movl 0x8(%rax), %eax
movl %ecx, 0x54(%rsp)
movl %eax, 0x50(%rsp)
imull $0x9e370001, 0x54(%rsp), %eax # imm = 0x9E370001
movl $0x20, %ecx
subl 0x50(%rsp), %ecx
shrl %cl, %eax
movl %eax, 0x24(%rsp)
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rax
movl 0x24(%rsp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x18(%rsp)
je 0x5f37f
movq 0x18(%rsp), %rax
movl (%rax), %eax
cmpl 0x3c(%rsp), %eax
jne 0x5f36d
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rax
movq 0x18(%rsp), %rcx
movl 0x4(%rcx), %ecx
imulq $0x38, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0x10(%rsp)
jmp 0x5f37f
jmp 0x5f36f
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x18(%rsp)
jmp 0x5f339
movq 0x10(%rsp), %rax
movzbl 0x34(%rax), %eax
movl %eax, 0x28(%rsp)
movq (%rsp), %rax
movq 0x10(%rsp), %rcx
movslq 0x28(%rsp), %rdx
cmpq (%rcx,%rdx,8), %rax
jne 0x5f3b4
movl 0x2c(%rsp), %edx
movq 0x10(%rsp), %rax
movslq 0x28(%rsp), %rcx
movl %edx, 0x20(%rax,%rcx,4)
jmp 0x5f41e
movl 0x28(%rsp), %eax
addl $0x1, %eax
cltq
andq $0x3, %rax
movl %eax, 0x28(%rsp)
movl 0x28(%rsp), %eax
movq 0x10(%rsp), %rcx
movzbl 0x34(%rcx), %ecx
cmpl %ecx, %eax
jne 0x5f38c
movq 0x48(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x10(%rsp), %rax
movslq 0x28(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x26bf0
movq (%rsp), %rdi
callq 0x28d90
movq %rax, %rdx
movq 0x10(%rsp), %rax
movslq 0x28(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movl 0x2c(%rsp), %edx
movq 0x10(%rsp), %rax
movslq 0x28(%rsp), %rcx
movl %edx, 0x20(%rax,%rcx,4)
movq 0x18(%rsp), %rax
movl 0x4(%rax), %ecx
movq 0x40(%rsp), %rax
movl %ecx, 0x8(%rax)
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)
| add_ic_slot:
sub rsp, 58h
mov [rsp+58h+var_10], rdi
mov [rsp+58h+var_18], rsi
mov [rsp+58h+var_1C], edx
mov [rsp+58h+var_28], rcx
mov [rsp+58h+var_2C], r8d
cmp [rsp+58h+var_18], 0
jnz short loc_5F2B9
jmp loc_5F42E
loc_5F2B9:
mov rax, [rsp+58h+var_18]
mov rax, [rax]
mov [rsp+58h+var_50], rax
cmp [rsp+58h+var_50], 0
jnz short loc_5F2D3
jmp loc_5F42E
loc_5F2D3:
mov rax, [rsp+58h+var_28]
mov rax, [rax+18h]
mov [rsp+58h+var_58], rax
mov rax, [rsp+58h+var_58]
cmp byte ptr [rax+18h], 0
jnz short loc_5F2EF
jmp loc_5F42E
loc_5F2EF:
mov [rsp+58h+var_48], 0
mov ecx, [rsp+58h+var_1C]
mov rax, [rsp+58h+var_50]
mov eax, [rax+8]
mov [rsp+58h+var_4], ecx
mov [rsp+58h+var_8], eax
imul eax, [rsp+58h+var_4], 9E370001h
mov ecx, 20h ; ' '
sub ecx, [rsp+58h+var_8]
shr eax, cl
mov [rsp+58h+var_34], eax
mov rax, [rsp+58h+var_50]
mov rax, [rax+10h]
mov ecx, [rsp+58h+var_34]
mov rax, [rax+rcx*8]
mov [rsp+58h+var_40], rax
loc_5F339:
cmp [rsp+58h+var_40], 0
jz short loc_5F37F
mov rax, [rsp+58h+var_40]
mov eax, [rax]
cmp eax, [rsp+58h+var_1C]
jnz short loc_5F36D
mov rax, [rsp+58h+var_50]
mov rax, [rax+18h]
mov rcx, [rsp+58h+var_40]
mov ecx, [rcx+4]
imul rcx, 38h ; '8'
add rax, rcx
mov [rsp+58h+var_48], rax
jmp short loc_5F37F
loc_5F36D:
jmp short $+2
loc_5F36F:
mov rax, [rsp+58h+var_40]
mov rax, [rax+8]
mov [rsp+58h+var_40], rax
jmp short loc_5F339
loc_5F37F:
mov rax, [rsp+58h+var_48]
movzx eax, byte ptr [rax+34h]
mov [rsp+58h+var_30], eax
loc_5F38C:
mov rax, [rsp+58h+var_58]
mov rcx, [rsp+58h+var_48]
movsxd rdx, [rsp+58h+var_30]
cmp rax, [rcx+rdx*8]
jnz short loc_5F3B4
mov edx, [rsp+58h+var_2C]
mov rax, [rsp+58h+var_48]
movsxd rcx, [rsp+58h+var_30]
mov [rax+rcx*4+20h], edx
jmp short loc_5F41E
loc_5F3B4:
mov eax, [rsp+58h+var_30]
add eax, 1
cdqe
and rax, 3
mov [rsp+58h+var_30], eax
mov eax, [rsp+58h+var_30]
mov rcx, [rsp+58h+var_48]
movzx ecx, byte ptr [rcx+34h]
cmp eax, ecx
jnz short loc_5F38C
mov rax, [rsp+58h+var_10]
mov rdi, [rax+18h]
mov rax, [rsp+58h+var_48]
movsxd rcx, [rsp+58h+var_30]
mov rsi, [rax+rcx*8]
call js_free_shape_null
mov rdi, [rsp+58h+var_58]
call js_dup_shape
mov rdx, rax
mov rax, [rsp+58h+var_48]
movsxd rcx, [rsp+58h+var_30]
mov [rax+rcx*8], rdx
mov edx, [rsp+58h+var_2C]
mov rax, [rsp+58h+var_48]
movsxd rcx, [rsp+58h+var_30]
mov [rax+rcx*4+20h], edx
loc_5F41E:
mov rax, [rsp+58h+var_40]
mov ecx, [rax+4]
mov rax, [rsp+58h+var_18]
mov [rax+8], ecx
loc_5F42E:
add rsp, 58h
retn
| void add_ic_slot(long long a1, long long *a2, int a3, long long a4, int a5)
{
long long v5; // [rsp+0h] [rbp-58h]
long long v6; // [rsp+8h] [rbp-50h]
long long v7; // [rsp+10h] [rbp-48h]
long long i; // [rsp+18h] [rbp-40h]
int v9; // [rsp+28h] [rbp-30h]
if ( a2 )
{
v6 = *a2;
if ( *a2 )
{
v5 = *(_QWORD *)(a4 + 24);
if ( *(_BYTE *)(v5 + 24) )
{
v7 = 0LL;
for ( i = *(_QWORD *)(*(_QWORD *)(v6 + 16)
+ 8LL * ((unsigned int)(-1640562687 * a3) >> (32 - *(_DWORD *)(v6 + 8))));
i;
i = *(_QWORD *)(i + 8) )
{
if ( *(_DWORD *)i == a3 )
{
v7 = 56LL * *(unsigned int *)(i + 4) + *(_QWORD *)(v6 + 24);
break;
}
}
v9 = *(unsigned __int8 *)(v7 + 52);
do
{
if ( v5 == *(_QWORD *)(v7 + 8LL * v9) )
{
*(_DWORD *)(v7 + 4LL * v9 + 32) = a5;
goto LABEL_14;
}
v9 = ((_BYTE)v9 + 1) & 3;
}
while ( v9 != *(unsigned __int8 *)(v7 + 52) );
js_free_shape_null(*(_QWORD *)(a1 + 24), *(_QWORD *)(v7 + 8LL * v9));
*(_QWORD *)(v7 + 8LL * v9) = js_dup_shape((_DWORD *)v5);
*(_DWORD *)(v7 + 4LL * v9 + 32) = a5;
LABEL_14:
*((_DWORD *)a2 + 2) = *(_DWORD *)(i + 4);
}
}
}
}
| add_ic_slot:
SUB RSP,0x58
MOV qword ptr [RSP + 0x48],RDI
MOV qword ptr [RSP + 0x40],RSI
MOV dword ptr [RSP + 0x3c],EDX
MOV qword ptr [RSP + 0x30],RCX
MOV dword ptr [RSP + 0x2c],R8D
CMP qword ptr [RSP + 0x40],0x0
JNZ 0x0015f2b9
JMP 0x0015f42e
LAB_0015f2b9:
MOV RAX,qword ptr [RSP + 0x40]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP + 0x8],RAX
CMP qword ptr [RSP + 0x8],0x0
JNZ 0x0015f2d3
JMP 0x0015f42e
LAB_0015f2d3:
MOV RAX,qword ptr [RSP + 0x30]
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RSP],RAX
MOV RAX,qword ptr [RSP]
CMP byte ptr [RAX + 0x18],0x0
JNZ 0x0015f2ef
JMP 0x0015f42e
LAB_0015f2ef:
MOV qword ptr [RSP + 0x10],0x0
MOV ECX,dword ptr [RSP + 0x3c]
MOV RAX,qword ptr [RSP + 0x8]
MOV EAX,dword ptr [RAX + 0x8]
MOV dword ptr [RSP + 0x54],ECX
MOV dword ptr [RSP + 0x50],EAX
IMUL EAX,dword ptr [RSP + 0x54],-0x61c8ffff
MOV ECX,0x20
SUB ECX,dword ptr [RSP + 0x50]
SHR EAX,CL
MOV dword ptr [RSP + 0x24],EAX
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV ECX,dword ptr [RSP + 0x24]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RSP + 0x18],RAX
LAB_0015f339:
CMP qword ptr [RSP + 0x18],0x0
JZ 0x0015f37f
MOV RAX,qword ptr [RSP + 0x18]
MOV EAX,dword ptr [RAX]
CMP EAX,dword ptr [RSP + 0x3c]
JNZ 0x0015f36d
MOV RAX,qword ptr [RSP + 0x8]
MOV RAX,qword ptr [RAX + 0x18]
MOV RCX,qword ptr [RSP + 0x18]
MOV ECX,dword ptr [RCX + 0x4]
IMUL RCX,RCX,0x38
ADD RAX,RCX
MOV qword ptr [RSP + 0x10],RAX
JMP 0x0015f37f
LAB_0015f36d:
JMP 0x0015f36f
LAB_0015f36f:
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RSP + 0x18],RAX
JMP 0x0015f339
LAB_0015f37f:
MOV RAX,qword ptr [RSP + 0x10]
MOVZX EAX,byte ptr [RAX + 0x34]
MOV dword ptr [RSP + 0x28],EAX
LAB_0015f38c:
MOV RAX,qword ptr [RSP]
MOV RCX,qword ptr [RSP + 0x10]
MOVSXD RDX,dword ptr [RSP + 0x28]
CMP RAX,qword ptr [RCX + RDX*0x8]
JNZ 0x0015f3b4
MOV EDX,dword ptr [RSP + 0x2c]
MOV RAX,qword ptr [RSP + 0x10]
MOVSXD RCX,dword ptr [RSP + 0x28]
MOV dword ptr [RAX + RCX*0x4 + 0x20],EDX
JMP 0x0015f41e
LAB_0015f3b4:
MOV EAX,dword ptr [RSP + 0x28]
ADD EAX,0x1
CDQE
AND RAX,0x3
MOV dword ptr [RSP + 0x28],EAX
MOV EAX,dword ptr [RSP + 0x28]
MOV RCX,qword ptr [RSP + 0x10]
MOVZX ECX,byte ptr [RCX + 0x34]
CMP EAX,ECX
JNZ 0x0015f38c
MOV RAX,qword ptr [RSP + 0x48]
MOV RDI,qword ptr [RAX + 0x18]
MOV RAX,qword ptr [RSP + 0x10]
MOVSXD RCX,dword ptr [RSP + 0x28]
MOV RSI,qword ptr [RAX + RCX*0x8]
CALL 0x00126bf0
MOV RDI,qword ptr [RSP]
CALL 0x00128d90
MOV RDX,RAX
MOV RAX,qword ptr [RSP + 0x10]
MOVSXD RCX,dword ptr [RSP + 0x28]
MOV qword ptr [RAX + RCX*0x8],RDX
MOV EDX,dword ptr [RSP + 0x2c]
MOV RAX,qword ptr [RSP + 0x10]
MOVSXD RCX,dword ptr [RSP + 0x28]
MOV dword ptr [RAX + RCX*0x4 + 0x20],EDX
LAB_0015f41e:
MOV RAX,qword ptr [RSP + 0x18]
MOV ECX,dword ptr [RAX + 0x4]
MOV RAX,qword ptr [RSP + 0x40]
MOV dword ptr [RAX + 0x8],ECX
LAB_0015f42e:
ADD RSP,0x58
RET
|
void add_ic_slot(long param_1,long *param_2,int param_3,long param_4,int4 param_5)
{
long lVar1;
long lVar2;
int8 uVar3;
long local_48;
int *local_40;
uint local_30;
if (((param_2 != (long *)0x0) && (lVar1 = *param_2, lVar1 != 0)) &&
(lVar2 = *(long *)(param_4 + 0x18), *(char *)(lVar2 + 0x18) != '\0')) {
local_48 = 0;
for (local_40 = *(int **)(*(long *)(lVar1 + 0x10) +
(ulong)((uint)(param_3 * -0x61c8ffff) >>
(0x20U - (char)*(int4 *)(lVar1 + 8) & 0x1f)) * 8);
local_40 != (int *)0x0; local_40 = *(int **)(local_40 + 2)) {
if (*local_40 == param_3) {
local_48 = *(long *)(lVar1 + 0x18) + (ulong)(uint)local_40[1] * 0x38;
break;
}
}
local_30 = (uint)*(byte *)(local_48 + 0x34);
do {
if (lVar2 == *(long *)(local_48 + (long)(int)local_30 * 8)) {
*(int4 *)(local_48 + 0x20 + (long)(int)local_30 * 4) = param_5;
goto LAB_0015f41e;
}
local_30 = local_30 + 1 & 3;
} while (local_30 != *(byte *)(local_48 + 0x34));
js_free_shape_null(*(int8 *)(param_1 + 0x18),
*(int8 *)(local_48 + (long)(int)local_30 * 8));
uVar3 = js_dup_shape(lVar2);
*(int8 *)(local_48 + (long)(int)local_30 * 8) = uVar3;
*(int4 *)(local_48 + 0x20 + (long)(int)local_30 * 4) = param_5;
LAB_0015f41e:
*(int *)(param_2 + 1) = local_40[1];
}
return;
}
| |
44,381 | Generator::push(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | BhuvanGudi[P]LexiParse/src/generation.hpp | void push(const std::string& reg)
{
m_output << " push " << reg << "\n";
m_stack_size++;
} | O1 | cpp | Generator::push(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x28(%rdi), %r15
leaq 0x1cad(%rip), %rsi # 0x9449
movl $0x9, %edx
movq %r15, %rdi
callq 0x2230
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r15, %rdi
callq 0x2230
leaq 0x1c4a(%rip), %rsi # 0x9409
movl $0x1, %edx
movq %rax, %rdi
callq 0x2230
incq 0x1a0(%r14)
popq %rbx
popq %r14
popq %r15
retq
nop
| _ZN9Generator4pushERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r15
push r14
push rbx
mov rbx, rsi
mov r14, rdi
lea r15, [rdi+28h]
lea rsi, aPush; " push "
mov edx, 9
mov rdi, r15
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rsi, [rbx]
mov rdx, [rbx+8]
mov rdi, r15
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, aMovRdi0+0Eh; "\n"
mov edx, 1
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
inc qword ptr [r14+1A0h]
pop rbx
pop r14
pop r15
retn
| long long Generator::push(long long a1, _QWORD *a2)
{
long long v2; // rax
long long result; // rax
std::__ostream_insert<char,std::char_traits<char>>(a1 + 40, " push ", 9LL);
v2 = std::__ostream_insert<char,std::char_traits<char>>(a1 + 40, *a2, a2[1]);
result = std::__ostream_insert<char,std::char_traits<char>>(v2, "\n", 1LL);
++*(_QWORD *)(a1 + 416);
return result;
}
| push:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RSI
MOV R14,RDI
LEA R15,[RDI + 0x28]
LEA RSI,[0x109449]
MOV EDX,0x9
MOV RDI,R15
CALL 0x00102230
MOV RSI,qword ptr [RBX]
MOV RDX,qword ptr [RBX + 0x8]
MOV RDI,R15
CALL 0x00102230
LEA RSI,[0x109409]
MOV EDX,0x1
MOV RDI,RAX
CALL 0x00102230
INC qword ptr [R14 + 0x1a0]
POP RBX
POP R14
POP R15
RET
|
/* Generator::push(std::__cxx11::string const&) */
void __thiscall Generator::push(Generator *this,string *param_1)
{
ostream *poVar1;
std::__ostream_insert<char,std::char_traits<char>>((ostream *)(this + 0x28)," push ",9);
poVar1 = std::__ostream_insert<char,std::char_traits<char>>
((ostream *)(this + 0x28),*(char **)param_1,*(long *)(param_1 + 8));
std::__ostream_insert<char,std::char_traits<char>>(poVar1,"\n",1);
*(long *)(this + 0x1a0) = *(long *)(this + 0x1a0) + 1;
return;
}
| |
44,382 | Generator::push(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&) | BhuvanGudi[P]LexiParse/src/generation.hpp | void push(const std::string& reg)
{
m_output << " push " << reg << "\n";
m_stack_size++;
} | O3 | cpp | Generator::push(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&):
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x28(%rdi), %r15
leaq 0x232f(%rip), %rsi # 0x9469
movl $0x9, %edx
movq %r15, %rdi
callq 0x2230
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq %r15, %rdi
callq 0x2230
leaq 0x22cc(%rip), %rsi # 0x9429
movl $0x1, %edx
movq %rax, %rdi
callq 0x2230
incq 0x1a0(%r14)
popq %rbx
popq %r14
popq %r15
retq
nop
| _ZN9Generator4pushERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE:
push r15
push r14
push rbx
mov rbx, rsi
mov r14, rdi
lea r15, [rdi+28h]
lea rsi, aPush; " push "
mov edx, 9
mov rdi, r15
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
mov rsi, [rbx]
mov rdx, [rbx+8]
mov rdi, r15
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rsi, aMovRdi0+0Eh; "\n"
mov edx, 1
mov rdi, rax
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
inc qword ptr [r14+1A0h]
pop rbx
pop r14
pop r15
retn
| long long Generator::push(long long a1, _QWORD *a2)
{
long long v2; // rax
long long result; // rax
std::__ostream_insert<char,std::char_traits<char>>(a1 + 40, " push ", 9LL);
v2 = std::__ostream_insert<char,std::char_traits<char>>(a1 + 40, *a2, a2[1]);
result = std::__ostream_insert<char,std::char_traits<char>>(v2, "\n", 1LL);
++*(_QWORD *)(a1 + 416);
return result;
}
| push:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RSI
MOV R14,RDI
LEA R15,[RDI + 0x28]
LEA RSI,[0x109469]
MOV EDX,0x9
MOV RDI,R15
CALL 0x00102230
MOV RSI,qword ptr [RBX]
MOV RDX,qword ptr [RBX + 0x8]
MOV RDI,R15
CALL 0x00102230
LEA RSI,[0x109429]
MOV EDX,0x1
MOV RDI,RAX
CALL 0x00102230
INC qword ptr [R14 + 0x1a0]
POP RBX
POP R14
POP R15
RET
|
/* Generator::push(std::__cxx11::string const&) */
void __thiscall Generator::push(Generator *this,string *param_1)
{
ostream *poVar1;
std::__ostream_insert<char,std::char_traits<char>>((ostream *)(this + 0x28)," push ",9);
poVar1 = std::__ostream_insert<char,std::char_traits<char>>
((ostream *)(this + 0x28),*(char **)param_1,*(long *)(param_1 + 8));
std::__ostream_insert<char,std::char_traits<char>>(poVar1,"\n",1);
*(long *)(this + 0x1a0) = *(long *)(this + 0x1a0) + 1;
return;
}
| |
44,383 | my_sync_dir | eloqsql/mysys/my_sync.c | int my_sync_dir(const char *dir_name __attribute__((unused)),
myf my_flags __attribute__((unused)))
{
#ifdef NEED_EXPLICIT_SYNC_DIR
static const char cur_dir_name[]= {FN_CURLIB, 0};
File dir_fd;
int res= 0;
const char *correct_dir_name;
DBUG_ENTER("my_sync_dir");
DBUG_PRINT("my",("Dir: '%s' my_flags: %lu", dir_name, my_flags));
/* Sometimes the path does not contain an explicit directory */
correct_dir_name= (dir_name[0] == 0) ? cur_dir_name : dir_name;
/*
Syncing a dir may give EINVAL on tmpfs on Linux, which is ok.
EIO on the other hand is very important. Hence MY_IGNORE_BADFD.
*/
if ((dir_fd= my_open(correct_dir_name, O_RDONLY, MYF(my_flags))) >= 0)
{
if (my_sync(dir_fd, MYF(my_flags | MY_IGNORE_BADFD)))
res= 2;
if (my_close(dir_fd, MYF(my_flags)))
res= 3;
}
else
res= 1;
DBUG_RETURN(res);
#else
return 0;
#endif
} | O0 | c | my_sync_dir:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x18(%rbp)
jmp 0xf5679
movq -0x8(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0xf5692
leaq 0x63074(%rip), %rax # 0x158700
movq %rax, -0x28(%rbp)
jmp 0xf569a
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %rdx
xorl %esi, %esi
callq 0xf3c20
movl %eax, -0x14(%rbp)
cmpl $0x0, %eax
jl 0xf56ef
movl -0x14(%rbp), %edi
movq -0x10(%rbp), %rsi
orq $0x20, %rsi
callq 0xf54d0
cmpl $0x0, %eax
je 0xf56d5
movl $0x2, -0x18(%rbp)
movl -0x14(%rbp), %edi
movq -0x10(%rbp), %rsi
callq 0xf3eb0
cmpl $0x0, %eax
je 0xf56ed
movl $0x3, -0x18(%rbp)
jmp 0xf56f6
movl $0x1, -0x18(%rbp)
jmp 0xf56f8
movl -0x18(%rbp), %eax
movl %eax, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| my_sync_dir:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], 0
jmp short $+2
loc_F5679:
mov rax, [rbp+var_8]
movsx eax, byte ptr [rax]
cmp eax, 0
jnz short loc_F5692
lea rax, my_sync_dir_cur_dir_name
mov [rbp+var_28], rax
jmp short loc_F569A
loc_F5692:
mov rax, [rbp+var_8]
mov [rbp+var_28], rax
loc_F569A:
mov rax, [rbp+var_28]
mov [rbp+var_20], rax
mov rdi, [rbp+var_20]
mov rdx, [rbp+var_10]
xor esi, esi
call my_open
mov [rbp+var_14], eax
cmp eax, 0
jl short loc_F56EF
mov edi, [rbp+var_14]
mov rsi, [rbp+var_10]
or rsi, 20h
call my_sync
cmp eax, 0
jz short loc_F56D5
mov [rbp+var_18], 2
loc_F56D5:
mov edi, [rbp+var_14]
mov rsi, [rbp+var_10]
call my_close
cmp eax, 0
jz short loc_F56ED
mov [rbp+var_18], 3
loc_F56ED:
jmp short loc_F56F6
loc_F56EF:
mov [rbp+var_18], 1
loc_F56F6:
jmp short $+2
loc_F56F8:
mov eax, [rbp+var_18]
mov [rbp+var_2C], eax
mov eax, [rbp+var_2C]
add rsp, 30h
pop rbp
retn
| long long my_sync_dir(_BYTE *a1, long long a2)
{
void *v3; // [rsp+8h] [rbp-28h]
unsigned int v4; // [rsp+18h] [rbp-18h]
signed int v5; // [rsp+1Ch] [rbp-14h]
v4 = 0;
if ( *a1 )
v3 = a1;
else
v3 = &my_sync_dir_cur_dir_name;
v5 = my_open((long long)v3, 0, a2);
if ( v5 < 0 )
{
return 1;
}
else
{
if ( (unsigned int)my_sync(v5, (const char *)(a2 | 0x20)) )
v4 = 2;
if ( (unsigned int)my_close(v5, (const char *)a2) )
return 3;
}
return v4;
}
| my_sync_dir:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV dword ptr [RBP + -0x18],0x0
JMP 0x001f5679
LAB_001f5679:
MOV RAX,qword ptr [RBP + -0x8]
MOVSX EAX,byte ptr [RAX]
CMP EAX,0x0
JNZ 0x001f5692
LEA RAX,[0x258700]
MOV qword ptr [RBP + -0x28],RAX
JMP 0x001f569a
LAB_001f5692:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x28],RAX
LAB_001f569a:
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x20],RAX
MOV RDI,qword ptr [RBP + -0x20]
MOV RDX,qword ptr [RBP + -0x10]
XOR ESI,ESI
CALL 0x001f3c20
MOV dword ptr [RBP + -0x14],EAX
CMP EAX,0x0
JL 0x001f56ef
MOV EDI,dword ptr [RBP + -0x14]
MOV RSI,qword ptr [RBP + -0x10]
OR RSI,0x20
CALL 0x001f54d0
CMP EAX,0x0
JZ 0x001f56d5
MOV dword ptr [RBP + -0x18],0x2
LAB_001f56d5:
MOV EDI,dword ptr [RBP + -0x14]
MOV RSI,qword ptr [RBP + -0x10]
CALL 0x001f3eb0
CMP EAX,0x0
JZ 0x001f56ed
MOV dword ptr [RBP + -0x18],0x3
LAB_001f56ed:
JMP 0x001f56f6
LAB_001f56ef:
MOV dword ptr [RBP + -0x18],0x1
LAB_001f56f6:
JMP 0x001f56f8
LAB_001f56f8:
MOV EAX,dword ptr [RBP + -0x18]
MOV dword ptr [RBP + -0x2c],EAX
MOV EAX,dword ptr [RBP + -0x2c]
ADD RSP,0x30
POP RBP
RET
|
int4 my_sync_dir(char *param_1,ulong param_2)
{
int iVar1;
int iVar2;
char *local_30;
int4 local_20;
local_20 = 0;
local_30 = param_1;
if (*param_1 == '\0') {
local_30 = ".";
}
iVar1 = my_open(local_30,0,param_2);
if (iVar1 < 0) {
local_20 = 1;
}
else {
iVar2 = my_sync(iVar1,param_2 | 0x20);
if (iVar2 != 0) {
local_20 = 2;
}
iVar1 = my_close(iVar1,param_2);
if (iVar1 != 0) {
local_20 = 3;
}
}
return local_20;
}
| |
44,384 | ELFIO::segment_impl<ELFIO::Elf64_Phdr>::load(std::istream&, std::fpos<__mbstate_t>) | EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/include/elfio/elfio_segment.hpp | void
load( std::istream& stream,
std::streampos header_offset )
{
stream.seekg ( 0, stream.end );
set_stream_size ( stream.tellg() );
stream.seekg( header_offset );
stream.read( reinterpret_cast<char*>( &ph ), sizeof( ph ) );
is_offset_set = true;
if ( PT_NULL != get_type() && 0 != get_file_size() ) {
stream.seekg( (*convertor)( ph.p_offset ) );
Elf_Xword size = get_file_size();
if ( size > get_stream_size() ) {
data = 0;
} else {
try {
data = new char[size + 1];
} catch (const std::bad_alloc&) {
data = 0;
}
if ( 0 != data ) {
stream.read( data, size );
data[size] = 0;
}
}
}
} | O0 | cpp | ELFIO::segment_impl<ELFIO::Elf64_Phdr>::load(std::istream&, std::fpos<__mbstate_t>):
subq $0x98, %rsp
movq %rdx, 0x88(%rsp)
movq %rcx, 0x90(%rsp)
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x78(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0x2, %edx
callq 0x152c0
movq 0x78(%rsp), %rdi
callq 0x15390
movq %rax, 0x68(%rsp)
movq %rdx, 0x70(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x19e10
movq 0x20(%rsp), %rdi
movq %rax, %rsi
callq 0x1dbc0
movq 0x78(%rsp), %rdi
movq 0x88(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x58(%rsp), %rsi
movq 0x60(%rsp), %rdx
callq 0x15290
movq 0x20(%rsp), %rsi
movq 0x78(%rsp), %rdi
addq $0x10, %rsi
movl $0x20, %edx
callq 0x15280
movq 0x20(%rsp), %rdi
movb $0x1, 0x60(%rdi)
movq (%rdi), %rax
callq *0x18(%rax)
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
je 0x1db07
movq 0x20(%rsp), %rdi
movq (%rdi), %rax
callq *0x68(%rax)
movq %rax, %rcx
xorl %eax, %eax
cmpq %rcx, %rax
je 0x1db07
movq 0x20(%rsp), %rax
movq 0x78(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movq 0x58(%rax), %rdi
movl 0x14(%rax), %esi
callq 0x17980
movl %eax, %eax
movl %eax, %esi
leaq 0x48(%rsp), %rdi
callq 0x18200
movq 0x10(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
callq 0x15290
movq 0x20(%rsp), %rdi
movq (%rdi), %rax
callq *0x68(%rax)
movq 0x20(%rsp), %rdi
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x18(%rsp)
callq 0x1dbe0
movq %rax, %rcx
movq 0x18(%rsp), %rax
cmpq %rcx, %rax
jbe 0x1da69
movq 0x20(%rsp), %rax
movq $0x0, 0x38(%rax)
jmp 0x1db05
movq 0x40(%rsp), %rdi
incq %rdi
callq 0x15030
movq %rax, 0x8(%rsp)
jmp 0x1da7d
movq 0x20(%rsp), %rax
movq 0x8(%rsp), %rcx
movq %rcx, 0x38(%rax)
jmp 0x1dacc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
movl 0x34(%rsp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x1db0f
movq 0x38(%rsp), %rdi
callq 0x150b0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x28(%rsp)
movq $0x0, 0x38(%rax)
callq 0x15370
movq 0x20(%rsp), %rcx
xorl %eax, %eax
cmpq 0x38(%rcx), %rax
je 0x1db03
movq 0x20(%rsp), %rax
movq 0x78(%rsp), %rdi
movq 0x38(%rax), %rsi
movq 0x40(%rsp), %rdx
callq 0x15280
movq 0x20(%rsp), %rax
movq 0x38(%rax), %rax
movq 0x40(%rsp), %rcx
movb $0x0, (%rax,%rcx)
jmp 0x1db05
jmp 0x1db07
addq $0x98, %rsp
retq
movq 0x38(%rsp), %rdi
callq 0x153a0
nopl (%rax)
| _ZN5ELFIO12segment_implINS_10Elf32_PhdrEE4loadERSiSt4fposI11__mbstate_tE:
sub rsp, 98h
mov [rsp+98h+var_10], rdx
mov [rsp+98h+var_8], rcx
mov [rsp+98h+var_18], rdi
mov [rsp+98h+var_20], rsi
mov rax, [rsp+98h+var_18]
mov [rsp+98h+var_78], rax
mov rdi, [rsp+98h+var_20]
xor eax, eax
mov esi, eax
mov edx, 2
call __ZNSi5seekgElSt12_Ios_Seekdir; std::istream::seekg(long,std::_Ios_Seekdir)
mov rdi, [rsp+98h+var_20]; this
call __ZNSi5tellgEv; std::istream::tellg(void)
mov [rsp+98h+var_30], rax
mov [rsp+98h+var_28], rdx
lea rdi, [rsp+98h+var_30]
call _ZNKSt4fposI11__mbstate_tEcvlEv; std::fpos<__mbstate_t>::operator long(void)
mov rdi, [rsp+98h+var_78]
mov rsi, rax
call _ZN5ELFIO12segment_implINS_10Elf32_PhdrEE15set_stream_sizeEm; ELFIO::segment_impl<ELFIO::Elf32_Phdr>::set_stream_size(ulong)
mov rdi, [rsp+98h+var_20]
mov rax, [rsp+98h+var_10]
mov [rsp+98h+var_40], rax
mov rax, [rsp+98h+var_8]
mov [rsp+98h+var_38], rax
mov rsi, [rsp+98h+var_40]
mov rdx, [rsp+98h+var_38]
call __ZNSi5seekgESt4fposI11__mbstate_tE; std::istream::seekg(std::fpos<__mbstate_t>)
mov rsi, [rsp+98h+var_78]
mov rdi, [rsp+98h+var_20]; this
add rsi, 10h; char *
mov edx, 20h ; ' '; __int64
call __ZNSi4readEPcl; std::istream::read(char *,long)
mov rdi, [rsp+98h+var_78]
mov byte ptr [rdi+60h], 1
mov rax, [rdi]
call qword ptr [rax+18h]
mov ecx, eax
xor eax, eax
cmp eax, ecx
jz loc_1DB07
mov rdi, [rsp+98h+var_78]
mov rax, [rdi]
call qword ptr [rax+68h]
mov rcx, rax
xor eax, eax
cmp rax, rcx
jz loc_1DB07
mov rax, [rsp+98h+var_78]
mov rcx, [rsp+98h+var_20]
mov [rsp+98h+var_88], rcx
mov rdi, [rax+58h]
mov esi, [rax+14h]
call _ZNK5ELFIO19endianess_convertorclEj; ELFIO::endianess_convertor::operator()(uint)
mov eax, eax
mov esi, eax
lea rdi, [rsp+98h+var_50]
call _ZNSt4fposI11__mbstate_tEC2El; std::fpos<__mbstate_t>::fpos(long)
mov rdi, [rsp+98h+var_88]
mov rsi, [rsp+98h+var_50]
mov rdx, [rsp+98h+var_48]
call __ZNSi5seekgESt4fposI11__mbstate_tE; std::istream::seekg(std::fpos<__mbstate_t>)
mov rdi, [rsp+98h+var_78]
mov rax, [rdi]
call qword ptr [rax+68h]
mov rdi, [rsp+98h+var_78]
mov [rsp+98h+var_58], rax
mov rax, [rsp+98h+var_58]
mov [rsp+98h+var_80], rax
call _ZNK5ELFIO12segment_implINS_10Elf32_PhdrEE15get_stream_sizeEv; ELFIO::segment_impl<ELFIO::Elf32_Phdr>::get_stream_size(void)
mov rcx, rax
mov rax, [rsp+98h+var_80]
cmp rax, rcx
jbe short loc_1DA69
mov rax, [rsp+98h+var_78]
mov qword ptr [rax+38h], 0
jmp loc_1DB05
loc_1DA69:
mov rdi, [rsp+98h+var_58]
inc rdi; unsigned __int64
call __Znam; operator new[](ulong)
mov [rsp+98h+var_90], rax
jmp short $+2
loc_1DA7D:
mov rax, [rsp+98h+var_78]
mov rcx, [rsp+98h+var_90]
mov [rax+38h], rcx
jmp short loc_1DACC
mov rcx, rax
mov eax, edx
mov [rsp+98h+var_60], rcx
mov [rsp+98h+var_64], eax
mov eax, [rsp+98h+var_64]
mov ecx, 1
cmp eax, ecx
jnz short loc_1DB0F
mov rdi, [rsp+98h+var_60]; void *
call ___cxa_begin_catch
mov rcx, rax
mov rax, [rsp+98h+var_78]
mov [rsp+98h+var_70], rcx
mov qword ptr [rax+38h], 0
call ___cxa_end_catch
loc_1DACC:
mov rcx, [rsp+98h+var_78]
xor eax, eax
cmp rax, [rcx+38h]
jz short loc_1DB03
mov rax, [rsp+98h+var_78]
mov rdi, [rsp+98h+var_20]; this
mov rsi, [rax+38h]; char *
mov rdx, [rsp+98h+var_58]; __int64
call __ZNSi4readEPcl; std::istream::read(char *,long)
mov rax, [rsp+98h+var_78]
mov rax, [rax+38h]
mov rcx, [rsp+98h+var_58]
mov byte ptr [rax+rcx], 0
loc_1DB03:
jmp short $+2
loc_1DB05:
jmp short $+2
loc_1DB07:
add rsp, 98h
retn
loc_1DB0F:
mov rdi, [rsp+98h+var_60]
call __Unwind_Resume
| long long ELFIO::segment_impl<ELFIO::Elf32_Phdr>::load(long long a1, std::istream *a2, long long a3, long long a4)
{
long long v4; // rdx
long long v5; // rax
int v6; // ecx
long long result; // rax
long long v8; // rcx
unsigned int v9; // eax
std::istream *v10; // [rsp+10h] [rbp-88h]
unsigned long long v11; // [rsp+40h] [rbp-58h]
_QWORD v12[4]; // [rsp+48h] [rbp-50h] BYREF
_QWORD v13[2]; // [rsp+68h] [rbp-30h] BYREF
std::istream *v14; // [rsp+78h] [rbp-20h]
long long v15; // [rsp+80h] [rbp-18h]
long long v16; // [rsp+88h] [rbp-10h]
long long v17; // [rsp+90h] [rbp-8h]
v16 = a3;
v17 = a4;
v15 = a1;
v14 = a2;
std::istream::seekg(a2, 0LL, 2LL);
v13[0] = std::istream::tellg(a2);
v13[1] = v4;
v5 = std::fpos<__mbstate_t>::operator long((long long)v13);
ELFIO::segment_impl<ELFIO::Elf32_Phdr>::set_stream_size(a1, v5);
v12[2] = v16;
v12[3] = v17;
std::istream::seekg(v14, v16, v17);
std::istream::read(v14, (char *)(a1 + 16), 32LL);
*(_BYTE *)(a1 + 96) = 1;
v6 = (*(long long ( **)(long long))(*(_QWORD *)a1 + 24LL))(a1);
result = 0LL;
if ( v6 )
{
v8 = (*(long long ( **)(long long))(*(_QWORD *)a1 + 104LL))(a1);
result = 0LL;
if ( v8 )
{
v10 = v14;
v9 = ELFIO::endianess_convertor::operator()(*(_BYTE **)(a1 + 88), *(_DWORD *)(a1 + 20));
std::fpos<__mbstate_t>::fpos(v12, v9);
std::istream::seekg(v10, v12[0], v12[1]);
v11 = (*(long long ( **)(long long))(*(_QWORD *)a1 + 104LL))(a1);
if ( v11 <= ELFIO::segment_impl<ELFIO::Elf32_Phdr>::get_stream_size(a1) )
{
*(_QWORD *)(a1 + 56) = operator new[](v11 + 1);
result = 0LL;
if ( *(_QWORD *)(a1 + 56) )
{
std::istream::read(v14, *(char **)(a1 + 56), v11);
result = *(_QWORD *)(a1 + 56);
*(_BYTE *)(result + v11) = 0;
}
}
else
{
result = a1;
*(_QWORD *)(a1 + 56) = 0LL;
}
}
}
return result;
}
| load:
SUB RSP,0x98
MOV qword ptr [RSP + 0x88],RDX
MOV qword ptr [RSP + 0x90],RCX
MOV qword ptr [RSP + 0x80],RDI
MOV qword ptr [RSP + 0x78],RSI
MOV RAX,qword ptr [RSP + 0x80]
MOV qword ptr [RSP + 0x20],RAX
MOV RDI,qword ptr [RSP + 0x78]
XOR EAX,EAX
MOV ESI,EAX
MOV EDX,0x2
CALL 0x001152c0
MOV RDI,qword ptr [RSP + 0x78]
CALL 0x00115390
MOV qword ptr [RSP + 0x68],RAX
MOV qword ptr [RSP + 0x70],RDX
LEA RDI,[RSP + 0x68]
CALL 0x00119e10
MOV RDI,qword ptr [RSP + 0x20]
MOV RSI,RAX
CALL 0x0011dbc0
MOV RDI,qword ptr [RSP + 0x78]
MOV RAX,qword ptr [RSP + 0x88]
MOV qword ptr [RSP + 0x58],RAX
MOV RAX,qword ptr [RSP + 0x90]
MOV qword ptr [RSP + 0x60],RAX
MOV RSI,qword ptr [RSP + 0x58]
MOV RDX,qword ptr [RSP + 0x60]
CALL 0x00115290
MOV RSI,qword ptr [RSP + 0x20]
MOV RDI,qword ptr [RSP + 0x78]
ADD RSI,0x10
MOV EDX,0x20
CALL 0x00115280
MOV RDI,qword ptr [RSP + 0x20]
MOV byte ptr [RDI + 0x60],0x1
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
MOV ECX,EAX
XOR EAX,EAX
CMP EAX,ECX
JZ 0x0011db07
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x68]
MOV RCX,RAX
XOR EAX,EAX
CMP RAX,RCX
JZ 0x0011db07
MOV RAX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP + 0x78]
MOV qword ptr [RSP + 0x10],RCX
MOV RDI,qword ptr [RAX + 0x58]
MOV ESI,dword ptr [RAX + 0x14]
CALL 0x00117980
MOV EAX,EAX
MOV ESI,EAX
LEA RDI,[RSP + 0x48]
CALL 0x00118200
MOV RDI,qword ptr [RSP + 0x10]
MOV RSI,qword ptr [RSP + 0x48]
MOV RDX,qword ptr [RSP + 0x50]
CALL 0x00115290
MOV RDI,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x68]
MOV RDI,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x40],RAX
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RSP + 0x18],RAX
CALL 0x0011dbe0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x18]
CMP RAX,RCX
JBE 0x0011da69
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RAX + 0x38],0x0
JMP 0x0011db05
LAB_0011da69:
MOV RDI,qword ptr [RSP + 0x40]
INC RDI
LAB_0011da71:
CALL 0x00115030
LAB_0011da76:
MOV qword ptr [RSP + 0x8],RAX
JMP 0x0011da7d
LAB_0011da7d:
MOV RAX,qword ptr [RSP + 0x20]
MOV RCX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + 0x38],RCX
JMP 0x0011dacc
LAB_0011dacc:
MOV RCX,qword ptr [RSP + 0x20]
XOR EAX,EAX
CMP RAX,qword ptr [RCX + 0x38]
JZ 0x0011db03
MOV RAX,qword ptr [RSP + 0x20]
MOV RDI,qword ptr [RSP + 0x78]
MOV RSI,qword ptr [RAX + 0x38]
MOV RDX,qword ptr [RSP + 0x40]
CALL 0x00115280
MOV RAX,qword ptr [RSP + 0x20]
MOV RAX,qword ptr [RAX + 0x38]
MOV RCX,qword ptr [RSP + 0x40]
MOV byte ptr [RAX + RCX*0x1],0x0
LAB_0011db03:
JMP 0x0011db05
LAB_0011db05:
JMP 0x0011db07
LAB_0011db07:
ADD RSP,0x98
RET
|
/* ELFIO::segment_impl<ELFIO::Elf32_Phdr>::load(std::istream&, std::fpos<__mbstate_t>) */
void ELFIO::segment_impl<ELFIO::Elf32_Phdr>::load
(segment_impl<ELFIO::Elf32_Phdr> *param_1,char *param_2,int8 param_3,
int8 param_4)
{
char *pcVar1;
int iVar2;
uint uVar3;
ulong uVar4;
long lVar5;
ulong uVar6;
void *pvVar7;
int8 local_50;
int8 local_48;
int8 local_40;
int8 local_38;
fpos local_30 [16];
char *local_20;
segment_impl<ELFIO::Elf32_Phdr> *local_18;
int8 local_10;
int8 local_8;
local_20 = param_2;
local_18 = param_1;
local_10 = param_3;
local_8 = param_4;
std::istream::seekg(param_2,0,2);
local_30 = (fpos [16])std::istream::tellg();
uVar4 = std::fpos::operator_cast_to_long(local_30);
set_stream_size(param_1,uVar4);
local_40 = local_10;
local_38 = local_8;
std::istream::seekg(local_20,local_10,local_8);
std::istream::read(local_20,(long)(param_1 + 0x10));
param_1[0x60] = (segment_impl<ELFIO::Elf32_Phdr>)0x1;
iVar2 = (**(code **)(*(long *)param_1 + 0x18))();
if (iVar2 != 0) {
lVar5 = (**(code **)(*(long *)param_1 + 0x68))();
pcVar1 = local_20;
if (lVar5 != 0) {
uVar3 = endianess_convertor::operator()
(*(endianess_convertor **)(param_1 + 0x58),*(uint *)(param_1 + 0x14));
std::fpos<__mbstate_t>::fpos((fpos<__mbstate_t> *)&local_50,(ulong)uVar3);
std::istream::seekg(pcVar1,local_50,local_48);
uVar4 = (**(code **)(*(long *)param_1 + 0x68))();
uVar6 = get_stream_size(param_1);
if (uVar6 < uVar4) {
*(int8 *)(param_1 + 0x38) = 0;
}
else {
/* try { // try from 0011da71 to 0011da75 has its CatchHandler @ 0011da8d */
pvVar7 = operator_new__(uVar4 + 1);
*(void **)(param_1 + 0x38) = pvVar7;
if (*(long *)(param_1 + 0x38) != 0) {
std::istream::read(local_20,*(long *)(param_1 + 0x38));
*(int1 *)(*(long *)(param_1 + 0x38) + uVar4) = 0;
}
}
}
}
return;
}
| |
44,385 | ELFIO::segment_impl<ELFIO::Elf64_Phdr>::load(std::istream&, std::fpos<__mbstate_t>) | EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/include/elfio/elfio_segment.hpp | void
load( std::istream& stream,
std::streampos header_offset )
{
stream.seekg ( 0, stream.end );
set_stream_size ( stream.tellg() );
stream.seekg( header_offset );
stream.read( reinterpret_cast<char*>( &ph ), sizeof( ph ) );
is_offset_set = true;
if ( PT_NULL != get_type() && 0 != get_file_size() ) {
stream.seekg( (*convertor)( ph.p_offset ) );
Elf_Xword size = get_file_size();
if ( size > get_stream_size() ) {
data = 0;
} else {
try {
data = new char[size + 1];
} catch (const std::bad_alloc&) {
data = 0;
}
if ( 0 != data ) {
stream.read( data, size );
data[size] = 0;
}
}
}
} | O1 | cpp | ELFIO::segment_impl<ELFIO::Elf64_Phdr>::load(std::istream&, std::fpos<__mbstate_t>):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0xb2a0
movq %r14, %rdi
callq 0xb350
movq %rax, 0x8(%rbx)
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0xb270
leaq 0x10(%rbx), %rsi
movl $0x38, %edx
movq %r14, %rdi
callq 0xb260
movb $0x1, 0x78(%rbx)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
testl %eax, %eax
je 0xe3ce
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x68(%rax)
testq %rax, %rax
je 0xe3ce
movq 0x18(%rbx), %rax
movq 0x70(%rbx), %rcx
movq %rax, %rsi
bswapq %rsi
cmpb $0x0, (%rcx)
cmoveq %rax, %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0xb270
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x68(%rax)
cmpq 0x8(%rbx), %rax
jbe 0xe3a1
movq $0x0, 0x50(%rbx)
jmp 0xe3ce
movq %rax, %r15
leaq 0x1(%rax), %rdi
callq 0xb030
movq %rax, 0x50(%rbx)
movq 0x50(%rbx), %rsi
testq %rsi, %rsi
je 0xe3ce
movq %r14, %rdi
movq %r15, %rdx
callq 0xb260
movq 0x50(%rbx), %rax
movb $0x0, (%rax,%r15)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rdi
cmpl $0x1, %edx
jne 0xe3f6
callq 0xb0d0
movq $0x0, 0x50(%rbx)
callq 0xb340
jmp 0xe3b1
callq 0xb360
nop
| _ZN5ELFIO12segment_implINS_10Elf64_PhdrEE4loadERSiSt4fposI11__mbstate_tE:
push r15
push r14
push r12
push rbx
push rax
mov r15, rcx
mov r12, rdx
mov r14, rsi
mov rbx, rdi
mov rdi, rsi
xor esi, esi
mov edx, 2
call __ZNSi5seekgElSt12_Ios_Seekdir; std::istream::seekg(long,std::_Ios_Seekdir)
mov rdi, r14; this
call __ZNSi5tellgEv; std::istream::tellg(void)
mov [rbx+8], rax
mov rdi, r14
mov rsi, r12
mov rdx, r15
call __ZNSi5seekgESt4fposI11__mbstate_tE; std::istream::seekg(std::fpos<__mbstate_t>)
lea rsi, [rbx+10h]; char *
mov edx, 38h ; '8'; __int64
mov rdi, r14; this
call __ZNSi4readEPcl; std::istream::read(char *,long)
mov byte ptr [rbx+78h], 1
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+18h]
test eax, eax
jz short loc_E3CE
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+68h]
test rax, rax
jz short loc_E3CE
mov rax, [rbx+18h]
mov rcx, [rbx+70h]
mov rsi, rax
bswap rsi
cmp byte ptr [rcx], 0
cmovz rsi, rax
mov rdi, r14
xor edx, edx
call __ZNSi5seekgESt4fposI11__mbstate_tE; std::istream::seekg(std::fpos<__mbstate_t>)
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+68h]
cmp rax, [rbx+8]
jbe short loc_E3A1
mov qword ptr [rbx+50h], 0
jmp short loc_E3CE
loc_E3A1:
mov r15, rax
lea rdi, [rax+1]; unsigned __int64
call __Znam; operator new[](ulong)
mov [rbx+50h], rax
loc_E3B1:
mov rsi, [rbx+50h]; char *
test rsi, rsi
jz short loc_E3CE
mov rdi, r14; this
mov rdx, r15; __int64
call __ZNSi4readEPcl; std::istream::read(char *,long)
mov rax, [rbx+50h]
mov byte ptr [rax+r15], 0
loc_E3CE:
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
mov rdi, rax; void *
cmp edx, 1
jnz short loc_E3F6
call ___cxa_begin_catch
mov qword ptr [rbx+50h], 0
call ___cxa_end_catch
jmp short loc_E3B1
loc_E3F6:
call __Unwind_Resume
| unsigned long long ELFIO::segment_impl<ELFIO::Elf64_Phdr>::load(
long long a1,
std::istream *a2,
long long a3,
long long a4)
{
unsigned long long result; // rax
unsigned long long v8; // rsi
long long v9; // r15
char *v10; // rsi
std::istream::seekg(a2, 0LL, 2LL);
*(_QWORD *)(a1 + 8) = std::istream::tellg(a2);
std::istream::seekg(a2, a3, a4);
std::istream::read(a2, (char *)(a1 + 16), 56LL);
*(_BYTE *)(a1 + 120) = 1;
result = (*(long long ( **)(long long))(*(_QWORD *)a1 + 24LL))(a1);
if ( (_DWORD)result )
{
result = (*(long long ( **)(long long))(*(_QWORD *)a1 + 104LL))(a1);
if ( result )
{
v8 = _byteswap_uint64(*(_QWORD *)(a1 + 24));
if ( !**(_BYTE **)(a1 + 112) )
v8 = *(_QWORD *)(a1 + 24);
std::istream::seekg(a2, v8, 0LL);
result = (*(long long ( **)(long long))(*(_QWORD *)a1 + 104LL))(a1);
if ( result <= *(_QWORD *)(a1 + 8) )
{
v9 = result;
result = operator new[](result + 1);
*(_QWORD *)(a1 + 80) = result;
v10 = *(char **)(a1 + 80);
if ( v10 )
{
std::istream::read(a2, v10, v9);
result = *(_QWORD *)(a1 + 80);
*(_BYTE *)(result + v9) = 0;
}
}
else
{
*(_QWORD *)(a1 + 80) = 0LL;
}
}
}
return result;
}
| load:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,RCX
MOV R12,RDX
MOV R14,RSI
MOV RBX,RDI
MOV RDI,RSI
XOR ESI,ESI
MOV EDX,0x2
CALL 0x0010b2a0
MOV RDI,R14
CALL 0x0010b350
MOV qword ptr [RBX + 0x8],RAX
MOV RDI,R14
MOV RSI,R12
MOV RDX,R15
CALL 0x0010b270
LEA RSI,[RBX + 0x10]
MOV EDX,0x38
MOV RDI,R14
CALL 0x0010b260
MOV byte ptr [RBX + 0x78],0x1
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX + 0x18]
TEST EAX,EAX
JZ 0x0010e3ce
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX + 0x68]
TEST RAX,RAX
JZ 0x0010e3ce
MOV RAX,qword ptr [RBX + 0x18]
MOV RCX,qword ptr [RBX + 0x70]
MOV RSI,RAX
BSWAP RSI
CMP byte ptr [RCX],0x0
CMOVZ RSI,RAX
MOV RDI,R14
XOR EDX,EDX
CALL 0x0010b270
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX + 0x68]
CMP RAX,qword ptr [RBX + 0x8]
JBE 0x0010e3a1
MOV qword ptr [RBX + 0x50],0x0
JMP 0x0010e3ce
LAB_0010e3a1:
MOV R15,RAX
LEA RDI,[RAX + 0x1]
LAB_0010e3a8:
CALL 0x0010b030
LAB_0010e3ad:
MOV qword ptr [RBX + 0x50],RAX
LAB_0010e3b1:
MOV RSI,qword ptr [RBX + 0x50]
TEST RSI,RSI
JZ 0x0010e3ce
MOV RDI,R14
MOV RDX,R15
CALL 0x0010b260
MOV RAX,qword ptr [RBX + 0x50]
MOV byte ptr [RAX + R15*0x1],0x0
LAB_0010e3ce:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* ELFIO::segment_impl<ELFIO::Elf64_Phdr>::load(std::istream&, std::fpos<__mbstate_t>) */
void ELFIO::segment_impl<ELFIO::Elf64_Phdr>::load
(long *param_1,char *param_2,int8 param_3,int8 param_4)
{
int iVar1;
long lVar2;
ulong uVar3;
void *pvVar4;
ulong uVar5;
std::istream::seekg(param_2,0,2);
lVar2 = std::istream::tellg();
param_1[1] = lVar2;
std::istream::seekg(param_2,param_3,param_4);
std::istream::read(param_2,(long)(param_1 + 2));
*(int1 *)(param_1 + 0xf) = 1;
iVar1 = (**(code **)(*param_1 + 0x18))(param_1);
if (iVar1 != 0) {
lVar2 = (**(code **)(*param_1 + 0x68))(param_1);
if (lVar2 != 0) {
uVar3 = param_1[3];
uVar5 = uVar3 >> 0x38 | (uVar3 & 0xff000000000000) >> 0x28 | (uVar3 & 0xff0000000000) >> 0x18
| (uVar3 & 0xff00000000) >> 8 | (uVar3 & 0xff000000) << 8 | (uVar3 & 0xff0000) << 0x18
| (uVar3 & 0xff00) << 0x28 | uVar3 << 0x38;
if (*(char *)param_1[0xe] == '\0') {
uVar5 = uVar3;
}
std::istream::seekg(param_2,uVar5,0);
uVar3 = (**(code **)(*param_1 + 0x68))(param_1);
if ((ulong)param_1[1] < uVar3) {
param_1[10] = 0;
}
else {
/* try { // try from 0010e3a8 to 0010e3ac has its CatchHandler @ 0010e3da */
pvVar4 = operator_new__(uVar3 + 1);
param_1[10] = (long)pvVar4;
if (param_1[10] != 0) {
std::istream::read(param_2,param_1[10]);
*(int1 *)(param_1[10] + uVar3) = 0;
}
}
}
}
return;
}
| |
44,386 | ELFIO::segment_impl<ELFIO::Elf64_Phdr>::load(std::istream&, std::fpos<__mbstate_t>) | EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/include/elfio/elfio_segment.hpp | void
load( std::istream& stream,
std::streampos header_offset )
{
stream.seekg ( 0, stream.end );
set_stream_size ( stream.tellg() );
stream.seekg( header_offset );
stream.read( reinterpret_cast<char*>( &ph ), sizeof( ph ) );
is_offset_set = true;
if ( PT_NULL != get_type() && 0 != get_file_size() ) {
stream.seekg( (*convertor)( ph.p_offset ) );
Elf_Xword size = get_file_size();
if ( size > get_stream_size() ) {
data = 0;
} else {
try {
data = new char[size + 1];
} catch (const std::bad_alloc&) {
data = 0;
}
if ( 0 != data ) {
stream.read( data, size );
data[size] = 0;
}
}
}
} | O2 | cpp | ELFIO::segment_impl<ELFIO::Elf64_Phdr>::load(std::istream&, std::fpos<__mbstate_t>):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
pushq $0x2
popq %rdx
movq %rsi, %rdi
xorl %esi, %esi
callq 0xc280
movq %r14, %rdi
callq 0xc330
movq %rax, 0x8(%rbx)
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0xc240
leaq 0x10(%rbx), %rsi
pushq $0x38
popq %rdx
movq %r14, %rdi
callq 0xc230
movb $0x1, 0x78(%rbx)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
testl %eax, %eax
je 0xeff1
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x68(%rax)
testq %rax, %rax
je 0xeff1
movq 0x18(%rbx), %rax
movq 0x70(%rbx), %rcx
movq %rax, %rsi
bswapq %rsi
cmpb $0x0, (%rcx)
cmoveq %rax, %rsi
movq %r14, %rdi
xorl %edx, %edx
callq 0xc240
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x68(%rax)
cmpq 0x8(%rbx), %rax
jbe 0xefca
andq $0x0, 0x50(%rbx)
jmp 0xeff1
movq %rax, %r15
leaq 0x1(%rax), %rdi
callq 0xc030
movq %rax, 0x50(%rbx)
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0xc230
movq 0x50(%rbx), %rax
movb $0x0, (%rax,%r15)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rdi
cmpl $0x1, %edx
jne 0xf01f
callq 0xc0b0
andq $0x0, 0x50(%rbx)
callq 0xc320
movq 0x50(%rbx), %rax
testq %rax, %rax
jne 0xefda
jmp 0xeff1
callq 0xc340
| _ZN5ELFIO12segment_implINS_10Elf64_PhdrEE4loadERSiSt4fposI11__mbstate_tE:
push r15
push r14
push r12
push rbx
push rax
mov r15, rcx
mov r12, rdx
mov r14, rsi
mov rbx, rdi
push 2
pop rdx
mov rdi, rsi
xor esi, esi
call __ZNSi5seekgElSt12_Ios_Seekdir; std::istream::seekg(long,std::_Ios_Seekdir)
mov rdi, r14; this
call __ZNSi5tellgEv; std::istream::tellg(void)
mov [rbx+8], rax
mov rdi, r14
mov rsi, r12
mov rdx, r15
call __ZNSi5seekgESt4fposI11__mbstate_tE; std::istream::seekg(std::fpos<__mbstate_t>)
lea rsi, [rbx+10h]; char *
push 38h ; '8'
pop rdx; __int64
mov rdi, r14; this
call __ZNSi4readEPcl; std::istream::read(char *,long)
mov byte ptr [rbx+78h], 1
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+18h]
test eax, eax
jz short loc_EFF1
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+68h]
test rax, rax
jz short loc_EFF1
mov rax, [rbx+18h]
mov rcx, [rbx+70h]
mov rsi, rax
bswap rsi
cmp byte ptr [rcx], 0
cmovz rsi, rax
mov rdi, r14
xor edx, edx
call __ZNSi5seekgESt4fposI11__mbstate_tE; std::istream::seekg(std::fpos<__mbstate_t>)
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+68h]
cmp rax, [rbx+8]
jbe short loc_EFCA
and qword ptr [rbx+50h], 0
jmp short loc_EFF1
loc_EFCA:
mov r15, rax
lea rdi, [rax+1]; unsigned __int64
call __Znam; operator new[](ulong)
mov [rbx+50h], rax
loc_EFDA:
mov rdi, r14; this
mov rsi, rax; char *
mov rdx, r15; __int64
call __ZNSi4readEPcl; std::istream::read(char *,long)
mov rax, [rbx+50h]
mov byte ptr [rax+r15], 0
loc_EFF1:
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
mov rdi, rax; void *
cmp edx, 1
jnz short loc_F01F
call ___cxa_begin_catch
and qword ptr [rbx+50h], 0
call ___cxa_end_catch
mov rax, [rbx+50h]
test rax, rax
jnz short loc_EFDA
jmp short loc_EFF1
loc_F01F:
call __Unwind_Resume
| unsigned long long ELFIO::segment_impl<ELFIO::Elf64_Phdr>::load(
long long a1,
std::istream *a2,
long long a3,
long long a4)
{
unsigned long long result; // rax
unsigned long long v8; // rsi
long long v9; // r15
char *v10; // rax
std::istream::seekg(a2, 0LL, 2LL);
*(_QWORD *)(a1 + 8) = std::istream::tellg(a2);
std::istream::seekg(a2, a3, a4);
std::istream::read(a2, (char *)(a1 + 16), 56LL);
*(_BYTE *)(a1 + 120) = 1;
result = (*(long long ( **)(long long))(*(_QWORD *)a1 + 24LL))(a1);
if ( (_DWORD)result )
{
result = (*(long long ( **)(long long))(*(_QWORD *)a1 + 104LL))(a1);
if ( result )
{
v8 = _byteswap_uint64(*(_QWORD *)(a1 + 24));
if ( !**(_BYTE **)(a1 + 112) )
v8 = *(_QWORD *)(a1 + 24);
std::istream::seekg(a2, v8, 0LL);
result = (*(long long ( **)(long long))(*(_QWORD *)a1 + 104LL))(a1);
if ( result <= *(_QWORD *)(a1 + 8) )
{
v9 = result;
v10 = (char *)operator new[](result + 1);
*(_QWORD *)(a1 + 80) = v10;
std::istream::read(a2, v10, v9);
result = *(_QWORD *)(a1 + 80);
*(_BYTE *)(result + v9) = 0;
}
else
{
*(_QWORD *)(a1 + 80) = 0LL;
}
}
}
return result;
}
| load:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,RCX
MOV R12,RDX
MOV R14,RSI
MOV RBX,RDI
PUSH 0x2
POP RDX
MOV RDI,RSI
XOR ESI,ESI
CALL 0x0010c280
MOV RDI,R14
CALL 0x0010c330
MOV qword ptr [RBX + 0x8],RAX
MOV RDI,R14
MOV RSI,R12
MOV RDX,R15
CALL 0x0010c240
LEA RSI,[RBX + 0x10]
PUSH 0x38
POP RDX
MOV RDI,R14
CALL 0x0010c230
MOV byte ptr [RBX + 0x78],0x1
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX + 0x18]
TEST EAX,EAX
JZ 0x0010eff1
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX + 0x68]
TEST RAX,RAX
JZ 0x0010eff1
MOV RAX,qword ptr [RBX + 0x18]
MOV RCX,qword ptr [RBX + 0x70]
MOV RSI,RAX
BSWAP RSI
CMP byte ptr [RCX],0x0
CMOVZ RSI,RAX
MOV RDI,R14
XOR EDX,EDX
CALL 0x0010c240
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX + 0x68]
CMP RAX,qword ptr [RBX + 0x8]
JBE 0x0010efca
AND qword ptr [RBX + 0x50],0x0
JMP 0x0010eff1
LAB_0010efca:
MOV R15,RAX
LEA RDI,[RAX + 0x1]
LAB_0010efd1:
CALL 0x0010c030
LAB_0010efd6:
MOV qword ptr [RBX + 0x50],RAX
LAB_0010efda:
MOV RDI,R14
MOV RSI,RAX
MOV RDX,R15
CALL 0x0010c230
MOV RAX,qword ptr [RBX + 0x50]
MOV byte ptr [RAX + R15*0x1],0x0
LAB_0010eff1:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* ELFIO::segment_impl<ELFIO::Elf64_Phdr>::load(std::istream&, std::fpos<__mbstate_t>) */
void ELFIO::segment_impl<ELFIO::Elf64_Phdr>::load
(long *param_1,char *param_2,int8 param_3,int8 param_4)
{
int iVar1;
long lVar2;
ulong uVar3;
void *pvVar4;
ulong uVar5;
std::istream::seekg(param_2,0,2);
lVar2 = std::istream::tellg();
param_1[1] = lVar2;
std::istream::seekg(param_2,param_3,param_4);
std::istream::read(param_2,(long)(param_1 + 2));
*(int1 *)(param_1 + 0xf) = 1;
iVar1 = (**(code **)(*param_1 + 0x18))(param_1);
if (iVar1 != 0) {
lVar2 = (**(code **)(*param_1 + 0x68))(param_1);
if (lVar2 != 0) {
uVar3 = param_1[3];
uVar5 = uVar3 >> 0x38 | (uVar3 & 0xff000000000000) >> 0x28 | (uVar3 & 0xff0000000000) >> 0x18
| (uVar3 & 0xff00000000) >> 8 | (uVar3 & 0xff000000) << 8 | (uVar3 & 0xff0000) << 0x18
| (uVar3 & 0xff00) << 0x28 | uVar3 << 0x38;
if (*(char *)param_1[0xe] == '\0') {
uVar5 = uVar3;
}
std::istream::seekg(param_2,uVar5,0);
uVar3 = (**(code **)(*param_1 + 0x68))(param_1);
if ((ulong)param_1[1] < uVar3) {
param_1[10] = 0;
}
else {
/* try { // try from 0010efd1 to 0010efd5 has its CatchHandler @ 0010effd */
pvVar4 = operator_new__(uVar3 + 1);
param_1[10] = (long)pvVar4;
std::istream::read(param_2,(long)pvVar4);
*(int1 *)(param_1[10] + uVar3) = 0;
}
}
}
return;
}
| |
44,387 | ELFIO::segment_impl<ELFIO::Elf64_Phdr>::load(std::istream&, std::fpos<__mbstate_t>) | EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/include/elfio/elfio_segment.hpp | void
load( std::istream& stream,
std::streampos header_offset )
{
stream.seekg ( 0, stream.end );
set_stream_size ( stream.tellg() );
stream.seekg( header_offset );
stream.read( reinterpret_cast<char*>( &ph ), sizeof( ph ) );
is_offset_set = true;
if ( PT_NULL != get_type() && 0 != get_file_size() ) {
stream.seekg( (*convertor)( ph.p_offset ) );
Elf_Xword size = get_file_size();
if ( size > get_stream_size() ) {
data = 0;
} else {
try {
data = new char[size + 1];
} catch (const std::bad_alloc&) {
data = 0;
}
if ( 0 != data ) {
stream.read( data, size );
data[size] = 0;
}
}
}
} | O3 | cpp | ELFIO::segment_impl<ELFIO::Elf64_Phdr>::load(std::istream&, std::fpos<__mbstate_t>):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0xb2a0
movq %r14, %rdi
callq 0xb350
movq %rax, 0x8(%rbx)
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0xb270
leaq 0x10(%rbx), %rsi
movl $0x20, %edx
movq %r14, %rdi
callq 0xb260
movb $0x1, 0x60(%rbx)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x18(%rax)
testl %eax, %eax
je 0xe7e4
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x68(%rax)
testq %rax, %rax
je 0xe7e4
movq 0x58(%rbx), %rax
movl 0x14(%rbx), %ecx
movl %ecx, %esi
bswapl %esi
cmpb $0x0, (%rax)
cmovel %ecx, %esi
movq %r14, %rdi
xorl %edx, %edx
callq 0xb270
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x68(%rax)
cmpq 0x8(%rbx), %rax
jbe 0xe7bd
movq $0x0, 0x38(%rbx)
jmp 0xe7e4
movq %rax, %r15
leaq 0x1(%rax), %rdi
callq 0xb030
movq %rax, 0x38(%rbx)
movq %r14, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0xb260
movq 0x38(%rbx), %rax
movb $0x0, (%rax,%r15)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rdi
cmpl $0x1, %edx
jne 0xe815
callq 0xb0d0
movq $0x0, 0x38(%rbx)
callq 0xb340
movq 0x38(%rbx), %rax
testq %rax, %rax
jne 0xe7cd
jmp 0xe7e4
callq 0xb360
| _ZN5ELFIO12segment_implINS_10Elf32_PhdrEE4loadERSiSt4fposI11__mbstate_tE:
push r15
push r14
push r12
push rbx
push rax
mov r15, rcx
mov r12, rdx
mov r14, rsi
mov rbx, rdi
mov rdi, rsi
xor esi, esi
mov edx, 2
call __ZNSi5seekgElSt12_Ios_Seekdir; std::istream::seekg(long,std::_Ios_Seekdir)
mov rdi, r14; this
call __ZNSi5tellgEv; std::istream::tellg(void)
mov [rbx+8], rax
mov rdi, r14
mov rsi, r12
mov rdx, r15
call __ZNSi5seekgESt4fposI11__mbstate_tE; std::istream::seekg(std::fpos<__mbstate_t>)
lea rsi, [rbx+10h]; char *
mov edx, 20h ; ' '; __int64
mov rdi, r14; this
call __ZNSi4readEPcl; std::istream::read(char *,long)
mov byte ptr [rbx+60h], 1
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+18h]
test eax, eax
jz short loc_E7E4
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+68h]
test rax, rax
jz short loc_E7E4
mov rax, [rbx+58h]
mov ecx, [rbx+14h]
mov esi, ecx
bswap esi
cmp byte ptr [rax], 0
cmovz esi, ecx
mov rdi, r14
xor edx, edx
call __ZNSi5seekgESt4fposI11__mbstate_tE; std::istream::seekg(std::fpos<__mbstate_t>)
mov rax, [rbx]
mov rdi, rbx
call qword ptr [rax+68h]
cmp rax, [rbx+8]
jbe short loc_E7BD
mov qword ptr [rbx+38h], 0
jmp short loc_E7E4
loc_E7BD:
mov r15, rax
lea rdi, [rax+1]; unsigned __int64
call __Znam; operator new[](ulong)
mov [rbx+38h], rax
loc_E7CD:
mov rdi, r14; this
mov rsi, rax; char *
mov rdx, r15; __int64
call __ZNSi4readEPcl; std::istream::read(char *,long)
mov rax, [rbx+38h]
mov byte ptr [rax+r15], 0
loc_E7E4:
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
mov rdi, rax; void *
cmp edx, 1
jnz short loc_E815
call ___cxa_begin_catch
mov qword ptr [rbx+38h], 0
call ___cxa_end_catch
mov rax, [rbx+38h]
test rax, rax
jnz short loc_E7CD
jmp short loc_E7E4
loc_E815:
call __Unwind_Resume
| unsigned long long ELFIO::segment_impl<ELFIO::Elf32_Phdr>::load(
long long a1,
std::istream *a2,
long long a3,
long long a4)
{
unsigned long long result; // rax
long long v8; // rsi
long long v9; // r15
char *v10; // rax
std::istream::seekg(a2, 0LL, 2LL);
*(_QWORD *)(a1 + 8) = std::istream::tellg(a2);
std::istream::seekg(a2, a3, a4);
std::istream::read(a2, (char *)(a1 + 16), 32LL);
*(_BYTE *)(a1 + 96) = 1;
result = (*(long long ( **)(long long))(*(_QWORD *)a1 + 24LL))(a1);
if ( (_DWORD)result )
{
result = (*(long long ( **)(long long))(*(_QWORD *)a1 + 104LL))(a1);
if ( result )
{
v8 = _byteswap_ulong(*(_DWORD *)(a1 + 20));
if ( !**(_BYTE **)(a1 + 88) )
v8 = *(unsigned int *)(a1 + 20);
std::istream::seekg(a2, v8, 0LL);
result = (*(long long ( **)(long long))(*(_QWORD *)a1 + 104LL))(a1);
if ( result <= *(_QWORD *)(a1 + 8) )
{
v9 = result;
v10 = (char *)operator new[](result + 1);
*(_QWORD *)(a1 + 56) = v10;
std::istream::read(a2, v10, v9);
result = *(_QWORD *)(a1 + 56);
*(_BYTE *)(result + v9) = 0;
}
else
{
*(_QWORD *)(a1 + 56) = 0LL;
}
}
}
return result;
}
| load:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV R15,RCX
MOV R12,RDX
MOV R14,RSI
MOV RBX,RDI
MOV RDI,RSI
XOR ESI,ESI
MOV EDX,0x2
CALL 0x0010b2a0
MOV RDI,R14
CALL 0x0010b350
MOV qword ptr [RBX + 0x8],RAX
MOV RDI,R14
MOV RSI,R12
MOV RDX,R15
CALL 0x0010b270
LEA RSI,[RBX + 0x10]
MOV EDX,0x20
MOV RDI,R14
CALL 0x0010b260
MOV byte ptr [RBX + 0x60],0x1
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX + 0x18]
TEST EAX,EAX
JZ 0x0010e7e4
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX + 0x68]
TEST RAX,RAX
JZ 0x0010e7e4
MOV RAX,qword ptr [RBX + 0x58]
MOV ECX,dword ptr [RBX + 0x14]
MOV ESI,ECX
BSWAP ESI
CMP byte ptr [RAX],0x0
CMOVZ ESI,ECX
MOV RDI,R14
XOR EDX,EDX
CALL 0x0010b270
MOV RAX,qword ptr [RBX]
MOV RDI,RBX
CALL qword ptr [RAX + 0x68]
CMP RAX,qword ptr [RBX + 0x8]
JBE 0x0010e7bd
MOV qword ptr [RBX + 0x38],0x0
JMP 0x0010e7e4
LAB_0010e7bd:
MOV R15,RAX
LEA RDI,[RAX + 0x1]
LAB_0010e7c4:
CALL 0x0010b030
LAB_0010e7c9:
MOV qword ptr [RBX + 0x38],RAX
LAB_0010e7cd:
MOV RDI,R14
MOV RSI,RAX
MOV RDX,R15
CALL 0x0010b260
MOV RAX,qword ptr [RBX + 0x38]
MOV byte ptr [RAX + R15*0x1],0x0
LAB_0010e7e4:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* ELFIO::segment_impl<ELFIO::Elf32_Phdr>::load(std::istream&, std::fpos<__mbstate_t>) */
void ELFIO::segment_impl<ELFIO::Elf32_Phdr>::load
(long *param_1,char *param_2,int8 param_3,int8 param_4)
{
uint uVar1;
uint uVar2;
int iVar3;
long lVar4;
ulong uVar5;
void *pvVar6;
std::istream::seekg(param_2,0,2);
lVar4 = std::istream::tellg();
param_1[1] = lVar4;
std::istream::seekg(param_2,param_3,param_4);
std::istream::read(param_2,(long)(param_1 + 2));
*(int1 *)(param_1 + 0xc) = 1;
iVar3 = (**(code **)(*param_1 + 0x18))(param_1);
if (iVar3 != 0) {
lVar4 = (**(code **)(*param_1 + 0x68))(param_1);
if (lVar4 != 0) {
uVar1 = *(uint *)((long)param_1 + 0x14);
uVar2 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;
if (*(char *)param_1[0xb] == '\0') {
uVar2 = uVar1;
}
std::istream::seekg(param_2,uVar2,0);
uVar5 = (**(code **)(*param_1 + 0x68))(param_1);
if ((ulong)param_1[1] < uVar5) {
param_1[7] = 0;
}
else {
/* try { // try from 0010e7c4 to 0010e7c8 has its CatchHandler @ 0010e7f0 */
pvVar6 = operator_new__(uVar5 + 1);
param_1[7] = (long)pvVar6;
std::istream::read(param_2,(long)pvVar6);
*(int1 *)(param_1[7] + uVar5) = 0;
}
}
}
return;
}
| |
44,388 | my_charpos_utf16 | eloqsql/strings/ctype-ucs2.c | static size_t
my_charpos_utf16(CHARSET_INFO *cs,
const char *b, const char *e, size_t pos)
{
const char *b0= b;
uint charlen;
for ( ; pos; b+= charlen, pos--)
{
if (!(charlen= my_ismbchar(cs, b, e)))
return (e + 2 - b0); /* Error, return pos outside the string */
}
return (size_t) (pos ? (e + 2 - b0) : (b - b0));
} | O0 | c | my_charpos_utf16:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x5b7c5
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x5ee60
movl %eax, -0x34(%rbp)
cmpl $0x0, %eax
jne 0x5b7a5
movq -0x20(%rbp), %rax
addq $0x2, %rax
movq -0x30(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x8(%rbp)
jmp 0x5b7f8
jmp 0x5b7a7
movl -0x34(%rbp), %ecx
movq -0x18(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x28(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x28(%rbp)
jmp 0x5b770
cmpq $0x0, -0x28(%rbp)
je 0x5b7e1
movq -0x20(%rbp), %rax
addq $0x2, %rax
movq -0x30(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x40(%rbp)
jmp 0x5b7f0
movq -0x18(%rbp), %rax
movq -0x30(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_charpos_utf16:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_18]
mov [rbp+var_30], rax
loc_5B770:
cmp [rbp+var_28], 0
jz short loc_5B7C5
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call my_ismbchar_1
mov [rbp+var_34], eax
cmp eax, 0
jnz short loc_5B7A5
mov rax, [rbp+var_20]
add rax, 2
mov rcx, [rbp+var_30]
sub rax, rcx
mov [rbp+var_8], rax
jmp short loc_5B7F8
loc_5B7A5:
jmp short $+2
loc_5B7A7:
mov ecx, [rbp+var_34]
mov rax, [rbp+var_18]
mov ecx, ecx
add rax, rcx
mov [rbp+var_18], rax
mov rax, [rbp+var_28]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_28], rax
jmp short loc_5B770
loc_5B7C5:
cmp [rbp+var_28], 0
jz short loc_5B7E1
mov rax, [rbp+var_20]
add rax, 2
mov rcx, [rbp+var_30]
sub rax, rcx
mov [rbp+var_40], rax
jmp short loc_5B7F0
loc_5B7E1:
mov rax, [rbp+var_18]
mov rcx, [rbp+var_30]
sub rax, rcx
mov [rbp+var_40], rax
loc_5B7F0:
mov rax, [rbp+var_40]
mov [rbp+var_8], rax
loc_5B7F8:
mov rax, [rbp+var_8]
add rsp, 40h
pop rbp
retn
| long long my_charpos_utf16(long long a1, long long a2, long long a3, long long a4)
{
unsigned int v5; // [rsp+Ch] [rbp-34h]
long long v8; // [rsp+28h] [rbp-18h]
v8 = a2;
while ( a4 )
{
v5 = my_ismbchar_1(a1, v8, a3);
if ( !v5 )
return a3 + 2 - a2;
v8 += v5;
--a4;
}
return v8 - a2;
}
| my_charpos_utf16:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x30],RAX
LAB_0015b770:
CMP qword ptr [RBP + -0x28],0x0
JZ 0x0015b7c5
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x0015ee60
MOV dword ptr [RBP + -0x34],EAX
CMP EAX,0x0
JNZ 0x0015b7a5
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
MOV RCX,qword ptr [RBP + -0x30]
SUB RAX,RCX
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0015b7f8
LAB_0015b7a5:
JMP 0x0015b7a7
LAB_0015b7a7:
MOV ECX,dword ptr [RBP + -0x34]
MOV RAX,qword ptr [RBP + -0x18]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x28]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x28],RAX
JMP 0x0015b770
LAB_0015b7c5:
CMP qword ptr [RBP + -0x28],0x0
JZ 0x0015b7e1
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x2
MOV RCX,qword ptr [RBP + -0x30]
SUB RAX,RCX
MOV qword ptr [RBP + -0x40],RAX
JMP 0x0015b7f0
LAB_0015b7e1:
MOV RAX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x30]
SUB RAX,RCX
MOV qword ptr [RBP + -0x40],RAX
LAB_0015b7f0:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x8],RAX
LAB_0015b7f8:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x40
POP RBP
RET
|
/* WARNING: Removing unreachable block (ram,0x0015b7cc) */
long my_charpos_utf16(int8 param_1,long param_2,long param_3,long param_4)
{
uint uVar1;
long local_30;
long local_20;
local_30 = param_4;
local_20 = param_2;
while( true ) {
if (local_30 == 0) {
return local_20 - param_2;
}
uVar1 = my_ismbchar(param_1,local_20,param_3);
if (uVar1 == 0) break;
local_20 = local_20 + (ulong)uVar1;
local_30 = local_30 + -1;
}
return (param_3 + 2) - param_2;
}
| |
44,389 | maria_ft_simple_get_word | eloqsql/storage/maria/ma_ft_parser.c | uchar maria_ft_simple_get_word(CHARSET_INFO *cs, uchar **start,
const uchar *end, FT_WORD *word,
my_bool skip_stopwords)
{
uchar *doc= *start;
uint mwc, length;
int ctype, mbl;
DBUG_ENTER("maria_ft_simple_get_word");
do
{
for (;; doc+= (mbl > 0 ? mbl : (mbl < 0 ? -mbl : 1)))
{
if (doc >= end)
DBUG_RETURN(0);
mbl= my_ci_ctype(cs, &ctype, doc, end);
if (true_word_char(ctype, *doc))
break;
}
mwc= length= 0;
for (word->pos= doc; doc < end; length++,
doc+= (mbl > 0 ? mbl : (mbl < 0 ? -mbl : 1)))
{
mbl= my_ci_ctype(cs, &ctype, doc, end);
if (true_word_char(ctype, *doc))
mwc= 0;
else if (!misc_word_char(*doc) || mwc)
break;
else
mwc++;
}
word->len= (uint)(doc-word->pos) - mwc;
if (skip_stopwords == FALSE ||
(length >= ft_min_word_len && length < ft_max_word_len &&
!is_stopword((char *) word->pos, word->len)))
{
*start= doc;
DBUG_RETURN(1);
}
} while (doc < end);
DBUG_RETURN(0);
} | O3 | c | maria_ft_simple_get_word:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movq %rdx, %r12
movq %rdi, %r13
movq %rsi, -0x40(%rbp)
movq (%rsi), %r15
leaq -0x2c(%rbp), %rbx
movl $0x1, %r14d
cmpq %r12, %r15
jae 0x4559e
movq 0xb8(%r13), %rax
movq %r13, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq *0x38(%rax)
testb $0x7, -0x2c(%rbp)
jne 0x454f4
cmpb $0x5f, (%r15)
je 0x454f4
movl %eax, %ecx
negl %ecx
testl %eax, %eax
cmovel %r14d, %ecx
cmovgl %eax, %ecx
addq %rcx, %r15
jmp 0x454b7
movq -0x38(%rbp), %rcx
movq %r15, (%rcx)
xorl %r14d, %r14d
cmpq %r12, %r15
jae 0x45545
movq 0xb8(%r13), %rax
movq %r13, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq *0x38(%rax)
testb $0x7, -0x2c(%rbp)
jne 0x45525
cmpb $0x5f, (%r15)
jne 0x4554c
incl %r14d
movl %eax, %ecx
negl %ecx
testl %eax, %eax
movl $0x1, %edx
cmovel %edx, %ecx
cmovgl %eax, %ecx
addq %rcx, %r15
cmpq %r12, %r15
jb 0x45503
xorl %edx, %edx
jmp 0x4554e
movq %r15, %rdi
xorl %edx, %edx
jmp 0x45558
movb $0x1, %dl
movq -0x38(%rbp), %rcx
movq (%rcx), %rdi
movl %r14d, %r14d
movq %r15, %rax
subq %rdi, %rax
movl %eax, 0x8(%rcx)
cmpb $0x0, -0x30(%rbp)
je 0x455af
leaq 0x346dc2(%rip), %rcx # 0x38c330
cmpq %r14, (%rcx)
ja 0x45590
leaq 0x346dbe(%rip), %rcx # 0x38c338
cmpq %r14, (%rcx)
jbe 0x45590
movl %eax, %esi
movq %rdx, %r14
callq 0x74005
movq %r14, %rdx
testl %eax, %eax
je 0x455af
testb %dl, %dl
movl $0x1, %r14d
jne 0x454b7
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x40(%rbp), %rax
movq %r15, (%rax)
movb $0x1, %al
jmp 0x455a0
| maria_ft_simple_get_word:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rbp+var_30], r8d
mov [rbp+var_38], rcx
mov r12, rdx
mov r13, rdi
mov [rbp+var_40], rsi
mov r15, [rsi]
lea rbx, [rbp+var_2C]
mov r14d, 1
loc_454B7:
cmp r15, r12
jnb loc_4559E
mov rax, [r13+0B8h]
mov rdi, r13
mov rsi, rbx
mov rdx, r15
mov rcx, r12
call qword ptr [rax+38h]
test [rbp+var_2C], 7
jnz short loc_454F4
cmp byte ptr [r15], 5Fh ; '_'
jz short loc_454F4
mov ecx, eax
neg ecx
test eax, eax
cmovz ecx, r14d
cmovg ecx, eax
add r15, rcx
jmp short loc_454B7
loc_454F4:
mov rcx, [rbp+var_38]
mov [rcx], r15
xor r14d, r14d
cmp r15, r12
jnb short loc_45545
loc_45503:
mov rax, [r13+0B8h]
mov rdi, r13
mov rsi, rbx
mov rdx, r15
mov rcx, r12
call qword ptr [rax+38h]
test [rbp+var_2C], 7
jnz short loc_45525
cmp byte ptr [r15], 5Fh ; '_'
jnz short loc_4554C
loc_45525:
inc r14d
mov ecx, eax
neg ecx
test eax, eax
mov edx, 1
cmovz ecx, edx
cmovg ecx, eax
add r15, rcx
cmp r15, r12
jb short loc_45503
xor edx, edx
jmp short loc_4554E
loc_45545:
mov rdi, r15
xor edx, edx
jmp short loc_45558
loc_4554C:
mov dl, 1
loc_4554E:
mov rcx, [rbp+var_38]
mov rdi, [rcx]
mov r14d, r14d
loc_45558:
mov rax, r15
sub rax, rdi
mov [rcx+8], eax
cmp byte ptr [rbp+var_30], 0
jz short loc_455AF
lea rcx, ft_min_word_len
cmp [rcx], r14
ja short loc_45590
lea rcx, ft_max_word_len
cmp [rcx], r14
jbe short loc_45590
mov esi, eax
mov r14, rdx
call is_stopword
mov rdx, r14
test eax, eax
jz short loc_455AF
loc_45590:
test dl, dl
mov r14d, 1
jnz loc_454B7
loc_4559E:
xor eax, eax
loc_455A0:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_455AF:
mov rax, [rbp+var_40]
mov [rax], r15
mov al, 1
jmp short loc_455A0
| char maria_ft_simple_get_word(long long a1, _BYTE **a2, unsigned long long a3, _QWORD *a4, char a5)
{
_BYTE *v7; // r15
int v8; // eax
long long v9; // rcx
_QWORD *v10; // rcx
unsigned long long v11; // r14
int v12; // eax
long long v13; // rcx
char v14; // dl
_BYTE *v15; // rdi
char v16; // r14
int v17; // eax
_BYTE v21[44]; // [rsp+14h] [rbp-2Ch] BYREF
v7 = *a2;
while ( 1 )
{
while ( 1 )
{
if ( (unsigned long long)v7 >= a3 )
return 0;
v8 = (*(long long ( **)(long long, _BYTE *, _BYTE *, unsigned long long))(*(_QWORD *)(a1 + 184) + 56LL))(
a1,
v21,
v7,
a3);
if ( (v21[0] & 7) != 0 || *v7 == 95 )
break;
v9 = (unsigned int)-v8;
if ( !v8 )
v9 = 1LL;
if ( v8 > 0 )
v9 = (unsigned int)v8;
v7 += v9;
}
v10 = a4;
*a4 = v7;
v11 = 0LL;
if ( (unsigned long long)v7 >= a3 )
{
v15 = v7;
v14 = 0;
}
else
{
while ( 1 )
{
v12 = (*(long long ( **)(long long, _BYTE *, _BYTE *, unsigned long long))(*(_QWORD *)(a1 + 184) + 56LL))(
a1,
v21,
v7,
a3);
if ( (v21[0] & 7) == 0 && *v7 != 95 )
break;
LODWORD(v11) = v11 + 1;
v13 = (unsigned int)-v12;
if ( !v12 )
v13 = 1LL;
if ( v12 > 0 )
v13 = (unsigned int)v12;
v7 += v13;
if ( (unsigned long long)v7 >= a3 )
{
v14 = 0;
goto LABEL_21;
}
}
v14 = 1;
LABEL_21:
v10 = a4;
v15 = (_BYTE *)*a4;
v11 = (unsigned int)v11;
}
*((_DWORD *)v10 + 2) = (_DWORD)v7 - (_DWORD)v15;
if ( !a5 )
break;
if ( ft_min_word_len <= v11 && ft_max_word_len > v11 )
{
v16 = v14;
v17 = is_stopword(v15, (unsigned int)((_DWORD)v7 - (_DWORD)v15));
v14 = v16;
if ( !v17 )
break;
}
if ( !v14 )
return 0;
}
*a2 = v7;
return 1;
}
| maria_ft_simple_get_word:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV dword ptr [RBP + -0x30],R8D
MOV qword ptr [RBP + -0x38],RCX
MOV R12,RDX
MOV R13,RDI
MOV qword ptr [RBP + -0x40],RSI
MOV R15,qword ptr [RSI]
LEA RBX,[RBP + -0x2c]
MOV R14D,0x1
LAB_001454b7:
CMP R15,R12
JNC 0x0014559e
MOV RAX,qword ptr [R13 + 0xb8]
MOV RDI,R13
MOV RSI,RBX
MOV RDX,R15
MOV RCX,R12
CALL qword ptr [RAX + 0x38]
TEST byte ptr [RBP + -0x2c],0x7
JNZ 0x001454f4
CMP byte ptr [R15],0x5f
JZ 0x001454f4
MOV ECX,EAX
NEG ECX
TEST EAX,EAX
CMOVZ ECX,R14D
CMOVG ECX,EAX
ADD R15,RCX
JMP 0x001454b7
LAB_001454f4:
MOV RCX,qword ptr [RBP + -0x38]
MOV qword ptr [RCX],R15
XOR R14D,R14D
CMP R15,R12
JNC 0x00145545
LAB_00145503:
MOV RAX,qword ptr [R13 + 0xb8]
MOV RDI,R13
MOV RSI,RBX
MOV RDX,R15
MOV RCX,R12
CALL qword ptr [RAX + 0x38]
TEST byte ptr [RBP + -0x2c],0x7
JNZ 0x00145525
CMP byte ptr [R15],0x5f
JNZ 0x0014554c
LAB_00145525:
INC R14D
MOV ECX,EAX
NEG ECX
TEST EAX,EAX
MOV EDX,0x1
CMOVZ ECX,EDX
CMOVG ECX,EAX
ADD R15,RCX
CMP R15,R12
JC 0x00145503
XOR EDX,EDX
JMP 0x0014554e
LAB_00145545:
MOV RDI,R15
XOR EDX,EDX
JMP 0x00145558
LAB_0014554c:
MOV DL,0x1
LAB_0014554e:
MOV RCX,qword ptr [RBP + -0x38]
MOV RDI,qword ptr [RCX]
MOV R14D,R14D
LAB_00145558:
MOV RAX,R15
SUB RAX,RDI
MOV dword ptr [RCX + 0x8],EAX
CMP byte ptr [RBP + -0x30],0x0
JZ 0x001455af
LEA RCX,[0x48c330]
CMP qword ptr [RCX],R14
JA 0x00145590
LEA RCX,[0x48c338]
CMP qword ptr [RCX],R14
JBE 0x00145590
MOV ESI,EAX
MOV R14,RDX
CALL 0x00174005
MOV RDX,R14
TEST EAX,EAX
JZ 0x001455af
LAB_00145590:
TEST DL,DL
MOV R14D,0x1
JNZ 0x001454b7
LAB_0014559e:
XOR EAX,EAX
LAB_001455a0:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001455af:
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RAX],R15
MOV AL,0x1
JMP 0x001455a0
|
int8
maria_ft_simple_get_word
(long param_1,int8 *param_2,char *param_3,int8 *param_4,char param_5)
{
bool bVar1;
uint uVar2;
int iVar3;
ulong uVar4;
ulong uVar5;
uint uVar6;
char *pcVar7;
char *pcVar8;
byte local_34 [4];
pcVar7 = (char *)*param_2;
do {
while( true ) {
if (param_3 <= pcVar7) {
return 0;
}
uVar2 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x38))(param_1,local_34,pcVar7,param_3);
if (((local_34[0] & 7) != 0) || (*pcVar7 == '_')) break;
uVar4 = (ulong)-uVar2;
if (uVar2 == 0) {
uVar4 = 1;
}
if (0 < (int)uVar2) {
uVar4 = (ulong)uVar2;
}
pcVar7 = pcVar7 + uVar4;
}
*param_4 = pcVar7;
uVar4 = 0;
if (pcVar7 < param_3) {
do {
uVar6 = (uint)uVar4;
uVar2 = (**(code **)(*(long *)(param_1 + 0xb8) + 0x38))(param_1,local_34,pcVar7,param_3);
if (((local_34[0] & 7) == 0) && (*pcVar7 != '_')) {
bVar1 = true;
pcVar8 = pcVar7;
goto LAB_0014554e;
}
uVar6 = uVar6 + 1;
uVar4 = (ulong)uVar6;
uVar5 = (ulong)-uVar2;
if (uVar2 == 0) {
uVar5 = 1;
}
if (0 < (int)uVar2) {
uVar5 = (ulong)uVar2;
}
pcVar7 = pcVar7 + uVar5;
} while (pcVar7 < param_3);
bVar1 = false;
pcVar8 = pcVar7;
LAB_0014554e:
pcVar7 = (char *)*param_4;
uVar4 = (ulong)uVar6;
}
else {
bVar1 = false;
pcVar8 = pcVar7;
}
*(int *)(param_4 + 1) = (int)((long)pcVar8 - (long)pcVar7);
if ((param_5 == '\0') ||
(((ft_min_word_len <= uVar4 && (uVar4 < ft_max_word_len)) &&
(iVar3 = is_stopword(pcVar7,(long)pcVar8 - (long)pcVar7 & 0xffffffff), iVar3 == 0)))) {
*param_2 = pcVar8;
return 1;
}
pcVar7 = pcVar8;
if (!bVar1) {
return 0;
}
} while( true );
}
| |
44,390 | ma_read_rnd_pack_record | eloqsql/storage/maria/ma_packrec.c | int _ma_read_rnd_pack_record(MARIA_HA *info,
uchar *buf,
register MARIA_RECORD_POS filepos,
my_bool skip_deleted_blocks)
{
File file;
MARIA_BLOCK_INFO block_info;
MARIA_SHARE *share= info->s;
DBUG_ENTER("_ma_read_rnd_pack_record");
if (filepos >= info->state->data_file_length)
{
my_errno= HA_ERR_END_OF_FILE;
goto err;
}
file= info->dfile.file;
if (info->opt_flag & READ_CACHE_USED)
{
if (_ma_read_cache(info, &info->rec_cache, block_info.header,
filepos, share->pack.ref_length,
skip_deleted_blocks ? READING_NEXT : 0))
goto err;
file= -1;
}
if (_ma_pack_get_block_info(info, &info->bit_buff, &block_info,
&info->rec_buff, &info->rec_buff_size,
file, filepos))
goto err; /* Error code is already set */
#ifndef DBUG_OFF
if (block_info.rec_len > share->max_pack_length)
{
_ma_set_fatal_error(info, HA_ERR_WRONG_IN_RECORD);
goto err;
}
#endif
if (info->opt_flag & READ_CACHE_USED)
{
if (_ma_read_cache(info, &info->rec_cache, info->rec_buff,
block_info.filepos, block_info.rec_len,
skip_deleted_blocks ? READING_NEXT : 0))
goto err;
}
else
{
if (mysql_file_read(info->dfile.file, info->rec_buff + block_info.offset,
block_info.rec_len-block_info.offset,
MYF(MY_NABP)))
goto err;
}
info->packed_length= block_info.rec_len;
info->cur_row.lastpos= filepos;
info->cur_row.nextpos= block_info.filepos+block_info.rec_len;
info->update|= HA_STATE_AKTIV | HA_STATE_KEY_CHANGED;
info->rec_buff[block_info.rec_len]= 0; /* Keep valgrind happy */
DBUG_RETURN(_ma_pack_rec_unpack(info, &info->bit_buff, buf,
info->rec_buff, block_info.rec_len));
err:
DBUG_RETURN(my_errno);
} | O3 | c | ma_read_rnd_pack_record:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movq 0x20(%rdi), %rax
cmpq %rdx, 0x28(%rax)
jbe 0x3b130
movl %ecx, %r13d
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
testb $0x2, 0x61c(%rdi)
jne 0x3b13d
movl 0x480(%r14), %r9d
jmp 0x3b174
callq 0xa29fe
movl $0x89, (%rax)
jmp 0x3b1a3
movq (%r14), %rax
leaq 0x4b8(%r14), %rsi
movl 0x598(%rax), %r8d
xorl %r9d, %r9d
testb %r13b, %r13b
setne %r9b
leaq -0x88(%rbp), %rdx
movq %r14, %rdi
movq %r15, %rcx
callq 0x5bf10
testb %al, %al
jne 0x3b1a3
movl $0xffffffff, %r9d # imm = 0xFFFFFFFF
leaq 0x290(%r14), %r12
leaq 0x3a0(%r14), %rcx
leaq 0x460(%r14), %r8
movq %r15, (%rsp)
leaq -0x88(%rbp), %rdx
movq %r14, %rdi
movq %r12, %rsi
callq 0x3ad31
testl %eax, %eax
je 0x3b1cf
callq 0xa29fe
movl (%rax), %eax
movq %fs:0x28, %rcx
cmpq -0x30(%rbp), %rcx
jne 0x3b33e
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testb $0x2, 0x61c(%r14)
movq 0x3a0(%r14), %rdx
jne 0x3b24b
movl 0x480(%r14), %esi
movl -0x34(%rbp), %eax
addq %rax, %rdx
movq %rdx, -0x98(%rbp)
movq -0x70(%rbp), %r13
subq %rax, %r13
leaq 0x34cebe(%rip), %rax # 0x3880c0
movq (%rax), %rax
leaq -0xe8(%rbp), %rdi
movl %esi, -0x8c(%rbp)
movl $0x6, %edx
callq *0x158(%rax)
testq %rax, %rax
jne 0x3b2c5
movl $0x4, %ecx
movl -0x8c(%rbp), %edi
movq -0x98(%rbp), %rsi
movq %r13, %rdx
callq 0xa187c
testq %rax, %rax
jne 0x3b1a3
jmp 0x3b274
leaq 0x4b8(%r14), %rsi
movq -0x70(%rbp), %r8
movq -0x50(%rbp), %rcx
xorl %r9d, %r9d
testb %r13b, %r13b
setne %r9b
movq %r14, %rdi
callq 0x5bf10
testb %al, %al
jne 0x3b1a3
movq -0x70(%rbp), %rax
movq %rax, 0x450(%r14)
movq %r15, 0x98(%r14)
movq -0x50(%rbp), %rcx
addq %rax, %rcx
movq %rcx, 0xa0(%r14)
orb $-0x7e, 0x624(%r14)
movq 0x3a0(%r14), %rcx
movb $0x0, (%rcx,%rax)
movq 0x3a0(%r14), %rcx
movq -0x70(%rbp), %r8
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x3aff1
jmp 0x3b1aa
movq %rax, %rcx
leaq 0x34cdf1(%rip), %rax # 0x3880c0
movq (%rax), %rax
leaq 0x9f730(%rip), %rdx # 0xdaa09
movq %rcx, -0xa0(%rbp)
movq %rcx, %rdi
movq %r13, %rsi
movl $0x572, %ecx # imm = 0x572
callq *0x210(%rax)
movl $0x4, %ecx
movl -0x8c(%rbp), %edi
movq -0x98(%rbp), %rsi
movq %r13, %rdx
callq 0xa187c
movq %rax, -0x98(%rbp)
xorl %esi, %esi
testq %rax, %rax
cmoveq %r13, %rsi
leaq 0x34cd9e(%rip), %rax # 0x3880c0
movq (%rax), %rax
movq -0xa0(%rbp), %rdi
callq *0x218(%rax)
movq -0x98(%rbp), %rax
jmp 0x3b240
callq 0x29270
| _ma_read_rnd_pack_record:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0C8h
mov rax, fs:28h
mov [rbp+var_30], rax
mov rax, [rdi+20h]
cmp [rax+28h], rdx
jbe short loc_3B130
mov r13d, ecx
mov r15, rdx
mov rbx, rsi
mov r14, rdi
test byte ptr [rdi+61Ch], 2
jnz short loc_3B13D
mov r9d, [r14+480h]
jmp short loc_3B174
loc_3B130:
call _my_thread_var
mov dword ptr [rax], 89h
jmp short loc_3B1A3
loc_3B13D:
mov rax, [r14]
lea rsi, [r14+4B8h]
mov r8d, [rax+598h]
xor r9d, r9d
test r13b, r13b
setnz r9b
lea rdx, [rbp+var_88]
mov rdi, r14
mov rcx, r15
call _ma_read_cache
test al, al
jnz short loc_3B1A3
mov r9d, 0FFFFFFFFh
loc_3B174:
lea r12, [r14+290h]
lea rcx, [r14+3A0h]
lea r8, [r14+460h]
mov [rsp+0F0h+var_F0], r15
lea rdx, [rbp+var_88]
mov rdi, r14
mov rsi, r12
call _ma_pack_get_block_info
test eax, eax
jz short loc_3B1CF
loc_3B1A3:
call _my_thread_var
mov eax, [rax]
loc_3B1AA:
mov rcx, fs:28h
cmp rcx, [rbp+var_30]
jnz loc_3B33E
add rsp, 0C8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_3B1CF:
test byte ptr [r14+61Ch], 2
mov rdx, [r14+3A0h]
jnz short loc_3B24B
mov esi, [r14+480h]
mov eax, [rbp+var_34]
add rdx, rax
mov [rbp+var_98], rdx
mov r13, [rbp+var_70]
sub r13, rax
lea rax, PSI_server
mov rax, [rax]
lea rdi, [rbp+var_E8]
mov [rbp+var_8C], esi
mov edx, 6
call qword ptr [rax+158h]
test rax, rax
jnz loc_3B2C5
mov ecx, 4
mov edi, [rbp+var_8C]
mov rsi, [rbp+var_98]
mov rdx, r13
call my_read
loc_3B240:
test rax, rax
jnz loc_3B1A3
jmp short loc_3B274
loc_3B24B:
lea rsi, [r14+4B8h]
mov r8, [rbp+var_70]
mov rcx, [rbp+var_50]
xor r9d, r9d
test r13b, r13b
setnz r9b
mov rdi, r14
call _ma_read_cache
test al, al
jnz loc_3B1A3
loc_3B274:
mov rax, [rbp+var_70]
mov [r14+450h], rax
mov [r14+98h], r15
mov rcx, [rbp+var_50]
add rcx, rax
mov [r14+0A0h], rcx
or byte ptr [r14+624h], 82h
mov rcx, [r14+3A0h]
mov byte ptr [rcx+rax], 0
mov rcx, [r14+3A0h]
mov r8, [rbp+var_70]
mov rdi, r14
mov rsi, r12
mov rdx, rbx
call _ma_pack_rec_unpack
jmp loc_3B1AA
loc_3B2C5:
mov rcx, rax
lea rax, PSI_server
mov rax, [rax]
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov [rbp+var_A0], rcx
mov rdi, rcx
mov rsi, r13
mov ecx, 572h
call qword ptr [rax+210h]
mov ecx, 4
mov edi, [rbp+var_8C]
mov rsi, [rbp+var_98]
mov rdx, r13
call my_read
mov [rbp+var_98], rax
xor esi, esi
test rax, rax
cmovz rsi, r13
lea rax, PSI_server
mov rax, [rax]
mov rdi, [rbp+var_A0]
call qword ptr [rax+218h]
mov rax, [rbp+var_98]
jmp loc_3B240
loc_3B33E:
call ___stack_chk_fail
| long long ma_read_rnd_pack_record(long long a1, long long a2, unsigned long long a3, long long a4, long long a5)
{
char v5; // r13
long long v7; // rbx
long long v8; // r14
unsigned int v9; // r9d
long long v10; // rdx
long long v11; // rcx
long long v12; // r8
long long v14; // rdx
long long v15; // rsi
long long v16; // r13
long long v17; // rax
long long v18; // rax
int v19; // r9d
long long v20; // rax
char v21[72]; // [rsp+8h] [rbp-E8h] BYREF
long long v22; // [rsp+50h] [rbp-A0h]
long long v23; // [rsp+58h] [rbp-98h]
unsigned int v24; // [rsp+64h] [rbp-8Ch]
unsigned __int8 v25[24]; // [rsp+68h] [rbp-88h] BYREF
long long v26; // [rsp+80h] [rbp-70h]
long long v27; // [rsp+A0h] [rbp-50h]
unsigned int v28; // [rsp+BCh] [rbp-34h]
unsigned long long v29; // [rsp+C0h] [rbp-30h]
v29 = __readfsqword(0x28u);
if ( *(_QWORD *)(*(_QWORD *)(a1 + 32) + 40LL) <= a3 )
{
*(_DWORD *)my_thread_var(a1, a2, a3, a4, a5) = 137;
return *(unsigned int *)my_thread_var(a1, a2, v10, v11, v12);
}
v5 = a4;
v7 = a2;
v8 = a1;
if ( (*(_BYTE *)(a1 + 1564) & 2) == 0 )
{
v9 = *(_DWORD *)(a1 + 1152);
goto LABEL_7;
}
a2 = a1 + 1208;
if ( (unsigned __int8)ma_read_cache(a1, a1 + 1208, v25, a3, *(unsigned int *)(*(_QWORD *)a1 + 1432LL), (_BYTE)a4 != 0) )
return *(unsigned int *)my_thread_var(a1, a2, v10, v11, v12);
v9 = -1;
LABEL_7:
a2 = a1 + 656;
if ( (unsigned int)ma_pack_get_block_info((long long *)a1, a1 + 656, v25, (_QWORD *)(a1 + 928), a1 + 1120, v9, a3) )
return *(unsigned int *)my_thread_var(a1, a2, v10, v11, v12);
v14 = *(_QWORD *)(a1 + 928);
if ( (*(_BYTE *)(a1 + 1564) & 2) != 0 )
{
a2 = a1 + 1208;
if ( (unsigned __int8)ma_read_cache(a1, a1 + 1208, v14, v27, v26, v5 != 0) )
return *(unsigned int *)my_thread_var(a1, a2, v10, v11, v12);
}
else
{
v15 = *(unsigned int *)(a1 + 1152);
v23 = v28 + v14;
v16 = v26 - v28;
v24 = v15;
v17 = ((long long ( *)(char *, long long, long long))PSI_server[43])(v21, v15, 6LL);
if ( v17 )
{
v22 = v17;
((void ( *)(long long, long long, const char *, long long))PSI_server[66])(
v17,
v16,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_packrec.c",
1394LL);
v23 = my_read(v24, v23, v16, 4LL);
a2 = 0LL;
if ( !v23 )
a2 = v16;
a1 = v22;
((void ( *)(long long, long long))PSI_server[67])(v22, a2);
v18 = v23;
}
else
{
a1 = v24;
a2 = v23;
v18 = my_read(v24, v23, v16, 4LL);
}
if ( v18 )
return *(unsigned int *)my_thread_var(a1, a2, v10, v11, v12);
}
v20 = v26;
*(_QWORD *)(v8 + 1104) = v26;
*(_QWORD *)(v8 + 152) = a3;
*(_QWORD *)(v8 + 160) = v20 + v27;
*(_BYTE *)(v8 + 1572) |= 0x82u;
*(_BYTE *)(*(_QWORD *)(v8 + 928) + v20) = 0;
return ma_pack_rec_unpack((_BYTE *)v8, v8 + 656, v7, *(_QWORD *)(v8 + 928), v26, v19);
}
| _ma_read_rnd_pack_record:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xc8
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV RAX,qword ptr [RDI + 0x20]
CMP qword ptr [RAX + 0x28],RDX
JBE 0x0013b130
MOV R13D,ECX
MOV R15,RDX
MOV RBX,RSI
MOV R14,RDI
TEST byte ptr [RDI + 0x61c],0x2
JNZ 0x0013b13d
MOV R9D,dword ptr [R14 + 0x480]
JMP 0x0013b174
LAB_0013b130:
CALL 0x001a29fe
MOV dword ptr [RAX],0x89
JMP 0x0013b1a3
LAB_0013b13d:
MOV RAX,qword ptr [R14]
LEA RSI,[R14 + 0x4b8]
MOV R8D,dword ptr [RAX + 0x598]
XOR R9D,R9D
TEST R13B,R13B
SETNZ R9B
LEA RDX,[RBP + -0x88]
MOV RDI,R14
MOV RCX,R15
CALL 0x0015bf10
TEST AL,AL
JNZ 0x0013b1a3
MOV R9D,0xffffffff
LAB_0013b174:
LEA R12,[R14 + 0x290]
LEA RCX,[R14 + 0x3a0]
LEA R8,[R14 + 0x460]
MOV qword ptr [RSP],R15
LEA RDX,[RBP + -0x88]
MOV RDI,R14
MOV RSI,R12
CALL 0x0013ad31
TEST EAX,EAX
JZ 0x0013b1cf
LAB_0013b1a3:
CALL 0x001a29fe
MOV EAX,dword ptr [RAX]
LAB_0013b1aa:
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x30]
JNZ 0x0013b33e
ADD RSP,0xc8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0013b1cf:
TEST byte ptr [R14 + 0x61c],0x2
MOV RDX,qword ptr [R14 + 0x3a0]
JNZ 0x0013b24b
MOV ESI,dword ptr [R14 + 0x480]
MOV EAX,dword ptr [RBP + -0x34]
ADD RDX,RAX
MOV qword ptr [RBP + -0x98],RDX
MOV R13,qword ptr [RBP + -0x70]
SUB R13,RAX
LEA RAX,[0x4880c0]
MOV RAX,qword ptr [RAX]
LEA RDI,[RBP + -0xe8]
MOV dword ptr [RBP + -0x8c],ESI
MOV EDX,0x6
CALL qword ptr [RAX + 0x158]
TEST RAX,RAX
JNZ 0x0013b2c5
MOV ECX,0x4
MOV EDI,dword ptr [RBP + -0x8c]
MOV RSI,qword ptr [RBP + -0x98]
MOV RDX,R13
CALL 0x001a187c
LAB_0013b240:
TEST RAX,RAX
JNZ 0x0013b1a3
JMP 0x0013b274
LAB_0013b24b:
LEA RSI,[R14 + 0x4b8]
MOV R8,qword ptr [RBP + -0x70]
MOV RCX,qword ptr [RBP + -0x50]
XOR R9D,R9D
TEST R13B,R13B
SETNZ R9B
MOV RDI,R14
CALL 0x0015bf10
TEST AL,AL
JNZ 0x0013b1a3
LAB_0013b274:
MOV RAX,qword ptr [RBP + -0x70]
MOV qword ptr [R14 + 0x450],RAX
MOV qword ptr [R14 + 0x98],R15
MOV RCX,qword ptr [RBP + -0x50]
ADD RCX,RAX
MOV qword ptr [R14 + 0xa0],RCX
OR byte ptr [R14 + 0x624],0x82
MOV RCX,qword ptr [R14 + 0x3a0]
MOV byte ptr [RCX + RAX*0x1],0x0
MOV RCX,qword ptr [R14 + 0x3a0]
MOV R8,qword ptr [RBP + -0x70]
MOV RDI,R14
MOV RSI,R12
MOV RDX,RBX
CALL 0x0013aff1
JMP 0x0013b1aa
LAB_0013b2c5:
MOV RCX,RAX
LEA RAX,[0x4880c0]
MOV RAX,qword ptr [RAX]
LEA RDX,[0x1daa09]
MOV qword ptr [RBP + -0xa0],RCX
MOV RDI,RCX
MOV RSI,R13
MOV ECX,0x572
CALL qword ptr [RAX + 0x210]
MOV ECX,0x4
MOV EDI,dword ptr [RBP + -0x8c]
MOV RSI,qword ptr [RBP + -0x98]
MOV RDX,R13
CALL 0x001a187c
MOV qword ptr [RBP + -0x98],RAX
XOR ESI,ESI
TEST RAX,RAX
CMOVZ RSI,R13
LEA RAX,[0x4880c0]
MOV RAX,qword ptr [RAX]
MOV RDI,qword ptr [RBP + -0xa0]
CALL qword ptr [RAX + 0x218]
MOV RAX,qword ptr [RBP + -0x98]
JMP 0x0013b240
LAB_0013b33e:
CALL 0x00129270
|
ulong _ma_read_rnd_pack_record(long *param_1,int8 param_2,ulong param_3,char param_4)
{
char cVar1;
int iVar2;
int4 *puVar3;
uint *puVar4;
long lVar5;
ulong uVar6;
int4 uVar7;
long lVar8;
long in_FS_OFFSET;
int1 local_f0 [72];
long local_a8;
long local_a0;
int4 local_94;
int1 local_90 [24];
long local_78;
long local_58;
uint local_3c;
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
if (param_3 < *(ulong *)(param_1[4] + 0x28)) {
if ((*(byte *)((long)param_1 + 0x61c) & 2) == 0) {
uVar7 = (int4)param_1[0x90];
}
else {
cVar1 = _ma_read_cache(param_1,param_1 + 0x97,local_90,param_3,
*(int4 *)(*param_1 + 0x598),param_4 != '\0');
if (cVar1 != '\0') goto LAB_0013b1a3;
uVar7 = 0xffffffff;
}
iVar2 = _ma_pack_get_block_info
(param_1,param_1 + 0x52,local_90,param_1 + 0x74,param_1 + 0x8c,uVar7,param_3);
if (iVar2 == 0) {
if ((*(byte *)((long)param_1 + 0x61c) & 2) == 0) {
local_94 = (int4)param_1[0x90];
local_a0 = param_1[0x74] + (ulong)local_3c;
lVar8 = local_78 - (ulong)local_3c;
lVar5 = (**(code **)(PSI_server + 0x158))(local_f0,local_94,6);
if (lVar5 == 0) {
lVar5 = my_read(local_94,local_a0,lVar8,4);
}
else {
local_a8 = lVar5;
(**(code **)(PSI_server + 0x210))
(lVar5,lVar8,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_packrec.c",0x572);
local_a0 = my_read(local_94,local_a0,lVar8,4);
lVar5 = 0;
if (local_a0 == 0) {
lVar5 = lVar8;
}
(**(code **)(PSI_server + 0x218))(local_a8,lVar5);
lVar5 = local_a0;
}
if (lVar5 == 0) {
LAB_0013b274:
param_1[0x8a] = local_78;
param_1[0x13] = param_3;
param_1[0x14] = local_58 + local_78;
*(byte *)((long)param_1 + 0x624) = *(byte *)((long)param_1 + 0x624) | 0x82;
*(int1 *)(param_1[0x74] + local_78) = 0;
uVar6 = _ma_pack_rec_unpack(param_1,param_1 + 0x52,param_2,param_1[0x74],local_78);
goto LAB_0013b1aa;
}
}
else {
cVar1 = _ma_read_cache(param_1,param_1 + 0x97,param_1[0x74],local_58,local_78,
param_4 != '\0');
if (cVar1 == '\0') goto LAB_0013b274;
}
}
}
else {
puVar3 = (int4 *)_my_thread_var();
*puVar3 = 0x89;
}
LAB_0013b1a3:
puVar4 = (uint *)_my_thread_var();
uVar6 = (ulong)*puVar4;
LAB_0013b1aa:
if (*(long *)(in_FS_OFFSET + 0x28) != local_38) {
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
return uVar6;
}
| |
44,391 | composition_destination_over | dmazzella[P]pylunasvg/lunasvg/plutovg/source/plutovg-blend.c | static void composition_destination_over(uint32_t* dest, int length, const uint32_t* src, uint32_t const_alpha)
{
if(const_alpha == 255) {
for(int i = 0; i < length; i++) {
uint32_t d = dest[i];
dest[i] = d + BYTE_MUL(src[i], plutovg_alpha(~d));
}
} else {
for(int i = 0; i < length; i++) {
uint32_t d = dest[i];
uint32_t s = BYTE_MUL(src[i], const_alpha);
dest[i] = d + BYTE_MUL(s, plutovg_alpha(~d));
}
}
} | O1 | c | composition_destination_over:
pushq %rbp
pushq %r14
pushq %rbx
cmpl $0xff, %ecx
jne 0x416a7
testl %esi, %esi
jle 0x41759
movl %esi, %eax
xorl %ecx, %ecx
movl $0xff00ff, %esi # imm = 0xFF00FF
movl $0x800080, %r8d # imm = 0x800080
movl (%rdi,%rcx,4), %r10d
movl (%rdx,%rcx,4), %r9d
movl %r10d, %ebx
notl %ebx
shrl $0x18, %ebx
movl %r9d, %r11d
andl %esi, %r11d
imull %ebx, %r11d
movl %r11d, %ebp
shrl $0x8, %ebp
andl %esi, %ebp
addl %r8d, %r11d
addl %ebp, %r11d
shrl $0x8, %r11d
andl %esi, %r11d
shrl $0x8, %r9d
andl %esi, %r9d
imull %ebx, %r9d
movl %r9d, %ebx
shrl $0x8, %ebx
andl %esi, %ebx
addl %r8d, %r9d
addl %ebx, %r9d
andl $0xff00ff00, %r9d # imm = 0xFF00FF00
addl %r10d, %r9d
addl %r11d, %r9d
movl %r9d, (%rdi,%rcx,4)
incq %rcx
cmpq %rcx, %rax
jne 0x41641
jmp 0x41759
testl %esi, %esi
jle 0x41759
movl %esi, %eax
xorl %esi, %esi
movl $0xff00ff, %r8d # imm = 0xFF00FF
movl $0x800080, %r9d # imm = 0x800080
movl (%rdi,%rsi,4), %ebx
movl (%rdx,%rsi,4), %r11d
movl %r11d, %r10d
andl %r8d, %r10d
imull %ecx, %r10d
movl %r10d, %ebp
shrl $0x8, %ebp
andl %r8d, %ebp
addl %r9d, %r10d
addl %ebp, %r10d
shrl $0x8, %r10d
andl %r8d, %r10d
shrl $0x8, %r11d
andl %r8d, %r11d
imull %ecx, %r11d
movl %r11d, %ebp
shrl $0x8, %ebp
andl %r8d, %ebp
addl %r9d, %r11d
addl %ebp, %r11d
movl %ebx, %ebp
notl %ebp
shrl $0x18, %ebp
imull %ebp, %r10d
movl %r10d, %r14d
shrl $0x8, %r14d
andl %r8d, %r14d
addl %r9d, %r10d
addl %r14d, %r10d
shrl $0x8, %r10d
andl %r8d, %r10d
shrl $0x8, %r11d
andl %r8d, %r11d
imull %ebp, %r11d
movl %r11d, %ebp
shrl $0x8, %ebp
andl %r8d, %ebp
addl %r9d, %r11d
addl %ebp, %r11d
andl $0xff00ff00, %r11d # imm = 0xFF00FF00
addl %ebx, %r10d
addl %r11d, %r10d
movl %r10d, (%rdi,%rsi,4)
incq %rsi
cmpq %rsi, %rax
jne 0x416bf
popq %rbx
popq %r14
popq %rbp
retq
| composition_destination_over:
push rbp
push r14
push rbx
cmp ecx, 0FFh
jnz short loc_416A7
test esi, esi
jle loc_41759
mov eax, esi
xor ecx, ecx
mov esi, 0FF00FFh
mov r8d, 800080h
loc_41641:
mov r10d, [rdi+rcx*4]
mov r9d, [rdx+rcx*4]
mov ebx, r10d
not ebx
shr ebx, 18h
mov r11d, r9d
and r11d, esi
imul r11d, ebx
mov ebp, r11d
shr ebp, 8
and ebp, esi
add r11d, r8d
add r11d, ebp
shr r11d, 8
and r11d, esi
shr r9d, 8
and r9d, esi
imul r9d, ebx
mov ebx, r9d
shr ebx, 8
and ebx, esi
add r9d, r8d
add r9d, ebx
and r9d, 0FF00FF00h
add r9d, r10d
add r9d, r11d
mov [rdi+rcx*4], r9d
inc rcx
cmp rax, rcx
jnz short loc_41641
jmp loc_41759
loc_416A7:
test esi, esi
jle loc_41759
mov eax, esi
xor esi, esi
mov r8d, 0FF00FFh
mov r9d, 800080h
loc_416BF:
mov ebx, [rdi+rsi*4]
mov r11d, [rdx+rsi*4]
mov r10d, r11d
and r10d, r8d
imul r10d, ecx
mov ebp, r10d
shr ebp, 8
and ebp, r8d
add r10d, r9d
add r10d, ebp
shr r10d, 8
and r10d, r8d
shr r11d, 8
and r11d, r8d
imul r11d, ecx
mov ebp, r11d
shr ebp, 8
and ebp, r8d
add r11d, r9d
add r11d, ebp
mov ebp, ebx
not ebp
shr ebp, 18h
imul r10d, ebp
mov r14d, r10d
shr r14d, 8
and r14d, r8d
add r10d, r9d
add r10d, r14d
shr r10d, 8
and r10d, r8d
shr r11d, 8
and r11d, r8d
imul r11d, ebp
mov ebp, r11d
shr ebp, 8
and ebp, r8d
add r11d, r9d
add r11d, ebp
and r11d, 0FF00FF00h
add r10d, ebx
add r10d, r11d
mov [rdi+rsi*4], r10d
inc rsi
cmp rax, rsi
jnz loc_416BF
loc_41759:
pop rbx
pop r14
pop rbp
retn
| void composition_destination_over(long long a1, int a2, long long a3, int a4)
{
long long i; // rcx
unsigned int v5; // ebx
long long v6; // rax
long long j; // rsi
unsigned int v8; // ebp
if ( a4 == 255 )
{
if ( a2 > 0 )
{
for ( i = 0LL; i != a2; ++i )
{
v5 = (unsigned int)~*(_DWORD *)(a1 + 4 * i) >> 24;
*(_DWORD *)(a1 + 4 * i) += ((((((v5 * (*(_DWORD *)(a3 + 4 * i) & 0xFF00FF)) >> 8) & 0xFF00FF)
+ v5 * (*(_DWORD *)(a3 + 4 * i) & 0xFF00FF)
+ 8388736) >> 8) & 0xFF00FF)
+ (((((v5 * ((*(_DWORD *)(a3 + 4 * i) >> 8) & 0xFF00FF)) >> 8) & 0xFF00FF)
+ v5 * ((*(_DWORD *)(a3 + 4 * i) >> 8) & 0xFF00FF)
+ 8388736) & 0xFF00FF00);
}
}
}
else if ( a2 > 0 )
{
v6 = (unsigned int)a2;
for ( j = 0LL; j != v6; ++j )
{
v8 = (unsigned int)~*(_DWORD *)(a1 + 4 * j) >> 24;
*(_DWORD *)(a1 + 4 * j) += (((((v8
* ((((((a4 * ((*(_DWORD *)(a3 + 4 * j) >> 8) & 0xFF00FFu)) >> 8) & 0xFF00FF)
+ a4 * ((*(_DWORD *)(a3 + 4 * j) >> 8) & 0xFF00FF)
+ 8388736) >> 8) & 0xFF00FF)) >> 8) & 0xFF00FF)
+ v8
* ((((((a4 * ((*(_DWORD *)(a3 + 4 * j) >> 8) & 0xFF00FFu)) >> 8) & 0xFF00FF)
+ a4 * ((*(_DWORD *)(a3 + 4 * j) >> 8) & 0xFF00FF)
+ 8388736) >> 8) & 0xFF00FF)
+ 8388736) & 0xFF00FF00)
+ ((((((v8
* ((((((a4 * (*(_DWORD *)(a3 + 4 * j) & 0xFF00FFu)) >> 8) & 0xFF00FF)
+ a4 * (*(_DWORD *)(a3 + 4 * j) & 0xFF00FF)
+ 8388736) >> 8) & 0xFF00FF)) >> 8) & 0xFF00FF)
+ v8
* ((((((a4 * (*(_DWORD *)(a3 + 4 * j) & 0xFF00FFu)) >> 8) & 0xFF00FF)
+ a4 * (*(_DWORD *)(a3 + 4 * j) & 0xFF00FF)
+ 8388736) >> 8) & 0xFF00FF)
+ 8388736) >> 8) & 0xFF00FF);
}
}
}
| composition_destination_over:
PUSH RBP
PUSH R14
PUSH RBX
CMP ECX,0xff
JNZ 0x001416a7
TEST ESI,ESI
JLE 0x00141759
MOV EAX,ESI
XOR ECX,ECX
MOV ESI,0xff00ff
MOV R8D,0x800080
LAB_00141641:
MOV R10D,dword ptr [RDI + RCX*0x4]
MOV R9D,dword ptr [RDX + RCX*0x4]
MOV EBX,R10D
NOT EBX
SHR EBX,0x18
MOV R11D,R9D
AND R11D,ESI
IMUL R11D,EBX
MOV EBP,R11D
SHR EBP,0x8
AND EBP,ESI
ADD R11D,R8D
ADD R11D,EBP
SHR R11D,0x8
AND R11D,ESI
SHR R9D,0x8
AND R9D,ESI
IMUL R9D,EBX
MOV EBX,R9D
SHR EBX,0x8
AND EBX,ESI
ADD R9D,R8D
ADD R9D,EBX
AND R9D,0xff00ff00
ADD R9D,R10D
ADD R9D,R11D
MOV dword ptr [RDI + RCX*0x4],R9D
INC RCX
CMP RAX,RCX
JNZ 0x00141641
JMP 0x00141759
LAB_001416a7:
TEST ESI,ESI
JLE 0x00141759
MOV EAX,ESI
XOR ESI,ESI
MOV R8D,0xff00ff
MOV R9D,0x800080
LAB_001416bf:
MOV EBX,dword ptr [RDI + RSI*0x4]
MOV R11D,dword ptr [RDX + RSI*0x4]
MOV R10D,R11D
AND R10D,R8D
IMUL R10D,ECX
MOV EBP,R10D
SHR EBP,0x8
AND EBP,R8D
ADD R10D,R9D
ADD R10D,EBP
SHR R10D,0x8
AND R10D,R8D
SHR R11D,0x8
AND R11D,R8D
IMUL R11D,ECX
MOV EBP,R11D
SHR EBP,0x8
AND EBP,R8D
ADD R11D,R9D
ADD R11D,EBP
MOV EBP,EBX
NOT EBP
SHR EBP,0x18
IMUL R10D,EBP
MOV R14D,R10D
SHR R14D,0x8
AND R14D,R8D
ADD R10D,R9D
ADD R10D,R14D
SHR R10D,0x8
AND R10D,R8D
SHR R11D,0x8
AND R11D,R8D
IMUL R11D,EBP
MOV EBP,R11D
SHR EBP,0x8
AND EBP,R8D
ADD R11D,R9D
ADD R11D,EBP
AND R11D,0xff00ff00
ADD R10D,EBX
ADD R10D,R11D
MOV dword ptr [RDI + RSI*0x4],R10D
INC RSI
CMP RAX,RSI
JNZ 0x001416bf
LAB_00141759:
POP RBX
POP R14
POP RBP
RET
|
void composition_destination_over(long param_1,uint param_2,long param_3,int param_4)
{
uint uVar1;
ulong uVar2;
uint uVar3;
uint uVar4;
uint uVar5;
if (param_4 == 0xff) {
if (0 < (int)param_2) {
uVar2 = 0;
do {
uVar1 = *(uint *)(param_1 + uVar2 * 4);
uVar4 = *(uint *)(param_3 + uVar2 * 4);
uVar3 = ~uVar1 >> 0x18;
uVar5 = (uVar4 & 0xff00ff) * uVar3;
uVar3 = (uVar4 >> 8 & 0xff00ff) * uVar3;
*(uint *)(param_1 + uVar2 * 4) =
(uVar3 + 0x800080 + (uVar3 >> 8 & 0xff00ff) & 0xff00ff00) + uVar1 +
(uVar5 + 0x800080 + (uVar5 >> 8 & 0xff00ff) >> 8 & 0xff00ff);
uVar2 = uVar2 + 1;
} while (param_2 != uVar2);
}
}
else if (0 < (int)param_2) {
uVar2 = 0;
do {
uVar1 = *(uint *)(param_1 + uVar2 * 4);
uVar4 = *(uint *)(param_3 + uVar2 * 4);
uVar3 = (uVar4 & 0xff00ff) * param_4;
uVar5 = (uVar4 >> 8 & 0xff00ff) * param_4;
uVar4 = ~uVar1 >> 0x18;
uVar3 = (uVar3 + 0x800080 + (uVar3 >> 8 & 0xff00ff) >> 8 & 0xff00ff) * uVar4;
uVar4 = (uVar5 + 0x800080 + (uVar5 >> 8 & 0xff00ff) >> 8 & 0xff00ff) * uVar4;
*(uint *)(param_1 + uVar2 * 4) =
(uVar3 + 0x800080 + (uVar3 >> 8 & 0xff00ff) >> 8 & 0xff00ff) + uVar1 +
(uVar4 + 0x800080 + (uVar4 >> 8 & 0xff00ff) & 0xff00ff00);
uVar2 = uVar2 + 1;
} while (param_2 != uVar2);
}
return;
}
| |
44,392 | translog_wait_for_closing | eloqsql/storage/maria/ma_loghandler.c | static void translog_wait_for_closing(struct st_translog_buffer *buffer)
{
DBUG_ENTER("translog_wait_for_closing");
DBUG_PRINT("enter", ("Buffer #%u %p copies in progress: %u "
"is closing %u File: %d size: %lu",
(uint) buffer->buffer_no, buffer,
(uint) buffer->copy_to_buffer_in_progress,
(uint) buffer->is_closing_buffer,
(buffer->file ? buffer->file->handler.file : -1),
(ulong) buffer->size));
translog_buffer_lock_assert_owner(buffer);
while (buffer->is_closing_buffer)
{
DBUG_PRINT("info", ("wait for writers... buffer: #%u %p",
(uint) buffer->buffer_no, buffer));
DBUG_ASSERT(buffer->file != NULL);
mysql_cond_wait(&buffer->waiting_filling_buffer, &buffer->mutex);
DBUG_PRINT("info", ("wait for writers done buffer: #%u %p",
(uint) buffer->buffer_no, buffer));
}
DBUG_VOID_RETURN;
} | O0 | c | translog_wait_for_closing:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
jmp 0x3aafe
jmp 0x3ab00
movq -0x8(%rbp), %rax
cmpb $0x0, 0x1000d8(%rax)
je 0x3ab40
jmp 0x3ab0f
jmp 0x3ab11
jmp 0x3ab13
jmp 0x3ab15
movq -0x8(%rbp), %rdi
addq $0x100040, %rdi # imm = 0x100040
movq -0x8(%rbp), %rsi
addq $0x100090, %rsi # imm = 0x100090
leaq 0x116b7b(%rip), %rdx # 0x1516ad
movl $0x7e6, %ecx # imm = 0x7E6
callq 0x2dec0
jmp 0x3ab3e
jmp 0x3ab00
jmp 0x3ab42
jmp 0x3ab44
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| translog_wait_for_closing:
push rbp
mov rbp, rsp
sub rsp, 10h
mov [rbp+var_8], rdi
jmp short $+2
loc_3AAFE:
jmp short $+2
loc_3AB00:
mov rax, [rbp+var_8]
cmp byte ptr ds:loc_1000D8[rax], 0
jz short loc_3AB40
jmp short $+2
loc_3AB0F:
jmp short $+2
loc_3AB11:
jmp short $+2
loc_3AB13:
jmp short $+2
loc_3AB15:
mov rdi, [rbp+var_8]
add rdi, 100040h
mov rsi, [rbp+var_8]
add rsi, 100090h
lea rdx, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/eloqsq"...
mov ecx, 7E6h
call inline_mysql_cond_wait
jmp short $+2
loc_3AB3E:
jmp short loc_3AB00
loc_3AB40:
jmp short $+2
loc_3AB42:
jmp short $+2
loc_3AB44:
add rsp, 10h
pop rbp
retn
| long long translog_wait_for_closing(long long a1)
{
long long result; // rax
while ( 1 )
{
result = a1;
if ( !*((_BYTE *)&loc_1000D8 + a1) )
break;
inline_mysql_cond_wait(
a1 + 1048640,
a1 + 1048720,
(long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",
0x7E6u);
}
return result;
}
| translog_wait_for_closing:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV qword ptr [RBP + -0x8],RDI
JMP 0x0013aafe
LAB_0013aafe:
JMP 0x0013ab00
LAB_0013ab00:
MOV RAX,qword ptr [RBP + -0x8]
CMP byte ptr [RAX + 0x1000d8],0x0
JZ 0x0013ab40
JMP 0x0013ab0f
LAB_0013ab0f:
JMP 0x0013ab11
LAB_0013ab11:
JMP 0x0013ab13
LAB_0013ab13:
JMP 0x0013ab15
LAB_0013ab15:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x100040
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0x100090
LEA RDX,[0x2516ad]
MOV ECX,0x7e6
CALL 0x0012dec0
JMP 0x0013ab3e
LAB_0013ab3e:
JMP 0x0013ab00
LAB_0013ab40:
JMP 0x0013ab42
LAB_0013ab42:
JMP 0x0013ab44
LAB_0013ab44:
ADD RSP,0x10
POP RBP
RET
|
void translog_wait_for_closing(long param_1)
{
while (*(char *)((long)&Elf64_Phdr_ARRAY_00100040[2].p_memsz + param_1) != '\0') {
inline_mysql_cond_wait
((long)&Elf64_Phdr_ARRAY_00100040[0].p_type + param_1,param_1 + 0x100090,
"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_loghandler.c",0x7e6);
}
return;
}
| |
44,393 | minja::UnaryOpExpr::UnaryOpExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, minja::UnaryOpExpr::Op) | monkey531[P]llama/common/minja.hpp | Expression(const Location & location) : location(location) {} | O1 | cpp | minja::UnaryOpExpr::UnaryOpExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, minja::UnaryOpExpr::Op):
leaq 0x7773d(%rip), %rax # 0xec528
addq $0x10, %rax
movq %rax, (%rdi)
movq (%rsi), %rax
movq %rax, 0x8(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x10(%rdi)
testq %rax, %rax
je 0x74e1c
movq 0x7918b(%rip), %r8 # 0xedf98
cmpb $0x0, (%r8)
je 0x74e18
incl 0x8(%rax)
jmp 0x74e1c
lock
incl 0x8(%rax)
movq 0x10(%rsi), %rax
movq %rax, 0x18(%rdi)
leaq 0x77c15(%rip), %rax # 0xeca40
addq $0x10, %rax
movq %rax, (%rdi)
xorl %eax, %eax
movq %rax, 0x28(%rdi)
movups (%rdx), %xmm0
movq %rax, 0x8(%rdx)
movups %xmm0, 0x20(%rdi)
movq %rax, (%rdx)
movups (%rcx), %xmm0
movups %xmm0, 0x30(%rdi)
movq 0x10(%rcx), %rdx
movq %rdx, 0x40(%rdi)
movq %rax, 0x10(%rcx)
xorps %xmm0, %xmm0
movups %xmm0, (%rcx)
movups 0x18(%rcx), %xmm1
movups %xmm1, 0x48(%rdi)
movq 0x28(%rcx), %rdx
movq %rdx, 0x58(%rdi)
movq %rax, 0x28(%rcx)
movups %xmm0, 0x18(%rcx)
retq
| _ZN5minja8CallExprC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEEONS_19ArgumentsExpressionE:
lea rax, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression
add rax, 10h
mov [rdi], rax
mov rax, [rsi]
mov [rdi+8], rax
mov rax, [rsi+8]
mov [rdi+10h], rax
test rax, rax
jz short loc_74E1C
mov r8, cs:__libc_single_threaded_ptr
cmp byte ptr [r8], 0
jz short loc_74E18
inc dword ptr [rax+8]
jmp short loc_74E1C
loc_74E18:
lock inc dword ptr [rax+8]
loc_74E1C:
mov rax, [rsi+10h]
mov [rdi+18h], rax
lea rax, _ZTVN5minja8CallExprE; `vtable for'minja::CallExpr
add rax, 10h
mov [rdi], rax
xor eax, eax
mov [rdi+28h], rax
movups xmm0, xmmword ptr [rdx]
mov [rdx+8], rax
movups xmmword ptr [rdi+20h], xmm0
mov [rdx], rax
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rdi+30h], xmm0
mov rdx, [rcx+10h]
mov [rdi+40h], rdx
mov [rcx+10h], rax
xorps xmm0, xmm0
movups xmmword ptr [rcx], xmm0
movups xmm1, xmmword ptr [rcx+18h]
movups xmmword ptr [rdi+48h], xmm1
mov rdx, [rcx+28h]
mov [rdi+58h], rdx
mov [rcx+28h], rax
movups xmmword ptr [rcx+18h], xmm0
retn
| long long minja::CallExpr::CallExpr(long long a1, _QWORD *a2, __int128 *a3, long long a4)
{
long long v4; // rax
long long result; // rax
__int128 v6; // xmm0
*(_QWORD *)a1 = &`vtable for'minja::Expression + 2;
*(_QWORD *)(a1 + 8) = *a2;
v4 = a2[1];
*(_QWORD *)(a1 + 16) = v4;
if ( v4 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v4 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v4 + 8));
}
*(_QWORD *)(a1 + 24) = a2[2];
*(_QWORD *)a1 = &`vtable for'minja::CallExpr + 2;
result = 0LL;
*(_QWORD *)(a1 + 40) = 0LL;
v6 = *a3;
*((_QWORD *)a3 + 1) = 0LL;
*(_OWORD *)(a1 + 32) = v6;
*(_QWORD *)a3 = 0LL;
*(_OWORD *)(a1 + 48) = *(_OWORD *)a4;
*(_QWORD *)(a1 + 64) = *(_QWORD *)(a4 + 16);
*(_QWORD *)(a4 + 16) = 0LL;
*(_OWORD *)a4 = 0LL;
*(_OWORD *)(a1 + 72) = *(_OWORD *)(a4 + 24);
*(_QWORD *)(a1 + 88) = *(_QWORD *)(a4 + 40);
*(_QWORD *)(a4 + 40) = 0LL;
*(_OWORD *)(a4 + 24) = 0LL;
return result;
}
| CallExpr:
LEA RAX,[0x1ec528]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI + 0x8],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x10],RAX
TEST RAX,RAX
JZ 0x00174e1c
MOV R8,qword ptr [0x001edf98]
CMP byte ptr [R8],0x0
JZ 0x00174e18
INC dword ptr [RAX + 0x8]
JMP 0x00174e1c
LAB_00174e18:
INC.LOCK dword ptr [RAX + 0x8]
LAB_00174e1c:
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RDI + 0x18],RAX
LEA RAX,[0x1eca40]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
XOR EAX,EAX
MOV qword ptr [RDI + 0x28],RAX
MOVUPS XMM0,xmmword ptr [RDX]
MOV qword ptr [RDX + 0x8],RAX
MOVUPS xmmword ptr [RDI + 0x20],XMM0
MOV qword ptr [RDX],RAX
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RDI + 0x30],XMM0
MOV RDX,qword ptr [RCX + 0x10]
MOV qword ptr [RDI + 0x40],RDX
MOV qword ptr [RCX + 0x10],RAX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RCX],XMM0
MOVUPS XMM1,xmmword ptr [RCX + 0x18]
MOVUPS xmmword ptr [RDI + 0x48],XMM1
MOV RDX,qword ptr [RCX + 0x28]
MOV qword ptr [RDI + 0x58],RDX
MOV qword ptr [RCX + 0x28],RAX
MOVUPS xmmword ptr [RCX + 0x18],XMM0
RET
|
/* 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)
{
long lVar1;
int8 uVar2;
*(int ***)this = &PTR___cxa_pure_virtual_001ec538;
*(int8 *)(this + 8) = *(int8 *)param_1;
lVar1 = *(long *)(param_1 + 8);
*(long *)(this + 0x10) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_001edf98 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
*(int8 *)(this + 0x18) = *(int8 *)(param_1 + 0x10);
*(int ***)this = &PTR_do_evaluate_001eca50;
*(int8 *)(this + 0x28) = 0;
uVar2 = *(int8 *)(param_2 + 8);
*(int8 *)(param_2 + 8) = 0;
*(int8 *)(this + 0x20) = *(int8 *)param_2;
*(int8 *)(this + 0x28) = uVar2;
*(int8 *)param_2 = 0;
uVar2 = *(int8 *)(param_3 + 8);
*(int8 *)(this + 0x30) = *(int8 *)param_3;
*(int8 *)(this + 0x38) = uVar2;
*(int8 *)(this + 0x40) = *(int8 *)(param_3 + 0x10);
*(int8 *)(param_3 + 0x10) = 0;
*(int8 *)param_3 = 0;
*(int8 *)(param_3 + 8) = 0;
uVar2 = *(int8 *)(param_3 + 0x20);
*(int8 *)(this + 0x48) = *(int8 *)(param_3 + 0x18);
*(int8 *)(this + 0x50) = uVar2;
*(int8 *)(this + 0x58) = *(int8 *)(param_3 + 0x28);
*(int8 *)(param_3 + 0x28) = 0;
*(int8 *)(param_3 + 0x18) = 0;
*(int8 *)(param_3 + 0x20) = 0;
return;
}
| |
44,394 | minja::UnaryOpExpr::UnaryOpExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, minja::UnaryOpExpr::Op) | monkey531[P]llama/common/minja.hpp | Expression(const Location & location) : location(location) {} | O3 | cpp | minja::UnaryOpExpr::UnaryOpExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, minja::UnaryOpExpr::Op):
leaq 0x75539(%rip), %rax # 0xe9528
addq $0x10, %rax
movq %rax, (%rdi)
movq (%rsi), %rax
movq %rax, 0x8(%rdi)
movq 0x8(%rsi), %rax
movq %rax, 0x10(%rdi)
testq %rax, %rax
je 0x74020
movq 0x76f87(%rip), %r9 # 0xeaf98
cmpb $0x0, (%r9)
je 0x7401c
incl 0x8(%rax)
jmp 0x74020
lock
incl 0x8(%rax)
movq 0x10(%rsi), %rax
movq %rax, 0x18(%rdi)
leaq 0x75b19(%rip), %rax # 0xe9b48
addq $0x10, %rax
movq %rax, (%rdi)
xorl %eax, %eax
movq %rax, 0x28(%rdi)
movups (%rdx), %xmm0
movq %rax, 0x8(%rdx)
movups %xmm0, 0x20(%rdi)
movq %rax, (%rdx)
movq %rax, 0x38(%rdi)
movups (%rcx), %xmm0
movq %rax, 0x8(%rcx)
movups %xmm0, 0x30(%rdi)
movq %rax, (%rcx)
movl %r8d, 0x40(%rdi)
retq
nop
| _ZN5minja12BinaryOpExprC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEES7_NS0_2OpE:
lea rax, _ZTVN5minja10ExpressionE; `vtable for'minja::Expression
add rax, 10h
mov [rdi], rax
mov rax, [rsi]
mov [rdi+8], rax
mov rax, [rsi+8]
mov [rdi+10h], rax
test rax, rax
jz short loc_74020
mov r9, cs:__libc_single_threaded_ptr
cmp byte ptr [r9], 0
jz short loc_7401C
inc dword ptr [rax+8]
jmp short loc_74020
loc_7401C:
lock inc dword ptr [rax+8]
loc_74020:
mov rax, [rsi+10h]
mov [rdi+18h], rax
lea rax, _ZTVN5minja12BinaryOpExprE; `vtable for'minja::BinaryOpExpr
add rax, 10h
mov [rdi], rax
xor eax, eax
mov [rdi+28h], rax
movups xmm0, xmmword ptr [rdx]
mov [rdx+8], rax
movups xmmword ptr [rdi+20h], xmm0
mov [rdx], rax
mov [rdi+38h], rax
movups xmm0, xmmword ptr [rcx]
mov [rcx+8], rax
movups xmmword ptr [rdi+30h], xmm0
mov [rcx], rax
mov [rdi+40h], r8d
retn
| long long minja::BinaryOpExpr::BinaryOpExpr(long long a1, _QWORD *a2, __int128 *a3, __int128 *a4, int a5)
{
long long v5; // rax
long long result; // rax
__int128 v7; // xmm0
__int128 v8; // xmm0
*(_QWORD *)a1 = &`vtable for'minja::Expression + 2;
*(_QWORD *)(a1 + 8) = *a2;
v5 = a2[1];
*(_QWORD *)(a1 + 16) = v5;
if ( v5 )
{
if ( _libc_single_threaded )
++*(_DWORD *)(v5 + 8);
else
_InterlockedIncrement((volatile signed __int32 *)(v5 + 8));
}
*(_QWORD *)(a1 + 24) = a2[2];
*(_QWORD *)a1 = &`vtable for'minja::BinaryOpExpr + 2;
result = 0LL;
*(_QWORD *)(a1 + 40) = 0LL;
v7 = *a3;
*((_QWORD *)a3 + 1) = 0LL;
*(_OWORD *)(a1 + 32) = v7;
*(_QWORD *)a3 = 0LL;
*(_QWORD *)(a1 + 56) = 0LL;
v8 = *a4;
*((_QWORD *)a4 + 1) = 0LL;
*(_OWORD *)(a1 + 48) = v8;
*(_QWORD *)a4 = 0LL;
*(_DWORD *)(a1 + 64) = a5;
return result;
}
| BinaryOpExpr:
LEA RAX,[0x1e9528]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
MOV RAX,qword ptr [RSI]
MOV qword ptr [RDI + 0x8],RAX
MOV RAX,qword ptr [RSI + 0x8]
MOV qword ptr [RDI + 0x10],RAX
TEST RAX,RAX
JZ 0x00174020
MOV R9,qword ptr [0x001eaf98]
CMP byte ptr [R9],0x0
JZ 0x0017401c
INC dword ptr [RAX + 0x8]
JMP 0x00174020
LAB_0017401c:
INC.LOCK dword ptr [RAX + 0x8]
LAB_00174020:
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RDI + 0x18],RAX
LEA RAX,[0x1e9b48]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
XOR EAX,EAX
MOV qword ptr [RDI + 0x28],RAX
MOVUPS XMM0,xmmword ptr [RDX]
MOV qword ptr [RDX + 0x8],RAX
MOVUPS xmmword ptr [RDI + 0x20],XMM0
MOV qword ptr [RDX],RAX
MOV qword ptr [RDI + 0x38],RAX
MOVUPS XMM0,xmmword ptr [RCX]
MOV qword ptr [RCX + 0x8],RAX
MOVUPS xmmword ptr [RDI + 0x30],XMM0
MOV qword ptr [RCX],RAX
MOV dword ptr [RDI + 0x40],R8D
RET
|
/* minja::BinaryOpExpr::BinaryOpExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&,
std::shared_ptr<minja::Expression>&&, minja::BinaryOpExpr::Op) */
void __thiscall
minja::BinaryOpExpr::BinaryOpExpr
(BinaryOpExpr *this,int8 *param_1,int8 *param_2,int8 *param_3,
int4 param_5)
{
long lVar1;
int8 uVar2;
*(int ***)this = &PTR___cxa_pure_virtual_001e9538;
*(int8 *)(this + 8) = *param_1;
lVar1 = param_1[1];
*(long *)(this + 0x10) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_001eaf98 == '\0') {
LOCK();
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
UNLOCK();
}
else {
*(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1;
}
}
*(int8 *)(this + 0x18) = param_1[2];
*(int ***)this = &PTR_do_evaluate_001e9b58;
*(int8 *)(this + 0x28) = 0;
uVar2 = param_2[1];
param_2[1] = 0;
*(int8 *)(this + 0x20) = *param_2;
*(int8 *)(this + 0x28) = uVar2;
*param_2 = 0;
*(int8 *)(this + 0x38) = 0;
uVar2 = param_3[1];
param_3[1] = 0;
*(int8 *)(this + 0x30) = *param_3;
*(int8 *)(this + 0x38) = uVar2;
*param_3 = 0;
*(int4 *)(this + 0x40) = param_5;
return;
}
| |
44,395 | codegen_context_init | tsotchke[P]eshkol/src/backend/codegen/context.c | bool codegen_context_init(CodegenContext* context, Arena* arena, TypeInferenceContext* type_context, const char* output_file) {
assert(context != NULL);
assert(arena != NULL);
// Initialize context
context->arena = arena;
context->type_context = type_context;
context->indent_level = 0;
context->in_function = false;
context->temp_dir = NULL;
context->q_head = 0;
context->q_tail = 0;
// Create binding system if not already created
if (!context->binding_system) {
context->binding_system = binding_system_create(arena, context->diagnostics);
if (!context->binding_system) {
diagnostic_error(context->diagnostics, 0, 0, "Failed to create binding system");
return false;
}
}
// Open output file
if (output_file != NULL) {
context->output = fopen(output_file, "w");
if (!context->output) {
return false;
}
} else {
context->output = stdout;
}
return true;
} | O0 | c | codegen_context_init:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x114f1
jmp 0x11510
leaq 0x158a3(%rip), %rdi # 0x26d9b
leaq 0x186f1(%rip), %rsi # 0x29bf0
movl $0x42, %edx
leaq 0x187ce(%rip), %rcx # 0x29cd9
callq 0x2160
cmpq $0x0, -0x18(%rbp)
je 0x11519
jmp 0x11538
leaq 0x153e5(%rip), %rdi # 0x26905
leaq 0x186c9(%rip), %rsi # 0x29bf0
movl $0x43, %edx
leaq 0x187a6(%rip), %rcx # 0x29cd9
callq 0x2160
movq -0x18(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
movq -0x20(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
movl $0x0, 0x28(%rax)
movq -0x10(%rbp), %rax
movb $0x0, 0x2c(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x30(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x2038(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x2040(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x18(%rax)
jne 0x115de
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0xa9a0
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x18(%rax)
jne 0x115dc
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rdi
xorl %edx, %edx
leaq 0x186ea(%rip), %rcx # 0x29cb9
movl %edx, %esi
callq 0x4840
movb $0x0, -0x1(%rbp)
jmp 0x11629
jmp 0x115de
cmpq $0x0, -0x28(%rbp)
je 0x11613
movq -0x28(%rbp), %rdi
leaq 0x18745(%rip), %rsi # 0x29d35
callq 0x2230
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x20(%rax)
jne 0x11611
movb $0x0, -0x1(%rbp)
jmp 0x11629
jmp 0x11625
movq 0x229be(%rip), %rax # 0x33fd8
movq (%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x20(%rax)
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| codegen_context_init:
push rbp
mov rbp, rsp
sub rsp, 30h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
cmp [rbp+var_10], 0
jz short loc_114F1
jmp short loc_11510
loc_114F1:
lea rdi, aContextNull; "context != NULL"
lea rsi, aWorkspaceLlm4b_10; "/workspace/llm4binary/github/2025_star3"...
mov edx, 42h ; 'B'
lea rcx, aBoolCodegenCon; "_Bool codegen_context_init(CodegenConte"...
call ___assert_fail
loc_11510:
cmp [rbp+var_18], 0
jz short loc_11519
jmp short loc_11538
loc_11519:
lea rdi, aArenaNull; "arena != NULL"
lea rsi, aWorkspaceLlm4b_10; "/workspace/llm4binary/github/2025_star3"...
mov edx, 43h ; 'C'
lea rcx, aBoolCodegenCon; "_Bool codegen_context_init(CodegenConte"...
call ___assert_fail
loc_11538:
mov rcx, [rbp+var_18]
mov rax, [rbp+var_10]
mov [rax], rcx
mov rcx, [rbp+var_20]
mov rax, [rbp+var_10]
mov [rax+10h], rcx
mov rax, [rbp+var_10]
mov dword ptr [rax+28h], 0
mov rax, [rbp+var_10]
mov byte ptr [rax+2Ch], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+30h], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+2038h], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+2040h], 0
mov rax, [rbp+var_10]
cmp qword ptr [rax+18h], 0
jnz short loc_115DE
mov rdi, [rbp+var_18]
mov rax, [rbp+var_10]
mov rsi, [rax+8]
call binding_system_create
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+18h], rcx
mov rax, [rbp+var_10]
cmp qword ptr [rax+18h], 0
jnz short loc_115DC
mov rax, [rbp+var_10]
mov rdi, [rax+8]
xor edx, edx
lea rcx, aFailedToCreate_13; "Failed to create binding system"
mov esi, edx
call diagnostic_error
mov [rbp+var_1], 0
jmp short loc_11629
loc_115DC:
jmp short $+2
loc_115DE:
cmp [rbp+var_28], 0
jz short loc_11613
mov rdi, [rbp+var_28]
lea rsi, aW; "w"
call _fopen
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+20h], rcx
mov rax, [rbp+var_10]
cmp qword ptr [rax+20h], 0
jnz short loc_11611
mov [rbp+var_1], 0
jmp short loc_11629
loc_11611:
jmp short loc_11625
loc_11613:
mov rax, cs:stdout_ptr
mov rcx, [rax]
mov rax, [rbp+var_10]
mov [rax+20h], rcx
loc_11625:
mov [rbp+var_1], 1
loc_11629:
mov al, [rbp+var_1]
and al, 1
add rsp, 30h
pop rbp
retn
| char codegen_context_init(long long a1, long long a2, long long a3, long long a4)
{
if ( !a1 )
__assert_fail(
"context != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/context.c",
66LL,
"_Bool codegen_context_init(CodegenContext *, Arena *, TypeInferenceContext *, const char *)");
if ( !a2 )
__assert_fail(
"arena != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/context.c",
67LL,
"_Bool codegen_context_init(CodegenContext *, Arena *, TypeInferenceContext *, const char *)");
*(_QWORD *)a1 = a2;
*(_QWORD *)(a1 + 16) = a3;
*(_DWORD *)(a1 + 40) = 0;
*(_BYTE *)(a1 + 44) = 0;
*(_QWORD *)(a1 + 48) = 0LL;
*(_QWORD *)(a1 + 8248) = 0LL;
*(_QWORD *)(a1 + 8256) = 0LL;
if ( *(_QWORD *)(a1 + 24) || (*(_QWORD *)(a1 + 24) = binding_system_create(a2, *(_QWORD *)(a1 + 8))) != 0LL )
{
if ( a4 )
{
*(_QWORD *)(a1 + 32) = fopen(a4, "w");
if ( !*(_QWORD *)(a1 + 32) )
return 0;
}
else
{
*(_QWORD *)(a1 + 32) = stdout;
}
return 1;
}
diagnostic_error(*(long long **)(a1 + 8), 0, 0, (long long)"Failed to create binding system");
return 0;
}
| codegen_context_init:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x30
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
CMP qword ptr [RBP + -0x10],0x0
JZ 0x001114f1
JMP 0x00111510
LAB_001114f1:
LEA RDI,[0x126d9b]
LEA RSI,[0x129bf0]
MOV EDX,0x42
LEA RCX,[0x129cd9]
CALL 0x00102160
LAB_00111510:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x00111519
JMP 0x00111538
LAB_00111519:
LEA RDI,[0x126905]
LEA RSI,[0x129bf0]
MOV EDX,0x43
LEA RCX,[0x129cd9]
CALL 0x00102160
LAB_00111538:
MOV RCX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX],RCX
MOV RCX,qword ptr [RBP + -0x20]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x28],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV byte ptr [RAX + 0x2c],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x30],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x2038],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x2040],0x0
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x18],0x0
JNZ 0x001115de
MOV RDI,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RAX + 0x8]
CALL 0x0010a9a0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],RCX
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x18],0x0
JNZ 0x001115dc
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x8]
XOR EDX,EDX
LEA RCX,[0x129cb9]
MOV ESI,EDX
CALL 0x00104840
MOV byte ptr [RBP + -0x1],0x0
JMP 0x00111629
LAB_001115dc:
JMP 0x001115de
LAB_001115de:
CMP qword ptr [RBP + -0x28],0x0
JZ 0x00111613
MOV RDI,qword ptr [RBP + -0x28]
LEA RSI,[0x129d35]
CALL 0x00102230
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x20],RCX
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x20],0x0
JNZ 0x00111611
MOV byte ptr [RBP + -0x1],0x0
JMP 0x00111629
LAB_00111611:
JMP 0x00111625
LAB_00111613:
MOV RAX,qword ptr [0x00133fd8]
MOV RCX,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x20],RCX
LAB_00111625:
MOV byte ptr [RBP + -0x1],0x1
LAB_00111629:
MOV AL,byte ptr [RBP + -0x1]
AND AL,0x1
ADD RSP,0x30
POP RBP
RET
|
int1 codegen_context_init(long *param_1,long param_2,long param_3,char *param_4)
{
long lVar1;
FILE *pFVar2;
if (param_1 == (long *)0x0) {
/* WARNING: Subroutine does not return */
__assert_fail("context != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/context.c"
,0x42,
"_Bool codegen_context_init(CodegenContext *, Arena *, TypeInferenceContext *, const char *)"
);
}
if (param_2 != 0) {
*param_1 = param_2;
param_1[2] = param_3;
*(int4 *)(param_1 + 5) = 0;
*(int1 *)((long)param_1 + 0x2c) = 0;
param_1[6] = 0;
param_1[0x407] = 0;
param_1[0x408] = 0;
if (param_1[3] == 0) {
lVar1 = binding_system_create(param_2,param_1[1]);
param_1[3] = lVar1;
if (param_1[3] == 0) {
diagnostic_error(param_1[1],0,0,"Failed to create binding system");
return 0;
}
}
if (param_4 == (char *)0x0) {
param_1[4] = *(long *)PTR_stdout_00133fd8;
}
else {
pFVar2 = fopen(param_4,"w");
param_1[4] = (long)pFVar2;
if (param_1[4] == 0) {
return 0;
}
}
return 1;
}
/* WARNING: Subroutine does not return */
__assert_fail("arena != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/backend/codegen/context.c"
,0x43,
"_Bool codegen_context_init(CodegenContext *, Arena *, TypeInferenceContext *, const char *)"
);
}
| |
44,396 | Tensor::softmax() | deependujha[P]DeepTensor/csrc/tensor.h | std::shared_ptr<Tensor> softmax() {
// Step 1: Find the maximum value for numerical stability
auto max_val = *std::max_element(
this->v.begin(),
this->v.end(),
[](const std::shared_ptr<Value>& a, const std::shared_ptr<Value>& b) {
return a->data < b->data;
});
// Step 2: Compute exp(x_i - max_val) for each input
std::shared_ptr<Tensor> exp_vals = std::make_shared<Tensor>(this->shape);
int i = 0;
for (auto& val : this->v) {
auto curr_exp_val = val->sub(max_val)->exp();
exp_vals->set(i, curr_exp_val);
i++;
}
// Step 3: Compute the sum of exp(x_i - max_val)
std::shared_ptr<Value> sum_exp = std::make_shared<Value>(0.0);
for (int i = 0; i <= exp_vals->maxIdx; i++) {
sum_exp = sum_exp->add(exp_vals->get(i));
}
// Step 4: Compute softmax = exp(x_i - max_val) / sum_exp
std::shared_ptr<Tensor> softmax_vals =
std::make_shared<Tensor>(this->shape);
for (int i = 0; i <= softmax_vals->maxIdx; i++) {
softmax_vals->set(i, exp_vals->get(i)->div(sum_exp));
}
return softmax_vals;
} | O1 | c | Tensor::softmax():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %r14
movq %rdi, %r15
movq 0x40(%rsi), %rdx
movq 0x48(%rsi), %rax
cmpq %rax, %rdx
sete %sil
movq %rdx, %rcx
addq $0x10, %rcx
cmpq %rax, %rcx
sete %dil
orb %sil, %dil
je 0x18196
movq %rdx, %rsi
jmp 0x181ba
movq (%rdx), %rsi
movq (%rcx), %rdi
movsd 0x30(%rdi), %xmm0
ucomisd 0x30(%rsi), %xmm0
movq %rcx, %rsi
ja 0x181ae
movq %rdx, %rsi
addq $0x10, %rcx
movq %rsi, %rdx
cmpq %rax, %rcx
jne 0x18196
movq (%rsi), %r12
movq 0x8(%rsi), %rbx
testq %rbx, %rbx
je 0x181db
movq 0x5edd3(%rip), %rax # 0x76fa0
cmpb $0x0, (%rax)
je 0x181d7
incl 0x8(%rbx)
jmp 0x181db
lock
incl 0x8(%rbx)
leaq 0x10(%r14), %rdx
leaq 0x40(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq %rdx, 0x80(%rsp)
callq 0x18adc
movq %r15, 0x38(%rsp)
movq 0x40(%r14), %r13
movq 0x48(%r14), %r15
cmpq %r15, %r13
je 0x182d9
xorl %ebp, %ebp
movq 0x5ed8b(%rip), %r14 # 0x76fa0
movq (%r13), %rsi
movq %r12, 0x70(%rsp)
movq %rbx, 0x78(%rsp)
testq %rbx, %rbx
je 0x18237
cmpb $0x0, (%r14)
je 0x18233
incl 0x8(%rbx)
jmp 0x18237
lock
incl 0x8(%rbx)
leaq 0x10(%rsp), %rdi
leaq 0x70(%rsp), %rdx
callq 0x21c3a
movq 0x10(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x23022
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x18264
callq 0x12b0c
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x18273
callq 0x12b0c
movq 0x40(%rsp), %rdi
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %rax
movq %rcx, 0x60(%rsp)
movq %rax, 0x68(%rsp)
testq %rax, %rax
je 0x182a0
cmpb $0x0, (%r14)
je 0x1829c
incl 0x8(%rax)
jmp 0x182a0
lock
incl 0x8(%rax)
movl %ebp, %esi
leaq 0x60(%rsp), %rdx
callq 0x174e0
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x182bb
callq 0x12b0c
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x182ca
callq 0x12b0c
addq $0x10, %r13
incl %ebp
cmpq %r15, %r13
jne 0x18215
leaq 0x10(%rsp), %rdx
movq $0x0, (%rdx)
leaq 0x28(%rsp), %rdi
leaq 0xf(%rsp), %rsi
callq 0x12d0c
movq 0x40(%rsp), %rsi
cmpl $0x0, 0x58(%rsi)
js 0x1837e
movl $0xffffffff, %ebp # imm = 0xFFFFFFFF
leaq 0x98(%rsp), %r14
leaq 0x10(%rsp), %r15
incl %ebp
movq 0x28(%rsp), %r12
movq %r14, %rdi
movl %ebp, %edx
callq 0x17a16
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x21770
movapd 0x10(%rsp), %xmm0
xorps %xmm1, %xmm1
movaps %xmm1, 0x10(%rsp)
movq 0x30(%rsp), %rdi
movupd %xmm0, 0x28(%rsp)
testq %rdi, %rdi
je 0x18353
callq 0x12b0c
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x18362
callq 0x12b0c
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0x18374
callq 0x12b0c
movq 0x40(%rsp), %rsi
cmpl 0x58(%rsi), %ebp
jl 0x18311
leaq 0x10(%rsp), %rsi
movq 0x38(%rsp), %r14
movq %r14, %rdi
movq 0x80(%rsp), %rdx
callq 0x18adc
movq (%r14), %r13
cmpl $0x0, 0x58(%r13)
js 0x1845b
movl $0xffffffff, %ebp # imm = 0xFFFFFFFF
leaq 0x10(%rsp), %r14
leaq 0x88(%rsp), %r15
leaq 0x50(%rsp), %r12
incl %ebp
movq 0x40(%rsp), %rsi
movq %r14, %rdi
movl %ebp, %edx
callq 0x17a16
movq 0x10(%rsp), %rsi
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %rax
movq %rcx, 0x50(%rsp)
movq %rax, 0x58(%rsp)
testq %rax, %rax
je 0x18401
movq 0x5ebad(%rip), %rcx # 0x76fa0
cmpb $0x0, (%rcx)
je 0x183fd
incl 0x8(%rax)
jmp 0x18401
lock
incl 0x8(%rax)
movq %r15, %rdi
movq %r12, %rdx
callq 0x225f6
movq %r13, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x174e0
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x1842b
callq 0x12b0c
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x1843a
callq 0x12b0c
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x18449
callq 0x12b0c
movq 0x38(%rsp), %rax
movq (%rax), %r13
cmpl 0x58(%r13), %ebp
jl 0x183bd
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x1846a
callq 0x12b0c
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
movq 0x38(%rsp), %r14
je 0x1847e
callq 0x12b0c
testq %rbx, %rbx
je 0x1848b
movq %rbx, %rdi
callq 0x12b0c
movq %r14, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x184fa
movq %rax, %r15
jmp 0x1854b
movq %rax, %r15
jmp 0x1855a
movq %rax, %r15
jmp 0x184ef
movq %rax, %r15
jmp 0x184d1
movq %rax, %r15
movq 0x90(%rsp), %rdi
testq %rdi, %rdi
je 0x184d1
callq 0x12b0c
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x184e0
callq 0x12b0c
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x184ef
callq 0x12b0c
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdi
jmp 0x18532
movq %rax, %r15
jmp 0x1853c
movq %rax, %r15
movq 0xa0(%rsp), %rdi
jmp 0x18532
movq %rax, %r15
jmp 0x18523
movq %rax, %r15
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x18523
callq 0x12b0c
movq 0x78(%rsp), %rdi
jmp 0x18541
movq %rax, %r15
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x1853c
callq 0x12b0c
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x1854b
callq 0x12b0c
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x1855a
callq 0x12b0c
testq %rbx, %rbx
je 0x18567
movq %rbx, %rdi
callq 0x12b0c
movq %r15, %rdi
callq 0xb9e0
| _ZN6Tensor7softmaxEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0A8h
mov r14, rsi
mov r15, rdi
mov rdx, [rsi+40h]
mov rax, [rsi+48h]
cmp rdx, rax
setz sil
mov rcx, rdx
add rcx, 10h
cmp rcx, rax
setz dil
or dil, sil
jz short loc_18196
mov rsi, rdx
jmp short loc_181BA
loc_18196:
mov rsi, [rdx]
mov rdi, [rcx]
movsd xmm0, qword ptr [rdi+30h]
ucomisd xmm0, qword ptr [rsi+30h]
mov rsi, rcx
ja short loc_181AE
mov rsi, rdx
loc_181AE:
add rcx, 10h
mov rdx, rsi
cmp rcx, rax
jnz short loc_18196
loc_181BA:
mov r12, [rsi]
mov rbx, [rsi+8]
test rbx, rbx
jz short loc_181DB
mov rax, cs:__libc_single_threaded_ptr
cmp byte ptr [rax], 0
jz short loc_181D7
inc dword ptr [rbx+8]
jmp short loc_181DB
loc_181D7:
lock inc dword ptr [rbx+8]
loc_181DB:
lea rdx, [r14+10h]
lea rdi, [rsp+0D8h+var_98]
lea rsi, [rsp+0D8h+var_B0]
mov [rsp+0D8h+var_58], rdx
call _ZNSt12__shared_ptrI6TensorLN9__gnu_cxx12_Lock_policyE2EEC2ISaIS0_EJRSt6vectorIiSaIiEEEEESt20_Sp_alloc_shared_tagIT_EDpOT0_; std::__shared_ptr<Tensor,(__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<Tensor>,std::vector<int> &>(std::_Sp_alloc_shared_tag<std::allocator<Tensor>>,std::vector<int> &)
mov [rsp+0D8h+var_A0], r15
mov r13, [r14+40h]
mov r15, [r14+48h]
cmp r13, r15
jz loc_182D9
xor ebp, ebp
mov r14, cs:__libc_single_threaded_ptr
loc_18215:
mov rsi, [r13+0]
mov [rsp+0D8h+var_68], r12
mov [rsp+0D8h+var_60], rbx
test rbx, rbx
jz short loc_18237
cmp byte ptr [r14], 0
jz short loc_18233
inc dword ptr [rbx+8]
jmp short loc_18237
loc_18233:
lock inc dword ptr [rbx+8]
loc_18237:
lea rdi, [rsp+0D8h+var_C8]
lea rdx, [rsp+0D8h+var_68]
call _ZN5Value3subESt10shared_ptrIS_E; Value::sub(std::shared_ptr<Value>)
mov rsi, qword ptr [rsp+0D8h+var_C8]
lea rdi, [rsp+0D8h+var_B0]; this
call _ZN5Value3expEv; Value::exp(void)
mov rdi, qword ptr [rsp+0D8h+var_C8+8]
test rdi, rdi
jz short loc_18264
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_18264:
mov rdi, [rsp+0D8h+var_60]
test rdi, rdi
jz short loc_18273
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_18273:
mov rdi, qword ptr [rsp+0D8h+var_98]
mov rcx, qword ptr [rsp+0D8h+var_B0]
mov rax, qword ptr [rsp+0D8h+var_B0+8]
mov [rsp+0D8h+var_78], rcx
mov [rsp+0D8h+var_70], rax
test rax, rax
jz short loc_182A0
cmp byte ptr [r14], 0
jz short loc_1829C
inc dword ptr [rax+8]
jmp short loc_182A0
loc_1829C:
lock inc dword ptr [rax+8]
loc_182A0:
mov esi, ebp
lea rdx, [rsp+0D8h+var_78]
call _ZN6Tensor3setEiSt10shared_ptrI5ValueE; Tensor::set(int,std::shared_ptr<Value>)
mov rdi, [rsp+0D8h+var_70]
test rdi, rdi
jz short loc_182BB
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_182BB:
mov rdi, qword ptr [rsp+0D8h+var_B0+8]
test rdi, rdi
jz short loc_182CA
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_182CA:
add r13, 10h
inc ebp
cmp r13, r15
jnz loc_18215
loc_182D9:
lea rdx, [rsp+0D8h+var_C8]
mov qword ptr [rdx], 0
lea rdi, [rsp+0D8h+var_B0]
lea rsi, [rsp+0D8h+var_C9]
call _ZNSt12__shared_ptrI5ValueLN9__gnu_cxx12_Lock_policyE2EEC2ISaIS0_EJdEEESt20_Sp_alloc_shared_tagIT_EDpOT0_; std::__shared_ptr<Value,(__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<Value>,double>(std::_Sp_alloc_shared_tag<std::allocator<Value>>,double &&)
mov rsi, qword ptr [rsp+0D8h+var_98]; int
cmp dword ptr [rsi+58h], 0
js short loc_1837E
mov ebp, 0FFFFFFFFh
lea r14, [rsp+0D8h+var_40]
lea r15, [rsp+0D8h+var_C8]
loc_18311:
inc ebp
mov r12, qword ptr [rsp+0D8h+var_B0]
mov rdi, r14; this
mov edx, ebp
call _ZN6Tensor3getEi; Tensor::get(int)
mov rdi, r15
mov rsi, r12
mov rdx, r14
call _ZN5Value3addESt10shared_ptrIS_E; Value::add(std::shared_ptr<Value>)
movapd xmm0, [rsp+0D8h+var_C8]
xorps xmm1, xmm1
movaps [rsp+0D8h+var_C8], xmm1
mov rdi, qword ptr [rsp+0D8h+var_B0+8]
movupd [rsp+0D8h+var_B0], xmm0
test rdi, rdi
jz short loc_18353
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_18353:
mov rdi, qword ptr [rsp+0D8h+var_C8+8]
test rdi, rdi
jz short loc_18362
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_18362:
mov rdi, [rsp+0D8h+var_38]
test rdi, rdi
jz short loc_18374
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_18374:
mov rsi, qword ptr [rsp+0D8h+var_98]
cmp ebp, [rsi+58h]
jl short loc_18311
loc_1837E:
lea rsi, [rsp+0D8h+var_C8]
mov r14, [rsp+0D8h+var_A0]
mov rdi, r14
mov rdx, [rsp+0D8h+var_58]
call _ZNSt12__shared_ptrI6TensorLN9__gnu_cxx12_Lock_policyE2EEC2ISaIS0_EJRSt6vectorIiSaIiEEEEESt20_Sp_alloc_shared_tagIT_EDpOT0_; std::__shared_ptr<Tensor,(__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<Tensor>,std::vector<int> &>(std::_Sp_alloc_shared_tag<std::allocator<Tensor>>,std::vector<int> &)
mov r13, [r14]
cmp dword ptr [r13+58h], 0
js loc_1845B
mov ebp, 0FFFFFFFFh
lea r14, [rsp+0D8h+var_C8]
lea r15, [rsp+0D8h+var_50]
lea r12, [rsp+0D8h+var_88]
loc_183BD:
inc ebp
mov rsi, qword ptr [rsp+0D8h+var_98]; int
mov rdi, r14; this
mov edx, ebp
call _ZN6Tensor3getEi; Tensor::get(int)
mov rsi, qword ptr [rsp+0D8h+var_C8]
mov rcx, qword ptr [rsp+0D8h+var_B0]
mov rax, qword ptr [rsp+0D8h+var_B0+8]
mov [rsp+0D8h+var_88], rcx
mov [rsp+0D8h+var_80], rax
test rax, rax
jz short loc_18401
mov rcx, cs:__libc_single_threaded_ptr
cmp byte ptr [rcx], 0
jz short loc_183FD
inc dword ptr [rax+8]
jmp short loc_18401
loc_183FD:
lock inc dword ptr [rax+8]
loc_18401:
mov rdi, r15
mov rdx, r12
call _ZN5Value3divESt10shared_ptrIS_E; Value::div(std::shared_ptr<Value>)
mov rdi, r13
mov esi, ebp
mov rdx, r15
call _ZN6Tensor3setEiSt10shared_ptrI5ValueE; Tensor::set(int,std::shared_ptr<Value>)
mov rdi, [rsp+0D8h+var_48]
test rdi, rdi
jz short loc_1842B
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_1842B:
mov rdi, [rsp+0D8h+var_80]
test rdi, rdi
jz short loc_1843A
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_1843A:
mov rdi, qword ptr [rsp+0D8h+var_C8+8]
test rdi, rdi
jz short loc_18449
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_18449:
mov rax, [rsp+0D8h+var_A0]
mov r13, [rax]
cmp ebp, [r13+58h]
jl loc_183BD
loc_1845B:
mov rdi, qword ptr [rsp+0D8h+var_B0+8]
test rdi, rdi
jz short loc_1846A
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_1846A:
mov rdi, [rsp+0D8h+var_90]
test rdi, rdi
mov r14, [rsp+0D8h+var_A0]
jz short loc_1847E
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_1847E:
test rbx, rbx
jz short loc_1848B
mov rdi, rbx
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_1848B:
mov rax, r14
add rsp, 0A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_184FA
mov r15, rax
jmp loc_1854B
mov r15, rax
jmp loc_1855A
mov r15, rax
jmp short loc_184EF
mov r15, rax
jmp short loc_184D1
mov r15, rax
mov rdi, [rsp+arg_88]
test rdi, rdi
jz short loc_184D1
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_184D1:
mov rdi, [rsp+arg_50]
test rdi, rdi
jz short loc_184E0
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_184E0:
mov rdi, [rsp+arg_10]
test rdi, rdi
jz short loc_184EF
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_184EF:
mov rax, [rsp+arg_30]
mov rdi, [rax+8]
jmp short loc_18532
loc_184FA:
mov r15, rax
jmp short loc_1853C
mov r15, rax
mov rdi, [rsp+arg_98]
jmp short loc_18532
mov r15, rax
jmp short loc_18523
mov r15, rax
mov rdi, [rsp+arg_10]
test rdi, rdi
jz short loc_18523
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_18523:
mov rdi, [rsp+arg_70]
jmp short loc_18541
mov r15, rax
mov rdi, [rsp+arg_60]
loc_18532:
test rdi, rdi
jz short loc_1853C
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_1853C:
mov rdi, [rsp+arg_28]
loc_18541:
test rdi, rdi
jz short loc_1854B
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_1854B:
mov rdi, [rsp+arg_40]
test rdi, rdi
jz short loc_1855A
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_1855A:
test rbx, rbx
jz short loc_18567
mov rdi, rbx
call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void)
loc_18567:
mov rdi, r15
call __Unwind_Resume
| Tensor * Tensor::softmax(Tensor *this, long long a2)
{
_QWORD *v3; // rdx
_QWORD *v4; // rax
_QWORD *v5; // rcx
_QWORD *v6; // rsi
long long v7; // r12
volatile signed __int32 *v8; // rbx
long long *v9; // r13
long long *v10; // r15
int v11; // ebp
long long v12; // rsi
long long v13; // rdi
long long v14; // rsi
int v15; // ebp
long long v16; // r12
__int128 v17; // xmm0
volatile signed __int32 *v18; // rdi
long long *v19; // r14
long long v20; // r13
int v21; // ebp
long long v22; // rsi
Tensor *v23; // r14
char v25; // [rsp+Fh] [rbp-C9h] BYREF
__int128 v26; // [rsp+10h] [rbp-C8h] BYREF
__int128 v27; // [rsp+28h] [rbp-B0h] BYREF
Tensor *v28; // [rsp+38h] [rbp-A0h]
int v29[2]; // [rsp+40h] [rbp-98h] BYREF
volatile signed __int32 *v30; // [rsp+48h] [rbp-90h]
__int128 v31; // [rsp+50h] [rbp-88h] BYREF
__int128 v32; // [rsp+60h] [rbp-78h] BYREF
long long v33; // [rsp+70h] [rbp-68h] BYREF
volatile signed __int32 *v34; // [rsp+78h] [rbp-60h]
long long v35; // [rsp+80h] [rbp-58h]
long long v36; // [rsp+88h] [rbp-50h] BYREF
volatile signed __int32 *v37; // [rsp+90h] [rbp-48h]
char v38[8]; // [rsp+98h] [rbp-40h] BYREF
volatile signed __int32 *v39; // [rsp+A0h] [rbp-38h]
v3 = *(_QWORD **)(a2 + 64);
v4 = *(_QWORD **)(a2 + 72);
v5 = v3 + 2;
if ( v3 == v4 || v3 + 2 == v4 )
{
v6 = *(_QWORD **)(a2 + 64);
}
else
{
do
{
v6 = v5;
if ( *(double *)(*v5 + 48LL) <= *(double *)(*v3 + 48LL) )
v6 = v3;
v5 += 2;
v3 = v6;
}
while ( v5 != v4 );
}
v7 = *v6;
v8 = (volatile signed __int32 *)v6[1];
if ( v8 )
{
if ( _libc_single_threaded )
++*((_DWORD *)v8 + 2);
else
_InterlockedIncrement(v8 + 2);
}
v35 = a2 + 16;
std::__shared_ptr<Tensor,(__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<Tensor>,std::vector<int> &>(
v29,
&v27,
a2 + 16);
v28 = this;
v9 = *(long long **)(a2 + 64);
v10 = *(long long **)(a2 + 72);
if ( v9 != v10 )
{
v11 = 0;
do
{
v12 = *v9;
v33 = v7;
v34 = v8;
if ( v8 )
{
if ( _libc_single_threaded )
++*((_DWORD *)v8 + 2);
else
_InterlockedIncrement(v8 + 2);
}
Value::sub(&v26, v12, &v33);
Value::exp((Value *)&v27);
if ( *((_QWORD *)&v26 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v26 + 1));
if ( v34 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v34);
v13 = *(_QWORD *)v29;
v32 = v27;
if ( *((_QWORD *)&v27 + 1) )
{
if ( _libc_single_threaded )
++*(_DWORD *)(*((_QWORD *)&v27 + 1) + 8LL);
else
_InterlockedIncrement((volatile signed __int32 *)(*((_QWORD *)&v27 + 1) + 8LL));
}
Tensor::set(v13, v11, &v32);
if ( *((_QWORD *)&v32 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v32 + 1));
if ( *((_QWORD *)&v27 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v27 + 1));
v9 += 2;
++v11;
}
while ( v9 != v10 );
}
*(_QWORD *)&v26 = 0LL;
std::__shared_ptr<Value,(__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<Value>,double>(
&v27,
(long long)&v25,
(long long *)&v26);
v14 = *(_QWORD *)v29;
if ( *(int *)(*(_QWORD *)v29 + 88LL) >= 0 )
{
v15 = -1;
do
{
++v15;
v16 = v27;
Tensor::get((Tensor *)v38, v14, v15);
Value::add(&v26, v16, v38);
v17 = v26;
v26 = 0LL;
v18 = (volatile signed __int32 *)*((_QWORD *)&v27 + 1);
v27 = v17;
if ( v18 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v18);
if ( *((_QWORD *)&v26 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v26 + 1));
if ( v39 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v39);
v14 = *(_QWORD *)v29;
}
while ( v15 < *(_DWORD *)(*(_QWORD *)v29 + 88LL) );
}
v19 = (long long *)v28;
std::__shared_ptr<Tensor,(__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<Tensor>,std::vector<int> &>(
v28,
&v26,
v35);
v20 = *v19;
if ( *(int *)(*v19 + 88) >= 0 )
{
v21 = -1;
do
{
Tensor::get((Tensor *)&v26, *(long long *)v29, ++v21);
v22 = v26;
v31 = v27;
if ( *((_QWORD *)&v27 + 1) )
{
if ( _libc_single_threaded )
++*(_DWORD *)(*((_QWORD *)&v27 + 1) + 8LL);
else
_InterlockedIncrement((volatile signed __int32 *)(*((_QWORD *)&v27 + 1) + 8LL));
}
Value::div(&v36, v22, &v31);
Tensor::set(v20, v21, &v36);
if ( v37 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v37);
if ( *((_QWORD *)&v31 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v31 + 1));
if ( *((_QWORD *)&v26 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v26 + 1));
v20 = *(_QWORD *)v28;
}
while ( v21 < *(_DWORD *)(*(_QWORD *)v28 + 88LL) );
}
if ( *((_QWORD *)&v27 + 1) )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(*((volatile signed __int32 **)&v27 + 1));
v23 = v28;
if ( v30 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v30);
if ( v8 )
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v8);
return v23;
}
| softmax:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xa8
MOV R14,RSI
MOV R15,RDI
MOV RDX,qword ptr [RSI + 0x40]
MOV RAX,qword ptr [RSI + 0x48]
CMP RDX,RAX
SETZ SIL
MOV RCX,RDX
ADD RCX,0x10
CMP RCX,RAX
SETZ DIL
OR DIL,SIL
JZ 0x00118196
MOV RSI,RDX
JMP 0x001181ba
LAB_00118196:
MOV RSI,qword ptr [RDX]
MOV RDI,qword ptr [RCX]
MOVSD XMM0,qword ptr [RDI + 0x30]
UCOMISD XMM0,qword ptr [RSI + 0x30]
MOV RSI,RCX
JA 0x001181ae
MOV RSI,RDX
LAB_001181ae:
ADD RCX,0x10
MOV RDX,RSI
CMP RCX,RAX
JNZ 0x00118196
LAB_001181ba:
MOV R12,qword ptr [RSI]
MOV RBX,qword ptr [RSI + 0x8]
TEST RBX,RBX
JZ 0x001181db
MOV RAX,qword ptr [0x00176fa0]
CMP byte ptr [RAX],0x0
JZ 0x001181d7
INC dword ptr [RBX + 0x8]
JMP 0x001181db
LAB_001181d7:
INC.LOCK dword ptr [RBX + 0x8]
LAB_001181db:
LEA RDX,[R14 + 0x10]
LAB_001181df:
LEA RDI,[RSP + 0x40]
LEA RSI,[RSP + 0x28]
MOV qword ptr [RSP + 0x80],RDX
CALL 0x00118adc
MOV qword ptr [RSP + 0x38],R15
MOV R13,qword ptr [R14 + 0x40]
MOV R15,qword ptr [R14 + 0x48]
CMP R13,R15
JZ 0x001182d9
XOR EBP,EBP
MOV R14,qword ptr [0x00176fa0]
LAB_00118215:
MOV RSI,qword ptr [R13]
MOV qword ptr [RSP + 0x70],R12
MOV qword ptr [RSP + 0x78],RBX
TEST RBX,RBX
JZ 0x00118237
CMP byte ptr [R14],0x0
JZ 0x00118233
INC dword ptr [RBX + 0x8]
JMP 0x00118237
LAB_00118233:
INC.LOCK dword ptr [RBX + 0x8]
LAB_00118237:
LEA RDI,[RSP + 0x10]
LEA RDX,[RSP + 0x70]
CALL 0x00121c3a
MOV RSI,qword ptr [RSP + 0x10]
LAB_0011824b:
LEA RDI,[RSP + 0x28]
CALL 0x00123022
MOV RDI,qword ptr [RSP + 0x18]
TEST RDI,RDI
JZ 0x00118264
CALL 0x00112b0c
LAB_00118264:
MOV RDI,qword ptr [RSP + 0x78]
TEST RDI,RDI
JZ 0x00118273
CALL 0x00112b0c
LAB_00118273:
MOV RDI,qword ptr [RSP + 0x40]
MOV RCX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x60],RCX
MOV qword ptr [RSP + 0x68],RAX
TEST RAX,RAX
JZ 0x001182a0
CMP byte ptr [R14],0x0
JZ 0x0011829c
INC dword ptr [RAX + 0x8]
JMP 0x001182a0
LAB_0011829c:
INC.LOCK dword ptr [RAX + 0x8]
LAB_001182a0:
MOV ESI,EBP
LEA RDX,[RSP + 0x60]
CALL 0x001174e0
MOV RDI,qword ptr [RSP + 0x68]
TEST RDI,RDI
JZ 0x001182bb
CALL 0x00112b0c
LAB_001182bb:
MOV RDI,qword ptr [RSP + 0x30]
TEST RDI,RDI
JZ 0x001182ca
CALL 0x00112b0c
LAB_001182ca:
ADD R13,0x10
INC EBP
CMP R13,R15
JNZ 0x00118215
LAB_001182d9:
LEA RDX,[RSP + 0x10]
MOV qword ptr [RDX],0x0
LAB_001182e5:
LEA RDI,[RSP + 0x28]
LEA RSI,[RSP + 0xf]
CALL 0x00112d0c
MOV RSI,qword ptr [RSP + 0x40]
CMP dword ptr [RSI + 0x58],0x0
JS 0x0011837e
MOV EBP,0xffffffff
LEA R14,[RSP + 0x98]
LEA R15,[RSP + 0x10]
LAB_00118311:
INC EBP
MOV R12,qword ptr [RSP + 0x28]
LAB_00118318:
MOV RDI,R14
MOV EDX,EBP
CALL 0x00117a16
LAB_00118322:
MOV RDI,R15
MOV RSI,R12
MOV RDX,R14
CALL 0x00121770
MOVAPD XMM0,xmmword ptr [RSP + 0x10]
XORPS XMM1,XMM1
MOVAPS xmmword ptr [RSP + 0x10],XMM1
MOV RDI,qword ptr [RSP + 0x30]
MOVUPD xmmword ptr [RSP + 0x28],XMM0
TEST RDI,RDI
JZ 0x00118353
CALL 0x00112b0c
LAB_00118353:
MOV RDI,qword ptr [RSP + 0x18]
TEST RDI,RDI
JZ 0x00118362
CALL 0x00112b0c
LAB_00118362:
MOV RDI,qword ptr [RSP + 0xa0]
TEST RDI,RDI
JZ 0x00118374
CALL 0x00112b0c
LAB_00118374:
MOV RSI,qword ptr [RSP + 0x40]
CMP EBP,dword ptr [RSI + 0x58]
JL 0x00118311
LAB_0011837e:
LEA RSI,[RSP + 0x10]
MOV R14,qword ptr [RSP + 0x38]
MOV RDI,R14
MOV RDX,qword ptr [RSP + 0x80]
CALL 0x00118adc
MOV R13,qword ptr [R14]
CMP dword ptr [R13 + 0x58],0x0
JS 0x0011845b
MOV EBP,0xffffffff
LEA R14,[RSP + 0x10]
LEA R15,[RSP + 0x88]
LEA R12,[RSP + 0x50]
LAB_001183bd:
INC EBP
MOV RSI,qword ptr [RSP + 0x40]
LAB_001183c4:
MOV RDI,R14
MOV EDX,EBP
CALL 0x00117a16
MOV RSI,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RSP + 0x28]
MOV RAX,qword ptr [RSP + 0x30]
MOV qword ptr [RSP + 0x50],RCX
MOV qword ptr [RSP + 0x58],RAX
TEST RAX,RAX
JZ 0x00118401
MOV RCX,qword ptr [0x00176fa0]
CMP byte ptr [RCX],0x0
JZ 0x001183fd
INC dword ptr [RAX + 0x8]
JMP 0x00118401
LAB_001183fd:
INC.LOCK dword ptr [RAX + 0x8]
LAB_00118401:
MOV RDI,R15
MOV RDX,R12
CALL 0x001225f6
LAB_0011840c:
MOV RDI,R13
MOV ESI,EBP
MOV RDX,R15
CALL 0x001174e0
LAB_00118419:
MOV RDI,qword ptr [RSP + 0x90]
TEST RDI,RDI
JZ 0x0011842b
CALL 0x00112b0c
LAB_0011842b:
MOV RDI,qword ptr [RSP + 0x58]
TEST RDI,RDI
JZ 0x0011843a
CALL 0x00112b0c
LAB_0011843a:
MOV RDI,qword ptr [RSP + 0x18]
TEST RDI,RDI
JZ 0x00118449
CALL 0x00112b0c
LAB_00118449:
MOV RAX,qword ptr [RSP + 0x38]
MOV R13,qword ptr [RAX]
CMP EBP,dword ptr [R13 + 0x58]
JL 0x001183bd
LAB_0011845b:
MOV RDI,qword ptr [RSP + 0x30]
TEST RDI,RDI
JZ 0x0011846a
CALL 0x00112b0c
LAB_0011846a:
MOV RDI,qword ptr [RSP + 0x48]
TEST RDI,RDI
MOV R14,qword ptr [RSP + 0x38]
JZ 0x0011847e
CALL 0x00112b0c
LAB_0011847e:
TEST RBX,RBX
JZ 0x0011848b
MOV RDI,RBX
CALL 0x00112b0c
LAB_0011848b:
MOV RAX,R14
ADD RSP,0xa8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* Tensor::softmax() */
__shared_ptr<Tensor,(__gnu_cxx::_Lock_policy)2> * Tensor::softmax(void)
{
long *plVar1;
long lVar2;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this;
int8 *puVar3;
int8 uVar4;
int *puVar5;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *this_00;
__shared_ptr<Tensor,(__gnu_cxx::_Lock_policy)2> *p_Var6;
long *plVar7;
long *plVar8;
long *plVar9;
int iVar10;
long in_RSI;
__shared_ptr<Tensor,(__gnu_cxx::_Lock_policy)2> *in_RDI;
int8 *puVar11;
Tensor *pTVar12;
int1 local_c9;
int8 local_c8;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_c0;
int8 local_b0;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *p_Stack_a8;
__shared_ptr<Tensor,(__gnu_cxx::_Lock_policy)2> *local_a0;
Tensor *local_98;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_90;
int8 local_88;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_80;
int8 local_78;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_70;
long local_68;
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_60;
long local_58;
int1 local_50 [8];
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_48;
int1 local_40 [8];
_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_38;
plVar9 = *(long **)(in_RSI + 0x40);
plVar1 = *(long **)(in_RSI + 0x48);
plVar8 = plVar9 + 2;
if (plVar8 != plVar1 && plVar9 != plVar1) {
do {
plVar7 = plVar8;
if (*(double *)(*plVar8 + 0x30) < *(double *)(*plVar9 + 0x30) ||
*(double *)(*plVar8 + 0x30) == *(double *)(*plVar9 + 0x30)) {
plVar7 = plVar9;
}
plVar9 = plVar7;
plVar8 = plVar8 + 2;
} while (plVar8 != plVar1);
}
lVar2 = *plVar9;
this = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)plVar9[1];
if (this != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
if (*PTR___libc_single_threaded_00176fa0 == '\0') {
LOCK();
*(int *)(this + 8) = *(int *)(this + 8) + 1;
UNLOCK();
}
else {
*(int *)(this + 8) = *(int *)(this + 8) + 1;
}
}
local_58 = in_RSI + 0x10;
/* try { // try from 001181df to 001181f5 has its CatchHandler @ 001184aa */
std::__shared_ptr<Tensor,(__gnu_cxx::_Lock_policy)2>::
__shared_ptr<std::allocator<Tensor>,std::vector<int,std::allocator<int>>&>
((__shared_ptr<Tensor,(__gnu_cxx::_Lock_policy)2> *)&local_98,&local_b0);
puVar5 = PTR___libc_single_threaded_00176fa0;
puVar11 = *(int8 **)(in_RSI + 0x40);
puVar3 = *(int8 **)(in_RSI + 0x48);
local_a0 = in_RDI;
if (puVar11 != puVar3) {
iVar10 = 0;
do {
uVar4 = *puVar11;
if (this != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
if (*puVar5 == '\0') {
LOCK();
*(int *)(this + 8) = *(int *)(this + 8) + 1;
UNLOCK();
}
else {
*(int *)(this + 8) = *(int *)(this + 8) + 1;
}
}
/* try { // try from 00118237 to 00118245 has its CatchHandler @ 0011850c */
local_68 = lVar2;
local_60 = this;
Value::sub(&local_c8,uVar4,&local_68);
/* try { // try from 0011824b to 00118254 has its CatchHandler @ 00118511 */
Value::exp();
if (p_Stack_c0 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_c0);
}
if (local_60 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_60);
}
local_78 = local_b0;
local_70 = p_Stack_a8;
if (p_Stack_a8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
if (*puVar5 == '\0') {
LOCK();
*(int *)(p_Stack_a8 + 8) = *(int *)(p_Stack_a8 + 8) + 1;
UNLOCK();
}
else {
*(int *)(p_Stack_a8 + 8) = *(int *)(p_Stack_a8 + 8) + 1;
}
}
/* try { // try from 001182a0 to 001182ab has its CatchHandler @ 0011852a */
set(local_98,iVar10,&local_78);
if (local_70 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_70);
}
if (p_Stack_a8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_a8);
}
puVar11 = puVar11 + 2;
iVar10 = iVar10 + 1;
} while (puVar11 != puVar3);
}
local_c8 = 0;
/* try { // try from 001182e5 to 001182f3 has its CatchHandler @ 001184a2 */
std::__shared_ptr<Value,(__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<Value>,double>
((__shared_ptr<Value,(__gnu_cxx::_Lock_policy)2> *)&local_b0,&local_c9);
if (-1 < *(int *)(local_98 + 0x58)) {
iVar10 = -1;
do {
uVar4 = local_b0;
iVar10 = iVar10 + 1;
/* try { // try from 00118318 to 00118321 has its CatchHandler @ 001184fa */
get((int)local_40);
/* try { // try from 00118322 to 0011832f has its CatchHandler @ 001184ff */
Value::add(&local_c8,uVar4,local_40);
this_00 = p_Stack_a8;
p_Stack_a8 = p_Stack_c0;
local_b0 = local_c8;
local_c8 = 0;
p_Stack_c0 = (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0;
if (this_00 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this_00);
}
if (p_Stack_c0 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_c0);
}
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);
}
} while (iVar10 < *(int *)(local_98 + 0x58));
}
/* try { // try from 0011837e to 00118397 has its CatchHandler @ 001184a0 */
p_Var6 = local_a0;
std::__shared_ptr<Tensor,(__gnu_cxx::_Lock_policy)2>::
__shared_ptr<std::allocator<Tensor>,std::vector<int,std::allocator<int>>&>
(local_a0,&local_c8,local_58);
pTVar12 = *(Tensor **)p_Var6;
if (-1 < *(int *)(pTVar12 + 0x58)) {
iVar10 = -1;
do {
iVar10 = iVar10 + 1;
/* try { // try from 001183c4 to 001183cd has its CatchHandler @ 001184b2 */
get((int)&local_c8);
local_88 = local_b0;
local_80 = p_Stack_a8;
if (p_Stack_a8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
if (*PTR___libc_single_threaded_00176fa0 == '\0') {
LOCK();
*(int *)(p_Stack_a8 + 8) = *(int *)(p_Stack_a8 + 8) + 1;
UNLOCK();
}
else {
*(int *)(p_Stack_a8 + 8) = *(int *)(p_Stack_a8 + 8) + 1;
}
}
/* try { // try from 00118401 to 0011840b has its CatchHandler @ 001184b7 */
Value::div(local_50,local_c8,&local_88);
/* try { // try from 0011840c to 00118418 has its CatchHandler @ 001184bc */
set(pTVar12,iVar10,local_50);
if (local_48 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_48);
}
if (local_80 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_80);
}
if (p_Stack_c0 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_c0);
}
pTVar12 = *(Tensor **)local_a0;
} while (iVar10 < *(int *)(pTVar12 + 0x58));
}
if (p_Stack_a8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(p_Stack_a8);
}
if (local_90 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_90);
}
if (this != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) {
std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(this);
}
return local_a0;
}
| |
44,397 | my_read | eloqsql/mysys/my_read.c | size_t my_read(File Filedes, uchar *Buffer, size_t Count, myf MyFlags)
{
size_t readbytes, save_count= 0;
DBUG_ENTER("my_read");
DBUG_PRINT("my",("fd: %d Buffer: %p Count: %lu MyFlags: %lu",
Filedes, Buffer, (ulong) Count, MyFlags));
if (!(MyFlags & (MY_WME | MY_FAE | MY_FNABP)))
MyFlags|= my_global_flags;
for (;;)
{
errno= 0; /* Linux, Windows don't reset this on EOF/success */
#ifdef _WIN32
readbytes= my_win_read(Filedes, Buffer, Count);
#else
readbytes= read(Filedes, Buffer, Count);
#endif
DBUG_EXECUTE_IF ("simulate_file_read_error",
{
errno= ENOSPC;
readbytes= (size_t) -1;
DBUG_SET("-d,simulate_file_read_error");
DBUG_SET("-d,simulate_my_b_fill_error");
});
if (readbytes != Count)
{
int got_errno= my_errno= errno;
DBUG_PRINT("warning",("Read only %d bytes off %lu from %d, errno: %d",
(int) readbytes, (ulong) Count, Filedes,
got_errno));
if (got_errno == 0 || (readbytes != (size_t) -1 &&
(MyFlags & (MY_NABP | MY_FNABP))))
my_errno= HA_ERR_FILE_TOO_SHORT;
if ((readbytes == 0 || (int) readbytes == -1) && got_errno == EINTR)
{
DBUG_PRINT("debug", ("my_read() was interrupted and returned %ld",
(long) readbytes));
continue; /* Interrupted */
}
/* Do a read retry if we didn't get enough data on first read */
if (readbytes != (size_t) -1 && readbytes != 0 &&
(MyFlags & MY_FULL_IO))
{
Buffer+= readbytes;
Count-= readbytes;
save_count+= readbytes;
continue;
}
if (MyFlags & (MY_WME | MY_FAE | MY_FNABP))
{
if (readbytes == (size_t) -1)
my_error(EE_READ,
MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))),
my_filename(Filedes), got_errno);
else if (MyFlags & (MY_NABP | MY_FNABP))
my_error(EE_EOFERR,
MYF(ME_BELL | (MyFlags & (ME_NOTE | ME_ERROR_LOG))),
my_filename(Filedes), got_errno);
}
if (readbytes == (size_t) -1 ||
((MyFlags & (MY_FNABP | MY_NABP)) && !(MyFlags & MY_FULL_IO)))
DBUG_RETURN(MY_FILE_ERROR); /* Return with error */
}
if (MyFlags & (MY_NABP | MY_FNABP))
readbytes= 0; /* Ok on read */
else
readbytes+= save_count;
break;
}
DBUG_RETURN(readbytes);
} | O0 | c | my_read:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movl %edi, -0xc(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq $0x0, -0x38(%rbp)
jmp 0x31dd1
movq -0x28(%rbp), %rax
andq $0x1a, %rax
cmpq $0x0, %rax
jne 0x31df1
leaq 0x3560d2(%rip), %rax # 0x387eb8
movq (%rax), %rax
orq -0x28(%rbp), %rax
movq %rax, -0x28(%rbp)
jmp 0x31df3
callq 0x24050
movl $0x0, (%rax)
movl -0xc(%rbp), %edi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x24420
movq %rax, -0x30(%rbp)
jmp 0x31e14
movq -0x30(%rbp), %rax
cmpq -0x20(%rbp), %rax
je 0x31f89
callq 0x24050
movl (%rax), %eax
movl %eax, -0x40(%rbp)
callq 0x26b40
movq %rax, %rcx
movl -0x40(%rbp), %eax
movl %eax, (%rcx)
movl %eax, -0x3c(%rbp)
jmp 0x31e3e
cmpl $0x0, -0x3c(%rbp)
je 0x31e59
cmpq $-0x1, -0x30(%rbp)
je 0x31e64
movq -0x28(%rbp), %rax
andq $0x6, %rax
cmpq $0x0, %rax
je 0x31e64
callq 0x26b40
movl $0xaf, (%rax)
cmpq $0x0, -0x30(%rbp)
je 0x31e74
movq -0x30(%rbp), %rax
cmpl $-0x1, %eax
jne 0x31e83
cmpl $0x4, -0x3c(%rbp)
jne 0x31e83
jmp 0x31e7c
jmp 0x31e7e
jmp 0x31df3
cmpq $-0x1, -0x30(%rbp)
je 0x31ecd
cmpq $0x0, -0x30(%rbp)
je 0x31ecd
movq -0x28(%rbp), %rax
andq $0x200, %rax # imm = 0x200
cmpq $0x0, %rax
je 0x31ecd
movq -0x30(%rbp), %rax
addq -0x18(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x30(%rbp), %rcx
movq -0x20(%rbp), %rax
subq %rcx, %rax
movq %rax, -0x20(%rbp)
movq -0x30(%rbp), %rax
addq -0x38(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x31df3
movq -0x28(%rbp), %rax
andq $0x1a, %rax
cmpq $0x0, %rax
je 0x31f56
cmpq $-0x1, -0x30(%rbp)
jne 0x31f14
movq -0x28(%rbp), %rax
andq $0x440, %rax # imm = 0x440
orq $0x4, %rax
movq %rax, -0x48(%rbp)
movl -0xc(%rbp), %edi
callq 0x36380
movq -0x48(%rbp), %rsi
movq %rax, %rdx
movl -0x3c(%rbp), %ecx
movl $0x2, %edi
movb $0x0, %al
callq 0x305e0
jmp 0x31f54
movq -0x28(%rbp), %rax
andq $0x6, %rax
cmpq $0x0, %rax
je 0x31f52
movq -0x28(%rbp), %rax
andq $0x440, %rax # imm = 0x440
orq $0x4, %rax
movq %rax, -0x50(%rbp)
movl -0xc(%rbp), %edi
callq 0x36380
movq -0x50(%rbp), %rsi
movq %rax, %rdx
movl -0x3c(%rbp), %ecx
movl $0x9, %edi
movb $0x0, %al
callq 0x305e0
jmp 0x31f54
jmp 0x31f56
cmpq $-0x1, -0x30(%rbp)
je 0x31f7b
movq -0x28(%rbp), %rax
andq $0x6, %rax
cmpq $0x0, %rax
je 0x31f87
movq -0x28(%rbp), %rax
andq $0x200, %rax # imm = 0x200
cmpq $0x0, %rax
jne 0x31f87
jmp 0x31f7d
movq $-0x1, -0x8(%rbp)
jmp 0x31fb9
jmp 0x31f89
movq -0x28(%rbp), %rax
andq $0x6, %rax
cmpq $0x0, %rax
je 0x31fa1
movq $0x0, -0x30(%rbp)
jmp 0x31fad
movq -0x38(%rbp), %rax
addq -0x30(%rbp), %rax
movq %rax, -0x30(%rbp)
jmp 0x31faf
jmp 0x31fb1
movq -0x30(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| my_read:
push rbp
mov rbp, rsp
sub rsp, 50h
mov [rbp+var_C], edi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov [rbp+var_38], 0
jmp short $+2
loc_31DD1:
mov rax, [rbp+var_28]
and rax, 1Ah
cmp rax, 0
jnz short loc_31DF1
lea rax, my_global_flags
mov rax, [rax]
or rax, [rbp+var_28]
mov [rbp+var_28], rax
loc_31DF1:
jmp short $+2
loc_31DF3:
call ___errno_location
mov dword ptr [rax], 0
mov edi, [rbp+var_C]
mov rsi, [rbp+var_18]
mov rdx, [rbp+var_20]
call _read
mov [rbp+var_30], rax
jmp short $+2
loc_31E14:
mov rax, [rbp+var_30]
cmp rax, [rbp+var_20]
jz loc_31F89
call ___errno_location
mov eax, [rax]
mov [rbp+var_40], eax
call _my_thread_var
mov rcx, rax
mov eax, [rbp+var_40]
mov [rcx], eax
mov [rbp+var_3C], eax
jmp short $+2
loc_31E3E:
cmp [rbp+var_3C], 0
jz short loc_31E59
cmp [rbp+var_30], 0FFFFFFFFFFFFFFFFh
jz short loc_31E64
mov rax, [rbp+var_28]
and rax, 6
cmp rax, 0
jz short loc_31E64
loc_31E59:
call _my_thread_var
mov dword ptr [rax], 0AFh
loc_31E64:
cmp [rbp+var_30], 0
jz short loc_31E74
mov rax, [rbp+var_30]
cmp eax, 0FFFFFFFFh
jnz short loc_31E83
loc_31E74:
cmp [rbp+var_3C], 4
jnz short loc_31E83
jmp short $+2
loc_31E7C:
jmp short $+2
loc_31E7E:
jmp loc_31DF3
loc_31E83:
cmp [rbp+var_30], 0FFFFFFFFFFFFFFFFh
jz short loc_31ECD
cmp [rbp+var_30], 0
jz short loc_31ECD
mov rax, [rbp+var_28]
and rax, 200h
cmp rax, 0
jz short loc_31ECD
mov rax, [rbp+var_30]
add rax, [rbp+var_18]
mov [rbp+var_18], rax
mov rcx, [rbp+var_30]
mov rax, [rbp+var_20]
sub rax, rcx
mov [rbp+var_20], rax
mov rax, [rbp+var_30]
add rax, [rbp+var_38]
mov [rbp+var_38], rax
jmp loc_31DF3
loc_31ECD:
mov rax, [rbp+var_28]
and rax, 1Ah
cmp rax, 0
jz short loc_31F56
cmp [rbp+var_30], 0FFFFFFFFFFFFFFFFh
jnz short loc_31F14
mov rax, [rbp+var_28]
and rax, 440h
or rax, 4
mov [rbp+var_48], rax
mov edi, [rbp+var_C]
call my_filename
mov rsi, [rbp+var_48]
mov rdx, rax
mov ecx, [rbp+var_3C]
mov edi, 2
mov al, 0
call my_error
jmp short loc_31F54
loc_31F14:
mov rax, [rbp+var_28]
and rax, 6
cmp rax, 0
jz short loc_31F52
mov rax, [rbp+var_28]
and rax, 440h
or rax, 4
mov [rbp+var_50], rax
mov edi, [rbp+var_C]
call my_filename
mov rsi, [rbp+var_50]
mov rdx, rax
mov ecx, [rbp+var_3C]
mov edi, 9
mov al, 0
call my_error
loc_31F52:
jmp short $+2
loc_31F54:
jmp short $+2
loc_31F56:
cmp [rbp+var_30], 0FFFFFFFFFFFFFFFFh
jz short loc_31F7B
mov rax, [rbp+var_28]
and rax, 6
cmp rax, 0
jz short loc_31F87
mov rax, [rbp+var_28]
and rax, 200h
cmp rax, 0
jnz short loc_31F87
loc_31F7B:
jmp short $+2
loc_31F7D:
mov [rbp+var_8], 0FFFFFFFFFFFFFFFFh
jmp short loc_31FB9
loc_31F87:
jmp short $+2
loc_31F89:
mov rax, [rbp+var_28]
and rax, 6
cmp rax, 0
jz short loc_31FA1
mov [rbp+var_30], 0
jmp short loc_31FAD
loc_31FA1:
mov rax, [rbp+var_38]
add rax, [rbp+var_30]
mov [rbp+var_30], rax
loc_31FAD:
jmp short $+2
loc_31FAF:
jmp short $+2
loc_31FB1:
mov rax, [rbp+var_30]
mov [rbp+var_8], rax
loc_31FB9:
mov rax, [rbp+var_8]
add rsp, 50h
pop rbp
retn
| long long my_read(unsigned int a1, long long a2, long long a3, __int16 a4)
{
long long v4; // rax
long long v5; // rax
unsigned int v7; // [rsp+10h] [rbp-40h]
long long v8; // [rsp+18h] [rbp-38h]
long long v9; // [rsp+20h] [rbp-30h]
__int16 v11; // [rsp+28h] [rbp-28h]
v11 = a4;
v8 = 0LL;
if ( (a4 & 0x1A) == 0 )
v11 = a4 | my_global_flags;
while ( 1 )
{
*(_DWORD *)__errno_location() = 0;
v9 = read(a1, a2, a3);
if ( v9 == a3 )
break;
v7 = *(_DWORD *)__errno_location();
*(_DWORD *)my_thread_var() = v7;
if ( !v7 || v9 != -1 && (v11 & 6) != 0 )
*(_DWORD *)my_thread_var() = 175;
if ( v9 && (_DWORD)v9 != -1 || v7 != 4 )
{
if ( v9 == -1 || !v9 || (v11 & 0x200) == 0 )
{
if ( (v11 & 0x1A) != 0 )
{
if ( v9 == -1 )
{
v4 = my_filename(a1);
my_error(2u, v11 & 0x440 | 4LL, v4, v7);
}
else if ( (v11 & 6) != 0 )
{
v5 = my_filename(a1);
my_error(9u, v11 & 0x440 | 4LL, v5, v7);
}
}
if ( v9 == -1 || (v11 & 6) != 0 && (v11 & 0x200) == 0 )
return -1LL;
break;
}
a2 += v9;
a3 -= v9;
v8 += v9;
}
}
if ( (v11 & 6) != 0 )
return 0LL;
else
return v9 + v8;
}
| my_read:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV dword ptr [RBP + -0xc],EDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV qword ptr [RBP + -0x38],0x0
JMP 0x00131dd1
LAB_00131dd1:
MOV RAX,qword ptr [RBP + -0x28]
AND RAX,0x1a
CMP RAX,0x0
JNZ 0x00131df1
LEA RAX,[0x487eb8]
MOV RAX,qword ptr [RAX]
OR RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x28],RAX
LAB_00131df1:
JMP 0x00131df3
LAB_00131df3:
CALL 0x00124050
MOV dword ptr [RAX],0x0
MOV EDI,dword ptr [RBP + -0xc]
MOV RSI,qword ptr [RBP + -0x18]
MOV RDX,qword ptr [RBP + -0x20]
CALL 0x00124420
MOV qword ptr [RBP + -0x30],RAX
JMP 0x00131e14
LAB_00131e14:
MOV RAX,qword ptr [RBP + -0x30]
CMP RAX,qword ptr [RBP + -0x20]
JZ 0x00131f89
CALL 0x00124050
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x40],EAX
CALL 0x00126b40
MOV RCX,RAX
MOV EAX,dword ptr [RBP + -0x40]
MOV dword ptr [RCX],EAX
MOV dword ptr [RBP + -0x3c],EAX
JMP 0x00131e3e
LAB_00131e3e:
CMP dword ptr [RBP + -0x3c],0x0
JZ 0x00131e59
CMP qword ptr [RBP + -0x30],-0x1
JZ 0x00131e64
MOV RAX,qword ptr [RBP + -0x28]
AND RAX,0x6
CMP RAX,0x0
JZ 0x00131e64
LAB_00131e59:
CALL 0x00126b40
MOV dword ptr [RAX],0xaf
LAB_00131e64:
CMP qword ptr [RBP + -0x30],0x0
JZ 0x00131e74
MOV RAX,qword ptr [RBP + -0x30]
CMP EAX,-0x1
JNZ 0x00131e83
LAB_00131e74:
CMP dword ptr [RBP + -0x3c],0x4
JNZ 0x00131e83
JMP 0x00131e7c
LAB_00131e7c:
JMP 0x00131e7e
LAB_00131e7e:
JMP 0x00131df3
LAB_00131e83:
CMP qword ptr [RBP + -0x30],-0x1
JZ 0x00131ecd
CMP qword ptr [RBP + -0x30],0x0
JZ 0x00131ecd
MOV RAX,qword ptr [RBP + -0x28]
AND RAX,0x200
CMP RAX,0x0
JZ 0x00131ecd
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x18],RAX
MOV RCX,qword ptr [RBP + -0x30]
MOV RAX,qword ptr [RBP + -0x20]
SUB RAX,RCX
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x30]
ADD RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x38],RAX
JMP 0x00131df3
LAB_00131ecd:
MOV RAX,qword ptr [RBP + -0x28]
AND RAX,0x1a
CMP RAX,0x0
JZ 0x00131f56
CMP qword ptr [RBP + -0x30],-0x1
JNZ 0x00131f14
MOV RAX,qword ptr [RBP + -0x28]
AND RAX,0x440
OR RAX,0x4
MOV qword ptr [RBP + -0x48],RAX
MOV EDI,dword ptr [RBP + -0xc]
CALL 0x00136380
MOV RSI,qword ptr [RBP + -0x48]
MOV RDX,RAX
MOV ECX,dword ptr [RBP + -0x3c]
MOV EDI,0x2
MOV AL,0x0
CALL 0x001305e0
JMP 0x00131f54
LAB_00131f14:
MOV RAX,qword ptr [RBP + -0x28]
AND RAX,0x6
CMP RAX,0x0
JZ 0x00131f52
MOV RAX,qword ptr [RBP + -0x28]
AND RAX,0x440
OR RAX,0x4
MOV qword ptr [RBP + -0x50],RAX
MOV EDI,dword ptr [RBP + -0xc]
CALL 0x00136380
MOV RSI,qword ptr [RBP + -0x50]
MOV RDX,RAX
MOV ECX,dword ptr [RBP + -0x3c]
MOV EDI,0x9
MOV AL,0x0
CALL 0x001305e0
LAB_00131f52:
JMP 0x00131f54
LAB_00131f54:
JMP 0x00131f56
LAB_00131f56:
CMP qword ptr [RBP + -0x30],-0x1
JZ 0x00131f7b
MOV RAX,qword ptr [RBP + -0x28]
AND RAX,0x6
CMP RAX,0x0
JZ 0x00131f87
MOV RAX,qword ptr [RBP + -0x28]
AND RAX,0x200
CMP RAX,0x0
JNZ 0x00131f87
LAB_00131f7b:
JMP 0x00131f7d
LAB_00131f7d:
MOV qword ptr [RBP + -0x8],-0x1
JMP 0x00131fb9
LAB_00131f87:
JMP 0x00131f89
LAB_00131f89:
MOV RAX,qword ptr [RBP + -0x28]
AND RAX,0x6
CMP RAX,0x0
JZ 0x00131fa1
MOV qword ptr [RBP + -0x30],0x0
JMP 0x00131fad
LAB_00131fa1:
MOV RAX,qword ptr [RBP + -0x38]
ADD RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x30],RAX
LAB_00131fad:
JMP 0x00131faf
LAB_00131faf:
JMP 0x00131fb1
LAB_00131fb1:
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x8],RAX
LAB_00131fb9:
MOV RAX,qword ptr [RBP + -0x8]
ADD RSP,0x50
POP RBP
RET
|
long my_read(int param_1,void *param_2,size_t param_3,ulong param_4)
{
int iVar1;
int *piVar2;
size_t sVar3;
int4 *puVar4;
int8 uVar5;
long local_40;
long local_38;
ulong local_30;
size_t local_28;
void *local_20;
local_40 = 0;
local_28 = param_3;
local_20 = param_2;
local_30 = param_4;
if ((param_4 & 0x1a) == 0) {
local_30 = my_global_flags | param_4;
}
do {
do {
piVar2 = __errno_location();
*piVar2 = 0;
sVar3 = read(param_1,local_20,local_28);
if (sVar3 == local_28) {
LAB_00131f89:
if ((local_30 & 6) == 0) {
local_38 = local_40 + sVar3;
}
else {
local_38 = 0;
}
return local_38;
}
piVar2 = __errno_location();
iVar1 = *piVar2;
piVar2 = (int *)_my_thread_var();
*piVar2 = iVar1;
if ((iVar1 == 0) || ((sVar3 != 0xffffffffffffffff && ((local_30 & 6) != 0)))) {
puVar4 = (int4 *)_my_thread_var();
*puVar4 = 0xaf;
}
} while (((sVar3 == 0) || ((int)sVar3 == -1)) && (iVar1 == 4));
if (((sVar3 == 0xffffffffffffffff) || (sVar3 == 0)) || ((local_30 & 0x200) == 0)) {
if ((local_30 & 0x1a) != 0) {
if (sVar3 == 0xffffffffffffffff) {
uVar5 = my_filename(param_1);
my_error(2,local_30 & 0x440 | 4,uVar5,iVar1);
}
else if ((local_30 & 6) != 0) {
uVar5 = my_filename(param_1);
my_error(9,local_30 & 0x440 | 4,uVar5,iVar1);
}
}
if ((sVar3 == 0xffffffffffffffff) || (((local_30 & 6) != 0 && ((local_30 & 0x200) == 0)))) {
return -1;
}
goto LAB_00131f89;
}
local_20 = (void *)(sVar3 + (long)local_20);
local_28 = local_28 - sVar3;
local_40 = sVar3 + local_40;
} while( true );
}
| |
44,398 | glfwGetPhysicalDevicePresentationSupport | untodesu[P]riteg/build_O3/_deps/glfw-src/src/vulkan.c | GLFWAPI int glfwGetPhysicalDevicePresentationSupport(VkInstance instance,
VkPhysicalDevice device,
uint32_t queuefamily)
{
assert(instance != VK_NULL_HANDLE);
assert(device != VK_NULL_HANDLE);
_GLFW_REQUIRE_INIT_OR_RETURN(GLFW_FALSE);
if (!_glfwInitVulkan(_GLFW_REQUIRE_LOADER))
return GLFW_FALSE;
if (!_glfw.vk.extensions[0])
{
_glfwInputError(GLFW_API_UNAVAILABLE,
"Vulkan: Window surface creation extensions not found");
return GLFW_FALSE;
}
return _glfwPlatformGetPhysicalDevicePresentationSupport(instance,
device,
queuefamily);
} | O3 | c | glfwGetPhysicalDevicePresentationSupport:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x1cae1
movq %rsi, %r14
testq %rsi, %rsi
je 0x1cb00
leaq 0x8bbbe(%rip), %r12 # 0xa8638
cmpl $0x0, (%r12)
je 0x1cab7
movl %edx, %ebx
movq %rdi, %r15
movl $0x2, %edi
callq 0x1c5c4
testl %eax, %eax
je 0x1cad3
cmpq $0x0, 0x1fe80(%r12)
je 0x1cac0
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2596c
movl $0x10001, %edi # imm = 0x10001
xorl %esi, %esi
jmp 0x1cacc
leaq 0x67599(%rip), %rsi # 0x84060
movl $0x10006, %edi # imm = 0x10006
xorl %eax, %eax
callq 0x18e91
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x674ef(%rip), %rdi # 0x83fd7
leaq 0x6740f(%rip), %rsi # 0x83efe
leaq 0x674fc(%rip), %rcx # 0x83ff2
movl $0x111, %edx # imm = 0x111
callq 0xc540
leaq 0x67540(%rip), %rdi # 0x84047
leaq 0x673f0(%rip), %rsi # 0x83efe
leaq 0x674dd(%rip), %rcx # 0x83ff2
movl $0x112, %edx # imm = 0x112
callq 0xc540
| glfwGetPhysicalDevicePresentationSupport:
push r15
push r14
push r12
push rbx
push rax
test rdi, rdi
jz short loc_1CAE1
mov r14, rsi
test rsi, rsi
jz loc_1CB00
lea r12, _glfw
cmp dword ptr [r12], 0
jz short loc_1CAB7
mov ebx, edx
mov r15, rdi
mov edi, 2
call _glfwInitVulkan
test eax, eax
jz short loc_1CAD3
cmp qword ptr [r12+1FE80h], 0
jz short loc_1CAC0
mov rdi, r15
mov rsi, r14
mov edx, ebx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
jmp _glfwPlatformGetPhysicalDevicePresentationSupport
loc_1CAB7:
mov edi, offset loc_10001
xor esi, esi
jmp short loc_1CACC
loc_1CAC0:
lea rsi, aVulkanWindowSu; "Vulkan: Window surface creation extensi"...
mov edi, offset loc_10006
loc_1CACC:
xor eax, eax
call _glfwInputError
loc_1CAD3:
xor eax, eax
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
loc_1CAE1:
lea rdi, aInstanceVkNull; "instance != VK_NULL_HANDLE"
lea rsi, aWorkspaceLlm4b_14; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aIntGlfwgetphys; "int glfwGetPhysicalDevicePresentationSu"...
mov edx, 111h
call ___assert_fail
loc_1CB00:
lea rdi, aDeviceVkNullHa; "device != VK_NULL_HANDLE"
lea rsi, aWorkspaceLlm4b_14; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aIntGlfwgetphys; "int glfwGetPhysicalDevicePresentationSu"...
mov edx, 112h
call ___assert_fail
| long long glfwGetPhysicalDevicePresentationSupport(long long a1, long long a2, unsigned int a3)
{
if ( !a1 )
__assert_fail(
"instance != VK_NULL_HANDLE",
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O3/_deps/glfw-src/src/vulkan.c",
273LL,
"int glfwGetPhysicalDevicePresentationSupport(VkInstance, VkPhysicalDevice, uint32_t)");
if ( !a2 )
__assert_fail(
"device != VK_NULL_HANDLE",
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O3/_deps/glfw-src/src/vulkan.c",
274LL,
"int glfwGetPhysicalDevicePresentationSupport(VkInstance, VkPhysicalDevice, uint32_t)");
if ( glfw[0] )
{
if ( (unsigned int)glfwInitVulkan(2) )
{
if ( *(_QWORD *)&glfw[32672] )
return glfwPlatformGetPhysicalDevicePresentationSupport(a1, a2, a3);
glfwInputError((unsigned int)&loc_10006, (long long)"Vulkan: Window surface creation extensions not found");
}
}
else
{
glfwInputError((unsigned int)&loc_10001, 0LL);
}
return 0LL;
}
| glfwGetPhysicalDevicePresentationSupport:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
TEST RDI,RDI
JZ 0x0011cae1
MOV R14,RSI
TEST RSI,RSI
JZ 0x0011cb00
LEA R12,[0x1a8638]
CMP dword ptr [R12],0x0
JZ 0x0011cab7
MOV EBX,EDX
MOV R15,RDI
MOV EDI,0x2
CALL 0x0011c5c4
TEST EAX,EAX
JZ 0x0011cad3
CMP qword ptr [R12 + 0x1fe80],0x0
JZ 0x0011cac0
MOV RDI,R15
MOV RSI,R14
MOV EDX,EBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
JMP 0x0012596c
LAB_0011cab7:
MOV EDI,0x10001
XOR ESI,ESI
JMP 0x0011cacc
LAB_0011cac0:
LEA RSI,[0x184060]
MOV EDI,0x10006
LAB_0011cacc:
XOR EAX,EAX
CALL 0x00118e91
LAB_0011cad3:
XOR EAX,EAX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
LAB_0011cae1:
LEA RDI,[0x183fd7]
LEA RSI,[0x183efe]
LEA RCX,[0x183ff2]
MOV EDX,0x111
CALL 0x0010c540
LAB_0011cb00:
LEA RDI,[0x184047]
LEA RSI,[0x183efe]
LEA RCX,[0x183ff2]
MOV EDX,0x112
CALL 0x0010c540
|
int8 glfwGetPhysicalDevicePresentationSupport(long param_1,long param_2,int4 param_3)
{
int iVar1;
int8 uVar2;
char *pcVar3;
if (param_1 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("instance != VK_NULL_HANDLE",
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O3/_deps/glfw-src/src/vulkan.c"
,0x111,
"int glfwGetPhysicalDevicePresentationSupport(VkInstance, VkPhysicalDevice, uint32_t)"
);
}
if (param_2 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("device != VK_NULL_HANDLE",
"/workspace/llm4binary/github/2025_star3/untodesu[P]riteg/build_O3/_deps/glfw-src/src/vulkan.c"
,0x112,
"int glfwGetPhysicalDevicePresentationSupport(VkInstance, VkPhysicalDevice, uint32_t)"
);
}
if (_glfw == 0) {
uVar2 = 0x10001;
pcVar3 = (char *)0x0;
}
else {
iVar1 = _glfwInitVulkan(2);
if (iVar1 == 0) {
return 0;
}
if (DAT_001c84b8 != 0) {
uVar2 = _glfwPlatformGetPhysicalDevicePresentationSupport(param_1,param_2,param_3);
return uVar2;
}
pcVar3 = "Vulkan: Window surface creation extensions not found";
uVar2 = 0x10006;
}
_glfwInputError(uVar2,pcVar3);
return 0;
}
| |
44,399 | ma_free_root | eloqsql/libmariadb/libmariadb/ma_alloc.c | void ma_free_root(MA_MEM_ROOT *root, myf MyFlags)
{
reg1 MA_USED_MEM *next,*old;
if (!root)
return; /* purecov: inspected */
if (!(MyFlags & MY_KEEP_PREALLOC))
root->pre_alloc=0;
for ( next=root->used; next ;)
{
old=next; next= next->next ;
if (old != root->pre_alloc)
free(old);
}
for (next= root->free ; next ; )
{
old=next; next= next->next ;
if (old != root->pre_alloc)
free(old);
}
root->used=root->free=0;
if (root->pre_alloc)
{
root->free=root->pre_alloc;
root->free->left=root->pre_alloc->size-ALIGN_SIZE(sizeof(MA_USED_MEM));
root->free->next=0;
}
} | O0 | c | ma_free_root:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
cmpq $0x0, -0x8(%rbp)
jne 0x24dbb
jmp 0x24ea9
movl -0xc(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
jne 0x24dd2
movq -0x8(%rbp), %rax
movq $0x0, 0x10(%rax)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x24e11
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x10(%rcx), %rax
je 0x24e0f
movq -0x20(%rbp), %rdi
callq 0x13520
jmp 0x24dde
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x24e4f
movq -0x18(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x18(%rbp)
movq -0x20(%rbp), %rax
movq -0x8(%rbp), %rcx
cmpq 0x10(%rcx), %rax
je 0x24e4d
movq -0x20(%rbp), %rdi
callq 0x13520
jmp 0x24e1c
movq -0x8(%rbp), %rax
movq $0x0, (%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x8(%rax)
movq -0x8(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x24ea9
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rcx
movq -0x8(%rbp), %rax
movq %rcx, (%rax)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rax), %rcx
subq $0x18, %rcx
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rax
movq (%rax), %rax
movq $0x0, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nop
| ma_free_root:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
cmp [rbp+var_8], 0
jnz short loc_24DBB
jmp loc_24EA9
loc_24DBB:
mov eax, [rbp+var_C]
and eax, 1
cmp eax, 0
jnz short loc_24DD2
mov rax, [rbp+var_8]
mov qword ptr [rax+10h], 0
loc_24DD2:
mov rax, [rbp+var_8]
mov rax, [rax+8]
mov [rbp+var_18], rax
loc_24DDE:
cmp [rbp+var_18], 0
jz short loc_24E11
mov rax, [rbp+var_18]
mov [rbp+var_20], rax
mov rax, [rbp+var_18]
mov rax, [rax]
mov [rbp+var_18], rax
mov rax, [rbp+var_20]
mov rcx, [rbp+var_8]
cmp rax, [rcx+10h]
jz short loc_24E0F
mov rdi, [rbp+var_20]
call _free
loc_24E0F:
jmp short loc_24DDE
loc_24E11:
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rbp+var_18], rax
loc_24E1C:
cmp [rbp+var_18], 0
jz short loc_24E4F
mov rax, [rbp+var_18]
mov [rbp+var_20], rax
mov rax, [rbp+var_18]
mov rax, [rax]
mov [rbp+var_18], rax
mov rax, [rbp+var_20]
mov rcx, [rbp+var_8]
cmp rax, [rcx+10h]
jz short loc_24E4D
mov rdi, [rbp+var_20]
call _free
loc_24E4D:
jmp short loc_24E1C
loc_24E4F:
mov rax, [rbp+var_8]
mov qword ptr [rax], 0
mov rax, [rbp+var_8]
mov qword ptr [rax+8], 0
mov rax, [rbp+var_8]
cmp qword ptr [rax+10h], 0
jz short loc_24EA9
mov rax, [rbp+var_8]
mov rcx, [rax+10h]
mov rax, [rbp+var_8]
mov [rax], rcx
mov rax, [rbp+var_8]
mov rax, [rax+10h]
mov rcx, [rax+10h]
sub rcx, 18h
mov rax, [rbp+var_8]
mov rax, [rax]
mov [rax+8], rcx
mov rax, [rbp+var_8]
mov rax, [rax]
mov qword ptr [rax], 0
loc_24EA9:
add rsp, 20h
pop rbp
retn
| _QWORD * ma_free_root(_QWORD *a1, char a2)
{
_QWORD *result; // rax
_QWORD *v3; // [rsp+0h] [rbp-20h]
_QWORD *v4; // [rsp+0h] [rbp-20h]
_QWORD *v5; // [rsp+8h] [rbp-18h]
_QWORD *v6; // [rsp+8h] [rbp-18h]
if ( a1 )
{
if ( (a2 & 1) == 0 )
a1[2] = 0LL;
v5 = (_QWORD *)a1[1];
while ( v5 )
{
v3 = v5;
v5 = (_QWORD *)*v5;
if ( v3 != (_QWORD *)a1[2] )
free(v3);
}
v6 = (_QWORD *)*a1;
while ( v6 )
{
v4 = v6;
v6 = (_QWORD *)*v6;
if ( v4 != (_QWORD *)a1[2] )
free(v4);
}
*a1 = 0LL;
a1[1] = 0LL;
result = a1;
if ( a1[2] )
{
*a1 = a1[2];
*(_QWORD *)(*a1 + 8LL) = *(_QWORD *)(a1[2] + 16LL) - 24LL;
result = (_QWORD *)*a1;
*(_QWORD *)*a1 = 0LL;
}
}
return result;
}
| ma_free_root:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
CMP qword ptr [RBP + -0x8],0x0
JNZ 0x00124dbb
JMP 0x00124ea9
LAB_00124dbb:
MOV EAX,dword ptr [RBP + -0xc]
AND EAX,0x1
CMP EAX,0x0
JNZ 0x00124dd2
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x10],0x0
LAB_00124dd2:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x18],RAX
LAB_00124dde:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x00124e11
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RCX + 0x10]
JZ 0x00124e0f
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00113520
LAB_00124e0f:
JMP 0x00124dde
LAB_00124e11:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
LAB_00124e1c:
CMP qword ptr [RBP + -0x18],0x0
JZ 0x00124e4f
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
MOV RAX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,qword ptr [RCX + 0x10]
JZ 0x00124e4d
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x00113520
LAB_00124e4d:
JMP 0x00124e1c
LAB_00124e4f:
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX + 0x8],0x0
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x10],0x0
JZ 0x00124ea9
MOV RAX,qword ptr [RBP + -0x8]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RAX],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x10]
MOV RCX,qword ptr [RAX + 0x10]
SUB RCX,0x18
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RAX],0x0
LAB_00124ea9:
ADD RSP,0x20
POP RBP
RET
|
void ma_free_root(long *param_1,uint param_2)
{
int8 *puVar1;
int8 *local_20;
if (param_1 != (long *)0x0) {
if ((param_2 & 1) == 0) {
param_1[2] = 0;
}
puVar1 = (int8 *)param_1[1];
while (local_20 = puVar1, local_20 != (int8 *)0x0) {
puVar1 = (int8 *)*local_20;
if (local_20 != (int8 *)param_1[2]) {
free(local_20);
}
}
puVar1 = (int8 *)*param_1;
while (local_20 = puVar1, local_20 != (int8 *)0x0) {
puVar1 = (int8 *)*local_20;
if (local_20 != (int8 *)param_1[2]) {
free(local_20);
}
}
*param_1 = 0;
param_1[1] = 0;
if (param_1[2] != 0) {
*param_1 = param_1[2];
*(long *)(*param_1 + 8) = *(long *)(param_1[2] + 0x10) + -0x18;
*(int8 *)*param_1 = 0;
}
}
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.