{"type": "func", "start": 4298253644, "end": 4298254072, "name": "CurrencySprite::initWithSprite", "pseudocode": "// \n// CurrencySprite::initWithSprite from 0x10032254c to 0x1003226f8 (428 bytes)\n// \n// 1 xrefs:\n// > CurrencySprite::createWithSprite @ 0x100320f58\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\nbool __fastcall CurrencySprite::initWithSprite(CurrencySprite *a1, cocos2d::CCSprite *a2)\n{\n  _BOOL4 v4; // w19\n  cocos2d::CCSprite *v5; // x0\n  float v6; // s8\n  cocos2d::CCRotateBy *v7; // x0\n  cocos2d::CCRepeatForever *v8; // x0\n  cocos2d::CCSprite *m_burstSprite; // x0\n  cocos2d::CCSprite *v10; // x22\n  cocos2d::CCRotateBy *v11; // x0\n  cocos2d::CCRepeatForever *v12; // x0\n  __int16 v14; // [xsp+0h] [xbp-50h] BYREF\n  char v15; // [xsp+2h] [xbp-4Eh]\n  _BYTE v16[8]; // [xsp+4h] [xbp-4Ch] BYREF\n  __int16 v17; // [xsp+Ch] [xbp-44h] BYREF\n  char v18; // [xsp+Eh] [xbp-42h]\n  cocos2d::CCPoint v19; // 0:kr00_8.8\n\n  v4 = cocos2d::CCSprite::init(a1);\n  if ( v4 )\n  {\n    ((void (__fastcall *)(CurrencySprite *, cocos2d::CCSprite *))a1->addChild)(a1, a2);\n    ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCPoint *))a2->setPosition)(a2, &stru_10086E040);\n    v5 = cocos2d::CCSprite::createWithSpriteFrameName(\"shineBurst_001.png\");\n    a1->m_burstSprite = v5;\n    cocos2d::CCObject::retain(v5);\n    if ( vcvts_n_f32_s32(rand(), 0x1Fu) <= 0.5 )\n      v6 = -1.0;\n    else\n      v6 = 1.0;\n    v7 = cocos2d::CCRotateBy::create_1(1.0, v6 * 90.0);\n    v8 = cocos2d::CCRepeatForever::create(v7);\n    cocos2d::CCNode::runAction(a1->m_burstSprite, v8);\n    ((void (__fastcall *)(cocos2d::CCSprite *, float))a1->m_burstSprite->setScale)(a1->m_burstSprite, 2.0);\n    m_burstSprite = a1->m_burstSprite;\n    v18 = -1;\n    v17 = -1;\n    ((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))m_burstSprite->setColor)(m_burstSprite, &v17);\n    v10 = cocos2d::CCSprite::createWithSpriteFrameName(\"shineBurst_001.png\");\n    ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSprite *))a1->m_burstSprite->addChild)(a1->m_burstSprite, v10);\n    v19 = cocos2d::CCNode::convertToNodeSpace(a1->m_burstSprite, &stru_10086E040);\n    ((void (__fastcall *)(cocos2d::CCSprite *, _BYTE *, float, float))v10->setPosition)(v10, v16, v19.x, v19.y);\n    ((void (__fastcall *)(cocos2d::CCSprite *, float))v10->setScale)(v10, 0.8);\n    v15 = -1;\n    v14 = -1;\n    ((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))v10->setColor)(v10, &v14);\n    v11 = cocos2d::CCRotateBy::create_1(1.0, v6 * -180.0);\n    v12 = cocos2d::CCRepeatForever::create(v11);\n    cocos2d::CCNode::runAction(v10, v12);\n  }\n  return v4;\n}", "assembly": "; \n; CurrencySprite::initWithSprite from 0x10032254c to 0x1003226f8 (428 bytes)\n; \n; 1 xrefs:\n; > CurrencySprite::createWithSprite @ 0x100320f58\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, #0x60                                          ; +0x0, 0x10032254c\nSTP             D9, D8, [SP,#0x50+var_40]                              ; +0x4, 0x100322550\nSTP             X24, X23, [SP,#0x50+var_30]                            ; +0x8, 0x100322554\nSTP             X22, X21, [SP,#0x50+var_20]                            ; +0xc, 0x100322558\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0x10, 0x10032255c\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x14, 0x100322560\nADD             X29, SP, #0x50                                         ; +0x18, 0x100322564\nMOV             X22, X1                                                ; +0x1c, 0x100322568\nMOV             X20, X0                                                ; +0x20, 0x10032256c\nBL              cocos2d__CCSprite__init                                ; +0x24, 0x100322570\nMOV             X19, X0                                                ; +0x28, 0x100322574\nCBZ             W0, loc_1003226D8                                      ; +0x2c, 0x100322578\nLDR             X8, [X20]                                              ; +0x30, 0x10032257c\nLDR             X8, [X8,#0x1B8]                                        ; +0x34, 0x100322580\nMOV             X0, X20                                                ; +0x38, 0x100322584\nMOV             X1, X22                                                ; +0x3c, 0x100322588\nBLR             X8                                                     ; +0x40, 0x10032258c\nLDR             X8, [X22]                                              ; +0x44, 0x100322590\nLDR             X8, [X8,#0xB8]                                         ; +0x48, 0x100322594\nADRL            X21, stru_10086E040                                    ; +0x4c, 0x100322598\nMOV             X0, X22                                                ; +0x54, 0x1003225a0\nMOV             X1, X21                                                ; +0x58, 0x1003225a4\nBLR             X8                                                     ; +0x5c, 0x1003225a8\nADRL            X22, aShineburst001P; \"shineBurst_001.png\"             ; +0x60, 0x1003225ac\nMOV             X0, X22                                                ; +0x68, 0x1003225b4\nBL              cocos2d__CCSprite__createWithSpriteFrameName           ; +0x6c, 0x1003225b8\nSTR             X0, [X20,#0x298]                                       ; +0x70, 0x1003225bc\nBL              cocos2d__CCObject__retain                              ; +0x74, 0x1003225c0\nBL              _rand                                                  ; +0x78, 0x1003225c4\nSCVTF           S0, W0, #0x1F                                          ; +0x7c, 0x1003225c8\nFMOV            S1, #0.5                                               ; +0x80, 0x1003225cc\nFCMP            S0, S1                                                 ; +0x84, 0x1003225d0\nFMOV            S0, #-1.0                                              ; +0x88, 0x1003225d4\nFMOV            S1, #1.0                                               ; +0x8c, 0x1003225d8\nFCSEL           S8, S1, S0, GT                                         ; +0x90, 0x1003225dc\nMOV             W8, #0x42B40000                                        ; +0x94, 0x1003225e0\nFMOV            S0, W8                                                 ; +0x98, 0x1003225e4\nFMUL            S1, S8, S0                                             ; +0x9c, 0x1003225e8\nFMOV            S0, #1.0                                               ; +0xa0, 0x1003225ec\nBL              cocos2d__CCRotateBy__create_1                          ; +0xa4, 0x1003225f0\nBL              cocos2d__CCRepeatForever__create                       ; +0xa8, 0x1003225f4\nMOV             X1, X0                                                 ; +0xac, 0x1003225f8\nLDR             X0, [X20,#0x298]                                       ; +0xb0, 0x1003225fc\nBL              cocos2d__CCNode__runAction                             ; +0xb4, 0x100322600\nLDR             X0, [X20,#0x298]                                       ; +0xb8, 0x100322604\nLDR             X8, [X0]                                               ; +0xbc, 0x100322608\nLDR             X8, [X8,#0xA0]                                         ; +0xc0, 0x10032260c\nFMOV            S0, #2.0                                               ; +0xc4, 0x100322610\nBLR             X8                                                     ; +0xc8, 0x100322614\nLDR             X0, [X20,#0x298]                                       ; +0xcc, 0x100322618\nMOV             W23, #0xFF                                             ; +0xd0, 0x10032261c\nSTRB            W23, [SP,#0x50+var_42]                                 ; +0xd4, 0x100322620\nMOV             W24, #0xFFFF                                           ; +0xd8, 0x100322624\nSTRH            W24, [SP,#0x50+var_44]                                 ; +0xdc, 0x100322628\nLDR             X8, [X0]                                               ; +0xe0, 0x10032262c\nLDR             X8, [X8,#0x3B0]                                        ; +0xe4, 0x100322630\nADD             X1, SP, #0x50+var_44                                   ; +0xe8, 0x100322634\nBLR             X8                                                     ; +0xec, 0x100322638\nMOV             X0, X22                                                ; +0xf0, 0x10032263c\nBL              cocos2d__CCSprite__createWithSpriteFrameName           ; +0xf4, 0x100322640\nMOV             X22, X0                                                ; +0xf8, 0x100322644\nLDR             X0, [X20,#0x298]                                       ; +0xfc, 0x100322648\nLDR             X8, [X0]                                               ; +0x100, 0x10032264c\nLDR             X8, [X8,#0x1B8]                                        ; +0x104, 0x100322650\nMOV             X1, X22                                                ; +0x108, 0x100322654\nBLR             X8                                                     ; +0x10c, 0x100322658\nLDR             X0, [X20,#0x298]                                       ; +0x110, 0x10032265c\nADD             X8, SP, #0x50+var_4C                                   ; +0x114, 0x100322660\nMOV             X1, X21                                                ; +0x118, 0x100322664\nBL              cocos2d__CCNode__convertToNodeSpace                    ; +0x11c, 0x100322668\nLDR             X8, [X22]                                              ; +0x120, 0x10032266c\nLDR             X8, [X8,#0xB8]                                         ; +0x124, 0x100322670\nADD             X1, SP, #0x50+var_4C                                   ; +0x128, 0x100322674\nMOV             X0, X22                                                ; +0x12c, 0x100322678\nBLR             X8                                                     ; +0x130, 0x10032267c\nLDR             X8, [X22]                                              ; +0x134, 0x100322680\nLDR             X8, [X8,#0xA0]                                         ; +0x138, 0x100322684\nADRP            X9, #dword_100635340@PAGE                              ; +0x13c, 0x100322688\nLDR             S0, [X9,#dword_100635340@PAGEOFF]                      ; +0x140, 0x10032268c\nMOV             X0, X22                                                ; +0x144, 0x100322690\nBLR             X8                                                     ; +0x148, 0x100322694\nSTRB            W23, [SP,#0x50+var_4E]                                 ; +0x14c, 0x100322698\nSTRH            W24, [SP,#0x50+var_50]                                 ; +0x150, 0x10032269c\nLDR             X8, [X22]                                              ; +0x154, 0x1003226a0\nLDR             X8, [X8,#0x3B0]                                        ; +0x158, 0x1003226a4\nMOV             X1, SP                                                 ; +0x15c, 0x1003226a8\nMOV             X0, X22                                                ; +0x160, 0x1003226ac\nBLR             X8                                                     ; +0x164, 0x1003226b0\nMOV             W8, #0xC3340000                                        ; +0x168, 0x1003226b4\nFMOV            S0, W8                                                 ; +0x16c, 0x1003226b8\nFMUL            S1, S8, S0                                             ; +0x170, 0x1003226bc\nFMOV            S0, #1.0                                               ; +0x174, 0x1003226c0\nBL              cocos2d__CCRotateBy__create_1                          ; +0x178, 0x1003226c4\nBL              cocos2d__CCRepeatForever__create                       ; +0x17c, 0x1003226c8\nMOV             X1, X0                                                 ; +0x180, 0x1003226cc\nMOV             X0, X22                                                ; +0x184, 0x1003226d0\nBL              cocos2d__CCNode__runAction                             ; +0x188, 0x1003226d4\nMOV             X0, X19                                                ; +0x18c, 0x1003226d8\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0x190, 0x1003226dc\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0x194, 0x1003226e0\nLDP             X22, X21, [SP,#0x50+var_20]                            ; +0x198, 0x1003226e4\nLDP             X24, X23, [SP,#0x50+var_30]                            ; +0x19c, 0x1003226e8\nLDP             D9, D8, [SP,#0x50+var_40]                              ; +0x1a0, 0x1003226ec\nADD             SP, SP, #0x60 ; '`'                                    ; +0x1a4, 0x1003226f0\nRET                                                                    ; +0x1a8, 0x1003226f4", "xrefs": ["CurrencySprite::createWithSprite @ 0x100320f58"], "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"}