{"type": "func", "start": 9511928, "end": 9512488, "name": "CurrencyRewardLayer::create", "pseudocode": "// \n// CurrencyRewardLayer::create from 0x9123f8 to 0x912628 (560 bytes)\n// \n// 10 xrefs:\n// > PlayLayer::showNewBest @ 0x5caff4\n// > PlayLayer::showNewBest @ 0x5cb394\n// > GJGarageLayer::dialogClosed @ 0x794b00\n// > EndLevelLayer::playEndEffect @ 0x7d4e28\n// > ChallengesPage::claimItem @ 0x908dd8\n// > DailyLevelPage::claimLevelReward @ 0x9157e0\n// > RewardUnlockLayer::playRewardEffect @ 0x938f44\n// > RewardUnlockLayer::playRewardEffect @ 0x938fe8\n// > LevelListLayer::onClaimReward @ 0xa73a00\n// > <???> @ 0x9d2d8\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 *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        const cocos2d::CCPoint *a10,\n        float a11,\n        float a12)\n{\n  float x; // s9\n  float y; // s8\n  __int64 v21; // x19\n  float v22; // s2\n  float v23; // s3\n  __int64 v24; // x1\n  __int64 v25; // x0\n  cocos2d::CCPoint v28; // [xsp+A0h] [xbp+80h] BYREF\n  cocos2d::CCPoint v29; // 0:s0.4,4:s1.4\n\n  x = a9.x;\n  y = a9.y;\n  v21 = operator new(0x280u);\n  cocos2d::CCLayer::CCLayer((cocos2d::CCLayer *)v21);\n  *(_QWORD *)(v21 + 408) = 0;\n  *(_QWORD *)v21 = &off_11AA150;\n  *(_QWORD *)(v21 + 320) = off_11AA5D0;\n  *(_DWORD *)(v21 + 560) = 0;\n  *(_QWORD *)(v21 + 328) = &off_11AA640;\n  *(_DWORD *)(v21 + 564) = 0;\n  *(_QWORD *)(v21 + 336) = off_11AA658;\n  *(_QWORD *)(v21 + 344) = &off_11AA678;\n  *(_QWORD *)(v21 + 352) = off_11AA698;\n  *(_QWORD *)(v21 + 416) = 0;\n  *(_QWORD *)(v21 + 424) = 0;\n  *(_QWORD *)(v21 + 432) = 0;\n  *(_QWORD *)(v21 + 448) = 0;\n  *(_QWORD *)(v21 + 456) = 0;\n  *(_QWORD *)(v21 + 464) = 0;\n  *(_QWORD *)(v21 + 472) = 0;\n  *(_QWORD *)(v21 + 480) = 0;\n  *(_QWORD *)(v21 + 496) = 0;\n  *(_QWORD *)(v21 + 504) = 0;\n  *(_QWORD *)(v21 + 512) = 0;\n  *(_QWORD *)(v21 + 520) = 0;\n  *(_QWORD *)(v21 + 528) = 0;\n  *(_DWORD *)(v21 + 536) = 0;\n  *(_DWORD *)(v21 + 540) = 0;\n  *(_DWORD *)(v21 + 544) = 0;\n  *(_DWORD *)(v21 + 548) = 0;\n  *(_DWORD *)(v21 + 552) = 0;\n  *(_DWORD *)(v21 + 556) = 0;\n  *(float *)(v21 + 568) = 1.0;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v21 + 572));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v21 + 580));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v21 + 588));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v21 + 596));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v21 + 604));\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v21 + 612));\n  *(_BYTE *)(v21 + 620) = 0;\n  *(_BYTE *)(v21 + 621) = 0;\n  *(_QWORD *)(v21 + 624) = 0;\n  *(_DWORD *)(v21 + 632) = 0;\n  *(_DWORD *)(v21 + 636) = 0;\n  cocos2d::CCPoint::CCPoint(&v28, a10);\n  v29.x = x;\n  v29.y = y;\n  if ( CurrencyRewardLayer::init(\n         (CurrencyRewardLayer *)v21,\n         a1,\n         a2,\n         a3,\n         a4,\n         a5,\n         a6,\n         a7,\n         a8,\n         v29,\n         (CurrencyRewardType)&v28,\n         v22,\n         v23) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v21);\n  }\n  else\n  {\n    v24 = *(_QWORD *)v21;\n    v25 = v21;\n    v21 = 0;\n    (*(void (__fastcall **)(__int64))(v24 + 16))(v25);\n  }\n  return (CurrencyRewardLayer *)v21;\n}", "assembly": "; \n; CurrencyRewardLayer::create from 0x9123f8 to 0x912628 (560 bytes)\n; \n; 10 xrefs:\n; > PlayLayer::showNewBest @ 0x5caff4\n; > PlayLayer::showNewBest @ 0x5cb394\n; > GJGarageLayer::dialogClosed @ 0x794b00\n; > EndLevelLayer::playEndEffect @ 0x7d4e28\n; > ChallengesPage::claimItem @ 0x908dd8\n; > DailyLevelPage::claimLevelReward @ 0x9157e0\n; > RewardUnlockLayer::playRewardEffect @ 0x938f44\n; > RewardUnlockLayer::playRewardEffect @ 0x938fe8\n; > LevelListLayer::onClaimReward @ 0xa73a00\n; > <???> @ 0x9d2d8\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, #0xB0                                          ; +0x0, 0x9123f8\nSTP             X29, X30, [SP,#0xB0+var_90]                            ; +0x4, 0x9123fc\nADD             X29, SP, #0x20                                         ; +0x8, 0x912400\nSTP             X19, X20, [SP,#0xB0+var_80]                            ; +0xc, 0x912404\nSTP             D8, D9, [SP,#0xB0+var_30]                              ; +0x10, 0x912408\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x14, 0x91240c\nSTR             W6, [X29,#0x90+var_14]                                 ; +0x18, 0x912410\nSTP             X25, X26, [SP,#0xB0+var_50]                            ; +0x1c, 0x912414\nMOV             W25, W1                                                ; +0x20, 0x912418\nMOV             W26, W0                                                ; +0x24, 0x91241c\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x28, 0x912420\nMOV             X0, #0x280; unsigned __int64                           ; +0x2c, 0x912424\nFMOV            S9, S0                                                 ; +0x30, 0x912428\nFMOV            S8, S1                                                 ; +0x34, 0x91242c\nLDR             X1, [X1]                                               ; +0x38, 0x912430\nSTP             X21, X22, [SP,#0xB0+var_70]                            ; +0x3c, 0x912434\nSTP             X23, X24, [SP,#0xB0+var_60]                            ; +0x40, 0x912438\nSTP             X27, X28, [SP,#0xB0+var_40]                            ; +0x44, 0x91243c\nMOV             W24, W2                                                ; +0x48, 0x912440\nMOV             W23, W3                                                ; +0x4c, 0x912444\nMOV             W22, W4                                                ; +0x50, 0x912448\nMOV             W21, W5                                                ; +0x54, 0x91244c\nMOV             W27, W7                                                ; +0x58, 0x912450\nLDR             X28, [X29,#0x90+arg_0]                                 ; +0x5c, 0x912454\nSTR             X1, [X29,#0x90+var_8]                                  ; +0x60, 0x912458\nBL              _Znwm; operator new(ulong)                             ; +0x64, 0x91245c\nMOV             X19, X0                                                ; +0x68, 0x912460\nBL              _ZN7cocos2d7CCLayerC2Ev; cocos2d::CCLayer::CCLayer(void) ; +0x6c, 0x912464\nADRP            X1, #_ZTV19CurrencyRewardLayer_ptr@PAGE                ; +0x70, 0x912468\nADD             X0, X19, #0x23C; this                                  ; +0x74, 0x91246c\nFMOV            S0, WZR                                                ; +0x78, 0x912470\nLDR             X1, [X1,#_ZTV19CurrencyRewardLayer_ptr@PAGEOFF]; `vtable for'CurrencyRewardLayer ... ; +0x7c, 0x912474\nSTR             XZR, [X19,#0x198]                                      ; +0x80, 0x912478\nADD             X6, X1, #0x10                                          ; +0x84, 0x91247c\nADD             X5, X1, #0x490                                         ; +0x88, 0x912480\nADD             X4, X1, #0x500                                         ; +0x8c, 0x912484\nADD             X3, X1, #0x518                                         ; +0x90, 0x912488\nADD             X2, X1, #0x538                                         ; +0x94, 0x91248c\nSTR             X6, [X19]                                              ; +0x98, 0x912490\nADD             X1, X1, #0x558                                         ; +0x9c, 0x912494\nSTR             X5, [X19,#0x140]                                       ; +0xa0, 0x912498\nSTR             S0, [X19,#0x230]                                       ; +0xa4, 0x91249c\nSTR             X4, [X19,#0x148]                                       ; +0xa8, 0x9124a0\nSTR             S0, [X19,#0x234]                                       ; +0xac, 0x9124a4\nSTR             X3, [X19,#0x150]                                       ; +0xb0, 0x9124a8\nFMOV            S0, #1.0                                               ; +0xb4, 0x9124ac\nSTR             X2, [X19,#0x158]                                       ; +0xb8, 0x9124b0\nSTR             X1, [X19,#0x160]                                       ; +0xbc, 0x9124b4\nSTR             XZR, [X19,#0x1A0]                                      ; +0xc0, 0x9124b8\nSTR             XZR, [X19,#0x1A8]                                      ; +0xc4, 0x9124bc\nSTR             XZR, [X19,#0x1B0]                                      ; +0xc8, 0x9124c0\nSTR             XZR, [X19,#0x1C0]                                      ; +0xcc, 0x9124c4\nSTR             XZR, [X19,#0x1C8]                                      ; +0xd0, 0x9124c8\nSTR             XZR, [X19,#0x1D0]                                      ; +0xd4, 0x9124cc\nSTR             XZR, [X19,#0x1D8]                                      ; +0xd8, 0x9124d0\nSTR             XZR, [X19,#0x1E0]                                      ; +0xdc, 0x9124d4\nSTR             XZR, [X19,#0x1F0]                                      ; +0xe0, 0x9124d8\nSTR             XZR, [X19,#0x1F8]                                      ; +0xe4, 0x9124dc\nSTR             XZR, [X19,#0x200]                                      ; +0xe8, 0x9124e0\nSTR             XZR, [X19,#0x208]                                      ; +0xec, 0x9124e4\nSTR             XZR, [X19,#0x210]                                      ; +0xf0, 0x9124e8\nSTR             WZR, [X19,#0x218]                                      ; +0xf4, 0x9124ec\nSTR             WZR, [X19,#0x21C]                                      ; +0xf8, 0x9124f0\nSTR             WZR, [X19,#0x220]                                      ; +0xfc, 0x9124f4\nSTR             WZR, [X19,#0x224]                                      ; +0x100, 0x9124f8\nSTR             WZR, [X19,#0x228]                                      ; +0x104, 0x9124fc\nSTR             WZR, [X19,#0x22C]                                      ; +0x108, 0x912500\nSTR             S0, [X19,#0x238]                                       ; +0x10c, 0x912504\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0x110, 0x912508\nADD             X0, X19, #0x244; this                                  ; +0x114, 0x91250c\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0x118, 0x912510\nADD             X0, X19, #0x24C; this                                  ; +0x11c, 0x912514\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0x120, 0x912518\nADD             X0, X19, #0x254; this                                  ; +0x124, 0x91251c\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0x128, 0x912520\nADD             X0, X19, #0x25C; this                                  ; +0x12c, 0x912524\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0x130, 0x912528\nADD             X0, X19, #0x264; this                                  ; +0x134, 0x91252c\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0x138, 0x912530\nADD             X0, X29, #0x90+var_10; this                            ; +0x13c, 0x912534\nMOV             X1, X28; cocos2d::CCPoint *                            ; +0x140, 0x912538\nSTRB            WZR, [X19,#0x26C]                                      ; +0x144, 0x91253c\nMOV             X28, X0                                                ; +0x148, 0x912540\nSTRB            WZR, [X19,#0x26D]                                      ; +0x14c, 0x912544\nSTR             XZR, [X19,#0x270]                                      ; +0x150, 0x912548\nSTR             WZR, [X19,#0x278]                                      ; +0x154, 0x91254c\nSTR             WZR, [X19,#0x27C]                                      ; +0x158, 0x912550\nBL              _ZN7cocos2d7CCPointC1ERKS0_; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const&) ; +0x15c, 0x912554\nSTR             W27, [SP,#0xB0+var_B0]                                 ; +0x160, 0x912558\nFMOV            S0, S9                                                 ; +0x164, 0x91255c\nLDR             W0, [X29,#0x90+arg_8]                                  ; +0x168, 0x912560\nFMOV            S1, S8                                                 ; +0x16c, 0x912564\nLDR             W7, [X29,#0x90+var_14]                                 ; +0x170, 0x912568\nSTR             W0, [SP,#0xB0+var_A0]                                  ; +0x174, 0x91256c\nMOV             W1, W26                                                ; +0x178, 0x912570\nSTR             X28, [SP,#0xB0+var_A8]                                 ; +0x17c, 0x912574\nMOV             X0, X19                                                ; +0x180, 0x912578\nMOV             W2, W25                                                ; +0x184, 0x91257c\nMOV             W3, W24                                                ; +0x188, 0x912580\nMOV             W4, W23                                                ; +0x18c, 0x912584\nMOV             W5, W22                                                ; +0x190, 0x912588\nMOV             W6, W21                                                ; +0x194, 0x91258c\nBL              _ZN19CurrencyRewardLayer4initEiiii18CurrencySpriteTypeiS0_iN7cocos2d7CCPointE18CurrencyRewardTypeff; CurrencyRewardLayer::init(int,int,int,int,CurrencySpriteType,int,CurrencySpriteType,int,cocos2d::CCPoint,CurrencyRewardType,float,float) ; +0x198, 0x912590\nUXTB            W0, W0                                                 ; +0x19c, 0x912594\nCBNZ            W0, loc_9125F0                                         ; +0x1a0, 0x912598\nLDR             X1, [X19]                                              ; +0x1a4, 0x91259c\nMOV             X0, X19                                                ; +0x1a8, 0x9125a0\nMOV             X19, #0                                                ; +0x1ac, 0x9125a4\nLDR             X1, [X1,#0x10]                                         ; +0x1b0, 0x9125a8\nBLR             X1                                                     ; +0x1b4, 0x9125ac\nLDR             X1, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1b8, 0x9125b0\nMOV             X0, X19                                                ; +0x1bc, 0x9125b4\nLDR             X2, [X29,#0x90+var_8]                                  ; +0x1c0, 0x9125b8\nLDR             X1, [X1]                                               ; +0x1c4, 0x9125bc\nCMP             X2, X1                                                 ; +0x1c8, 0x9125c0\nB.NE            loc_9125FC                                             ; +0x1cc, 0x9125c4\nSUB             SP, X29, #0x20 ; ' '                                   ; +0x1d0, 0x9125c8\nLDP             D8, D9, [SP,#0xB0+var_30]                              ; +0x1d4, 0x9125cc\nLDP             X19, X20, [SP,#0xB0+var_80]                            ; +0x1d8, 0x9125d0\nLDP             X21, X22, [SP,#0xB0+var_70]                            ; +0x1dc, 0x9125d4\nLDP             X23, X24, [SP,#0xB0+var_60]                            ; +0x1e0, 0x9125d8\nLDP             X25, X26, [SP,#0xB0+var_50]                            ; +0x1e4, 0x9125dc\nLDP             X27, X28, [SP,#0xB0+var_40]                            ; +0x1e8, 0x9125e0\nLDP             X29, X30, [SP,#0xB0+var_90]                            ; +0x1ec, 0x9125e4\nADD             SP, SP, #0xB0                                          ; +0x1f0, 0x9125e8\nRET                                                                    ; +0x1f4, 0x9125ec\nMOV             X0, X19; this                                          ; +0x1f8, 0x9125f0\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0x1fc, 0x9125f4\nB               loc_9125B0                                             ; +0x200, 0x9125f8\nBL              .__stack_chk_fail                                      ; +0x204, 0x9125fc\nMOV             X20, X0                                                ; +0x208, 0x912600\nMOV             X0, X19; p                                             ; +0x20c, 0x912604\nBL              _ZdlPv; operator delete(void *)                        ; +0x210, 0x912608\nMOV             X0, X20                                                ; +0x214, 0x91260c\nBL              _Unwind_Resume                                         ; +0x218, 0x912610\nB               loc_912610                                             ; +0x21c, 0x912614\nMOV             X20, X0                                                ; +0x220, 0x912618\nMOV             X0, X19; this                                          ; +0x224, 0x91261c\nBL              _ZN7cocos2d7CCLayerD1Ev; cocos2d::CCLayer::~CCLayer()  ; +0x228, 0x912620\nB               loc_912604                                             ; +0x22c, 0x912624", "xrefs": ["PlayLayer::showNewBest @ 0x5caff4", "PlayLayer::showNewBest @ 0x5cb394", "GJGarageLayer::dialogClosed @ 0x794b00", "EndLevelLayer::playEndEffect @ 0x7d4e28", "ChallengesPage::claimItem @ 0x908dd8", "DailyLevelPage::claimLevelReward @ 0x9157e0", "RewardUnlockLayer::playRewardEffect @ 0x938f44", "RewardUnlockLayer::playRewardEffect @ 0x938fe8", "LevelListLayer::onClaimReward @ 0xa73a00", "<???> @ 0x9d2d8"], "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"}