{"type": "func", "start": 4298237672, "end": 4298237916, "name": "CurrencyRewardLayer::create", "pseudocode": "// \n// CurrencyRewardLayer::create from 0x10031e6e8 to 0x10031e7dc (244 bytes)\n// \n// 7 xrefs:\n// > ChallengesPage::claimItem @ 0x100032d34\n// > PlayLayer::showNewBest @ 0x10011b670\n// > DailyLevelPage::claimLevelReward @ 0x1001bab98\n// > RewardUnlockLayer::playRewardEffect @ 0x1001c61f0\n// > LevelListLayer::onClaimReward @ 0x1002461dc\n// > EndLevelLayer::playEndEffect @ 0x1002f86c8\n// > GJGarageLayer::dialogClosed @ 0x100306d60\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\n// local variable allocation has failed, the output may be wrong!\nCurrencyRewardLayer *__fastcall CurrencyRewardLayer::create(\n        int a1,\n        int a2,\n        int a3,\n        int a4,\n        CurrencySpriteType a5,\n        int a6,\n        CurrencySpriteType a7,\n        int a8,\n        cocos2d::CCPoint a9,\n        __int64 *a10,\n        float a11,\n        float a12)\n{\n  float y; // s8\n  float x; // s9\n  CurrencyRewardLayer *v21; // x19\n  float v22; // s2\n  float v23; // s3\n  CurrencyRewardType v25; // [xsp+4h] [xbp-7Ch]\n  __int64 v27; // [xsp+18h] [xbp-68h] BYREF\n  cocos2d::CCPoint v28; // 0:s0.4,4:s1.4\n\n  y = a9.y;\n  x = a9.x;\n  v21 = (CurrencyRewardLayer *)operator new(0x280u);\n  sub_10032271C();\n  sub_1000229B8(&v27, a10);\n  v28.x = x;\n  v28.y = y;\n  if ( CurrencyRewardLayer::init(v21, a1, a2, a3, a4, a5, a6, a7, a8, v28, v25, v22, v23) )\n  {\n    cocos2d::CCObject::autorelease(v21);\n  }\n  else\n  {\n    ((void (__fastcall *)(CurrencyRewardLayer *))v21->~CurrencyRewardLayer_0)(v21);\n    return nullptr;\n  }\n  return v21;\n}", "assembly": "; \n; CurrencyRewardLayer::create from 0x10031e6e8 to 0x10031e7dc (244 bytes)\n; \n; 7 xrefs:\n; > ChallengesPage::claimItem @ 0x100032d34\n; > PlayLayer::showNewBest @ 0x10011b670\n; > DailyLevelPage::claimLevelReward @ 0x1001bab98\n; > RewardUnlockLayer::playRewardEffect @ 0x1001c61f0\n; > LevelListLayer::onClaimReward @ 0x1002461dc\n; > EndLevelLayer::playEndEffect @ 0x1002f86c8\n; > GJGarageLayer::dialogClosed @ 0x100306d60\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\nSUB             SP, SP, #0x90                                          ; +0x0, 0x10031e6e8\nSTP             D9, D8, [SP,#0x80+var_60]                              ; +0x4, 0x10031e6ec\nSTP             X28, X27, [SP,#0x80+var_50]                            ; +0x8, 0x10031e6f0\nSTP             X26, X25, [SP,#0x80+var_40]                            ; +0xc, 0x10031e6f4\nSTP             X24, X23, [SP,#0x80+var_30]                            ; +0x10, 0x10031e6f8\nSTP             X22, X21, [SP,#0x80+var_20]                            ; +0x14, 0x10031e6fc\nSTP             X20, X19, [SP,#0x80+var_10]                            ; +0x18, 0x10031e700\nSTP             X29, X30, [SP,#0x80+var_s0]                            ; +0x1c, 0x10031e704\nADD             X29, SP, #0x80                                         ; +0x20, 0x10031e708\nFMOV            S8, S1                                                 ; +0x24, 0x10031e70c\nFMOV            S9, S0                                                 ; +0x28, 0x10031e710\nMOV             X24, X7                                                ; +0x2c, 0x10031e714\nSTR             W6, [SP,#0x80+var_6C]                                  ; +0x30, 0x10031e718\nMOV             X21, X5                                                ; +0x34, 0x10031e71c\nMOV             X22, X4                                                ; +0x38, 0x10031e720\nMOV             X23, X3                                                ; +0x3c, 0x10031e724\nMOV             X25, X2                                                ; +0x40, 0x10031e728\nMOV             X26, X1                                                ; +0x44, 0x10031e72c\nMOV             X27, X0                                                ; +0x48, 0x10031e730\nMOV             W0, #0x280; __sz                                       ; +0x4c, 0x10031e734\nBL              __Znwm; operator new(ulong)                            ; +0x50, 0x10031e738\nMOV             X19, X0                                                ; +0x54, 0x10031e73c\nBL              sub_10032271C                                          ; +0x58, 0x10031e740\nLDR             W28, [X29,#arg_8]                                      ; +0x5c, 0x10031e744\nLDR             X1, [X29,#arg_0]                                       ; +0x60, 0x10031e748\nADD             X20, SP, #0x80+var_68                                  ; +0x64, 0x10031e74c\nADD             X0, SP, #0x80+var_68                                   ; +0x68, 0x10031e750\nBL              sub_1000229B8                                          ; +0x6c, 0x10031e754\nSTR             W28, [SP,#0x80+var_70]                                 ; +0x70, 0x10031e758\nSTR             X20, [SP,#0x80+var_78]                                 ; +0x74, 0x10031e75c\nSTR             W24, [SP,#0x80+var_80]                                 ; +0x78, 0x10031e760\nMOV             X0, X19                                                ; +0x7c, 0x10031e764\nMOV             X1, X27                                                ; +0x80, 0x10031e768\nMOV             X2, X26                                                ; +0x84, 0x10031e76c\nMOV             X3, X25                                                ; +0x88, 0x10031e770\nMOV             X4, X23                                                ; +0x8c, 0x10031e774\nMOV             X5, X22                                                ; +0x90, 0x10031e778\nMOV             X6, X21                                                ; +0x94, 0x10031e77c\nLDR             W7, [SP,#0x80+var_6C]                                  ; +0x98, 0x10031e780\nFMOV            S0, S9                                                 ; +0x9c, 0x10031e784\nFMOV            S1, S8                                                 ; +0xa0, 0x10031e788\nBL              CurrencyRewardLayer__init                              ; +0xa4, 0x10031e78c\nCBZ             W0, loc_10031E7A0                                      ; +0xa8, 0x10031e790\nMOV             X0, X19                                                ; +0xac, 0x10031e794\nBL              cocos2d__CCObject__autorelease                         ; +0xb0, 0x10031e798\nB               loc_10031E7B4                                          ; +0xb4, 0x10031e79c\nLDR             X8, [X19]                                              ; +0xb8, 0x10031e7a0\nLDR             X8, [X8,#0x10]                                         ; +0xbc, 0x10031e7a4\nMOV             X0, X19                                                ; +0xc0, 0x10031e7a8\nBLR             X8                                                     ; +0xc4, 0x10031e7ac\nMOV             X19, #0                                                ; +0xc8, 0x10031e7b0\nMOV             X0, X19                                                ; +0xcc, 0x10031e7b4\nLDP             X29, X30, [SP,#0x80+var_s0]                            ; +0xd0, 0x10031e7b8\nLDP             X20, X19, [SP,#0x80+var_10]                            ; +0xd4, 0x10031e7bc\nLDP             X22, X21, [SP,#0x80+var_20]                            ; +0xd8, 0x10031e7c0\nLDP             X24, X23, [SP,#0x80+var_30]                            ; +0xdc, 0x10031e7c4\nLDP             X26, X25, [SP,#0x80+var_40]                            ; +0xe0, 0x10031e7c8\nLDP             X28, X27, [SP,#0x80+var_50]                            ; +0xe4, 0x10031e7cc\nLDP             D9, D8, [SP,#0x80+var_60]                              ; +0xe8, 0x10031e7d0\nADD             SP, SP, #0x90                                          ; +0xec, 0x10031e7d4\nRET                                                                    ; +0xf0, 0x10031e7d8", "xrefs": ["ChallengesPage::claimItem @ 0x100032d34", "PlayLayer::showNewBest @ 0x10011b670", "DailyLevelPage::claimLevelReward @ 0x1001bab98", "RewardUnlockLayer::playRewardEffect @ 0x1001c61f0", "LevelListLayer::onClaimReward @ 0x1002461dc", "EndLevelLayer::playEndEffect @ 0x1002f86c8", "GJGarageLayer::dialogClosed @ 0x100306d60"], "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"}