{"type": "func", "start": 4298039536, "end": 4298039828, "name": "GJPathRewardPopup::onClaim", "pseudocode": "// \n// GJPathRewardPopup::onClaim from 0x1002ee0f0 to 0x1002ee214 (292 bytes)\n// \n// 1 xrefs:\n// > GJPathRewardPopup::init @ 0x1002edd20\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:28:24 +0000\n// \n\n__int64 __fastcall GJPathRewardPopup::onClaim(unsigned int *a1, __m128 a2)\n{\n  __int64 v3; // rax\n  __int64 v4; // rsi\n  __int64 v5; // rdi\n  __int64 v6; // rax\n  __int64 v7; // r14\n  __int64 v8; // rax\n  int v9; // r15d\n  int v10; // eax\n  int v11; // ecx\n  int v12; // r8d\n  int v13; // r9d\n  __int64 v14; // rax\n  char *v15; // r15\n  __int64 v16; // r12\n  int v17; // eax\n  __int64 v19; // rax\n  __int64 v20; // rax\n\n  v3 = GameStatsManager::sharedState();\n  v4 = a1[165];\n  v5 = v3;\n  v6 = GameStatsManager::unlockPathChest(v3, v4, a2);\n  if ( v6 )\n  {\n    v7 = v6;\n    v8 = cocos2d::CCFadeTo::create(0, 0.2);\n    cocos2d::CCNode::runAction((__int64)a1, v8);\n    v9 = cocos2d::CCDelayTime::create(0.2);\n    v10 = cocos2d::CCCallFunc::create(a1, GJPathRewardPopup::closePopup, 0);\n    v14 = sub_10039EB60(v9, v10, 0, v11, v12, v13);\n    cocos2d::CCNode::runAction((__int64)a1, v14);\n    v15 = RewardUnlockLayer::create(*(_DWORD *)(v7 + 64), 0);\n    v16 = (*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)a1 + 512LL))(a1);\n    v17 = (*(__int64 (__fastcall **)(unsigned int *))(*(_QWORD *)a1 + 104LL))(a1);\n    (*(void (__fastcall **)(__int64, char *, _QWORD))(*(_QWORD *)v16 + 464LL))(v16, v15, (unsigned int)(v17 + 1));\n    return RewardUnlockLayer::showCollectReward((__int64)v15, v7);\n  }\n  else\n  {\n    v19 = cocos2d::CCDirector::sharedDirector(v5, v4);\n    v20 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v19 + 160LL))(v19);\n    cocos2d::CCTouchDispatcher::unregisterForcePrio(v20, a1);\n    cocos2d::CCNode::stopAllActions((__int64)a1);\n    cocos2d::CCNode::unscheduleAllSelectors((__int64)a1);\n    (*(void (__fastcall **)(unsigned int *, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);\n    return (*(__int64 (__fastcall **)(unsigned int *, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);\n  }\n}", "assembly": "; \n; GJPathRewardPopup::onClaim from 0x1002ee0f0 to 0x1002ee214 (292 bytes)\n; \n; 1 xrefs:\n; > GJPathRewardPopup::init @ 0x1002edd20\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:28:24 +0000\n; \npush    rbp                                                            ; +0x0, 0x1002ee0f0\nmov     rbp, rsp                                                       ; +0x1, 0x1002ee0f1\npush    r15                                                            ; +0x4, 0x1002ee0f4\npush    r14                                                            ; +0x6, 0x1002ee0f6\npush    r12                                                            ; +0x8, 0x1002ee0f8\npush    rbx                                                            ; +0xa, 0x1002ee0fa\nmov     rbx, rdi                                                       ; +0xb, 0x1002ee0fb\ncall    GameStatsManager__sharedState                                  ; +0xe, 0x1002ee0fe\nmov     esi, [rbx+294h]                                                ; +0x13, 0x1002ee103\nmov     rdi, rax                                                       ; +0x19, 0x1002ee109\ncall    GameStatsManager__unlockPathChest                              ; +0x1c, 0x1002ee10c\ntest    rax, rax                                                       ; +0x21, 0x1002ee111\njz      loc_1002EE1BE                                                  ; +0x24, 0x1002ee114\nmov     r14, rax                                                       ; +0x2a, 0x1002ee11a\nmovss   xmm0, cs:dword_100A03850                                       ; +0x2d, 0x1002ee11d\nxor     edi, edi                                                       ; +0x35, 0x1002ee125\ncall    cocos2d__CCFadeTo__create                                      ; +0x37, 0x1002ee127\nmov     rdi, rbx                                                       ; +0x3c, 0x1002ee12c\nmov     rsi, rax                                                       ; +0x3f, 0x1002ee12f\ncall    cocos2d__CCNode__runAction                                     ; +0x42, 0x1002ee132\nmovss   xmm0, cs:dword_100A03850                                       ; +0x47, 0x1002ee137\ncall    cocos2d__CCDelayTime__create                                   ; +0x4f, 0x1002ee13f\nmov     r15, rax                                                       ; +0x54, 0x1002ee144\nlea     rsi, GJPathRewardPopup__closePopup                             ; +0x57, 0x1002ee147\nmov     rdi, rbx                                                       ; +0x5e, 0x1002ee14e\nxor     edx, edx                                                       ; +0x61, 0x1002ee151\ncall    cocos2d__CCCallFunc__create                                    ; +0x63, 0x1002ee153\nmov     rdi, r15                                                       ; +0x68, 0x1002ee158\nmov     rsi, rax                                                       ; +0x6b, 0x1002ee15b\nxor     edx, edx                                                       ; +0x6e, 0x1002ee15e\nxor     eax, eax                                                       ; +0x70, 0x1002ee160\ncall    sub_10039EB60                                                  ; +0x72, 0x1002ee162\nmov     rdi, rbx                                                       ; +0x77, 0x1002ee167\nmov     rsi, rax                                                       ; +0x7a, 0x1002ee16a\ncall    cocos2d__CCNode__runAction                                     ; +0x7d, 0x1002ee16d\nmov     edi, [r14+40h]                                                 ; +0x82, 0x1002ee172\nxor     esi, esi                                                       ; +0x86, 0x1002ee176\ncall    RewardUnlockLayer__create                                      ; +0x88, 0x1002ee178\nmov     r15, rax                                                       ; +0x8d, 0x1002ee17d\nmov     rax, [rbx]                                                     ; +0x90, 0x1002ee180\nmov     rdi, rbx                                                       ; +0x93, 0x1002ee183\ncall    qword ptr [rax+200h]                                           ; +0x96, 0x1002ee186\nmov     r12, rax                                                       ; +0x9c, 0x1002ee18c\nmov     rax, [rbx]                                                     ; +0x9f, 0x1002ee18f\nmov     rdi, rbx                                                       ; +0xa2, 0x1002ee192\ncall    qword ptr [rax+68h]                                            ; +0xa5, 0x1002ee195\nlea     edx, [rax+1]                                                   ; +0xa8, 0x1002ee198\nmov     rax, [r12]                                                     ; +0xab, 0x1002ee19b\nmov     rdi, r12                                                       ; +0xaf, 0x1002ee19f\nmov     rsi, r15                                                       ; +0xb2, 0x1002ee1a2\ncall    qword ptr [rax+1D0h]                                           ; +0xb5, 0x1002ee1a5\nmov     rdi, r15                                                       ; +0xbb, 0x1002ee1ab\nmov     rsi, r14                                                       ; +0xbe, 0x1002ee1ae\npop     rbx                                                            ; +0xc1, 0x1002ee1b1\npop     r12                                                            ; +0xc2, 0x1002ee1b2\npop     r14                                                            ; +0xc4, 0x1002ee1b4\npop     r15                                                            ; +0xc6, 0x1002ee1b6\npop     rbp                                                            ; +0xc8, 0x1002ee1b8\njmp     RewardUnlockLayer__showCollectReward                           ; +0xc9, 0x1002ee1b9\ncall    cocos2d__CCDirector__sharedDirector                            ; +0xce, 0x1002ee1be\nmov     rcx, [rax]                                                     ; +0xd3, 0x1002ee1c3\nmov     rdi, rax                                                       ; +0xd6, 0x1002ee1c6\ncall    qword ptr [rcx+0A0h]                                           ; +0xd9, 0x1002ee1c9\nmov     rdi, rax                                                       ; +0xdf, 0x1002ee1cf\nmov     rsi, rbx                                                       ; +0xe2, 0x1002ee1d2\ncall    cocos2d__CCTouchDispatcher__unregisterForcePrio                ; +0xe5, 0x1002ee1d5\nmov     rdi, rbx                                                       ; +0xea, 0x1002ee1da\ncall    cocos2d__CCNode__stopAllActions                                ; +0xed, 0x1002ee1dd\nmov     rdi, rbx                                                       ; +0xf2, 0x1002ee1e2\ncall    cocos2d__CCNode__unscheduleAllSelectors                        ; +0xf5, 0x1002ee1e5\nmov     rax, [rbx]                                                     ; +0xfa, 0x1002ee1ea\nmov     rdi, rbx                                                       ; +0xfd, 0x1002ee1ed\nxor     esi, esi                                                       ; +0x100, 0x1002ee1f0\ncall    qword ptr [rax+430h]                                           ; +0x102, 0x1002ee1f2\nmov     rax, [rbx]                                                     ; +0x108, 0x1002ee1f8\nmov     rax, [rax+210h]                                                ; +0x10b, 0x1002ee1fb\nmov     rdi, rbx                                                       ; +0x112, 0x1002ee202\nmov     esi, 1                                                         ; +0x115, 0x1002ee205\npop     rbx                                                            ; +0x11a, 0x1002ee20a\npop     r12                                                            ; +0x11b, 0x1002ee20b\npop     r14                                                            ; +0x11d, 0x1002ee20d\npop     r15                                                            ; +0x11f, 0x1002ee20f\npop     rbp                                                            ; +0x121, 0x1002ee211\njmp     rax                                                            ; +0x122, 0x1002ee212", "xrefs": ["GJPathRewardPopup::init @ 0x1002edd20"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}