{"type": "func", "start": 4296598724, "end": 4296598820, "name": "GJColorSetupLayer::onClose", "pseudocode": "// \n// GJColorSetupLayer::onClose from 0x10018e4c4 to 0x10018e524 (96 bytes)\n// \n// 4 xrefs:\n// > GJColorSetupLayer::onColor @ 0x10018e310\n// > GJColorSetupLayer::keyBackClicked @ 0x10018e628\n// > sub_10018E62C @ 0x10018e630\n// > GJColorSetupLayer::init @ 0x10018e208\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 GJColorSetupLayer::onClose(GJColorSetupLayer *a1, cocos2d::CCObject *a2)\n{\n  ColorSetupDelegate *m_delegate; // x0\n\n  m_delegate = a1->m_delegate;\n  if ( m_delegate && a1->m_colorID >= 1 )\n    ((void (__fastcall *)(ColorSetupDelegate *))m_delegate->colorSetupClosed)(m_delegate);\n  ((void (__fastcall *)(GJColorSetupLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n  ((void (__fastcall *)(GJColorSetupLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1);\n}", "assembly": "; \n; GJColorSetupLayer::onClose from 0x10018e4c4 to 0x10018e524 (96 bytes)\n; \n; 4 xrefs:\n; > GJColorSetupLayer::onColor @ 0x10018e310\n; > GJColorSetupLayer::keyBackClicked @ 0x10018e628\n; > sub_10018E62C @ 0x10018e630\n; > GJColorSetupLayer::init @ 0x10018e208\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\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10018e4c4\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10018e4c8\nADD             X29, SP, #0x10                                         ; +0x8, 0x10018e4cc\nMOV             X19, X0                                                ; +0xc, 0x10018e4d0\nLDR             X0, [X0,#0x2D8]                                        ; +0x10, 0x10018e4d4\nCBZ             X0, loc_10018E4F4                                      ; +0x14, 0x10018e4d8\nLDR             W1, [X19,#0x2E0]                                       ; +0x18, 0x10018e4dc\nCMP             W1, #1                                                 ; +0x1c, 0x10018e4e0\nB.LT            loc_10018E4F4                                          ; +0x20, 0x10018e4e4\nLDR             X8, [X0]                                               ; +0x24, 0x10018e4e8\nLDR             X8, [X8]                                               ; +0x28, 0x10018e4ec\nBLR             X8                                                     ; +0x2c, 0x10018e4f0\nLDR             X8, [X19]                                              ; +0x30, 0x10018e4f4\nLDR             X8, [X8,#0x420]                                        ; +0x34, 0x10018e4f8\nMOV             X0, X19                                                ; +0x38, 0x10018e4fc\nMOV             W1, #0                                                 ; +0x3c, 0x10018e500\nBLR             X8                                                     ; +0x40, 0x10018e504\nLDR             X8, [X19]                                              ; +0x44, 0x10018e508\nLDR             X2, [X8,#0x200]                                        ; +0x48, 0x10018e50c\nMOV             X0, X19                                                ; +0x4c, 0x10018e510\nMOV             W1, #1                                                 ; +0x50, 0x10018e514\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x54, 0x10018e518\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x58, 0x10018e51c\nBR              X2                                                     ; +0x5c, 0x10018e520", "xrefs": ["GJColorSetupLayer::onColor @ 0x10018e310", "GJColorSetupLayer::keyBackClicked @ 0x10018e628", "sub_10018E62C @ 0x10018e630", "GJColorSetupLayer::init @ 0x10018e208"], "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"}