{"type": "func", "start": 6442483424, "end": 6442483579, "name": "cocos2d::CCPrettyPrinter::setIndentLevel", "pseudocode": "// \n// cocos2d::CCPrettyPrinter::setIndentLevel from 0x180007ee0 to 0x180007f7b (155 bytes)\n// \n// 9 xrefs:\n// > cocos2d::CCPrettyPrinter::CCPrettyPrinter @ 0x180007ae2\n// > cocos2d::CCPrettyPrinter::visit @ 0x180008091\n// > cocos2d::CCPrettyPrinter::visit @ 0x180008313\n// > cocos2d::CCPrettyPrinter::visit @ 0x180008627\n// > cocos2d::CCPrettyPrinter::visit @ 0x180008a29\n// > cocos2d::CCPrettyPrinter::visit @ 0x180008f00\n// > cocos2d::CCPrettyPrinter::visit @ 0x1800092ce\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801adb94\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall cocos2d::CCPrettyPrinter::setIndentLevel(cocos2d::CCPrettyPrinter *this, int a2)\n{\n  int v2; // edi\n  cocos2d::CCPrettyPrinter *v3; // rax\n  unsigned __int64 v5; // rdx\n  __int64 v6; // rcx\n  cocos2d::CCPrettyPrinter *v7; // rax\n\n  v2 = 0;\n  *((_DWORD *)this + 2) = a2;\n  *((_QWORD *)this + 4) = 0;\n  v3 = this + 2;\n  if ( *((_QWORD *)this + 5) > 0xFu )\n    v3 = *((cocos2d::CCPrettyPrinter **)this + 2);\n  LOBYTE(v3->__vftable) = 0;\n  if ( *((int *)this + 2) > 0 )\n  {\n    do\n    {\n      v5 = *((_QWORD *)this + 5);\n      v6 = *((_QWORD *)this + 4);\n      if ( v5 == v6 )\n      {\n        sub_180007900((_QWORD *)this + 2, 1u, 0, \"\\t\", 1u);\n      }\n      else\n      {\n        *((_QWORD *)this + 4) = v6 + 1;\n        v7 = this + 2;\n        if ( v5 > 0xF )\n          v7 = *((cocos2d::CCPrettyPrinter **)this + 2);\n        *(_WORD *)((char *)&v7->__vftable + v6) = 9;\n      }\n      ++v2;\n    }\n    while ( v2 < *((_DWORD *)this + 2) );\n  }\n}", "assembly": "; \n; cocos2d::CCPrettyPrinter::setIndentLevel from 0x180007ee0 to 0x180007f7b (155 bytes)\n; \n; 9 xrefs:\n; > cocos2d::CCPrettyPrinter::CCPrettyPrinter @ 0x180007ae2\n; > cocos2d::CCPrettyPrinter::visit @ 0x180008091\n; > cocos2d::CCPrettyPrinter::visit @ 0x180008313\n; > cocos2d::CCPrettyPrinter::visit @ 0x180008627\n; > cocos2d::CCPrettyPrinter::visit @ 0x180008a29\n; > cocos2d::CCPrettyPrinter::visit @ 0x180008f00\n; > cocos2d::CCPrettyPrinter::visit @ 0x1800092ce\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801adb94\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180007ee0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180007ee5\npush    rdi                                                            ; +0xa, 0x180007eea\nsub     rsp, 30h                                                       ; +0xb, 0x180007eeb\nxor     edi, edi                                                       ; +0xf, 0x180007eef\nmov     [rcx+8], edx                                                   ; +0x11, 0x180007ef1\nmov     [rcx+20h], rdi                                                 ; +0x14, 0x180007ef4\nlea     rax, [rcx+10h]                                                 ; +0x18, 0x180007ef8\ncmp     qword ptr [rcx+28h], 0Fh                                       ; +0x1c, 0x180007efc\nmov     rsi, rcx                                                       ; +0x21, 0x180007f01\njbe     short loc_180007F0A                                            ; +0x24, 0x180007f04\nmov     rax, [rcx+10h]                                                 ; +0x26, 0x180007f06\nmov     [rax], dil                                                     ; +0x2a, 0x180007f0a\ncmp     [rcx+8], edi                                                   ; +0x2d, 0x180007f0d\njle     short loc_180007F6B                                            ; +0x30, 0x180007f10\nmov     rdx, [rsi+28h]                                                 ; +0x32, 0x180007f12\nmov     rcx, [rsi+20h]                                                 ; +0x36, 0x180007f16\nmov     rax, rdx                                                       ; +0x3a, 0x180007f1a\nsub     rax, rcx                                                       ; +0x3d, 0x180007f1d\ncmp     rax, 1                                                         ; +0x40, 0x180007f20\njb      short loc_180007F44                                            ; +0x44, 0x180007f24\nlea     rax, [rcx+1]                                                   ; +0x46, 0x180007f26\nmov     [rsi+20h], rax                                                 ; +0x4a, 0x180007f2a\nlea     rax, [rsi+10h]                                                 ; +0x4e, 0x180007f2e\ncmp     rdx, 0Fh                                                       ; +0x52, 0x180007f32\njbe     short loc_180007F3C                                            ; +0x56, 0x180007f36\nmov     rax, [rsi+10h]                                                 ; +0x58, 0x180007f38\nmov     word ptr [rax+rcx], 9                                          ; +0x5c, 0x180007f3c\njmp     short loc_180007F64                                            ; +0x62, 0x180007f42\nxor     r8d, r8d                                                       ; +0x64, 0x180007f44\nmov     [rsp+38h+Size], 1; Size                                        ; +0x67, 0x180007f47\nlea     r9, asc_1800E64A8; \"\\t\"                                        ; +0x70, 0x180007f50\nlea     rcx, [rsi+10h]; Src                                            ; +0x77, 0x180007f57\nlea     edx, [r8+1]                                                    ; +0x7b, 0x180007f5b\ncall    sub_180007900                                                  ; +0x7f, 0x180007f5f\ninc     edi                                                            ; +0x84, 0x180007f64\ncmp     edi, [rsi+8]                                                   ; +0x86, 0x180007f66\njl      short loc_180007F12                                            ; +0x89, 0x180007f69\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x8b, 0x180007f6b\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x90, 0x180007f70\nadd     rsp, 30h                                                       ; +0x95, 0x180007f75\npop     rdi                                                            ; +0x99, 0x180007f79\nretn                                                                   ; +0x9a, 0x180007f7a", "xrefs": ["cocos2d::CCPrettyPrinter::CCPrettyPrinter @ 0x180007ae2", "cocos2d::CCPrettyPrinter::visit @ 0x180008091", "cocos2d::CCPrettyPrinter::visit @ 0x180008313", "cocos2d::CCPrettyPrinter::visit @ 0x180008627", "cocos2d::CCPrettyPrinter::visit @ 0x180008a29", "cocos2d::CCPrettyPrinter::visit @ 0x180008f00", "cocos2d::CCPrettyPrinter::visit @ 0x1800092ce", "<???> @ 0x1801438a8", "<???> @ 0x1801adb94"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}