{"type": "func", "start": 4297397840, "end": 4297398060, "name": "DailyLevelNode::onClaimReward", "pseudocode": "// \n// DailyLevelNode::onClaimReward from 0x100251650 to 0x10025172c (220 bytes)\n// \n// 1 xrefs:\n// > DailyLevelNode::init @ 0x100250e5c\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 11:01:31 +0000\n// \n\n__int64 __fastcall DailyLevelNode::onClaimReward(__int64 result, __int64 a2)\n{\n  float32x2_t *v3; // x20\n  int *v4; // x21\n  _DWORD *v5; // x22\n  float32x2_t *v6; // x0\n  __int64 v7; // x20\n  void *__p[2]; // [xsp+0h] [xbp-40h] BYREF\n  char v9; // [xsp+17h] [xbp-29h]\n  float32x2_t v10; // [xsp+18h] [xbp-28h] BYREF\n\n  if ( (*(_BYTE *)(result + 368) & 1) == 0 )\n  {\n    v3 = (float32x2_t *)result;\n    *(_BYTE *)(result + 368) = 1;\n    v5 = *(_DWORD **)(result + 328);\n    v4 = *(int **)(result + 336);\n    v6 = (float32x2_t *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)result + 192LL))(result);\n    sub_100026318(v6, v3 + 44, &v10);\n    DailyLevelPage::claimLevelReward(v4, (__int64)v3, v5, (double *)&v10);\n    if ( *(_DWORD *)(*(_QWORD *)&v3[42] + 732LL) != 1 )\n    {\n      v7 = FMODAudioEngine::sharedEngine();\n      sub_100009900(__p, \"gold02.ogg\");\n      FMODAudioEngine::playEffect_1(v7, (__int64)__p);\n      if ( v9 < 0 )\n        operator delete(__p[0]);\n    }\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a2 + 344LL))(a2, 0);\n    return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a2 + 1056LL))(a2, 0);\n  }\n  return result;\n}", "assembly": "; \n; DailyLevelNode::onClaimReward from 0x100251650 to 0x10025172c (220 bytes)\n; \n; 1 xrefs:\n; > DailyLevelNode::init @ 0x100250e5c\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 11:01:31 +0000\n; \nSUB             SP, SP, #0x50                                          ; +0x0, 0x100251650\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x100251654\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x100251658\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x10025165c\nADD             X29, SP, #0x40                                         ; +0x10, 0x100251660\nLDRB            W8, [X0,#0x170]                                        ; +0x14, 0x100251664\nTBNZ            W8, #0, loc_100251718                                  ; +0x18, 0x100251668\nMOV             X19, X1                                                ; +0x1c, 0x10025166c\nMOV             X20, X0                                                ; +0x20, 0x100251670\nMOV             W8, #1                                                 ; +0x24, 0x100251674\nSTRB            W8, [X0,#0x170]                                        ; +0x28, 0x100251678\nLDP             X22, X21, [X0,#0x148]                                  ; +0x2c, 0x10025167c\nLDR             X8, [X0]                                               ; +0x30, 0x100251680\nLDR             X8, [X8,#0xC0]                                         ; +0x34, 0x100251684\nBLR             X8                                                     ; +0x38, 0x100251688\nADD             X8, SP, #0x40+var_28                                   ; +0x3c, 0x10025168c\nADD             X1, X20, #0x160                                        ; +0x40, 0x100251690\nBL              sub_100026318                                          ; +0x44, 0x100251694\nADD             X3, SP, #0x40+var_28                                   ; +0x48, 0x100251698\nMOV             X0, X21                                                ; +0x4c, 0x10025169c\nMOV             X1, X20                                                ; +0x50, 0x1002516a0\nMOV             X2, X22                                                ; +0x54, 0x1002516a4\nBL              DailyLevelPage__claimLevelReward                       ; +0x58, 0x1002516a8\nLDR             X8, [X20,#0x150]                                       ; +0x5c, 0x1002516ac\nLDR             W8, [X8,#0x2DC]                                        ; +0x60, 0x1002516b0\nCMP             W8, #1                                                 ; +0x64, 0x1002516b4\nB.EQ            loc_1002516F0                                          ; +0x68, 0x1002516b8\nBL              FMODAudioEngine__sharedEngine                          ; +0x6c, 0x1002516bc\nMOV             X20, X0                                                ; +0x70, 0x1002516c0\nADRL            X1, aGold02Ogg; \"gold02.ogg\"                           ; +0x74, 0x1002516c4\nMOV             X0, SP; int                                            ; +0x7c, 0x1002516cc\nBL              sub_100009900                                          ; +0x80, 0x1002516d0\nMOV             X1, SP                                                 ; +0x84, 0x1002516d4\nMOV             X0, X20                                                ; +0x88, 0x1002516d8\nBL              FMODAudioEngine__playEffect_1                          ; +0x8c, 0x1002516dc\nLDRSB           W8, [SP,#0x40+var_29]                                  ; +0x90, 0x1002516e0\nTBZ             W8, #0x1F, loc_1002516F0                               ; +0x94, 0x1002516e4\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x98, 0x1002516e8\nBL              __ZdlPv; operator delete(void *)                       ; +0x9c, 0x1002516ec\nLDR             X8, [X19]                                              ; +0xa0, 0x1002516f0\nLDR             X8, [X8,#0x158]                                        ; +0xa4, 0x1002516f4\nMOV             X0, X19                                                ; +0xa8, 0x1002516f8\nMOV             W1, #0                                                 ; +0xac, 0x1002516fc\nBLR             X8                                                     ; +0xb0, 0x100251700\nLDR             X8, [X19]                                              ; +0xb4, 0x100251704\nLDR             X8, [X8,#0x420]                                        ; +0xb8, 0x100251708\nMOV             X0, X19                                                ; +0xbc, 0x10025170c\nMOV             W1, #0                                                 ; +0xc0, 0x100251710\nBLR             X8                                                     ; +0xc4, 0x100251714\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc8, 0x100251718\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xcc, 0x10025171c\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xd0, 0x100251720\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xd4, 0x100251724\nRET                                                                    ; +0xd8, 0x100251728", "xrefs": ["DailyLevelNode::init @ 0x100250e5c"], "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"}