{"type": "func", "start": 10940464, "end": 10940796, "name": "DailyLevelNode::onClaimReward", "pseudocode": "// \n// DailyLevelNode::onClaimReward from 0xa6f030 to 0xa6f17c (332 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xf8920\n// > DailyLevelNode::init @ 0xa6e7f8\n// > <???> @ 0x15478c8\n// \n// This function is hookable on this platform (idp: arm, 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 13:00:22 +0000\n// \n\n__int64 __fastcall DailyLevelNode::onClaimReward(DailyLevelNode *this, cocos2d::CCObject *a2)\n{\n  __int64 v5; // x1\n  int *v6; // x23\n  __int64 v7; // x0\n  FMODAudioEngine *v8; // x0\n  __int64 v9; // x22\n  GJGameLevel *v10; // [xsp+40h] [xbp+40h]\n  __int64 v11; // [xsp+58h] [xbp+58h] BYREF\n  __int64 v12[2]; // [xsp+60h] [xbp+60h] BYREF\n  void *v13; // [xsp+70h] [xbp+70h]\n\n  if ( !*((_BYTE *)this + 368) )\n  {\n    v5 = *(_QWORD *)this;\n    *((_BYTE *)this + 368) = 1;\n    v10 = *((GJGameLevel **)this + 41);\n    v6 = *((int **)this + 42);\n    v7 = (*(__int64 (**)(void))(v5 + 192))();\n    cocos2d::CCPoint::operator+(&v11, v7);\n    DailyLevelPage::claimLevelReward(v6, this, v10, (const cocos2d::CCPoint *)&v11);\n    v8 = (FMODAudioEngine *)*(unsigned int *)(*((_QWORD *)this + 42) + 732LL);\n    if ( (_DWORD)v8 != 1 )\n    {\n      v9 = FMODAudioEngine::sharedEngine(v8);\n      v12[0] = 0;\n      v12[1] = 0;\n      v13 = nullptr;\n      std::string::__init(v12, \"gold02.ogg\", 0xAu);\n      FMODAudioEngine::playEffect(v9, (char *)v12);\n      if ( (v12[0] & 1) != 0 )\n        operator delete(v13);\n    }\n    (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)a2 + 344LL))(a2, 0);\n    (*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)a2 + 1056LL))(a2, 0);\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; DailyLevelNode::onClaimReward from 0xa6f030 to 0xa6f17c (332 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xf8920\n; > DailyLevelNode::init @ 0xa6e7f8\n; > <???> @ 0x15478c8\n; \n; This function is hookable on this platform (idp: arm, 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 13:00:22 +0000\n; \nSTP             X29, X30, [SP,#var_80]!                                ; +0x0, 0xa6f030\nMOV             X29, SP                                                ; +0x4, 0xa6f034\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0x8, 0xa6f038\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xa6f03c\nSTR             X23, [SP,#0x80+var_50]                                 ; +0x10, 0xa6f040\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x14, 0xa6f044\nMOV             X21, X1                                                ; +0x18, 0xa6f048\nMOV             X20, X0                                                ; +0x1c, 0xa6f04c\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0xa6f050\nLDRB            W1, [X0,#0x170]                                        ; +0x24, 0xa6f054\nLDR             X2, [X2]                                               ; +0x28, 0xa6f058\nSTR             X2, [X29,#0x80+var_8]                                  ; +0x2c, 0xa6f05c\nCBZ             W1, loc_A6F08C                                         ; +0x30, 0xa6f060\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x34, 0xa6f064\nLDR             X1, [X29,#0x80+var_8]                                  ; +0x38, 0xa6f068\nLDR             X0, [X19]                                              ; +0x3c, 0xa6f06c\nCMP             X1, X0                                                 ; +0x40, 0xa6f070\nB.NE            loc_A6F15C                                             ; +0x44, 0xa6f074\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x48, 0xa6f078\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x4c, 0xa6f07c\nLDR             X23, [SP,#0x80+var_50]                                 ; +0x50, 0xa6f080\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x54, 0xa6f084\nRET                                                                    ; +0x58, 0xa6f088\nLDR             X1, [X0]                                               ; +0x5c, 0xa6f08c\nMOV             W2, #1                                                 ; +0x60, 0xa6f090\nSTRB            W2, [X0,#0x170]                                        ; +0x64, 0xa6f094\nADD             X22, X29, #0x80+var_28                                 ; +0x68, 0xa6f098\nLDR             X2, [X0,#0x148]                                        ; +0x6c, 0xa6f09c\nLDR             X1, [X1,#0xC0]                                         ; +0x70, 0xa6f0a0\nSTR             X2, [X29,#0x80+var_40]                                 ; +0x74, 0xa6f0a4\nLDR             X23, [X0,#0x150]                                       ; +0x78, 0xa6f0a8\nBLR             X1                                                     ; +0x7c, 0xa6f0ac\nSTR             X22, [X29,#0x80+var_38]                                ; +0x80, 0xa6f0b0\nMOV             X8, X22                                                ; +0x84, 0xa6f0b4\nADD             X1, X20, #0x160                                        ; +0x88, 0xa6f0b8\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x8c, 0xa6f0bc\nLDR             X2, [X29,#0x80+var_40]                                 ; +0x90, 0xa6f0c0\nMOV             X0, X23                                                ; +0x94, 0xa6f0c4\nLDR             X3, [X29,#0x80+var_38]                                 ; +0x98, 0xa6f0c8\nMOV             X1, X20                                                ; +0x9c, 0xa6f0cc\nBL              _ZN14DailyLevelPage16claimLevelRewardEP14DailyLevelNodeP11GJGameLevelN7cocos2d7CCPointE; DailyLevelPage::claimLevelReward(DailyLevelNode *,GJGameLevel *,cocos2d::CCPoint) ; +0xa0, 0xa6f0d0\nLDR             X0, [X20,#0x150]                                       ; +0xa4, 0xa6f0d4\nLDR             W0, [X0,#0x2DC]; this                                  ; +0xa8, 0xa6f0d8\nCMP             W0, #1                                                 ; +0xac, 0xa6f0dc\nB.EQ            loc_A6F124                                             ; +0xb0, 0xa6f0e0\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0xb4, 0xa6f0e4\nADD             X20, X29, #0x80+var_20                                 ; +0xb8, 0xa6f0e8\nADRP            X1, #aGold02Ogg@PAGE; \"gold02.ogg\"                     ; +0xbc, 0xa6f0ec\nMOV             X22, X0                                                ; +0xc0, 0xa6f0f0\nADD             X1, X1, #aGold02Ogg@PAGEOFF; \"gold02.ogg\"              ; +0xc4, 0xa6f0f4\nMOV             X0, X20                                                ; +0xc8, 0xa6f0f8\nMOV             X2, #0xA                                               ; +0xcc, 0xa6f0fc\nSTR             XZR, [X29,#0x80+var_20]                                ; +0xd0, 0xa6f100\nSTR             XZR, [X29,#0x80+var_18]                                ; +0xd4, 0xa6f104\nSTR             XZR, [X29,#0x80+var_10]                                ; +0xd8, 0xa6f108\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm; std::string::__init(char const*,ulong) ; +0xdc, 0xa6f10c\nMOV             X0, X22                                                ; +0xe0, 0xa6f110\nMOV             X1, X20                                                ; +0xe4, 0xa6f114\nBL              _ZN15FMODAudioEngine10playEffectENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; FMODAudioEngine::playEffect(std::string) ; +0xe8, 0xa6f118\nLDRB            W0, [X29,#0x80+var_20]                                 ; +0xec, 0xa6f11c\nTBNZ            W0, #0, loc_A6F150                                     ; +0xf0, 0xa6f120\nLDR             X2, [X21]                                              ; +0xf4, 0xa6f124\nMOV             X0, X21                                                ; +0xf8, 0xa6f128\nMOV             W1, #0                                                 ; +0xfc, 0xa6f12c\nLDR             X2, [X2,#0x158]                                        ; +0x100, 0xa6f130\nBLR             X2                                                     ; +0x104, 0xa6f134\nLDR             X2, [X21]                                              ; +0x108, 0xa6f138\nMOV             X0, X21                                                ; +0x10c, 0xa6f13c\nMOV             W1, #0                                                 ; +0x110, 0xa6f140\nLDR             X2, [X2,#0x420]                                        ; +0x114, 0xa6f144\nBLR             X2                                                     ; +0x118, 0xa6f148\nB               loc_A6F064                                             ; +0x11c, 0xa6f14c\nLDR             X0, [X29,#0x80+var_10]; void *                         ; +0x120, 0xa6f150\nBL              _ZdlPv; operator delete(void *)                        ; +0x124, 0xa6f154\nB               loc_A6F124                                             ; +0x128, 0xa6f158\nBL              .__stack_chk_fail                                      ; +0x12c, 0xa6f15c\nLDRB            W1, [X29,#0x80+var_20]                                 ; +0x130, 0xa6f160\nMOV             X19, X0                                                ; +0x134, 0xa6f164\nTBZ             W1, #0, loc_A6F174                                     ; +0x138, 0xa6f168\nLDR             X0, [X29,#0x80+var_10]; void *                         ; +0x13c, 0xa6f16c\nBL              _ZdlPv; operator delete(void *)                        ; +0x140, 0xa6f170\nMOV             X0, X19                                                ; +0x144, 0xa6f174\nBL              _Unwind_Resume                                         ; +0x148, 0xa6f178", "xrefs": ["<???> @ 0xf8920", "DailyLevelNode::init @ 0xa6e7f8", "<???> @ 0x15478c8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}