{"type": "func", "start": 4302998096, "end": 4302998293, "name": "CurrencySprite::createWithSprite", "pseudocode": "// \n// CurrencySprite::createWithSprite from 0x1007a8a50 to 0x1007a8b15 (197 bytes)\n// \n// 1 xrefs:\n// > CurrencyRewardLayer::createObjectsFull @ 0x1007a8323\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 *__fastcall CurrencySprite::createWithSprite(cocos2d::CCSprite *a1)\n{\n  __int64 v1; // rsi\n  char *v2; // rbx\n\n  v2 = (char *)operator new(0x2A0u);\n  cocos2d::CCSprite::CCSprite((__int64)v2, v1);\n  *(_OWORD *)(v2 + 600) = 0;\n  *(_DWORD *)(v2 + 615) = 0;\n  *(_QWORD *)v2 = off_100991618;\n  *((_QWORD *)v2 + 40) = off_100991B00;\n  *((_QWORD *)v2 + 43) = off_100991B80;\n  *(_OWORD *)(v2 + 620) = 0;\n  *((_DWORD *)v2 + 159) = 1;\n  *((_QWORD *)v2 + 80) = 0;\n  *((_DWORD *)v2 + 162) = 1;\n  sub_10028CC30(v2 + 652);\n  *((_QWORD *)v2 + 83) = 0;\n  if ( CurrencySprite::initWithSprite((CurrencySprite *)v2, a1) )\n  {\n    cocos2d::CCObject::autorelease((cocos2d::CCObject *)v2);\n  }\n  else\n  {\n    (*(void (__fastcall **)(char *))(*(_QWORD *)v2 + 16LL))(v2);\n    return nullptr;\n  }\n  return (CurrencySprite *)v2;\n}", "assembly": "; \n; CurrencySprite::createWithSprite from 0x1007a8a50 to 0x1007a8b15 (197 bytes)\n; \n; 1 xrefs:\n; > CurrencyRewardLayer::createObjectsFull @ 0x1007a8323\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\npush    rbp                                                            ; +0x0, 0x1007a8a50\nmov     rbp, rsp                                                       ; +0x1, 0x1007a8a51\npush    r14                                                            ; +0x4, 0x1007a8a54\npush    rbx                                                            ; +0x6, 0x1007a8a56\nmov     r14, rdi                                                       ; +0x7, 0x1007a8a57\nmov     edi, 2A0h; __sz                                                ; +0xa, 0x1007a8a5a\ncall    __Znwm; operator new(ulong)                                    ; +0xf, 0x1007a8a5f\nmov     rbx, rax                                                       ; +0x14, 0x1007a8a64\nmov     rdi, rax                                                       ; +0x17, 0x1007a8a67\ncall    cocos2d__CCSprite__CCSprite                                    ; +0x1a, 0x1007a8a6a\nxorps   xmm0, xmm0                                                     ; +0x1f, 0x1007a8a6f\nmovups  xmmword ptr [rbx+258h], xmm0                                   ; +0x22, 0x1007a8a72\nmov     dword ptr [rbx+267h], 0                                        ; +0x29, 0x1007a8a79\nlea     rax, off_100991618                                             ; +0x33, 0x1007a8a83\nmov     [rbx], rax                                                     ; +0x3a, 0x1007a8a8a\nlea     rax, off_100991B00                                             ; +0x3d, 0x1007a8a8d\nmov     [rbx+140h], rax                                                ; +0x44, 0x1007a8a94\nlea     rax, off_100991B80                                             ; +0x4b, 0x1007a8a9b\nmov     [rbx+158h], rax                                                ; +0x52, 0x1007a8aa2\nmovups  xmmword ptr [rbx+26Ch], xmm0                                   ; +0x59, 0x1007a8aa9\nmov     dword ptr [rbx+27Ch], 1                                        ; +0x60, 0x1007a8ab0\nmov     qword ptr [rbx+280h], 0                                        ; +0x6a, 0x1007a8aba\nmov     dword ptr [rbx+288h], 1                                        ; +0x75, 0x1007a8ac5\nmov     rdi, rbx                                                       ; +0x7f, 0x1007a8acf\nadd     rdi, 28Ch                                                      ; +0x82, 0x1007a8ad2\ncall    sub_10028CC30                                                  ; +0x89, 0x1007a8ad9\nmov     qword ptr [rbx+298h], 0                                        ; +0x8e, 0x1007a8ade\nmov     rdi, rbx                                                       ; +0x99, 0x1007a8ae9\nmov     rsi, r14                                                       ; +0x9c, 0x1007a8aec\ncall    CurrencySprite__initWithSprite                                 ; +0x9f, 0x1007a8aef\ntest    al, al                                                         ; +0xa4, 0x1007a8af4\njz      short loc_1007A8B02                                            ; +0xa6, 0x1007a8af6\nmov     rdi, rbx                                                       ; +0xa8, 0x1007a8af8\ncall    cocos2d__CCObject__autorelease                                 ; +0xab, 0x1007a8afb\njmp     short loc_1007A8B0D                                            ; +0xb0, 0x1007a8b00\nmov     rax, [rbx]                                                     ; +0xb2, 0x1007a8b02\nmov     rdi, rbx                                                       ; +0xb5, 0x1007a8b05\ncall    qword ptr [rax+10h]                                            ; +0xb8, 0x1007a8b08\nxor     ebx, ebx                                                       ; +0xbb, 0x1007a8b0b\nmov     rax, rbx                                                       ; +0xbd, 0x1007a8b0d\npop     rbx                                                            ; +0xc0, 0x1007a8b10\npop     r14                                                            ; +0xc1, 0x1007a8b11\npop     rbp                                                            ; +0xc3, 0x1007a8b13\nretn                                                                   ; +0xc4, 0x1007a8b14", "xrefs": ["CurrencyRewardLayer::createObjectsFull @ 0x1007a8323"], "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"}