index int64 0 66.5k | func_name stringlengths 2 5.36k | func_dep stringlengths 16 2.19k | func stringlengths 8 55.3k | test stringlengths 0 7.07k | opt stringclasses 4 values | language stringclasses 2 values | asm stringlengths 0 45.4k | ida_asm stringlengths 0 44.7k | ida_pseudo stringlengths 0 44.3k | ghidra_asm stringlengths 0 49.1k | ghidra_pseudo stringlengths 0 64.7k |
|---|---|---|---|---|---|---|---|---|---|---|---|
28,200 | sessions::init_post_universe() | untodesu[P]voxelius/game/server/sessions.cc | void sessions::init_post_universe(void)
{
for(auto &dimension : globals::dimensions) {
dimension_listeners.push_back(DimensionListener(dimension.second));
dimension.second->entities.on_destroy<entt::entity>().connect<&DimensionListener::on_destroy_entity>(dimension_listeners.back());
}
} | O1 | cpp | sessions::init_post_universe():
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
leaq 0xe0313(%rip), %rax # 0x10a9a0
movq 0x10(%rax), %r12
testq %r12, %r12
je 0x2a6eb
leaq 0xe0523(%rip), %rbx # 0x10abc0
leaq 0x8(%rsp), %r14
movl $0x278, %r13d # imm = 0x278
movq %rsp, %r15
movq 0x28(%r12), %rax
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2e7ec
movq 0x28(%r12), %rax
addq %r13, %rax
movq %rax, (%rsp)
movq 0xe04f5(%rip), %rdx # 0x10abc8
addq $-0x8, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x2b9ce
movq (%r12), %r12
testq %r12, %r12
jne 0x2a6ab
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
| _ZN8sessions18init_post_universeEv:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 20h
lea rax, _ZN7globals10dimensionsB5cxx11E; globals::dimensions
mov r12, [rax+10h]
test r12, r12
jz short loc_2A6EB
lea rbx, _ZL19dimension_listeners; dimension_listeners
lea r14, [rsp+48h+var_40]
mov r13d, 278h
mov r15, rsp
loc_2A6AB:
mov rax, [r12+28h]
mov [rsp+48h+var_40], rax
mov rdi, rbx
mov rsi, r14
call _ZNSt6vectorI17DimensionListenerSaIS0_EE12emplace_backIJS0_EEERS0_DpOT_; std::vector<DimensionListener>::emplace_back<DimensionListener>(DimensionListener &&)
mov rax, [r12+28h]
add rax, r13
mov [rsp+48h+var_48], rax
mov rdx, qword ptr cs:_ZL19dimension_listeners+8; dimension_listeners
add rdx, 0FFFFFFFFFFFFFFF8h
mov rdi, r14
mov rsi, r15
call _ZN4entt4sinkINS_4sighIFvRNS_14basic_registryINS_6entityESaIS3_EEES3_ES4_EEE7connectITnDaXadL_ZN17DimensionListener17on_destroy_entityERKS5_S3_EEJRSB_EEENS_10connectionEDpOT0_
mov r12, [r12]
test r12, r12
jnz short loc_2A6AB
loc_2A6EB:
add rsp, 20h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
| long long * sessions::init_post_universe(sessions *this)
{
long long *result; // rax
_QWORD *i; // r12
long long v3; // [rsp+0h] [rbp-48h] BYREF
_QWORD v4[8]; // [rsp+8h] [rbp-40h] BYREF
result = &globals::dimensions[abi:cxx11];
for ( i = (_QWORD *)*(&globals::dimensions[abi:cxx11] + 2); i; i = (_QWORD *)*i )
{
v4[0] = i[5];
std::vector<DimensionListener>::emplace_back<DimensionListener>(&dimension_listeners, v4);
v3 = i[5] + 632LL;
result = (long long *)ZN4entt4sinkINS_4sighIFvRNS_14basic_registryINS_6entityESaIS3_EEES3_ES4_EEE7connectITnDaXadL_ZN17DimensionListener17on_destroy_entityERKS5_S3_EEJRSB_EEENS_10connectionEDpOT0_(
v4,
&v3,
*((_QWORD *)&dimension_listeners + 1) - 8LL);
}
return result;
}
| init_post_universe:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x20
LEA RAX,[0x20a9a0]
MOV R12,qword ptr [RAX + 0x10]
TEST R12,R12
JZ 0x0012a6eb
LEA RBX,[0x20abc0]
LEA R14,[RSP + 0x8]
MOV R13D,0x278
MOV R15,RSP
LAB_0012a6ab:
MOV RAX,qword ptr [R12 + 0x28]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,RBX
MOV RSI,R14
CALL 0x0012e7ec
MOV RAX,qword ptr [R12 + 0x28]
ADD RAX,R13
MOV qword ptr [RSP],RAX
MOV RDX,qword ptr [0x0020abc8]
ADD RDX,-0x8
MOV RDI,R14
MOV RSI,R15
CALL 0x0012b9ce
MOV R12,qword ptr [R12]
TEST R12,R12
JNZ 0x0012a6ab
LAB_0012a6eb:
ADD RSP,0x20
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* sessions::init_post_universe() */
void sessions::init_post_universe(void)
{
long *plVar1;
long local_48;
long local_40 [3];
if (globals::dimensions_abi_cxx11_._16_8_ != 0) {
plVar1 = (long *)globals::dimensions_abi_cxx11_._16_8_;
do {
local_40[0] = plVar1[5];
std::vector<DimensionListener,std::allocator<DimensionListener>>::
emplace_back<DimensionListener>
((vector<DimensionListener,std::allocator<DimensionListener>> *)&dimension_listeners
,(DimensionListener *)local_40);
local_48 = plVar1[5] + 0x278;
_ZN4entt4sinkINS_4sighIFvRNS_14basic_registryINS_6entityESaIS3_EEES3_ES4_EEE7connectITnDaXadL_ZN17DimensionListener17on_destroy_entityERKS5_S3_EEJRSB_EEENS_10connectionEDpOT0_
((DimensionListener *)local_40,&local_48,DAT_0020abc8 + -8);
plVar1 = (long *)*plVar1;
} while (plVar1 != (long *)0x0);
}
return;
}
| |
28,201 | sessions::init_post_universe() | untodesu[P]voxelius/game/server/sessions.cc | void sessions::init_post_universe(void)
{
for(auto &dimension : globals::dimensions) {
dimension_listeners.push_back(DimensionListener(dimension.second));
dimension.second->entities.on_destroy<entt::entity>().connect<&DimensionListener::on_destroy_entity>(dimension_listeners.back());
}
} | O2 | cpp | sessions::init_post_universe():
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
leaq 0xe6b29(%rip), %r12 # 0x10d9f0
addq $0x10, %r12
leaq 0xe6d3e(%rip), %rbx # 0x10dc10
leaq 0x8(%rsp), %r14
movl $0x278, %r13d # imm = 0x278
movq %rsp, %r15
movq (%r12), %r12
testq %r12, %r12
je 0x26f22
movq 0x28(%r12), %rax
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2af7c
movq 0x28(%r12), %rax
addq %r13, %rax
movq %rax, (%rsp)
movq 0xe6d07(%rip), %rdx # 0x10dc18
addq $-0x8, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x28028
jmp 0x26ee0
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
| _ZN8sessions18init_post_universeEv:
push r15
push r14
push r13
push r12
push rbx
sub rsp, 20h
lea r12, _ZN7globals10dimensionsB5cxx11E; globals::dimensions
add r12, 10h
lea rbx, _ZL19dimension_listeners; dimension_listeners
lea r14, [rsp+48h+var_40]
mov r13d, 278h
mov r15, rsp
loc_26EE0:
mov r12, [r12]
test r12, r12
jz short loc_26F22
mov rax, [r12+28h]
mov [rsp+48h+var_40], rax
mov rdi, rbx
mov rsi, r14
call _ZNSt6vectorI17DimensionListenerSaIS0_EE12emplace_backIJS0_EEERS0_DpOT_; std::vector<DimensionListener>::emplace_back<DimensionListener>(DimensionListener &&)
mov rax, [r12+28h]
add rax, r13
mov [rsp+48h+var_48], rax
mov rdx, qword ptr cs:_ZL19dimension_listeners+8; dimension_listeners
add rdx, 0FFFFFFFFFFFFFFF8h
mov rdi, r14
mov rsi, r15
call _ZN4entt4sinkINS_4sighIFvRNS_14basic_registryINS_6entityESaIS3_EEES3_ES4_EEE7connectITnDaXadL_ZN17DimensionListener17on_destroy_entityERKS5_S3_EEJRSB_EEENS_10connectionEDpOT0_
jmp short loc_26EE0
loc_26F22:
add rsp, 20h
pop rbx
pop r12
pop r13
pop r14
pop r15
retn
| long long sessions::init_post_universe(sessions *this)
{
long long *v1; // r12
long long result; // rax
long long v3; // [rsp+0h] [rbp-48h] BYREF
_QWORD v4[8]; // [rsp+8h] [rbp-40h] BYREF
v1 = &globals::dimensions[abi:cxx11] + 2;
while ( 1 )
{
v1 = (long long *)*v1;
if ( !v1 )
break;
v4[0] = v1[5];
std::vector<DimensionListener>::emplace_back<DimensionListener>(&dimension_listeners, v4);
v3 = v1[5] + 632;
result = ZN4entt4sinkINS_4sighIFvRNS_14basic_registryINS_6entityESaIS3_EEES3_ES4_EEE7connectITnDaXadL_ZN17DimensionListener17on_destroy_entityERKS5_S3_EEJRSB_EEENS_10connectionEDpOT0_(
v4,
&v3,
*((_QWORD *)&dimension_listeners + 1) - 8LL);
}
return result;
}
| init_post_universe:
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x20
LEA R12,[0x20d9f0]
ADD R12,0x10
LEA RBX,[0x20dc10]
LEA R14,[RSP + 0x8]
MOV R13D,0x278
MOV R15,RSP
LAB_00126ee0:
MOV R12,qword ptr [R12]
TEST R12,R12
JZ 0x00126f22
MOV RAX,qword ptr [R12 + 0x28]
MOV qword ptr [RSP + 0x8],RAX
MOV RDI,RBX
MOV RSI,R14
CALL 0x0012af7c
MOV RAX,qword ptr [R12 + 0x28]
ADD RAX,R13
MOV qword ptr [RSP],RAX
MOV RDX,qword ptr [0x0020dc18]
ADD RDX,-0x8
MOV RDI,R14
MOV RSI,R15
CALL 0x00128028
JMP 0x00126ee0
LAB_00126f22:
ADD RSP,0x20
POP RBX
POP R12
POP R13
POP R14
POP R15
RET
|
/* sessions::init_post_universe() */
void sessions::init_post_universe(void)
{
long *plVar1;
long local_48;
int8 local_40 [3];
plVar1 = (long *)(globals::dimensions_abi_cxx11_ + 0x10);
while (plVar1 = (long *)*plVar1, plVar1 != (long *)0x0) {
local_40[0] = plVar1[5];
std::vector<DimensionListener,std::allocator<DimensionListener>>::
emplace_back<DimensionListener>
((vector<DimensionListener,std::allocator<DimensionListener>> *)&dimension_listeners,
(DimensionListener *)local_40);
local_48 = plVar1[5] + 0x278;
_ZN4entt4sinkINS_4sighIFvRNS_14basic_registryINS_6entityESaIS3_EEES3_ES4_EEE7connectITnDaXadL_ZN17DimensionListener17on_destroy_entityERKS5_S3_EEJRSB_EEENS_10connectionEDpOT0_
((DimensionListener *)local_40,&local_48,DAT_0020dc18 + -8);
}
return;
}
| |
28,202 | common_chat_format_single[abi:cxx11](minja::chat_template const&, std::vector<common_chat_msg, std::allocator<common_chat_msg>> const&, common_chat_msg const&, bool, bool) | monkey531[P]llama/common/common.cpp | std::string common_chat_format_single(
const common_chat_template & tmpl,
const std::vector<common_chat_msg> & past_msg,
const common_chat_msg & new_msg,
bool add_ass,
bool use_jinja) {
std::ostringstream ss;
auto fmt_past_msg = past_msg.empty() ? "" : common_chat_apply_template(tmpl, past_msg, false, use_jinja);
std::vector<common_chat_msg> chat_new(past_msg);
// if the past_msg ends with a newline, we must preserve it in the formatted version
if (add_ass && !fmt_past_msg.empty() && fmt_past_msg.back() == '\n') {
ss << "\n";
};
// format chat with new_msg
chat_new.push_back(new_msg);
auto fmt_new_msg = common_chat_apply_template(tmpl, chat_new, add_ass, use_jinja);
// get the diff part
ss << fmt_new_msg.substr(fmt_past_msg.size(), fmt_new_msg.size() - fmt_past_msg.size());
return ss.str();
} | O2 | cpp | common_chat_format_single[abi:cxx11](minja::chat_template const&, std::vector<common_chat_msg, std::allocator<common_chat_msg>> const&, common_chat_msg const&, bool, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1f8, %rsp # imm = 0x1F8
movl %r9d, %r15d
movl %r8d, %ebp
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x80(%rsp), %rdi
callq 0x28ed0
movq (%r13), %rax
movzbl %r15b, %r15d
cmpq 0x8(%r13), %rax
je 0xc42c5
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %r13, %rdx
xorl %ecx, %ecx
movl %r15d, %r8d
callq 0xc3dba
jmp 0xc42db
leaq 0x31a2c(%rip), %rsi # 0xf5cf8
leaq 0x8(%rsp), %rdi
leaq 0x40(%rsp), %rdx
callq 0x3bddc
leaq 0x28(%rsp), %rdi
movq %r13, %rsi
callq 0xc940c
testb %bpl, %bpl
je 0xc4317
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0xc4317
movq 0x8(%rsp), %rcx
cmpb $0xa, -0x1(%rcx,%rax)
jne 0xc4317
leaq 0x319ed(%rip), %rsi # 0xf5cf7
leaq 0x80(%rsp), %rdi
callq 0x28ae0
leaq 0x28(%rsp), %rdi
movq %r12, %rsi
callq 0xc9466
movzbl %bpl, %ecx
leaq 0x40(%rsp), %rdi
leaq 0x28(%rsp), %rdx
movq %r14, %rsi
movl %r15d, %r8d
callq 0xc3dba
movq 0x10(%rsp), %rdx
leaq 0x40(%rsp), %rsi
movq 0x8(%rsi), %rcx
subq %rdx, %rcx
leaq 0x60(%rsp), %rdi
callq 0x28bb0
leaq 0x80(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x289b0
leaq 0x60(%rsp), %rdi
callq 0x29678
leaq 0x88(%rsp), %rsi
movq %rbx, %rdi
callq 0x29150
leaq 0x40(%rsp), %rdi
callq 0x29678
leaq 0x28(%rsp), %rdi
callq 0x7ac18
leaq 0x8(%rsp), %rdi
callq 0x29678
leaq 0x80(%rsp), %rdi
callq 0x28240
movq %rbx, %rax
addq $0x1f8, %rsp # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xc43c6
movq %rax, %rbx
jmp 0xc4409
jmp 0xc43dc
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x29678
jmp 0xc43df
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x29678
jmp 0xc43f5
jmp 0xc43f2
movq %rax, %rbx
jmp 0xc43ff
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x7ac18
leaq 0x8(%rsp), %rdi
callq 0x29678
leaq 0x80(%rsp), %rdi
callq 0x28240
movq %rbx, %rdi
callq 0x293c0
| _Z25common_chat_format_singleB5cxx11RKN5minja13chat_templateERKSt6vectorI15common_chat_msgSaIS4_EERKS4_bb:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 1F8h
mov r15d, r9d
mov ebp, r8d
mov r12, rcx
mov r13, rdx
mov r14, rsi
mov rbx, rdi
lea rdi, [rsp+228h+var_1A8]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void)
mov rax, [r13+0]
movzx r15d, r15b
cmp rax, [r13+8]
jz short loc_C42C5
lea rdi, [rsp+228h+var_220]
mov rsi, r14
mov rdx, r13
xor ecx, ecx
mov r8d, r15d
call _Z26common_chat_apply_templateB5cxx11RKN5minja13chat_templateERKSt6vectorI15common_chat_msgSaIS4_EEbb; common_chat_apply_template(minja::chat_template const&,std::vector<common_chat_msg> const&,bool,bool)
jmp short loc_C42DB
loc_C42C5:
lea rsi, aDataDone+0Eh; ""
lea rdi, [rsp+228h+var_220]
lea rdx, [rsp+228h+var_1E8]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
loc_C42DB:
lea rdi, [rsp+228h+var_200]
mov rsi, r13
call _ZNSt6vectorI15common_chat_msgSaIS0_EEC2ERKS2_; std::vector<common_chat_msg>::vector(std::vector<common_chat_msg> const&)
test bpl, bpl
jz short loc_C4317
mov rax, [rsp+228h+var_218]
test rax, rax
jz short loc_C4317
mov rcx, [rsp+228h+var_220]
cmp byte ptr [rcx+rax-1], 0Ah
jnz short loc_C4317
lea rsi, aDataDone+0Dh; "\n"
lea rdi, [rsp+228h+var_1A8]
call __ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc; std::operator<<<std::char_traits<char>>(std::ostream &,char const*)
loc_C4317:
lea rdi, [rsp+228h+var_200]
mov rsi, r12
call _ZNSt6vectorI15common_chat_msgSaIS0_EE9push_backERKS0_; std::vector<common_chat_msg>::push_back(common_chat_msg const&)
movzx ecx, bpl
lea rdi, [rsp+228h+var_1E8]
lea rdx, [rsp+228h+var_200]
mov rsi, r14
mov r8d, r15d
call _Z26common_chat_apply_templateB5cxx11RKN5minja13chat_templateERKSt6vectorI15common_chat_msgSaIS4_EEbb; common_chat_apply_template(minja::chat_template const&,std::vector<common_chat_msg> const&,bool,bool)
mov rdx, [rsp+228h+var_218]
lea rsi, [rsp+228h+var_1E8]
mov rcx, [rsi+8]
sub rcx, rdx
lea rdi, [rsp+228h+var_1C8]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
lea rdi, [rsp+228h+var_1A8]
lea rsi, [rsp+228h+var_1C8]
call __ZStlsIcSt11char_traitsIcESaIcEERSt13basic_ostreamIT_T0_ES7_RKNSt7__cxx1112basic_stringIS4_S5_T1_EE; std::operator<<<char>(std::ostream &,std::string const&)
lea rdi, [rsp+228h+var_1C8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rsi, [rsp+228h+var_1A0]
mov rdi, rbx
call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void)
lea rdi, [rsp+228h+var_1E8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+228h+var_200]
call _ZNSt6vectorI15common_chat_msgSaIS0_EED2Ev; std::vector<common_chat_msg>::~vector()
lea rdi, [rsp+228h+var_220]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
lea rdi, [rsp+228h+var_1A8]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream()
mov rax, rbx
add rsp, 1F8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_C43C6:
mov rbx, rax
jmp short loc_C4409
jmp short loc_C43DC
mov rbx, rax
lea rdi, [rsp+arg_58]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_C43DF
loc_C43DC:
mov rbx, rax
loc_C43DF:
lea rdi, [rsp+arg_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_C43F5
jmp short loc_C43F2
mov rbx, rax
jmp short loc_C43FF
loc_C43F2:
mov rbx, rax
loc_C43F5:
lea rdi, [rsp+arg_20]
call _ZNSt6vectorI15common_chat_msgSaIS0_EED2Ev; std::vector<common_chat_msg>::~vector()
loc_C43FF:
lea rdi, [rsp+arg_0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
loc_C4409:
lea rdi, [rsp+arg_78]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED1Ev; std::ostringstream::~ostringstream()
mov rdi, rbx
call __Unwind_Resume
| long long common_chat_format_single[abi:cxx11](
long long a1,
const common_chat_inputs *a2,
long long *a3,
long long a4,
unsigned __int8 a5,
unsigned __int8 a6)
{
long long v11; // [rsp+8h] [rbp-220h] BYREF
long long v12; // [rsp+10h] [rbp-218h]
long long v13[3]; // [rsp+28h] [rbp-200h] BYREF
_QWORD v14[4]; // [rsp+40h] [rbp-1E8h] BYREF
_BYTE v15[32]; // [rsp+60h] [rbp-1C8h] BYREF
_BYTE v16[8]; // [rsp+80h] [rbp-1A8h] BYREF
_BYTE v17[416]; // [rsp+88h] [rbp-1A0h] BYREF
std::ostringstream::basic_ostringstream(v16);
if ( *a3 == a3[1] )
std::string::basic_string<std::allocator<char>>(&v11, (long long)"");
else
common_chat_apply_template[abi:cxx11](&v11, a2, a3, 0, a6);
std::vector<common_chat_msg>::vector(v13, a3);
if ( a5 && v12 && *(_BYTE *)(v11 + v12 - 1) == 10 )
std::operator<<<std::char_traits<char>>(v16, "\n");
std::vector<common_chat_msg>::push_back(v13, a4);
common_chat_apply_template[abi:cxx11](v14, a2, v13, a5, a6);
std::string::substr(v15, v14, v12, v14[1] - v12);
std::operator<<<char>(v16, v15);
std::string::~string(v15);
std::stringbuf::str(a1, v17);
std::string::~string(v14);
std::vector<common_chat_msg>::~vector((long long)v13);
std::string::~string(&v11);
std::ostringstream::~ostringstream(v16);
return a1;
}
| common_chat_format_single[abi:cxx11]:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x1f8
MOV R15D,R9D
MOV EBP,R8D
MOV R12,RCX
MOV R13,RDX
MOV R14,RSI
MOV RBX,RDI
LEA RDI,[RSP + 0x80]
CALL 0x00128ed0
MOV RAX,qword ptr [R13]
MOVZX R15D,R15B
CMP RAX,qword ptr [R13 + 0x8]
JZ 0x001c42c5
LAB_001c42ae:
LEA RDI,[RSP + 0x8]
MOV RSI,R14
MOV RDX,R13
XOR ECX,ECX
MOV R8D,R15D
CALL 0x001c3dba
JMP 0x001c42db
LAB_001c42c5:
LEA RSI,[0x1f5cf8]
LEA RDI,[RSP + 0x8]
LEA RDX,[RSP + 0x40]
CALL 0x0013bddc
LAB_001c42db:
LEA RDI,[RSP + 0x28]
MOV RSI,R13
CALL 0x001c940c
TEST BPL,BPL
JZ 0x001c4317
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x001c4317
MOV RCX,qword ptr [RSP + 0x8]
CMP byte ptr [RCX + RAX*0x1 + -0x1],0xa
JNZ 0x001c4317
LAB_001c4303:
LEA RSI,[0x1f5cf7]
LEA RDI,[RSP + 0x80]
CALL 0x00128ae0
LAB_001c4317:
LEA RDI,[RSP + 0x28]
MOV RSI,R12
CALL 0x001c9466
LAB_001c4324:
MOVZX ECX,BPL
LEA RDI,[RSP + 0x40]
LEA RDX,[RSP + 0x28]
MOV RSI,R14
MOV R8D,R15D
CALL 0x001c3dba
MOV RDX,qword ptr [RSP + 0x10]
LEA RSI,[RSP + 0x40]
MOV RCX,qword ptr [RSI + 0x8]
SUB RCX,RDX
LAB_001c434e:
LEA RDI,[RSP + 0x60]
CALL 0x00128bb0
LAB_001c4358:
LEA RDI,[RSP + 0x80]
LEA RSI,[RSP + 0x60]
CALL 0x001289b0
LEA RDI,[RSP + 0x60]
CALL 0x00129678
LEA RSI,[RSP + 0x88]
LAB_001c437c:
MOV RDI,RBX
CALL 0x00129150
LAB_001c4384:
LEA RDI,[RSP + 0x40]
CALL 0x00129678
LEA RDI,[RSP + 0x28]
CALL 0x0017ac18
LEA RDI,[RSP + 0x8]
CALL 0x00129678
LEA RDI,[RSP + 0x80]
CALL 0x00128240
MOV RAX,RBX
ADD RSP,0x1f8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* common_chat_format_single[abi:cxx11](minja::chat_template const&, std::vector<common_chat_msg,
std::allocator<common_chat_msg> > const&, common_chat_msg const&, bool, bool) */
chat_template *
common_chat_format_single_abi_cxx11_
(chat_template *param_1,vector *param_2,common_chat_msg *param_3,bool param_4,bool param_5
)
{
int7 in_register_00000009;
long local_220;
long local_218;
vector<common_chat_msg,std::allocator<common_chat_msg>> local_200 [24];
allocator local_1e8 [32];
string local_1c8 [32];
ostringstream local_1a8 [376];
std::__cxx11::ostringstream::ostringstream(local_1a8);
if (*(long *)param_3 == *(long *)(param_3 + 8)) {
/* try { // try from 001c42c5 to 001c42da has its CatchHandler @ 001c43c4 */
std::__cxx11::string::string<std::allocator<char>>((string *)&local_220,"",local_1e8);
}
else {
/* try { // try from 001c42ae to 001c42c2 has its CatchHandler @ 001c43c6 */
common_chat_apply_template_abi_cxx11_
((chat_template *)&local_220,param_2,SUB81(param_3,0),false);
}
/* try { // try from 001c42db to 001c42e7 has its CatchHandler @ 001c43ed */
std::vector<common_chat_msg,std::allocator<common_chat_msg>>::vector(local_200,param_3);
if (((param_5) && (local_218 != 0)) && (*(char *)(local_220 + -1 + local_218) == '\n')) {
/* try { // try from 001c4303 to 001c4323 has its CatchHandler @ 001c43f2 */
std::operator<<((ostream *)local_1a8,"\n");
}
std::vector<common_chat_msg,std::allocator<common_chat_msg>>::push_back
(local_200,(common_chat_msg *)CONCAT71(in_register_00000009,param_4));
/* try { // try from 001c4324 to 001c433c has its CatchHandler @ 001c43eb */
common_chat_apply_template_abi_cxx11_((chat_template *)local_1e8,param_2,false,param_5);
/* try { // try from 001c434e to 001c4357 has its CatchHandler @ 001c43dc */
std::__cxx11::string::substr((ulong)local_1c8,(ulong)local_1e8);
/* try { // try from 001c4358 to 001c4369 has its CatchHandler @ 001c43cd */
std::operator<<((ostream *)local_1a8,local_1c8);
std::__cxx11::string::~string(local_1c8);
/* try { // try from 001c437c to 001c4383 has its CatchHandler @ 001c43cb */
std::__cxx11::stringbuf::str();
std::__cxx11::string::~string((string *)local_1e8);
std::vector<common_chat_msg,std::allocator<common_chat_msg>>::~vector(local_200);
std::__cxx11::string::~string((string *)&local_220);
std::__cxx11::ostringstream::~ostringstream(local_1a8);
return param_1;
}
| |
28,203 | common_chat_format_single[abi:cxx11](minja::chat_template const&, std::vector<common_chat_msg, std::allocator<common_chat_msg>> const&, common_chat_msg const&, bool, bool) | monkey531[P]llama/common/common.cpp | std::string common_chat_format_single(
const common_chat_template & tmpl,
const std::vector<common_chat_msg> & past_msg,
const common_chat_msg & new_msg,
bool add_ass,
bool use_jinja) {
std::ostringstream ss;
auto fmt_past_msg = past_msg.empty() ? "" : common_chat_apply_template(tmpl, past_msg, false, use_jinja);
std::vector<common_chat_msg> chat_new(past_msg);
// if the past_msg ends with a newline, we must preserve it in the formatted version
if (add_ass && !fmt_past_msg.empty() && fmt_past_msg.back() == '\n') {
ss << "\n";
};
// format chat with new_msg
chat_new.push_back(new_msg);
auto fmt_new_msg = common_chat_apply_template(tmpl, chat_new, add_ass, use_jinja);
// get the diff part
ss << fmt_new_msg.substr(fmt_past_msg.size(), fmt_new_msg.size() - fmt_past_msg.size());
return ss.str();
} | O3 | cpp | common_chat_format_single[abi:cxx11](minja::chat_template const&, std::vector<common_chat_msg, std::allocator<common_chat_msg>> const&, common_chat_msg const&, bool, bool):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1f8, %rsp # imm = 0x1F8
movl %r9d, %r15d
movl %r8d, %ebp
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x80(%rsp), %rdi
callq 0x1fe60
movq (%r13), %rax
movzbl %r15b, %r15d
cmpq 0x8(%r13), %rax
je 0x10a38f
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %r13, %rdx
xorl %ecx, %ecx
movl %r15d, %r8d
callq 0x109be8
jmp 0x10a3ac
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x3f926(%rip), %rdx # 0x149cc5
leaq 0x8(%rsp), %rdi
movq %rdx, %rsi
callq 0x4b514
leaq 0x48(%rsp), %rdi
movq %r13, %rsi
callq 0x111eae
testb %bpl, %bpl
je 0x10a3ed
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x10a3ed
movq 0x8(%rsp), %rcx
cmpb $0xa, -0x1(%rcx,%rax)
jne 0x10a3ed
leaq 0x3f8e9(%rip), %rsi # 0x149cc4
leaq 0x80(%rsp), %rdi
movl $0x1, %edx
callq 0x1fc50
leaq 0x48(%rsp), %rdi
movq %r12, %rsi
callq 0x111f46
movzbl %bpl, %ecx
leaq 0x60(%rsp), %rdi
leaq 0x48(%rsp), %rdx
movq %r14, %rsi
movl %r15d, %r8d
callq 0x109be8
movq 0x10(%rsp), %rdx
leaq 0x60(%rsp), %rsi
movq 0x8(%rsi), %rcx
subq %rdx, %rcx
leaq 0x28(%rsp), %rdi
callq 0x1fb50
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
leaq 0x80(%rsp), %rdi
callq 0x1fc50
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10a460
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1fae0
leaq 0x88(%rsp), %rsi
movq %rbx, %rdi
callq 0x20110
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10a48b
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x1fae0
leaq 0x48(%rsp), %rdi
callq 0x8a538
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10a4b0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1fae0
movq 0x9aab9(%rip), %rsi # 0x1a4f70
leaq 0x80(%rsp), %rdi
callq 0x1f5c0
leaq 0xf0(%rsp), %rdi
callq 0x1f380
movq %rbx, %rax
addq $0x1f8, %rsp # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x10a4e8
movq %rax, %rbx
jmp 0x10a55e
jmp 0x10a50f
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10a512
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x1fae0
jmp 0x10a512
movq %rax, %rbx
leaq 0x70(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10a539
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x1fae0
jmp 0x10a539
jmp 0x10a536
movq %rax, %rbx
jmp 0x10a543
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x8a538
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x10a55e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x1fae0
movq 0x9aa0b(%rip), %rsi # 0x1a4f70
leaq 0x80(%rsp), %rdi
callq 0x1f5c0
leaq 0xf0(%rsp), %rdi
callq 0x1f380
movq %rbx, %rdi
callq 0x20380
| _Z25common_chat_format_singleB5cxx11RKN5minja13chat_templateERKSt6vectorI15common_chat_msgSaIS4_EERKS4_bb:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 1F8h
mov r15d, r9d
mov ebp, r8d
mov r12, rcx
mov r13, rdx
mov r14, rsi
mov rbx, rdi
lea rdi, [rsp+228h+var_1A8]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::ostringstream::basic_ostringstream(void)
mov rax, [r13+0]
movzx r15d, r15b
cmp rax, [r13+8]
jz short loc_10A38F
lea rdi, [rsp+228h+var_220]
mov rsi, r14
mov rdx, r13
xor ecx, ecx
mov r8d, r15d
call _Z26common_chat_apply_templateB5cxx11RKN5minja13chat_templateERKSt6vectorI15common_chat_msgSaIS4_EEbb; common_chat_apply_template(minja::chat_template const&,std::vector<common_chat_msg> const&,bool,bool)
jmp short loc_10A3AC
loc_10A38F:
lea rax, [rsp+228h+var_210]
mov [rax-10h], rax
lea rdx, aDataDone+0Eh; ""
lea rdi, [rsp+228h+var_220]
mov rsi, rdx
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)
loc_10A3AC:
lea rdi, [rsp+228h+var_1E0]
mov rsi, r13
call _ZNSt6vectorI15common_chat_msgSaIS0_EEC2ERKS2_; std::vector<common_chat_msg>::vector(std::vector<common_chat_msg> const&)
test bpl, bpl
jz short loc_10A3ED
mov rax, [rsp+228h+var_218]
test rax, rax
jz short loc_10A3ED
mov rcx, [rsp+228h+var_220]
cmp byte ptr [rcx+rax-1], 0Ah
jnz short loc_10A3ED
lea rsi, aDataDone+0Dh; "\n"
lea rdi, [rsp+228h+var_1A8]
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)
loc_10A3ED:
lea rdi, [rsp+228h+var_1E0]
mov rsi, r12
call _ZNSt6vectorI15common_chat_msgSaIS0_EE9push_backERKS0_; std::vector<common_chat_msg>::push_back(common_chat_msg const&)
movzx ecx, bpl
lea rdi, [rsp+228h+var_1C8]
lea rdx, [rsp+228h+var_1E0]
mov rsi, r14
mov r8d, r15d
call _Z26common_chat_apply_templateB5cxx11RKN5minja13chat_templateERKSt6vectorI15common_chat_msgSaIS4_EEbb; common_chat_apply_template(minja::chat_template const&,std::vector<common_chat_msg> const&,bool,bool)
mov rdx, [rsp+228h+var_218]
lea rsi, [rsp+228h+var_1C8]
mov rcx, [rsi+8]
sub rcx, rdx
lea rdi, [rsp+228h+var_200]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong)
mov rsi, [rsp+228h+var_200]
mov rdx, [rsp+228h+var_1F8]
lea rdi, [rsp+228h+var_1A8]
call __ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l; std::__ostream_insert<char,std::char_traits<char>>(std::ostream &,char const*,long)
lea rax, [rsp+228h+var_1F0]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_10A460
mov rsi, [rsp+228h+var_1F0]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_10A460:
lea rsi, [rsp+228h+var_1A0]
mov rdi, rbx
call __ZNKSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void)
lea rax, [rsp+228h+var_1B8]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_10A48B
mov rsi, [rsp+228h+var_1B8]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_10A48B:
lea rdi, [rsp+228h+var_1E0]
call _ZNSt6vectorI15common_chat_msgSaIS0_EED2Ev; std::vector<common_chat_msg>::~vector()
lea rax, [rsp+228h+var_210]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_10A4B0
mov rsi, [rsp+228h+var_210]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_10A4B0:
mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+228h+var_1A8]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream()
lea rdi, [rsp+228h+var_138]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rax, rbx
add rsp, 1F8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short $+2
loc_10A4E8:
mov rbx, rax
jmp short loc_10A55E
jmp short loc_10A50F
mov rbx, rax
lea rax, [rsp+arg_30]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_10A512
mov rsi, [rsp+arg_30]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_10A512
loc_10A50F:
mov rbx, rax
loc_10A512:
lea rax, [rsp+arg_68]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_10A539
mov rsi, [rsp+arg_68]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_10A539
jmp short loc_10A536
mov rbx, rax
jmp short loc_10A543
loc_10A536:
mov rbx, rax
loc_10A539:
lea rdi, [rsp+arg_40]
call _ZNSt6vectorI15common_chat_msgSaIS0_EED2Ev; std::vector<common_chat_msg>::~vector()
loc_10A543:
lea rax, [rsp+arg_10]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_10A55E
mov rsi, [rsp+arg_10]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_10A55E:
mov rsi, cs:_ZTTNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+arg_78]
call __ZNSt7__cxx1119basic_ostringstreamIcSt11char_traitsIcESaIcEED2Ev; std::ostringstream::~ostringstream()
lea rdi, [rsp+arg_E8]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rdi, rbx
call __Unwind_Resume
| long long common_chat_format_single[abi:cxx11](
long long a1,
const common_chat_inputs *a2,
long long *a3,
long long a4,
unsigned __int8 a5,
unsigned __int8 a6)
{
char *v11; // [rsp+8h] [rbp-220h] BYREF
long long v12; // [rsp+10h] [rbp-218h]
_QWORD v13[2]; // [rsp+18h] [rbp-210h] BYREF
void *v14[2]; // [rsp+28h] [rbp-200h] BYREF
long long v15; // [rsp+38h] [rbp-1F0h] BYREF
long long v16[3]; // [rsp+48h] [rbp-1E0h] BYREF
void *v17[2]; // [rsp+60h] [rbp-1C8h] BYREF
long long v18; // [rsp+70h] [rbp-1B8h] BYREF
_BYTE v19[8]; // [rsp+80h] [rbp-1A8h] BYREF
_BYTE v20[104]; // [rsp+88h] [rbp-1A0h] BYREF
_BYTE v21[312]; // [rsp+F0h] [rbp-138h] BYREF
std::ostringstream::basic_ostringstream(v19);
if ( *a3 == a3[1] )
{
v11 = (char *)v13;
std::string::_M_construct<char const*>((long long)&v11, "", (long long)"");
}
else
{
common_chat_apply_template[abi:cxx11](&v11, a2, a3, 0, a6);
}
std::vector<common_chat_msg>::vector(v16, a3);
if ( a5 && v12 && v11[v12 - 1] == 10 )
std::__ostream_insert<char,std::char_traits<char>>(v19, "\n", 1LL);
std::vector<common_chat_msg>::push_back(v16, a4);
common_chat_apply_template[abi:cxx11](v17, a2, v16, a5, a6);
std::string::substr(v14, v17, v12, (char *)v17[1] - v12);
std::__ostream_insert<char,std::char_traits<char>>(v19, v14[0], v14[1]);
if ( v14[0] != &v15 )
operator delete(v14[0], v15 + 1);
std::stringbuf::str(a1, v20);
if ( v17[0] != &v18 )
operator delete(v17[0], v18 + 1);
std::vector<common_chat_msg>::~vector(v16);
if ( v11 != (char *)v13 )
operator delete(v11, v13[0] + 1LL);
std::ostringstream::~ostringstream(v19, &`VTT for'std::ostringstream);
std::ios_base::~ios_base((std::ios_base *)v21);
return a1;
}
| |||
28,204 | ma_SHA1Init | eloqsql/libmariadb/libmariadb/ma_sha1.c | void ma_SHA1Init(_MA_SHA1_CTX * context)
{
context->count[0] = context->count[1] = 0;
/* Load magic initialization constants.
*/
context->state[0] = 0x67452301;
context->state[1] = 0xefcdab89;
context->state[2] = 0x98badcfe;
context->state[3] = 0x10325476;
context->state[4] = 0xc3d2e1f0;
} | O3 | c | ma_SHA1Init:
pushq %rbp
movq %rsp, %rbp
movl $0x0, 0x18(%rdi)
movaps 0x6a3a(%rip), %xmm0 # 0x3c1f0
movups %xmm0, (%rdi)
movl $0xc3d2e1f0, %eax # imm = 0xC3D2E1F0
movq %rax, 0x10(%rdi)
popq %rbp
retq
| ma_SHA1Init:
push rbp
mov rbp, rsp
mov dword ptr [rdi+18h], 0
movaps xmm0, cs:xmmword_3C1F0
movups xmmword ptr [rdi], xmm0
mov eax, 0C3D2E1F0h
mov [rdi+10h], rax
pop rbp
retn
| long long ma_SHA1Init(long long a1)
{
long long result; // rax
*(_DWORD *)(a1 + 24) = 0;
*(_OWORD *)a1 = xmmword_3C1F0;
result = 3285377520LL;
*(_QWORD *)(a1 + 16) = 3285377520LL;
return result;
}
| ma_SHA1Init:
PUSH RBP
MOV RBP,RSP
MOV dword ptr [RDI + 0x18],0x0
MOVAPS XMM0,xmmword ptr [0x0013c1f0]
MOVUPS xmmword ptr [RDI],XMM0
MOV EAX,0xc3d2e1f0
MOV qword ptr [RDI + 0x10],RAX
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
void ma_SHA1Init(int8 *param_1)
{
int8 uVar1;
*(int4 *)(param_1 + 3) = 0;
uVar1 = _UNK_0013c1f8;
*param_1 = _DAT_0013c1f0;
param_1[1] = uVar1;
param_1[2] = 0xc3d2e1f0;
return;
}
| |
28,205 | my_handler_delete_with_symlink | eloqsql/mysys/my_symlink2.c | int my_handler_delete_with_symlink(const char *filename, myf sync_dir)
{
char real[FN_REFLEN];
int res= 0;
DBUG_ENTER("my_handler_delete_with_symlink");
if (my_is_symlink(filename))
{
/*
Delete the symlinked file only if the symlink is not
pointing into datadir.
*/
if (!(my_realpath(real, filename, MYF(0)) ||
mysys_test_invalid_symlink(real)))
res= my_delete(real, MYF(MY_NOSYMLINKS | sync_dir));
}
DBUG_RETURN(my_delete(filename, sync_dir) || res);
} | O3 | c | my_handler_delete_with_symlink:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x208, %rsp # imm = 0x208
movq %rsi, %rbx
movq %rdi, %r14
movq %fs:0x28, %rax
movq %rax, -0x20(%rbp)
callq 0xa0de8
testl %eax, %eax
je 0xa1432
xorl %r15d, %r15d
leaq -0x220(%rbp), %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0xa0e25
testl %eax, %eax
jne 0xa1435
leaq 0x2e477b(%rip), %rax # 0x385ba0
leaq -0x220(%rbp), %rdi
callq *(%rax)
testl %eax, %eax
je 0xa146b
xorl %r15d, %r15d
movq %r14, %rdi
movq %rbx, %rsi
callq 0x9df60
testl %eax, %eax
setne %al
movq %fs:0x28, %rcx
cmpq -0x20(%rbp), %rcx
jne 0xa1489
orb %r15b, %al
movzbl %al, %eax
andl $0x1, %eax
addq $0x208, %rsp # imm = 0x208
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rsi
orq $0x200, %rsi # imm = 0x200
leaq -0x220(%rbp), %rdi
callq 0x9df60
testl %eax, %eax
setne %r15b
jmp 0xa1435
callq 0x29270
nop
| my_handler_delete_with_symlink:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
sub rsp, 208h
mov rbx, rsi
mov r14, rdi
mov rax, fs:28h
mov [rbp+var_20], rax
call my_is_symlink
test eax, eax
jz short loc_A1432
xor r15d, r15d
lea rdi, [rbp+var_220]
mov rsi, r14
xor edx, edx
call my_realpath
test eax, eax
jnz short loc_A1435
lea rax, mysys_test_invalid_symlink
lea rdi, [rbp+var_220]
call qword ptr [rax]
test eax, eax
jz short loc_A146B
loc_A1432:
xor r15d, r15d
loc_A1435:
mov rdi, r14
mov rsi, rbx
call my_delete
test eax, eax
setnz al
mov rcx, fs:28h
cmp rcx, [rbp+var_20]
jnz short loc_A1489
or al, r15b
movzx eax, al
and eax, 1
add rsp, 208h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_A146B:
mov rsi, rbx
or rsi, 200h
lea rdi, [rbp+var_220]
call my_delete
test eax, eax
setnz r15b
jmp short loc_A1435
loc_A1489:
call ___stack_chk_fail
| long long my_handler_delete_with_symlink(const char *a1, const char *a2)
{
bool v2; // r15
_BYTE v4[512]; // [rsp+0h] [rbp-220h] BYREF
unsigned long long v5; // [rsp+200h] [rbp-20h]
v5 = __readfsqword(0x28u);
if ( !my_is_symlink((long long)a1) )
{
LABEL_4:
v2 = 0;
return v2 | (unsigned __int8)((unsigned int)my_delete((long long)a1, a2) != 0);
}
v2 = 0;
if ( !(unsigned int)my_realpath((long long)v4, a1, 0) )
{
if ( !(unsigned int)mysys_test_invalid_symlink() )
{
v2 = (unsigned int)my_delete((long long)v4, (const char *)((unsigned long long)a2 | 0x200)) != 0;
return v2 | (unsigned __int8)((unsigned int)my_delete((long long)a1, a2) != 0);
}
goto LABEL_4;
}
return v2 | (unsigned __int8)((unsigned int)my_delete((long long)a1, a2) != 0);
}
| my_handler_delete_with_symlink:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x208
MOV RBX,RSI
MOV R14,RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x20],RAX
CALL 0x001a0de8
TEST EAX,EAX
JZ 0x001a1432
XOR R15D,R15D
LEA RDI,[RBP + -0x220]
MOV RSI,R14
XOR EDX,EDX
CALL 0x001a0e25
TEST EAX,EAX
JNZ 0x001a1435
LEA RAX,[0x485ba0]
LEA RDI,[RBP + -0x220]
CALL qword ptr [RAX]
TEST EAX,EAX
JZ 0x001a146b
LAB_001a1432:
XOR R15D,R15D
LAB_001a1435:
MOV RDI,R14
MOV RSI,RBX
CALL 0x0019df60
TEST EAX,EAX
SETNZ AL
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x20]
JNZ 0x001a1489
OR AL,R15B
MOVZX EAX,AL
AND EAX,0x1
ADD RSP,0x208
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_001a146b:
MOV RSI,RBX
OR RSI,0x200
LEA RDI,[RBP + -0x220]
CALL 0x0019df60
TEST EAX,EAX
SETNZ R15B
JMP 0x001a1435
LAB_001a1489:
CALL 0x00129270
|
byte my_handler_delete_with_symlink(int8 param_1,ulong param_2)
{
int iVar1;
long in_FS_OFFSET;
bool bVar2;
int1 local_228 [512];
long local_28;
local_28 = *(long *)(in_FS_OFFSET + 0x28);
iVar1 = my_is_symlink();
if (iVar1 != 0) {
bVar2 = false;
iVar1 = my_realpath(local_228,param_1,0);
if (iVar1 != 0) goto LAB_001a1435;
iVar1 = (*(code *)mysys_test_invalid_symlink)(local_228);
if (iVar1 == 0) {
iVar1 = my_delete(local_228,param_2 | 0x200);
bVar2 = iVar1 != 0;
goto LAB_001a1435;
}
}
bVar2 = false;
LAB_001a1435:
iVar1 = my_delete(param_1,param_2);
if (*(long *)(in_FS_OFFSET + 0x28) == local_28) {
return iVar1 != 0 | bVar2;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
28,206 | minja::SubscriptExpr::SubscriptExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&) | monkey531[P]llama/common/minja.hpp | Expression(const Location & location) : location(location) {} | O3 | cpp | minja::SubscriptExpr::SubscriptExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&, std::shared_ptr<minja::Expression>&&):
leaq 0x9aa5b(%rip), %rax # 0x12a3b8
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 0x8f98e
movq 0x9c609(%rip), %r8 # 0x12bf88
cmpb $0x0, (%r8)
je 0x8f98a
incl 0x8(%rax)
jmp 0x8f98e
lock
incl 0x8(%rax)
movq 0x10(%rsi), %rax
movq %rax, 0x18(%rdi)
leaq 0x9addb(%rip), %rax # 0x12a778
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)
retq
nop
| _ZN5minja13SubscriptExprC2ERKNS_8LocationEOSt10shared_ptrINS_10ExpressionEES7_:
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_8F98E
mov r8, cs:__libc_single_threaded_ptr
cmp byte ptr [r8], 0
jz short loc_8F98A
inc dword ptr [rax+8]
jmp short loc_8F98E
loc_8F98A:
lock inc dword ptr [rax+8]
loc_8F98E:
mov rax, [rsi+10h]
mov [rdi+18h], rax
lea rax, _ZTVN5minja13SubscriptExprE; `vtable for'minja::SubscriptExpr
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
retn
| long long minja::SubscriptExpr::SubscriptExpr(long long a1, _QWORD *a2, __int128 *a3, __int128 *a4)
{
long long v4; // rax
long long result; // rax
__int128 v6; // xmm0
__int128 v7; // 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::SubscriptExpr + 2;
result = 0LL;
*(_QWORD *)(a1 + 40) = 0LL;
v6 = *a3;
*((_QWORD *)a3 + 1) = 0LL;
*(_OWORD *)(a1 + 32) = v6;
*(_QWORD *)a3 = 0LL;
*(_QWORD *)(a1 + 56) = 0LL;
v7 = *a4;
*((_QWORD *)a4 + 1) = 0LL;
*(_OWORD *)(a1 + 48) = v7;
*(_QWORD *)a4 = 0LL;
return result;
}
| SubscriptExpr:
LEA RAX,[0x22a3b8]
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 0x0018f98e
MOV R8,qword ptr [0x0022bf88]
CMP byte ptr [R8],0x0
JZ 0x0018f98a
INC dword ptr [RAX + 0x8]
JMP 0x0018f98e
LAB_0018f98a:
INC.LOCK dword ptr [RAX + 0x8]
LAB_0018f98e:
MOV RAX,qword ptr [RSI + 0x10]
MOV qword ptr [RDI + 0x18],RAX
LEA RAX,[0x22a778]
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
RET
|
/* minja::SubscriptExpr::SubscriptExpr(minja::Location const&, std::shared_ptr<minja::Expression>&&,
std::shared_ptr<minja::Expression>&&) */
void __thiscall
minja::SubscriptExpr::SubscriptExpr
(SubscriptExpr *this,Location *param_1,shared_ptr *param_2,shared_ptr *param_3)
{
long lVar1;
int8 uVar2;
*(int ***)this = &PTR___cxa_pure_virtual_0022a3c8;
*(int8 *)(this + 8) = *(int8 *)param_1;
lVar1 = *(long *)(param_1 + 8);
*(long *)(this + 0x10) = lVar1;
if (lVar1 != 0) {
if (*PTR___libc_single_threaded_0022bf88 == '\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_0022a788;
*(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;
*(int8 *)(this + 0x38) = 0;
uVar2 = *(int8 *)(param_3 + 8);
*(int8 *)(param_3 + 8) = 0;
*(int8 *)(this + 0x30) = *(int8 *)param_3;
*(int8 *)(this + 0x38) = uVar2;
*(int8 *)param_3 = 0;
return;
}
| |
28,207 | Json::Reader::decodeUnicodeCodePoint(Json::Reader::Token&, char const*&, char const*, unsigned int&) | aimrt_mujoco_sim/_deps/jsoncpp-src/src/lib_json/json_reader.cpp | bool Reader::decodeUnicodeCodePoint(Token& token, Location& current,
Location end, unsigned int& unicode) {
if (!decodeUnicodeEscapeSequence(token, current, end, unicode))
return false;
if (unicode >= 0xD800 && unicode <= 0xDBFF) {
// surrogate pairs
if (end - current < 6)
return addError(
"additional six characters expected to parse unicode surrogate pair.",
token, current);
if (*(current++) == '\\' && *(current++) == 'u') {
unsigned int surrogatePair;
if (decodeUnicodeEscapeSequence(token, current, end, surrogatePair)) {
unicode = 0x10000 + ((unicode & 0x3FF) << 10) + (surrogatePair & 0x3FF);
} else
return false;
} else
return addError("expecting another \\u token to begin the second half of "
"a unicode surrogate pair",
token, current);
}
return true;
} | O0 | cpp | Json::Reader::decodeUnicodeCodePoint(Json::Reader::Token&, char const*&, char const*, unsigned int&):
subq $0xb8, %rsp
movq %rdi, 0xa8(%rsp)
movq %rsi, 0xa0(%rsp)
movq %rdx, 0x98(%rsp)
movq %rcx, 0x90(%rsp)
movq %r8, 0x88(%rsp)
movq 0xa8(%rsp), %rdi
movq %rdi, 0x20(%rsp)
movq 0xa0(%rsp), %rsi
movq 0x98(%rsp), %rdx
movq 0x90(%rsp), %rcx
movq 0x88(%rsp), %r8
callq 0x174090
testb $0x1, %al
jne 0x173ac2
movb $0x0, 0xb7(%rsp)
jmp 0x173d13
movq 0x88(%rsp), %rax
cmpl $0xd800, (%rax) # imm = 0xD800
jb 0x173d0b
movq 0x88(%rsp), %rax
cmpl $0xdbff, (%rax) # imm = 0xDBFF
ja 0x173d0b
movq 0x90(%rsp), %rax
movq 0x98(%rsp), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
cmpq $0x6, %rax
jge 0x173bb6
leaq 0x67(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x92b00
movq 0x18(%rsp), %rdx
leaq 0x41369(%rip), %rsi # 0x1b4e8e
leaq 0x68(%rsp), %rdi
callq 0x8fd10
jmp 0x173b31
movq 0x20(%rsp), %rdi
movq 0xa0(%rsp), %rdx
movq 0x98(%rsp), %rax
movq (%rax), %rcx
leaq 0x68(%rsp), %rsi
callq 0x171430
movb %al, 0x17(%rsp)
jmp 0x173b59
movb 0x17(%rsp), %al
andb $0x1, %al
movb %al, 0xb7(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x8ac60
leaq 0x67(%rsp), %rdi
callq 0x8ddb0
jmp 0x173d13
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
jmp 0x173ba7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
leaq 0x68(%rsp), %rdi
callq 0x8ac60
leaq 0x67(%rsp), %rdi
callq 0x8ddb0
jmp 0x173d24
movq 0x98(%rsp), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, (%rcx)
movsbl (%rax), %eax
cmpl $0x5c, %eax
jne 0x173c63
movq 0x98(%rsp), %rcx
movq (%rcx), %rax
movq %rax, %rdx
addq $0x1, %rdx
movq %rdx, (%rcx)
movsbl (%rax), %eax
cmpl $0x75, %eax
jne 0x173c63
movq 0x20(%rsp), %rdi
movq 0xa0(%rsp), %rsi
movq 0x98(%rsp), %rdx
movq 0x90(%rsp), %rcx
leaq 0x50(%rsp), %r8
callq 0x174090
testb $0x1, %al
jne 0x173c21
jmp 0x173c51
movq 0x88(%rsp), %rax
movl (%rax), %ecx
andl $0x3ff, %ecx # imm = 0x3FF
shll $0xa, %ecx
addl $0x10000, %ecx # imm = 0x10000
movl 0x50(%rsp), %eax
andl $0x3ff, %eax # imm = 0x3FF
addl %eax, %ecx
movq 0x88(%rsp), %rax
movl %ecx, (%rax)
jmp 0x173c5e
movb $0x0, 0xb7(%rsp)
jmp 0x173d13
jmp 0x173d09
leaq 0x2f(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x92b00
movq 0x8(%rsp), %rdx
leaq 0x41254(%rip), %rsi # 0x1b4ed2
leaq 0x30(%rsp), %rdi
callq 0x8fd10
jmp 0x173c8a
movq 0x20(%rsp), %rdi
movq 0xa0(%rsp), %rdx
movq 0x98(%rsp), %rax
movq (%rax), %rcx
leaq 0x30(%rsp), %rsi
callq 0x171430
movb %al, 0x7(%rsp)
jmp 0x173cb2
movb 0x7(%rsp), %al
andb $0x1, %al
movb %al, 0xb7(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x8ac60
leaq 0x2f(%rsp), %rdi
callq 0x8ddb0
jmp 0x173d13
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
jmp 0x173cfd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x58(%rsp)
movl %eax, 0x54(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x8ac60
leaq 0x2f(%rsp), %rdi
callq 0x8ddb0
jmp 0x173d24
jmp 0x173d0b
movb $0x1, 0xb7(%rsp)
movb 0xb7(%rsp), %al
andb $0x1, %al
addq $0xb8, %rsp
retq
movq 0x58(%rsp), %rdi
callq 0x92a70
nop
| _ZN4Json6Reader22decodeUnicodeCodePointERNS0_5TokenERPKcS4_Rj:
sub rsp, 0B8h
mov [rsp+0B8h+var_10], rdi
mov [rsp+0B8h+var_18], rsi
mov [rsp+0B8h+var_20], rdx
mov [rsp+0B8h+var_28], rcx
mov [rsp+0B8h+var_30], r8
mov rdi, [rsp+0B8h+var_10]
mov [rsp+0B8h+var_98], rdi
mov rsi, [rsp+0B8h+var_18]
mov rdx, [rsp+0B8h+var_20]
mov rcx, [rsp+0B8h+var_28]
mov r8, [rsp+0B8h+var_30]
call _ZN4Json6Reader27decodeUnicodeEscapeSequenceERNS0_5TokenERPKcS4_Rj; Json::Reader::decodeUnicodeEscapeSequence(Json::Reader::Token &,char const*&,char const*,uint &)
test al, 1
jnz short loc_173AC2
mov [rsp+0B8h+var_1], 0
jmp loc_173D13
loc_173AC2:
mov rax, [rsp+0B8h+var_30]
cmp dword ptr [rax], 0D800h
jb loc_173D0B
mov rax, [rsp+0B8h+var_30]
cmp dword ptr [rax], 0DBFFh
ja loc_173D0B
mov rax, [rsp+0B8h+var_28]
mov rcx, [rsp+0B8h+var_20]
mov rcx, [rcx]
sub rax, rcx
cmp rax, 6
jge loc_173BB6
lea rdi, [rsp+0B8h+var_51]
mov [rsp+0B8h+var_A0], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, [rsp+0B8h+var_A0]
lea rsi, aAdditionalSixC; "additional six characters expected to p"...
lea rdi, [rsp+0B8h+var_50]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EPKcRKS3_; std::string::basic_string(char const*,std::allocator<char> const&)
jmp short $+2
loc_173B31:
mov rdi, [rsp+0B8h+var_98]
mov rdx, [rsp+0B8h+var_18]
mov rax, [rsp+0B8h+var_20]
mov rcx, [rax]
lea rsi, [rsp+0B8h+var_50]
call _ZN4Json6Reader8addErrorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS0_5TokenEPKc; Json::Reader::addError(std::string const&,Json::Reader::Token &,char const*)
mov [rsp+0B8h+var_A1], al
jmp short $+2
loc_173B59:
mov al, [rsp+0B8h+var_A1]
and al, 1
mov [rsp+0B8h+var_1], al
lea rdi, [rsp+0B8h+var_50]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+0B8h+var_51]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_173D13
mov rcx, rax
mov eax, edx
mov [rsp+arg_50], rcx
mov [rsp+arg_4C], eax
jmp short loc_173BA7
mov rcx, rax
mov eax, edx
mov [rsp+arg_50], rcx
mov [rsp+arg_4C], eax
lea rdi, [rsp+arg_60]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_173BA7:
lea rdi, [rsp+arg_5F]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp loc_173D24
loc_173BB6:
mov rcx, [rsp+0B8h+var_20]
mov rax, [rcx]
mov rdx, rax
add rdx, 1
mov [rcx], rdx
movsx eax, byte ptr [rax]
cmp eax, 5Ch ; '\'
jnz loc_173C63
mov rcx, [rsp+0B8h+var_20]
mov rax, [rcx]
mov rdx, rax
add rdx, 1
mov [rcx], rdx
movsx eax, byte ptr [rax]
cmp eax, 75h ; 'u'
jnz short loc_173C63
mov rdi, [rsp+0B8h+var_98]
mov rsi, [rsp+0B8h+var_18]
mov rdx, [rsp+0B8h+var_20]
mov rcx, [rsp+0B8h+var_28]
lea r8, [rsp+0B8h+var_68]
call _ZN4Json6Reader27decodeUnicodeEscapeSequenceERNS0_5TokenERPKcS4_Rj; Json::Reader::decodeUnicodeEscapeSequence(Json::Reader::Token &,char const*&,char const*,uint &)
test al, 1
jnz short loc_173C21
jmp short loc_173C51
loc_173C21:
mov rax, [rsp+0B8h+var_30]
mov ecx, [rax]
and ecx, 3FFh
shl ecx, 0Ah
add ecx, 10000h
mov eax, [rsp+0B8h+var_68]
and eax, 3FFh
add ecx, eax
mov rax, [rsp+0B8h+var_30]
mov [rax], ecx
jmp short loc_173C5E
loc_173C51:
mov [rsp+0B8h+var_1], 0
jmp loc_173D13
loc_173C5E:
jmp loc_173D09
loc_173C63:
lea rdi, [rsp+0B8h+var_89]
mov [rsp+0B8h+var_B0], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, [rsp+0B8h+var_B0]
lea rsi, aExpectingAnoth; "expecting another \\u token to begin th"...
lea rdi, [rsp+0B8h+var_88]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1EPKcRKS3_; std::string::basic_string(char const*,std::allocator<char> const&)
jmp short $+2
loc_173C8A:
mov rdi, [rsp+0B8h+var_98]
mov rdx, [rsp+0B8h+var_18]
mov rax, [rsp+0B8h+var_20]
mov rcx, [rax]
lea rsi, [rsp+0B8h+var_88]
call _ZN4Json6Reader8addErrorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS0_5TokenEPKc; Json::Reader::addError(std::string const&,Json::Reader::Token &,char const*)
mov [rsp+0B8h+var_B1], al
jmp short $+2
loc_173CB2:
mov al, [rsp+0B8h+var_B1]
and al, 1
mov [rsp+0B8h+var_1], al
lea rdi, [rsp+0B8h+var_88]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+0B8h+var_89]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_173D13
mov rcx, rax
mov eax, edx
mov [rsp+arg_50], rcx
mov [rsp+arg_4C], eax
jmp short loc_173CFD
mov rcx, rax
mov eax, edx
mov [rsp+arg_50], rcx
mov [rsp+arg_4C], eax
lea rdi, [rsp+arg_28]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_173CFD:
lea rdi, [rsp+arg_27]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
jmp short loc_173D24
loc_173D09:
jmp short $+2
loc_173D0B:
mov [rsp+0B8h+var_1], 1
loc_173D13:
mov al, [rsp+0B8h+var_1]
and al, 1
add rsp, 0B8h
retn
loc_173D24:
mov rdi, [rsp+arg_50]
call __Unwind_Resume
| char Json::Reader::decodeUnicodeCodePoint(
long long a1,
__int128 *a2,
long long *a3,
long long a4,
_DWORD *a5,
int a6)
{
int v6; // r9d
_BYTE *v7; // rax
_BYTE *v8; // rax
char v10; // [rsp+2Fh] [rbp-89h] BYREF
_BYTE v11[32]; // [rsp+30h] [rbp-88h] BYREF
int v12; // [rsp+50h] [rbp-68h] BYREF
char v13; // [rsp+67h] [rbp-51h] BYREF
_BYTE v14[32]; // [rsp+68h] [rbp-50h] BYREF
_DWORD *v15; // [rsp+88h] [rbp-30h]
long long v16; // [rsp+90h] [rbp-28h]
long long *v17; // [rsp+98h] [rbp-20h]
__int128 *v18; // [rsp+A0h] [rbp-18h]
long long v19; // [rsp+A8h] [rbp-10h]
char v20; // [rsp+B7h] [rbp-1h]
v19 = a1;
v18 = a2;
v17 = a3;
v16 = a4;
v15 = a5;
if ( (Json::Reader::decodeUnicodeEscapeSequence(a1, (_DWORD)a2, (_DWORD)a3, a4, (_DWORD)a5, a6) & 1) != 0 )
{
if ( *v15 >= 0xD800u && *v15 <= 0xDBFFu )
{
if ( v16 - *v17 < 6 )
{
std::allocator<char>::allocator();
std::string::basic_string(v14, "additional six characters expected to parse unicode surrogate pair.", &v13);
v20 = Json::Reader::addError(a1, (long long)v14, v18, *v17) & 1;
std::string::~string(v14);
std::allocator<char>::~allocator(&v13);
return v20 & 1;
}
v7 = (_BYTE *)(*v17)++;
if ( *v7 != 92 || (v8 = (_BYTE *)*v17, ++*v17, *v8 != 117) )
{
std::allocator<char>::allocator();
std::string::basic_string(
v11,
"expecting another \\u token to begin the second half of a unicode surrogate pair",
&v10);
v20 = Json::Reader::addError(a1, (long long)v11, v18, *v17) & 1;
std::string::~string(v11);
std::allocator<char>::~allocator(&v10);
return v20 & 1;
}
if ( (Json::Reader::decodeUnicodeEscapeSequence(a1, (_DWORD)v18, (_DWORD)v17, v16, (unsigned int)&v12, v6) & 1) == 0 )
{
v20 = 0;
return v20 & 1;
}
*v15 = (v12 & 0x3FF) + ((*v15 & 0x3FF) << 10) + 0x10000;
}
v20 = 1;
return v20 & 1;
}
v20 = 0;
return v20 & 1;
}
| |||
28,208 | Json::Reader::decodeUnicodeCodePoint(Json::Reader::Token&, char const*&, char const*, unsigned int&) | aimrt_mujoco_sim/_deps/jsoncpp-src/src/lib_json/json_reader.cpp | bool Reader::decodeUnicodeCodePoint(Token& token, Location& current,
Location end, unsigned int& unicode) {
if (!decodeUnicodeEscapeSequence(token, current, end, unicode))
return false;
if (unicode >= 0xD800 && unicode <= 0xDBFF) {
// surrogate pairs
if (end - current < 6)
return addError(
"additional six characters expected to parse unicode surrogate pair.",
token, current);
if (*(current++) == '\\' && *(current++) == 'u') {
unsigned int surrogatePair;
if (decodeUnicodeEscapeSequence(token, current, end, surrogatePair)) {
unicode = 0x10000 + ((unicode & 0x3FF) << 10) + (surrogatePair & 0x3FF);
} else
return false;
} else
return addError("expecting another \\u token to begin the second half of "
"a unicode surrogate pair",
token, current);
}
return true;
} | O3 | cpp | Json::Reader::decodeUnicodeCodePoint(Json::Reader::Token&, char const*&, char const*, unsigned int&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %r12
movq %rcx, %r13
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
callq 0x6f2c6
testb %al, %al
je 0x6f173
movl $0xfffffc00, %eax # imm = 0xFFFFFC00
andl (%r12), %eax
movb $0x1, %bpl
cmpl $0xd800, %eax # imm = 0xD800
jne 0x6f175
movq (%r15), %rax
movq %r13, %rcx
subq %rax, %rcx
cmpq $0x5, %rcx
jg 0x6f0da
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x19b85(%rip), %rsi # 0x88c36
leaq 0x19bc1(%rip), %rdx # 0x88c79
leaq 0x8(%rsp), %rdi
callq 0x1e620
movq (%r15), %rcx
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x6d944
jmp 0x6f164
leaq 0x1(%rax), %rcx
movq %rcx, (%r15)
cmpb $0x5c, (%rax)
jne 0x6f12f
leaq 0x2(%rax), %rcx
movq %rcx, (%r15)
cmpb $0x75, 0x1(%rax)
jne 0x6f12f
leaq 0x8(%rsp), %r8
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r13, %rcx
callq 0x6f2c6
testb %al, %al
je 0x6f173
movl (%r12), %eax
shll $0xa, %eax
andl $0xffc00, %eax # imm = 0xFFC00
movl $0x3ff, %ecx # imm = 0x3FF
andl 0x8(%rsp), %ecx
addl %ecx, %eax
addl $0x10000, %eax # imm = 0x10000
movl %eax, (%r12)
jmp 0x6f175
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x19b3a(%rip), %rsi # 0x88c7a
leaq 0x19b82(%rip), %rdx # 0x88cc9
leaq 0x8(%rsp), %rdi
callq 0x1e620
movq (%r15), %rcx
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
movq %rbx, %rdx
callq 0x6d944
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x6f173
callq 0x1f0e0
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6f18a
jmp 0x6f19e
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x6f1a1
callq 0x1f0e0
jmp 0x6f1a1
movq %rax, %rbx
movq %rbx, %rdi
callq 0x1ffd0
| _ZN4Json6Reader22decodeUnicodeCodePointERNS0_5TokenERPKcS4_Rj:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r12, r8
mov r13, rcx
mov r15, rdx
mov rbx, rsi
mov r14, rdi
call _ZN4Json6Reader27decodeUnicodeEscapeSequenceERNS0_5TokenERPKcS4_Rj; Json::Reader::decodeUnicodeEscapeSequence(Json::Reader::Token &,char const*&,char const*,uint &)
test al, al
jz loc_6F173
mov eax, 0FFFFFC00h
and eax, [r12]
mov bpl, 1
cmp eax, 0D800h
jnz loc_6F175
mov rax, [r15]
mov rcx, r13
sub rcx, rax
cmp rcx, 5
jg short loc_6F0DA
lea r12, [rsp+58h+var_40]
mov [r12-10h], r12
lea rsi, aAdditionalSixC; "additional six characters expected to p"...
lea rdx, aAdditionalSixC+43h; ""
lea rdi, [rsp+58h+var_50]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rcx, [r15]; int
lea rsi, [rsp+58h+var_50]; int
mov rdi, r14; int
mov rdx, rbx; int
call _ZN4Json6Reader8addErrorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS0_5TokenEPKc; Json::Reader::addError(std::string const&,Json::Reader::Token &,char const*)
jmp loc_6F164
loc_6F0DA:
lea rcx, [rax+1]
mov [r15], rcx
cmp byte ptr [rax], 5Ch ; '\'
jnz short loc_6F12F
lea rcx, [rax+2]
mov [r15], rcx
cmp byte ptr [rax+1], 75h ; 'u'
jnz short loc_6F12F
lea r8, [rsp+58h+var_50]
mov rdi, r14; int
mov rsi, rbx; int
mov rdx, r15
mov rcx, r13
call _ZN4Json6Reader27decodeUnicodeEscapeSequenceERNS0_5TokenERPKcS4_Rj; Json::Reader::decodeUnicodeEscapeSequence(Json::Reader::Token &,char const*&,char const*,uint &)
test al, al
jz short loc_6F173
mov eax, [r12]
shl eax, 0Ah
and eax, 0FFC00h
mov ecx, 3FFh
and ecx, dword ptr [rsp+58h+var_50]
add eax, ecx
add eax, 10000h
mov [r12], eax
jmp short loc_6F175
loc_6F12F:
lea r12, [rsp+58h+var_40]
mov [r12-10h], r12
lea rsi, aExpectingAnoth; "expecting another \\u token to begin th"...
lea rdx, aExpectingAnoth+4Fh; ""
lea rdi, [rsp+58h+var_50]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
mov rcx, [r15]; int
lea rsi, [rsp+58h+var_50]; int
mov rdi, r14; int
mov rdx, rbx; int
call _ZN4Json6Reader8addErrorERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERNS0_5TokenEPKc; Json::Reader::addError(std::string const&,Json::Reader::Token &,char const*)
loc_6F164:
mov rdi, [rsp+58h+var_50]; void *
cmp rdi, r12
jz short loc_6F173
call __ZdlPv; operator delete(void *)
loc_6F173:
xor ebp, ebp
loc_6F175:
mov eax, ebp
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_6F18A
jmp short loc_6F19E
loc_6F18A:
mov rbx, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r12
jz short loc_6F1A1
call __ZdlPv; operator delete(void *)
jmp short loc_6F1A1
loc_6F19E:
mov rbx, rax
loc_6F1A1:
mov rdi, rbx
call __Unwind_Resume
| long long Json::Reader::decodeUnicodeCodePoint(long long a1, int a2, long long *a3, long long a4, _DWORD *a5)
{
unsigned int v5; // ebp
_BYTE *v9; // rax
void *v11; // [rsp+0h] [rbp-58h]
void *v12; // [rsp+0h] [rbp-58h]
void *v13[2]; // [rsp+8h] [rbp-50h] BYREF
_BYTE v14[64]; // [rsp+18h] [rbp-40h] BYREF
if ( !(unsigned __int8)Json::Reader::decodeUnicodeEscapeSequence(a1, a2, v11) )
return 0;
LOBYTE(v5) = 1;
if ( (*a5 & 0xFFFFFC00) == 0xD800 )
{
v9 = (_BYTE *)*a3;
if ( a4 - *a3 <= 5 )
{
v13[0] = v14;
std::string::_M_construct<char const*>(
v13,
"additional six characters expected to parse unicode surrogate pair.",
"");
Json::Reader::addError(a1, (long long)v13, a2, *a3);
goto LABEL_10;
}
*a3 = (long long)(v9 + 1);
if ( *v9 != 92 || (*a3 = (long long)(v9 + 2), v9[1] != 117) )
{
v13[0] = v14;
std::string::_M_construct<char const*>(
v13,
"expecting another \\u token to begin the second half of a unicode surrogate pair",
"");
Json::Reader::addError(a1, (long long)v13, a2, *a3);
LABEL_10:
if ( v13[0] != v14 )
operator delete(v13[0]);
return 0;
}
if ( (unsigned __int8)Json::Reader::decodeUnicodeEscapeSequence(a1, a2, v12) )
{
*a5 = ((long long)v13[0] & 0x3FF) + ((*a5 << 10) & 0xFFC00) + 0x10000;
return v5;
}
return 0;
}
return v5;
}
| decodeUnicodeCodePoint:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R12,R8
MOV R13,RCX
MOV R15,RDX
MOV RBX,RSI
MOV R14,RDI
CALL 0x0016f2c6
TEST AL,AL
JZ 0x0016f173
MOV EAX,0xfffffc00
AND EAX,dword ptr [R12]
MOV BPL,0x1
CMP EAX,0xd800
JNZ 0x0016f175
MOV RAX,qword ptr [R15]
MOV RCX,R13
SUB RCX,RAX
CMP RCX,0x5
JG 0x0016f0da
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
LAB_0016f0aa:
LEA RSI,[0x188c36]
LEA RDX,[0x188c79]
LEA RDI,[RSP + 0x8]
CALL 0x0011e620
MOV RCX,qword ptr [R15]
LAB_0016f0c5:
LEA RSI,[RSP + 0x8]
MOV RDI,R14
MOV RDX,RBX
CALL 0x0016d944
LAB_0016f0d5:
JMP 0x0016f164
LAB_0016f0da:
LEA RCX,[RAX + 0x1]
MOV qword ptr [R15],RCX
CMP byte ptr [RAX],0x5c
JNZ 0x0016f12f
LEA RCX,[RAX + 0x2]
MOV qword ptr [R15],RCX
CMP byte ptr [RAX + 0x1],0x75
JNZ 0x0016f12f
LEA R8,[RSP + 0x8]
MOV RDI,R14
MOV RSI,RBX
MOV RDX,R15
MOV RCX,R13
CALL 0x0016f2c6
TEST AL,AL
JZ 0x0016f173
MOV EAX,dword ptr [R12]
SHL EAX,0xa
AND EAX,0xffc00
MOV ECX,0x3ff
AND ECX,dword ptr [RSP + 0x8]
ADD EAX,ECX
ADD EAX,0x10000
MOV dword ptr [R12],EAX
JMP 0x0016f175
LAB_0016f12f:
LEA R12,[RSP + 0x18]
MOV qword ptr [R12 + -0x10],R12
LAB_0016f139:
LEA RSI,[0x188c7a]
LEA RDX,[0x188cc9]
LEA RDI,[RSP + 0x8]
CALL 0x0011e620
MOV RCX,qword ptr [R15]
LAB_0016f154:
LEA RSI,[RSP + 0x8]
MOV RDI,R14
MOV RDX,RBX
CALL 0x0016d944
LAB_0016f164:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R12
JZ 0x0016f173
CALL 0x0011f0e0
LAB_0016f173:
XOR EBP,EBP
LAB_0016f175:
MOV EAX,EBP
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* Json::Reader::decodeUnicodeCodePoint(Json::Reader::Token&, char const*&, char const*, unsigned
int&) */
ulong __thiscall
Json::Reader::decodeUnicodeCodePoint
(Reader *this,Token *param_1,char **param_2,char *param_3,uint *param_4)
{
char *pcVar1;
char cVar2;
int8 unaff_RBP;
ulong uVar3;
int1 *local_50 [2];
int1 local_40 [16];
cVar2 = decodeUnicodeEscapeSequence(this,param_1,param_2,param_3,param_4);
if (cVar2 != '\0') {
uVar3 = CONCAT71((int7)((ulong)unaff_RBP >> 8),1);
if ((*param_4 & 0xfffffc00) != 0xd800) goto LAB_0016f175;
pcVar1 = *param_2;
if ((long)param_3 - (long)pcVar1 < 6) {
local_50[0] = local_40;
/* try { // try from 0016f0aa to 0016f0c1 has its CatchHandler @ 0016f19e */
std::__cxx11::string::_M_construct<char_const*>
(local_50,"additional six characters expected to parse unicode surrogate pair.","");
/* try { // try from 0016f0c5 to 0016f0d4 has its CatchHandler @ 0016f18a */
addError(this,(string *)local_50,param_1,*param_2);
}
else {
*param_2 = pcVar1 + 1;
if (*pcVar1 == '\\') {
*param_2 = pcVar1 + 2;
if (pcVar1[1] == 'u') {
cVar2 = decodeUnicodeEscapeSequence(this,param_1,param_2,param_3,(uint *)local_50);
if (cVar2 != '\0') {
*param_4 = (*param_4 & 0x3ff) * 0x400 + ((uint)local_50[0] & 0x3ff) + 0x10000;
goto LAB_0016f175;
}
goto LAB_0016f173;
}
}
local_50[0] = local_40;
/* try { // try from 0016f139 to 0016f150 has its CatchHandler @ 0016f188 */
std::__cxx11::string::_M_construct<char_const*>
(local_50,
"expecting another \\u token to begin the second half of a unicode surrogate pair",
"");
/* try { // try from 0016f154 to 0016f163 has its CatchHandler @ 0016f186 */
addError(this,(string *)local_50,param_1,*param_2);
}
if (local_50[0] != local_40) {
operator_delete(local_50[0]);
}
}
LAB_0016f173:
uVar3 = 0;
LAB_0016f175:
return uVar3 & 0xffffffff;
}
| |
28,209 | spdlog::details::z_formatter<spdlog::details::scoped_padder>::z_formatter(spdlog::details::padding_info) | AlayaLite/build_O0/_deps/spdlog-src/include/spdlog/pattern_formatter-inl.h | explicit z_formatter(padding_info padinfo)
: flag_formatter(padinfo) {} | O0 | c | spdlog::details::z_formatter<spdlog::details::scoped_padder>::z_formatter(spdlog::details::padding_info):
subq $0x68, %rsp
movq %rsi, 0x58(%rsp)
movq %rdx, 0x60(%rsp)
movq %rdi, 0x50(%rsp)
movq 0x50(%rsp), %rdi
movq %rdi, 0x8(%rsp)
movups 0x58(%rsp), %xmm0
movaps %xmm0, 0x40(%rsp)
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rdx
callq 0x53e60
movq 0x8(%rsp), %rax
leaq 0x11d416(%rip), %rcx # 0x182548
addq $0x10, %rcx
movq %rcx, (%rax)
addq $0x18, %rax
movq %rax, 0x10(%rsp)
movl $0x0, 0x2c(%rsp)
leaq 0x30(%rsp), %rdi
leaq 0x2c(%rsp), %rsi
callq 0x431b0
jmp 0x6515b
leaq 0x38(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x4c5e0
jmp 0x6516c
movq 0x10(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x651e0
jmp 0x6517d
movq 0x8(%rsp), %rax
movl $0x0, 0x20(%rax)
addq $0x68, %rsp
retq
movq 0x8(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
callq 0x54570
movq 0x20(%rsp), %rdi
callq 0x16cf0
| _ZN6spdlog7details11z_formatterINS0_13scoped_padderEEC2ENS0_12padding_infoE:
sub rsp, 68h
mov qword ptr [rsp+68h+var_10], rsi
mov qword ptr [rsp+68h+var_10+8], rdx
mov [rsp+68h+var_18], rdi
mov rdi, [rsp+68h+var_18]
mov [rsp+68h+var_60], rdi
movups xmm0, [rsp+68h+var_10]
movaps [rsp+68h+var_28], xmm0
mov rsi, qword ptr [rsp+68h+var_28]
mov rdx, qword ptr [rsp+68h+var_28+8]
call _ZN6spdlog7details14flag_formatterC2ENS0_12padding_infoE; spdlog::details::flag_formatter::flag_formatter(spdlog::details::padding_info)
mov rax, [rsp+68h+var_60]
lea rcx, _ZTVN6spdlog7details11z_formatterINS0_13scoped_padderEEE; `vtable for'spdlog::details::z_formatter<spdlog::details::scoped_padder>
add rcx, 10h
mov [rax], rcx
add rax, 18h
mov [rsp+68h+var_58], rax
mov [rsp+68h+var_3C], 0
lea rdi, [rsp+68h+var_38]
lea rsi, [rsp+68h+var_3C]
call _ZNSt6chrono8durationIlSt5ratioILl1ELl1EEEC2IivEERKT_; std::chrono::duration<long,std::ratio<1l,1l>>::duration<int,void>(int const&)
jmp short $+2
loc_6515B:
lea rdi, [rsp+68h+var_30]
lea rsi, [rsp+68h+var_38]
call _ZNSt6chrono8durationIlSt5ratioILl1ELl1000000000EEEC2IlS1_ILl1ELl1EEvEERKNS0_IT_T0_EE; std::chrono::duration<long,std::ratio<1l,1000000000l>>::duration<long,std::ratio<1l,1l>,void>(std::chrono::duration<long,std::ratio<1l,1l>> const&)
jmp short $+2
loc_6516C:
mov rdi, [rsp+68h+var_58]
lea rsi, [rsp+68h+var_30]
call _ZNSt6chrono10time_pointINS_3_V212system_clockENS_8durationIlSt5ratioILl1ELl1000000000EEEEEC2ERKS6_; std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>::time_point(std::chrono::duration<long,std::ratio<1l,1000000000l>> const&)
jmp short $+2
loc_6517D:
mov rax, [rsp+68h+var_60]
mov dword ptr [rax+20h], 0
add rsp, 68h
retn
mov rdi, [rsp+arg_0]; this
mov rcx, rax
mov eax, edx
mov [rsp+arg_18], rcx
mov [rsp+arg_14], eax
call _ZN6spdlog7details14flag_formatterD2Ev; spdlog::details::flag_formatter::~flag_formatter()
mov rdi, [rsp+arg_18]
call __Unwind_Resume
| long long spdlog::details::z_formatter<spdlog::details::scoped_padder>::z_formatter(
long long a1,
long long a2,
long long a3)
{
long long result; // rax
int v4; // [rsp+2Ch] [rbp-3Ch] BYREF
long long v5; // [rsp+30h] [rbp-38h] BYREF
long long v6; // [rsp+38h] [rbp-30h] BYREF
__int128 v7; // [rsp+40h] [rbp-28h]
long long v8; // [rsp+50h] [rbp-18h]
__int128 v9; // [rsp+58h] [rbp-10h]
*(_QWORD *)&v9 = a2;
*((_QWORD *)&v9 + 1) = a3;
v8 = a1;
v7 = v9;
spdlog::details::flag_formatter::flag_formatter((_QWORD *)a1, a2, a3);
*(_QWORD *)a1 = &`vtable for'spdlog::details::z_formatter<spdlog::details::scoped_padder> + 2;
v4 = 0;
std::chrono::duration<long,std::ratio<1l,1l>>::duration<int,void>(&v5, &v4);
std::chrono::duration<long,std::ratio<1l,1000000000l>>::duration<long,std::ratio<1l,1l>,void>(&v6, (long long)&v5);
std::chrono::time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>::time_point(
a1 + 24,
&v6);
result = a1;
*(_DWORD *)(a1 + 32) = 0;
return result;
}
| z_formatter:
SUB RSP,0x68
MOV qword ptr [RSP + 0x58],RSI
MOV qword ptr [RSP + 0x60],RDX
MOV qword ptr [RSP + 0x50],RDI
MOV RDI,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x8],RDI
MOVUPS XMM0,xmmword ptr [RSP + 0x58]
MOVAPS xmmword ptr [RSP + 0x40],XMM0
MOV RSI,qword ptr [RSP + 0x40]
MOV RDX,qword ptr [RSP + 0x48]
CALL 0x00153e60
MOV RAX,qword ptr [RSP + 0x8]
LEA RCX,[0x282548]
ADD RCX,0x10
MOV qword ptr [RAX],RCX
ADD RAX,0x18
MOV qword ptr [RSP + 0x10],RAX
MOV dword ptr [RSP + 0x2c],0x0
LAB_0016514a:
LEA RDI,[RSP + 0x30]
LEA RSI,[RSP + 0x2c]
CALL 0x001431b0
JMP 0x0016515b
LAB_0016515b:
LEA RDI,[RSP + 0x38]
LEA RSI,[RSP + 0x30]
CALL 0x0014c5e0
JMP 0x0016516c
LAB_0016516c:
MOV RDI,qword ptr [RSP + 0x10]
LEA RSI,[RSP + 0x38]
CALL 0x001651e0
LAB_0016517b:
JMP 0x0016517d
LAB_0016517d:
MOV RAX,qword ptr [RSP + 0x8]
MOV dword ptr [RAX + 0x20],0x0
ADD RSP,0x68
RET
|
/* spdlog::details::z_formatter<spdlog::details::scoped_padder>::z_formatter(spdlog::details::padding_info)
*/
void spdlog::details::z_formatter<spdlog::details::scoped_padder>::z_formatter
(flag_formatter *param_1,int8 param_2,int8 param_3)
{
int local_3c;
duration<long,std::ratio<1l,1l>> local_38 [8];
duration<long,std::ratio<1l,1000000000l>> local_30 [8];
int4 local_28;
int4 uStack_24;
int4 uStack_20;
int4 uStack_1c;
flag_formatter *local_18;
int8 local_10;
int8 uStack_8;
local_10._0_4_ = (int4)param_2;
local_10._4_4_ = (int4)((ulong)param_2 >> 0x20);
uStack_8._0_4_ = (int4)param_3;
uStack_8._4_4_ = (int4)((ulong)param_3 >> 0x20);
local_28 = (int4)local_10;
uStack_24 = local_10._4_4_;
uStack_20 = (int4)uStack_8;
uStack_1c = uStack_8._4_4_;
local_18 = param_1;
local_10 = param_2;
uStack_8 = param_3;
flag_formatter::flag_formatter(param_1,param_2,param_3);
*(int ***)param_1 = &PTR__z_formatter_00282558;
local_3c = 0;
/* try { // try from 0016514a to 0016517a has its CatchHandler @ 0016518e */
std::chrono::duration<long,std::ratio<1l,1l>>::duration<int,void>(local_38,&local_3c);
std::chrono::duration<long,std::ratio<1l,1000000000l>>::duration<long,std::ratio<1l,1l>,void>
(local_30,(duration *)local_38);
std::chrono::
time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>
::time_point((time_point<std::chrono::_V2::system_clock,std::chrono::duration<long,std::ratio<1l,1000000000l>>>
*)(param_1 + 0x18),(duration *)local_30);
*(int4 *)(param_1 + 0x20) = 0;
return;
}
| |
28,210 | strmake_root | eloqsql/mysys/my_alloc.c | char *strmake_root(MEM_ROOT *root, const char *str, size_t len)
{
char *pos;
if ((pos=alloc_root(root,len+1)))
{
if (len)
memcpy(pos,str,len);
pos[len]=0;
}
return pos;
} | O3 | c | strmake_root:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
leaq 0x1(%rdx), %rsi
callq 0x2ec53
movq %rax, %r15
testq %rax, %rax
je 0x2f04e
testq %rbx, %rbx
je 0x2f049
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x24250
movb $0x0, (%r15,%rbx)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| strmake_root:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
push rax
mov rbx, rdx
mov r14, rsi
lea rsi, [rdx+1]
call alloc_root
mov r15, rax
test rax, rax
jz short loc_2F04E
test rbx, rbx
jz short loc_2F049
mov rdi, r15
mov rsi, r14
mov rdx, rbx
call _memcpy
loc_2F049:
mov byte ptr [r15+rbx], 0
loc_2F04E:
mov rax, r15
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
| char * strmake_root(long long a1, long long a2, long long a3)
{
char *v4; // rax
char *v5; // r15
v4 = alloc_root(a1, a3 + 1);
v5 = v4;
if ( v4 )
{
if ( a3 )
memcpy(v4, a2, a3);
v5[a3] = 0;
}
return v5;
}
| strmake_root:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDX
MOV R14,RSI
LEA RSI,[RDX + 0x1]
CALL 0x0012ec53
MOV R15,RAX
TEST RAX,RAX
JZ 0x0012f04e
TEST RBX,RBX
JZ 0x0012f049
MOV RDI,R15
MOV RSI,R14
MOV RDX,RBX
CALL 0x00124250
LAB_0012f049:
MOV byte ptr [R15 + RBX*0x1],0x0
LAB_0012f04e:
MOV RAX,R15
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
|
void * strmake_root(int8 param_1,void *param_2,size_t param_3)
{
void *__dest;
__dest = (void *)alloc_root(param_1,param_3 + 1);
if (__dest != (void *)0x0) {
if (param_3 != 0) {
memcpy(__dest,param_2,param_3);
}
*(int1 *)((long)__dest + param_3) = 0;
}
return __dest;
}
| |
28,211 | ac_expr_free_expression | alca/libalca/expr.c | void ac_expr_free_expression(ac_expr *expr)
{
if (expr)
{
switch (expr->type)
{
case EXPR_CALL:
ac_expr_free_expression(expr->u.call.callee);
if (expr->u.call.arguments)
{
for (int i = 0; i < expr->u.call.arg_count; i++)
ac_expr_free_expression(expr->u.call.arguments[i]);
ac_free(expr->u.call.arguments);
}
break;
case EXPR_FIELD:
ac_expr_free_expression(expr->u.field.object);
break;
case EXPR_INDEX:
ac_expr_free_expression(expr->u.index.object);
ac_expr_free_expression(expr->u.index.index);
break;
case EXPR_BINARY:
ac_expr_free_expression(expr->u.binary.left);
ac_expr_free_expression(expr->u.binary.right);
break;
case EXPR_UNARY:
ac_expr_free_expression(expr->u.unary.right);
break;
case EXPR_GROUPING:
ac_expr_free_expression(expr->u.grouping.expression);
break;
default:;
}
ac_free(expr);
}
} | O0 | c | ac_expr_free_expression:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0xbac9
movq -0x8(%rbp), %rax
movl (%rax), %eax
movq %rax, -0x18(%rbp)
subq $0x6, %rax
ja 0xbabe
movq -0x18(%rbp), %rax
leaq 0x53372(%rip), %rcx # 0x5ed68
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x7430
movq -0x8(%rbp), %rax
cmpq $0x0, 0x28(%rax)
je 0xba57
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x18(%rcx), %eax
jae 0xba4a
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x7430
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xba1e
movq -0x8(%rbp), %rax
movq 0x28(%rax), %rdi
callq 0x73f0
jmp 0xbac0
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x7430
jmp 0xbac0
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x7430
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x7430
jmp 0xbac0
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x7430
movq -0x8(%rbp), %rax
movq 0x18(%rax), %rdi
callq 0x7430
jmp 0xbac0
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0x7430
jmp 0xbac0
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x7430
jmp 0xbac0
jmp 0xbac0
movq -0x8(%rbp), %rdi
callq 0x73f0
addq $0x20, %rsp
popq %rbp
retq
nop
| ac_expr_free_expression:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
cmp [rbp+var_8], 0
jz loc_BAC9
mov rax, [rbp+var_8]
mov eax, [rax]
mov [rbp+var_18], rax
sub rax, 6; switch 7 cases
ja def_B9FD; jumptable 000000000000B9FD default case, case 3
mov rax, [rbp+var_18]
lea rcx, jpt_B9FD
movsxd rax, ds:(jpt_B9FD - 5ED68h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_B9FF:
mov rax, [rbp+var_8]; jumptable 000000000000B9FD case 4
mov rdi, [rax+10h]
call _ac_expr_free_expression
mov rax, [rbp+var_8]
cmp qword ptr [rax+28h], 0
jz short loc_BA57
mov [rbp+var_C], 0
loc_BA1E:
mov eax, [rbp+var_C]
mov rcx, [rbp+var_8]
cmp eax, [rcx+18h]
jnb short loc_BA4A
mov rax, [rbp+var_8]
mov rax, [rax+28h]
movsxd rcx, [rbp+var_C]
mov rdi, [rax+rcx*8]
call _ac_expr_free_expression
mov eax, [rbp+var_C]
add eax, 1
mov [rbp+var_C], eax
jmp short loc_BA1E
loc_BA4A:
mov rax, [rbp+var_8]
mov rdi, [rax+28h]
call _ac_free
loc_BA57:
jmp short loc_BAC0
loc_BA59:
mov rax, [rbp+var_8]; jumptable 000000000000B9FD case 5
mov rdi, [rax+10h]
call _ac_expr_free_expression
jmp short loc_BAC0
loc_BA68:
mov rax, [rbp+var_8]; jumptable 000000000000B9FD case 6
mov rdi, [rax+10h]
call _ac_expr_free_expression
mov rax, [rbp+var_8]
mov rdi, [rax+18h]
call _ac_expr_free_expression
jmp short loc_BAC0
loc_BA84:
mov rax, [rbp+var_8]; jumptable 000000000000B9FD case 0
mov rdi, [rax+8]
call _ac_expr_free_expression
mov rax, [rbp+var_8]
mov rdi, [rax+18h]
call _ac_expr_free_expression
jmp short loc_BAC0
loc_BAA0:
mov rax, [rbp+var_8]; jumptable 000000000000B9FD case 2
mov rdi, [rax+10h]
call _ac_expr_free_expression
jmp short loc_BAC0
loc_BAAF:
mov rax, [rbp+var_8]; jumptable 000000000000B9FD case 1
mov rdi, [rax+8]
call _ac_expr_free_expression
jmp short loc_BAC0
def_B9FD:
jmp short $+2; jumptable 000000000000B9FD default case, case 3
loc_BAC0:
mov rdi, [rbp+var_8]
call _ac_free
loc_BAC9:
add rsp, 20h
pop rbp
retn
| long long ac_expr_free_expression(long long a1)
{
long long result; // rax
unsigned int i; // [rsp+14h] [rbp-Ch]
if ( a1 )
{
switch ( *(_DWORD *)a1 )
{
case 0:
ac_expr_free_expression(*(_QWORD *)(a1 + 8));
ac_expr_free_expression(*(_QWORD *)(a1 + 24));
break;
case 1:
ac_expr_free_expression(*(_QWORD *)(a1 + 8));
break;
case 2:
case 5:
ac_expr_free_expression(*(_QWORD *)(a1 + 16));
break;
case 4:
ac_expr_free_expression(*(_QWORD *)(a1 + 16));
if ( *(_QWORD *)(a1 + 40) )
{
for ( i = 0; i < *(_DWORD *)(a1 + 24); ++i )
ac_expr_free_expression(*(_QWORD *)(*(_QWORD *)(a1 + 40) + 8LL * (int)i));
ac_free(*(_QWORD *)(a1 + 40));
}
break;
case 6:
ac_expr_free_expression(*(_QWORD *)(a1 + 16));
ac_expr_free_expression(*(_QWORD *)(a1 + 24));
break;
default:
return ac_free(a1);
}
return ac_free(a1);
}
return result;
}
| ac_expr_free_expression:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
CMP qword ptr [RBP + -0x8],0x0
JZ 0x0010bac9
MOV RAX,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RAX]
MOV qword ptr [RBP + -0x18],RAX
SUB RAX,0x6
JA 0x0010babe
MOV RAX,qword ptr [RBP + -0x18]
LEA RCX,[0x15ed68]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_4:
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x10]
CALL 0x00107430
MOV RAX,qword ptr [RBP + -0x8]
CMP qword ptr [RAX + 0x28],0x0
JZ 0x0010ba57
MOV dword ptr [RBP + -0xc],0x0
LAB_0010ba1e:
MOV EAX,dword ptr [RBP + -0xc]
MOV RCX,qword ptr [RBP + -0x8]
CMP EAX,dword ptr [RCX + 0x18]
JNC 0x0010ba4a
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x28]
MOVSXD RCX,dword ptr [RBP + -0xc]
MOV RDI,qword ptr [RAX + RCX*0x8]
CALL 0x00107430
MOV EAX,dword ptr [RBP + -0xc]
ADD EAX,0x1
MOV dword ptr [RBP + -0xc],EAX
JMP 0x0010ba1e
LAB_0010ba4a:
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x28]
CALL 0x001073f0
LAB_0010ba57:
JMP 0x0010bac0
caseD_5:
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x10]
CALL 0x00107430
JMP 0x0010bac0
caseD_6:
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x10]
CALL 0x00107430
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x18]
CALL 0x00107430
JMP 0x0010bac0
caseD_0:
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x00107430
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x18]
CALL 0x00107430
JMP 0x0010bac0
caseD_2:
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x10]
CALL 0x00107430
JMP 0x0010bac0
caseD_1:
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX + 0x8]
CALL 0x00107430
JMP 0x0010bac0
caseD_3:
JMP 0x0010bac0
LAB_0010bac0:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x001073f0
LAB_0010bac9:
ADD RSP,0x20
POP RBP
RET
|
void ac_expr_free_expression(int4 *param_1)
{
uint local_14;
if (param_1 != (int4 *)0x0) {
switch(*param_1) {
case 0:
ac_expr_free_expression(*(int8 *)(param_1 + 2));
ac_expr_free_expression(*(int8 *)(param_1 + 6));
break;
case 1:
ac_expr_free_expression(*(int8 *)(param_1 + 2));
break;
case 2:
ac_expr_free_expression(*(int8 *)(param_1 + 4));
break;
default:
break;
case 4:
ac_expr_free_expression(*(int8 *)(param_1 + 4));
if (*(long *)(param_1 + 10) != 0) {
for (local_14 = 0; local_14 < (uint)param_1[6]; local_14 = local_14 + 1) {
ac_expr_free_expression
(*(int8 *)(*(long *)(param_1 + 10) + (long)(int)local_14 * 8));
}
ac_free(*(int8 *)(param_1 + 10));
}
break;
case 5:
ac_expr_free_expression(*(int8 *)(param_1 + 4));
break;
case 6:
ac_expr_free_expression(*(int8 *)(param_1 + 4));
ac_expr_free_expression(*(int8 *)(param_1 + 6));
}
ac_free(param_1);
}
return;
}
| |
28,212 | my_wc_mb_latin1 | eloqsql/strings/ctype-latin1.c | static
int my_wc_mb_latin1(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t wc,
uchar *str,
uchar *end __attribute__((unused)))
{
const uchar *pl;
if (str >= end)
return MY_CS_TOOSMALL;
if (wc > 0xFFFF)
return MY_CS_ILUNI;
pl= uni_to_cs[wc >> 8];
str[0]= pl ? pl[wc & 0xFF] : '\0';
return (!str[0] && wc) ? MY_CS_ILUNI : 1;
} | O0 | c | my_wc_mb_latin1:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x20(%rbp), %rax
cmpq -0x28(%rbp), %rax
jb 0x90a3a
movl $0xffffff9b, -0x4(%rbp) # imm = 0xFFFFFF9B
jmp 0x90ac1
cmpq $0xffff, -0x18(%rbp) # imm = 0xFFFF
jbe 0x90a4d
movl $0x0, -0x4(%rbp)
jmp 0x90ac1
movq -0x18(%rbp), %rcx
shrq $0x8, %rcx
leaq 0x19a5c4(%rip), %rax # 0x22b020
movq (%rax,%rcx,8), %rax
movq %rax, -0x30(%rbp)
cmpq $0x0, -0x30(%rbp)
je 0x90a83
movq -0x30(%rbp), %rax
movq -0x18(%rbp), %rcx
andq $0xff, %rcx
movzbl (%rax,%rcx), %eax
movl %eax, -0x34(%rbp)
jmp 0x90a8a
xorl %eax, %eax
movl %eax, -0x34(%rbp)
jmp 0x90a8a
movl -0x34(%rbp), %eax
movb %al, %cl
movq -0x20(%rbp), %rax
movb %cl, (%rax)
movq -0x20(%rbp), %rcx
xorl %eax, %eax
cmpb $0x0, (%rcx)
movb %al, -0x35(%rbp)
jne 0x90aae
cmpq $0x0, -0x18(%rbp)
setne %al
movb %al, -0x35(%rbp)
movb -0x35(%rbp), %dl
movl $0x1, %eax
xorl %ecx, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_wc_mb_latin1:
push rbp
mov rbp, rsp
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov [rbp+var_20], rdx
mov [rbp+var_28], rcx
mov rax, [rbp+var_20]
cmp rax, [rbp+var_28]
jb short loc_90A3A
mov [rbp+var_4], 0FFFFFF9Bh
jmp loc_90AC1
loc_90A3A:
cmp [rbp+var_18], 0FFFFh
jbe short loc_90A4D
mov [rbp+var_4], 0
jmp short loc_90AC1
loc_90A4D:
mov rcx, [rbp+var_18]
shr rcx, 8
lea rax, uni_to_cs
mov rax, [rax+rcx*8]
mov [rbp+var_30], rax
cmp [rbp+var_30], 0
jz short loc_90A83
mov rax, [rbp+var_30]
mov rcx, [rbp+var_18]
and rcx, 0FFh
movzx eax, byte ptr [rax+rcx]
mov [rbp+var_34], eax
jmp short loc_90A8A
loc_90A83:
xor eax, eax
mov [rbp+var_34], eax
jmp short $+2
loc_90A8A:
mov eax, [rbp+var_34]
mov cl, al
mov rax, [rbp+var_20]
mov [rax], cl
mov rcx, [rbp+var_20]
xor eax, eax
cmp byte ptr [rcx], 0
mov [rbp+var_35], al
jnz short loc_90AAE
cmp [rbp+var_18], 0
setnz al
mov [rbp+var_35], al
loc_90AAE:
mov dl, [rbp+var_35]
mov eax, 1
xor ecx, ecx
test dl, 1
cmovnz eax, ecx
mov [rbp+var_4], eax
loc_90AC1:
mov eax, [rbp+var_4]
pop rbp
retn
| long long my_wc_mb_latin1(long long a1, unsigned long long a2, _BYTE *a3, unsigned long long a4)
{
bool v5; // [rsp+1h] [rbp-35h]
char v6; // [rsp+2h] [rbp-34h]
long long v7; // [rsp+6h] [rbp-30h]
if ( (unsigned long long)a3 < a4 )
{
if ( a2 <= 0xFFFF )
{
v7 = (long long)*(&uni_to_cs + (a2 >> 8));
if ( v7 )
v6 = *(_BYTE *)(v7 + (unsigned __int8)a2);
else
v6 = 0;
*a3 = v6;
v5 = 0;
if ( !*a3 )
v5 = a2 != 0;
return !v5;
}
else
{
return 0;
}
}
else
{
return (unsigned int)-101;
}
}
| my_wc_mb_latin1:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV qword ptr [RBP + -0x20],RDX
MOV qword ptr [RBP + -0x28],RCX
MOV RAX,qword ptr [RBP + -0x20]
CMP RAX,qword ptr [RBP + -0x28]
JC 0x00190a3a
MOV dword ptr [RBP + -0x4],0xffffff9b
JMP 0x00190ac1
LAB_00190a3a:
CMP qword ptr [RBP + -0x18],0xffff
JBE 0x00190a4d
MOV dword ptr [RBP + -0x4],0x0
JMP 0x00190ac1
LAB_00190a4d:
MOV RCX,qword ptr [RBP + -0x18]
SHR RCX,0x8
LEA RAX,[0x32b020]
MOV RAX,qword ptr [RAX + RCX*0x8]
MOV qword ptr [RBP + -0x30],RAX
CMP qword ptr [RBP + -0x30],0x0
JZ 0x00190a83
MOV RAX,qword ptr [RBP + -0x30]
MOV RCX,qword ptr [RBP + -0x18]
AND RCX,0xff
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV dword ptr [RBP + -0x34],EAX
JMP 0x00190a8a
LAB_00190a83:
XOR EAX,EAX
MOV dword ptr [RBP + -0x34],EAX
JMP 0x00190a8a
LAB_00190a8a:
MOV EAX,dword ptr [RBP + -0x34]
MOV CL,AL
MOV RAX,qword ptr [RBP + -0x20]
MOV byte ptr [RAX],CL
MOV RCX,qword ptr [RBP + -0x20]
XOR EAX,EAX
CMP byte ptr [RCX],0x0
MOV byte ptr [RBP + -0x35],AL
JNZ 0x00190aae
CMP qword ptr [RBP + -0x18],0x0
SETNZ AL
MOV byte ptr [RBP + -0x35],AL
LAB_00190aae:
MOV DL,byte ptr [RBP + -0x35]
MOV EAX,0x1
XOR ECX,ECX
TEST DL,0x1
CMOVNZ EAX,ECX
MOV dword ptr [RBP + -0x4],EAX
LAB_00190ac1:
MOV EAX,dword ptr [RBP + -0x4]
POP RBP
RET
|
uint my_wc_mb_latin1(int8 param_1,ulong param_2,char *param_3,char *param_4)
{
char cVar1;
uint local_c;
if (param_3 < param_4) {
if (param_2 < 0x10000) {
if (*(long *)(uni_to_cs + (param_2 >> 8) * 8) == 0) {
cVar1 = '\0';
}
else {
cVar1 = *(char *)(*(long *)(uni_to_cs + (param_2 >> 8) * 8) + (param_2 & 0xff));
}
*param_3 = cVar1;
local_c = (uint)(*param_3 != '\0' || param_2 == 0);
}
else {
local_c = 0;
}
}
else {
local_c = 0xffffff9b;
}
return local_c;
}
| |
28,213 | testing::internal::UniversalPrinter<double>::Print(double const&, std::ostream*) | giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/include/gtest/gtest-printers.h | static void Print(const T& value, ::std::ostream* os) {
// By default, ::testing::internal::PrintTo() is used for printing
// the value.
//
// Thanks to Koenig look-up, if T is a class and has its own
// PrintTo() function defined in its namespace, that function will
// be visible here. Since it is more specific than the generic ones
// in ::testing::internal, it will be picked by the compiler in the
// following statement - exactly what we want.
PrintTo(value, os);
} | O1 | c | testing::internal::UniversalPrinter<double>::Print(double const&, std::ostream*):
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movsd (%rdi), %xmm0
movsd %xmm0, 0x8(%rsp)
movq (%rsi), %rax
movq -0x18(%rax), %r14
movq 0x8(%rsi,%r14), %r15
callq 0xea12
cltq
movq %rax, 0x8(%rbx,%r14)
movq %rbx, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x88f0
movq (%rbx), %rax
movq -0x18(%rax), %rax
movq %r15, 0x8(%rbx,%rax)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
| _ZN7testing8internal16UniversalPrinterIdE5PrintERKdPSo:
push r15
push r14
push rbx
sub rsp, 10h
mov rbx, rsi
movsd xmm0, qword ptr [rdi]
movsd [rsp+28h+var_20], xmm0
mov rax, [rsi]
mov r14, [rax-18h]
mov r15, [rsi+r14+8]
call _ZN7testing8internal21AppropriateResolutionIdEEiT_; testing::internal::AppropriateResolution<double>(double)
cdqe
mov [rbx+r14+8], rax
mov rdi, rbx
movsd xmm0, [rsp+28h+var_20]
call __ZNSo9_M_insertIdEERSoT_; std::ostream::_M_insert<double>(double)
mov rax, [rbx]
mov rax, [rax-18h]
mov [rbx+rax+8], r15
add rsp, 10h
pop rbx
pop r14
pop r15
retn
| long long testing::internal::UniversalPrinter<double>::Print(double *a1, _QWORD *a2)
{
long long v2; // r14
long long v3; // r15
long long result; // rax
double v5; // [rsp+8h] [rbp-20h]
v5 = *a1;
v2 = *(_QWORD *)(*a2 - 24LL);
v3 = *(_QWORD *)((char *)a2 + v2 + 8);
*(_QWORD *)((char *)a2 + v2 + 8) = (int)testing::internal::AppropriateResolution<double>();
std::ostream::_M_insert<double>(a2, v5);
result = *(_QWORD *)(*a2 - 24LL);
*(_QWORD *)((char *)a2 + result + 8) = v3;
return result;
}
| Print:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x10
MOV RBX,RSI
MOVSD XMM0,qword ptr [RDI]
MOVSD qword ptr [RSP + 0x8],XMM0
MOV RAX,qword ptr [RSI]
MOV R14,qword ptr [RAX + -0x18]
MOV R15,qword ptr [RSI + R14*0x1 + 0x8]
CALL 0x0010ea12
CDQE
MOV qword ptr [RBX + R14*0x1 + 0x8],RAX
MOV RDI,RBX
MOVSD XMM0,qword ptr [RSP + 0x8]
CALL 0x001088f0
MOV RAX,qword ptr [RBX]
MOV RAX,qword ptr [RAX + -0x18]
MOV qword ptr [RBX + RAX*0x1 + 0x8],R15
ADD RSP,0x10
POP RBX
POP R14
POP R15
RET
|
/* testing::internal::UniversalPrinter<double>::Print(double const&, std::ostream*) */
void testing::internal::UniversalPrinter<double>::Print(double *param_1,ostream *param_2)
{
double dVar1;
long lVar2;
int8 uVar3;
int iVar4;
dVar1 = *param_1;
lVar2 = *(long *)(*(long *)param_2 + -0x18);
uVar3 = *(int8 *)(param_2 + lVar2 + 8);
iVar4 = AppropriateResolution<double>(dVar1);
*(long *)(param_2 + lVar2 + 8) = (long)iVar4;
std::ostream::_M_insert<double>(dVar1);
*(int8 *)(param_2 + *(long *)(*(long *)param_2 + -0x18) + 8) = uVar3;
return;
}
| |
28,214 | ggml_count_equal | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c | struct ggml_tensor * ggml_count_equal(
struct ggml_context * ctx,
struct ggml_tensor * a,
struct ggml_tensor * b) {
GGML_ASSERT(ggml_are_same_shape(a, b));
struct ggml_tensor * result = ggml_new_tensor_1d(ctx, GGML_TYPE_I64, 1);
result->op = GGML_OP_COUNT_EQUAL;
result->src[0] = a;
result->src[1] = b;
return result;
} | O1 | c | ggml_count_equal:
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rsi), %rax
cmpq 0x10(%rdx), %rax
jne 0x1c81a
movq %rdx, %rbx
movq %rsi, %r14
movq 0x18(%rsi), %rax
cmpq 0x18(%rdx), %rax
jne 0x1c81a
movq 0x20(%r14), %rax
cmpq 0x20(%rbx), %rax
jne 0x1c81a
movq 0x28(%r14), %rax
cmpq 0x28(%rbx), %rax
jne 0x1c81a
movq %rsp, %rcx
movq $0x1, (%rcx)
movl $0x1b, %esi
movl $0x1, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x1b871
movl $0x11, 0x50(%rax)
movq %r14, 0x98(%rax)
movq %rbx, 0xa0(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x2fd4e(%rip), %rdi # 0x4c56f
leaq 0x2fd99(%rip), %rdx # 0x4c5c1
leaq 0x2ff81(%rip), %rcx # 0x4c7b0
movl $0x8e4, %esi # imm = 0x8E4
xorl %eax, %eax
callq 0x18ce0
| ggml_count_equal:
push r14
push rbx
push rax
mov rax, [rsi+10h]
cmp rax, [rdx+10h]
jnz short loc_1C81A
mov rbx, rdx
mov r14, rsi
mov rax, [rsi+18h]
cmp rax, [rdx+18h]
jnz short loc_1C81A
mov rax, [r14+20h]
cmp rax, [rbx+20h]
jnz short loc_1C81A
mov rax, [r14+28h]
cmp rax, [rbx+28h]
jnz short loc_1C81A
mov rcx, rsp
mov qword ptr [rcx], 1
mov esi, 1Bh
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
mov dword ptr [rax+50h], 11h
mov [rax+98h], r14
mov [rax+0A0h], rbx
add rsp, 8
pop rbx
pop r14
retn
loc_1C81A:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlAreSameSha_0; "ggml_are_same_shape(a, b)"
mov esi, 8E4h
xor eax, eax
call _ggml_abort
| long long ggml_count_equal(long long a1, _QWORD *a2, _QWORD *a3, double a4, long long a5, int a6, int a7)
{
long long v7; // rax
long long result; // rax
long long v10; // [rsp-8h] [rbp-18h] BYREF
v10 = v7;
if ( a2[2] != a3[2] || a2[3] != a3[3] || a2[4] != a3[4] || a2[5] != a3[5] )
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
2276,
(unsigned int)"GGML_ASSERT(%s) failed",
(unsigned int)"ggml_are_same_shape(a, b)",
a6,
a7);
v10 = 1LL;
result = ggml_new_tensor_impl(a1, 0x1Bu, 1, &v10, 0LL, 0LL, a4);
*(_DWORD *)(result + 80) = 17;
*(_QWORD *)(result + 152) = a2;
*(_QWORD *)(result + 160) = a3;
return result;
}
| ggml_count_equal:
PUSH R14
PUSH RBX
PUSH RAX
MOV RAX,qword ptr [RSI + 0x10]
CMP RAX,qword ptr [RDX + 0x10]
JNZ 0x0011c81a
MOV RBX,RDX
MOV R14,RSI
MOV RAX,qword ptr [RSI + 0x18]
CMP RAX,qword ptr [RDX + 0x18]
JNZ 0x0011c81a
MOV RAX,qword ptr [R14 + 0x20]
CMP RAX,qword ptr [RBX + 0x20]
JNZ 0x0011c81a
MOV RAX,qword ptr [R14 + 0x28]
CMP RAX,qword ptr [RBX + 0x28]
JNZ 0x0011c81a
MOV RCX,RSP
MOV qword ptr [RCX],0x1
MOV ESI,0x1b
MOV EDX,0x1
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0011b871
MOV dword ptr [RAX + 0x50],0x11
MOV qword ptr [RAX + 0x98],R14
MOV qword ptr [RAX + 0xa0],RBX
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_0011c81a:
LEA RDI,[0x14c56f]
LEA RDX,[0x14c5c1]
LEA RCX,[0x14c7b0]
MOV ESI,0x8e4
XOR EAX,EAX
CALL 0x00118ce0
|
void ggml_count_equal(int8 param_1,long param_2,long param_3)
{
long lVar1;
int8 local_18;
if ((((*(long *)(param_2 + 0x10) == *(long *)(param_3 + 0x10)) &&
(*(long *)(param_2 + 0x18) == *(long *)(param_3 + 0x18))) &&
(*(long *)(param_2 + 0x20) == *(long *)(param_3 + 0x20))) &&
(*(long *)(param_2 + 0x28) == *(long *)(param_3 + 0x28))) {
local_18 = 1;
lVar1 = ggml_new_tensor_impl(param_1,0x1b,1,&local_18,0,0);
*(int4 *)(lVar1 + 0x50) = 0x11;
*(long *)(lVar1 + 0x98) = param_2;
*(long *)(lVar1 + 0xa0) = param_3;
return;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
0x8e4,"GGML_ASSERT(%s) failed","ggml_are_same_shape(a, b)");
}
| |
28,215 | ggml_count_equal | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c | struct ggml_tensor * ggml_count_equal(
struct ggml_context * ctx,
struct ggml_tensor * a,
struct ggml_tensor * b) {
GGML_ASSERT(ggml_are_same_shape(a, b));
struct ggml_tensor * result = ggml_new_tensor_1d(ctx, GGML_TYPE_I64, 1);
result->op = GGML_OP_COUNT_EQUAL;
result->src[0] = a;
result->src[1] = b;
return result;
} | O2 | c | ggml_count_equal:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x1f970
testb %al, %al
je 0x21faa
pushq $0x1b
popq %rsi
pushq $0x1
popq %rdx
movq %r15, %rdi
callq 0x201a0
movl $0x11, 0x50(%rax)
movq %r14, 0x98(%rax)
movq %rbx, 0xa0(%rax)
popq %rbx
popq %r14
popq %r15
retq
leaq 0x2c5d2(%rip), %rdi # 0x4e583
leaq 0x2c61d(%rip), %rdx # 0x4e5d5
leaq 0x2c805(%rip), %rcx # 0x4e7c4
movl $0x8e4, %esi # imm = 0x8E4
xorl %eax, %eax
callq 0x1f9b0
| ggml_count_equal:
push r15
push r14
push rbx
mov rbx, rdx
mov r14, rsi
mov r15, rdi
mov rdi, rsi
mov rsi, rdx
call _ggml_are_same_shape
test al, al
jz short loc_21FAA
push 1Bh
pop rsi
push 1
pop rdx
mov rdi, r15
call _ggml_new_tensor_1d
mov dword ptr [rax+50h], 11h
mov [rax+98h], r14
mov [rax+0A0h], rbx
pop rbx
pop r14
pop r15
retn
loc_21FAA:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlAreSameSha_0; "ggml_are_same_shape(a, b)"
mov esi, 8E4h
xor eax, eax
call _ggml_abort
| long long ggml_count_equal(
long long a1,
_QWORD *a2,
_QWORD *a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
double a8,
double a9,
__m128 a10,
__m128 a11)
{
long long v12; // r8
long long v13; // r9
__m128 v14; // xmm4
__m128 v15; // xmm5
long long result; // rax
char v17; // [rsp+0h] [rbp-18h]
if ( !ggml_are_same_shape(a2, a3) )
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
2276,
(long long)"GGML_ASSERT(%s) failed",
(long long)"ggml_are_same_shape(a, b)",
v12,
v13,
a4,
a5,
a6,
a7,
v14,
v15,
a10,
a11,
v17);
result = ggml_new_tensor_1d(a1, 27LL, 1LL);
*(_DWORD *)(result + 80) = 17;
*(_QWORD *)(result + 152) = a2;
*(_QWORD *)(result + 160) = a3;
return result;
}
| ggml_count_equal:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RDX
MOV R14,RSI
MOV R15,RDI
MOV RDI,RSI
MOV RSI,RDX
CALL 0x0011f970
TEST AL,AL
JZ 0x00121faa
PUSH 0x1b
POP RSI
PUSH 0x1
POP RDX
MOV RDI,R15
CALL 0x001201a0
MOV dword ptr [RAX + 0x50],0x11
MOV qword ptr [RAX + 0x98],R14
MOV qword ptr [RAX + 0xa0],RBX
POP RBX
POP R14
POP R15
RET
LAB_00121faa:
LEA RDI,[0x14e583]
LEA RDX,[0x14e5d5]
LEA RCX,[0x14e7c4]
MOV ESI,0x8e4
XOR EAX,EAX
CALL 0x0011f9b0
|
void ggml_count_equal(int8 param_1,int8 param_2,int8 param_3)
{
char cVar1;
long lVar2;
cVar1 = ggml_are_same_shape(param_2,param_3);
if (cVar1 != '\0') {
lVar2 = ggml_new_tensor_1d(param_1,0x1b,1);
*(int4 *)(lVar2 + 0x50) = 0x11;
*(int8 *)(lVar2 + 0x98) = param_2;
*(int8 *)(lVar2 + 0xa0) = param_3;
return;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
0x8e4,"GGML_ASSERT(%s) failed","ggml_are_same_shape(a, b)");
}
| |
28,216 | ggml_count_equal | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c | struct ggml_tensor * ggml_count_equal(
struct ggml_context * ctx,
struct ggml_tensor * a,
struct ggml_tensor * b) {
GGML_ASSERT(ggml_are_same_shape(a, b));
struct ggml_tensor * result = ggml_new_tensor_1d(ctx, GGML_TYPE_I64, 1);
result->op = GGML_OP_COUNT_EQUAL;
result->src[0] = a;
result->src[1] = b;
return result;
} | O3 | c | ggml_count_equal:
pushq %r14
pushq %rbx
pushq %rax
movq 0x10(%rsi), %rax
cmpq 0x10(%rdx), %rax
jne 0x1b52b
movq %rdx, %rbx
movq %rsi, %r14
movq 0x18(%rsi), %rax
cmpq 0x18(%rdx), %rax
jne 0x1b52b
movq 0x20(%r14), %rax
cmpq 0x20(%rbx), %rax
jne 0x1b52b
movq 0x28(%r14), %rax
cmpq 0x28(%rbx), %rax
jne 0x1b52b
movq %rsp, %rcx
movq $0x1, (%rcx)
movl $0x1b, %esi
movl $0x1, %edx
xorl %r8d, %r8d
xorl %r9d, %r9d
callq 0x1a57f
movl $0x11, 0x50(%rax)
movq %r14, 0x98(%rax)
movq %rbx, 0xa0(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x310e1(%rip), %rdi # 0x4c613
leaq 0x3112c(%rip), %rdx # 0x4c665
leaq 0x31314(%rip), %rcx # 0x4c854
movl $0x8e4, %esi # imm = 0x8E4
xorl %eax, %eax
callq 0x17cd0
| ggml_count_equal:
push r14
push rbx
push rax
mov rax, [rsi+10h]
cmp rax, [rdx+10h]
jnz short loc_1B52B
mov rbx, rdx
mov r14, rsi
mov rax, [rsi+18h]
cmp rax, [rdx+18h]
jnz short loc_1B52B
mov rax, [r14+20h]
cmp rax, [rbx+20h]
jnz short loc_1B52B
mov rax, [r14+28h]
cmp rax, [rbx+28h]
jnz short loc_1B52B
mov rcx, rsp
mov qword ptr [rcx], 1
mov esi, 1Bh
mov edx, 1
xor r8d, r8d
xor r9d, r9d
call ggml_new_tensor_impl
mov dword ptr [rax+50h], 11h
mov [rax+98h], r14
mov [rax+0A0h], rbx
add rsp, 8
pop rbx
pop r14
retn
loc_1B52B:
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aGgmlAreSameSha_0; "ggml_are_same_shape(a, b)"
mov esi, 8E4h
xor eax, eax
call _ggml_abort
| long long ggml_count_equal(long long a1, _QWORD *a2, _QWORD *a3, double a4, long long a5, int a6, int a7)
{
long long v7; // rax
long long result; // rax
long long v10; // [rsp-8h] [rbp-18h] BYREF
v10 = v7;
if ( a2[2] != a3[2] || a2[3] != a3[3] || a2[4] != a3[4] || a2[5] != a3[5] )
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
2276,
(unsigned int)"GGML_ASSERT(%s) failed",
(unsigned int)"ggml_are_same_shape(a, b)",
a6,
a7);
v10 = 1LL;
result = ggml_new_tensor_impl(a1, 0x1Bu, 1u, &v10, 0LL, 0LL, a4);
*(_DWORD *)(result + 80) = 17;
*(_QWORD *)(result + 152) = a2;
*(_QWORD *)(result + 160) = a3;
return result;
}
| ggml_count_equal:
PUSH R14
PUSH RBX
PUSH RAX
MOV RAX,qword ptr [RSI + 0x10]
CMP RAX,qword ptr [RDX + 0x10]
JNZ 0x0011b52b
MOV RBX,RDX
MOV R14,RSI
MOV RAX,qword ptr [RSI + 0x18]
CMP RAX,qword ptr [RDX + 0x18]
JNZ 0x0011b52b
MOV RAX,qword ptr [R14 + 0x20]
CMP RAX,qword ptr [RBX + 0x20]
JNZ 0x0011b52b
MOV RAX,qword ptr [R14 + 0x28]
CMP RAX,qword ptr [RBX + 0x28]
JNZ 0x0011b52b
MOV RCX,RSP
MOV qword ptr [RCX],0x1
MOV ESI,0x1b
MOV EDX,0x1
XOR R8D,R8D
XOR R9D,R9D
CALL 0x0011a57f
MOV dword ptr [RAX + 0x50],0x11
MOV qword ptr [RAX + 0x98],R14
MOV qword ptr [RAX + 0xa0],RBX
ADD RSP,0x8
POP RBX
POP R14
RET
LAB_0011b52b:
LEA RDI,[0x14c613]
LEA RDX,[0x14c665]
LEA RCX,[0x14c854]
MOV ESI,0x8e4
XOR EAX,EAX
CALL 0x00117cd0
|
void ggml_count_equal(int8 param_1,long param_2,long param_3)
{
long lVar1;
int8 local_18;
if ((((*(long *)(param_2 + 0x10) == *(long *)(param_3 + 0x10)) &&
(*(long *)(param_2 + 0x18) == *(long *)(param_3 + 0x18))) &&
(*(long *)(param_2 + 0x20) == *(long *)(param_3 + 0x20))) &&
(*(long *)(param_2 + 0x28) == *(long *)(param_3 + 0x28))) {
local_18 = 1;
lVar1 = ggml_new_tensor_impl(param_1,0x1b,1,&local_18,0,0);
*(int4 *)(lVar1 + 0x50) = 0x11;
*(long *)(lVar1 + 0x98) = param_2;
*(long *)(lVar1 + 0xa0) = param_3;
return;
}
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
0x8e4,"GGML_ASSERT(%s) failed","ggml_are_same_shape(a, b)");
}
| |
28,217 | OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::getFaceCompositeValueTag(int) const | NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/fvarLevel.cpp | FVarLevel::ValueTag
FVarLevel::getFaceCompositeValueTag(Index faceIndex) const {
ConstIndexArray faceValues = getFaceValues(faceIndex);
ConstIndexArray faceVerts = _level.getFaceVertices(faceIndex);
typedef ValueTag::ValueTagSize ValueTagSize;
ValueTagSize compInt = 0;
for (int i = 0; i < faceValues.size(); ++i) {
Index srcValueIndex = findVertexValueIndex(faceVerts[i], faceValues[i]);
assert(_vertValueIndices[srcValueIndex] == faceValues[i]);
ValueTag const & srcTag = _vertValueTags[srcValueIndex];
ValueTagSize const srcInt = srcTag.getBits();
compInt |= srcInt;
}
return ValueTag(compInt);
} | O0 | cpp | OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::getFaceCompositeValueTag(int) const:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x80(%rbp)
movl -0x14(%rbp), %esi
callq 0xc63c0
movq %rax, %rcx
movq -0x80(%rbp), %rax
movl %edx, -0x30(%rbp)
movq %rcx, -0x38(%rbp)
movl -0x30(%rbp), %ecx
movl %ecx, -0x20(%rbp)
movq -0x38(%rbp), %rcx
movq %rcx, -0x28(%rbp)
movq (%rax), %rdi
movl -0x14(%rbp), %esi
callq 0xce580
movl %edx, -0x50(%rbp)
movq %rax, -0x58(%rbp)
movq -0x58(%rbp), %rax
movq %rax, -0x48(%rbp)
movl -0x50(%rbp), %eax
movl %eax, -0x40(%rbp)
movb $0x0, -0x59(%rbp)
movl $0x0, -0x60(%rbp)
movl -0x60(%rbp), %eax
movl %eax, -0x84(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xcc250
movl %eax, %ecx
movl -0x84(%rbp), %eax
cmpl %ecx, %eax
jge 0xdda34
movl -0x60(%rbp), %esi
leaq -0x48(%rbp), %rdi
callq 0xcabf0
movl (%rax), %eax
movl %eax, -0x8c(%rbp)
movl -0x60(%rbp), %esi
leaq -0x28(%rbp), %rdi
callq 0xcabf0
movl -0x8c(%rbp), %esi
movq -0x80(%rbp), %rdi
movl (%rax), %edx
callq 0xc9120
movq -0x80(%rbp), %rdi
movl %eax, -0x64(%rbp)
addq $0x90, %rdi
movslq -0x64(%rbp), %rsi
callq 0xd09b0
movl (%rax), %eax
movl %eax, -0x88(%rbp)
movl -0x60(%rbp), %esi
leaq -0x28(%rbp), %rdi
callq 0xcabf0
movq %rax, %rcx
movl -0x88(%rbp), %eax
cmpl (%rcx), %eax
jne 0xdd9d6
jmp 0xdd9f5
leaq 0x10ca9d(%rip), %rdi # 0x1ea47a
leaq 0x10c665(%rip), %rsi # 0x1ea049
movl $0x420, %edx # imm = 0x420
leaq 0x10cb19(%rip), %rcx # 0x1ea509
callq 0xc9440
movq -0x80(%rbp), %rdi
addq $0xa8, %rdi
movslq -0x64(%rbp), %rsi
callq 0xd64f0
movq %rax, -0x70(%rbp)
movq -0x70(%rbp), %rdi
callq 0xd6f10
movb %al, -0x71(%rbp)
movzbl -0x71(%rbp), %ecx
movzbl -0x59(%rbp), %eax
orl %ecx, %eax
movb %al, -0x59(%rbp)
movl -0x60(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x60(%rbp)
jmp 0xdd949
leaq -0x1(%rbp), %rdi
movzbl -0x59(%rbp), %esi
callq 0xd3630
movb -0x1(%rbp), %al
addq $0x90, %rsp
popq %rbp
retq
nopl (%rax)
| _ZNK10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel24getFaceCompositeValueTagEi:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov rdi, [rbp+var_10]; this
mov [rbp+var_80], rdi
mov esi, [rbp+var_14]; int
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel13getFaceValuesEi; OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::getFaceValues(int)
mov rcx, rax
mov rax, [rbp+var_80]
mov [rbp+var_30], edx
mov [rbp+var_38], rcx
mov ecx, [rbp+var_30]
mov [rbp+var_20], ecx
mov rcx, [rbp+var_38]
mov [rbp+var_28], rcx
mov rdi, [rax]; this
mov esi, [rbp+var_14]; int
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal5Level15getFaceVerticesEi; OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceVertices(int)
mov [rbp+var_50], edx
mov [rbp+var_58], rax
mov rax, [rbp+var_58]
mov [rbp+var_48], rax
mov eax, [rbp+var_50]
mov [rbp+var_40], eax
mov [rbp+var_59], 0
mov [rbp+var_60], 0
loc_DD949:
mov eax, [rbp+var_60]
mov [rbp+var_84], eax
lea rdi, [rbp+var_28]
call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiE4sizeEv; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(void)
mov ecx, eax
mov eax, [rbp+var_84]
cmp eax, ecx
jge loc_DDA34
mov esi, [rbp+var_60]
lea rdi, [rbp+var_48]
call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](int)
mov eax, [rax]
mov [rbp+var_8C], eax
mov esi, [rbp+var_60]
lea rdi, [rbp+var_28]
call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](int)
mov esi, [rbp+var_8C]; int
mov rdi, [rbp+var_80]; this
mov edx, [rax]; int
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel20findVertexValueIndexEii; OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::findVertexValueIndex(int,int)
mov rdi, [rbp+var_80]
mov [rbp+var_64], eax
add rdi, 90h
movsxd rsi, [rbp+var_64]
call __ZNKSt6vectorIiSaIiEEixEm; std::vector<int>::operator[](ulong)
mov eax, [rax]
mov [rbp+var_88], eax
mov esi, [rbp+var_60]
lea rdi, [rbp+var_28]
call __ZNK10OpenSubdiv6v3_6_03Vtr10ConstArrayIiEixEi; OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](int)
mov rcx, rax
mov eax, [rbp+var_88]
cmp eax, [rcx]
jnz short loc_DD9D6
jmp short loc_DD9F5
loc_DD9D6:
lea rdi, aVertvalueindic; "_vertValueIndices[srcValueIndex] == fac"...
lea rsi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov edx, 420h
lea rcx, aFvarlevelValue; "FVarLevel::ValueTag OpenSubdiv::v3_6_0:"...
call ___assert_fail
loc_DD9F5:
mov rdi, [rbp+var_80]
add rdi, 0A8h
movsxd rsi, [rbp+var_64]
call __ZNKSt6vectorIN10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel8ValueTagESaIS5_EEixEm; std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>::operator[](ulong)
mov [rbp+var_70], rax
mov rdi, [rbp+var_70]; this
call __ZNK10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel8ValueTag7getBitsEv; OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag::getBits(void)
mov [rbp+var_71], al
movzx ecx, [rbp+var_71]
movzx eax, [rbp+var_59]
or eax, ecx
mov [rbp+var_59], al
mov eax, [rbp+var_60]
add eax, 1
mov [rbp+var_60], eax
jmp loc_DD949
loc_DDA34:
lea rdi, [rbp+var_1]; this
movzx esi, [rbp+var_59]; unsigned __int8
call __ZN10OpenSubdiv6v3_6_03Vtr8internal9FVarLevel8ValueTagC2Eh; OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag::ValueTag(uchar)
mov al, [rbp+var_1]
add rsp, 90h
pop rbp
retn
| char OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::getFaceCompositeValueTag(
OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel *this,
int a2)
{
long long FaceValues; // rax
int v3; // edx
int v4; // edx
int *v5; // rax
int v7; // [rsp+4h] [rbp-8Ch]
int v8; // [rsp+8h] [rbp-88h]
OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag *v9; // [rsp+20h] [rbp-70h]
int VertexValueIndex; // [rsp+2Ch] [rbp-64h]
unsigned int i; // [rsp+30h] [rbp-60h]
unsigned __int8 v12; // [rsp+37h] [rbp-59h]
long long FaceVertices; // [rsp+48h] [rbp-48h] BYREF
int v14; // [rsp+50h] [rbp-40h]
long long v15; // [rsp+58h] [rbp-38h]
int v16; // [rsp+60h] [rbp-30h]
long long v17; // [rsp+68h] [rbp-28h] BYREF
int v18; // [rsp+70h] [rbp-20h]
int v19; // [rsp+7Ch] [rbp-14h]
OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel *v20; // [rsp+80h] [rbp-10h]
char v21; // [rsp+8Fh] [rbp-1h] BYREF
v20 = this;
v19 = a2;
FaceValues = OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::getFaceValues(this, a2);
v16 = v3;
v15 = FaceValues;
v18 = v3;
v17 = FaceValues;
FaceVertices = OpenSubdiv::v3_6_0::Vtr::internal::Level::getFaceVertices(
*(OpenSubdiv::v3_6_0::Vtr::internal::Level **)this,
a2);
v14 = v4;
v12 = 0;
for ( i = 0; (int)i < (int)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::size(&v17); ++i )
{
v7 = *(_DWORD *)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](&FaceVertices, i);
v5 = (int *)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](&v17, i);
VertexValueIndex = OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::findVertexValueIndex(this, v7, *v5);
v8 = *(_DWORD *)std::vector<int>::operator[]((char *)this + 144, VertexValueIndex);
if ( v8 != *(_DWORD *)OpenSubdiv::v3_6_0::Vtr::ConstArray<int>::operator[](&v17, i) )
__assert_fail(
"_vertValueIndices[srcValueIndex] == faceValues[i]",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/fvarLevel.cpp",
1056LL,
"FVarLevel::ValueTag OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::getFaceCompositeValueTag(Index) const");
v9 = (OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag *)std::vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>::operator[](
(char *)this + 168,
VertexValueIndex);
v12 |= OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag::getBits(v9);
}
OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag::ValueTag(
(OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag *)&v21,
v12);
return v21;
}
| getFaceCompositeValueTag:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV RDI,qword ptr [RBP + -0x10]
MOV qword ptr [RBP + -0x80],RDI
MOV ESI,dword ptr [RBP + -0x14]
CALL 0x001c63c0
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x80]
MOV dword ptr [RBP + -0x30],EDX
MOV qword ptr [RBP + -0x38],RCX
MOV ECX,dword ptr [RBP + -0x30]
MOV dword ptr [RBP + -0x20],ECX
MOV RCX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x28],RCX
MOV RDI,qword ptr [RAX]
MOV ESI,dword ptr [RBP + -0x14]
CALL 0x001ce580
MOV dword ptr [RBP + -0x50],EDX
MOV qword ptr [RBP + -0x58],RAX
MOV RAX,qword ptr [RBP + -0x58]
MOV qword ptr [RBP + -0x48],RAX
MOV EAX,dword ptr [RBP + -0x50]
MOV dword ptr [RBP + -0x40],EAX
MOV byte ptr [RBP + -0x59],0x0
MOV dword ptr [RBP + -0x60],0x0
LAB_001dd949:
MOV EAX,dword ptr [RBP + -0x60]
MOV dword ptr [RBP + -0x84],EAX
LEA RDI,[RBP + -0x28]
CALL 0x001cc250
MOV ECX,EAX
MOV EAX,dword ptr [RBP + -0x84]
CMP EAX,ECX
JGE 0x001dda34
MOV ESI,dword ptr [RBP + -0x60]
LEA RDI,[RBP + -0x48]
CALL 0x001cabf0
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x8c],EAX
MOV ESI,dword ptr [RBP + -0x60]
LEA RDI,[RBP + -0x28]
CALL 0x001cabf0
MOV ESI,dword ptr [RBP + -0x8c]
MOV RDI,qword ptr [RBP + -0x80]
MOV EDX,dword ptr [RAX]
CALL 0x001c9120
MOV RDI,qword ptr [RBP + -0x80]
MOV dword ptr [RBP + -0x64],EAX
ADD RDI,0x90
MOVSXD RSI,dword ptr [RBP + -0x64]
CALL 0x001d09b0
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x88],EAX
MOV ESI,dword ptr [RBP + -0x60]
LEA RDI,[RBP + -0x28]
CALL 0x001cabf0
MOV RCX,RAX
MOV EAX,dword ptr [RBP + -0x88]
CMP EAX,dword ptr [RCX]
JNZ 0x001dd9d6
JMP 0x001dd9f5
LAB_001dd9d6:
LEA RDI,[0x2ea47a]
LEA RSI,[0x2ea049]
MOV EDX,0x420
LEA RCX,[0x2ea509]
CALL 0x001c9440
LAB_001dd9f5:
MOV RDI,qword ptr [RBP + -0x80]
ADD RDI,0xa8
MOVSXD RSI,dword ptr [RBP + -0x64]
CALL 0x001d64f0
MOV qword ptr [RBP + -0x70],RAX
MOV RDI,qword ptr [RBP + -0x70]
CALL 0x001d6f10
MOV byte ptr [RBP + -0x71],AL
MOVZX ECX,byte ptr [RBP + -0x71]
MOVZX EAX,byte ptr [RBP + -0x59]
OR EAX,ECX
MOV byte ptr [RBP + -0x59],AL
MOV EAX,dword ptr [RBP + -0x60]
ADD EAX,0x1
MOV dword ptr [RBP + -0x60],EAX
JMP 0x001dd949
LAB_001dda34:
LEA RDI,[RBP + -0x1]
MOVZX ESI,byte ptr [RBP + -0x59]
CALL 0x001d3630
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x90
POP RBP
RET
|
/* OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::getFaceCompositeValueTag(int) const */
ValueTag __thiscall
OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::getFaceCompositeValueTag(FVarLevel *this,int param_1)
{
byte bVar1;
int iVar2;
int iVar3;
int *piVar4;
ValueTag *this_00;
int local_68;
byte local_61;
ConstArray<int> local_50 [16];
int1 local_40 [12];
ConstArray<int> local_30 [20];
int local_1c;
FVarLevel *local_18;
ValueTag local_9;
local_1c = param_1;
local_18 = this;
local_40 = getFaceValues(this,param_1);
local_30._0_12_ = local_40;
local_50._0_12_ = Level::getFaceVertices(*(Level **)this,local_1c);
local_61 = 0;
local_68 = 0;
while( true ) {
iVar2 = ConstArray<int>::size(local_30);
if (iVar2 <= local_68) {
ValueTag::ValueTag(&local_9,local_61);
return local_9;
}
piVar4 = (int *)ConstArray<int>::operator[](local_50,local_68);
iVar2 = *piVar4;
piVar4 = (int *)ConstArray<int>::operator[](local_30,local_68);
iVar3 = findVertexValueIndex(this,iVar2,*piVar4);
piVar4 = (int *)std::vector<int,std::allocator<int>>::operator[]
((vector<int,std::allocator<int>> *)(this + 0x90),(long)iVar3);
iVar2 = *piVar4;
piVar4 = (int *)ConstArray<int>::operator[](local_30,local_68);
if (iVar2 != *piVar4) break;
this_00 = (ValueTag *)
std::
vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>>
::operator[]((vector<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag,std::allocator<OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::ValueTag>>
*)(this + 0xa8),(long)iVar3);
bVar1 = ValueTag::getBits(this_00);
local_61 = local_61 | bVar1;
local_68 = local_68 + 1;
}
/* WARNING: Subroutine does not return */
__assert_fail("_vertValueIndices[srcValueIndex] == faceValues[i]",
"/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/fvarLevel.cpp"
,0x420,
"FVarLevel::ValueTag OpenSubdiv::v3_6_0::Vtr::internal::FVarLevel::getFaceCompositeValueTag(Index) const"
);
}
| |
28,218 | inline_mysql_cond_init | eloqsql/include/mysql/psi/mysql_thread.h | static inline int inline_mysql_cond_init(
#ifdef HAVE_PSI_COND_INTERFACE
PSI_cond_key key,
#endif
mysql_cond_t *that,
const pthread_condattr_t *attr)
{
#ifdef HAVE_PSI_COND_INTERFACE
that->m_psi= PSI_COND_CALL(init_cond)(key, &that->m_cond);
#else
that->m_psi= NULL;
#endif
return pthread_cond_init(&that->m_cond, attr);
} | O0 | c | inline_mysql_cond_init:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq 0x1b130e(%rip), %rax # 0x1e4ca8
movq (%rax), %rax
movq 0x60(%rax), %rax
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
callq *%rax
movq %rax, %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x25430
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
| inline_mysql_cond_init:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_4], edi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
lea rax, PSI_server
mov rax, [rax]
mov rax, [rax+60h]
mov edi, [rbp+var_4]
mov rsi, [rbp+var_10]
call rax
mov rcx, rax
mov rax, [rbp+var_10]
mov [rax+30h], rcx
mov rdi, [rbp+var_10]
mov rsi, [rbp+var_18]
call _pthread_cond_init
add rsp, 20h
pop rbp
retn
| long long inline_mysql_cond_init(unsigned int a1, long long a2, long long a3)
{
*(_QWORD *)(a2 + 48) = (*((long long ( **)(_QWORD, long long))PSI_server[0] + 12))(a1, a2);
return pthread_cond_init(a2, a3);
}
| inline_mysql_cond_init:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
LEA RAX,[0x2e4ca8]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x60]
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x10]
CALL RAX
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x30],RCX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x00125430
ADD RSP,0x20
POP RBP
RET
|
void inline_mysql_cond_init(int4 param_1,pthread_cond_t *param_2,pthread_condattr_t *param_3)
{
longlong lVar1;
lVar1 = (**(code **)(PSI_server + 0x60))(param_1,param_2);
param_2[1].__align = lVar1;
pthread_cond_init(param_2,param_3);
return;
}
| |
28,219 | minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const | llama.cpp/common/minja/minja.hpp | Value do_evaluate(const std::shared_ptr<Context> & context) const override {
if (!left) throw std::runtime_error("BinaryOpExpr.left is null");
if (!right) throw std::runtime_error("BinaryOpExpr.right is null");
auto l = left->evaluate(context);
auto do_eval = [&](const Value & l) -> Value {
if (op == Op::Is || op == Op::IsNot) {
auto t = dynamic_cast<VariableExpr*>(right.get());
if (!t) throw std::runtime_error("Right side of 'is' operator must be a variable");
auto eval = [&]() {
const auto & name = t->get_name();
if (name == "none") return l.is_null();
if (name == "boolean") return l.is_boolean();
if (name == "integer") return l.is_number_integer();
if (name == "float") return l.is_number_float();
if (name == "number") return l.is_number();
if (name == "string") return l.is_string();
if (name == "mapping") return l.is_object();
if (name == "iterable") return l.is_iterable();
if (name == "sequence") return l.is_array();
if (name == "defined") return !l.is_null();
throw std::runtime_error("Unknown type for 'is' operator: " + name);
};
auto value = eval();
return Value(op == Op::Is ? value : !value);
}
if (op == Op::And) {
if (!l.to_bool()) return Value(false);
return right->evaluate(context).to_bool();
} else if (op == Op::Or) {
if (l.to_bool()) return l;
return right->evaluate(context);
}
auto r = right->evaluate(context);
switch (op) {
case Op::StrConcat: return l.to_str() + r.to_str();
case Op::Add: return l + r;
case Op::Sub: return l - r;
case Op::Mul: return l * r;
case Op::Div: return l / r;
case Op::MulMul: return std::pow(l.get<double>(), r.get<double>());
case Op::DivDiv: return l.get<int64_t>() / r.get<int64_t>();
case Op::Mod: return l.get<int64_t>() % r.get<int64_t>();
case Op::Eq: return l == r;
case Op::Ne: return l != r;
case Op::Lt: return l < r;
case Op::Gt: return l > r;
case Op::Le: return l <= r;
case Op::Ge: return l >= r;
case Op::In: return (r.is_array() || r.is_object()) && r.contains(l);
case Op::NotIn: return !(r.is_array() && r.contains(l));
default: break;
}
throw std::runtime_error("Unknown binary operator");
};
if (l.is_callable()) {
return Value::callable([l, do_eval](const std::shared_ptr<Context> & context, ArgumentsValue & args) {
auto ll = l.call(context, args);
return do_eval(ll); //args[0].second);
});
} else {
return do_eval(l);
}
} | O3 | cpp | minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rsi, %r15
movq 0x20(%rsi), %rsi
testq %rsi, %rsi
je 0xeea5d
cmpq $0x0, 0x30(%r15)
je 0xeea7b
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x38(%rsp), %r12
movq %r12, %rdi
callq 0xe379c
movq %r15, 0x8(%rsp)
movq %r14, 0x10(%rsp)
cmpq $0x0, 0x30(%r12)
je 0xee9b5
leaq 0x88(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0xc0070
movups 0x8(%rsp), %xmm0
leaq 0x88(%rsp), %rsi
movups %xmm0, 0x50(%rsi)
leaq 0x18(%rsp), %rdi
callq 0xeeb98
leaq 0x18(%rsp), %rsi
movq %rbx, %rdi
callq 0xbe33e
movq 0x28(%rsp), %rax
testq %rax, %rax
je 0xee951
leaq 0x18(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
leaq 0xc8(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x875ae
movq %r14, %rdi
callq 0x8bcc8
leaq 0xc0(%rsp), %rdi
callq 0x72cea
leaq 0xb0(%rsp), %rdi
callq 0x72cea
leaq 0xa0(%rsp), %r14
movq %r14, %rdi
callq 0x72cea
movq -0x10(%r14), %rdi
testq %rdi, %rdi
je 0xee9de
movq 0x765f3(%rip), %rax # 0x164f98
cmpb $0x0, (%rax)
je 0xee9c9
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0xee9d3
leaq 0x8(%rsp), %rsi
leaq 0x38(%rsp), %rdx
movq %rbx, %rdi
callq 0xeec72
jmp 0xee9de
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0xee9de
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x78(%rsp), %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0x875ae
movq %r14, %rdi
callq 0x8bcc8
leaq 0x70(%rsp), %rdi
callq 0x72cea
leaq 0x60(%rsp), %rdi
callq 0x72cea
leaq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0x72cea
movq -0x10(%r14), %rdi
testq %rdi, %rdi
je 0xeea4b
movq 0x76572(%rip), %rax # 0x164f98
cmpb $0x0, (%rax)
je 0xeea36
movl 0xc(%rdi), %eax
leal -0x1(%rax), %ecx
movl %ecx, 0xc(%rdi)
jmp 0xeea40
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
lock
xaddl %eax, 0xc(%rdi)
cmpl $0x1, %eax
jne 0xeea4b
movq (%rdi), %rax
callq *0x18(%rax)
movq %rbx, %rax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl $0x10, %edi
callq 0x216d0
movq %rax, %r14
leaq 0x3522a(%rip), %rsi # 0x123c9b
movq %rax, %rdi
callq 0x21430
jmp 0xeea97
movl $0x10, %edi
callq 0x216d0
movq %rax, %r14
leaq 0x35226(%rip), %rsi # 0x123cb5
movq %rax, %rdi
callq 0x21430
movq 0x76522(%rip), %rsi # 0x164fc0
movq 0x764db(%rip), %rdx # 0x164f80
movq %r14, %rdi
callq 0x21b60
jmp 0xeeaf8
jmp 0xeeade
jmp 0xeeab3
movq %rax, %rbx
movq %r14, %rdi
callq 0x22080
jmp 0xeeb05
movq %rax, %rbx
movq 0x28(%rsp), %rax
testq %rax, %rax
je 0xeeae9
leaq 0x18(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0xeeae9
movq %rax, %rdi
callq 0x28d45
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0xeebf6
jmp 0xeeafb
movq %rax, %rbx
leaq 0x38(%rsp), %rdi
callq 0xb857c
movq %rbx, %rdi
callq 0x21c20
nop
| _ZNK5minja12BinaryOpExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE:
push r15
push r14
push r12
push rbx
sub rsp, 0E8h
mov r15, rsi
mov rsi, [rsi+20h]
test rsi, rsi
jz loc_EEA5D
cmp qword ptr [r15+30h], 0
jz loc_EEA7B
mov r14, rdx
mov rbx, rdi
lea r12, [rsp+108h+var_D0]
mov rdi, r12
call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&)
mov qword ptr [rsp+108h+var_100], r15
mov qword ptr [rsp+108h+var_100+8], r14
cmp qword ptr [r12+30h], 0
jz loc_EE9B5
lea rdi, [rsp+108h+var_80]; this
lea rsi, [rsp+108h+var_D0]; minja::Value *
call _ZN5minja5ValueC2ERKS0_; minja::Value::Value(minja::Value const&)
movups xmm0, [rsp+108h+var_100]
lea rsi, [rsp+108h+var_80]
movups xmmword ptr [rsi+50h], xmm0
lea rdi, [rsp+108h+var_F0]
call _ZNSt8functionIFN5minja5ValueERKSt10shared_ptrINS0_7ContextEERNS0_14ArgumentsValueEEEC2IZNKS0_12BinaryOpExpr11do_evaluateES6_EUlS6_S8_E_vEEOT_; std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>::function<minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)::{lambda(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)#1},void>(minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)::{lambda(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)#1} &&)
lea rsi, [rsp+108h+var_F0]
mov rdi, rbx
call _ZN5minja5Value8callableERKSt8functionIFS0_RKSt10shared_ptrINS_7ContextEERNS_14ArgumentsValueEEE; minja::Value::callable(std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)> const&)
mov rax, [rsp+108h+var_E0]
test rax, rax
jz short loc_EE951
lea rdi, [rsp+108h+var_F0]
mov rsi, rdi
mov edx, 3
call rax
loc_EE951:
lea r14, [rsp+108h+var_40]
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
lea rdi, [rsp+108h+var_48]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+108h+var_58]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea r14, [rsp+108h+var_68]
mov rdi, r14
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, [r14-10h]
test rdi, rdi
jz short loc_EE9DE
mov rax, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag
cmp byte ptr [rax], 0
jz short loc_EE9C9
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_EE9D3
loc_EE9B5:
lea rsi, [rsp+108h+var_100]
lea rdx, [rsp+108h+var_D0]
mov rdi, rbx; this
call _ZZNK5minja12BinaryOpExpr11do_evaluateERKSt10shared_ptrINS_7ContextEEENKUlRKNS_5ValueEE_clES8_; minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)::{lambda(minja::Value const&)#1}::operator()(minja::Value const&)
jmp short loc_EE9DE
loc_EE9C9:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_EE9D3:
cmp eax, 1
jnz short loc_EE9DE
mov rax, [rdi]
call qword ptr [rax+18h]
loc_EE9DE:
lea r14, [rsp+108h+var_90]
mov rdi, r14
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool)
mov rdi, r14
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
lea rdi, [rsp+108h+var_98]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea rdi, [rsp+108h+var_A8]
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
lea r14, [rsp+108h+var_B8]
mov rdi, r14
call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count()
mov rdi, [r14-10h]
test rdi, rdi
jz short loc_EEA4B
mov rax, cs:_ZTISt19_Sp_make_shared_tag; `typeinfo for'std::_Sp_make_shared_tag
cmp byte ptr [rax], 0
jz short loc_EEA36
mov eax, [rdi+0Ch]
lea ecx, [rax-1]
mov [rdi+0Ch], ecx
jmp short loc_EEA40
loc_EEA36:
mov eax, 0FFFFFFFFh
lock xadd [rdi+0Ch], eax
loc_EEA40:
cmp eax, 1
jnz short loc_EEA4B
mov rax, [rdi]
call qword ptr [rax+18h]
loc_EEA4B:
mov rax, rbx
add rsp, 0E8h
pop rbx
pop r12
pop r14
pop r15
retn
loc_EEA5D:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aBinaryopexprLe; "BinaryOpExpr.left is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short loc_EEA97
loc_EEA7B:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov r14, rax
lea rsi, aBinaryopexprRi; "BinaryOpExpr.right is null"
mov rdi, rax; this
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
loc_EEA97:
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, r14; void *
call ___cxa_throw
jmp short loc_EEAF8
jmp short loc_EEADE
jmp short $+2
loc_EEAB3:
mov rbx, rax
mov rdi, r14; void *
call ___cxa_free_exception
jmp short loc_EEB05
mov rbx, rax
mov rax, [rsp+108h+var_E0]
test rax, rax
jz short loc_EEAE9
lea rdi, [rsp+108h+var_F0]
mov rsi, rdi
mov edx, 3
call rax
jmp short loc_EEAE9
loc_EEADE:
mov rdi, rax
call __clang_call_terminate
mov rbx, rax
loc_EEAE9:
lea rdi, [rsp+108h+var_80]
call _ZZNK5minja12BinaryOpExpr11do_evaluateERKSt10shared_ptrINS_7ContextEEENUlS5_RNS_14ArgumentsValueEE_D2Ev; minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)::{lambda(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)#1}::~ArgumentsValue()
jmp short loc_EEAFB
loc_EEAF8:
mov rbx, rax
loc_EEAFB:
lea rdi, [rsp+108h+var_D0]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
loc_EEB05:
mov rdi, rbx
call __Unwind_Resume
| minja::Value * minja::BinaryOpExpr::do_evaluate(minja::Value *this, long long a2, long long a3)
{
void (***v4)(void); // rsi
long long v7; // rdi
signed __int32 v8; // eax
long long v9; // rdi
signed __int32 v10; // eax
std::runtime_error *exception; // r14
__int128 v13; // [rsp+8h] [rbp-100h]
_BYTE v14[16]; // [rsp+18h] [rbp-F0h] BYREF
void ( *v15)(_BYTE *, _BYTE *, long long); // [rsp+28h] [rbp-E0h]
_BYTE v16[8]; // [rsp+38h] [rbp-D0h] BYREF
long long v17; // [rsp+40h] [rbp-C8h]
volatile signed __int32 *v18; // [rsp+50h] [rbp-B8h] BYREF
volatile signed __int32 *v19[2]; // [rsp+60h] [rbp-A8h] BYREF
volatile signed __int32 *v20; // [rsp+70h] [rbp-98h] BYREF
char v21[16]; // [rsp+78h] [rbp-90h] BYREF
_BYTE v22[8]; // [rsp+88h] [rbp-80h] BYREF
long long v23; // [rsp+90h] [rbp-78h]
volatile signed __int32 *v24; // [rsp+A0h] [rbp-68h] BYREF
volatile signed __int32 *v25; // [rsp+B0h] [rbp-58h] BYREF
volatile signed __int32 *v26; // [rsp+C0h] [rbp-48h] BYREF
char v27[16]; // [rsp+C8h] [rbp-40h] BYREF
__int128 v28; // [rsp+D8h] [rbp-30h]
v4 = *(void (****)(void))(a2 + 32);
if ( !v4 )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "BinaryOpExpr.left is null");
goto LABEL_22;
}
if ( !*(_QWORD *)(a2 + 48) )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "BinaryOpExpr.right is null");
LABEL_22:
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
minja::Expression::evaluate((long long)v16, v4);
*(_QWORD *)&v13 = a2;
*((_QWORD *)&v13 + 1) = a3;
if ( v19[1] )
{
minja::Value::Value((minja::Value *)v22, (const minja::Value *)v16);
v28 = v13;
std::function<minja::Value ()(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)>::function<minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)::{lambda(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &)#1},void>(v14);
minja::Value::callable((long long)this, (long long)v14);
if ( v15 )
v15(v14, v14, 3LL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant(v27);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v27);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v26);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v25);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&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);
}
}
else
{
minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&)const::{lambda(minja::Value const&)#1}::operator()(this);
}
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(v21);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v21);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v20);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v19);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(&v18);
v9 = v17;
if ( v17 )
{
if ( _libc_single_threaded )
{
v10 = *(_DWORD *)(v17 + 12);
*(_DWORD *)(v17 + 12) = v10 - 1;
}
else
{
v10 = _InterlockedExchangeAdd((volatile signed __int32 *)(v17 + 12), 0xFFFFFFFF);
}
if ( v10 == 1 )
(*(void ( **)(long long, _QWORD))(*(_QWORD *)v9 + 24LL))(v9, 0LL);
}
return this;
}
| do_evaluate:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0xe8
MOV R15,RSI
MOV RSI,qword ptr [RSI + 0x20]
TEST RSI,RSI
JZ 0x001eea5d
CMP qword ptr [R15 + 0x30],0x0
JZ 0x001eea7b
MOV R14,RDX
MOV RBX,RDI
LEA R12,[RSP + 0x38]
MOV RDI,R12
CALL 0x001e379c
MOV qword ptr [RSP + 0x8],R15
MOV qword ptr [RSP + 0x10],R14
CMP qword ptr [R12 + 0x30],0x0
JZ 0x001ee9b5
LAB_001ee8fe:
LEA RDI,[RSP + 0x88]
LEA RSI,[RSP + 0x38]
CALL 0x001c0070
MOVUPS XMM0,xmmword ptr [RSP + 0x8]
LEA RSI,[RSP + 0x88]
MOVUPS xmmword ptr [RSI + 0x50],XMM0
LAB_001ee921:
LEA RDI,[RSP + 0x18]
CALL 0x001eeb98
LAB_001ee92b:
LEA RSI,[RSP + 0x18]
MOV RDI,RBX
CALL 0x001be33e
MOV RAX,qword ptr [RSP + 0x28]
TEST RAX,RAX
JZ 0x001ee951
LAB_001ee942:
LEA RDI,[RSP + 0x18]
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_001ee951:
LEA R14,[RSP + 0xc8]
MOV RDI,R14
XOR ESI,ESI
CALL 0x001875ae
MOV RDI,R14
CALL 0x0018bcc8
LEA RDI,[RSP + 0xc0]
CALL 0x00172cea
LEA RDI,[RSP + 0xb0]
CALL 0x00172cea
LEA R14,[RSP + 0xa0]
MOV RDI,R14
CALL 0x00172cea
MOV RDI,qword ptr [R14 + -0x10]
TEST RDI,RDI
JZ 0x001ee9de
MOV RAX,qword ptr [0x00264f98]
CMP byte ptr [RAX],0x0
JZ 0x001ee9c9
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x001ee9d3
LAB_001ee9b5:
LEA RSI,[RSP + 0x8]
LEA RDX,[RSP + 0x38]
MOV RDI,RBX
CALL 0x001eec72
LAB_001ee9c7:
JMP 0x001ee9de
LAB_001ee9c9:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_001ee9d3:
CMP EAX,0x1
JNZ 0x001ee9de
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_001ee9de:
LEA R14,[RSP + 0x78]
MOV RDI,R14
XOR ESI,ESI
CALL 0x001875ae
MOV RDI,R14
CALL 0x0018bcc8
LEA RDI,[RSP + 0x70]
CALL 0x00172cea
LEA RDI,[RSP + 0x60]
CALL 0x00172cea
LEA R14,[RSP + 0x50]
MOV RDI,R14
CALL 0x00172cea
MOV RDI,qword ptr [R14 + -0x10]
TEST RDI,RDI
JZ 0x001eea4b
MOV RAX,qword ptr [0x00264f98]
CMP byte ptr [RAX],0x0
JZ 0x001eea36
MOV EAX,dword ptr [RDI + 0xc]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RDI + 0xc],ECX
JMP 0x001eea40
LAB_001eea36:
MOV EAX,0xffffffff
XADD.LOCK dword ptr [RDI + 0xc],EAX
LAB_001eea40:
CMP EAX,0x1
JNZ 0x001eea4b
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x18]
LAB_001eea4b:
MOV RAX,RBX
ADD RSP,0xe8
POP RBX
POP R12
POP R14
POP R15
RET
LAB_001eea5d:
MOV EDI,0x10
CALL 0x001216d0
MOV R14,RAX
LAB_001eea6a:
LEA RSI,[0x223c9b]
MOV RDI,RAX
CALL 0x00121430
LAB_001eea79:
JMP 0x001eea97
LAB_001eea7b:
MOV EDI,0x10
CALL 0x001216d0
MOV R14,RAX
LAB_001eea88:
LEA RSI,[0x223cb5]
MOV RDI,RAX
CALL 0x00121430
LAB_001eea97:
MOV RSI,qword ptr [0x00264fc0]
MOV RDX,qword ptr [0x00264f80]
MOV RDI,R14
CALL 0x00121b60
|
/* minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */
shared_ptr * minja::BinaryOpExpr::do_evaluate(shared_ptr *param_1)
{
int *piVar1;
int iVar2;
runtime_error *this;
int8 in_RDX;
long in_RSI;
long local_100;
int8 uStack_f8;
_lambda_std__shared_ptr<minja::Context>_const__minja__ArgumentsValue___1_ local_f0 [16];
code *local_e0;
Expression local_d0 [8];
long *local_c8;
__shared_count<(__gnu_cxx::_Lock_policy)2> local_b8 [16];
__shared_count<(__gnu_cxx::_Lock_policy)2> local_a8 [8];
long local_a0;
__shared_count<(__gnu_cxx::_Lock_policy)2> local_98 [8];
data local_90 [16];
Value local_80 [8];
long *local_78;
__shared_count<(__gnu_cxx::_Lock_policy)2> local_68 [16];
__shared_count<(__gnu_cxx::_Lock_policy)2> local_58 [16];
__shared_count<(__gnu_cxx::_Lock_policy)2> local_48 [8];
data local_40 [16];
long local_30;
int8 uStack_28;
if (*(shared_ptr **)(in_RSI + 0x20) == (shared_ptr *)0x0) {
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001eea6a to 001eea78 has its CatchHandler @ 001eeab3 */
std::runtime_error::runtime_error(this,"BinaryOpExpr.left is null");
}
else {
if (*(long *)(in_RSI + 0x30) != 0) {
Expression::evaluate(local_d0,*(shared_ptr **)(in_RSI + 0x20));
if (local_a0 == 0) {
/* try { // try from 001ee9b5 to 001ee9c6 has its CatchHandler @ 001eeaad */
const::{lambda(minja::Value_const&)#1}::operator()
((_lambda_minja__Value_const___1_ *)param_1,(Value *)&local_100);
}
else {
/* try { // try from 001ee8fe to 001ee90f has its CatchHandler @ 001eeaf8 */
local_100 = in_RSI;
uStack_f8 = in_RDX;
Value::Value(local_80,(Value *)local_d0);
local_30 = local_100;
uStack_28 = uStack_f8;
/* try { // try from 001ee921 to 001ee92a has its CatchHandler @ 001eeae6 */
std::function<minja::Value(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&)>::
function<minja::BinaryOpExpr::do_evaluate(std::shared_ptr<minja::Context>const&)const::_lambda(std::shared_ptr<minja::Context>const&,minja::ArgumentsValue&)_1_,void>
(local_f0);
/* try { // try from 001ee92b to 001ee937 has its CatchHandler @ 001eeac0 */
Value::callable((Value *)param_1,local_f0);
if (local_e0 != (code *)0x0) {
/* try { // try from 001ee942 to 001ee950 has its CatchHandler @ 001eeaaf */
(*local_e0)(local_f0,local_f0,3);
}
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);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_48);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_58);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_68);
if (local_78 != (long *)0x0) {
if (*PTR___libc_single_threaded_00264f98 == '\0') {
LOCK();
piVar1 = (int *)((long)local_78 + 0xc);
iVar2 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar2 = *(int *)((long)local_78 + 0xc);
*(int *)((long)local_78 + 0xc) = iVar2 + -1;
}
if (iVar2 == 1) {
(**(code **)(*local_78 + 0x18))();
}
}
}
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);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_98);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_a8);
std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_b8);
if (local_c8 != (long *)0x0) {
if (*PTR___libc_single_threaded_00264f98 == '\0') {
LOCK();
piVar1 = (int *)((long)local_c8 + 0xc);
iVar2 = *piVar1;
*piVar1 = *piVar1 + -1;
UNLOCK();
}
else {
iVar2 = *(int *)((long)local_c8 + 0xc);
*(int *)((long)local_c8 + 0xc) = iVar2 + -1;
}
if (iVar2 == 1) {
(**(code **)(*local_c8 + 0x18))();
}
}
return param_1;
}
this = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001eea88 to 001eea96 has its CatchHandler @ 001eeab1 */
std::runtime_error::runtime_error(this,"BinaryOpExpr.right is null");
}
/* WARNING: Subroutine does not return */
__cxa_throw(this,PTR_typeinfo_00264fc0,PTR__runtime_error_00264f80);
}
| |
28,220 | strxnmov | eloqsql/strings/strxnmov.c | char *strxnmov(char *dst, size_t len, const char *src, ...)
{
va_list pvar;
char *end_of_dst=dst+len;
va_start(pvar,src);
while (src != NullS)
{
do
{
if (dst == end_of_dst)
goto end;
}
while ((*dst++ = *src++));
dst--;
src = va_arg(pvar, char *);
}
end:
*dst=0;
va_end(pvar);
return dst;
} | O3 | c | strxnmov:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movl %eax, %r10d
movq %rdi, %rax
leaq -0xd0(%rbp), %rdi
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %r10b, %r10b
je 0x92e44
movaps %xmm0, -0xa0(%rbp)
movaps %xmm1, -0x90(%rbp)
movaps %xmm2, -0x80(%rbp)
movaps %xmm3, -0x70(%rbp)
movaps %xmm4, -0x60(%rbp)
movaps %xmm5, -0x50(%rbp)
movaps %xmm6, -0x40(%rbp)
movaps %xmm7, -0x30(%rbp)
movq %rdi, -0x10(%rbp)
leaq 0x10(%rbp), %rcx
movq %rcx, -0x18(%rbp)
movabsq $0x3000000018, %rcx # imm = 0x3000000018
movq %rcx, -0x20(%rbp)
testq %rdx, %rdx
je 0x92ebd
addq %rax, %rsi
movq -0x10(%rbp), %rcx
movl -0x20(%rbp), %edi
movq -0x18(%rbp), %r8
movq %r8, %r9
cmpq %rsi, %rax
je 0x92eba
movb (%rdx), %r10b
movb %r10b, (%rax)
testb %r10b, %r10b
jne 0x92eb2
cmpl $0x28, %edi
ja 0x92e9a
movq %r9, %r10
movl %edi, %r9d
addq %rcx, %r9
addl $0x8, %edi
movl %edi, -0x20(%rbp)
jmp 0x92ea5
leaq 0x8(%r9), %r8
movq %r8, -0x18(%rbp)
movq %r8, %r10
movq (%r9), %rdx
movq %r10, %r9
testq %rdx, %rdx
jne 0x92e74
jmp 0x92ebd
incq %rax
incq %rdx
jmp 0x92e71
movq %rsi, %rax
movb $0x0, (%rax)
addq $0x50, %rsp
popq %rbp
retq
nop
| strxnmov:
push rbp
mov rbp, rsp
sub rsp, 50h
mov r10d, eax
mov rax, rdi
lea rdi, [rbp+var_D0]
mov [rdi+18h], rcx
mov [rdi+20h], r8
mov [rdi+28h], r9
test r10b, r10b
jz short loc_92E44
movaps [rbp+var_A0], xmm0
movaps [rbp+var_90], xmm1
movaps [rbp+var_80], xmm2
movaps [rbp+var_70], xmm3
movaps [rbp+var_60], xmm4
movaps [rbp+var_50], xmm5
movaps [rbp+var_40], xmm6
movaps [rbp+var_30], xmm7
loc_92E44:
mov [rbp+var_10], rdi
lea rcx, [rbp+arg_0]
mov [rbp+var_18], rcx
mov rcx, 3000000018h
mov [rbp+var_20], rcx
test rdx, rdx
jz short loc_92EBD
add rsi, rax
mov rcx, [rbp+var_10]
mov edi, dword ptr [rbp+var_20]
mov r8, [rbp+var_18]
loc_92E71:
mov r9, r8
loc_92E74:
cmp rax, rsi
jz short loc_92EBA
mov r10b, [rdx]
mov [rax], r10b
test r10b, r10b
jnz short loc_92EB2
cmp edi, 28h ; '('
ja short loc_92E9A
mov r10, r9
mov r9d, edi
add r9, rcx
add edi, 8
mov dword ptr [rbp+var_20], edi
jmp short loc_92EA5
loc_92E9A:
lea r8, [r9+8]
mov [rbp+var_18], r8
mov r10, r8
loc_92EA5:
mov rdx, [r9]
mov r9, r10
test rdx, rdx
jnz short loc_92E74
jmp short loc_92EBD
loc_92EB2:
inc rax
inc rdx
jmp short loc_92E71
loc_92EBA:
mov rax, rsi
loc_92EBD:
mov byte ptr [rax], 0
add rsp, 50h
pop rbp
retn
| char *strxnmov(char *a1, long long a2, char *a3, ...)
{
char *result; // rax
char *v4; // rsi
char *reg_save_area; // rcx
unsigned int gp_offset; // edi
char *overflow_arg_area; // r8
char *v8; // r9
char v9; // r10
char *v10; // r10
va_list va; // [rsp+B0h] [rbp-20h] BYREF
result = a1;
va_start(va, a3);
if ( a3 )
{
v4 = &a1[a2];
reg_save_area = (char *)va[0].reg_save_area;
gp_offset = va[0].gp_offset;
overflow_arg_area = (char *)va[0].overflow_arg_area;
LABEL_3:
v8 = overflow_arg_area;
while ( result != v4 )
{
v9 = *a3;
*result = *a3;
if ( v9 )
{
++result;
++a3;
goto LABEL_3;
}
if ( gp_offset > 0x28 )
{
overflow_arg_area = v8 + 8;
va[0].overflow_arg_area = v8 + 8;
v10 = v8 + 8;
}
else
{
v10 = v8;
v8 = ®_save_area[gp_offset];
gp_offset += 8;
va[0].gp_offset = gp_offset;
}
a3 = *(char **)v8;
v8 = v10;
if ( !a3 )
goto LABEL_13;
}
result = v4;
}
LABEL_13:
*result = 0;
return result;
}
| strxnmov:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x50
MOV R10D,EAX
MOV RAX,RDI
LEA RDI,[RBP + -0xd0]
MOV qword ptr [RDI + 0x18],RCX
MOV qword ptr [RDI + 0x20],R8
MOV qword ptr [RDI + 0x28],R9
TEST R10B,R10B
JZ 0x00192e44
MOVAPS xmmword ptr [RBP + -0xa0],XMM0
MOVAPS xmmword ptr [RBP + -0x90],XMM1
MOVAPS xmmword ptr [RBP + -0x80],XMM2
MOVAPS xmmword ptr [RBP + -0x70],XMM3
MOVAPS xmmword ptr [RBP + -0x60],XMM4
MOVAPS xmmword ptr [RBP + -0x50],XMM5
MOVAPS xmmword ptr [RBP + -0x40],XMM6
MOVAPS xmmword ptr [RBP + -0x30],XMM7
LAB_00192e44:
MOV qword ptr [RBP + -0x10],RDI
LEA RCX,[RBP + 0x10]
MOV qword ptr [RBP + -0x18],RCX
MOV RCX,0x3000000018
MOV qword ptr [RBP + -0x20],RCX
TEST RDX,RDX
JZ 0x00192ebd
ADD RSI,RAX
MOV RCX,qword ptr [RBP + -0x10]
MOV EDI,dword ptr [RBP + -0x20]
MOV R8,qword ptr [RBP + -0x18]
LAB_00192e71:
MOV R9,R8
LAB_00192e74:
CMP RAX,RSI
JZ 0x00192eba
MOV R10B,byte ptr [RDX]
MOV byte ptr [RAX],R10B
TEST R10B,R10B
JNZ 0x00192eb2
CMP EDI,0x28
JA 0x00192e9a
MOV R10,R9
MOV R9D,EDI
ADD R9,RCX
ADD EDI,0x8
MOV dword ptr [RBP + -0x20],EDI
JMP 0x00192ea5
LAB_00192e9a:
LEA R8,[R9 + 0x8]
MOV qword ptr [RBP + -0x18],R8
MOV R10,R8
LAB_00192ea5:
MOV RDX,qword ptr [R9]
MOV R9,R10
TEST RDX,RDX
JNZ 0x00192e74
JMP 0x00192ebd
LAB_00192eb2:
INC RAX
INC RDX
JMP 0x00192e71
LAB_00192eba:
MOV RAX,RSI
LAB_00192ebd:
MOV byte ptr [RAX],0x0
ADD RSP,0x50
POP RBP
RET
|
void strxnmov(char *param_1,long param_2,char *param_3)
{
char cVar1;
char *pcVar2;
char *pcVar3;
int8 *puVar4;
int8 *puVar5;
ulong uVar6;
int8 *puVar7;
int8 local_d8 [22];
uint local_28;
puVar4 = (int8 *)&stack0x00000008;
pcVar2 = param_1;
if (param_3 != (char *)0x0) {
pcVar3 = param_1 + param_2;
local_28 = 0x18;
puVar5 = puVar4;
do {
while( true ) {
pcVar2 = pcVar3;
if (param_1 == pcVar3) goto LAB_00192ebd;
cVar1 = *param_3;
*param_1 = cVar1;
if (cVar1 == '\0') break;
param_1 = param_1 + 1;
param_3 = param_3 + 1;
puVar5 = puVar4;
}
if (local_28 < 0x29) {
uVar6 = (ulong)local_28;
local_28 = local_28 + 8;
puVar7 = (int8 *)((long)local_d8 + uVar6);
}
else {
puVar4 = puVar5 + 1;
puVar7 = puVar5;
puVar5 = puVar4;
}
param_3 = (char *)*puVar7;
pcVar2 = param_1;
} while (param_3 != (char *)0x0);
}
LAB_00192ebd:
*pcVar2 = '\0';
return;
}
| |
28,221 | create_fromuni | eloqsql/strings/ctype-simple.c | static my_bool
create_fromuni(struct charset_info_st *cs,
MY_CHARSET_LOADER *loader)
{
uni_idx idx[PLANE_NUM];
int i,n;
/*
Check that Unicode map is loaded.
It can be not loaded when the collation is
listed in Index.xml but not specified
in the character set specific XML file.
*/
if (!cs->tab_to_uni)
return TRUE;
/* Clear plane statistics */
bzero(idx,sizeof(idx));
/* Count number of characters in each plane */
for (i=0; i< 0x100; i++)
{
uint16 wc=cs->tab_to_uni[i];
int pl= PLANE_NUMBER(wc);
if (wc || !i)
{
if (!idx[pl].nchars)
{
idx[pl].uidx.from=wc;
idx[pl].uidx.to=wc;
}else
{
idx[pl].uidx.from=wc<idx[pl].uidx.from?wc:idx[pl].uidx.from;
idx[pl].uidx.to=wc>idx[pl].uidx.to?wc:idx[pl].uidx.to;
}
idx[pl].nchars++;
}
}
/* Sort planes in descending order */
qsort(&idx,PLANE_NUM,sizeof(uni_idx),&pcmp);
for (i=0; i < PLANE_NUM; i++)
{
int ch,numchars;
uchar *tab;
/* Skip empty plane */
if (!idx[i].nchars)
break;
numchars=idx[i].uidx.to-idx[i].uidx.from+1;
if (!(idx[i].uidx.tab= tab= (uchar*)
(loader->once_alloc) (numchars *
sizeof(*idx[i].uidx.tab))))
return TRUE;
bzero(tab,numchars*sizeof(*tab));
for (ch=1; ch < PLANE_SIZE; ch++)
{
uint16 wc=cs->tab_to_uni[ch];
if (wc >= idx[i].uidx.from && wc <= idx[i].uidx.to && wc)
{
int ofs= wc - idx[i].uidx.from;
if (!tab[ofs] || tab[ofs] > 0x7F) /* Prefer ASCII*/
{
/*
Some character sets can have double encoding. For example,
in ARMSCII8, the following characters are encoded twice:
Encoding#1 Encoding#2 Unicode Character Name
---------- ---------- ------- --------------
0x27 0xFF U+0027 APOSTROPHE
0x28 0xA5 U+0028 LEFT PARENTHESIS
0x29 0xA4 U+0029 RIGHT PARENTHESIS
0x2C 0xAB U+002C COMMA
0x2D 0xAC U+002D HYPHEN-MINUS
0x2E 0xA9 U+002E FULL STOP
That is, both 0x27 and 0xFF convert to Unicode U+0027.
When converting back from Unicode to ARMSCII,
we prefer the ASCII range, that is we want U+0027
to convert to 0x27 rather than to 0xFF.
*/
tab[ofs]= ch;
}
}
}
}
/* Allocate and fill reverse table for each plane */
n=i;
if (!(cs->tab_from_uni= (MY_UNI_IDX *)
(loader->once_alloc)(sizeof(MY_UNI_IDX) * (n + 1))))
return TRUE;
for (i=0; i< n; i++)
((struct my_uni_idx_st*)cs->tab_from_uni)[i]= idx[i].uidx;
/* Set end-of-list marker */
bzero((char*) &cs->tab_from_uni[i],sizeof(MY_UNI_IDX));
return FALSE;
} | O0 | c | create_fromuni:
pushq %rbp
movq %rsp, %rbp
subq $0x1850, %rsp # imm = 0x1850
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, 0x68(%rax)
jne 0x456c7
movb $0x1, -0x1(%rbp)
jmp 0x45b9a
leaq -0x1820(%rbp), %rdi
xorl %esi, %esi
movl $0x1800, %edx # imm = 0x1800
callq 0x24170
movl $0x0, -0x1824(%rbp)
cmpl $0x100, -0x1824(%rbp) # imm = 0x100
jge 0x458b8
movq -0x10(%rbp), %rax
movq 0x68(%rax), %rax
movslq -0x1824(%rbp), %rcx
movw (%rax,%rcx,2), %ax
movw %ax, -0x182a(%rbp)
movzwl -0x182a(%rbp), %eax
sarl $0x8, %eax
movl $0x100, %ecx # imm = 0x100
cltd
idivl %ecx
movl %edx, -0x1830(%rbp)
movzwl -0x182a(%rbp), %eax
cmpl $0x0, %eax
jne 0x4573f
cmpl $0x0, -0x1824(%rbp)
jne 0x458a2
movslq -0x1830(%rbp), %rcx
leaq -0x1820(%rbp), %rax
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, (%rax)
jne 0x4579e
movw -0x182a(%rbp), %cx
movslq -0x1830(%rbp), %rdx
leaq -0x1820(%rbp), %rax
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movw %cx, 0x8(%rax)
movw -0x182a(%rbp), %cx
movslq -0x1830(%rbp), %rdx
leaq -0x1820(%rbp), %rax
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movw %cx, 0xa(%rax)
jmp 0x45886
movzwl -0x182a(%rbp), %eax
movslq -0x1830(%rbp), %rdx
leaq -0x1820(%rbp), %rcx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
movzwl 0x8(%rcx), %ecx
cmpl %ecx, %eax
jge 0x457d1
movzwl -0x182a(%rbp), %eax
movl %eax, -0x184c(%rbp)
jmp 0x457f0
movslq -0x1830(%rbp), %rcx
leaq -0x1820(%rbp), %rax
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movzwl 0x8(%rax), %eax
movl %eax, -0x184c(%rbp)
movl -0x184c(%rbp), %eax
movw %ax, %cx
movslq -0x1830(%rbp), %rdx
leaq -0x1820(%rbp), %rax
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movw %cx, 0x8(%rax)
movzwl -0x182a(%rbp), %eax
movslq -0x1830(%rbp), %rdx
leaq -0x1820(%rbp), %rcx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
movzwl 0xa(%rcx), %ecx
cmpl %ecx, %eax
jle 0x45845
movzwl -0x182a(%rbp), %eax
movl %eax, -0x1850(%rbp)
jmp 0x45864
movslq -0x1830(%rbp), %rcx
leaq -0x1820(%rbp), %rax
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movzwl 0xa(%rax), %eax
movl %eax, -0x1850(%rbp)
movl -0x1850(%rbp), %eax
movw %ax, %cx
movslq -0x1830(%rbp), %rdx
leaq -0x1820(%rbp), %rax
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movw %cx, 0xa(%rax)
movslq -0x1830(%rbp), %rcx
leaq -0x1820(%rbp), %rax
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x458a4
movl -0x1824(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1824(%rbp)
jmp 0x456e4
leaq -0x1820(%rbp), %rdi
movl $0x100, %esi # imm = 0x100
movl $0x18, %edx
leaq 0x2e0(%rip), %rcx # 0x45bb0
callq 0x245d0
movl $0x0, -0x1824(%rbp)
cmpl $0x100, -0x1824(%rbp) # imm = 0x100
jge 0x45ad1
movslq -0x1824(%rbp), %rcx
leaq -0x1820(%rbp), %rax
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
cmpl $0x0, (%rax)
jne 0x4590e
jmp 0x45ad1
movslq -0x1824(%rbp), %rcx
leaq -0x1820(%rbp), %rax
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movzwl 0xa(%rax), %eax
movslq -0x1824(%rbp), %rdx
leaq -0x1820(%rbp), %rcx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
movzwl 0x8(%rcx), %ecx
subl %ecx, %eax
addl $0x1, %eax
movl %eax, -0x1838(%rbp)
movq -0x18(%rbp), %rax
movq 0x80(%rax), %rax
movslq -0x1838(%rbp), %rdi
shlq $0x0, %rdi
callq *%rax
movq %rax, -0x1840(%rbp)
movslq -0x1824(%rbp), %rdx
leaq -0x1820(%rbp), %rcx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
movq %rax, 0x10(%rcx)
cmpq $0x0, %rax
jne 0x45992
movb $0x1, -0x1(%rbp)
jmp 0x45b9a
movq -0x1840(%rbp), %rdi
movslq -0x1838(%rbp), %rdx
shlq $0x0, %rdx
xorl %esi, %esi
callq 0x24170
movl $0x1, -0x1834(%rbp)
cmpl $0x100, -0x1834(%rbp) # imm = 0x100
jge 0x45abb
movq -0x10(%rbp), %rax
movq 0x68(%rax), %rax
movslq -0x1834(%rbp), %rcx
movw (%rax,%rcx,2), %ax
movw %ax, -0x1842(%rbp)
movzwl -0x1842(%rbp), %eax
movslq -0x1824(%rbp), %rdx
leaq -0x1820(%rbp), %rcx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
movzwl 0x8(%rcx), %ecx
cmpl %ecx, %eax
jl 0x45aa5
movzwl -0x1842(%rbp), %eax
movslq -0x1824(%rbp), %rdx
leaq -0x1820(%rbp), %rcx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
movzwl 0xa(%rcx), %ecx
cmpl %ecx, %eax
jg 0x45aa5
movzwl -0x1842(%rbp), %eax
cmpl $0x0, %eax
je 0x45aa5
movzwl -0x1842(%rbp), %eax
movslq -0x1824(%rbp), %rdx
leaq -0x1820(%rbp), %rcx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
movzwl 0x8(%rcx), %ecx
subl %ecx, %eax
movl %eax, -0x1848(%rbp)
movq -0x1840(%rbp), %rax
movslq -0x1848(%rbp), %rcx
cmpb $0x0, (%rax,%rcx)
je 0x45a8a
movq -0x1840(%rbp), %rax
movslq -0x1848(%rbp), %rcx
movzbl (%rax,%rcx), %eax
cmpl $0x7f, %eax
jle 0x45aa3
movl -0x1834(%rbp), %eax
movb %al, %dl
movq -0x1840(%rbp), %rax
movslq -0x1848(%rbp), %rcx
movb %dl, (%rax,%rcx)
jmp 0x45aa5
jmp 0x45aa7
movl -0x1834(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1834(%rbp)
jmp 0x459b5
jmp 0x45abd
movl -0x1824(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1824(%rbp)
jmp 0x458df
movl -0x1824(%rbp), %eax
movl %eax, -0x1828(%rbp)
movq -0x18(%rbp), %rax
movq 0x80(%rax), %rax
movl -0x1828(%rbp), %ecx
addl $0x1, %ecx
movslq %ecx, %rdi
shlq $0x4, %rdi
callq *%rax
movq -0x10(%rbp), %rcx
movq %rax, 0x70(%rcx)
cmpq $0x0, %rax
jne 0x45b11
movb $0x1, -0x1(%rbp)
jmp 0x45b9a
movl $0x0, -0x1824(%rbp)
movl -0x1824(%rbp), %eax
cmpl -0x1828(%rbp), %eax
jge 0x45b74
movq -0x10(%rbp), %rax
movq 0x70(%rax), %rax
movslq -0x1824(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movslq -0x1824(%rbp), %rdx
leaq -0x1820(%rbp), %rcx
imulq $0x18, %rdx, %rdx
addq %rdx, %rcx
movq 0x8(%rcx), %rdx
movq %rdx, (%rax)
movq 0x10(%rcx), %rcx
movq %rcx, 0x8(%rax)
movl -0x1824(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1824(%rbp)
jmp 0x45b1b
movq -0x10(%rbp), %rax
movq 0x70(%rax), %rdi
movslq -0x1824(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x24170
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
addq $0x1850, %rsp # imm = 0x1850
popq %rbp
retq
nopw %cs:(%rax,%rax)
| create_fromuni:
push rbp
mov rbp, rsp
sub rsp, 1850h
mov [rbp+var_10], rdi
mov [rbp+var_18], rsi
mov rax, [rbp+var_10]
cmp qword ptr [rax+68h], 0
jnz short loc_456C7
mov [rbp+var_1], 1
jmp loc_45B9A
loc_456C7:
lea rdi, [rbp+var_1820]
xor esi, esi
mov edx, 1800h
call _memset
mov [rbp+var_1824], 0
loc_456E4:
cmp [rbp+var_1824], 100h
jge loc_458B8
mov rax, [rbp+var_10]
mov rax, [rax+68h]
movsxd rcx, [rbp+var_1824]
mov ax, [rax+rcx*2]
mov [rbp+var_182A], ax
movzx eax, [rbp+var_182A]
sar eax, 8
mov ecx, 100h
cdq
idiv ecx
mov [rbp+var_1830], edx
movzx eax, [rbp+var_182A]
cmp eax, 0
jnz short loc_4573F
cmp [rbp+var_1824], 0
jnz loc_458A2
loc_4573F:
movsxd rcx, [rbp+var_1830]
lea rax, [rbp+var_1820]
imul rcx, 18h
add rax, rcx
cmp dword ptr [rax], 0
jnz short loc_4579E
mov cx, [rbp+var_182A]
movsxd rdx, [rbp+var_1830]
lea rax, [rbp+var_1820]
imul rdx, 18h
add rax, rdx
mov [rax+8], cx
mov cx, [rbp+var_182A]
movsxd rdx, [rbp+var_1830]
lea rax, [rbp+var_1820]
imul rdx, 18h
add rax, rdx
mov [rax+0Ah], cx
jmp loc_45886
loc_4579E:
movzx eax, [rbp+var_182A]
movsxd rdx, [rbp+var_1830]
lea rcx, [rbp+var_1820]
imul rdx, 18h
add rcx, rdx
movzx ecx, word ptr [rcx+8]
cmp eax, ecx
jge short loc_457D1
movzx eax, [rbp+var_182A]
mov [rbp+var_184C], eax
jmp short loc_457F0
loc_457D1:
movsxd rcx, [rbp+var_1830]
lea rax, [rbp+var_1820]
imul rcx, 18h
add rax, rcx
movzx eax, word ptr [rax+8]
mov [rbp+var_184C], eax
loc_457F0:
mov eax, [rbp+var_184C]
mov cx, ax
movsxd rdx, [rbp+var_1830]
lea rax, [rbp+var_1820]
imul rdx, 18h
add rax, rdx
mov [rax+8], cx
movzx eax, [rbp+var_182A]
movsxd rdx, [rbp+var_1830]
lea rcx, [rbp+var_1820]
imul rdx, 18h
add rcx, rdx
movzx ecx, word ptr [rcx+0Ah]
cmp eax, ecx
jle short loc_45845
movzx eax, [rbp+var_182A]
mov [rbp+var_1850], eax
jmp short loc_45864
loc_45845:
movsxd rcx, [rbp+var_1830]
lea rax, [rbp+var_1820]
imul rcx, 18h
add rax, rcx
movzx eax, word ptr [rax+0Ah]
mov [rbp+var_1850], eax
loc_45864:
mov eax, [rbp+var_1850]
mov cx, ax
movsxd rdx, [rbp+var_1830]
lea rax, [rbp+var_1820]
imul rdx, 18h
add rax, rdx
mov [rax+0Ah], cx
loc_45886:
movsxd rcx, [rbp+var_1830]
lea rax, [rbp+var_1820]
imul rcx, 18h
add rax, rcx
mov ecx, [rax]
add ecx, 1
mov [rax], ecx
loc_458A2:
jmp short $+2
loc_458A4:
mov eax, [rbp+var_1824]
add eax, 1
mov [rbp+var_1824], eax
jmp loc_456E4
loc_458B8:
lea rdi, [rbp+var_1820]
mov esi, 100h
mov edx, 18h
lea rcx, pcmp
call _qsort
mov [rbp+var_1824], 0
loc_458DF:
cmp [rbp+var_1824], 100h
jge loc_45AD1
movsxd rcx, [rbp+var_1824]
lea rax, [rbp+var_1820]
imul rcx, 18h
add rax, rcx
cmp dword ptr [rax], 0
jnz short loc_4590E
jmp loc_45AD1
loc_4590E:
movsxd rcx, [rbp+var_1824]
lea rax, [rbp+var_1820]
imul rcx, 18h
add rax, rcx
movzx eax, word ptr [rax+0Ah]
movsxd rdx, [rbp+var_1824]
lea rcx, [rbp+var_1820]
imul rdx, 18h
add rcx, rdx
movzx ecx, word ptr [rcx+8]
sub eax, ecx
add eax, 1
mov [rbp+var_1838], eax
mov rax, [rbp+var_18]
mov rax, [rax+80h]
movsxd rdi, [rbp+var_1838]
shl rdi, 0
call rax
mov [rbp+var_1840], rax
movsxd rdx, [rbp+var_1824]
lea rcx, [rbp+var_1820]
imul rdx, 18h
add rcx, rdx
mov [rcx+10h], rax
cmp rax, 0
jnz short loc_45992
mov [rbp+var_1], 1
jmp loc_45B9A
loc_45992:
mov rdi, [rbp+var_1840]
movsxd rdx, [rbp+var_1838]
shl rdx, 0
xor esi, esi
call _memset
mov [rbp+var_1834], 1
loc_459B5:
cmp [rbp+var_1834], 100h
jge loc_45ABB
mov rax, [rbp+var_10]
mov rax, [rax+68h]
movsxd rcx, [rbp+var_1834]
mov ax, [rax+rcx*2]
mov [rbp+var_1842], ax
movzx eax, [rbp+var_1842]
movsxd rdx, [rbp+var_1824]
lea rcx, [rbp+var_1820]
imul rdx, 18h
add rcx, rdx
movzx ecx, word ptr [rcx+8]
cmp eax, ecx
jl loc_45AA5
movzx eax, [rbp+var_1842]
movsxd rdx, [rbp+var_1824]
lea rcx, [rbp+var_1820]
imul rdx, 18h
add rcx, rdx
movzx ecx, word ptr [rcx+0Ah]
cmp eax, ecx
jg short loc_45AA5
movzx eax, [rbp+var_1842]
cmp eax, 0
jz short loc_45AA5
movzx eax, [rbp+var_1842]
movsxd rdx, [rbp+var_1824]
lea rcx, [rbp+var_1820]
imul rdx, 18h
add rcx, rdx
movzx ecx, word ptr [rcx+8]
sub eax, ecx
mov [rbp+var_1848], eax
mov rax, [rbp+var_1840]
movsxd rcx, [rbp+var_1848]
cmp byte ptr [rax+rcx], 0
jz short loc_45A8A
mov rax, [rbp+var_1840]
movsxd rcx, [rbp+var_1848]
movzx eax, byte ptr [rax+rcx]
cmp eax, 7Fh
jle short loc_45AA3
loc_45A8A:
mov eax, [rbp+var_1834]
mov dl, al
mov rax, [rbp+var_1840]
movsxd rcx, [rbp+var_1848]
mov [rax+rcx], dl
loc_45AA3:
jmp short $+2
loc_45AA5:
jmp short $+2
loc_45AA7:
mov eax, [rbp+var_1834]
add eax, 1
mov [rbp+var_1834], eax
jmp loc_459B5
loc_45ABB:
jmp short $+2
loc_45ABD:
mov eax, [rbp+var_1824]
add eax, 1
mov [rbp+var_1824], eax
jmp loc_458DF
loc_45AD1:
mov eax, [rbp+var_1824]
mov [rbp+var_1828], eax
mov rax, [rbp+var_18]
mov rax, [rax+80h]
mov ecx, [rbp+var_1828]
add ecx, 1
movsxd rdi, ecx
shl rdi, 4
call rax
mov rcx, [rbp+var_10]
mov [rcx+70h], rax
cmp rax, 0
jnz short loc_45B11
mov [rbp+var_1], 1
jmp loc_45B9A
loc_45B11:
mov [rbp+var_1824], 0
loc_45B1B:
mov eax, [rbp+var_1824]
cmp eax, [rbp+var_1828]
jge short loc_45B74
mov rax, [rbp+var_10]
mov rax, [rax+70h]
movsxd rcx, [rbp+var_1824]
shl rcx, 4
add rax, rcx
movsxd rdx, [rbp+var_1824]
lea rcx, [rbp+var_1820]
imul rdx, 18h
add rcx, rdx
mov rdx, [rcx+8]
mov [rax], rdx
mov rcx, [rcx+10h]
mov [rax+8], rcx
mov eax, [rbp+var_1824]
add eax, 1
mov [rbp+var_1824], eax
jmp short loc_45B1B
loc_45B74:
mov rax, [rbp+var_10]
mov rdi, [rax+70h]
movsxd rax, [rbp+var_1824]
shl rax, 4
add rdi, rax
xor esi, esi
mov edx, 10h
call _memset
mov [rbp+var_1], 0
loc_45B9A:
mov al, [rbp+var_1]
add rsp, 1850h
pop rbp
retn
| char create_fromuni(long long a1, long long a2)
{
long long v2; // rax
_QWORD *v3; // rax
unsigned __int16 v5; // [rsp+0h] [rbp-1850h]
__int16 v6; // [rsp+4h] [rbp-184Ch]
int v7; // [rsp+8h] [rbp-1848h]
unsigned __int16 v8; // [rsp+Eh] [rbp-1842h]
long long v9; // [rsp+10h] [rbp-1840h]
int v10; // [rsp+18h] [rbp-1838h]
int k; // [rsp+1Ch] [rbp-1834h]
int v12; // [rsp+20h] [rbp-1830h]
unsigned __int16 v13; // [rsp+26h] [rbp-182Ah]
int v14; // [rsp+28h] [rbp-1828h]
int i; // [rsp+2Ch] [rbp-1824h]
int j; // [rsp+2Ch] [rbp-1824h]
int m; // [rsp+2Ch] [rbp-1824h]
_DWORD v18[1538]; // [rsp+30h] [rbp-1820h] BYREF
long long v19; // [rsp+1838h] [rbp-18h]
long long v20; // [rsp+1840h] [rbp-10h]
v20 = a1;
v19 = a2;
if ( !*(_QWORD *)(a1 + 104) )
return 1;
memset(v18, 0LL, 6144LL);
for ( i = 0; i < 256; ++i )
{
v13 = *(_WORD *)(*(_QWORD *)(v20 + 104) + 2LL * i);
v12 = ((int)v13 >> 8) % 256;
if ( v13 || !i )
{
if ( v18[6 * v12] )
{
if ( v13 >= (int)LOWORD(v18[6 * v12 + 2]) )
v6 = v18[6 * v12 + 2];
else
v6 = *(_WORD *)(*(_QWORD *)(v20 + 104) + 2LL * i);
LOWORD(v18[6 * v12 + 2]) = v6;
if ( v13 <= (int)HIWORD(v18[6 * v12 + 2]) )
v5 = HIWORD(v18[6 * v12 + 2]);
else
v5 = v13;
HIWORD(v18[6 * v12 + 2]) = v5;
}
else
{
LOWORD(v18[6 * v12 + 2]) = v13;
HIWORD(v18[6 * v12 + 2]) = v13;
}
++v18[6 * v12];
}
}
qsort(v18, 256LL, 24LL, pcmp);
for ( j = 0; j < 256 && v18[6 * j]; ++j )
{
v10 = HIWORD(v18[6 * j + 2]) - LOWORD(v18[6 * j + 2]) + 1;
v9 = (*(long long ( **)(_QWORD))(v19 + 128))(v10);
*(_QWORD *)&v18[6 * j + 4] = v9;
if ( !v9 )
return 1;
memset(v9, 0LL, v10);
for ( k = 1; k < 256; ++k )
{
v8 = *(_WORD *)(*(_QWORD *)(v20 + 104) + 2LL * k);
if ( v8 >= (int)LOWORD(v18[6 * j + 2]) && v8 <= (int)HIWORD(v18[6 * j + 2]) )
{
if ( v8 )
{
v7 = v8 - LOWORD(v18[6 * j + 2]);
if ( !*(_BYTE *)(v9 + v7) || *(unsigned __int8 *)(v9 + v7) > 0x7Fu )
*(_BYTE *)(v9 + v7) = k;
}
}
}
}
v14 = j;
v2 = (*(long long ( **)(long long))(v19 + 128))(16LL * (j + 1));
*(_QWORD *)(v20 + 112) = v2;
if ( !v2 )
return 1;
for ( m = 0; m < v14; ++m )
{
v3 = (_QWORD *)(16LL * m + *(_QWORD *)(v20 + 112));
*v3 = *(_QWORD *)&v18[6 * m + 2];
v3[1] = *(_QWORD *)&v18[6 * m + 4];
}
memset(16LL * m + *(_QWORD *)(v20 + 112), 0LL, 16LL);
return 0;
}
| create_fromuni:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x1850
MOV qword ptr [RBP + -0x10],RDI
MOV qword ptr [RBP + -0x18],RSI
MOV RAX,qword ptr [RBP + -0x10]
CMP qword ptr [RAX + 0x68],0x0
JNZ 0x001456c7
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00145b9a
LAB_001456c7:
LEA RDI,[RBP + -0x1820]
XOR ESI,ESI
MOV EDX,0x1800
CALL 0x00124170
MOV dword ptr [RBP + -0x1824],0x0
LAB_001456e4:
CMP dword ptr [RBP + -0x1824],0x100
JGE 0x001458b8
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x68]
MOVSXD RCX,dword ptr [RBP + -0x1824]
MOV AX,word ptr [RAX + RCX*0x2]
MOV word ptr [RBP + -0x182a],AX
MOVZX EAX,word ptr [RBP + -0x182a]
SAR EAX,0x8
MOV ECX,0x100
CDQ
IDIV ECX
MOV dword ptr [RBP + -0x1830],EDX
MOVZX EAX,word ptr [RBP + -0x182a]
CMP EAX,0x0
JNZ 0x0014573f
CMP dword ptr [RBP + -0x1824],0x0
JNZ 0x001458a2
LAB_0014573f:
MOVSXD RCX,dword ptr [RBP + -0x1830]
LEA RAX,[RBP + -0x1820]
IMUL RCX,RCX,0x18
ADD RAX,RCX
CMP dword ptr [RAX],0x0
JNZ 0x0014579e
MOV CX,word ptr [RBP + -0x182a]
MOVSXD RDX,dword ptr [RBP + -0x1830]
LEA RAX,[RBP + -0x1820]
IMUL RDX,RDX,0x18
ADD RAX,RDX
MOV word ptr [RAX + 0x8],CX
MOV CX,word ptr [RBP + -0x182a]
MOVSXD RDX,dword ptr [RBP + -0x1830]
LEA RAX,[RBP + -0x1820]
IMUL RDX,RDX,0x18
ADD RAX,RDX
MOV word ptr [RAX + 0xa],CX
JMP 0x00145886
LAB_0014579e:
MOVZX EAX,word ptr [RBP + -0x182a]
MOVSXD RDX,dword ptr [RBP + -0x1830]
LEA RCX,[RBP + -0x1820]
IMUL RDX,RDX,0x18
ADD RCX,RDX
MOVZX ECX,word ptr [RCX + 0x8]
CMP EAX,ECX
JGE 0x001457d1
MOVZX EAX,word ptr [RBP + -0x182a]
MOV dword ptr [RBP + -0x184c],EAX
JMP 0x001457f0
LAB_001457d1:
MOVSXD RCX,dword ptr [RBP + -0x1830]
LEA RAX,[RBP + -0x1820]
IMUL RCX,RCX,0x18
ADD RAX,RCX
MOVZX EAX,word ptr [RAX + 0x8]
MOV dword ptr [RBP + -0x184c],EAX
LAB_001457f0:
MOV EAX,dword ptr [RBP + -0x184c]
MOV CX,AX
MOVSXD RDX,dword ptr [RBP + -0x1830]
LEA RAX,[RBP + -0x1820]
IMUL RDX,RDX,0x18
ADD RAX,RDX
MOV word ptr [RAX + 0x8],CX
MOVZX EAX,word ptr [RBP + -0x182a]
MOVSXD RDX,dword ptr [RBP + -0x1830]
LEA RCX,[RBP + -0x1820]
IMUL RDX,RDX,0x18
ADD RCX,RDX
MOVZX ECX,word ptr [RCX + 0xa]
CMP EAX,ECX
JLE 0x00145845
MOVZX EAX,word ptr [RBP + -0x182a]
MOV dword ptr [RBP + -0x1850],EAX
JMP 0x00145864
LAB_00145845:
MOVSXD RCX,dword ptr [RBP + -0x1830]
LEA RAX,[RBP + -0x1820]
IMUL RCX,RCX,0x18
ADD RAX,RCX
MOVZX EAX,word ptr [RAX + 0xa]
MOV dword ptr [RBP + -0x1850],EAX
LAB_00145864:
MOV EAX,dword ptr [RBP + -0x1850]
MOV CX,AX
MOVSXD RDX,dword ptr [RBP + -0x1830]
LEA RAX,[RBP + -0x1820]
IMUL RDX,RDX,0x18
ADD RAX,RDX
MOV word ptr [RAX + 0xa],CX
LAB_00145886:
MOVSXD RCX,dword ptr [RBP + -0x1830]
LEA RAX,[RBP + -0x1820]
IMUL RCX,RCX,0x18
ADD RAX,RCX
MOV ECX,dword ptr [RAX]
ADD ECX,0x1
MOV dword ptr [RAX],ECX
LAB_001458a2:
JMP 0x001458a4
LAB_001458a4:
MOV EAX,dword ptr [RBP + -0x1824]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1824],EAX
JMP 0x001456e4
LAB_001458b8:
LEA RDI,[RBP + -0x1820]
MOV ESI,0x100
MOV EDX,0x18
LEA RCX,[0x145bb0]
CALL 0x001245d0
MOV dword ptr [RBP + -0x1824],0x0
LAB_001458df:
CMP dword ptr [RBP + -0x1824],0x100
JGE 0x00145ad1
MOVSXD RCX,dword ptr [RBP + -0x1824]
LEA RAX,[RBP + -0x1820]
IMUL RCX,RCX,0x18
ADD RAX,RCX
CMP dword ptr [RAX],0x0
JNZ 0x0014590e
JMP 0x00145ad1
LAB_0014590e:
MOVSXD RCX,dword ptr [RBP + -0x1824]
LEA RAX,[RBP + -0x1820]
IMUL RCX,RCX,0x18
ADD RAX,RCX
MOVZX EAX,word ptr [RAX + 0xa]
MOVSXD RDX,dword ptr [RBP + -0x1824]
LEA RCX,[RBP + -0x1820]
IMUL RDX,RDX,0x18
ADD RCX,RDX
MOVZX ECX,word ptr [RCX + 0x8]
SUB EAX,ECX
ADD EAX,0x1
MOV dword ptr [RBP + -0x1838],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x80]
MOVSXD RDI,dword ptr [RBP + -0x1838]
SHL RDI,0x0
CALL RAX
MOV qword ptr [RBP + -0x1840],RAX
MOVSXD RDX,dword ptr [RBP + -0x1824]
LEA RCX,[RBP + -0x1820]
IMUL RDX,RDX,0x18
ADD RCX,RDX
MOV qword ptr [RCX + 0x10],RAX
CMP RAX,0x0
JNZ 0x00145992
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00145b9a
LAB_00145992:
MOV RDI,qword ptr [RBP + -0x1840]
MOVSXD RDX,dword ptr [RBP + -0x1838]
SHL RDX,0x0
XOR ESI,ESI
CALL 0x00124170
MOV dword ptr [RBP + -0x1834],0x1
LAB_001459b5:
CMP dword ptr [RBP + -0x1834],0x100
JGE 0x00145abb
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x68]
MOVSXD RCX,dword ptr [RBP + -0x1834]
MOV AX,word ptr [RAX + RCX*0x2]
MOV word ptr [RBP + -0x1842],AX
MOVZX EAX,word ptr [RBP + -0x1842]
MOVSXD RDX,dword ptr [RBP + -0x1824]
LEA RCX,[RBP + -0x1820]
IMUL RDX,RDX,0x18
ADD RCX,RDX
MOVZX ECX,word ptr [RCX + 0x8]
CMP EAX,ECX
JL 0x00145aa5
MOVZX EAX,word ptr [RBP + -0x1842]
MOVSXD RDX,dword ptr [RBP + -0x1824]
LEA RCX,[RBP + -0x1820]
IMUL RDX,RDX,0x18
ADD RCX,RDX
MOVZX ECX,word ptr [RCX + 0xa]
CMP EAX,ECX
JG 0x00145aa5
MOVZX EAX,word ptr [RBP + -0x1842]
CMP EAX,0x0
JZ 0x00145aa5
MOVZX EAX,word ptr [RBP + -0x1842]
MOVSXD RDX,dword ptr [RBP + -0x1824]
LEA RCX,[RBP + -0x1820]
IMUL RDX,RDX,0x18
ADD RCX,RDX
MOVZX ECX,word ptr [RCX + 0x8]
SUB EAX,ECX
MOV dword ptr [RBP + -0x1848],EAX
MOV RAX,qword ptr [RBP + -0x1840]
MOVSXD RCX,dword ptr [RBP + -0x1848]
CMP byte ptr [RAX + RCX*0x1],0x0
JZ 0x00145a8a
MOV RAX,qword ptr [RBP + -0x1840]
MOVSXD RCX,dword ptr [RBP + -0x1848]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
CMP EAX,0x7f
JLE 0x00145aa3
LAB_00145a8a:
MOV EAX,dword ptr [RBP + -0x1834]
MOV DL,AL
MOV RAX,qword ptr [RBP + -0x1840]
MOVSXD RCX,dword ptr [RBP + -0x1848]
MOV byte ptr [RAX + RCX*0x1],DL
LAB_00145aa3:
JMP 0x00145aa5
LAB_00145aa5:
JMP 0x00145aa7
LAB_00145aa7:
MOV EAX,dword ptr [RBP + -0x1834]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1834],EAX
JMP 0x001459b5
LAB_00145abb:
JMP 0x00145abd
LAB_00145abd:
MOV EAX,dword ptr [RBP + -0x1824]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1824],EAX
JMP 0x001458df
LAB_00145ad1:
MOV EAX,dword ptr [RBP + -0x1824]
MOV dword ptr [RBP + -0x1828],EAX
MOV RAX,qword ptr [RBP + -0x18]
MOV RAX,qword ptr [RAX + 0x80]
MOV ECX,dword ptr [RBP + -0x1828]
ADD ECX,0x1
MOVSXD RDI,ECX
SHL RDI,0x4
CALL RAX
MOV RCX,qword ptr [RBP + -0x10]
MOV qword ptr [RCX + 0x70],RAX
CMP RAX,0x0
JNZ 0x00145b11
MOV byte ptr [RBP + -0x1],0x1
JMP 0x00145b9a
LAB_00145b11:
MOV dword ptr [RBP + -0x1824],0x0
LAB_00145b1b:
MOV EAX,dword ptr [RBP + -0x1824]
CMP EAX,dword ptr [RBP + -0x1828]
JGE 0x00145b74
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX + 0x70]
MOVSXD RCX,dword ptr [RBP + -0x1824]
SHL RCX,0x4
ADD RAX,RCX
MOVSXD RDX,dword ptr [RBP + -0x1824]
LEA RCX,[RBP + -0x1820]
IMUL RDX,RDX,0x18
ADD RCX,RDX
MOV RDX,qword ptr [RCX + 0x8]
MOV qword ptr [RAX],RDX
MOV RCX,qword ptr [RCX + 0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV EAX,dword ptr [RBP + -0x1824]
ADD EAX,0x1
MOV dword ptr [RBP + -0x1824],EAX
JMP 0x00145b1b
LAB_00145b74:
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX + 0x70]
MOVSXD RAX,dword ptr [RBP + -0x1824]
SHL RAX,0x4
ADD RDI,RAX
XOR ESI,ESI
MOV EDX,0x10
CALL 0x00124170
MOV byte ptr [RBP + -0x1],0x0
LAB_00145b9a:
MOV AL,byte ptr [RBP + -0x1]
ADD RSP,0x1850
POP RBP
RET
|
int1 create_fromuni(long param_1,long param_2)
{
ushort uVar1;
ushort uVar2;
int iVar3;
void *__s;
long lVar4;
int8 *puVar5;
uint uVar6;
int local_183c;
int local_182c;
int local_1828 [2];
ushort auStack_1820 [4];
int8 auStack_1818 [767];
long local_20;
long local_18;
int1 local_9;
if (*(long *)(param_1 + 0x68) == 0) {
local_9 = 1;
}
else {
local_20 = param_2;
local_18 = param_1;
memset(local_1828,0,0x1800);
for (local_182c = 0; local_182c < 0x100; local_182c = local_182c + 1) {
uVar1 = *(ushort *)(*(long *)(local_18 + 0x68) + (long)local_182c * 2);
uVar6 = (uint)((int)(uint)uVar1 >> 8) % 0x100;
if ((uVar1 != 0) || (local_182c == 0)) {
if (local_1828[(long)(int)uVar6 * 6] == 0) {
auStack_1820[(long)(int)uVar6 * 0xc] = uVar1;
auStack_1820[(long)(int)uVar6 * 0xc + 1] = uVar1;
}
else {
uVar2 = uVar1;
if (auStack_1820[(long)(int)uVar6 * 0xc] <= uVar1) {
uVar2 = auStack_1820[(long)(int)uVar6 * 0xc];
}
auStack_1820[(long)(int)uVar6 * 0xc] = uVar2;
if (uVar1 <= auStack_1820[(long)(int)uVar6 * 0xc + 1]) {
uVar1 = auStack_1820[(long)(int)uVar6 * 0xc + 1];
}
auStack_1820[(long)(int)uVar6 * 0xc + 1] = uVar1;
}
local_1828[(long)(int)uVar6 * 6] = local_1828[(long)(int)uVar6 * 6] + 1;
}
}
qsort(local_1828,0x100,0x18,pcmp);
local_182c = 0;
while ((iVar3 = local_182c, local_182c < 0x100 && (local_1828[(long)local_182c * 6] != 0))) {
iVar3 = ((uint)auStack_1820[(long)local_182c * 0xc + 1] -
(uint)auStack_1820[(long)local_182c * 0xc]) + 1;
__s = (void *)(**(code **)(local_20 + 0x80))((long)iVar3);
auStack_1818[(long)local_182c * 3] = __s;
if (__s == (void *)0x0) {
return 1;
}
memset(__s,0,(long)iVar3);
for (local_183c = 1; local_183c < 0x100; local_183c = local_183c + 1) {
uVar1 = *(ushort *)(*(long *)(local_18 + 0x68) + (long)local_183c * 2);
if ((((auStack_1820[(long)local_182c * 0xc] <= uVar1) &&
(uVar1 <= auStack_1820[(long)local_182c * 0xc + 1])) && (uVar1 != 0)) &&
((iVar3 = (uint)uVar1 - (uint)auStack_1820[(long)local_182c * 0xc],
*(char *)((long)__s + (long)iVar3) == '\0' ||
(0x7f < *(byte *)((long)__s + (long)iVar3))))) {
*(char *)((long)__s + (long)iVar3) = (char)local_183c;
}
}
local_182c = local_182c + 1;
}
lVar4 = (**(code **)(local_20 + 0x80))((long)(local_182c + 1) << 4);
*(long *)(local_18 + 0x70) = lVar4;
if (lVar4 == 0) {
local_9 = 1;
}
else {
for (local_182c = 0; local_182c < iVar3; local_182c = local_182c + 1) {
puVar5 = (int8 *)(*(long *)(local_18 + 0x70) + (long)local_182c * 0x10);
*puVar5 = *(int8 *)(auStack_1820 + (long)local_182c * 0xc);
puVar5[1] = auStack_1818[(long)local_182c * 3];
}
memset((void *)(*(long *)(local_18 + 0x70) + (long)local_182c * 0x10),0,0x10);
local_9 = 0;
}
}
return local_9;
}
| |
28,222 | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [11], 0>(char const (&) [11]) const | monkey531[P]llama/common/./json.hpp | const_reference at(KeyType && key) const
{
// at only works for objects
if (JSON_HEDLEY_UNLIKELY(!is_object()))
{
JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this));
}
auto it = m_data.m_value.object->find(std::forward<KeyType>(key));
if (it == m_data.m_value.object->end())
{
JSON_THROW(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not found"), this));
}
return it->second;
} | O0 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [11], 0>(char const (&) [11]) const:
subq $0xc8, %rsp
movq %rdi, 0xc0(%rsp)
movq %rsi, 0xb8(%rsp)
movq 0xc0(%rsp), %rdi
movq %rdi, 0x20(%rsp)
callq 0x8e2e0
xorb $-0x1, %al
xorb $-0x1, %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x1af4d8
jmp 0x1af5b4
movb $0x1, 0x83(%rsp)
movl $0x20, %edi
callq 0x52670
movq 0x20(%rsp), %rdi
movq %rax, 0x18(%rsp)
callq 0x88420
movq %rax, 0x90(%rsp)
leaq 0x2d3e9(%rip), %rsi # 0x1dc8f1
leaq 0x98(%rsp), %rdi
leaq 0x90(%rsp), %rdx
callq 0x9c2d0
jmp 0x1af51f
movq 0x20(%rsp), %rcx
movq 0x18(%rsp), %rdi
movl $0x130, %esi # imm = 0x130
leaq 0x98(%rsp), %rdx
callq 0x881c0
jmp 0x1af53d
movq 0x18(%rsp), %rdi
movb $0x0, 0x83(%rsp)
leaq 0xb580f(%rip), %rsi # 0x264d60
leaq -0x137ab8(%rip), %rdx # 0x77aa0
callq 0x52a60
jmp 0x1af731
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x88(%rsp)
movl %eax, 0x84(%rsp)
jmp 0x1af599
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x88(%rsp)
movl %eax, 0x84(%rsp)
leaq 0x98(%rsp), %rdi
callq 0x53408
testb $0x1, 0x83(%rsp)
jne 0x1af5a5
jmp 0x1af5af
movq 0x18(%rsp), %rdi
callq 0x52e60
jmp 0x1af724
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0xb8(%rsp), %rsi
callq 0xa3ea0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x78(%rsp)
movq 0x8(%rax), %rdi
callq 0x8c540
movq %rax, 0x70(%rsp)
leaq 0x78(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0xa3a80
testb $0x1, %al
jne 0x1af5fd
jmp 0x1af70e
movb $0x1, 0x2e(%rsp)
movl $0x20, %edi
callq 0x52670
movq %rax, (%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x2f(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x52fe0
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
leaq 0x30(%rsp), %rdi
callq 0x5b620
jmp 0x1af642
leaq 0x2d3eb(%rip), %rsi # 0x1dca34
leaq 0x2d3ea(%rip), %rcx # 0x1dca3a
leaq 0x50(%rsp), %rdi
leaq 0x30(%rsp), %rdx
callq 0xa3ca0
jmp 0x1af661
movq 0x20(%rsp), %rcx
movq (%rsp), %rdi
movl $0x193, %esi # imm = 0x193
leaq 0x50(%rsp), %rdx
callq 0xb3960
jmp 0x1af67b
movq (%rsp), %rdi
movb $0x0, 0x2e(%rsp)
leaq 0xb5655(%rip), %rsi # 0x264ce0
leaq -0x13f6f2(%rip), %rdx # 0x6ffa0
callq 0x52a60
jmp 0x1af731
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x88(%rsp)
movl %eax, 0x84(%rsp)
jmp 0x1af6f0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x88(%rsp)
movl %eax, 0x84(%rsp)
jmp 0x1af6e6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x88(%rsp)
movl %eax, 0x84(%rsp)
leaq 0x50(%rsp), %rdi
callq 0x53408
leaq 0x30(%rsp), %rdi
callq 0x53408
leaq 0x2f(%rsp), %rdi
callq 0x533e0
testb $0x1, 0x2e(%rsp)
jne 0x1af703
jmp 0x1af70c
movq (%rsp), %rdi
callq 0x52e60
jmp 0x1af724
leaq 0x78(%rsp), %rdi
callq 0x8c5a0
addq $0x20, %rax
addq $0xc8, %rsp
retq
movq 0x88(%rsp), %rdi
callq 0x52ae0
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA11_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_:
sub rsp, 0C8h
mov [rsp+0C8h+var_8], rdi
mov qword ptr [rsp+0C8h+var_10], rsi
mov rdi, [rsp+0C8h+var_8]
mov [rsp+0C8h+var_A8], rdi; int
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9is_objectEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::is_object(void)
xor al, 0FFh
xor al, 0FFh
xor al, 0FFh
test al, 1
jnz short loc_1AF4D8
jmp loc_1AF5B4
loc_1AF4D8:
mov [rsp+0C8h+var_45], 1
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rdi, [rsp+0C8h+var_A8]
mov [rsp+0C8h+var_B0], rax; char
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
mov qword ptr [rsp+0C8h+var_38], rax; char
lea rsi, aCannotUseAtWit; "cannot use at() with "
lea rdi, [rsp+0C8h+var_30]; int
lea rdx, [rsp+0C8h+var_38]; int
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&)
jmp short $+2
loc_1AF51F:
mov rcx, [rsp+0C8h+var_A8]
mov rdi, [rsp+0C8h+var_B0]; int
mov esi, 130h
lea rdx, [rsp+0C8h+var_30]
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
jmp short $+2
loc_1AF53D:
mov rdi, [rsp+0C8h+var_B0]; void *
mov [rsp+0C8h+var_45], 0
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail10type_errorD2Ev; void (*)(void *)
call ___cxa_throw
jmp loc_1AF731
mov rcx, rax
mov eax, edx
mov [rsp+arg_80], rcx
mov [rsp+arg_7C], eax
jmp short loc_1AF599
mov rcx, rax
mov eax, edx
mov [rsp+arg_80], rcx
mov [rsp+arg_7C], eax
lea rdi, [rsp+arg_90]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_1AF599:
test [rsp+arg_7B], 1
jnz short loc_1AF5A5
jmp short loc_1AF5AF
loc_1AF5A5:
mov rdi, [rsp+arg_10]; void *
call ___cxa_free_exception
loc_1AF5AF:
jmp loc_1AF724
loc_1AF5B4:
mov rax, [rsp+0C8h+var_A8]
mov rdi, [rax+8]
mov rsi, qword ptr [rsp+0C8h+var_10]
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA11_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_
mov rcx, rax
mov rax, [rsp+0C8h+var_A8]
mov qword ptr [rsp+0C8h+var_50], rcx; int
mov rdi, [rax+8]
call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::end(void)
mov qword ptr [rsp+0C8h+var_58], rax; char
lea rdi, [rsp+0C8h+var_50]
lea rsi, [rsp+0C8h+var_58]
call _ZN9__gnu_cxxeqIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbRKNS_17__normal_iteratorIT_T0_EESR_; __gnu_cxx::operator==<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&,__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&)
test al, 1
jnz short loc_1AF5FD
jmp loc_1AF70E
loc_1AF5FD:
mov [rsp+0C8h+var_9A], 1
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov [rsp+0C8h+var_C8], rax; int
mov rax, qword ptr [rsp+0C8h+var_10]
mov qword ptr [rsp+0C8h+var_C0], rax; int
lea rdi, [rsp+0C8h+var_99]
mov qword ptr [rsp+0C8h+var_B8], rdi; int
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rsi, qword ptr [rsp+0C8h+var_C0]
mov rdx, qword ptr [rsp+0C8h+var_B8]
lea rdi, [rsp+0C8h+var_99+1]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_1AF642:
lea rsi, aKey; "key '"
lea rcx, aNotFound; "' not found"
lea rdi, [rsp+0C8h+var_78]; int
lea rdx, [rsp+0C8h+var_99+1]; int
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA6_KcS8_RA12_S9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(char const(&)[6],std::string,char const(&)[12] &&)
jmp short $+2
loc_1AF661:
mov rcx, [rsp+0C8h+var_A8]
mov rdi, [rsp+0C8h+var_C8]; int
mov esi, 193h
lea rdx, [rsp+0C8h+var_78]
call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
jmp short $+2
loc_1AF67B:
mov rdi, [rsp+0C8h+var_C8]; void *
mov [rsp+0C8h+var_9A], 0
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail12out_of_rangeD2Ev; void (*)(void *)
call ___cxa_throw
jmp loc_1AF731
mov rcx, rax
mov eax, edx
mov [rsp+arg_80], rcx
mov [rsp+arg_7C], eax
jmp short loc_1AF6F0
mov rcx, rax
mov eax, edx
mov [rsp+arg_80], rcx
mov [rsp+arg_7C], eax
jmp short loc_1AF6E6
mov rcx, rax
mov eax, edx
mov [rsp+arg_80], rcx
mov [rsp+arg_7C], eax
lea rdi, [rsp+arg_48]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_1AF6E6:
lea rdi, [rsp+arg_28]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_1AF6F0:
lea rdi, [rsp+arg_27]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
test [rsp+arg_26], 1
jnz short loc_1AF703
jmp short loc_1AF70C
loc_1AF703:
mov rdi, [rsp+0]; void *
call ___cxa_free_exception
loc_1AF70C:
jmp short loc_1AF724
loc_1AF70E:
lea rdi, [rsp+0C8h+var_50]
call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEptEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator->(void)
add rax, 20h ; ' '
add rsp, 0C8h
retn
loc_1AF724:
mov rdi, [rsp+arg_80]
call __Unwind_Resume
loc_1AF731:
nop word ptr [rax+rax+00000000h]
nop dword ptr [rax+rax+00h]
| long long ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA11_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_(
long long a1,
long long a2)
{
nlohmann::json_abi_v3_11_3::detail::out_of_range *v3; // [rsp+0h] [rbp-C8h]
long long v4; // [rsp+8h] [rbp-C0h]
nlohmann::json_abi_v3_11_3::detail::type_error *exception; // [rsp+18h] [rbp-B0h]
int v6[8]; // [rsp+2Fh] [rbp-99h] BYREF
int v7[8]; // [rsp+50h] [rbp-78h] BYREF
char v8[8]; // [rsp+70h] [rbp-58h] BYREF
int v9[2]; // [rsp+78h] [rbp-50h] BYREF
char v10; // [rsp+83h] [rbp-45h]
char v11[8]; // [rsp+90h] [rbp-38h] BYREF
int v12[8]; // [rsp+98h] [rbp-30h] BYREF
int v13[2]; // [rsp+B8h] [rbp-10h]
long long v14; // [rsp+C0h] [rbp-8h]
v14 = a1;
*(_QWORD *)v13 = a2;
if ( !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>::is_object((_BYTE *)a1) )
{
exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL);
*(_QWORD *)v11 = nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((_BYTE *)a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(
(long long)v12,
(long long)"cannot use at() with ",
(nlohmann::json_abi_v3_11_3::detail **)v11);
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
exception,
304,
(long long)v12,
a1);
v10 = 0;
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::type_error::~type_error);
}
*(_QWORD *)v9 = ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA11_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_(
*(_QWORD *)(a1 + 8),
*(long long *)v13);
*(_QWORD *)v8 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::end(*(_QWORD *)(a1 + 8));
if ( __gnu_cxx::operator==<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>(
(long long)v9,
(long long)v8) )
{
v3 = (nlohmann::json_abi_v3_11_3::detail::out_of_range *)__cxa_allocate_exception(0x20uLL);
v4 = *(_QWORD *)v13;
std::allocator<char>::allocator(v6, v8);
std::string::basic_string<std::allocator<char>>((long long)v6 + 1, v4, (long long)v6);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(
(long long)v7,
(long long)"key '",
(long long)v6 + 1,
(long long)"' not found");
ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
v3,
403,
(long long)v7,
a1);
__cxa_throw(
v3,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::out_of_range::~out_of_range);
}
return __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>::operator->((long long)v9)
+ 32;
}
| |||
28,223 | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [11], 0>(char const (&) [11]) const | monkey531[P]llama/common/./json.hpp | const_reference at(KeyType && key) const
{
// at only works for objects
if (JSON_HEDLEY_UNLIKELY(!is_object()))
{
JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this));
}
auto it = m_data.m_value.object->find(std::forward<KeyType>(key));
if (it == m_data.m_value.object->end())
{
JSON_THROW(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not found"), this));
}
return it->second;
} | O2 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [11], 0>(char const (&) [11]) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r14
cmpb $0x1, (%rdi)
jne 0x85ff1
movq %rsi, %r15
movq 0x8(%r14), %rdi
callq 0x356a2
movq 0x8(%r14), %rcx
cmpq 0x8(%rcx), %rax
je 0x8604f
addq $0x20, %rax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
pushq $0x20
popq %rdi
callq 0x213f0
movq %rax, %rbx
movq %r14, %rdi
callq 0x2d0f2
leaq 0x28(%rsp), %rdx
movq %rax, (%rdx)
leaq 0xf4b1(%rip), %rsi # 0x954c4
leaq 0x8(%rsp), %rdi
callq 0x330fb
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0x130, %esi # imm = 0x130
movq %r14, %rcx
callq 0x2cfa6
xorl %ebp, %ebp
leaq 0x51ea2(%rip), %rsi # 0xd7ee0
leaq -0x5e013(%rip), %rdx # 0x28032
movq %rbx, %rdi
callq 0x21de0
jmp 0x860b9
pushq $0x20
popq %rdi
callq 0x213f0
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %r15, %rsi
callq 0x255a4
leaq 0xf594(%rip), %rsi # 0x95607
leaq 0xf593(%rip), %rcx # 0x9560d
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x355b1
movb $0x1, %bpl
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0x193, %esi # imm = 0x193
movq %r14, %rcx
callq 0x3afe4
xorl %ebp, %ebp
leaq 0x51db6(%rip), %rsi # 0xd7e60
leaq -0x5e07f(%rip), %rdx # 0x28032
movq %rbx, %rdi
callq 0x21de0
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x22078
jmp 0x860ce
movq %rax, %r14
movb $0x1, %bpl
leaq 0x28(%rsp), %rdi
jmp 0x860df
jmp 0x860eb
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x22078
testb %bpl, %bpl
jne 0x860ee
jmp 0x860f6
movq %rax, %r14
movq %rbx, %rdi
callq 0x215c0
movq %r14, %rdi
callq 0x21e50
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA11_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_:
push rbp; char
push r15; int
push r14; int
push rbx; int
sub rsp, 48h
mov r14, rdi
cmp byte ptr [rdi], 1
jnz short loc_85FF1
mov r15, rsi
mov rdi, [r14+8]
call _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA11_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_
mov rcx, [r14+8]
cmp rax, [rcx+8]
jz short loc_8604F
add rax, 20h ; ' '
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
retn
loc_85FF1:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
lea rdx, [rsp+68h+var_40]
mov [rdx], rax
lea rsi, aCannotUseAtWit; "cannot use at() with "
lea rdi, [rsp+68h+var_60]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&)
mov bpl, 1
lea rdx, [rsp+68h+var_60]
mov rdi, rbx; this
mov esi, 130h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
jmp short loc_860B9
loc_8604F:
push 20h ; ' '
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+68h+var_40]
lea rdx, [rsp+68h+var_61]
mov rsi, r15
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
lea rsi, aKey; "key '"
lea rcx, aNotFound; "' not found"
lea rdi, [rsp+68h+var_60]
lea rdx, [rsp+68h+var_40]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA6_KcS8_RA12_S9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(char const(&)[6],std::string,char const(&)[12] &&)
mov bpl, 1
lea rdx, [rsp+68h+var_60]
mov rdi, rbx; this
mov esi, 193h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_860B9:
mov r14, rax
lea rdi, [rsp+68h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_860CE
mov r14, rax
mov bpl, 1
loc_860CE:
lea rdi, [rsp+68h+var_40]
jmp short loc_860DF
jmp short loc_860EB
mov r14, rax
lea rdi, [rsp+68h+var_60]; void *
loc_860DF:
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_860EE
jmp short loc_860F6
loc_860EB:
mov r14, rax
loc_860EE:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_860F6:
mov rdi, r14
call __Unwind_Resume
| long long ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA11_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_(
long long a1,
long long a2)
{
long long v2; // rax
nlohmann::json_abi_v3_11_3::detail::type_error *exception; // rbx
nlohmann::json_abi_v3_11_3::detail::out_of_range *v5; // rbx
_BYTE v6[32]; // [rsp+8h] [rbp-60h] BYREF
_QWORD v7[8]; // [rsp+28h] [rbp-40h] BYREF
if ( *(_BYTE *)a1 != 1 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::type_error *)__cxa_allocate_exception(0x20uLL);
v7[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>::type_name((unsigned __int8 *)a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(
(long long)v6,
(long long)"cannot use at() with ",
v7);
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
exception,
304,
(long long)v6,
a1);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
v2 = ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA11_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_(*(long long **)(a1 + 8));
if ( v2 == *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL) )
{
v5 = (nlohmann::json_abi_v3_11_3::detail::out_of_range *)__cxa_allocate_exception(0x20uLL);
std::string::basic_string<std::allocator<char>>(v7, a2);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(
(long long)v6,
(long long)"key '",
(long long)v7,
(long long)"' not found");
ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
v5,
403,
(long long)v6);
__cxa_throw(
v5,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
return v2 + 32;
}
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA11_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV R14,RDI
CMP byte ptr [RDI],0x1
JNZ 0x00185ff1
MOV R15,RSI
MOV RDI,qword ptr [R14 + 0x8]
CALL 0x001356a2
MOV RCX,qword ptr [R14 + 0x8]
CMP RAX,qword ptr [RCX + 0x8]
JZ 0x0018604f
ADD RAX,0x20
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_00185ff1:
PUSH 0x20
POP RDI
CALL 0x001213f0
MOV RBX,RAX
MOV RDI,R14
CALL 0x0012d0f2
LEA RDX,[RSP + 0x28]
MOV qword ptr [RDX],RAX
LAB_0018600c:
LEA RSI,[0x1954c4]
LEA RDI,[RSP + 0x8]
CALL 0x001330fb
MOV BPL,0x1
LAB_00186020:
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
MOV ESI,0x130
MOV RCX,R14
CALL 0x0012cfa6
XOR EBP,EBP
LEA RSI,[0x1d7ee0]
LEA RDX,[0x128032]
MOV RDI,RBX
CALL 0x00121de0
LAB_0018604f:
PUSH 0x20
POP RDI
CALL 0x001213f0
MOV RBX,RAX
LAB_0018605a:
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x7]
MOV RSI,R15
CALL 0x001255a4
LAB_0018606c:
LEA RSI,[0x195607]
LEA RCX,[0x19560d]
LEA RDI,[RSP + 0x8]
LEA RDX,[RSP + 0x28]
CALL 0x001355b1
MOV BPL,0x1
LAB_0018608c:
LEA RDX,[RSP + 0x8]
MOV RDI,RBX
MOV ESI,0x193
MOV RCX,R14
CALL 0x0013afe4
XOR EBP,EBP
LEA RSI,[0x1d7e60]
LEA RDX,[0x128032]
MOV RDI,RBX
CALL 0x00121de0
|
long _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA11_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*param_1,char *param_2)
{
long lVar1;
int8 uVar2;
allocator local_61;
detail local_60 [32];
char *local_40 [4];
if (*param_1 !=
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1) {
uVar2 = __cxa_allocate_exception(0x20);
local_40[0] = (char *)nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::type_name(param_1);
/* try { // try from 0018600c to 0018601c has its CatchHandler @ 001860eb */
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[22],char_const*>
(local_60,"cannot use at() with ",local_40);
/* try { // try from 00186020 to 0018604c has its CatchHandler @ 001860d7 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar2,0x130,local_60,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
lVar1 = _ZN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEE4findIRA11_KcTnNSt9enable_ifIXsr6detail21is_usable_as_key_typeISt8equal_toIvES7_T_EE5valueEiE4typeELi0EEEN9__gnu_cxx17__normal_iteratorIPSI_S9_ISI_SJ_EEEOSS_
(*(int8 *)(param_1 + 8));
if (lVar1 != *(long *)(*(long *)(param_1 + 8) + 8)) {
return lVar1 + 0x20;
}
uVar2 = __cxa_allocate_exception(0x20);
/* try { // try from 0018605a to 0018606b has its CatchHandler @ 001860d5 */
std::__cxx11::string::string<std::allocator<char>>((string *)local_40,param_2,&local_61);
/* try { // try from 0018606c to 00186088 has its CatchHandler @ 001860c8 */
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,char_const(&)[6],std::__cxx11::string,char_const(&)[12]>
(local_60,"key \'",(string *)local_40,"\' not found");
/* try { // try from 0018608c to 001860b8 has its CatchHandler @ 001860b9 */
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar2,0x193,local_60,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar2,&nlohmann::json_abi_v3_11_3::detail::out_of_range::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
| |
28,224 | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [11], 0>(char const (&) [11]) const | monkey531[P]llama/common/./json.hpp | const_reference at(KeyType && key) const
{
// at only works for objects
if (JSON_HEDLEY_UNLIKELY(!is_object()))
{
JSON_THROW(type_error::create(304, detail::concat("cannot use at() with ", type_name()), this));
}
auto it = m_data.m_value.object->find(std::forward<KeyType>(key));
if (it == m_data.m_value.object->end())
{
JSON_THROW(out_of_range::create(403, detail::concat("key '", string_t(std::forward<KeyType>(key)), "' not found"), this));
}
return it->second;
} | O3 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> const& nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::at<char const (&) [11], 0>(char const (&) [11]) const:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
cmpb $0x1, (%rdi)
jne 0x9d017
movq %rsi, %r15
movq 0x8(%r14), %r12
movq (%r12), %rbx
movq 0x8(%r12), %rax
cmpq %rax, %rbx
je 0x9d001
movq %rbx, %rdi
movq %r15, %rsi
callq 0x191d0
testl %eax, %eax
je 0x9cff6
addq $0x30, %rbx
movq 0x8(%r12), %rax
cmpq %rax, %rbx
jne 0x9cfd7
jmp 0x9cff9
movq %rbx, %rax
movq 0x8(%r14), %rcx
movq 0x8(%rcx), %rbx
cmpq %rbx, %rax
je 0x9d075
addq $0x20, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x193b0
movq %rax, %rbx
movq %r14, %rdi
callq 0x298a8
movq %rsp, %rdx
movq %rax, (%rdx)
leaq 0x14313(%rip), %rsi # 0xb134c
leaq 0x20(%rsp), %rdi
callq 0x32d04
movb $0x1, %bpl
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
movl $0x130, %esi # imm = 0x130
movq %r14, %rcx
callq 0x29654
xorl %ebp, %ebp
leaq 0x48e7c(%rip), %rsi # 0xe5ee0
leaq -0x792c3(%rip), %rdx # 0x23da8
movq %rbx, %rdi
callq 0x19da0
jmp 0x9d0ee
movl $0x20, %edi
callq 0x193b0
movq %rax, %rbx
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq %r15, %rdi
callq 0x19360
leaq (%rax,%r15), %rdx
movq %rsp, %rdi
movq %r15, %rsi
callq 0x20bbe
leaq 0x143e5(%rip), %rsi # 0xb148f
leaq 0x143e4(%rip), %rcx # 0xb1495
leaq 0x20(%rsp), %rdi
movq %rsp, %rdx
callq 0x35249
movb $0x1, %bpl
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
movl $0x193, %esi # imm = 0x193
movq %r14, %rcx
callq 0x3b78e
xorl %ebp, %ebp
leaq 0x48d81(%rip), %rsi # 0xe5e60
leaq -0x7933e(%rip), %rdx # 0x23da8
movq %rbx, %rdi
callq 0x19da0
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9d10c
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x197b0
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x9d157
movq 0x10(%rsp), %rsi
jmp 0x9d14f
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x9d161
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x197b0
jmp 0x9d161
jmp 0x9d15e
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9d157
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x197b0
testb %bpl, %bpl
jne 0x9d161
jmp 0x9d169
movq %rax, %r14
movq %rbx, %rdi
callq 0x19570
movq %r14, %rdi
callq 0x19e10
nop
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA11_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_:
push rbp; char
push r15; int
push r14; int
push r12; int
push rbx; char
sub rsp, 40h
mov r14, rdi
cmp byte ptr [rdi], 1
jnz short loc_9D017
mov r15, rsi
mov r12, [r14+8]
mov rbx, [r12]
mov rax, [r12+8]
cmp rbx, rax
jz short loc_9D001
loc_9CFD7:
mov rdi, rbx
mov rsi, r15
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEPKc; std::string::compare(char const*)
test eax, eax
jz short loc_9CFF6
add rbx, 30h ; '0'
mov rax, [r12+8]
cmp rbx, rax
jnz short loc_9CFD7
jmp short loc_9CFF9
loc_9CFF6:
mov rax, rbx
loc_9CFF9:
mov rcx, [r14+8]
mov rbx, [rcx+8]
loc_9D001:
cmp rax, rbx
jz short loc_9D075
add rax, 20h ; ' '
add rsp, 40h
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
loc_9D017:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
mov rdi, r14
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE9type_nameEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::type_name(void)
mov rdx, rsp
mov [rdx], rax
lea rsi, aCannotUseAtWit; "cannot use at() with "
lea rdi, [rsp+68h+var_48]
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA22_KcPS9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(char const(&)[22],char const* &&)
mov bpl, 1
lea rdx, [rsp+68h+var_48]
mov rdi, rbx; this
mov esi, 130h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail10type_errorE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
jmp short loc_9D0EE
loc_9D075:
mov edi, 20h ; ' '; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea r12, [rsp+68h+var_58]
mov [r12-10h], r12
mov rdi, r15
call _strlen
lea rdx, [rax+r15]
mov rdi, rsp
mov rsi, r15
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag)
lea rsi, aKey; "key '"
lea rcx, aNotFound; "' not found"
lea rdi, [rsp+68h+var_48]
mov rdx, rsp
call _ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA6_KcS8_RA12_S9_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(char const(&)[6],std::string,char const(&)[12] &&)
mov bpl, 1
lea rdx, [rsp+68h+var_48]
mov rdi, rbx; this
mov esi, 193h; int
mov rcx, r14
call _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
xor ebp, ebp
lea rsi, _ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE; lptinfo
lea rdx, _ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
loc_9D0EE:
mov r14, rax
lea rax, [rsp+68h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_9D10C
mov rsi, [rsp+68h+var_38]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_9D10C:
mov rdi, [rsp+68h+var_68]
cmp rdi, r12
jz short loc_9D157
mov rsi, [rsp+68h+var_58]
jmp short loc_9D14F
mov r14, rax
mov rdi, [rsp+68h+var_68]; void *
cmp rdi, r12
jz short loc_9D161
mov rsi, [rsp+68h+var_58]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_9D161
jmp short loc_9D15E
mov r14, rax
lea rax, [rsp+68h+var_38]
mov rdi, [rax-10h]; void *
cmp rdi, rax
jz short loc_9D157
mov rsi, [rsp+68h+var_38]
loc_9D14F:
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_9D157:
test bpl, bpl
jnz short loc_9D161
jmp short loc_9D169
loc_9D15E:
mov r14, rax
loc_9D161:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_9D169:
mov rdi, r14
call __Unwind_Resume
| long long ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA11_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_(
long long a1,
_BYTE *a2)
{
long long *v2; // r12
long long v3; // rbx
long long v4; // rax
nlohmann::json_abi_v3_11_3::detail::exception *exception; // rbx
nlohmann::json_abi_v3_11_3::detail::exception *v7; // rbx
long long v8; // rax
void *v9[2]; // [rsp+0h] [rbp-68h] BYREF
long long v10; // [rsp+10h] [rbp-58h] BYREF
_QWORD v11[2]; // [rsp+20h] [rbp-48h] BYREF
if ( *(_BYTE *)a1 != 1 )
{
exception = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL);
v9[0] = (void *)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::type_name((unsigned __int8 *)a1);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[22],char const*>(
(long long)v11,
(long long)"cannot use at() with ",
v9);
ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
exception,
304,
v11);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::type_error,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
v2 = *(long long **)(a1 + 8);
v3 = *v2;
v4 = v2[1];
if ( *v2 != v4 )
{
while ( (unsigned int)std::string::compare(v3, a2) )
{
v3 += 48LL;
v4 = v2[1];
if ( v3 == v4 )
goto LABEL_7;
}
v4 = v3;
LABEL_7:
v3 = *(_QWORD *)(*(_QWORD *)(a1 + 8) + 8LL);
}
if ( v4 == v3 )
{
v7 = (nlohmann::json_abi_v3_11_3::detail::exception *)__cxa_allocate_exception(0x20uLL);
v9[0] = &v10;
v8 = strlen(a2);
std::string::_M_construct<char const*>((long long)v9, a2, (long long)&a2[v8]);
nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[6],std::string,char const(&)[12]>(
(long long)v11,
(long long)"key '",
v9,
(long long)"' not found");
ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_(
v7,
403,
v11);
__cxa_throw(
v7,
(struct type_info *)&`typeinfo for'nlohmann::json_abi_v3_11_3::detail::out_of_range,
(void (*)(void *))nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
return v4 + 32;
}
| _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA11_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
SUB RSP,0x40
MOV R14,RDI
CMP byte ptr [RDI],0x1
JNZ 0x0019d017
MOV R15,RSI
MOV R12,qword ptr [R14 + 0x8]
MOV RBX,qword ptr [R12]
MOV RAX,qword ptr [R12 + 0x8]
CMP RBX,RAX
JZ 0x0019d001
LAB_0019cfd7:
MOV RDI,RBX
MOV RSI,R15
CALL 0x001191d0
TEST EAX,EAX
JZ 0x0019cff6
ADD RBX,0x30
MOV RAX,qword ptr [R12 + 0x8]
CMP RBX,RAX
JNZ 0x0019cfd7
JMP 0x0019cff9
LAB_0019cff6:
MOV RAX,RBX
LAB_0019cff9:
MOV RCX,qword ptr [R14 + 0x8]
MOV RBX,qword ptr [RCX + 0x8]
LAB_0019d001:
CMP RAX,RBX
JZ 0x0019d075
ADD RAX,0x20
ADD RSP,0x40
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
LAB_0019d017:
MOV EDI,0x20
CALL 0x001193b0
MOV RBX,RAX
MOV RDI,R14
CALL 0x001298a8
MOV RDX,RSP
MOV qword ptr [RDX],RAX
LAB_0019d032:
LEA RSI,[0x1b134c]
LEA RDI,[RSP + 0x20]
CALL 0x00132d04
MOV BPL,0x1
LAB_0019d046:
LEA RDX,[RSP + 0x20]
MOV RDI,RBX
MOV ESI,0x130
MOV RCX,R14
CALL 0x00129654
XOR EBP,EBP
LEA RSI,[0x1e5ee0]
LEA RDX,[0x123da8]
MOV RDI,RBX
CALL 0x00119da0
LAB_0019d075:
MOV EDI,0x20
CALL 0x001193b0
MOV RBX,RAX
LEA R12,[RSP + 0x10]
MOV qword ptr [R12 + -0x10],R12
MOV RDI,R15
CALL 0x00119360
LEA RDX,[RAX + R15*0x1]
LAB_0019d098:
MOV RDI,RSP
MOV RSI,R15
CALL 0x00120bbe
LAB_0019d0a3:
LEA RSI,[0x1b148f]
LEA RCX,[0x1b1495]
LEA RDI,[RSP + 0x20]
MOV RDX,RSP
CALL 0x00135249
MOV BPL,0x1
LAB_0019d0c1:
LEA RDX,[RSP + 0x20]
MOV RDI,RBX
MOV ESI,0x193
MOV RCX,R14
CALL 0x0013b78e
XOR EBP,EBP
LEA RSI,[0x1e5e60]
LEA RDX,[0x123da8]
MOV RDI,RBX
CALL 0x00119da0
|
char * _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE2atIRA11_KcTnNSt9enable_ifIXsr6detail32is_usable_as_basic_json_key_typeISD_T_EE5valueEiE4typeELi0EEERKSD_OSJ_
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*param_1,char *param_2)
{
long *plVar1;
int iVar2;
char *pcVar3;
int8 uVar4;
size_t sVar5;
char *pcVar6;
char *local_68 [2];
char local_58 [16];
detail local_48 [32];
if (*param_1 !=
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x1) {
uVar4 = __cxa_allocate_exception(0x20);
local_68[0] = (char *)nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::type_name(param_1);
/* try { // try from 0019d032 to 0019d042 has its CatchHandler @ 0019d15e */
nlohmann::json_abi_v3_11_3::detail::concat<std::__cxx11::string,char_const(&)[22],char_const*>
(local_48,"cannot use at() with ",local_68);
/* try { // try from 0019d046 to 0019d072 has its CatchHandler @ 0019d139 */
_ZN8nlohmann16json_abi_v3_11_36detail10type_error6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar4,0x130,local_48,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::type_error::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
plVar1 = *(long **)(param_1 + 8);
pcVar6 = (char *)*plVar1;
pcVar3 = (char *)plVar1[1];
if (pcVar6 != pcVar3) {
do {
pcVar3 = pcVar6;
iVar2 = std::__cxx11::string::compare(pcVar3);
if (iVar2 == 0) break;
pcVar6 = pcVar3 + 0x30;
pcVar3 = (char *)plVar1[1];
} while (pcVar6 != pcVar3);
pcVar6 = *(char **)(*(long *)(param_1 + 8) + 8);
}
if (pcVar3 == pcVar6) {
uVar4 = __cxa_allocate_exception(0x20);
local_68[0] = local_58;
sVar5 = strlen(param_2);
/* try { // try from 0019d098 to 0019d0a2 has its CatchHandler @ 0019d137 */
std::__cxx11::string::_M_construct<char_const*>(local_68,param_2,param_2 + sVar5);
/* try { // try from 0019d0a3 to 0019d0bd has its CatchHandler @ 0019d11c */
nlohmann::json_abi_v3_11_3::detail::
concat<std::__cxx11::string,char_const(&)[6],std::__cxx11::string,char_const(&)[12]>
(local_48,"key \'",(string *)local_68,"\' not found");
/* try { // try from 0019d0c1 to 0019d0ed has its CatchHandler @ 0019d0ee */
_ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SK_
(uVar4,0x193,local_48,param_1);
/* WARNING: Subroutine does not return */
__cxa_throw(uVar4,&nlohmann::json_abi_v3_11_3::detail::out_of_range::typeinfo,
nlohmann::json_abi_v3_11_3::detail::exception::~exception);
}
return pcVar3 + 0x20;
}
| |
28,225 | ma_update_block_record | eloqsql/storage/maria/ma_blockrec.c | my_bool _ma_update_block_record(MARIA_HA *info, MARIA_RECORD_POS record_pos,
const uchar *orig_rec, const uchar *new_rec)
{
return _ma_update_block_record2(info, record_pos, orig_rec, new_rec,
LSN_ERROR);
} | O3 | c | ma_update_block_record:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rcx, %r8
movq %rdx, -0x58(%rbp)
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x140(%rdi), %rdx
movq (%rdi), %r15
movl 0x7bc(%r15), %r14d
movl 0xb0(%rdi), %eax
movl 0x170(%rdi), %ecx
movq %rcx, -0x68(%rbp)
movl %eax, 0x170(%rdi)
movq %r8, -0x60(%rbp)
movq %r8, %rsi
movq %rdx, -0x38(%rbp)
callq 0x5c1eb
movq %r13, %r12
shrq $0x8, %r12
movq %rbx, %rdi
movl $0x1, %esi
callq 0x412b9
movq 0x600(%r15), %rdi
leaq 0x470(%rbx), %rsi
movq %r15, -0x78(%rbp)
movl 0x7d4(%r15), %r9d
leaq -0xd8(%rbp), %r15
movq %r12, -0x70(%rbp)
movq %r12, %rdx
xorl %ecx, %ecx
xorl %r8d, %r8d
pushq %r15
pushq $0x4
callq 0x32206
addq $0x10, %rsp
movq %rax, %r12
movl $0x6, 0x8(%r15)
testq %rax, %rax
setne 0x10(%r15)
leaq 0x2e8(%rbx), %rdi
movq %r15, %rsi
callq 0x91792
testq %r12, %r12
je 0x5cd3b
leaq 0x80(%rbx), %rcx
movzwl 0xa(%r12), %esi
movl %esi, -0x2c(%rbp)
movzbl %r13b, %r13d
addq %r12, %r14
leal (,%r13,4), %eax
subq %rax, %r14
leaq -0x8(%r14), %r15
movzwl -0x6(%r14), %eax
addl %esi, %eax
cmpq %rax, 0x1d0(%rbx)
jbe 0x5cd4c
movq %rsi, -0x50(%rbp)
movq %r15, -0x80(%rbp)
movq %r12, -0x48(%rbp)
movq %rcx, %r12
movq 0xa8(%rbx), %rsi
cmpq $0x0, (%rsi)
je 0x5cc4c
movq %rbx, %rdi
callq 0x5d330
testb %al, %al
jne 0x5cd9a
cmpl $0x0, 0x12c(%rbx)
je 0x5cc68
movq %rbx, %rdi
movq %r12, %rsi
callq 0x5d397
testb %al, %al
jne 0x5cd9a
movzwl -0x6(%r14), %r15d
movq -0x50(%rbp), %rax
leal (%r15,%rax), %ecx
movq %rbx, %rdi
movq -0x38(%rbp), %rsi
movq -0x70(%rbp), %rdx
movq %r12, %r8
callq 0x40948
testb %al, %al
jne 0x5cd9a
cmpl %r15d, 0x1f8(%rbx)
movq -0x50(%rbp), %rcx
ja 0x5cca9
movl %r15d, %eax
cmpq %rax, 0x1d0(%rbx)
ja 0x5ccd7
movq 0x8(%rbx), %rax
movq 0x80(%rax), %r8
movq -0x78(%rbp), %rdi
movl 0x3b8(%rdi), %r9d
movq -0x48(%rbp), %rsi
movl %r13d, %edx
movl $0x1, %ecx
callq 0x5bcf0
movzwl -0x6(%r14), %r15d
xorl %ecx, %ecx
leaq -0xa8(%rbp), %rax
movq -0x48(%rbp), %rdx
movq %rdx, (%rax)
movl %r13d, 0x1c(%rax)
addl %r15d, %ecx
movl %ecx, 0x20(%rax)
movq -0x80(%rbp), %rcx
movq %rcx, 0x10(%rax)
movzwl (%rcx), %ecx
addq %rcx, %rdx
movq %rdx, 0x8(%rax)
movl %r15d, 0x18(%rax)
subq $0x8, %rsp
movq %rbx, %rdi
movq -0x58(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq %r12, %r8
movl $0x1, %r9d
pushq -0x68(%rbp)
pushq $0x1
pushq %rax
callq 0x60e6e
addq $0x20, %rsp
testb %al, %al
jne 0x5cd9a
xorl %eax, %eax
jmp 0x5cdcb
callq 0xa16ee
movl (%rax), %esi
movq %rbx, %rdi
callq 0x36618
jmp 0x5cd9a
movq %rcx, %r14
movq -0x78(%rbp), %rdi
addq $0xa10, %rdi # imm = 0xA10
callq 0x3fe4e
movb %al, -0xab(%rbp)
movl 0x1d0(%rbx), %r8d
subq $0x8, %rsp
leaq -0x3c(%rbp), %rax
leaq -0x40(%rbp), %r10
leaq -0x2c(%rbp), %r9
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
movl %r13d, %ecx
pushq $0x1
pushq %rax
pushq %r10
callq 0x5f25e
addq $0x20, %rsp
testb %al, %al
je 0x5cddd
cmpl $0x0, 0x644(%rbx)
je 0x5cdb0
movq %rbx, %rdi
movl $0xffffffff, %esi # imm = 0xFFFFFFFF
callq 0x412b9
movq %rbx, %rdi
xorl %esi, %esi
callq 0x593c4
movq 0x8(%rbx), %rax
movq $0x0, 0x90(%rax)
movb $0x1, %al
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, -0xa8(%rbp)
movl %r13d, -0x8c(%rbp)
movl -0x2c(%rbp), %eax
movl %eax, -0x88(%rbp)
movq %r15, -0x98(%rbp)
movl -0x40(%rbp), %ecx
addq %rcx, %r12
movq %r12, -0xa0(%rbp)
movl -0x3c(%rbp), %ecx
movl %ecx, -0x90(%rbp)
leaq -0xc0(%rbp), %rcx
movq %rcx, 0x80(%rbx)
movl $0x1, %edx
movl %edx, 0x88(%rbx)
movq -0x70(%rbp), %rsi
movq %rsi, (%rcx)
movl %edx, 0x10(%rcx)
movb $0x3, 0x14(%rcx)
movl %eax, 0xc(%rcx)
movq 0xa8(%rbx), %rsi
cmpq $0x0, (%rsi)
je 0x5ce58
movq %rbx, %rdi
callq 0x5d330
testb %al, %al
jne 0x5cd9a
cmpl $0x0, 0x12c(%rbx)
je 0x5ce74
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5d397
testb %al, %al
jne 0x5cd9a
subq $0x8, %rsp
leaq -0xa8(%rbp), %rax
movq %rbx, %rdi
movq -0x58(%rbp), %rsi
movq -0x60(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq %r14, %r8
movl $0x1, %r9d
pushq -0x68(%rbp)
pushq $0x1
pushq %rax
callq 0x60e6e
addq $0x20, %rsp
andb $-0x3, 0x624(%rbx)
jmp 0x5cdcb
| _ma_update_block_record:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov r8, rcx
mov [rbp+var_58], rdx
mov r13, rsi
mov rbx, rdi
lea rdx, [rdi+140h]
mov r15, [rdi]
mov r14d, [r15+7BCh]
mov eax, [rdi+0B0h]
mov ecx, [rdi+170h]
mov [rbp+var_68], rcx
mov [rdi+170h], eax
mov [rbp+var_60], r8
mov rsi, r8
mov [rbp+var_38], rdx
call calc_record_size
mov r12, r13
shr r12, 8
mov rdi, rbx
mov esi, 1
call _ma_bitmap_flushable
mov rdi, [r15+600h]
lea rsi, [rbx+470h]
mov [rbp+var_78], r15
mov r9d, [r15+7D4h]
lea r15, [rbp+var_D8]
mov [rbp+var_70], r12
mov rdx, r12
xor ecx, ecx
xor r8d, r8d
push r15
push 4
call pagecache_read
add rsp, 10h
mov r12, rax
mov dword ptr [r15+8], 6
test rax, rax
setnz byte ptr [r15+10h]
lea rdi, [rbx+2E8h]
mov rsi, r15
call insert_dynamic
test r12, r12
jz loc_5CD3B
lea rcx, [rbx+80h]
movzx esi, word ptr [r12+0Ah]
mov [rbp+var_2C], esi
movzx r13d, r13b
add r14, r12
lea eax, ds:0[r13*4]
sub r14, rax
lea r15, [r14-8]
movzx eax, word ptr [r14-6]
add eax, esi
cmp [rbx+1D0h], rax
jbe loc_5CD4C
mov [rbp+var_50], rsi
mov [rbp+var_80], r15
mov [rbp+var_48], r12
mov r12, rcx
mov rsi, [rbx+0A8h]
cmp qword ptr [rsi], 0
jz short loc_5CC4C
mov rdi, rbx
call delete_tails
test al, al
jnz loc_5CD9A
loc_5CC4C:
cmp dword ptr [rbx+12Ch], 0
jz short loc_5CC68
mov rdi, rbx
mov rsi, r12
call free_full_pages
test al, al
jnz loc_5CD9A
loc_5CC68:
movzx r15d, word ptr [r14-6]
mov rax, [rbp+var_50]
lea ecx, [r15+rax]
mov rdi, rbx
mov rsi, [rbp+var_38]
mov rdx, [rbp+var_70]
mov r8, r12
call _ma_bitmap_find_new_place
test al, al
jnz loc_5CD9A
cmp [rbx+1F8h], r15d
mov rcx, [rbp+var_50]
ja short loc_5CCA9
mov eax, r15d
cmp [rbx+1D0h], rax
ja short loc_5CCD7
loc_5CCA9:
mov rax, [rbx+8]
mov r8, [rax+80h]
mov rdi, [rbp+var_78]
mov r9d, [rdi+3B8h]
mov rsi, [rbp+var_48]
mov edx, r13d
mov ecx, 1
call _ma_compact_block_page
movzx r15d, word ptr [r14-6]
xor ecx, ecx
loc_5CCD7:
lea rax, [rbp+var_A8]
mov rdx, [rbp+var_48]
mov [rax], rdx
mov [rax+1Ch], r13d
add ecx, r15d
mov [rax+20h], ecx
mov rcx, [rbp+var_80]
mov [rax+10h], rcx
movzx ecx, word ptr [rcx]
add rdx, rcx
mov [rax+8], rdx
mov [rax+18h], r15d
sub rsp, 8
mov rdi, rbx
mov rsi, [rbp+var_58]
mov rdx, [rbp+var_60]
mov rcx, [rbp+var_38]
mov r8, r12
mov r9d, 1
push [rbp+var_68]
push 1
push rax
call write_block_record
add rsp, 20h
test al, al
jnz short loc_5CD9A
xor eax, eax
jmp loc_5CDCB
loc_5CD3B:
call _my_thread_var
mov esi, [rax]
mov rdi, rbx
call _ma_set_fatal_error
jmp short loc_5CD9A
loc_5CD4C:
mov r14, rcx
mov rdi, [rbp+var_78]
add rdi, 0A10h
call _ma_free_size_to_head_pattern
mov [rbp+var_AB], al
mov r8d, [rbx+1D0h]
sub rsp, 8
lea rax, [rbp+var_3C]
lea r10, [rbp+var_40]
lea r9, [rbp+var_2C]
mov rdi, rbx
mov rsi, r12
mov rdx, r15
mov ecx, r13d
push 1
push rax
push r10
call extend_area_on_page
add rsp, 20h
test al, al
jz short loc_5CDDD
loc_5CD9A:
cmp dword ptr [rbx+644h], 0
jz short loc_5CDB0
mov rdi, rbx
mov esi, 0FFFFFFFFh
call _ma_bitmap_flushable
loc_5CDB0:
mov rdi, rbx
xor esi, esi
call _ma_unpin_all_pages
mov rax, [rbx+8]
mov qword ptr [rax+90h], 0
mov al, 1
loc_5CDCB:
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_5CDDD:
mov [rbp+var_A8], r12
mov [rbp+var_8C], r13d
mov eax, [rbp+var_2C]
mov [rbp+var_88], eax
mov [rbp+var_98], r15
mov ecx, [rbp+var_40]
add r12, rcx
mov [rbp+var_A0], r12
mov ecx, [rbp+var_3C]
mov [rbp+var_90], ecx
lea rcx, [rbp+var_C0]
mov [rbx+80h], rcx
mov edx, 1
mov [rbx+88h], edx
mov rsi, [rbp+var_70]
mov [rcx], rsi
mov [rcx+10h], edx
mov byte ptr [rcx+14h], 3
mov [rcx+0Ch], eax
mov rsi, [rbx+0A8h]
cmp qword ptr [rsi], 0
jz short loc_5CE58
mov rdi, rbx
call delete_tails
test al, al
jnz loc_5CD9A
loc_5CE58:
cmp dword ptr [rbx+12Ch], 0
jz short loc_5CE74
mov rdi, rbx
mov rsi, r14
call free_full_pages
test al, al
jnz loc_5CD9A
loc_5CE74:
sub rsp, 8
lea rax, [rbp+var_A8]
mov rdi, rbx
mov rsi, [rbp+var_58]
mov rdx, [rbp+var_60]
mov rcx, [rbp+var_38]
mov r8, r14
mov r9d, 1
push [rbp+var_68]
push 1
push rax
call write_block_record
add rsp, 20h
and byte ptr [rbx+624h], 0FDh
jmp loc_5CDCB
| char ma_update_block_record(long long *a1, unsigned long long a2, long long a3, long long a4)
{
unsigned __int8 v4; // r13
long long v6; // r15
long long v7; // r14
int v8; // eax
long long v9; // rdi
int v10; // r9d
long long v11; // r12
long long v12; // rsi
long long v13; // r14
unsigned __int16 *v14; // r15
long long v15; // r12
unsigned int v16; // r15d
int v17; // ecx
char result; // al
unsigned int *v19; // rax
long long v20; // rdx
long long v21; // rcx
long long v22; // r8
int v23; // r9d
_DWORD *v24; // r14
int v25; // eax
long long v26; // [rsp+8h] [rbp-D8h] BYREF
int v27; // [rsp+10h] [rbp-D0h]
bool v28; // [rsp+18h] [rbp-C8h]
unsigned long long v29; // [rsp+20h] [rbp-C0h] BYREF
int v30; // [rsp+2Ch] [rbp-B4h]
int v31; // [rsp+30h] [rbp-B0h]
char v32; // [rsp+34h] [rbp-ACh]
char v33; // [rsp+35h] [rbp-ABh]
long long v34; // [rsp+38h] [rbp-A8h] BYREF
long long v35; // [rsp+40h] [rbp-A0h]
unsigned __int16 *v36; // [rsp+48h] [rbp-98h]
unsigned int v37; // [rsp+50h] [rbp-90h]
int v38; // [rsp+54h] [rbp-8Ch]
int v39; // [rsp+58h] [rbp-88h]
unsigned __int16 *v40; // [rsp+60h] [rbp-80h]
long long v41; // [rsp+68h] [rbp-78h]
unsigned long long v42; // [rsp+70h] [rbp-70h]
long long v43; // [rsp+78h] [rbp-68h]
long long v44; // [rsp+80h] [rbp-60h]
long long v45; // [rsp+88h] [rbp-58h]
long long v46; // [rsp+90h] [rbp-50h]
long long v47; // [rsp+98h] [rbp-48h]
unsigned int v48; // [rsp+A0h] [rbp-40h] BYREF
unsigned int v49; // [rsp+A4h] [rbp-3Ch] BYREF
_DWORD *v50; // [rsp+A8h] [rbp-38h]
int v51; // [rsp+B4h] [rbp-2Ch] BYREF
v45 = a3;
v4 = a2;
v6 = *a1;
v7 = *(unsigned int *)(*a1 + 1980);
v8 = *((_DWORD *)a1 + 44);
v43 = *((unsigned int *)a1 + 92);
*((_DWORD *)a1 + 92) = v8;
v44 = a4;
v50 = a1 + 40;
calc_record_size(a1, a4, (long long)(a1 + 40));
ma_bitmap_flushable(a1, 1);
v9 = *(_QWORD *)(v6 + 1536);
v41 = v6;
v10 = *(_DWORD *)(v6 + 2004);
v42 = a2 >> 8;
v11 = pagecache_read(v9, (long long)(a1 + 142), a2 >> 8, 0, 0LL, v10, 4u, &v26);
v27 = 6;
v28 = v11 != 0;
insert_dynamic(a1 + 93, &v26);
if ( v11 )
{
v12 = *(unsigned __int16 *)(v11 + 10);
v51 = v12;
v13 = v11 + v7 - 4 * (unsigned int)v4;
v14 = (unsigned __int16 *)(v13 - 8);
if ( a1[58] <= (unsigned long long)((unsigned int)v12 + *(unsigned __int16 *)(v13 - 6)) )
{
v24 = a1 + 16;
v33 = ma_free_size_to_head_pattern((_DWORD *)(v41 + 2576), v12);
if ( !(unsigned __int8)extend_area_on_page(
(_DWORD)a1,
v11,
(_DWORD)v14,
v4,
*((_DWORD *)a1 + 116),
(unsigned int)&v51,
(long long)&v48,
(long long)&v49,
1) )
{
v34 = v11;
v38 = v4;
v25 = v51;
v39 = v51;
v36 = v14;
v35 = v48 + v11;
v37 = v49;
a1[16] = (long long)&v29;
*((_DWORD *)a1 + 34) = 1;
v29 = v42;
v31 = 1;
v32 = 3;
v30 = v25;
if ( (!*(_QWORD *)a1[21] || !(unsigned __int8)delete_tails(a1))
&& (!*((_DWORD *)a1 + 75) || !(unsigned __int8)free_full_pages(a1, v24)) )
{
result = write_block_record((_DWORD)a1, v45, v44, (_DWORD)v50, (_DWORD)v24, 1, (long long)&v34, 1LL, v43);
*((_BYTE *)a1 + 1572) &= ~2u;
return result;
}
}
}
else
{
v46 = v12;
v40 = (unsigned __int16 *)(v13 - 8);
v47 = v11;
v15 = (long long)(a1 + 16);
if ( (!*(_QWORD *)a1[21] || !(unsigned __int8)delete_tails(a1))
&& (!*((_DWORD *)a1 + 75) || !(unsigned __int8)free_full_pages(a1, v15)) )
{
v16 = *(unsigned __int16 *)(v13 - 6);
if ( !(unsigned __int8)ma_bitmap_find_new_place((long long)a1, (long long)v50, v42, v16 + (unsigned int)v46, v15) )
{
v17 = v46;
if ( *((_DWORD *)a1 + 126) > v16 || a1[58] <= (unsigned long long)v16 )
{
ma_compact_block_page(v41, v47, v4, 1, *(_QWORD *)(a1[1] + 128), *(_DWORD *)(v41 + 952));
v16 = *(unsigned __int16 *)(v13 - 6);
v17 = 0;
}
v34 = v47;
v38 = v4;
v39 = v16 + v17;
v36 = v40;
v35 = *v40 + v47;
v37 = v16;
if ( !(unsigned __int8)write_block_record((_DWORD)a1, v45, v44, (_DWORD)v50, v15, 1, (long long)&v34, 1LL, v43) )
return 0;
}
}
}
}
else
{
v19 = (unsigned int *)my_thread_var(a1 + 93, (const char *)&v26);
ma_set_fatal_error(a1, *v19, v20, v21, v22, v23);
}
if ( *((_DWORD *)a1 + 401) )
ma_bitmap_flushable(a1, -1);
ma_unpin_all_pages((long long)a1, 0LL);
*(_QWORD *)(a1[1] + 144) = 0LL;
return 1;
}
| _ma_update_block_record:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV R8,RCX
MOV qword ptr [RBP + -0x58],RDX
MOV R13,RSI
MOV RBX,RDI
LEA RDX,[RDI + 0x140]
MOV R15,qword ptr [RDI]
MOV R14D,dword ptr [R15 + 0x7bc]
MOV EAX,dword ptr [RDI + 0xb0]
MOV ECX,dword ptr [RDI + 0x170]
MOV qword ptr [RBP + -0x68],RCX
MOV dword ptr [RDI + 0x170],EAX
MOV qword ptr [RBP + -0x60],R8
MOV RSI,R8
MOV qword ptr [RBP + -0x38],RDX
CALL 0x0015c1eb
MOV R12,R13
SHR R12,0x8
MOV RDI,RBX
MOV ESI,0x1
CALL 0x001412b9
MOV RDI,qword ptr [R15 + 0x600]
LEA RSI,[RBX + 0x470]
MOV qword ptr [RBP + -0x78],R15
MOV R9D,dword ptr [R15 + 0x7d4]
LEA R15,[RBP + -0xd8]
MOV qword ptr [RBP + -0x70],R12
MOV RDX,R12
XOR ECX,ECX
XOR R8D,R8D
PUSH R15
PUSH 0x4
CALL 0x00132206
ADD RSP,0x10
MOV R12,RAX
MOV dword ptr [R15 + 0x8],0x6
TEST RAX,RAX
SETNZ byte ptr [R15 + 0x10]
LEA RDI,[RBX + 0x2e8]
MOV RSI,R15
CALL 0x00191792
TEST R12,R12
JZ 0x0015cd3b
LEA RCX,[RBX + 0x80]
MOVZX ESI,word ptr [R12 + 0xa]
MOV dword ptr [RBP + -0x2c],ESI
MOVZX R13D,R13B
ADD R14,R12
LEA EAX,[R13*0x4]
SUB R14,RAX
LEA R15,[R14 + -0x8]
MOVZX EAX,word ptr [R14 + -0x6]
ADD EAX,ESI
CMP qword ptr [RBX + 0x1d0],RAX
JBE 0x0015cd4c
MOV qword ptr [RBP + -0x50],RSI
MOV qword ptr [RBP + -0x80],R15
MOV qword ptr [RBP + -0x48],R12
MOV R12,RCX
MOV RSI,qword ptr [RBX + 0xa8]
CMP qword ptr [RSI],0x0
JZ 0x0015cc4c
MOV RDI,RBX
CALL 0x0015d330
TEST AL,AL
JNZ 0x0015cd9a
LAB_0015cc4c:
CMP dword ptr [RBX + 0x12c],0x0
JZ 0x0015cc68
MOV RDI,RBX
MOV RSI,R12
CALL 0x0015d397
TEST AL,AL
JNZ 0x0015cd9a
LAB_0015cc68:
MOVZX R15D,word ptr [R14 + -0x6]
MOV RAX,qword ptr [RBP + -0x50]
LEA ECX,[R15 + RAX*0x1]
MOV RDI,RBX
MOV RSI,qword ptr [RBP + -0x38]
MOV RDX,qword ptr [RBP + -0x70]
MOV R8,R12
CALL 0x00140948
TEST AL,AL
JNZ 0x0015cd9a
CMP dword ptr [RBX + 0x1f8],R15D
MOV RCX,qword ptr [RBP + -0x50]
JA 0x0015cca9
MOV EAX,R15D
CMP qword ptr [RBX + 0x1d0],RAX
JA 0x0015ccd7
LAB_0015cca9:
MOV RAX,qword ptr [RBX + 0x8]
MOV R8,qword ptr [RAX + 0x80]
MOV RDI,qword ptr [RBP + -0x78]
MOV R9D,dword ptr [RDI + 0x3b8]
MOV RSI,qword ptr [RBP + -0x48]
MOV EDX,R13D
MOV ECX,0x1
CALL 0x0015bcf0
MOVZX R15D,word ptr [R14 + -0x6]
XOR ECX,ECX
LAB_0015ccd7:
LEA RAX,[RBP + -0xa8]
MOV RDX,qword ptr [RBP + -0x48]
MOV qword ptr [RAX],RDX
MOV dword ptr [RAX + 0x1c],R13D
ADD ECX,R15D
MOV dword ptr [RAX + 0x20],ECX
MOV RCX,qword ptr [RBP + -0x80]
MOV qword ptr [RAX + 0x10],RCX
MOVZX ECX,word ptr [RCX]
ADD RDX,RCX
MOV qword ptr [RAX + 0x8],RDX
MOV dword ptr [RAX + 0x18],R15D
SUB RSP,0x8
MOV RDI,RBX
MOV RSI,qword ptr [RBP + -0x58]
MOV RDX,qword ptr [RBP + -0x60]
MOV RCX,qword ptr [RBP + -0x38]
MOV R8,R12
MOV R9D,0x1
PUSH qword ptr [RBP + -0x68]
PUSH 0x1
PUSH RAX
CALL 0x00160e6e
ADD RSP,0x20
TEST AL,AL
JNZ 0x0015cd9a
XOR EAX,EAX
JMP 0x0015cdcb
LAB_0015cd3b:
CALL 0x001a16ee
MOV ESI,dword ptr [RAX]
MOV RDI,RBX
CALL 0x00136618
JMP 0x0015cd9a
LAB_0015cd4c:
MOV R14,RCX
MOV RDI,qword ptr [RBP + -0x78]
ADD RDI,0xa10
CALL 0x0013fe4e
MOV byte ptr [RBP + -0xab],AL
MOV R8D,dword ptr [RBX + 0x1d0]
SUB RSP,0x8
LEA RAX,[RBP + -0x3c]
LEA R10,[RBP + -0x40]
LEA R9,[RBP + -0x2c]
MOV RDI,RBX
MOV RSI,R12
MOV RDX,R15
MOV ECX,R13D
PUSH 0x1
PUSH RAX
PUSH R10
CALL 0x0015f25e
ADD RSP,0x20
TEST AL,AL
JZ 0x0015cddd
LAB_0015cd9a:
CMP dword ptr [RBX + 0x644],0x0
JZ 0x0015cdb0
MOV RDI,RBX
MOV ESI,0xffffffff
CALL 0x001412b9
LAB_0015cdb0:
MOV RDI,RBX
XOR ESI,ESI
CALL 0x001593c4
MOV RAX,qword ptr [RBX + 0x8]
MOV qword ptr [RAX + 0x90],0x0
MOV AL,0x1
LAB_0015cdcb:
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0015cddd:
MOV qword ptr [RBP + -0xa8],R12
MOV dword ptr [RBP + -0x8c],R13D
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x88],EAX
MOV qword ptr [RBP + -0x98],R15
MOV ECX,dword ptr [RBP + -0x40]
ADD R12,RCX
MOV qword ptr [RBP + -0xa0],R12
MOV ECX,dword ptr [RBP + -0x3c]
MOV dword ptr [RBP + -0x90],ECX
LEA RCX,[RBP + -0xc0]
MOV qword ptr [RBX + 0x80],RCX
MOV EDX,0x1
MOV dword ptr [RBX + 0x88],EDX
MOV RSI,qword ptr [RBP + -0x70]
MOV qword ptr [RCX],RSI
MOV dword ptr [RCX + 0x10],EDX
MOV byte ptr [RCX + 0x14],0x3
MOV dword ptr [RCX + 0xc],EAX
MOV RSI,qword ptr [RBX + 0xa8]
CMP qword ptr [RSI],0x0
JZ 0x0015ce58
MOV RDI,RBX
CALL 0x0015d330
TEST AL,AL
JNZ 0x0015cd9a
LAB_0015ce58:
CMP dword ptr [RBX + 0x12c],0x0
JZ 0x0015ce74
MOV RDI,RBX
MOV RSI,R14
CALL 0x0015d397
TEST AL,AL
JNZ 0x0015cd9a
LAB_0015ce74:
SUB RSP,0x8
LEA RAX,[RBP + -0xa8]
MOV RDI,RBX
MOV RSI,qword ptr [RBP + -0x58]
MOV RDX,qword ptr [RBP + -0x60]
MOV RCX,qword ptr [RBP + -0x38]
MOV R8,R14
MOV R9D,0x1
PUSH qword ptr [RBP + -0x68]
PUSH 0x1
PUSH RAX
CALL 0x00160e6e
ADD RSP,0x20
AND byte ptr [RBX + 0x624],0xfd
JMP 0x0015cdcb
|
int8
_ma_update_block_record(long *param_1,ulong param_2,int8 param_3,int8 param_4)
{
ushort *puVar1;
long *plVar2;
ushort uVar3;
uint uVar4;
int iVar5;
char cVar6;
long lVar7;
int4 *puVar8;
int8 uVar9;
int iVar10;
long lVar11;
int1 local_e0 [8];
int4 local_d8;
int1 local_d0;
ulong local_c8;
uint local_bc;
int4 local_b8;
int1 local_b4;
int1 local_b3;
long local_b0;
long local_a8;
ushort *local_a0;
uint local_98;
int local_94;
uint local_90;
ushort *local_88;
long local_80;
ulong local_78;
ulong local_70;
int8 local_68;
int8 local_60;
ulong local_58;
long local_50;
uint local_48;
uint local_44;
long *local_40;
uint local_34;
local_40 = param_1 + 0x28;
lVar7 = *param_1;
uVar4 = *(uint *)(lVar7 + 0x7bc);
local_70 = (ulong)*(uint *)(param_1 + 0x2e);
*(int *)(param_1 + 0x2e) = (int)param_1[0x16];
local_68 = param_4;
local_60 = param_3;
calc_record_size(param_1,param_4);
_ma_bitmap_flushable(param_1,1);
local_80 = lVar7;
local_78 = param_2 >> 8;
lVar7 = pagecache_read(*(int8 *)(lVar7 + 0x600),param_1 + 0x8e,param_2 >> 8,0,0,
*(int4 *)(lVar7 + 0x7d4),4,local_e0);
local_d8 = 6;
local_d0 = lVar7 != 0;
insert_dynamic(param_1 + 0x5d,local_e0);
if (lVar7 == 0) {
puVar8 = (int4 *)_my_thread_var();
_ma_set_fatal_error(param_1,*puVar8);
}
else {
plVar2 = param_1 + 0x10;
uVar3 = *(ushort *)(lVar7 + 10);
local_34 = (uint)uVar3;
param_2 = param_2 & 0xff;
iVar5 = (int)param_2;
lVar11 = ((ulong)uVar4 + lVar7) - (ulong)(uint)(iVar5 * 4);
puVar1 = (ushort *)(lVar11 + -8);
if ((ulong)(*(ushort *)(lVar11 + -6) + local_34) < (ulong)param_1[0x3a]) {
local_88 = puVar1;
local_58 = (ulong)uVar3;
local_50 = lVar7;
if (((*(long *)param_1[0x15] == 0) || (cVar6 = delete_tails(param_1), cVar6 == '\0')) &&
((*(int *)((long)param_1 + 300) == 0 ||
(cVar6 = free_full_pages(param_1,plVar2), cVar6 == '\0')))) {
uVar3 = *(ushort *)(lVar11 + -6);
cVar6 = _ma_bitmap_find_new_place
(param_1,local_40,local_78,(uint)uVar3 + (int)local_58,plVar2);
if (cVar6 == '\0') {
iVar10 = (int)local_58;
if (((uint)uVar3 < *(uint *)(param_1 + 0x3f)) || ((ulong)param_1[0x3a] <= (ulong)uVar3)) {
_ma_compact_block_page
(local_80,local_50,param_2,1,*(int8 *)(param_1[1] + 0x80),
*(int4 *)(local_80 + 0x3b8));
uVar3 = *(ushort *)(lVar11 + -6);
iVar10 = 0;
}
local_98 = (uint)uVar3;
local_b0 = local_50;
local_90 = iVar10 + local_98;
local_a0 = local_88;
local_a8 = local_50 + (ulong)*local_88;
local_94 = iVar5;
cVar6 = write_block_record(param_1,local_60,local_68,local_40,plVar2,1,&local_b0,1,
local_70);
if (cVar6 == '\0') {
return 0;
}
}
}
}
else {
local_b3 = _ma_free_size_to_head_pattern(local_80 + 0xa10);
cVar6 = extend_area_on_page(param_1,lVar7,puVar1,param_2,(int)param_1[0x3a],&local_34,
&local_48,&local_44,1);
if (cVar6 == '\0') {
local_90 = local_34;
local_a8 = lVar7 + (ulong)local_48;
local_98 = local_44;
param_1[0x10] = (long)&local_c8;
*(int4 *)(param_1 + 0x11) = 1;
local_c8 = local_78;
local_b8 = 1;
local_b4 = 3;
local_bc = local_34;
local_b0 = lVar7;
local_a0 = puVar1;
local_94 = iVar5;
if (((*(long *)param_1[0x15] == 0) || (cVar6 = delete_tails(param_1), cVar6 == '\0')) &&
((*(int *)((long)param_1 + 300) == 0 ||
(cVar6 = free_full_pages(param_1,plVar2), cVar6 == '\0')))) {
uVar9 = write_block_record(param_1,local_60,local_68,local_40,plVar2,1,&local_b0,1,
local_70);
*(byte *)((long)param_1 + 0x624) = *(byte *)((long)param_1 + 0x624) & 0xfd;
return uVar9;
}
}
}
}
if (*(int *)((long)param_1 + 0x644) != 0) {
_ma_bitmap_flushable(param_1,0xffffffff);
}
_ma_unpin_all_pages(param_1,0);
lVar7 = param_1[1];
*(int8 *)(lVar7 + 0x90) = 0;
return CONCAT71((int7)((ulong)lVar7 >> 8),1);
}
| |
28,226 | my_sync_dir_by_file | eloqsql/mysys/my_sync.c | int my_sync_dir_by_file(const char *file_name __attribute__((unused)),
myf my_flags __attribute__((unused)))
{
#ifdef NEED_EXPLICIT_SYNC_DIR
char dir_name[FN_REFLEN];
size_t dir_name_length;
dirname_part(dir_name, file_name, &dir_name_length);
return my_sync_dir(dir_name, my_flags & ~MY_NOSYMLINKS);
#else
return 0;
#endif
} | O0 | c | my_sync_dir_by_file:
pushq %rbp
movq %rsp, %rbp
subq $0x240, %rsp # imm = 0x240
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq %rdi, -0x218(%rbp)
movq %rsi, -0x220(%rbp)
movq -0x218(%rbp), %rsi
leaq -0x210(%rbp), %rdi
movq %rdi, -0x238(%rbp)
leaq -0x228(%rbp), %rdx
callq 0xe2610
movq -0x238(%rbp), %rdi
movq -0x220(%rbp), %rax
andl $0xfffffdff, %eax # imm = 0xFFFFFDFF
movl %eax, %esi
callq 0xfc580
movl %eax, -0x22c(%rbp)
movq %fs:0x28, %rax
movq -0x8(%rbp), %rcx
cmpq %rcx, %rax
jne 0xfc6b8
movl -0x22c(%rbp), %eax
addq $0x240, %rsp # imm = 0x240
popq %rbp
retq
callq 0x2a260
nopl (%rax)
| my_sync_dir_by_file:
push rbp
mov rbp, rsp
sub rsp, 240h
mov rax, fs:28h
mov [rbp+var_8], rax
mov [rbp+var_218], rdi
mov [rbp+var_220], rsi
mov rsi, [rbp+var_218]
lea rdi, [rbp+var_210]
mov [rbp+var_238], rdi
lea rdx, [rbp+var_228]
call dirname_part
mov rdi, [rbp+var_238]
mov rax, [rbp+var_220]
and eax, 0FFFFFDFFh
mov esi, eax
call my_sync_dir
mov [rbp+var_22C], eax
mov rax, fs:28h
mov rcx, [rbp+var_8]
cmp rax, rcx
jnz short loc_FC6B8
mov eax, [rbp+var_22C]
add rsp, 240h
pop rbp
retn
loc_FC6B8:
call ___stack_chk_fail
| long long my_sync_dir_by_file(_BYTE *a1, long long a2)
{
long long v3; // [rsp+18h] [rbp-228h] BYREF
long long v4; // [rsp+20h] [rbp-220h]
_BYTE *v5; // [rsp+28h] [rbp-218h]
_BYTE v6[520]; // [rsp+30h] [rbp-210h] BYREF
unsigned long long v7; // [rsp+238h] [rbp-8h]
v7 = __readfsqword(0x28u);
v5 = a1;
v4 = a2;
dirname_part((long long)v6, a1, &v3);
return (unsigned int)my_sync_dir(v6, (unsigned int)v4 & 0xFFFFFDFF);
}
| my_sync_dir_by_file:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x240
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV qword ptr [RBP + -0x218],RDI
MOV qword ptr [RBP + -0x220],RSI
MOV RSI,qword ptr [RBP + -0x218]
LEA RDI,[RBP + -0x210]
MOV qword ptr [RBP + -0x238],RDI
LEA RDX,[RBP + -0x228]
CALL 0x001e2610
MOV RDI,qword ptr [RBP + -0x238]
MOV RAX,qword ptr [RBP + -0x220]
AND EAX,0xfffffdff
MOV ESI,EAX
CALL 0x001fc580
MOV dword ptr [RBP + -0x22c],EAX
MOV RAX,qword ptr FS:[0x28]
MOV RCX,qword ptr [RBP + -0x8]
CMP RAX,RCX
JNZ 0x001fc6b8
MOV EAX,dword ptr [RBP + -0x22c]
ADD RSP,0x240
POP RBP
RET
LAB_001fc6b8:
CALL 0x0012a260
|
int4 my_sync_dir_by_file(int8 param_1,int8 param_2)
{
int4 uVar1;
long in_FS_OFFSET;
int1 local_230 [8];
int8 local_228;
int8 local_220;
int1 local_218 [520];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
local_228 = param_2;
local_220 = param_1;
dirname_part(local_218,param_1,local_230);
uVar1 = my_sync_dir(local_218,(uint)local_228 & 0xfffffdff);
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return uVar1;
}
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
28,227 | nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_float(double) | llama.cpp/common/json.hpp | void dump_float(number_float_t x)
{
// NaN / inf
if (!std::isfinite(x))
{
o->write_characters("null", 4);
return;
}
// If number_float_t is an IEEE-754 single or double precision number,
// use the Grisu2 algorithm to produce short numbers which are
// guaranteed to round-trip, using strtof and strtod, resp.
//
// NB: The test below works if <long double> == <double>.
static constexpr bool is_ieee_single_or_double
= (std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 24 && std::numeric_limits<number_float_t>::max_exponent == 128) ||
(std::numeric_limits<number_float_t>::is_iec559 && std::numeric_limits<number_float_t>::digits == 53 && std::numeric_limits<number_float_t>::max_exponent == 1024);
dump_float(x, std::integral_constant<bool, is_ieee_single_or_double>());
} | O3 | cpp | nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>::dump_float(double):
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %xmm0, %rax
btrq $0x3f, %rax
movabsq $0x7ff0000000000000, %rcx # imm = 0x7FF0000000000000
cmpq %rcx, %rax
jl 0xd08d1
movq (%rbx), %rdi
movq (%rdi), %rax
movq 0x8(%rax), %rax
leaq 0x52e25(%rip), %rsi # 0x1236e8
movl $0x4, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *%rax
leaq 0x10(%rbx), %r14
leaq 0x50(%rbx), %rsi
movq %r14, %rdi
callq 0x7f015
movq (%rbx), %rdi
subq %r14, %rax
movq (%rdi), %rcx
movq 0x8(%rcx), %rcx
movq %r14, %rsi
movq %rax, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *%rcx
nop
| _ZN8nlohmann16json_abi_v3_11_36detail10serializerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEE10dump_floatEd:
push r14
push rbx
push rax
mov rbx, rdi
movq rax, xmm0
btr rax, 3Fh ; '?'
mov rcx, 7FF0000000000000h
cmp rax, rcx
jl short loc_D08D1
mov rdi, [rbx]
mov rax, [rdi]
mov rax, [rax+8]
lea rsi, aOnNull_0+5; "null"
mov edx, 4
add rsp, 8
pop rbx
pop r14
jmp rax
loc_D08D1:
lea r14, [rbx+10h]
lea rsi, [rbx+50h]
mov rdi, r14; this
call _ZN8nlohmann16json_abi_v3_11_36detail8to_charsIdEEPcS3_PKcT_; nlohmann::json_abi_v3_11_3::detail::to_chars<double>(char *,char const*,double)
mov rdi, [rbx]
sub rax, r14
mov rcx, [rdi]
mov rcx, [rcx+8]
mov rsi, r14
mov rdx, rax
add rsp, 8
pop rbx
pop r14
jmp rcx
| long long nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::dump_float(
_QWORD *a1,
__m128i a2)
{
long long v3; // rax
if ( (a2.m128i_i64[0] & 0x7FFFFFFFFFFFFFFFuLL) >= 0x7FF0000000000000LL )
return (*(long long ( **)(_QWORD, char *, long long))(*(_QWORD *)*a1 + 8LL))(*a1, "null", 4LL);
v3 = nlohmann::json_abi_v3_11_3::detail::to_chars<double>(
(nlohmann::json_abi_v3_11_3::detail::dtoa_impl *)(a1 + 2),
(long long)(a1 + 10),
a2);
return (*(long long ( **)(_QWORD, _QWORD *, long long))(*(_QWORD *)*a1 + 8LL))(
*a1,
a1 + 2,
v3 - (_QWORD)(a1 + 2));
}
| dump_float:
PUSH R14
PUSH RBX
PUSH RAX
MOV RBX,RDI
MOVQ RAX,XMM0
BTR RAX,0x3f
MOV RCX,0x7ff0000000000000
CMP RAX,RCX
JL 0x001d08d1
MOV RDI,qword ptr [RBX]
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x8]
LEA RSI,[0x2236e8]
MOV EDX,0x4
ADD RSP,0x8
POP RBX
POP R14
JMP RAX
LAB_001d08d1:
LEA R14,[RBX + 0x10]
LEA RSI,[RBX + 0x50]
MOV RDI,R14
CALL 0x0017f015
MOV RDI,qword ptr [RBX]
SUB RAX,R14
MOV RCX,qword ptr [RDI]
MOV RCX,qword ptr [RCX + 0x8]
MOV RSI,R14
MOV RDX,RAX
ADD RSP,0x8
POP RBX
POP R14
JMP RCX
|
/* nlohmann::json_abi_v3_11_3::detail::serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::dump_float(double) */
void __thiscall
nlohmann::json_abi_v3_11_3::detail::
serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::dump_float(serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this,double param_1)
{
serializer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*psVar1;
code *UNRECOVERED_JUMPTABLE;
char *pcVar2;
if (0x7fefffffffffffff < (ulong)ABS(param_1)) {
/* WARNING: Could not recover jumptable at 0x001d08cf. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(**(long **)this + 8))(*(long **)this,"null",4);
return;
}
psVar1 = this + 0x10;
pcVar2 = to_chars<double>((char *)psVar1,(char *)(this + 0x50),param_1);
UNRECOVERED_JUMPTABLE = *(code **)(**(long **)this + 8);
/* WARNING: Could not recover jumptable at 0x001d08fb. Too many branches */
/* WARNING: Treating indirect jump as call */
(*UNRECOVERED_JUMPTABLE)(*(long **)this,psVar1,(long)pcVar2 - (long)psVar1,UNRECOVERED_JUMPTABLE);
return;
}
| |
28,228 | OpenSubdiv::v3_6_0::Far::LoopPatchBuilder::LoopPatchBuilder(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&, OpenSubdiv::v3_6_0::Far::PatchBuilder::Options const&) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/loopPatchBuilder.cpp | LoopPatchBuilder::LoopPatchBuilder(
TopologyRefiner const& refiner, Options const& options) :
PatchBuilder(refiner, options) {
_regPatchType = patchTypeFromBasisArray[_options.regBasisType];
_irregPatchType = (_options.irregBasisType == BASIS_UNSPECIFIED)
? _regPatchType
: patchTypeFromBasisArray[_options.irregBasisType];
_nativePatchType = PatchDescriptor::LOOP;
_linearPatchType = PatchDescriptor::TRIANGLES;
} | O1 | cpp | OpenSubdiv::v3_6_0::Far::LoopPatchBuilder::LoopPatchBuilder(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&, OpenSubdiv::v3_6_0::Far::PatchBuilder::Options const&):
pushq %rbx
movq %rdi, %rbx
callq 0x39340
movq 0x89854(%rip), %rax # 0xdde38
addq $0x10, %rax
movq %rax, (%rbx)
movl 0x10(%rbx), %ecx
movl 0x14(%rbx), %eax
leaq 0x619a8(%rip), %rdx # 0xb5fa0
movl (%rdx,%rcx,4), %ecx
movl %ecx, 0x28(%rbx)
testq %rax, %rax
je 0x54606
movl (%rdx,%rax,4), %ecx
movl %ecx, 0x2c(%rbx)
movabsq $0x400000005, %rax # imm = 0x400000005
movq %rax, 0x30(%rbx)
popq %rbx
retq
nop
| _ZN10OpenSubdiv6v3_6_03Far16LoopPatchBuilderC2ERKNS1_15TopologyRefinerERKNS1_12PatchBuilder7OptionsE:
push rbx; Alternative name is 'OpenSubdiv::v3_6_0::Far::LoopPatchBuilder::LoopPatchBuilder(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&, OpenSubdiv::v3_6_0::Far::PatchBuilder::Options const&)'
mov rbx, rdi
call __ZN10OpenSubdiv6v3_6_03Far12PatchBuilderC2ERKNS1_15TopologyRefinerERKNS2_7OptionsE; OpenSubdiv::v3_6_0::Far::PatchBuilder::PatchBuilder(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&,OpenSubdiv::v3_6_0::Far::PatchBuilder::Options const&)
mov rax, cs:_ZTVN10OpenSubdiv6v3_6_03Far16LoopPatchBuilderE_ptr
add rax, 10h
mov [rbx], rax
mov ecx, [rbx+10h]
mov eax, [rbx+14h]
lea rdx, _ZN10OpenSubdiv6v3_6_03Far12_GLOBAL__N_123patchTypeFromBasisArrayE_0; OpenSubdiv::v3_6_0::Far::`anonymous namespace'::patchTypeFromBasisArray
mov ecx, [rdx+rcx*4]
mov [rbx+28h], ecx
test rax, rax
jz short loc_54606
mov ecx, [rdx+rax*4]
loc_54606:
mov [rbx+2Ch], ecx
mov rax, 400000005h
mov [rbx+30h], rax
pop rbx
retn
| long long OpenSubdiv::v3_6_0::Far::LoopPatchBuilder::LoopPatchBuilder(long long a1)
{
long long v1; // rax
int v2; // ecx
long long result; // rax
OpenSubdiv::v3_6_0::Far::PatchBuilder::PatchBuilder();
*(_QWORD *)a1 = &`vtable for'OpenSubdiv::v3_6_0::Far::LoopPatchBuilder + 2;
v1 = *(unsigned int *)(a1 + 20);
v2 = OpenSubdiv::v3_6_0::Far::`anonymous namespace'::patchTypeFromBasisArray[*(unsigned int *)(a1 + 16)];
*(_DWORD *)(a1 + 40) = v2;
if ( v1 )
v2 = OpenSubdiv::v3_6_0::Far::`anonymous namespace'::patchTypeFromBasisArray[v1];
*(_DWORD *)(a1 + 44) = v2;
result = 0x400000005LL;
*(_QWORD *)(a1 + 48) = 0x400000005LL;
return result;
}
| LoopPatchBuilder:
PUSH RBX
MOV RBX,RDI
CALL 0x00139340
MOV RAX,qword ptr [0x001dde38]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV ECX,dword ptr [RBX + 0x10]
MOV EAX,dword ptr [RBX + 0x14]
LEA RDX,[0x1b5fa0]
MOV ECX,dword ptr [RDX + RCX*0x4]
MOV dword ptr [RBX + 0x28],ECX
TEST RAX,RAX
JZ 0x00154606
MOV ECX,dword ptr [RDX + RAX*0x4]
LAB_00154606:
MOV dword ptr [RBX + 0x2c],ECX
MOV RAX,0x400000005
MOV qword ptr [RBX + 0x30],RAX
POP RBX
RET
|
/* OpenSubdiv::v3_6_0::Far::LoopPatchBuilder::LoopPatchBuilder(OpenSubdiv::v3_6_0::Far::TopologyRefiner
const&, OpenSubdiv::v3_6_0::Far::PatchBuilder::Options const&) */
void __thiscall
OpenSubdiv::v3_6_0::Far::LoopPatchBuilder::LoopPatchBuilder
(LoopPatchBuilder *this,TopologyRefiner *param_1,Options *param_2)
{
int4 uVar1;
PatchBuilder::PatchBuilder((PatchBuilder *)this,param_1,param_2);
*(int **)this = PTR_vtable_001dde38 + 0x10;
uVar1 = *(int4 *)
((anonymous_namespace)::patchTypeFromBasisArray + (ulong)*(uint *)(this + 0x10) * 4);
*(int4 *)(this + 0x28) = uVar1;
if ((ulong)*(uint *)(this + 0x14) != 0) {
uVar1 = *(int4 *)
((anonymous_namespace)::patchTypeFromBasisArray + (ulong)*(uint *)(this + 0x14) * 4);
}
*(int4 *)(this + 0x2c) = uVar1;
*(int8 *)(this + 0x30) = 0x400000005;
return;
}
| |
28,229 | OpenSubdiv::v3_6_0::Far::LoopPatchBuilder::LoopPatchBuilder(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&, OpenSubdiv::v3_6_0::Far::PatchBuilder::Options const&) | NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/loopPatchBuilder.cpp | LoopPatchBuilder::LoopPatchBuilder(
TopologyRefiner const& refiner, Options const& options) :
PatchBuilder(refiner, options) {
_regPatchType = patchTypeFromBasisArray[_options.regBasisType];
_irregPatchType = (_options.irregBasisType == BASIS_UNSPECIFIED)
? _regPatchType
: patchTypeFromBasisArray[_options.irregBasisType];
_nativePatchType = PatchDescriptor::LOOP;
_linearPatchType = PatchDescriptor::TRIANGLES;
} | O3 | cpp | OpenSubdiv::v3_6_0::Far::LoopPatchBuilder::LoopPatchBuilder(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&, OpenSubdiv::v3_6_0::Far::PatchBuilder::Options const&):
pushq %rbx
movq %rdi, %rbx
callq 0x39330
movq 0x8b23c(%rip), %rax # 0xe1e40
addq $0x10, %rax
movq %rax, (%rbx)
movl 0x10(%rbx), %ecx
movl 0x14(%rbx), %eax
leaq 0x62818(%rip), %rdx # 0xb9430
movl (%rdx,%rcx,4), %ecx
movl %ecx, 0x28(%rbx)
testq %rax, %rax
je 0x56c26
movl (%rdx,%rax,4), %ecx
movl %ecx, 0x2c(%rbx)
movabsq $0x400000005, %rax # imm = 0x400000005
movq %rax, 0x30(%rbx)
popq %rbx
retq
nop
| _ZN10OpenSubdiv6v3_6_03Far16LoopPatchBuilderC2ERKNS1_15TopologyRefinerERKNS1_12PatchBuilder7OptionsE:
push rbx; Alternative name is 'OpenSubdiv::v3_6_0::Far::LoopPatchBuilder::LoopPatchBuilder(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&, OpenSubdiv::v3_6_0::Far::PatchBuilder::Options const&)'
mov rbx, rdi
call __ZN10OpenSubdiv6v3_6_03Far12PatchBuilderC2ERKNS1_15TopologyRefinerERKNS2_7OptionsE; OpenSubdiv::v3_6_0::Far::PatchBuilder::PatchBuilder(OpenSubdiv::v3_6_0::Far::TopologyRefiner const&,OpenSubdiv::v3_6_0::Far::PatchBuilder::Options const&)
mov rax, cs:_ZTVN10OpenSubdiv6v3_6_03Far16LoopPatchBuilderE_ptr
add rax, 10h
mov [rbx], rax
mov ecx, [rbx+10h]
mov eax, [rbx+14h]
lea rdx, _ZN10OpenSubdiv6v3_6_03Far12_GLOBAL__N_123patchTypeFromBasisArrayE_0; OpenSubdiv::v3_6_0::Far::`anonymous namespace'::patchTypeFromBasisArray
mov ecx, [rdx+rcx*4]
mov [rbx+28h], ecx
test rax, rax
jz short loc_56C26
mov ecx, [rdx+rax*4]
loc_56C26:
mov [rbx+2Ch], ecx
mov rax, 400000005h
mov [rbx+30h], rax
pop rbx
retn
| long long OpenSubdiv::v3_6_0::Far::LoopPatchBuilder::LoopPatchBuilder(long long a1)
{
long long v1; // rax
int v2; // ecx
long long result; // rax
OpenSubdiv::v3_6_0::Far::PatchBuilder::PatchBuilder();
*(_QWORD *)a1 = &`vtable for'OpenSubdiv::v3_6_0::Far::LoopPatchBuilder + 2;
v1 = *(unsigned int *)(a1 + 20);
v2 = OpenSubdiv::v3_6_0::Far::`anonymous namespace'::patchTypeFromBasisArray[*(unsigned int *)(a1 + 16)];
*(_DWORD *)(a1 + 40) = v2;
if ( v1 )
v2 = OpenSubdiv::v3_6_0::Far::`anonymous namespace'::patchTypeFromBasisArray[v1];
*(_DWORD *)(a1 + 44) = v2;
result = 0x400000005LL;
*(_QWORD *)(a1 + 48) = 0x400000005LL;
return result;
}
| LoopPatchBuilder:
PUSH RBX
MOV RBX,RDI
CALL 0x00139330
MOV RAX,qword ptr [0x001e1e40]
ADD RAX,0x10
MOV qword ptr [RBX],RAX
MOV ECX,dword ptr [RBX + 0x10]
MOV EAX,dword ptr [RBX + 0x14]
LEA RDX,[0x1b9430]
MOV ECX,dword ptr [RDX + RCX*0x4]
MOV dword ptr [RBX + 0x28],ECX
TEST RAX,RAX
JZ 0x00156c26
MOV ECX,dword ptr [RDX + RAX*0x4]
LAB_00156c26:
MOV dword ptr [RBX + 0x2c],ECX
MOV RAX,0x400000005
MOV qword ptr [RBX + 0x30],RAX
POP RBX
RET
|
/* OpenSubdiv::v3_6_0::Far::LoopPatchBuilder::LoopPatchBuilder(OpenSubdiv::v3_6_0::Far::TopologyRefiner
const&, OpenSubdiv::v3_6_0::Far::PatchBuilder::Options const&) */
void __thiscall
OpenSubdiv::v3_6_0::Far::LoopPatchBuilder::LoopPatchBuilder
(LoopPatchBuilder *this,TopologyRefiner *param_1,Options *param_2)
{
int4 uVar1;
PatchBuilder::PatchBuilder((PatchBuilder *)this,param_1,param_2);
*(int **)this = PTR_vtable_001e1e40 + 0x10;
uVar1 = *(int4 *)
((anonymous_namespace)::patchTypeFromBasisArray + (ulong)*(uint *)(this + 0x10) * 4);
*(int4 *)(this + 0x28) = uVar1;
if ((ulong)*(uint *)(this + 0x14) != 0) {
uVar1 = *(int4 *)
((anonymous_namespace)::patchTypeFromBasisArray + (ulong)*(uint *)(this + 0x14) * 4);
}
*(int4 *)(this + 0x2c) = uVar1;
*(int8 *)(this + 0x30) = 0x400000005;
return;
}
| |
28,230 | SchemaConverter::_generate_union_rule(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>> const&) | monkey531[P]llama/common/json-schema-to-grammar.cpp | std::string _generate_union_rule(const std::string & name, const std::vector<json> & alt_schemas) {
std::vector<std::string> rules;
for (size_t i = 0; i < alt_schemas.size(); i++) {
rules.push_back(visit(alt_schemas[i], name + (name.empty() ? "alternative-" : "-") + std::to_string(i)));
}
return string_join(rules, " | ");
} | O0 | cpp | SchemaConverter::_generate_union_rule(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>> const&):
subq $0x138, %rsp # imm = 0x138
movq %rdi, 0x28(%rsp)
movq %rdi, %rax
movq %rax, 0x30(%rsp)
movq %rdi, 0x130(%rsp)
movq %rsi, 0x128(%rsp)
movq %rdx, 0x120(%rsp)
movq %rcx, 0x118(%rsp)
movq 0x128(%rsp), %rax
movq %rax, 0x38(%rsp)
leaq 0x100(%rsp), %rdi
callq 0x64420
movq $0x0, 0xf8(%rsp)
movq 0xf8(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x118(%rsp), %rdi
callq 0xb0ef0
movq %rax, %rcx
movq 0x20(%rsp), %rax
cmpq %rcx, %rax
jae 0x1af0e2
movq 0x118(%rsp), %rdi
movq 0xf8(%rsp), %rsi
callq 0x1b3800
movq %rax, 0x10(%rsp)
movq 0x120(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x5d4e0
movq 0x18(%rsp), %rsi
movb %al, %cl
leaq 0x6f1fb(%rip), %rax # 0x21e16a
leaq 0x65e31(%rip), %rdx # 0x214da7
testb %cl, %cl
cmovneq %rax, %rdx
leaq 0x98(%rsp), %rdi
callq 0x8b5f0
jmp 0x1aef8b
movq 0xf8(%rsp), %rsi
leaq 0x68(%rsp), %rdi
callq 0xb05f0
jmp 0x1aef9f
leaq 0xb8(%rsp), %rdi
leaq 0x98(%rsp), %rsi
leaq 0x68(%rsp), %rdx
callq 0x8dae0
jmp 0x1aefbb
movq 0x10(%rsp), %rdx
movq 0x38(%rsp), %rsi
leaq 0xd8(%rsp), %rdi
leaq 0xb8(%rsp), %rcx
callq 0x1ab650
jmp 0x1aefdc
leaq 0x100(%rsp), %rdi
leaq 0xd8(%rsp), %rsi
callq 0xf9b10
jmp 0x1aeff3
leaq 0xd8(%rsp), %rdi
callq 0x5e548
leaq 0xb8(%rsp), %rdi
callq 0x5e548
leaq 0x68(%rsp), %rdi
callq 0x5e548
leaq 0x98(%rsp), %rdi
callq 0x5e548
movq 0xf8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xf8(%rsp)
jmp 0x1aef0a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
jmp 0x1af18e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
jmp 0x1af0d0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
jmp 0x1af0c6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
jmp 0x1af0b9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
leaq 0xd8(%rsp), %rdi
callq 0x5e548
leaq 0xb8(%rsp), %rdi
callq 0x5e548
leaq 0x68(%rsp), %rdi
callq 0x5e548
leaq 0x98(%rsp), %rdi
callq 0x5e548
jmp 0x1af18e
leaq 0x47(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x5e0e0
movq 0x8(%rsp), %rdx
leaq 0x6f224(%rip), %rsi # 0x21e321
leaq 0x48(%rsp), %rdi
callq 0x64360
jmp 0x1af109
movq 0x28(%rsp), %rdi
leaq 0x100(%rsp), %rsi
leaq 0x48(%rsp), %rdx
callq 0xeeb80
jmp 0x1af122
leaq 0x48(%rsp), %rdi
callq 0x5e548
leaq 0x47(%rsp), %rdi
callq 0x5e520
leaq 0x100(%rsp), %rdi
callq 0x64460
movq 0x30(%rsp), %rax
addq $0x138, %rsp # imm = 0x138
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
jmp 0x1af184
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x90(%rsp)
movl %eax, 0x8c(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x5e548
leaq 0x47(%rsp), %rdi
callq 0x5e520
leaq 0x100(%rsp), %rdi
callq 0x64460
movq 0x90(%rsp), %rdi
callq 0x5dbc0
nopl (%rax,%rax)
| _ZN15SchemaConverter20_generate_union_ruleERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapES8_S5_blmdSaNSA_14adl_serializerES8_IhSaIhEEvEESaISG_EE:
sub rsp, 138h
mov [rsp+138h+var_110], rdi
mov rax, rdi
mov [rsp+138h+var_108], rax
mov [rsp+138h+var_8], rdi
mov [rsp+138h+var_10], rsi
mov [rsp+138h+var_18], rdx
mov [rsp+138h+var_20], rcx
mov rax, [rsp+138h+var_10]
mov [rsp+138h+var_100], rax
lea rdi, [rsp+138h+var_38]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEC2Ev; std::vector<std::string>::vector(void)
mov [rsp+138h+var_40], 0
loc_1AEF0A:
mov rax, [rsp+138h+var_40]
mov [rsp+138h+var_118], rax
mov rdi, [rsp+138h+var_20]
call _ZNKSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE4sizeEv; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::size(void)
mov rcx, rax
mov rax, [rsp+138h+var_118]
cmp rax, rcx
jnb loc_1AF0E2
mov rdi, [rsp+138h+var_20]
mov rsi, [rsp+138h+var_40]
call _ZNKSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EEixEm; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::operator[](ulong)
mov qword ptr [rsp+138h+var_128], rax; int
mov rdi, [rsp+138h+var_18]
mov [rsp+138h+var_120], rdi; __int64
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
mov rsi, [rsp+138h+var_120]; int
mov cl, al; int
lea rax, aAlternative; "alternative-"
lea rdx, asc_214DA6+1; "-"
test cl, cl
cmovnz rdx, rax; int
lea rdi, [rsp+138h+var_A0]; int
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_; std::operator+<char>(std::string const&,char const*)
jmp short $+2
loc_1AEF8B:
mov rsi, [rsp+138h+var_40]; unsigned __int64
lea rdi, [rsp+138h+var_D0]; this
call _ZNSt7__cxx119to_stringEm; std::to_string(ulong)
jmp short $+2
loc_1AEF9F:
lea rdi, [rsp+138h+var_80]
lea rsi, [rsp+138h+var_A0]
lea rdx, [rsp+138h+var_D0]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&)
jmp short $+2
loc_1AEFBB:
mov rdx, qword ptr [rsp+138h+var_128]
mov rsi, [rsp+138h+var_100]
lea rdi, [rsp+138h+var_60]
lea rcx, [rsp+138h+var_80]
call _ZN15SchemaConverter5visitERKN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEERKSA_; SchemaConverter::visit(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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&,std::string const&)
jmp short $+2
loc_1AEFDC:
lea rdi, [rsp+138h+var_38]
lea rsi, [rsp+138h+var_60]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE9push_backEOS5_; std::vector<std::string>::push_back(std::string&&)
jmp short $+2
loc_1AEFF3:
lea rdi, [rsp+138h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+138h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+138h+var_D0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+138h+var_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rax, [rsp+138h+var_40]
add rax, 1
mov [rsp+138h+var_40], rax
jmp loc_1AEF0A
mov rcx, rax
mov eax, edx
mov [rsp+arg_88], rcx
mov [rsp+arg_84], eax
jmp loc_1AF18E
mov rcx, rax
mov eax, edx
mov [rsp+arg_88], rcx
mov [rsp+arg_84], eax
jmp short loc_1AF0D0
mov rcx, rax
mov eax, edx
mov [rsp+arg_88], rcx
mov [rsp+arg_84], eax
jmp short loc_1AF0C6
mov rcx, rax
mov eax, edx
mov [rsp+arg_88], rcx
mov [rsp+arg_84], eax
jmp short loc_1AF0B9
mov rcx, rax
mov eax, edx
mov [rsp+arg_88], rcx
mov [rsp+arg_84], eax
lea rdi, [rsp+arg_D0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_1AF0B9:
lea rdi, [rsp+arg_B0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_1AF0C6:
lea rdi, [rsp+arg_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_1AF0D0:
lea rdi, [rsp+arg_90]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp loc_1AF18E
loc_1AF0E2:
lea rdi, [rsp+138h+var_F1]
mov [rsp+138h+var_130], rdi
call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void)
mov rdx, [rsp+138h+var_130]
lea rsi, asc_21E320+1; " | "
lea rdi, [rsp+138h+var_F0]
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
jmp short $+2
loc_1AF109:
mov rdi, [rsp+138h+var_110]
lea rsi, [rsp+138h+var_38]
lea rdx, [rsp+138h+var_F0]
call _Z11string_joinRKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EERKS5_; string_join(std::vector<std::string> const&,std::string const&)
jmp short $+2
loc_1AF122:
lea rdi, [rsp+138h+var_F0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+138h+var_F1]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
lea rdi, [rsp+138h+var_38]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rax, [rsp+138h+var_108]
add rsp, 138h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_88], rcx
mov [rsp+arg_84], eax
jmp short loc_1AF184
mov rcx, rax
mov eax, edx
mov [rsp+arg_88], rcx
mov [rsp+arg_84], eax
lea rdi, [rsp+arg_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_1AF184:
lea rdi, [rsp+arg_3F]
call __ZNSaIcED1Ev; std::allocator<char>::~allocator()
loc_1AF18E:
lea rdi, [rsp+arg_F8]
call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector()
mov rdi, [rsp+arg_88]
call __Unwind_Resume
| long long SchemaConverter::_generate_union_rule(long long a1, _BYTE *a2, long long a3, _QWORD *a4)
{
char v4; // al
char *v5; // rdx
long long v6; // rdx
long long v7; // rcx
long long v8; // r8
long long v9; // r9
long long v11; // [rsp+10h] [rbp-128h]
long long v12; // [rsp+18h] [rbp-120h]
unsigned long long v13; // [rsp+20h] [rbp-118h]
long long v14; // [rsp+38h] [rbp-100h]
char v15; // [rsp+47h] [rbp-F1h] BYREF
_BYTE v16[32]; // [rsp+48h] [rbp-F0h] BYREF
_BYTE v17[48]; // [rsp+68h] [rbp-D0h] BYREF
int v18[8]; // [rsp+98h] [rbp-A0h] BYREF
_BYTE v19[32]; // [rsp+B8h] [rbp-80h] BYREF
_BYTE v20[32]; // [rsp+D8h] [rbp-60h] BYREF
unsigned long long i; // [rsp+F8h] [rbp-40h]
long long v22[3]; // [rsp+100h] [rbp-38h] BYREF
_QWORD *v23; // [rsp+118h] [rbp-20h]
long long v24; // [rsp+120h] [rbp-18h]
_BYTE *v25; // [rsp+128h] [rbp-10h]
long long v26; // [rsp+130h] [rbp-8h]
v26 = a1;
v25 = a2;
v24 = a3;
v23 = a4;
v14 = (long long)a2;
std::vector<std::string>::vector((long long)v22);
for ( i = 0LL; ; ++i )
{
v13 = i;
if ( v13 >= std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::size(v23) )
break;
v11 = std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::operator[](
v23,
i);
v12 = v24;
v4 = std::string::empty(v24);
v5 = "-";
if ( v4 )
v5 = "alternative-";
std::operator+<char>((long long)v18, v12, (long long)v5);
std::to_string((std::__cxx11 *)v17, i);
std::operator+<char>((long long)v19, (long long)v18, (long long)v17);
SchemaConverter::visit((long long)v20, v14, v11, (long long)v19);
a2 = v20;
std::vector<std::string>::push_back((long long)v22, (long long)v20, v6, v7, v8, v9);
std::string::~string(v20);
std::string::~string(v19);
std::string::~string(v17);
std::string::~string(v18);
}
std::allocator<char>::allocator(&v15, a2);
std::string::basic_string<std::allocator<char>>((long long)v16, (long long)" | ", (long long)&v15);
string_join(a1, v22, (long long)v16);
std::string::~string(v16);
std::allocator<char>::~allocator(&v15);
std::vector<std::string>::~vector(v22);
return a1;
}
| end_object:
SUB RSP,0xb8
MOV qword ptr [RSP + 0xb0],RDI
MOV RDI,qword ptr [RSP + 0xb0]
MOV qword ptr [RSP + 0x18],RDI
ADD RDI,0x8
CALL 0x001b02d0
CMP qword ptr [RAX],0x0
JZ 0x001aef88
MOV RDI,qword ptr [RSP + 0x18]
MOV RAX,RDI
ADD RAX,0x80
MOV qword ptr [RSP + 0x8],RAX
ADD RDI,0x8
CALL 0x001afce0
MOV RDI,qword ptr [RSP + 0x18]
SUB EAX,0x1
MOV dword ptr [RSP + 0x14],EAX
ADD RDI,0x8
CALL 0x001b02d0
MOV RDI,qword ptr [RSP + 0x8]
MOV ESI,dword ptr [RSP + 0x14]
MOV RCX,qword ptr [RAX]
MOV EDX,0x1
CALL 0x001afc80
TEST AL,0x1
JNZ 0x001aef70
MOV RSI,qword ptr [RSP + 0x18]
ADD RSI,0xa8
LEA RDI,[RSP + 0xa0]
CALL 0x001b1e80
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001b02d0
MOV RDI,qword ptr [RAX]
LEA RSI,[RSP + 0xa0]
CALL 0x001aa700
LEA RDI,[RSP + 0xa0]
CALL 0x001a14c0
JMP 0x001aef86
LAB_001aef70:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001b02d0
MOV RDI,qword ptr [RAX]
CALL 0x001b0a20
LAB_001aef86:
JMP 0x001aef88
LAB_001aef88:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001b0720
TEST AL,0x1
JNZ 0x001aef9c
JMP 0x001aefbd
LAB_001aef9c:
LEA RDI,[0x31517e]
MOV ESI,0x1bbd
LEA RDX,[0x30f070]
LEA RCX,[0x316184]
MOV AL,0x0
CALL 0x0015def0
LAB_001aefbd:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x20
CALL 0x001afb60
TEST AL,0x1
JNZ 0x001aefd1
JMP 0x001aeff2
LAB_001aefd1:
LEA RDI,[0x31517e]
MOV ESI,0x1bbe
LEA RDX,[0x30f070]
LEA RCX,[0x3160fe]
MOV AL,0x0
CALL 0x0015def0
LAB_001aeff2:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001b2070
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x20
CALL 0x001afc60
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001b0720
TEST AL,0x1
JNZ 0x001af119
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001b02d0
CMP qword ptr [RAX],0x0
JZ 0x001af119
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001b02d0
MOV RDI,qword ptr [RAX]
CALL 0x001b2090
TEST AL,0x1
JNZ 0x001af05b
JMP 0x001af119
LAB_001af05b:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001b02d0
MOV RSI,qword ptr [RAX]
LEA RDI,[RSP + 0x80]
CALL 0x001b20d0
LAB_001af079:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001b02d0
MOV RSI,qword ptr [RAX]
LEA RDI,[RSP + 0x60]
CALL 0x001b2140
LEA RDI,[RSP + 0x80]
LEA RSI,[RSP + 0x60]
CALL 0x001b2110
TEST AL,0x1
JNZ 0x001af0ac
JMP 0x001af117
LAB_001af0ac:
LEA RDI,[RSP + 0x80]
CALL 0x001b2180
MOV RDI,RAX
CALL 0x001aa780
TEST AL,0x1
JNZ 0x001af0c7
JMP 0x001af103
LAB_001af0c7:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x8
CALL 0x001b02d0
MOV RAX,qword ptr [RAX]
MOV qword ptr [RSP],RAX
LEA RDI,[RSP + 0x40]
LEA RSI,[RSP + 0x80]
CALL 0x001b2940
MOV RSI,qword ptr [RSP]
LEA RDI,[RSP + 0x20]
LEA RDX,[RSP + 0x40]
CALL 0x001b23f0
JMP 0x001af117
LAB_001af103:
JMP 0x001af105
LAB_001af105:
LEA RDI,[RSP + 0x80]
CALL 0x001b2980
JMP 0x001af079
LAB_001af117:
JMP 0x001af119
LAB_001af119:
MOV AL,0x1
AND AL,0x1
ADD RSP,0xb8
RET
|
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >::end_object() */
int8 __thiscall
nlohmann::json_abi_v3_11_3::detail::
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
::end_object(json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*this)
{
int8 uVar1;
int iVar2;
long *plVar3;
int8 *puVar4;
ulong uVar5;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*this_00;
int1 local_98 [32];
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>>
local_78 [32];
int1 local_58 [32];
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>>
local_38 [32];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_18 [16];
json_sax_dom_callback_parser<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>
*local_8;
local_8 = this;
plVar3 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
if (*plVar3 != 0) {
iVar2 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::size((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
puVar4 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar5 = std::
function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
::operator()((function<bool(int,nlohmann::json_abi_v3_11_3::detail::parse_event_t,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>&)>
*)(this + 0x80),iVar2 + -1,1,*puVar4);
if ((uVar5 & 1) == 0) {
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_18,this + 0xa8);
puVar4 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator=((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar4,local_18);
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::~basic_json(local_18);
}
else {
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::set_parents();
}
}
uVar5 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::empty((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
if ((uVar5 & 1) != 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1bbd,
"GGML_ASSERT(%s) failed","!ref_stack.empty()");
}
uVar5 = std::vector<bool,std::allocator<bool>>::empty
((vector<bool,std::allocator<bool>> *)(this + 0x20));
if ((uVar5 & 1) != 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/json.hpp",0x1bbe,
"GGML_ASSERT(%s) failed","!keep_stack.empty()");
}
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::pop_back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
std::vector<bool,std::allocator<bool>>::pop_back
((vector<bool,std::allocator<bool>> *)(this + 0x20));
uVar5 = std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::empty((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
if (((uVar5 & 1) == 0) &&
(plVar3 = (long *)std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8)), *plVar3 != 0)) {
puVar4 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar5 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_structured((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)*puVar4);
if ((uVar5 & 1) != 0) {
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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();
while( true ) {
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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();
uVar5 = _ZNK8nlohmann16json_abi_v3_11_36detail9iter_implINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEEEneISG_TnNSt9enable_ifIXoosr3std7is_sameIT_SG_EE5valuesr3std7is_sameISJ_NS2_IKSF_EEEE5valueEDnE4typeELDn0EEEbRKSJ_
(local_38,local_58);
if ((uVar5 & 1) == 0) break;
this_00 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)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>>
::operator->(local_38);
uVar5 = basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::is_discarded(this_00);
if ((uVar5 & 1) != 0) {
puVar4 = (int8 *)
std::
vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
::back((vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>>
*)(this + 8));
uVar1 = *puVar4;
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>>
::iter_impl(local_78,(iter_impl *)local_38);
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE5eraseINS0_6detail9iter_implISD_EETnNSt9enable_ifIXoosr3std7is_sameIT_SH_EE5valuesr3std7is_sameISJ_NSG_IKSD_EEEE5valueEiE4typeELi0EEESJ_SJ_
(local_98,uVar1,local_78);
return 1;
}
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>>
::operator++(local_38);
}
}
}
return 1;
}
| |
28,231 | my_mutex_end | eloqsql/mysys/thr_mutex.c | void my_mutex_end()
{
#ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
pthread_mutexattr_destroy(&my_fast_mutexattr);
#endif
#ifdef PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP
pthread_mutexattr_destroy(&my_errorcheck_mutexattr);
#endif
} | O0 | c | my_mutex_end:
pushq %rbp
movq %rsp, %rbp
leaq 0x322375(%rip), %rdi # 0x39b7f0
callq 0x2a450
leaq 0x32236d(%rip), %rdi # 0x39b7f4
callq 0x2a450
popq %rbp
retq
nop
| my_mutex_end:
push rbp
mov rbp, rsp
lea rdi, my_fast_mutexattr
call _pthread_mutexattr_destroy
lea rdi, my_errorcheck_mutexattr
call _pthread_mutexattr_destroy
pop rbp
retn
| long long my_mutex_end()
{
pthread_mutexattr_destroy(&my_fast_mutexattr);
return pthread_mutexattr_destroy(&my_errorcheck_mutexattr);
}
| my_mutex_end:
PUSH RBP
MOV RBP,RSP
LEA RDI,[0x49b7f0]
CALL 0x0012a450
LEA RDI,[0x49b7f4]
CALL 0x0012a450
POP RBP
RET
|
void my_mutex_end(void)
{
pthread_mutexattr_destroy((pthread_mutexattr_t *)&my_fast_mutexattr);
pthread_mutexattr_destroy((pthread_mutexattr_t *)&my_errorcheck_mutexattr);
return;
}
| |
28,232 | mysql_shutdown_start_internal | eloqsql/libmariadb/libmariadb/mariadb_async.c | static void
mysql_shutdown_start_internal(void *d)
{
MK_ASYNC_INTERNAL_BODY(
mysql_shutdown,
(parms->mysql, parms->shutdown_level),
parms->mysql,
int,
r_int)
} | O0 | c | mysql_shutdown_start_internal:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq 0x480(%rax), %rax
movq 0x28(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movl 0x8(%rax), %esi
callq 0x283e0
movl %eax, -0x14(%rbp)
movl -0x14(%rbp), %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x8(%rax)
movq -0x20(%rbp), %rax
movl $0x0, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
| mysql_shutdown_start_internal:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov rax, [rbp+var_8]
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
mov rax, [rax]
mov rax, [rax+480h]
mov rax, [rax+28h]
mov [rbp+var_20], rax
mov rax, [rbp+var_10]
mov rdi, [rax]
mov rax, [rbp+var_10]
mov esi, [rax+8]
call mysql_shutdown
mov [rbp+var_14], eax
mov ecx, [rbp+var_14]
mov rax, [rbp+var_20]
mov [rax+8], ecx
mov rax, [rbp+var_20]
mov dword ptr [rax], 0
add rsp, 20h
pop rbp
retn
| _DWORD * mysql_shutdown_start_internal(long long a1)
{
_DWORD *result; // rax
_DWORD *v2; // [rsp+0h] [rbp-20h]
v2 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)a1 + 1152LL) + 40LL);
v2[2] = mysql_shutdown(*(_QWORD *)a1, *(_DWORD *)(a1 + 8));
result = v2;
*v2 = 0;
return result;
}
| mysql_shutdown_start_internal:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV RAX,qword ptr [RBP + -0x8]
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x480]
MOV RAX,qword ptr [RAX + 0x28]
MOV qword ptr [RBP + -0x20],RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV RDI,qword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RAX + 0x8]
CALL 0x001283e0
MOV dword ptr [RBP + -0x14],EAX
MOV ECX,dword ptr [RBP + -0x14]
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX + 0x8],ECX
MOV RAX,qword ptr [RBP + -0x20]
MOV dword ptr [RAX],0x0
ADD RSP,0x20
POP RBP
RET
|
void mysql_shutdown_start_internal(long *param_1)
{
int4 *puVar1;
int4 uVar2;
puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28);
uVar2 = mysql_shutdown(*param_1,(int)param_1[1]);
puVar1[2] = uVar2;
*puVar1 = 0;
return;
}
| |
28,233 | map_add_record | bluesky950520[P]quickjs/quickjs.c | static JSMapRecord *map_add_record(JSContext *ctx, JSMapState *s,
JSValue key)
{
uint32_t h;
JSMapRecord *mr;
mr = js_malloc(ctx, sizeof(*mr));
if (!mr)
return NULL;
mr->ref_count = 1;
mr->map = s;
mr->empty = FALSE;
if (s->is_weak) {
JSWeakRefRecord *wr = js_malloc(ctx, sizeof(*wr));
if (!wr) {
js_free(ctx, mr);
return NULL;
}
wr->kind = JS_WEAK_REF_KIND_MAP;
wr->u.map_record = mr;
insert_weakref_record(key, wr);
} else {
js_dup(key);
}
mr->key = key;
h = map_hash_key(ctx, key) & (s->hash_size - 1);
list_add_tail(&mr->hash_link, &s->hash_table[h]);
list_add_tail(&mr->link, &s->records);
s->record_count++;
if (s->record_count >= s->record_count_threshold) {
map_hash_resize(ctx, s);
}
return mr;
} | O1 | c | map_add_record:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, %r15
pushq $0x50
popq %rsi
callq 0xede6
testq %rax, %rax
je 0x117df
movq %rax, %rbx
movq $0x1, (%rax)
movq %r14, 0x8(%rax)
cmpl $0x0, (%r14)
jne 0x11754
movq %r13, 0x8(%rsp)
cmpl $-0x9, %r12d
jb 0x11621
movq 0x8(%rsp), %rax
incl (%rax)
movq %r13, 0x30(%rbx)
movq %r12, 0x38(%rbx)
movq %r13, %rdi
movq %r12, %rsi
callq 0x4750b
movl 0x28(%r14), %ecx
leal -0x1(%rcx), %edx
andl %eax, %edx
leaq 0x20(%rbx), %rax
movq 0x20(%r14), %rsi
shlq $0x4, %rdx
leaq (%rsi,%rdx), %rdi
movq (%rsi,%rdx), %r8
movq %rax, 0x8(%r8)
movq %r8, 0x20(%rbx)
movq %rdi, 0x28(%rbx)
movq %rax, (%rsi,%rdx)
movq %rbx, %rax
addq $0x10, %rax
leaq 0x8(%r14), %r12
movq 0x8(%r14), %rdx
movq %rax, 0x8(%rdx)
movq %rdx, 0x10(%rbx)
movq %r12, 0x18(%rbx)
movq %rax, 0x8(%r14)
movl 0x18(%r14), %eax
incl %eax
movl %eax, 0x18(%r14)
cmpl 0x2c(%r14), %eax
jb 0x117e1
leal (%rcx,%rcx), %eax
cmpl $0x1, %ecx
pushq $0x4
popq %r13
cmovnel %eax, %r13d
movq %r13, %rdx
shlq $0x4, %rdx
leaq 0x8(%rsp), %rcx
movq %r15, %rdi
callq 0x1cc0f
testq %rax, %rax
je 0x117e1
movq %rax, %r15
movq 0x8(%rsp), %rax
shrq $0x4, %rax
addl %eax, %r13d
je 0x116e6
movl %r13d, %eax
movq %r15, %rcx
movq %rcx, (%rcx)
movq %rcx, 0x8(%rcx)
addq $0x10, %rcx
decq %rax
jne 0x116d6
movq %r13, 0x10(%rsp)
movq 0x10(%r14), %rbp
cmpq %r12, %rbp
je 0x1173c
movq 0x10(%rsp), %rax
leal -0x1(%rax), %r13d
cmpl $0x0, -0xc(%rbp)
jne 0x11733
movq 0x20(%rbp), %rdi
movq 0x28(%rbp), %rsi
callq 0x4750b
andl %r13d, %eax
leaq 0x10(%rbp), %rcx
shlq $0x4, %rax
leaq (%r15,%rax), %rdx
movq (%r15,%rax), %rsi
movq %rcx, 0x8(%rsi)
movq %rsi, 0x10(%rbp)
movq %rdx, 0x18(%rbp)
movq %rcx, (%r15,%rax)
movq 0x8(%rbp), %rbp
cmpq %r12, %rbp
jne 0x116fd
movq %r15, 0x20(%r14)
movq 0x10(%rsp), %rax
movl %eax, 0x28(%r14)
addl %eax, %eax
movl %eax, 0x2c(%r14)
jmp 0x117e1
pushq $0x18
popq %rsi
movq %r15, %rdi
callq 0xede6
movq %rax, %rbp
testq %rax, %rax
je 0x1178b
andl $0x0, (%rbp)
movq %rbx, 0x10(%rbp)
movq %r13, 0x8(%rsp)
cmpl $-0x8, %r12d
je 0x117c3
cmpl $-0x1, %r12d
jne 0x117f3
movq 0x8(%rsp), %rax
addq $0x28, %rax
jmp 0x117cc
movq 0x18(%r15), %rax
movq %rax, 0x10(%rsp)
decq 0x28(%rax)
movq %rbx, %rdi
movq 0x10(%rsp), %rax
callq *0x20(%rax)
movq 0x10(%rsp), %rdx
movq 0x30(%rdx), %rcx
movq 0x40(%rdx), %rdi
subq %rax, %rcx
addq $-0x8, %rcx
movq %rcx, 0x30(%rdx)
movq %rbx, %rsi
callq *0x10(%rdx)
jmp 0x117d6
movq 0x8(%rsp), %rax
addq $0x10, %rax
movq (%rax), %rcx
movq %rcx, 0x8(%rbp)
movq %rbp, (%rax)
testq %rbp, %rbp
jne 0x11621
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0xe090
| map_add_record:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r12, rcx
mov r13, rdx
mov r14, rsi
mov r15, rdi
push 50h ; 'P'
pop rsi
call js_malloc
test rax, rax
jz loc_117DF
mov rbx, rax
mov qword ptr [rax], 1
mov [rax+8], r14
cmp dword ptr [r14], 0
jnz loc_11754
mov [rsp+48h+var_40], r13
cmp r12d, 0FFFFFFF7h
jb short loc_11621
mov rax, [rsp+48h+var_40]
inc dword ptr [rax]
loc_11621:
mov [rbx+30h], r13
mov [rbx+38h], r12
mov rdi, r13
mov rsi, r12
call map_hash_key
mov ecx, [r14+28h]
lea edx, [rcx-1]
and edx, eax
lea rax, [rbx+20h]
mov rsi, [r14+20h]
shl rdx, 4
lea rdi, [rsi+rdx]
mov r8, [rsi+rdx]
mov [r8+8], rax
mov [rbx+20h], r8
mov [rbx+28h], rdi
mov [rsi+rdx], rax
mov rax, rbx
add rax, 10h
lea r12, [r14+8]
mov rdx, [r14+8]
mov [rdx+8], rax
mov [rbx+10h], rdx
mov [rbx+18h], r12
mov [r14+8], rax
mov eax, [r14+18h]
inc eax
mov [r14+18h], eax
cmp eax, [r14+2Ch]
jb loc_117E1
lea eax, [rcx+rcx]
cmp ecx, 1
push 4
pop r13
cmovnz r13d, eax
mov rdx, r13
shl rdx, 4
lea rcx, [rsp+48h+var_40]
mov rdi, r15
call js_realloc2
test rax, rax
jz loc_117E1
mov r15, rax
mov rax, [rsp+48h+var_40]
shr rax, 4
add r13d, eax
jz short loc_116E6
mov eax, r13d
mov rcx, r15
loc_116D6:
mov [rcx], rcx
mov [rcx+8], rcx
add rcx, 10h
dec rax
jnz short loc_116D6
loc_116E6:
mov [rsp+48h+var_38], r13
mov rbp, [r14+10h]
cmp rbp, r12
jz short loc_1173C
mov rax, [rsp+48h+var_38]
lea r13d, [rax-1]
loc_116FD:
cmp dword ptr [rbp-0Ch], 0
jnz short loc_11733
mov rdi, [rbp+20h]
mov rsi, [rbp+28h]
call map_hash_key
and eax, r13d
lea rcx, [rbp+10h]
shl rax, 4
lea rdx, [r15+rax]
mov rsi, [r15+rax]
mov [rsi+8], rcx
mov [rbp+10h], rsi
mov [rbp+18h], rdx
mov [r15+rax], rcx
loc_11733:
mov rbp, [rbp+8]
cmp rbp, r12
jnz short loc_116FD
loc_1173C:
mov [r14+20h], r15
mov rax, [rsp+48h+var_38]
mov [r14+28h], eax
add eax, eax
mov [r14+2Ch], eax
jmp loc_117E1
loc_11754:
push 18h
pop rsi
mov rdi, r15
call js_malloc
mov rbp, rax
test rax, rax
jz short loc_1178B
and dword ptr [rbp+0], 0
mov [rbp+10h], rbx
mov [rsp+48h+var_40], r13
cmp r12d, 0FFFFFFF8h
jz short loc_117C3
cmp r12d, 0FFFFFFFFh
jnz short loc_117F3
mov rax, [rsp+48h+var_40]
add rax, 28h ; '('
jmp short loc_117CC
loc_1178B:
mov rax, [r15+18h]
mov [rsp+48h+var_38], rax
dec qword ptr [rax+28h]
mov rdi, rbx
mov rax, [rsp+48h+var_38]
call qword ptr [rax+20h]
mov rdx, [rsp+48h+var_38]
mov rcx, [rdx+30h]
mov rdi, [rdx+40h]
sub rcx, rax
add rcx, 0FFFFFFFFFFFFFFF8h
mov [rdx+30h], rcx
mov rsi, rbx
call qword ptr [rdx+10h]
jmp short loc_117D6
loc_117C3:
mov rax, [rsp+48h+var_40]
add rax, 10h
loc_117CC:
mov rcx, [rax]
mov [rbp+8], rcx
mov [rax], rbp
loc_117D6:
test rbp, rbp
jnz loc_11621
loc_117DF:
xor ebx, ebx
loc_117E1:
mov rax, rbx
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_117F3:
call _abort
| _QWORD * map_add_record(long long a1, long long a2, _DWORD *a3, long long a4)
{
_QWORD *v8; // rax
_QWORD *v9; // rbx
int v10; // eax
int v11; // ecx
long long v12; // rsi
long long *v13; // rdi
long long v14; // r8
_QWORD *v15; // r12
long long v16; // rdx
unsigned int v17; // eax
long long v18; // r13
long long v19; // rax
_QWORD *v20; // r15
long long v21; // r13
long long v22; // rax
_QWORD *v23; // rcx
_QWORD *v24; // rbp
int v25; // r13d
long long *v26; // rdx
long long v27; // rsi
int v28; // eax
long long v29; // rax
long long v30; // rbp
long long *v31; // rax
long long v32; // rax
long long v33; // rdx
long long v34; // rdi
unsigned long long v36; // [rsp+8h] [rbp-40h] BYREF
long long v37; // [rsp+10h] [rbp-38h]
v8 = (_QWORD *)js_malloc(a1, 80LL);
if ( !v8 )
return 0LL;
v9 = v8;
*v8 = 1LL;
v8[1] = a2;
if ( *(_DWORD *)a2 )
{
v29 = js_malloc(a1, 24LL);
v30 = v29;
if ( v29 )
{
*(_DWORD *)v29 = 0;
*(_QWORD *)(v29 + 16) = v9;
v36 = (unsigned long long)a3;
if ( (_DWORD)a4 == -8 )
{
v31 = (long long *)(v36 + 16);
}
else
{
if ( (_DWORD)a4 != -1 )
abort();
v31 = (long long *)(v36 + 40);
}
*(_QWORD *)(v30 + 8) = *v31;
*v31 = v30;
}
else
{
v37 = *(_QWORD *)(a1 + 24);
--*(_QWORD *)(v37 + 40);
v32 = (*(long long ( **)(_QWORD *))(v37 + 32))(v9);
v33 = v37;
v34 = *(_QWORD *)(v37 + 64);
*(_QWORD *)(v37 + 48) = *(_QWORD *)(v37 + 48) - v32 - 8;
(*(void ( **)(long long, _QWORD *))(v33 + 16))(v34, v9);
}
if ( v30 )
goto LABEL_5;
return 0LL;
}
v36 = (unsigned long long)a3;
if ( (unsigned int)a4 >= 0xFFFFFFF7 )
++*(_DWORD *)v36;
LABEL_5:
v9[6] = a3;
v9[7] = a4;
v10 = map_hash_key(a3, a4);
v11 = *(_DWORD *)(a2 + 40);
v12 = *(_QWORD *)(a2 + 32);
v13 = (long long *)(v12 + 16LL * (v10 & (unsigned int)(v11 - 1)));
v14 = *v13;
*(_QWORD *)(v14 + 8) = v9 + 4;
v9[4] = v14;
v9[5] = v13;
*v13 = (long long)(v9 + 4);
v15 = (_QWORD *)(a2 + 8);
v16 = *(_QWORD *)(a2 + 8);
*(_QWORD *)(v16 + 8) = v9 + 2;
v9[2] = v16;
v9[3] = a2 + 8;
*(_QWORD *)(a2 + 8) = v9 + 2;
v17 = *(_DWORD *)(a2 + 24) + 1;
*(_DWORD *)(a2 + 24) = v17;
if ( v17 >= *(_DWORD *)(a2 + 44) )
{
v18 = 4LL;
if ( v11 != 1 )
v18 = (unsigned int)(2 * v11);
v19 = js_realloc2(a1, v12, 16 * v18, &v36);
if ( v19 )
{
v20 = (_QWORD *)v19;
v21 = (unsigned int)(v36 >> 4) + (unsigned int)v18;
if ( (_DWORD)v21 )
{
v22 = (unsigned int)v21;
v23 = v20;
do
{
*v23 = v23;
v23[1] = v23;
v23 += 2;
--v22;
}
while ( v22 );
}
v37 = v21;
v24 = *(_QWORD **)(a2 + 16);
if ( v24 != v15 )
{
v25 = v37 - 1;
do
{
if ( !*((_DWORD *)v24 - 3) )
{
v26 = &v20[2 * (v25 & (unsigned int)map_hash_key(v24[4], v24[5]))];
v27 = *v26;
*(_QWORD *)(v27 + 8) = v24 + 2;
v24[2] = v27;
v24[3] = v26;
*v26 = (long long)(v24 + 2);
}
v24 = (_QWORD *)v24[1];
}
while ( v24 != v15 );
}
*(_QWORD *)(a2 + 32) = v20;
v28 = v37;
*(_DWORD *)(a2 + 40) = v37;
*(_DWORD *)(a2 + 44) = 2 * v28;
}
}
return v9;
}
| map_add_record:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R12,RCX
MOV R13,RDX
MOV R14,RSI
MOV R15,RDI
PUSH 0x50
POP RSI
CALL 0x0010ede6
TEST RAX,RAX
JZ 0x001117df
MOV RBX,RAX
MOV qword ptr [RAX],0x1
MOV qword ptr [RAX + 0x8],R14
CMP dword ptr [R14],0x0
JNZ 0x00111754
MOV qword ptr [RSP + 0x8],R13
CMP R12D,-0x9
JC 0x00111621
MOV RAX,qword ptr [RSP + 0x8]
INC dword ptr [RAX]
LAB_00111621:
MOV qword ptr [RBX + 0x30],R13
MOV qword ptr [RBX + 0x38],R12
MOV RDI,R13
MOV RSI,R12
CALL 0x0014750b
MOV ECX,dword ptr [R14 + 0x28]
LEA EDX,[RCX + -0x1]
AND EDX,EAX
LEA RAX,[RBX + 0x20]
MOV RSI,qword ptr [R14 + 0x20]
SHL RDX,0x4
LEA RDI,[RSI + RDX*0x1]
MOV R8,qword ptr [RSI + RDX*0x1]
MOV qword ptr [R8 + 0x8],RAX
MOV qword ptr [RBX + 0x20],R8
MOV qword ptr [RBX + 0x28],RDI
MOV qword ptr [RSI + RDX*0x1],RAX
MOV RAX,RBX
ADD RAX,0x10
LEA R12,[R14 + 0x8]
MOV RDX,qword ptr [R14 + 0x8]
MOV qword ptr [RDX + 0x8],RAX
MOV qword ptr [RBX + 0x10],RDX
MOV qword ptr [RBX + 0x18],R12
MOV qword ptr [R14 + 0x8],RAX
MOV EAX,dword ptr [R14 + 0x18]
INC EAX
MOV dword ptr [R14 + 0x18],EAX
CMP EAX,dword ptr [R14 + 0x2c]
JC 0x001117e1
LEA EAX,[RCX + RCX*0x1]
CMP ECX,0x1
PUSH 0x4
POP R13
CMOVNZ R13D,EAX
MOV RDX,R13
SHL RDX,0x4
LEA RCX,[RSP + 0x8]
MOV RDI,R15
CALL 0x0011cc0f
TEST RAX,RAX
JZ 0x001117e1
MOV R15,RAX
MOV RAX,qword ptr [RSP + 0x8]
SHR RAX,0x4
ADD R13D,EAX
JZ 0x001116e6
MOV EAX,R13D
MOV RCX,R15
LAB_001116d6:
MOV qword ptr [RCX],RCX
MOV qword ptr [RCX + 0x8],RCX
ADD RCX,0x10
DEC RAX
JNZ 0x001116d6
LAB_001116e6:
MOV qword ptr [RSP + 0x10],R13
MOV RBP,qword ptr [R14 + 0x10]
CMP RBP,R12
JZ 0x0011173c
MOV RAX,qword ptr [RSP + 0x10]
LEA R13D,[RAX + -0x1]
LAB_001116fd:
CMP dword ptr [RBP + -0xc],0x0
JNZ 0x00111733
MOV RDI,qword ptr [RBP + 0x20]
MOV RSI,qword ptr [RBP + 0x28]
CALL 0x0014750b
AND EAX,R13D
LEA RCX,[RBP + 0x10]
SHL RAX,0x4
LEA RDX,[R15 + RAX*0x1]
MOV RSI,qword ptr [R15 + RAX*0x1]
MOV qword ptr [RSI + 0x8],RCX
MOV qword ptr [RBP + 0x10],RSI
MOV qword ptr [RBP + 0x18],RDX
MOV qword ptr [R15 + RAX*0x1],RCX
LAB_00111733:
MOV RBP,qword ptr [RBP + 0x8]
CMP RBP,R12
JNZ 0x001116fd
LAB_0011173c:
MOV qword ptr [R14 + 0x20],R15
MOV RAX,qword ptr [RSP + 0x10]
MOV dword ptr [R14 + 0x28],EAX
ADD EAX,EAX
MOV dword ptr [R14 + 0x2c],EAX
JMP 0x001117e1
LAB_00111754:
PUSH 0x18
POP RSI
MOV RDI,R15
CALL 0x0010ede6
MOV RBP,RAX
TEST RAX,RAX
JZ 0x0011178b
AND dword ptr [RBP],0x0
MOV qword ptr [RBP + 0x10],RBX
MOV qword ptr [RSP + 0x8],R13
CMP R12D,-0x8
JZ 0x001117c3
CMP R12D,-0x1
JNZ 0x001117f3
MOV RAX,qword ptr [RSP + 0x8]
ADD RAX,0x28
JMP 0x001117cc
LAB_0011178b:
MOV RAX,qword ptr [R15 + 0x18]
MOV qword ptr [RSP + 0x10],RAX
DEC qword ptr [RAX + 0x28]
MOV RDI,RBX
MOV RAX,qword ptr [RSP + 0x10]
CALL qword ptr [RAX + 0x20]
MOV RDX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RDX + 0x30]
MOV RDI,qword ptr [RDX + 0x40]
SUB RCX,RAX
ADD RCX,-0x8
MOV qword ptr [RDX + 0x30],RCX
MOV RSI,RBX
CALL qword ptr [RDX + 0x10]
JMP 0x001117d6
LAB_001117c3:
MOV RAX,qword ptr [RSP + 0x8]
ADD RAX,0x10
LAB_001117cc:
MOV RCX,qword ptr [RAX]
MOV qword ptr [RBP + 0x8],RCX
MOV qword ptr [RAX],RBP
LAB_001117d6:
TEST RBP,RBP
JNZ 0x00111621
LAB_001117df:
XOR EBX,EBX
LAB_001117e1:
MOV RAX,RBX
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001117f3:
CALL 0x0010e090
|
int8 * map_add_record(long param_1,int *param_2,int *param_3,int8 param_4)
{
int iVar1;
int iVar2;
uint uVar3;
uint uVar4;
int8 *puVar5;
long lVar6;
int4 *puVar7;
int *piVar8;
long lVar9;
long lVar10;
int *piVar11;
ulong uVar12;
int *local_40;
ulong local_38;
puVar5 = (int8 *)js_malloc(param_1,0x50);
if (puVar5 == (int8 *)0x0) {
LAB_001117df:
puVar5 = (int8 *)0x0;
}
else {
*puVar5 = 1;
puVar5[1] = param_2;
uVar3 = (uint)param_4;
if (*param_2 == 0) {
local_40 = param_3;
if (0xfffffff6 < uVar3) {
*param_3 = *param_3 + 1;
}
}
else {
puVar7 = (int4 *)js_malloc(param_1,0x18);
if (puVar7 == (int4 *)0x0) {
local_38 = *(long *)(param_1 + 0x18);
*(long *)(local_38 + 0x28) = *(long *)(local_38 + 0x28) + -1;
lVar6 = (**(code **)(local_38 + 0x20))(puVar5);
*(long *)(local_38 + 0x30) = (*(long *)(local_38 + 0x30) - lVar6) + -8;
(**(code **)(local_38 + 0x10))(*(int8 *)(local_38 + 0x40),puVar5);
}
else {
*puVar7 = 0;
*(int8 **)(puVar7 + 4) = puVar5;
if (uVar3 == 0xfffffff8) {
piVar8 = param_3 + 4;
}
else {
if (uVar3 != 0xffffffff) {
local_40 = param_3;
/* WARNING: Subroutine does not return */
abort();
}
piVar8 = param_3 + 10;
}
*(int8 *)(puVar7 + 2) = *(int8 *)piVar8;
*(int4 **)piVar8 = puVar7;
local_40 = param_3;
}
if (puVar7 == (int4 *)0x0) goto LAB_001117df;
}
puVar5[6] = param_3;
puVar5[7] = param_4;
uVar3 = map_hash_key(param_3,param_4);
iVar1 = param_2[10];
lVar6 = *(long *)(param_2 + 8);
lVar10 = (ulong)(iVar1 - 1U & uVar3) * 0x10;
lVar9 = *(long *)(lVar6 + lVar10);
*(int8 **)(lVar9 + 8) = puVar5 + 4;
puVar5[4] = lVar9;
puVar5[5] = lVar6 + lVar10;
*(int8 **)(lVar6 + lVar10) = puVar5 + 4;
piVar8 = param_2 + 2;
lVar9 = *(long *)(param_2 + 2);
*(int8 **)(lVar9 + 8) = puVar5 + 2;
puVar5[2] = lVar9;
puVar5[3] = piVar8;
*(int8 **)(param_2 + 2) = puVar5 + 2;
iVar2 = param_2[6];
param_2[6] = iVar2 + 1U;
if ((uint)param_2[0xb] <= iVar2 + 1U) {
uVar12 = 4;
if (iVar1 != 1) {
uVar12 = (ulong)(uint)(iVar1 * 2);
}
lVar6 = js_realloc2(param_1,lVar6,uVar12 << 4,&local_40);
if (lVar6 != 0) {
uVar3 = (int)uVar12 + (int)((ulong)local_40 >> 4);
local_38 = (ulong)uVar3;
if (uVar3 != 0) {
uVar12 = (ulong)uVar3;
lVar9 = lVar6;
do {
*(long *)lVar9 = lVar9;
*(long *)(lVar9 + 8) = lVar9;
lVar9 = lVar9 + 0x10;
uVar12 = uVar12 - 1;
} while (uVar12 != 0);
}
piVar11 = *(int **)(param_2 + 4);
if (piVar11 != piVar8) {
do {
if (piVar11[-3] == 0) {
uVar4 = map_hash_key(*(int8 *)(piVar11 + 8),*(int8 *)(piVar11 + 10));
lVar10 = (ulong)(uVar4 & uVar3 - 1) * 0x10;
lVar9 = *(long *)(lVar6 + lVar10);
*(int **)(lVar9 + 8) = piVar11 + 4;
*(long *)(piVar11 + 4) = lVar9;
*(long *)(piVar11 + 6) = lVar6 + lVar10;
*(int **)(lVar6 + lVar10) = piVar11 + 4;
}
piVar11 = *(int **)(piVar11 + 2);
} while (piVar11 != piVar8);
}
*(long *)(param_2 + 8) = lVar6;
param_2[10] = (int)local_38;
param_2[0xb] = (int)local_38 * 2;
}
}
}
return puVar5;
}
| |
28,234 | Generator::create_label[abi:cxx11]() | BhuvanGudi[P]LexiParse/src/generation.hpp | std::string create_label()
{
std::stringstream ss;
ss << "label" << m_label_count++;
return ss.str();
} | O1 | cpp | Generator::create_label[abi:cxx11]():
pushq %r15
pushq %r14
pushq %rbx
subq $0x190, %rsp # imm = 0x190
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2140
leaq 0x18(%rsp), %r15
leaq 0xb6b(%rip), %rsi # 0x955f
movl $0x5, %edx
movq %r15, %rdi
callq 0x2230
movl 0x1d8(%r14), %esi
leal 0x1(%rsi), %eax
movl %eax, 0x1d8(%r14)
movq %r15, %rdi
callq 0x22c0
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0x2160
movq 0x4572(%rip), %rsi # 0xcfa0
leaq 0x8(%rsp), %rdi
callq 0x2170
leaq 0x88(%rsp), %rdi
callq 0x2090
movq %rbx, %rax
addq $0x190, %rsp # imm = 0x190
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x4541(%rip), %rsi # 0xcfa0
leaq 0x8(%rsp), %rdi
callq 0x2170
leaq 0x88(%rsp), %rdi
callq 0x2090
movq %rbx, %rdi
callq 0x22d0
| _ZN9Generator12create_labelB5cxx11Ev:
push r15
push r14
push rbx
sub rsp, 190h
mov r14, rsi
mov rbx, rdi
lea rdi, [rsp+1A8h+var_1A0]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(void)
lea r15, [rsp+1A8h+var_190]
lea rsi, aLabel; "label"
mov edx, 5
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 esi, [r14+1D8h]
lea eax, [rsi+1]
mov [r14+1D8h], eax
mov rdi, r15
call __ZNSolsEi; std::ostream::operator<<(int)
lea rsi, [rsp+1A8h+var_188]
mov rdi, rbx
call __ZNKRSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEE3strEv; std::stringbuf::str(void)
mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+1A8h+var_1A0]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
lea rdi, [rsp+1A8h+var_120]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rax, rbx
add rsp, 190h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
mov rsi, cs:_ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE_ptr
lea rdi, [rsp+arg_0]
call __ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED2Ev; std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream()
lea rdi, [rsp+arg_80]; this
call __ZNSt8ios_baseD2Ev; std::ios_base::~ios_base()
mov rdi, rbx
call __Unwind_Resume
| long long Generator::create_label[abi:cxx11](long long a1, long long a2, long long a3)
{
long long v4; // rsi
_BYTE v6[16]; // [rsp+8h] [rbp-1A0h] BYREF
_BYTE v7[8]; // [rsp+18h] [rbp-190h] BYREF
_BYTE v8[104]; // [rsp+20h] [rbp-188h] BYREF
_BYTE v9[288]; // [rsp+88h] [rbp-120h] BYREF
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::basic_stringstream(v6, a2, a3);
std::__ostream_insert<char,std::char_traits<char>>(v7, "label", 5LL);
v4 = *(unsigned int *)(a2 + 472);
*(_DWORD *)(a2 + 472) = v4 + 1;
std::ostream::operator<<(v7, v4);
std::stringbuf::str(a1, v8);
std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::~basic_stringstream(
v6,
&`VTT for'std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>);
std::ios_base::~ios_base((std::ios_base *)v9);
return a1;
}
| create_label[abi:cxx11]:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x190
MOV R14,RSI
MOV RBX,RDI
LEA RDI,[RSP + 0x8]
CALL 0x00102140
LEA R15,[RSP + 0x18]
LAB_001089ed:
LEA RSI,[0x10955f]
MOV EDX,0x5
MOV RDI,R15
CALL 0x00102230
MOV ESI,dword ptr [R14 + 0x1d8]
LEA EAX,[RSI + 0x1]
MOV dword ptr [R14 + 0x1d8],EAX
MOV RDI,R15
CALL 0x001022c0
LEA RSI,[RSP + 0x20]
MOV RDI,RBX
CALL 0x00102160
LAB_00108a27:
MOV RSI,qword ptr [0x0010cfa0]
LEA RDI,[RSP + 0x8]
CALL 0x00102170
LEA RDI,[RSP + 0x88]
CALL 0x00102090
MOV RAX,RBX
ADD RSP,0x190
POP RBX
POP R14
POP R15
RET
|
/* Generator::create_label[abi:cxx11]() */
void Generator::create_label_abi_cxx11_(void)
{
int iVar1;
long in_RSI;
stringstream local_1a0 [16];
ostream local_190 [112];
ios_base local_120 [264];
std::__cxx11::stringstream::stringstream(local_1a0);
/* try { // try from 001089ed to 00108a26 has its CatchHandler @ 00108a55 */
std::__ostream_insert<char,std::char_traits<char>>(local_190,"label",5);
iVar1 = *(int *)(in_RSI + 0x1d8);
*(int *)(in_RSI + 0x1d8) = iVar1 + 1;
std::ostream::operator<<(local_190,iVar1);
std::__cxx11::stringbuf::str();
std::__cxx11::stringstream::~stringstream(local_1a0);
std::ios_base::~ios_base(local_120);
return;
}
| |
28,235 | chud_bs | bluesky950520[P]quickjs/libbf.c | static void chud_bs(bf_t *P, bf_t *Q, bf_t *G, int64_t a, int64_t b, int need_g,
limb_t prec)
{
bf_context_t *s = P->ctx;
int64_t c;
if (a == (b - 1)) {
bf_t T0, T1;
bf_init(s, &T0);
bf_init(s, &T1);
bf_set_ui(G, 2 * b - 1);
bf_mul_ui(G, G, 6 * b - 1, prec, BF_RNDN);
bf_mul_ui(G, G, 6 * b - 5, prec, BF_RNDN);
bf_set_ui(&T0, CHUD_B);
bf_mul_ui(&T0, &T0, b, prec, BF_RNDN);
bf_set_ui(&T1, CHUD_A);
bf_add(&T0, &T0, &T1, prec, BF_RNDN);
bf_mul(P, G, &T0, prec, BF_RNDN);
P->sign = b & 1;
bf_set_ui(Q, b);
bf_mul_ui(Q, Q, b, prec, BF_RNDN);
bf_mul_ui(Q, Q, b, prec, BF_RNDN);
bf_mul_ui(Q, Q, (uint64_t)CHUD_C * CHUD_C * CHUD_C / 24, prec, BF_RNDN);
bf_delete(&T0);
bf_delete(&T1);
} else {
bf_t P2, Q2, G2;
bf_init(s, &P2);
bf_init(s, &Q2);
bf_init(s, &G2);
c = (a + b) / 2;
chud_bs(P, Q, G, a, c, 1, prec);
chud_bs(&P2, &Q2, &G2, c, b, need_g, prec);
/* Q = Q1 * Q2 */
/* G = G1 * G2 */
/* P = P1 * Q2 + P2 * G1 */
bf_mul(&P2, &P2, G, prec, BF_RNDN);
if (!need_g)
bf_set_ui(G, 0);
bf_mul(P, P, &Q2, prec, BF_RNDN);
bf_add(P, P, &P2, prec, BF_RNDN);
bf_delete(&P2);
bf_mul(Q, Q, &Q2, prec, BF_RNDN);
bf_delete(&Q2);
if (need_g)
bf_mul(G, G, &G2, prec, BF_RNDN);
bf_delete(&G2);
}
} | O1 | c | chud_bs:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %r8, %r13
movabsq $-0x8000000000000000, %r10 # imm = 0x8000000000000000
movabsq $0x3fffffffffffffff, %rbx # imm = 0x3FFFFFFFFFFFFFFF
movq (%rdi), %rax
decq %r8
cmpq %rcx, %r8
jne 0x91663
leaq 0x38(%rsp), %rbp
movq %rax, (%rbp)
xorl %ecx, %ecx
movl %ecx, 0x8(%rbp)
movq %r10, 0x10(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rbp)
leaq 0x10(%rsp), %r8
movq %rax, (%r8)
movl %ecx, 0x8(%r8)
movq %r10, 0x10(%r8)
movups %xmm0, 0x18(%r8)
leaq (%r13,%r13), %r14
movq %rsi, %r12
leaq -0x1(%r13,%r13), %rsi
movq %rdi, 0x8(%rsp)
movq %rdx, %rdi
movq %rdx, %r15
callq 0x83ea7
leaq (%r14,%r14,2), %rdx
decq %rdx
movq %r15, %rdi
movq %r15, %rsi
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x87338
leaq (%r14,%r14,2), %rdx
addq $-0x5, %rdx
movq %r15, %rdi
movq %r15, %rsi
movq %rbx, %rcx
movq %rbx, %r14
xorl %r8d, %r8d
callq 0x87338
movl $0x207e2da6, %esi # imm = 0x207E2DA6
movq %rbp, %rdi
callq 0x83ea7
movq %rbp, %rdi
movq %rbp, %rsi
movq %r13, %rdx
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x87338
movl $0xcf6371, %esi # imm = 0xCF6371
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x83ea7
leaq -0xa5ec(%rip), %r9 # 0x86fc0
movq %rbp, %rdi
movq %rbp, %rsi
movq %rbx, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x86f26
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
movq %r15, %rsi
movq %rbp, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x85afd
movl %r13d, %eax
andl $0x1, %eax
movl %eax, 0x8(%rbx)
movq %r12, %rdi
movq %r13, %rsi
callq 0x83ea7
movq %r12, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x87338
movq %r12, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x87338
movabsq $0x26dd041d878000, %rdx # imm = 0x26DD041D878000
movq %r12, %rdi
movq %r12, %rsi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x87338
movq (%rbp), %rax
testq %rax, %rax
je 0x9164b
movq 0x58(%rsp), %rsi
testq %rsi, %rsi
je 0x9164b
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x917d5
movq 0x30(%rsp), %rsi
jmp 0x917c8
movl %r9d, %ebp
leaq 0x38(%rsp), %r9
movq %rax, (%r9)
xorl %r8d, %r8d
movl %r8d, 0x8(%r9)
movq %r10, 0x10(%r9)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r9)
leaq 0x10(%rsp), %r9
movq %rax, (%r9)
movl %r8d, 0x8(%r9)
movq %r10, 0x10(%r9)
movups %xmm0, 0x18(%r9)
leaq 0x60(%rsp), %r14
movq %rax, (%r14)
movl %r8d, 0x8(%r14)
movq %r10, 0x10(%r14)
movups %xmm0, 0x18(%r14)
leaq (%rcx,%r13), %rax
movq %rax, %r12
shrq $0x3f, %r12
addq %rax, %r12
sarq %r12
movq %rdi, %r15
movq %rsi, 0x8(%rsp)
movq %rdx, %rbx
movq %r12, %r8
movl $0x1, %r9d
callq 0x914bc
leaq 0x38(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movq %r14, %rdx
movq %r12, %rcx
movabsq $0x3fffffffffffffff, %r14 # imm = 0x3FFFFFFFFFFFFFFF
movq %r13, %r8
movl %ebp, %r9d
callq 0x914bc
leaq 0x38(%rsp), %rdi
movq %rdi, %rsi
movq %rbx, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x85afd
testl %ebp, %ebp
je 0x917e7
movq %rbx, %r12
leaq 0x10(%rsp), %rdx
movq %r15, %rdi
movq %r15, %rsi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x85afd
leaq -0xa778(%rip), %r9 # 0x86fc0
leaq 0x38(%rsp), %rbx
movq %r15, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x86f26
movq (%rbx), %rax
testq %rax, %rax
je 0x9176b
movq 0x58(%rsp), %rsi
testq %rsi, %rsi
je 0x9176b
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
leaq 0x10(%rsp), %rbx
movq 0x8(%rsp), %rdi
movq %rdi, %rsi
movq %rbx, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x85afd
movq (%rbx), %rax
testq %rax, %rax
je 0x917a0
movq 0x30(%rsp), %rsi
testq %rsi, %rsi
je 0x917a0
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
leaq 0x60(%rsp), %rdx
movq %r12, %rdi
movq %r12, %rsi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x85afd
movq 0x60(%rsp), %rax
testq %rax, %rax
je 0x917d5
movq 0x80(%rsp), %rsi
testq %rsi, %rsi
je 0x917d5
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x0, 0x8(%rbx)
movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000
movq %rax, 0x10(%rbx)
cmpq $0x0, 0x18(%rbx)
je 0x9181e
movq (%rbx), %rax
movq 0x20(%rbx), %rsi
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
movq %rax, 0x20(%rbx)
movq $0x0, 0x18(%rbx)
leaq 0x10(%rsp), %rdx
movq %r15, %rdi
movq %r15, %rsi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x85afd
leaq -0xa87b(%rip), %r9 # 0x86fc0
leaq 0x38(%rsp), %rbx
movq %r15, %rdi
movq %r15, %rsi
movq %rbx, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x86f26
movq (%rbx), %rax
testq %rax, %rax
je 0x9186e
movq 0x58(%rsp), %rsi
testq %rsi, %rsi
je 0x9186e
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
leaq 0x10(%rsp), %rbx
movq 0x8(%rsp), %rdi
movq %rdi, %rsi
movq %rbx, %rdx
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x85afd
movq (%rbx), %rax
testq %rax, %rax
je 0x917b6
movq 0x30(%rsp), %rsi
testq %rsi, %rsi
je 0x917b6
movq (%rax), %rdi
xorl %edx, %edx
callq *0x8(%rax)
jmp 0x917b6
| chud_bs:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 88h
mov r13, r8
mov r10, 8000000000000000h
mov rbx, 3FFFFFFFFFFFFFFFh
mov rax, [rdi]
dec r8
cmp r8, rcx
jnz loc_91663
lea rbp, [rsp+0B8h+var_80]
mov [rbp+0], rax
xor ecx, ecx
mov [rbp+8], ecx
mov [rbp+10h], r10
xorps xmm0, xmm0
movups xmmword ptr [rbp+18h], xmm0
lea r8, [rsp+0B8h+var_A8]
mov [r8], rax
mov [r8+8], ecx
mov [r8+10h], r10
movups xmmword ptr [r8+18h], xmm0
lea r14, [r13+r13+0]
mov r12, rsi
lea rsi, [r13+r13-1]
mov [rsp+0B8h+var_B0], rdi
mov rdi, rdx
mov r15, rdx
call bf_set_ui
lea rdx, [r14+r14*2]
dec rdx
mov rdi, r15
mov rsi, r15
mov rcx, rbx
xor r8d, r8d
call bf_mul_ui
lea rdx, [r14+r14*2]
add rdx, 0FFFFFFFFFFFFFFFBh
mov rdi, r15
mov rsi, r15
mov rcx, rbx
mov r14, rbx
xor r8d, r8d
call bf_mul_ui
mov esi, 207E2DA6h
mov rdi, rbp
call bf_set_ui
mov rdi, rbp
mov rsi, rbp
mov rdx, r13
mov rcx, rbx
xor r8d, r8d
call bf_mul_ui
mov esi, 0CF6371h
lea rbx, [rsp+0B8h+var_A8]
mov rdi, rbx
call bf_set_ui
lea r9, __bf_add
mov rdi, rbp
mov rsi, rbp
mov rdx, rbx
mov rcx, r14
xor r8d, r8d
call bf_op2
mov rbx, [rsp+0B8h+var_B0]
mov rdi, rbx
mov rsi, r15
mov rdx, rbp
mov rcx, r14
xor r8d, r8d
call bf_mul
mov eax, r13d
and eax, 1
mov [rbx+8], eax
mov rdi, r12
mov rsi, r13
call bf_set_ui
mov rdi, r12
mov rsi, r12
mov rdx, r13
mov rcx, r14
xor r8d, r8d
call bf_mul_ui
mov rdi, r12
mov rsi, r12
mov rdx, r13
mov rcx, r14
xor r8d, r8d
call bf_mul_ui
mov rdx, 26DD041D878000h
mov rdi, r12
mov rsi, r12
mov rcx, r14
xor r8d, r8d
call bf_mul_ui
mov rax, [rbp+0]
test rax, rax
jz short loc_9164B
mov rsi, [rsp+0B8h+var_60]
test rsi, rsi
jz short loc_9164B
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
loc_9164B:
mov rax, [rsp+0B8h+var_A8]
test rax, rax
jz loc_917D5
mov rsi, [rsp+0B8h+var_88]
jmp loc_917C8
loc_91663:
mov ebp, r9d
lea r9, [rsp+0B8h+var_80]
mov [r9], rax
xor r8d, r8d
mov [r9+8], r8d
mov [r9+10h], r10
xorps xmm0, xmm0
movups xmmword ptr [r9+18h], xmm0
lea r9, [rsp+0B8h+var_A8]
mov [r9], rax
mov [r9+8], r8d
mov [r9+10h], r10
movups xmmword ptr [r9+18h], xmm0
lea r14, [rsp+0B8h+var_58]
mov [r14], rax
mov [r14+8], r8d
mov [r14+10h], r10
movups xmmword ptr [r14+18h], xmm0
lea rax, [rcx+r13]
mov r12, rax
shr r12, 3Fh
add r12, rax
sar r12, 1
mov r15, rdi
mov [rsp+0B8h+var_B0], rsi
mov rbx, rdx
mov r8, r12
mov r9d, 1
call chud_bs
lea rdi, [rsp+0B8h+var_80]
lea rsi, [rsp+0B8h+var_A8]
mov rdx, r14
mov rcx, r12
mov r14, 3FFFFFFFFFFFFFFFh
mov r8, r13
mov r9d, ebp
call chud_bs
lea rdi, [rsp+0B8h+var_80]
mov rsi, rdi
mov rdx, rbx
mov rcx, r14
xor r8d, r8d
call bf_mul
test ebp, ebp
jz loc_917E7
mov r12, rbx
lea rdx, [rsp+0B8h+var_A8]
mov rdi, r15
mov rsi, r15
mov rcx, r14
xor r8d, r8d
call bf_mul
lea r9, __bf_add
lea rbx, [rsp+0B8h+var_80]
mov rdi, r15
mov rsi, r15
mov rdx, rbx
mov rcx, r14
xor r8d, r8d
call bf_op2
mov rax, [rbx]
test rax, rax
jz short loc_9176B
mov rsi, [rsp+0B8h+var_60]
test rsi, rsi
jz short loc_9176B
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
loc_9176B:
lea rbx, [rsp+0B8h+var_A8]
mov rdi, [rsp+0B8h+var_B0]
mov rsi, rdi
mov rdx, rbx
mov rcx, r14
xor r8d, r8d
call bf_mul
mov rax, [rbx]
test rax, rax
jz short loc_917A0
mov rsi, [rsp+0B8h+var_88]
test rsi, rsi
jz short loc_917A0
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
loc_917A0:
lea rdx, [rsp+0B8h+var_58]
mov rdi, r12
mov rsi, r12
mov rcx, r14
xor r8d, r8d
call bf_mul
loc_917B6:
mov rax, [rsp+0B8h+var_58]
test rax, rax
jz short loc_917D5
mov rsi, [rsp+0B8h+var_38]
loc_917C8:
test rsi, rsi
jz short loc_917D5
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
loc_917D5:
add rsp, 88h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_917E7:
mov dword ptr [rbx+8], 0
mov rax, 8000000000000000h
mov [rbx+10h], rax
cmp qword ptr [rbx+18h], 0
jz short loc_9181E
mov rax, [rbx]
mov rsi, [rbx+20h]
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
mov [rbx+20h], rax
mov qword ptr [rbx+18h], 0
loc_9181E:
lea rdx, [rsp+0B8h+var_A8]
mov rdi, r15
mov rsi, r15
mov rcx, r14
xor r8d, r8d
call bf_mul
lea r9, __bf_add
lea rbx, [rsp+0B8h+var_80]
mov rdi, r15
mov rsi, r15
mov rdx, rbx
mov rcx, r14
xor r8d, r8d
call bf_op2
mov rax, [rbx]
test rax, rax
jz short loc_9186E
mov rsi, [rsp+0B8h+var_60]
test rsi, rsi
jz short loc_9186E
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
loc_9186E:
lea rbx, [rsp+0B8h+var_A8]
mov rdi, [rsp+0B8h+var_B0]
mov rsi, rdi
mov rdx, rbx
mov rcx, r14
xor r8d, r8d
call bf_mul
mov rax, [rbx]
test rax, rax
jz loc_917B6
mov rsi, [rsp+0B8h+var_88]
test rsi, rsi
jz loc_917B6
mov rdi, [rax]
xor edx, edx
call qword ptr [rax+8]
jmp loc_917B6
| long long chud_bs(long long a1, __int128 *a2, __int128 *a3, long long a4, unsigned long long a5, unsigned int a6)
{
long long v7; // rax
long long result; // rax
long long v11; // rsi
long long v13; // r12
__int128 v15; // [rsp+10h] [rbp-A8h] BYREF
unsigned long long v16; // [rsp+20h] [rbp-98h]
__int128 v17; // [rsp+28h] [rbp-90h]
__int128 v18; // [rsp+38h] [rbp-80h] BYREF
unsigned long long v19; // [rsp+48h] [rbp-70h]
__int128 v20; // [rsp+50h] [rbp-68h]
long long v21; // [rsp+60h] [rbp-58h] BYREF
int v22; // [rsp+68h] [rbp-50h]
unsigned long long v23; // [rsp+70h] [rbp-48h]
__int128 v24; // [rsp+78h] [rbp-40h]
v7 = *(_QWORD *)a1;
if ( a5 - 1 == a4 )
{
*(_QWORD *)&v18 = *(_QWORD *)a1;
DWORD2(v18) = 0;
v19 = 0x8000000000000000LL;
v20 = 0LL;
*(_QWORD *)&v15 = v7;
DWORD2(v15) = 0;
v16 = 0x8000000000000000LL;
v17 = 0LL;
bf_set_ui((_QWORD **)a3, 2 * a5 - 1);
bf_mul_ui(a3, (long long)a3, 6 * a5 - 1, 0x3FFFFFFFFFFFFFFFLL, 0);
bf_mul_ui(a3, (long long)a3, 6 * a5 - 5, 0x3FFFFFFFFFFFFFFFLL, 0);
bf_set_ui((_QWORD **)&v18, 0x207E2DA6uLL);
bf_mul_ui(&v18, (long long)&v18, a5, 0x3FFFFFFFFFFFFFFFLL, 0);
bf_set_ui((_QWORD **)&v15, 0xCF6371uLL);
bf_op2(&v18, &v18, &v15, 0x3FFFFFFFFFFFFFFFLL, 0LL, (long long ( *)(__int128 *))_bf_add);
bf_mul((__int128 *)a1, (long long)a3, (long long)&v18, 0x3FFFFFFFFFFFFFFFLL, 0);
*(_DWORD *)(a1 + 8) = a5 & 1;
bf_set_ui((_QWORD **)a2, a5);
bf_mul_ui(a2, (long long)a2, a5, 0x3FFFFFFFFFFFFFFFLL, 0);
bf_mul_ui(a2, (long long)a2, a5, 0x3FFFFFFFFFFFFFFFLL, 0);
bf_mul_ui(a2, (long long)a2, 0x26DD041D878000uLL, 0x3FFFFFFFFFFFFFFFLL, 0);
if ( (_QWORD)v18 && *((_QWORD *)&v20 + 1) )
(*(void ( **)(_QWORD, _QWORD, _QWORD))(v18 + 8))(*(_QWORD *)v18, *((_QWORD *)&v20 + 1), 0LL);
result = v15;
if ( (_QWORD)v15 )
{
v11 = *((_QWORD *)&v17 + 1);
goto LABEL_17;
}
}
else
{
*(_QWORD *)&v18 = *(_QWORD *)a1;
DWORD2(v18) = 0;
v19 = 0x8000000000000000LL;
v20 = 0LL;
*(_QWORD *)&v15 = v7;
DWORD2(v15) = 0;
v16 = 0x8000000000000000LL;
v17 = 0LL;
v21 = v7;
v22 = 0;
v23 = 0x8000000000000000LL;
v24 = 0LL;
v13 = (long long)(a4 + a5) / 2;
chud_bs(a1, a2, a3, a4, v13, 1LL);
chud_bs(&v18, &v15, &v21, v13, a5, a6);
bf_mul(&v18, (long long)&v18, (long long)a3, 0x3FFFFFFFFFFFFFFFLL, 0);
if ( a6 )
{
bf_mul((__int128 *)a1, a1, (long long)&v15, 0x3FFFFFFFFFFFFFFFLL, 0);
bf_op2(
(__int128 *)a1,
(__int128 *)a1,
&v18,
0x3FFFFFFFFFFFFFFFLL,
0LL,
(long long ( *)(__int128 *))_bf_add);
if ( (_QWORD)v18 && *((_QWORD *)&v20 + 1) )
(*(void ( **)(_QWORD, _QWORD, _QWORD))(v18 + 8))(*(_QWORD *)v18, *((_QWORD *)&v20 + 1), 0LL);
bf_mul(a2, (long long)a2, (long long)&v15, 0x3FFFFFFFFFFFFFFFLL, 0);
if ( (_QWORD)v15 && *((_QWORD *)&v17 + 1) )
(*(void ( **)(_QWORD, _QWORD, _QWORD))(v15 + 8))(*(_QWORD *)v15, *((_QWORD *)&v17 + 1), 0LL);
bf_mul(a3, (long long)a3, (long long)&v21, 0x3FFFFFFFFFFFFFFFLL, 0);
}
else
{
*((_DWORD *)a3 + 2) = 0;
*((_QWORD *)a3 + 2) = 0x8000000000000000LL;
if ( *((_QWORD *)a3 + 3) )
{
*((_QWORD *)a3 + 4) = (*(long long ( **)(_QWORD, _QWORD, _QWORD))(*(_QWORD *)a3 + 8LL))(
**(_QWORD **)a3,
*((_QWORD *)a3 + 4),
0LL);
*((_QWORD *)a3 + 3) = 0LL;
}
bf_mul((__int128 *)a1, a1, (long long)&v15, 0x3FFFFFFFFFFFFFFFLL, 0);
bf_op2(
(__int128 *)a1,
(__int128 *)a1,
&v18,
0x3FFFFFFFFFFFFFFFLL,
0LL,
(long long ( *)(__int128 *))_bf_add);
if ( (_QWORD)v18 && *((_QWORD *)&v20 + 1) )
(*(void ( **)(_QWORD, _QWORD, _QWORD))(v18 + 8))(*(_QWORD *)v18, *((_QWORD *)&v20 + 1), 0LL);
bf_mul(a2, (long long)a2, (long long)&v15, 0x3FFFFFFFFFFFFFFFLL, 0);
if ( (_QWORD)v15 && *((_QWORD *)&v17 + 1) )
(*(void ( **)(_QWORD, _QWORD, _QWORD))(v15 + 8))(*(_QWORD *)v15, *((_QWORD *)&v17 + 1), 0LL);
}
result = v21;
if ( v21 )
{
v11 = *((_QWORD *)&v24 + 1);
LABEL_17:
if ( v11 )
return (*(long long ( **)(_QWORD, long long, _QWORD))(result + 8))(*(_QWORD *)result, v11, 0LL);
}
}
return result;
}
| chud_bs:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x88
MOV R13,R8
MOV R10,-0x8000000000000000
MOV RBX,0x3fffffffffffffff
MOV RAX,qword ptr [RDI]
DEC R8
CMP R8,RCX
JNZ 0x00191663
LEA RBP,[RSP + 0x38]
MOV qword ptr [RBP],RAX
XOR ECX,ECX
MOV dword ptr [RBP + 0x8],ECX
MOV qword ptr [RBP + 0x10],R10
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RBP + 0x18],XMM0
LEA R8,[RSP + 0x10]
MOV qword ptr [R8],RAX
MOV dword ptr [R8 + 0x8],ECX
MOV qword ptr [R8 + 0x10],R10
MOVUPS xmmword ptr [R8 + 0x18],XMM0
LEA R14,[R13 + R13*0x1]
MOV R12,RSI
LEA RSI,[R13 + R13*0x1 + -0x1]
MOV qword ptr [RSP + 0x8],RDI
MOV RDI,RDX
MOV R15,RDX
CALL 0x00183ea7
LEA RDX,[R14 + R14*0x2]
DEC RDX
MOV RDI,R15
MOV RSI,R15
MOV RCX,RBX
XOR R8D,R8D
CALL 0x00187338
LEA RDX,[R14 + R14*0x2]
ADD RDX,-0x5
MOV RDI,R15
MOV RSI,R15
MOV RCX,RBX
MOV R14,RBX
XOR R8D,R8D
CALL 0x00187338
MOV ESI,0x207e2da6
MOV RDI,RBP
CALL 0x00183ea7
MOV RDI,RBP
MOV RSI,RBP
MOV RDX,R13
MOV RCX,RBX
XOR R8D,R8D
CALL 0x00187338
MOV ESI,0xcf6371
LEA RBX,[RSP + 0x10]
MOV RDI,RBX
CALL 0x00183ea7
LEA R9,[0x186fc0]
MOV RDI,RBP
MOV RSI,RBP
MOV RDX,RBX
MOV RCX,R14
XOR R8D,R8D
CALL 0x00186f26
MOV RBX,qword ptr [RSP + 0x8]
MOV RDI,RBX
MOV RSI,R15
MOV RDX,RBP
MOV RCX,R14
XOR R8D,R8D
CALL 0x00185afd
MOV EAX,R13D
AND EAX,0x1
MOV dword ptr [RBX + 0x8],EAX
MOV RDI,R12
MOV RSI,R13
CALL 0x00183ea7
MOV RDI,R12
MOV RSI,R12
MOV RDX,R13
MOV RCX,R14
XOR R8D,R8D
CALL 0x00187338
MOV RDI,R12
MOV RSI,R12
MOV RDX,R13
MOV RCX,R14
XOR R8D,R8D
CALL 0x00187338
MOV RDX,0x26dd041d878000
MOV RDI,R12
MOV RSI,R12
MOV RCX,R14
XOR R8D,R8D
CALL 0x00187338
MOV RAX,qword ptr [RBP]
TEST RAX,RAX
JZ 0x0019164b
MOV RSI,qword ptr [RSP + 0x58]
TEST RSI,RSI
JZ 0x0019164b
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
LAB_0019164b:
MOV RAX,qword ptr [RSP + 0x10]
TEST RAX,RAX
JZ 0x001917d5
MOV RSI,qword ptr [RSP + 0x30]
JMP 0x001917c8
LAB_00191663:
MOV EBP,R9D
LEA R9,[RSP + 0x38]
MOV qword ptr [R9],RAX
XOR R8D,R8D
MOV dword ptr [R9 + 0x8],R8D
MOV qword ptr [R9 + 0x10],R10
XORPS XMM0,XMM0
MOVUPS xmmword ptr [R9 + 0x18],XMM0
LEA R9,[RSP + 0x10]
MOV qword ptr [R9],RAX
MOV dword ptr [R9 + 0x8],R8D
MOV qword ptr [R9 + 0x10],R10
MOVUPS xmmword ptr [R9 + 0x18],XMM0
LEA R14,[RSP + 0x60]
MOV qword ptr [R14],RAX
MOV dword ptr [R14 + 0x8],R8D
MOV qword ptr [R14 + 0x10],R10
MOVUPS xmmword ptr [R14 + 0x18],XMM0
LEA RAX,[RCX + R13*0x1]
MOV R12,RAX
SHR R12,0x3f
ADD R12,RAX
SAR R12,0x1
MOV R15,RDI
MOV qword ptr [RSP + 0x8],RSI
MOV RBX,RDX
MOV R8,R12
MOV R9D,0x1
CALL 0x001914bc
LEA RDI,[RSP + 0x38]
LEA RSI,[RSP + 0x10]
MOV RDX,R14
MOV RCX,R12
MOV R14,0x3fffffffffffffff
MOV R8,R13
MOV R9D,EBP
CALL 0x001914bc
LEA RDI,[RSP + 0x38]
MOV RSI,RDI
MOV RDX,RBX
MOV RCX,R14
XOR R8D,R8D
CALL 0x00185afd
TEST EBP,EBP
JZ 0x001917e7
MOV R12,RBX
LEA RDX,[RSP + 0x10]
MOV RDI,R15
MOV RSI,R15
MOV RCX,R14
XOR R8D,R8D
CALL 0x00185afd
LEA R9,[0x186fc0]
LEA RBX,[RSP + 0x38]
MOV RDI,R15
MOV RSI,R15
MOV RDX,RBX
MOV RCX,R14
XOR R8D,R8D
CALL 0x00186f26
MOV RAX,qword ptr [RBX]
TEST RAX,RAX
JZ 0x0019176b
MOV RSI,qword ptr [RSP + 0x58]
TEST RSI,RSI
JZ 0x0019176b
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
LAB_0019176b:
LEA RBX,[RSP + 0x10]
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,RDI
MOV RDX,RBX
MOV RCX,R14
XOR R8D,R8D
CALL 0x00185afd
MOV RAX,qword ptr [RBX]
TEST RAX,RAX
JZ 0x001917a0
MOV RSI,qword ptr [RSP + 0x30]
TEST RSI,RSI
JZ 0x001917a0
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
LAB_001917a0:
LEA RDX,[RSP + 0x60]
MOV RDI,R12
MOV RSI,R12
MOV RCX,R14
XOR R8D,R8D
CALL 0x00185afd
LAB_001917b6:
MOV RAX,qword ptr [RSP + 0x60]
TEST RAX,RAX
JZ 0x001917d5
MOV RSI,qword ptr [RSP + 0x80]
LAB_001917c8:
TEST RSI,RSI
JZ 0x001917d5
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
LAB_001917d5:
ADD RSP,0x88
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001917e7:
MOV dword ptr [RBX + 0x8],0x0
MOV RAX,-0x8000000000000000
MOV qword ptr [RBX + 0x10],RAX
CMP qword ptr [RBX + 0x18],0x0
JZ 0x0019181e
MOV RAX,qword ptr [RBX]
MOV RSI,qword ptr [RBX + 0x20]
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
MOV qword ptr [RBX + 0x20],RAX
MOV qword ptr [RBX + 0x18],0x0
LAB_0019181e:
LEA RDX,[RSP + 0x10]
MOV RDI,R15
MOV RSI,R15
MOV RCX,R14
XOR R8D,R8D
CALL 0x00185afd
LEA R9,[0x186fc0]
LEA RBX,[RSP + 0x38]
MOV RDI,R15
MOV RSI,R15
MOV RDX,RBX
MOV RCX,R14
XOR R8D,R8D
CALL 0x00186f26
MOV RAX,qword ptr [RBX]
TEST RAX,RAX
JZ 0x0019186e
MOV RSI,qword ptr [RSP + 0x58]
TEST RSI,RSI
JZ 0x0019186e
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
LAB_0019186e:
LEA RBX,[RSP + 0x10]
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,RDI
MOV RDX,RBX
MOV RCX,R14
XOR R8D,R8D
CALL 0x00185afd
MOV RAX,qword ptr [RBX]
TEST RAX,RAX
JZ 0x001917b6
MOV RSI,qword ptr [RSP + 0x30]
TEST RSI,RSI
JZ 0x001917b6
MOV RDI,qword ptr [RAX]
XOR EDX,EDX
CALL qword ptr [RAX + 0x8]
JMP 0x001917b6
|
void chud_bs(int8 *param_1,int8 param_2,long *param_3,long param_4,long param_5,
int param_6)
{
int8 *puVar1;
long lVar2;
int8 *local_a8;
int4 local_a0;
int8 local_98;
int8 local_90;
long lStack_88;
int8 *local_80;
int4 local_78;
int8 local_70;
int8 local_68;
long lStack_60;
int8 *local_58;
int4 local_50;
int8 local_48;
int8 local_40;
long lStack_38;
local_a8 = (int8 *)*param_1;
local_80 = local_a8;
if (param_5 + -1 == param_4) {
local_78 = 0;
local_70 = 0x8000000000000000;
local_68 = 0;
lStack_60 = 0;
local_a0 = 0;
local_98 = 0x8000000000000000;
local_90 = 0;
lStack_88 = 0;
bf_set_ui(param_3,param_5 * 2 + -1);
bf_mul_ui(param_3,param_3,param_5 * 6 + -1,0x3fffffffffffffff,0);
bf_mul_ui(param_3,param_3,param_5 * 6 + -5,0x3fffffffffffffff,0);
bf_set_ui(&local_80,0x207e2da6);
bf_mul_ui(&local_80,&local_80,param_5,0x3fffffffffffffff,0);
bf_set_ui(&local_a8,0xcf6371);
bf_op2(&local_80,&local_80,&local_a8,0x3fffffffffffffff,0,__bf_add);
bf_mul(param_1,param_3,&local_80,0x3fffffffffffffff,0);
*(uint *)(param_1 + 1) = (uint)param_5 & 1;
bf_set_ui(param_2,param_5);
bf_mul_ui(param_2,param_2,param_5,0x3fffffffffffffff,0);
bf_mul_ui(param_2,param_2,param_5,0x3fffffffffffffff,0);
bf_mul_ui(param_2,param_2,0x26dd041d878000,0x3fffffffffffffff,0);
puVar1 = local_a8;
lVar2 = lStack_88;
if ((local_80 != (int8 *)0x0) && (lStack_60 != 0)) {
(*(code *)local_80[1])(*local_80,lStack_60,0);
puVar1 = local_a8;
lVar2 = lStack_88;
}
}
else {
local_78 = 0;
local_70 = 0x8000000000000000;
local_68 = 0;
lStack_60 = 0;
local_a0 = 0;
local_98 = 0x8000000000000000;
local_90 = 0;
lStack_88 = 0;
local_50 = 0;
local_48 = 0x8000000000000000;
local_40 = 0;
lStack_38 = 0;
local_58 = local_a8;
chud_bs();
chud_bs(&local_80,&local_a8,&local_58,(param_4 + param_5) / 2,param_5,param_6);
bf_mul(&local_80,&local_80,param_3,0x3fffffffffffffff,0);
if (param_6 == 0) {
*(int4 *)(param_3 + 1) = 0;
param_3[2] = -0x8000000000000000;
if (param_3[3] != 0) {
lVar2 = (*(code *)((int8 *)*param_3)[1])(*(int8 *)*param_3,param_3[4],0);
param_3[4] = lVar2;
param_3[3] = 0;
}
bf_mul(param_1,param_1,&local_a8,0x3fffffffffffffff,0);
bf_op2(param_1,param_1,&local_80,0x3fffffffffffffff,0,__bf_add);
if ((local_80 != (int8 *)0x0) && (lStack_60 != 0)) {
(*(code *)local_80[1])(*local_80,lStack_60,0);
}
bf_mul(param_2,param_2,&local_a8,0x3fffffffffffffff,0);
puVar1 = local_58;
lVar2 = lStack_38;
if ((local_a8 != (int8 *)0x0) && (lStack_88 != 0)) {
(*(code *)local_a8[1])(*local_a8,lStack_88,0);
puVar1 = local_58;
lVar2 = lStack_38;
}
}
else {
bf_mul(param_1,param_1,&local_a8,0x3fffffffffffffff,0);
bf_op2(param_1,param_1,&local_80,0x3fffffffffffffff,0,__bf_add);
if ((local_80 != (int8 *)0x0) && (lStack_60 != 0)) {
(*(code *)local_80[1])(*local_80,lStack_60,0);
}
bf_mul(param_2,param_2,&local_a8,0x3fffffffffffffff,0);
if ((local_a8 != (int8 *)0x0) && (lStack_88 != 0)) {
(*(code *)local_a8[1])(*local_a8,lStack_88,0);
}
bf_mul(param_3,param_3,&local_58,0x3fffffffffffffff,0);
puVar1 = local_58;
lVar2 = lStack_38;
}
}
if ((puVar1 != (int8 *)0x0) && (lVar2 != 0)) {
(*(code *)puVar1[1])(*puVar1,lVar2,0);
}
return;
}
| |
28,236 | js_get_length64 | bluesky950520[P]quickjs/quickjs.c | static __exception int js_get_length64(JSContext *ctx, int64_t *pres,
JSValue obj)
{
JSValue len_val;
len_val = JS_GetProperty(ctx, obj, JS_ATOM_length);
if (JS_IsException(len_val)) {
*pres = 0;
return -1;
}
return JS_ToLengthFree(ctx, pres, len_val);
} | O1 | c | js_get_length64:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r9
movq %rdx, %r8
movq %rsi, %r14
movq %rdi, %rbx
movq %rdx, %rsi
movq %rcx, %rdx
movl $0x32, %ecx
pushq $0x0
pushq $0x0
callq 0x22fa3
addq $0x10, %rsp
movq %rdx, %r12
cmpl $0x6, %r12d
jne 0x22b1f
movq $0x0, (%r14)
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
jmp 0x22b5d
movq %rax, %r15
subq $0x8, %rsp
movabsq $0x1fffffffffffff, %r9 # imm = 0x1FFFFFFFFFFFFF
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
movq %r12, %rcx
xorl %r8d, %r8d
pushq $0x0
callq 0x27858
addq $0x10, %rsp
movl %eax, %ebp
movq 0x18(%rbx), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x1d8c6
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
| js_get_length64:
push rbp
push r15
push r14
push r12
push rbx
mov r9, rcx
mov r8, rdx
mov r14, rsi
mov rbx, rdi
mov rsi, rdx
mov rdx, rcx
mov ecx, 32h ; '2'
push 0
push 0
call JS_GetPropertyInternal2
add rsp, 10h
mov r12, rdx
cmp r12d, 6
jnz short loc_22B1F
mov qword ptr [r14], 0
mov eax, 0FFFFFFFFh
jmp short loc_22B5D
loc_22B1F:
mov r15, rax
sub rsp, 8
mov r9, 1FFFFFFFFFFFFFh
mov rdi, rbx
mov rsi, r14
mov rdx, rax
mov rcx, r12
xor r8d, r8d
push 0
call JS_ToInt64Clamp
add rsp, 10h
mov ebp, eax
mov rdi, [rbx+18h]
mov rsi, r15
mov rdx, r12
call JS_FreeValueRT
mov eax, ebp
loc_22B5D:
pop rbx
pop r12
pop r14
pop r15
pop rbp
retn
| long long js_get_length64(long long a1, _QWORD *a2, int a3, int a4)
{
long long PropertyInternal2; // rax
long long v5; // rdx
long long v6; // r12
_DWORD *v8; // r15
unsigned int v9; // ebp
PropertyInternal2 = JS_GetPropertyInternal2(a1, a3, a4, 50, a3, a4, 0LL, 0);
v6 = v5;
if ( (_DWORD)v5 == 6 )
{
*a2 = 0LL;
return 0xFFFFFFFFLL;
}
else
{
v8 = (_DWORD *)PropertyInternal2;
v9 = JS_ToInt64Clamp(a1, (_DWORD)a2, PropertyInternal2, v5, 0, -1, 0LL);
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v8, v6);
return v9;
}
}
| js_get_length64:
PUSH RBP
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
MOV R9,RCX
MOV R8,RDX
MOV R14,RSI
MOV RBX,RDI
MOV RSI,RDX
MOV RDX,RCX
MOV ECX,0x32
PUSH 0x0
PUSH 0x0
CALL 0x00122fa3
ADD RSP,0x10
MOV R12,RDX
CMP R12D,0x6
JNZ 0x00122b1f
MOV qword ptr [R14],0x0
MOV EAX,0xffffffff
JMP 0x00122b5d
LAB_00122b1f:
MOV R15,RAX
SUB RSP,0x8
MOV R9,0x1fffffffffffff
MOV RDI,RBX
MOV RSI,R14
MOV RDX,RAX
MOV RCX,R12
XOR R8D,R8D
PUSH 0x0
CALL 0x00127858
ADD RSP,0x10
MOV EBP,EAX
MOV RDI,qword ptr [RBX + 0x18]
MOV RSI,R15
MOV RDX,R12
CALL 0x0011d8c6
MOV EAX,EBP
LAB_00122b5d:
POP RBX
POP R12
POP R14
POP R15
POP RBP
RET
|
int4 js_get_length64(long param_1,int8 *param_2,int8 param_3,int8 param_4)
{
int4 uVar1;
int1 auVar2 [16];
auVar2 = JS_GetPropertyInternal2(param_1,param_3,param_4,0x32,param_3,param_4,0,0);
if (auVar2._8_4_ == 6) {
*param_2 = 0;
uVar1 = 0xffffffff;
}
else {
uVar1 = JS_ToInt64Clamp(param_1,param_2,auVar2._0_8_,auVar2._8_8_,0,0x1fffffffffffff,0);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),auVar2._0_8_,auVar2._8_8_);
}
return uVar1;
}
| |
28,237 | ma_check_bitmap_data | eloqsql/storage/maria/ma_bitmap.c | my_bool _ma_check_bitmap_data(MARIA_HA *info, enum en_page_type page_type,
uint empty_space, uint bitmap_pattern)
{
uint bits;
switch (page_type) {
case UNALLOCATED_PAGE:
case MAX_PAGE_TYPE:
bits= 0;
break;
case HEAD_PAGE:
bits= _ma_free_size_to_head_pattern(&info->s->bitmap, empty_space);
break;
case TAIL_PAGE:
bits= free_size_to_tail_pattern(&info->s->bitmap, empty_space);
break;
case BLOB_PAGE:
bits= FULL_TAIL_PAGE;
break;
default:
bits= 0; /* to satisfy compiler */
DBUG_ASSERT(0);
}
return (bitmap_pattern != bits);
} | O0 | c | ma_check_bitmap_data:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movl -0xc(%rbp), %eax
movq %rax, -0x20(%rbp)
subq $0x4, %rax
ja 0x6643e
movq -0x20(%rbp), %rax
leaq 0xf414b(%rip), %rcx # 0x15a538
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x0, -0x18(%rbp)
jmp 0x66449
movq -0x8(%rbp), %rax
movq (%rax), %rdi
addq $0xa10, %rdi # imm = 0xA10
movl -0x10(%rbp), %esi
callq 0x647c0
movl %eax, -0x18(%rbp)
jmp 0x66449
movq -0x8(%rbp), %rax
movq (%rax), %rdi
addq $0xa10, %rdi # imm = 0xA10
movl -0x10(%rbp), %esi
callq 0x66140
movl %eax, -0x18(%rbp)
jmp 0x66449
movl $0x7, -0x18(%rbp)
jmp 0x66449
movl $0x0, -0x18(%rbp)
jmp 0x66447
jmp 0x66449
movl -0x14(%rbp), %eax
cmpl -0x18(%rbp), %eax
setne %al
andb $0x1, %al
movzbl %al, %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
| _ma_check_bitmap_data:
push rbp
mov rbp, rsp
sub rsp, 20h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_10], edx
mov [rbp+var_14], ecx
mov eax, [rbp+var_C]
mov [rbp+var_20], rax
sub rax, 4; switch 5 cases
ja short def_663F4; jumptable 00000000000663F4 default case
mov rax, [rbp+var_20]
lea rcx, jpt_663F4
movsxd rax, ds:(jpt_663F4 - 15A538h)[rcx+rax*4]
add rax, rcx
jmp rax; switch jump
loc_663F6:
mov [rbp+var_18], 0; jumptable 00000000000663F4 cases 0,4
jmp short loc_66449
loc_663FF:
mov rax, [rbp+var_8]; jumptable 00000000000663F4 case 1
mov rdi, [rax]
add rdi, 0A10h
mov esi, [rbp+var_10]
call _ma_free_size_to_head_pattern
mov [rbp+var_18], eax
jmp short loc_66449
loc_6641A:
mov rax, [rbp+var_8]; jumptable 00000000000663F4 case 2
mov rdi, [rax]
add rdi, 0A10h
mov esi, [rbp+var_10]
call free_size_to_tail_pattern
mov [rbp+var_18], eax
jmp short loc_66449
loc_66435:
mov [rbp+var_18], 7; jumptable 00000000000663F4 case 3
jmp short loc_66449
def_663F4:
mov [rbp+var_18], 0; jumptable 00000000000663F4 default case
jmp short $+2
loc_66447:
jmp short $+2
loc_66449:
mov eax, [rbp+var_14]
cmp eax, [rbp+var_18]
setnz al
and al, 1
movzx eax, al
add rsp, 20h
pop rbp
retn
| _BOOL8 ma_check_bitmap_data(long long a1, int a2, unsigned int a3, int a4)
{
int v5; // [rsp+8h] [rbp-18h]
switch ( a2 )
{
case 0:
case 4:
v5 = 0;
break;
case 1:
v5 = ma_free_size_to_head_pattern((_DWORD *)(*(_QWORD *)a1 + 2576LL), a3);
break;
case 2:
v5 = free_size_to_tail_pattern((_DWORD *)(*(_QWORD *)a1 + 2576LL), a3);
break;
case 3:
v5 = 7;
break;
default:
v5 = 0;
break;
}
return a4 != v5;
}
| _ma_check_bitmap_data:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV dword ptr [RBP + -0x10],EDX
MOV dword ptr [RBP + -0x14],ECX
MOV EAX,dword ptr [RBP + -0xc]
MOV qword ptr [RBP + -0x20],RAX
SUB RAX,0x4
JA 0x0016643e
MOV RAX,qword ptr [RBP + -0x20]
LEA RCX,[0x25a538]
MOVSXD RAX,dword ptr [RCX + RAX*0x4]
ADD RAX,RCX
switchD:
JMP RAX
caseD_0:
MOV dword ptr [RBP + -0x18],0x0
JMP 0x00166449
caseD_1:
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX]
ADD RDI,0xa10
MOV ESI,dword ptr [RBP + -0x10]
CALL 0x001647c0
MOV dword ptr [RBP + -0x18],EAX
JMP 0x00166449
caseD_2:
MOV RAX,qword ptr [RBP + -0x8]
MOV RDI,qword ptr [RAX]
ADD RDI,0xa10
MOV ESI,dword ptr [RBP + -0x10]
CALL 0x00166140
MOV dword ptr [RBP + -0x18],EAX
JMP 0x00166449
caseD_3:
MOV dword ptr [RBP + -0x18],0x7
JMP 0x00166449
default:
MOV dword ptr [RBP + -0x18],0x0
JMP 0x00166447
LAB_00166447:
JMP 0x00166449
LAB_00166449:
MOV EAX,dword ptr [RBP + -0x14]
CMP EAX,dword ptr [RBP + -0x18]
SETNZ AL
AND AL,0x1
MOVZX EAX,AL
ADD RSP,0x20
POP RBP
RET
|
bool _ma_check_bitmap_data(long *param_1,int4 param_2,int4 param_3,int param_4)
{
int local_20;
switch(param_2) {
case 0:
case 4:
local_20 = 0;
break;
case 1:
local_20 = _ma_free_size_to_head_pattern(*param_1 + 0xa10,param_3);
break;
case 2:
local_20 = free_size_to_tail_pattern(*param_1 + 0xa10,param_3);
break;
case 3:
local_20 = 7;
break;
default:
local_20 = 0;
}
return param_4 != local_20;
}
| |
28,238 | minja::Context::at(minja::Value const&) | monkey531[P]llama/common/minja.hpp | virtual Value & at(const Value & key) {
if (values_.contains(key)) return values_.at(key);
if (parent_) return parent_->at(key);
throw std::runtime_error("Undefined variable: " + key.dump());
} | O2 | cpp | minja::Context::at(minja::Value const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rdi), %r15
movq %r15, %rdi
callq 0x693f6
testb %al, %al
je 0x708d5
movq %r15, %rdi
movq %r14, %rsi
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x69264
movq 0x68(%rbx), %rdi
testq %rdi, %rdi
je 0x708f4
movq (%rdi), %rax
movq 0x18(%rax), %rax
movq %r14, %rsi
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmpq *%rax
pushq $0x10
popq %rdi
callq 0x213a0
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
pushq $-0x1
popq %rdx
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x5fec6
leaq 0x2d515(%rip), %rsi # 0x9de2d
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x368bc
movb $0x1, %bpl
leaq 0x28(%rsp), %rsi
movq %rbx, %rdi
callq 0x21ae0
xorl %ebp, %ebp
movq 0x6b6a8(%rip), %rsi # 0xdbfe8
movq 0x6b621(%rip), %rdx # 0xdbf68
movq %rbx, %rdi
callq 0x21b70
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x21dc8
jmp 0x70964
movq %rax, %r14
movb $0x1, %bpl
leaq 0x8(%rsp), %rdi
callq 0x21dc8
testb %bpl, %bpl
jne 0x70978
jmp 0x70980
movq %rax, %r14
movq %rbx, %rdi
callq 0x21530
movq %r14, %rdi
callq 0x21be0
| _ZN5minja7Context2atERKNS_5ValueE:
push rbp
push r15
push r14
push rbx
sub rsp, 48h
mov r14, rsi
mov rbx, rdi
lea r15, [rdi+18h]
mov rdi, r15; this
call _ZNK5minja5Value8containsERKS0_; minja::Value::contains(minja::Value const&)
test al, al
jz short loc_708D5
mov rdi, r15; this
mov rsi, r14; minja::Value *
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
jmp _ZN5minja5Value2atERKS0_; minja::Value::at(minja::Value const&)
loc_708D5:
mov rdi, [rbx+68h]
test rdi, rdi
jz short loc_708F4
mov rax, [rdi]
mov rax, [rax+18h]
mov rsi, r14
add rsp, 48h
pop rbx
pop r14
pop r15
pop rbp
jmp rax
loc_708F4:
push 10h
pop rdi; thrown_size
call ___cxa_allocate_exception
mov rbx, rax
lea rdi, [rsp+68h+var_60]
push 0FFFFFFFFFFFFFFFFh
pop rdx
mov rsi, r14
xor ecx, ecx
call _ZNK5minja5Value4dumpB5cxx11Eib; minja::Value::dump(int,bool)
lea rsi, aUndefinedVaria; "Undefined variable: "
lea rdi, [rsp+68h+var_40]
lea rdx, [rsp+68h+var_60]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
mov bpl, 1
lea rsi, [rsp+68h+var_40]
mov rdi, rbx
call __ZNSt13runtime_errorC1ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; std::runtime_error::runtime_error(std::string const&)
xor ebp, ebp
mov rsi, cs:lptinfo; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
mov rdi, rbx; void *
call ___cxa_throw
mov r14, rax
lea rdi, [rsp+68h+var_40]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_70964
mov r14, rax
mov bpl, 1
loc_70964:
lea rdi, [rsp+68h+var_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
test bpl, bpl
jnz short loc_70978
jmp short loc_70980
mov r14, rax
loc_70978:
mov rdi, rbx; void *
call ___cxa_free_exception
loc_70980:
mov rdi, r14
call __Unwind_Resume
| long long minja::Context::at(unsigned __int8 ***this, const minja::Value *a2, __m128d a3)
{
unsigned __int8 **v4; // rdi
void *exception; // rbx
_BYTE v6[32]; // [rsp+8h] [rbp-60h] BYREF
_BYTE v7[64]; // [rsp+28h] [rbp-40h] BYREF
if ( (unsigned __int8)minja::Value::contains(this + 3, a2, a3) )
return minja::Value::at((minja::Value *)(this + 3), a2);
v4 = this[13];
if ( !v4 )
{
exception = __cxa_allocate_exception(0x10uLL);
minja::Value::dump[abi:cxx11]((long long)v6, (long long)a2, 0xFFFFFFFF, 0);
std::operator+<char>((long long)v7, (long long)"Undefined variable: ", (long long)v6);
std::runtime_error::runtime_error(exception, v7);
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
return (*((long long ( **)(unsigned __int8 **, const minja::Value *))*v4 + 3))(v4, a2);
}
| at:
PUSH RBP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x48
MOV R14,RSI
MOV RBX,RDI
LEA R15,[RDI + 0x18]
MOV RDI,R15
CALL 0x001693f6
TEST AL,AL
JZ 0x001708d5
MOV RDI,R15
MOV RSI,R14
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
JMP 0x00169264
LAB_001708d5:
MOV RDI,qword ptr [RBX + 0x68]
TEST RDI,RDI
JZ 0x001708f4
MOV RAX,qword ptr [RDI]
MOV RAX,qword ptr [RAX + 0x18]
MOV RSI,R14
ADD RSP,0x48
POP RBX
POP R14
POP R15
POP RBP
JMP RAX
LAB_001708f4:
PUSH 0x10
POP RDI
CALL 0x001213a0
MOV RBX,RAX
LAB_001708ff:
LEA RDI,[RSP + 0x8]
PUSH -0x1
POP RDX
MOV RSI,R14
XOR ECX,ECX
CALL 0x0015fec6
LAB_00170911:
LEA RSI,[0x19de2d]
LEA RDI,[RSP + 0x28]
LEA RDX,[RSP + 0x8]
CALL 0x001368bc
MOV BPL,0x1
LAB_0017092a:
LEA RSI,[RSP + 0x28]
MOV RDI,RBX
CALL 0x00121ae0
XOR EBP,EBP
MOV RSI,qword ptr [0x001dbfe8]
MOV RDX,qword ptr [0x001dbf68]
MOV RDI,RBX
CALL 0x00121b70
|
/* minja::Context::at(minja::Value const&) */
void __thiscall minja::Context::at(Context *this,Value *param_1)
{
long *plVar1;
char cVar2;
runtime_error *this_00;
int1 local_60 [32];
string local_40 [32];
cVar2 = Value::contains((Value *)(this + 0x18),param_1);
if (cVar2 != '\0') {
Value::at((Value *)(this + 0x18),param_1);
return;
}
plVar1 = *(long **)(this + 0x68);
if (plVar1 != (long *)0x0) {
/* WARNING: Could not recover jumptable at 0x001708f2. Too many branches */
/* WARNING: Treating indirect jump as call */
(**(code **)(*plVar1 + 0x18))(plVar1,param_1);
return;
}
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001708ff to 00170910 has its CatchHandler @ 00170975 */
Value::dump_abi_cxx11_((int)local_60,SUB81(param_1,0));
/* try { // try from 00170911 to 00170926 has its CatchHandler @ 0017095e */
std::operator+((char *)local_40,(string *)"Undefined variable: ");
/* try { // try from 0017092a to 0017094e has its CatchHandler @ 0017094f */
std::runtime_error::runtime_error(this_00,local_40);
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_001dbfe8,PTR__runtime_error_001dbf68);
}
| |
28,239 | test_if_hard_path | eloqsql/mysys/my_getwd.c | int test_if_hard_path(register const char *dir_name)
{
if (dir_name[0] == FN_HOMELIB && dir_name[1] == FN_LIBCHAR)
return (home_dir != NullS && test_if_hard_path(home_dir));
if (dir_name[0] == FN_LIBCHAR)
return (TRUE);
#ifdef FN_DEVCHAR
return (strchr(dir_name,FN_DEVCHAR) != 0);
#else
return FALSE;
#endif
} | O3 | c | test_if_hard_path:
pushq %rbp
movq %rsp, %rbp
leaq 0x33a653(%rip), %rax # 0x364c58
movq (%rax), %rax
movb (%rdi), %cl
cmpb $0x7e, %cl
jne 0x2a621
cmpb $0x2f, 0x1(%rdi)
jne 0x2a621
movq %rax, %rdi
testq %rax, %rax
jne 0x2a608
xorl %eax, %eax
jmp 0x2a629
xorl %eax, %eax
cmpb $0x2f, %cl
sete %al
popq %rbp
retq
| test_if_hard_path:
push rbp
mov rbp, rsp
lea rax, home_dir
mov rax, [rax]
loc_2A608:
mov cl, [rdi]
cmp cl, 7Eh ; '~'
jnz short loc_2A621
cmp byte ptr [rdi+1], 2Fh ; '/'
jnz short loc_2A621
mov rdi, rax
test rax, rax
jnz short loc_2A608
xor eax, eax
jmp short loc_2A629
loc_2A621:
xor eax, eax
cmp cl, 2Fh ; '/'
setz al
loc_2A629:
pop rbp
retn
| _BOOL8 test_if_hard_path(_BYTE *a1)
{
while ( *a1 == 126 && a1[1] == 47 )
{
a1 = (_BYTE *)home_dir;
if ( !home_dir )
return 0LL;
}
return *a1 == 47;
}
| test_if_hard_path:
PUSH RBP
MOV RBP,RSP
LEA RAX,[0x464c58]
MOV RAX,qword ptr [RAX]
LAB_0012a608:
MOV CL,byte ptr [RDI]
CMP CL,0x7e
JNZ 0x0012a621
CMP byte ptr [RDI + 0x1],0x2f
JNZ 0x0012a621
MOV RDI,RAX
TEST RAX,RAX
JNZ 0x0012a608
XOR EAX,EAX
JMP 0x0012a629
LAB_0012a621:
XOR EAX,EAX
CMP CL,0x2f
SETZ AL
LAB_0012a629:
POP RBP
RET
|
bool test_if_hard_path(char *param_1)
{
while ((*param_1 == '~' && (param_1[1] == '/'))) {
param_1 = home_dir;
if (home_dir == (char *)0x0) {
return false;
}
}
return *param_1 == '/';
}
| |
28,240 | 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>::scan_string() | llama.cpp/common/json.hpp | token_type scan_string()
{
// reset token_buffer (ignore opening quote)
reset();
// we entered the function by reading an open quote
JSON_ASSERT(current == '\"');
while (true)
{
// get next character
switch (get())
{
// end of file while parsing string
case char_traits<char_type>::eof():
{
error_message = "invalid string: missing closing quote";
return token_type::parse_error;
}
// closing quote
case '\"':
{
return token_type::value_string;
}
// escapes
case '\\':
{
switch (get())
{
// quotation mark
case '\"':
add('\"');
break;
// reverse solidus
case '\\':
add('\\');
break;
// solidus
case '/':
add('/');
break;
// backspace
case 'b':
add('\b');
break;
// form feed
case 'f':
add('\f');
break;
// line feed
case 'n':
add('\n');
break;
// carriage return
case 'r':
add('\r');
break;
// tab
case 't':
add('\t');
break;
// unicode escapes
case 'u':
{
const int codepoint1 = get_codepoint();
int codepoint = codepoint1; // start with codepoint1
if (JSON_HEDLEY_UNLIKELY(codepoint1 == -1))
{
error_message = "invalid string: '\\u' must be followed by 4 hex digits";
return token_type::parse_error;
}
// check if code point is a high surrogate
if (0xD800 <= codepoint1 && codepoint1 <= 0xDBFF)
{
// expect next \uxxxx entry
if (JSON_HEDLEY_LIKELY(get() == '\\' && get() == 'u'))
{
const int codepoint2 = get_codepoint();
if (JSON_HEDLEY_UNLIKELY(codepoint2 == -1))
{
error_message = "invalid string: '\\u' must be followed by 4 hex digits";
return token_type::parse_error;
}
// check if codepoint2 is a low surrogate
if (JSON_HEDLEY_LIKELY(0xDC00 <= codepoint2 && codepoint2 <= 0xDFFF))
{
// overwrite codepoint
codepoint = static_cast<int>(
// high surrogate occupies the most significant 22 bits
(static_cast<unsigned int>(codepoint1) << 10u)
// low surrogate occupies the least significant 15 bits
+ static_cast<unsigned int>(codepoint2)
// there is still the 0xD800, 0xDC00 and 0x10000 noise
// in the result, so we have to subtract with:
// (0xD800 << 10) + DC00 - 0x10000 = 0x35FDC00
- 0x35FDC00u);
}
else
{
error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
return token_type::parse_error;
}
}
else
{
error_message = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
return token_type::parse_error;
}
}
else
{
if (JSON_HEDLEY_UNLIKELY(0xDC00 <= codepoint1 && codepoint1 <= 0xDFFF))
{
error_message = "invalid string: surrogate U+DC00..U+DFFF must follow U+D800..U+DBFF";
return token_type::parse_error;
}
}
// result of the above calculation yields a proper codepoint
JSON_ASSERT(0x00 <= codepoint && codepoint <= 0x10FFFF);
// translate codepoint into bytes
if (codepoint < 0x80)
{
// 1-byte characters: 0xxxxxxx (ASCII)
add(static_cast<char_int_type>(codepoint));
}
else if (codepoint <= 0x7FF)
{
// 2-byte characters: 110xxxxx 10xxxxxx
add(static_cast<char_int_type>(0xC0u | (static_cast<unsigned int>(codepoint) >> 6u)));
add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
}
else if (codepoint <= 0xFFFF)
{
// 3-byte characters: 1110xxxx 10xxxxxx 10xxxxxx
add(static_cast<char_int_type>(0xE0u | (static_cast<unsigned int>(codepoint) >> 12u)));
add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 6u) & 0x3Fu)));
add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
}
else
{
// 4-byte characters: 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
add(static_cast<char_int_type>(0xF0u | (static_cast<unsigned int>(codepoint) >> 18u)));
add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 12u) & 0x3Fu)));
add(static_cast<char_int_type>(0x80u | ((static_cast<unsigned int>(codepoint) >> 6u) & 0x3Fu)));
add(static_cast<char_int_type>(0x80u | (static_cast<unsigned int>(codepoint) & 0x3Fu)));
}
break;
}
// other characters after escape
default:
error_message = "invalid string: forbidden character after backslash";
return token_type::parse_error;
}
break;
}
// invalid control characters
case 0x00:
{
error_message = "invalid string: control character U+0000 (NUL) must be escaped to \\u0000";
return token_type::parse_error;
}
case 0x01:
{
error_message = "invalid string: control character U+0001 (SOH) must be escaped to \\u0001";
return token_type::parse_error;
}
case 0x02:
{
error_message = "invalid string: control character U+0002 (STX) must be escaped to \\u0002";
return token_type::parse_error;
}
case 0x03:
{
error_message = "invalid string: control character U+0003 (ETX) must be escaped to \\u0003";
return token_type::parse_error;
}
case 0x04:
{
error_message = "invalid string: control character U+0004 (EOT) must be escaped to \\u0004";
return token_type::parse_error;
}
case 0x05:
{
error_message = "invalid string: control character U+0005 (ENQ) must be escaped to \\u0005";
return token_type::parse_error;
}
case 0x06:
{
error_message = "invalid string: control character U+0006 (ACK) must be escaped to \\u0006";
return token_type::parse_error;
}
case 0x07:
{
error_message = "invalid string: control character U+0007 (BEL) must be escaped to \\u0007";
return token_type::parse_error;
}
case 0x08:
{
error_message = "invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b";
return token_type::parse_error;
}
case 0x09:
{
error_message = "invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t";
return token_type::parse_error;
}
case 0x0A:
{
error_message = "invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n";
return token_type::parse_error;
}
case 0x0B:
{
error_message = "invalid string: control character U+000B (VT) must be escaped to \\u000B";
return token_type::parse_error;
}
case 0x0C:
{
error_message = "invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f";
return token_type::parse_error;
}
case 0x0D:
{
error_message = "invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r";
return token_type::parse_error;
}
case 0x0E:
{
error_message = "invalid string: control character U+000E (SO) must be escaped to \\u000E";
return token_type::parse_error;
}
case 0x0F:
{
error_message = "invalid string: control character U+000F (SI) must be escaped to \\u000F";
return token_type::parse_error;
}
case 0x10:
{
error_message = "invalid string: control character U+0010 (DLE) must be escaped to \\u0010";
return token_type::parse_error;
}
case 0x11:
{
error_message = "invalid string: control character U+0011 (DC1) must be escaped to \\u0011";
return token_type::parse_error;
}
case 0x12:
{
error_message = "invalid string: control character U+0012 (DC2) must be escaped to \\u0012";
return token_type::parse_error;
}
case 0x13:
{
error_message = "invalid string: control character U+0013 (DC3) must be escaped to \\u0013";
return token_type::parse_error;
}
case 0x14:
{
error_message = "invalid string: control character U+0014 (DC4) must be escaped to \\u0014";
return token_type::parse_error;
}
case 0x15:
{
error_message = "invalid string: control character U+0015 (NAK) must be escaped to \\u0015";
return token_type::parse_error;
}
case 0x16:
{
error_message = "invalid string: control character U+0016 (SYN) must be escaped to \\u0016";
return token_type::parse_error;
}
case 0x17:
{
error_message = "invalid string: control character U+0017 (ETB) must be escaped to \\u0017";
return token_type::parse_error;
}
case 0x18:
{
error_message = "invalid string: control character U+0018 (CAN) must be escaped to \\u0018";
return token_type::parse_error;
}
case 0x19:
{
error_message = "invalid string: control character U+0019 (EM) must be escaped to \\u0019";
return token_type::parse_error;
}
case 0x1A:
{
error_message = "invalid string: control character U+001A (SUB) must be escaped to \\u001A";
return token_type::parse_error;
}
case 0x1B:
{
error_message = "invalid string: control character U+001B (ESC) must be escaped to \\u001B";
return token_type::parse_error;
}
case 0x1C:
{
error_message = "invalid string: control character U+001C (FS) must be escaped to \\u001C";
return token_type::parse_error;
}
case 0x1D:
{
error_message = "invalid string: control character U+001D (GS) must be escaped to \\u001D";
return token_type::parse_error;
}
case 0x1E:
{
error_message = "invalid string: control character U+001E (RS) must be escaped to \\u001E";
return token_type::parse_error;
}
case 0x1F:
{
error_message = "invalid string: control character U+001F (US) must be escaped to \\u001F";
return token_type::parse_error;
}
// U+0020..U+007F (except U+0022 (quote) and U+005C (backspace))
case 0x20:
case 0x21:
case 0x23:
case 0x24:
case 0x25:
case 0x26:
case 0x27:
case 0x28:
case 0x29:
case 0x2A:
case 0x2B:
case 0x2C:
case 0x2D:
case 0x2E:
case 0x2F:
case 0x30:
case 0x31:
case 0x32:
case 0x33:
case 0x34:
case 0x35:
case 0x36:
case 0x37:
case 0x38:
case 0x39:
case 0x3A:
case 0x3B:
case 0x3C:
case 0x3D:
case 0x3E:
case 0x3F:
case 0x40:
case 0x41:
case 0x42:
case 0x43:
case 0x44:
case 0x45:
case 0x46:
case 0x47:
case 0x48:
case 0x49:
case 0x4A:
case 0x4B:
case 0x4C:
case 0x4D:
case 0x4E:
case 0x4F:
case 0x50:
case 0x51:
case 0x52:
case 0x53:
case 0x54:
case 0x55:
case 0x56:
case 0x57:
case 0x58:
case 0x59:
case 0x5A:
case 0x5B:
case 0x5D:
case 0x5E:
case 0x5F:
case 0x60:
case 0x61:
case 0x62:
case 0x63:
case 0x64:
case 0x65:
case 0x66:
case 0x67:
case 0x68:
case 0x69:
case 0x6A:
case 0x6B:
case 0x6C:
case 0x6D:
case 0x6E:
case 0x6F:
case 0x70:
case 0x71:
case 0x72:
case 0x73:
case 0x74:
case 0x75:
case 0x76:
case 0x77:
case 0x78:
case 0x79:
case 0x7A:
case 0x7B:
case 0x7C:
case 0x7D:
case 0x7E:
case 0x7F:
{
add(current);
break;
}
// U+0080..U+07FF: bytes C2..DF 80..BF
case 0xC2:
case 0xC3:
case 0xC4:
case 0xC5:
case 0xC6:
case 0xC7:
case 0xC8:
case 0xC9:
case 0xCA:
case 0xCB:
case 0xCC:
case 0xCD:
case 0xCE:
case 0xCF:
case 0xD0:
case 0xD1:
case 0xD2:
case 0xD3:
case 0xD4:
case 0xD5:
case 0xD6:
case 0xD7:
case 0xD8:
case 0xD9:
case 0xDA:
case 0xDB:
case 0xDC:
case 0xDD:
case 0xDE:
case 0xDF:
{
if (JSON_HEDLEY_UNLIKELY(!next_byte_in_range({0x80, 0xBF})))
{
return token_type::parse_error;
}
break;
}
// U+0800..U+0FFF: bytes E0 A0..BF 80..BF
case 0xE0:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0xA0, 0xBF, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// U+1000..U+CFFF: bytes E1..EC 80..BF 80..BF
// U+E000..U+FFFF: bytes EE..EF 80..BF 80..BF
case 0xE1:
case 0xE2:
case 0xE3:
case 0xE4:
case 0xE5:
case 0xE6:
case 0xE7:
case 0xE8:
case 0xE9:
case 0xEA:
case 0xEB:
case 0xEC:
case 0xEE:
case 0xEF:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0xBF, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// U+D000..U+D7FF: bytes ED 80..9F 80..BF
case 0xED:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0x9F, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// U+10000..U+3FFFF F0 90..BF 80..BF 80..BF
case 0xF0:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x90, 0xBF, 0x80, 0xBF, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// U+40000..U+FFFFF F1..F3 80..BF 80..BF 80..BF
case 0xF1:
case 0xF2:
case 0xF3:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0xBF, 0x80, 0xBF, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// U+100000..U+10FFFF F4 80..8F 80..BF 80..BF
case 0xF4:
{
if (JSON_HEDLEY_UNLIKELY(!(next_byte_in_range({0x80, 0x8F, 0x80, 0xBF, 0x80, 0xBF}))))
{
return token_type::parse_error;
}
break;
}
// remaining bytes (80..C1 and F5..FF) are ill-formed
default:
{
error_message = "invalid string: ill-formed UTF-8 byte";
return token_type::parse_error;
}
}
}
} | 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>::scan_string():
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
callq 0x74778
cmpl $0x22, 0x14(%rbx)
jne 0x74371
leaq 0x50(%rbx), %r14
leaq 0xa79a6(%rip), %r12 # 0x11b90d
leaq 0xa04ca(%rip), %r13 # 0x114438
movq %rbx, %rdi
callq 0x2250c
incl %eax
cmpl $0xf5, %eax
ja 0x74340
movslq (%r13,%rax,4), %rax
addq %r13, %rax
jmpq *%rax
movabsq $0xbf00000080, %rax # imm = 0xBF00000080
movq %rsp, %rsi
movq %rax, (%rsi)
movl $0x2, %edx
jmp 0x7400e
movaps 0xa0305(%rip), %xmm0 # 0x1142b0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movl $0x4, %edx
jmp 0x7400e
movb 0x14(%rbx), %r15b
movsbl %r15b, %esi
movq %r14, %rdi
callq 0x22370
jmp 0x73f6e
movups 0xaa207(%rip), %xmm0 # 0x11e1d8
jmp 0x73ff5
movaps 0xa02c6(%rip), %xmm0 # 0x1142a0
jmp 0x73fab
movaps 0xa02dd(%rip), %xmm0 # 0x1142c0
jmp 0x73fab
movups 0xaa204(%rip), %xmm0 # 0x11e1f0
jmp 0x73ff5
movups 0xaa1cb(%rip), %xmm0 # 0x11e1c0
movq %rsp, %rsi
movaps %xmm0, (%rsi)
movabsq $0xbf00000080, %rax # imm = 0xBF00000080
movq %rax, 0x10(%rsi)
movl $0x6, %edx
movq %rbx, %rdi
callq 0x747fc
testb %al, %al
jne 0x73f6e
jmp 0x7434b
movq %rbx, %rdi
callq 0x2250c
leaq 0xa785e(%rip), %rbp # 0x11b890
cmpl $0x61, %eax
jle 0x7415d
leal -0x6e(%rax), %ecx
cmpl $0x7, %ecx
ja 0x74178
leaq 0xa07c2(%rip), %rax # 0x114810
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq %rbx, %rdi
callq 0x747b6
leaq 0xa7739(%rip), %rbp # 0x11b79f
cmpl $-0x1, %eax
je 0x74347
movl %eax, %r15d
andl $0xfffffc00, %eax # imm = 0xFFFFFC00
cmpl $0xd800, %eax # imm = 0xD800
jne 0x74128
movq %rbx, %rdi
callq 0x2250c
cmpl $0x5c, %eax
jne 0x7435f
movq %rbx, %rdi
callq 0x2250c
cmpl $0x75, %eax
jne 0x7435f
movq %rbx, %rdi
callq 0x747b6
cmpl $-0x1, %eax
je 0x74347
movl %eax, %ecx
andl $0xfffffc00, %ecx # imm = 0xFFFFFC00
leaq 0xa7711(%rip), %rbp # 0x11b7d5
cmpl $0xdc00, %ecx # imm = 0xDC00
jne 0x74347
shll $0xa, %r15d
addl %eax, %r15d
addl $0xfca02400, %r15d # imm = 0xFCA02400
movl %r15d, %eax
shrl $0x12, %eax
orb $-0x10, %al
movsbl %al, %esi
movq %r14, %rdi
callq 0x22370
movl %r15d, %eax
shrl $0xc, %eax
andb $0x3f, %al
orb $-0x80, %al
movsbl %al, %esi
movq %r14, %rdi
callq 0x22370
movl %r15d, %eax
shrl $0x6, %eax
andb $0x3f, %al
orb $-0x80, %al
movsbl %al, %esi
movq %r14, %rdi
callq 0x22370
andb $0x3f, %r15b
orb $-0x80, %r15b
jmp 0x73fbc
cmpl $0xdc00, %eax # imm = 0xDC00
je 0x74368
cmpl $0x110000, %r15d # imm = 0x110000
jae 0x7438d
cmpl $0x7f, %r15d
jbe 0x73fbc
cmpl $0x7ff, %r15d # imm = 0x7FF
ja 0x7418e
movl %r15d, %eax
shrl $0x6, %eax
orb $-0x40, %al
jmp 0x74110
cmpl $0x22, %eax
je 0x741b0
cmpl $0x2f, %eax
je 0x741a8
cmpl $0x5c, %eax
jne 0x74347
movb $0x5c, %r15b
jmp 0x73fbc
cmpl $0x62, %eax
je 0x741d0
cmpl $0x66, %eax
jne 0x74347
movb $0xc, %r15b
jmp 0x73fbc
cmpl $0xffff, %r15d # imm = 0xFFFF
ja 0x740de
movl %r15d, %eax
shrl $0xc, %eax
orb $-0x20, %al
jmp 0x740fb
movb $0x2f, %r15b
jmp 0x73fbc
movb $0x22, %r15b
jmp 0x73fbc
movb $0x9, %r15b
jmp 0x73fbc
movb $0xa, %r15b
jmp 0x73fbc
movb $0xd, %r15b
jmp 0x73fbc
movb $0x8, %r15b
jmp 0x73fbc
movl $0x4, %eax
jmp 0x74350
leaq 0xa7fc4(%rip), %rbp # 0x11c1ad
jmp 0x74347
leaq 0xa7e06(%rip), %rbp # 0x11bffb
jmp 0x74347
leaq 0xa7f64(%rip), %rbp # 0x11c165
jmp 0x74347
leaq 0xa7a31(%rip), %rbp # 0x11bc3e
jmp 0x74347
leaq 0xa7ebc(%rip), %rbp # 0x11c0d5
jmp 0x74347
leaq 0xa7d8d(%rip), %rbp # 0x11bfb2
jmp 0x74347
leaq 0xa77b7(%rip), %rbp # 0x11b9e8
jmp 0x74347
leaq 0xa78cf(%rip), %rbp # 0x11bb0c
jmp 0x74347
leaq 0xa7756(%rip), %rbp # 0x11b99f
jmp 0x74347
leaq 0xa7825(%rip), %rbp # 0x11ba7a
jmp 0x74347
leaq 0xa7862(%rip), %rbp # 0x11bac3
jmp 0x74347
movq %r12, %rbp
jmp 0x74347
leaq 0xa7af5(%rip), %rbp # 0x11bd6a
jmp 0x74347
leaq 0xa7a59(%rip), %rbp # 0x11bcda
jmp 0x74347
leaq 0xa74ec(%rip), %rbp # 0x11b779
jmp 0x74347
leaq 0xa7798(%rip), %rbp # 0x11ba31
jmp 0x74347
leaq 0xa7b0e(%rip), %rbp # 0x11bdb3
jmp 0x74347
leaq 0xa7613(%rip), %rbp # 0x11b8c4
jmp 0x74347
leaq 0xa7699(%rip), %rbp # 0x11b956
jmp 0x74347
leaq 0xa7b7c(%rip), %rbp # 0x11be45
jmp 0x74347
leaq 0xa7bbc(%rip), %rbp # 0x11be8e
jmp 0x74347
leaq 0xa7db1(%rip), %rbp # 0x11c08c
jmp 0x74347
leaq 0xa7876(%rip), %rbp # 0x11bb5a
jmp 0x74347
leaq 0xa7bea(%rip), %rbp # 0x11bed7
jmp 0x74347
leaq 0xa7996(%rip), %rbp # 0x11bc8c
jmp 0x74347
leaq 0xa7d44(%rip), %rbp # 0x11c043
jmp 0x74347
leaq 0xa78a0(%rip), %rbp # 0x11bba8
jmp 0x74347
leaq 0xa78e5(%rip), %rbp # 0x11bbf6
jmp 0x74347
leaq 0xa7ae2(%rip), %rbp # 0x11bdfc
jmp 0x74347
leaq 0xa79ff(%rip), %rbp # 0x11bd22
jmp 0x74347
leaq 0xa7df1(%rip), %rbp # 0x11c11d
jmp 0x74347
leaq 0xa7beb(%rip), %rbp # 0x11bf20
jmp 0x74347
leaq 0xa7c2b(%rip), %rbp # 0x11bf69
jmp 0x74347
leaq 0xa7eae(%rip), %rbp # 0x11c1f5
movq %rbp, 0x70(%rbx)
movl $0xe, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa746f(%rip), %rbp # 0x11b7d5
jmp 0x74347
leaq 0xa74b2(%rip), %rbp # 0x11b821
jmp 0x74347
leaq 0xa719a(%rip), %rdi # 0x11b512
leaq 0x9fdb2(%rip), %rdx # 0x114131
leaq 0xa73e3(%rip), %rcx # 0x11b769
movl $0x1dd1, %esi # imm = 0x1DD1
jmp 0x743a7
leaq 0xa717e(%rip), %rdi # 0x11b512
leaq 0x9fd96(%rip), %rdx # 0x114131
leaq 0xa74c3(%rip), %rcx # 0x11b865
movl $0x1e49, %esi # imm = 0x1E49
xorl %eax, %eax
callq 0x21e60
| _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE11scan_stringEv:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov rbx, rdi
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE5resetEv; 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>::reset(void)
cmp dword ptr [rbx+14h], 22h ; '"'
jnz loc_74371
lea r14, [rbx+50h]
lea r12, aInvalidStringC; "invalid string: control character U+000"...
lea r13, jpt_73F8B
loc_73F6E:
mov rdi, rbx; 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)
inc eax; switch 246 cases
cmp eax, 0F5h
ja def_73F8B; jumptable 0000000000073F8B default case, cases 128-193
movsxd rax, ds:(jpt_73F8B - 114438h)[r13+rax*4]
add rax, r13
jmp rax; switch jump
loc_73F8D:
mov rax, 0BF00000080h; jumptable 0000000000073F8B cases 194-223
mov rsi, rsp
mov [rsi], rax
mov edx, 2
jmp short loc_7400E
loc_73FA4:
movaps xmm0, cs:xmmword_1142B0; jumptable 0000000000073F8B cases 225-236,238,239
loc_73FAB:
mov rsi, rsp
movaps xmmword ptr [rsi], xmm0
mov edx, 4
jmp short loc_7400E
loc_73FB8:
mov r15b, [rbx+14h]; jumptable 0000000000073F8B cases 32,33,35-91,93-127
loc_73FBC:
movsx esi, r15b
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
jmp short loc_73F6E
loc_73FCA:
movups xmm0, cs:xmmword_11E1D8; jumptable 0000000000073F8B cases 241-243
jmp short loc_73FF5
loc_73FD3:
movaps xmm0, cs:xmmword_1142A0; jumptable 0000000000073F8B case 237
jmp short loc_73FAB
loc_73FDC:
movaps xmm0, cs:xmmword_1142C0; jumptable 0000000000073F8B case 224
jmp short loc_73FAB
loc_73FE5:
movups xmm0, cs:xmmword_11E1F0; jumptable 0000000000073F8B case 244
jmp short loc_73FF5
loc_73FEE:
movups xmm0, cs:xmmword_11E1C0; jumptable 0000000000073F8B case 240
loc_73FF5:
mov rsi, rsp
movaps xmmword ptr [rsi], xmm0
mov rax, 0BF00000080h
mov [rsi+10h], rax
mov edx, 6
loc_7400E:
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE18next_byte_in_rangeESt16initializer_listIiE; 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>::next_byte_in_range(std::initializer_list<int>)
test al, al
jnz loc_73F6E
jmp loc_7434B
loc_74023:
mov rdi, rbx; jumptable 0000000000073F8B case 92
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)
lea rbp, aInvalidStringF; "invalid string: forbidden character aft"...
cmp eax, 61h ; 'a'
jle loc_7415D
lea ecx, [rax-6Eh]; switch 8 cases
cmp ecx, 7
ja def_74055; jumptable 0000000000074055 default case
lea rax, jpt_74055
movsxd rcx, ds:(jpt_74055 - 114810h)[rax+rcx*4]
add rcx, rax
jmp rcx; switch jump
loc_74057:
mov rdi, rbx; jumptable 0000000000074055 case 117
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE13get_codepointEv; 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_codepoint(void)
lea rbp, aInvalidStringU; "invalid string: '\\u' must be followed "...
cmp eax, 0FFFFFFFFh
jz loc_74347; jumptable 0000000000074055 cases 111-113,115
mov r15d, eax
and eax, 0FFFFFC00h
cmp eax, 0D800h
jnz loc_74128
mov rdi, rbx; 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)
cmp eax, 5Ch ; '\'
jnz loc_7435F
mov rdi, rbx; 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)
cmp eax, 75h ; 'u'
jnz loc_7435F
mov rdi, rbx
call _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_20input_stream_adapterEE13get_codepointEv; 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_codepoint(void)
cmp eax, 0FFFFFFFFh
jz loc_74347; jumptable 0000000000074055 cases 111-113,115
mov ecx, eax
and ecx, 0FFFFFC00h
lea rbp, aInvalidStringS; "invalid string: surrogate U+D800..U+DBF"...
cmp ecx, 0DC00h
jnz loc_74347; jumptable 0000000000074055 cases 111-113,115
shl r15d, 0Ah
add r15d, eax
add r15d, 0FCA02400h
loc_740DE:
mov eax, r15d
shr eax, 12h
or al, 0F0h
movsx esi, al
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov eax, r15d
shr eax, 0Ch
and al, 3Fh
or al, 80h
loc_740FB:
movsx esi, al
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
mov eax, r15d
shr eax, 6
and al, 3Fh
or al, 80h
loc_74110:
movsx esi, al
mov rdi, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char)
and r15b, 3Fh
or r15b, 80h
jmp loc_73FBC
loc_74128:
cmp eax, 0DC00h
jz loc_74368
cmp r15d, 110000h
jnb loc_7438D
cmp r15d, 7Fh
jbe loc_73FBC
cmp r15d, 7FFh
ja short loc_7418E
mov eax, r15d
shr eax, 6
or al, 0C0h
jmp short loc_74110
loc_7415D:
cmp eax, 22h ; '"'
jz short loc_741B0
cmp eax, 2Fh ; '/'
jz short loc_741A8
cmp eax, 5Ch ; '\'
jnz loc_74347; jumptable 0000000000074055 cases 111-113,115
mov r15b, 5Ch ; '\'
jmp loc_73FBC
def_74055:
cmp eax, 62h ; 'b'; jumptable 0000000000074055 default case
jz short loc_741D0
cmp eax, 66h ; 'f'
jnz loc_74347; jumptable 0000000000074055 cases 111-113,115
mov r15b, 0Ch
jmp loc_73FBC
loc_7418E:
cmp r15d, 0FFFFh
ja loc_740DE
mov eax, r15d
shr eax, 0Ch
or al, 0E0h
jmp loc_740FB
loc_741A8:
mov r15b, 2Fh ; '/'
jmp loc_73FBC
loc_741B0:
mov r15b, 22h ; '"'
jmp loc_73FBC
loc_741B8:
mov r15b, 9; jumptable 0000000000074055 case 116
jmp loc_73FBC
loc_741C0:
mov r15b, 0Ah; jumptable 0000000000074055 case 110
jmp loc_73FBC
loc_741C8:
mov r15b, 0Dh; jumptable 0000000000074055 case 114
jmp loc_73FBC
loc_741D0:
mov r15b, 8
jmp loc_73FBC
loc_741D8:
mov eax, 4; jumptable 0000000000073F8B case 34
jmp loc_74350
loc_741E2:
lea rbp, aInvalidStringC_0; jumptable 0000000000073F8B case 31
jmp loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_741EE:
lea rbp, aInvalidStringC_1; jumptable 0000000000073F8B case 25
jmp loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_741FA:
lea rbp, aInvalidStringC_2; jumptable 0000000000073F8B case 30
jmp loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_74206:
lea rbp, aInvalidStringC_3; jumptable 0000000000073F8B case 12
jmp loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_74212:
lea rbp, aInvalidStringC_4; jumptable 0000000000073F8B case 28
jmp loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_7421E:
lea rbp, aInvalidStringC_5; jumptable 0000000000073F8B case 24
jmp loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_7422A:
lea rbp, aInvalidStringC_6; jumptable 0000000000073F8B case 4
jmp loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_74236:
lea rbp, aInvalidStringC_7; jumptable 0000000000073F8B case 8
jmp loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_74242:
lea rbp, aInvalidStringC_8; jumptable 0000000000073F8B case 3
jmp loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_7424E:
lea rbp, aInvalidStringC_9; jumptable 0000000000073F8B case 6
jmp loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_7425A:
lea rbp, aInvalidStringC_10; jumptable 0000000000073F8B case 7
jmp loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_74266:
mov rbp, r12; jumptable 0000000000073F8B case 1
jmp loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_7426E:
lea rbp, aInvalidStringC_11; jumptable 0000000000073F8B case 16
jmp loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_7427A:
lea rbp, aInvalidStringC_12; jumptable 0000000000073F8B case 14
jmp loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_74286:
lea rbp, aInvalidStringM; jumptable 0000000000073F8B case -1
jmp loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_74292:
lea rbp, aInvalidStringC_13; jumptable 0000000000073F8B case 5
jmp loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_7429E:
lea rbp, aInvalidStringC_14; jumptable 0000000000073F8B case 17
jmp loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_742AA:
lea rbp, aInvalidStringC_15; jumptable 0000000000073F8B case 0
jmp loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_742B6:
lea rbp, aInvalidStringC_16; jumptable 0000000000073F8B case 2
jmp loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_742C2:
lea rbp, aInvalidStringC_17; jumptable 0000000000073F8B case 19
jmp short loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_742CB:
lea rbp, aInvalidStringC_18; jumptable 0000000000073F8B case 20
jmp short loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_742D4:
lea rbp, aInvalidStringC_19; jumptable 0000000000073F8B case 27
jmp short loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_742DD:
lea rbp, aInvalidStringC_20; jumptable 0000000000073F8B case 9
jmp short loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_742E6:
lea rbp, aInvalidStringC_21; jumptable 0000000000073F8B case 21
jmp short loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_742EF:
lea rbp, aInvalidStringC_22; jumptable 0000000000073F8B case 13
jmp short loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_742F8:
lea rbp, aInvalidStringC_23; jumptable 0000000000073F8B case 26
jmp short loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_74301:
lea rbp, aInvalidStringC_24; jumptable 0000000000073F8B case 10
jmp short loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_7430A:
lea rbp, aInvalidStringC_25; jumptable 0000000000073F8B case 11
jmp short loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_74313:
lea rbp, aInvalidStringC_26; jumptable 0000000000073F8B case 18
jmp short loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_7431C:
lea rbp, aInvalidStringC_27; jumptable 0000000000073F8B case 15
jmp short loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_74325:
lea rbp, aInvalidStringC_28; jumptable 0000000000073F8B case 29
jmp short loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_7432E:
lea rbp, aInvalidStringC_29; jumptable 0000000000073F8B case 22
jmp short loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_74337:
lea rbp, aInvalidStringC_30; jumptable 0000000000073F8B case 23
jmp short loc_74347; jumptable 0000000000074055 cases 111-113,115
def_73F8B:
lea rbp, aInvalidStringI; jumptable 0000000000073F8B default case, cases 128-193
loc_74347:
mov [rbx+70h], rbp; jumptable 0000000000074055 cases 111-113,115
loc_7434B:
mov eax, 0Eh
loc_74350:
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_7435F:
lea rbp, aInvalidStringS; "invalid string: surrogate U+D800..U+DBF"...
jmp short loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_74368:
lea rbp, aInvalidStringS_0; "invalid string: surrogate U+DC00..U+DFF"...
jmp short loc_74347; jumptable 0000000000074055 cases 111-113,115
loc_74371:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, aCurrent; "current == '\\\"'"
mov esi, 1DD1h
jmp short loc_743A7
loc_7438D:
lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."...
lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed"
lea rcx, a0x00CodepointC; "0x00 <= codepoint && codepoint <= 0x10F"...
mov esi, 1E49h
loc_743A7:
xor eax, eax
call _ggml_abort
| 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>::scan_string(
__m128i *this)
{
long long v1; // rcx
long long v2; // r8
long long v3; // r9
long long v4; // rdx
__int128 v5; // xmm0
unsigned int v6; // r15d
__int128 v7; // xmm0
int v8; // eax
const char *v9; // rbp
unsigned int codepoint; // eax
unsigned int v11; // eax
int v12; // eax
char v13; // al
char v14; // al
__int128 v16; // [rsp+0h] [rbp-48h] BYREF
long long v17; // [rsp+10h] [rbp-38h]
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>::reset();
if ( this[1].m128i_i32[1] != 34 )
{
ggml_abort(
"/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",
7633LL,
"GGML_ASSERT(%s) failed",
"current == '\\\"'");
return 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>::scan_number((nlohmann::json_abi_v3_11_3::detail::input_stream_adapter *)"/workspace/llm4binary/github2025/llama.cpp/common/json.hpp");
}
while ( 2 )
{
while ( 2 )
{
switch ( (unsigned int)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) )
{
case 0xFFFFFFFF:
v9 = "invalid string: missing closing quote";
goto LABEL_83;
case 0u:
v9 = "invalid string: control character U+0000 (NUL) must be escaped to \\u0000";
goto LABEL_83;
case 1u:
v9 = "invalid string: control character U+0001 (SOH) must be escaped to \\u0001";
goto LABEL_83;
case 2u:
v9 = "invalid string: control character U+0002 (STX) must be escaped to \\u0002";
goto LABEL_83;
case 3u:
v9 = "invalid string: control character U+0003 (ETX) must be escaped to \\u0003";
goto LABEL_83;
case 4u:
v9 = "invalid string: control character U+0004 (EOT) must be escaped to \\u0004";
goto LABEL_83;
case 5u:
v9 = "invalid string: control character U+0005 (ENQ) must be escaped to \\u0005";
goto LABEL_83;
case 6u:
v9 = "invalid string: control character U+0006 (ACK) must be escaped to \\u0006";
goto LABEL_83;
case 7u:
v9 = "invalid string: control character U+0007 (BEL) must be escaped to \\u0007";
goto LABEL_83;
case 8u:
v9 = "invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b";
goto LABEL_83;
case 9u:
v9 = "invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t";
goto LABEL_83;
case 0xAu:
v9 = "invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n";
goto LABEL_83;
case 0xBu:
v9 = "invalid string: control character U+000B (VT) must be escaped to \\u000B";
goto LABEL_83;
case 0xCu:
v9 = "invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f";
goto LABEL_83;
case 0xDu:
v9 = "invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r";
goto LABEL_83;
case 0xEu:
v9 = "invalid string: control character U+000E (SO) must be escaped to \\u000E";
goto LABEL_83;
case 0xFu:
v9 = "invalid string: control character U+000F (SI) must be escaped to \\u000F";
goto LABEL_83;
case 0x10u:
v9 = "invalid string: control character U+0010 (DLE) must be escaped to \\u0010";
goto LABEL_83;
case 0x11u:
v9 = "invalid string: control character U+0011 (DC1) must be escaped to \\u0011";
goto LABEL_83;
case 0x12u:
v9 = "invalid string: control character U+0012 (DC2) must be escaped to \\u0012";
goto LABEL_83;
case 0x13u:
v9 = "invalid string: control character U+0013 (DC3) must be escaped to \\u0013";
goto LABEL_83;
case 0x14u:
v9 = "invalid string: control character U+0014 (DC4) must be escaped to \\u0014";
goto LABEL_83;
case 0x15u:
v9 = "invalid string: control character U+0015 (NAK) must be escaped to \\u0015";
goto LABEL_83;
case 0x16u:
v9 = "invalid string: control character U+0016 (SYN) must be escaped to \\u0016";
goto LABEL_83;
case 0x17u:
v9 = "invalid string: control character U+0017 (ETB) must be escaped to \\u0017";
goto LABEL_83;
case 0x18u:
v9 = "invalid string: control character U+0018 (CAN) must be escaped to \\u0018";
goto LABEL_83;
case 0x19u:
v9 = "invalid string: control character U+0019 (EM) must be escaped to \\u0019";
goto LABEL_83;
case 0x1Au:
v9 = "invalid string: control character U+001A (SUB) must be escaped to \\u001A";
goto LABEL_83;
case 0x1Bu:
v9 = "invalid string: control character U+001B (ESC) must be escaped to \\u001B";
goto LABEL_83;
case 0x1Cu:
v9 = "invalid string: control character U+001C (FS) must be escaped to \\u001C";
goto LABEL_83;
case 0x1Du:
v9 = "invalid string: control character U+001D (GS) must be escaped to \\u001D";
goto LABEL_83;
case 0x1Eu:
v9 = "invalid string: control character U+001E (RS) must be escaped to \\u001E";
goto LABEL_83;
case 0x1Fu:
v9 = "invalid string: control character U+001F (US) must be escaped to \\u001F";
goto LABEL_83;
case 0x20u:
case 0x21u:
case 0x23u:
case 0x24u:
case 0x25u:
case 0x26u:
case 0x27u:
case 0x28u:
case 0x29u:
case 0x2Au:
case 0x2Bu:
case 0x2Cu:
case 0x2Du:
case 0x2Eu:
case 0x2Fu:
case 0x30u:
case 0x31u:
case 0x32u:
case 0x33u:
case 0x34u:
case 0x35u:
case 0x36u:
case 0x37u:
case 0x38u:
case 0x39u:
case 0x3Au:
case 0x3Bu:
case 0x3Cu:
case 0x3Du:
case 0x3Eu:
case 0x3Fu:
case 0x40u:
case 0x41u:
case 0x42u:
case 0x43u:
case 0x44u:
case 0x45u:
case 0x46u:
case 0x47u:
case 0x48u:
case 0x49u:
case 0x4Au:
case 0x4Bu:
case 0x4Cu:
case 0x4Du:
case 0x4Eu:
case 0x4Fu:
case 0x50u:
case 0x51u:
case 0x52u:
case 0x53u:
case 0x54u:
case 0x55u:
case 0x56u:
case 0x57u:
case 0x58u:
case 0x59u:
case 0x5Au:
case 0x5Bu:
case 0x5Du:
case 0x5Eu:
case 0x5Fu:
case 0x60u:
case 0x61u:
case 0x62u:
case 0x63u:
case 0x64u:
case 0x65u:
case 0x66u:
case 0x67u:
case 0x68u:
case 0x69u:
case 0x6Au:
case 0x6Bu:
case 0x6Cu:
case 0x6Du:
case 0x6Eu:
case 0x6Fu:
case 0x70u:
case 0x71u:
case 0x72u:
case 0x73u:
case 0x74u:
case 0x75u:
case 0x76u:
case 0x77u:
case 0x78u:
case 0x79u:
case 0x7Au:
case 0x7Bu:
case 0x7Cu:
case 0x7Du:
case 0x7Eu:
case 0x7Fu:
LOBYTE(v6) = this[1].m128i_i8[4];
goto LABEL_7;
case 0x22u:
return 4LL;
case 0x5Cu:
v8 = 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);
v9 = "invalid string: forbidden character after backslash";
if ( v8 <= 97 )
{
switch ( v8 )
{
case '"':
LOBYTE(v6) = 34;
break;
case '/':
LOBYTE(v6) = 47;
break;
case '\\':
LOBYTE(v6) = 92;
break;
default:
goto LABEL_83;
}
goto LABEL_7;
}
break;
case 0xC2u:
case 0xC3u:
case 0xC4u:
case 0xC5u:
case 0xC6u:
case 0xC7u:
case 0xC8u:
case 0xC9u:
case 0xCAu:
case 0xCBu:
case 0xCCu:
case 0xCDu:
case 0xCEu:
case 0xCFu:
case 0xD0u:
case 0xD1u:
case 0xD2u:
case 0xD3u:
case 0xD4u:
case 0xD5u:
case 0xD6u:
case 0xD7u:
case 0xD8u:
case 0xD9u:
case 0xDAu:
case 0xDBu:
case 0xDCu:
case 0xDDu:
case 0xDEu:
case 0xDFu:
*(_QWORD *)&v16 = 0xBF00000080LL;
v4 = 2LL;
goto LABEL_14;
case 0xE0u:
v5 = xmmword_1142C0;
goto LABEL_5;
case 0xE1u:
case 0xE2u:
case 0xE3u:
case 0xE4u:
case 0xE5u:
case 0xE6u:
case 0xE7u:
case 0xE8u:
case 0xE9u:
case 0xEAu:
case 0xEBu:
case 0xECu:
case 0xEEu:
case 0xEFu:
v5 = xmmword_1142B0;
goto LABEL_5;
case 0xEDu:
v5 = xmmword_1142A0;
LABEL_5:
v16 = v5;
v4 = 4LL;
goto LABEL_14;
case 0xF0u:
v7 = xmmword_11E1C0;
goto LABEL_13;
case 0xF1u:
case 0xF2u:
case 0xF3u:
v7 = xmmword_11E1D8;
goto LABEL_13;
case 0xF4u:
v7 = xmmword_11E1F0;
LABEL_13:
v16 = v7;
v17 = 0xBF00000080LL;
v4 = 6LL;
LABEL_14:
if ( !(unsigned __int8)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>::next_byte_in_range(
this,
&v16,
v4,
v1,
v2,
v3,
v16,
*((_QWORD *)&v16 + 1),
v17) )
return 14LL;
continue;
default:
v9 = "invalid string: ill-formed UTF-8 byte";
goto LABEL_83;
}
break;
}
switch ( v8 )
{
case 'n':
LOBYTE(v6) = 10;
goto LABEL_7;
case 'o':
case 'p':
case 'q':
case 's':
goto LABEL_83;
case 'r':
LOBYTE(v6) = 13;
goto LABEL_7;
case 't':
LOBYTE(v6) = 9;
goto LABEL_7;
case 'u':
codepoint = 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(this);
v9 = "invalid string: '\\u' must be followed by 4 hex digits";
if ( codepoint == -1 )
goto LABEL_83;
v6 = codepoint;
v11 = codepoint & 0xFFFFFC00;
if ( v11 == 55296 )
{
if ( (unsigned int)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) != 92
|| (unsigned int)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) != 117 )
{
v9 = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
LABEL_83:
this[7].m128i_i64[0] = (long long)v9;
return 14LL;
}
v12 = 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(this);
if ( v12 == -1 )
goto LABEL_83;
v9 = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
if ( (v12 & 0xFFFFFC00) != 0xDC00 )
goto LABEL_83;
v6 = v12 + (v6 << 10) - 56613888;
goto LABEL_25;
}
if ( v11 == 56320 )
{
v9 = "invalid string: surrogate U+DC00..U+DFFF must follow U+D800..U+DBFF";
goto LABEL_83;
}
if ( v6 < 0x110000 )
{
if ( v6 > 0x7F )
{
if ( v6 <= 0x7FF )
{
v14 = (v6 >> 6) | 0xC0;
goto LABEL_27;
}
if ( v6 <= 0xFFFF )
{
v13 = (v6 >> 12) | 0xE0;
goto LABEL_26;
}
LABEL_25:
std::string::push_back(&this[5], (unsigned int)(char)((v6 >> 18) | 0xF0));
v13 = (v6 >> 12) & 0x3F | 0x80;
LABEL_26:
std::string::push_back(&this[5], (unsigned int)v13);
v14 = (v6 >> 6) & 0x3F | 0x80;
LABEL_27:
std::string::push_back(&this[5], (unsigned int)v14);
LOBYTE(v6) = v6 & 0x3F | 0x80;
}
LABEL_7:
std::string::push_back(&this[5], (unsigned int)(char)v6);
continue;
}
ggml_abort(
"/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",
7753LL,
"GGML_ASSERT(%s) failed",
"0x00 <= codepoint && codepoint <= 0x10FFFF");
return 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>::scan_number((nlohmann::json_abi_v3_11_3::detail::input_stream_adapter *)"/workspace/llm4binary/github2025/llama.cpp/common/json.hpp");
default:
if ( v8 == 98 )
{
LOBYTE(v6) = 8;
}
else
{
if ( v8 != 102 )
goto LABEL_83;
LOBYTE(v6) = 12;
}
goto LABEL_7;
}
}
}
| scan_string:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV RBX,RDI
CALL 0x00174778
CMP dword ptr [RBX + 0x14],0x22
JNZ 0x00174371
LEA R14,[RBX + 0x50]
LEA R12,[0x21b90d]
LEA R13,[0x214438]
LAB_00173f6e:
MOV RDI,RBX
CALL 0x0012250c
INC EAX
CMP EAX,0xf5
JA 0x00174340
MOVSXD RAX,dword ptr [R13 + RAX*0x4]
ADD RAX,R13
switchD:
JMP RAX
caseD_c2:
MOV RAX,0xbf00000080
MOV RSI,RSP
MOV qword ptr [RSI],RAX
MOV EDX,0x2
JMP 0x0017400e
caseD_e1:
MOVAPS XMM0,xmmword ptr [0x002142b0]
LAB_00173fab:
MOV RSI,RSP
MOVAPS xmmword ptr [RSI],XMM0
MOV EDX,0x4
JMP 0x0017400e
caseD_20:
MOV R15B,byte ptr [RBX + 0x14]
LAB_00173fbc:
MOVSX ESI,R15B
MOV RDI,R14
CALL 0x00122370
JMP 0x00173f6e
caseD_f1:
MOVUPS XMM0,xmmword ptr [0x0021e1d8]
JMP 0x00173ff5
caseD_ed:
MOVAPS XMM0,xmmword ptr [0x002142a0]
JMP 0x00173fab
caseD_e0:
MOVAPS XMM0,xmmword ptr [0x002142c0]
JMP 0x00173fab
caseD_f4:
MOVUPS XMM0,xmmword ptr [0x0021e1f0]
JMP 0x00173ff5
caseD_f0:
MOVUPS XMM0,xmmword ptr [0x0021e1c0]
LAB_00173ff5:
MOV RSI,RSP
MOVAPS xmmword ptr [RSI],XMM0
MOV RAX,0xbf00000080
MOV qword ptr [RSI + 0x10],RAX
MOV EDX,0x6
LAB_0017400e:
MOV RDI,RBX
CALL 0x001747fc
TEST AL,AL
JNZ 0x00173f6e
JMP 0x0017434b
caseD_5c:
MOV RDI,RBX
CALL 0x0012250c
LEA RBP,[0x21b890]
CMP EAX,0x61
JLE 0x0017415d
LEA ECX,[RAX + -0x6e]
CMP ECX,0x7
JA 0x00174178
LEA RAX,[0x214810]
MOVSXD RCX,dword ptr [RAX + RCX*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_75:
MOV RDI,RBX
CALL 0x001747b6
LEA RBP,[0x21b79f]
CMP EAX,-0x1
JZ 0x00174347
MOV R15D,EAX
AND EAX,0xfffffc00
CMP EAX,0xd800
JNZ 0x00174128
MOV RDI,RBX
CALL 0x0012250c
CMP EAX,0x5c
JNZ 0x0017435f
MOV RDI,RBX
CALL 0x0012250c
CMP EAX,0x75
JNZ 0x0017435f
MOV RDI,RBX
CALL 0x001747b6
CMP EAX,-0x1
JZ 0x00174347
MOV ECX,EAX
AND ECX,0xfffffc00
LEA RBP,[0x21b7d5]
CMP ECX,0xdc00
JNZ 0x00174347
SHL R15D,0xa
ADD R15D,EAX
ADD R15D,0xfca02400
LAB_001740de:
MOV EAX,R15D
SHR EAX,0x12
OR AL,0xf0
MOVSX ESI,AL
MOV RDI,R14
CALL 0x00122370
MOV EAX,R15D
SHR EAX,0xc
AND AL,0x3f
OR AL,0x80
LAB_001740fb:
MOVSX ESI,AL
MOV RDI,R14
CALL 0x00122370
MOV EAX,R15D
SHR EAX,0x6
AND AL,0x3f
OR AL,0x80
LAB_00174110:
MOVSX ESI,AL
MOV RDI,R14
CALL 0x00122370
AND R15B,0x3f
OR R15B,0x80
JMP 0x00173fbc
LAB_00174128:
CMP EAX,0xdc00
JZ 0x00174368
CMP R15D,0x110000
JNC 0x0017438d
CMP R15D,0x7f
JBE 0x00173fbc
CMP R15D,0x7ff
JA 0x0017418e
MOV EAX,R15D
SHR EAX,0x6
OR AL,0xc0
JMP 0x00174110
LAB_0017415d:
CMP EAX,0x22
JZ 0x001741b0
CMP EAX,0x2f
JZ 0x001741a8
CMP EAX,0x5c
JNZ 0x00174347
MOV R15B,0x5c
JMP 0x00173fbc
default:
CMP EAX,0x62
JZ 0x001741d0
CMP EAX,0x66
JNZ 0x00174347
MOV R15B,0xc
JMP 0x00173fbc
LAB_0017418e:
CMP R15D,0xffff
JA 0x001740de
MOV EAX,R15D
SHR EAX,0xc
OR AL,0xe0
JMP 0x001740fb
LAB_001741a8:
MOV R15B,0x2f
JMP 0x00173fbc
LAB_001741b0:
MOV R15B,0x22
JMP 0x00173fbc
caseD_74:
MOV R15B,0x9
JMP 0x00173fbc
caseD_6e:
MOV R15B,0xa
JMP 0x00173fbc
caseD_72:
MOV R15B,0xd
JMP 0x00173fbc
LAB_001741d0:
MOV R15B,0x8
JMP 0x00173fbc
caseD_22:
MOV EAX,0x4
JMP 0x00174350
caseD_1f:
LEA RBP,[0x21c1ad]
JMP 0x00174347
caseD_19:
LEA RBP,[0x21bffb]
JMP 0x00174347
caseD_1e:
LEA RBP,[0x21c165]
JMP 0x00174347
caseD_c:
LEA RBP,[0x21bc3e]
JMP 0x00174347
caseD_1c:
LEA RBP,[0x21c0d5]
JMP 0x00174347
caseD_18:
LEA RBP,[0x21bfb2]
JMP 0x00174347
caseD_4:
LEA RBP,[0x21b9e8]
JMP 0x00174347
caseD_8:
LEA RBP,[0x21bb0c]
JMP 0x00174347
caseD_3:
LEA RBP,[0x21b99f]
JMP 0x00174347
caseD_6:
LEA RBP,[0x21ba7a]
JMP 0x00174347
caseD_7:
LEA RBP,[0x21bac3]
JMP 0x00174347
caseD_1:
MOV RBP,R12
JMP 0x00174347
caseD_10:
LEA RBP,[0x21bd6a]
JMP 0x00174347
caseD_e:
LEA RBP,[0x21bcda]
JMP 0x00174347
caseD_ffffffff:
LEA RBP,[0x21b779]
JMP 0x00174347
caseD_5:
LEA RBP,[0x21ba31]
JMP 0x00174347
caseD_11:
LEA RBP,[0x21bdb3]
JMP 0x00174347
caseD_0:
LEA RBP,[0x21b8c4]
JMP 0x00174347
caseD_2:
LEA RBP,[0x21b956]
JMP 0x00174347
caseD_13:
LEA RBP,[0x21be45]
JMP 0x00174347
caseD_14:
LEA RBP,[0x21be8e]
JMP 0x00174347
caseD_1b:
LEA RBP,[0x21c08c]
JMP 0x00174347
caseD_9:
LEA RBP,[0x21bb5a]
JMP 0x00174347
caseD_15:
LEA RBP,[0x21bed7]
JMP 0x00174347
caseD_d:
LEA RBP,[0x21bc8c]
JMP 0x00174347
caseD_1a:
LEA RBP,[0x21c043]
JMP 0x00174347
caseD_a:
LEA RBP,[0x21bba8]
JMP 0x00174347
caseD_b:
LEA RBP,[0x21bbf6]
JMP 0x00174347
caseD_12:
LEA RBP,[0x21bdfc]
JMP 0x00174347
caseD_f:
LEA RBP,[0x21bd22]
JMP 0x00174347
caseD_1d:
LEA RBP,[0x21c11d]
JMP 0x00174347
caseD_16:
LEA RBP,[0x21bf20]
JMP 0x00174347
caseD_17:
LEA RBP,[0x21bf69]
JMP 0x00174347
caseD_80:
LEA RBP,[0x21c1f5]
caseD_6f:
MOV qword ptr [RBX + 0x70],RBP
LAB_0017434b:
MOV EAX,0xe
LAB_00174350:
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0017435f:
LEA RBP,[0x21b7d5]
JMP 0x00174347
LAB_00174368:
LEA RBP,[0x21b821]
JMP 0x00174347
LAB_00174371:
LEA RDI,[0x21b512]
LEA RDX,[0x214131]
LEA RCX,[0x21b769]
MOV ESI,0x1dd1
JMP 0x001743a7
LAB_0017438d:
LEA RDI,[0x21b512]
LEA RDX,[0x214131]
LEA RCX,[0x21b865]
MOV ESI,0x1e49
LAB_001743a7:
XOR EAX,EAX
CALL 0x00121e60
|
/* 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>::scan_string() */
int8 __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>
::scan_string(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)
{
char cVar1;
int4 uVar2;
int iVar3;
uint uVar4;
char *pcVar5;
int8 uVar6;
char cVar7;
int4 uVar8;
int8 local_48;
int4 uStack_40;
int4 uStack_3c;
int8 local_38;
reset(this);
if (*(int *)(this + 0x14) != 0x22) {
pcVar5 = "current == \'\\\"\'";
uVar6 = 0x1dd1;
LAB_001743a7:
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",uVar6,
"GGML_ASSERT(%s) failed",pcVar5);
}
cVar7 = (char)this + 'P';
LAB_00173f6e:
uVar2 = get(this);
switch(uVar2) {
case 0:
pcVar5 = "invalid string: control character U+0000 (NUL) must be escaped to \\u0000";
break;
case 1:
pcVar5 = "invalid string: control character U+0001 (SOH) must be escaped to \\u0001";
break;
case 2:
pcVar5 = "invalid string: control character U+0002 (STX) must be escaped to \\u0002";
break;
case 3:
pcVar5 = "invalid string: control character U+0003 (ETX) must be escaped to \\u0003";
break;
case 4:
pcVar5 = "invalid string: control character U+0004 (EOT) must be escaped to \\u0004";
break;
case 5:
pcVar5 = "invalid string: control character U+0005 (ENQ) must be escaped to \\u0005";
break;
case 6:
pcVar5 = "invalid string: control character U+0006 (ACK) must be escaped to \\u0006";
break;
case 7:
pcVar5 = "invalid string: control character U+0007 (BEL) must be escaped to \\u0007";
break;
case 8:
pcVar5 = "invalid string: control character U+0008 (BS) must be escaped to \\u0008 or \\b";
break;
case 9:
pcVar5 = "invalid string: control character U+0009 (HT) must be escaped to \\u0009 or \\t";
break;
case 10:
pcVar5 = "invalid string: control character U+000A (LF) must be escaped to \\u000A or \\n";
break;
case 0xb:
pcVar5 = "invalid string: control character U+000B (VT) must be escaped to \\u000B";
break;
case 0xc:
pcVar5 = "invalid string: control character U+000C (FF) must be escaped to \\u000C or \\f";
break;
case 0xd:
pcVar5 = "invalid string: control character U+000D (CR) must be escaped to \\u000D or \\r";
break;
case 0xe:
pcVar5 = "invalid string: control character U+000E (SO) must be escaped to \\u000E";
break;
case 0xf:
pcVar5 = "invalid string: control character U+000F (SI) must be escaped to \\u000F";
break;
case 0x10:
pcVar5 = "invalid string: control character U+0010 (DLE) must be escaped to \\u0010";
break;
case 0x11:
pcVar5 = "invalid string: control character U+0011 (DC1) must be escaped to \\u0011";
break;
case 0x12:
pcVar5 = "invalid string: control character U+0012 (DC2) must be escaped to \\u0012";
break;
case 0x13:
pcVar5 = "invalid string: control character U+0013 (DC3) must be escaped to \\u0013";
break;
case 0x14:
pcVar5 = "invalid string: control character U+0014 (DC4) must be escaped to \\u0014";
break;
case 0x15:
pcVar5 = "invalid string: control character U+0015 (NAK) must be escaped to \\u0015";
break;
case 0x16:
pcVar5 = "invalid string: control character U+0016 (SYN) must be escaped to \\u0016";
break;
case 0x17:
pcVar5 = "invalid string: control character U+0017 (ETB) must be escaped to \\u0017";
break;
case 0x18:
pcVar5 = "invalid string: control character U+0018 (CAN) must be escaped to \\u0018";
break;
case 0x19:
pcVar5 = "invalid string: control character U+0019 (EM) must be escaped to \\u0019";
break;
case 0x1a:
pcVar5 = "invalid string: control character U+001A (SUB) must be escaped to \\u001A";
break;
case 0x1b:
pcVar5 = "invalid string: control character U+001B (ESC) must be escaped to \\u001B";
break;
case 0x1c:
pcVar5 = "invalid string: control character U+001C (FS) must be escaped to \\u001C";
break;
case 0x1d:
pcVar5 = "invalid string: control character U+001D (GS) must be escaped to \\u001D";
break;
case 0x1e:
pcVar5 = "invalid string: control character U+001E (RS) must be escaped to \\u001E";
break;
case 0x1f:
pcVar5 = "invalid string: control character U+001F (US) must be escaped to \\u001F";
break;
case 0x20:
case 0x21:
case 0x23:
case 0x24:
case 0x25:
case 0x26:
case 0x27:
case 0x28:
case 0x29:
case 0x2a:
case 0x2b:
case 0x2c:
case 0x2d:
case 0x2e:
case 0x2f:
case 0x30:
case 0x31:
case 0x32:
case 0x33:
case 0x34:
case 0x35:
case 0x36:
case 0x37:
case 0x38:
case 0x39:
case 0x3a:
case 0x3b:
case 0x3c:
case 0x3d:
case 0x3e:
case 0x3f:
case 0x40:
case 0x41:
case 0x42:
case 0x43:
case 0x44:
case 0x45:
case 0x46:
case 0x47:
case 0x48:
case 0x49:
case 0x4a:
case 0x4b:
case 0x4c:
case 0x4d:
case 0x4e:
case 0x4f:
case 0x50:
case 0x51:
case 0x52:
case 0x53:
case 0x54:
case 0x55:
case 0x56:
case 0x57:
case 0x58:
case 0x59:
case 0x5a:
case 0x5b:
case 0x5d:
case 0x5e:
case 0x5f:
case 0x60:
case 0x61:
case 0x62:
case 99:
case 100:
case 0x65:
case 0x66:
case 0x67:
case 0x68:
case 0x69:
case 0x6a:
case 0x6b:
case 0x6c:
case 0x6d:
case 0x6e:
case 0x6f:
case 0x70:
case 0x71:
case 0x72:
case 0x73:
case 0x74:
case 0x75:
case 0x76:
case 0x77:
case 0x78:
case 0x79:
case 0x7a:
case 0x7b:
case 0x7c:
case 0x7d:
case 0x7e:
case 0x7f:
goto LAB_00173fbc;
case 0x22:
return 4;
case 0x5c:
iVar3 = get(this);
pcVar5 = "invalid string: forbidden character after backslash";
if (iVar3 < 0x62) {
if (((iVar3 != 0x22) && (iVar3 != 0x2f)) && (iVar3 != 0x5c)) break;
}
else {
switch(iVar3) {
case 0x6e:
break;
case 0x6f:
case 0x70:
case 0x71:
case 0x73:
goto switchD_00174055_caseD_6f;
case 0x72:
break;
case 0x74:
break;
case 0x75:
uVar4 = get_codepoint(this);
pcVar5 = "invalid string: \'\\u\' must be followed by 4 hex digits";
if (uVar4 == 0xffffffff) goto switchD_00174055_caseD_6f;
if ((uVar4 & 0xfffffc00) == 0xd800) {
iVar3 = get(this);
if ((iVar3 != 0x5c) || (iVar3 = get(this), iVar3 != 0x75)) {
pcVar5 = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF";
goto switchD_00174055_caseD_6f;
}
uVar4 = get_codepoint(this);
if ((uVar4 == 0xffffffff) ||
(pcVar5 = "invalid string: surrogate U+D800..U+DBFF must be followed by U+DC00..U+DFFF"
, (uVar4 & 0xfffffc00) != 0xdc00)) goto switchD_00174055_caseD_6f;
LAB_001740de:
std::__cxx11::string::push_back(cVar7);
LAB_001740fb:
std::__cxx11::string::push_back(cVar7);
}
else {
if ((uVar4 & 0xfffffc00) == 0xdc00) {
pcVar5 = "invalid string: surrogate U+DC00..U+DFFF must follow U+D800..U+DBFF";
goto switchD_00174055_caseD_6f;
}
if (0x10ffff < uVar4) {
pcVar5 = "0x00 <= codepoint && codepoint <= 0x10FFFF";
uVar6 = 0x1e49;
goto LAB_001743a7;
}
if (uVar4 < 0x80) break;
if (0x7ff < uVar4) {
if (0xffff < uVar4) goto LAB_001740de;
goto LAB_001740fb;
}
}
std::__cxx11::string::push_back(cVar7);
break;
default:
if ((iVar3 != 0x62) && (iVar3 != 0x66)) goto switchD_00174055_caseD_6f;
}
}
LAB_00173fbc:
std::__cxx11::string::push_back(cVar7);
goto LAB_00173f6e;
default:
pcVar5 = "invalid string: ill-formed UTF-8 byte";
break;
case 0xc2:
case 0xc3:
case 0xc4:
case 0xc5:
case 0xc6:
case 199:
case 200:
case 0xc9:
case 0xca:
case 0xcb:
case 0xcc:
case 0xcd:
case 0xce:
case 0xcf:
case 0xd0:
case 0xd1:
case 0xd2:
case 0xd3:
case 0xd4:
case 0xd5:
case 0xd6:
case 0xd7:
case 0xd8:
case 0xd9:
case 0xda:
case 0xdb:
case 0xdc:
case 0xdd:
case 0xde:
case 0xdf:
local_48 = 0xbf00000080;
uVar6 = 2;
goto LAB_0017400e;
case 0xe0:
uVar2 = _DAT_002142c0;
uVar8 = _UNK_002142c4;
uStack_40 = _UNK_002142c8;
uStack_3c = _UNK_002142cc;
goto LAB_00173fab;
case 0xe1:
case 0xe2:
case 0xe3:
case 0xe4:
case 0xe5:
case 0xe6:
case 0xe7:
case 0xe8:
case 0xe9:
case 0xea:
case 0xeb:
case 0xec:
case 0xee:
case 0xef:
uVar2 = _DAT_002142b0;
uVar8 = _UNK_002142b4;
uStack_40 = _UNK_002142b8;
uStack_3c = _UNK_002142bc;
goto LAB_00173fab;
case 0xed:
uVar2 = _DAT_002142a0;
uVar8 = _UNK_002142a4;
uStack_40 = _UNK_002142a8;
uStack_3c = _UNK_002142ac;
LAB_00173fab:
local_48 = CONCAT44(uVar8,uVar2);
uVar6 = 4;
LAB_0017400e:
cVar1 = next_byte_in_range(this,&local_48,uVar6);
if (cVar1 == '\0') {
return 0xe;
}
goto LAB_00173f6e;
case 0xf0:
uVar2 = _DAT_0021e1c0;
uVar8 = _UNK_0021e1c4;
uStack_40 = _UNK_0021e1c8;
uStack_3c = _UNK_0021e1cc;
goto LAB_00173ff5;
case 0xf1:
case 0xf2:
case 0xf3:
uVar2 = _DAT_0021e1d8;
uVar8 = _UNK_0021e1dc;
uStack_40 = _UNK_0021e1e0;
uStack_3c = _UNK_0021e1e4;
goto LAB_00173ff5;
case 0xf4:
uVar2 = _DAT_0021e1f0;
uVar8 = _UNK_0021e1f4;
uStack_40 = _UNK_0021e1f8;
uStack_3c = _UNK_0021e1fc;
LAB_00173ff5:
local_48 = CONCAT44(uVar8,uVar2);
local_38 = 0xbf00000080;
uVar6 = 6;
goto LAB_0017400e;
case 0xffffffff:
pcVar5 = "invalid string: missing closing quote";
}
switchD_00174055_caseD_6f:
*(char **)(this + 0x70) = pcVar5;
return 0xe;
}
| |
28,241 | 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;
} | O0 | c | get_charset_number:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x20(%rbp), %rdx
andq $0x400, %rdx # imm = 0x400
leaq 0x4f943(%rip), %rax # 0x796d8
leaq 0x4f934(%rip), %rcx # 0x796d0
cmpq $0x0, %rdx
cmovneq %rcx, %rax
movq %rax, -0x30(%rbp)
leaq 0x364895(%rip), %rdi # 0x38e644
leaq -0x306(%rip), %rsi # 0x29ab0
callq 0x24280
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0x29e50
movl %eax, -0x24(%rbp)
cmpl $0x0, %eax
je 0x29dd7
movl -0x24(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x29e3a
leaq 0x24a9a2(%rip), %rax # 0x274780
movq 0xc0(%rax), %rax
movq 0x40(%rax), %rax
movq -0x10(%rbp), %rsi
leaq 0x24a98c(%rip), %rdi # 0x274780
leaq 0x4f8e5(%rip), %rdx # 0x796e0
callq *%rax
cmpl $0x0, %eax
jne 0x29e0c
movq -0x30(%rbp), %rax
movq %rax, -0x38(%rbp)
jmp 0x29e14
xorl %eax, %eax
movq %rax, -0x38(%rbp)
jmp 0x29e14
movq -0x38(%rbp), %rax
movq %rax, -0x10(%rbp)
cmpq $0x0, %rax
je 0x29e33
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
callq 0x29e50
movl %eax, -0x4(%rbp)
jmp 0x29e3a
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| get_charset_number:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_10], rdi
mov [rbp+var_14], esi
mov [rbp+var_20], rdx
mov rdx, [rbp+var_20]
and rdx, 400h
lea rax, aUtf8mb4; "utf8mb4"
lea rcx, aUtf8mb3; "utf8mb3"
cmp rdx, 0
cmovnz rax, rcx
mov [rbp+var_30], rax
lea rdi, charsets_initialized
lea rsi, init_available_charsets
call _pthread_once
mov rdi, [rbp+var_10]
mov esi, [rbp+var_14]
call get_charset_number_internal
mov [rbp+var_24], eax
cmp eax, 0
jz short loc_29DD7
mov eax, [rbp+var_24]
mov [rbp+var_4], eax
jmp short loc_29E3A
loc_29DD7:
lea rax, my_charset_latin1
mov rax, [rax+0C0h]
mov rax, [rax+40h]
mov rsi, [rbp+var_10]
lea rdi, my_charset_latin1
lea rdx, aUtf8; "utf8"
call rax
cmp eax, 0
jnz short loc_29E0C
mov rax, [rbp+var_30]
mov [rbp+var_38], rax
jmp short loc_29E14
loc_29E0C:
xor eax, eax
mov [rbp+var_38], rax
jmp short $+2
loc_29E14:
mov rax, [rbp+var_38]
mov [rbp+var_10], rax
cmp rax, 0
jz short loc_29E33
mov rdi, [rbp+var_10]
mov esi, [rbp+var_14]
call get_charset_number_internal
mov [rbp+var_4], eax
jmp short loc_29E3A
loc_29E33:
mov [rbp+var_4], 0
loc_29E3A:
mov eax, [rbp+var_4]
add rsp, 40h
pop rbp
retn
| long long get_charset_number(long long a1, unsigned int a2, __int16 a3)
{
const char *v3; // rax
const char *v5; // [rsp+8h] [rbp-38h]
const char *v6; // [rsp+10h] [rbp-30h]
unsigned int charset_number_internal; // [rsp+1Ch] [rbp-24h]
v3 = "utf8mb4";
if ( (a3 & 0x400) != 0 )
v3 = "utf8mb3";
v6 = v3;
pthread_once(&charsets_initialized, init_available_charsets);
charset_number_internal = get_charset_number_internal(a1, a2);
if ( charset_number_internal )
{
return charset_number_internal;
}
else
{
if ( (*(unsigned int ( **)(void *, long long, const char *))(*((_QWORD *)&my_charset_latin1 + 24) + 64LL))(
&my_charset_latin1,
a1,
"utf8") )
{
v5 = 0LL;
}
else
{
v5 = v6;
}
if ( v5 )
return (unsigned int)get_charset_number_internal(v5, a2);
else
return 0;
}
}
| get_charset_number:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x10],RDI
MOV dword ptr [RBP + -0x14],ESI
MOV qword ptr [RBP + -0x20],RDX
MOV RDX,qword ptr [RBP + -0x20]
AND RDX,0x400
LEA RAX,[0x1796d8]
LEA RCX,[0x1796d0]
CMP RDX,0x0
CMOVNZ RAX,RCX
MOV qword ptr [RBP + -0x30],RAX
LEA RDI,[0x48e644]
LEA RSI,[0x129ab0]
CALL 0x00124280
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x14]
CALL 0x00129e50
MOV dword ptr [RBP + -0x24],EAX
CMP EAX,0x0
JZ 0x00129dd7
MOV EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00129e3a
LAB_00129dd7:
LEA RAX,[0x374780]
MOV RAX,qword ptr [RAX + 0xc0]
MOV RAX,qword ptr [RAX + 0x40]
MOV RSI,qword ptr [RBP + -0x10]
LEA RDI,[0x374780]
LEA RDX,[0x1796e0]
CALL RAX
CMP EAX,0x0
JNZ 0x00129e0c
MOV RAX,qword ptr [RBP + -0x30]
MOV qword ptr [RBP + -0x38],RAX
JMP 0x00129e14
LAB_00129e0c:
XOR EAX,EAX
MOV qword ptr [RBP + -0x38],RAX
JMP 0x00129e14
LAB_00129e14:
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x10],RAX
CMP RAX,0x0
JZ 0x00129e33
MOV RDI,qword ptr [RBP + -0x10]
MOV ESI,dword ptr [RBP + -0x14]
CALL 0x00129e50
MOV dword ptr [RBP + -0x4],EAX
JMP 0x00129e3a
LAB_00129e33:
MOV dword ptr [RBP + -0x4],0x0
LAB_00129e3a:
MOV EAX,dword ptr [RBP + -0x4]
ADD RSP,0x40
POP RBP
RET
|
int get_charset_number(int8 param_1,int4 param_2,ulong param_3)
{
int iVar1;
char *local_40;
int local_c;
local_40 = "utf8mb4";
if ((param_3 & 0x400) != 0) {
local_40 = "utf8mb3";
}
pthread_once(&charsets_initialized,init_available_charsets);
local_c = get_charset_number_internal(param_1,param_2);
if (local_c == 0) {
iVar1 = (**(code **)(PTR_my_collation_8bit_simple_ci_handler_00374840 + 0x40))
(&my_charset_latin1,param_1,&DAT_001796e0);
if (iVar1 != 0) {
local_40 = (char *)0x0;
}
if (local_40 == (char *)0x0) {
local_c = 0;
}
else {
local_c = get_charset_number_internal(local_40,param_2);
}
}
return local_c;
}
| |
28,242 | 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 0x346721(%rip), %rdi # 0x36eaf0
leaq -0x20b(%rip), %rsi # 0x281cb
callq 0x242a0
movq %r15, %rdi
movl %ebx, %esi
callq 0x2843c
testl %eax, %eax
jne 0x2840c
leaq 0x2ed390(%rip), %rdi # 0x315780
movq 0xc0(%rdi), %rax
leaq 0x342fa(%rip), %rdx # 0x5c6f8
movq %r15, %rsi
callq *0x40(%rax)
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
je 0x28417
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
btl $0xa, %r14d
leaq 0x342cd(%rip), %rax # 0x5c6f0
leaq 0x342be(%rip), %rdi # 0x5c6e8
cmovaeq %rax, %rdi
movl %ebx, %esi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x2843c
| 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_2840C
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_28417
loc_2840C:
add rsp, 8
pop rbx
pop r14
pop r15
pop rbp
retn
loc_28417:
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,[0x46eaf0]
LEA RSI,[0x1281cb]
CALL 0x001242a0
MOV RDI,R15
MOV ESI,EBX
CALL 0x0012843c
TEST EAX,EAX
JNZ 0x0012840c
LEA RDI,[0x415780]
MOV RAX,qword ptr [RDI + 0xc0]
LEA RDX,[0x15c6f8]
MOV RSI,R15
CALL qword ptr [RAX + 0x40]
MOV ECX,EAX
XOR EAX,EAX
TEST ECX,ECX
JZ 0x00128417
LAB_0012840c:
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
RET
LAB_00128417:
BT R14D,0xa
LEA RAX,[0x15c6f0]
LEA RDI,[0x15c6e8]
CMOVNC RDI,RAX
MOV ESI,EBX
ADD RSP,0x8
POP RBX
POP R14
POP R15
POP RBP
JMP 0x0012843c
|
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_00415840 + 0x40))
(&my_charset_latin1,param_1,&DAT_0015c6f8);
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;
}
| |
28,243 | ssz_add_block_proof | corpus-core[P]colibri-stateless/src/chains/eth/proofer/eth_tools.c | static void ssz_add_block_proof(ssz_builder_t* builder, beacon_block_t* block_data, gindex_t block_index) {
uint8_t buffer[33] = {0};
uint32_t l = 1;
if (block_index == GINDEX_BLOCHASH) {
l = 33;
buffer[0] = 1;
memcpy(buffer + 1, ssz_get(&block_data->execution, "blockHash").bytes.data, 32);
}
else if (block_index == GINDEX_BLOCKUMBER) {
l = 9;
memcpy(buffer + 1, ssz_get(&block_data->execution, "blockNumber").bytes.data, 8);
buffer[0] = 2;
}
ssz_add_bytes(builder, "block", bytes(buffer, l));
} | O0 | c | ssz_add_block_proof:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
leaq -0x40(%rbp), %rdi
xorl %esi, %esi
movl $0x21, %edx
callq 0x5110
movl $0x1, -0x44(%rbp)
cmpq $0x32c, -0x18(%rbp) # imm = 0x32C
jne 0xe910
movl $0x21, -0x44(%rbp)
movb $0x1, -0x40(%rbp)
movq -0x10(%rbp), %rsi
addq $0x20, %rsi
leaq -0x60(%rbp), %rdi
leaq 0x43dfd(%rip), %rdx # 0x526e3
callq 0x1c760
movq -0x58(%rbp), %rax
movq (%rax), %rcx
movq %rcx, -0x3f(%rbp)
movq 0x8(%rax), %rcx
movq %rcx, -0x37(%rbp)
movq 0x10(%rax), %rcx
movq %rcx, -0x2f(%rbp)
movq 0x18(%rax), %rax
movq %rax, -0x27(%rbp)
jmp 0xe94a
cmpq $0x326, -0x18(%rbp) # imm = 0x326
jne 0xe948
movl $0x9, -0x44(%rbp)
movq -0x10(%rbp), %rsi
addq $0x20, %rsi
leaq -0x78(%rbp), %rdi
leaq 0x43d31(%rip), %rdx # 0x52665
callq 0x1c760
movq -0x70(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x3f(%rbp)
movb $0x2, -0x40(%rbp)
jmp 0xe94a
movq -0x8(%rbp), %rdi
movl -0x44(%rbp), %eax
movl %eax, -0x88(%rbp)
leaq -0x40(%rbp), %rax
movq %rax, -0x80(%rbp)
movl -0x88(%rbp), %edx
movq -0x80(%rbp), %rcx
leaq 0x446bd(%rip), %rsi # 0x5302d
callq 0x1e730
addq $0x90, %rsp
popq %rbp
retq
nop
| ssz_add_block_proof:
push rbp
mov rbp, rsp
sub rsp, 90h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
lea rdi, [rbp+var_40]
xor esi, esi
mov edx, 21h ; '!'
call _memset
mov [rbp+var_44], 1
cmp [rbp+var_18], 32Ch
jnz short loc_E910
mov [rbp+var_44], 21h ; '!'
mov [rbp+var_40], 1
mov rsi, [rbp+var_10]
add rsi, 20h ; ' '
lea rdi, [rbp+var_60]
lea rdx, aBlockhash; "blockHash"
call ssz_get
mov rax, [rbp+var_58]
mov rcx, [rax]
mov [rbp+var_3F], rcx
mov rcx, [rax+8]
mov [rbp+var_37], rcx
mov rcx, [rax+10h]
mov [rbp+var_2F], rcx
mov rax, [rax+18h]
mov [rbp+var_27], rax
jmp short loc_E94A
loc_E910:
cmp [rbp+var_18], 326h
jnz short loc_E948
mov [rbp+var_44], 9
mov rsi, [rbp+var_10]
add rsi, 20h ; ' '
lea rdi, [rbp+var_78]
lea rdx, aBlocknumber; "blockNumber"
call ssz_get
mov rax, [rbp+var_70]
mov rax, [rax]
mov [rbp+var_3F], rax
mov [rbp+var_40], 2
loc_E948:
jmp short $+2
loc_E94A:
mov rdi, [rbp+var_8]
mov eax, [rbp+var_44]
mov [rbp+var_88], eax
lea rax, [rbp+var_40]
mov [rbp+var_80], rax
mov edx, [rbp+var_88]
mov rcx, [rbp+var_80]
lea rsi, aBlock; "block"
call ssz_add_bytes
add rsp, 90h
pop rbp
retn
| long long ssz_add_block_proof(long long a1, long long a2, long long a3)
{
_BYTE v4[8]; // [rsp+18h] [rbp-78h] BYREF
long long *v5; // [rsp+20h] [rbp-70h]
_BYTE v6[8]; // [rsp+30h] [rbp-60h] BYREF
long long *v7; // [rsp+38h] [rbp-58h]
unsigned int v8; // [rsp+4Ch] [rbp-44h]
char v9; // [rsp+50h] [rbp-40h] BYREF
long long v10; // [rsp+51h] [rbp-3Fh]
long long v11; // [rsp+59h] [rbp-37h]
long long v12; // [rsp+61h] [rbp-2Fh]
long long v13; // [rsp+69h] [rbp-27h]
long long v14; // [rsp+78h] [rbp-18h]
long long v15; // [rsp+80h] [rbp-10h]
long long v16; // [rsp+88h] [rbp-8h]
v16 = a1;
v15 = a2;
v14 = a3;
memset(&v9, 0LL, 33LL);
v8 = 1;
if ( v14 == 812 )
{
v8 = 33;
v9 = 1;
ssz_get(v6, v15 + 32, "blockHash");
v10 = *v7;
v11 = v7[1];
v12 = v7[2];
v13 = v7[3];
}
else if ( v14 == 806 )
{
v8 = 9;
ssz_get(v4, v15 + 32, "blockNumber");
v10 = *v5;
v9 = 2;
}
return ssz_add_bytes(v16, "block", v8, &v9);
}
| ssz_add_block_proof:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x90
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
LEA RDI,[RBP + -0x40]
XOR ESI,ESI
MOV EDX,0x21
CALL 0x00105110
MOV dword ptr [RBP + -0x44],0x1
CMP qword ptr [RBP + -0x18],0x32c
JNZ 0x0010e910
MOV dword ptr [RBP + -0x44],0x21
MOV byte ptr [RBP + -0x40],0x1
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x20
LEA RDI,[RBP + -0x60]
LEA RDX,[0x1526e3]
CALL 0x0011c760
MOV RAX,qword ptr [RBP + -0x58]
MOV RCX,qword ptr [RAX]
MOV qword ptr [RBP + -0x3f],RCX
MOV RCX,qword ptr [RAX + 0x8]
MOV qword ptr [RBP + -0x37],RCX
MOV RCX,qword ptr [RAX + 0x10]
MOV qword ptr [RBP + -0x2f],RCX
MOV RAX,qword ptr [RAX + 0x18]
MOV qword ptr [RBP + -0x27],RAX
JMP 0x0010e94a
LAB_0010e910:
CMP qword ptr [RBP + -0x18],0x326
JNZ 0x0010e948
MOV dword ptr [RBP + -0x44],0x9
MOV RSI,qword ptr [RBP + -0x10]
ADD RSI,0x20
LEA RDI,[RBP + -0x78]
LEA RDX,[0x152665]
CALL 0x0011c760
MOV RAX,qword ptr [RBP + -0x70]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x3f],RAX
MOV byte ptr [RBP + -0x40],0x2
LAB_0010e948:
JMP 0x0010e94a
LAB_0010e94a:
MOV RDI,qword ptr [RBP + -0x8]
MOV EAX,dword ptr [RBP + -0x44]
MOV dword ptr [RBP + -0x88],EAX
LEA RAX,[RBP + -0x40]
MOV qword ptr [RBP + -0x80],RAX
MOV EDX,dword ptr [RBP + -0x88]
MOV RCX,qword ptr [RBP + -0x80]
LEA RSI,[0x15302d]
CALL 0x0011e730
ADD RSP,0x90
POP RBP
RET
|
void ssz_add_block_proof(int8 param_1,long param_2,long param_3)
{
int1 local_80 [8];
int8 *local_78;
int1 local_68 [8];
int8 *local_60;
int4 local_4c;
int1 local_48;
int8 local_47;
int8 local_3f;
int8 local_37;
int8 local_2f;
long local_20;
long local_18;
int8 local_10;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
memset(&local_48,0,0x21);
local_4c = 1;
if (local_20 == 0x32c) {
local_4c = 0x21;
local_48 = 1;
ssz_get(local_68,local_18 + 0x20,"blockHash");
local_47 = *local_60;
local_3f = local_60[1];
local_37 = local_60[2];
local_2f = local_60[3];
}
else if (local_20 == 0x326) {
local_4c = 9;
ssz_get(local_80,local_18 + 0x20,"blockNumber");
local_47 = *local_78;
local_48 = 2;
}
ssz_add_bytes(local_10,"block",local_4c,&local_48);
return;
}
| |
28,244 | minja::Parser::parseValueExpression()::'lambda'()::operator()() const | monkey531[P]llama/common/minja.hpp | std::shared_ptr<Expression> parseValueExpression() {
auto parseValue = [&]() -> std::shared_ptr<Expression> {
auto location = get_location();
auto constant = parseConstant();
if (constant) return std::make_shared<LiteralExpr>(location, *constant);
static std::regex null_regex(R"(null\b)");
if (!consumeToken(null_regex).empty()) return std::make_shared<LiteralExpr>(location, Value());
auto identifier = parseIdentifier();
if (identifier) return identifier;
auto braced = parseBracedExpressionOrArray();
if (braced) return braced;
auto array = parseArray();
if (array) return array;
auto dictionary = parseDictionary();
if (dictionary) return dictionary;
throw std::runtime_error("Expected value expression");
};
auto value = parseValue();
while (it != end && consumeSpaces() && peekSymbols({ "[", "." })) {
if (!consumeToken("[").empty()) {
std::shared_ptr<Expression> index;
if (!consumeToken(":").empty()) {
auto slice_end = parseExpression();
index = std::make_shared<SliceExpr>(slice_end->location, nullptr, std::move(slice_end));
} else {
auto slice_start = parseExpression();
if (!consumeToken(":").empty()) {
consumeSpaces();
if (peekSymbols({ "]" })) {
index = std::make_shared<SliceExpr>(slice_start->location, std::move(slice_start), nullptr);
} else {
auto slice_end = parseExpression();
index = std::make_shared<SliceExpr>(slice_start->location, std::move(slice_start), std::move(slice_end));
}
} else {
index = std::move(slice_start);
}
}
if (!index) throw std::runtime_error("Empty index in subscript");
if (consumeToken("]").empty()) throw std::runtime_error("Expected closing bracket in subscript");
value = std::make_shared<SubscriptExpr>(value->location, std::move(value), std::move(index));
} else if (!consumeToken(".").empty()) {
auto identifier = parseIdentifier();
if (!identifier) throw std::runtime_error("Expected identifier in subscript");
consumeSpaces();
if (peekSymbols({ "(" })) {
auto callParams = parseCallArgs();
value = std::make_shared<MethodCallExpr>(identifier->location, std::move(value), std::move(identifier), std::move(callParams));
} else {
auto key = std::make_shared<LiteralExpr>(identifier->location, Value(identifier->get_name()));
value = std::make_shared<SubscriptExpr>(identifier->location, std::move(value), std::move(key));
}
}
consumeSpaces();
}
if (peekSymbols({ "(" })) {
auto location = get_location();
auto callParams = parseCallArgs();
value = std::make_shared<CallExpr>(location, std::move(value), std::move(callParams));
}
return value;
} | O0 | cpp | minja::Parser::parseValueExpression()::'lambda'()::operator()() const:
subq $0x148, %rsp # imm = 0x148
movq %rdi, 0x18(%rsp)
movq %rdi, %rax
movq %rax, 0x20(%rsp)
movq %rdi, 0x140(%rsp)
movq %rsi, 0x138(%rsp)
movq 0x138(%rsp), %rax
movq (%rax), %rsi
movq %rsi, 0x28(%rsp)
leaq 0x120(%rsp), %rdi
callq 0xd5450
movq 0x28(%rsp), %rsi
leaq 0x110(%rsp), %rdi
callq 0xe6f60
jmp 0xe58e5
leaq 0x110(%rsp), %rdi
callq 0xe7410
testb $0x1, %al
jne 0xe58fb
jmp 0xe5983
leaq 0x110(%rsp), %rdi
callq 0xe74b0
movq %rax, %rdx
leaq 0xf0(%rsp), %rdi
leaq 0x120(%rsp), %rsi
callq 0xe7430
jmp 0xe5922
movq 0x18(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
callq 0xe74e0
leaq 0xf0(%rsp), %rdi
callq 0xe6e80
movl $0x1, 0xec(%rsp)
jmp 0xe5cfd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
jmp 0xe5d31
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
jmp 0xe5d24
leaq 0x18ab6e(%rip), %rax # 0x2704f8
cmpb $0x0, (%rax)
jne 0xe59e0
leaq 0x18ab62(%rip), %rdi # 0x2704f8
callq 0x56530
cmpl $0x0, %eax
je 0xe59e0
leaq 0x18ab31(%rip), %rdi # 0x2704d8
leaq 0x102416(%rip), %rsi # 0x1e7dc4
movl $0x10, %edx
callq 0x692d0
jmp 0xe59ba
leaq -0x7c0c1(%rip), %rdi # 0x69900
leaq 0x18ab10(%rip), %rsi # 0x2704d8
leaq 0x189f99(%rip), %rdx # 0x26f968
callq 0x56db0
leaq 0x18ab1d(%rip), %rdi # 0x2704f8
callq 0x568d0
movq 0x28(%rsp), %rsi
leaq 0x18aaec(%rip), %rdx # 0x2704d8
leaq 0xc8(%rsp), %rdi
movl $0x1, %ecx
callq 0xd5e70
jmp 0xe5a00
leaq 0xc8(%rsp), %rdi
callq 0x56430
xorb $-0x1, %al
movb %al, 0x17(%rsp)
leaq 0xc8(%rsp), %rdi
callq 0x572d0
movb 0x17(%rsp), %al
testb $0x1, %al
jne 0xe5a2d
jmp 0xe5ad6
leaq 0x68(%rsp), %rdi
callq 0xe7510
jmp 0xe5a39
leaq 0xb8(%rsp), %rdi
leaq 0x120(%rsp), %rsi
leaq 0x68(%rsp), %rdx
callq 0xe6c90
jmp 0xe5a55
movq 0x18(%rsp), %rdi
leaq 0xb8(%rsp), %rsi
callq 0xe74e0
leaq 0xb8(%rsp), %rdi
callq 0xe6e80
leaq 0x68(%rsp), %rdi
callq 0xdc630
movl $0x1, 0xec(%rsp)
jmp 0xe5cfd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
leaq 0x18aa4f(%rip), %rdi # 0x2704f8
callq 0x56660
jmp 0xe5d24
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
leaq 0x68(%rsp), %rdi
callq 0xdc630
jmp 0xe5d24
movq 0x28(%rsp), %rsi
leaq 0x58(%rsp), %rdi
callq 0xd7530
jmp 0xe5ae7
leaq 0x58(%rsp), %rdi
callq 0xd76a0
testb $0x1, %al
jne 0xe5af7
jmp 0xe5b16
movq 0x18(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0xe7570
movl $0x1, 0xec(%rsp)
jmp 0xe5ce5
movq 0x28(%rsp), %rsi
leaq 0x48(%rsp), %rdi
callq 0xe75a0
jmp 0xe5b27
leaq 0x48(%rsp), %rdi
callq 0xd6050
testb $0x1, %al
jne 0xe5b37
jmp 0xe5b6f
movq 0x18(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0xda150
movl $0x1, 0xec(%rsp)
jmp 0xe5ccd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
jmp 0xe5cf1
movq 0x28(%rsp), %rsi
leaq 0x38(%rsp), %rdi
callq 0xe7d20
jmp 0xe5b80
leaq 0x38(%rsp), %rdi
callq 0xd6050
testb $0x1, %al
jne 0xe5b90
jmp 0xe5bc8
movq 0x18(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0xda150
movl $0x1, 0xec(%rsp)
jmp 0xe5cb5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
jmp 0xe5cd9
movq 0x28(%rsp), %rsi
movq 0x18(%rsp), %rdi
movb $0x0, 0x37(%rsp)
callq 0xe84f0
jmp 0xe5bde
movq 0x18(%rsp), %rdi
callq 0xd6050
testb $0x1, %al
jne 0xe5bee
jmp 0xe5c27
movb $0x1, 0x37(%rsp)
movl $0x1, 0xec(%rsp)
testb $0x1, 0x37(%rsp)
jne 0xe5ca7
jmp 0xe5c9d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
jmp 0xe5cc1
movl $0x10, %edi
callq 0x565c0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x8(%rsp)
leaq 0x102188(%rip), %rsi # 0x1e7dcb
callq 0x563b0
jmp 0xe5c4a
movq 0x8(%rsp), %rdi
movq 0x189352(%rip), %rsi # 0x26efa8
movq 0x189313(%rip), %rdx # 0x26ef70
callq 0x569b0
jmp 0xe5d4b
movq 0x8(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
callq 0x56dd0
jmp 0xe5ca9
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x108(%rsp)
movl %eax, 0x104(%rsp)
jmp 0xe5ca9
movq 0x18(%rsp), %rdi
callq 0xd5e60
jmp 0xe5cb5
movq 0x18(%rsp), %rdi
callq 0xd5e60
jmp 0xe5cc1
leaq 0x38(%rsp), %rdi
callq 0xd5e60
jmp 0xe5ccd
leaq 0x38(%rsp), %rdi
callq 0xd5e60
jmp 0xe5cd9
leaq 0x48(%rsp), %rdi
callq 0xd5e60
jmp 0xe5ce5
leaq 0x48(%rsp), %rdi
callq 0xd5e60
jmp 0xe5cf1
leaq 0x58(%rsp), %rdi
callq 0xd8280
jmp 0xe5cfd
leaq 0x58(%rsp), %rdi
callq 0xd8280
jmp 0xe5d24
leaq 0x110(%rsp), %rdi
callq 0xe8b40
leaq 0x120(%rsp), %rdi
callq 0xd8a10
movq 0x20(%rsp), %rax
addq $0x148, %rsp # imm = 0x148
retq
leaq 0x110(%rsp), %rdi
callq 0xe8b40
leaq 0x120(%rsp), %rdi
callq 0xd8a10
movq 0x108(%rsp), %rdi
callq 0x56a10
nopl (%rax,%rax)
| _ZZN5minja6Parser20parseValueExpressionEvENKUlvE_clEv:
sub rsp, 148h
mov [rsp+148h+var_130], rdi
mov rax, rdi
mov [rsp+148h+var_128], rax
mov [rsp+148h+var_8], rdi
mov [rsp+148h+var_10], rsi
mov rax, [rsp+148h+var_10]
mov rsi, [rax]
mov [rsp+148h+var_120], rsi
lea rdi, [rsp+148h+var_28]; this
call _ZNK5minja6Parser12get_locationEv; minja::Parser::get_location(void)
mov rsi, [rsp+148h+var_120]
lea rdi, [rsp+148h+var_38]; this
call _ZN5minja6Parser13parseConstantEv; minja::Parser::parseConstant(void)
jmp short $+2
loc_E58E5:
lea rdi, [rsp+148h+var_38]
call _ZNKSt12__shared_ptrIN5minja5ValueELN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<minja::Value,(__gnu_cxx::_Lock_policy)2>::operator bool(void)
test al, 1
jnz short loc_E58FB
jmp loc_E5983
loc_E58FB:
lea rdi, [rsp+148h+var_38]
call _ZNKSt19__shared_ptr_accessIN5minja5ValueELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv; std::__shared_ptr_access<minja::Value,(__gnu_cxx::_Lock_policy)2,false,false>::operator*(void)
mov rdx, rax
lea rdi, [rsp+148h+var_58]
lea rsi, [rsp+148h+var_28]
call _ZSt11make_sharedIN5minja11LiteralExprEJRNS0_8LocationERNS0_5ValueEEESt10shared_ptrIT_EDpOT0_; std::make_shared<minja::LiteralExpr,minja::Location &,minja::Value &>(minja::Location &,minja::Value &)
jmp short $+2
loc_E5922:
mov rdi, [rsp+148h+var_130]
lea rsi, [rsp+148h+var_58]
call _ZNSt10shared_ptrIN5minja10ExpressionEEC2INS0_11LiteralExprEvEEOS_IT_E; std::shared_ptr<minja::Expression>::shared_ptr<minja::LiteralExpr,void>(std::shared_ptr&&<minja::LiteralExpr>)
lea rdi, [rsp+148h+var_58]
call _ZNSt10shared_ptrIN5minja11LiteralExprEED2Ev; std::shared_ptr<minja::LiteralExpr>::~shared_ptr()
mov [rsp+148h+var_5C], 1
jmp loc_E5CFD
mov rcx, rax
mov eax, edx
mov [rsp+arg_100], rcx
mov [rsp+arg_FC], eax
jmp loc_E5D31
mov rcx, rax
mov eax, edx
mov [rsp+arg_100], rcx
mov [rsp+arg_FC], eax
jmp loc_E5D24
loc_E5983:
lea rax, _ZGVZZN5minja6Parser20parseValueExpressionEvENKUlvE_clEvE10null_regexB5cxx11; `guard variable for'minja::Parser::parseValueExpression(void)::{lambda(void)#1}::operator() const(void)::null_regex
cmp byte ptr [rax], 0
jnz short loc_E59E0
lea rdi, _ZGVZZN5minja6Parser20parseValueExpressionEvENKUlvE_clEvE10null_regexB5cxx11; __guard *
call ___cxa_guard_acquire
cmp eax, 0
jz short loc_E59E0
lea rdi, _ZZZN5minja6Parser20parseValueExpressionEvENKUlvE_clEvE10null_regexB5cxx11; minja::Parser::parseValueExpression(void)::{lambda(void)#1}::operator() const(void)::null_regex
lea rsi, aNullB; "null\\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)
jmp short $+2
loc_E59BA:
lea rdi, _ZNSt7__cxx1111basic_regexIcNS_12regex_traitsIcEEED2Ev; lpfunc
lea rsi, _ZZZN5minja6Parser20parseValueExpressionEvENKUlvE_clEvE10null_regexB5cxx11; obj
lea rdx, __dso_handle; lpdso_handle
call ___cxa_atexit
lea rdi, _ZGVZZN5minja6Parser20parseValueExpressionEvENKUlvE_clEvE10null_regexB5cxx11; __guard *
call ___cxa_guard_release
loc_E59E0:
mov rsi, [rsp+148h+var_120]
lea rdx, _ZZZN5minja6Parser20parseValueExpressionEvENKUlvE_clEvE10null_regexB5cxx11; minja::Parser::parseValueExpression(void)::{lambda(void)#1}::operator() const(void)::null_regex
lea rdi, [rsp+148h+var_80]
mov ecx, 1
call _ZN5minja6Parser12consumeTokenERKNSt7__cxx1111basic_regexIcNS1_12regex_traitsIcEEEENS_13SpaceHandlingE; minja::Parser::consumeToken(std::basic_regex<char,std::regex_traits<char>> const&,minja::SpaceHandling)
jmp short $+2
loc_E5A00:
lea rdi, [rsp+148h+var_80]
call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void)
xor al, 0FFh
mov [rsp+148h+var_131], al
lea rdi, [rsp+148h+var_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov al, [rsp+148h+var_131]
test al, 1
jnz short loc_E5A2D
jmp loc_E5AD6
loc_E5A2D:
lea rdi, [rsp+148h+var_E0]; this
call _ZN5minja5ValueC2Ev; minja::Value::Value(void)
jmp short $+2
loc_E5A39:
lea rdi, [rsp+148h+var_90]
lea rsi, [rsp+148h+var_28]
lea rdx, [rsp+148h+var_E0]
call _ZSt11make_sharedIN5minja11LiteralExprEJRNS0_8LocationENS0_5ValueEEESt10shared_ptrIT_EDpOT0_; std::make_shared<minja::LiteralExpr,minja::Location &,minja::Value>(minja::Location &,minja::Value &&)
jmp short $+2
loc_E5A55:
mov rdi, [rsp+148h+var_130]
lea rsi, [rsp+148h+var_90]
call _ZNSt10shared_ptrIN5minja10ExpressionEEC2INS0_11LiteralExprEvEEOS_IT_E; std::shared_ptr<minja::Expression>::shared_ptr<minja::LiteralExpr,void>(std::shared_ptr&&<minja::LiteralExpr>)
lea rdi, [rsp+148h+var_90]
call _ZNSt10shared_ptrIN5minja11LiteralExprEED2Ev; std::shared_ptr<minja::LiteralExpr>::~shared_ptr()
lea rdi, [rsp+148h+var_E0]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
mov [rsp+148h+var_5C], 1
jmp loc_E5CFD
mov rcx, rax
mov eax, edx
mov [rsp+arg_100], rcx
mov [rsp+arg_FC], eax
lea rdi, _ZGVZZN5minja6Parser20parseValueExpressionEvENKUlvE_clEvE10null_regexB5cxx11; __guard *
call ___cxa_guard_abort
jmp loc_E5D24
mov rcx, rax
mov eax, edx
mov [rsp+arg_100], rcx
mov [rsp+arg_FC], eax
lea rdi, [rsp+arg_60]; this
call _ZN5minja5ValueD2Ev; minja::Value::~Value()
jmp loc_E5D24
loc_E5AD6:
mov rsi, [rsp+148h+var_120]
lea rdi, [rsp+148h+var_F0]; this
call _ZN5minja6Parser15parseIdentifierEv; minja::Parser::parseIdentifier(void)
jmp short $+2
loc_E5AE7:
lea rdi, [rsp+148h+var_F0]
call _ZNKSt12__shared_ptrIN5minja12VariableExprELN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<minja::VariableExpr,(__gnu_cxx::_Lock_policy)2>::operator bool(void)
test al, 1
jnz short loc_E5AF7
jmp short loc_E5B16
loc_E5AF7:
mov rdi, [rsp+148h+var_130]
lea rsi, [rsp+148h+var_F0]
call _ZNSt10shared_ptrIN5minja10ExpressionEEC2INS0_12VariableExprEvEEOS_IT_E; std::shared_ptr<minja::Expression>::shared_ptr<minja::VariableExpr,void>(std::shared_ptr&&<minja::VariableExpr>)
mov [rsp+148h+var_5C], 1
jmp loc_E5CE5
loc_E5B16:
mov rsi, [rsp+148h+var_120]
lea rdi, [rsp+148h+var_100]; this
call _ZN5minja6Parser28parseBracedExpressionOrArrayEv; minja::Parser::parseBracedExpressionOrArray(void)
jmp short $+2
loc_E5B27:
lea rdi, [rsp+148h+var_100]
call _ZNKSt12__shared_ptrIN5minja10ExpressionELN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator bool(void)
test al, 1
jnz short loc_E5B37
jmp short loc_E5B6F
loc_E5B37:
mov rdi, [rsp+148h+var_130]
lea rsi, [rsp+148h+var_100]
call _ZNSt10shared_ptrIN5minja10ExpressionEEC2EOS2_; std::shared_ptr<minja::Expression>::shared_ptr(std::shared_ptr<minja::Expression>&&)
mov [rsp+148h+var_5C], 1
jmp loc_E5CCD
mov rcx, rax
mov eax, edx
mov [rsp+arg_100], rcx
mov [rsp+arg_FC], eax
jmp loc_E5CF1
loc_E5B6F:
mov rsi, [rsp+148h+var_120]
lea rdi, [rsp+148h+var_110]; this
call _ZN5minja6Parser10parseArrayEv; minja::Parser::parseArray(void)
jmp short $+2
loc_E5B80:
lea rdi, [rsp+148h+var_110]
call _ZNKSt12__shared_ptrIN5minja10ExpressionELN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator bool(void)
test al, 1
jnz short loc_E5B90
jmp short loc_E5BC8
loc_E5B90:
mov rdi, [rsp+148h+var_130]
lea rsi, [rsp+148h+var_110]
call _ZNSt10shared_ptrIN5minja10ExpressionEEC2EOS2_; std::shared_ptr<minja::Expression>::shared_ptr(std::shared_ptr<minja::Expression>&&)
mov [rsp+148h+var_5C], 1
jmp loc_E5CB5
mov rcx, rax
mov eax, edx
mov [rsp+arg_100], rcx
mov [rsp+arg_FC], eax
jmp loc_E5CD9
loc_E5BC8:
mov rsi, [rsp+148h+var_120]
mov rdi, [rsp+148h+var_130]; this
mov [rsp+148h+var_111], 0
call _ZN5minja6Parser15parseDictionaryEv; minja::Parser::parseDictionary(void)
jmp short $+2
loc_E5BDE:
mov rdi, [rsp+148h+var_130]
call _ZNKSt12__shared_ptrIN5minja10ExpressionELN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator bool(void)
test al, 1
jnz short loc_E5BEE
jmp short loc_E5C27
loc_E5BEE:
mov [rsp+148h+var_111], 1
mov [rsp+148h+var_5C], 1
test [rsp+148h+var_111], 1
jnz loc_E5CA7
jmp loc_E5C9D
mov rcx, rax
mov eax, edx
mov [rsp+arg_100], rcx
mov [rsp+arg_FC], eax
jmp loc_E5CC1
loc_E5C27:
mov edi, 10h; thrown_size
call ___cxa_allocate_exception
mov rdi, rax; this
mov rax, rdi
mov [rsp+148h+var_140], rax
lea rsi, aExpectedValueE; "Expected value expression"
call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*)
jmp short $+2
loc_E5C4A:
mov rdi, [rsp+148h+var_140]; void *
mov rsi, cs:_ZTISt13runtime_error_ptr; lptinfo
mov rdx, cs:_ZNSt13runtime_errorD1Ev_ptr; void (*)(void *)
call ___cxa_throw
jmp loc_E5D4B
mov rdi, [rsp+arg_0]; void *
mov rcx, rax
mov eax, edx
mov [rsp+arg_100], rcx
mov [rsp+arg_FC], eax
call ___cxa_free_exception
jmp short loc_E5CA9
mov rcx, rax
mov eax, edx
mov [rsp+arg_100], rcx
mov [rsp+arg_FC], eax
jmp short loc_E5CA9
loc_E5C9D:
mov rdi, [rsp+148h+var_130]
call _ZNSt10shared_ptrIN5minja10ExpressionEED2Ev; std::shared_ptr<minja::Expression>::~shared_ptr()
loc_E5CA7:
jmp short loc_E5CB5
loc_E5CA9:
mov rdi, [rsp+arg_10]
call _ZNSt10shared_ptrIN5minja10ExpressionEED2Ev; std::shared_ptr<minja::Expression>::~shared_ptr()
jmp short loc_E5CC1
loc_E5CB5:
lea rdi, [rsp+148h+var_110]
call _ZNSt10shared_ptrIN5minja10ExpressionEED2Ev; std::shared_ptr<minja::Expression>::~shared_ptr()
jmp short loc_E5CCD
loc_E5CC1:
lea rdi, [rsp+arg_30]
call _ZNSt10shared_ptrIN5minja10ExpressionEED2Ev; std::shared_ptr<minja::Expression>::~shared_ptr()
jmp short loc_E5CD9
loc_E5CCD:
lea rdi, [rsp+148h+var_100]
call _ZNSt10shared_ptrIN5minja10ExpressionEED2Ev; std::shared_ptr<minja::Expression>::~shared_ptr()
jmp short loc_E5CE5
loc_E5CD9:
lea rdi, [rsp+arg_40]
call _ZNSt10shared_ptrIN5minja10ExpressionEED2Ev; std::shared_ptr<minja::Expression>::~shared_ptr()
jmp short loc_E5CF1
loc_E5CE5:
lea rdi, [rsp+148h+var_F0]
call _ZNSt10shared_ptrIN5minja12VariableExprEED2Ev; std::shared_ptr<minja::VariableExpr>::~shared_ptr()
jmp short loc_E5CFD
loc_E5CF1:
lea rdi, [rsp+arg_50]
call _ZNSt10shared_ptrIN5minja12VariableExprEED2Ev; std::shared_ptr<minja::VariableExpr>::~shared_ptr()
jmp short loc_E5D24
loc_E5CFD:
lea rdi, [rsp+148h+var_38]
call _ZNSt10shared_ptrIN5minja5ValueEED2Ev; std::shared_ptr<minja::Value>::~shared_ptr()
lea rdi, [rsp+148h+var_28]; this
call _ZN5minja8LocationD2Ev; minja::Location::~Location()
mov rax, [rsp+148h+var_128]
add rsp, 148h
retn
loc_E5D24:
lea rdi, [rsp+arg_108]
call _ZNSt10shared_ptrIN5minja5ValueEED2Ev; std::shared_ptr<minja::Value>::~shared_ptr()
loc_E5D31:
lea rdi, [rsp+arg_118]; this
call _ZN5minja8LocationD2Ev; minja::Location::~Location()
mov rdi, [rsp+arg_100]
call __Unwind_Resume
loc_E5D4B:
nop dword ptr [rax+rax+00h]
| minja::Parser * minja::Parser::parseValueExpression(void)::{lambda(void)#1}::operator()(
minja::Parser *a1,
long long *a2)
{
int v2; // eax
int v3; // ecx
int v4; // r8d
int v5; // r9d
int v6; // ecx
int v7; // r8d
int v8; // r9d
std::runtime_error *exception; // [rsp+8h] [rbp-140h]
char v11; // [rsp+17h] [rbp-131h]
long long v12; // [rsp+28h] [rbp-120h]
_QWORD v13[2]; // [rsp+38h] [rbp-110h] BYREF
_QWORD v14[2]; // [rsp+48h] [rbp-100h] BYREF
_QWORD v15[2]; // [rsp+58h] [rbp-F0h] BYREF
_BYTE v16[80]; // [rsp+68h] [rbp-E0h] BYREF
_BYTE v17[16]; // [rsp+B8h] [rbp-90h] BYREF
_BYTE v18[36]; // [rsp+C8h] [rbp-80h] BYREF
int v19; // [rsp+ECh] [rbp-5Ch]
_BYTE v20[32]; // [rsp+F0h] [rbp-58h] BYREF
_BYTE v21[16]; // [rsp+110h] [rbp-38h] BYREF
_BYTE v22[24]; // [rsp+120h] [rbp-28h] BYREF
long long *v23; // [rsp+138h] [rbp-10h]
minja::Parser *v24; // [rsp+140h] [rbp-8h]
v24 = a1;
v23 = a2;
v12 = *a2;
minja::Parser::get_location((minja::Parser *)v22, *a2);
minja::Parser::parseConstant((minja::Parser *)v21);
if ( (std::__shared_ptr<minja::Value,(__gnu_cxx::_Lock_policy)2>::operator bool(v21, v12) & 1) != 0 )
{
v2 = std::__shared_ptr_access<minja::Value,(__gnu_cxx::_Lock_policy)2,false,false>::operator*(v21);
std::make_shared<minja::LiteralExpr,minja::Location &,minja::Value &>(
(unsigned int)v20,
(unsigned int)v22,
v2,
v3,
v4,
v5);
std::shared_ptr<minja::Expression>::shared_ptr<minja::LiteralExpr,void>(a1, v20);
std::shared_ptr<minja::LiteralExpr>::~shared_ptr(v20);
v19 = 1;
}
else
{
if ( !(_BYTE)`guard variable for'minja::Parser::parseValueExpression(void)::{lambda(void)#1}::operator() const(void)::null_regex[abi:cxx11]
&& __cxa_guard_acquire(&`guard variable for'minja::Parser::parseValueExpression(void)::{lambda(void)#1}::operator() const(void)::null_regex[abi:cxx11]) )
{
std::basic_regex<char,std::regex_traits<char>>::basic_regex(
(long long)&minja::Parser::parseValueExpression(void)::{lambda(void)#1}::operator() const(void)::null_regex[abi:cxx11],
(long long)"null\\b",
0x10u);
__cxa_atexit(
(void (*)(void *))std::basic_regex<char,std::regex_traits<char>>::~basic_regex,
&minja::Parser::parseValueExpression(void)::{lambda(void)#1}::operator() const(void)::null_regex[abi:cxx11],
&_dso_handle);
__cxa_guard_release(&`guard variable for'minja::Parser::parseValueExpression(void)::{lambda(void)#1}::operator() const(void)::null_regex[abi:cxx11]);
}
minja::Parser::consumeToken(
(long long)v18,
v12,
(long long)&minja::Parser::parseValueExpression(void)::{lambda(void)#1}::operator() const(void)::null_regex[abi:cxx11],
1u);
v11 = ~(unsigned __int8)std::string::empty(v18);
std::string::~string(v18);
if ( (v11 & 1) != 0 )
{
minja::Value::Value((minja::Value *)v16);
std::make_shared<minja::LiteralExpr,minja::Location &,minja::Value>(
(unsigned int)v17,
(unsigned int)v22,
(unsigned int)v16,
v6,
v7,
v8);
std::shared_ptr<minja::Expression>::shared_ptr<minja::LiteralExpr,void>(a1, v17);
std::shared_ptr<minja::LiteralExpr>::~shared_ptr(v17);
minja::Value::~Value((minja::Value *)v16);
v19 = 1;
}
else
{
minja::Parser::parseIdentifier((minja::Parser *)v15, v12);
if ( std::__shared_ptr<minja::VariableExpr,(__gnu_cxx::_Lock_policy)2>::operator bool(v15) )
{
std::shared_ptr<minja::Expression>::shared_ptr<minja::VariableExpr,void>(a1, v15);
v19 = 1;
}
else
{
minja::Parser::parseBracedExpressionOrArray((minja::Parser *)v14);
if ( std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator bool(v14) )
{
std::shared_ptr<minja::Expression>::shared_ptr((long long)a1, (long long)v14);
v19 = 1;
}
else
{
minja::Parser::parseArray((minja::Parser *)v13);
if ( std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator bool(v13) )
{
std::shared_ptr<minja::Expression>::shared_ptr((long long)a1, (long long)v13);
v19 = 1;
}
else
{
minja::Parser::parseDictionary(a1);
if ( !std::__shared_ptr<minja::Expression,(__gnu_cxx::_Lock_policy)2>::operator bool(a1) )
{
exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL);
std::runtime_error::runtime_error(exception, "Expected value expression");
__cxa_throw(
exception,
(struct type_info *)&`typeinfo for'std::runtime_error,
(void (*)(void *))&std::runtime_error::~runtime_error);
}
v19 = 1;
}
std::shared_ptr<minja::Expression>::~shared_ptr((long long)v13);
}
std::shared_ptr<minja::Expression>::~shared_ptr((long long)v14);
}
std::shared_ptr<minja::VariableExpr>::~shared_ptr((long long)v15);
}
}
std::shared_ptr<minja::Value>::~shared_ptr(v21);
minja::Location::~Location((minja::Location *)v22);
return a1;
}
| operator():
SUB RSP,0x148
MOV qword ptr [RSP + 0x18],RDI
MOV RAX,RDI
MOV qword ptr [RSP + 0x20],RAX
MOV qword ptr [RSP + 0x140],RDI
MOV qword ptr [RSP + 0x138],RSI
MOV RAX,qword ptr [RSP + 0x138]
MOV RSI,qword ptr [RAX]
MOV qword ptr [RSP + 0x28],RSI
LEA RDI,[RSP + 0x120]
CALL 0x001d5450
MOV RSI,qword ptr [RSP + 0x28]
LAB_001e58d6:
LEA RDI,[RSP + 0x110]
CALL 0x001e6f60
JMP 0x001e58e5
LAB_001e58e5:
LEA RDI,[RSP + 0x110]
CALL 0x001e7410
TEST AL,0x1
JNZ 0x001e58fb
JMP 0x001e5983
LAB_001e58fb:
LEA RDI,[RSP + 0x110]
CALL 0x001e74b0
MOV RDX,RAX
LAB_001e590b:
LEA RDI,[RSP + 0xf0]
LEA RSI,[RSP + 0x120]
CALL 0x001e7430
JMP 0x001e5922
LAB_001e5922:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[RSP + 0xf0]
CALL 0x001e74e0
LEA RDI,[RSP + 0xf0]
CALL 0x001e6e80
MOV dword ptr [RSP + 0xec],0x1
JMP 0x001e5cfd
LAB_001e5983:
LEA RAX,[0x3704f8]
CMP byte ptr [RAX],0x0
JNZ 0x001e59e0
LEA RDI,[0x3704f8]
CALL 0x00156530
CMP EAX,0x0
JZ 0x001e59e0
LAB_001e59a0:
LEA RDI,[0x3704d8]
LEA RSI,[0x2e7dc4]
MOV EDX,0x10
CALL 0x001692d0
JMP 0x001e59ba
LAB_001e59ba:
LEA RDI,[0x169900]
LEA RSI,[0x3704d8]
LEA RDX,[0x36f968]
CALL 0x00156db0
LEA RDI,[0x3704f8]
CALL 0x001568d0
LAB_001e59e0:
MOV RSI,qword ptr [RSP + 0x28]
LEA RDX,[0x3704d8]
LEA RDI,[RSP + 0xc8]
MOV ECX,0x1
CALL 0x001d5e70
JMP 0x001e5a00
LAB_001e5a00:
LEA RDI,[RSP + 0xc8]
CALL 0x00156430
XOR AL,0xff
MOV byte ptr [RSP + 0x17],AL
LEA RDI,[RSP + 0xc8]
CALL 0x001572d0
MOV AL,byte ptr [RSP + 0x17]
TEST AL,0x1
JNZ 0x001e5a2d
JMP 0x001e5ad6
LAB_001e5a2d:
LEA RDI,[RSP + 0x68]
CALL 0x001e7510
JMP 0x001e5a39
LAB_001e5a39:
LEA RDI,[RSP + 0xb8]
LEA RSI,[RSP + 0x120]
LEA RDX,[RSP + 0x68]
CALL 0x001e6c90
JMP 0x001e5a55
LAB_001e5a55:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[RSP + 0xb8]
CALL 0x001e74e0
LEA RDI,[RSP + 0xb8]
CALL 0x001e6e80
LEA RDI,[RSP + 0x68]
CALL 0x001dc630
MOV dword ptr [RSP + 0xec],0x1
JMP 0x001e5cfd
LAB_001e5ad6:
MOV RSI,qword ptr [RSP + 0x28]
LEA RDI,[RSP + 0x58]
CALL 0x001d7530
JMP 0x001e5ae7
LAB_001e5ae7:
LEA RDI,[RSP + 0x58]
CALL 0x001d76a0
TEST AL,0x1
JNZ 0x001e5af7
JMP 0x001e5b16
LAB_001e5af7:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[RSP + 0x58]
CALL 0x001e7570
MOV dword ptr [RSP + 0xec],0x1
JMP 0x001e5ce5
LAB_001e5b16:
MOV RSI,qword ptr [RSP + 0x28]
LEA RDI,[RSP + 0x48]
CALL 0x001e75a0
JMP 0x001e5b27
LAB_001e5b27:
LEA RDI,[RSP + 0x48]
CALL 0x001d6050
TEST AL,0x1
JNZ 0x001e5b37
JMP 0x001e5b6f
LAB_001e5b37:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[RSP + 0x48]
CALL 0x001da150
MOV dword ptr [RSP + 0xec],0x1
JMP 0x001e5ccd
LAB_001e5b6f:
MOV RSI,qword ptr [RSP + 0x28]
LEA RDI,[RSP + 0x38]
CALL 0x001e7d20
JMP 0x001e5b80
LAB_001e5b80:
LEA RDI,[RSP + 0x38]
CALL 0x001d6050
TEST AL,0x1
JNZ 0x001e5b90
JMP 0x001e5bc8
LAB_001e5b90:
MOV RDI,qword ptr [RSP + 0x18]
LEA RSI,[RSP + 0x38]
CALL 0x001da150
MOV dword ptr [RSP + 0xec],0x1
JMP 0x001e5cb5
LAB_001e5bc8:
MOV RSI,qword ptr [RSP + 0x28]
MOV RDI,qword ptr [RSP + 0x18]
MOV byte ptr [RSP + 0x37],0x0
LAB_001e5bd7:
CALL 0x001e84f0
LAB_001e5bdc:
JMP 0x001e5bde
LAB_001e5bde:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001d6050
TEST AL,0x1
JNZ 0x001e5bee
JMP 0x001e5c27
LAB_001e5bee:
MOV byte ptr [RSP + 0x37],0x1
MOV dword ptr [RSP + 0xec],0x1
TEST byte ptr [RSP + 0x37],0x1
JNZ 0x001e5ca7
JMP 0x001e5c9d
LAB_001e5c27:
MOV EDI,0x10
CALL 0x001565c0
MOV RDI,RAX
MOV RAX,RDI
MOV qword ptr [RSP + 0x8],RAX
LAB_001e5c3c:
LEA RSI,[0x2e7dcb]
CALL 0x001563b0
JMP 0x001e5c4a
LAB_001e5c4a:
MOV RDI,qword ptr [RSP + 0x8]
MOV RSI,qword ptr [0x0036efa8]
MOV RDX,qword ptr [0x0036ef70]
CALL 0x001569b0
LAB_001e5c9d:
MOV RDI,qword ptr [RSP + 0x18]
CALL 0x001d5e60
LAB_001e5ca7:
JMP 0x001e5cb5
LAB_001e5cb5:
LEA RDI,[RSP + 0x38]
CALL 0x001d5e60
JMP 0x001e5ccd
LAB_001e5ccd:
LEA RDI,[RSP + 0x48]
CALL 0x001d5e60
JMP 0x001e5ce5
LAB_001e5ce5:
LEA RDI,[RSP + 0x58]
CALL 0x001d8280
JMP 0x001e5cfd
LAB_001e5cfd:
LEA RDI,[RSP + 0x110]
CALL 0x001e8b40
LEA RDI,[RSP + 0x120]
CALL 0x001d8a10
MOV RAX,qword ptr [RSP + 0x20]
ADD RSP,0x148
RET
|
/* WARNING: Removing unreachable block (ram,0x001e5c09) */
/* minja::Parser::parseValueExpression()::{lambda()#1}::TEMPNAMEPLACEHOLDERVALUE() const */
_lambda___1_ * __thiscall
minja::Parser::parseValueExpression()::{lambda()#1}::operator()(_lambda___1_ *this)
{
int8 uVar1;
bool bVar2;
byte bVar3;
int iVar4;
runtime_error *this_00;
int8 *in_RSI;
__shared_ptr local_110 [16];
__shared_ptr local_100 [16];
__shared_ptr local_f0 [16];
Value local_e0 [80];
Location local_90 [16];
string local_80 [36];
int4 local_5c;
Location local_58 [32];
__shared_ptr local_38 [16];
Value local_28 [32];
_lambda___1_ *local_8;
uVar1 = *in_RSI;
local_8 = this;
get_location();
/* try { // try from 001e58d6 to 001e58e2 has its CatchHandler @ 001e5951 */
parseConstant();
bVar2 = std::__shared_ptr::operator_cast_to_bool(local_38);
if (bVar2) {
std::__shared_ptr_access<minja::Value,(__gnu_cxx::_Lock_policy)2,false,false>::operator*
((__shared_ptr_access<minja::Value,(__gnu_cxx::_Lock_policy)2,false,false> *)local_38)
;
/* try { // try from 001e590b to 001e591f has its CatchHandler @ 001e596a */
std::make_shared<minja::LiteralExpr,minja::Location&,minja::Value&>(local_58,local_28);
std::shared_ptr<minja::Expression>::shared_ptr<minja::LiteralExpr,void>
((shared_ptr<minja::Expression> *)this,(shared_ptr *)local_58);
std::shared_ptr<minja::LiteralExpr>::~shared_ptr((shared_ptr<minja::LiteralExpr> *)local_58);
local_5c = 1;
}
else {
if ((operator()()::null_regex_abi_cxx11_ == '\0') &&
(iVar4 = __cxa_guard_acquire(&operator()()::null_regex_abi_cxx11_), iVar4 != 0)) {
/* try { // try from 001e59a0 to 001e59b7 has its CatchHandler @ 001e5a8e */
std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::basic_regex
(operator()()::null_regex_abi_cxx11_,"null\\b",0x10);
__cxa_atexit(std::__cxx11::basic_regex<char,std::__cxx11::regex_traits<char>>::~basic_regex,
operator()()::null_regex_abi_cxx11_,&__dso_handle);
__cxa_guard_release(&operator()()::null_regex_abi_cxx11_);
}
/* try { // try from 001e59e0 to 001e5a36 has its CatchHandler @ 001e596a */
consumeToken(local_80,uVar1,operator()()::null_regex_abi_cxx11_,1);
bVar3 = std::__cxx11::string::empty();
std::__cxx11::string::~string(local_80);
if (((bVar3 ^ 0xff) & 1) == 0) {
/* try { // try from 001e5ad6 to 001e5ae4 has its CatchHandler @ 001e596a */
parseIdentifier();
bVar2 = std::__shared_ptr::operator_cast_to_bool(local_f0);
if (bVar2) {
std::shared_ptr<minja::Expression>::shared_ptr<minja::VariableExpr,void>
((shared_ptr<minja::Expression> *)this,(shared_ptr *)local_f0);
local_5c = 1;
}
else {
/* try { // try from 001e5b16 to 001e5b24 has its CatchHandler @ 001e5b56 */
parseBracedExpressionOrArray();
bVar2 = std::__shared_ptr::operator_cast_to_bool(local_100);
if (bVar2) {
std::shared_ptr<minja::Expression>::shared_ptr
((shared_ptr<minja::Expression> *)this,(shared_ptr *)local_100);
local_5c = 1;
}
else {
/* try { // try from 001e5b6f to 001e5b7d has its CatchHandler @ 001e5baf */
parseArray();
bVar2 = std::__shared_ptr::operator_cast_to_bool(local_110);
if (bVar2) {
std::shared_ptr<minja::Expression>::shared_ptr
((shared_ptr<minja::Expression> *)this,(shared_ptr *)local_110);
}
else {
/* try { // try from 001e5bd7 to 001e5bdb has its CatchHandler @ 001e5c0e */
parseDictionary();
bVar2 = std::__shared_ptr::operator_cast_to_bool((__shared_ptr *)this);
if (!bVar2) {
this_00 = (runtime_error *)__cxa_allocate_exception(0x10);
/* try { // try from 001e5c3c to 001e5c47 has its CatchHandler @ 001e5c67 */
std::runtime_error::runtime_error(this_00,"Expected value expression");
/* try { // try from 001e5c4a to 001e5c61 has its CatchHandler @ 001e5c87 */
/* WARNING: Subroutine does not return */
__cxa_throw(this_00,PTR_typeinfo_0036efa8,PTR__runtime_error_0036ef70);
}
}
local_5c = 1;
std::shared_ptr<minja::Expression>::~shared_ptr
((shared_ptr<minja::Expression> *)local_110);
}
std::shared_ptr<minja::Expression>::~shared_ptr((shared_ptr<minja::Expression> *)local_100);
}
std::shared_ptr<minja::VariableExpr>::~shared_ptr((shared_ptr<minja::VariableExpr> *)local_f0)
;
}
else {
Value::Value(local_e0);
/* try { // try from 001e5a39 to 001e5a52 has its CatchHandler @ 001e5ab3 */
std::make_shared<minja::LiteralExpr,minja::Location&,minja::Value>(local_90,local_28);
std::shared_ptr<minja::Expression>::shared_ptr<minja::LiteralExpr,void>
((shared_ptr<minja::Expression> *)this,(shared_ptr *)local_90);
std::shared_ptr<minja::LiteralExpr>::~shared_ptr((shared_ptr<minja::LiteralExpr> *)local_90);
Value::~Value(local_e0);
local_5c = 1;
}
}
std::shared_ptr<minja::Value>::~shared_ptr((shared_ptr<minja::Value> *)local_38);
Location::~Location((Location *)local_28);
return this;
}
| |
28,245 | LefDefParser::lefiAntennaModel::Destroy() | Efficient-TDP/thirdparty/Limbo/limbo/thirdparty/lefdef/5.8/lef/lef/lefiLayer.cpp | void
lefiAntennaModel::Destroy()
{
if (oxide_) {
lefFree((char*) (oxide_));
}
if (antennaDiffAreaRatioPWL_) {
antennaDiffAreaRatioPWL_->Destroy();
lefFree((char*) (antennaDiffAreaRatioPWL_));
antennaDiffAreaRatioPWL_ = 0;
}
if (antennaCumDiffAreaRatioPWL_) {
antennaCumDiffAreaRatioPWL_->Destroy();
lefFree((char*) (antennaCumDiffAreaRatioPWL_));
antennaCumDiffAreaRatioPWL_ = 0;
}
if (antennaDiffSideAreaRatioPWL_) {
antennaDiffSideAreaRatioPWL_->Destroy();
lefFree((char*) (antennaDiffSideAreaRatioPWL_));
antennaDiffSideAreaRatioPWL_ = 0;
}
if (antennaCumDiffSideAreaRatioPWL_) {
antennaCumDiffSideAreaRatioPWL_->Destroy();
lefFree((char*) (antennaCumDiffSideAreaRatioPWL_));
antennaCumDiffSideAreaRatioPWL_ = 0;
}
if (antennaAreaDiffReducePWL_) { // 5.7
antennaAreaDiffReducePWL_->Destroy();
lefFree((char*) (antennaAreaDiffReducePWL_));
antennaAreaDiffReducePWL_ = 0;
}
Init();
} | O0 | cpp | LefDefParser::lefiAntennaModel::Destroy():
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x50(%rax)
je 0x1c618
movq 0x8(%rsp), %rax
movq 0x50(%rax), %rdi
callq 0x38c90
movq 0x8(%rsp), %rax
cmpq $0x0, 0x68(%rax)
je 0x1c64d
movq 0x8(%rsp), %rax
movq 0x68(%rax), %rdi
callq 0x1ab90
movq 0x8(%rsp), %rax
movq 0x68(%rax), %rdi
callq 0x38c90
movq 0x8(%rsp), %rax
movq $0x0, 0x68(%rax)
movq 0x8(%rsp), %rax
cmpq $0x0, 0x80(%rax)
je 0x1c68e
movq 0x8(%rsp), %rax
movq 0x80(%rax), %rdi
callq 0x1ab90
movq 0x8(%rsp), %rax
movq 0x80(%rax), %rdi
callq 0x38c90
movq 0x8(%rsp), %rax
movq $0x0, 0x80(%rax)
movq 0x8(%rsp), %rax
cmpq $0x0, 0xa0(%rax)
je 0x1c6cf
movq 0x8(%rsp), %rax
movq 0xa0(%rax), %rdi
callq 0x1ab90
movq 0x8(%rsp), %rax
movq 0xa0(%rax), %rdi
callq 0x38c90
movq 0x8(%rsp), %rax
movq $0x0, 0xa0(%rax)
movq 0x8(%rsp), %rax
cmpq $0x0, 0xb8(%rax)
je 0x1c710
movq 0x8(%rsp), %rax
movq 0xb8(%rax), %rdi
callq 0x1ab90
movq 0x8(%rsp), %rax
movq 0xb8(%rax), %rdi
callq 0x38c90
movq 0x8(%rsp), %rax
movq $0x0, 0xb8(%rax)
movq 0x8(%rsp), %rax
cmpq $0x0, 0xd8(%rax)
je 0x1c751
movq 0x8(%rsp), %rax
movq 0xd8(%rax), %rdi
callq 0x1ab90
movq 0x8(%rsp), %rax
movq 0xd8(%rax), %rdi
callq 0x38c90
movq 0x8(%rsp), %rax
movq $0x0, 0xd8(%rax)
movq 0x8(%rsp), %rdi
callq 0x1c520
addq $0x18, %rsp
retq
| _ZN12LefDefParser16lefiAntennaModel7DestroyEv:
sub rsp, 18h
mov [rsp+18h+var_8], rdi
mov rax, [rsp+18h+var_8]
mov [rsp+18h+var_10], rax
cmp qword ptr [rax+50h], 0
jz short loc_1C618
mov rax, [rsp+18h+var_10]
mov rdi, [rax+50h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
loc_1C618:
mov rax, [rsp+18h+var_10]
cmp qword ptr [rax+68h], 0
jz short loc_1C64D
mov rax, [rsp+18h+var_10]
mov rdi, [rax+68h]; this
call _ZN12LefDefParser14lefiAntennaPWL7DestroyEv; LefDefParser::lefiAntennaPWL::Destroy(void)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+68h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov qword ptr [rax+68h], 0
loc_1C64D:
mov rax, [rsp+18h+var_10]
cmp qword ptr [rax+80h], 0
jz short loc_1C68E
mov rax, [rsp+18h+var_10]
mov rdi, [rax+80h]; this
call _ZN12LefDefParser14lefiAntennaPWL7DestroyEv; LefDefParser::lefiAntennaPWL::Destroy(void)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+80h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov qword ptr [rax+80h], 0
loc_1C68E:
mov rax, [rsp+18h+var_10]
cmp qword ptr [rax+0A0h], 0
jz short loc_1C6CF
mov rax, [rsp+18h+var_10]
mov rdi, [rax+0A0h]; this
call _ZN12LefDefParser14lefiAntennaPWL7DestroyEv; LefDefParser::lefiAntennaPWL::Destroy(void)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+0A0h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov qword ptr [rax+0A0h], 0
loc_1C6CF:
mov rax, [rsp+18h+var_10]
cmp qword ptr [rax+0B8h], 0
jz short loc_1C710
mov rax, [rsp+18h+var_10]
mov rdi, [rax+0B8h]; this
call _ZN12LefDefParser14lefiAntennaPWL7DestroyEv; LefDefParser::lefiAntennaPWL::Destroy(void)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+0B8h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov qword ptr [rax+0B8h], 0
loc_1C710:
mov rax, [rsp+18h+var_10]
cmp qword ptr [rax+0D8h], 0
jz short loc_1C751
mov rax, [rsp+18h+var_10]
mov rdi, [rax+0D8h]; this
call _ZN12LefDefParser14lefiAntennaPWL7DestroyEv; LefDefParser::lefiAntennaPWL::Destroy(void)
mov rax, [rsp+18h+var_10]
mov rdi, [rax+0D8h]; this
call _ZN12LefDefParser7lefFreeEPv; LefDefParser::lefFree(void *)
mov rax, [rsp+18h+var_10]
mov qword ptr [rax+0D8h], 0
loc_1C751:
mov rdi, [rsp+18h+var_10]; this
call _ZN12LefDefParser16lefiAntennaModel4InitEv; LefDefParser::lefiAntennaModel::Init(void)
add rsp, 18h
retn
| LefDefParser::lefiAntennaModel * LefDefParser::lefiAntennaModel::Destroy(
LefDefParser::lefiAntennaModel *this,
void *a2)
{
if ( *((_QWORD *)this + 10) )
LefDefParser::lefFree(*((LefDefParser **)this + 10), a2);
if ( *((_QWORD *)this + 13) )
{
LefDefParser::lefiAntennaPWL::Destroy(*((LefDefParser ***)this + 13), a2);
LefDefParser::lefFree(*((LefDefParser **)this + 13), a2);
*((_QWORD *)this + 13) = 0LL;
}
if ( *((_QWORD *)this + 16) )
{
LefDefParser::lefiAntennaPWL::Destroy(*((LefDefParser ***)this + 16), a2);
LefDefParser::lefFree(*((LefDefParser **)this + 16), a2);
*((_QWORD *)this + 16) = 0LL;
}
if ( *((_QWORD *)this + 20) )
{
LefDefParser::lefiAntennaPWL::Destroy(*((LefDefParser ***)this + 20), a2);
LefDefParser::lefFree(*((LefDefParser **)this + 20), a2);
*((_QWORD *)this + 20) = 0LL;
}
if ( *((_QWORD *)this + 23) )
{
LefDefParser::lefiAntennaPWL::Destroy(*((LefDefParser ***)this + 23), a2);
LefDefParser::lefFree(*((LefDefParser **)this + 23), a2);
*((_QWORD *)this + 23) = 0LL;
}
if ( *((_QWORD *)this + 27) )
{
LefDefParser::lefiAntennaPWL::Destroy(*((LefDefParser ***)this + 27), a2);
LefDefParser::lefFree(*((LefDefParser **)this + 27), a2);
*((_QWORD *)this + 27) = 0LL;
}
return LefDefParser::lefiAntennaModel::Init(this);
}
| Destroy:
SUB RSP,0x18
MOV qword ptr [RSP + 0x10],RDI
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x8],RAX
CMP qword ptr [RAX + 0x50],0x0
JZ 0x0011c618
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x50]
CALL 0x00138c90
LAB_0011c618:
MOV RAX,qword ptr [RSP + 0x8]
CMP qword ptr [RAX + 0x68],0x0
JZ 0x0011c64d
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x68]
CALL 0x0011ab90
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x68]
CALL 0x00138c90
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + 0x68],0x0
LAB_0011c64d:
MOV RAX,qword ptr [RSP + 0x8]
CMP qword ptr [RAX + 0x80],0x0
JZ 0x0011c68e
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x80]
CALL 0x0011ab90
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x80]
CALL 0x00138c90
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + 0x80],0x0
LAB_0011c68e:
MOV RAX,qword ptr [RSP + 0x8]
CMP qword ptr [RAX + 0xa0],0x0
JZ 0x0011c6cf
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0xa0]
CALL 0x0011ab90
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0xa0]
CALL 0x00138c90
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + 0xa0],0x0
LAB_0011c6cf:
MOV RAX,qword ptr [RSP + 0x8]
CMP qword ptr [RAX + 0xb8],0x0
JZ 0x0011c710
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0xb8]
CALL 0x0011ab90
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0xb8]
CALL 0x00138c90
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + 0xb8],0x0
LAB_0011c710:
MOV RAX,qword ptr [RSP + 0x8]
CMP qword ptr [RAX + 0xd8],0x0
JZ 0x0011c751
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0xd8]
CALL 0x0011ab90
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0xd8]
CALL 0x00138c90
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RAX + 0xd8],0x0
LAB_0011c751:
MOV RDI,qword ptr [RSP + 0x8]
CALL 0x0011c520
ADD RSP,0x18
RET
|
/* LefDefParser::lefiAntennaModel::Destroy() */
void __thiscall LefDefParser::lefiAntennaModel::Destroy(lefiAntennaModel *this)
{
if (*(long *)(this + 0x50) != 0) {
lefFree(*(void **)(this + 0x50));
}
if (*(long *)(this + 0x68) != 0) {
lefiAntennaPWL::Destroy(*(lefiAntennaPWL **)(this + 0x68));
lefFree(*(void **)(this + 0x68));
*(int8 *)(this + 0x68) = 0;
}
if (*(long *)(this + 0x80) != 0) {
lefiAntennaPWL::Destroy(*(lefiAntennaPWL **)(this + 0x80));
lefFree(*(void **)(this + 0x80));
*(int8 *)(this + 0x80) = 0;
}
if (*(long *)(this + 0xa0) != 0) {
lefiAntennaPWL::Destroy(*(lefiAntennaPWL **)(this + 0xa0));
lefFree(*(void **)(this + 0xa0));
*(int8 *)(this + 0xa0) = 0;
}
if (*(long *)(this + 0xb8) != 0) {
lefiAntennaPWL::Destroy(*(lefiAntennaPWL **)(this + 0xb8));
lefFree(*(void **)(this + 0xb8));
*(int8 *)(this + 0xb8) = 0;
}
if (*(long *)(this + 0xd8) != 0) {
lefiAntennaPWL::Destroy(*(lefiAntennaPWL **)(this + 0xd8));
lefFree(*(void **)(this + 0xd8));
*(int8 *)(this + 0xd8) = 0;
}
Init(this);
return;
}
| |
28,246 | binding_system_get_binding_env_index | tsotchke[P]eshkol/src/frontend/binding/lambda/binding_lambda.c | int binding_system_get_binding_env_index(BindingSystem* system, uint64_t binding_id) {
assert(system != NULL);
// Check if environment_indices array exists
if (!system->binding_table.environment_indices) {
return -1;
}
// Find the binding
for (size_t i = 0; i < system->binding_table.count; i++) {
if (system->binding_table.binding_ids[i] == binding_id) {
return (int)system->binding_table.environment_indices[i];
}
}
return -1;
} | O3 | c | binding_system_get_binding_env_index:
pushq %rax
testq %rdi, %rdi
je 0x1558c
movq 0x40(%rdi), %rcx
movl $0xffffffff, %eax # imm = 0xFFFFFFFF
testq %rcx, %rcx
je 0x1558a
movq 0x48(%rdi), %rdx
testq %rdx, %rdx
je 0x1558a
movq 0x18(%rdi), %r8
xorl %edi, %edi
cmpq %rsi, (%r8,%rdi,8)
je 0x15587
incq %rdi
cmpq %rdi, %rdx
jne 0x15577
jmp 0x1558a
movl (%rcx,%rdi,8), %eax
popq %rcx
retq
leaq 0x5e9e(%rip), %rdi # 0x1b431
leaq 0xbcff(%rip), %rsi # 0x21299
leaq 0xbe2c(%rip), %rcx # 0x213cd
movl $0xb4, %edx
callq 0x2180
| binding_system_get_binding_env_index:
push rax
test rdi, rdi
jz short loc_1558C
mov rcx, [rdi+40h]
mov eax, 0FFFFFFFFh
test rcx, rcx
jz short loc_1558A
mov rdx, [rdi+48h]
test rdx, rdx
jz short loc_1558A
mov r8, [rdi+18h]
xor edi, edi
loc_15577:
cmp [r8+rdi*8], rsi
jz short loc_15587
inc rdi
cmp rdx, rdi
jnz short loc_15577
jmp short loc_1558A
loc_15587:
mov eax, [rcx+rdi*8]
loc_1558A:
pop rcx
retn
loc_1558C:
lea rdi, aSystemNull; "system != NULL"
lea rsi, aWorkspaceLlm4b_23; "/workspace/llm4binary/github/2025_star3"...
lea rcx, aIntBindingSyst; "int binding_system_get_binding_env_inde"...
mov edx, 0B4h
call ___assert_fail
| long long binding_system_get_binding_env_index(_QWORD *a1, long long a2)
{
long long v2; // rcx
long long result; // rax
long long v4; // rdx
long long v5; // r8
long long v6; // rdi
if ( !a1 )
__assert_fail(
"system != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/lambda/binding_lambda.c",
180LL,
"int binding_system_get_binding_env_index(BindingSystem *, uint64_t)");
v2 = a1[8];
result = 0xFFFFFFFFLL;
if ( v2 )
{
v4 = a1[9];
if ( v4 )
{
v5 = a1[3];
v6 = 0LL;
while ( *(_QWORD *)(v5 + 8 * v6) != a2 )
{
if ( v4 == ++v6 )
return result;
}
return *(unsigned int *)(v2 + 8 * v6);
}
}
return result;
}
| binding_system_get_binding_env_index:
PUSH RAX
TEST RDI,RDI
JZ 0x0011558c
MOV RCX,qword ptr [RDI + 0x40]
MOV EAX,0xffffffff
TEST RCX,RCX
JZ 0x0011558a
MOV RDX,qword ptr [RDI + 0x48]
TEST RDX,RDX
JZ 0x0011558a
MOV R8,qword ptr [RDI + 0x18]
XOR EDI,EDI
LAB_00115577:
CMP qword ptr [R8 + RDI*0x8],RSI
JZ 0x00115587
INC RDI
CMP RDX,RDI
JNZ 0x00115577
JMP 0x0011558a
LAB_00115587:
MOV EAX,dword ptr [RCX + RDI*0x8]
LAB_0011558a:
POP RCX
RET
LAB_0011558c:
LEA RDI,[0x11b431]
LEA RSI,[0x121299]
LEA RCX,[0x1213cd]
MOV EDX,0xb4
CALL 0x00102180
|
int4 binding_system_get_binding_env_index(long param_1,long param_2)
{
long lVar1;
if (param_1 == 0) {
/* WARNING: Subroutine does not return */
__assert_fail("system != NULL",
"/workspace/llm4binary/github/2025_star3/tsotchke[P]eshkol/src/frontend/binding/lambda/binding_lambda.c"
,0xb4,"int binding_system_get_binding_env_index(BindingSystem *, uint64_t)");
}
if ((*(long *)(param_1 + 0x40) != 0) && (*(long *)(param_1 + 0x48) != 0)) {
lVar1 = 0;
do {
if (*(long *)(*(long *)(param_1 + 0x18) + lVar1 * 8) == param_2) {
return *(int4 *)(*(long *)(param_1 + 0x40) + lVar1 * 8);
}
lVar1 = lVar1 + 1;
} while (*(long *)(param_1 + 0x48) != lVar1);
}
return 0xffffffff;
}
| |
28,247 | mariadb_read_options | eloqsql/libmariadb/libmariadb/ma_default.c | my_bool _mariadb_read_options(MYSQL *mysql,
const char *config_dir,
const char *config_file,
const char *group,
unsigned int recursion)
{
int i= 0,
exts,
errors= 0;
char filename[FN_REFLEN + 1];
unsigned int recursion_stop= 64;
#ifndef _WIN32
char *env;
#endif
if (recursion >= recursion_stop)
return 1;
if (config_file && config_file[0])
return _mariadb_read_options_from_file(mysql, config_file, group, recursion);
if (config_dir && config_dir[0])
{
for (exts= 0; ini_exts[exts]; exts++)
{
snprintf(filename, FN_REFLEN,
"%s%cmy.%s", config_dir, FN_LIBCHAR, ini_exts[exts]);
if (!access(filename, R_OK))
errors+= _mariadb_read_options_from_file(mysql, filename, group, recursion);
}
return errors;
}
for (i=0; i < MAX_CONFIG_DIRS && configuration_dirs[i]; i++)
{
for (exts= 0; ini_exts[exts]; exts++)
{
snprintf(filename, FN_REFLEN,
"%s%cmy.%s", configuration_dirs[i], FN_LIBCHAR, ini_exts[exts]);
if (!access(filename, R_OK))
errors+= _mariadb_read_options_from_file(mysql, filename, group, recursion);
}
}
#ifndef _WIN32
/* special case: .my.cnf in Home directory */
if ((env= getenv("HOME")))
{
for (exts= 0; ini_exts[exts]; exts++)
{
snprintf(filename, FN_REFLEN,
"%s%c.my.%s", env, FN_LIBCHAR, ini_exts[exts]);
if (!access(filename, R_OK))
errors+= _mariadb_read_options_from_file(mysql, filename, group, recursion);
}
}
#endif
return errors;
} | O3 | c | mariadb_read_options:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp # imm = 0x238
movq %rcx, -0x258(%rbp)
movq %rdi, -0x250(%rbp)
movq %fs:0x28, %rax
movq %rax, -0x30(%rbp)
movb $0x1, %r12b
movl %r8d, -0x244(%rbp)
cmpl $0x3f, %r8d
jbe 0x33ed0
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x340b3
movl %r12d, %eax
addq $0x238, %rsp # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rsi, %r9
testq %rdx, %rdx
je 0x33f1d
cmpb $0x0, (%rdx)
je 0x33f1d
movq %fs:0x28, %rax
cmpq -0x30(%rbp), %rax
jne 0x340b3
movq -0x250(%rbp), %rdi
movq %rdx, %rsi
movq -0x258(%rbp), %rdx
movl -0x244(%rbp), %ecx
addq $0x238, %rsp # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x340b8
testq %r9, %r9
je 0x33f9b
cmpb $0x0, (%r9)
je 0x33f9b
leaq 0x5db6(%rip), %r10 # 0x39ce5
leaq 0x5d6a(%rip), %r8 # 0x39ca0
xorl %r12d, %r12d
leaq -0x240(%rbp), %r14
movl $0x200, %esi # imm = 0x200
movl $0x201, %ecx # imm = 0x201
movq %r14, %rdi
movl $0x1, %edx
xorl %eax, %eax
pushq %r10
pushq $0x2f
callq 0x132c0
addq $0x10, %rsp
movq %r14, %rdi
movl $0x4, %esi
callq 0x13760
testl %eax, %eax
jne 0x33ea8
leaq -0x240(%rbp), %rsi
movq -0x250(%rbp), %rdi
movq -0x258(%rbp), %rdx
movl -0x244(%rbp), %ecx
callq 0x340b8
jmp 0x340ab
xorl %r12d, %r12d
leaq 0x19b6b(%rip), %r15 # 0x4db10
leaq 0x5cf4(%rip), %r13 # 0x39ca0
leaq -0x240(%rbp), %r14
xorl %ebx, %ebx
movq (%r15), %rax
movq (%rax,%rbx,8), %r9
testq %r9, %r9
je 0x34025
movl $0x200, %esi # imm = 0x200
movl $0x201, %ecx # imm = 0x201
movq %r14, %rdi
movl $0x1, %edx
movq %r13, %r8
xorl %eax, %eax
leaq 0x5d06(%rip), %r10 # 0x39ce5
pushq %r10
pushq $0x2f
callq 0x132c0
addq $0x10, %rsp
movq %r14, %rdi
movl $0x4, %esi
callq 0x13760
testl %eax, %eax
jne 0x3401c
movq -0x250(%rbp), %rdi
movq %r14, %rsi
movq -0x258(%rbp), %rdx
movl -0x244(%rbp), %ecx
callq 0x340b8
addb %al, %r12b
incq %rbx
cmpq $0x6, %rbx
jne 0x33fb5
leaq 0x5c64(%rip), %rdi # 0x39c90
callq 0x13590
testq %rax, %rax
je 0x33ea8
leaq 0x5c69(%rip), %r8 # 0x39caa
leaq -0x240(%rbp), %r14
movl $0x200, %esi # imm = 0x200
movl $0x201, %ecx # imm = 0x201
movq %r14, %rdi
movl $0x1, %edx
movq %rax, %r9
xorl %eax, %eax
leaq 0x5c7f(%rip), %r10 # 0x39ce5
pushq %r10
pushq $0x2f
callq 0x132c0
addq $0x10, %rsp
movq %r14, %rdi
movl $0x4, %esi
callq 0x13760
testl %eax, %eax
jne 0x33ea8
leaq -0x240(%rbp), %rsi
movq -0x250(%rbp), %rdi
movq -0x258(%rbp), %rdx
movl -0x244(%rbp), %ecx
callq 0x340b8
addb %r12b, %al
movl %eax, %r12d
jmp 0x33ea8
callq 0x13500
| _mariadb_read_options:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 238h
mov [rbp+var_258], rcx
mov [rbp+var_250], rdi
mov rax, fs:28h
mov [rbp+var_30], rax
mov r12b, 1
mov [rbp+var_244], r8d
cmp r8d, 3Fh ; '?'
jbe short loc_33ED0
loc_33EA8:
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz loc_340B3
mov eax, r12d
add rsp, 238h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_33ED0:
mov r9, rsi
test rdx, rdx
jz short loc_33F1D
cmp byte ptr [rdx], 0
jz short loc_33F1D
mov rax, fs:28h
cmp rax, [rbp+var_30]
jnz loc_340B3
mov rdi, [rbp+var_250]
mov rsi, rdx
mov rdx, [rbp+var_258]
mov ecx, [rbp+var_244]
add rsp, 238h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp _mariadb_read_options_from_file
loc_33F1D:
test r9, r9
jz short loc_33F9B
cmp byte ptr [r9], 0
jz short loc_33F9B
lea r10, aCnf; "cnf"
lea r8, aSCmyS; "%s%cmy.%s"
xor r12d, r12d
lea r14, [rbp+var_240]
mov esi, 200h
mov ecx, 201h
mov rdi, r14
mov edx, 1
xor eax, eax
push r10
push 2Fh ; '/'
call ___snprintf_chk
add rsp, 10h
mov rdi, r14
mov esi, 4
call _access
test eax, eax
jnz loc_33EA8
lea rsi, [rbp+var_240]
mov rdi, [rbp+var_250]
mov rdx, [rbp+var_258]
mov ecx, [rbp+var_244]
call _mariadb_read_options_from_file
jmp loc_340AB
loc_33F9B:
xor r12d, r12d
lea r15, configuration_dirs
lea r13, aSCmyS; "%s%cmy.%s"
lea r14, [rbp+var_240]
xor ebx, ebx
loc_33FB5:
mov rax, [r15]
mov r9, [rax+rbx*8]
test r9, r9
jz short loc_34025
mov esi, 200h
mov ecx, 201h
mov rdi, r14
mov edx, 1
mov r8, r13
xor eax, eax
lea r10, aCnf; "cnf"
push r10
push 2Fh ; '/'
call ___snprintf_chk
add rsp, 10h
mov rdi, r14
mov esi, 4
call _access
test eax, eax
jnz short loc_3401C
mov rdi, [rbp+var_250]
mov rsi, r14
mov rdx, [rbp+var_258]
mov ecx, [rbp+var_244]
call _mariadb_read_options_from_file
add r12b, al
loc_3401C:
inc rbx
cmp rbx, 6
jnz short loc_33FB5
loc_34025:
lea rdi, aMariadbHome+8; "HOME"
call _getenv
test rax, rax
jz loc_33EA8
lea r8, aSCMyS; "%s%c.my.%s"
lea r14, [rbp+var_240]
mov esi, 200h
mov ecx, 201h
mov rdi, r14
mov edx, 1
mov r9, rax
xor eax, eax
lea r10, aCnf; "cnf"
push r10
push 2Fh ; '/'
call ___snprintf_chk
add rsp, 10h
mov rdi, r14
mov esi, 4
call _access
test eax, eax
jnz loc_33EA8
lea rsi, [rbp+var_240]
mov rdi, [rbp+var_250]
mov rdx, [rbp+var_258]
mov ecx, [rbp+var_244]
call _mariadb_read_options_from_file
add al, r12b
loc_340AB:
mov r12d, eax
jmp loc_33EA8
loc_340B3:
call ___stack_chk_fail
| long long mariadb_read_options(long long a1, const char *a2, _BYTE *a3, long long a4, unsigned int a5)
{
unsigned int v5; // r12d
double v7; // xmm0_8
unsigned int options_from_file; // eax
long long i; // rbx
const char *v10; // r9
double v11; // xmm0_8
const char *v12; // rax
double v13; // xmm0_8
_BYTE v16[528]; // [rsp+20h] [rbp-240h] BYREF
unsigned long long v17; // [rsp+230h] [rbp-30h]
v17 = __readfsqword(0x28u);
LOBYTE(v5) = 1;
if ( a5 > 0x3F )
return v5;
if ( !a3 || !*a3 )
{
if ( a2 && *a2 )
{
v5 = 0;
v7 = __snprintf_chk(v16, 512LL, 1LL, 513LL, "%s%cmy.%s", a2, 47LL, "cnf");
if ( (unsigned int)access(v16, 4LL, v7) )
return v5;
return (unsigned int)mariadb_read_options_from_file(a1, v16, a4, a5);
}
else
{
v5 = 0;
for ( i = 0LL; i != 6; ++i )
{
v10 = *(const char **)(configuration_dirs + 8 * i);
if ( !v10 )
break;
v11 = __snprintf_chk(v16, 512LL, 1LL, 513LL, "%s%cmy.%s", v10, 47LL, "cnf");
if ( !(unsigned int)access(v16, 4LL, v11) )
LOBYTE(v5) = mariadb_read_options_from_file(a1, v16, a4, a5) + v5;
}
v12 = (const char *)getenv("HOME");
if ( !v12 )
return v5;
v13 = __snprintf_chk(v16, 512LL, 1LL, 513LL, "%s%c.my.%s", v12, 47LL, "cnf");
if ( (unsigned int)access(v16, 4LL, v13) )
return v5;
options_from_file = mariadb_read_options_from_file(a1, v16, a4, a5);
LOBYTE(options_from_file) = v5 + options_from_file;
}
return options_from_file;
}
return mariadb_read_options_from_file(a1, a3, a4, a5);
}
| _mariadb_read_options:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x238
MOV qword ptr [RBP + -0x258],RCX
MOV qword ptr [RBP + -0x250],RDI
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x30],RAX
MOV R12B,0x1
MOV dword ptr [RBP + -0x244],R8D
CMP R8D,0x3f
JBE 0x00133ed0
LAB_00133ea8:
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x001340b3
MOV EAX,R12D
ADD RSP,0x238
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00133ed0:
MOV R9,RSI
TEST RDX,RDX
JZ 0x00133f1d
CMP byte ptr [RDX],0x0
JZ 0x00133f1d
MOV RAX,qword ptr FS:[0x28]
CMP RAX,qword ptr [RBP + -0x30]
JNZ 0x001340b3
MOV RDI,qword ptr [RBP + -0x250]
MOV RSI,RDX
MOV RDX,qword ptr [RBP + -0x258]
MOV ECX,dword ptr [RBP + -0x244]
ADD RSP,0x238
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
JMP 0x001340b8
LAB_00133f1d:
TEST R9,R9
JZ 0x00133f9b
CMP byte ptr [R9],0x0
JZ 0x00133f9b
LEA R10,[0x139ce5]
LEA R8,[0x139ca0]
XOR R12D,R12D
LEA R14,[RBP + -0x240]
MOV ESI,0x200
MOV ECX,0x201
MOV RDI,R14
MOV EDX,0x1
XOR EAX,EAX
PUSH R10
PUSH 0x2f
CALL 0x001132c0
ADD RSP,0x10
MOV RDI,R14
MOV ESI,0x4
CALL 0x00113760
TEST EAX,EAX
JNZ 0x00133ea8
LEA RSI,[RBP + -0x240]
MOV RDI,qword ptr [RBP + -0x250]
MOV RDX,qword ptr [RBP + -0x258]
MOV ECX,dword ptr [RBP + -0x244]
CALL 0x001340b8
JMP 0x001340ab
LAB_00133f9b:
XOR R12D,R12D
LEA R15,[0x14db10]
LEA R13,[0x139ca0]
LEA R14,[RBP + -0x240]
XOR EBX,EBX
LAB_00133fb5:
MOV RAX,qword ptr [R15]
MOV R9,qword ptr [RAX + RBX*0x8]
TEST R9,R9
JZ 0x00134025
MOV ESI,0x200
MOV ECX,0x201
MOV RDI,R14
MOV EDX,0x1
MOV R8,R13
XOR EAX,EAX
LEA R10,[0x139ce5]
PUSH R10
PUSH 0x2f
CALL 0x001132c0
ADD RSP,0x10
MOV RDI,R14
MOV ESI,0x4
CALL 0x00113760
TEST EAX,EAX
JNZ 0x0013401c
MOV RDI,qword ptr [RBP + -0x250]
MOV RSI,R14
MOV RDX,qword ptr [RBP + -0x258]
MOV ECX,dword ptr [RBP + -0x244]
CALL 0x001340b8
ADD R12B,AL
LAB_0013401c:
INC RBX
CMP RBX,0x6
JNZ 0x00133fb5
LAB_00134025:
LEA RDI,[0x139c90]
CALL 0x00113590
TEST RAX,RAX
JZ 0x00133ea8
LEA R8,[0x139caa]
LEA R14,[RBP + -0x240]
MOV ESI,0x200
MOV ECX,0x201
MOV RDI,R14
MOV EDX,0x1
MOV R9,RAX
XOR EAX,EAX
LEA R10,[0x139ce5]
PUSH R10
PUSH 0x2f
CALL 0x001132c0
ADD RSP,0x10
MOV RDI,R14
MOV ESI,0x4
CALL 0x00113760
TEST EAX,EAX
JNZ 0x00133ea8
LEA RSI,[RBP + -0x240]
MOV RDI,qword ptr [RBP + -0x250]
MOV RDX,qword ptr [RBP + -0x258]
MOV ECX,dword ptr [RBP + -0x244]
CALL 0x001340b8
ADD AL,R12B
LAB_001340ab:
MOV R12D,EAX
JMP 0x00133ea8
LAB_001340b3:
CALL 0x00113500
|
ulong _mariadb_read_options
(int8 param_1,char *param_2,char *param_3,int8 param_4,uint param_5)
{
long lVar1;
char cVar2;
int iVar3;
uint uVar4;
ulong uVar5;
char *pcVar6;
int8 uVar7;
long lVar8;
int8 unaff_R12;
long in_FS_OFFSET;
char local_248 [528];
long local_38;
local_38 = *(long *)(in_FS_OFFSET + 0x28);
uVar5 = CONCAT71((int7)((ulong)unaff_R12 >> 8),1);
if (param_5 < 0x40) {
if ((param_3 != (char *)0x0) && (*param_3 != '\0')) {
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
uVar5 = _mariadb_read_options_from_file(param_1,param_3,param_4,param_5);
return uVar5;
}
goto LAB_001340b3;
}
if ((param_2 == (char *)0x0) || (*param_2 == '\0')) {
uVar5 = 0;
lVar8 = 0;
do {
lVar1 = *(long *)(configuration_dirs + lVar8 * 8);
if (lVar1 == 0) break;
__snprintf_chk(local_248,0x200,1,0x201,"%s%cmy.%s",lVar1,0x2f,&DAT_00139ce5);
iVar3 = access(local_248,4);
if (iVar3 == 0) {
cVar2 = _mariadb_read_options_from_file(param_1,local_248,param_4,param_5);
uVar5 = (ulong)(byte)((char)uVar5 + cVar2);
}
lVar8 = lVar8 + 1;
} while (lVar8 != 6);
pcVar6 = getenv("HOME");
if (pcVar6 != (char *)0x0) {
__snprintf_chk(local_248,0x200,1,0x201,"%s%c.my.%s",pcVar6,0x2f,&DAT_00139ce5);
iVar3 = access(local_248,4);
if (iVar3 == 0) {
uVar7 = _mariadb_read_options_from_file(param_1,local_248,param_4,param_5);
uVar4 = (uint)CONCAT71((int7)((ulong)uVar7 >> 8),(char)uVar7 + (char)uVar5);
goto LAB_001340ab;
}
}
}
else {
uVar5 = 0;
__snprintf_chk(local_248,0x200,1,0x201,"%s%cmy.%s",param_2,0x2f,&DAT_00139ce5);
iVar3 = access(local_248,4);
if (iVar3 == 0) {
uVar4 = _mariadb_read_options_from_file(param_1,local_248,param_4,param_5);
LAB_001340ab:
uVar5 = (ulong)uVar4;
}
}
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_38) {
return uVar5 & 0xffffffff;
}
LAB_001340b3:
/* WARNING: Subroutine does not return */
__stack_chk_fail();
}
| |
28,248 | bool google::protobuf::safe_uint_internal<unsigned int>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned int*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/strutil.cc | bool safe_uint_internal(std::string text, IntType *value_p) {
*value_p = 0;
bool negative;
if (!safe_parse_sign(&text, &negative) || negative) {
return false;
}
return safe_parse_positive_int(text, value_p);
} | O0 | cpp | bool google::protobuf::safe_uint_internal<unsigned int>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned int*):
subq $0x68, %rsp
movq %rdi, 0x10(%rsp)
movq %rdi, 0x58(%rsp)
movq %rsi, 0x50(%rsp)
movq 0x50(%rsp), %rax
movl $0x0, (%rax)
leaq 0x4f(%rsp), %rsi
callq 0x31410
testb $0x1, %al
jne 0x3086e
jmp 0x30875
testb $0x1, 0x4f(%rsp)
je 0x3087c
movb $0x0, 0x67(%rsp)
jmp 0x308d3
movq 0x10(%rsp), %rsi
leaq 0x28(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x131a0
movq (%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x31850
movb %al, 0xf(%rsp)
jmp 0x308a3
movb 0xf(%rsp), %al
andb $0x1, %al
movb %al, 0x67(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x13290
jmp 0x308d3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x13290
jmp 0x308de
movb 0x67(%rsp), %al
andb $0x1, %al
addq $0x68, %rsp
retq
movq 0x20(%rsp), %rdi
callq 0x13750
nopl (%rax,%rax)
| _ZN6google8protobuf18safe_uint_internalIjEEbNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_:
sub rsp, 68h
mov [rsp+68h+var_58], rdi
mov [rsp+68h+var_10], rdi
mov [rsp+68h+var_18], rsi
mov rax, [rsp+68h+var_18]
mov dword ptr [rax], 0
lea rsi, [rsp+68h+var_19]
call _ZN6google8protobuf15safe_parse_signEPNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPb; google::protobuf::safe_parse_sign(std::string *,bool *)
test al, 1
jnz short loc_3086E
jmp short loc_30875
loc_3086E:
test [rsp+68h+var_19], 1
jz short loc_3087C
loc_30875:
mov [rsp+68h+var_1], 0
jmp short loc_308D3
loc_3087C:
mov rsi, [rsp+68h+var_58]
lea rdi, [rsp+68h+var_40]
mov [rsp+68h+var_68], rdi
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&)
mov rdi, [rsp+68h+var_68]
mov rsi, [rsp+68h+var_18]
call _ZN6google8protobuf23safe_parse_positive_intIjEEbNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_; google::protobuf::safe_parse_positive_int<uint>(std::string,uint *)
mov [rsp+68h+var_59], al
jmp short $+2
loc_308A3:
mov al, [rsp+68h+var_59]
and al, 1
mov [rsp+68h+var_1], al
lea rdi, [rsp+68h+var_40]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_308D3
mov rcx, rax
mov eax, edx
mov [rsp+arg_18], rcx
mov [rsp+arg_14], eax
lea rdi, [rsp+arg_20]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_308DE
loc_308D3:
mov al, [rsp+68h+var_1]
and al, 1
add rsp, 68h
retn
loc_308DE:
mov rdi, [rsp+arg_18]
call __Unwind_Resume
| char google::protobuf::safe_uint_internal<unsigned int>(long long a1, _DWORD *a2)
{
_BYTE v3[39]; // [rsp+28h] [rbp-40h] BYREF
char v4; // [rsp+4Fh] [rbp-19h] BYREF
_DWORD *v5; // [rsp+50h] [rbp-18h]
long long v6; // [rsp+58h] [rbp-10h]
char v7; // [rsp+67h] [rbp-1h]
v6 = a1;
v5 = a2;
*a2 = 0;
if ( (google::protobuf::safe_parse_sign(a1, &v4) & 1) != 0 && (v4 & 1) == 0 )
{
std::string::basic_string(v3, a1);
v7 = google::protobuf::safe_parse_positive_int<unsigned int>(v3, v5) & 1;
std::string::~string(v3);
}
else
{
v7 = 0;
}
return v7 & 1;
}
| safe_uint_internal<unsigned_int>:
SUB RSP,0x68
MOV qword ptr [RSP + 0x10],RDI
MOV qword ptr [RSP + 0x58],RDI
MOV qword ptr [RSP + 0x50],RSI
MOV RAX,qword ptr [RSP + 0x50]
MOV dword ptr [RAX],0x0
LEA RSI,[RSP + 0x4f]
CALL 0x00131410
TEST AL,0x1
JNZ 0x0013086e
JMP 0x00130875
LAB_0013086e:
TEST byte ptr [RSP + 0x4f],0x1
JZ 0x0013087c
LAB_00130875:
MOV byte ptr [RSP + 0x67],0x0
JMP 0x001308d3
LAB_0013087c:
MOV RSI,qword ptr [RSP + 0x10]
LEA RDI,[RSP + 0x28]
MOV qword ptr [RSP],RDI
CALL 0x001131a0
MOV RDI,qword ptr [RSP]
MOV RSI,qword ptr [RSP + 0x50]
LAB_00130898:
CALL 0x00131850
LAB_0013089d:
MOV byte ptr [RSP + 0xf],AL
JMP 0x001308a3
LAB_001308a3:
MOV AL,byte ptr [RSP + 0xf]
AND AL,0x1
MOV byte ptr [RSP + 0x67],AL
LEA RDI,[RSP + 0x28]
CALL 0x00113290
JMP 0x001308d3
LAB_001308d3:
MOV AL,byte ptr [RSP + 0x67]
AND AL,0x1
ADD RSP,0x68
RET
|
/* bool google::protobuf::safe_uint_internal<unsigned int>(std::__cxx11::string, unsigned int*) */
bool google::protobuf::safe_uint_internal<unsigned_int>(string *param_1,int4 *param_2)
{
ulong uVar1;
string local_40 [39];
bool local_19;
int4 *local_18;
string *local_10;
byte local_1;
*param_2 = 0;
local_18 = param_2;
local_10 = param_1;
uVar1 = safe_parse_sign(param_1,&local_19);
if (((uVar1 & 1) == 0) || ((local_19 & 1U) != 0)) {
local_1 = 0;
}
else {
std::__cxx11::string::string(local_40,param_1);
/* try { // try from 00130898 to 0013089c has its CatchHandler @ 001308b9 */
local_1 = safe_parse_positive_int<unsigned_int>(local_40,local_18);
std::__cxx11::string::~string(local_40);
}
return (bool)(local_1 & 1);
}
| |
28,249 | SDL::DrawTexture(SDL::Rect2f const&, SDL::Rect2f const&, unsigned long) | SDL3Lite/source/OpenGL/GLUtils.cpp | void DrawTexture(const Rect2f& dst, const Rect2f& src, size_t textureSize)
{
GLfloat x = dst.x;
GLfloat y = dst.y;
GLfloat w = dst.w;
GLfloat h = dst.h;
GLfloat cx = src.x;
GLfloat cy = src.y;
GLfloat cw = src.w;
GLfloat ch = src.h;
GLfloat dcx = cx / textureSize;
GLfloat dcy = cy / textureSize;
GLfloat dcw = (cx + cw) / textureSize;
GLfloat dch = (cy + ch) / textureSize;
glBegin(GL_QUADS);
glTexCoord2f(dcx, dcy); glVertex2f(x, y);
glTexCoord2f(dcw, dcy); glVertex2f(x + cw + (w - cw), y);
glTexCoord2f(dcw, dch); glVertex2f(x + cw + (w - cw), y + ch + (h - ch));
glTexCoord2f(dcx, dch); glVertex2f(x, y + ch + (h - ch));
glEnd();
} | O3 | cpp | SDL::DrawTexture(SDL::Rect2f const&, SDL::Rect2f const&, unsigned long):
subq $0x78, %rsp
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq %rdx, 0x60(%rsp)
movq 0x70(%rsp), %rax
movss (%rax), %xmm0
movss %xmm0, 0x5c(%rsp)
movq 0x70(%rsp), %rax
movss 0x4(%rax), %xmm0
movss %xmm0, 0x58(%rsp)
movq 0x70(%rsp), %rax
movss 0x8(%rax), %xmm0
movss %xmm0, 0x54(%rsp)
movq 0x70(%rsp), %rax
movss 0xc(%rax), %xmm0
movss %xmm0, 0x50(%rsp)
movq 0x68(%rsp), %rax
movss (%rax), %xmm0
movss %xmm0, 0x4c(%rsp)
movq 0x68(%rsp), %rax
movss 0x4(%rax), %xmm0
movss %xmm0, 0x48(%rsp)
movq 0x68(%rsp), %rax
movss 0x8(%rax), %xmm0
movss %xmm0, 0x44(%rsp)
movq 0x68(%rsp), %rax
movss 0xc(%rax), %xmm0
movss %xmm0, 0x40(%rsp)
movss 0x4c(%rsp), %xmm0
movss %xmm0, 0x24(%rsp)
movq 0x60(%rsp), %rax
movq %rax, %rdx
shrq %rdx
movl %eax, %ecx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
cvtsi2ss %rax, %xmm1
movss %xmm1, 0x28(%rsp)
testq %rax, %rax
movss %xmm0, 0x2c(%rsp)
js 0x22c1b
movss 0x28(%rsp), %xmm0
movss %xmm0, 0x2c(%rsp)
movss 0x24(%rsp), %xmm0
movss 0x2c(%rsp), %xmm1
divss %xmm1, %xmm0
movss %xmm0, 0x3c(%rsp)
movss 0x48(%rsp), %xmm0
movss %xmm0, 0x18(%rsp)
movq 0x60(%rsp), %rax
movq %rax, %rdx
shrq %rdx
movl %eax, %ecx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
cvtsi2ss %rax, %xmm1
movss %xmm1, 0x1c(%rsp)
testq %rax, %rax
movss %xmm0, 0x20(%rsp)
js 0x22c7b
movss 0x1c(%rsp), %xmm0
movss %xmm0, 0x20(%rsp)
movss 0x18(%rsp), %xmm0
movss 0x20(%rsp), %xmm1
divss %xmm1, %xmm0
movss %xmm0, 0x38(%rsp)
movss 0x4c(%rsp), %xmm0
movss 0x44(%rsp), %xmm1
addss %xmm1, %xmm0
movss %xmm0, 0xc(%rsp)
movq 0x60(%rsp), %rax
movq %rax, %rdx
shrq %rdx
movl %eax, %ecx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
cvtsi2ss %rax, %xmm1
movss %xmm1, 0x10(%rsp)
testq %rax, %rax
movss %xmm0, 0x14(%rsp)
js 0x22ce5
movss 0x10(%rsp), %xmm0
movss %xmm0, 0x14(%rsp)
movss 0xc(%rsp), %xmm0
movss 0x14(%rsp), %xmm1
divss %xmm1, %xmm0
movss %xmm0, 0x34(%rsp)
movss 0x48(%rsp), %xmm0
movss 0x40(%rsp), %xmm1
addss %xmm1, %xmm0
movss %xmm0, (%rsp)
movq 0x60(%rsp), %rax
movq %rax, %rdx
shrq %rdx
movl %eax, %ecx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
cvtsi2ss %rax, %xmm1
movss %xmm1, 0x4(%rsp)
testq %rax, %rax
movss %xmm0, 0x8(%rsp)
js 0x22d4e
movss 0x4(%rsp), %xmm0
movss %xmm0, 0x8(%rsp)
movss (%rsp), %xmm0
movss 0x8(%rsp), %xmm1
divss %xmm1, %xmm0
movss %xmm0, 0x30(%rsp)
movl $0x7, %edi
movq 0x1f439(%rip), %rax # 0x421a8
callq *(%rax)
movq 0x1f8c0(%rip), %rax # 0x42638
movq (%rax), %rax
movss 0x3c(%rsp), %xmm0
movss 0x38(%rsp), %xmm1
callq *%rax
movq 0x20500(%rip), %rax # 0x43290
movq (%rax), %rax
movss 0x5c(%rsp), %xmm0
movss 0x58(%rsp), %xmm1
callq *%rax
movq 0x1f890(%rip), %rax # 0x42638
movq (%rax), %rax
movss 0x34(%rsp), %xmm0
movss 0x38(%rsp), %xmm1
callq *%rax
movq 0x204d0(%rip), %rax # 0x43290
movq (%rax), %rax
movss 0x5c(%rsp), %xmm0
addss 0x44(%rsp), %xmm0
movss 0x54(%rsp), %xmm1
subss 0x44(%rsp), %xmm1
addss %xmm1, %xmm0
movss 0x58(%rsp), %xmm1
callq *%rax
movq 0x1f84a(%rip), %rax # 0x42638
movq (%rax), %rax
movss 0x34(%rsp), %xmm0
movss 0x30(%rsp), %xmm1
callq *%rax
movq 0x2048a(%rip), %rax # 0x43290
movq (%rax), %rax
movss 0x5c(%rsp), %xmm0
addss 0x44(%rsp), %xmm0
movss 0x54(%rsp), %xmm1
subss 0x44(%rsp), %xmm1
addss %xmm1, %xmm0
movss 0x58(%rsp), %xmm1
addss 0x40(%rsp), %xmm1
movss 0x50(%rsp), %xmm2
subss 0x40(%rsp), %xmm2
addss %xmm2, %xmm1
callq *%rax
movq 0x1f7ee(%rip), %rax # 0x42638
movq (%rax), %rax
movss 0x3c(%rsp), %xmm0
movss 0x30(%rsp), %xmm1
callq *%rax
movq 0x2042e(%rip), %rax # 0x43290
movq (%rax), %rax
movss 0x5c(%rsp), %xmm0
movss 0x58(%rsp), %xmm1
addss 0x40(%rsp), %xmm1
movss 0x50(%rsp), %xmm2
subss 0x40(%rsp), %xmm2
addss %xmm2, %xmm1
callq *%rax
movq 0x205d0(%rip), %rax # 0x43460
callq *(%rax)
addq $0x78, %rsp
retq
nopw (%rax,%rax)
| _ZN3SDL11DrawTextureERKNS_6Rect2fES2_m:
sub rsp, 78h
mov [rsp+78h+var_8], rdi
mov [rsp+78h+var_10], rsi
mov [rsp+78h+var_18], rdx
mov rax, [rsp+78h+var_8]
movss xmm0, dword ptr [rax]
movss [rsp+78h+var_1C], xmm0
mov rax, [rsp+78h+var_8]
movss xmm0, dword ptr [rax+4]
movss [rsp+78h+var_20], xmm0
mov rax, [rsp+78h+var_8]
movss xmm0, dword ptr [rax+8]
movss [rsp+78h+var_24], xmm0
mov rax, [rsp+78h+var_8]
movss xmm0, dword ptr [rax+0Ch]
movss [rsp+78h+var_28], xmm0
mov rax, [rsp+78h+var_10]
movss xmm0, dword ptr [rax]
movss [rsp+78h+var_2C], xmm0
mov rax, [rsp+78h+var_10]
movss xmm0, dword ptr [rax+4]
movss [rsp+78h+var_30], xmm0
mov rax, [rsp+78h+var_10]
movss xmm0, dword ptr [rax+8]
movss [rsp+78h+var_34], xmm0
mov rax, [rsp+78h+var_10]
movss xmm0, dword ptr [rax+0Ch]
movss [rsp+78h+var_38], xmm0
movss xmm0, [rsp+78h+var_2C]
movss [rsp+78h+var_54], xmm0
mov rax, [rsp+78h+var_18]
mov rdx, rax
shr rdx, 1
mov ecx, eax
and ecx, 1
or rcx, rdx
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
cvtsi2ss xmm1, rax
movss [rsp+78h+var_50], xmm1
test rax, rax
movss [rsp+78h+var_4C], xmm0
js short loc_22C1B
movss xmm0, [rsp+78h+var_50]
movss [rsp+78h+var_4C], xmm0
loc_22C1B:
movss xmm0, [rsp+78h+var_54]
movss xmm1, [rsp+78h+var_4C]
divss xmm0, xmm1
movss [rsp+78h+var_3C], xmm0
movss xmm0, [rsp+78h+var_30]
movss [rsp+78h+var_60], xmm0
mov rax, [rsp+78h+var_18]
mov rdx, rax
shr rdx, 1
mov ecx, eax
and ecx, 1
or rcx, rdx
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
cvtsi2ss xmm1, rax
movss [rsp+78h+var_5C], xmm1
test rax, rax
movss [rsp+78h+var_58], xmm0
js short loc_22C7B
movss xmm0, [rsp+78h+var_5C]
movss [rsp+78h+var_58], xmm0
loc_22C7B:
movss xmm0, [rsp+78h+var_60]
movss xmm1, [rsp+78h+var_58]
divss xmm0, xmm1
movss [rsp+78h+var_40], xmm0
movss xmm0, [rsp+78h+var_2C]
movss xmm1, [rsp+78h+var_34]
addss xmm0, xmm1
movss [rsp+78h+var_6C], xmm0
mov rax, [rsp+78h+var_18]
mov rdx, rax
shr rdx, 1
mov ecx, eax
and ecx, 1
or rcx, rdx
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
cvtsi2ss xmm1, rax
movss [rsp+78h+var_68], xmm1
test rax, rax
movss [rsp+78h+var_64], xmm0
js short loc_22CE5
movss xmm0, [rsp+78h+var_68]
movss [rsp+78h+var_64], xmm0
loc_22CE5:
movss xmm0, [rsp+78h+var_6C]
movss xmm1, [rsp+78h+var_64]
divss xmm0, xmm1
movss [rsp+78h+var_44], xmm0
movss xmm0, [rsp+78h+var_30]
movss xmm1, [rsp+78h+var_38]
addss xmm0, xmm1
movss [rsp+78h+var_78], xmm0
mov rax, [rsp+78h+var_18]
mov rdx, rax
shr rdx, 1
mov ecx, eax
and ecx, 1
or rcx, rdx
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
cvtsi2ss xmm1, rax
movss [rsp+78h+var_74], xmm1
test rax, rax
movss [rsp+78h+var_70], xmm0
js short loc_22D4E
movss xmm0, [rsp+78h+var_74]
movss [rsp+78h+var_70], xmm0
loc_22D4E:
movss xmm0, [rsp+78h+var_78]
movss xmm1, [rsp+78h+var_70]
divss xmm0, xmm1
movss [rsp+78h+var_48], xmm0
mov edi, 7
mov rax, cs:glBegin_ptr
call qword ptr [rax]
mov rax, cs:glTexCoord2f_ptr
mov rax, [rax]
movss xmm0, [rsp+78h+var_3C]
movss xmm1, [rsp+78h+var_40]
call rax
mov rax, cs:glVertex2f_ptr
mov rax, [rax]
movss xmm0, [rsp+78h+var_1C]
movss xmm1, [rsp+78h+var_20]
call rax
mov rax, cs:glTexCoord2f_ptr
mov rax, [rax]
movss xmm0, [rsp+78h+var_44]
movss xmm1, [rsp+78h+var_40]
call rax
mov rax, cs:glVertex2f_ptr
mov rax, [rax]
movss xmm0, [rsp+78h+var_1C]
addss xmm0, [rsp+78h+var_34]
movss xmm1, [rsp+78h+var_24]
subss xmm1, [rsp+78h+var_34]
addss xmm0, xmm1
movss xmm1, [rsp+78h+var_20]
call rax
mov rax, cs:glTexCoord2f_ptr
mov rax, [rax]
movss xmm0, [rsp+78h+var_44]
movss xmm1, [rsp+78h+var_48]
call rax
mov rax, cs:glVertex2f_ptr
mov rax, [rax]
movss xmm0, [rsp+78h+var_1C]
addss xmm0, [rsp+78h+var_34]
movss xmm1, [rsp+78h+var_24]
subss xmm1, [rsp+78h+var_34]
addss xmm0, xmm1
movss xmm1, [rsp+78h+var_20]
addss xmm1, [rsp+78h+var_38]
movss xmm2, [rsp+78h+var_28]
subss xmm2, [rsp+78h+var_38]
addss xmm1, xmm2
call rax
mov rax, cs:glTexCoord2f_ptr
mov rax, [rax]
movss xmm0, [rsp+78h+var_3C]
movss xmm1, [rsp+78h+var_48]
call rax
mov rax, cs:glVertex2f_ptr
mov rax, [rax]
movss xmm0, [rsp+78h+var_1C]
movss xmm1, [rsp+78h+var_20]
addss xmm1, [rsp+78h+var_38]
movss xmm2, [rsp+78h+var_28]
subss xmm2, [rsp+78h+var_38]
addss xmm1, xmm2
call rax
mov rax, cs:glEnd_ptr
call qword ptr [rax]
add rsp, 78h
retn
| long long SDL::DrawTexture(SDL *this, const SDL::Rect2f *a2, long long a3)
{
float v4; // [rsp+0h] [rbp-78h]
float v5; // [rsp+8h] [rbp-70h]
float v6; // [rsp+14h] [rbp-64h]
float v7; // [rsp+20h] [rbp-58h]
float v8; // [rsp+2Ch] [rbp-4Ch]
float v9; // [rsp+34h] [rbp-44h]
float v10; // [rsp+38h] [rbp-40h]
float v11; // [rsp+3Ch] [rbp-3Ch]
float v12; // [rsp+40h] [rbp-38h]
float v13; // [rsp+44h] [rbp-34h]
float v14; // [rsp+48h] [rbp-30h]
float v15; // [rsp+50h] [rbp-28h]
float v16; // [rsp+54h] [rbp-24h]
float v17; // [rsp+58h] [rbp-20h]
float v18; // [rsp+5Ch] [rbp-1Ch]
v18 = *(float *)this;
v17 = *((float *)this + 1);
v16 = *((float *)this + 2);
v15 = *((float *)this + 3);
v14 = *((float *)a2 + 1);
v13 = *((float *)a2 + 2);
v12 = *((float *)a2 + 3);
v8 = (float)(int)(((unsigned long long)a3 >> 1) | a3 & 1) + (float)(int)(((unsigned long long)a3 >> 1) | a3 & 1);
if ( a3 >= 0 )
v8 = (float)(int)a3;
v11 = *(float *)a2 / v8;
v7 = (float)(int)(((unsigned long long)a3 >> 1) | a3 & 1) + (float)(int)(((unsigned long long)a3 >> 1) | a3 & 1);
if ( a3 >= 0 )
v7 = (float)(int)a3;
v10 = v14 / v7;
v6 = (float)(int)(((unsigned long long)a3 >> 1) | a3 & 1) + (float)(int)(((unsigned long long)a3 >> 1) | a3 & 1);
if ( a3 >= 0 )
v6 = (float)(int)a3;
v9 = (float)(*(float *)a2 + v13) / v6;
v4 = v14 + v12;
v5 = (float)(int)(((unsigned long long)a3 >> 1) | a3 & 1) + (float)(int)(((unsigned long long)a3 >> 1) | a3 & 1);
if ( a3 >= 0 )
v5 = (float)(int)a3;
glBegin(7LL);
glTexCoord2f(v11, v10);
glVertex2f(v18, v17);
glTexCoord2f(v9, v10);
glVertex2f((float)(v18 + v13) + (float)(v16 - v13), v17);
glTexCoord2f(v9, v4 / v5);
glVertex2f((float)(v18 + v13) + (float)(v16 - v13), (float)(v17 + v12) + (float)(v15 - v12));
glTexCoord2f(v11, v4 / v5);
glVertex2f(v18, (float)(v17 + v12) + (float)(v15 - v12));
return glEnd();
}
| DrawTexture:
SUB RSP,0x78
MOV qword ptr [RSP + 0x70],RDI
MOV qword ptr [RSP + 0x68],RSI
MOV qword ptr [RSP + 0x60],RDX
MOV RAX,qword ptr [RSP + 0x70]
MOVSS XMM0,dword ptr [RAX]
MOVSS dword ptr [RSP + 0x5c],XMM0
MOV RAX,qword ptr [RSP + 0x70]
MOVSS XMM0,dword ptr [RAX + 0x4]
MOVSS dword ptr [RSP + 0x58],XMM0
MOV RAX,qword ptr [RSP + 0x70]
MOVSS XMM0,dword ptr [RAX + 0x8]
MOVSS dword ptr [RSP + 0x54],XMM0
MOV RAX,qword ptr [RSP + 0x70]
MOVSS XMM0,dword ptr [RAX + 0xc]
MOVSS dword ptr [RSP + 0x50],XMM0
MOV RAX,qword ptr [RSP + 0x68]
MOVSS XMM0,dword ptr [RAX]
MOVSS dword ptr [RSP + 0x4c],XMM0
MOV RAX,qword ptr [RSP + 0x68]
MOVSS XMM0,dword ptr [RAX + 0x4]
MOVSS dword ptr [RSP + 0x48],XMM0
MOV RAX,qword ptr [RSP + 0x68]
MOVSS XMM0,dword ptr [RAX + 0x8]
MOVSS dword ptr [RSP + 0x44],XMM0
MOV RAX,qword ptr [RSP + 0x68]
MOVSS XMM0,dword ptr [RAX + 0xc]
MOVSS dword ptr [RSP + 0x40],XMM0
MOVSS XMM0,dword ptr [RSP + 0x4c]
MOVSS dword ptr [RSP + 0x24],XMM0
MOV RAX,qword ptr [RSP + 0x60]
MOV RDX,RAX
SHR RDX,0x1
MOV ECX,EAX
AND ECX,0x1
OR RCX,RDX
CVTSI2SS XMM0,RCX
ADDSS XMM0,XMM0
CVTSI2SS XMM1,RAX
MOVSS dword ptr [RSP + 0x28],XMM1
TEST RAX,RAX
MOVSS dword ptr [RSP + 0x2c],XMM0
JS 0x00122c1b
MOVSS XMM0,dword ptr [RSP + 0x28]
MOVSS dword ptr [RSP + 0x2c],XMM0
LAB_00122c1b:
MOVSS XMM0,dword ptr [RSP + 0x24]
MOVSS XMM1,dword ptr [RSP + 0x2c]
DIVSS XMM0,XMM1
MOVSS dword ptr [RSP + 0x3c],XMM0
MOVSS XMM0,dword ptr [RSP + 0x48]
MOVSS dword ptr [RSP + 0x18],XMM0
MOV RAX,qword ptr [RSP + 0x60]
MOV RDX,RAX
SHR RDX,0x1
MOV ECX,EAX
AND ECX,0x1
OR RCX,RDX
CVTSI2SS XMM0,RCX
ADDSS XMM0,XMM0
CVTSI2SS XMM1,RAX
MOVSS dword ptr [RSP + 0x1c],XMM1
TEST RAX,RAX
MOVSS dword ptr [RSP + 0x20],XMM0
JS 0x00122c7b
MOVSS XMM0,dword ptr [RSP + 0x1c]
MOVSS dword ptr [RSP + 0x20],XMM0
LAB_00122c7b:
MOVSS XMM0,dword ptr [RSP + 0x18]
MOVSS XMM1,dword ptr [RSP + 0x20]
DIVSS XMM0,XMM1
MOVSS dword ptr [RSP + 0x38],XMM0
MOVSS XMM0,dword ptr [RSP + 0x4c]
MOVSS XMM1,dword ptr [RSP + 0x44]
ADDSS XMM0,XMM1
MOVSS dword ptr [RSP + 0xc],XMM0
MOV RAX,qword ptr [RSP + 0x60]
MOV RDX,RAX
SHR RDX,0x1
MOV ECX,EAX
AND ECX,0x1
OR RCX,RDX
CVTSI2SS XMM0,RCX
ADDSS XMM0,XMM0
CVTSI2SS XMM1,RAX
MOVSS dword ptr [RSP + 0x10],XMM1
TEST RAX,RAX
MOVSS dword ptr [RSP + 0x14],XMM0
JS 0x00122ce5
MOVSS XMM0,dword ptr [RSP + 0x10]
MOVSS dword ptr [RSP + 0x14],XMM0
LAB_00122ce5:
MOVSS XMM0,dword ptr [RSP + 0xc]
MOVSS XMM1,dword ptr [RSP + 0x14]
DIVSS XMM0,XMM1
MOVSS dword ptr [RSP + 0x34],XMM0
MOVSS XMM0,dword ptr [RSP + 0x48]
MOVSS XMM1,dword ptr [RSP + 0x40]
ADDSS XMM0,XMM1
MOVSS dword ptr [RSP],XMM0
MOV RAX,qword ptr [RSP + 0x60]
MOV RDX,RAX
SHR RDX,0x1
MOV ECX,EAX
AND ECX,0x1
OR RCX,RDX
CVTSI2SS XMM0,RCX
ADDSS XMM0,XMM0
CVTSI2SS XMM1,RAX
MOVSS dword ptr [RSP + 0x4],XMM1
TEST RAX,RAX
MOVSS dword ptr [RSP + 0x8],XMM0
JS 0x00122d4e
MOVSS XMM0,dword ptr [RSP + 0x4]
MOVSS dword ptr [RSP + 0x8],XMM0
LAB_00122d4e:
MOVSS XMM0,dword ptr [RSP]
MOVSS XMM1,dword ptr [RSP + 0x8]
DIVSS XMM0,XMM1
MOVSS dword ptr [RSP + 0x30],XMM0
MOV EDI,0x7
MOV RAX,qword ptr [0x001421a8]
CALL qword ptr [RAX]
MOV RAX,qword ptr [0x00142638]
MOV RAX,qword ptr [RAX]
MOVSS XMM0,dword ptr [RSP + 0x3c]
MOVSS XMM1,dword ptr [RSP + 0x38]
CALL RAX
MOV RAX,qword ptr [0x00143290]
MOV RAX,qword ptr [RAX]
MOVSS XMM0,dword ptr [RSP + 0x5c]
MOVSS XMM1,dword ptr [RSP + 0x58]
CALL RAX
MOV RAX,qword ptr [0x00142638]
MOV RAX,qword ptr [RAX]
MOVSS XMM0,dword ptr [RSP + 0x34]
MOVSS XMM1,dword ptr [RSP + 0x38]
CALL RAX
MOV RAX,qword ptr [0x00143290]
MOV RAX,qword ptr [RAX]
MOVSS XMM0,dword ptr [RSP + 0x5c]
ADDSS XMM0,dword ptr [RSP + 0x44]
MOVSS XMM1,dword ptr [RSP + 0x54]
SUBSS XMM1,dword ptr [RSP + 0x44]
ADDSS XMM0,XMM1
MOVSS XMM1,dword ptr [RSP + 0x58]
CALL RAX
MOV RAX,qword ptr [0x00142638]
MOV RAX,qword ptr [RAX]
MOVSS XMM0,dword ptr [RSP + 0x34]
MOVSS XMM1,dword ptr [RSP + 0x30]
CALL RAX
MOV RAX,qword ptr [0x00143290]
MOV RAX,qword ptr [RAX]
MOVSS XMM0,dword ptr [RSP + 0x5c]
ADDSS XMM0,dword ptr [RSP + 0x44]
MOVSS XMM1,dword ptr [RSP + 0x54]
SUBSS XMM1,dword ptr [RSP + 0x44]
ADDSS XMM0,XMM1
MOVSS XMM1,dword ptr [RSP + 0x58]
ADDSS XMM1,dword ptr [RSP + 0x40]
MOVSS XMM2,dword ptr [RSP + 0x50]
SUBSS XMM2,dword ptr [RSP + 0x40]
ADDSS XMM1,XMM2
CALL RAX
MOV RAX,qword ptr [0x00142638]
MOV RAX,qword ptr [RAX]
MOVSS XMM0,dword ptr [RSP + 0x3c]
MOVSS XMM1,dword ptr [RSP + 0x30]
CALL RAX
MOV RAX,qword ptr [0x00143290]
MOV RAX,qword ptr [RAX]
MOVSS XMM0,dword ptr [RSP + 0x5c]
MOVSS XMM1,dword ptr [RSP + 0x58]
ADDSS XMM1,dword ptr [RSP + 0x40]
MOVSS XMM2,dword ptr [RSP + 0x50]
SUBSS XMM2,dword ptr [RSP + 0x40]
ADDSS XMM1,XMM2
CALL RAX
MOV RAX,qword ptr [0x00143460]
CALL qword ptr [RAX]
ADD RSP,0x78
RET
|
/* SDL::DrawTexture(SDL::Rect2f const&, SDL::Rect2f const&, unsigned long) */
void SDL::DrawTexture(Rect2f *param_1,Rect2f *param_2,ulong param_3)
{
float fVar1;
float fVar2;
float fVar3;
float fVar4;
float fVar5;
float fVar6;
float local_70;
float local_64;
float local_58;
float local_4c;
fVar1 = *(float *)param_1;
fVar2 = *(float *)(param_1 + 4);
fVar3 = *(float *)(param_1 + 8);
fVar4 = *(float *)(param_1 + 0xc);
fVar5 = *(float *)(param_2 + 8);
fVar6 = *(float *)(param_2 + 0xc);
local_4c = (float)param_3;
local_4c = *(float *)param_2 / local_4c;
local_58 = (float)param_3;
local_58 = *(float *)(param_2 + 4) / local_58;
local_64 = (float)param_3;
local_64 = (*(float *)param_2 + fVar5) / local_64;
local_70 = (float)param_3;
local_70 = (*(float *)(param_2 + 4) + fVar6) / local_70;
(**(code **)PTR_glBegin_001421a8)(7);
(**(code **)PTR_glTexCoord2f_00142638)(local_4c,local_58);
(**(code **)PTR_glVertex2f_00143290)(fVar1,fVar2);
(**(code **)PTR_glTexCoord2f_00142638)(local_64,local_58);
(**(code **)PTR_glVertex2f_00143290)(fVar1 + fVar5 + (fVar3 - fVar5),fVar2);
(**(code **)PTR_glTexCoord2f_00142638)(local_64,local_70);
(**(code **)PTR_glVertex2f_00143290)
(fVar1 + fVar5 + (fVar3 - fVar5),fVar2 + fVar6 + (fVar4 - fVar6));
(**(code **)PTR_glTexCoord2f_00142638)(local_4c,local_70);
(**(code **)PTR_glVertex2f_00143290)(fVar1,fVar2 + fVar6 + (fVar4 - fVar6));
(**(code **)PTR_glEnd_00143460)();
return;
}
| |
28,250 | family_id& family_id::set<unsigned int>(unsigned int&) | msxemulator/build_O0/_deps/picotool-src/main.cpp | family_id &set(T &t) {
string nm = "<" + name() + ">";
// note we cannot capture "this"
on_action([&t, nm](string value) {
auto ovalue = value;
if (value == data_family_name) {
t = DATA_FAMILY_ID;
} else if (value == absolute_family_name) {
t = ABSOLUTE_FAMILY_ID;
} else if (value == rp2040_family_name) {
t = RP2040_FAMILY_ID;
} else if (value == rp2350_arm_s_family_name) {
t = RP2350_ARM_S_FAMILY_ID;
} else if (value == rp2350_arm_ns_family_name) {
t = RP2350_ARM_NS_FAMILY_ID;
} else if (value == rp2350_riscv_family_name) {
t = RP2350_RISCV_FAMILY_ID;
} else {
if (value.find("0x") == 0) {
value = value.substr(2);
size_t pos = 0;
long lvalue = std::numeric_limits<long>::max();
try {
lvalue = std::stoul(value, &pos, 16);
if (pos != value.length()) {
return "Garbage after hex value: " + value.substr(pos);
}
} catch (std::invalid_argument &) {
return ovalue + " is not a valid hex value";
} catch (std::out_of_range &) {
}
if (lvalue != (unsigned int) lvalue) {
return value + " is not a valid 32 bit value";
}
t = (unsigned int) lvalue;
} else {
return value + " is not a valid family ID";
}
}
return string("");
});
return *this;
} | O0 | cpp | family_id& family_id::set<unsigned int>(unsigned int&):
subq $0xd8, %rsp
movq %rdi, 0xd0(%rsp)
movq %rsi, 0xc8(%rsp)
movq 0xd0(%rsp), %rsi
movq %rsi, (%rsp)
leaq 0x68(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x579a0
movq 0x8(%rsp), %rdx
leaq 0x10c7ca(%rip), %rsi # 0x16f858
leaq 0x88(%rsp), %rdi
callq 0x57380
jmp 0x6309d
leaq 0x10e78f(%rip), %rdx # 0x171833
leaq 0xa8(%rsp), %rdi
leaq 0x88(%rsp), %rsi
callq 0x57950
jmp 0x630bb
leaq 0x88(%rsp), %rdi
callq 0xfb10
leaq 0x68(%rsp), %rdi
callq 0xfb10
movq 0xc8(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x18(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0xf2b0
jmp 0x630f3
leaq 0x38(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0xb1f30
jmp 0x63104
movq (%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0xb1f00
jmp 0x63114
leaq 0x38(%rsp), %rdi
callq 0x9fb50
leaq 0x10(%rsp), %rdi
callq 0xb1fe0
leaq 0xa8(%rsp), %rdi
callq 0xfb10
movq (%rsp), %rax
addq $0xd8, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
jmp 0x6316c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
leaq 0x88(%rsp), %rdi
callq 0xfb10
leaq 0x68(%rsp), %rdi
callq 0xfb10
jmp 0x631c7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
jmp 0x631ba
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
jmp 0x631b0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x60(%rsp)
movl %eax, 0x5c(%rsp)
leaq 0x38(%rsp), %rdi
callq 0x9fb50
leaq 0x10(%rsp), %rdi
callq 0xb1fe0
leaq 0xa8(%rsp), %rdi
callq 0xfb10
movq 0x60(%rsp), %rdi
callq 0xf9e0
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
| _ZN9family_id3setIjEERS_RT_:
sub rsp, 0D8h
mov [rsp+0D8h+var_8], rdi
mov [rsp+0D8h+var_10], rsi
mov rsi, [rsp+0D8h+var_8]
mov [rsp+0D8h+var_D8], rsi
lea rdi, [rsp+0D8h+var_70]
mov [rsp+0D8h+var_D0], rdi
call _ZNK3cli9matchable4nameB5cxx11Ev; cli::matchable::name(void)
mov rdx, [rsp+0D8h+var_D0]
lea rsi, aMissing+8; "<"
lea rdi, [rsp+0D8h+var_50]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEPKS5_OS8_; std::operator+<char>(char const*,std::string&&)
jmp short $+2
loc_6309D:
lea rdx, asc_171832+1; ">"
lea rdi, [rsp+0D8h+var_30]
lea rsi, [rsp+0D8h+var_50]
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_PKS5_; std::operator+<char>(std::string&&,char const*)
jmp short $+2
loc_630BB:
lea rdi, [rsp+0D8h+var_50]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
lea rdi, [rsp+0D8h+var_70]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rax, [rsp+0D8h+var_10]
mov [rsp+0D8h+var_C8], rax
lea rdi, [rsp+0D8h+var_C0]
lea rsi, [rsp+0D8h+var_30]
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1ERKS4_; std::string::basic_string(std::string const&)
jmp short $+2
loc_630F3:
lea rdi, [rsp+0D8h+var_A0]
lea rsi, [rsp+0D8h+var_C8]
call _ZNSt8functionIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS5_EEC2IZN9family_id3setIjEERSB_RT_EUlS5_E_vEEOSE_; std::function<std::string ()(std::string const&)>::function<family_id::set<uint>(uint &)::{lambda(std::string)#1},void>(uint&&)
jmp short $+2
loc_63104:
mov rdi, [rsp+0D8h+var_D8]
lea rsi, [rsp+0D8h+var_A0]
call _ZN3cli17matchable_derivedI9family_idE9on_actionESt8functionIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS9_EE; cli::matchable_derived<family_id>::on_action(std::function<std::string ()(std::string const&)>)
jmp short $+2
loc_63114:
lea rdi, [rsp+0D8h+var_A0]
call _ZNSt8functionIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS5_EED2Ev; std::function<std::string ()(std::string const&)>::~function()
lea rdi, [rsp+0D8h+var_C8]
call _ZZN9family_id3setIjEERS_RT_ENUlNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE_D2Ev; family_id::set<uint>(uint &)::{lambda(std::string)#1}::~basic_string()
lea rdi, [rsp+0D8h+var_30]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rax, [rsp+0D8h+var_D8]
add rsp, 0D8h
retn
mov rcx, rax
mov eax, edx
mov [rsp+arg_58], rcx
mov [rsp+arg_54], eax
jmp short loc_6316C
mov rcx, rax
mov eax, edx
mov [rsp+arg_58], rcx
mov [rsp+arg_54], eax
lea rdi, [rsp+arg_80]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_6316C:
lea rdi, [rsp+arg_60]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
jmp short loc_631C7
mov rcx, rax
mov eax, edx
mov [rsp+arg_58], rcx
mov [rsp+arg_54], eax
jmp short loc_631BA
mov rcx, rax
mov eax, edx
mov [rsp+arg_58], rcx
mov [rsp+arg_54], eax
jmp short loc_631B0
mov rcx, rax
mov eax, edx
mov [rsp+arg_58], rcx
mov [rsp+arg_54], eax
lea rdi, [rsp+arg_30]
call _ZNSt8functionIFNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKS5_EED2Ev; std::function<std::string ()(std::string const&)>::~function()
loc_631B0:
lea rdi, [rsp+arg_8]
call _ZZN9family_id3setIjEERS_RT_ENUlNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE_D2Ev; family_id::set<uint>(uint &)::{lambda(std::string)#1}::~basic_string()
loc_631BA:
lea rdi, [rsp+arg_A0]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
loc_631C7:
mov rdi, [rsp+arg_58]
call __Unwind_Resume
| long long family_id::set<unsigned int>(long long a1, long long a2)
{
int v2; // edx
int v3; // ecx
int v4; // r8d
int v5; // r9d
long long v7; // [rsp+0h] [rbp-D8h]
long long v8; // [rsp+10h] [rbp-C8h] BYREF
_BYTE v9[32]; // [rsp+18h] [rbp-C0h] BYREF
_BYTE v10[48]; // [rsp+38h] [rbp-A0h] BYREF
_BYTE v11[32]; // [rsp+68h] [rbp-70h] BYREF
_BYTE v12[32]; // [rsp+88h] [rbp-50h] BYREF
_BYTE v13[32]; // [rsp+A8h] [rbp-30h] BYREF
long long v14; // [rsp+C8h] [rbp-10h]
long long v15; // [rsp+D0h] [rbp-8h]
v15 = a1;
v14 = a2;
cli::matchable::name[abi:cxx11]((long long)v11, a1);
std::operator+<char>((long long)v12, (long long)"<", (long long)v11);
std::operator+<char>((long long)v13, (long long)v12, (long long)">");
std::string::~string(v12);
std::string::~string(v11);
v8 = v14;
std::string::basic_string(v9, v13);
std::function<std::string ()(std::string const&)>::function<family_id& family_id::set<unsigned int>(unsigned int &)::{lambda(std::string)#1},void>(
(unsigned int)v10,
(unsigned int)&v8,
v2,
v3,
v4,
v5,
a1,
(long long)v11);
cli::matchable_derived<family_id>::on_action(v7, v10);
std::function<std::string ()(std::string const&)>::~function(v10);
family_id::set<unsigned int>(unsigned int &)::{lambda(std::string)#1}::~basic_string(&v8);
std::string::~string(v13);
return v7;
}
| set<unsigned_int>:
SUB RSP,0xd8
MOV qword ptr [RSP + 0xd0],RDI
MOV qword ptr [RSP + 0xc8],RSI
MOV RSI,qword ptr [RSP + 0xd0]
MOV qword ptr [RSP],RSI
LEA RDI,[RSP + 0x68]
MOV qword ptr [RSP + 0x8],RDI
CALL 0x001579a0
MOV RDX,qword ptr [RSP + 0x8]
LAB_00163087:
LEA RSI,[0x26f858]
LEA RDI,[RSP + 0x88]
CALL 0x00157380
JMP 0x0016309d
LAB_0016309d:
LEA RDX,[0x271833]
LEA RDI,[RSP + 0xa8]
LEA RSI,[RSP + 0x88]
CALL 0x00157950
JMP 0x001630bb
LAB_001630bb:
LEA RDI,[RSP + 0x88]
CALL 0x0010fb10
LEA RDI,[RSP + 0x68]
CALL 0x0010fb10
MOV RAX,qword ptr [RSP + 0xc8]
MOV qword ptr [RSP + 0x10],RAX
LEA RDI,[RSP + 0x18]
LAB_001630e4:
LEA RSI,[RSP + 0xa8]
CALL 0x0010f2b0
JMP 0x001630f3
LAB_001630f3:
LEA RDI,[RSP + 0x38]
LEA RSI,[RSP + 0x10]
CALL 0x001b1f30
JMP 0x00163104
LAB_00163104:
MOV RDI,qword ptr [RSP]
LEA RSI,[RSP + 0x38]
CALL 0x001b1f00
LAB_00163112:
JMP 0x00163114
LAB_00163114:
LEA RDI,[RSP + 0x38]
CALL 0x0019fb50
LEA RDI,[RSP + 0x10]
CALL 0x001b1fe0
LEA RDI,[RSP + 0xa8]
CALL 0x0010fb10
MOV RAX,qword ptr [RSP]
ADD RSP,0xd8
RET
|
/* family_id& family_id::set<unsigned int>(unsigned int&) */
family_id * __thiscall family_id::set<unsigned_int>(family_id *this,uint *param_1)
{
uint *local_c8;
string local_c0 [32];
function<std::__cxx11::string(std::__cxx11::string_const&)> local_a0 [48];
string local_70 [32];
string local_50 [32];
string local_30 [32];
uint *local_10;
family_id *local_8;
local_10 = param_1;
local_8 = this;
cli::matchable::name_abi_cxx11_();
/* try { // try from 00163087 to 0016309a has its CatchHandler @ 00163141 */
std::operator+((char *)local_50,(string *)0x26f858);
/* try { // try from 0016309d to 001630b8 has its CatchHandler @ 00163151 */
std::operator+(local_30,(char *)local_50);
std::__cxx11::string::~string(local_50);
std::__cxx11::string::~string(local_70);
local_c8 = local_10;
/* try { // try from 001630e4 to 001630f0 has its CatchHandler @ 00163178 */
std::__cxx11::string::string(local_c0,local_30);
/* try { // try from 001630f3 to 00163101 has its CatchHandler @ 00163188 */
std::function<std::__cxx11::string(std::__cxx11::string_const&)>::
function<family_id::set<unsigned_int>(unsigned_int&)::_lambda(std::__cxx11::string)_1_,void>
(local_a0,(uint *)&local_c8);
/* try { // try from 00163104 to 00163111 has its CatchHandler @ 00163198 */
cli::matchable_derived<family_id>::on_action((matchable_derived<family_id> *)this,local_a0);
std::function<std::__cxx11::string(std::__cxx11::string_const&)>::~function(local_a0);
set<unsigned_int>(unsigned_int&)::{lambda(std::__cxx11::string)#1}::~basic_string
((_lambda_std____cxx11__string__1_ *)&local_c8);
std::__cxx11::string::~string(local_30);
return this;
}
| |
28,251 | JS_ConcatString3 | bluesky950520[P]quickjs/quickjs.c | static JSValue JS_ConcatString3(JSContext *ctx, const char *str1,
JSValue str2, const char *str3)
{
StringBuffer b_s, *b = &b_s;
int len1, len3;
JSString *p;
if (unlikely(JS_VALUE_GET_TAG(str2) != JS_TAG_STRING)) {
str2 = JS_ToStringFree(ctx, str2);
if (JS_IsException(str2))
goto fail;
}
p = JS_VALUE_GET_STRING(str2);
len1 = strlen(str1);
len3 = strlen(str3);
if (string_buffer_init2(ctx, b, len1 + p->len + len3, p->is_wide_char))
goto fail;
string_buffer_write8(b, (const uint8_t *)str1, len1);
string_buffer_concat(b, p, 0, p->len);
string_buffer_write8(b, (const uint8_t *)str3, len3);
JS_FreeValue(ctx, str2);
return string_buffer_end(b);
fail:
JS_FreeValue(ctx, str2);
return JS_EXCEPTION;
} | O0 | c | JS_ConcatString3:
subq $0x88, %rsp
movq %rdx, 0x68(%rsp)
movq %rcx, 0x70(%rsp)
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq %r8, 0x50(%rsp)
leaq 0x30(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x70(%rsp), %rax
cmpl $-0x7, %eax
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
andb $0x1, %al
movzbl %al, %eax
cltq
cmpq $0x0, %rax
je 0x6e743
movq 0x60(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
callq 0x4f3b0
movq %rax, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x68(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x22a00
cmpl $0x0, %eax
je 0x6e741
jmp 0x6e821
jmp 0x6e743
movq 0x68(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x58(%rsp), %rdi
callq 0xe240
movl %eax, 0x24(%rsp)
movq 0x50(%rsp), %rdi
callq 0xe240
movl %eax, 0x20(%rsp)
movq 0x60(%rsp), %rdi
movq 0x28(%rsp), %rsi
movl 0x24(%rsp), %edx
movq 0x18(%rsp), %rax
movq 0x4(%rax), %rax
andq $0x7fffffff, %rax # imm = 0x7FFFFFFF
addl %eax, %edx
addl 0x20(%rsp), %edx
movq 0x18(%rsp), %rax
movq 0x4(%rax), %rax
shrq $0x1f, %rax
andq $0x1, %rax
movzbl %al, %ecx
callq 0x4c6f0
cmpl $0x0, %eax
je 0x6e7ac
jmp 0x6e821
movq 0x28(%rsp), %rdi
movq 0x58(%rsp), %rsi
movl 0x24(%rsp), %edx
callq 0x6e860
movq 0x28(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x18(%rsp), %rax
movq 0x4(%rax), %rax
andq $0x7fffffff, %rax # imm = 0x7FFFFFFF
movl %eax, %ecx
xorl %edx, %edx
callq 0x6e970
movq 0x28(%rsp), %rdi
movq 0x50(%rsp), %rsi
movl 0x20(%rsp), %edx
callq 0x6e860
movq 0x60(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
callq 0x229d0
movq 0x28(%rsp), %rdi
callq 0x4c840
movq %rax, 0x78(%rsp)
movq %rdx, 0x80(%rsp)
jmp 0x6e849
movq 0x60(%rsp), %rdi
movq 0x68(%rsp), %rsi
movq 0x70(%rsp), %rdx
callq 0x229d0
movl $0x0, 0x78(%rsp)
movq $0x6, 0x80(%rsp)
movq 0x78(%rsp), %rax
movq 0x80(%rsp), %rdx
addq $0x88, %rsp
retq
nop
| JS_ConcatString3:
sub rsp, 88h
mov [rsp+88h+var_20], rdx
mov [rsp+88h+var_18], rcx
mov [rsp+88h+var_28], rdi
mov [rsp+88h+var_30], rsi
mov [rsp+88h+var_38], r8
lea rax, [rsp+88h+var_58]
mov [rsp+88h+var_60], rax
mov rax, [rsp+88h+var_18]
cmp eax, 0FFFFFFF9h
setnz al
xor al, 0FFh
xor al, 0FFh
and al, 1
movzx eax, al
cdqe
cmp rax, 0
jz short loc_6E743
mov rdi, [rsp+88h+var_28]
mov rsi, [rsp+88h+var_20]
mov rdx, [rsp+88h+var_18]
call JS_ToStringFree
mov [rsp+88h+var_80], rax
mov [rsp+88h+var_78], rdx
mov rax, [rsp+88h+var_80]
mov [rsp+88h+var_20], rax
mov rax, [rsp+88h+var_78]
mov [rsp+88h+var_18], rax
mov rdi, [rsp+88h+var_20]
mov rsi, [rsp+88h+var_18]
call JS_IsException_1
cmp eax, 0
jz short loc_6E741
jmp loc_6E821
loc_6E741:
jmp short $+2
loc_6E743:
mov rax, [rsp+88h+var_20]
mov [rsp+88h+var_70], rax
mov rdi, [rsp+88h+var_30]
call _strlen
mov [rsp+88h+var_64], eax
mov rdi, [rsp+88h+var_38]
call _strlen
mov [rsp+88h+var_68], eax
mov rdi, [rsp+88h+var_28]
mov rsi, [rsp+88h+var_60]
mov edx, [rsp+88h+var_64]
mov rax, [rsp+88h+var_70]
mov rax, [rax+4]
and rax, 7FFFFFFFh
add edx, eax
add edx, [rsp+88h+var_68]
mov rax, [rsp+88h+var_70]
mov rax, [rax+4]
shr rax, 1Fh
and rax, 1
movzx ecx, al
call string_buffer_init2
cmp eax, 0
jz short loc_6E7AC
jmp short loc_6E821
loc_6E7AC:
mov rdi, [rsp+88h+var_60]
mov rsi, [rsp+88h+var_30]
mov edx, [rsp+88h+var_64]
call string_buffer_write8
mov rdi, [rsp+88h+var_60]
mov rsi, [rsp+88h+var_70]
mov rax, [rsp+88h+var_70]
mov rax, [rax+4]
and rax, 7FFFFFFFh
mov ecx, eax
xor edx, edx
call string_buffer_concat
mov rdi, [rsp+88h+var_60]
mov rsi, [rsp+88h+var_38]
mov edx, [rsp+88h+var_68]
call string_buffer_write8
mov rdi, [rsp+88h+var_28]
mov rsi, [rsp+88h+var_20]
mov rdx, [rsp+88h+var_18]
call JS_FreeValue
mov rdi, [rsp+88h+var_60]
call string_buffer_end
mov [rsp+88h+var_10], rax
mov [rsp+88h+var_8], rdx
jmp short loc_6E849
loc_6E821:
mov rdi, [rsp+88h+var_28]
mov rsi, [rsp+88h+var_20]
mov rdx, [rsp+88h+var_18]
call JS_FreeValue
mov dword ptr [rsp+88h+var_10], 0
mov [rsp+88h+var_8], 6
loc_6E849:
mov rax, [rsp+88h+var_10]
mov rdx, [rsp+88h+var_8]
add rsp, 88h
retn
| long long JS_ConcatString3(long long a1, long long a2, long long a3, long long a4, long long a5, long long a6)
{
long long v6; // rdx
long long v7; // rdx
long long v9; // [rsp+18h] [rbp-70h]
unsigned int v10; // [rsp+20h] [rbp-68h]
unsigned int v11; // [rsp+24h] [rbp-64h]
_BYTE v12[32]; // [rsp+30h] [rbp-58h] BYREF
long long v13; // [rsp+50h] [rbp-38h]
long long v14; // [rsp+58h] [rbp-30h]
long long v15; // [rsp+60h] [rbp-28h]
long long v16; // [rsp+68h] [rbp-20h]
long long v17; // [rsp+70h] [rbp-18h]
long long v18; // [rsp+78h] [rbp-10h]
long long v19; // [rsp+80h] [rbp-8h]
v16 = a3;
v17 = a4;
v15 = a1;
v14 = a2;
v13 = a5;
if ( (_DWORD)a4 != -7 && (v16 = JS_ToStringFree(v15, v16, v17, a4, a5, a6), v17 = v6, JS_IsException_1(v16, v6))
|| (v9 = v16,
v11 = strlen(v14),
v10 = strlen(v13),
(unsigned int)string_buffer_init2(
v15,
(long long)v12,
v10 + (*(_QWORD *)(v9 + 4) & 0x7FFFFFFF) + v11,
(*(_QWORD *)(v9 + 4) & 0x80000000LL) != 0)) )
{
JS_FreeValue(v15, v16, v17);
LODWORD(v18) = 0;
v19 = 6LL;
}
else
{
string_buffer_write8(v12, v14, v11);
string_buffer_concat(v12, v9, 0LL, *(_DWORD *)(v9 + 4) & 0x7FFFFFFF);
string_buffer_write8(v12, v13, v10);
JS_FreeValue(v15, v16, v17);
v18 = string_buffer_end((long long)v12);
v19 = v7;
}
return v18;
}
| JS_ConcatString3:
SUB RSP,0x88
MOV qword ptr [RSP + 0x68],RDX
MOV qword ptr [RSP + 0x70],RCX
MOV qword ptr [RSP + 0x60],RDI
MOV qword ptr [RSP + 0x58],RSI
MOV qword ptr [RSP + 0x50],R8
LEA RAX,[RSP + 0x30]
MOV qword ptr [RSP + 0x28],RAX
MOV RAX,qword ptr [RSP + 0x70]
CMP EAX,-0x7
SETNZ AL
XOR AL,0xff
XOR AL,0xff
AND AL,0x1
MOVZX EAX,AL
CDQE
CMP RAX,0x0
JZ 0x0016e743
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
CALL 0x0014f3b0
MOV qword ptr [RSP + 0x8],RAX
MOV qword ptr [RSP + 0x10],RDX
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RSP + 0x68],RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RSP + 0x70],RAX
MOV RDI,qword ptr [RSP + 0x68]
MOV RSI,qword ptr [RSP + 0x70]
CALL 0x00122a00
CMP EAX,0x0
JZ 0x0016e741
JMP 0x0016e821
LAB_0016e741:
JMP 0x0016e743
LAB_0016e743:
MOV RAX,qword ptr [RSP + 0x68]
MOV qword ptr [RSP + 0x18],RAX
MOV RDI,qword ptr [RSP + 0x58]
CALL 0x0010e240
MOV dword ptr [RSP + 0x24],EAX
MOV RDI,qword ptr [RSP + 0x50]
CALL 0x0010e240
MOV dword ptr [RSP + 0x20],EAX
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x28]
MOV EDX,dword ptr [RSP + 0x24]
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x4]
AND RAX,0x7fffffff
ADD EDX,EAX
ADD EDX,dword ptr [RSP + 0x20]
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x4]
SHR RAX,0x1f
AND RAX,0x1
MOVZX ECX,AL
CALL 0x0014c6f0
CMP EAX,0x0
JZ 0x0016e7ac
JMP 0x0016e821
LAB_0016e7ac:
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x58]
MOV EDX,dword ptr [RSP + 0x24]
CALL 0x0016e860
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RAX + 0x4]
AND RAX,0x7fffffff
MOV ECX,EAX
XOR EDX,EDX
CALL 0x0016e970
MOV RDI,qword ptr [RSP + 0x28]
MOV RSI,qword ptr [RSP + 0x50]
MOV EDX,dword ptr [RSP + 0x20]
CALL 0x0016e860
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
CALL 0x001229d0
MOV RDI,qword ptr [RSP + 0x28]
CALL 0x0014c840
MOV qword ptr [RSP + 0x78],RAX
MOV qword ptr [RSP + 0x80],RDX
JMP 0x0016e849
LAB_0016e821:
MOV RDI,qword ptr [RSP + 0x60]
MOV RSI,qword ptr [RSP + 0x68]
MOV RDX,qword ptr [RSP + 0x70]
CALL 0x001229d0
MOV dword ptr [RSP + 0x78],0x0
MOV qword ptr [RSP + 0x80],0x6
LAB_0016e849:
MOV RAX,qword ptr [RSP + 0x78]
MOV RDX,qword ptr [RSP + 0x80]
ADD RSP,0x88
RET
|
int1 [16]
JS_ConcatString3(int8 param_1,char *param_2,int8 param_3,int8 param_4,
char *param_5)
{
int8 uVar1;
int iVar2;
size_t sVar3;
size_t sVar4;
int1 auVar5 [16];
int1 local_58 [32];
char *local_38;
char *local_30;
int8 local_28;
int1 local_20 [16];
int4 local_10;
int4 uStack_c;
int8 local_8;
local_20._8_8_ = param_4;
local_20._0_8_ = param_3;
local_38 = param_5;
local_30 = param_2;
local_28 = param_1;
if ((int)param_4 == -7) {
LAB_0016e743:
uVar1 = local_20._0_8_;
sVar3 = strlen(local_30);
sVar4 = strlen(local_38);
iVar2 = string_buffer_init2(local_28,local_58,
(int)sVar3 + ((uint)*(int8 *)(uVar1 + 4) & 0x7fffffff) +
(int)sVar4,(byte)(*(ulong *)(uVar1 + 4) >> 0x1f) & 1);
if (iVar2 == 0) {
string_buffer_write8(local_58,local_30,sVar3 & 0xffffffff);
string_buffer_concat(local_58,uVar1,0,(uint)*(int8 *)(uVar1 + 4) & 0x7fffffff);
string_buffer_write8(local_58,local_38,sVar4 & 0xffffffff);
JS_FreeValue(local_28,local_20._0_8_,local_20._8_8_);
auVar5 = string_buffer_end(local_58);
local_8 = auVar5._8_8_;
local_10 = auVar5._0_4_;
uStack_c = auVar5._4_4_;
goto LAB_0016e849;
}
}
else {
local_20 = JS_ToStringFree(param_1,param_3,param_4);
iVar2 = JS_IsException(local_20._0_8_,local_20._8_8_);
if (iVar2 == 0) goto LAB_0016e743;
}
JS_FreeValue(local_28,local_20._0_8_,local_20._8_8_);
local_10 = 0;
local_8 = 6;
LAB_0016e849:
auVar5._4_4_ = uStack_c;
auVar5._0_4_ = local_10;
auVar5._8_8_ = local_8;
return auVar5;
}
| |
28,252 | JS_ConcatString3 | bluesky950520[P]quickjs/quickjs.c | static JSValue JS_ConcatString3(JSContext *ctx, const char *str1,
JSValue str2, const char *str3)
{
StringBuffer b_s, *b = &b_s;
int len1, len3;
JSString *p;
if (unlikely(JS_VALUE_GET_TAG(str2) != JS_TAG_STRING)) {
str2 = JS_ToStringFree(ctx, str2);
if (JS_IsException(str2))
goto fail;
}
p = JS_VALUE_GET_STRING(str2);
len1 = strlen(str1);
len3 = strlen(str3);
if (string_buffer_init2(ctx, b, len1 + p->len + len3, p->is_wide_char))
goto fail;
string_buffer_write8(b, (const uint8_t *)str1, len1);
string_buffer_concat(b, p, 0, p->len);
string_buffer_write8(b, (const uint8_t *)str3, len3);
JS_FreeValue(ctx, str2);
return string_buffer_end(b);
fail:
JS_FreeValue(ctx, str2);
return JS_EXCEPTION;
} | O1 | c | JS_ConcatString3:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %r12
movq %rcx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movq %rdx, (%rsp)
cmpl $-0x7, %r15d
jne 0x413da
movq (%rsp), %r13
movq %rbx, %rdi
callq 0xe240
movq %rbx, 0x30(%rsp)
movq %rax, %rbx
movq %r12, %rdi
callq 0xe240
movq %rax, %rbp
movl 0x4(%r13), %edx
movl %edx, %esi
andl $0x7fffffff, %esi # imm = 0x7FFFFFFF
addl %ebx, %eax
addl %eax, %esi
shrl $0x1f, %edx
movq %r14, 0x8(%rsp)
movl %esi, 0x1c(%rsp)
xorl %eax, %eax
movl %eax, 0x18(%rsp)
movl %edx, 0x20(%rsp)
movl %eax, 0x24(%rsp)
movq %r14, %rdi
callq 0x1ff5f
movq %rax, 0x10(%rsp)
testq %rax, %rax
je 0x413fb
movq %r15, 0x28(%rsp)
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq 0x30(%rsp), %rsi
movl %ebx, %edx
callq 0x41424
movl $0x7fffffff, %ecx # imm = 0x7FFFFFFF
andl 0x4(%r13), %ecx
movq %r15, %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x414a5
movq %r15, %rdi
movq %r12, %rsi
movl %ebp, %edx
callq 0x41424
movq (%rsp), %rsi
movq 0x18(%r14), %rdi
movq 0x28(%rsp), %rdx
callq 0x1ccb2
movq %r15, %rdi
callq 0x32830
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rdi
movq %rdx, %rsi
movq %r15, %rdx
callq 0x33970
movq %rdx, %r15
movq %rax, (%rsp)
cmpl $0x6, %r15d
jne 0x41316
jmp 0x4140b
movl $0x0, 0x1c(%rsp)
movl $0xffffffff, 0x24(%rsp) # imm = 0xFFFFFFFF
movq (%rsp), %rsi
movq 0x18(%r14), %rdi
movq %r15, %rdx
callq 0x1ccb2
movl $0x6, %edx
xorl %eax, %eax
jmp 0x413cb
| JS_ConcatString3:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r12, r8
mov r15, rcx
mov rbx, rsi
mov r14, rdi
mov [rsp+68h+var_68], rdx
cmp r15d, 0FFFFFFF9h
jnz loc_413DA
loc_41316:
mov r13, [rsp+68h+var_68]
mov rdi, rbx
call _strlen
mov [rsp+68h+var_38], rbx
mov rbx, rax
mov rdi, r12
call _strlen
mov rbp, rax
mov edx, [r13+4]
mov esi, edx
and esi, 7FFFFFFFh
add eax, ebx
add esi, eax
shr edx, 1Fh
mov [rsp+68h+var_60], r14
mov [rsp+68h+var_4C], esi
xor eax, eax
mov [rsp+68h+var_50], eax
mov [rsp+68h+var_48], edx
mov [rsp+68h+var_44], eax
mov rdi, r14
call js_alloc_string
mov [rsp+68h+var_58], rax
test rax, rax
jz loc_413FB
mov [rsp+68h+var_40], r15
lea r15, [rsp+68h+var_60]
mov rdi, r15
mov rsi, [rsp+68h+var_38]
mov edx, ebx
call string_buffer_write8
mov ecx, 7FFFFFFFh
and ecx, [r13+4]
mov rdi, r15
mov rsi, r13
xor edx, edx
call string_buffer_concat
mov rdi, r15
mov rsi, r12
mov edx, ebp
call string_buffer_write8
mov rsi, [rsp+68h+var_68]
mov rdi, [r14+18h]
mov rdx, [rsp+68h+var_40]
call JS_FreeValueRT
mov rdi, r15
call string_buffer_end
loc_413CB:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_413DA:
mov rdi, r14
mov rsi, rdx
mov rdx, r15
call JS_ToStringFree
mov r15, rdx
mov [rsp+68h+var_68], rax
cmp r15d, 6
jnz loc_41316
jmp short loc_4140B
loc_413FB:
mov [rsp+68h+var_4C], 0
mov [rsp+68h+var_44], 0FFFFFFFFh
loc_4140B:
mov rsi, [rsp+68h+var_68]
mov rdi, [r14+18h]
mov rdx, r15
call JS_FreeValueRT
mov edx, 6
xor eax, eax
jmp short loc_413CB
| _DWORD * JS_ConcatString3(
long long a1,
long long a2,
_DWORD *a3,
long long a4,
long long a5,
long long a6,
__m128 a7,
__m128 a8,
__m128 a9,
__m128 a10,
__m128 a11,
__m128 a12,
__m128 a13,
__m128 a14)
{
long long v15; // r15
unsigned int v16; // ebx
unsigned int v17; // ebp
long long v18; // rsi
unsigned int v19; // edx
unsigned long long v21; // rax
long long v22; // rdx
_DWORD *v23; // [rsp+0h] [rbp-68h]
long long v24; // [rsp+8h] [rbp-60h] BYREF
int v26; // [rsp+18h] [rbp-50h]
int v27; // [rsp+1Ch] [rbp-4Ch]
unsigned int v28; // [rsp+20h] [rbp-48h]
int v29; // [rsp+24h] [rbp-44h]
long long v30; // [rsp+28h] [rbp-40h]
long long v31; // [rsp+30h] [rbp-38h]
v15 = a4;
v23 = a3;
if ( (_DWORD)a4 == -7
|| (v21 = JS_ToStringFree(a1, a3, a4, a7, a8, a9, a10, a11, a12, a13, a14, a4, a5, a6),
v15 = v22,
v23 = (_DWORD *)v21,
(_DWORD)v22 != 6) )
{
v31 = a2;
v16 = strlen(a2);
v17 = strlen(a5);
v18 = v16 + v17 + (v23[1] & 0x7FFFFFFF);
v19 = v23[1] >> 31;
v24 = a1;
v27 = v18;
v26 = 0;
v28 = v19;
v29 = 0;
if ( js_alloc_string(a1, v18, v19) )
{
v30 = v15;
string_buffer_write8(&v24, v31, v16);
string_buffer_concat(&v24, v23, 0LL, v23[1] & 0x7FFFFFFF);
string_buffer_write8(&v24, a5, v17);
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v23, v30);
return string_buffer_end((long long)&v24);
}
v27 = 0;
v29 = -1;
}
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v23, v15);
return 0LL;
}
| JS_ConcatString3:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R12,R8
MOV R15,RCX
MOV RBX,RSI
MOV R14,RDI
MOV qword ptr [RSP],RDX
CMP R15D,-0x7
JNZ 0x001413da
LAB_00141316:
MOV R13,qword ptr [RSP]
MOV RDI,RBX
CALL 0x0010e240
MOV qword ptr [RSP + 0x30],RBX
MOV RBX,RAX
MOV RDI,R12
CALL 0x0010e240
MOV RBP,RAX
MOV EDX,dword ptr [R13 + 0x4]
MOV ESI,EDX
AND ESI,0x7fffffff
ADD EAX,EBX
ADD ESI,EAX
SHR EDX,0x1f
MOV qword ptr [RSP + 0x8],R14
MOV dword ptr [RSP + 0x1c],ESI
XOR EAX,EAX
MOV dword ptr [RSP + 0x18],EAX
MOV dword ptr [RSP + 0x20],EDX
MOV dword ptr [RSP + 0x24],EAX
MOV RDI,R14
CALL 0x0011ff5f
MOV qword ptr [RSP + 0x10],RAX
TEST RAX,RAX
JZ 0x001413fb
MOV qword ptr [RSP + 0x28],R15
LEA R15,[RSP + 0x8]
MOV RDI,R15
MOV RSI,qword ptr [RSP + 0x30]
MOV EDX,EBX
CALL 0x00141424
MOV ECX,0x7fffffff
AND ECX,dword ptr [R13 + 0x4]
MOV RDI,R15
MOV RSI,R13
XOR EDX,EDX
CALL 0x001414a5
MOV RDI,R15
MOV RSI,R12
MOV EDX,EBP
CALL 0x00141424
MOV RSI,qword ptr [RSP]
MOV RDI,qword ptr [R14 + 0x18]
MOV RDX,qword ptr [RSP + 0x28]
CALL 0x0011ccb2
MOV RDI,R15
CALL 0x00132830
LAB_001413cb:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001413da:
MOV RDI,R14
MOV RSI,RDX
MOV RDX,R15
CALL 0x00133970
MOV R15,RDX
MOV qword ptr [RSP],RAX
CMP R15D,0x6
JNZ 0x00141316
JMP 0x0014140b
LAB_001413fb:
MOV dword ptr [RSP + 0x1c],0x0
MOV dword ptr [RSP + 0x24],0xffffffff
LAB_0014140b:
MOV RSI,qword ptr [RSP]
MOV RDI,qword ptr [R14 + 0x18]
MOV RDX,R15
CALL 0x0011ccb2
MOV EDX,0x6
XOR EAX,EAX
JMP 0x001413cb
|
int8
JS_ConcatString3(long param_1,char *param_2,int8 param_3,int8 param_4,char *param_5)
{
size_t sVar1;
size_t sVar2;
int8 uVar3;
int1 auVar4 [16];
long local_68;
long local_60;
long local_58;
int4 local_50;
int local_4c;
uint local_48;
int4 local_44;
int8 local_40;
char *local_38;
auVar4._8_8_ = param_4;
auVar4._0_8_ = param_3;
if (((int)param_4 == -7) || (auVar4 = JS_ToStringFree(param_1,param_3,param_4), auVar4._8_4_ != 6)
) {
local_68 = auVar4._0_8_;
sVar1 = strlen(param_2);
local_38 = param_2;
sVar2 = strlen(param_5);
local_4c = (*(uint *)(local_68 + 4) & 0x7fffffff) + (int)sVar2 + (int)sVar1;
local_48 = *(uint *)(local_68 + 4) >> 0x1f;
local_50 = 0;
local_44 = 0;
local_60 = param_1;
local_58 = js_alloc_string(param_1);
if (local_58 != 0) {
local_40 = auVar4._8_8_;
string_buffer_write8(&local_60,local_38,sVar1 & 0xffffffff);
string_buffer_concat(&local_60,local_68,0,*(uint *)(local_68 + 4) & 0x7fffffff);
string_buffer_write8(&local_60,param_5,sVar2 & 0xffffffff);
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),local_68,local_40);
uVar3 = string_buffer_end(&local_60);
return uVar3;
}
local_4c = 0;
local_44 = 0xffffffff;
local_58 = 0;
}
local_68 = auVar4._0_8_;
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),local_68,auVar4._8_8_);
return 0;
}
| |
28,253 | JS_ConcatString3 | bluesky950520[P]quickjs/quickjs.c | static JSValue JS_ConcatString3(JSContext *ctx, const char *str1,
JSValue str2, const char *str3)
{
StringBuffer b_s, *b = &b_s;
int len1, len3;
JSString *p;
if (unlikely(JS_VALUE_GET_TAG(str2) != JS_TAG_STRING)) {
str2 = JS_ToStringFree(ctx, str2);
if (JS_IsException(str2))
goto fail;
}
p = JS_VALUE_GET_STRING(str2);
len1 = strlen(str1);
len3 = strlen(str3);
if (string_buffer_init2(ctx, b, len1 + p->len + len3, p->is_wide_char))
goto fail;
string_buffer_write8(b, (const uint8_t *)str1, len1);
string_buffer_concat(b, p, 0, p->len);
string_buffer_write8(b, (const uint8_t *)str3, len3);
JS_FreeValue(ctx, str2);
return string_buffer_end(b);
fail:
JS_FreeValue(ctx, str2);
return JS_EXCEPTION;
} | O3 | c | JS_ConcatString3:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r8, %r12
movq %rdx, %r14
movq %rsi, %r13
movq %rdi, %r15
cmpl $-0x7, %ecx
jne 0x42ea0
movq %rcx, 0x8(%rsp)
movq %r13, %rdi
callq 0xe240
movq %rax, %rbx
movq %r12, %rdi
callq 0xe240
movq %rax, %rbp
movl 0x4(%r14), %edx
movl %edx, %esi
andl $0x7fffffff, %esi # imm = 0x7FFFFFFF
addl %ebx, %eax
addl %eax, %esi
shrl $0x1f, %edx
movq %r15, 0x18(%rsp)
movl %esi, 0x2c(%rsp)
xorl %eax, %eax
movl %eax, 0x28(%rsp)
movl %edx, 0x30(%rsp)
movl %eax, 0x34(%rsp)
movq %r15, %rdi
callq 0x20686
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0x42ebf
movq %r15, 0x10(%rsp)
movq %r12, %r15
leaq 0x18(%rsp), %r12
movq %r12, %rdi
movq %r13, %rsi
movl %ebx, %edx
callq 0x42ef0
movl $0x7fffffff, %ecx # imm = 0x7FFFFFFF
andl 0x4(%r14), %ecx
movq %r12, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x42f71
movq %r12, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x42ef0
movq 0x8(%rsp), %rdx
cmpl $-0x9, %edx
jb 0x42e81
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rdi
movl (%r14), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%r14)
cmpl $0x1, %eax
jg 0x42e81
movq %r14, %rsi
callq 0x20d90
leaq 0x18(%rsp), %rdi
callq 0x33675
movq %rdx, %r12
movq %r12, %rdx
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r15, %rdi
movq %r14, %rsi
movq %rcx, %rdx
callq 0x3479d
movq %rax, %r14
movq %rdx, %rcx
cmpl $0x6, %ecx
jne 0x42dc0
jmp 0x42ec4
movq 0x8(%rsp), %rcx
movl $0x6, %r12d
cmpl $-0x9, %ecx
jb 0x42eec
movq 0x18(%r15), %rdi
movl (%r14), %eax
leal -0x1(%rax), %edx
movl %edx, (%r14)
cmpl $0x1, %eax
jg 0x42eec
movq %r14, %rsi
movq %rcx, %rdx
callq 0x20d90
xorl %eax, %eax
jmp 0x42e8e
| JS_ConcatString3:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov r12, r8
mov r14, rdx
mov r13, rsi
mov r15, rdi
cmp ecx, 0FFFFFFF9h
jnz loc_42EA0
loc_42DC0:
mov [rsp+68h+var_60], rcx
mov rdi, r13
call _strlen
mov rbx, rax
mov rdi, r12
call _strlen
mov rbp, rax
mov edx, [r14+4]
mov esi, edx
and esi, 7FFFFFFFh
add eax, ebx
add esi, eax
shr edx, 1Fh
mov [rsp+68h+var_50], r15
mov [rsp+68h+var_3C], esi
xor eax, eax
mov [rsp+68h+var_40], eax
mov [rsp+68h+var_38], edx
mov [rsp+68h+var_34], eax
mov rdi, r15
call js_alloc_string
mov [rsp+68h+var_48], rax
test rax, rax
jz loc_42EBF
mov [rsp+68h+var_58], r15
mov r15, r12
lea r12, [rsp+68h+var_50]
mov rdi, r12
mov rsi, r13
mov edx, ebx
call string_buffer_write8
mov ecx, 7FFFFFFFh
and ecx, [r14+4]
mov rdi, r12
mov rsi, r14
xor edx, edx
call string_buffer_concat
mov rdi, r12
mov rsi, r15
mov edx, ebp
call string_buffer_write8
mov rdx, [rsp+68h+var_60]
cmp edx, 0FFFFFFF7h
jb short loc_42E81
mov rax, [rsp+68h+var_58]
mov rdi, [rax+18h]
mov eax, [r14]
lea ecx, [rax-1]
mov [r14], ecx
cmp eax, 1
jg short loc_42E81
mov rsi, r14
call js_free_value_rt
loc_42E81:
lea rdi, [rsp+68h+var_50]
call string_buffer_end
mov r12, rdx
loc_42E8E:
mov rdx, r12
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_42EA0:
mov rdi, r15
mov rsi, r14
mov rdx, rcx
call JS_ToStringFree
mov r14, rax
mov rcx, rdx
cmp ecx, 6
jnz loc_42DC0
jmp short loc_42EC4
loc_42EBF:
mov rcx, [rsp+68h+var_60]
loc_42EC4:
mov r12d, 6
cmp ecx, 0FFFFFFF7h
jb short loc_42EEC
mov rdi, [r15+18h]
mov eax, [r14]
lea edx, [rax-1]
mov [r14], edx
cmp eax, 1
jg short loc_42EEC
mov rsi, r14
mov rdx, rcx
call js_free_value_rt
loc_42EEC:
xor eax, eax
jmp short loc_42E8E
| long long JS_ConcatString3(
long long a1,
long long a2,
int *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)
{
unsigned long long v15; // r14
unsigned int v17; // ebx
unsigned int v18; // ebp
long long v19; // rsi
unsigned int v20; // edx
long long v21; // r8
long long v22; // r9
long long v23; // r8
long long v24; // r9
long long v25; // rdi
int v26; // eax
long long v27; // rcx
long long v29; // rdx
long long v30; // rdi
int v31; // eax
long long v32; // [rsp+8h] [rbp-60h]
long long v33; // [rsp+18h] [rbp-50h] BYREF
int v35; // [rsp+28h] [rbp-40h]
int v36; // [rsp+2Ch] [rbp-3Ch]
unsigned int v37; // [rsp+30h] [rbp-38h]
int v38; // [rsp+34h] [rbp-34h]
v15 = (unsigned long long)a3;
if ( (_DWORD)a4 != -7 )
{
v15 = JS_ToStringFree(a1, a3, a4, a7, a8, a9, a10, a11, a12, a13, a14, a4, a5, a6);
a4 = v29;
if ( (_DWORD)v29 == 6 )
goto LABEL_10;
}
v32 = a4;
v17 = strlen(a2);
v18 = strlen(a5);
v19 = v17 + v18 + (*(_DWORD *)(v15 + 4) & 0x7FFFFFFF);
v20 = *(_DWORD *)(v15 + 4) >> 31;
v33 = a1;
v36 = v19;
v35 = 0;
v37 = v20;
v38 = 0;
if ( !js_alloc_string(a1, v19, v20) )
{
a4 = v32;
LABEL_10:
if ( (unsigned int)a4 >= 0xFFFFFFF7 )
{
v30 = *(_QWORD *)(a1 + 24);
v31 = (*(_DWORD *)v15)--;
if ( v31 <= 1 )
js_free_value_rt(v30, (_QWORD *)v15, a4, a4, v21, v22);
}
return 0LL;
}
string_buffer_write8(&v33, a2, v17);
string_buffer_concat(&v33, v15, 0LL, *(_DWORD *)(v15 + 4) & 0x7FFFFFFF);
string_buffer_write8(&v33, a5, v18);
if ( (unsigned int)v32 >= 0xFFFFFFF7 )
{
v25 = *(_QWORD *)(a1 + 24);
v26 = *(_DWORD *)v15;
v27 = (unsigned int)(*(_DWORD *)v15 - 1);
*(_DWORD *)v15 = v27;
if ( v26 <= 1 )
js_free_value_rt(v25, (_QWORD *)v15, v32, v27, v23, v24);
}
return string_buffer_end(&v33);
}
| JS_ConcatString3:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV R12,R8
MOV R14,RDX
MOV R13,RSI
MOV R15,RDI
CMP ECX,-0x7
JNZ 0x00142ea0
LAB_00142dc0:
MOV qword ptr [RSP + 0x8],RCX
MOV RDI,R13
CALL 0x0010e240
MOV RBX,RAX
MOV RDI,R12
CALL 0x0010e240
MOV RBP,RAX
MOV EDX,dword ptr [R14 + 0x4]
MOV ESI,EDX
AND ESI,0x7fffffff
ADD EAX,EBX
ADD ESI,EAX
SHR EDX,0x1f
MOV qword ptr [RSP + 0x18],R15
MOV dword ptr [RSP + 0x2c],ESI
XOR EAX,EAX
MOV dword ptr [RSP + 0x28],EAX
MOV dword ptr [RSP + 0x30],EDX
MOV dword ptr [RSP + 0x34],EAX
MOV RDI,R15
CALL 0x00120686
MOV qword ptr [RSP + 0x20],RAX
TEST RAX,RAX
JZ 0x00142ebf
MOV qword ptr [RSP + 0x10],R15
MOV R15,R12
LEA R12,[RSP + 0x18]
MOV RDI,R12
MOV RSI,R13
MOV EDX,EBX
CALL 0x00142ef0
MOV ECX,0x7fffffff
AND ECX,dword ptr [R14 + 0x4]
MOV RDI,R12
MOV RSI,R14
XOR EDX,EDX
CALL 0x00142f71
MOV RDI,R12
MOV RSI,R15
MOV EDX,EBP
CALL 0x00142ef0
MOV RDX,qword ptr [RSP + 0x8]
CMP EDX,-0x9
JC 0x00142e81
MOV RAX,qword ptr [RSP + 0x10]
MOV RDI,qword ptr [RAX + 0x18]
MOV EAX,dword ptr [R14]
LEA ECX,[RAX + -0x1]
MOV dword ptr [R14],ECX
CMP EAX,0x1
JG 0x00142e81
MOV RSI,R14
CALL 0x00120d90
LAB_00142e81:
LEA RDI,[RSP + 0x18]
CALL 0x00133675
MOV R12,RDX
LAB_00142e8e:
MOV RDX,R12
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00142ea0:
MOV RDI,R15
MOV RSI,R14
MOV RDX,RCX
CALL 0x0013479d
MOV R14,RAX
MOV RCX,RDX
CMP ECX,0x6
JNZ 0x00142dc0
JMP 0x00142ec4
LAB_00142ebf:
MOV RCX,qword ptr [RSP + 0x8]
LAB_00142ec4:
MOV R12D,0x6
CMP ECX,-0x9
JC 0x00142eec
MOV RDI,qword ptr [R15 + 0x18]
MOV EAX,dword ptr [R14]
LEA EDX,[RAX + -0x1]
MOV dword ptr [R14],EDX
CMP EAX,0x1
JG 0x00142eec
MOV RSI,R14
MOV RDX,RCX
CALL 0x00120d90
LAB_00142eec:
XOR EAX,EAX
JMP 0x00142e8e
|
int1 [16]
JS_ConcatString3(long param_1,char *param_2,int8 param_3,int8 param_4,char *param_5)
{
int iVar1;
int8 uVar2;
size_t sVar3;
size_t sVar4;
int *piVar5;
int1 auVar6 [16];
long local_50;
long local_48;
int4 local_40;
int local_3c;
uint local_38;
int4 local_34;
auVar6._8_8_ = param_4;
auVar6._0_8_ = param_3;
if (((int)param_4 == -7) || (auVar6 = JS_ToStringFree(param_1,param_3,param_4), auVar6._8_4_ != 6)
) {
piVar5 = auVar6._0_8_;
sVar3 = strlen(param_2);
sVar4 = strlen(param_5);
local_3c = (piVar5[1] & 0x7fffffffU) + (int)sVar4 + (int)sVar3;
local_38 = (uint)piVar5[1] >> 0x1f;
local_40 = 0;
local_34 = 0;
local_50 = param_1;
local_48 = js_alloc_string(param_1);
if (local_48 != 0) {
string_buffer_write8(&local_50,param_2,sVar3 & 0xffffffff);
string_buffer_concat(&local_50,piVar5,0,piVar5[1] & 0x7fffffff);
string_buffer_write8(&local_50,param_5,sVar4 & 0xffffffff);
if (0xfffffff6 < auVar6._8_4_) {
uVar2 = *(int8 *)(param_1 + 0x18);
iVar1 = *piVar5;
*piVar5 = iVar1 + -1;
if (iVar1 < 2) {
js_free_value_rt(uVar2,piVar5);
}
}
auVar6 = string_buffer_end(&local_50);
return auVar6;
}
local_48 = 0;
}
piVar5 = auVar6._0_8_;
if (0xfffffff6 < auVar6._8_4_) {
uVar2 = *(int8 *)(param_1 + 0x18);
iVar1 = *piVar5;
*piVar5 = iVar1 + -1;
if (iVar1 < 2) {
js_free_value_rt(uVar2,piVar5,auVar6._8_8_);
}
}
return ZEXT816(6) << 0x40;
}
| |
28,254 | 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 0x12f805
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x132ea0
movl %eax, -0x34(%rbp)
cmpl $0x0, %eax
jne 0x12f7e5
movq -0x20(%rbp), %rax
addq $0x2, %rax
movq -0x30(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x8(%rbp)
jmp 0x12f838
jmp 0x12f7e7
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 0x12f7b0
cmpq $0x0, -0x28(%rbp)
je 0x12f821
movq -0x20(%rbp), %rax
addq $0x2, %rax
movq -0x30(%rbp), %rcx
subq %rcx, %rax
movq %rax, -0x40(%rbp)
jmp 0x12f830
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_12F7B0:
cmp [rbp+var_28], 0
jz short loc_12F805
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_12F7E5
mov rax, [rbp+var_20]
add rax, 2
mov rcx, [rbp+var_30]
sub rax, rcx
mov [rbp+var_8], rax
jmp short loc_12F838
loc_12F7E5:
jmp short $+2
loc_12F7E7:
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_12F7B0
loc_12F805:
cmp [rbp+var_28], 0
jz short loc_12F821
mov rax, [rbp+var_20]
add rax, 2
mov rcx, [rbp+var_30]
sub rax, rcx
mov [rbp+var_40], rax
jmp short loc_12F830
loc_12F821:
mov rax, [rbp+var_18]
mov rcx, [rbp+var_30]
sub rax, rcx
mov [rbp+var_40], rax
loc_12F830:
mov rax, [rbp+var_40]
mov [rbp+var_8], rax
loc_12F838:
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;
}
| inline_mysql_cond_init:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x20
MOV dword ptr [RBP + -0x4],EDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
LEA RAX,[0x3c0238]
MOV RAX,qword ptr [RAX]
MOV RAX,qword ptr [RAX + 0x60]
MOV EDI,dword ptr [RBP + -0x4]
MOV RSI,qword ptr [RBP + -0x10]
CALL RAX
MOV RCX,RAX
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x30],RCX
MOV RDI,qword ptr [RBP + -0x10]
MOV RSI,qword ptr [RBP + -0x18]
CALL 0x0012a360
ADD RSP,0x20
POP RBP
RET
|
void inline_mysql_cond_init(int4 param_1,pthread_cond_t *param_2,pthread_condattr_t *param_3)
{
longlong lVar1;
lVar1 = (**(code **)(PSI_server + 0x60))(param_1,param_2);
param_2[1].__align = lVar1;
pthread_cond_init(param_2,param_3);
return;
}
| |
28,255 | crypt_data_scheme_locker | eloqsql/storage/maria/ma_crypt.c | static void crypt_data_scheme_locker(struct st_encryption_scheme *scheme,
int unlock)
{
MARIA_CRYPT_DATA *crypt_data = (MARIA_CRYPT_DATA*)scheme;
if (unlock)
mysql_mutex_unlock(&crypt_data->lock);
else
mysql_mutex_lock(&crypt_data->lock);
} | O3 | c | crypt_data_scheme_locker:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
leaq 0x68(%rdi), %rbx
movq 0xa8(%rdi), %rdi
testl %esi, %esi
je 0x66ee9
testq %rdi, %rdi
jne 0x66efc
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x291c0
testq %rdi, %rdi
jne 0x66f0e
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x29200
leaq 0x31f10d(%rip), %rax # 0x386010
movq (%rax), %rax
callq *0x160(%rax)
jmp 0x66edb
leaq 0x739b3(%rip), %rsi # 0xda8c8
movq %rbx, %rdi
movl $0x61, %edx
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x2eb6f
| crypt_data_scheme_locker:
push rbp
mov rbp, rsp
push rbx
push rax
lea rbx, [rdi+68h]
mov rdi, [rdi+0A8h]
test esi, esi
jz short loc_66EE9
test rdi, rdi
jnz short loc_66EFC
loc_66EDB:
mov rdi, rbx
add rsp, 8
pop rbx
pop rbp
jmp _pthread_mutex_unlock
loc_66EE9:
test rdi, rdi
jnz short loc_66F0E
mov rdi, rbx
add rsp, 8
pop rbx
pop rbp
jmp _pthread_mutex_lock
loc_66EFC:
lea rax, PSI_server
mov rax, [rax]
call qword ptr [rax+160h]
jmp short loc_66EDB
loc_66F0E:
lea rsi, aWorkspaceLlm4b_10; "/workspace/llm4binary/github2025/eloqsq"...
mov rdi, rbx
mov edx, 61h ; 'a'
add rsp, 8
pop rbx
pop rbp
jmp psi_mutex_lock
| long long crypt_data_scheme_locker(long long a1, int a2)
{
long long v2; // rbx
long long v3; // rdi
v2 = a1 + 104;
v3 = *(_QWORD *)(a1 + 168);
if ( a2 )
{
if ( v3 )
((void ( *)(long long))PSI_server[44])(v3);
return pthread_mutex_unlock(v2);
}
else if ( v3 )
{
return psi_mutex_lock(v2, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_crypt.c", 0x61u);
}
else
{
return pthread_mutex_lock(v2);
}
}
| crypt_data_scheme_locker:
PUSH RBP
MOV RBP,RSP
PUSH RBX
PUSH RAX
LEA RBX,[RDI + 0x68]
MOV RDI,qword ptr [RDI + 0xa8]
TEST ESI,ESI
JZ 0x00166ee9
TEST RDI,RDI
JNZ 0x00166efc
LAB_00166edb:
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x001291c0
LAB_00166ee9:
TEST RDI,RDI
JNZ 0x00166f0e
MOV RDI,RBX
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x00129200
LAB_00166efc:
LEA RAX,[0x486010]
MOV RAX,qword ptr [RAX]
CALL qword ptr [RAX + 0x160]
JMP 0x00166edb
LAB_00166f0e:
LEA RSI,[0x1da8c8]
MOV RDI,RBX
MOV EDX,0x61
ADD RSP,0x8
POP RBX
POP RBP
JMP 0x0012eb6f
|
void crypt_data_scheme_locker(long param_1,int param_2)
{
pthread_mutex_t *__mutex;
__mutex = (pthread_mutex_t *)(param_1 + 0x68);
if (param_2 != 0) {
if (*(long *)(param_1 + 0xa8) != 0) {
(**(code **)(PSI_server + 0x160))();
}
pthread_mutex_unlock(__mutex);
return;
}
if (*(long *)(param_1 + 0xa8) == 0) {
pthread_mutex_lock(__mutex);
return;
}
psi_mutex_lock(__mutex,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_crypt.c",0x61);
return;
}
| |
28,256 | mi_dpointer | eloqsql/storage/myisam/mi_search.c | void _mi_dpointer(MI_INFO *info, uchar *buff, my_off_t pos)
{
if (!(info->s->options &
(HA_OPTION_PACK_RECORD | HA_OPTION_COMPRESS_RECORD)) &&
pos != HA_OFFSET_ERROR)
pos/=info->s->base.pack_reclength;
switch (info->s->rec_reflength) {
#if SIZEOF_OFF_T > 4
case 8: mi_int8store(buff,pos); break;
case 7: mi_int7store(buff,pos); break;
case 6: mi_int6store(buff,pos); break;
case 5: mi_int5store(buff,pos); break;
#else
case 8: *buff++=0;
/* fall through */
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;
default: abort(); /* Impossible */
}
} | O3 | c | mi_dpointer:
movq %rdx, %rax
movq (%rdi), %rcx
cmpq $-0x1, %rdx
je 0x85418
movq 0x318(%rcx), %rdx
andl $0x5, %edx
jne 0x85418
xorl %edx, %edx
divq 0x148(%rcx)
movl 0x338(%rcx), %ecx
addl $-0x2, %ecx
cmpl $0x6, %ecx
ja 0x854f6
leaq 0x5c733(%rip), %rdx # 0xe1b64
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movb %al, 0x1(%rsi)
shrq $0x8, %rax
jmp 0x854f3
movq %rax, %rcx
shrq $0x20, %rcx
movl %eax, %edx
bswapl %edx
movl %edx, 0x2(%rsi)
movb %cl, 0x1(%rsi)
shrq $0x28, %rax
jmp 0x854f3
movl %eax, %ecx
rolw $0x8, %cx
movw %cx, 0x2(%rsi)
movl %eax, %ecx
shrl $0x10, %ecx
movb %cl, 0x1(%rsi)
jmp 0x854ef
movq %rax, %rcx
shrq $0x20, %rcx
bswapl %eax
movl %eax, 0x1(%rsi)
movq %rcx, %rax
jmp 0x854f3
movl %eax, %ecx
rolw $0x8, %cx
movw %cx, 0x1(%rsi)
shrq $0x10, %rax
jmp 0x854f3
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
jmp 0x854f3
movq %rax, %rcx
shrq $0x20, %rcx
movb %cl, 0x3(%rsi)
movq %rax, %rcx
shrq $0x28, %rcx
movb %cl, 0x2(%rsi)
movq %rax, %rcx
shrq $0x30, %rcx
movb %cl, 0x1(%rsi)
movq %rax, %rcx
shrq $0x38, %rcx
movb %cl, (%rsi)
movb %al, 0x7(%rsi)
movb %ah, 0x6(%rsi)
movl %eax, %ecx
shrl $0x10, %ecx
movb %cl, 0x5(%rsi)
addq $0x4, %rsi
shrq $0x18, %rax
movb %al, (%rsi)
retq
pushq %rbp
movq %rsp, %rbp
callq 0x29610
| _mi_dpointer:
mov rax, rdx
mov rcx, [rdi]
cmp rdx, 0FFFFFFFFFFFFFFFFh
jz short loc_85418
mov rdx, [rcx+318h]
and edx, 5
jnz short loc_85418
xor edx, edx
div qword ptr [rcx+148h]
loc_85418:
mov ecx, [rcx+338h]
add ecx, 0FFFFFFFEh; switch 7 cases
cmp ecx, 6
ja def_85438; jumptable 0000000000085438 default case
lea rdx, jpt_85438
movsxd rcx, ds:(jpt_85438 - 0E1B64h)[rdx+rcx*4]
add rcx, rdx
jmp rcx; switch jump
loc_8543A:
mov [rsi+1], al; jumptable 0000000000085438 case 2
shr rax, 8
jmp loc_854F3
loc_85446:
mov rcx, rax; jumptable 0000000000085438 case 6
shr rcx, 20h
mov edx, eax
bswap edx
mov [rsi+2], edx
mov [rsi+1], cl
shr rax, 28h
jmp loc_854F3
loc_85460:
mov ecx, eax; jumptable 0000000000085438 case 4
rol cx, 8
mov [rsi+2], cx
mov ecx, eax
shr ecx, 10h
mov [rsi+1], cl
jmp short loc_854EF
loc_85474:
mov rcx, rax; jumptable 0000000000085438 case 5
shr rcx, 20h
bswap eax
mov [rsi+1], eax
mov rax, rcx
jmp short loc_854F3
loc_85485:
mov ecx, eax; jumptable 0000000000085438 case 3
rol cx, 8
mov [rsi+1], cx
shr rax, 10h
jmp short loc_854F3
loc_85495:
mov rcx, rax; jumptable 0000000000085438 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
jmp short loc_854F3
loc_854B6:
mov rcx, rax; jumptable 0000000000085438 case 8
shr rcx, 20h
mov [rsi+3], cl
mov rcx, rax
shr rcx, 28h
mov [rsi+2], cl
mov rcx, rax
shr rcx, 30h
mov [rsi+1], cl
mov rcx, rax
shr rcx, 38h
mov [rsi], cl
mov [rsi+7], al
mov [rsi+6], ah
mov ecx, eax
shr ecx, 10h
mov [rsi+5], cl
add rsi, 4
loc_854EF:
shr rax, 18h
loc_854F3:
mov [rsi], al
retn
def_85438:
push rbp; jumptable 0000000000085438 default case
mov rbp, rsp
call _abort
| unsigned long long mi_dpointer(long long *a1, long long a2, long long a3)
{
unsigned long long v3; // rax
long long v4; // rcx
unsigned long long v5; // rtt
unsigned long long result; // rax
v3 = a3;
v4 = *a1;
if ( a3 != -1 )
{
a3 = *(_QWORD *)(v4 + 792) & 5LL;
if ( (*(_QWORD *)(v4 + 792) & 5) == 0 )
{
v5 = v3;
v3 /= *(_QWORD *)(v4 + 328);
a3 = v5 % *(_QWORD *)(v4 + 328);
}
}
switch ( *(_DWORD *)(v4 + 824) )
{
case 2:
*(_BYTE *)(a2 + 1) = v3;
result = v3 >> 8;
goto LABEL_13;
case 3:
*(_WORD *)(a2 + 1) = __ROL2__(v3, 8);
result = v3 >> 16;
goto LABEL_13;
case 4:
*(_WORD *)(a2 + 2) = __ROL2__(v3, 8);
*(_BYTE *)(a2 + 1) = BYTE2(v3);
goto LABEL_12;
case 5:
*(_DWORD *)(a2 + 1) = _byteswap_ulong(v3);
result = HIDWORD(v3);
goto LABEL_13;
case 6:
*(_DWORD *)(a2 + 2) = _byteswap_ulong(v3);
*(_BYTE *)(a2 + 1) = BYTE4(v3);
result = v3 >> 40;
goto LABEL_13;
case 7:
*(_DWORD *)(a2 + 3) = _byteswap_ulong(v3);
*(_BYTE *)(a2 + 2) = BYTE4(v3);
*(_BYTE *)(a2 + 1) = BYTE5(v3);
result = HIWORD(v3);
goto LABEL_13;
case 8:
*(_BYTE *)(a2 + 3) = BYTE4(v3);
*(_BYTE *)(a2 + 2) = BYTE5(v3);
*(_BYTE *)(a2 + 1) = BYTE6(v3);
*(_BYTE *)a2 = HIBYTE(v3);
*(_BYTE *)(a2 + 7) = v3;
*(_BYTE *)(a2 + 6) = BYTE1(v3);
*(_BYTE *)(a2 + 5) = BYTE2(v3);
a2 += 4LL;
LABEL_12:
result = v3 >> 24;
LABEL_13:
*(_BYTE *)a2 = result;
return result;
default:
abort(a1, a2, a3);
}
}
| _mi_dpointer:
MOV RAX,RDX
MOV RCX,qword ptr [RDI]
CMP RDX,-0x1
JZ 0x00185418
MOV RDX,qword ptr [RCX + 0x318]
AND EDX,0x5
JNZ 0x00185418
XOR EDX,EDX
DIV qword ptr [RCX + 0x148]
LAB_00185418:
MOV ECX,dword ptr [RCX + 0x338]
ADD ECX,-0x2
CMP ECX,0x6
JA 0x001854f6
LEA RDX,[0x1e1b64]
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 0x001854f3
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 0x001854f3
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
JMP 0x001854ef
caseD_5:
MOV RCX,RAX
SHR RCX,0x20
BSWAP EAX
MOV dword ptr [RSI + 0x1],EAX
MOV RAX,RCX
JMP 0x001854f3
caseD_3:
MOV ECX,EAX
ROL CX,0x8
MOV word ptr [RSI + 0x1],CX
SHR RAX,0x10
JMP 0x001854f3
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
JMP 0x001854f3
caseD_8:
MOV RCX,RAX
SHR RCX,0x20
MOV byte ptr [RSI + 0x3],CL
MOV RCX,RAX
SHR RCX,0x28
MOV byte ptr [RSI + 0x2],CL
MOV RCX,RAX
SHR RCX,0x30
MOV byte ptr [RSI + 0x1],CL
MOV RCX,RAX
SHR RCX,0x38
MOV byte ptr [RSI],CL
MOV byte ptr [RSI + 0x7],AL
MOV byte ptr [RSI + 0x6],AH
MOV ECX,EAX
SHR ECX,0x10
MOV byte ptr [RSI + 0x5],CL
ADD RSI,0x4
LAB_001854ef:
SHR RAX,0x18
LAB_001854f3:
MOV byte ptr [RSI],AL
RET
default:
PUSH RBP
MOV RBP,RSP
CALL 0x00129610
|
void _mi_dpointer(long *param_1,int1 *param_2,ulong param_3)
{
long lVar1;
ushort uVar2;
int1 uVar3;
int1 uVar4;
int1 uVar6;
int1 uVar8;
int1 uVar5;
uint uVar7;
lVar1 = *param_1;
if ((param_3 != 0xffffffffffffffff) && ((*(ulong *)(lVar1 + 0x318) & 5) == 0)) {
param_3 = param_3 / *(ulong *)(lVar1 + 0x148);
}
uVar7 = (uint)param_3;
uVar6 = (int1)(param_3 >> 8);
uVar8 = (int1)(param_3 >> 0x20);
uVar4 = (int1)(param_3 >> 0x28);
uVar5 = (int1)(param_3 >> 0x30);
uVar3 = (int1)(param_3 >> 0x10);
uVar2 = (ushort)param_3;
switch(*(int4 *)(lVar1 + 0x338)) {
case 2:
param_2[1] = (char)param_3;
break;
case 3:
*(ushort *)(param_2 + 1) = uVar2 << 8 | uVar2 >> 8;
uVar6 = uVar3;
break;
case 4:
*(ushort *)(param_2 + 2) = uVar2 << 8 | uVar2 >> 8;
param_2[1] = uVar3;
goto LAB_001854ef;
case 5:
*(uint *)(param_2 + 1) =
uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18;
uVar6 = uVar8;
break;
case 6:
*(uint *)(param_2 + 2) =
uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18;
param_2[1] = uVar8;
uVar6 = uVar4;
break;
case 7:
*(uint *)(param_2 + 3) =
uVar7 >> 0x18 | (uVar7 & 0xff0000) >> 8 | (uVar7 & 0xff00) << 8 | uVar7 << 0x18;
param_2[2] = uVar8;
param_2[1] = uVar4;
uVar6 = uVar5;
break;
case 8:
param_2[3] = uVar8;
param_2[2] = uVar4;
param_2[1] = uVar5;
*param_2 = (char)(param_3 >> 0x38);
param_2[7] = (char)param_3;
param_2[6] = uVar6;
param_2[5] = uVar3;
param_2 = param_2 + 4;
LAB_001854ef:
uVar6 = (char)(param_3 >> 0x18);
break;
default:
/* WARNING: Subroutine does not return */
abort();
}
*param_2 = uVar6;
return;
}
| |
28,257 | free_small | seiftnesse[P]memoryallocator/src/custom_alloc_small.c | void free_small(void *ptr) {
if (!ptr || ptr < (void *) small_pool ||
ptr >= (void *) (small_pool + SMALL_POOL_SIZE)) {
HEAP_LOG("Invalid pointer for small free: %p\n", ptr);
return;
}
// Calculate block index
size_t offset = (uint8_t *) ptr - small_pool;
int start_block = offset / SMALL_BLOCK_SIZE;
HEAP_LOG("Freeing small allocation: ptr=%p, block=%d\n", ptr, start_block);
// First pass: Count blocks without freeing them
int blocks_to_free = 0;
size_t total_size_freed = 0;
// This loop just counts the blocks that will be freed
for (int i = 0; start_block + i < SMALL_POOL_SIZE / SMALL_BLOCK_SIZE; i++) {
int bmap_idx = (start_block + i) / 32;
int bit_idx = (start_block + i) % 32;
// Check if this block is actually allocated
if (!(small_block_bitmap[bmap_idx] & (1 << bit_idx))) {
break;
}
blocks_to_free++;
total_size_freed += SMALL_BLOCK_SIZE;
}
// Apply zero-on-free according to configured depth
if (zero_on_free_depth > ZERO_DEPTH_NONE && blocks_to_free > 0) {
size_t user_size = blocks_to_free * SMALL_BLOCK_SIZE;
size_t zero_size = 0;
switch (zero_on_free_depth) {
case ZERO_DEPTH_SHALLOW:
// Zero only the first portion (headers/pointers)
zero_size = (shallow_zero_size < user_size) ? shallow_zero_size : user_size;
break;
case ZERO_DEPTH_MEDIUM:
// Zero half the memory
zero_size = user_size / 2;
break;
case ZERO_DEPTH_DEEP:
default:
// Zero all memory (most secure, but slowest)
zero_size = user_size;
break;
}
if (zero_size > 0) {
HEAP_LOG("Zeroing %zu bytes on small free at %p (depth=%d)\n",
zero_size, ptr, zero_on_free_depth);
_memset(ptr, 0, zero_size);
}
}
// Second pass: Now mark the blocks as free in the bitmap
for (int i = 0; i < blocks_to_free; i++) {
int block = start_block + i;
int bmap_idx = block / 32;
int bit_idx = block % 32;
small_block_bitmap[bmap_idx] &= ~(1 << bit_idx);
}
if (blocks_to_free > 0) {
// Update stats - ensure we don't underflow
if (allocation_stats.small_pool_used >= total_size_freed) {
allocation_stats.small_pool_used -= total_size_freed;
} else {
allocation_stats.small_pool_used = 0;
}
update_stats_free(total_size_freed);
HEAP_LOG("Small allocation freed: %d blocks, total size=%zu bytes\n",
blocks_to_free, total_size_freed);
} else {
HEAP_LOG("Warning: No blocks freed from small pool\n");
}
} | O0 | c | free_small:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x1d9c3
leaq 0x89596(%rip), %rax # 0xa6f40
cmpq %rax, -0x8(%rbp)
jb 0x1d9c3
leaq 0x89589(%rip), %rax # 0xa6f40
addq $0x100000, %rax # imm = 0x100000
cmpq %rax, -0x8(%rbp)
jb 0x1d9c8
jmp 0x1dbd9
movq -0x8(%rbp), %rax
leaq 0x8956d(%rip), %rcx # 0xa6f40
subq %rcx, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
shrq $0x5, %rax
movl %eax, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movl -0x14(%rbp), %eax
addl -0x24(%rbp), %eax
cmpl $0x8000, %eax # imm = 0x8000
jge 0x1da6d
movl -0x14(%rbp), %eax
addl -0x24(%rbp), %eax
movl $0x20, %ecx
cltd
idivl %ecx
movl %eax, -0x28(%rbp)
movl -0x14(%rbp), %eax
addl -0x24(%rbp), %eax
movl $0x20, %ecx
cltd
idivl %ecx
movl %edx, -0x2c(%rbp)
movslq -0x28(%rbp), %rcx
leaq 0x418950b(%rip), %rax # 0x41a6f40
movl (%rax,%rcx,4), %eax
movl -0x2c(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
jne 0x1da4d
jmp 0x1da6d
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
movq -0x20(%rbp), %rax
addq $0x20, %rax
movq %rax, -0x20(%rbp)
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x1d9fb
leaq 0x418a504(%rip), %rax # 0x41a7f78
cmpl $0x0, (%rax)
jle 0x1db23
cmpl $0x0, -0x18(%rbp)
jle 0x1db23
movl -0x18(%rbp), %eax
shll $0x5, %eax
cltq
movq %rax, -0x38(%rbp)
movq $0x0, -0x40(%rbp)
leaq 0x418a4d6(%rip), %rax # 0x41a7f78
movl (%rax), %eax
movl %eax, -0x54(%rbp)
subl $0x1, %eax
je 0x1dac2
jmp 0x1daae
movl -0x54(%rbp), %eax
subl $0x2, %eax
je 0x1daf4
jmp 0x1dab8
movl -0x54(%rbp), %eax
subl $0x3, %eax
je 0x1db01
jmp 0x1db03
leaq 0x86c7f(%rip), %rax # 0xa4748
movq (%rax), %rax
cmpq -0x38(%rbp), %rax
jae 0x1dae2
leaq 0x86c6f(%rip), %rax # 0xa4748
movq (%rax), %rax
movq %rax, -0x60(%rbp)
jmp 0x1daea
movq -0x38(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x60(%rbp), %rax
movq %rax, -0x40(%rbp)
jmp 0x1db0b
movq -0x38(%rbp), %rax
shrq %rax
movq %rax, -0x40(%rbp)
jmp 0x1db0b
jmp 0x1db03
movq -0x38(%rbp), %rax
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jbe 0x1db21
movq -0x8(%rbp), %rdi
movq -0x40(%rbp), %rdx
xorl %esi, %esi
callq 0x1e7d0
jmp 0x1db23
movl $0x0, -0x44(%rbp)
movl -0x44(%rbp), %eax
cmpl -0x18(%rbp), %eax
jge 0x1db87
movl -0x14(%rbp), %eax
addl -0x44(%rbp), %eax
movl %eax, -0x48(%rbp)
movl -0x48(%rbp), %eax
movl $0x20, %ecx
cltd
idivl %ecx
movl %eax, -0x4c(%rbp)
movl -0x48(%rbp), %eax
movl $0x20, %ecx
cltd
idivl %ecx
movl %edx, -0x50(%rbp)
movl -0x50(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
xorl $-0x1, %edx
movslq -0x4c(%rbp), %rcx
leaq 0x41893d1(%rip), %rax # 0x41a6f40
andl (%rax,%rcx,4), %edx
leaq 0x41893c7(%rip), %rax # 0x41a6f40
movl %edx, (%rax,%rcx,4)
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x1db2a
cmpl $0x0, -0x18(%rbp)
jle 0x1dbd7
leaq 0x418a3ac(%rip), %rax # 0x41a7f40
movq 0x28(%rax), %rax
cmpq -0x20(%rbp), %rax
jb 0x1dbbd
movq -0x20(%rbp), %rax
leaq 0x418a397(%rip), %rcx # 0x41a7f40
movq 0x28(%rcx), %rcx
subq %rax, %rcx
leaq 0x418a389(%rip), %rax # 0x41a7f40
movq %rcx, 0x28(%rax)
jmp 0x1dbcc
leaq 0x418a37c(%rip), %rax # 0x41a7f40
movq $0x0, 0x28(%rax)
movq -0x20(%rbp), %rdi
callq 0x1eaf0
jmp 0x1dbd9
jmp 0x1dbd9
addq $0x60, %rsp
popq %rbp
retq
nop
| free_small:
push rbp
mov rbp, rsp
sub rsp, 60h
mov [rbp+var_8], rdi
cmp [rbp+var_8], 0
jz short loc_1D9C3
lea rax, small_pool
cmp [rbp+var_8], rax
jb short loc_1D9C3
lea rax, small_pool
add rax, 100000h
cmp [rbp+var_8], rax
jb short loc_1D9C8
loc_1D9C3:
jmp loc_1DBD9
loc_1D9C8:
mov rax, [rbp+var_8]
lea rcx, small_pool
sub rax, rcx
mov [rbp+var_10], rax
mov rax, [rbp+var_10]
shr rax, 5
mov [rbp+var_14], eax
mov [rbp+var_18], 0
mov [rbp+var_20], 0
mov [rbp+var_24], 0
loc_1D9FB:
mov eax, [rbp+var_14]
add eax, [rbp+var_24]
cmp eax, 8000h
jge short loc_1DA6D
mov eax, [rbp+var_14]
add eax, [rbp+var_24]
mov ecx, 20h ; ' '
cdq
idiv ecx
mov [rbp+var_28], eax
mov eax, [rbp+var_14]
add eax, [rbp+var_24]
mov ecx, 20h ; ' '
cdq
idiv ecx
mov [rbp+var_2C], edx
movsxd rcx, [rbp+var_28]
lea rax, small_block_bitmap
mov eax, [rax+rcx*4]
mov ecx, [rbp+var_2C]
mov edx, 1
shl edx, cl
mov ecx, edx
and eax, ecx
cmp eax, 0
jnz short loc_1DA4D
jmp short loc_1DA6D
loc_1DA4D:
mov eax, [rbp+var_18]
add eax, 1
mov [rbp+var_18], eax
mov rax, [rbp+var_20]
add rax, 20h ; ' '
mov [rbp+var_20], rax
mov eax, [rbp+var_24]
add eax, 1
mov [rbp+var_24], eax
jmp short loc_1D9FB
loc_1DA6D:
lea rax, zero_on_free_depth
cmp dword ptr [rax], 0
jle loc_1DB23
cmp [rbp+var_18], 0
jle loc_1DB23
mov eax, [rbp+var_18]
shl eax, 5
cdqe
mov [rbp+var_38], rax
mov [rbp+var_40], 0
lea rax, zero_on_free_depth
mov eax, [rax]
mov [rbp+var_54], eax
sub eax, 1
jz short loc_1DAC2
jmp short $+2
loc_1DAAE:
mov eax, [rbp+var_54]
sub eax, 2
jz short loc_1DAF4
jmp short $+2
loc_1DAB8:
mov eax, [rbp+var_54]
sub eax, 3
jz short loc_1DB01
jmp short loc_1DB03
loc_1DAC2:
lea rax, shallow_zero_size
mov rax, [rax]
cmp rax, [rbp+var_38]
jnb short loc_1DAE2
lea rax, shallow_zero_size
mov rax, [rax]
mov [rbp+var_60], rax
jmp short loc_1DAEA
loc_1DAE2:
mov rax, [rbp+var_38]
mov [rbp+var_60], rax
loc_1DAEA:
mov rax, [rbp+var_60]
mov [rbp+var_40], rax
jmp short loc_1DB0B
loc_1DAF4:
mov rax, [rbp+var_38]
shr rax, 1
mov [rbp+var_40], rax
jmp short loc_1DB0B
loc_1DB01:
jmp short $+2
loc_1DB03:
mov rax, [rbp+var_38]
mov [rbp+var_40], rax
loc_1DB0B:
cmp [rbp+var_40], 0
jbe short loc_1DB21
mov rdi, [rbp+var_8]
mov rdx, [rbp+var_40]
xor esi, esi
call _memset
loc_1DB21:
jmp short $+2
loc_1DB23:
mov [rbp+var_44], 0
loc_1DB2A:
mov eax, [rbp+var_44]
cmp eax, [rbp+var_18]
jge short loc_1DB87
mov eax, [rbp+var_14]
add eax, [rbp+var_44]
mov [rbp+var_48], eax
mov eax, [rbp+var_48]
mov ecx, 20h ; ' '
cdq
idiv ecx
mov [rbp+var_4C], eax
mov eax, [rbp+var_48]
mov ecx, 20h ; ' '
cdq
idiv ecx
mov [rbp+var_50], edx
mov ecx, [rbp+var_50]
mov edx, 1
shl edx, cl
xor edx, 0FFFFFFFFh
movsxd rcx, [rbp+var_4C]
lea rax, small_block_bitmap
and edx, [rax+rcx*4]
lea rax, small_block_bitmap
mov [rax+rcx*4], edx
mov eax, [rbp+var_44]
add eax, 1
mov [rbp+var_44], eax
jmp short loc_1DB2A
loc_1DB87:
cmp [rbp+var_18], 0
jle short loc_1DBD7
lea rax, allocation_stats
mov rax, [rax+28h]
cmp rax, [rbp+var_20]
jb short loc_1DBBD
mov rax, [rbp+var_20]
lea rcx, allocation_stats
mov rcx, [rcx+28h]
sub rcx, rax
lea rax, allocation_stats
mov [rax+28h], rcx
jmp short loc_1DBCC
loc_1DBBD:
lea rax, allocation_stats
mov qword ptr [rax+28h], 0
loc_1DBCC:
mov rdi, [rbp+var_20]
call update_stats_free
jmp short loc_1DBD9
loc_1DBD7:
jmp short $+2
loc_1DBD9:
add rsp, 60h
pop rbp
retn
| long long free_small(unsigned long long a1)
{
long long result; // rax
int *v2; // [rsp+0h] [rbp-60h]
int j; // [rsp+1Ch] [rbp-44h]
int *v4; // [rsp+20h] [rbp-40h]
unsigned long long v5; // [rsp+28h] [rbp-38h]
int i; // [rsp+3Ch] [rbp-24h]
unsigned long long v7; // [rsp+40h] [rbp-20h]
int v8; // [rsp+48h] [rbp-18h]
int v9; // [rsp+4Ch] [rbp-14h]
if ( a1 )
{
result = (long long)&small_pool;
if ( a1 >= (unsigned long long)&small_pool )
{
result = (long long)&small_pool + 0x100000;
if ( a1 < (unsigned long long)&small_pool + 0x100000 )
{
v9 = (a1 - (unsigned long long)&small_pool) >> 5;
v8 = 0;
v7 = 0LL;
for ( i = 0; i + v9 < 0x8000 && ((1 << ((i + v9) % 32)) & small_block_bitmap[(i + v9) / 32]) != 0; ++i )
{
++v8;
v7 += 32LL;
}
if ( zero_on_free_depth > 0 && v8 > 0 )
{
v5 = 32 * v8;
if ( zero_on_free_depth == 1 )
{
v2 = (unsigned long long)shallow_zero_size >= v5 ? (int *)(32 * v8) : shallow_zero_size;
v4 = v2;
}
else
{
v4 = zero_on_free_depth == 2 ? (int *)(v5 >> 1) : (int *)(32 * v8);
}
if ( v4 )
memset(a1, 0LL, v4);
}
for ( j = 0; ; ++j )
{
result = (unsigned int)j;
if ( j >= v8 )
break;
small_block_bitmap[(j + v9) / 32] &= ~(1 << ((j + v9) % 32));
}
if ( v8 > 0 )
{
if ( *(&allocation_stats + 5) < v7 )
*(&allocation_stats + 5) = 0LL;
else
*(&allocation_stats + 5) -= v7;
return update_stats_free(v7);
}
}
}
}
return result;
}
| free_small:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x60
MOV qword ptr [RBP + -0x8],RDI
CMP qword ptr [RBP + -0x8],0x0
JZ 0x0011d9c3
LEA RAX,[0x1a6f40]
CMP qword ptr [RBP + -0x8],RAX
JC 0x0011d9c3
LEA RAX,[0x1a6f40]
ADD RAX,0x100000
CMP qword ptr [RBP + -0x8],RAX
JC 0x0011d9c8
LAB_0011d9c3:
JMP 0x0011dbd9
LAB_0011d9c8:
MOV RAX,qword ptr [RBP + -0x8]
LEA RCX,[0x1a6f40]
SUB RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x10]
SHR RAX,0x5
MOV dword ptr [RBP + -0x14],EAX
MOV dword ptr [RBP + -0x18],0x0
MOV qword ptr [RBP + -0x20],0x0
MOV dword ptr [RBP + -0x24],0x0
LAB_0011d9fb:
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,dword ptr [RBP + -0x24]
CMP EAX,0x8000
JGE 0x0011da6d
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,dword ptr [RBP + -0x24]
MOV ECX,0x20
CDQ
IDIV ECX
MOV dword ptr [RBP + -0x28],EAX
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,dword ptr [RBP + -0x24]
MOV ECX,0x20
CDQ
IDIV ECX
MOV dword ptr [RBP + -0x2c],EDX
MOVSXD RCX,dword ptr [RBP + -0x28]
LEA RAX,[0x42a6f40]
MOV EAX,dword ptr [RAX + RCX*0x4]
MOV ECX,dword ptr [RBP + -0x2c]
MOV EDX,0x1
SHL EDX,CL
MOV ECX,EDX
AND EAX,ECX
CMP EAX,0x0
JNZ 0x0011da4d
JMP 0x0011da6d
LAB_0011da4d:
MOV EAX,dword ptr [RBP + -0x18]
ADD EAX,0x1
MOV dword ptr [RBP + -0x18],EAX
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x20
MOV qword ptr [RBP + -0x20],RAX
MOV EAX,dword ptr [RBP + -0x24]
ADD EAX,0x1
MOV dword ptr [RBP + -0x24],EAX
JMP 0x0011d9fb
LAB_0011da6d:
LEA RAX,[0x42a7f78]
CMP dword ptr [RAX],0x0
JLE 0x0011db23
CMP dword ptr [RBP + -0x18],0x0
JLE 0x0011db23
MOV EAX,dword ptr [RBP + -0x18]
SHL EAX,0x5
CDQE
MOV qword ptr [RBP + -0x38],RAX
MOV qword ptr [RBP + -0x40],0x0
LEA RAX,[0x42a7f78]
MOV EAX,dword ptr [RAX]
MOV dword ptr [RBP + -0x54],EAX
SUB EAX,0x1
JZ 0x0011dac2
JMP 0x0011daae
LAB_0011daae:
MOV EAX,dword ptr [RBP + -0x54]
SUB EAX,0x2
JZ 0x0011daf4
JMP 0x0011dab8
LAB_0011dab8:
MOV EAX,dword ptr [RBP + -0x54]
SUB EAX,0x3
JZ 0x0011db01
JMP 0x0011db03
LAB_0011dac2:
LEA RAX,[0x1a4748]
MOV RAX,qword ptr [RAX]
CMP RAX,qword ptr [RBP + -0x38]
JNC 0x0011dae2
LEA RAX,[0x1a4748]
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x60],RAX
JMP 0x0011daea
LAB_0011dae2:
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x60],RAX
LAB_0011daea:
MOV RAX,qword ptr [RBP + -0x60]
MOV qword ptr [RBP + -0x40],RAX
JMP 0x0011db0b
LAB_0011daf4:
MOV RAX,qword ptr [RBP + -0x38]
SHR RAX,0x1
MOV qword ptr [RBP + -0x40],RAX
JMP 0x0011db0b
LAB_0011db01:
JMP 0x0011db03
LAB_0011db03:
MOV RAX,qword ptr [RBP + -0x38]
MOV qword ptr [RBP + -0x40],RAX
LAB_0011db0b:
CMP qword ptr [RBP + -0x40],0x0
JBE 0x0011db21
MOV RDI,qword ptr [RBP + -0x8]
MOV RDX,qword ptr [RBP + -0x40]
XOR ESI,ESI
CALL 0x0011e7d0
LAB_0011db21:
JMP 0x0011db23
LAB_0011db23:
MOV dword ptr [RBP + -0x44],0x0
LAB_0011db2a:
MOV EAX,dword ptr [RBP + -0x44]
CMP EAX,dword ptr [RBP + -0x18]
JGE 0x0011db87
MOV EAX,dword ptr [RBP + -0x14]
ADD EAX,dword ptr [RBP + -0x44]
MOV dword ptr [RBP + -0x48],EAX
MOV EAX,dword ptr [RBP + -0x48]
MOV ECX,0x20
CDQ
IDIV ECX
MOV dword ptr [RBP + -0x4c],EAX
MOV EAX,dword ptr [RBP + -0x48]
MOV ECX,0x20
CDQ
IDIV ECX
MOV dword ptr [RBP + -0x50],EDX
MOV ECX,dword ptr [RBP + -0x50]
MOV EDX,0x1
SHL EDX,CL
XOR EDX,0xffffffff
MOVSXD RCX,dword ptr [RBP + -0x4c]
LEA RAX,[0x42a6f40]
AND EDX,dword ptr [RAX + RCX*0x4]
LEA RAX,[0x42a6f40]
MOV dword ptr [RAX + RCX*0x4],EDX
MOV EAX,dword ptr [RBP + -0x44]
ADD EAX,0x1
MOV dword ptr [RBP + -0x44],EAX
JMP 0x0011db2a
LAB_0011db87:
CMP dword ptr [RBP + -0x18],0x0
JLE 0x0011dbd7
LEA RAX,[0x42a7f40]
MOV RAX,qword ptr [RAX + 0x28]
CMP RAX,qword ptr [RBP + -0x20]
JC 0x0011dbbd
MOV RAX,qword ptr [RBP + -0x20]
LEA RCX,[0x42a7f40]
MOV RCX,qword ptr [RCX + 0x28]
SUB RCX,RAX
LEA RAX,[0x42a7f40]
MOV qword ptr [RAX + 0x28],RCX
JMP 0x0011dbcc
LAB_0011dbbd:
LEA RAX,[0x42a7f40]
MOV qword ptr [RAX + 0x28],0x0
LAB_0011dbcc:
MOV RDI,qword ptr [RBP + -0x20]
CALL 0x0011eaf0
JMP 0x0011dbd9
LAB_0011dbd7:
JMP 0x0011dbd9
LAB_0011dbd9:
ADD RSP,0x60
POP RBP
RET
|
void free_small(int1 *param_1)
{
int iVar1;
long lVar2;
ulong local_68;
int local_4c;
ulong local_48;
int local_2c;
ulong local_28;
int local_20;
if (((param_1 != (int1 *)0x0) && (small_pool <= param_1)) && (param_1 < memory)) {
iVar1 = (int)((ulong)(param_1 + -0x1a6f40) >> 5);
local_20 = 0;
local_28 = 0;
local_2c = 0;
while ((iVar1 + local_2c < 0x8000 &&
((*(uint *)(small_block_bitmap + (long)((iVar1 + local_2c) / 0x20) * 4) &
1 << ((byte)((iVar1 + local_2c) % 0x20) & 0x1f)) != 0))) {
local_20 = local_20 + 1;
local_28 = local_28 + 0x20;
local_2c = local_2c + 1;
}
if ((0 < zero_on_free_depth) && (0 < local_20)) {
local_68 = (ulong)(local_20 << 5);
if (zero_on_free_depth == 1) {
if (shallow_zero_size < local_68) {
local_68 = shallow_zero_size;
}
local_48 = local_68;
}
else {
local_48 = local_68;
if (zero_on_free_depth == 2) {
local_48 = local_68 >> 1;
}
}
if (local_48 != 0) {
_memset(param_1,0,local_48);
}
}
for (local_4c = 0; local_4c < local_20; local_4c = local_4c + 1) {
lVar2 = (long)((iVar1 + local_4c) / 0x20);
*(uint *)(small_block_bitmap + lVar2 * 4) =
(1 << ((byte)((iVar1 + local_4c) % 0x20) & 0x1f) ^ 0xffffffffU) &
*(uint *)(small_block_bitmap + lVar2 * 4);
}
if (0 < local_20) {
if (DAT_042a7f68 < local_28) {
DAT_042a7f68 = 0;
}
else {
DAT_042a7f68 = DAT_042a7f68 - local_28;
}
update_stats_free(local_28);
}
}
return;
}
| |
28,258 | free_small | seiftnesse[P]memoryallocator/src/custom_alloc_small.c | void free_small(void *ptr) {
if (!ptr || ptr < (void *) small_pool ||
ptr >= (void *) (small_pool + SMALL_POOL_SIZE)) {
HEAP_LOG("Invalid pointer for small free: %p\n", ptr);
return;
}
// Calculate block index
size_t offset = (uint8_t *) ptr - small_pool;
int start_block = offset / SMALL_BLOCK_SIZE;
HEAP_LOG("Freeing small allocation: ptr=%p, block=%d\n", ptr, start_block);
// First pass: Count blocks without freeing them
int blocks_to_free = 0;
size_t total_size_freed = 0;
// This loop just counts the blocks that will be freed
for (int i = 0; start_block + i < SMALL_POOL_SIZE / SMALL_BLOCK_SIZE; i++) {
int bmap_idx = (start_block + i) / 32;
int bit_idx = (start_block + i) % 32;
// Check if this block is actually allocated
if (!(small_block_bitmap[bmap_idx] & (1 << bit_idx))) {
break;
}
blocks_to_free++;
total_size_freed += SMALL_BLOCK_SIZE;
}
// Apply zero-on-free according to configured depth
if (zero_on_free_depth > ZERO_DEPTH_NONE && blocks_to_free > 0) {
size_t user_size = blocks_to_free * SMALL_BLOCK_SIZE;
size_t zero_size = 0;
switch (zero_on_free_depth) {
case ZERO_DEPTH_SHALLOW:
// Zero only the first portion (headers/pointers)
zero_size = (shallow_zero_size < user_size) ? shallow_zero_size : user_size;
break;
case ZERO_DEPTH_MEDIUM:
// Zero half the memory
zero_size = user_size / 2;
break;
case ZERO_DEPTH_DEEP:
default:
// Zero all memory (most secure, but slowest)
zero_size = user_size;
break;
}
if (zero_size > 0) {
HEAP_LOG("Zeroing %zu bytes on small free at %p (depth=%d)\n",
zero_size, ptr, zero_on_free_depth);
_memset(ptr, 0, zero_size);
}
}
// Second pass: Now mark the blocks as free in the bitmap
for (int i = 0; i < blocks_to_free; i++) {
int block = start_block + i;
int bmap_idx = block / 32;
int bit_idx = block % 32;
small_block_bitmap[bmap_idx] &= ~(1 << bit_idx);
}
if (blocks_to_free > 0) {
// Update stats - ensure we don't underflow
if (allocation_stats.small_pool_used >= total_size_freed) {
allocation_stats.small_pool_used -= total_size_freed;
} else {
allocation_stats.small_pool_used = 0;
}
update_stats_free(total_size_freed);
HEAP_LOG("Small allocation freed: %d blocks, total size=%zu bytes\n",
blocks_to_free, total_size_freed);
} else {
HEAP_LOG("Warning: No blocks freed from small pool\n");
}
} | O3 | c | free_small:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
leaq 0x4b97b(%rip), %rax # 0x5cd60
cmpq %rax, %rdi
setb %cl
addq $0x100000, %rax # imm = 0x100000
cmpq %rax, %rdi
setae %al
orb %cl, %al
jne 0x11507
movq %rdi, %rbx
subq 0x48bbf(%rip), %rbx # 0x59fc8
shrq $0x5, %rbx
cmpl $0x7fff, %ebx # imm = 0x7FFF
jg 0x11507
movl $0x8000, %eax # imm = 0x8000
subl %ebx, %eax
xorl %r12d, %r12d
leaq 0x414b936(%rip), %r15 # 0x415cd60
xorl %r14d, %r14d
movl %ebx, %ecx
addl %r12d, %ecx
leal 0x1f(%rbx,%r12), %edx
cmovnsl %ecx, %edx
sarl $0x5, %edx
movslq %edx, %rdx
movl (%r15,%rdx,4), %edx
btl %ecx, %edx
jae 0x11466
addq $0x20, %r14
leal (%rbx,%r12), %ecx
incl %ecx
movl %r12d, %edx
incl %edx
movl %edx, %r12d
cmpl $0x8000, %ecx # imm = 0x8000
jne 0x1142d
movl %eax, %r12d
leaq 0x414c92b(%rip), %rax # 0x415dd98
movl (%rax), %eax
testl %eax, %eax
jle 0x1149b
testl %r12d, %r12d
je 0x1149b
movl %r12d, %edx
shll $0x5, %edx
cmpl $0x2, %eax
je 0x114a5
cmpl $0x1, %eax
jne 0x114a7
leaq 0x490e1(%rip), %rax # 0x5a570
movq (%rax), %rax
cmpq %rdx, %rax
cmovbq %rax, %rdx
jmp 0x114a7
movl %r12d, %eax
testl %r12d, %r12d
jne 0x114b6
jmp 0x114d7
shrl %edx
testq %rdx, %rdx
je 0x114b3
xorl %esi, %esi
callq 0x11aba
movl %r12d, %eax
leal 0x1f(%rbx), %edx
testl %ebx, %ebx
cmovnsl %ebx, %edx
sarl $0x5, %edx
movl $0xfffffffe, %esi # imm = 0xFFFFFFFE
movl %ebx, %ecx
roll %cl, %esi
movslq %edx, %rcx
andl %esi, (%r15,%rcx,4)
incl %ebx
decl %eax
jne 0x114b6
testl %r12d, %r12d
je 0x11507
leaq 0x414c87d(%rip), %rax # 0x415dd60
movq 0x28(%rax), %rcx
xorl %edx, %edx
subq %r14, %rcx
cmovaeq %rcx, %rdx
movq %rdx, 0x28(%rax)
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x11cc7
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
| free_small:
push r15
push r14
push r12
push rbx
push rax
lea rax, small_pool
cmp rdi, rax
setb cl
add rax, 100000h
cmp rdi, rax
setnb al
or al, cl
jnz loc_11507
mov rbx, rdi
sub rbx, cs:small_pool_ptr
shr rbx, 5
cmp ebx, 7FFFh
jg loc_11507
mov eax, 8000h
sub eax, ebx
xor r12d, r12d
lea r15, small_block_bitmap
xor r14d, r14d
loc_1142D:
mov ecx, ebx
add ecx, r12d
lea edx, [rbx+r12+1Fh]
cmovns edx, ecx
sar edx, 5
movsxd rdx, edx
mov edx, [r15+rdx*4]
bt edx, ecx
jnb short loc_11466
add r14, 20h ; ' '
lea ecx, [rbx+r12]
inc ecx
mov edx, r12d
inc edx
mov r12d, edx
cmp ecx, 8000h
jnz short loc_1142D
mov r12d, eax
loc_11466:
lea rax, zero_on_free_depth
mov eax, [rax]
test eax, eax
jle short loc_1149B
test r12d, r12d
jz short loc_1149B
mov edx, r12d
shl edx, 5
cmp eax, 2
jz short loc_114A5
cmp eax, 1
jnz short loc_114A7
lea rax, shallow_zero_size
mov rax, [rax]
cmp rax, rdx
cmovb rdx, rax
jmp short loc_114A7
loc_1149B:
mov eax, r12d
test r12d, r12d
jnz short loc_114B6
jmp short loc_114D7
loc_114A5:
shr edx, 1
loc_114A7:
test rdx, rdx
jz short loc_114B3
xor esi, esi
call _memset
loc_114B3:
mov eax, r12d
loc_114B6:
lea edx, [rbx+1Fh]
test ebx, ebx
cmovns edx, ebx
sar edx, 5
mov esi, 0FFFFFFFEh
mov ecx, ebx
rol esi, cl
movsxd rcx, edx
and [r15+rcx*4], esi
inc ebx
dec eax
jnz short loc_114B6
loc_114D7:
test r12d, r12d
jz short loc_11507
lea rax, allocation_stats
mov rcx, [rax+28h]
xor edx, edx
sub rcx, r14
cmovnb rdx, rcx
mov [rax+28h], rdx
mov rdi, r14
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
jmp update_stats_free
loc_11507:
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
| long long free_small(unsigned long long a1)
{
long long result; // rax
unsigned long long v2; // rbx
unsigned int v3; // r12d
unsigned long long v4; // r14
int v5; // edx
int v6; // edx
int v7; // ecx
unsigned long long v8; // rdx
unsigned long long v9; // rcx
long long v10; // rdx
bool v11; // cf
long long v12; // rcx
result = (long long)&small_pool + 0x100000;
LOBYTE(result) = a1 < (unsigned long long)&small_pool || a1 >= (unsigned long long)&small_pool + 0x100000;
if ( (_BYTE)result )
return result;
v2 = (a1 - (unsigned long long)&small_pool) >> 5;
if ( (int)v2 > 0x7FFF )
return result;
v3 = 0;
v4 = 0LL;
while ( 1 )
{
v5 = v2 + v3 + 31;
if ( (int)(v3 + v2) >= 0 )
v5 = v3 + v2;
v6 = small_block_bitmap[v5 >> 5];
if ( !_bittest(&v6, v3 + v2) )
break;
v4 += 32LL;
v7 = v2 + v3++ + 1;
if ( v7 == 0x8000 )
{
v3 = 0x8000 - v2;
break;
}
}
if ( zero_on_free_depth > 0 && v3 )
{
v8 = 32 * v3;
if ( zero_on_free_depth == 2 )
{
v8 = (unsigned int)v8 >> 1;
}
else if ( zero_on_free_depth == 1 && (unsigned long long)shallow_zero_size < v8 )
{
v8 = (unsigned long long)shallow_zero_size;
}
if ( v8 )
memset(a1, 0LL, v8);
LODWORD(result) = v3;
}
else
{
result = v3;
if ( !v3 )
goto LABEL_23;
}
do
{
small_block_bitmap[(int)v2 / 32] &= __ROL4__(-2, v2);
LODWORD(v2) = v2 + 1;
result = (unsigned int)(result - 1);
}
while ( (_DWORD)result );
LABEL_23:
if ( v3 )
{
v9 = *(&allocation_stats + 5);
v10 = 0LL;
v11 = v9 < v4;
v12 = v9 - v4;
if ( !v11 )
v10 = v12;
*(&allocation_stats + 5) = v10;
return update_stats_free(v4);
}
return result;
}
| free_small:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
LEA RAX,[0x15cd60]
CMP RDI,RAX
SETC CL
ADD RAX,0x100000
CMP RDI,RAX
SETNC AL
OR AL,CL
JNZ 0x00111507
MOV RBX,RDI
SUB RBX,qword ptr [0x00159fc8]
SHR RBX,0x5
CMP EBX,0x7fff
JG 0x00111507
MOV EAX,0x8000
SUB EAX,EBX
XOR R12D,R12D
LEA R15,[0x425cd60]
XOR R14D,R14D
LAB_0011142d:
MOV ECX,EBX
ADD ECX,R12D
LEA EDX,[RBX + R12*0x1 + 0x1f]
CMOVNS EDX,ECX
SAR EDX,0x5
MOVSXD RDX,EDX
MOV EDX,dword ptr [R15 + RDX*0x4]
BT EDX,ECX
JNC 0x00111466
ADD R14,0x20
LEA ECX,[RBX + R12*0x1]
INC ECX
MOV EDX,R12D
INC EDX
MOV R12D,EDX
CMP ECX,0x8000
JNZ 0x0011142d
MOV R12D,EAX
LAB_00111466:
LEA RAX,[0x425dd98]
MOV EAX,dword ptr [RAX]
TEST EAX,EAX
JLE 0x0011149b
TEST R12D,R12D
JZ 0x0011149b
MOV EDX,R12D
SHL EDX,0x5
CMP EAX,0x2
JZ 0x001114a5
CMP EAX,0x1
JNZ 0x001114a7
LEA RAX,[0x15a570]
MOV RAX,qword ptr [RAX]
CMP RAX,RDX
CMOVC RDX,RAX
JMP 0x001114a7
LAB_0011149b:
MOV EAX,R12D
TEST R12D,R12D
JNZ 0x001114b6
JMP 0x001114d7
LAB_001114a5:
SHR EDX,0x1
LAB_001114a7:
TEST RDX,RDX
JZ 0x001114b3
XOR ESI,ESI
CALL 0x00111aba
LAB_001114b3:
MOV EAX,R12D
LAB_001114b6:
LEA EDX,[RBX + 0x1f]
TEST EBX,EBX
CMOVNS EDX,EBX
SAR EDX,0x5
MOV ESI,0xfffffffe
MOV ECX,EBX
ROL ESI,CL
MOVSXD RCX,EDX
AND dword ptr [R15 + RCX*0x4],ESI
INC EBX
DEC EAX
JNZ 0x001114b6
LAB_001114d7:
TEST R12D,R12D
JZ 0x00111507
LEA RAX,[0x425dd60]
MOV RCX,qword ptr [RAX + 0x28]
XOR EDX,EDX
SUB RCX,R14
CMOVNC RDX,RCX
MOV qword ptr [RAX + 0x28],RDX
MOV RDI,R14
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
JMP 0x00111cc7
LAB_00111507:
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
void free_small(int1 *param_1)
{
byte bVar1;
uint uVar2;
int iVar3;
long lVar4;
uint uVar5;
int iVar6;
ulong uVar7;
int iVar8;
ulong uVar9;
int iVar10;
ulong uVar11;
bool bVar12;
if (param_1 < memory && small_pool <= param_1) {
uVar9 = (ulong)((long)param_1 - (long)PTR_small_pool_00159fc8) >> 5;
iVar8 = (int)uVar9;
if (iVar8 < 0x8000) {
iVar6 = 0;
uVar11 = 0;
do {
uVar2 = iVar8 + iVar6;
uVar5 = iVar8 + 0x1f + iVar6;
if (-1 < (int)uVar2) {
uVar5 = uVar2;
}
iVar10 = iVar6;
if (((uint)(&small_block_bitmap)[(int)uVar5 >> 5] >> (uVar2 & 0x1f) & 1) == 0) break;
uVar11 = uVar11 + 0x20;
iVar3 = iVar8 + iVar6;
iVar6 = iVar6 + 1;
iVar10 = 0x8000 - iVar8;
} while (iVar3 != 0x7fff);
iVar8 = iVar10;
if (zero_on_free_depth < 1) goto joined_r0x001114a1;
if (iVar10 == 0) goto joined_r0x001114a1;
uVar7 = (ulong)(uint)(iVar10 << 5);
if (zero_on_free_depth == 2) {
uVar7 = (ulong)((uint)(iVar10 << 5) >> 1);
}
else if ((zero_on_free_depth == 1) && (shallow_zero_size < uVar7)) {
uVar7 = shallow_zero_size;
}
if (uVar7 != 0) {
_memset(param_1,0);
}
do {
iVar6 = (int)uVar9;
iVar3 = iVar6 + 0x1f;
if (-1 < iVar6) {
iVar3 = iVar6;
}
bVar1 = (byte)uVar9 & 0x1f;
(&small_block_bitmap)[iVar3 >> 5] =
(&small_block_bitmap)[iVar3 >> 5] & (-2 << bVar1 | 0xfffffffeU >> 0x20 - bVar1);
uVar9 = (ulong)(iVar6 + 1);
iVar8 = iVar8 + -1;
joined_r0x001114a1:
} while (iVar8 != 0);
if (iVar10 != 0) {
bVar12 = uVar11 <= DAT_0425dd88;
lVar4 = DAT_0425dd88 - uVar11;
DAT_0425dd88 = 0;
if (bVar12) {
DAT_0425dd88 = lVar4;
}
update_stats_free(uVar11);
return;
}
}
}
return;
}
| |
28,259 | common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template const&, common_chat_inputs const&) | monkey531[P]llama/common/chat.cpp | static common_chat_params common_chat_params_init_functionary_v3_1_llama_3_1(const common_chat_template & tmpl, const struct common_chat_inputs & inputs) {
// https://github.com/MeetKai/functionary/blob/main/tests/prompt_test_v3-llama3.1.txt
common_chat_params data;
json tools = inputs.tools.is_null() ? inputs.tools : json::array();
std::string python_code_argument_name;
auto has_raw_python = false;
data.grammar_lazy = inputs.tool_choice != "required";
data.grammar = build_grammar([&](const common_grammar_builder & builder) {
std::vector<std::string> tool_rules;
foreach_function(inputs.tools, [&](const json & tool) {
const auto & function = tool["function"];
const auto & parameters = function["parameters"];
std::string name = function["name"];
if (name == "python" || name == "ipython") {
if (!parameters.contains("type")) {
throw std::runtime_error("Missing type in python tool");
}
has_raw_python = true;
auto type = parameters.at("type");
if (type == "object") {
auto properties = parameters.at("properties");
for (auto it = properties.begin(); it != properties.end(); ++it) {
if (it.value().at("type") == "string") {
if (!python_code_argument_name.empty()) {
throw std::runtime_error("Multiple string arguments found in python tool");
}
python_code_argument_name = it.key();
}
}
if (python_code_argument_name.empty()) {
throw std::runtime_error("No string argument found in python tool");
}
} else if (type != "string") {
throw std::runtime_error("Invalid type in python tool: " + type.dump());
}
}
tool_rules.push_back(builder.add_rule(name + "-call", "\"<function=" + name + ">\" " + builder.add_schema(name + "-args", parameters) + " \"</function>\" space"));
});
if (has_raw_python) {
tool_rules.push_back(builder.add_rule("python-call", "\"<|python_tag|>\" .*"));
data.grammar_triggers.push_back({"<|python_tag|>", /* .at_start = */ false});
}
auto tool_call = builder.add_rule("tool_call", string_join(tool_rules, " | ")) + " space";
builder.add_rule("root", inputs.parallel_tool_calls ? "(" + tool_call + ")+" : tool_call);
data.grammar_triggers.push_back({"<function=", /* .at_start = */ false});
}, grammar_options);
data.prompt = tmpl.apply(inputs.messages, inputs.tools.empty() ? json() : inputs.tools, inputs.add_generation_prompt);
// TODO: if (has_raw_python)
data.format = COMMON_CHAT_FORMAT_FUNCTIONARY_V3_1_LLAMA_3_1;
return data;
} | O3 | cpp | common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template const&, common_chat_inputs const&):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movl $0x0, (%rdi)
xorl %eax, %eax
movb %al, 0x8(%rdi)
movq %rax, 0x10(%rdi)
leaq 0x28(%rdi), %rcx
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movb %al, 0x28(%rdi)
movb %al, 0x38(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rdi)
movups %xmm0, 0x50(%rdi)
movups %xmm0, 0x60(%rdi)
movups %xmm0, 0x70(%rdi)
movq %rax, 0x80(%rdi)
leaq 0x10(%rdx), %r12
cmpb %al, 0x10(%rdx)
je 0xd278a
leaq 0x58(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
movl $0x2, %r8d
callq 0x7eb6e
jmp 0xd2797
leaq 0x58(%rsp), %rdi
movq %r12, %rsi
callq 0x5d666
leaq 0x88(%rsp), %rbp
movq %rbp, -0x10(%rbp)
xorl %r13d, %r13d
movq %r13, -0x8(%rbp)
movb %r13b, (%rbp)
movb %r13b, 0x17(%rsp)
leaq 0x20(%r14), %rdi
leaq 0x1edb7(%rip), %rsi # 0xf1575
callq 0xa4ec1
movb %al, 0x38(%rbx)
movq %r13, 0x20(%rsp)
movl $0x20, %edi
callq 0x1b890
movq %r14, (%rax)
leaq 0x17(%rsp), %rcx
movq %rcx, 0x8(%rax)
leaq 0x78(%rsp), %rcx
movq %rcx, 0x10(%rax)
movq %rbx, 0x18(%rax)
leaq 0x18(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x9fa9(%rip), %rax # 0xdc7a6
movq %rax, 0x18(%rsi)
leaq 0xa692(%rip), %rax # 0xdce9a
movq %rax, 0x10(%rsi)
leaq 0x24e85(%rip), %rdx # 0xf7698
leaq 0x38(%rsp), %rdi
callq 0xbb030
leaq 0x18(%rbx), %rdi
leaq 0x38(%rsp), %r13
movq %r13, %rsi
callq 0x1ba70
movq (%r13), %rdi
leaq 0x48(%rsp), %r13
cmpq %r13, %rdi
je 0xd2849
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x1b8b0
movq 0x28(%rsp), %rax
testq %rax, %rax
je 0xd2862
leaq 0x18(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
movzbl (%r12), %eax
testl %eax, %eax
je 0xd2891
cmpl $0x2, %eax
je 0xd2875
cmpl $0x1, %eax
jne 0xd2882
movq 0x18(%r14), %rax
movq (%rax), %rcx
cmpq 0x8(%rax), %rcx
je 0xd2891
leaq 0x18(%rsp), %rdi
movq %r12, %rsi
callq 0x5d666
jmp 0xd289f
movb $0x0, 0x18(%rsp)
movq $0x0, 0x20(%rsp)
movzbl 0x68(%r14), %r8d
leaq 0x68(%rsp), %r9
movb $0x0, (%r9)
movq $0x0, 0x8(%r9)
movl $0x1, (%rsp)
leaq 0x38(%rsp), %rdi
leaq 0x18(%rsp), %rcx
movq %r15, %rsi
movq %r14, %rdx
callq 0xa15e0
leaq 0x98(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x7f8c2
movb 0x8(%rbx), %al
leaq 0x98(%rsp), %rdi
movb (%rdi), %cl
movb %cl, 0x8(%rbx)
movb %al, (%rdi)
movq 0x10(%rbx), %rax
movq 0x8(%rdi), %rcx
movq %rcx, 0x10(%rbx)
movq %rax, 0x8(%rdi)
callq 0x5db32
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0xd2921
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x1b8b0
leaq 0x68(%rsp), %rdi
callq 0x5db32
leaq 0x18(%rsp), %rdi
callq 0x5db32
movl $0x8, (%rbx)
movq 0x78(%rsp), %rdi
cmpq %rbp, %rdi
je 0xd2955
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x1b8b0
leaq 0x58(%rsp), %rdi
callq 0x5db32
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xd29d0
jmp 0xd29c8
movq %rax, %r14
movq 0x38(%rsp), %rdi
cmpq %r13, %rdi
je 0xd2994
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x1b8b0
jmp 0xd2994
movq %rax, %r14
leaq 0x68(%rsp), %rdi
callq 0x5db32
leaq 0x18(%rsp), %rdi
callq 0x5db32
jmp 0xd29d3
movq %rax, %r14
movq 0x28(%rsp), %rax
testq %rax, %rax
je 0xd29d3
leaq 0x18(%rsp), %rdi
movq %rdi, %rsi
movl $0x3, %edx
callq *%rax
jmp 0xd29d3
movq %rax, %rdi
callq 0x21ae5
movq %rax, %r14
movq 0x78(%rsp), %rdi
cmpq %rbp, %rdi
je 0xd29ed
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x1b8b0
leaq 0x58(%rsp), %rdi
callq 0x5db32
movq %rbx, %rdi
callq 0x7e480
movq %r14, %rdi
callq 0x1bf70
movq %rax, %r14
jmp 0xd29f7
| _ZL50common_chat_params_init_functionary_v3_1_llama_3_1RKN5minja13chat_templateERK18common_chat_inputs:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0A8h
mov r14, rdx
mov r15, rsi
mov rbx, rdi
mov dword ptr [rdi], 0
xor eax, eax
mov [rdi+8], al
mov [rdi+10h], rax
lea rcx, [rdi+28h]
mov [rdi+18h], rcx
mov [rdi+20h], rax
mov [rdi+28h], al
mov [rdi+38h], al
xorps xmm0, xmm0
movups xmmword ptr [rdi+40h], xmm0
movups xmmword ptr [rdi+50h], xmm0
movups xmmword ptr [rdi+60h], xmm0
movups xmmword ptr [rdi+70h], xmm0
mov [rdi+80h], rax
lea r12, [rdx+10h]
cmp [rdx+10h], al
jz short loc_D278A
lea rdi, [rsp+0D8h+var_80]
xor esi, esi
xor edx, edx
xor ecx, ecx
mov r8d, 2
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tE; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)
jmp short loc_D2797
loc_D278A:
lea rdi, [rsp+0D8h+var_80]
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
loc_D2797:
lea rbp, [rsp+0D8h+var_50]
mov [rbp-10h], rbp
xor r13d, r13d
mov [rbp-8], r13
mov [rbp+0], r13b
mov [rsp+0D8h+var_C1], r13b
lea rdi, [r14+20h]
lea rsi, aRequired; "required"
call _ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_
mov [rbx+38h], al
mov [rsp+0D8h+var_B8], r13
mov edi, 20h ; ' '; unsigned __int64
call __Znwm; operator new(ulong)
mov [rax], r14
lea rcx, [rsp+0D8h+var_C1]
mov [rax+8], rcx
lea rcx, [rsp+0D8h+var_60]
mov [rax+10h], rcx
mov [rax+18h], rbx
lea rsi, [rsp+0D8h+var_C0]
mov [rsi], rax
lea rax, _ZNSt17_Function_handlerIFvRK22common_grammar_builderEZL50common_chat_params_init_functionary_v3_1_llama_3_1RKN5minja13chat_templateERK18common_chat_inputsE3$_0E9_M_invokeERKSt9_Any_dataS2_; std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_invoke(std::_Any_data const&,common_grammar_builder const&)
mov [rsi+18h], rax
lea rax, _ZNSt17_Function_handlerIFvRK22common_grammar_builderEZL50common_chat_params_init_functionary_v3_1_llama_3_1RKN5minja13chat_templateERK18common_chat_inputsE3$_0E10_M_managerERSt9_Any_dataRKSD_St18_Manager_operation; std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_manager(std::_Any_data &,std::_Any_data const&,std::_Manager_operation)
mov [rsi+10h], rax
lea rdx, _ZL15grammar_options; grammar_options
lea rdi, [rsp+0D8h+var_A0]
call _Z13build_grammarB5cxx11RKSt8functionIFvRK22common_grammar_builderEERK22common_grammar_options; build_grammar(std::function<void ()(common_grammar_builder const&)> const&,common_grammar_options const&)
lea rdi, [rbx+18h]
lea r13, [rsp+0D8h+var_A0]
mov rsi, r13
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_; std::string::operator=(std::string&&)
mov rdi, [r13+0]; void *
lea r13, [rsp+0D8h+var_90]
cmp rdi, r13
jz short loc_D2849
mov rsi, [rsp+0D8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_D2849:
mov rax, [rsp+0D8h+var_B0]
test rax, rax
jz short loc_D2862
lea rdi, [rsp+0D8h+var_C0]
mov rsi, rdi
mov edx, 3
call rax
loc_D2862:
movzx eax, byte ptr [r12]
test eax, eax
jz short loc_D2891
cmp eax, 2
jz short loc_D2875
cmp eax, 1
jnz short loc_D2882
loc_D2875:
mov rax, [r14+18h]
mov rcx, [rax]
cmp rcx, [rax+8]
jz short loc_D2891
loc_D2882:
lea rdi, [rsp+0D8h+var_C0]
mov rsi, r12
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2ERKSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::basic_json(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&)
jmp short loc_D289F
loc_D2891:
mov [rsp+0D8h+var_C0], 0
mov [rsp+0D8h+var_B8], 0
loc_D289F:
movzx r8d, byte ptr [r14+68h]
lea r9, [rsp+0D8h+var_70]
mov byte ptr [r9], 0
mov qword ptr [r9+8], 0
mov [rsp+0D8h+var_D8], 1
lea rdi, [rsp+0D8h+var_A0]
lea rcx, [rsp+0D8h+var_C0]
mov rsi, r15
mov rdx, r14
call _ZNK5minja13chat_template5applyERKN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES5_IhSaIhEEvEESH_bSH_b; minja::chat_template::apply(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,bool,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&,bool)
lea rdi, [rsp+0D8h+var_40]
lea rsi, [rsp+0D8h+var_A0]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_
mov al, [rbx+8]
lea rdi, [rsp+0D8h+var_40]
mov cl, [rdi]
mov [rbx+8], cl
mov [rdi], al
mov rax, [rbx+10h]
mov rcx, [rdi+8]
mov [rbx+10h], rcx
mov [rdi+8], rax
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov rdi, [rsp+0D8h+var_A0]; void *
cmp rdi, r13
jz short loc_D2921
mov rsi, [rsp+0D8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_D2921:
lea rdi, [rsp+0D8h+var_70]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
lea rdi, [rsp+0D8h+var_C0]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
mov dword ptr [rbx], 8
mov rdi, [rsp+0D8h+var_60]; void *
cmp rdi, rbp
jz short loc_D2955
mov rsi, [rsp+0D8h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_D2955:
lea rdi, [rsp+0D8h+var_80]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
add rsp, 0A8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_D29D0
jmp short loc_D29C8
mov r14, rax
mov rdi, [rsp+0D8h+var_A0]; void *
cmp rdi, r13
jz short loc_D2994
mov rsi, [rsp+0D8h+var_90]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
jmp short loc_D2994
mov r14, rax
loc_D2994:
lea rdi, [rsp+0D8h+var_70]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
lea rdi, [rsp+0D8h+var_C0]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
jmp short loc_D29D3
mov r14, rax
mov rax, [rsp+0D8h+var_B0]
test rax, rax
jz short loc_D29D3
lea rdi, [rsp+0D8h+var_C0]
mov rsi, rdi
mov edx, 3
call rax
jmp short loc_D29D3
loc_D29C8:
mov rdi, rax
call __clang_call_terminate
loc_D29D0:
mov r14, rax
loc_D29D3:
mov rdi, [rsp+0D8h+var_60]; void *
cmp rdi, rbp
jz short loc_D29ED
mov rsi, [rsp+0D8h+var_50]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_D29ED:
lea rdi, [rsp+0D8h+var_80]
call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data()
loc_D29F7:
mov rdi, rbx; this
call _ZN18common_chat_paramsD2Ev; common_chat_params::~common_chat_params()
mov rdi, r14
call __Unwind_Resume
mov r14, rax
jmp short loc_D29F7
| long long common_chat_params_init_functionary_v3_1_llama_3_1(
const minja::chat_template *a1,
const common_chat_inputs *a2,
long long a3)
{
unsigned __int8 *v4; // r12
_QWORD *v5; // rax
int v6; // r8d
int v7; // r9d
int v8; // eax
int v9; // r8d
char v10; // al
long long v11; // rax
char v13; // [rsp+17h] [rbp-C1h] BYREF
_QWORD *v14; // [rsp+18h] [rbp-C0h] BYREF
long long v15; // [rsp+20h] [rbp-B8h]
long long ( *v16)(); // [rsp+28h] [rbp-B0h]
long long ( *v17)(); // [rsp+30h] [rbp-A8h]
void *v18[2]; // [rsp+38h] [rbp-A0h] BYREF
_QWORD v19[2]; // [rsp+48h] [rbp-90h] BYREF
unsigned __int8 v20[16]; // [rsp+58h] [rbp-80h] BYREF
_BYTE v21[8]; // [rsp+68h] [rbp-70h] BYREF
long long v22; // [rsp+70h] [rbp-68h]
void *v23[2]; // [rsp+78h] [rbp-60h] BYREF
_QWORD v24[2]; // [rsp+88h] [rbp-50h] BYREF
char v25[8]; // [rsp+98h] [rbp-40h] BYREF
long long v26; // [rsp+A0h] [rbp-38h]
*(_DWORD *)a1 = 0;
*((_BYTE *)a1 + 8) = 0;
*((_QWORD *)a1 + 2) = 0LL;
*((_QWORD *)a1 + 3) = (char *)a1 + 40;
*((_QWORD *)a1 + 4) = 0LL;
*((_BYTE *)a1 + 40) = 0;
*((_BYTE *)a1 + 56) = 0;
*((_OWORD *)a1 + 4) = 0LL;
*((_OWORD *)a1 + 5) = 0LL;
*((_OWORD *)a1 + 6) = 0LL;
*((_OWORD *)a1 + 7) = 0LL;
*((_QWORD *)a1 + 16) = 0LL;
v4 = (unsigned __int8 *)(a3 + 16);
if ( *(_BYTE *)(a3 + 16) )
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
v20,
0LL,
0LL,
0LL,
2LL);
else
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
v20,
(unsigned __int8 *)(a3 + 16));
v23[0] = v24;
v23[1] = 0LL;
LOBYTE(v24[0]) = 0;
v13 = 0;
*((_BYTE *)a1 + 56) = ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_(
a3 + 32,
(long long)"required");
v15 = 0LL;
v5 = (_QWORD *)operator new(0x20uLL);
*v5 = a3;
v5[1] = &v13;
v5[2] = v23;
v5[3] = a1;
v14 = v5;
v17 = std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_invoke;
v16 = std::_Function_handler<void ()(common_grammar_builder const&),common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template const&,common_chat_inputs const&)::$_0>::_M_manager;
build_grammar[abi:cxx11]((long long)v18, (long long)&v14, grammar_options, (long long)v23, v6, v7);
std::string::operator=((char *)a1 + 24, v18);
if ( v18[0] != v19 )
operator delete(v18[0], v19[0] + 1LL);
if ( v16 )
((void ( *)(_QWORD **, _QWORD **, long long))v16)(&v14, &v14, 3LL);
v8 = *v4;
if ( !*v4 || (v8 == 2 || v8 == 1) && **(_QWORD **)(a3 + 24) == *(_QWORD *)(*(_QWORD *)(a3 + 24) + 8LL) )
{
LOBYTE(v14) = 0;
v15 = 0LL;
}
else
{
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(
(unsigned __int8 *)&v14,
v4);
}
v9 = *(unsigned __int8 *)(a3 + 104);
v21[0] = 0;
v22 = 0LL;
minja::chat_template::apply((long long)v18, a2, (unsigned __int8 *)a3, (unsigned __int8 *)&v14, v9, v21, 1);
ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_(v25);
v10 = *((_BYTE *)a1 + 8);
*((_BYTE *)a1 + 8) = v25[0];
v25[0] = v10;
v11 = *((_QWORD *)a1 + 2);
*((_QWORD *)a1 + 2) = v26;
v26 = v11;
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v25);
if ( v18[0] != v19 )
operator delete(v18[0], v19[0] + 1LL);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v21);
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(&v14);
*(_DWORD *)a1 = 8;
if ( v23[0] != v24 )
operator delete(v23[0], v24[0] + 1LL);
return nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v20);
}
| common_chat_params_init_functionary_v3_1_llama_3_1:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xa8
MOV R14,RDX
MOV R15,RSI
MOV RBX,RDI
MOV dword ptr [RDI],0x0
XOR EAX,EAX
MOV byte ptr [RDI + 0x8],AL
MOV qword ptr [RDI + 0x10],RAX
LEA RCX,[RDI + 0x28]
MOV qword ptr [RDI + 0x18],RCX
MOV qword ptr [RDI + 0x20],RAX
MOV byte ptr [RDI + 0x28],AL
MOV byte ptr [RDI + 0x38],AL
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RDI + 0x40],XMM0
MOVUPS xmmword ptr [RDI + 0x50],XMM0
MOVUPS xmmword ptr [RDI + 0x60],XMM0
MOVUPS xmmword ptr [RDI + 0x70],XMM0
MOV qword ptr [RDI + 0x80],RAX
LEA R12,[RDX + 0x10]
CMP byte ptr [RDX + 0x10],AL
JZ 0x001d278a
LAB_001d2772:
LEA RDI,[RSP + 0x58]
XOR ESI,ESI
XOR EDX,EDX
XOR ECX,ECX
MOV R8D,0x2
CALL 0x0017eb6e
JMP 0x001d2797
LAB_001d278a:
LEA RDI,[RSP + 0x58]
MOV RSI,R12
CALL 0x0015d666
LAB_001d2797:
LEA RBP,[RSP + 0x88]
MOV qword ptr [RBP + -0x10],RBP
XOR R13D,R13D
MOV qword ptr [RBP + -0x8],R13
MOV byte ptr [RBP],R13B
MOV byte ptr [RSP + 0x17],R13B
LEA RDI,[R14 + 0x20]
LEA RSI,[0x1f1575]
CALL 0x001a4ec1
MOV byte ptr [RBX + 0x38],AL
MOV qword ptr [RSP + 0x20],R13
LAB_001d27cb:
MOV EDI,0x20
CALL 0x0011b890
MOV qword ptr [RAX],R14
LEA RCX,[RSP + 0x17]
MOV qword ptr [RAX + 0x8],RCX
LEA RCX,[RSP + 0x78]
MOV qword ptr [RAX + 0x10],RCX
MOV qword ptr [RAX + 0x18],RBX
LEA RSI,[RSP + 0x18]
MOV qword ptr [RSI],RAX
LEA RAX,[0x1dc7a6]
MOV qword ptr [RSI + 0x18],RAX
LEA RAX,[0x1dce9a]
MOV qword ptr [RSI + 0x10],RAX
LAB_001d280c:
LEA RDX,[0x1f7698]
LEA RDI,[RSP + 0x38]
CALL 0x001bb030
LEA RDI,[RBX + 0x18]
LEA R13,[RSP + 0x38]
MOV RSI,R13
CALL 0x0011ba70
MOV RDI,qword ptr [R13]
LEA R13,[RSP + 0x48]
CMP RDI,R13
JZ 0x001d2849
MOV RSI,qword ptr [RSP + 0x48]
INC RSI
CALL 0x0011b8b0
LAB_001d2849:
MOV RAX,qword ptr [RSP + 0x28]
TEST RAX,RAX
JZ 0x001d2862
LAB_001d2853:
LEA RDI,[RSP + 0x18]
MOV RSI,RDI
MOV EDX,0x3
CALL RAX
LAB_001d2862:
MOVZX EAX,byte ptr [R12]
TEST EAX,EAX
JZ 0x001d2891
CMP EAX,0x2
JZ 0x001d2875
CMP EAX,0x1
JNZ 0x001d2882
LAB_001d2875:
MOV RAX,qword ptr [R14 + 0x18]
MOV RCX,qword ptr [RAX]
CMP RCX,qword ptr [RAX + 0x8]
JZ 0x001d2891
LAB_001d2882:
LEA RDI,[RSP + 0x18]
MOV RSI,R12
CALL 0x0015d666
JMP 0x001d289f
LAB_001d2891:
MOV byte ptr [RSP + 0x18],0x0
MOV qword ptr [RSP + 0x20],0x0
LAB_001d289f:
MOVZX R8D,byte ptr [R14 + 0x68]
LEA R9,[RSP + 0x68]
MOV byte ptr [R9],0x0
MOV qword ptr [R9 + 0x8],0x0
LAB_001d28b5:
MOV dword ptr [RSP],0x1
LEA RDI,[RSP + 0x38]
LEA RCX,[RSP + 0x18]
MOV RSI,R15
MOV RDX,R14
CALL 0x001a15e0
LAB_001d28d1:
LEA RDI,[RSP + 0x98]
LEA RSI,[RSP + 0x38]
CALL 0x0017f8c2
MOV AL,byte ptr [RBX + 0x8]
LEA RDI,[RSP + 0x98]
MOV CL,byte ptr [RDI]
MOV byte ptr [RBX + 0x8],CL
MOV byte ptr [RDI],AL
MOV RAX,qword ptr [RBX + 0x10]
MOV RCX,qword ptr [RDI + 0x8]
MOV qword ptr [RBX + 0x10],RCX
MOV qword ptr [RDI + 0x8],RAX
CALL 0x0015db32
MOV RDI,qword ptr [RSP + 0x38]
CMP RDI,R13
JZ 0x001d2921
MOV RSI,qword ptr [RSP + 0x48]
INC RSI
CALL 0x0011b8b0
LAB_001d2921:
LEA RDI,[RSP + 0x68]
CALL 0x0015db32
LEA RDI,[RSP + 0x18]
CALL 0x0015db32
MOV dword ptr [RBX],0x8
MOV RDI,qword ptr [RSP + 0x78]
CMP RDI,RBP
JZ 0x001d2955
MOV RSI,qword ptr [RSP + 0x88]
INC RSI
CALL 0x0011b8b0
LAB_001d2955:
LEA RDI,[RSP + 0x58]
CALL 0x0015db32
ADD RSP,0xa8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template const&,
common_chat_inputs const&) */
void common_chat_params_init_functionary_v3_1_llama_3_1
(chat_template *param_1,common_chat_inputs *param_2)
{
basic_json *pbVar1;
basic_json bVar2;
int8 uVar3;
chat_template cVar4;
long in_RDX;
int1 local_c1;
long *local_c0;
int8 local_b8;
code *local_b0;
code *local_a8;
long *local_a0 [2];
long local_90 [2];
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
local_80 [16];
data local_70 [8];
int8 local_68;
int1 *local_60;
int8 local_58;
int1 local_50;
int7 uStack_4f;
chat_template local_40 [8];
int8 local_38;
*(int4 *)param_1 = 0;
param_1[8] = (chat_template)0x0;
*(int8 *)(param_1 + 0x10) = 0;
*(chat_template **)(param_1 + 0x18) = param_1 + 0x28;
*(int8 *)(param_1 + 0x20) = 0;
param_1[0x28] = (chat_template)0x0;
param_1[0x38] = (chat_template)0x0;
*(int8 *)(param_1 + 0x40) = 0;
*(int8 *)(param_1 + 0x48) = 0;
*(int8 *)(param_1 + 0x50) = 0;
*(int8 *)(param_1 + 0x58) = 0;
*(int8 *)(param_1 + 0x60) = 0;
*(int8 *)(param_1 + 0x68) = 0;
*(int8 *)(param_1 + 0x70) = 0;
*(int8 *)(param_1 + 0x78) = 0;
*(int8 *)(param_1 + 0x80) = 0;
pbVar1 = (basic_json *)(in_RDX + 0x10);
if (*(char *)(in_RDX + 0x10) == '\0') {
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_80,pbVar1);
}
else {
/* try { // try from 001d2772 to 001d2796 has its CatchHandler @ 001d2a07 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json(local_80,0,0,0,2);
}
local_58 = 0;
local_50 = 0;
local_c1 = 0;
local_60 = &local_50;
cVar4 = (chat_template)
_ZN8nlohmann16json_abi_v3_11_3neIPKcTnNSt9enable_ifIXsr3std9is_scalarIT_EE5valueEiE4typeELi0EEEbRKNS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerESA_IhSaIhEEvEES5_
(in_RDX + 0x20,"required");
param_1[0x38] = cVar4;
local_b8 = 0;
/* try { // try from 001d27cb to 001d27d4 has its CatchHandler @ 001d29d0 */
local_c0 = (long *)operator_new(0x20);
*local_c0 = in_RDX;
local_c0[1] = (long)&local_c1;
local_c0[2] = (long)&local_60;
local_c0[3] = (long)param_1;
local_a8 = std::
_Function_handler<void(common_grammar_builder_const&),common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template_const&,common_chat_inputs_const&)::$_0>
::_M_invoke;
local_b0 = std::
_Function_handler<void(common_grammar_builder_const&),common_chat_params_init_functionary_v3_1_llama_3_1(minja::chat_template_const&,common_chat_inputs_const&)::$_0>
::_M_manager;
/* try { // try from 001d280c to 001d281c has its CatchHandler @ 001d29aa */
build_grammar_abi_cxx11_((function *)local_a0,(common_grammar_options *)&local_c0);
std::__cxx11::string::operator=((string *)(param_1 + 0x18),(string *)local_a0);
if (local_a0[0] != local_90) {
operator_delete(local_a0[0],local_90[0] + 1);
}
if (local_b0 != (code *)0x0) {
/* try { // try from 001d2853 to 001d2861 has its CatchHandler @ 001d2973 */
(*local_b0)(&local_c0,&local_c0,3);
}
bVar2 = *pbVar1;
if ((bVar2 == (basic_json)0x0) ||
(((bVar2 == (basic_json)0x2 || (bVar2 == (basic_json)0x1)) &&
(**(long **)(in_RDX + 0x18) == (*(long **)(in_RDX + 0x18))[1])))) {
local_c0 = (long *)((ulong)local_c0 & 0xffffffffffffff00);
local_b8 = 0;
}
else {
/* try { // try from 001d2882 to 001d288e has its CatchHandler @ 001d2971 */
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::basic_json((basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)&local_c0,pbVar1);
}
local_70[0] = (data)0x0;
local_68 = 0;
/* try { // try from 001d28b5 to 001d28d0 has its CatchHandler @ 001d2991 */
minja::chat_template::apply
((basic_json *)local_a0,(basic_json *)param_2,SUB81(in_RDX,0),(basic_json *)&local_c0,
*(bool *)(in_RDX + 0x68));
/* try { // try from 001d28d1 to 001d28e2 has its CatchHandler @ 001d2975 */
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2IS9_S9_TnNSt9enable_ifIXaantsr6detail13is_basic_jsonIT0_EE5valuesr6detail18is_compatible_typeISD_SG_EE5valueEiE4typeELi0EEEOT_
(local_40,local_a0);
cVar4 = param_1[8];
param_1[8] = local_40[0];
uVar3 = *(int8 *)(param_1 + 0x10);
*(int8 *)(param_1 + 0x10) = local_38;
local_40[0] = cVar4;
local_38 = uVar3;
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)local_40);
if (local_a0[0] != local_90) {
operator_delete(local_a0[0],local_90[0] + 1);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data(local_70);
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)&local_c0);
*(int4 *)param_1 = 8;
if (local_60 != &local_50) {
operator_delete(local_60,CONCAT71(uStack_4f,local_50) + 1);
}
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::data::~data((data *)local_80);
return;
}
| |
28,260 | my_strnxfrm_win1250ch | eloqsql/strings/ctype-win1250ch.c | static size_t
my_strnxfrm_win1250ch(CHARSET_INFO *cs __attribute__((unused)),
uchar *dest, size_t len,
uint nweights_arg __attribute__((unused)),
const uchar *src, size_t srclen, uint flags)
{
int value;
const uchar *p;
int pass = 0;
size_t totlen = 0;
p = src;
if (!(flags & 0x0F)) /* All levels by default */
flags|= 0x0F;
while (totlen < len)
{
NEXT_CMP_VALUE(src, p, pass, value, (int)srclen);
if (!value)
break;
if ((1 << pass) & flags)
dest[totlen++] = value;
}
if ((flags & MY_STRXFRM_PAD_TO_MAXLEN) && len > totlen)
{
memset(dest + totlen, 0x00, len - totlen);
totlen= len;
}
return totlen;
} | O0 | c | my_strnxfrm_win1250ch:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %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)
movl $0x0, -0x44(%rbp)
movq $0x0, -0x50(%rbp)
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
movl 0x10(%rbp), %eax
andl $0xf, %eax
cmpl $0x0, %eax
jne 0xca040
movl 0x10(%rbp), %eax
orl $0xf, %eax
movl %eax, 0x10(%rbp)
jmp 0xca042
movq -0x50(%rbp), %rax
cmpq -0x18(%rbp), %rax
jae 0xca229
jmp 0xca052
movq -0x40(%rbp), %rax
movq -0x28(%rbp), %rcx
subq %rcx, %rax
movq -0x30(%rbp), %rcx
movslq %ecx, %rcx
cmpq %rcx, %rax
jl 0xca099
cmpl $0x0, -0x44(%rbp)
jne 0xca08b
movq -0x30(%rbp), %rax
cmpl $0x0, %eax
jle 0xca08b
movq -0x28(%rbp), %rax
movq %rax, -0x40(%rbp)
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0xca097
movl $0x0, -0x34(%rbp)
jmp 0xca1ef
jmp 0xca099
cmpl $0x0, -0x44(%rbp)
jne 0xca0b8
movq -0x40(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x14e081(%rip), %rax # 0x218130
movzbl (%rax,%rcx), %eax
movl %eax, -0x6c(%rbp)
jmp 0xca0cf
movq -0x40(%rbp), %rax
movzbl (%rax), %eax
movl %eax, %ecx
leaq 0x3255e8(%rip), %rax # 0x3ef6b0
movzbl (%rax,%rcx), %eax
movl %eax, -0x6c(%rbp)
movl -0x6c(%rbp), %eax
movl %eax, -0x34(%rbp)
cmpl $0xff, -0x34(%rbp)
jne 0xca1e3
movl $0x0, -0x54(%rbp)
cmpl $0x50, -0x54(%rbp)
jge 0xca1e1
movslq -0x54(%rbp), %rcx
leaq 0x16c3c2(%rip), %rax # 0x2364c0
shlq $0x4, %rcx
addq %rcx, %rax
movq (%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x40(%rbp), %rax
movq %rax, -0x68(%rbp)
movq -0x60(%rbp), %rax
movzbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x6d(%rbp)
je 0xca157
movq -0x68(%rbp), %rcx
movq -0x28(%rbp), %rax
subq %rax, %rcx
movq -0x30(%rbp), %rax
movslq %eax, %rdx
xorl %eax, %eax
cmpq %rdx, %rcx
movb %al, -0x6d(%rbp)
jge 0xca157
movq -0x60(%rbp), %rax
movzbl (%rax), %eax
movq -0x68(%rbp), %rcx
movzbl (%rcx), %ecx
cmpl %ecx, %eax
sete %al
movb %al, -0x6d(%rbp)
movb -0x6d(%rbp), %al
testb $0x1, %al
jne 0xca160
jmp 0xca17a
movq -0x60(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x60(%rbp)
movq -0x68(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x68(%rbp)
jmp 0xca114
movq -0x60(%rbp), %rax
cmpb $0x0, (%rax)
jne 0xca1d1
cmpl $0x0, -0x44(%rbp)
jne 0xca1a4
movslq -0x54(%rbp), %rcx
leaq 0x16c32c(%rip), %rax # 0x2364c0
shlq $0x4, %rcx
addq %rcx, %rax
movzbl 0x8(%rax), %eax
movl %eax, -0x74(%rbp)
jmp 0xca1bd
movslq -0x54(%rbp), %rcx
leaq 0x16c311(%rip), %rax # 0x2364c0
shlq $0x4, %rcx
addq %rcx, %rax
movzbl 0x9(%rax), %eax
movl %eax, -0x74(%rbp)
movl -0x74(%rbp), %eax
movl %eax, -0x34(%rbp)
movq -0x68(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0xca1e1
jmp 0xca1d3
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0xca0e9
jmp 0xca1e3
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
cmpl $0x0, -0x34(%rbp)
jne 0xca1f7
jmp 0xca229
movl -0x44(%rbp), %ecx
movl $0x1, %eax
shll %cl, %eax
andl 0x10(%rbp), %eax
cmpl $0x0, %eax
je 0xca224
movl -0x34(%rbp), %eax
movb %al, %dl
movq -0x10(%rbp), %rax
movq -0x50(%rbp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, -0x50(%rbp)
movb %dl, (%rax,%rcx)
jmp 0xca042
movl 0x10(%rbp), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0xca25f
movq -0x18(%rbp), %rax
cmpq -0x50(%rbp), %rax
jbe 0xca25f
movq -0x10(%rbp), %rdi
addq -0x50(%rbp), %rdi
movq -0x18(%rbp), %rdx
subq -0x50(%rbp), %rdx
xorl %esi, %esi
callq 0x281d0
movq -0x18(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax)
| my_strnxfrm_win1250ch:
push rbp
mov rbp, rsp
sub rsp, 80h
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 [rbp+var_44], 0
mov [rbp+var_50], 0
mov rax, [rbp+var_28]
mov [rbp+var_40], rax
mov eax, [rbp+arg_0]
and eax, 0Fh
cmp eax, 0
jnz short loc_CA040
mov eax, [rbp+arg_0]
or eax, 0Fh
mov [rbp+arg_0], eax
loc_CA040:
jmp short $+2
loc_CA042:
mov rax, [rbp+var_50]
cmp rax, [rbp+var_18]
jnb loc_CA229
jmp short $+2
loc_CA052:
mov rax, [rbp+var_40]
mov rcx, [rbp+var_28]
sub rax, rcx
mov rcx, [rbp+var_30]
movsxd rcx, ecx
cmp rax, rcx
jl short loc_CA099
cmp [rbp+var_44], 0
jnz short loc_CA08B
mov rax, [rbp+var_30]
cmp eax, 0
jle short loc_CA08B
mov rax, [rbp+var_28]
mov [rbp+var_40], rax
mov eax, [rbp+var_44]
add eax, 1
mov [rbp+var_44], eax
jmp short loc_CA097
loc_CA08B:
mov [rbp+var_34], 0
jmp loc_CA1EF
loc_CA097:
jmp short $+2
loc_CA099:
cmp [rbp+var_44], 0
jnz short loc_CA0B8
mov rax, [rbp+var_40]
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, _sort_order_win1250ch1
movzx eax, byte ptr [rax+rcx]
mov [rbp+var_6C], eax
jmp short loc_CA0CF
loc_CA0B8:
mov rax, [rbp+var_40]
movzx eax, byte ptr [rax]
mov ecx, eax
lea rax, _sort_order_win1250ch2
movzx eax, byte ptr [rax+rcx]
mov [rbp+var_6C], eax
loc_CA0CF:
mov eax, [rbp+var_6C]
mov [rbp+var_34], eax
cmp [rbp+var_34], 0FFh
jnz loc_CA1E3
mov [rbp+var_54], 0
loc_CA0E9:
cmp [rbp+var_54], 50h ; 'P'
jge loc_CA1E1
movsxd rcx, [rbp+var_54]
lea rax, doubles_0
shl rcx, 4
add rax, rcx
mov rax, [rax]
mov [rbp+var_60], rax
mov rax, [rbp+var_40]
mov [rbp+var_68], rax
loc_CA114:
mov rax, [rbp+var_60]
movzx ecx, byte ptr [rax]
xor eax, eax
cmp ecx, 0
mov [rbp+var_6D], al
jz short loc_CA157
mov rcx, [rbp+var_68]
mov rax, [rbp+var_28]
sub rcx, rax
mov rax, [rbp+var_30]
movsxd rdx, eax
xor eax, eax
cmp rcx, rdx
mov [rbp+var_6D], al
jge short loc_CA157
mov rax, [rbp+var_60]
movzx eax, byte ptr [rax]
mov rcx, [rbp+var_68]
movzx ecx, byte ptr [rcx]
cmp eax, ecx
setz al
mov [rbp+var_6D], al
loc_CA157:
mov al, [rbp+var_6D]
test al, 1
jnz short loc_CA160
jmp short loc_CA17A
loc_CA160:
mov rax, [rbp+var_60]
add rax, 1
mov [rbp+var_60], rax
mov rax, [rbp+var_68]
add rax, 1
mov [rbp+var_68], rax
jmp short loc_CA114
loc_CA17A:
mov rax, [rbp+var_60]
cmp byte ptr [rax], 0
jnz short loc_CA1D1
cmp [rbp+var_44], 0
jnz short loc_CA1A4
movsxd rcx, [rbp+var_54]
lea rax, doubles_0
shl rcx, 4
add rax, rcx
movzx eax, byte ptr [rax+8]
mov [rbp+var_74], eax
jmp short loc_CA1BD
loc_CA1A4:
movsxd rcx, [rbp+var_54]
lea rax, doubles_0
shl rcx, 4
add rax, rcx
movzx eax, byte ptr [rax+9]
mov [rbp+var_74], eax
loc_CA1BD:
mov eax, [rbp+var_74]
mov [rbp+var_34], eax
mov rax, [rbp+var_68]
add rax, 0FFFFFFFFFFFFFFFFh
mov [rbp+var_40], rax
jmp short loc_CA1E1
loc_CA1D1:
jmp short $+2
loc_CA1D3:
mov eax, [rbp+var_54]
add eax, 1
mov [rbp+var_54], eax
jmp loc_CA0E9
loc_CA1E1:
jmp short $+2
loc_CA1E3:
mov rax, [rbp+var_40]
add rax, 1
mov [rbp+var_40], rax
loc_CA1EF:
cmp [rbp+var_34], 0
jnz short loc_CA1F7
jmp short loc_CA229
loc_CA1F7:
mov ecx, [rbp+var_44]
mov eax, 1
shl eax, cl
and eax, [rbp+arg_0]
cmp eax, 0
jz short loc_CA224
mov eax, [rbp+var_34]
mov dl, al
mov rax, [rbp+var_10]
mov rcx, [rbp+var_50]
mov rsi, rcx
add rsi, 1
mov [rbp+var_50], rsi
mov [rax+rcx], dl
loc_CA224:
jmp loc_CA042
loc_CA229:
mov eax, [rbp+arg_0]
and eax, 80h
cmp eax, 0
jz short loc_CA25F
mov rax, [rbp+var_18]
cmp rax, [rbp+var_50]
jbe short loc_CA25F
mov rdi, [rbp+var_10]
add rdi, [rbp+var_50]
mov rdx, [rbp+var_18]
sub rdx, [rbp+var_50]
xor esi, esi
call _memset
mov rax, [rbp+var_18]
mov [rbp+var_50], rax
loc_CA25F:
mov rax, [rbp+var_50]
add rsp, 80h
pop rbp
retn
| unsigned long long my_strnxfrm_win1250ch(
long long a1,
long long a2,
unsigned long long a3,
long long a4,
unsigned __int8 *a5,
int a6,
int a7)
{
long long v7; // rcx
int v9; // [rsp+Ch] [rbp-74h]
bool v10; // [rsp+13h] [rbp-6Dh]
int v11; // [rsp+14h] [rbp-6Ch]
unsigned __int8 *j; // [rsp+18h] [rbp-68h]
_BYTE *v13; // [rsp+20h] [rbp-60h]
int i; // [rsp+2Ch] [rbp-54h]
unsigned long long v15; // [rsp+30h] [rbp-50h]
int v16; // [rsp+3Ch] [rbp-44h]
unsigned __int8 *v17; // [rsp+40h] [rbp-40h]
int v18; // [rsp+4Ch] [rbp-34h]
v16 = 0;
v15 = 0LL;
v17 = a5;
if ( (a7 & 0xF) == 0 )
a7 |= 0xFu;
while ( v15 < a3 )
{
if ( v17 - a5 >= a6 )
{
if ( v16 || a6 <= 0 )
{
v18 = 0;
goto LABEL_28;
}
v17 = a5;
v16 = 1;
}
if ( v16 )
v11 = sort_order_win1250ch2[*v17];
else
v11 = sort_order_win1250ch1[*v17];
v18 = v11;
if ( v11 == 255 )
{
for ( i = 0; i < 80; ++i )
{
v13 = *(&doubles_0 + 2 * i);
for ( j = v17; ; ++j )
{
v10 = 0;
if ( *v13 )
{
v10 = 0;
if ( j - a5 < a6 )
v10 = (unsigned __int8)*v13 == *j;
}
if ( !v10 )
break;
++v13;
}
if ( !*v13 )
{
if ( v16 )
v9 = *((unsigned __int8 *)&doubles_0 + 16 * i + 9);
else
v9 = *((unsigned __int8 *)&doubles_0 + 16 * i + 8);
v18 = v9;
v17 = j - 1;
break;
}
}
}
++v17;
LABEL_28:
if ( !v18 )
break;
if ( (a7 & (1 << v16)) != 0 )
{
v7 = v15++;
*(_BYTE *)(a2 + v7) = v18;
}
}
if ( (a7 & 0x80) != 0 && a3 > v15 )
{
memset(v15 + a2, 0LL, a3 - v15);
return a3;
}
return v15;
}
| my_strnxfrm_win1250ch:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x80
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 dword ptr [RBP + -0x44],0x0
MOV qword ptr [RBP + -0x50],0x0
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x40],RAX
MOV EAX,dword ptr [RBP + 0x10]
AND EAX,0xf
CMP EAX,0x0
JNZ 0x001ca040
MOV EAX,dword ptr [RBP + 0x10]
OR EAX,0xf
MOV dword ptr [RBP + 0x10],EAX
LAB_001ca040:
JMP 0x001ca042
LAB_001ca042:
MOV RAX,qword ptr [RBP + -0x50]
CMP RAX,qword ptr [RBP + -0x18]
JNC 0x001ca229
JMP 0x001ca052
LAB_001ca052:
MOV RAX,qword ptr [RBP + -0x40]
MOV RCX,qword ptr [RBP + -0x28]
SUB RAX,RCX
MOV RCX,qword ptr [RBP + -0x30]
MOVSXD RCX,ECX
CMP RAX,RCX
JL 0x001ca099
CMP dword ptr [RBP + -0x44],0x0
JNZ 0x001ca08b
MOV RAX,qword ptr [RBP + -0x30]
CMP EAX,0x0
JLE 0x001ca08b
MOV RAX,qword ptr [RBP + -0x28]
MOV qword ptr [RBP + -0x40],RAX
MOV EAX,dword ptr [RBP + -0x44]
ADD EAX,0x1
MOV dword ptr [RBP + -0x44],EAX
JMP 0x001ca097
LAB_001ca08b:
MOV dword ptr [RBP + -0x34],0x0
JMP 0x001ca1ef
LAB_001ca097:
JMP 0x001ca099
LAB_001ca099:
CMP dword ptr [RBP + -0x44],0x0
JNZ 0x001ca0b8
MOV RAX,qword ptr [RBP + -0x40]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x318130]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV dword ptr [RBP + -0x6c],EAX
JMP 0x001ca0cf
LAB_001ca0b8:
MOV RAX,qword ptr [RBP + -0x40]
MOVZX EAX,byte ptr [RAX]
MOV ECX,EAX
LEA RAX,[0x4ef6b0]
MOVZX EAX,byte ptr [RAX + RCX*0x1]
MOV dword ptr [RBP + -0x6c],EAX
LAB_001ca0cf:
MOV EAX,dword ptr [RBP + -0x6c]
MOV dword ptr [RBP + -0x34],EAX
CMP dword ptr [RBP + -0x34],0xff
JNZ 0x001ca1e3
MOV dword ptr [RBP + -0x54],0x0
LAB_001ca0e9:
CMP dword ptr [RBP + -0x54],0x50
JGE 0x001ca1e1
MOVSXD RCX,dword ptr [RBP + -0x54]
LEA RAX,[0x3364c0]
SHL RCX,0x4
ADD RAX,RCX
MOV RAX,qword ptr [RAX]
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x40]
MOV qword ptr [RBP + -0x68],RAX
LAB_001ca114:
MOV RAX,qword ptr [RBP + -0x60]
MOVZX ECX,byte ptr [RAX]
XOR EAX,EAX
CMP ECX,0x0
MOV byte ptr [RBP + -0x6d],AL
JZ 0x001ca157
MOV RCX,qword ptr [RBP + -0x68]
MOV RAX,qword ptr [RBP + -0x28]
SUB RCX,RAX
MOV RAX,qword ptr [RBP + -0x30]
MOVSXD RDX,EAX
XOR EAX,EAX
CMP RCX,RDX
MOV byte ptr [RBP + -0x6d],AL
JGE 0x001ca157
MOV RAX,qword ptr [RBP + -0x60]
MOVZX EAX,byte ptr [RAX]
MOV RCX,qword ptr [RBP + -0x68]
MOVZX ECX,byte ptr [RCX]
CMP EAX,ECX
SETZ AL
MOV byte ptr [RBP + -0x6d],AL
LAB_001ca157:
MOV AL,byte ptr [RBP + -0x6d]
TEST AL,0x1
JNZ 0x001ca160
JMP 0x001ca17a
LAB_001ca160:
MOV RAX,qword ptr [RBP + -0x60]
ADD RAX,0x1
MOV qword ptr [RBP + -0x60],RAX
MOV RAX,qword ptr [RBP + -0x68]
ADD RAX,0x1
MOV qword ptr [RBP + -0x68],RAX
JMP 0x001ca114
LAB_001ca17a:
MOV RAX,qword ptr [RBP + -0x60]
CMP byte ptr [RAX],0x0
JNZ 0x001ca1d1
CMP dword ptr [RBP + -0x44],0x0
JNZ 0x001ca1a4
MOVSXD RCX,dword ptr [RBP + -0x54]
LEA RAX,[0x3364c0]
SHL RCX,0x4
ADD RAX,RCX
MOVZX EAX,byte ptr [RAX + 0x8]
MOV dword ptr [RBP + -0x74],EAX
JMP 0x001ca1bd
LAB_001ca1a4:
MOVSXD RCX,dword ptr [RBP + -0x54]
LEA RAX,[0x3364c0]
SHL RCX,0x4
ADD RAX,RCX
MOVZX EAX,byte ptr [RAX + 0x9]
MOV dword ptr [RBP + -0x74],EAX
LAB_001ca1bd:
MOV EAX,dword ptr [RBP + -0x74]
MOV dword ptr [RBP + -0x34],EAX
MOV RAX,qword ptr [RBP + -0x68]
ADD RAX,-0x1
MOV qword ptr [RBP + -0x40],RAX
JMP 0x001ca1e1
LAB_001ca1d1:
JMP 0x001ca1d3
LAB_001ca1d3:
MOV EAX,dword ptr [RBP + -0x54]
ADD EAX,0x1
MOV dword ptr [RBP + -0x54],EAX
JMP 0x001ca0e9
LAB_001ca1e1:
JMP 0x001ca1e3
LAB_001ca1e3:
MOV RAX,qword ptr [RBP + -0x40]
ADD RAX,0x1
MOV qword ptr [RBP + -0x40],RAX
LAB_001ca1ef:
CMP dword ptr [RBP + -0x34],0x0
JNZ 0x001ca1f7
JMP 0x001ca229
LAB_001ca1f7:
MOV ECX,dword ptr [RBP + -0x44]
MOV EAX,0x1
SHL EAX,CL
AND EAX,dword ptr [RBP + 0x10]
CMP EAX,0x0
JZ 0x001ca224
MOV EAX,dword ptr [RBP + -0x34]
MOV DL,AL
MOV RAX,qword ptr [RBP + -0x10]
MOV RCX,qword ptr [RBP + -0x50]
MOV RSI,RCX
ADD RSI,0x1
MOV qword ptr [RBP + -0x50],RSI
MOV byte ptr [RAX + RCX*0x1],DL
LAB_001ca224:
JMP 0x001ca042
LAB_001ca229:
MOV EAX,dword ptr [RBP + 0x10]
AND EAX,0x80
CMP EAX,0x0
JZ 0x001ca25f
MOV RAX,qword ptr [RBP + -0x18]
CMP RAX,qword ptr [RBP + -0x50]
JBE 0x001ca25f
MOV RDI,qword ptr [RBP + -0x10]
ADD RDI,qword ptr [RBP + -0x50]
MOV RDX,qword ptr [RBP + -0x18]
SUB RDX,qword ptr [RBP + -0x50]
XOR ESI,ESI
CALL 0x001281d0
MOV RAX,qword ptr [RBP + -0x18]
MOV qword ptr [RBP + -0x50],RAX
LAB_001ca25f:
MOV RAX,qword ptr [RBP + -0x50]
ADD RSP,0x80
POP RBP
RET
|
ulong my_strnxfrm_win1250ch
(int8 param_1,long param_2,ulong param_3,int8 param_4,byte *param_5,
int param_6,uint param_7)
{
char cVar1;
bool bVar2;
bool bVar3;
byte *local_70;
byte *local_68;
int local_5c;
ulong local_58;
byte *local_48;
bVar2 = false;
local_58 = 0;
local_48 = param_5;
if ((param_7 & 0xf) == 0) {
param_7 = param_7 | 0xf;
}
while (local_58 < param_3) {
if ((long)local_48 - (long)param_5 < (long)param_6) {
LAB_001ca099:
if (bVar2) {
cVar1 = _sort_order_win1250ch2[*local_48];
}
else {
cVar1 = _sort_order_win1250ch1[*local_48];
}
if (cVar1 == -1) {
for (local_5c = 0; local_5c < 0x50; local_5c = local_5c + 1) {
local_68 = *(byte **)(doubles + (long)local_5c * 0x10);
local_70 = local_48;
while( true ) {
bVar3 = false;
if ((*local_68 != 0) && (bVar3 = false, (long)local_70 - (long)param_5 < (long)param_6))
{
bVar3 = *local_68 == *local_70;
}
if (!bVar3) break;
local_68 = local_68 + 1;
local_70 = local_70 + 1;
}
if (*local_68 == 0) {
if (bVar2) {
cVar1 = doubles[(long)local_5c * 0x10 + 9];
}
else {
cVar1 = doubles[(long)local_5c * 0x10 + 8];
}
local_48 = local_70 + -1;
break;
}
}
}
local_48 = local_48 + 1;
}
else {
if ((!bVar2) && (0 < param_6)) {
bVar2 = true;
local_48 = param_5;
goto LAB_001ca099;
}
cVar1 = '\0';
}
if (cVar1 == '\0') break;
if ((1 << bVar2 & param_7) != 0) {
*(char *)(param_2 + local_58) = cVar1;
local_58 = local_58 + 1;
}
}
if (((param_7 & 0x80) != 0) && (local_58 < param_3)) {
memset((void *)(param_2 + local_58),0,param_3 - local_58);
local_58 = param_3;
}
return local_58;
}
| |
28,261 | POINTonE2_affine_Compress_BE | corpus-core[P]colibri-stateless/build_O3/_deps/blst-src/src/e2.c | static limb_t POINTonE2_affine_Compress_BE(unsigned char out[96],
const POINTonE2_affine *in)
{
vec384 temp;
from_fp(temp, in->X[1]);
be_bytes_from_limbs(out, temp, sizeof(temp));
from_fp(temp, in->X[0]);
be_bytes_from_limbs(out + 48, temp, sizeof(temp));
return sgn0_pty_mont_384x(in->Y, BLS12_381_P, p0);
} | O3 | c | POINTonE2_affine_Compress_BE:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %r15
movabsq $-0x760c000300030003, %rbx # imm = 0x89F3FFFCFFFCFFFD
addq $0x30, %rsi
leaq 0x30143(%rip), %rdx # 0x8a910
leaq -0x50(%rbp), %rdi
movq %rbx, %rcx
callq 0x727c0
movl $0x2f, %eax
movl $0x178, %edx # imm = 0x178
movq %r15, %rsi
movq %rax, %rcx
andq $-0x8, %rcx
movq -0x50(%rbp,%rcx), %rdi
movl %edx, %ecx
andb $0x38, %cl
shrq %cl, %rdi
movb %dil, (%rsi)
incq %rsi
addq $-0x8, %rdx
addq $-0x1, %rax
jb 0x5a7e6
leaq 0x300ff(%rip), %rdx # 0x8a910
leaq -0x50(%rbp), %rdi
movq %r14, %rsi
movq %rbx, %rcx
callq 0x727c0
addq $0x30, %r15
movl $0x2f, %eax
movl $0x178, %edx # imm = 0x178
movq %rax, %rcx
andq $-0x8, %rcx
movq -0x50(%rbp,%rcx), %rsi
movl %edx, %ecx
andb $0x38, %cl
shrq %cl, %rsi
movb %sil, (%r15)
incq %r15
addq $-0x8, %rdx
addq $-0x1, %rax
jb 0x5a82e
addq $0x60, %r14
leaq 0x300b3(%rip), %rsi # 0x8a910
movq %r14, %rdi
movq %rbx, %rdx
callq 0x72d20
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
| POINTonE2_affine_Compress_BE:
push rbp
mov rbp, rsp
push r15
push r14
push rbx
sub rsp, 38h
mov r14, rsi
mov r15, rdi
mov rbx, 89F3FFFCFFFCFFFDh
add rsi, 30h ; '0'
lea rdx, BLS12_381_P
lea rdi, [rbp+var_50]
mov rcx, rbx
call from_mont_384
mov eax, 2Fh ; '/'
mov edx, 178h
mov rsi, r15
loc_5A7E6:
mov rcx, rax
and rcx, 0FFFFFFFFFFFFFFF8h
mov rdi, [rbp+rcx+var_50]
mov ecx, edx
and cl, 38h
shr rdi, cl
mov [rsi], dil
inc rsi
add rdx, 0FFFFFFFFFFFFFFF8h
add rax, 0FFFFFFFFFFFFFFFFh
jb short loc_5A7E6
lea rdx, BLS12_381_P
lea rdi, [rbp+var_50]
mov rsi, r14
mov rcx, rbx
call from_mont_384
add r15, 30h ; '0'
mov eax, 2Fh ; '/'
mov edx, 178h
loc_5A82E:
mov rcx, rax
and rcx, 0FFFFFFFFFFFFFFF8h
mov rsi, [rbp+rcx+var_50]
mov ecx, edx
and cl, 38h
shr rsi, cl
mov [r15], sil
inc r15
add rdx, 0FFFFFFFFFFFFFFF8h
add rax, 0FFFFFFFFFFFFFFFFh
jb short loc_5A82E
add r14, 60h ; '`'
lea rsi, BLS12_381_P
mov rdi, r14
mov rdx, rbx
call sgn0_pty_mont_384x
add rsp, 38h
pop rbx
pop r14
pop r15
pop rbp
retn
| long long POINTonE2_affine_Compress_BE(_BYTE *a1, long long a2)
{
long long v3; // rax
long long v4; // rdx
_BYTE *v5; // rsi
bool v6; // cf
_BYTE *v7; // r15
long long v8; // rax
long long v9; // rdx
_QWORD v11[10]; // [rsp+0h] [rbp-50h] BYREF
from_mont_384(v11, a2 + 48, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
v3 = 47LL;
v4 = 376LL;
v5 = a1;
do
{
*v5++ = *(_QWORD *)((char *)v11 + (v3 & 0xFFFFFFFFFFFFFFF8LL)) >> (v4 & 0x38);
v4 -= 8LL;
v6 = v3-- != 0;
}
while ( v6 );
from_mont_384(v11, a2, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
v7 = a1 + 48;
v8 = 47LL;
v9 = 376LL;
do
{
*v7++ = *(_QWORD *)((char *)v11 + (v8 & 0xFFFFFFFFFFFFFFF8LL)) >> (v9 & 0x38);
v9 -= 8LL;
v6 = v8-- != 0;
}
while ( v6 );
return sgn0_pty_mont_384x(a2 + 96, &BLS12_381_P, 0x89F3FFFCFFFCFFFDLL);
}
| POINTonE2_affine_Compress_BE:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x38
MOV R14,RSI
MOV R15,RDI
MOV RBX,-0x760c000300030003
ADD RSI,0x30
LEA RDX,[0x18a910]
LEA RDI,[RBP + -0x50]
MOV RCX,RBX
CALL 0x001727c0
MOV EAX,0x2f
MOV EDX,0x178
MOV RSI,R15
LAB_0015a7e6:
MOV RCX,RAX
AND RCX,-0x8
MOV RDI,qword ptr [RBP + RCX*0x1 + -0x50]
MOV ECX,EDX
AND CL,0x38
SHR RDI,CL
MOV byte ptr [RSI],DIL
INC RSI
ADD RDX,-0x8
ADD RAX,-0x1
JC 0x0015a7e6
LEA RDX,[0x18a910]
LEA RDI,[RBP + -0x50]
MOV RSI,R14
MOV RCX,RBX
CALL 0x001727c0
ADD R15,0x30
MOV EAX,0x2f
MOV EDX,0x178
LAB_0015a82e:
MOV RCX,RAX
AND RCX,-0x8
MOV RSI,qword ptr [RBP + RCX*0x1 + -0x50]
MOV ECX,EDX
AND CL,0x38
SHR RSI,CL
MOV byte ptr [R15],SIL
INC R15
ADD RDX,-0x8
ADD RAX,-0x1
JC 0x0015a82e
ADD R14,0x60
LEA RSI,[0x18a910]
MOV RDI,R14
MOV RDX,RBX
CALL 0x00172d20
ADD RSP,0x38
POP RBX
POP R14
POP R15
POP RBP
RET
|
void POINTonE2_affine_Compress_BE(int1 *param_1,long param_2)
{
ulong uVar1;
byte bVar2;
int1 *puVar3;
bool bVar4;
ulong local_58 [7];
from_mont_384(local_58,param_2 + 0x30,BLS12_381_P,0x89f3fffcfffcfffd);
uVar1 = 0x2f;
bVar2 = 0x78;
puVar3 = param_1;
do {
*puVar3 = (char)(*(ulong *)((long)local_58 + (uVar1 & 0xfffffffffffffff8)) >> (bVar2 & 0x38));
puVar3 = puVar3 + 1;
bVar2 = bVar2 - 8;
bVar4 = uVar1 != 0;
uVar1 = uVar1 - 1;
} while (bVar4);
from_mont_384(local_58,param_2,BLS12_381_P,0x89f3fffcfffcfffd);
param_1 = param_1 + 0x30;
uVar1 = 0x2f;
bVar2 = 0x78;
do {
*param_1 = (char)(*(ulong *)((long)local_58 + (uVar1 & 0xfffffffffffffff8)) >> (bVar2 & 0x38));
param_1 = param_1 + 1;
bVar2 = bVar2 - 8;
bVar4 = uVar1 != 0;
uVar1 = uVar1 - 1;
} while (bVar4);
sgn0_pty_mont_384x(param_2 + 0x60,BLS12_381_P,0x89f3fffcfffcfffd);
return;
}
| |
28,262 | lo0bits | eloqsql/libmariadb/libmariadb/ma_dtoa.c | static int lo0bits(ULong *y)
{
register int k;
register ULong x= *y;
if (x & 7)
{
if (x & 1)
return 0;
if (x & 2)
{
*y= x >> 1;
return 1;
}
*y= x >> 2;
return 2;
}
k= 0;
if (!(x & 0xffff))
{
k= 16;
x>>= 16;
}
if (!(x & 0xff))
{
k+= 8;
x>>= 8;
}
if (!(x & 0xf))
{
k+= 4;
x>>= 4;
}
if (!(x & 0x3))
{
k+= 2;
x>>= 2;
}
if (!(x & 1))
{
k++;
x>>= 1;
if (!x)
return 32;
}
*y= x;
return k;
} | O3 | c | lo0bits:
pushq %rbp
movq %rsp, %rbp
movl (%rdi), %ecx
testb $0x7, %cl
je 0x27f08
xorl %eax, %eax
testb $0x1, %cl
jne 0x27f6f
testb $0x2, %cl
jne 0x27f66
shrl $0x2, %ecx
movl $0x2, %eax
jmp 0x27f6d
movl %ecx, %eax
shrl $0x10, %eax
xorl %edx, %edx
testl $0xfff8, %ecx # imm = 0xFFF8
cmovnel %ecx, %eax
sete %dl
shll $0x4, %edx
leal 0x8(%rdx), %ecx
movl %eax, %esi
shrl $0x8, %esi
testb %al, %al
cmovnel %edx, %ecx
cmovnel %eax, %esi
leal 0x4(%rcx), %edx
movl %esi, %r8d
shrl $0x4, %r8d
testb $0xf, %sil
cmovnel %ecx, %edx
cmovnel %esi, %r8d
leal 0x2(%rdx), %eax
movl %r8d, %ecx
shrl $0x2, %ecx
testb $0x3, %r8b
cmovnel %edx, %eax
cmovnel %r8d, %ecx
testb $0x1, %cl
jne 0x27f6d
testl %ecx, %ecx
je 0x27f71
incl %eax
shrl %ecx
jmp 0x27f6d
shrl %ecx
movl $0x1, %eax
movl %ecx, (%rdi)
popq %rbp
retq
movl $0x20, %eax
jmp 0x27f6f
| lo0bits:
push rbp
mov rbp, rsp
mov ecx, [rdi]
test cl, 7
jz short loc_27F08
xor eax, eax
test cl, 1
jnz short loc_27F6F
test cl, 2
jnz short loc_27F66
shr ecx, 2
mov eax, 2
jmp short loc_27F6D
loc_27F08:
mov eax, ecx
shr eax, 10h
xor edx, edx
test ecx, 0FFF8h
cmovnz eax, ecx
setz dl
shl edx, 4
lea ecx, [rdx+8]
mov esi, eax
shr esi, 8
test al, al
cmovnz ecx, edx
cmovnz esi, eax
lea edx, [rcx+4]
mov r8d, esi
shr r8d, 4
test sil, 0Fh
cmovnz edx, ecx
cmovnz r8d, esi
lea eax, [rdx+2]
mov ecx, r8d
shr ecx, 2
test r8b, 3
cmovnz eax, edx
cmovnz ecx, r8d
test cl, 1
jnz short loc_27F6D
test ecx, ecx
jz short loc_27F71
inc eax
shr ecx, 1
jmp short loc_27F6D
loc_27F66:
shr ecx, 1
mov eax, 1
loc_27F6D:
mov [rdi], ecx
loc_27F6F:
pop rbp
retn
loc_27F71:
mov eax, 20h ; ' '
jmp short loc_27F6F
| long long lo0bits(unsigned int *a1)
{
unsigned int v1; // ecx
long long result; // rax
unsigned int v3; // ecx
unsigned int v4; // eax
int v5; // edx
int v6; // edx
int v7; // ecx
unsigned int v8; // esi
unsigned int v9; // edx
unsigned int v10; // r8d
v1 = *a1;
if ( (*a1 & 7) != 0 )
{
result = 0LL;
if ( (v1 & 1) != 0 )
return result;
if ( (v1 & 2) != 0 )
{
v3 = v1 >> 1;
result = 1LL;
}
else
{
v3 = v1 >> 2;
result = 2LL;
}
}
else
{
v4 = HIWORD(v1);
v5 = 0;
if ( (v1 & 0xFFF8) != 0 )
v4 = *a1;
LOBYTE(v5) = (*a1 & 0xFFF8) == 0;
v6 = 16 * v5;
v7 = v6 + 8;
v8 = v4 >> 8;
if ( (_BYTE)v4 )
{
v7 = v6;
v8 = v4;
}
v9 = v7 + 4;
v10 = v8 >> 4;
if ( (v8 & 0xF) != 0 )
{
v9 = v7;
v10 = v8;
}
result = v9 + 2;
v3 = v10 >> 2;
if ( (v10 & 3) != 0 )
{
result = v9;
v3 = v10;
}
if ( (v3 & 1) == 0 )
{
if ( !v3 )
return 32LL;
result = (unsigned int)(result + 1);
v3 >>= 1;
}
}
*a1 = v3;
return result;
}
| lo0bits:
PUSH RBP
MOV RBP,RSP
MOV ECX,dword ptr [RDI]
TEST CL,0x7
JZ 0x00127f08
XOR EAX,EAX
TEST CL,0x1
JNZ 0x00127f6f
TEST CL,0x2
JNZ 0x00127f66
SHR ECX,0x2
MOV EAX,0x2
JMP 0x00127f6d
LAB_00127f08:
MOV EAX,ECX
SHR EAX,0x10
XOR EDX,EDX
TEST ECX,0xfff8
CMOVNZ EAX,ECX
SETZ DL
SHL EDX,0x4
LEA ECX,[RDX + 0x8]
MOV ESI,EAX
SHR ESI,0x8
TEST AL,AL
CMOVNZ ECX,EDX
CMOVNZ ESI,EAX
LEA EDX,[RCX + 0x4]
MOV R8D,ESI
SHR R8D,0x4
TEST SIL,0xf
CMOVNZ EDX,ECX
CMOVNZ R8D,ESI
LEA EAX,[RDX + 0x2]
MOV ECX,R8D
SHR ECX,0x2
TEST R8B,0x3
CMOVNZ EAX,EDX
CMOVNZ ECX,R8D
TEST CL,0x1
JNZ 0x00127f6d
TEST ECX,ECX
JZ 0x00127f71
INC EAX
SHR ECX,0x1
JMP 0x00127f6d
LAB_00127f66:
SHR ECX,0x1
MOV EAX,0x1
LAB_00127f6d:
MOV dword ptr [RDI],ECX
LAB_00127f6f:
POP RBP
RET
LAB_00127f71:
MOV EAX,0x20
JMP 0x00127f6f
|
int lo0bits(uint *param_1)
{
uint uVar1;
int iVar2;
uint uVar3;
int iVar4;
bool bVar5;
uVar3 = *param_1;
if ((uVar3 & 7) == 0) {
bVar5 = (uVar3 & 0xfff8) == 0;
uVar1 = uVar3 >> 0x10;
if (!bVar5) {
uVar1 = uVar3;
}
iVar4 = (uint)bVar5 * 0x10;
uVar3 = uVar1 >> 8;
iVar2 = iVar4 + 8;
if ((char)uVar1 != '\0') {
uVar3 = uVar1;
iVar2 = iVar4;
}
uVar1 = uVar3 >> 4;
iVar4 = iVar2 + 4;
if ((uVar3 & 0xf) != 0) {
uVar1 = uVar3;
iVar4 = iVar2;
}
uVar3 = uVar1 >> 2;
iVar2 = iVar4 + 2;
if ((uVar1 & 3) != 0) {
uVar3 = uVar1;
iVar2 = iVar4;
}
if ((uVar3 & 1) == 0) {
if (uVar3 == 0) {
return 0x20;
}
iVar2 = iVar2 + 1;
uVar3 = uVar3 >> 1;
}
}
else {
if ((uVar3 & 1) != 0) {
return 0;
}
if ((uVar3 & 2) == 0) {
uVar3 = uVar3 >> 2;
iVar2 = 2;
}
else {
uVar3 = uVar3 >> 1;
iVar2 = 1;
}
}
*param_1 = uVar3;
return iVar2;
}
| |
28,263 | cxxopts::values::abstract_value<bool>::abstract_value(cxxopts::values::abstract_value<bool> const&) | zkingston[P]unknot/build_O0/_deps/cxxopts-src/include/cxxopts.hpp | abstract_value(const abstract_value& rhs)
{
if (rhs.m_result)
{
m_result = std::make_shared<T>();
m_store = m_result.get();
}
else
{
m_store = rhs.m_store;
}
m_default = rhs.m_default;
m_implicit = rhs.m_implicit;
m_default_value = rhs.m_default_value;
m_implicit_value = rhs.m_implicit_value;
} | O0 | cpp | cxxopts::values::abstract_value<bool>::abstract_value(cxxopts::values::abstract_value<bool> const&):
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq 0x50(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x6e7d0
movq 0x18(%rsp), %rdi
leaq 0x616e67(%rip), %rax # 0x68b8b0
addq $0x10, %rax
movq %rax, (%rdi)
addq $0x18, %rdi
movq %rdi, 0x8(%rsp)
callq 0x74ba0
movq 0x18(%rsp), %rdi
movq $0x0, 0x28(%rdi)
movb $0x0, 0x30(%rdi)
movb $0x0, 0x31(%rdi)
addq $0x38, %rdi
movq %rdi, 0x10(%rsp)
callq 0x13060
movq 0x18(%rsp), %rdi
addq $0x58, %rdi
movq %rdi, 0x20(%rsp)
callq 0x13060
movq 0x48(%rsp), %rdi
addq $0x18, %rdi
callq 0x74bb0
testb $0x1, %al
jne 0x74aa8
jmp 0x74b25
leaq 0x38(%rsp), %rdi
callq 0x73d60
jmp 0x74ab4
movq 0x18(%rsp), %rdi
addq $0x18, %rdi
leaq 0x38(%rsp), %rsi
callq 0x74bd0
leaq 0x38(%rsp), %rdi
callq 0x74610
movq 0x18(%rsp), %rdi
addq $0x18, %rdi
callq 0x73dd0
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x28(%rax)
jmp 0x74b37
movq 0x20(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x30(%rsp)
movl %eax, 0x2c(%rsp)
callq 0x13768
movq 0x10(%rsp), %rdi
callq 0x13768
movq 0x8(%rsp), %rdi
callq 0x74610
movq 0x18(%rsp), %rdi
callq 0x6e910
jmp 0x74b88
movq 0x18(%rsp), %rax
movq 0x48(%rsp), %rcx
movq 0x28(%rcx), %rcx
movq %rcx, 0x28(%rax)
movq 0x18(%rsp), %rdi
movq 0x48(%rsp), %rax
movb 0x30(%rax), %al
andb $0x1, %al
movb %al, 0x30(%rdi)
movq 0x48(%rsp), %rax
movb 0x31(%rax), %al
andb $0x1, %al
movb %al, 0x31(%rdi)
movq 0x48(%rsp), %rsi
addq $0x38, %rsi
addq $0x38, %rdi
callq 0x12090
jmp 0x74b6a
movq 0x18(%rsp), %rdi
movq 0x48(%rsp), %rsi
addq $0x58, %rsi
addq $0x58, %rdi
callq 0x12090
jmp 0x74b83
addq $0x58, %rsp
retq
movq 0x30(%rsp), %rdi
callq 0x13540
nopw %cs:(%rax,%rax)
nopl (%rax)
| _ZN7cxxopts6values14abstract_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2ERKS8_:
sub rsp, 58h
mov [rsp+58h+var_8], rdi
mov [rsp+58h+var_10], rsi
mov rdi, [rsp+58h+var_8]; this
mov [rsp+58h+var_40], rdi
call _ZN7cxxopts5ValueC2Ev; cxxopts::Value::Value(void)
mov rdi, [rsp+58h+var_40]
lea rax, _ZTVN7cxxopts6values14abstract_valueINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE; `vtable for'cxxopts::values::abstract_value<std::string>
add rax, 10h
mov [rdi], rax
add rdi, 18h
mov [rsp+58h+var_50], rdi
call _ZNSt10shared_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2Ev; std::shared_ptr<std::string>::shared_ptr(void)
mov rdi, [rsp+58h+var_40]
mov qword ptr [rdi+28h], 0
mov byte ptr [rdi+30h], 0
mov byte ptr [rdi+31h], 0
add rdi, 38h ; '8'
mov [rsp+58h+var_48], rdi
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void)
mov rdi, [rsp+58h+var_40]
add rdi, 58h ; 'X'
mov [rsp+58h+var_38], rdi
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void)
mov rdi, [rsp+58h+var_10]
add rdi, 18h
call _ZNKSt12__shared_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELN9__gnu_cxx12_Lock_policyE2EEcvbEv; std::__shared_ptr<std::string,(__gnu_cxx::_Lock_policy)2>::operator bool(void)
test al, 1
jnz short loc_74AA8
jmp short loc_74B25
loc_74AA8:
lea rdi, [rsp+58h+var_20]
call _ZSt11make_sharedINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJEESt10shared_ptrIT_EDpOT0_; std::make_shared<std::string>()
jmp short $+2
loc_74AB4:
mov rdi, [rsp+58h+var_40]
add rdi, 18h
lea rsi, [rsp+58h+var_20]
call _ZNSt10shared_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEaSEOS6_; std::shared_ptr<std::string>::operator=(std::shared_ptr<std::string>&&)
lea rdi, [rsp+58h+var_20]
call _ZNSt10shared_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; std::shared_ptr<std::string>::~shared_ptr()
mov rdi, [rsp+58h+var_40]
add rdi, 18h
call _ZNKSt12__shared_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELN9__gnu_cxx12_Lock_policyE2EE3getEv; std::__shared_ptr<std::string,(__gnu_cxx::_Lock_policy)2>::get(void)
mov rcx, rax
mov rax, [rsp+58h+var_40]
mov [rax+28h], rcx
jmp short loc_74B37
mov rdi, [rsp+arg_18]; void *
mov rcx, rax
mov eax, edx
mov [rsp+arg_28], rcx
mov [rsp+arg_24], eax
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rdi, [rsp+arg_8]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string()
mov rdi, [rsp+arg_0]
call _ZNSt10shared_ptrINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; std::shared_ptr<std::string>::~shared_ptr()
mov rdi, [rsp+arg_10]; this
call _ZN7cxxopts5ValueD2Ev; cxxopts::Value::~Value()
jmp short loc_74B88
loc_74B25:
mov rax, [rsp+58h+var_40]
mov rcx, [rsp+58h+var_10]
mov rcx, [rcx+28h]
mov [rax+28h], rcx
loc_74B37:
mov rdi, [rsp+58h+var_40]
mov rax, [rsp+58h+var_10]
mov al, [rax+30h]
and al, 1
mov [rdi+30h], al
mov rax, [rsp+58h+var_10]
mov al, [rax+31h]
and al, 1
mov [rdi+31h], al
mov rsi, [rsp+58h+var_10]
add rsi, 38h ; '8'
add rdi, 38h ; '8'
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
jmp short $+2
loc_74B6A:
mov rdi, [rsp+58h+var_40]
mov rsi, [rsp+58h+var_10]
add rsi, 58h ; 'X'
add rdi, 58h ; 'X'
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_; std::string::operator=(std::string const&)
jmp short $+2
loc_74B83:
add rsp, 58h
retn
loc_74B88:
mov rdi, [rsp+arg_28]
call __Unwind_Resume
| long long cxxopts::values::abstract_value<std::string>::abstract_value(long long a1, long long a2)
{
_BYTE v3[16]; // [rsp+38h] [rbp-20h] BYREF
long long v4; // [rsp+48h] [rbp-10h]
cxxopts::Value *v5; // [rsp+50h] [rbp-8h]
v5 = (cxxopts::Value *)a1;
v4 = a2;
cxxopts::Value::Value((cxxopts::Value *)a1);
*(_QWORD *)a1 = &`vtable for'cxxopts::values::abstract_value<std::string> + 2;
std::shared_ptr<std::string>::shared_ptr();
*(_QWORD *)(a1 + 40) = 0LL;
*(_BYTE *)(a1 + 48) = 0;
*(_BYTE *)(a1 + 49) = 0;
std::string::basic_string(a1 + 56);
std::string::basic_string(a1 + 88);
if ( (std::__shared_ptr<std::string,(__gnu_cxx::_Lock_policy)2>::operator bool(v4 + 24) & 1) != 0 )
{
std::make_shared<std::string>((long long)v3);
std::shared_ptr<std::string>::operator=(a1 + 24, v3);
std::shared_ptr<std::string>::~shared_ptr((long long)v3);
*(_QWORD *)(a1 + 40) = std::__shared_ptr<std::string,(__gnu_cxx::_Lock_policy)2>::get(a1 + 24);
}
else
{
*(_QWORD *)(a1 + 40) = *(_QWORD *)(v4 + 40);
}
*(_BYTE *)(a1 + 48) = *(_BYTE *)(v4 + 48) & 1;
*(_BYTE *)(a1 + 49) = *(_BYTE *)(v4 + 49) & 1;
std::string::operator=(a1 + 56, v4 + 56);
return std::string::operator=(a1 + 88, v4 + 88);
}
| abstract_value:
SUB RSP,0x58
MOV qword ptr [RSP + 0x50],RDI
MOV qword ptr [RSP + 0x48],RSI
MOV RDI,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x18],RDI
CALL 0x0016e7d0
MOV RDI,qword ptr [RSP + 0x18]
LEA RAX,[0x78b8b0]
ADD RAX,0x10
MOV qword ptr [RDI],RAX
ADD RDI,0x18
MOV qword ptr [RSP + 0x8],RDI
CALL 0x00174ba0
MOV RDI,qword ptr [RSP + 0x18]
MOV qword ptr [RDI + 0x28],0x0
MOV byte ptr [RDI + 0x30],0x0
MOV byte ptr [RDI + 0x31],0x0
ADD RDI,0x38
MOV qword ptr [RSP + 0x10],RDI
CALL 0x00113060
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x58
MOV qword ptr [RSP + 0x20],RDI
CALL 0x00113060
MOV RDI,qword ptr [RSP + 0x48]
ADD RDI,0x18
CALL 0x00174bb0
TEST AL,0x1
JNZ 0x00174aa8
JMP 0x00174b25
LAB_00174aa8:
LEA RDI,[RSP + 0x38]
CALL 0x00173d60
JMP 0x00174ab4
LAB_00174ab4:
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x18
LEA RSI,[RSP + 0x38]
CALL 0x00174bd0
LEA RDI,[RSP + 0x38]
CALL 0x00174610
MOV RDI,qword ptr [RSP + 0x18]
ADD RDI,0x18
CALL 0x00173dd0
MOV RCX,RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RAX + 0x28],RCX
JMP 0x00174b37
LAB_00174b25:
MOV RAX,qword ptr [RSP + 0x18]
MOV RCX,qword ptr [RSP + 0x48]
MOV RCX,qword ptr [RCX + 0x28]
MOV qword ptr [RAX + 0x28],RCX
LAB_00174b37:
MOV RDI,qword ptr [RSP + 0x18]
MOV RAX,qword ptr [RSP + 0x48]
MOV AL,byte ptr [RAX + 0x30]
AND AL,0x1
MOV byte ptr [RDI + 0x30],AL
MOV RAX,qword ptr [RSP + 0x48]
MOV AL,byte ptr [RAX + 0x31]
AND AL,0x1
MOV byte ptr [RDI + 0x31],AL
MOV RSI,qword ptr [RSP + 0x48]
ADD RSI,0x38
ADD RDI,0x38
CALL 0x00112090
JMP 0x00174b6a
LAB_00174b6a:
MOV RDI,qword ptr [RSP + 0x18]
MOV RSI,qword ptr [RSP + 0x48]
ADD RSI,0x58
ADD RDI,0x58
CALL 0x00112090
LAB_00174b81:
JMP 0x00174b83
LAB_00174b83:
ADD RSP,0x58
RET
|
/* cxxopts::values::abstract_value<std::__cxx11::string
>::abstract_value(cxxopts::values::abstract_value<std::__cxx11::string > const&) */
void __thiscall
cxxopts::values::abstract_value<std::__cxx11::string>::abstract_value
(abstract_value<std::__cxx11::string> *this,abstract_value *param_1)
{
bool bVar1;
int8 uVar2;
shared_ptr local_20 [16];
abstract_value *local_10;
abstract_value<std::__cxx11::string> *local_8;
local_10 = param_1;
local_8 = this;
Value::Value((Value *)this);
*(int ***)this = &PTR__abstract_value_0078b8c0;
std::shared_ptr<std::__cxx11::string>::shared_ptr
((shared_ptr<std::__cxx11::string> *)(this + 0x18));
*(int8 *)(this + 0x28) = 0;
this[0x30] = (abstract_value<std::__cxx11::string>)0x0;
this[0x31] = (abstract_value<std::__cxx11::string>)0x0;
std::__cxx11::string::string((string *)(this + 0x38));
std::__cxx11::string::string((string *)(this + 0x58));
bVar1 = std::__shared_ptr::operator_cast_to_bool((__shared_ptr *)(local_10 + 0x18));
if (bVar1) {
/* try { // try from 00174aa8 to 00174b80 has its CatchHandler @ 00174aed */
std::make_shared<std::__cxx11::string>();
std::shared_ptr<std::__cxx11::string>::operator=
((shared_ptr<std::__cxx11::string> *)(this + 0x18),local_20);
std::shared_ptr<std::__cxx11::string>::~shared_ptr((shared_ptr<std::__cxx11::string> *)local_20)
;
uVar2 = std::__shared_ptr<std::__cxx11::string,(__gnu_cxx::_Lock_policy)2>::get
((__shared_ptr<std::__cxx11::string,(__gnu_cxx::_Lock_policy)2> *)
(this + 0x18));
*(int8 *)(this + 0x28) = uVar2;
}
else {
*(int8 *)(this + 0x28) = *(int8 *)(local_10 + 0x28);
}
this[0x30] = (abstract_value<std::__cxx11::string>)((byte)local_10[0x30] & 1);
this[0x31] = (abstract_value<std::__cxx11::string>)((byte)local_10[0x31] & 1);
std::__cxx11::string::operator=((string *)(this + 0x38),(string *)(local_10 + 0x38));
std::__cxx11::string::operator=((string *)(this + 0x58),(string *)(local_10 + 0x58));
return;
}
| |
28,264 | ggml_flash_attn_back | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c | struct ggml_tensor * ggml_flash_attn_back(
struct ggml_context * ctx,
struct ggml_tensor * q,
struct ggml_tensor * k,
struct ggml_tensor * v,
struct ggml_tensor * d,
bool masked) {
GGML_ABORT("TODO: adapt to ggml_flash_attn_ext() changes");
GGML_ASSERT(ggml_can_mul_mat(k, q));
// TODO: check if vT can be multiplied by (k*qT)
// d shape [D,N,ne2,ne3]
// q shape [D,N,ne2,ne3]
// k shape [D,M,kvne2,ne3]
// v shape [M,D,kvne2,ne3]
const int64_t D = q->ne[0];
const int64_t N = q->ne[1];
const int64_t M = k->ne[1];
const int64_t ne2 = q->ne[2];
const int64_t ne3 = q->ne[3];
const int64_t kvne2 = k->ne[2];
GGML_ASSERT(k->ne[0] == D);
GGML_ASSERT(v->ne[0] == M);
GGML_ASSERT(v->ne[1] == D);
GGML_ASSERT(d->ne[0] == D);
GGML_ASSERT(d->ne[1] == N);
GGML_ASSERT(k->ne[2] == kvne2);
GGML_ASSERT(k->ne[3] == ne3);
GGML_ASSERT(v->ne[2] == kvne2);
GGML_ASSERT(v->ne[3] == ne3);
GGML_ASSERT(d->ne[2] == ne2);
GGML_ASSERT(d->ne[3] == ne3);
GGML_ASSERT(ne2 % kvne2 == 0);
// store gradients of q, k and v as continuous tensors concatenated in result.
// note: v and gradv are actually transposed, i.e. v->ne[0] != D.
const int64_t elem_q = ggml_nelements(q);
const int64_t elem_k = ggml_nelements(k);
const int64_t elem_v = ggml_nelements(v);
enum ggml_type result_type = GGML_TYPE_F32;
GGML_ASSERT(ggml_blck_size(result_type) == 1);
const size_t tsize = ggml_type_size(result_type);
const size_t offs_q = 0;
const size_t offs_k = offs_q + GGML_PAD(elem_q * tsize, GGML_MEM_ALIGN);
const size_t offs_v = offs_k + GGML_PAD(elem_k * tsize, GGML_MEM_ALIGN);
const size_t end = offs_v + GGML_PAD(elem_v * tsize, GGML_MEM_ALIGN);
const size_t nelements = (end + tsize - 1)/tsize;
struct ggml_tensor * result = ggml_new_tensor_1d(ctx, GGML_TYPE_F32, nelements);
int32_t masked_i = masked ? 1 : 0;
ggml_set_op_params(result, &masked_i, sizeof(masked_i));
result->op = GGML_OP_FLASH_ATTN_BACK;
result->src[0] = q;
result->src[1] = k;
result->src[2] = v;
result->src[3] = d;
return result;
} | O0 | c | ggml_flash_attn_back:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movb %r9b, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
andb $0x1, %al
movb %al, -0x29(%rbp)
leaq 0x5e1b9(%rip), %rdi # 0xb15b7
movl $0x1107, %esi # imm = 0x1107
leaq 0x5eb9a(%rip), %rdx # 0xb1fa4
movb $0x0, %al
callq 0x48a00
nopw %cs:(%rax,%rax)
| ggml_flash_attn_back:
push rbp
mov rbp, rsp
sub rsp, 0C0h
mov al, r9b
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
and al, 1
mov [rbp+var_29], al
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
mov esi, 1107h
lea rdx, aTodoAdaptToGgm; "TODO: adapt to ggml_flash_attn_ext() ch"...
mov al, 0
call _ggml_abort
| void __noreturn ggml_flash_attn_back()
{
ggml_abort(
"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
4359,
(long long)"TODO: adapt to ggml_flash_attn_ext() changes");
}
| ggml_flash_attn_back:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xc0
MOV AL,R9B
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
AND AL,0x1
MOV byte ptr [RBP + -0x29],AL
LEA RDI,[0x1b15b7]
MOV ESI,0x1107
LEA RDX,[0x1b1fa4]
MOV AL,0x0
CALL 0x00148a00
NOP dword ptr CS:[RAX + RAX*0x1]
|
long ggml_flash_attn_back(void)
{
int8 uVar1;
ulong uVar2;
long lVar3;
long lVar4;
long extraout_RDX;
long lVar5;
char *pcVar6;
pcVar6 = "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c";
lVar5 = 0x1107;
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
0x1107,"TODO: adapt to ggml_flash_attn_ext() changes");
uVar2 = ggml_is_3d(lVar5);
if ((uVar2 & 1) == 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
0x114b,"GGML_ASSERT(%s) failed","ggml_is_3d(sx)");
}
uVar2 = ggml_is_matrix(extraout_RDX);
if ((uVar2 & 1) == 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
0x114c,"GGML_ASSERT(%s) failed","ggml_is_matrix(c)");
}
lVar4 = *(long *)(extraout_RDX + 0x18);
lVar3 = (*(long *)(lVar5 + 0x10) - *(long *)(extraout_RDX + 0x10)) + 1;
uVar1 = *(int8 *)(lVar5 + 0x20);
if (*(long *)(lVar5 + 0x10) != *(long *)(extraout_RDX + 0x10) + -1 + lVar3) {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
0x1155,"GGML_ASSERT(%s) failed","sx->ne[0] == d_conv - 1 + n_t");
}
if (*(long *)(lVar5 + 0x18) != lVar4) {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
0x1156,"GGML_ASSERT(%s) failed","sx->ne[1] == d_inner");
}
if (lVar3 < 0) {
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
0x1157,"GGML_ASSERT(%s) failed","n_t >= 0");
}
lVar4 = ggml_new_tensor_3d(pcVar6,0,lVar4,lVar3,uVar1);
*(int4 *)(lVar4 + 0x50) = 0x3f;
*(long *)(lVar4 + 0x98) = lVar5;
*(long *)(lVar4 + 0xa0) = extraout_RDX;
return lVar4;
}
| |
28,265 | ggml_flash_attn_back | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c | struct ggml_tensor * ggml_flash_attn_back(
struct ggml_context * ctx,
struct ggml_tensor * q,
struct ggml_tensor * k,
struct ggml_tensor * v,
struct ggml_tensor * d,
bool masked) {
GGML_ABORT("TODO: adapt to ggml_flash_attn_ext() changes");
GGML_ASSERT(ggml_can_mul_mat(k, q));
// TODO: check if vT can be multiplied by (k*qT)
// d shape [D,N,ne2,ne3]
// q shape [D,N,ne2,ne3]
// k shape [D,M,kvne2,ne3]
// v shape [M,D,kvne2,ne3]
const int64_t D = q->ne[0];
const int64_t N = q->ne[1];
const int64_t M = k->ne[1];
const int64_t ne2 = q->ne[2];
const int64_t ne3 = q->ne[3];
const int64_t kvne2 = k->ne[2];
GGML_ASSERT(k->ne[0] == D);
GGML_ASSERT(v->ne[0] == M);
GGML_ASSERT(v->ne[1] == D);
GGML_ASSERT(d->ne[0] == D);
GGML_ASSERT(d->ne[1] == N);
GGML_ASSERT(k->ne[2] == kvne2);
GGML_ASSERT(k->ne[3] == ne3);
GGML_ASSERT(v->ne[2] == kvne2);
GGML_ASSERT(v->ne[3] == ne3);
GGML_ASSERT(d->ne[2] == ne2);
GGML_ASSERT(d->ne[3] == ne3);
GGML_ASSERT(ne2 % kvne2 == 0);
// store gradients of q, k and v as continuous tensors concatenated in result.
// note: v and gradv are actually transposed, i.e. v->ne[0] != D.
const int64_t elem_q = ggml_nelements(q);
const int64_t elem_k = ggml_nelements(k);
const int64_t elem_v = ggml_nelements(v);
enum ggml_type result_type = GGML_TYPE_F32;
GGML_ASSERT(ggml_blck_size(result_type) == 1);
const size_t tsize = ggml_type_size(result_type);
const size_t offs_q = 0;
const size_t offs_k = offs_q + GGML_PAD(elem_q * tsize, GGML_MEM_ALIGN);
const size_t offs_v = offs_k + GGML_PAD(elem_k * tsize, GGML_MEM_ALIGN);
const size_t end = offs_v + GGML_PAD(elem_v * tsize, GGML_MEM_ALIGN);
const size_t nelements = (end + tsize - 1)/tsize;
struct ggml_tensor * result = ggml_new_tensor_1d(ctx, GGML_TYPE_F32, nelements);
int32_t masked_i = masked ? 1 : 0;
ggml_set_op_params(result, &masked_i, sizeof(masked_i));
result->op = GGML_OP_FLASH_ATTN_BACK;
result->src[0] = q;
result->src[1] = k;
result->src[2] = v;
result->src[3] = d;
return result;
} | O1 | c | ggml_flash_attn_back:
pushq %rax
leaq 0x2c5f2(%rip), %rdi # 0x4c56f
leaq 0x2cf30(%rip), %rdx # 0x4ceb4
movl $0x1107, %esi # imm = 0x1107
xorl %eax, %eax
callq 0x18ce0
| ggml_flash_attn_back:
push rax
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aTodoAdaptToGgm; "TODO: adapt to ggml_flash_attn_ext() ch"...
mov esi, 1107h
xor eax, eax
call _ggml_abort
| void __noreturn ggml_flash_attn_back(long long a1, long long a2, long long a3, int a4, int a5, int a6)
{
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
4359,
(unsigned int)"TODO: adapt to ggml_flash_attn_ext() changes",
a4,
a5,
a6);
}
| ggml_flash_attn_back:
PUSH RAX
LEA RDI,[0x14c56f]
LEA RDX,[0x14ceb4]
MOV ESI,0x1107
XOR EAX,EAX
CALL 0x00118ce0
|
void ggml_flash_attn_back(void)
{
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
0x1107,"TODO: adapt to ggml_flash_attn_ext() changes");
}
| |
28,266 | ggml_flash_attn_back | Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c | struct ggml_tensor * ggml_flash_attn_back(
struct ggml_context * ctx,
struct ggml_tensor * q,
struct ggml_tensor * k,
struct ggml_tensor * v,
struct ggml_tensor * d,
bool masked) {
GGML_ABORT("TODO: adapt to ggml_flash_attn_ext() changes");
GGML_ASSERT(ggml_can_mul_mat(k, q));
// TODO: check if vT can be multiplied by (k*qT)
// d shape [D,N,ne2,ne3]
// q shape [D,N,ne2,ne3]
// k shape [D,M,kvne2,ne3]
// v shape [M,D,kvne2,ne3]
const int64_t D = q->ne[0];
const int64_t N = q->ne[1];
const int64_t M = k->ne[1];
const int64_t ne2 = q->ne[2];
const int64_t ne3 = q->ne[3];
const int64_t kvne2 = k->ne[2];
GGML_ASSERT(k->ne[0] == D);
GGML_ASSERT(v->ne[0] == M);
GGML_ASSERT(v->ne[1] == D);
GGML_ASSERT(d->ne[0] == D);
GGML_ASSERT(d->ne[1] == N);
GGML_ASSERT(k->ne[2] == kvne2);
GGML_ASSERT(k->ne[3] == ne3);
GGML_ASSERT(v->ne[2] == kvne2);
GGML_ASSERT(v->ne[3] == ne3);
GGML_ASSERT(d->ne[2] == ne2);
GGML_ASSERT(d->ne[3] == ne3);
GGML_ASSERT(ne2 % kvne2 == 0);
// store gradients of q, k and v as continuous tensors concatenated in result.
// note: v and gradv are actually transposed, i.e. v->ne[0] != D.
const int64_t elem_q = ggml_nelements(q);
const int64_t elem_k = ggml_nelements(k);
const int64_t elem_v = ggml_nelements(v);
enum ggml_type result_type = GGML_TYPE_F32;
GGML_ASSERT(ggml_blck_size(result_type) == 1);
const size_t tsize = ggml_type_size(result_type);
const size_t offs_q = 0;
const size_t offs_k = offs_q + GGML_PAD(elem_q * tsize, GGML_MEM_ALIGN);
const size_t offs_v = offs_k + GGML_PAD(elem_k * tsize, GGML_MEM_ALIGN);
const size_t end = offs_v + GGML_PAD(elem_v * tsize, GGML_MEM_ALIGN);
const size_t nelements = (end + tsize - 1)/tsize;
struct ggml_tensor * result = ggml_new_tensor_1d(ctx, GGML_TYPE_F32, nelements);
int32_t masked_i = masked ? 1 : 0;
ggml_set_op_params(result, &masked_i, sizeof(masked_i));
result->op = GGML_OP_FLASH_ATTN_BACK;
result->src[0] = q;
result->src[1] = k;
result->src[2] = v;
result->src[3] = d;
return result;
} | O3 | c | ggml_flash_attn_back:
pushq %rax
leaq 0x2d9ef(%rip), %rdi # 0x4c613
leaq 0x2e32d(%rip), %rdx # 0x4cf58
movl $0x1107, %esi # imm = 0x1107
xorl %eax, %eax
callq 0x17cd0
| ggml_flash_attn_back:
push rax
lea rdi, aWorkspaceLlm4b; "/workspace/llm4binary/github/2025_star3"...
lea rdx, aTodoAdaptToGgm; "TODO: adapt to ggml_flash_attn_ext() ch"...
mov esi, 1107h
xor eax, eax
call _ggml_abort
| void __noreturn ggml_flash_attn_back(long long a1, long long a2, long long a3, int a4, int a5, int a6)
{
ggml_abort(
(unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
4359,
(unsigned int)"TODO: adapt to ggml_flash_attn_ext() changes",
a4,
a5,
a6);
}
| ggml_flash_attn_back:
PUSH RAX
LEA RDI,[0x14c613]
LEA RDX,[0x14cf58]
MOV ESI,0x1107
XOR EAX,EAX
CALL 0x00117cd0
|
void ggml_flash_attn_back(void)
{
/* WARNING: Subroutine does not return */
ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml.c",
0x1107,"TODO: adapt to ggml_flash_attn_ext() changes");
}
| |
28,267 | testing::internal::AppendUserMessage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::Message const&) | giladroyz[P]FindPeaks/build_O2/_deps/googletest-src/googletest/src/gtest.cc | std::string AppendUserMessage(const std::string& gtest_msg,
const Message& user_msg) {
// Appends the user message if it's non-empty.
const std::string user_msg_string = user_msg.GetString();
if (user_msg_string.empty()) {
return gtest_msg;
}
if (gtest_msg.empty()) {
return user_msg_string;
}
return gtest_msg + "\n" + user_msg_string;
} | O2 | cpp | testing::internal::AppendUserMessage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, testing::Message const&):
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x20(%rsp), %r15
movq %r15, %rdi
movq %rdx, %rsi
callq 0xebca
cmpq $0x0, 0x8(%r15)
je 0x13a1d
cmpq $0x0, 0x8(%r14)
je 0x13a20
leaq 0x20955(%rip), %rdx # 0x3434d
movq %rsp, %rdi
movq %r14, %rsi
callq 0x24935
movq %rsp, %rsi
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
callq 0x2496d
movq %rsp, %rdi
callq 0x8ad8
jmp 0x13a2b
movq %r14, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x87a0
leaq 0x20(%rsp), %rdi
callq 0x8ad8
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x8ad8
jmp 0x13a54
jmp 0x13a51
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x8ad8
movq %rbx, %rdi
callq 0x89a0
| _ZN7testing8internal17AppendUserMessageERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_7MessageE:
push r15
push r14
push rbx
sub rsp, 40h
mov r14, rsi
mov rbx, rdi
lea r15, [rsp+58h+var_38]
mov rdi, r15
mov rsi, rdx
call _ZNK7testing7Message9GetStringB5cxx11Ev; testing::Message::GetString(void)
cmp qword ptr [r15+8], 0
jz short loc_13A1D
cmp qword ptr [r14+8], 0
jz short loc_13A20
lea rdx, aSFromSSMsTotal+19h; "\n"
mov rdi, rsp
mov rsi, r14
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EERKS8_PKS5_; std::operator+<char>(std::string const&,char const*)
mov rsi, rsp
lea rdx, [rsp+58h+var_38]
mov rdi, rbx
call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_RKS8_; std::operator+<char>(std::string&&,std::string const&)
mov rdi, rsp; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_13A2B
loc_13A1D:
mov r15, r14
loc_13A20:
mov rdi, rbx
mov rsi, r15
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_; std::string::basic_string(std::string const&)
loc_13A2B:
lea rdi, [rsp+58h+var_38]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rax, rbx
add rsp, 40h
pop rbx
pop r14
pop r15
retn
mov rbx, rax
mov rdi, rsp; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
jmp short loc_13A54
jmp short $+2
loc_13A51:
mov rbx, rax
loc_13A54:
lea rdi, [rsp+arg_18]; void *
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string()
mov rdi, rbx
call __Unwind_Resume
| long long testing::internal::AppendUserMessage(long long a1, long long a2, _QWORD *a3)
{
_BYTE *v3; // r15
_BYTE v5[32]; // [rsp+0h] [rbp-58h] BYREF
_BYTE v6[8]; // [rsp+20h] [rbp-38h] BYREF
long long v7; // [rsp+28h] [rbp-30h]
v3 = v6;
testing::Message::GetString[abi:cxx11]((long long)v6, a3);
if ( !v7 )
{
v3 = (_BYTE *)a2;
goto LABEL_5;
}
if ( !*(_QWORD *)(a2 + 8) )
{
LABEL_5:
std::string::basic_string(a1, v3);
goto LABEL_6;
}
std::operator+<char>(v5, a2, "\n");
std::operator+<char>(a1, v5, v6);
std::string::~string(v5);
LABEL_6:
std::string::~string(v6);
return a1;
}
| AppendUserMessage:
PUSH R15
PUSH R14
PUSH RBX
SUB RSP,0x40
MOV R14,RSI
MOV RBX,RDI
LEA R15,[RSP + 0x20]
MOV RDI,R15
MOV RSI,RDX
CALL 0x0010ebca
CMP qword ptr [R15 + 0x8],0x0
JZ 0x00113a1d
CMP qword ptr [R14 + 0x8],0x0
JZ 0x00113a20
LAB_001139f1:
LEA RDX,[0x13434d]
MOV RDI,RSP
MOV RSI,R14
CALL 0x00124935
LAB_00113a03:
MOV RSI,RSP
LEA RDX,[RSP + 0x20]
MOV RDI,RBX
CALL 0x0012496d
MOV RDI,RSP
CALL 0x00108ad8
JMP 0x00113a2b
LAB_00113a1d:
MOV R15,R14
LAB_00113a20:
MOV RDI,RBX
MOV RSI,R15
CALL 0x001087a0
LAB_00113a2b:
LEA RDI,[RSP + 0x20]
CALL 0x00108ad8
MOV RAX,RBX
ADD RSP,0x40
POP RBX
POP R14
POP R15
RET
|
/* testing::internal::AppendUserMessage(std::__cxx11::string const&, testing::Message const&) */
string * testing::internal::AppendUserMessage(string *param_1,Message *param_2)
{
Message *pMVar1;
string asStack_58 [32];
Message local_38 [8];
long local_30;
Message::GetString_abi_cxx11_(local_38);
pMVar1 = param_2;
if ((local_30 == 0) || (pMVar1 = local_38, *(long *)(param_2 + 8) == 0)) {
/* try { // try from 00113a20 to 00113a2a has its CatchHandler @ 00113a51 */
std::__cxx11::string::string(param_1,(string *)pMVar1);
}
else {
/* try { // try from 001139f1 to 00113a02 has its CatchHandler @ 00113a4f */
std::operator+(asStack_58,(char *)param_2);
/* try { // try from 00113a03 to 00113a12 has its CatchHandler @ 00113a42 */
std::operator+(param_1,asStack_58);
std::__cxx11::string::~string(asStack_58);
}
std::__cxx11::string::~string((string *)local_38);
return param_1;
}
| |
28,268 | js_global_unescape | bluesky950520[P]quickjs/quickjs.c | static JSValue js_global_unescape(JSContext *ctx, JSValue this_val,
int argc, JSValue *argv)
{
JSValue str;
StringBuffer b_s, *b = &b_s;
JSString *p;
int i, len, c, n;
str = JS_ToString(ctx, argv[0]);
if (JS_IsException(str))
return str;
string_buffer_init(ctx, b, 0);
p = JS_VALUE_GET_STRING(str);
for (i = 0, len = p->len; i < len; i++) {
c = string_get(p, i);
if (c == '%') {
if (i + 6 <= len
&& string_get(p, i + 1) == 'u'
&& (n = string_get_hex(p, i + 2, 4)) >= 0) {
c = n;
i += 6 - 1;
} else
if (i + 3 <= len
&& (n = string_get_hex(p, i + 1, 2)) >= 0) {
c = n;
i += 3 - 1;
}
}
string_buffer_putc16(b, c);
}
JS_FreeValue(ctx, str);
return string_buffer_end(b);
} | O1 | c | js_global_unescape:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq (%r8), %rsi
movq 0x8(%r8), %rdx
xorl %ecx, %ecx
callq 0x2bb39
movq %rax, (%rsp)
cmpl $0x6, %edx
je 0x7dcf4
movq %rdx, 0x10(%rsp)
movq %rbx, 0x18(%rsp)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rsp)
movq %rbx, 0x8(%rsp)
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x24bcf
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0x7dd03
movq (%rsp), %r15
movl $0x7fffffff, %r13d # imm = 0x7FFFFFFF
andl 0x4(%r15), %r13d
je 0x7dcd3
leal -0x6(%r13), %ebp
leal -0x3(%r13), %r14d
xorl %ebx, %ebx
leaq 0x18(%rsp), %r12
movq 0x4(%r15), %rcx
movslq %ebx, %rax
testl %ecx, %ecx
js 0x7dc51
movzbl 0x18(%r15,%rax), %esi
jmp 0x7dc57
movzwl 0x18(%r15,%rax,2), %esi
cmpl $0x25, %esi
jne 0x7dcc0
cmpl %ebp, %ebx
jg 0x7dc92
testl %ecx, %ecx
js 0x7dc6c
movzbl 0x19(%r15,%rax), %eax
jmp 0x7dc72
movzwl 0x1a(%r15,%rax,2), %eax
cmpl $0x75, %eax
jne 0x7dc92
leal 0x2(%rbx), %esi
movq %r15, %rdi
movl $0x4, %edx
callq 0x7de6a
testl %eax, %eax
js 0x7dc92
movl %eax, %esi
addl $0x5, %ebx
jmp 0x7dcc0
movl $0x25, %esi
cmpl %r14d, %ebx
jg 0x7dcc0
leal 0x1(%rbx), %esi
movq %r15, %rdi
movl $0x2, %edx
callq 0x7de6a
movl %eax, %esi
leal 0x2(%rbx), %eax
testl %esi, %esi
cmovsl %ebx, %eax
movl $0x25, %ecx
cmovsl %ecx, %esi
movl %eax, %ebx
movq %r12, %rdi
callq 0x4b83b
incl %ebx
cmpl %r13d, %ebx
jl 0x7dc3e
movq (%rsp), %rsi
movq 0x8(%rsp), %rax
movq 0x18(%rax), %rdi
movq 0x10(%rsp), %rdx
callq 0x21922
leaq 0x18(%rsp), %rdi
callq 0x374a0
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x0, 0x2c(%rsp)
movl $0xffffffff, 0x34(%rsp) # imm = 0xFFFFFFFF
jmp 0x7dc1b
| js_global_unescape:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 38h
mov rbx, rdi
mov rsi, [r8]
mov rdx, [r8+8]
xor ecx, ecx
call JS_ToStringInternal
mov [rsp+68h+var_68], rax
cmp edx, 6
jz loc_7DCF4
mov [rsp+68h+var_58], rdx
mov [rsp+68h+var_50], rbx
xorps xmm0, xmm0
movups [rsp+68h+var_40], xmm0
mov [rsp+68h+var_60], rbx
mov rdi, rbx
xor esi, esi
xor edx, edx
call js_alloc_string
mov [rsp+68h+var_48], rax
test rax, rax
jz loc_7DD03
loc_7DC1B:
mov r15, [rsp+68h+var_68]
mov r13d, 7FFFFFFFh
and r13d, [r15+4]
jz loc_7DCD3
lea ebp, [r13-6]
lea r14d, [r13-3]
xor ebx, ebx
lea r12, [rsp+68h+var_50]
loc_7DC3E:
mov rcx, [r15+4]
movsxd rax, ebx
test ecx, ecx
js short loc_7DC51
movzx esi, byte ptr [r15+rax+18h]
jmp short loc_7DC57
loc_7DC51:
movzx esi, word ptr [r15+rax*2+18h]
loc_7DC57:
cmp esi, 25h ; '%'
jnz short loc_7DCC0
cmp ebx, ebp
jg short loc_7DC92
test ecx, ecx
js short loc_7DC6C
movzx eax, byte ptr [r15+rax+19h]
jmp short loc_7DC72
loc_7DC6C:
movzx eax, word ptr [r15+rax*2+1Ah]
loc_7DC72:
cmp eax, 75h ; 'u'
jnz short loc_7DC92
lea esi, [rbx+2]
mov rdi, r15
mov edx, 4
call string_get_hex
test eax, eax
js short loc_7DC92
mov esi, eax
add ebx, 5
jmp short loc_7DCC0
loc_7DC92:
mov esi, 25h ; '%'
cmp ebx, r14d
jg short loc_7DCC0
lea esi, [rbx+1]
mov rdi, r15
mov edx, 2
call string_get_hex
mov esi, eax
lea eax, [rbx+2]
test esi, esi
cmovs eax, ebx
mov ecx, 25h ; '%'
cmovs esi, ecx
mov ebx, eax
loc_7DCC0:
mov rdi, r12
call string_buffer_putc16
inc ebx
cmp ebx, r13d
jl loc_7DC3E
loc_7DCD3:
mov rsi, [rsp+68h+var_68]
mov rax, [rsp+68h+var_60]
mov rdi, [rax+18h]
mov rdx, [rsp+68h+var_58]
call JS_FreeValueRT
lea rdi, [rsp+68h+var_50]
call string_buffer_end
loc_7DCF4:
add rsp, 38h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_7DD03:
mov dword ptr [rsp+68h+var_40+4], 0
mov dword ptr [rsp+68h+var_40+0Ch], 0FFFFFFFFh
jmp loc_7DC1B
| _DWORD * js_global_unescape(
long long a1,
__m128 a2,
__m128 a3,
__m128 a4,
__m128 a5,
__m128 a6,
__m128 a7,
__m128 a8,
__m128 a9,
long long a10,
long long a11,
long long a12,
long long *a13,
long long a14)
{
_DWORD *result; // rax
long long v15; // rdx
int v16; // r13d
int i; // ebx
long long v18; // rcx
signed int hex; // esi
int v20; // eax
int v21; // eax
int v22; // eax
_DWORD *v23; // [rsp+0h] [rbp-68h]
long long v24; // [rsp+10h] [rbp-58h]
long long v25; // [rsp+18h] [rbp-50h] BYREF
__int128 v27; // [rsp+28h] [rbp-40h]
result = (_DWORD *)JS_ToStringInternal(a1, *a13, a13[1], 0, (long long)a13, a14, a2, a3, a4, a5, a6, a7, a8, a9);
v23 = result;
if ( (_DWORD)v15 != 6 )
{
v24 = v15;
v25 = a1;
v27 = 0LL;
if ( !js_alloc_string(a1, 0LL, 0) )
{
DWORD1(v27) = 0;
HIDWORD(v27) = -1;
}
v16 = v23[1] & 0x7FFFFFFF;
if ( v16 )
{
for ( i = 0; i < v16; ++i )
{
v18 = *(_QWORD *)(v23 + 1);
if ( (int)v18 < 0 )
hex = *((unsigned __int16 *)v23 + i + 12);
else
hex = *((unsigned __int8 *)v23 + i + 24);
if ( hex == 37 )
{
if ( i <= v16 - 6
&& ((int)v18 < 0 ? (v20 = *((unsigned __int16 *)v23 + i + 13)) : (v20 = *((unsigned __int8 *)v23 + i + 25)),
v20 == 117 && (v21 = string_get_hex(v23, (unsigned int)(i + 2), 4LL), v21 >= 0)) )
{
hex = v21;
i += 5;
}
else
{
hex = 37;
if ( i <= v16 - 3 )
{
hex = string_get_hex(v23, (unsigned int)(i + 1), 2LL);
v22 = i + 2;
if ( hex < 0 )
{
v22 = i;
hex = 37;
}
i = v22;
}
}
}
string_buffer_putc16((long long)&v25, hex);
}
}
JS_FreeValueRT(*(_QWORD *)(a1 + 24), v23, v24);
return string_buffer_end((long long)&v25);
}
return result;
}
| js_global_unescape:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x38
MOV RBX,RDI
MOV RSI,qword ptr [R8]
MOV RDX,qword ptr [R8 + 0x8]
XOR ECX,ECX
CALL 0x0012bb39
MOV qword ptr [RSP],RAX
CMP EDX,0x6
JZ 0x0017dcf4
MOV qword ptr [RSP + 0x10],RDX
MOV qword ptr [RSP + 0x18],RBX
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RSP + 0x28],XMM0
MOV qword ptr [RSP + 0x8],RBX
MOV RDI,RBX
XOR ESI,ESI
XOR EDX,EDX
CALL 0x00124bcf
MOV qword ptr [RSP + 0x20],RAX
TEST RAX,RAX
JZ 0x0017dd03
LAB_0017dc1b:
MOV R15,qword ptr [RSP]
MOV R13D,0x7fffffff
AND R13D,dword ptr [R15 + 0x4]
JZ 0x0017dcd3
LEA EBP,[R13 + -0x6]
LEA R14D,[R13 + -0x3]
XOR EBX,EBX
LEA R12,[RSP + 0x18]
LAB_0017dc3e:
MOV RCX,qword ptr [R15 + 0x4]
MOVSXD RAX,EBX
TEST ECX,ECX
JS 0x0017dc51
MOVZX ESI,byte ptr [R15 + RAX*0x1 + 0x18]
JMP 0x0017dc57
LAB_0017dc51:
MOVZX ESI,word ptr [R15 + RAX*0x2 + 0x18]
LAB_0017dc57:
CMP ESI,0x25
JNZ 0x0017dcc0
CMP EBX,EBP
JG 0x0017dc92
TEST ECX,ECX
JS 0x0017dc6c
MOVZX EAX,byte ptr [R15 + RAX*0x1 + 0x19]
JMP 0x0017dc72
LAB_0017dc6c:
MOVZX EAX,word ptr [R15 + RAX*0x2 + 0x1a]
LAB_0017dc72:
CMP EAX,0x75
JNZ 0x0017dc92
LEA ESI,[RBX + 0x2]
MOV RDI,R15
MOV EDX,0x4
CALL 0x0017de6a
TEST EAX,EAX
JS 0x0017dc92
MOV ESI,EAX
ADD EBX,0x5
JMP 0x0017dcc0
LAB_0017dc92:
MOV ESI,0x25
CMP EBX,R14D
JG 0x0017dcc0
LEA ESI,[RBX + 0x1]
MOV RDI,R15
MOV EDX,0x2
CALL 0x0017de6a
MOV ESI,EAX
LEA EAX,[RBX + 0x2]
TEST ESI,ESI
CMOVS EAX,EBX
MOV ECX,0x25
CMOVS ESI,ECX
MOV EBX,EAX
LAB_0017dcc0:
MOV RDI,R12
CALL 0x0014b83b
INC EBX
CMP EBX,R13D
JL 0x0017dc3e
LAB_0017dcd3:
MOV RSI,qword ptr [RSP]
MOV RAX,qword ptr [RSP + 0x8]
MOV RDI,qword ptr [RAX + 0x18]
MOV RDX,qword ptr [RSP + 0x10]
CALL 0x00121922
LEA RDI,[RSP + 0x18]
CALL 0x001374a0
LAB_0017dcf4:
ADD RSP,0x38
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_0017dd03:
MOV dword ptr [RSP + 0x2c],0x0
MOV dword ptr [RSP + 0x34],0xffffffff
JMP 0x0017dc1b
|
void js_global_unescape(long param_1)
{
ushort uVar1;
uint uVar2;
long lVar3;
long lVar4;
int iVar5;
int iVar6;
int iVar7;
int8 *in_R8;
uint uVar8;
int1 auVar9 [16];
long local_50;
long local_48;
ulong local_40;
int8 uStack_38;
auVar9 = JS_ToStringInternal(param_1,*in_R8,in_R8[1],0);
lVar3 = auVar9._0_8_;
if (auVar9._8_4_ != 6) {
local_40 = 0;
uStack_38 = 0;
local_50 = param_1;
local_48 = js_alloc_string(param_1,0,0);
if (local_48 == 0) {
local_40 = local_40 & 0xffffffff;
uStack_38 = CONCAT44(0xffffffff,(int4)uStack_38);
}
uVar8 = *(uint *)(lVar3 + 4) & 0x7fffffff;
if (uVar8 != 0) {
iVar7 = 0;
do {
lVar4 = (long)iVar7;
iVar5 = (int)*(int8 *)(lVar3 + 4);
if (iVar5 < 0) {
uVar2 = (uint)*(ushort *)(lVar3 + 0x18 + lVar4 * 2);
}
else {
uVar2 = (uint)*(byte *)(lVar3 + 0x18 + lVar4);
}
iVar6 = iVar7;
if (uVar2 == 0x25) {
if (iVar7 <= (int)(uVar8 - 6)) {
if (iVar5 < 0) {
uVar1 = *(ushort *)(lVar3 + 0x1a + lVar4 * 2);
}
else {
uVar1 = (ushort)*(byte *)(lVar3 + 0x19 + lVar4);
}
if ((uVar1 == 0x75) && (uVar2 = string_get_hex(lVar3,iVar7 + 2,4), -1 < (int)uVar2)) {
iVar6 = iVar7 + 5;
goto LAB_0017dcc0;
}
}
uVar2 = 0x25;
if (iVar7 <= (int)(uVar8 - 3)) {
uVar2 = string_get_hex(lVar3,iVar7 + 1,2);
iVar6 = iVar7 + 2;
if ((int)uVar2 < 0) {
uVar2 = 0x25;
iVar6 = iVar7;
}
}
}
LAB_0017dcc0:
string_buffer_putc16(&local_50,uVar2);
iVar7 = iVar6 + 1;
} while (iVar7 < (int)uVar8);
}
JS_FreeValueRT(*(int8 *)(param_1 + 0x18),lVar3,auVar9._8_8_);
string_buffer_end(&local_50);
}
return;
}
| |
28,269 | JS_ReadObjectTag | bluesky950520[P]quickjs/quickjs.c | static JSValue JS_ReadObjectTag(BCReaderState *s)
{
JSContext *ctx = s->ctx;
JSValue obj;
uint32_t prop_count, i;
JSAtom atom;
JSValue val;
int ret;
obj = JS_NewObject(ctx);
if (BC_add_object_ref(s, obj))
goto fail;
if (bc_get_leb128(s, &prop_count))
goto fail;
for(i = 0; i < prop_count; i++) {
if (bc_get_atom(s, &atom))
goto fail;
#ifdef DUMP_READ_OBJECT
if (check_dump_flag(s->ctx->rt, DUMP_READ_OBJECT)) {
bc_read_trace(s, "propname: ");
print_atom(s->ctx, atom);
printf("\n");
}
#endif
val = JS_ReadObjectRec(s);
if (JS_IsException(val)) {
JS_FreeAtom(ctx, atom);
goto fail;
}
ret = JS_DefinePropertyValue(ctx, obj, atom, val, JS_PROP_C_W_E);
JS_FreeAtom(ctx, atom);
if (ret < 0)
goto fail;
}
return obj;
fail:
JS_FreeValue(ctx, obj);
return JS_EXCEPTION;
} | O3 | c | JS_ReadObjectTag:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r12
movq (%rdi), %r15
movq 0x40(%r15), %rax
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
movq %r15, %rdi
movl $0x1, %ecx
callq 0x21651
movq %rax, %rbx
movq %rdx, %r13
movq %r12, %rdi
movq %rax, %rsi
callq 0x48ca0
testl %eax, %eax
jne 0x481b4
leaq 0xc(%rsp), %rsi
movq %r12, %rdi
callq 0x4760c
testl %eax, %eax
je 0x481f2
movl $0x6, %r12d
cmpl $-0x9, %r13d
jb 0x481db
movq 0x18(%r15), %rdi
movl (%rbx), %eax
leal -0x1(%rax), %ecx
movl %ecx, (%rbx)
cmpl $0x1, %eax
jg 0x481db
movq %rbx, %rsi
movq %r13, %rdx
callq 0x219cc
xorl %ebx, %ebx
movq %rbx, %rax
movq %r12, %rdx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl 0xc(%rsp), %r14d
testl %r14d, %r14d
je 0x4826d
movq %r12, 0x10(%rsp)
movq %r12, %rdi
leaq 0x8(%rsp), %rsi
callq 0x48ac5
testl %eax, %eax
jne 0x481b4
movq %r12, %rdi
callq 0x33970
movq %rdx, %r9
cmpl $0x6, %r9d
je 0x48275
movl 0x8(%rsp), %ebp
movl $0x7, (%rsp)
movq %r15, %rdi
movq %rbx, %rsi
movq %r13, %rdx
movl %ebp, %ecx
movq %rax, %r8
callq 0x2717d
movq %rbx, %r12
movq %r13, %rbx
movl %eax, %r13d
movq %r15, %rdi
movl %ebp, %esi
callq 0x20f31
testl %r13d, %r13d
movq %rbx, %r13
movq %r12, %rbx
movq 0x10(%rsp), %r12
js 0x481b4
decl %r14d
jne 0x48201
movq %r13, %r12
jmp 0x481dd
movl 0x8(%rsp), %esi
movq %r15, %rdi
callq 0x20f31
jmp 0x481b4
| JS_ReadObjectTag:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov r12, rdi
mov r15, [rdi]
mov rax, [r15+40h]
mov rsi, [rax+10h]
mov rdx, [rax+18h]
mov rdi, r15
mov ecx, 1
call JS_NewObjectProtoClass
mov rbx, rax
mov r13, rdx
mov rdi, r12
mov rsi, rax
call BC_add_object_ref1
test eax, eax
jnz short loc_481B4
lea rsi, [rsp+48h+var_3C]
mov rdi, r12
call bc_get_leb128
test eax, eax
jz short loc_481F2
loc_481B4:
mov r12d, 6
cmp r13d, 0FFFFFFF7h
jb short loc_481DB
mov rdi, [r15+18h]
mov eax, [rbx]
lea ecx, [rax-1]
mov [rbx], ecx
cmp eax, 1
jg short loc_481DB
mov rsi, rbx
mov rdx, r13
call js_free_value_rt
loc_481DB:
xor ebx, ebx
loc_481DD:
mov rax, rbx
mov rdx, r12
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_481F2:
mov r14d, [rsp+48h+var_3C]
test r14d, r14d
jz short loc_4826D
mov [rsp+48h+var_38], r12
loc_48201:
mov rdi, r12
lea rsi, [rsp+48h+var_40]
call bc_get_atom
test eax, eax
jnz short loc_481B4
mov rdi, r12
call JS_ReadObjectRec
mov r9, rdx
cmp r9d, 6
jz short loc_48275
mov ebp, [rsp+48h+var_40]
mov [rsp+48h+var_48], 7
mov rdi, r15
mov rsi, rbx
mov rdx, r13
mov ecx, ebp
mov r8, rax
call JS_DefinePropertyValue
mov r12, rbx
mov rbx, r13
mov r13d, eax
mov rdi, r15
mov esi, ebp
call JS_FreeAtom
test r13d, r13d
mov r13, rbx
mov rbx, r12
mov r12, [rsp+48h+var_38]
js loc_481B4
dec r14d
jnz short loc_48201
loc_4826D:
mov r12, r13
jmp loc_481DD
loc_48275:
mov esi, [rsp+48h+var_40]
mov rdi, r15
call JS_FreeAtom
jmp loc_481B4
| _QWORD * JS_ReadObjectTag(
long long *a1,
__m128 a2,
__m128 a3,
__m128 a4,
__m128 a5,
double a6,
double a7,
__m128 a8,
__m128 a9)
{
long long v9; // r12
long long v10; // r15
_QWORD *v11; // rbx
long long v12; // rdx
long long v13; // r13
long long v14; // rdx
int v15; // ecx
int v16; // r8d
int v17; // r9d
long long v18; // rdi
int v19; // eax
int v21; // r14d
long long v22; // rdx
long long v23; // rcx
long long v24; // r8
long long v25; // r9
__m128 v26; // xmm4
__m128 v27; // xmm5
_DWORD *ObjectRec; // rax
long long v29; // rdx
__m128 v30; // xmm4
__m128 v31; // xmm5
int v32; // ebp
int v33; // eax
_QWORD *v34; // r12
long long v35; // rbx
int v36; // r13d
bool v37; // sf
unsigned int v38; // [rsp+8h] [rbp-40h] BYREF
int v39; // [rsp+Ch] [rbp-3Ch] BYREF
long long *v40; // [rsp+10h] [rbp-38h]
v9 = (long long)a1;
v10 = *a1;
v11 = (_QWORD *)JS_NewObjectProtoClass(
*a1,
*(_QWORD *)(*(_QWORD *)(*a1 + 64) + 16LL),
*(_QWORD *)(*(_QWORD *)(*a1 + 64) + 24LL),
1u);
v13 = v12;
if ( !(unsigned int)BC_add_object_ref1(a1, v11) && !(unsigned int)bc_get_leb128((long long)a1, &v39, v14, v15, v16, v17) )
{
v21 = v39;
if ( !v39 )
return v11;
v40 = a1;
while ( !(unsigned int)bc_get_atom(v9, &v38) )
{
ObjectRec = (_DWORD *)JS_ReadObjectRec(v9, a2, a3, a4, a5, v26, v27, a8, a9, (long long)&v38, v22, v23, v24, v25);
if ( (_DWORD)v29 == 6 )
{
JS_FreeAtom(v10, v38);
break;
}
v32 = v38;
v33 = JS_DefinePropertyValue(
v10,
(long long)v11,
v13,
v38,
ObjectRec,
v29,
*(double *)a2.m128_u64,
a3,
a4,
a5,
v30,
v31,
a8,
a9,
7);
v34 = v11;
v35 = v13;
v36 = v33;
JS_FreeAtom(v10, v32);
v37 = v36 < 0;
v13 = v35;
v11 = v34;
v9 = (long long)v40;
if ( v37 )
break;
if ( !--v21 )
return v11;
}
}
if ( (unsigned int)v13 >= 0xFFFFFFF7 )
{
v18 = *(_QWORD *)(v10 + 24);
v19 = (*(_DWORD *)v11)--;
if ( v19 <= 1 )
js_free_value_rt(v18, v11, v13);
}
return 0LL;
}
| JS_ReadObjectTag:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV R12,RDI
MOV R15,qword ptr [RDI]
MOV RAX,qword ptr [R15 + 0x40]
MOV RSI,qword ptr [RAX + 0x10]
MOV RDX,qword ptr [RAX + 0x18]
MOV RDI,R15
MOV ECX,0x1
CALL 0x00121651
MOV RBX,RAX
MOV R13,RDX
MOV RDI,R12
MOV RSI,RAX
CALL 0x00148ca0
TEST EAX,EAX
JNZ 0x001481b4
LEA RSI,[RSP + 0xc]
MOV RDI,R12
CALL 0x0014760c
TEST EAX,EAX
JZ 0x001481f2
LAB_001481b4:
MOV R12D,0x6
CMP R13D,-0x9
JC 0x001481db
MOV RDI,qword ptr [R15 + 0x18]
MOV EAX,dword ptr [RBX]
LEA ECX,[RAX + -0x1]
MOV dword ptr [RBX],ECX
CMP EAX,0x1
JG 0x001481db
MOV RSI,RBX
MOV RDX,R13
CALL 0x001219cc
LAB_001481db:
XOR EBX,EBX
LAB_001481dd:
MOV RAX,RBX
MOV RDX,R12
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_001481f2:
MOV R14D,dword ptr [RSP + 0xc]
TEST R14D,R14D
JZ 0x0014826d
MOV qword ptr [RSP + 0x10],R12
LAB_00148201:
MOV RDI,R12
LEA RSI,[RSP + 0x8]
CALL 0x00148ac5
TEST EAX,EAX
JNZ 0x001481b4
MOV RDI,R12
CALL 0x00133970
MOV R9,RDX
CMP R9D,0x6
JZ 0x00148275
MOV EBP,dword ptr [RSP + 0x8]
MOV dword ptr [RSP],0x7
MOV RDI,R15
MOV RSI,RBX
MOV RDX,R13
MOV ECX,EBP
MOV R8,RAX
CALL 0x0012717d
MOV R12,RBX
MOV RBX,R13
MOV R13D,EAX
MOV RDI,R15
MOV ESI,EBP
CALL 0x00120f31
TEST R13D,R13D
MOV R13,RBX
MOV RBX,R12
MOV R12,qword ptr [RSP + 0x10]
JS 0x001481b4
DEC R14D
JNZ 0x00148201
LAB_0014826d:
MOV R12,R13
JMP 0x001481dd
LAB_00148275:
MOV ESI,dword ptr [RSP + 0x8]
MOV RDI,R15
CALL 0x00120f31
JMP 0x001481b4
|
int1 [16] JS_ReadObjectTag(long *param_1)
{
long lVar1;
int8 uVar2;
int4 uVar3;
int iVar4;
int iVar5;
int *piVar6;
int1 auVar7 [16];
int1 auVar8 [16];
int4 local_40;
int local_3c;
long *local_38;
lVar1 = *param_1;
auVar7 = JS_NewObjectProtoClass
(lVar1,*(int8 *)(*(long *)(lVar1 + 0x40) + 0x10),
*(int8 *)(*(long *)(lVar1 + 0x40) + 0x18),1);
piVar6 = auVar7._0_8_;
iVar4 = BC_add_object_ref1(param_1,piVar6);
if ((iVar4 == 0) && (iVar5 = bc_get_leb128(param_1,&local_3c), iVar4 = local_3c, iVar5 == 0)) {
for (; iVar4 != 0; iVar4 = iVar4 + -1) {
local_38 = param_1;
iVar5 = bc_get_atom(param_1,&local_40);
if (iVar5 != 0) goto LAB_001481b4;
auVar8 = JS_ReadObjectRec(param_1);
uVar3 = local_40;
if (auVar8._8_4_ == 6) {
JS_FreeAtom(lVar1,local_40);
goto LAB_001481b4;
}
iVar5 = JS_DefinePropertyValue(lVar1,piVar6,auVar7._8_8_,local_40,auVar8._0_8_,auVar8._8_8_,7)
;
JS_FreeAtom(lVar1,uVar3);
if (iVar5 < 0) goto LAB_001481b4;
param_1 = local_38;
}
}
else {
LAB_001481b4:
if (0xfffffff6 < auVar7._8_4_) {
uVar2 = *(int8 *)(lVar1 + 0x18);
iVar4 = *piVar6;
*piVar6 = iVar4 + -1;
if (iVar4 < 2) {
js_free_value_rt(uVar2,piVar6,auVar7._8_8_);
}
}
auVar7 = ZEXT816(6) << 0x40;
}
return auVar7;
}
| |
28,270 | uhd_best_grid(int, int, float) | monkey531[P]llama/examples/llava/clip.cpp | static std::pair<int, int> uhd_best_grid(const int max_slice_nums, const int multiple, const float log_ratio) {
std::vector<int> candidate_split_grids_nums;
for (int i : {multiple - 1, multiple, multiple + 1}) {
if (i == 1 || i > max_slice_nums) {
continue;
}
candidate_split_grids_nums.push_back(i);
}
std::vector<std::pair<int, int>> candidate_grids;
for (int split_grids_nums : candidate_split_grids_nums) {
int m = 1;
while (m <= split_grids_nums) {
if (split_grids_nums % m == 0) {
candidate_grids.emplace_back(m, split_grids_nums / m);
}
++m;
}
}
std::pair<int, int> best_grid{1, 1};
float min_error = std::numeric_limits<float>::infinity();
for (const auto& grid : candidate_grids) {
float error = std::abs(log_ratio - std::log(1.0 * grid.first / grid.second));
if (error < min_error) {
best_grid = grid;
min_error = error;
}
}
return best_grid;
} | O2 | cpp | uhd_best_grid(int, int, float):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movss %xmm0, 0x4(%rsp)
xorps %xmm0, %xmm0
leaq 0x30(%rsp), %rbx
andq $0x0, 0x10(%rbx)
movaps %xmm0, (%rbx)
leal -0x1(%rdi), %eax
movl %eax, 0x10(%rsp)
movl %edi, 0x14(%rsp)
incl %edi
movl %edi, 0x18(%rsp)
xorl %r15d, %r15d
leaq 0x8(%rsp), %r14
cmpq $0xc, %r15
je 0x35b14
movl 0x10(%rsp,%r15), %eax
movl %eax, 0x8(%rsp)
cmpl $0x1, %eax
sete %cl
cmpl $0xa, %eax
setge %al
orb %cl, %al
jne 0x35b0e
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2bda6
addq $0x4, %r15
jmp 0x35ae4
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rbx
movaps %xmm0, (%rbx)
andq $0x0, 0x10(%rbx)
movq 0x30(%rsp), %r12
movq 0x38(%rsp), %r13
leaq 0x8(%rsp), %r14
leaq 0xc(%rsp), %r15
cmpq %r13, %r12
je 0x35b75
movl (%r12), %ebp
pushq $0x1
popq %rcx
movl %ecx, 0x8(%rsp)
cmpl %ebp, %ecx
jg 0x35b6f
movl %ebp, %eax
cltd
idivl %ecx
testl %edx, %edx
jne 0x35b6b
movl %eax, 0xc(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x42f02
movl 0x8(%rsp), %ecx
incl %ecx
jmp 0x35b44
addq $0x4, %r12
jmp 0x35b38
movq 0x10(%rsp), %r15
movq 0x18(%rsp), %r12
cvtss2sd 0x4(%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
movss 0x90009(%rip), %xmm0 # 0xc5b9c
movss %xmm0, 0x4(%rsp)
pushq $0x1
popq %rbx
movl %ebx, %r14d
cmpq %r12, %r15
je 0x35bed
cvtdq2pd (%r15), %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1 # xmm1 = xmm1[1],xmm0[1]
divsd %xmm1, %xmm0
callq 0x269d0
movsd 0x28(%rsp), %xmm1
subsd %xmm0, %xmm1
cvtsd2ss %xmm1, %xmm0
andps 0x90011(%rip), %xmm0 # 0xc5be0
movss 0x4(%rsp), %xmm1
ucomiss %xmm0, %xmm1
jbe 0x35be7
movl (%r15), %ebx
movl 0x4(%r15), %r14d
movss %xmm0, 0x4(%rsp)
addq $0x8, %r15
jmp 0x35b9f
leaq 0x10(%rsp), %rdi
callq 0x2d83a
leaq 0x30(%rsp), %rdi
callq 0x2b68a
shlq $0x20, %r14
movl %ebx, %eax
orq %r14, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x35c2b
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2d83a
leaq 0x30(%rsp), %rdi
callq 0x2b68a
movq %rbx, %rdi
callq 0x27660
| _ZL13uhd_best_gridiif:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
movss [rsp+78h+var_74], xmm0
xorps xmm0, xmm0
lea rbx, [rsp+78h+var_48]
and qword ptr [rbx+10h], 0
movaps xmmword ptr [rbx], xmm0
lea eax, [rdi-1]
mov dword ptr [rsp+78h+var_68], eax
mov dword ptr [rsp+78h+var_68+4], edi
inc edi
mov dword ptr [rsp+78h+var_60], edi
xor r15d, r15d
lea r14, [rsp+78h+var_70]
loc_35AE4:
cmp r15, 0Ch
jz short loc_35B14
mov eax, dword ptr [rsp+r15+78h+var_68]
mov [rsp+78h+var_70], eax
cmp eax, 1
setz cl
cmp eax, 0Ah
setnl al
or al, cl
jnz short loc_35B0E
mov rdi, rbx
mov rsi, r14
call _ZNSt6vectorIiSaIiEE9push_backERKi; std::vector<int>::push_back(int const&)
loc_35B0E:
add r15, 4
jmp short loc_35AE4
loc_35B14:
xorps xmm0, xmm0
lea rbx, [rsp+78h+var_68]
movaps xmmword ptr [rbx], xmm0
and qword ptr [rbx+10h], 0
mov r12, [rsp+78h+var_48]
mov r13, [rsp+78h+var_40]
lea r14, [rsp+78h+var_70]
lea r15, [rsp+78h+var_6C]
loc_35B38:
cmp r12, r13
jz short loc_35B75
mov ebp, [r12]
push 1
pop rcx
loc_35B44:
mov [rsp+78h+var_70], ecx
cmp ecx, ebp
jg short loc_35B6F
mov eax, ebp
cdq
idiv ecx
test edx, edx
jnz short loc_35B6B
mov [rsp+78h+var_6C], eax
mov rdi, rbx
mov rsi, r14
mov rdx, r15
call _ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJRiiEEERS1_DpOT_; std::vector<std::pair<int,int>>::emplace_back<int &,int>(int &,int &&)
mov ecx, [rsp+78h+var_70]
loc_35B6B:
inc ecx
jmp short loc_35B44
loc_35B6F:
add r12, 4
jmp short loc_35B38
loc_35B75:
mov r15, [rsp+78h+var_68]
mov r12, [rsp+78h+var_60]
cvtss2sd xmm0, [rsp+78h+var_74]
movsd [rsp+78h+var_50], xmm0
movss xmm0, cs:dword_C5B9C
movss [rsp+78h+var_74], xmm0
push 1
pop rbx
mov r14d, ebx
loc_35B9F:
cmp r15, r12
jz short loc_35BED
cvtdq2pd xmm0, qword ptr [r15]
movapd xmm1, xmm0
unpckhpd xmm1, xmm0
divsd xmm0, xmm1
call _log
movsd xmm1, [rsp+78h+var_50]
subsd xmm1, xmm0
cvtsd2ss xmm0, xmm1
andps xmm0, cs:xmmword_C5BE0
movss xmm1, [rsp+78h+var_74]
ucomiss xmm1, xmm0
jbe short loc_35BE7
mov ebx, [r15]
mov r14d, [r15+4]
movss [rsp+78h+var_74], xmm0
loc_35BE7:
add r15, 8
jmp short loc_35B9F
loc_35BED:
lea rdi, [rsp+78h+var_68]
call _ZNSt12_Vector_baseISt4pairIiiESaIS1_EED2Ev; std::_Vector_base<std::pair<int,int>>::~_Vector_base()
lea rdi, [rsp+78h+var_48]
call _ZNSt12_Vector_baseIiSaIiEED2Ev; std::_Vector_base<int>::~_Vector_base()
shl r14, 20h
mov eax, ebx
or rax, r14
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
mov rbx, rax
jmp short loc_35C2B
mov rbx, rax
lea rdi, [rsp+arg_8]
call _ZNSt12_Vector_baseISt4pairIiiESaIS1_EED2Ev; std::_Vector_base<std::pair<int,int>>::~_Vector_base()
loc_35C2B:
lea rdi, [rsp+arg_28]
call _ZNSt12_Vector_baseIiSaIiEED2Ev; std::_Vector_base<int>::~_Vector_base()
mov rdi, rbx
call __Unwind_Resume
| long long uhd_best_grid(int a1, float a2)
{
long long i; // r15
int *j; // r12
int *v4; // r13
int v5; // ebp
int k; // ecx
__m64 *v7; // r12
__m64 *v8; // r15
unsigned int v9; // ebx
long long v10; // r14
__m128d v11; // xmm0
float v12; // xmm0_4
float v14; // [rsp+4h] [rbp-74h]
int v15; // [rsp+8h] [rbp-70h] BYREF
int v16; // [rsp+Ch] [rbp-6Ch] BYREF
__int128 v17; // [rsp+10h] [rbp-68h] BYREF
long long v18; // [rsp+20h] [rbp-58h]
double v19; // [rsp+28h] [rbp-50h]
__int128 v20; // [rsp+30h] [rbp-48h] BYREF
long long v21; // [rsp+40h] [rbp-38h]
v21 = 0LL;
v20 = 0LL;
LODWORD(v17) = a1 - 1;
DWORD1(v17) = a1;
DWORD2(v17) = a1 + 1;
for ( i = 0LL; i != 12; i += 4LL )
{
v15 = *(_DWORD *)((char *)&v17 + i);
if ( v15 != 1 && v15 < 10 )
std::vector<int>::push_back((long long)&v20, (unsigned int *)&v15);
}
v17 = 0LL;
v18 = 0LL;
v4 = (int *)*((_QWORD *)&v20 + 1);
for ( j = (int *)v20; j != v4; ++j )
{
v5 = *j;
for ( k = 1; ; ++k )
{
v15 = k;
if ( k > v5 )
break;
if ( !(v5 % k) )
{
v16 = v5 / k;
std::vector<std::pair<int,int>>::emplace_back<int &,int>(&v17, &v15, &v16);
k = v15;
}
}
}
v7 = (__m64 *)*((_QWORD *)&v17 + 1);
v8 = (__m64 *)v17;
v19 = a2;
v14 = INFINITY;
v9 = 1;
v10 = 1LL;
while ( v8 != v7 )
{
v11 = _mm_cvtepi32_pd((__m64)v8->m64_u64);
v11.m128d_f64[0] = log(v11.m128d_f64[0] / _mm_unpackhi_pd(v11, v11).m128d_f64[0]);
*(float *)v11.m128d_f64 = v19 - v11.m128d_f64[0];
v12 = fabs(*(float *)v11.m128d_f64);
if ( v14 > v12 )
{
v9 = v8->m64_i32[0];
v10 = v8->m64_u32[1];
v14 = v12;
}
++v8;
}
std::_Vector_base<std::pair<int,int>>::~_Vector_base((long long)&v17);
std::_Vector_base<int>::~_Vector_base(&v20);
return (v10 << 32) | v9;
}
| uhd_best_grid:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOVSS dword ptr [RSP + 0x4],XMM0
XORPS XMM0,XMM0
LEA RBX,[RSP + 0x30]
AND qword ptr [RBX + 0x10],0x0
MOVAPS xmmword ptr [RBX],XMM0
LEA EAX,[RDI + -0x1]
MOV dword ptr [RSP + 0x10],EAX
MOV dword ptr [RSP + 0x14],EDI
INC EDI
MOV dword ptr [RSP + 0x18],EDI
XOR R15D,R15D
LEA R14,[RSP + 0x8]
LAB_00135ae4:
CMP R15,0xc
JZ 0x00135b14
MOV EAX,dword ptr [RSP + R15*0x1 + 0x10]
MOV dword ptr [RSP + 0x8],EAX
CMP EAX,0x1
SETZ CL
CMP EAX,0xa
SETGE AL
OR AL,CL
JNZ 0x00135b0e
LAB_00135b03:
MOV RDI,RBX
MOV RSI,R14
CALL 0x0012bda6
LAB_00135b0e:
ADD R15,0x4
JMP 0x00135ae4
LAB_00135b14:
XORPS XMM0,XMM0
LEA RBX,[RSP + 0x10]
MOVAPS xmmword ptr [RBX],XMM0
AND qword ptr [RBX + 0x10],0x0
MOV R12,qword ptr [RSP + 0x30]
MOV R13,qword ptr [RSP + 0x38]
LEA R14,[RSP + 0x8]
LEA R15,[RSP + 0xc]
LAB_00135b38:
CMP R12,R13
JZ 0x00135b75
MOV EBP,dword ptr [R12]
PUSH 0x1
POP RCX
LAB_00135b44:
MOV dword ptr [RSP + 0x8],ECX
CMP ECX,EBP
JG 0x00135b6f
MOV EAX,EBP
CDQ
IDIV ECX
TEST EDX,EDX
JNZ 0x00135b6b
MOV dword ptr [RSP + 0xc],EAX
LAB_00135b59:
MOV RDI,RBX
MOV RSI,R14
MOV RDX,R15
CALL 0x00142f02
LAB_00135b67:
MOV ECX,dword ptr [RSP + 0x8]
LAB_00135b6b:
INC ECX
JMP 0x00135b44
LAB_00135b6f:
ADD R12,0x4
JMP 0x00135b38
LAB_00135b75:
MOV R15,qword ptr [RSP + 0x10]
MOV R12,qword ptr [RSP + 0x18]
CVTSS2SD XMM0,dword ptr [RSP + 0x4]
MOVSD qword ptr [RSP + 0x28],XMM0
MOVSS XMM0,dword ptr [0x001c5b9c]
MOVSS dword ptr [RSP + 0x4],XMM0
PUSH 0x1
POP RBX
MOV R14D,EBX
LAB_00135b9f:
CMP R15,R12
JZ 0x00135bed
CVTDQ2PD XMM0,qword ptr [R15]
MOVAPD XMM1,XMM0
UNPCKHPD XMM1,XMM0
DIVSD XMM0,XMM1
CALL 0x001269d0
MOVSD XMM1,qword ptr [RSP + 0x28]
SUBSD XMM1,XMM0
CVTSD2SS XMM0,XMM1
ANDPS XMM0,xmmword ptr [0x001c5be0]
MOVSS XMM1,dword ptr [RSP + 0x4]
UCOMISS XMM1,XMM0
JBE 0x00135be7
MOV EBX,dword ptr [R15]
MOV R14D,dword ptr [R15 + 0x4]
MOVSS dword ptr [RSP + 0x4],XMM0
LAB_00135be7:
ADD R15,0x8
JMP 0x00135b9f
LAB_00135bed:
LEA RDI,[RSP + 0x10]
CALL 0x0012d83a
LEA RDI,[RSP + 0x30]
CALL 0x0012b68a
SHL R14,0x20
MOV EAX,EBX
OR RAX,R14
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
/* uhd_best_grid(int, int, float) */
ulong uhd_best_grid(int param_1,int param_2,float param_3)
{
int iVar1;
double dVar2;
uint *puVar3;
int *piVar4;
ulong uVar5;
int *piVar6;
ulong uVar7;
long lVar8;
uint *puVar9;
float fVar10;
float local_74;
int local_70;
int local_6c;
int8 local_68;
uint *puStack_60;
int8 local_58;
double local_50;
int *local_48;
int *piStack_40;
int8 local_38;
local_38 = 0;
local_48 = (int *)0x0;
piStack_40 = (int *)0x0;
local_68 = (uint *)CONCAT44(param_1,param_1 + -1);
puStack_60 = (uint *)CONCAT44(puStack_60._4_4_,param_1 + 1);
for (lVar8 = 0; piVar4 = piStack_40, lVar8 != 0xc; lVar8 = lVar8 + 4) {
local_70 = *(int *)((long)&local_68 + lVar8);
if (local_70 < 10 && local_70 != 1) {
/* try { // try from 00135b03 to 00135b0d has its CatchHandler @ 00135c19 */
std::vector<int,std::allocator<int>>::push_back
((vector<int,std::allocator<int>> *)&local_48,&local_70);
}
}
local_68 = (uint *)0x0;
puStack_60 = (uint *)0x0;
local_58 = 0;
for (piVar6 = local_48; puVar3 = puStack_60, piVar6 != piVar4; piVar6 = piVar6 + 1) {
iVar1 = *piVar6;
local_70 = 1;
while( true ) {
if (iVar1 < local_70) break;
if (iVar1 % local_70 == 0) {
local_6c = iVar1 / local_70;
/* try { // try from 00135b59 to 00135b66 has its CatchHandler @ 00135c1e */
std::vector<std::pair<int,int>,std::allocator<std::pair<int,int>>>::emplace_back<int&,int>
((vector<std::pair<int,int>,std::allocator<std::pair<int,int>>> *)&local_68,
&local_70,&local_6c);
}
local_70 = local_70 + 1;
}
}
local_50 = (double)param_3;
local_74 = DAT_001c5b9c;
uVar5 = 1;
uVar7 = 1;
for (puVar9 = local_68; puVar9 != puVar3; puVar9 = puVar9 + 2) {
dVar2 = log((double)(int)*(int8 *)puVar9 /
(double)(int)((ulong)*(int8 *)puVar9 >> 0x20));
fVar10 = (float)((uint)(float)(local_50 - dVar2) & _DAT_001c5be0);
if (fVar10 < local_74) {
uVar5 = (ulong)*puVar9;
uVar7 = (ulong)puVar9[1];
local_74 = fVar10;
}
}
std::_Vector_base<std::pair<int,int>,std::allocator<std::pair<int,int>>>::~_Vector_base
((_Vector_base<std::pair<int,int>,std::allocator<std::pair<int,int>>> *)&local_68);
std::_Vector_base<int,std::allocator<int>>::~_Vector_base
((_Vector_base<int,std::allocator<int>> *)&local_48);
return uVar5 | uVar7 << 0x20;
}
| |
28,271 | 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);
} | O3 | c | my_read:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r12
movq %rsi, %rbx
movl %edi, -0x2c(%rbp)
movq $0x0, -0x48(%rbp)
movl $0x0, %r15d
testb $0x1a, %cl
jne 0x8509b
leaq 0x36bf60(%rip), %rax # 0x3f0ff8
movq (%rax), %r15
orq %rcx, %r15
callq 0x3ab70
movq %rax, -0x50(%rbp)
movl $0x0, (%rax)
movl -0x2c(%rbp), %edi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x3a8f0
movq %rax, %r14
movl %r15d, %eax
andl $0x6, %eax
movq %rax, -0x38(%rbp)
cmpq %r12, %r14
je 0x8516f
movq %r15, -0x40(%rbp)
movq $0x0, -0x48(%rbp)
movq -0x50(%rbp), %r15
cmpq $0x0, -0x38(%rbp)
sete %r13b
movl (%r15), %r15d
callq 0x85d6a
movl %r15d, (%rax)
cmpq $-0x1, %r14
sete %al
testl %r15d, %r15d
je 0x85106
orb %r13b, %al
jne 0x85111
callq 0x85d6a
movl $0xaf, (%rax)
testq %r14, %r14
sete %al
cmpl $-0x1, %r14d
sete %cl
orb %al, %cl
cmpl $0x4, %r15d
sete %al
testb %al, %cl
jne 0x8514a
leaq 0x1(%r14), %rax
cmpq $0x2, %rax
jb 0x85193
movq -0x40(%rbp), %rax
andl $0x200, %eax # imm = 0x200
je 0x85193
addq %r14, %rbx
subq %r14, %r12
addq %r14, -0x48(%rbp)
movq -0x50(%rbp), %r15
movl $0x0, (%r15)
movl -0x2c(%rbp), %edi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x3a8f0
movq %rax, %r14
cmpq %r12, %rax
jne 0x850e1
movq %r12, %r14
movq -0x48(%rbp), %rcx
addq %r14, %rcx
xorl %eax, %eax
cmpq $0x0, -0x38(%rbp)
cmoveq %rcx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x40(%rbp), %rax
testb $0x1a, %al
je 0x851f3
cmpq $-0x1, %r14
je 0x85220
cmpq $0x0, -0x38(%rbp)
je 0x85257
movq -0x40(%rbp), %r12
movl %r12d, %ebx
andl $0x440, %ebx # imm = 0x440
orq $0x4, %rbx
movl -0x2c(%rbp), %edi
callq 0x88884
movl $0x9, %edi
movq %rbx, %rsi
movq %rax, %rdx
movl %r15d, %ecx
xorl %eax, %eax
callq 0x80bfb
btl $0x9, %r12d
movl $0x1, %eax
movq %rax, -0x38(%rbp)
movq $-0x1, %rax
jb 0x85172
jmp 0x85184
btl $0x9, %eax
setae %cl
cmpq $0x0, -0x38(%rbp)
setne %dl
movq $-0x1, %rax
cmpq $-0x1, %r14
je 0x85184
andb %cl, %dl
je 0x85172
jmp 0x85184
movq -0x40(%rbp), %rbx
andl $0x440, %ebx # imm = 0x440
orq $0x4, %rbx
movl -0x2c(%rbp), %edi
callq 0x88884
movl $0x2, %edi
movq %rbx, %rsi
movq %rax, %rdx
movl %r15d, %ecx
xorl %eax, %eax
callq 0x80bfb
movq $-0x1, %rax
jmp 0x85184
movq $0x0, -0x38(%rbp)
jmp 0x85172
| my_read:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 28h
mov r12, rdx
mov rbx, rsi
mov [rbp+var_2C], edi
mov [rbp+var_48], 0
mov r15d, 0
test cl, 1Ah
jnz short loc_8509B
lea rax, my_global_flags
mov r15, [rax]
loc_8509B:
or r15, rcx
call ___errno_location
mov [rbp+var_50], rax
mov dword ptr [rax], 0
mov edi, [rbp+var_2C]
mov rsi, rbx
mov rdx, r12
call _read
mov r14, rax
mov eax, r15d
and eax, 6
mov [rbp+var_38], rax
cmp r14, r12
jz loc_8516F
mov [rbp+var_40], r15
mov [rbp+var_48], 0
mov r15, [rbp+var_50]
loc_850E1:
cmp [rbp+var_38], 0
setz r13b
mov r15d, [r15]
call _my_thread_var
mov [rax], r15d
cmp r14, 0FFFFFFFFFFFFFFFFh
setz al
test r15d, r15d
jz short loc_85106
or al, r13b
jnz short loc_85111
loc_85106:
call _my_thread_var
mov dword ptr [rax], 0AFh
loc_85111:
test r14, r14
setz al
cmp r14d, 0FFFFFFFFh
setz cl
or cl, al
cmp r15d, 4
setz al
test cl, al
jnz short loc_8514A
lea rax, [r14+1]
cmp rax, 2
jb short loc_85193
mov rax, [rbp+var_40]
and eax, 200h
jz short loc_85193
add rbx, r14
sub r12, r14
add [rbp+var_48], r14
loc_8514A:
mov r15, [rbp+var_50]
mov dword ptr [r15], 0
mov edi, [rbp+var_2C]
mov rsi, rbx
mov rdx, r12
call _read
mov r14, rax
cmp rax, r12
jnz loc_850E1
loc_8516F:
mov r14, r12
loc_85172:
mov rcx, [rbp+var_48]
add rcx, r14
xor eax, eax
cmp [rbp+var_38], 0
cmovz rax, rcx
loc_85184:
add rsp, 28h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
loc_85193:
mov rax, [rbp+var_40]
test al, 1Ah
jz short loc_851F3
cmp r14, 0FFFFFFFFFFFFFFFFh
jz short loc_85220
cmp [rbp+var_38], 0
jz loc_85257
mov r12, [rbp+var_40]
mov ebx, r12d
and ebx, 440h
or rbx, 4
mov edi, [rbp+var_2C]
call my_filename
mov edi, 9
mov rsi, rbx
mov rdx, rax
mov ecx, r15d
xor eax, eax
call my_error
bt r12d, 9
mov eax, 1
mov [rbp+var_38], rax
mov rax, 0FFFFFFFFFFFFFFFFh
jb short loc_85172
jmp short loc_85184
loc_851F3:
bt eax, 9
setnb cl
cmp [rbp+var_38], 0
setnz dl
mov rax, 0FFFFFFFFFFFFFFFFh
cmp r14, 0FFFFFFFFFFFFFFFFh
jz loc_85184
and dl, cl
jz loc_85172
jmp loc_85184
loc_85220:
mov rbx, [rbp+var_40]
and ebx, 440h
or rbx, 4
mov edi, [rbp+var_2C]
call my_filename
mov edi, 2
mov rsi, rbx
mov rdx, rax
mov ecx, r15d
xor eax, eax
call my_error
mov rax, 0FFFFFFFFFFFFFFFFh
jmp loc_85184
loc_85257:
mov [rbp+var_38], 0
jmp loc_85172
| long long my_read(long long a1, long long a2, long long a3, __int16 a4)
{
long long v5; // rbx
__int16 v6; // r15
__int16 v7; // r15
long long v8; // r14
unsigned int *v9; // r15
unsigned int v10; // r15d
long long result; // rax
long long v12; // rax
long long v13; // rax
unsigned int *v14; // [rsp+0h] [rbp-50h]
long long v15; // [rsp+8h] [rbp-48h]
__int16 v16; // [rsp+10h] [rbp-40h]
long long v17; // [rsp+18h] [rbp-38h]
unsigned int v18; // [rsp+24h] [rbp-2Ch]
v5 = a2;
v18 = a1;
v15 = 0LL;
v6 = 0;
if ( (a4 & 0x1A) == 0 )
v6 = my_global_flags;
v7 = a4 | v6;
v14 = (unsigned int *)__errno_location(a1);
*v14 = 0;
a1 = (unsigned int)a1;
v8 = read((unsigned int)a1, a2, a3);
v17 = v7 & 6;
if ( v8 == a3 )
{
LABEL_13:
v8 = a3;
goto LABEL_14;
}
v16 = v7;
v15 = 0LL;
v9 = v14;
while ( 1 )
{
v10 = *v9;
*(_DWORD *)my_thread_var(a1, a2) = v10;
if ( !v10 || v17 != 0 && v8 != -1 )
*(_DWORD *)my_thread_var(a1, a2) = 175;
if ( v10 == 4 && (v8 == 0 || (_DWORD)v8 == -1) )
goto LABEL_12;
if ( (unsigned long long)(v8 + 1) < 2 || (v16 & 0x200) == 0 )
break;
v5 += v8;
a3 -= v8;
v15 += v8;
LABEL_12:
v9 = v14;
*v14 = 0;
a1 = v18;
a2 = v5;
v8 = read(v18, v5, a3);
if ( v8 == a3 )
goto LABEL_13;
}
if ( (v16 & 0x1A) != 0 )
{
if ( v8 == -1 )
{
v13 = my_filename(v18);
my_error(2u, v16 & 0x440 | 4LL, v13, v10);
return -1LL;
}
if ( v17 )
{
v12 = my_filename(v18);
my_error(9u, v16 & 0x440 | 4LL, v12, v10);
v17 = 1LL;
result = -1LL;
if ( (v16 & 0x200) == 0 )
return result;
}
else
{
v17 = 0LL;
}
LABEL_14:
result = 0LL;
if ( !v17 )
return v8 + v15;
}
else
{
result = -1LL;
if ( v8 != -1 && ((v16 & 0x200) != 0 || v17 == 0) )
goto LABEL_14;
}
return result;
}
| my_read:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x28
MOV R12,RDX
MOV RBX,RSI
MOV dword ptr [RBP + -0x2c],EDI
MOV qword ptr [RBP + -0x48],0x0
MOV R15D,0x0
TEST CL,0x1a
JNZ 0x0018509b
LEA RAX,[0x4f0ff8]
MOV R15,qword ptr [RAX]
LAB_0018509b:
OR R15,RCX
CALL 0x0013ab70
MOV qword ptr [RBP + -0x50],RAX
MOV dword ptr [RAX],0x0
MOV EDI,dword ptr [RBP + -0x2c]
MOV RSI,RBX
MOV RDX,R12
CALL 0x0013a8f0
MOV R14,RAX
MOV EAX,R15D
AND EAX,0x6
MOV qword ptr [RBP + -0x38],RAX
CMP R14,R12
JZ 0x0018516f
MOV qword ptr [RBP + -0x40],R15
MOV qword ptr [RBP + -0x48],0x0
MOV R15,qword ptr [RBP + -0x50]
LAB_001850e1:
CMP qword ptr [RBP + -0x38],0x0
SETZ R13B
MOV R15D,dword ptr [R15]
CALL 0x00185d6a
MOV dword ptr [RAX],R15D
CMP R14,-0x1
SETZ AL
TEST R15D,R15D
JZ 0x00185106
OR AL,R13B
JNZ 0x00185111
LAB_00185106:
CALL 0x00185d6a
MOV dword ptr [RAX],0xaf
LAB_00185111:
TEST R14,R14
SETZ AL
CMP R14D,-0x1
SETZ CL
OR CL,AL
CMP R15D,0x4
SETZ AL
TEST CL,AL
JNZ 0x0018514a
LEA RAX,[R14 + 0x1]
CMP RAX,0x2
JC 0x00185193
MOV RAX,qword ptr [RBP + -0x40]
AND EAX,0x200
JZ 0x00185193
ADD RBX,R14
SUB R12,R14
ADD qword ptr [RBP + -0x48],R14
LAB_0018514a:
MOV R15,qword ptr [RBP + -0x50]
MOV dword ptr [R15],0x0
MOV EDI,dword ptr [RBP + -0x2c]
MOV RSI,RBX
MOV RDX,R12
CALL 0x0013a8f0
MOV R14,RAX
CMP RAX,R12
JNZ 0x001850e1
LAB_0018516f:
MOV R14,R12
LAB_00185172:
MOV RCX,qword ptr [RBP + -0x48]
ADD RCX,R14
XOR EAX,EAX
CMP qword ptr [RBP + -0x38],0x0
CMOVZ RAX,RCX
LAB_00185184:
ADD RSP,0x28
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
LAB_00185193:
MOV RAX,qword ptr [RBP + -0x40]
TEST AL,0x1a
JZ 0x001851f3
CMP R14,-0x1
JZ 0x00185220
CMP qword ptr [RBP + -0x38],0x0
JZ 0x00185257
MOV R12,qword ptr [RBP + -0x40]
MOV EBX,R12D
AND EBX,0x440
OR RBX,0x4
MOV EDI,dword ptr [RBP + -0x2c]
CALL 0x00188884
MOV EDI,0x9
MOV RSI,RBX
MOV RDX,RAX
MOV ECX,R15D
XOR EAX,EAX
CALL 0x00180bfb
BT R12D,0x9
MOV EAX,0x1
MOV qword ptr [RBP + -0x38],RAX
MOV RAX,-0x1
JC 0x00185172
JMP 0x00185184
LAB_001851f3:
BT EAX,0x9
SETNC CL
CMP qword ptr [RBP + -0x38],0x0
SETNZ DL
MOV RAX,-0x1
CMP R14,-0x1
JZ 0x00185184
AND DL,CL
JZ 0x00185172
JMP 0x00185184
LAB_00185220:
MOV RBX,qword ptr [RBP + -0x40]
AND EBX,0x440
OR RBX,0x4
MOV EDI,dword ptr [RBP + -0x2c]
CALL 0x00188884
MOV EDI,0x2
MOV RSI,RBX
MOV RDX,RAX
MOV ECX,R15D
XOR EAX,EAX
CALL 0x00180bfb
MOV RAX,-0x1
JMP 0x00185184
LAB_00185257:
MOV qword ptr [RBP + -0x38],0x0
JMP 0x00185172
|
long my_read(int param_1,void *param_2,size_t param_3,ulong param_4)
{
int iVar1;
uint uVar2;
int *piVar4;
size_t sVar5;
int *piVar6;
int4 *puVar7;
long lVar8;
int8 uVar9;
ulong uVar10;
long local_50;
uint uVar3;
local_50 = 0;
uVar10 = 0;
if ((param_4 & 0x1a) == 0) {
uVar10 = my_global_flags;
}
uVar10 = uVar10 | param_4;
piVar4 = __errno_location();
*piVar4 = 0;
sVar5 = read(param_1,param_2,param_3);
uVar3 = (uint)uVar10;
uVar2 = uVar3 & 6;
if (sVar5 != param_3) {
local_50 = 0;
do {
iVar1 = *piVar4;
piVar6 = (int *)_my_thread_var();
*piVar6 = iVar1;
if ((iVar1 == 0) || (sVar5 != 0xffffffffffffffff && (uVar10 & 6) != 0)) {
puVar7 = (int4 *)_my_thread_var();
*puVar7 = 0xaf;
}
if ((int)sVar5 != -1 && sVar5 != 0 || iVar1 != 4) {
if ((sVar5 + 1 < 2) || ((uVar10 & 0x200) == 0)) {
param_3 = sVar5;
if ((uVar10 & 0x1a) == 0) {
if (sVar5 == 0xffffffffffffffff) {
return -1;
}
if ((uVar10 & 6) != 0 && (uVar3 >> 9 & 1) == 0) {
return -1;
}
}
else {
if (sVar5 == 0xffffffffffffffff) {
uVar9 = my_filename(param_1);
my_error(2,uVar3 & 0x440 | 4,uVar9,iVar1);
return -1;
}
if ((uVar10 & 6) == 0) {
uVar2 = 0;
}
else {
uVar9 = my_filename(param_1);
my_error(9,uVar3 & 0x440 | 4,uVar9,iVar1);
uVar2 = 1;
if ((uVar3 >> 9 & 1) == 0) {
return -1;
}
}
}
break;
}
param_2 = (void *)((long)param_2 + sVar5);
param_3 = param_3 - sVar5;
local_50 = local_50 + sVar5;
}
*piVar4 = 0;
sVar5 = read(param_1,param_2,param_3);
} while (sVar5 != param_3);
}
lVar8 = 0;
if (uVar2 == 0) {
lVar8 = local_50 + param_3;
}
return lVar8;
}
| |
28,272 | my_strerror | eloqsql/strings/my_vsnprintf.c | const char* my_strerror(char *buf, size_t len, int nr)
{
char *msg= NULL;
buf[0]= '\0'; /* failsafe */
if (nr <= 0)
{
strmake(buf, (nr == 0 ?
"Internal error/check (Not system error)" :
"Internal error < 0 (Not system error)"),
len-1);
return buf;
}
/*
These (handler-) error messages are shared by perror, as required
by the principle of least surprise.
*/
if ((nr >= HA_ERR_FIRST) && (nr <= HA_ERR_LAST))
{
msg= (char *) handler_error_messages[nr - HA_ERR_FIRST];
strmake(buf, msg, len - 1);
}
else
{
/*
On Windows, do things the Windows way. On a system that supports both
the GNU and the XSI variant, use whichever was configured (GNU); if
this choice is not advertised, use the default (POSIX/XSI). Testing
for __GNUC__ is not sufficient to determine whether this choice exists.
*/
#if defined(_WIN32)
strerror_s(buf, len, nr);
#elif ((defined _POSIX_C_SOURCE && (_POSIX_C_SOURCE >= 200112L)) || \
(defined _XOPEN_SOURCE && (_XOPEN_SOURCE >= 600))) && \
! defined _GNU_SOURCE
strerror_r(nr, buf, len); /* I can build with or without GNU */
#elif defined(__GLIBC__) && defined (_GNU_SOURCE)
char *r= strerror_r(nr, buf, len);
if (r != buf) /* Want to help, GNU? */
strmake(buf, r, len - 1); /* Then don't. */
#else
strerror_r(nr, buf, len);
#endif
}
/*
strerror() return values are implementation-dependent, so let's
be pragmatic.
*/
if (!buf[0])
strmake(buf, "unknown error", len - 1);
return buf;
} | O3 | c | my_strerror:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movb $0x0, (%rdi)
testl %edx, %edx
jle 0x92876
leal -0x78(%rdx), %eax
cmpl $0x4e, %eax
ja 0x9288a
movl %eax, %eax
leaq 0x2830af(%rip), %rcx # 0x31591c
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
jmp 0x9289f
leaq 0x798b(%rip), %rax # 0x9a208
leaq 0x79ac(%rip), %rsi # 0x9a230
cmoveq %rax, %rsi
jmp 0x928b7
movl %edx, %edi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x280d0
movq %rax, %rsi
cmpq %rbx, %rax
je 0x928ab
leaq -0x1(%r14), %rdx
movq %rbx, %rdi
callq 0x92cd8
cmpb $0x0, (%rbx)
jne 0x928c5
leaq 0x799f(%rip), %rsi # 0x9a256
decq %r14
movq %rbx, %rdi
movq %r14, %rdx
callq 0x92cd8
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
| my_strerror:
push rbp
mov rbp, rsp
push r14
push rbx
mov r14, rsi
mov rbx, rdi
mov byte ptr [rdi], 0
test edx, edx
jle short loc_92876
lea eax, [rdx-78h]
cmp eax, 4Eh ; 'N'
ja short loc_9288A
mov eax, eax
lea rcx, handler_error_messages_rel
movsxd rsi, dword ptr [rcx+rax*4]
add rsi, rcx
jmp short loc_9289F
loc_92876:
lea rax, aInternalErrorC; "Internal error/check (Not system error)"
lea rsi, aInternalError0; "Internal error < 0 (Not system error)"
cmovz rsi, rax
jmp short loc_928B7
loc_9288A:
mov edi, edx
mov rsi, rbx
mov rdx, r14
call _strerror_r
mov rsi, rax
cmp rax, rbx
jz short loc_928AB
loc_9289F:
lea rdx, [r14-1]
mov rdi, rbx
call strmake
loc_928AB:
cmp byte ptr [rbx], 0
jnz short loc_928C5
lea rsi, aUnknownError; "unknown error"
loc_928B7:
dec r14
mov rdi, rbx
mov rdx, r14
call strmake
loc_928C5:
mov rax, rbx
pop rbx
pop r14
pop rbp
retn
| char * my_strerror(char *a1, long long a2, int a3)
{
char *v4; // rsi
const char *v5; // rsi
*a1 = 0;
if ( a3 <= 0 )
{
v5 = "Internal error < 0 (Not system error)";
if ( !a3 )
v5 = "Internal error/check (Not system error)";
goto LABEL_11;
}
if ( (unsigned int)(a3 - 120) > 0x4E )
{
v4 = (char *)strerror_r((unsigned int)a3, a1, a2);
if ( v4 == a1 )
goto LABEL_9;
}
else
{
v4 = (char *)handler_error_messages_rel + handler_error_messages_rel[a3 - 120];
}
strmake(a1, v4, a2 - 1);
LABEL_9:
if ( !*a1 )
{
v5 = "unknown error";
LABEL_11:
strmake(a1, v5, a2 - 1);
}
return a1;
}
| my_strerror:
PUSH RBP
MOV RBP,RSP
PUSH R14
PUSH RBX
MOV R14,RSI
MOV RBX,RDI
MOV byte ptr [RDI],0x0
TEST EDX,EDX
JLE 0x00192876
LEA EAX,[RDX + -0x78]
CMP EAX,0x4e
JA 0x0019288a
MOV EAX,EAX
LEA RCX,[0x41591c]
MOVSXD RSI,dword ptr [RCX + RAX*0x4]
ADD RSI,RCX
JMP 0x0019289f
LAB_00192876:
LEA RAX,[0x19a208]
LEA RSI,[0x19a230]
CMOVZ RSI,RAX
JMP 0x001928b7
LAB_0019288a:
MOV EDI,EDX
MOV RSI,RBX
MOV RDX,R14
CALL 0x001280d0
MOV RSI,RAX
CMP RAX,RBX
JZ 0x001928ab
LAB_0019289f:
LEA RDX,[R14 + -0x1]
MOV RDI,RBX
CALL 0x00192cd8
LAB_001928ab:
CMP byte ptr [RBX],0x0
JNZ 0x001928c5
LEA RSI,[0x19a256]
LAB_001928b7:
DEC R14
MOV RDI,RBX
MOV RDX,R14
CALL 0x00192cd8
LAB_001928c5:
MOV RAX,RBX
POP RBX
POP R14
POP RBP
RET
|
char * my_strerror(char *param_1,size_t param_2,int param_3)
{
char *pcVar1;
*param_1 = '\0';
if (param_3 < 1) {
pcVar1 = "Internal error < 0 (Not system error)";
if (param_3 == 0) {
pcVar1 = "Internal error/check (Not system error)";
}
goto LAB_001928b7;
}
if (param_3 - 0x78U < 0x4f) {
pcVar1 = handler_error_messages_rel +
*(int *)(handler_error_messages_rel + (ulong)(param_3 - 0x78U) * 4);
LAB_0019289f:
strmake(param_1,pcVar1,param_2 - 1);
}
else {
pcVar1 = strerror_r(param_3,param_1,param_2);
if (pcVar1 != param_1) goto LAB_0019289f;
}
if (*param_1 != '\0') {
return param_1;
}
pcVar1 = "unknown error";
LAB_001928b7:
strmake(param_1,pcVar1,param_2 - 1);
return param_1;
}
| |
28,273 | MemoryManager::getByte(unsigned int, unsigned int*) | EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/MemoryManager.cpp | bool MemoryManager::isAddrExist(uint32_t addr) {
return addr < UINT32_MAX;
} | O1 | cpp | MemoryManager::getByte(unsigned int, unsigned int*):
pushq %rbx
cmpl $-0x1, %esi
je 0xec8c
movq (%rdi), %rax
movl %esi, %ecx
movb (%rax,%rcx), %bl
movl %ebx, %eax
popq %rbx
retq
leaq 0x6866(%rip), %rdi # 0x154f9
xorl %ebx, %ebx
xorl %eax, %eax
callq 0xb3b0
jmp 0xec88
| _ZN13MemoryManager14getByteNoCacheEj:
push rbx
cmp esi, 0FFFFFFFFh
jz short loc_EC8C
mov rax, [rdi]
mov ecx, esi
mov bl, [rax+rcx]
loc_EC88:
mov eax, ebx
pop rbx
retn
loc_EC8C:
lea rdi, aByteReadToInva; "Byte read to invalid addr 0x%x!\n"
xor ebx, ebx
xor eax, eax
call _Z9dbgprintfPKcz; dbgprintf(char const*,...)
jmp short loc_EC88
| long long MemoryManager::getByteNoCache(
MemoryManager *this,
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)
{
unsigned int v14; // ebx
char v16; // [rsp+0h] [rbp-8h]
if ( (_DWORD)a2 == -1 )
{
v14 = 0;
dbgprintf("Byte read to invalid addr 0x%x!\n", a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14, v16);
}
else
{
LOBYTE(v14) = *(_BYTE *)(*(_QWORD *)this + (unsigned int)a2);
}
return v14;
}
| getByteNoCache:
PUSH RBX
CMP ESI,-0x1
JZ 0x0010ec8c
MOV RAX,qword ptr [RDI]
MOV ECX,ESI
MOV BL,byte ptr [RAX + RCX*0x1]
LAB_0010ec88:
MOV EAX,EBX
POP RBX
RET
LAB_0010ec8c:
LEA RDI,[0x1154f9]
XOR EBX,EBX
XOR EAX,EAX
CALL 0x0010b3b0
JMP 0x0010ec88
|
/* MemoryManager::getByteNoCache(unsigned int) */
ulong __thiscall MemoryManager::getByteNoCache(MemoryManager *this,uint param_1)
{
int8 unaff_RBX;
ulong uVar1;
if (param_1 == 0xffffffff) {
uVar1 = 0;
dbgprintf("Byte read to invalid addr 0x%x!\n");
}
else {
uVar1 = CONCAT71((int7)((ulong)unaff_RBX >> 8),*(int1 *)(*(long *)this + (ulong)param_1));
}
return uVar1 & 0xffffffff;
}
| |
28,274 | MemoryManager::getByte(unsigned int, unsigned int*) | EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/MemoryManager.cpp | bool MemoryManager::isAddrExist(uint32_t addr) {
return addr < UINT32_MAX;
} | O2 | cpp | MemoryManager::getByte(unsigned int, unsigned int*):
pushq %rbx
cmpl $-0x1, %esi
je 0xf7f6
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0xf80b
movq %rax, %rdi
popq %rbx
jmp 0x13596
leaq 0x5cd2(%rip), %rdi # 0x154cf
xorl %ebx, %ebx
pushq $-0x1
popq %rsi
xorl %eax, %eax
callq 0xcefb
jmp 0xf813
movq (%rdi), %rax
movl %esi, %ecx
movb (%rax,%rcx), %bl
movl %ebx, %eax
popq %rbx
retq
nop
| _ZN13MemoryManager7getByteEjPj:
push rbx
cmp esi, 0FFFFFFFFh
jz short loc_F7F6
mov rax, [rdi+8]
test rax, rax
jz short loc_F80B
mov rdi, rax; this
pop rbx
jmp _ZN5Cache7getByteEjPj; Cache::getByte(uint,uint *)
loc_F7F6:
lea rdi, aByteReadToInva; "Byte read to invalid addr 0x%x!\n"
xor ebx, ebx
push 0FFFFFFFFFFFFFFFFh
pop rsi
xor eax, eax
call _Z9dbgprintfPKcz; dbgprintf(char const*,...)
jmp short loc_F813
loc_F80B:
mov rax, [rdi]
mov ecx, esi
mov bl, [rax+rcx]
loc_F813:
mov eax, ebx
pop rbx
retn
| long long MemoryManager::getByte(
Cache **this,
unsigned int a2,
unsigned int *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)
{
unsigned int v14; // ebx
char v16; // [rsp+0h] [rbp-8h]
if ( a2 == -1 )
{
v14 = 0;
dbgprintf(
"Byte read to invalid addr 0x%x!\n",
-1LL,
(long long)a3,
a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
v16);
}
else
{
if ( this[1] )
return Cache::getByte(this[1], a2, a3);
LOBYTE(v14) = *((_BYTE *)*this + a2);
}
return v14;
}
| getByte:
PUSH RBX
CMP ESI,-0x1
JZ 0x0010f7f6
MOV RAX,qword ptr [RDI + 0x8]
TEST RAX,RAX
JZ 0x0010f80b
MOV RDI,RAX
POP RBX
JMP 0x00113596
LAB_0010f7f6:
LEA RDI,[0x1154cf]
XOR EBX,EBX
PUSH -0x1
POP RSI
XOR EAX,EAX
CALL 0x0010cefb
JMP 0x0010f813
LAB_0010f80b:
MOV RAX,qword ptr [RDI]
MOV ECX,ESI
MOV BL,byte ptr [RAX + RCX*0x1]
LAB_0010f813:
MOV EAX,EBX
POP RBX
RET
|
/* MemoryManager::getByte(unsigned int, unsigned int*) */
ulong __thiscall MemoryManager::getByte(MemoryManager *this,uint param_1,uint *param_2)
{
ulong uVar1;
int8 unaff_RBX;
if (param_1 == 0xffffffff) {
uVar1 = 0;
dbgprintf("Byte read to invalid addr 0x%x!\n",0xffffffffffffffff);
}
else {
if (*(Cache **)(this + 8) != (Cache *)0x0) {
uVar1 = Cache::getByte(*(Cache **)(this + 8),param_1,param_2);
return uVar1;
}
uVar1 = CONCAT71((int7)((ulong)unaff_RBX >> 8),*(int1 *)(*(long *)this + (ulong)param_1));
}
return uVar1 & 0xffffffff;
}
| |
28,275 | MemoryManager::getByte(unsigned int, unsigned int*) | EnderturtleOrz[P]CSC3050-2025-Spring-Project-3/src/MemoryManager.cpp | bool MemoryManager::isAddrExist(uint32_t addr) {
return addr < UINT32_MAX;
} | O3 | cpp | MemoryManager::getByte(unsigned int, unsigned int*):
pushq %rbx
cmpl $-0x1, %esi
je 0xec16
movq (%rdi), %rax
movl %esi, %ecx
movb (%rax,%rcx), %bl
movl %ebx, %eax
popq %rbx
retq
leaq 0x68dc(%rip), %rdi # 0x154f9
xorl %ebx, %ebx
movl $0xffffffff, %esi # imm = 0xFFFFFFFF
xorl %eax, %eax
callq 0xb3b0
jmp 0xec12
nop
| _ZN13MemoryManager14getByteNoCacheEj:
push rbx
cmp esi, 0FFFFFFFFh
jz short loc_EC16
mov rax, [rdi]
mov ecx, esi
mov bl, [rax+rcx]
loc_EC12:
mov eax, ebx
pop rbx
retn
loc_EC16:
lea rdi, aByteReadToInva; "Byte read to invalid addr 0x%x!\n"
xor ebx, ebx
mov esi, 0FFFFFFFFh
xor eax, eax
call _Z9dbgprintfPKcz; dbgprintf(char const*,...)
jmp short loc_EC12
| long long MemoryManager::getByteNoCache(
MemoryManager *this,
unsigned int 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)
{
unsigned int v14; // ebx
char v16; // [rsp+0h] [rbp-8h]
if ( a2 == -1 )
{
v14 = 0;
dbgprintf(
"Byte read to invalid addr 0x%x!\n",
0xFFFFFFFFLL,
a3,
a4,
a5,
a6,
a7,
a8,
a9,
a10,
a11,
a12,
a13,
a14,
v16);
}
else
{
LOBYTE(v14) = *(_BYTE *)(*(_QWORD *)this + a2);
}
return v14;
}
| getByteNoCache:
PUSH RBX
CMP ESI,-0x1
JZ 0x0010ec16
MOV RAX,qword ptr [RDI]
MOV ECX,ESI
MOV BL,byte ptr [RAX + RCX*0x1]
LAB_0010ec12:
MOV EAX,EBX
POP RBX
RET
LAB_0010ec16:
LEA RDI,[0x1154f9]
XOR EBX,EBX
MOV ESI,0xffffffff
XOR EAX,EAX
CALL 0x0010b3b0
JMP 0x0010ec12
|
/* MemoryManager::getByteNoCache(unsigned int) */
ulong __thiscall MemoryManager::getByteNoCache(MemoryManager *this,uint param_1)
{
int8 unaff_RBX;
ulong uVar1;
if (param_1 == 0xffffffff) {
uVar1 = 0;
dbgprintf("Byte read to invalid addr 0x%x!\n",0xffffffff);
}
else {
uVar1 = CONCAT71((int7)((ulong)unaff_RBX >> 8),*(int1 *)(*(long *)this + (ulong)param_1));
}
return uVar1 & 0xffffffff;
}
| |
28,276 | UIMouse::update(float) | GhostEscape/src/screen/ui_mouse.cpp | void UIMouse::update(float dt)
{
timer_ += dt;
if (timer_ < 0.3f) {
sprite1_->setActive(true);
sprite2_->setActive(false);
} else if (timer_ < 0.6f) {
sprite1_->setActive(false);
sprite2_->setActive(true);
} else {
timer_ = 0;
}
setRenderPosition(game_.getMousePosition());
} | O3 | cpp | UIMouse::update(float):
addss 0x68(%rdi), %xmm0
movss %xmm0, 0x68(%rdi)
movss 0x6232(%rip), %xmm1 # 0x10014
ucomiss %xmm0, %xmm1
jbe 0x9df9
movq 0x58(%rdi), %rax
movb $0x1, 0x48(%rax)
movq 0x60(%rdi), %rax
movb $0x0, 0x48(%rax)
jmp 0x9e1f
movss 0x6217(%rip), %xmm1 # 0x10018
ucomiss %xmm0, %xmm1
jbe 0x9e18
movq 0x58(%rdi), %rax
movb $0x0, 0x48(%rax)
movq 0x60(%rdi), %rax
movb $0x1, 0x48(%rax)
jmp 0x9e1f
movl $0x0, 0x68(%rdi)
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq 0x10(%rdi), %rax
movsd 0x10(%rax), %xmm0
leaq -0x8(%rbp), %rsi
movsd %xmm0, (%rsi)
movq (%rdi), %rax
callq *0x48(%rax)
addq $0x10, %rsp
popq %rbp
retq
| _ZN7UIMouse6updateEf:
addss xmm0, dword ptr [rdi+68h]
movss dword ptr [rdi+68h], xmm0
movss xmm1, cs:dword_10014
ucomiss xmm1, xmm0
jbe short loc_9DF9
mov rax, [rdi+58h]
mov byte ptr [rax+48h], 1
mov rax, [rdi+60h]
mov byte ptr [rax+48h], 0
jmp short loc_9E1F
loc_9DF9:
movss xmm1, cs:dword_10018
ucomiss xmm1, xmm0
jbe short loc_9E18
mov rax, [rdi+58h]
mov byte ptr [rax+48h], 0
mov rax, [rdi+60h]
mov byte ptr [rax+48h], 1
jmp short loc_9E1F
loc_9E18:
mov dword ptr [rdi+68h], 0
loc_9E1F:
push rbp
mov rbp, rsp
sub rsp, 10h
mov rax, [rdi+10h]
movsd xmm0, qword ptr [rax+10h]
lea rsi, [rbp-8]
movsd qword ptr [rsi], xmm0
mov rax, [rdi]
call qword ptr [rax+48h]
add rsp, 10h
pop rbp
retn
| long long UIMouse::update(UIMouse *this, float a2)
{
float v2; // xmm0_4
v2 = a2 + *((float *)this + 26);
*((float *)this + 26) = v2;
if ( v2 >= 0.30000001 )
{
if ( v2 >= 0.60000002 )
{
*((_DWORD *)this + 26) = 0;
}
else
{
*(_BYTE *)(*((_QWORD *)this + 11) + 72LL) = 0;
*(_BYTE *)(*((_QWORD *)this + 12) + 72LL) = 1;
}
}
else
{
*(_BYTE *)(*((_QWORD *)this + 11) + 72LL) = 1;
*(_BYTE *)(*((_QWORD *)this + 12) + 72LL) = 0;
}
return (*(long long ( **)(UIMouse *))(*(_QWORD *)this + 72LL))(this);
}
| update:
ADDSS XMM0,dword ptr [RDI + 0x68]
MOVSS dword ptr [RDI + 0x68],XMM0
MOVSS XMM1,dword ptr [0x00110014]
UCOMISS XMM1,XMM0
JBE 0x00109df9
MOV RAX,qword ptr [RDI + 0x58]
MOV byte ptr [RAX + 0x48],0x1
MOV RAX,qword ptr [RDI + 0x60]
MOV byte ptr [RAX + 0x48],0x0
JMP 0x00109e1f
LAB_00109df9:
MOVSS XMM1,dword ptr [0x00110018]
UCOMISS XMM1,XMM0
JBE 0x00109e18
MOV RAX,qword ptr [RDI + 0x58]
MOV byte ptr [RAX + 0x48],0x0
MOV RAX,qword ptr [RDI + 0x60]
MOV byte ptr [RAX + 0x48],0x1
JMP 0x00109e1f
LAB_00109e18:
MOV dword ptr [RDI + 0x68],0x0
LAB_00109e1f:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV RAX,qword ptr [RDI + 0x10]
MOVSD XMM0,qword ptr [RAX + 0x10]
LEA RSI,[RBP + -0x8]
MOVSD qword ptr [RSI],XMM0
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x48]
ADD RSP,0x10
POP RBP
RET
|
/* UIMouse::update(float) */
void __thiscall UIMouse::update(UIMouse *this,float param_1)
{
float fVar1;
fVar1 = param_1 + *(float *)(this + 0x68);
*(float *)(this + 0x68) = fVar1;
if (DAT_00110014 <= fVar1) {
if (DAT_00110018 <= fVar1) {
*(int4 *)(this + 0x68) = 0;
}
else {
*(int1 *)(*(long *)(this + 0x58) + 0x48) = 0;
*(int1 *)(*(long *)(this + 0x60) + 0x48) = 1;
}
}
else {
*(int1 *)(*(long *)(this + 0x58) + 0x48) = 1;
*(int1 *)(*(long *)(this + 0x60) + 0x48) = 0;
}
(**(code **)(*(long *)this + 0x48))();
return;
}
| |
28,277 | var_object_test | bluesky950520[P]quickjs/quickjs.c | static void var_object_test(JSContext *ctx, JSFunctionDef *s,
JSAtom var_name, int op, DynBuf *bc,
int *plabel_done, BOOL is_with)
{
dbuf_putc(bc, get_with_scope_opcode(op));
dbuf_put_u32(bc, JS_DupAtom(ctx, var_name));
*plabel_done = new_label_fd(s, *plabel_done);
dbuf_put_u32(bc, *plabel_done);
dbuf_putc(bc, is_with);
update_label(s, *plabel_done, 1);
s->jump_size++;
} | O2 | c | var_object_test:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r14
movq %r8, %r15
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r12
movl 0x40(%rsp), %r13d
leal -0x44(%rcx), %eax
cmpl $0xb6, %ecx
movzbl %al, %eax
pushq $0x73
popq %rcx
cmovnel %eax, %ecx
movzbl %cl, %esi
movq %r8, %rdi
callq 0x198e3
cmpl $0xe0, %ebp
jl 0x611a9
movq 0x18(%r12), %rax
movq 0x68(%rax), %rax
movl %ebp, %ecx
movq (%rax,%rcx,8), %rax
incl (%rax)
movq %r15, %rdi
movl %ebp, %esi
callq 0x40cff
movl (%r14), %esi
movq %rbx, %rdi
callq 0x5f42c
movl %eax, (%r14)
movq %r15, %rdi
movl %eax, %esi
callq 0x40cff
movzbl %r13b, %esi
movq %r15, %rdi
callq 0x198e3
movslq (%r14), %rax
movq 0x170(%rbx), %rcx
imulq $0x18, %rax, %rax
incl (%rcx,%rax)
incl 0x1b0(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| var_object_test:
push rbp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r14, r9
mov r15, r8
mov ebp, edx
mov rbx, rsi
mov r12, rdi
mov r13d, [rsp+38h+arg_0]
lea eax, [rcx-44h]
cmp ecx, 0B6h
movzx eax, al
push 73h ; 's'
pop rcx
cmovnz ecx, eax
movzx esi, cl
mov rdi, r8
call dbuf_putc
cmp ebp, 0E0h
jl short loc_611A9
mov rax, [r12+18h]
mov rax, [rax+68h]
mov ecx, ebp
mov rax, [rax+rcx*8]
inc dword ptr [rax]
loc_611A9:
mov rdi, r15
mov esi, ebp
call dbuf_put_u32
mov esi, [r14]
mov rdi, rbx
call new_label_fd
mov [r14], eax
mov rdi, r15
mov esi, eax
call dbuf_put_u32
movzx esi, r13b
mov rdi, r15
call dbuf_putc
movsxd rax, dword ptr [r14]
mov rcx, [rbx+170h]
imul rax, 18h
inc dword ptr [rcx+rax]
inc dword ptr [rbx+1B0h]
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long var_object_test(long long a1, long long a2, signed int a3, int a4, _QWORD *a5, int *a6, char a7)
{
bool v10; // zf
char v11; // al
char v12; // cl
_DWORD *v13; // rax
unsigned int v14; // eax
long long result; // rax
v10 = a4 == 182;
v11 = a4 - 68;
v12 = 115;
if ( !v10 )
v12 = v11;
dbuf_putc(a5, v12);
if ( a3 >= 224 )
{
v13 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)(a1 + 24) + 104LL) + 8LL * (unsigned int)a3);
++*v13;
}
dbuf_put_u32(a5, a3);
v14 = new_label_fd(a2, *a6);
*a6 = v14;
dbuf_put_u32(a5, v14);
dbuf_putc(a5, a7);
result = 24LL * *a6;
++*(_DWORD *)(*(_QWORD *)(a2 + 368) + result);
++*(_DWORD *)(a2 + 432);
return result;
}
| var_object_test:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R14,R9
MOV R15,R8
MOV EBP,EDX
MOV RBX,RSI
MOV R12,RDI
MOV R13D,dword ptr [RSP + 0x40]
LEA EAX,[RCX + -0x44]
CMP ECX,0xb6
MOVZX EAX,AL
PUSH 0x73
POP RCX
CMOVNZ ECX,EAX
MOVZX ESI,CL
MOV RDI,R8
CALL 0x001198e3
CMP EBP,0xe0
JL 0x001611a9
MOV RAX,qword ptr [R12 + 0x18]
MOV RAX,qword ptr [RAX + 0x68]
MOV ECX,EBP
MOV RAX,qword ptr [RAX + RCX*0x8]
INC dword ptr [RAX]
LAB_001611a9:
MOV RDI,R15
MOV ESI,EBP
CALL 0x00140cff
MOV ESI,dword ptr [R14]
MOV RDI,RBX
CALL 0x0015f42c
MOV dword ptr [R14],EAX
MOV RDI,R15
MOV ESI,EAX
CALL 0x00140cff
MOVZX ESI,R13B
MOV RDI,R15
CALL 0x001198e3
MOVSXD RAX,dword ptr [R14]
MOV RCX,qword ptr [RBX + 0x170]
IMUL RAX,RAX,0x18
INC dword ptr [RCX + RAX*0x1]
INC dword ptr [RBX + 0x1b0]
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void var_object_test(long param_1,long param_2,uint param_3,int param_4,int8 param_5,
int *param_6,int1 param_7)
{
int *piVar1;
int iVar2;
uint uVar3;
uVar3 = 0x73;
if (param_4 != 0xb6) {
uVar3 = param_4 - 0x44U & 0xff;
}
dbuf_putc(param_5,uVar3,param_3,uVar3);
if (0xdf < (int)param_3) {
piVar1 = *(int **)(*(long *)(*(long *)(param_1 + 0x18) + 0x68) + (ulong)param_3 * 8);
*piVar1 = *piVar1 + 1;
}
dbuf_put_u32(param_5,param_3);
iVar2 = new_label_fd(param_2,*param_6);
*param_6 = iVar2;
dbuf_put_u32(param_5,iVar2);
dbuf_putc(param_5,param_7);
piVar1 = (int *)(*(long *)(param_2 + 0x170) + (long)*param_6 * 0x18);
*piVar1 = *piVar1 + 1;
*(int *)(param_2 + 0x1b0) = *(int *)(param_2 + 0x1b0) + 1;
return;
}
| |
28,278 | Modbus::availableStopBits[abi:cxx11]() | serhmarch[P]ModbusBridge/modbus/src/Modbus.cpp | List<StopBits> availableStopBits()
{
List<StopBits> ls;
ls.push_back(OneStop );
ls.push_back(OneAndHalfStop);
ls.push_back(TwoStop );
return ls;
} | O1 | cpp | Modbus::availableStopBits[abi:cxx11]():
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq %rdi, 0x8(%rdi)
movq %rdi, (%rdi)
movq $0x0, 0x10(%rdi)
movl $0x18, %edi
callq 0x5300
movl $0x0, 0x10(%rax)
movq %rax, %rdi
movq %rbx, %rsi
callq 0x5080
incq 0x10(%rbx)
movl $0x18, %edi
callq 0x5300
movl $0x1, 0x10(%rax)
movq %rax, %rdi
movq %rbx, %rsi
callq 0x5080
incq 0x10(%rbx)
movl $0x18, %edi
callq 0x5300
movl $0x2, 0x10(%rax)
movq %rax, %rdi
movq %rbx, %rsi
callq 0x5080
incq 0x10(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
jmp 0x865e
jmp 0x865e
movq %rax, %r14
movq (%rbx), %rdi
cmpq %rbx, %rdi
je 0x867e
movq (%rdi), %r15
movl $0x18, %esi
callq 0x5310
movq %r15, %rdi
cmpq %rbx, %r15
jne 0x8669
movq %r14, %rdi
callq 0x5550
| _ZN6Modbus17availableStopBitsB5cxx11Ev:
push r15
push r14
push rbx
mov rbx, rdi
mov [rdi+8], rdi
mov [rdi], rdi
mov qword ptr [rdi+10h], 0
mov edi, 18h; unsigned __int64
call __Znwm; operator new(ulong)
mov dword ptr [rax+10h], 0
mov rdi, rax; this
mov rsi, rbx; std::__detail::_List_node_base *
call __ZNSt8__detail15_List_node_base7_M_hookEPS0_; std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)
inc qword ptr [rbx+10h]
mov edi, 18h; unsigned __int64
call __Znwm; operator new(ulong)
mov dword ptr [rax+10h], 1
mov rdi, rax; this
mov rsi, rbx; std::__detail::_List_node_base *
call __ZNSt8__detail15_List_node_base7_M_hookEPS0_; std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)
inc qword ptr [rbx+10h]
mov edi, 18h; unsigned __int64
call __Znwm; operator new(ulong)
mov dword ptr [rax+10h], 2
mov rdi, rax; this
mov rsi, rbx; std::__detail::_List_node_base *
call __ZNSt8__detail15_List_node_base7_M_hookEPS0_; std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)
inc qword ptr [rbx+10h]
mov rax, rbx
pop rbx
pop r14
pop r15
retn
jmp short loc_865E
jmp short $+2
loc_865E:
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, rbx
jz short loc_867E
loc_8669:
mov r15, [rdi]
mov esi, 18h; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
mov rdi, r15
cmp r15, rbx
jnz short loc_8669
loc_867E:
mov rdi, r14
call __Unwind_Resume
| std::__detail::_List_node_base * Modbus::availableStopBits[abi:cxx11](std::__detail::_List_node_base *a1)
{
std::__detail::_List_node_base *v1; // rax
std::__detail::_List_node_base *v2; // rax
std::__detail::_List_node_base *v3; // rax
*((_QWORD *)a1 + 1) = a1;
*(_QWORD *)a1 = a1;
*((_QWORD *)a1 + 2) = 0LL;
v1 = (std::__detail::_List_node_base *)operator new(0x18uLL);
*((_DWORD *)v1 + 4) = 0;
std::__detail::_List_node_base::_M_hook(v1, a1);
++*((_QWORD *)a1 + 2);
v2 = (std::__detail::_List_node_base *)operator new(0x18uLL);
*((_DWORD *)v2 + 4) = 1;
std::__detail::_List_node_base::_M_hook(v2, a1);
++*((_QWORD *)a1 + 2);
v3 = (std::__detail::_List_node_base *)operator new(0x18uLL);
*((_DWORD *)v3 + 4) = 2;
std::__detail::_List_node_base::_M_hook(v3, a1);
++*((_QWORD *)a1 + 2);
return a1;
}
| availableStopBits[abi:cxx11]:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RDI
MOV qword ptr [RDI + 0x8],RDI
MOV qword ptr [RDI],RDI
MOV qword ptr [RDI + 0x10],0x0
LAB_001085f1:
MOV EDI,0x18
CALL 0x00105300
MOV dword ptr [RAX + 0x10],0x0
MOV RDI,RAX
MOV RSI,RBX
CALL 0x00105080
INC qword ptr [RBX + 0x10]
LAB_00108611:
MOV EDI,0x18
CALL 0x00105300
MOV dword ptr [RAX + 0x10],0x1
MOV RDI,RAX
MOV RSI,RBX
CALL 0x00105080
INC qword ptr [RBX + 0x10]
LAB_00108631:
MOV EDI,0x18
CALL 0x00105300
LAB_0010863b:
MOV dword ptr [RAX + 0x10],0x2
MOV RDI,RAX
MOV RSI,RBX
CALL 0x00105080
INC qword ptr [RBX + 0x10]
MOV RAX,RBX
POP RBX
POP R14
POP R15
RET
|
/* Modbus::availableStopBits[abi:cxx11]() */
Modbus * __thiscall Modbus::availableStopBits_abi_cxx11_(Modbus *this)
{
_List_node_base *p_Var1;
*(Modbus **)(this + 8) = this;
*(Modbus **)this = this;
*(int8 *)(this + 0x10) = 0;
/* try { // try from 001085f1 to 001085fa has its CatchHandler @ 0010865e */
p_Var1 = (_List_node_base *)operator_new(0x18);
*(int4 *)(p_Var1 + 0x10) = 0;
std::__detail::_List_node_base::_M_hook(p_Var1);
*(long *)(this + 0x10) = *(long *)(this + 0x10) + 1;
/* try { // try from 00108611 to 0010861a has its CatchHandler @ 0010865c */
p_Var1 = (_List_node_base *)operator_new(0x18);
*(int4 *)(p_Var1 + 0x10) = 1;
std::__detail::_List_node_base::_M_hook(p_Var1);
*(long *)(this + 0x10) = *(long *)(this + 0x10) + 1;
/* try { // try from 00108631 to 0010863a has its CatchHandler @ 0010865a */
p_Var1 = (_List_node_base *)operator_new(0x18);
*(int4 *)(p_Var1 + 0x10) = 2;
std::__detail::_List_node_base::_M_hook(p_Var1);
*(long *)(this + 0x10) = *(long *)(this + 0x10) + 1;
return this;
}
| |
28,279 | Modbus::availableStopBits[abi:cxx11]() | serhmarch[P]ModbusBridge/modbus/src/Modbus.cpp | List<StopBits> availableStopBits()
{
List<StopBits> ls;
ls.push_back(OneStop );
ls.push_back(OneAndHalfStop);
ls.push_back(TwoStop );
return ls;
} | O3 | cpp | Modbus::availableStopBits[abi:cxx11]():
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq %rdi, 0x8(%rdi)
movq %rdi, (%rdi)
movq $0x0, 0x10(%rdi)
movl $0x18, %edi
callq 0x5300
movl $0x0, 0x10(%rax)
movq %rax, %rdi
movq %rbx, %rsi
callq 0x5080
incq 0x10(%rbx)
movl $0x18, %edi
callq 0x5300
movl $0x1, 0x10(%rax)
movq %rax, %rdi
movq %rbx, %rsi
callq 0x5080
incq 0x10(%rbx)
movl $0x18, %edi
callq 0x5300
movl $0x2, 0x10(%rax)
movq %rax, %rdi
movq %rbx, %rsi
callq 0x5080
incq 0x10(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
jmp 0x877b
jmp 0x877b
movq %rax, %r14
movq (%rbx), %rdi
cmpq %rbx, %rdi
je 0x879b
movq (%rdi), %r15
movl $0x18, %esi
callq 0x5310
movq %r15, %rdi
cmpq %rbx, %r15
jne 0x8786
movq %r14, %rdi
callq 0x5550
| _ZN6Modbus17availableStopBitsB5cxx11Ev:
push r15
push r14
push rbx
mov rbx, rdi
mov [rdi+8], rdi
mov [rdi], rdi
mov qword ptr [rdi+10h], 0
mov edi, 18h; unsigned __int64
call __Znwm; operator new(ulong)
mov dword ptr [rax+10h], 0
mov rdi, rax; this
mov rsi, rbx; std::__detail::_List_node_base *
call __ZNSt8__detail15_List_node_base7_M_hookEPS0_; std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)
inc qword ptr [rbx+10h]
mov edi, 18h; unsigned __int64
call __Znwm; operator new(ulong)
mov dword ptr [rax+10h], 1
mov rdi, rax; this
mov rsi, rbx; std::__detail::_List_node_base *
call __ZNSt8__detail15_List_node_base7_M_hookEPS0_; std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)
inc qword ptr [rbx+10h]
mov edi, 18h; unsigned __int64
call __Znwm; operator new(ulong)
mov dword ptr [rax+10h], 2
mov rdi, rax; this
mov rsi, rbx; std::__detail::_List_node_base *
call __ZNSt8__detail15_List_node_base7_M_hookEPS0_; std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)
inc qword ptr [rbx+10h]
mov rax, rbx
pop rbx
pop r14
pop r15
retn
jmp short loc_877B
jmp short $+2
loc_877B:
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, rbx
jz short loc_879B
loc_8786:
mov r15, [rdi]
mov esi, 18h; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
mov rdi, r15
cmp r15, rbx
jnz short loc_8786
loc_879B:
mov rdi, r14
call __Unwind_Resume
| std::__detail::_List_node_base * Modbus::availableStopBits[abi:cxx11](std::__detail::_List_node_base *a1)
{
std::__detail::_List_node_base *v1; // rax
std::__detail::_List_node_base *v2; // rax
std::__detail::_List_node_base *v3; // rax
*((_QWORD *)a1 + 1) = a1;
*(_QWORD *)a1 = a1;
*((_QWORD *)a1 + 2) = 0LL;
v1 = (std::__detail::_List_node_base *)operator new(0x18uLL);
*((_DWORD *)v1 + 4) = 0;
std::__detail::_List_node_base::_M_hook(v1, a1);
++*((_QWORD *)a1 + 2);
v2 = (std::__detail::_List_node_base *)operator new(0x18uLL);
*((_DWORD *)v2 + 4) = 1;
std::__detail::_List_node_base::_M_hook(v2, a1);
++*((_QWORD *)a1 + 2);
v3 = (std::__detail::_List_node_base *)operator new(0x18uLL);
*((_DWORD *)v3 + 4) = 2;
std::__detail::_List_node_base::_M_hook(v3, a1);
++*((_QWORD *)a1 + 2);
return a1;
}
| availableStopBits[abi:cxx11]:
PUSH R15
PUSH R14
PUSH RBX
MOV RBX,RDI
MOV qword ptr [RDI + 0x8],RDI
MOV qword ptr [RDI],RDI
MOV qword ptr [RDI + 0x10],0x0
LAB_0010870e:
MOV EDI,0x18
CALL 0x00105300
MOV dword ptr [RAX + 0x10],0x0
MOV RDI,RAX
MOV RSI,RBX
CALL 0x00105080
INC qword ptr [RBX + 0x10]
LAB_0010872e:
MOV EDI,0x18
CALL 0x00105300
MOV dword ptr [RAX + 0x10],0x1
MOV RDI,RAX
MOV RSI,RBX
CALL 0x00105080
INC qword ptr [RBX + 0x10]
LAB_0010874e:
MOV EDI,0x18
CALL 0x00105300
LAB_00108758:
MOV dword ptr [RAX + 0x10],0x2
MOV RDI,RAX
MOV RSI,RBX
CALL 0x00105080
INC qword ptr [RBX + 0x10]
MOV RAX,RBX
POP RBX
POP R14
POP R15
RET
|
/* Modbus::availableStopBits[abi:cxx11]() */
Modbus * __thiscall Modbus::availableStopBits_abi_cxx11_(Modbus *this)
{
_List_node_base *p_Var1;
*(Modbus **)(this + 8) = this;
*(Modbus **)this = this;
*(int8 *)(this + 0x10) = 0;
/* try { // try from 0010870e to 00108717 has its CatchHandler @ 0010877b */
p_Var1 = (_List_node_base *)operator_new(0x18);
*(int4 *)(p_Var1 + 0x10) = 0;
std::__detail::_List_node_base::_M_hook(p_Var1);
*(long *)(this + 0x10) = *(long *)(this + 0x10) + 1;
/* try { // try from 0010872e to 00108737 has its CatchHandler @ 00108779 */
p_Var1 = (_List_node_base *)operator_new(0x18);
*(int4 *)(p_Var1 + 0x10) = 1;
std::__detail::_List_node_base::_M_hook(p_Var1);
*(long *)(this + 0x10) = *(long *)(this + 0x10) + 1;
/* try { // try from 0010874e to 00108757 has its CatchHandler @ 00108777 */
p_Var1 = (_List_node_base *)operator_new(0x18);
*(int4 *)(p_Var1 + 0x10) = 2;
std::__detail::_List_node_base::_M_hook(p_Var1);
*(long *)(this + 0x10) = *(long *)(this + 0x10) + 1;
return this;
}
| |
28,280 | my_strnxfrm_8bit_nopad_bin | eloqsql/strings/ctype-bin.c | static size_t
my_strnxfrm_8bit_nopad_bin(CHARSET_INFO *cs,
uchar * dst, size_t dstlen, uint nweights,
const uchar *src, size_t srclen, uint flags)
{
set_if_smaller(srclen, dstlen);
set_if_smaller(srclen, nweights);
if (dst != src)
memcpy(dst, src, srclen);
return my_strxfrm_pad_desc_and_reverse_nopad(cs, dst, dst + srclen,
dst + dstlen,(uint)(nweights - srclen),
flags, 0);
} | O3 | c | my_strnxfrm_8bit_nopad_bin:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %r13
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r15
movl 0x10(%rbp), %r9d
cmpq %rdx, %r13
cmovaeq %rdx, %r13
movl %ecx, %eax
cmpq %rax, %r13
cmovaeq %rax, %r13
cmpq %r8, %rsi
je 0x335de
movq %r12, %rdi
movq %r8, %rsi
movq %r13, %rdx
callq 0x24220
movl 0x10(%rbp), %r9d
leaq (%r12,%r13), %rdx
addq %r12, %r14
subl %r13d, %ebx
movl $0x0, (%rsp)
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rcx
movl %ebx, %r8d
callq 0x3b8fe
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_strnxfrm_8bit_nopad_bin:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
push rax
mov r13, r9
mov ebx, ecx
mov r14, rdx
mov r12, rsi
mov r15, rdi
mov r9d, [rbp+arg_0]
cmp r13, rdx
cmovnb r13, rdx
mov eax, ecx
cmp r13, rax
cmovnb r13, rax
cmp rsi, r8
jz short loc_335DE
mov rdi, r12
mov rsi, r8
mov rdx, r13
call _memcpy
mov r9d, [rbp+arg_0]
loc_335DE:
lea rdx, [r12+r13]
add r14, r12
sub ebx, r13d
mov [rsp+30h+var_30], 0
mov rdi, r15
mov rsi, r12
mov rcx, r14
mov r8d, ebx
call my_strxfrm_pad_desc_and_reverse_nopad
add rsp, 8
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long my_strnxfrm_8bit_nopad_bin(
int a1,
long long a2,
unsigned long long a3,
unsigned int a4,
long long a5,
unsigned long long a6,
int a7)
{
int v9; // r14d
int v10; // r9d
v9 = a3;
v10 = a7;
if ( a6 >= a3 )
a6 = a3;
if ( a6 >= a4 )
a6 = a4;
if ( a2 != a5 )
{
memcpy(a2, a5, a6);
v10 = a7;
}
return my_strxfrm_pad_desc_and_reverse_nopad(a1, a2, (int)a2 + (int)a6, (int)a2 + v9, a4 - (unsigned int)a6, v10, 0);
}
| my_strnxfrm_8bit_nopad_bin:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
PUSH RAX
MOV R13,R9
MOV EBX,ECX
MOV R14,RDX
MOV R12,RSI
MOV R15,RDI
MOV R9D,dword ptr [RBP + 0x10]
CMP R13,RDX
CMOVNC R13,RDX
MOV EAX,ECX
CMP R13,RAX
CMOVNC R13,RAX
CMP RSI,R8
JZ 0x001335de
MOV RDI,R12
MOV RSI,R8
MOV RDX,R13
CALL 0x00124220
MOV R9D,dword ptr [RBP + 0x10]
LAB_001335de:
LEA RDX,[R12 + R13*0x1]
ADD R14,R12
SUB EBX,R13D
MOV dword ptr [RSP],0x0
MOV RDI,R15
MOV RSI,R12
MOV RCX,R14
MOV R8D,EBX
CALL 0x0013b8fe
ADD RSP,0x8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
void my_strnxfrm_8bit_nopad_bin
(int8 param_1,void *param_2,ulong param_3,uint param_4,void *param_5,
ulong param_6,int4 param_7)
{
int8 in_RAX;
uint uVar1;
uVar1 = (uint)((ulong)in_RAX >> 0x20);
if (param_3 <= param_6) {
param_6 = param_3;
}
if (param_4 <= param_6) {
param_6 = (ulong)param_4;
}
if (param_2 != param_5) {
memcpy(param_2,param_5,param_6);
}
my_strxfrm_pad_desc_and_reverse_nopad
(param_1,param_2,(long)param_2 + param_6,param_3 + (long)param_2,param_4 - (int)param_6,
param_7,(ulong)uVar1 << 0x20);
return;
}
| |
28,281 | my_thread_global_reinit | eloqsql/mysys/my_thr_init.c | void my_thread_global_reinit(void)
{
struct st_my_thread_var *tmp;
DBUG_ASSERT(my_thread_global_init_done);
#ifdef HAVE_PSI_INTERFACE
my_init_mysys_psi_keys();
#endif
my_thread_destroy_common_mutex();
my_thread_init_common_mutex();
my_thread_destroy_internal_mutex();
my_thread_init_internal_mutex();
tmp= my_thread_var;
DBUG_ASSERT(tmp);
my_thread_destory_thr_mutex(tmp);
my_thread_init_thr_mutex(tmp);
} | O0 | c | my_thread_global_reinit:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
jmp 0x7d32a
callq 0x7b110
callq 0x7d1d0
callq 0x7d370
callq 0x7d280
callq 0x7d440
callq 0x7d4a0
movq %rax, -0x8(%rbp)
jmp 0x7d34e
movq -0x8(%rbp), %rdi
callq 0x7d4c0
movq -0x8(%rbp), %rdi
callq 0x7d4f0
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
| my_thread_global_reinit:
push rbp
mov rbp, rsp
sub rsp, 10h
jmp short $+2
loc_7D32A:
call my_init_mysys_psi_keys
call my_thread_destroy_common_mutex
call my_thread_init_common_mutex
call my_thread_destroy_internal_mutex
call my_thread_init_internal_mutex
call _my_thread_var
mov [rbp+var_8], rax
jmp short $+2
loc_7D34E:
mov rdi, [rbp+var_8]
call my_thread_destory_thr_mutex
mov rdi, [rbp+var_8]
call my_thread_init_thr_mutex
add rsp, 10h
pop rbp
retn
| long long my_thread_global_reinit()
{
long long v1; // [rsp+8h] [rbp-8h]
my_init_mysys_psi_keys();
my_thread_destroy_common_mutex();
my_thread_init_common_mutex();
my_thread_destroy_internal_mutex();
my_thread_init_internal_mutex();
v1 = my_thread_var();
my_thread_destory_thr_mutex(v1);
return my_thread_init_thr_mutex(v1);
}
| my_thread_global_reinit:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
JMP 0x0017d32a
LAB_0017d32a:
CALL 0x0017b110
CALL 0x0017d1d0
CALL 0x0017d370
CALL 0x0017d280
CALL 0x0017d440
CALL 0x0017d4a0
MOV qword ptr [RBP + -0x8],RAX
JMP 0x0017d34e
LAB_0017d34e:
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0017d4c0
MOV RDI,qword ptr [RBP + -0x8]
CALL 0x0017d4f0
ADD RSP,0x10
POP RBP
RET
|
void my_thread_global_reinit(void)
{
int8 uVar1;
my_init_mysys_psi_keys();
my_thread_destroy_common_mutex();
my_thread_init_common_mutex();
my_thread_destroy_internal_mutex();
my_thread_init_internal_mutex();
uVar1 = _my_thread_var();
my_thread_destory_thr_mutex(uVar1);
my_thread_init_thr_mutex(uVar1);
return;
}
| |
28,282 | POINTonE2_sign | corpus-core[P]colibri-stateless/build_O0/_deps/blst-src/src/e2.c | static void POINTonE2_sign(POINTonE2 *out, const POINTonE2 *in, const pow256 SK)
{
vec384x Z, ZZ;
limb_t inf;
POINTonE2_mult_gls(out, in, SK);
/* convert to affine to remove possible bias in out->Z */
inf = vec_is_zero(out->Z, sizeof(out->Z));
#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
flt_reciprocal_fp2(Z, out->Z); /* 1/Z */
#else
reciprocal_fp2(Z, out->Z); /* 1/Z */
#endif
sqr_fp2(ZZ, Z);
mul_fp2(out->X, out->X, ZZ); /* X = X/Z^2 */
mul_fp2(ZZ, ZZ, Z);
mul_fp2(out->Y, out->Y, ZZ); /* Y = Y/Z^3 */
vec_select(out->Z, out->Z, BLS12_381_G2.Z, sizeof(BLS12_381_G2.Z),
inf); /* Z = inf ? 0 : 1 */
} | O0 | c | POINTonE2_sign:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0xac9a0
movq -0x8(%rbp), %rdi
addq $0xc0, %rdi
movl $0x60, %esi
callq 0xa7680
movq %rax, -0xe8(%rbp)
leaq -0x80(%rbp), %rdi
movq -0x8(%rbp), %rsi
addq $0xc0, %rsi
callq 0xba640
leaq -0xe0(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0xb5100
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rsi
leaq -0xe0(%rbp), %rdx
callq 0xb5090
leaq -0xe0(%rbp), %rdi
leaq -0xe0(%rbp), %rsi
leaq -0x80(%rbp), %rdx
callq 0xb5090
movq -0x8(%rbp), %rdi
addq $0x60, %rdi
movq -0x8(%rbp), %rsi
addq $0x60, %rsi
leaq -0xe0(%rbp), %rdx
callq 0xb5090
movq -0x8(%rbp), %rdi
addq $0xc0, %rdi
movq -0x8(%rbp), %rsi
addq $0xc0, %rsi
movq -0xe8(%rbp), %r8
leaq 0x39acd(%rip), %rdx # 0xe5e20
addq $0xc0, %rdx
movl $0x60, %ecx
callq 0xa74f0
addq $0xf0, %rsp
popq %rbp
retq
nopl (%rax)
| POINTonE2_sign:
push rbp
mov rbp, rsp
sub rsp, 0F0h
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
mov [rbp+var_18], rdx
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
call POINTonE2_mult_gls
mov rdi, [rbp+var_8]
add rdi, 0C0h
mov esi, 60h ; '`'
call vec_is_zero
mov [rbp+var_E8], rax
lea rdi, [rbp+var_80]
mov rsi, [rbp+var_8]
add rsi, 0C0h
call _flt_reciprocal_fp2
lea rdi, [rbp+var_E0]
lea rsi, [rbp+var_80]
call sqr_fp2
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_8]
lea rdx, [rbp+var_E0]
call mul_fp2
lea rdi, [rbp+var_E0]
lea rsi, [rbp+var_E0]
lea rdx, [rbp+var_80]
call mul_fp2
mov rdi, [rbp+var_8]
add rdi, 60h ; '`'
mov rsi, [rbp+var_8]
add rsi, 60h ; '`'
lea rdx, [rbp+var_E0]
call mul_fp2
mov rdi, [rbp+var_8]
add rdi, 0C0h
mov rsi, [rbp+var_8]
add rsi, 0C0h
mov r8, [rbp+var_E8]
lea rdx, BLS12_381_G2
add rdx, 0C0h
mov ecx, 60h ; '`'
call vec_select
add rsp, 0F0h
pop rbp
retn
| long long POINTonE2_sign(long long a1, long long a2, long long a3)
{
unsigned long long is_zero; // [rsp+8h] [rbp-E8h]
_BYTE v5[96]; // [rsp+10h] [rbp-E0h] BYREF
_BYTE v6[104]; // [rsp+70h] [rbp-80h] BYREF
long long v7; // [rsp+D8h] [rbp-18h]
long long v8; // [rsp+E0h] [rbp-10h]
long long v9; // [rsp+E8h] [rbp-8h]
v9 = a1;
v8 = a2;
v7 = a3;
POINTonE2_mult_gls(a1, a2, a3);
is_zero = vec_is_zero(a1 + 192, 0x60uLL);
flt_reciprocal_fp2(v6, a1 + 192);
sqr_fp2(v5, v6);
mul_fp2(v9, v9, v5);
mul_fp2(v5, v5, v6);
mul_fp2(v9 + 96, v9 + 96, v5);
return vec_select(v9 + 192, v9 + 192, (long long)&BLS12_381_G2 + 192, 0x60uLL, is_zero);
}
| POINTonE2_sign:
PUSH RBP
MOV RBP,RSP
SUB RSP,0xf0
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
MOV qword ptr [RBP + -0x18],RDX
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x001ac9a0
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xc0
MOV ESI,0x60
CALL 0x001a7680
MOV qword ptr [RBP + -0xe8],RAX
LEA RDI,[RBP + -0x80]
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0xc0
CALL 0x001ba640
LEA RDI,[RBP + -0xe0]
LEA RSI,[RBP + -0x80]
CALL 0x001b5100
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x8]
LEA RDX,[RBP + -0xe0]
CALL 0x001b5090
LEA RDI,[RBP + -0xe0]
LEA RSI,[RBP + -0xe0]
LEA RDX,[RBP + -0x80]
CALL 0x001b5090
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x60
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0x60
LEA RDX,[RBP + -0xe0]
CALL 0x001b5090
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0xc0
MOV RSI,qword ptr [RBP + -0x8]
ADD RSI,0xc0
MOV R8,qword ptr [RBP + -0xe8]
LEA RDX,[0x1e5e20]
ADD RDX,0xc0
MOV ECX,0x60
CALL 0x001a74f0
ADD RSP,0xf0
POP RBP
RET
|
void POINTonE2_sign(long param_1,int8 param_2,int8 param_3)
{
int8 uVar1;
int1 local_e8 [96];
int1 local_88 [104];
int8 local_20;
int8 local_18;
long local_10;
local_20 = param_3;
local_18 = param_2;
local_10 = param_1;
POINTonE2_mult_gls(param_1,param_2,param_3);
uVar1 = vec_is_zero(local_10 + 0xc0,0x60);
flt_reciprocal_fp2(local_88,local_10 + 0xc0);
sqr_fp2(local_e8,local_88);
mul_fp2(local_10,local_10,local_e8);
mul_fp2(local_e8,local_e8,local_88);
mul_fp2(local_10 + 0x60,local_10 + 0x60,local_e8);
vec_select(local_10 + 0xc0,local_10 + 0xc0,0x1e5ee0,0x60,uVar1);
return;
}
| |
28,283 | google::protobuf::SimpleDescriptorDatabase::DescriptorIndex<google::protobuf::FileDescriptorProto const*>::AddSymbol(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::FileDescriptorProto const*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor_database.cc | bool SimpleDescriptorDatabase::DescriptorIndex<Value>::AddSymbol(
const std::string& name, Value value) {
// We need to make sure not to violate our map invariant.
// If the symbol name is invalid it could break our lookup algorithm (which
// relies on the fact that '.' sorts before all other characters that are
// valid in symbol names).
if (!ValidateSymbolName(name)) {
GOOGLE_LOG(ERROR) << "Invalid symbol name: " << name;
return false;
}
// Try to look up the symbol to make sure a super-symbol doesn't already
// exist.
auto iter = FindLastLessOrEqual(&by_symbol_, name);
if (iter == by_symbol_.end()) {
// Apparently the map is currently empty. Just insert and be done with it.
by_symbol_.insert(
typename std::map<std::string, Value>::value_type(name, value));
return true;
}
if (IsSubSymbol(iter->first, name)) {
GOOGLE_LOG(ERROR) << "Symbol name \"" << name
<< "\" conflicts with the existing "
"symbol \""
<< iter->first << "\".";
return false;
}
// OK, that worked. Now we have to make sure that no symbol in the map is
// a sub-symbol of the one we are inserting. The only symbol which could
// be so is the first symbol that is greater than the new symbol. Since
// |iter| points at the last symbol that is less than or equal, we just have
// to increment it.
++iter;
if (iter != by_symbol_.end() && IsSubSymbol(name, iter->first)) {
GOOGLE_LOG(ERROR) << "Symbol name \"" << name
<< "\" conflicts with the existing "
"symbol \""
<< iter->first << "\".";
return false;
}
// OK, no conflicts.
// Insert the new symbol using the iterator as a hint, the new entry will
// appear immediately before the one the iterator is pointing at.
by_symbol_.insert(
iter, typename std::map<std::string, Value>::value_type(name, value));
return true;
} | O0 | cpp | google::protobuf::SimpleDescriptorDatabase::DescriptorIndex<google::protobuf::FileDescriptorProto const*>::AddSymbol(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::FileDescriptorProto const*):
subq $0x298, %rsp # imm = 0x298
movq %rdi, 0x288(%rsp)
movq %rsi, 0x280(%rsp)
movq %rdx, 0x278(%rsp)
movq 0x288(%rsp), %rax
movq %rax, 0xc0(%rsp)
movq 0x280(%rsp), %rsi
leaq 0x268(%rsp), %rdi
callq 0x158e50
movq 0x268(%rsp), %rdi
movq 0x270(%rsp), %rsi
callq 0x2ec9b0
xorb $-0x1, %al
testb $0x1, %al
jne 0x2f6304
jmp 0x2f63be
leaq 0xf96f4(%rip), %rdx # 0x3ef9ff
leaq 0x230(%rsp), %rdi
movq %rdi, 0xb0(%rsp)
movl $0x2, %esi
movl $0xcd, %ecx
callq 0x19a670
movq 0xb0(%rsp), %rdi
leaq 0xf977f(%rip), %rsi # 0x3efab8
callq 0x199f30
movq %rax, 0xb8(%rsp)
jmp 0x2f6348
movq 0xb8(%rsp), %rdi
movq 0x280(%rsp), %rsi
callq 0x199f60
movq %rax, 0xa8(%rsp)
jmp 0x2f6367
movq 0xa8(%rsp), %rsi
leaq 0x223(%rsp), %rdi
callq 0x19a0e0
jmp 0x2f637e
leaq 0x230(%rsp), %rdi
callq 0x19a6b0
movb $0x0, 0x297(%rsp)
jmp 0x2f68af
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x228(%rsp)
movl %eax, 0x224(%rsp)
leaq 0x230(%rsp), %rdi
callq 0x19a6b0
jmp 0x2f68c0
movq 0xc0(%rsp), %rdi
addq $0x30, %rdi
movq 0x280(%rsp), %rsi
callq 0x2ef3c0
movq 0xc0(%rsp), %rdi
movq %rax, 0x218(%rsp)
addq $0x30, %rdi
callq 0x2f7570
movq %rax, 0x208(%rsp)
leaq 0x210(%rsp), %rdi
leaq 0x208(%rsp), %rsi
callq 0x2f75a0
leaq 0x218(%rsp), %rdi
leaq 0x210(%rsp), %rsi
callq 0x91350
testb $0x1, %al
jne 0x2f642b
jmp 0x2f64e8
movq 0xc0(%rsp), %rax
addq $0x30, %rax
movq %rax, 0x88(%rsp)
movq 0x280(%rsp), %rsi
leaq 0x1e0(%rsp), %rdi
movq %rdi, 0x90(%rsp)
leaq 0x278(%rsp), %rdx
callq 0x2f7610
movq 0x88(%rsp), %rdi
movq 0x90(%rsp), %rsi
callq 0x2f75c0
movb %dl, 0x9f(%rsp)
movq %rax, 0xa0(%rsp)
jmp 0x2f648a
movb 0x9f(%rsp), %al
movq 0xa0(%rsp), %rcx
movq %rcx, 0x1d0(%rsp)
movb %al, 0x1d8(%rsp)
leaq 0x1e0(%rsp), %rdi
callq 0x2f25f0
movb $0x1, 0x297(%rsp)
jmp 0x2f68af
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x228(%rsp)
movl %eax, 0x224(%rsp)
leaq 0x1e0(%rsp), %rdi
callq 0x2f25f0
jmp 0x2f68c0
leaq 0x218(%rsp), %rdi
callq 0x2f7650
movq %rax, %rsi
leaq 0x1c0(%rsp), %rdi
callq 0x158e50
movq 0x280(%rsp), %rsi
leaq 0x1b0(%rsp), %rdi
callq 0x158e50
movq 0x1c0(%rsp), %rdi
movq 0x1c8(%rsp), %rsi
movq 0x1b0(%rsp), %rdx
movq 0x1b8(%rsp), %rcx
callq 0x2ed840
testb $0x1, %al
jne 0x2f6548
jmp 0x2f6647
leaq 0xf94b0(%rip), %rdx # 0x3ef9ff
leaq 0x178(%rsp), %rdi
movq %rdi, 0x78(%rsp)
movl $0x2, %esi
movl $0xdd, %ecx
callq 0x19a670
movq 0x78(%rsp), %rdi
leaq 0xf95c9(%rip), %rsi # 0x3efb40
callq 0x199f30
movq %rax, 0x80(%rsp)
jmp 0x2f6586
movq 0x80(%rsp), %rdi
movq 0x280(%rsp), %rsi
callq 0x199f60
movq %rax, 0x70(%rsp)
jmp 0x2f65a2
movq 0x70(%rsp), %rdi
leaq 0xf95a0(%rip), %rsi # 0x3efb4e
callq 0x199f30
movq %rax, 0x68(%rsp)
jmp 0x2f65ba
leaq 0x218(%rsp), %rdi
callq 0x2f7650
movq 0x68(%rsp), %rdi
movq %rax, %rsi
callq 0x199f60
movq %rax, 0x60(%rsp)
jmp 0x2f65db
movq 0x60(%rsp), %rdi
leaq 0xf6285(%rip), %rsi # 0x3ec86c
callq 0x199f30
movq %rax, 0x58(%rsp)
jmp 0x2f65f3
movq 0x58(%rsp), %rsi
leaq 0x177(%rsp), %rdi
callq 0x19a0e0
jmp 0x2f6607
leaq 0x178(%rsp), %rdi
callq 0x19a6b0
movb $0x0, 0x297(%rsp)
jmp 0x2f68af
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x228(%rsp)
movl %eax, 0x224(%rsp)
leaq 0x178(%rsp), %rdi
callq 0x19a6b0
jmp 0x2f68c0
leaq 0x218(%rsp), %rdi
callq 0x2f7670
movq 0xc0(%rsp), %rdi
addq $0x30, %rdi
callq 0x2f7570
movq %rax, 0x160(%rsp)
leaq 0x168(%rsp), %rdi
leaq 0x160(%rsp), %rsi
callq 0x2f75a0
leaq 0x218(%rsp), %rdi
leaq 0x168(%rsp), %rsi
callq 0x922a0
movb %al, %cl
xorl %eax, %eax
testb $0x1, %cl
movb %al, 0x57(%rsp)
jne 0x2f66a6
jmp 0x2f6701
movq 0x280(%rsp), %rsi
leaq 0x150(%rsp), %rdi
callq 0x158e50
leaq 0x218(%rsp), %rdi
callq 0x2f7650
movq %rax, %rsi
leaq 0x140(%rsp), %rdi
callq 0x158e50
movq 0x150(%rsp), %rdi
movq 0x158(%rsp), %rsi
movq 0x140(%rsp), %rdx
movq 0x148(%rsp), %rcx
callq 0x2ed840
movb %al, 0x57(%rsp)
movb 0x57(%rsp), %al
testb $0x1, %al
jne 0x2f670e
jmp 0x2f6807
leaq 0xf92ea(%rip), %rdx # 0x3ef9ff
leaq 0x108(%rsp), %rdi
movq %rdi, 0x40(%rsp)
movl $0x2, %esi
movl $0xec, %ecx
callq 0x19a670
movq 0x40(%rsp), %rdi
leaq 0xf9403(%rip), %rsi # 0x3efb40
callq 0x199f30
movq %rax, 0x48(%rsp)
jmp 0x2f6749
movq 0x48(%rsp), %rdi
movq 0x280(%rsp), %rsi
callq 0x199f60
movq %rax, 0x38(%rsp)
jmp 0x2f6762
movq 0x38(%rsp), %rdi
leaq 0xf93e0(%rip), %rsi # 0x3efb4e
callq 0x199f30
movq %rax, 0x30(%rsp)
jmp 0x2f677a
leaq 0x218(%rsp), %rdi
callq 0x2f7650
movq 0x30(%rsp), %rdi
movq %rax, %rsi
callq 0x199f60
movq %rax, 0x28(%rsp)
jmp 0x2f679b
movq 0x28(%rsp), %rdi
leaq 0xf60c5(%rip), %rsi # 0x3ec86c
callq 0x199f30
movq %rax, 0x20(%rsp)
jmp 0x2f67b3
movq 0x20(%rsp), %rsi
leaq 0x107(%rsp), %rdi
callq 0x19a0e0
jmp 0x2f67c7
leaq 0x108(%rsp), %rdi
callq 0x19a6b0
movb $0x0, 0x297(%rsp)
jmp 0x2f68af
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x228(%rsp)
movl %eax, 0x224(%rsp)
leaq 0x108(%rsp), %rdi
callq 0x19a6b0
jmp 0x2f68c0
movq 0xc0(%rsp), %rax
addq $0x30, %rax
movq %rax, 0x8(%rsp)
movq 0x218(%rsp), %rax
movq %rax, 0xf8(%rsp)
movq 0x280(%rsp), %rsi
leaq 0xd0(%rsp), %rdi
movq %rdi, 0x10(%rsp)
leaq 0x278(%rsp), %rdx
callq 0x2f7610
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rdx
movq 0xf8(%rsp), %rsi
callq 0x2f76c0
movq %rax, 0x18(%rsp)
jmp 0x2f6868
movq 0x18(%rsp), %rax
movq %rax, 0xc8(%rsp)
leaq 0xd0(%rsp), %rdi
callq 0x2f25f0
movb $0x1, 0x297(%rsp)
jmp 0x2f68af
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x228(%rsp)
movl %eax, 0x224(%rsp)
leaq 0xd0(%rsp), %rdi
callq 0x2f25f0
jmp 0x2f68c0
movb 0x297(%rsp), %al
andb $0x1, %al
addq $0x298, %rsp # imm = 0x298
retq
movq 0x228(%rsp), %rdi
callq 0x90db0
nopl (%rax)
| _ZN6google8protobuf24SimpleDescriptorDatabase15DescriptorIndexIPKNS0_19FileDescriptorProtoEE9AddSymbolERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
sub rsp, 298h
mov [rsp+298h+var_10], rdi
mov [rsp+298h+var_18], rsi
mov [rsp+298h+var_20], rdx
mov rax, [rsp+298h+var_10]
mov [rsp+298h+var_1D8], rax
mov rsi, [rsp+298h+var_18]
lea rdi, [rsp+298h+var_30]
call _ZN6google8protobuf20stringpiece_internal11StringPieceC2ISaIcEEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcET_EE; google::protobuf::stringpiece_internal::StringPiece::StringPiece<std::allocator<char>>(std::string const&)
mov rdi, [rsp+298h+var_30]
mov rsi, [rsp+298h+var_28]
call _ZN6google8protobuf12_GLOBAL__N_118ValidateSymbolNameENS0_20stringpiece_internal11StringPieceE; google::protobuf::`anonymous namespace'::ValidateSymbolName(google::protobuf::stringpiece_internal::StringPiece)
xor al, 0FFh
test al, 1
jnz short loc_2F6304
jmp loc_2F63BE
loc_2F6304:
lea rdx, aWorkspaceLlm4b_57; "/workspace/llm4binary/github2025/aimrt_"...
lea rdi, [rsp+298h+var_68]
mov [rsp+298h+var_1E8], rdi
mov esi, 2
mov ecx, 0CDh
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
mov rdi, [rsp+298h+var_1E8]
lea rsi, aInvalidSymbolN; "Invalid symbol name: "
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+298h+var_1E0], rax
jmp short $+2
loc_2F6348:
mov rdi, [rsp+298h+var_1E0]
mov rsi, [rsp+298h+var_18]
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
mov [rsp+298h+var_1F0], rax
jmp short $+2
loc_2F6367:
mov rsi, [rsp+298h+var_1F0]
lea rdi, [rsp+298h+var_75]
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
jmp short $+2
loc_2F637E:
lea rdi, [rsp+298h+var_68]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
mov [rsp+298h+var_1], 0
jmp loc_2F68AF
mov rcx, rax
mov eax, edx
mov [rsp+arg_220], rcx
mov [rsp+arg_21C], eax
lea rdi, [rsp+arg_228]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
jmp loc_2F68C0
loc_2F63BE:
mov rdi, [rsp+298h+var_1D8]
add rdi, 30h ; '0'
mov rsi, [rsp+298h+var_18]
call _ZN6google8protobuf12_GLOBAL__N_119FindLastLessOrEqualISt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKNS0_19FileDescriptorProtoESt4lessIS9_ESaISt4pairIKS9_SC_EEES9_EENT_14const_iteratorEPKSK_RKT0_; google::protobuf::`anonymous namespace'::FindLastLessOrEqual<std::map<std::string,google::protobuf::FileDescriptorProto const*>,std::string>(std::map<std::string,google::protobuf::FileDescriptorProto const*>::const_iterator const*,std::string const&)
mov rdi, [rsp+298h+var_1D8]
mov [rsp+298h+var_80], rax
add rdi, 30h ; '0'
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6google8protobuf19FileDescriptorProtoESt4lessIS5_ESaISt4pairIKS5_SA_EEE3endEv; std::map<std::string,google::protobuf::FileDescriptorProto const*>::end(void)
mov [rsp+298h+var_90], rax
lea rdi, [rsp+298h+var_88]
lea rsi, [rsp+298h+var_90]
call _ZNSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6google8protobuf19FileDescriptorProtoEEEC2ERKSt17_Rb_tree_iteratorISD_E; std::_Rb_tree_const_iterator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>::_Rb_tree_const_iterator(std::_Rb_tree_iterator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>> const&)
lea rdi, [rsp+298h+var_80]
lea rsi, [rsp+298h+var_88]
call __ZSteqRKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6google8protobuf19FileDescriptorProtoEEESG_; std::operator==(std::_Rb_tree_const_iterator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>> const&,std::_Rb_tree_const_iterator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>> const&)
test al, 1
jnz short loc_2F642B
jmp loc_2F64E8
loc_2F642B:
mov rax, [rsp+298h+var_1D8]
add rax, 30h ; '0'
mov [rsp+298h+var_210], rax
mov rsi, [rsp+298h+var_18]
lea rdi, [rsp+298h+var_B8]
mov [rsp+298h+var_208], rdi
lea rdx, [rsp+298h+var_20]
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6google8protobuf19FileDescriptorProtoEEC2IRSB_TnNSt9enable_ifIXclsr5_PCCPE13_CopyMovePairILb1ES6_T_EEEbE4typeELb1EEERS6_OSG_
mov rdi, [rsp+298h+var_210]
mov rsi, [rsp+298h+var_208]
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6google8protobuf19FileDescriptorProtoESt4lessIS5_ESaISt4pairIKS5_SA_EEE6insertEOSF_; std::map<std::string,google::protobuf::FileDescriptorProto const*>::insert(std::pair<std::string const,google::protobuf::FileDescriptorProto const*>&&)
mov [rsp+298h+var_1F9], dl
mov [rsp+298h+var_1F8], rax
jmp short $+2
loc_2F648A:
mov al, [rsp+298h+var_1F9]
mov rcx, [rsp+298h+var_1F8]
mov [rsp+298h+var_C8], rcx
mov [rsp+298h+var_C0], al
lea rdi, [rsp+298h+var_B8]
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6google8protobuf19FileDescriptorProtoEED2Ev; std::pair<std::string const,google::protobuf::FileDescriptorProto const*>::~pair()
mov [rsp+298h+var_1], 1
jmp loc_2F68AF
mov rcx, rax
mov eax, edx
mov [rsp+arg_220], rcx
mov [rsp+arg_21C], eax
lea rdi, [rsp+arg_1D8]
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6google8protobuf19FileDescriptorProtoEED2Ev; std::pair<std::string const,google::protobuf::FileDescriptorProto const*>::~pair()
jmp loc_2F68C0
loc_2F64E8:
lea rdi, [rsp+298h+var_80]
call _ZNKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6google8protobuf19FileDescriptorProtoEEEptEv; std::_Rb_tree_const_iterator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>::operator->(void)
mov rsi, rax
lea rdi, [rsp+298h+var_D8]
call _ZN6google8protobuf20stringpiece_internal11StringPieceC2ISaIcEEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcET_EE; google::protobuf::stringpiece_internal::StringPiece::StringPiece<std::allocator<char>>(std::string const&)
mov rsi, [rsp+298h+var_18]
lea rdi, [rsp+298h+var_E8]
call _ZN6google8protobuf20stringpiece_internal11StringPieceC2ISaIcEEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcET_EE; google::protobuf::stringpiece_internal::StringPiece::StringPiece<std::allocator<char>>(std::string const&)
mov rdi, [rsp+298h+var_D8]
mov rsi, [rsp+298h+var_D0]
mov rdx, [rsp+298h+var_E8]
mov rcx, [rsp+298h+var_E0]
call _ZN6google8protobuf12_GLOBAL__N_111IsSubSymbolENS0_20stringpiece_internal11StringPieceES3_; google::protobuf::`anonymous namespace'::IsSubSymbol(google::protobuf::stringpiece_internal::StringPiece,google::protobuf::stringpiece_internal::StringPiece)
test al, 1
jnz short loc_2F6548
jmp loc_2F6647
loc_2F6548:
lea rdx, aWorkspaceLlm4b_57; "/workspace/llm4binary/github2025/aimrt_"...
lea rdi, [rsp+298h+var_120]
mov [rsp+298h+var_220], rdi
mov esi, 2
mov ecx, 0DDh
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
mov rdi, [rsp+298h+var_220]
lea rsi, aSymbolName; "Symbol name \""
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+298h+var_218], rax
jmp short $+2
loc_2F6586:
mov rdi, [rsp+298h+var_218]
mov rsi, [rsp+298h+var_18]
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
mov [rsp+298h+var_228], rax
jmp short $+2
loc_2F65A2:
mov rdi, [rsp+298h+var_228]
lea rsi, aConflictsWithT; "\" conflicts with the existing symbol "...
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+298h+var_230], rax
jmp short $+2
loc_2F65BA:
lea rdi, [rsp+298h+var_80]
call _ZNKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6google8protobuf19FileDescriptorProtoEEEptEv; std::_Rb_tree_const_iterator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>::operator->(void)
mov rdi, [rsp+298h+var_230]
mov rsi, rax
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
mov [rsp+298h+var_238], rax
jmp short $+2
loc_2F65DB:
mov rdi, [rsp+298h+var_238]
lea rsi, aWhichIsNotDefi+76h; "\"."
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+298h+var_240], rax
jmp short $+2
loc_2F65F3:
mov rsi, [rsp+298h+var_240]
lea rdi, [rsp+298h+var_121]
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
jmp short $+2
loc_2F6607:
lea rdi, [rsp+298h+var_120]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
mov [rsp+298h+var_1], 0
jmp loc_2F68AF
mov rcx, rax
mov eax, edx
mov [rsp+arg_220], rcx
mov [rsp+arg_21C], eax
lea rdi, [rsp+arg_170]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
jmp loc_2F68C0
loc_2F6647:
lea rdi, [rsp+298h+var_80]
call _ZNSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6google8protobuf19FileDescriptorProtoEEEppEv; std::_Rb_tree_const_iterator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>::operator++(void)
mov rdi, [rsp+298h+var_1D8]
add rdi, 30h ; '0'
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6google8protobuf19FileDescriptorProtoESt4lessIS5_ESaISt4pairIKS5_SA_EEE3endEv; std::map<std::string,google::protobuf::FileDescriptorProto const*>::end(void)
mov [rsp+298h+var_138], rax
lea rdi, [rsp+298h+var_130]
lea rsi, [rsp+298h+var_138]
call _ZNSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6google8protobuf19FileDescriptorProtoEEEC2ERKSt17_Rb_tree_iteratorISD_E; std::_Rb_tree_const_iterator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>::_Rb_tree_const_iterator(std::_Rb_tree_iterator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>> const&)
lea rdi, [rsp+298h+var_80]
lea rsi, [rsp+298h+var_130]
call __ZStneRKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6google8protobuf19FileDescriptorProtoEEESG_; std::operator!=(std::_Rb_tree_const_iterator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>> const&,std::_Rb_tree_const_iterator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>> const&)
mov cl, al
xor eax, eax
test cl, 1
mov [rsp+298h+var_241], al
jnz short loc_2F66A6
jmp short loc_2F6701
loc_2F66A6:
mov rsi, [rsp+298h+var_18]
lea rdi, [rsp+298h+var_148]
call _ZN6google8protobuf20stringpiece_internal11StringPieceC2ISaIcEEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcET_EE; google::protobuf::stringpiece_internal::StringPiece::StringPiece<std::allocator<char>>(std::string const&)
lea rdi, [rsp+298h+var_80]
call _ZNKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6google8protobuf19FileDescriptorProtoEEEptEv; std::_Rb_tree_const_iterator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>::operator->(void)
mov rsi, rax
lea rdi, [rsp+298h+var_158]
call _ZN6google8protobuf20stringpiece_internal11StringPieceC2ISaIcEEERKNSt7__cxx1112basic_stringIcSt11char_traitsIcET_EE; google::protobuf::stringpiece_internal::StringPiece::StringPiece<std::allocator<char>>(std::string const&)
mov rdi, [rsp+298h+var_148]
mov rsi, [rsp+298h+var_140]
mov rdx, [rsp+298h+var_158]
mov rcx, [rsp+298h+var_150]
call _ZN6google8protobuf12_GLOBAL__N_111IsSubSymbolENS0_20stringpiece_internal11StringPieceES3_; google::protobuf::`anonymous namespace'::IsSubSymbol(google::protobuf::stringpiece_internal::StringPiece,google::protobuf::stringpiece_internal::StringPiece)
mov [rsp+298h+var_241], al
loc_2F6701:
mov al, [rsp+298h+var_241]
test al, 1
jnz short loc_2F670E
jmp loc_2F6807
loc_2F670E:
lea rdx, aWorkspaceLlm4b_57; "/workspace/llm4binary/github2025/aimrt_"...
lea rdi, [rsp+298h+var_190]
mov [rsp+298h+var_258], rdi
mov esi, 2
mov ecx, 0ECh
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
mov rdi, [rsp+298h+var_258]
lea rsi, aSymbolName; "Symbol name \""
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+298h+var_250], rax
jmp short $+2
loc_2F6749:
mov rdi, [rsp+298h+var_250]
mov rsi, [rsp+298h+var_18]
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
mov [rsp+298h+var_260], rax
jmp short $+2
loc_2F6762:
mov rdi, [rsp+298h+var_260]
lea rsi, aConflictsWithT; "\" conflicts with the existing symbol "...
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+298h+var_268], rax
jmp short $+2
loc_2F677A:
lea rdi, [rsp+298h+var_80]
call _ZNKSt23_Rb_tree_const_iteratorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6google8protobuf19FileDescriptorProtoEEEptEv; std::_Rb_tree_const_iterator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>::operator->(void)
mov rdi, [rsp+298h+var_268]
mov rsi, rax
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
mov [rsp+298h+var_270], rax
jmp short $+2
loc_2F679B:
mov rdi, [rsp+298h+var_270]
lea rsi, aWhichIsNotDefi+76h; "\"."
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov [rsp+298h+var_278], rax
jmp short $+2
loc_2F67B3:
mov rsi, [rsp+298h+var_278]
lea rdi, [rsp+298h+var_191]
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
jmp short $+2
loc_2F67C7:
lea rdi, [rsp+298h+var_190]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
mov [rsp+298h+var_1], 0
jmp loc_2F68AF
mov rcx, rax
mov eax, edx
mov [rsp+arg_220], rcx
mov [rsp+arg_21C], eax
lea rdi, [rsp+arg_100]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
jmp loc_2F68C0
loc_2F6807:
mov rax, [rsp+298h+var_1D8]
add rax, 30h ; '0'
mov [rsp+298h+var_290], rax
mov rax, [rsp+298h+var_80]
mov [rsp+298h+var_1A0], rax
mov rsi, [rsp+298h+var_18]
lea rdi, [rsp+298h+var_1C8]
mov [rsp+298h+var_288], rdi
lea rdx, [rsp+298h+var_20]
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6google8protobuf19FileDescriptorProtoEEC2IRSB_TnNSt9enable_ifIXclsr5_PCCPE13_CopyMovePairILb1ES6_T_EEEbE4typeELb1EEERS6_OSG_
mov rdi, [rsp+298h+var_290]
mov rdx, [rsp+298h+var_288]
mov rsi, [rsp+298h+var_1A0]
call _ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6google8protobuf19FileDescriptorProtoESt4lessIS5_ESaISt4pairIKS5_SA_EEE6insertESt23_Rb_tree_const_iteratorISF_EOSF_; std::map<std::string,google::protobuf::FileDescriptorProto const*>::insert(std::_Rb_tree_const_iterator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>,std::pair<std::string const,google::protobuf::FileDescriptorProto const*>&&)
mov [rsp+298h+var_280], rax
jmp short $+2
loc_2F6868:
mov rax, [rsp+298h+var_280]
mov [rsp+298h+var_1D0], rax
lea rdi, [rsp+298h+var_1C8]
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6google8protobuf19FileDescriptorProtoEED2Ev; std::pair<std::string const,google::protobuf::FileDescriptorProto const*>::~pair()
mov [rsp+298h+var_1], 1
jmp short loc_2F68AF
mov rcx, rax
mov eax, edx
mov [rsp+arg_220], rcx
mov [rsp+arg_21C], eax
lea rdi, [rsp+arg_C8]
call _ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6google8protobuf19FileDescriptorProtoEED2Ev; std::pair<std::string const,google::protobuf::FileDescriptorProto const*>::~pair()
jmp short loc_2F68C0
loc_2F68AF:
mov al, [rsp+298h+var_1]
and al, 1
add rsp, 298h
retn
loc_2F68C0:
mov rdi, [rsp+arg_220]
call __Unwind_Resume
| char google::protobuf::SimpleDescriptorDatabase::DescriptorIndex<google::protobuf::FileDescriptorProto const*>::AddSymbol(
long long a1,
long long a2,
long long a3)
{
char v3; // dl
long long v4; // rax
long long v5; // rax
long long v6; // rax
long long v7; // rax
google::protobuf::internal::LogMessage *v9; // [rsp+20h] [rbp-278h]
long long v10; // [rsp+28h] [rbp-270h]
long long v11; // [rsp+30h] [rbp-268h]
long long v12; // [rsp+38h] [rbp-260h]
long long v13; // [rsp+48h] [rbp-250h]
char IsSubSymbol; // [rsp+57h] [rbp-241h]
google::protobuf::internal::LogMessage *v15; // [rsp+58h] [rbp-240h]
long long v16; // [rsp+60h] [rbp-238h]
long long v17; // [rsp+68h] [rbp-230h]
long long v18; // [rsp+70h] [rbp-228h]
long long v19; // [rsp+80h] [rbp-218h]
google::protobuf::internal::LogMessage *v20; // [rsp+A8h] [rbp-1F0h]
long long v21; // [rsp+B8h] [rbp-1E0h]
_BYTE v22[40]; // [rsp+D0h] [rbp-1C8h] BYREF
long long v23; // [rsp+F8h] [rbp-1A0h]
char v24; // [rsp+107h] [rbp-191h] BYREF
_BYTE v25[56]; // [rsp+108h] [rbp-190h] BYREF
long long v26[2]; // [rsp+140h] [rbp-158h] BYREF
long long v27[2]; // [rsp+150h] [rbp-148h] BYREF
long long v28; // [rsp+160h] [rbp-138h] BYREF
_BYTE v29[15]; // [rsp+168h] [rbp-130h] BYREF
char v30; // [rsp+177h] [rbp-121h] BYREF
_BYTE v31[56]; // [rsp+178h] [rbp-120h] BYREF
long long v32[2]; // [rsp+1B0h] [rbp-E8h] BYREF
long long v33[3]; // [rsp+1C0h] [rbp-D8h] BYREF
char v34; // [rsp+1D8h] [rbp-C0h]
_BYTE v35[40]; // [rsp+1E0h] [rbp-B8h] BYREF
long long v36; // [rsp+208h] [rbp-90h] BYREF
_BYTE v37[8]; // [rsp+210h] [rbp-88h] BYREF
long long v38; // [rsp+218h] [rbp-80h] BYREF
_BYTE v39[13]; // [rsp+223h] [rbp-75h] BYREF
_BYTE v40[56]; // [rsp+230h] [rbp-68h] BYREF
long long v41[2]; // [rsp+268h] [rbp-30h] BYREF
long long v42; // [rsp+278h] [rbp-20h] BYREF
long long v43; // [rsp+280h] [rbp-18h]
long long v44; // [rsp+288h] [rbp-10h]
v44 = a1;
v43 = a2;
v42 = a3;
google::protobuf::stringpiece_internal::StringPiece::StringPiece<std::allocator<char>>(v41, a2);
if ( (google::protobuf::`anonymous namespace'::ValidateSymbolName(v41[0], v41[1]) & 1) != 0 )
{
v38 = google::protobuf::`anonymous namespace'::FindLastLessOrEqual<std::map<std::string,google::protobuf::FileDescriptorProto const*>,std::string>(
a1 + 48,
v43);
v36 = std::map<std::string,google::protobuf::FileDescriptorProto const*>::end(a1 + 48);
std::_Rb_tree_const_iterator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>::_Rb_tree_const_iterator(
v37,
&v36);
if ( (std::operator==(&v38, v37) & 1) != 0 )
{
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6google8protobuf19FileDescriptorProtoEEC2IRSB_TnNSt9enable_ifIXclsr5_PCCPE13_CopyMovePairILb1ES6_T_EEEbE4typeELb1EEERS6_OSG_(
v35,
v43,
&v42);
v33[2] = std::map<std::string,google::protobuf::FileDescriptorProto const*>::insert(a1 + 48, v35);
v34 = v3;
std::pair<std::string const,google::protobuf::FileDescriptorProto const*>::~pair((long long)v35);
return 1;
}
else
{
v4 = std::_Rb_tree_const_iterator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>::operator->(&v38);
google::protobuf::stringpiece_internal::StringPiece::StringPiece<std::allocator<char>>(v33, v4);
google::protobuf::stringpiece_internal::StringPiece::StringPiece<std::allocator<char>>(v32, v43);
if ( (google::protobuf::`anonymous namespace'::IsSubSymbol(v33[0], v33[1], v32[0], v32[1]) & 1) != 0 )
{
google::protobuf::internal::LogMessage::LogMessage(
(long long)v31,
2,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor_database.cc",
221);
v19 = google::protobuf::internal::LogMessage::operator<<((long long)v31, (long long)"Symbol name \"");
v18 = google::protobuf::internal::LogMessage::operator<<(v19, v43);
v17 = google::protobuf::internal::LogMessage::operator<<(
v18,
(long long)"\" conflicts with the existing symbol \"");
v5 = std::_Rb_tree_const_iterator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>::operator->(&v38);
v16 = google::protobuf::internal::LogMessage::operator<<(v17, v5);
v15 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(
v16,
(long long)"\".");
google::protobuf::internal::LogFinisher::operator=((long long)&v30, v15);
google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v31);
return 0;
}
else
{
std::_Rb_tree_const_iterator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>::operator++(&v38);
v28 = std::map<std::string,google::protobuf::FileDescriptorProto const*>::end(a1 + 48);
std::_Rb_tree_const_iterator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>::_Rb_tree_const_iterator(
v29,
&v28);
IsSubSymbol = 0;
if ( (std::operator!=(&v38, v29) & 1) != 0 )
{
google::protobuf::stringpiece_internal::StringPiece::StringPiece<std::allocator<char>>(v27, v43);
v6 = std::_Rb_tree_const_iterator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>::operator->(&v38);
google::protobuf::stringpiece_internal::StringPiece::StringPiece<std::allocator<char>>(v26, v6);
IsSubSymbol = google::protobuf::`anonymous namespace'::IsSubSymbol(v27[0], v27[1], v26[0], v26[1]);
}
if ( (IsSubSymbol & 1) != 0 )
{
google::protobuf::internal::LogMessage::LogMessage(
(long long)v25,
2,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor_database.cc",
236);
v13 = google::protobuf::internal::LogMessage::operator<<((long long)v25, (long long)"Symbol name \"");
v12 = google::protobuf::internal::LogMessage::operator<<(v13, v43);
v11 = google::protobuf::internal::LogMessage::operator<<(
v12,
(long long)"\" conflicts with the existing symbol \"");
v7 = std::_Rb_tree_const_iterator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>::operator->(&v38);
v10 = google::protobuf::internal::LogMessage::operator<<(v11, v7);
v9 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(
v10,
(long long)"\".");
google::protobuf::internal::LogFinisher::operator=((long long)&v24, v9);
google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v25);
return 0;
}
else
{
v23 = v38;
ZNSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKN6google8protobuf19FileDescriptorProtoEEC2IRSB_TnNSt9enable_ifIXclsr5_PCCPE13_CopyMovePairILb1ES6_T_EEEbE4typeELb1EEERS6_OSG_(
v22,
v43,
&v42);
std::map<std::string,google::protobuf::FileDescriptorProto const*>::insert(a1 + 48, v23, v22);
std::pair<std::string const,google::protobuf::FileDescriptorProto const*>::~pair((long long)v22);
return 1;
}
}
}
}
else
{
google::protobuf::internal::LogMessage::LogMessage(
(long long)v40,
2,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor_database.cc",
205);
v21 = google::protobuf::internal::LogMessage::operator<<((long long)v40, (long long)"Invalid symbol name: ");
v20 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(v21, v43);
google::protobuf::internal::LogFinisher::operator=((long long)v39, v20);
google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v40);
return 0;
}
}
| |||
28,284 | google::protobuf::SimpleDescriptorDatabase::DescriptorIndex<google::protobuf::FileDescriptorProto const*>::AddSymbol(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::FileDescriptorProto const*) | aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor_database.cc | bool SimpleDescriptorDatabase::DescriptorIndex<Value>::AddSymbol(
const std::string& name, Value value) {
// We need to make sure not to violate our map invariant.
// If the symbol name is invalid it could break our lookup algorithm (which
// relies on the fact that '.' sorts before all other characters that are
// valid in symbol names).
if (!ValidateSymbolName(name)) {
GOOGLE_LOG(ERROR) << "Invalid symbol name: " << name;
return false;
}
// Try to look up the symbol to make sure a super-symbol doesn't already
// exist.
auto iter = FindLastLessOrEqual(&by_symbol_, name);
if (iter == by_symbol_.end()) {
// Apparently the map is currently empty. Just insert and be done with it.
by_symbol_.insert(
typename std::map<std::string, Value>::value_type(name, value));
return true;
}
if (IsSubSymbol(iter->first, name)) {
GOOGLE_LOG(ERROR) << "Symbol name \"" << name
<< "\" conflicts with the existing "
"symbol \""
<< iter->first << "\".";
return false;
}
// OK, that worked. Now we have to make sure that no symbol in the map is
// a sub-symbol of the one we are inserting. The only symbol which could
// be so is the first symbol that is greater than the new symbol. Since
// |iter| points at the last symbol that is less than or equal, we just have
// to increment it.
++iter;
if (iter != by_symbol_.end() && IsSubSymbol(name, iter->first)) {
GOOGLE_LOG(ERROR) << "Symbol name \"" << name
<< "\" conflicts with the existing "
"symbol \""
<< iter->first << "\".";
return false;
}
// OK, no conflicts.
// Insert the new symbol using the iterator as a hint, the new entry will
// appear immediately before the one the iterator is pointing at.
by_symbol_.insert(
iter, typename std::map<std::string, Value>::value_type(name, value));
return true;
} | O3 | cpp | google::protobuf::SimpleDescriptorDatabase::DescriptorIndex<google::protobuf::FileDescriptorProto const*>::AddSymbol(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, google::protobuf::FileDescriptorProto const*):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %rbp
movq %rsi, %rbx
movq %rdi, %r13
movq 0x8(%rsi), %rax
testq %rax, %rax
je 0xff10c
movq (%rbx), %rcx
xorl %edx, %edx
movzbl (%rcx,%rdx), %esi
cmpl $0x2e, %esi
je 0xff104
cmpl $0x5f, %esi
je 0xff104
leal -0x3a(%rsi), %edi
cmpb $-0xb, %dil
ja 0xff104
andb $-0x21, %sil
addb $-0x5b, %sil
cmpb $-0x1a, %sil
jb 0xff2fd
incq %rdx
cmpq %rdx, %rax
jne 0xff0db
leaq 0x30(%r13), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0xfdadf
addq $0x38, %r13
cmpq %r13, %rax
je 0xff1c7
movq %rax, %r12
movq %rbp, 0x40(%rsp)
movq 0x20(%rax), %rdi
movq 0x28(%rax), %rsi
movq (%rbx), %rbp
movq 0x8(%rbx), %r14
movq %rbp, %rdx
movq %r14, %rcx
callq 0xfd028
testb %al, %al
je 0xff20c
leaq 0x6fdd8(%rip), %rdx # 0x16ef31
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl $0x2, %esi
movl $0xdd, %ecx
callq 0x857c2
leaq 0x6fefb(%rip), %rsi # 0x16f072
movq %r14, %rdi
callq 0x852c0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x852d2
leaq 0x6feef(%rip), %rsi # 0x16f080
movq %rax, %rdi
callq 0x852c0
addq $0x20, %r12
movq %rax, %rdi
movq %r12, %rsi
callq 0x852d2
leaq 0x6d274(%rip), %rsi # 0x16c423
movq %rax, %rdi
callq 0x852c0
movq %rsp, %rdi
movq %rax, %rsi
callq 0x8539a
jmp 0xff340
leaq 0x18(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x2c640
movq %rbp, 0x20(%rbx)
movq %r15, %rdi
movq %rbx, %rsi
callq 0xff80e
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0xff205
callq 0x2d160
movb $0x1, %al
jmp 0xff34c
movq %r12, %rdi
callq 0x2d550
movq %rax, %r12
cmpq %r13, %rax
je 0xff2ae
movq 0x20(%r12), %rdx
movq 0x28(%r12), %rcx
movq %rbp, %rdi
movq %r14, %rsi
callq 0xfd028
testb %al, %al
je 0xff2ae
leaq 0x6fcf1(%rip), %rdx # 0x16ef31
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl $0x2, %esi
movl $0xec, %ecx
callq 0x857c2
leaq 0x6fe14(%rip), %rsi # 0x16f072
movq %r14, %rdi
callq 0x852c0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x852d2
leaq 0x6fe08(%rip), %rsi # 0x16f080
movq %rax, %rdi
callq 0x852c0
addq $0x20, %r12
movq %rax, %rdi
movq %r12, %rsi
callq 0x852d2
leaq 0x6d18d(%rip), %rsi # 0x16c423
movq %rax, %rdi
callq 0x852c0
movq %rsp, %rdi
movq %rax, %rsi
callq 0x8539a
jmp 0xff340
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
addq %rbp, %r14
leaq 0x8(%rsp), %rbx
movq %rbx, %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x2c640
movq 0x40(%rsp), %rax
movq %rax, 0x20(%rbx)
movq %rsp, %rcx
movq %r15, (%rcx)
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0xff934
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
jne 0xff200
jmp 0xff205
leaq 0x6fc2d(%rip), %rdx # 0x16ef31
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl $0x2, %esi
movl $0xcd, %ecx
callq 0x857c2
leaq 0x6fcc8(%rip), %rsi # 0x16efea
movq %r14, %rdi
callq 0x852c0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x852d2
movq %rsp, %rdi
movq %rax, %rsi
callq 0x8539a
leaq 0x8(%rsp), %rdi
callq 0x857e0
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xff388
jmp 0xff388
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
jne 0xff37f
jmp 0xff395
jmp 0xff388
jmp 0xff388
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0xff395
callq 0x2d160
jmp 0xff395
jmp 0xff388
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x857e0
movq %rbx, %rdi
callq 0x2e220
nop
| _ZN6google8protobuf24SimpleDescriptorDatabase15DescriptorIndexIPKNS0_19FileDescriptorProtoEE9AddSymbolERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 48h
mov rbp, rdx
mov rbx, rsi
mov r13, rdi
mov rax, [rsi+8]
test rax, rax
jz short loc_FF10C
mov rcx, [rbx]
xor edx, edx
loc_FF0DB:
movzx esi, byte ptr [rcx+rdx]
cmp esi, 2Eh ; '.'
jz short loc_FF104
cmp esi, 5Fh ; '_'
jz short loc_FF104
lea edi, [rsi-3Ah]
cmp dil, 0F5h
ja short loc_FF104
and sil, 0DFh
add sil, 0A5h
cmp sil, 0E6h
jb loc_FF2FD
loc_FF104:
inc rdx
cmp rax, rdx
jnz short loc_FF0DB
loc_FF10C:
lea r15, [r13+30h]
mov rdi, r15
mov rsi, rbx
call _ZN6google8protobuf12_GLOBAL__N_119FindLastLessOrEqualISt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPKNS0_19FileDescriptorProtoESt4lessIS9_ESaISt4pairIKS9_SC_EEES9_EENT_14const_iteratorEPKSK_RKT0_; google::protobuf::`anonymous namespace'::FindLastLessOrEqual<std::map<std::string,google::protobuf::FileDescriptorProto const*>,std::string>(std::map<std::string,google::protobuf::FileDescriptorProto const*>::const_iterator const*,std::string const&)
add r13, 38h ; '8'
cmp rax, r13
jz loc_FF1C7
mov r12, rax
mov [rsp+78h+var_38], rbp
mov rdi, [rax+20h]
mov rsi, [rax+28h]
mov rbp, [rbx]
mov r14, [rbx+8]
mov rdx, rbp
mov rcx, r14
call _ZN6google8protobuf12_GLOBAL__N_111IsSubSymbolENS0_20stringpiece_internal11StringPieceES3_; google::protobuf::`anonymous namespace'::IsSubSymbol(google::protobuf::stringpiece_internal::StringPiece,google::protobuf::stringpiece_internal::StringPiece)
test al, al
jz loc_FF20C
lea rdx, aWorkspaceLlm4b_36; "/workspace/llm4binary/github2025/aimrt_"...
lea r14, [rsp+78h+var_70]
mov rdi, r14
mov esi, 2
mov ecx, 0DDh
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
lea rsi, aSymbolName; "Symbol name \""
mov rdi, r14
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov rdi, rax
mov rsi, rbx
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
lea rsi, aConflictsWithT; "\" conflicts with the existing symbol "...
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
add r12, 20h ; ' '
mov rdi, rax
mov rsi, r12
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
lea rsi, aWhichIsNotDefi+76h; "\"."
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov rdi, rsp
mov rsi, rax
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
jmp loc_FF340
loc_FF1C7:
lea r14, [rsp+78h+var_60]
mov [r14-10h], r14
mov rsi, [rbx]
mov rdx, [rbx+8]
add rdx, rsi
lea rbx, [rsp+78h+var_70]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
mov [rbx+20h], rbp
mov rdi, r15
mov rsi, rbx
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_PKN6google8protobuf19FileDescriptorProtoEESt10_Select1stISD_ESt4lessIS5_ESaISD_EE16_M_insert_uniqueISD_EES6_ISt17_Rb_tree_iteratorISD_EbEOT_; std::_Rb_tree<std::string,std::pair<std::string const,google::protobuf::FileDescriptorProto const*>,std::_Select1st<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>,std::less<std::string>,std::allocator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>>::_M_insert_unique<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>(std::pair<std::string const,google::protobuf::FileDescriptorProto const*> &&)
mov rdi, [rsp+78h+var_70]; void *
cmp rdi, r14
jz short loc_FF205
loc_FF200:
call __ZdlPv; operator delete(void *)
loc_FF205:
mov al, 1
jmp loc_FF34C
loc_FF20C:
mov rdi, r12
call __ZSt18_Rb_tree_incrementPKSt18_Rb_tree_node_base; std::_Rb_tree_increment(std::_Rb_tree_node_base const*)
mov r12, rax
cmp rax, r13
jz loc_FF2AE
mov rdx, [r12+20h]
mov rcx, [r12+28h]
mov rdi, rbp
mov rsi, r14
call _ZN6google8protobuf12_GLOBAL__N_111IsSubSymbolENS0_20stringpiece_internal11StringPieceES3_; google::protobuf::`anonymous namespace'::IsSubSymbol(google::protobuf::stringpiece_internal::StringPiece,google::protobuf::stringpiece_internal::StringPiece)
test al, al
jz short loc_FF2AE
lea rdx, aWorkspaceLlm4b_36; "/workspace/llm4binary/github2025/aimrt_"...
lea r14, [rsp+78h+var_70]
mov rdi, r14
mov esi, 2
mov ecx, 0ECh
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
lea rsi, aSymbolName; "Symbol name \""
mov rdi, r14
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov rdi, rax
mov rsi, rbx
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
lea rsi, aConflictsWithT; "\" conflicts with the existing symbol "...
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
add r12, 20h ; ' '
mov rdi, rax
mov rsi, r12
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
lea rsi, aWhichIsNotDefi+76h; "\"."
mov rdi, rax
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov rdi, rsp
mov rsi, rax
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
jmp loc_FF340
loc_FF2AE:
lea r13, [rsp+78h+var_60]
mov [r13-10h], r13
add r14, rbp
lea rbx, [rsp+78h+var_70]
mov rdi, rbx
mov rsi, rbp
mov rdx, r14
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag)
mov rax, [rsp+78h+var_38]
mov [rbx+20h], rax
mov rcx, rsp
mov [rcx], r15
mov rdi, r15
mov rsi, r12
mov rdx, rbx
call _ZNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_PKN6google8protobuf19FileDescriptorProtoEESt10_Select1stISD_ESt4lessIS5_ESaISD_EE17_M_insert_unique_ISD_NSJ_11_Alloc_nodeEEESt17_Rb_tree_iteratorISD_ESt23_Rb_tree_const_iteratorISD_EOT_RT0_; std::_Rb_tree<std::string,std::pair<std::string const,google::protobuf::FileDescriptorProto const*>,std::_Select1st<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>,std::less<std::string>,std::allocator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>>::_M_insert_unique_<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>,std::_Rb_tree<std::string,std::pair<std::string const,google::protobuf::FileDescriptorProto const*>,std::_Select1st<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>,std::less<std::string>,std::allocator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>>::_Alloc_node>(std::_Rb_tree_const_iterator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>,std::pair<std::string const,google::protobuf::FileDescriptorProto const*> &&,std::_Rb_tree<std::string,std::pair<std::string const,google::protobuf::FileDescriptorProto const*>,std::_Select1st<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>,std::less<std::string>,std::allocator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>>::_Alloc_node &)
mov rdi, [rsp+78h+var_70]
cmp rdi, r13
jnz loc_FF200
jmp loc_FF205
loc_FF2FD:
lea rdx, aWorkspaceLlm4b_36; "/workspace/llm4binary/github2025/aimrt_"...
lea r14, [rsp+78h+var_70]
mov rdi, r14
mov esi, 2
mov ecx, 0CDh
call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int)
lea rsi, aInvalidSymbolN; "Invalid symbol name: "
mov rdi, r14
call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*)
mov rdi, rax
mov rsi, rbx
call _ZN6google8protobuf8internal10LogMessagelsERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; google::protobuf::internal::LogMessage::operator<<(std::string const&)
mov rdi, rsp
mov rsi, rax
call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &)
loc_FF340:
lea rdi, [rsp+78h+var_70]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
xor eax, eax
loc_FF34C:
add rsp, 48h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
jmp short loc_FF388
jmp short loc_FF388
mov rbx, rax
mov rdi, [rsp+arg_0]
cmp rdi, r13
jnz short loc_FF37F
jmp short loc_FF395
jmp short loc_FF388
jmp short loc_FF388
mov rbx, rax
mov rdi, [rsp+arg_0]; void *
cmp rdi, r14
jz short loc_FF395
loc_FF37F:
call __ZdlPv; operator delete(void *)
jmp short loc_FF395
jmp short $+2
loc_FF388:
mov rbx, rax
lea rdi, [rsp+arg_0]; this
call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage()
loc_FF395:
mov rdi, rbx
call __Unwind_Resume
| char google::protobuf::SimpleDescriptorDatabase::DescriptorIndex<google::protobuf::FileDescriptorProto const*>::AddSymbol(
long long a1,
long long *a2,
long long a3)
{
long long v5; // rax
long long v6; // rcx
long long v7; // rdx
int v8; // esi
long long v9; // r15
long long v10; // rax
long long v11; // r12
long long v12; // rbp
unsigned long long v13; // r14
long long v14; // rax
long long v15; // rax
long long v16; // rax
long long v17; // rax
google::protobuf::internal::LogMessage *v18; // rax
void *v19; // rdi
long long v21; // rax
long long v22; // r12
long long v23; // rax
long long v24; // rax
long long v25; // rax
long long v26; // rax
google::protobuf::internal::LogMessage *v27; // rax
long long v28; // rax
google::protobuf::internal::LogMessage *v29; // rax
long long v30; // [rsp+0h] [rbp-78h] BYREF
void *v31[2]; // [rsp+8h] [rbp-70h] BYREF
_BYTE v32[16]; // [rsp+18h] [rbp-60h] BYREF
long long v33; // [rsp+28h] [rbp-50h]
long long v34; // [rsp+40h] [rbp-38h]
v5 = a2[1];
if ( v5 )
{
v6 = *a2;
v7 = 0LL;
while ( 1 )
{
v8 = *(unsigned __int8 *)(v6 + v7);
if ( v8 != 46 && v8 != 95 && (unsigned __int8)(v8 - 58) <= 0xF5u && (unsigned __int8)((v8 & 0xDF) - 91) < 0xE6u )
break;
if ( v5 == ++v7 )
goto LABEL_8;
}
google::protobuf::internal::LogMessage::LogMessage(
(long long)v31,
2,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor_database.cc",
205);
v28 = google::protobuf::internal::LogMessage::operator<<((long long)v31, (long long)"Invalid symbol name: ");
v29 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(v28, a2);
google::protobuf::internal::LogFinisher::operator=((long long)&v30, v29);
goto LABEL_20;
}
LABEL_8:
v9 = a1 + 48;
v10 = google::protobuf::`anonymous namespace'::FindLastLessOrEqual<std::map<std::string,google::protobuf::FileDescriptorProto const*>,std::string>(
a1 + 48,
(long long)a2);
if ( v10 == a1 + 56 )
{
v31[0] = v32;
std::string::_M_construct<char *>(v31, *a2, *a2 + a2[1]);
v33 = a3;
std::_Rb_tree<std::string,std::pair<std::string const,google::protobuf::FileDescriptorProto const*>,std::_Select1st<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>,std::less<std::string>,std::allocator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>>::_M_insert_unique<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>(
v9,
v31);
v19 = v31[0];
if ( v31[0] == v32 )
return 1;
goto LABEL_12;
}
v11 = v10;
v34 = a3;
v12 = *a2;
v13 = a2[1];
if ( !(unsigned __int8)google::protobuf::`anonymous namespace'::IsSubSymbol(
*(_QWORD *)(v10 + 32),
*(_QWORD *)(v10 + 40),
*a2,
v13) )
{
v21 = std::_Rb_tree_increment(v11);
v22 = v21;
if ( v21 != a1 + 56
&& (unsigned __int8)google::protobuf::`anonymous namespace'::IsSubSymbol(
v12,
v13,
*(_QWORD *)(v21 + 32),
*(_QWORD *)(v21 + 40)) )
{
google::protobuf::internal::LogMessage::LogMessage(
(long long)v31,
2,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor_database.cc",
236);
v23 = google::protobuf::internal::LogMessage::operator<<((long long)v31, (long long)"Symbol name \"");
v24 = google::protobuf::internal::LogMessage::operator<<(v23, a2);
v25 = google::protobuf::internal::LogMessage::operator<<(v24, (long long)"\" conflicts with the existing symbol \"");
v26 = google::protobuf::internal::LogMessage::operator<<(v25, (_QWORD *)(v22 + 32));
v27 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(
v26,
(long long)"\".");
google::protobuf::internal::LogFinisher::operator=((long long)&v30, v27);
goto LABEL_20;
}
v31[0] = v32;
std::string::_M_construct<char *>(v31, v12, v12 + v13);
v33 = v34;
v30 = a1 + 48;
std::_Rb_tree<std::string,std::pair<std::string const,google::protobuf::FileDescriptorProto const*>,std::_Select1st<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>,std::less<std::string>,std::allocator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>>::_M_insert_unique_<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>,std::_Rb_tree<std::string,std::pair<std::string const,google::protobuf::FileDescriptorProto const*>,std::_Select1st<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>,std::less<std::string>,std::allocator<std::pair<std::string const,google::protobuf::FileDescriptorProto const*>>>::_Alloc_node>(
v9,
v22,
v31);
v19 = v31[0];
if ( v31[0] == v32 )
return 1;
LABEL_12:
operator delete(v19);
return 1;
}
google::protobuf::internal::LogMessage::LogMessage(
(long long)v31,
2,
(long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor_database.cc",
221);
v14 = google::protobuf::internal::LogMessage::operator<<((long long)v31, (long long)"Symbol name \"");
v15 = google::protobuf::internal::LogMessage::operator<<(v14, a2);
v16 = google::protobuf::internal::LogMessage::operator<<(v15, (long long)"\" conflicts with the existing symbol \"");
v17 = google::protobuf::internal::LogMessage::operator<<(v16, (_QWORD *)(v11 + 32));
v18 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<(
v17,
(long long)"\".");
google::protobuf::internal::LogFinisher::operator=((long long)&v30, v18);
LABEL_20:
google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v31);
return 0;
}
| AddSymbol:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x48
MOV RBP,RDX
MOV RBX,RSI
MOV R13,RDI
MOV RAX,qword ptr [RSI + 0x8]
TEST RAX,RAX
JZ 0x001ff10c
MOV RCX,qword ptr [RBX]
XOR EDX,EDX
LAB_001ff0db:
MOVZX ESI,byte ptr [RCX + RDX*0x1]
CMP ESI,0x2e
JZ 0x001ff104
CMP ESI,0x5f
JZ 0x001ff104
LEA EDI,[RSI + -0x3a]
CMP DIL,0xf5
JA 0x001ff104
AND SIL,0xdf
ADD SIL,0xa5
CMP SIL,0xe6
JC 0x001ff2fd
LAB_001ff104:
INC RDX
CMP RAX,RDX
JNZ 0x001ff0db
LAB_001ff10c:
LEA R15,[R13 + 0x30]
MOV RDI,R15
MOV RSI,RBX
CALL 0x001fdadf
ADD R13,0x38
CMP RAX,R13
JZ 0x001ff1c7
MOV R12,RAX
MOV qword ptr [RSP + 0x40],RBP
MOV RDI,qword ptr [RAX + 0x20]
MOV RSI,qword ptr [RAX + 0x28]
MOV RBP,qword ptr [RBX]
MOV R14,qword ptr [RBX + 0x8]
MOV RDX,RBP
MOV RCX,R14
CALL 0x001fd028
TEST AL,AL
JZ 0x001ff20c
LEA RDX,[0x26ef31]
LEA R14,[RSP + 0x8]
MOV RDI,R14
MOV ESI,0x2
MOV ECX,0xdd
CALL 0x001857c2
LAB_001ff170:
LEA RSI,[0x26f072]
MOV RDI,R14
CALL 0x001852c0
MOV RDI,RAX
MOV RSI,RBX
CALL 0x001852d2
LEA RSI,[0x26f080]
MOV RDI,RAX
CALL 0x001852c0
ADD R12,0x20
MOV RDI,RAX
MOV RSI,R12
CALL 0x001852d2
LEA RSI,[0x26c423]
MOV RDI,RAX
CALL 0x001852c0
LAB_001ff1b7:
MOV RDI,RSP
MOV RSI,RAX
CALL 0x0018539a
LAB_001ff1c2:
JMP 0x001ff340
LAB_001ff1c7:
LEA R14,[RSP + 0x18]
MOV qword ptr [R14 + -0x10],R14
MOV RSI,qword ptr [RBX]
MOV RDX,qword ptr [RBX + 0x8]
ADD RDX,RSI
LEA RBX,[RSP + 0x8]
MOV RDI,RBX
CALL 0x0012c640
MOV qword ptr [RBX + 0x20],RBP
LAB_001ff1eb:
MOV RDI,R15
MOV RSI,RBX
CALL 0x001ff80e
LAB_001ff1f6:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R14
JZ 0x001ff205
LAB_001ff200:
CALL 0x0012d160
LAB_001ff205:
MOV AL,0x1
JMP 0x001ff34c
LAB_001ff20c:
MOV RDI,R12
CALL 0x0012d550
MOV R12,RAX
CMP RAX,R13
JZ 0x001ff2ae
MOV RDX,qword ptr [R12 + 0x20]
MOV RCX,qword ptr [R12 + 0x28]
MOV RDI,RBP
MOV RSI,R14
CALL 0x001fd028
TEST AL,AL
JZ 0x001ff2ae
LEA RDX,[0x26ef31]
LEA R14,[RSP + 0x8]
MOV RDI,R14
MOV ESI,0x2
MOV ECX,0xec
CALL 0x001857c2
LAB_001ff257:
LEA RSI,[0x26f072]
MOV RDI,R14
CALL 0x001852c0
MOV RDI,RAX
MOV RSI,RBX
CALL 0x001852d2
LEA RSI,[0x26f080]
MOV RDI,RAX
CALL 0x001852c0
ADD R12,0x20
MOV RDI,RAX
MOV RSI,R12
CALL 0x001852d2
LEA RSI,[0x26c423]
MOV RDI,RAX
CALL 0x001852c0
LAB_001ff29e:
MOV RDI,RSP
MOV RSI,RAX
CALL 0x0018539a
LAB_001ff2a9:
JMP 0x001ff340
LAB_001ff2ae:
LEA R13,[RSP + 0x18]
MOV qword ptr [R13 + -0x10],R13
ADD R14,RBP
LEA RBX,[RSP + 0x8]
MOV RDI,RBX
MOV RSI,RBP
MOV RDX,R14
CALL 0x0012c640
MOV RAX,qword ptr [RSP + 0x40]
MOV qword ptr [RBX + 0x20],RAX
MOV RCX,RSP
MOV qword ptr [RCX],R15
LAB_001ff2dc:
MOV RDI,R15
MOV RSI,R12
MOV RDX,RBX
CALL 0x001ff934
LAB_001ff2ea:
MOV RDI,qword ptr [RSP + 0x8]
CMP RDI,R13
JNZ 0x001ff200
JMP 0x001ff205
LAB_001ff2fd:
LEA RDX,[0x26ef31]
LEA R14,[RSP + 0x8]
MOV RDI,R14
MOV ESI,0x2
MOV ECX,0xcd
CALL 0x001857c2
LAB_001ff31b:
LEA RSI,[0x26efea]
MOV RDI,R14
CALL 0x001852c0
MOV RDI,RAX
MOV RSI,RBX
CALL 0x001852d2
LAB_001ff335:
MOV RDI,RSP
MOV RSI,RAX
CALL 0x0018539a
LAB_001ff340:
LEA RDI,[RSP + 0x8]
CALL 0x001857e0
XOR EAX,EAX
LAB_001ff34c:
ADD RSP,0x48
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* google::protobuf::SimpleDescriptorDatabase::DescriptorIndex<google::protobuf::FileDescriptorProto
const*>::AddSymbol(std::__cxx11::string const&, google::protobuf::FileDescriptorProto const*) */
int8 __thiscall
google::protobuf::SimpleDescriptorDatabase::
DescriptorIndex<google::protobuf::FileDescriptorProto_const*>::AddSymbol
(DescriptorIndex<google::protobuf::FileDescriptorProto_const*> *this,string *param_1,
FileDescriptorProto *param_2)
{
map *this_00;
byte bVar1;
long lVar2;
char cVar3;
_Rb_tree_node_base *p_Var4;
LogMessage *pLVar5;
int8 uVar6;
long lVar7;
map *local_78;
int1 *local_70 [2];
int1 local_60 [16];
FileDescriptorProto *local_50;
FileDescriptorProto *local_38;
if (*(long *)(param_1 + 8) != 0) {
lVar7 = 0;
do {
bVar1 = *(byte *)(*(long *)param_1 + lVar7);
if ((((bVar1 != 0x2e) && (bVar1 != 0x5f)) && ((byte)(bVar1 - 0x3a) < 0xf6)) &&
((byte)((bVar1 & 0xdf) + 0xa5) < 0xe6)) {
internal::LogMessage::LogMessage
((LogMessage *)local_70,2,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor_database.cc"
,0xcd);
/* try { // try from 001ff31b to 001ff334 has its CatchHandler @ 001ff370 */
pLVar5 = (LogMessage *)
internal::LogMessage::operator<<((LogMessage *)local_70,"Invalid symbol name: ");
pLVar5 = (LogMessage *)internal::LogMessage::operator<<(pLVar5,param_1);
/* try { // try from 001ff335 to 001ff33f has its CatchHandler @ 001ff35d */
internal::LogFinisher::operator=((LogFinisher *)&local_78,pLVar5);
goto LAB_001ff340;
}
lVar7 = lVar7 + 1;
} while (*(long *)(param_1 + 8) != lVar7);
}
this_00 = (map *)(this + 0x30);
p_Var4 = (_Rb_tree_node_base *)
(anonymous_namespace)::
FindLastLessOrEqual<std::map<std::__cxx11::string,google::protobuf::FileDescriptorProto_const*,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,google::protobuf::FileDescriptorProto_const*>>>,std::__cxx11::string>
(this_00,param_1);
if (p_Var4 == (_Rb_tree_node_base *)(this + 0x38)) {
local_70[0] = local_60;
std::__cxx11::string::_M_construct<char*>
((pair *)local_70,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1);
local_50 = param_2;
/* try { // try from 001ff1eb to 001ff1f5 has its CatchHandler @ 001ff372 */
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,google::protobuf::FileDescriptorProto_const*>,std::_Select1st<std::pair<std::__cxx11::string_const,google::protobuf::FileDescriptorProto_const*>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,google::protobuf::FileDescriptorProto_const*>>>
::
_M_insert_unique<std::pair<std::__cxx11::string_const,google::protobuf::FileDescriptorProto_const*>>
((_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,google::protobuf::FileDescriptorProto_const*>,std::_Select1st<std::pair<std::__cxx11::string_const,google::protobuf::FileDescriptorProto_const*>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,google::protobuf::FileDescriptorProto_const*>>>
*)this_00,(pair *)local_70);
if (local_70[0] != local_60) {
LAB_001ff200:
operator_delete(local_70[0]);
}
LAB_001ff205:
uVar6 = 1;
}
else {
lVar7 = *(long *)param_1;
lVar2 = *(long *)(param_1 + 8);
local_38 = param_2;
cVar3 = (anonymous_namespace)::IsSubSymbol
(*(int8 *)(p_Var4 + 0x20),*(int8 *)(p_Var4 + 0x28),lVar7,lVar2);
if (cVar3 == '\0') {
p_Var4 = (_Rb_tree_node_base *)std::_Rb_tree_increment(p_Var4);
if ((p_Var4 == (_Rb_tree_node_base *)(this + 0x38)) ||
(cVar3 = (anonymous_namespace)::IsSubSymbol
(lVar7,lVar2,*(int8 *)(p_Var4 + 0x20),
*(int8 *)(p_Var4 + 0x28)), cVar3 == '\0')) {
local_70[0] = local_60;
std::__cxx11::string::_M_construct<char*>(local_70,lVar7,lVar2 + lVar7);
local_50 = local_38;
local_78 = this_00;
/* try { // try from 001ff2dc to 001ff2e9 has its CatchHandler @ 001ff35f */
std::
_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,google::protobuf::FileDescriptorProto_const*>,std::_Select1st<std::pair<std::__cxx11::string_const,google::protobuf::FileDescriptorProto_const*>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,google::protobuf::FileDescriptorProto_const*>>>
::
_M_insert_unique_<std::pair<std::__cxx11::string_const,google::protobuf::FileDescriptorProto_const*>,std::_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,google::protobuf::FileDescriptorProto_const*>,std::_Select1st<std::pair<std::__cxx11::string_const,google::protobuf::FileDescriptorProto_const*>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,google::protobuf::FileDescriptorProto_const*>>>::_Alloc_node>
((_Rb_tree<std::__cxx11::string,std::pair<std::__cxx11::string_const,google::protobuf::FileDescriptorProto_const*>,std::_Select1st<std::pair<std::__cxx11::string_const,google::protobuf::FileDescriptorProto_const*>>,std::less<std::__cxx11::string>,std::allocator<std::pair<std::__cxx11::string_const,google::protobuf::FileDescriptorProto_const*>>>
*)this_00,p_Var4,local_70);
if (local_70[0] != local_60) goto LAB_001ff200;
goto LAB_001ff205;
}
internal::LogMessage::LogMessage
((LogMessage *)local_70,2,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor_database.cc"
,0xec);
/* try { // try from 001ff257 to 001ff29d has its CatchHandler @ 001ff386 */
pLVar5 = (LogMessage *)
internal::LogMessage::operator<<((LogMessage *)local_70,"Symbol name \"");
pLVar5 = (LogMessage *)internal::LogMessage::operator<<(pLVar5,param_1);
pLVar5 = (LogMessage *)
internal::LogMessage::operator<<(pLVar5,"\" conflicts with the existing symbol \"");
pLVar5 = (LogMessage *)internal::LogMessage::operator<<(pLVar5,(string *)(p_Var4 + 0x20));
pLVar5 = (LogMessage *)internal::LogMessage::operator<<(pLVar5,"\".");
/* try { // try from 001ff29e to 001ff2a8 has its CatchHandler @ 001ff35b */
internal::LogFinisher::operator=((LogFinisher *)&local_78,pLVar5);
}
else {
internal::LogMessage::LogMessage
((LogMessage *)local_70,2,
"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/descriptor_database.cc"
,0xdd);
/* try { // try from 001ff170 to 001ff1b6 has its CatchHandler @ 001ff388 */
pLVar5 = (LogMessage *)
internal::LogMessage::operator<<((LogMessage *)local_70,"Symbol name \"");
pLVar5 = (LogMessage *)internal::LogMessage::operator<<(pLVar5,param_1);
pLVar5 = (LogMessage *)
internal::LogMessage::operator<<(pLVar5,"\" conflicts with the existing symbol \"");
pLVar5 = (LogMessage *)internal::LogMessage::operator<<(pLVar5,(string *)(p_Var4 + 0x20));
pLVar5 = (LogMessage *)internal::LogMessage::operator<<(pLVar5,"\".");
/* try { // try from 001ff1b7 to 001ff1c1 has its CatchHandler @ 001ff36e */
internal::LogFinisher::operator=((LogFinisher *)&local_78,pLVar5);
}
LAB_001ff340:
internal::LogMessage::~LogMessage((LogMessage *)local_70);
uVar6 = 0;
}
return uVar6;
}
| |
28,285 | my_casedn_utf8mb4 | eloqsql/strings/ctype-utf8.c | static size_t
my_casedn_utf8mb4(CHARSET_INFO *cs,
const char *src, size_t srclen,
char *dst, size_t dstlen)
{
my_wc_t wc;
int srcres, dstres;
const char *srcend= src + srclen;
char *dstend= dst + dstlen, *dst0= dst;
MY_UNICASE_INFO *uni_plane= cs->caseinfo;
DBUG_ASSERT(src != dst || cs->casedn_multiply == 1);
while ((src < srcend) &&
(srcres= my_mb_wc_utf8mb4(cs, &wc,
(uchar*) src, (uchar*) srcend)) > 0)
{
my_tolower_utf8mb4(uni_plane, &wc);
if ((dstres= my_wc_mb_utf8mb4(cs, wc, (uchar*) dst, (uchar*) dstend)) <= 0)
break;
src+= srcres;
dst+= dstres;
}
return (size_t) (dst - dst0);
} | O3 | c | my_casedn_utf8mb4:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, -0x38(%rbp)
movq %rcx, %r13
movq %rcx, -0x30(%rbp)
testq %rdx, %rdx
jle 0x8473a
movq %rdx, %r15
movq %rsi, %r12
addq %rsi, %r15
movq -0x30(%rbp), %r13
addq %r13, -0x38(%rbp)
movq 0x78(%rdi), %r14
leaq -0x40(%rbp), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x8771e
testl %eax, %eax
jle 0x8473a
movl %eax, %ebx
movq -0x40(%rbp), %rsi
cmpq (%r14), %rsi
ja 0x8471b
movq 0x8(%r14), %rax
movq %rsi, %rcx
shrq $0x8, %rcx
movq (%rax,%rcx,8), %rax
testq %rax, %rax
je 0x8471b
movzbl %sil, %ecx
leaq (%rcx,%rcx,2), %rcx
movl 0x4(%rax,%rcx,4), %esi
movq %rsi, -0x40(%rbp)
movq %r13, %rdx
movq -0x38(%rbp), %rcx
callq 0x8440d
testl %eax, %eax
jle 0x8473a
movl %ebx, %ecx
addq %rcx, %r12
movl %eax, %eax
addq %rax, %r13
cmpq %r15, %r12
jb 0x846d9
subq -0x30(%rbp), %r13
movq %r13, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_casedn_utf8mb4:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 18h
mov [rbp+var_38], r8
mov r13, rcx
mov [rbp+var_30], rcx
test rdx, rdx
jle short loc_8473A
mov r15, rdx
mov r12, rsi
add r15, rsi
mov r13, [rbp+var_30]
add [rbp+var_38], r13
mov r14, [rdi+78h]
loc_846D9:
lea rdi, [rbp+var_40]
mov rsi, r12
mov rdx, r15
call my_mb_wc_utf8mb4_quick_0
test eax, eax
jle short loc_8473A
mov ebx, eax
mov rsi, [rbp+var_40]
cmp rsi, [r14]
ja short loc_8471B
mov rax, [r14+8]
mov rcx, rsi
shr rcx, 8
mov rax, [rax+rcx*8]
test rax, rax
jz short loc_8471B
movzx ecx, sil
lea rcx, [rcx+rcx*2]
mov esi, [rax+rcx*4+4]
mov [rbp+var_40], rsi
loc_8471B:
mov rdx, r13
mov rcx, [rbp+var_38]
call my_wc_mb_utf8mb4
test eax, eax
jle short loc_8473A
mov ecx, ebx
add r12, rcx
mov eax, eax
add r13, rax
cmp r12, r15
jb short loc_846D9
loc_8473A:
sub r13, [rbp+var_30]
mov rax, r13
add rsp, 18h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| _BYTE * my_casedn_utf8mb4(long long a1, unsigned long long a2, long long a3, _BYTE *a4, unsigned long long a5)
{
_BYTE *v5; // r13
unsigned long long v6; // r12
unsigned long long v7; // r15
unsigned long long *v8; // r14
int v9; // eax
unsigned int v10; // ebx
unsigned long long v11; // rsi
long long v12; // rax
int v13; // eax
unsigned long long v15; // [rsp+0h] [rbp-40h] BYREF
unsigned long long v16; // [rsp+8h] [rbp-38h]
_BYTE *v17; // [rsp+10h] [rbp-30h]
v16 = a5;
v5 = a4;
v17 = a4;
if ( a3 > 0 )
{
v6 = a2;
v7 = a2 + a3;
v5 = v17;
v16 += (unsigned long long)v17;
v8 = *(unsigned long long **)(a1 + 120);
do
{
v9 = my_mb_wc_utf8mb4_quick_0(&v15, v6, v7);
if ( v9 <= 0 )
break;
v10 = v9;
v11 = v15;
if ( v15 <= *v8 )
{
v12 = *(_QWORD *)(v8[1] + 8 * (v15 >> 8));
if ( v12 )
{
v11 = *(unsigned int *)(v12 + 12LL * (unsigned __int8)v15 + 4);
v15 = v11;
}
}
v13 = my_wc_mb_utf8mb4((long long)&v15, v11, v5, v16);
if ( v13 <= 0 )
break;
v6 += v10;
v5 += (unsigned int)v13;
}
while ( v6 < v7 );
}
return (_BYTE *)(v5 - v17);
}
| my_casedn_utf8mb4:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x18
MOV qword ptr [RBP + -0x38],R8
MOV R13,RCX
MOV qword ptr [RBP + -0x30],RCX
TEST RDX,RDX
JLE 0x0018473a
MOV R15,RDX
MOV R12,RSI
ADD R15,RSI
MOV R13,qword ptr [RBP + -0x30]
ADD qword ptr [RBP + -0x38],R13
MOV R14,qword ptr [RDI + 0x78]
LAB_001846d9:
LEA RDI,[RBP + -0x40]
MOV RSI,R12
MOV RDX,R15
CALL 0x0018771e
TEST EAX,EAX
JLE 0x0018473a
MOV EBX,EAX
MOV RSI,qword ptr [RBP + -0x40]
CMP RSI,qword ptr [R14]
JA 0x0018471b
MOV RAX,qword ptr [R14 + 0x8]
MOV RCX,RSI
SHR RCX,0x8
MOV RAX,qword ptr [RAX + RCX*0x8]
TEST RAX,RAX
JZ 0x0018471b
MOVZX ECX,SIL
LEA RCX,[RCX + RCX*0x2]
MOV ESI,dword ptr [RAX + RCX*0x4 + 0x4]
MOV qword ptr [RBP + -0x40],RSI
LAB_0018471b:
MOV RDX,R13
MOV RCX,qword ptr [RBP + -0x38]
CALL 0x0018440d
TEST EAX,EAX
JLE 0x0018473a
MOV ECX,EBX
ADD R12,RCX
MOV EAX,EAX
ADD R13,RAX
CMP R12,R15
JC 0x001846d9
LAB_0018473a:
SUB R13,qword ptr [RBP + -0x30]
MOV RAX,R13
ADD RSP,0x18
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
long my_casedn_utf8mb4(long param_1,ulong param_2,long param_3,long param_4,long param_5)
{
ulong *puVar1;
long lVar2;
uint uVar3;
uint uVar4;
ulong uVar5;
ulong local_48;
long local_40;
long local_38;
local_38 = param_4;
if (0 < param_3) {
uVar5 = param_3 + param_2;
local_40 = param_5 + param_4;
puVar1 = *(ulong **)(param_1 + 0x78);
do {
uVar3 = my_mb_wc_utf8mb4_quick(&local_48,param_2,uVar5);
if ((int)uVar3 < 1) break;
if ((local_48 <= *puVar1) && (lVar2 = *(long *)(puVar1[1] + (local_48 >> 8) * 8), lVar2 != 0))
{
local_48 = (ulong)*(uint *)(lVar2 + 4 + (local_48 & 0xff) * 0xc);
}
uVar4 = my_wc_mb_utf8mb4();
if ((int)uVar4 < 1) break;
param_2 = param_2 + uVar3;
param_4 = param_4 + (ulong)uVar4;
} while (param_2 < uVar5);
}
return param_4 - local_38;
}
| |
28,286 | common_sampler_type_to_str[abi:cxx11](common_sampler_type) | monkey531[P]llama/common/sampling.cpp | std::string common_sampler_type_to_str(enum common_sampler_type cnstr) {
switch (cnstr) {
case COMMON_SAMPLER_TYPE_DRY: return "dry";
case COMMON_SAMPLER_TYPE_TOP_K: return "top_k";
case COMMON_SAMPLER_TYPE_TYPICAL_P: return "typ_p";
case COMMON_SAMPLER_TYPE_TOP_P: return "top_p";
case COMMON_SAMPLER_TYPE_MIN_P: return "min_p";
case COMMON_SAMPLER_TYPE_TEMPERATURE: return "temperature";
case COMMON_SAMPLER_TYPE_XTC: return "xtc";
case COMMON_SAMPLER_TYPE_INFILL: return "infill";
case COMMON_SAMPLER_TYPE_PENALTIES: return "penalties";
default : return "";
}
} | O2 | cpp | common_sampler_type_to_str[abi:cxx11](common_sampler_type):
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
decl %esi
cmpl $0x9, %esi
ja 0x97d29
leaq 0x20352(%rip), %rax # 0xb7ff4
movslq (%rax,%rsi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
leaq 0x20719(%rip), %rsi # 0xb83cb
leaq 0xf(%rsp), %rdx
jmp 0x97d35
leaq 0x2071b(%rip), %rsi # 0xb83db
leaq 0xc(%rsp), %rdx
jmp 0x97d35
leaq 0x20719(%rip), %rsi # 0xb83e7
leaq 0xa(%rsp), %rdx
jmp 0x97d35
leaq 0x206f3(%rip), %rsi # 0xb83cf
leaq 0xe(%rsp), %rdx
jmp 0x97d35
leaq 0x20709(%rip), %rsi # 0xb83f3
leaq 0x9(%rsp), %rdx
jmp 0x97d35
leaq 0x12db1(%rip), %rsi # 0xaaaa9
leaq 0x8(%rsp), %rdx
jmp 0x97d35
leaq 0x206db(%rip), %rsi # 0xb83e1
leaq 0xb(%rsp), %rdx
jmp 0x97d35
leaq 0x206c1(%rip), %rsi # 0xb83d5
leaq 0xd(%rsp), %rdx
jmp 0x97d35
leaq 0x206d5(%rip), %rsi # 0xb83f7
leaq 0x7(%rsp), %rdx
jmp 0x97d35
leaq 0x16db9(%rip), %rsi # 0xaeae9
leaq 0x6(%rsp), %rdx
movq %rbx, %rdi
callq 0x26f76
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
| _Z26common_sampler_type_to_strB5cxx1119common_sampler_type:
push rbx
sub rsp, 10h
mov rbx, rdi
dec esi; switch 10 cases
cmp esi, 9
ja def_97CA9; jumptable 0000000000097CA9 default case, case 5
lea rax, jpt_97CA9
movsxd rcx, ds:(jpt_97CA9 - 0B7FF4h)[rax+rsi*4]
add rcx, rax
jmp rcx; switch jump
loc_97CAB:
lea rsi, aDry; jumptable 0000000000097CA9 case 1
lea rdx, [rsp+18h+var_9]
jmp short loc_97D35
loc_97CB9:
lea rsi, aTopP_0; jumptable 0000000000097CA9 case 3
lea rdx, [rsp+18h+var_C]
jmp short loc_97D35
loc_97CC7:
lea rsi, aTemperature; jumptable 0000000000097CA9 case 7
lea rdx, [rsp+18h+var_E]
jmp short loc_97D35
loc_97CD5:
lea rsi, aTopK_0; jumptable 0000000000097CA9 case 2
lea rdx, [rsp+18h+var_A]
jmp short loc_97D35
loc_97CE3:
lea rsi, aXtc; jumptable 0000000000097CA9 case 8
lea rdx, [rsp+18h+var_F]
jmp short loc_97D35
loc_97CF1:
lea rsi, aSpmInfill+6; jumptable 0000000000097CA9 case 9
lea rdx, [rsp+18h+var_10]
jmp short loc_97D35
loc_97CFF:
lea rsi, aMinP_0; jumptable 0000000000097CA9 case 4
lea rdx, [rsp+18h+var_D]
jmp short loc_97D35
loc_97D0D:
lea rsi, aTypP; jumptable 0000000000097CA9 case 6
lea rdx, [rsp+18h+var_B]
jmp short loc_97D35
loc_97D1B:
lea rsi, aPenalties; jumptable 0000000000097CA9 case 10
lea rdx, [rsp+18h+var_11]
jmp short loc_97D35
def_97CA9:
lea rsi, aErrorWhileHand_0+34h; jumptable 0000000000097CA9 default case, case 5
lea rdx, [rsp+18h+var_12]
loc_97D35:
mov rdi, rbx
call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&)
mov rax, rbx
add rsp, 10h
pop rbx
retn
| _QWORD * common_sampler_type_to_str[abi:cxx11](_QWORD *a1, int a2)
{
char *v2; // rsi
switch ( a2 )
{
case 1:
v2 = "dry";
break;
case 2:
v2 = "top_k";
break;
case 3:
v2 = "top_p";
break;
case 4:
v2 = "min_p";
break;
case 6:
v2 = "typ_p";
break;
case 7:
v2 = "temperature";
break;
case 8:
v2 = "xtc";
break;
case 9:
v2 = "infill";
break;
case 10:
v2 = "penalties";
break;
default:
v2 = "";
break;
}
std::string::basic_string<std::allocator<char>>(a1, (long long)v2);
return a1;
}
| common_sampler_type_to_str[abi:cxx11]:
PUSH RBX
SUB RSP,0x10
MOV RBX,RDI
DEC ESI
CMP ESI,0x9
JA 0x00197d29
LEA RAX,[0x1b7ff4]
MOVSXD RCX,dword ptr [RAX + RSI*0x4]
ADD RCX,RAX
switchD:
JMP RCX
caseD_1:
LEA RSI,[0x1b83cb]
LEA RDX,[RSP + 0xf]
JMP 0x00197d35
caseD_3:
LEA RSI,[0x1b83db]
LEA RDX,[RSP + 0xc]
JMP 0x00197d35
caseD_7:
LEA RSI,[0x1b83e7]
LEA RDX,[RSP + 0xa]
JMP 0x00197d35
caseD_2:
LEA RSI,[0x1b83cf]
LEA RDX,[RSP + 0xe]
JMP 0x00197d35
caseD_8:
LEA RSI,[0x1b83f3]
LEA RDX,[RSP + 0x9]
JMP 0x00197d35
caseD_9:
LEA RSI,[0x1aaaa9]
LEA RDX,[RSP + 0x8]
JMP 0x00197d35
caseD_4:
LEA RSI,[0x1b83e1]
LEA RDX,[RSP + 0xb]
JMP 0x00197d35
caseD_6:
LEA RSI,[0x1b83d5]
LEA RDX,[RSP + 0xd]
JMP 0x00197d35
caseD_a:
LEA RSI,[0x1b83f7]
LEA RDX,[RSP + 0x7]
JMP 0x00197d35
caseD_5:
LEA RSI,[0x1aeae9]
LEA RDX,[RSP + 0x6]
LAB_00197d35:
MOV RDI,RBX
CALL 0x00126f76
MOV RAX,RBX
ADD RSP,0x10
POP RBX
RET
|
/* common_sampler_type_to_str[abi:cxx11](common_sampler_type) */
string * common_sampler_type_to_str_abi_cxx11_(string *param_1,int4 param_2)
{
allocator *paVar1;
char *pcVar2;
allocator local_12;
allocator local_11;
allocator local_10;
allocator local_f;
allocator local_e;
allocator local_d;
allocator local_c;
allocator local_b;
allocator local_a;
allocator local_9;
switch(param_2) {
case 1:
pcVar2 = "dry";
paVar1 = &local_9;
break;
case 2:
pcVar2 = "top_k";
paVar1 = &local_a;
break;
case 3:
pcVar2 = "top_p";
paVar1 = &local_c;
break;
case 4:
pcVar2 = "min_p";
paVar1 = &local_d;
break;
default:
pcVar2 = "";
paVar1 = &local_12;
break;
case 6:
pcVar2 = "typ_p";
paVar1 = &local_b;
break;
case 7:
pcVar2 = "temperature";
paVar1 = &local_e;
break;
case 8:
pcVar2 = "xtc";
paVar1 = &local_f;
break;
case 9:
pcVar2 = "infill";
paVar1 = &local_10;
break;
case 10:
pcVar2 = "penalties";
paVar1 = &local_11;
}
std::__cxx11::string::string<std::allocator<char>>(param_1,pcVar2,paVar1);
return param_1;
}
| |
28,287 | my_cset_init_8bit | eloqsql/strings/ctype-simple.c | static my_bool
my_cset_init_8bit(struct charset_info_st *cs, MY_CHARSET_LOADER *loader)
{
cs->state|= my_8bit_charset_flags_from_data(cs);
cs->caseup_multiply= 1;
cs->casedn_multiply= 1;
cs->pad_char= ' ';
if (!cs->to_lower || !cs->to_upper || !cs->m_ctype || !cs->tab_to_uni)
return TRUE;
return create_fromuni(cs, loader);
} | O3 | c | my_cset_init_8bit:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1808, %rsp # imm = 0x1808
movq %rsi, -0x30(%rbp)
movq %rdi, %rbx
movq 0x68(%rdi), %r15
xorl %eax, %eax
testq %r15, %r15
je 0xbc539
xorl %ecx, %ecx
cmpw $0x80, (%r15,%rcx,2)
jae 0xbc51a
incq %rcx
cmpq $0x100, %rcx # imm = 0x100
jne 0xbc500
movl $0x1000, %eax # imm = 0x1000
xorl %ecx, %ecx
movzwl (%r15,%rcx,2), %edx
cmpq %rdx, %rcx
jne 0xbc534
incq %rcx
cmpq $0x80, %rcx
jne 0xbc51c
jmp 0xbc539
orl $0x2000, %eax # imm = 0x2000
orl %eax, 0xc(%rbx)
movw $0x101, 0x94(%rbx) # imm = 0x101
movb $0x20, 0xb0(%rbx)
movb $0x1, %al
cmpq $0x0, 0x48(%rbx)
je 0xbc729
cmpq $0x0, 0x50(%rbx)
je 0xbc729
testq %r15, %r15
je 0xbc729
cmpq $0x0, 0x40(%rbx)
je 0xbc729
leaq -0x1830(%rbp), %rdi
xorl %r12d, %r12d
movl $0x1800, %edx # imm = 0x1800
xorl %esi, %esi
callq 0x392e0
movzwl (%r15,%r12,2), %eax
testq %rax, %rax
sete %cl
testq %r12, %r12
setne %dl
testb %cl, %dl
jne 0xbc5e6
movl %eax, %ecx
shrl $0x8, %ecx
leaq (%rcx,%rcx,2), %rcx
leaq -0x1830(,%rcx,8), %rcx
addq %rbp, %rcx
movl (%rcx), %edx
testl %edx, %edx
je 0xbc5da
movl 0x8(%rcx), %esi
movl %eax, %edi
cmpw %si, %ax
jb 0xbc5c9
movl %esi, %edi
movw %di, 0x8(%rcx)
movzwl 0xa(%rcx), %esi
cmpw %si, %ax
ja 0xbc5de
movl %esi, %eax
jmp 0xbc5de
movw %ax, 0x8(%rcx)
movw %ax, 0xa(%rcx)
incl %edx
movl %edx, (%rcx)
incq %r12
cmpq $0x100, %r12 # imm = 0x100
jne 0xbc58e
leaq 0x1b0(%rip), %rcx # 0xbc7a9
leaq -0x1830(%rbp), %rdi
movl $0x100, %esi # imm = 0x100
movl $0x18, %edx
callq 0x39740
xorl %r13d, %r13d
leaq (,%r13,2), %rax
addq %r13, %rax
cmpl $0x0, -0x1830(%rbp,%rax,8)
je 0xbc6c0
leaq -0x1830(,%rax,8), %r14
addq %rbp, %r14
movzwl 0xa(%r14), %r12d
movzwl 0x8(%r14), %eax
subq %rax, %r12
incq %r12
movq %r12, %rdi
movq -0x30(%rbp), %rax
callq *0x80(%rax)
movq %rax, 0x10(%r14)
testq %rax, %rax
je 0xbc714
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x392e0
movl $0x1, %eax
movq 0x68(%rbx), %rcx
movzwl (%rcx,%rax,2), %ecx
movzwl 0x8(%r14), %edx
cmpw %dx, %cx
jb 0xbc69f
leal -0x1(%rcx), %esi
cmpw 0xa(%r14), %si
jae 0xbc69f
subq %rdx, %rcx
cmpb $0x0, (%r15,%rcx)
jg 0xbc69f
movb %al, (%r15,%rcx)
incq %rax
cmpq $0x100, %rax # imm = 0x100
jne 0xbc675
incq %r13
cmpq $0x100, %r13 # imm = 0x100
jne 0xbc612
movl $0x100, %r13d # imm = 0x100
movl %r13d, %r14d
movq %r14, %rdi
shlq $0x4, %rdi
addq $0x10, %rdi
movq -0x30(%rbp), %rax
callq *0x80(%rax)
movq %rax, 0x70(%rbx)
testq %rax, %rax
je 0xbc714
testl %r13d, %r13d
je 0xbc718
movq %r14, %rax
shlq $0x4, %rax
leaq -0x1828(%rbp), %rcx
xorl %edx, %edx
movq 0x70(%rbx), %rsi
movups (%rcx), %xmm0
movups %xmm0, (%rsi,%rdx)
addq $0x10, %rdx
addq $0x18, %rcx
cmpq %rdx, %rax
jne 0xbc6f6
movq 0x70(%rbx), %rax
jmp 0xbc71b
movb $0x1, %al
jmp 0xbc729
xorl %r14d, %r14d
shlq $0x4, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rax,%r14)
xorl %eax, %eax
addq $0x1808, %rsp # imm = 0x1808
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| my_cset_init_8bit:
push rbp
mov rbp, rsp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 1808h
mov [rbp+var_30], rsi
mov rbx, rdi
mov r15, [rdi+68h]
xor eax, eax
test r15, r15
jz short loc_BC539
xor ecx, ecx
loc_BC500:
cmp word ptr [r15+rcx*2], 80h
jnb short loc_BC51A
inc rcx
cmp rcx, 100h
jnz short loc_BC500
mov eax, 1000h
loc_BC51A:
xor ecx, ecx
loc_BC51C:
movzx edx, word ptr [r15+rcx*2]
cmp rcx, rdx
jnz short loc_BC534
inc rcx
cmp rcx, 80h
jnz short loc_BC51C
jmp short loc_BC539
loc_BC534:
or eax, 2000h
loc_BC539:
or [rbx+0Ch], eax
mov word ptr [rbx+94h], 101h
mov byte ptr [rbx+0B0h], 20h ; ' '
mov al, 1
cmp qword ptr [rbx+48h], 0
jz loc_BC729
cmp qword ptr [rbx+50h], 0
jz loc_BC729
test r15, r15
jz loc_BC729
cmp qword ptr [rbx+40h], 0
jz loc_BC729
lea rdi, [rbp+var_1830]
xor r12d, r12d
mov edx, 1800h
xor esi, esi
call _memset
loc_BC58E:
movzx eax, word ptr [r15+r12*2]
test rax, rax
setz cl
test r12, r12
setnz dl
test dl, cl
jnz short loc_BC5E6
mov ecx, eax
shr ecx, 8
lea rcx, [rcx+rcx*2]
lea rcx, ds:0FFFFFFFFFFFFE7D0h[rcx*8]
add rcx, rbp
mov edx, [rcx]
test edx, edx
jz short loc_BC5DA
mov esi, [rcx+8]
mov edi, eax
cmp ax, si
jb short loc_BC5C9
mov edi, esi
loc_BC5C9:
mov [rcx+8], di
movzx esi, word ptr [rcx+0Ah]
cmp ax, si
ja short loc_BC5DE
mov eax, esi
jmp short loc_BC5DE
loc_BC5DA:
mov [rcx+8], ax
loc_BC5DE:
mov [rcx+0Ah], ax
inc edx
mov [rcx], edx
loc_BC5E6:
inc r12
cmp r12, 100h
jnz short loc_BC58E
lea rcx, pcmp
lea rdi, [rbp+var_1830]
mov esi, 100h
mov edx, 18h
call _qsort
xor r13d, r13d
loc_BC612:
lea rax, ds:0[r13*2]
add rax, r13
cmp [rbp+rax*8+var_1830], 0
jz loc_BC6C0
lea r14, ds:0FFFFFFFFFFFFE7D0h[rax*8]
add r14, rbp
movzx r12d, word ptr [r14+0Ah]
movzx eax, word ptr [r14+8]
sub r12, rax
inc r12
mov rdi, r12
mov rax, [rbp+var_30]
call qword ptr [rax+80h]
mov [r14+10h], rax
test rax, rax
jz loc_BC714
mov r15, rax
mov rdi, rax
xor esi, esi
mov rdx, r12
call _memset
mov eax, 1
loc_BC675:
mov rcx, [rbx+68h]
movzx ecx, word ptr [rcx+rax*2]
movzx edx, word ptr [r14+8]
cmp cx, dx
jb short loc_BC69F
lea esi, [rcx-1]
cmp si, [r14+0Ah]
jnb short loc_BC69F
sub rcx, rdx
cmp byte ptr [r15+rcx], 0
jg short loc_BC69F
mov [r15+rcx], al
loc_BC69F:
inc rax
cmp rax, 100h
jnz short loc_BC675
inc r13
cmp r13, 100h
jnz loc_BC612
mov r13d, 100h
loc_BC6C0:
mov r14d, r13d
mov rdi, r14
shl rdi, 4
add rdi, 10h
mov rax, [rbp+var_30]
call qword ptr [rax+80h]
mov [rbx+70h], rax
test rax, rax
jz short loc_BC714
test r13d, r13d
jz short loc_BC718
mov rax, r14
shl rax, 4
lea rcx, [rbp+var_1828]
xor edx, edx
loc_BC6F6:
mov rsi, [rbx+70h]
movups xmm0, xmmword ptr [rcx]
movups xmmword ptr [rsi+rdx], xmm0
add rdx, 10h
add rcx, 18h
cmp rax, rdx
jnz short loc_BC6F6
mov rax, [rbx+70h]
jmp short loc_BC71B
loc_BC714:
mov al, 1
jmp short loc_BC729
loc_BC718:
xor r14d, r14d
loc_BC71B:
shl r14, 4
xorps xmm0, xmm0
movups xmmword ptr [rax+r14], xmm0
xor eax, eax
loc_BC729:
add rsp, 1808h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| char my_cset_init_8bit(long long a1, long long a2)
{
long long v3; // r15
int v4; // eax
long long v5; // rcx
long long v6; // rcx
char result; // al
long long v8; // r12
long long v9; // rax
long long *v10; // rcx
int v11; // edx
__int16 v12; // di
long long v13; // r13
long long *v14; // r14
unsigned long long v15; // r12
long long v16; // rax
long long v17; // r15
long long i; // rax
long long v19; // rcx
long long v20; // rdx
long long v21; // rcx
long long v22; // r14
long long v23; // rax
char *v24; // rcx
long long v25; // rdx
_DWORD v26[2]; // [rsp+0h] [rbp-1830h] BYREF
char v27; // [rsp+8h] [rbp-1828h] BYREF
long long v28; // [rsp+1800h] [rbp-30h]
long long savedregs; // [rsp+1830h] [rbp+0h] BYREF
_UNKNOWN *retaddr; // [rsp+1838h] [rbp+8h]
v28 = a2;
v3 = *(_QWORD *)(a1 + 104);
v4 = 0;
if ( v3 )
{
v5 = 0LL;
while ( *(_WORD *)(v3 + 2 * v5) < 0x80u )
{
if ( ++v5 == 256 )
{
v4 = 4096;
break;
}
}
v6 = 0LL;
while ( v6 == *(unsigned __int16 *)(v3 + 2 * v6) )
{
if ( ++v6 == 128 )
goto LABEL_11;
}
v4 |= 0x2000u;
}
LABEL_11:
*(_DWORD *)(a1 + 12) |= v4;
*(_WORD *)(a1 + 148) = 257;
*(_BYTE *)(a1 + 176) = 32;
result = 1;
if ( *(_QWORD *)(a1 + 72) && *(_QWORD *)(a1 + 80) && v3 && *(_QWORD *)(a1 + 64) )
{
v8 = 0LL;
memset(v26, 0LL, 6144LL);
do
{
v9 = *(unsigned __int16 *)(v3 + 2 * v8);
if ( v9 != 0 || v8 == 0 )
{
v10 = &savedregs + 3 * ((unsigned int)v9 >> 8) - 774;
v11 = *(_DWORD *)v10;
if ( *(_DWORD *)v10 )
{
v12 = *(_WORD *)(v3 + 2 * v8);
if ( (unsigned __int16)v9 >= (unsigned __int16)*((_DWORD *)v10 + 2) )
v12 = *((_DWORD *)v10 + 2);
*((_WORD *)v10 + 4) = v12;
if ( (unsigned __int16)v9 <= *((_WORD *)v10 + 5) )
LOWORD(v9) = *((_WORD *)v10 + 5);
}
else
{
*((_WORD *)v10 + 4) = v9;
}
*((_WORD *)v10 + 5) = v9;
*(_DWORD *)v10 = v11 + 1;
}
++v8;
}
while ( v8 != 256 );
qsort(v26, 256LL, 24LL, pcmp);
v13 = 0LL;
while ( v26[6 * v13] )
{
v14 = &savedregs + 3 * v13 - 774;
v15 = *((unsigned __int16 *)&retaddr + 12 * v13 - 3095)
- (unsigned long long)*((unsigned __int16 *)&retaddr + 12 * v13 - 3096)
+ 1;
v16 = (*(long long ( **)(unsigned long long))(v28 + 128))(v15);
v14[2] = v16;
if ( !v16 )
return 1;
v17 = v16;
memset(v16, 0LL, v15);
for ( i = 1LL; i != 256; ++i )
{
v19 = *(unsigned __int16 *)(*(_QWORD *)(a1 + 104) + 2 * i);
v20 = *((unsigned __int16 *)v14 + 4);
if ( (unsigned __int16)v19 >= (unsigned __int16)v20 && (unsigned __int16)(v19 - 1) < *((_WORD *)v14 + 5) )
{
v21 = v19 - v20;
if ( *(char *)(v17 + v21) <= 0 )
*(_BYTE *)(v17 + v21) = i;
}
}
if ( ++v13 == 256 )
{
LODWORD(v13) = 256;
break;
}
}
v22 = (unsigned int)v13;
v23 = (*(long long ( **)(long long))(v28 + 128))(16LL * (unsigned int)v13 + 16);
*(_QWORD *)(a1 + 112) = v23;
if ( !v23 )
return 1;
if ( (_DWORD)v13 )
{
v24 = &v27;
v25 = 0LL;
do
{
*(_OWORD *)(*(_QWORD *)(a1 + 112) + v25) = *(_OWORD *)v24;
v25 += 16LL;
v24 += 24;
}
while ( 16LL * (unsigned int)v13 != v25 );
v23 = *(_QWORD *)(a1 + 112);
}
else
{
v22 = 0LL;
}
*(_OWORD *)(v23 + 16 * v22) = 0LL;
return 0;
}
return result;
}
| my_cset_init_8bit:
PUSH RBP
MOV RBP,RSP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0x1808
MOV qword ptr [RBP + -0x30],RSI
MOV RBX,RDI
MOV R15,qword ptr [RDI + 0x68]
XOR EAX,EAX
TEST R15,R15
JZ 0x001bc539
XOR ECX,ECX
LAB_001bc500:
CMP word ptr [R15 + RCX*0x2],0x80
JNC 0x001bc51a
INC RCX
CMP RCX,0x100
JNZ 0x001bc500
MOV EAX,0x1000
LAB_001bc51a:
XOR ECX,ECX
LAB_001bc51c:
MOVZX EDX,word ptr [R15 + RCX*0x2]
CMP RCX,RDX
JNZ 0x001bc534
INC RCX
CMP RCX,0x80
JNZ 0x001bc51c
JMP 0x001bc539
LAB_001bc534:
OR EAX,0x2000
LAB_001bc539:
OR dword ptr [RBX + 0xc],EAX
MOV word ptr [RBX + 0x94],0x101
MOV byte ptr [RBX + 0xb0],0x20
MOV AL,0x1
CMP qword ptr [RBX + 0x48],0x0
JZ 0x001bc729
CMP qword ptr [RBX + 0x50],0x0
JZ 0x001bc729
TEST R15,R15
JZ 0x001bc729
CMP qword ptr [RBX + 0x40],0x0
JZ 0x001bc729
LEA RDI,[RBP + -0x1830]
XOR R12D,R12D
MOV EDX,0x1800
XOR ESI,ESI
CALL 0x001392e0
LAB_001bc58e:
MOVZX EAX,word ptr [R15 + R12*0x2]
TEST RAX,RAX
SETZ CL
TEST R12,R12
SETNZ DL
TEST DL,CL
JNZ 0x001bc5e6
MOV ECX,EAX
SHR ECX,0x8
LEA RCX,[RCX + RCX*0x2]
LEA RCX,[-0x1830 + RCX*0x8]
ADD RCX,RBP
MOV EDX,dword ptr [RCX]
TEST EDX,EDX
JZ 0x001bc5da
MOV ESI,dword ptr [RCX + 0x8]
MOV EDI,EAX
CMP AX,SI
JC 0x001bc5c9
MOV EDI,ESI
LAB_001bc5c9:
MOV word ptr [RCX + 0x8],DI
MOVZX ESI,word ptr [RCX + 0xa]
CMP AX,SI
JA 0x001bc5de
MOV EAX,ESI
JMP 0x001bc5de
LAB_001bc5da:
MOV word ptr [RCX + 0x8],AX
LAB_001bc5de:
MOV word ptr [RCX + 0xa],AX
INC EDX
MOV dword ptr [RCX],EDX
LAB_001bc5e6:
INC R12
CMP R12,0x100
JNZ 0x001bc58e
LEA RCX,[0x1bc7a9]
LEA RDI,[RBP + -0x1830]
MOV ESI,0x100
MOV EDX,0x18
CALL 0x00139740
XOR R13D,R13D
LAB_001bc612:
LEA RAX,[R13*0x2]
ADD RAX,R13
CMP dword ptr [RBP + RAX*0x8 + -0x1830],0x0
JZ 0x001bc6c0
LEA R14,[-0x1830 + RAX*0x8]
ADD R14,RBP
MOVZX R12D,word ptr [R14 + 0xa]
MOVZX EAX,word ptr [R14 + 0x8]
SUB R12,RAX
INC R12
MOV RDI,R12
MOV RAX,qword ptr [RBP + -0x30]
CALL qword ptr [RAX + 0x80]
MOV qword ptr [R14 + 0x10],RAX
TEST RAX,RAX
JZ 0x001bc714
MOV R15,RAX
MOV RDI,RAX
XOR ESI,ESI
MOV RDX,R12
CALL 0x001392e0
MOV EAX,0x1
LAB_001bc675:
MOV RCX,qword ptr [RBX + 0x68]
MOVZX ECX,word ptr [RCX + RAX*0x2]
MOVZX EDX,word ptr [R14 + 0x8]
CMP CX,DX
JC 0x001bc69f
LEA ESI,[RCX + -0x1]
CMP SI,word ptr [R14 + 0xa]
JNC 0x001bc69f
SUB RCX,RDX
CMP byte ptr [R15 + RCX*0x1],0x0
JG 0x001bc69f
MOV byte ptr [R15 + RCX*0x1],AL
LAB_001bc69f:
INC RAX
CMP RAX,0x100
JNZ 0x001bc675
INC R13
CMP R13,0x100
JNZ 0x001bc612
MOV R13D,0x100
LAB_001bc6c0:
MOV R14D,R13D
MOV RDI,R14
SHL RDI,0x4
ADD RDI,0x10
MOV RAX,qword ptr [RBP + -0x30]
CALL qword ptr [RAX + 0x80]
MOV qword ptr [RBX + 0x70],RAX
TEST RAX,RAX
JZ 0x001bc714
TEST R13D,R13D
JZ 0x001bc718
MOV RAX,R14
SHL RAX,0x4
LEA RCX,[RBP + -0x1828]
XOR EDX,EDX
LAB_001bc6f6:
MOV RSI,qword ptr [RBX + 0x70]
MOVUPS XMM0,xmmword ptr [RCX]
MOVUPS xmmword ptr [RSI + RDX*0x1],XMM0
ADD RDX,0x10
ADD RCX,0x18
CMP RAX,RDX
JNZ 0x001bc6f6
MOV RAX,qword ptr [RBX + 0x70]
JMP 0x001bc71b
LAB_001bc714:
MOV AL,0x1
JMP 0x001bc729
LAB_001bc718:
XOR R14D,R14D
LAB_001bc71b:
SHL R14,0x4
XORPS XMM0,XMM0
MOVUPS xmmword ptr [RAX + R14*0x1],XMM0
XOR EAX,EAX
LAB_001bc729:
ADD RSP,0x1808
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
int8 my_cset_init_8bit(long param_1,long param_2)
{
int8 *puVar1;
int iVar2;
ushort uVar3;
uint uVar4;
int8 uVar5;
void *__s;
long lVar6;
long lVar7;
ulong uVar8;
ushort *puVar9;
ushort uVar10;
size_t __n;
ulong uVar11;
int local_1838 [2];
ushort local_1830 [4];
int8 auStack_1828 [766];
long local_38;
lVar6 = *(long *)(param_1 + 0x68);
uVar4 = 0;
if (lVar6 != 0) {
lVar7 = 0;
do {
if (0x7f < *(ushort *)(lVar6 + lVar7 * 2)) goto LAB_001bc51a;
lVar7 = lVar7 + 1;
} while (lVar7 != 0x100);
uVar4 = 0x1000;
LAB_001bc51a:
uVar8 = 0;
do {
if (uVar8 != *(ushort *)(lVar6 + uVar8 * 2)) {
uVar4 = uVar4 | 0x2000;
break;
}
uVar8 = uVar8 + 1;
} while (uVar8 != 0x80);
}
*(uint *)(param_1 + 0xc) = *(uint *)(param_1 + 0xc) | uVar4;
*(int2 *)(param_1 + 0x94) = 0x101;
*(int1 *)(param_1 + 0xb0) = 0x20;
uVar5 = 1;
if ((((*(long *)(param_1 + 0x48) != 0) && (*(long *)(param_1 + 0x50) != 0)) && (lVar6 != 0)) &&
(*(long *)(param_1 + 0x40) != 0)) {
lVar7 = 0;
local_38 = param_2;
memset(local_1838,0,0x1800);
do {
uVar3 = *(ushort *)(lVar6 + lVar7 * 2);
if (lVar7 == 0 || uVar3 != 0) {
uVar8 = (ulong)(uVar3 >> 8);
iVar2 = local_1838[uVar8 * 6];
if (iVar2 == 0) {
local_1830[uVar8 * 0xc] = uVar3;
}
else {
uVar10 = uVar3;
if ((ushort)*(int4 *)(local_1830 + uVar8 * 0xc) <= uVar3) {
uVar10 = (ushort)*(int4 *)(local_1830 + uVar8 * 0xc);
}
local_1830[uVar8 * 0xc] = uVar10;
if (uVar3 <= local_1830[uVar8 * 0xc + 1]) {
uVar3 = local_1830[uVar8 * 0xc + 1];
}
}
local_1830[uVar8 * 0xc + 1] = uVar3;
local_1838[uVar8 * 6] = iVar2 + 1;
}
lVar7 = lVar7 + 1;
} while (lVar7 != 0x100);
qsort(local_1838,0x100,0x18,pcmp);
uVar8 = 0;
do {
if (local_1838[uVar8 * 6] == 0) goto LAB_001bc6c0;
__n = ((ulong)local_1830[uVar8 * 0xc + 1] - (ulong)local_1830[uVar8 * 0xc]) + 1;
__s = (void *)(**(code **)(local_38 + 0x80))(__n);
auStack_1828[uVar8 * 3] = __s;
if (__s == (void *)0x0) goto LAB_001bc714;
memset(__s,0,__n);
lVar6 = 1;
do {
uVar3 = *(ushort *)(*(long *)(param_1 + 0x68) + lVar6 * 2);
if (((local_1830[uVar8 * 0xc] <= uVar3) &&
((ushort)(uVar3 - 1) < local_1830[uVar8 * 0xc + 1])) &&
(lVar7 = (ulong)uVar3 - (ulong)local_1830[uVar8 * 0xc],
*(char *)((long)__s + lVar7) < '\x01')) {
*(char *)((long)__s + lVar7) = (char)lVar6;
}
lVar6 = lVar6 + 1;
} while (lVar6 != 0x100);
uVar8 = uVar8 + 1;
} while (uVar8 != 0x100);
uVar8 = 0x100;
LAB_001bc6c0:
uVar11 = uVar8 & 0xffffffff;
lVar6 = (**(code **)(local_38 + 0x80))(uVar11 * 0x10 + 0x10);
*(long *)(param_1 + 0x70) = lVar6;
if (lVar6 == 0) {
LAB_001bc714:
uVar5 = 1;
}
else {
if ((int)uVar8 == 0) {
uVar11 = 0;
}
else {
puVar9 = local_1830;
lVar6 = 0;
do {
uVar5 = *(int8 *)(puVar9 + 4);
puVar1 = (int8 *)(*(long *)(param_1 + 0x70) + lVar6);
*puVar1 = *(int8 *)puVar9;
puVar1[1] = uVar5;
lVar6 = lVar6 + 0x10;
puVar9 = puVar9 + 0xc;
} while (uVar11 << 4 != lVar6);
lVar6 = *(long *)(param_1 + 0x70);
}
puVar1 = (int8 *)(lVar6 + uVar11 * 0x10);
*puVar1 = 0;
puVar1[1] = 0;
uVar5 = 0;
}
}
return uVar5;
}
| |
28,288 | mariadb_get_charset_info | eloqsql/libmariadb/libmariadb/mariadb_lib.c | static void mariadb_get_charset_info(MYSQL *mysql, MY_CHARSET_INFO *cs)
{
if (!cs)
return;
cs->number= mysql->charset->nr;
cs->csname= mysql->charset->csname;
cs->name= mysql->charset->name;
cs->state= 0;
cs->comment= NULL;
cs->dir= NULL;
cs->mbminlen= mysql->charset->char_minlen;
cs->mbmaxlen= mysql->charset->char_maxlen;
return;
} | O0 | c | mariadb_get_charset_info:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x284c8
jmp 0x28556
movq -0x8(%rbp), %rax
movq 0x2f0(%rax), %rax
movl (%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
movq -0x8(%rbp), %rax
movq 0x2f0(%rax), %rax
movq 0x8(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rax
movq 0x2f0(%rax), %rax
movq 0x10(%rax), %rcx
movq -0x10(%rbp), %rax
movq %rcx, 0x10(%rax)
movq -0x10(%rbp), %rax
movl $0x0, 0x4(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x18(%rax)
movq -0x10(%rbp), %rax
movq $0x0, 0x20(%rax)
movq -0x8(%rbp), %rax
movq 0x2f0(%rax), %rax
movl 0x30(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x28(%rax)
movq -0x8(%rbp), %rax
movq 0x2f0(%rax), %rax
movl 0x34(%rax), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x2c(%rax)
popq %rbp
retq
nopl (%rax,%rax)
| mariadb_get_charset_info:
push rbp
mov rbp, rsp
mov [rbp+var_8], rdi
mov [rbp+var_10], rsi
cmp [rbp+var_10], 0
jnz short loc_284C8
jmp loc_28556
loc_284C8:
mov rax, [rbp+var_8]
mov rax, [rax+2F0h]
mov ecx, [rax]
mov rax, [rbp+var_10]
mov [rax], ecx
mov rax, [rbp+var_8]
mov rax, [rax+2F0h]
mov rcx, [rax+8]
mov rax, [rbp+var_10]
mov [rax+8], rcx
mov rax, [rbp+var_8]
mov rax, [rax+2F0h]
mov rcx, [rax+10h]
mov rax, [rbp+var_10]
mov [rax+10h], rcx
mov rax, [rbp+var_10]
mov dword ptr [rax+4], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+18h], 0
mov rax, [rbp+var_10]
mov qword ptr [rax+20h], 0
mov rax, [rbp+var_8]
mov rax, [rax+2F0h]
mov ecx, [rax+30h]
mov rax, [rbp+var_10]
mov [rax+28h], ecx
mov rax, [rbp+var_8]
mov rax, [rax+2F0h]
mov ecx, [rax+34h]
mov rax, [rbp+var_10]
mov [rax+2Ch], ecx
loc_28556:
pop rbp
retn
| long long mariadb_get_charset_info(long long a1, long long a2)
{
long long result; // rax
if ( a2 )
{
*(_DWORD *)a2 = **(_DWORD **)(a1 + 752);
*(_QWORD *)(a2 + 8) = *(_QWORD *)(*(_QWORD *)(a1 + 752) + 8LL);
*(_QWORD *)(a2 + 16) = *(_QWORD *)(*(_QWORD *)(a1 + 752) + 16LL);
*(_DWORD *)(a2 + 4) = 0;
*(_QWORD *)(a2 + 24) = 0LL;
*(_QWORD *)(a2 + 32) = 0LL;
*(_DWORD *)(a2 + 40) = *(_DWORD *)(*(_QWORD *)(a1 + 752) + 48LL);
result = a2;
*(_DWORD *)(a2 + 44) = *(_DWORD *)(*(_QWORD *)(a1 + 752) + 52LL);
}
return result;
}
| mariadb_get_charset_info:
PUSH RBP
MOV RBP,RSP
MOV qword ptr [RBP + -0x8],RDI
MOV qword ptr [RBP + -0x10],RSI
CMP qword ptr [RBP + -0x10],0x0
JNZ 0x001284c8
JMP 0x00128556
LAB_001284c8:
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x2f0]
MOV ECX,dword ptr [RAX]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX],ECX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x2f0]
MOV RCX,qword ptr [RAX + 0x8]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x8],RCX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x2f0]
MOV RCX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x10],RCX
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x4],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x18],0x0
MOV RAX,qword ptr [RBP + -0x10]
MOV qword ptr [RAX + 0x20],0x0
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x2f0]
MOV ECX,dword ptr [RAX + 0x30]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x28],ECX
MOV RAX,qword ptr [RBP + -0x8]
MOV RAX,qword ptr [RAX + 0x2f0]
MOV ECX,dword ptr [RAX + 0x34]
MOV RAX,qword ptr [RBP + -0x10]
MOV dword ptr [RAX + 0x2c],ECX
LAB_00128556:
POP RBP
RET
|
void mariadb_get_charset_info(long param_1,int4 *param_2)
{
if (param_2 != (int4 *)0x0) {
*param_2 = **(int4 **)(param_1 + 0x2f0);
*(int8 *)(param_2 + 2) = *(int8 *)(*(long *)(param_1 + 0x2f0) + 8);
*(int8 *)(param_2 + 4) = *(int8 *)(*(long *)(param_1 + 0x2f0) + 0x10);
param_2[1] = 0;
*(int8 *)(param_2 + 6) = 0;
*(int8 *)(param_2 + 8) = 0;
param_2[10] = *(int4 *)(*(long *)(param_1 + 0x2f0) + 0x30);
param_2[0xb] = *(int4 *)(*(long *)(param_1 + 0x2f0) + 0x34);
}
return;
}
| |
28,289 | 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>>>>>::get() | monkey531[P]llama/common/json.hpp | char_int_type get()
{
++position.chars_read_total;
++position.chars_read_current_line;
if (next_unget)
{
// just reset the next_unget variable and work with current
next_unget = false;
}
else
{
current = ia.get_character();
}
if (JSON_HEDLEY_LIKELY(current != char_traits<char_type>::eof()))
{
token_string.push_back(char_traits<char_type>::to_char_type(current));
}
if (current == '\n')
{
++position.lines_read;
position.chars_read_current_line = 0;
}
return current;
} | O0 | 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>>>>>::get():
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x20(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x20(%rax)
movq 0x28(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x28(%rax)
testb $0x1, 0x18(%rax)
je 0xdef9c
movq 0x10(%rsp), %rax
movb $0x0, 0x18(%rax)
jmp 0xdefb0
movq 0x10(%rsp), %rdi
callq 0xdf110
movl %eax, %ecx
movq 0x10(%rsp), %rax
movl %ecx, 0x14(%rax)
movq 0x10(%rsp), %rax
movl 0x14(%rax), %eax
movl %eax, 0xc(%rsp)
callq 0xd8f20
movl %eax, %ecx
movl 0xc(%rsp), %eax
cmpl %ecx, %eax
setne %al
xorb $-0x1, %al
xorb $-0x1, %al
testb $0x1, %al
jne 0xdefd6
jmp 0xdf001
movq 0x10(%rsp), %rdi
movq %rdi, %rax
addq $0x38, %rax
movq %rax, (%rsp)
addq $0x14, %rdi
callq 0xd8f10
movq (%rsp), %rdi
movb %al, 0x1f(%rsp)
leaq 0x1f(%rsp), %rsi
callq 0x912b0
movq 0x10(%rsp), %rax
cmpl $0xa, 0x14(%rax)
jne 0xdf025
movq 0x10(%rsp), %rax
movq 0x30(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x30(%rax)
movq $0x0, 0x28(%rax)
movq 0x10(%rsp), %rax
movl 0x14(%rax), %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
| _ZN8nlohmann16json_abi_v3_11_36detail5lexerINS0_10basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE3getEv:
sub rsp, 28h
mov [rsp+28h+var_8], rdi
mov rax, [rsp+28h+var_8]
mov [rsp+28h+var_18], rax
mov rcx, [rax+20h]
add rcx, 1
mov [rax+20h], rcx
mov rcx, [rax+28h]
add rcx, 1
mov [rax+28h], rcx
test byte ptr [rax+18h], 1
jz short loc_DEF9C
mov rax, [rsp+28h+var_18]
mov byte ptr [rax+18h], 0
jmp short loc_DEFB0
loc_DEF9C:
mov rdi, [rsp+28h+var_18]
call _ZN8nlohmann16json_abi_v3_11_36detail22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEE13get_characterEv; nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>::get_character(void)
mov ecx, eax
mov rax, [rsp+28h+var_18]
mov [rax+14h], ecx
loc_DEFB0:
mov rax, [rsp+28h+var_18]
mov eax, [rax+14h]
mov [rsp+28h+var_1C], eax
call _ZNSt11char_traitsIcE3eofEv; std::char_traits<char>::eof(void)
mov ecx, eax
mov eax, [rsp+28h+var_1C]
cmp eax, ecx
setnz al
xor al, 0FFh
xor al, 0FFh
test al, 1
jnz short loc_DEFD6
jmp short loc_DF001
loc_DEFD6:
mov rdi, [rsp+28h+var_18]
mov rax, rdi
add rax, 38h ; '8'
mov [rsp+28h+var_28], rax
add rdi, 14h
call _ZNSt11char_traitsIcE12to_char_typeERKi; std::char_traits<char>::to_char_type(int const&)
mov rdi, [rsp+28h+var_28]
mov [rsp+28h+var_9], al
lea rsi, [rsp+28h+var_9]
call _ZNSt6vectorIcSaIcEE9push_backEOc; std::vector<char>::push_back(char &&)
loc_DF001:
mov rax, [rsp+28h+var_18]
cmp dword ptr [rax+14h], 0Ah
jnz short loc_DF025
mov rax, [rsp+28h+var_18]
mov rcx, [rax+30h]
add rcx, 1
mov [rax+30h], rcx
mov qword ptr [rax+28h], 0
loc_DF025:
mov rax, [rsp+28h+var_18]
mov eax, [rax+14h]
add rsp, 28h
retn
| long long nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::get(
long long a1)
{
int v2; // [rsp+Ch] [rbp-1Ch]
char v3; // [rsp+1Fh] [rbp-9h] BYREF
long long v4; // [rsp+20h] [rbp-8h]
v4 = a1;
++*(_QWORD *)(a1 + 32);
++*(_QWORD *)(a1 + 40);
if ( (*(_BYTE *)(a1 + 24) & 1) != 0 )
*(_BYTE *)(a1 + 24) = 0;
else
*(_DWORD *)(a1 + 20) = nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>::get_character(a1);
v2 = *(_DWORD *)(a1 + 20);
if ( v2 != (unsigned int)std::char_traits<char>::eof() )
{
v3 = std::char_traits<char>::to_char_type((unsigned int *)(a1 + 20));
std::vector<char>::push_back(a1 + 56, (long long)&v3);
}
if ( *(_DWORD *)(a1 + 20) == 10 )
{
++*(_QWORD *)(a1 + 48);
*(_QWORD *)(a1 + 40) = 0LL;
}
return *(unsigned int *)(a1 + 20);
}
| get:
SUB RSP,0x28
MOV qword ptr [RSP + 0x20],RDI
MOV RAX,qword ptr [RSP + 0x20]
MOV qword ptr [RSP + 0x10],RAX
MOV RCX,qword ptr [RAX + 0x20]
ADD RCX,0x1
MOV qword ptr [RAX + 0x20],RCX
MOV RCX,qword ptr [RAX + 0x28]
ADD RCX,0x1
MOV qword ptr [RAX + 0x28],RCX
TEST byte ptr [RAX + 0x18],0x1
JZ 0x001def9c
MOV RAX,qword ptr [RSP + 0x10]
MOV byte ptr [RAX + 0x18],0x0
JMP 0x001defb0
LAB_001def9c:
MOV RDI,qword ptr [RSP + 0x10]
CALL 0x001df110
MOV ECX,EAX
MOV RAX,qword ptr [RSP + 0x10]
MOV dword ptr [RAX + 0x14],ECX
LAB_001defb0:
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX + 0x14]
MOV dword ptr [RSP + 0xc],EAX
CALL 0x001d8f20
MOV ECX,EAX
MOV EAX,dword ptr [RSP + 0xc]
CMP EAX,ECX
SETNZ AL
XOR AL,0xff
XOR AL,0xff
TEST AL,0x1
JNZ 0x001defd6
JMP 0x001df001
LAB_001defd6:
MOV RDI,qword ptr [RSP + 0x10]
MOV RAX,RDI
ADD RAX,0x38
MOV qword ptr [RSP],RAX
ADD RDI,0x14
CALL 0x001d8f10
MOV RDI,qword ptr [RSP]
MOV byte ptr [RSP + 0x1f],AL
LEA RSI,[RSP + 0x1f]
CALL 0x001912b0
LAB_001df001:
MOV RAX,qword ptr [RSP + 0x10]
CMP dword ptr [RAX + 0x14],0xa
JNZ 0x001df025
MOV RAX,qword ptr [RSP + 0x10]
MOV RCX,qword ptr [RAX + 0x30]
ADD RCX,0x1
MOV qword ptr [RAX + 0x30],RCX
MOV qword ptr [RAX + 0x28],0x0
LAB_001df025:
MOV RAX,qword ptr [RSP + 0x10]
MOV EAX,dword ptr [RAX + 0x14]
ADD RSP,0x28
RET
|
/* nlohmann::json_abi_v3_11_3::detail::lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void>,
nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char
const*, std::__cxx11::string > > >::get() */
int4 __thiscall
nlohmann::json_abi_v3_11_3::detail::
lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
::get(lexer<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>>
*this)
{
int iVar1;
int4 uVar2;
int iVar3;
char local_9;
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>>>
*local_8;
*(long *)(this + 0x20) = *(long *)(this + 0x20) + 1;
*(long *)(this + 0x28) = *(long *)(this + 0x28) + 1;
local_8 = this;
if (((byte)this[0x18] & 1) == 0) {
uVar2 = iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>::
get_character((iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>
*)this);
*(int4 *)(this + 0x14) = uVar2;
}
else {
this[0x18] = (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>>>
)0x0;
}
iVar1 = *(int *)(this + 0x14);
iVar3 = std::char_traits<char>::eof();
if (iVar1 != iVar3) {
local_9 = std::char_traits<char>::to_char_type((int *)(this + 0x14));
std::vector<char,std::allocator<char>>::push_back
((vector<char,std::allocator<char>> *)(this + 0x38),&local_9);
}
if (*(int *)(this + 0x14) == 10) {
*(long *)(this + 0x30) = *(long *)(this + 0x30) + 1;
*(int8 *)(this + 0x28) = 0;
}
return *(int4 *)(this + 0x14);
}
| |
28,290 | unicode_get_short_code | bluesky950520[P]quickjs/libunicode.c | static uint32_t unicode_get_short_code(uint32_t c)
{
static const uint16_t unicode_short_table[2] = { 0x2044, 0x2215 };
if (c < 0x80)
return c;
else if (c < 0x80 + 0x50)
return c - 0x80 + 0x300;
else
return unicode_short_table[c - 0x80 - 0x50];
} | O2 | c | unicode_get_short_code:
movl %edi, %eax
cmpl $0x80, %edi
jb 0x810df
cmpl $0xcf, %eax
ja 0x810e0
addl $0x280, %eax # imm = 0x280
retq
addl $0xffffff30, %eax # imm = 0xFFFFFF30
leaq 0x12d64(%rip), %rcx # 0x93e50
movzwl (%rcx,%rax,2), %eax
retq
| unicode_get_short_code:
mov eax, edi
cmp edi, 80h
jb short locret_810DF
cmp eax, 0CFh
ja short loc_810E0
add eax, 280h
locret_810DF:
retn
loc_810E0:
add eax, 0FFFFFF30h
lea rcx, unicode_get_short_code_unicode_short_table
movzx eax, word ptr [rcx+rax*2]
retn
| long long unicode_get_short_code(unsigned int a1)
{
long long result; // rax
result = a1;
if ( a1 >= 0x80 )
{
if ( a1 > 0xCF )
return unicode_get_short_code_unicode_short_table[a1 - 208];
else
return a1 + 640;
}
return result;
}
| unicode_get_short_code:
MOV EAX,EDI
CMP EDI,0x80
JC 0x001810df
CMP EAX,0xcf
JA 0x001810e0
ADD EAX,0x280
LAB_001810df:
RET
LAB_001810e0:
ADD EAX,0xffffff30
LEA RCX,[0x193e50]
MOVZX EAX,word ptr [RCX + RAX*0x2]
RET
|
uint unicode_get_short_code(uint param_1)
{
if (0x7f < param_1) {
if (0xcf < param_1) {
return (uint)*(ushort *)
((long)&unicode_get_short_code_unicode_short_table + (ulong)(param_1 - 0xd0) * 2
);
}
param_1 = param_1 + 0x280;
}
return param_1;
}
| |
28,291 | 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>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>, bool, nlohmann::json_abi_v3_11_3::detail::value_t)::'lambda'(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&)::operator()(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&) const | monkey531[P]llama/common/json.hpp | value_type const& operator*() const
{
return value_ref ? *value_ref : owned_value;
} | O2 | cpp | nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>>>, bool, nlohmann::json_abi_v3_11_3::detail::value_t)::'lambda'(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&)::operator()(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> const&) const:
pushq %rbx
movq 0x10(%rsi), %rdi
testq %rdi, %rdi
cmoveq %rsi, %rdi
cmpb $0x2, (%rdi)
jne 0x78c0f
movq %rsi, %rbx
callq 0x42772
cmpq $0x2, %rax
jne 0x78c0f
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
cmoveq %rbx, %rdi
xorl %esi, %esi
callq 0x78c14
cmpb $0x3, (%rax)
sete %al
jmp 0x78c11
xorl %eax, %eax
popq %rbx
retq
nop
| _ZZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC1ESt16initializer_listINS0_6detail8json_refISD_EEEbNSF_7value_tEENKUlRKSH_E_clESL_:
push rbx
mov rdi, [rsi+10h]
test rdi, rdi
cmovz rdi, rsi
cmp byte ptr [rdi], 2
jnz short loc_78C0F
mov rbx, rsi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4sizeEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::size(void)
cmp rax, 2
jnz short loc_78C0F
mov rdi, [rbx+10h]
test rdi, rdi
cmovz rdi, rbx
xor esi, esi
call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEixEm; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::operator[](ulong)
cmp byte ptr [rax], 3
setz al
jmp short loc_78C11
loc_78C0F:
xor eax, eax
loc_78C11:
pop rbx
retn
| bool nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)::{lambda(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>> const&)#1}::operator()(
long long a1,
long long a2)
{
unsigned __int8 *v2; // rdi
long long v3; // rdi
v2 = *(unsigned __int8 **)(a2 + 16);
if ( !v2 )
v2 = (unsigned __int8 *)a2;
if ( *v2 != 2
|| nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::size(v2) != 2 )
{
return 0;
}
v3 = *(_QWORD *)(a2 + 16);
if ( !v3 )
v3 = a2;
return *(_BYTE *)nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::operator[](
v3,
0LL) == 3;
}
| operator():
PUSH RBX
MOV RDI,qword ptr [RSI + 0x10]
TEST RDI,RDI
CMOVZ RDI,RSI
CMP byte ptr [RDI],0x2
JNZ 0x00178c0f
MOV RBX,RSI
CALL 0x00142772
CMP RAX,0x2
JNZ 0x00178c0f
MOV RDI,qword ptr [RBX + 0x10]
TEST RDI,RDI
CMOVZ RDI,RBX
XOR ESI,ESI
CALL 0x00178c14
CMP byte ptr [RAX],0x3
SETZ AL
JMP 0x00178c11
LAB_00178c0f:
XOR EAX,EAX
LAB_00178c11:
POP RBX
RET
|
/* nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector,
std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >,
void>::basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> > >, bool,
nlohmann::json_abi_v3_11_3::detail::value_t)::{lambda(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> >
const&)#1}::TEMPNAMEPLACEHOLDERVALUE(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,
std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator,
nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned
char> >, void> > const&) const */
bool __thiscall
nlohmann::json_abi_v3_11_3::
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::
basic_json(std::initializer_list<nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>,bool,nlohmann::json_abi_v3_11_3::detail::value_t)
::
{lambda(nlohmann::json_abi_v3_11_3::detail::json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>const&)#1}
::operator()(_lambda_nlohmann__json_abi_v3_11_3__detail__json_ref<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>const___1_
*this,json_ref *param_1)
{
long lVar1;
char *pcVar2;
basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*pbVar3;
pbVar3 = *(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(param_1 + 0x10);
if (*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(param_1 + 0x10) ==
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)0x0) {
pbVar3 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)param_1;
}
if ((*pbVar3 ==
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
)0x2) && (lVar1 = size(pbVar3), lVar1 == 2)) {
pbVar3 = *(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(param_1 + 0x10);
if (*(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
**)(param_1 + 0x10) ==
(basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)0x0) {
pbVar3 = (basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
*)param_1;
}
pcVar2 = (char *)basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>
::operator[](pbVar3,0);
return *pcVar2 == '\x03';
}
return false;
}
| |
28,292 | transid_store_packed | eloqsql/storage/maria/ma_key.c | uint transid_store_packed(MARIA_HA *info, uchar *to, ulonglong trid)
{
uchar *start;
uint length;
uchar buff[8];
DBUG_ASSERT(trid < (1LL << (MARIA_MAX_PACK_TRANSID_SIZE*8)));
DBUG_ASSERT(trid >= info->s->state.create_trid);
trid= (trid - info->s->state.create_trid) << 1;
/* Mark that key contains transid */
to[-1]|= 1;
if (trid < MARIA_MIN_TRANSID_PACK_OFFSET)
{
to[0]= (uchar) trid;
return 1;
}
start= to;
/* store things in low-byte-first-order in buff */
to= buff;
do
{
*to++= (uchar) trid;
trid= trid>>8;
} while (trid);
length= (uint) (to - buff);
/* Store length prefix */
start[0]= (uchar) (length + MARIA_TRANSID_PACK_OFFSET);
start++;
/* Copy things in high-byte-first order to output buffer */
do
{
*start++= *--to;
} while (to != buff);
return length+1;
} | O3 | c | transid_store_packed:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %fs:0x28, %rax
movq %rax, -0x8(%rbp)
movq (%rdi), %rax
subq 0xe0(%rax), %rdx
addq %rdx, %rdx
orb $0x1, -0x1(%rsi)
cmpq $0xf3, %rdx
jae 0x32bb8
movb %dl, (%rsi)
movl $0x1, %eax
jmp 0x32bef
xorl %eax, %eax
movq %rdx, %rcx
movb %dl, -0x10(%rbp,%rax)
shrq $0x8, %rcx
incq %rax
cmpq $0xff, %rdx
movq %rcx, %rdx
ja 0x32bbd
leal -0x7(%rax), %ecx
movb %cl, (%rsi)
incq %rsi
movq %rax, %rcx
movb -0x11(%rbp,%rcx), %dl
movb %dl, (%rsi)
incq %rsi
decq %rcx
jne 0x32bdf
incl %eax
movq %fs:0x28, %rcx
cmpq -0x8(%rbp), %rcx
jne 0x32c04
addq $0x10, %rsp
popq %rbp
retq
callq 0x29260
| transid_store_packed:
push rbp
mov rbp, rsp
sub rsp, 10h
mov rax, fs:28h
mov [rbp+var_8], rax
mov rax, [rdi]
sub rdx, [rax+0E0h]
add rdx, rdx
or byte ptr [rsi-1], 1
cmp rdx, 0F3h
jnb short loc_32BB8
mov [rsi], dl
mov eax, 1
jmp short loc_32BEF
loc_32BB8:
xor eax, eax
mov rcx, rdx
loc_32BBD:
mov [rbp+rax+var_10], dl
shr rcx, 8
inc rax
cmp rdx, 0FFh
mov rdx, rcx
ja short loc_32BBD
lea ecx, [rax-7]
mov [rsi], cl
inc rsi
mov rcx, rax
loc_32BDF:
mov dl, [rbp+rcx+var_11]
mov [rsi], dl
inc rsi
dec rcx
jnz short loc_32BDF
inc eax
loc_32BEF:
mov rcx, fs:28h
cmp rcx, [rbp+var_8]
jnz short loc_32C04
add rsp, 10h
pop rbp
retn
loc_32C04:
call ___stack_chk_fail
| long long transid_store_packed(long long a1, _BYTE *a2, long long a3)
{
unsigned long long v3; // rdx
long long v5; // rax
unsigned long long v6; // rcx
bool v7; // cc
_BYTE *v8; // rsi
long long v9; // rcx
_BYTE v10[9]; // [rsp+1h] [rbp-11h]
unsigned long long v11; // [rsp+Ah] [rbp-8h]
v11 = __readfsqword(0x28u);
v3 = 2 * (a3 - *(_QWORD *)(*(_QWORD *)a1 + 224LL));
*(a2 - 1) |= 1u;
if ( v3 >= 0xF3 )
{
v5 = 0LL;
v6 = v3;
do
{
v10[v5 + 1] = v3;
v6 >>= 8;
++v5;
v7 = v3 <= 0xFF;
v3 = v6;
}
while ( !v7 );
*a2 = v5 - 7;
v8 = a2 + 1;
v9 = v5;
do
*v8++ = v10[v9--];
while ( v9 );
return (unsigned int)(v5 + 1);
}
else
{
*a2 = v3;
return 1LL;
}
}
| transid_store_packed:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x10
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RBP + -0x8],RAX
MOV RAX,qword ptr [RDI]
SUB RDX,qword ptr [RAX + 0xe0]
ADD RDX,RDX
OR byte ptr [RSI + -0x1],0x1
CMP RDX,0xf3
JNC 0x00132bb8
MOV byte ptr [RSI],DL
MOV EAX,0x1
JMP 0x00132bef
LAB_00132bb8:
XOR EAX,EAX
MOV RCX,RDX
LAB_00132bbd:
MOV byte ptr [RBP + RAX*0x1 + -0x10],DL
SHR RCX,0x8
INC RAX
CMP RDX,0xff
MOV RDX,RCX
JA 0x00132bbd
LEA ECX,[RAX + -0x7]
MOV byte ptr [RSI],CL
INC RSI
MOV RCX,RAX
LAB_00132bdf:
MOV DL,byte ptr [RBP + RCX*0x1 + -0x11]
MOV byte ptr [RSI],DL
INC RSI
DEC RCX
JNZ 0x00132bdf
INC EAX
LAB_00132bef:
MOV RCX,qword ptr FS:[0x28]
CMP RCX,qword ptr [RBP + -0x8]
JNZ 0x00132c04
ADD RSP,0x10
POP RBP
RET
LAB_00132c04:
CALL 0x00129260
|
int transid_store_packed(long *param_1,char *param_2,long param_3)
{
bool bVar1;
int iVar2;
long lVar3;
long lVar4;
ulong uVar5;
long in_FS_OFFSET;
int8 uStack_20;
char local_18 [8];
long local_10;
local_10 = *(long *)(in_FS_OFFSET + 0x28);
uVar5 = (param_3 - *(long *)(*param_1 + 0xe0)) * 2;
param_2[-1] = param_2[-1] | 1;
if (uVar5 < 0xf3) {
*param_2 = (char)uVar5;
iVar2 = 1;
}
else {
lVar3 = 0;
do {
lVar4 = lVar3;
local_18[lVar4] = (char)uVar5;
lVar3 = lVar4 + 1;
bVar1 = 0xff < uVar5;
uVar5 = uVar5 >> 8;
} while (bVar1);
*param_2 = (char)lVar4 + -6;
param_2 = param_2 + 1;
lVar4 = lVar3;
do {
*param_2 = local_18[lVar4 + -1];
param_2 = param_2 + 1;
lVar4 = lVar4 + -1;
} while (lVar4 != 0);
iVar2 = (int)lVar3 + 1;
}
if (*(long *)(in_FS_OFFSET + 0x28) == local_10) {
return iVar2;
}
/* WARNING: Subroutine does not return */
uStack_20 = transid_get_packed;
__stack_chk_fail();
}
| |
28,293 | my_numchars_mb | eloqsql/strings/ctype-mb.c | size_t my_numchars_mb(CHARSET_INFO *cs __attribute__((unused)),
const char *pos, const char *end)
{
register size_t count= 0;
while (pos < end)
{
uint mb_len;
pos+= (mb_len= my_ismbchar(cs,pos,end)) ? mb_len : 1;
count++;
}
return count;
} | O0 | c | my_numchars_mb:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
movq -0x10(%rbp), %rax
cmpq -0x18(%rbp), %rax
jae 0x9f74f
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x9ec10
movl %eax, -0x24(%rbp)
cmpl $0x0, %eax
je 0x9f727
movl -0x24(%rbp), %eax
movl %eax, -0x28(%rbp)
jmp 0x9f731
movl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x9f731
movl -0x28(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, -0x10(%rbp)
movq -0x20(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x20(%rbp)
jmp 0x9f6fc
movq -0x20(%rbp), %rax
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
| my_numchars_mb:
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], 0
loc_9F6FC:
mov rax, [rbp+var_10]
cmp rax, [rbp+var_18]
jnb short loc_9F74F
mov rdi, [rbp+var_8]
mov rsi, [rbp+var_10]
mov rdx, [rbp+var_18]
call my_ismbchar_0
mov [rbp+var_24], eax
cmp eax, 0
jz short loc_9F727
mov eax, [rbp+var_24]
mov [rbp+var_28], eax
jmp short loc_9F731
loc_9F727:
mov eax, 1
mov [rbp+var_28], eax
jmp short $+2
loc_9F731:
mov ecx, [rbp+var_28]
mov rax, [rbp+var_10]
mov ecx, ecx
add rax, rcx
mov [rbp+var_10], rax
mov rax, [rbp+var_20]
add rax, 1
mov [rbp+var_20], rax
jmp short loc_9F6FC
loc_9F74F:
mov rax, [rbp+var_20]
add rsp, 30h
pop rbp
retn
| long long my_numchars_mb(long long a1, unsigned long long a2, unsigned long long a3)
{
unsigned int v4; // [rsp+8h] [rbp-28h]
unsigned int v5; // [rsp+Ch] [rbp-24h]
long long v6; // [rsp+10h] [rbp-20h]
v6 = 0LL;
while ( a2 < a3 )
{
v5 = my_ismbchar_0(a1, a2, a3);
if ( v5 )
v4 = v5;
else
v4 = 1;
a2 += v4;
++v6;
}
return v6;
}
| my_numchars_mb:
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],0x0
LAB_0019f6fc:
MOV RAX,qword ptr [RBP + -0x10]
CMP RAX,qword ptr [RBP + -0x18]
JNC 0x0019f74f
MOV RDI,qword ptr [RBP + -0x8]
MOV RSI,qword ptr [RBP + -0x10]
MOV RDX,qword ptr [RBP + -0x18]
CALL 0x0019ec10
MOV dword ptr [RBP + -0x24],EAX
CMP EAX,0x0
JZ 0x0019f727
MOV EAX,dword ptr [RBP + -0x24]
MOV dword ptr [RBP + -0x28],EAX
JMP 0x0019f731
LAB_0019f727:
MOV EAX,0x1
MOV dword ptr [RBP + -0x28],EAX
JMP 0x0019f731
LAB_0019f731:
MOV ECX,dword ptr [RBP + -0x28]
MOV RAX,qword ptr [RBP + -0x10]
MOV ECX,ECX
ADD RAX,RCX
MOV qword ptr [RBP + -0x10],RAX
MOV RAX,qword ptr [RBP + -0x20]
ADD RAX,0x1
MOV qword ptr [RBP + -0x20],RAX
JMP 0x0019f6fc
LAB_0019f74f:
MOV RAX,qword ptr [RBP + -0x20]
ADD RSP,0x30
POP RBP
RET
|
long my_numchars_mb(int8 param_1,ulong param_2,ulong param_3)
{
int4 local_30;
int8 local_28;
int8 local_18;
local_28 = 0;
for (local_18 = param_2; local_18 < param_3; local_18 = local_18 + local_30) {
local_30 = my_ismbchar(param_1,local_18,param_3);
if (local_30 == 0) {
local_30 = 1;
}
local_28 = local_28 + 1;
}
return local_28;
}
| |
28,294 | string_repeat(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long) | llama.cpp/common/common.cpp | std::string string_repeat(const std::string & str, size_t n) {
if (n == 0) {
return "";
}
std::string result;
result.reserve(str.length() * n);
for (size_t i = 0; i < n; ++i) {
result += str;
}
return result;
} | O3 | cpp | string_repeat(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long):
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
testq %rdx, %rdx
je 0xffcfc
movq %rdx, %r14
movq %rsi, %r15
movq $0x0, 0x8(%rbx)
movb $0x0, 0x10(%rbx)
movq 0x8(%rsi), %rsi
imulq %rdx, %rsi
movq %rbx, %rdi
callq 0x21e80
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbx, %rdi
callq 0x21560
decq %r14
jne 0xffce6
jmp 0xffd0e
leaq 0x29d76(%rip), %rdx # 0x129a79
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x3a58a
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0xffd1f
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0xffd36
movq (%r12), %rsi
incq %rsi
callq 0x21180
movq %r14, %rdi
callq 0x21b20
| _Z13string_repeatRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEm:
push r15
push r14
push r12
push rbx
push rax
mov rbx, rdi
lea r12, [rdi+10h]
mov [rdi], r12
test rdx, rdx
jz short loc_FFCFC
mov r14, rdx
mov r15, rsi
mov qword ptr [rbx+8], 0
mov byte ptr [rbx+10h], 0
mov rsi, [rsi+8]
imul rsi, rdx
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEm; std::string::reserve(ulong)
loc_FFCE6:
mov rsi, [r15]
mov rdx, [r15+8]
mov rdi, rbx
call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKcm; std::string::append(char const*,ulong)
dec r14
jnz short loc_FFCE6
jmp short loc_FFD0E
loc_FFCFC:
lea rdx, aExampleToolCal+1Dh; ""
mov rdi, rbx
mov rsi, rdx
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)
loc_FFD0E:
mov rax, rbx
add rsp, 8
pop rbx
pop r12
pop r14
pop r15
retn
jmp short $+2
loc_FFD1F:
mov r14, rax
mov rdi, [rbx]; void *
cmp rdi, r12
jz short loc_FFD36
mov rsi, [r12]
inc rsi; unsigned __int64
call __ZdlPvm; operator delete(void *,ulong)
loc_FFD36:
mov rdi, r14
call __Unwind_Resume
| long long string_repeat(long long a1, _QWORD *a2, long long a3)
{
long long v3; // r14
*(_QWORD *)a1 = a1 + 16;
if ( a3 )
{
v3 = a3;
*(_QWORD *)(a1 + 8) = 0LL;
*(_BYTE *)(a1 + 16) = 0;
std::string::reserve(a1, a3 * a2[1]);
do
{
std::string::append(a1, *a2, a2[1]);
--v3;
}
while ( v3 );
}
else
{
std::string::_M_construct<char const*>(a1, "", (long long)"");
}
return a1;
}
| string_repeat:
PUSH R15
PUSH R14
PUSH R12
PUSH RBX
PUSH RAX
MOV RBX,RDI
LEA R12,[RDI + 0x10]
MOV qword ptr [RDI],R12
TEST RDX,RDX
JZ 0x001ffcfc
MOV R14,RDX
MOV R15,RSI
MOV qword ptr [RBX + 0x8],0x0
MOV byte ptr [RBX + 0x10],0x0
MOV RSI,qword ptr [RSI + 0x8]
IMUL RSI,RDX
LAB_001ffcde:
MOV RDI,RBX
CALL 0x00121e80
LAB_001ffce6:
MOV RSI,qword ptr [R15]
MOV RDX,qword ptr [R15 + 0x8]
LAB_001ffced:
MOV RDI,RBX
CALL 0x00121560
LAB_001ffcf5:
DEC R14
JNZ 0x001ffce6
JMP 0x001ffd0e
LAB_001ffcfc:
LEA RDX,[0x229a79]
MOV RDI,RBX
MOV RSI,RDX
CALL 0x0013a58a
LAB_001ffd0e:
MOV RAX,RBX
ADD RSP,0x8
POP RBX
POP R12
POP R14
POP R15
RET
|
/* string_repeat(std::__cxx11::string const&, unsigned long) */
string * string_repeat(string *param_1,ulong param_2)
{
long in_RDX;
*(string **)param_1 = param_1 + 0x10;
if (in_RDX == 0) {
std::__cxx11::string::_M_construct<char_const*>(param_1,"");
}
else {
*(int8 *)(param_1 + 8) = 0;
param_1[0x10] = (string)0x0;
/* try { // try from 001ffcde to 001ffce5 has its CatchHandler @ 001ffd1d */
std::__cxx11::string::reserve((ulong)param_1);
do {
/* try { // try from 001ffced to 001ffcf4 has its CatchHandler @ 001ffd1f */
std::__cxx11::string::append((char *)param_1,*(ulong *)param_2);
in_RDX = in_RDX + -1;
} while (in_RDX != 0);
}
return param_1;
}
| |
28,295 | HeapPrintStatus | seiftnesse[P]memoryallocator/src/custom_alloc_debug.c | void HeapPrintStatus() {
if (!heap_initialized) {
HEAP_LOG("Heap not initialized\n");
return;
}
#ifdef CUSTOM_ALLOC_ENABLE_LOGGING
if (heap_log_function) {
heap_log_function("=== Memory Allocator Status ===\n");
heap_log_function("Total allocated: %zu bytes\n", allocation_stats.total_allocated);
heap_log_function("Total freed: %zu bytes\n", allocation_stats.total_freed);
heap_log_function("Active allocations: %zu\n", allocation_stats.allocation_count);
heap_log_function("Peak memory usage: %zu bytes\n", allocation_stats.peak_allocation);
heap_log_function("Small pool usage: %zu/%zu bytes\n", allocation_stats.small_pool_used, SMALL_POOL_SIZE);
heap_log_function("Fragmentation: %.2f%%\n", HeapGetFragmentation() * 100.0f);
// Add zero-on-free configuration to status report
const char* depth_str;
switch (zero_on_free_depth) {
case ZERO_DEPTH_NONE:
depth_str = "none (best performance)";
break;
case ZERO_DEPTH_SHALLOW:
depth_str = "shallow (headers/pointers only)";
break;
case ZERO_DEPTH_MEDIUM:
depth_str = "medium (50% of memory)";
break;
case ZERO_DEPTH_DEEP:
depth_str = "deep (entire memory block)";
break;
default:
depth_str = "unknown";
}
heap_log_function("Zero-on-free depth: %s\n", depth_str);
if (zero_on_free_depth == ZERO_DEPTH_SHALLOW) {
heap_log_function("Shallow zero size: %zu bytes\n", shallow_zero_size);
}
if (track_allocations) {
heap_log_function("\n=== Active Allocations ===\n");
segment_t *s = segments;
while (s) {
if (!s->is_free) {
if (s->allocation_file) {
heap_log_function("ID: %u, Size: %d blocks, Location: %s:%d\n",
s->allocation_id, s->size, s->allocation_file, s->allocation_line);
} else {
heap_log_function("ID: %u, Size: %d blocks, Location: unknown\n",
s->allocation_id, s->size);
}
}
s = s->next;
}
}
heap_log_function("==============================\n");
}
#endif
} | O1 | c | HeapPrintStatus:
retq
| HeapPrintStatus:
retn
| void HeapPrintStatus()
{
;
}
| HeapPrintStatus:
RET
|
void HeapPrintStatus(void)
{
return;
}
| |
28,296 | HeapPrintStatus | seiftnesse[P]memoryallocator/src/custom_alloc_debug.c | void HeapPrintStatus() {
if (!heap_initialized) {
HEAP_LOG("Heap not initialized\n");
return;
}
#ifdef CUSTOM_ALLOC_ENABLE_LOGGING
if (heap_log_function) {
heap_log_function("=== Memory Allocator Status ===\n");
heap_log_function("Total allocated: %zu bytes\n", allocation_stats.total_allocated);
heap_log_function("Total freed: %zu bytes\n", allocation_stats.total_freed);
heap_log_function("Active allocations: %zu\n", allocation_stats.allocation_count);
heap_log_function("Peak memory usage: %zu bytes\n", allocation_stats.peak_allocation);
heap_log_function("Small pool usage: %zu/%zu bytes\n", allocation_stats.small_pool_used, SMALL_POOL_SIZE);
heap_log_function("Fragmentation: %.2f%%\n", HeapGetFragmentation() * 100.0f);
// Add zero-on-free configuration to status report
const char* depth_str;
switch (zero_on_free_depth) {
case ZERO_DEPTH_NONE:
depth_str = "none (best performance)";
break;
case ZERO_DEPTH_SHALLOW:
depth_str = "shallow (headers/pointers only)";
break;
case ZERO_DEPTH_MEDIUM:
depth_str = "medium (50% of memory)";
break;
case ZERO_DEPTH_DEEP:
depth_str = "deep (entire memory block)";
break;
default:
depth_str = "unknown";
}
heap_log_function("Zero-on-free depth: %s\n", depth_str);
if (zero_on_free_depth == ZERO_DEPTH_SHALLOW) {
heap_log_function("Shallow zero size: %zu bytes\n", shallow_zero_size);
}
if (track_allocations) {
heap_log_function("\n=== Active Allocations ===\n");
segment_t *s = segments;
while (s) {
if (!s->is_free) {
if (s->allocation_file) {
heap_log_function("ID: %u, Size: %d blocks, Location: %s:%d\n",
s->allocation_id, s->size, s->allocation_file, s->allocation_line);
} else {
heap_log_function("ID: %u, Size: %d blocks, Location: unknown\n",
s->allocation_id, s->size);
}
}
s = s->next;
}
}
heap_log_function("==============================\n");
}
#endif
} | O3 | c | HeapPrintStatus:
retq
| HeapPrintStatus:
retn
| void HeapPrintStatus()
{
;
}
| HeapPrintStatus:
RET
|
void HeapPrintStatus(void)
{
return;
}
| |
28,297 | bicubic_resize(clip_image_u8 const&, clip_image_u8&, int, int) | llama.cpp/examples/llava/clip.cpp | static bool bicubic_resize(const clip_image_u8 &img, clip_image_u8 &dst, int target_width, int target_height) {
const int nx = img.nx;
const int ny = img.ny;
dst.nx = target_width;
dst.ny = target_height;
dst.buf.resize(3 * target_width * target_height);
float Cc;
float C[5];
float d0, d2, d3, a0, a1, a2, a3;
int i, j, k, jj;
int x, y;
float dx, dy;
float tx, ty;
tx = (float)nx / (float)target_width;
ty = (float)ny / (float)target_height;
// Bicubic interpolation; adapted from ViT.cpp, inspired from :
// -> https://github.com/yglukhov/bicubic-interpolation-image-processing/blob/master/libimage.c#L36
// -> https://en.wikipedia.org/wiki/Bicubic_interpolation
for (i = 0; i < target_height; i++) {
for (j = 0; j < target_width; j++) {
x = (int)(tx * j);
y = (int)(ty * i);
dx = tx * j - x;
dy = ty * i - y;
for (k = 0; k < 3; k++) {
for (jj = 0; jj <= 3; jj++) {
d0 = img.buf[(clip(y - 1 + jj, 0, ny - 1) * nx + clip(x - 1, 0, nx - 1)) * 3 + k] - img.buf[(clip(y - 1 + jj, 0, ny - 1) * nx + clip(x, 0, nx - 1)) * 3 + k];
d2 = img.buf[(clip(y - 1 + jj, 0, ny - 1) * nx + clip(x + 1, 0, nx - 1)) * 3 + k] - img.buf[(clip(y - 1 + jj, 0, ny - 1) * nx + clip(x, 0, nx - 1)) * 3 + k];
d3 = img.buf[(clip(y - 1 + jj, 0, ny - 1) * nx + clip(x + 2, 0, nx - 1)) * 3 + k] - img.buf[(clip(y - 1 + jj, 0, ny - 1) * nx + clip(x, 0, nx - 1)) * 3 + k];
a0 = img.buf[(clip(y - 1 + jj, 0, ny - 1) * nx + clip(x, 0, nx - 1)) * 3 + k];
a1 = -1.0 / 3 * d0 + d2 - 1.0 / 6 * d3;
a2 = 1.0 / 2 * d0 + 1.0 / 2 * d2;
a3 = -1.0 / 6 * d0 - 1.0 / 2 * d2 + 1.0 / 6 * d3;
C[jj] = a0 + a1 * dx + a2 * dx * dx + a3 * dx * dx * dx;
d0 = C[0] - C[1];
d2 = C[2] - C[1];
d3 = C[3] - C[1];
a0 = C[1];
a1 = -1.0 / 3 * d0 + d2 - 1.0 / 6 * d3;
a2 = 1.0 / 2 * d0 + 1.0 / 2 * d2;
a3 = -1.0 / 6 * d0 - 1.0 / 2 * d2 + 1.0 / 6 * d3;
Cc = a0 + a1 * dy + a2 * dy * dy + a3 * dy * dy * dy;
const uint8_t Cc2 = std::min(std::max(std::round(Cc), 0.0f), 255.0f);
dst.buf[(i * target_width + j) * 3 + k] = float(Cc2);
}
}
}
}
return true;
} | O3 | cpp | bicubic_resize(clip_image_u8 const&, clip_image_u8&, int, int):
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movl %ecx, %ebp
movq %rsi, %rcx
movl (%rdi), %ebx
movq %rdi, 0x68(%rsp)
movl 0x4(%rdi), %r14d
movl %edx, (%rsi)
movl %ebp, 0x4(%rsi)
addq $0x8, %rcx
movl %edx, 0xc(%rsp)
movl %edx, %eax
imull %ebp, %eax
leal (%rax,%rax,2), %eax
movslq %eax, %rsi
movq %rcx, 0x70(%rsp)
movq %rcx, %rdi
callq 0x4ba90
testl %ebp, %ebp
jle 0x3335d
cvtsi2ss %ebx, %xmm1
movl 0xc(%rsp), %eax
cvtsi2ss %eax, %xmm0
cvtsi2ss %r14d, %xmm2
divss %xmm0, %xmm1
movss %xmm1, 0x24(%rsp)
xorps %xmm0, %xmm0
cvtsi2ss %ebp, %xmm0
divss %xmm0, %xmm2
movss %xmm2, 0x1c(%rsp)
decl %r14d
leal -0x1(%rbx), %ecx
movl %ecx, 0x20(%rsp)
movl %eax, %eax
movq %rax, 0x28(%rsp)
movl %ebp, %eax
movq %rax, 0x48(%rsp)
xorl %ecx, %ecx
movsd 0x10555a(%rip), %xmm6 # 0x138538
movsd 0x10555a(%rip), %xmm7 # 0x138540
movsd 0x105559(%rip), %xmm8 # 0x138548
movsd 0x105558(%rip), %xmm9 # 0x138550
movq $0x0, 0x10(%rsp)
movq %rbx, 0x60(%rsp)
cmpl $0x0, 0xc(%rsp)
jle 0x33345
movq 0x10(%rsp), %rax
xorps %xmm10, %xmm10
cvtsi2ss %eax, %xmm10
mulss 0x1c(%rsp), %xmm10
cvttss2si %xmm10, %r9d
cvttps2dq %xmm10, %xmm0
cvtdq2ps %xmm0, %xmm0
subss %xmm0, %xmm10
decl %r9d
imulq 0x28(%rsp), %rax
movq %rax, 0x50(%rsp)
xorl %edx, %edx
movaps %xmm10, 0x90(%rsp)
movq %r9, 0x78(%rsp)
xorps %xmm11, %xmm11
cvtsi2ss %edx, %xmm11
mulss 0x24(%rsp), %xmm11
cvttss2si %xmm11, %edi
leal -0x1(%rdi), %r11d
movl 0x20(%rsp), %eax
cmpl %r11d, %eax
cmovll %eax, %r11d
testl %r11d, %r11d
cmovlel %ecx, %r11d
cmpl %edi, %eax
movl %edi, %r13d
cmovll %eax, %r13d
testl %r13d, %r13d
cmovlel %ecx, %r13d
leal 0x1(%rdi), %r8d
cmpl %r8d, %eax
cmovll %eax, %r8d
cvttps2dq %xmm11, %xmm0
testl %r8d, %r8d
cmovlel %ecx, %r8d
addl $0x2, %edi
cmpl %edi, %eax
cmovll %eax, %edi
cvtdq2ps %xmm0, %xmm0
testl %edi, %edi
cmovlel %ecx, %edi
subss %xmm0, %xmm11
movq 0x50(%rsp), %rax
movq %rdx, 0x58(%rsp)
addq %rdx, %rax
leaq (%rax,%rax,2), %rax
xorl %ebp, %ebp
movaps %xmm11, 0xa0(%rsp)
movq %rax, 0x88(%rsp)
movq %r11, 0x80(%rsp)
xorl %r12d, %r12d
leal (%r9,%r12), %eax
cmpl %eax, %r14d
cmovll %r14d, %eax
testl %eax, %eax
cmovlel %ecx, %eax
imull %ebx, %eax
leal (%rax,%r11), %ecx
leal (%rcx,%rcx,2), %ecx
addl %ebp, %ecx
movslq %ecx, %rdx
movq 0x68(%rsp), %rcx
movq 0x8(%rcx), %rcx
movzbl (%rcx,%rdx), %edx
leal (%rax,%r13), %esi
leal (%rsi,%rsi,2), %esi
addl %ebp, %esi
movslq %esi, %rsi
movzbl (%rcx,%rsi), %esi
subl %esi, %edx
xorps %xmm0, %xmm0
cvtsi2ss %edx, %xmm0
leal (%rax,%r8), %edx
leal (%rdx,%rdx,2), %edx
addl %ebp, %edx
movslq %edx, %rdx
movzbl (%rcx,%rdx), %edx
subl %esi, %edx
xorps %xmm1, %xmm1
cvtsi2ss %edx, %xmm1
addl %edi, %eax
leal (%rax,%rax,2), %eax
addl %ebp, %eax
cltq
movzbl (%rcx,%rax), %eax
subl %esi, %eax
xorps %xmm2, %xmm2
cvtsi2ss %eax, %xmm2
cvtsi2ss %esi, %xmm3
cvtss2sd %xmm0, %xmm0
cvtss2sd %xmm1, %xmm1
movaps %xmm0, %xmm4
mulsd %xmm6, %xmm4
addsd %xmm1, %xmm4
cvtss2sd %xmm2, %xmm2
movaps %xmm2, %xmm5
mulsd %xmm7, %xmm5
addsd %xmm4, %xmm5
xorps %xmm4, %xmm4
cvtsd2ss %xmm5, %xmm4
mulsd %xmm8, %xmm1
movaps %xmm0, %xmm5
mulsd %xmm8, %xmm5
addsd %xmm1, %xmm5
cvtsd2ss %xmm5, %xmm5
mulsd %xmm7, %xmm0
subsd %xmm1, %xmm0
mulsd %xmm9, %xmm2
addsd %xmm0, %xmm2
xorps %xmm0, %xmm0
cvtsd2ss %xmm2, %xmm0
mulss %xmm11, %xmm4
addss %xmm3, %xmm4
mulss %xmm11, %xmm5
mulss %xmm11, %xmm5
addss %xmm4, %xmm5
mulss %xmm11, %xmm0
mulss %xmm11, %xmm0
mulss %xmm11, %xmm0
addss %xmm5, %xmm0
movss %xmm0, 0x30(%rsp,%r12,4)
movss 0x30(%rsp), %xmm0
movss 0x34(%rsp), %xmm1
subss %xmm1, %xmm0
movss 0x38(%rsp), %xmm2
subss %xmm1, %xmm2
movss 0x3c(%rsp), %xmm3
subss %xmm1, %xmm3
cvtss2sd %xmm0, %xmm0
cvtss2sd %xmm2, %xmm2
movaps %xmm0, %xmm4
mulsd %xmm6, %xmm4
addsd %xmm2, %xmm4
cvtss2sd %xmm3, %xmm3
movaps %xmm3, %xmm5
mulsd %xmm7, %xmm5
addsd %xmm4, %xmm5
xorps %xmm4, %xmm4
cvtsd2ss %xmm5, %xmm4
mulsd %xmm8, %xmm2
movaps %xmm0, %xmm5
mulsd %xmm8, %xmm5
addsd %xmm2, %xmm5
cvtsd2ss %xmm5, %xmm5
mulsd %xmm7, %xmm0
subsd %xmm2, %xmm0
mulsd %xmm9, %xmm3
addsd %xmm0, %xmm3
xorps %xmm0, %xmm0
cvtsd2ss %xmm3, %xmm0
mulss %xmm10, %xmm4
addss %xmm1, %xmm4
mulss %xmm10, %xmm5
mulss %xmm10, %xmm5
addss %xmm4, %xmm5
mulss %xmm10, %xmm0
mulss %xmm10, %xmm0
mulss %xmm10, %xmm0
addss %xmm5, %xmm0
movq %rdi, %r15
movq %r8, %rbx
callq 0x23810
movq %rbx, %r8
movq 0x80(%rsp), %r11
movq %r15, %rdi
movaps 0xa0(%rsp), %xmm11
movq 0x78(%rsp), %r9
movaps 0x90(%rsp), %xmm10
movss 0x104891(%rip), %xmm2 # 0x137b58
movsd 0x105280(%rip), %xmm9 # 0x138550
movsd 0x10526f(%rip), %xmm8 # 0x138548
movsd 0x10525f(%rip), %xmm7 # 0x138540
movsd 0x10524f(%rip), %xmm6 # 0x138538
xorps %xmm1, %xmm1
maxss %xmm0, %xmm1
movaps %xmm2, %xmm0
minss %xmm1, %xmm0
cvttss2si %xmm0, %eax
movq 0x70(%rsp), %rcx
movq (%rcx), %rcx
addq %rbp, %rcx
movq 0x88(%rsp), %rdx
movb %al, (%rdx,%rcx)
xorl %ecx, %ecx
movq 0x60(%rsp), %rbx
incq %r12
cmpq $0x4, %r12
jne 0x330ec
incq %rbp
cmpq $0x3, %rbp
jne 0x330e9
movq 0x58(%rsp), %rdx
incq %rdx
cmpq 0x28(%rsp), %rdx
jne 0x33056
movq 0x10(%rsp), %rdx
incq %rdx
movq %rdx, 0x10(%rsp)
cmpq 0x48(%rsp), %rdx
jne 0x33006
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
| _ZL14bicubic_resizeRK13clip_image_u8RS_ii:
push rbp
push r15
push r14
push r13
push r12
push rbx
sub rsp, 0B8h
mov ebp, ecx
mov rcx, rsi
mov ebx, [rdi]
mov [rsp+0E8h+var_80], rdi
mov r14d, [rdi+4]
mov [rsi], edx
mov [rsi+4], ebp
add rcx, 8
mov [rsp+0E8h+var_DC], edx
mov eax, edx
imul eax, ebp
lea eax, [rax+rax*2]
movsxd rsi, eax
mov [rsp+0E8h+var_78], rcx
mov rdi, rcx
call _ZNSt6vectorIhSaIhEE6resizeEm; std::vector<uchar>::resize(ulong)
test ebp, ebp
jle loc_3335D
cvtsi2ss xmm1, ebx
mov eax, [rsp+0E8h+var_DC]
cvtsi2ss xmm0, eax
cvtsi2ss xmm2, r14d
divss xmm1, xmm0
movss [rsp+0E8h+var_C4], xmm1
xorps xmm0, xmm0
cvtsi2ss xmm0, ebp
divss xmm2, xmm0
movss [rsp+0E8h+var_CC], xmm2
dec r14d
lea ecx, [rbx-1]
mov [rsp+0E8h+var_C8], ecx
mov eax, eax
mov [rsp+0E8h+var_C0], rax
mov eax, ebp
mov [rsp+0E8h+var_A0], rax
xor ecx, ecx
movsd xmm6, cs:qword_138538
movsd xmm7, cs:qword_138540
movsd xmm8, cs:qword_138548
movsd xmm9, cs:qword_138550
mov [rsp+0E8h+var_D8], 0
mov [rsp+0E8h+var_88], rbx
loc_33006:
cmp [rsp+0E8h+var_DC], 0
jle loc_33345
mov rax, [rsp+0E8h+var_D8]
xorps xmm10, xmm10
cvtsi2ss xmm10, eax
mulss xmm10, [rsp+0E8h+var_CC]
cvttss2si r9d, xmm10
cvttps2dq xmm0, xmm10
cvtdq2ps xmm0, xmm0
subss xmm10, xmm0
dec r9d
imul rax, [rsp+0E8h+var_C0]
mov [rsp+0E8h+var_98], rax
xor edx, edx
movaps [rsp+0E8h+var_58], xmm10
mov [rsp+0E8h+var_70], r9
loc_33056:
xorps xmm11, xmm11
cvtsi2ss xmm11, edx
mulss xmm11, [rsp+0E8h+var_C4]
cvttss2si edi, xmm11
lea r11d, [rdi-1]
mov eax, [rsp+0E8h+var_C8]
cmp eax, r11d
cmovl r11d, eax
test r11d, r11d
cmovle r11d, ecx
cmp eax, edi
mov r13d, edi
cmovl r13d, eax
test r13d, r13d
cmovle r13d, ecx
lea r8d, [rdi+1]
cmp eax, r8d
cmovl r8d, eax
cvttps2dq xmm0, xmm11
test r8d, r8d
cmovle r8d, ecx
add edi, 2
cmp eax, edi
cmovl edi, eax
cvtdq2ps xmm0, xmm0
test edi, edi
cmovle edi, ecx
subss xmm11, xmm0
mov rax, [rsp+0E8h+var_98]
mov [rsp+0E8h+var_90], rdx
add rax, rdx
lea rax, [rax+rax*2]
xor ebp, ebp
movaps [rsp+0E8h+var_48], xmm11
mov [rsp+0E8h+var_60], rax
mov [rsp+0E8h+var_68], r11
loc_330E9:
xor r12d, r12d
loc_330EC:
lea eax, [r9+r12]
cmp r14d, eax
cmovl eax, r14d
test eax, eax
cmovle eax, ecx
imul eax, ebx
lea ecx, [rax+r11]
lea ecx, [rcx+rcx*2]
add ecx, ebp
movsxd rdx, ecx
mov rcx, [rsp+0E8h+var_80]
mov rcx, [rcx+8]
movzx edx, byte ptr [rcx+rdx]
lea esi, [rax+r13]
lea esi, [rsi+rsi*2]
add esi, ebp
movsxd rsi, esi
movzx esi, byte ptr [rcx+rsi]
sub edx, esi
xorps xmm0, xmm0
cvtsi2ss xmm0, edx
lea edx, [rax+r8]
lea edx, [rdx+rdx*2]
add edx, ebp
movsxd rdx, edx
movzx edx, byte ptr [rcx+rdx]
sub edx, esi
xorps xmm1, xmm1
cvtsi2ss xmm1, edx
add eax, edi
lea eax, [rax+rax*2]
add eax, ebp
cdqe
movzx eax, byte ptr [rcx+rax]
sub eax, esi
xorps xmm2, xmm2
cvtsi2ss xmm2, eax
cvtsi2ss xmm3, esi
cvtss2sd xmm0, xmm0
cvtss2sd xmm1, xmm1
movaps xmm4, xmm0
mulsd xmm4, xmm6
addsd xmm4, xmm1
cvtss2sd xmm2, xmm2
movaps xmm5, xmm2
mulsd xmm5, xmm7
addsd xmm5, xmm4
xorps xmm4, xmm4
cvtsd2ss xmm4, xmm5
mulsd xmm1, xmm8
movaps xmm5, xmm0
mulsd xmm5, xmm8
addsd xmm5, xmm1
cvtsd2ss xmm5, xmm5
mulsd xmm0, xmm7
subsd xmm0, xmm1
mulsd xmm2, xmm9
addsd xmm2, xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm2
mulss xmm4, xmm11
addss xmm4, xmm3
mulss xmm5, xmm11
mulss xmm5, xmm11
addss xmm5, xmm4
mulss xmm0, xmm11
mulss xmm0, xmm11
mulss xmm0, xmm11
addss xmm0, xmm5
movss [rsp+r12*4+0E8h+var_B8], xmm0
movss xmm0, [rsp+0E8h+var_B8]
movss xmm1, [rsp+0E8h+var_B4]
subss xmm0, xmm1
movss xmm2, [rsp+0E8h+var_B0]
subss xmm2, xmm1
movss xmm3, [rsp+0E8h+var_AC]
subss xmm3, xmm1
cvtss2sd xmm0, xmm0
cvtss2sd xmm2, xmm2
movaps xmm4, xmm0
mulsd xmm4, xmm6
addsd xmm4, xmm2
cvtss2sd xmm3, xmm3
movaps xmm5, xmm3
mulsd xmm5, xmm7
addsd xmm5, xmm4
xorps xmm4, xmm4
cvtsd2ss xmm4, xmm5
mulsd xmm2, xmm8
movaps xmm5, xmm0
mulsd xmm5, xmm8
addsd xmm5, xmm2
cvtsd2ss xmm5, xmm5
mulsd xmm0, xmm7
subsd xmm0, xmm2
mulsd xmm3, xmm9
addsd xmm3, xmm0
xorps xmm0, xmm0
cvtsd2ss xmm0, xmm3
mulss xmm4, xmm10
addss xmm4, xmm1
mulss xmm5, xmm10
mulss xmm5, xmm10
addss xmm5, xmm4
mulss xmm0, xmm10
mulss xmm0, xmm10
mulss xmm0, xmm10
addss xmm0, xmm5
mov r15, rdi
mov rbx, r8
call _roundf
mov r8, rbx
mov r11, [rsp+0E8h+var_68]
mov rdi, r15
movaps xmm11, [rsp+0E8h+var_48]
mov r9, [rsp+0E8h+var_70]
movaps xmm10, [rsp+0E8h+var_58]
movss xmm2, cs:dword_137B58
movsd xmm9, cs:qword_138550
movsd xmm8, cs:qword_138548
movsd xmm7, cs:qword_138540
movsd xmm6, cs:qword_138538
xorps xmm1, xmm1
maxss xmm1, xmm0
movaps xmm0, xmm2
minss xmm0, xmm1
cvttss2si eax, xmm0
mov rcx, [rsp+0E8h+var_78]
mov rcx, [rcx]
add rcx, rbp
mov rdx, [rsp+0E8h+var_60]
mov [rdx+rcx], al
xor ecx, ecx
mov rbx, [rsp+0E8h+var_88]
inc r12
cmp r12, 4
jnz loc_330EC
inc rbp
cmp rbp, 3
jnz loc_330E9
mov rdx, [rsp+0E8h+var_90]
inc rdx
cmp rdx, [rsp+0E8h+var_C0]
jnz loc_33056
loc_33345:
mov rdx, [rsp+0E8h+var_D8]
inc rdx
mov [rsp+0E8h+var_D8], rdx
cmp rdx, [rsp+0E8h+var_A0]
jnz loc_33006
loc_3335D:
add rsp, 0B8h
pop rbx
pop r12
pop r13
pop r14
pop r15
pop rbp
retn
| long long bicubic_resize(unsigned int *a1, int *a2, int a3, int a4)
{
long long v5; // rbx
int v6; // r14d
long long result; // rax
int v8; // r14d
int v9; // r9d
__m128 v10; // xmm10
long long v11; // r9
long long v12; // rdx
__m128 v13; // xmm11
int v14; // edi
long long v15; // r11
int v16; // r13d
long long v17; // r8
__m128i v18; // xmm0
int v19; // edi
float v20; // xmm0_4
long long v21; // rbp
long long i; // r12
int v23; // eax
int v24; // eax
long long v25; // rcx
int v26; // esi
float v27; // xmm0_4
int v28; // edx
int v29; // eax
double v30; // xmm0_8
double v31; // xmm1_8
float v32; // xmm4_4
double v33; // xmm1_8
float v34; // xmm5_4
double v35; // xmm0_8
double v36; // xmm2_8
float v37; // xmm4_4
double v38; // xmm2_8
float v39; // xmm5_4
long long v41; // [rsp+10h] [rbp-D8h]
float v42; // [rsp+1Ch] [rbp-CCh]
int v43; // [rsp+20h] [rbp-C8h]
float v44; // [rsp+24h] [rbp-C4h]
float v45; // [rsp+30h] [rbp-B8h]
float v46; // [rsp+34h] [rbp-B4h]
float v47; // [rsp+38h] [rbp-B0h]
float v48; // [rsp+3Ch] [rbp-ACh]
long long v49; // [rsp+48h] [rbp-A0h]
long long v50; // [rsp+50h] [rbp-98h]
long long v51; // [rsp+58h] [rbp-90h]
long long v52; // [rsp+60h] [rbp-88h]
unsigned int *v53; // [rsp+68h] [rbp-80h]
_QWORD *v54; // [rsp+70h] [rbp-78h]
long long v55; // [rsp+78h] [rbp-70h]
long long v56; // [rsp+80h] [rbp-68h]
long long v57; // [rsp+88h] [rbp-60h]
__m128 v58; // [rsp+90h] [rbp-58h]
__m128 v59; // [rsp+A0h] [rbp-48h]
v5 = *a1;
v53 = a1;
v6 = a1[1];
*a2 = a3;
a2[1] = a4;
v54 = a2 + 2;
result = std::vector<unsigned char>::resize(a2 + 2, 3 * a4 * a3);
if ( a4 > 0 )
{
v44 = (float)(int)v5 / (float)a3;
v42 = (float)v6 / (float)a4;
v8 = v6 - 1;
v43 = v5 - 1;
result = (unsigned int)a4;
v49 = (unsigned int)a4;
v41 = 0LL;
v52 = v5;
do
{
if ( a3 > 0 )
{
v10 = 0LL;
v10.m128_f32[0] = (float)(int)v41 * v42;
v9 = (int)v10.m128_f32[0];
v10.m128_f32[0] = v10.m128_f32[0] - _mm_cvtepi32_ps(_mm_cvttps_epi32(v10)).m128_f32[0];
v11 = (unsigned int)(v9 - 1);
v50 = (unsigned int)a3 * v41;
v12 = 0LL;
v58 = v10;
v55 = v11;
do
{
v13 = 0LL;
v13.m128_f32[0] = (float)(int)v12 * v44;
v14 = (int)v13.m128_f32[0];
v15 = (unsigned int)((int)v13.m128_f32[0] - 1);
if ( v43 < (int)v15 )
v15 = (unsigned int)v43;
if ( (int)v15 <= 0 )
v15 = 0LL;
v16 = (int)v13.m128_f32[0];
if ( v43 < v14 )
v16 = v43;
if ( v16 <= 0 )
v16 = 0;
v17 = (unsigned int)(v14 + 1);
if ( v43 < (int)v17 )
v17 = (unsigned int)v43;
v18 = _mm_cvttps_epi32(v13);
if ( (int)v17 <= 0 )
v17 = 0LL;
v19 = v14 + 2;
if ( v43 < v19 )
v19 = v43;
LODWORD(v20) = _mm_cvtepi32_ps(v18).m128_u32[0];
if ( v19 <= 0 )
v19 = 0;
v13.m128_f32[0] = v13.m128_f32[0] - v20;
v51 = v12;
v21 = 0LL;
v59 = v13;
v57 = 3 * (v12 + v50);
v56 = v15;
do
{
for ( i = 0LL; i != 4; ++i )
{
v23 = v11 + i;
if ( v8 < (int)v11 + (int)i )
v23 = v8;
if ( v23 <= 0 )
v23 = 0;
v24 = v5 * v23;
v25 = *((_QWORD *)v53 + 1);
v26 = *(unsigned __int8 *)(v25 + (int)v21 + 3 * (v24 + v16));
v27 = (float)(*(unsigned __int8 *)(v25 + (int)v21 + 3 * (v24 + (int)v15)) - v26);
v28 = *(unsigned __int8 *)(v25 + (int)v21 + 3 * (v24 + (int)v17)) - v26;
v29 = *(unsigned __int8 *)(v25 + (int)v21 + 3 * (v19 + v24)) - v26;
v30 = v27;
v31 = (float)v28;
v32 = (float)v29 * -0.1666666666666667 + v30 * -0.3333333333333333 + v31;
v33 = v31 * 0.5;
v34 = v30 * 0.5 + v33;
*(float *)&v30 = (float)v29 * 0.1666666666666667 + v30 * -0.1666666666666667 - v33;
*(&v45 + i) = (float)((float)((float)(*(float *)&v30 * v13.m128_f32[0]) * v13.m128_f32[0])
* v13.m128_f32[0])
+ (float)((float)((float)(v34 * v13.m128_f32[0]) * v13.m128_f32[0])
+ (float)((float)(v32 * v13.m128_f32[0]) + (float)v26));
v35 = (float)(v45 - v46);
v36 = (float)(v47 - v46);
v37 = (float)(v48 - v46) * -0.1666666666666667 + v35 * -0.3333333333333333 + v36;
v38 = v36 * 0.5;
v39 = v35 * 0.5 + v38;
*(float *)&v35 = (float)(v48 - v46) * 0.1666666666666667 + v35 * -0.1666666666666667 - v38;
v5 = v17;
*(float *)&v35 = roundf(
(float)((float)((float)(*(float *)&v35 * v10.m128_f32[0]) * v10.m128_f32[0])
* v10.m128_f32[0])
+ (float)((float)((float)(v39 * v10.m128_f32[0]) * v10.m128_f32[0])
+ (float)((float)(v37 * v10.m128_f32[0]) + v46)));
v17 = v5;
LODWORD(v15) = v56;
v13.m128_i32[0] = v59.m128_i32[0];
LODWORD(v11) = v55;
v10.m128_i32[0] = v58.m128_i32[0];
result = (unsigned int)(int)fminf(255.0, fmaxf(0.0, *(float *)&v35));
*(_BYTE *)(v57 + v21 + *v54) = result;
LODWORD(v5) = v52;
}
++v21;
}
while ( v21 != 3 );
v12 = v51 + 1;
}
while ( v51 + 1 != a3 );
}
++v41;
}
while ( v41 != v49 );
}
return result;
}
| bicubic_resize:
PUSH RBP
PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBX
SUB RSP,0xb8
MOV EBP,ECX
MOV RCX,RSI
MOV EBX,dword ptr [RDI]
MOV qword ptr [RSP + 0x68],RDI
MOV R14D,dword ptr [RDI + 0x4]
MOV dword ptr [RSI],EDX
MOV dword ptr [RSI + 0x4],EBP
ADD RCX,0x8
MOV dword ptr [RSP + 0xc],EDX
MOV EAX,EDX
IMUL EAX,EBP
LEA EAX,[RAX + RAX*0x2]
MOVSXD RSI,EAX
MOV qword ptr [RSP + 0x70],RCX
MOV RDI,RCX
CALL 0x0014ba90
TEST EBP,EBP
JLE 0x0013335d
CVTSI2SS XMM1,EBX
MOV EAX,dword ptr [RSP + 0xc]
CVTSI2SS XMM0,EAX
CVTSI2SS XMM2,R14D
DIVSS XMM1,XMM0
MOVSS dword ptr [RSP + 0x24],XMM1
XORPS XMM0,XMM0
CVTSI2SS XMM0,EBP
DIVSS XMM2,XMM0
MOVSS dword ptr [RSP + 0x1c],XMM2
DEC R14D
LEA ECX,[RBX + -0x1]
MOV dword ptr [RSP + 0x20],ECX
MOV EAX,EAX
MOV qword ptr [RSP + 0x28],RAX
MOV EAX,EBP
MOV qword ptr [RSP + 0x48],RAX
XOR ECX,ECX
MOVSD XMM6,qword ptr [0x00238538]
MOVSD XMM7,qword ptr [0x00238540]
MOVSD XMM8,qword ptr [0x00238548]
MOVSD XMM9,qword ptr [0x00238550]
MOV qword ptr [RSP + 0x10],0x0
MOV qword ptr [RSP + 0x60],RBX
LAB_00133006:
CMP dword ptr [RSP + 0xc],0x0
JLE 0x00133345
MOV RAX,qword ptr [RSP + 0x10]
XORPS XMM10,XMM10
CVTSI2SS XMM10,EAX
MULSS XMM10,dword ptr [RSP + 0x1c]
CVTTSS2SI R9D,XMM10
CVTTPS2DQ XMM0,XMM10
CVTDQ2PS XMM0,XMM0
SUBSS XMM10,XMM0
DEC R9D
IMUL RAX,qword ptr [RSP + 0x28]
MOV qword ptr [RSP + 0x50],RAX
XOR EDX,EDX
MOVAPS xmmword ptr [RSP + 0x90],XMM10
MOV qword ptr [RSP + 0x78],R9
LAB_00133056:
XORPS XMM11,XMM11
CVTSI2SS XMM11,EDX
MULSS XMM11,dword ptr [RSP + 0x24]
CVTTSS2SI EDI,XMM11
LEA R11D,[RDI + -0x1]
MOV EAX,dword ptr [RSP + 0x20]
CMP EAX,R11D
CMOVL R11D,EAX
TEST R11D,R11D
CMOVLE R11D,ECX
CMP EAX,EDI
MOV R13D,EDI
CMOVL R13D,EAX
TEST R13D,R13D
CMOVLE R13D,ECX
LEA R8D,[RDI + 0x1]
CMP EAX,R8D
CMOVL R8D,EAX
CVTTPS2DQ XMM0,XMM11
TEST R8D,R8D
CMOVLE R8D,ECX
ADD EDI,0x2
CMP EAX,EDI
CMOVL EDI,EAX
CVTDQ2PS XMM0,XMM0
TEST EDI,EDI
CMOVLE EDI,ECX
SUBSS XMM11,XMM0
MOV RAX,qword ptr [RSP + 0x50]
MOV qword ptr [RSP + 0x58],RDX
ADD RAX,RDX
LEA RAX,[RAX + RAX*0x2]
XOR EBP,EBP
MOVAPS xmmword ptr [RSP + 0xa0],XMM11
MOV qword ptr [RSP + 0x88],RAX
MOV qword ptr [RSP + 0x80],R11
LAB_001330e9:
XOR R12D,R12D
LAB_001330ec:
LEA EAX,[R9 + R12*0x1]
CMP R14D,EAX
CMOVL EAX,R14D
TEST EAX,EAX
CMOVLE EAX,ECX
IMUL EAX,EBX
LEA ECX,[RAX + R11*0x1]
LEA ECX,[RCX + RCX*0x2]
ADD ECX,EBP
MOVSXD RDX,ECX
MOV RCX,qword ptr [RSP + 0x68]
MOV RCX,qword ptr [RCX + 0x8]
MOVZX EDX,byte ptr [RCX + RDX*0x1]
LEA ESI,[RAX + R13*0x1]
LEA ESI,[RSI + RSI*0x2]
ADD ESI,EBP
MOVSXD RSI,ESI
MOVZX ESI,byte ptr [RCX + RSI*0x1]
SUB EDX,ESI
XORPS XMM0,XMM0
CVTSI2SS XMM0,EDX
LEA EDX,[RAX + R8*0x1]
LEA EDX,[RDX + RDX*0x2]
ADD EDX,EBP
MOVSXD RDX,EDX
MOVZX EDX,byte ptr [RCX + RDX*0x1]
SUB EDX,ESI
XORPS XMM1,XMM1
CVTSI2SS XMM1,EDX
ADD EAX,EDI
LEA EAX,[RAX + RAX*0x2]
ADD EAX,EBP
CDQE
MOVZX EAX,byte ptr [RCX + RAX*0x1]
SUB EAX,ESI
XORPS XMM2,XMM2
CVTSI2SS XMM2,EAX
CVTSI2SS XMM3,ESI
CVTSS2SD XMM0,XMM0
CVTSS2SD XMM1,XMM1
MOVAPS XMM4,XMM0
MULSD XMM4,XMM6
ADDSD XMM4,XMM1
CVTSS2SD XMM2,XMM2
MOVAPS XMM5,XMM2
MULSD XMM5,XMM7
ADDSD XMM5,XMM4
XORPS XMM4,XMM4
CVTSD2SS XMM4,XMM5
MULSD XMM1,XMM8
MOVAPS XMM5,XMM0
MULSD XMM5,XMM8
ADDSD XMM5,XMM1
CVTSD2SS XMM5,XMM5
MULSD XMM0,XMM7
SUBSD XMM0,XMM1
MULSD XMM2,XMM9
ADDSD XMM2,XMM0
XORPS XMM0,XMM0
CVTSD2SS XMM0,XMM2
MULSS XMM4,XMM11
ADDSS XMM4,XMM3
MULSS XMM5,XMM11
MULSS XMM5,XMM11
ADDSS XMM5,XMM4
MULSS XMM0,XMM11
MULSS XMM0,XMM11
MULSS XMM0,XMM11
ADDSS XMM0,XMM5
MOVSS dword ptr [RSP + R12*0x4 + 0x30],XMM0
MOVSS XMM0,dword ptr [RSP + 0x30]
MOVSS XMM1,dword ptr [RSP + 0x34]
SUBSS XMM0,XMM1
MOVSS XMM2,dword ptr [RSP + 0x38]
SUBSS XMM2,XMM1
MOVSS XMM3,dword ptr [RSP + 0x3c]
SUBSS XMM3,XMM1
CVTSS2SD XMM0,XMM0
CVTSS2SD XMM2,XMM2
MOVAPS XMM4,XMM0
MULSD XMM4,XMM6
ADDSD XMM4,XMM2
CVTSS2SD XMM3,XMM3
MOVAPS XMM5,XMM3
MULSD XMM5,XMM7
ADDSD XMM5,XMM4
XORPS XMM4,XMM4
CVTSD2SS XMM4,XMM5
MULSD XMM2,XMM8
MOVAPS XMM5,XMM0
MULSD XMM5,XMM8
ADDSD XMM5,XMM2
CVTSD2SS XMM5,XMM5
MULSD XMM0,XMM7
SUBSD XMM0,XMM2
MULSD XMM3,XMM9
ADDSD XMM3,XMM0
XORPS XMM0,XMM0
CVTSD2SS XMM0,XMM3
MULSS XMM4,XMM10
ADDSS XMM4,XMM1
MULSS XMM5,XMM10
MULSS XMM5,XMM10
ADDSS XMM5,XMM4
MULSS XMM0,XMM10
MULSS XMM0,XMM10
MULSS XMM0,XMM10
ADDSS XMM0,XMM5
MOV R15,RDI
MOV RBX,R8
CALL 0x00123810
MOV R8,RBX
MOV R11,qword ptr [RSP + 0x80]
MOV RDI,R15
MOVAPS XMM11,xmmword ptr [RSP + 0xa0]
MOV R9,qword ptr [RSP + 0x78]
MOVAPS XMM10,xmmword ptr [RSP + 0x90]
MOVSS XMM2,dword ptr [0x00237b58]
MOVSD XMM9,qword ptr [0x00238550]
MOVSD XMM8,qword ptr [0x00238548]
MOVSD XMM7,qword ptr [0x00238540]
MOVSD XMM6,qword ptr [0x00238538]
XORPS XMM1,XMM1
MAXSS XMM1,XMM0
MOVAPS XMM0,XMM2
MINSS XMM0,XMM1
CVTTSS2SI EAX,XMM0
MOV RCX,qword ptr [RSP + 0x70]
MOV RCX,qword ptr [RCX]
ADD RCX,RBP
MOV RDX,qword ptr [RSP + 0x88]
MOV byte ptr [RDX + RCX*0x1],AL
XOR ECX,ECX
MOV RBX,qword ptr [RSP + 0x60]
INC R12
CMP R12,0x4
JNZ 0x001330ec
INC RBP
CMP RBP,0x3
JNZ 0x001330e9
MOV RDX,qword ptr [RSP + 0x58]
INC RDX
CMP RDX,qword ptr [RSP + 0x28]
JNZ 0x00133056
LAB_00133345:
MOV RDX,qword ptr [RSP + 0x10]
INC RDX
MOV qword ptr [RSP + 0x10],RDX
CMP RDX,qword ptr [RSP + 0x48]
JNZ 0x00133006
LAB_0013335d:
ADD RSP,0xb8
POP RBX
POP R12
POP R13
POP R14
POP R15
POP RBP
RET
|
/* bicubic_resize(clip_image_u8 const&, clip_image_u8&, int, int) */
void bicubic_resize(clip_image_u8 *param_1,clip_image_u8 *param_2,int param_3,int param_4)
{
byte bVar1;
uint uVar2;
int iVar3;
long lVar4;
uint uVar5;
int iVar6;
uint uVar7;
uint uVar8;
ulong uVar9;
int iVar10;
long lVar11;
uint uVar12;
uint uVar13;
uint uVar14;
long lVar15;
int iVar16;
double dVar17;
double dVar18;
double dVar19;
double dVar20;
double dVar21;
double dVar22;
double dVar23;
double dVar24;
float fVar25;
float fVar26;
ulong local_d8;
float local_b8 [6];
ulong local_a0;
long local_98;
ulong local_90;
ulong local_88;
clip_image_u8 *local_80;
vector<unsigned_char,std::allocator<unsigned_char>> *local_78;
ulong local_70;
ulong local_68;
long local_60;
int1 local_58 [16];
int1 local_48 [16];
uVar2 = *(uint *)param_1;
uVar9 = (ulong)uVar2;
iVar3 = *(int *)(param_1 + 4);
*(int *)param_2 = param_3;
*(int *)(param_2 + 4) = param_4;
local_78 = (vector<unsigned_char,std::allocator<unsigned_char>> *)(param_2 + 8);
local_80 = param_1;
std::vector<unsigned_char,std::allocator<unsigned_char>>::resize
(local_78,(long)(param_3 * param_4 * 3));
if (0 < param_4) {
iVar16 = iVar3 + -1;
uVar7 = uVar2 - 1;
local_a0 = (ulong)(uint)param_4;
local_d8 = 0;
dVar21 = DAT_00238538;
dVar22 = DAT_00238540;
dVar23 = DAT_00238548;
dVar24 = DAT_00238550;
local_88 = uVar9;
do {
if (0 < param_3) {
fVar25 = (float)(int)local_d8 * ((float)iVar3 / (float)param_4);
local_70 = (ulong)((int)fVar25 - 1);
local_98 = local_d8 * (uint)param_3;
local_90 = 0;
local_58 = ZEXT416((uint)(fVar25 - (float)(int)fVar25));
fVar25 = fVar25 - (float)(int)fVar25;
do {
uVar8 = 0;
fVar26 = (float)(int)local_90 * ((float)(int)uVar2 / (float)param_3);
uVar12 = (uint)fVar26;
uVar14 = uVar12 - 1;
if ((int)uVar7 < (int)(uVar12 - 1)) {
uVar14 = uVar7;
}
if ((int)uVar14 < 1) {
uVar14 = uVar8;
}
local_68 = (ulong)uVar14;
uVar14 = uVar12;
if ((int)uVar7 < (int)uVar12) {
uVar14 = uVar7;
}
if ((int)uVar14 < 1) {
uVar14 = uVar8;
}
uVar13 = uVar12 + 1;
if ((int)uVar7 < (int)(uVar12 + 1)) {
uVar13 = uVar7;
}
if ((int)uVar13 < 1) {
uVar13 = uVar8;
}
uVar5 = uVar12 + 2;
if ((int)uVar7 < (int)(uVar12 + 2)) {
uVar5 = uVar7;
}
if ((int)uVar5 < 1) {
uVar5 = uVar8;
}
local_60 = (local_98 + local_90) * 3;
lVar11 = 0;
local_48 = ZEXT416((uint)(fVar26 - (float)(int)fVar26));
fVar26 = fVar26 - (float)(int)fVar26;
do {
lVar15 = 0;
do {
iVar6 = (int)local_70 + (int)lVar15;
if (iVar16 < iVar6) {
iVar6 = iVar16;
}
if (iVar6 < 1) {
iVar6 = 0;
}
iVar6 = iVar6 * (int)uVar9;
iVar10 = (int)lVar11;
lVar4 = *(long *)(local_80 + 8);
bVar1 = *(byte *)(lVar4 + (int)((iVar6 + uVar14) * 3 + iVar10));
dVar17 = (double)(int)((uint)*(byte *)(lVar4 + ((iVar6 + (int)local_68) * 3 + iVar10))
- (uint)bVar1);
dVar18 = (double)(int)((uint)*(byte *)(lVar4 + (int)((iVar6 + uVar13) * 3 + iVar10)) -
(uint)bVar1);
dVar20 = (double)(int)((uint)*(byte *)(lVar4 + (int)((iVar6 + uVar5) * 3 + iVar10)) -
(uint)bVar1);
dVar19 = dVar18 * dVar23;
local_b8[lVar15] =
(float)(dVar20 * dVar24 + (dVar17 * dVar22 - dVar19)) * fVar26 * fVar26 * fVar26
+ (float)(dVar17 * dVar23 + dVar19) * fVar26 * fVar26 +
(float)(dVar20 * dVar22 + dVar17 * dVar21 + dVar18) * fVar26 + (float)bVar1;
dVar17 = (double)(local_b8[0] - local_b8[1]);
dVar18 = (double)(local_b8[2] - local_b8[1]) * dVar23;
fVar26 = roundf((float)((double)(local_b8[3] - local_b8[1]) * dVar24 +
(dVar17 * dVar22 - dVar18)) * fVar25 * fVar25 * fVar25 +
(float)(dVar17 * dVar23 + dVar18) * fVar25 * fVar25 +
(float)((double)(local_b8[3] - local_b8[1]) * dVar22 +
dVar17 * dVar21 + (double)(local_b8[2] - local_b8[1])) * fVar25
+ local_b8[1]);
dVar24 = DAT_00238550;
dVar23 = DAT_00238548;
dVar22 = DAT_00238540;
dVar21 = DAT_00238538;
fVar25 = 0.0;
if (0.0 <= fVar26) {
fVar25 = fVar26;
}
fVar26 = DAT_00237b58;
if (fVar25 <= DAT_00237b58) {
fVar26 = fVar25;
}
*(char *)(local_60 + *(long *)local_78 + lVar11) = (char)(int)fVar26;
lVar15 = lVar15 + 1;
uVar9 = local_88;
fVar25 = (float)local_58._0_4_;
fVar26 = (float)local_48._0_4_;
} while (lVar15 != 4);
lVar11 = lVar11 + 1;
} while (lVar11 != 3);
local_90 = local_90 + 1;
} while (local_90 != (uint)param_3);
}
local_d8 = local_d8 + 1;
} while (local_d8 != local_a0);
}
return;
}
| |
28,298 | ma_ft_del | eloqsql/storage/maria/ma_ft_update.c | int _ma_ft_del(MARIA_HA *info, uint keynr, uchar *keybuf, const uchar *record,
my_off_t pos)
{
int error= -1;
FT_WORD *wlist;
DBUG_ENTER("_ma_ft_del");
DBUG_PRINT("enter",("keynr: %d",keynr));
if ((wlist= _ma_ft_parserecord(info, keynr, record, &info->ft_memroot)))
error= _ma_ft_erase(info,keynr,keybuf,wlist,pos);
free_root(&info->ft_memroot, MYF(MY_MARK_BLOCKS_FREE));
DBUG_PRINT("exit",("Return: %d",error));
DBUG_RETURN(error);
} | O0 | c | ma_ft_del:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movl $0xffffffff, -0x2c(%rbp) # imm = 0xFFFFFFFF
jmp 0x78254
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x20(%rbp), %rdx
movq -0x8(%rbp), %rcx
addq $0x328, %rcx # imm = 0x328
callq 0x77ac0
movq %rax, -0x38(%rbp)
cmpq $0x0, %rax
je 0x78294
movq -0x8(%rbp), %rdi
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rdx
movq -0x38(%rbp), %rcx
movq -0x28(%rbp), %r8
callq 0x78090
movl %eax, -0x2c(%rbp)
movq -0x8(%rbp), %rdi
addq $0x328, %rdi # imm = 0x328
movl $0x2, %esi
callq 0xed730
jmp 0x782ab
jmp 0x782ad
movl -0x2c(%rbp), %eax
movl %eax, -0x3c(%rbp)
movl -0x3c(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
| _ma_ft_del:
push rbp
mov rbp, rsp
sub rsp, 40h
mov [rbp+var_8], rdi
mov [rbp+var_C], esi
mov [rbp+var_18], rdx
mov [rbp+var_20], rcx
mov [rbp+var_28], r8
mov [rbp+var_2C], 0FFFFFFFFh
jmp short $+2
loc_78254:
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_20]
mov rcx, [rbp+var_8]
add rcx, 328h
call _ma_ft_parserecord
mov [rbp+var_38], rax
cmp rax, 0
jz short loc_78294
mov rdi, [rbp+var_8]
mov esi, [rbp+var_C]
mov rdx, [rbp+var_18]
mov rcx, [rbp+var_38]
mov r8, [rbp+var_28]
call _ma_ft_erase
mov [rbp+var_2C], eax
loc_78294:
mov rdi, [rbp+var_8]
add rdi, 328h
mov esi, 2
call free_root
jmp short $+2
loc_782AB:
jmp short $+2
loc_782AD:
mov eax, [rbp+var_2C]
mov [rbp+var_3C], eax
mov eax, [rbp+var_3C]
add rsp, 40h
pop rbp
retn
| long long ma_ft_del(long long *a1, unsigned int a2, _BYTE *a3, long long a4, long long a5)
{
_QWORD *v6; // [rsp+8h] [rbp-38h]
unsigned int v7; // [rsp+14h] [rbp-2Ch]
v7 = -1;
v6 = (_QWORD *)ma_ft_parserecord(a1, a2, a4, (long long)(a1 + 101));
if ( v6 )
v7 = ma_ft_erase(a1, a2, a3, v6, a5);
free_root(a1 + 101, 2LL);
return v7;
}
| _ma_ft_del:
PUSH RBP
MOV RBP,RSP
SUB RSP,0x40
MOV qword ptr [RBP + -0x8],RDI
MOV dword ptr [RBP + -0xc],ESI
MOV qword ptr [RBP + -0x18],RDX
MOV qword ptr [RBP + -0x20],RCX
MOV qword ptr [RBP + -0x28],R8
MOV dword ptr [RBP + -0x2c],0xffffffff
JMP 0x00178254
LAB_00178254:
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x20]
MOV RCX,qword ptr [RBP + -0x8]
ADD RCX,0x328
CALL 0x00177ac0
MOV qword ptr [RBP + -0x38],RAX
CMP RAX,0x0
JZ 0x00178294
MOV RDI,qword ptr [RBP + -0x8]
MOV ESI,dword ptr [RBP + -0xc]
MOV RDX,qword ptr [RBP + -0x18]
MOV RCX,qword ptr [RBP + -0x38]
MOV R8,qword ptr [RBP + -0x28]
CALL 0x00178090
MOV dword ptr [RBP + -0x2c],EAX
LAB_00178294:
MOV RDI,qword ptr [RBP + -0x8]
ADD RDI,0x328
MOV ESI,0x2
CALL 0x001ed730
JMP 0x001782ab
LAB_001782ab:
JMP 0x001782ad
LAB_001782ad:
MOV EAX,dword ptr [RBP + -0x2c]
MOV dword ptr [RBP + -0x3c],EAX
MOV EAX,dword ptr [RBP + -0x3c]
ADD RSP,0x40
POP RBP
RET
|
int4
_ma_ft_del(long param_1,int4 param_2,int8 param_3,int8 param_4,int8 param_5)
{
long lVar1;
int4 local_34;
local_34 = 0xffffffff;
lVar1 = _ma_ft_parserecord(param_1,param_2,param_4,param_1 + 0x328);
if (lVar1 != 0) {
local_34 = _ma_ft_erase(param_1,param_2,param_3,lVar1,param_5);
}
free_root(param_1 + 0x328,2);
return local_34;
}
| |
28,299 | my_mb_wc_utf8mb4_no_range | eloqsql/strings/ctype-utf8.c | static int
my_mb_wc_utf8mb4_no_range(CHARSET_INFO *cs __attribute__((unused)),
my_wc_t *pwc, const uchar *s)
{
uchar c;
c= s[0];
if (c < 0x80)
{
*pwc = c;
return 1;
}
if (c < 0xc2)
return MY_CS_ILSEQ;
if (c < 0xe0)
{
if (!IS_CONTINUATION_BYTE(s[1]))
return MY_CS_ILSEQ;
*pwc= UTF8MB2_CODE(c, s[1]);
return 2;
}
if (c < 0xf0)
{
if (!IS_UTF8MB3_STEP2(c, s[1], s[2]))
return MY_CS_ILSEQ;
*pwc= UTF8MB3_CODE(c, s[1], s[2]);
return 3;
}
else if (c < 0xf5)
{
if (!IS_UTF8MB4_STEP2(c, s[1], s[2], s[3]))
return MY_CS_ILSEQ;
*pwc= UTF8MB4_CODE(c, s[1], s[2], s[3]);
return 4;
}
return MY_CS_ILSEQ;
} | O3 | c | my_mb_wc_utf8mb4_no_range:
pushq %rbp
movq %rsp, %rbp
movzbl (%rsi), %ecx
testb %cl, %cl
js 0xcf390
movl $0x1, %eax
movq %rcx, (%rdi)
jmp 0xcf397
xorl %eax, %eax
cmpb $-0x3e, %cl
jae 0xcf399
popq %rbp
retq
cmpb $-0x21, %cl
ja 0xcf3bc
movzbl 0x1(%rsi), %edx
xorl $0x80, %edx
cmpb $0x3f, %dl
ja 0xcf397
andl $0x1f, %ecx
shll $0x6, %ecx
orl %edx, %ecx
movl $0x2, %eax
jmp 0xcf38b
cmpb $-0x11, %cl
ja 0xcf408
movzbl 0x1(%rsi), %edx
cmpb $-0x41, %dl
jg 0xcf397
movzbl 0x2(%rsi), %esi
cmpb $-0x41, %sil
jg 0xcf397
cmpl $0xe0, %ecx
sete %r8b
cmpb $-0x60, %dl
setb %r9b
testb %r9b, %r8b
jne 0xcf397
shll $0xc, %ecx
movzwl %cx, %eax
andl $0x3f, %edx
shll $0x6, %edx
orl %eax, %edx
andl $0x3f, %esi
orq %rdx, %rsi
movl $0x3, %eax
movq %rsi, %rcx
jmp 0xcf38b
cmpb $-0xc, %cl
ja 0xcf397
movzbl 0x1(%rsi), %r8d
cmpb $-0x41, %r8b
jg 0xcf397
movzbl 0x2(%rsi), %edx
cmpb $-0x41, %dl
jg 0xcf397
movzbl 0x3(%rsi), %esi
cmpb $-0x41, %sil
jg 0xcf397
cmpl $0xf0, %ecx
sete %r9b
cmpb $-0x70, %r8b
setb %r10b
testb %r10b, %r9b
jne 0xcf397
cmpl $0xf4, %ecx
sete %r9b
cmpb $-0x70, %r8b
setae %r10b
testb %r10b, %r9b
jne 0xcf397
andl $0x7, %ecx
shll $0x12, %ecx
andl $0x3f, %r8d
shll $0xc, %r8d
orl %ecx, %r8d
andl $0x3f, %edx
shll $0x6, %edx
orl %r8d, %edx
andl $0x3f, %esi
orq %rdx, %rsi
movl $0x4, %eax
jmp 0xcf403
| my_mb_wc_utf8mb4_no_range:
push rbp
mov rbp, rsp
movzx ecx, byte ptr [rsi]
test cl, cl
js short loc_CF390
mov eax, 1
loc_CF38B:
mov [rdi], rcx
jmp short loc_CF397
loc_CF390:
xor eax, eax
cmp cl, 0C2h
jnb short loc_CF399
loc_CF397:
pop rbp
retn
loc_CF399:
cmp cl, 0DFh
ja short loc_CF3BC
movzx edx, byte ptr [rsi+1]
xor edx, 80h
cmp dl, 3Fh ; '?'
ja short loc_CF397
and ecx, 1Fh
shl ecx, 6
or ecx, edx
mov eax, 2
jmp short loc_CF38B
loc_CF3BC:
cmp cl, 0EFh
ja short loc_CF408
movzx edx, byte ptr [rsi+1]
cmp dl, 0BFh
jg short loc_CF397
movzx esi, byte ptr [rsi+2]
cmp sil, 0BFh
jg short loc_CF397
cmp ecx, 0E0h
setz r8b
cmp dl, 0A0h
setb r9b
test r8b, r9b
jnz short loc_CF397
shl ecx, 0Ch
movzx eax, cx
and edx, 3Fh
shl edx, 6
or edx, eax
and esi, 3Fh
or rsi, rdx
mov eax, 3
loc_CF403:
mov rcx, rsi
jmp short loc_CF38B
loc_CF408:
cmp cl, 0F4h
ja short loc_CF397
movzx r8d, byte ptr [rsi+1]
cmp r8b, 0BFh
jg loc_CF397
movzx edx, byte ptr [rsi+2]
cmp dl, 0BFh
jg loc_CF397
movzx esi, byte ptr [rsi+3]
cmp sil, 0BFh
jg loc_CF397
cmp ecx, 0F0h
setz r9b
cmp r8b, 90h
setb r10b
test r9b, r10b
jnz loc_CF397
cmp ecx, 0F4h
setz r9b
cmp r8b, 90h
setnb r10b
test r9b, r10b
jnz loc_CF397
and ecx, 7
shl ecx, 12h
and r8d, 3Fh
shl r8d, 0Ch
or r8d, ecx
and edx, 3Fh
shl edx, 6
or edx, r8d
and esi, 3Fh
or rsi, rdx
mov eax, 4
jmp loc_CF403
| long long my_mb_wc_utf8mb4_no_range(unsigned long long *a1, unsigned __int8 *a2)
{
unsigned long long v2; // rcx
long long result; // rax
char v4; // dl
char v5; // si
unsigned long long v6; // rsi
char v7; // r8
char v8; // dl
char v9; // si
v2 = *a2;
if ( (v2 & 0x80u) == 0LL )
{
result = 1LL;
LABEL_3:
*a1 = v2;
return result;
}
result = 0LL;
if ( (unsigned __int8)v2 >= 0xC2u )
{
if ( (unsigned __int8)v2 > 0xDFu )
{
if ( (unsigned __int8)v2 > 0xEFu )
{
if ( (unsigned __int8)v2 > 0xF4u )
return result;
v7 = a2[1];
if ( v7 > -65 )
return result;
v8 = a2[2];
if ( v8 > -65 )
return result;
v9 = a2[3];
if ( v9 > -65
|| (unsigned __int8)v7 < 0x90u && (_DWORD)v2 == 240
|| (unsigned __int8)v7 >= 0x90u && (_DWORD)v2 == 244 )
{
return result;
}
v6 = ((v2 & 7) << 18) | ((unsigned __int8)(v7 & 0x3F) << 12) | ((unsigned __int8)(v8 & 0x3F) << 6) | v9 & 0x3F;
result = 4LL;
}
else
{
v4 = a2[1];
if ( v4 > -65 )
return result;
v5 = a2[2];
if ( v5 > -65 || (unsigned __int8)v4 < 0xA0u && (_DWORD)v2 == 224 )
return result;
v6 = (unsigned __int16)((_WORD)v2 << 12) | ((unsigned __int8)(v4 & 0x3F) << 6) | (unsigned long long)(v5 & 0x3F);
result = 3LL;
}
v2 = v6;
goto LABEL_3;
}
if ( (a2[1] ^ 0x80u) <= 0x3F )
{
v2 = a2[1] ^ 0x80 | ((unsigned __int8)(v2 & 0x1F) << 6);
result = 2LL;
goto LABEL_3;
}
}
return result;
}
| my_mb_wc_utf8mb4_no_range:
PUSH RBP
MOV RBP,RSP
MOVZX ECX,byte ptr [RSI]
TEST CL,CL
JS 0x001cf390
MOV EAX,0x1
LAB_001cf38b:
MOV qword ptr [RDI],RCX
JMP 0x001cf397
LAB_001cf390:
XOR EAX,EAX
CMP CL,0xc2
JNC 0x001cf399
LAB_001cf397:
POP RBP
RET
LAB_001cf399:
CMP CL,0xdf
JA 0x001cf3bc
MOVZX EDX,byte ptr [RSI + 0x1]
XOR EDX,0x80
CMP DL,0x3f
JA 0x001cf397
AND ECX,0x1f
SHL ECX,0x6
OR ECX,EDX
MOV EAX,0x2
JMP 0x001cf38b
LAB_001cf3bc:
CMP CL,0xef
JA 0x001cf408
MOVZX EDX,byte ptr [RSI + 0x1]
CMP DL,0xbf
JG 0x001cf397
MOVZX ESI,byte ptr [RSI + 0x2]
CMP SIL,0xbf
JG 0x001cf397
CMP ECX,0xe0
SETZ R8B
CMP DL,0xa0
SETC R9B
TEST R8B,R9B
JNZ 0x001cf397
SHL ECX,0xc
MOVZX EAX,CX
AND EDX,0x3f
SHL EDX,0x6
OR EDX,EAX
AND ESI,0x3f
OR RSI,RDX
MOV EAX,0x3
LAB_001cf403:
MOV RCX,RSI
JMP 0x001cf38b
LAB_001cf408:
CMP CL,0xf4
JA 0x001cf397
MOVZX R8D,byte ptr [RSI + 0x1]
CMP R8B,0xbf
JG 0x001cf397
MOVZX EDX,byte ptr [RSI + 0x2]
CMP DL,0xbf
JG 0x001cf397
MOVZX ESI,byte ptr [RSI + 0x3]
CMP SIL,0xbf
JG 0x001cf397
CMP ECX,0xf0
SETZ R9B
CMP R8B,0x90
SETC R10B
TEST R9B,R10B
JNZ 0x001cf397
CMP ECX,0xf4
SETZ R9B
CMP R8B,0x90
SETNC R10B
TEST R9B,R10B
JNZ 0x001cf397
AND ECX,0x7
SHL ECX,0x12
AND R8D,0x3f
SHL R8D,0xc
OR R8D,ECX
AND EDX,0x3f
SHL EDX,0x6
OR EDX,R8D
AND ESI,0x3f
OR RSI,RDX
MOV EAX,0x4
JMP 0x001cf403
|
int8 my_mb_wc_utf8mb4_no_range(ulong *param_1,byte *param_2)
{
byte bVar1;
byte bVar2;
int8 uVar3;
uint uVar4;
ulong uVar5;
bVar1 = *param_2;
uVar5 = (ulong)bVar1;
if ((char)bVar1 < '\0') {
if (bVar1 < 0xc2) {
return 0;
}
uVar4 = (uint)bVar1;
if (bVar1 < 0xe0) {
if (0x3f < (byte)(param_2[1] ^ 0x80)) {
return 0;
}
uVar5 = (ulong)((uVar4 & 0x1f) << 6 | param_2[1] ^ 0x80);
uVar3 = 2;
}
else {
if (bVar1 < 0xf0) {
bVar2 = param_2[1];
if (-0x41 < (char)bVar2) {
return 0;
}
if (-0x41 < (char)param_2[2]) {
return 0;
}
if (uVar4 == 0xe0 && bVar2 < 0xa0) {
return 0;
}
uVar4 = param_2[2] & 0x3f | (bVar2 & 0x3f) << 6 | (bVar1 & 0xf) << 0xc;
uVar3 = 3;
}
else {
if (0xf4 < bVar1) {
return 0;
}
bVar1 = param_2[1];
if (-0x41 < (char)bVar1) {
return 0;
}
if (-0x41 < (char)param_2[2]) {
return 0;
}
if (-0x41 < (char)param_2[3]) {
return 0;
}
if (uVar4 == 0xf0 && bVar1 < 0x90) {
return 0;
}
if (uVar4 == 0xf4 && 0x8f < bVar1) {
return 0;
}
uVar4 = param_2[3] & 0x3f |
(param_2[2] & 0x3f) << 6 | (bVar1 & 0x3f) << 0xc | (uVar4 & 7) << 0x12;
uVar3 = 4;
}
uVar5 = (ulong)uVar4;
}
}
else {
uVar3 = 1;
}
*param_1 = uVar5;
return uVar3;
}
|
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.