{"type": "func", "start": 6443036272, "end": 6443036366, "name": "cocos2d::CCSprite::initWithTexture", "pseudocode": "// \n// cocos2d::CCSprite::initWithTexture from 0x18008ee70 to 0x18008eece (94 bytes)\n// \n// 7 xrefs:\n// > <???> @ 0x1800f1cf8\n// > <???> @ 0x1800f21e0\n// > <???> @ 0x1800f2d90\n// > <???> @ 0x18010a1d0\n// > <???> @ 0x18010d1e8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bfe80\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 11:22:07 +0000\n// \n\nbool __fastcall cocos2d::CCSprite::initWithTexture(cocos2d::CCSprite *this, struct cocos2d::CCTexture2D *a2)\n{\n  _DWORD *v4; // rax\n  _BYTE v6[8]; // [rsp+20h] [rbp-18h] BYREF\n  _DWORD v7[4]; // [rsp+28h] [rbp-10h] BYREF\n  char v8; // [rsp+40h] [rbp+8h] BYREF\n\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v6, (const struct cocos2d::CCRect *)&unk_1801B2830);\n  v4 = (_DWORD *)(*(__int64 (__fastcall **)(struct cocos2d::CCTexture2D *, char *))(*(_QWORD *)a2 + 136LL))(a2, &v8);\n  cocos2d::CCSize::operator=(v7, v4);\n  return (*(bool (__fastcall **)(cocos2d::CCSprite *, struct cocos2d::CCTexture2D *, _BYTE *))(*(_QWORD *)this + 896LL))(\n           this,\n           a2,\n           v6);\n}", "assembly": "; \n; cocos2d::CCSprite::initWithTexture from 0x18008ee70 to 0x18008eece (94 bytes)\n; \n; 7 xrefs:\n; > <???> @ 0x1800f1cf8\n; > <???> @ 0x1800f21e0\n; > <???> @ 0x1800f2d90\n; > <???> @ 0x18010a1d0\n; > <???> @ 0x18010d1e8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bfe80\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 11:22:07 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18008ee70\npush    rdi                                                            ; +0x5, 0x18008ee75\nsub     rsp, 30h                                                       ; +0x6, 0x18008ee76\nmov     rbx, rdx                                                       ; +0xa, 0x18008ee7a\nmov     rdi, rcx                                                       ; +0xd, 0x18008ee7d\nlea     rdx, unk_1801B2830; struct cocos2d::CCRect *                   ; +0x10, 0x18008ee80\nlea     rcx, [rsp+38h+var_18]; this                                    ; +0x17, 0x18008ee87\ncall    ??0CCRect@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCRect::CCRect(cocos2d::CCRect const &) ; +0x1c, 0x18008ee8c\nmov     rax, [rbx]                                                     ; +0x21, 0x18008ee91\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x24, 0x18008ee94\nmov     rcx, rbx                                                       ; +0x29, 0x18008ee99\ncall    qword ptr [rax+88h]                                            ; +0x2c, 0x18008ee9c\nmov     rdx, rax                                                       ; +0x32, 0x18008eea2\nlea     rcx, [rsp+38h+var_10]                                          ; +0x35, 0x18008eea5\ncall    ??4CCSize@cocos2d@@QEAAAEAV01@AEBVCCPoint@1@@Z; cocos2d::CCSize::operator=(cocos2d::CCPoint const &) ; +0x3a, 0x18008eeaa\nmov     rax, [rdi]                                                     ; +0x3f, 0x18008eeaf\nlea     r8, [rsp+38h+var_18]                                           ; +0x42, 0x18008eeb2\nmov     rdx, rbx                                                       ; +0x47, 0x18008eeb7\nmov     rcx, rdi                                                       ; +0x4a, 0x18008eeba\ncall    qword ptr [rax+380h]                                           ; +0x4d, 0x18008eebd\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x53, 0x18008eec3\nadd     rsp, 30h                                                       ; +0x58, 0x18008eec8\npop     rdi                                                            ; +0x5c, 0x18008eecc\nretn                                                                   ; +0x5d, 0x18008eecd", "xrefs": ["<???> @ 0x1800f1cf8", "<???> @ 0x1800f21e0", "<???> @ 0x1800f2d90", "<???> @ 0x18010a1d0", "<???> @ 0x18010d1e8", "<???> @ 0x18014cf68", "<???> @ 0x1801bfe80"], "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"}