{"type": "func", "start": 4816566, "end": 4816618, "name": "GJColorSetupLayer::onClose", "pseudocode": "// \n// GJColorSetupLayer::onClose from 0x497eb6 to 0x497eea (52 bytes)\n// \n// 2 xrefs:\n// > GJColorSetupLayer::keyBackClicked @ 0x497eec\n// > GJColorSetupLayer::onColor @ 0x497fc8\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 GJColorSetupLayer::onClose(GJColorSetupLayer *a1, cocos2d::CCObject *a2)\n{\n  ColorSetupDelegate *m_delegate; // r0\n\n  m_delegate = a1->m_delegate;\n  if ( m_delegate && a1->m_colorID > 0 )\n    ((void (__fastcall *)(ColorSetupDelegate *))m_delegate->colorSetupClosed)(m_delegate);\n  a1->setKeypadEnabled(a1, 0);\n  a1->removeFromParentAndCleanup(a1, 1);\n}", "assembly": "; \n; GJColorSetupLayer::onClose from 0x497eb6 to 0x497eea (52 bytes)\n; \n; 2 xrefs:\n; > GJColorSetupLayer::keyBackClicked @ 0x497eec\n; > GJColorSetupLayer::onColor @ 0x497fc8\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            {R4,LR}                                                ; +0x0, 0x497eb6\nMOV             R4, R0                                                 ; +0x2, 0x497eb8\nLDR.W           R0, [R0,#0x224]                                        ; +0x4, 0x497eba\nCBZ             R0, loc_497ECE                                         ; +0x8, 0x497ebe\nLDR.W           R1, [R4,#0x228]                                        ; +0xa, 0x497ec0\nCMP             R1, #0                                                 ; +0xe, 0x497ec4\nBLE             loc_497ECE                                             ; +0x10, 0x497ec6\nLDR             R3, [R0]                                               ; +0x12, 0x497ec8\nLDR             R3, [R3]                                               ; +0x14, 0x497eca\nBLX             R3                                                     ; +0x16, 0x497ecc\nLDR             R3, [R4]                                               ; +0x18, 0x497ece\nMOV             R0, R4                                                 ; +0x1a, 0x497ed0\nMOVS            R1, #0                                                 ; +0x1c, 0x497ed2\nLDR.W           R3, [R3,#0x210]                                        ; +0x1e, 0x497ed4\nBLX             R3                                                     ; +0x22, 0x497ed8\nLDR             R3, [R4]                                               ; +0x24, 0x497eda\nMOV             R0, R4                                                 ; +0x26, 0x497edc\nMOVS            R1, #1                                                 ; +0x28, 0x497ede\nPOP.W           {R4,LR}                                                ; +0x2a, 0x497ee0\nLDR.W           R3, [R3,#0x100]                                        ; +0x2e, 0x497ee4\nBX              R3                                                     ; +0x32, 0x497ee8", "xrefs": ["GJColorSetupLayer::keyBackClicked @ 0x497eec", "GJColorSetupLayer::onColor @ 0x497fc8"], "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"}