{"type": "func", "start": 4297615376, "end": 4297615586, "name": "CollisionBlockPopup::onClose", "pseudocode": "// \n// CollisionBlockPopup::onClose from 0x100286810 to 0x1002868e2 (210 bytes)\n// \n// 3 xrefs:\n// > CollisionBlockPopup::keyBackClicked @ 0x1002872c5\n// > sub_1002872D0 @ 0x1002872dc\n// > CollisionBlockPopup::init @ 0x100285f49\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 CollisionBlockPopup::onClose(CollisionBlockPopup *a1, cocos2d::CCObject *a2)\n{\n  CCTextInputNode *m_blockIDInput; // rdi\n  __int64 m_gameObjects; // r14\n  unsigned int v5; // r15d\n  GameObject *v6; // rax\n\n  m_blockIDInput = a1->m_blockIDInput;\n  m_blockIDInput->m_delegate = nullptr;\n  ((void (__fastcall *)(CCTextInputNode *, _QWORD))m_blockIDInput->onClickTrackNode)(m_blockIDInput, 0);\n  if ( a1->m_gameObject )\n  {\n    m_gameObjects = sub_10071F9E0(m_blockIDInput, 0);\n    sub_10071FCD0(m_gameObjects, a1->m_gameObject);\n    if ( !m_gameObjects )\n      goto LABEL_8;\n  }\n  else\n  {\n    m_gameObjects = (__int64)a1->m_gameObjects;\n    if ( !m_gameObjects )\n      goto LABEL_8;\n  }\n  if ( (unsigned int)sub_100720070(m_gameObjects) )\n  {\n    v5 = 0;\n    do\n    {\n      v6 = (GameObject *)sub_1007200C0(m_gameObjects, v5);\n      LevelEditorLayer::updateObjectLabel(v6);\n      ++v5;\n    }\n    while ( v5 < (unsigned int)sub_100720070(m_gameObjects) );\n  }\nLABEL_8:\n  GameManager::sharedState()->m_levelEditorLayer->m_unk3751 = 1;\n  ((void (__fastcall *)(CollisionBlockPopup *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n  ((void (__fastcall *)(CollisionBlockPopup *, __int64))a1->removeFromParentAndCleanup)(a1, 1);\n}", "assembly": "; \n; CollisionBlockPopup::onClose from 0x100286810 to 0x1002868e2 (210 bytes)\n; \n; 3 xrefs:\n; > CollisionBlockPopup::keyBackClicked @ 0x1002872c5\n; > sub_1002872D0 @ 0x1002872dc\n; > CollisionBlockPopup::init @ 0x100285f49\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    rbp                                                            ; +0x0, 0x100286810\nmov     rbp, rsp                                                       ; +0x1, 0x100286811\npush    r15                                                            ; +0x4, 0x100286814\npush    r14                                                            ; +0x6, 0x100286816\npush    rbx                                                            ; +0x8, 0x100286818\npush    rax                                                            ; +0x9, 0x100286819\nmov     rbx, rdi                                                       ; +0xa, 0x10028681a\nmov     rdi, [rdi+290h]                                                ; +0xd, 0x10028681d\nmov     qword ptr [rdi+220h], 0                                        ; +0x14, 0x100286824\nmov     rax, [rdi]                                                     ; +0x1f, 0x10028682f\nxor     esi, esi                                                       ; +0x22, 0x100286832\ncall    qword ptr [rax+478h]                                           ; +0x24, 0x100286834\ncmp     qword ptr [rbx+280h], 0                                        ; +0x2a, 0x10028683a\njz      short loc_100286862                                            ; +0x32, 0x100286842\ncall    sub_10071F9E0                                                  ; +0x34, 0x100286844\nmov     r14, rax                                                       ; +0x39, 0x100286849\nmov     rsi, [rbx+280h]                                                ; +0x3c, 0x10028684c\nmov     rdi, rax                                                       ; +0x43, 0x100286853\ncall    sub_10071FCD0                                                  ; +0x46, 0x100286856\ntest    r14, r14                                                       ; +0x4b, 0x10028685b\njnz     short loc_10028686E                                            ; +0x4e, 0x10028685e\njmp     short loc_1002868A3                                            ; +0x50, 0x100286860\nmov     r14, [rbx+288h]                                                ; +0x52, 0x100286862\ntest    r14, r14                                                       ; +0x59, 0x100286869\njz      short loc_1002868A3                                            ; +0x5c, 0x10028686c\nmov     rdi, r14                                                       ; +0x5e, 0x10028686e\ncall    sub_100720070                                                  ; +0x61, 0x100286871\ntest    eax, eax                                                       ; +0x66, 0x100286876\njz      short loc_1002868A3                                            ; +0x68, 0x100286878\nxor     r15d, r15d                                                     ; +0x6a, 0x10028687a\nnop     dword ptr [rax]                                                ; +0x6d, 0x10028687d\nmov     rdi, r14                                                       ; +0x70, 0x100286880\nmov     esi, r15d                                                      ; +0x73, 0x100286883\ncall    sub_1007200C0                                                  ; +0x76, 0x100286886\nmov     rdi, rax                                                       ; +0x7b, 0x10028688b\ncall    LevelEditorLayer__updateObjectLabel                            ; +0x7e, 0x10028688e\ninc     r15d                                                           ; +0x83, 0x100286893\nmov     rdi, r14                                                       ; +0x86, 0x100286896\ncall    sub_100720070                                                  ; +0x89, 0x100286899\ncmp     r15d, eax                                                      ; +0x8e, 0x10028689e\njb      short loc_100286880                                            ; +0x91, 0x1002868a1\ncall    GameManager__sharedState                                       ; +0x93, 0x1002868a3\nmov     rax, [rax+200h]                                                ; +0x98, 0x1002868a8\nmov     byte ptr [rax+3611h], 1                                        ; +0x9f, 0x1002868af\nmov     rax, [rbx]                                                     ; +0xa6, 0x1002868b6\nmov     rdi, rbx                                                       ; +0xa9, 0x1002868b9\nxor     esi, esi                                                       ; +0xac, 0x1002868bc\ncall    qword ptr [rax+420h]                                           ; +0xae, 0x1002868be\nmov     rax, [rbx]                                                     ; +0xb4, 0x1002868c4\nmov     rax, [rax+200h]                                                ; +0xb7, 0x1002868c7\nmov     rdi, rbx                                                       ; +0xbe, 0x1002868ce\nmov     esi, 1                                                         ; +0xc1, 0x1002868d1\nadd     rsp, 8                                                         ; +0xc6, 0x1002868d6\npop     rbx                                                            ; +0xca, 0x1002868da\npop     r14                                                            ; +0xcb, 0x1002868db\npop     r15                                                            ; +0xcd, 0x1002868dd\npop     rbp                                                            ; +0xcf, 0x1002868df\njmp     rax                                                            ; +0xd0, 0x1002868e0", "xrefs": ["CollisionBlockPopup::keyBackClicked @ 0x1002872c5", "sub_1002872D0 @ 0x1002872dc", "CollisionBlockPopup::init @ 0x100285f49"], "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"}