{"type": "func", "start": 5068752, "end": 5068926, "name": "DailyLevelNode::onClaimReward", "pseudocode": "// \n// DailyLevelNode::onClaimReward from 0x4d57d0 to 0x4d587e (174 bytes)\n// \n// 0 xrefs:\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 DailyLevelNode::onClaimReward(DailyLevelNode *a1, cocos2d::CCObject *a2)\n{\n  DailyLevelPage *m_page; // r9\n  GJGameLevel *m_level; // r8\n  const cocos2d::CCPoint *v6; // r0\n  FMODAudioEngine *v7; // r4\n  int v8; // r2\n  int v9; // r3\n  float v10; // [sp+0h] [bp-14h]\n  _BYTE v11[8]; // [sp+4h] [bp-10h] BYREF\n  cocos2d::CCPoint v12; // 0:kr00_8.8\n\n  if ( !a1->m_unkBool )\n  {\n    a1->m_unkBool = 1;\n    m_page = a1->m_page;\n    m_level = a1->m_level;\n    v6 = a1->getPosition(a1);\n    cocos2d::CCPoint::operator+(v11, v6, &a1->m_unkPoint);\n    LODWORD(v12.x) = v11;\n    v12.y = v10;\n    DailyLevelPage::claimLevelReward(m_page, a1, m_level, v12);\n    if ( a1->m_page->m_type != 1 )\n    {\n      v7 = FMODAudioEngine::sharedEngine();\n      sub_776584((int)v11, \"gold02.ogg\");\n      FMODAudioEngine::playEffect(v7, (int)v11, v8, v9);\n      sub_774008(v11);\n    }\n    ((void (__fastcall *)(cocos2d::CCObject *, _DWORD))a2->__vftable[4].~CCObject)(a2, 0);\n    a2->__vftable[13].copyWithZone(a2, nullptr);\n  }\n}", "assembly": "; \n; DailyLevelNode::onClaimReward from 0x4d57d0 to 0x4d587e (174 bytes)\n; \n; 0 xrefs:\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x4D57DA)                ; +0x0, 0x4d57d0\nPUSH.W          {R4-R9,LR}                                             ; +0x2, 0x4d57d2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x4d57d6\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x4d57d8\nSUB             SP, SP, #0x14                                          ; +0xa, 0x4d57da\nMOV             R4, R0                                                 ; +0xc, 0x4d57dc\nLDR             R2, [R3]                                               ; +0xe, 0x4d57de\nMOV             R7, R1                                                 ; +0x10, 0x4d57e0\nMOV             R6, R3                                                 ; +0x12, 0x4d57e2\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x14, 0x4d57e4\nLDRB.W          R2, [R0,#0x124]                                        ; +0x16, 0x4d57e6\nCMP             R2, #0                                                 ; +0x1a, 0x4d57ea\nBNE             loc_4D586C                                             ; +0x1c, 0x4d57ec\nMOVS            R3, #1                                                 ; +0x1e, 0x4d57ee\nSTRB.W          R3, [R0,#0x124]                                        ; +0x20, 0x4d57f0\nLDR             R3, [R0]                                               ; +0x24, 0x4d57f4\nADD             R5, SP, #0x14+var_10                                   ; +0x26, 0x4d57f6\nLDR.W           R9, [R0,#0x110]                                        ; +0x28, 0x4d57f8\nLDR.W           R8, [R0,#0x10C]                                        ; +0x2c, 0x4d57fc\nLDR             R3, [R3,#0x60]                                         ; +0x30, 0x4d5800\nBLX             R3                                                     ; +0x32, 0x4d5802\nADD.W           R2, R4, #0x118                                         ; +0x34, 0x4d5804\nMOV             R1, R0                                                 ; +0x38, 0x4d5808\nMOV             R0, R5                                                 ; +0x3a, 0x4d580a\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x3c, 0x4d580c\nMOV             R3, R5                                                 ; +0x40, 0x4d5810\nMOV             R0, R9                                                 ; +0x42, 0x4d5812\nMOV             R1, R4                                                 ; +0x44, 0x4d5814\nMOV             R2, R8                                                 ; +0x46, 0x4d5816\nBL              _ZN14DailyLevelPage16claimLevelRewardEP14DailyLevelNodeP11GJGameLevelN7cocos2d7CCPointE; DailyLevelPage::claimLevelReward(DailyLevelNode *,GJGameLevel *,cocos2d::CCPoint) ; +0x48, 0x4d5818\nLDR.W           R3, [R4,#0x110]                                        ; +0x4c, 0x4d581c\nLDR.W           R3, [R3,#0x214]                                        ; +0x50, 0x4d5820\nCMP             R3, #1                                                 ; +0x54, 0x4d5824\nBEQ             loc_4D5848                                             ; +0x56, 0x4d5826\nBL              _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x58, 0x4d5828\nLDR             R1, =(aGold02Ogg - 0x4D5834); \"gold02.ogg\"             ; +0x5c, 0x4d582c\nMOV             R2, SP                                                 ; +0x5e, 0x4d582e\nADD             R1, PC; \"gold02.ogg\"                                   ; +0x60, 0x4d5830\nMOV             R4, R0                                                 ; +0x62, 0x4d5832\nMOV             R0, R5; int                                            ; +0x64, 0x4d5834\nBL              sub_776584                                             ; +0x66, 0x4d5836\nMOV             R0, R4                                                 ; +0x6a, 0x4d583a\nMOV             R1, R5                                                 ; +0x6c, 0x4d583c\nBL              _ZN15FMODAudioEngine10playEffectESs; FMODAudioEngine::playEffect(std::string) ; +0x6e, 0x4d583e\nMOV             R0, R5                                                 ; +0x72, 0x4d5842\nBL              sub_774008                                             ; +0x74, 0x4d5844\nLDR             R3, [R7]                                               ; +0x78, 0x4d5848\nMOV             R0, R7                                                 ; +0x7a, 0x4d584a\nMOVS            R1, #0                                                 ; +0x7c, 0x4d584c\nLDR.W           R3, [R3,#0xA4]                                         ; +0x7e, 0x4d584e\nBLX             R3                                                     ; +0x82, 0x4d5852\nLDR             R3, [R7]                                               ; +0x84, 0x4d5854\nMOV             R0, R7                                                 ; +0x86, 0x4d5856\nMOVS            R1, #0                                                 ; +0x88, 0x4d5858\nLDR.W           R3, [R3,#0x208]                                        ; +0x8a, 0x4d585a\nBLX             R3                                                     ; +0x8e, 0x4d585e\nB               loc_4D586C                                             ; +0x90, 0x4d5860\nMOV             R0, R5                                                 ; +0x92, 0x4d5862\nBL              sub_774008                                             ; +0x94, 0x4d5864\nBL              __cxa_end_cleanup                                      ; +0x98, 0x4d5868\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x9c, 0x4d586c\nLDR             R3, [R6]                                               ; +0x9e, 0x4d586e\nCMP             R2, R3                                                 ; +0xa0, 0x4d5870\nBEQ             loc_4D5878                                             ; +0xa2, 0x4d5872\nBLX             __stack_chk_fail                                       ; +0xa4, 0x4d5874\nADD             SP, SP, #0x14                                          ; +0xa8, 0x4d5878\nPOP.W           {R4-R9,PC}                                             ; +0xaa, 0x4d587a", "xrefs": [], "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"}