; ; cocos2d::CCPrettyPrinter::visit from 0x1800080b0 to 0x1800085dc (1324 bytes) ; ; 3 xrefs: ; > @ 0x1800ec438 ; > @ 0x18014cf68 ; > @ 0x1801b7bc4 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:21:19 +0000 ; mov [rsp-8+arg_10], rbx ; +0x0, 0x1800080b0 push rbp ; +0x5, 0x1800080b5 push rsi ; +0x6, 0x1800080b6 push rdi ; +0x7, 0x1800080b7 push r12 ; +0x8, 0x1800080b8 push r13 ; +0xa, 0x1800080ba push r14 ; +0xc, 0x1800080bc push r15 ; +0xe, 0x1800080be lea rbp, [rsp-27h] ; +0x10, 0x1800080c0 sub rsp, 100h ; +0x15, 0x1800080c5 movaps [rsp+130h+var_40], xmm6 ; +0x1c, 0x1800080cc mov rax, cs:__security_cookie ; +0x24, 0x1800080d4 xor rax, rsp ; +0x2b, 0x1800080db mov [rbp+57h+var_48], rax ; +0x2e, 0x1800080de mov rdi, rdx ; +0x32, 0x1800080e2 mov r14, rcx ; +0x35, 0x1800080e5 lea rbx, [rcx+30h] ; +0x38, 0x1800080e8 mov r8, [rbx+10h] ; +0x3c, 0x1800080ec mov rcx, [rbx+18h] ; +0x40, 0x1800080f0 mov rax, rcx ; +0x44, 0x1800080f4 sub rax, r8 ; +0x47, 0x1800080f7 cmp rax, 1 ; +0x4a, 0x1800080fa jb short loc_18000811D ; +0x4e, 0x1800080fe lea rax, [r8+1] ; +0x50, 0x180008100 mov [rbx+10h], rax ; +0x54, 0x180008104 mov rax, rbx ; +0x58, 0x180008108 cmp rcx, 0Fh ; +0x5b, 0x18000810b jbe short loc_180008114 ; +0x5f, 0x18000810f mov rax, [rbx] ; +0x61, 0x180008111 mov word ptr [rax+r8], 0Ah ; +0x64, 0x180008114 jmp short loc_18000813D ; +0x6b, 0x18000811b mov [rsp+130h+Reserved], 1; Size ; +0x6d, 0x18000811d lea r9, OutputString; "\n" ; +0x76, 0x180008126 xor r8d, r8d ; +0x7d, 0x18000812d mov edx, 1 ; +0x80, 0x180008130 mov rcx, rbx; Src ; +0x85, 0x180008135 call sub_180007A50 ; +0x88, 0x180008138 lea rdx, [r14+10h] ; +0x8d, 0x18000813d cmp qword ptr [r14+28h], 0Fh ; +0x91, 0x180008141 jbe short loc_18000814C ; +0x96, 0x180008146 mov rdx, [r14+10h] ; +0x98, 0x180008148 mov r8, [r14+20h] ; +0x9c, 0x18000814c mov rcx, rbx; Src ; +0xa0, 0x180008150 call sub_180007DF0 ; +0xa3, 0x180008153 mov rcx, [rbx+10h] ; +0xa8, 0x180008158 mov rdx, [rbx+18h] ; +0xac, 0x18000815c mov rax, rdx ; +0xb0, 0x180008160 sub rax, rcx ; +0xb3, 0x180008163 cmp rax, 8 ; +0xb6, 0x180008166 jb short loc_180008192 ; +0xba, 0x18000816a lea rax, [rcx+8] ; +0xbc, 0x18000816c mov [rbx+10h], rax ; +0xc0, 0x180008170 cmp rdx, 0Fh ; +0xc4, 0x180008174 jbe short loc_18000817D ; +0xc8, 0x180008178 mov rbx, [rbx] ; +0xca, 0x18000817a mov rax, 0A3E79617272613Ch ; +0xcd, 0x18000817d mov [rbx+rcx], rax ; +0xd7, 0x180008187 mov byte ptr [rbx+rcx+8], 0 ; +0xdb, 0x18000818b jmp short loc_1800081B2 ; +0xe0, 0x180008190 mov [rsp+130h+Reserved], 8; Size ; +0xe2, 0x180008192 lea r9, aArray; "\n" ; +0xeb, 0x18000819b xor r8d, r8d ; +0xf2, 0x1800081a2 mov edx, 8 ; +0xf5, 0x1800081a5 mov rcx, rbx; Src ; +0xfa, 0x1800081aa call sub_180007A50 ; +0xfd, 0x1800081ad mov edx, [r14+8] ; +0x102, 0x1800081b2 inc edx; int ; +0x106, 0x1800081b6 mov rcx, r14; this ; +0x108, 0x1800081b8 call ?setIndentLevel@CCPrettyPrinter@cocos2d@@AEAAXH@Z; cocos2d::CCPrettyPrinter::setIndentLevel(int) ; +0x10b, 0x1800081bb xor r13d, r13d ; +0x110, 0x1800081c0 xorps xmm0, xmm0 ; +0x113, 0x1800081c3 xor eax, eax ; +0x116, 0x1800081c6 movups xmmword ptr [rbp+57h+Str], xmm0 ; +0x118, 0x1800081c8 movups [rbp+57h+var_70], xmm0 ; +0x11c, 0x1800081cc movups [rbp+57h+var_60], xmm0 ; +0x120, 0x1800081d0 mov [rbp+57h+var_50], ax ; +0x124, 0x1800081d4 test rdi, rdi ; +0x128, 0x1800081d8 jz loc_1800084AE ; +0x12b, 0x1800081db mov rax, [rdi+38h] ; +0x131, 0x1800081e1 mov ecx, [rax] ; +0x135, 0x1800081e5 test ecx, ecx ; +0x137, 0x1800081e7 jz loc_1800084AE ; +0x139, 0x1800081e9 mov r12, [rax+10h] ; +0x13f, 0x1800081ef lea rax, [rcx-1] ; +0x143, 0x1800081f3 lea rax, [r12+rax*8] ; +0x147, 0x1800081f7 mov [rsp+130h+var_100], rax ; +0x14b, 0x1800081fb cmp r12, rax ; +0x150, 0x180008200 ja loc_1800084AE ; +0x153, 0x180008203 movdqa xmm6, cs:xmmword_1800EC500 ; +0x159, 0x180008209 lea rbx, [r14+10h] ; +0x161, 0x180008211 mov r15, [r12] ; +0x165, 0x180008215 test r15, r15 ; +0x169, 0x180008219 jz loc_1800084AE ; +0x16c, 0x18000821c test r13d, r13d ; +0x172, 0x180008222 jle short loc_18000827A ; +0x175, 0x180008225 mov rcx, [r14+40h] ; +0x177, 0x180008227 mov rdx, [r14+48h] ; +0x17b, 0x18000822b mov rax, rdx ; +0x17f, 0x18000822f sub rax, rcx ; +0x182, 0x180008232 cmp rax, 1 ; +0x185, 0x180008235 jb short loc_180008259 ; +0x189, 0x180008239 lea rax, [rcx+1] ; +0x18b, 0x18000823b mov [r14+40h], rax ; +0x18f, 0x18000823f lea rax, [r14+30h] ; +0x193, 0x180008243 cmp rdx, 0Fh ; +0x197, 0x180008247 jbe short loc_180008251 ; +0x19b, 0x18000824b mov rax, [r14+30h] ; +0x19d, 0x18000824d mov word ptr [rax+rcx], 0Ah ; +0x1a1, 0x180008251 jmp short loc_18000827A ; +0x1a7, 0x180008257 mov [rsp+130h+Reserved], 1; Size ; +0x1a9, 0x180008259 lea r9, OutputString; "\n" ; +0x1b2, 0x180008262 xor r8d, r8d ; +0x1b9, 0x180008269 mov edx, 1 ; +0x1bc, 0x18000826c lea rcx, [r14+30h]; Src ; +0x1c1, 0x180008271 call sub_180007A50 ; +0x1c5, 0x180008275 mov r8, rbx ; +0x1ca, 0x18000827a cmp qword ptr [r14+28h], 0Fh ; +0x1cd, 0x18000827d jbe short loc_180008287 ; +0x1d2, 0x180008282 mov r8, [rbx] ; +0x1d4, 0x180008284 mov r9d, r13d ; +0x1d7, 0x180008287 lea rdx, Format; "%s%02d: " ; +0x1da, 0x18000828a lea rcx, [rbp+57h+Str]; Buffer ; +0x1e1, 0x180008291 call sub_1800095F0 ; +0x1e5, 0x180008295 lea rcx, [rbp+57h+Str]; Str ; +0x1ea, 0x18000829a call strlen ; +0x1ee, 0x18000829e mov rdi, rax ; +0x1f3, 0x1800082a3 mov rcx, [r14+40h] ; +0x1f6, 0x1800082a6 mov rdx, [r14+48h] ; +0x1fa, 0x1800082aa mov rax, rdx ; +0x1fe, 0x1800082ae sub rax, rcx ; +0x201, 0x1800082b1 cmp rdi, rax ; +0x204, 0x1800082b4 ja short loc_1800082E8 ; +0x207, 0x1800082b7 lea rax, [rcx+rdi] ; +0x209, 0x1800082b9 mov [r14+40h], rax ; +0x20d, 0x1800082bd lea rax, [r14+30h] ; +0x211, 0x1800082c1 cmp rdx, 0Fh ; +0x215, 0x1800082c5 jbe short loc_1800082CF ; +0x219, 0x1800082c9 mov rax, [r14+30h] ; +0x21b, 0x1800082cb lea rbx, [rax+rcx] ; +0x21f, 0x1800082cf mov r8, rdi; Size ; +0x223, 0x1800082d3 lea rdx, [rbp+57h+Str]; Src ; +0x226, 0x1800082d6 mov rcx, rbx; void * ; +0x22a, 0x1800082da call memmove ; +0x22d, 0x1800082dd mov byte ptr [rbx+rdi], 0 ; +0x232, 0x1800082e2 jmp short loc_180008300 ; +0x236, 0x1800082e6 mov [rsp+130h+Reserved], rdi; Size ; +0x238, 0x1800082e8 lea r9, [rbp+57h+Str] ; +0x23d, 0x1800082ed xor r8d, r8d ; +0x241, 0x1800082f1 mov rdx, rdi ; +0x244, 0x1800082f4 lea rcx, [r14+30h]; Src ; +0x247, 0x1800082f7 call sub_180007A50 ; +0x24b, 0x1800082fb mov eax, [r14+8] ; +0x250, 0x180008300 lea rcx, ??_7CCPrettyPrinter@cocos2d@@6B@; const cocos2d::CCPrettyPrinter::`vftable' ; +0x254, 0x180008304 mov [rsp+130h+var_F0], rcx ; +0x25b, 0x18000830b xorps xmm0, xmm0 ; +0x260, 0x180008310 movups [rsp+130h+Src], xmm0 ; +0x263, 0x180008313 mov ecx, 0Fh ; +0x268, 0x180008318 mov [rbp+57h+var_C8], rcx ; +0x26d, 0x18000831d mov byte ptr [rsp+130h+Src], 0 ; +0x271, 0x180008321 movups [rbp+57h+var_C0], xmm0 ; +0x276, 0x180008326 movdqa [rbp+57h+var_B0], xmm6 ; +0x27a, 0x18000832a mov byte ptr [rbp+57h+var_C0], 0 ; +0x27f, 0x18000832f mov [rsp+130h+var_E8], eax ; +0x283, 0x180008333 xor edi, edi ; +0x287, 0x180008337 mov [rbp+57h+var_D0], rdi ; +0x289, 0x180008339 lea rax, [rsp+130h+Src] ; +0x28d, 0x18000833d mov [rax], dil ; +0x292, 0x180008342 mov ebx, edi ; +0x295, 0x180008345 cmp [rsp+130h+var_E8], edi ; +0x297, 0x180008347 jle short loc_1800083AD ; +0x29b, 0x18000834b nop dword ptr [rax] ; +0x29d, 0x18000834d mov rcx, [rbp+57h+var_D0] ; +0x2a0, 0x180008350 mov rdx, [rbp+57h+var_C8] ; +0x2a4, 0x180008354 mov rax, rdx ; +0x2a8, 0x180008358 sub rax, rcx ; +0x2ab, 0x18000835b cmp rax, 1 ; +0x2ae, 0x18000835e jb short loc_180008383 ; +0x2b2, 0x180008362 lea rax, [rcx+1] ; +0x2b4, 0x180008364 mov [rbp+57h+var_D0], rax ; +0x2b8, 0x180008368 lea rax, [rsp+130h+Src] ; +0x2bc, 0x18000836c cmp rdx, 0Fh ; +0x2c1, 0x180008371 cmova rax, qword ptr [rsp+130h+Src] ; +0x2c5, 0x180008375 mov word ptr [rcx+rax], 9 ; +0x2cb, 0x18000837b jmp short loc_1800083A5 ; +0x2d1, 0x180008381 mov [rsp+130h+Reserved], 1; Size ; +0x2d3, 0x180008383 lea r9, asc_1800EC4F8; "\t" ; +0x2dc, 0x18000838c xor r8d, r8d ; +0x2e3, 0x180008393 mov edx, 1 ; +0x2e6, 0x180008396 lea rcx, [rsp+130h+Src]; Src ; +0x2eb, 0x18000839b call sub_180007A50 ; +0x2f0, 0x1800083a0 inc ebx ; +0x2f5, 0x1800083a5 cmp ebx, [rsp+130h+var_E8] ; +0x2f7, 0x1800083a7 jl short loc_180008350 ; +0x2fb, 0x1800083ab mov rax, [r15] ; +0x2fd, 0x1800083ad lea rdx, [rsp+130h+var_F0] ; +0x300, 0x1800083b0 mov rcx, r15 ; +0x305, 0x1800083b5 call qword ptr [rax+18h] ; +0x308, 0x1800083b8 lea rdx, [rbp+57h+var_A0] ; +0x30b, 0x1800083bb lea rcx, [rsp+130h+var_F0] ; +0x30f, 0x1800083bf call ?getResult@CCPrettyPrinter@cocos2d@@UEAA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ; cocos2d::CCPrettyPrinter::getResult(void) ; +0x314, 0x1800083c4 nop ; +0x319, 0x1800083c9 mov rdx, rax ; +0x31a, 0x1800083ca cmp qword ptr [rax+18h], 0Fh ; +0x31d, 0x1800083cd jbe short loc_1800083D7 ; +0x322, 0x1800083d2 mov rdx, [rax] ; +0x324, 0x1800083d4 mov r8, [rax+10h] ; +0x327, 0x1800083d7 lea rcx, [r14+30h]; Src ; +0x32b, 0x1800083db call sub_180007DF0 ; +0x32f, 0x1800083df nop ; +0x334, 0x1800083e4 mov rdx, [rbp+57h+var_88] ; +0x335, 0x1800083e5 cmp rdx, 0Fh ; +0x339, 0x1800083e9 jbe short loc_180008420 ; +0x33d, 0x1800083ed inc rdx ; +0x33f, 0x1800083ef mov rcx, [rbp+57h+var_A0] ; +0x342, 0x1800083f2 mov rax, rcx ; +0x346, 0x1800083f6 cmp rdx, 1000h ; +0x349, 0x1800083f9 jb short loc_18000841B ; +0x350, 0x180008400 add rdx, 27h ; ''' ; +0x352, 0x180008402 mov rcx, [rcx-8]; Block ; +0x356, 0x180008406 sub rax, rcx ; +0x35a, 0x18000840a sub rax, 8 ; +0x35d, 0x18000840d cmp rax, 1Fh ; +0x361, 0x180008411 ja loc_1800084ED ; +0x365, 0x180008415 call j_j_free_0 ; +0x36b, 0x18000841b inc r13d ; +0x370, 0x180008420 mov rdx, qword ptr [rbp+57h+var_B0+8] ; +0x373, 0x180008423 cmp rdx, 0Fh ; +0x377, 0x180008427 jbe short loc_18000845E ; +0x37b, 0x18000842b inc rdx ; +0x37d, 0x18000842d mov rcx, qword ptr [rbp+57h+var_C0] ; +0x380, 0x180008430 mov rax, rcx ; +0x384, 0x180008434 cmp rdx, 1000h ; +0x387, 0x180008437 jb short loc_180008459 ; +0x38e, 0x18000843e add rdx, 27h ; ''' ; +0x390, 0x180008440 mov rcx, [rcx-8]; Block ; +0x394, 0x180008444 sub rax, rcx ; +0x398, 0x180008448 sub rax, 8 ; +0x39b, 0x18000844b cmp rax, 1Fh ; +0x39f, 0x18000844f ja loc_180008503 ; +0x3a3, 0x180008453 call j_j_free_0 ; +0x3a9, 0x180008459 movdqa [rbp+57h+var_B0], xmm6 ; +0x3ae, 0x18000845e mov byte ptr [rbp+57h+var_C0], 0 ; +0x3b3, 0x180008463 mov rdx, [rbp+57h+var_C8] ; +0x3b7, 0x180008467 cmp rdx, 0Fh ; +0x3bb, 0x18000846b jbe short loc_18000849F ; +0x3bf, 0x18000846f inc rdx ; +0x3c1, 0x180008471 mov rcx, qword ptr [rsp+130h+Src] ; +0x3c4, 0x180008474 mov rax, rcx ; +0x3c9, 0x180008479 cmp rdx, 1000h ; +0x3cc, 0x18000847c jb short loc_18000849A ; +0x3d3, 0x180008483 add rdx, 27h ; ''' ; +0x3d5, 0x180008485 mov rcx, [rcx-8]; Block ; +0x3d9, 0x180008489 sub rax, rcx ; +0x3dd, 0x18000848d sub rax, 8 ; +0x3e0, 0x180008490 cmp rax, 1Fh ; +0x3e4, 0x180008494 ja short loc_180008503 ; +0x3e8, 0x180008498 call j_j_free_0 ; +0x3ea, 0x18000849a add r12, 8 ; +0x3ef, 0x18000849f cmp r12, [rsp+130h+var_100] ; +0x3f3, 0x1800084a3 jbe loc_180008211 ; +0x3f8, 0x1800084a8 mov edx, [r14+8] ; +0x3fe, 0x1800084ae dec edx; int ; +0x402, 0x1800084b2 mov rcx, r14; this ; +0x404, 0x1800084b4 call ?setIndentLevel@CCPrettyPrinter@cocos2d@@AEAAXH@Z; cocos2d::CCPrettyPrinter::setIndentLevel(int) ; +0x407, 0x1800084b7 lea rcx, [r14+30h]; Src ; +0x40c, 0x1800084bc mov rdx, [rcx+10h] ; +0x410, 0x1800084c0 mov r8, [rcx+18h] ; +0x414, 0x1800084c4 mov rax, r8 ; +0x418, 0x1800084c8 sub rax, rdx ; +0x41b, 0x1800084cb cmp rax, 1 ; +0x41e, 0x1800084ce jb short loc_180008519 ; +0x422, 0x1800084d2 lea rax, [rdx+1] ; +0x424, 0x1800084d4 mov [rcx+10h], rax ; +0x428, 0x1800084d8 cmp r8, 0Fh ; +0x42c, 0x1800084dc jbe short loc_1800084E5 ; +0x430, 0x1800084e0 mov rcx, [rcx] ; +0x432, 0x1800084e2 mov word ptr [rcx+rdx], 0Ah ; +0x435, 0x1800084e5 jmp short loc_180008536 ; +0x43b, 0x1800084eb mov [rsp+130h+Reserved], rdi; Reserved ; +0x43d, 0x1800084ed xor r9d, r9d; LineNo ; +0x442, 0x1800084f2 xor r8d, r8d; FileName ; +0x445, 0x1800084f5 xor edx, edx; FunctionName ; +0x448, 0x1800084f8 xor ecx, ecx; Expression ; +0x44a, 0x1800084fa call cs:_invoke_watson ; +0x44c, 0x1800084fc db 90h ; +0x452, 0x180008502 mov [rsp+130h+Reserved], rdi; Reserved ; +0x453, 0x180008503 xor r9d, r9d; LineNo ; +0x458, 0x180008508 xor r8d, r8d; FileName ; +0x45b, 0x18000850b xor edx, edx; FunctionName ; +0x45e, 0x18000850e xor ecx, ecx; Expression ; +0x460, 0x180008510 call cs:_invoke_watson ; +0x462, 0x180008512 db 0CCh ; +0x468, 0x180008518 mov [rsp+130h+Reserved], 1; Size ; +0x469, 0x180008519 lea r9, OutputString; "\n" ; +0x472, 0x180008522 xor r8d, r8d ; +0x479, 0x180008529 mov edx, 1 ; +0x47c, 0x18000852c call sub_180007A50 ; +0x481, 0x180008531 lea rdx, [r14+10h] ; +0x486, 0x180008536 cmp qword ptr [r14+28h], 0Fh ; +0x48a, 0x18000853a jbe short loc_180008545 ; +0x48f, 0x18000853f mov rdx, [r14+10h] ; +0x491, 0x180008541 lea rcx, [r14+30h]; Src ; +0x495, 0x180008545 mov r8, [r14+20h] ; +0x499, 0x180008549 call sub_180007DF0 ; +0x49d, 0x18000854d lea rcx, [r14+30h]; Src ; +0x4a2, 0x180008552 mov rdx, [rcx+10h] ; +0x4a6, 0x180008556 mov r8, [rcx+18h] ; +0x4aa, 0x18000855a mov rax, r8 ; +0x4ae, 0x18000855e sub rax, rdx ; +0x4b1, 0x180008561 cmp rax, 8 ; +0x4b4, 0x180008564 jb short loc_180008590 ; +0x4b8, 0x180008568 lea rax, [rdx+8] ; +0x4ba, 0x18000856a mov [rcx+10h], rax ; +0x4be, 0x18000856e cmp r8, 0Fh ; +0x4c2, 0x180008572 jbe short loc_18000857B ; +0x4c6, 0x180008576 mov rcx, [rcx] ; +0x4c8, 0x180008578 mov rax, 3E79617272612F3Ch ; +0x4cb, 0x18000857b mov [rcx+rdx], rax ; +0x4d5, 0x180008585 mov byte ptr [rcx+rdx+8], 0 ; +0x4d9, 0x180008589 jmp short loc_1800085AD ; +0x4de, 0x18000858e mov [rsp+130h+Reserved], 8; Size ; +0x4e0, 0x180008590 lea r9, aArray_0; "" ; +0x4e9, 0x180008599 xor r8d, r8d ; +0x4f0, 0x1800085a0 mov edx, 8 ; +0x4f3, 0x1800085a3 call sub_180007A50 ; +0x4f8, 0x1800085a8 mov rcx, [rbp+57h+var_48] ; +0x4fd, 0x1800085ad xor rcx, rsp; StackCookie ; +0x501, 0x1800085b1 call __security_check_cookie ; +0x504, 0x1800085b4 mov rbx, [rsp+130h+arg_10] ; +0x509, 0x1800085b9 movaps xmm6, [rsp+130h+var_40] ; +0x511, 0x1800085c1 add rsp, 100h ; +0x519, 0x1800085c9 pop r15 ; +0x520, 0x1800085d0 pop r14 ; +0x522, 0x1800085d2 pop r13 ; +0x524, 0x1800085d4 pop r12 ; +0x526, 0x1800085d6 pop rdi ; +0x528, 0x1800085d8 pop rsi ; +0x529, 0x1800085d9 pop rbp ; +0x52a, 0x1800085da retn ; +0x52b, 0x1800085db