{"type": "func", "start": 5372712336, "end": 5372712408, "name": "RewardUnlockLayer::onClose", "pseudocode": "// \n// RewardUnlockLayer::onClose from 0x1403d1590 to 0x1403d15d8 (72 bytes)\n// \n// 2 xrefs:\n// > RewardUnlockLayer::init @ 0x1403ce7ad\n// > <???> @ 0x1406d7c64\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 RewardUnlockLayer::onClose(RewardUnlockLayer *a1, cocos2d::CCObject *a2)\n{\n  RewardsPage *m_rewardsPage; // rax\n  _BOOL8 v4; // rdx\n\n  m_rewardsPage = a1->m_rewardsPage;\n  if ( m_rewardsPage && m_rewardsPage->m_openLayer == a1 )\n    m_rewardsPage->m_openLayer = nullptr;\n  a1->setKeypadEnabled(a1, 0);\n  LOBYTE(v4) = 1;\n  a1->removeFromParentAndCleanup(a1, v4);\n}", "assembly": "; \n; RewardUnlockLayer::onClose from 0x1403d1590 to 0x1403d15d8 (72 bytes)\n; \n; 2 xrefs:\n; > RewardUnlockLayer::init @ 0x1403ce7ad\n; > <???> @ 0x1406d7c64\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, 0x1403d1590\nsub     rsp, 20h                                                       ; +0x2, 0x1403d1592\nmov     rax, [rcx+288h]                                                ; +0x6, 0x1403d1596\nmov     rbx, rcx                                                       ; +0xd, 0x1403d159d\ntest    rax, rax                                                       ; +0x10, 0x1403d15a0\njz      short loc_1403D15B9                                            ; +0x13, 0x1403d15a3\ncmp     [rax+2B0h], rcx                                                ; +0x15, 0x1403d15a5\njnz     short loc_1403D15B9                                            ; +0x1c, 0x1403d15ac\nmov     qword ptr [rax+2B0h], 0                                        ; +0x1e, 0x1403d15ae\nmov     rax, [rcx]                                                     ; +0x29, 0x1403d15b9\nxor     edx, edx                                                       ; +0x2c, 0x1403d15bc\ncall    qword ptr [rax+3D0h]                                           ; +0x2e, 0x1403d15be\nmov     rax, [rbx]                                                     ; +0x34, 0x1403d15c4\nmov     dl, 1                                                          ; +0x37, 0x1403d15c7\nmov     rcx, rbx                                                       ; +0x39, 0x1403d15c9\nadd     rsp, 20h                                                       ; +0x3c, 0x1403d15cc\npop     rbx                                                            ; +0x40, 0x1403d15d0\njmp     qword ptr [rax+1F8h]                                           ; +0x41, 0x1403d15d1", "xrefs": ["RewardUnlockLayer::init @ 0x1403ce7ad", "<???> @ 0x1406d7c64"], "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"}