{"type": "func", "start": 4302994496, "end": 4302994709, "name": "CurrencySprite::create", "pseudocode": "// \n// CurrencySprite::create from 0x1007a7c40 to 0x1007a7d15 (213 bytes)\n// \n// 3 xrefs:\n// > CurrencyRewardLayer::init @ 0x1007a7214\n// > CurrencyRewardLayer::init @ 0x1007a74c3\n// > CurrencyRewardLayer::createObjectsFull @ 0x1007a8706\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!\nCurrencySprite *__fastcall CurrencySprite::create(CurrencySpriteType a1, bool a2)\n{\n  char *v2; // rbx\n\n  v2 = (char *)operator new(0x2A0u);\n  cocos2d::CCSprite::CCSprite((__int64)v2, a2);\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::init((CurrencySprite *)v2, a1, a2) )\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::create from 0x1007a7c40 to 0x1007a7d15 (213 bytes)\n; \n; 3 xrefs:\n; > CurrencyRewardLayer::init @ 0x1007a7214\n; > CurrencyRewardLayer::init @ 0x1007a74c3\n; > CurrencyRewardLayer::createObjectsFull @ 0x1007a8706\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, 0x1007a7c40\nmov     rbp, rsp                                                       ; +0x1, 0x1007a7c41\npush    r15                                                            ; +0x4, 0x1007a7c44\npush    r14                                                            ; +0x6, 0x1007a7c46\npush    rbx                                                            ; +0x8, 0x1007a7c48\npush    rax                                                            ; +0x9, 0x1007a7c49\nmov     r15d, esi                                                      ; +0xa, 0x1007a7c4a\nmov     r14d, edi                                                      ; +0xd, 0x1007a7c4d\nmov     edi, 2A0h; __sz                                                ; +0x10, 0x1007a7c50\ncall    __Znwm; operator new(ulong)                                    ; +0x15, 0x1007a7c55\nmov     rbx, rax                                                       ; +0x1a, 0x1007a7c5a\nmov     rdi, rax                                                       ; +0x1d, 0x1007a7c5d\ncall    cocos2d__CCSprite__CCSprite                                    ; +0x20, 0x1007a7c60\nxorps   xmm0, xmm0                                                     ; +0x25, 0x1007a7c65\nmovups  xmmword ptr [rbx+258h], xmm0                                   ; +0x28, 0x1007a7c68\nmov     dword ptr [rbx+267h], 0                                        ; +0x2f, 0x1007a7c6f\nlea     rax, off_100991618                                             ; +0x39, 0x1007a7c79\nmov     [rbx], rax                                                     ; +0x40, 0x1007a7c80\nlea     rax, off_100991B00                                             ; +0x43, 0x1007a7c83\nmov     [rbx+140h], rax                                                ; +0x4a, 0x1007a7c8a\nlea     rax, off_100991B80                                             ; +0x51, 0x1007a7c91\nmov     [rbx+158h], rax                                                ; +0x58, 0x1007a7c98\nmovups  xmmword ptr [rbx+26Ch], xmm0                                   ; +0x5f, 0x1007a7c9f\nmov     dword ptr [rbx+27Ch], 1                                        ; +0x66, 0x1007a7ca6\nmov     qword ptr [rbx+280h], 0                                        ; +0x70, 0x1007a7cb0\nmov     dword ptr [rbx+288h], 1                                        ; +0x7b, 0x1007a7cbb\nmov     rdi, rbx                                                       ; +0x85, 0x1007a7cc5\nadd     rdi, 28Ch                                                      ; +0x88, 0x1007a7cc8\ncall    sub_10028CC30                                                  ; +0x8f, 0x1007a7ccf\nmov     qword ptr [rbx+298h], 0                                        ; +0x94, 0x1007a7cd4\nmovzx   edx, r15b                                                      ; +0x9f, 0x1007a7cdf\nmov     rdi, rbx                                                       ; +0xa3, 0x1007a7ce3\nmov     esi, r14d                                                      ; +0xa6, 0x1007a7ce6\ncall    CurrencySprite__init                                           ; +0xa9, 0x1007a7ce9\ntest    al, al                                                         ; +0xae, 0x1007a7cee\njz      short loc_1007A7CFC                                            ; +0xb0, 0x1007a7cf0\nmov     rdi, rbx                                                       ; +0xb2, 0x1007a7cf2\ncall    cocos2d__CCObject__autorelease                                 ; +0xb5, 0x1007a7cf5\njmp     short loc_1007A7D07                                            ; +0xba, 0x1007a7cfa\nmov     rax, [rbx]                                                     ; +0xbc, 0x1007a7cfc\nmov     rdi, rbx                                                       ; +0xbf, 0x1007a7cff\ncall    qword ptr [rax+10h]                                            ; +0xc2, 0x1007a7d02\nxor     ebx, ebx                                                       ; +0xc5, 0x1007a7d05\nmov     rax, rbx                                                       ; +0xc7, 0x1007a7d07\nadd     rsp, 8                                                         ; +0xca, 0x1007a7d0a\npop     rbx                                                            ; +0xce, 0x1007a7d0e\npop     r14                                                            ; +0xcf, 0x1007a7d0f\npop     r15                                                            ; +0xd1, 0x1007a7d11\npop     rbp                                                            ; +0xd3, 0x1007a7d13\nretn                                                                   ; +0xd4, 0x1007a7d14", "xrefs": ["CurrencyRewardLayer::init @ 0x1007a7214", "CurrencyRewardLayer::init @ 0x1007a74c3", "CurrencyRewardLayer::createObjectsFull @ 0x1007a8706"], "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"}