{"type": "func", "start": 6327420, "end": 6327600, "name": "DailyLevelNode::onClaimReward", "pseudocode": "// \n// DailyLevelNode::onClaimReward from 0x608c7c to 0x608d30 (180 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:54:46 +0000\n// \n\nint __fastcall DailyLevelNode::onClaimReward(int this, cocos2d::CCObject *a2)\n{\n  int v2; // r5\n  DailyLevelNode *v3; // r4\n  int *v5; // r10\n  GJGameLevel *v6; // r9\n  int v7; // r0\n  int *v8; // r0\n  int v9; // r0\n  FMODAudioEngine *v10; // r8\n  _BYTE v11[8]; // [sp+0h] [bp-18h] BYREF\n  int v12[3]; // [sp+8h] [bp-10h] BYREF\n\n  v2 = *(unsigned __int8 *)(this + 292);\n  v3 = (DailyLevelNode *)this;\n  if ( !*(_BYTE *)(this + 292) )\n  {\n    *(_BYTE *)(this + 292) = 1;\n    v5 = *(int **)(this + 272);\n    v6 = *(GJGameLevel **)(this + 268);\n    v7 = (*(int (__fastcall **)(int))(*(_DWORD *)this + 96))(this);\n    cocos2d::CCPoint::operator+(v11, v7, (char *)v3 + 280);\n    v8 = DailyLevelPage::claimLevelReward(v5, v3, v6, (const cocos2d::CCPoint *)v11);\n    if ( *(_DWORD *)(*((_DWORD *)v3 + 68) + 556) != 1 )\n    {\n      v9 = FMODAudioEngine::sharedEngine((FMODAudioEngine *)v8);\n      v12[0] = v2;\n      v12[1] = v2;\n      v12[2] = v2;\n      v10 = (FMODAudioEngine *)v9;\n      std::string::__init(v12, \"gold02.ogg\", 0xAu);\n      FMODAudioEngine::playEffect(v10, (int)v12);\n      std::string::~string((int)v12);\n    }\n    (*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)a2 + 172))(a2, 0);\n    return (*(int (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)a2 + 528))(a2, 0);\n  }\n  return this;\n}", "assembly": "; \n; DailyLevelNode::onClaimReward from 0x608c7c to 0x608d30 (180 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:54:46 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x608C86)                ; +0x0, 0x608c7c\nPUSH.W          {R4-R10,LR}                                            ; +0x2, 0x608c7e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x608c82\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x608c84\nLDRB.W          R5, [R0,#0x124]                                        ; +0xa, 0x608c86\nSUB             SP, SP, #0x18                                          ; +0xe, 0x608c8a\nLDR             R2, [R3]                                               ; +0x10, 0x608c8c\nMOV             R4, R0                                                 ; +0x12, 0x608c8e\nMOV             R7, R1                                                 ; +0x14, 0x608c90\nMOV             R6, R3                                                 ; +0x16, 0x608c92\nSTR             R2, [SP,#0x18+var_4]                                   ; +0x18, 0x608c94\nCMP             R5, #0                                                 ; +0x1a, 0x608c96\nBNE             loc_608D1E                                             ; +0x1c, 0x608c98\nMOVS            R3, #1                                                 ; +0x1e, 0x608c9a\nSTRB.W          R3, [R0,#0x124]                                        ; +0x20, 0x608c9c\nLDR             R3, [R0]                                               ; +0x24, 0x608ca0\nLDR.W           R10, [R0,#0x110]                                       ; +0x26, 0x608ca2\nLDR.W           R9, [R0,#0x10C]                                        ; +0x2a, 0x608ca6\nLDR             R3, [R3,#0x60]                                         ; +0x2e, 0x608caa\nBLX             R3                                                     ; +0x30, 0x608cac\nADD.W           R2, R4, #0x118                                         ; +0x32, 0x608cae\nMOV             R1, R0                                                 ; +0x36, 0x608cb2\nMOV             R0, SP                                                 ; +0x38, 0x608cb4\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x3a, 0x608cb6\nMOV             R3, SP                                                 ; +0x3e, 0x608cba\nMOV             R0, R10                                                ; +0x40, 0x608cbc\nMOV             R1, R4                                                 ; +0x42, 0x608cbe\nMOV             R2, R9                                                 ; +0x44, 0x608cc0\nBL              _ZN14DailyLevelPage16claimLevelRewardEP14DailyLevelNodeP11GJGameLevelN7cocos2d7CCPointE; DailyLevelPage::claimLevelReward(DailyLevelNode *,GJGameLevel *,cocos2d::CCPoint) ; +0x46, 0x608cc2\nLDR.W           R3, [R4,#0x110]                                        ; +0x4a, 0x608cc6\nLDR.W           R3, [R3,#0x22C]                                        ; +0x4e, 0x608cca\nCMP             R3, #1                                                 ; +0x52, 0x608cce\nBEQ             loc_608CFA                                             ; +0x54, 0x608cd0\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x56, 0x608cd2\nADD             R4, SP, #0x18+var_10                                   ; +0x5a, 0x608cd6\nLDR             R1, =(aGold02Ogg - 0x608CE2); \"gold02.ogg\"             ; +0x5c, 0x608cd8\nMOVS            R2, #0xA                                               ; +0x5e, 0x608cda\nSTR             R5, [SP,#0x18+var_10]                                  ; +0x60, 0x608cdc\nADD             R1, PC; \"gold02.ogg\"                                   ; +0x62, 0x608cde\nSTR             R5, [SP,#0x18+var_C]                                   ; +0x64, 0x608ce0\nSTR             R5, [SP,#0x18+var_8]                                   ; +0x66, 0x608ce2\nMOV             R8, R0                                                 ; +0x68, 0x608ce4\nMOV             R0, R4                                                 ; +0x6a, 0x608ce6\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x6c, 0x608ce8\nMOV             R0, R8                                                 ; +0x70, 0x608cec\nMOV             R1, R4                                                 ; +0x72, 0x608cee\nBL              _ZN15FMODAudioEngine10playEffectENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; FMODAudioEngine::playEffect(std::string) ; +0x74, 0x608cf0\nMOV             R0, R4                                                 ; +0x78, 0x608cf4\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x7a, 0x608cf6\nLDR             R3, [R7]                                               ; +0x7e, 0x608cfa\nMOV             R0, R7                                                 ; +0x80, 0x608cfc\nMOVS            R1, #0                                                 ; +0x82, 0x608cfe\nLDR.W           R3, [R3,#0xAC]                                         ; +0x84, 0x608d00\nBLX             R3                                                     ; +0x88, 0x608d04\nLDR             R3, [R7]                                               ; +0x8a, 0x608d06\nMOV             R0, R7                                                 ; +0x8c, 0x608d08\nMOVS            R1, #0                                                 ; +0x8e, 0x608d0a\nLDR.W           R3, [R3,#0x210]                                        ; +0x90, 0x608d0c\nBLX             R3                                                     ; +0x94, 0x608d10\nB               loc_608D1E                                             ; +0x96, 0x608d12\nMOV             R0, R4                                                 ; +0x98, 0x608d14\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x9a, 0x608d16\nBL              __cxa_end_cleanup                                      ; +0x9e, 0x608d1a\nLDR             R2, [SP,#0x18+var_4]                                   ; +0xa2, 0x608d1e\nLDR             R3, [R6]                                               ; +0xa4, 0x608d20\nCMP             R2, R3                                                 ; +0xa6, 0x608d22\nBEQ             loc_608D2A                                             ; +0xa8, 0x608d24\nBLX             __stack_chk_fail                                       ; +0xaa, 0x608d26\nADD             SP, SP, #0x18                                          ; +0xae, 0x608d2a\nPOP.W           {R4-R10,PC}                                            ; +0xb0, 0x608d2c", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}