{"type": "func", "start": 4295326588, "end": 4295326736, "name": "CustomizeObjectLayer::onClose", "pseudocode": "// \n// CustomizeObjectLayer::onClose from 0x100057b7c to 0x100057c10 (148 bytes)\n// \n// 6 xrefs:\n// > sub_100058468 @ 0x100058488\n// > sub_10005863C @ 0x100058654\n// > sub_100058C00 @ 0x100058c50\n// > CustomizeObjectLayer::keyBackClicked @ 0x1000594ac\n// > sub_1000594B0 @ 0x1000594b4\n// > CustomizeObjectLayer::init @ 0x100055f08\n// \n// This function is hookable on this platform (idp: arm, 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 10:57:46 +0000\n// \n\n__int64 __fastcall CustomizeObjectLayer::onClose(__int64 a1)\n{\n  _QWORD *v2; // x0\n  __int64 v3; // x0\n  __int64 v4; // x0\n  __int64 v5; // x0\n\n  v2 = *(_QWORD **)(a1 + 816);\n  v2[73] = 0;\n  (*(void (__fastcall **)(_QWORD *, _QWORD))(*v2 + 1160LL))(v2, 0);\n  v3 = *(_QWORD *)(a1 + 824);\n  if ( v3 )\n  {\n    v3 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 1160LL))(v3, 0);\n    *(_QWORD *)(*(_QWORD *)(a1 + 824) + 584LL) = 0;\n  }\n  v4 = GameManager::sharedState(v3);\n  *(_DWORD *)(v4 + 972) = *(_DWORD *)(a1 + 748);\n  v5 = GameManager::sharedState(v4);\n  EditorUI::updateObjectInfoLabel(*(_QWORD *)(*(_QWORD *)(v5 + 552) + 14248LL));\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);\n  return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);\n}", "assembly": "; \n; CustomizeObjectLayer::onClose from 0x100057b7c to 0x100057c10 (148 bytes)\n; \n; 6 xrefs:\n; > sub_100058468 @ 0x100058488\n; > sub_10005863C @ 0x100058654\n; > sub_100058C00 @ 0x100058c50\n; > CustomizeObjectLayer::keyBackClicked @ 0x1000594ac\n; > sub_1000594B0 @ 0x1000594b4\n; > CustomizeObjectLayer::init @ 0x100055f08\n; \n; This function is hookable on this platform (idp: arm, 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 10:57:46 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x100057b7c\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x100057b80\nADD             X29, SP, #0x10                                         ; +0x8, 0x100057b84\nMOV             X19, X0                                                ; +0xc, 0x100057b88\nLDR             X0, [X0,#0x330]                                        ; +0x10, 0x100057b8c\nSTR             XZR, [X0,#0x248]                                       ; +0x14, 0x100057b90\nLDR             X8, [X0]                                               ; +0x18, 0x100057b94\nLDR             X8, [X8,#0x488]                                        ; +0x1c, 0x100057b98\nMOV             W1, #0                                                 ; +0x20, 0x100057b9c\nBLR             X8                                                     ; +0x24, 0x100057ba0\nLDR             X0, [X19,#0x338]                                       ; +0x28, 0x100057ba4\nCBZ             X0, loc_100057BC4                                      ; +0x2c, 0x100057ba8\nLDR             X8, [X0]                                               ; +0x30, 0x100057bac\nLDR             X8, [X8,#0x488]                                        ; +0x34, 0x100057bb0\nMOV             W1, #0                                                 ; +0x38, 0x100057bb4\nBLR             X8                                                     ; +0x3c, 0x100057bb8\nLDR             X8, [X19,#0x338]                                       ; +0x40, 0x100057bbc\nSTR             XZR, [X8,#0x248]                                       ; +0x44, 0x100057bc0\nBL              GameManager__sharedState                               ; +0x48, 0x100057bc4\nLDR             W8, [X19,#0x2EC]                                       ; +0x4c, 0x100057bc8\nSTR             W8, [X0,#0x3CC]                                        ; +0x50, 0x100057bcc\nBL              GameManager__sharedState                               ; +0x54, 0x100057bd0\nLDR             X8, [X0,#0x228]                                        ; +0x58, 0x100057bd4\nLDR             X0, [X8,#0x37A8]                                       ; +0x5c, 0x100057bd8\nBL              EditorUI__updateObjectInfoLabel                        ; +0x60, 0x100057bdc\nLDR             X8, [X19]                                              ; +0x64, 0x100057be0\nLDR             X8, [X8,#0x430]                                        ; +0x68, 0x100057be4\nMOV             X0, X19                                                ; +0x6c, 0x100057be8\nMOV             W1, #0                                                 ; +0x70, 0x100057bec\nBLR             X8                                                     ; +0x74, 0x100057bf0\nLDR             X8, [X19]                                              ; +0x78, 0x100057bf4\nLDR             X2, [X8,#0x210]                                        ; +0x7c, 0x100057bf8\nMOV             X0, X19                                                ; +0x80, 0x100057bfc\nMOV             W1, #1                                                 ; +0x84, 0x100057c00\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x88, 0x100057c04\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x8c, 0x100057c08\nBR              X2                                                     ; +0x90, 0x100057c0c", "xrefs": ["sub_100058468 @ 0x100058488", "sub_10005863C @ 0x100058654", "sub_100058C00 @ 0x100058c50", "CustomizeObjectLayer::keyBackClicked @ 0x1000594ac", "sub_1000594B0 @ 0x1000594b4", "CustomizeObjectLayer::init @ 0x100055f08"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}