{"type": "func", "start": 5369404192, "end": 5369404307, "name": "CustomizeObjectLayer::onBreakApart", "pseudocode": "// \n// CustomizeObjectLayer::onBreakApart from 0x1400a9b20 to 0x1400a9b93 (115 bytes)\n// \n// 2 xrefs:\n// > CustomizeObjectLayer::init @ 0x1400a7614\n// > <???> @ 0x1406c7878\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\n// Hidden C++ exception states: #wind=1\nvoid CustomizeObjectLayer::onBreakApart(CustomizeObjectLayer *a1, cocos2d::CCObject *a2)\n{\n  __int64 v3; // rcx\n  void *v4; // [rsp+30h] [rbp+8h]\n\n  if ( a1->m_targetObject )\n  {\n    CustomizeObjectLayer::onClose(a1, nullptr);\n    v3 = qword_1406C2ED8;\n    if ( !qword_1406C2ED8 )\n    {\n      v4 = operator new(0x668u);\n      qword_1406C2ED8 = sub_14017AB00(v4);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8);\n      v3 = qword_1406C2ED8;\n    }\n    LevelEditorLayer::breakApartTextObject(*(LevelEditorLayer **)(v3 + 528), (TextGameObject *)a1->m_targetObject);\n  }\n}", "assembly": "; \n; CustomizeObjectLayer::onBreakApart from 0x1400a9b20 to 0x1400a9b93 (115 bytes)\n; \n; 2 xrefs:\n; > CustomizeObjectLayer::init @ 0x1400a7614\n; > <???> @ 0x1406c7878\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\npush    rbx                                                            ; +0x0, 0x1400a9b20\nsub     rsp, 20h                                                       ; +0x2, 0x1400a9b22\nmov     rbx, rcx                                                       ; +0x6, 0x1400a9b26\ncmp     qword ptr [rcx+298h], 0                                        ; +0x9, 0x1400a9b29\njz      short loc_1400A9B8D                                            ; +0x11, 0x1400a9b31\nxor     edx, edx                                                       ; +0x13, 0x1400a9b33\ncall    CustomizeObjectLayer__onClose                                  ; +0x15, 0x1400a9b35\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x1a, 0x1400a9b3a\ntest    rcx, rcx                                                       ; +0x21, 0x1400a9b41\njnz     short loc_1400A9B75                                            ; +0x24, 0x1400a9b44\nmov     ecx, 668h; Size                                                ; +0x26, 0x1400a9b46\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2b, 0x1400a9b4b\nmov     [rsp+28h+arg_0], rax                                           ; +0x30, 0x1400a9b50\nmov     rcx, rax                                                       ; +0x35, 0x1400a9b55\ncall    sub_14017AB00                                                  ; +0x38, 0x1400a9b58\nnop                                                                    ; +0x3d, 0x1400a9b5d\nmov     cs:qword_1406C2ED8, rax                                        ; +0x3e, 0x1400a9b5e\nmov     rdx, [rax]                                                     ; +0x45, 0x1400a9b65\nmov     rcx, rax                                                       ; +0x48, 0x1400a9b68\ncall    qword ptr [rdx+48h]                                            ; +0x4b, 0x1400a9b6b\nmov     rcx, cs:qword_1406C2ED8                                        ; +0x4e, 0x1400a9b6e\nmov     rdx, [rbx+298h]                                                ; +0x55, 0x1400a9b75\nmov     rcx, [rcx+210h]                                                ; +0x5c, 0x1400a9b7c\nadd     rsp, 20h                                                       ; +0x63, 0x1400a9b83\npop     rbx                                                            ; +0x67, 0x1400a9b87\njmp     LevelEditorLayer__breakApartTextObject                         ; +0x68, 0x1400a9b88\nadd     rsp, 20h                                                       ; +0x6d, 0x1400a9b8d\npop     rbx                                                            ; +0x71, 0x1400a9b91\nretn                                                                   ; +0x72, 0x1400a9b92", "xrefs": ["CustomizeObjectLayer::init @ 0x1400a7614", "<???> @ 0x1406c7878"], "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"}