{"type": "func", "start": 6442736624, "end": 6442736759, "name": "sub_180045BF0", "pseudocode": "// \n// sub_180045BF0 from 0x180045bf0 to 0x180045c77 (135 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800eb3e8\n// > <???> @ 0x1801b1728\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\ncocos2d::CCLabelAtlas *__fastcall sub_180045BF0(cocos2d::CCLabelAtlas *Block, char a2)\n{\n  int v3; // edi\n\n  v3 = a2 & 1;\n  if ( (a2 & 2) != 0 )\n  {\n    `eh vector destructor iterator'(\n      Block,\n      0x1C8u,\n      *(_QWORD *)&Block[-1].m_uMapStartChar,\n      (void (*)(void *))cocos2d::CCLabelAtlas::~CCLabelAtlas);\n    if ( v3 )\n      j_j_j_free_0(&Block[-1].m_uMapStartChar);\n    return (cocos2d::CCLabelAtlas *)((char *)Block - 8);\n  }\n  else\n  {\n    cocos2d::CCLabelAtlas::~CCLabelAtlas(Block);\n    if ( v3 )\n      j_j_free_0(Block);\n    return Block;\n  }\n}", "assembly": "; \n; sub_180045BF0 from 0x180045bf0 to 0x180045c77 (135 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800eb3e8\n; > <???> @ 0x1801b1728\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, 0x180045bf0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180045bf5\npush    rdi                                                            ; +0xa, 0x180045bfa\nsub     rsp, 20h                                                       ; +0xb, 0x180045bfb\nmov     rbx, rcx                                                       ; +0xf, 0x180045bff\nmov     edi, edx                                                       ; +0x12, 0x180045c02\nand     edi, 1                                                         ; +0x14, 0x180045c04\ntest    dl, 2                                                          ; +0x17, 0x180045c07\njz      short loc_180045C4E                                            ; +0x1a, 0x180045c0a\nlea     r9, ??1CCLabelAtlas@cocos2d@@UEAA@XZ; void (*)(void *)         ; +0x1c, 0x180045c0c\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x23, 0x180045c13\nmov     edx, 1C8h; unsigned __int64                                    ; +0x27, 0x180045c17\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x2c, 0x180045c1c\ntest    edi, edi                                                       ; +0x31, 0x180045c21\njz      short loc_180045C3A                                            ; +0x33, 0x180045c23\nimul    rdx, [rbx-8], 1C8h                                             ; +0x35, 0x180045c25\nadd     rdx, 8                                                         ; +0x3d, 0x180045c2d\nlea     rcx, [rbx-8]; Block                                            ; +0x41, 0x180045c31\ncall    j_j_j_free_0                                                   ; +0x45, 0x180045c35\nlea     rax, [rbx-8]                                                   ; +0x4a, 0x180045c3a\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4e, 0x180045c3e\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x53, 0x180045c43\nadd     rsp, 20h                                                       ; +0x58, 0x180045c48\npop     rdi                                                            ; +0x5c, 0x180045c4c\nretn                                                                   ; +0x5d, 0x180045c4d\ncall    ??1CCLabelAtlas@cocos2d@@UEAA@XZ; cocos2d::CCLabelAtlas::~CCLabelAtlas(void) ; +0x5e, 0x180045c4e\ntest    edi, edi                                                       ; +0x63, 0x180045c53\njz      short loc_180045C64                                            ; +0x65, 0x180045c55\nmov     edx, 1C8h                                                      ; +0x67, 0x180045c57\nmov     rcx, rbx; Block                                                ; +0x6c, 0x180045c5c\ncall    j_j_free_0                                                     ; +0x6f, 0x180045c5f\nmov     rax, rbx                                                       ; +0x74, 0x180045c64\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x77, 0x180045c67\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x7c, 0x180045c6c\nadd     rsp, 20h                                                       ; +0x81, 0x180045c71\npop     rdi                                                            ; +0x85, 0x180045c75\nretn                                                                   ; +0x86, 0x180045c76", "xrefs": ["<???> @ 0x1800eb3e8", "<???> @ 0x1801b1728"], "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"}