{"type": "func", "start": 4303935808, "end": 4303936234, "name": "CurrencySprite::initWithSprite", "pseudocode": "// \n// CurrencySprite::initWithSprite from 0x10088d940 to 0x10088daea (426 bytes)\n// \n// 1 xrefs:\n// > CurrencySprite::createWithSprite @ 0x10088bd8f\n// \n// This function is hookable on this platform (idp: pc, 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 12:37:02 +0000\n// \n\n__int64 __fastcall CurrencySprite::initWithSprite(__int64 *a1, __int64 a2)\n{\n  __int64 result; // rax\n  unsigned int v4; // r12d\n  double v5; // xmm0_8\n  char *v6; // rax\n  _OWORD *v7; // rax\n  _DWORD *v8; // rax\n  __int64 v9; // rdi\n  double v10; // xmm0_8\n  char *v11; // r15\n  _OWORD *v12; // rax\n  _DWORD *v13; // rax\n  double v14; // [rsp+Ch] [rbp-34h] BYREF\n  float v15; // [rsp+14h] [rbp-2Ch]\n  __int16 v16; // [rsp+18h] [rbp-28h] BYREF\n  char v17; // [rsp+1Ah] [rbp-26h]\n  __int16 v18; // [rsp+1Ch] [rbp-24h] BYREF\n  char v19; // [rsp+1Eh] [rbp-22h]\n\n  result = cocos2d::CCSprite::init((__int64)a1);\n  if ( (_BYTE)result )\n  {\n    v4 = result;\n    (*(void (__fastcall **)(__int64 *, __int64))(*a1 + 456))(a1, a2);\n    v5 = (*(double (__fastcall **)(__int64, void *))(*(_QWORD *)a2 + 184LL))(a2, &unk_100BE6C08);\n    v6 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)\"shineBurst_001.png\", v5);\n    a1[83] = (__int64)v6;\n    cocos2d::CCObject::retain((__int64)v6);\n    v15 = flt_100A05F68[(float)((float)rand() * 4.6566129e-10) > 0.5];\n    v7 = cocos2d::CCRotateBy::create_1((__m128)0x3F800000u, 90.0 * v15);\n    v8 = cocos2d::CCRepeatForever::create((__int64)v7);\n    cocos2d::CCNode::runAction(a1[83], (__int64)v8);\n    (*(void (__fastcall **)(__int64, float))(*(_QWORD *)a1[83] + 160LL))(a1[83], 2.0);\n    v9 = a1[83];\n    v17 = -1;\n    v16 = -1;\n    v10 = (*(double (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v9 + 960LL))(v9, &v16);\n    v11 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)\"shineBurst_001.png\", v10);\n    (*(void (__fastcall **)(__int64, char *))(*(_QWORD *)a1[83] + 456LL))(a1[83], v11);\n    cocos2d::CCNode::convertToNodeSpace(&v14, a1[83], (unsigned int *)&unk_100BE6C08);\n    (*(void (__fastcall **)(char *, double *))(*(_QWORD *)v11 + 184LL))(v11, &v14);\n    (*(void (__fastcall **)(char *, float))(*(_QWORD *)v11 + 160LL))(v11, 0.80000001);\n    v19 = -1;\n    v18 = -1;\n    (*(void (__fastcall **)(char *, __int16 *))(*(_QWORD *)v11 + 960LL))(v11, &v18);\n    v12 = cocos2d::CCRotateBy::create_1((__m128)0x3F800000u, v15 * -180.0);\n    v13 = cocos2d::CCRepeatForever::create((__int64)v12);\n    cocos2d::CCNode::runAction((__int64)v11, (__int64)v13);\n    return v4;\n  }\n  return result;\n}", "assembly": "; \n; CurrencySprite::initWithSprite from 0x10088d940 to 0x10088daea (426 bytes)\n; \n; 1 xrefs:\n; > CurrencySprite::createWithSprite @ 0x10088bd8f\n; \n; This function is hookable on this platform (idp: pc, 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 12:37:02 +0000\n; \npush    rbp                                                            ; +0x0, 0x10088d940\nmov     rbp, rsp                                                       ; +0x1, 0x10088d941\npush    r15                                                            ; +0x4, 0x10088d944\npush    r14                                                            ; +0x6, 0x10088d946\npush    r12                                                            ; +0x8, 0x10088d948\npush    rbx                                                            ; +0xa, 0x10088d94a\nsub     rsp, 20h                                                       ; +0xb, 0x10088d94b\nmov     r15, rsi                                                       ; +0xf, 0x10088d94f\nmov     rbx, rdi                                                       ; +0x12, 0x10088d952\ncall    cocos2d__CCSprite__init                                        ; +0x15, 0x10088d955\ntest    al, al                                                         ; +0x1a, 0x10088d95a\njz      loc_10088DADD                                                  ; +0x1c, 0x10088d95c\nmov     rcx, [rbx]                                                     ; +0x22, 0x10088d962\nmov     rdi, rbx                                                       ; +0x25, 0x10088d965\nmov     rsi, r15                                                       ; +0x28, 0x10088d968\nmov     r12d, eax                                                      ; +0x2b, 0x10088d96b\ncall    qword ptr [rcx+1C8h]                                           ; +0x2e, 0x10088d96e\nmov     rax, [r15]                                                     ; +0x34, 0x10088d974\nlea     r14, unk_100BE6C08                                             ; +0x37, 0x10088d977\nmov     rdi, r15                                                       ; +0x3e, 0x10088d97e\nmov     rsi, r14                                                       ; +0x41, 0x10088d981\ncall    qword ptr [rax+0B8h]                                           ; +0x44, 0x10088d984\nlea     r15, aShineburst001P; \"shineBurst_001.png\"                     ; +0x4a, 0x10088d98a\nmov     rdi, r15                                                       ; +0x51, 0x10088d991\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0x54, 0x10088d994\nmov     [rbx+298h], rax                                                ; +0x59, 0x10088d999\nmov     rdi, rax                                                       ; +0x60, 0x10088d9a0\ncall    cocos2d__CCObject__retain                                      ; +0x63, 0x10088d9a3\ncall    _rand                                                          ; +0x68, 0x10088d9a8\ncvtsi2ss xmm0, eax                                                     ; +0x6d, 0x10088d9ad\nmulss   xmm0, cs:dword_100A03A50                                       ; +0x71, 0x10088d9b1\nxor     eax, eax                                                       ; +0x79, 0x10088d9b9\nucomiss xmm0, cs:dword_100A03578                                       ; +0x7b, 0x10088d9bb\nsetnbe  al                                                             ; +0x82, 0x10088d9c2\nlea     rcx, flt_100A05F68                                             ; +0x85, 0x10088d9c5\nmovss   xmm0, dword ptr [rcx+rax*4]                                    ; +0x8c, 0x10088d9cc\nmovss   [rbp+var_2C], xmm0                                             ; +0x91, 0x10088d9d1\nmovss   xmm1, cs:flt_100A035A4                                         ; +0x96, 0x10088d9d6\nmulss   xmm1, xmm0                                                     ; +0x9e, 0x10088d9de\nmovss   xmm0, cs:alpha                                                 ; +0xa2, 0x10088d9e2\ncall    cocos2d__CCRotateBy__create_1                                  ; +0xaa, 0x10088d9ea\nmov     rdi, rax                                                       ; +0xaf, 0x10088d9ef\ncall    cocos2d__CCRepeatForever__create                               ; +0xb2, 0x10088d9f2\nmov     rdi, [rbx+298h]                                                ; +0xb7, 0x10088d9f7\nmov     rsi, rax                                                       ; +0xbe, 0x10088d9fe\ncall    cocos2d__CCNode__runAction                                     ; +0xc1, 0x10088da01\nmov     rdi, [rbx+298h]                                                ; +0xc6, 0x10088da06\nmov     rax, [rdi]                                                     ; +0xcd, 0x10088da0d\nmovss   xmm0, cs:width                                                 ; +0xd0, 0x10088da10\ncall    qword ptr [rax+0A0h]                                           ; +0xd8, 0x10088da18\nmov     rdi, [rbx+298h]                                                ; +0xde, 0x10088da1e\nmov     [rbp+var_26], 0FFh                                             ; +0xe5, 0x10088da25\nmov     [rbp+var_28], 0FFFFh                                           ; +0xe9, 0x10088da29\nmov     rax, [rdi]                                                     ; +0xef, 0x10088da2f\nlea     rsi, [rbp+var_28]                                              ; +0xf2, 0x10088da32\ncall    qword ptr [rax+3C0h]                                           ; +0xf6, 0x10088da36\nmov     rdi, r15                                                       ; +0xfc, 0x10088da3c\ncall    cocos2d__CCSprite__createWithSpriteFrameName                   ; +0xff, 0x10088da3f\nmov     r15, rax                                                       ; +0x104, 0x10088da44\nmov     rdi, [rbx+298h]                                                ; +0x107, 0x10088da47\nmov     rax, [rdi]                                                     ; +0x10e, 0x10088da4e\nmov     rsi, r15                                                       ; +0x111, 0x10088da51\ncall    qword ptr [rax+1C8h]                                           ; +0x114, 0x10088da54\nmov     rsi, [rbx+298h]                                                ; +0x11a, 0x10088da5a\nlea     rbx, [rbp+var_34]                                              ; +0x121, 0x10088da61\nmov     rdi, rbx                                                       ; +0x125, 0x10088da65\nmov     rdx, r14                                                       ; +0x128, 0x10088da68\ncall    cocos2d__CCNode__convertToNodeSpace                            ; +0x12b, 0x10088da6b\nmov     rax, [r15]                                                     ; +0x130, 0x10088da70\nmov     rdi, r15                                                       ; +0x133, 0x10088da73\nmov     rsi, rbx                                                       ; +0x136, 0x10088da76\ncall    qword ptr [rax+0B8h]                                           ; +0x139, 0x10088da79\nmov     rax, [r15]                                                     ; +0x13f, 0x10088da7f\nmovss   xmm0, cs:dword_100A03588                                       ; +0x142, 0x10088da82\nmov     rdi, r15                                                       ; +0x14a, 0x10088da8a\ncall    qword ptr [rax+0A0h]                                           ; +0x14d, 0x10088da8d\nmov     [rbp+var_22], 0FFh                                             ; +0x153, 0x10088da93\nmov     [rbp+var_24], 0FFFFh                                           ; +0x157, 0x10088da97\nmov     rax, [r15]                                                     ; +0x15d, 0x10088da9d\nlea     rsi, [rbp+var_24]                                              ; +0x160, 0x10088daa0\nmov     rdi, r15                                                       ; +0x164, 0x10088daa4\ncall    qword ptr [rax+3C0h]                                           ; +0x167, 0x10088daa7\nmovss   xmm1, [rbp+var_2C]                                             ; +0x16d, 0x10088daad\nmulss   xmm1, cs:dword_100A035B4                                       ; +0x172, 0x10088dab2\nmovss   xmm0, cs:alpha                                                 ; +0x17a, 0x10088daba\ncall    cocos2d__CCRotateBy__create_1                                  ; +0x182, 0x10088dac2\nmov     rdi, rax                                                       ; +0x187, 0x10088dac7\ncall    cocos2d__CCRepeatForever__create                               ; +0x18a, 0x10088daca\nmov     rdi, r15                                                       ; +0x18f, 0x10088dacf\nmov     rsi, rax                                                       ; +0x192, 0x10088dad2\ncall    cocos2d__CCNode__runAction                                     ; +0x195, 0x10088dad5\nmov     eax, r12d                                                      ; +0x19a, 0x10088dada\nadd     rsp, 20h                                                       ; +0x19d, 0x10088dadd\npop     rbx                                                            ; +0x1a1, 0x10088dae1\npop     r12                                                            ; +0x1a2, 0x10088dae2\npop     r14                                                            ; +0x1a4, 0x10088dae4\npop     r15                                                            ; +0x1a6, 0x10088dae6\npop     rbp                                                            ; +0x1a8, 0x10088dae8\nretn                                                                   ; +0x1a9, 0x10088dae9", "xrefs": ["CurrencySprite::createWithSprite @ 0x10088bd8f"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}