{"type": "func", "start": 4297394020, "end": 4297394360, "name": "DailyLevelPage::claimLevelReward", "pseudocode": "// \n// DailyLevelPage::claimLevelReward from 0x100250764 to 0x1002508b8 (340 bytes)\n// \n// 1 xrefs:\n// > DailyLevelNode::onClaimReward @ 0x1002516a8\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\nvoid __fastcall DailyLevelPage::claimLevelReward(int *a1, __int64 a2, _DWORD *a3, double *a4)\n{\n  __int64 v8; // x0\n  __int64 v9; // x0\n  __int64 v10; // x23\n  __int64 v11; // x22\n  __n128 v12; // q0\n  __int64 v13; // x0\n  __int64 BonusDiamonds; // x23\n  __int64 v15; // x0\n  unsigned int *v16; // x0\n  __int64 v17; // [xsp+18h] [xbp-38h] BYREF\n\n  v8 = GameStatsManager::sharedState(a1);\n  v9 = GameStatsManager::completedDailyLevel(v8, a3);\n  if ( v9 )\n  {\n    v10 = v9;\n    v11 = RewardUnlockLayer::create(*(unsigned int *)(v9 + 64), 0);\n    (*(void (__fastcall **)(int *, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v11, 100);\n    RewardUnlockLayer::showCollectReward(v11, v10);\n  }\n  else\n  {\n    v13 = GameStatsManager::sharedState(0);\n    BonusDiamonds = GameStatsManager::getBonusDiamonds(v13, (unsigned int)(a3[237] - a3[238]));\n    sub_1000262F4(&v17, a4);\n    v15 = CurrencyRewardLayer::create(0, 0, 0, BonusDiamonds, 0, 0, 0, 0, 0.0, 1.0, &v17, 0);\n    v12 = ((__n128 (__fastcall *)(int *, __int64, __int64))*(_QWORD *)(*(_QWORD *)a1 + 464LL))(a1, v15, 14);\n  }\n  v12.n128_u32[0] = 0;\n  sub_10024FF9C((__int64)a1, a2, v12.n128_f64[0]);\n  v16 = (unsigned int *)GameLevelManager::sharedState();\n  if ( (int)sub_1000CD764(v16, a1[183]) <= a3[230] - a3[231] )\n    DailyLevelPage::createDailyNode((__int64)a1, 0, 0, 0, 0.5);\n  else\n    DailyLevelPage::downloadAndCreateNode((__int64)a1);\n}", "assembly": "; \n; DailyLevelPage::claimLevelReward from 0x100250764 to 0x1002508b8 (340 bytes)\n; \n; 1 xrefs:\n; > DailyLevelNode::onClaimReward @ 0x1002516a8\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, #0x60                                          ; +0x0, 0x100250764\nSTP             X24, X23, [SP,#0x50+var_30]                            ; +0x4, 0x100250768\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0x8, 0x10025076c\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0xc, 0x100250770\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x10, 0x100250774\nADD             X29, SP, #0x50                                         ; +0x14, 0x100250778\nMOV             X22, X3                                                ; +0x18, 0x10025077c\nMOV             X20, X2                                                ; +0x1c, 0x100250780\nMOV             X21, X1                                                ; +0x20, 0x100250784\nMOV             X19, X0                                                ; +0x24, 0x100250788\nBL              GameStatsManager__sharedState                          ; +0x28, 0x10025078c\nMOV             X1, X20                                                ; +0x2c, 0x100250790\nBL              GameStatsManager__completedDailyLevel                  ; +0x30, 0x100250794\nCBZ             X0, loc_1002507D8                                      ; +0x34, 0x100250798\nMOV             X23, X0                                                ; +0x38, 0x10025079c\nLDR             W0, [X0,#0x40]                                         ; +0x3c, 0x1002507a0\nMOV             X1, #0                                                 ; +0x40, 0x1002507a4\nBL              RewardUnlockLayer__create                              ; +0x44, 0x1002507a8\nMOV             X22, X0                                                ; +0x48, 0x1002507ac\nLDR             X8, [X19]                                              ; +0x4c, 0x1002507b0\nLDR             X8, [X8,#0x1D0]                                        ; +0x50, 0x1002507b4\nMOV             X0, X19                                                ; +0x54, 0x1002507b8\nMOV             X1, X22                                                ; +0x58, 0x1002507bc\nMOV             W2, #0x64 ; 'd'                                        ; +0x5c, 0x1002507c0\nBLR             X8                                                     ; +0x60, 0x1002507c4\nMOV             X0, X22                                                ; +0x64, 0x1002507c8\nMOV             X1, X23                                                ; +0x68, 0x1002507cc\nBL              RewardUnlockLayer__showCollectReward                   ; +0x6c, 0x1002507d0\nB               loc_10025084C                                          ; +0x70, 0x1002507d4\nBL              GameStatsManager__sharedState                          ; +0x74, 0x1002507d8\nLDR             W8, [X20,#0x3B4]                                       ; +0x78, 0x1002507dc\nLDR             W9, [X20,#0x3B8]                                       ; +0x7c, 0x1002507e0\nSUB             W1, W8, W9                                             ; +0x80, 0x1002507e4\nBL              GameStatsManager__getBonusDiamonds                     ; +0x84, 0x1002507e8\nMOV             X23, X0                                                ; +0x88, 0x1002507ec\nADD             X24, SP, #0x50+var_38                                  ; +0x8c, 0x1002507f0\nADD             X0, SP, #0x50+var_38                                   ; +0x90, 0x1002507f4\nMOV             X1, X22                                                ; +0x94, 0x1002507f8\nBL              sub_1000262F4                                          ; +0x98, 0x1002507fc\nSTR             WZR, [SP,#0x50+var_48]                                 ; +0x9c, 0x100250800\nSTR             X24, [SP,#0x50+var_50]                                 ; +0xa0, 0x100250804\nFMOV            S0, WZR                                                ; +0xa4, 0x100250808\nFMOV            S1, #1.0                                               ; +0xa8, 0x10025080c\nMOV             W0, #0                                                 ; +0xac, 0x100250810\nMOV             W1, #0                                                 ; +0xb0, 0x100250814\nMOV             W2, #0                                                 ; +0xb4, 0x100250818\nMOV             X3, X23                                                ; +0xb8, 0x10025081c\nMOV             W4, #0                                                 ; +0xbc, 0x100250820\nMOV             W5, #0                                                 ; +0xc0, 0x100250824\nMOV             W6, #0                                                 ; +0xc4, 0x100250828\nMOV             W7, #0                                                 ; +0xc8, 0x10025082c\nBL              CurrencyRewardLayer__create                            ; +0xcc, 0x100250830\nMOV             X1, X0                                                 ; +0xd0, 0x100250834\nLDR             X8, [X19]                                              ; +0xd4, 0x100250838\nLDR             X8, [X8,#0x1D0]                                        ; +0xd8, 0x10025083c\nMOV             X0, X19                                                ; +0xdc, 0x100250840\nMOV             W2, #0xE                                               ; +0xe0, 0x100250844\nBLR             X8                                                     ; +0xe4, 0x100250848\nFMOV            S0, WZR                                                ; +0xe8, 0x10025084c\nMOV             X0, X19                                                ; +0xec, 0x100250850\nMOV             X1, X21                                                ; +0xf0, 0x100250854\nBL              sub_10024FF9C                                          ; +0xf4, 0x100250858\nBL              GameLevelManager__sharedState                          ; +0xf8, 0x10025085c\nLDR             W1, [X19,#0x2DC]                                       ; +0xfc, 0x100250860\nBL              sub_1000CD764                                          ; +0x100, 0x100250864\nLDR             W8, [X20,#0x398]                                       ; +0x104, 0x100250868\nLDR             W9, [X20,#0x39C]                                       ; +0x108, 0x10025086c\nSUB             W8, W8, W9                                             ; +0x10c, 0x100250870\nCMP             W0, W8                                                 ; +0x110, 0x100250874\nB.LE            loc_100250888                                          ; +0x114, 0x100250878\nMOV             X0, X19                                                ; +0x118, 0x10025087c\nBL              DailyLevelPage__downloadAndCreateNode                  ; +0x11c, 0x100250880\nB               loc_1002508A0                                          ; +0x120, 0x100250884\nFMOV            S0, #0.5                                               ; +0x124, 0x100250888\nMOV             X0, X19                                                ; +0x128, 0x10025088c\nMOV             X1, #0                                                 ; +0x12c, 0x100250890\nMOV             W2, #0                                                 ; +0x130, 0x100250894\nMOV             W3, #0                                                 ; +0x134, 0x100250898\nBL              DailyLevelPage__createDailyNode                        ; +0x138, 0x10025089c\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x13c, 0x1002508a0\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x140, 0x1002508a4\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0x144, 0x1002508a8\nLDP             X24, X23, [SP,#0x50+var_30]                            ; +0x148, 0x1002508ac\nADD             SP, SP, #0x60 ; '`'                                    ; +0x14c, 0x1002508b0\nRET                                                                    ; +0x150, 0x1002508b4", "xrefs": ["DailyLevelNode::onClaimReward @ 0x1002516a8"], "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"}