{"type": "func", "start": 6442483712, "end": 6442483868, "name": "cocos2d::CCPrettyPrinter::setIndentLevel", "pseudocode": "// \n// cocos2d::CCPrettyPrinter::setIndentLevel from 0x180008000 to 0x18000809c (156 bytes)\n// \n// 9 xrefs:\n// > cocos2d::CCPrettyPrinter::CCPrettyPrinter @ 0x180007c52\n// > cocos2d::CCPrettyPrinter::visit @ 0x1800081bb\n// > cocos2d::CCPrettyPrinter::visit @ 0x1800084b7\n// > cocos2d::CCPrettyPrinter::visit @ 0x1800087da\n// > cocos2d::CCPrettyPrinter::visit @ 0x180008b1d\n// > cocos2d::CCPrettyPrinter::visit @ 0x180008fd8\n// > cocos2d::CCPrettyPrinter::visit @ 0x18000938c\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b7bb8\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:19 +0000\n// \n\nvoid __fastcall cocos2d::CCPrettyPrinter::setIndentLevel(cocos2d::CCPrettyPrinter *this, int a2)\n{\n  int v2; // edi\n  _BYTE *v3; // rax\n  unsigned __int64 v5; // rdx\n  __int64 v6; // rcx\n  char *v7; // rax\n\n  v2 = 0;\n  *((_DWORD *)this + 2) = a2;\n  *((_QWORD *)this + 4) = 0;\n  v3 = (char *)this + 16;\n  if ( *((_QWORD *)this + 5) > 0xFu )\n    v3 = *((_BYTE **)this + 2);\n  *v3 = 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_180007A50((_QWORD *)this + 2, 1u, 0, \"\\t\", 1u);\n      }\n      else\n      {\n        *((_QWORD *)this + 4) = v6 + 1;\n        v7 = (char *)this + 16;\n        if ( v5 > 0xF )\n          v7 = *((char **)this + 2);\n        *(_WORD *)&v7[v6] = 9;\n      }\n      ++v2;\n    }\n    while ( v2 < *((_DWORD *)this + 2) );\n  }\n}", "assembly": "; \n; cocos2d::CCPrettyPrinter::setIndentLevel from 0x180008000 to 0x18000809c (156 bytes)\n; \n; 9 xrefs:\n; > cocos2d::CCPrettyPrinter::CCPrettyPrinter @ 0x180007c52\n; > cocos2d::CCPrettyPrinter::visit @ 0x1800081bb\n; > cocos2d::CCPrettyPrinter::visit @ 0x1800084b7\n; > cocos2d::CCPrettyPrinter::visit @ 0x1800087da\n; > cocos2d::CCPrettyPrinter::visit @ 0x180008b1d\n; > cocos2d::CCPrettyPrinter::visit @ 0x180008fd8\n; > cocos2d::CCPrettyPrinter::visit @ 0x18000938c\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b7bb8\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:19 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180008000\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180008005\npush    rdi                                                            ; +0xa, 0x18000800a\nsub     rsp, 30h                                                       ; +0xb, 0x18000800b\nxor     edi, edi                                                       ; +0xf, 0x18000800f\nmov     [rcx+8], edx                                                   ; +0x11, 0x180008011\nmov     [rcx+20h], rdi                                                 ; +0x14, 0x180008014\nlea     rax, [rcx+10h]                                                 ; +0x18, 0x180008018\ncmp     qword ptr [rcx+28h], 0Fh                                       ; +0x1c, 0x18000801c\nmov     rsi, rcx                                                       ; +0x21, 0x180008021\njbe     short loc_18000802A                                            ; +0x24, 0x180008024\nmov     rax, [rcx+10h]                                                 ; +0x26, 0x180008026\nmov     [rax], dil                                                     ; +0x2a, 0x18000802a\ncmp     [rcx+8], edi                                                   ; +0x2d, 0x18000802d\njle     short loc_18000808C                                            ; +0x30, 0x180008030\nmov     rdx, [rsi+28h]                                                 ; +0x32, 0x180008032\nmov     rcx, [rsi+20h]                                                 ; +0x36, 0x180008036\nmov     rax, rdx                                                       ; +0x3a, 0x18000803a\nsub     rax, rcx                                                       ; +0x3d, 0x18000803d\ncmp     rax, 1                                                         ; +0x40, 0x180008040\njb      short loc_180008064                                            ; +0x44, 0x180008044\nlea     rax, [rcx+1]                                                   ; +0x46, 0x180008046\nmov     [rsi+20h], rax                                                 ; +0x4a, 0x18000804a\nlea     rax, [rsi+10h]                                                 ; +0x4e, 0x18000804e\ncmp     rdx, 0Fh                                                       ; +0x52, 0x180008052\njbe     short loc_18000805C                                            ; +0x56, 0x180008056\nmov     rax, [rsi+10h]                                                 ; +0x58, 0x180008058\nmov     word ptr [rax+rcx], 9                                          ; +0x5c, 0x18000805c\njmp     short loc_180008085                                            ; +0x62, 0x180008062\nlea     r9, asc_1800EC4F8; \"\\t\"                                        ; +0x64, 0x180008064\nmov     [rsp+38h+Size], 1; Size                                        ; +0x6b, 0x18000806b\nxor     r8d, r8d                                                       ; +0x74, 0x180008074\nlea     rcx, [rsi+10h]; Src                                            ; +0x77, 0x180008077\nmov     edx, 1                                                         ; +0x7b, 0x18000807b\ncall    sub_180007A50                                                  ; +0x80, 0x180008080\ninc     edi                                                            ; +0x85, 0x180008085\ncmp     edi, [rsi+8]                                                   ; +0x87, 0x180008087\njl      short loc_180008032                                            ; +0x8a, 0x18000808a\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x8c, 0x18000808c\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x91, 0x180008091\nadd     rsp, 30h                                                       ; +0x96, 0x180008096\npop     rdi                                                            ; +0x9a, 0x18000809a\nretn                                                                   ; +0x9b, 0x18000809b", "xrefs": ["cocos2d::CCPrettyPrinter::CCPrettyPrinter @ 0x180007c52", "cocos2d::CCPrettyPrinter::visit @ 0x1800081bb", "cocos2d::CCPrettyPrinter::visit @ 0x1800084b7", "cocos2d::CCPrettyPrinter::visit @ 0x1800087da", "cocos2d::CCPrettyPrinter::visit @ 0x180008b1d", "cocos2d::CCPrettyPrinter::visit @ 0x180008fd8", "cocos2d::CCPrettyPrinter::visit @ 0x18000938c", "<???> @ 0x18014cf68", "<???> @ 0x1801b7bb8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}