index
int64
0
66.5k
func_name
stringlengths
2
5.36k
func_dep
stringlengths
16
2.19k
func
stringlengths
8
55.3k
test
stringlengths
0
7.07k
opt
stringclasses
4 values
language
stringclasses
2 values
asm
stringlengths
0
45.4k
ida_asm
stringlengths
0
44.7k
ida_pseudo
stringlengths
0
44.3k
ghidra_asm
stringlengths
0
49.1k
ghidra_pseudo
stringlengths
0
64.7k
31,000
get_charsets_dir
eloqsql/mysys/charset.c
char *get_charsets_dir(char *buf) { const char *sharedir= SHAREDIR; char *res; DBUG_ENTER("get_charsets_dir"); if (charsets_dir != NULL) strmake(buf, charsets_dir, FN_REFLEN-1); else { if (test_if_hard_path(sharedir) || is_prefix(sharedir, DEFAULT_CHARSET_HOME)) strxmov(buf, sharedir, "/", CHARSET_DIR, NullS); else strxmov(buf, DEFAULT_CHARSET_HOME, "/", sharedir, "/", CHARSET_DIR, NullS); } res= convert_dirname(buf,buf,NullS); DBUG_PRINT("info",("charsets dir: '%s'", buf)); DBUG_RETURN(res); }
O0
c
get_charsets_dir: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) leaq 0x787da(%rip), %rax # 0x153e8d movq %rax, -0x10(%rbp) leaq 0xb9eff2(%rip), %rax # 0xc7a6b0 cmpq $0x0, (%rax) je 0xdb6de movq -0x8(%rbp), %rdi leaq 0xb9efe1(%rip), %rax # 0xc7a6b0 movq (%rax), %rsi movl $0x1ff, %edx # imm = 0x1FF callq 0x14de60 jmp 0xdb758 movq -0x10(%rbp), %rdi callq 0xf03e0 cmpl $0x0, %eax jne 0xdb701 movq -0x10(%rbp), %rdi leaq 0x787af(%rip), %rsi # 0x153ea6 callq 0x14a6b0 cmpl $0x0, %eax je 0xdb725 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi leaq 0x79c18(%rip), %rdx # 0x155328 leaq 0x787a2(%rip), %rcx # 0x153eb9 xorl %eax, %eax movl %eax, %r8d movb $0x0, %al callq 0x14df40 jmp 0xdb756 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rcx leaq 0x78772(%rip), %rsi # 0x153ea6 leaq 0x79bed(%rip), %r8 # 0x155328 leaq 0x78777(%rip), %r9 # 0x153eb9 xorl %eax, %eax movq %r8, %rdx movq $0x0, (%rsp) movb $0x0, %al callq 0x14df40 jmp 0xdb758 movq -0x8(%rbp), %rdi movq -0x8(%rbp), %rsi xorl %eax, %eax movl %eax, %edx callq 0xdf700 movq %rax, -0x18(%rbp) jmp 0xdb76f jmp 0xdb771 movq -0x18(%rbp), %rax movq %rax, -0x20(%rbp) movq -0x20(%rbp), %rax addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
get_charsets_dir: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi lea rax, aHomeMonoInstal; "/home/mono/install/share" mov [rbp+var_10], rax lea rax, charsets_dir cmp qword ptr [rax], 0 jz short loc_DB6DE mov rdi, [rbp+var_8] lea rax, charsets_dir mov rsi, [rax] mov edx, 1FFh call strmake jmp short loc_DB758 loc_DB6DE: mov rdi, [rbp+var_10] call test_if_hard_path cmp eax, 0 jnz short loc_DB701 mov rdi, [rbp+var_10] lea rsi, aHomeMonoInstal_0; "/home/mono/install" call is_prefix cmp eax, 0 jz short loc_DB725 loc_DB701: mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] lea rdx, word_155328 lea rcx, aCharsets; "charsets/" xor eax, eax mov r8d, eax mov al, 0 call strxmov jmp short loc_DB756 loc_DB725: mov rdi, [rbp+var_8] mov rcx, [rbp+var_10] lea rsi, aHomeMonoInstal_0; "/home/mono/install" lea r8, word_155328 lea r9, aCharsets; "charsets/" xor eax, eax mov rdx, r8 mov [rsp+30h+var_30], 0 mov al, 0 call strxmov loc_DB756: jmp short $+2 loc_DB758: mov rdi, [rbp+var_8] mov rsi, [rbp+var_8] xor eax, eax mov edx, eax call convert_dirname mov [rbp+var_18], rax jmp short $+2 loc_DB76F: jmp short $+2 loc_DB771: mov rax, [rbp+var_18] mov [rbp+var_20], rax mov rax, [rbp+var_20] add rsp, 30h pop rbp retn
long long get_charsets_dir(long long a1) { int v1; // r9d if ( charsets_dir ) { strmake(a1, charsets_dir, 511LL); } else if ( (unsigned int)test_if_hard_path("/home/mono/install/share") || (unsigned int)is_prefix("/home/mono/install/share", "/home/mono/install") ) { strxmov(a1, (unsigned int)"/home/mono/install/share", (unsigned int)&word_155328, (unsigned int)"charsets/", 0, v1); } else { strxmov( a1, (unsigned int)"/home/mono/install", (unsigned int)&word_155328, (unsigned int)"/home/mono/install/share", (unsigned int)&word_155328, (unsigned int)"charsets/", 0LL); } return convert_dirname(a1, a1, 0LL); }
get_charsets_dir: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x8],RDI LEA RAX,[0x253e8d] MOV qword ptr [RBP + -0x10],RAX LEA RAX,[0xd7a6b0] CMP qword ptr [RAX],0x0 JZ 0x001db6de MOV RDI,qword ptr [RBP + -0x8] LEA RAX,[0xd7a6b0] MOV RSI,qword ptr [RAX] MOV EDX,0x1ff CALL 0x0024de60 JMP 0x001db758 LAB_001db6de: MOV RDI,qword ptr [RBP + -0x10] CALL 0x001f03e0 CMP EAX,0x0 JNZ 0x001db701 MOV RDI,qword ptr [RBP + -0x10] LEA RSI,[0x253ea6] CALL 0x0024a6b0 CMP EAX,0x0 JZ 0x001db725 LAB_001db701: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] LEA RDX,[0x255328] LEA RCX,[0x253eb9] XOR EAX,EAX MOV R8D,EAX MOV AL,0x0 CALL 0x0024df40 JMP 0x001db756 LAB_001db725: MOV RDI,qword ptr [RBP + -0x8] MOV RCX,qword ptr [RBP + -0x10] LEA RSI,[0x253ea6] LEA R8,[0x255328] LEA R9,[0x253eb9] XOR EAX,EAX MOV RDX,R8 MOV qword ptr [RSP],0x0 MOV AL,0x0 CALL 0x0024df40 LAB_001db756: JMP 0x001db758 LAB_001db758: MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x8] XOR EAX,EAX MOV EDX,EAX CALL 0x001df700 MOV qword ptr [RBP + -0x18],RAX JMP 0x001db76f LAB_001db76f: JMP 0x001db771 LAB_001db771: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x20] ADD RSP,0x30 POP RBP RET
int8 get_charsets_dir(int8 param_1) { int iVar1; int8 uVar2; if (charsets_dir == 0) { iVar1 = test_if_hard_path("/home/mono/install/share"); if ((iVar1 == 0) && (iVar1 = is_prefix("/home/mono/install/share","/home/mono/install"), iVar1 == 0)) { strxmov(param_1,"/home/mono/install",&DAT_00255328,"/home/mono/install/share",&DAT_00255328, "charsets/",0); } else { strxmov(param_1,"/home/mono/install/share",&DAT_00255328,"charsets/",0); } } else { strmake(param_1,charsets_dir,0x1ff); } uVar2 = convert_dirname(param_1,param_1,0); return uVar2; }
31,001
JS_NewObjectProtoClass
bluesky950520[P]quickjs/quickjs.c
JSValue JS_NewObjectProtoClass(JSContext *ctx, JSValue proto_val, JSClassID class_id) { JSShape *sh; JSObject *proto; proto = get_proto_obj(proto_val); sh = find_hashed_shape_proto(ctx->rt, proto); if (likely(sh)) { sh = js_dup_shape(sh); } else { sh = js_new_shape(ctx, proto); if (!sh) return JS_EXCEPTION; } return JS_NewObjectFromShape(ctx, sh, class_id); }
O0
c
JS_NewObjectProtoClass: subq $0x48, %rsp movq %rsi, 0x28(%rsp) movq %rdx, 0x30(%rsp) movq %rdi, 0x20(%rsp) movl %ecx, 0x1c(%rsp) movq 0x28(%rsp), %rdi movq 0x30(%rsp), %rsi callq 0x30260 movq %rax, 0x8(%rsp) movq 0x20(%rsp), %rax movq 0x18(%rax), %rdi movq 0x8(%rsp), %rsi callq 0x30290 movq %rax, 0x10(%rsp) cmpq $0x0, 0x10(%rsp) setne %al xorb $-0x1, %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0x301fe movq 0x10(%rsp), %rdi callq 0x30340 movq %rax, 0x10(%rsp) jmp 0x3022f movq 0x20(%rsp), %rdi movq 0x8(%rsp), %rsi callq 0x30360 movq %rax, 0x10(%rsp) cmpq $0x0, 0x10(%rsp) jne 0x3022d movl $0x0, 0x38(%rsp) movq $0x6, 0x40(%rsp) jmp 0x3024c jmp 0x3022f movq 0x20(%rsp), %rdi movq 0x10(%rsp), %rsi movl 0x1c(%rsp), %edx callq 0x30390 movq %rax, 0x38(%rsp) movq %rdx, 0x40(%rsp) movq 0x38(%rsp), %rax movq 0x40(%rsp), %rdx addq $0x48, %rsp retq nopl (%rax,%rax)
JS_NewObjectProtoClass: sub rsp, 48h mov [rsp+48h+var_20], rsi mov [rsp+48h+var_18], rdx mov [rsp+48h+var_28], rdi mov [rsp+48h+var_2C], ecx mov rdi, [rsp+48h+var_20] mov rsi, [rsp+48h+var_18] call get_proto_obj mov [rsp+48h+var_40], rax mov rax, [rsp+48h+var_28] mov rdi, [rax+18h] mov rsi, [rsp+48h+var_40] call find_hashed_shape_proto mov [rsp+48h+var_38], rax cmp [rsp+48h+var_38], 0 setnz al xor al, 0FFh xor al, 0FFh and al, 1 movzx eax, al cdqe cmp rax, 0 jz short loc_301FE mov rdi, [rsp+48h+var_38] call js_dup_shape mov [rsp+48h+var_38], rax jmp short loc_3022F loc_301FE: mov rdi, [rsp+48h+var_28] mov rsi, [rsp+48h+var_40] call js_new_shape mov [rsp+48h+var_38], rax cmp [rsp+48h+var_38], 0 jnz short loc_3022D mov dword ptr [rsp+48h+var_10], 0 mov [rsp+48h+var_8], 6 jmp short loc_3024C loc_3022D: jmp short $+2 loc_3022F: mov rdi, [rsp+48h+var_28] mov rsi, [rsp+48h+var_38] mov edx, [rsp+48h+var_2C] call JS_NewObjectFromShape mov [rsp+48h+var_10], rax mov [rsp+48h+var_8], rdx loc_3024C: mov rax, [rsp+48h+var_10] mov rdx, [rsp+48h+var_8] add rsp, 48h retn
long long JS_NewObjectProtoClass(long long a1, long long a2, long long a3, unsigned int a4) { long long proto_obj; // [rsp+8h] [rbp-40h] long long hashed_shape_proto; // [rsp+10h] [rbp-38h] long long v8; // [rsp+10h] [rbp-38h] long long v9; // [rsp+10h] [rbp-38h] long long v11; // [rsp+38h] [rbp-10h] proto_obj = get_proto_obj(a2, a3); hashed_shape_proto = find_hashed_shape_proto(*(_QWORD *)(a1 + 24), proto_obj); if ( hashed_shape_proto ) { v8 = js_dup_shape(hashed_shape_proto); return JS_NewObjectFromShape(a1, v8, a4); } v9 = js_new_shape(a1, proto_obj); if ( v9 ) return JS_NewObjectFromShape(a1, v9, a4); LODWORD(v11) = 0; return v11; }
JS_NewObjectProtoClass: SUB RSP,0x48 MOV qword ptr [RSP + 0x28],RSI MOV qword ptr [RSP + 0x30],RDX MOV qword ptr [RSP + 0x20],RDI MOV dword ptr [RSP + 0x1c],ECX MOV RDI,qword ptr [RSP + 0x28] MOV RSI,qword ptr [RSP + 0x30] CALL 0x00130260 MOV qword ptr [RSP + 0x8],RAX MOV RAX,qword ptr [RSP + 0x20] MOV RDI,qword ptr [RAX + 0x18] MOV RSI,qword ptr [RSP + 0x8] CALL 0x00130290 MOV qword ptr [RSP + 0x10],RAX CMP qword ptr [RSP + 0x10],0x0 SETNZ AL XOR AL,0xff XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x001301fe MOV RDI,qword ptr [RSP + 0x10] CALL 0x00130340 MOV qword ptr [RSP + 0x10],RAX JMP 0x0013022f LAB_001301fe: MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x8] CALL 0x00130360 MOV qword ptr [RSP + 0x10],RAX CMP qword ptr [RSP + 0x10],0x0 JNZ 0x0013022d MOV dword ptr [RSP + 0x38],0x0 MOV qword ptr [RSP + 0x40],0x6 JMP 0x0013024c LAB_0013022d: JMP 0x0013022f LAB_0013022f: MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x10] MOV EDX,dword ptr [RSP + 0x1c] CALL 0x00130390 MOV qword ptr [RSP + 0x38],RAX MOV qword ptr [RSP + 0x40],RDX LAB_0013024c: MOV RAX,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RSP + 0x40] ADD RSP,0x48 RET
int1 [16] JS_NewObjectProtoClass(long param_1,int8 param_2,int8 param_3,int4 param_4) { int8 uVar1; long lVar2; int1 auVar3 [16]; long local_38; int4 local_10; int4 uStack_c; int8 local_8; uVar1 = get_proto_obj(param_2,param_3); lVar2 = find_hashed_shape_proto(*(int8 *)(param_1 + 0x18),uVar1); if (lVar2 == 0) { local_38 = js_new_shape(param_1,uVar1); if (local_38 == 0) { local_10 = 0; local_8 = 6; goto LAB_0013024c; } } else { local_38 = js_dup_shape(lVar2); } auVar3 = JS_NewObjectFromShape(param_1,local_38,param_4); local_8 = auVar3._8_8_; local_10 = auVar3._0_4_; uStack_c = auVar3._4_4_; LAB_0013024c: auVar3._4_4_ = uStack_c; auVar3._0_4_ = local_10; auVar3._8_8_ = local_8; return auVar3; }
31,002
JS_NewObjectProtoClass
bluesky950520[P]quickjs/quickjs.c
JSValue JS_NewObjectProtoClass(JSContext *ctx, JSValue proto_val, JSClassID class_id) { JSShape *sh; JSObject *proto; proto = get_proto_obj(proto_val); sh = find_hashed_shape_proto(ctx->rt, proto); if (likely(sh)) { sh = js_dup_shape(sh); } else { sh = js_new_shape(ctx, proto); if (!sh) return JS_EXCEPTION; } return JS_NewObjectFromShape(ctx, sh, class_id); }
O2
c
JS_NewObjectProtoClass: pushq %r14 pushq %rbx pushq %rax movl %ecx, %ebx movq %rdi, %r14 xorl %ecx, %ecx cmpl $-0x1, %edx cmovneq %rcx, %rsi movq 0x18(%rdi), %rdi imull $0x9e370001, %esi, %eax # imm = 0x9E370001 movq %rsi, %rdx shrq $0x20, %rdx addl %eax, %edx imull $0x9e370001, %edx, %edx # imm = 0x9E370001 addl $0x3c6e0001, %edx # imm = 0x3C6E0001 subb 0x184(%rdi), %cl movl %edx, %eax shrl %cl, %eax shlq $0x3, %rax addq 0x190(%rdi), %rax movq (%rax), %rax testq %rax, %rax je 0x1ec7e cmpl %edx, 0x1c(%rax) jne 0x1ec78 cmpq %rsi, 0x38(%rax) jne 0x1ec78 cmpl $0x0, 0x28(%rax) je 0x1ec95 addq $0x30, %rax jmp 0x1ec5f pushq $0x2 popq %rdx movq %r14, %rdi callq 0x38714 testq %rax, %rax jne 0x1ec97 pushq $0x6 popq %rdx xorl %eax, %eax jmp 0x1eca4 incl (%rax) movq %r14, %rdi movq %rax, %rsi movl %ebx, %edx callq 0x1ecac addq $0x8, %rsp popq %rbx popq %r14 retq
JS_NewObjectProtoClass: push r14 push rbx push rax mov ebx, ecx mov r14, rdi xor ecx, ecx cmp edx, 0FFFFFFFFh cmovnz rsi, rcx mov rdi, [rdi+18h] imul eax, esi, 9E370001h mov rdx, rsi shr rdx, 20h add edx, eax imul edx, 9E370001h add edx, 3C6E0001h sub cl, [rdi+184h] mov eax, edx shr eax, cl shl rax, 3 add rax, [rdi+190h] loc_1EC5F: mov rax, [rax] test rax, rax jz short loc_1EC7E cmp [rax+1Ch], edx jnz short loc_1EC78 cmp [rax+38h], rsi jnz short loc_1EC78 cmp dword ptr [rax+28h], 0 jz short loc_1EC95 loc_1EC78: add rax, 30h ; '0' jmp short loc_1EC5F loc_1EC7E: push 2 pop rdx mov rdi, r14 call js_new_shape2 test rax, rax jnz short loc_1EC97 push 6 pop rdx xor eax, eax jmp short loc_1ECA4 loc_1EC95: inc dword ptr [rax] loc_1EC97: mov rdi, r14 mov rsi, rax mov edx, ebx call JS_NewObjectFromShape loc_1ECA4: add rsp, 8 pop rbx pop r14 retn
long long JS_NewObjectProtoClass(long long a1, long long a2, int a3, unsigned int a4) { long long *i; // rax long long v6; // rax if ( a3 != -1 ) a2 = 0LL; for ( i = (long long *)(*(_QWORD *)(*(_QWORD *)(a1 + 24) + 400LL) + 8LL * ((unsigned int)(-1640562687 * (-1640562687 * a2 + HIDWORD(a2)) + 1013841921) >> -*(_BYTE *)(*(_QWORD *)(a1 + 24) + 388LL))); ; i = (long long *)(v6 + 48) ) { v6 = *i; if ( !v6 ) break; if ( *(_DWORD *)(v6 + 28) == -1640562687 * (-1640562687 * (_DWORD)a2 + HIDWORD(a2)) + 1013841921 && *(_QWORD *)(v6 + 56) == a2 && !*(_DWORD *)(v6 + 40) ) { ++*(_DWORD *)v6; return JS_NewObjectFromShape(a1, v6, a4); } } v6 = js_new_shape2(a1, a2, 2LL); if ( !v6 ) return 0LL; return JS_NewObjectFromShape(a1, v6, a4); }
JS_NewObjectProtoClass: PUSH R14 PUSH RBX PUSH RAX MOV EBX,ECX MOV R14,RDI XOR ECX,ECX CMP EDX,-0x1 CMOVNZ RSI,RCX MOV RDI,qword ptr [RDI + 0x18] IMUL EAX,ESI,-0x61c8ffff MOV RDX,RSI SHR RDX,0x20 ADD EDX,EAX IMUL EDX,EDX,-0x61c8ffff ADD EDX,0x3c6e0001 SUB CL,byte ptr [RDI + 0x184] MOV EAX,EDX SHR EAX,CL SHL RAX,0x3 ADD RAX,qword ptr [RDI + 0x190] LAB_0011ec5f: MOV RAX,qword ptr [RAX] TEST RAX,RAX JZ 0x0011ec7e CMP dword ptr [RAX + 0x1c],EDX JNZ 0x0011ec78 CMP qword ptr [RAX + 0x38],RSI JNZ 0x0011ec78 CMP dword ptr [RAX + 0x28],0x0 JZ 0x0011ec95 LAB_0011ec78: ADD RAX,0x30 JMP 0x0011ec5f LAB_0011ec7e: PUSH 0x2 POP RDX MOV RDI,R14 CALL 0x00138714 TEST RAX,RAX JNZ 0x0011ec97 PUSH 0x6 POP RDX XOR EAX,EAX JMP 0x0011eca4 LAB_0011ec95: INC dword ptr [RAX] LAB_0011ec97: MOV RDI,R14 MOV RSI,RAX MOV EDX,EBX CALL 0x0011ecac LAB_0011eca4: ADD RSP,0x8 POP RBX POP R14 RET
int8 JS_NewObjectProtoClass(long param_1,long param_2,int param_3,int4 param_4) { int *piVar1; int8 uVar2; uint uVar3; if (param_3 != -1) { param_2 = 0; } uVar3 = ((int)((ulong)param_2 >> 0x20) + (int)param_2 * -0x61c8ffff) * -0x61c8ffff + 0x3c6e0001; piVar1 = (int *)((ulong)(uVar3 >> (-*(char *)(*(long *)(param_1 + 0x18) + 0x184) & 0x1fU)) * 8 + *(long *)(*(long *)(param_1 + 0x18) + 400)); do { piVar1 = *(int **)piVar1; if (piVar1 == (int *)0x0) { piVar1 = (int *)js_new_shape2(param_1,param_2,2); if (piVar1 == (int *)0x0) { uVar2 = 0; } else { LAB_0011ec97: uVar2 = JS_NewObjectFromShape(param_1,piVar1,param_4); } return uVar2; } if (((piVar1[7] == uVar3) && (*(long *)(piVar1 + 0xe) == param_2)) && (piVar1[10] == 0)) { *piVar1 = *piVar1 + 1; goto LAB_0011ec97; } piVar1 = piVar1 + 0xc; } while( true ); }
31,003
google::protobuf::util::converter::ProtoWriter::EndList()
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/util/internal/proto_writer.cc
ProtoWriter* ProtoWriter::EndList() { if (invalid_depth_ > 0) { --invalid_depth_; } else if (element_ != nullptr) { element_.reset(element_->pop()); } return this; }
O0
cpp
google::protobuf::util::converter::ProtoWriter::EndList(): subq $0x18, %rsp movq %rdi, 0x10(%rsp) movq 0x10(%rsp), %rax movq %rax, 0x8(%rsp) cmpl $0x0, 0xc8(%rax) jle 0x380062 movq 0x8(%rsp), %rax movl 0xc8(%rax), %ecx addl $-0x1, %ecx movl %ecx, 0xc8(%rax) jmp 0x3800a9 movq 0x8(%rsp), %rdi addq $0x28, %rdi xorl %eax, %eax movl %eax, %esi callq 0x362c30 testb $0x1, %al jne 0x38007a jmp 0x3800a7 movq 0x8(%rsp), %rdi movq %rdi, %rax addq $0x28, %rax movq %rax, (%rsp) addq $0x28, %rdi callq 0x382ff0 movq %rax, %rdi callq 0x37e6b0 movq (%rsp), %rdi movq %rax, %rsi callq 0x382fc0 jmp 0x3800a9 movq 0x8(%rsp), %rax addq $0x18, %rsp retq nopw %cs:(%rax,%rax)
_ZN6google8protobuf4util9converter11ProtoWriter7EndListEv: sub rsp, 18h mov [rsp+18h+var_8], rdi mov rax, [rsp+18h+var_8] mov [rsp+18h+var_10], rax cmp dword ptr [rax+0C8h], 0 jle short loc_380062 mov rax, [rsp+18h+var_10] mov ecx, [rax+0C8h] add ecx, 0FFFFFFFFh mov [rax+0C8h], ecx jmp short loc_3800A9 loc_380062: mov rdi, [rsp+18h+var_10] add rdi, 28h ; '(' xor eax, eax mov esi, eax call _ZStneIN6google8protobuf4util9converter11ProtoWriter12ProtoElementESt14default_deleteIS5_EEbRKSt10unique_ptrIT_T0_EDn; std::operator!=<google::protobuf::util::converter::ProtoWriter::ProtoElement,std::default_delete<google::protobuf::util::converter::ProtoWriter::ProtoElement>>(std::unique_ptr<google::protobuf::util::converter::ProtoWriter::ProtoElement> const&,decltype(nullptr)) test al, 1 jnz short loc_38007A jmp short loc_3800A7 loc_38007A: mov rdi, [rsp+18h+var_10] mov rax, rdi add rax, 28h ; '(' mov [rsp+18h+var_18], rax add rdi, 28h ; '(' call _ZNKSt10unique_ptrIN6google8protobuf4util9converter11ProtoWriter12ProtoElementESt14default_deleteIS5_EEptEv; std::unique_ptr<google::protobuf::util::converter::ProtoWriter::ProtoElement>::operator->(void) mov rdi, rax; this call _ZN6google8protobuf4util9converter11ProtoWriter12ProtoElement3popEv; google::protobuf::util::converter::ProtoWriter::ProtoElement::pop(void) mov rdi, [rsp+18h+var_18] mov rsi, rax call _ZNSt10unique_ptrIN6google8protobuf4util9converter11ProtoWriter12ProtoElementESt14default_deleteIS5_EE5resetEPS5_; std::unique_ptr<google::protobuf::util::converter::ProtoWriter::ProtoElement>::reset(google::protobuf::util::converter::ProtoWriter::ProtoElement*) loc_3800A7: jmp short $+2 loc_3800A9: mov rax, [rsp+18h+var_10] add rsp, 18h retn
google::protobuf::util::converter::ProtoWriter * google::protobuf::util::converter::ProtoWriter::EndList( google::protobuf::util::converter::ProtoWriter *this) { google::protobuf::util::converter::ProtoWriter::ProtoElement *v1; // rax long long v2; // rax if ( *((int *)this + 50) <= 0 ) { if ( (std::operator!=<google::protobuf::util::converter::ProtoWriter::ProtoElement,std::default_delete<google::protobuf::util::converter::ProtoWriter::ProtoElement>>((long long)this + 40) & 1) != 0 ) { v1 = (google::protobuf::util::converter::ProtoWriter::ProtoElement *)std::unique_ptr<google::protobuf::util::converter::ProtoWriter::ProtoElement>::operator->((char *)this + 40); v2 = google::protobuf::util::converter::ProtoWriter::ProtoElement::pop(v1); std::unique_ptr<google::protobuf::util::converter::ProtoWriter::ProtoElement>::reset((char *)this + 40, v2); } } else { --*((_DWORD *)this + 50); } return this; }
__copy_move_backward_a1<true,google::protobuf::DescriptorBuilder::SuggestFieldNumbers(google::protobuf::FileDescriptor*,google::protobuf::FileDescriptorProto_const&)::Range*,google::protobuf::DescriptorBuilder::SuggestFieldNumbers(google::protobuf::FileDescriptor*,google::protobuf::FileDescriptorProto_const&)::Range*>: SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDI MOV qword ptr [RSP + 0x8],RSI MOV qword ptr [RSP],RDX MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP] CALL 0x00380080 ADD RSP,0x18 RET
/* WARNING: Unknown calling convention -- yet parameter storage is locked */ /* google::protobuf::DescriptorBuilder::SuggestFieldNumbers(google::protobuf::FileDescriptor*, google::protobuf::FileDescriptorProto const&)::Range* std::__copy_move_backward_a1<true, google::protobuf::DescriptorBuilder::SuggestFieldNumbers(google::protobuf::FileDescriptor*, google::protobuf::FileDescriptorProto const&)::Range*, google::protobuf::DescriptorBuilder::SuggestFieldNumbers(google::protobuf::FileDescriptor*, google::protobuf::FileDescriptorProto const&)::Range*>(google::protobuf::DescriptorBuilder::SuggestFieldNumbers(google::protobuf::FileDescriptor*, google::protobuf::FileDescriptorProto const&)::Range*, google::protobuf::DescriptorBuilder::SuggestFieldNumbers(google::protobuf::FileDescriptor*, google::protobuf::FileDescriptorProto const&)::Range*, google::protobuf::DescriptorBuilder::SuggestFieldNumbers(google::protobuf::FileDescriptor*, google::protobuf::FileDescriptorProto const&)::Range*) */ Range * std:: __copy_move_backward_a1<true,google::protobuf::DescriptorBuilder::SuggestFieldNumbers(google::protobuf::FileDescriptor*,google::protobuf::FileDescriptorProto_const&)::Range*,google::protobuf::DescriptorBuilder::SuggestFieldNumbers(google::protobuf::FileDescriptor*,google::protobuf::FileDescriptorProto_const&)::Range*> (Range *param_1,Range *param_2,Range *param_3) { Range *pRVar1; pRVar1 = __copy_move_backward_a2<true,google::protobuf::DescriptorBuilder::SuggestFieldNumbers(google::protobuf::FileDescriptor*,google::protobuf::FileDescriptorProto_const&)::Range*,google::protobuf::DescriptorBuilder::SuggestFieldNumbers(google::protobuf::FileDescriptor*,google::protobuf::FileDescriptorProto_const&)::Range*> (param_1,param_2,param_3); return pRVar1; }
31,004
ma_SHA1Update
eloqsql/libmariadb/libmariadb/ma_sha1.c
void ma_SHA1Update(_MA_SHA1_CTX * context, const unsigned char *input, size_t inputLen) { unsigned int i, index, partLen; /* Compute number of bytes mod 64 */ index = (unsigned int) ((context->count[0] >> 3) & 0x3F); /* Update number of bits */ if ((context->count[0] += ((uint32) inputLen << 3)) < ((uint32) inputLen << 3)) context->count[1]++; context->count[1] += ((uint32) inputLen >> 29); partLen = 64 - index; /* Transform as many times as possible. */ if (inputLen >= partLen) { memcpy ((unsigned char*) & context->buffer[index], (unsigned char*) input, partLen); ma_SHA1Transform(context->state, context->buffer); for (i = partLen; i + 63 < inputLen; i += 64) ma_SHA1Transform(context->state, &input[i]); index = 0; } else i = 0; /* Buffer remaining input */ memcpy ((unsigned char*) & context->buffer[index], (unsigned char*) & input[i], inputLen - i); }
O0
c
ma_SHA1Update: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rax movl 0x14(%rax), %eax shrl $0x3, %eax andl $0x3f, %eax movl %eax, -0x20(%rbp) movq -0x18(%rbp), %rax shll $0x3, %eax movq -0x8(%rbp), %rcx addl 0x14(%rcx), %eax movl %eax, 0x14(%rcx) movq -0x18(%rbp), %rcx shll $0x3, %ecx cmpl %ecx, %eax jae 0x307cd movq -0x8(%rbp), %rax movl 0x18(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x18(%rax) movq -0x18(%rbp), %rax movl %eax, %ecx shrl $0x1d, %ecx movq -0x8(%rbp), %rax addl 0x18(%rax), %ecx movl %ecx, 0x18(%rax) movl $0x40, %eax subl -0x20(%rbp), %eax movl %eax, -0x24(%rbp) movq -0x18(%rbp), %rax movl -0x24(%rbp), %ecx cmpq %rcx, %rax jb 0x3085f movq -0x8(%rbp), %rdi addq $0x1c, %rdi movl -0x20(%rbp), %eax addq %rax, %rdi movq -0x10(%rbp), %rsi movl -0x24(%rbp), %eax movl %eax, %edx callq 0x174a0 movq -0x8(%rbp), %rdi movq -0x8(%rbp), %rsi addq $0x1c, %rsi callq 0x308a0 movl -0x24(%rbp), %eax movl %eax, -0x1c(%rbp) movl -0x1c(%rbp), %eax addl $0x3f, %eax movl %eax, %eax cmpq -0x18(%rbp), %rax jae 0x30856 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movl -0x1c(%rbp), %eax addq %rax, %rsi callq 0x308a0 movl -0x1c(%rbp), %eax addl $0x40, %eax movl %eax, -0x1c(%rbp) jmp 0x3082a movl $0x0, -0x20(%rbp) jmp 0x30866 movl $0x0, -0x1c(%rbp) movq -0x8(%rbp), %rdi addq $0x1c, %rdi movl -0x20(%rbp), %eax addq %rax, %rdi movq -0x10(%rbp), %rsi movl -0x1c(%rbp), %eax addq %rax, %rsi movq -0x18(%rbp), %rdx movl -0x1c(%rbp), %eax subq %rax, %rdx callq 0x174a0 addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ma_SHA1Update: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rax, [rbp+var_8] mov eax, [rax+14h] shr eax, 3 and eax, 3Fh mov [rbp+var_20], eax mov rax, [rbp+var_18] shl eax, 3 mov rcx, [rbp+var_8] add eax, [rcx+14h] mov [rcx+14h], eax mov rcx, [rbp+var_18] shl ecx, 3 cmp eax, ecx jnb short loc_307CD mov rax, [rbp+var_8] mov ecx, [rax+18h] add ecx, 1 mov [rax+18h], ecx loc_307CD: mov rax, [rbp+var_18] mov ecx, eax shr ecx, 1Dh mov rax, [rbp+var_8] add ecx, [rax+18h] mov [rax+18h], ecx mov eax, 40h ; '@' sub eax, [rbp+var_20] mov [rbp+var_24], eax mov rax, [rbp+var_18] mov ecx, [rbp+var_24] cmp rax, rcx jb short loc_3085F mov rdi, [rbp+var_8] add rdi, 1Ch mov eax, [rbp+var_20] add rdi, rax mov rsi, [rbp+var_10] mov eax, [rbp+var_24] mov edx, eax call _memcpy mov rdi, [rbp+var_8] mov rsi, [rbp+var_8] add rsi, 1Ch call ma_SHA1Transform mov eax, [rbp+var_24] mov [rbp+var_1C], eax loc_3082A: mov eax, [rbp+var_1C] add eax, 3Fh ; '?' mov eax, eax cmp rax, [rbp+var_18] jnb short loc_30856 mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov eax, [rbp+var_1C] add rsi, rax call ma_SHA1Transform mov eax, [rbp+var_1C] add eax, 40h ; '@' mov [rbp+var_1C], eax jmp short loc_3082A loc_30856: mov [rbp+var_20], 0 jmp short loc_30866 loc_3085F: mov [rbp+var_1C], 0 loc_30866: mov rdi, [rbp+var_8] add rdi, 1Ch mov eax, [rbp+var_20] add rdi, rax mov rsi, [rbp+var_10] mov eax, [rbp+var_1C] add rsi, rax mov rdx, [rbp+var_18] mov eax, [rbp+var_1C] sub rdx, rax call _memcpy add rsp, 30h pop rbp retn
long long ma_SHA1Update(long long a1, long long a2, unsigned long long a3) { unsigned int v3; // eax unsigned int v5; // [rsp+10h] [rbp-20h] unsigned int i; // [rsp+14h] [rbp-1Ch] v5 = (*(_DWORD *)(a1 + 20) >> 3) & 0x3F; v3 = *(_DWORD *)(a1 + 20) + 8 * a3; *(_DWORD *)(a1 + 20) = v3; if ( v3 < 8 * (int)a3 ) ++*(_DWORD *)(a1 + 24); *(_DWORD *)(a1 + 24) += (unsigned int)a3 >> 29; if ( a3 < 64 - v5 ) { i = 0; } else { memcpy(v5 + a1 + 28, a2, 64 - v5); ma_SHA1Transform(a1, a1 + 28); for ( i = 64 - v5; i + 63 < a3; i += 64 ) ma_SHA1Transform(a1, i + a2); v5 = 0; } return memcpy(v5 + a1 + 28, i + a2, a3 - i); }
ma_SHA1Update: 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 RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x14] SHR EAX,0x3 AND EAX,0x3f MOV dword ptr [RBP + -0x20],EAX MOV RAX,qword ptr [RBP + -0x18] SHL EAX,0x3 MOV RCX,qword ptr [RBP + -0x8] ADD EAX,dword ptr [RCX + 0x14] MOV dword ptr [RCX + 0x14],EAX MOV RCX,qword ptr [RBP + -0x18] SHL ECX,0x3 CMP EAX,ECX JNC 0x001307cd MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x18] ADD ECX,0x1 MOV dword ptr [RAX + 0x18],ECX LAB_001307cd: MOV RAX,qword ptr [RBP + -0x18] MOV ECX,EAX SHR ECX,0x1d MOV RAX,qword ptr [RBP + -0x8] ADD ECX,dword ptr [RAX + 0x18] MOV dword ptr [RAX + 0x18],ECX MOV EAX,0x40 SUB EAX,dword ptr [RBP + -0x20] MOV dword ptr [RBP + -0x24],EAX MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RBP + -0x24] CMP RAX,RCX JC 0x0013085f MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x1c MOV EAX,dword ptr [RBP + -0x20] ADD RDI,RAX MOV RSI,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RBP + -0x24] MOV EDX,EAX CALL 0x001174a0 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x8] ADD RSI,0x1c CALL 0x001308a0 MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x1c],EAX LAB_0013082a: MOV EAX,dword ptr [RBP + -0x1c] ADD EAX,0x3f MOV EAX,EAX CMP RAX,qword ptr [RBP + -0x18] JNC 0x00130856 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RBP + -0x1c] ADD RSI,RAX CALL 0x001308a0 MOV EAX,dword ptr [RBP + -0x1c] ADD EAX,0x40 MOV dword ptr [RBP + -0x1c],EAX JMP 0x0013082a LAB_00130856: MOV dword ptr [RBP + -0x20],0x0 JMP 0x00130866 LAB_0013085f: MOV dword ptr [RBP + -0x1c],0x0 LAB_00130866: MOV RDI,qword ptr [RBP + -0x8] ADD RDI,0x1c MOV EAX,dword ptr [RBP + -0x20] ADD RDI,RAX MOV RSI,qword ptr [RBP + -0x10] MOV EAX,dword ptr [RBP + -0x1c] ADD RSI,RAX MOV RDX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RBP + -0x1c] SUB RDX,RAX CALL 0x001174a0 ADD RSP,0x30 POP RBP RET
void ma_SHA1Update(long param_1,void *param_2,ulong param_3) { uint uVar1; int4 local_28; int4 local_24; local_28 = *(uint *)(param_1 + 0x14) >> 3 & 0x3f; uVar1 = (int)param_3 * 8 + *(int *)(param_1 + 0x14); *(uint *)(param_1 + 0x14) = uVar1; if (uVar1 < (uint)((int)param_3 << 3)) { *(int *)(param_1 + 0x18) = *(int *)(param_1 + 0x18) + 1; } *(uint *)(param_1 + 0x18) = ((uint)(param_3 >> 0x1d) & 7) + *(int *)(param_1 + 0x18); local_24 = 0x40 - local_28; if (param_3 < local_24) { local_24 = 0; } else { memcpy((void *)(param_1 + 0x1c + (ulong)local_28),param_2,(ulong)local_24); ma_SHA1Transform(param_1,param_1 + 0x1c); for (; local_24 + 0x3f < param_3; local_24 = local_24 + 0x40) { ma_SHA1Transform(param_1,(long)param_2 + (ulong)local_24); } local_28 = 0; } memcpy((void *)(param_1 + 0x1c + (ulong)local_28),(void *)((long)param_2 + (ulong)local_24), param_3 - local_24); return; }
31,005
translog_cursor_init
eloqsql/storage/maria/ma_loghandler.c
static void translog_cursor_init(struct st_buffer_cursor *cursor, struct st_translog_buffer *buffer, uint8 buffer_no) { DBUG_ENTER("translog_cursor_init"); cursor->ptr= buffer->buffer; cursor->buffer= buffer; cursor->buffer_no= buffer_no; cursor->current_page_fill= 0; cursor->chaser= (cursor != &log_descriptor.bc); cursor->write_counter= 0; cursor->previous_offset= 0; cursor->protected= 0; DBUG_VOID_RETURN; }
O0
c
translog_cursor_init: pushq %rbp movq %rsp, %rbp movb %dl, %al movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movb %al, -0x11(%rbp) movq -0x10(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x20(%rax) movq -0x10(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x28(%rax) movb -0x11(%rbp), %cl movq -0x8(%rbp), %rax movb %cl, 0x36(%rax) movq -0x8(%rbp), %rax movw $0x0, 0x30(%rax) leaq 0x3ebedc(%rip), %rax # 0x47b410 addq $0x800c50, %rax # imm = 0x800C50 cmpq %rax, -0x8(%rbp) setne %al andb $0x1, %al movzbl %al, %eax movb %al, %cl movq -0x8(%rbp), %rax movb %cl, 0x37(%rax) movq -0x8(%rbp), %rax movw $0x0, 0x32(%rax) movq -0x8(%rbp), %rax movw $0x0, 0x34(%rax) movq -0x8(%rbp), %rax movb $0x0, 0x38(%rax) jmp 0x8f56d popq %rbp retq nop
translog_cursor_init: push rbp mov rbp, rsp mov al, dl mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_11], al mov rcx, [rbp+var_10] mov rax, [rbp+var_8] mov [rax+20h], rcx mov rcx, [rbp+var_10] mov rax, [rbp+var_8] mov [rax+28h], rcx mov cl, [rbp+var_11] mov rax, [rbp+var_8] mov [rax+36h], cl mov rax, [rbp+var_8] mov word ptr [rax+30h], 0 lea rax, log_descriptor add rax, 800C50h cmp [rbp+var_8], rax setnz al and al, 1 movzx eax, al mov cl, al mov rax, [rbp+var_8] mov [rax+37h], cl mov rax, [rbp+var_8] mov word ptr [rax+32h], 0 mov rax, [rbp+var_8] mov word ptr [rax+34h], 0 mov rax, [rbp+var_8] mov byte ptr [rax+38h], 0 jmp short $+2 loc_8F56D: pop rbp retn
long long * translog_cursor_init(long long *a1, long long a2, char a3) { long long *result; // rax a1[4] = a2; a1[5] = a2; *((_BYTE *)a1 + 54) = a3; *((_WORD *)a1 + 24) = 0; *((_BYTE *)a1 + 55) = a1 != &log_descriptor[1048970]; *((_WORD *)a1 + 25) = 0; *((_WORD *)a1 + 26) = 0; result = a1; *((_BYTE *)a1 + 56) = 0; return result; }
translog_cursor_init: PUSH RBP MOV RBP,RSP MOV AL,DL MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV byte ptr [RBP + -0x11],AL MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x20],RCX MOV RCX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x28],RCX MOV CL,byte ptr [RBP + -0x11] MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX + 0x36],CL MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX + 0x30],0x0 LEA RAX,[0x57b410] ADD RAX,0x800c50 CMP qword ptr [RBP + -0x8],RAX SETNZ AL AND AL,0x1 MOVZX EAX,AL MOV CL,AL MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX + 0x37],CL MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX + 0x32],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV word ptr [RAX + 0x34],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV byte ptr [RAX + 0x38],0x0 JMP 0x0018f56d LAB_0018f56d: POP RBP RET
void translog_cursor_init(int *param_1,int8 param_2,int1 param_3) { *(int8 *)(param_1 + 0x20) = param_2; *(int8 *)(param_1 + 0x28) = param_2; param_1[0x36] = param_3; *(int2 *)(param_1 + 0x30) = 0; param_1[0x37] = param_1 != &DAT_00d7c060; *(int2 *)(param_1 + 0x32) = 0; *(int2 *)(param_1 + 0x34) = 0; param_1[0x38] = 0; return; }
31,006
lf_pinbox_init
eloqsql/mysys/lf_alloc-pin.c
void lf_pinbox_init(LF_PINBOX *pinbox, uint free_ptr_offset, lf_pinbox_free_func *free_func, void *free_func_arg) { DBUG_ASSERT(free_ptr_offset % sizeof(void *) == 0); lf_dynarray_init(&pinbox->pinarray, sizeof(LF_PINS)); pinbox->pinstack_top_ver= 0; pinbox->pins_in_array= 0; pinbox->free_ptr_offset= free_ptr_offset; pinbox->free_func= free_func; pinbox->free_func_arg= free_func_arg; }
O0
c
lf_pinbox_init: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) jmp 0xfbb09 movq -0x8(%rbp), %rdi movl $0x78, %esi callq 0xfc690 movq -0x8(%rbp), %rax movl $0x0, 0x3c(%rax) movq -0x8(%rbp), %rax movl $0x0, 0x40(%rax) movl -0xc(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0x38(%rax) movq -0x18(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x28(%rax) movq -0x20(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x30(%rax) addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
lf_pinbox_init: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov [rbp+var_18], rdx mov [rbp+var_20], rcx jmp short $+2 loc_FBB09: mov rdi, [rbp+var_8] mov esi, 78h ; 'x' call lf_dynarray_init mov rax, [rbp+var_8] mov dword ptr [rax+3Ch], 0 mov rax, [rbp+var_8] mov dword ptr [rax+40h], 0 mov ecx, [rbp+var_C] mov rax, [rbp+var_8] mov [rax+38h], ecx mov rcx, [rbp+var_18] mov rax, [rbp+var_8] mov [rax+28h], rcx mov rcx, [rbp+var_20] mov rax, [rbp+var_8] mov [rax+30h], rcx add rsp, 20h pop rbp retn
long long lf_pinbox_init(long long a1, int a2, long long a3, long long a4) { long long result; // rax lf_dynarray_init(a1, 120LL); *(_DWORD *)(a1 + 60) = 0; *(_DWORD *)(a1 + 64) = 0; *(_DWORD *)(a1 + 56) = a2; *(_QWORD *)(a1 + 40) = a3; result = a1; *(_QWORD *)(a1 + 48) = a4; return result; }
lf_pinbox_init: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX JMP 0x001fbb09 LAB_001fbb09: MOV RDI,qword ptr [RBP + -0x8] MOV ESI,0x78 CALL 0x001fc690 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x3c],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x40],0x0 MOV ECX,dword ptr [RBP + -0xc] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x38],ECX MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x28],RCX MOV RCX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x30],RCX ADD RSP,0x20 POP RBP RET
void lf_pinbox_init(long param_1,int4 param_2,int8 param_3,int8 param_4) { lf_dynarray_init(param_1,0x78); *(int4 *)(param_1 + 0x3c) = 0; *(int4 *)(param_1 + 0x40) = 0; *(int4 *)(param_1 + 0x38) = param_2; *(int8 *)(param_1 + 0x28) = param_3; *(int8 *)(param_1 + 0x30) = param_4; return; }
31,007
my_error_unregister_all
eloqsql/mysys/my_error.c
void my_error_unregister_all(void) { struct my_err_head *cursor, *saved_next; for (cursor= my_errmsgs_globerrs.meh_next; cursor != NULL; cursor= saved_next) { /* We need this ptr, but we're about to free its container, so save it. */ saved_next= cursor->meh_next; my_free(cursor); } my_errmsgs_globerrs.meh_next= NULL; /* Freed in first iteration above. */ my_errmsgs_list= &my_errmsgs_globerrs; }
O3
c
my_error_unregister_all: movq 0x2e5d37(%rip), %rdi # 0x34d880 testq %rdi, %rdi je 0x67b6a pushq %rbp movq %rsp, %rbp pushq %rbx pushq %rax movq (%rdi), %rbx callq 0x6b256 movq %rbx, %rdi testq %rbx, %rbx jne 0x67b54 addq $0x8, %rsp popq %rbx popq %rbp movq $0x0, 0x2e5d0b(%rip) # 0x34d880 leaq 0x2e5d04(%rip), %rax # 0x34d880 movq %rax, 0x2e5cf5(%rip) # 0x34d878 retq
my_error_unregister_all: mov rdi, cs:my_errmsgs_globerrs test rdi, rdi jz short loc_67B6A push rbp mov rbp, rsp push rbx push rax loc_67B54: mov rbx, [rdi] call my_free mov rdi, rbx test rbx, rbx jnz short loc_67B54 add rsp, 8 pop rbx pop rbp loc_67B6A: mov cs:my_errmsgs_globerrs, 0 lea rax, my_errmsgs_globerrs mov cs:my_errmsgs_list, rax retn
long long *my_error_unregister_all() { _QWORD *v0; // rdi _QWORD *v1; // rbx long long *result; // rax v0 = (_QWORD *)my_errmsgs_globerrs; if ( my_errmsgs_globerrs ) { do { v1 = (_QWORD *)*v0; my_free(v0); v0 = v1; } while ( v1 ); } my_errmsgs_globerrs = 0LL; result = &my_errmsgs_globerrs; my_errmsgs_list = &my_errmsgs_globerrs; return result; }
my_error_unregister_all: MOV RDI,qword ptr [0x0044d880] TEST RDI,RDI JZ 0x00167b6a PUSH RBP MOV RBP,RSP PUSH RBX PUSH RAX LAB_00167b54: MOV RBX,qword ptr [RDI] CALL 0x0016b256 MOV RDI,RBX TEST RBX,RBX JNZ 0x00167b54 ADD RSP,0x8 POP RBX POP RBP LAB_00167b6a: MOV qword ptr [0x0044d880],0x0 LEA RAX,[0x44d880] MOV qword ptr [0x0044d878],RAX RET
void my_error_unregister_all(void) { long *plVar1; plVar1 = my_errmsgs_globerrs; if (my_errmsgs_globerrs != (long *)0x0) { do { plVar1 = (long *)*plVar1; my_free(); } while (plVar1 != (long *)0x0); } my_errmsgs_globerrs = (long *)0x0; my_errmsgs_list = (int *)&my_errmsgs_globerrs; return; }
31,008
ReplaceAll(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::basic_string_view<char, std::char_traits<char>>, std::basic_string_view<char, std::char_traits<char>>)
Dolphin-anty/Source/Core/Common/StringUtil.cpp
std::string ReplaceAll(std::string result, std::string_view src, std::string_view dest) { size_t pos = 0; if (src == dest) return result; while ((pos = result.find(src, pos)) != std::string::npos) { result.replace(pos, src.size(), dest); pos += dest.length(); } return result; }
O0
cpp
ReplaceAll(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::basic_string_view<char, std::char_traits<char>>, std::basic_string_view<char, std::char_traits<char>>): subq $0x78, %rsp movq %rsi, 0x8(%rsp) movq %rdi, 0x10(%rsp) movq %rdi, %rax movq %rax, 0x18(%rsp) movq %rdi, 0x70(%rsp) movq %rdx, 0x60(%rsp) movq %rcx, 0x68(%rsp) movq %r8, 0x50(%rsp) movq %r9, 0x58(%rsp) movq %rsi, 0x48(%rsp) movq $0x0, 0x40(%rsp) movq 0x60(%rsp), %rax movq %rax, 0x30(%rsp) movq 0x68(%rsp), %rax movq %rax, 0x38(%rsp) movq 0x50(%rsp), %rax movq %rax, 0x20(%rsp) movq 0x58(%rsp), %rax movq %rax, 0x28(%rsp) movq 0x30(%rsp), %rdi movq 0x38(%rsp), %rsi movq 0x20(%rsp), %rdx movq 0x28(%rsp), %rcx callq 0x2a650 testb $0x1, %al jne 0x28a84 jmp 0x28a95 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdi callq 0x19d30 jmp 0x28b04 jmp 0x28a97 movq 0x8(%rsp), %rdi movq 0x40(%rsp), %rdx leaq 0x60(%rsp), %rsi callq 0x2a6e0 movq %rax, 0x40(%rsp) cmpq $-0x1, %rax je 0x28af5 movq 0x40(%rsp), %rax movq %rax, (%rsp) leaq 0x60(%rsp), %rdi callq 0x13470 movq 0x8(%rsp), %rdi movq (%rsp), %rsi movq %rax, %rdx leaq 0x50(%rsp), %rcx callq 0x2a760 leaq 0x50(%rsp), %rdi callq 0x2a7f0 addq 0x40(%rsp), %rax movq %rax, 0x40(%rsp) jmp 0x28a97 movq 0x8(%rsp), %rsi movq 0x10(%rsp), %rdi callq 0x19d30 movq 0x18(%rsp), %rax addq $0x78, %rsp retq nop
_Z10ReplaceAllNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt17basic_string_viewIcS2_ES6_: sub rsp, 78h mov [rsp+78h+var_70], rsi mov [rsp+78h+var_68], rdi mov rax, rdi mov [rsp+78h+var_60], rax mov [rsp+78h+var_8], rdi mov [rsp+78h+var_18], rdx mov [rsp+78h+var_10], rcx mov [rsp+78h+var_28], r8 mov [rsp+78h+var_20], r9 mov [rsp+78h+var_30], rsi mov [rsp+78h+var_38], 0 mov rax, [rsp+78h+var_18] mov [rsp+78h+var_48], rax mov rax, [rsp+78h+var_10] mov [rsp+78h+var_40], rax mov rax, [rsp+78h+var_28] mov [rsp+78h+var_58], rax mov rax, [rsp+78h+var_20] mov [rsp+78h+var_50], rax mov rdi, [rsp+78h+var_48] mov rsi, [rsp+78h+var_40] mov rdx, [rsp+78h+var_58] mov rcx, [rsp+78h+var_50] call _ZSteqIcSt11char_traitsIcEEbSt17basic_string_viewIT_T0_ES5_; std::operator==<char,std::char_traits<char>>(std::string_view,std::string_view) test al, 1 jnz short loc_28A84 jmp short loc_28A95 loc_28A84: mov rsi, [rsp+78h+var_70] mov rdi, [rsp+78h+var_68] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EOS4_; std::string::basic_string(std::string&&) jmp short loc_28B04 loc_28A95: jmp short $+2 loc_28A97: mov rdi, [rsp+78h+var_70] mov rdx, [rsp+78h+var_38] lea rsi, [rsp+78h+var_18] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findISt17basic_string_viewIcS2_EEENSt9enable_ifIXsr6__and_ISt14is_convertibleIRKT_S7_ESt6__not_IS9_IPSB_PKS4_EESE_IS9_ISC_PKcEEEE5valueEmE4typeESC_m mov [rsp+78h+var_38], rax cmp rax, 0FFFFFFFFFFFFFFFFh jz short loc_28AF5 mov rax, [rsp+78h+var_38] mov [rsp+78h+var_78], rax lea rdi, [rsp+78h+var_18] call _ZNKSt17basic_string_viewIcSt11char_traitsIcEE4sizeEv; std::string_view::size(void) mov rdi, [rsp+78h+var_70] mov rsi, [rsp+78h+var_78] mov rdx, rax lea rcx, [rsp+78h+var_28] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7replaceISt17basic_string_viewIcS2_EEENSt9enable_ifIXsr6__and_ISt14is_convertibleIRKT_S7_ESt6__not_IS9_IPSB_PKS4_EESE_IS9_ISC_PKcEEEE5valueERS4_E4typeEmmSC_ lea rdi, [rsp+78h+var_28] call _ZNKSt17basic_string_viewIcSt11char_traitsIcEE6lengthEv; std::string_view::length(void) add rax, [rsp+78h+var_38] mov [rsp+78h+var_38], rax jmp short loc_28A97 loc_28AF5: mov rsi, [rsp+78h+var_70] mov rdi, [rsp+78h+var_68] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2EOS4_; std::string::basic_string(std::string&&) loc_28B04: mov rax, [rsp+78h+var_60] add rsp, 78h retn
_QWORD * ReplaceAll(_QWORD *a1, _QWORD *a2, long long a3, long long a4, long long a5, long long a6) { long long i; // rax long long v7; // rax long long v9; // [rsp+40h] [rbp-38h] long long v10; // [rsp+40h] [rbp-38h] _QWORD v11[2]; // [rsp+50h] [rbp-28h] BYREF _QWORD v12[3]; // [rsp+60h] [rbp-18h] BYREF v12[2] = a1; v12[0] = a3; v12[1] = a4; v11[0] = a5; v11[1] = a6; if ( (std::operator==<char,std::char_traits<char>>(a3, a4, a5, a6) & 1) != 0 ) { std::string::basic_string(a1, a2); } else { for ( i = std::string::find<std::string_view>(a2, v12, 0LL); ; i = std::string::find<std::string_view>(a2, v12, v10) ) { v9 = i; if ( i == -1 ) break; v7 = std::string_view::size((long long)v12); std::string::replace<std::string_view>(a2, v9, v7, v11); v10 = v9 + std::string_view::length(v11); } std::string::basic_string(a1, a2); } return a1; }
ReplaceAll: SUB RSP,0x78 MOV qword ptr [RSP + 0x8],RSI MOV qword ptr [RSP + 0x10],RDI MOV RAX,RDI MOV qword ptr [RSP + 0x18],RAX MOV qword ptr [RSP + 0x70],RDI MOV qword ptr [RSP + 0x60],RDX MOV qword ptr [RSP + 0x68],RCX MOV qword ptr [RSP + 0x50],R8 MOV qword ptr [RSP + 0x58],R9 MOV qword ptr [RSP + 0x48],RSI MOV qword ptr [RSP + 0x40],0x0 MOV RAX,qword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x30],RAX MOV RAX,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0x38],RAX MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RSP + 0x28],RAX MOV RDI,qword ptr [RSP + 0x30] MOV RSI,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RSP + 0x20] MOV RCX,qword ptr [RSP + 0x28] CALL 0x0012a650 TEST AL,0x1 JNZ 0x00128a84 JMP 0x00128a95 LAB_00128a84: MOV RSI,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RSP + 0x10] CALL 0x00119d30 JMP 0x00128b04 LAB_00128a95: JMP 0x00128a97 LAB_00128a97: MOV RDI,qword ptr [RSP + 0x8] MOV RDX,qword ptr [RSP + 0x40] LEA RSI,[RSP + 0x60] CALL 0x0012a6e0 MOV qword ptr [RSP + 0x40],RAX CMP RAX,-0x1 JZ 0x00128af5 MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP],RAX LEA RDI,[RSP + 0x60] CALL 0x00113470 MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RSP] MOV RDX,RAX LEA RCX,[RSP + 0x50] CALL 0x0012a760 LEA RDI,[RSP + 0x50] CALL 0x0012a7f0 ADD RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x40],RAX JMP 0x00128a97 LAB_00128af5: MOV RSI,qword ptr [RSP + 0x8] MOV RDI,qword ptr [RSP + 0x10] CALL 0x00119d30 LAB_00128b04: MOV RAX,qword ptr [RSP + 0x18] ADD RSP,0x78 RET
/* ReplaceAll(std::__cxx11::string, std::basic_string_view<char, std::char_traits<char> >, std::basic_string_view<char, std::char_traits<char> >) */ string * ReplaceAll(string *param_1,string *param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6) { bool bVar1; ulong uVar2; long lVar3; ulong local_38; int8 local_28; int8 local_20; int8 local_18; int8 local_10; string *local_8; local_38 = 0; local_28 = param_5; local_20 = param_6; local_18 = param_3; local_10 = param_4; local_8 = param_1; bVar1 = std::operator==(param_3,param_4,param_5,param_6); if (bVar1) { std::__cxx11::string::string(param_1,param_2); } else { while (local_38 = std::__cxx11::string:: find<std::basic_string_view<char,std::char_traits<char>>> (param_2,(basic_string_view *)&local_18,local_38), local_38 != 0xffffffffffffffff) { uVar2 = std::basic_string_view<char,std::char_traits<char>>::size ((basic_string_view<char,std::char_traits<char>> *)&local_18); std::__cxx11::string::replace<std::basic_string_view<char,std::char_traits<char>>> (param_2,local_38,uVar2,(basic_string_view *)&local_28); lVar3 = std::basic_string_view<char,std::char_traits<char>>::length ((basic_string_view<char,std::char_traits<char>> *)&local_28); local_38 = lVar3 + local_38; } std::__cxx11::string::string(param_1,param_2); } return param_1; }
31,009
my_fprintf
eloqsql/strings/my_vsnprintf.c
int my_fprintf(FILE *stream, const char* format, ...) { int result; va_list args; va_start(args, format); result= my_vfprintf(stream, format, args); va_end(args); return result; }
O3
c
my_fprintf: pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp leaq -0xd0(%rbp), %r10 movq %rdx, 0x10(%r10) movq %rcx, 0x18(%r10) movq %r8, 0x20(%r10) movq %r9, 0x28(%r10) testb %al, %al je 0x619f4 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) leaq -0x20(%rbp), %rdx movq %r10, 0x10(%rdx) leaq 0x10(%rbp), %rax movq %rax, 0x8(%rdx) movabsq $0x3000000010, %rax # imm = 0x3000000010 movq %rax, (%rdx) callq 0x618b8 addq $0xd0, %rsp popq %rbp retq nop
my_fprintf: push rbp mov rbp, rsp sub rsp, 0D0h lea r10, [rbp+var_D0] mov [r10+10h], rdx mov [r10+18h], rcx mov [r10+20h], r8 mov [r10+28h], r9 test al, al jz short loc_619F4 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_619F4: lea rdx, [rbp+var_20] mov [rdx+10h], r10 lea rax, [rbp+arg_0] mov [rdx+8], rax mov rax, 3000000010h mov [rdx], rax call my_vfprintf add rsp, 0D0h pop rbp retn
long long my_fprintf( long long a1, unsigned __int8 *a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14, char a15) { char v16; // [rsp+0h] [rbp-D0h] BYREF long long v17; // [rsp+10h] [rbp-C0h] long long v18; // [rsp+18h] [rbp-B8h] long long v19; // [rsp+20h] [rbp-B0h] long long v20; // [rsp+28h] [rbp-A8h] __m128 v21; // [rsp+30h] [rbp-A0h] __m128 v22; // [rsp+40h] [rbp-90h] __m128 v23; // [rsp+50h] [rbp-80h] __m128 v24; // [rsp+60h] [rbp-70h] __m128 v25; // [rsp+70h] [rbp-60h] __m128 v26; // [rsp+80h] [rbp-50h] __m128 v27; // [rsp+90h] [rbp-40h] __m128 v28; // [rsp+A0h] [rbp-30h] _QWORD v29[4]; // [rsp+B0h] [rbp-20h] BYREF v21 = a7; v22 = a8; v23 = a9; v24 = a10; v25 = a11; v26 = a12; v27 = a13; v28 = a14; v17 = a3; v18 = a4; v19 = a5; v20 = a6; v29[2] = &v16; v29[1] = &a15; v29[0] = 0x3000000010LL; return my_vfprintf(a1, a2, (unsigned int *)v29); }
my_fprintf: PUSH RBP MOV RBP,RSP SUB RSP,0xd0 LEA R10,[RBP + -0xd0] MOV qword ptr [R10 + 0x10],RDX MOV qword ptr [R10 + 0x18],RCX MOV qword ptr [R10 + 0x20],R8 MOV qword ptr [R10 + 0x28],R9 TEST AL,AL JZ 0x001619f4 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_001619f4: LEA RDX,[RBP + -0x20] MOV qword ptr [RDX + 0x10],R10 LEA RAX,[RBP + 0x10] MOV qword ptr [RDX + 0x8],RAX MOV RAX,0x3000000010 MOV qword ptr [RDX],RAX CALL 0x001618b8 ADD RSP,0xd0 POP RBP RET
void my_fprintf(int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, int8 param_9,int8 param_10,int8 param_11,int8 param_12, int8 param_13,int8 param_14) { char in_AL; int1 local_d8 [16]; int8 local_c8; int8 local_c0; int8 local_b8; int8 local_b0; int8 local_a8; int8 local_98; int8 local_88; int8 local_78; int8 local_68; int8 local_58; int8 local_48; int8 local_38; int8 local_28; int1 *local_20; int1 *local_18; local_18 = local_d8; if (in_AL != '\0') { local_a8 = param_1; local_98 = param_2; local_88 = param_3; local_78 = param_4; local_68 = param_5; local_58 = param_6; local_48 = param_7; local_38 = param_8; } local_20 = &stack0x00000008; local_28 = 0x3000000010; local_c8 = param_11; local_c0 = param_12; local_b8 = param_13; local_b0 = param_14; my_vfprintf(); return; }
31,010
emit_class_init_end
bluesky950520[P]quickjs/quickjs.c
static void emit_class_init_end(JSParseState *s, ClassFieldsDef *cf) { int cpool_idx; s->cur_func = cf->fields_init_fd; emit_op(s, OP_return_undef); s->cur_func = s->cur_func->parent; cpool_idx = cpool_add(s, JS_NULL); cf->fields_init_fd->parent_cpool_idx = cpool_idx; emit_op(s, OP_fclosure); emit_u32(s, cpool_idx); emit_op(s, OP_set_home_object); }
O1
c
emit_class_init_end: pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movq %rsi, %r15 movq %rdi, %r14 movq (%rsi), %rax movq %rax, 0x90(%rdi) movl $0x138, %ebx # imm = 0x138 leaq (%rax,%rbx), %rdi movl 0x140(%rax), %ecx movl %ecx, 0x168(%rax) movl $0x29, %esi callq 0x1f52c movq 0x90(%r14), %rax movq 0x8(%rax), %rax movq %rax, 0x90(%r14) movl $0x2, %edx movq %r14, %rdi xorl %esi, %esi callq 0x69197 movl %eax, %ebp movq (%r15), %rax movl %ebp, 0x10(%rax) movq 0x90(%r14), %rax leaq (%rax,%rbx), %rdi movl 0x140(%rax), %ecx movl %ecx, 0x168(%rax) movl $0x3, %esi callq 0x1f52c movq 0x90(%r14), %rdi addq %rbx, %rdi leaq 0x4(%rsp), %rsi movl %ebp, (%rsi) movl $0x4, %edx callq 0x1f47e movq 0x90(%r14), %rax addq %rax, %rbx movl 0x140(%rax), %ecx movl %ecx, 0x168(%rax) movq %rbx, %rdi movl $0x50, %esi callq 0x1f52c addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
emit_class_init_end: push rbp push r15 push r14 push rbx push rax mov r15, rsi mov r14, rdi mov rax, [rsi] mov [rdi+90h], rax mov ebx, 138h lea rdi, [rax+rbx] mov ecx, [rax+140h] mov [rax+168h], ecx mov esi, 29h ; ')' call dbuf_putc mov rax, [r14+90h] mov rax, [rax+8] mov [r14+90h], rax mov edx, 2 mov rdi, r14 xor esi, esi call cpool_add mov ebp, eax mov rax, [r15] mov [rax+10h], ebp mov rax, [r14+90h] lea rdi, [rax+rbx] mov ecx, [rax+140h] mov [rax+168h], ecx mov esi, 3 call dbuf_putc mov rdi, [r14+90h] add rdi, rbx lea rsi, [rsp+28h+var_24] mov [rsi], ebp mov edx, 4 call dbuf_put mov rax, [r14+90h] add rbx, rax mov ecx, [rax+140h] mov [rax+168h], ecx mov rdi, rbx mov esi, 50h ; 'P' call dbuf_putc add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long emit_class_init_end(long long *a1, long long *a2) { long long v2; // rax long long v4; // rax int v5; // ebp long long v6; // rax _QWORD *v7; // rdi long long v8; // rax int v10[9]; // [rsp+0h] [rbp-24h] BYREF v10[0] = HIDWORD(v2); v4 = *a2; a1[18] = *a2; *(_DWORD *)(v4 + 360) = *(_DWORD *)(v4 + 320); dbuf_putc((_QWORD *)(v4 + 312), 41); a1[18] = *(_QWORD *)(a1[18] + 8); v5 = cpool_add(a1, 0LL, 2LL); *(_DWORD *)(*a2 + 16) = v5; v6 = a1[18]; *(_DWORD *)(v6 + 360) = *(_DWORD *)(v6 + 320); dbuf_putc((_QWORD *)(v6 + 312), 3); v7 = (_QWORD *)(a1[18] + 312); v10[0] = v5; dbuf_put(v7, (long long)v10, 4LL); v8 = a1[18]; *(_DWORD *)(v8 + 360) = *(_DWORD *)(v8 + 320); return dbuf_putc((_QWORD *)(v8 + 312), 80); }
emit_class_init_end: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV R15,RSI MOV R14,RDI MOV RAX,qword ptr [RSI] MOV qword ptr [RDI + 0x90],RAX MOV EBX,0x138 LEA RDI,[RAX + RBX*0x1] MOV ECX,dword ptr [RAX + 0x140] MOV dword ptr [RAX + 0x168],ECX MOV ESI,0x29 CALL 0x0011f52c MOV RAX,qword ptr [R14 + 0x90] MOV RAX,qword ptr [RAX + 0x8] MOV qword ptr [R14 + 0x90],RAX MOV EDX,0x2 MOV RDI,R14 XOR ESI,ESI CALL 0x00169197 MOV EBP,EAX MOV RAX,qword ptr [R15] MOV dword ptr [RAX + 0x10],EBP MOV RAX,qword ptr [R14 + 0x90] LEA RDI,[RAX + RBX*0x1] MOV ECX,dword ptr [RAX + 0x140] MOV dword ptr [RAX + 0x168],ECX MOV ESI,0x3 CALL 0x0011f52c MOV RDI,qword ptr [R14 + 0x90] ADD RDI,RBX LEA RSI,[RSP + 0x4] MOV dword ptr [RSI],EBP MOV EDX,0x4 CALL 0x0011f47e MOV RAX,qword ptr [R14 + 0x90] ADD RBX,RAX MOV ECX,dword ptr [RAX + 0x140] MOV dword ptr [RAX + 0x168],ECX MOV RDI,RBX MOV ESI,0x50 CALL 0x0011f52c ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
void emit_class_init_end(long param_1,long *param_2) { long lVar1; int4 uVar2; int1 local_24 [4]; lVar1 = *param_2; *(long *)(param_1 + 0x90) = lVar1; *(int4 *)(lVar1 + 0x168) = *(int4 *)(lVar1 + 0x140); dbuf_putc(lVar1 + 0x138,0x29); *(int8 *)(param_1 + 0x90) = *(int8 *)(*(long *)(param_1 + 0x90) + 8); uVar2 = cpool_add(param_1,0,2); *(int4 *)(*param_2 + 0x10) = uVar2; lVar1 = *(long *)(param_1 + 0x90); *(int4 *)(lVar1 + 0x168) = *(int4 *)(lVar1 + 0x140); dbuf_putc(lVar1 + 0x138,3); dbuf_put(*(long *)(param_1 + 0x90) + 0x138,local_24,4); lVar1 = *(long *)(param_1 + 0x90); *(int4 *)(lVar1 + 0x168) = *(int4 *)(lVar1 + 0x140); dbuf_putc(lVar1 + 0x138,0x50); return; }
31,011
mi_get_status
eloqsql/storage/myisam/mi_locking.c
my_bool mi_get_status(void* param, my_bool concurrent_insert) { MI_INFO *info=(MI_INFO*) param; DBUG_ENTER("mi_get_status"); DBUG_PRINT("info",("name: %s key_file: %lu data_file: %lu rows: %lu concurrent_insert: %d", info->s->index_file_name, (ulong) info->s->state.state.key_file_length, (ulong) info->s->state.state.data_file_length, (ulong) info->s->state.state.records, concurrent_insert)); #ifndef DBUG_OFF if (info->state->key_file_length > info->s->state.state.key_file_length || info->state->data_file_length > info->s->state.state.data_file_length) DBUG_PRINT("warning",("old info: key_file: %ld data_file: %ld", (long) info->state->key_file_length, (long) info->state->data_file_length)); #endif info->save_state=info->s->state.state; info->state= &info->save_state; info->append_insert_at_end= concurrent_insert; if (concurrent_insert) info->s->state.state.uncacheable= TRUE; DBUG_RETURN(0); }
O0
c
mi_get_status: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movb %sil, %al movq %rdi, -0x8(%rbp) movb %al, -0x9(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) jmp 0x3086c movq -0x18(%rbp), %rdi addq $0x10, %rdi movq -0x18(%rbp), %rax movq (%rax), %rsi addq $0x18, %rsi movl $0x38, %edx callq 0x282a0 movq -0x18(%rbp), %rcx addq $0x10, %rcx movq -0x18(%rbp), %rax movq %rcx, 0x8(%rax) movb -0x9(%rbp), %cl movq -0x18(%rbp), %rax movb %cl, 0x33a(%rax) cmpb $0x0, -0x9(%rbp) je 0x308b7 movq -0x18(%rbp), %rax movq (%rax), %rax movb $0x1, 0x4c(%rax) jmp 0x308b9 jmp 0x308bb xorl %eax, %eax addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
mi_get_status: push rbp mov rbp, rsp sub rsp, 20h mov al, sil mov [rbp+var_8], rdi mov [rbp+var_9], al mov rax, [rbp+var_8] mov [rbp+var_18], rax jmp short $+2 loc_3086C: mov rdi, [rbp+var_18] add rdi, 10h mov rax, [rbp+var_18] mov rsi, [rax] add rsi, 18h mov edx, 38h ; '8' call _memcpy mov rcx, [rbp+var_18] add rcx, 10h mov rax, [rbp+var_18] mov [rax+8], rcx mov cl, [rbp+var_9] mov rax, [rbp+var_18] mov [rax+33Ah], cl cmp [rbp+var_9], 0 jz short loc_308B7 mov rax, [rbp+var_18] mov rax, [rax] mov byte ptr [rax+4Ch], 1 loc_308B7: jmp short $+2 loc_308B9: jmp short $+2 loc_308BB: xor eax, eax add rsp, 20h pop rbp retn
long long mi_get_status(long long a1, char a2) { memcpy(a1 + 16, *(_QWORD *)a1 + 24LL, 56LL); *(_QWORD *)(a1 + 8) = a1 + 16; *(_BYTE *)(a1 + 826) = a2; if ( a2 ) *(_BYTE *)(*(_QWORD *)a1 + 76LL) = 1; return 0LL; }
mi_get_status: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV AL,SIL MOV qword ptr [RBP + -0x8],RDI MOV byte ptr [RBP + -0x9],AL MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x18],RAX JMP 0x0013086c LAB_0013086c: MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x10 MOV RAX,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RAX] ADD RSI,0x18 MOV EDX,0x38 CALL 0x001282a0 MOV RCX,qword ptr [RBP + -0x18] ADD RCX,0x10 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x8],RCX MOV CL,byte ptr [RBP + -0x9] MOV RAX,qword ptr [RBP + -0x18] MOV byte ptr [RAX + 0x33a],CL CMP byte ptr [RBP + -0x9],0x0 JZ 0x001308b7 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX] MOV byte ptr [RAX + 0x4c],0x1 LAB_001308b7: JMP 0x001308b9 LAB_001308b9: JMP 0x001308bb LAB_001308bb: XOR EAX,EAX ADD RSP,0x20 POP RBP RET
int8 mi_get_status(long *param_1,char param_2) { memcpy(param_1 + 2,(void *)(*param_1 + 0x18),0x38); param_1[1] = (long)(param_1 + 2); *(char *)((long)param_1 + 0x33a) = param_2; if (param_2 != '\0') { *(int1 *)(*param_1 + 0x4c) = 1; } return 0; }
31,012
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, 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>>>>>::start_object(unsigned long)
11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp
bool start_object(std::size_t len) { ref_stack.push_back(handle_value(BasicJsonType::value_t::object)); #if JSON_DIAGNOSTIC_POSITIONS // Manually set the start position of the object here. // Ensure this is after the call to handle_value to ensure correct start position. if (m_lexer_ref) { // Lexer has read the first character of the object, so // subtract 1 from the position to get the correct start position. ref_stack.back()->start_position = m_lexer_ref->get_position() - 1; } #endif if (JSON_HEDLEY_UNLIKELY(len != detail::unknown_size() && len > ref_stack.back()->max_size())) { JSON_THROW(out_of_range::create(408, concat("excessive object size: ", std::to_string(len)), ref_stack.back())); } return true; }
O0
cpp
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, 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>>>>>::start_object(unsigned long): pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x88(%rbp) movq %rdi, %rax addq $0x8, %rax movq %rax, -0x80(%rbp) movb $0x1, -0x19(%rbp) leaq -0x19(%rbp), %rsi callq 0x61440 movq -0x80(%rbp), %rdi movq %rax, -0x18(%rbp) leaq -0x18(%rbp), %rsi callq 0x5c220 movq -0x10(%rbp), %rax movq %rax, -0x78(%rbp) callq 0x5e610 movq -0x78(%rbp), %rcx movq %rax, %rdx xorl %eax, %eax cmpq %rdx, %rcx movb %al, -0x6e(%rbp) je 0x8808b movq -0x88(%rbp), %rdi movq -0x10(%rbp), %rax movq %rax, -0x90(%rbp) addq $0x8, %rdi callq 0x60240 movq (%rax), %rdi callq 0x5f6a0 movq %rax, %rcx movq -0x90(%rbp), %rax cmpq %rcx, %rax seta %al movb %al, -0x6e(%rbp) movb -0x6e(%rbp), %al xorb $-0x1, %al xorb $-0x1, %al testb $0x1, %al jne 0x8809b jmp 0x8816f movb $0x1, -0x6d(%rbp) movl $0x20, %edi callq 0x5c6c0 movq %rax, -0x98(%rbp) movq -0x10(%rbp), %rsi leaq -0x60(%rbp), %rdi callq 0x5c060 jmp 0x880bf leaq 0x79f3(%rip), %rsi # 0x8fab9 leaq -0x40(%rbp), %rdi leaq -0x60(%rbp), %rdx callq 0x5d5d0 jmp 0x880d5 movq -0x88(%rbp), %rdi addq $0x8, %rdi callq 0x60240 movq -0x98(%rbp), %rdi movq (%rax), %rcx movl $0x198, %esi # imm = 0x198 leaq -0x40(%rbp), %rdx callq 0x5d990 jmp 0x880ff movq -0x98(%rbp), %rdi movb $0x0, -0x6d(%rbp) movq 0x1ee8f(%rip), %rsi # 0xa6fa0 movq 0x1ee20(%rip), %rdx # 0xa6f38 callq 0x60f20 jmp 0x88185 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x68(%rbp) movl %eax, -0x6c(%rbp) jmp 0x88159 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x68(%rbp) movl %eax, -0x6c(%rbp) jmp 0x88150 movq %rax, %rcx movl %edx, %eax movq %rcx, -0x68(%rbp) movl %eax, -0x6c(%rbp) leaq -0x40(%rbp), %rdi callq 0x5cfd0 leaq -0x60(%rbp), %rdi callq 0x5cfd0 testb $0x1, -0x6d(%rbp) jne 0x88161 jmp 0x8816d movq -0x98(%rbp), %rdi callq 0x5d520 jmp 0x8817c movb $0x1, %al andb $0x1, %al addq $0xa0, %rsp popq %rbp retq movq -0x68(%rbp), %rdi callq 0x611b0 nopw %cs:(%rax,%rax) nop
_ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE12start_objectEm: push rbp mov rbp, rsp sub rsp, 0A0h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov rdi, [rbp+var_8] mov [rbp+var_88], rdi mov rax, rdi add rax, 8 mov [rbp+var_80], rax mov [rbp+var_19], 1 lea rsi, [rbp+var_19] call __ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE12handle_valueINS1_7value_tEEEPSF_OT_; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<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::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(nlohmann::json_abi_v3_11_3::detail::value_t &&) mov rdi, [rbp+var_80]; this mov [rbp+var_18], rax lea rsi, [rbp+var_18] call __ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE9push_backEOSE_; std::vector<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> *,std::allocator<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> *>>::push_back(nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> *&&) mov rax, [rbp+var_10] mov [rbp+var_78], rax call __ZN8nlohmann16json_abi_v3_11_36detail12unknown_sizeEv; nlohmann::json_abi_v3_11_3::detail::unknown_size(void) mov rcx, [rbp+var_78] mov rdx, rax xor eax, eax cmp rcx, rdx mov [rbp+var_6E], al jz short loc_8808B mov rdi, [rbp+var_88] mov rax, [rbp+var_10] mov [rbp+var_90], rax add rdi, 8 call __ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<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> *,std::allocator<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> *>>::back(void) mov rdi, [rax] call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8max_sizeEv; 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>::max_size(void) mov rcx, rax mov rax, [rbp+var_90] cmp rax, rcx setnbe al mov [rbp+var_6E], al loc_8808B: mov al, [rbp+var_6E] xor al, 0FFh xor al, 0FFh test al, 1 jnz short loc_8809B jmp loc_8816F loc_8809B: mov [rbp+var_6D], 1 mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov [rbp+var_98], rax mov rsi, [rbp+var_10]; unsigned __int64 lea rdi, [rbp+var_60]; this call __ZNSt7__cxx119to_stringEm; std::to_string(ulong) jmp short $+2 loc_880BF: lea rsi, aExcessiveObjec; "excessive object size: " lea rdi, [rbp+var_40] lea rdx, [rbp+var_60] call __ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA24_KcS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[24],std::string>(char const(&)[24],std::string &&) jmp short $+2 loc_880D5: mov rdi, [rbp+var_88] add rdi, 8 call __ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE4backEv; std::vector<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> *,std::allocator<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> *>>::back(void) mov rdi, [rbp+var_98] mov rcx, [rax] mov esi, 198h lea rdx, [rbp+var_40] call __ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ jmp short $+2 loc_880FF: mov rdi, [rbp+var_98]; void * mov [rbp+var_6D], 0 mov rsi, cs:_ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE_ptr; lptinfo mov rdx, cs:_ZN8nlohmann16json_abi_v3_11_36detail12out_of_rangeD2Ev_ptr; void (*)(void *) call ___cxa_throw jmp short loc_88185 mov rcx, rax mov eax, edx mov [rbp+var_68], rcx mov [rbp+var_6C], eax jmp short loc_88159 mov rcx, rax mov eax, edx mov [rbp+var_68], rcx mov [rbp+var_6C], eax jmp short loc_88150 mov rcx, rax mov eax, edx mov [rbp+var_68], rcx mov [rbp+var_6C], eax lea rdi, [rbp+var_40] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_88150: lea rdi, [rbp+var_60] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_88159: test [rbp+var_6D], 1 jnz short loc_88161 jmp short loc_8816D loc_88161: mov rdi, [rbp+var_98]; void * call ___cxa_free_exception loc_8816D: jmp short loc_8817C loc_8816F: mov al, 1 and al, 1 add rsp, 0A0h pop rbp retn loc_8817C: mov rdi, [rbp+var_68] call __Unwind_Resume loc_88185: nop word ptr [rax+rax+00000000h] nop
char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::start_object( long long a1, unsigned long long a2) { long long v2; // rax nlohmann::json_abi_v3_11_3::detail *v3; // rdi _QWORD *v4; // rax _QWORD *v5; // rax void *exception; // [rsp+8h] [rbp-98h] unsigned long long v8; // [rsp+10h] [rbp-90h] unsigned long long v10; // [rsp+28h] [rbp-78h] bool v11; // [rsp+32h] [rbp-6Eh] _BYTE v12[32]; // [rsp+40h] [rbp-60h] BYREF _BYTE v13[39]; // [rsp+60h] [rbp-40h] BYREF char v14; // [rsp+87h] [rbp-19h] BYREF long long v15; // [rsp+88h] [rbp-18h] BYREF unsigned long long v16; // [rsp+90h] [rbp-10h] long long v17; // [rsp+98h] [rbp-8h] v17 = a1; v16 = a2; v14 = 1; v2 = nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>( a1, &v14); v3 = (nlohmann::json_abi_v3_11_3::detail *)(a1 + 8); v15 = v2; std::vector<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> *,std::allocator<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> *>>::push_back( v3, &v15); v10 = v16; v11 = 0; if ( v10 != nlohmann::json_abi_v3_11_3::detail::unknown_size(v3) ) { v8 = v16; v4 = (_QWORD *)std::vector<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> *,std::allocator<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> *>>::back(a1 + 8); v11 = v8 > 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>::max_size(*v4); } if ( v11 ) { exception = __cxa_allocate_exception(0x20uLL); std::to_string((std::__cxx11 *)v12, v16); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[24],std::string>( v13, "excessive object size: ", v12); v5 = (_QWORD *)std::vector<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> *,std::allocator<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> *>>::back(a1 + 8); _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( exception, 408LL, v13, *v5); __cxa_throw( exception, (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 1; }
start_object: PUSH RBP MOV RBP,RSP SUB RSP,0xa0 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV RDI,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x88],RDI MOV RAX,RDI ADD RAX,0x8 MOV qword ptr [RBP + -0x80],RAX MOV byte ptr [RBP + -0x19],0x1 LEA RSI,[RBP + -0x19] CALL 0x00161440 MOV RDI,qword ptr [RBP + -0x80] MOV qword ptr [RBP + -0x18],RAX LEA RSI,[RBP + -0x18] CALL 0x0015c220 MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x78],RAX CALL 0x0015e610 MOV RCX,qword ptr [RBP + -0x78] MOV RDX,RAX XOR EAX,EAX CMP RCX,RDX MOV byte ptr [RBP + -0x6e],AL JZ 0x0018808b MOV RDI,qword ptr [RBP + -0x88] MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x90],RAX ADD RDI,0x8 CALL 0x00160240 MOV RDI,qword ptr [RAX] CALL 0x0015f6a0 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0x90] CMP RAX,RCX SETA AL MOV byte ptr [RBP + -0x6e],AL LAB_0018808b: MOV AL,byte ptr [RBP + -0x6e] XOR AL,0xff XOR AL,0xff TEST AL,0x1 JNZ 0x0018809b JMP 0x0018816f LAB_0018809b: MOV byte ptr [RBP + -0x6d],0x1 MOV EDI,0x20 CALL 0x0015c6c0 MOV qword ptr [RBP + -0x98],RAX MOV RSI,qword ptr [RBP + -0x10] LAB_001880b4: LEA RDI,[RBP + -0x60] CALL 0x0015c060 JMP 0x001880bf LAB_001880bf: LEA RSI,[0x18fab9] LEA RDI,[RBP + -0x40] LEA RDX,[RBP + -0x60] CALL 0x0015d5d0 JMP 0x001880d5 LAB_001880d5: MOV RDI,qword ptr [RBP + -0x88] ADD RDI,0x8 CALL 0x00160240 MOV RDI,qword ptr [RBP + -0x98] MOV RCX,qword ptr [RAX] LAB_001880ef: MOV ESI,0x198 LEA RDX,[RBP + -0x40] CALL 0x0015d990 JMP 0x001880ff LAB_001880ff: MOV RDI,qword ptr [RBP + -0x98] MOV byte ptr [RBP + -0x6d],0x0 MOV RSI,qword ptr [0x001a6fa0] MOV RDX,qword ptr [0x001a6f38] CALL 0x00160f20 LAB_0018816f: MOV AL,0x1 AND AL,0x1 ADD RSP,0xa0 POP RBP RET
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > > >::start_object(unsigned long) */ int8 __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::start_object(json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> *this,ulong param_1) { bool bVar1; ulong uVar2; ulong uVar3; int8 *puVar4; ulong uVar5; int7 uVar7; int8 uVar6; __cxx11 local_68 [32]; detail local_48 [39]; value_t local_21; basic_json *local_20; ulong local_18; json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> *local_10; local_21 = 1; local_18 = param_1; local_10 = this; local_20 = handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(this,&local_21); std:: vector<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>*,std::allocator<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>*>> ::push_back((vector<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>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8),&local_20); uVar5 = local_18; uVar3 = unknown_size(); uVar2 = local_18; uVar7 = 0; bVar1 = false; if (uVar5 != uVar3) { puVar4 = (int8 *) std:: vector<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>*,std::allocator<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>*>> ::back((vector<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>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); uVar5 = 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> ::max_size((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> *)*puVar4); bVar1 = uVar5 < uVar2; uVar7 = (int7)(uVar2 >> 8); } if (!bVar1) { return CONCAT71(uVar7,1); } uVar6 = __cxa_allocate_exception(0x20); /* try { // try from 001880b4 to 001880bc has its CatchHandler @ 0018811f */ std::__cxx11::to_string(local_68,local_18); /* try { // try from 001880bf to 001880d2 has its CatchHandler @ 0018812d */ concat<std::__cxx11::string,char_const(&)[24],std::__cxx11::string> (local_48,"excessive object size: ",(string *)local_68); puVar4 = (int8 *) std:: vector<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>*,std::allocator<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>*>> ::back((vector<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>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8)); /* try { // try from 001880ef to 0018811c has its CatchHandler @ 0018813b */ _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar6,0x198,local_48,*puVar4); /* WARNING: Subroutine does not return */ __cxa_throw(uVar6,PTR_typeinfo_001a6fa0,PTR__out_of_range_001a6f38); }
31,013
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, 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>>>>>::start_object(unsigned long)
11AgReS1SoR11[P]Graph/Common/FiguresStorage/src/json.hpp
bool start_object(std::size_t len) { ref_stack.push_back(handle_value(BasicJsonType::value_t::object)); #if JSON_DIAGNOSTIC_POSITIONS // Manually set the start position of the object here. // Ensure this is after the call to handle_value to ensure correct start position. if (m_lexer_ref) { // Lexer has read the first character of the object, so // subtract 1 from the position to get the correct start position. ref_stack.back()->start_position = m_lexer_ref->get_position() - 1; } #endif if (JSON_HEDLEY_UNLIKELY(len != detail::unknown_size() && len > ref_stack.back()->max_size())) { JSON_THROW(out_of_range::create(408, concat("excessive object size: ", std::to_string(len)), ref_stack.back())); } return true; }
O2
cpp
nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>, 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>>>>>::start_object(unsigned long): pushq %rbp pushq %r15 pushq %r14 pushq %rbx subq $0x48, %rsp movq %rsi, %r15 movq %rdi, %r14 leaq 0x8(%rdi), %rbx leaq 0x8(%rsp), %rsi movb $0x1, (%rsi) callq 0x1dd50 leaq 0x28(%rsp), %rsi movq %rax, (%rsi) movq %rbx, %rdi callq 0x1d950 cmpq $-0x1, %r15 je 0x29759 movq 0x10(%r14), %rax movq -0x8(%rax), %rdi callq 0x1d560 cmpq %r15, %rax jb 0x29766 movb $0x1, %al addq $0x48, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq pushq $0x20 popq %rdi callq 0x1c790 movq %rax, %rbx leaq 0x8(%rsp), %rdi movq %r15, %rsi callq 0x1c560 leaq 0x4672(%rip), %rsi # 0x2ddf7 leaq 0x28(%rsp), %rdi leaq 0x8(%rsp), %rdx callq 0x1cc90 movq 0x10(%r14), %rax movq -0x8(%rax), %rcx movb $0x1, %bpl leaq 0x28(%rsp), %rdx movq %rbx, %rdi movl $0x198, %esi # imm = 0x198 callq 0x1cdd0 xorl %ebp, %ebp movq 0xf7f6(%rip), %rsi # 0x38fb0 movq 0xf78f(%rip), %rdx # 0x38f50 movq %rbx, %rdi callq 0x1dc20 movq %rax, %r14 leaq 0x28(%rsp), %rdi callq 0x1c6f0 jmp 0x297de movq %rax, %r14 movb $0x1, %bpl leaq 0x8(%rsp), %rdi callq 0x1c6f0 testb %bpl, %bpl jne 0x297f2 jmp 0x297fa movq %rax, %r14 movq %rbx, %rdi callq 0x1cc30 movq %r14, %rdi callq 0x1dcb0
_ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE12start_objectEm: push rbp; char push r15; int push r14; int push rbx; int sub rsp, 48h mov r15, rsi mov r14, rdi lea rbx, [rdi+8] lea rsi, [rsp+68h+var_60] mov byte ptr [rsi], 1 call __ZN8nlohmann16json_abi_v3_11_36detail19json_sax_dom_parserINS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES5_IhSaIhEEvEENS1_22iterator_input_adapterIN9__gnu_cxx17__normal_iteratorIPKcSB_EEEEE12handle_valueINS1_7value_tEEEPSF_OT_; nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<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::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(nlohmann::json_abi_v3_11_3::detail::value_t &&) lea rsi, [rsp+68h+var_40] mov [rsi], rax mov rdi, rbx call __ZNSt6vectorIPN8nlohmann16json_abi_v3_11_310basic_jsonISt3mapS_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISE_EE12emplace_backIJSE_EEERSE_DpOT_; std::vector<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> *,std::allocator<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> *>>::emplace_back<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::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> * &&) cmp r15, 0FFFFFFFFFFFFFFFFh jz short loc_29759 mov rax, [r14+10h] mov rdi, [rax-8] call __ZNK8nlohmann16json_abi_v3_11_310basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8max_sizeEv; 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>::max_size(void) cmp rax, r15 jb short loc_29766 loc_29759: mov al, 1 add rsp, 48h pop rbx pop r14 pop r15 pop rbp retn loc_29766: push 20h ; ' ' pop rdi; thrown_size call ___cxa_allocate_exception mov rbx, rax lea rdi, [rsp+68h+var_60]; this mov rsi, r15; unsigned __int64 call __ZNSt7__cxx119to_stringEm; std::to_string(ulong) lea rsi, aExcessiveObjec; "excessive object size: " lea rdi, [rsp+68h+var_40] lea rdx, [rsp+68h+var_60] call __ZN8nlohmann16json_abi_v3_11_36detail6concatINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEJRA24_KcS8_EEET_DpOT0_; nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[24],std::string>(char const(&)[24],std::string &&) mov rax, [r14+10h] mov rcx, [rax-8] mov bpl, 1 lea rdx, [rsp+68h+var_40] mov rdi, rbx; this mov esi, 198h; int call __ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ xor ebp, ebp mov rsi, cs:_ZTIN8nlohmann16json_abi_v3_11_36detail12out_of_rangeE_ptr; lptinfo mov rdx, cs:_ZN8nlohmann16json_abi_v3_11_36detail9exceptionD2Ev_ptr; void (*)(void *) mov rdi, rbx; void * call ___cxa_throw mov r14, rax lea rdi, [rsp+68h+var_40] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_297DE mov r14, rax mov bpl, 1 loc_297DE: lea rdi, [rsp+68h+var_60] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() test bpl, bpl jnz short loc_297F2 jmp short loc_297FA mov r14, rax loc_297F2: mov rdi, rbx; void * call ___cxa_free_exception loc_297FA: mov rdi, r14 call __Unwind_Resume
char nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::start_object( long long a1, unsigned long long a2) { nlohmann::json_abi_v3_11_3::detail::out_of_range *exception; // rbx char v4; // [rsp+0h] [rbp-68h] int v5[6]; // [rsp+8h] [rbp-60h] BYREF char v6; // [rsp+20h] [rbp-48h] long long v7; // [rsp+28h] [rbp-40h] BYREF int v8; // [rsp+30h] [rbp-38h] int v9; // [rsp+38h] [rbp-30h] char v10; // [rsp+40h] [rbp-28h] int v11; // [rsp+48h] [rbp-20h] int v12; // [rsp+50h] [rbp-18h] int v13; // [rsp+58h] [rbp-10h] char v14; // [rsp+60h] [rbp-8h] LOBYTE(v5[0]) = 1; v7 = nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*,std::string>>>::handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>( a1, v5); std::vector<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> *,std::allocator<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> *>>::emplace_back<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> *>(a1 + 8); if ( a2 != -1LL && 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>::max_size(*(_QWORD *)(*(_QWORD *)(a1 + 16) - 8LL)) < a2 ) { exception = (nlohmann::json_abi_v3_11_3::detail::out_of_range *)__cxa_allocate_exception(0x20uLL); std::to_string((std::__cxx11 *)v5, a2); nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[24],std::string>( &v7, "excessive object size: ", v5); _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_( exception, 408, v4, v5[0], v5[2], v5[4], v6, v7, v8, v9, v10, v11, v12, v13, v14); __cxa_throw( exception, (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 1; }
start_object: PUSH RBP PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x48 MOV R15,RSI MOV R14,RDI LEA RBX,[RDI + 0x8] LEA RSI,[RSP + 0x8] MOV byte ptr [RSI],0x1 CALL 0x0011dd50 LEA RSI,[RSP + 0x28] MOV qword ptr [RSI],RAX MOV RDI,RBX CALL 0x0011d950 CMP R15,-0x1 JZ 0x00129759 MOV RAX,qword ptr [R14 + 0x10] MOV RDI,qword ptr [RAX + -0x8] CALL 0x0011d560 CMP RAX,R15 JC 0x00129766 LAB_00129759: MOV AL,0x1 ADD RSP,0x48 POP RBX POP R14 POP R15 POP RBP RET LAB_00129766: PUSH 0x20 POP RDI CALL 0x0011c790 MOV RBX,RAX LAB_00129771: LEA RDI,[RSP + 0x8] MOV RSI,R15 CALL 0x0011c560 LAB_0012977e: LEA RSI,[0x12ddf7] LEA RDI,[RSP + 0x28] LEA RDX,[RSP + 0x8] CALL 0x0011cc90 MOV RAX,qword ptr [R14 + 0x10] MOV RCX,qword ptr [RAX + -0x8] MOV BPL,0x1 LAB_0012979f: LEA RDX,[RSP + 0x28] MOV RDI,RBX MOV ESI,0x198 CALL 0x0011cdd0 XOR EBP,EBP MOV RSI,qword ptr [0x00138fb0] MOV RDX,qword ptr [0x00138f50] MOV RDI,RBX CALL 0x0011dc20
/* nlohmann::json_abi_v3_11_3::detail::json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>, nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::string > > >::start_object(unsigned long) */ int8 __thiscall nlohmann::json_abi_v3_11_3::detail:: json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> ::start_object(json_sax_dom_parser<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,nlohmann::json_abi_v3_11_3::detail::iterator_input_adapter<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>>> *this,ulong param_1) { ulong uVar1; int8 uVar2; __cxx11 local_60 [32]; basic_json *local_40 [4]; local_60[0] = (__cxx11)0x1; local_40[0] = handle_value<nlohmann::json_abi_v3_11_3::detail::value_t>(this,local_60); std:: vector<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>*,std::allocator<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>*>> :: emplace_back<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>*> ((vector<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>*,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*>> *)(this + 8),local_40); if (param_1 != 0xffffffffffffffff) { uVar1 = 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> ::max_size(*(basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> **)(*(long *)(this + 0x10) + -8)); if (uVar1 < param_1) { uVar2 = __cxa_allocate_exception(0x20); /* try { // try from 00129771 to 0012977d has its CatchHandler @ 001297ef */ std::__cxx11::to_string(local_60,param_1); /* try { // try from 0012977e to 00129793 has its CatchHandler @ 001297d8 */ concat<std::__cxx11::string,char_const(&)[24],std::__cxx11::string> ((detail *)local_40,"excessive object size: ",(string *)local_60); /* try { // try from 0012979f to 001297c8 has its CatchHandler @ 001297c9 */ _ZN8nlohmann16json_abi_v3_11_36detail12out_of_range6createIPNS0_10basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES6_IhSaIhEEvEETnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKSC_SJ_ (uVar2,0x198,local_40,*(int8 *)(*(long *)(this + 0x10) + -8)); /* WARNING: Subroutine does not return */ __cxa_throw(uVar2,PTR_typeinfo_00138fb0,PTR__exception_00138f50); } } return 1; }
31,014
minja::Value::Value(std::shared_ptr<std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::ArgumentsValue&)>> const&)
monkey531[P]llama/common/minja.hpp
Value(const std::shared_ptr<CallableType> & callable) : object_(std::make_shared<ObjectType>()), callable_(callable) {}
O1
cpp
minja::Value::Value(std::shared_ptr<std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::ArgumentsValue&)>> const&): pushq %r14 pushq %rbx pushq %rax movq %rsi, %r14 movq %rdi, %rbx xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rdi) movups %xmm0, (%rdi) movq $0x0, 0x20(%rdi) movl $0x30, %edi callq 0x1b8a0 movabsq $0x100000001, %rcx # imm = 0x100000001 movq %rcx, 0x8(%rax) leaq 0x971db(%rip), %rcx # 0x12e428 addq $0x10, %rcx movq %rcx, (%rax) movq %rax, %rcx addq $0x10, %rcx xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rax) movq $0x0, 0x20(%rax) movq %rax, 0x28(%rbx) movq %rcx, 0x20(%rbx) movq (%r14), %rax movq %rax, 0x30(%rbx) movq 0x8(%r14), %rax movq %rax, 0x38(%rbx) testq %rax, %rax je 0x9729b movq 0x98cf3(%rip), %rcx # 0x12ff80 cmpb $0x0, (%rcx) je 0x97297 incl 0x8(%rax) jmp 0x9729b lock incl 0x8(%rax) leaq 0x40(%rbx), %r14 movb $0x0, 0x40(%rbx) movq $0x0, 0x48(%rbx) movq %r14, %rdi movl $0x1, %esi callq 0x5869e movq %r14, %rdi movl $0x1, %esi addq $0x8, %rsp popq %rbx popq %r14 jmp 0x5869e movq %rax, %r14 movq 0x18(%rbx), %rdi testq %rdi, %rdi je 0x972dd callq 0x6d7f6 movq %rbx, %rdi callq 0x88306 movq %r14, %rdi callq 0x1bf90 nop
_ZN5minja5ValueC2ERKSt10shared_ptrISt8functionIFS0_RKS1_INS_7ContextEERNS_14ArgumentsValueEEEE: push r14 push rbx push rax mov r14, rsi mov rbx, rdi xorps xmm0, xmm0 movups xmmword ptr [rdi+10h], xmm0 movups xmmword ptr [rdi], xmm0 mov qword ptr [rdi+20h], 0 mov edi, 30h ; '0'; unsigned __int64 call __Znwm; operator new(ulong) mov rcx, 100000001h mov [rax+8], rcx lea rcx, _ZTVSt23_Sp_counted_ptr_inplaceIN8nlohmann16json_abi_v3_11_311ordered_mapINS1_10basic_jsonIS2_St6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES4_IhSaIhEEvEEN5minja5ValueESt4lessISE_ESaISt4pairIKSE_SG_EEEESaISN_ELN9__gnu_cxx12_Lock_policyE2EE; `vtable for'std::_Sp_counted_ptr_inplace<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>,std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const,minja::Value>>>>,(__gnu_cxx::_Lock_policy)2> add rcx, 10h mov [rax], rcx mov rcx, rax add rcx, 10h xorps xmm0, xmm0 movups xmmword ptr [rax+10h], xmm0 mov qword ptr [rax+20h], 0 mov [rbx+28h], rax mov [rbx+20h], rcx mov rax, [r14] mov [rbx+30h], rax mov rax, [r14+8] mov [rbx+38h], rax test rax, rax jz short loc_9729B mov rcx, cs:__libc_single_threaded_ptr cmp byte ptr [rcx], 0 jz short loc_97297 inc dword ptr [rax+8] jmp short loc_9729B loc_97297: lock inc dword ptr [rax+8] loc_9729B: lea r14, [rbx+40h] mov byte ptr [rbx+40h], 0 mov qword ptr [rbx+48h], 0 mov rdi, r14 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r14 mov esi, 1 add rsp, 8 pop rbx pop r14 jmp _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 r14, rax mov rdi, [rbx+18h] test rdi, rdi jz short loc_972DD call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_972DD: mov rdi, rbx call _ZNSt23enable_shared_from_thisIN5minja5ValueEED2Ev; std::enable_shared_from_this<minja::Value>::~enable_shared_from_this() mov rdi, r14 call __Unwind_Resume
long long minja::Value::Value(long long a1, _QWORD *a2) { long long v2; // rax long long result; // rax *(_OWORD *)(a1 + 16) = 0LL; *(_OWORD *)a1 = 0LL; *(_QWORD *)(a1 + 32) = 0LL; v2 = operator new(0x30uLL); *(_QWORD *)(v2 + 8) = 0x100000001LL; *(_QWORD *)v2 = &`vtable for'std::_Sp_counted_ptr_inplace<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>,std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,minja::Value,std::less<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>,std::allocator<std::pair<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void> const,minja::Value>>>>,(__gnu_cxx::_Lock_policy)2> + 2; *(_OWORD *)(v2 + 16) = 0LL; *(_QWORD *)(v2 + 32) = 0LL; *(_QWORD *)(a1 + 40) = v2; *(_QWORD *)(a1 + 32) = v2 + 16; *(_QWORD *)(a1 + 48) = *a2; result = a2[1]; *(_QWORD *)(a1 + 56) = result; if ( result ) { if ( _libc_single_threaded ) ++*(_DWORD *)(result + 8); else _InterlockedIncrement((volatile signed __int32 *)(result + 8)); } *(_BYTE *)(a1 + 64) = 0; *(_QWORD *)(a1 + 72) = 0LL; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)(a1 + 64)); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)(a1 + 64)); return result; }
Value: PUSH R14 PUSH RBX PUSH RAX MOV R14,RSI MOV RBX,RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x10],XMM0 MOVUPS xmmword ptr [RDI],XMM0 MOV qword ptr [RDI + 0x20],0x0 LAB_0019722e: MOV EDI,0x30 CALL 0x0011b8a0 LAB_00197238: MOV RCX,0x100000001 MOV qword ptr [RAX + 0x8],RCX LEA RCX,[0x22e428] ADD RCX,0x10 MOV qword ptr [RAX],RCX MOV RCX,RAX ADD RCX,0x10 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RAX + 0x10],XMM0 MOV qword ptr [RAX + 0x20],0x0 MOV qword ptr [RBX + 0x28],RAX MOV qword ptr [RBX + 0x20],RCX MOV RAX,qword ptr [R14] MOV qword ptr [RBX + 0x30],RAX MOV RAX,qword ptr [R14 + 0x8] MOV qword ptr [RBX + 0x38],RAX TEST RAX,RAX JZ 0x0019729b MOV RCX,qword ptr [0x0022ff80] CMP byte ptr [RCX],0x0 JZ 0x00197297 INC dword ptr [RAX + 0x8] JMP 0x0019729b LAB_00197297: INC.LOCK dword ptr [RAX + 0x8] LAB_0019729b: LEA R14,[RBX + 0x40] MOV byte ptr [RBX + 0x40],0x0 MOV qword ptr [RBX + 0x48],0x0 MOV RDI,R14 MOV ESI,0x1 CALL 0x0015869e MOV RDI,R14 MOV ESI,0x1 ADD RSP,0x8 POP RBX POP R14 JMP 0x0015869e
/* minja::Value::Value(std::shared_ptr<std::function<minja::Value (std::shared_ptr<minja::Context> const&, minja::ArgumentsValue&)> > const&) */ void __thiscall minja::Value::Value(Value *this,shared_ptr *param_1) { long lVar1; int8 *puVar2; bool bVar3; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x20) = 0; /* try { // try from 0019722e to 00197237 has its CatchHandler @ 001972cc */ puVar2 = (int8 *)operator_new(0x30); puVar2[1] = 0x100000001; *puVar2 = &PTR___Sp_counted_ptr_inplace_0022e438; puVar2[2] = 0; puVar2[3] = 0; puVar2[4] = 0; *(int8 **)(this + 0x28) = puVar2; *(int8 **)(this + 0x20) = puVar2 + 2; *(int8 *)(this + 0x30) = *(int8 *)param_1; lVar1 = *(long *)(param_1 + 8); *(long *)(this + 0x38) = lVar1; if (lVar1 != 0) { if (*PTR___libc_single_threaded_0022ff80 == '\0') { LOCK(); *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; UNLOCK(); } else { *(int *)(lVar1 + 8) = *(int *)(lVar1 + 8) + 1; } } bVar3 = (bool)((char)this + '@'); this[0x40] = (Value)0x0; *(int8 *)(this + 0x48) = 0; nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar3); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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(bVar3); return; }
31,015
json_parse_number
bluesky950520[P]quickjs/quickjs.c
static int json_parse_number(JSParseState *s, const uint8_t **pp) { const uint8_t *p = *pp; const uint8_t *p_start = p; if (*p == '+' || *p == '-') p++; if (!is_digit(*p)) return js_parse_error(s, "Unexpected token '%c'", *p_start); if (p[0] == '0' && is_digit(p[1])) return json_parse_error(s, p, "Unexpected number"); while (is_digit(*p)) p++; if (*p == '.') { p++; if (!is_digit(*p)) return json_parse_error(s, p, "Unterminated fractional number"); while (is_digit(*p)) p++; } if (*p == 'e' || *p == 'E') { p++; if (*p == '+' || *p == '-') p++; if (!is_digit(*p)) return json_parse_error(s, p, "Exponent part is missing a number"); while (is_digit(*p)) p++; } s->token.val = TOK_NUMBER; s->token.u.num.val = js_float64(strtod((const char *)p_start, NULL)); *pp = p; return 0; }
O0
c
json_parse_number: subq $0x48, %rsp movq %rdi, 0x38(%rsp) movq %rsi, 0x30(%rsp) movq 0x30(%rsp), %rax movq (%rax), %rax movq %rax, 0x28(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x20(%rsp) movq 0x28(%rsp), %rax movzbl (%rax), %eax cmpl $0x2b, %eax je 0x8588f movq 0x28(%rsp), %rax movzbl (%rax), %eax cmpl $0x2d, %eax jne 0x8589d movq 0x28(%rsp), %rax addq $0x1, %rax movq %rax, 0x28(%rsp) movq 0x28(%rsp), %rax movzbl (%rax), %edi callq 0x26e30 cmpl $0x0, %eax jne 0x858d3 movq 0x38(%rsp), %rdi movq 0x20(%rsp), %rax movzbl (%rax), %edx leaq 0x87dc1(%rip), %rsi # 0x10d684 movb $0x0, %al callq 0x473d0 movl %eax, 0x44(%rsp) jmp 0x85ab5 movq 0x28(%rsp), %rax movzbl (%rax), %eax cmpl $0x30, %eax jne 0x85912 movq 0x28(%rsp), %rax movzbl 0x1(%rax), %edi callq 0x26e30 cmpl $0x0, %eax je 0x85912 movq 0x38(%rsp), %rdi movq 0x28(%rsp), %rsi leaq 0x87c7b(%rip), %rdx # 0x10d57f callq 0x85730 movl %eax, 0x44(%rsp) jmp 0x85ab5 jmp 0x85914 movq 0x28(%rsp), %rax movzbl (%rax), %edi callq 0x26e30 cmpl $0x0, %eax je 0x85936 movq 0x28(%rsp), %rax addq $0x1, %rax movq %rax, 0x28(%rsp) jmp 0x85914 movq 0x28(%rsp), %rax movzbl (%rax), %eax cmpl $0x2e, %eax jne 0x859a8 movq 0x28(%rsp), %rax addq $0x1, %rax movq %rax, 0x28(%rsp) movq 0x28(%rsp), %rax movzbl (%rax), %edi callq 0x26e30 cmpl $0x0, %eax jne 0x85982 movq 0x38(%rsp), %rdi movq 0x28(%rsp), %rsi leaq 0x87d26(%rip), %rdx # 0x10d69a callq 0x85730 movl %eax, 0x44(%rsp) jmp 0x85ab5 jmp 0x85984 movq 0x28(%rsp), %rax movzbl (%rax), %edi callq 0x26e30 cmpl $0x0, %eax je 0x859a6 movq 0x28(%rsp), %rax addq $0x1, %rax movq %rax, 0x28(%rsp) jmp 0x85984 jmp 0x859a8 movq 0x28(%rsp), %rax movzbl (%rax), %eax cmpl $0x65, %eax je 0x859c6 movq 0x28(%rsp), %rax movzbl (%rax), %eax cmpl $0x45, %eax jne 0x85a53 movq 0x28(%rsp), %rax addq $0x1, %rax movq %rax, 0x28(%rsp) movq 0x28(%rsp), %rax movzbl (%rax), %eax cmpl $0x2b, %eax je 0x859ee movq 0x28(%rsp), %rax movzbl (%rax), %eax cmpl $0x2d, %eax jne 0x859fc movq 0x28(%rsp), %rax addq $0x1, %rax movq %rax, 0x28(%rsp) movq 0x28(%rsp), %rax movzbl (%rax), %edi callq 0x26e30 cmpl $0x0, %eax jne 0x85a2d movq 0x38(%rsp), %rdi movq 0x28(%rsp), %rsi leaq 0x87c9a(%rip), %rdx # 0x10d6b9 callq 0x85730 movl %eax, 0x44(%rsp) jmp 0x85ab5 jmp 0x85a2f movq 0x28(%rsp), %rax movzbl (%rax), %edi callq 0x26e30 cmpl $0x0, %eax je 0x85a51 movq 0x28(%rsp), %rax addq $0x1, %rax movq %rax, 0x28(%rsp) jmp 0x85a2f jmp 0x85a53 movq 0x38(%rsp), %rax movl $0xffffff80, 0x20(%rax) # imm = 0xFFFFFF80 movq 0x38(%rsp), %rax movq %rax, 0x8(%rsp) movq 0x20(%rsp), %rdi xorl %eax, %eax movl %eax, %esi callq 0xe180 callq 0x4c3a0 movq %rax, %rcx movq 0x8(%rsp), %rax movq %rcx, 0x10(%rsp) movq %rdx, 0x18(%rsp) movq 0x10(%rsp), %rcx movq %rcx, 0x38(%rax) movq 0x18(%rsp), %rcx movq %rcx, 0x40(%rax) movq 0x28(%rsp), %rcx movq 0x30(%rsp), %rax movq %rcx, (%rax) movl $0x0, 0x44(%rsp) movl 0x44(%rsp), %eax addq $0x48, %rsp retq nop
json_parse_number: sub rsp, 48h mov [rsp+48h+var_10], rdi mov [rsp+48h+var_18], rsi mov rax, [rsp+48h+var_18] mov rax, [rax] mov [rsp+48h+var_20], rax mov rax, [rsp+48h+var_20] mov [rsp+48h+var_28], rax mov rax, [rsp+48h+var_20] movzx eax, byte ptr [rax] cmp eax, 2Bh ; '+' jz short loc_8588F mov rax, [rsp+48h+var_20] movzx eax, byte ptr [rax] cmp eax, 2Dh ; '-' jnz short loc_8589D loc_8588F: mov rax, [rsp+48h+var_20] add rax, 1 mov [rsp+48h+var_20], rax loc_8589D: mov rax, [rsp+48h+var_20] movzx edi, byte ptr [rax] call is_digit cmp eax, 0 jnz short loc_858D3 mov rdi, [rsp+48h+var_10] mov rax, [rsp+48h+var_28] movzx edx, byte ptr [rax] lea rsi, aUnexpectedToke_2; "Unexpected token '%c'" mov al, 0 call js_parse_error mov [rsp+48h+var_4], eax jmp loc_85AB5 loc_858D3: mov rax, [rsp+48h+var_20] movzx eax, byte ptr [rax] cmp eax, 30h ; '0' jnz short loc_85912 mov rax, [rsp+48h+var_20] movzx edi, byte ptr [rax+1] call is_digit cmp eax, 0 jz short loc_85912 mov rdi, [rsp+48h+var_10] mov rsi, [rsp+48h+var_20] lea rdx, aUnexpectedNumb; "Unexpected number" call json_parse_error mov [rsp+48h+var_4], eax jmp loc_85AB5 loc_85912: jmp short $+2 loc_85914: mov rax, [rsp+48h+var_20] movzx edi, byte ptr [rax] call is_digit cmp eax, 0 jz short loc_85936 mov rax, [rsp+48h+var_20] add rax, 1 mov [rsp+48h+var_20], rax jmp short loc_85914 loc_85936: mov rax, [rsp+48h+var_20] movzx eax, byte ptr [rax] cmp eax, 2Eh ; '.' jnz short loc_859A8 mov rax, [rsp+48h+var_20] add rax, 1 mov [rsp+48h+var_20], rax mov rax, [rsp+48h+var_20] movzx edi, byte ptr [rax] call is_digit cmp eax, 0 jnz short loc_85982 mov rdi, [rsp+48h+var_10] mov rsi, [rsp+48h+var_20] lea rdx, aUnterminatedFr; "Unterminated fractional number" call json_parse_error mov [rsp+48h+var_4], eax jmp loc_85AB5 loc_85982: jmp short $+2 loc_85984: mov rax, [rsp+48h+var_20] movzx edi, byte ptr [rax] call is_digit cmp eax, 0 jz short loc_859A6 mov rax, [rsp+48h+var_20] add rax, 1 mov [rsp+48h+var_20], rax jmp short loc_85984 loc_859A6: jmp short $+2 loc_859A8: mov rax, [rsp+48h+var_20] movzx eax, byte ptr [rax] cmp eax, 65h ; 'e' jz short loc_859C6 mov rax, [rsp+48h+var_20] movzx eax, byte ptr [rax] cmp eax, 45h ; 'E' jnz loc_85A53 loc_859C6: mov rax, [rsp+48h+var_20] add rax, 1 mov [rsp+48h+var_20], rax mov rax, [rsp+48h+var_20] movzx eax, byte ptr [rax] cmp eax, 2Bh ; '+' jz short loc_859EE mov rax, [rsp+48h+var_20] movzx eax, byte ptr [rax] cmp eax, 2Dh ; '-' jnz short loc_859FC loc_859EE: mov rax, [rsp+48h+var_20] add rax, 1 mov [rsp+48h+var_20], rax loc_859FC: mov rax, [rsp+48h+var_20] movzx edi, byte ptr [rax] call is_digit cmp eax, 0 jnz short loc_85A2D mov rdi, [rsp+48h+var_10] mov rsi, [rsp+48h+var_20] lea rdx, aExponentPartIs; "Exponent part is missing a number" call json_parse_error mov [rsp+48h+var_4], eax jmp loc_85AB5 loc_85A2D: jmp short $+2 loc_85A2F: mov rax, [rsp+48h+var_20] movzx edi, byte ptr [rax] call is_digit cmp eax, 0 jz short loc_85A51 mov rax, [rsp+48h+var_20] add rax, 1 mov [rsp+48h+var_20], rax jmp short loc_85A2F loc_85A51: jmp short $+2 loc_85A53: mov rax, [rsp+48h+var_10] mov dword ptr [rax+20h], 0FFFFFF80h mov rax, [rsp+48h+var_10] mov [rsp+48h+var_40], rax mov rdi, [rsp+48h+var_28] xor eax, eax mov esi, eax call _strtod call js_float64 mov rcx, rax mov rax, [rsp+48h+var_40] mov [rsp+48h+var_38], rcx mov [rsp+48h+var_30], rdx mov rcx, [rsp+48h+var_38] mov [rax+38h], rcx mov rcx, [rsp+48h+var_30] mov [rax+40h], rcx mov rcx, [rsp+48h+var_20] mov rax, [rsp+48h+var_18] mov [rax], rcx mov [rsp+48h+var_4], 0 loc_85AB5: mov eax, [rsp+48h+var_4] add rsp, 48h retn
long long json_parse_number( long long a1, unsigned __int8 **a2, __m128 a3, __m128 a4, __m128 a5, __m128 a6, double a7, double a8, __m128 a9, __m128 a10) { long long v10; // rcx long long v11; // r8 long long v12; // r9 __m128 v13; // xmm4 __m128 v14; // xmm5 __m128 v15; // xmm4 __m128 v16; // xmm5 __m128 v17; // xmm4 __m128 v18; // xmm5 __m128 v19; // xmm4 __m128 v20; // xmm5 double v21; // xmm0_8 long long v22; // rdx char v24; // [rsp+0h] [rbp-48h] unsigned __int8 *v25; // [rsp+20h] [rbp-28h] unsigned __int8 *v26; // [rsp+28h] [rbp-20h] v26 = *a2; v25 = *a2; if ( **a2 == 43 || *v26 == 45 ) ++v26; if ( is_digit(*v26) ) { if ( *v26 != 48 || !is_digit(v26[1]) ) { while ( is_digit(*v26) ) ++v26; if ( *v26 == 46 ) { if ( !is_digit(*++v26) ) return (unsigned int)json_parse_error( (_QWORD *)a1, (unsigned long long)v26, (long long)"Unterminated fractional number", a3, a4, a5, a6, v17, v18, a9, a10); while ( is_digit(*v26) ) ++v26; } if ( *v26 == 101 || *v26 == 69 ) { if ( *++v26 == 43 || *v26 == 45 ) ++v26; if ( !is_digit(*v26) ) return (unsigned int)json_parse_error( (_QWORD *)a1, (unsigned long long)v26, (long long)"Exponent part is missing a number", a3, a4, a5, a6, v19, v20, a9, a10); while ( is_digit(*v26) ) ++v26; } *(_DWORD *)(a1 + 32) = -128; v21 = strtod(v25, 0LL); *(_QWORD *)(a1 + 56) = js_float64(v21); *(_QWORD *)(a1 + 64) = v22; *a2 = v26; return 0; } return (unsigned int)json_parse_error( (_QWORD *)a1, (unsigned long long)v26, (long long)"Unexpected number", a3, a4, a5, a6, v15, v16, a9, a10); } else { return (unsigned int)js_parse_error( (_QWORD *)a1, (long long)"Unexpected token '%c'", *v25, v10, v11, v12, a3, a4, a5, a6, v13, v14, a9, a10, v24); } }
json_parse_number: SUB RSP,0x48 MOV qword ptr [RSP + 0x38],RDI MOV qword ptr [RSP + 0x30],RSI MOV RAX,qword ptr [RSP + 0x30] MOV RAX,qword ptr [RAX] MOV qword ptr [RSP + 0x28],RAX MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [RSP + 0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0x2b JZ 0x0018588f MOV RAX,qword ptr [RSP + 0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0x2d JNZ 0x0018589d LAB_0018588f: MOV RAX,qword ptr [RSP + 0x28] ADD RAX,0x1 MOV qword ptr [RSP + 0x28],RAX LAB_0018589d: MOV RAX,qword ptr [RSP + 0x28] MOVZX EDI,byte ptr [RAX] CALL 0x00126e30 CMP EAX,0x0 JNZ 0x001858d3 MOV RDI,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RSP + 0x20] MOVZX EDX,byte ptr [RAX] LEA RSI,[0x20d684] MOV AL,0x0 CALL 0x001473d0 MOV dword ptr [RSP + 0x44],EAX JMP 0x00185ab5 LAB_001858d3: MOV RAX,qword ptr [RSP + 0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0x30 JNZ 0x00185912 MOV RAX,qword ptr [RSP + 0x28] MOVZX EDI,byte ptr [RAX + 0x1] CALL 0x00126e30 CMP EAX,0x0 JZ 0x00185912 MOV RDI,qword ptr [RSP + 0x38] MOV RSI,qword ptr [RSP + 0x28] LEA RDX,[0x20d57f] CALL 0x00185730 MOV dword ptr [RSP + 0x44],EAX JMP 0x00185ab5 LAB_00185912: JMP 0x00185914 LAB_00185914: MOV RAX,qword ptr [RSP + 0x28] MOVZX EDI,byte ptr [RAX] CALL 0x00126e30 CMP EAX,0x0 JZ 0x00185936 MOV RAX,qword ptr [RSP + 0x28] ADD RAX,0x1 MOV qword ptr [RSP + 0x28],RAX JMP 0x00185914 LAB_00185936: MOV RAX,qword ptr [RSP + 0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0x2e JNZ 0x001859a8 MOV RAX,qword ptr [RSP + 0x28] ADD RAX,0x1 MOV qword ptr [RSP + 0x28],RAX MOV RAX,qword ptr [RSP + 0x28] MOVZX EDI,byte ptr [RAX] CALL 0x00126e30 CMP EAX,0x0 JNZ 0x00185982 MOV RDI,qword ptr [RSP + 0x38] MOV RSI,qword ptr [RSP + 0x28] LEA RDX,[0x20d69a] CALL 0x00185730 MOV dword ptr [RSP + 0x44],EAX JMP 0x00185ab5 LAB_00185982: JMP 0x00185984 LAB_00185984: MOV RAX,qword ptr [RSP + 0x28] MOVZX EDI,byte ptr [RAX] CALL 0x00126e30 CMP EAX,0x0 JZ 0x001859a6 MOV RAX,qword ptr [RSP + 0x28] ADD RAX,0x1 MOV qword ptr [RSP + 0x28],RAX JMP 0x00185984 LAB_001859a6: JMP 0x001859a8 LAB_001859a8: MOV RAX,qword ptr [RSP + 0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0x65 JZ 0x001859c6 MOV RAX,qword ptr [RSP + 0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0x45 JNZ 0x00185a53 LAB_001859c6: MOV RAX,qword ptr [RSP + 0x28] ADD RAX,0x1 MOV qword ptr [RSP + 0x28],RAX MOV RAX,qword ptr [RSP + 0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0x2b JZ 0x001859ee MOV RAX,qword ptr [RSP + 0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0x2d JNZ 0x001859fc LAB_001859ee: MOV RAX,qword ptr [RSP + 0x28] ADD RAX,0x1 MOV qword ptr [RSP + 0x28],RAX LAB_001859fc: MOV RAX,qword ptr [RSP + 0x28] MOVZX EDI,byte ptr [RAX] CALL 0x00126e30 CMP EAX,0x0 JNZ 0x00185a2d MOV RDI,qword ptr [RSP + 0x38] MOV RSI,qword ptr [RSP + 0x28] LEA RDX,[0x20d6b9] CALL 0x00185730 MOV dword ptr [RSP + 0x44],EAX JMP 0x00185ab5 LAB_00185a2d: JMP 0x00185a2f LAB_00185a2f: MOV RAX,qword ptr [RSP + 0x28] MOVZX EDI,byte ptr [RAX] CALL 0x00126e30 CMP EAX,0x0 JZ 0x00185a51 MOV RAX,qword ptr [RSP + 0x28] ADD RAX,0x1 MOV qword ptr [RSP + 0x28],RAX JMP 0x00185a2f LAB_00185a51: JMP 0x00185a53 LAB_00185a53: MOV RAX,qword ptr [RSP + 0x38] MOV dword ptr [RAX + 0x20],0xffffff80 MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x8],RAX MOV RDI,qword ptr [RSP + 0x20] XOR EAX,EAX MOV ESI,EAX CALL 0x0010e180 CALL 0x0014c3a0 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x10],RCX MOV qword ptr [RSP + 0x18],RDX MOV RCX,qword ptr [RSP + 0x10] MOV qword ptr [RAX + 0x38],RCX MOV RCX,qword ptr [RSP + 0x18] MOV qword ptr [RAX + 0x40],RCX MOV RCX,qword ptr [RSP + 0x28] MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RAX],RCX MOV dword ptr [RSP + 0x44],0x0 LAB_00185ab5: MOV EAX,dword ptr [RSP + 0x44] ADD RSP,0x48 RET
int4 json_parse_number(long param_1,int8 *param_2) { char *__nptr; int iVar1; int4 uVar2; char *pcVar3; int1 auVar4 [16]; char *local_20; int4 local_4; __nptr = (char *)*param_2; if ((*__nptr == '+') || (local_20 = __nptr, *__nptr == '-')) { local_20 = __nptr + 1; } iVar1 = is_digit(*local_20); if (iVar1 == 0) { local_4 = js_parse_error(param_1,"Unexpected token \'%c\'",*__nptr); } else if ((*local_20 == '0') && (iVar1 = is_digit(local_20[1]), iVar1 != 0)) { local_4 = json_parse_error(param_1,local_20,"Unexpected number"); } else { while (iVar1 = is_digit(*local_20), iVar1 != 0) { local_20 = local_20 + 1; } if (*local_20 == '.') { local_20 = local_20 + 1; iVar1 = is_digit(*local_20); if (iVar1 == 0) { uVar2 = json_parse_error(param_1,local_20,"Unterminated fractional number"); return uVar2; } while (iVar1 = is_digit(*local_20), iVar1 != 0) { local_20 = local_20 + 1; } } if ((*local_20 == 'e') || (*local_20 == 'E')) { pcVar3 = local_20 + 1; if ((*pcVar3 == '+') || (*pcVar3 == '-')) { pcVar3 = local_20 + 2; } local_20 = pcVar3; iVar1 = is_digit(*local_20); if (iVar1 == 0) { uVar2 = json_parse_error(param_1,local_20,"Exponent part is missing a number"); return uVar2; } while (iVar1 = is_digit(*local_20), iVar1 != 0) { local_20 = local_20 + 1; } } *(int4 *)(param_1 + 0x20) = 0xffffff80; strtod(__nptr,(char **)0x0); auVar4 = js_float64(); *(int1 (*) [16])(param_1 + 0x38) = auVar4; *param_2 = local_20; local_4 = 0; } return local_4; }
31,016
my_convert_fix
eloqsql/strings/ctype.c
size_t my_convert_fix(CHARSET_INFO *to_cs, char *to, size_t to_length, CHARSET_INFO *from_cs, const char *from, size_t from_length, size_t nchars, MY_STRCOPY_STATUS *copy_status, MY_STRCONV_STATUS *conv_status) { int cnvres; my_wc_t wc; my_charset_conv_mb_wc mb_wc= from_cs->cset->mb_wc; my_charset_conv_wc_mb wc_mb= to_cs->cset->wc_mb; const uchar *from_end= (const uchar*) from + from_length; uchar *to_end= (uchar*) to + to_length; char *to_start= to; DBUG_ASSERT(to_cs != &my_charset_bin); DBUG_ASSERT(from_cs != &my_charset_bin); copy_status->m_well_formed_error_pos= NULL; conv_status->m_cannot_convert_error_pos= NULL; for ( ; nchars; nchars--) { const char *from_prev= from; if ((cnvres= (*mb_wc)(from_cs, &wc, (uchar*) from, from_end)) > 0) from+= cnvres; else if (cnvres == MY_CS_ILSEQ) { if (!copy_status->m_well_formed_error_pos) copy_status->m_well_formed_error_pos= from; from++; wc= '?'; } else if (cnvres > MY_CS_TOOSMALL) { /* A correct multibyte sequence detected But it doesn't have Unicode mapping. */ if (!conv_status->m_cannot_convert_error_pos) conv_status->m_cannot_convert_error_pos= from; from+= (-cnvres); wc= '?'; } else { if ((uchar *) from >= from_end) break; // End of line // Incomplete byte sequence if (!copy_status->m_well_formed_error_pos) copy_status->m_well_formed_error_pos= from; from++; wc= '?'; } outp: if ((cnvres= (*wc_mb)(to_cs, wc, (uchar*) to, to_end)) > 0) to+= cnvres; else if (cnvres == MY_CS_ILUNI && wc != '?') { if (!conv_status->m_cannot_convert_error_pos) conv_status->m_cannot_convert_error_pos= from_prev; wc= '?'; goto outp; } else { from= from_prev; break; } } copy_status->m_source_end_pos= from; return to - to_start; }
O0
c
my_convert_fix: pushq %rbp movq %rsp, %rbp subq $0x70, %rsp movq 0x20(%rbp), %rax movq 0x18(%rbp), %rax movq 0x10(%rbp), %rax movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq %rcx, -0x20(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) movq -0x20(%rbp), %rax movq 0xb8(%rax), %rax movq 0x28(%rax), %rax movq %rax, -0x48(%rbp) movq -0x8(%rbp), %rax movq 0xb8(%rax), %rax movq 0x30(%rax), %rax movq %rax, -0x50(%rbp) movq -0x28(%rbp), %rax addq -0x30(%rbp), %rax movq %rax, -0x58(%rbp) movq -0x10(%rbp), %rax addq -0x18(%rbp), %rax movq %rax, -0x60(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x68(%rbp) jmp 0x6da04 jmp 0x6da06 jmp 0x6da08 movq 0x18(%rbp), %rax movq $0x0, 0x8(%rax) movq 0x20(%rbp), %rax movq $0x0, (%rax) cmpq $0x0, 0x10(%rbp) je 0x6db8b movq -0x28(%rbp), %rax movq %rax, -0x70(%rbp) movq -0x48(%rbp), %rax movq -0x20(%rbp), %rdi movq -0x28(%rbp), %rdx movq -0x58(%rbp), %rcx leaq -0x40(%rbp), %rsi callq *%rax movl %eax, -0x34(%rbp) cmpl $0x0, %eax jle 0x6da66 movl -0x34(%rbp), %ecx movq -0x28(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x28(%rbp) jmp 0x6db0f cmpl $0x0, -0x34(%rbp) jne 0x6da99 movq 0x18(%rbp), %rax cmpq $0x0, 0x8(%rax) jne 0x6da83 movq -0x28(%rbp), %rcx movq 0x18(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) movq $0x3f, -0x40(%rbp) jmp 0x6db0d cmpl $-0x65, -0x34(%rbp) jle 0x6dad1 movq 0x20(%rbp), %rax cmpq $0x0, (%rax) jne 0x6dab4 movq -0x28(%rbp), %rcx movq 0x20(%rbp), %rax movq %rcx, (%rax) xorl %ecx, %ecx subl -0x34(%rbp), %ecx movq -0x28(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x28(%rbp) movq $0x3f, -0x40(%rbp) jmp 0x6db0b movq -0x28(%rbp), %rax cmpq -0x58(%rbp), %rax jb 0x6dae0 jmp 0x6db8b movq 0x18(%rbp), %rax cmpq $0x0, 0x8(%rax) jne 0x6daf7 movq -0x28(%rbp), %rcx movq 0x18(%rbp), %rax movq %rcx, 0x8(%rax) movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) movq $0x3f, -0x40(%rbp) jmp 0x6db0d jmp 0x6db0f jmp 0x6db11 movq -0x50(%rbp), %rax movq -0x8(%rbp), %rdi movq -0x40(%rbp), %rsi movq -0x10(%rbp), %rdx movq -0x60(%rbp), %rcx callq *%rax movl %eax, -0x34(%rbp) cmpl $0x0, %eax jle 0x6db42 movl -0x34(%rbp), %ecx movq -0x10(%rbp), %rax movslq %ecx, %rcx addq %rcx, %rax movq %rax, -0x10(%rbp) jmp 0x6db78 cmpl $0x0, -0x34(%rbp) jne 0x6db6e cmpq $0x3f, -0x40(%rbp) je 0x6db6e movq 0x20(%rbp), %rax cmpq $0x0, (%rax) jne 0x6db64 movq -0x70(%rbp), %rcx movq 0x20(%rbp), %rax movq %rcx, (%rax) movq $0x3f, -0x40(%rbp) jmp 0x6db11 movq -0x70(%rbp), %rax movq %rax, -0x28(%rbp) jmp 0x6db8b jmp 0x6db7a movq 0x10(%rbp), %rax addq $-0x1, %rax movq %rax, 0x10(%rbp) jmp 0x6da1f movq -0x28(%rbp), %rcx movq 0x18(%rbp), %rax movq %rcx, (%rax) movq -0x10(%rbp), %rax movq -0x68(%rbp), %rcx subq %rcx, %rax addq $0x70, %rsp popq %rbp retq nopw (%rax,%rax)
my_convert_fix: push rbp mov rbp, rsp sub rsp, 70h mov rax, [rbp+arg_10] mov rax, [rbp+arg_8] mov rax, [rbp+arg_0] mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov [rbp+var_20], rcx mov [rbp+var_28], r8 mov [rbp+var_30], r9 mov rax, [rbp+var_20] mov rax, [rax+0B8h] mov rax, [rax+28h] mov [rbp+var_48], rax mov rax, [rbp+var_8] mov rax, [rax+0B8h] mov rax, [rax+30h] mov [rbp+var_50], rax mov rax, [rbp+var_28] add rax, [rbp+var_30] mov [rbp+var_58], rax mov rax, [rbp+var_10] add rax, [rbp+var_18] mov [rbp+var_60], rax mov rax, [rbp+var_10] mov [rbp+var_68], rax jmp short $+2 loc_6DA04: jmp short $+2 loc_6DA06: jmp short $+2 loc_6DA08: mov rax, [rbp+arg_8] mov qword ptr [rax+8], 0 mov rax, [rbp+arg_10] mov qword ptr [rax], 0 loc_6DA1F: cmp [rbp+arg_0], 0 jz loc_6DB8B mov rax, [rbp+var_28] mov [rbp+var_70], rax mov rax, [rbp+var_48] mov rdi, [rbp+var_20] mov rdx, [rbp+var_28] mov rcx, [rbp+var_58] lea rsi, [rbp+var_40] call rax mov [rbp+var_34], eax cmp eax, 0 jle short loc_6DA66 mov ecx, [rbp+var_34] mov rax, [rbp+var_28] movsxd rcx, ecx add rax, rcx mov [rbp+var_28], rax jmp loc_6DB0F loc_6DA66: cmp [rbp+var_34], 0 jnz short loc_6DA99 mov rax, [rbp+arg_8] cmp qword ptr [rax+8], 0 jnz short loc_6DA83 mov rcx, [rbp+var_28] mov rax, [rbp+arg_8] mov [rax+8], rcx loc_6DA83: mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax mov [rbp+var_40], 3Fh ; '?' jmp short loc_6DB0D loc_6DA99: cmp [rbp+var_34], 0FFFFFF9Bh jle short loc_6DAD1 mov rax, [rbp+arg_10] cmp qword ptr [rax], 0 jnz short loc_6DAB4 mov rcx, [rbp+var_28] mov rax, [rbp+arg_10] mov [rax], rcx loc_6DAB4: xor ecx, ecx sub ecx, [rbp+var_34] mov rax, [rbp+var_28] movsxd rcx, ecx add rax, rcx mov [rbp+var_28], rax mov [rbp+var_40], 3Fh ; '?' jmp short loc_6DB0B loc_6DAD1: mov rax, [rbp+var_28] cmp rax, [rbp+var_58] jb short loc_6DAE0 jmp loc_6DB8B loc_6DAE0: mov rax, [rbp+arg_8] cmp qword ptr [rax+8], 0 jnz short loc_6DAF7 mov rcx, [rbp+var_28] mov rax, [rbp+arg_8] mov [rax+8], rcx loc_6DAF7: mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax mov [rbp+var_40], 3Fh ; '?' loc_6DB0B: jmp short $+2 loc_6DB0D: jmp short $+2 loc_6DB0F: jmp short $+2 loc_6DB11: mov rax, [rbp+var_50] mov rdi, [rbp+var_8] mov rsi, [rbp+var_40] mov rdx, [rbp+var_10] mov rcx, [rbp+var_60] call rax mov [rbp+var_34], eax cmp eax, 0 jle short loc_6DB42 mov ecx, [rbp+var_34] mov rax, [rbp+var_10] movsxd rcx, ecx add rax, rcx mov [rbp+var_10], rax jmp short loc_6DB78 loc_6DB42: cmp [rbp+var_34], 0 jnz short loc_6DB6E cmp [rbp+var_40], 3Fh ; '?' jz short loc_6DB6E mov rax, [rbp+arg_10] cmp qword ptr [rax], 0 jnz short loc_6DB64 mov rcx, [rbp+var_70] mov rax, [rbp+arg_10] mov [rax], rcx loc_6DB64: mov [rbp+var_40], 3Fh ; '?' jmp short loc_6DB11 loc_6DB6E: mov rax, [rbp+var_70] mov [rbp+var_28], rax jmp short loc_6DB8B loc_6DB78: jmp short $+2 loc_6DB7A: mov rax, [rbp+arg_0] add rax, 0FFFFFFFFFFFFFFFFh mov [rbp+arg_0], rax jmp loc_6DA1F loc_6DB8B: mov rcx, [rbp+var_28] mov rax, [rbp+arg_8] mov [rax], rcx mov rax, [rbp+var_10] mov rcx, [rbp+var_68] sub rax, rcx add rsp, 70h pop rbp retn
long long my_convert_fix( long long a1, long long a2, long long a3, long long a4, unsigned long long a5, long long a6, long long a7, unsigned long long *a8, unsigned long long *a9) { unsigned long long v10; // [rsp+0h] [rbp-70h] long long v11; // [rsp+10h] [rbp-60h] unsigned long long v12; // [rsp+18h] [rbp-58h] long long ( *v13)(long long, long long, long long, long long); // [rsp+20h] [rbp-50h] long long ( *v14)(long long, long long *, unsigned long long, unsigned long long); // [rsp+28h] [rbp-48h] long long i; // [rsp+30h] [rbp-40h] BYREF int v16; // [rsp+3Ch] [rbp-34h] long long v17; // [rsp+40h] [rbp-30h] unsigned long long v18; // [rsp+48h] [rbp-28h] long long v19; // [rsp+50h] [rbp-20h] long long v20; // [rsp+58h] [rbp-18h] long long v21; // [rsp+60h] [rbp-10h] long long v22; // [rsp+68h] [rbp-8h] v22 = a1; v21 = a2; v20 = a3; v19 = a4; v18 = a5; v17 = a6; v14 = *(long long ( **)(long long, long long *, unsigned long long, unsigned long long))(*(_QWORD *)(a4 + 184) + 40LL); v13 = *(long long ( **)(long long, long long, long long, long long))(*(_QWORD *)(a1 + 184) + 48LL); v12 = a6 + a5; v11 = a3 + a2; a8[1] = 0LL; *a9 = 0LL; LABEL_2: if ( a7 ) { v10 = v18; v16 = v14(v19, &i, v18, v12); if ( v16 > 0 ) { v18 += v16; goto LABEL_17; } if ( !v16 ) { if ( !a8[1] ) a8[1] = v18; ++v18; i = 63LL; goto LABEL_17; } if ( v16 > -101 ) { if ( !*a9 ) *a9 = v18; v18 += -v16; i = 63LL; goto LABEL_17; } if ( v18 < v12 ) { if ( !a8[1] ) a8[1] = v18; ++v18; for ( i = 63LL; ; i = 63LL ) { LABEL_17: v16 = v13(v22, i, v21, v11); if ( v16 > 0 ) { v21 += v16; --a7; goto LABEL_2; } if ( v16 || i == 63 ) break; if ( !*a9 ) *a9 = v10; } v18 = v10; } } *a8 = v18; return v21 - a2; }
my_convert_fix: PUSH RBP MOV RBP,RSP SUB RSP,0x70 MOV RAX,qword ptr [RBP + 0x20] MOV RAX,qword ptr [RBP + 0x18] MOV RAX,qword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV qword ptr [RBP + -0x20],RCX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 MOV RAX,qword ptr [RBP + -0x20] MOV RAX,qword ptr [RAX + 0xb8] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX + 0xb8] MOV RAX,qword ptr [RAX + 0x30] MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x58],RAX MOV RAX,qword ptr [RBP + -0x10] ADD RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x68],RAX JMP 0x0016da04 LAB_0016da04: JMP 0x0016da06 LAB_0016da06: JMP 0x0016da08 LAB_0016da08: MOV RAX,qword ptr [RBP + 0x18] MOV qword ptr [RAX + 0x8],0x0 MOV RAX,qword ptr [RBP + 0x20] MOV qword ptr [RAX],0x0 LAB_0016da1f: CMP qword ptr [RBP + 0x10],0x0 JZ 0x0016db8b MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x70],RAX MOV RAX,qword ptr [RBP + -0x48] MOV RDI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x28] MOV RCX,qword ptr [RBP + -0x58] LEA RSI,[RBP + -0x40] CALL RAX MOV dword ptr [RBP + -0x34],EAX CMP EAX,0x0 JLE 0x0016da66 MOV ECX,dword ptr [RBP + -0x34] MOV RAX,qword ptr [RBP + -0x28] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x28],RAX JMP 0x0016db0f LAB_0016da66: CMP dword ptr [RBP + -0x34],0x0 JNZ 0x0016da99 MOV RAX,qword ptr [RBP + 0x18] CMP qword ptr [RAX + 0x8],0x0 JNZ 0x0016da83 MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + 0x18] MOV qword ptr [RAX + 0x8],RCX LAB_0016da83: MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX MOV qword ptr [RBP + -0x40],0x3f JMP 0x0016db0d LAB_0016da99: CMP dword ptr [RBP + -0x34],-0x65 JLE 0x0016dad1 MOV RAX,qword ptr [RBP + 0x20] CMP qword ptr [RAX],0x0 JNZ 0x0016dab4 MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + 0x20] MOV qword ptr [RAX],RCX LAB_0016dab4: XOR ECX,ECX SUB ECX,dword ptr [RBP + -0x34] MOV RAX,qword ptr [RBP + -0x28] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x28],RAX MOV qword ptr [RBP + -0x40],0x3f JMP 0x0016db0b LAB_0016dad1: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x58] JC 0x0016dae0 JMP 0x0016db8b LAB_0016dae0: MOV RAX,qword ptr [RBP + 0x18] CMP qword ptr [RAX + 0x8],0x0 JNZ 0x0016daf7 MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + 0x18] MOV qword ptr [RAX + 0x8],RCX LAB_0016daf7: MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX MOV qword ptr [RBP + -0x40],0x3f LAB_0016db0b: JMP 0x0016db0d LAB_0016db0d: JMP 0x0016db0f LAB_0016db0f: JMP 0x0016db11 LAB_0016db11: MOV RAX,qword ptr [RBP + -0x50] MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x40] MOV RDX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x60] CALL RAX MOV dword ptr [RBP + -0x34],EAX CMP EAX,0x0 JLE 0x0016db42 MOV ECX,dword ptr [RBP + -0x34] MOV RAX,qword ptr [RBP + -0x10] MOVSXD RCX,ECX ADD RAX,RCX MOV qword ptr [RBP + -0x10],RAX JMP 0x0016db78 LAB_0016db42: CMP dword ptr [RBP + -0x34],0x0 JNZ 0x0016db6e CMP qword ptr [RBP + -0x40],0x3f JZ 0x0016db6e MOV RAX,qword ptr [RBP + 0x20] CMP qword ptr [RAX],0x0 JNZ 0x0016db64 MOV RCX,qword ptr [RBP + -0x70] MOV RAX,qword ptr [RBP + 0x20] MOV qword ptr [RAX],RCX LAB_0016db64: MOV qword ptr [RBP + -0x40],0x3f JMP 0x0016db11 LAB_0016db6e: MOV RAX,qword ptr [RBP + -0x70] MOV qword ptr [RBP + -0x28],RAX JMP 0x0016db8b LAB_0016db78: JMP 0x0016db7a LAB_0016db7a: MOV RAX,qword ptr [RBP + 0x10] ADD RAX,-0x1 MOV qword ptr [RBP + 0x10],RAX JMP 0x0016da1f LAB_0016db8b: MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + 0x18] MOV qword ptr [RAX],RCX MOV RAX,qword ptr [RBP + -0x10] MOV RCX,qword ptr [RBP + -0x68] SUB RAX,RCX ADD RSP,0x70 POP RBP RET
long my_convert_fix(long param_1,long param_2,long param_3,long param_4,ulong param_5,long param_6, long param_7,ulong *param_8,ulong *param_9) { code *pcVar1; code *pcVar2; ulong uVar3; ulong uVar4; long local_48; int local_3c; long local_38; ulong local_30; long local_28; long local_20; long local_18; long local_10; pcVar1 = *(code **)(*(long *)(param_4 + 0xb8) + 0x28); pcVar2 = *(code **)(*(long *)(param_1 + 0xb8) + 0x30); param_8[1] = 0; *param_9 = 0; local_38 = param_6; local_30 = param_5; local_28 = param_4; local_20 = param_3; local_18 = param_2; local_10 = param_1; for (; uVar3 = local_30, uVar4 = uVar3, param_7 != 0; param_7 = param_7 + -1) { local_3c = (*pcVar1)(local_28,&local_48,local_30); if (local_3c < 1) { if (local_3c == 0) { if (param_8[1] == 0) { param_8[1] = local_30; } local_30 = local_30 + 1; } else if (local_3c < -100) { uVar4 = local_30; if (param_5 + param_6 <= local_30) break; if (param_8[1] == 0) { param_8[1] = local_30; } local_30 = local_30 + 1; } else { if (*param_9 == 0) { *param_9 = local_30; } local_30 = local_30 + (long)-local_3c; } local_48 = 0x3f; } else { local_30 = local_30 + (long)local_3c; } while (local_3c = (*pcVar2)(local_10,local_48,local_18,param_2 + param_3), local_3c < 1) { uVar4 = uVar3; if ((local_3c != 0) || (local_48 == 0x3f)) goto LAB_0016db8b; if (*param_9 == 0) { *param_9 = uVar3; } local_48 = 0x3f; local_3c = 0; } local_18 = local_18 + local_3c; } LAB_0016db8b: local_30 = uVar4; *param_8 = local_30; return local_18 - param_2; }
31,017
mi_get_key
eloqsql/storage/myisam/mi_search.c
uchar *_mi_get_key(MI_INFO *info, MI_KEYDEF *keyinfo, uchar *page, uchar *key, uchar *keypos, uint *return_key_length) { uint nod_flag; DBUG_ENTER("_mi_get_key"); nod_flag=mi_test_if_nod(page); if (! (keyinfo->flag & (HA_VAR_LENGTH_KEY | HA_BINARY_PACK_KEY))) { bmove((uchar*) key,(uchar*) keypos,keyinfo->keylength+nod_flag); DBUG_RETURN(keypos+keyinfo->keylength+nod_flag); } else { page+=2+nod_flag; key[0]=0; /* safety */ while (page <= keypos) { *return_key_length=(*keyinfo->get_key)(keyinfo,nod_flag,&page,key); if (*return_key_length == 0) { mi_print_error(info->s, HA_ERR_CRASHED); my_errno=HA_ERR_CRASHED; DBUG_RETURN(0); } } } DBUG_PRINT("exit",("page: %p length: %u", page, *return_key_length)); DBUG_RETURN(page); }
O3
c
mi_get_key: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %r9, %r13 movq %r8, %rbx movq %rcx, %r12 movq %rsi, %r14 movq %rdi, -0x30(%rbp) xorl %r15d, %r15d cmpb $0x0, (%rdx) jns 0x861fb movq -0x30(%rbp), %rax movq (%rax), %rax movl 0x17c(%rax), %r15d testb $0x28, 0xa(%r14) je 0x8625e leal 0x2(%r15), %eax addq %rax, %rdx leaq -0x38(%rbp), %rax movq %rdx, (%rax) movb $0x0, (%r12) movq -0x38(%rbp), %rax cmpq %rbx, %rax ja 0x8627f movq %r14, %rdi movl %r15d, %esi leaq -0x38(%rbp), %rdx movq %r12, %rcx callq *0x48(%r14) movl %eax, (%r13) testl %eax, %eax jne 0x86215 movq -0x30(%rbp), %rax movq (%rax), %rax movq 0x268(%rax), %rsi movl $0x7e, %edi callq 0x7b69a callq 0xa2412 movl $0x7e, (%rax) xorl %eax, %eax jmp 0x8627f movzwl 0x12(%r14), %edx addl %r15d, %edx movq %r12, %rdi movq %rbx, %rsi callq 0x29110 movzwl 0x12(%r14), %ecx movl %r15d, %eax addq %rbx, %rax addq %rcx, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_mi_get_key: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov r13, r9 mov rbx, r8 mov r12, rcx mov r14, rsi mov [rbp+var_30], rdi xor r15d, r15d cmp byte ptr [rdx], 0 jns short loc_861FB mov rax, [rbp+var_30] mov rax, [rax] mov r15d, [rax+17Ch] loc_861FB: test byte ptr [r14+0Ah], 28h jz short loc_8625E lea eax, [r15+2] add rdx, rax lea rax, [rbp+var_38] mov [rax], rdx mov byte ptr [r12], 0 loc_86215: mov rax, [rbp+var_38] cmp rax, rbx ja short loc_8627F mov rdi, r14 mov esi, r15d lea rdx, [rbp+var_38] mov rcx, r12 call qword ptr [r14+48h] mov [r13+0], eax test eax, eax jnz short loc_86215 mov rax, [rbp+var_30] mov rax, [rax] mov rsi, [rax+268h] mov edi, 7Eh ; '~' call mi_report_error call _my_thread_var mov dword ptr [rax], 7Eh ; '~' xor eax, eax jmp short loc_8627F loc_8625E: movzx edx, word ptr [r14+12h] add edx, r15d mov rdi, r12 mov rsi, rbx call _memmove movzx ecx, word ptr [r14+12h] mov eax, r15d add rax, rbx add rax, rcx loc_8627F: add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
char * mi_get_key(long long a1, long long a2, char *a3, _BYTE *a4, unsigned long long a5, _DWORD *a6) { unsigned int v9; // r15d char *result; // rax int v11; // eax char *v12; // [rsp+8h] [rbp-38h] BYREF long long v13; // [rsp+10h] [rbp-30h] v13 = a1; v9 = 0; if ( *a3 < 0 ) v9 = *(_DWORD *)(*(_QWORD *)v13 + 380LL); if ( (*(_BYTE *)(a2 + 10) & 0x28) != 0 ) { v12 = &a3[v9 + 2]; *a4 = 0; while ( 1 ) { result = v12; if ( (unsigned long long)v12 > a5 ) break; v11 = (*(long long ( **)(long long, _QWORD, char **, _BYTE *))(a2 + 72))(a2, v9, &v12, a4); *a6 = v11; if ( !v11 ) { mi_report_error(126, *(_QWORD *)(*(_QWORD *)v13 + 616LL)); *(_DWORD *)my_thread_var(126LL) = 126; return 0LL; } } } else { memmove(a4, a5, v9 + *(unsigned __int16 *)(a2 + 18)); return (char *)(*(unsigned __int16 *)(a2 + 18) + a5 + v9); } return result; }
_mi_get_key: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV R13,R9 MOV RBX,R8 MOV R12,RCX MOV R14,RSI MOV qword ptr [RBP + -0x30],RDI XOR R15D,R15D CMP byte ptr [RDX],0x0 JNS 0x001861fb MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX] MOV R15D,dword ptr [RAX + 0x17c] LAB_001861fb: TEST byte ptr [R14 + 0xa],0x28 JZ 0x0018625e LEA EAX,[R15 + 0x2] ADD RDX,RAX LEA RAX,[RBP + -0x38] MOV qword ptr [RAX],RDX MOV byte ptr [R12],0x0 LAB_00186215: MOV RAX,qword ptr [RBP + -0x38] CMP RAX,RBX JA 0x0018627f MOV RDI,R14 MOV ESI,R15D LEA RDX,[RBP + -0x38] MOV RCX,R12 CALL qword ptr [R14 + 0x48] MOV dword ptr [R13],EAX TEST EAX,EAX JNZ 0x00186215 MOV RAX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x268] MOV EDI,0x7e CALL 0x0017b69a CALL 0x001a2412 MOV dword ptr [RAX],0x7e XOR EAX,EAX JMP 0x0018627f LAB_0018625e: MOVZX EDX,word ptr [R14 + 0x12] ADD EDX,R15D MOV RDI,R12 MOV RSI,RBX CALL 0x00129110 MOVZX ECX,word ptr [R14 + 0x12] MOV EAX,R15D ADD RAX,RBX ADD RAX,RCX LAB_0018627f: ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
char * _mi_get_key(long *param_1,long param_2,char *param_3,int1 *param_4,char *param_5, int *param_6) { int iVar1; int4 *puVar2; uint uVar3; char *local_40; long *local_38; uVar3 = 0; if (*param_3 < '\0') { uVar3 = *(uint *)(*param_1 + 0x17c); } local_38 = param_1; if ((*(byte *)(param_2 + 10) & 0x28) == 0) { memmove(param_4,param_5,(ulong)(*(ushort *)(param_2 + 0x12) + uVar3)); param_5 = param_5 + (ulong)*(ushort *)(param_2 + 0x12) + (ulong)uVar3; } else { local_40 = param_3 + (uVar3 + 2); *param_4 = 0; do { if (param_5 < local_40) { return local_40; } iVar1 = (**(code **)(param_2 + 0x48))(param_2,uVar3,&local_40,param_4); *param_6 = iVar1; } while (iVar1 != 0); mi_report_error(0x7e,*(int8 *)(*local_38 + 0x268)); puVar2 = (int4 *)_my_thread_var(); *puVar2 = 0x7e; param_5 = (char *)0x0; } return param_5; }
31,018
rak_record_set
fabiosvm[P]rak/src/record.c
RakRecord *rak_record_set(RakRecord *rec, int idx, RakValue val, RakError *err) { // TODO: Implement this function. (void) rec; (void) idx; (void) val; (void) err; return NULL; }
O0
c
rak_record_set: pushq %rbp movq %rsp, %rbp movq %rdx, -0x10(%rbp) movq %rcx, -0x8(%rbp) movq %rdi, -0x18(%rbp) movl %esi, -0x1c(%rbp) movq %r8, -0x28(%rbp) xorl %eax, %eax popq %rbp retq nopl (%rax,%rax)
rak_record_set: push rbp mov rbp, rsp mov [rbp+var_10], rdx mov [rbp+var_8], rcx mov [rbp+var_18], rdi mov [rbp+var_1C], esi mov [rbp+var_28], r8 xor eax, eax pop rbp retn
long long rak_record_set() { return 0LL; }
rak_record_set: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x10],RDX MOV qword ptr [RBP + -0x8],RCX MOV qword ptr [RBP + -0x18],RDI MOV dword ptr [RBP + -0x1c],ESI MOV qword ptr [RBP + -0x28],R8 XOR EAX,EAX POP RBP RET
int8 rak_record_set(void) { return 0; }
31,019
rak_record_set
fabiosvm[P]rak/src/record.c
RakRecord *rak_record_set(RakRecord *rec, int idx, RakValue val, RakError *err) { // TODO: Implement this function. (void) rec; (void) idx; (void) val; (void) err; return NULL; }
O2
c
rak_record_set: xorl %eax, %eax retq
rak_record_set: xor eax, eax retn
long long rak_record_set() { return 0LL; }
rak_record_set: XOR EAX,EAX RET
int8 rak_record_set(void) { return 0; }
31,020
rak_record_set
fabiosvm[P]rak/src/record.c
RakRecord *rak_record_set(RakRecord *rec, int idx, RakValue val, RakError *err) { // TODO: Implement this function. (void) rec; (void) idx; (void) val; (void) err; return NULL; }
O3
c
rak_record_set: xorl %eax, %eax retq
rak_record_set: xor eax, eax retn
long long rak_record_set() { return 0LL; }
rak_record_set: XOR EAX,EAX RET
int8 rak_record_set(void) { return 0; }
31,021
nlohmann::json_abi_v3_11_2::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_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>::json_value::json_value(nlohmann::json_abi_v3_11_2::detail::value_t)
7CodeWizard[P]stablediffusion/thirdparty/json.hpp
json_value(value_t t) { switch (t) { case value_t::object: { object = create<object_t>(); break; } case value_t::array: { array = create<array_t>(); break; } case value_t::string: { string = create<string_t>(""); break; } case value_t::binary: { binary = create<binary_t>(); break; } case value_t::boolean: { boolean = static_cast<boolean_t>(false); break; } case value_t::number_integer: { number_integer = static_cast<number_integer_t>(0); break; } case value_t::number_unsigned: { number_unsigned = static_cast<number_unsigned_t>(0); break; } case value_t::number_float: { number_float = static_cast<number_float_t>(0.0); break; } case value_t::null: { object = nullptr; // silence warning, see #821 break; } case value_t::discarded: default: { object = nullptr; // silence warning, see #821 if (JSON_HEDLEY_UNLIKELY(t == value_t::null)) { JSON_THROW(other_error::create(500, "961c151d2e87f2686a955a9be24d316f1362bf21 3.11.2", nullptr)); // LCOV_EXCL_LINE } break; } } }
O0
cpp
nlohmann::json_abi_v3_11_2::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_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>::json_value::json_value(nlohmann::json_abi_v3_11_2::detail::value_t): subq $0x68, %rsp movb %sil, %al movq %rdi, 0x60(%rsp) movb %al, 0x5f(%rsp) movq 0x60(%rsp), %rax movq %rax, 0x10(%rsp) movzbl 0x5f(%rsp), %eax movq %rax, 0x18(%rsp) subq $0x9, %rax ja 0xd1551 movq 0x18(%rsp), %rax leaq 0xb1056(%rip), %rcx # 0x1824f0 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax callq 0xd1640 movq %rax, %rcx movq 0x10(%rsp), %rax movq %rcx, (%rax) jmp 0xd162b callq 0xd16f0 movq %rax, %rcx movq 0x10(%rsp), %rax movq %rcx, (%rax) jmp 0xd162b leaq 0xb5aaa(%rip), %rdi # 0x186f7e callq 0xd17a0 movq %rax, %rcx movq 0x10(%rsp), %rax movq %rcx, (%rax) jmp 0xd162b callq 0xd1880 movq %rax, %rcx movq 0x10(%rsp), %rax movq %rcx, (%rax) jmp 0xd162b movq 0x10(%rsp), %rax movb $0x0, (%rax) jmp 0xd162b movq 0x10(%rsp), %rax movq $0x0, (%rax) jmp 0xd162b movq 0x10(%rsp), %rax movq $0x0, (%rax) jmp 0xd162b movq 0x10(%rsp), %rax xorps %xmm0, %xmm0 movsd %xmm0, (%rax) jmp 0xd162b movq 0x10(%rsp), %rax movq $0x0, (%rax) jmp 0xd162b jmp 0xd1551 movq 0x10(%rsp), %rax movq $0x0, (%rax) cmpb $0x0, 0x5f(%rsp) sete %al xorb $-0x1, %al xorb $-0x1, %al testb $0x1, %al jne 0xd1572 jmp 0xd1629 movb $0x1, 0x23(%rsp) movl $0x20, %edi callq 0xb320 movq %rax, (%rsp) leaq 0x37(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0xbd40 movq 0x8(%rsp), %rdx leaq 0xb2f1c(%rip), %rsi # 0x1844bc leaq 0x38(%rsp), %rdi callq 0x30260 jmp 0xd15ac movq (%rsp), %rdi xorl %eax, %eax movl %eax, %ecx movl $0x1f4, %esi # imm = 0x1F4 leaq 0x38(%rsp), %rdx callq 0xd1930 jmp 0xd15c5 movq (%rsp), %rdi movb $0x0, 0x23(%rsp) leaq 0x105e3b(%rip), %rsi # 0x1d7410 leaq 0x4f4(%rip), %rdx # 0xd1ad0 callq 0xbcb0 jmp 0xd163a movq %rax, %rcx movl %edx, %eax movq %rcx, 0x28(%rsp) movl %eax, 0x24(%rsp) jmp 0xd160b movq %rax, %rcx movl %edx, %eax movq %rcx, 0x28(%rsp) movl %eax, 0x24(%rsp) leaq 0x38(%rsp), %rdi callq 0xbf00 leaq 0x37(%rsp), %rdi callq 0xb820 testb $0x1, 0x23(%rsp) jne 0xd161e jmp 0xd1627 movq (%rsp), %rdi callq 0xb540 jmp 0xd1630 jmp 0xd162b addq $0x68, %rsp retq movq 0x28(%rsp), %rdi callq 0xbd30 nopw (%rax,%rax)
_ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE10json_valueC2ENS0_6detail7value_tE: sub rsp, 68h mov al, sil mov qword ptr [rsp+68h+var_8], rdi; int mov [rsp+68h+var_9], al mov rax, qword ptr [rsp+68h+var_8] mov qword ptr [rsp+68h+var_58], rax; int movzx eax, [rsp+68h+var_9] mov qword ptr [rsp+68h+var_50], rax; char sub rax, 9; switch 10 cases ja def_D14A1; jumptable 00000000000D14A1 default case mov rax, qword ptr [rsp+68h+var_50] lea rcx, jpt_D14A1 movsxd rax, ds:(jpt_D14A1 - 1824F0h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_D14A3: call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE6createIS2_IS9_SD_St4lessIvESaISt4pairIKS9_SD_EEEJEEEPT_DpOT0_; jumptable 00000000000D14A1 case 1 mov rcx, rax mov rax, qword ptr [rsp+68h+var_58] mov [rax], rcx jmp loc_D162B loc_D14B8: call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE6createIS3_ISD_SaISD_EEJEEEPT_DpOT0_; jumptable 00000000000D14A1 case 2 mov rcx, rax mov rax, qword ptr [rsp+68h+var_58] mov [rax], rcx jmp loc_D162B loc_D14CD: lea rdi, dword_186F7E; jumptable 00000000000D14A1 case 3 call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE6createIS9_JRA1_KcEEEPT_DpOT0_; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::create<std::string,char const(&)[1]>(char const(&)[1] &&) mov rcx, rax mov rax, qword ptr [rsp+68h+var_58] mov [rax], rcx jmp loc_D162B loc_D14E9: call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE6createINS0_27byte_container_with_subtypeISC_EEJEEEPT_DpOT0_; jumptable 00000000000D14A1 case 8 mov rcx, rax mov rax, qword ptr [rsp+68h+var_58] mov [rax], rcx jmp loc_D162B loc_D14FE: mov rax, qword ptr [rsp+68h+var_58]; jumptable 00000000000D14A1 case 4 mov byte ptr [rax], 0 jmp loc_D162B loc_D150B: mov rax, qword ptr [rsp+68h+var_58]; jumptable 00000000000D14A1 case 5 mov qword ptr [rax], 0 jmp loc_D162B loc_D151C: mov rax, qword ptr [rsp+68h+var_58]; jumptable 00000000000D14A1 case 6 mov qword ptr [rax], 0 jmp loc_D162B loc_D152D: mov rax, qword ptr [rsp+68h+var_58]; jumptable 00000000000D14A1 case 7 xorps xmm0, xmm0 movsd qword ptr [rax], xmm0 jmp loc_D162B loc_D153E: mov rax, qword ptr [rsp+68h+var_58]; jumptable 00000000000D14A1 case 0 mov qword ptr [rax], 0 jmp loc_D162B loc_D154F: jmp short $+2; jumptable 00000000000D14A1 case 9 def_D14A1: mov rax, qword ptr [rsp+68h+var_58]; jumptable 00000000000D14A1 default case mov qword ptr [rax], 0 cmp [rsp+68h+var_9], 0 setz al xor al, 0FFh xor al, 0FFh test al, 1 jnz short loc_D1572 jmp loc_D1629 loc_D1572: mov [rsp+68h+var_45], 1 mov edi, 20h ; ' '; thrown_size call ___cxa_allocate_exception mov [rsp+68h+var_68], rax; int lea rdi, [rsp+68h+var_31] mov qword ptr [rsp+68h+var_60], rdi; int call __ZNSaIcEC1Ev; std::allocator<char>::allocator(void) mov rdx, qword ptr [rsp+68h+var_60] lea rsi, a961c151d2e87f2; "961c151d2e87f2686a955a9be24d316f1362bf2"... lea rdi, [rsp+68h+var_31+1] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) jmp short $+2 loc_D15AC: mov rdi, [rsp+68h+var_68]; int xor eax, eax mov ecx, eax mov esi, 1F4h lea rdx, [rsp+68h+var_31+1] call _ZN8nlohmann16json_abi_v3_11_26detail11other_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ jmp short $+2 loc_D15C5: mov rdi, [rsp+68h+var_68]; void * mov [rsp+68h+var_45], 0 lea rsi, _ZTIN8nlohmann16json_abi_v3_11_26detail11other_errorE; lptinfo lea rdx, _ZN8nlohmann16json_abi_v3_11_26detail11other_errorD2Ev; void (*)(void *) call ___cxa_throw jmp short loc_D163A mov rcx, rax mov eax, edx mov [rsp+arg_20], rcx mov [rsp+arg_1C], eax jmp short loc_D160B mov rcx, rax mov eax, edx mov [rsp+arg_20], rcx mov [rsp+arg_1C], eax lea rdi, [rsp+arg_30]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_D160B: lea rdi, [rsp+arg_2F] call __ZNSaIcED1Ev; std::allocator<char>::~allocator() test [rsp+arg_1B], 1 jnz short loc_D161E jmp short loc_D1627 loc_D161E: mov rdi, [rsp+0]; void * call ___cxa_free_exception loc_D1627: jmp short loc_D1630 loc_D1629: jmp short $+2 loc_D162B: add rsp, 68h retn loc_D1630: mov rdi, [rsp+arg_20] call __Unwind_Resume loc_D163A: nop word ptr [rax+rax+00h]
json_value: SUB RSP,0x68 MOV AL,SIL MOV qword ptr [RSP + 0x60],RDI MOV byte ptr [RSP + 0x5f],AL MOV RAX,qword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x10],RAX MOVZX EAX,byte ptr [RSP + 0x5f] MOV qword ptr [RSP + 0x18],RAX SUB RAX,0x9 JA 0x001d1551 MOV RAX,qword ptr [RSP + 0x18] LEA RCX,[0x2824f0] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_1: CALL 0x001d1640 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RAX],RCX JMP 0x001d162b caseD_2: CALL 0x001d16f0 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RAX],RCX JMP 0x001d162b caseD_3: LEA RDI,[0x286f7e] CALL 0x001d17a0 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RAX],RCX JMP 0x001d162b caseD_8: CALL 0x001d1880 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RAX],RCX JMP 0x001d162b caseD_4: MOV RAX,qword ptr [RSP + 0x10] MOV byte ptr [RAX],0x0 JMP 0x001d162b caseD_5: MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RAX],0x0 JMP 0x001d162b caseD_6: MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RAX],0x0 JMP 0x001d162b caseD_7: MOV RAX,qword ptr [RSP + 0x10] XORPS XMM0,XMM0 MOVSD qword ptr [RAX],XMM0 JMP 0x001d162b caseD_0: MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RAX],0x0 JMP 0x001d162b caseD_9: JMP 0x001d1551 default: MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RAX],0x0 CMP byte ptr [RSP + 0x5f],0x0 SETZ AL XOR AL,0xff XOR AL,0xff TEST AL,0x1 JNZ 0x001d1572 JMP 0x001d1629 LAB_001d1572: MOV byte ptr [RSP + 0x23],0x1 MOV EDI,0x20 CALL 0x0010b320 MOV qword ptr [RSP],RAX LEA RDI,[RSP + 0x37] MOV qword ptr [RSP + 0x8],RDI CALL 0x0010bd40 MOV RDX,qword ptr [RSP + 0x8] LAB_001d1599: LEA RSI,[0x2844bc] LEA RDI,[RSP + 0x38] CALL 0x00130260 JMP 0x001d15ac LAB_001d15ac: MOV RDI,qword ptr [RSP] XOR EAX,EAX MOV ECX,EAX MOV ESI,0x1f4 LEA RDX,[RSP + 0x38] CALL 0x001d1930 JMP 0x001d15c5 LAB_001d15c5: MOV RDI,qword ptr [RSP] MOV byte ptr [RSP + 0x23],0x0 LEA RSI,[0x2d7410] LEA RDX,[0x1d1ad0] CALL 0x0010bcb0 LAB_001d1629: JMP 0x001d162b LAB_001d162b: ADD RSP,0x68 RET
/* nlohmann::json_abi_v3_11_2::basic_json<std::map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> > >::json_value::json_value(nlohmann::json_abi_v3_11_2::detail::value_t) */ void __thiscall nlohmann::json_abi_v3_11_2:: basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>> ::json_value::json_value(json_value *this,char param_2) { map *pmVar1; vector *pvVar2; string *psVar3; byte_container_with_subtype *pbVar4; int8 uVar5; allocator local_31; string local_30 [39]; char local_9; json_value *local_8; local_9 = param_2; local_8 = this; switch(param_2) { case '\0': *(int8 *)this = 0; break; case '\x01': pmVar1 = create<std::map<std::__cxx11::string,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>>> (); *(map **)this = pmVar1; break; case '\x02': pvVar2 = create<std::vector<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>,std::allocator<nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>>>>> (); *(vector **)this = pvVar2; break; case '\x03': psVar3 = create<std::__cxx11::string,char_const(&)[1]>(""); *(string **)this = psVar3; break; case '\x04': *this = (json_value)0x0; break; case '\x05': *(int8 *)this = 0; break; case '\x06': *(int8 *)this = 0; break; case '\a': *(int8 *)this = 0; break; case '\b': pbVar4 = create<nlohmann::json_abi_v3_11_2::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>> (); *(byte_container_with_subtype **)this = pbVar4; break; case '\t': default: *(int8 *)this = 0; if (param_2 == '\0') { uVar5 = __cxa_allocate_exception(0x20); std::allocator<char>::allocator(); /* try { // try from 001d1599 to 001d15a9 has its CatchHandler @ 001d15e3 */ std::__cxx11::string::string<std::allocator<char>> (local_30,"961c151d2e87f2686a955a9be24d316f1362bf21 3.11.2",&local_31); /* try { // try from 001d15ac to 001d15e0 has its CatchHandler @ 001d15f3 */ _ZN8nlohmann16json_abi_v3_11_26detail11other_error6createIDnTnNSt9enable_ifIXsr21is_basic_json_contextIT_EE5valueEiE4typeELi0EEES2_iRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_ (uVar5,500,local_30,0); /* WARNING: Subroutine does not return */ __cxa_throw(uVar5,&detail::other_error::typeinfo,detail::other_error::~other_error); } } return; }
31,022
nlohmann::json_abi_v3_11_2::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_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>::json_value::json_value(nlohmann::json_abi_v3_11_2::detail::value_t)
7CodeWizard[P]stablediffusion/thirdparty/json.hpp
json_value(value_t t) { switch (t) { case value_t::object: { object = create<object_t>(); break; } case value_t::array: { array = create<array_t>(); break; } case value_t::string: { string = create<string_t>(""); break; } case value_t::binary: { binary = create<binary_t>(); break; } case value_t::boolean: { boolean = static_cast<boolean_t>(false); break; } case value_t::number_integer: { number_integer = static_cast<number_integer_t>(0); break; } case value_t::number_unsigned: { number_unsigned = static_cast<number_unsigned_t>(0); break; } case value_t::number_float: { number_float = static_cast<number_float_t>(0.0); break; } case value_t::null: { object = nullptr; // silence warning, see #821 break; } case value_t::discarded: default: { object = nullptr; // silence warning, see #821 if (JSON_HEDLEY_UNLIKELY(t == value_t::null)) { JSON_THROW(other_error::create(500, "961c151d2e87f2686a955a9be24d316f1362bf21 3.11.2", nullptr)); // LCOV_EXCL_LINE } break; } } }
O1
cpp
nlohmann::json_abi_v3_11_2::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_2::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>>::json_value::json_value(nlohmann::json_abi_v3_11_2::detail::value_t): pushq %rbx movq %rdi, %rbx cmpl $0x8, %esi ja 0x714e9 movl %esi, %eax leaq 0x4f4f0(%rip), %rcx # 0xc09d0 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movq $0x0, (%rbx) jmp 0x71568 movl $0x30, %edi callq 0xa5d0 leaq 0x8(%rax), %rcx xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rax) movups %xmm0, 0x20(%rax) movups %xmm0, (%rax) movq %rcx, 0x18(%rax) movq %rcx, 0x20(%rax) movq $0x0, 0x28(%rax) jmp 0x71565 movb $0x0, (%rbx) jmp 0x71568 movl $0x18, %edi callq 0xa5d0 xorps %xmm0, %xmm0 movups %xmm0, (%rax) movq $0x0, 0x10(%rax) jmp 0x71565 leaq 0x538e8(%rip), %rdi # 0xc4e2e callq 0x7156a jmp 0x71565 movl $0x28, %edi callq 0xa5d0 xorps %xmm0, %xmm0 movups %xmm0, (%rax) movups %xmm0, 0x10(%rax) movb $0x0, 0x20(%rax) movq %rax, (%rbx) popq %rbx retq
_ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE10json_valueC2ENS0_6detail7value_tE: push rbx mov rbx, rdi cmp esi, 8; switch 9 cases ja short def_714E7; jumptable 00000000000714E7 default case, cases 0,5-7 mov eax, esi lea rcx, jpt_714E7 movsxd rax, ds:(jpt_714E7 - 0C09D0h)[rcx+rax*4] add rax, rcx jmp rax; switch jump def_714E7: mov qword ptr [rbx], 0; jumptable 00000000000714E7 default case, cases 0,5-7 jmp short loc_71568 loc_714F2: mov edi, 30h ; '0'; jumptable 00000000000714E7 case 1 call __Znwm; operator new(ulong) lea rcx, [rax+8] xorps xmm0, xmm0 movups xmmword ptr [rax+10h], xmm0 movups xmmword ptr [rax+20h], xmm0 movups xmmword ptr [rax], xmm0 mov [rax+18h], rcx mov [rax+20h], rcx mov qword ptr [rax+28h], 0 jmp short loc_71565 loc_71520: mov byte ptr [rbx], 0; jumptable 00000000000714E7 case 4 jmp short loc_71568 loc_71525: mov edi, 18h; jumptable 00000000000714E7 case 2 call __Znwm; operator new(ulong) xorps xmm0, xmm0 movups xmmword ptr [rax], xmm0 mov qword ptr [rax+10h], 0 jmp short loc_71565 loc_7153F: lea rdi, unk_C4E2E; jumptable 00000000000714E7 case 3 call _ZN8nlohmann16json_abi_v3_11_210basic_jsonISt3mapSt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEE6createIS9_JRA1_KcEEEPT_DpOT0_; nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<uchar>>::create<std::string,char const(&)[1]>(char const(&)[1] &&) jmp short loc_71565 loc_7154D: mov edi, 28h ; '('; jumptable 00000000000714E7 case 8 call __Znwm; operator new(ulong) xorps xmm0, xmm0 movups xmmword ptr [rax], xmm0 movups xmmword ptr [rax+10h], xmm0 mov byte ptr [rax+20h], 0 loc_71565: mov [rbx], rax loc_71568: pop rbx retn
long long nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::json_value::json_value( _BYTE *a1, unsigned int a2) { long long result; // rax result = a2; switch ( a2 ) { case 1u: result = operator new(0x30uLL); *(_OWORD *)(result + 16) = 0LL; *(_OWORD *)(result + 32) = 0LL; *(_OWORD *)result = 0LL; *(_QWORD *)(result + 24) = result + 8; *(_QWORD *)(result + 32) = result + 8; *(_QWORD *)(result + 40) = 0LL; goto LABEL_8; case 2u: result = operator new(0x18uLL); *(_OWORD *)result = 0LL; *(_QWORD *)(result + 16) = 0LL; goto LABEL_8; case 3u: result = nlohmann::json_abi_v3_11_2::basic_json<std::map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_2::adl_serializer,std::vector<unsigned char>>::create<std::string,char const(&)[1]>(&unk_C4E2E); goto LABEL_8; case 4u: *a1 = 0; return result; case 8u: result = operator new(0x28uLL); *(_OWORD *)result = 0LL; *(_OWORD *)(result + 16) = 0LL; *(_BYTE *)(result + 32) = 0; LABEL_8: *(_QWORD *)a1 = result; break; default: *(_QWORD *)a1 = 0LL; break; } return result; }
31,023
my_instr_bin
eloqsql/strings/ctype-bin.c
static uint my_instr_bin(CHARSET_INFO *cs __attribute__((unused)), const char *b, size_t b_length, const char *s, size_t s_length, my_match_t *match, uint nmatch) { register const uchar *str, *search, *end, *search_end; if (s_length <= b_length) { if (!s_length) { if (nmatch) { match->beg= 0; match->end= 0; match->mb_len= 0; } return 1; /* Empty string is always found */ } str= (const uchar*) b; search= (const uchar*) s; end= (const uchar*) b+b_length-s_length+1; search_end= (const uchar*) s + s_length; skip: while (str != end) { if ( (*str++) == (*search)) { register const uchar *i,*j; i= str; j= search+1; while (j != search_end) if ((*i++) != (*j++)) goto skip; if (nmatch > 0) { match[0].beg= 0; match[0].end= (uint) (str- (const uchar*)b-1); match[0].mb_len= match[0].end; if (nmatch > 1) { match[1].beg= match[0].end; match[1].end= (uint)(match[0].end+s_length); match[1].mb_len= match[1].end-match[1].beg; } } return 2; } } } return 0; }
O0
c
my_instr_bin: pushq %rbp movq %rsp, %rbp movl 0x10(%rbp), %eax movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq %rdx, -0x20(%rbp) movq %rcx, -0x28(%rbp) movq %r8, -0x30(%rbp) movq %r9, -0x38(%rbp) movq -0x30(%rbp), %rax cmpq -0x20(%rbp), %rax ja 0x3d85b cmpq $0x0, -0x30(%rbp) jne 0x3d726 cmpl $0x0, 0x10(%rbp) je 0x3d71a movq -0x38(%rbp), %rax movl $0x0, (%rax) movq -0x38(%rbp), %rax movl $0x0, 0x4(%rax) movq -0x38(%rbp), %rax movl $0x0, 0x8(%rax) movl $0x1, -0x4(%rbp) jmp 0x3d862 movq -0x18(%rbp), %rax movq %rax, -0x40(%rbp) movq -0x28(%rbp), %rax movq %rax, -0x48(%rbp) movq -0x18(%rbp), %rax addq -0x20(%rbp), %rax xorl %ecx, %ecx subq -0x30(%rbp), %rcx addq %rcx, %rax addq $0x1, %rax movq %rax, -0x50(%rbp) movq -0x28(%rbp), %rax addq -0x30(%rbp), %rax movq %rax, -0x58(%rbp) jmp 0x3d75d movq -0x40(%rbp), %rax cmpq -0x50(%rbp), %rax je 0x3d859 movq -0x40(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x40(%rbp) movzbl (%rax), %eax movq -0x48(%rbp), %rcx movzbl (%rcx), %ecx cmpl %ecx, %eax jne 0x3d854 movq -0x40(%rbp), %rax movq %rax, -0x60(%rbp) movq -0x48(%rbp), %rax addq $0x1, %rax movq %rax, -0x68(%rbp) movq -0x68(%rbp), %rax cmpq -0x58(%rbp), %rax je 0x3d7d6 movq -0x60(%rbp), %rax movq %rax, %rcx addq $0x1, %rcx movq %rcx, -0x60(%rbp) movzbl (%rax), %eax movq -0x68(%rbp), %rcx movq %rcx, %rdx addq $0x1, %rdx movq %rdx, -0x68(%rbp) movzbl (%rcx), %ecx cmpl %ecx, %eax je 0x3d7d4 jmp 0x3d75b jmp 0x3d7a0 cmpl $0x0, 0x10(%rbp) jbe 0x3d84b movq -0x38(%rbp), %rax movl $0x0, (%rax) movq -0x40(%rbp), %rax movq -0x18(%rbp), %rcx subq %rcx, %rax subq $0x1, %rax movl %eax, %ecx movq -0x38(%rbp), %rax movl %ecx, 0x4(%rax) movq -0x38(%rbp), %rax movl 0x4(%rax), %ecx movq -0x38(%rbp), %rax movl %ecx, 0x8(%rax) cmpl $0x1, 0x10(%rbp) jbe 0x3d849 movq -0x38(%rbp), %rax movl 0x4(%rax), %ecx movq -0x38(%rbp), %rax movl %ecx, 0xc(%rax) movq -0x38(%rbp), %rax movl 0x4(%rax), %eax addq -0x30(%rbp), %rax movl %eax, %ecx movq -0x38(%rbp), %rax movl %ecx, 0x10(%rax) movq -0x38(%rbp), %rax movl 0x10(%rax), %ecx movq -0x38(%rbp), %rax subl 0xc(%rax), %ecx movq -0x38(%rbp), %rax movl %ecx, 0x14(%rax) jmp 0x3d84b movl $0x2, -0x4(%rbp) jmp 0x3d862 jmp 0x3d75d jmp 0x3d85b movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax popq %rbp retq nopw (%rax,%rax)
my_instr_bin: push rbp mov rbp, rsp mov eax, [rbp+arg_0] mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_20], rdx mov [rbp+var_28], rcx mov [rbp+var_30], r8 mov [rbp+var_38], r9 mov rax, [rbp+var_30] cmp rax, [rbp+var_20] ja loc_3D85B cmp [rbp+var_30], 0 jnz short loc_3D726 cmp [rbp+arg_0], 0 jz short loc_3D71A mov rax, [rbp+var_38] mov dword ptr [rax], 0 mov rax, [rbp+var_38] mov dword ptr [rax+4], 0 mov rax, [rbp+var_38] mov dword ptr [rax+8], 0 loc_3D71A: mov [rbp+var_4], 1 jmp loc_3D862 loc_3D726: mov rax, [rbp+var_18] mov [rbp+var_40], rax mov rax, [rbp+var_28] mov [rbp+var_48], rax mov rax, [rbp+var_18] add rax, [rbp+var_20] xor ecx, ecx sub rcx, [rbp+var_30] add rax, rcx add rax, 1 mov [rbp+var_50], rax mov rax, [rbp+var_28] add rax, [rbp+var_30] mov [rbp+var_58], rax loc_3D75B: jmp short $+2 loc_3D75D: mov rax, [rbp+var_40] cmp rax, [rbp+var_50] jz loc_3D859 mov rax, [rbp+var_40] mov rcx, rax add rcx, 1 mov [rbp+var_40], rcx movzx eax, byte ptr [rax] mov rcx, [rbp+var_48] movzx ecx, byte ptr [rcx] cmp eax, ecx jnz loc_3D854 mov rax, [rbp+var_40] mov [rbp+var_60], rax mov rax, [rbp+var_48] add rax, 1 mov [rbp+var_68], rax loc_3D7A0: mov rax, [rbp+var_68] cmp rax, [rbp+var_58] jz short loc_3D7D6 mov rax, [rbp+var_60] mov rcx, rax add rcx, 1 mov [rbp+var_60], rcx movzx eax, byte ptr [rax] mov rcx, [rbp+var_68] mov rdx, rcx add rdx, 1 mov [rbp+var_68], rdx movzx ecx, byte ptr [rcx] cmp eax, ecx jz short loc_3D7D4 jmp short loc_3D75B loc_3D7D4: jmp short loc_3D7A0 loc_3D7D6: cmp [rbp+arg_0], 0 jbe short loc_3D84B mov rax, [rbp+var_38] mov dword ptr [rax], 0 mov rax, [rbp+var_40] mov rcx, [rbp+var_18] sub rax, rcx sub rax, 1 mov ecx, eax mov rax, [rbp+var_38] mov [rax+4], ecx mov rax, [rbp+var_38] mov ecx, [rax+4] mov rax, [rbp+var_38] mov [rax+8], ecx cmp [rbp+arg_0], 1 jbe short loc_3D849 mov rax, [rbp+var_38] mov ecx, [rax+4] mov rax, [rbp+var_38] mov [rax+0Ch], ecx mov rax, [rbp+var_38] mov eax, [rax+4] add rax, [rbp+var_30] mov ecx, eax mov rax, [rbp+var_38] mov [rax+10h], ecx mov rax, [rbp+var_38] mov ecx, [rax+10h] mov rax, [rbp+var_38] sub ecx, [rax+0Ch] mov rax, [rbp+var_38] mov [rax+14h], ecx loc_3D849: jmp short $+2 loc_3D84B: mov [rbp+var_4], 2 jmp short loc_3D862 loc_3D854: jmp loc_3D75D loc_3D859: jmp short $+2 loc_3D85B: mov [rbp+var_4], 0 loc_3D862: mov eax, [rbp+var_4] pop rbp retn
long long my_instr_bin( long long a1, unsigned __int8 *a2, unsigned long long a3, unsigned __int8 *a4, unsigned long long a5, _DWORD *a6, unsigned int a7) { unsigned __int8 *v7; // rax unsigned __int8 *v8; // rax unsigned __int8 *v9; // rcx unsigned __int8 *v11; // [rsp+0h] [rbp-68h] unsigned __int8 *v12; // [rsp+8h] [rbp-60h] unsigned __int8 *v13; // [rsp+10h] [rbp-58h] unsigned __int8 *v14; // [rsp+28h] [rbp-40h] if ( a5 > a3 ) return 0; if ( a5 ) { v14 = a2; v13 = &a4[a5]; LABEL_7: while ( v14 != &a2[a3 - a5 + 1] ) { v7 = v14++; if ( *v7 == *a4 ) { v12 = v14; v11 = a4 + 1; while ( v11 != v13 ) { v8 = v12++; v9 = v11++; if ( *v8 != *v9 ) goto LABEL_7; } if ( a7 ) { *a6 = 0; a6[1] = (_DWORD)v14 - (_DWORD)a2 - 1; a6[2] = a6[1]; if ( a7 > 1 ) { a6[3] = a6[1]; a6[4] = a5 + a6[1]; a6[5] = a6[4] - a6[3]; } } return 2; } } return 0; } if ( a7 ) { *a6 = 0; a6[1] = 0; a6[2] = 0; } return 1; }
my_instr_bin: PUSH RBP MOV RBP,RSP MOV EAX,dword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV qword ptr [RBP + -0x20],RDX MOV qword ptr [RBP + -0x28],RCX MOV qword ptr [RBP + -0x30],R8 MOV qword ptr [RBP + -0x38],R9 MOV RAX,qword ptr [RBP + -0x30] CMP RAX,qword ptr [RBP + -0x20] JA 0x0013d85b CMP qword ptr [RBP + -0x30],0x0 JNZ 0x0013d726 CMP dword ptr [RBP + 0x10],0x0 JZ 0x0013d71a MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x4],0x0 MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x8],0x0 LAB_0013d71a: MOV dword ptr [RBP + -0x4],0x1 JMP 0x0013d862 LAB_0013d726: MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x40],RAX MOV RAX,qword ptr [RBP + -0x28] MOV qword ptr [RBP + -0x48],RAX MOV RAX,qword ptr [RBP + -0x18] ADD RAX,qword ptr [RBP + -0x20] XOR ECX,ECX SUB RCX,qword ptr [RBP + -0x30] ADD RAX,RCX ADD RAX,0x1 MOV qword ptr [RBP + -0x50],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,qword ptr [RBP + -0x30] MOV qword ptr [RBP + -0x58],RAX LAB_0013d75b: JMP 0x0013d75d LAB_0013d75d: MOV RAX,qword ptr [RBP + -0x40] CMP RAX,qword ptr [RBP + -0x50] JZ 0x0013d859 MOV RAX,qword ptr [RBP + -0x40] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x40],RCX MOVZX EAX,byte ptr [RAX] MOV RCX,qword ptr [RBP + -0x48] MOVZX ECX,byte ptr [RCX] CMP EAX,ECX JNZ 0x0013d854 MOV RAX,qword ptr [RBP + -0x40] MOV qword ptr [RBP + -0x60],RAX MOV RAX,qword ptr [RBP + -0x48] ADD RAX,0x1 MOV qword ptr [RBP + -0x68],RAX LAB_0013d7a0: MOV RAX,qword ptr [RBP + -0x68] CMP RAX,qword ptr [RBP + -0x58] JZ 0x0013d7d6 MOV RAX,qword ptr [RBP + -0x60] MOV RCX,RAX ADD RCX,0x1 MOV qword ptr [RBP + -0x60],RCX MOVZX EAX,byte ptr [RAX] MOV RCX,qword ptr [RBP + -0x68] MOV RDX,RCX ADD RDX,0x1 MOV qword ptr [RBP + -0x68],RDX MOVZX ECX,byte ptr [RCX] CMP EAX,ECX JZ 0x0013d7d4 JMP 0x0013d75b LAB_0013d7d4: JMP 0x0013d7a0 LAB_0013d7d6: CMP dword ptr [RBP + 0x10],0x0 JBE 0x0013d84b MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX],0x0 MOV RAX,qword ptr [RBP + -0x40] MOV RCX,qword ptr [RBP + -0x18] SUB RAX,RCX SUB RAX,0x1 MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x4],ECX MOV RAX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RAX + 0x4] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x8],ECX CMP dword ptr [RBP + 0x10],0x1 JBE 0x0013d849 MOV RAX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RAX + 0x4] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0xc],ECX MOV RAX,qword ptr [RBP + -0x38] MOV EAX,dword ptr [RAX + 0x4] ADD RAX,qword ptr [RBP + -0x30] MOV ECX,EAX MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x10],ECX MOV RAX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RAX + 0x10] MOV RAX,qword ptr [RBP + -0x38] SUB ECX,dword ptr [RAX + 0xc] MOV RAX,qword ptr [RBP + -0x38] MOV dword ptr [RAX + 0x14],ECX LAB_0013d849: JMP 0x0013d84b LAB_0013d84b: MOV dword ptr [RBP + -0x4],0x2 JMP 0x0013d862 LAB_0013d854: JMP 0x0013d75d LAB_0013d859: JMP 0x0013d85b LAB_0013d85b: MOV dword ptr [RBP + -0x4],0x0 LAB_0013d862: MOV EAX,dword ptr [RBP + -0x4] POP RBP RET
int4 my_instr_bin(int8 param_1,char *param_2,ulong param_3,char *param_4,ulong param_5, int4 *param_6,uint param_7) { char cVar1; char cVar2; char *pcVar3; char *local_70; char *local_68; char *local_48; if (param_5 <= param_3) { if (param_5 == 0) { if (param_7 != 0) { *param_6 = 0; param_6[1] = 0; param_6[2] = 0; } return 1; } local_48 = param_2; while (local_48 != param_2 + (param_3 - param_5) + 1) { pcVar3 = local_48 + 1; cVar1 = *local_48; local_48 = pcVar3; if (cVar1 == *param_4) { local_70 = param_4 + 1; local_68 = pcVar3; do { if (local_70 == param_4 + param_5) { if (param_7 != 0) { *param_6 = 0; param_6[1] = ((int)pcVar3 - (int)param_2) + -1; param_6[2] = param_6[1]; if (1 < param_7) { param_6[3] = param_6[1]; param_6[4] = param_6[1] + (int)param_5; param_6[5] = param_6[4] - param_6[3]; } } return 2; } cVar1 = *local_68; cVar2 = *local_70; local_70 = local_70 + 1; local_68 = local_68 + 1; } while (cVar1 == cVar2); } } } return 0; }
31,024
minja::FilterExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const
monkey531[P]llama/common/minja.hpp
Value do_evaluate(const std::shared_ptr<Context> & context) const override { Value result; bool first = true; for (const auto& part : parts) { if (!part) throw std::runtime_error("FilterExpr.part is null"); if (first) { first = false; result = part->evaluate(context); } else { if (auto ce = dynamic_cast<CallExpr*>(part.get())) { auto target = ce->object->evaluate(context); ArgumentsValue args = ce->args.evaluate(context); args.args.insert(args.args.begin(), result); result = target.call(context, args); } else { auto callable = part->evaluate(context); ArgumentsValue args; args.args.insert(args.args.begin(), result); result = callable.call(context, args); } } } return result; }
O3
cpp
minja::FilterExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0xe8, %rsp movq %rdx, %r14 movq %rsi, %r15 leaq 0x40(%rdi), %r12 movq $0x0, 0x48(%rdi) xorps %xmm0, %xmm0 movups %xmm0, (%rdi) movups %xmm0, 0x10(%rdi) movups %xmm0, 0x20(%rdi) movups %xmm0, 0x30(%rdi) movq %rdi, 0x8(%rsp) movb $0x0, 0x40(%rdi) movq %r12, %rdi movl $0x1, %esi callq 0x3ecbc movq %r12, %rdi movl $0x1, %esi callq 0x3ecbc movq 0x20(%r15), %r13 movq 0x28(%r15), %rax movq %rax, 0x40(%rsp) cmpq %rax, %r13 je 0x5805a movb $0x1, %al leaq 0x48(%rsp), %rbp leaq 0x98(%rsp), %rbx movq (%r13), %r12 testq %r12, %r12 je 0x58071 testb $0x1, %al je 0x57e66 movq %rbp, %rdi movq %r12, %rsi movq %r14, %rdx callq 0x3e93e movq 0x8(%rsp), %rdi movq %rbp, %rsi callq 0x4f11e jmp 0x57fc9 movq %rbp, %r15 movq %r12, %rdi leaq 0x843ed(%rip), %rsi # 0xdc260 leaq 0x84a8e(%rip), %rdx # 0xdc908 xorl %ecx, %ecx callq 0x18760 testq %rax, %rax je 0x57ed7 movq %rax, %rbp movq 0x20(%rax), %rsi movq %r15, %rdi movq %r14, %rdx callq 0x3e93e addq $0x30, %rbp leaq 0x10(%rsp), %r12 movq %r12, %rdi movq %rbp, %rsi movq %r14, %rdx callq 0x54d60 movq 0x10(%rsp), %rsi movq %r12, %rdi movq 0x8(%rsp), %rdx callq 0x56fc0 movq %r15, %rbp movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx movq %r12, %rcx callq 0x560e0 jmp 0x57f1f movq %r15, %rbp movq %r15, %rdi movq %r12, %rsi movq %r14, %rdx callq 0x3e93e xorps %xmm0, %xmm0 movaps %xmm0, 0x30(%rsp) movaps %xmm0, 0x20(%rsp) movaps %xmm0, 0x10(%rsp) leaq 0x10(%rsp), %r12 movq %r12, %rdi xorl %esi, %esi movq 0x8(%rsp), %rdx callq 0x56fc0 movq %rbx, %rdi movq %rbp, %rsi movq %r14, %rdx movq %r12, %rcx callq 0x560e0 movq 0x8(%rsp), %rdi movq %rbx, %rsi callq 0x4f11e leaq 0xd8(%rsp), %r12 movq %r12, %rdi xorl %esi, %esi callq 0x3ecbc movq %r12, %rdi callq 0x4b8aa movq 0xd0(%rsp), %rdi testq %rdi, %rdi je 0x57f58 callq 0x30ed6 movq 0xc0(%rsp), %rdi testq %rdi, %rdi je 0x57f6a callq 0x30ed6 movq 0xb0(%rsp), %rdi testq %rdi, %rdi je 0x57f7c callq 0x30ed6 movq 0xa0(%rsp), %rdi testq %rdi, %rdi je 0x57fb5 movq 0x86008(%rip), %rax # 0xddf98 cmpb $0x0, (%rax) je 0x57fa0 movl 0xc(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0xc(%rdi) jmp 0x57faa movl $0xffffffff, %eax # imm = 0xFFFFFFFF lock xaddl %eax, 0xc(%rdi) cmpl $0x1, %eax jne 0x57fb5 movq (%rdi), %rax callq *0x18(%rax) leaq 0x28(%rsp), %rdi callq 0x57428 leaq 0x10(%rsp), %rdi callq 0x501c2 leaq 0x88(%rsp), %r12 movq %r12, %rdi xorl %esi, %esi callq 0x3ecbc movq %r12, %rdi callq 0x4b8aa movq 0x80(%rsp), %rdi testq %rdi, %rdi je 0x57ff5 callq 0x30ed6 movq 0x70(%rsp), %rdi testq %rdi, %rdi je 0x58004 callq 0x30ed6 movq 0x60(%rsp), %rdi testq %rdi, %rdi je 0x58013 callq 0x30ed6 movq 0x50(%rsp), %rdi testq %rdi, %rdi je 0x58049 movq 0x85f74(%rip), %rax # 0xddf98 cmpb $0x0, (%rax) je 0x58034 movl 0xc(%rdi), %eax leal -0x1(%rax), %ecx movl %ecx, 0xc(%rdi) jmp 0x5803e movl $0xffffffff, %eax # imm = 0xFFFFFFFF lock xaddl %eax, 0xc(%rdi) cmpl $0x1, %eax jne 0x58049 movq (%rdi), %rax callq *0x18(%rax) addq $0x10, %r13 xorl %eax, %eax cmpq 0x40(%rsp), %r13 jne 0x57e35 movq 0x8(%rsp), %rax addq $0xe8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0x10, %edi callq 0x18350 movq %rax, %r15 leaq 0x545cc(%rip), %rsi # 0xac651 movq %rax, %rdi callq 0x18260 movq 0x85f5c(%rip), %rsi # 0xddff0 movq 0x85ed5(%rip), %rdx # 0xddf70 movq %r15, %rdi callq 0x18b50 jmp 0x580b2 jmp 0x580b2 jmp 0x580e4 jmp 0x580b2 movq %rax, %r14 jmp 0x580c9 jmp 0x580e4 movq %rax, %r14 leaq 0x28(%rsp), %rdi callq 0x57428 leaq 0x10(%rsp), %rdi callq 0x501c2 leaq 0x48(%rsp), %rdi callq 0x3ec30 jmp 0x580e7 jmp 0x580e4 movq %rax, %r14 movq %r15, %rdi callq 0x184f0 jmp 0x580e7 movq %rax, %r14 movq 0x8(%rsp), %rdi callq 0x3ec30 movq %r14, %rdi callq 0x18bc0 nop
_ZNK5minja10FilterExpr11do_evaluateERKSt10shared_ptrINS_7ContextEE: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 0E8h mov r14, rdx mov r15, rsi lea r12, [rdi+40h] mov qword ptr [rdi+48h], 0 xorps xmm0, xmm0 movups xmmword ptr [rdi], xmm0 movups xmmword ptr [rdi+10h], xmm0 movups xmmword ptr [rdi+20h], xmm0 movups xmmword ptr [rdi+30h], xmm0 mov [rsp+118h+var_110], rdi mov byte ptr [rdi+40h], 0 mov rdi, r12 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r12 mov esi, 1 call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov r13, [r15+20h] mov rax, [r15+28h] mov [rsp+118h+var_D8], rax cmp r13, rax jz loc_5805A mov al, 1 lea rbp, [rsp+118h+var_D0] lea rbx, [rsp+118h+var_80] loc_57E35: mov r12, [r13+0] test r12, r12 jz loc_58071 test al, 1 jz short loc_57E66 mov rdi, rbp mov rsi, r12 mov rdx, r14 call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) mov rdi, [rsp+118h+var_110] mov rsi, rbp call _ZN5minja5ValueaSEOS0_; minja::Value::operator=(minja::Value&&) jmp loc_57FC9 loc_57E66: mov r15, rbp mov rdi, r12; lpsrc lea rsi, _ZTIN5minja10ExpressionE; lpstype lea rdx, _ZTIN5minja8CallExprE; lpdtype xor ecx, ecx; s2d call ___dynamic_cast test rax, rax jz short loc_57ED7 mov rbp, rax mov rsi, [rax+20h] mov rdi, r15 mov rdx, r14 call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) add rbp, 30h ; '0' lea r12, [rsp+118h+var_108] mov rdi, r12 mov rsi, rbp mov rdx, r14 call _ZNK5minja19ArgumentsExpression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::ArgumentsExpression::evaluate(std::shared_ptr<minja::Context> const&) mov rsi, qword ptr [rsp+118h+var_108] mov rdi, r12 mov rdx, [rsp+118h+var_110] call _ZNSt6vectorIN5minja5ValueESaIS1_EE6insertEN9__gnu_cxx17__normal_iteratorIPKS1_S3_EERS6_; std::vector<minja::Value>::insert(__gnu_cxx::__normal_iterator<minja::Value const*,std::vector<minja::Value>>,minja::Value const&) mov rbp, r15 mov rdi, rbx mov rsi, r15 mov rdx, r14 mov rcx, r12 call _ZNK5minja5Value4callERKSt10shared_ptrINS_7ContextEERNS_14ArgumentsValueE; minja::Value::call(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &) jmp short loc_57F1F loc_57ED7: mov rbp, r15 mov rdi, r15 mov rsi, r12 mov rdx, r14 call _ZNK5minja10Expression8evaluateERKSt10shared_ptrINS_7ContextEE; minja::Expression::evaluate(std::shared_ptr<minja::Context> const&) xorps xmm0, xmm0 movaps [rsp+118h+var_E8], xmm0 movaps [rsp+118h+var_F8], xmm0 movaps [rsp+118h+var_108], xmm0 lea r12, [rsp+118h+var_108] mov rdi, r12 xor esi, esi mov rdx, [rsp+118h+var_110] call _ZNSt6vectorIN5minja5ValueESaIS1_EE6insertEN9__gnu_cxx17__normal_iteratorIPKS1_S3_EERS6_; std::vector<minja::Value>::insert(__gnu_cxx::__normal_iterator<minja::Value const*,std::vector<minja::Value>>,minja::Value const&) mov rdi, rbx mov rsi, rbp mov rdx, r14 mov rcx, r12 call _ZNK5minja5Value4callERKSt10shared_ptrINS_7ContextEERNS_14ArgumentsValueE; minja::Value::call(std::shared_ptr<minja::Context> const&,minja::ArgumentsValue &) loc_57F1F: mov rdi, [rsp+118h+var_110] mov rsi, rbx call _ZN5minja5ValueaSEOS0_; minja::Value::operator=(minja::Value&&) lea r12, [rsp+118h+var_40] mov rdi, r12 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r12 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, [rsp+118h+var_48] test rdi, rdi jz short loc_57F58 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_57F58: mov rdi, [rsp+118h+var_58] test rdi, rdi jz short loc_57F6A call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_57F6A: mov rdi, [rsp+118h+var_68] test rdi, rdi jz short loc_57F7C call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_57F7C: mov rdi, [rsp+118h+var_78] test rdi, rdi jz short loc_57FB5 mov rax, cs:__libc_single_threaded_ptr cmp byte ptr [rax], 0 jz short loc_57FA0 mov eax, [rdi+0Ch] lea ecx, [rax-1] mov [rdi+0Ch], ecx jmp short loc_57FAA loc_57FA0: mov eax, 0FFFFFFFFh lock xadd [rdi+0Ch], eax loc_57FAA: cmp eax, 1 jnz short loc_57FB5 mov rax, [rdi] call qword ptr [rax+18h] loc_57FB5: lea rdi, [rsp+118h+var_F8+8] call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5minja5ValueEESaIS9_EED2Ev; std::vector<std::pair<std::string,minja::Value>>::~vector() lea rdi, [rsp+118h+var_108] call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector() loc_57FC9: lea r12, [rsp+118h+var_90] mov rdi, r12 xor esi, esi call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE16assert_invariantEb; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::assert_invariant(bool) mov rdi, r12 call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE4dataD2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::data::~data() mov rdi, [rsp+118h+var_98] test rdi, rdi jz short loc_57FF5 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_57FF5: mov rdi, [rsp+118h+var_A8] test rdi, rdi jz short loc_58004 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_58004: mov rdi, [rsp+118h+var_B8] test rdi, rdi jz short loc_58013 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_58013: mov rdi, [rsp+118h+var_C8] test rdi, rdi jz short loc_58049 mov rax, cs:__libc_single_threaded_ptr cmp byte ptr [rax], 0 jz short loc_58034 mov eax, [rdi+0Ch] lea ecx, [rax-1] mov [rdi+0Ch], ecx jmp short loc_5803E loc_58034: mov eax, 0FFFFFFFFh lock xadd [rdi+0Ch], eax loc_5803E: cmp eax, 1 jnz short loc_58049 mov rax, [rdi] call qword ptr [rax+18h] loc_58049: add r13, 10h xor eax, eax cmp r13, [rsp+118h+var_D8] jnz loc_57E35 loc_5805A: mov rax, [rsp+118h+var_110] add rsp, 0E8h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_58071: mov edi, 10h; thrown_size call ___cxa_allocate_exception mov r15, rax lea rsi, aFilterexprPart; "FilterExpr.part is null" mov rdi, rax; this call __ZNSt13runtime_errorC1EPKc; std::runtime_error::runtime_error(char const*) mov rsi, cs:lptinfo; lptinfo mov rdx, cs:_ZTISt19_Sp_make_shared_tag; void (*)(void *) mov rdi, r15; void * call ___cxa_throw jmp short loc_580B2 jmp short loc_580B2 jmp short loc_580E4 jmp short loc_580B2 mov r14, rax jmp short loc_580C9 jmp short loc_580E4 loc_580B2: mov r14, rax lea rdi, [rsp+118h+var_F8+8] call _ZNSt6vectorISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN5minja5ValueEESaIS9_EED2Ev; std::vector<std::pair<std::string,minja::Value>>::~vector() lea rdi, [rsp+118h+var_108] call _ZNSt6vectorIN5minja5ValueESaIS1_EED2Ev; std::vector<minja::Value>::~vector() loc_580C9: lea rdi, [rsp+118h+var_D0]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() jmp short loc_580E7 jmp short loc_580E4 mov r14, rax mov rdi, r15; void * call ___cxa_free_exception jmp short loc_580E7 loc_580E4: mov r14, rax loc_580E7: mov rdi, [rsp+118h+var_110]; this call _ZN5minja5ValueD2Ev; minja::Value::~Value() mov rdi, r14 call __Unwind_Resume
long long minja::FilterExpr::do_evaluate(long long a1, long long a2, long long a3) { void (****v4)(void); // r13 char v5; // al char *v6; // rbp void (***v7)(void); // r12 long long v8; // r15 void (****v9)(void); // rax void (****v10)(void); // rbp long long v11; // rdi signed __int32 v12; // eax long long v13; // rdi signed __int32 v14; // eax std::runtime_error *exception; // r15 _OWORD v18[3]; // [rsp+10h] [rbp-108h] BYREF void (****v19)(void); // [rsp+40h] [rbp-D8h] char v20; // [rsp+48h] [rbp-D0h] BYREF long long v21; // [rsp+50h] [rbp-C8h] volatile signed __int32 *v22; // [rsp+60h] [rbp-B8h] volatile signed __int32 *v23; // [rsp+70h] [rbp-A8h] volatile signed __int32 *v24; // [rsp+80h] [rbp-98h] void **v25[2]; // [rsp+88h] [rbp-90h] BYREF _BYTE v26[8]; // [rsp+98h] [rbp-80h] BYREF long long v27; // [rsp+A0h] [rbp-78h] volatile signed __int32 *v28; // [rsp+B0h] [rbp-68h] volatile signed __int32 *v29; // [rsp+C0h] [rbp-58h] volatile signed __int32 *v30; // [rsp+D0h] [rbp-48h] void **v31[8]; // [rsp+D8h] [rbp-40h] BYREF *(_QWORD *)(a1 + 72) = 0LL; *(_OWORD *)a1 = 0LL; *(_OWORD *)(a1 + 16) = 0LL; *(_OWORD *)(a1 + 32) = 0LL; *(_OWORD *)(a1 + 48) = 0LL; *(_BYTE *)(a1 + 64) = 0; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)(a1 + 64)); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)(a1 + 64)); v4 = *(void (*****)(void))(a2 + 32); v19 = *(void (*****)(void))(a2 + 40); if ( v4 != v19 ) { v5 = 1; v6 = &v20; do { v7 = *v4; if ( !*v4 ) { exception = (std::runtime_error *)__cxa_allocate_exception(0x10uLL); std::runtime_error::runtime_error(exception, "FilterExpr.part is null"); __cxa_throw( exception, (struct type_info *)&`typeinfo for'std::runtime_error, (void (*)(void *))&std::runtime_error::~runtime_error); } if ( (v5 & 1) != 0 ) { minja::Expression::evaluate((long long)v6, *v4); minja::Value::operator=(a1, (long long)v6); } else { v8 = (long long)v6; v9 = (void (****)(void))__dynamic_cast( *v4, (const struct __class_type_info *)&`typeinfo for'minja::Expression, (const struct __class_type_info *)&`typeinfo for'minja::CallExpr, 0LL); if ( v9 ) { v10 = v9; minja::Expression::evaluate(v8, v9[4]); minja::ArgumentsExpression::evaluate(v18, v10 + 6, a3); std::vector<minja::Value>::insert((long long *)v18, *(long long *)&v18[0], (const minja::Value *)a1); v6 = (char *)v8; } else { minja::Expression::evaluate((long long)v6, v7); memset(v18, 0, sizeof(v18)); std::vector<minja::Value>::insert((long long *)v18, 0LL, (const minja::Value *)a1); } minja::Value::call((long long)v26, v8); minja::Value::operator=(a1, (long long)v26); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v31); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v31); if ( v30 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v30); if ( v29 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v29); if ( v28 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v28); v11 = v27; if ( v27 ) { if ( _libc_single_threaded ) { v12 = *(_DWORD *)(v27 + 12); *(_DWORD *)(v27 + 12) = v12 - 1; } else { v12 = _InterlockedExchangeAdd((volatile signed __int32 *)(v27 + 12), 0xFFFFFFFF); } if ( v12 == 1 ) (*(void ( **)(long long, _QWORD))(*(_QWORD *)v11 + 24LL))(v11, 0LL); } std::vector<std::pair<std::string,minja::Value>>::~vector((char **)&v18[1] + 1); std::vector<minja::Value>::~vector(v18); } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::assert_invariant((char *)v25); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::data::~data(v25); if ( v24 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v24); if ( v23 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v23); if ( v22 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v22); v13 = v21; if ( v21 ) { if ( _libc_single_threaded ) { v14 = *(_DWORD *)(v21 + 12); *(_DWORD *)(v21 + 12) = v14 - 1; } else { v14 = _InterlockedExchangeAdd((volatile signed __int32 *)(v21 + 12), 0xFFFFFFFF); } if ( v14 == 1 ) (*(void ( **)(long long, _QWORD))(*(_QWORD *)v13 + 24LL))(v13, 0LL); } v4 += 2; v5 = 0; } while ( v4 != v19 ); } return a1; }
do_evaluate: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0xe8 MOV R14,RDX MOV R15,RSI LEA R12,[RDI + 0x40] MOV qword ptr [RDI + 0x48],0x0 XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI],XMM0 MOVUPS xmmword ptr [RDI + 0x10],XMM0 MOVUPS xmmword ptr [RDI + 0x20],XMM0 MOVUPS xmmword ptr [RDI + 0x30],XMM0 MOV qword ptr [RSP + 0x8],RDI MOV byte ptr [RDI + 0x40],0x0 MOV RDI,R12 MOV ESI,0x1 CALL 0x0013ecbc MOV RDI,R12 MOV ESI,0x1 CALL 0x0013ecbc MOV R13,qword ptr [R15 + 0x20] MOV RAX,qword ptr [R15 + 0x28] MOV qword ptr [RSP + 0x40],RAX CMP R13,RAX JZ 0x0015805a MOV AL,0x1 LEA RBP,[RSP + 0x48] LEA RBX,[RSP + 0x98] LAB_00157e35: MOV R12,qword ptr [R13] TEST R12,R12 JZ 0x00158071 TEST AL,0x1 JZ 0x00157e66 LAB_00157e46: MOV RDI,RBP MOV RSI,R12 MOV RDX,R14 CALL 0x0013e93e MOV RDI,qword ptr [RSP + 0x8] MOV RSI,RBP CALL 0x0014f11e JMP 0x00157fc9 LAB_00157e66: MOV R15,RBP MOV RDI,R12 LEA RSI,[0x1dc260] LEA RDX,[0x1dc908] XOR ECX,ECX CALL 0x00118760 TEST RAX,RAX JZ 0x00157ed7 MOV RBP,RAX MOV RSI,qword ptr [RAX + 0x20] LAB_00157e8d: MOV RDI,R15 MOV RDX,R14 CALL 0x0013e93e ADD RBP,0x30 LAB_00157e9c: LEA R12,[RSP + 0x10] MOV RDI,R12 MOV RSI,RBP MOV RDX,R14 CALL 0x00154d60 MOV RSI,qword ptr [RSP + 0x10] LAB_00157eb4: MOV RDI,R12 MOV RDX,qword ptr [RSP + 0x8] CALL 0x00156fc0 LAB_00157ec1: MOV RBP,R15 MOV RDI,RBX MOV RSI,R15 MOV RDX,R14 MOV RCX,R12 CALL 0x001560e0 JMP 0x00157f1f LAB_00157ed7: MOV RBP,R15 MOV RDI,R15 MOV RSI,R12 MOV RDX,R14 CALL 0x0013e93e XORPS XMM0,XMM0 MOVAPS xmmword ptr [RSP + 0x30],XMM0 MOVAPS xmmword ptr [RSP + 0x20],XMM0 MOVAPS xmmword ptr [RSP + 0x10],XMM0 LAB_00157efa: LEA R12,[RSP + 0x10] MOV RDI,R12 XOR ESI,ESI MOV RDX,qword ptr [RSP + 0x8] CALL 0x00156fc0 LAB_00157f0e: MOV RDI,RBX MOV RSI,RBP MOV RDX,R14 MOV RCX,R12 CALL 0x001560e0 LAB_00157f1f: MOV RDI,qword ptr [RSP + 0x8] MOV RSI,RBX CALL 0x0014f11e LEA R12,[RSP + 0xd8] MOV RDI,R12 XOR ESI,ESI CALL 0x0013ecbc MOV RDI,R12 CALL 0x0014b8aa MOV RDI,qword ptr [RSP + 0xd0] TEST RDI,RDI JZ 0x00157f58 CALL 0x00130ed6 LAB_00157f58: MOV RDI,qword ptr [RSP + 0xc0] TEST RDI,RDI JZ 0x00157f6a CALL 0x00130ed6 LAB_00157f6a: MOV RDI,qword ptr [RSP + 0xb0] TEST RDI,RDI JZ 0x00157f7c CALL 0x00130ed6 LAB_00157f7c: MOV RDI,qword ptr [RSP + 0xa0] TEST RDI,RDI JZ 0x00157fb5 MOV RAX,qword ptr [0x001ddf98] CMP byte ptr [RAX],0x0 JZ 0x00157fa0 MOV EAX,dword ptr [RDI + 0xc] LEA ECX,[RAX + -0x1] MOV dword ptr [RDI + 0xc],ECX JMP 0x00157faa LAB_00157fa0: MOV EAX,0xffffffff XADD.LOCK dword ptr [RDI + 0xc],EAX LAB_00157faa: CMP EAX,0x1 JNZ 0x00157fb5 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] LAB_00157fb5: LEA RDI,[RSP + 0x28] CALL 0x00157428 LEA RDI,[RSP + 0x10] CALL 0x001501c2 LAB_00157fc9: LEA R12,[RSP + 0x88] MOV RDI,R12 XOR ESI,ESI CALL 0x0013ecbc MOV RDI,R12 CALL 0x0014b8aa MOV RDI,qword ptr [RSP + 0x80] TEST RDI,RDI JZ 0x00157ff5 CALL 0x00130ed6 LAB_00157ff5: MOV RDI,qword ptr [RSP + 0x70] TEST RDI,RDI JZ 0x00158004 CALL 0x00130ed6 LAB_00158004: MOV RDI,qword ptr [RSP + 0x60] TEST RDI,RDI JZ 0x00158013 CALL 0x00130ed6 LAB_00158013: MOV RDI,qword ptr [RSP + 0x50] TEST RDI,RDI JZ 0x00158049 MOV RAX,qword ptr [0x001ddf98] CMP byte ptr [RAX],0x0 JZ 0x00158034 MOV EAX,dword ptr [RDI + 0xc] LEA ECX,[RAX + -0x1] MOV dword ptr [RDI + 0xc],ECX JMP 0x0015803e LAB_00158034: MOV EAX,0xffffffff XADD.LOCK dword ptr [RDI + 0xc],EAX LAB_0015803e: CMP EAX,0x1 JNZ 0x00158049 MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x18] LAB_00158049: ADD R13,0x10 XOR EAX,EAX CMP R13,qword ptr [RSP + 0x40] JNZ 0x00157e35 LAB_0015805a: MOV RAX,qword ptr [RSP + 0x8] ADD RSP,0xe8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00158071: MOV EDI,0x10 CALL 0x00118350 MOV R15,RAX LAB_0015807e: LEA RSI,[0x1ac651] MOV RDI,RAX CALL 0x00118260 LAB_0015808d: MOV RSI,qword ptr [0x001ddff0] MOV RDX,qword ptr [0x001ddf70] MOV RDI,R15 CALL 0x00118b50
/* minja::FilterExpr::do_evaluate(std::shared_ptr<minja::Context> const&) const */ FilterExpr * __thiscall minja::FilterExpr::do_evaluate(FilterExpr *this,shared_ptr *param_1) { int *piVar1; shared_ptr *psVar2; int iVar3; long lVar4; runtime_error *this_00; bool bVar5; int8 *puVar6; int8 local_108; int8 uStack_100; int8 local_f8; int8 uStack_f0; int8 local_e8; int8 uStack_e0; int8 *local_d8; Expression local_d0 [8]; long *local_c8; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_b8; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_a8; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_98; data local_90 [16]; shared_ptr local_80 [8]; long *local_78; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_68; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_58; _Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *local_48; data local_40 [16]; bVar5 = (bool)((char)this + '@'); *(int8 *)(this + 0x48) = 0; *(int8 *)this = 0; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int8 *)(this + 0x18) = 0; *(int8 *)(this + 0x20) = 0; *(int8 *)(this + 0x28) = 0; *(int8 *)(this + 0x30) = 0; *(int8 *)(this + 0x38) = 0; this[0x40] = (FilterExpr)0x0; nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar5); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(bVar5); puVar6 = *(int8 **)(param_1 + 0x20); local_d8 = *(int8 **)(param_1 + 0x28); if (puVar6 != local_d8) { bVar5 = true; do { psVar2 = (shared_ptr *)*puVar6; if (psVar2 == (shared_ptr *)0x0) { this_00 = (runtime_error *)__cxa_allocate_exception(0x10); /* try { // try from 0015807e to 0015808c has its CatchHandler @ 001580d7 */ std::runtime_error::runtime_error(this_00,"FilterExpr.part is null"); /* try { // try from 0015808d to 001580a2 has its CatchHandler @ 001580d5 */ /* WARNING: Subroutine does not return */ __cxa_throw(this_00,PTR_typeinfo_001ddff0,PTR__runtime_error_001ddf70); } if (bVar5) { /* try { // try from 00157e46 to 00157e53 has its CatchHandler @ 001580e4 */ Expression::evaluate(local_d0,psVar2); Value::operator=((Value *)this,(Value *)local_d0); } else { lVar4 = __dynamic_cast(psVar2,&Expression::typeinfo,&CallExpr::typeinfo,0); if (lVar4 == 0) { /* try { // try from 00157ed7 to 00157ee7 has its CatchHandler @ 001580a7 */ Expression::evaluate(local_d0,psVar2); local_e8 = 0; uStack_e0 = 0; local_f8 = 0; uStack_f0 = 0; local_108 = 0; uStack_100 = 0; /* try { // try from 00157efa to 00157f0d has its CatchHandler @ 001580a5 */ std::vector<minja::Value,std::allocator<minja::Value>>::insert ((vector<minja::Value,std::allocator<minja::Value>> *)&local_108,0,this); /* try { // try from 00157f0e to 00157f1e has its CatchHandler @ 001580a3 */ Value::call(local_80,(ArgumentsValue *)local_d0); } else { /* try { // try from 00157e8d to 00157e97 has its CatchHandler @ 001580b0 */ Expression::evaluate(local_d0,*(shared_ptr **)(lVar4 + 0x20)); /* try { // try from 00157e9c to 00157eae has its CatchHandler @ 001580ab */ ArgumentsExpression::evaluate((shared_ptr *)&local_108); /* try { // try from 00157eb4 to 00157ec0 has its CatchHandler @ 001580a9 */ std::vector<minja::Value,std::allocator<minja::Value>>::insert ((vector<minja::Value,std::allocator<minja::Value>> *)&local_108,local_108,this) ; /* try { // try from 00157ec1 to 00157ed4 has its CatchHandler @ 001580b2 */ Value::call(local_80,(ArgumentsValue *)local_d0); } Value::operator=((Value *)this,(Value *)local_80); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(local_40,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_40); if (local_48 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_48); } if (local_58 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_58); } if (local_68 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_68); } if (local_78 != (long *)0x0) { if (*PTR___libc_single_threaded_001ddf98 == '\0') { LOCK(); piVar1 = (int *)((long)local_78 + 0xc); iVar3 = *piVar1; *piVar1 = *piVar1 + -1; UNLOCK(); } else { iVar3 = *(int *)((long)local_78 + 0xc); *(int *)((long)local_78 + 0xc) = iVar3 + -1; } if (iVar3 == 1) { (**(code **)(*local_78 + 0x18))(); } } std:: vector<std::pair<std::__cxx11::string,minja::Value>,std::allocator<std::pair<std::__cxx11::string,minja::Value>>> ::~vector((vector<std::pair<std::__cxx11::string,minja::Value>,std::allocator<std::pair<std::__cxx11::string,minja::Value>>> *)&uStack_f0); std::vector<minja::Value,std::allocator<minja::Value>>::~vector ((vector<minja::Value,std::allocator<minja::Value>> *)&local_108); } nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::assert_invariant(SUB81(local_90,0)); nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> ::data::~data(local_90); if (local_98 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_98); } if (local_a8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_a8); } if (local_b8 != (_Sp_counted_base<(__gnu_cxx::_Lock_policy)2> *)0x0) { std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(local_b8); } if (local_c8 != (long *)0x0) { if (*PTR___libc_single_threaded_001ddf98 == '\0') { LOCK(); piVar1 = (int *)((long)local_c8 + 0xc); iVar3 = *piVar1; *piVar1 = *piVar1 + -1; UNLOCK(); } else { iVar3 = *(int *)((long)local_c8 + 0xc); *(int *)((long)local_c8 + 0xc) = iVar3 + -1; } if (iVar3 == 1) { (**(code **)(*local_c8 + 0x18))(); } } puVar6 = puVar6 + 2; bVar5 = false; } while (puVar6 != local_d8); } return this; }
31,025
js_typed_array_finalizer
bluesky950520[P]quickjs/quickjs.c
static void js_typed_array_finalizer(JSRuntime *rt, JSValue val) { JSObject *p = JS_VALUE_GET_OBJ(val); JSTypedArray *ta = p->u.typed_array; if (ta) { /* during the GC the finalizers are called in an arbitrary order so the ArrayBuffer finalizer may have been called */ if (ta->link.next) { list_del(&ta->link); } JS_FreeValueRT(rt, JS_MKPTR(JS_TAG_OBJECT, ta->buffer)); js_free_rt(rt, ta); } }
O1
c
js_typed_array_finalizer: pushq %r14 pushq %rbx pushq %rax movq 0x30(%rsi), %rbx testq %rbx, %rbx je 0x3add4 movq %rdi, %r14 movq 0x8(%rbx), %rax testq %rax, %rax je 0x3ad87 movq (%rbx), %rcx movq %rax, 0x8(%rcx) movq %rcx, (%rax) xorps %xmm0, %xmm0 movups %xmm0, (%rbx) movq 0x18(%rbx), %rsi movl (%rsi), %eax leal -0x1(%rax), %ecx movl %ecx, (%rsi) cmpl $0x1, %eax jg 0x3ada6 movq %r14, %rdi movq $-0x1, %rdx callq 0x21266 decq 0x28(%r14) movq %rbx, %rdi callq *0x20(%r14) movq 0x10(%r14), %rcx movq 0x30(%r14), %rdx subq %rax, %rdx addq $-0x8, %rdx movq %rdx, 0x30(%r14) movq 0x40(%r14), %rdi movq %rbx, %rsi addq $0x8, %rsp popq %rbx popq %r14 jmpq *%rcx addq $0x8, %rsp popq %rbx popq %r14 retq
js_typed_array_finalizer: push r14 push rbx push rax mov rbx, [rsi+30h] test rbx, rbx jz short loc_3ADD4 mov r14, rdi mov rax, [rbx+8] test rax, rax jz short loc_3AD87 mov rcx, [rbx] mov [rcx+8], rax mov [rax], rcx xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 loc_3AD87: mov rsi, [rbx+18h] mov eax, [rsi] lea ecx, [rax-1] mov [rsi], ecx cmp eax, 1 jg short loc_3ADA6 mov rdi, r14 mov rdx, 0FFFFFFFFFFFFFFFFh call js_free_value_rt loc_3ADA6: dec qword ptr [r14+28h] mov rdi, rbx call qword ptr [r14+20h] mov rcx, [r14+10h] mov rdx, [r14+30h] sub rdx, rax add rdx, 0FFFFFFFFFFFFFFF8h mov [r14+30h], rdx mov rdi, [r14+40h] mov rsi, rbx add rsp, 8 pop rbx pop r14 jmp rcx loc_3ADD4: add rsp, 8 pop rbx pop r14 retn
long long js_typed_array_finalizer(long long a1, long long a2) { long long result; // rax long long *v3; // rbx _QWORD *v4; // rax long long v5; // rcx _QWORD *v6; // rsi int v7; // eax long long v8; // rax long long ( *v9)(_QWORD, long long *); // rcx v3 = *(long long **)(a2 + 48); if ( v3 ) { v4 = (_QWORD *)v3[1]; if ( v4 ) { v5 = *v3; *(_QWORD *)(v5 + 8) = v4; *v4 = v5; *(_OWORD *)v3 = 0LL; } v6 = (_QWORD *)v3[3]; v7 = (*(_DWORD *)v6)--; if ( v7 <= 1 ) js_free_value_rt(a1, v6, -1); --*(_QWORD *)(a1 + 40); v8 = (*(long long ( **)(long long *))(a1 + 32))(v3); v9 = *(long long ( **)(_QWORD, long long *))(a1 + 16); *(_QWORD *)(a1 + 48) = *(_QWORD *)(a1 + 48) - v8 - 8; return v9(*(_QWORD *)(a1 + 64), v3); } return result; }
31,026
js_typed_array_finalizer
bluesky950520[P]quickjs/quickjs.c
static void js_typed_array_finalizer(JSRuntime *rt, JSValue val) { JSObject *p = JS_VALUE_GET_OBJ(val); JSTypedArray *ta = p->u.typed_array; if (ta) { /* during the GC the finalizers are called in an arbitrary order so the ArrayBuffer finalizer may have been called */ if (ta->link.next) { list_del(&ta->link); } JS_FreeValueRT(rt, JS_MKPTR(JS_TAG_OBJECT, ta->buffer)); js_free_rt(rt, ta); } }
O3
c
js_typed_array_finalizer: pushq %r14 pushq %rbx pushq %rax movq 0x30(%rsi), %rbx testq %rbx, %rbx je 0x3c35f movq %rdi, %r14 movq 0x8(%rbx), %rax testq %rax, %rax je 0x3c312 movq (%rbx), %rcx movq %rax, 0x8(%rcx) movq %rcx, (%rax) xorps %xmm0, %xmm0 movups %xmm0, (%rbx) movq 0x18(%rbx), %rsi movl (%rsi), %eax leal -0x1(%rax), %ecx movl %ecx, (%rsi) cmpl $0x1, %eax jg 0x3c331 movq %r14, %rdi movq $-0x1, %rdx callq 0x219cc decq 0x28(%r14) movq %rbx, %rdi callq *0x20(%r14) movq 0x10(%r14), %rcx movq 0x30(%r14), %rdx subq %rax, %rdx addq $-0x8, %rdx movq %rdx, 0x30(%r14) movq 0x40(%r14), %rdi movq %rbx, %rsi addq $0x8, %rsp popq %rbx popq %r14 jmpq *%rcx addq $0x8, %rsp popq %rbx popq %r14 retq
js_typed_array_finalizer: push r14 push rbx push rax mov rbx, [rsi+30h] test rbx, rbx jz short loc_3C35F mov r14, rdi mov rax, [rbx+8] test rax, rax jz short loc_3C312 mov rcx, [rbx] mov [rcx+8], rax mov [rax], rcx xorps xmm0, xmm0 movups xmmword ptr [rbx], xmm0 loc_3C312: mov rsi, [rbx+18h] mov eax, [rsi] lea ecx, [rax-1] mov [rsi], ecx cmp eax, 1 jg short loc_3C331 mov rdi, r14 mov rdx, 0FFFFFFFFFFFFFFFFh call js_free_value_rt loc_3C331: dec qword ptr [r14+28h] mov rdi, rbx call qword ptr [r14+20h] mov rcx, [r14+10h] mov rdx, [r14+30h] sub rdx, rax add rdx, 0FFFFFFFFFFFFFFF8h mov [r14+30h], rdx mov rdi, [r14+40h] mov rsi, rbx add rsp, 8 pop rbx pop r14 jmp rcx loc_3C35F: add rsp, 8 pop rbx pop r14 retn
long long js_typed_array_finalizer(long long a1, long long a2) { long long result; // rax long long *v3; // rbx _QWORD *v4; // rax long long v5; // rcx _QWORD *v6; // rsi int v7; // eax long long v8; // rax long long ( *v9)(_QWORD, long long *); // rcx v3 = *(long long **)(a2 + 48); if ( v3 ) { v4 = (_QWORD *)v3[1]; if ( v4 ) { v5 = *v3; *(_QWORD *)(v5 + 8) = v4; *v4 = v5; *(_OWORD *)v3 = 0LL; } v6 = (_QWORD *)v3[3]; v7 = (*(_DWORD *)v6)--; if ( v7 <= 1 ) js_free_value_rt(a1, v6, -1); --*(_QWORD *)(a1 + 40); v8 = (*(long long ( **)(long long *))(a1 + 32))(v3); v9 = *(long long ( **)(_QWORD, long long *))(a1 + 16); *(_QWORD *)(a1 + 48) = *(_QWORD *)(a1 + 48) - v8 - 8; return v9(*(_QWORD *)(a1 + 64), v3); } return result; }
js_typed_array_finalizer: PUSH R14 PUSH RBX PUSH RAX MOV RBX,qword ptr [RSI + 0x30] TEST RBX,RBX JZ 0x0013c35f MOV R14,RDI MOV RAX,qword ptr [RBX + 0x8] TEST RAX,RAX JZ 0x0013c312 MOV RCX,qword ptr [RBX] MOV qword ptr [RCX + 0x8],RAX MOV qword ptr [RAX],RCX XORPS XMM0,XMM0 MOVUPS xmmword ptr [RBX],XMM0 LAB_0013c312: MOV RSI,qword ptr [RBX + 0x18] MOV EAX,dword ptr [RSI] LEA ECX,[RAX + -0x1] MOV dword ptr [RSI],ECX CMP EAX,0x1 JG 0x0013c331 MOV RDI,R14 MOV RDX,-0x1 CALL 0x001219cc LAB_0013c331: DEC qword ptr [R14 + 0x28] MOV RDI,RBX CALL qword ptr [R14 + 0x20] MOV RCX,qword ptr [R14 + 0x10] MOV RDX,qword ptr [R14 + 0x30] SUB RDX,RAX ADD RDX,-0x8 MOV qword ptr [R14 + 0x30],RDX MOV RDI,qword ptr [R14 + 0x40] MOV RSI,RBX ADD RSP,0x8 POP RBX POP R14 JMP RCX LAB_0013c35f: ADD RSP,0x8 POP RBX POP R14 RET
void js_typed_array_finalizer(long param_1,long param_2) { int iVar1; long *plVar2; long *plVar3; int *piVar4; long lVar5; plVar2 = *(long **)(param_2 + 0x30); if (plVar2 != (long *)0x0) { plVar3 = (long *)plVar2[1]; if (plVar3 != (long *)0x0) { lVar5 = *plVar2; *(long **)(lVar5 + 8) = plVar3; *plVar3 = lVar5; *plVar2 = 0; plVar2[1] = 0; } piVar4 = (int *)plVar2[3]; iVar1 = *piVar4; *piVar4 = iVar1 + -1; if (iVar1 < 2) { js_free_value_rt(param_1,piVar4,0xffffffffffffffff); } *(long *)(param_1 + 0x28) = *(long *)(param_1 + 0x28) + -1; lVar5 = (**(code **)(param_1 + 0x20))(plVar2); lVar5 = (*(long *)(param_1 + 0x30) - lVar5) + -8; *(long *)(param_1 + 0x30) = lVar5; /* WARNING: Could not recover jumptable at 0x0013c35d. Too many branches */ /* WARNING: Treating indirect jump as call */ (**(code **)(param_1 + 0x10)) (*(int8 *)(param_1 + 0x40),plVar2,lVar5,*(code **)(param_1 + 0x10)); return; } return; }
31,027
js_parseInt
bluesky950520[P]quickjs/quickjs.c
static JSValue js_parseInt(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { const char *str; int radix, flags; JSValue ret; size_t len; str = JS_ToCStringLen(ctx, &len, argv[0]); if (!str) return JS_EXCEPTION; if (JS_ToInt32(ctx, &radix, argv[1])) { JS_FreeCString(ctx, str); return JS_EXCEPTION; } flags = ATOD_TRIM_SPACES; if (radix == 0) { flags |= ATOD_ACCEPT_HEX_PREFIX; // Only 0x and 0X are supported radix = 10; } ret = js_atof(ctx, str, len, NULL, radix, flags); JS_FreeCString(ctx, str); return ret; }
O0
c
js_parseInt: subq $0x78, %rsp movq %rsi, 0x58(%rsp) movq %rdx, 0x60(%rsp) movq %rdi, 0x50(%rsp) movl %ecx, 0x4c(%rsp) movq %r8, 0x40(%rsp) movq 0x50(%rsp), %rdi movq 0x40(%rsp), %rax movq (%rax), %rdx movq 0x8(%rax), %rcx leaq 0x18(%rsp), %rsi callq 0x62ed0 movq %rax, 0x38(%rsp) cmpq $0x0, 0x38(%rsp) jne 0xd005a movl $0x0, 0x68(%rsp) movq $0x6, 0x70(%rsp) jmp 0xd0125 movq 0x50(%rsp), %rdi movq 0x40(%rsp), %rax movq 0x10(%rax), %rdx movq 0x18(%rax), %rcx leaq 0x34(%rsp), %rsi callq 0x38f20 cmpl $0x0, %eax je 0xd00a0 movq 0x50(%rsp), %rdi movq 0x38(%rsp), %rsi callq 0x29e50 movl $0x0, 0x68(%rsp) movq $0x6, 0x70(%rsp) jmp 0xd0125 movl $0x1, 0x30(%rsp) cmpl $0x0, 0x34(%rsp) jne 0xd00c2 movl 0x30(%rsp), %eax orl $0x20, %eax movl %eax, 0x30(%rsp) movl $0xa, 0x34(%rsp) movq 0x50(%rsp), %rdi movq 0x38(%rsp), %rsi movq 0x18(%rsp), %rdx movl 0x34(%rsp), %r8d movl 0x30(%rsp), %r9d xorl %eax, %eax movl %eax, %ecx callq 0x62f10 movq %rax, 0x8(%rsp) movq %rdx, 0x10(%rsp) movq 0x8(%rsp), %rax movq %rax, 0x20(%rsp) movq 0x10(%rsp), %rax movq %rax, 0x28(%rsp) movq 0x50(%rsp), %rdi movq 0x38(%rsp), %rsi callq 0x29e50 movq 0x20(%rsp), %rax movq %rax, 0x68(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x70(%rsp) movq 0x68(%rsp), %rax movq 0x70(%rsp), %rdx addq $0x78, %rsp retq nopw %cs:(%rax,%rax)
js_parseInt: sub rsp, 78h mov [rsp+78h+var_20], rsi mov [rsp+78h+var_18], rdx mov [rsp+78h+var_28], rdi mov [rsp+78h+var_2C], ecx mov [rsp+78h+var_38], r8 mov rdi, [rsp+78h+var_28] mov rax, [rsp+78h+var_38] mov rdx, [rax] mov rcx, [rax+8] lea rsi, [rsp+78h+var_60] call JS_ToCStringLen_0 mov [rsp+78h+var_40], rax cmp [rsp+78h+var_40], 0 jnz short loc_D005A mov dword ptr [rsp+78h+var_10], 0 mov [rsp+78h+var_8], 6 jmp loc_D0125 loc_D005A: mov rdi, [rsp+78h+var_28] mov rax, [rsp+78h+var_38] mov rdx, [rax+10h] mov rcx, [rax+18h] lea rsi, [rsp+78h+var_44] call JS_ToInt32 cmp eax, 0 jz short loc_D00A0 mov rdi, [rsp+78h+var_28] mov rsi, [rsp+78h+var_40] call JS_FreeCString mov dword ptr [rsp+78h+var_10], 0 mov [rsp+78h+var_8], 6 jmp loc_D0125 loc_D00A0: mov [rsp+78h+var_48], 1 cmp [rsp+78h+var_44], 0 jnz short loc_D00C2 mov eax, [rsp+78h+var_48] or eax, 20h mov [rsp+78h+var_48], eax mov [rsp+78h+var_44], 0Ah loc_D00C2: mov rdi, [rsp+78h+var_28] mov rsi, [rsp+78h+var_40] mov rdx, [rsp+78h+var_60] mov r8d, [rsp+78h+var_44] mov r9d, [rsp+78h+var_48] xor eax, eax mov ecx, eax call js_atof mov [rsp+78h+var_70], rax mov [rsp+78h+var_68], rdx mov rax, [rsp+78h+var_70] mov [rsp+78h+var_58], rax mov rax, [rsp+78h+var_68] mov [rsp+78h+var_50], rax mov rdi, [rsp+78h+var_28] mov rsi, [rsp+78h+var_40] call JS_FreeCString mov rax, [rsp+78h+var_58] mov [rsp+78h+var_10], rax mov rax, [rsp+78h+var_50] mov [rsp+78h+var_8], rax loc_D0125: mov rax, [rsp+78h+var_10] mov rdx, [rsp+78h+var_8] add rsp, 78h retn
long long js_parseInt(long long a1, long long a2, long long a3, int a4, long long *a5) { long long v5; // rdx unsigned __int8 *v7; // [rsp+18h] [rbp-60h] BYREF long long v8; // [rsp+20h] [rbp-58h] long long v9; // [rsp+28h] [rbp-50h] int v10; // [rsp+30h] [rbp-48h] int v11; // [rsp+34h] [rbp-44h] BYREF unsigned __int8 *v12; // [rsp+38h] [rbp-40h] long long *v13; // [rsp+40h] [rbp-38h] int v14; // [rsp+4Ch] [rbp-2Ch] long long v15; // [rsp+50h] [rbp-28h] long long v16; // [rsp+58h] [rbp-20h] long long v17; // [rsp+60h] [rbp-18h] long long v18; // [rsp+68h] [rbp-10h] long long v19; // [rsp+70h] [rbp-8h] v16 = a2; v17 = a3; v15 = a1; v14 = a4; v13 = a5; v12 = (unsigned __int8 *)JS_ToCStringLen_0(a1, &v7, *a5, a5[1]); if ( v12 ) { if ( (unsigned int)JS_ToInt32(v15, (long long)&v11, (_DWORD *)v13[2], v13[3]) ) { JS_FreeCString(v15, (long long)v12); LODWORD(v18) = 0; v19 = 6LL; } else { v10 = 1; if ( !v11 ) { v10 |= 0x20u; v11 = 10; } v8 = js_atof(v15, v12, v7, 0LL, v11, v10); v9 = v5; JS_FreeCString(v15, (long long)v12); v18 = v8; v19 = v9; } } else { LODWORD(v18) = 0; v19 = 6LL; } return v18; }
js_parseInt: SUB RSP,0x78 MOV qword ptr [RSP + 0x58],RSI MOV qword ptr [RSP + 0x60],RDX MOV qword ptr [RSP + 0x50],RDI MOV dword ptr [RSP + 0x4c],ECX MOV qword ptr [RSP + 0x40],R8 MOV RDI,qword ptr [RSP + 0x50] MOV RAX,qword ptr [RSP + 0x40] MOV RDX,qword ptr [RAX] MOV RCX,qword ptr [RAX + 0x8] LEA RSI,[RSP + 0x18] CALL 0x00162ed0 MOV qword ptr [RSP + 0x38],RAX CMP qword ptr [RSP + 0x38],0x0 JNZ 0x001d005a MOV dword ptr [RSP + 0x68],0x0 MOV qword ptr [RSP + 0x70],0x6 JMP 0x001d0125 LAB_001d005a: MOV RDI,qword ptr [RSP + 0x50] MOV RAX,qword ptr [RSP + 0x40] MOV RDX,qword ptr [RAX + 0x10] MOV RCX,qword ptr [RAX + 0x18] LEA RSI,[RSP + 0x34] CALL 0x00138f20 CMP EAX,0x0 JZ 0x001d00a0 MOV RDI,qword ptr [RSP + 0x50] MOV RSI,qword ptr [RSP + 0x38] CALL 0x00129e50 MOV dword ptr [RSP + 0x68],0x0 MOV qword ptr [RSP + 0x70],0x6 JMP 0x001d0125 LAB_001d00a0: MOV dword ptr [RSP + 0x30],0x1 CMP dword ptr [RSP + 0x34],0x0 JNZ 0x001d00c2 MOV EAX,dword ptr [RSP + 0x30] OR EAX,0x20 MOV dword ptr [RSP + 0x30],EAX MOV dword ptr [RSP + 0x34],0xa LAB_001d00c2: MOV RDI,qword ptr [RSP + 0x50] MOV RSI,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RSP + 0x18] MOV R8D,dword ptr [RSP + 0x34] MOV R9D,dword ptr [RSP + 0x30] XOR EAX,EAX MOV ECX,EAX CALL 0x00162f10 MOV qword ptr [RSP + 0x8],RAX MOV qword ptr [RSP + 0x10],RDX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x20],RAX MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x28],RAX MOV RDI,qword ptr [RSP + 0x50] MOV RSI,qword ptr [RSP + 0x38] CALL 0x00129e50 MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x68],RAX MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x70],RAX LAB_001d0125: MOV RAX,qword ptr [RSP + 0x68] MOV RDX,qword ptr [RSP + 0x70] ADD RSP,0x78 RET
int1 [16] js_parseInt(int8 param_1,int8 param_2,int8 param_3,int4 param_4, int8 *param_5) { int1 auVar1 [16]; int iVar2; int8 local_60; int1 local_58 [16]; int4 local_48; int local_44; long local_40; int8 *local_38; int4 local_2c; int8 local_28; int8 local_20; int8 local_18; int4 local_10; int4 uStack_c; int8 local_8; local_38 = param_5; local_2c = param_4; local_28 = param_1; local_20 = param_2; local_18 = param_3; local_40 = JS_ToCStringLen(param_1,&local_60,*param_5,param_5[1]); if (local_40 == 0) { local_10 = 0; local_8 = 6; } else { iVar2 = JS_ToInt32(local_28,&local_44,local_38[2],local_38[3]); if (iVar2 == 0) { local_48 = 1; if (local_44 == 0) { local_48 = 0x21; local_44 = 10; } local_58 = js_atof(local_28,local_40,local_60,0,local_44,local_48); JS_FreeCString(local_28,local_40); local_10 = local_58._0_4_; uStack_c = local_58._4_4_; local_8 = local_58._8_8_; } else { JS_FreeCString(local_28,local_40); local_10 = 0; local_8 = 6; } } auVar1._4_4_ = uStack_c; auVar1._0_4_ = local_10; auVar1._8_8_ = local_8; return auVar1; }
31,028
httplib::detail::stream_line_reader::getline()
nickolajgrishuk[P]metricz-cpp/build_O0/_deps/httplib-src/httplib.h
inline bool stream_line_reader::getline() { fixed_buffer_used_size_ = 0; glowable_buffer_.clear(); for (size_t i = 0;; i++) { char byte; auto n = strm_.read(&byte, 1); if (n < 0) { return false; } else if (n == 0) { if (i == 0) { return false; } else { break; } } append(byte); if (byte == '\n') { break; } } return true; }
O0
c
httplib::detail::stream_line_reader::getline(): pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rdi movq %rdi, -0x30(%rbp) movq $0x0, 0x18(%rdi) addq $0x20, %rdi callq 0xa6d0 movq $0x0, -0x18(%rbp) movq -0x30(%rbp), %rax movq (%rax), %rdi movq (%rdi), %rax leaq -0x19(%rbp), %rsi movl $0x1, %edx callq *0x20(%rax) movq %rax, -0x28(%rbp) cmpq $0x0, -0x28(%rbp) jge 0x3a5f4 movb $0x0, -0x1(%rbp) jmp 0x3a638 cmpq $0x0, -0x28(%rbp) jne 0x3a60a cmpq $0x0, -0x18(%rbp) jne 0x3a608 movb $0x0, -0x1(%rbp) jmp 0x3a638 jmp 0x3a634 jmp 0x3a60c movq -0x30(%rbp), %rdi movsbl -0x19(%rbp), %esi callq 0x3cc50 movsbl -0x19(%rbp), %eax cmpl $0xa, %eax jne 0x3a624 jmp 0x3a634 jmp 0x3a626 movq -0x18(%rbp), %rax addq $0x1, %rax movq %rax, -0x18(%rbp) jmp 0x3a5cd movb $0x1, -0x1(%rbp) movb -0x1(%rbp), %al andb $0x1, %al addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
_ZN7httplib6detail18stream_line_reader7getlineEv: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov rdi, [rbp+var_10] mov [rbp+var_30], rdi mov qword ptr [rdi+18h], 0 add rdi, 20h ; ' ' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5clearEv; std::string::clear(void) mov [rbp+var_18], 0 loc_3A5CD: mov rax, [rbp+var_30] mov rdi, [rax] mov rax, [rdi] lea rsi, [rbp+var_19] mov edx, 1 call qword ptr [rax+20h] mov [rbp+var_28], rax cmp [rbp+var_28], 0 jge short loc_3A5F4 mov [rbp+var_1], 0 jmp short loc_3A638 loc_3A5F4: cmp [rbp+var_28], 0 jnz short loc_3A60A cmp [rbp+var_18], 0 jnz short loc_3A608 mov [rbp+var_1], 0 jmp short loc_3A638 loc_3A608: jmp short loc_3A634 loc_3A60A: jmp short $+2 loc_3A60C: mov rdi, [rbp+var_30]; this movsx esi, [rbp+var_19]; char call _ZN7httplib6detail18stream_line_reader6appendEc; httplib::detail::stream_line_reader::append(char) movsx eax, [rbp+var_19] cmp eax, 0Ah jnz short loc_3A624 jmp short loc_3A634 loc_3A624: jmp short $+2 loc_3A626: mov rax, [rbp+var_18] add rax, 1 mov [rbp+var_18], rax jmp short loc_3A5CD loc_3A634: mov [rbp+var_1], 1 loc_3A638: mov al, [rbp+var_1] and al, 1 add rsp, 30h pop rbp retn
bool httplib::detail::stream_line_reader::getline(httplib::detail::stream_line_reader *this) { long long v2; // [rsp+8h] [rbp-28h] char v3; // [rsp+17h] [rbp-19h] BYREF long long i; // [rsp+18h] [rbp-18h] httplib::detail::stream_line_reader *v5; // [rsp+20h] [rbp-10h] v5 = this; *((_QWORD *)this + 3) = 0LL; std::string::clear((char *)this + 32); for ( i = 0LL; ; ++i ) { v2 = (*(long long ( **)(_QWORD, char *, long long))(**(_QWORD **)this + 32LL))(*(_QWORD *)this, &v3, 1LL); if ( v2 < 0 ) return 0; if ( !v2 ) break; httplib::detail::stream_line_reader::append(this, v3); if ( v3 == 10 ) return 1; } return i != 0; }
getline: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV RDI,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x30],RDI MOV qword ptr [RDI + 0x18],0x0 ADD RDI,0x20 CALL 0x0010a6d0 MOV qword ptr [RBP + -0x18],0x0 LAB_0013a5cd: MOV RAX,qword ptr [RBP + -0x30] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RDI] LEA RSI,[RBP + -0x19] MOV EDX,0x1 CALL qword ptr [RAX + 0x20] MOV qword ptr [RBP + -0x28],RAX CMP qword ptr [RBP + -0x28],0x0 JGE 0x0013a5f4 MOV byte ptr [RBP + -0x1],0x0 JMP 0x0013a638 LAB_0013a5f4: CMP qword ptr [RBP + -0x28],0x0 JNZ 0x0013a60a CMP qword ptr [RBP + -0x18],0x0 JNZ 0x0013a608 MOV byte ptr [RBP + -0x1],0x0 JMP 0x0013a638 LAB_0013a608: JMP 0x0013a634 LAB_0013a60a: JMP 0x0013a60c LAB_0013a60c: MOV RDI,qword ptr [RBP + -0x30] MOVSX ESI,byte ptr [RBP + -0x19] CALL 0x0013cc50 MOVSX EAX,byte ptr [RBP + -0x19] CMP EAX,0xa JNZ 0x0013a624 JMP 0x0013a634 LAB_0013a624: JMP 0x0013a626 LAB_0013a626: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x1 MOV qword ptr [RBP + -0x18],RAX JMP 0x0013a5cd LAB_0013a634: MOV byte ptr [RBP + -0x1],0x1 LAB_0013a638: MOV AL,byte ptr [RBP + -0x1] AND AL,0x1 ADD RSP,0x30 POP RBP RET
/* httplib::detail::stream_line_reader::getline() */ int1 __thiscall httplib::detail::stream_line_reader::getline(stream_line_reader *this) { long lVar1; char local_21; long local_20; stream_line_reader *local_18; *(int8 *)(this + 0x18) = 0; local_18 = this; std::__cxx11::string::clear(); local_20 = 0; while( true ) { lVar1 = (**(code **)(**(long **)this + 0x20))(*(long **)this,&local_21,1); if (lVar1 < 0) { return 0; } if (lVar1 == 0) break; append(this,local_21); if (local_21 == '\n') { return 1; } local_20 = local_20 + 1; } if (local_20 != 0) { return 1; } return 0; }
31,029
testing::internal::InternalRunDeathTestFlag::~InternalRunDeathTestFlag()
seiftnesse[P]memoryallocator/build_O1/_deps/googletest-src/googletest/include/gtest/internal/gtest-death-test-internal.h
~InternalRunDeathTestFlag() { if (write_fd_ >= 0) posix::Close(write_fd_); }
O1
c
testing::internal::InternalRunDeathTestFlag::~InternalRunDeathTestFlag(): pushq %rbx movq %rdi, %rbx movl 0x28(%rdi), %edi testl %edi, %edi js 0x3c86e callq 0x9a90 movq (%rbx), %rdi addq $0x10, %rbx cmpq %rbx, %rdi je 0x3c886 movq (%rbx), %rsi incq %rsi popq %rbx jmp 0x94c0 popq %rbx retq movq %rax, %rdi callq 0xf6fa
_ZN7testing8internal24InternalRunDeathTestFlagD2Ev: push rbx mov rbx, rdi mov edi, [rdi+28h] test edi, edi js short loc_3C86E call _close loc_3C86E: mov rdi, [rbx]; void * add rbx, 10h cmp rdi, rbx jz short loc_3C886 mov rsi, [rbx] inc rsi; unsigned __int64 pop rbx jmp __ZdlPvm; operator delete(void *,ulong) loc_3C886: pop rbx retn mov rdi, rax call __clang_call_terminate
void testing::internal::InternalRunDeathTestFlag::~InternalRunDeathTestFlag(void **this) { long long v2; // rdi _QWORD *v3; // rdi _QWORD *v4; // rbx v2 = *((unsigned int *)this + 10); if ( (int)v2 >= 0 ) close(v2); v3 = *this; v4 = this + 2; if ( v3 != v4 ) operator delete(v3, *v4 + 1LL); }
~InternalRunDeathTestFlag: PUSH RBX MOV RBX,RDI MOV EDI,dword ptr [RDI + 0x28] TEST EDI,EDI JS 0x0013c86e LAB_0013c869: CALL 0x00109a90 LAB_0013c86e: MOV RDI,qword ptr [RBX] ADD RBX,0x10 CMP RDI,RBX JZ 0x0013c886 MOV RSI,qword ptr [RBX] INC RSI POP RBX JMP 0x001094c0 LAB_0013c886: POP RBX RET
/* testing::internal::InternalRunDeathTestFlag::~InternalRunDeathTestFlag() */ void __thiscall testing::internal::InternalRunDeathTestFlag::~InternalRunDeathTestFlag (InternalRunDeathTestFlag *this) { if (-1 < *(int *)(this + 0x28)) { /* try { // try from 0013c869 to 0013c86d has its CatchHandler @ 0013c888 */ close(*(int *)(this + 0x28)); } if (*(InternalRunDeathTestFlag **)this != this + 0x10) { operator_delete(*(InternalRunDeathTestFlag **)this,*(long *)(this + 0x10) + 1); return; } return; }
31,030
normalize_dirname
eloqsql/mysys/mf_pack.c
size_t normalize_dirname(char *to, const char *from) { size_t length; char buff[FN_REFLEN + 1]; DBUG_ENTER("normalize_dirname"); /* Despite the name, this actually converts the name to the system's format (TODO: name this properly). */ (void) intern_filename(buff, from); length= strlen(buff); /* Fix that '/' is last */ if (length && #ifdef FN_DEVCHAR buff[length - 1] != FN_DEVCHAR && #endif buff[length - 1] != FN_LIBCHAR && buff[length - 1] != '/') { /* we need reserve 2 bytes for the trailing slash and the zero */ if (length >= sizeof (buff) - 1) length= sizeof (buff) - 2; buff[length]= FN_LIBCHAR; buff[length + 1]= '\0'; } length=cleanup_dirname(to, buff); DBUG_RETURN(length); }
O0
c
normalize_dirname: pushq %rbp movq %rsp, %rbp subq $0x230, %rsp # imm = 0x230 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x218(%rbp) movq %rsi, -0x220(%rbp) leaq -0x210(%rbp), %rdi movq -0x220(%rbp), %rsi callq 0x7ce70 leaq -0x210(%rbp), %rdi callq 0x29150 movq %rax, -0x228(%rbp) cmpq $0x0, -0x228(%rbp) je 0x7d4ec movq -0x228(%rbp), %rax subq $0x1, %rax movsbl -0x210(%rbp,%rax), %eax cmpl $0x2f, %eax je 0x7d4ec movq -0x228(%rbp), %rax subq $0x1, %rax movsbl -0x210(%rbp,%rax), %eax cmpl $0x2f, %eax je 0x7d4ec cmpq $0x200, -0x228(%rbp) # imm = 0x200 jb 0x7d4ce movq $0x1ff, -0x228(%rbp) # imm = 0x1FF movq -0x228(%rbp), %rax movb $0x2f, -0x210(%rbp,%rax) movq -0x228(%rbp), %rax movb $0x0, -0x20f(%rbp,%rax) movq -0x218(%rbp), %rdi leaq -0x210(%rbp), %rsi callq 0x7cf60 movq %rax, -0x228(%rbp) movq -0x228(%rbp), %rax movq %rax, -0x230(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x7d536 movq -0x230(%rbp), %rax addq $0x230, %rsp # imm = 0x230 popq %rbp retq callq 0x29420 nopl (%rax,%rax)
normalize_dirname: push rbp mov rbp, rsp sub rsp, 230h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_218], rdi mov [rbp+var_220], rsi lea rdi, [rbp+var_210] mov rsi, [rbp+var_220] call intern_filename lea rdi, [rbp+var_210] call _strlen mov [rbp+var_228], rax cmp [rbp+var_228], 0 jz short loc_7D4EC mov rax, [rbp+var_228] sub rax, 1 movsx eax, [rbp+rax+var_210] cmp eax, 2Fh ; '/' jz short loc_7D4EC mov rax, [rbp+var_228] sub rax, 1 movsx eax, [rbp+rax+var_210] cmp eax, 2Fh ; '/' jz short loc_7D4EC cmp [rbp+var_228], 200h jb short loc_7D4CE mov [rbp+var_228], 1FFh loc_7D4CE: mov rax, [rbp+var_228] mov [rbp+rax+var_210], 2Fh ; '/' mov rax, [rbp+var_228] mov [rbp+rax+var_20F], 0 loc_7D4EC: mov rdi, [rbp+var_218] lea rsi, [rbp+var_210] call cleanup_dirname mov [rbp+var_228], rax mov rax, [rbp+var_228] mov [rbp+var_230], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_7D536 mov rax, [rbp+var_230] add rsp, 230h pop rbp retn loc_7D536: call ___stack_chk_fail
long long normalize_dirname(long long a1, _BYTE *a2) { unsigned long long v3; // [rsp+8h] [rbp-228h] long long v4; // [rsp+18h] [rbp-218h] _BYTE v5[520]; // [rsp+20h] [rbp-210h] BYREF unsigned long long v6; // [rsp+228h] [rbp-8h] v6 = __readfsqword(0x28u); v4 = a1; intern_filename((long long)v5, a2); v3 = strlen(v5); if ( v3 && v5[v3 - 1] != 47 ) { if ( v3 >= 0x200 ) v3 = 511LL; v5[v3] = 47; v5[v3 + 1] = 0; } return cleanup_dirname(v4, v5); }
normalize_dirname: PUSH RBP MOV RBP,RSP SUB RSP,0x230 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x218],RDI MOV qword ptr [RBP + -0x220],RSI LEA RDI,[RBP + -0x210] MOV RSI,qword ptr [RBP + -0x220] CALL 0x0017ce70 LEA RDI,[RBP + -0x210] CALL 0x00129150 MOV qword ptr [RBP + -0x228],RAX CMP qword ptr [RBP + -0x228],0x0 JZ 0x0017d4ec MOV RAX,qword ptr [RBP + -0x228] SUB RAX,0x1 MOVSX EAX,byte ptr [RBP + RAX*0x1 + -0x210] CMP EAX,0x2f JZ 0x0017d4ec MOV RAX,qword ptr [RBP + -0x228] SUB RAX,0x1 MOVSX EAX,byte ptr [RBP + RAX*0x1 + -0x210] CMP EAX,0x2f JZ 0x0017d4ec CMP qword ptr [RBP + -0x228],0x200 JC 0x0017d4ce MOV qword ptr [RBP + -0x228],0x1ff LAB_0017d4ce: MOV RAX,qword ptr [RBP + -0x228] MOV byte ptr [RBP + RAX*0x1 + -0x210],0x2f MOV RAX,qword ptr [RBP + -0x228] MOV byte ptr [RBP + RAX*0x1 + -0x20f],0x0 LAB_0017d4ec: MOV RDI,qword ptr [RBP + -0x218] LEA RSI,[RBP + -0x210] CALL 0x0017cf60 MOV qword ptr [RBP + -0x228],RAX MOV RAX,qword ptr [RBP + -0x228] MOV qword ptr [RBP + -0x230],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0017d536 MOV RAX,qword ptr [RBP + -0x230] ADD RSP,0x230 POP RBP RET LAB_0017d536: CALL 0x00129420
int8 normalize_dirname(int8 param_1,int8 param_2) { int8 uVar1; long in_FS_OFFSET; size_t local_230; int8 local_220; char local_218 [520]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); local_220 = param_1; intern_filename(local_218,param_2); local_230 = strlen(local_218); if (((local_230 != 0) && (local_218[local_230 - 1] != '/')) && (local_218[local_230 - 1] != '/')) { if (0x1ff < local_230) { local_230 = 0x1ff; } local_218[local_230] = '/'; local_218[local_230 + 1] = '\0'; } uVar1 = cleanup_dirname(local_220,local_218); if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return uVar1; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
31,031
my_charset_get_by_name
eloqsql/mysys/charset.c
CHARSET_INFO * my_charset_get_by_name(MY_CHARSET_LOADER *loader, const char *cs_name, uint cs_flags, myf flags) { uint cs_number; CHARSET_INFO *cs; DBUG_ENTER("get_charset_by_csname"); DBUG_PRINT("enter",("name: '%s'", cs_name)); my_pthread_once(&charsets_initialized, init_available_charsets); cs_number= get_charset_number(cs_name, cs_flags, flags); cs= cs_number ? get_internal_charset(loader, cs_number, flags) : NULL; if (!cs && (flags & MY_WME)) { char index_file[FN_REFLEN + sizeof(MY_CHARSET_INDEX)]; strmov(get_charsets_dir(index_file),MY_CHARSET_INDEX); my_error(EE_UNKNOWN_CHARSET, MYF(ME_BELL), cs_name, index_file); } DBUG_RETURN(cs); }
O3
c
my_charset_get_by_name: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x220, %rsp # imm = 0x220 movq %rcx, %r15 movl %edx, %r12d movq %rsi, %rbx movq %rdi, %r14 movq %fs:0x28, %rax movq %rax, -0x28(%rbp) leaq 0x34ffce(%rip), %rdi # 0x378f90 leaq -0x9ae(%rip), %rsi # 0x2861b callq 0x24310 movq %rbx, %rdi movl %r12d, %esi movq %r15, %rdx callq 0x28806 testl %eax, %eax je 0x28ff2 movq %r14, %rdi movl %eax, %esi movq %r15, %rdx callq 0x28aaa movq %rax, %r14 jmp 0x28ff5 xorl %r14d, %r14d testq %r14, %r14 setne %al testb $0x10, %r15b sete %cl orb %al, %cl jne 0x2903f leaq -0x240(%rbp), %r15 movq %r15, %rdi callq 0x283db movabsq $0x6d782e7865646e49, %rcx # imm = 0x6D782E7865646E49 movq %rcx, (%rax) movw $0x6c, 0x8(%rax) movl $0x4, %esi movl $0x16, %edi movq %rbx, %rdx movq %r15, %rcx xorl %eax, %eax callq 0x2cce7 movq %fs:0x28, %rax cmpq -0x28(%rbp), %rax jne 0x29061 movq %r14, %rax addq $0x220, %rsp # imm = 0x220 popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq callq 0x243e0
my_charset_get_by_name: push rbp mov rbp, rsp push r15 push r14 push r12 push rbx sub rsp, 220h mov r15, rcx mov r12d, edx mov rbx, rsi mov r14, rdi mov rax, fs:28h mov [rbp+var_28], rax lea rdi, charsets_initialized lea rsi, init_available_charsets call _pthread_once mov rdi, rbx mov esi, r12d mov rdx, r15 call get_charset_number test eax, eax jz short loc_28FF2 mov rdi, r14 mov esi, eax mov rdx, r15 call get_internal_charset mov r14, rax jmp short loc_28FF5 loc_28FF2: xor r14d, r14d loc_28FF5: test r14, r14 setnz al test r15b, 10h setz cl or cl, al jnz short loc_2903F lea r15, [rbp+var_240] mov rdi, r15 call get_charsets_dir mov rcx, 6D782E7865646E49h mov [rax], rcx mov word ptr [rax+8], 6Ch ; 'l' mov esi, 4 mov edi, 16h mov rdx, rbx mov rcx, r15 xor eax, eax call my_error loc_2903F: mov rax, fs:28h cmp rax, [rbp+var_28] jnz short loc_29061 mov rax, r14 add rsp, 220h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_29061: call ___stack_chk_fail
long long my_charset_get_by_name(long long a1, long long a2, unsigned int a3, long long a4) { unsigned int charset_number; // eax long long internal_charset; // r14 int v8; // r8d int v9; // r9d _BYTE v11[536]; // [rsp+0h] [rbp-240h] BYREF unsigned long long v12; // [rsp+218h] [rbp-28h] v12 = __readfsqword(0x28u); pthread_once(&charsets_initialized, init_available_charsets); charset_number = get_charset_number(a2, a3, a4); if ( charset_number ) internal_charset = get_internal_charset(a1, charset_number, a4); else internal_charset = 0LL; if ( internal_charset == 0 && (a4 & 0x10) != 0 ) { strcpy((char *)get_charsets_dir((long long)v11), "Index.xml"); my_error(22, 4, a2, (unsigned int)v11, v8, v9); } return internal_charset; }
my_charset_get_by_name: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x220 MOV R15,RCX MOV R12D,EDX MOV RBX,RSI MOV R14,RDI MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x28],RAX LEA RDI,[0x478f90] LEA RSI,[0x12861b] CALL 0x00124310 MOV RDI,RBX MOV ESI,R12D MOV RDX,R15 CALL 0x00128806 TEST EAX,EAX JZ 0x00128ff2 MOV RDI,R14 MOV ESI,EAX MOV RDX,R15 CALL 0x00128aaa MOV R14,RAX JMP 0x00128ff5 LAB_00128ff2: XOR R14D,R14D LAB_00128ff5: TEST R14,R14 SETNZ AL TEST R15B,0x10 SETZ CL OR CL,AL JNZ 0x0012903f LEA R15,[RBP + -0x240] MOV RDI,R15 CALL 0x001283db MOV RCX,0x6d782e7865646e49 MOV qword ptr [RAX],RCX MOV word ptr [RAX + 0x8],0x6c MOV ESI,0x4 MOV EDI,0x16 MOV RDX,RBX MOV RCX,R15 XOR EAX,EAX CALL 0x0012cce7 LAB_0012903f: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x28] JNZ 0x00129061 MOV RAX,R14 ADD RSP,0x220 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00129061: CALL 0x001243e0
long my_charset_get_by_name(int8 param_1,int8 param_2,int4 param_3,ulong param_4) { int iVar1; long lVar2; int8 *puVar3; long in_FS_OFFSET; int1 local_248 [536]; long local_30; local_30 = *(long *)(in_FS_OFFSET + 0x28); pthread_once(&charsets_initialized,init_available_charsets); iVar1 = get_charset_number(param_2,param_3,param_4); if (iVar1 == 0) { lVar2 = 0; } else { lVar2 = get_internal_charset(param_1,iVar1,param_4); } if ((param_4 & 0x10) != 0 && lVar2 == 0) { puVar3 = (int8 *)get_charsets_dir(local_248); *puVar3 = 0x6d782e7865646e49; *(int2 *)(puVar3 + 1) = 0x6c; my_error(0x16,4,param_2,local_248); } if (*(long *)(in_FS_OFFSET + 0x28) == local_30) { return lVar2; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
31,032
OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateEdgeTagsFromParentFaces()
NVIDIA-RTX[P]OSD-Lite/opensubdiv/vtr/../vtr/refinement.h
int getNumChildEdgesFromFaces() const { return _childEdgeFromFaceCount; }
O1
c
OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateEdgeTagsFromParentFaces(): movslq 0x2c(%rdi), %rax testq %rax, %rax jle 0x49d57 movslq 0x44(%rdi), %rcx addq %rcx, %rax movq 0x10(%rdi), %rdx movq 0xf0(%rdx), %rdx movb $0x0, (%rdx,%rcx) incq %rcx cmpq %rax, %rcx jl 0x49d40 retq
_ZN10OpenSubdiv6v3_6_03Vtr8internal10Refinement31populateEdgeTagsFromParentFacesEv: movsxd rax, dword ptr [rdi+2Ch] test rax, rax jle short locret_49D57 movsxd rcx, dword ptr [rdi+44h] add rax, rcx loc_49D40: mov rdx, [rdi+10h] mov rdx, [rdx+0F0h] mov byte ptr [rdx+rcx], 0 inc rcx cmp rcx, rax jl short loc_49D40 locret_49D57: retn
long long OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateEdgeTagsFromParentFaces( OpenSubdiv::v3_6_0::Vtr::internal::Refinement *this) { long long result; // rax long long v2; // rcx result = *((int *)this + 11); if ( result > 0 ) { v2 = *((int *)this + 17); result += v2; do *(_BYTE *)(*(_QWORD *)(*((_QWORD *)this + 2) + 240LL) + v2++) = 0; while ( v2 < result ); } return result; }
populateEdgeTagsFromParentFaces: MOVSXD RAX,dword ptr [RDI + 0x2c] TEST RAX,RAX JLE 0x00149d57 MOVSXD RCX,dword ptr [RDI + 0x44] ADD RAX,RCX LAB_00149d40: MOV RDX,qword ptr [RDI + 0x10] MOV RDX,qword ptr [RDX + 0xf0] MOV byte ptr [RDX + RCX*0x1],0x0 INC RCX CMP RCX,RAX JL 0x00149d40 LAB_00149d57: RET
/* OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateEdgeTagsFromParentFaces() */ void __thiscall OpenSubdiv::v3_6_0::Vtr::internal::Refinement::populateEdgeTagsFromParentFaces(Refinement *this) { long lVar1; long lVar2; if (0 < (long)*(int *)(this + 0x2c)) { lVar2 = (long)*(int *)(this + 0x44); lVar1 = *(int *)(this + 0x2c) + lVar2; do { *(int1 *)(*(long *)(*(long *)(this + 0x10) + 0xf0) + lVar2) = 0; lVar2 = lVar2 + 1; } while (lVar2 < lVar1); } return; }
31,033
mysql_refresh_start_internal
eloqsql/libmariadb/libmariadb/mariadb_async.c
static void mysql_refresh_start_internal(void *d) { MK_ASYNC_INTERNAL_BODY( mysql_refresh, (parms->mysql, parms->refresh_options), parms->mysql, int, r_int) }
O0
c
mysql_refresh_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 0x3ad30 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_refresh_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_refresh 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_refresh_start_internal(long long a1) { _DWORD *result; // rax _DWORD *v2; // [rsp+0h] [rbp-20h] v2 = *(_DWORD **)(*(_QWORD *)(*(_QWORD *)a1 + 1152LL) + 40LL); v2[2] = mysql_refresh(*(_QWORD *)a1, *(_DWORD *)(a1 + 8)); result = v2; *v2 = 0; return result; }
mysql_refresh_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 0x0013ad30 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_refresh_start_internal(long *param_1) { int4 *puVar1; int4 uVar2; puVar1 = *(int4 **)(*(long *)(*param_1 + 0x480) + 0x28); uVar2 = mysql_refresh(*param_1,(int)param_1[1]); puVar1[2] = uVar2; *puVar1 = 0; return; }
31,034
translog_get_total_chunk_length
eloqsql/storage/maria/ma_loghandler.c
static uint16 translog_get_total_chunk_length(uchar *page, uint16 offset) { DBUG_ENTER("translog_get_total_chunk_length"); switch (page[offset] & TRANSLOG_CHUNK_TYPE) { case TRANSLOG_CHUNK_LSN: { /* 0 chunk referred as LSN (head or tail) */ translog_size_t rec_len; uchar *start= page + offset; uchar *ptr= start + 1 + 2; /* chunk type and short trid */ uint16 chunk_len, header_len, page_rest; DBUG_PRINT("info", ("TRANSLOG_CHUNK_LSN")); rec_len= translog_variable_record_1group_decode_len(&ptr); chunk_len= uint2korr(ptr); header_len= (uint16) (ptr -start) + 2; DBUG_PRINT("info", ("rec len: %lu chunk len: %u header len: %u", (ulong) rec_len, (uint) chunk_len, (uint) header_len)); if (chunk_len) { DBUG_PRINT("info", ("chunk len: %u + %u = %u", (uint) header_len, (uint) chunk_len, (uint) (chunk_len + header_len))); DBUG_RETURN(chunk_len + header_len); } page_rest= TRANSLOG_PAGE_SIZE - offset; DBUG_PRINT("info", ("page_rest %u", (uint) page_rest)); if (rec_len + header_len < page_rest) DBUG_RETURN(rec_len + header_len); DBUG_RETURN(page_rest); } case TRANSLOG_CHUNK_FIXED: { uchar *ptr; uint type= page[offset] & TRANSLOG_REC_TYPE; uint length; int i; /* 1 (pseudo)fixed record (also LSN) */ DBUG_PRINT("info", ("TRANSLOG_CHUNK_FIXED")); DBUG_ASSERT(log_record_type_descriptor[type].rclass == LOGRECTYPE_FIXEDLENGTH || log_record_type_descriptor[type].rclass == LOGRECTYPE_PSEUDOFIXEDLENGTH); if (log_record_type_descriptor[type].rclass == LOGRECTYPE_FIXEDLENGTH) { DBUG_PRINT("info", ("Fixed length: %u", (uint) (log_record_type_descriptor[type].fixed_length + 3))); DBUG_RETURN(log_record_type_descriptor[type].fixed_length + 3); } ptr= page + offset + 3; /* first compressed LSN */ length= log_record_type_descriptor[type].fixed_length + 3; for (i= 0; i < log_record_type_descriptor[type].compressed_LSN; i++) { /* first 2 bits is length - 2 */ uint len= (((uint8) (*ptr)) >> 6) + 2; if (ptr[0] == 0 && ((uint8) ptr[1]) == 1) len+= LSN_STORE_SIZE; /* case of full LSN storing */ ptr+= len; /* subtract saved bytes */ length-= (LSN_STORE_SIZE - len); } DBUG_PRINT("info", ("Pseudo-fixed length: %u", length)); DBUG_RETURN(length); } case TRANSLOG_CHUNK_NOHDR: /* 2 no header chunk (till page end) */ DBUG_PRINT("info", ("TRANSLOG_CHUNK_NOHDR length: %u", (uint) (TRANSLOG_PAGE_SIZE - offset))); DBUG_RETURN(TRANSLOG_PAGE_SIZE - offset); case TRANSLOG_CHUNK_LNGTH: /* 3 chunk with chunk length */ DBUG_PRINT("info", ("TRANSLOG_CHUNK_LNGTH")); DBUG_ASSERT(TRANSLOG_PAGE_SIZE - offset >= 3); DBUG_PRINT("info", ("length: %u", uint2korr(page + offset + 1) + 3)); DBUG_RETURN(uint2korr(page + offset + 1) + 3); default: DBUG_ASSERT(0); DBUG_RETURN(0); } }
O3
c
translog_get_total_chunk_length: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %esi, %ebx movl %esi, %eax leaq (%rdi,%rax), %r15 movzbl (%rdi,%rax), %eax movl %eax, %ecx shrl $0x6, %ecx leaq 0x80f5a(%rip), %rdx # 0xea710 movslq (%rdx,%rcx,4), %rcx addq %rdx, %rcx jmpq *%rcx leaq 0x3(%r15), %rax leaq -0x20(%rbp), %r14 movq %rax, (%r14) movq %r14, %rdi callq 0x6df40 movl %eax, %ecx movq (%r14), %rax movzwl (%rax), %edx subl %r15d, %eax addl $0x2, %eax testw %dx, %dx je 0x69860 addl %edx, %eax jmp 0x69815 movl $0x2000, %eax # imm = 0x2000 subl %ebx, %eax jmp 0x69815 movzwl 0x1(%r15), %eax jmp 0x69812 andl $0x3f, %eax leaq (%rax,%rax,8), %rcx leaq 0x39fea9(%rip), %rdx # 0x4096b0 cmpl $0x3, (%rdx,%rcx,8) movzwl 0x4(%rdx,%rcx,8), %eax jne 0x69820 addl $0x3, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq leaq (%rdx,%rcx,8), %rcx addl $0x3, %eax movswl 0x20(%rcx), %ecx testl %ecx, %ecx jle 0x69815 addq $0x3, %r15 movzbl (%r15), %esi movl %esi, %edx shrl $0x6, %edx addl $0x2, %edx testl %esi, %esi jne 0x69850 cmpb $0x1, 0x1(%r15) leal 0x7(%rdx), %esi cmovnel %edx, %esi movl %esi, %edx movl %edx, %esi addq %rsi, %r15 addl %edx, %eax addl $-0x7, %eax decl %ecx jne 0x69833 jmp 0x69815 movl $0x2000, %edx # imm = 0x2000 subl %ebx, %edx movzwl %ax, %eax addl %eax, %ecx movzwl %dx, %eax cmpl %eax, %ecx cmovael %edx, %ecx movl %ecx, %eax jmp 0x69815
translog_get_total_chunk_length: push rbp mov rbp, rsp push r15 push r14 push rbx push rax mov ebx, esi mov eax, esi lea r15, [rdi+rax] movzx eax, byte ptr [rdi+rax] mov ecx, eax shr ecx, 6 lea rdx, jpt_697BD movsxd rcx, ds:(jpt_697BD - 0EA710h)[rdx+rcx*4]; switch 4 cases add rcx, rdx jmp rcx; switch jump loc_697BF: lea rax, [r15+3]; jumptable 00000000000697BD case 0 lea r14, [rbp+var_20] mov [r14], rax mov rdi, r14 call translog_variable_record_1group_decode_len mov ecx, eax mov rax, [r14] movzx edx, word ptr [rax] sub eax, r15d add eax, 2 test dx, dx jz short loc_69860 add eax, edx jmp short loc_69815 loc_697E9: mov eax, 2000h; jumptable 00000000000697BD case 2 sub eax, ebx jmp short loc_69815 loc_697F2: movzx eax, word ptr [r15+1]; jumptable 00000000000697BD case 3 jmp short loc_69812 loc_697F9: and eax, 3Fh; jumptable 00000000000697BD case 1 lea rcx, [rax+rax*8] lea rdx, log_record_type_descriptor cmp dword ptr [rdx+rcx*8], 3 movzx eax, word ptr [rdx+rcx*8+4] jnz short loc_69820 loc_69812: add eax, 3 loc_69815: add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn loc_69820: lea rcx, [rdx+rcx*8] add eax, 3 movsx ecx, word ptr [rcx+20h] test ecx, ecx jle short loc_69815 add r15, 3 loc_69833: movzx esi, byte ptr [r15] mov edx, esi shr edx, 6 add edx, 2 test esi, esi jnz short loc_69850 cmp byte ptr [r15+1], 1 lea esi, [rdx+7] cmovnz esi, edx mov edx, esi loc_69850: mov esi, edx add r15, rsi add eax, edx add eax, 0FFFFFFF9h dec ecx jnz short loc_69833 jmp short loc_69815 loc_69860: mov edx, 2000h sub edx, ebx movzx eax, ax add ecx, eax movzx eax, dx cmp ecx, eax cmovnb ecx, edx mov eax, ecx jmp short loc_69815
long long translog_get_total_chunk_length(long long a1, unsigned int a2) { unsigned __int16 *v2; // rax unsigned __int8 *v3; // r15 int v4; // ecx int v5; // edx int v6; // eax long long result; // rax int v8; // eax int v9; // ecx unsigned __int8 *v10; // r15 unsigned int v11; // edx int v12; // esi unsigned int v13; // ecx unsigned __int16 *v14; // [rsp+0h] [rbp-20h] BYREF v14 = v2; v3 = (unsigned __int8 *)(a1 + a2); switch ( *v3 >> 6 ) { case 0: v14 = (unsigned __int16 *)(v3 + 3); v4 = translog_variable_record_1group_decode_len(&v14); v5 = *v14; v6 = (_DWORD)v14 - (_DWORD)v3 + 2; if ( (_WORD)v5 ) { result = (unsigned int)(v5 + v6); } else { v13 = (unsigned __int16)v6 + v4; if ( v13 >= (unsigned __int16)(0x2000 - a2) ) v13 = 0x2000 - a2; result = v13; } break; case 1: v8 = *((unsigned __int16 *)&log_record_type_descriptor + 36 * (*v3 & 0x3F) + 2); if ( *((_DWORD *)&log_record_type_descriptor + 18 * (*v3 & 0x3F)) == 3 ) goto LABEL_7; result = (unsigned int)(v8 + 3); v9 = *((__int16 *)&log_record_type_descriptor + 36 * (*v3 & 0x3F) + 16); if ( v9 > 0 ) { v10 = v3 + 3; do { v11 = (*v10 >> 6) + 2; if ( !*v10 ) { v12 = (*v10 >> 6) + 9; if ( v10[1] != 1 ) v12 = (*v10 >> 6) + 2; v11 = v12; } v10 += v11; result = v11 + (unsigned int)result - 7; --v9; } while ( v9 ); } break; case 2: result = 0x2000 - a2; break; case 3: v8 = *(unsigned __int16 *)(v3 + 1); LABEL_7: result = (unsigned int)(v8 + 3); break; } return result; }
translog_get_total_chunk_length: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV EBX,ESI MOV EAX,ESI LEA R15,[RDI + RAX*0x1] MOVZX EAX,byte ptr [RDI + RAX*0x1] MOV ECX,EAX SHR ECX,0x6 LEA RDX,[0x1ea710] MOVSXD RCX,dword ptr [RDX + RCX*0x4] ADD RCX,RDX JMP RCX
void translog_get_total_chunk_length(long param_1,uint param_2) { /* WARNING: Could not recover jumptable at 0x001697bd. Too many branches */ /* WARNING: Treating indirect jump as call */ (*(code *)(&DAT_001ea710 + *(int *)(&DAT_001ea710 + (ulong)(*(byte *)(param_1 + (ulong)param_2) >> 6) * 4)))(); return; }
31,035
ma_pvio_tls_compare_fp
eloqsql/libmariadb/libmariadb/ma_tls.c
static my_bool ma_pvio_tls_compare_fp(const char *cert_fp, unsigned int cert_fp_len, const char *fp, unsigned int fp_len) { char *p= (char *)fp, *c; /* check length */ if (cert_fp_len != 20) return 1; /* We support two formats: 2 digits hex numbers, separated by colons (length=59) 20 * 2 digits hex numbers without separators (length = 40) */ if (fp_len != (strchr(fp, ':') ? 59 : 40)) return 1; for(c= (char *)cert_fp; c < cert_fp + cert_fp_len; c++) { signed char d1, d2; if (*p == ':') p++; if (p - fp > (int)fp_len -1) return 1; if ((d1 = ma_hex2int(*p)) == - 1 || (d2 = ma_hex2int(*(p+1))) == -1 || (char)(d1 * 16 + d2) != *c) return 1; p+= 2; } return 0; }
O0
c
ma_pvio_tls_compare_fp: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq -0x20(%rbp), %rax movq %rax, -0x30(%rbp) cmpl $0x14, -0x14(%rbp) je 0x293dd movb $0x1, -0x1(%rbp) jmp 0x294dc movl -0x24(%rbp), %eax movl %eax, -0x40(%rbp) movq -0x20(%rbp), %rdi movl $0x3a, %esi callq 0x13170 movq %rax, %rsi movl -0x40(%rbp), %eax movl $0x28, %ecx movl $0x3b, %edx cmpq $0x0, %rsi cmovnel %edx, %ecx cmpl %ecx, %eax je 0x29415 movb $0x1, -0x1(%rbp) jmp 0x294dc movq -0x10(%rbp), %rax movq %rax, -0x38(%rbp) movq -0x38(%rbp), %rax movq -0x10(%rbp), %rcx movl -0x14(%rbp), %edx addq %rdx, %rcx cmpq %rcx, %rax jae 0x294d8 movq -0x30(%rbp), %rax movsbl (%rax), %eax cmpl $0x3a, %eax jne 0x2944c movq -0x30(%rbp), %rax addq $0x1, %rax movq %rax, -0x30(%rbp) movq -0x30(%rbp), %rax movq -0x20(%rbp), %rcx subq %rcx, %rax movl -0x24(%rbp), %ecx subl $0x1, %ecx movslq %ecx, %rcx cmpq %rcx, %rax jle 0x2946b movb $0x1, -0x1(%rbp) jmp 0x294dc movq -0x30(%rbp), %rax movsbl (%rax), %edi callq 0x29510 movb %al, -0x39(%rbp) movsbl %al, %eax cmpl $-0x1, %eax je 0x294b5 movq -0x30(%rbp), %rax movsbl 0x1(%rax), %edi callq 0x29510 movb %al, -0x3a(%rbp) movsbl %al, %eax cmpl $-0x1, %eax je 0x294b5 movsbl -0x39(%rbp), %eax shll $0x4, %eax movsbl -0x3a(%rbp), %ecx addl %ecx, %eax movsbl %al, %eax movq -0x38(%rbp), %rcx movsbl (%rcx), %ecx cmpl %ecx, %eax je 0x294bb movb $0x1, -0x1(%rbp) jmp 0x294dc movq -0x30(%rbp), %rax addq $0x2, %rax movq %rax, -0x30(%rbp) movq -0x38(%rbp), %rax addq $0x1, %rax movq %rax, -0x38(%rbp) jmp 0x2941d movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
ma_pvio_tls_compare_fp: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov rax, [rbp+var_20] mov [rbp+var_30], rax cmp [rbp+var_14], 14h jz short loc_293DD mov [rbp+var_1], 1 jmp loc_294DC loc_293DD: mov eax, [rbp+var_24] mov [rbp+var_40], eax mov rdi, [rbp+var_20] mov esi, 3Ah ; ':' call _strchr mov rsi, rax mov eax, [rbp+var_40] mov ecx, 28h ; '(' mov edx, 3Bh ; ';' cmp rsi, 0 cmovnz ecx, edx cmp eax, ecx jz short loc_29415 mov [rbp+var_1], 1 jmp loc_294DC loc_29415: mov rax, [rbp+var_10] mov [rbp+var_38], rax loc_2941D: mov rax, [rbp+var_38] mov rcx, [rbp+var_10] mov edx, [rbp+var_14] add rcx, rdx cmp rax, rcx jnb loc_294D8 mov rax, [rbp+var_30] movsx eax, byte ptr [rax] cmp eax, 3Ah ; ':' jnz short loc_2944C mov rax, [rbp+var_30] add rax, 1 mov [rbp+var_30], rax loc_2944C: mov rax, [rbp+var_30] mov rcx, [rbp+var_20] sub rax, rcx mov ecx, [rbp+var_24] sub ecx, 1 movsxd rcx, ecx cmp rax, rcx jle short loc_2946B mov [rbp+var_1], 1 jmp short loc_294DC loc_2946B: mov rax, [rbp+var_30] movsx edi, byte ptr [rax] call ma_hex2int mov [rbp+var_39], al movsx eax, al cmp eax, 0FFFFFFFFh jz short loc_294B5 mov rax, [rbp+var_30] movsx edi, byte ptr [rax+1] call ma_hex2int mov [rbp+var_3A], al movsx eax, al cmp eax, 0FFFFFFFFh jz short loc_294B5 movsx eax, [rbp+var_39] shl eax, 4 movsx ecx, [rbp+var_3A] add eax, ecx movsx eax, al mov rcx, [rbp+var_38] movsx ecx, byte ptr [rcx] cmp eax, ecx jz short loc_294BB loc_294B5: mov [rbp+var_1], 1 jmp short loc_294DC loc_294BB: mov rax, [rbp+var_30] add rax, 2 mov [rbp+var_30], rax mov rax, [rbp+var_38] add rax, 1 mov [rbp+var_38], rax jmp loc_2941D loc_294D8: mov [rbp+var_1], 0 loc_294DC: mov al, [rbp+var_1] add rsp, 40h pop rbp retn
char ma_pvio_tls_compare_fp(char *a1, int a2, char *a3, int a4) { long long v4; // rsi int v5; // ecx char v7; // [rsp+6h] [rbp-3Ah] char v8; // [rsp+7h] [rbp-39h] char *i; // [rsp+8h] [rbp-38h] char *v10; // [rsp+10h] [rbp-30h] v10 = a3; if ( a2 != 20 ) return 1; v4 = strchr(a3, 58LL); v5 = 40; if ( v4 ) v5 = 59; if ( a4 != v5 ) return 1; for ( i = a1; i < a1 + 20; ++i ) { if ( *v10 == 58 ) ++v10; if ( v10 - a3 > a4 - 1 ) return 1; v8 = ma_hex2int((unsigned int)*v10); if ( v8 == -1 ) return 1; v7 = ma_hex2int((unsigned int)v10[1]); if ( v7 == -1 || (char)(v7 + 16 * v8) != *i ) return 1; v10 += 2; } return 0; }
ma_pvio_tls_compare_fp: 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 dword ptr [RBP + -0x24],ECX MOV RAX,qword ptr [RBP + -0x20] MOV qword ptr [RBP + -0x30],RAX CMP dword ptr [RBP + -0x14],0x14 JZ 0x001293dd MOV byte ptr [RBP + -0x1],0x1 JMP 0x001294dc LAB_001293dd: MOV EAX,dword ptr [RBP + -0x24] MOV dword ptr [RBP + -0x40],EAX MOV RDI,qword ptr [RBP + -0x20] MOV ESI,0x3a CALL 0x00113170 MOV RSI,RAX MOV EAX,dword ptr [RBP + -0x40] MOV ECX,0x28 MOV EDX,0x3b CMP RSI,0x0 CMOVNZ ECX,EDX CMP EAX,ECX JZ 0x00129415 MOV byte ptr [RBP + -0x1],0x1 JMP 0x001294dc LAB_00129415: MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x38],RAX LAB_0012941d: MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RBP + -0x14] ADD RCX,RDX CMP RAX,RCX JNC 0x001294d8 MOV RAX,qword ptr [RBP + -0x30] MOVSX EAX,byte ptr [RAX] CMP EAX,0x3a JNZ 0x0012944c MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x1 MOV qword ptr [RBP + -0x30],RAX LAB_0012944c: MOV RAX,qword ptr [RBP + -0x30] MOV RCX,qword ptr [RBP + -0x20] SUB RAX,RCX MOV ECX,dword ptr [RBP + -0x24] SUB ECX,0x1 MOVSXD RCX,ECX CMP RAX,RCX JLE 0x0012946b MOV byte ptr [RBP + -0x1],0x1 JMP 0x001294dc LAB_0012946b: MOV RAX,qword ptr [RBP + -0x30] MOVSX EDI,byte ptr [RAX] CALL 0x00129510 MOV byte ptr [RBP + -0x39],AL MOVSX EAX,AL CMP EAX,-0x1 JZ 0x001294b5 MOV RAX,qword ptr [RBP + -0x30] MOVSX EDI,byte ptr [RAX + 0x1] CALL 0x00129510 MOV byte ptr [RBP + -0x3a],AL MOVSX EAX,AL CMP EAX,-0x1 JZ 0x001294b5 MOVSX EAX,byte ptr [RBP + -0x39] SHL EAX,0x4 MOVSX ECX,byte ptr [RBP + -0x3a] ADD EAX,ECX MOVSX EAX,AL MOV RCX,qword ptr [RBP + -0x38] MOVSX ECX,byte ptr [RCX] CMP EAX,ECX JZ 0x001294bb LAB_001294b5: MOV byte ptr [RBP + -0x1],0x1 JMP 0x001294dc LAB_001294bb: MOV RAX,qword ptr [RBP + -0x30] ADD RAX,0x2 MOV qword ptr [RBP + -0x30],RAX MOV RAX,qword ptr [RBP + -0x38] ADD RAX,0x1 MOV qword ptr [RBP + -0x38],RAX JMP 0x0012941d LAB_001294d8: MOV byte ptr [RBP + -0x1],0x0 LAB_001294dc: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x40 POP RBP RET
int1 ma_pvio_tls_compare_fp(char *param_1,int param_2,char *param_3,int param_4) { char cVar1; char cVar2; char *pcVar3; int iVar4; char *local_40; char *local_38; int1 local_9; if (param_2 == 0x14) { pcVar3 = strchr(param_3,0x3a); iVar4 = 0x28; if (pcVar3 != (char *)0x0) { iVar4 = 0x3b; } local_40 = param_1; local_38 = param_3; if (param_4 == iVar4) { for (; local_40 < param_1 + 0x14; local_40 = local_40 + 1) { if (*local_38 == ':') { local_38 = local_38 + 1; } if ((long)(param_4 + -1) < (long)local_38 - (long)param_3) { return 1; } cVar1 = ma_hex2int((int)*local_38); if (((cVar1 == -1) || (cVar2 = ma_hex2int((int)local_38[1]), cVar2 == -1)) || ((char)((char)((int)cVar1 << 4) + cVar2) != *local_40)) { return 1; } local_38 = local_38 + 2; } local_9 = 0; } else { local_9 = 1; } } else { local_9 = 1; } return local_9; }
31,036
bf_add_limb
bluesky950520[P]quickjs/libbf.c
static int bf_add_limb(bf_t *a, slimb_t *ppos, limb_t v) { slimb_t pos; pos = *ppos; if (unlikely(pos < 0)) { limb_t new_size, d, *new_tab; new_size = bf_max(a->len + 1, a->len * 3 / 2); new_tab = bf_realloc(a->ctx, a->tab, sizeof(limb_t) * new_size); if (!new_tab) return -1; a->tab = new_tab; d = new_size - a->len; memmove(a->tab + d, a->tab, a->len * sizeof(limb_t)); a->len = new_size; pos += d; } a->tab[pos--] = v; *ppos = pos; return 0; }
O0
c
bf_add_limb: subq $0x48, %rsp movq %rdi, 0x38(%rsp) movq %rsi, 0x30(%rsp) movq %rdx, 0x28(%rsp) movq 0x30(%rsp), %rax movq (%rax), %rax movq %rax, 0x20(%rsp) cmpq $0x0, 0x20(%rsp) setl %al xorb $-0x1, %al xorb $-0x1, %al andb $0x1, %al movzbl %al, %eax cltq cmpq $0x0, %rax je 0xfd669 movq 0x38(%rsp), %rax movq 0x18(%rax), %rdi addq $0x1, %rdi movq 0x38(%rsp), %rax imulq $0x3, 0x18(%rax), %rsi shrq %rsi callq 0xed350 movq %rax, 0x18(%rsp) movq 0x38(%rsp), %rax movq (%rax), %rdi movq 0x38(%rsp), %rax movq 0x20(%rax), %rsi movq 0x18(%rsp), %rdx shlq $0x3, %rdx callq 0xec350 movq %rax, 0x8(%rsp) cmpq $0x0, 0x8(%rsp) jne 0xfd5fb movl $0xffffffff, 0x44(%rsp) # imm = 0xFFFFFFFF jmp 0xfd6a1 movq 0x8(%rsp), %rcx movq 0x38(%rsp), %rax movq %rcx, 0x20(%rax) movq 0x18(%rsp), %rax movq 0x38(%rsp), %rcx subq 0x18(%rcx), %rax movq %rax, 0x10(%rsp) movq 0x38(%rsp), %rax movq 0x20(%rax), %rdi movq 0x10(%rsp), %rax shlq $0x3, %rax addq %rax, %rdi movq 0x38(%rsp), %rax movq 0x20(%rax), %rsi movq 0x38(%rsp), %rax movq 0x18(%rax), %rdx shlq $0x3, %rdx callq 0xe770 movq 0x18(%rsp), %rcx movq 0x38(%rsp), %rax movq %rcx, 0x18(%rax) movq 0x10(%rsp), %rax addq 0x20(%rsp), %rax movq %rax, 0x20(%rsp) movq 0x28(%rsp), %rdx movq 0x38(%rsp), %rax movq 0x20(%rax), %rax movq 0x20(%rsp), %rcx movq %rcx, %rsi addq $-0x1, %rsi movq %rsi, 0x20(%rsp) movq %rdx, (%rax,%rcx,8) movq 0x20(%rsp), %rcx movq 0x30(%rsp), %rax movq %rcx, (%rax) movl $0x0, 0x44(%rsp) movl 0x44(%rsp), %eax addq $0x48, %rsp retq nopw (%rax,%rax)
bf_add_limb: sub rsp, 48h mov [rsp+48h+var_10], rdi mov [rsp+48h+var_18], rsi mov [rsp+48h+var_20], rdx mov rax, [rsp+48h+var_18] mov rax, [rax] mov [rsp+48h+var_28], rax cmp [rsp+48h+var_28], 0 setl al xor al, 0FFh xor al, 0FFh and al, 1 movzx eax, al cdqe cmp rax, 0 jz loc_FD669 mov rax, [rsp+48h+var_10] mov rdi, [rax+18h] add rdi, 1 mov rax, [rsp+48h+var_10] imul rsi, [rax+18h], 3 shr rsi, 1 call bf_max mov [rsp+48h+var_30], rax mov rax, [rsp+48h+var_10] mov rdi, [rax] mov rax, [rsp+48h+var_10] mov rsi, [rax+20h] mov rdx, [rsp+48h+var_30] shl rdx, 3 call bf_realloc_0 mov [rsp+48h+var_40], rax cmp [rsp+48h+var_40], 0 jnz short loc_FD5FB mov [rsp+48h+var_4], 0FFFFFFFFh jmp loc_FD6A1 loc_FD5FB: mov rcx, [rsp+48h+var_40] mov rax, [rsp+48h+var_10] mov [rax+20h], rcx mov rax, [rsp+48h+var_30] mov rcx, [rsp+48h+var_10] sub rax, [rcx+18h] mov [rsp+48h+var_38], rax mov rax, [rsp+48h+var_10] mov rdi, [rax+20h] mov rax, [rsp+48h+var_38] shl rax, 3 add rdi, rax mov rax, [rsp+48h+var_10] mov rsi, [rax+20h] mov rax, [rsp+48h+var_10] mov rdx, [rax+18h] shl rdx, 3 call _memmove mov rcx, [rsp+48h+var_30] mov rax, [rsp+48h+var_10] mov [rax+18h], rcx mov rax, [rsp+48h+var_38] add rax, [rsp+48h+var_28] mov [rsp+48h+var_28], rax loc_FD669: mov rdx, [rsp+48h+var_20] mov rax, [rsp+48h+var_10] mov rax, [rax+20h] mov rcx, [rsp+48h+var_28] mov rsi, rcx add rsi, 0FFFFFFFFFFFFFFFFh mov [rsp+48h+var_28], rsi mov [rax+rcx*8], rdx mov rcx, [rsp+48h+var_28] mov rax, [rsp+48h+var_18] mov [rax], rcx mov [rsp+48h+var_4], 0 loc_FD6A1: mov eax, [rsp+48h+var_4] add rsp, 48h retn
long long bf_add_limb(long long *a1, long long *a2, long long a3) { long long v3; // rcx long long v4; // r8 long long v5; // r9 long long v7; // [rsp+8h] [rbp-40h] long long v8; // [rsp+10h] [rbp-38h] long long v9; // [rsp+18h] [rbp-30h] long long v10; // [rsp+20h] [rbp-28h] v10 = *a2; if ( *a2 >= 0 ) goto LABEL_5; v9 = bf_max(a1[3] + 1, (unsigned long long)(3 * a1[3]) >> 1); v7 = bf_realloc_0(*a1, a1[4], 8 * v9, v3, v4, v5); if ( v7 ) { a1[4] = v7; v8 = v9 - a1[3]; memmove(8 * v8 + a1[4], a1[4], 8 * a1[3]); a1[3] = v9; v10 += v8; LABEL_5: *(_QWORD *)(a1[4] + 8 * v10) = a3; *a2 = v10 - 1; return 0; } return (unsigned int)-1; }
bf_add_limb: SUB RSP,0x48 MOV qword ptr [RSP + 0x38],RDI MOV qword ptr [RSP + 0x30],RSI MOV qword ptr [RSP + 0x28],RDX MOV RAX,qword ptr [RSP + 0x30] MOV RAX,qword ptr [RAX] MOV qword ptr [RSP + 0x20],RAX CMP qword ptr [RSP + 0x20],0x0 SETL AL XOR AL,0xff XOR AL,0xff AND AL,0x1 MOVZX EAX,AL CDQE CMP RAX,0x0 JZ 0x001fd669 MOV RAX,qword ptr [RSP + 0x38] MOV RDI,qword ptr [RAX + 0x18] ADD RDI,0x1 MOV RAX,qword ptr [RSP + 0x38] IMUL RSI,qword ptr [RAX + 0x18],0x3 SHR RSI,0x1 CALL 0x001ed350 MOV qword ptr [RSP + 0x18],RAX MOV RAX,qword ptr [RSP + 0x38] MOV RDI,qword ptr [RAX] MOV RAX,qword ptr [RSP + 0x38] MOV RSI,qword ptr [RAX + 0x20] MOV RDX,qword ptr [RSP + 0x18] SHL RDX,0x3 CALL 0x001ec350 MOV qword ptr [RSP + 0x8],RAX CMP qword ptr [RSP + 0x8],0x0 JNZ 0x001fd5fb MOV dword ptr [RSP + 0x44],0xffffffff JMP 0x001fd6a1 LAB_001fd5fb: MOV RCX,qword ptr [RSP + 0x8] MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RAX + 0x20],RCX MOV RAX,qword ptr [RSP + 0x18] MOV RCX,qword ptr [RSP + 0x38] SUB RAX,qword ptr [RCX + 0x18] MOV qword ptr [RSP + 0x10],RAX MOV RAX,qword ptr [RSP + 0x38] MOV RDI,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RSP + 0x10] SHL RAX,0x3 ADD RDI,RAX MOV RAX,qword ptr [RSP + 0x38] MOV RSI,qword ptr [RAX + 0x20] MOV RAX,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RAX + 0x18] SHL RDX,0x3 CALL 0x0010e770 MOV RCX,qword ptr [RSP + 0x18] MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RAX + 0x18],RCX MOV RAX,qword ptr [RSP + 0x10] ADD RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x20],RAX LAB_001fd669: MOV RDX,qword ptr [RSP + 0x28] MOV RAX,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RSP + 0x20] MOV RSI,RCX ADD RSI,-0x1 MOV qword ptr [RSP + 0x20],RSI MOV qword ptr [RAX + RCX*0x8],RDX MOV RCX,qword ptr [RSP + 0x20] MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RAX],RCX MOV dword ptr [RSP + 0x44],0x0 LAB_001fd6a1: MOV EAX,dword ptr [RSP + 0x44] ADD RSP,0x48 RET
int4 bf_add_limb(int8 *param_1,long *param_2,int8 param_3) { long lVar1; long lVar2; long local_28; local_28 = *param_2; if (local_28 < 0) { lVar1 = bf_max(param_1[3] + 1,(ulong)(param_1[3] * 3) >> 1); lVar2 = bf_realloc(*param_1,param_1[4],lVar1 << 3); if (lVar2 == 0) { return 0xffffffff; } param_1[4] = lVar2; lVar2 = param_1[3]; memmove((void *)(param_1[4] + (lVar1 - lVar2) * 8),(void *)param_1[4],param_1[3] << 3); param_1[3] = lVar1; local_28 = (lVar1 - lVar2) + local_28; } *(int8 *)(param_1[4] + local_28 * 8) = param_3; *param_2 = local_28 + -1; return 0; }
31,037
bf_add_limb
bluesky950520[P]quickjs/libbf.c
static int bf_add_limb(bf_t *a, slimb_t *ppos, limb_t v) { slimb_t pos; pos = *ppos; if (unlikely(pos < 0)) { limb_t new_size, d, *new_tab; new_size = bf_max(a->len + 1, a->len * 3 / 2); new_tab = bf_realloc(a->ctx, a->tab, sizeof(limb_t) * new_size); if (!new_tab) return -1; a->tab = new_tab; d = new_size - a->len; memmove(a->tab + d, a->tab, a->len * sizeof(limb_t)); a->len = new_size; pos += d; } a->tab[pos--] = v; *ppos = pos; return 0; }
O1
c
bf_add_limb: pushq %r15 pushq %r14 pushq %rbx subq $0x10, %rsp movq %rdx, %r14 movq %rsi, %rbx movq %rdi, %r15 movq (%rsi), %rsi testq %rsi, %rsi js 0x94cea movq 0x20(%r15), %rax movq %r14, (%rax,%rsi,8) decq %rsi movq %rsi, (%rbx) xorl %eax, %eax addq $0x10, %rsp popq %rbx popq %r14 popq %r15 retq leaq 0x8(%rsp), %rdx movq %r15, %rdi callq 0x13b83 movl %eax, %ecx movl $0xffffffff, %eax # imm = 0xFFFFFFFF testb $0x1, %cl jne 0x94ce0 movq 0x8(%rsp), %rsi jmp 0x94cd0
bf_add_limb: push r15 push r14 push rbx sub rsp, 10h mov r14, rdx mov rbx, rsi mov r15, rdi mov rsi, [rsi] test rsi, rsi js short loc_94CEA loc_94CD0: mov rax, [r15+20h] mov [rax+rsi*8], r14 dec rsi mov [rbx], rsi xor eax, eax loc_94CE0: add rsp, 10h pop rbx pop r14 pop r15 retn loc_94CEA: lea rdx, [rsp+28h+var_20] mov rdi, r15 call bf_add_limb_cold_1 mov ecx, eax mov eax, 0FFFFFFFFh test cl, 1 jnz short loc_94CE0 mov rsi, [rsp+28h+var_20] jmp short loc_94CD0
long long bf_add_limb(_QWORD *a1, long long *a2, long long a3) { long long v5; // rsi long long result; // rax bool v7; // cl long long v8[4]; // [rsp+8h] [rbp-20h] BYREF v5 = *a2; if ( v5 >= 0 ) goto LABEL_2; v7 = bf_add_limb_cold_1(a1, v5, v8); result = 0xFFFFFFFFLL; if ( !v7 ) { v5 = v8[0]; LABEL_2: *(_QWORD *)(a1[4] + 8 * v5) = a3; *a2 = v5 - 1; return 0LL; } return result; }
bf_add_limb: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x10 MOV R14,RDX MOV RBX,RSI MOV R15,RDI MOV RSI,qword ptr [RSI] TEST RSI,RSI JS 0x00194cea LAB_00194cd0: MOV RAX,qword ptr [R15 + 0x20] MOV qword ptr [RAX + RSI*0x8],R14 DEC RSI MOV qword ptr [RBX],RSI XOR EAX,EAX LAB_00194ce0: ADD RSP,0x10 POP RBX POP R14 POP R15 RET LAB_00194cea: LEA RDX,[RSP + 0x8] MOV RDI,R15 CALL 0x00113b83 MOV ECX,EAX MOV EAX,0xffffffff TEST CL,0x1 JNZ 0x00194ce0 MOV RSI,qword ptr [RSP + 0x8] JMP 0x00194cd0
int8 bf_add_limb(long param_1,long *param_2,int8 param_3) { uint uVar1; long lVar2; long local_20; lVar2 = *param_2; if ((lVar2 < 0) && (uVar1 = bf_add_limb_cold_1(param_1,lVar2,&local_20), lVar2 = local_20, (uVar1 & 1) != 0)) { return 0xffffffff; } *(int8 *)(*(long *)(param_1 + 0x20) + lVar2 * 8) = param_3; *param_2 = lVar2 + -1; return 0; }
31,038
bf_add_limb
bluesky950520[P]quickjs/libbf.c
static int bf_add_limb(bf_t *a, slimb_t *ppos, limb_t v) { slimb_t pos; pos = *ppos; if (unlikely(pos < 0)) { limb_t new_size, d, *new_tab; new_size = bf_max(a->len + 1, a->len * 3 / 2); new_tab = bf_realloc(a->ctx, a->tab, sizeof(limb_t) * new_size); if (!new_tab) return -1; a->tab = new_tab; d = new_size - a->len; memmove(a->tab + d, a->tab, a->len * sizeof(limb_t)); a->len = new_size; pos += d; } a->tab[pos--] = v; *ppos = pos; return 0; }
O2
c
bf_add_limb: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r14 movq %rsi, %rbx movq %rdi, %r15 movq (%rsi), %r12 testq %r12, %r12 js 0x7c754 movq 0x20(%r15), %rax movq %r14, (%rax,%r12,8) decq %r12 movq %r12, (%rbx) xorl %eax, %eax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq 0x18(%r15), %rax leaq (%rax,%rax,2), %r13 incq %rax shrq %r13 cmpq %r13, %rax cmovgq %rax, %r13 movq (%r15), %rax movq 0x20(%r15), %rsi leaq (,%r13,8), %rdx movq (%rax), %rdi callq *0x8(%rax) testq %rax, %rax je 0x7c7aa movq %rax, 0x20(%r15) movq 0x18(%r15), %rdx movq %r13, %rbp subq %rdx, %rbp leaq (%rax,%rbp,8), %rdi shlq $0x3, %rdx movq %rax, %rsi callq 0xe7b0 movq %r13, 0x18(%r15) addq %rbp, %r12 jmp 0x7c735 pushq $-0x1 popq %rax jmp 0x7c745
bf_add_limb: push rbp push r15 push r14 push r13 push r12 push rbx push rax mov r14, rdx mov rbx, rsi mov r15, rdi mov r12, [rsi] test r12, r12 js short loc_7C754 loc_7C735: mov rax, [r15+20h] mov [rax+r12*8], r14 dec r12 mov [rbx], r12 xor eax, eax loc_7C745: add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_7C754: mov rax, [r15+18h] lea r13, [rax+rax*2] inc rax shr r13, 1 cmp rax, r13 cmovg r13, rax mov rax, [r15] mov rsi, [r15+20h] lea rdx, ds:0[r13*8] mov rdi, [rax] call qword ptr [rax+8] test rax, rax jz short loc_7C7AA mov [r15+20h], rax mov rdx, [r15+18h] mov rbp, r13 sub rbp, rdx lea rdi, [rax+rbp*8] shl rdx, 3 mov rsi, rax call _memmove mov [r15+18h], r13 add r12, rbp jmp short loc_7C735 loc_7C7AA: push 0FFFFFFFFFFFFFFFFh pop rax jmp short loc_7C745
long long bf_add_limb(_QWORD *a1, long long *a2, long long a3) { long long v4; // r12 long long v6; // rax unsigned long long v7; // r13 signed long long v8; // rax signed long long v9; // r13 long long v10; // rax long long v11; // rdx long long v12; // rbp v4 = *a2; if ( *a2 < 0 ) { v6 = a1[3]; v7 = 3 * v6; v8 = v6 + 1; v9 = v7 >> 1; if ( v8 > v9 ) v9 = v8; v10 = (*(long long ( **)(_QWORD, _QWORD, signed long long))(*a1 + 8LL))(*(_QWORD *)*a1, a1[4], 8 * v9); if ( !v10 ) return -1LL; a1[4] = v10; v11 = a1[3]; v12 = v9 - v11; memmove(v10 + 8 * (v9 - v11), v10, 8 * v11); a1[3] = v9; v4 += v12; } *(_QWORD *)(a1[4] + 8 * v4) = a3; *a2 = v4 - 1; return 0LL; }
bf_add_limb: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV R14,RDX MOV RBX,RSI MOV R15,RDI MOV R12,qword ptr [RSI] TEST R12,R12 JS 0x0017c754 LAB_0017c735: MOV RAX,qword ptr [R15 + 0x20] MOV qword ptr [RAX + R12*0x8],R14 DEC R12 MOV qword ptr [RBX],R12 XOR EAX,EAX LAB_0017c745: ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0017c754: MOV RAX,qword ptr [R15 + 0x18] LEA R13,[RAX + RAX*0x2] INC RAX SHR R13,0x1 CMP RAX,R13 CMOVG R13,RAX MOV RAX,qword ptr [R15] MOV RSI,qword ptr [R15 + 0x20] LEA RDX,[R13*0x8] MOV RDI,qword ptr [RAX] CALL qword ptr [RAX + 0x8] TEST RAX,RAX JZ 0x0017c7aa MOV qword ptr [R15 + 0x20],RAX MOV RDX,qword ptr [R15 + 0x18] MOV RBP,R13 SUB RBP,RDX LEA RDI,[RAX + RBP*0x8] SHL RDX,0x3 MOV RSI,RAX CALL 0x0010e7b0 MOV qword ptr [R15 + 0x18],R13 ADD R12,RBP JMP 0x0017c735 LAB_0017c7aa: PUSH -0x1 POP RAX JMP 0x0017c745
int8 bf_add_limb(long *param_1,long *param_2,int8 param_3) { ulong uVar1; void *__src; long lVar2; long lVar3; ulong uVar4; lVar3 = *param_2; if (lVar3 < 0) { uVar1 = param_1[3] + 1; uVar4 = (ulong)(param_1[3] * 3) >> 1; if ((long)uVar4 < (long)uVar1) { uVar4 = uVar1; } __src = (void *)(*(code *)((int8 *)*param_1)[1]) (*(int8 *)*param_1,param_1[4],uVar4 * 8); if (__src == (void *)0x0) { return 0xffffffffffffffff; } param_1[4] = (long)__src; lVar2 = uVar4 - param_1[3]; memmove((void *)((long)__src + lVar2 * 8),__src,param_1[3] << 3); param_1[3] = uVar4; lVar3 = lVar3 + lVar2; } *(int8 *)(param_1[4] + lVar3 * 8) = param_3; *param_2 = lVar3 + -1; return 0; }
31,039
init_tree
eloqsql/mysys/tree.c
void init_tree(TREE *tree, size_t default_alloc_size, size_t memory_limit, int size, qsort_cmp2 compare, tree_element_free free_element, void *custom_arg, myf my_flags) { DBUG_ENTER("init_tree"); DBUG_PRINT("enter",("tree: %p size: %d", tree, size)); if (default_alloc_size < DEFAULT_ALLOC_SIZE) default_alloc_size= DEFAULT_ALLOC_SIZE; default_alloc_size= MY_ALIGN(default_alloc_size, DEFAULT_ALIGN_SIZE); tree->root= &null_element; tree->compare=compare; tree->size_of_element= size > 0 ? (uint) size : 0; tree->memory_limit=memory_limit; tree->free=free_element; tree->allocated=0; tree->elements_in_tree=0; tree->custom_arg = custom_arg; tree->my_flags= my_flags; tree->flag= 0; if (!free_element && size >= 0 && ((uint) size <= sizeof(void*) || ((uint) size & (sizeof(void*)-1)))) { /* We know that the data doesn't have to be aligned (like if the key contains a double), so we can store the data combined with the TREE_ELEMENT. */ tree->offset_to_key=sizeof(TREE_ELEMENT); /* Put key after element */ /* Fix allocation size so that we don't lose any memory */ default_alloc_size/=(sizeof(TREE_ELEMENT)+size); if (!default_alloc_size) default_alloc_size=1; default_alloc_size*=(sizeof(TREE_ELEMENT)+size); } else { tree->offset_to_key=0; /* use key through pointer */ tree->size_of_element+=sizeof(void*); } if (!(tree->with_delete= MY_TEST(my_flags & MY_TREE_WITH_DELETE))) { init_alloc_root(key_memory_TREE, &tree->mem_root, default_alloc_size, 0, MYF(my_flags)); tree->mem_root.min_malloc= sizeof(TREE_ELEMENT)+tree->size_of_element; } DBUG_VOID_RETURN; }
O0
c
init_tree: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq 0x18(%rbp), %rax movq 0x10(%rbp), %rax movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movl %ecx, -0x1c(%rbp) movq %r8, -0x28(%rbp) movq %r9, -0x30(%rbp) jmp 0xfa3b9 cmpq $0x2000, -0x10(%rbp) # imm = 0x2000 jae 0xfa3cb movq $0x2000, -0x10(%rbp) # imm = 0x2000 movq -0x10(%rbp), %rax addq $0x2000, %rax # imm = 0x2000 subq $0x1, %rax andq $-0x2000, %rax # imm = 0xE000 movq %rax, -0x10(%rbp) movq -0x8(%rbp), %rax leaq 0x1c5872(%rip), %rcx # 0x2bfc60 movq %rcx, (%rax) movq -0x28(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x228(%rax) cmpl $0x0, -0x1c(%rbp) jle 0xfa40e movl -0x1c(%rbp), %eax movl %eax, -0x34(%rbp) jmp 0xfa415 xorl %eax, %eax movl %eax, -0x34(%rbp) jmp 0xfa415 movl -0x34(%rbp), %ecx movq -0x8(%rbp), %rax movl %ecx, 0x210(%rax) movq -0x18(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x218(%rax) movq -0x30(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x280(%rax) movq -0x8(%rbp), %rax movq $0x0, 0x220(%rax) movq -0x8(%rbp), %rax movl $0x0, 0x20c(%rax) movq 0x10(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x230(%rax) movq 0x18(%rbp), %rcx movq -0x8(%rbp), %rax movq %rcx, 0x288(%rax) movq -0x8(%rbp), %rax movl $0x0, 0x290(%rax) cmpq $0x0, -0x30(%rbp) jne 0xfa4f1 cmpl $0x0, -0x1c(%rbp) jl 0xfa4f1 movl -0x1c(%rbp), %eax cmpq $0x8, %rax jbe 0xfa4ac movl -0x1c(%rbp), %eax andq $0x7, %rax cmpq $0x0, %rax je 0xfa4f1 movq -0x8(%rbp), %rax movl $0x18, 0x208(%rax) movslq -0x1c(%rbp), %rcx addq $0x18, %rcx movq -0x10(%rbp), %rax xorl %edx, %edx divq %rcx movq %rax, -0x10(%rbp) cmpq $0x0, -0x10(%rbp) jne 0xfa4de movq $0x1, -0x10(%rbp) movslq -0x1c(%rbp), %rax addq $0x18, %rax imulq -0x10(%rbp), %rax movq %rax, -0x10(%rbp) jmp 0xfa513 movq -0x8(%rbp), %rax movl $0x0, 0x208(%rax) movq -0x8(%rbp), %rax movl 0x210(%rax), %ecx addq $0x8, %rcx movl %ecx, 0x210(%rax) movq 0x18(%rbp), %rdx andq $0x40000, %rdx # imm = 0x40000 xorl %eax, %eax movl $0x1, %ecx cmpq $0x0, %rdx cmovnel %ecx, %eax movq -0x8(%rbp), %rcx movb %al, 0x278(%rcx) cmpb $0x0, %al jne 0xfa57a leaq 0xb88d9b(%rip), %rax # 0xc832dc movl (%rax), %edi movq -0x8(%rbp), %rsi addq $0x238, %rsi # imm = 0x238 movq -0x10(%rbp), %rdx movq 0x18(%rbp), %r8 xorl %eax, %eax movl %eax, %ecx callq 0xed170 movq -0x8(%rbp), %rax movl 0x210(%rax), %eax movl %eax, %ecx addq $0x18, %rcx movq -0x8(%rbp), %rax movq %rcx, 0x250(%rax) jmp 0xfa57c jmp 0xfa57e addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
init_tree: push rbp mov rbp, rsp sub rsp, 40h mov rax, [rbp+arg_8] mov rax, [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 jmp short $+2 loc_FA3B9: cmp [rbp+var_10], 2000h jnb short loc_FA3CB mov [rbp+var_10], 2000h loc_FA3CB: mov rax, [rbp+var_10] add rax, 2000h sub rax, 1 and rax, 0FFFFFFFFFFFFE000h mov [rbp+var_10], rax mov rax, [rbp+var_8] lea rcx, null_element mov [rax], rcx mov rcx, [rbp+var_28] mov rax, [rbp+var_8] mov [rax+228h], rcx cmp [rbp+var_1C], 0 jle short loc_FA40E mov eax, [rbp+var_1C] mov [rbp+var_34], eax jmp short loc_FA415 loc_FA40E: xor eax, eax mov [rbp+var_34], eax jmp short $+2 loc_FA415: mov ecx, [rbp+var_34] mov rax, [rbp+var_8] mov [rax+210h], ecx mov rcx, [rbp+var_18] mov rax, [rbp+var_8] mov [rax+218h], rcx mov rcx, [rbp+var_30] mov rax, [rbp+var_8] mov [rax+280h], rcx mov rax, [rbp+var_8] mov qword ptr [rax+220h], 0 mov rax, [rbp+var_8] mov dword ptr [rax+20Ch], 0 mov rcx, [rbp+arg_0] mov rax, [rbp+var_8] mov [rax+230h], rcx mov rcx, [rbp+arg_8] mov rax, [rbp+var_8] mov [rax+288h], rcx mov rax, [rbp+var_8] mov dword ptr [rax+290h], 0 cmp [rbp+var_30], 0 jnz short loc_FA4F1 cmp [rbp+var_1C], 0 jl short loc_FA4F1 mov eax, [rbp+var_1C] cmp rax, 8 jbe short loc_FA4AC mov eax, [rbp+var_1C] and rax, 7 cmp rax, 0 jz short loc_FA4F1 loc_FA4AC: mov rax, [rbp+var_8] mov dword ptr [rax+208h], 18h movsxd rcx, [rbp+var_1C] add rcx, 18h mov rax, [rbp+var_10] xor edx, edx div rcx mov [rbp+var_10], rax cmp [rbp+var_10], 0 jnz short loc_FA4DE mov [rbp+var_10], 1 loc_FA4DE: movsxd rax, [rbp+var_1C] add rax, 18h imul rax, [rbp+var_10] mov [rbp+var_10], rax jmp short loc_FA513 loc_FA4F1: mov rax, [rbp+var_8] mov dword ptr [rax+208h], 0 mov rax, [rbp+var_8] mov ecx, [rax+210h] add rcx, 8 mov [rax+210h], ecx loc_FA513: mov rdx, [rbp+arg_8] and rdx, 40000h xor eax, eax mov ecx, 1 cmp rdx, 0 cmovnz eax, ecx mov rcx, [rbp+var_8] mov [rcx+278h], al cmp al, 0 jnz short loc_FA57A lea rax, key_memory_TREE mov edi, [rax] mov rsi, [rbp+var_8] add rsi, 238h mov rdx, [rbp+var_10] mov r8, [rbp+arg_8] xor eax, eax mov ecx, eax call init_alloc_root mov rax, [rbp+var_8] mov eax, [rax+210h] mov ecx, eax add rcx, 18h mov rax, [rbp+var_8] mov [rax+250h], rcx loc_FA57A: jmp short $+2 loc_FA57C: jmp short $+2 loc_FA57E: add rsp, 40h pop rbp retn
_BOOL8 init_tree( long long a1, unsigned long long a2, long long a3, int a4, long long a5, long long a6, long long a7, long long a8) { _BOOL8 result; // rax int v9; // [rsp+Ch] [rbp-34h] long long v10; // [rsp+30h] [rbp-10h] unsigned long long v11; // [rsp+30h] [rbp-10h] unsigned long long v12; // [rsp+30h] [rbp-10h] v10 = a2; if ( a2 < 0x2000 ) v10 = 0x2000LL; v11 = (v10 + 0x1FFF) & 0xFFFFFFFFFFFFE000LL; *(_QWORD *)a1 = &null_element; *(_QWORD *)(a1 + 552) = a5; if ( a4 <= 0 ) v9 = 0; else v9 = a4; *(_DWORD *)(a1 + 528) = v9; *(_QWORD *)(a1 + 536) = a3; *(_QWORD *)(a1 + 640) = a6; *(_QWORD *)(a1 + 544) = 0LL; *(_DWORD *)(a1 + 524) = 0; *(_QWORD *)(a1 + 560) = a7; *(_QWORD *)(a1 + 648) = a8; *(_DWORD *)(a1 + 656) = 0; if ( a6 || a4 < 0 || (unsigned int)a4 > 8uLL && (a4 & 7) == 0 ) { *(_DWORD *)(a1 + 520) = 0; *(_DWORD *)(a1 + 528) += 8; } else { *(_DWORD *)(a1 + 520) = 24; v12 = v11 / (a4 + 24LL); if ( !v12 ) v12 = 1LL; v11 = v12 * (a4 + 24LL); } result = (a8 & 0x40000) != 0; *(_BYTE *)(a1 + 632) = result; if ( (a8 & 0x40000) == 0 ) { init_alloc_root(key_memory_TREE, (long long *)(a1 + 568), v11, 0LL, a8); result = a1; *(_QWORD *)(a1 + 592) = *(unsigned int *)(a1 + 528) + 24LL; } return result; }
init_tree: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV RAX,qword ptr [RBP + 0x18] MOV RAX,qword ptr [RBP + 0x10] MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV dword ptr [RBP + -0x1c],ECX MOV qword ptr [RBP + -0x28],R8 MOV qword ptr [RBP + -0x30],R9 JMP 0x001fa3b9 LAB_001fa3b9: CMP qword ptr [RBP + -0x10],0x2000 JNC 0x001fa3cb MOV qword ptr [RBP + -0x10],0x2000 LAB_001fa3cb: MOV RAX,qword ptr [RBP + -0x10] ADD RAX,0x2000 SUB RAX,0x1 AND RAX,-0x2000 MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x8] LEA RCX,[0x3bfc60] MOV qword ptr [RAX],RCX MOV RCX,qword ptr [RBP + -0x28] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x228],RCX CMP dword ptr [RBP + -0x1c],0x0 JLE 0x001fa40e MOV EAX,dword ptr [RBP + -0x1c] MOV dword ptr [RBP + -0x34],EAX JMP 0x001fa415 LAB_001fa40e: XOR EAX,EAX MOV dword ptr [RBP + -0x34],EAX JMP 0x001fa415 LAB_001fa415: MOV ECX,dword ptr [RBP + -0x34] MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x210],ECX MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x218],RCX MOV RCX,qword ptr [RBP + -0x30] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x280],RCX MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x220],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x20c],0x0 MOV RCX,qword ptr [RBP + 0x10] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x230],RCX MOV RCX,qword ptr [RBP + 0x18] MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x288],RCX MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x290],0x0 CMP qword ptr [RBP + -0x30],0x0 JNZ 0x001fa4f1 CMP dword ptr [RBP + -0x1c],0x0 JL 0x001fa4f1 MOV EAX,dword ptr [RBP + -0x1c] CMP RAX,0x8 JBE 0x001fa4ac MOV EAX,dword ptr [RBP + -0x1c] AND RAX,0x7 CMP RAX,0x0 JZ 0x001fa4f1 LAB_001fa4ac: MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x208],0x18 MOVSXD RCX,dword ptr [RBP + -0x1c] ADD RCX,0x18 MOV RAX,qword ptr [RBP + -0x10] XOR EDX,EDX DIV RCX MOV qword ptr [RBP + -0x10],RAX CMP qword ptr [RBP + -0x10],0x0 JNZ 0x001fa4de MOV qword ptr [RBP + -0x10],0x1 LAB_001fa4de: MOVSXD RAX,dword ptr [RBP + -0x1c] ADD RAX,0x18 IMUL RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x10],RAX JMP 0x001fa513 LAB_001fa4f1: MOV RAX,qword ptr [RBP + -0x8] MOV dword ptr [RAX + 0x208],0x0 MOV RAX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RAX + 0x210] ADD RCX,0x8 MOV dword ptr [RAX + 0x210],ECX LAB_001fa513: MOV RDX,qword ptr [RBP + 0x18] AND RDX,0x40000 XOR EAX,EAX MOV ECX,0x1 CMP RDX,0x0 CMOVNZ EAX,ECX MOV RCX,qword ptr [RBP + -0x8] MOV byte ptr [RCX + 0x278],AL CMP AL,0x0 JNZ 0x001fa57a LEA RAX,[0xd832dc] MOV EDI,dword ptr [RAX] MOV RSI,qword ptr [RBP + -0x8] ADD RSI,0x238 MOV RDX,qword ptr [RBP + -0x10] MOV R8,qword ptr [RBP + 0x18] XOR EAX,EAX MOV ECX,EAX CALL 0x001ed170 MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x210] MOV ECX,EAX ADD RCX,0x18 MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RAX + 0x250],RCX LAB_001fa57a: JMP 0x001fa57c LAB_001fa57c: JMP 0x001fa57e LAB_001fa57e: ADD RSP,0x40 POP RBP RET
void init_tree(int8 *param_1,ulong param_2,int8 param_3,uint param_4,int8 param_5, long param_6,int8 param_7,ulong param_8) { bool bVar1; uint local_3c; ulong local_18; local_18 = param_2; if (param_2 < 0x2000) { local_18 = 0x2000; } local_18 = local_18 + 0x1fff & 0xffffffffffffe000; *param_1 = null_element; param_1[0x45] = param_5; local_3c = param_4; if ((int)param_4 < 1) { local_3c = 0; } *(uint *)(param_1 + 0x42) = local_3c; param_1[0x43] = param_3; param_1[0x50] = param_6; param_1[0x44] = 0; *(int4 *)((long)param_1 + 0x20c) = 0; param_1[0x46] = param_7; param_1[0x51] = param_8; *(int4 *)(param_1 + 0x52) = 0; if (((param_6 == 0) && (-1 < (int)param_4)) && ((param_4 < 9 || ((param_4 & 7) != 0)))) { *(int4 *)(param_1 + 0x41) = 0x18; local_18 = local_18 / ((long)(int)param_4 + 0x18U); if (local_18 == 0) { local_18 = 1; } local_18 = ((long)(int)param_4 + 0x18) * local_18; } else { *(int4 *)(param_1 + 0x41) = 0; *(int *)(param_1 + 0x42) = *(int *)(param_1 + 0x42) + 8; } bVar1 = (param_8 & 0x40000) != 0; *(bool *)(param_1 + 0x4f) = bVar1; if (!bVar1) { init_alloc_root(key_memory_TREE,param_1 + 0x47,local_18,0,param_8); param_1[0x4a] = (ulong)*(uint *)(param_1 + 0x42) + 0x18; } return; }
31,040
main
corpus-core[P]colibri-stateless/src/cli/ssz.c
int main(int argc, char* argv[]) { if (argc == 1) { fprintf(stderr, "Usage: %s -t <typename> -o <outfile> -nh <file.ssz> <field1> <field2> ...\n" "\n" " -t <typename> : type name\n" " -o <outfile> : output file\n" " -h : show hash_root\n" " -n : show typename\n" " -s : show serialization\n" "\n", argv[0]); exit(EXIT_FAILURE); } // ssz_ob_t res = ssz_ob(SIGNED_BEACON_BLOCK_CONTAINER, read_from_file(argv[1])); bytes_t req_data = bytes_read(argv[1]); ssz_ob_t res = {.def = c4_get_req_type_from_req(req_data), .bytes = req_data}; char* out_filename = NULL; bool show_hash = false; bool show_name = false; bool show_serial = false; for (int i = 2; i < argc; i++) { if (argv[i][0] == '-') { for (int j = 1; argv[i][j] != '\0'; j++) { if (argv[i][j] == 'h') show_hash = true; if (argv[i][j] == 'n') show_name = true; if (argv[i][j] == 's') show_serial = true; if (argv[i][j] == 'o') { out_filename = argv[i + 1]; i++; break; } if (argv[i][j] == 't') { res.def = get_definition(argv[i + 1]); i++; break; } } } else if (res.def && res.def->type != SSZ_TYPE_CONTAINER) { char* endptr; long value = strtol(argv[i], &endptr, 10); if (endptr && *endptr == '\0') res = ssz_at(res, value); else { fprintf(stderr, "Invalid value for index : %s!\n", argv[i]); exit(EXIT_FAILURE); } } else res = ssz_get(&res, argv[i]); } if (out_filename) bytes_write(res.bytes, fopen(out_filename, "wb"), true); if (show_serial) { for (int i = 0; i < res.bytes.len; i += 32) { print_hex(stdout, bytes(res.bytes.data + i, res.bytes.len - i < 32 ? res.bytes.len - i : 32), "# ", "\n"); } } if (ssz_is_error(res)) { fprintf(stderr, "No value found!\n"); exit(EXIT_FAILURE); } ssz_dump_to_file(stdout, res, show_name, true); if (show_hash) { bytes32_t hashroot; ssz_hash_tree_root(res, hashroot); print_hex(stdout, bytes(hashroot, 32), "\ntree_hash_root: 0x", "\n"); } }
O3
c
main: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movq %rsi, %rbx cmpl $0x1, %edi je 0x23486 movl %edi, %ebp movq 0x8(%rbx), %rdi callq 0x514fb movl %eax, 0x20(%rsp) movq %rdx, 0x28(%rsp) movl %eax, %edi movq %rdx, %rsi callq 0x2372c movq %rax, 0x30(%rsp) cmpl $0x3, %ebp jl 0x233da movl %ebp, %esi movl $0x2, %ebp movq $0x0, 0x40(%rsp) xorl %r12d, %r12d xorl %r15d, %r15d xorl %r14d, %r14d movl %esi, 0x1c(%rsp) movslq %ebp, %r13 movq (%rbx,%r13,8), %rdx cmpb $0x2d, (%rdx) jne 0x23297 incq %rdx movzbl (%rdx), %eax movb $0x1, %cl cmpl $0x68, %eax je 0x23292 testl %eax, %eax je 0x23341 cmpl $0x6e, %eax sete %cl orb %cl, %r15b cmpl $0x73, %eax sete %cl orb %cl, %r14b cmpl $0x74, %eax je 0x232c8 cmpl $0x6f, %eax jne 0x2325f jmp 0x232b8 movl %ecx, %r12d jmp 0x2325f movq 0x30(%rsp), %rax testq %rax, %rax je 0x232a7 cmpl $0x2, 0x8(%rax) jne 0x232e1 leaq 0x50(%rsp), %rdi leaq 0x20(%rsp), %rsi callq 0x53211 jmp 0x23329 leal 0x1(%r13), %ebp movq 0x8(%rbx,%r13,8), %rax movq %rax, 0x40(%rsp) jmp 0x23341 leal 0x1(%r13), %ebp movq 0x8(%rbx,%r13,8), %rdi callq 0x231ac movl 0x1c(%rsp), %esi movq %rax, 0x30(%rsp) jmp 0x23341 movq %rdx, %rdi leaq 0x48(%rsp), %rsi movl $0xa, %edx callq 0x212f0 movq 0x48(%rsp), %rcx testq %rcx, %rcx je 0x2347b cmpb $0x0, (%rcx) jne 0x2347b movq 0x30(%rsp), %rcx movq %rcx, 0x10(%rsp) movaps 0x20(%rsp), %xmm0 movups %xmm0, (%rsp) leaq 0x50(%rsp), %rdi movl %eax, %esi callq 0x525f1 movq 0x60(%rsp), %rax movq %rax, 0x30(%rsp) movups 0x50(%rsp), %xmm0 movaps %xmm0, 0x20(%rsp) movl 0x1c(%rsp), %esi incl %ebp cmpl %esi, %ebp jl 0x23253 movq 0x40(%rsp), %rdi testq %rdi, %rdi je 0x23377 leaq 0x5bdde(%rip), %rsi # 0x7f13a callq 0x21250 movl 0x20(%rsp), %edi movq 0x28(%rsp), %rsi movq %rax, %rdx movl $0x1, %ecx callq 0x514a7 movl 0x20(%rsp), %esi testl %esi, %esi setne %al andb %al, %r14b cmpb $0x1, %r14b jne 0x233e0 xorl %r13d, %r13d leaq 0x5bdaa(%rip), %rbx # 0x7f13d leaq 0x5bd7f(%rip), %r14 # 0x7f119 xorl %ebp, %ebp movq 0x9abe5(%rip), %rax # 0xbdf88 movq (%rax), %rdi addl %r13d, %esi cmpl $0x20, %esi movl $0x20, %eax cmovael %eax, %esi movq 0x28(%rsp), %rdx addq %rbp, %rdx movq %rbx, %rcx movq %r14, %r8 callq 0x510e8 addq $0x20, %rbp movl 0x20(%rsp), %esi addl $-0x20, %r13d cmpq %rsi, %rbp jb 0x2339c jmp 0x233e0 xorl %r15d, %r15d xorl %r12d, %r12d cmpq $0x0, 0x30(%rsp) je 0x2348e cmpq $0x0, 0x28(%rsp) je 0x2348e movq 0x9ab89(%rip), %r14 # 0xbdf88 movq (%r14), %rdi movq 0x30(%rsp), %rax movq %rax, 0x10(%rsp) movaps 0x20(%rsp), %xmm0 movups %xmm0, (%rsp) movzbl %r15b, %esi andl $0x1, %esi movl $0x1, %edx callq 0x52eca testb $0x1, %r12b je 0x2346a movq 0x30(%rsp), %rax movq %rax, 0x10(%rsp) movaps 0x20(%rsp), %xmm0 movups %xmm0, (%rsp) leaq 0x50(%rsp), %rbx movq %rbx, %rdi callq 0x53496 movq (%r14), %rdi leaq 0x5bcfb(%rip), %rcx # 0x7f151 leaq 0x5bcbc(%rip), %r8 # 0x7f119 movl $0x20, %esi movq %rbx, %rdx callq 0x510e8 xorl %eax, %eax addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rbx, %rdi movq %r13, %rsi callq 0x21464 movq %rbx, %rdi callq 0x214b1 callq 0x2148c nop
main: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 78h mov rbx, rsi cmp edi, 1 jz loc_23486 mov ebp, edi mov rdi, [rbx+8] call bytes_read mov dword ptr [rsp+0A8h+var_88], eax mov qword ptr [rsp+0A8h+var_88+8], rdx mov edi, eax mov rsi, rdx call c4_get_req_type_from_req mov [rsp+0A8h+var_78], rax cmp ebp, 3 jl loc_233DA mov esi, ebp mov ebp, 2 mov [rsp+0A8h+var_68], 0 xor r12d, r12d xor r15d, r15d xor r14d, r14d mov [rsp+0A8h+var_8C], esi loc_23253: movsxd r13, ebp mov rdx, [rbx+r13*8] cmp byte ptr [rdx], 2Dh ; '-' jnz short loc_23297 loc_2325F: inc rdx movzx eax, byte ptr [rdx] mov cl, 1 cmp eax, 68h ; 'h' jz short loc_23292 test eax, eax jz loc_23341 cmp eax, 6Eh ; 'n' setz cl or r15b, cl cmp eax, 73h ; 's' setz cl or r14b, cl cmp eax, 74h ; 't' jz short loc_232C8 cmp eax, 6Fh ; 'o' jnz short loc_2325F jmp short loc_232B8 loc_23292: mov r12d, ecx jmp short loc_2325F loc_23297: mov rax, [rsp+0A8h+var_78] test rax, rax jz short loc_232A7 cmp dword ptr [rax+8], 2 jnz short loc_232E1 loc_232A7: lea rdi, [rsp+0A8h+var_58] lea rsi, [rsp+0A8h+var_88] call ssz_get jmp short loc_23329 loc_232B8: lea ebp, [r13+1] mov rax, [rbx+r13*8+8] mov [rsp+0A8h+var_68], rax jmp short loc_23341 loc_232C8: lea ebp, [r13+1] mov rdi, [rbx+r13*8+8] call get_definition mov esi, [rsp+0A8h+var_8C] mov [rsp+0A8h+var_78], rax jmp short loc_23341 loc_232E1: mov rdi, rdx lea rsi, [rsp+0A8h+var_60] mov edx, 0Ah call _strtol mov rcx, [rsp+0A8h+var_60] test rcx, rcx jz loc_2347B cmp byte ptr [rcx], 0 jnz loc_2347B mov rcx, [rsp+0A8h+var_78] mov [rsp+0A8h+var_98], rcx movaps xmm0, [rsp+0A8h+var_88] movups [rsp+0A8h+var_A8], xmm0 lea rdi, [rsp+0A8h+var_58] mov esi, eax call ssz_at loc_23329: mov rax, [rsp+0A8h+var_48] mov [rsp+0A8h+var_78], rax movups xmm0, [rsp+0A8h+var_58] movaps [rsp+0A8h+var_88], xmm0 mov esi, [rsp+0A8h+var_8C] loc_23341: inc ebp cmp ebp, esi jl loc_23253 mov rdi, [rsp+0A8h+var_68] test rdi, rdi jz short loc_23377 lea rsi, aWb; "wb" call _fopen mov edi, dword ptr [rsp+0A8h+var_88] mov rsi, qword ptr [rsp+0A8h+var_88+8] mov rdx, rax mov ecx, 1 call bytes_write loc_23377: mov esi, dword ptr [rsp+0A8h+var_88] test esi, esi setnz al and r14b, al cmp r14b, 1 jnz short loc_233E0 xor r13d, r13d lea rbx, asc_7F13D; "# " lea r14, aUsageSTTypenam+0EBh; "\n" xor ebp, ebp loc_2339C: mov rax, cs:stdout_ptr mov rdi, [rax] add esi, r13d cmp esi, 20h ; ' ' mov eax, 20h ; ' ' cmovnb esi, eax mov rdx, qword ptr [rsp+0A8h+var_88+8] add rdx, rbp mov rcx, rbx mov r8, r14 call print_hex add rbp, 20h ; ' ' mov esi, dword ptr [rsp+0A8h+var_88] add r13d, 0FFFFFFE0h cmp rbp, rsi jb short loc_2339C jmp short loc_233E0 loc_233DA: xor r15d, r15d xor r12d, r12d loc_233E0: cmp [rsp+0A8h+var_78], 0 jz loc_2348E cmp qword ptr [rsp+0A8h+var_88+8], 0 jz loc_2348E mov r14, cs:stdout_ptr mov rdi, [r14] mov rax, [rsp+0A8h+var_78] mov [rsp+0A8h+var_98], rax movaps xmm0, [rsp+0A8h+var_88] movups [rsp+0A8h+var_A8], xmm0 movzx esi, r15b and esi, 1 mov edx, 1 call ssz_dump_to_file test r12b, 1 jz short loc_2346A mov rax, [rsp+0A8h+var_78] mov [rsp+0A8h+var_98], rax movaps xmm0, [rsp+0A8h+var_88] movups [rsp+0A8h+var_A8], xmm0 lea rbx, [rsp+0A8h+var_58] mov rdi, rbx call ssz_hash_tree_root mov rdi, [r14] lea rcx, aTreeHashRoot0x; "\ntree_hash_root: 0x" lea r8, aUsageSTTypenam+0EBh; "\n" mov esi, 20h ; ' ' mov rdx, rbx call print_hex loc_2346A: xor eax, eax add rsp, 78h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_2347B: mov rdi, rbx mov rsi, r13 call main_cold_1 loc_23486: mov rdi, rbx call main_cold_3 loc_2348E: call main_cold_2
int main(int argc, const char **argv, const char **envp) { long long v5; // rdx const char *v6; // rdi long long v7; // rsi const char *v8; // rdx long long v9; // rcx int v10; // r8d int v11; // r9d int v12; // esi int v13; // ebp char v14; // r12 char v15; // r15 unsigned __int8 v16; // r14 long long v17; // r13 int v18; // eax int v19; // eax int v20; // edx int v21; // r8d int v22; // r9d long long v23; // rax int v24; // r13d unsigned long long v25; // rbp long long v26; // rsi long long v27; // rsi long long v28; // rdx long long v29; // rcx long long v30; // r8 long long v31; // r9 int v33; // [rsp+1Ch] [rbp-8Ch] __int128 v34; // [rsp+20h] [rbp-88h] BYREF long long req_type_from_req; // [rsp+30h] [rbp-78h] const char *v36; // [rsp+40h] [rbp-68h] _BYTE *v37; // [rsp+48h] [rbp-60h] BYREF __int128 v38; // [rsp+50h] [rbp-58h] BYREF long long v39; // [rsp+60h] [rbp-48h] if ( argc == 1 ) main_cold_3(argv); LODWORD(v34) = bytes_read(argv[1], argv, envp); *((_QWORD *)&v34 + 1) = v5; v6 = (const char *)(unsigned int)v34; v7 = v5; req_type_from_req = c4_get_req_type_from_req((unsigned int)v34, v5); if ( argc < 3 ) { v15 = 0; v14 = 0; } else { v12 = argc; v13 = 2; v36 = 0LL; v14 = 0; v15 = 0; v16 = 0; v33 = v12; do { v17 = v13; v8 = argv[v13]; if ( *v8 == 45 ) { while ( 1 ) { while ( 1 ) { v18 = *(unsigned __int8 *)++v8; LOBYTE(v9) = 1; if ( v18 != 104 ) break; v14 = 1; } if ( !*v8 ) break; v15 |= v18 == 110; LOBYTE(v9) = v18 == 115; v16 |= v18 == 115; if ( v18 == 116 ) { ++v13; v12 = v33; req_type_from_req = get_definition(argv[v17 + 1]); break; } if ( v18 == 111 ) { ++v13; v36 = argv[v17 + 1]; break; } } } else { if ( req_type_from_req && *(_DWORD *)(req_type_from_req + 8) != 2 ) { v19 = strtol(argv[v13], &v37, 10LL); if ( !v37 || *v37 ) main_cold_1((long long)argv, v13); ssz_at( (unsigned int)&v38, v19, v20, req_type_from_req, v21, v22, v34, *((long long *)&v34 + 1), req_type_from_req); } else { ssz_get(&v38, &v34); } req_type_from_req = v39; v34 = v38; v12 = v33; } ++v13; } while ( v13 < v12 ); v6 = v36; if ( v36 ) { v23 = fopen(v36, "wb", v8, v9); v6 = (const char *)(unsigned int)v34; bytes_write((unsigned int)v34, *((_QWORD *)&v34 + 1), v23, 1LL); } v7 = (unsigned int)v34; if ( (((_DWORD)v34 != 0) & v16) == 1 ) { v24 = 0; v25 = 0LL; do { v6 = (const char *)stdout; v26 = (unsigned int)(v24 + v7); if ( (unsigned int)v26 >= 0x20 ) v26 = 32LL; print_hex(stdout, v26, v25 + *((_QWORD *)&v34 + 1), "# ", "\n"); v25 += 32LL; v7 = (unsigned int)v34; v24 -= 32; } while ( v25 < (unsigned int)v34 ); } } if ( !req_type_from_req || !*((_QWORD *)&v34 + 1) ) main_cold_2(v6, v7, v8, v9); v27 = v15 & 1; ssz_dump_to_file(stdout, v27, 1, v9, v10, v11, v34, req_type_from_req); if ( (v14 & 1) != 0 ) { ssz_hash_tree_root(&v38, v27, v28, v29, v30, v31, v34, *((_QWORD *)&v34 + 1), req_type_from_req); print_hex(stdout, 32LL, &v38, "\ntree_hash_root: 0x", "\n"); } return 0; }
main: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x78 MOV RBX,RSI CMP EDI,0x1 JZ 0x00123486 MOV EBP,EDI MOV RDI,qword ptr [RBX + 0x8] CALL 0x001514fb MOV dword ptr [RSP + 0x20],EAX MOV qword ptr [RSP + 0x28],RDX MOV EDI,EAX MOV RSI,RDX CALL 0x0012372c MOV qword ptr [RSP + 0x30],RAX CMP EBP,0x3 JL 0x001233da MOV ESI,EBP MOV EBP,0x2 MOV qword ptr [RSP + 0x40],0x0 XOR R12D,R12D XOR R15D,R15D XOR R14D,R14D MOV dword ptr [RSP + 0x1c],ESI LAB_00123253: MOVSXD R13,EBP MOV RDX,qword ptr [RBX + R13*0x8] CMP byte ptr [RDX],0x2d JNZ 0x00123297 LAB_0012325f: INC RDX MOVZX EAX,byte ptr [RDX] MOV CL,0x1 CMP EAX,0x68 JZ 0x00123292 TEST EAX,EAX JZ 0x00123341 CMP EAX,0x6e SETZ CL OR R15B,CL CMP EAX,0x73 SETZ CL OR R14B,CL CMP EAX,0x74 JZ 0x001232c8 CMP EAX,0x6f JNZ 0x0012325f JMP 0x001232b8 LAB_00123292: MOV R12D,ECX JMP 0x0012325f LAB_00123297: MOV RAX,qword ptr [RSP + 0x30] TEST RAX,RAX JZ 0x001232a7 CMP dword ptr [RAX + 0x8],0x2 JNZ 0x001232e1 LAB_001232a7: LEA RDI,[RSP + 0x50] LEA RSI,[RSP + 0x20] CALL 0x00153211 JMP 0x00123329 LAB_001232b8: LEA EBP,[R13 + 0x1] MOV RAX,qword ptr [RBX + R13*0x8 + 0x8] MOV qword ptr [RSP + 0x40],RAX JMP 0x00123341 LAB_001232c8: LEA EBP,[R13 + 0x1] MOV RDI,qword ptr [RBX + R13*0x8 + 0x8] CALL 0x001231ac MOV ESI,dword ptr [RSP + 0x1c] MOV qword ptr [RSP + 0x30],RAX JMP 0x00123341 LAB_001232e1: MOV RDI,RDX LEA RSI,[RSP + 0x48] MOV EDX,0xa CALL 0x001212f0 MOV RCX,qword ptr [RSP + 0x48] TEST RCX,RCX JZ 0x0012347b CMP byte ptr [RCX],0x0 JNZ 0x0012347b MOV RCX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x10],RCX MOVAPS XMM0,xmmword ptr [RSP + 0x20] MOVUPS xmmword ptr [RSP],XMM0 LEA RDI,[RSP + 0x50] MOV ESI,EAX CALL 0x001525f1 LAB_00123329: MOV RAX,qword ptr [RSP + 0x60] MOV qword ptr [RSP + 0x30],RAX MOVUPS XMM0,xmmword ptr [RSP + 0x50] MOVAPS xmmword ptr [RSP + 0x20],XMM0 MOV ESI,dword ptr [RSP + 0x1c] LAB_00123341: INC EBP CMP EBP,ESI JL 0x00123253 MOV RDI,qword ptr [RSP + 0x40] TEST RDI,RDI JZ 0x00123377 LEA RSI,[0x17f13a] CALL 0x00121250 MOV EDI,dword ptr [RSP + 0x20] MOV RSI,qword ptr [RSP + 0x28] MOV RDX,RAX MOV ECX,0x1 CALL 0x001514a7 LAB_00123377: MOV ESI,dword ptr [RSP + 0x20] TEST ESI,ESI SETNZ AL AND R14B,AL CMP R14B,0x1 JNZ 0x001233e0 XOR R13D,R13D LEA RBX,[0x17f13d] LEA R14,[0x17f119] XOR EBP,EBP LAB_0012339c: MOV RAX,qword ptr [0x001bdf88] MOV RDI,qword ptr [RAX] ADD ESI,R13D CMP ESI,0x20 MOV EAX,0x20 CMOVNC ESI,EAX MOV RDX,qword ptr [RSP + 0x28] ADD RDX,RBP MOV RCX,RBX MOV R8,R14 CALL 0x001510e8 ADD RBP,0x20 MOV ESI,dword ptr [RSP + 0x20] ADD R13D,-0x20 CMP RBP,RSI JC 0x0012339c JMP 0x001233e0 LAB_001233da: XOR R15D,R15D XOR R12D,R12D LAB_001233e0: CMP qword ptr [RSP + 0x30],0x0 JZ 0x0012348e CMP qword ptr [RSP + 0x28],0x0 JZ 0x0012348e MOV R14,qword ptr [0x001bdf88] MOV RDI,qword ptr [R14] MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x10],RAX MOVAPS XMM0,xmmword ptr [RSP + 0x20] MOVUPS xmmword ptr [RSP],XMM0 MOVZX ESI,R15B AND ESI,0x1 MOV EDX,0x1 CALL 0x00152eca TEST R12B,0x1 JZ 0x0012346a MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x10],RAX MOVAPS XMM0,xmmword ptr [RSP + 0x20] MOVUPS xmmword ptr [RSP],XMM0 LEA RBX,[RSP + 0x50] MOV RDI,RBX CALL 0x00153496 MOV RDI,qword ptr [R14] LEA RCX,[0x17f151] LEA R8,[0x17f119] MOV ESI,0x20 MOV RDX,RBX CALL 0x001510e8 LAB_0012346a: XOR EAX,EAX ADD RSP,0x78 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0012347b: MOV RDI,RBX MOV RSI,R13 CALL 0x00121464 LAB_00123486: MOV RDI,RBX CALL 0x001214b1 LAB_0012348e: CALL 0x0012148c NOP
int8 main(int param_1,char *param_2) { char cVar1; int *puVar2; uint uVar3; ulong uVar4; FILE *pFVar5; char *extraout_RDX; char *pcVar6; int iVar7; int8 uVar8; int8 in_R9; bool bVar9; char *pcVar10; byte bVar11; long lVar12; byte bVar13; int4 uVar14; uint local_88; int4 uStack_84; int8 uStack_80; long local_78; char *local_68; char *local_60; uint local_58; int4 uStack_54; int4 uStack_50; int4 uStack_4c; long local_48; pcVar10 = param_2; if (param_1 == 1) { LAB_00123486: main_cold_3(); uVar3 = (uint)param_2; } else { uVar3 = bytes_read(*(int8 *)(param_2 + 8)); pcVar10 = extraout_RDX; local_88 = uVar3; uStack_80 = extraout_RDX; local_78 = c4_get_req_type_from_req(); if (param_1 < 3) { bVar13 = 0; bVar9 = false; } else { iVar7 = 2; local_68 = (char *)0x0; bVar9 = false; bVar13 = 0; bVar11 = 0; do { pcVar10 = (char *)(long)iVar7; pcVar6 = *(char **)(param_2 + (long)pcVar10 * 8); if (*pcVar6 == '-') { do { while( true ) { pcVar6 = pcVar6 + 1; cVar1 = *pcVar6; if (cVar1 != 'h') break; bVar9 = true; } if (cVar1 == '\0') goto LAB_00123341; bVar13 = bVar13 | cVar1 == 'n'; bVar11 = bVar11 | cVar1 == 's'; if (cVar1 == 't') { iVar7 = iVar7 + 1; local_78 = get_definition(*(int8 *)(param_2 + (long)pcVar10 * 8 + 8)); goto LAB_00123341; } } while (cVar1 != 'o'); iVar7 = iVar7 + 1; local_68 = *(char **)(param_2 + (long)pcVar10 * 8 + 8); } else { if ((local_78 == 0) || (*(int *)(local_78 + 8) == 2)) { ssz_get(&local_58,&local_88); } else { uVar4 = strtol(pcVar6,&local_60,10); if ((local_60 == (char *)0x0) || (*local_60 != '\0')) { main_cold_1(param_2); goto LAB_00123486; } ssz_at(&local_58,uVar4 & 0xffffffff); } local_78 = local_48; local_88 = local_58; uStack_84 = uStack_54; uStack_80 = (char *)CONCAT44(uStack_4c,uStack_50); } LAB_00123341: iVar7 = iVar7 + 1; } while (iVar7 < param_1); pcVar10 = local_68; if (local_68 != (char *)0x0) { pFVar5 = fopen(local_68,"wb"); pcVar10 = (char *)(ulong)local_88; bytes_write(pcVar10,uStack_80,pFVar5,1); } uVar3 = (uint)pcVar10; pcVar10 = (char *)(ulong)local_88; if ((bool)(bVar11 & local_88 != 0)) { iVar7 = 0; pcVar6 = (char *)0x0; do { uVar8 = *(int8 *)PTR_stdout_001bdf88; uVar3 = (int)pcVar10 + iVar7; if (0x1f < uVar3) { uVar3 = 0x20; } print_hex(uVar8,uVar3,uStack_80 + (long)pcVar6,&DAT_0017f13d,"\n"); uVar3 = (uint)uVar8; pcVar6 = pcVar6 + 0x20; pcVar10 = (char *)(ulong)local_88; iVar7 = iVar7 + -0x20; } while (pcVar6 < pcVar10); } } puVar2 = PTR_stdout_001bdf88; if ((local_78 != 0) && (uStack_80 != (char *)0x0)) { ssz_dump_to_file(*(int8 *)PTR_stdout_001bdf88,bVar13,1); if (bVar9) { uVar3 = local_88; uVar14 = (int4)uStack_80; lVar12 = local_78; ssz_hash_tree_root(&local_58); print_hex(*(int8 *)puVar2,0x20,&local_58,"\ntree_hash_root: 0x","\n",in_R9,uVar3, uVar14,lVar12); } return 0; } } main_cold_2(); if (uVar3 != 1) { return 0; } lVar12 = 0; do { iVar7 = strcmp(pcVar10,(char *)((long)&proofable_methods_rel + (long)*(int *)((long)&proofable_methods_rel + lVar12))); if (iVar7 == 0) { return 1; } lVar12 = lVar12 + 4; } while (lVar12 != 0x34); lVar12 = 0; do { iVar7 = strcmp(pcVar10,(char *)((long)&local_methods_rel + (long)*(int *)((long)&local_methods_rel + lVar12))); if (iVar7 == 0) { return 4; } lVar12 = lVar12 + 4; } while (lVar12 != 0x14); lVar12 = 0; do { iVar7 = strcmp(pcVar10,(char *)((long)&not_verifieable_yet_methods_rel + (long)*(int *)((long)&not_verifieable_yet_methods_rel + lVar12))) ; if (iVar7 == 0) { return 2; } lVar12 = lVar12 + 4; } while (lVar12 != 100); return 0; }
31,041
Elevetor::checkout()
LeafBlue[P]myElevetor/elevetor.cpp
int Elevetor::checkout() { if(direct == 1){ if(up_out->size()>0){ //检查是否存在一个值等于当前楼层+1,如果存在立刻添加并修改目的地 if(up_out->contains(nowstair + 1)){ up_out->erase( std::remove(up_out->begin(),up_out->end(),nowstair + 1), up_out->end() ); action_list.push_back(nowstair + 1); std::sort(action_list.begin(),action_list.end()); endstair = nowstair + 1; return 1; } } }else if(direct == 2){ if(down_out->size()>0){ //检查是否存在一个值等于当前楼层-1,如果存在立刻添加并修改目的地 if(down_out->contains(nowstair - 1)){ down_out->erase( std::remove(down_out->begin(),down_out->end(),nowstair - 1), down_out->end() ); action_list.push_back(nowstair - 1); std::sort(action_list.begin(),action_list.end()); endstair = nowstair - 1; return 1; } } } return 0; }
O0
cpp
Elevetor::checkout(): pushq %rbp movq %rsp, %rbp subq $0xe0, %rsp movq %rdi, -0x10(%rbp) movq -0x10(%rbp), %rax movq %rax, -0xc8(%rbp) cmpl $0x1, 0x48(%rax) jne 0x11eec movq -0xc8(%rbp), %rax movq 0x10(%rax), %rdi callq 0x12da0 cmpq $0x0, %rax jle 0x11ee7 movq -0xc8(%rbp), %rax movq 0x10(%rax), %rdi movl 0x40(%rax), %eax addl $0x1, %eax movl %eax, -0x14(%rbp) leaq -0x14(%rbp), %rsi callq 0x12dc0 testb $0x1, %al jne 0x11dd4 jmp 0x11ee5 movq -0xc8(%rbp), %rax movq 0x10(%rax), %rcx movq %rcx, -0xd0(%rbp) movq 0x10(%rax), %rdi callq 0x12f00 movq %rax, %rcx movq -0xc8(%rbp), %rax movq %rcx, -0x30(%rbp) movq 0x10(%rax), %rdi callq 0x12f40 movq %rax, %rcx movq -0xc8(%rbp), %rax movq %rcx, -0x38(%rbp) movl 0x40(%rax), %eax addl $0x1, %eax movl %eax, -0x3c(%rbp) movq -0x30(%rbp), %rdi movq -0x38(%rbp), %rsi leaq -0x3c(%rbp), %rdx callq 0x12eb0 movq %rax, -0x28(%rbp) movq -0x28(%rbp), %rsi leaq -0x20(%rbp), %rdi callq 0x12f80 movq -0xc8(%rbp), %rax movq 0x10(%rax), %rdi callq 0x12f40 movq %rax, -0x50(%rbp) movq -0x50(%rbp), %rsi leaq -0x48(%rbp), %rdi callq 0x12f80 movq -0xd0(%rbp), %rdi movq -0x20(%rbp), %rsi movq -0x48(%rbp), %rdx callq 0x12e10 movq %rax, %rcx movq -0xc8(%rbp), %rax movq %rcx, -0x58(%rbp) movq %rax, %rdi addq $0x68, %rdi movl 0x40(%rax), %esi addl $0x1, %esi callq 0x12fc0 movq -0xc8(%rbp), %rdi addq $0x68, %rdi callq 0x12f00 movq -0xc8(%rbp), %rdi movq %rax, -0x60(%rbp) addq $0x68, %rdi callq 0x12f40 movq %rax, -0x68(%rbp) movq -0x60(%rbp), %rdi movq -0x68(%rbp), %rsi callq 0x12ff0 movq -0xc8(%rbp), %rax movl 0x40(%rax), %ecx addl $0x1, %ecx movl %ecx, 0x44(%rax) movl $0x1, -0x4(%rbp) jmp 0x12085 jmp 0x11ee7 jmp 0x1207e movq -0xc8(%rbp), %rax cmpl $0x2, 0x48(%rax) jne 0x1207c movq -0xc8(%rbp), %rax movq 0x18(%rax), %rdi callq 0x12da0 cmpq $0x0, %rax jle 0x1207a movq -0xc8(%rbp), %rax movq 0x18(%rax), %rdi movl 0x40(%rax), %eax subl $0x1, %eax movl %eax, -0x6c(%rbp) leaq -0x6c(%rbp), %rsi callq 0x12dc0 testb $0x1, %al jne 0x11f3d jmp 0x12078 movq -0xc8(%rbp), %rax movq 0x18(%rax), %rcx movq %rcx, -0xd8(%rbp) movq 0x18(%rax), %rdi callq 0x12f00 movq %rax, %rcx movq -0xc8(%rbp), %rax movq %rcx, -0x88(%rbp) movq 0x18(%rax), %rdi callq 0x12f40 movq %rax, %rcx movq -0xc8(%rbp), %rax movq %rcx, -0x90(%rbp) movl 0x40(%rax), %eax subl $0x1, %eax movl %eax, -0x94(%rbp) movq -0x88(%rbp), %rdi movq -0x90(%rbp), %rsi leaq -0x94(%rbp), %rdx callq 0x12eb0 movq %rax, -0x80(%rbp) movq -0x80(%rbp), %rsi leaq -0x78(%rbp), %rdi callq 0x12f80 movq -0xc8(%rbp), %rax movq 0x18(%rax), %rdi callq 0x12f40 movq %rax, -0xa8(%rbp) movq -0xa8(%rbp), %rsi leaq -0xa0(%rbp), %rdi callq 0x12f80 movq -0xd8(%rbp), %rdi movq -0x78(%rbp), %rsi movq -0xa0(%rbp), %rdx callq 0x12e10 movq %rax, %rcx movq -0xc8(%rbp), %rax movq %rcx, -0xb0(%rbp) movq %rax, %rdi addq $0x68, %rdi movl 0x40(%rax), %esi subl $0x1, %esi callq 0x12fc0 movq -0xc8(%rbp), %rdi addq $0x68, %rdi callq 0x12f00 movq -0xc8(%rbp), %rdi movq %rax, -0xb8(%rbp) addq $0x68, %rdi callq 0x12f40 movq %rax, -0xc0(%rbp) movq -0xb8(%rbp), %rdi movq -0xc0(%rbp), %rsi callq 0x12ff0 movq -0xc8(%rbp), %rax movl 0x40(%rax), %ecx subl $0x1, %ecx movl %ecx, 0x44(%rax) movl $0x1, -0x4(%rbp) jmp 0x12085 jmp 0x1207a jmp 0x1207c jmp 0x1207e movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0xe0, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ZN8Elevetor8checkoutEv: push rbp mov rbp, rsp sub rsp, 0E0h mov [rbp+var_10], rdi mov rax, [rbp+var_10] mov [rbp+var_C8], rax cmp dword ptr [rax+48h], 1 jnz loc_11EEC mov rax, [rbp+var_C8] mov rdi, [rax+10h] call _ZNK5QListIiE4sizeEv; QList<int>::size(void) cmp rax, 0 jle loc_11EE7 mov rax, [rbp+var_C8] mov rdi, [rax+10h] mov eax, [rax+40h] add eax, 1 mov [rbp+var_14], eax lea rsi, [rbp+var_14] call _ZNK23QListSpecialMethodsBaseIiE8containsIiEEbRKT_; QListSpecialMethodsBase<int>::contains<int>(int const&) test al, 1 jnz short loc_11DD4 jmp loc_11EE5 loc_11DD4: mov rax, [rbp+var_C8] mov rcx, [rax+10h] mov [rbp+var_D0], rcx mov rdi, [rax+10h] call _ZN5QListIiE5beginEv; QList<int>::begin(void) mov rcx, rax mov rax, [rbp+var_C8] mov [rbp+var_30], rcx mov rdi, [rax+10h] call _ZN5QListIiE3endEv; QList<int>::end(void) mov rcx, rax mov rax, [rbp+var_C8] mov [rbp+var_38], rcx mov eax, [rax+40h] add eax, 1 mov [rbp+var_3C], eax mov rdi, [rbp+var_30] mov rsi, [rbp+var_38] lea rdx, [rbp+var_3C] call _ZSt6removeIN5QListIiE8iteratorEiET_S3_S3_RKT0_; std::remove<QList<int>::iterator,int>(QList<int>::iterator,QList<int>::iterator,int const&) mov [rbp+var_28], rax mov rsi, [rbp+var_28] lea rdi, [rbp+var_20] call _ZN5QListIiE14const_iteratorC2ENS0_8iteratorE; QList<int>::const_iterator::const_iterator(QList<int>::iterator) mov rax, [rbp+var_C8] mov rdi, [rax+10h] call _ZN5QListIiE3endEv; QList<int>::end(void) mov [rbp+var_50], rax mov rsi, [rbp+var_50] lea rdi, [rbp+var_48] call _ZN5QListIiE14const_iteratorC2ENS0_8iteratorE; QList<int>::const_iterator::const_iterator(QList<int>::iterator) mov rdi, [rbp+var_D0] mov rsi, [rbp+var_20] mov rdx, [rbp+var_48] call _ZN5QListIiE5eraseENS0_14const_iteratorES1_; QList<int>::erase(QList<int>::const_iterator,QList<int>::const_iterator) mov rcx, rax mov rax, [rbp+var_C8] mov [rbp+var_58], rcx mov rdi, rax add rdi, 68h ; 'h' mov esi, [rax+40h] add esi, 1 call _ZN5QListIiE9push_backEi; QList<int>::push_back(int) mov rdi, [rbp+var_C8] add rdi, 68h ; 'h' call _ZN5QListIiE5beginEv; QList<int>::begin(void) mov rdi, [rbp+var_C8] mov [rbp+var_60], rax add rdi, 68h ; 'h' call _ZN5QListIiE3endEv; QList<int>::end(void) mov [rbp+var_68], rax mov rdi, [rbp+var_60] mov rsi, [rbp+var_68] call _ZSt4sortIN5QListIiE8iteratorEEvT_S3_; std::sort<QList<int>::iterator>(QList<int>::iterator,QList<int>::iterator) mov rax, [rbp+var_C8] mov ecx, [rax+40h] add ecx, 1 mov [rax+44h], ecx mov [rbp+var_4], 1 jmp loc_12085 loc_11EE5: jmp short $+2 loc_11EE7: jmp loc_1207E loc_11EEC: mov rax, [rbp+var_C8] cmp dword ptr [rax+48h], 2 jnz loc_1207C mov rax, [rbp+var_C8] mov rdi, [rax+18h] call _ZNK5QListIiE4sizeEv; QList<int>::size(void) cmp rax, 0 jle loc_1207A mov rax, [rbp+var_C8] mov rdi, [rax+18h] mov eax, [rax+40h] sub eax, 1 mov [rbp+var_6C], eax lea rsi, [rbp+var_6C] call _ZNK23QListSpecialMethodsBaseIiE8containsIiEEbRKT_; QListSpecialMethodsBase<int>::contains<int>(int const&) test al, 1 jnz short loc_11F3D jmp loc_12078 loc_11F3D: mov rax, [rbp+var_C8] mov rcx, [rax+18h] mov [rbp+var_D8], rcx mov rdi, [rax+18h] call _ZN5QListIiE5beginEv; QList<int>::begin(void) mov rcx, rax mov rax, [rbp+var_C8] mov [rbp+var_88], rcx mov rdi, [rax+18h] call _ZN5QListIiE3endEv; QList<int>::end(void) mov rcx, rax mov rax, [rbp+var_C8] mov [rbp+var_90], rcx mov eax, [rax+40h] sub eax, 1 mov [rbp+var_94], eax mov rdi, [rbp+var_88] mov rsi, [rbp+var_90] lea rdx, [rbp+var_94] call _ZSt6removeIN5QListIiE8iteratorEiET_S3_S3_RKT0_; std::remove<QList<int>::iterator,int>(QList<int>::iterator,QList<int>::iterator,int const&) mov [rbp+var_80], rax mov rsi, [rbp+var_80] lea rdi, [rbp+var_78] call _ZN5QListIiE14const_iteratorC2ENS0_8iteratorE; QList<int>::const_iterator::const_iterator(QList<int>::iterator) mov rax, [rbp+var_C8] mov rdi, [rax+18h] call _ZN5QListIiE3endEv; QList<int>::end(void) mov [rbp+var_A8], rax mov rsi, [rbp+var_A8] lea rdi, [rbp+var_A0] call _ZN5QListIiE14const_iteratorC2ENS0_8iteratorE; QList<int>::const_iterator::const_iterator(QList<int>::iterator) mov rdi, [rbp+var_D8] mov rsi, [rbp+var_78] mov rdx, [rbp+var_A0] call _ZN5QListIiE5eraseENS0_14const_iteratorES1_; QList<int>::erase(QList<int>::const_iterator,QList<int>::const_iterator) mov rcx, rax mov rax, [rbp+var_C8] mov [rbp+var_B0], rcx mov rdi, rax add rdi, 68h ; 'h' mov esi, [rax+40h] sub esi, 1 call _ZN5QListIiE9push_backEi; QList<int>::push_back(int) mov rdi, [rbp+var_C8] add rdi, 68h ; 'h' call _ZN5QListIiE5beginEv; QList<int>::begin(void) mov rdi, [rbp+var_C8] mov [rbp+var_B8], rax add rdi, 68h ; 'h' call _ZN5QListIiE3endEv; QList<int>::end(void) mov [rbp+var_C0], rax mov rdi, [rbp+var_B8] mov rsi, [rbp+var_C0] call _ZSt4sortIN5QListIiE8iteratorEEvT_S3_; std::sort<QList<int>::iterator>(QList<int>::iterator,QList<int>::iterator) mov rax, [rbp+var_C8] mov ecx, [rax+40h] sub ecx, 1 mov [rax+44h], ecx mov [rbp+var_4], 1 jmp short loc_12085 loc_12078: jmp short $+2 loc_1207A: jmp short $+2 loc_1207C: jmp short $+2 loc_1207E: mov [rbp+var_4], 0 loc_12085: mov eax, [rbp+var_4] add rsp, 0E0h pop rbp retn
long long Elevetor::checkout(Elevetor *this) { long long v1; // rdi long long v2; // rdi long long v4; // [rsp+8h] [rbp-D8h] long long v5; // [rsp+10h] [rbp-D0h] long long v7; // [rsp+20h] [rbp-C0h] long long v8; // [rsp+28h] [rbp-B8h] long long v9; // [rsp+38h] [rbp-A8h] long long v10; // [rsp+40h] [rbp-A0h] BYREF int v11; // [rsp+4Ch] [rbp-94h] BYREF long long v12; // [rsp+50h] [rbp-90h] long long v13; // [rsp+58h] [rbp-88h] long long v14; // [rsp+60h] [rbp-80h] long long v15; // [rsp+68h] [rbp-78h] BYREF int v16; // [rsp+74h] [rbp-6Ch] BYREF long long v17; // [rsp+78h] [rbp-68h] long long v18; // [rsp+80h] [rbp-60h] long long v19; // [rsp+88h] [rbp-58h] long long v20; // [rsp+90h] [rbp-50h] long long v21; // [rsp+98h] [rbp-48h] BYREF int v22; // [rsp+A4h] [rbp-3Ch] BYREF long long v23; // [rsp+A8h] [rbp-38h] long long v24; // [rsp+B0h] [rbp-30h] long long v25; // [rsp+B8h] [rbp-28h] long long v26; // [rsp+C0h] [rbp-20h] BYREF int v27; // [rsp+CCh] [rbp-14h] BYREF Elevetor *v28; // [rsp+D0h] [rbp-10h] v28 = this; if ( *((_DWORD *)this + 18) != 1 ) { if ( *((_DWORD *)this + 18) == 2 && QList<int>::size(*((_QWORD *)this + 3)) > 0 ) { v2 = *((_QWORD *)this + 3); v16 = *((_DWORD *)this + 16) - 1; if ( (QListSpecialMethodsBase<int>::contains<int>(v2, &v16) & 1) != 0 ) { v4 = *((_QWORD *)this + 3); v13 = QList<int>::begin(v4); v12 = QList<int>::end(*((_QWORD *)this + 3)); v11 = *((_DWORD *)this + 16) - 1; v14 = std::remove<QList<int>::iterator,int>(v13, v12, &v11); QList<int>::const_iterator::const_iterator(&v15, v14); v9 = QList<int>::end(*((_QWORD *)this + 3)); QList<int>::const_iterator::const_iterator(&v10, v9); QList<int>::erase(v4, v15, v10); QList<int>::push_back((char *)this + 104, (unsigned int)(*((_DWORD *)this + 16) - 1)); v8 = QList<int>::begin((char *)this + 104); v7 = QList<int>::end((char *)this + 104); std::sort<QList<int>::iterator>(v8, v7); *((_DWORD *)this + 17) = *((_DWORD *)this + 16) - 1; return 1; } } return 0; } if ( QList<int>::size(*((_QWORD *)this + 2)) <= 0 ) return 0; v1 = *((_QWORD *)this + 2); v27 = *((_DWORD *)this + 16) + 1; if ( (QListSpecialMethodsBase<int>::contains<int>(v1, &v27) & 1) == 0 ) return 0; v5 = *((_QWORD *)this + 2); v24 = QList<int>::begin(v5); v23 = QList<int>::end(*((_QWORD *)this + 2)); v22 = *((_DWORD *)this + 16) + 1; v25 = std::remove<QList<int>::iterator,int>(v24, v23, &v22); QList<int>::const_iterator::const_iterator(&v26, v25); v20 = QList<int>::end(*((_QWORD *)this + 2)); QList<int>::const_iterator::const_iterator(&v21, v20); v19 = QList<int>::erase(v5, v26, v21); QList<int>::push_back((char *)this + 104, (unsigned int)(*((_DWORD *)this + 16) + 1)); v18 = QList<int>::begin((char *)this + 104); v17 = QList<int>::end((char *)this + 104); std::sort<QList<int>::iterator>(v18, v17); *((_DWORD *)this + 17) = *((_DWORD *)this + 16) + 1; return 1; }
checkout: PUSH RBP MOV RBP,RSP SUB RSP,0xe0 MOV qword ptr [RBP + -0x10],RDI MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0xc8],RAX CMP dword ptr [RAX + 0x48],0x1 JNZ 0x00111eec MOV RAX,qword ptr [RBP + -0xc8] MOV RDI,qword ptr [RAX + 0x10] CALL 0x00112da0 CMP RAX,0x0 JLE 0x00111ee7 MOV RAX,qword ptr [RBP + -0xc8] MOV RDI,qword ptr [RAX + 0x10] MOV EAX,dword ptr [RAX + 0x40] ADD EAX,0x1 MOV dword ptr [RBP + -0x14],EAX LEA RSI,[RBP + -0x14] CALL 0x00112dc0 TEST AL,0x1 JNZ 0x00111dd4 JMP 0x00111ee5 LAB_00111dd4: MOV RAX,qword ptr [RBP + -0xc8] MOV RCX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0xd0],RCX MOV RDI,qword ptr [RAX + 0x10] CALL 0x00112f00 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0xc8] MOV qword ptr [RBP + -0x30],RCX MOV RDI,qword ptr [RAX + 0x10] CALL 0x00112f40 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0xc8] MOV qword ptr [RBP + -0x38],RCX MOV EAX,dword ptr [RAX + 0x40] ADD EAX,0x1 MOV dword ptr [RBP + -0x3c],EAX MOV RDI,qword ptr [RBP + -0x30] MOV RSI,qword ptr [RBP + -0x38] LEA RDX,[RBP + -0x3c] CALL 0x00112eb0 MOV qword ptr [RBP + -0x28],RAX MOV RSI,qword ptr [RBP + -0x28] LEA RDI,[RBP + -0x20] CALL 0x00112f80 MOV RAX,qword ptr [RBP + -0xc8] MOV RDI,qword ptr [RAX + 0x10] CALL 0x00112f40 MOV qword ptr [RBP + -0x50],RAX MOV RSI,qword ptr [RBP + -0x50] LEA RDI,[RBP + -0x48] CALL 0x00112f80 MOV RDI,qword ptr [RBP + -0xd0] MOV RSI,qword ptr [RBP + -0x20] MOV RDX,qword ptr [RBP + -0x48] CALL 0x00112e10 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0xc8] MOV qword ptr [RBP + -0x58],RCX MOV RDI,RAX ADD RDI,0x68 MOV ESI,dword ptr [RAX + 0x40] ADD ESI,0x1 CALL 0x00112fc0 MOV RDI,qword ptr [RBP + -0xc8] ADD RDI,0x68 CALL 0x00112f00 MOV RDI,qword ptr [RBP + -0xc8] MOV qword ptr [RBP + -0x60],RAX ADD RDI,0x68 CALL 0x00112f40 MOV qword ptr [RBP + -0x68],RAX MOV RDI,qword ptr [RBP + -0x60] MOV RSI,qword ptr [RBP + -0x68] CALL 0x00112ff0 MOV RAX,qword ptr [RBP + -0xc8] MOV ECX,dword ptr [RAX + 0x40] ADD ECX,0x1 MOV dword ptr [RAX + 0x44],ECX MOV dword ptr [RBP + -0x4],0x1 JMP 0x00112085 LAB_00111ee5: JMP 0x00111ee7 LAB_00111ee7: JMP 0x0011207e LAB_00111eec: MOV RAX,qword ptr [RBP + -0xc8] CMP dword ptr [RAX + 0x48],0x2 JNZ 0x0011207c MOV RAX,qword ptr [RBP + -0xc8] MOV RDI,qword ptr [RAX + 0x18] CALL 0x00112da0 CMP RAX,0x0 JLE 0x0011207a MOV RAX,qword ptr [RBP + -0xc8] MOV RDI,qword ptr [RAX + 0x18] MOV EAX,dword ptr [RAX + 0x40] SUB EAX,0x1 MOV dword ptr [RBP + -0x6c],EAX LEA RSI,[RBP + -0x6c] CALL 0x00112dc0 TEST AL,0x1 JNZ 0x00111f3d JMP 0x00112078 LAB_00111f3d: MOV RAX,qword ptr [RBP + -0xc8] MOV RCX,qword ptr [RAX + 0x18] MOV qword ptr [RBP + -0xd8],RCX MOV RDI,qword ptr [RAX + 0x18] CALL 0x00112f00 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0xc8] MOV qword ptr [RBP + -0x88],RCX MOV RDI,qword ptr [RAX + 0x18] CALL 0x00112f40 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0xc8] MOV qword ptr [RBP + -0x90],RCX MOV EAX,dword ptr [RAX + 0x40] SUB EAX,0x1 MOV dword ptr [RBP + -0x94],EAX MOV RDI,qword ptr [RBP + -0x88] MOV RSI,qword ptr [RBP + -0x90] LEA RDX,[RBP + -0x94] CALL 0x00112eb0 MOV qword ptr [RBP + -0x80],RAX MOV RSI,qword ptr [RBP + -0x80] LEA RDI,[RBP + -0x78] CALL 0x00112f80 MOV RAX,qword ptr [RBP + -0xc8] MOV RDI,qword ptr [RAX + 0x18] CALL 0x00112f40 MOV qword ptr [RBP + -0xa8],RAX MOV RSI,qword ptr [RBP + -0xa8] LEA RDI,[RBP + -0xa0] CALL 0x00112f80 MOV RDI,qword ptr [RBP + -0xd8] MOV RSI,qword ptr [RBP + -0x78] MOV RDX,qword ptr [RBP + -0xa0] CALL 0x00112e10 MOV RCX,RAX MOV RAX,qword ptr [RBP + -0xc8] MOV qword ptr [RBP + -0xb0],RCX MOV RDI,RAX ADD RDI,0x68 MOV ESI,dword ptr [RAX + 0x40] SUB ESI,0x1 CALL 0x00112fc0 MOV RDI,qword ptr [RBP + -0xc8] ADD RDI,0x68 CALL 0x00112f00 MOV RDI,qword ptr [RBP + -0xc8] MOV qword ptr [RBP + -0xb8],RAX ADD RDI,0x68 CALL 0x00112f40 MOV qword ptr [RBP + -0xc0],RAX MOV RDI,qword ptr [RBP + -0xb8] MOV RSI,qword ptr [RBP + -0xc0] CALL 0x00112ff0 MOV RAX,qword ptr [RBP + -0xc8] MOV ECX,dword ptr [RAX + 0x40] SUB ECX,0x1 MOV dword ptr [RAX + 0x44],ECX MOV dword ptr [RBP + -0x4],0x1 JMP 0x00112085 LAB_00112078: JMP 0x0011207a LAB_0011207a: JMP 0x0011207c LAB_0011207c: JMP 0x0011207e LAB_0011207e: MOV dword ptr [RBP + -0x4],0x0 LAB_00112085: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0xe0 POP RBP RET
/* Elevetor::checkout() */ int4 __thiscall Elevetor::checkout(Elevetor *this) { QList<int> *pQVar1; bool bVar2; long lVar3; int8 uVar4; int8 uVar5; int8 local_a8; int local_9c; int8 local_98; int8 local_90; int8 local_88; int8 local_80; int local_74; int8 local_70; int8 local_68; int8 local_60; int8 local_58; int8 local_50; int local_44; int8 local_40; int8 local_38; int8 local_30; int8 local_28; int local_1c; Elevetor *local_18; local_18 = this; if (*(int *)(this + 0x48) == 1) { lVar3 = QList<int>::size(*(QList<int> **)(this + 0x10)); if (0 < lVar3) { local_1c = *(int *)(this + 0x40) + 1; bVar2 = QListSpecialMethodsBase<int>::contains<int> (*(QListSpecialMethodsBase<int> **)(this + 0x10),&local_1c); if (bVar2) { pQVar1 = *(QList<int> **)(this + 0x10); local_38 = QList<int>::begin(*(QList<int> **)(this + 0x10)); local_40 = QList<int>::end(*(QList<int> **)(this + 0x10)); local_44 = *(int *)(this + 0x40) + 1; local_30 = std::remove<QList<int>::iterator,int>(local_38,local_40,&local_44); QList<int>::const_iterator::const_iterator((const_iterator *)&local_28,local_30); local_58 = QList<int>::end(*(QList<int> **)(this + 0x10)); QList<int>::const_iterator::const_iterator((const_iterator *)&local_50,local_58); local_60 = QList<int>::erase(pQVar1,local_28,local_50); QList<int>::push_back((QList<int> *)(this + 0x68),*(int *)(this + 0x40) + 1); local_68 = QList<int>::begin((QList<int> *)(this + 0x68)); local_70 = QList<int>::end((QList<int> *)(this + 0x68)); std::sort<QList<int>::iterator>(local_68,local_70); *(int *)(this + 0x44) = *(int *)(this + 0x40) + 1; return 1; } } } else if ((*(int *)(this + 0x48) == 2) && (lVar3 = QList<int>::size(*(QList<int> **)(this + 0x18)), 0 < lVar3)) { local_74 = *(int *)(this + 0x40) + -1; bVar2 = QListSpecialMethodsBase<int>::contains<int> (*(QListSpecialMethodsBase<int> **)(this + 0x18),&local_74); if (bVar2) { pQVar1 = *(QList<int> **)(this + 0x18); local_90 = QList<int>::begin(*(QList<int> **)(this + 0x18)); local_98 = QList<int>::end(*(QList<int> **)(this + 0x18)); local_9c = *(int *)(this + 0x40) + -1; local_88 = std::remove<QList<int>::iterator,int>(local_90,local_98,&local_9c); QList<int>::const_iterator::const_iterator((const_iterator *)&local_80,local_88); uVar4 = QList<int>::end(*(QList<int> **)(this + 0x18)); QList<int>::const_iterator::const_iterator((const_iterator *)&local_a8,uVar4); QList<int>::erase(pQVar1,local_80,local_a8); QList<int>::push_back((QList<int> *)(this + 0x68),*(int *)(this + 0x40) + -1); uVar4 = QList<int>::begin((QList<int> *)(this + 0x68)); uVar5 = QList<int>::end((QList<int> *)(this + 0x68)); std::sort<QList<int>::iterator>(uVar4,uVar5); *(int *)(this + 0x44) = *(int *)(this + 0x40) + -1; return 1; } } return 0; }
31,042
Elevetor::checkout()
LeafBlue[P]myElevetor/elevetor.cpp
int Elevetor::checkout() { if(direct == 1){ if(up_out->size()>0){ //检查是否存在一个值等于当前楼层+1,如果存在立刻添加并修改目的地 if(up_out->contains(nowstair + 1)){ up_out->erase( std::remove(up_out->begin(),up_out->end(),nowstair + 1), up_out->end() ); action_list.push_back(nowstair + 1); std::sort(action_list.begin(),action_list.end()); endstair = nowstair + 1; return 1; } } }else if(direct == 2){ if(down_out->size()>0){ //检查是否存在一个值等于当前楼层-1,如果存在立刻添加并修改目的地 if(down_out->contains(nowstair - 1)){ down_out->erase( std::remove(down_out->begin(),down_out->end(),nowstair - 1), down_out->end() ); action_list.push_back(nowstair - 1); std::sort(action_list.begin(),action_list.end()); endstair = nowstair - 1; return 1; } } } return 0; }
O1
cpp
Elevetor::checkout(): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rdi, %rbx movl 0x48(%rdi), %ecx xorl %eax, %eax cmpl $0x2, %ecx je 0x8d07 cmpl $0x1, %ecx jne 0x8e04 movq 0x10(%rbx), %r14 movq 0x10(%r14), %rcx testq %rcx, %rcx jle 0x8e04 movl 0x40(%rbx), %edx incl %edx movq 0x8(%r14), %rsi shlq $0x2, %rcx xorl %eax, %eax xorl %edi, %edi cmpq %rdi, %rcx je 0x8e04 leaq 0x4(%rdi), %r8 cmpl %edx, (%rsi,%rdi) movq %r8, %rdi jne 0x8c64 testq %r8, %r8 je 0x8e04 movq %r14, %rdi callq 0x9576 movq %rax, %r15 movq 0x10(%rbx), %rdi callq 0x959e movl 0x40(%rbx), %ecx incl %ecx leaq 0xc(%rsp), %r12 movl %ecx, (%r12) movq %r15, %rdi movq %rax, %rsi movq %r12, %rdx callq 0x99b2 movq %rax, %r15 movq 0x10(%rbx), %rdi callq 0x959e movq %r14, %rdi movq %r15, %rsi movq %rax, %rdx callq 0x94de leaq 0x68(%rbx), %r15 movl 0x40(%rbx), %eax incl %eax movl %eax, (%r12) movq 0x78(%rbx), %rsi leaq 0xc(%rsp), %rdx movq %r15, %rdi callq 0x9a90 movq %r15, %rdi callq 0x9576 movq %rax, %r14 movq %r15, %rdi callq 0x959e movl $0x1, %ebp jmp 0x8dc7 movq 0x18(%rbx), %r14 movq 0x10(%r14), %rcx testq %rcx, %rcx jle 0x8e04 movl 0x40(%rbx), %edx decl %edx movq 0x8(%r14), %rsi shlq $0x2, %rcx xorl %eax, %eax xorl %edi, %edi cmpq %rdi, %rcx je 0x8e04 leaq 0x4(%rdi), %r8 cmpl %edx, (%rsi,%rdi) movq %r8, %rdi jne 0x8d29 testq %r8, %r8 je 0x8e04 movq %r14, %rdi callq 0x9576 movq %rax, %r15 movq 0x18(%rbx), %rdi callq 0x959e movl 0x40(%rbx), %ecx decl %ecx leaq 0xc(%rsp), %r12 movl %ecx, (%r12) movq %r15, %rdi movq %rax, %rsi movq %r12, %rdx callq 0x99b2 movq %rax, %r15 movq 0x18(%rbx), %rdi callq 0x959e movq %r14, %rdi movq %r15, %rsi movq %rax, %rdx callq 0x94de leaq 0x68(%rbx), %r15 movl 0x40(%rbx), %eax decl %eax movl %eax, (%r12) movq 0x78(%rbx), %rsi leaq 0xc(%rsp), %rdx movq %r15, %rdi callq 0x9a90 movq %r15, %rdi callq 0x9576 movq %rax, %r14 movq %r15, %rdi callq 0x959e movl $0xffffffff, %ebp # imm = 0xFFFFFFFF cmpq %rax, %r14 je 0x8df9 movq %rax, %r15 subq %r14, %rax sarq $0x2, %rax bsrq %rax, %rdx xorl $0x3f, %edx addl %edx, %edx xorq $0x7e, %rdx movq %r14, %rdi movq %r15, %rsi callq 0x9d83 movq %r14, %rdi movq %r15, %rsi callq 0x9e66 addl 0x40(%rbx), %ebp movl %ebp, 0x44(%rbx) movl $0x1, %eax addq $0x10, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq nop
_ZN8Elevetor8checkoutEv: push rbp push r15 push r14 push r12 push rbx sub rsp, 10h mov rbx, rdi mov ecx, [rdi+48h] xor eax, eax cmp ecx, 2 jz loc_8D07 cmp ecx, 1 jnz loc_8E04 mov r14, [rbx+10h] mov rcx, [r14+10h] test rcx, rcx jle loc_8E04 mov edx, [rbx+40h] inc edx mov rsi, [r14+8] shl rcx, 2 xor eax, eax xor edi, edi loc_8C64: cmp rcx, rdi jz loc_8E04 lea r8, [rdi+4] cmp [rsi+rdi], edx mov rdi, r8 jnz short loc_8C64 test r8, r8 jz loc_8E04 mov rdi, r14 call _ZN5QListIiE5beginEv; QList<int>::begin(void) mov r15, rax mov rdi, [rbx+10h] call _ZN5QListIiE3endEv; QList<int>::end(void) mov ecx, [rbx+40h] inc ecx lea r12, [rsp+38h+var_2C] mov [r12], ecx mov rdi, r15 mov rsi, rax mov rdx, r12 call _ZSt11__remove_ifIN5QListIiE8iteratorEN9__gnu_cxx5__ops16_Iter_equals_valIKiEEET_S8_S8_T0_; std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>>(QList<int>::iterator,QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>) mov r15, rax mov rdi, [rbx+10h] call _ZN5QListIiE3endEv; QList<int>::end(void) mov rdi, r14 mov rsi, r15 mov rdx, rax call _ZN5QListIiE5eraseENS0_14const_iteratorES1_; QList<int>::erase(QList<int>::const_iterator,QList<int>::const_iterator) lea r15, [rbx+68h] mov eax, [rbx+40h] inc eax mov [r12], eax mov rsi, [rbx+78h] lea rdx, [rsp+38h+var_2C] mov rdi, r15 call _ZN9QtPrivate12QPodArrayOpsIiE7emplaceIJRiEEEvxDpOT_; QtPrivate::QPodArrayOps<int>::emplace<int &>(long long,int &) mov rdi, r15 call _ZN5QListIiE5beginEv; QList<int>::begin(void) mov r14, rax mov rdi, r15 call _ZN5QListIiE3endEv; QList<int>::end(void) mov ebp, 1 jmp loc_8DC7 loc_8D07: mov r14, [rbx+18h] mov rcx, [r14+10h] test rcx, rcx jle loc_8E04 mov edx, [rbx+40h] dec edx mov rsi, [r14+8] shl rcx, 2 xor eax, eax xor edi, edi loc_8D29: cmp rcx, rdi jz loc_8E04 lea r8, [rdi+4] cmp [rsi+rdi], edx mov rdi, r8 jnz short loc_8D29 test r8, r8 jz loc_8E04 mov rdi, r14 call _ZN5QListIiE5beginEv; QList<int>::begin(void) mov r15, rax mov rdi, [rbx+18h] call _ZN5QListIiE3endEv; QList<int>::end(void) mov ecx, [rbx+40h] dec ecx lea r12, [rsp+38h+var_2C] mov [r12], ecx mov rdi, r15 mov rsi, rax mov rdx, r12 call _ZSt11__remove_ifIN5QListIiE8iteratorEN9__gnu_cxx5__ops16_Iter_equals_valIKiEEET_S8_S8_T0_; std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>>(QList<int>::iterator,QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>) mov r15, rax mov rdi, [rbx+18h] call _ZN5QListIiE3endEv; QList<int>::end(void) mov rdi, r14 mov rsi, r15 mov rdx, rax call _ZN5QListIiE5eraseENS0_14const_iteratorES1_; QList<int>::erase(QList<int>::const_iterator,QList<int>::const_iterator) lea r15, [rbx+68h] mov eax, [rbx+40h] dec eax mov [r12], eax mov rsi, [rbx+78h] lea rdx, [rsp+38h+var_2C] mov rdi, r15 call _ZN9QtPrivate12QPodArrayOpsIiE7emplaceIJRiEEEvxDpOT_; QtPrivate::QPodArrayOps<int>::emplace<int &>(long long,int &) mov rdi, r15 call _ZN5QListIiE5beginEv; QList<int>::begin(void) mov r14, rax mov rdi, r15 call _ZN5QListIiE3endEv; QList<int>::end(void) mov ebp, 0FFFFFFFFh loc_8DC7: cmp r14, rax jz short loc_8DF9 mov r15, rax sub rax, r14 sar rax, 2 bsr rdx, rax xor edx, 3Fh add edx, edx xor rdx, 7Eh mov rdi, r14 mov rsi, r15 call _ZSt16__introsort_loopIN5QListIiE8iteratorExN9__gnu_cxx5__ops15_Iter_less_iterEEvT_S6_T0_T1_; std::__introsort_loop<QList<int>::iterator,long long,__gnu_cxx::__ops::_Iter_less_iter>(QList<int>::iterator,QList<int>::iterator,long long,__gnu_cxx::__ops::_Iter_less_iter) mov rdi, r14 mov rsi, r15 call _ZSt22__final_insertion_sortIN5QListIiE8iteratorEN9__gnu_cxx5__ops15_Iter_less_iterEEvT_S6_T0_; std::__final_insertion_sort<QList<int>::iterator,__gnu_cxx::__ops::_Iter_less_iter>(QList<int>::iterator,QList<int>::iterator,__gnu_cxx::__ops::_Iter_less_iter) loc_8DF9: add ebp, [rbx+40h] mov [rbx+44h], ebp mov eax, 1 loc_8E04: add rsp, 10h pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long Elevetor::checkout(Elevetor *this) { int v2; // ecx long long result; // rax long long v4; // r14 long long v5; // rcx int v6; // edx long long v7; // rcx long long v8; // rdi long long v9; // r8 bool v10; // zf long long v11; // r15 long long v12; // rax long long v13; // r15 long long v14; // rax long long v15; // r14 long long v16; // rax int v17; // ebp long long v18; // r14 long long v19; // rcx int v20; // edx long long v21; // rcx long long v22; // rdi long long v23; // r8 long long v24; // r15 long long v25; // rax long long v26; // r15 long long v27; // rax long long v28; // r15 unsigned long long v29; // rdx _DWORD v30[11]; // [rsp+Ch] [rbp-2Ch] BYREF v2 = *((_DWORD *)this + 18); result = 0LL; if ( v2 == 2 ) { v18 = *((_QWORD *)this + 3); v19 = *(_QWORD *)(v18 + 16); if ( v19 > 0 ) { v20 = *((_DWORD *)this + 16) - 1; v21 = 4 * v19; result = 0LL; v22 = 0LL; while ( v21 != v22 ) { v23 = v22 + 4; v10 = *(_DWORD *)(*(_QWORD *)(v18 + 8) + v22) == v20; v22 += 4LL; if ( v10 ) { if ( v23 ) { v24 = QList<int>::begin(*((_QWORD *)this + 3)); v25 = QList<int>::end(*((_QWORD *)this + 3)); v30[0] = *((_DWORD *)this + 16) - 1; v26 = std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>>(v24, v25, v30); v27 = QList<int>::end(*((_QWORD *)this + 3)); QList<int>::erase(v18, v26, v27); v30[0] = *((_DWORD *)this + 16) - 1; QtPrivate::QPodArrayOps<int>::emplace<int &>((char *)this + 104, *((_QWORD *)this + 15), v30); v15 = QList<int>::begin((char *)this + 104); v16 = QList<int>::end((char *)this + 104); v17 = -1; LABEL_15: if ( v15 != v16 ) { v28 = v16; _BitScanReverse64(&v29, (v16 - v15) >> 2); std::__introsort_loop<QList<int>::iterator,long long,__gnu_cxx::__ops::_Iter_less_iter>( v15, v16, (2 * ((unsigned int)v29 ^ 0x3F)) ^ 0x7ELL); std::__final_insertion_sort<QList<int>::iterator,__gnu_cxx::__ops::_Iter_less_iter>(v15, v28); } *((_DWORD *)this + 17) = *((_DWORD *)this + 16) + v17; return 1LL; } return result; } } } } else if ( v2 == 1 ) { v4 = *((_QWORD *)this + 2); v5 = *(_QWORD *)(v4 + 16); if ( v5 > 0 ) { v6 = *((_DWORD *)this + 16) + 1; v7 = 4 * v5; result = 0LL; v8 = 0LL; while ( v7 != v8 ) { v9 = v8 + 4; v10 = *(_DWORD *)(*(_QWORD *)(v4 + 8) + v8) == v6; v8 += 4LL; if ( v10 ) { if ( !v9 ) return result; v11 = QList<int>::begin(*((_QWORD *)this + 2)); v12 = QList<int>::end(*((_QWORD *)this + 2)); v30[0] = *((_DWORD *)this + 16) + 1; v13 = std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>>(v11, v12, v30); v14 = QList<int>::end(*((_QWORD *)this + 2)); QList<int>::erase(v4, v13, v14); v30[0] = *((_DWORD *)this + 16) + 1; QtPrivate::QPodArrayOps<int>::emplace<int &>((char *)this + 104, *((_QWORD *)this + 15), v30); v15 = QList<int>::begin((char *)this + 104); v16 = QList<int>::end((char *)this + 104); v17 = 1; goto LABEL_15; } } } } return result; }
checkout: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x10 MOV RBX,RDI MOV ECX,dword ptr [RDI + 0x48] XOR EAX,EAX CMP ECX,0x2 JZ 0x00108d07 CMP ECX,0x1 JNZ 0x00108e04 MOV R14,qword ptr [RBX + 0x10] MOV RCX,qword ptr [R14 + 0x10] TEST RCX,RCX JLE 0x00108e04 MOV EDX,dword ptr [RBX + 0x40] INC EDX MOV RSI,qword ptr [R14 + 0x8] SHL RCX,0x2 XOR EAX,EAX XOR EDI,EDI LAB_00108c64: CMP RCX,RDI JZ 0x00108e04 LEA R8,[RDI + 0x4] CMP dword ptr [RSI + RDI*0x1],EDX MOV RDI,R8 JNZ 0x00108c64 TEST R8,R8 JZ 0x00108e04 MOV RDI,R14 CALL 0x00109576 MOV R15,RAX MOV RDI,qword ptr [RBX + 0x10] CALL 0x0010959e MOV ECX,dword ptr [RBX + 0x40] INC ECX LEA R12,[RSP + 0xc] MOV dword ptr [R12],ECX MOV RDI,R15 MOV RSI,RAX MOV RDX,R12 CALL 0x001099b2 MOV R15,RAX MOV RDI,qword ptr [RBX + 0x10] CALL 0x0010959e MOV RDI,R14 MOV RSI,R15 MOV RDX,RAX CALL 0x001094de LEA R15,[RBX + 0x68] MOV EAX,dword ptr [RBX + 0x40] INC EAX MOV dword ptr [R12],EAX MOV RSI,qword ptr [RBX + 0x78] LEA RDX,[RSP + 0xc] MOV RDI,R15 CALL 0x00109a90 MOV RDI,R15 CALL 0x00109576 MOV R14,RAX MOV RDI,R15 CALL 0x0010959e MOV EBP,0x1 JMP 0x00108dc7 LAB_00108d07: MOV R14,qword ptr [RBX + 0x18] MOV RCX,qword ptr [R14 + 0x10] TEST RCX,RCX JLE 0x00108e04 MOV EDX,dword ptr [RBX + 0x40] DEC EDX MOV RSI,qword ptr [R14 + 0x8] SHL RCX,0x2 XOR EAX,EAX XOR EDI,EDI LAB_00108d29: CMP RCX,RDI JZ 0x00108e04 LEA R8,[RDI + 0x4] CMP dword ptr [RSI + RDI*0x1],EDX MOV RDI,R8 JNZ 0x00108d29 TEST R8,R8 JZ 0x00108e04 MOV RDI,R14 CALL 0x00109576 MOV R15,RAX MOV RDI,qword ptr [RBX + 0x18] CALL 0x0010959e MOV ECX,dword ptr [RBX + 0x40] DEC ECX LEA R12,[RSP + 0xc] MOV dword ptr [R12],ECX MOV RDI,R15 MOV RSI,RAX MOV RDX,R12 CALL 0x001099b2 MOV R15,RAX MOV RDI,qword ptr [RBX + 0x18] CALL 0x0010959e MOV RDI,R14 MOV RSI,R15 MOV RDX,RAX CALL 0x001094de LEA R15,[RBX + 0x68] MOV EAX,dword ptr [RBX + 0x40] DEC EAX MOV dword ptr [R12],EAX MOV RSI,qword ptr [RBX + 0x78] LEA RDX,[RSP + 0xc] MOV RDI,R15 CALL 0x00109a90 MOV RDI,R15 CALL 0x00109576 MOV R14,RAX MOV RDI,R15 CALL 0x0010959e MOV EBP,0xffffffff LAB_00108dc7: CMP R14,RAX JZ 0x00108df9 MOV R15,RAX SUB RAX,R14 SAR RAX,0x2 BSR RDX,RAX XOR EDX,0x3f ADD EDX,EDX XOR RDX,0x7e MOV RDI,R14 MOV RSI,R15 CALL 0x00109d83 MOV RDI,R14 MOV RSI,R15 CALL 0x00109e66 LAB_00108df9: ADD EBP,dword ptr [RBX + 0x40] MOV dword ptr [RBX + 0x44],EBP MOV EAX,0x1 LAB_00108e04: ADD RSP,0x10 POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* Elevetor::checkout() */ int8 __thiscall Elevetor::checkout(Elevetor *this) { QPodArrayOps<int> *pQVar1; int *piVar2; QList<int> *pQVar3; long lVar4; int8 uVar5; int8 uVar6; long lVar7; long lVar8; ulong uVar9; int iVar10; int local_2c; if (*(int *)(this + 0x48) == 2) { pQVar3 = *(QList<int> **)(this + 0x18); if (*(long *)(pQVar3 + 0x10) < 1) { return 0; } lVar7 = 0; do { if (*(long *)(pQVar3 + 0x10) << 2 == lVar7) { return 0; } lVar8 = lVar7 + 4; piVar2 = (int *)(*(long *)(pQVar3 + 8) + lVar7); lVar7 = lVar8; } while (*piVar2 != *(int *)(this + 0x40) + -1); if (lVar8 == 0) { return 0; } uVar5 = QList<int>::begin(pQVar3); uVar6 = QList<int>::end(*(QList<int> **)(this + 0x18)); local_2c = *(int *)(this + 0x40) + -1; uVar5 = std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int_const>> (uVar5,uVar6,&local_2c); uVar6 = QList<int>::end(*(QList<int> **)(this + 0x18)); QList<int>::erase(pQVar3,uVar5,uVar6); pQVar1 = (QPodArrayOps<int> *)(this + 0x68); local_2c = *(int *)(this + 0x40) + -1; QtPrivate::QPodArrayOps<int>::emplace<int&>(pQVar1,*(longlong *)(this + 0x78),&local_2c); lVar7 = QList<int>::begin((QList<int> *)pQVar1); lVar8 = QList<int>::end((QList<int> *)pQVar1); iVar10 = -1; } else { if (*(int *)(this + 0x48) != 1) { return 0; } pQVar3 = *(QList<int> **)(this + 0x10); if (*(long *)(pQVar3 + 0x10) < 1) { return 0; } lVar7 = 0; do { if (*(long *)(pQVar3 + 0x10) << 2 == lVar7) { return 0; } lVar8 = lVar7 + 4; piVar2 = (int *)(*(long *)(pQVar3 + 8) + lVar7); lVar7 = lVar8; } while (*piVar2 != *(int *)(this + 0x40) + 1); if (lVar8 == 0) { return 0; } uVar5 = QList<int>::begin(pQVar3); uVar6 = QList<int>::end(*(QList<int> **)(this + 0x10)); local_2c = *(int *)(this + 0x40) + 1; uVar5 = std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int_const>> (uVar5,uVar6,&local_2c); uVar6 = QList<int>::end(*(QList<int> **)(this + 0x10)); QList<int>::erase(pQVar3,uVar5,uVar6); pQVar1 = (QPodArrayOps<int> *)(this + 0x68); local_2c = *(int *)(this + 0x40) + 1; QtPrivate::QPodArrayOps<int>::emplace<int&>(pQVar1,*(longlong *)(this + 0x78),&local_2c); lVar7 = QList<int>::begin((QList<int> *)pQVar1); lVar8 = QList<int>::end((QList<int> *)pQVar1); iVar10 = 1; } if (lVar7 != lVar8) { uVar9 = lVar8 - lVar7 >> 2; lVar4 = 0x3f; if (uVar9 != 0) { for (; uVar9 >> lVar4 == 0; lVar4 = lVar4 + -1) { } } std::__introsort_loop<QList<int>::iterator,long_long,__gnu_cxx::__ops::_Iter_less_iter> (lVar7,lVar8,((uint)lVar4 ^ 0x3f) * 2 ^ 0x7e); std::__final_insertion_sort<QList<int>::iterator,__gnu_cxx::__ops::_Iter_less_iter>(lVar7,lVar8) ; } *(int *)(this + 0x44) = iVar10 + *(int *)(this + 0x40); return 1; }
31,043
Elevetor::checkout()
LeafBlue[P]myElevetor/elevetor.cpp
int Elevetor::checkout() { if(direct == 1){ if(up_out->size()>0){ //检查是否存在一个值等于当前楼层+1,如果存在立刻添加并修改目的地 if(up_out->contains(nowstair + 1)){ up_out->erase( std::remove(up_out->begin(),up_out->end(),nowstair + 1), up_out->end() ); action_list.push_back(nowstair + 1); std::sort(action_list.begin(),action_list.end()); endstair = nowstair + 1; return 1; } } }else if(direct == 2){ if(down_out->size()>0){ //检查是否存在一个值等于当前楼层-1,如果存在立刻添加并修改目的地 if(down_out->contains(nowstair - 1)){ down_out->erase( std::remove(down_out->begin(),down_out->end(),nowstair - 1), down_out->end() ); action_list.push_back(nowstair - 1); std::sort(action_list.begin(),action_list.end()); endstair = nowstair - 1; return 1; } } } return 0; }
O2
cpp
Elevetor::checkout(): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rdi, %rbx movl 0x48(%rdi), %eax xorl %ebp, %ebp pushq $0x1 popq %r12 cmpl $0x2, %eax je 0x80f0 cmpl $0x1, %eax jne 0x819c movq 0x10(%rbx), %rdi cmpq $0x0, 0x10(%rdi) jle 0x819c movl 0x40(%rbx), %eax incl %eax leaq 0xc(%rsp), %rsi movl %eax, (%rsi) callq 0x86d0 testb %al, %al je 0x819c movq 0x10(%rbx), %r14 movq %r14, %rdi callq 0x8712 movq %rax, %r15 movq 0x10(%rbx), %rdi callq 0x8722 movl 0x40(%rbx), %ecx incl %ecx leaq 0xc(%rsp), %rdx movl %ecx, (%rdx) movq %r15, %rdi movq %rax, %rsi callq 0x8b58 movq %rax, %r15 movq 0x10(%rbx), %rdi callq 0x8722 movq %r14, %rdi movq %r15, %rsi movq %rax, %rdx callq 0x86e2 movl %r12d, %ebp jmp 0x8164 movq 0x18(%rbx), %rdi cmpq $0x0, 0x10(%rdi) jle 0x819c movl 0x40(%rbx), %eax decl %eax leaq 0xc(%rsp), %rsi movl %eax, (%rsi) callq 0x86d0 testb %al, %al je 0x819c movq 0x18(%rbx), %r14 movq %r14, %rdi callq 0x8712 movq %rax, %r15 movq 0x18(%rbx), %rdi callq 0x8722 movl 0x40(%rbx), %ecx decl %ecx leaq 0xc(%rsp), %rdx movl %ecx, (%rdx) movq %r15, %rdi movq %rax, %rsi callq 0x8b58 movq %rax, %r15 movq 0x18(%rbx), %rdi callq 0x8722 movq %r14, %rdi movq %r15, %rsi movq %rax, %rdx callq 0x86e2 pushq $-0x1 popq %rbp leaq 0x68(%rbx), %r14 movl 0x40(%rbx), %esi addl %ebp, %esi movq %r14, %rdi callq 0x8c20 movq %r14, %rdi callq 0x8712 movq %rax, %r15 movq %r14, %rdi callq 0x8722 movq %r15, %rdi movq %rax, %rsi callq 0x8f24 addl 0x40(%rbx), %ebp movl %ebp, 0x44(%rbx) movl %r12d, %ebp movl %ebp, %eax addq $0x10, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq nop
_ZN8Elevetor8checkoutEv: push rbp push r15 push r14 push r12 push rbx sub rsp, 10h mov rbx, rdi mov eax, [rdi+48h] xor ebp, ebp push 1 pop r12 cmp eax, 2 jz short loc_80F0 cmp eax, 1 jnz loc_819C mov rdi, [rbx+10h] cmp qword ptr [rdi+10h], 0 jle loc_819C mov eax, [rbx+40h] inc eax lea rsi, [rsp+38h+var_2C] mov [rsi], eax call _ZNK23QListSpecialMethodsBaseIiE8containsIiEEbRKT_; QListSpecialMethodsBase<int>::contains<int>(int const&) test al, al jz loc_819C mov r14, [rbx+10h] mov rdi, r14 call _ZN5QListIiE5beginEv; QList<int>::begin(void) mov r15, rax mov rdi, [rbx+10h] call _ZN5QListIiE3endEv; QList<int>::end(void) mov ecx, [rbx+40h] inc ecx lea rdx, [rsp+38h+var_2C] mov [rdx], ecx mov rdi, r15 mov rsi, rax call _ZSt11__remove_ifIN5QListIiE8iteratorEN9__gnu_cxx5__ops16_Iter_equals_valIKiEEET_S8_S8_T0_; std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>>(QList<int>::iterator,QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>) mov r15, rax mov rdi, [rbx+10h] call _ZN5QListIiE3endEv; QList<int>::end(void) mov rdi, r14 mov rsi, r15 mov rdx, rax call _ZN5QListIiE5eraseENS0_14const_iteratorES1_; QList<int>::erase(QList<int>::const_iterator,QList<int>::const_iterator) mov ebp, r12d jmp short loc_8164 loc_80F0: mov rdi, [rbx+18h] cmp qword ptr [rdi+10h], 0 jle loc_819C mov eax, [rbx+40h] dec eax lea rsi, [rsp+38h+var_2C] mov [rsi], eax call _ZNK23QListSpecialMethodsBaseIiE8containsIiEEbRKT_; QListSpecialMethodsBase<int>::contains<int>(int const&) test al, al jz loc_819C mov r14, [rbx+18h] mov rdi, r14 call _ZN5QListIiE5beginEv; QList<int>::begin(void) mov r15, rax mov rdi, [rbx+18h] call _ZN5QListIiE3endEv; QList<int>::end(void) mov ecx, [rbx+40h] dec ecx lea rdx, [rsp+38h+var_2C] mov [rdx], ecx mov rdi, r15 mov rsi, rax call _ZSt11__remove_ifIN5QListIiE8iteratorEN9__gnu_cxx5__ops16_Iter_equals_valIKiEEET_S8_S8_T0_; std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>>(QList<int>::iterator,QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>) mov r15, rax mov rdi, [rbx+18h] call _ZN5QListIiE3endEv; QList<int>::end(void) mov rdi, r14 mov rsi, r15 mov rdx, rax call _ZN5QListIiE5eraseENS0_14const_iteratorES1_; QList<int>::erase(QList<int>::const_iterator,QList<int>::const_iterator) push 0FFFFFFFFFFFFFFFFh pop rbp loc_8164: lea r14, [rbx+68h] mov esi, [rbx+40h] add esi, ebp mov rdi, r14 call _ZN5QListIiE6appendEi; QList<int>::append(int) mov rdi, r14 call _ZN5QListIiE5beginEv; QList<int>::begin(void) mov r15, rax mov rdi, r14 call _ZN5QListIiE3endEv; QList<int>::end(void) mov rdi, r15 mov rsi, rax call _ZSt6__sortIN5QListIiE8iteratorEN9__gnu_cxx5__ops15_Iter_less_iterEEvT_S6_T0_; std::__sort<QList<int>::iterator,__gnu_cxx::__ops::_Iter_less_iter>(QList<int>::iterator,QList<int>::iterator,__gnu_cxx::__ops::_Iter_less_iter) add ebp, [rbx+40h] mov [rbx+44h], ebp mov ebp, r12d loc_819C: mov eax, ebp add rsp, 10h pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long Elevetor::checkout(Elevetor *this) { int v1; // eax unsigned int v2; // ebp long long v3; // r14 long long v4; // r15 long long v5; // rax long long v6; // r15 long long v7; // rax int v8; // ebp long long v9; // r14 long long v10; // r15 long long v11; // rax long long v12; // r15 long long v13; // rax long long v14; // r15 long long v15; // rax v1 = *((_DWORD *)this + 18); v2 = 0; if ( v1 == 2 ) { if ( *(long long *)(*((_QWORD *)this + 3) + 16LL) > 0 && (unsigned __int8)QListSpecialMethodsBase<int>::contains<int>() ) { v9 = *((_QWORD *)this + 3); v10 = QList<int>::begin(v9); v11 = QList<int>::end(*((_QWORD *)this + 3)); v12 = std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>>(v10, v11); v13 = QList<int>::end(*((_QWORD *)this + 3)); QList<int>::erase(v9, v12, v13); v8 = -1; goto LABEL_9; } } else if ( v1 == 1 && *(long long *)(*((_QWORD *)this + 2) + 16LL) > 0 && (unsigned __int8)QListSpecialMethodsBase<int>::contains<int>() ) { v3 = *((_QWORD *)this + 2); v4 = QList<int>::begin(v3); v5 = QList<int>::end(*((_QWORD *)this + 2)); v6 = std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>>(v4, v5); v7 = QList<int>::end(*((_QWORD *)this + 2)); QList<int>::erase(v3, v6, v7); v8 = 1; LABEL_9: QList<int>::append((char *)this + 104, (unsigned int)(v8 + *((_DWORD *)this + 16))); v14 = QList<int>::begin((char *)this + 104); v15 = QList<int>::end((char *)this + 104); std::__sort<QList<int>::iterator,__gnu_cxx::__ops::_Iter_less_iter>(v14, v15); *((_DWORD *)this + 17) = *((_DWORD *)this + 16) + v8; return 1; } return v2; }
checkout: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x10 MOV RBX,RDI MOV EAX,dword ptr [RDI + 0x48] XOR EBP,EBP PUSH 0x1 POP R12 CMP EAX,0x2 JZ 0x001080f0 CMP EAX,0x1 JNZ 0x0010819c MOV RDI,qword ptr [RBX + 0x10] CMP qword ptr [RDI + 0x10],0x0 JLE 0x0010819c MOV EAX,dword ptr [RBX + 0x40] INC EAX LEA RSI,[RSP + 0xc] MOV dword ptr [RSI],EAX CALL 0x001086d0 TEST AL,AL JZ 0x0010819c MOV R14,qword ptr [RBX + 0x10] MOV RDI,R14 CALL 0x00108712 MOV R15,RAX MOV RDI,qword ptr [RBX + 0x10] CALL 0x00108722 MOV ECX,dword ptr [RBX + 0x40] INC ECX LEA RDX,[RSP + 0xc] MOV dword ptr [RDX],ECX MOV RDI,R15 MOV RSI,RAX CALL 0x00108b58 MOV R15,RAX MOV RDI,qword ptr [RBX + 0x10] CALL 0x00108722 MOV RDI,R14 MOV RSI,R15 MOV RDX,RAX CALL 0x001086e2 MOV EBP,R12D JMP 0x00108164 LAB_001080f0: MOV RDI,qword ptr [RBX + 0x18] CMP qword ptr [RDI + 0x10],0x0 JLE 0x0010819c MOV EAX,dword ptr [RBX + 0x40] DEC EAX LEA RSI,[RSP + 0xc] MOV dword ptr [RSI],EAX CALL 0x001086d0 TEST AL,AL JZ 0x0010819c MOV R14,qword ptr [RBX + 0x18] MOV RDI,R14 CALL 0x00108712 MOV R15,RAX MOV RDI,qword ptr [RBX + 0x18] CALL 0x00108722 MOV ECX,dword ptr [RBX + 0x40] DEC ECX LEA RDX,[RSP + 0xc] MOV dword ptr [RDX],ECX MOV RDI,R15 MOV RSI,RAX CALL 0x00108b58 MOV R15,RAX MOV RDI,qword ptr [RBX + 0x18] CALL 0x00108722 MOV RDI,R14 MOV RSI,R15 MOV RDX,RAX CALL 0x001086e2 PUSH -0x1 POP RBP LAB_00108164: LEA R14,[RBX + 0x68] MOV ESI,dword ptr [RBX + 0x40] ADD ESI,EBP MOV RDI,R14 CALL 0x00108c20 MOV RDI,R14 CALL 0x00108712 MOV R15,RAX MOV RDI,R14 CALL 0x00108722 MOV RDI,R15 MOV RSI,RAX CALL 0x00108f24 ADD EBP,dword ptr [RBX + 0x40] MOV dword ptr [RBX + 0x44],EBP MOV EBP,R12D LAB_0010819c: MOV EAX,EBP ADD RSP,0x10 POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* Elevetor::checkout() */ int8 __thiscall Elevetor::checkout(Elevetor *this) { QList<int> *pQVar1; bool bVar2; int8 uVar3; int8 uVar4; int iVar5; int local_2c; if (*(int *)(this + 0x48) == 2) { if (*(long *)(*(QListSpecialMethodsBase<int> **)(this + 0x18) + 0x10) < 1) { return 0; } local_2c = *(int *)(this + 0x40) + -1; bVar2 = QListSpecialMethodsBase<int>::contains<int> (*(QListSpecialMethodsBase<int> **)(this + 0x18),&local_2c); if (!bVar2) { return 0; } pQVar1 = *(QList<int> **)(this + 0x18); uVar3 = QList<int>::begin(pQVar1); uVar4 = QList<int>::end(*(QList<int> **)(this + 0x18)); local_2c = *(int *)(this + 0x40) + -1; uVar3 = std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int_const>> (uVar3,uVar4); uVar4 = QList<int>::end(*(QList<int> **)(this + 0x18)); QList<int>::erase(pQVar1,uVar3,uVar4); iVar5 = -1; } else { if (*(int *)(this + 0x48) != 1) { return 0; } if (*(long *)(*(QListSpecialMethodsBase<int> **)(this + 0x10) + 0x10) < 1) { return 0; } local_2c = *(int *)(this + 0x40) + 1; bVar2 = QListSpecialMethodsBase<int>::contains<int> (*(QListSpecialMethodsBase<int> **)(this + 0x10),&local_2c); if (!bVar2) { return 0; } pQVar1 = *(QList<int> **)(this + 0x10); uVar3 = QList<int>::begin(pQVar1); uVar4 = QList<int>::end(*(QList<int> **)(this + 0x10)); local_2c = *(int *)(this + 0x40) + 1; uVar3 = std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int_const>> (uVar3,uVar4); uVar4 = QList<int>::end(*(QList<int> **)(this + 0x10)); QList<int>::erase(pQVar1,uVar3,uVar4); iVar5 = 1; } pQVar1 = (QList<int> *)(this + 0x68); QList<int>::append(pQVar1,*(int *)(this + 0x40) + iVar5); uVar3 = QList<int>::begin(pQVar1); uVar4 = QList<int>::end(pQVar1); std::__sort<QList<int>::iterator,__gnu_cxx::__ops::_Iter_less_iter>(uVar3,uVar4); *(int *)(this + 0x44) = iVar5 + *(int *)(this + 0x40); return 1; }
31,044
Elevetor::checkout()
LeafBlue[P]myElevetor/elevetor.cpp
int Elevetor::checkout() { if(direct == 1){ if(up_out->size()>0){ //检查是否存在一个值等于当前楼层+1,如果存在立刻添加并修改目的地 if(up_out->contains(nowstair + 1)){ up_out->erase( std::remove(up_out->begin(),up_out->end(),nowstair + 1), up_out->end() ); action_list.push_back(nowstair + 1); std::sort(action_list.begin(),action_list.end()); endstair = nowstair + 1; return 1; } } }else if(direct == 2){ if(down_out->size()>0){ //检查是否存在一个值等于当前楼层-1,如果存在立刻添加并修改目的地 if(down_out->contains(nowstair - 1)){ down_out->erase( std::remove(down_out->begin(),down_out->end(),nowstair - 1), down_out->end() ); action_list.push_back(nowstair - 1); std::sort(action_list.begin(),action_list.end()); endstair = nowstair - 1; return 1; } } } return 0; }
O3
cpp
Elevetor::checkout(): pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x10, %rsp movq %rdi, %rbx movl 0x48(%rdi), %ecx xorl %eax, %eax cmpl $0x2, %ecx je 0x8c0b cmpl $0x1, %ecx jne 0x8d08 movq 0x10(%rbx), %r14 movq 0x10(%r14), %rcx testq %rcx, %rcx jle 0x8d08 movl 0x40(%rbx), %edx incl %edx movq 0x8(%r14), %rsi shlq $0x2, %rcx xorl %eax, %eax xorl %edi, %edi cmpq %rdi, %rcx je 0x8d08 leaq 0x4(%rdi), %r8 cmpl %edx, (%rsi,%rdi) movq %r8, %rdi jne 0x8b68 testq %r8, %r8 je 0x8d08 movq %r14, %rdi callq 0x94aa movq %rax, %r15 movq 0x10(%rbx), %rdi callq 0x94d2 movl 0x40(%rbx), %ecx incl %ecx leaq 0xc(%rsp), %r12 movl %ecx, (%r12) movq %r15, %rdi movq %rax, %rsi movq %r12, %rdx callq 0x9890 movq %rax, %r15 movq 0x10(%rbx), %rdi callq 0x94d2 movq %r14, %rdi movq %r15, %rsi movq %rax, %rdx callq 0x9400 leaq 0x68(%rbx), %r15 movl 0x40(%rbx), %eax incl %eax movl %eax, (%r12) movq 0x78(%rbx), %rsi leaq 0xc(%rsp), %rdx movq %r15, %rdi callq 0x997a movq %r15, %rdi callq 0x94aa movq %rax, %r14 movq %r15, %rdi callq 0x94d2 movl $0x1, %ebp jmp 0x8ccb movq 0x18(%rbx), %r14 movq 0x10(%r14), %rcx testq %rcx, %rcx jle 0x8d08 movl 0x40(%rbx), %edx decl %edx movq 0x8(%r14), %rsi shlq $0x2, %rcx xorl %eax, %eax xorl %edi, %edi cmpq %rdi, %rcx je 0x8d08 leaq 0x4(%rdi), %r8 cmpl %edx, (%rsi,%rdi) movq %r8, %rdi jne 0x8c2d testq %r8, %r8 je 0x8d08 movq %r14, %rdi callq 0x94aa movq %rax, %r15 movq 0x18(%rbx), %rdi callq 0x94d2 movl 0x40(%rbx), %ecx decl %ecx leaq 0xc(%rsp), %r12 movl %ecx, (%r12) movq %r15, %rdi movq %rax, %rsi movq %r12, %rdx callq 0x9890 movq %rax, %r15 movq 0x18(%rbx), %rdi callq 0x94d2 movq %r14, %rdi movq %r15, %rsi movq %rax, %rdx callq 0x9400 leaq 0x68(%rbx), %r15 movl 0x40(%rbx), %eax decl %eax movl %eax, (%r12) movq 0x78(%rbx), %rsi leaq 0xc(%rsp), %rdx movq %r15, %rdi callq 0x997a movq %r15, %rdi callq 0x94aa movq %rax, %r14 movq %r15, %rdi callq 0x94d2 movl $0xffffffff, %ebp # imm = 0xFFFFFFFF cmpq %rax, %r14 je 0x8cfd movq %rax, %r15 subq %r14, %rax sarq $0x2, %rax bsrq %rax, %rdx xorl $0x3f, %edx addl %edx, %edx xorq $0x7e, %rdx movq %r14, %rdi movq %r15, %rsi callq 0x9c2b movq %r14, %rdi movq %r15, %rsi callq 0x9d0e addl 0x40(%rbx), %ebp movl %ebp, 0x44(%rbx) movl $0x1, %eax addq $0x10, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq nop
_ZN8Elevetor8checkoutEv: push rbp push r15 push r14 push r12 push rbx sub rsp, 10h mov rbx, rdi mov ecx, [rdi+48h] xor eax, eax cmp ecx, 2 jz loc_8C0B cmp ecx, 1 jnz loc_8D08 mov r14, [rbx+10h] mov rcx, [r14+10h] test rcx, rcx jle loc_8D08 mov edx, [rbx+40h] inc edx mov rsi, [r14+8] shl rcx, 2 xor eax, eax xor edi, edi loc_8B68: cmp rcx, rdi jz loc_8D08 lea r8, [rdi+4] cmp [rsi+rdi], edx mov rdi, r8 jnz short loc_8B68 test r8, r8 jz loc_8D08 mov rdi, r14 call _ZN5QListIiE5beginEv; QList<int>::begin(void) mov r15, rax mov rdi, [rbx+10h] call _ZN5QListIiE3endEv; QList<int>::end(void) mov ecx, [rbx+40h] inc ecx lea r12, [rsp+38h+var_2C] mov [r12], ecx mov rdi, r15 mov rsi, rax mov rdx, r12 call _ZSt11__remove_ifIN5QListIiE8iteratorEN9__gnu_cxx5__ops16_Iter_equals_valIKiEEET_S8_S8_T0_; std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>>(QList<int>::iterator,QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>) mov r15, rax mov rdi, [rbx+10h] call _ZN5QListIiE3endEv; QList<int>::end(void) mov rdi, r14 mov rsi, r15 mov rdx, rax call _ZN5QListIiE5eraseENS0_14const_iteratorES1_; QList<int>::erase(QList<int>::const_iterator,QList<int>::const_iterator) lea r15, [rbx+68h] mov eax, [rbx+40h] inc eax mov [r12], eax mov rsi, [rbx+78h] lea rdx, [rsp+38h+var_2C] mov rdi, r15 call _ZN9QtPrivate12QPodArrayOpsIiE7emplaceIJRiEEEvxDpOT_; QtPrivate::QPodArrayOps<int>::emplace<int &>(long long,int &) mov rdi, r15 call _ZN5QListIiE5beginEv; QList<int>::begin(void) mov r14, rax mov rdi, r15 call _ZN5QListIiE3endEv; QList<int>::end(void) mov ebp, 1 jmp loc_8CCB loc_8C0B: mov r14, [rbx+18h] mov rcx, [r14+10h] test rcx, rcx jle loc_8D08 mov edx, [rbx+40h] dec edx mov rsi, [r14+8] shl rcx, 2 xor eax, eax xor edi, edi loc_8C2D: cmp rcx, rdi jz loc_8D08 lea r8, [rdi+4] cmp [rsi+rdi], edx mov rdi, r8 jnz short loc_8C2D test r8, r8 jz loc_8D08 mov rdi, r14 call _ZN5QListIiE5beginEv; QList<int>::begin(void) mov r15, rax mov rdi, [rbx+18h] call _ZN5QListIiE3endEv; QList<int>::end(void) mov ecx, [rbx+40h] dec ecx lea r12, [rsp+38h+var_2C] mov [r12], ecx mov rdi, r15 mov rsi, rax mov rdx, r12 call _ZSt11__remove_ifIN5QListIiE8iteratorEN9__gnu_cxx5__ops16_Iter_equals_valIKiEEET_S8_S8_T0_; std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>>(QList<int>::iterator,QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>) mov r15, rax mov rdi, [rbx+18h] call _ZN5QListIiE3endEv; QList<int>::end(void) mov rdi, r14 mov rsi, r15 mov rdx, rax call _ZN5QListIiE5eraseENS0_14const_iteratorES1_; QList<int>::erase(QList<int>::const_iterator,QList<int>::const_iterator) lea r15, [rbx+68h] mov eax, [rbx+40h] dec eax mov [r12], eax mov rsi, [rbx+78h] lea rdx, [rsp+38h+var_2C] mov rdi, r15 call _ZN9QtPrivate12QPodArrayOpsIiE7emplaceIJRiEEEvxDpOT_; QtPrivate::QPodArrayOps<int>::emplace<int &>(long long,int &) mov rdi, r15 call _ZN5QListIiE5beginEv; QList<int>::begin(void) mov r14, rax mov rdi, r15 call _ZN5QListIiE3endEv; QList<int>::end(void) mov ebp, 0FFFFFFFFh loc_8CCB: cmp r14, rax jz short loc_8CFD mov r15, rax sub rax, r14 sar rax, 2 bsr rdx, rax xor edx, 3Fh add edx, edx xor rdx, 7Eh mov rdi, r14 mov rsi, r15 call _ZSt16__introsort_loopIN5QListIiE8iteratorExN9__gnu_cxx5__ops15_Iter_less_iterEEvT_S6_T0_T1_; std::__introsort_loop<QList<int>::iterator,long long,__gnu_cxx::__ops::_Iter_less_iter>(QList<int>::iterator,QList<int>::iterator,long long,__gnu_cxx::__ops::_Iter_less_iter) mov rdi, r14 mov rsi, r15 call _ZSt22__final_insertion_sortIN5QListIiE8iteratorEN9__gnu_cxx5__ops15_Iter_less_iterEEvT_S6_T0_; std::__final_insertion_sort<QList<int>::iterator,__gnu_cxx::__ops::_Iter_less_iter>(QList<int>::iterator,QList<int>::iterator,__gnu_cxx::__ops::_Iter_less_iter) loc_8CFD: add ebp, [rbx+40h] mov [rbx+44h], ebp mov eax, 1 loc_8D08: add rsp, 10h pop rbx pop r12 pop r14 pop r15 pop rbp retn
long long Elevetor::checkout(Elevetor *this) { int v2; // ecx long long result; // rax long long v4; // r14 long long v5; // rcx int v6; // edx long long v7; // rcx long long v8; // rdi long long v9; // r8 bool v10; // zf long long v11; // r15 long long v12; // rax long long v13; // r15 long long v14; // rax long long v15; // r14 long long v16; // rax int v17; // ebp long long v18; // r14 long long v19; // rcx int v20; // edx long long v21; // rcx long long v22; // rdi long long v23; // r8 long long v24; // r15 long long v25; // rax long long v26; // r15 long long v27; // rax long long v28; // r15 unsigned long long v29; // rdx _DWORD v30[11]; // [rsp+Ch] [rbp-2Ch] BYREF v2 = *((_DWORD *)this + 18); result = 0LL; if ( v2 == 2 ) { v18 = *((_QWORD *)this + 3); v19 = *(_QWORD *)(v18 + 16); if ( v19 > 0 ) { v20 = *((_DWORD *)this + 16) - 1; v21 = 4 * v19; result = 0LL; v22 = 0LL; while ( v21 != v22 ) { v23 = v22 + 4; v10 = *(_DWORD *)(*(_QWORD *)(v18 + 8) + v22) == v20; v22 += 4LL; if ( v10 ) { if ( v23 ) { v24 = QList<int>::begin(*((_QWORD *)this + 3)); v25 = QList<int>::end(*((_QWORD *)this + 3)); v30[0] = *((_DWORD *)this + 16) - 1; v26 = std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>>(v24, v25, v30); v27 = QList<int>::end(*((_QWORD *)this + 3)); QList<int>::erase(v18, v26, v27); v30[0] = *((_DWORD *)this + 16) - 1; QtPrivate::QPodArrayOps<int>::emplace<int &>((char *)this + 104, *((_QWORD *)this + 15), v30); v15 = QList<int>::begin((char *)this + 104); v16 = QList<int>::end((char *)this + 104); v17 = -1; LABEL_15: if ( v15 != v16 ) { v28 = v16; _BitScanReverse64(&v29, (v16 - v15) >> 2); std::__introsort_loop<QList<int>::iterator,long long,__gnu_cxx::__ops::_Iter_less_iter>( v15, v16, (2 * ((unsigned int)v29 ^ 0x3F)) ^ 0x7ELL); std::__final_insertion_sort<QList<int>::iterator,__gnu_cxx::__ops::_Iter_less_iter>(v15, v28); } *((_DWORD *)this + 17) = *((_DWORD *)this + 16) + v17; return 1LL; } return result; } } } } else if ( v2 == 1 ) { v4 = *((_QWORD *)this + 2); v5 = *(_QWORD *)(v4 + 16); if ( v5 > 0 ) { v6 = *((_DWORD *)this + 16) + 1; v7 = 4 * v5; result = 0LL; v8 = 0LL; while ( v7 != v8 ) { v9 = v8 + 4; v10 = *(_DWORD *)(*(_QWORD *)(v4 + 8) + v8) == v6; v8 += 4LL; if ( v10 ) { if ( !v9 ) return result; v11 = QList<int>::begin(*((_QWORD *)this + 2)); v12 = QList<int>::end(*((_QWORD *)this + 2)); v30[0] = *((_DWORD *)this + 16) + 1; v13 = std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int const>>(v11, v12, v30); v14 = QList<int>::end(*((_QWORD *)this + 2)); QList<int>::erase(v4, v13, v14); v30[0] = *((_DWORD *)this + 16) + 1; QtPrivate::QPodArrayOps<int>::emplace<int &>((char *)this + 104, *((_QWORD *)this + 15), v30); v15 = QList<int>::begin((char *)this + 104); v16 = QList<int>::end((char *)this + 104); v17 = 1; goto LABEL_15; } } } } return result; }
checkout: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x10 MOV RBX,RDI MOV ECX,dword ptr [RDI + 0x48] XOR EAX,EAX CMP ECX,0x2 JZ 0x00108c0b CMP ECX,0x1 JNZ 0x00108d08 MOV R14,qword ptr [RBX + 0x10] MOV RCX,qword ptr [R14 + 0x10] TEST RCX,RCX JLE 0x00108d08 MOV EDX,dword ptr [RBX + 0x40] INC EDX MOV RSI,qword ptr [R14 + 0x8] SHL RCX,0x2 XOR EAX,EAX XOR EDI,EDI LAB_00108b68: CMP RCX,RDI JZ 0x00108d08 LEA R8,[RDI + 0x4] CMP dword ptr [RSI + RDI*0x1],EDX MOV RDI,R8 JNZ 0x00108b68 TEST R8,R8 JZ 0x00108d08 MOV RDI,R14 CALL 0x001094aa MOV R15,RAX MOV RDI,qword ptr [RBX + 0x10] CALL 0x001094d2 MOV ECX,dword ptr [RBX + 0x40] INC ECX LEA R12,[RSP + 0xc] MOV dword ptr [R12],ECX MOV RDI,R15 MOV RSI,RAX MOV RDX,R12 CALL 0x00109890 MOV R15,RAX MOV RDI,qword ptr [RBX + 0x10] CALL 0x001094d2 MOV RDI,R14 MOV RSI,R15 MOV RDX,RAX CALL 0x00109400 LEA R15,[RBX + 0x68] MOV EAX,dword ptr [RBX + 0x40] INC EAX MOV dword ptr [R12],EAX MOV RSI,qword ptr [RBX + 0x78] LEA RDX,[RSP + 0xc] MOV RDI,R15 CALL 0x0010997a MOV RDI,R15 CALL 0x001094aa MOV R14,RAX MOV RDI,R15 CALL 0x001094d2 MOV EBP,0x1 JMP 0x00108ccb LAB_00108c0b: MOV R14,qword ptr [RBX + 0x18] MOV RCX,qword ptr [R14 + 0x10] TEST RCX,RCX JLE 0x00108d08 MOV EDX,dword ptr [RBX + 0x40] DEC EDX MOV RSI,qword ptr [R14 + 0x8] SHL RCX,0x2 XOR EAX,EAX XOR EDI,EDI LAB_00108c2d: CMP RCX,RDI JZ 0x00108d08 LEA R8,[RDI + 0x4] CMP dword ptr [RSI + RDI*0x1],EDX MOV RDI,R8 JNZ 0x00108c2d TEST R8,R8 JZ 0x00108d08 MOV RDI,R14 CALL 0x001094aa MOV R15,RAX MOV RDI,qword ptr [RBX + 0x18] CALL 0x001094d2 MOV ECX,dword ptr [RBX + 0x40] DEC ECX LEA R12,[RSP + 0xc] MOV dword ptr [R12],ECX MOV RDI,R15 MOV RSI,RAX MOV RDX,R12 CALL 0x00109890 MOV R15,RAX MOV RDI,qword ptr [RBX + 0x18] CALL 0x001094d2 MOV RDI,R14 MOV RSI,R15 MOV RDX,RAX CALL 0x00109400 LEA R15,[RBX + 0x68] MOV EAX,dword ptr [RBX + 0x40] DEC EAX MOV dword ptr [R12],EAX MOV RSI,qword ptr [RBX + 0x78] LEA RDX,[RSP + 0xc] MOV RDI,R15 CALL 0x0010997a MOV RDI,R15 CALL 0x001094aa MOV R14,RAX MOV RDI,R15 CALL 0x001094d2 MOV EBP,0xffffffff LAB_00108ccb: CMP R14,RAX JZ 0x00108cfd MOV R15,RAX SUB RAX,R14 SAR RAX,0x2 BSR RDX,RAX XOR EDX,0x3f ADD EDX,EDX XOR RDX,0x7e MOV RDI,R14 MOV RSI,R15 CALL 0x00109c2b MOV RDI,R14 MOV RSI,R15 CALL 0x00109d0e LAB_00108cfd: ADD EBP,dword ptr [RBX + 0x40] MOV dword ptr [RBX + 0x44],EBP MOV EAX,0x1 LAB_00108d08: ADD RSP,0x10 POP RBX POP R12 POP R14 POP R15 POP RBP RET
/* Elevetor::checkout() */ int8 __thiscall Elevetor::checkout(Elevetor *this) { QPodArrayOps<int> *pQVar1; int *piVar2; QList<int> *pQVar3; long lVar4; int8 uVar5; int8 uVar6; long lVar7; long lVar8; ulong uVar9; int iVar10; int local_2c; if (*(int *)(this + 0x48) == 2) { pQVar3 = *(QList<int> **)(this + 0x18); if (*(long *)(pQVar3 + 0x10) < 1) { return 0; } lVar7 = 0; do { if (*(long *)(pQVar3 + 0x10) << 2 == lVar7) { return 0; } lVar8 = lVar7 + 4; piVar2 = (int *)(*(long *)(pQVar3 + 8) + lVar7); lVar7 = lVar8; } while (*piVar2 != *(int *)(this + 0x40) + -1); if (lVar8 == 0) { return 0; } uVar5 = QList<int>::begin(pQVar3); uVar6 = QList<int>::end(*(QList<int> **)(this + 0x18)); local_2c = *(int *)(this + 0x40) + -1; uVar5 = std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int_const>> (uVar5,uVar6,&local_2c); uVar6 = QList<int>::end(*(QList<int> **)(this + 0x18)); QList<int>::erase(pQVar3,uVar5,uVar6); pQVar1 = (QPodArrayOps<int> *)(this + 0x68); local_2c = *(int *)(this + 0x40) + -1; QtPrivate::QPodArrayOps<int>::emplace<int&>(pQVar1,*(longlong *)(this + 0x78),&local_2c); lVar7 = QList<int>::begin((QList<int> *)pQVar1); lVar8 = QList<int>::end((QList<int> *)pQVar1); iVar10 = -1; } else { if (*(int *)(this + 0x48) != 1) { return 0; } pQVar3 = *(QList<int> **)(this + 0x10); if (*(long *)(pQVar3 + 0x10) < 1) { return 0; } lVar7 = 0; do { if (*(long *)(pQVar3 + 0x10) << 2 == lVar7) { return 0; } lVar8 = lVar7 + 4; piVar2 = (int *)(*(long *)(pQVar3 + 8) + lVar7); lVar7 = lVar8; } while (*piVar2 != *(int *)(this + 0x40) + 1); if (lVar8 == 0) { return 0; } uVar5 = QList<int>::begin(pQVar3); uVar6 = QList<int>::end(*(QList<int> **)(this + 0x10)); local_2c = *(int *)(this + 0x40) + 1; uVar5 = std::__remove_if<QList<int>::iterator,__gnu_cxx::__ops::_Iter_equals_val<int_const>> (uVar5,uVar6,&local_2c); uVar6 = QList<int>::end(*(QList<int> **)(this + 0x10)); QList<int>::erase(pQVar3,uVar5,uVar6); pQVar1 = (QPodArrayOps<int> *)(this + 0x68); local_2c = *(int *)(this + 0x40) + 1; QtPrivate::QPodArrayOps<int>::emplace<int&>(pQVar1,*(longlong *)(this + 0x78),&local_2c); lVar7 = QList<int>::begin((QList<int> *)pQVar1); lVar8 = QList<int>::end((QList<int> *)pQVar1); iVar10 = 1; } if (lVar7 != lVar8) { uVar9 = lVar8 - lVar7 >> 2; lVar4 = 0x3f; if (uVar9 != 0) { for (; uVar9 >> lVar4 == 0; lVar4 = lVar4 + -1) { } } std::__introsort_loop<QList<int>::iterator,long_long,__gnu_cxx::__ops::_Iter_less_iter> (lVar7,lVar8,((uint)lVar4 ^ 0x3f) * 2 ^ 0x7e); std::__final_insertion_sort<QList<int>::iterator,__gnu_cxx::__ops::_Iter_less_iter>(lVar7,lVar8) ; } *(int *)(this + 0x44) = iVar10 + *(int *)(this + 0x40); return 1; }
31,045
check_message_format
eloqsql/extra/comp_err.c
static int check_message_format(struct errors *err, const char* mess) { struct message *first; DBUG_ENTER("check_message_format"); /* Get first message(if any) */ if ((err->msg).elements == 0) DBUG_RETURN(0); /* No previous message to compare against */ first= dynamic_element(&err->msg, 0, struct message*); DBUG_ASSERT(first != NULL); if (checksum_format_specifier(first->text) != checksum_format_specifier(mess)) { /* Check sum of format specifiers failed, they should be equal */ DBUG_RETURN(1); } DBUG_RETURN(0); }
O0
c
check_message_format: pushq %rbp movq %rsp, %rbp subq $0x30, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movq -0x10(%rbp), %rax cmpl $0x0, 0x30(%rax) jne 0x27435 jmp 0x2742c movl $0x0, -0x4(%rbp) jmp 0x27479 movq -0x10(%rbp), %rax movq 0x28(%rax), %rax movq %rax, -0x20(%rbp) jmp 0x27443 movq -0x20(%rbp), %rax movq 0x8(%rax), %rdi callq 0x27a80 movl %eax, -0x24(%rbp) movq -0x18(%rbp), %rdi callq 0x27a80 movl %eax, %ecx movl -0x24(%rbp), %eax cmpl %ecx, %eax je 0x27470 jmp 0x27467 movl $0x1, -0x4(%rbp) jmp 0x27479 jmp 0x27472 movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x30, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
check_message_format: push rbp mov rbp, rsp sub rsp, 30h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov rax, [rbp+var_10] cmp dword ptr [rax+30h], 0 jnz short loc_27435 jmp short $+2 loc_2742C: mov [rbp+var_4], 0 jmp short loc_27479 loc_27435: mov rax, [rbp+var_10] mov rax, [rax+28h] mov [rbp+var_20], rax jmp short $+2 loc_27443: mov rax, [rbp+var_20] mov rdi, [rax+8] call checksum_format_specifier mov [rbp+var_24], eax mov rdi, [rbp+var_18] call checksum_format_specifier mov ecx, eax mov eax, [rbp+var_24] cmp eax, ecx jz short loc_27470 jmp short $+2 loc_27467: mov [rbp+var_4], 1 jmp short loc_27479 loc_27470: jmp short $+2 loc_27472: mov [rbp+var_4], 0 loc_27479: mov eax, [rbp+var_4] add rsp, 30h pop rbp retn
_BOOL8 check_message_format(long long a1, long long a2) { int v3; // [rsp+Ch] [rbp-24h] if ( *(_DWORD *)(a1 + 48) ) { v3 = checksum_format_specifier(*(_QWORD *)(*(_QWORD *)(a1 + 40) + 8LL)); return v3 != checksum_format_specifier(a2); } else { return 0; } }
check_message_format: PUSH RBP MOV RBP,RSP SUB RSP,0x30 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x30],0x0 JNZ 0x00127435 JMP 0x0012742c LAB_0012742c: MOV dword ptr [RBP + -0x4],0x0 JMP 0x00127479 LAB_00127435: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x28] MOV qword ptr [RBP + -0x20],RAX JMP 0x00127443 LAB_00127443: MOV RAX,qword ptr [RBP + -0x20] MOV RDI,qword ptr [RAX + 0x8] CALL 0x00127a80 MOV dword ptr [RBP + -0x24],EAX MOV RDI,qword ptr [RBP + -0x18] CALL 0x00127a80 MOV ECX,EAX MOV EAX,dword ptr [RBP + -0x24] CMP EAX,ECX JZ 0x00127470 JMP 0x00127467 LAB_00127467: MOV dword ptr [RBP + -0x4],0x1 JMP 0x00127479 LAB_00127470: JMP 0x00127472 LAB_00127472: MOV dword ptr [RBP + -0x4],0x0 LAB_00127479: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x30 POP RBP RET
int4 check_message_format(long param_1,int8 param_2) { int iVar1; int iVar2; int4 local_c; if (*(int *)(param_1 + 0x30) == 0) { local_c = 0; } else { iVar1 = checksum_format_specifier(*(int8 *)(*(long *)(param_1 + 0x28) + 8)); iVar2 = checksum_format_specifier(param_2); if (iVar1 == iVar2) { local_c = 0; } else { local_c = 1; } } return local_c; }
31,046
google::protobuf::GlobalReplaceSubstring(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*)
aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/strutil.cc
int GlobalReplaceSubstring(const std::string &substring, const std::string &replacement, std::string *s) { GOOGLE_CHECK(s != nullptr); if (s->empty() || substring.empty()) return 0; std::string tmp; int num_replacements = 0; int pos = 0; for (StringPiece::size_type match_pos = s->find(substring.data(), pos, substring.length()); match_pos != std::string::npos; pos = match_pos + substring.length(), match_pos = s->find(substring.data(), pos, substring.length())) { ++num_replacements; // Append the original content before the match. tmp.append(*s, pos, match_pos - pos); // Append the replacement for the match. tmp.append(replacement.begin(), replacement.end()); } // Append the content after the last match. If no replacements were made, the // original string is left untouched. if (num_replacements > 0) { tmp.append(*s, pos, s->length() - pos); s->swap(tmp); } return num_replacements; }
O0
cpp
google::protobuf::GlobalReplaceSubstring(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*): subq $0x108, %rsp # imm = 0x108 movq %rdi, 0xf8(%rsp) movq %rsi, 0xf0(%rsp) movq %rdx, 0xe8(%rsp) movq 0xe8(%rsp), %rax movb $0x0, 0xaf(%rsp) cmpq $0x0, %rax je 0x2dc07 jmp 0x2dc60 leaq 0x1bf082(%rip), %rdx # 0x1ecc90 leaq 0xb0(%rsp), %rdi movq %rdi, 0x48(%rsp) movl $0x3, %esi movl $0x650, %ecx # imm = 0x650 callq 0x237e0 movq 0x48(%rsp), %rdi movb $0x1, 0xaf(%rsp) leaq 0x1bf482(%rip), %rsi # 0x1ed0c0 callq 0x230a0 movq %rax, 0x50(%rsp) jmp 0x2dc4a movq 0x50(%rsp), %rsi leaq 0x9b(%rsp), %rdi callq 0x23250 jmp 0x2dc5e jmp 0x2dc60 testb $0x1, 0xaf(%rsp) jne 0x2dc6c jmp 0x2dc79 leaq 0xb0(%rsp), %rdi callq 0x23820 movq 0xe8(%rsp), %rdi callq 0x147f0 testb $0x1, %al jne 0x2dc9d movq 0xf8(%rsp), %rdi callq 0x147f0 testb $0x1, %al jne 0x2dc9d jmp 0x2dcdf movl $0x0, 0x104(%rsp) jmp 0x2dec4 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xa0(%rsp) movl %eax, 0x9c(%rsp) testb $0x1, 0xaf(%rsp) jne 0x2dccd jmp 0x2dcda leaq 0xb0(%rsp), %rdi callq 0x23820 jmp 0x2ded3 leaq 0x78(%rsp), %rdi callq 0x13620 movl $0x0, 0x74(%rsp) movl $0x0, 0x70(%rsp) movq 0xe8(%rsp), %rax movq %rax, 0x30(%rsp) movq 0xf8(%rsp), %rdi callq 0x174a0 movq %rax, 0x38(%rsp) movslq 0x70(%rsp), %rax movq %rax, 0x40(%rsp) movq 0xf8(%rsp), %rdi callq 0x14810 movq 0x30(%rsp), %rdi movq 0x38(%rsp), %rsi movq 0x40(%rsp), %rdx movq %rax, %rcx callq 0x1dac0 movq %rax, 0x68(%rsp) cmpq $-0x1, 0x68(%rsp) je 0x2de5b movl 0x74(%rsp), %eax incl %eax movl %eax, 0x74(%rsp) movq 0xe8(%rsp), %rsi movslq 0x70(%rsp), %rdx movq 0x68(%rsp), %rcx subq %rdx, %rcx leaq 0x78(%rsp), %rdi callq 0x13610 jmp 0x2dd82 movq 0xf0(%rsp), %rdi callq 0x13410 movq %rax, 0x60(%rsp) movq 0xf0(%rsp), %rdi callq 0x137b0 movq %rax, 0x58(%rsp) movq 0x60(%rsp), %rsi movq 0x58(%rsp), %rdx leaq 0x78(%rsp), %rdi callq 0x30ab0 jmp 0x2ddbc jmp 0x2ddbe movq 0x68(%rsp), %rax movq %rax, 0x10(%rsp) movq 0xf8(%rsp), %rdi callq 0x14810 movq %rax, %rcx movq 0x10(%rsp), %rax addq %rcx, %rax movl %eax, 0x70(%rsp) movq 0xe8(%rsp), %rax movq %rax, 0x18(%rsp) movq 0xf8(%rsp), %rdi callq 0x174a0 movq %rax, 0x20(%rsp) movslq 0x70(%rsp), %rax movq %rax, 0x28(%rsp) movq 0xf8(%rsp), %rdi callq 0x14810 movq 0x18(%rsp), %rdi movq 0x20(%rsp), %rsi movq 0x28(%rsp), %rdx movq %rax, %rcx callq 0x1dac0 movq %rax, 0x68(%rsp) jmp 0x2dd4b movq %rax, %rcx movl %edx, %eax movq %rcx, 0xa0(%rsp) movl %eax, 0x9c(%rsp) leaq 0x78(%rsp), %rdi callq 0x13290 jmp 0x2ded3 cmpl $0x0, 0x74(%rsp) jle 0x2deaf movq 0xe8(%rsp), %rdi movq %rdi, (%rsp) movslq 0x70(%rsp), %rax movq %rax, 0x8(%rsp) callq 0x14810 movq (%rsp), %rsi movq 0x8(%rsp), %rdx movq %rax, %rcx movslq 0x70(%rsp), %rax subq %rax, %rcx leaq 0x78(%rsp), %rdi callq 0x13610 jmp 0x2de9d movq 0xe8(%rsp), %rdi leaq 0x78(%rsp), %rsi callq 0x19bb0 movl 0x74(%rsp), %eax movl %eax, 0x104(%rsp) leaq 0x78(%rsp), %rdi callq 0x13290 movl 0x104(%rsp), %eax addq $0x108, %rsp # imm = 0x108 retq movq 0xa0(%rsp), %rdi callq 0x13750
_ZN6google8protobuf22GlobalReplaceSubstringERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_PS6_: sub rsp, 108h mov [rsp+108h+var_10], rdi mov [rsp+108h+var_18], rsi mov [rsp+108h+var_20], rdx mov rax, [rsp+108h+var_20] mov [rsp+108h+var_59], 0 cmp rax, 0 jz short loc_2DC07 jmp short loc_2DC60 loc_2DC07: lea rdx, aWorkspaceLlm4b_3; "/workspace/llm4binary/github2025/aimrt_"... lea rdi, [rsp+108h+var_58] mov [rsp+108h+var_C0], rdi mov esi, 3 mov ecx, 650h call _ZN6google8protobuf8internal10LogMessageC2ENS0_8LogLevelEPKci; google::protobuf::internal::LogMessage::LogMessage(google::protobuf::LogLevel,char const*,int) mov rdi, [rsp+108h+var_C0] mov [rsp+108h+var_59], 1 lea rsi, aCheckFailedSNu; "CHECK failed: s != nullptr: " call _ZN6google8protobuf8internal10LogMessagelsEPKc; google::protobuf::internal::LogMessage::operator<<(char const*) mov [rsp+108h+var_B8], rax jmp short $+2 loc_2DC4A: mov rsi, [rsp+108h+var_B8] lea rdi, [rsp+108h+var_6D] call _ZN6google8protobuf8internal11LogFinisheraSERNS1_10LogMessageE; google::protobuf::internal::LogFinisher::operator=(google::protobuf::internal::LogMessage &) jmp short $+2 loc_2DC5E: jmp short $+2 loc_2DC60: test [rsp+108h+var_59], 1 jnz short loc_2DC6C jmp short loc_2DC79 loc_2DC6C: lea rdi, [rsp+108h+var_58]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() loc_2DC79: mov rdi, [rsp+108h+var_20] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void) test al, 1 jnz short loc_2DC9D mov rdi, [rsp+108h+var_10] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5emptyEv; std::string::empty(void) test al, 1 jnz short loc_2DC9D jmp short loc_2DCDF loc_2DC9D: mov [rsp+108h+var_4], 0 jmp loc_2DEC4 mov rcx, rax mov eax, edx mov [rsp+arg_98], rcx mov [rsp+arg_94], eax test [rsp+arg_A7], 1 jnz short loc_2DCCD jmp short loc_2DCDA loc_2DCCD: lea rdi, [rsp+arg_A8]; this call _ZN6google8protobuf8internal10LogMessageD2Ev; google::protobuf::internal::LogMessage::~LogMessage() loc_2DCDA: jmp loc_2DED3 loc_2DCDF: lea rdi, [rsp+108h+var_90] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC1Ev; std::string::basic_string(void) mov [rsp+108h+var_94], 0 mov [rsp+108h+var_98], 0 mov rax, [rsp+108h+var_20] mov [rsp+108h+var_D8], rax mov rdi, [rsp+108h+var_10] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv; std::string::data(void) mov [rsp+108h+var_D0], rax movsxd rax, [rsp+108h+var_98] mov [rsp+108h+var_C8], rax mov rdi, [rsp+108h+var_10] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv; std::string::length(void) mov rdi, [rsp+108h+var_D8] mov rsi, [rsp+108h+var_D0] mov rdx, [rsp+108h+var_C8] mov rcx, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm; std::string::find(char const*,ulong,ulong) mov [rsp+108h+var_A0], rax loc_2DD4B: cmp [rsp+108h+var_A0], 0FFFFFFFFFFFFFFFFh jz loc_2DE5B mov eax, [rsp+108h+var_94] inc eax mov [rsp+108h+var_94], eax mov rsi, [rsp+108h+var_20] movsxd rdx, [rsp+108h+var_98] mov rcx, [rsp+108h+var_A0] sub rcx, rdx lea rdi, [rsp+108h+var_90] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_mm; std::string::append(std::string const&,ulong,ulong) jmp short $+2 loc_2DD82: mov rdi, [rsp+108h+var_18] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5beginEv; std::string::begin(void) mov [rsp+108h+var_A8], rax mov rdi, [rsp+108h+var_18] call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE3endEv; std::string::end(void) mov [rsp+108h+var_B0], rax mov rsi, [rsp+108h+var_A8] mov rdx, [rsp+108h+var_B0] lea rdi, [rsp+108h+var_90] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendIN9__gnu_cxx17__normal_iteratorIPKcS4_EEvEERS4_T_SC_; std::string::append<__gnu_cxx::__normal_iterator<char const*,std::string>,void>(__gnu_cxx::__normal_iterator<char const*,std::string>,__gnu_cxx::__normal_iterator<char const*,std::string>) jmp short $+2 loc_2DDBC: jmp short $+2 loc_2DDBE: mov rax, [rsp+108h+var_A0] mov [rsp+108h+var_F8], rax mov rdi, [rsp+108h+var_10] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv; std::string::length(void) mov rcx, rax mov rax, [rsp+108h+var_F8] add rax, rcx mov [rsp+108h+var_98], eax mov rax, [rsp+108h+var_20] mov [rsp+108h+var_F0], rax mov rdi, [rsp+108h+var_10] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv; std::string::data(void) mov [rsp+108h+var_E8], rax movsxd rax, [rsp+108h+var_98] mov [rsp+108h+var_E0], rax mov rdi, [rsp+108h+var_10] call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv; std::string::length(void) mov rdi, [rsp+108h+var_F0] mov rsi, [rsp+108h+var_E8] mov rdx, [rsp+108h+var_E0] mov rcx, rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm; std::string::find(char const*,ulong,ulong) mov [rsp+108h+var_A0], rax jmp loc_2DD4B mov rcx, rax mov eax, edx mov [rsp+arg_98], rcx mov [rsp+arg_94], eax lea rdi, [rsp+arg_70] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() jmp short loc_2DED3 loc_2DE5B: cmp [rsp+108h+var_94], 0 jle short loc_2DEAF mov rdi, [rsp+108h+var_20] mov [rsp+108h+var_108], rdi movsxd rax, [rsp+108h+var_98] mov [rsp+108h+var_100], rax call _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv; std::string::length(void) mov rsi, [rsp+108h+var_108] mov rdx, [rsp+108h+var_100] mov rcx, rax movsxd rax, [rsp+108h+var_98] sub rcx, rax lea rdi, [rsp+108h+var_90] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendERKS4_mm; std::string::append(std::string const&,ulong,ulong) jmp short $+2 loc_2DE9D: mov rdi, [rsp+108h+var_20] lea rsi, [rsp+108h+var_90] call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4swapERS4_; std::string::swap(std::string&) loc_2DEAF: mov eax, [rsp+108h+var_94] mov [rsp+108h+var_4], eax lea rdi, [rsp+108h+var_90] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED1Ev; std::string::~string() loc_2DEC4: mov eax, [rsp+108h+var_4] add rsp, 108h retn loc_2DED3: mov rdi, [rsp+arg_98] call __Unwind_Resume
long long google::protobuf::GlobalReplaceSubstring(long long a1, long long a2, _QWORD *a3) { unsigned long long v3; // rax unsigned long long v4; // rax long long v5; // rax _QWORD *v7; // [rsp+0h] [rbp-108h] _QWORD *v8; // [rsp+18h] [rbp-F0h] char *v9; // [rsp+20h] [rbp-E8h] _QWORD *v10; // [rsp+30h] [rbp-D8h] char *v11; // [rsp+38h] [rbp-D0h] google::protobuf::internal::LogMessage *v12; // [rsp+50h] [rbp-B8h] long long v13; // [rsp+58h] [rbp-B0h] long long v14; // [rsp+60h] [rbp-A8h] long long i; // [rsp+68h] [rbp-A0h] int v16; // [rsp+70h] [rbp-98h] int v17; // [rsp+74h] [rbp-94h] _QWORD v18[4]; // [rsp+78h] [rbp-90h] BYREF _BYTE v19[20]; // [rsp+9Bh] [rbp-6Dh] BYREF char v20; // [rsp+AFh] [rbp-59h] _BYTE v21[56]; // [rsp+B0h] [rbp-58h] BYREF _QWORD *v22; // [rsp+E8h] [rbp-20h] long long v23; // [rsp+F0h] [rbp-18h] long long v24; // [rsp+F8h] [rbp-10h] unsigned int v25; // [rsp+104h] [rbp-4h] v24 = a1; v23 = a2; v22 = a3; v20 = 0; if ( !a3 ) { google::protobuf::internal::LogMessage::LogMessage( (long long)v21, 3, (long long)"/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/strutil.cc", 1616); v20 = 1; v12 = (google::protobuf::internal::LogMessage *)google::protobuf::internal::LogMessage::operator<<( (long long)v21, (long long)"CHECK failed: s != nullptr: "); google::protobuf::internal::LogFinisher::operator=((long long)v19, v12); } if ( (v20 & 1) != 0 ) google::protobuf::internal::LogMessage::~LogMessage((google::protobuf::internal::LogMessage *)v21); if ( std::string::empty((long long)v22) || std::string::empty(v24) ) { return 0; } else { std::string::basic_string(v18); v17 = 0; v16 = 0; v10 = v22; v11 = (char *)std::string::data(v24); v3 = std::string::length(v24); for ( i = std::string::find((long long)v10, v11, 0LL, v3); i != -1; i = std::string::find((long long)v8, v9, v16, v4) ) { ++v17; std::string::append(v18, v22, v16, i - v16); v14 = std::string::begin(v23); v13 = std::string::end(v23); std::string::append<__gnu_cxx::__normal_iterator<char const*,std::string>,void>(v18, v14, v13); v16 = std::string::length(v24) + i; v8 = v22; v9 = (char *)std::string::data(v24); v4 = std::string::length(v24); } if ( v17 > 0 ) { v7 = v22; v5 = std::string::length((long long)v22); std::string::append(v18, v7, v16, v5 - v16); std::string::swap(v22, v18); } v25 = v17; std::string::~string(v18); } return v25; }
GlobalReplaceSubstring: SUB RSP,0x108 MOV qword ptr [RSP + 0xf8],RDI MOV qword ptr [RSP + 0xf0],RSI MOV qword ptr [RSP + 0xe8],RDX MOV RAX,qword ptr [RSP + 0xe8] MOV byte ptr [RSP + 0xaf],0x0 CMP RAX,0x0 JZ 0x0012dc07 JMP 0x0012dc60 LAB_0012dc07: LEA RDX,[0x2ecc90] LEA RDI,[RSP + 0xb0] MOV qword ptr [RSP + 0x48],RDI MOV ESI,0x3 MOV ECX,0x650 CALL 0x001237e0 MOV RDI,qword ptr [RSP + 0x48] MOV byte ptr [RSP + 0xaf],0x1 LAB_0012dc37: LEA RSI,[0x2ed0c0] CALL 0x001230a0 MOV qword ptr [RSP + 0x50],RAX JMP 0x0012dc4a LAB_0012dc4a: MOV RSI,qword ptr [RSP + 0x50] LEA RDI,[RSP + 0x9b] CALL 0x00123250 JMP 0x0012dc5e LAB_0012dc5e: JMP 0x0012dc60 LAB_0012dc60: TEST byte ptr [RSP + 0xaf],0x1 JNZ 0x0012dc6c JMP 0x0012dc79 LAB_0012dc6c: LEA RDI,[RSP + 0xb0] CALL 0x00123820 LAB_0012dc79: MOV RDI,qword ptr [RSP + 0xe8] CALL 0x001147f0 TEST AL,0x1 JNZ 0x0012dc9d MOV RDI,qword ptr [RSP + 0xf8] CALL 0x001147f0 TEST AL,0x1 JNZ 0x0012dc9d JMP 0x0012dcdf LAB_0012dc9d: MOV dword ptr [RSP + 0x104],0x0 JMP 0x0012dec4 LAB_0012dcdf: LEA RDI,[RSP + 0x78] CALL 0x00113620 MOV dword ptr [RSP + 0x74],0x0 MOV dword ptr [RSP + 0x70],0x0 MOV RAX,qword ptr [RSP + 0xe8] MOV qword ptr [RSP + 0x30],RAX MOV RDI,qword ptr [RSP + 0xf8] CALL 0x001174a0 MOV qword ptr [RSP + 0x38],RAX MOVSXD RAX,dword ptr [RSP + 0x70] MOV qword ptr [RSP + 0x40],RAX MOV RDI,qword ptr [RSP + 0xf8] CALL 0x00114810 MOV RDI,qword ptr [RSP + 0x30] MOV RSI,qword ptr [RSP + 0x38] MOV RDX,qword ptr [RSP + 0x40] MOV RCX,RAX CALL 0x0011dac0 MOV qword ptr [RSP + 0x68],RAX LAB_0012dd4b: CMP qword ptr [RSP + 0x68],-0x1 JZ 0x0012de5b MOV EAX,dword ptr [RSP + 0x74] INC EAX MOV dword ptr [RSP + 0x74],EAX MOV RSI,qword ptr [RSP + 0xe8] MOVSXD RDX,dword ptr [RSP + 0x70] MOV RCX,qword ptr [RSP + 0x68] SUB RCX,RDX LAB_0012dd76: LEA RDI,[RSP + 0x78] CALL 0x00113610 JMP 0x0012dd82 LAB_0012dd82: MOV RDI,qword ptr [RSP + 0xf0] CALL 0x00113410 MOV qword ptr [RSP + 0x60],RAX MOV RDI,qword ptr [RSP + 0xf0] CALL 0x001137b0 MOV qword ptr [RSP + 0x58],RAX MOV RSI,qword ptr [RSP + 0x60] MOV RDX,qword ptr [RSP + 0x58] LEA RDI,[RSP + 0x78] CALL 0x00130ab0 JMP 0x0012ddbc LAB_0012ddbc: JMP 0x0012ddbe LAB_0012ddbe: MOV RAX,qword ptr [RSP + 0x68] MOV qword ptr [RSP + 0x10],RAX MOV RDI,qword ptr [RSP + 0xf8] CALL 0x00114810 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x10] ADD RAX,RCX MOV dword ptr [RSP + 0x70],EAX MOV RAX,qword ptr [RSP + 0xe8] MOV qword ptr [RSP + 0x18],RAX MOV RDI,qword ptr [RSP + 0xf8] CALL 0x001174a0 MOV qword ptr [RSP + 0x20],RAX MOVSXD RAX,dword ptr [RSP + 0x70] MOV qword ptr [RSP + 0x28],RAX MOV RDI,qword ptr [RSP + 0xf8] CALL 0x00114810 MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x20] MOV RDX,qword ptr [RSP + 0x28] MOV RCX,RAX CALL 0x0011dac0 MOV qword ptr [RSP + 0x68],RAX JMP 0x0012dd4b LAB_0012de5b: CMP dword ptr [RSP + 0x74],0x0 JLE 0x0012deaf MOV RDI,qword ptr [RSP + 0xe8] MOV qword ptr [RSP],RDI MOVSXD RAX,dword ptr [RSP + 0x70] MOV qword ptr [RSP + 0x8],RAX CALL 0x00114810 MOV RSI,qword ptr [RSP] MOV RDX,qword ptr [RSP + 0x8] MOV RCX,RAX MOVSXD RAX,dword ptr [RSP + 0x70] SUB RCX,RAX LEA RDI,[RSP + 0x78] CALL 0x00113610 LAB_0012de9b: JMP 0x0012de9d LAB_0012de9d: MOV RDI,qword ptr [RSP + 0xe8] LEA RSI,[RSP + 0x78] CALL 0x00119bb0 LAB_0012deaf: MOV EAX,dword ptr [RSP + 0x74] MOV dword ptr [RSP + 0x104],EAX LEA RDI,[RSP + 0x78] CALL 0x00113290 LAB_0012dec4: MOV EAX,dword ptr [RSP + 0x104] ADD RSP,0x108 RET
/* google::protobuf::GlobalReplaceSubstring(std::__cxx11::string const&, std::__cxx11::string const&, std::__cxx11::string*) */ int google::protobuf::GlobalReplaceSubstring(string *param_1,string *param_2,string *param_3) { string *psVar1; LogMessage *pLVar2; ulong uVar3; char *pcVar4; int8 uVar5; int8 uVar6; long local_a0; int local_98; int local_94; string local_90 [35]; LogFinisher local_6d [20]; byte local_59; LogMessage local_58 [56]; string *local_20; string *local_18; string *local_10; int local_4; local_59 = 0; local_20 = param_3; local_18 = param_2; local_10 = param_1; if (param_3 == (string *)0x0) { internal::LogMessage::LogMessage (local_58,3, "/workspace/llm4binary/github2025/aimrt_mujoco_sim/_deps/protobuf-src/src/google/protobuf/stubs/strutil.cc" ,0x650); local_59 = 1; /* try { // try from 0012dc37 to 0012dc5b has its CatchHandler @ 0012dcad */ pLVar2 = (LogMessage *)internal::LogMessage::operator<<(local_58,"CHECK failed: s != nullptr: ") ; internal::LogFinisher::operator=(local_6d,pLVar2); } if ((local_59 & 1) != 0) { internal::LogMessage::~LogMessage(local_58); } uVar3 = std::__cxx11::string::empty(local_20); if (((uVar3 & 1) == 0) && (uVar3 = std::__cxx11::string::empty(local_10), (uVar3 & 1) == 0)) { std::__cxx11::string::string(local_90); psVar1 = local_20; local_94 = 0; local_98 = 0; pcVar4 = (char *)std::__cxx11::string::data(local_10); uVar3 = std::__cxx11::string::length(local_10); local_a0 = std::__cxx11::string::find(psVar1,pcVar4,0,uVar3); while (psVar1 = local_20, local_a0 != -1) { local_94 = local_94 + 1; /* try { // try from 0012dd76 to 0012de9a has its CatchHandler @ 0012de3b */ std::__cxx11::string::append(local_90,(ulong)local_20,(long)local_98); uVar5 = std::__cxx11::string::begin(); uVar6 = std::__cxx11::string::end(); std::__cxx11::string:: append<__gnu_cxx::__normal_iterator<char_const*,std::__cxx11::string>,void> (local_90,uVar5,uVar6); local_98 = std::__cxx11::string::length(local_10); psVar1 = local_20; local_98 = (int)local_a0 + local_98; pcVar4 = (char *)std::__cxx11::string::data(local_10); uVar3 = std::__cxx11::string::length(local_10); local_a0 = std::__cxx11::string::find(psVar1,pcVar4,(long)local_98,uVar3); } if (0 < local_94) { std::__cxx11::string::length(local_20); std::__cxx11::string::append(local_90,(ulong)psVar1,(long)local_98); std::__cxx11::string::swap(local_20,local_90); } local_4 = local_94; std::__cxx11::string::~string(local_90); } else { local_4 = 0; } return local_4; }
31,047
ma_apply_redo_index_new_page
eloqsql/storage/maria/ma_key_recover.c
uint _ma_apply_redo_index_new_page(MARIA_HA *info, LSN lsn, const uchar *header, uint length) { pgcache_page_no_t root_page= page_korr(header); pgcache_page_no_t free_page= page_korr(header + PAGE_STORE_SIZE); uint key_nr= key_nr_korr(header + PAGE_STORE_SIZE * 2); my_bool page_type_flag= header[PAGE_STORE_SIZE * 2 + KEY_NR_STORE_SIZE]; enum pagecache_page_lock unlock_method; enum pagecache_page_pin unpin_method; MARIA_PINNED_PAGE page_link; my_off_t file_size; uchar *buff; uint result; MARIA_SHARE *share= info->s; DBUG_ENTER("_ma_apply_redo_index_new_page"); DBUG_PRINT("enter", ("root_page: %lu free_page: %lu", (ulong) root_page, (ulong) free_page)); /* Set header to point at key data */ share->state.changed|= (STATE_CHANGED | STATE_NOT_OPTIMIZED_KEYS | STATE_NOT_SORTED_PAGES | STATE_NOT_ZEROFILLED | STATE_NOT_MOVABLE); header+= PAGE_STORE_SIZE * 2 + KEY_NR_STORE_SIZE + 1; length-= PAGE_STORE_SIZE * 2 + KEY_NR_STORE_SIZE + 1; file_size= (my_off_t) (root_page + 1) * share->block_size; if (cmp_translog_addr(lsn, share->state.is_of_horizon) >= 0) { /* free_page is 0 if we shouldn't set key_del */ if (free_page) { if (free_page != IMPOSSIBLE_PAGE_NO) share->state.key_del= (my_off_t) free_page * share->block_size; else share->state.key_del= HA_OFFSET_ERROR; } if (page_type_flag) /* root page */ share->state.key_root[key_nr]= file_size - share->block_size; } if (file_size > share->state.state.key_file_length) { share->state.state.key_file_length= file_size; buff= info->keyread_buff; info->keyread_buff_used= 1; unlock_method= PAGECACHE_LOCK_WRITE; unpin_method= PAGECACHE_PIN; } else { if (!(buff= pagecache_read(share->pagecache, &share->kfile, root_page, 0, 0, PAGECACHE_PLAIN_PAGE, PAGECACHE_LOCK_WRITE, &page_link.link))) { if (my_errno != HA_ERR_FILE_TOO_SHORT && my_errno != HA_ERR_WRONG_CRC && my_errno != HA_ERR_DECRYPTION_FAILED) { result= 1; _ma_set_fatal_error(info, my_errno); goto err; } buff= pagecache_block_link_to_buffer(page_link.link); } else if (lsn_korr(buff) >= lsn) { /* Already applied */ check_skipped_lsn(info, lsn_korr(buff), 0, root_page); result= 0; goto err; } unlock_method= PAGECACHE_LOCK_LEFT_WRITELOCKED; unpin_method= PAGECACHE_PIN_LEFT_PINNED; } /* Write modified page */ bzero(buff, LSN_STORE_SIZE); memcpy(buff + LSN_STORE_SIZE, header, length); bzero(buff + LSN_STORE_SIZE + length, share->max_index_block_size - LSN_STORE_SIZE - length); bfill(buff + share->block_size - KEYPAGE_CHECKSUM_SIZE, KEYPAGE_CHECKSUM_SIZE, (uchar) 255); result= 0; if (unlock_method == PAGECACHE_LOCK_WRITE && pagecache_write(share->pagecache, &share->kfile, root_page, 0, buff, PAGECACHE_PLAIN_PAGE, unlock_method, unpin_method, PAGECACHE_WRITE_DELAY, &page_link.link, LSN_IMPOSSIBLE)) result= 1; /* Mark page to be unlocked and written at _ma_unpin_all_pages() */ page_link.unlock= PAGECACHE_LOCK_WRITE_UNLOCK; page_link.changed= 1; push_dynamic(&info->pinned_pages, (void*) &page_link); DBUG_RETURN(result); err: pagecache_unlock_by_link(share->pagecache, page_link.link, PAGECACHE_LOCK_WRITE_UNLOCK, PAGECACHE_UNPIN, LSN_IMPOSSIBLE, LSN_IMPOSSIBLE, 0, FALSE); DBUG_RETURN(result); }
O3
c
ma_apply_redo_index_new_page: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movq %rdx, %r13 movq %rsi, %r15 movq %rdi, %rbx movl (%rdx), %r10d movl 0x5(%rdx), %edi movzbl 0x4(%rdx), %r8d shlq $0x20, %r8 leaq (%r8,%r10), %rdx movzbl 0x9(%r13), %esi movzbl 0xa(%r13), %eax movb 0xb(%r13), %r9b movq (%rbx), %r14 orl $0x1b1, 0x170(%r14) # imm = 0x1B1 leaq (%r8,%r10), %r11 incq %r11 movl 0x7bc(%r14), %r10d imulq %r10, %r11 cmpq %r15, 0x180(%r14) jg 0x59fcd shlq $0x20, %rsi orq %rdi, %rsi testq %rsi, %rsi je 0x59fb9 movq $-0x1, %rdi movabsq $0xffffffffff, %r8 # imm = 0xFFFFFFFFFF cmpq %r8, %rsi je 0x59fb2 imulq %r10, %rsi movq %rsi, %rdi movq %rdi, 0x120(%r14) testb %r9b, %r9b je 0x59fcd imulq %rdx, %r10 movq 0x118(%r14), %rsi movq %r10, (%rsi,%rax,8) movq 0x38(%r14), %rax movq %rax, -0x48(%rbp) cmpq %rax, %r11 movq %rdx, -0x40(%rbp) movq %r11, -0x50(%rbp) jbe 0x5a002 movq %r11, 0x38(%r14) movq 0x380(%rbx), %r12 movb $0x1, 0x685(%rbx) movl $0x2, %eax movq %rax, -0x38(%rbp) jmp 0x5a0dd movq %rcx, -0x30(%rbp) movq 0x600(%r14), %rdi leaq 0x750(%r14), %rsi leaq -0x68(%rbp), %rax movq $0x0, -0x38(%rbp) xorl %ecx, %ecx xorl %r8d, %r8d movl $0x1, %r9d pushq %rax pushq $0x4 callq 0x3251e addq $0x10, %rsp testq %rax, %rax je 0x5a0a2 movq %rax, %r12 movzwl (%rax), %eax shlq $0x20, %rax movzbl 0x2(%r12), %ecx shlq $0x30, %rcx orq %rax, %rcx movl 0x3(%r12), %esi orq %rcx, %rsi cmpq %r15, %rsi movq -0x30(%rbp), %rcx jl 0x5a0dd xorl %r15d, %r15d movq %rbx, %rdi xorl %edx, %edx movq -0x40(%rbp), %rcx callq 0x4c6e1 movq 0x600(%r14), %rdi movq -0x68(%rbp), %rsi xorl %eax, %eax movl $0x6, %edx movl $0x3, %ecx xorl %r8d, %r8d xorl %r9d, %r9d pushq %rax pushq %rax callq 0x32239 addq $0x10, %rsp jmp 0x5a1af callq 0xa1a06 cmpl $0xaf, (%rax) je 0x5a0cd callq 0xa1a06 cmpl $0xb0, (%rax) je 0x5a0cd callq 0xa1a06 cmpl $0xc0, (%rax) jne 0x5a1c1 movq -0x68(%rbp), %rdi callq 0x34a01 movq %rax, %r12 movq -0x30(%rbp), %rcx movq %rbx, -0x30(%rbp) addq $0xc, %r13 leal -0xc(%rcx), %eax xorl %r15d, %r15d movl %r15d, 0x3(%r12) movl %r15d, (%r12) leaq 0x7(%r12), %rdi movl %eax, %ebx movq %r13, %rsi movq %rbx, %rdx movq %rcx, %r13 callq 0x29080 leaq (%r12,%rbx), %rdi addq $0x7, %rdi movl 0x7c0(%r14), %edx subl %r13d, %edx addl $0x5, %edx xorl %esi, %esi callq 0x292c0 movl 0x7bc(%r14), %eax movl $0xffffffff, -0x4(%r12,%rax) # imm = 0xFFFFFFFF movq -0x50(%rbp), %rax cmpq -0x48(%rbp), %rax jbe 0x5a190 movq 0x600(%r14), %rdi addq $0x750, %r14 # imm = 0x750 movl 0x80(%rdi), %eax subq $0x8, %rsp xorl %r10d, %r10d leaq -0x68(%rbp), %r11 movq %r14, %rsi movq -0x40(%rbp), %rdx xorl %ecx, %ecx movq %r12, %r8 movl $0x1, %r9d pushq %rax pushq %r10 pushq $0x0 pushq %r11 pushq %r10 pushq -0x38(%rbp) pushq $0x4 callq 0x33982 addq $0x40, %rsp xorl %r15d, %r15d testb %al, %al setne %r15b leaq -0x68(%rbp), %rsi movl $0x6, 0x8(%rsi) movb $0x1, 0x10(%rsi) movq -0x30(%rbp), %rdi addq $0x2e8, %rdi # imm = 0x2E8 callq 0x91aaa movl %r15d, %eax addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0xa1a06 movl (%rax), %esi movq %rbx, %rdi callq 0x36930 movl $0x1, %r15d jmp 0x5a075
_ma_apply_redo_index_new_page: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h mov r13, rdx mov r15, rsi mov rbx, rdi mov r10d, [rdx] mov edi, [rdx+5] movzx r8d, byte ptr [rdx+4] shl r8, 20h lea rdx, [r8+r10] movzx esi, byte ptr [r13+9] movzx eax, byte ptr [r13+0Ah] mov r9b, [r13+0Bh] mov r14, [rbx] or dword ptr [r14+170h], 1B1h lea r11, [r8+r10] inc r11 mov r10d, [r14+7BCh] imul r11, r10 cmp [r14+180h], r15 jg short loc_59FCD shl rsi, 20h or rsi, rdi test rsi, rsi jz short loc_59FB9 mov rdi, 0FFFFFFFFFFFFFFFFh mov r8, 0FFFFFFFFFFh cmp rsi, r8 jz short loc_59FB2 imul rsi, r10 mov rdi, rsi loc_59FB2: mov [r14+120h], rdi loc_59FB9: test r9b, r9b jz short loc_59FCD imul r10, rdx mov rsi, [r14+118h] mov [rsi+rax*8], r10 loc_59FCD: mov rax, [r14+38h] mov [rbp+var_48], rax cmp r11, rax mov [rbp+var_40], rdx mov [rbp+var_50], r11 jbe short loc_5A002 mov [r14+38h], r11 mov r12, [rbx+380h] mov byte ptr [rbx+685h], 1 mov eax, 2 mov [rbp+var_38], rax jmp loc_5A0DD loc_5A002: mov [rbp+var_30], rcx mov rdi, [r14+600h] lea rsi, [r14+750h] lea rax, [rbp+var_68] mov [rbp+var_38], 0 xor ecx, ecx xor r8d, r8d mov r9d, 1 push rax push 4 call pagecache_read add rsp, 10h test rax, rax jz short loc_5A0A2 mov r12, rax movzx eax, word ptr [rax] shl rax, 20h movzx ecx, byte ptr [r12+2] shl rcx, 30h or rcx, rax mov esi, [r12+3] or rsi, rcx cmp rsi, r15 mov rcx, [rbp+var_30] jl short loc_5A0DD xor r15d, r15d mov rdi, rbx xor edx, edx mov rcx, [rbp+var_40] call check_skipped_lsn loc_5A075: mov rdi, [r14+600h] mov rsi, [rbp+var_68] xor eax, eax mov edx, 6 mov ecx, 3 xor r8d, r8d xor r9d, r9d push rax push rax call pagecache_unlock_by_link add rsp, 10h jmp loc_5A1AF loc_5A0A2: call _my_thread_var cmp dword ptr [rax], 0AFh jz short loc_5A0CD call _my_thread_var cmp dword ptr [rax], 0B0h jz short loc_5A0CD call _my_thread_var cmp dword ptr [rax], 0C0h jnz loc_5A1C1 loc_5A0CD: mov rdi, [rbp+var_68] call pagecache_block_link_to_buffer mov r12, rax mov rcx, [rbp+var_30] loc_5A0DD: mov [rbp+var_30], rbx add r13, 0Ch lea eax, [rcx-0Ch] xor r15d, r15d mov [r12+3], r15d mov [r12], r15d lea rdi, [r12+7] mov ebx, eax mov rsi, r13 mov rdx, rbx mov r13, rcx call _memcpy lea rdi, [r12+rbx] add rdi, 7 mov edx, [r14+7C0h] sub edx, r13d add edx, 5 xor esi, esi call _memset mov eax, [r14+7BCh] mov dword ptr [r12+rax-4], 0FFFFFFFFh mov rax, [rbp+var_50] cmp rax, [rbp+var_48] jbe short loc_5A190 mov rdi, [r14+600h] add r14, 750h mov eax, [rdi+80h] sub rsp, 8 xor r10d, r10d lea r11, [rbp+var_68] mov rsi, r14 mov rdx, [rbp+var_40] xor ecx, ecx mov r8, r12 mov r9d, 1 push rax push r10 push 0 push r11 push r10 push [rbp+var_38] push 4 call pagecache_write_part add rsp, 40h xor r15d, r15d test al, al setnz r15b loc_5A190: lea rsi, [rbp+var_68] mov dword ptr [rsi+8], 6 mov byte ptr [rsi+10h], 1 mov rdi, [rbp+var_30] add rdi, 2E8h call insert_dynamic loc_5A1AF: mov eax, r15d add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_5A1C1: call _my_thread_var mov esi, [rax] mov rdi, rbx call _ma_set_fatal_error mov r15d, 1 jmp loc_5A075
_BOOL8 ma_apply_redo_index_new_page(long long a1, signed long long a2, unsigned int *a3, long long a4) { long long v7; // rdi long long v8; // rdx long long v9; // rsi long long v10; // rax char v11; // r9 long long v12; // r14 long long v13; // r10 unsigned long long v14; // r11 long long v15; // rsi long long v16; // rdi long long v17; // r12 long long v18; // rdi const char *v19; // rsi unsigned __int16 *v20; // rax signed long long v21; // rsi BOOL v22; // r15d long long v23; // rbx unsigned int *v24; // rsi int v25; // r13d unsigned int *v27; // rax long long v28; // rdx long long v29; // rcx long long v30; // r8 int v31; // r9d long long v32; // [rsp+8h] [rbp-68h] BYREF int v33; // [rsp+10h] [rbp-60h] char v34; // [rsp+18h] [rbp-58h] unsigned long long v35; // [rsp+20h] [rbp-50h] unsigned long long v36; // [rsp+28h] [rbp-48h] long long v37; // [rsp+30h] [rbp-40h] long long v38; // [rsp+38h] [rbp-38h] long long v39; // [rsp+40h] [rbp-30h] v7 = *(unsigned int *)((char *)a3 + 5); v8 = ((unsigned long long)*((unsigned __int8 *)a3 + 4) << 32) + *a3; v9 = *((unsigned __int8 *)a3 + 9); v10 = *((unsigned __int8 *)a3 + 10); v11 = *((_BYTE *)a3 + 11); v12 = *(_QWORD *)a1; *(_DWORD *)(v12 + 368) |= 0x1B1u; v13 = *(unsigned int *)(v12 + 1980); v14 = v13 * (v8 + 1); if ( *(_QWORD *)(v12 + 384) <= a2 ) { v15 = v7 | (v9 << 32); if ( v15 ) { v16 = -1LL; if ( v15 != 0xFFFFFFFFFFLL ) v16 = v13 * v15; *(_QWORD *)(v12 + 288) = v16; } if ( v11 ) *(_QWORD *)(*(_QWORD *)(v12 + 280) + 8 * v10) = v8 * v13; } v36 = *(_QWORD *)(v12 + 56); v37 = v8; v35 = v13 * (v8 + 1); if ( v14 <= v36 ) { v39 = a4; v18 = *(_QWORD *)(v12 + 1536); v19 = (const char *)(v12 + 1872); v38 = 0LL; v20 = (unsigned __int16 *)pagecache_read(v18, v12 + 1872, v8, 0, 0LL, 1, 4u, &v32); if ( v20 ) { v17 = (long long)v20; v21 = ((unsigned long long)*v20 << 32) | ((unsigned long long)*(unsigned __int8 *)(v17 + 2) << 48) | *(unsigned int *)(v17 + 3); LODWORD(a4) = v39; if ( v21 < a2 ) goto LABEL_18; v22 = 0; check_skipped_lsn(a1, v21, 0, v37); } else { if ( *(_DWORD *)my_thread_var(v18, v19) == 175 || *(_DWORD *)my_thread_var(v18, v19) == 176 || *(_DWORD *)my_thread_var(v18, v19) == 192 ) { v17 = pagecache_block_link_to_buffer(v32); LODWORD(a4) = v39; goto LABEL_18; } v27 = (unsigned int *)my_thread_var(v18, v19); ma_set_fatal_error((_DWORD *)a1, *v27, v28, v29, v30, v31); v22 = 1; } pagecache_unlock_by_link(*(_QWORD *)(v12 + 1536), v32, 6, 3, 0LL, 0LL, 0); return v22; } *(_QWORD *)(v12 + 56) = v14; v17 = *(_QWORD *)(a1 + 896); *(_BYTE *)(a1 + 1669) = 1; v38 = 2LL; LABEL_18: v39 = a1; v22 = 0; *(_DWORD *)(v17 + 3) = 0; *(_DWORD *)v17 = 0; v23 = (unsigned int)(a4 - 12); v24 = a3 + 3; v25 = a4; memcpy(v17 + 7, v24, v23); memset(v17 + v23 + 7, 0LL, (unsigned int)(*(_DWORD *)(v12 + 1984) - v25 + 5)); *(_DWORD *)(v17 + *(unsigned int *)(v12 + 1980) - 4) = -1; if ( v35 > v36 ) v22 = (unsigned __int8)pagecache_write_part( *(__m128i **)(v12 + 1536), (char *)(v12 + 1872), v37, 0, (char *)v17, 1, 4u, v38, 0, &v32, 0LL, 0, *(_DWORD *)(*(_QWORD *)(v12 + 1536) + 128LL)) != 0; v33 = 6; v34 = 1; insert_dynamic(v39 + 744, &v32); return v22; }
_ma_apply_redo_index_new_page: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOV R13,RDX MOV R15,RSI MOV RBX,RDI MOV R10D,dword ptr [RDX] MOV EDI,dword ptr [RDX + 0x5] MOVZX R8D,byte ptr [RDX + 0x4] SHL R8,0x20 LEA RDX,[R8 + R10*0x1] MOVZX ESI,byte ptr [R13 + 0x9] MOVZX EAX,byte ptr [R13 + 0xa] MOV R9B,byte ptr [R13 + 0xb] MOV R14,qword ptr [RBX] OR dword ptr [R14 + 0x170],0x1b1 LEA R11,[R8 + R10*0x1] INC R11 MOV R10D,dword ptr [R14 + 0x7bc] IMUL R11,R10 CMP qword ptr [R14 + 0x180],R15 JG 0x00159fcd SHL RSI,0x20 OR RSI,RDI TEST RSI,RSI JZ 0x00159fb9 MOV RDI,-0x1 MOV R8,0xffffffffff CMP RSI,R8 JZ 0x00159fb2 IMUL RSI,R10 MOV RDI,RSI LAB_00159fb2: MOV qword ptr [R14 + 0x120],RDI LAB_00159fb9: TEST R9B,R9B JZ 0x00159fcd IMUL R10,RDX MOV RSI,qword ptr [R14 + 0x118] MOV qword ptr [RSI + RAX*0x8],R10 LAB_00159fcd: MOV RAX,qword ptr [R14 + 0x38] MOV qword ptr [RBP + -0x48],RAX CMP R11,RAX MOV qword ptr [RBP + -0x40],RDX MOV qword ptr [RBP + -0x50],R11 JBE 0x0015a002 MOV qword ptr [R14 + 0x38],R11 MOV R12,qword ptr [RBX + 0x380] MOV byte ptr [RBX + 0x685],0x1 MOV EAX,0x2 MOV qword ptr [RBP + -0x38],RAX JMP 0x0015a0dd LAB_0015a002: MOV qword ptr [RBP + -0x30],RCX MOV RDI,qword ptr [R14 + 0x600] LEA RSI,[R14 + 0x750] LEA RAX,[RBP + -0x68] MOV qword ptr [RBP + -0x38],0x0 XOR ECX,ECX XOR R8D,R8D MOV R9D,0x1 PUSH RAX PUSH 0x4 CALL 0x0013251e ADD RSP,0x10 TEST RAX,RAX JZ 0x0015a0a2 MOV R12,RAX MOVZX EAX,word ptr [RAX] SHL RAX,0x20 MOVZX ECX,byte ptr [R12 + 0x2] SHL RCX,0x30 OR RCX,RAX MOV ESI,dword ptr [R12 + 0x3] OR RSI,RCX CMP RSI,R15 MOV RCX,qword ptr [RBP + -0x30] JL 0x0015a0dd XOR R15D,R15D MOV RDI,RBX XOR EDX,EDX MOV RCX,qword ptr [RBP + -0x40] CALL 0x0014c6e1 LAB_0015a075: MOV RDI,qword ptr [R14 + 0x600] MOV RSI,qword ptr [RBP + -0x68] XOR EAX,EAX MOV EDX,0x6 MOV ECX,0x3 XOR R8D,R8D XOR R9D,R9D PUSH RAX PUSH RAX CALL 0x00132239 ADD RSP,0x10 JMP 0x0015a1af LAB_0015a0a2: CALL 0x001a1a06 CMP dword ptr [RAX],0xaf JZ 0x0015a0cd CALL 0x001a1a06 CMP dword ptr [RAX],0xb0 JZ 0x0015a0cd CALL 0x001a1a06 CMP dword ptr [RAX],0xc0 JNZ 0x0015a1c1 LAB_0015a0cd: MOV RDI,qword ptr [RBP + -0x68] CALL 0x00134a01 MOV R12,RAX MOV RCX,qword ptr [RBP + -0x30] LAB_0015a0dd: MOV qword ptr [RBP + -0x30],RBX ADD R13,0xc LEA EAX,[RCX + -0xc] XOR R15D,R15D MOV dword ptr [R12 + 0x3],R15D MOV dword ptr [R12],R15D LEA RDI,[R12 + 0x7] MOV EBX,EAX MOV RSI,R13 MOV RDX,RBX MOV R13,RCX CALL 0x00129080 LEA RDI,[R12 + RBX*0x1] ADD RDI,0x7 MOV EDX,dword ptr [R14 + 0x7c0] SUB EDX,R13D ADD EDX,0x5 XOR ESI,ESI CALL 0x001292c0 MOV EAX,dword ptr [R14 + 0x7bc] MOV dword ptr [R12 + RAX*0x1 + -0x4],0xffffffff MOV RAX,qword ptr [RBP + -0x50] CMP RAX,qword ptr [RBP + -0x48] JBE 0x0015a190 MOV RDI,qword ptr [R14 + 0x600] ADD R14,0x750 MOV EAX,dword ptr [RDI + 0x80] SUB RSP,0x8 XOR R10D,R10D LEA R11,[RBP + -0x68] MOV RSI,R14 MOV RDX,qword ptr [RBP + -0x40] XOR ECX,ECX MOV R8,R12 MOV R9D,0x1 PUSH RAX PUSH R10 PUSH 0x0 PUSH R11 PUSH R10 PUSH qword ptr [RBP + -0x38] PUSH 0x4 CALL 0x00133982 ADD RSP,0x40 XOR R15D,R15D TEST AL,AL SETNZ R15B LAB_0015a190: LEA RSI,[RBP + -0x68] MOV dword ptr [RSI + 0x8],0x6 MOV byte ptr [RSI + 0x10],0x1 MOV RDI,qword ptr [RBP + -0x30] ADD RDI,0x2e8 CALL 0x00191aaa LAB_0015a1af: MOV EAX,R15D ADD RSP,0x48 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0015a1c1: CALL 0x001a1a06 MOV ESI,dword ptr [RAX] MOV RDI,RBX CALL 0x00136930 MOV R15D,0x1 JMP 0x0015a075
bool _ma_apply_redo_index_new_page(long *param_1,long param_2,uint5 *param_3,long *param_4) { byte bVar1; long lVar2; uint5 uVar3; uint5 uVar4; char cVar5; ushort *puVar6; int *piVar7; int4 *puVar8; ulong uVar9; ulong uVar10; long lVar11; bool bVar12; int8 local_70; int4 local_68; int1 local_60; ulong local_58; ulong local_50; ulong local_48; int8 local_40; long *local_38; uVar3 = *param_3; local_48 = (ulong)*param_3; uVar4 = *(uint5 *)((long)param_3 + 5); bVar1 = *(byte *)((long)param_3 + 10); cVar5 = *(char *)((long)param_3 + 0xb); lVar2 = *param_1; *(uint *)(lVar2 + 0x170) = *(uint *)(lVar2 + 0x170) | 0x1b1; uVar10 = (ulong)*(uint *)(lVar2 + 0x7bc); local_58 = ((ulong)uVar3 + 1) * uVar10; if (*(long *)(lVar2 + 0x180) <= param_2) { uVar9 = (ulong)uVar4; if (uVar9 != 0) { lVar11 = -1; if (uVar9 != 0xffffffffff) { lVar11 = uVar9 * uVar10; } *(long *)(lVar2 + 0x120) = lVar11; } if (cVar5 != '\0') { *(ulong *)(*(long *)(lVar2 + 0x118) + (ulong)bVar1 * 8) = uVar10 * local_48; } } local_50 = *(ulong *)(lVar2 + 0x38); if (local_58 < local_50 || local_58 - local_50 == 0) { local_40 = 0; local_38 = param_4; puVar6 = (ushort *) pagecache_read(*(int8 *)(lVar2 + 0x600),lVar2 + 0x750,local_48,0,0,1,4,&local_70) ; if (puVar6 == (ushort *)0x0) { piVar7 = (int *)_my_thread_var(); if (((*piVar7 != 0xaf) && (piVar7 = (int *)_my_thread_var(), *piVar7 != 0xb0)) && (piVar7 = (int *)_my_thread_var(), *piVar7 != 0xc0)) { puVar8 = (int4 *)_my_thread_var(); _ma_set_fatal_error(param_1,*puVar8); bVar12 = true; goto LAB_0015a075; } puVar6 = (ushort *)pagecache_block_link_to_buffer(local_70); param_4 = local_38; } else { uVar10 = (ulong)*(uint *)((long)puVar6 + 3) | (ulong)(byte)puVar6[1] << 0x30 | (ulong)*puVar6 << 0x20; param_4 = local_38; if (param_2 <= (long)uVar10) { bVar12 = false; check_skipped_lsn(param_1,uVar10,0,local_48); LAB_0015a075: pagecache_unlock_by_link(*(int8 *)(lVar2 + 0x600),local_70,6,3,0,0,0,0); return bVar12; } } } else { *(ulong *)(lVar2 + 0x38) = local_58; puVar6 = (ushort *)param_1[0x70]; *(int1 *)((long)param_1 + 0x685) = 1; local_40 = 2; } bVar12 = false; *(int4 *)((long)puVar6 + 3) = 0; puVar6[0] = 0; puVar6[1] = 0; uVar10 = (ulong)((int)param_4 - 0xc); local_38 = param_1; memcpy((void *)((long)puVar6 + 7),(void *)((long)param_3 + 0xc),uVar10); memset((void *)((long)puVar6 + uVar10 + 7),0,(ulong)((*(int *)(lVar2 + 0x7c0) - (int)param_4) + 5) ); *(int4 *)((long)puVar6 + ((ulong)*(uint *)(lVar2 + 0x7bc) - 4)) = 0xffffffff; if (local_50 < local_58) { cVar5 = pagecache_write_part (*(long *)(lVar2 + 0x600),lVar2 + 0x750,local_48,0,puVar6,1,4,local_40,0, &local_70,0,0,*(int4 *)(*(long *)(lVar2 + 0x600) + 0x80)); bVar12 = cVar5 != '\0'; } local_68 = 6; local_60 = 1; insert_dynamic(local_38 + 0x5d); return bVar12; }
31,048
host_get_balance
corpus-core[P]colibri-stateless/src/chains/eth/verifier/call_evmone.c
static evmc_bytes32 host_get_balance(void* context, const evmc_address* addr) { evmone_context_t* ctx = (evmone_context_t*) context; debug_print_address("get_balance for", addr); evmc_bytes32 result = {0}; changed_account_t* acc = get_changed_account(ctx, addr->bytes); if (acc) memcpy(result.bytes, acc->balance, 32); else { ssz_ob_t account = get_src_account(ctx, addr->bytes, false); if (account.def) eth_get_account_value(account, ETH_ACCOUNT_BALANCE, result.bytes); } debug_print_bytes32("get_balance result", &result); return result; }
O2
c
host_get_balance: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rdi) movups %xmm0, (%rdi) movq %rsi, %rdi movq %rdx, %rsi callq 0x27614 testq %rax, %rax je 0x27a28 movups 0x14(%rax), %xmm0 movups 0x24(%rax), %xmm1 movups %xmm1, 0x10(%rbx) movups %xmm0, (%rbx) jmp 0x27a63 leaq 0x20(%rsp), %r12 movq %r12, %rdi movq %r15, %rsi movq %r14, %rdx xorl %ecx, %ecx callq 0x27666 cmpq $0x0, 0x10(%r12) je 0x27a63 movq 0x30(%rsp), %rax movq %rax, 0x10(%rsp) movups 0x20(%rsp), %xmm0 movups %xmm0, (%rsp) pushq $0x2 popq %rdi movq %rbx, %rsi callq 0x2b77b movq %rbx, %rax addq $0x38, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
host_get_balance: push r15 push r14 push r12 push rbx sub rsp, 38h mov r14, rdx mov r15, rsi mov rbx, rdi xorps xmm0, xmm0 movups xmmword ptr [rdi+10h], xmm0 movups xmmword ptr [rdi], xmm0 mov rdi, rsi mov rsi, rdx call get_changed_account test rax, rax jz short loc_27A28 movups xmm0, xmmword ptr [rax+14h] movups xmm1, xmmword ptr [rax+24h] movups xmmword ptr [rbx+10h], xmm1 movups xmmword ptr [rbx], xmm0 jmp short loc_27A63 loc_27A28: lea r12, [rsp+58h+var_38] mov rdi, r12 mov rsi, r15 mov rdx, r14 xor ecx, ecx call get_src_account cmp qword ptr [r12+10h], 0 jz short loc_27A63 mov rax, [rsp+58h+var_28] mov [rsp+58h+var_48], rax movups xmm0, [rsp+58h+var_38] movups [rsp+58h+var_58], xmm0 push 2 pop rdi mov rsi, rbx call eth_get_account_value loc_27A63: mov rax, rbx add rsp, 38h pop rbx pop r12 pop r14 pop r15 retn
_OWORD * host_get_balance(_OWORD *a1, long long a2, long long a3) { long long changed_account; // rax int v5; // r8d int v6; // r9d __int128 v7; // xmm0 int v8; // edx int v9; // ecx int v10; // r8d int v11; // r9d __int128 v13; // [rsp+20h] [rbp-38h] BYREF long long v14; // [rsp+30h] [rbp-28h] a1[1] = 0LL; *a1 = 0LL; changed_account = get_changed_account(a2, a3); if ( changed_account ) { v7 = *(_OWORD *)(changed_account + 20); a1[1] = *(_OWORD *)(changed_account + 36); *a1 = v7; } else { get_src_account((long long)&v13, a2, a3, 0, v5, v6); if ( v14 ) eth_get_account_value(2, (_DWORD)a1, v8, v9, v10, v11, v13, v14); } return a1; }
host_get_balance: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R14,RDX MOV R15,RSI MOV RBX,RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x10],XMM0 MOVUPS xmmword ptr [RDI],XMM0 MOV RDI,RSI MOV RSI,RDX CALL 0x00127614 TEST RAX,RAX JZ 0x00127a28 MOVUPS XMM0,xmmword ptr [RAX + 0x14] MOVUPS XMM1,xmmword ptr [RAX + 0x24] MOVUPS xmmword ptr [RBX + 0x10],XMM1 MOVUPS xmmword ptr [RBX],XMM0 JMP 0x00127a63 LAB_00127a28: LEA R12,[RSP + 0x20] MOV RDI,R12 MOV RSI,R15 MOV RDX,R14 XOR ECX,ECX CALL 0x00127666 CMP qword ptr [R12 + 0x10],0x0 JZ 0x00127a63 MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x10],RAX MOVUPS XMM0,xmmword ptr [RSP + 0x20] MOVUPS xmmword ptr [RSP],XMM0 PUSH 0x2 POP RDI MOV RSI,RBX CALL 0x0012b77b LAB_00127a63: MOV RAX,RBX ADD RSP,0x38 POP RBX POP R12 POP R14 POP R15 RET
int8 * host_get_balance(int8 *param_1,int8 param_2,int8 param_3) { int8 uVar1; int8 uVar2; int8 uVar3; long lVar4; int1 local_38 [16]; long local_28; param_1[2] = 0; param_1[3] = 0; *param_1 = 0; param_1[1] = 0; lVar4 = get_changed_account(param_2,param_3); if (lVar4 == 0) { get_src_account(local_38,param_2,param_3,0); if (local_28 != 0) { eth_get_account_value(2,param_1); } } else { uVar1 = *(int8 *)(lVar4 + 0x14); uVar2 = *(int8 *)(lVar4 + 0x1c); uVar3 = *(int8 *)(lVar4 + 0x2c); param_1[2] = *(int8 *)(lVar4 + 0x24); param_1[3] = uVar3; *param_1 = uVar1; param_1[1] = uVar2; } return param_1; }
31,049
host_get_balance
corpus-core[P]colibri-stateless/src/chains/eth/verifier/call_evmone.c
static evmc_bytes32 host_get_balance(void* context, const evmc_address* addr) { evmone_context_t* ctx = (evmone_context_t*) context; debug_print_address("get_balance for", addr); evmc_bytes32 result = {0}; changed_account_t* acc = get_changed_account(ctx, addr->bytes); if (acc) memcpy(result.bytes, acc->balance, 32); else { ssz_ob_t account = get_src_account(ctx, addr->bytes, false); if (account.def) eth_get_account_value(account, ETH_ACCOUNT_BALANCE, result.bytes); } debug_print_bytes32("get_balance result", &result); return result; }
O3
c
host_get_balance: pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x38, %rsp movq %rdx, %r14 movq %rsi, %r15 movq %rdi, %rbx xorps %xmm0, %xmm0 movups %xmm0, 0x10(%rdi) movups %xmm0, (%rdi) movq %rsi, %rdi movq %rdx, %rsi callq 0x27648 testq %rax, %rax je 0x27ac8 movups 0x14(%rax), %xmm0 movups 0x24(%rax), %xmm1 movups %xmm1, 0x10(%rbx) movups %xmm0, (%rbx) jmp 0x27b05 leaq 0x20(%rsp), %r12 movq %r12, %rdi movq %r15, %rsi movq %r14, %rdx xorl %ecx, %ecx callq 0x27690 cmpq $0x0, 0x10(%r12) je 0x27b05 movq 0x30(%rsp), %rax movq %rax, 0x10(%rsp) movups 0x20(%rsp), %xmm0 movups %xmm0, (%rsp) movl $0x2, %edi movq %rbx, %rsi callq 0x2bb9d movq %rbx, %rax addq $0x38, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
host_get_balance: push r15 push r14 push r12 push rbx sub rsp, 38h mov r14, rdx mov r15, rsi mov rbx, rdi xorps xmm0, xmm0 movups xmmword ptr [rdi+10h], xmm0 movups xmmword ptr [rdi], xmm0 mov rdi, rsi mov rsi, rdx call get_changed_account test rax, rax jz short loc_27AC8 movups xmm0, xmmword ptr [rax+14h] movups xmm1, xmmword ptr [rax+24h] movups xmmword ptr [rbx+10h], xmm1 movups xmmword ptr [rbx], xmm0 jmp short loc_27B05 loc_27AC8: lea r12, [rsp+58h+var_38] mov rdi, r12 mov rsi, r15 mov rdx, r14 xor ecx, ecx call get_src_account cmp qword ptr [r12+10h], 0 jz short loc_27B05 mov rax, [rsp+58h+var_28] mov [rsp+58h+var_48], rax movups xmm0, [rsp+58h+var_38] movups [rsp+58h+var_58], xmm0 mov edi, 2 mov rsi, rbx call eth_get_account_value loc_27B05: mov rax, rbx add rsp, 38h pop rbx pop r12 pop r14 pop r15 retn
_OWORD * host_get_balance(_OWORD *a1, const __m128i *a2, const __m128i *a3) { const __m128i *changed_account; // rax int v5; // r8d int v6; // r9d __int128 v7; // xmm0 int v8; // edx int v9; // ecx int v10; // r8d int v11; // r9d __int128 v13; // [rsp+20h] [rbp-38h] BYREF long long v14; // [rsp+30h] [rbp-28h] a1[1] = 0LL; *a1 = 0LL; changed_account = get_changed_account((long long)a2, a3); if ( changed_account ) { v7 = *(__int128 *)((char *)&changed_account[1] + 4); a1[1] = *(const __m128i *)((char *)&changed_account[2] + 4); *a1 = v7; } else { get_src_account((long long)&v13, a2, a3, 0, v5, v6); if ( v14 ) eth_get_account_value(2, (_DWORD)a1, v8, v9, v10, v11, v13, v14); } return a1; }
host_get_balance: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x38 MOV R14,RDX MOV R15,RSI MOV RBX,RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x10],XMM0 MOVUPS xmmword ptr [RDI],XMM0 MOV RDI,RSI MOV RSI,RDX CALL 0x00127648 TEST RAX,RAX JZ 0x00127ac8 MOVUPS XMM0,xmmword ptr [RAX + 0x14] MOVUPS XMM1,xmmword ptr [RAX + 0x24] MOVUPS xmmword ptr [RBX + 0x10],XMM1 MOVUPS xmmword ptr [RBX],XMM0 JMP 0x00127b05 LAB_00127ac8: LEA R12,[RSP + 0x20] MOV RDI,R12 MOV RSI,R15 MOV RDX,R14 XOR ECX,ECX CALL 0x00127690 CMP qword ptr [R12 + 0x10],0x0 JZ 0x00127b05 MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x10],RAX MOVUPS XMM0,xmmword ptr [RSP + 0x20] MOVUPS xmmword ptr [RSP],XMM0 MOV EDI,0x2 MOV RSI,RBX CALL 0x0012bb9d LAB_00127b05: MOV RAX,RBX ADD RSP,0x38 POP RBX POP R12 POP R14 POP R15 RET
int8 * host_get_balance(int8 *param_1,int8 param_2,int8 param_3) { int8 uVar1; int8 uVar2; int8 uVar3; long lVar4; int1 local_38 [16]; long local_28; param_1[2] = 0; param_1[3] = 0; *param_1 = 0; param_1[1] = 0; lVar4 = get_changed_account(param_2,param_3); if (lVar4 == 0) { get_src_account(local_38,param_2,param_3,0); if (local_28 != 0) { eth_get_account_value(2,param_1); } } else { uVar1 = *(int8 *)(lVar4 + 0x14); uVar2 = *(int8 *)(lVar4 + 0x1c); uVar3 = *(int8 *)(lVar4 + 0x2c); param_1[2] = *(int8 *)(lVar4 + 0x24); param_1[3] = uVar3; *param_1 = uVar1; param_1[1] = uVar2; } return param_1; }
31,050
minja::SetTemplateNode::SetTemplateNode(minja::Location const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::shared_ptr<minja::TemplateNode>&&)
monkey531[P]llama/common/./minja.hpp
SetTemplateNode(const Location & location, const std::string & name, std::shared_ptr<TemplateNode> && tv) : TemplateNode(location), name(name), template_value(std::move(tv)) {}
O3
cpp
minja::SetTemplateNode::SetTemplateNode(minja::Location const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::shared_ptr<minja::TemplateNode>&&): pushq %r15 pushq %r14 pushq %rbx movq %rcx, %r14 movq %rdi, %rbx leaq 0x8cca8(%rip), %r15 # 0xeefe8 movq %r15, (%rdi) movq (%rsi), %rax movq %rax, 0x8(%rdi) movq 0x8(%rsi), %rax movq %rax, 0x10(%rdi) testq %rax, %rax je 0x6236c movq 0x8dc42(%rip), %rcx # 0xeffa0 cmpb $0x0, (%rcx) je 0x62368 incl 0x8(%rax) jmp 0x6236c lock incl 0x8(%rax) movq 0x10(%rsi), %rax movq %rax, 0x18(%rbx) leaq 0x8d06d(%rip), %rax # 0xef3e8 movq %rax, (%rbx) leaq 0x20(%rbx), %rdi leaq 0x30(%rbx), %rax movq %rax, 0x20(%rbx) movq (%rdx), %rsi movq 0x8(%rdx), %rdx addq %rsi, %rdx callq 0x2bdf8 xorl %eax, %eax movq %rax, 0x48(%rbx) movups (%r14), %xmm0 movq %rax, 0x8(%r14) movups %xmm0, 0x40(%rbx) movq %rax, (%r14) popq %rbx popq %r14 popq %r15 retq movq %rax, %r14 movq %r15, (%rbx) movq 0x10(%rbx), %rdi testq %rdi, %rdi je 0x623c8 callq 0x2f80e movq %r14, %rdi callq 0x18b90
_ZN5minja15SetTemplateNodeC2ERKNS_8LocationERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEOSt10shared_ptrINS_12TemplateNodeEE: push r15 push r14 push rbx mov r14, rcx mov rbx, rdi lea r15, off_EEFE8 mov [rdi], r15 mov rax, [rsi] mov [rdi+8], rax mov rax, [rsi+8] mov [rdi+10h], rax test rax, rax jz short loc_6236C mov rcx, cs:__libc_single_threaded_ptr cmp byte ptr [rcx], 0 jz short loc_62368 inc dword ptr [rax+8] jmp short loc_6236C loc_62368: lock inc dword ptr [rax+8] loc_6236C: mov rax, [rsi+10h] mov [rbx+18h], rax lea rax, off_EF3E8 mov [rbx], rax lea rdi, [rbx+20h] lea rax, [rbx+30h] mov [rbx+20h], rax mov rsi, [rdx] mov rdx, [rdx+8] add rdx, rsi call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) xor eax, eax mov [rbx+48h], rax movups xmm0, xmmword ptr [r14] mov [r14+8], rax movups xmmword ptr [rbx+40h], xmm0 mov [r14], rax pop rbx pop r14 pop r15 retn mov r14, rax mov [rbx], r15 mov rdi, [rbx+10h] test rdi, rdi jz short loc_623C8 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_623C8: mov rdi, r14 call __Unwind_Resume
long long minja::SetTemplateNode::SetTemplateNode(long long a1, _QWORD *a2, long long a3, __int128 *a4) { long long v5; // rax long long result; // rax __int128 v7; // xmm0 *(_QWORD *)a1 = &off_EEFE8; *(_QWORD *)(a1 + 8) = *a2; v5 = a2[1]; *(_QWORD *)(a1 + 16) = v5; if ( v5 ) { if ( _libc_single_threaded ) ++*(_DWORD *)(v5 + 8); else _InterlockedIncrement((volatile signed __int32 *)(v5 + 8)); } *(_QWORD *)(a1 + 24) = a2[2]; *(_QWORD *)a1 = &off_EF3E8; *(_QWORD *)(a1 + 32) = a1 + 48; std::string::_M_construct<char *>(a1 + 32, *(_BYTE **)a3, *(_QWORD *)a3 + *(_QWORD *)(a3 + 8)); result = 0LL; *(_QWORD *)(a1 + 72) = 0LL; v7 = *a4; *((_QWORD *)a4 + 1) = 0LL; *(_OWORD *)(a1 + 64) = v7; *(_QWORD *)a4 = 0LL; return result; }
SetTemplateNode: PUSH R15 PUSH R14 PUSH RBX MOV R14,RCX MOV RBX,RDI LEA R15,[0x1eefe8] MOV qword ptr [RDI],R15 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 0x0016236c MOV RCX,qword ptr [0x001effa0] CMP byte ptr [RCX],0x0 JZ 0x00162368 INC dword ptr [RAX + 0x8] JMP 0x0016236c LAB_00162368: INC.LOCK dword ptr [RAX + 0x8] LAB_0016236c: MOV RAX,qword ptr [RSI + 0x10] MOV qword ptr [RBX + 0x18],RAX LEA RAX,[0x1ef3e8] MOV qword ptr [RBX],RAX LEA RDI,[RBX + 0x20] LEA RAX,[RBX + 0x30] MOV qword ptr [RBX + 0x20],RAX MOV RSI,qword ptr [RDX] MOV RDX,qword ptr [RDX + 0x8] ADD RDX,RSI LAB_00162394: CALL 0x0012bdf8 LAB_00162399: XOR EAX,EAX MOV qword ptr [RBX + 0x48],RAX MOVUPS XMM0,xmmword ptr [R14] MOV qword ptr [R14 + 0x8],RAX MOVUPS xmmword ptr [RBX + 0x40],XMM0 MOV qword ptr [R14],RAX POP RBX POP R14 POP R15 RET
/* minja::SetTemplateNode::SetTemplateNode(minja::Location const&, std::__cxx11::string const&, std::shared_ptr<minja::TemplateNode>&&) */ void __thiscall minja::SetTemplateNode::SetTemplateNode (SetTemplateNode *this,Location *param_1,string *param_2,shared_ptr *param_3) { long lVar1; int8 uVar2; *(int ***)this = &PTR___cxa_pure_virtual_001eefe8; *(int8 *)(this + 8) = *(int8 *)param_1; lVar1 = *(long *)(param_1 + 8); *(long *)(this + 0x10) = lVar1; if (lVar1 != 0) { if (*PTR___libc_single_threaded_001effa0 == '\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_render_001ef3e8; *(SetTemplateNode **)(this + 0x20) = this + 0x30; /* try { // try from 00162394 to 00162398 has its CatchHandler @ 001623b4 */ std::__cxx11::string::_M_construct<char*> (this + 0x20,*(long *)param_2,*(long *)(param_2 + 8) + *(long *)param_2); *(int8 *)(this + 0x48) = 0; uVar2 = *(int8 *)(param_3 + 8); *(int8 *)(param_3 + 8) = 0; *(int8 *)(this + 0x40) = *(int8 *)param_3; *(int8 *)(this + 0x48) = uVar2; *(int8 *)param_3 = 0; return; }
31,051
testing::internal::ForkingDeathTest::Wait()
giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/src/gtest-death-test.cc
int ForkingDeathTest::Wait() { if (!spawned()) return 0; ReadAndInterpretStatusByte(); int status_value; GTEST_DEATH_TEST_CHECK_SYSCALL_(waitpid(child_pid_, &status_value, 0)); set_status(status_value); return status_value; }
O1
cpp
testing::internal::ForkingDeathTest::Wait(): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x118, %rsp # imm = 0x118 xorl %eax, %eax cmpb $0x1, 0x28(%rdi) jne 0x1093d movq %rdi, %rbx callq 0xf430 leaq 0xc(%rsp), %r14 movl 0x3c(%rbx), %edi movq %r14, %rsi xorl %edx, %edx callq 0x83d0 cmpl $-0x1, %eax jne 0x10936 callq 0x8070 cmpl $0x4, (%rax) je 0x108c0 leaq 0xe8(%rsp), %r14 movq %r14, -0x10(%r14) leaq 0x3177e(%rip), %rsi # 0x4206d leaq 0x3178a(%rip), %rdx # 0x42080 leaq 0xd8(%rsp), %rbx movq %rbx, %rdi callq 0x39504 leaq 0x31679(%rip), %rsi # 0x41f86 movq %rbx, %rdi callq 0x8a50 leaq 0x68(%rsp), %r15 movq %r15, -0x10(%r15) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx jne 0x1094f movups (%rcx), %xmm0 movups %xmm0, (%r15) jmp 0x1095c movl 0xc(%rsp), %eax movl %eax, 0x2c(%rbx) addq $0x118, %rsp # imm = 0x118 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rdx, 0x58(%rsp) movq (%rcx), %rdx movq %rdx, 0x68(%rsp) movq 0x8(%rax), %rdx leaq 0x58(%rsp), %rdi movq %rdx, 0x8(%rdi) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x31702(%rip), %rsi # 0x42081 callq 0x8a50 leaq 0x48(%rsp), %r12 movq %r12, -0x10(%r12) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx jne 0x109a7 movups (%rcx), %xmm0 movups %xmm0, (%r12) jmp 0x109b4 movq %rdx, 0x38(%rsp) movq (%rcx), %rdx movq %rdx, 0x48(%rsp) movq 0x8(%rax), %rdx movq %rdx, 0x40(%rsp) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x34(%rsp), %rsi movl $0x43d, (%rsi) # imm = 0x43D leaq 0xb8(%rsp), %rdi callq 0x32327 leaq 0xf8(%rsp), %rdi leaq 0x38(%rsp), %rsi leaq 0xb8(%rsp), %rdx callq 0x3227f leaq 0x32c6f(%rip), %rsi # 0x43674 leaq 0xf8(%rsp), %rdi callq 0x8a50 leaq 0x88(%rsp), %r13 movq %r13, -0x10(%r13) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx jne 0x10a37 movups (%rcx), %xmm0 movups %xmm0, (%r13) jmp 0x10a47 movq %rdx, 0x78(%rsp) movq (%rcx), %rdx movq %rdx, 0x88(%rsp) movq 0x8(%rax), %rdx leaq 0x78(%rsp), %rdi movq %rdx, 0x8(%rdi) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x317a9(%rip), %rsi # 0x42213 callq 0x8a50 leaq 0xa8(%rsp), %rbp movq %rbp, -0x10(%rbp) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx jne 0x10a93 movups (%rcx), %xmm0 movups %xmm0, (%rbp) jmp 0x10aa6 movq %rdx, 0x98(%rsp) movq (%rcx), %rdx movq %rdx, 0xa8(%rsp) movq 0x8(%rax), %rdx leaq 0x98(%rsp), %rdi movq %rdx, 0x8(%rdi) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) leaq 0x317d2(%rip), %rsi # 0x4229e callq 0x8a50 leaq 0x20(%rsp), %rcx movq %rcx, -0x10(%rcx) movq (%rax), %rdx movq %rax, %rcx addq $0x10, %rcx cmpq %rcx, %rdx jne 0x10af6 movups (%rcx), %xmm0 leaq 0x20(%rsp), %rdx movups %xmm0, (%rdx) jmp 0x10b03 movq %rdx, 0x10(%rsp) movq (%rcx), %rdx movq %rdx, 0x20(%rsp) movq 0x8(%rax), %rdx leaq 0x10(%rsp), %rdi movq %rdx, 0x8(%rdi) movq %rcx, (%rax) movq $0x0, 0x8(%rax) movb $0x0, 0x10(%rax) callq 0xf2fd movq %rax, %rbx movq 0x10(%rsp), %rdi leaq 0x20(%rsp), %rax cmpq %rax, %rdi je 0x10b48 movq 0x20(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x10b48 movq %rax, %rbx movq 0x98(%rsp), %rdi cmpq %rbp, %rdi je 0x10b6a movq 0xa8(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x10b6a movq %rax, %rbx movq 0x78(%rsp), %rdi cmpq %r13, %rdi je 0x10b89 movq 0x88(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x10b89 movq %rax, %rbx leaq 0x108(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x10baf movq 0x108(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x10baf movq %rax, %rbx leaq 0xc8(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x10bd5 movq 0xc8(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x10bd5 movq %rax, %rbx movq 0x38(%rsp), %rdi cmpq %r12, %rdi je 0x10bf1 movq 0x48(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x10bf1 movq %rax, %rbx movq 0x58(%rsp), %rdi cmpq %r15, %rdi je 0x10c0d movq 0x68(%rsp), %rsi incq %rsi callq 0x84e0 jmp 0x10c0d movq %rax, %rbx movq 0xd8(%rsp), %rdi cmpq %r14, %rdi je 0x10c2a movq 0xe8(%rsp), %rsi incq %rsi callq 0x84e0 movq %rbx, %rdi callq 0x8990
_ZN7testing8internal16ForkingDeathTest4WaitEv: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 118h xor eax, eax cmp byte ptr [rdi+28h], 1 jnz loc_1093D mov rbx, rdi call _ZN7testing8internal13DeathTestImpl26ReadAndInterpretStatusByteEv; testing::internal::DeathTestImpl::ReadAndInterpretStatusByte(void) lea r14, [rsp+148h+var_13C] loc_108C0: mov edi, [rbx+3Ch] mov rsi, r14 xor edx, edx call _waitpid cmp eax, 0FFFFFFFFh jnz short loc_10936 call ___errno_location cmp dword ptr [rax], 4 jz short loc_108C0 lea r14, [rsp+148h+var_60] mov [r14-10h], r14 lea rsi, aCheckFailedFil; "CHECK failed: File " lea rdx, aCheckFailedFil+13h; "" lea rbx, [rsp+148h+var_70] mov rdi, rbx 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, aWorkspaceLlm4b_1; "/workspace/llm4binary/github/2025_star3"... mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea r15, [rsp+148h+var_E0] mov [r15-10h], r15 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jnz short loc_1094F movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r15], xmm0 jmp short loc_1095C loc_10936: mov eax, [rsp+148h+var_13C] mov [rbx+2Ch], eax loc_1093D: add rsp, 118h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_1094F: mov [rsp+148h+var_F0], rdx mov rdx, [rcx] mov [rsp+148h+var_E0], rdx loc_1095C: mov rdx, [rax+8] lea rdi, [rsp+148h+var_F0] mov [rdi+8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea rsi, aLine; ", line " call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea r12, [rsp+148h+var_100] mov [r12-10h], r12 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jnz short loc_109A7 movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r12], xmm0 jmp short loc_109B4 loc_109A7: mov [rsp+148h+var_110], rdx mov rdx, [rcx] mov [rsp+148h+var_100], rdx loc_109B4: mov rdx, [rax+8] mov [rsp+148h+var_108], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea rsi, [rsp+148h+var_114] mov dword ptr [rsi], 43Dh lea rdi, [rsp+148h+var_90] call _ZN7testing8internal18StreamableToStringIiEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKT_; testing::internal::StreamableToString<int>(int const&) lea rdi, [rsp+148h+var_50] lea rsi, [rsp+148h+var_110] lea rdx, [rsp+148h+var_90] call _ZStplIcSt11char_traitsIcESaIcEENSt7__cxx1112basic_stringIT_T0_T1_EEOS8_S9_; std::operator+<char>(std::string&&,std::string&) lea rsi, asc_43673+1; ": " lea rdi, [rsp+148h+var_50] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea r13, [rsp+148h+var_C0] mov [r13-10h], r13 mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jnz short loc_10A37 movups xmm0, xmmword ptr [rcx] movups xmmword ptr [r13+0], xmm0 jmp short loc_10A47 loc_10A37: mov [rsp+148h+var_D0], rdx mov rdx, [rcx] mov [rsp+148h+var_C0], rdx loc_10A47: mov rdx, [rax+8] lea rdi, [rsp+148h+var_D0] mov [rdi+8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea rsi, aWaitpidChildPi; "waitpid(child_pid_, &status_value, 0)" call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea rbp, [rsp+148h+var_A0] mov [rbp-10h], rbp mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jnz short loc_10A93 movups xmm0, xmmword ptr [rcx] movups xmmword ptr [rbp+0], xmm0 jmp short loc_10AA6 loc_10A93: mov [rsp+148h+var_B0], rdx mov rdx, [rcx] mov [rsp+148h+var_A0], rdx loc_10AA6: mov rdx, [rax+8] lea rdi, [rsp+148h+var_B0] mov [rdi+8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 lea rsi, aFcntlPipeFd1FS+1Dh; " != -1" call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) lea rcx, [rsp+148h+var_128] mov [rcx-10h], rcx mov rdx, [rax] mov rcx, rax add rcx, 10h cmp rdx, rcx jnz short loc_10AF6 movups xmm0, xmmword ptr [rcx] lea rdx, [rsp+148h+var_128] movups xmmword ptr [rdx], xmm0 jmp short loc_10B03 loc_10AF6: mov [rsp+148h+var_138], rdx mov rdx, [rcx] mov [rsp+148h+var_128], rdx loc_10B03: mov rdx, [rax+8] lea rdi, [rsp+148h+var_138] mov [rdi+8], rdx mov [rax], rcx mov qword ptr [rax+8], 0 mov byte ptr [rax+10h], 0 call _ZN7testing8internalL14DeathTestAbortERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE; testing::internal::DeathTestAbort(std::string const&) mov rbx, rax mov rdi, [rsp+148h+var_138]; void * lea rax, [rsp+148h+var_128] cmp rdi, rax jz short loc_10B48 mov rsi, [rsp+148h+var_128] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_10B48 mov rbx, rax loc_10B48: mov rdi, [rsp+148h+var_B0]; void * cmp rdi, rbp jz short loc_10B6A mov rsi, [rsp+148h+var_A0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_10B6A mov rbx, rax loc_10B6A: mov rdi, [rsp+148h+var_D0]; void * cmp rdi, r13 jz short loc_10B89 mov rsi, [rsp+148h+var_C0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_10B89 mov rbx, rax loc_10B89: lea rax, [rsp+148h+var_40] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_10BAF mov rsi, [rsp+148h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_10BAF mov rbx, rax loc_10BAF: lea rax, [rsp+148h+var_80] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_10BD5 mov rsi, [rsp+148h+var_80] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_10BD5 mov rbx, rax loc_10BD5: mov rdi, [rsp+148h+var_110]; void * cmp rdi, r12 jz short loc_10BF1 mov rsi, [rsp+148h+var_100] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_10BF1 mov rbx, rax loc_10BF1: mov rdi, [rsp+148h+var_F0]; void * cmp rdi, r15 jz short loc_10C0D mov rsi, [rsp+148h+var_E0] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_10C0D mov rbx, rax loc_10C0D: mov rdi, [rsp+148h+var_70]; void * cmp rdi, r14 jz short loc_10C2A mov rsi, [rsp+148h+var_60] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_10C2A: mov rdi, rbx call __Unwind_Resume
long long testing::internal::ForkingDeathTest::Wait(testing::internal::ForkingDeathTest *this) { long long result; // rax long long v2; // rax __int128 *v3; // rcx long long v4; // rax __int128 *v5; // rcx long long v6; // rax __int128 *v7; // rcx long long v8; // rax __int128 *v9; // rcx long long v10; // rax long long v11; // r8 long long v12; // r9 __int128 *v13; // rcx long long v14; // rdx long long v15; // rbx char v16; // [rsp+0h] [rbp-148h] unsigned int v17; // [rsp+Ch] [rbp-13Ch] BYREF void *v18; // [rsp+10h] [rbp-138h] BYREF long long v19; // [rsp+18h] [rbp-130h] __int128 v20; // [rsp+20h] [rbp-128h] BYREF int v21; // [rsp+34h] [rbp-114h] BYREF void *v22[2]; // [rsp+38h] [rbp-110h] BYREF __int128 v23; // [rsp+48h] [rbp-100h] BYREF void *v24[2]; // [rsp+58h] [rbp-F0h] BYREF __int128 v25; // [rsp+68h] [rbp-E0h] BYREF void *v26[2]; // [rsp+78h] [rbp-D0h] BYREF __int128 v27; // [rsp+88h] [rbp-C0h] BYREF void *v28[2]; // [rsp+98h] [rbp-B0h] BYREF __int128 v29; // [rsp+A8h] [rbp-A0h] BYREF void *v30[2]; // [rsp+B8h] [rbp-90h] BYREF long long v31; // [rsp+C8h] [rbp-80h] BYREF void *v32[2]; // [rsp+D8h] [rbp-70h] BYREF _QWORD v33[2]; // [rsp+E8h] [rbp-60h] BYREF void *v34[2]; // [rsp+F8h] [rbp-50h] BYREF long long v35; // [rsp+108h] [rbp-40h] BYREF result = 0LL; if ( *((_BYTE *)this + 40) == 1 ) { testing::internal::DeathTestImpl::ReadAndInterpretStatusByte(this); while ( (unsigned int)waitpid(*((unsigned int *)this + 15), &v17, 0LL) == -1 ) { if ( *(_DWORD *)__errno_location() != 4 ) { v32[0] = v33; std::string::_M_construct<char const*>(v32, "CHECK failed: File ", ""); v2 = std::string::append( v32, "/workspace/llm4binary/github/2025_star3/giladroyz[P]FindPeaks/build_O1/_deps/googletest-src/googletest/sr" "c/gtest-death-test.cc"); v24[0] = &v25; v3 = (__int128 *)(v2 + 16); if ( *(_QWORD *)v2 == v2 + 16 ) { v25 = *v3; } else { v24[0] = *(void **)v2; *(_QWORD *)&v25 = *(_QWORD *)v3; } v24[1] = *(void **)(v2 + 8); *(_QWORD *)v2 = v3; *(_QWORD *)(v2 + 8) = 0LL; *(_BYTE *)(v2 + 16) = 0; v4 = std::string::append(v24, ", line "); v22[0] = &v23; v5 = (__int128 *)(v4 + 16); if ( *(_QWORD *)v4 == v4 + 16 ) { v23 = *v5; } else { v22[0] = *(void **)v4; *(_QWORD *)&v23 = *(_QWORD *)v5; } v22[1] = *(void **)(v4 + 8); *(_QWORD *)v4 = v5; *(_QWORD *)(v4 + 8) = 0LL; *(_BYTE *)(v4 + 16) = 0; v21 = 1085; testing::internal::StreamableToString<int>(v30, &v21); std::operator+<char>(v34, v22, v30); v6 = std::string::append(v34, ": "); v26[0] = &v27; v7 = (__int128 *)(v6 + 16); if ( *(_QWORD *)v6 == v6 + 16 ) { v27 = *v7; } else { v26[0] = *(void **)v6; *(_QWORD *)&v27 = *(_QWORD *)v7; } v26[1] = *(void **)(v6 + 8); *(_QWORD *)v6 = v7; *(_QWORD *)(v6 + 8) = 0LL; *(_BYTE *)(v6 + 16) = 0; v8 = std::string::append(v26, "waitpid(child_pid_, &status_value, 0)"); v28[0] = &v29; v9 = (__int128 *)(v8 + 16); if ( *(_QWORD *)v8 == v8 + 16 ) { v29 = *v9; } else { v28[0] = *(void **)v8; *(_QWORD *)&v29 = *(_QWORD *)v9; } v28[1] = *(void **)(v8 + 8); *(_QWORD *)v8 = v9; *(_QWORD *)(v8 + 8) = 0LL; *(_BYTE *)(v8 + 16) = 0; v10 = std::string::append(v28, " != -1"); v18 = &v20; v13 = (__int128 *)(v10 + 16); if ( *(_QWORD *)v10 == v10 + 16 ) { v20 = *v13; } else { v18 = *(void **)v10; *(_QWORD *)&v20 = *(_QWORD *)v13; } v19 = *(_QWORD *)(v10 + 8); v14 = v19; *(_QWORD *)v10 = v13; *(_QWORD *)(v10 + 8) = 0LL; *(_BYTE *)(v10 + 16) = 0; v15 = testing::internal::DeathTestAbort( (testing::UnitTest *)&v18, (long long)" != -1", v14, (long long)v13, v11, v12, v16); if ( v18 != &v20 ) operator delete(v18, v20 + 1); if ( v28[0] != &v29 ) operator delete(v28[0], v29 + 1); if ( v26[0] != &v27 ) operator delete(v26[0], v27 + 1); if ( v34[0] != &v35 ) operator delete(v34[0], v35 + 1); if ( v30[0] != &v31 ) operator delete(v30[0], v31 + 1); if ( v22[0] != &v23 ) operator delete(v22[0], v23 + 1); if ( v24[0] != &v25 ) operator delete(v24[0], v25 + 1); if ( v32[0] != v33 ) operator delete(v32[0], v33[0] + 1LL); _Unwind_Resume(v15); } } result = v17; *((_DWORD *)this + 11) = v17; } return result; }
Wait: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x118 XOR EAX,EAX CMP byte ptr [RDI + 0x28],0x1 JNZ 0x0011093d MOV RBX,RDI CALL 0x0010f430 LEA R14,[RSP + 0xc] LAB_001108c0: MOV EDI,dword ptr [RBX + 0x3c] MOV RSI,R14 XOR EDX,EDX CALL 0x001083d0 CMP EAX,-0x1 JNZ 0x00110936 CALL 0x00108070 CMP dword ptr [RAX],0x4 JZ 0x001108c0 LEA R14,[RSP + 0xe8] MOV qword ptr [R14 + -0x10],R14 LEA RSI,[0x14206d] LEA RDX,[0x142080] LEA RBX,[RSP + 0xd8] MOV RDI,RBX CALL 0x00139504 LAB_00110906: LEA RSI,[0x141f86] MOV RDI,RBX CALL 0x00108a50 LEA R15,[RSP + 0x68] MOV qword ptr [R15 + -0x10],R15 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JNZ 0x0011094f MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R15],XMM0 JMP 0x0011095c LAB_00110936: MOV EAX,dword ptr [RSP + 0xc] MOV dword ptr [RBX + 0x2c],EAX LAB_0011093d: ADD RSP,0x118 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_0011094f: MOV qword ptr [RSP + 0x58],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x68],RDX LAB_0011095c: MOV RDX,qword ptr [RAX + 0x8] LEA RDI,[RSP + 0x58] MOV qword ptr [RDI + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LAB_00110978: LEA RSI,[0x142081] CALL 0x00108a50 LEA R12,[RSP + 0x48] MOV qword ptr [R12 + -0x10],R12 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JNZ 0x001109a7 MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R12],XMM0 JMP 0x001109b4 LAB_001109a7: MOV qword ptr [RSP + 0x38],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x48],RDX LAB_001109b4: MOV RDX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x40],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LEA RSI,[RSP + 0x34] MOV dword ptr [RSI],0x43d LAB_001109d7: LEA RDI,[RSP + 0xb8] CALL 0x00132327 LAB_001109e4: LEA RDI,[RSP + 0xf8] LEA RSI,[RSP + 0x38] LEA RDX,[RSP + 0xb8] CALL 0x0013227f LAB_001109fe: LEA RSI,[0x143674] LEA RDI,[RSP + 0xf8] CALL 0x00108a50 LEA R13,[RSP + 0x88] MOV qword ptr [R13 + -0x10],R13 MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JNZ 0x00110a37 MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [R13],XMM0 JMP 0x00110a47 LAB_00110a37: MOV qword ptr [RSP + 0x78],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x88],RDX LAB_00110a47: MOV RDX,qword ptr [RAX + 0x8] LEA RDI,[RSP + 0x78] MOV qword ptr [RDI + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LAB_00110a63: LEA RSI,[0x142213] CALL 0x00108a50 LEA RBP,[RSP + 0xa8] MOV qword ptr [RBP + -0x10],RBP MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JNZ 0x00110a93 MOVUPS XMM0,xmmword ptr [RCX] MOVUPS xmmword ptr [RBP],XMM0 JMP 0x00110aa6 LAB_00110a93: MOV qword ptr [RSP + 0x98],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0xa8],RDX LAB_00110aa6: MOV RDX,qword ptr [RAX + 0x8] LEA RDI,[RSP + 0x98] MOV qword ptr [RDI + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LAB_00110ac5: LEA RSI,[0x14229e] CALL 0x00108a50 LEA RCX,[RSP + 0x20] MOV qword ptr [RCX + -0x10],RCX MOV RDX,qword ptr [RAX] MOV RCX,RAX ADD RCX,0x10 CMP RDX,RCX JNZ 0x00110af6 MOVUPS XMM0,xmmword ptr [RCX] LEA RDX,[RSP + 0x20] MOVUPS xmmword ptr [RDX],XMM0 JMP 0x00110b03 LAB_00110af6: MOV qword ptr [RSP + 0x10],RDX MOV RDX,qword ptr [RCX] MOV qword ptr [RSP + 0x20],RDX LAB_00110b03: MOV RDX,qword ptr [RAX + 0x8] LEA RDI,[RSP + 0x10] MOV qword ptr [RDI + 0x8],RDX MOV qword ptr [RAX],RCX MOV qword ptr [RAX + 0x8],0x0 MOV byte ptr [RAX + 0x10],0x0 LAB_00110b1f: CALL 0x0010f2fd LAB_00110b24: MOV RBX,RAX MOV RDI,qword ptr [RSP + 0x10] LEA RAX,[RSP + 0x20] CMP RDI,RAX JZ 0x00110b48 MOV RSI,qword ptr [RSP + 0x20] INC RSI CALL 0x001084e0 JMP 0x00110b48 LAB_00110b48: MOV RDI,qword ptr [RSP + 0x98] CMP RDI,RBP JZ 0x00110b6a MOV RSI,qword ptr [RSP + 0xa8] INC RSI CALL 0x001084e0 JMP 0x00110b6a LAB_00110b6a: MOV RDI,qword ptr [RSP + 0x78] CMP RDI,R13 JZ 0x00110b89 MOV RSI,qword ptr [RSP + 0x88] INC RSI CALL 0x001084e0 JMP 0x00110b89 LAB_00110b89: LEA RAX,[RSP + 0x108] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00110baf MOV RSI,qword ptr [RSP + 0x108] INC RSI CALL 0x001084e0 JMP 0x00110baf LAB_00110baf: LEA RAX,[RSP + 0xc8] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x00110bd5 MOV RSI,qword ptr [RSP + 0xc8] INC RSI CALL 0x001084e0 JMP 0x00110bd5 LAB_00110bd5: MOV RDI,qword ptr [RSP + 0x38] CMP RDI,R12 JZ 0x00110bf1 MOV RSI,qword ptr [RSP + 0x48] INC RSI CALL 0x001084e0 JMP 0x00110bf1 LAB_00110bf1: MOV RDI,qword ptr [RSP + 0x58] CMP RDI,R15 JZ 0x00110c0d MOV RSI,qword ptr [RSP + 0x68] INC RSI CALL 0x001084e0 JMP 0x00110c0d LAB_00110c0d: MOV RDI,qword ptr [RSP + 0xd8] CMP RDI,R14 JZ 0x00110c2a MOV RSI,qword ptr [RSP + 0xe8] INC RSI CALL 0x001084e0 LAB_00110c2a: MOV RDI,RBX CALL 0x00108990
/* testing::internal::ForkingDeathTest::Wait() */ int __thiscall testing::internal::ForkingDeathTest::Wait(ForkingDeathTest *this) { __pid_t _Var1; int iVar2; int *piVar3; long *plVar4; int8 uVar5; long *plVar6; int local_13c; long *local_138; long local_130; long local_128; long lStack_120; int local_114; long *local_110; long local_108; long local_100; long lStack_f8; long *local_f0; long local_e8; long local_e0; long lStack_d8; long *local_d0; long local_c8; long local_c0; long lStack_b8; long *local_b0; long local_a8; long local_a0; long lStack_98; long *local_90 [2]; long local_80 [2]; long *local_70 [2]; long local_60 [2]; long *local_50 [2]; long local_40 [2]; iVar2 = 0; if (this[0x28] == (ForkingDeathTest)0x1) { DeathTestImpl::ReadAndInterpretStatusByte((DeathTestImpl *)this); while( true ) { _Var1 = waitpid(*(__pid_t *)(this + 0x3c),&local_13c,0); if (_Var1 != -1) break; piVar3 = __errno_location(); if (*piVar3 != 4) { local_70[0] = local_60; std::__cxx11::string::_M_construct<char_const*>(local_70,"CHECK failed: File ",""); /* try { // try from 00110906 to 00110914 has its CatchHandler @ 00110c0a */ plVar4 = (long *)std::__cxx11::string::append((char *)local_70); local_f0 = (long *)*plVar4; plVar6 = plVar4 + 2; if (local_f0 == plVar6) { local_e0 = *plVar6; lStack_d8 = plVar4[3]; local_f0 = &local_e0; } else { local_e0 = *plVar6; } local_e8 = plVar4[1]; *plVar4 = (long)plVar6; plVar4[1] = 0; *(int1 *)(plVar4 + 2) = 0; /* try { // try from 00110978 to 00110983 has its CatchHandler @ 00110bee */ plVar4 = (long *)std::__cxx11::string::append((char *)&local_f0); local_110 = (long *)*plVar4; plVar6 = plVar4 + 2; if (local_110 == plVar6) { local_100 = *plVar6; lStack_f8 = plVar4[3]; local_110 = &local_100; } else { local_100 = *plVar6; } local_108 = plVar4[1]; *plVar4 = (long)plVar6; plVar4[1] = 0; *(int1 *)(plVar4 + 2) = 0; local_114 = 0x43d; /* try { // try from 001109d7 to 001109e3 has its CatchHandler @ 00110bd2 */ StreamableToString<int>((internal *)local_90,&local_114); /* try { // try from 001109e4 to 001109fd has its CatchHandler @ 00110bac */ std::operator+((string *)local_50,(string *)&local_110); /* try { // try from 001109fe to 00110a11 has its CatchHandler @ 00110b86 */ plVar4 = (long *)std::__cxx11::string::append((char *)local_50); local_d0 = (long *)*plVar4; plVar6 = plVar4 + 2; if (local_d0 == plVar6) { local_c0 = *plVar6; lStack_b8 = plVar4[3]; local_d0 = &local_c0; } else { local_c0 = *plVar6; } local_c8 = plVar4[1]; *plVar4 = (long)plVar6; plVar4[1] = 0; *(int1 *)(plVar4 + 2) = 0; /* try { // try from 00110a63 to 00110a6e has its CatchHandler @ 00110b67 */ plVar4 = (long *)std::__cxx11::string::append((char *)&local_d0); local_b0 = (long *)*plVar4; plVar6 = plVar4 + 2; if (local_b0 == plVar6) { local_a0 = *plVar6; lStack_98 = plVar4[3]; local_b0 = &local_a0; } else { local_a0 = *plVar6; } local_a8 = plVar4[1]; *plVar4 = (long)plVar6; plVar4[1] = 0; *(int1 *)(plVar4 + 2) = 0; /* try { // try from 00110ac5 to 00110ad0 has its CatchHandler @ 00110b45 */ plVar4 = (long *)std::__cxx11::string::append((char *)&local_b0); local_138 = (long *)*plVar4; plVar6 = plVar4 + 2; if (local_138 == plVar6) { local_128 = *plVar6; lStack_120 = plVar4[3]; local_138 = &local_128; } else { local_128 = *plVar6; } local_130 = plVar4[1]; *plVar4 = (long)plVar6; plVar4[1] = 0; *(int1 *)(plVar4 + 2) = 0; /* try { // try from 00110b1f to 00110b23 has its CatchHandler @ 00110b24 */ uVar5 = DeathTestAbort((string *)&local_138); /* catch() { ... } // from try @ 00110b1f with catch @ 00110b24 */ if (local_138 != &local_128) { operator_delete(local_138,local_128 + 1); } if (local_b0 != &local_a0) { operator_delete(local_b0,local_a0 + 1); } if (local_d0 != &local_c0) { operator_delete(local_d0,local_c0 + 1); } if (local_50[0] != local_40) { operator_delete(local_50[0],local_40[0] + 1); } if (local_90[0] != local_80) { operator_delete(local_90[0],local_80[0] + 1); } if (local_110 != &local_100) { operator_delete(local_110,local_100 + 1); } if (local_f0 != &local_e0) { operator_delete(local_f0,local_e0 + 1); } if (local_70[0] != local_60) { operator_delete(local_70[0],local_60[0] + 1); } /* WARNING: Subroutine does not return */ _Unwind_Resume(uVar5); } } *(int *)(this + 0x2c) = local_13c; iVar2 = local_13c; } return iVar2; }
31,052
common_sampler_sample_and_accept_n(common_sampler*, llama_context*, std::vector<int, std::allocator<int>> const&, std::vector<int, std::allocator<int>> const&, bool)
monkey531[P]llama/common/sampling.cpp
std::vector<llama_token> common_sampler_sample_and_accept_n(struct common_sampler * gsmpl, struct llama_context * ctx, const std::vector<int> & idxs, const llama_tokens & draft, bool grammar_first) { GGML_ASSERT(idxs.size() == draft.size() + 1 && "idxs.size() must be draft.size() + 1"); std::vector<llama_token> result; result.reserve(idxs.size()); size_t i = 0; for (; i < draft.size(); i++) { const llama_token id = common_sampler_sample(gsmpl, ctx, idxs[i], grammar_first); common_sampler_accept(gsmpl, id, true); result.push_back(id); if (draft[i] != id) { break; } } if (i == draft.size()) { const llama_token id = common_sampler_sample(gsmpl, ctx, idxs[i], grammar_first); common_sampler_accept(gsmpl, id, true); result.push_back(id); } return result; }
O1
cpp
common_sampler_sample_and_accept_n(common_sampler*, llama_context*, std::vector<int, std::allocator<int>> const&, std::vector<int, std::allocator<int>> const&, bool): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdx, 0x10(%rsp) movq %rsi, %r14 movq 0x8(%rcx), %rsi subq (%rcx), %rsi movq 0x8(%r8), %rax subq (%r8), %rax sarq $0x2, %rsi sarq $0x2, %rax incq %rax cmpq %rax, %rsi jne 0xcf269 movl %r9d, %ebp movq %r8, %r13 movq %rcx, %r12 movq %rdi, %rbx xorps %xmm0, %xmm0 movups %xmm0, (%rdi) movq $0x0, 0x10(%rdi) callq 0xd022c movq 0x8(%r13), %rax movzbl %bpl, %ebp cmpq (%r13), %rax je 0xcf1f2 xorl %r15d, %r15d movq (%r12), %rax movl (%rax,%r15,4), %edx movq %r14, %rdi movq 0x10(%rsp), %rsi movl %ebp, %ecx callq 0xcefc0 movl %eax, 0x8(%rsp) movq %r14, %rdi movl %eax, %esi movl $0x1, %edx callq 0xcee07 movq 0x8(%rbx), %rsi cmpq 0x10(%rbx), %rsi je 0xcf1c1 movl 0x8(%rsp), %eax movl %eax, (%rsi) addq $0x4, %rsi movq %rsi, 0x8(%rbx) jmp 0xcf1ce movq %rbx, %rdi leaq 0x8(%rsp), %rdx callq 0x71104 movq (%r13), %rax movl (%rax,%r15,4), %eax cmpl 0x8(%rsp), %eax jne 0xcf1f5 incq %r15 movq 0x8(%r13), %rax subq (%r13), %rax sarq $0x2, %rax cmpq %rax, %r15 jb 0xcf17d jmp 0xcf1f5 xorl %r15d, %r15d movq 0x8(%r13), %rax subq (%r13), %rax sarq $0x2, %rax cmpq %rax, %r15 jne 0xcf257 movq (%r12), %rax movl (%rax,%r15,4), %edx movq %r14, %rdi movq 0x10(%rsp), %rsi movl %ebp, %ecx callq 0xcefc0 movl %eax, 0xc(%rsp) movq %r14, %rdi movl %eax, %esi movl $0x1, %edx callq 0xcee07 movq 0x8(%rbx), %rsi cmpq 0x10(%rbx), %rsi je 0xcf24a movl 0xc(%rsp), %eax movl %eax, (%rsi) addq $0x4, %rsi movq %rsi, 0x8(%rbx) jmp 0xcf257 leaq 0xc(%rsp), %rdx movq %rbx, %rdi callq 0x71104 movq %rbx, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x29021(%rip), %rdi # 0xf8291 leaq 0x1fba0(%rip), %rdx # 0xeee17 leaq 0x291a0(%rip), %rcx # 0xf841e movl $0x155, %esi # imm = 0x155 xorl %eax, %eax callq 0x1bed0 jmp 0xcf28e jmp 0xcf28e movq %rax, %r14 movq (%rbx), %rdi testq %rdi, %rdi je 0xcf2a5 movq 0x10(%rbx), %rsi subq %rdi, %rsi callq 0x1b8d0 movq %r14, %rdi callq 0x1bfc0
_Z34common_sampler_sample_and_accept_nP14common_samplerP13llama_contextRKSt6vectorIiSaIiEES7_b: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov [rsp+48h+var_38], rdx mov r14, rsi mov rsi, [rcx+8] sub rsi, [rcx] mov rax, [r8+8] sub rax, [r8] sar rsi, 2 sar rax, 2 inc rax cmp rsi, rax jnz loc_CF269 mov ebp, r9d mov r13, r8 mov r12, rcx mov rbx, rdi xorps xmm0, xmm0 movups xmmword ptr [rdi], xmm0 mov qword ptr [rdi+10h], 0 call _ZNSt6vectorIiSaIiEE7reserveEm; std::vector<int>::reserve(ulong) mov rax, [r13+8] movzx ebp, bpl cmp rax, [r13+0] jz short loc_CF1F2 xor r15d, r15d loc_CF17D: mov rax, [r12] mov edx, [rax+r15*4] mov rdi, r14 mov rsi, [rsp+48h+var_38] mov ecx, ebp call _Z21common_sampler_sampleP14common_samplerP13llama_contextib; common_sampler_sample(common_sampler *,llama_context *,int,bool) mov [rsp+48h+var_40], eax mov rdi, r14 mov esi, eax mov edx, 1 call _Z21common_sampler_acceptP14common_samplerib; common_sampler_accept(common_sampler *,int,bool) mov rsi, [rbx+8] cmp rsi, [rbx+10h] jz short loc_CF1C1 mov eax, [rsp+48h+var_40] mov [rsi], eax add rsi, 4 mov [rbx+8], rsi jmp short loc_CF1CE loc_CF1C1: mov rdi, rbx lea rdx, [rsp+48h+var_40] call _ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_; std::vector<int>::_M_realloc_insert<int const&>(__gnu_cxx::__normal_iterator<int *,std::vector<int>>,int const&) loc_CF1CE: mov rax, [r13+0] mov eax, [rax+r15*4] cmp eax, [rsp+48h+var_40] jnz short loc_CF1F5 inc r15 mov rax, [r13+8] sub rax, [r13+0] sar rax, 2 cmp r15, rax jb short loc_CF17D jmp short loc_CF1F5 loc_CF1F2: xor r15d, r15d loc_CF1F5: mov rax, [r13+8] sub rax, [r13+0] sar rax, 2 cmp r15, rax jnz short loc_CF257 mov rax, [r12] mov edx, [rax+r15*4] mov rdi, r14 mov rsi, [rsp+48h+var_38] mov ecx, ebp call _Z21common_sampler_sampleP14common_samplerP13llama_contextib; common_sampler_sample(common_sampler *,llama_context *,int,bool) mov [rsp+48h+var_3C], eax mov rdi, r14 mov esi, eax mov edx, 1 call _Z21common_sampler_acceptP14common_samplerib; common_sampler_accept(common_sampler *,int,bool) mov rsi, [rbx+8] cmp rsi, [rbx+10h] jz short loc_CF24A mov eax, [rsp+48h+var_3C] mov [rsi], eax add rsi, 4 mov [rbx+8], rsi jmp short loc_CF257 loc_CF24A: lea rdx, [rsp+48h+var_3C] mov rdi, rbx call _ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_; std::vector<int>::_M_realloc_insert<int const&>(__gnu_cxx::__normal_iterator<int *,std::vector<int>>,int const&) loc_CF257: mov rax, rbx add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_CF269: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aIdxsSizeDraftS; "idxs.size() == draft.size() + 1 && \"id"... mov esi, 155h xor eax, eax call _ggml_abort jmp short loc_CF28E jmp short $+2 loc_CF28E: mov r14, rax mov rdi, [rbx]; void * test rdi, rdi jz short loc_CF2A5 mov rsi, [rbx+10h] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_CF2A5: mov rdi, r14 call __Unwind_Resume
long long * common_sampler_sample_and_accept_n( long long *a1, _QWORD *a2, long long a3, _QWORD *a4, _QWORD *a5, unsigned __int8 a6) { long long v6; // rbx unsigned long long v11; // r15 _DWORD *v12; // rsi _DWORD *v13; // rsi long long v15; // rax long long v16; // r14 unsigned int v17; // [rsp+8h] [rbp-40h] BYREF unsigned int v18; // [rsp+Ch] [rbp-3Ch] BYREF long long v19; // [rsp+10h] [rbp-38h] v19 = a3; if ( (long long)(a4[1] - *a4) >> 2 != ((long long)(a5[1] - *a5) >> 2) + 1 ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/sampling.cpp", 341LL, "GGML_ASSERT(%s) failed", "idxs.size() == draft.size() + 1 && \"idxs.size() must be draft.size() + 1\""); v16 = v15; if ( *(_QWORD *)v6 ) operator delete(*(void **)v6, *(_QWORD *)(v6 + 16) - *(_QWORD *)v6); _Unwind_Resume(v16); } *(_OWORD *)a1 = 0LL; a1[2] = 0LL; std::vector<int>::reserve(); if ( a5[1] == *a5 ) { v11 = 0LL; } else { v11 = 0LL; do { v17 = common_sampler_sample(a2, v19, *(_DWORD *)(*a4 + 4 * v11), a6); common_sampler_accept(a2, v17, 1); v12 = (_DWORD *)a1[1]; if ( v12 == (_DWORD *)a1[2] ) { std::vector<int>::_M_realloc_insert<int const&>(a1, (long long)v12, &v17); } else { *v12 = v17; a1[1] = (long long)(v12 + 1); } if ( *(_DWORD *)(*a5 + 4 * v11) != v17 ) break; ++v11; } while ( v11 < (long long)(a5[1] - *a5) >> 2 ); } if ( v11 == (long long)(a5[1] - *a5) >> 2 ) { v18 = common_sampler_sample(a2, v19, *(_DWORD *)(*a4 + 4 * v11), a6); common_sampler_accept(a2, v18, 1); v13 = (_DWORD *)a1[1]; if ( v13 == (_DWORD *)a1[2] ) { std::vector<int>::_M_realloc_insert<int const&>(a1, (long long)v13, &v18); } else { *v13 = v18; a1[1] = (long long)(v13 + 1); } } return a1; }
common_sampler_sample_and_accept_n: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDX MOV R14,RSI MOV RSI,qword ptr [RCX + 0x8] SUB RSI,qword ptr [RCX] MOV RAX,qword ptr [R8 + 0x8] SUB RAX,qword ptr [R8] SAR RSI,0x2 SAR RAX,0x2 INC RAX CMP RSI,RAX JNZ 0x001cf269 MOV EBP,R9D MOV R13,R8 MOV R12,RCX MOV RBX,RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI],XMM0 MOV qword ptr [RDI + 0x10],0x0 LAB_001cf167: CALL 0x001d022c MOV RAX,qword ptr [R13 + 0x8] MOVZX EBP,BPL CMP RAX,qword ptr [R13] JZ 0x001cf1f2 XOR R15D,R15D LAB_001cf17d: MOV RAX,qword ptr [R12] MOV EDX,dword ptr [RAX + R15*0x4] LAB_001cf185: MOV RDI,R14 MOV RSI,qword ptr [RSP + 0x10] MOV ECX,EBP CALL 0x001cefc0 MOV dword ptr [RSP + 0x8],EAX MOV RDI,R14 MOV ESI,EAX MOV EDX,0x1 CALL 0x001cee07 MOV RSI,qword ptr [RBX + 0x8] CMP RSI,qword ptr [RBX + 0x10] JZ 0x001cf1c1 MOV EAX,dword ptr [RSP + 0x8] MOV dword ptr [RSI],EAX ADD RSI,0x4 MOV qword ptr [RBX + 0x8],RSI JMP 0x001cf1ce LAB_001cf1c1: MOV RDI,RBX LEA RDX,[RSP + 0x8] CALL 0x00171104 LAB_001cf1ce: MOV RAX,qword ptr [R13] MOV EAX,dword ptr [RAX + R15*0x4] CMP EAX,dword ptr [RSP + 0x8] JNZ 0x001cf1f5 INC R15 MOV RAX,qword ptr [R13 + 0x8] SUB RAX,qword ptr [R13] SAR RAX,0x2 CMP R15,RAX JC 0x001cf17d JMP 0x001cf1f5 LAB_001cf1f2: XOR R15D,R15D LAB_001cf1f5: MOV RAX,qword ptr [R13 + 0x8] SUB RAX,qword ptr [R13] SAR RAX,0x2 CMP R15,RAX JNZ 0x001cf257 MOV RAX,qword ptr [R12] MOV EDX,dword ptr [RAX + R15*0x4] LAB_001cf20e: MOV RDI,R14 MOV RSI,qword ptr [RSP + 0x10] MOV ECX,EBP CALL 0x001cefc0 MOV dword ptr [RSP + 0xc],EAX MOV RDI,R14 MOV ESI,EAX MOV EDX,0x1 CALL 0x001cee07 MOV RSI,qword ptr [RBX + 0x8] CMP RSI,qword ptr [RBX + 0x10] JZ 0x001cf24a MOV EAX,dword ptr [RSP + 0xc] MOV dword ptr [RSI],EAX ADD RSI,0x4 MOV qword ptr [RBX + 0x8],RSI JMP 0x001cf257 LAB_001cf24a: LEA RDX,[RSP + 0xc] MOV RDI,RBX CALL 0x00171104 LAB_001cf257: MOV RAX,RBX ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001cf269: LEA RDI,[0x1f8291] LEA RDX,[0x1eee17] LEA RCX,[0x1f841e] MOV ESI,0x155 XOR EAX,EAX CALL 0x0011bed0
/* common_sampler_sample_and_accept_n(common_sampler*, llama_context*, std::vector<int, std::allocator<int> > const&, std::vector<int, std::allocator<int> > const&, bool) */ common_sampler * common_sampler_sample_and_accept_n (common_sampler *param_1,llama_context *param_2,vector *param_3,vector *param_4, bool param_5) { int *piVar1; long *plVar2; ulong uVar3; int7 in_register_00000081; bool in_R9B; int local_40; int local_3c; vector *local_38; uVar3 = *(long *)(param_4 + 8) - *(long *)param_4 >> 2; local_38 = param_3; if (uVar3 == (*(long *)(CONCAT71(in_register_00000081,param_5) + 8) - *(long *)CONCAT71(in_register_00000081,param_5) >> 2) + 1U) { plVar2 = (long *)CONCAT71(in_register_00000081,param_5); *(int8 *)param_1 = 0; *(int8 *)(param_1 + 8) = 0; *(int8 *)(param_1 + 0x10) = 0; /* try { // try from 001cf167 to 001cf16b has its CatchHandler @ 001cf28a */ std::vector<int,std::allocator<int>>::reserve((vector<int,std::allocator<int>> *)param_1,uVar3); if (plVar2[1] == *plVar2) { uVar3 = 0; } else { uVar3 = 0; do { /* try { // try from 001cf185 to 001cf1cd has its CatchHandler @ 001cf28e */ local_40 = common_sampler_sample ((common_sampler *)param_2,(llama_context *)local_38, *(int *)(*(long *)param_4 + uVar3 * 4),in_R9B); common_sampler_accept((common_sampler *)param_2,local_40,true); piVar1 = *(int **)(param_1 + 8); if (piVar1 == *(int **)(param_1 + 0x10)) { std::vector<int,std::allocator<int>>::_M_realloc_insert<int_const&> ((vector<int,std::allocator<int>> *)param_1,piVar1,&local_40); } else { *piVar1 = local_40; *(int **)(param_1 + 8) = piVar1 + 1; } } while ((*(int *)(*plVar2 + uVar3 * 4) == local_40) && (uVar3 = uVar3 + 1, uVar3 < (ulong)(plVar2[1] - *plVar2 >> 2))); } if (uVar3 == plVar2[1] - *plVar2 >> 2) { /* try { // try from 001cf20e to 001cf256 has its CatchHandler @ 001cf28c */ local_3c = common_sampler_sample ((common_sampler *)param_2,(llama_context *)local_38, *(int *)(*(long *)param_4 + uVar3 * 4),in_R9B); common_sampler_accept((common_sampler *)param_2,local_3c,true); piVar1 = *(int **)(param_1 + 8); if (piVar1 == *(int **)(param_1 + 0x10)) { std::vector<int,std::allocator<int>>::_M_realloc_insert<int_const&> ((vector<int,std::allocator<int>> *)param_1,piVar1,&local_3c); } else { *piVar1 = local_3c; *(int **)(param_1 + 8) = piVar1 + 1; } } return param_1; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/sampling.cpp",0x155, "GGML_ASSERT(%s) failed", "idxs.size() == draft.size() + 1 && \"idxs.size() must be draft.size() + 1\""); }
31,053
common_sampler_sample_and_accept_n(common_sampler*, llama_context*, std::vector<int, std::allocator<int>> const&, std::vector<int, std::allocator<int>> const&, bool)
monkey531[P]llama/common/sampling.cpp
std::vector<llama_token> common_sampler_sample_and_accept_n(struct common_sampler * gsmpl, struct llama_context * ctx, const std::vector<int> & idxs, const llama_tokens & draft, bool grammar_first) { GGML_ASSERT(idxs.size() == draft.size() + 1 && "idxs.size() must be draft.size() + 1"); std::vector<llama_token> result; result.reserve(idxs.size()); size_t i = 0; for (; i < draft.size(); i++) { const llama_token id = common_sampler_sample(gsmpl, ctx, idxs[i], grammar_first); common_sampler_accept(gsmpl, id, true); result.push_back(id); if (draft[i] != id) { break; } } if (i == draft.size()) { const llama_token id = common_sampler_sample(gsmpl, ctx, idxs[i], grammar_first); common_sampler_accept(gsmpl, id, true); result.push_back(id); } return result; }
O3
cpp
common_sampler_sample_and_accept_n(common_sampler*, llama_context*, std::vector<int, std::allocator<int>> const&, std::vector<int, std::allocator<int>> const&, bool): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdx, 0x10(%rsp) movq %rsi, %r14 movq 0x8(%rcx), %rsi subq (%rcx), %rsi movq 0x8(%r8), %rax subq (%r8), %rax sarq $0x2, %rsi sarq $0x2, %rax incq %rax cmpq %rax, %rsi jne 0xcd767 movl %r9d, %ebp movq %r8, %r13 movq %rcx, %r12 movq %rdi, %rbx xorps %xmm0, %xmm0 movups %xmm0, (%rdi) movq $0x0, 0x10(%rdi) callq 0xce6a4 movq 0x8(%r13), %rax movzbl %bpl, %ebp cmpq (%r13), %rax je 0xcd6f4 xorl %r15d, %r15d movq (%r12), %rax movl (%rax,%r15,4), %edx movq %r14, %rdi movq 0x10(%rsp), %rsi movl %ebp, %ecx callq 0xcd4c0 movl %eax, 0x8(%rsp) movq %r14, %rdi movl %eax, %esi movl $0x1, %edx callq 0xcd307 movq 0x8(%rbx), %rsi cmpq 0x10(%rbx), %rsi je 0xcd6c1 movl 0x8(%rsp), %edx movl %edx, (%rsi) addq $0x4, %rsi movq %rsi, 0x8(%rbx) jmp 0xcd6d2 movq %rbx, %rdi leaq 0x8(%rsp), %rdx callq 0x70956 movl 0x8(%rsp), %edx movq (%r13), %rax movq 0x8(%r13), %rcx cmpl %edx, (%rax,%r15,4) jne 0xcd6fa incq %r15 movq %rcx, %rdx subq %rax, %rdx sarq $0x2, %rdx cmpq %rdx, %r15 jb 0xcd67d jmp 0xcd6fa xorl %r15d, %r15d movq %rax, %rcx subq %rax, %rcx sarq $0x2, %rcx cmpq %rcx, %r15 jne 0xcd755 movq (%r12), %rax movl (%rax,%r15,4), %edx movq %r14, %rdi movq 0x10(%rsp), %rsi movl %ebp, %ecx callq 0xcd4c0 movl %eax, %ebp movl %eax, 0xc(%rsp) movq %r14, %rdi movl %eax, %esi movl $0x1, %edx callq 0xcd307 movq 0x8(%rbx), %rsi cmpq 0x10(%rbx), %rsi je 0xcd748 movl %ebp, (%rsi) addq $0x4, %rsi movq %rsi, 0x8(%rbx) jmp 0xcd755 leaq 0xc(%rsp), %rdx movq %rbx, %rdi callq 0x70956 movq %rbx, %rax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq leaq 0x27b13(%rip), %rdi # 0xf5281 leaq 0x1e6a2(%rip), %rdx # 0xebe17 leaq 0x27c92(%rip), %rcx # 0xf540e movl $0x155, %esi # imm = 0x155 xorl %eax, %eax callq 0x1aed0 jmp 0xcd78c jmp 0xcd78c movq %rax, %r14 movq (%rbx), %rdi testq %rdi, %rdi je 0xcd7a3 movq 0x10(%rbx), %rsi subq %rdi, %rsi callq 0x1a8d0 movq %r14, %rdi callq 0x1afc0
_Z34common_sampler_sample_and_accept_nP14common_samplerP13llama_contextRKSt6vectorIiSaIiEES7_b: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov [rsp+48h+var_38], rdx mov r14, rsi mov rsi, [rcx+8] sub rsi, [rcx] mov rax, [r8+8] sub rax, [r8] sar rsi, 2 sar rax, 2 inc rax cmp rsi, rax jnz loc_CD767 mov ebp, r9d mov r13, r8 mov r12, rcx mov rbx, rdi xorps xmm0, xmm0 movups xmmword ptr [rdi], xmm0 mov qword ptr [rdi+10h], 0 call _ZNSt6vectorIiSaIiEE7reserveEm; std::vector<int>::reserve(ulong) mov rax, [r13+8] movzx ebp, bpl cmp rax, [r13+0] jz short loc_CD6F4 xor r15d, r15d loc_CD67D: mov rax, [r12] mov edx, [rax+r15*4] mov rdi, r14 mov rsi, [rsp+48h+var_38] mov ecx, ebp call _Z21common_sampler_sampleP14common_samplerP13llama_contextib; common_sampler_sample(common_sampler *,llama_context *,int,bool) mov [rsp+48h+var_40], eax mov rdi, r14 mov esi, eax mov edx, 1 call _Z21common_sampler_acceptP14common_samplerib; common_sampler_accept(common_sampler *,int,bool) mov rsi, [rbx+8] cmp rsi, [rbx+10h] jz short loc_CD6C1 mov edx, [rsp+48h+var_40] mov [rsi], edx add rsi, 4 mov [rbx+8], rsi jmp short loc_CD6D2 loc_CD6C1: mov rdi, rbx lea rdx, [rsp+48h+var_40] call _ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_; std::vector<int>::_M_realloc_insert<int const&>(__gnu_cxx::__normal_iterator<int *,std::vector<int>>,int const&) mov edx, [rsp+48h+var_40] loc_CD6D2: mov rax, [r13+0] mov rcx, [r13+8] cmp [rax+r15*4], edx jnz short loc_CD6FA inc r15 mov rdx, rcx sub rdx, rax sar rdx, 2 cmp r15, rdx jb short loc_CD67D jmp short loc_CD6FA loc_CD6F4: xor r15d, r15d mov rcx, rax loc_CD6FA: sub rcx, rax sar rcx, 2 cmp r15, rcx jnz short loc_CD755 mov rax, [r12] mov edx, [rax+r15*4] mov rdi, r14 mov rsi, [rsp+48h+var_38] mov ecx, ebp call _Z21common_sampler_sampleP14common_samplerP13llama_contextib; common_sampler_sample(common_sampler *,llama_context *,int,bool) mov ebp, eax mov [rsp+48h+var_3C], eax mov rdi, r14 mov esi, eax mov edx, 1 call _Z21common_sampler_acceptP14common_samplerib; common_sampler_accept(common_sampler *,int,bool) mov rsi, [rbx+8] cmp rsi, [rbx+10h] jz short loc_CD748 mov [rsi], ebp add rsi, 4 mov [rbx+8], rsi jmp short loc_CD755 loc_CD748: lea rdx, [rsp+48h+var_3C] mov rdi, rbx call _ZNSt6vectorIiSaIiEE17_M_realloc_insertIJRKiEEEvN9__gnu_cxx17__normal_iteratorIPiS1_EEDpOT_; std::vector<int>::_M_realloc_insert<int const&>(__gnu_cxx::__normal_iterator<int *,std::vector<int>>,int const&) loc_CD755: mov rax, rbx add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_CD767: lea rdi, aWorkspaceLlm4b_2; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aIdxsSizeDraftS; "idxs.size() == draft.size() + 1 && \"id"... mov esi, 155h xor eax, eax call _ggml_abort jmp short loc_CD78C jmp short $+2 loc_CD78C: mov r14, rax mov rdi, [rbx]; void * test rdi, rdi jz short loc_CD7A3 mov rsi, [rbx+10h] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_CD7A3: mov rdi, r14 call __Unwind_Resume
long long * common_sampler_sample_and_accept_n( long long *a1, _QWORD *a2, long long a3, _QWORD *a4, long long *a5, unsigned __int8 a6) { long long v6; // rbx long long v11; // rax unsigned long long v12; // r15 _DWORD *v13; // rsi unsigned int v14; // edx long long v15; // rcx unsigned int v16; // ebp unsigned int *v17; // rsi long long v19; // rax long long v20; // r14 unsigned int v21; // [rsp+8h] [rbp-40h] BYREF unsigned int v22; // [rsp+Ch] [rbp-3Ch] BYREF long long v23; // [rsp+10h] [rbp-38h] v23 = a3; if ( (long long)(a4[1] - *a4) >> 2 != ((a5[1] - *a5) >> 2) + 1 ) { ggml_abort( "/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/sampling.cpp", 341LL, "GGML_ASSERT(%s) failed", "idxs.size() == draft.size() + 1 && \"idxs.size() must be draft.size() + 1\""); v20 = v19; if ( *(_QWORD *)v6 ) operator delete(*(void **)v6, *(_QWORD *)(v6 + 16) - *(_QWORD *)v6); _Unwind_Resume(v20); } *(_OWORD *)a1 = 0LL; a1[2] = 0LL; std::vector<int>::reserve(); v11 = a5[1]; if ( v11 == *a5 ) { v12 = 0LL; v15 = a5[1]; } else { v12 = 0LL; do { v21 = common_sampler_sample(a2, v23, *(_DWORD *)(*a4 + 4 * v12), a6); common_sampler_accept(a2, v21, 1); v13 = (_DWORD *)a1[1]; if ( v13 == (_DWORD *)a1[2] ) { std::vector<int>::_M_realloc_insert<int const&>(a1, (long long)v13, &v21); v14 = v21; } else { v14 = v21; *v13 = v21; a1[1] = (long long)(v13 + 1); } v11 = *a5; v15 = a5[1]; if ( *(_DWORD *)(*a5 + 4 * v12) != v14 ) break; ++v12; } while ( v12 < (v15 - v11) >> 2 ); } if ( v12 == (v15 - v11) >> 2 ) { v16 = common_sampler_sample(a2, v23, *(_DWORD *)(*a4 + 4 * v12), a6); v22 = v16; common_sampler_accept(a2, v16, 1); v17 = (unsigned int *)a1[1]; if ( v17 == (unsigned int *)a1[2] ) { std::vector<int>::_M_realloc_insert<int const&>(a1, (long long)v17, &v22); } else { *v17 = v16; a1[1] = (long long)(v17 + 1); } } return a1; }
common_sampler_sample_and_accept_n: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDX MOV R14,RSI MOV RSI,qword ptr [RCX + 0x8] SUB RSI,qword ptr [RCX] MOV RAX,qword ptr [R8 + 0x8] SUB RAX,qword ptr [R8] SAR RSI,0x2 SAR RAX,0x2 INC RAX CMP RSI,RAX JNZ 0x001cd767 MOV EBP,R9D MOV R13,R8 MOV R12,RCX MOV RBX,RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI],XMM0 MOV qword ptr [RDI + 0x10],0x0 LAB_001cd667: CALL 0x001ce6a4 MOV RAX,qword ptr [R13 + 0x8] MOVZX EBP,BPL CMP RAX,qword ptr [R13] JZ 0x001cd6f4 XOR R15D,R15D LAB_001cd67d: MOV RAX,qword ptr [R12] MOV EDX,dword ptr [RAX + R15*0x4] LAB_001cd685: MOV RDI,R14 MOV RSI,qword ptr [RSP + 0x10] MOV ECX,EBP CALL 0x001cd4c0 MOV dword ptr [RSP + 0x8],EAX MOV RDI,R14 MOV ESI,EAX MOV EDX,0x1 CALL 0x001cd307 MOV RSI,qword ptr [RBX + 0x8] CMP RSI,qword ptr [RBX + 0x10] JZ 0x001cd6c1 MOV EDX,dword ptr [RSP + 0x8] MOV dword ptr [RSI],EDX ADD RSI,0x4 MOV qword ptr [RBX + 0x8],RSI JMP 0x001cd6d2 LAB_001cd6c1: MOV RDI,RBX LEA RDX,[RSP + 0x8] CALL 0x00170956 MOV EDX,dword ptr [RSP + 0x8] LAB_001cd6d2: MOV RAX,qword ptr [R13] MOV RCX,qword ptr [R13 + 0x8] CMP dword ptr [RAX + R15*0x4],EDX JNZ 0x001cd6fa INC R15 MOV RDX,RCX SUB RDX,RAX SAR RDX,0x2 CMP R15,RDX JC 0x001cd67d JMP 0x001cd6fa LAB_001cd6f4: XOR R15D,R15D MOV RCX,RAX LAB_001cd6fa: SUB RCX,RAX SAR RCX,0x2 CMP R15,RCX JNZ 0x001cd755 MOV RAX,qword ptr [R12] MOV EDX,dword ptr [RAX + R15*0x4] LAB_001cd70e: MOV RDI,R14 MOV RSI,qword ptr [RSP + 0x10] MOV ECX,EBP CALL 0x001cd4c0 MOV EBP,EAX MOV dword ptr [RSP + 0xc],EAX MOV RDI,R14 MOV ESI,EAX MOV EDX,0x1 CALL 0x001cd307 MOV RSI,qword ptr [RBX + 0x8] CMP RSI,qword ptr [RBX + 0x10] JZ 0x001cd748 MOV dword ptr [RSI],EBP ADD RSI,0x4 MOV qword ptr [RBX + 0x8],RSI JMP 0x001cd755 LAB_001cd748: LEA RDX,[RSP + 0xc] MOV RDI,RBX CALL 0x00170956 LAB_001cd755: MOV RAX,RBX ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001cd767: LEA RDI,[0x1f5281] LEA RDX,[0x1ebe17] LEA RCX,[0x1f540e] MOV ESI,0x155 XOR EAX,EAX CALL 0x0011aed0
/* common_sampler_sample_and_accept_n(common_sampler*, llama_context*, std::vector<int, std::allocator<int> > const&, std::vector<int, std::allocator<int> > const&, bool) */ common_sampler * common_sampler_sample_and_accept_n (common_sampler *param_1,llama_context *param_2,vector *param_3,vector *param_4, bool param_5) { int *piVar1; long *plVar2; int iVar3; long lVar4; long lVar5; ulong uVar6; int7 in_register_00000081; bool in_R9B; int local_40; int local_3c; vector *local_38; uVar6 = *(long *)(param_4 + 8) - *(long *)param_4 >> 2; local_38 = param_3; if (uVar6 == (*(long *)(CONCAT71(in_register_00000081,param_5) + 8) - *(long *)CONCAT71(in_register_00000081,param_5) >> 2) + 1U) { plVar2 = (long *)CONCAT71(in_register_00000081,param_5); *(int8 *)param_1 = 0; *(int8 *)(param_1 + 8) = 0; *(int8 *)(param_1 + 0x10) = 0; /* try { // try from 001cd667 to 001cd66b has its CatchHandler @ 001cd788 */ std::vector<int,std::allocator<int>>::reserve((vector<int,std::allocator<int>> *)param_1,uVar6); lVar4 = plVar2[1]; if (lVar4 == *plVar2) { uVar6 = 0; lVar5 = lVar4; } else { uVar6 = 0; do { /* try { // try from 001cd685 to 001cd6cd has its CatchHandler @ 001cd78c */ local_40 = common_sampler_sample ((common_sampler *)param_2,(llama_context *)local_38, *(int *)(*(long *)param_4 + uVar6 * 4),in_R9B); common_sampler_accept((common_sampler *)param_2,local_40,true); piVar1 = *(int **)(param_1 + 8); if (piVar1 == *(int **)(param_1 + 0x10)) { std::vector<int,std::allocator<int>>::_M_realloc_insert<int_const&> ((vector<int,std::allocator<int>> *)param_1,piVar1,&local_40); } else { *piVar1 = local_40; *(int **)(param_1 + 8) = piVar1 + 1; } lVar4 = *plVar2; lVar5 = plVar2[1]; } while ((*(int *)(lVar4 + uVar6 * 4) == local_40) && (uVar6 = uVar6 + 1, uVar6 < (ulong)(lVar5 - lVar4 >> 2))); } if (uVar6 == lVar5 - lVar4 >> 2) { /* try { // try from 001cd70e to 001cd754 has its CatchHandler @ 001cd78a */ iVar3 = common_sampler_sample ((common_sampler *)param_2,(llama_context *)local_38, *(int *)(*(long *)param_4 + uVar6 * 4),in_R9B); local_3c = iVar3; common_sampler_accept((common_sampler *)param_2,iVar3,true); piVar1 = *(int **)(param_1 + 8); if (piVar1 == *(int **)(param_1 + 0x10)) { std::vector<int,std::allocator<int>>::_M_realloc_insert<int_const&> ((vector<int,std::allocator<int>> *)param_1,piVar1,&local_3c); } else { *piVar1 = iVar3; *(int **)(param_1 + 8) = piVar1 + 1; } } return param_1; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/monkey531[P]llama/common/sampling.cpp",0x155, "GGML_ASSERT(%s) failed", "idxs.size() == draft.size() + 1 && \"idxs.size() must be draft.size() + 1\""); }
31,054
OpenGL_Init_3_2
SDL3Lite/dependencies/OpenGL.h
void OpenGL_Init_3_2() { glDrawElementsBaseVertex = (PFNGLDRAWELEMENTSBASEVERTEXPROC)OpenGL_Load("glDrawElementsBaseVertex"); glDrawRangeElementsBaseVertex = (PFNGLDRAWRANGEELEMENTSBASEVERTEXPROC)OpenGL_Load("glDrawRangeElementsBaseVertex"); glDrawElementsInstancedBaseVertex = (PFNGLDRAWELEMENTSINSTANCEDBASEVERTEXPROC)OpenGL_Load("glDrawElementsInstancedBaseVertex"); glMultiDrawElementsBaseVertex = (PFNGLMULTIDRAWELEMENTSBASEVERTEXPROC)OpenGL_Load("glMultiDrawElementsBaseVertex"); glProvokingVertex = (PFNGLPROVOKINGVERTEXPROC)OpenGL_Load("glProvokingVertex"); glFenceSync = (PFNGLFENCESYNCPROC)OpenGL_Load("glFenceSync"); glIsSync = (PFNGLISSYNCPROC)OpenGL_Load("glIsSync"); glDeleteSync = (PFNGLDELETESYNCPROC)OpenGL_Load("glDeleteSync"); glClientWaitSync = (PFNGLCLIENTWAITSYNCPROC)OpenGL_Load("glClientWaitSync"); glWaitSync = (PFNGLWAITSYNCPROC)OpenGL_Load("glWaitSync"); glGetInteger64v = (PFNGLGETINTEGER64VPROC)OpenGL_Load("glGetInteger64v"); glGetSynciv = (PFNGLGETSYNCIVPROC)OpenGL_Load("glGetSynciv"); glGetInteger64i_v = (PFNGLGETINTEGER64I_VPROC)OpenGL_Load("glGetInteger64i_v"); glGetBufferParameteri64v = (PFNGLGETBUFFERPARAMETERI64VPROC)OpenGL_Load("glGetBufferParameteri64v"); glFramebufferTexture = (PFNGLFRAMEBUFFERTEXTUREPROC)OpenGL_Load("glFramebufferTexture"); glTexImage2DMultisample = (PFNGLTEXIMAGE2DMULTISAMPLEPROC)OpenGL_Load("glTexImage2DMultisample"); glTexImage3DMultisample = (PFNGLTEXIMAGE3DMULTISAMPLEPROC)OpenGL_Load("glTexImage3DMultisample"); glGetMultisamplefv = (PFNGLGETMULTISAMPLEFVPROC)OpenGL_Load("glGetMultisamplefv"); glSampleMaski = (PFNGLSAMPLEMASKIPROC)OpenGL_Load("glSampleMaski"); }
O3
c
OpenGL_Init_3_2: pushq %rax leaq 0x5385(%rip), %rdi # 0x177dd callq 0xf3a0 movq %rax, 0xb07c(%rip) # 0x1d4e0 leaq 0x538b(%rip), %rdi # 0x177f6 callq 0xf3a0 movq %rax, 0xb071(%rip) # 0x1d4e8 leaq 0x5396(%rip), %rdi # 0x17814 callq 0xf3a0 movq %rax, 0xb066(%rip) # 0x1d4f0 leaq 0x53a5(%rip), %rdi # 0x17836 callq 0xf3a0 movq %rax, 0xb05b(%rip) # 0x1d4f8 leaq 0x53b0(%rip), %rdi # 0x17854 callq 0xf3a0 movq %rax, 0xb050(%rip) # 0x1d500 leaq 0x53af(%rip), %rdi # 0x17866 callq 0xf3a0 movq %rax, 0xb045(%rip) # 0x1d508 leaq 0x53a8(%rip), %rdi # 0x17872 callq 0xf3a0 movq %rax, 0xb03a(%rip) # 0x1d510 leaq 0x539e(%rip), %rdi # 0x1787b callq 0xf3a0 movq %rax, 0xb02f(%rip) # 0x1d518 leaq 0x5398(%rip), %rdi # 0x17888 callq 0xf3a0 movq %rax, 0xb024(%rip) # 0x1d520 leaq 0x5396(%rip), %rdi # 0x17899 callq 0xf3a0 movq %rax, 0xb019(%rip) # 0x1d528 leaq 0x538e(%rip), %rdi # 0x178a4 callq 0xf3a0 movq %rax, 0xb00e(%rip) # 0x1d530 leaq 0x538b(%rip), %rdi # 0x178b4 callq 0xf3a0 movq %rax, 0xb003(%rip) # 0x1d538 leaq 0x5384(%rip), %rdi # 0x178c0 callq 0xf3a0 movq %rax, 0xaff8(%rip) # 0x1d540 leaq 0x5383(%rip), %rdi # 0x178d2 callq 0xf3a0 movq %rax, 0xafed(%rip) # 0x1d548 leaq 0x5389(%rip), %rdi # 0x178eb callq 0xf3a0 movq %rax, 0xafe2(%rip) # 0x1d550 leaq 0x538b(%rip), %rdi # 0x17900 callq 0xf3a0 movq %rax, 0xafd7(%rip) # 0x1d558 leaq 0x5390(%rip), %rdi # 0x17918 callq 0xf3a0 movq %rax, 0xafcc(%rip) # 0x1d560 leaq 0x5395(%rip), %rdi # 0x17930 callq 0xf3a0 movq %rax, 0xafc1(%rip) # 0x1d568 leaq 0x5395(%rip), %rdi # 0x17943 callq 0xf3a0 movq %rax, 0xafb6(%rip) # 0x1d570 popq %rax retq nopl (%rax)
OpenGL_Init_3_2: push rax lea rdi, aGldrawelements_8; "glDrawElementsBaseVertex" call OpenGL_Load mov cs:glDrawElementsBaseVertex, rax lea rdi, aGldrawrangeele_2; "glDrawRangeElementsBaseVertex" call OpenGL_Load mov cs:glDrawRangeElementsBaseVertex, rax lea rdi, aGldrawelements_9; "glDrawElementsInstancedBaseVertex" call OpenGL_Load mov cs:glDrawElementsInstancedBaseVertex, rax lea rdi, aGlmultidrawele_4; "glMultiDrawElementsBaseVertex" call OpenGL_Load mov cs:glMultiDrawElementsBaseVertex, rax lea rdi, aGlprovokingver_0; "glProvokingVertex" call OpenGL_Load mov cs:glProvokingVertex, rax lea rdi, aGlfencesync_0; "glFenceSync" call OpenGL_Load mov cs:glFenceSync, rax lea rdi, aGlissync_0; "glIsSync" call OpenGL_Load mov cs:glIsSync, rax lea rdi, aGldeletesync_0; "glDeleteSync" call OpenGL_Load mov cs:glDeleteSync, rax lea rdi, aGlclientwaitsy_0; "glClientWaitSync" call OpenGL_Load mov cs:glClientWaitSync, rax lea rdi, aGlwaitsync_0; "glWaitSync" call OpenGL_Load mov cs:glWaitSync, rax lea rdi, aGlgetinteger64_1; "glGetInteger64v" call OpenGL_Load mov cs:glGetInteger64v, rax lea rdi, aGlgetsynciv_0; "glGetSynciv" call OpenGL_Load mov cs:glGetSynciv, rax lea rdi, aGlgetinteger64_2; "glGetInteger64i_v" call OpenGL_Load mov cs:glGetInteger64i_v, rax lea rdi, aGlgetbufferpar_2; "glGetBufferParameteri64v" call OpenGL_Load mov cs:glGetBufferParameteri64v, rax lea rdi, aGlframebuffert_8; "glFramebufferTexture" call OpenGL_Load mov cs:glFramebufferTexture, rax lea rdi, aGlteximage2dmu_0; "glTexImage2DMultisample" call OpenGL_Load mov cs:glTexImage2DMultisample, rax lea rdi, aGlteximage3dmu_0; "glTexImage3DMultisample" call OpenGL_Load mov cs:glTexImage3DMultisample, rax lea rdi, aGlgetmultisamp_0; "glGetMultisamplefv" call OpenGL_Load mov cs:glGetMultisamplefv, rax lea rdi, aGlsamplemaski_0; "glSampleMaski" call OpenGL_Load mov cs:glSampleMaski, rax pop rax retn
void __spoils<rdx,rcx,r8,r9,r10,r11,xmm4,xmm5> OpenGL_Init_3_2() { glDrawElementsBaseVertex = OpenGL_Load("glDrawElementsBaseVertex"); glDrawRangeElementsBaseVertex = OpenGL_Load("glDrawRangeElementsBaseVertex"); glDrawElementsInstancedBaseVertex = OpenGL_Load("glDrawElementsInstancedBaseVertex"); glMultiDrawElementsBaseVertex = OpenGL_Load("glMultiDrawElementsBaseVertex"); glProvokingVertex = OpenGL_Load("glProvokingVertex"); glFenceSync = OpenGL_Load("glFenceSync"); glIsSync = OpenGL_Load("glIsSync"); glDeleteSync = OpenGL_Load("glDeleteSync"); glClientWaitSync = OpenGL_Load("glClientWaitSync"); glWaitSync = OpenGL_Load("glWaitSync"); glGetInteger64v = OpenGL_Load("glGetInteger64v"); glGetSynciv = OpenGL_Load("glGetSynciv"); glGetInteger64i_v = OpenGL_Load("glGetInteger64i_v"); glGetBufferParameteri64v = OpenGL_Load("glGetBufferParameteri64v"); glFramebufferTexture = OpenGL_Load("glFramebufferTexture"); glTexImage2DMultisample = OpenGL_Load("glTexImage2DMultisample"); glTexImage3DMultisample = OpenGL_Load("glTexImage3DMultisample"); glGetMultisamplefv = OpenGL_Load("glGetMultisamplefv"); glSampleMaski = OpenGL_Load("glSampleMaski"); }
OpenGL_Init_3_2: PUSH RAX LEA RDI,[0x1177dd] CALL 0x0010f3a0 MOV qword ptr [0x0011d4e0],RAX LEA RDI,[0x1177f6] CALL 0x0010f3a0 MOV qword ptr [0x0011d4e8],RAX LEA RDI,[0x117814] CALL 0x0010f3a0 MOV qword ptr [0x0011d4f0],RAX LEA RDI,[0x117836] CALL 0x0010f3a0 MOV qword ptr [0x0011d4f8],RAX LEA RDI,[0x117854] CALL 0x0010f3a0 MOV qword ptr [0x0011d500],RAX LEA RDI,[0x117866] CALL 0x0010f3a0 MOV qword ptr [0x0011d508],RAX LEA RDI,[0x117872] CALL 0x0010f3a0 MOV qword ptr [0x0011d510],RAX LEA RDI,[0x11787b] CALL 0x0010f3a0 MOV qword ptr [0x0011d518],RAX LEA RDI,[0x117888] CALL 0x0010f3a0 MOV qword ptr [0x0011d520],RAX LEA RDI,[0x117899] CALL 0x0010f3a0 MOV qword ptr [0x0011d528],RAX LEA RDI,[0x1178a4] CALL 0x0010f3a0 MOV qword ptr [0x0011d530],RAX LEA RDI,[0x1178b4] CALL 0x0010f3a0 MOV qword ptr [0x0011d538],RAX LEA RDI,[0x1178c0] CALL 0x0010f3a0 MOV qword ptr [0x0011d540],RAX LEA RDI,[0x1178d2] CALL 0x0010f3a0 MOV qword ptr [0x0011d548],RAX LEA RDI,[0x1178eb] CALL 0x0010f3a0 MOV qword ptr [0x0011d550],RAX LEA RDI,[0x117900] CALL 0x0010f3a0 MOV qword ptr [0x0011d558],RAX LEA RDI,[0x117918] CALL 0x0010f3a0 MOV qword ptr [0x0011d560],RAX LEA RDI,[0x117930] CALL 0x0010f3a0 MOV qword ptr [0x0011d568],RAX LEA RDI,[0x117943] CALL 0x0010f3a0 MOV qword ptr [0x0011d570],RAX POP RAX RET
int8 OpenGL_Init_3_2(void) { int8 in_RAX; glDrawElementsBaseVertex = OpenGL_Load("glDrawElementsBaseVertex"); glDrawRangeElementsBaseVertex = OpenGL_Load("glDrawRangeElementsBaseVertex"); glDrawElementsInstancedBaseVertex = OpenGL_Load("glDrawElementsInstancedBaseVertex"); glMultiDrawElementsBaseVertex = OpenGL_Load("glMultiDrawElementsBaseVertex"); glProvokingVertex = OpenGL_Load("glProvokingVertex"); glFenceSync = OpenGL_Load("glFenceSync"); glIsSync = OpenGL_Load("glIsSync"); glDeleteSync = OpenGL_Load("glDeleteSync"); glClientWaitSync = OpenGL_Load("glClientWaitSync"); glWaitSync = OpenGL_Load("glWaitSync"); glGetInteger64v = OpenGL_Load("glGetInteger64v"); glGetSynciv = OpenGL_Load("glGetSynciv"); glGetInteger64i_v = OpenGL_Load("glGetInteger64i_v"); glGetBufferParameteri64v = OpenGL_Load("glGetBufferParameteri64v"); glFramebufferTexture = OpenGL_Load("glFramebufferTexture"); glTexImage2DMultisample = OpenGL_Load("glTexImage2DMultisample"); glTexImage3DMultisample = OpenGL_Load("glTexImage3DMultisample"); glGetMultisamplefv = OpenGL_Load("glGetMultisamplefv"); glSampleMaski = OpenGL_Load("glSampleMaski"); return in_RAX; }
31,055
my_mb_wc_euc_jp
eloqsql/strings/ctype-ujis.c
static int my_mb_wc_euc_jp(CHARSET_INFO *cs __attribute__((unused)), my_wc_t *pwc, const uchar *s, const uchar *e) { int hi; if (s >= e) return MY_CS_TOOSMALL; if ((hi= s[0]) < 0x80) /* ASCII code set: [00..7F] -> [U+0000..U+007F] */ { *pwc= hi; return 1; } if (hi >= 0xA1 && hi <= 0xFE) /* JIS-X-0208 code set: [A1..FE][A1..FE] */ { if (s + 2 > e) return MY_CS_TOOSMALL2; return (*pwc= jisx0208_eucjp_to_unicode[(hi << 8) + s[1]]) ? 2 : (s[1] < 0xA1 || s[1] > 0xFE) ? MY_CS_ILSEQ : -2; } /* JIS-X-0201 HALF WIDTH KATAKANA: [8E][A1..DF] -> [U+FF61..U+FF9F] */ if (hi == 0x8E) { if (s + 2 > e) return MY_CS_TOOSMALL2; if (s[1] < 0xA1 || s[1] > 0xDF) return MY_CS_ILSEQ; *pwc= 0xFEC0 + s[1]; /* 0xFFC0 = 0xFF61 - 0xA1 */ return 2; } if (hi == 0x8F) /* JIS X 0212 code set: [8F][A1..FE][A1..FE] */ { if (s + 3 > e) return MY_CS_TOOSMALL3; return (*pwc= jisx0212_eucjp_to_unicode[(((int) s[1]) << 8) + s[2]]) ? 3 : (s[1] < 0xA1 || s[1] > 0xFE || s[2] < 0xA1 || s[2] > 0xFE) ? MY_CS_ILSEQ : -3; } return MY_CS_ILSEQ; }
O3
c
my_mb_wc_euc_jp: pushq %rbp movq %rsp, %rbp movl $0xffffff9b, %eax # imm = 0xFFFFFF9B cmpq %rcx, %rdx jae 0xe969b movzbl (%rdx), %edi testb %dil, %dil js 0xe969d movq %rdi, (%rsi) movl $0x1, %eax popq %rbp retq leal 0x5f(%rdi), %eax cmpb $0x5d, %al ja 0xe96e9 leaq 0x2(%rdx), %r8 movl $0xffffff9a, %eax # imm = 0xFFFFFF9A cmpq %rcx, %r8 ja 0xe969b movzbl 0x1(%rdx), %eax shll $0x9, %edi leal (%rdi,%rax,2), %eax leaq 0x2119cd(%rip), %rcx # 0x2fb090 movzwl (%rax,%rcx), %ecx movq %rcx, (%rsi) movl $0x2, %eax testq %rcx, %rcx jne 0xe969b movb 0x1(%rdx), %al incb %al xorl %ecx, %ecx cmpb $-0x5e, %al setb %cl leal -0x2(,%rcx,2), %eax jmp 0xe969b cmpq $0x8f, %rdi je 0xe972d cmpl $0x8e, %edi jne 0xe976f leaq 0x2(%rdx), %rdi movl $0xffffff9a, %eax # imm = 0xFFFFFF9A cmpq %rcx, %rdi ja 0xe969b movzbl 0x1(%rdx), %ecx leal 0x20(%rcx), %edx movl $0x0, %eax cmpb $-0x3f, %dl jb 0xe969b addq $0xfec0, %rcx # imm = 0xFEC0 movq %rcx, (%rsi) movl $0x2, %eax jmp 0xe969b leaq 0x3(%rdx), %rdi movl $0xffffff99, %eax # imm = 0xFFFFFF99 cmpq %rcx, %rdi ja 0xe969b movzwl 0x1(%rdx), %eax rolw $0x8, %ax movzwl %ax, %eax leaq 0x23193f(%rip), %rcx # 0x31b090 movzwl (%rcx,%rax,2), %ecx movq %rcx, (%rsi) movl $0x3, %eax testq %rcx, %rcx jne 0xe969b movb 0x1(%rdx), %al incb %al cmpb $-0x5e, %al jae 0xe9776 xorl %eax, %eax jmp 0xe969b movb 0x2(%rdx), %cl movl $0x0, %eax cmpb $-0x5f, %cl jb 0xe969b xorl %eax, %eax cmpb $-0x1, %cl sete %al leal (%rax,%rax,2), %eax addl $-0x3, %eax jmp 0xe969b
my_mb_wc_euc_jp: push rbp mov rbp, rsp mov eax, 0FFFFFF9Bh cmp rdx, rcx jnb short loc_E969B movzx edi, byte ptr [rdx] test dil, dil js short loc_E969D mov [rsi], rdi mov eax, 1 loc_E969B: pop rbp retn loc_E969D: lea eax, [rdi+5Fh] cmp al, 5Dh ; ']' ja short loc_E96E9 lea r8, [rdx+2] mov eax, 0FFFFFF9Ah cmp r8, rcx ja short loc_E969B movzx eax, byte ptr [rdx+1] shl edi, 9 lea eax, [rdi+rax*2] lea rcx, jisx0208_eucjp_to_unicode movzx ecx, word ptr [rax+rcx] mov [rsi], rcx mov eax, 2 test rcx, rcx jnz short loc_E969B mov al, [rdx+1] inc al xor ecx, ecx cmp al, 0A2h setb cl lea eax, ds:0FFFFFFFFFFFFFFFEh[rcx*2] jmp short loc_E969B loc_E96E9: cmp rdi, 8Fh jz short loc_E972D cmp edi, 8Eh jnz short loc_E976F lea rdi, [rdx+2] mov eax, 0FFFFFF9Ah cmp rdi, rcx ja short loc_E969B movzx ecx, byte ptr [rdx+1] lea edx, [rcx+20h] mov eax, 0 cmp dl, 0C1h jb short loc_E969B add rcx, 0FEC0h mov [rsi], rcx mov eax, 2 jmp loc_E969B loc_E972D: lea rdi, [rdx+3] mov eax, 0FFFFFF99h cmp rdi, rcx ja loc_E969B movzx eax, word ptr [rdx+1] rol ax, 8 movzx eax, ax lea rcx, jisx0212_eucjp_to_unicode movzx ecx, word ptr [rcx+rax*2] mov [rsi], rcx mov eax, 3 test rcx, rcx jnz loc_E969B mov al, [rdx+1] inc al cmp al, 0A2h jnb short loc_E9776 loc_E976F: xor eax, eax jmp loc_E969B loc_E9776: mov cl, [rdx+2] mov eax, 0 cmp cl, 0A1h jb loc_E969B xor eax, eax cmp cl, 0FFh setz al lea eax, [rax+rax*2] add eax, 0FFFFFFFDh jmp loc_E969B
long long my_mb_wc_euc_jp(long long a1, _QWORD *a2, unsigned __int8 *a3, unsigned long long a4) { long long result; // rax long long v5; // rdi long long v6; // rcx long long v7; // rcx long long v8; // rcx unsigned __int8 v9; // cl result = 4294967195LL; if ( (unsigned long long)a3 >= a4 ) return result; v5 = *a3; if ( (v5 & 0x80u) == 0LL ) { *a2 = v5; return 1LL; } if ( (unsigned __int8)(v5 + 95) <= 0x5Du ) { result = 4294967194LL; if ( (unsigned long long)(a3 + 2) <= a4 ) { v6 = jisx0208_eucjp_to_unicode[256 * (_DWORD)v5 + a3[1]]; *a2 = v6; result = 2LL; if ( !v6 ) return 2 * (unsigned int)((unsigned __int8)(a3[1] + 1) < 0xA2u) - 2; } return result; } if ( v5 != 143 ) { if ( (_DWORD)v5 == 142 ) { result = 4294967194LL; if ( (unsigned long long)(a3 + 2) <= a4 ) { v7 = a3[1]; result = 0LL; if ( (unsigned __int8)(v7 + 32) >= 0xC1u ) { *a2 = v7 + 65216; return 2LL; } } return result; } return 0LL; } result = 4294967193LL; if ( (unsigned long long)(a3 + 3) > a4 ) return result; v8 = jisx0212_eucjp_to_unicode[(unsigned __int16)__ROL2__(*(_WORD *)(a3 + 1), 8)]; *a2 = v8; result = 3LL; if ( v8 ) return result; if ( (unsigned __int8)(a3[1] + 1) < 0xA2u ) return 0LL; v9 = a3[2]; result = 0LL; if ( v9 >= 0xA1u ) return 3 * (unsigned int)(v9 == 0xFF) - 3; return result; }
my_mb_wc_euc_jp: PUSH RBP MOV RBP,RSP MOV EAX,0xffffff9b CMP RDX,RCX JNC 0x001e969b MOVZX EDI,byte ptr [RDX] TEST DIL,DIL JS 0x001e969d MOV qword ptr [RSI],RDI MOV EAX,0x1 LAB_001e969b: POP RBP RET LAB_001e969d: LEA EAX,[RDI + 0x5f] CMP AL,0x5d JA 0x001e96e9 LEA R8,[RDX + 0x2] MOV EAX,0xffffff9a CMP R8,RCX JA 0x001e969b MOVZX EAX,byte ptr [RDX + 0x1] SHL EDI,0x9 LEA EAX,[RDI + RAX*0x2] LEA RCX,[0x3fb090] MOVZX ECX,word ptr [RAX + RCX*0x1] MOV qword ptr [RSI],RCX MOV EAX,0x2 TEST RCX,RCX JNZ 0x001e969b MOV AL,byte ptr [RDX + 0x1] INC AL XOR ECX,ECX CMP AL,0xa2 SETC CL LEA EAX,[-0x2 + RCX*0x2] JMP 0x001e969b LAB_001e96e9: CMP RDI,0x8f JZ 0x001e972d CMP EDI,0x8e JNZ 0x001e976f LEA RDI,[RDX + 0x2] MOV EAX,0xffffff9a CMP RDI,RCX JA 0x001e969b MOVZX ECX,byte ptr [RDX + 0x1] LEA EDX,[RCX + 0x20] MOV EAX,0x0 CMP DL,0xc1 JC 0x001e969b ADD RCX,0xfec0 MOV qword ptr [RSI],RCX MOV EAX,0x2 JMP 0x001e969b LAB_001e972d: LEA RDI,[RDX + 0x3] MOV EAX,0xffffff99 CMP RDI,RCX JA 0x001e969b MOVZX EAX,word ptr [RDX + 0x1] ROL AX,0x8 MOVZX EAX,AX LEA RCX,[0x41b090] MOVZX ECX,word ptr [RCX + RAX*0x2] MOV qword ptr [RSI],RCX MOV EAX,0x3 TEST RCX,RCX JNZ 0x001e969b MOV AL,byte ptr [RDX + 0x1] INC AL CMP AL,0xa2 JNC 0x001e9776 LAB_001e976f: XOR EAX,EAX JMP 0x001e969b LAB_001e9776: MOV CL,byte ptr [RDX + 0x2] MOV EAX,0x0 CMP CL,0xa1 JC 0x001e969b XOR EAX,EAX CMP CL,0xff SETZ AL LEA EAX,[RAX + RAX*0x2] ADD EAX,-0x3 JMP 0x001e969b
int my_mb_wc_euc_jp(int8 param_1,ulong *param_2,byte *param_3,byte *param_4) { byte bVar1; ushort uVar2; int iVar3; iVar3 = -0x65; if (param_3 < param_4) { bVar1 = *param_3; if ((char)bVar1 < '\0') { if ((byte)(bVar1 + 0x5f) < 0x5e) { iVar3 = -0x66; if (param_3 + 2 <= param_4) { uVar2 = *(ushort *) (jisx0208_eucjp_to_unicode + ((uint)bVar1 * 0x200 + (uint)param_3[1] * 2)); *param_2 = (ulong)uVar2; iVar3 = 2; if ((ulong)uVar2 == 0) { iVar3 = (uint)((byte)(param_3[1] + 1) < 0xa2) * 2 + -2; } } } else { if ((ulong)bVar1 == 0x8f) { if (param_4 < param_3 + 3) { return -0x67; } uVar2 = *(ushort *) (&jisx0212_eucjp_to_unicode + (ulong)(ushort)(*(ushort *)(param_3 + 1) << 8 | *(ushort *)(param_3 + 1) >> 8) * 2); *param_2 = (ulong)uVar2; if ((ulong)uVar2 != 0) { return 3; } if (0xa1 < (byte)(param_3[1] + 1)) { if (param_3[2] < 0xa1) { return 0; } return (uint)(param_3[2] == 0xff) * 3 + -3; } } else if (bVar1 == 0x8e) { if (param_4 < param_3 + 2) { return -0x66; } if ((byte)(param_3[1] + 0x20) < 0xc1) { return 0; } *param_2 = (ulong)param_3[1] + 0xfec0; return 2; } iVar3 = 0; } } else { *param_2 = (ulong)bVar1; iVar3 = 1; } } return iVar3; }
31,056
string_split(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/common.cpp
std::vector<std::string> string_split(const std::string & str, const std::string & delimiter) { std::vector<std::string> parts; size_t start = 0; size_t end = str.find(delimiter); while (end != std::string::npos) { parts.push_back(str.substr(start, end - start)); start = end + delimiter.length(); end = str.find(delimiter, start); } parts.push_back(str.substr(start)); return parts; }
O1
cpp
string_split(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdx, %r15 movq %rsi, %r14 movq %rdi, %rbx xorps %xmm0, %xmm0 movups %xmm0, (%rdi) movq $0x0, 0x10(%rdi) movq (%rdx), %rsi movq 0x8(%rdx), %rcx xorl %ebp, %ebp movq %r14, %rdi xorl %edx, %edx callq 0x1e5e0 cmpq $-0x1, %rax je 0x9682e movq %rax, %r12 xorl %ebp, %ebp leaq 0x8(%rsp), %r13 movq %r12, %rcx subq %rbp, %rcx movq %r13, %rdi movq %r14, %rsi movq %rbp, %rdx callq 0x1dcb0 movq %rbx, %rdi movq %r13, %rsi callq 0x869a0 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x9680d movq 0x18(%rsp), %rsi incq %rsi callq 0x1dc40 movq (%r15), %rsi movq 0x8(%r15), %rcx movq %r12, %rbp addq %rcx, %rbp movq %r14, %rdi movq %rbp, %rdx callq 0x1e5e0 movq %rax, %r12 cmpq $-0x1, %rax jne 0x967d2 leaq 0x8(%rsp), %rdi movq %r14, %rsi movq %rbp, %rdx movq $-0x1, %rcx callq 0x1dcb0 leaq 0x8(%rsp), %rsi movq %rbx, %rdi callq 0x869a0 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0x9686d movq 0x18(%rsp), %rsi incq %rsi callq 0x1dc40 movq %rbx, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %r14 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi jmp 0x968a1 jmp 0x9688f movq %rax, %r14 jmp 0x968b3 movq %rax, %r14 movq 0x8(%rsp), %rdi leaq 0x18(%rsp), %rax cmpq %rax, %rdi je 0x968b3 movq 0x18(%rsp), %rsi incq %rsi callq 0x1dc40 movq %rbx, %rdi callq 0x261ce movq %r14, %rdi callq 0x1e650
_Z12string_splitRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov r15, rdx mov r14, rsi mov rbx, rdi xorps xmm0, xmm0 movups xmmword ptr [rdi], xmm0 mov qword ptr [rdi+10h], 0 mov rsi, [rdx] mov rcx, [rdx+8] xor ebp, ebp mov rdi, r14 xor edx, edx call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm; std::string::find(char const*,ulong,ulong) cmp rax, 0FFFFFFFFFFFFFFFFh jz short loc_9682E mov r12, rax xor ebp, ebp lea r13, [rsp+58h+var_50] loc_967D2: mov rcx, r12 sub rcx, rbp mov rdi, r13 mov rsi, r14 mov rdx, rbp call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong) mov rdi, rbx mov rsi, r13 call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&) mov rdi, [rsp+58h+var_50]; void * lea rax, [rsp+58h+var_40] cmp rdi, rax jz short loc_9680D mov rsi, [rsp+58h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_9680D: mov rsi, [r15] mov rcx, [r15+8] mov rbp, r12 add rbp, rcx mov rdi, r14 mov rdx, rbp call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcmm; std::string::find(char const*,ulong,ulong) mov r12, rax cmp rax, 0FFFFFFFFFFFFFFFFh jnz short loc_967D2 loc_9682E: lea rdi, [rsp+58h+var_50] mov rsi, r14 mov rdx, rbp mov rcx, 0FFFFFFFFFFFFFFFFh call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm; std::string::substr(ulong,ulong) lea rsi, [rsp+58h+var_50] mov rdi, rbx call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12emplace_backIJS5_EEERS5_DpOT_; std::vector<std::string>::emplace_back<std::string>(std::string &&) lea rax, [rsp+58h+var_40] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_9686D mov rsi, [rsp+58h+var_40] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_9686D: mov rax, rbx add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov r14, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h] jmp short loc_968A1 jmp short $+2 loc_9688F: mov r14, rax jmp short loc_968B3 mov r14, rax mov rdi, [rsp+arg_0]; void * lea rax, [rsp+arg_10] loc_968A1: cmp rdi, rax jz short loc_968B3 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_968B3: mov rdi, rbx call _ZNSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EED2Ev; std::vector<std::string>::~vector() mov rdi, r14 call __Unwind_Resume
long long string_split(long long a1, long long a2, _QWORD *a3) { long long v4; // rbp long long v5; // rax long long v6; // r12 long long v7; // rcx void *v9[2]; // [rsp+8h] [rbp-50h] BYREF _QWORD v10[8]; // [rsp+18h] [rbp-40h] BYREF *(_OWORD *)a1 = 0LL; *(_QWORD *)(a1 + 16) = 0LL; v4 = 0LL; v5 = std::string::find(a2, *a3, 0LL, a3[1]); if ( v5 != -1 ) { v6 = v5; v4 = 0LL; do { std::string::substr(v9, a2, v4, v6 - v4); std::vector<std::string>::emplace_back<std::string>(a1, (long long)v9); if ( v9[0] != v10 ) operator delete(v9[0], v10[0] + 1LL); v7 = a3[1]; v4 = v7 + v6; v6 = std::string::find(a2, *a3, v7 + v6, v7); } while ( v6 != -1 ); } std::string::substr(v9, a2, v4, -1LL); std::vector<std::string>::emplace_back<std::string>(a1, (long long)v9); if ( v9[0] != v10 ) operator delete(v9[0], v10[0] + 1LL); return a1; }
string_split: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV R15,RDX MOV R14,RSI MOV RBX,RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI],XMM0 MOV qword ptr [RDI + 0x10],0x0 MOV RSI,qword ptr [RDX] MOV RCX,qword ptr [RDX + 0x8] XOR EBP,EBP MOV RDI,R14 XOR EDX,EDX CALL 0x0011e5e0 CMP RAX,-0x1 JZ 0x0019682e MOV R12,RAX XOR EBP,EBP LEA R13,[RSP + 0x8] LAB_001967d2: MOV RCX,R12 SUB RCX,RBP LAB_001967d8: MOV RDI,R13 MOV RSI,R14 MOV RDX,RBP CALL 0x0011dcb0 LAB_001967e6: MOV RDI,RBX MOV RSI,R13 CALL 0x001869a0 MOV RDI,qword ptr [RSP + 0x8] LEA RAX,[RSP + 0x18] CMP RDI,RAX JZ 0x0019680d MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011dc40 LAB_0019680d: MOV RSI,qword ptr [R15] MOV RCX,qword ptr [R15 + 0x8] MOV RBP,R12 ADD RBP,RCX MOV RDI,R14 MOV RDX,RBP CALL 0x0011e5e0 MOV R12,RAX CMP RAX,-0x1 JNZ 0x001967d2 LAB_0019682e: LEA RDI,[RSP + 0x8] MOV RSI,R14 MOV RDX,RBP MOV RCX,-0x1 CALL 0x0011dcb0 LAB_00196845: LEA RSI,[RSP + 0x8] MOV RDI,RBX CALL 0x001869a0 LAB_00196852: LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0019686d MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x0011dc40 LAB_0019686d: MOV RAX,RBX ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* string_split(std::__cxx11::string const&, std::__cxx11::string const&) */ string * string_split(string *param_1,string *param_2) { long lVar1; ulong *in_RDX; long *local_50 [2]; long local_40 [2]; *(int8 *)param_1 = 0; *(int8 *)(param_1 + 8) = 0; *(int8 *)(param_1 + 0x10) = 0; lVar1 = std::__cxx11::string::find((char *)param_2,*in_RDX,0); if (lVar1 != -1) { do { /* try { // try from 001967d8 to 001967e5 has its CatchHandler @ 0019688f */ std::__cxx11::string::substr((ulong)local_50,(ulong)param_2); /* try { // try from 001967e6 to 001967f0 has its CatchHandler @ 00196894 */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>:: emplace_back<std::__cxx11::string> ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)param_1, (string *)local_50); if (local_50[0] != local_40) { operator_delete(local_50[0],local_40[0] + 1); } lVar1 = std::__cxx11::string::find((char *)param_2,*in_RDX,lVar1 + in_RDX[1]); } while (lVar1 != -1); } /* try { // try from 0019682e to 00196844 has its CatchHandler @ 0019688d */ std::__cxx11::string::substr((ulong)local_50,(ulong)param_2); /* try { // try from 00196845 to 00196851 has its CatchHandler @ 0019687f */ std::vector<std::__cxx11::string,std::allocator<std::__cxx11::string>>:: emplace_back<std::__cxx11::string> ((vector<std::__cxx11::string,std::allocator<std::__cxx11::string>> *)param_1, (string *)local_50); if (local_50[0] != local_40) { operator_delete(local_50[0],local_40[0] + 1); } return param_1; }
31,057
js_string_at
bluesky950520[P]quickjs/quickjs.c
static JSValue js_string_at(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue val, ret; JSString *p; int idx, c; val = JS_ToStringCheckObject(ctx, this_val); if (JS_IsException(val)) return val; p = JS_VALUE_GET_STRING(val); if (JS_ToInt32Sat(ctx, &idx, argv[0])) { JS_FreeValue(ctx, val); return JS_EXCEPTION; } if (idx < 0) idx = p->len + idx; if (idx < 0 || idx >= p->len) { ret = JS_UNDEFINED; } else { c = string_get(p, idx); ret = js_new_string_char(ctx, c); } JS_FreeValue(ctx, val); return ret; }
O0
c
js_string_at: subq $0x98, %rsp movq %rsi, 0x78(%rsp) movq %rdx, 0x80(%rsp) movq %rdi, 0x70(%rsp) movl %ecx, 0x6c(%rsp) movq %r8, 0x60(%rsp) movq 0x70(%rsp), %rdi movq 0x78(%rsp), %rsi movq 0x80(%rsp), %rdx callq 0x76ac0 movq %rax, 0x20(%rsp) movq %rdx, 0x28(%rsp) movq 0x20(%rsp), %rax movq %rax, 0x50(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x58(%rsp) movq 0x50(%rsp), %rdi movq 0x58(%rsp), %rsi callq 0x29fb0 cmpl $0x0, %eax je 0xd913a movq 0x50(%rsp), %rax movq %rax, 0x88(%rsp) movq 0x58(%rsp), %rax movq %rax, 0x90(%rsp) jmp 0xd9265 movq 0x50(%rsp), %rax movq %rax, 0x38(%rsp) movq 0x70(%rsp), %rdi movq 0x60(%rsp), %rax movq (%rax), %rdx movq 0x8(%rax), %rcx leaq 0x34(%rsp), %rsi callq 0x3e970 cmpl $0x0, %eax je 0xd9194 movq 0x70(%rsp), %rdi movq 0x50(%rsp), %rsi movq 0x58(%rsp), %rdx callq 0x29f80 movl $0x0, 0x88(%rsp) movq $0x6, 0x90(%rsp) jmp 0xd9265 cmpl $0x0, 0x34(%rsp) jge 0xd91b2 movq 0x38(%rsp), %rax movq 0x4(%rax), %rax andq $0x7fffffff, %rax # imm = 0x7FFFFFFF addl 0x34(%rsp), %eax movl %eax, 0x34(%rsp) cmpl $0x0, 0x34(%rsp) jl 0xd91d1 movl 0x34(%rsp), %eax movq 0x38(%rsp), %rcx movq 0x4(%rcx), %rcx andq $0x7fffffff, %rcx # imm = 0x7FFFFFFF cmpl %ecx, %eax jl 0xd91f8 movl $0x0, 0x10(%rsp) movq $0x3, 0x18(%rsp) movq 0x10(%rsp), %rax movq %rax, 0x40(%rsp) movq 0x18(%rsp), %rax movq %rax, 0x48(%rsp) jmp 0xd9237 movq 0x38(%rsp), %rdi movl 0x34(%rsp), %esi callq 0x62ec0 movl %eax, 0x30(%rsp) movq 0x70(%rsp), %rdi movl 0x30(%rsp), %eax movzwl %ax, %esi callq 0x66740 movq %rax, (%rsp) movq %rdx, 0x8(%rsp) movq (%rsp), %rax movq %rax, 0x40(%rsp) movq 0x8(%rsp), %rax movq %rax, 0x48(%rsp) movq 0x70(%rsp), %rdi movq 0x50(%rsp), %rsi movq 0x58(%rsp), %rdx callq 0x29f80 movq 0x40(%rsp), %rax movq %rax, 0x88(%rsp) movq 0x48(%rsp), %rax movq %rax, 0x90(%rsp) movq 0x88(%rsp), %rax movq 0x90(%rsp), %rdx addq $0x98, %rsp retq nopl (%rax)
js_string_at: sub rsp, 98h mov [rsp+98h+var_20], rsi mov [rsp+98h+var_18], rdx mov [rsp+98h+var_28], rdi mov [rsp+98h+var_2C], ecx mov [rsp+98h+var_38], r8 mov rdi, [rsp+98h+var_28] mov rsi, [rsp+98h+var_20] mov rdx, [rsp+98h+var_18] call JS_ToStringCheckObject mov [rsp+98h+var_78], rax mov [rsp+98h+var_70], rdx mov rax, [rsp+98h+var_78] mov [rsp+98h+var_48], rax mov rax, [rsp+98h+var_70] mov [rsp+98h+var_40], rax mov rdi, [rsp+98h+var_48] mov rsi, [rsp+98h+var_40] call JS_IsException_1 cmp eax, 0 jz short loc_D913A mov rax, [rsp+98h+var_48] mov [rsp+98h+var_10], rax mov rax, [rsp+98h+var_40] mov [rsp+98h+var_8], rax jmp loc_D9265 loc_D913A: mov rax, [rsp+98h+var_48] mov [rsp+98h+var_60], rax mov rdi, [rsp+98h+var_28] mov rax, [rsp+98h+var_38] mov rdx, [rax] mov rcx, [rax+8] lea rsi, [rsp+98h+var_64] call JS_ToInt32Sat cmp eax, 0 jz short loc_D9194 mov rdi, [rsp+98h+var_28] mov rsi, [rsp+98h+var_48] mov rdx, [rsp+98h+var_40] call JS_FreeValue mov dword ptr [rsp+98h+var_10], 0 mov [rsp+98h+var_8], 6 jmp loc_D9265 loc_D9194: cmp [rsp+98h+var_64], 0 jge short loc_D91B2 mov rax, [rsp+98h+var_60] mov rax, [rax+4] and rax, 7FFFFFFFh add eax, [rsp+98h+var_64] mov [rsp+98h+var_64], eax loc_D91B2: cmp [rsp+98h+var_64], 0 jl short loc_D91D1 mov eax, [rsp+98h+var_64] mov rcx, [rsp+98h+var_60] mov rcx, [rcx+4] and rcx, 7FFFFFFFh cmp eax, ecx jl short loc_D91F8 loc_D91D1: mov dword ptr [rsp+98h+var_88], 0 mov [rsp+98h+var_80], 3 mov rax, [rsp+98h+var_88] mov [rsp+98h+var_58], rax mov rax, [rsp+98h+var_80] mov [rsp+98h+var_50], rax jmp short loc_D9237 loc_D91F8: mov rdi, [rsp+98h+var_60] mov esi, [rsp+98h+var_64] call string_get mov [rsp+98h+var_68], eax mov rdi, [rsp+98h+var_28] mov eax, [rsp+98h+var_68] movzx esi, ax call js_new_string_char mov [rsp+98h+var_98], rax mov [rsp+98h+var_90], rdx mov rax, [rsp+98h+var_98] mov [rsp+98h+var_58], rax mov rax, [rsp+98h+var_90] mov [rsp+98h+var_50], rax loc_D9237: mov rdi, [rsp+98h+var_28] mov rsi, [rsp+98h+var_48] mov rdx, [rsp+98h+var_40] call JS_FreeValue mov rax, [rsp+98h+var_58] mov [rsp+98h+var_10], rax mov rax, [rsp+98h+var_50] mov [rsp+98h+var_8], rax loc_D9265: mov rax, [rsp+98h+var_10] mov rdx, [rsp+98h+var_8] add rsp, 98h retn
long long js_string_at( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long v14; // rdx long long v15; // rdx long long v17; // [rsp+10h] [rbp-88h] unsigned __int16 v18; // [rsp+30h] [rbp-68h] int v19; // [rsp+34h] [rbp-64h] BYREF long long v20; // [rsp+38h] [rbp-60h] long long v21; // [rsp+40h] [rbp-58h] long long v22; // [rsp+48h] [rbp-50h] long long v23; // [rsp+50h] [rbp-48h] long long v24; // [rsp+58h] [rbp-40h] long long v25; // [rsp+60h] [rbp-38h] int v26; // [rsp+6Ch] [rbp-2Ch] long long v27; // [rsp+70h] [rbp-28h] long long v28; // [rsp+78h] [rbp-20h] long long v29; // [rsp+80h] [rbp-18h] long long v30; // [rsp+88h] [rbp-10h] long long v31; // [rsp+90h] [rbp-8h] v28 = a2; v29 = a3; v27 = a1; v26 = a4; v25 = a5; v23 = JS_ToStringCheckObject(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); v24 = v14; if ( JS_IsException_1(v23, v14) ) { v30 = v23; v31 = v24; } else { v20 = v23; if ( (unsigned int)JS_ToInt32Sat(v27, (long long)&v19, *(_DWORD **)v25, *(_QWORD *)(v25 + 8)) ) { JS_FreeValue(v27, v23, v24); LODWORD(v30) = 0; v31 = 6LL; } else { if ( v19 < 0 ) v19 += *(_QWORD *)(v20 + 4) & 0x7FFFFFFF; if ( v19 >= 0 && v19 < (*(_DWORD *)(v20 + 4) & 0x7FFFFFFF) ) { v18 = string_get(v20, v19); v21 = js_new_string_char(v27, v18); v22 = v15; } else { LODWORD(v17) = 0; v21 = v17; v22 = 3LL; } JS_FreeValue(v27, v23, v24); v30 = v21; v31 = v22; } } return v30; }
js_string_at: SUB RSP,0x98 MOV qword ptr [RSP + 0x78],RSI MOV qword ptr [RSP + 0x80],RDX MOV qword ptr [RSP + 0x70],RDI MOV dword ptr [RSP + 0x6c],ECX MOV qword ptr [RSP + 0x60],R8 MOV RDI,qword ptr [RSP + 0x70] MOV RSI,qword ptr [RSP + 0x78] MOV RDX,qword ptr [RSP + 0x80] CALL 0x00176ac0 MOV qword ptr [RSP + 0x20],RAX MOV qword ptr [RSP + 0x28],RDX MOV RAX,qword ptr [RSP + 0x20] MOV qword ptr [RSP + 0x50],RAX MOV RAX,qword ptr [RSP + 0x28] MOV qword ptr [RSP + 0x58],RAX MOV RDI,qword ptr [RSP + 0x50] MOV RSI,qword ptr [RSP + 0x58] CALL 0x00129fb0 CMP EAX,0x0 JZ 0x001d913a MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0x88],RAX MOV RAX,qword ptr [RSP + 0x58] MOV qword ptr [RSP + 0x90],RAX JMP 0x001d9265 LAB_001d913a: MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0x38],RAX MOV RDI,qword ptr [RSP + 0x70] MOV RAX,qword ptr [RSP + 0x60] MOV RDX,qword ptr [RAX] MOV RCX,qword ptr [RAX + 0x8] LEA RSI,[RSP + 0x34] CALL 0x0013e970 CMP EAX,0x0 JZ 0x001d9194 MOV RDI,qword ptr [RSP + 0x70] MOV RSI,qword ptr [RSP + 0x50] MOV RDX,qword ptr [RSP + 0x58] CALL 0x00129f80 MOV dword ptr [RSP + 0x88],0x0 MOV qword ptr [RSP + 0x90],0x6 JMP 0x001d9265 LAB_001d9194: CMP dword ptr [RSP + 0x34],0x0 JGE 0x001d91b2 MOV RAX,qword ptr [RSP + 0x38] MOV RAX,qword ptr [RAX + 0x4] AND RAX,0x7fffffff ADD EAX,dword ptr [RSP + 0x34] MOV dword ptr [RSP + 0x34],EAX LAB_001d91b2: CMP dword ptr [RSP + 0x34],0x0 JL 0x001d91d1 MOV EAX,dword ptr [RSP + 0x34] MOV RCX,qword ptr [RSP + 0x38] MOV RCX,qword ptr [RCX + 0x4] AND RCX,0x7fffffff CMP EAX,ECX JL 0x001d91f8 LAB_001d91d1: MOV dword ptr [RSP + 0x10],0x0 MOV qword ptr [RSP + 0x18],0x3 MOV RAX,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [RSP + 0x18] MOV qword ptr [RSP + 0x48],RAX JMP 0x001d9237 LAB_001d91f8: MOV RDI,qword ptr [RSP + 0x38] MOV ESI,dword ptr [RSP + 0x34] CALL 0x00162ec0 MOV dword ptr [RSP + 0x30],EAX MOV RDI,qword ptr [RSP + 0x70] MOV EAX,dword ptr [RSP + 0x30] MOVZX ESI,AX CALL 0x00166740 MOV qword ptr [RSP],RAX MOV qword ptr [RSP + 0x8],RDX MOV RAX,qword ptr [RSP] MOV qword ptr [RSP + 0x40],RAX MOV RAX,qword ptr [RSP + 0x8] MOV qword ptr [RSP + 0x48],RAX LAB_001d9237: MOV RDI,qword ptr [RSP + 0x70] MOV RSI,qword ptr [RSP + 0x50] MOV RDX,qword ptr [RSP + 0x58] CALL 0x00129f80 MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0x88],RAX MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0x90],RAX LAB_001d9265: MOV RAX,qword ptr [RSP + 0x88] MOV RDX,qword ptr [RSP + 0x90] ADD RSP,0x98 RET
int1 [16] js_string_at(int8 param_1,int8 param_2,int8 param_3,int4 param_4, int8 *param_5) { int1 auVar1 [16]; int2 uVar2; int iVar3; uint uStack_84; int local_64; long local_60; int1 local_58 [16]; int1 local_48 [16]; int8 *local_38; int4 local_2c; int8 local_28; int8 local_20; int8 local_18; int4 local_10; int4 uStack_c; int8 local_8; local_38 = param_5; local_2c = param_4; local_28 = param_1; local_20 = param_2; local_18 = param_3; local_48 = JS_ToStringCheckObject(param_1,param_2,param_3); iVar3 = JS_IsException(local_48._0_8_,local_48._8_8_); if (iVar3 == 0) { local_60 = local_48._0_8_; iVar3 = JS_ToInt32Sat(local_28,&local_64,*local_38,local_38[1]); if (iVar3 == 0) { if (local_64 < 0) { local_64 = ((uint)*(int8 *)(local_60 + 4) & 0x7fffffff) + local_64; } if ((local_64 < 0) || ((int)((uint)*(int8 *)(local_60 + 4) & 0x7fffffff) <= local_64)) { local_58._8_8_ = 3; local_58._0_8_ = (ulong)uStack_84 << 0x20; } else { uVar2 = string_get(local_60,local_64); local_58 = js_new_string_char(local_28,uVar2); } JS_FreeValue(local_28,local_48._0_8_,local_48._8_8_); local_10 = local_58._0_4_; uStack_c = local_58._4_4_; local_8 = local_58._8_8_; } else { JS_FreeValue(local_28,local_48._0_8_,local_48._8_8_); local_10 = 0; local_8 = 6; } } else { local_10 = local_48._0_4_; uStack_c = local_48._4_4_; local_8 = local_48._8_8_; } auVar1._4_4_ = uStack_c; auVar1._0_4_ = local_10; auVar1._8_8_ = local_8; return auVar1; }
31,058
js_string_at
bluesky950520[P]quickjs/quickjs.c
static JSValue js_string_at(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { JSValue val, ret; JSString *p; int idx, c; val = JS_ToStringCheckObject(ctx, this_val); if (JS_IsException(val)) return val; p = JS_VALUE_GET_STRING(val); if (JS_ToInt32Sat(ctx, &idx, argv[0])) { JS_FreeValue(ctx, val); return JS_EXCEPTION; } if (idx < 0) idx = p->len + idx; if (idx < 0 || idx >= p->len) { ret = JS_UNDEFINED; } else { c = string_get(p, idx); ret = js_new_string_char(ctx, c); } JS_FreeValue(ctx, val); return ret; }
O2
c
js_string_at: pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x10, %rsp movq %r8, %r12 movq %rdi, %r15 callq 0x3de40 movq %rax, %r14 movq %rdx, %rbx cmpl $0x6, %ebx je 0x6b07e movq (%r12), %rdx movq 0x8(%r12), %rcx leaq 0xc(%rsp), %rsi movq %r15, %rdi callq 0x24eed testl %eax, %eax je 0x6b00e movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x1bbce pushq $0x6 popq %rbx xorl %r14d, %r14d jmp 0x6b07e movl 0xc(%rsp), %ecx movq 0x4(%r14), %rax movl %eax, %edx andl $0x7fffffff, %edx # imm = 0x7FFFFFFF pushq $0x3 popq %r12 testl %ecx, %ecx jns 0x6b02a addl %edx, %ecx js 0x6b03c cmpl %edx, %ecx jae 0x6b03c movl %ecx, %ecx testl %eax, %eax js 0x6b043 movzbl 0x18(%r14,%rcx), %eax jmp 0x6b049 xorl %r13d, %r13d xorl %ecx, %ecx jmp 0x6b067 movzwl 0x18(%r14,%rcx,2), %eax movzwl %ax, %esi movq %r15, %rdi callq 0x39a4c movq %rdx, %r12 movabsq $-0x100000000, %rcx # imm = 0xFFFFFFFF00000000 andq %rax, %rcx movl %eax, %r13d orq %rcx, %r13 movq %r15, %rdi movq %r14, %rsi movq %rbx, %rdx callq 0x1bbce movq %r13, %r14 movq %r12, %rbx movq %r14, %rax movq %rbx, %rdx addq $0x10, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 retq
js_string_at: push r15 push r14 push r13 push r12 push rbx sub rsp, 10h mov r12, r8 mov r15, rdi call JS_ToStringCheckObject mov r14, rax mov rbx, rdx cmp ebx, 6 jz loc_6B07E mov rdx, [r12] mov rcx, [r12+8] lea rsi, [rsp+38h+var_2C] mov rdi, r15 call JS_ToInt32Sat test eax, eax jz short loc_6B00E mov rdi, r15 mov rsi, r14 mov rdx, rbx call JS_FreeValue push 6 pop rbx xor r14d, r14d jmp short loc_6B07E loc_6B00E: mov ecx, [rsp+38h+var_2C] mov rax, [r14+4] mov edx, eax and edx, 7FFFFFFFh push 3 pop r12 test ecx, ecx jns short loc_6B02A add ecx, edx js short loc_6B03C loc_6B02A: cmp ecx, edx jnb short loc_6B03C mov ecx, ecx test eax, eax js short loc_6B043 movzx eax, byte ptr [r14+rcx+18h] jmp short loc_6B049 loc_6B03C: xor r13d, r13d xor ecx, ecx jmp short loc_6B067 loc_6B043: movzx eax, word ptr [r14+rcx*2+18h] loc_6B049: movzx esi, ax mov rdi, r15 call js_new_string_char mov r12, rdx mov rcx, 0FFFFFFFF00000000h and rcx, rax mov r13d, eax loc_6B067: or r13, rcx mov rdi, r15 mov rsi, r14 mov rdx, rbx call JS_FreeValue mov r14, r13 mov rbx, r12 loc_6B07E: mov rax, r14 mov rdx, rbx add rsp, 10h pop rbx pop r12 pop r13 pop r14 pop r15 retn
long long js_string_at( long long a1, long long a2, long long a3, long long a4, long long a5, long long a6, __m128 a7, __m128 a8, __m128 a9, __m128 a10, __m128 a11, __m128 a12, __m128 a13, __m128 a14) { long long v15; // r14 long long v16; // rdx long long v17; // rbx unsigned int v18; // ecx long long v19; // rax unsigned int v20; // edx unsigned __int16 v21; // ax long long v22; // r13 unsigned long long v23; // rcx long long v24; // rax unsigned long long v25; // r13 int v27[11]; // [rsp+Ch] [rbp-2Ch] BYREF v15 = JS_ToStringCheckObject(a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12, a13, a14); v17 = v16; if ( (_DWORD)v16 != 6 ) { if ( (unsigned int)JS_ToInt32Sat(a1, (long long)v27, *(_DWORD **)a5, *(_QWORD *)(a5 + 8)) ) { JS_FreeValue(a1, v15, v17); return 0LL; } else { v18 = v27[0]; v19 = *(_QWORD *)(v15 + 4); v20 = v19 & 0x7FFFFFFF; if ( v27[0] < 0 && (v18 = v20 + v27[0], (int)(v20 + v27[0]) < 0) || v18 >= v20 ) { v22 = 0LL; v23 = 0LL; } else { if ( (int)v19 < 0 ) v21 = *(_WORD *)(v15 + 2LL * v18 + 24); else v21 = *(unsigned __int8 *)(v15 + v18 + 24); v24 = js_new_string_char(a1, v21); v23 = v24 & 0xFFFFFFFF00000000LL; v22 = (unsigned int)v24; } v25 = v23 | v22; JS_FreeValue(a1, v15, v17); return v25; } } return v15; }
js_string_at: PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x10 MOV R12,R8 MOV R15,RDI CALL 0x0013de40 MOV R14,RAX MOV RBX,RDX CMP EBX,0x6 JZ 0x0016b07e MOV RDX,qword ptr [R12] MOV RCX,qword ptr [R12 + 0x8] LEA RSI,[RSP + 0xc] MOV RDI,R15 CALL 0x00124eed TEST EAX,EAX JZ 0x0016b00e MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX CALL 0x0011bbce PUSH 0x6 POP RBX XOR R14D,R14D JMP 0x0016b07e LAB_0016b00e: MOV ECX,dword ptr [RSP + 0xc] MOV RAX,qword ptr [R14 + 0x4] MOV EDX,EAX AND EDX,0x7fffffff PUSH 0x3 POP R12 TEST ECX,ECX JNS 0x0016b02a ADD ECX,EDX JS 0x0016b03c LAB_0016b02a: CMP ECX,EDX JNC 0x0016b03c MOV ECX,ECX TEST EAX,EAX JS 0x0016b043 MOVZX EAX,byte ptr [R14 + RCX*0x1 + 0x18] JMP 0x0016b049 LAB_0016b03c: XOR R13D,R13D XOR ECX,ECX JMP 0x0016b067 LAB_0016b043: MOVZX EAX,word ptr [R14 + RCX*0x2 + 0x18] LAB_0016b049: MOVZX ESI,AX MOV RDI,R15 CALL 0x00139a4c MOV R12,RDX MOV RCX,-0x100000000 AND RCX,RAX MOV R13D,EAX LAB_0016b067: OR R13,RCX MOV RDI,R15 MOV RSI,R14 MOV RDX,RBX CALL 0x0011bbce MOV R14,R13 MOV RBX,R12 LAB_0016b07e: MOV RAX,R14 MOV RDX,RBX ADD RSP,0x10 POP RBX POP R12 POP R13 POP R14 POP R15 RET
int1 [16] js_string_at(int8 param_1) { ushort uVar1; int iVar2; uint uVar3; ulong uVar5; uint uVar6; int8 *in_R8; int8 uVar8; ulong uVar9; int1 auVar10 [16]; uint local_2c; long lVar4; int8 uVar7; auVar10 = JS_ToStringCheckObject(); uVar7 = auVar10._8_8_; lVar4 = auVar10._0_8_; if (auVar10._8_4_ != 6) { iVar2 = JS_ToInt32Sat(param_1,&local_2c,*in_R8,in_R8[1]); if (iVar2 == 0) { uVar3 = (uint)*(int8 *)(lVar4 + 4); uVar6 = uVar3 & 0x7fffffff; uVar8 = 3; if ((((int)local_2c < 0) && (local_2c = local_2c + uVar6, (int)local_2c < 0)) || (uVar6 <= local_2c)) { uVar9 = 0; uVar5 = 0; } else { if ((int)uVar3 < 0) { uVar1 = *(ushort *)(lVar4 + 0x18 + (ulong)local_2c * 2); } else { uVar1 = (ushort)*(byte *)(lVar4 + 0x18 + (ulong)local_2c); } auVar10 = js_new_string_char(param_1,uVar1); uVar8 = auVar10._8_8_; uVar5 = auVar10._0_8_ & 0xffffffff00000000; uVar9 = auVar10._0_8_ & 0xffffffff; } auVar10._8_8_ = uVar8; auVar10._0_8_ = uVar9 | uVar5; JS_FreeValue(param_1,lVar4,uVar7); } else { JS_FreeValue(param_1,lVar4,uVar7); auVar10 = ZEXT816(6) << 0x40; } } return auVar10; }
31,059
nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t)
hkr04[P]cpp-mcp/common/json.hpp
void destroy(value_t t) { if ( (t == value_t::object && object == nullptr) || (t == value_t::array && array == nullptr) || (t == value_t::string && string == nullptr) || (t == value_t::binary && binary == nullptr) ) { //not initialized (e.g. due to exception in the ctor) return; } if (t == value_t::array || t == value_t::object) { // flatten the current json_value to a heap-allocated stack std::vector<basic_json> stack; // move the top-level items to stack if (t == value_t::array) { stack.reserve(array->size()); std::move(array->begin(), array->end(), std::back_inserter(stack)); } else { stack.reserve(object->size()); for (auto&& it : *object) { stack.push_back(std::move(it.second)); } } while (!stack.empty()) { // move the last item to local variable to be processed basic_json current_item(std::move(stack.back())); stack.pop_back(); // if current_item is array/object, move // its children to the stack to be processed later if (current_item.is_array()) { std::move(current_item.m_data.m_value.array->begin(), current_item.m_data.m_value.array->end(), std::back_inserter(stack)); current_item.m_data.m_value.array->clear(); } else if (current_item.is_object()) { for (auto&& it : *current_item.m_data.m_value.object) { stack.push_back(std::move(it.second)); } current_item.m_data.m_value.object->clear(); } // it's now safe that current_item get destructed // since it doesn't have any children } } switch (t) { case value_t::object: { AllocatorType<object_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, object); std::allocator_traits<decltype(alloc)>::deallocate(alloc, object, 1); break; } case value_t::array: { AllocatorType<array_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, array); std::allocator_traits<decltype(alloc)>::deallocate(alloc, array, 1); break; } case value_t::string: { AllocatorType<string_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, string); std::allocator_traits<decltype(alloc)>::deallocate(alloc, string, 1); break; } case value_t::binary: { AllocatorType<binary_t> alloc; std::allocator_traits<decltype(alloc)>::destroy(alloc, binary); std::allocator_traits<decltype(alloc)>::deallocate(alloc, binary, 1); break; } case value_t::null: case value_t::boolean: case value_t::number_integer: case value_t::number_unsigned: case value_t::number_float: case value_t::discarded: default: { break; } } }
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>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t): subq $0x128, %rsp # imm = 0x128 movb %sil, %al movq %rdi, 0x120(%rsp) movb %al, 0x11f(%rsp) movq 0x120(%rsp), %rax movq %rax, 0x50(%rsp) cmpb $0x1, 0x11f(%rsp) jne 0x6ad7b movq 0x50(%rsp), %rax cmpq $0x0, (%rax) je 0x6adba cmpb $0x2, 0x11f(%rsp) jne 0x6ad90 movq 0x50(%rsp), %rax cmpq $0x0, (%rax) je 0x6adba cmpb $0x3, 0x11f(%rsp) jne 0x6ada5 movq 0x50(%rsp), %rax cmpq $0x0, (%rax) je 0x6adba cmpb $0x8, 0x11f(%rsp) jne 0x6adbf movq 0x50(%rsp), %rax cmpq $0x0, (%rax) jne 0x6adbf jmp 0x6b317 cmpb $0x2, 0x11f(%rsp) je 0x6add7 cmpb $0x1, 0x11f(%rsp) jne 0x6b140 leaq 0x100(%rsp), %rdi callq 0x6b330 cmpb $0x2, 0x11f(%rsp) jne 0x6aeae movq 0x50(%rsp), %rax movq (%rax), %rdi callq 0x6b450 movq %rax, %rsi leaq 0x100(%rsp), %rdi callq 0x6b340 jmp 0x6ae11 movq 0x50(%rsp), %rax movq (%rax), %rdi callq 0x6b4e0 movq %rax, %rcx movq 0x50(%rsp), %rax movq %rcx, 0xe8(%rsp) movq (%rax), %rdi callq 0x6b510 movq %rax, 0xe0(%rsp) leaq 0x100(%rsp), %rdi callq 0x6b540 movq %rax, 0x48(%rsp) jmp 0x6ae52 movq 0x48(%rsp), %rax movq %rax, 0xd8(%rsp) movq 0xe8(%rsp), %rdi movq 0xe0(%rsp), %rsi movq 0xd8(%rsp), %rdx callq 0x6b470 movq %rax, 0x40(%rsp) jmp 0x6ae83 movq 0x40(%rsp), %rax movq %rax, 0xd0(%rsp) jmp 0x6af65 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf8(%rsp) movl %eax, 0xf4(%rsp) jmp 0x6b12e movq 0x50(%rsp), %rax movq (%rax), %rdi callq 0x6b570 movq %rax, %rsi leaq 0x100(%rsp), %rdi callq 0x6b340 jmp 0x6aecd movq 0x50(%rsp), %rax movq (%rax), %rax movq %rax, 0xc8(%rsp) movq 0xc8(%rsp), %rdi callq 0x6b590 movq %rax, 0xc0(%rsp) movq 0xc8(%rsp), %rdi callq 0x6b5c0 movq %rax, 0xb8(%rsp) leaq 0xc0(%rsp), %rdi leaq 0xb8(%rsp), %rsi callq 0x6b5f0 testb $0x1, %al jne 0x6af22 jmp 0x6af63 leaq 0xc0(%rsp), %rdi callq 0x6b630 movq %rax, 0xb0(%rsp) movq 0xb0(%rsp), %rsi addq $0x20, %rsi leaq 0x100(%rsp), %rdi callq 0x6b640 jmp 0x6af52 jmp 0x6af54 leaq 0xc0(%rsp), %rdi callq 0x6b670 jmp 0x6af07 jmp 0x6af65 jmp 0x6af67 leaq 0x100(%rsp), %rdi callq 0x6b690 xorb $-0x1, %al testb $0x1, %al jne 0x6af7f jmp 0x6b11f leaq 0x100(%rsp), %rdi callq 0x6b6e0 movq %rax, %rsi leaq 0xa0(%rsp), %rdi callq 0x6b720 leaq 0x100(%rsp), %rdi callq 0x6b7a0 leaq 0xa0(%rsp), %rdi callq 0x6b7c0 testb $0x1, %al jne 0x6afbf jmp 0x6b073 movq 0xa8(%rsp), %rdi callq 0x6b4e0 movq %rax, 0x98(%rsp) movq 0xa8(%rsp), %rdi callq 0x6b510 movq %rax, 0x90(%rsp) leaq 0x100(%rsp), %rdi callq 0x6b540 movq %rax, 0x38(%rsp) jmp 0x6affd movq 0x38(%rsp), %rax movq %rax, 0x88(%rsp) movq 0x98(%rsp), %rdi movq 0x90(%rsp), %rsi movq 0x88(%rsp), %rdx callq 0x6b470 movq %rax, 0x30(%rsp) jmp 0x6b02e movq 0x30(%rsp), %rax movq %rax, 0x80(%rsp) movq 0xa8(%rsp), %rdi callq 0x6b7e0 jmp 0x6b10d movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf8(%rsp) movl %eax, 0xf4(%rsp) leaq 0xa0(%rsp), %rdi callq 0xfa40 jmp 0x6b12e leaq 0xa0(%rsp), %rdi callq 0x6b800 testb $0x1, %al jne 0x6b089 jmp 0x6b10b movq 0xa8(%rsp), %rax movq %rax, 0x78(%rsp) movq 0x78(%rsp), %rdi callq 0x6b590 movq %rax, 0x70(%rsp) movq 0x78(%rsp), %rdi callq 0x6b5c0 movq %rax, 0x68(%rsp) leaq 0x70(%rsp), %rdi leaq 0x68(%rsp), %rsi callq 0x6b5f0 testb $0x1, %al jne 0x6b0c9 jmp 0x6b0fe leaq 0x70(%rsp), %rdi callq 0x6b630 movq %rax, 0x60(%rsp) movq 0x60(%rsp), %rsi addq $0x20, %rsi leaq 0x100(%rsp), %rdi callq 0x6b640 jmp 0x6b0f0 jmp 0x6b0f2 leaq 0x70(%rsp), %rdi callq 0x6b670 jmp 0x6b0b4 movq 0xa8(%rsp), %rdi callq 0x6b820 jmp 0x6b10d leaq 0xa0(%rsp), %rdi callq 0xfa40 jmp 0x6af67 leaq 0x100(%rsp), %rdi callq 0x6b840 jmp 0x6b140 leaq 0x100(%rsp), %rdi callq 0x6b840 jmp 0x6b31f movzbl 0x11f(%rsp), %eax movq %rax, 0x28(%rsp) subq $0x9, %rax ja 0x6b315 movq 0x28(%rsp), %rax leaq 0x62931(%rip), %rcx # 0xcda94 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax leaq 0x5f(%rsp), %rdi movq %rdi, 0x20(%rsp) callq 0x6b8a0 movq 0x50(%rsp), %rax movq 0x20(%rsp), %rdi movq (%rax), %rsi callq 0x6b8b0 movq 0x50(%rsp), %rax movq 0x20(%rsp), %rdi movq (%rax), %rsi movl $0x1, %edx callq 0x6b8e0 jmp 0x6b1a6 leaq 0x5f(%rsp), %rdi callq 0x6b910 jmp 0x6b317 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf8(%rsp) movl %eax, 0xf4(%rsp) leaq 0x5f(%rsp), %rdi callq 0x6b910 jmp 0x6b31f leaq 0x5e(%rsp), %rdi movq %rdi, 0x18(%rsp) callq 0x6b920 movq 0x50(%rsp), %rax movq 0x18(%rsp), %rdi movq (%rax), %rsi callq 0x6b930 movq 0x50(%rsp), %rax movq 0x18(%rsp), %rdi movq (%rax), %rsi movl $0x1, %edx callq 0x6b960 jmp 0x6b212 leaq 0x5e(%rsp), %rdi callq 0x6b990 jmp 0x6b317 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf8(%rsp) movl %eax, 0xf4(%rsp) leaq 0x5e(%rsp), %rdi callq 0x6b990 jmp 0x6b31f leaq 0x5d(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0x2c200 movq 0x50(%rsp), %rax movq 0x10(%rsp), %rdi movq (%rax), %rsi callq 0x517b0 movq 0x50(%rsp), %rax movq 0x10(%rsp), %rdi movq (%rax), %rsi movl $0x1, %edx callq 0x13db0 jmp 0x6b27e leaq 0x5d(%rsp), %rdi callq 0x2c2f0 jmp 0x6b317 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf8(%rsp) movl %eax, 0xf4(%rsp) leaq 0x5d(%rsp), %rdi callq 0x2c2f0 jmp 0x6b31f leaq 0x5c(%rsp), %rdi movq %rdi, 0x8(%rsp) callq 0x6b9a0 movq 0x50(%rsp), %rax movq 0x8(%rsp), %rdi movq (%rax), %rsi callq 0x6b9b0 movq 0x50(%rsp), %rax movq 0x8(%rsp), %rdi movq (%rax), %rsi movl $0x1, %edx callq 0x6b9e0 jmp 0x6b2e7 leaq 0x5c(%rsp), %rdi callq 0x6ba10 jmp 0x6b317 movq %rax, %rcx movl %edx, %eax movq %rcx, 0xf8(%rsp) movl %eax, 0xf4(%rsp) leaq 0x5c(%rsp), %rdi callq 0x6ba10 jmp 0x6b31f jmp 0x6b315 jmp 0x6b317 addq $0x128, %rsp # imm = 0x128 retq movq 0xf8(%rsp), %rdi callq 0xbe10 nopl (%rax)
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE10json_value7destroyENS0_6detail7value_tE: sub rsp, 128h mov al, sil mov [rsp+128h+var_8], rdi mov [rsp+128h+var_9], al mov rax, [rsp+128h+var_8] mov [rsp+128h+var_D8], rax cmp [rsp+128h+var_9], 1 jnz short loc_6AD7B mov rax, [rsp+128h+var_D8] cmp qword ptr [rax], 0 jz short loc_6ADBA loc_6AD7B: cmp [rsp+128h+var_9], 2 jnz short loc_6AD90 mov rax, [rsp+128h+var_D8] cmp qword ptr [rax], 0 jz short loc_6ADBA loc_6AD90: cmp [rsp+128h+var_9], 3 jnz short loc_6ADA5 mov rax, [rsp+128h+var_D8] cmp qword ptr [rax], 0 jz short loc_6ADBA loc_6ADA5: cmp [rsp+128h+var_9], 8 jnz short loc_6ADBF mov rax, [rsp+128h+var_D8] cmp qword ptr [rax], 0 jnz short loc_6ADBF loc_6ADBA: jmp loc_6B317 loc_6ADBF: cmp [rsp+128h+var_9], 2 jz short loc_6ADD7 cmp [rsp+128h+var_9], 1 jnz loc_6B140 loc_6ADD7: lea rdi, [rsp+128h+var_28] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EEC2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::vector(void) cmp [rsp+128h+var_9], 2 jnz loc_6AEAE mov rax, [rsp+128h+var_D8] mov rdi, [rax] 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 rsi, rax lea rdi, [rsp+128h+var_28] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE7reserveEm; 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>>::reserve(ulong) jmp short $+2 loc_6AE11: mov rax, [rsp+128h+var_D8] mov rdi, [rax] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5beginEv; 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>>::begin(void) mov rcx, rax mov rax, [rsp+128h+var_D8] mov [rsp+128h+var_40], rcx mov rdi, [rax] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE3endEv; 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>>::end(void) mov [rsp+128h+var_48], rax lea rdi, [rsp+128h+var_28] call _ZSt13back_inserterISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES0_IhSaIhEEvEESaISE_EEESt20back_insert_iteratorIT_ERSI_; std::back_inserter<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>>>(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>>&) mov [rsp+128h+var_E0], rax jmp short $+2 loc_6AE52: mov rax, [rsp+128h+var_E0] mov [rsp+128h+var_50], rax mov rdi, [rsp+128h+var_40] mov rsi, [rsp+128h+var_48] mov rdx, [rsp+128h+var_50] call _ZSt4moveIN9__gnu_cxx17__normal_iteratorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEES6_ISG_SaISG_EEEESt20back_insert_iteratorISJ_EET0_T_SO_SN_; std::move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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::back_insert_iterator<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>>>>(__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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::back_insert_iterator<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>>>) mov [rsp+128h+var_E8], rax jmp short $+2 loc_6AE83: mov rax, [rsp+128h+var_E8] mov [rsp+128h+var_58], rax jmp loc_6AF65 mov rcx, rax mov eax, edx mov [rsp+arg_F0], rcx mov [rsp+arg_EC], eax jmp loc_6B12E loc_6AEAE: mov rax, [rsp+128h+var_D8] mov rdi, [rax] call _ZNKSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE4sizeEv; 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>>>::size(void) mov rsi, rax lea rdi, [rsp+128h+var_28] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE7reserveEm; 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>>::reserve(ulong) jmp short $+2 loc_6AECD: mov rax, [rsp+128h+var_D8] mov rax, [rax] mov [rsp+128h+var_60], rax mov rdi, [rsp+128h+var_60] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE5beginEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::begin(void) mov [rsp+128h+var_68], rax mov rdi, [rsp+128h+var_60] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::end(void) mov [rsp+128h+var_70], rax loc_6AF07: lea rdi, [rsp+128h+var_68] lea rsi, [rsp+128h+var_70] call _ZN9__gnu_cxxneIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbRKNS_17__normal_iteratorIT_T0_EESR_; __gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&,__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&) test al, 1 jnz short loc_6AF22 jmp short loc_6AF63 loc_6AF22: lea rdi, [rsp+128h+var_68] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEdeEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator*(void) mov [rsp+128h+var_78], rax mov rsi, [rsp+128h+var_78] add rsi, 20h ; ' ' lea rdi, [rsp+128h+var_28] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE9push_backEOSD_; 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>>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&) jmp short $+2 loc_6AF52: jmp short $+2 loc_6AF54: lea rdi, [rsp+128h+var_68] call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator++(void) jmp short loc_6AF07 loc_6AF63: jmp short $+2 loc_6AF65: jmp short $+2 loc_6AF67: lea rdi, [rsp+128h+var_28] call _ZNKSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5emptyEv; 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>>::empty(void) xor al, 0FFh test al, 1 jnz short loc_6AF7F jmp loc_6B11F loc_6AF7F: lea rdi, [rsp+128h+var_28] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE4backEv; 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>>::back(void) mov rsi, rax lea rdi, [rsp+128h+var_88] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvEC2EOSD_; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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>&&) lea rdi, [rsp+128h+var_28] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE8pop_backEv; 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>>::pop_back(void) lea rdi, [rsp+128h+var_88] call _ZNK8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE8is_arrayEv; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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_array(void) test al, 1 jnz short loc_6AFBF jmp loc_6B073 loc_6AFBF: mov rdi, [rsp+128h+var_80] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5beginEv; 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>>::begin(void) mov [rsp+128h+var_90], rax mov rdi, [rsp+128h+var_80] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE3endEv; 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>>::end(void) mov [rsp+128h+var_98], rax lea rdi, [rsp+128h+var_28] call _ZSt13back_inserterISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES0_IhSaIhEEvEESaISE_EEESt20back_insert_iteratorIT_ERSI_; std::back_inserter<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>>>(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>>&) mov [rsp+128h+var_F0], rax jmp short $+2 loc_6AFFD: mov rax, [rsp+128h+var_F0] mov [rsp+128h+var_A0], rax mov rdi, [rsp+128h+var_90] mov rsi, [rsp+128h+var_98] mov rdx, [rsp+128h+var_A0] call _ZSt4moveIN9__gnu_cxx17__normal_iteratorIPN8nlohmann16json_abi_v3_11_310basic_jsonINS3_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS3_14adl_serializerES6_IhSaIhEEvEES6_ISG_SaISG_EEEESt20back_insert_iteratorISJ_EET0_T_SO_SN_; std::move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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::back_insert_iterator<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>>>>(__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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::back_insert_iterator<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>>>) mov [rsp+128h+var_F8], rax jmp short $+2 loc_6B02E: mov rax, [rsp+128h+var_F8] mov [rsp+128h+var_A8], rax mov rdi, [rsp+128h+var_80] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE5clearEv; 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>>::clear(void) jmp loc_6B10D mov rcx, rax mov eax, edx mov [rsp+arg_F0], rcx mov [rsp+arg_EC], eax lea rdi, [rsp+arg_98] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp loc_6B12E loc_6B073: lea rdi, [rsp+128h+var_88] 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) test al, 1 jnz short loc_6B089 jmp loc_6B10B loc_6B089: mov rax, [rsp+128h+var_80] mov [rsp+128h+var_B0], rax mov rdi, [rsp+128h+var_B0] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE5beginEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::begin(void) mov [rsp+128h+var_B8], rax mov rdi, [rsp+128h+var_B0] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE3endEv; std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>::end(void) mov [rsp+128h+var_C0], rax loc_6B0B4: lea rdi, [rsp+128h+var_B8] lea rsi, [rsp+128h+var_C0] call _ZN9__gnu_cxxneIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEEbRKNS_17__normal_iteratorIT_T0_EESR_; __gnu_cxx::operator!=<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>(__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&,__gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> const&) test al, 1 jnz short loc_6B0C9 jmp short loc_6B0FE loc_6B0C9: lea rdi, [rsp+128h+var_B8] call _ZNK9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEdeEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator*(void) mov [rsp+128h+var_C8], rax mov rsi, [rsp+128h+var_C8] add rsi, 20h ; ' ' lea rdi, [rsp+128h+var_28] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE9push_backEOSD_; 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>>::push_back(nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>&&) jmp short $+2 loc_6B0F0: jmp short $+2 loc_6B0F2: lea rdi, [rsp+128h+var_B8] call _ZN9__gnu_cxx17__normal_iteratorIPSt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINSA_11ordered_mapESt6vectorS7_blmdSaNSA_14adl_serializerESD_IhSaIhEEvEEESD_ISI_SaISI_EEEppEv; __gnu_cxx::__normal_iterator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>> *,std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>::operator++(void) jmp short loc_6B0B4 loc_6B0FE: mov rdi, [rsp+128h+var_80] call _ZNSt6vectorISt4pairIKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN8nlohmann16json_abi_v3_11_310basic_jsonINS9_11ordered_mapES_S6_blmdSaNS9_14adl_serializerES_IhSaIhEEvEEESaISG_EE5clearEv; 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>>>::clear(void) loc_6B10B: jmp short $+2 loc_6B10D: lea rdi, [rsp+128h+var_88] call _ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvED2Ev; nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>::~basic_json() jmp loc_6AF67 loc_6B11F: lea rdi, [rsp+128h+var_28] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector() jmp short loc_6B140 loc_6B12E: lea rdi, [rsp+arg_F8] call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EED2Ev; std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>::~vector() jmp loc_6B31F loc_6B140: movzx eax, [rsp+128h+var_9] mov [rsp+128h+var_100], rax sub rax, 9; switch 10 cases ja def_6B16A; jumptable 000000000006B16A default case mov rax, [rsp+128h+var_100] lea rcx, jpt_6B16A movsxd rax, ds:(jpt_6B16A - 0CDA94h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_6B16C: lea rdi, [rsp+128h+var_C9]; jumptable 000000000006B16A case 1 mov [rsp+128h+var_108], rdi call _ZNSaIN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEEEEC2Ev; std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>::allocator(void) mov rax, [rsp+128h+var_D8] mov rdi, [rsp+128h+var_108] mov rsi, [rax] call _ZNSt16allocator_traitsISaIN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS1_10basic_jsonIS2_St6vectorS8_blmdSaNS1_14adl_serializerESA_IhSaIhEEvEESt4lessIvESaISt4pairIKS8_SE_EEEEEE7destroyISL_EEvRSM_PT_; std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>>::destroy<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>(std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>&,nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>> *) mov rax, [rsp+128h+var_D8] mov rdi, [rsp+128h+var_108] mov rsi, [rax] mov edx, 1 call _ZNSt16allocator_traitsISaIN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS1_10basic_jsonIS2_St6vectorS8_blmdSaNS1_14adl_serializerESA_IhSaIhEEvEESt4lessIvESaISt4pairIKS8_SE_EEEEEE10deallocateERSM_PSL_m; std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>>::deallocate(std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>&,nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>*,ulong) jmp short $+2 loc_6B1A6: lea rdi, [rsp+128h+var_C9] call _ZNSaIN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEEEED2Ev; std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>::~allocator() jmp loc_6B317 mov rcx, rax mov eax, edx mov [rsp+arg_F0], rcx mov [rsp+arg_EC], eax lea rdi, [rsp+arg_57] call _ZNSaIN8nlohmann16json_abi_v3_11_311ordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEENS0_10basic_jsonIS1_St6vectorS7_blmdSaNS0_14adl_serializerES9_IhSaIhEEvEESt4lessIvESaISt4pairIKS7_SD_EEEEED2Ev; std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void>>>>>::~allocator() jmp loc_6B31F loc_6B1D8: lea rdi, [rsp+128h+var_CA]; jumptable 000000000006B16A case 2 mov [rsp+128h+var_110], rdi call _ZNSaISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EEEC2Ev; std::allocator<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>>>::allocator(void) mov rax, [rsp+128h+var_D8] mov rdi, [rsp+128h+var_110] mov rsi, [rax] call _ZNSt16allocator_traitsISaISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES0_IhSaIhEEvEESaISE_EEEE7destroyISG_EEvRSH_PT_; std::allocator_traits<std::allocator<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>>>>::destroy<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>>>(std::allocator<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>>>&,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>> *) mov rax, [rsp+128h+var_D8] mov rdi, [rsp+128h+var_110] mov rsi, [rax] mov edx, 1 call _ZNSt16allocator_traitsISaISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS2_11ordered_mapES0_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS2_14adl_serializerES0_IhSaIhEEvEESaISE_EEEE10deallocateERSH_PSG_m; std::allocator_traits<std::allocator<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>>>>::deallocate(std::allocator<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>>>&,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>>*,ulong) jmp short $+2 loc_6B212: lea rdi, [rsp+128h+var_CA] call _ZNSaISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EEED2Ev; std::allocator<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>>>::~allocator() jmp loc_6B317 mov rcx, rax mov eax, edx mov [rsp+arg_F0], rcx mov [rsp+arg_EC], eax lea rdi, [rsp+arg_56] call _ZNSaISt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EEED2Ev; std::allocator<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>>>::~allocator() jmp loc_6B31F loc_6B244: lea rdi, [rsp+128h+var_CB]; jumptable 000000000006B16A case 3 mov [rsp+128h+var_118], rdi call _ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2Ev; std::allocator<std::string>::allocator(void) mov rax, [rsp+128h+var_D8] mov rdi, [rsp+128h+var_118] mov rsi, [rax] call _ZNSt16allocator_traitsISaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE7destroyIS5_EEvRS6_PT_; std::allocator_traits<std::allocator<std::string>>::destroy<std::string>(std::allocator<std::string>&,std::string *) mov rax, [rsp+128h+var_D8] mov rdi, [rsp+128h+var_118] mov rsi, [rax] mov edx, 1 call _ZNSt16allocator_traitsISaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE10deallocateERS6_PS5_m; std::allocator_traits<std::allocator<std::string>>::deallocate(std::allocator<std::string>&,std::string*,ulong) jmp short $+2 loc_6B27E: lea rdi, [rsp+128h+var_CB] call _ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; std::allocator<std::string>::~allocator() jmp loc_6B317 mov rcx, rax mov eax, edx mov [rsp+arg_F0], rcx mov [rsp+arg_EC], eax lea rdi, [rsp+arg_55] call _ZNSaINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; std::allocator<std::string>::~allocator() jmp short loc_6B31F loc_6B2AD: lea rdi, [rsp+128h+var_CC]; jumptable 000000000006B16A case 8 mov [rsp+128h+var_120], rdi call _ZNSaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEEC2Ev; std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>::allocator(void) mov rax, [rsp+128h+var_D8] mov rdi, [rsp+128h+var_120] mov rsi, [rax] call _ZNSt16allocator_traitsISaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEEE7destroyIS6_EEvRS7_PT_; std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>>::destroy<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>(std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>&,nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>> *) mov rax, [rsp+128h+var_D8] mov rdi, [rsp+128h+var_120] mov rsi, [rax] mov edx, 1 call _ZNSt16allocator_traitsISaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEEE10deallocateERS7_PS6_m; std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>>::deallocate(std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>&,nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>*,ulong) jmp short $+2 loc_6B2E7: lea rdi, [rsp+128h+var_CC] call _ZNSaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEED2Ev; std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>::~allocator() jmp short loc_6B317 mov rcx, rax mov eax, edx mov [rsp+arg_F0], rcx mov [rsp+arg_EC], eax lea rdi, [rsp+arg_54] call _ZNSaIN8nlohmann16json_abi_v3_11_327byte_container_with_subtypeISt6vectorIhSaIhEEEEED2Ev; std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<uchar>>>::~allocator() jmp short loc_6B31F loc_6B313: jmp short $+2; jumptable 000000000006B16A cases 0,4-7,9 def_6B16A: jmp short $+2; jumptable 000000000006B16A default case loc_6B317: add rsp, 128h retn loc_6B31F: mov rdi, [rsp+arg_F0] call __Unwind_Resume
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::json_value::destroy( long long *a1, unsigned __int8 a2) { long long result; // rax long long v3; // rax long long v4; // rax long long v5; // rax long long v6; // rcx long long v7; // r8 long long v8; // r9 char v9; // [rsp+5Ch] [rbp-CCh] BYREF char v10; // [rsp+5Dh] [rbp-CBh] BYREF char v11; // [rsp+5Eh] [rbp-CAh] BYREF char v12; // [rsp+5Fh] [rbp-C9h] BYREF long long v13; // [rsp+60h] [rbp-C8h] long long v14; // [rsp+68h] [rbp-C0h] BYREF long long v15; // [rsp+70h] [rbp-B8h] BYREF long long v16; // [rsp+78h] [rbp-B0h] long long v17; // [rsp+80h] [rbp-A8h] long long v18; // [rsp+88h] [rbp-A0h] long long v19; // [rsp+90h] [rbp-98h] long long v20; // [rsp+98h] [rbp-90h] _BYTE v21[8]; // [rsp+A0h] [rbp-88h] BYREF long long v22; // [rsp+A8h] [rbp-80h] long long v23; // [rsp+B0h] [rbp-78h] long long v24; // [rsp+B8h] [rbp-70h] BYREF long long v25; // [rsp+C0h] [rbp-68h] BYREF long long v26; // [rsp+C8h] [rbp-60h] long long v27; // [rsp+D0h] [rbp-58h] long long v28; // [rsp+D8h] [rbp-50h] long long v29; // [rsp+E0h] [rbp-48h] long long v30; // [rsp+E8h] [rbp-40h] _BYTE v31[31]; // [rsp+100h] [rbp-28h] BYREF unsigned __int8 v32; // [rsp+11Fh] [rbp-9h] long long *v33; // [rsp+120h] [rbp-8h] v33 = a1; v32 = a2; if ( a2 != 1 || (result = (long long)a1, *a1) ) { if ( v32 != 2 || (result = (long long)a1, *a1) ) { if ( v32 != 3 || (result = (long long)a1, *a1) ) { if ( v32 != 8 || (result = (long long)a1, *a1) ) { if ( v32 == 2 || v32 == 1 ) { std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::vector(v31); if ( v32 == 2 ) { v3 = 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(*a1); 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>>::reserve( v31, v3); v30 = 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>>::begin(*a1); v29 = 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>>::end(*a1); v28 = std::back_inserter<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>>>(v31); v27 = std::move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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::back_insert_iterator<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>>>>( v30, v29, v28); } else { v4 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::size(*a1); 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>>::reserve( v31, v4); v26 = *a1; v25 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::begin(v26); v24 = 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(v26); while ( (__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>>>>( &v25, &v24) & 1) != 0 ) { v23 = __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*(&v25); 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>>::push_back( v31, v23 + 32); __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++(&v25); } } while ( (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>>::empty(v31) & 1) == 0 ) { v5 = 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>>::back(v31); nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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( v21, v5); 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>>::pop_back(v31); 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_array(v21) & 1) != 0 ) { v20 = 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>>::begin(v22); v19 = 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>>::end(v22); v18 = std::back_inserter<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>>>(v31); v17 = std::move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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::back_insert_iterator<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>>>>( v20, v19, v18); 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>>::clear(v22); } else 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(v21) & 1) != 0 ) { v16 = v22; v15 = std::vector<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>::begin(v22); v14 = 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(v16); while ( (__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>>>>( &v15, &v14) & 1) != 0 ) { v13 = __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*(&v15); 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>>::push_back( v31, v13 + 32); __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++(&v15); } 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>>>::clear(v22); } nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::~basic_json((long long)v21); } std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>::~vector(v31); } result = v32; switch ( v32 ) { case 1u: std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>>::allocator(); std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>>>::destroy<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>>( &v12, *a1); std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>>>::deallocate( &v12, *a1, 1LL); result = std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>,std::less<void>,std::allocator<std::pair<std::string const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>>>>>::~allocator(&v12); break; case 2u: std::allocator<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>>>::allocator(); std::allocator_traits<std::allocator<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>>>>::destroy<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>>>( &v11, *a1); std::allocator_traits<std::allocator<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>>>>::deallocate( &v11, *a1, 1LL); result = std::allocator<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>>>::~allocator(&v11); break; case 3u: std::allocator<std::string>::allocator((long long)&v10); std::allocator_traits<std::allocator<std::string>>::destroy<std::string>((long long)&v10, *a1); std::allocator_traits<std::allocator<std::string>>::deallocate((long long)&v10, *a1, 1LL, v6, v7, v8); result = std::allocator<std::string>::~allocator((long long)&v10); break; case 8u: std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>::allocator(); std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>>::destroy<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>( &v9, *a1); std::allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>>::deallocate( &v9, *a1, 1LL); result = std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned char>>>::~allocator(&v9); break; default: return result; } } } } } return result; }
destroy: SUB RSP,0x128 MOV AL,SIL MOV qword ptr [RSP + 0x120],RDI MOV byte ptr [RSP + 0x11f],AL MOV RAX,qword ptr [RSP + 0x120] MOV qword ptr [RSP + 0x50],RAX CMP byte ptr [RSP + 0x11f],0x1 JNZ 0x0016ad7b MOV RAX,qword ptr [RSP + 0x50] CMP qword ptr [RAX],0x0 JZ 0x0016adba LAB_0016ad7b: CMP byte ptr [RSP + 0x11f],0x2 JNZ 0x0016ad90 MOV RAX,qword ptr [RSP + 0x50] CMP qword ptr [RAX],0x0 JZ 0x0016adba LAB_0016ad90: CMP byte ptr [RSP + 0x11f],0x3 JNZ 0x0016ada5 MOV RAX,qword ptr [RSP + 0x50] CMP qword ptr [RAX],0x0 JZ 0x0016adba LAB_0016ada5: CMP byte ptr [RSP + 0x11f],0x8 JNZ 0x0016adbf MOV RAX,qword ptr [RSP + 0x50] CMP qword ptr [RAX],0x0 JNZ 0x0016adbf LAB_0016adba: JMP 0x0016b317 LAB_0016adbf: CMP byte ptr [RSP + 0x11f],0x2 JZ 0x0016add7 CMP byte ptr [RSP + 0x11f],0x1 JNZ 0x0016b140 LAB_0016add7: LEA RDI,[RSP + 0x100] CALL 0x0016b330 CMP byte ptr [RSP + 0x11f],0x2 JNZ 0x0016aeae MOV RAX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RAX] CALL 0x0016b450 MOV RSI,RAX LAB_0016ae02: LEA RDI,[RSP + 0x100] CALL 0x0016b340 JMP 0x0016ae11 LAB_0016ae11: MOV RAX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RAX] CALL 0x0016b4e0 MOV RCX,RAX MOV RAX,qword ptr [RSP + 0x50] MOV qword ptr [RSP + 0xe8],RCX MOV RDI,qword ptr [RAX] CALL 0x0016b510 MOV qword ptr [RSP + 0xe0],RAX LEA RDI,[RSP + 0x100] CALL 0x0016b540 MOV qword ptr [RSP + 0x48],RAX JMP 0x0016ae52 LAB_0016ae52: MOV RAX,qword ptr [RSP + 0x48] MOV qword ptr [RSP + 0xd8],RAX MOV RDI,qword ptr [RSP + 0xe8] MOV RSI,qword ptr [RSP + 0xe0] MOV RDX,qword ptr [RSP + 0xd8] CALL 0x0016b470 MOV qword ptr [RSP + 0x40],RAX JMP 0x0016ae83 LAB_0016ae83: MOV RAX,qword ptr [RSP + 0x40] MOV qword ptr [RSP + 0xd0],RAX JMP 0x0016af65 LAB_0016aeae: MOV RAX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RAX] CALL 0x0016b570 MOV RSI,RAX LEA RDI,[RSP + 0x100] CALL 0x0016b340 JMP 0x0016aecd LAB_0016aecd: MOV RAX,qword ptr [RSP + 0x50] MOV RAX,qword ptr [RAX] MOV qword ptr [RSP + 0xc8],RAX MOV RDI,qword ptr [RSP + 0xc8] CALL 0x0016b590 MOV qword ptr [RSP + 0xc0],RAX MOV RDI,qword ptr [RSP + 0xc8] CALL 0x0016b5c0 MOV qword ptr [RSP + 0xb8],RAX LAB_0016af07: LEA RDI,[RSP + 0xc0] LEA RSI,[RSP + 0xb8] CALL 0x0016b5f0 TEST AL,0x1 JNZ 0x0016af22 JMP 0x0016af63 LAB_0016af22: LEA RDI,[RSP + 0xc0] CALL 0x0016b630 MOV qword ptr [RSP + 0xb0],RAX MOV RSI,qword ptr [RSP + 0xb0] ADD RSI,0x20 LEA RDI,[RSP + 0x100] CALL 0x0016b640 JMP 0x0016af52 LAB_0016af52: JMP 0x0016af54 LAB_0016af54: LEA RDI,[RSP + 0xc0] CALL 0x0016b670 JMP 0x0016af07 LAB_0016af63: JMP 0x0016af65 LAB_0016af65: JMP 0x0016af67 LAB_0016af67: LEA RDI,[RSP + 0x100] CALL 0x0016b690 XOR AL,0xff TEST AL,0x1 JNZ 0x0016af7f JMP 0x0016b11f LAB_0016af7f: LEA RDI,[RSP + 0x100] CALL 0x0016b6e0 MOV RSI,RAX LEA RDI,[RSP + 0xa0] CALL 0x0016b720 LEA RDI,[RSP + 0x100] CALL 0x0016b7a0 LEA RDI,[RSP + 0xa0] CALL 0x0016b7c0 TEST AL,0x1 JNZ 0x0016afbf JMP 0x0016b073 LAB_0016afbf: MOV RDI,qword ptr [RSP + 0xa8] CALL 0x0016b4e0 MOV qword ptr [RSP + 0x98],RAX MOV RDI,qword ptr [RSP + 0xa8] CALL 0x0016b510 MOV qword ptr [RSP + 0x90],RAX LAB_0016afe9: LEA RDI,[RSP + 0x100] CALL 0x0016b540 MOV qword ptr [RSP + 0x38],RAX JMP 0x0016affd LAB_0016affd: MOV RAX,qword ptr [RSP + 0x38] MOV qword ptr [RSP + 0x88],RAX MOV RDI,qword ptr [RSP + 0x98] MOV RSI,qword ptr [RSP + 0x90] MOV RDX,qword ptr [RSP + 0x88] CALL 0x0016b470 MOV qword ptr [RSP + 0x30],RAX JMP 0x0016b02e LAB_0016b02e: MOV RAX,qword ptr [RSP + 0x30] MOV qword ptr [RSP + 0x80],RAX MOV RDI,qword ptr [RSP + 0xa8] CALL 0x0016b7e0 JMP 0x0016b10d LAB_0016b073: LEA RDI,[RSP + 0xa0] CALL 0x0016b800 TEST AL,0x1 JNZ 0x0016b089 JMP 0x0016b10b LAB_0016b089: MOV RAX,qword ptr [RSP + 0xa8] MOV qword ptr [RSP + 0x78],RAX MOV RDI,qword ptr [RSP + 0x78] CALL 0x0016b590 MOV qword ptr [RSP + 0x70],RAX MOV RDI,qword ptr [RSP + 0x78] CALL 0x0016b5c0 MOV qword ptr [RSP + 0x68],RAX LAB_0016b0b4: LEA RDI,[RSP + 0x70] LEA RSI,[RSP + 0x68] CALL 0x0016b5f0 TEST AL,0x1 JNZ 0x0016b0c9 JMP 0x0016b0fe LAB_0016b0c9: LEA RDI,[RSP + 0x70] CALL 0x0016b630 MOV qword ptr [RSP + 0x60],RAX MOV RSI,qword ptr [RSP + 0x60] ADD RSI,0x20 LEA RDI,[RSP + 0x100] CALL 0x0016b640 JMP 0x0016b0f0 LAB_0016b0f0: JMP 0x0016b0f2 LAB_0016b0f2: LEA RDI,[RSP + 0x70] CALL 0x0016b670 JMP 0x0016b0b4 LAB_0016b0fe: MOV RDI,qword ptr [RSP + 0xa8] CALL 0x0016b820 LAB_0016b10b: JMP 0x0016b10d LAB_0016b10d: LEA RDI,[RSP + 0xa0] CALL 0x0010fa40 JMP 0x0016af67 LAB_0016b11f: LEA RDI,[RSP + 0x100] CALL 0x0016b840 JMP 0x0016b140 LAB_0016b140: MOVZX EAX,byte ptr [RSP + 0x11f] MOV qword ptr [RSP + 0x28],RAX SUB RAX,0x9 JA 0x0016b315 MOV RAX,qword ptr [RSP + 0x28] LEA RCX,[0x1cda94] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_1: LEA RDI,[RSP + 0x5f] MOV qword ptr [RSP + 0x20],RDI CALL 0x0016b8a0 MOV RAX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RAX] CALL 0x0016b8b0 MOV RAX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RSP + 0x20] MOV RSI,qword ptr [RAX] LAB_0016b19a: MOV EDX,0x1 CALL 0x0016b8e0 JMP 0x0016b1a6 LAB_0016b1a6: LEA RDI,[RSP + 0x5f] CALL 0x0016b910 JMP 0x0016b317 caseD_2: LEA RDI,[RSP + 0x5e] MOV qword ptr [RSP + 0x18],RDI CALL 0x0016b920 MOV RAX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RAX] CALL 0x0016b930 MOV RAX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RAX] LAB_0016b206: MOV EDX,0x1 CALL 0x0016b960 JMP 0x0016b212 LAB_0016b212: LEA RDI,[RSP + 0x5e] CALL 0x0016b990 JMP 0x0016b317 caseD_3: LEA RDI,[RSP + 0x5d] MOV qword ptr [RSP + 0x10],RDI CALL 0x0012c200 MOV RAX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RAX] CALL 0x001517b0 MOV RAX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RSP + 0x10] MOV RSI,qword ptr [RAX] LAB_0016b272: MOV EDX,0x1 CALL 0x00113db0 JMP 0x0016b27e LAB_0016b27e: LEA RDI,[RSP + 0x5d] CALL 0x0012c2f0 JMP 0x0016b317 caseD_8: LEA RDI,[RSP + 0x5c] MOV qword ptr [RSP + 0x8],RDI CALL 0x0016b9a0 MOV RAX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RAX] CALL 0x0016b9b0 MOV RAX,qword ptr [RSP + 0x50] MOV RDI,qword ptr [RSP + 0x8] MOV RSI,qword ptr [RAX] LAB_0016b2db: MOV EDX,0x1 CALL 0x0016b9e0 LAB_0016b2e5: JMP 0x0016b2e7 LAB_0016b2e7: LEA RDI,[RSP + 0x5c] CALL 0x0016ba10 JMP 0x0016b317 caseD_0: JMP 0x0016b315 LAB_0016b315: JMP 0x0016b317 default: ADD RSP,0x128 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>::json_value::destroy(nlohmann::json_abi_v3_11_3::detail::value_t) */ void __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> ::json_value::destroy(json_value *this,char param_2) { byte bVar1; bool bVar2; ulong uVar3; basic_json *pbVar4; allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>> local_cc; allocator<std::__cxx11::string> local_cb; allocator<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>>>> local_ca; allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> local_c9; long local_c8; int8 local_c0; int8 local_b8; vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *local_b0; int8 local_a8; int8 local_a0; int8 local_98; int8 local_90; basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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_88 [8]; vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> *local_80; long local_78; int8 local_70; int8 local_68; vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *local_60; int8 local_58; int8 local_50; int8 local_48; int8 local_40; vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> local_28 [31]; char local_9; json_value *local_8; if (((((param_2 != '\x01') || (*(long *)this != 0)) && ((param_2 != '\x02' || (*(long *)this != 0)))) && ((param_2 != '\x03' || (*(long *)this != 0)))) && ((param_2 != '\b' || (*(long *)this != 0)))) { local_9 = param_2; local_8 = this; if ((param_2 == '\x02') || (param_2 == '\x01')) { std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::vector(local_28); if (local_9 == '\x02') { uVar3 = 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); /* try { // try from 0016ae02 to 0016af4f has its CatchHandler @ 0016ae95 */ 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>>> ::reserve(local_28,uVar3); local_40 = 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>>> ::begin(*(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); local_48 = 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>>> ::end(*(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); local_50 = std:: back_inserter<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ((vector *)local_28); local_58 = std:: move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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>>>>,std::back_insert_iterator<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>>>>> (local_40,local_48,local_50); } else { uVar3 = std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::size(*(vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> **)this); 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>>> ::reserve(local_28,uVar3); local_60 = *(vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> **)this; local_68 = std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::begin(local_60); local_70 = std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::end(local_60); while (bVar2 = __gnu_cxx::operator!= ((__normal_iterator *)&local_68,(__normal_iterator *)&local_70), bVar2) { local_78 = __gnu_cxx:: __normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> ::operator*((__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> *)&local_68); 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>>> ::push_back(local_28,(basic_json *)(local_78 + 0x20)); __gnu_cxx:: __normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> ::operator++((__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> *)&local_68); } } while (bVar1 = 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(local_28), ((bVar1 ^ 0xff) & 1) != 0) { pbVar4 = (basic_json *) 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(local_28); basic_json(local_88,pbVar4); 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(local_28); uVar3 = is_array(local_88); if ((uVar3 & 1) == 0) { uVar3 = is_object(local_88); if ((uVar3 & 1) != 0) { local_b0 = (vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *)local_80; local_b8 = std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::begin((vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *)local_80); local_c0 = std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::end(local_b0); while (bVar2 = __gnu_cxx::operator!= ((__normal_iterator *)&local_b8,(__normal_iterator *)&local_c0) , bVar2) { local_c8 = __gnu_cxx:: __normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> ::operator*((__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> *)&local_b8); 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>>> ::push_back(local_28,(basic_json *)(local_c8 + 0x20)); __gnu_cxx:: __normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> ::operator++((__normal_iterator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>*,std::vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> *)&local_b8); } std:: vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ::clear((vector<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> *)local_80); } } else { local_90 = 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>>> ::begin(local_80); local_98 = 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>>> ::end(local_80); /* try { // try from 0016afe9 to 0016b0ed has its CatchHandler @ 0016b04d */ local_a0 = std:: back_inserter<std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>> ((vector *)local_28); local_a8 = std:: move<__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>*,std::vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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>>>>,std::back_insert_iterator<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>>>>> (local_90,local_98,local_a0); 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>>> ::clear(local_80); } ~basic_json(local_88); } std:: vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> ::~vector(local_28); } switch(local_9) { case '\0': case '\x04': case '\x05': case '\x06': case '\a': case '\t': break; case '\x01': std:: allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> ::allocator(&local_c9); std:: allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>> :: destroy<nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> ((allocator *)&local_c9,*(ordered_map **)this); /* try { // try from 0016b19a to 0016b1a3 has its CatchHandler @ 0016b1b5 */ std:: allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>>> ::deallocate((allocator *)&local_c9,*(ordered_map **)this,1); std:: allocator<nlohmann::json_abi_v3_11_3::ordered_map<std::__cxx11::string,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::less<void>,std::allocator<std::pair<std::__cxx11::string_const,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>>>> ::~allocator(&local_c9); break; case '\x02': std:: allocator<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>>>> ::allocator(&local_ca); std:: allocator_traits<std::allocator<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>>>>> :: destroy<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>>>> ((allocator *)&local_ca,*(vector **)this); /* try { // try from 0016b206 to 0016b20f has its CatchHandler @ 0016b221 */ std:: allocator_traits<std::allocator<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>>>>> ::deallocate((allocator *)&local_ca,*(vector **)this,1); std:: allocator<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>>>> ::~allocator(&local_ca); break; case '\x03': std::allocator<std::__cxx11::string>::allocator(&local_cb); std::allocator_traits<std::allocator<std::__cxx11::string>>::destroy<std::__cxx11::string> ((allocator *)&local_cb,*(string **)this); /* try { // try from 0016b272 to 0016b27b has its CatchHandler @ 0016b28d */ std::allocator_traits<std::allocator<std::__cxx11::string>>::deallocate ((allocator *)&local_cb,*(string **)this,1); std::allocator<std::__cxx11::string>::~allocator(&local_cb); break; case '\b': std:: allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>> ::allocator(&local_cc); std:: allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>> :: destroy<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>> ((allocator *)&local_cc,*(byte_container_with_subtype **)this); /* try { // try from 0016b2db to 0016b2e4 has its CatchHandler @ 0016b2f3 */ std:: allocator_traits<std::allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>>> ::deallocate((allocator *)&local_cc,*(byte_container_with_subtype **)this,1); std:: allocator<nlohmann::json_abi_v3_11_3::byte_container_with_subtype<std::vector<unsigned_char,std::allocator<unsigned_char>>>> ::~allocator(&local_cc); } } return; }
31,060
ma_set_uuid
eloqsql/storage/maria/ma_locking.c
my_bool _ma_set_uuid(MARIA_SHARE *share, my_bool reset_uuid) { uchar buff[MY_UUID_SIZE], *uuid; uuid= maria_uuid; if (reset_uuid) { bzero(buff, sizeof(buff)); uuid= buff; } CRASH_IF_S3_TABLE(share); return (my_bool) my_pwrite(share->kfile.file, uuid, MY_UUID_SIZE, mi_uint2korr(share->state.header.base_pos), MYF(MY_NABP)); }
O3
c
ma_set_uuid: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %fs:0x28, %rax movq %rax, -0x8(%rbp) testb %sil, %sil je 0x43efc xorps %xmm0, %xmm0 leaq -0x20(%rbp), %rsi movaps %xmm0, (%rsi) jmp 0x43f03 leaq 0x3bab1d(%rip), %rsi # 0x3fea20 movl 0x760(%rdi), %eax movzwl 0xc(%rdi), %ecx rolw $0x8, %cx movzwl %cx, %ecx movl $0x10, %edx movl $0x4, %r8d movl %eax, %edi callq 0xa1c22 movq %fs:0x28, %rcx cmpq -0x8(%rbp), %rcx jne 0x43f3b addq $0x20, %rsp popq %rbp retq callq 0x29250
_ma_set_uuid: push rbp mov rbp, rsp sub rsp, 20h mov rax, fs:28h mov [rbp+var_8], rax test sil, sil jz short loc_43EFC xorps xmm0, xmm0 lea rsi, [rbp+var_20] movaps xmmword ptr [rsi], xmm0 jmp short loc_43F03 loc_43EFC: lea rsi, maria_uuid loc_43F03: mov eax, [rdi+760h] movzx ecx, word ptr [rdi+0Ch] rol cx, 8 movzx ecx, cx mov edx, 10h mov r8d, 4 mov edi, eax call my_pwrite mov rcx, fs:28h cmp rcx, [rbp+var_8] jnz short loc_43F3B add rsp, 20h pop rbp retn loc_43F3B: call ___stack_chk_fail
long long ma_set_uuid(long long a1, char a2) { __int128 *v2; // rsi __int128 v4; // [rsp+0h] [rbp-20h] BYREF unsigned long long v5; // [rsp+18h] [rbp-8h] v5 = __readfsqword(0x28u); if ( a2 ) { v2 = &v4; v4 = 0LL; } else { v2 = &maria_uuid; } return my_pwrite(*(unsigned int *)(a1 + 1888), v2, 16LL, (unsigned __int16)__ROL2__(*(_WORD *)(a1 + 12), 8), 4LL); }
_ma_set_uuid: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX TEST SIL,SIL JZ 0x00143efc XORPS XMM0,XMM0 LEA RSI,[RBP + -0x20] MOVAPS xmmword ptr [RSI],XMM0 JMP 0x00143f03 LAB_00143efc: LEA RSI,[0x4fea20] LAB_00143f03: MOV EAX,dword ptr [RDI + 0x760] MOVZX ECX,word ptr [RDI + 0xc] ROL CX,0x8 MOVZX ECX,CX MOV EDX,0x10 MOV R8D,0x4 MOV EDI,EAX CALL 0x001a1c22 MOV RCX,qword ptr FS:[0x28] CMP RCX,qword ptr [RBP + -0x8] JNZ 0x00143f3b ADD RSP,0x20 POP RBP RET LAB_00143f3b: CALL 0x00129250
void _ma_set_uuid(long param_1,char param_2) { int1 *puVar1; long in_FS_OFFSET; int8 local_28; int8 uStack_20; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); if (param_2 == '\0') { puVar1 = maria_uuid; } else { puVar1 = (int1 *)&local_28; local_28 = 0; uStack_20 = 0; } my_pwrite(*(int4 *)(param_1 + 0x760),puVar1,0x10, *(ushort *)(param_1 + 0xc) << 8 | *(ushort *)(param_1 + 0xc) >> 8,4); if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
31,061
ma_bitmap_free_full_pages
eloqsql/storage/maria/ma_bitmap.c
my_bool _ma_bitmap_free_full_pages(MARIA_HA *info, const uchar *extents, uint count) { MARIA_FILE_BITMAP *bitmap= &info->s->bitmap; my_bool res; DBUG_ENTER("_ma_bitmap_free_full_pages"); for (; count--; extents+= ROW_EXTENT_SIZE) { pgcache_page_no_t page= uint5korr(extents); uint page_count= (uint2korr(extents + ROW_EXTENT_PAGE_SIZE) & ~START_EXTENT_BIT); if (!(page_count & TAIL_BIT)) { if (page == 0 && page_count == 0) continue; /* Not used extent */ if (pagecache_delete_pages(info->s->pagecache, &info->dfile, page, page_count, PAGECACHE_LOCK_WRITE, 1)) DBUG_RETURN(1); mysql_mutex_lock(&bitmap->bitmap_lock); res= _ma_bitmap_reset_full_page_bits(info, bitmap, page, page_count); mysql_mutex_unlock(&bitmap->bitmap_lock); if (res) DBUG_RETURN(1); } } DBUG_RETURN(0); }
O0
c
ma_bitmap_free_full_pages: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movq %rsi, -0x18(%rbp) movl %edx, -0x1c(%rbp) movq -0x10(%rbp), %rax movq (%rax), %rax addq $0xa10, %rax # imm = 0xA10 movq %rax, -0x28(%rbp) movl -0x1c(%rbp), %eax movl %eax, %ecx addl $-0x1, %ecx movl %ecx, -0x1c(%rbp) cmpl $0x0, %eax je 0x6692b movq -0x18(%rbp), %rdi callq 0x66940 movq %rax, -0x38(%rbp) movq -0x18(%rbp), %rax movzwl 0x5(%rax), %eax andl $0xffffbfff, %eax # imm = 0xFFFFBFFF movl %eax, -0x3c(%rbp) movl -0x3c(%rbp), %eax andl $0x8000, %eax # imm = 0x8000 cmpl $0x0, %eax jne 0x66918 cmpq $0x0, -0x38(%rbp) jne 0x66888 cmpl $0x0, -0x3c(%rbp) jne 0x66888 jmp 0x6691a movq -0x10(%rbp), %rax movq (%rax), %rax movq 0x600(%rax), %rdi movq -0x10(%rbp), %rsi addq $0x470, %rsi # imm = 0x470 movq -0x38(%rbp), %rdx movl -0x3c(%rbp), %ecx movl $0x4, %r8d movl $0x1, %r9d callq 0x406b0 cmpb $0x0, %al je 0x668c5 jmp 0x668bf movb $0x1, -0x1(%rbp) jmp 0x66931 movq -0x28(%rbp), %rdi addq $0x88, %rdi leaq 0xf549f(%rip), %rsi # 0x15bd76 movl $0xb31, %edx # imm = 0xB31 callq 0x64580 movq -0x10(%rbp), %rdi movq -0x28(%rbp), %rsi movq -0x38(%rbp), %rdx movl -0x3c(%rbp), %ecx callq 0x65d80 movb %al, -0x29(%rbp) movq -0x28(%rbp), %rdi addq $0x88, %rdi callq 0x64830 cmpb $0x0, -0x29(%rbp) je 0x66916 jmp 0x66910 movb $0x1, -0x1(%rbp) jmp 0x66931 jmp 0x66918 jmp 0x6691a movq -0x18(%rbp), %rax addq $0x7, %rax movq %rax, -0x18(%rbp) jmp 0x66834 jmp 0x6692d movb $0x0, -0x1(%rbp) movb -0x1(%rbp), %al addq $0x40, %rsp popq %rbp retq nopw (%rax,%rax)
_ma_bitmap_free_full_pages: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_18], rsi mov [rbp+var_1C], edx mov rax, [rbp+var_10] mov rax, [rax] add rax, 0A10h mov [rbp+var_28], rax loc_66834: mov eax, [rbp+var_1C] mov ecx, eax add ecx, 0FFFFFFFFh mov [rbp+var_1C], ecx cmp eax, 0 jz loc_6692B mov rdi, [rbp+var_18] call uint5korr_1 mov [rbp+var_38], rax mov rax, [rbp+var_18] movzx eax, word ptr [rax+5] and eax, 0FFFFBFFFh mov [rbp+var_3C], eax mov eax, [rbp+var_3C] and eax, 8000h cmp eax, 0 jnz loc_66918 cmp [rbp+var_38], 0 jnz short loc_66888 cmp [rbp+var_3C], 0 jnz short loc_66888 jmp loc_6691A loc_66888: mov rax, [rbp+var_10] mov rax, [rax] mov rdi, [rax+600h] mov rsi, [rbp+var_10] add rsi, 470h mov rdx, [rbp+var_38] mov ecx, [rbp+var_3C] mov r8d, 4 mov r9d, 1 call pagecache_delete_pages cmp al, 0 jz short loc_668C5 jmp short $+2 loc_668BF: mov [rbp+var_1], 1 jmp short loc_66931 loc_668C5: mov rdi, [rbp+var_28] add rdi, 88h lea rsi, aWorkspaceLlm4b_11; "/workspace/llm4binary/github2025/eloqsq"... mov edx, 0B31h call inline_mysql_mutex_lock_8 mov rdi, [rbp+var_10] mov rsi, [rbp+var_28] mov rdx, [rbp+var_38] mov ecx, [rbp+var_3C] call _ma_bitmap_reset_full_page_bits mov [rbp+var_29], al mov rdi, [rbp+var_28] add rdi, 88h call inline_mysql_mutex_unlock_8 cmp [rbp+var_29], 0 jz short loc_66916 jmp short $+2 loc_66910: mov [rbp+var_1], 1 jmp short loc_66931 loc_66916: jmp short $+2 loc_66918: jmp short $+2 loc_6691A: mov rax, [rbp+var_18] add rax, 7 mov [rbp+var_18], rax jmp loc_66834 loc_6692B: jmp short $+2 loc_6692D: mov [rbp+var_1], 0 loc_66931: mov al, [rbp+var_1] add rsp, 40h pop rbp retn
char ma_bitmap_free_full_pages(long long *a1, long long a2, int a3) { int v5; // [rsp+4h] [rbp-3Ch] long long v6; // [rsp+8h] [rbp-38h] char v7; // [rsp+17h] [rbp-29h] long long v8; // [rsp+18h] [rbp-28h] v8 = *a1 + 2576; while ( a3-- ) { v6 = uint5korr_1(a2); v5 = *(_WORD *)(a2 + 5) & 0xBFFF; if ( (*(_WORD *)(a2 + 5) & 0x8000) == 0 && (v6 || (*(_WORD *)(a2 + 5) & 0xBFFF) != 0) ) { if ( pagecache_delete_pages(*(_QWORD **)(*a1 + 1536), (long long)(a1 + 142), v6, v5, 4u, 1) ) return 1; inline_mysql_mutex_lock_8( v8 + 136, (long long)"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c", 0xB31u); v7 = ma_bitmap_reset_full_page_bits(a1, v8, v6, v5); inline_mysql_mutex_unlock_8(v8 + 136); if ( v7 ) return 1; } a2 += 7LL; } return 0; }
_ma_bitmap_free_full_pages: PUSH RBP MOV RBP,RSP SUB RSP,0x40 MOV qword ptr [RBP + -0x10],RDI MOV qword ptr [RBP + -0x18],RSI MOV dword ptr [RBP + -0x1c],EDX MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] ADD RAX,0xa10 MOV qword ptr [RBP + -0x28],RAX LAB_00166834: MOV EAX,dword ptr [RBP + -0x1c] MOV ECX,EAX ADD ECX,-0x1 MOV dword ptr [RBP + -0x1c],ECX CMP EAX,0x0 JZ 0x0016692b MOV RDI,qword ptr [RBP + -0x18] CALL 0x00166940 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x18] MOVZX EAX,word ptr [RAX + 0x5] AND EAX,0xffffbfff MOV dword ptr [RBP + -0x3c],EAX MOV EAX,dword ptr [RBP + -0x3c] AND EAX,0x8000 CMP EAX,0x0 JNZ 0x00166918 CMP qword ptr [RBP + -0x38],0x0 JNZ 0x00166888 CMP dword ptr [RBP + -0x3c],0x0 JNZ 0x00166888 JMP 0x0016691a LAB_00166888: MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX] MOV RDI,qword ptr [RAX + 0x600] MOV RSI,qword ptr [RBP + -0x10] ADD RSI,0x470 MOV RDX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RBP + -0x3c] MOV R8D,0x4 MOV R9D,0x1 CALL 0x001406b0 CMP AL,0x0 JZ 0x001668c5 JMP 0x001668bf LAB_001668bf: MOV byte ptr [RBP + -0x1],0x1 JMP 0x00166931 LAB_001668c5: MOV RDI,qword ptr [RBP + -0x28] ADD RDI,0x88 LEA RSI,[0x25bd76] MOV EDX,0xb31 CALL 0x00164580 MOV RDI,qword ptr [RBP + -0x10] MOV RSI,qword ptr [RBP + -0x28] MOV RDX,qword ptr [RBP + -0x38] MOV ECX,dword ptr [RBP + -0x3c] CALL 0x00165d80 MOV byte ptr [RBP + -0x29],AL MOV RDI,qword ptr [RBP + -0x28] ADD RDI,0x88 CALL 0x00164830 CMP byte ptr [RBP + -0x29],0x0 JZ 0x00166916 JMP 0x00166910 LAB_00166910: MOV byte ptr [RBP + -0x1],0x1 JMP 0x00166931 LAB_00166916: JMP 0x00166918 LAB_00166918: JMP 0x0016691a LAB_0016691a: MOV RAX,qword ptr [RBP + -0x18] ADD RAX,0x7 MOV qword ptr [RBP + -0x18],RAX JMP 0x00166834 LAB_0016692b: JMP 0x0016692d LAB_0016692d: MOV byte ptr [RBP + -0x1],0x0 LAB_00166931: MOV AL,byte ptr [RBP + -0x1] ADD RSP,0x40 POP RBP RET
int1 _ma_bitmap_free_full_pages(long *param_1,long param_2,int param_3) { ushort uVar1; long lVar2; char cVar3; long lVar4; int local_24; long local_20; lVar2 = *param_1; local_24 = param_3; local_20 = param_2; do { if (local_24 == 0) { return 0; } lVar4 = uint5korr(local_20); uVar1 = *(ushort *)(local_20 + 5); if (((uVar1 & 0x8000) == 0) && ((lVar4 != 0 || ((uVar1 & 0xbfff) != 0)))) { cVar3 = pagecache_delete_pages (*(int8 *)(*param_1 + 0x600),param_1 + 0x8e,lVar4,uVar1 & 0xbfff,4,1); if (cVar3 != '\0') { return 1; } inline_mysql_mutex_lock (lVar2 + 0xa98,"/workspace/llm4binary/github2025/eloqsql/storage/maria/ma_bitmap.c", 0xb31); cVar3 = _ma_bitmap_reset_full_page_bits(param_1,lVar2 + 0xa10,lVar4,uVar1 & 0xbfff); inline_mysql_mutex_unlock(lVar2 + 0xa98); if (cVar3 != '\0') { return 1; } } local_20 = local_20 + 7; local_24 = local_24 + -1; } while( true ); }
31,062
reg_requests
eloqsql/storage/maria/ma_pagecache.c
static void reg_requests(PAGECACHE *pagecache, PAGECACHE_BLOCK_LINK *block, int count) { DBUG_ENTER("reg_requests"); PCBLOCK_INFO(block); if (! block->requests) /* First request for the block unlinks it */ unlink_block(pagecache, block); block->requests+= count; DBUG_VOID_RETURN; }
O0
c
reg_requests: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl %edx, -0x14(%rbp) jmp 0x3e625 movq -0x10(%rbp), %rax cmpl $0x0, 0x60(%rax) jne 0x3e63c movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi callq 0x40540 movl -0x14(%rbp), %ecx movq -0x10(%rbp), %rax addl 0x60(%rax), %ecx movl %ecx, 0x60(%rax) jmp 0x3e64b addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
reg_requests: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_14], edx jmp short $+2 loc_3E625: mov rax, [rbp+var_10] cmp dword ptr [rax+60h], 0 jnz short loc_3E63C mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] call unlink_block loc_3E63C: mov ecx, [rbp+var_14] mov rax, [rbp+var_10] add ecx, [rax+60h] mov [rax+60h], ecx jmp short $+2 loc_3E64B: add rsp, 20h pop rbp retn
long long reg_requests(long long a1, long long a2, int a3) { long long result; // rax if ( !*(_DWORD *)(a2 + 96) ) unlink_block(a1, a2); result = a2; *(_DWORD *)(a2 + 96) += a3; return result; }
reg_requests: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV dword ptr [RBP + -0x14],EDX JMP 0x0013e625 LAB_0013e625: MOV RAX,qword ptr [RBP + -0x10] CMP dword ptr [RAX + 0x60],0x0 JNZ 0x0013e63c MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] CALL 0x00140540 LAB_0013e63c: MOV ECX,dword ptr [RBP + -0x14] MOV RAX,qword ptr [RBP + -0x10] ADD ECX,dword ptr [RAX + 0x60] MOV dword ptr [RAX + 0x60],ECX JMP 0x0013e64b LAB_0013e64b: ADD RSP,0x20 POP RBP RET
void reg_requests(int8 param_1,long param_2,int param_3) { if (*(int *)(param_2 + 0x60) == 0) { unlink_block(param_1,param_2); } *(int *)(param_2 + 0x60) = param_3 + *(int *)(param_2 + 0x60); return; }
31,063
pretty_progress(int, int, float)
7CodeWizard[P]stablediffusion/util.cpp
void pretty_progress(int step, int steps, float time) { std::string progress = " |"; int max_progress = 50; int32_t current = (int32_t)(step * 1.f * max_progress / steps); for (int i = 0; i < 50; i++) { if (i > current) { progress += " "; } else if (i == current && i != max_progress - 1) { progress += ">"; } else { progress += "="; } } progress += "|"; printf(time > 1.0f ? "\r%s %i/%i - %.2fs/it" : "\r%s %i/%i - %.2fit/s", progress.c_str(), step, steps, time > 1.0f || time == 0 ? time : (1.0f / time)); fflush(stdout); // for linux if (step == steps) { printf("\n"); } }
O2
cpp
pretty_progress(int, int, float): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movaps %xmm0, 0x30(%rsp) movl %esi, %ebx movl %edi, %ebp leaq 0x495c6(%rip), %rsi # 0x9f3f2 leaq 0x10(%rsp), %r14 leaq 0x7(%rsp), %rdx movq %r14, %rdi callq 0x19f24 movl %ebp, 0x8(%rsp) cvtsi2ss %ebp, %xmm0 mulss 0x4956e(%rip), %xmm0 # 0x9f3bc movl %ebx, 0xc(%rsp) cvtsi2ss %ebx, %xmm1 divss %xmm1, %xmm0 cvttss2si %xmm0, %r15d xorl %r12d, %r12d leaq 0x4e6c6(%rip), %r13 # 0xa452f leaq 0x43ce5(%rip), %rbx # 0x99b55 leaq 0x4507c(%rip), %rbp # 0x9aef3 cmpl $0x32, %r12d je 0x55ea0 cmpl $0x31, %r12d movq %rbx, %rsi cmoveq %r13, %rsi cmpl %r12d, %r15d cmovneq %r13, %rsi cmovlq %rbp, %rsi movq %r14, %rdi callq 0xabb0 incl %r12d jmp 0x55e77 leaq 0x4954d(%rip), %rsi # 0x9f3f4 leaq 0x10(%rsp), %rdi callq 0xabb0 movss 0x4114f(%rip), %xmm0 # 0x97008 movaps 0x30(%rsp), %xmm3 ucomiss %xmm0, %xmm3 leaq 0x4952e(%rip), %rax # 0x9f3f6 leaq 0x4953c(%rip), %rdi # 0x9f40b cmovaq %rax, %rdi movq 0x10(%rsp), %rsi ja 0x55ef4 divss %xmm3, %xmm0 xorps %xmm1, %xmm1 cmpeqss %xmm3, %xmm1 movaps %xmm1, %xmm2 andnps %xmm0, %xmm2 andps %xmm3, %xmm1 orps %xmm2, %xmm1 jmp 0x55ef7 movaps %xmm3, %xmm1 cvtss2sd %xmm1, %xmm0 movl 0x8(%rsp), %ebp movl %ebp, %edx movl 0xc(%rsp), %ebx movl %ebx, %ecx movb $0x1, %al callq 0xa070 movq 0x80033(%rip), %rax # 0xd5f48 movq (%rax), %rdi callq 0xa6f0 cmpl %ebx, %ebp jne 0x55f29 pushq $0xa popq %rdi callq 0xa870 leaq 0x10(%rsp), %rdi callq 0xac60 addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x55f44 movq %rax, %rbx leaq 0x10(%rsp), %rdi callq 0xac60 movq %rbx, %rdi callq 0xaab0
_Z15pretty_progressiif: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h movaps [rsp+78h+var_48], xmm0 mov ebx, esi mov ebp, edi lea rsi, asc_9F3F2; " |" lea r14, [rsp+78h+var_68] lea rdx, [rsp+78h+var_71] mov rdi, r14 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_; std::string::basic_string<std::allocator<char>>(char const*,std::allocator<char> const&) mov [rsp+78h+var_70], ebp cvtsi2ss xmm0, ebp mulss xmm0, cs:dword_9F3BC mov [rsp+78h+var_6C], ebx cvtsi2ss xmm1, ebx divss xmm0, xmm1 cvttss2si r15d, xmm0 xor r12d, r12d lea r13, aGraph+0Ch; "=" lea rbx, aLora+15h; ">" lea rbp, asc_9AEF1+2; " " loc_55E77: cmp r12d, 32h ; '2' jz short loc_55EA0 cmp r12d, 31h ; '1' mov rsi, rbx cmovz rsi, r13 cmp r15d, r12d cmovnz rsi, r13 cmovl rsi, rbp mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) inc r12d jmp short loc_55E77 loc_55EA0: lea rsi, asc_9F3F2+2; "|" lea rdi, [rsp+78h+var_68] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) movss xmm0, cs:dword_97008 movaps xmm3, [rsp+78h+var_48] ucomiss xmm3, xmm0 lea rax, aSII2fsIt; "\r%s %i/%i - %.2fs/it" lea rdi, aSII2fitS; "\r%s %i/%i - %.2fit/s" cmova rdi, rax mov rsi, [rsp+78h+var_68] ja short loc_55EF4 divss xmm0, xmm3 xorps xmm1, xmm1 cmpeqss xmm1, xmm3 movaps xmm2, xmm1 andnps xmm2, xmm0 andps xmm1, xmm3 orps xmm1, xmm2 jmp short loc_55EF7 loc_55EF4: movaps xmm1, xmm3 loc_55EF7: cvtss2sd xmm0, xmm1 mov ebp, [rsp+78h+var_70] mov edx, ebp mov ebx, [rsp+78h+var_6C] mov ecx, ebx mov al, 1 call _printf mov rax, cs:stdout_ptr mov rdi, [rax] call _fflush cmp ebp, ebx jnz short loc_55F29 push 0Ah pop rdi call _putchar loc_55F29: lea rdi, [rsp+78h+var_68]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short $+2 loc_55F44: mov rbx, rax lea rdi, [rsp+arg_8]; void * call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() mov rdi, rbx call __Unwind_Resume
void pretty_progress(int a1, int a2, __m128 a3) { int v3; // r15d int i; // r12d char *v5; // rsi __m128 v6; // xmm0 const char *v7; // rdi __m128 v8; // xmm1 float v9; // xmm1_4 _QWORD v12[4]; // [rsp+10h] [rbp-68h] BYREF __m128 v13; // [rsp+30h] [rbp-48h] v13 = a3; std::string::basic_string<std::allocator<char>>(v12, (long long)" |"); v3 = (int)(float)((float)((float)a1 * 50.0) / (float)a2); for ( i = 0; i != 50; ++i ) { v5 = ">"; if ( i == 49 ) v5 = "="; if ( v3 != i ) v5 = "="; if ( v3 < i ) v5 = " "; std::string::append(v12, v5); } std::string::append(v12, "|"); v6 = (__m128)0x3F800000u; v7 = "\r%s %i/%i - %.2fit/s"; if ( v13.m128_f32[0] <= 1.0 ) { v6.m128_f32[0] = 1.0 / v13.m128_f32[0]; v8 = _mm_cmpeq_ss((__m128)0LL, v13); LODWORD(v9) = v8.m128_i32[0] & v13.m128_i32[0] | _mm_andnot_ps(v8, v6).m128_u32[0]; } else { v7 = "\r%s %i/%i - %.2fs/it"; v9 = v13.m128_f32[0]; } printf(v7, v12[0], (unsigned int)a1, (unsigned int)a2, v9); fflush(stdout); if ( a1 == a2 ) putchar(10LL); std::string::~string(v12); }
pretty_progress: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x48 MOVAPS xmmword ptr [RSP + 0x30],XMM0 MOV EBX,ESI MOV EBP,EDI LEA RSI,[0x19f3f2] LEA R14,[RSP + 0x10] LEA RDX,[RSP + 0x7] MOV RDI,R14 CALL 0x00119f24 MOV dword ptr [RSP + 0x8],EBP CVTSI2SS XMM0,EBP MULSS XMM0,dword ptr [0x0019f3bc] MOV dword ptr [RSP + 0xc],EBX CVTSI2SS XMM1,EBX DIVSS XMM0,XMM1 CVTTSS2SI R15D,XMM0 XOR R12D,R12D LEA R13,[0x1a452f] LEA RBX,[0x199b55] LEA RBP,[0x19aef3] LAB_00155e77: CMP R12D,0x32 JZ 0x00155ea0 CMP R12D,0x31 MOV RSI,RBX CMOVZ RSI,R13 CMP R15D,R12D CMOVNZ RSI,R13 CMOVL RSI,RBP LAB_00155e93: MOV RDI,R14 CALL 0x0010abb0 INC R12D JMP 0x00155e77 LAB_00155ea0: LEA RSI,[0x19f3f4] LEA RDI,[RSP + 0x10] CALL 0x0010abb0 LAB_00155eb1: MOVSS XMM0,dword ptr [0x00197008] MOVAPS XMM3,xmmword ptr [RSP + 0x30] UCOMISS XMM3,XMM0 LEA RAX,[0x19f3f6] LEA RDI,[0x19f40b] CMOVA RDI,RAX MOV RSI,qword ptr [RSP + 0x10] JA 0x00155ef4 DIVSS XMM0,XMM3 XORPS XMM1,XMM1 CMPEQSS XMM1,XMM3 MOVAPS XMM2,XMM1 ANDNPS XMM2,XMM0 ANDPS XMM1,XMM3 ORPS XMM1,XMM2 JMP 0x00155ef7 LAB_00155ef4: MOVAPS XMM1,XMM3 LAB_00155ef7: CVTSS2SD XMM0,XMM1 MOV EBP,dword ptr [RSP + 0x8] MOV EDX,EBP MOV EBX,dword ptr [RSP + 0xc] MOV ECX,EBX MOV AL,0x1 CALL 0x0010a070 MOV RAX,qword ptr [0x001d5f48] MOV RDI,qword ptr [RAX] CALL 0x0010a6f0 CMP EBP,EBX JNZ 0x00155f29 PUSH 0xa POP RDI CALL 0x0010a870 LAB_00155f29: LEA RDI,[RSP + 0x10] CALL 0x0010ac60 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 */ /* pretty_progress(int, int, float) */ void pretty_progress(int param_1,int param_2,float param_3) { uint uVar1; uint uVar2; char *__format; int iVar3; float fVar4; allocator local_71; uint local_70; uint local_6c; int8 local_68 [4]; float local_48; local_48 = param_3; std::__cxx11::string::string<std::allocator<char>>((string *)local_68," |",&local_71); local_70 = param_1; local_6c = param_2; for (iVar3 = 0; iVar3 != 0x32; iVar3 = iVar3 + 1) { /* try { // try from 00155e93 to 00155e9a has its CatchHandler @ 00155f44 */ std::__cxx11::string::append((char *)local_68); } /* try { // try from 00155ea0 to 00155eb0 has its CatchHandler @ 00155f42 */ std::__cxx11::string::append((char *)local_68); uVar2 = local_6c; uVar1 = local_70; __format = "\r%s %i/%i - %.2fit/s"; if (DAT_00197008 < local_48) { __format = "\r%s %i/%i - %.2fs/it"; fVar4 = local_48; } else { fVar4 = (float)(-(uint)(local_48 == 0.0) & (uint)local_48 | ~-(uint)(local_48 == 0.0) & (uint)(DAT_00197008 / local_48)); } printf(__format,SUB84((double)fVar4,0),local_68[0],(ulong)local_70,(ulong)local_6c); fflush(*(FILE **)PTR_stdout_001d5f48); if (uVar1 == uVar2) { putchar(10); } std::__cxx11::string::~string((string *)local_68); return; }
31,064
pretty_progress(int, int, float)
7CodeWizard[P]stablediffusion/util.cpp
void pretty_progress(int step, int steps, float time) { std::string progress = " |"; int max_progress = 50; int32_t current = (int32_t)(step * 1.f * max_progress / steps); for (int i = 0; i < 50; i++) { if (i > current) { progress += " "; } else if (i == current && i != max_progress - 1) { progress += ">"; } else { progress += "="; } } progress += "|"; printf(time > 1.0f ? "\r%s %i/%i - %.2fs/it" : "\r%s %i/%i - %.2fit/s", progress.c_str(), step, steps, time > 1.0f || time == 0 ? time : (1.0f / time)); fflush(stdout); // for linux if (step == steps) { printf("\n"); } }
O3
cpp
pretty_progress(int, int, float): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x48, %rsp movaps %xmm0, 0x30(%rsp) movl %esi, %ebx movl %edi, %ebp leaq 0x20(%rsp), %rax movq %rax, -0x10(%rax) leaq 0x491cd(%rip), %rsi # 0xc24f2 leaq 0x491c9(%rip), %rdx # 0xc24f5 leaq 0x10(%rsp), %r14 movq %r14, %rdi callq 0x2ecd4 movl %ebp, 0x8(%rsp) xorps %xmm0, %xmm0 cvtsi2ss %ebp, %xmm0 mulss 0x49170(%rip), %xmm0 # 0xc24bc movl %ebx, 0xc(%rsp) cvtsi2ss %ebx, %xmm1 divss %xmm1, %xmm0 cvttss2si %xmm0, %r12d xorl %r13d, %r13d leaq 0x4e3f5(%rip), %r15 # 0xc775c leaq 0x438c7(%rip), %rbx # 0xbcc35 leaq 0x44c5e(%rip), %rbp # 0xbdfd3 cmpl $0x31, %r13d movq %rbx, %rsi cmoveq %r15, %rsi cmpl %r13d, %r12d cmovneq %r15, %rsi cmovlq %rbp, %rsi movq %r14, %rdi callq 0xabe0 incl %r13d cmpl $0x32, %r13d jne 0x79375 leaq 0x49151(%rip), %rsi # 0xc24f4 leaq 0x10(%rsp), %rdi callq 0xabe0 movss 0x40c53(%rip), %xmm0 # 0xba008 movaps 0x30(%rsp), %xmm3 ucomiss %xmm0, %xmm3 leaq 0x49132(%rip), %rax # 0xc24f6 leaq 0x49140(%rip), %rdi # 0xc250b cmovaq %rax, %rdi movq 0x10(%rsp), %rsi ja 0x793f0 divss %xmm3, %xmm0 xorps %xmm1, %xmm1 cmpeqss %xmm3, %xmm1 movaps %xmm1, %xmm2 andnps %xmm0, %xmm2 andps %xmm3, %xmm1 orps %xmm2, %xmm1 jmp 0x793f3 movaps %xmm3, %xmm1 xorps %xmm0, %xmm0 cvtss2sd %xmm1, %xmm0 movl 0x8(%rsp), %ebp movl %ebp, %edx movl 0xc(%rsp), %ebx movl %ebx, %ecx movb $0x1, %al callq 0xa080 movq 0x7bb44(%rip), %rax # 0xf4f58 movq (%rax), %rdi callq 0xa6d0 cmpl %ebx, %ebp jne 0x7942a movl $0xa, %edi callq 0xa840 movq 0x10(%rsp), %rdi leaq 0x20(%rsp), %rax cmpq %rax, %rdi je 0x79446 movq 0x20(%rsp), %rsi incq %rsi callq 0xa5d0 addq $0x48, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq jmp 0x79457 movq %rax, %rbx movq 0x10(%rsp), %rdi leaq 0x20(%rsp), %rax cmpq %rax, %rdi je 0x79476 movq 0x20(%rsp), %rsi incq %rsi callq 0xa5d0 movq %rbx, %rdi callq 0xaad0
_Z15pretty_progressiif: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 48h movaps [rsp+78h+var_48], xmm0 mov ebx, esi mov ebp, edi lea rax, [rsp+78h+var_58] mov [rax-10h], rax lea rsi, asc_C24F2; " |" lea rdx, asc_C24F2+3; "" lea r14, [rsp+78h+var_68] mov rdi, r14 call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPKcEEvT_S8_St20forward_iterator_tag; std::string::_M_construct<char const*>(char const*,char const*,std::forward_iterator_tag) mov [rsp+78h+var_70], ebp xorps xmm0, xmm0 cvtsi2ss xmm0, ebp mulss xmm0, cs:dword_C24BC mov [rsp+78h+var_6C], ebx cvtsi2ss xmm1, ebx divss xmm0, xmm1 cvttss2si r12d, xmm0 xor r13d, r13d lea r15, aGraph+0Ch; "=" lea rbx, aLora+15h; ">" lea rbp, asc_BDFD1+2; " " loc_79375: cmp r13d, 31h ; '1' mov rsi, rbx cmovz rsi, r15 cmp r12d, r13d cmovnz rsi, r15 cmovl rsi, rbp mov rdi, r14 call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) inc r13d cmp r13d, 32h ; '2' jnz short loc_79375 lea rsi, asc_C24F2+2; "|" lea rdi, [rsp+78h+var_68] call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6appendEPKc; std::string::append(char const*) movss xmm0, cs:dword_BA008 movaps xmm3, [rsp+78h+var_48] ucomiss xmm3, xmm0 lea rax, aSII2fsIt; "\r%s %i/%i - %.2fs/it" lea rdi, aSII2fitS; "\r%s %i/%i - %.2fit/s" cmova rdi, rax mov rsi, [rsp+78h+var_68] ja short loc_793F0 divss xmm0, xmm3 xorps xmm1, xmm1 cmpeqss xmm1, xmm3 movaps xmm2, xmm1 andnps xmm2, xmm0 andps xmm1, xmm3 orps xmm1, xmm2 jmp short loc_793F3 loc_793F0: movaps xmm1, xmm3 loc_793F3: xorps xmm0, xmm0 cvtss2sd xmm0, xmm1 mov ebp, [rsp+78h+var_70] mov edx, ebp mov ebx, [rsp+78h+var_6C] mov ecx, ebx mov al, 1 call _printf mov rax, cs:stdout_ptr mov rdi, [rax] call _fflush cmp ebp, ebx jnz short loc_7942A mov edi, 0Ah call _putchar loc_7942A: mov rdi, [rsp+78h+var_68]; void * lea rax, [rsp+78h+var_58] cmp rdi, rax jz short loc_79446 mov rsi, [rsp+78h+var_58] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_79446: add rsp, 48h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn jmp short $+2 loc_79457: mov rbx, rax mov rdi, [rsp+arg_8]; void * lea rax, [rsp+arg_18] cmp rdi, rax jz short loc_79476 mov rsi, [rsp+arg_18] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_79476: mov rdi, rbx call __Unwind_Resume
void pretty_progress(int a1, int a2, __m128 a3) { int v3; // r12d int i; // r13d char *v5; // rsi __m128 v6; // xmm0 const char *v7; // rdi __m128 v8; // xmm1 float v9; // xmm1_4 void *v12[2]; // [rsp+10h] [rbp-68h] BYREF _QWORD v13[2]; // [rsp+20h] [rbp-58h] BYREF __m128 v14; // [rsp+30h] [rbp-48h] v14 = a3; v12[0] = v13; std::string::_M_construct<char const*>((long long)v12, " |", (long long)""); v3 = (int)(float)((float)((float)a1 * 50.0) / (float)a2); for ( i = 0; i != 50; ++i ) { v5 = ">"; if ( i == 49 ) v5 = "="; if ( v3 != i ) v5 = "="; if ( v3 < i ) v5 = " "; std::string::append(v12, v5); } std::string::append(v12, "|"); v6 = (__m128)0x3F800000u; v7 = "\r%s %i/%i - %.2fit/s"; if ( v14.m128_f32[0] <= 1.0 ) { v6.m128_f32[0] = 1.0 / v14.m128_f32[0]; v8 = _mm_cmpeq_ss((__m128)0LL, v14); LODWORD(v9) = v8.m128_i32[0] & v14.m128_i32[0] | _mm_andnot_ps(v8, v6).m128_u32[0]; } else { v7 = "\r%s %i/%i - %.2fs/it"; v9 = v14.m128_f32[0]; } printf(v7, v12[0], (unsigned int)a1, (unsigned int)a2, v9); fflush(stdout); if ( a1 == a2 ) putchar(10LL); if ( v12[0] != v13 ) operator delete(v12[0], v13[0] + 1LL); }
31,065
ma_set_fatal_error
eloqsql/storage/maria/ma_info.c
void _ma_set_fatal_error(MARIA_HA *info, int error) { MARIA_SHARE *share= info->s; _ma_print_error(info, error, (share->state.changed & STATE_CRASHED_PRINTED) == 0); maria_mark_crashed_share(share); share->state.changed|= STATE_CRASHED_PRINTED; my_errno= error; DBUG_ASSERT(!maria_assert_if_crashed_table); }
O0
c
ma_set_fatal_error: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movl %esi, -0xc(%rbp) movq -0x8(%rbp), %rax movq (%rax), %rax movq %rax, -0x18(%rbp) movq -0x8(%rbp), %rdi movl -0xc(%rbp), %esi movq -0x18(%rbp), %rax movl 0x170(%rax), %eax andl $0x800, %eax # imm = 0x800 cmpl $0x0, %eax sete %al andb $0x1, %al movzbl %al, %eax movsbl %al, %edx callq 0x386a0 movq -0x18(%rbp), %rax movl 0x170(%rax), %ecx orl $0x2, %ecx movl %ecx, 0x170(%rax) jmp 0x387a8 jmp 0x387aa movq -0x18(%rbp), %rax movl 0x170(%rax), %ecx orl $0x800, %ecx # imm = 0x800 movl %ecx, 0x170(%rax) movl -0xc(%rbp), %eax movl %eax, -0x1c(%rbp) callq 0xff280 movl -0x1c(%rbp), %ecx movl %ecx, (%rax) jmp 0x387d2 addq $0x20, %rsp popq %rbp retq nopl (%rax,%rax)
_ma_set_fatal_error: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_C], esi mov rax, [rbp+var_8] mov rax, [rax] mov [rbp+var_18], rax mov rdi, [rbp+var_8] mov esi, [rbp+var_C] mov rax, [rbp+var_18] mov eax, [rax+170h] and eax, 800h cmp eax, 0 setz al and al, 1 movzx eax, al movsx edx, al call _ma_print_error mov rax, [rbp+var_18] mov ecx, [rax+170h] or ecx, 2 mov [rax+170h], ecx jmp short $+2 loc_387A8: jmp short $+2 loc_387AA: mov rax, [rbp+var_18] mov ecx, [rax+170h] or ecx, 800h mov [rax+170h], ecx mov eax, [rbp+var_C] mov [rbp+var_1C], eax call _my_thread_var mov ecx, [rbp+var_1C] mov [rax], ecx jmp short $+2 loc_387D2: add rsp, 20h pop rbp retn
unsigned int * ma_set_fatal_error(_DWORD *a1, unsigned int a2, long long a3, long long a4, long long a5, int a6) { unsigned int *result; // rax long long v7; // [rsp+8h] [rbp-18h] v7 = *(_QWORD *)a1; ma_print_error(a1, a2, (*(_DWORD *)(*(_QWORD *)a1 + 368LL) & 0x800) == 0, a4, a5, a6); *(_DWORD *)(v7 + 368) |= 2u; *(_DWORD *)(v7 + 368) |= 0x800u; result = (unsigned int *)my_thread_var(a1, (const char *)a2); *result = a2; return result; }
_ma_set_fatal_error: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV qword ptr [RBP + -0x8],RDI MOV dword ptr [RBP + -0xc],ESI MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x18],RAX MOV RDI,qword ptr [RBP + -0x8] MOV ESI,dword ptr [RBP + -0xc] MOV RAX,qword ptr [RBP + -0x18] MOV EAX,dword ptr [RAX + 0x170] AND EAX,0x800 CMP EAX,0x0 SETZ AL AND AL,0x1 MOVZX EAX,AL MOVSX EDX,AL CALL 0x001386a0 MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RAX + 0x170] OR ECX,0x2 MOV dword ptr [RAX + 0x170],ECX JMP 0x001387a8 LAB_001387a8: JMP 0x001387aa LAB_001387aa: MOV RAX,qword ptr [RBP + -0x18] MOV ECX,dword ptr [RAX + 0x170] OR ECX,0x800 MOV dword ptr [RAX + 0x170],ECX MOV EAX,dword ptr [RBP + -0xc] MOV dword ptr [RBP + -0x1c],EAX CALL 0x001ff280 MOV ECX,dword ptr [RBP + -0x1c] MOV dword ptr [RAX],ECX JMP 0x001387d2 LAB_001387d2: ADD RSP,0x20 POP RBP RET
void _ma_set_fatal_error(long *param_1,int4 param_2) { long lVar1; int4 *puVar2; lVar1 = *param_1; _ma_print_error(param_1,param_2,(*(uint *)(lVar1 + 0x170) & 0x800) == 0); *(uint *)(lVar1 + 0x170) = *(uint *)(lVar1 + 0x170) | 2; *(uint *)(lVar1 + 0x170) = *(uint *)(lVar1 + 0x170) | 0x800; puVar2 = (int4 *)_my_thread_var(); *puVar2 = param_2; return; }
31,066
minja::ArgumentsValue::get_named(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
monkey531[P]llama/common/minja.hpp
Value get_named(const std::string & name) { for (const auto & [key, value] : kwargs) { if (key == name) return value; } return Value(); }
O2
cpp
minja::ArgumentsValue::get_named(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r15 pushq %r14 pushq %r12 pushq %rbx pushq %rax movq %rdx, %r15 movq %rdi, %rbx movq 0x18(%rsi), %r14 movq 0x20(%rsi), %r12 cmpq %r12, %r14 je 0x7b0a0 movq %r14, %rdi movq %r15, %rsi callq 0x3123c testb %al, %al jne 0x7b0aa addq $0x70, %r14 jmp 0x7b086 movq %rbx, %rdi callq 0x62c5a jmp 0x7b0b9 addq $0x20, %r14 movq %rbx, %rdi movq %r14, %rsi callq 0x649a0 movq %rbx, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq
_ZN5minja14ArgumentsValue9get_namedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push r15 push r14 push r12 push rbx push rax mov r15, rdx mov rbx, rdi mov r14, [rsi+18h] mov r12, [rsi+20h] loc_7B086: cmp r14, r12 jz short loc_7B0A0 mov rdi, r14 mov rsi, r15 call _ZSteqIcEN9__gnu_cxx11__enable_ifIXsr9__is_charIT_EE7__valueEbE6__typeERKNSt7__cxx1112basic_stringIS2_St11char_traitsIS2_ESaIS2_EEESC_ test al, al jnz short loc_7B0AA add r14, 70h ; 'p' jmp short loc_7B086 loc_7B0A0: mov rdi, rbx; this call _ZN5minja5ValueC2Ev; minja::Value::Value(void) jmp short loc_7B0B9 loc_7B0AA: add r14, 20h ; ' ' mov rdi, rbx; this mov rsi, r14; minja::Value * call _ZN5minja5ValueC2ERKS0_; minja::Value::Value(minja::Value const&) loc_7B0B9: mov rax, rbx add rsp, 8 pop rbx pop r12 pop r14 pop r15 retn
minja::Value * minja::ArgumentsValue::get_named(minja::Value *this, long long a2, _QWORD *a3) { _QWORD *v4; // r14 _QWORD *v5; // r12 v4 = *(_QWORD **)(a2 + 24); v5 = *(_QWORD **)(a2 + 32); while ( 1 ) { if ( v4 == v5 ) { minja::Value::Value(this); return this; } if ( std::operator==<char>(v4, a3) ) break; v4 += 14; } minja::Value::Value(this, (const minja::Value *)(v4 + 4)); return this; }
get_named: PUSH R15 PUSH R14 PUSH R12 PUSH RBX PUSH RAX MOV R15,RDX MOV RBX,RDI MOV R14,qword ptr [RSI + 0x18] MOV R12,qword ptr [RSI + 0x20] LAB_0017b086: CMP R14,R12 JZ 0x0017b0a0 MOV RDI,R14 MOV RSI,R15 CALL 0x0013123c TEST AL,AL JNZ 0x0017b0aa ADD R14,0x70 JMP 0x0017b086 LAB_0017b0a0: MOV RDI,RBX CALL 0x00162c5a JMP 0x0017b0b9 LAB_0017b0aa: ADD R14,0x20 MOV RDI,RBX MOV RSI,R14 CALL 0x001649a0 LAB_0017b0b9: MOV RAX,RBX ADD RSP,0x8 POP RBX POP R12 POP R14 POP R15 RET
/* minja::ArgumentsValue::get_named(std::__cxx11::string const&) */ string * minja::ArgumentsValue::get_named(string *param_1) { string *psVar1; char cVar2; string *in_RDX; long in_RSI; string *psVar3; psVar3 = *(string **)(in_RSI + 0x18); psVar1 = *(string **)(in_RSI + 0x20); while( true ) { if (psVar3 == psVar1) { Value::Value((Value *)param_1); return param_1; } cVar2 = std::operator==(psVar3,in_RDX); if (cVar2 != '\0') break; psVar3 = psVar3 + 0x70; } Value::Value((Value *)param_1,(Value *)(psVar3 + 0x20)); return param_1; }
31,067
Item_sum_bit::Item_sum_bit(THD*, Item_sum_bit*)
eloqsql/sql/item_sum.h
Item_sum_bit(THD *thd, Item_sum_bit *item): Item_sum_int(thd, item), reset_bits(item->reset_bits), bits(item->bits), as_window_function(item->as_window_function), num_values_added(item->num_values_added) { if (as_window_function) memcpy(bit_counters, item->bit_counters, sizeof(bit_counters)); }
O0
c
Item_sum_bit::Item_sum_bit(THD*, Item_sum_bit*): pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x20(%rbp) movq -0x10(%rbp), %rsi movq -0x18(%rbp), %rdx callq 0xd0e480 movq -0x20(%rbp), %rax leaq 0xd6c834(%rip), %rcx # 0x1a7af18 addq $0x10, %rcx movq %rcx, (%rax) movq -0x18(%rbp), %rcx movq 0x108(%rcx), %rcx movq %rcx, 0x108(%rax) movq -0x18(%rbp), %rcx movq 0x110(%rcx), %rcx movq %rcx, 0x110(%rax) movq -0x18(%rbp), %rcx movb 0x118(%rcx), %cl andb $0x1, %cl movb %cl, 0x118(%rax) movq -0x18(%rbp), %rcx movq 0x120(%rcx), %rcx movq %rcx, 0x120(%rax) testb $0x1, 0x118(%rax) je 0xd0e75d movq -0x20(%rbp), %rdi addq $0x128, %rdi # imm = 0x128 movq -0x18(%rbp), %rsi addq $0x128, %rsi # imm = 0x128 movl $0x200, %edx # imm = 0x200 callq 0x759350 addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax)
_ZN12Item_sum_bitC2EP3THDPS_: push rbp mov rbp, rsp sub rsp, 20h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rdi, [rbp+var_8]; this mov [rbp+var_20], rdi mov rsi, [rbp+var_10]; THD * mov rdx, [rbp+var_18]; Item_sum_int * call _ZN12Item_sum_intC2EP3THDPS_; Item_sum_int::Item_sum_int(THD *,Item_sum_int*) mov rax, [rbp+var_20] lea rcx, _ZTV12Item_sum_bit; `vtable for'Item_sum_bit add rcx, 10h mov [rax], rcx mov rcx, [rbp+var_18] mov rcx, [rcx+108h] mov [rax+108h], rcx mov rcx, [rbp+var_18] mov rcx, [rcx+110h] mov [rax+110h], rcx mov rcx, [rbp+var_18] mov cl, [rcx+118h] and cl, 1 mov [rax+118h], cl mov rcx, [rbp+var_18] mov rcx, [rcx+120h] mov [rax+120h], rcx test byte ptr [rax+118h], 1 jz short loc_D0E75D mov rdi, [rbp+var_20] add rdi, 128h mov rsi, [rbp+var_18] add rsi, 128h mov edx, 200h call _memcpy loc_D0E75D: add rsp, 20h pop rbp retn
void Item_sum_bit::Item_sum_bit(Item_sum_bit *this, THD *a2, Item_sum_bit *a3) { Item_sum_int::Item_sum_int(this, a2, a3); *(_QWORD *)this = &`vtable for'Item_sum_bit + 2; *((_QWORD *)this + 33) = *((_QWORD *)a3 + 33); *((_QWORD *)this + 34) = *((_QWORD *)a3 + 34); *((_BYTE *)this + 280) = *((_BYTE *)a3 + 280) & 1; *((_QWORD *)this + 36) = *((_QWORD *)a3 + 36); if ( (*((_BYTE *)this + 280) & 1) != 0 ) memcpy((char *)this + 296, (char *)a3 + 296, 512LL); }
do_cut_string_complex: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x8],RDI MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x38] MOV RAX,qword ptr [RDI] CALL qword ptr [RAX + 0x348] MOV qword ptr [RBP + -0x10],RAX MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV RCX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RCX + 0x30] ADD RAX,RCX MOV qword ptr [RBP + -0x18],RAX MOV RSI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV RAX,qword ptr [RAX] MOV qword ptr [RBP + -0x40],RAX MOV RCX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x34] MOV RDI,qword ptr [RBP + -0x10] XOR EDX,EDX DIV dword ptr [RDI + 0x9c] MOV RDX,qword ptr [RBP + -0x40] MOV EAX,EAX MOV R8D,EAX LEA RDI,[RBP + -0x30] CALL 0x00d0edc0 LEA RDI,[RBP + -0x30] CALL 0x0095dbf0 MOV qword ptr [RBP + -0x38],RAX MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x34] CMP RAX,qword ptr [RBP + -0x38] JNC 0x00d0e743 MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x34] MOV qword ptr [RBP + -0x38],RAX LAB_00d0e743: MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x8] MOV RAX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RAX] MOV RDX,qword ptr [RBP + -0x38] CALL 0x00859350 LEA RDI,[RBP + -0x30] CALL 0x0099d940 MOV RCX,RAX MOV AL,0x1 CMP RCX,0x0 MOV byte ptr [RBP + -0x41],AL JNZ 0x00d0e7a3 MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RAX] ADD RSI,qword ptr [RBP + -0x38] MOV RDX,qword ptr [RBP + -0x18] MOV ECX,0x2 CALL 0x00d0b2d0 MOV RCX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RCX + 0x30] SUB RCX,qword ptr [RBP + -0x38] CMP RAX,RCX SETC AL MOV byte ptr [RBP + -0x41],AL LAB_00d0e7a3: MOV AL,byte ptr [RBP + -0x41] AND AL,0x1 MOVZX EAX,AL CMP EAX,0x0 JZ 0x00d0e7ce MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x40] MOV ECX,0x1 MOV EDX,0x4f1 XOR EAX,EAX MOV R8D,EAX MOV ESI,ECX CALL 0x00ce77b0 LAB_00d0e7ce: MOV RAX,qword ptr [RBP + -0x38] MOV RCX,qword ptr [RBP + -0x8] MOV ECX,dword ptr [RCX + 0x34] CMP RAX,RCX JNC 0x00d0e805 MOV RDI,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RAX + 0x8] ADD RSI,qword ptr [RBP + -0x38] MOV RAX,qword ptr [RBP + -0x8] MOV EAX,dword ptr [RAX + 0x34] MOV EDX,EAX SUB RDX,qword ptr [RBP + -0x38] MOV ECX,0x20 CALL 0x00d077f0 LAB_00d0e805: ADD RSP,0x50 POP RBP RET
/* do_cut_string_complex(Copy_field*) */ void do_cut_string_complex(Copy_field *param_1) { long lVar1; ulong uVar2; bool bVar3; size_t local_40; Well_formed_prefix local_38 [24]; char *local_20; charset_info_st *local_18; Copy_field *local_10; local_10 = param_1; local_18 = (charset_info_st *)(**(code **)(**(long **)(param_1 + 0x38) + 0x348))(); local_20 = (char *)(*(long *)local_10 + (ulong)*(uint *)(local_10 + 0x30)); Well_formed_prefix::Well_formed_prefix (local_38,local_18,*(char **)local_10,local_20, (ulong)*(uint *)(local_10 + 0x34) / (ulong)*(uint *)(local_18 + 0x9c)); local_40 = Well_formed_prefix::length(local_38); if (*(uint *)(local_10 + 0x34) < local_40) { local_40 = (size_t)*(uint *)(local_10 + 0x34); } memcpy(*(void **)(local_10 + 8),*(void **)local_10,local_40); lVar1 = String_copy_status::well_formed_error_pos((String_copy_status *)local_38); bVar3 = true; if (lVar1 == 0) { uVar2 = charset_info_st::scan(local_18,(char *)(*(long *)local_10 + local_40),local_20,2); bVar3 = uVar2 < *(uint *)(local_10 + 0x30) - local_40; } if (bVar3) { Field::set_warning(*(Field **)(local_10 + 0x40),1,0x4f1,1,0); } if (local_40 < *(uint *)(local_10 + 0x34)) { charset_info_st::fill (local_18,(char *)(*(long *)(local_10 + 8) + local_40), *(uint *)(local_10 + 0x34) - local_40,0x20); } return; }
31,068
Item_sum_bit::Item_sum_bit(THD*, Item_sum_bit*)
eloqsql/sql/item_sum.h
Item_sum_bit(THD *thd, Item_sum_bit *item): Item_sum_int(thd, item), reset_bits(item->reset_bits), bits(item->bits), as_window_function(item->as_window_function), num_values_added(item->num_values_added) { if (as_window_function) memcpy(bit_counters, item->bit_counters, sizeof(bit_counters)); }
O3
c
Item_sum_bit::Item_sum_bit(THD*, Item_sum_bit*): pushq %rbp movq %rsp, %rbp pushq %r14 pushq %rbx movq %rdx, %rbx movq %rdi, %r14 callq 0x99650c leaq 0xaafeb3(%rip), %rax # 0x14507b0 movq %rax, (%r14) movq 0x108(%rbx), %rax movq %rax, 0x108(%r14) movq 0x110(%rbx), %rax movq %rax, 0x110(%r14) movb 0x118(%rbx), %al movb %al, 0x118(%r14) movq 0x120(%rbx), %rcx movq %rcx, 0x120(%r14) cmpb $0x1, %al jne 0x9a095a movl $0x128, %eax # imm = 0x128 addq %rax, %r14 addq %rax, %rbx movl $0x200, %edx # imm = 0x200 movq %r14, %rdi movq %rbx, %rsi popq %rbx popq %r14 popq %rbp jmp 0x61b1b0 popq %rbx popq %r14 popq %rbp retq nop
_ZN12Item_sum_bitC2EP3THDPS_: push rbp mov rbp, rsp push r14 push rbx mov rbx, rdx mov r14, rdi call _ZN8Item_sumC2EP3THDPS_; Item_sum::Item_sum(THD *,Item_sum*) lea rax, off_14507B0 mov [r14], rax mov rax, [rbx+108h] mov [r14+108h], rax mov rax, [rbx+110h] mov [r14+110h], rax mov al, [rbx+118h] mov [r14+118h], al mov rcx, [rbx+120h] mov [r14+120h], rcx cmp al, 1 jnz short loc_9A095A mov eax, 128h add r14, rax add rbx, rax mov edx, 200h mov rdi, r14 mov rsi, rbx pop rbx pop r14 pop rbp jmp _memcpy loc_9A095A: pop rbx pop r14 pop rbp retn
void Item_sum_bit::Item_sum_bit(Item_sum_bit *this, THD *a2, Item_sum_bit *a3) { char v4; // al Item_sum::Item_sum(this, a2, a3); *(_QWORD *)this = &off_14507B0; *((_QWORD *)this + 33) = *((_QWORD *)a3 + 33); *((_QWORD *)this + 34) = *((_QWORD *)a3 + 34); v4 = *((_BYTE *)a3 + 280); *((_BYTE *)this + 280) = v4; *((_QWORD *)this + 36) = *((_QWORD *)a3 + 36); if ( v4 == 1 ) memcpy((char *)this + 296, (char *)a3 + 296); }
31,069
PFS_host::aggregate_transactions()
eloqsql/storage/perfschema/pfs_host.cc
void PFS_host::aggregate_transactions() { if (read_instr_class_transactions_stats() == NULL) return; /* Aggregate EVENTS_TRANSACTIONS_SUMMARY_BY_HOST_BY_EVENT_NAME to: - EVENTS_TRANSACTIONS_SUMMARY_GLOBAL_BY_EVENT_NAME */ aggregate_all_transactions(write_instr_class_transactions_stats(), &global_transaction_stat); }
O3
cpp
PFS_host::aggregate_transactions(): pushq %rbp movq %rsp, %rbp movq %rdi, %rax movq 0x20(%rdi), %rdi testq %rdi, %rdi setne %cl andb 0x3(%rax), %cl cmpb $0x1, %cl jne 0x4429a leaq 0x38916c(%rip), %rsi # 0x3cd400 popq %rbp jmp 0x3194c popq %rbp retq
_ZN8PFS_host22aggregate_transactionsEv: push rbp mov rbp, rsp mov rax, rdi mov rdi, [rdi+20h] test rdi, rdi setnz cl and cl, [rax+3] cmp cl, 1 jnz short loc_4429A lea rsi, global_transaction_stat pop rbp jmp _Z26aggregate_all_transactionsP20PFS_transaction_statS0_; aggregate_all_transactions(PFS_transaction_stat *,PFS_transaction_stat *) loc_4429A: pop rbp retn
PFS_host * PFS_host::aggregate_transactions(PFS_host *this) { PFS_host *result; // rax _QWORD *v2; // rdi result = this; v2 = (_QWORD *)*((_QWORD *)this + 4); if ( (*((_BYTE *)result + 3) & (v2 != 0LL)) == 1 ) return (PFS_host *)aggregate_all_transactions(v2, &global_transaction_stat); return result; }
aggregate_transactions: PUSH RBP MOV RBP,RSP MOV RAX,RDI MOV RDI,qword ptr [RDI + 0x20] TEST RDI,RDI SETNZ CL AND CL,byte ptr [RAX + 0x3] CMP CL,0x1 JNZ 0x0014429a LEA RSI,[0x4cd400] POP RBP JMP 0x0013194c LAB_0014429a: POP RBP RET
/* PFS_host::aggregate_transactions() */ void __thiscall PFS_host::aggregate_transactions(PFS_host *this) { if ((*(PFS_transaction_stat **)(this + 0x20) != (PFS_transaction_stat *)0x0 & (byte)this[3]) == 1) { aggregate_all_transactions (*(PFS_transaction_stat **)(this + 0x20), (PFS_transaction_stat *)&global_transaction_stat); return; } return; }
31,070
StableDiffusionGGML::get_first_stage_encoding(ggml_context*, ggml_tensor*)
7CodeWizard[P]stablediffusion/stable-diffusion.cpp
ggml_tensor* get_first_stage_encoding(ggml_context* work_ctx, ggml_tensor* moments) { // ldm.modules.distributions.distributions.DiagonalGaussianDistribution.sample ggml_tensor* latent = ggml_new_tensor_4d(work_ctx, moments->type, moments->ne[0], moments->ne[1], moments->ne[2] / 2, moments->ne[3]); struct ggml_tensor* noise = ggml_dup_tensor(work_ctx, latent); ggml_tensor_set_f32_randn(noise, rng); // noise = load_tensor_from_file(work_ctx, "noise.bin"); { float mean = 0; float logvar = 0; float value = 0; float std_ = 0; for (int i = 0; i < latent->ne[3]; i++) { for (int j = 0; j < latent->ne[2]; j++) { for (int k = 0; k < latent->ne[1]; k++) { for (int l = 0; l < latent->ne[0]; l++) { mean = ggml_tensor_get_f32(moments, l, k, j, i); logvar = ggml_tensor_get_f32(moments, l, k, j + (int)latent->ne[2], i); logvar = std::max(-30.0f, std::min(logvar, 20.0f)); std_ = std::exp(0.5f * logvar); value = mean + std_ * ggml_tensor_get_f32(noise, l, k, j, i); value = value * scale_factor; // printf("%d %d %d %d -> %f\n", i, j, k, l, value); ggml_tensor_set_f32(latent, value, l, k, j, i); } } } } } return latent; }
O0
cpp
StableDiffusionGGML::get_first_stage_encoding(ggml_context*, ggml_tensor*): subq $0x98, %rsp movq %rdi, 0x90(%rsp) movq %rsi, 0x88(%rsp) movq %rdx, 0x80(%rsp) movq 0x90(%rsp), %rax movq %rax, 0x10(%rsp) movq 0x88(%rsp), %rdi movq 0x80(%rsp), %rax movl (%rax), %esi movq 0x10(%rax), %rdx movq 0x18(%rax), %rcx movq 0x20(%rax), %r8 movq %r8, %r9 shrq $0x3f, %r9 addq %r9, %r8 sarq %r8 movq 0x28(%rax), %r9 callq 0x11c960 movq %rax, 0x78(%rsp) movq 0x88(%rsp), %rdi movq 0x78(%rsp), %rsi callq 0x11cfc0 movq 0x10(%rsp), %rsi movq %rax, 0x70(%rsp) movq 0x70(%rsp), %rax movq %rax, 0x18(%rsp) addq $0x8, %rsi leaq 0x60(%rsp), %rdi movq %rdi, 0x20(%rsp) callq 0x3b130 movq 0x18(%rsp), %rdi movq 0x20(%rsp), %rsi callq 0x34910 jmp 0x3e5ff leaq 0x60(%rsp), %rdi callq 0x3b160 xorps %xmm0, %xmm0 movss %xmm0, 0x50(%rsp) xorps %xmm0, %xmm0 movss %xmm0, 0x4c(%rsp) xorps %xmm0, %xmm0 movss %xmm0, 0x48(%rsp) xorps %xmm0, %xmm0 movss %xmm0, 0x44(%rsp) movl $0x0, 0x40(%rsp) movslq 0x40(%rsp), %rax movq 0x78(%rsp), %rcx cmpq 0x28(%rcx), %rax jge 0x3e832 movl $0x0, 0x3c(%rsp) movslq 0x3c(%rsp), %rax movq 0x78(%rsp), %rcx cmpq 0x20(%rcx), %rax jge 0x3e820 movl $0x0, 0x38(%rsp) movslq 0x38(%rsp), %rax movq 0x78(%rsp), %rcx cmpq 0x18(%rcx), %rax jge 0x3e80e movl $0x0, 0x34(%rsp) movslq 0x34(%rsp), %rax movq 0x78(%rsp), %rcx cmpq 0x10(%rcx), %rax jge 0x3e7fc movq 0x80(%rsp), %rdi movl 0x34(%rsp), %esi movl 0x38(%rsp), %edx movl 0x3c(%rsp), %ecx movl 0x40(%rsp), %r8d callq 0x36580 movss %xmm0, 0x50(%rsp) movq 0x80(%rsp), %rdi movl 0x34(%rsp), %esi movl 0x38(%rsp), %edx movl 0x3c(%rsp), %ecx movq 0x78(%rsp), %rax movq 0x20(%rax), %rax addl %eax, %ecx movl 0x40(%rsp), %r8d callq 0x36580 movss %xmm0, 0x4c(%rsp) movss 0x140af8(%rip), %xmm0 # 0x17f1f0 movss %xmm0, 0x30(%rsp) movss 0x140ae6(%rip), %xmm0 # 0x17f1ec movss %xmm0, 0x2c(%rsp) leaq 0x4c(%rsp), %rdi leaq 0x2c(%rsp), %rsi callq 0x83df0 movq %rax, %rsi leaq 0x30(%rsp), %rdi callq 0x83f30 movss (%rax), %xmm0 movss %xmm0, 0x4c(%rsp) movss 0x13e8de(%rip), %xmm0 # 0x17d018 mulss 0x4c(%rsp), %xmm0 callq 0x4bb50 movss %xmm0, 0x44(%rsp) movss 0x50(%rsp), %xmm0 movss %xmm0, 0x8(%rsp) movss 0x44(%rsp), %xmm0 movss %xmm0, 0xc(%rsp) movq 0x70(%rsp), %rdi movl 0x34(%rsp), %esi movl 0x38(%rsp), %edx movl 0x3c(%rsp), %ecx movl 0x40(%rsp), %r8d callq 0x36580 movss 0x8(%rsp), %xmm1 movq 0x10(%rsp), %rax movaps %xmm0, %xmm2 movss 0xc(%rsp), %xmm0 mulss %xmm2, %xmm0 addss %xmm1, %xmm0 movss %xmm0, 0x48(%rsp) movss 0x48(%rsp), %xmm0 mulss 0x1c(%rax), %xmm0 movss %xmm0, 0x48(%rsp) movq 0x78(%rsp), %rdi movss 0x48(%rsp), %xmm0 movl 0x34(%rsp), %esi movl 0x38(%rsp), %edx movl 0x3c(%rsp), %ecx movl 0x40(%rsp), %r8d callq 0x36080 movl 0x34(%rsp), %eax addl $0x1, %eax movl %eax, 0x34(%rsp) jmp 0x3e689 movq %rax, %rcx movl %edx, %eax movq %rcx, 0x58(%rsp) movl %eax, 0x54(%rsp) leaq 0x60(%rsp), %rdi callq 0x3b160 jmp 0x3e83f jmp 0x3e7fe movl 0x38(%rsp), %eax addl $0x1, %eax movl %eax, 0x38(%rsp) jmp 0x3e66d jmp 0x3e810 movl 0x3c(%rsp), %eax addl $0x1, %eax movl %eax, 0x3c(%rsp) jmp 0x3e651 jmp 0x3e822 movl 0x40(%rsp), %eax addl $0x1, %eax movl %eax, 0x40(%rsp) jmp 0x3e635 movq 0x78(%rsp), %rax addq $0x98, %rsp retq movq 0x58(%rsp), %rdi callq 0xbd30 nopl (%rax)
_ZN19StableDiffusionGGML24get_first_stage_encodingEP12ggml_contextP11ggml_tensor: sub rsp, 98h mov [rsp+98h+var_8], rdi mov [rsp+98h+var_10], rsi mov [rsp+98h+var_18], rdx mov rax, [rsp+98h+var_8] mov [rsp+98h+var_88], rax mov rdi, [rsp+98h+var_10] mov rax, [rsp+98h+var_18] mov esi, [rax] mov rdx, [rax+10h] mov rcx, [rax+18h] mov r8, [rax+20h] mov r9, r8 shr r9, 3Fh add r8, r9 sar r8, 1 mov r9, [rax+28h] call ggml_new_tensor_4d mov [rsp+98h+var_20], rax mov rdi, [rsp+98h+var_10] mov rsi, [rsp+98h+var_20] call ggml_dup_tensor mov rsi, [rsp+98h+var_88] mov [rsp+98h+var_28], rax mov rax, [rsp+98h+var_28] mov [rsp+98h+var_80], rax add rsi, 8 lea rdi, [rsp+98h+var_38] mov [rsp+98h+var_78], rdi call _ZNSt10shared_ptrI3RNGEC2ERKS1_; std::shared_ptr<RNG>::shared_ptr(std::shared_ptr<RNG> const&) mov rdi, [rsp+98h+var_80] mov rsi, [rsp+98h+var_78] call _ZL25ggml_tensor_set_f32_randnP11ggml_tensorSt10shared_ptrI3RNGE; ggml_tensor_set_f32_randn(ggml_tensor *,std::shared_ptr<RNG>) jmp short $+2 loc_3E5FF: lea rdi, [rsp+98h+var_38] call _ZNSt10shared_ptrI3RNGED2Ev; std::shared_ptr<RNG>::~shared_ptr() xorps xmm0, xmm0 movss [rsp+98h+var_48], xmm0 xorps xmm0, xmm0 movss [rsp+98h+var_4C], xmm0 xorps xmm0, xmm0 movss [rsp+98h+var_50], xmm0 xorps xmm0, xmm0 movss [rsp+98h+var_54], xmm0 mov [rsp+98h+var_58], 0 loc_3E635: movsxd rax, [rsp+98h+var_58] mov rcx, [rsp+98h+var_20] cmp rax, [rcx+28h] jge loc_3E832 mov [rsp+98h+var_5C], 0 loc_3E651: movsxd rax, [rsp+98h+var_5C] mov rcx, [rsp+98h+var_20] cmp rax, [rcx+20h] jge loc_3E820 mov [rsp+98h+var_60], 0 loc_3E66D: movsxd rax, [rsp+98h+var_60] mov rcx, [rsp+98h+var_20] cmp rax, [rcx+18h] jge loc_3E80E mov [rsp+98h+var_64], 0 loc_3E689: movsxd rax, [rsp+98h+var_64] mov rcx, [rsp+98h+var_20] cmp rax, [rcx+10h] jge loc_3E7FC mov rdi, [rsp+98h+var_18] mov esi, [rsp+98h+var_64] mov edx, [rsp+98h+var_60] mov ecx, [rsp+98h+var_5C] mov r8d, [rsp+98h+var_58] call _ZL19ggml_tensor_get_f32PK11ggml_tensoriiii; ggml_tensor_get_f32(ggml_tensor const*,int,int,int,int) movss [rsp+98h+var_48], xmm0 mov rdi, [rsp+98h+var_18] mov esi, [rsp+98h+var_64] mov edx, [rsp+98h+var_60] mov ecx, [rsp+98h+var_5C] mov rax, [rsp+98h+var_20] mov rax, [rax+20h] add ecx, eax mov r8d, [rsp+98h+var_58] call _ZL19ggml_tensor_get_f32PK11ggml_tensoriiii; ggml_tensor_get_f32(ggml_tensor const*,int,int,int,int) movss [rsp+98h+var_4C], xmm0 movss xmm0, cs:dword_17F1F0 movss [rsp+98h+var_68], xmm0 movss xmm0, cs:dword_17F1EC movss [rsp+98h+var_6C], xmm0 lea rdi, [rsp+98h+var_4C] lea rsi, [rsp+98h+var_6C] call _ZSt3minIfERKT_S2_S2_; std::min<float>(float const&,float const&) mov rsi, rax lea rdi, [rsp+98h+var_68] call _ZSt3maxIfERKT_S2_S2_; std::max<float>(float const&,float const&) movss xmm0, dword ptr [rax] movss [rsp+98h+var_4C], xmm0 movss xmm0, cs:dword_17D018 mulss xmm0, [rsp+98h+var_4C]; float call _ZSt3expf; std::exp(float) movss [rsp+98h+var_54], xmm0 movss xmm0, [rsp+98h+var_48] movss [rsp+98h+var_90], xmm0 movss xmm0, [rsp+98h+var_54] movss [rsp+98h+var_8C], xmm0 mov rdi, [rsp+98h+var_28] mov esi, [rsp+98h+var_64] mov edx, [rsp+98h+var_60] mov ecx, [rsp+98h+var_5C] mov r8d, [rsp+98h+var_58] call _ZL19ggml_tensor_get_f32PK11ggml_tensoriiii; ggml_tensor_get_f32(ggml_tensor const*,int,int,int,int) movss xmm1, [rsp+98h+var_90] mov rax, [rsp+98h+var_88] movaps xmm2, xmm0 movss xmm0, [rsp+98h+var_8C] mulss xmm0, xmm2 addss xmm0, xmm1 movss [rsp+98h+var_50], xmm0 movss xmm0, [rsp+98h+var_50] mulss xmm0, dword ptr [rax+1Ch] movss [rsp+98h+var_50], xmm0 mov rdi, [rsp+98h+var_20] movss xmm0, [rsp+98h+var_50] mov esi, [rsp+98h+var_64] mov edx, [rsp+98h+var_60] mov ecx, [rsp+98h+var_5C] mov r8d, [rsp+98h+var_58] call _ZL19ggml_tensor_set_f32P11ggml_tensorfiiii; ggml_tensor_set_f32(ggml_tensor *,float,int,int,int,int) mov eax, [rsp+98h+var_64] add eax, 1 mov [rsp+98h+var_64], eax jmp loc_3E689 mov rcx, rax mov eax, edx mov [rsp+arg_50], rcx mov [rsp+arg_4C], eax lea rdi, [rsp+arg_58] call _ZNSt10shared_ptrI3RNGED2Ev; std::shared_ptr<RNG>::~shared_ptr() jmp short loc_3E83F loc_3E7FC: jmp short $+2 loc_3E7FE: mov eax, [rsp+98h+var_60] add eax, 1 mov [rsp+98h+var_60], eax jmp loc_3E66D loc_3E80E: jmp short $+2 loc_3E810: mov eax, [rsp+98h+var_5C] add eax, 1 mov [rsp+98h+var_5C], eax jmp loc_3E651 loc_3E820: jmp short $+2 loc_3E822: mov eax, [rsp+98h+var_58] add eax, 1 mov [rsp+98h+var_58], eax jmp loc_3E635 loc_3E832: mov rax, [rsp+98h+var_20] add rsp, 98h retn loc_3E83F: mov rdi, [rsp+arg_50] call __Unwind_Resume
_QWORD * StableDiffusionGGML::get_first_stage_encoding(long long a1, long long a2, _QWORD *a3, double a4) { long long v4; // rax float v5; // xmm0_4 float v7; // [rsp+8h] [rbp-90h] _QWORD *v8; // [rsp+18h] [rbp-80h] int v9; // [rsp+2Ch] [rbp-6Ch] BYREF int v10; // [rsp+30h] [rbp-68h] BYREF int m; // [rsp+34h] [rbp-64h] int k; // [rsp+38h] [rbp-60h] int j; // [rsp+3Ch] [rbp-5Ch] int i; // [rsp+40h] [rbp-58h] float v15; // [rsp+44h] [rbp-54h] float v16; // [rsp+48h] [rbp-50h] float v17; // [rsp+4Ch] [rbp-4Ch] BYREF float f32; // [rsp+50h] [rbp-48h] _BYTE v19[16]; // [rsp+60h] [rbp-38h] BYREF _QWORD *v20; // [rsp+70h] [rbp-28h] _QWORD *v21; // [rsp+78h] [rbp-20h] _QWORD *v22; // [rsp+80h] [rbp-18h] long long v23; // [rsp+88h] [rbp-10h] long long v24; // [rsp+90h] [rbp-8h] v24 = a1; v23 = a2; v22 = a3; v21 = (_QWORD *)ggml_new_tensor_4d(a2, *(unsigned int *)a3, a3[2], a3[3], a3[4] / 2LL, a3[5]); v20 = (_QWORD *)ggml_dup_tensor(a2, v21); v8 = v20; std::shared_ptr<RNG>::shared_ptr((long long)v19, a1 + 8); ggml_tensor_set_f32_randn((long long)v8, (long long)v19, a4); std::shared_ptr<RNG>::~shared_ptr((long long)v19); f32 = 0.0; v17 = 0.0; v16 = 0.0; v15 = 0.0; for ( i = 0; i < v21[5]; ++i ) { for ( j = 0; j < v21[4]; ++j ) { for ( k = 0; k < v21[3]; ++k ) { for ( m = 0; m < v21[2]; ++m ) { f32 = ggml_tensor_get_f32(v22, m, k, j, i); v17 = ggml_tensor_get_f32(v22, m, k, v21[4] + j, i); v10 = -1041235968; v9 = 1101004800; v4 = std::min<float>(&v17, &v9); v17 = *(float *)std::max<float>(&v10, v4); v5 = 0.5 * v17; std::exp(0.5 * v17); v15 = v5; v7 = f32; v16 = (float)(v5 * ggml_tensor_get_f32(v20, m, k, j, i)) + v7; v16 = v16 * *(float *)(a1 + 28); ggml_tensor_set_f32(v21, m, k, j, i, v16); } } } } return v21; }
get_first_stage_encoding: SUB RSP,0x98 MOV qword ptr [RSP + 0x90],RDI MOV qword ptr [RSP + 0x88],RSI MOV qword ptr [RSP + 0x80],RDX MOV RAX,qword ptr [RSP + 0x90] MOV qword ptr [RSP + 0x10],RAX MOV RDI,qword ptr [RSP + 0x88] MOV RAX,qword ptr [RSP + 0x80] MOV ESI,dword ptr [RAX] MOV RDX,qword ptr [RAX + 0x10] MOV RCX,qword ptr [RAX + 0x18] MOV R8,qword ptr [RAX + 0x20] MOV R9,R8 SHR R9,0x3f ADD R8,R9 SAR R8,0x1 MOV R9,qword ptr [RAX + 0x28] CALL 0x0021c960 MOV qword ptr [RSP + 0x78],RAX MOV RDI,qword ptr [RSP + 0x88] MOV RSI,qword ptr [RSP + 0x78] CALL 0x0021cfc0 MOV RSI,qword ptr [RSP + 0x10] MOV qword ptr [RSP + 0x70],RAX MOV RAX,qword ptr [RSP + 0x70] MOV qword ptr [RSP + 0x18],RAX ADD RSI,0x8 LEA RDI,[RSP + 0x60] MOV qword ptr [RSP + 0x20],RDI CALL 0x0013b130 MOV RDI,qword ptr [RSP + 0x18] MOV RSI,qword ptr [RSP + 0x20] LAB_0013e5f8: CALL 0x00134910 LAB_0013e5fd: JMP 0x0013e5ff LAB_0013e5ff: LEA RDI,[RSP + 0x60] CALL 0x0013b160 XORPS XMM0,XMM0 MOVSS dword ptr [RSP + 0x50],XMM0 XORPS XMM0,XMM0 MOVSS dword ptr [RSP + 0x4c],XMM0 XORPS XMM0,XMM0 MOVSS dword ptr [RSP + 0x48],XMM0 XORPS XMM0,XMM0 MOVSS dword ptr [RSP + 0x44],XMM0 MOV dword ptr [RSP + 0x40],0x0 LAB_0013e635: MOVSXD RAX,dword ptr [RSP + 0x40] MOV RCX,qword ptr [RSP + 0x78] CMP RAX,qword ptr [RCX + 0x28] JGE 0x0013e832 MOV dword ptr [RSP + 0x3c],0x0 LAB_0013e651: MOVSXD RAX,dword ptr [RSP + 0x3c] MOV RCX,qword ptr [RSP + 0x78] CMP RAX,qword ptr [RCX + 0x20] JGE 0x0013e820 MOV dword ptr [RSP + 0x38],0x0 LAB_0013e66d: MOVSXD RAX,dword ptr [RSP + 0x38] MOV RCX,qword ptr [RSP + 0x78] CMP RAX,qword ptr [RCX + 0x18] JGE 0x0013e80e MOV dword ptr [RSP + 0x34],0x0 LAB_0013e689: MOVSXD RAX,dword ptr [RSP + 0x34] MOV RCX,qword ptr [RSP + 0x78] CMP RAX,qword ptr [RCX + 0x10] JGE 0x0013e7fc MOV RDI,qword ptr [RSP + 0x80] MOV ESI,dword ptr [RSP + 0x34] MOV EDX,dword ptr [RSP + 0x38] MOV ECX,dword ptr [RSP + 0x3c] MOV R8D,dword ptr [RSP + 0x40] CALL 0x00136580 MOVSS dword ptr [RSP + 0x50],XMM0 MOV RDI,qword ptr [RSP + 0x80] MOV ESI,dword ptr [RSP + 0x34] MOV EDX,dword ptr [RSP + 0x38] MOV ECX,dword ptr [RSP + 0x3c] MOV RAX,qword ptr [RSP + 0x78] MOV RAX,qword ptr [RAX + 0x20] ADD ECX,EAX MOV R8D,dword ptr [RSP + 0x40] CALL 0x00136580 MOVSS dword ptr [RSP + 0x4c],XMM0 MOVSS XMM0,dword ptr [0x0027f1f0] MOVSS dword ptr [RSP + 0x30],XMM0 MOVSS XMM0,dword ptr [0x0027f1ec] MOVSS dword ptr [RSP + 0x2c],XMM0 LEA RDI,[RSP + 0x4c] LEA RSI,[RSP + 0x2c] CALL 0x00183df0 MOV RSI,RAX LEA RDI,[RSP + 0x30] CALL 0x00183f30 MOVSS XMM0,dword ptr [RAX] MOVSS dword ptr [RSP + 0x4c],XMM0 MOVSS XMM0,dword ptr [0x0027d018] MULSS XMM0,dword ptr [RSP + 0x4c] CALL 0x0014bb50 MOVSS dword ptr [RSP + 0x44],XMM0 MOVSS XMM0,dword ptr [RSP + 0x50] MOVSS dword ptr [RSP + 0x8],XMM0 MOVSS XMM0,dword ptr [RSP + 0x44] MOVSS dword ptr [RSP + 0xc],XMM0 MOV RDI,qword ptr [RSP + 0x70] MOV ESI,dword ptr [RSP + 0x34] MOV EDX,dword ptr [RSP + 0x38] MOV ECX,dword ptr [RSP + 0x3c] MOV R8D,dword ptr [RSP + 0x40] CALL 0x00136580 MOVSS XMM1,dword ptr [RSP + 0x8] MOV RAX,qword ptr [RSP + 0x10] MOVAPS XMM2,XMM0 MOVSS XMM0,dword ptr [RSP + 0xc] MULSS XMM0,XMM2 ADDSS XMM0,XMM1 MOVSS dword ptr [RSP + 0x48],XMM0 MOVSS XMM0,dword ptr [RSP + 0x48] MULSS XMM0,dword ptr [RAX + 0x1c] MOVSS dword ptr [RSP + 0x48],XMM0 MOV RDI,qword ptr [RSP + 0x78] MOVSS XMM0,dword ptr [RSP + 0x48] MOV ESI,dword ptr [RSP + 0x34] MOV EDX,dword ptr [RSP + 0x38] MOV ECX,dword ptr [RSP + 0x3c] MOV R8D,dword ptr [RSP + 0x40] CALL 0x00136080 MOV EAX,dword ptr [RSP + 0x34] ADD EAX,0x1 MOV dword ptr [RSP + 0x34],EAX JMP 0x0013e689 LAB_0013e7fc: JMP 0x0013e7fe LAB_0013e7fe: MOV EAX,dword ptr [RSP + 0x38] ADD EAX,0x1 MOV dword ptr [RSP + 0x38],EAX JMP 0x0013e66d LAB_0013e80e: JMP 0x0013e810 LAB_0013e810: MOV EAX,dword ptr [RSP + 0x3c] ADD EAX,0x1 MOV dword ptr [RSP + 0x3c],EAX JMP 0x0013e651 LAB_0013e820: JMP 0x0013e822 LAB_0013e822: MOV EAX,dword ptr [RSP + 0x40] ADD EAX,0x1 MOV dword ptr [RSP + 0x40],EAX JMP 0x0013e635 LAB_0013e832: MOV RAX,qword ptr [RSP + 0x78] ADD RSP,0x98 RET
/* StableDiffusionGGML::get_first_stage_encoding(ggml_context*, ggml_tensor*) */ ggml_tensor * __thiscall StableDiffusionGGML::get_first_stage_encoding (StableDiffusionGGML *this,ggml_context *param_1,ggml_tensor *param_2) { float fVar1; ggml_tensor *pgVar2; float *pfVar3; float fVar4; float fVar5; float local_6c; float local_68; int local_64; int local_60; int local_5c; int local_58; float local_54; float local_50; float local_4c; float local_48; shared_ptr<RNG> local_38 [16]; ggml_tensor *local_28; ggml_tensor *local_20; ggml_tensor *local_18; ggml_context *local_10; StableDiffusionGGML *local_8; local_18 = param_2; local_10 = param_1; local_8 = this; local_20 = (ggml_tensor *) ggml_new_tensor_4d(param_1,*(int4 *)param_2,*(int8 *)(param_2 + 0x10), *(int8 *)(param_2 + 0x18),*(long *)(param_2 + 0x20) / 2, *(int8 *)(param_2 + 0x28)); pgVar2 = (ggml_tensor *)ggml_dup_tensor(local_10,local_20); local_28 = pgVar2; std::shared_ptr<RNG>::shared_ptr(local_38,this + 8); /* try { // try from 0013e5f8 to 0013e5fc has its CatchHandler @ 0013e7e2 */ ggml_tensor_set_f32_randn(pgVar2,local_38); std::shared_ptr<RNG>::~shared_ptr(local_38); local_48 = 0.0; local_4c = 0.0; local_50 = 0.0; local_54 = 0.0; for (local_58 = 0; (long)local_58 < *(long *)(local_20 + 0x28); local_58 = local_58 + 1) { for (local_5c = 0; (long)local_5c < *(long *)(local_20 + 0x20); local_5c = local_5c + 1) { for (local_60 = 0; (long)local_60 < *(long *)(local_20 + 0x18); local_60 = local_60 + 1) { for (local_64 = 0; (long)local_64 < *(long *)(local_20 + 0x10); local_64 = local_64 + 1) { local_48 = (float)ggml_tensor_get_f32(local_18,local_64,local_60,local_5c,local_58); local_4c = (float)ggml_tensor_get_f32(local_18,local_64,local_60, local_5c + (int)*(int8 *)(local_20 + 0x20), local_58); local_68 = DAT_0027f1f0; local_6c = DAT_0027f1ec; pfVar3 = std::min<float>(&local_4c,&local_6c); pfVar3 = std::max<float>(&local_68,pfVar3); local_4c = *pfVar3; fVar4 = (float)std::exp(DAT_0027d018 * local_4c); fVar1 = local_48; local_54 = fVar4; fVar5 = (float)ggml_tensor_get_f32(local_28,local_64,local_60,local_5c,local_58); local_50 = (fVar4 * fVar5 + fVar1) * *(float *)(this + 0x1c); ggml_tensor_set_f32(local_20,local_50,local_64,local_60,local_5c,local_58); } } } } return local_20; }
31,071
StableDiffusionGGML::get_first_stage_encoding(ggml_context*, ggml_tensor*)
7CodeWizard[P]stablediffusion/stable-diffusion.cpp
ggml_tensor* get_first_stage_encoding(ggml_context* work_ctx, ggml_tensor* moments) { // ldm.modules.distributions.distributions.DiagonalGaussianDistribution.sample ggml_tensor* latent = ggml_new_tensor_4d(work_ctx, moments->type, moments->ne[0], moments->ne[1], moments->ne[2] / 2, moments->ne[3]); struct ggml_tensor* noise = ggml_dup_tensor(work_ctx, latent); ggml_tensor_set_f32_randn(noise, rng); // noise = load_tensor_from_file(work_ctx, "noise.bin"); { float mean = 0; float logvar = 0; float value = 0; float std_ = 0; for (int i = 0; i < latent->ne[3]; i++) { for (int j = 0; j < latent->ne[2]; j++) { for (int k = 0; k < latent->ne[1]; k++) { for (int l = 0; l < latent->ne[0]; l++) { mean = ggml_tensor_get_f32(moments, l, k, j, i); logvar = ggml_tensor_get_f32(moments, l, k, j + (int)latent->ne[2], i); logvar = std::max(-30.0f, std::min(logvar, 20.0f)); std_ = std::exp(0.5f * logvar); value = mean + std_ * ggml_tensor_get_f32(noise, l, k, j, i); value = value * scale_factor; // printf("%d %d %d %d -> %f\n", i, j, k, l, value); ggml_tensor_set_f32(latent, value, l, k, j, i); } } } } } return latent; }
O1
cpp
StableDiffusionGGML::get_first_stage_encoding(ggml_context*, ggml_tensor*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x78, %rsp movq %rdx, %r9 movq %rsi, %r12 movq %rdi, %rbx movl (%rdx), %esi movq 0x10(%rdx), %rdx movq 0x18(%r9), %rcx movq 0x20(%r9), %rax movq %rax, %r8 shrq $0x3f, %r8 addq %rax, %r8 sarq %r8 movq %r9, 0x38(%rsp) movq 0x28(%r9), %r9 movq %r12, %rdi callq 0x8eca5 movq %rax, %r15 movq %r12, %rdi movq %rax, %rsi callq 0x902bc movq %rax, %r12 movq 0x8(%rbx), %rbp movq %rbx, 0x40(%rsp) movq 0x10(%rbx), %r14 testq %r14, %r14 je 0x36cf3 movq 0xc02cd(%rip), %rax # 0xf6fb0 cmpb $0x0, (%rax) je 0x36cee incl 0x8(%r14) jmp 0x36cf3 lock incl 0x8(%r14) movq %r12, %rdi callq 0x8e043 movq %rax, %r13 movq (%rbp), %rax leaq 0x60(%rsp), %rdi movq %rbp, %rsi movl %r13d, %edx callq *0x8(%rax) testl %r13d, %r13d je 0x36d36 movl %r13d, %ebx xorl %ebp, %ebp movq 0x60(%rsp), %rax movss (%rax,%rbp,4), %xmm0 movq %r12, %rdi movl %ebp, %esi callq 0x90871 incq %rbp cmpq %rbp, %rbx jne 0x36d1a movq 0x60(%rsp), %rdi testq %rdi, %rdi je 0x36d4d movq 0x70(%rsp), %rsi subq %rdi, %rsi callq 0xa5e0 testq %r14, %r14 je 0x36d5a movq %r14, %rdi callq 0x3859c movq 0x28(%r15), %rax movq %rax, 0x30(%rsp) testq %rax, %rax jle 0x36f11 movq 0x20(%r15), %rax movq %rax, 0x8(%rsp) cltq movq %rax, 0x28(%rsp) xorl %r13d, %r13d cmpq $0x0, 0x8(%rsp) jle 0x36f03 movq 0x18(%r15), %rax movq %rax, 0x18(%rsp) movq 0x28(%rsp), %rax movq %rax, 0x10(%rsp) xorl %ebp, %ebp cmpq $0x0, 0x18(%rsp) jle 0x36ef0 movq 0x10(%r15), %rax movq %rax, 0x20(%rsp) xorl %r14d, %r14d cmpq $0x0, 0x20(%rsp) jle 0x36ee2 movq 0x38(%rsp), %rdx cmpq $0x4, 0x30(%rdx) jne 0x36f2d movq 0x40(%rdx), %rsi movq 0x30(%r12), %rax movq %rax, 0x50(%rsp) movq 0x48(%rdx), %rax imulq %r13, %rax movq 0x10(%rsp), %rdi imulq %rsi, %rdi addq %rax, %rdi movq 0x38(%rdx), %rcx imulq %r14, %rcx addq 0x118(%rdx), %rcx addq %rcx, %rdi movq %rdi, 0x48(%rsp) imulq %rbp, %rsi addq %rax, %rsi addq %rcx, %rsi movq %rsi, 0x58(%rsp) xorl %ebx, %ebx movq 0x58(%rsp), %rax movss (%rax,%rbx,4), %xmm0 movss %xmm0, 0x4(%rsp) movss 0x86aba(%rip), %xmm0 # 0xbd8f0 movq 0x48(%rsp), %rax minss (%rax,%rbx,4), %xmm0 maxss 0x86aac(%rip), %xmm0 # 0xbd8f4 mulss 0x841c0(%rip), %xmm0 # 0xbb010 callq 0xaa50 cmpq $0x4, 0x50(%rsp) jne 0x36f23 cmpq $0x4, 0x30(%r15) jne 0x36f28 movq 0x48(%r12), %rax imulq %r13, %rax movq 0x40(%r12), %rcx imulq %rbp, %rcx addq %rax, %rcx movq 0x38(%r12), %rax imulq %r14, %rax addq %rcx, %rax addq 0x118(%r12), %rax mulss (%rax,%rbx,4), %xmm0 addss 0x4(%rsp), %xmm0 movq 0x40(%rsp), %rax mulss 0x1c(%rax), %xmm0 movq 0x48(%r15), %rax imulq %r13, %rax movq 0x40(%r15), %rcx imulq %rbp, %rcx addq %rax, %rcx movq 0x38(%r15), %rax imulq %r14, %rax addq %rcx, %rax addq 0x118(%r15), %rax movss %xmm0, (%rax,%rbx,4) incq %rbx cmpq %rbx, 0x20(%rsp) jne 0x36e1e incq %r14 cmpq 0x18(%rsp), %r14 jne 0x36db8 incq %rbp incq 0x10(%rsp) cmpq 0x8(%rsp), %rbp jne 0x36da0 incq %r13 cmpq 0x30(%rsp), %r13 jne 0x36d7f movq %r15, %rax addq $0x78, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0xb0ae callq 0xb0f1 callq 0xb06b movq %rax, %rbx jmp 0x36f51 movq %rax, %rbx movq 0x60(%rsp), %rdi testq %rdi, %rdi je 0x36f51 movq 0x70(%rsp), %rsi subq %rdi, %rsi callq 0xa5e0 testq %r14, %r14 je 0x36f5e movq %r14, %rdi callq 0x3859c movq %rbx, %rdi callq 0xaae0
_ZN19StableDiffusionGGML24get_first_stage_encodingEP12ggml_contextP11ggml_tensor: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 78h mov r9, rdx mov r12, rsi mov rbx, rdi mov esi, [rdx] mov rdx, [rdx+10h] mov rcx, [r9+18h] mov rax, [r9+20h] mov r8, rax shr r8, 3Fh add r8, rax sar r8, 1 mov [rsp+0A8h+var_70], r9 mov r9, [r9+28h] mov rdi, r12 call ggml_new_tensor_4d mov r15, rax mov rdi, r12 mov rsi, rax call ggml_dup_tensor mov r12, rax mov rbp, [rbx+8] mov [rsp+0A8h+var_68], rbx mov r14, [rbx+10h] test r14, r14 jz short loc_36CF3 mov rax, cs:__libc_single_threaded_ptr cmp byte ptr [rax], 0 jz short loc_36CEE inc dword ptr [r14+8] jmp short loc_36CF3 loc_36CEE: lock inc dword ptr [r14+8] loc_36CF3: mov rdi, r12 call ggml_nelements mov r13, rax mov rax, [rbp+0] lea rdi, [rsp+0A8h+var_48] mov rsi, rbp mov edx, r13d call qword ptr [rax+8] test r13d, r13d jz short loc_36D36 mov ebx, r13d xor ebp, ebp loc_36D1A: mov rax, [rsp+0A8h+var_48] movss xmm0, dword ptr [rax+rbp*4] mov rdi, r12 mov esi, ebp call ggml_set_f32_1d inc rbp cmp rbx, rbp jnz short loc_36D1A loc_36D36: mov rdi, [rsp+0A8h+var_48]; void * test rdi, rdi jz short loc_36D4D mov rsi, [rsp+0A8h+var_38] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_36D4D: test r14, r14 jz short loc_36D5A mov rdi, r14 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_36D5A: mov rax, [r15+28h] mov [rsp+0A8h+var_78], rax test rax, rax jle loc_36F11 mov rax, [r15+20h] mov [rsp+0A8h+var_A0], rax cdqe mov [rsp+0A8h+var_80], rax xor r13d, r13d loc_36D7F: cmp [rsp+0A8h+var_A0], 0 jle loc_36F03 mov rax, [r15+18h] mov [rsp+0A8h+var_90], rax mov rax, [rsp+0A8h+var_80] mov [rsp+0A8h+var_98], rax xor ebp, ebp loc_36DA0: cmp [rsp+0A8h+var_90], 0 jle loc_36EF0 mov rax, [r15+10h] mov [rsp+0A8h+var_88], rax xor r14d, r14d loc_36DB8: cmp [rsp+0A8h+var_88], 0 jle loc_36EE2 mov rdx, [rsp+0A8h+var_70] cmp qword ptr [rdx+30h], 4 jnz loc_36F2D mov rsi, [rdx+40h] mov rax, [r12+30h] mov [rsp+0A8h+var_58], rax mov rax, [rdx+48h] imul rax, r13 mov rdi, [rsp+0A8h+var_98] imul rdi, rsi add rdi, rax mov rcx, [rdx+38h] imul rcx, r14 add rcx, [rdx+118h] add rdi, rcx mov [rsp+0A8h+var_60], rdi imul rsi, rbp add rsi, rax add rsi, rcx mov [rsp+0A8h+var_50], rsi xor ebx, ebx loc_36E1E: mov rax, [rsp+0A8h+var_50] movss xmm0, dword ptr [rax+rbx*4] movss [rsp+0A8h+var_A4], xmm0 movss xmm0, cs:dword_BD8F0 mov rax, [rsp+0A8h+var_60] minss xmm0, dword ptr [rax+rbx*4] maxss xmm0, cs:dword_BD8F4 mulss xmm0, cs:dword_BB010 call _expf cmp [rsp+0A8h+var_58], 4 jnz loc_36F23 cmp qword ptr [r15+30h], 4 jnz loc_36F28 mov rax, [r12+48h] imul rax, r13 mov rcx, [r12+40h] imul rcx, rbp add rcx, rax mov rax, [r12+38h] imul rax, r14 add rax, rcx add rax, [r12+118h] mulss xmm0, dword ptr [rax+rbx*4] addss xmm0, [rsp+0A8h+var_A4] mov rax, [rsp+0A8h+var_68] mulss xmm0, dword ptr [rax+1Ch] mov rax, [r15+48h] imul rax, r13 mov rcx, [r15+40h] imul rcx, rbp add rcx, rax mov rax, [r15+38h] imul rax, r14 add rax, rcx add rax, [r15+118h] movss dword ptr [rax+rbx*4], xmm0 inc rbx cmp [rsp+0A8h+var_88], rbx jnz loc_36E1E loc_36EE2: inc r14 cmp r14, [rsp+0A8h+var_90] jnz loc_36DB8 loc_36EF0: inc rbp inc [rsp+0A8h+var_98] cmp rbp, [rsp+0A8h+var_A0] jnz loc_36DA0 loc_36F03: inc r13 cmp r13, [rsp+0A8h+var_78] jnz loc_36D7F loc_36F11: mov rax, r15 add rsp, 78h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_36F23: call _ZN19StableDiffusionGGML24get_first_stage_encodingEP12ggml_contextP11ggml_tensor_cold_2; StableDiffusionGGML::get_first_stage_encoding(ggml_context *,ggml_tensor *) [clone] loc_36F28: call _ZN19StableDiffusionGGML24get_first_stage_encodingEP12ggml_contextP11ggml_tensor_cold_3; StableDiffusionGGML::get_first_stage_encoding(ggml_context *,ggml_tensor *) [clone] loc_36F2D: call _ZN19StableDiffusionGGML24get_first_stage_encodingEP12ggml_contextP11ggml_tensor_cold_1; StableDiffusionGGML::get_first_stage_encoding(ggml_context *,ggml_tensor *) [clone] mov rbx, rax jmp short loc_36F51 mov rbx, rax mov rdi, [rsp+0A8h+var_48]; void * test rdi, rdi jz short loc_36F51 mov rsi, [rsp+0A8h+var_38] sub rsi, rdi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_36F51: test r14, r14 jz short loc_36F5E mov rdi, r14 call _ZNSt16_Sp_counted_baseILN9__gnu_cxx12_Lock_policyE2EE10_M_releaseEv; std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(void) loc_36F5E: mov rdi, rbx call __Unwind_Resume
_QWORD * StableDiffusionGGML::get_first_stage_encoding(long long a1, long long a2, _QWORD *a3) { _QWORD *v3; // r15 _QWORD *v4; // r12 long long v5; // rbp long long v6; // r14 unsigned int v7; // r13d long long i; // rbp long long j; // r13 long long k; // rbp long long m; // r14 long long v12; // rsi long long v13; // rax long long v14; // rcx long long n; // rbx float v16; // xmm0_4 float v18; // [rsp+4h] [rbp-A4h] long long v19; // [rsp+8h] [rbp-A0h] long long v20; // [rsp+10h] [rbp-98h] long long v21; // [rsp+18h] [rbp-90h] long long v22; // [rsp+20h] [rbp-88h] long long v23; // [rsp+30h] [rbp-78h] long long v25; // [rsp+48h] [rbp-60h] long long v26; // [rsp+50h] [rbp-58h] long long v27; // [rsp+58h] [rbp-50h] void *v28[9]; // [rsp+60h] [rbp-48h] BYREF v3 = (_QWORD *)ggml_new_tensor_4d(a2, *(unsigned int *)a3, a3[2], a3[3], a3[4] / 2LL, a3[5]); v4 = (_QWORD *)ggml_dup_tensor(a2, v3); v5 = *(_QWORD *)(a1 + 8); v6 = *(_QWORD *)(a1 + 16); if ( v6 ) { if ( _libc_single_threaded ) ++*(_DWORD *)(v6 + 8); else _InterlockedIncrement((volatile signed __int32 *)(v6 + 8)); } v7 = ggml_nelements(v4); (*(void ( **)(void **, long long, _QWORD))(*(_QWORD *)v5 + 8LL))(v28, v5, v7); if ( v7 ) { for ( i = 0LL; i != v7; ++i ) ggml_set_f32_1d(v4, (unsigned int)i, *((float *)v28[0] + i)); } if ( v28[0] ) operator delete(v28[0], (char *)v28[2] - (char *)v28[0]); if ( v6 ) std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release(v6); v23 = v3[5]; if ( v23 > 0 ) { v19 = v3[4]; for ( j = 0LL; j != v23; ++j ) { if ( v19 > 0 ) { v21 = v3[3]; v20 = (int)v19; for ( k = 0LL; k != v19; ++k ) { if ( v21 > 0 ) { v22 = v3[2]; for ( m = 0LL; m != v21; ++m ) { if ( v22 > 0 ) { if ( a3[6] != 4LL ) StableDiffusionGGML::get_first_stage_encoding(); v12 = a3[8]; v26 = v4[6]; v13 = j * a3[9]; v14 = a3[35] + m * a3[7]; v25 = v14 + v13 + v12 * v20; v27 = v14 + v13 + k * v12; for ( n = 0LL; n != v22; ++n ) { v18 = *(float *)(v27 + 4 * n); v16 = fmaxf(fminf(20.0, *(float *)(v25 + 4 * n)), -30.0) * 0.5; expf(v16); if ( v26 != 4 ) StableDiffusionGGML::get_first_stage_encoding(); if ( v3[6] != 4LL ) StableDiffusionGGML::get_first_stage_encoding(); *(float *)(v3[35] + j * v3[9] + k * v3[8] + m * v3[7] + 4 * n) = (float)((float)(v16 * *(float *)(v4[35] + j * v4[9] + k * v4[8] + m * v4[7] + 4 * n)) + v18) * *(float *)(a1 + 28); } } } } ++v20; } } } } return v3; }
31,072
StableDiffusionGGML::get_first_stage_encoding(ggml_context*, ggml_tensor*)
7CodeWizard[P]stablediffusion/stable-diffusion.cpp
ggml_tensor* get_first_stage_encoding(ggml_context* work_ctx, ggml_tensor* moments) { // ldm.modules.distributions.distributions.DiagonalGaussianDistribution.sample ggml_tensor* latent = ggml_new_tensor_4d(work_ctx, moments->type, moments->ne[0], moments->ne[1], moments->ne[2] / 2, moments->ne[3]); struct ggml_tensor* noise = ggml_dup_tensor(work_ctx, latent); ggml_tensor_set_f32_randn(noise, rng); // noise = load_tensor_from_file(work_ctx, "noise.bin"); { float mean = 0; float logvar = 0; float value = 0; float std_ = 0; for (int i = 0; i < latent->ne[3]; i++) { for (int j = 0; j < latent->ne[2]; j++) { for (int k = 0; k < latent->ne[1]; k++) { for (int l = 0; l < latent->ne[0]; l++) { mean = ggml_tensor_get_f32(moments, l, k, j, i); logvar = ggml_tensor_get_f32(moments, l, k, j + (int)latent->ne[2], i); logvar = std::max(-30.0f, std::min(logvar, 20.0f)); std_ = std::exp(0.5f * logvar); value = mean + std_ * ggml_tensor_get_f32(noise, l, k, j, i); value = value * scale_factor; // printf("%d %d %d %d -> %f\n", i, j, k, l, value); ggml_tensor_set_f32(latent, value, l, k, j, i); } } } } } return latent; }
O2
cpp
StableDiffusionGGML::get_first_stage_encoding(ggml_context*, ggml_tensor*): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x28, %rsp movq %rdx, %rbx movq %rsi, %r14 movq %rdi, %r12 movl (%rdx), %esi movq 0x10(%rdx), %r8 movq 0x18(%rdx), %rcx movq 0x20(%rdx), %rax pushq $0x2 popq %rdi cqto idivq %rdi movq 0x28(%rbx), %r9 movq %r14, %rdi movq %r8, %rdx movq %rax, %r8 callq 0x68667 movq %rax, %r15 movq %r14, %rdi movq %rax, %rsi callq 0x68a65 movq %rax, %r13 movq %r12, 0x10(%rsp) leaq 0x8(%r12), %rsi leaq 0x18(%rsp), %r14 movq %r14, %rdi callq 0x35e32 movq %r13, 0x8(%rsp) movq %r13, %rdi movq %r14, %rsi callq 0x1c205 leaq 0x20(%rsp), %rdi callq 0x21a50 xorl %r13d, %r13d cmpq %r13, 0x28(%r15) jle 0x20738 xorl %ebp, %ebp cmpq %rbp, 0x20(%r15) jle 0x20730 xorl %r14d, %r14d cmpq %r14, 0x18(%r15) jle 0x20728 xorl %r12d, %r12d cmpq %r12, 0x10(%r15) jle 0x20720 movq %rbx, %rdi movl %r12d, %esi movl %r14d, %edx movl %ebp, %ecx movl %r13d, %r8d callq 0x1d0a4 movss %xmm0, 0x4(%rsp) movl 0x20(%r15), %ecx addl %ebp, %ecx movq %rbx, %rdi movl %r12d, %esi movl %r14d, %edx movl %r13d, %r8d callq 0x1d0a4 movss 0x79172(%rip), %xmm1 # 0x9982c minss %xmm0, %xmm1 maxss 0x7916a(%rip), %xmm1 # 0x99830 mulss 0x7693e(%rip), %xmm1 # 0x9700c movaps %xmm1, %xmm0 callq 0xaa30 movss %xmm0, (%rsp) movq 0x8(%rsp), %rdi movl %r12d, %esi movl %r14d, %edx movl %ebp, %ecx movl %r13d, %r8d callq 0x1d0a4 mulss (%rsp), %xmm0 addss 0x4(%rsp), %xmm0 movq 0x10(%rsp), %rax mulss 0x1c(%rax), %xmm0 movq %r15, %rdi movl %r12d, %esi movl %r14d, %edx movl %ebp, %ecx movl %r13d, %r8d callq 0x1cdf4 incq %r12 jmp 0x20678 incq %r14 jmp 0x2066b incq %rbp jmp 0x2065e incq %r13 jmp 0x20652 movq %r15, %rax addq $0x28, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movq %rax, %rbx leaq 0x20(%rsp), %rdi callq 0x21a50 movq %rbx, %rdi callq 0xaab0 nop
_ZN19StableDiffusionGGML24get_first_stage_encodingEP12ggml_contextP11ggml_tensor: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 28h mov rbx, rdx mov r14, rsi mov r12, rdi mov esi, [rdx] mov r8, [rdx+10h] mov rcx, [rdx+18h] mov rax, [rdx+20h] push 2 pop rdi cqo idiv rdi mov r9, [rbx+28h] mov rdi, r14 mov rdx, r8 mov r8, rax call ggml_new_tensor_4d mov r15, rax mov rdi, r14 mov rsi, rax call ggml_dup_tensor mov r13, rax mov [rsp+58h+var_48], r12 lea rsi, [r12+8] lea r14, [rsp+58h+var_40] mov rdi, r14 call _ZNSt12__shared_ptrI3RNGLN9__gnu_cxx12_Lock_policyE2EEC2ERKS3_; std::__shared_ptr<RNG,(__gnu_cxx::_Lock_policy)2>::__shared_ptr(std::__shared_ptr<RNG,(__gnu_cxx::_Lock_policy)2> const&) mov [rsp+58h+var_50], r13 mov rdi, r13 mov rsi, r14 call _ZL25ggml_tensor_set_f32_randnP11ggml_tensorSt10shared_ptrI3RNGE; ggml_tensor_set_f32_randn(ggml_tensor *,std::shared_ptr<RNG>) lea rdi, [rsp+58h+var_38] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() xor r13d, r13d loc_20652: cmp [r15+28h], r13 jle loc_20738 xor ebp, ebp loc_2065E: cmp [r15+20h], rbp jle loc_20730 xor r14d, r14d loc_2066B: cmp [r15+18h], r14 jle loc_20728 xor r12d, r12d loc_20678: cmp [r15+10h], r12 jle loc_20720 mov rdi, rbx mov esi, r12d mov edx, r14d mov ecx, ebp mov r8d, r13d call _ZL19ggml_tensor_get_f32PK11ggml_tensoriiii; ggml_tensor_get_f32(ggml_tensor const*,int,int,int,int) movss [rsp+58h+var_54], xmm0 mov ecx, [r15+20h] add ecx, ebp mov rdi, rbx mov esi, r12d mov edx, r14d mov r8d, r13d call _ZL19ggml_tensor_get_f32PK11ggml_tensoriiii; ggml_tensor_get_f32(ggml_tensor const*,int,int,int,int) movss xmm1, cs:dword_9982C minss xmm1, xmm0 maxss xmm1, cs:dword_99830 mulss xmm1, cs:dword_9700C movaps xmm0, xmm1 call _expf movss [rsp+58h+var_58], xmm0 mov rdi, [rsp+58h+var_50] mov esi, r12d mov edx, r14d mov ecx, ebp mov r8d, r13d call _ZL19ggml_tensor_get_f32PK11ggml_tensoriiii; ggml_tensor_get_f32(ggml_tensor const*,int,int,int,int) mulss xmm0, [rsp+58h+var_58] addss xmm0, [rsp+58h+var_54] mov rax, [rsp+58h+var_48] mulss xmm0, dword ptr [rax+1Ch] mov rdi, r15 mov esi, r12d mov edx, r14d mov ecx, ebp mov r8d, r13d call _ZL19ggml_tensor_set_f32P11ggml_tensorfiiii; ggml_tensor_set_f32(ggml_tensor *,float,int,int,int,int) inc r12 jmp loc_20678 loc_20720: inc r14 jmp loc_2066B loc_20728: inc rbp jmp loc_2065E loc_20730: inc r13 jmp loc_20652 loc_20738: mov rax, r15 add rsp, 28h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn mov rbx, rax lea rdi, [rsp+arg_18] call _ZNSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EED2Ev; std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count() mov rdi, rbx call __Unwind_Resume
long long StableDiffusionGGML::get_first_stage_encoding(long long a1, long long a2, _QWORD *a3, double a4) { long long v5; // r15 long long v6; // r13 long long i; // r13 long long j; // rbp long long k; // r14 long long m; // r12 double v11; // xmm1_8 float v12; // xmm0_4 float v14; // [rsp+0h] [rbp-58h] float f32; // [rsp+4h] [rbp-54h] _QWORD *v16; // [rsp+8h] [rbp-50h] long long v17; // [rsp+18h] [rbp-40h] BYREF _BYTE v18[56]; // [rsp+20h] [rbp-38h] BYREF v5 = ggml_new_tensor_4d(a2, *(unsigned int *)a3, a3[2], a3[3], a3[4] / 2LL, a3[5]); v6 = ggml_dup_tensor(a2, v5); std::__shared_ptr<RNG,(__gnu_cxx::_Lock_policy)2>::__shared_ptr(&v17, a1 + 8); v16 = (_QWORD *)v6; ggml_tensor_set_f32_randn(v6, &v17, a4); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(v18); for ( i = 0LL; *(_QWORD *)(v5 + 40) > i; ++i ) { for ( j = 0LL; *(_QWORD *)(v5 + 32) > j; ++j ) { for ( k = 0LL; *(_QWORD *)(v5 + 24) > k; ++k ) { for ( m = 0LL; *(_QWORD *)(v5 + 16) > m; ++m ) { f32 = ggml_tensor_get_f32(a3, m, k, j, i); HIDWORD(v11) = 0; *(float *)&v11 = fmaxf(fminf(20.0, ggml_tensor_get_f32(a3, m, k, j + *(_DWORD *)(v5 + 32), i)), -30.0) * 0.5; v14 = expf(v11); v12 = ggml_tensor_get_f32(v16, m, k, j, i); ggml_tensor_set_f32((_QWORD *)v5, m, k, j, i, (float)((float)(v12 * v14) + f32) * *(float *)(a1 + 28)); } } } } return v5; }
get_first_stage_encoding: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x28 MOV RBX,RDX MOV R14,RSI MOV R12,RDI MOV ESI,dword ptr [RDX] MOV R8,qword ptr [RDX + 0x10] MOV RCX,qword ptr [RDX + 0x18] MOV RAX,qword ptr [RDX + 0x20] PUSH 0x2 POP RDI CQO IDIV RDI MOV R9,qword ptr [RBX + 0x28] MOV RDI,R14 MOV RDX,R8 MOV R8,RAX CALL 0x00168667 MOV R15,RAX MOV RDI,R14 MOV RSI,RAX CALL 0x00168a65 MOV R13,RAX MOV qword ptr [RSP + 0x10],R12 LEA RSI,[R12 + 0x8] LEA R14,[RSP + 0x18] MOV RDI,R14 CALL 0x00135e32 LAB_00120635: MOV qword ptr [RSP + 0x8],R13 MOV RDI,R13 MOV RSI,R14 CALL 0x0011c205 LAB_00120645: LEA RDI,[RSP + 0x20] CALL 0x00121a50 XOR R13D,R13D LAB_00120652: CMP qword ptr [R15 + 0x28],R13 JLE 0x00120738 XOR EBP,EBP LAB_0012065e: CMP qword ptr [R15 + 0x20],RBP JLE 0x00120730 XOR R14D,R14D LAB_0012066b: CMP qword ptr [R15 + 0x18],R14 JLE 0x00120728 XOR R12D,R12D LAB_00120678: CMP qword ptr [R15 + 0x10],R12 JLE 0x00120720 MOV RDI,RBX MOV ESI,R12D MOV EDX,R14D MOV ECX,EBP MOV R8D,R13D CALL 0x0011d0a4 MOVSS dword ptr [RSP + 0x4],XMM0 MOV ECX,dword ptr [R15 + 0x20] ADD ECX,EBP MOV RDI,RBX MOV ESI,R12D MOV EDX,R14D MOV R8D,R13D CALL 0x0011d0a4 MOVSS XMM1,dword ptr [0x0019982c] MINSS XMM1,XMM0 MAXSS XMM1,dword ptr [0x00199830] MULSS XMM1,dword ptr [0x0019700c] MOVAPS XMM0,XMM1 CALL 0x0010aa30 MOVSS dword ptr [RSP],XMM0 MOV RDI,qword ptr [RSP + 0x8] MOV ESI,R12D MOV EDX,R14D MOV ECX,EBP MOV R8D,R13D CALL 0x0011d0a4 MULSS XMM0,dword ptr [RSP] ADDSS XMM0,dword ptr [RSP + 0x4] MOV RAX,qword ptr [RSP + 0x10] MULSS XMM0,dword ptr [RAX + 0x1c] MOV RDI,R15 MOV ESI,R12D MOV EDX,R14D MOV ECX,EBP MOV R8D,R13D CALL 0x0011cdf4 INC R12 JMP 0x00120678 LAB_00120720: INC R14 JMP 0x0012066b LAB_00120728: INC RBP JMP 0x0012065e LAB_00120730: INC R13 JMP 0x00120652 LAB_00120738: MOV RAX,R15 ADD RSP,0x28 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* StableDiffusionGGML::get_first_stage_encoding(ggml_context*, ggml_tensor*) */ ggml_tensor * __thiscall StableDiffusionGGML::get_first_stage_encoding (StableDiffusionGGML *this,ggml_context *param_1,ggml_tensor *param_2) { ggml_tensor *pgVar1; ggml_tensor *pgVar2; int iVar3; long lVar4; int iVar5; long lVar6; int iVar7; long lVar8; int iVar9; long lVar10; float fVar11; float fVar12; float fVar13; __shared_ptr<RNG,(__gnu_cxx::_Lock_policy)2> local_40 [8]; __shared_count<(__gnu_cxx::_Lock_policy)2> local_38 [8]; pgVar1 = (ggml_tensor *) ggml_new_tensor_4d(param_1,*(int4 *)param_2,*(int8 *)(param_2 + 0x10), *(int8 *)(param_2 + 0x18),*(long *)(param_2 + 0x20) / 2, *(int8 *)(param_2 + 0x28)); pgVar2 = (ggml_tensor *)ggml_dup_tensor(param_1,pgVar1); std::__shared_ptr<RNG,(__gnu_cxx::_Lock_policy)2>::__shared_ptr (local_40,(__shared_ptr *)(this + 8)); /* try { // try from 00120635 to 00120644 has its CatchHandler @ 0012074a */ ggml_tensor_set_f32_randn(pgVar2,local_40); std::__shared_count<(__gnu_cxx::_Lock_policy)2>::~__shared_count(local_38); for (lVar8 = 0; lVar8 < *(long *)(pgVar1 + 0x28); lVar8 = lVar8 + 1) { for (lVar4 = 0; lVar4 < *(long *)(pgVar1 + 0x20); lVar4 = lVar4 + 1) { for (lVar10 = 0; lVar10 < *(long *)(pgVar1 + 0x18); lVar10 = lVar10 + 1) { for (lVar6 = 0; lVar6 < *(long *)(pgVar1 + 0x10); lVar6 = lVar6 + 1) { iVar5 = (int)lVar6; iVar9 = (int)lVar10; iVar3 = (int)lVar4; iVar7 = (int)lVar8; fVar11 = (float)ggml_tensor_get_f32(param_2,iVar5,iVar9,iVar3,iVar7); fVar12 = (float)ggml_tensor_get_f32(param_2,iVar5,iVar9,*(int *)(pgVar1 + 0x20) + iVar3, iVar7); fVar13 = DAT_0019982c; if (fVar12 <= DAT_0019982c) { fVar13 = fVar12; } if (fVar13 <= DAT_00199830) { fVar13 = DAT_00199830; } fVar13 = expf(fVar13 * DAT_0019700c); fVar12 = (float)ggml_tensor_get_f32(pgVar2,iVar5,iVar9,iVar3,iVar7); ggml_tensor_set_f32(pgVar1,(fVar12 * fVar13 + fVar11) * *(float *)(this + 0x1c),iVar5, iVar9,iVar3,iVar7); } } } } return pgVar1; }
31,073
my_collation_get_by_name
eloqsql/mysys/charset.c
CHARSET_INFO * my_collation_get_by_name(MY_CHARSET_LOADER *loader, const char *name, myf flags) { uint cs_number; CHARSET_INFO *cs; my_pthread_once(&charsets_initialized, init_available_charsets); cs_number= get_collation_number(name,flags); my_charset_loader_init_mysys(loader); cs= cs_number ? get_internal_charset(loader, cs_number, flags) : NULL; if (!cs && (flags & MY_WME)) { char index_file[FN_REFLEN + sizeof(MY_CHARSET_INDEX)]; strmov(get_charsets_dir(index_file),MY_CHARSET_INDEX); my_error(EE_UNKNOWN_COLLATION, MYF(ME_BELL), name, index_file); } return cs; }
O0
c
my_collation_get_by_name: pushq %rbp movq %rsp, %rbp subq $0x260, %rsp # imm = 0x260 movq %fs:0x28, %rax movq %rax, -0x8(%rbp) movq %rdi, -0x228(%rbp) movq %rsi, -0x230(%rbp) movq %rdx, -0x238(%rbp) leaq 0x364240(%rip), %rdi # 0x38e6e4 leaq -0x90b(%rip), %rsi # 0x29ba0 callq 0x242a0 movq -0x230(%rbp), %rdi movq -0x238(%rbp), %rsi callq 0x29af0 movl %eax, -0x23c(%rbp) movq -0x228(%rbp), %rdi callq 0x291c0 cmpl $0x0, -0x23c(%rbp) je 0x2a500 movq -0x228(%rbp), %rdi movl -0x23c(%rbp), %esi movq -0x238(%rbp), %rdx callq 0x2a1f0 movq %rax, -0x250(%rbp) jmp 0x2a50b xorl %eax, %eax movq %rax, -0x250(%rbp) jmp 0x2a50b movq -0x250(%rbp), %rax movq %rax, -0x248(%rbp) cmpq $0x0, -0x248(%rbp) jne 0x2a56e movq -0x238(%rbp), %rax andq $0x10, %rax cmpq $0x0, %rax je 0x2a56e leaq -0x220(%rbp), %rdi callq 0x29860 movq %rax, %rdi leaq 0x4f376(%rip), %rsi # 0x798c0 callq 0x242f0 movq -0x230(%rbp), %rdx leaq -0x220(%rbp), %rcx movl $0x1c, %edi movl $0x4, %esi movb $0x0, %al callq 0x2e6e0 movq -0x248(%rbp), %rax movq %rax, -0x258(%rbp) movq %fs:0x28, %rax movq -0x8(%rbp), %rcx cmpq %rcx, %rax jne 0x2a59e movq -0x258(%rbp), %rax addq $0x260, %rsp # imm = 0x260 popq %rbp retq callq 0x24320 nopw %cs:(%rax,%rax)
my_collation_get_by_name: push rbp mov rbp, rsp sub rsp, 260h mov rax, fs:28h mov [rbp+var_8], rax mov [rbp+var_228], rdi mov [rbp+var_230], rsi mov [rbp+var_238], rdx lea rdi, charsets_initialized lea rsi, init_available_charsets call _pthread_once mov rdi, [rbp+var_230] mov rsi, [rbp+var_238] call get_collation_number mov [rbp+var_23C], eax mov rdi, [rbp+var_228] call my_charset_loader_init_mysys cmp [rbp+var_23C], 0 jz short loc_2A500 mov rdi, [rbp+var_228] mov esi, [rbp+var_23C] mov rdx, [rbp+var_238] call get_internal_charset mov [rbp+var_250], rax jmp short loc_2A50B loc_2A500: xor eax, eax mov [rbp+var_250], rax jmp short $+2 loc_2A50B: mov rax, [rbp+var_250] mov [rbp+var_248], rax cmp [rbp+var_248], 0 jnz short loc_2A56E mov rax, [rbp+var_238] and rax, 10h cmp rax, 0 jz short loc_2A56E lea rdi, [rbp+var_220] call get_charsets_dir mov rdi, rax lea rsi, aIndexXml; "Index.xml" call _stpcpy mov rdx, [rbp+var_230] lea rcx, [rbp+var_220] mov edi, 1Ch mov esi, 4 mov al, 0 call my_error loc_2A56E: mov rax, [rbp+var_248] mov [rbp+var_258], rax mov rax, fs:28h mov rcx, [rbp+var_8] cmp rax, rcx jnz short loc_2A59E mov rax, [rbp+var_258] add rsp, 260h pop rbp retn loc_2A59E: call ___stack_chk_fail
long long my_collation_get_by_name(long long a1, long long a2, long long a3) { long long charsets_dir; // rax int v4; // r8d int v5; // r9d long long internal_charset; // [rsp+10h] [rbp-250h] unsigned int collation_number; // [rsp+24h] [rbp-23Ch] _BYTE v10[536]; // [rsp+40h] [rbp-220h] BYREF unsigned long long v11; // [rsp+258h] [rbp-8h] v11 = __readfsqword(0x28u); pthread_once(&charsets_initialized, init_available_charsets); collation_number = get_collation_number(a2, a3); my_charset_loader_init_mysys(a1); if ( collation_number ) internal_charset = get_internal_charset(a1, collation_number, a3); else internal_charset = 0LL; if ( !internal_charset && (a3 & 0x10) != 0 ) { charsets_dir = get_charsets_dir((long long)v10); stpcpy(charsets_dir, "Index.xml"); my_error(28, 4, a2, (unsigned int)v10, v4, v5); } return internal_charset; }
my_collation_get_by_name: PUSH RBP MOV RBP,RSP SUB RSP,0x260 MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x8],RAX MOV qword ptr [RBP + -0x228],RDI MOV qword ptr [RBP + -0x230],RSI MOV qword ptr [RBP + -0x238],RDX LEA RDI,[0x48e6e4] LEA RSI,[0x129ba0] CALL 0x001242a0 MOV RDI,qword ptr [RBP + -0x230] MOV RSI,qword ptr [RBP + -0x238] CALL 0x00129af0 MOV dword ptr [RBP + -0x23c],EAX MOV RDI,qword ptr [RBP + -0x228] CALL 0x001291c0 CMP dword ptr [RBP + -0x23c],0x0 JZ 0x0012a500 MOV RDI,qword ptr [RBP + -0x228] MOV ESI,dword ptr [RBP + -0x23c] MOV RDX,qword ptr [RBP + -0x238] CALL 0x0012a1f0 MOV qword ptr [RBP + -0x250],RAX JMP 0x0012a50b LAB_0012a500: XOR EAX,EAX MOV qword ptr [RBP + -0x250],RAX JMP 0x0012a50b LAB_0012a50b: MOV RAX,qword ptr [RBP + -0x250] MOV qword ptr [RBP + -0x248],RAX CMP qword ptr [RBP + -0x248],0x0 JNZ 0x0012a56e MOV RAX,qword ptr [RBP + -0x238] AND RAX,0x10 CMP RAX,0x0 JZ 0x0012a56e LEA RDI,[RBP + -0x220] CALL 0x00129860 MOV RDI,RAX LEA RSI,[0x1798c0] CALL 0x001242f0 MOV RDX,qword ptr [RBP + -0x230] LEA RCX,[RBP + -0x220] MOV EDI,0x1c MOV ESI,0x4 MOV AL,0x0 CALL 0x0012e6e0 LAB_0012a56e: MOV RAX,qword ptr [RBP + -0x248] MOV qword ptr [RBP + -0x258],RAX MOV RAX,qword ptr FS:[0x28] MOV RCX,qword ptr [RBP + -0x8] CMP RAX,RCX JNZ 0x0012a59e MOV RAX,qword ptr [RBP + -0x258] ADD RSP,0x260 POP RBP RET LAB_0012a59e: CALL 0x00124320
long my_collation_get_by_name(int8 param_1,int8 param_2,ulong param_3) { int iVar1; char *__dest; long in_FS_OFFSET; long local_258; int1 local_228 [536]; long local_10; local_10 = *(long *)(in_FS_OFFSET + 0x28); pthread_once(&charsets_initialized,init_available_charsets); iVar1 = get_collation_number(param_2,param_3); my_charset_loader_init_mysys(param_1); if (iVar1 == 0) { local_258 = 0; } else { local_258 = get_internal_charset(param_1,iVar1,param_3); } if ((local_258 == 0) && ((param_3 & 0x10) != 0)) { __dest = (char *)get_charsets_dir(local_228); stpcpy(__dest,"Index.xml"); my_error(0x1c,4,param_2,local_228); } if (*(long *)(in_FS_OFFSET + 0x28) == local_10) { return local_258; } /* WARNING: Subroutine does not return */ __stack_chk_fail(); }
31,074
ModbusTcpServerPrivate::getHostService(ModbusTcpSocket*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
serhmarch[P]ModbusBridge/modbus/src/unix/ModbusTcpServer_unix.cpp
bool ModbusTcpServerPrivate::getHostService(ModbusTcpSocket *socket, String &host, String &service) { sockaddr_in clientAddr; socklen_t clientAddrSize = sizeof(clientAddr); SOCKET clientSocket = socket->socket(); // Get the remote host name and port number char remoteHost[NI_MAXHOST]; char remoteService[NI_MAXSERV]; if (getpeername(clientSocket, (sockaddr*)&clientAddr, &clientAddrSize) == 0) { if (getnameinfo((sockaddr*)&clientAddr, clientAddrSize, remoteHost, NI_MAXHOST, remoteService, NI_MAXSERV, 0) == 0) { host = remoteHost; service = remoteService; return true; } } return false; }
O1
cpp
ModbusTcpServerPrivate::getHostService(ModbusTcpSocket*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x448, %rsp # imm = 0x448 movq %rdx, %rbx movq %rsi, %r14 leaq 0xc(%rsp), %rdx movl $0x10, (%rdx) movl (%rdi), %edi leaq 0x10(%rsp), %rsi callq 0x5260 testl %eax, %eax jne 0x17d4d movl 0xc(%rsp), %esi movl $0x0, (%rsp) leaq 0x10(%rsp), %rdi leaq 0x40(%rsp), %rdx leaq 0x20(%rsp), %r8 movl $0x401, %ecx # imm = 0x401 movl $0x20, %r9d callq 0x5200 testl %eax, %eax je 0x17d5e xorl %eax, %eax addq $0x448, %rsp # imm = 0x448 popq %rbx popq %r12 popq %r14 popq %r15 retq movq 0x8(%r14), %r15 leaq 0x40(%rsp), %r12 movq %r12, %rdi callq 0x5180 movq %r14, %rdi xorl %esi, %esi movq %r15, %rdx movq %r12, %rcx movq %rax, %r8 callq 0x54b0 movq 0x8(%rbx), %r14 leaq 0x20(%rsp), %r15 movq %r15, %rdi callq 0x5180 movq %rbx, %rdi xorl %esi, %esi movq %r14, %rdx movq %r15, %rcx movq %rax, %r8 callq 0x54b0 movb $0x1, %al jmp 0x17d4f
_ZN22ModbusTcpServerPrivate14getHostServiceEP15ModbusTcpSocketRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_: push r15 push r14 push r12 push rbx sub rsp, 448h mov rbx, rdx mov r14, rsi lea rdx, [rsp+468h+var_45C] mov dword ptr [rdx], 10h mov edi, [rdi] lea rsi, [rsp+468h+var_458] call _getpeername test eax, eax jnz short loc_17D4D mov esi, [rsp+468h+var_45C] mov [rsp+468h+var_468], 0 lea rdi, [rsp+468h+var_458] lea rdx, [rsp+468h+var_428] lea r8, [rsp+468h+var_448] mov ecx, 401h mov r9d, 20h ; ' ' call _getnameinfo test eax, eax jz short loc_17D5E loc_17D4D: xor eax, eax loc_17D4F: add rsp, 448h pop rbx pop r12 pop r14 pop r15 retn loc_17D5E: mov r15, [r14+8] lea r12, [rsp+468h+var_428] mov rdi, r12 call _strlen mov rdi, r14 xor esi, esi mov rdx, r15 mov rcx, r12 mov r8, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) mov r14, [rbx+8] lea r15, [rsp+468h+var_448] mov rdi, r15 call _strlen mov rdi, rbx xor esi, esi mov rdx, r14 mov rcx, r15 mov r8, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) mov al, 1 jmp short loc_17D4F
char ModbusTcpServerPrivate::getHostService(unsigned int *a1, long long a2, long long a3) { long long v5; // r15 long long v6; // rax long long v7; // r14 long long v8; // rax unsigned int v9; // [rsp+Ch] [rbp-45Ch] BYREF _BYTE v10[16]; // [rsp+10h] [rbp-458h] BYREF _BYTE v11[32]; // [rsp+20h] [rbp-448h] BYREF _BYTE v12[1064]; // [rsp+40h] [rbp-428h] BYREF v9 = 16; if ( (unsigned int)getpeername(*a1, v10, &v9) || (unsigned int)getnameinfo(v10, v9, v12, 1025LL, v11, 32LL, 0) ) return 0; v5 = *(_QWORD *)(a2 + 8); v6 = strlen(v12); std::string::_M_replace(a2, 0LL, v5, v12, v6); v7 = *(_QWORD *)(a3 + 8); v8 = strlen(v11); std::string::_M_replace(a3, 0LL, v7, v11, v8); return 1; }
getHostService: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x448 MOV RBX,RDX MOV R14,RSI LEA RDX,[RSP + 0xc] MOV dword ptr [RDX],0x10 MOV EDI,dword ptr [RDI] LEA RSI,[RSP + 0x10] CALL 0x00105260 TEST EAX,EAX JNZ 0x00117d4d MOV ESI,dword ptr [RSP + 0xc] MOV dword ptr [RSP],0x0 LEA RDI,[RSP + 0x10] LEA RDX,[RSP + 0x40] LEA R8,[RSP + 0x20] MOV ECX,0x401 MOV R9D,0x20 CALL 0x00105200 TEST EAX,EAX JZ 0x00117d5e LAB_00117d4d: XOR EAX,EAX LAB_00117d4f: ADD RSP,0x448 POP RBX POP R12 POP R14 POP R15 RET LAB_00117d5e: MOV R15,qword ptr [R14 + 0x8] LEA R12,[RSP + 0x40] MOV RDI,R12 CALL 0x00105180 MOV RDI,R14 XOR ESI,ESI MOV RDX,R15 MOV RCX,R12 MOV R8,RAX CALL 0x001054b0 MOV R14,qword ptr [RBX + 0x8] LEA R15,[RSP + 0x20] MOV RDI,R15 CALL 0x00105180 MOV RDI,RBX XOR ESI,ESI MOV RDX,R14 MOV RCX,R15 MOV R8,RAX CALL 0x001054b0 MOV AL,0x1 JMP 0x00117d4f
/* ModbusTcpServerPrivate::getHostService(ModbusTcpSocket*, std::__cxx11::string&, std::__cxx11::string&) */ int8 ModbusTcpServerPrivate::getHostService(ModbusTcpSocket *param_1,string *param_2,string *param_3) { char *pcVar1; int iVar2; socklen_t local_45c; sockaddr local_458; char local_448 [32]; char local_428 [1032]; local_45c = 0x10; iVar2 = getpeername(*(int *)param_1,&local_458,&local_45c); if ((iVar2 == 0) && (iVar2 = getnameinfo(&local_458,local_45c,local_428,0x401,local_448,0x20,0), iVar2 == 0)) { pcVar1 = *(char **)(param_2 + 8); strlen(local_428); std::__cxx11::string::_M_replace((ulong)param_2,0,pcVar1,(ulong)local_428); pcVar1 = *(char **)(param_3 + 8); strlen(local_448); std::__cxx11::string::_M_replace((ulong)param_3,0,pcVar1,(ulong)local_448); return 1; } return 0; }
31,075
ModbusTcpServerPrivate::getHostService(ModbusTcpSocket*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
serhmarch[P]ModbusBridge/modbus/src/unix/ModbusTcpServer_unix.cpp
bool ModbusTcpServerPrivate::getHostService(ModbusTcpSocket *socket, String &host, String &service) { sockaddr_in clientAddr; socklen_t clientAddrSize = sizeof(clientAddr); SOCKET clientSocket = socket->socket(); // Get the remote host name and port number char remoteHost[NI_MAXHOST]; char remoteService[NI_MAXSERV]; if (getpeername(clientSocket, (sockaddr*)&clientAddr, &clientAddrSize) == 0) { if (getnameinfo((sockaddr*)&clientAddr, clientAddrSize, remoteHost, NI_MAXHOST, remoteService, NI_MAXSERV, 0) == 0) { host = remoteHost; service = remoteService; return true; } } return false; }
O3
cpp
ModbusTcpServerPrivate::getHostService(ModbusTcpSocket*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x448, %rsp # imm = 0x448 movq %rdx, %rbx movq %rsi, %r14 leaq 0xc(%rsp), %rdx movl $0x10, (%rdx) movl (%rdi), %edi leaq 0x10(%rsp), %rsi callq 0x5260 testl %eax, %eax jne 0x17b35 movl 0xc(%rsp), %esi movl $0x0, (%rsp) leaq 0x10(%rsp), %rdi leaq 0x40(%rsp), %rdx leaq 0x20(%rsp), %r8 movl $0x401, %ecx # imm = 0x401 movl $0x20, %r9d callq 0x5200 testl %eax, %eax je 0x17b46 xorl %eax, %eax addq $0x448, %rsp # imm = 0x448 popq %rbx popq %r12 popq %r14 popq %r15 retq movq 0x8(%r14), %r15 leaq 0x40(%rsp), %r12 movq %r12, %rdi callq 0x5180 movq %r14, %rdi xorl %esi, %esi movq %r15, %rdx movq %r12, %rcx movq %rax, %r8 callq 0x54b0 movq 0x8(%rbx), %r14 leaq 0x20(%rsp), %r15 movq %r15, %rdi callq 0x5180 movq %rbx, %rdi xorl %esi, %esi movq %r14, %rdx movq %r15, %rcx movq %rax, %r8 callq 0x54b0 movb $0x1, %al jmp 0x17b37
_ZN22ModbusTcpServerPrivate14getHostServiceEP15ModbusTcpSocketRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_: push r15 push r14 push r12 push rbx sub rsp, 448h mov rbx, rdx mov r14, rsi lea rdx, [rsp+468h+var_45C] mov dword ptr [rdx], 10h mov edi, [rdi] lea rsi, [rsp+468h+var_458] call _getpeername test eax, eax jnz short loc_17B35 mov esi, [rsp+468h+var_45C] mov [rsp+468h+var_468], 0 lea rdi, [rsp+468h+var_458] lea rdx, [rsp+468h+var_428] lea r8, [rsp+468h+var_448] mov ecx, 401h mov r9d, 20h ; ' ' call _getnameinfo test eax, eax jz short loc_17B46 loc_17B35: xor eax, eax loc_17B37: add rsp, 448h pop rbx pop r12 pop r14 pop r15 retn loc_17B46: mov r15, [r14+8] lea r12, [rsp+468h+var_428] mov rdi, r12 call _strlen mov rdi, r14 xor esi, esi mov rdx, r15 mov rcx, r12 mov r8, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) mov r14, [rbx+8] lea r15, [rsp+468h+var_448] mov rdi, r15 call _strlen mov rdi, rbx xor esi, esi mov rdx, r14 mov rcx, r15 mov r8, rax call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) mov al, 1 jmp short loc_17B37
char ModbusTcpServerPrivate::getHostService(unsigned int *a1, long long a2, long long a3) { long long v5; // r15 long long v6; // rax long long v7; // r14 long long v8; // rax unsigned int v9; // [rsp+Ch] [rbp-45Ch] BYREF _BYTE v10[16]; // [rsp+10h] [rbp-458h] BYREF _BYTE v11[32]; // [rsp+20h] [rbp-448h] BYREF _BYTE v12[1064]; // [rsp+40h] [rbp-428h] BYREF v9 = 16; if ( (unsigned int)getpeername(*a1, v10, &v9) || (unsigned int)getnameinfo(v10, v9, v12, 1025LL, v11, 32LL, 0) ) return 0; v5 = *(_QWORD *)(a2 + 8); v6 = strlen(v12); std::string::_M_replace(a2, 0LL, v5, v12, v6); v7 = *(_QWORD *)(a3 + 8); v8 = strlen(v11); std::string::_M_replace(a3, 0LL, v7, v11, v8); return 1; }
getHostService: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x448 MOV RBX,RDX MOV R14,RSI LEA RDX,[RSP + 0xc] MOV dword ptr [RDX],0x10 MOV EDI,dword ptr [RDI] LEA RSI,[RSP + 0x10] CALL 0x00105260 TEST EAX,EAX JNZ 0x00117b35 MOV ESI,dword ptr [RSP + 0xc] MOV dword ptr [RSP],0x0 LEA RDI,[RSP + 0x10] LEA RDX,[RSP + 0x40] LEA R8,[RSP + 0x20] MOV ECX,0x401 MOV R9D,0x20 CALL 0x00105200 TEST EAX,EAX JZ 0x00117b46 LAB_00117b35: XOR EAX,EAX LAB_00117b37: ADD RSP,0x448 POP RBX POP R12 POP R14 POP R15 RET LAB_00117b46: MOV R15,qword ptr [R14 + 0x8] LEA R12,[RSP + 0x40] MOV RDI,R12 CALL 0x00105180 MOV RDI,R14 XOR ESI,ESI MOV RDX,R15 MOV RCX,R12 MOV R8,RAX CALL 0x001054b0 MOV R14,qword ptr [RBX + 0x8] LEA R15,[RSP + 0x20] MOV RDI,R15 CALL 0x00105180 MOV RDI,RBX XOR ESI,ESI MOV RDX,R14 MOV RCX,R15 MOV R8,RAX CALL 0x001054b0 MOV AL,0x1 JMP 0x00117b37
/* ModbusTcpServerPrivate::getHostService(ModbusTcpSocket*, std::__cxx11::string&, std::__cxx11::string&) */ int8 ModbusTcpServerPrivate::getHostService(ModbusTcpSocket *param_1,string *param_2,string *param_3) { char *pcVar1; int iVar2; socklen_t local_45c; sockaddr local_458; char local_448 [32]; char local_428 [1032]; local_45c = 0x10; iVar2 = getpeername(*(int *)param_1,&local_458,&local_45c); if ((iVar2 == 0) && (iVar2 = getnameinfo(&local_458,local_45c,local_428,0x401,local_448,0x20,0), iVar2 == 0)) { pcVar1 = *(char **)(param_2 + 8); strlen(local_428); std::__cxx11::string::_M_replace((ulong)param_2,0,pcVar1,(ulong)local_428); pcVar1 = *(char **)(param_3 + 8); strlen(local_448); std::__cxx11::string::_M_replace((ulong)param_3,0,pcVar1,(ulong)local_448); return 1; } return 0; }
31,076
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> 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>::insert_iterator<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::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> 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> const&)
llama.cpp/common/json.hpp
iterator insert_iterator(const_iterator pos, Args&& ... args) { iterator result(this); JSON_ASSERT(m_data.m_value.array != nullptr); auto insert_pos = std::distance(m_data.m_value.array->begin(), pos.m_it.array_iterator); m_data.m_value.array->insert(pos.m_it.array_iterator, std::forward<Args>(args)...); result.m_it.array_iterator = m_data.m_value.array->begin() + insert_pos; // This could have been written as: // result.m_it.array_iterator = m_data.m_value.array->insert(pos.m_it.array_iterator, cnt, val); // but the return value of insert is missing in GCC 4.8, so it is written this way instead. set_parents(); return result; }
O3
cpp
nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void>> 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>::insert_iterator<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::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char>>, void> 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> const&): pushq %r15 pushq %r14 pushq %rbx movq %rdi, %rbx movq %rsi, (%rdi) movq $0x0, 0x8(%rdi) movabsq $-0x8000000000000000, %rax # imm = 0x8000000000000000 movq %rax, 0x18(%rdi) movq 0x8(%rsi), %rdi testq %rdi, %rdi je 0x73ecb movq %rsi, %r14 movq 0x10(%rdx), %rsi movq %rsi, %r15 subq (%rdi), %r15 movq %rcx, %rdx callq 0x73f74 movq 0x8(%r14), %rax addq (%rax), %r15 movq %r15, 0x10(%rbx) movq %rbx, %rax popq %rbx popq %r14 popq %r15 retq leaq 0x57d69(%rip), %rdi # 0xcbc3b leaq 0x541b7(%rip), %rdx # 0xc8090 leaq 0x57e54(%rip), %rcx # 0xcbd34 movl $0x582c, %esi # imm = 0x582C xorl %eax, %eax callq 0x1ca40
_ZN8nlohmann16json_abi_v3_11_310basic_jsonINS0_11ordered_mapESt6vectorNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS0_14adl_serializerES3_IhSaIhEEvE15insert_iteratorIJRKSD_EEENS0_6detail9iter_implISD_EENSI_ISF_EEDpOT_: push r15 push r14 push rbx mov rbx, rdi mov [rdi], rsi mov qword ptr [rdi+8], 0 mov rax, 8000000000000000h mov [rdi+18h], rax mov rdi, [rsi+8] test rdi, rdi jz short loc_73ECB mov r14, rsi mov rsi, [rdx+10h] mov r15, rsi sub r15, [rdi] mov rdx, rcx call _ZNSt6vectorIN8nlohmann16json_abi_v3_11_310basic_jsonINS1_11ordered_mapES_NSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEblmdSaNS1_14adl_serializerES_IhSaIhEEvEESaISD_EE6insertEN9__gnu_cxx17__normal_iteratorIPKSD_SF_EERSI_; 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>>::insert(__gnu_cxx::__normal_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::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::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>>>,nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,ulong,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<uchar>,void> const&) mov rax, [r14+8] add r15, [rax] mov [rbx+10h], r15 mov rax, rbx pop rbx pop r14 pop r15 retn loc_73ECB: lea rdi, aWorkspaceLlm4b_0; "/workspace/llm4binary/github2025/llama."... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aMDataMTypeValu_0+23h; "m_data.m_value.array != nullptr" mov esi, 582Ch xor eax, eax call _ggml_abort
long long nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::string,bool,long,unsigned long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned char>,void>::insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,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&>( _QWORD *a1, long long a2, long long a3, long long a4) { _QWORD *v5; // rdi long long v6; // r15 *a1 = a2; a1[1] = 0LL; a1[3] = 0x8000000000000000LL; v5 = *(_QWORD **)(a2 + 8); if ( v5 ) { v6 = *(_QWORD *)(a3 + 16) - *v5; 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>>::insert( v5, *(_QWORD *)(a3 + 16), a4); a1[2] = **(_QWORD **)(a2 + 8) + v6; return (long long)a1; } else { ggml_abort( "/workspace/llm4binary/github2025/llama.cpp/common/json.hpp", 22572LL, "GGML_ASSERT(%s) failed", "m_data.m_value.array != nullptr"); return nlohmann::json_abi_v3_11_3::detail::concat<std::string,char const(&)[26],char const*>( "/workspace/llm4binary/github2025/llama.cpp/common/json.hpp", 22572LL); } }
insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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&>: PUSH R15 PUSH R14 PUSH RBX MOV RBX,RDI MOV qword ptr [RDI],RSI MOV qword ptr [RDI + 0x8],0x0 MOV RAX,-0x8000000000000000 MOV qword ptr [RDI + 0x18],RAX MOV RDI,qword ptr [RSI + 0x8] TEST RDI,RDI JZ 0x00173ecb MOV R14,RSI MOV RSI,qword ptr [RDX + 0x10] MOV R15,RSI SUB R15,qword ptr [RDI] MOV RDX,RCX CALL 0x00173f74 MOV RAX,qword ptr [R14 + 0x8] ADD R15,qword ptr [RAX] MOV qword ptr [RBX + 0x10],R15 MOV RAX,RBX POP RBX POP R14 POP R15 RET LAB_00173ecb: LEA RDI,[0x1cbc3b] LEA RDX,[0x1c8090] LEA RCX,[0x1cbd34] MOV ESI,0x582c XOR EAX,EAX CALL 0x0011ca40
/* nlohmann::json_abi_v3_11_3::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> > nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void>::insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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::detail::iter_impl<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, bool, long, unsigned long, double, std::allocator, nlohmann::json_abi_v3_11_3::adl_serializer, std::vector<unsigned char, std::allocator<unsigned char> >, void> const>, nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map, std::vector, std::__cxx11::string, 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&) */ long * nlohmann::json_abi_v3_11_3:: basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void> :: insert_iterator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,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&> (long *param_1,long param_2,long param_3,int8 param_4) { 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>>> *pvVar1; long lVar2; long lVar3; *param_1 = param_2; param_1[1] = 0; param_1[3] = -0x8000000000000000; pvVar1 = *(vector<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>,std::allocator<nlohmann::json_abi_v3_11_3::basic_json<nlohmann::json_abi_v3_11_3::ordered_map,std::vector,std::__cxx11::string,bool,long,unsigned_long,double,std::allocator,nlohmann::json_abi_v3_11_3::adl_serializer,std::vector<unsigned_char,std::allocator<unsigned_char>>,void>>> **)(param_2 + 8); if (pvVar1 != (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>>> *)0x0) { lVar2 = *(long *)(param_3 + 0x10); lVar3 = *(long *)pvVar1; 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>>> ::insert(pvVar1,lVar2,param_4); param_1[2] = (lVar2 - lVar3) + **(long **)(param_2 + 8); return param_1; } /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github2025/llama.cpp/common/json.hpp",0x582c, "GGML_ASSERT(%s) failed","m_data.m_value.array != nullptr"); }
31,077
testing::Matcher<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::Matcher(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
AlayaLite/build_O3/_deps/googletest-src/googletest/src/gtest-matchers.cc
Matcher<std::string>::Matcher(const std::string& s) { *this = Eq(s); }
O3
cpp
testing::Matcher<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>::Matcher(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&): pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x58, %rsp movq %rdi, %rbx xorps %xmm0, %xmm0 movups %xmm0, 0x8(%rdi) leaq 0x5ca30(%rip), %r14 # 0xb3688 addq $0x10, %r14 movq %r14, (%rdi) leaq 0x30(%rsp), %r15 movq %r15, -0x10(%r15) movq (%rsi), %rax movq 0x8(%rsi), %rdx addq %rax, %rdx leaq 0x20(%rsp), %rdi movq %rax, %rsi callq 0x18f38 leaq 0x10(%rsp), %r12 movq %r12, -0x10(%r12) movq 0x20(%rsp), %rsi movq 0x28(%rsp), %rdx addq %rsi, %rdx movq %rsp, %rdi callq 0x18f38 leaq 0x5cd93(%rip), %rax # 0xb3a38 addq $0x10, %rax movq %rax, 0x40(%rsp) movq $0x0, 0x50(%rsp) leaq 0x5ce72(%rip), %rax # 0xb3b30 movq %rax, 0x48(%rsp) movl $0x28, %edi callq 0x11190 movl $0x1, (%rax) movq %rax, %rcx addq $0x18, %rcx movq %rcx, 0x8(%rax) movq (%rsp), %rdx cmpq %r12, %rdx je 0x56cf6 movq %rdx, 0x8(%rax) movq 0x10(%rsp), %rcx movq %rcx, 0x18(%rax) jmp 0x56cfe movups (%r12), %xmm0 movups %xmm0, (%rcx) movq 0x8(%rsp), %rcx movq %rcx, 0x10(%rax) movq %r12, (%rsp) movq $0x0, 0x8(%rsp) movb $0x0, 0x10(%rsp) leaq 0x40(%rsp), %rsi movq %rax, 0x10(%rsi) movq %r14, (%rsi) movq %rbx, %rdi callq 0x77bd6 leaq 0x40(%rsp), %rdi callq 0x7b398 movq (%rsp), %rdi cmpq %r12, %rdi je 0x56d4d movq 0x10(%rsp), %rsi incq %rsi callq 0x11120 movq 0x20(%rsp), %rdi cmpq %r15, %rdi je 0x56d64 movq 0x30(%rsp), %rsi incq %rsi callq 0x11120 addq $0x58, %rsp popq %rbx popq %r12 popq %r14 popq %r15 retq movq %rax, %r14 leaq 0x40(%rsp), %rdi callq 0x7b398 jmp 0x56d82 movq %rax, %r14 movq (%rsp), %rdi cmpq %r12, %rdi je 0x56d9d movq 0x10(%rsp), %rsi incq %rsi callq 0x11120 jmp 0x56d9d movq %rax, %r14 movq 0x20(%rsp), %rdi cmpq %r15, %rdi je 0x56db9 movq 0x30(%rsp), %rsi incq %rsi callq 0x11120 jmp 0x56db9 movq %rax, %r14 movq %rbx, %rdi callq 0x7b398 movq %r14, %rdi callq 0x11760 nop
_ZN7testing7MatcherINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEC2ERKS6_: push r15 push r14 push r12 push rbx sub rsp, 58h mov rbx, rdi xorps xmm0, xmm0 movups xmmword ptr [rdi+8], xmm0 lea r14, _ZTVN7testing7MatcherINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE; `vtable for'testing::Matcher<std::string> add r14, 10h mov [rdi], r14 lea r15, [rsp+78h+var_48] mov [r15-10h], r15 mov rax, [rsi] mov rdx, [rsi+8] add rdx, rax lea rdi, [rsp+78h+var_58] mov rsi, rax call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea r12, [rsp+78h+var_68] mov [r12-10h], r12 mov rsi, [rsp+78h+var_58] mov rdx, [rsp+78h+var_50] add rdx, rsi mov rdi, rsp call _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_M_constructIPcEEvT_S7_St20forward_iterator_tag; std::string::_M_construct<char *>(char *,char *,std::forward_iterator_tag) lea rax, _ZTVN7testing8internal11MatcherBaseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE; `vtable for'testing::internal::MatcherBase<std::string> add rax, 10h mov [rsp+78h+var_38], rax mov [rsp+78h+var_28], 0 lea rax, _ZZN7testing8internal11MatcherBaseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE9GetVTableINS8_11ValuePolicyINS0_9EqMatcherIS7_EELb0EEEEEPKNS8_6VTableEvE7kVTableB5cxx11; testing::internal::MatcherBase<std::string>::GetVTable<testing::internal::MatcherBase<std::string>::ValuePolicy<testing::internal::EqMatcher<std::string>,false>>(void)::kVTable mov [rsp+78h+var_30], rax mov edi, 28h ; '('; unsigned __int64 call __Znwm; operator new(ulong) mov dword ptr [rax], 1 mov rcx, rax add rcx, 18h mov [rax+8], rcx mov rdx, [rsp+78h+var_78] cmp rdx, r12 jz short loc_56CF6 mov [rax+8], rdx mov rcx, [rsp+78h+var_68] mov [rax+18h], rcx jmp short loc_56CFE loc_56CF6: movups xmm0, xmmword ptr [r12] movups xmmword ptr [rcx], xmm0 loc_56CFE: mov rcx, [rsp+78h+var_70] mov [rax+10h], rcx mov [rsp+78h+var_78], r12 mov [rsp+78h+var_70], 0 mov byte ptr [rsp+78h+var_68], 0 lea rsi, [rsp+78h+var_38] mov [rsi+10h], rax mov [rsi], r14 mov rdi, rbx call _ZN7testing8internal11MatcherBaseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEaSEOS8_; testing::internal::MatcherBase<std::string>::operator=(testing::internal::MatcherBase<std::string>&&) lea rdi, [rsp+78h+var_38] call _ZN7testing8internal11MatcherBaseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; testing::internal::MatcherBase<std::string>::~MatcherBase() mov rdi, [rsp+78h+var_78]; void * cmp rdi, r12 jz short loc_56D4D mov rsi, [rsp+78h+var_68] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_56D4D: mov rdi, [rsp+78h+var_58]; void * cmp rdi, r15 jz short loc_56D64 mov rsi, [rsp+78h+var_48] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_56D64: add rsp, 58h pop rbx pop r12 pop r14 pop r15 retn mov r14, rax lea rdi, [rsp+arg_38] call _ZN7testing8internal11MatcherBaseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; testing::internal::MatcherBase<std::string>::~MatcherBase() jmp short loc_56D82 mov r14, rax loc_56D82: mov rdi, [rsp+0]; void * cmp rdi, r12 jz short loc_56D9D mov rsi, [rsp+arg_8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_56D9D mov r14, rax loc_56D9D: mov rdi, [rsp+arg_18]; void * cmp rdi, r15 jz short loc_56DB9 mov rsi, [rsp+arg_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) jmp short loc_56DB9 mov r14, rax loc_56DB9: mov rdi, rbx call _ZN7testing8internal11MatcherBaseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEED2Ev; testing::internal::MatcherBase<std::string>::~MatcherBase() mov rdi, r14 call __Unwind_Resume
void testing::Matcher<std::string>::Matcher(long long a1, long long a2) { long long v2; // rax void *v3; // [rsp+0h] [rbp-78h] BYREF long long v4; // [rsp+8h] [rbp-70h] __int128 v5; // [rsp+10h] [rbp-68h] BYREF void *v6[2]; // [rsp+20h] [rbp-58h] BYREF _QWORD v7[2]; // [rsp+30h] [rbp-48h] BYREF _QWORD v8[2]; // [rsp+40h] [rbp-38h] BYREF long long v9; // [rsp+50h] [rbp-28h] *(_OWORD *)(a1 + 8) = 0LL; *(_QWORD *)a1 = &`vtable for'testing::Matcher<std::string> + 2; v6[0] = v7; std::string::_M_construct<char *>((long long)v6, *(_BYTE **)a2, *(_QWORD *)a2 + *(_QWORD *)(a2 + 8)); v3 = &v5; std::string::_M_construct<char *>((long long)&v3, (_BYTE *)v6[0], (long long)v6[0] + (unsigned long long)v6[1]); v8[0] = &`vtable for'testing::internal::MatcherBase<std::string> + 2; v9 = 0LL; v8[1] = testing::internal::MatcherBase<std::string>::GetVTable<testing::internal::MatcherBase<std::string>::ValuePolicy<testing::internal::EqMatcher<std::string>,false>>(void)::kVTable[abi:cxx11]; v2 = operator new(0x28uLL); *(_DWORD *)v2 = 1; *(_QWORD *)(v2 + 8) = v2 + 24; if ( v3 == &v5 ) { *(_OWORD *)(v2 + 24) = v5; } else { *(_QWORD *)(v2 + 8) = v3; *(_QWORD *)(v2 + 24) = v5; } *(_QWORD *)(v2 + 16) = v4; v3 = &v5; v4 = 0LL; LOBYTE(v5) = 0; v9 = v2; v8[0] = &`vtable for'testing::Matcher<std::string> + 2; testing::internal::MatcherBase<std::string>::operator=(a1); testing::internal::MatcherBase<std::string>::~MatcherBase(v8); if ( v3 != &v5 ) operator delete(v3, v5 + 1); if ( v6[0] != v7 ) operator delete(v6[0], v7[0] + 1LL); }
Matcher: PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x58 MOV RBX,RDI XORPS XMM0,XMM0 MOVUPS xmmword ptr [RDI + 0x8],XMM0 LEA R14,[0x1b3688] ADD R14,0x10 MOV qword ptr [RDI],R14 LEA R15,[RSP + 0x30] MOV qword ptr [R15 + -0x10],R15 MOV RAX,qword ptr [RSI] MOV RDX,qword ptr [RSI + 0x8] ADD RDX,RAX LAB_00156c72: LEA RDI,[RSP + 0x20] MOV RSI,RAX CALL 0x00118f38 LEA R12,[RSP + 0x10] MOV qword ptr [R12 + -0x10],R12 MOV RSI,qword ptr [RSP + 0x20] MOV RDX,qword ptr [RSP + 0x28] ADD RDX,RSI LAB_00156c96: MOV RDI,RSP CALL 0x00118f38 LEA RAX,[0x1b3a38] ADD RAX,0x10 MOV qword ptr [RSP + 0x40],RAX MOV qword ptr [RSP + 0x50],0x0 LEA RAX,[0x1b3b30] MOV qword ptr [RSP + 0x48],RAX LAB_00156cc3: MOV EDI,0x28 CALL 0x00111190 MOV dword ptr [RAX],0x1 MOV RCX,RAX ADD RCX,0x18 MOV qword ptr [RAX + 0x8],RCX MOV RDX,qword ptr [RSP] CMP RDX,R12 JZ 0x00156cf6 MOV qword ptr [RAX + 0x8],RDX MOV RCX,qword ptr [RSP + 0x10] MOV qword ptr [RAX + 0x18],RCX JMP 0x00156cfe LAB_00156cf6: MOVUPS XMM0,xmmword ptr [R12] MOVUPS xmmword ptr [RCX],XMM0 LAB_00156cfe: MOV RCX,qword ptr [RSP + 0x8] MOV qword ptr [RAX + 0x10],RCX MOV qword ptr [RSP],R12 MOV qword ptr [RSP + 0x8],0x0 MOV byte ptr [RSP + 0x10],0x0 LEA RSI,[RSP + 0x40] MOV qword ptr [RSI + 0x10],RAX MOV qword ptr [RSI],R14 LAB_00156d25: MOV RDI,RBX CALL 0x00177bd6 LAB_00156d2d: LEA RDI,[RSP + 0x40] CALL 0x0017b398 MOV RDI,qword ptr [RSP] CMP RDI,R12 JZ 0x00156d4d MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x00111120 LAB_00156d4d: MOV RDI,qword ptr [RSP + 0x20] CMP RDI,R15 JZ 0x00156d64 MOV RSI,qword ptr [RSP + 0x30] INC RSI CALL 0x00111120 LAB_00156d64: ADD RSP,0x58 POP RBX POP R12 POP R14 POP R15 RET
/* testing::Matcher<std::__cxx11::string >::Matcher(std::__cxx11::string const&) */ void __thiscall testing::Matcher<std::__cxx11::string>::Matcher(Matcher<std::__cxx11::string> *this,string *param_1) { int1 *local_78; int8 local_70; int1 local_68; int7 uStack_67; int8 uStack_60; long *local_58; long local_50; long local_48 [2]; int **local_38; int1 *local_30; int4 *local_28; *(int8 *)(this + 8) = 0; *(int8 *)(this + 0x10) = 0; *(int ***)this = &PTR__MatcherBase_001b3698; /* try { // try from 00156c72 to 00156c7e has its CatchHandler @ 00156db6 */ local_58 = local_48; std::__cxx11::string::_M_construct<char*> (&local_58,*(long *)param_1,*(long *)(param_1 + 8) + *(long *)param_1); local_78 = &local_68; /* try { // try from 00156c96 to 00156c9d has its CatchHandler @ 00156d9a */ std::__cxx11::string::_M_construct<char*>(&local_78,local_58,local_50 + (long)local_58); local_38 = &PTR__MatcherBase_001b3a48; local_28 = (int4 *)0x0; local_30 = internal::MatcherBase<std::__cxx11::string>:: GetVTable<testing::internal::MatcherBase<std::__cxx11::string>::ValuePolicy<testing::internal::EqMatcher<std::__cxx11::string>,false>>() ::kVTable_abi_cxx11_; /* try { // try from 00156cc3 to 00156ccc has its CatchHandler @ 00156d7f */ local_28 = (int4 *)operator_new(0x28); *local_28 = 1; *(int4 **)(local_28 + 2) = local_28 + 6; if (local_78 == &local_68) { *(ulong *)(local_28 + 6) = CONCAT71(uStack_67,local_68); *(int8 *)(local_28 + 8) = uStack_60; } else { *(int1 **)(local_28 + 2) = local_78; *(ulong *)(local_28 + 6) = CONCAT71(uStack_67,local_68); } *(int8 *)(local_28 + 4) = local_70; local_70 = 0; local_68 = 0; local_38 = &PTR__MatcherBase_001b3698; local_78 = &local_68; /* try { // try from 00156d25 to 00156d2c has its CatchHandler @ 00156d70 */ internal::MatcherBase<std::__cxx11::string>::operator= ((MatcherBase<std::__cxx11::string> *)this,(MatcherBase *)&local_38); internal::MatcherBase<std::__cxx11::string>::~MatcherBase ((MatcherBase<std::__cxx11::string> *)&local_38); if (local_78 != &local_68) { operator_delete(local_78,CONCAT71(uStack_67,local_68) + 1); } if (local_58 != local_48) { operator_delete(local_58,local_48[0] + 1); } return; }
31,078
OpenSubdiv::v3_6_0::Far::PatchTable::GetPatchArrayVertices(int) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp
ConstIndexArray PatchTable::GetPatchArrayVertices(int arrayIndex) const { PatchArray const & pa = getPatchArray(arrayIndex); int size = getPatchSize(pa.desc); assert(pa.vertIndex<(Index)_patchVerts.size()); return ConstIndexArray(&_patchVerts[pa.vertIndex], pa.numPatches * size); }
O2
cpp
OpenSubdiv::v3_6_0::Far::PatchTable::GetPatchArrayVertices(int) const: pushq %r14 pushq %rbx pushq %rax movq %rdi, %r14 callq 0x50dd0 movq %rax, %rbx movl (%rax), %eax leaq 0x4(%rsp), %rdi movl %eax, (%rdi) callq 0x51580 movl %eax, %edx movslq 0x8(%rbx), %rax movq 0x20(%r14), %rcx movq 0x28(%r14), %rsi subq %rcx, %rsi shrq $0x2, %rsi cmpl %esi, %eax jge 0x7c016 leaq (%rcx,%rax,4), %rax imull 0x4(%rbx), %edx addq $0x8, %rsp popq %rbx popq %r14 retq leaq 0x46e40(%rip), %rdi # 0xc2e5d leaq 0x46d96(%rip), %rsi # 0xc2dba leaq 0x46ea4(%rip), %rcx # 0xc2ecf movl $0x11c, %edx # imm = 0x11C callq 0x512a0 nop
_ZNK10OpenSubdiv6v3_6_03Far10PatchTable21GetPatchArrayVerticesEi: push r14 push rbx push rax mov r14, rdi call __ZNK10OpenSubdiv6v3_6_03Far10PatchTable13getPatchArrayEi; OpenSubdiv::v3_6_0::Far::PatchTable::getPatchArray(int) mov rbx, rax mov eax, [rax] lea rdi, [rsp+18h+var_14] mov [rdi], eax call __ZN10OpenSubdiv6v3_6_03Far12getPatchSizeENS1_15PatchDescriptorE; OpenSubdiv::v3_6_0::Far::getPatchSize(OpenSubdiv::v3_6_0::Far::PatchDescriptor) mov edx, eax movsxd rax, dword ptr [rbx+8] mov rcx, [r14+20h] mov rsi, [r14+28h] sub rsi, rcx shr rsi, 2 cmp eax, esi jge short loc_7C016 lea rax, [rcx+rax*4] imul edx, [rbx+4] add rsp, 8 pop rbx pop r14 retn loc_7C016: lea rdi, aPaVertindexInd; "pa.vertIndex<(Index)_patchVerts.size()" lea rsi, aWorkspaceLlm4b_16; "/workspace/llm4binary/github/2025_star3"... lea rcx, aConstindexarra; "ConstIndexArray OpenSubdiv::v3_6_0::Far"... mov edx, 11Ch call ___assert_fail
long long OpenSubdiv::v3_6_0::Far::PatchTable::GetPatchArrayVertices( OpenSubdiv::v3_6_0::Far::PatchTable *this, int a2) { long long v2; // rax _DWORD *PatchArray; // rbx long long v4; // rax long long v5; // rcx _DWORD v7[5]; // [rsp+0h] [rbp-14h] BYREF v7[0] = HIDWORD(v2); PatchArray = (_DWORD *)OpenSubdiv::v3_6_0::Far::PatchTable::getPatchArray(this, a2); v7[0] = *PatchArray; OpenSubdiv::v3_6_0::Far::getPatchSize(v7); v4 = (int)PatchArray[2]; v5 = *((_QWORD *)this + 4); if ( (int)v4 >= (int)((unsigned long long)(*((_QWORD *)this + 5) - v5) >> 2) ) __assert_fail( "pa.vertIndex<(Index)_patchVerts.size()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp", 284LL, "ConstIndexArray OpenSubdiv::v3_6_0::Far::PatchTable::GetPatchArrayVertices(int) const"); return v5 + 4 * v4; }
GetPatchArrayVertices: PUSH R14 PUSH RBX PUSH RAX MOV R14,RDI CALL 0x00150dd0 MOV RBX,RAX MOV EAX,dword ptr [RAX] LEA RDI,[RSP + 0x4] MOV dword ptr [RDI],EAX CALL 0x00151580 MOV EDX,EAX MOVSXD RAX,dword ptr [RBX + 0x8] MOV RCX,qword ptr [R14 + 0x20] MOV RSI,qword ptr [R14 + 0x28] SUB RSI,RCX SHR RSI,0x2 CMP EAX,ESI JGE 0x0017c016 LEA RAX,[RCX + RAX*0x4] IMUL EDX,dword ptr [RBX + 0x4] ADD RSP,0x8 POP RBX POP R14 RET LAB_0017c016: LEA RDI,[0x1c2e5d] LEA RSI,[0x1c2dba] LEA RCX,[0x1c2ecf] MOV EDX,0x11c CALL 0x001512a0
/* OpenSubdiv::v3_6_0::Far::PatchTable::GetPatchArrayVertices(int) const */ int1 [16] __thiscall OpenSubdiv::v3_6_0::Far::PatchTable::GetPatchArrayVertices(PatchTable *this,int param_1) { int iVar1; long lVar2; int1 auVar3 [16]; lVar2 = getPatchArray(this,param_1); iVar1 = getPatchSize(); if (*(int *)(lVar2 + 8) < (int)((ulong)(*(long *)(this + 0x28) - *(long *)(this + 0x20)) >> 2)) { auVar3._8_4_ = iVar1 * *(int *)(lVar2 + 4); auVar3._0_8_ = *(long *)(this + 0x20) + (long)*(int *)(lVar2 + 8) * 4; auVar3._12_4_ = 0; return auVar3; } /* WARNING: Subroutine does not return */ __assert_fail("pa.vertIndex<(Index)_patchVerts.size()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp" ,0x11c, "ConstIndexArray OpenSubdiv::v3_6_0::Far::PatchTable::GetPatchArrayVertices(int) const" ); }
31,079
OpenSubdiv::v3_6_0::Far::PatchTable::GetPatchArrayVertices(int) const
NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp
ConstIndexArray PatchTable::GetPatchArrayVertices(int arrayIndex) const { PatchArray const & pa = getPatchArray(arrayIndex); int size = getPatchSize(pa.desc); assert(pa.vertIndex<(Index)_patchVerts.size()); return ConstIndexArray(&_patchVerts[pa.vertIndex], pa.numPatches * size); }
O3
cpp
OpenSubdiv::v3_6_0::Far::PatchTable::GetPatchArrayVertices(int) const: pushq %rax movq 0x8(%rdi), %rax movq 0x10(%rdi), %rcx subq %rax, %rcx shrq $0x2, %rcx imull $0xcccccccd, %ecx, %ecx # imm = 0xCCCCCCCD cmpl %esi, %ecx jle 0x6aed2 movslq %esi, %rcx leaq (%rcx,%rcx,4), %rcx leaq (%rax,%rcx,4), %rcx movl (%rcx), %eax decl %eax movl $0xffffffff, %edx # imm = 0xFFFFFFFF cmpl $0x9, %eax ja 0x6aeb1 movl %eax, %eax leaq 0x50fe2(%rip), %rdx # 0xbbe90 movl (%rdx,%rax,4), %edx movslq 0x8(%rcx), %rax movq 0x20(%rdi), %rsi movq 0x28(%rdi), %rdi subq %rsi, %rdi shrq $0x2, %rdi cmpl %edi, %eax jge 0x6aef1 leaq (%rsi,%rax,4), %rax imull 0x4(%rcx), %edx popq %rcx retq leaq 0x51564(%rip), %rdi # 0xbc43d leaq 0x51032(%rip), %rsi # 0xbbf12 leaq 0x5157c(%rip), %rcx # 0xbc463 movl $0x90, %edx callq 0x39540 leaq 0x510bd(%rip), %rdi # 0xbbfb5 leaq 0x51013(%rip), %rsi # 0xbbf12 leaq 0x51121(%rip), %rcx # 0xbc027 movl $0x11c, %edx # imm = 0x11C callq 0x39540
_ZNK10OpenSubdiv6v3_6_03Far10PatchTable21GetPatchArrayVerticesEi: push rax mov rax, [rdi+8] mov rcx, [rdi+10h] sub rcx, rax shr rcx, 2 imul ecx, 0CCCCCCCDh cmp ecx, esi jle short loc_6AED2 movsxd rcx, esi lea rcx, [rcx+rcx*4] lea rcx, [rax+rcx*4] mov eax, [rcx] dec eax mov edx, 0FFFFFFFFh cmp eax, 9 ja short loc_6AEB1 mov eax, eax lea rdx, dword_BBE90 mov edx, [rdx+rax*4] loc_6AEB1: movsxd rax, dword ptr [rcx+8] mov rsi, [rdi+20h] mov rdi, [rdi+28h] sub rdi, rsi shr rdi, 2 cmp eax, edi jge short loc_6AEF1 lea rax, [rsi+rax*4] imul edx, [rcx+4] pop rcx retn loc_6AED2: lea rdi, aArrayindexInde; "arrayIndex<(Index)GetNumPatchArrays()" lea rsi, aWorkspaceLlm4b_16; "/workspace/llm4binary/github/2025_star3"... lea rcx, aConstPatchtabl; "const PatchTable::PatchArray &OpenSubdi"... mov edx, 90h call ___assert_fail loc_6AEF1: lea rdi, aPaVertindexInd; "pa.vertIndex<(Index)_patchVerts.size()" lea rsi, aWorkspaceLlm4b_16; "/workspace/llm4binary/github/2025_star3"... lea rcx, aConstindexarra; "ConstIndexArray OpenSubdiv::v3_6_0::Far"... mov edx, 11Ch call ___assert_fail
long long OpenSubdiv::v3_6_0::Far::PatchTable::GetPatchArrayVertices( OpenSubdiv::v3_6_0::Far::PatchTable *this, signed int a2) { long long v2; // rax long long v3; // rax long long v4; // rsi v2 = *((_QWORD *)this + 1); if ( (int)(-858993459 * ((unsigned long long)(*((_QWORD *)this + 2) - v2) >> 2)) <= a2 ) __assert_fail( "arrayIndex<(Index)GetNumPatchArrays()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp", 144LL, "const PatchTable::PatchArray &OpenSubdiv::v3_6_0::Far::PatchTable::getPatchArray(Index) const"); v3 = *(int *)(v2 + 20LL * a2 + 8); v4 = *((_QWORD *)this + 4); if ( (int)v3 >= (int)((unsigned long long)(*((_QWORD *)this + 5) - v4) >> 2) ) __assert_fail( "pa.vertIndex<(Index)_patchVerts.size()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp", 284LL, "ConstIndexArray OpenSubdiv::v3_6_0::Far::PatchTable::GetPatchArrayVertices(int) const"); return v4 + 4 * v3; }
GetPatchArrayVertices: PUSH RAX MOV RAX,qword ptr [RDI + 0x8] MOV RCX,qword ptr [RDI + 0x10] SUB RCX,RAX SHR RCX,0x2 IMUL ECX,ECX,-0x33333333 CMP ECX,ESI JLE 0x0016aed2 MOVSXD RCX,ESI LEA RCX,[RCX + RCX*0x4] LEA RCX,[RAX + RCX*0x4] MOV EAX,dword ptr [RCX] DEC EAX MOV EDX,0xffffffff CMP EAX,0x9 JA 0x0016aeb1 MOV EAX,EAX LEA RDX,[0x1bbe90] MOV EDX,dword ptr [RDX + RAX*0x4] LAB_0016aeb1: MOVSXD RAX,dword ptr [RCX + 0x8] MOV RSI,qword ptr [RDI + 0x20] MOV RDI,qword ptr [RDI + 0x28] SUB RDI,RSI SHR RDI,0x2 CMP EAX,EDI JGE 0x0016aef1 LEA RAX,[RSI + RAX*0x4] IMUL EDX,dword ptr [RCX + 0x4] POP RCX RET LAB_0016aed2: LEA RDI,[0x1bc43d] LEA RSI,[0x1bbf12] LEA RCX,[0x1bc463] MOV EDX,0x90 CALL 0x00139540 LAB_0016aef1: LEA RDI,[0x1bbfb5] LEA RSI,[0x1bbf12] LEA RCX,[0x1bc027] MOV EDX,0x11c CALL 0x00139540
/* OpenSubdiv::v3_6_0::Far::PatchTable::GetPatchArrayVertices(int) const */ int1 [16] __thiscall OpenSubdiv::v3_6_0::Far::PatchTable::GetPatchArrayVertices(PatchTable *this,int param_1) { int *piVar1; int iVar2; int1 auVar3 [16]; if ((int)((ulong)(*(long *)(this + 0x10) - *(long *)(this + 8)) >> 2) * -0x33333333 <= param_1) { /* WARNING: Subroutine does not return */ __assert_fail("arrayIndex<(Index)GetNumPatchArrays()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp" ,0x90, "const PatchTable::PatchArray &OpenSubdiv::v3_6_0::Far::PatchTable::getPatchArray(Index) const" ); } piVar1 = (int *)(*(long *)(this + 8) + (long)param_1 * 0x14); iVar2 = -1; if (*piVar1 - 1U < 10) { iVar2 = *(int *)(&DAT_001bbe90 + (ulong)(*piVar1 - 1U) * 4); } if (piVar1[2] < (int)((ulong)(*(long *)(this + 0x28) - *(long *)(this + 0x20)) >> 2)) { auVar3._8_4_ = iVar2 * piVar1[1]; auVar3._0_8_ = *(long *)(this + 0x20) + (long)piVar1[2] * 4; auVar3._12_4_ = 0; return auVar3; } /* WARNING: Subroutine does not return */ __assert_fail("pa.vertIndex<(Index)_patchVerts.size()", "/workspace/llm4binary/github/2025_star3/NVIDIA-RTX[P]OSD-Lite/opensubdiv/far/patchTable.cpp" ,0x11c, "ConstIndexArray OpenSubdiv::v3_6_0::Far::PatchTable::GetPatchArrayVertices(int) const" ); }
31,080
testing::internal::UnitTestImpl::RecordProperty(testing::TestProperty const&)
giladroyz[P]FindPeaks/build_O3/_deps/googletest-src/googletest/src/gtest.cc
void UnitTestImpl::RecordProperty(const TestProperty& test_property) { std::string xml_element; TestResult* test_result; // TestResult appropriate for property recording. if (current_test_info_ != nullptr) { xml_element = "testcase"; test_result = &(current_test_info_->result_); } else if (current_test_suite_ != nullptr) { xml_element = "testsuite"; test_result = &(current_test_suite_->ad_hoc_test_result_); } else { xml_element = "testsuites"; test_result = &ad_hoc_test_result_; } test_result->RecordProperty(xml_element, test_property); }
O3
cpp
testing::internal::UnitTestImpl::RecordProperty(testing::TestProperty const&): pushq %r15 pushq %r14 pushq %rbx subq $0x20, %rsp movq %rsi, %rbx movq %rdi, %r14 leaq 0x10(%rsp), %r15 movq %r15, -0x10(%r15) movq $0x0, -0x8(%r15) movb $0x0, (%r15) cmpq $0x0, 0x1e0(%rdi) je 0x2d0fd leaq 0x164ad(%rip), %rcx # 0x4358a movq %rsp, %rdi movl $0x8, %r8d xorl %esi, %esi xorl %edx, %edx callq 0x88a0 movl $0x90, %edi addq 0x1e0(%r14), %rdi jmp 0x2d151 cmpq $0x0, 0x1d8(%r14) je 0x2d12e leaq 0x16427(%rip), %rcx # 0x43535 movq %rsp, %rdi movl $0x9, %r8d xorl %esi, %esi xorl %edx, %edx callq 0x88a0 movl $0x88, %edi addq 0x1d8(%r14), %rdi jmp 0x2d151 leaq 0x16522(%rip), %rcx # 0x43657 movq %rsp, %rdi movl $0xa, %r8d xorl %esi, %esi xorl %edx, %edx callq 0x88a0 addq $0x1e8, %r14 # imm = 0x1E8 movq %r14, %rdi movq %rsp, %rsi movq %rbx, %rdx callq 0x1f8ae movq (%rsp), %rdi cmpq %r15, %rdi je 0x2d172 movq 0x10(%rsp), %rsi incq %rsi callq 0x84e0 addq $0x20, %rsp popq %rbx popq %r14 popq %r15 retq movq %rax, %rbx movq (%rsp), %rdi cmpq %r15, %rdi je 0x2d195 movq 0x10(%rsp), %rsi incq %rsi callq 0x84e0 movq %rbx, %rdi callq 0x8990 nop
_ZN7testing8internal12UnitTestImpl14RecordPropertyERKNS_12TestPropertyE: push r15 push r14 push rbx sub rsp, 20h mov rbx, rsi mov r14, rdi lea r15, [rsp+38h+var_28] mov [r15-10h], r15 mov qword ptr [r15-8], 0 mov byte ptr [r15], 0 cmp qword ptr [rdi+1E0h], 0 jz short loc_2D0FD lea rcx, aTestcase+5; "testcase" mov rdi, rsp mov r8d, 8 xor esi, esi xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) mov edi, 90h add rdi, [r14+1E0h] jmp short loc_2D151 loc_2D0FD: cmp qword ptr [r14+1D8h], 0 jz short loc_2D12E lea rcx, aTestsuite+3; "testsuite" mov rdi, rsp mov r8d, 9 xor esi, esi xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) mov edi, 88h add rdi, [r14+1D8h] jmp short loc_2D151 loc_2D12E: lea rcx, aTestsuites; "testsuites" mov rdi, rsp mov r8d, 0Ah xor esi, esi xor edx, edx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm; std::string::_M_replace(ulong,ulong,char const*,ulong) add r14, 1E8h mov rdi, r14; this loc_2D151: mov rsi, rsp mov rdx, rbx call _ZN7testing10TestResult14RecordPropertyERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_12TestPropertyE; testing::TestResult::RecordProperty(std::string const&,testing::TestProperty const&) mov rdi, [rsp+38h+var_38]; void * cmp rdi, r15 jz short loc_2D172 mov rsi, [rsp+38h+var_28] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_2D172: add rsp, 20h pop rbx pop r14 pop r15 retn mov rbx, rax mov rdi, [rsp+0]; void * cmp rdi, r15 jz short loc_2D195 mov rsi, [rsp+arg_8] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_2D195: mov rdi, rbx call __Unwind_Resume
void testing::internal::UnitTestImpl::RecordProperty( testing::internal::UnitTestImpl *this, const testing::TestProperty *a2) { testing::internal::MutexBase *v2; // rdi void *v3[2]; // [rsp+0h] [rbp-38h] BYREF _QWORD v4[5]; // [rsp+10h] [rbp-28h] BYREF v3[0] = v4; v3[1] = 0LL; LOBYTE(v4[0]) = 0; if ( *((_QWORD *)this + 60) ) { std::string::_M_replace(v3, 0LL, 0LL, "testcase", 8LL); v2 = (testing::internal::MutexBase *)(*((_QWORD *)this + 60) + 144LL); } else if ( *((_QWORD *)this + 59) ) { std::string::_M_replace(v3, 0LL, 0LL, "testsuite", 9LL); v2 = (testing::internal::MutexBase *)(*((_QWORD *)this + 59) + 136LL); } else { std::string::_M_replace(v3, 0LL, 0LL, "testsuites", 10LL); v2 = (testing::internal::UnitTestImpl *)((char *)this + 488); } testing::TestResult::RecordProperty(v2); if ( v3[0] != v4 ) operator delete(v3[0], v4[0] + 1LL); }
RecordProperty: PUSH R15 PUSH R14 PUSH RBX SUB RSP,0x20 MOV RBX,RSI MOV R14,RDI LEA R15,[RSP + 0x10] MOV qword ptr [R15 + -0x10],R15 MOV qword ptr [R15 + -0x8],0x0 MOV byte ptr [R15],0x0 CMP qword ptr [RDI + 0x1e0],0x0 JZ 0x0012d0fd LAB_0012d0d6: LEA RCX,[0x14358a] MOV RDI,RSP MOV R8D,0x8 XOR ESI,ESI XOR EDX,EDX CALL 0x001088a0 MOV EDI,0x90 ADD RDI,qword ptr [R14 + 0x1e0] JMP 0x0012d151 LAB_0012d0fd: CMP qword ptr [R14 + 0x1d8],0x0 JZ 0x0012d12e LEA RCX,[0x143535] MOV RDI,RSP MOV R8D,0x9 XOR ESI,ESI XOR EDX,EDX CALL 0x001088a0 MOV EDI,0x88 ADD RDI,qword ptr [R14 + 0x1d8] JMP 0x0012d151 LAB_0012d12e: LEA RCX,[0x143657] MOV RDI,RSP MOV R8D,0xa XOR ESI,ESI XOR EDX,EDX CALL 0x001088a0 ADD R14,0x1e8 MOV RDI,R14 LAB_0012d151: MOV RSI,RSP MOV RDX,RBX CALL 0x0011f8ae LAB_0012d15c: MOV RDI,qword ptr [RSP] CMP RDI,R15 JZ 0x0012d172 MOV RSI,qword ptr [RSP + 0x10] INC RSI CALL 0x001084e0 LAB_0012d172: ADD RSP,0x20 POP RBX POP R14 POP R15 RET
/* testing::internal::UnitTestImpl::RecordProperty(testing::TestProperty const&) */ void __thiscall testing::internal::UnitTestImpl::RecordProperty(UnitTestImpl *this,TestProperty *param_1) { TestResult *this_00; int1 *local_38; int8 local_30; int1 local_28; int7 uStack_27; local_30 = 0; local_28 = 0; local_38 = &local_28; if (*(long *)(this + 0x1e0) == 0) { if (*(long *)(this + 0x1d8) == 0) { std::__cxx11::string::_M_replace((ulong)&local_38,0,(char *)0x0,0x143657); this_00 = (TestResult *)(this + 0x1e8); } else { std::__cxx11::string::_M_replace((ulong)&local_38,0,(char *)0x0,0x143535); this_00 = (TestResult *)(*(long *)(this + 0x1d8) + 0x88); } } else { /* try { // try from 0012d0d6 to 0012d15b has its CatchHandler @ 0012d17c */ std::__cxx11::string::_M_replace((ulong)&local_38,0,(char *)0x0,0x14358a); this_00 = (TestResult *)(*(long *)(this + 0x1e0) + 0x90); } TestResult::RecordProperty(this_00,(string *)&local_38,param_1); if (local_38 != &local_28) { operator_delete(local_38,CONCAT71(uStack_27,local_28) + 1); } return; }
31,081
my_numcells_eucjpms
eloqsql/strings/ctype-eucjpms.c
static size_t my_numcells_eucjpms(CHARSET_INFO *cs __attribute__((unused)), const char *str, const char *str_end) { size_t clen; const uchar *b= (const uchar *) str; const uchar *e= (const uchar *) str_end; for (clen= 0; b < e; ) { if (*b == 0x8E) { clen++; b+= 2; } else if (*b == 0x8F) { clen+= 2; b+= 3; } else if (*b & 0x80) { clen+= 2; b+= 2; } else { clen++; b++; } } return clen; }
O0
c
my_numcells_eucjpms: pushq %rbp movq %rsp, %rbp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x10(%rbp), %rax movq %rax, -0x28(%rbp) movq -0x18(%rbp), %rax movq %rax, -0x30(%rbp) movq $0x0, -0x20(%rbp) movq -0x28(%rbp), %rax cmpq -0x30(%rbp), %rax jae 0x40ed2 movq -0x28(%rbp), %rax movzbl (%rax), %eax cmpl $0x8e, %eax jne 0x40e5e movq -0x20(%rbp), %rax addq $0x1, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rax addq $0x2, %rax movq %rax, -0x28(%rbp) jmp 0x40ecd movq -0x28(%rbp), %rax movzbl (%rax), %eax cmpl $0x8f, %eax jne 0x40e86 movq -0x20(%rbp), %rax addq $0x2, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rax addq $0x3, %rax movq %rax, -0x28(%rbp) jmp 0x40ecb movq -0x28(%rbp), %rax movzbl (%rax), %eax andl $0x80, %eax cmpl $0x0, %eax je 0x40eb1 movq -0x20(%rbp), %rax addq $0x2, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rax addq $0x2, %rax movq %rax, -0x28(%rbp) jmp 0x40ec9 movq -0x20(%rbp), %rax addq $0x1, %rax movq %rax, -0x20(%rbp) movq -0x28(%rbp), %rax addq $0x1, %rax movq %rax, -0x28(%rbp) jmp 0x40ecb jmp 0x40ecd jmp 0x40e28 movq -0x20(%rbp), %rax popq %rbp retq nopl (%rax,%rax)
my_numcells_eucjpms: push rbp mov rbp, rsp mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rax, [rbp+var_10] mov [rbp+var_28], rax mov rax, [rbp+var_18] mov [rbp+var_30], rax mov [rbp+var_20], 0 loc_40E28: mov rax, [rbp+var_28] cmp rax, [rbp+var_30] jnb loc_40ED2 mov rax, [rbp+var_28] movzx eax, byte ptr [rax] cmp eax, 8Eh jnz short loc_40E5E mov rax, [rbp+var_20] add rax, 1 mov [rbp+var_20], rax mov rax, [rbp+var_28] add rax, 2 mov [rbp+var_28], rax jmp short loc_40ECD loc_40E5E: mov rax, [rbp+var_28] movzx eax, byte ptr [rax] cmp eax, 8Fh jnz short loc_40E86 mov rax, [rbp+var_20] add rax, 2 mov [rbp+var_20], rax mov rax, [rbp+var_28] add rax, 3 mov [rbp+var_28], rax jmp short loc_40ECB loc_40E86: mov rax, [rbp+var_28] movzx eax, byte ptr [rax] and eax, 80h cmp eax, 0 jz short loc_40EB1 mov rax, [rbp+var_20] add rax, 2 mov [rbp+var_20], rax mov rax, [rbp+var_28] add rax, 2 mov [rbp+var_28], rax jmp short loc_40EC9 loc_40EB1: mov rax, [rbp+var_20] add rax, 1 mov [rbp+var_20], rax mov rax, [rbp+var_28] add rax, 1 mov [rbp+var_28], rax loc_40EC9: jmp short $+2 loc_40ECB: jmp short $+2 loc_40ECD: jmp loc_40E28 loc_40ED2: mov rax, [rbp+var_20] pop rbp retn
long long my_numcells_eucjpms(long long a1, _BYTE *a2, unsigned long long a3) { long long v5; // [rsp+10h] [rbp-20h] v5 = 0LL; while ( (unsigned long long)a2 < a3 ) { if ( (unsigned __int8)*a2 == 142 ) { ++v5; a2 += 2; } else if ( (unsigned __int8)*a2 == 143 ) { v5 += 2LL; a2 += 3; } else if ( (*a2 & 0x80) != 0 ) { v5 += 2LL; a2 += 2; } else { ++v5; ++a2; } } return v5; }
my_numcells_eucjpms: PUSH RBP MOV RBP,RSP MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RAX,qword ptr [RBP + -0x10] MOV qword ptr [RBP + -0x28],RAX MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RBP + -0x30],RAX MOV qword ptr [RBP + -0x20],0x0 LAB_00140e28: MOV RAX,qword ptr [RBP + -0x28] CMP RAX,qword ptr [RBP + -0x30] JNC 0x00140ed2 MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0x8e JNZ 0x00140e5e MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x1 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x2 MOV qword ptr [RBP + -0x28],RAX JMP 0x00140ecd LAB_00140e5e: MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX] CMP EAX,0x8f JNZ 0x00140e86 MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x2 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x3 MOV qword ptr [RBP + -0x28],RAX JMP 0x00140ecb LAB_00140e86: MOV RAX,qword ptr [RBP + -0x28] MOVZX EAX,byte ptr [RAX] AND EAX,0x80 CMP EAX,0x0 JZ 0x00140eb1 MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x2 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x2 MOV qword ptr [RBP + -0x28],RAX JMP 0x00140ec9 LAB_00140eb1: MOV RAX,qword ptr [RBP + -0x20] ADD RAX,0x1 MOV qword ptr [RBP + -0x20],RAX MOV RAX,qword ptr [RBP + -0x28] ADD RAX,0x1 MOV qword ptr [RBP + -0x28],RAX LAB_00140ec9: JMP 0x00140ecb LAB_00140ecb: JMP 0x00140ecd LAB_00140ecd: JMP 0x00140e28 LAB_00140ed2: MOV RAX,qword ptr [RBP + -0x20] POP RBP RET
long my_numcells_eucjpms(int8 param_1,byte *param_2,byte *param_3) { byte *local_30; long local_28; local_28 = 0; local_30 = param_2; while (local_30 < param_3) { if (*local_30 == 0x8e) { local_28 = local_28 + 1; local_30 = local_30 + 2; } else if (*local_30 == 0x8f) { local_28 = local_28 + 2; local_30 = local_30 + 3; } else if ((*local_30 & 0x80) == 0) { local_28 = local_28 + 1; local_30 = local_30 + 1; } else { local_28 = local_28 + 2; local_30 = local_30 + 2; } } return local_28; }
31,082
bootrom_table_lookup_rp2350(memory_access&, unsigned short, unsigned short)
msxemulator/build_O3/_deps/picotool-src/main.cpp
uint32_t bootrom_table_lookup_rp2350(memory_access& access, uint16_t tag, uint16_t flags) { model_t model = get_model(access); // we are only used on RP2350 if (model != rp2350) { fail(ERROR_INCOMPATIBLE, "RP2350 BOOT ROM not found"); } // dereference the table pointer uint32_t table_entry = access.read_short(BOOTROM_MAGIC_ADDR + 4); uint16_t entry_tag, entry_flags; do { entry_tag = access.read_short(table_entry); entry_flags = access.read_short(table_entry + 2); uint16_t matching_flags = flags & entry_flags; table_entry += 4; if (tag == entry_tag && matching_flags != 0) { /* This is our entry, seek to the correct data item and return it. */ bool is_riscv_func = matching_flags & RT_FLAG_FUNC_RISCV; while (!(matching_flags & 1)) { if (entry_flags & 1) { table_entry += 2; } matching_flags >>= 1; entry_flags >>= 1; } if (is_riscv_func) { /* For RISC-V, the table entry itself is the entry point -- trick to make shared function implementations smaller */ return table_entry; } else { return access.read_short(table_entry); } } else { /* Skip past this entry */ while (entry_flags) { if (entry_flags & 1) { table_entry += 2; } entry_flags >>= 1; } } } while (entry_tag); fail(ERROR_INCOMPATIBLE, "Entry not found in BOOT ROM"); return 0; }
O3
cpp
bootrom_table_lookup_rp2350(memory_access&, unsigned short, unsigned short): pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movl %edx, %ebx movl %esi, %ebp movq %rdi, %r14 movq (%rdi), %rax leaq 0x14(%rsp), %r15 movl $0x10, %esi movq %r15, %rdx movl $0x4, %ecx callq *(%rax) movl $0xffffff, %eax # imm = 0xFFFFFF andl (%r15), %eax cmpl $0x2754d, %eax # imm = 0x2754D je 0x200ad leaq 0x845ec(%rip), %rsi # 0xa468d movl $0xfffffffd, %edi # imm = 0xFFFFFFFD xorl %eax, %eax callq 0x7b492 movq (%r14), %rax leaq 0x12(%rsp), %r15 movq %r14, %rdi movl $0x14, %esi movq %r15, %rdx movl $0x2, %ecx callq *(%rax) movzwl (%r15), %r15d movq (%r14), %rax movq %r14, %rdi movl %r15d, %esi leaq 0xc(%rsp), %rdx movl $0x2, %ecx callq *(%rax) movzwl 0xc(%rsp), %r13d leal 0x2(%r15), %esi movq (%r14), %rax movq %r14, %rdi leaq 0xe(%rsp), %rdx movl $0x2, %ecx callq *(%rax) movzwl 0xe(%rsp), %ecx addl $0x4, %r15d cmpw %bp, %r13w setne %dl movl %ecx, %eax andw %bx, %ax sete %r12b orb %dl, %r12b cmpb $0x1, %r12b jne 0x20139 testw %cx, %cx je 0x20187 movzwl %cx, %eax andl $0x1, %ecx leal (%r15,%rcx,2), %r15d movl %eax, %ecx shrl %ecx cmpw $0x1, %ax ja 0x20123 jmp 0x20182 testb $0x1, %al jne 0x201ae movzwl %cx, %ecx movl %eax, %edx movl %ecx, %esi andl $0x1, %esi leal (%r15,%rsi,2), %r15d movzwl %dx, %esi shrl %esi shrl %ecx testb $0x2, %dl movl %esi, %edx je 0x20142 testb $0x1, %al jne 0x2017d movq (%r14), %rax movq %r14, %rdi movl %r15d, %esi leaq 0x10(%rsp), %rdx movl $0x2, %ecx callq *(%rax) movzwl 0x10(%rsp), %eax movl %eax, 0x8(%rsp) jmp 0x20182 movl %r15d, 0x8(%rsp) testb %r12b, %r12b je 0x201b3 testw %r13w, %r13w jne 0x200cb leaq 0x8450f(%rip), %rsi # 0xa46a7 movl $0x0, 0x8(%rsp) movl $0xfffffffd, %edi # imm = 0xFFFFFFFD xorl %eax, %eax callq 0x7b492 jmp 0x201b3 movl %r15d, 0x8(%rsp) movl 0x8(%rsp), %eax addq $0x18, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
_Z27bootrom_table_lookup_rp2350R13memory_accesstt: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 18h mov ebx, edx mov ebp, esi mov r14, rdi mov rax, [rdi] lea r15, [rsp+48h+var_34] mov esi, 10h mov rdx, r15 mov ecx, 4 call qword ptr [rax] mov eax, 0FFFFFFh and eax, [r15] cmp eax, 2754Dh jz short loc_200AD lea rsi, aRp2350BootRomN; "RP2350 BOOT ROM not found" mov edi, 0FFFFFFFDh; int xor eax, eax call _Z4failiPKcz; fail(int,char const*,...) loc_200AD: mov rax, [r14] lea r15, [rsp+48h+var_36] mov rdi, r14 mov esi, 14h mov rdx, r15 mov ecx, 2 call qword ptr [rax] movzx r15d, word ptr [r15] loc_200CB: mov rax, [r14] mov rdi, r14 mov esi, r15d lea rdx, [rsp+48h+var_3C] mov ecx, 2 call qword ptr [rax] movzx r13d, [rsp+48h+var_3C] lea esi, [r15+2] mov rax, [r14] mov rdi, r14 lea rdx, [rsp+48h+var_3A] mov ecx, 2 call qword ptr [rax] movzx ecx, [rsp+48h+var_3A] add r15d, 4 cmp r13w, bp setnz dl mov eax, ecx and ax, bx setz r12b or r12b, dl cmp r12b, 1 jnz short loc_20139 test cx, cx jz short loc_20187 loc_20123: movzx eax, cx and ecx, 1 lea r15d, [r15+rcx*2] mov ecx, eax shr ecx, 1 cmp ax, 1 ja short loc_20123 jmp short loc_20182 loc_20139: test al, 1 jnz short loc_201AE movzx ecx, cx mov edx, eax loc_20142: mov esi, ecx and esi, 1 lea r15d, [r15+rsi*2] movzx esi, dx shr esi, 1 shr ecx, 1 test dl, 2 mov edx, esi jz short loc_20142 test al, 1 jnz short loc_2017D mov rax, [r14] mov rdi, r14 mov esi, r15d lea rdx, [rsp+48h+var_38] mov ecx, 2 call qword ptr [rax] movzx eax, [rsp+48h+var_38] mov [rsp+48h+var_40], eax jmp short loc_20182 loc_2017D: mov [rsp+48h+var_40], r15d loc_20182: test r12b, r12b jz short loc_201B3 loc_20187: test r13w, r13w jnz loc_200CB lea rsi, aEntryNotFoundI; "Entry not found in BOOT ROM" mov [rsp+48h+var_40], 0 mov edi, 0FFFFFFFDh; int xor eax, eax call _Z4failiPKcz; fail(int,char const*,...) jmp short loc_201B3 loc_201AE: mov [rsp+48h+var_40], r15d loc_201B3: mov eax, [rsp+48h+var_40] add rsp, 18h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long bootrom_table_lookup_rp2350(memory_access *a1, __int16 a2, unsigned __int16 a3) { unsigned int v4; // r15d __int16 v5; // r13 int v6; // ecx char v7; // al bool v8; // r12 unsigned __int16 v9; // ax unsigned int v10; // ecx int v11; // edx bool v12; // zf unsigned int v14; // [rsp+8h] [rbp-40h] __int16 v15; // [rsp+Ch] [rbp-3Ch] BYREF unsigned __int16 v16; // [rsp+Eh] [rbp-3Ah] BYREF unsigned __int16 v17; // [rsp+10h] [rbp-38h] BYREF unsigned __int16 v18; // [rsp+12h] [rbp-36h] BYREF _DWORD v19[13]; // [rsp+14h] [rbp-34h] BYREF (**(void ( ***)(memory_access *, long long, _DWORD *, long long))a1)(a1, 16LL, v19, 4LL); if ( (v19[0] & 0xFFFFFF) != 0x2754D ) fail(-3, "RP2350 BOOT ROM not found"); (**(void ( ***)(memory_access *, long long, unsigned __int16 *, long long))a1)(a1, 20LL, &v18, 2LL); v4 = v18; while ( 1 ) { (**(void ( ***)(memory_access *, _QWORD, __int16 *, long long))a1)(a1, v4, &v15, 2LL); v5 = v15; (**(void ( ***)(memory_access *, _QWORD, unsigned __int16 *, long long))a1)(a1, v4 + 2, &v16, 2LL); LOWORD(v6) = v16; v4 += 4; v7 = a3 & v16; v8 = v5 != a2 || (a3 & v16) == 0; if ( !v8 ) break; if ( !v16 ) goto LABEL_15; do { v9 = v6; v4 += 2 * (v6 & 1); v6 = (unsigned __int16)v6 >> 1; } while ( v9 > 1u ); LABEL_14: if ( !v8 ) return v14; LABEL_15: if ( !v5 ) fail(-3, "Entry not found in BOOT ROM"); } if ( (v7 & 1) == 0 ) { v10 = v16; LOWORD(v11) = a3 & v16; do { v4 += 2 * (v10 & 1); v10 >>= 1; v12 = (v11 & 2) == 0; v11 = (unsigned __int16)v11 >> 1; } while ( v12 ); if ( (v7 & 1) != 0 ) { v14 = v4; } else { (**(void ( ***)(memory_access *, _QWORD, unsigned __int16 *, long long))a1)(a1, v4, &v17, 2LL); v14 = v17; } goto LABEL_14; } return v4; }
bootrom_table_lookup_rp2350: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x18 MOV EBX,EDX MOV EBP,ESI MOV R14,RDI MOV RAX,qword ptr [RDI] LEA R15,[RSP + 0x14] MOV ESI,0x10 MOV RDX,R15 MOV ECX,0x4 CALL qword ptr [RAX] MOV EAX,0xffffff AND EAX,dword ptr [R15] CMP EAX,0x2754d JZ 0x001200ad LEA RSI,[0x1a468d] MOV EDI,0xfffffffd XOR EAX,EAX CALL 0x0017b492 LAB_001200ad: MOV RAX,qword ptr [R14] LEA R15,[RSP + 0x12] MOV RDI,R14 MOV ESI,0x14 MOV RDX,R15 MOV ECX,0x2 CALL qword ptr [RAX] MOVZX R15D,word ptr [R15] LAB_001200cb: MOV RAX,qword ptr [R14] MOV RDI,R14 MOV ESI,R15D LEA RDX,[RSP + 0xc] MOV ECX,0x2 CALL qword ptr [RAX] MOVZX R13D,word ptr [RSP + 0xc] LEA ESI,[R15 + 0x2] MOV RAX,qword ptr [R14] MOV RDI,R14 LEA RDX,[RSP + 0xe] MOV ECX,0x2 CALL qword ptr [RAX] MOVZX ECX,word ptr [RSP + 0xe] ADD R15D,0x4 CMP R13W,BP SETNZ DL MOV EAX,ECX AND AX,BX SETZ R12B OR R12B,DL CMP R12B,0x1 JNZ 0x00120139 TEST CX,CX JZ 0x00120187 LAB_00120123: MOVZX EAX,CX AND ECX,0x1 LEA R15D,[R15 + RCX*0x2] MOV ECX,EAX SHR ECX,0x1 CMP AX,0x1 JA 0x00120123 JMP 0x00120182 LAB_00120139: TEST AL,0x1 JNZ 0x001201ae MOVZX ECX,CX MOV EDX,EAX LAB_00120142: MOV ESI,ECX AND ESI,0x1 LEA R15D,[R15 + RSI*0x2] MOVZX ESI,DX SHR ESI,0x1 SHR ECX,0x1 TEST DL,0x2 MOV EDX,ESI JZ 0x00120142 TEST AL,0x1 JNZ 0x0012017d MOV RAX,qword ptr [R14] MOV RDI,R14 MOV ESI,R15D LEA RDX,[RSP + 0x10] MOV ECX,0x2 CALL qword ptr [RAX] MOVZX EAX,word ptr [RSP + 0x10] MOV dword ptr [RSP + 0x8],EAX JMP 0x00120182 LAB_0012017d: MOV dword ptr [RSP + 0x8],R15D LAB_00120182: TEST R12B,R12B JZ 0x001201b3 LAB_00120187: TEST R13W,R13W JNZ 0x001200cb LEA RSI,[0x1a46a7] MOV dword ptr [RSP + 0x8],0x0 MOV EDI,0xfffffffd XOR EAX,EAX CALL 0x0017b492 JMP 0x001201b3 LAB_001201ae: MOV dword ptr [RSP + 0x8],R15D LAB_001201b3: MOV EAX,dword ptr [RSP + 0x8] ADD RSP,0x18 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
/* bootrom_table_lookup_rp2350(memory_access&, unsigned short, unsigned short) */ uint bootrom_table_lookup_rp2350(memory_access *param_1,ushort param_2,ushort param_3) { ulong uVar1; ushort uVar2; ushort uVar3; ushort uVar4; uint uVar5; ulong uVar6; uint uVar7; uint local_40; ushort local_3c; ushort local_3a; ushort local_38; ushort local_36; uint local_34; (*(code *)**(int8 **)param_1)(param_1,0x10,&local_34,4); if ((local_34 & 0xffffff) != 0x2754d) { fail(-3,"RP2350 BOOT ROM not found"); } (*(code *)**(int8 **)param_1)(param_1,0x14,&local_36,2); uVar7 = (uint)local_36; do { (*(code *)**(int8 **)param_1)(param_1,uVar7,&local_3c,2); uVar2 = local_3c; (*(code *)**(int8 **)param_1)(param_1,uVar7 + 2,&local_3a,2); uVar7 = uVar7 + 4; uVar3 = local_3a & param_3; if (uVar3 != 0 && uVar2 == param_2) { if ((uVar3 & 1) != 0) { return uVar7; } uVar5 = (uint)local_3a; uVar6 = (ulong)uVar3; do { uVar7 = uVar7 + (uVar5 & 1) * 2; uVar5 = uVar5 >> 1; uVar1 = uVar6 & 2; uVar6 = uVar6 >> 1; } while (uVar1 == 0); local_40 = uVar7; if ((uVar3 & 1) == 0) { (*(code *)**(int8 **)param_1)(param_1,uVar7,&local_38,2); local_40 = (uint)local_38; } LAB_00120182: if (uVar3 != 0 && uVar2 == param_2) { return local_40; } } else { uVar5 = (uint)local_3a; if (local_3a != 0) { do { uVar7 = uVar7 + (uVar5 & 1) * 2; uVar4 = (ushort)uVar5; uVar5 = uVar5 >> 1; } while (1 < uVar4); goto LAB_00120182; } } if (uVar2 == 0) { fail(-3,"Entry not found in BOOT ROM"); return 0; } } while( true ); }
31,083
ggml_opt_dataset_shuffle
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-opt.cpp
void ggml_opt_dataset_shuffle(ggml_opt_context_t opt_ctx, ggml_opt_dataset_t dataset, int64_t idata) { GGML_ASSERT(idata <= dataset->ndata); if (idata < 0) { std::shuffle(dataset->permutation.begin(), dataset->permutation.end(), opt_ctx->rng); return; } GGML_ASSERT(idata % dataset->ndata_shard == 0); const int64_t ishard_max = idata / dataset->ndata_shard; std::shuffle(dataset->permutation.begin(), dataset->permutation.begin() + ishard_max, opt_ctx->rng); }
O0
cpp
ggml_opt_dataset_shuffle: pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq %rdx, -0x18(%rbp) movq -0x18(%rbp), %rax movq -0x10(%rbp), %rcx cmpq 0x20(%rcx), %rax jle 0x645a3 leaq 0x513b7(%rip), %rdi # 0xb5940 movl $0x83, %esi leaq 0x4d074(%rip), %rdx # 0xb1609 leaq 0x51435(%rip), %rcx # 0xb59d1 movb $0x0, %al callq 0x48a00 cmpq $0x0, -0x18(%rbp) jge 0x645e6 movq -0x10(%rbp), %rdi addq $0x40, %rdi callq 0x49ab0 movq %rax, -0x20(%rbp) movq -0x10(%rbp), %rdi addq $0x40, %rdi callq 0x46f40 movq %rax, -0x28(%rbp) movq -0x8(%rbp), %rdx addq $0x48, %rdx movq -0x20(%rbp), %rdi movq -0x28(%rbp), %rsi callq 0x42d60 jmp 0x64675 movq -0x18(%rbp), %rax movq -0x10(%rbp), %rcx cqto idivq 0x28(%rcx) cmpq $0x0, %rdx je 0x6461b leaq 0x5133f(%rip), %rdi # 0xb5940 movl $0x8a, %esi leaq 0x4cffc(%rip), %rdx # 0xb1609 leaq 0x513d5(%rip), %rcx # 0xb59e9 movb $0x0, %al callq 0x48a00 movq -0x18(%rbp), %rax movq -0x10(%rbp), %rcx cqto idivq 0x28(%rcx) movq %rax, -0x30(%rbp) movq -0x10(%rbp), %rdi addq $0x40, %rdi callq 0x49ab0 movq %rax, -0x38(%rbp) movq -0x10(%rbp), %rdi addq $0x40, %rdi callq 0x49ab0 movq %rax, -0x48(%rbp) movq -0x30(%rbp), %rsi leaq -0x48(%rbp), %rdi callq 0x47970 movq %rax, -0x40(%rbp) movq -0x8(%rbp), %rdx addq $0x48, %rdx movq -0x38(%rbp), %rdi movq -0x40(%rbp), %rsi callq 0x42d60 addq $0x50, %rsp popq %rbp retq nopl (%rax,%rax)
ggml_opt_dataset_shuffle: push rbp mov rbp, rsp sub rsp, 50h mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov [rbp+var_18], rdx mov rax, [rbp+var_18] mov rcx, [rbp+var_10] cmp rax, [rcx+20h] jle short loc_645A3 lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"... mov esi, 83h lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aIdataDatasetNd; "idata <= dataset->ndata" mov al, 0 call _ggml_abort loc_645A3: cmp [rbp+var_18], 0 jge short loc_645E6 mov rdi, [rbp+var_10] add rdi, 40h ; '@' call __ZNSt6vectorIlSaIlEE5beginEv; std::vector<long>::begin(void) mov [rbp+var_20], rax mov rdi, [rbp+var_10] add rdi, 40h ; '@' call __ZNSt6vectorIlSaIlEE3endEv; std::vector<long>::end(void) mov [rbp+var_28], rax mov rdx, [rbp+var_8] add rdx, 48h ; 'H' mov rdi, [rbp+var_20] mov rsi, [rbp+var_28] call __ZSt7shuffleIN9__gnu_cxx17__normal_iteratorIPlSt6vectorIlSaIlEEEERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEvT_SA_OT0_; std::shuffle<__gnu_cxx::__normal_iterator<long *,std::vector<long>>,std::mersenne_twister_engine<ulong,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul> &>(__gnu_cxx::__normal_iterator<long *,std::vector<long>>,__gnu_cxx::__normal_iterator<long *,std::vector<long>>,std::mersenne_twister_engine<ulong,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul> &) jmp loc_64675 loc_645E6: mov rax, [rbp+var_18] mov rcx, [rbp+var_10] cqo idiv qword ptr [rcx+28h] cmp rdx, 0 jz short loc_6461B lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"... mov esi, 8Ah lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aIdataDatasetNd_0; "idata % dataset->ndata_shard == 0" mov al, 0 call _ggml_abort loc_6461B: mov rax, [rbp+var_18] mov rcx, [rbp+var_10] cqo idiv qword ptr [rcx+28h] mov [rbp+var_30], rax mov rdi, [rbp+var_10] add rdi, 40h ; '@' call __ZNSt6vectorIlSaIlEE5beginEv; std::vector<long>::begin(void) mov [rbp+var_38], rax mov rdi, [rbp+var_10] add rdi, 40h ; '@' call __ZNSt6vectorIlSaIlEE5beginEv; std::vector<long>::begin(void) mov [rbp+var_48], rax mov rsi, [rbp+var_30] lea rdi, [rbp+var_48] call __ZNK9__gnu_cxx17__normal_iteratorIPlSt6vectorIlSaIlEEEplEl; __gnu_cxx::__normal_iterator<long *,std::vector<long>>::operator+(long) mov [rbp+var_40], rax mov rdx, [rbp+var_8] add rdx, 48h ; 'H' mov rdi, [rbp+var_38] mov rsi, [rbp+var_40] call __ZSt7shuffleIN9__gnu_cxx17__normal_iteratorIPlSt6vectorIlSaIlEEEERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEvT_SA_OT0_; std::shuffle<__gnu_cxx::__normal_iterator<long *,std::vector<long>>,std::mersenne_twister_engine<ulong,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul> &>(__gnu_cxx::__normal_iterator<long *,std::vector<long>>,__gnu_cxx::__normal_iterator<long *,std::vector<long>>,std::mersenne_twister_engine<ulong,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul> &) loc_64675: add rsp, 50h pop rbp retn
long long ggml_opt_dataset_shuffle(long long a1, long long a2, long long a3) { long long v4; // rdx long long v5; // rdx long long v6; // [rsp+8h] [rbp-48h] BYREF long long v7; // [rsp+10h] [rbp-40h] long long v8; // [rsp+18h] [rbp-38h] long long v9; // [rsp+20h] [rbp-30h] long long v10; // [rsp+28h] [rbp-28h] long long v11; // [rsp+30h] [rbp-20h] long long v12; // [rsp+38h] [rbp-18h] long long v13; // [rsp+40h] [rbp-10h] long long v14; // [rsp+48h] [rbp-8h] v14 = a1; v13 = a2; v12 = a3; if ( a3 > *(_QWORD *)(a2 + 32) ) ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-opt.cpp", 131, (long long)"GGML_ASSERT(%s) failed", "idata <= dataset->ndata"); if ( v12 >= 0 ) { if ( v12 % *(_QWORD *)(v13 + 40) ) ggml_abort( "/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-opt.cpp", 138, (long long)"GGML_ASSERT(%s) failed", "idata % dataset->ndata_shard == 0"); v4 = v12 % *(_QWORD *)(v13 + 40); v9 = v12 / *(_QWORD *)(v13 + 40); v8 = std::vector<long>::begin(v13 + 64, a2, v4); v6 = std::vector<long>::begin(v13 + 64, a2, v5); v7 = __gnu_cxx::__normal_iterator<long *,std::vector<long>>::operator+(&v6, v9); return std::shuffle<__gnu_cxx::__normal_iterator<long *,std::vector<long>>,std::mersenne_twister_engine<unsigned long,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul> &>( v8, v7, v14 + 72); } else { v11 = std::vector<long>::begin(v13 + 64, a2, a3); v10 = std::vector<long>::end(v13 + 64); return std::shuffle<__gnu_cxx::__normal_iterator<long *,std::vector<long>>,std::mersenne_twister_engine<unsigned long,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul> &>( v11, v10, v14 + 72); } }
ggml_opt_dataset_shuffle: PUSH RBP MOV RBP,RSP SUB RSP,0x50 MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV qword ptr [RBP + -0x18],RDX MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] CMP RAX,qword ptr [RCX + 0x20] JLE 0x001645a3 LEA RDI,[0x1b5940] MOV ESI,0x83 LEA RDX,[0x1b1609] LEA RCX,[0x1b59d1] MOV AL,0x0 CALL 0x00148a00 LAB_001645a3: CMP qword ptr [RBP + -0x18],0x0 JGE 0x001645e6 MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x40 CALL 0x00149ab0 MOV qword ptr [RBP + -0x20],RAX MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x40 CALL 0x00146f40 MOV qword ptr [RBP + -0x28],RAX MOV RDX,qword ptr [RBP + -0x8] ADD RDX,0x48 MOV RDI,qword ptr [RBP + -0x20] MOV RSI,qword ptr [RBP + -0x28] CALL 0x00142d60 JMP 0x00164675 LAB_001645e6: MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] CQO IDIV qword ptr [RCX + 0x28] CMP RDX,0x0 JZ 0x0016461b LEA RDI,[0x1b5940] MOV ESI,0x8a LEA RDX,[0x1b1609] LEA RCX,[0x1b59e9] MOV AL,0x0 CALL 0x00148a00 LAB_0016461b: MOV RAX,qword ptr [RBP + -0x18] MOV RCX,qword ptr [RBP + -0x10] CQO IDIV qword ptr [RCX + 0x28] MOV qword ptr [RBP + -0x30],RAX MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x40 CALL 0x00149ab0 MOV qword ptr [RBP + -0x38],RAX MOV RDI,qword ptr [RBP + -0x10] ADD RDI,0x40 CALL 0x00149ab0 MOV qword ptr [RBP + -0x48],RAX MOV RSI,qword ptr [RBP + -0x30] LEA RDI,[RBP + -0x48] CALL 0x00147970 MOV qword ptr [RBP + -0x40],RAX MOV RDX,qword ptr [RBP + -0x8] ADD RDX,0x48 MOV RDI,qword ptr [RBP + -0x38] MOV RSI,qword ptr [RBP + -0x40] CALL 0x00142d60 LAB_00164675: ADD RSP,0x50 POP RBP RET
void ggml_opt_dataset_shuffle(long param_1,long param_2,long param_3) { int8 local_50; int8 local_48; int8 local_40; long local_38; int8 local_30; int8 local_28; long local_20; long local_18; long local_10; local_20 = param_3; local_18 = param_2; local_10 = param_1; if (*(long *)(param_2 + 0x20) < param_3) { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-opt.cpp" ,0x83,"GGML_ASSERT(%s) failed","idata <= dataset->ndata"); } if (local_20 < 0) { local_28 = std::vector<long,std::allocator<long>>::begin ((vector<long,std::allocator<long>> *)(local_18 + 0x40)); local_30 = std::vector<long,std::allocator<long>>::end ((vector<long,std::allocator<long>> *)(local_18 + 0x40)); std:: shuffle<__gnu_cxx::__normal_iterator<long*,std::vector<long,std::allocator<long>>>,std::mersenne_twister_engine<unsigned_long,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul>&> (local_28,local_30,local_10 + 0x48); } else { if (local_20 % *(long *)(local_18 + 0x28) != 0) { ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-opt.cpp" ,0x8a,"GGML_ASSERT(%s) failed","idata % dataset->ndata_shard == 0"); } local_38 = local_20 / *(long *)(local_18 + 0x28); local_40 = std::vector<long,std::allocator<long>>::begin ((vector<long,std::allocator<long>> *)(local_18 + 0x40)); local_50 = std::vector<long,std::allocator<long>>::begin ((vector<long,std::allocator<long>> *)(local_18 + 0x40)); local_48 = __gnu_cxx::__normal_iterator<long*,std::vector<long,std::allocator<long>>>::operator+ ((__normal_iterator<long*,std::vector<long,std::allocator<long>>> *) &local_50,local_38); std:: shuffle<__gnu_cxx::__normal_iterator<long*,std::vector<long,std::allocator<long>>>,std::mersenne_twister_engine<unsigned_long,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul>&> (local_40,local_48,local_10 + 0x48); } return; }
31,084
ggml_opt_dataset_shuffle
Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-opt.cpp
void ggml_opt_dataset_shuffle(ggml_opt_context_t opt_ctx, ggml_opt_dataset_t dataset, int64_t idata) { GGML_ASSERT(idata <= dataset->ndata); if (idata < 0) { std::shuffle(dataset->permutation.begin(), dataset->permutation.end(), opt_ctx->rng); return; } GGML_ASSERT(idata % dataset->ndata_shard == 0); const int64_t ishard_max = idata / dataset->ndata_shard; std::shuffle(dataset->permutation.begin(), dataset->permutation.begin() + ishard_max, opt_ctx->rng); }
O1
cpp
ggml_opt_dataset_shuffle: pushq %rax cmpq %rdx, 0x20(%rsi) jl 0x2ae5c movq %rdi, %rcx testq %rdx, %rdx js 0x2ae47 movq %rdx, %rax cqto idivq 0x28(%rsi) testq %rdx, %rdx jne 0x2ae78 movq 0x40(%rsi), %rdi leaq (%rdi,%rax,8), %rsi jmp 0x2ae4f movq 0x40(%rsi), %rdi movq 0x48(%rsi), %rsi addq $0x48, %rcx movq %rcx, %rdx popq %rax jmp 0x17380 leaq 0x25645(%rip), %rdi # 0x504a8 leaq 0x21757(%rip), %rdx # 0x4c5c1 leaq 0x256c8(%rip), %rcx # 0x50539 movl $0x83, %esi jmp 0x2ae92 leaq 0x25629(%rip), %rdi # 0x504a8 leaq 0x2173b(%rip), %rdx # 0x4c5c1 leaq 0x256c4(%rip), %rcx # 0x50551 movl $0x8a, %esi xorl %eax, %eax callq 0x18ce0
ggml_opt_dataset_shuffle: push rax cmp [rsi+20h], rdx jl short loc_2AE5C mov rcx, rdi test rdx, rdx js short loc_2AE47 mov rax, rdx cqo idiv qword ptr [rsi+28h] test rdx, rdx jnz short loc_2AE78 mov rdi, [rsi+40h] lea rsi, [rdi+rax*8] jmp short loc_2AE4F loc_2AE47: mov rdi, [rsi+40h] mov rsi, [rsi+48h] loc_2AE4F: add rcx, 48h ; 'H' mov rdx, rcx pop rax jmp __ZSt7shuffleIN9__gnu_cxx17__normal_iteratorIPlSt6vectorIlSaIlEEEERSt23mersenne_twister_engineImLm32ELm624ELm397ELm31ELm2567483615ELm11ELm4294967295ELm7ELm2636928640ELm15ELm4022730752ELm18ELm1812433253EEEvT_SA_OT0_; std::shuffle<__gnu_cxx::__normal_iterator<long *,std::vector<long>>,std::mersenne_twister_engine<ulong,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul> &>(__gnu_cxx::__normal_iterator<long *,std::vector<long>>,__gnu_cxx::__normal_iterator<long *,std::vector<long>>,std::mersenne_twister_engine<ulong,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul> &) loc_2AE5C: lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aIdataDatasetNd; "idata <= dataset->ndata" mov esi, 83h jmp short loc_2AE92 loc_2AE78: lea rdi, aWorkspaceLlm4b_3; "/workspace/llm4binary/github/2025_star3"... lea rdx, aGgmlAssertSFai; "GGML_ASSERT(%s) failed" lea rcx, aIdataDatasetNd_0; "idata % dataset->ndata_shard == 0" mov esi, 8Ah loc_2AE92: xor eax, eax call _ggml_abort
long long ggml_opt_dataset_shuffle(long long a1, _QWORD *a2, long long a3, long long a4, int a5, int a6) { long long v7; // rdi long long v8; // rsi const char *v10; // rcx int v11; // esi if ( a2[4] < a3 ) { v10 = "idata <= dataset->ndata"; v11 = 131; goto LABEL_9; } if ( a3 < 0 ) { v7 = a2[8]; v8 = a2[9]; return std::shuffle<__gnu_cxx::__normal_iterator<long *,std::vector<long>>,std::mersenne_twister_engine<unsigned long,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul> &>( v7, v8, a1 + 72); } if ( a3 % a2[5] ) { v10 = "idata % dataset->ndata_shard == 0"; v11 = 138; LABEL_9: ggml_abort( (unsigned int)"/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-opt.cpp", v11, (unsigned int)"GGML_ASSERT(%s) failed", (_DWORD)v10, a5, a6); } v7 = a2[8]; v8 = v7 + 8 * (a3 / a2[5]); return std::shuffle<__gnu_cxx::__normal_iterator<long *,std::vector<long>>,std::mersenne_twister_engine<unsigned long,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul> &>( v7, v8, a1 + 72); }
ggml_opt_dataset_shuffle: PUSH RAX CMP qword ptr [RSI + 0x20],RDX JL 0x0012ae5c MOV RCX,RDI TEST RDX,RDX JS 0x0012ae47 MOV RAX,RDX CQO IDIV qword ptr [RSI + 0x28] TEST RDX,RDX JNZ 0x0012ae78 MOV RDI,qword ptr [RSI + 0x40] LEA RSI,[RDI + RAX*0x8] JMP 0x0012ae4f LAB_0012ae47: MOV RDI,qword ptr [RSI + 0x40] MOV RSI,qword ptr [RSI + 0x48] LAB_0012ae4f: ADD RCX,0x48 MOV RDX,RCX POP RAX JMP 0x00117380 LAB_0012ae5c: LEA RDI,[0x1504a8] LEA RDX,[0x14c5c1] LEA RCX,[0x150539] MOV ESI,0x83 JMP 0x0012ae92 LAB_0012ae78: LEA RDI,[0x1504a8] LEA RDX,[0x14c5c1] LEA RCX,[0x150551] MOV ESI,0x8a LAB_0012ae92: XOR EAX,EAX CALL 0x00118ce0
void ggml_opt_dataset_shuffle(long param_1,long param_2,long param_3) { char *pcVar1; long lVar2; int8 uVar3; long lVar4; if (*(long *)(param_2 + 0x20) < param_3) { pcVar1 = "idata <= dataset->ndata"; uVar3 = 0x83; LAB_0012ae92: /* WARNING: Subroutine does not return */ ggml_abort("/workspace/llm4binary/github/2025_star3/Yangxiaoz[P]GGML-Tutorial/ggml/src/ggml-opt.cpp" ,uVar3,"GGML_ASSERT(%s) failed",pcVar1); } if (param_3 < 0) { lVar4 = *(long *)(param_2 + 0x40); lVar2 = *(long *)(param_2 + 0x48); } else { if (param_3 % *(long *)(param_2 + 0x28) != 0) { pcVar1 = "idata % dataset->ndata_shard == 0"; uVar3 = 0x8a; goto LAB_0012ae92; } lVar4 = *(long *)(param_2 + 0x40); lVar2 = lVar4 + (param_3 / *(long *)(param_2 + 0x28)) * 8; } std:: shuffle<__gnu_cxx::__normal_iterator<long*,std::vector<long,std::allocator<long>>>,std::mersenne_twister_engine<unsigned_long,32ul,624ul,397ul,31ul,2567483615ul,11ul,4294967295ul,7ul,2636928640ul,15ul,4022730752ul,18ul,1812433253ul>&> (lVar4,lVar2,param_1 + 0x48); return; }
31,085
aimrt::runtime::core::channel::ChannelManager::Shutdown()
aimrt_mujoco_sim/_deps/aimrt-src/src/runtime/core/channel/channel_manager.cc
void ChannelManager::Shutdown() { if (std::atomic_exchange(&state_, State::kShutdown) == State::kShutdown) return; AIMRT_INFO("Channel manager shutdown."); channel_handle_proxy_wrap_map_.clear(); channel_backend_manager_.Shutdown(); channel_backend_vec_.clear(); channel_registry_ptr_.reset(); subscribe_filter_manager_.Clear(); publish_filter_manager_.Clear(); get_executor_func_ = nullptr; }
O0
cpp
aimrt::runtime::core::channel::ChannelManager::Shutdown(): subq $0x138, %rsp # imm = 0x138 movq %rdi, 0x98(%rsp) movq 0x98(%rsp), %rdi movq %rdi, 0x40(%rsp) addq $0x48, %rdi movl $0x3, %esi callq 0x5ead90 cmpl $0x3, %eax jne 0x5e4e14 jmp 0x5e50ac jmp 0x5e4e16 movq 0x40(%rsp), %rdi callq 0x5eadc0 movq %rax, 0x90(%rsp) movq 0x90(%rsp), %rdi callq 0x25b900 movl %eax, %ecx movl $0x2, %eax cmpl %ecx, %eax jb 0x5e502e leaq 0x184527(%rip), %rax # 0x769372 movq %rax, 0x60(%rsp) movq $0x19, 0x68(%rsp) movq 0x60(%rsp), %rcx movq 0x68(%rsp), %rax leaq 0x70(%rsp), %rdx movq %rdx, 0x18(%rsp) movq %rdx, 0xe0(%rsp) movq %rcx, 0xd0(%rsp) movq %rax, 0xd8(%rsp) leaq 0xd0(%rsp), %rax movq %rax, 0xe8(%rsp) movq 0xe8(%rsp), %rax movups (%rax), %xmm0 movaps %xmm0, 0xf0(%rsp) movq 0xf0(%rsp), %rcx movq 0xf8(%rsp), %rax movq %rcx, 0xc0(%rsp) movq %rax, 0xc8(%rsp) callq 0x34e390 movq 0x18(%rsp), %rdi movq %rax, 0xa0(%rsp) movq %rdx, 0xa8(%rsp) leaq 0xb0(%rsp), %rax movq %rax, 0x110(%rsp) leaq 0xa0(%rsp), %rax movq %rax, 0x108(%rsp) movq 0x110(%rsp), %rcx movq 0x108(%rsp), %rax movq %rax, 0x130(%rsp) movq 0x130(%rsp), %rax movq %rcx, 0x128(%rsp) movq $0x0, 0x120(%rsp) movq %rax, 0x118(%rsp) movq 0x128(%rsp), %rax movq 0x120(%rsp), %rcx movq %rcx, (%rax) movq 0x118(%rsp), %rcx movq %rcx, 0x8(%rax) movq 0xc0(%rsp), %rsi movq 0xc8(%rsp), %rdx movq 0xb0(%rsp), %rcx movq 0xb8(%rsp), %r8 callq 0x1e1400 movq 0x2fd727(%rip), %rax # 0x8e26b0 movq %rax, 0x58(%rsp) movq 0x90(%rsp), %rax movq %rax, 0x20(%rsp) leaq 0x58(%rsp), %rdi movq %rdi, 0x10(%rsp) callq 0x252db0 movq 0x10(%rsp), %rdi movl %eax, 0x2c(%rsp) callq 0x252df0 movq 0x18(%rsp), %rdi movq %rax, 0x30(%rsp) callq 0x1c2470 movq 0x18(%rsp), %rdi movq %rax, 0x38(%rsp) callq 0x1de970 movq 0x20(%rsp), %rdi movl 0x2c(%rsp), %edx movq 0x30(%rsp), %rcx movq 0x38(%rsp), %r9 movq %rax, %rsi movq %rsp, %rax movq %rsi, (%rax) leaq 0x15edc2(%rip), %r8 # 0x743dbb movl $0x2, %esi callq 0x25b910 jmp 0x5e5005 leaq 0x70(%rsp), %rdi callq 0x1e03b0 jmp 0x5e502e movq %rax, %rcx movl %edx, %eax movq %rcx, 0x50(%rsp) movl %eax, 0x4c(%rsp) leaq 0x70(%rsp), %rdi callq 0x1e03b0 jmp 0x5e50b4 jmp 0x5e5030 movq 0x40(%rsp), %rdi addq $0x3a0, %rdi # imm = 0x3A0 callq 0x5eb7a0 movq 0x40(%rsp), %rdi addq $0x280, %rdi # imm = 0x280 callq 0x6621f0 movq 0x40(%rsp), %rdi addq $0x250, %rdi # imm = 0x250 callq 0x5eb7b0 movq 0x40(%rsp), %rdi addq $0x248, %rdi # imm = 0x248 xorl %eax, %eax movl %eax, %esi callq 0x5eb7d0 movq 0x40(%rsp), %rdi addq $0x180, %rdi # imm = 0x180 callq 0x5eb800 movq 0x40(%rsp), %rdi addq $0xb8, %rdi callq 0x5eb800 movq 0x40(%rsp), %rdi addq $0x60, %rdi xorl %eax, %eax movl %eax, %esi callq 0x5eb830 addq $0x138, %rsp # imm = 0x138 retq movq 0x50(%rsp), %rdi callq 0x1d0790 nop
_ZN5aimrt7runtime4core7channel14ChannelManager8ShutdownEv: sub rsp, 138h mov [rsp+138h+var_A0], rdi mov rdi, [rsp+138h+var_A0] mov [rsp+138h+var_F8], rdi add rdi, 48h ; 'H' mov esi, 3 call _ZSt15atomic_exchangeIN5aimrt7runtime4core7channel14ChannelManager5StateEET_PSt6atomicIS6_ENSt15__type_identityIS6_E4typeE; std::atomic_exchange<aimrt::runtime::core::channel::ChannelManager::State>(std::atomic<aimrt::runtime::core::channel::ChannelManager::State> *,std::__type_identity<aimrt::runtime::core::channel::ChannelManager::State>::type) cmp eax, 3 jnz short loc_5E4E14 jmp loc_5E50AC loc_5E4E14: jmp short $+2 loc_5E4E16: mov rdi, [rsp+138h+var_F8]; this call _ZNK5aimrt7runtime4core7channel14ChannelManager9GetLoggerEv; aimrt::runtime::core::channel::ChannelManager::GetLogger(void) mov [rsp+138h+var_A8], rax mov rdi, [rsp+138h+var_A8]; this call _ZNK5aimrt6common4util13LoggerWrapper11GetLogLevelEv; aimrt::common::util::LoggerWrapper::GetLogLevel(void) mov ecx, eax mov eax, 2 cmp eax, ecx jb loc_5E502E lea rax, aChannelManager_2; "Channel manager shutdown." mov [rsp+138h+var_D8], rax mov [rsp+138h+var_D0], 19h mov rcx, [rsp+138h+var_D8] mov rax, [rsp+138h+var_D0] lea rdx, [rsp+138h+var_C8] mov [rsp+138h+var_120], rdx mov [rsp+138h+var_58], rdx mov [rsp+138h+var_68], rcx mov [rsp+138h+var_60], rax lea rax, [rsp+138h+var_68] mov [rsp+138h+var_50], rax mov rax, [rsp+138h+var_50] movups xmm0, xmmword ptr [rax] movaps [rsp+138h+var_48], xmm0 mov rcx, qword ptr [rsp+138h+var_48] mov rax, qword ptr [rsp+138h+var_48+8] mov [rsp+138h+var_78], rcx mov [rsp+138h+var_70], rax call _ZN3fmt3v1016make_format_argsINS0_20basic_format_contextINS0_8appenderEcEEJEEENS0_16format_arg_storeIT_JDpNSt9remove_cvINSt16remove_referenceIT0_E4typeEE4typeEEEEDpRS9_ mov rdi, [rsp+138h+var_120] mov [rsp+138h+var_98], rax mov [rsp+138h+var_90], rdx lea rax, [rsp+138h+var_88] mov [rsp+138h+var_28], rax lea rax, [rsp+138h+var_98] mov [rsp+138h+var_30], rax mov rcx, [rsp+138h+var_28] mov rax, [rsp+138h+var_30] mov [rsp+138h+var_8], rax mov rax, [rsp+138h+var_8] mov [rsp+138h+var_10], rcx mov [rsp+138h+var_18], 0 mov [rsp+138h+var_20], rax mov rax, [rsp+138h+var_10] mov rcx, [rsp+138h+var_18] mov [rax], rcx mov rcx, [rsp+138h+var_20] mov [rax+8], rcx mov rsi, [rsp+138h+var_78] mov rdx, [rsp+138h+var_70] mov rcx, [rsp+138h+var_88] mov r8, [rsp+138h+var_80] call _ZN3fmt3v107vformatB5cxx11ENS0_17basic_string_viewIcEENS0_17basic_format_argsINS0_20basic_format_contextINS0_8appenderEcEEEE; fmt::v10::vformat(fmt::v10::basic_string_view<char>,fmt::v10::basic_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>) mov rax, cs:off_8E26B0 mov [rsp+138h+var_E0], rax mov rax, [rsp+138h+var_A8] mov [rsp+138h+var_118], rax lea rdi, [rsp+138h+var_E0]; this mov [rsp+138h+var_128], rdi call _ZNKSt15source_location4lineEv; std::source_location::line(void) mov rdi, [rsp+138h+var_128]; this mov [rsp+138h+var_10C], eax call _ZNKSt15source_location9file_nameEv; std::source_location::file_name(void) mov rdi, [rsp+138h+var_120] mov [rsp+138h+var_108], rax call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv; std::string::c_str(void) mov rdi, [rsp+138h+var_120] mov [rsp+138h+var_100], rax call __ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv; std::string::size(void) mov rdi, [rsp+138h+var_118]; this mov edx, [rsp+138h+var_10C]; unsigned int mov rcx, [rsp+138h+var_108]; char * mov r9, [rsp+138h+var_100]; char * mov rsi, rax mov rax, rsp mov [rax], rsi lea r8, aShutdown_1; "Shutdown" mov esi, 2; unsigned int call _ZNK5aimrt6common4util13LoggerWrapper3LogEjjPKcS4_S4_m; aimrt::common::util::LoggerWrapper::Log(uint,uint,char const*,char const*,char const*,ulong) jmp short $+2 loc_5E5005: lea rdi, [rsp+138h+var_C8]; void * call j__ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp short loc_5E502E mov rcx, rax mov eax, edx mov [rsp+arg_48], rcx mov [rsp+arg_44], eax lea rdi, [rsp+arg_68]; void * call j__ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev; std::string::~string() jmp loc_5E50B4 loc_5E502E: jmp short $+2 loc_5E5030: mov rdi, [rsp+138h+var_F8] add rdi, 3A0h call _ZNSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10unique_ptrIN5aimrt7runtime4core7channel14ChannelManager22ChannelHandleProxyWrapESt14default_deleteISC_EESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_SF_EEE5clearEv; std::unordered_map<std::string,std::unique_ptr<aimrt::runtime::core::channel::ChannelManager::ChannelHandleProxyWrap>>::clear(void) mov rdi, [rsp+138h+var_F8] add rdi, 280h; this call _ZN5aimrt7runtime4core7channel21ChannelBackendManager8ShutdownEv; aimrt::runtime::core::channel::ChannelBackendManager::Shutdown(void) mov rdi, [rsp+138h+var_F8] add rdi, 250h call _ZNSt6vectorISt10unique_ptrIN5aimrt7runtime4core7channel18ChannelBackendBaseESt14default_deleteIS5_EESaIS8_EE5clearEv; std::vector<std::unique_ptr<aimrt::runtime::core::channel::ChannelBackendBase>>::clear(void) mov rdi, [rsp+138h+var_F8] add rdi, 248h xor eax, eax mov esi, eax call _ZNSt10unique_ptrIN5aimrt7runtime4core7channel15ChannelRegistryESt14default_deleteIS4_EE5resetEPS4_; std::unique_ptr<aimrt::runtime::core::channel::ChannelRegistry>::reset(aimrt::runtime::core::channel::ChannelRegistry*) mov rdi, [rsp+138h+var_F8] add rdi, 180h; this call _ZN5aimrt7runtime4core7channel34FrameworkAsyncChannelFilterManager5ClearEv; aimrt::runtime::core::channel::FrameworkAsyncChannelFilterManager::Clear(void) mov rdi, [rsp+138h+var_F8] add rdi, 0B8h; this call _ZN5aimrt7runtime4core7channel34FrameworkAsyncChannelFilterManager5ClearEv; aimrt::runtime::core::channel::FrameworkAsyncChannelFilterManager::Clear(void) mov rdi, [rsp+138h+var_F8] add rdi, 60h ; '`' xor eax, eax mov esi, eax call _ZNSt8functionIFN5aimrt8executor11ExecutorRefESt17basic_string_viewIcSt11char_traitsIcEEEEaSEDn; std::function<aimrt::executor::ExecutorRef ()(std::string_view)>::operator=(decltype(nullptr)) loc_5E50AC: add rsp, 138h retn loc_5E50B4: mov rdi, [rsp+arg_48] call __Unwind_Resume
long long aimrt::runtime::core::channel::ChannelManager::Shutdown( aimrt::runtime::core::channel::ChannelManager *this) { long long result; // rax long long v2; // rdx unsigned long long v3; // rax aimrt::common::util::LoggerWrapper *v4; // [rsp+20h] [rbp-118h] unsigned int v5; // [rsp+2Ch] [rbp-10Ch] const char *v6; // [rsp+30h] [rbp-108h] char *v7; // [rsp+38h] [rbp-100h] _QWORD v8[3]; // [rsp+58h] [rbp-E0h] BYREF _BYTE v9[32]; // [rsp+70h] [rbp-C8h] BYREF aimrt::common::util::LoggerWrapper *Logger; // [rsp+90h] [rbp-A8h] aimrt::runtime::core::channel::ChannelManager *v11; // [rsp+98h] [rbp-A0h] _QWORD v12[2]; // [rsp+A0h] [rbp-98h] BYREF _QWORD v13[2]; // [rsp+B0h] [rbp-88h] BYREF __int128 v14; // [rsp+C0h] [rbp-78h] __int128 v15; // [rsp+D0h] [rbp-68h] BYREF _BYTE *v16; // [rsp+E0h] [rbp-58h] __int128 *v17; // [rsp+E8h] [rbp-50h] __int128 v18; // [rsp+F0h] [rbp-48h] _QWORD *v19; // [rsp+108h] [rbp-30h] _QWORD *v20; // [rsp+110h] [rbp-28h] _QWORD *v21; // [rsp+118h] [rbp-20h] long long v22; // [rsp+120h] [rbp-18h] _QWORD *v23; // [rsp+128h] [rbp-10h] _QWORD *v24; // [rsp+130h] [rbp-8h] v11 = this; result = std::atomic_exchange<aimrt::runtime::core::channel::ChannelManager::State>((char *)this + 72, 3LL); if ( (_DWORD)result != 3 ) { Logger = (aimrt::common::util::LoggerWrapper *)aimrt::runtime::core::channel::ChannelManager::GetLogger(this); if ( (unsigned int)aimrt::common::util::LoggerWrapper::GetLogLevel(Logger) <= 2 ) { v8[1] = "Channel manager shutdown."; v8[2] = 25LL; v16 = v9; *(_QWORD *)&v15 = "Channel manager shutdown."; *((_QWORD *)&v15 + 1) = 25LL; v17 = &v15; v18 = v15; v14 = v15; v12[0] = fmt::v10::make_format_args<fmt::v10::basic_format_context<fmt::v10::appender,char>>(); v12[1] = v2; v20 = v13; v19 = v12; v24 = v12; v23 = v13; v22 = 0LL; v21 = v12; v13[0] = 0LL; v13[1] = v12; fmt::v10::vformat[abi:cxx11]((long long)v9, v14, *((long long *)&v14 + 1), 0LL, (long long)v12); v8[0] = off_8E2698; v4 = Logger; v5 = std::source_location::line((std::source_location *)v8); v6 = std::source_location::file_name((std::source_location *)v8); v7 = (char *)std::string::c_str(v9); v3 = std::string::size(v9); aimrt::common::util::LoggerWrapper::Log(v4, 2, v5, v6, "Shutdown", v7, v3); std::string::~string(v9); } std::unordered_map<std::string,std::unique_ptr<aimrt::runtime::core::channel::ChannelManager::ChannelHandleProxyWrap>>::clear((char *)this + 928); aimrt::runtime::core::channel::ChannelBackendManager::Shutdown((aimrt::runtime::core::channel::ChannelManager *)((char *)this + 640)); std::vector<std::unique_ptr<aimrt::runtime::core::channel::ChannelBackendBase>>::clear((char *)this + 592); std::unique_ptr<aimrt::runtime::core::channel::ChannelRegistry>::reset((char *)this + 584, 0LL); aimrt::runtime::core::channel::FrameworkAsyncChannelFilterManager::Clear((aimrt::runtime::core::channel::ChannelManager *)((char *)this + 384)); aimrt::runtime::core::channel::FrameworkAsyncChannelFilterManager::Clear((aimrt::runtime::core::channel::ChannelManager *)((char *)this + 184)); return std::function<aimrt::executor::ExecutorRef ()(std::string_view)>::operator=((char *)this + 96, 0LL); } return result; }
invoke<boost::asio::detail::binder2<boost::beast::basic_stream<boost::asio::ip::tcp,boost::asio::any_io_executor,boost::beast::unlimited_rate_policy>::ops::transfer_op<false,boost::beast::detail::buffers_ref<boost::beast::buffers_prefix_view<boost::beast::buffers_suffix<boost::beast::detail::buffers_ref<boost::beast::buffers_cat_view<boost::asio::const_buffer,boost::asio::const_buffer,boost::asio::const_buffer,boost::beast::http::basic_fields<std::allocator<char>>::writer::field_range,boost::beast::http::chunk_crlf>>>const&>>,boost::beast::http::detail::write_some_op<boost::beast::http::detail::write_op<boost::beast::http::detail::write_msg_op<boost::asio::detail::awaitable_handler<boost::asio::any_io_executor,boost::system::error_code,unsigned_long>,boost::beast::basic_stream<boost::asio::ip::tcp,boost::asio::any_io_executor,boost::beast::unlimited_rate_policy>,false,boost::beast::http::empty_body,boost::beast::http::basic_fields<std::allocator<char>>>,boost::beast::basic_stream<boost...licy>,false,boost::beast::http::empty_body,boost::beast::http::basic_fields<std::allocator<char>>>>>: SUB RSP,0x18 MOV qword ptr [RSP + 0x10],RDI MOV qword ptr [RSP + 0x8],RSI MOV RDI,qword ptr [RSP + 0x10] CALL 0x005e4e30 ADD RSP,0x18 RET
/* void boost_asio_handler_invoke_helpers::invoke<boost::asio::detail::binder2<boost::beast::basic_stream<boost::asio::ip::tcp, boost::asio::any_io_executor, boost::beast::unlimited_rate_policy>::ops::transfer_op<false, boost::beast::detail::buffers_ref<boost::beast::buffers_prefix_view<boost::beast::buffers_suffix<boost::beast::detail::buffers_ref<boost::beast::buffers_cat_view<boost::asio::const_buffer, boost::asio::const_buffer, boost::asio::const_buffer, boost::beast::http::basic_fields<std::allocator<char> >::writer::field_range, boost::beast::http::chunk_crlf> > > const&> >, boost::beast::http::detail::write_some_op<boost::beast::http::detail::write_op<boost::beast::http::detail::write_msg_op<boost::asio::detail::awaitable_handler<boost::asio::any_io_executor, boost::system::error_code, unsigned long>, boost::beast::basic_stream<boost::asio::ip::tcp, boost::asio::any_io_executor, boost::beast::unlimited_rate_policy>, false, boost::beast::http::empty_body, boost::beast::http::basic_fields<std::allocator<char> > >, boost::beast::basic_stream<boost::asio::ip::tcp, boost::asio::any_io_executor, boost::beast::unlimited_rate_policy>, boost::beast::http::detail::serializer_is_done, false, boost::beast::http::empty_body, boost::beast::http::basic_fields<std::allocator<char> > >, boost::beast::basic_stream<boost::asio::ip::tcp, boost::asio::any_io_executor, boost::beast::unlimited_rate_policy>, false, boost::beast::http::empty_body, boost::beast::http::basic_fields<std::allocator<char> > > >, boost::system::error_code, unsigned long>, boost::beast::basic_stream<boost::asio::ip::tcp, boost::asio::any_io_executor, boost::beast::unlimited_rate_policy>::ops::transfer_op<false, boost::beast::detail::buffers_ref<boost::beast::buffers_prefix_view<boost::beast::buffers_suffix<boost::beast::detail::buffers_ref<boost::beast::buffers_cat_view<boost::asio::const_buffer, boost::asio::const_buffer, boost::asio::const_buffer, boost::beast::http::basic_fields<std::allocator<char> >::writer::field_range, boost::beast::http::chunk_crlf> > > const&> >, boost::beast::http::detail::write_some_op<boost::beast::http::detail::write_op<boost::beast::http::detail::write_msg_op<boost::asio::detail::awaitable_handler<boost::asio::any_io_executor, boost::system::error_code, unsigned long>, boost::beast::basic_stream<boost::asio::ip::tcp, boost::asio::any_io_executor, boost::beast::unlimited_rate_policy>, false, boost::beast::http::empty_body, boost::beast::http::basic_fields<std::allocator<char> > >, boost::beast::basic_stream<boost::asio::ip::tcp, boost::asio::any_io_executor, boost::beast::unlimited_rate_policy>, boost::beast::http::detail::serializer_is_done, false, boost::beast::http::empty_body, boost::beast::http::basic_fields<std::allocator<char> > >, boost::beast::basic_stream<boost::asio::ip::tcp, boost::asio::any_io_executor, boost::beast::unlimited_rate_policy>, false, boost::beast::http::empty_body, boost::beast::http::basic_fields<std::allocator<char> > > > >(boost::asio::detail::binder2<boost::beast::basic_stream<boost::asio::ip::tcp, boost::asio::any_io_executor, boost::beast::unlimited_rate_policy>::ops::transfer_op<false, boost::beast::detail::buffers_ref<boost::beast::buffers_prefix_view<boost::beast::buffers_suffix<boost::beast::detail::buffers_ref<boost::beast::buffers_cat_view<boost::asio::const_buffer, boost::asio::const_buffer, boost::asio::const_buffer, boost::beast::http::basic_fields<std::allocator<char> >::writer::field_range, boost::beast::http::chunk_crlf> > > const&> >, boost::beast::http::detail::write_some_op<boost::beast::http::detail::write_op<boost::beast::http::detail::write_msg_op<boost::asio::detail::awaitable_handler<boost::asio::any_io_executor, boost::system::error_code, unsigned long>, boost::beast::basic_stream<boost::asio::ip::tcp, boost::asio::any_io_executor, boost::beast::unlimited_rate_policy>, false, boost::beast::http::empty_body, boost::beast::http::basic_fields<std::allocator<char> > >, boost::beast::basic_stream<boost::asio::ip::tcp, boost::asio::any_io_executor, boost::beast::unlimited_rate_policy>, boost::beast::http::detail::serializer_is_done, false, boost::beast::http::empty_body, boost::beast::http::basic_fields<std::allocator<char> > >, boost::beast::basic_stream<boost::asio::ip::tcp, boost::asio::any_io_executor, boost::beast::unlimited_rate_policy>, false, boost::beast::http::empty_body, boost::beast::http::basic_fields<std::allocator<char> > > >, boost::system::error_code, unsigned long>&, boost::beast::basic_stream<boost::asio::ip::tcp, boost::asio::any_io_executor, boost::beast::unlimited_rate_policy>::ops::transfer_op<false, boost::beast::detail::buffers_ref<boost::beast::buffers_prefix_view<boost::beast::buffers_suffix<boost::beast::detail::buffers_ref<boost::beast::buffers_cat_view<boost::asio::const_buffer, boost::asio::const_buffer, boost::asio::const_buffer, boost::beast::http::basic_fields<std::allocator<char> >::writer::field_range, boost::beast::http::chunk_crlf> > > const&> >, boost::beast::http::detail::write_some_op<boost::beast::http::detail::write_op<boost::beast::http::detail::write_msg_op<boost::asio::detail::awaitable_handler<boost::asio::any_io_executor, boost::system::error_code, unsigned long>, boost::beast::basic_stream<boost::asio::ip::tcp, boost::asio::any_io_executor, boost::beast::unlimited_rate_policy>, false, boost::beast::http::empty_body, boost::beast::http::basic_fields<std::allocator<char> > >, boost::beast::basic_stream<boost::asio::ip::tcp, boost::asio::any_io_executor, boost::beast::unlimited_rate_policy>, boost::beast::http::detail::serializer_is_done, false, boost::beast::http::empty_body, boost::beast::http::basic_fields<std::allocator<char> > >, boost::beast::basic_stream<boost::asio::ip::tcp, boost::asio::any_io_executor, boost::beast::unlimited_rate_policy>, false, boost::beast::http::empty_body, boost::beast::http::basic_fields<std::allocator<char> > > >&) */ void boost_asio_handler_invoke_helpers:: invoke<boost::asio::detail::binder2<boost::beast::basic_stream<boost::asio::ip::tcp,boost::asio::any_io_executor,boost::beast::unlimited_rate_policy>::ops::transfer_op<false,boost::beast::detail::buffers_ref<boost::beast::buffers_prefix_view<boost::beast::buffers_suffix<boost::beast::detail::buffers_ref<boost::beast::buffers_cat_view<boost::asio::const_buffer,boost::asio::const_buffer,boost::asio::const_buffer,boost::beast::http::basic_fields<std::allocator<char>>::writer::field_range,boost::beast::http::chunk_crlf>>>const&>>,boost::beast::http::detail::write_some_op<boost::beast::http::detail::write_op<boost::beast::http::detail::write_msg_op<boost::asio::detail::awaitable_handler<boost::asio::any_io_executor,boost::system::error_code,unsigned_long>,boost::beast::basic_stream<boost::asio::ip::tcp,boost::asio::any_io_executor,boost::beast::unlimited_rate_policy>,false,boost::beast::http::empty_body,boost::beast::http::basic_fields<std::allocator<char>>>,boost::beast::basic_stream<boost___licy>,false,boost::beast::http::empty_body,boost::beast::http::basic_fields<std::allocator<char>>>>> (binder2 *param_1,transfer_op *param_2) { boost::asio::detail:: binder2<boost::beast::basic_stream<boost::asio::ip::tcp,boost::asio::any_io_executor,boost::beast::unlimited_rate_policy>::ops::transfer_op<false,boost::beast::detail::buffers_ref<boost::beast::buffers_prefix_view<boost::beast::buffers_suffix<boost::beast::detail::buffers_ref<boost::beast::buffers_cat_view<boost::asio::const_buffer,boost::asio::const_buffer,boost::asio::const_buffer,boost::beast::http::basic_fields<std::allocator<char>>::writer::field_range,boost::beast::http::chunk_crlf>>>const&>>,boost::beast::http::detail::write_some_op<boost::beast::http::detail::write_op<boost::beast::http::detail::write_msg_op<boost::asio::detail::awaitable_handler<boost::asio::any_io_executor,boost::system::error_code,unsigned_long>,boost::beast::basic_stream<boost::asio::ip::tcp,boost::asio::any_io_executor,boost::beast::unlimited_rate_policy>,false,boost::beast::http::empty_body,boost::beast::http::basic_fields<std::allocator<char>>>,boost::beast::basic_stream<boost::asio::ip::tcp,boost::asio::any_io_executor,boost::beast::unlimited_rate_policy>,boost::beast::http::detail::serializer_is_done,false,boost::beast::http::empty_body,boost::beast::http::basic_fields<std::allocator<char>>>,boost::beast::basic_stream<boost::asio::ip::tcp,boost::asio::any_io_executor,boost::beast::unlimited_rate_policy>,false,boost::beast::http::empty_body,boost::beast::http::basic_fields<std::allocator<char>>>>,boost::system::error_code,unsigned_long> ::operator()((binder2<boost::beast::basic_stream<boost::asio::ip::tcp,boost::asio::any_io_executor,boost::beast::unlimited_rate_policy>::ops::transfer_op<false,boost::beast::detail::buffers_ref<boost::beast::buffers_prefix_view<boost::beast::buffers_suffix<boost::beast::detail::buffers_ref<boost::beast::buffers_cat_view<boost::asio::const_buffer,boost::asio::const_buffer,boost::asio::const_buffer,boost::beast::http::basic_fields<std::allocator<char>>::writer::field_range,boost::beast::http::chunk_crlf>>>const&>>,boost::beast::http::detail::write_some_op<boost::beast::http::detail::write_op<boost::beast::http::detail::write_msg_op<boost::asio::detail::awaitable_handler<boost::asio::any_io_executor,boost::system::error_code,unsigned_long>,boost::beast::basic_stream<boost::asio::ip::tcp,boost::asio::any_io_executor,boost::beast::unlimited_rate_policy>,false,boost::beast::http::empty_body,boost::beast::http::basic_fields<std::allocator<char>>>,boost::beast::basic_stream<boost::asio::ip::tcp,boost::asio::any_io_executor,boost::beast::unlimited_rate_policy>,boost::beast::http::detail::serializer_is_done,false,boost::beast::http::empty_body,boost::beast::http::basic_fields<std::allocator<char>>>,boost::beast::basic_stream<boost::asio::ip::tcp,boost::asio::any_io_executor,boost::beast::unlimited_rate_policy>,false,boost::beast::http::empty_body,boost::beast::http::basic_fields<std::allocator<char>>>>,boost::system::error_code,unsigned_long> *)param_1); return; }
31,086
set_process_priority(ggml_sched_priority)
monkey531[P]llama/common/common.cpp
bool set_process_priority(enum ggml_sched_priority prio) { if (prio == GGML_SCHED_PRIO_NORMAL) { return true; } int p = 0; switch (prio) { case GGML_SCHED_PRIO_NORMAL: p = 0; break; case GGML_SCHED_PRIO_MEDIUM: p = -5; break; case GGML_SCHED_PRIO_HIGH: p = -10; break; case GGML_SCHED_PRIO_REALTIME: p = -20; break; } if (!setpriority(PRIO_PROCESS, 0, p)) { LOG_WRN("failed to set process priority %d : %s (%d)\n", prio, strerror(errno), errno); return false; } return true; }
O0
cpp
set_process_priority(ggml_sched_priority): subq $0x38, %rsp movl %edi, 0x30(%rsp) cmpl $0x0, 0x30(%rsp) jne 0x1456f9 movb $0x1, 0x37(%rsp) jmp 0x1457c6 movl $0x0, 0x2c(%rsp) movl 0x30(%rsp), %eax movq %rax, 0x20(%rsp) subq $0x3, %rax ja 0x14574b movq 0x20(%rsp), %rax leaq 0x93f84(%rip), %rcx # 0x1d96a0 movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movl $0x0, 0x2c(%rsp) jmp 0x14574b movl $0xfffffffb, 0x2c(%rsp) # imm = 0xFFFFFFFB jmp 0x14574b movl $0xfffffff6, 0x2c(%rsp) # imm = 0xFFFFFFF6 jmp 0x14574b movl $0xffffffec, 0x2c(%rsp) # imm = 0xFFFFFFEC movl 0x2c(%rsp), %edx xorl %esi, %esi movl %esi, %edi callq 0x507e0 cmpl $0x0, %eax jne 0x1457c1 jmp 0x14575f xorl %eax, %eax leaq 0x10fa68(%rip), %rcx # 0x2551d0 cmpl (%rcx), %eax jg 0x1457b8 callq 0x160260 movq %rax, 0x8(%rsp) movl 0x30(%rsp), %eax movl %eax, 0x14(%rsp) callq 0x50de0 movl (%rax), %edi callq 0x50ab0 movq %rax, 0x18(%rsp) callq 0x50de0 movq 0x8(%rsp), %rdi movl 0x14(%rsp), %ecx movq 0x18(%rsp), %r8 movl (%rax), %r9d movl $0x3, %esi leaq 0x94195(%rip), %rdx # 0x1d9946 movb $0x0, %al callq 0x160350 jmp 0x1457ba movb $0x0, 0x37(%rsp) jmp 0x1457c6 movb $0x1, 0x37(%rsp) movb 0x37(%rsp), %al andb $0x1, %al addq $0x38, %rsp retq nopw %cs:(%rax,%rax)
_Z20set_process_priority19ggml_sched_priority: sub rsp, 38h mov [rsp+38h+var_8], edi cmp [rsp+38h+var_8], 0 jnz short loc_1456F9 mov [rsp+38h+var_1], 1 jmp loc_1457C6 loc_1456F9: mov [rsp+38h+var_C], 0 mov eax, [rsp+38h+var_8] mov [rsp+38h+var_18], rax sub rax, 3; switch 4 cases ja short def_145723; jumptable 0000000000145723 default case mov rax, [rsp+38h+var_18] lea rcx, jpt_145723 movsxd rax, ds:(jpt_145723 - 1D96A0h)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_145725: mov [rsp+38h+var_C], 0; jumptable 0000000000145723 case 0 jmp short def_145723; jumptable 0000000000145723 default case loc_14572F: mov [rsp+38h+var_C], 0FFFFFFFBh; jumptable 0000000000145723 case 1 jmp short def_145723; jumptable 0000000000145723 default case loc_145739: mov [rsp+38h+var_C], 0FFFFFFF6h; jumptable 0000000000145723 case 2 jmp short def_145723; jumptable 0000000000145723 default case loc_145743: mov [rsp+38h+var_C], 0FFFFFFECh; jumptable 0000000000145723 case 3 def_145723: mov edx, [rsp+38h+var_C]; jumptable 0000000000145723 default case xor esi, esi mov edi, esi call _setpriority cmp eax, 0 jnz short loc_1457C1 jmp short $+2 loc_14575F: xor eax, eax lea rcx, common_log_verbosity_thold cmp eax, [rcx] jg short loc_1457B8 call _Z15common_log_mainv; common_log_main(void) mov [rsp+38h+var_30], rax mov eax, [rsp+38h+var_8] mov [rsp+38h+var_24], eax call ___errno_location mov edi, [rax] call _strerror mov [rsp+38h+var_20], rax call ___errno_location mov rdi, [rsp+38h+var_30] mov ecx, [rsp+38h+var_24] mov r8, [rsp+38h+var_20] mov r9d, [rax] mov esi, 3 lea rdx, aFailedToSetPro; "failed to set process priority %d : %s "... mov al, 0 call _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...) loc_1457B8: jmp short $+2 loc_1457BA: mov [rsp+38h+var_1], 0 jmp short loc_1457C6 loc_1457C1: mov [rsp+38h+var_1], 1 loc_1457C6: mov al, [rsp+38h+var_1] and al, 1 add rsp, 38h retn
char set_process_priority(int a1) { unsigned int *v1; // rax _DWORD *v2; // rax int v4; // [rsp+8h] [rbp-30h] int v5; // [rsp+18h] [rbp-20h] unsigned int v6; // [rsp+2Ch] [rbp-Ch] if ( !a1 ) return 1; v6 = 0; switch ( a1 ) { case 0: v6 = 0; break; case 1: v6 = -5; break; case 2: v6 = -10; break; case 3: v6 = -20; break; default: break; } if ( (unsigned int)setpriority(0LL, 0LL, v6) ) return 1; if ( common_log_verbosity_thold >= 0 ) { v4 = common_log_main(); v1 = (unsigned int *)__errno_location(); v5 = strerror(*v1); v2 = (_DWORD *)__errno_location(); common_log_add(v4, 3, (unsigned int)"failed to set process priority %d : %s (%d)\n", a1, v5, *v2); } return 0; }
31,087
set_process_priority(ggml_sched_priority)
monkey531[P]llama/common/common.cpp
bool set_process_priority(enum ggml_sched_priority prio) { if (prio == GGML_SCHED_PRIO_NORMAL) { return true; } int p = 0; switch (prio) { case GGML_SCHED_PRIO_NORMAL: p = 0; break; case GGML_SCHED_PRIO_MEDIUM: p = -5; break; case GGML_SCHED_PRIO_HIGH: p = -10; break; case GGML_SCHED_PRIO_REALTIME: p = -20; break; } if (!setpriority(PRIO_PROCESS, 0, p)) { LOG_WRN("failed to set process priority %d : %s (%d)\n", prio, strerror(errno), errno); return false; } return true; }
O2
cpp
set_process_priority(ggml_sched_priority): pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %edi, %ebx cmpl $0x3, %edi ja 0x6b8ba movl %ebx, %eax leaq 0x39edd(%rip), %rcx # 0xa577c movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movb $0x1, %bpl jmp 0x6b90e pushq $-0xa jmp 0x6b8b7 pushq $-0x14 jmp 0x6b8b7 pushq $-0x5 popq %rdx jmp 0x6b8bc xorl %edx, %edx xorl %edi, %edi xorl %esi, %esi callq 0x201b0 testl %eax, %eax setne %bpl jne 0x6b90e leaq 0x7775c(%rip), %rax # 0xe3030 cmpl $0x0, (%rax) js 0x6b90e callq 0x73a42 movq %rax, %r14 callq 0x20050 movq %rax, %r15 movl (%rax), %edi callq 0x20230 movl (%r15), %r9d leaq 0x3a0b4(%rip), %rdx # 0xa59ae xorl %ebp, %ebp pushq $0x3 popq %rsi movq %r14, %rdi movl %ebx, %ecx movq %rax, %r8 xorl %eax, %eax callq 0x73ada movl %ebp, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
_Z20set_process_priority19ggml_sched_priority: push rbp push r15 push r14 push rbx push rax mov ebx, edi cmp edi, 3; switch 4 cases ja short def_6B8A6; jumptable 000000000006B8A6 default case mov eax, ebx lea rcx, jpt_6B8A6 movsxd rax, ds:(jpt_6B8A6 - 0A577Ch)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_6B8A8: mov bpl, 1; jumptable 000000000006B8A6 case 0 jmp short loc_6B90E loc_6B8AD: push 0FFFFFFFFFFFFFFF6h; jumptable 000000000006B8A6 case 2 jmp short loc_6B8B7 loc_6B8B1: push 0FFFFFFFFFFFFFFECh; jumptable 000000000006B8A6 case 3 jmp short loc_6B8B7 loc_6B8B5: push 0FFFFFFFFFFFFFFFBh; jumptable 000000000006B8A6 case 1 loc_6B8B7: pop rdx jmp short loc_6B8BC def_6B8A6: xor edx, edx; jumptable 000000000006B8A6 default case loc_6B8BC: xor edi, edi xor esi, esi call _setpriority test eax, eax setnz bpl jnz short loc_6B90E lea rax, common_log_verbosity_thold cmp dword ptr [rax], 0 js short loc_6B90E call _Z15common_log_mainv; common_log_main(void) mov r14, rax call ___errno_location mov r15, rax mov edi, [rax] call _strerror mov r9d, [r15] lea rdx, aFailedToSetPro; "failed to set process priority %d : %s "... xor ebp, ebp push 3 pop rsi mov rdi, r14 mov ecx, ebx mov r8, rax xor eax, eax call _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...) loc_6B90E: mov eax, ebp add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long set_process_priority(int a1) { char v1; // al unsigned int v2; // ebp long long v3; // rdx int v4; // eax int v5; // r14d unsigned int *v6; // r15 int v7; // eax long long v9; // [rsp-10h] [rbp-30h] char v10; // [rsp-8h] [rbp-28h] v10 = v1; switch ( a1 ) { case 0: LOBYTE(v2) = 1; return v2; case 1: v9 = -5LL; goto LABEL_6; case 2: v9 = -10LL; goto LABEL_6; case 3: v9 = -20LL; LABEL_6: v3 = v9; break; default: v3 = 0LL; break; } v4 = setpriority(0LL, 0LL, v3); LOBYTE(v2) = v4 != 0; if ( !v4 && common_log_verbosity_thold >= 0 ) { v5 = common_log_main(); v6 = (unsigned int *)__errno_location(); v7 = strerror(*v6); v2 = 0; common_log_add(v5, 3, (unsigned int)"failed to set process priority %d : %s (%d)\n", a1, v7, *v6, v10); } return v2; }
31,088
set_process_priority(ggml_sched_priority)
monkey531[P]llama/common/common.cpp
bool set_process_priority(enum ggml_sched_priority prio) { if (prio == GGML_SCHED_PRIO_NORMAL) { return true; } int p = 0; switch (prio) { case GGML_SCHED_PRIO_NORMAL: p = 0; break; case GGML_SCHED_PRIO_MEDIUM: p = -5; break; case GGML_SCHED_PRIO_HIGH: p = -10; break; case GGML_SCHED_PRIO_REALTIME: p = -20; break; } if (!setpriority(PRIO_PROCESS, 0, p)) { LOG_WRN("failed to set process priority %d : %s (%d)\n", prio, strerror(errno), errno); return false; } return true; }
O3
cpp
set_process_priority(ggml_sched_priority): pushq %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax movl %edi, %ebx cmpl $0x3, %edi ja 0x7b1fd movl %ebx, %eax leaq 0x45162(%rip), %rcx # 0xc033c movslq (%rcx,%rax,4), %rax addq %rcx, %rax jmpq *%rax movb $0x1, %bpl jmp 0x7b253 movl $0xfffffff6, %edx # imm = 0xFFFFFFF6 jmp 0x7b1ff movl $0xffffffec, %edx # imm = 0xFFFFFFEC jmp 0x7b1ff movl $0xfffffffb, %edx # imm = 0xFFFFFFFB jmp 0x7b1ff xorl %edx, %edx xorl %edi, %edi xorl %esi, %esi callq 0x18180 testl %eax, %eax setne %bpl jne 0x7b253 leaq 0x75de9(%rip), %rax # 0xf1000 cmpl $0x0, (%rax) js 0x7b253 callq 0x85553 movq %rax, %r14 callq 0x18060 movq %rax, %r15 movl (%rax), %edi callq 0x18220 movl (%r15), %r9d leaq 0x45361(%rip), %rdx # 0xc059e xorl %ebp, %ebp movq %r14, %rdi movl $0x3, %esi movl %ebx, %ecx movq %rax, %r8 xorl %eax, %eax callq 0x855f0 movl %ebp, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
_Z20set_process_priority19ggml_sched_priority: push rbp push r15 push r14 push rbx push rax mov ebx, edi cmp edi, 3; switch 4 cases ja short def_7B1E1; jumptable 000000000007B1E1 default case mov eax, ebx lea rcx, jpt_7B1E1 movsxd rax, ds:(jpt_7B1E1 - 0C033Ch)[rcx+rax*4] add rax, rcx jmp rax; switch jump loc_7B1E3: mov bpl, 1; jumptable 000000000007B1E1 case 0 jmp short loc_7B253 loc_7B1E8: mov edx, 0FFFFFFF6h; jumptable 000000000007B1E1 case 2 jmp short loc_7B1FF loc_7B1EF: mov edx, 0FFFFFFECh; jumptable 000000000007B1E1 case 3 jmp short loc_7B1FF loc_7B1F6: mov edx, 0FFFFFFFBh; jumptable 000000000007B1E1 case 1 jmp short loc_7B1FF def_7B1E1: xor edx, edx; jumptable 000000000007B1E1 default case loc_7B1FF: xor edi, edi xor esi, esi call _setpriority test eax, eax setnz bpl jnz short loc_7B253 lea rax, common_log_verbosity_thold cmp dword ptr [rax], 0 js short loc_7B253 call _Z15common_log_mainv; common_log_main(void) mov r14, rax call ___errno_location mov r15, rax mov edi, [rax] call _strerror mov r9d, [r15] lea rdx, aFailedToSetPro; "failed to set process priority %d : %s "... xor ebp, ebp mov rdi, r14 mov esi, 3 mov ecx, ebx mov r8, rax xor eax, eax call _Z14common_log_addP10common_log14ggml_log_levelPKcz; common_log_add(common_log *,ggml_log_level,char const*,...) loc_7B253: mov eax, ebp add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long set_process_priority(int a1) { char v1; // al unsigned int v2; // ebp long long v3; // rdx int v4; // eax int v5; // r14d unsigned int *v6; // r15 int v7; // eax char v9; // [rsp-8h] [rbp-28h] v9 = v1; switch ( a1 ) { case 0: LOBYTE(v2) = 1; return v2; case 1: v3 = 4294967291LL; goto LABEL_7; case 2: v3 = 4294967286LL; goto LABEL_7; case 3: v3 = 4294967276LL; goto LABEL_7; default: v3 = 0LL; LABEL_7: v4 = setpriority(0LL, 0LL, v3); LOBYTE(v2) = v4 != 0; if ( !v4 && common_log_verbosity_thold >= 0 ) { v5 = common_log_main(); v6 = (unsigned int *)__errno_location(); v7 = strerror(*v6); v2 = 0; common_log_add(v5, 3, (unsigned int)"failed to set process priority %d : %s (%d)\n", a1, v7, *v6, v9); } return v2; } }
set_process_priority: PUSH RBP PUSH R15 PUSH R14 PUSH RBX PUSH RAX MOV EBX,EDI CMP EDI,0x3 JA 0x0017b1fd MOV EAX,EBX LEA RCX,[0x1c033c] MOVSXD RAX,dword ptr [RCX + RAX*0x4] ADD RAX,RCX switchD: JMP RAX caseD_0: MOV BPL,0x1 JMP 0x0017b253 caseD_2: MOV EDX,0xfffffff6 JMP 0x0017b1ff caseD_3: MOV EDX,0xffffffec JMP 0x0017b1ff caseD_1: MOV EDX,0xfffffffb JMP 0x0017b1ff default: XOR EDX,EDX LAB_0017b1ff: XOR EDI,EDI XOR ESI,ESI CALL 0x00118180 TEST EAX,EAX SETNZ BPL JNZ 0x0017b253 LEA RAX,[0x1f1000] CMP dword ptr [RAX],0x0 JS 0x0017b253 CALL 0x00185553 MOV R14,RAX CALL 0x00118060 MOV R15,RAX MOV EDI,dword ptr [RAX] CALL 0x00118220 MOV R9D,dword ptr [R15] LEA RDX,[0x1c059e] XOR EBP,EBP MOV RDI,R14 MOV ESI,0x3 MOV ECX,EBX MOV R8,RAX XOR EAX,EAX CALL 0x001855f0 LAB_0017b253: MOV EAX,EBP ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
/* set_process_priority(ggml_sched_priority) */ ulong set_process_priority(int4 param_1) { int iVar1; int8 uVar2; int *piVar3; char *pcVar4; int8 unaff_RBP; int7 uVar6; ulong uVar5; uVar6 = (int7)((ulong)unaff_RBP >> 8); switch(param_1) { case 0: uVar5 = CONCAT71(uVar6,1); goto LAB_0017b253; case 1: iVar1 = -5; break; case 2: iVar1 = -10; break; case 3: iVar1 = -0x14; break; default: iVar1 = 0; } iVar1 = setpriority(PRIO_PROCESS,0,iVar1); uVar5 = CONCAT71(uVar6,iVar1 != 0); if ((iVar1 == 0) && (-1 < common_log_verbosity_thold)) { uVar2 = common_log_main(); piVar3 = __errno_location(); pcVar4 = strerror(*piVar3); uVar5 = 0; common_log_add(uVar2,3,"failed to set process priority %d : %s (%d)\n",param_1,pcVar4,*piVar3); } LAB_0017b253: return uVar5 & 0xffffffff; }
31,089
my_sync_dir
eloqsql/mysys/my_sync.c
int my_sync_dir(const char *dir_name __attribute__((unused)), myf my_flags __attribute__((unused))) { #ifdef NEED_EXPLICIT_SYNC_DIR static const char cur_dir_name[]= {FN_CURLIB, 0}; File dir_fd; int res= 0; const char *correct_dir_name; DBUG_ENTER("my_sync_dir"); DBUG_PRINT("my",("Dir: '%s' my_flags: %lu", dir_name, my_flags)); /* Sometimes the path does not contain an explicit directory */ correct_dir_name= (dir_name[0] == 0) ? cur_dir_name : dir_name; /* Syncing a dir may give EINVAL on tmpfs on Linux, which is ok. EIO on the other hand is very important. Hence MY_IGNORE_BADFD. */ if ((dir_fd= my_open(correct_dir_name, O_RDONLY, MYF(my_flags))) >= 0) { if (my_sync(dir_fd, MYF(my_flags | MY_IGNORE_BADFD))) res= 2; if (my_close(dir_fd, MYF(my_flags))) res= 3; } else res= 1; DBUG_RETURN(res); #else return 0; #endif }
O3
c
my_sync_dir: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %rbx pushq %rax cmpb $0x0, (%rdi) movq %rsi, %rbx leaq 0x34c54(%rip), %rax # 0x60b70 cmoveq %rax, %rdi xorl %esi, %esi movq %rbx, %rdx callq 0x2b5a8 testl %eax, %eax js 0x2bf63 movl %eax, %r14d movq %rbx, %rsi orq $0x20, %rsi movl %eax, %edi callq 0x2bdd4 xorl %r15d, %r15d testl %eax, %eax setne %r15b addl %r15d, %r15d movl %r14d, %edi movq %rbx, %rsi callq 0x2b74d testl %eax, %eax movl $0x3, %eax cmovel %r15d, %eax jmp 0x2bf68 movl $0x1, %eax addq $0x8, %rsp popq %rbx popq %r14 popq %r15 popq %rbp retq
my_sync_dir: push rbp mov rbp, rsp push r15 push r14 push rbx push rax cmp byte ptr [rdi], 0 mov rbx, rsi lea rax, my_sync_dir_cur_dir_name cmovz rdi, rax xor esi, esi mov rdx, rbx call my_open test eax, eax js short loc_2BF63 mov r14d, eax mov rsi, rbx or rsi, 20h mov edi, eax call my_sync xor r15d, r15d test eax, eax setnz r15b add r15d, r15d mov edi, r14d mov rsi, rbx call my_close test eax, eax mov eax, 3 cmovz eax, r15d jmp short loc_2BF68 loc_2BF63: mov eax, 1 loc_2BF68: add rsp, 8 pop rbx pop r14 pop r15 pop rbp retn
long long my_sync_dir(_BYTE *a1, long long a2) { int v2; // eax unsigned int v3; // r14d unsigned int v4; // r15d bool v5; // zf long long result; // rax if ( !*a1 ) a1 = &my_sync_dir_cur_dir_name; v2 = my_open((long long)a1, 0, a2); if ( v2 < 0 ) return 1LL; v3 = v2; v4 = 2 * ((unsigned int)my_sync((unsigned int)v2, (unsigned int)a2 | 0x20) != 0); v5 = (unsigned int)my_close(v3, a2) == 0; result = 3LL; if ( v5 ) return v4; return result; }
my_sync_dir: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH RBX PUSH RAX CMP byte ptr [RDI],0x0 MOV RBX,RSI LEA RAX,[0x160b70] CMOVZ RDI,RAX XOR ESI,ESI MOV RDX,RBX CALL 0x0012b5a8 TEST EAX,EAX JS 0x0012bf63 MOV R14D,EAX MOV RSI,RBX OR RSI,0x20 MOV EDI,EAX CALL 0x0012bdd4 XOR R15D,R15D TEST EAX,EAX SETNZ R15B ADD R15D,R15D MOV EDI,R14D MOV RSI,RBX CALL 0x0012b74d TEST EAX,EAX MOV EAX,0x3 CMOVZ EAX,R15D JMP 0x0012bf68 LAB_0012bf63: MOV EAX,0x1 LAB_0012bf68: ADD RSP,0x8 POP RBX POP R14 POP R15 POP RBP RET
char my_sync_dir(char *param_1,ulong param_2) { char cVar1; int iVar2; int iVar3; if (*param_1 == '\0') { param_1 = "."; } iVar2 = my_open(param_1,0,param_2); if (iVar2 < 0) { cVar1 = '\x01'; } else { iVar3 = my_sync(iVar2,param_2 | 0x20); iVar2 = my_close(iVar2,param_2); cVar1 = '\x03'; if (iVar2 == 0) { cVar1 = (iVar3 != 0) * '\x02'; } } return cVar1; }
31,090
js_os_waitpid
bluesky950520[P]quickjs/quickjs-libc.c
static JSValue js_os_waitpid(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { int pid, status, options, ret; JSValue obj; if (JS_ToInt32(ctx, &pid, argv[0])) return JS_EXCEPTION; if (JS_ToInt32(ctx, &options, argv[1])) return JS_EXCEPTION; ret = waitpid(pid, &status, options); if (ret < 0) { ret = -errno; status = 0; } obj = JS_NewArray(ctx); if (JS_IsException(obj)) return obj; JS_DefinePropertyValueUint32(ctx, obj, 0, JS_NewInt32(ctx, ret), JS_PROP_C_W_E); JS_DefinePropertyValueUint32(ctx, obj, 1, JS_NewInt32(ctx, status), JS_PROP_C_W_E); return obj; }
O1
c
js_os_waitpid: pushq %rbp pushq %r15 pushq %r14 pushq %r12 pushq %rbx subq $0x20, %rsp movq %r8, %r15 movq %rdi, %rbx movq (%r8), %rdx movq 0x8(%r8), %rcx leaq 0x1c(%rsp), %rsi callq 0x26d9c movl $0x6, %r14d testl %eax, %eax jne 0x19c75 movq 0x10(%r15), %rdx movq 0x18(%r15), %rcx leaq 0x18(%rsp), %rsi movq %rbx, %rdi callq 0x26d9c testl %eax, %eax je 0x19c90 xorl %r15d, %r15d xorl %ecx, %ecx movl %r15d, %eax orq %rcx, %rax movq %r14, %rdx addq $0x20, %rsp popq %rbx popq %r12 popq %r14 popq %r15 popq %rbp retq movl 0x1c(%rsp), %edi movl 0x18(%rsp), %edx leaq 0x14(%rsp), %rsi callq 0xe740 movl %eax, %ebp testl %eax, %eax jns 0x19cb7 callq 0xe0b0 xorl %ecx, %ecx xorl %ebp, %ebp subl (%rax), %ebp movl %ecx, 0x14(%rsp) movabsq $-0x100000000, %r12 # imm = 0xFFFFFFFF00000000 movq %rbx, %rdi callq 0xf664 movq %rax, %r15 movq %rdx, %r14 cmpl $0x6, %r14d je 0x19d11 movl %ebp, %r8d movl $0x7, %ebp movl %ebp, (%rsp) movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx xorl %ecx, %ecx xorl %r9d, %r9d callq 0x25fb1 movl 0x14(%rsp), %r8d movl %ebp, (%rsp) movq %rbx, %rdi movq %r15, %rsi movq %r14, %rdx movl $0x1, %ecx xorl %r9d, %r9d callq 0x25fb1 movq %r15, %rcx andq %r12, %rcx jmp 0x19c7a
js_os_waitpid: push rbp push r15 push r14 push r12 push rbx sub rsp, 20h mov r15, r8 mov rbx, rdi mov rdx, [r8] mov rcx, [r8+8] lea rsi, [rsp+48h+var_2C] call JS_ToInt32 mov r14d, 6 test eax, eax jnz short loc_19C75 mov rdx, [r15+10h] mov rcx, [r15+18h] lea rsi, [rsp+48h+var_30] mov rdi, rbx call JS_ToInt32 test eax, eax jz short loc_19C90 loc_19C75: xor r15d, r15d xor ecx, ecx loc_19C7A: mov eax, r15d or rax, rcx mov rdx, r14 add rsp, 20h pop rbx pop r12 pop r14 pop r15 pop rbp retn loc_19C90: mov edi, [rsp+48h+var_2C] mov edx, [rsp+48h+var_30] lea rsi, [rsp+48h+var_34] call _waitpid mov ebp, eax test eax, eax jns short loc_19CB7 call ___errno_location xor ecx, ecx xor ebp, ebp sub ebp, [rax] mov [rsp+48h+var_34], ecx loc_19CB7: mov r12, 0FFFFFFFF00000000h mov rdi, rbx call JS_NewArray mov r15, rax mov r14, rdx cmp r14d, 6 jz short loc_19D11 mov r8d, ebp mov ebp, 7 mov [rsp+48h+var_48], ebp mov rdi, rbx mov rsi, r15 mov rdx, r14 xor ecx, ecx xor r9d, r9d call JS_DefinePropertyValueUint32 mov r8d, [rsp+48h+var_34] mov [rsp+48h+var_48], ebp mov rdi, rbx mov rsi, r15 mov rdx, r14 mov ecx, 1 xor r9d, r9d call JS_DefinePropertyValueUint32 loc_19D11: mov rcx, r15 and rcx, r12 jmp loc_19C7A
unsigned long long js_os_waitpid(long long a1, long long a2, long long a3, long long a4, _QWORD *a5) { long long v7; // r15 unsigned long long v8; // rcx long long v10; // rdi int v11; // ebp long long v12; // rax int v13; // edx int v14; // r14d int v15; // [rsp+14h] [rbp-34h] BYREF unsigned int v16; // [rsp+18h] [rbp-30h] BYREF _DWORD v17[11]; // [rsp+1Ch] [rbp-2Ch] BYREF if ( (unsigned int)JS_ToInt32(a1, v17, *a5, a5[1]) || (unsigned int)JS_ToInt32(a1, &v16, a5[2], a5[3]) ) { LODWORD(v7) = 0; v8 = 0LL; } else { v10 = v17[0]; v11 = waitpid(v17[0], &v15, v16); if ( v11 < 0 ) { v11 = -*(_DWORD *)__errno_location(v10); v15 = 0; } v12 = JS_NewArray(a1); v7 = v12; v14 = v13; if ( v13 != 6 ) { JS_DefinePropertyValueUint32(a1, v12, v13, 0, v11, 0, 7); JS_DefinePropertyValueUint32(a1, v7, v14, 1, v15, 0, 7); } v8 = v7 & 0xFFFFFFFF00000000LL; } return v8 | (unsigned int)v7; }
js_os_waitpid: PUSH RBP PUSH R15 PUSH R14 PUSH R12 PUSH RBX SUB RSP,0x20 MOV R15,R8 MOV RBX,RDI MOV RDX,qword ptr [R8] MOV RCX,qword ptr [R8 + 0x8] LEA RSI,[RSP + 0x1c] CALL 0x00126d9c MOV R14D,0x6 TEST EAX,EAX JNZ 0x00119c75 MOV RDX,qword ptr [R15 + 0x10] MOV RCX,qword ptr [R15 + 0x18] LEA RSI,[RSP + 0x18] MOV RDI,RBX CALL 0x00126d9c TEST EAX,EAX JZ 0x00119c90 LAB_00119c75: XOR R15D,R15D XOR ECX,ECX LAB_00119c7a: MOV EAX,R15D OR RAX,RCX MOV RDX,R14 ADD RSP,0x20 POP RBX POP R12 POP R14 POP R15 POP RBP RET LAB_00119c90: MOV EDI,dword ptr [RSP + 0x1c] MOV EDX,dword ptr [RSP + 0x18] LEA RSI,[RSP + 0x14] CALL 0x0010e740 MOV EBP,EAX TEST EAX,EAX JNS 0x00119cb7 CALL 0x0010e0b0 XOR ECX,ECX XOR EBP,EBP SUB EBP,dword ptr [RAX] MOV dword ptr [RSP + 0x14],ECX LAB_00119cb7: MOV R12,-0x100000000 MOV RDI,RBX CALL 0x0010f664 MOV R15,RAX MOV R14,RDX CMP R14D,0x6 JZ 0x00119d11 MOV R8D,EBP MOV EBP,0x7 MOV dword ptr [RSP],EBP MOV RDI,RBX MOV RSI,R15 MOV RDX,R14 XOR ECX,ECX XOR R9D,R9D CALL 0x00125fb1 MOV R8D,dword ptr [RSP + 0x14] MOV dword ptr [RSP],EBP MOV RDI,RBX MOV RSI,R15 MOV RDX,R14 MOV ECX,0x1 XOR R9D,R9D CALL 0x00125fb1 LAB_00119d11: MOV RCX,R15 AND RCX,R12 JMP 0x00119c7a
int1 [16] js_os_waitpid(int8 param_1) { int iVar1; int *piVar2; ulong uVar3; int8 *in_R8; int1 auVar4 [16]; int1 auVar5 [16]; int local_34; int local_30; __pid_t local_2c; iVar1 = JS_ToInt32(param_1,&local_2c,*in_R8,in_R8[1]); if (iVar1 == 0) { iVar1 = JS_ToInt32(param_1,&local_30,in_R8[2]); if (iVar1 == 0) { iVar1 = waitpid(local_2c,&local_34,local_30); if (iVar1 < 0) { piVar2 = __errno_location(); iVar1 = -*piVar2; local_34 = 0; } auVar5 = JS_NewArray(param_1); uVar3 = auVar5._0_8_; if (auVar5._8_4_ != 6) { JS_DefinePropertyValueUint32(param_1,uVar3,auVar5._8_8_,0,iVar1,0,7); JS_DefinePropertyValueUint32(param_1,uVar3,auVar5._8_8_,1,local_34,0,7); } uVar3 = uVar3 & 0xffffffff00000000; goto LAB_00119c7a; } } auVar5 = ZEXT816(6) << 0x40; uVar3 = 0; LAB_00119c7a: auVar4._0_8_ = auVar5._0_8_ & 0xffffffff | uVar3; auVar4._8_8_ = auVar5._8_8_; return auVar4; }
31,091
chess::uci::appendPromotion(chess::Move const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
Razamindset[P]pawnstar-chess-engine/src/engine/../chess-library/include/chess.hpp
static void appendPromotion(const Move &move, std::string &str) { str += '='; str += std::toupper(static_cast<std::string>(move.promotionType())[0]); }
O1
cpp
chess::uci::appendPromotion(chess::Move const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&): pushq %r14 pushq %rbx subq $0x28, %rsp movq %rsi, %rbx movq %rdi, %r14 movq %rsi, %rdi movl $0x3d, %esi callq 0x31d0 movzwl (%r14), %eax shrl $0xc, %eax andb $0x3, %al incb %al leaq 0x7(%rsp), %rsi movb %al, (%rsi) leaq 0x8(%rsp), %r14 movq %r14, %rdi callq 0xaa00 movq (%r14), %rax movsbl (%rax), %edi callq 0x33a0 movsbl %al, %esi movq %rbx, %rdi callq 0x31d0 leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xa9d2 movq 0x18(%rsp), %rsi incq %rsi callq 0x3210 addq $0x28, %rsp popq %rbx popq %r14 retq movq %rax, %rbx leaq 0x18(%rsp), %rax movq -0x10(%rax), %rdi cmpq %rax, %rdi je 0xa9f8 movq 0x18(%rsp), %rsi incq %rsi callq 0x3210 movq %rbx, %rdi callq 0x3360
_ZN5chess3uci15appendPromotionERKNS_4MoveERNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE: push r14 push rbx sub rsp, 28h mov rbx, rsi mov r14, rdi mov rdi, rsi mov esi, 3Dh ; '=' call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) movzx eax, word ptr [r14] shr eax, 0Ch and al, 3 inc al lea rsi, [rsp+38h+var_31] mov [rsi], al lea r14, [rsp+38h+var_30] mov rdi, r14 call _ZNK5chess9PieceTypecvNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEv; chess::PieceType::operator std::string(void) mov rax, [r14] movsx edi, byte ptr [rax] call _toupper movsx esi, al mov rdi, rbx call __ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9push_backEc; std::string::push_back(char) lea rax, [rsp+38h+var_20] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_A9D2 mov rsi, [rsp+38h+var_20] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_A9D2: add rsp, 28h pop rbx pop r14 retn mov rbx, rax lea rax, [rsp+arg_10] mov rdi, [rax-10h]; void * cmp rdi, rax jz short loc_A9F8 mov rsi, [rsp+arg_10] inc rsi; unsigned __int64 call __ZdlPvm; operator delete(void *,ulong) loc_A9F8: mov rdi, rbx call __Unwind_Resume
void chess::uci::appendPromotion(long long a1, long long a2) { char v2; // al char *v3; // [rsp+8h] [rbp-30h] BYREF long long v4; // [rsp+18h] [rbp-20h] BYREF std::string::push_back(a2, 61LL); chess::PieceType::operator std::string(&v3); v2 = toupper((unsigned int)*v3); std::string::push_back(a2, (unsigned int)v2); if ( v3 != (char *)&v4 ) operator delete(v3, v4 + 1); }
appendPromotion: PUSH R14 PUSH RBX SUB RSP,0x28 MOV RBX,RSI MOV R14,RDI MOV RDI,RSI MOV ESI,0x3d CALL 0x001031d0 MOVZX EAX,word ptr [R14] SHR EAX,0xc AND AL,0x3 INC AL LEA RSI,[RSP + 0x7] MOV byte ptr [RSI],AL LEA R14,[RSP + 0x8] MOV RDI,R14 CALL 0x0010aa00 MOV RAX,qword ptr [R14] MOVSX EDI,byte ptr [RAX] CALL 0x001033a0 LAB_0010a9ac: MOVSX ESI,AL MOV RDI,RBX CALL 0x001031d0 LAB_0010a9b7: LEA RAX,[RSP + 0x18] MOV RDI,qword ptr [RAX + -0x10] CMP RDI,RAX JZ 0x0010a9d2 MOV RSI,qword ptr [RSP + 0x18] INC RSI CALL 0x00103210 LAB_0010a9d2: ADD RSP,0x28 POP RBX POP R14 RET
/* chess::uci::appendPromotion(chess::Move const&, std::__cxx11::string&) */ void chess::uci::appendPromotion(Move *param_1,string *param_2) { long *local_30 [2]; long local_20 [2]; std::__cxx11::string::push_back((char)param_2); PieceType::operator_cast_to_string((PieceType *)local_30); toupper((int)(char)*local_30[0]); /* try { // try from 0010a9ac to 0010a9b6 has its CatchHandler @ 0010a9da */ std::__cxx11::string::push_back((char)param_2); if (local_30[0] != local_20) { operator_delete(local_30[0],local_20[0] + 1); } return; }
31,092
wt_thd_destroy
eloqsql/mysys/waiting_threads.c
void wt_thd_destroy(WT_THD *thd) { DBUG_ENTER("wt_thd_destroy"); DBUG_ASSERT(thd->my_resources.elements == 0); DBUG_ASSERT(thd->waiting_for == 0); if (thd->pins != 0) lf_hash_put_pins(thd->pins); delete_dynamic(&thd->my_resources); DBUG_VOID_RETURN; }
O0
c
wt_thd_destroy: pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) jmp 0xffd4e jmp 0xffd50 jmp 0xffd52 movq -0x8(%rbp), %rax cmpq $0x0, 0x30(%rax) je 0xffd6a movq -0x8(%rbp), %rax movq 0x30(%rax), %rdi callq 0xfc300 movq -0x8(%rbp), %rdi callq 0xdadd0 jmp 0xffd75 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
wt_thd_destroy: push rbp mov rbp, rsp sub rsp, 10h mov [rbp+var_8], rdi jmp short $+2 loc_FFD4E: jmp short $+2 loc_FFD50: jmp short $+2 loc_FFD52: mov rax, [rbp+var_8] cmp qword ptr [rax+30h], 0 jz short loc_FFD6A mov rax, [rbp+var_8] mov rdi, [rax+30h] call lf_pinbox_put_pins loc_FFD6A: mov rdi, [rbp+var_8] call delete_dynamic jmp short $+2 loc_FFD75: add rsp, 10h pop rbp retn
long long wt_thd_destroy(long long a1) { if ( *(_QWORD *)(a1 + 48) ) lf_pinbox_put_pins(*(_QWORD *)(a1 + 48)); return delete_dynamic(a1); }
wt_thd_destroy: PUSH RBP MOV RBP,RSP SUB RSP,0x10 MOV qword ptr [RBP + -0x8],RDI JMP 0x001ffd4e LAB_001ffd4e: JMP 0x001ffd50 LAB_001ffd50: JMP 0x001ffd52 LAB_001ffd52: MOV RAX,qword ptr [RBP + -0x8] CMP qword ptr [RAX + 0x30],0x0 JZ 0x001ffd6a MOV RAX,qword ptr [RBP + -0x8] MOV RDI,qword ptr [RAX + 0x30] CALL 0x001fc300 LAB_001ffd6a: MOV RDI,qword ptr [RBP + -0x8] CALL 0x001dadd0 JMP 0x001ffd75 LAB_001ffd75: ADD RSP,0x10 POP RBP RET
void wt_thd_destroy(long param_1) { if (*(long *)(param_1 + 0x30) != 0) { lf_pinbox_put_pins(*(int8 *)(param_1 + 0x30)); } delete_dynamic(param_1); return; }
31,093
add_dynamic_byte_list
corpus-core[P]colibri-stateless/src/chains/eth/proofer/proof_account.c
static void add_dynamic_byte_list(json_t bytes_list, ssz_builder_t* builder, char* name) { const ssz_def_t* account_proof_container = eth_ssz_verification_type(ETH_SSZ_VERIFY_ACCOUNT_PROOF); ssz_builder_t list = {0}; list.def = (ssz_def_t*) &account_proof_container->def.container.elements[0]; buffer_t tmp = {0}; size_t len = json_len(bytes_list); uint32_t offset = 0; for (size_t i = 0; i < len; i++) ssz_add_dynamic_list_bytes(&list, len, json_as_bytes(json_at(bytes_list, i), &tmp)); ssz_ob_t list_ob = ssz_builder_to_bytes(&list); ssz_add_bytes(builder, name, list_ob.bytes); safe_free(list_ob.bytes.data); buffer_free(&tmp); }
O0
c
add_dynamic_byte_list: pushq %rbp movq %rsp, %rbp subq $0xf0, %rsp leaq 0x10(%rbp), %rax movq %rax, -0xc8(%rbp) movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movl $0x6, %edi callq 0x166f0 movq %rax, -0x18(%rbp) leaq -0x50(%rbp), %rdi xorl %esi, %esi movl $0x38, %edx callq 0x5110 movq -0x18(%rbp), %rax movq 0x10(%rax), %rax movq %rax, -0x50(%rbp) leaq -0x68(%rbp), %rdi xorl %esi, %esi movl $0x18, %edx callq 0x5110 movq -0xc8(%rbp), %rax movq (%rax), %rcx movq %rcx, (%rsp) movq 0x8(%rax), %rcx movq %rcx, 0x8(%rsp) movq 0x10(%rax), %rax movq %rax, 0x10(%rsp) callq 0x20790 movq %rax, -0x70(%rbp) movl $0x0, -0x74(%rbp) movq $0x0, -0x80(%rbp) movq -0x80(%rbp), %rax cmpq -0x70(%rbp), %rax jae 0x76ab movq -0xc8(%rbp), %rax movq -0x70(%rbp), %rcx movl %ecx, -0xcc(%rbp) movq -0x80(%rbp), %rsi leaq -0xa8(%rbp), %rdi movq (%rax), %rcx movq %rcx, (%rsp) movq 0x8(%rax), %rcx movq %rcx, 0x8(%rsp) movq 0x10(%rax), %rax movq %rax, 0x10(%rsp) callq 0x20660 leaq -0xa8(%rbp), %rax leaq -0x68(%rbp), %rdi movq (%rax), %rcx movq %rcx, (%rsp) movq 0x8(%rax), %rcx movq %rcx, 0x8(%rsp) movq 0x10(%rax), %rax movq %rax, 0x10(%rsp) callq 0x20a60 movl -0xcc(%rbp), %esi movl %eax, -0x90(%rbp) movq %rdx, -0x88(%rbp) movl -0x90(%rbp), %edx movq -0x88(%rbp), %rcx leaq -0x50(%rbp), %rdi callq 0x1e370 movq -0x80(%rbp), %rax addq $0x1, %rax movq %rax, -0x80(%rbp) jmp 0x7600 leaq -0xc0(%rbp), %rdi leaq -0x50(%rbp), %rsi callq 0x1e6c0 movq -0x8(%rbp), %rdi movq -0x10(%rbp), %rsi movl -0xc0(%rbp), %edx movq -0xb8(%rbp), %rcx callq 0x1e730 movq -0xb8(%rbp), %rdi callq 0x18740 leaq -0x68(%rbp), %rdi callq 0x18d90 addq $0xf0, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
add_dynamic_byte_list: push rbp mov rbp, rsp sub rsp, 0F0h lea rax, [rbp+arg_0] mov [rbp+var_C8], rax mov [rbp+var_8], rdi mov [rbp+var_10], rsi mov edi, 6 call eth_ssz_verification_type mov [rbp+var_18], rax lea rdi, [rbp+var_50] xor esi, esi mov edx, 38h ; '8' call _memset mov rax, [rbp+var_18] mov rax, [rax+10h] mov [rbp+var_50], rax lea rdi, [rbp+var_68] xor esi, esi mov edx, 18h call _memset mov rax, [rbp+var_C8] mov rcx, [rax] mov [rsp+0F0h+var_F0], rcx mov rcx, [rax+8] mov [rsp+0F0h+var_E8], rcx mov rax, [rax+10h] mov [rsp+0F0h+var_E0], rax call json_len mov [rbp+var_70], rax mov [rbp+var_74], 0 mov [rbp+var_80], 0 loc_7600: mov rax, [rbp+var_80] cmp rax, [rbp+var_70] jnb loc_76AB mov rax, [rbp+var_C8] mov rcx, [rbp+var_70] mov [rbp+var_CC], ecx mov rsi, [rbp+var_80] lea rdi, [rbp+var_A8] mov rcx, [rax] mov [rsp+0F0h+var_F0], rcx mov rcx, [rax+8] mov [rsp+0F0h+var_E8], rcx mov rax, [rax+10h] mov [rsp+0F0h+var_E0], rax call json_at lea rax, [rbp+var_A8] lea rdi, [rbp+var_68] mov rcx, [rax] mov [rsp+0F0h+var_F0], rcx mov rcx, [rax+8] mov [rsp+0F0h+var_E8], rcx mov rax, [rax+10h] mov [rsp+0F0h+var_E0], rax call json_as_bytes mov esi, [rbp+var_CC] mov [rbp+var_90], eax mov [rbp+var_88], rdx mov edx, [rbp+var_90] mov rcx, [rbp+var_88] lea rdi, [rbp+var_50] call ssz_add_dynamic_list_bytes mov rax, [rbp+var_80] add rax, 1 mov [rbp+var_80], rax jmp loc_7600 loc_76AB: lea rdi, [rbp+var_C0] lea rsi, [rbp+var_50] call ssz_builder_to_bytes mov rdi, [rbp+var_8] mov rsi, [rbp+var_10] mov edx, [rbp+var_C0] mov rcx, [rbp+var_B8] call ssz_add_bytes mov rdi, [rbp+var_B8] call safe_free lea rdi, [rbp+var_68] call buffer_free add rsp, 0F0h pop rbp retn
long long add_dynamic_byte_list( long long a1, long long a2, _DWORD a3, _DWORD a4, _DWORD a5, _DWORD a6, long long a7, long long a8, long long a9) { int v9; // edx int v10; // r8d int v11; // r9d int v12; // edx int v13; // r8d int v14; // r9d int v15; // esi int v16; // edx int v17; // r8d int v18; // r9d long long v19; // rdx unsigned int v21; // [rsp+24h] [rbp-CCh] unsigned int v22; // [rsp+30h] [rbp-C0h] BYREF long long v23; // [rsp+38h] [rbp-B8h] long long v24; // [rsp+48h] [rbp-A8h] BYREF long long v25; // [rsp+50h] [rbp-A0h] long long v26; // [rsp+58h] [rbp-98h] unsigned int v27; // [rsp+60h] [rbp-90h] long long v28; // [rsp+68h] [rbp-88h] unsigned long long i; // [rsp+70h] [rbp-80h] int v30; // [rsp+7Ch] [rbp-74h] unsigned long long v31; // [rsp+80h] [rbp-70h] _BYTE v32[24]; // [rsp+88h] [rbp-68h] BYREF _QWORD v33[7]; // [rsp+A0h] [rbp-50h] BYREF long long v34; // [rsp+D8h] [rbp-18h] long long v35; // [rsp+E0h] [rbp-10h] long long v36; // [rsp+E8h] [rbp-8h] v36 = a1; v35 = a2; v34 = eth_ssz_verification_type(6LL); memset(v33, 0LL, sizeof(v33)); v33[0] = *(_QWORD *)(v34 + 16); memset(v32, 0LL, sizeof(v32)); v31 = json_len((unsigned int)v32, 0, v9, a8, v10, v11, a7, a8, a9); v30 = 0; for ( i = 0LL; i < v31; ++i ) { v21 = v31; v15 = i; json_at((unsigned int)&v24, i, v12, a8, v13, v14, a7, a8, a9); v27 = json_as_bytes((unsigned int)v32, v15, v16, v25, v17, v18, v24, v25, v26); v28 = v19; ssz_add_dynamic_list_bytes(v33, v21, v27, v19); } ssz_builder_to_bytes(&v22, v33); ssz_add_bytes(v36, v35, v22, v23); safe_free(v23); return buffer_free(v32); }
add_dynamic_byte_list: PUSH RBP MOV RBP,RSP SUB RSP,0xf0 LEA RAX,[RBP + 0x10] MOV qword ptr [RBP + -0xc8],RAX MOV qword ptr [RBP + -0x8],RDI MOV qword ptr [RBP + -0x10],RSI MOV EDI,0x6 CALL 0x001166f0 MOV qword ptr [RBP + -0x18],RAX LEA RDI,[RBP + -0x50] XOR ESI,ESI MOV EDX,0x38 CALL 0x00105110 MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RBP + -0x50],RAX LEA RDI,[RBP + -0x68] XOR ESI,ESI MOV EDX,0x18 CALL 0x00105110 MOV RAX,qword ptr [RBP + -0xc8] MOV RCX,qword ptr [RAX] MOV qword ptr [RSP],RCX MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RCX MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x10],RAX CALL 0x00120790 MOV qword ptr [RBP + -0x70],RAX MOV dword ptr [RBP + -0x74],0x0 MOV qword ptr [RBP + -0x80],0x0 LAB_00107600: MOV RAX,qword ptr [RBP + -0x80] CMP RAX,qword ptr [RBP + -0x70] JNC 0x001076ab MOV RAX,qword ptr [RBP + -0xc8] MOV RCX,qword ptr [RBP + -0x70] MOV dword ptr [RBP + -0xcc],ECX MOV RSI,qword ptr [RBP + -0x80] LEA RDI,[RBP + -0xa8] MOV RCX,qword ptr [RAX] MOV qword ptr [RSP],RCX MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RCX MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x10],RAX CALL 0x00120660 LEA RAX,[RBP + -0xa8] LEA RDI,[RBP + -0x68] MOV RCX,qword ptr [RAX] MOV qword ptr [RSP],RCX MOV RCX,qword ptr [RAX + 0x8] MOV qword ptr [RSP + 0x8],RCX MOV RAX,qword ptr [RAX + 0x10] MOV qword ptr [RSP + 0x10],RAX CALL 0x00120a60 MOV ESI,dword ptr [RBP + -0xcc] MOV dword ptr [RBP + -0x90],EAX MOV qword ptr [RBP + -0x88],RDX MOV EDX,dword ptr [RBP + -0x90] MOV RCX,qword ptr [RBP + -0x88] LEA RDI,[RBP + -0x50] CALL 0x0011e370 MOV RAX,qword ptr [RBP + -0x80] ADD RAX,0x1 MOV qword ptr [RBP + -0x80],RAX JMP 0x00107600 LAB_001076ab: LEA RDI,[RBP + -0xc0] LEA RSI,[RBP + -0x50] CALL 0x0011e6c0 MOV RDI,qword ptr [RBP + -0x8] MOV RSI,qword ptr [RBP + -0x10] MOV EDX,dword ptr [RBP + -0xc0] MOV RCX,qword ptr [RBP + -0xb8] CALL 0x0011e730 MOV RDI,qword ptr [RBP + -0xb8] CALL 0x00118740 LEA RDI,[RBP + -0x68] CALL 0x00118d90 ADD RSP,0xf0 POP RBP RET
void add_dynamic_byte_list (int8 param_1,int8 param_2,int8 param_3,int8 param_4, int8 param_5,int8 param_6,int8 param_7,int8 param_8, int8 param_9) { ulong uVar1; int8 extraout_RDX; int4 local_c8 [2]; int8 local_c0; int8 local_b0; int8 local_a8; int8 local_a0; int4 local_98; int8 local_90; ulong local_88; int4 local_7c; ulong local_78; int1 local_70 [24]; int8 local_58 [7]; long local_20; int8 local_18; int8 local_10; local_18 = param_2; local_10 = param_1; local_20 = eth_ssz_verification_type(6); memset(local_58,0,0x38); local_58[0] = *(int8 *)(local_20 + 0x10); memset(local_70,0,0x18); local_78 = json_len(); local_7c = 0; for (local_88 = 0; uVar1 = local_78, local_88 < local_78; local_88 = local_88 + 1) { json_at(&local_b0,local_88); param_7 = local_b0; param_8 = local_a8; param_9 = local_a0; local_98 = json_as_bytes(local_70); local_90 = extraout_RDX; ssz_add_dynamic_list_bytes(local_58,uVar1 & 0xffffffff,local_98,extraout_RDX); } ssz_builder_to_bytes(local_c8,local_58); ssz_add_bytes(local_10,local_18,local_c8[0],local_c0,param_5,param_6,param_7,param_8,param_9); safe_free(local_c0); buffer_free(local_70); return; }
31,094
key_cache_insert
eloqsql/mysys/mf_keycache.c
int key_cache_insert(KEY_CACHE *keycache, File file, my_off_t filepos, int level, uchar *buff, uint length) { if (keycache->can_be_used) return keycache->interface_funcs->insert(keycache->keycache_cb, file, filepos, level, buff, length); return 0; }
O0
c
key_cache_insert: pushq %rbp movq %rsp, %rbp subq $0x40, %rsp movq %rdi, -0x10(%rbp) movl %esi, -0x14(%rbp) movq %rdx, -0x20(%rbp) movl %ecx, -0x24(%rbp) movq %r8, -0x30(%rbp) movl %r9d, -0x34(%rbp) movq -0x10(%rbp), %rax cmpb $0x0, 0x49(%rax) je 0xe4915 movq -0x10(%rbp), %rax movq 0x10(%rax), %rax movq 0x20(%rax), %rax movq -0x10(%rbp), %rcx movq 0x8(%rcx), %rdi movl -0x14(%rbp), %esi movq -0x20(%rbp), %rdx movl -0x24(%rbp), %ecx movq -0x30(%rbp), %r8 movl -0x34(%rbp), %r9d callq *%rax movl %eax, -0x4(%rbp) jmp 0xe491c movl $0x0, -0x4(%rbp) movl -0x4(%rbp), %eax addq $0x40, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
key_cache_insert: push rbp mov rbp, rsp sub rsp, 40h mov [rbp+var_10], rdi mov [rbp+var_14], esi mov [rbp+var_20], rdx mov [rbp+var_24], ecx mov [rbp+var_30], r8 mov [rbp+var_34], r9d mov rax, [rbp+var_10] cmp byte ptr [rax+49h], 0 jz short loc_E4915 mov rax, [rbp+var_10] mov rax, [rax+10h] mov rax, [rax+20h] mov rcx, [rbp+var_10] mov rdi, [rcx+8] mov esi, [rbp+var_14] mov rdx, [rbp+var_20] mov ecx, [rbp+var_24] mov r8, [rbp+var_30] mov r9d, [rbp+var_34] call rax mov [rbp+var_4], eax jmp short loc_E491C loc_E4915: mov [rbp+var_4], 0 loc_E491C: mov eax, [rbp+var_4] add rsp, 40h pop rbp retn
long long key_cache_insert( long long a1, unsigned int a2, long long a3, unsigned int a4, long long a5, unsigned int a6) { if ( *(_BYTE *)(a1 + 73) ) return (unsigned int)(*(long long ( **)(_QWORD, _QWORD, long long, _QWORD, long long, _QWORD))(*(_QWORD *)(a1 + 16) + 32LL))( *(_QWORD *)(a1 + 8), a2, a3, a4, a5, a6); else return 0; }
key_cache_insert: 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 dword ptr [RBP + -0x24],ECX MOV qword ptr [RBP + -0x30],R8 MOV dword ptr [RBP + -0x34],R9D MOV RAX,qword ptr [RBP + -0x10] CMP byte ptr [RAX + 0x49],0x0 JZ 0x001e4915 MOV RAX,qword ptr [RBP + -0x10] MOV RAX,qword ptr [RAX + 0x10] MOV RAX,qword ptr [RAX + 0x20] MOV RCX,qword ptr [RBP + -0x10] MOV RDI,qword ptr [RCX + 0x8] MOV ESI,dword ptr [RBP + -0x14] MOV RDX,qword ptr [RBP + -0x20] MOV ECX,dword ptr [RBP + -0x24] MOV R8,qword ptr [RBP + -0x30] MOV R9D,dword ptr [RBP + -0x34] CALL RAX MOV dword ptr [RBP + -0x4],EAX JMP 0x001e491c LAB_001e4915: MOV dword ptr [RBP + -0x4],0x0 LAB_001e491c: MOV EAX,dword ptr [RBP + -0x4] ADD RSP,0x40 POP RBP RET
int4 key_cache_insert(long param_1,int4 param_2,int8 param_3,int4 param_4, int8 param_5,int4 param_6) { int4 local_c; if (*(char *)(param_1 + 0x49) == '\0') { local_c = 0; } else { local_c = (**(code **)(*(long *)(param_1 + 0x10) + 0x20)) (*(int8 *)(param_1 + 8),param_2,param_3,param_4,param_5,param_6); } return local_c; }
31,095
my_strntol_mb2_or_mb4
eloqsql/strings/ctype-ucs2.c
static long my_strntol_mb2_or_mb4(CHARSET_INFO *cs, const char *nptr, size_t l, int base, char **endptr, int *err) { int negative= 0; int overflow; int cnv; my_wc_t wc; my_charset_conv_mb_wc mb_wc= cs->cset->mb_wc; register unsigned int cutlim; register uint32 cutoff; register uint32 res; register const uchar *s= (const uchar*) nptr; register const uchar *e= (const uchar*) nptr+l; const uchar *save; *err= 0; do { if ((cnv= mb_wc(cs, &wc, s, e)) > 0) { switch (wc) { case ' ' : break; case '\t': break; case '-' : negative= !negative; break; case '+' : break; default : goto bs; } } else /* No more characters or bad multibyte sequence */ { if (endptr != NULL ) *endptr= (char*) s; err[0]= (cnv==MY_CS_ILSEQ) ? EILSEQ : EDOM; return 0; } s+= cnv; } while (1); bs: overflow= 0; res= 0; save= s; cutoff= ((uint32)~0L) / (uint32) base; cutlim= (uint) (((uint32)~0L) % (uint32) base); do { if ((cnv= mb_wc(cs, &wc, s, e)) > 0) { s+= cnv; if (wc >= '0' && wc <= '9') wc-= '0'; else if (wc >= 'A' && wc <= 'Z') wc= wc - 'A' + 10; else if (wc >= 'a' && wc <= 'z') wc= wc - 'a' + 10; else break; if ((int)wc >= base) break; if (res > cutoff || (res == cutoff && wc > cutlim)) overflow= 1; else { res*= (uint32) base; res+= wc; } } else if (cnv == MY_CS_ILSEQ) { if (endptr !=NULL ) *endptr = (char*) s; err[0]= EILSEQ; return 0; } else { /* No more characters */ break; } } while(1); if (endptr != NULL) *endptr = (char *) s; if (s == save) { err[0]= EDOM; return 0L; } if (negative) { if (res > (uint32) INT_MIN32) overflow= 1; } else if (res > INT_MAX32) overflow= 1; if (overflow) { err[0]= ERANGE; return negative ? INT_MIN32 : INT_MAX32; } return (negative ? -((long) res) : (long) res); }
O3
c
my_strntol_mb2_or_mb4: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp movq %r8, -0x40(%rbp) movl %ecx, -0x34(%rbp) movq %rdx, %r13 movq %rsi, %r15 movq %rdi, %r14 movq 0xb8(%rdi), %rax movq 0x28(%rax), %r12 addq %rsi, %r13 movq %r9, -0x50(%rbp) movl $0x0, (%r9) leaq -0x30(%rbp), %rsi movq %r15, %rdx movq %r13, %rcx callq *%r12 testl %eax, %eax jle 0xca2a6 movl $0x0, -0x38(%rbp) leaq -0x30(%rbp), %rbx movq -0x30(%rbp), %rcx cmpq $0x2a, %rcx jg 0xca276 cmpq $0x9, %rcx je 0xca28e cmpq $0x20, %rcx je 0xca28e jmp 0xca2d8 cmpq $0x2b, %rcx je 0xca28e cmpq $0x2d, %rcx jne 0xca2d8 xorl %ecx, %ecx cmpl $0x0, -0x38(%rbp) sete %cl movl %ecx, -0x38(%rbp) movl %eax, %eax addq %rax, %r15 movq %r14, %rdi movq %rbx, %rsi movq %r15, %rdx movq %r13, %rcx callq *%r12 testl %eax, %eax jg 0xca25e movq -0x40(%rbp), %rcx testq %rcx, %rcx je 0xca2b2 movq %r15, (%rcx) testl %eax, %eax movl $0x54, %eax movl $0x21, %ecx cmovel %eax, %ecx movq -0x50(%rbp), %rax movl %ecx, (%rax) xorl %eax, %eax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq movl $0xffffffff, %eax # imm = 0xFFFFFFFF xorl %edx, %edx divl -0x34(%rbp) movl %edx, %ebx movl %eax, -0x44(%rbp) leaq -0x30(%rbp), %rsi movq %r14, %rdi movq %r15, %rdx movq %r13, %rcx callq *%r12 testl %eax, %eax jle 0xca39e movl %ebx, %ecx movq %rcx, -0x60(%rbp) xorl %ecx, %ecx movq %r15, %rbx xorl %r8d, %r8d movq %rbx, %rsi movl %eax, %ebx addq %rsi, %rbx movq -0x30(%rbp), %rsi leaq -0x30(%rsi), %rax cmpq $0x9, %rax ja 0xca329 movq %rax, -0x30(%rbp) jmp 0xca34e leaq -0x41(%rsi), %rax cmpq $0x19, %rax ja 0xca339 addq $-0x37, %rsi jmp 0xca347 leaq -0x61(%rsi), %rax cmpq $0x19, %rax ja 0xca3ae addq $-0x57, %rsi movq %rsi, -0x30(%rbp) movq %rsi, %rax cmpl -0x34(%rbp), %eax jge 0xca3ae movl $0x1, %esi cmpl -0x44(%rbp), %ecx ja 0xca371 jne 0xca368 movl -0x44(%rbp), %edi cmpq -0x60(%rbp), %rax ja 0xca373 imull -0x34(%rbp), %ecx addl %eax, %ecx movl %r8d, %esi movl %ecx, %edi movl %edi, -0x54(%rbp) movl %esi, -0x58(%rbp) movq %r14, %rdi leaq -0x30(%rbp), %rsi movq %rbx, %rdx movq %r13, %rcx callq *%r12 movl -0x54(%rbp), %edi movl -0x58(%rbp), %esi movl %edi, %ecx movl %esi, %r8d testl %eax, %eax jg 0xca30d jmp 0xca3a5 xorl %edi, %edi movq %r15, %rbx xorl %esi, %esi testl %eax, %eax je 0xca40d movl %esi, %r8d movl %edi, %ecx movq -0x40(%rbp), %rax testq %rax, %rax je 0xca3ba movq %rbx, (%rax) cmpq %r15, %rbx je 0xca3fe cmpl $0x80000001, %ecx # imm = 0x80000001 movl $0x1, %eax movl %r8d, %esi cmovael %eax, %esi testl %ecx, %ecx cmovsl %eax, %r8d movl -0x38(%rbp), %edi testl %edi, %edi cmovnel %esi, %r8d testl %r8d, %r8d je 0xca428 testl %edi, %edi movq -0x50(%rbp), %rax movl $0x22, (%rax) movl $0x7fffffff, %ecx # imm = 0x7FFFFFFF movq $-0x80000000, %rax # imm = 0x80000000 jmp 0xca432 movq -0x50(%rbp), %rax movl $0x21, (%rax) jmp 0xca2c7 movq -0x40(%rbp), %rax testq %rax, %rax je 0xca419 movq %rbx, (%rax) movq -0x50(%rbp), %rax movl $0x54, (%rax) jmp 0xca2c7 movl %ecx, %ecx movq %rcx, %rax negq %rax testl %edi, %edi cmoveq %rcx, %rax jmp 0xca2c9
my_strntol_mb2_or_mb4: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h mov [rbp+var_40], r8 mov [rbp+var_34], ecx mov r13, rdx mov r15, rsi mov r14, rdi mov rax, [rdi+0B8h] mov r12, [rax+28h] add r13, rsi mov [rbp+var_50], r9 mov dword ptr [r9], 0 lea rsi, [rbp+var_30] mov rdx, r15 mov rcx, r13 call r12 test eax, eax jle short loc_CA2A6 mov [rbp+var_38], 0 lea rbx, [rbp+var_30] loc_CA25E: mov rcx, [rbp+var_30] cmp rcx, 2Ah ; '*' jg short loc_CA276 cmp rcx, 9 jz short loc_CA28E cmp rcx, 20h ; ' ' jz short loc_CA28E jmp short loc_CA2D8 loc_CA276: cmp rcx, 2Bh ; '+' jz short loc_CA28E cmp rcx, 2Dh ; '-' jnz short loc_CA2D8 xor ecx, ecx cmp [rbp+var_38], 0 setz cl mov [rbp+var_38], ecx loc_CA28E: mov eax, eax add r15, rax mov rdi, r14 mov rsi, rbx mov rdx, r15 mov rcx, r13 call r12 test eax, eax jg short loc_CA25E loc_CA2A6: mov rcx, [rbp+var_40] test rcx, rcx jz short loc_CA2B2 mov [rcx], r15 loc_CA2B2: test eax, eax mov eax, 54h ; 'T' mov ecx, 21h ; '!' cmovz ecx, eax mov rax, [rbp+var_50] mov [rax], ecx loc_CA2C7: xor eax, eax loc_CA2C9: add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_CA2D8: mov eax, 0FFFFFFFFh xor edx, edx div [rbp+var_34] mov ebx, edx mov [rbp+var_44], eax lea rsi, [rbp+var_30] mov rdi, r14 mov rdx, r15 mov rcx, r13 call r12 test eax, eax jle loc_CA39E mov ecx, ebx mov [rbp+var_60], rcx xor ecx, ecx mov rbx, r15 xor r8d, r8d loc_CA30D: mov rsi, rbx mov ebx, eax add rbx, rsi mov rsi, [rbp+var_30] lea rax, [rsi-30h] cmp rax, 9 ja short loc_CA329 mov [rbp+var_30], rax jmp short loc_CA34E loc_CA329: lea rax, [rsi-41h] cmp rax, 19h ja short loc_CA339 add rsi, 0FFFFFFFFFFFFFFC9h jmp short loc_CA347 loc_CA339: lea rax, [rsi-61h] cmp rax, 19h ja short loc_CA3AE add rsi, 0FFFFFFFFFFFFFFA9h loc_CA347: mov [rbp+var_30], rsi mov rax, rsi loc_CA34E: cmp eax, [rbp+var_34] jge short loc_CA3AE mov esi, 1 cmp ecx, [rbp+var_44] ja short loc_CA371 jnz short loc_CA368 mov edi, [rbp+var_44] cmp rax, [rbp+var_60] ja short loc_CA373 loc_CA368: imul ecx, [rbp+var_34] add ecx, eax mov esi, r8d loc_CA371: mov edi, ecx loc_CA373: mov [rbp+var_54], edi mov [rbp+var_58], esi mov rdi, r14 lea rsi, [rbp+var_30] mov rdx, rbx mov rcx, r13 call r12 mov edi, [rbp+var_54] mov esi, [rbp+var_58] mov ecx, edi mov r8d, esi test eax, eax jg loc_CA30D jmp short loc_CA3A5 loc_CA39E: xor edi, edi mov rbx, r15 xor esi, esi loc_CA3A5: test eax, eax jz short loc_CA40D mov r8d, esi mov ecx, edi loc_CA3AE: mov rax, [rbp+var_40] test rax, rax jz short loc_CA3BA mov [rax], rbx loc_CA3BA: cmp rbx, r15 jz short loc_CA3FE cmp ecx, 80000001h mov eax, 1 mov esi, r8d cmovnb esi, eax test ecx, ecx cmovs r8d, eax mov edi, [rbp+var_38] test edi, edi cmovnz r8d, esi test r8d, r8d jz short loc_CA428 test edi, edi mov rax, [rbp+var_50] mov dword ptr [rax], 22h ; '"' mov ecx, 7FFFFFFFh mov rax, 0FFFFFFFF80000000h jmp short loc_CA432 loc_CA3FE: mov rax, [rbp+var_50] mov dword ptr [rax], 21h ; '!' jmp loc_CA2C7 loc_CA40D: mov rax, [rbp+var_40] test rax, rax jz short loc_CA419 mov [rax], rbx loc_CA419: mov rax, [rbp+var_50] mov dword ptr [rax], 54h ; 'T' jmp loc_CA2C7 loc_CA428: mov ecx, ecx mov rax, rcx neg rax test edi, edi loc_CA432: cmovz rax, rcx jmp loc_CA2C9
long long my_strntol_mb2_or_mb4(long long a1, long long a2, long long a3, unsigned int a4, _QWORD *a5, int *a6) { long long v6; // r15 long long ( *v8)(long long, _QWORD *, long long, long long); // r12 long long v9; // r13 int v10; // eax int v11; // ecx long long result; // rax int v13; // eax long long v14; // rcx long long v15; // rbx long long v16; // r8 unsigned long long v17; // rax long long v18; // rsi unsigned int v19; // esi unsigned int v20; // edi int v21; // esi bool v22; // zf unsigned int v24; // [rsp+1Ch] [rbp-44h] BOOL v26; // [rsp+28h] [rbp-38h] _QWORD v28[6]; // [rsp+30h] [rbp-30h] BYREF v6 = a2; v8 = *(long long ( **)(long long, _QWORD *, long long, long long))(*(_QWORD *)(a1 + 184) + 40LL); v9 = a2 + a3; *a6 = 0; v10 = v8(a1, v28, a2, a2 + a3); if ( v10 <= 0 ) { LABEL_11: if ( a5 ) *a5 = v6; v11 = 33; if ( !v10 ) v11 = 84; *a6 = v11; return 0LL; } v26 = 0; while ( 1 ) { if ( v28[0] > 42LL ) { if ( v28[0] != 43LL ) { if ( v28[0] != 45LL ) break; v26 = !v26; } goto LABEL_10; } if ( v28[0] != 9LL && v28[0] != 32LL ) break; LABEL_10: v6 += (unsigned int)v10; v10 = v8(a1, v28, v6, v9); if ( v10 <= 0 ) goto LABEL_11; } v24 = 0xFFFFFFFF / a4; v13 = v8(a1, v28, v6, v9); if ( v13 > 0 ) { LODWORD(v14) = 0; v15 = v6; v16 = 0LL; while ( 1 ) { v15 += (unsigned int)v13; v17 = v28[0] - 48LL; if ( (unsigned long long)(v28[0] - 48LL) > 9 ) { if ( (unsigned long long)(v28[0] - 65LL) > 0x19 ) { if ( (unsigned long long)(v28[0] - 97LL) > 0x19 ) goto LABEL_37; v18 = v28[0] - 87LL; } else { v18 = v28[0] - 55LL; } v28[0] = v18; v17 = v18; } else { v28[0] -= 48LL; } if ( (int)v17 >= (int)a4 ) goto LABEL_37; v19 = 1; if ( (unsigned int)v14 <= v24 ) { if ( (_DWORD)v14 == v24 ) { v20 = 0xFFFFFFFF / a4; if ( v17 > 0xFFFFFFFF % a4 ) goto LABEL_32; } LODWORD(v14) = v17 + a4 * v14; v19 = v16; } v20 = v14; LABEL_32: v13 = ((long long ( *)(long long, _QWORD *, long long, long long, long long))v8)(a1, v28, v15, v9, v16); LODWORD(v14) = v20; v16 = v19; if ( v13 <= 0 ) goto LABEL_35; } } v20 = 0; v15 = v6; v19 = 0; LABEL_35: if ( !v13 ) { if ( a5 ) *a5 = v15; *a6 = 84; return 0LL; } LODWORD(v16) = v19; LODWORD(v14) = v20; LABEL_37: if ( a5 ) *a5 = v15; if ( v15 == v6 ) { *a6 = 33; return 0LL; } v21 = v16; if ( (unsigned int)v14 >= 0x80000001 ) v21 = 1; if ( (int)v14 < 0 ) LODWORD(v16) = 1; if ( v26 ) LODWORD(v16) = v21; if ( (_DWORD)v16 ) { v22 = !v26; *a6 = 34; v14 = 0x7FFFFFFFLL; result = 0xFFFFFFFF80000000LL; } else { v14 = (unsigned int)v14; result = -(long long)(unsigned int)v14; v22 = !v26; } if ( v22 ) return v14; return result; }
my_strntol_mb2_or_mb4: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 MOV qword ptr [RBP + -0x40],R8 MOV dword ptr [RBP + -0x34],ECX MOV R13,RDX MOV R15,RSI MOV R14,RDI MOV RAX,qword ptr [RDI + 0xb8] MOV R12,qword ptr [RAX + 0x28] ADD R13,RSI MOV qword ptr [RBP + -0x50],R9 MOV dword ptr [R9],0x0 LEA RSI,[RBP + -0x30] MOV RDX,R15 MOV RCX,R13 CALL R12 TEST EAX,EAX JLE 0x001ca2a6 MOV dword ptr [RBP + -0x38],0x0 LEA RBX,[RBP + -0x30] LAB_001ca25e: MOV RCX,qword ptr [RBP + -0x30] CMP RCX,0x2a JG 0x001ca276 CMP RCX,0x9 JZ 0x001ca28e CMP RCX,0x20 JZ 0x001ca28e JMP 0x001ca2d8 LAB_001ca276: CMP RCX,0x2b JZ 0x001ca28e CMP RCX,0x2d JNZ 0x001ca2d8 XOR ECX,ECX CMP dword ptr [RBP + -0x38],0x0 SETZ CL MOV dword ptr [RBP + -0x38],ECX LAB_001ca28e: MOV EAX,EAX ADD R15,RAX MOV RDI,R14 MOV RSI,RBX MOV RDX,R15 MOV RCX,R13 CALL R12 TEST EAX,EAX JG 0x001ca25e LAB_001ca2a6: MOV RCX,qword ptr [RBP + -0x40] TEST RCX,RCX JZ 0x001ca2b2 MOV qword ptr [RCX],R15 LAB_001ca2b2: TEST EAX,EAX MOV EAX,0x54 MOV ECX,0x21 CMOVZ ECX,EAX MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],ECX LAB_001ca2c7: XOR EAX,EAX LAB_001ca2c9: ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_001ca2d8: MOV EAX,0xffffffff XOR EDX,EDX DIV dword ptr [RBP + -0x34] MOV EBX,EDX MOV dword ptr [RBP + -0x44],EAX LEA RSI,[RBP + -0x30] MOV RDI,R14 MOV RDX,R15 MOV RCX,R13 CALL R12 TEST EAX,EAX JLE 0x001ca39e MOV ECX,EBX MOV qword ptr [RBP + -0x60],RCX XOR ECX,ECX MOV RBX,R15 XOR R8D,R8D LAB_001ca30d: MOV RSI,RBX MOV EBX,EAX ADD RBX,RSI MOV RSI,qword ptr [RBP + -0x30] LEA RAX,[RSI + -0x30] CMP RAX,0x9 JA 0x001ca329 MOV qword ptr [RBP + -0x30],RAX JMP 0x001ca34e LAB_001ca329: LEA RAX,[RSI + -0x41] CMP RAX,0x19 JA 0x001ca339 ADD RSI,-0x37 JMP 0x001ca347 LAB_001ca339: LEA RAX,[RSI + -0x61] CMP RAX,0x19 JA 0x001ca3ae ADD RSI,-0x57 LAB_001ca347: MOV qword ptr [RBP + -0x30],RSI MOV RAX,RSI LAB_001ca34e: CMP EAX,dword ptr [RBP + -0x34] JGE 0x001ca3ae MOV ESI,0x1 CMP ECX,dword ptr [RBP + -0x44] JA 0x001ca371 JNZ 0x001ca368 MOV EDI,dword ptr [RBP + -0x44] CMP RAX,qword ptr [RBP + -0x60] JA 0x001ca373 LAB_001ca368: IMUL ECX,dword ptr [RBP + -0x34] ADD ECX,EAX MOV ESI,R8D LAB_001ca371: MOV EDI,ECX LAB_001ca373: MOV dword ptr [RBP + -0x54],EDI MOV dword ptr [RBP + -0x58],ESI MOV RDI,R14 LEA RSI,[RBP + -0x30] MOV RDX,RBX MOV RCX,R13 CALL R12 MOV EDI,dword ptr [RBP + -0x54] MOV ESI,dword ptr [RBP + -0x58] MOV ECX,EDI MOV R8D,ESI TEST EAX,EAX JG 0x001ca30d JMP 0x001ca3a5 LAB_001ca39e: XOR EDI,EDI MOV RBX,R15 XOR ESI,ESI LAB_001ca3a5: TEST EAX,EAX JZ 0x001ca40d MOV R8D,ESI MOV ECX,EDI LAB_001ca3ae: MOV RAX,qword ptr [RBP + -0x40] TEST RAX,RAX JZ 0x001ca3ba MOV qword ptr [RAX],RBX LAB_001ca3ba: CMP RBX,R15 JZ 0x001ca3fe CMP ECX,0x80000001 MOV EAX,0x1 MOV ESI,R8D CMOVNC ESI,EAX TEST ECX,ECX CMOVS R8D,EAX MOV EDI,dword ptr [RBP + -0x38] TEST EDI,EDI CMOVNZ R8D,ESI TEST R8D,R8D JZ 0x001ca428 TEST EDI,EDI MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],0x22 MOV ECX,0x7fffffff MOV RAX,-0x80000000 JMP 0x001ca432 LAB_001ca3fe: MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],0x21 JMP 0x001ca2c7 LAB_001ca40d: MOV RAX,qword ptr [RBP + -0x40] TEST RAX,RAX JZ 0x001ca419 MOV qword ptr [RAX],RBX LAB_001ca419: MOV RAX,qword ptr [RBP + -0x50] MOV dword ptr [RAX],0x54 JMP 0x001ca2c7 LAB_001ca428: MOV ECX,ECX MOV RAX,RCX NEG RAX TEST EDI,EDI LAB_001ca432: CMOVZ RAX,RCX JMP 0x001ca2c9
ulong my_strntol_mb2_or_mb4 (long param_1,long param_2,long param_3,uint param_4,long *param_5, int4 *param_6) { code *pcVar1; bool bVar2; bool bVar3; bool bVar4; uint uVar5; uint uVar6; ulong uVar7; int4 uVar8; uint uVar9; ulong uVar10; long lVar11; ulong local_38; pcVar1 = *(code **)(*(long *)(param_1 + 0xb8) + 0x28); param_3 = param_3 + param_2; *param_6 = 0; uVar5 = (*pcVar1)(param_1,&local_38,param_2,param_3); if (0 < (int)uVar5) { bVar2 = false; do { if ((long)local_38 < 0x2b) { if ((local_38 != 9) && (local_38 != 0x20)) { LAB_001ca2d8: uVar5 = (uint)(0xffffffff / (ulong)param_4); uVar6 = (*pcVar1)(param_1,&local_38,param_2,param_3); lVar11 = param_2; if ((int)uVar6 < 1) { uVar9 = 0; bVar3 = false; goto LAB_001ca3a5; } uVar9 = 0; bVar3 = false; goto LAB_001ca30d; } } else if (local_38 != 0x2b) { if (local_38 != 0x2d) goto LAB_001ca2d8; bVar2 = !bVar2; } param_2 = param_2 + (ulong)uVar5; uVar5 = (*pcVar1)(param_1,&local_38,param_2,param_3); } while (0 < (int)uVar5); } if (param_5 != (long *)0x0) { *param_5 = param_2; } uVar8 = 0x21; if (uVar5 == 0) { uVar8 = 0x54; } *param_6 = uVar8; return 0; while( true ) { if ((int)param_4 <= (int)uVar7) goto LAB_001ca3ae; uVar6 = uVar9; bVar4 = true; if ((uVar9 <= uVar5) && ((uVar9 != uVar5 || (uVar6 = uVar5, bVar4 = true, uVar7 <= 0xffffffffU % (ulong)param_4)))) { uVar6 = uVar9 * param_4 + (int)uVar7; bVar4 = bVar3; } bVar3 = bVar4; uVar9 = uVar6; local_38 = uVar7; uVar6 = (*pcVar1)(param_1,&local_38,lVar11,param_3); if ((int)uVar6 < 1) break; LAB_001ca30d: lVar11 = (ulong)uVar6 + lVar11; uVar7 = local_38 - 0x30; if (9 < uVar7) { if (local_38 - 0x41 < 0x1a) { uVar7 = local_38 - 0x37; } else { if (0x19 < local_38 - 0x61) goto LAB_001ca3ae; uVar7 = local_38 - 0x57; } } } LAB_001ca3a5: if (uVar6 == 0) { if (param_5 != (long *)0x0) { *param_5 = lVar11; } *param_6 = 0x54; } else { LAB_001ca3ae: if (param_5 != (long *)0x0) { *param_5 = lVar11; } if (lVar11 != param_2) { bVar4 = bVar3; if (0x80000000 < uVar9) { bVar4 = true; } if ((int)uVar9 < 0) { bVar3 = true; } if (bVar2) { bVar3 = bVar4; } if (bVar3) { *param_6 = 0x22; uVar10 = 0x7fffffff; uVar7 = 0xffffffff80000000; } else { uVar10 = (ulong)uVar9; uVar7 = -uVar10; } if (!bVar2) { return uVar10; } return uVar7; } *param_6 = 0x21; } return 0; }
31,096
my_casedn_str_utf8mb4
eloqsql/strings/ctype-utf8.c
static size_t my_casedn_str_utf8mb4(CHARSET_INFO *cs, char *src) { my_wc_t wc; int srcres, dstres; char *dst= src, *dst0= src; MY_UNICASE_INFO *uni_plane= cs->caseinfo; DBUG_ASSERT(cs->casedn_multiply == 1); while (*src && (srcres= my_mb_wc_utf8mb4_no_range(cs, &wc, (uchar *) src)) > 0) { my_tolower_utf8mb4(uni_plane, &wc); if ((dstres= my_wc_mb_utf8mb4_no_range(cs, wc, (uchar*) dst)) <= 0) break; src+= srcres; dst+= dstres; } /* In rare cases lower string can be shorter than the original string, for example: "U+0130 LATIN CAPITAL LETTER I WITH DOT ABOVE" (which is 0xC4B0 in utf8mb3, i.e. two bytes) is converted into "U+0069 LATIN SMALL LETTER I" (which is 0x69 in utf8mb3, i.e. one byte) So, we need to put '\0' terminator after converting. */ *dst= '\0'; return (size_t) (dst - dst0); }
O3
c
my_casedn_str_utf8mb4: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %rbx cmpb $0x0, (%rsi) movq %rsi, %r14 je 0x6ef06 movq 0x78(%rdi), %r15 movq %rbx, %r12 movq %rbx, %r14 leaq -0x30(%rbp), %rdi movq %r12, %rsi callq 0x721af testl %eax, %eax je 0x6ef06 movl %eax, %r13d movq -0x30(%rbp), %rdi cmpq (%r15), %rdi ja 0x6eee7 movq 0x8(%r15), %rax movq %rdi, %rcx shrq $0x8, %rcx movq (%rax,%rcx,8), %rax testq %rax, %rax je 0x6eee7 movzbl %dil, %ecx leaq (%rcx,%rcx,2), %rcx movl 0x4(%rax,%rcx,4), %edi movq %rdi, -0x30(%rbp) movq %r14, %rsi callq 0x722cb testl %eax, %eax je 0x6ef06 movl %r13d, %ecx movl %eax, %eax addq %rax, %r14 cmpb $0x0, (%r12,%rcx) leaq (%r12,%rcx), %r12 jne 0x6eea7 movb $0x0, (%r14) subq %rbx, %r14 movq %r14, %rax addq $0x8, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
my_casedn_str_utf8mb4: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx push rax mov rbx, rsi cmp byte ptr [rsi], 0 mov r14, rsi jz short loc_6EF06 mov r15, [rdi+78h] mov r12, rbx mov r14, rbx loc_6EEA7: lea rdi, [rbp+var_30] mov rsi, r12 call my_mb_wc_utf8mb4_no_range test eax, eax jz short loc_6EF06 mov r13d, eax mov rdi, [rbp+var_30] cmp rdi, [r15] ja short loc_6EEE7 mov rax, [r15+8] mov rcx, rdi shr rcx, 8 mov rax, [rax+rcx*8] test rax, rax jz short loc_6EEE7 movzx ecx, dil lea rcx, [rcx+rcx*2] mov edi, [rax+rcx*4+4] mov [rbp+var_30], rdi loc_6EEE7: mov rsi, r14 call my_wc_mb_utf8mb4_no_range test eax, eax jz short loc_6EF06 mov ecx, r13d mov eax, eax add r14, rax cmp byte ptr [r12+rcx], 0 lea r12, [r12+rcx] jnz short loc_6EEA7 loc_6EF06: mov byte ptr [r14], 0 sub r14, rbx mov rax, r14 add rsp, 8 pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long my_casedn_str_utf8mb4(long long a1, _BYTE *a2) { long long v2; // rax _BYTE *v3; // r14 _QWORD *v4; // r15 _BYTE *v5; // r12 unsigned int v6; // eax unsigned int v7; // r13d long long v8; // rdi long long v9; // rax unsigned int v10; // eax bool v11; // zf _QWORD v13[6]; // [rsp+0h] [rbp-30h] BYREF v13[0] = v2; v3 = a2; if ( *a2 ) { v4 = *(_QWORD **)(a1 + 120); v5 = a2; v3 = a2; do { v6 = my_mb_wc_utf8mb4_no_range(v13, v5); if ( !v6 ) break; v7 = v6; v8 = v13[0]; if ( v13[0] <= *v4 ) { v9 = *(_QWORD *)(v4[1] + 8LL * (v13[0] >> 8)); if ( v9 ) { v8 = *(unsigned int *)(v9 + 12LL * LOBYTE(v13[0]) + 4); v13[0] = v8; } } v10 = my_wc_mb_utf8mb4_no_range(v8, v3); if ( !v10 ) break; v3 += v10; v11 = v5[v7] == 0; v5 += v7; } while ( !v11 ); } *v3 = 0; return v3 - a2; }
my_casedn_str_utf8mb4: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX PUSH RAX MOV RBX,RSI CMP byte ptr [RSI],0x0 MOV R14,RSI JZ 0x0016ef06 MOV R15,qword ptr [RDI + 0x78] MOV R12,RBX MOV R14,RBX LAB_0016eea7: LEA RDI,[RBP + -0x30] MOV RSI,R12 CALL 0x001721af TEST EAX,EAX JZ 0x0016ef06 MOV R13D,EAX MOV RDI,qword ptr [RBP + -0x30] CMP RDI,qword ptr [R15] JA 0x0016eee7 MOV RAX,qword ptr [R15 + 0x8] MOV RCX,RDI SHR RCX,0x8 MOV RAX,qword ptr [RAX + RCX*0x8] TEST RAX,RAX JZ 0x0016eee7 MOVZX ECX,DIL LEA RCX,[RCX + RCX*0x2] MOV EDI,dword ptr [RAX + RCX*0x4 + 0x4] MOV qword ptr [RBP + -0x30],RDI LAB_0016eee7: MOV RSI,R14 CALL 0x001722cb TEST EAX,EAX JZ 0x0016ef06 MOV ECX,R13D MOV EAX,EAX ADD R14,RAX CMP byte ptr [R12 + RCX*0x1],0x0 LEA R12,[R12 + RCX*0x1] JNZ 0x0016eea7 LAB_0016ef06: MOV byte ptr [R14],0x0 SUB R14,RBX MOV RAX,R14 ADD RSP,0x8 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
long my_casedn_str_utf8mb4(long param_1,char *param_2) { char *pcVar1; ulong *puVar2; long lVar3; uint uVar4; uint uVar5; ulong in_RAX; char *pcVar6; char *pcVar7; ulong local_38; pcVar7 = param_2; if (*param_2 != '\0') { puVar2 = *(ulong **)(param_1 + 0x78); pcVar6 = param_2; local_38 = in_RAX; do { uVar4 = my_mb_wc_utf8mb4_no_range(&local_38,pcVar6); if (uVar4 == 0) break; if ((local_38 <= *puVar2) && (lVar3 = *(long *)(puVar2[1] + (local_38 >> 8) * 8), lVar3 != 0)) { local_38 = (ulong)*(uint *)(lVar3 + 4 + (local_38 & 0xff) * 0xc); } uVar5 = my_wc_mb_utf8mb4_no_range(local_38,pcVar7); if (uVar5 == 0) break; pcVar7 = pcVar7 + uVar5; pcVar1 = pcVar6 + uVar4; pcVar6 = pcVar6 + uVar4; } while (*pcVar1 != '\0'); } *pcVar7 = '\0'; return (long)pcVar7 - (long)param_2; }
31,097
js_regexp_escape
bluesky950520[P]quickjs/quickjs.c
static JSValue js_regexp_escape(JSContext *ctx, JSValue this_val, int argc, JSValue *argv) { StringBuffer b_s, *b = &b_s; JSString *p; uint32_t c, i; char s[16]; if (!JS_IsString(argv[0])) return JS_ThrowTypeError(ctx, "not a string"); p = JS_VALUE_GET_STRING(argv[0]); string_buffer_init2(ctx, b, 0, p->is_wide_char); for (i = 0; i < p->len; i++) { c = p->is_wide_char ? (uint32_t)p->u.str16[i] : (uint32_t)p->u.str8[i]; if (c < 33) { if (c >= 9 && c <= 13) { string_buffer_putc8(b, '\\'); string_buffer_putc8(b, "tnvfr"[c - 9]); } else { goto hex2; } } else if (c < 128) { if ((c >= '0' && c <= '9') || (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z')) { if (i == 0) goto hex2; } else if (strchr(",-=<>#&!%:;@~'`\"", c)) { goto hex2; } else if (c != '_') { string_buffer_putc8(b, '\\'); } string_buffer_putc8(b, c); } else if (c < 256) { hex2: snprintf(s, sizeof(s), "\\x%02x", c); string_buffer_puts8(b, s); } else if (is_surrogate(c) || lre_is_white_space(c) || c == 0xFEFF) { snprintf(s, sizeof(s), "\\u%04x", c); string_buffer_puts8(b, s); } else { string_buffer_putc16(b, c); } } return string_buffer_end(b); }
O2
c
js_regexp_escape: pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x38, %rsp cmpl $-0x7, 0x8(%r8) jne 0x45822 movq (%r8), %rbp movl 0x4(%rbp), %ecx shrl $0x1f, %ecx leaq 0x18(%rsp), %rbx movq %rbx, %rsi xorl %edx, %edx callq 0x305f7 movq %rsp, %r15 xorl %r14d, %r14d movq 0x4(%rbp), %rax movl %eax, %ecx andl $0x7fffffff, %ecx # imm = 0x7FFFFFFF cmpq %rcx, %r14 jae 0x45813 testl %eax, %eax js 0x456f9 movzbl 0x18(%rbp,%r14), %r13d jmp 0x456ff movzwl 0x18(%rbp,%r14,2), %r13d cmpl $0x20, %r13d ja 0x45734 leal -0x9(%r13), %r12d cmpl $0x4, %r12d ja 0x457a9 movq %rbx, %rdi pushq $0x5c popq %rsi callq 0x44fd5 movl %r12d, %eax leaq 0x446a0(%rip), %rcx # 0x89dc8 movzbl (%rax,%rcx), %esi movq %rbx, %rdi jmp 0x45806 cmpl $0x7f, %r13d ja 0x4576b leal -0x30(%r13), %eax cmpl $0xa, %eax setb %al leal -0x41(%r13), %ecx cmpl $0x1a, %ecx setb %cl orb %al, %cl leal -0x61(%r13), %eax cmpl $0x1a, %eax setb %al orb %cl, %al cmpb $0x1, %al jne 0x45792 testq %r14, %r14 jne 0x45800 jmp 0x457a9 cmpl $0xff, %r13d jbe 0x457a9 movl %r13d, %eax andl $0xf800, %eax # imm = 0xF800 cmpl $0xd800, %eax # imm = 0xD800 jne 0x457cd movq %r15, %rdi pushq $0x10 popq %rsi leaq 0x44656(%rip), %rdx # 0x89de6 jmp 0x457b6 leaq 0x44635(%rip), %rdi # 0x89dce movl %r13d, %esi pushq $0x11 popq %rdx callq 0xe4a0 testq %rax, %rax je 0x457ef movq %r15, %rdi pushq $0x10 popq %rsi leaq 0x44629(%rip), %rdx # 0x89ddf movl %r13d, %ecx xorl %eax, %eax callq 0xe310 movq %rbx, %rdi movq %r15, %rsi callq 0x45852 jmp 0x4580b movl %r13d, %edi callq 0x832e1 cmpl $0xfeff, %r13d # imm = 0xFEFF je 0x45783 testl %eax, %eax jne 0x45783 movq %rbx, %rdi movl %r13d, %esi callq 0x418a6 jmp 0x4580b cmpl $0x5f, %r13d je 0x45800 movq %rbx, %rdi pushq $0x5c popq %rsi callq 0x44fd5 movq %rbx, %rdi movl %r13d, %esi callq 0x44fd5 incq %r14 jmp 0x456d8 leaq 0x18(%rsp), %rdi callq 0x30684 movq %rax, %rbx jmp 0x45835 leaq 0x44581(%rip), %rsi # 0x89daa xorl %ebx, %ebx xorl %eax, %eax callq 0x201fd pushq $0x6 popq %rdx movq %rbx, %rax addq $0x38, %rsp popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq
js_regexp_escape: push rbp push r15 push r14 push r13 push r12 push rbx sub rsp, 38h cmp dword ptr [r8+8], 0FFFFFFF9h jnz loc_45822 mov rbp, [r8] mov ecx, [rbp+4] shr ecx, 1Fh lea rbx, [rsp+68h+var_50] mov rsi, rbx xor edx, edx call string_buffer_init2 mov r15, rsp xor r14d, r14d loc_456D8: mov rax, [rbp+4] mov ecx, eax and ecx, 7FFFFFFFh cmp r14, rcx jnb loc_45813 test eax, eax js short loc_456F9 movzx r13d, byte ptr [rbp+r14+18h] jmp short loc_456FF loc_456F9: movzx r13d, word ptr [rbp+r14*2+18h] loc_456FF: cmp r13d, 20h ; ' ' ja short loc_45734 lea r12d, [r13-9] cmp r12d, 4 ja loc_457A9 mov rdi, rbx push 5Ch ; '\' pop rsi call string_buffer_putc8 mov eax, r12d lea rcx, aTnvfr; "tnvfr" movzx esi, byte ptr [rax+rcx] mov rdi, rbx jmp loc_45806 loc_45734: cmp r13d, 7Fh ja short loc_4576B lea eax, [r13-30h] cmp eax, 0Ah setb al lea ecx, [r13-41h] cmp ecx, 1Ah setb cl or cl, al lea eax, [r13-61h] cmp eax, 1Ah setb al or al, cl cmp al, 1 jnz short loc_45792 test r14, r14 jnz loc_45800 jmp short loc_457A9 loc_4576B: cmp r13d, 0FFh jbe short loc_457A9 mov eax, r13d and eax, 0F800h cmp eax, 0D800h jnz short loc_457CD loc_45783: mov rdi, r15 push 10h pop rsi lea rdx, aU04x; "\\u%04x" jmp short loc_457B6 loc_45792: lea rdi, asc_89DCE; ",-=<>#&!%:;@~'`\"" mov esi, r13d push 11h pop rdx call _memchr test rax, rax jz short loc_457EF loc_457A9: mov rdi, r15 push 10h pop rsi lea rdx, aX02x; "\\x%02x" loc_457B6: mov ecx, r13d xor eax, eax call _snprintf mov rdi, rbx mov rsi, r15 call string_buffer_puts8 jmp short loc_4580B loc_457CD: mov edi, r13d call lre_is_white_space cmp r13d, 0FEFFh jz short loc_45783 test eax, eax jnz short loc_45783 mov rdi, rbx mov esi, r13d call string_buffer_putc16 jmp short loc_4580B loc_457EF: cmp r13d, 5Fh ; '_' jz short loc_45800 mov rdi, rbx push 5Ch ; '\' pop rsi call string_buffer_putc8 loc_45800: mov rdi, rbx mov esi, r13d loc_45806: call string_buffer_putc8 loc_4580B: inc r14 jmp loc_456D8 loc_45813: lea rdi, [rsp+68h+var_50] call string_buffer_end mov rbx, rax jmp short loc_45835 loc_45822: lea rsi, aNotAString; "not a string" xor ebx, ebx xor eax, eax call JS_ThrowTypeError push 6 pop rdx loc_45835: mov rax, rbx add rsp, 38h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn
long long js_regexp_escape( 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, _DWORD *a13, long long a14) { long long v14; // rbp long long v15; // rdx long long v16; // r8 long long v17; // r9 __m128 v18; // xmm4 __m128 v19; // xmm5 unsigned long long i; // r14 long long v21; // rax unsigned int v22; // r13d long long v23; // rcx unsigned int v24; // esi int is_white_space; // eax long long v26; // rbx char v28[24]; // [rsp+0h] [rbp-68h] BYREF long long v29[10]; // [rsp+18h] [rbp-50h] BYREF if ( a13[2] != -7 ) { v26 = 0LL; JS_ThrowTypeError(a1, (long long)"not a string", a11, a12, (long long)a13, a14, a2, a3, a4, a5, a6, a7, a8, a9, v28[0]); return v26; } v14 = *(_QWORD *)a13; string_buffer_init2(a1, (long long)v29, 0, *(_DWORD *)(*(_QWORD *)a13 + 4LL) >> 31); for ( i = 0LL; ; ++i ) { v21 = *(_QWORD *)(v14 + 4); if ( i >= ((unsigned int)v21 & 0x7FFFFFFF) ) break; if ( (int)v21 < 0 ) v22 = *(unsigned __int16 *)(v14 + 2 * i + 24); else v22 = *(unsigned __int8 *)(v14 + i + 24); if ( v22 <= 0x20 ) { if ( v22 - 9 > 4 ) goto LABEL_18; string_buffer_putc8((long long)v29, 0x5Cu, a2, a3, a4, a5, v18, v19, a8, a9, v15, v21 & 0x7FFFFFFF, v16, v17); v23 = (long long)"tnvfr"; v24 = (unsigned __int8)aTnvfr[v22 - 9]; LABEL_26: string_buffer_putc8((long long)v29, v24, a2, a3, a4, a5, v18, v19, a8, a9, v15, v23, v16, v17); continue; } if ( v22 <= 0x7F ) { v23 = v22 - 65; LOBYTE(v23) = v22 - 48 < 0xA || (unsigned int)v23 < 0x1A; if ( ((unsigned __int8)v23 | (v22 - 97 < 0x1A)) == 1 ) { if ( !i ) goto LABEL_18; } else { if ( memchr(",-=<>#&!%:;@~'`\"", v22, 17LL) ) { LABEL_18: snprintf(v28, 16LL, "\\x%02x", v22); goto LABEL_19; } if ( v22 != 95 ) string_buffer_putc8((long long)v29, 0x5Cu, a2, a3, a4, a5, v18, v19, a8, a9, v15, v23, v16, v17); } v24 = v22; goto LABEL_26; } if ( v22 <= 0xFF ) goto LABEL_18; if ( (v22 & 0xF800) == 0xD800 || (is_white_space = lre_is_white_space(v22), v22 == 65279) || is_white_space ) { snprintf(v28, 16LL, "\\u%04x", v22); LABEL_19: string_buffer_puts8(v29, v28); continue; } string_buffer_putc16((long long)v29, v22); } return string_buffer_end(v29); }
js_regexp_escape: PUSH RBP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x38 CMP dword ptr [R8 + 0x8],-0x7 JNZ 0x00145822 MOV RBP,qword ptr [R8] MOV ECX,dword ptr [RBP + 0x4] SHR ECX,0x1f LEA RBX,[RSP + 0x18] MOV RSI,RBX XOR EDX,EDX CALL 0x001305f7 MOV R15,RSP XOR R14D,R14D LAB_001456d8: MOV RAX,qword ptr [RBP + 0x4] MOV ECX,EAX AND ECX,0x7fffffff CMP R14,RCX JNC 0x00145813 TEST EAX,EAX JS 0x001456f9 MOVZX R13D,byte ptr [RBP + R14*0x1 + 0x18] JMP 0x001456ff LAB_001456f9: MOVZX R13D,word ptr [RBP + R14*0x2 + 0x18] LAB_001456ff: CMP R13D,0x20 JA 0x00145734 LEA R12D,[R13 + -0x9] CMP R12D,0x4 JA 0x001457a9 MOV RDI,RBX PUSH 0x5c POP RSI CALL 0x00144fd5 MOV EAX,R12D LEA RCX,[0x189dc8] MOVZX ESI,byte ptr [RAX + RCX*0x1] MOV RDI,RBX JMP 0x00145806 LAB_00145734: CMP R13D,0x7f JA 0x0014576b LEA EAX,[R13 + -0x30] CMP EAX,0xa SETC AL LEA ECX,[R13 + -0x41] CMP ECX,0x1a SETC CL OR CL,AL LEA EAX,[R13 + -0x61] CMP EAX,0x1a SETC AL OR AL,CL CMP AL,0x1 JNZ 0x00145792 TEST R14,R14 JNZ 0x00145800 JMP 0x001457a9 LAB_0014576b: CMP R13D,0xff JBE 0x001457a9 MOV EAX,R13D AND EAX,0xf800 CMP EAX,0xd800 JNZ 0x001457cd LAB_00145783: MOV RDI,R15 PUSH 0x10 POP RSI LEA RDX,[0x189de6] JMP 0x001457b6 LAB_00145792: LEA RDI,[0x189dce] MOV ESI,R13D PUSH 0x11 POP RDX CALL 0x0010e4a0 TEST RAX,RAX JZ 0x001457ef LAB_001457a9: MOV RDI,R15 PUSH 0x10 POP RSI LEA RDX,[0x189ddf] LAB_001457b6: MOV ECX,R13D XOR EAX,EAX CALL 0x0010e310 MOV RDI,RBX MOV RSI,R15 CALL 0x00145852 JMP 0x0014580b LAB_001457cd: MOV EDI,R13D CALL 0x001832e1 CMP R13D,0xfeff JZ 0x00145783 TEST EAX,EAX JNZ 0x00145783 MOV RDI,RBX MOV ESI,R13D CALL 0x001418a6 JMP 0x0014580b LAB_001457ef: CMP R13D,0x5f JZ 0x00145800 MOV RDI,RBX PUSH 0x5c POP RSI CALL 0x00144fd5 LAB_00145800: MOV RDI,RBX MOV ESI,R13D LAB_00145806: CALL 0x00144fd5 LAB_0014580b: INC R14 JMP 0x001456d8 LAB_00145813: LEA RDI,[RSP + 0x18] CALL 0x00130684 MOV RBX,RAX JMP 0x00145835 LAB_00145822: LEA RSI,[0x189daa] XOR EBX,EBX XOR EAX,EAX CALL 0x001201fd PUSH 0x6 POP RDX LAB_00145835: MOV RAX,RBX ADD RSP,0x38 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET
int8 js_regexp_escape(int8 param_1) { long lVar1; uint uVar2; int iVar3; void *pvVar4; int8 uVar5; char *__format; long *in_R8; ulong uVar6; char acStack_68 [24]; int1 local_50 [32]; if ((int)in_R8[1] == -7) { lVar1 = *in_R8; string_buffer_init2(param_1,local_50,0,*(uint *)(lVar1 + 4) >> 0x1f); for (uVar6 = 0; uVar2 = (uint)*(int8 *)(lVar1 + 4), uVar6 < (uVar2 & 0x7fffffff); uVar6 = uVar6 + 1) { if ((int)uVar2 < 0) { uVar2 = (uint)*(ushort *)(lVar1 + 0x18 + uVar6 * 2); } else { uVar2 = (uint)*(byte *)(lVar1 + 0x18 + uVar6); } if (uVar2 < 0x21) { if (uVar2 - 9 < 5) { string_buffer_putc8(local_50,0x5c); uVar2 = (uint)(byte)"tnvfr"[uVar2 - 9]; goto LAB_00145806; } LAB_001457a9: __format = "\\x%02x"; LAB_001457b6: snprintf(acStack_68,0x10,__format,(ulong)uVar2); string_buffer_puts8(local_50,acStack_68); } else { if (0x7f < uVar2) { if (uVar2 < 0x100) goto LAB_001457a9; if ((((uVar2 & 0xf800) != 0xd800) && (iVar3 = lre_is_white_space(uVar2), uVar2 != 0xfeff)) && (iVar3 == 0)) { string_buffer_putc16(local_50,uVar2); goto LAB_0014580b; } __format = "\\u%04x"; goto LAB_001457b6; } if (uVar2 - 0x61 < 0x1a || (uVar2 - 0x41 < 0x1a || uVar2 - 0x30 < 10)) { if (uVar6 == 0) goto LAB_001457a9; } else { pvVar4 = memchr(",-=<>#&!%:;@~\'`\"",uVar2,0x11); if (pvVar4 != (void *)0x0) goto LAB_001457a9; if (uVar2 != 0x5f) { string_buffer_putc8(local_50,0x5c); } } LAB_00145806: string_buffer_putc8(local_50,uVar2); } LAB_0014580b: } uVar5 = string_buffer_end(local_50); } else { uVar5 = 0; JS_ThrowTypeError(param_1,"not a string"); } return uVar5; }
31,098
ma_get_status
eloqsql/storage/maria/ma_state.c
my_bool _ma_get_status(void* param, my_bool concurrent_insert) { MARIA_HA *info=(MARIA_HA*) param; DBUG_ENTER("_ma_get_status"); DBUG_PRINT("info",("key_file: %ld data_file: %ld concurrent_insert: %d", (long) info->s->state.state.key_file_length, (long) info->s->state.state.data_file_length, concurrent_insert)); #ifndef DBUG_OFF if (info->state->key_file_length > info->s->state.state.key_file_length || info->state->data_file_length > info->s->state.state.data_file_length) DBUG_PRINT("warning",("old info: key_file: %ld data_file: %ld", (long) info->state->key_file_length, (long) info->state->data_file_length)); #endif info->state_save= info->s->state.state; info->state= &info->state_save; info->state->changed= 0; info->append_insert_at_end= concurrent_insert; DBUG_RETURN(0); }
O0
c
ma_get_status: pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movb %sil, %al movq %rdi, -0x8(%rbp) movb %al, -0x9(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) jmp 0x4633c movq -0x18(%rbp), %rdi addq $0x28, %rdi movq -0x18(%rbp), %rax movq (%rax), %rsi addq $0x18, %rsi movl $0x38, %edx callq 0x2a0b0 movq -0x18(%rbp), %rcx addq $0x28, %rcx movq -0x18(%rbp), %rax movq %rcx, 0x20(%rax) movq -0x18(%rbp), %rax movq 0x20(%rax), %rax movb 0x34(%rax), %cl andb $-0x2, %cl orb $0x0, %cl movb %cl, 0x34(%rax) movb -0x9(%rbp), %cl movq -0x18(%rbp), %rax movb %cl, 0x681(%rax) jmp 0x4638c xorl %eax, %eax addq $0x20, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
_ma_get_status: push rbp mov rbp, rsp sub rsp, 20h mov al, sil mov [rbp+var_8], rdi mov [rbp+var_9], al mov rax, [rbp+var_8] mov [rbp+var_18], rax jmp short $+2 loc_4633C: mov rdi, [rbp+var_18] add rdi, 28h ; '(' mov rax, [rbp+var_18] mov rsi, [rax] add rsi, 18h mov edx, 38h ; '8' call _memcpy mov rcx, [rbp+var_18] add rcx, 28h ; '(' mov rax, [rbp+var_18] mov [rax+20h], rcx mov rax, [rbp+var_18] mov rax, [rax+20h] mov cl, [rax+34h] and cl, 0FEh or cl, 0 mov [rax+34h], cl mov cl, [rbp+var_9] mov rax, [rbp+var_18] mov [rax+681h], cl jmp short $+2 loc_4638C: xor eax, eax add rsp, 20h pop rbp retn
long long ma_get_status(long long a1, char a2) { memcpy(a1 + 40, *(_QWORD *)a1 + 24LL, 56LL); *(_QWORD *)(a1 + 32) = a1 + 40; *(_BYTE *)(*(_QWORD *)(a1 + 32) + 52LL) &= ~1u; *(_BYTE *)(a1 + 1665) = a2; return 0LL; }
_ma_get_status: PUSH RBP MOV RBP,RSP SUB RSP,0x20 MOV AL,SIL MOV qword ptr [RBP + -0x8],RDI MOV byte ptr [RBP + -0x9],AL MOV RAX,qword ptr [RBP + -0x8] MOV qword ptr [RBP + -0x18],RAX JMP 0x0014633c LAB_0014633c: MOV RDI,qword ptr [RBP + -0x18] ADD RDI,0x28 MOV RAX,qword ptr [RBP + -0x18] MOV RSI,qword ptr [RAX] ADD RSI,0x18 MOV EDX,0x38 CALL 0x0012a0b0 MOV RCX,qword ptr [RBP + -0x18] ADD RCX,0x28 MOV RAX,qword ptr [RBP + -0x18] MOV qword ptr [RAX + 0x20],RCX MOV RAX,qword ptr [RBP + -0x18] MOV RAX,qword ptr [RAX + 0x20] MOV CL,byte ptr [RAX + 0x34] AND CL,0xfe OR CL,0x0 MOV byte ptr [RAX + 0x34],CL MOV CL,byte ptr [RBP + -0x9] MOV RAX,qword ptr [RBP + -0x18] MOV byte ptr [RAX + 0x681],CL JMP 0x0014638c LAB_0014638c: XOR EAX,EAX ADD RSP,0x20 POP RBP RET
int8 _ma_get_status(long *param_1,int1 param_2) { memcpy(param_1 + 5,(void *)(*param_1 + 0x18),0x38); param_1[4] = (long)(param_1 + 5); *(byte *)(param_1[4] + 0x34) = *(byte *)(param_1[4] + 0x34) & 0xfe; *(int1 *)((long)param_1 + 0x681) = param_2; return 0; }
31,099
mi_seq_search
eloqsql/storage/myisam/mi_search.c
int _mi_seq_search(MI_INFO *info, register MI_KEYDEF *keyinfo, uchar *page, uchar *key, uint key_len, uint comp_flag, uchar **ret_pos, uchar *buff, my_bool *last_key) { int UNINIT_VAR(flag); uint nod_flag,UNINIT_VAR(length),not_used[2]; uchar t_buff[HA_MAX_KEY_BUFF],*end; DBUG_ENTER("_mi_seq_search"); end= page+mi_getint(page); nod_flag=mi_test_if_nod(page); page+=2+nod_flag; *ret_pos=page; t_buff[0]=0; /* Avoid bugs */ while (page < end) { length=(*keyinfo->get_key)(keyinfo,nod_flag,&page,t_buff); if (length == 0 || page > end) { mi_print_error(info->s, HA_ERR_CRASHED); my_errno=HA_ERR_CRASHED; DBUG_PRINT("error", ("Found wrong key: length: %u page: %p end: %p", length, page, end)); DBUG_RETURN(MI_FOUND_WRONG_KEY); } if ((flag=ha_key_cmp(keyinfo->seg,t_buff,key,key_len,comp_flag, not_used)) >= 0) break; #ifdef EXTRA_DEBUG DBUG_PRINT("loop",("page: 0x%lx key: '%s' flag: %d", (long) page, t_buff, flag)); #endif memcpy(buff,t_buff,length); *ret_pos=page; } if (flag == 0) memcpy(buff,t_buff,length); /* Result is first key */ *last_key= page == end; DBUG_PRINT("exit",("flag: %d ret_pos: %p", flag, *ret_pos)); DBUG_RETURN(flag); }
O3
c
mi_seq_search: pushq %rbp movq %rsp, %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x508, %rsp # imm = 0x508 movl %r9d, -0x508(%rbp) movl %r8d, -0x504(%rbp) movq %rcx, -0x520(%rbp) movq %rsi, -0x510(%rbp) movq 0x10(%rbp), %rbx movq %fs:0x28, %rax movq %rax, -0x30(%rbp) movzbl 0x1(%rdx), %ecx movzbl (%rdx), %r9d movl %r9d, %eax andl $0x7f, %eax shll $0x8, %eax orq %rcx, %rax xorl %esi, %esi testb %r9b, %r9b jns 0x84980 movq (%rdi), %rcx movl 0x17c(%rcx), %esi movq %rdi, -0x518(%rbp) leaq (%rdx,%rax), %rcx movq %rcx, -0x500(%rbp) leal 0x2(%rsi), %ecx addq %rcx, %rdx movq %rdx, -0x4f8(%rbp) movq %rdx, (%rbx) movb $0x0, -0x4f0(%rbp) cmpl %ecx, %eax jbe 0x84a8f leaq -0x4f0(%rbp), %rcx movq -0x510(%rbp), %rdi movq %rsi, %r12 leaq -0x4f8(%rbp), %rdx movq %rcx, %r13 callq *0x48(%rdi) testl %eax, %eax je 0x84a49 movl %eax, %r15d movq -0x500(%rbp), %rax cmpq %rax, -0x4f8(%rbp) ja 0x84a49 movq -0x510(%rbp), %rax movq 0x28(%rax), %rdi movq %r13, %rsi movq -0x520(%rbp), %rdx movl -0x504(%rbp), %ecx movl -0x508(%rbp), %r8d leaq -0x528(%rbp), %r9 callq 0x9e822 movl %eax, %r14d testl %eax, %eax jns 0x84a77 movl %r15d, %edx movq 0x18(%rbp), %rdi movq %r13, %rsi callq 0x29080 movq -0x4f8(%rbp), %rax movq %rax, (%rbx) cmpq -0x500(%rbp), %rax movq %r12, %rsi movq %r13, %rcx jb 0x849b8 jmp 0x84a8f movq -0x518(%rbp), %rax movq (%rax), %rax movq 0x268(%rax), %rsi movl $0x7e, %edi callq 0x7af4e callq 0xa1b22 movl $0x7e, (%rax) movl $0x7fffffff, %r14d # imm = 0x7FFFFFFF jmp 0x84aa4 jne 0x84a8f movl %r15d, %edx leaq -0x4f0(%rbp), %rsi movq 0x18(%rbp), %rdi callq 0x29080 xorl %r14d, %r14d movq -0x500(%rbp), %rax cmpq %rax, -0x4f8(%rbp) movq 0x20(%rbp), %rax sete (%rax) movq %fs:0x28, %rax cmpq -0x30(%rbp), %rax jne 0x84ac8 movl %r14d, %eax addq $0x508, %rsp # imm = 0x508 popq %rbx popq %r12 popq %r13 popq %r14 popq %r15 popq %rbp retq callq 0x29270
_mi_seq_search: push rbp mov rbp, rsp push r15 push r14 push r13 push r12 push rbx sub rsp, 508h mov [rbp+var_508], r9d mov [rbp+var_504], r8d mov [rbp+var_520], rcx mov [rbp+var_510], rsi mov rbx, [rbp+arg_0] mov rax, fs:28h mov [rbp+var_30], rax movzx ecx, byte ptr [rdx+1] movzx r9d, byte ptr [rdx] mov eax, r9d and eax, 7Fh shl eax, 8 or rax, rcx xor esi, esi test r9b, r9b jns short loc_84980 mov rcx, [rdi] mov esi, [rcx+17Ch] loc_84980: mov [rbp+var_518], rdi lea rcx, [rdx+rax] mov [rbp+var_500], rcx lea ecx, [rsi+2] add rdx, rcx mov [rbp+var_4F8], rdx mov [rbx], rdx mov [rbp+var_4F0], 0 cmp eax, ecx jbe loc_84A8F lea rcx, [rbp+var_4F0] loc_849B8: mov rdi, [rbp+var_510] mov r12, rsi lea rdx, [rbp+var_4F8] mov r13, rcx call qword ptr [rdi+48h] test eax, eax jz short loc_84A49 mov r15d, eax mov rax, [rbp+var_500] cmp [rbp+var_4F8], rax ja short loc_84A49 mov rax, [rbp+var_510] mov rdi, [rax+28h] mov rsi, r13 mov rdx, [rbp+var_520] mov ecx, [rbp+var_504] mov r8d, [rbp+var_508] lea r9, [rbp+var_528] call ha_key_cmp mov r14d, eax test eax, eax jns short loc_84A77 mov edx, r15d mov rdi, [rbp+arg_8] mov rsi, r13 call _memcpy mov rax, [rbp+var_4F8] mov [rbx], rax cmp rax, [rbp+var_500] mov rsi, r12 mov rcx, r13 jb loc_849B8 jmp short loc_84A8F loc_84A49: mov rax, [rbp+var_518] mov rax, [rax] mov rsi, [rax+268h] mov edi, 7Eh ; '~' call mi_report_error call _my_thread_var mov dword ptr [rax], 7Eh ; '~' mov r14d, 7FFFFFFFh jmp short loc_84AA4 loc_84A77: jnz short loc_84A8F mov edx, r15d lea rsi, [rbp+var_4F0] mov rdi, [rbp+arg_8] call _memcpy xor r14d, r14d loc_84A8F: mov rax, [rbp+var_500] cmp [rbp+var_4F8], rax mov rax, [rbp+arg_10] setz byte ptr [rax] loc_84AA4: mov rax, fs:28h cmp rax, [rbp+var_30] jnz short loc_84AC8 mov eax, r14d add rsp, 508h pop rbx pop r12 pop r13 pop r14 pop r15 pop rbp retn loc_84AC8: call ___stack_chk_fail
long long mi_seq_search( long long a1, long long a2, char *a3, long long a4, unsigned int a5, unsigned int a6, char **a7, long long a8, bool *a9) { unsigned int v9; // r14d unsigned long long v10; // rax long long v11; // rsi long long v12; // rcx _BYTE *v13; // rcx _BYTE *v14; // r13 unsigned int v15; // eax unsigned int v16; // r15d int v17; // eax char *v18; // rax const char *v19; // rsi char v21[8]; // [rsp+8h] [rbp-528h] BYREF long long v22; // [rsp+10h] [rbp-520h] long long v23; // [rsp+18h] [rbp-518h] long long v24; // [rsp+20h] [rbp-510h] unsigned int v25; // [rsp+28h] [rbp-508h] unsigned int v26; // [rsp+2Ch] [rbp-504h] char *v27; // [rsp+30h] [rbp-500h] char *v28; // [rsp+38h] [rbp-4F8h] BYREF _BYTE v29[1216]; // [rsp+40h] [rbp-4F0h] BYREF unsigned long long v30; // [rsp+500h] [rbp-30h] v25 = a6; v26 = a5; v22 = a4; v24 = a2; v30 = __readfsqword(0x28u); v10 = (unsigned __int8)a3[1] | (unsigned long long)((unsigned __int8)(*a3 & 0x7F) << 8); v11 = 0LL; if ( *a3 < 0 ) v11 = *(unsigned int *)(*(_QWORD *)a1 + 380LL); v23 = a1; v27 = &a3[v10]; v12 = (unsigned int)(v11 + 2); v28 = &a3[v12]; *a7 = &a3[v12]; v29[0] = 0; if ( (unsigned int)v10 > (unsigned int)v12 ) { v13 = v29; while ( 1 ) { v14 = v13; v15 = (*(long long ( **)(long long, long long, char **))(v24 + 72))(v24, v11, &v28); if ( !v15 || (v16 = v15, v28 > v27) ) { v19 = *(const char **)(*(_QWORD *)v23 + 616LL); mi_report_error(126, (long long)v19); *(_DWORD *)my_thread_var(126LL, v19) = 126; return 0x7FFFFFFF; } v17 = ha_key_cmp(*(_QWORD *)(v24 + 40), v14, v22, v26, v25, v21); v9 = v17; if ( v17 >= 0 ) break; memcpy(a8, v14, v16); v18 = v28; *a7 = v28; v13 = v14; if ( v18 >= v27 ) goto LABEL_13; } if ( !v17 ) { memcpy(a8, v29, v16); v9 = 0; } } LABEL_13: *a9 = v28 == v27; return v9; }
_mi_seq_search: PUSH RBP MOV RBP,RSP PUSH R15 PUSH R14 PUSH R13 PUSH R12 PUSH RBX SUB RSP,0x508 MOV dword ptr [RBP + -0x508],R9D MOV dword ptr [RBP + -0x504],R8D MOV qword ptr [RBP + -0x520],RCX MOV qword ptr [RBP + -0x510],RSI MOV RBX,qword ptr [RBP + 0x10] MOV RAX,qword ptr FS:[0x28] MOV qword ptr [RBP + -0x30],RAX MOVZX ECX,byte ptr [RDX + 0x1] MOVZX R9D,byte ptr [RDX] MOV EAX,R9D AND EAX,0x7f SHL EAX,0x8 OR RAX,RCX XOR ESI,ESI TEST R9B,R9B JNS 0x00184980 MOV RCX,qword ptr [RDI] MOV ESI,dword ptr [RCX + 0x17c] LAB_00184980: MOV qword ptr [RBP + -0x518],RDI LEA RCX,[RDX + RAX*0x1] MOV qword ptr [RBP + -0x500],RCX LEA ECX,[RSI + 0x2] ADD RDX,RCX MOV qword ptr [RBP + -0x4f8],RDX MOV qword ptr [RBX],RDX MOV byte ptr [RBP + -0x4f0],0x0 CMP EAX,ECX JBE 0x00184a8f LEA RCX,[RBP + -0x4f0] LAB_001849b8: MOV RDI,qword ptr [RBP + -0x510] MOV R12,RSI LEA RDX,[RBP + -0x4f8] MOV R13,RCX CALL qword ptr [RDI + 0x48] TEST EAX,EAX JZ 0x00184a49 MOV R15D,EAX MOV RAX,qword ptr [RBP + -0x500] CMP qword ptr [RBP + -0x4f8],RAX JA 0x00184a49 MOV RAX,qword ptr [RBP + -0x510] MOV RDI,qword ptr [RAX + 0x28] MOV RSI,R13 MOV RDX,qword ptr [RBP + -0x520] MOV ECX,dword ptr [RBP + -0x504] MOV R8D,dword ptr [RBP + -0x508] LEA R9,[RBP + -0x528] CALL 0x0019e822 MOV R14D,EAX TEST EAX,EAX JNS 0x00184a77 MOV EDX,R15D MOV RDI,qword ptr [RBP + 0x18] MOV RSI,R13 CALL 0x00129080 MOV RAX,qword ptr [RBP + -0x4f8] MOV qword ptr [RBX],RAX CMP RAX,qword ptr [RBP + -0x500] MOV RSI,R12 MOV RCX,R13 JC 0x001849b8 JMP 0x00184a8f LAB_00184a49: MOV RAX,qword ptr [RBP + -0x518] MOV RAX,qword ptr [RAX] MOV RSI,qword ptr [RAX + 0x268] MOV EDI,0x7e CALL 0x0017af4e CALL 0x001a1b22 MOV dword ptr [RAX],0x7e MOV R14D,0x7fffffff JMP 0x00184aa4 LAB_00184a77: JNZ 0x00184a8f MOV EDX,R15D LEA RSI,[RBP + -0x4f0] MOV RDI,qword ptr [RBP + 0x18] CALL 0x00129080 XOR R14D,R14D LAB_00184a8f: MOV RAX,qword ptr [RBP + -0x500] CMP qword ptr [RBP + -0x4f8],RAX MOV RAX,qword ptr [RBP + 0x20] SETZ byte ptr [RAX] LAB_00184aa4: MOV RAX,qword ptr FS:[0x28] CMP RAX,qword ptr [RBP + -0x30] JNZ 0x00184ac8 MOV EAX,R14D ADD RSP,0x508 POP RBX POP R12 POP R13 POP R14 POP R15 POP RBP RET LAB_00184ac8: CALL 0x00129270
int _mi_seq_search(long *param_1,long param_2,byte *param_3,int8 param_4,int4 param_5, int4 param_6,int8 *param_7,void *param_8,int8 param_9) { uint uVar1; ulong uVar2; int4 *puVar3; int iVar4; int unaff_R14D; long in_FS_OFFSET; int1 local_530 [8]; int8 local_528; long *local_520; long local_518; int4 local_510; int4 local_50c; byte *local_508; byte *local_500; int1 local_4f8 [1216]; long local_38; local_38 = *(long *)(in_FS_OFFSET + 0x28); uVar2 = (ulong)((*param_3 & 0x7f) << 8) | (ulong)param_3[1]; iVar4 = 0; if ((char)*param_3 < '\0') { iVar4 = *(int *)(*param_1 + 0x17c); } local_508 = param_3 + uVar2; local_500 = param_3 + (iVar4 + 2U); *param_7 = local_500; local_4f8[0] = 0; local_528 = param_4; local_520 = param_1; local_518 = param_2; local_510 = param_6; local_50c = param_5; if (iVar4 + 2U < (uint)uVar2) { do { uVar1 = (**(code **)(local_518 + 0x48))(local_518,iVar4,&local_500); if ((uVar1 == 0) || (local_508 < local_500)) { mi_report_error(0x7e,*(int8 *)(*local_520 + 0x268)); puVar3 = (int4 *)_my_thread_var(); *puVar3 = 0x7e; unaff_R14D = 0x7fffffff; goto LAB_00184aa4; } unaff_R14D = ha_key_cmp(*(int8 *)(local_518 + 0x28),local_4f8,local_528,local_50c, local_510,local_530); if (-1 < unaff_R14D) { if (unaff_R14D == 0) { memcpy(param_8,local_4f8,(ulong)uVar1); unaff_R14D = 0; } break; } memcpy(param_8,local_4f8,(ulong)uVar1); *param_7 = local_500; } while (local_500 < local_508); } *(bool *)param_9 = local_500 == local_508; LAB_00184aa4: if (*(long *)(in_FS_OFFSET + 0x28) != local_38) { /* WARNING: Subroutine does not return */ __stack_chk_fail(); } return unaff_R14D; }