{"type": "func", "start": 9500840, "end": 9501108, "name": "CurrencySprite::create", "pseudocode": "// \n// CurrencySprite::create from 0x90f8a8 to 0x90f9b4 (268 bytes)\n// \n// 4 xrefs:\n// > CurrencyRewardLayer::createObjectsFull @ 0x9101ec\n// > CurrencyRewardLayer::init @ 0x911c5c\n// > CurrencyRewardLayer::init @ 0x911f2c\n// > <???> @ 0xab5a0\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\nCurrencySprite *CurrencySprite::create(CurrencySpriteType a1, bool a2)\n{\n  __int64 v4; // x19\n\n  v4 = operator new(0x2A0u);\n  cocos2d::CCSprite::CCSprite((cocos2d::CCSprite *)v4);\n  *(_QWORD *)(v4 + 600) = 0;\n  *(_QWORD *)(v4 + 608) = 0;\n  *(_BYTE *)(v4 + 616) = 0;\n  *(_BYTE *)(v4 + 617) = 0;\n  *(_BYTE *)(v4 + 618) = 0;\n  *(_DWORD *)(v4 + 636) = 1;\n  *(_QWORD *)v4 = &off_11AA6C0;\n  *(_QWORD *)(v4 + 320) = &off_11AABA8;\n  *(_QWORD *)(v4 + 344) = &off_11AAC28;\n  *(_QWORD *)(v4 + 640) = 0;\n  *(_DWORD *)(v4 + 648) = 1;\n  *(_DWORD *)(v4 + 620) = 0;\n  *(_DWORD *)(v4 + 624) = 0;\n  *(_DWORD *)(v4 + 628) = 0;\n  *(_DWORD *)(v4 + 632) = 0;\n  cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)(v4 + 652));\n  *(_QWORD *)(v4 + 664) = 0;\n  if ( CurrencySprite::init((CurrencySprite *)v4, a1, a2) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v4);\n    return (CurrencySprite *)v4;\n  }\n  else\n  {\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 16LL))(v4);\n    return nullptr;\n  }\n}", "assembly": "; \n; CurrencySprite::create from 0x90f8a8 to 0x90f9b4 (268 bytes)\n; \n; 4 xrefs:\n; > CurrencyRewardLayer::createObjectsFull @ 0x9101ec\n; > CurrencyRewardLayer::init @ 0x911c5c\n; > CurrencyRewardLayer::init @ 0x911f2c\n; > <???> @ 0xab5a0\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\nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0x90f8a8\nMOV             X29, SP                                                ; +0x4, 0x90f8ac\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x8, 0x90f8b0\nMOV             W21, W0                                                ; +0xc, 0x90f8b4\nMOV             X0, #0x2A0; unsigned __int64                           ; +0x10, 0x90f8b8\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x14, 0x90f8bc\nUXTB            W20, W1                                                ; +0x18, 0x90f8c0\nBL              _Znwm; operator new(ulong)                             ; +0x1c, 0x90f8c4\nMOV             X19, X0                                                ; +0x20, 0x90f8c8\nBL              _ZN7cocos2d8CCSpriteC2Ev; cocos2d::CCSprite::CCSprite(void) ; +0x24, 0x90f8cc\nADRP            X1, #_ZTV14CurrencySprite_ptr@PAGE                     ; +0x28, 0x90f8d0\nSTR             XZR, [X19,#0x258]                                      ; +0x2c, 0x90f8d4\nSTR             XZR, [X19,#0x260]                                      ; +0x30, 0x90f8d8\nMOV             W2, #1                                                 ; +0x34, 0x90f8dc\nSTRB            WZR, [X19,#0x268]                                      ; +0x38, 0x90f8e0\nADD             X0, X19, #0x28C; this                                  ; +0x3c, 0x90f8e4\nSTRB            WZR, [X19,#0x269]                                      ; +0x40, 0x90f8e8\nSTRB            WZR, [X19,#0x26A]                                      ; +0x44, 0x90f8ec\nFMOV            S0, WZR                                                ; +0x48, 0x90f8f0\nLDR             X1, [X1,#_ZTV14CurrencySprite_ptr@PAGEOFF]; `vtable for'CurrencySprite ... ; +0x4c, 0x90f8f4\nSTR             W2, [X19,#0x27C]                                       ; +0x50, 0x90f8f8\nADD             X4, X1, #0x10                                          ; +0x54, 0x90f8fc\nADD             X3, X1, #0x4F8                                         ; +0x58, 0x90f900\nSTR             X4, [X19]                                              ; +0x5c, 0x90f904\nADD             X1, X1, #0x578                                         ; +0x60, 0x90f908\nSTR             X3, [X19,#0x140]                                       ; +0x64, 0x90f90c\nSTR             X1, [X19,#0x158]                                       ; +0x68, 0x90f910\nSTR             XZR, [X19,#0x280]                                      ; +0x6c, 0x90f914\nSTR             W2, [X19,#0x288]                                       ; +0x70, 0x90f918\nSTR             S0, [X19,#0x26C]                                       ; +0x74, 0x90f91c\nSTR             S0, [X19,#0x270]                                       ; +0x78, 0x90f920\nSTR             S0, [X19,#0x274]                                       ; +0x7c, 0x90f924\nSTR             S0, [X19,#0x278]                                       ; +0x80, 0x90f928\nBL              _ZN7cocos2d7CCPointC1Ev; cocos2d::CCPoint::CCPoint(void) ; +0x84, 0x90f92c\nSTR             XZR, [X19,#0x298]                                      ; +0x88, 0x90f930\nMOV             X0, X19                                                ; +0x8c, 0x90f934\nMOV             W1, W21                                                ; +0x90, 0x90f938\nMOV             W2, W20                                                ; +0x94, 0x90f93c\nBL              _ZN14CurrencySprite4initE18CurrencySpriteTypeb; CurrencySprite::init(CurrencySpriteType,bool) ; +0x98, 0x90f940\nUXTB            W0, W0                                                 ; +0x9c, 0x90f944\nCBZ             W0, loc_90F968                                         ; +0xa0, 0x90f948\nMOV             X0, X19; this                                          ; +0xa4, 0x90f94c\nBL              _ZN7cocos2d8CCObject11autoreleaseEv; cocos2d::CCObject::autorelease(void) ; +0xa8, 0x90f950\nLDR             X21, [SP,#0x30+var_10]                                 ; +0xac, 0x90f954\nMOV             X0, X19                                                ; +0xb0, 0x90f958\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xb4, 0x90f95c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xb8, 0x90f960\nRET                                                                    ; +0xbc, 0x90f964\nLDR             X1, [X19]                                              ; +0xc0, 0x90f968\nMOV             X0, X19                                                ; +0xc4, 0x90f96c\nMOV             X19, #0                                                ; +0xc8, 0x90f970\nLDR             X1, [X1,#0x10]                                         ; +0xcc, 0x90f974\nBLR             X1                                                     ; +0xd0, 0x90f978\nLDR             X21, [SP,#0x30+var_10]                                 ; +0xd4, 0x90f97c\nMOV             X0, X19                                                ; +0xd8, 0x90f980\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0xdc, 0x90f984\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0xe0, 0x90f988\nRET                                                                    ; +0xe4, 0x90f98c\nMOV             X20, X0                                                ; +0xe8, 0x90f990\nMOV             X0, X19; p                                             ; +0xec, 0x90f994\nBL              _ZdlPv; operator delete(void *)                        ; +0xf0, 0x90f998\nMOV             X0, X20                                                ; +0xf4, 0x90f99c\nBL              _Unwind_Resume                                         ; +0xf8, 0x90f9a0\nMOV             X20, X0                                                ; +0xfc, 0x90f9a4\nMOV             X0, X19; this                                          ; +0x100, 0x90f9a8\nBL              _ZN12CCSpritePlusD2Ev; CCSpritePlus::~CCSpritePlus()   ; +0x104, 0x90f9ac\nB               loc_90F994                                             ; +0x108, 0x90f9b0", "xrefs": ["CurrencyRewardLayer::createObjectsFull @ 0x9101ec", "CurrencyRewardLayer::init @ 0x911c5c", "CurrencyRewardLayer::init @ 0x911f2c", "<???> @ 0xab5a0"], "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"}