{"type": "func", "start": 5371161888, "end": 5371161958, "name": "GJColorSetupLayer::onClose", "pseudocode": "// \n// GJColorSetupLayer::onClose from 0x140256d20 to 0x140256d66 (70 bytes)\n// \n// 2 xrefs:\n// > GJColorSetupLayer::init @ 0x1402567bb\n// > <???> @ 0x1406cf9b4\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; // rcx\n  _BOOL8 v4; // rdx\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  LOBYTE(v4) = 1;\n  a1->removeFromParentAndCleanup(a1, v4);\n}", "assembly": "; \n; GJColorSetupLayer::onClose from 0x140256d20 to 0x140256d66 (70 bytes)\n; \n; 2 xrefs:\n; > GJColorSetupLayer::init @ 0x1402567bb\n; > <???> @ 0x1406cf9b4\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, 0x140256d20\nsub     rsp, 20h                                                       ; +0x2, 0x140256d22\nmov     rbx, rcx                                                       ; +0x6, 0x140256d26\nmov     rcx, [rcx+2D8h]                                                ; +0x9, 0x140256d29\ntest    rcx, rcx                                                       ; +0x10, 0x140256d30\njz      short loc_140256D44                                            ; +0x13, 0x140256d33\nmov     edx, [rbx+2E0h]                                                ; +0x15, 0x140256d35\ntest    edx, edx                                                       ; +0x1b, 0x140256d3b\njle     short loc_140256D44                                            ; +0x1d, 0x140256d3d\nmov     rax, [rcx]                                                     ; +0x1f, 0x140256d3f\ncall    qword ptr [rax]                                                ; +0x22, 0x140256d42\nmov     rax, [rbx]                                                     ; +0x24, 0x140256d44\nxor     edx, edx                                                       ; +0x27, 0x140256d47\nmov     rcx, rbx                                                       ; +0x29, 0x140256d49\ncall    qword ptr [rax+3D0h]                                           ; +0x2c, 0x140256d4c\nmov     rax, [rbx]                                                     ; +0x32, 0x140256d52\nmov     dl, 1                                                          ; +0x35, 0x140256d55\nmov     rcx, rbx                                                       ; +0x37, 0x140256d57\nadd     rsp, 20h                                                       ; +0x3a, 0x140256d5a\npop     rbx                                                            ; +0x3e, 0x140256d5e\njmp     qword ptr [rax+1F8h]                                           ; +0x3f, 0x140256d5f", "xrefs": ["GJColorSetupLayer::init @ 0x1402567bb", "<???> @ 0x1406cf9b4"], "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"}