{"type": "func", "start": 6294448, "end": 6294610, "name": "ChallengeNode::onClaimReward", "pseudocode": "// \n// ChallengeNode::onClaimReward from 0x600bb0 to 0x600c52 (162 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:40 +0000\n// \n\nint __fastcall ChallengeNode::onClaimReward(ChallengeNode *this, cocos2d::CCObject *a2)\n{\n  GameStatsManager *v4; // r9\n  GJChallengeItem *v5; // r8\n  int v6; // r0\n  FMODAudioEngine *v7; // r0\n  int v8; // r0\n  FMODAudioEngine *v9; // r7\n  _BYTE v11[8]; // [sp+8h] [bp+0h] BYREF\n  int v12[3]; // [sp+10h] [bp+8h] BYREF\n\n  v4 = *((GameStatsManager **)this + 66);\n  v5 = *((GJChallengeItem **)this + 67);\n  v6 = (*(int (__fastcall **)(ChallengeNode *))(*(_DWORD *)this + 96))(this);\n  cocos2d::CCPoint::operator+(v11, v6, (char *)this + 272);\n  v7 = ChallengesPage::claimItem(v4, (int)this, v5, (const cocos2d::CCPoint *)v11);\n  v8 = FMODAudioEngine::sharedEngine(v7);\n  memset(v12, 0, sizeof(v12));\n  v9 = (FMODAudioEngine *)v8;\n  std::string::__init(v12, \"gold02.ogg\", 0xAu);\n  FMODAudioEngine::playUIEffect(v9, (int)v12, 1065353216, 0, 1065353216);\n  std::string::~string((int)v12);\n  (*(void (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)a2 + 172))(a2, 0);\n  return (*(int (__fastcall **)(cocos2d::CCObject *, _DWORD))(*(_DWORD *)a2 + 528))(a2, 0);\n}", "assembly": "; \n; ChallengeNode::onClaimReward from 0x600bb0 to 0x600c52 (162 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:40 +0000\n; \nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x600bb0\nSUB             SP, SP, #0x24                                          ; +0x4, 0x600bb4\nLDR             R5, =(__stack_chk_guard_ptr - 0x600BC4)                ; +0x6, 0x600bb6\nMOV             R4, R0                                                 ; +0x8, 0x600bb8\nMOV             R6, R1                                                 ; +0xa, 0x600bba\nLDR.W           R9, [R0,#0x108]                                        ; +0xc, 0x600bbc\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x10, 0x600bc0\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x12, 0x600bc2\nLDR.W           R8, [R0,#0x10C]                                        ; +0x14, 0x600bc4\nADD             R7, SP, #8                                             ; +0x18, 0x600bc8\nLDR             R3, [R5]                                               ; +0x1a, 0x600bca\nSTR             R3, [SP,#0x24+var_8]                                   ; +0x1c, 0x600bcc\nLDR             R3, [R0]                                               ; +0x1e, 0x600bce\nLDR             R3, [R3,#0x60]                                         ; +0x20, 0x600bd0\nBLX             R3                                                     ; +0x22, 0x600bd2\nADD.W           R2, R4, #0x110                                         ; +0x24, 0x600bd4\nMOV             R1, R0                                                 ; +0x28, 0x600bd8\nMOV             R0, R7                                                 ; +0x2a, 0x600bda\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x2c, 0x600bdc\nMOV             R1, R4                                                 ; +0x30, 0x600be0\nMOV             R3, R7                                                 ; +0x32, 0x600be2\nMOV             R2, R8                                                 ; +0x34, 0x600be4\nMOV             R0, R9                                                 ; +0x36, 0x600be6\nADD             R4, SP, #0x24+var_14                                   ; +0x38, 0x600be8\nBL              _ZN14ChallengesPage9claimItemEP13ChallengeNodeP15GJChallengeItemN7cocos2d7CCPointE; ChallengesPage::claimItem(ChallengeNode *,GJChallengeItem *,cocos2d::CCPoint) ; +0x3a, 0x600bea\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x3e, 0x600bee\nLDR             R1, =(aGold02Ogg - 0x600BFC); \"gold02.ogg\"             ; +0x42, 0x600bf2\nMOVS            R2, #0xA                                               ; +0x44, 0x600bf4\nMOVS            R3, #0                                                 ; +0x46, 0x600bf6\nADD             R1, PC; \"gold02.ogg\"                                   ; +0x48, 0x600bf8\nSTR             R3, [SP,#0x24+var_14]                                  ; +0x4a, 0x600bfa\nSTR             R3, [SP,#0x24+var_10]                                  ; +0x4c, 0x600bfc\nSTR             R3, [SP,#0x24+var_C]                                   ; +0x4e, 0x600bfe\nMOV             R7, R0                                                 ; +0x50, 0x600c00\nMOV             R0, R4                                                 ; +0x52, 0x600c02\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0x54, 0x600c04\nMOV.W           R2, #0x3F800000; int                                   ; +0x58, 0x600c08\nMOV             R0, R7; int                                            ; +0x5c, 0x600c0c\nSTR             R2, [SP,#0x24+var_24]; float                           ; +0x5e, 0x600c0e\nMOV             R1, R4; int                                            ; +0x60, 0x600c10\nMOVS            R3, #0; int                                            ; +0x62, 0x600c12\nBL              _ZN15FMODAudioEngine12playUIEffectENSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEfff; FMODAudioEngine::playUIEffect(std::string,float,float,float) ; +0x64, 0x600c14\nMOV             R0, R4                                                 ; +0x68, 0x600c18\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x6a, 0x600c1a\nLDR             R3, [R6]                                               ; +0x6e, 0x600c1e\nMOV             R0, R6                                                 ; +0x70, 0x600c20\nMOVS            R1, #0                                                 ; +0x72, 0x600c22\nLDR.W           R3, [R3,#0xAC]                                         ; +0x74, 0x600c24\nBLX             R3                                                     ; +0x78, 0x600c28\nLDR             R3, [R6]                                               ; +0x7a, 0x600c2a\nMOV             R0, R6                                                 ; +0x7c, 0x600c2c\nMOVS            R1, #0                                                 ; +0x7e, 0x600c2e\nLDR.W           R3, [R3,#0x210]                                        ; +0x80, 0x600c30\nBLX             R3                                                     ; +0x84, 0x600c34\nLDR             R2, [SP,#0x24+var_8]                                   ; +0x86, 0x600c36\nLDR             R3, [R5]                                               ; +0x88, 0x600c38\nCMP             R2, R3                                                 ; +0x8a, 0x600c3a\nBEQ             loc_600C4C                                             ; +0x8c, 0x600c3c\nBLX             __stack_chk_fail                                       ; +0x8e, 0x600c3e\nMOV             R0, R4                                                 ; +0x92, 0x600c42\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x94, 0x600c44\nBL              __cxa_end_cleanup                                      ; +0x98, 0x600c48\nADD             SP, SP, #0x24 ; '$'                                    ; +0x9c, 0x600c4c\nPOP.W           {R4-R9,PC}                                             ; +0x9e, 0x600c4e", "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"}