{"type": "func", "start": 4297113440, "end": 4297113516, "name": "GJColorSetupLayer::onClose", "pseudocode": "// \n// GJColorSetupLayer::onClose from 0x10020bf60 to 0x10020bfac (76 bytes)\n// \n// 1 xrefs:\n// > GJColorSetupLayer::init @ 0x10020bb66\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; // rdi\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  ((void (__fastcall *)(GJColorSetupLayer *, _QWORD))a1->setKeypadEnabled)(a1, 0);\n  ((void (__fastcall *)(GJColorSetupLayer *, __int64))a1->removeFromParentAndCleanup)(a1, 1);\n}", "assembly": "; \n; GJColorSetupLayer::onClose from 0x10020bf60 to 0x10020bfac (76 bytes)\n; \n; 1 xrefs:\n; > GJColorSetupLayer::init @ 0x10020bb66\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, 0x10020bf60\nmov     rbp, rsp                                                       ; +0x1, 0x10020bf61\npush    rbx                                                            ; +0x4, 0x10020bf64\npush    rax                                                            ; +0x5, 0x10020bf65\nmov     rbx, rdi                                                       ; +0x6, 0x10020bf66\nmov     rdi, [rdi+2D8h]                                                ; +0x9, 0x10020bf69\ntest    rdi, rdi                                                       ; +0x10, 0x10020bf70\njz      short loc_10020BF84                                            ; +0x13, 0x10020bf73\nmov     esi, [rbx+2E0h]                                                ; +0x15, 0x10020bf75\ntest    esi, esi                                                       ; +0x1b, 0x10020bf7b\njle     short loc_10020BF84                                            ; +0x1d, 0x10020bf7d\nmov     rax, [rdi]                                                     ; +0x1f, 0x10020bf7f\ncall    qword ptr [rax]                                                ; +0x22, 0x10020bf82\nmov     rax, [rbx]                                                     ; +0x24, 0x10020bf84\nmov     rdi, rbx                                                       ; +0x27, 0x10020bf87\nxor     esi, esi                                                       ; +0x2a, 0x10020bf8a\ncall    qword ptr [rax+420h]                                           ; +0x2c, 0x10020bf8c\nmov     rax, [rbx]                                                     ; +0x32, 0x10020bf92\nmov     rax, [rax+200h]                                                ; +0x35, 0x10020bf95\nmov     rdi, rbx                                                       ; +0x3c, 0x10020bf9c\nmov     esi, 1                                                         ; +0x3f, 0x10020bf9f\nadd     rsp, 8                                                         ; +0x44, 0x10020bfa4\npop     rbx                                                            ; +0x48, 0x10020bfa8\npop     rbp                                                            ; +0x49, 0x10020bfa9\njmp     rax                                                            ; +0x4a, 0x10020bfaa", "xrefs": ["GJColorSetupLayer::init @ 0x10020bb66"], "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"}