{"type": "func", "start": 4302056880, "end": 4302057095, "name": "CCSpriteWithHue::createWithTexture", "pseudocode": "// \n// CCSpriteWithHue::createWithTexture from 0x1006c2db0 to 0x1006c2e87 (215 bytes)\n// \n// 0 xrefs:\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:35:32 +0000\n// \n\n_QWORD *__fastcall CCSpriteWithHue::createWithTexture(__int64 a1)\n{\n  _QWORD *v1; // rax\n  _QWORD *v2; // rbx\n  __m128 v4; // [rsp+8h] [rbp-38h] BYREF\n  _QWORD v5[5]; // [rsp+18h] [rbp-28h] BYREF\n\n  v1 = operator new(0x298u, &std::nothrow);\n  if ( !v1 )\n    return nullptr;\n  v2 = v1;\n  __bzero(v1, 664);\n  cocos2d::CCSprite::CCSprite((__int64)v2);\n  *v2 = off_100B8D5F0;\n  v2[40] = off_100B8DAF0;\n  v2[43] = off_100B8DB70;\n  sub_1002787F0(&v4, (unsigned __int64 *)&unk_100BE60D8);\n  (*(void (__fastcall **)(_QWORD *, __int64))(*(_QWORD *)a1 + 144LL))(v5, a1);\n  sub_100278660(&v4.i64[1], v5);\n  if ( !(*(unsigned __int8 (__fastcall **)(_QWORD *, __int64, __m128 *))(*v2 + 1016LL))(v2, a1, &v4) )\n  {\n    (*(void (__fastcall **)(_QWORD *))(*v2 + 16LL))(v2);\n    return nullptr;\n  }\n  cocos2d::CCObject::autorelease((__int64)v2);\n  return v2;\n}", "assembly": "; \n; CCSpriteWithHue::createWithTexture from 0x1006c2db0 to 0x1006c2e87 (215 bytes)\n; \n; 0 xrefs:\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:35:32 +0000\n; \npush    rbp                                                            ; +0x0, 0x1006c2db0\nmov     rbp, rsp                                                       ; +0x1, 0x1006c2db1\npush    r15                                                            ; +0x4, 0x1006c2db4\npush    r14                                                            ; +0x6, 0x1006c2db6\npush    r12                                                            ; +0x8, 0x1006c2db8\npush    rbx                                                            ; +0xa, 0x1006c2dba\nsub     rsp, 20h                                                       ; +0xb, 0x1006c2dbb\nmov     r14, rdi                                                       ; +0xf, 0x1006c2dbf\nmov     rsi, cs:__ZSt7nothrow_ptr; std::nothrow_t *                    ; +0x12, 0x1006c2dc2\nmov     edi, 298h; __sz                                                ; +0x19, 0x1006c2dc9\ncall    __ZnwmRKSt9nothrow_t; operator new(ulong,std::nothrow_t const&) ; +0x1e, 0x1006c2dce\ntest    rax, rax                                                       ; +0x23, 0x1006c2dd3\njz      loc_1006C2E75                                                  ; +0x26, 0x1006c2dd6\nmov     rbx, rax                                                       ; +0x2c, 0x1006c2ddc\nmov     esi, 298h                                                      ; +0x2f, 0x1006c2ddf\nmov     rdi, rax                                                       ; +0x34, 0x1006c2de4\ncall    ___bzero                                                       ; +0x37, 0x1006c2de7\nmov     rdi, rbx                                                       ; +0x3c, 0x1006c2dec\ncall    cocos2d__CCSprite__CCSprite                                    ; +0x3f, 0x1006c2def\nlea     rax, off_100B8D5F0                                             ; +0x44, 0x1006c2df4\nmov     [rbx], rax                                                     ; +0x4b, 0x1006c2dfb\nlea     rax, off_100B8DAF0                                             ; +0x4e, 0x1006c2dfe\nmov     [rbx+140h], rax                                                ; +0x55, 0x1006c2e05\nlea     rax, off_100B8DB70                                             ; +0x5c, 0x1006c2e0c\nmov     [rbx+158h], rax                                                ; +0x63, 0x1006c2e13\nlea     rsi, unk_100BE60D8                                             ; +0x6a, 0x1006c2e1a\nlea     r15, [rbp+var_38]                                              ; +0x71, 0x1006c2e21\nmov     rdi, r15                                                       ; +0x75, 0x1006c2e25\ncall    sub_1002787F0                                                  ; +0x78, 0x1006c2e28\nmov     rax, [r14]                                                     ; +0x7d, 0x1006c2e2d\nlea     r12, [rbp+var_28]                                              ; +0x80, 0x1006c2e30\nmov     rdi, r12                                                       ; +0x84, 0x1006c2e34\nmov     rsi, r14                                                       ; +0x87, 0x1006c2e37\ncall    qword ptr [rax+90h]                                            ; +0x8a, 0x1006c2e3a\nlea     rdi, [rbp+var_30]                                              ; +0x90, 0x1006c2e40\nmov     rsi, r12                                                       ; +0x94, 0x1006c2e44\ncall    sub_100278660                                                  ; +0x97, 0x1006c2e47\nmov     rax, [rbx]                                                     ; +0x9c, 0x1006c2e4c\nmov     rdi, rbx                                                       ; +0x9f, 0x1006c2e4f\nmov     rsi, r14                                                       ; +0xa2, 0x1006c2e52\nmov     rdx, r15                                                       ; +0xa5, 0x1006c2e55\ncall    qword ptr [rax+3F8h]                                           ; +0xa8, 0x1006c2e58\ntest    al, al                                                         ; +0xae, 0x1006c2e5e\njz      short loc_1006C2E6C                                            ; +0xb0, 0x1006c2e60\nmov     rdi, rbx                                                       ; +0xb2, 0x1006c2e62\ncall    cocos2d__CCObject__autorelease                                 ; +0xb5, 0x1006c2e65\njmp     short loc_1006C2E77                                            ; +0xba, 0x1006c2e6a\nmov     rax, [rbx]                                                     ; +0xbc, 0x1006c2e6c\nmov     rdi, rbx                                                       ; +0xbf, 0x1006c2e6f\ncall    qword ptr [rax+10h]                                            ; +0xc2, 0x1006c2e72\nxor     ebx, ebx                                                       ; +0xc5, 0x1006c2e75\nmov     rax, rbx                                                       ; +0xc7, 0x1006c2e77\nadd     rsp, 20h                                                       ; +0xca, 0x1006c2e7a\npop     rbx                                                            ; +0xce, 0x1006c2e7e\npop     r12                                                            ; +0xcf, 0x1006c2e7f\npop     r14                                                            ; +0xd1, 0x1006c2e81\npop     r15                                                            ; +0xd3, 0x1006c2e83\npop     rbp                                                            ; +0xd5, 0x1006c2e85\nretn                                                                   ; +0xd6, 0x1006c2e86", "xrefs": [], "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"}