{"type": "func", "start": 4301192560, "end": 4301192741, "name": "CCSpriteWithHue::createWithTexture", "pseudocode": "// \n// CCSpriteWithHue::createWithTexture from 0x1005efd70 to 0x1005efe25 (181 bytes)\n// \n// 0 xrefs:\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\nCCSpriteWithHue *__fastcall CCSpriteWithHue::createWithTexture(\n        cocos2d::CCTexture2D *a1,\n        const cocos2d::CCRect *a2,\n        bool a3)\n{\n  _QWORD *v4; // rax\n  _QWORD *v5; // rbx\n\n  v4 = operator new(0x298u, &std::nothrow);\n  if ( !v4 )\n    return nullptr;\n  v5 = v4;\n  __bzero(v4, 664);\n  cocos2d::CCSprite::CCSprite((__int64)v5, 664);\n  *v5 = off_10097A1A8;\n  v5[40] = off_10097A698;\n  v5[43] = off_10097A718;\n  if ( !cocos2d::CCSprite::initWithTexture((cocos2d::CCSprite *)v5, a1, a2, a3) )\n  {\n    (*(void (__fastcall **)(_QWORD *))(*v5 + 16LL))(v5);\n    return nullptr;\n  }\n  *(_OWORD *)((char *)v5 + 596) = xmmword_100821A30;\n  CCSpriteWithHue::initShader((CCSpriteWithHue *)v5);\n  cocos2d::CCObject::autorelease((cocos2d::CCObject *)v5);\n  return (CCSpriteWithHue *)v5;\n}", "assembly": "; \n; CCSpriteWithHue::createWithTexture from 0x1005efd70 to 0x1005efe25 (181 bytes)\n; \n; 0 xrefs:\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, 0x1005efd70\nmov     rbp, rsp                                                       ; +0x1, 0x1005efd71\npush    r15                                                            ; +0x4, 0x1005efd74\npush    r14                                                            ; +0x6, 0x1005efd76\npush    r12                                                            ; +0x8, 0x1005efd78\npush    rbx                                                            ; +0xa, 0x1005efd7a\nmov     r12d, edx                                                      ; +0xb, 0x1005efd7b\nmov     r14, rsi                                                       ; +0xe, 0x1005efd7e\nmov     r15, rdi                                                       ; +0x11, 0x1005efd81\nmov     rsi, cs:__ZSt7nothrow_ptr; std::nothrow_t *                    ; +0x14, 0x1005efd84\nmov     edi, 298h; __sz                                                ; +0x1b, 0x1005efd8b\ncall    __ZnwmRKSt9nothrow_t; operator new(ulong,std::nothrow_t const&) ; +0x20, 0x1005efd90\ntest    rax, rax                                                       ; +0x25, 0x1005efd95\njz      short loc_1005EFE17                                            ; +0x28, 0x1005efd98\nmov     rbx, rax                                                       ; +0x2a, 0x1005efd9a\nmov     esi, 298h                                                      ; +0x2d, 0x1005efd9d\nmov     rdi, rax                                                       ; +0x32, 0x1005efda2\ncall    ___bzero                                                       ; +0x35, 0x1005efda5\nmov     rdi, rbx                                                       ; +0x3a, 0x1005efdaa\ncall    cocos2d__CCSprite__CCSprite                                    ; +0x3d, 0x1005efdad\nlea     rax, off_10097A1A8                                             ; +0x42, 0x1005efdb2\nmov     [rbx], rax                                                     ; +0x49, 0x1005efdb9\nlea     rax, off_10097A698                                             ; +0x4c, 0x1005efdbc\nmov     [rbx+140h], rax                                                ; +0x53, 0x1005efdc3\nlea     rax, off_10097A718                                             ; +0x5a, 0x1005efdca\nmov     [rbx+158h], rax                                                ; +0x61, 0x1005efdd1\nmovzx   ecx, r12b                                                      ; +0x68, 0x1005efdd8\nmov     rdi, rbx                                                       ; +0x6c, 0x1005efddc\nmov     rsi, r15                                                       ; +0x6f, 0x1005efddf\nmov     rdx, r14                                                       ; +0x72, 0x1005efde2\ncall    cocos2d__CCSprite__initWithTexture                             ; +0x75, 0x1005efde5\ntest    al, al                                                         ; +0x7a, 0x1005efdea\njz      short loc_1005EFE0E                                            ; +0x7c, 0x1005efdec\nmovaps  xmm0, cs:xmmword_100821A30                                     ; +0x7e, 0x1005efdee\nmovups  xmmword ptr [rbx+254h], xmm0                                   ; +0x85, 0x1005efdf5\nmov     rdi, rbx                                                       ; +0x8c, 0x1005efdfc\ncall    CCSpriteWithHue__initShader                                    ; +0x8f, 0x1005efdff\nmov     rdi, rbx                                                       ; +0x94, 0x1005efe04\ncall    cocos2d__CCObject__autorelease                                 ; +0x97, 0x1005efe07\njmp     short loc_1005EFE19                                            ; +0x9c, 0x1005efe0c\nmov     rax, [rbx]                                                     ; +0x9e, 0x1005efe0e\nmov     rdi, rbx                                                       ; +0xa1, 0x1005efe11\ncall    qword ptr [rax+10h]                                            ; +0xa4, 0x1005efe14\nxor     ebx, ebx                                                       ; +0xa7, 0x1005efe17\nmov     rax, rbx                                                       ; +0xa9, 0x1005efe19\npop     rbx                                                            ; +0xac, 0x1005efe1c\npop     r12                                                            ; +0xad, 0x1005efe1d\npop     r14                                                            ; +0xaf, 0x1005efe1f\npop     r15                                                            ; +0xb1, 0x1005efe21\npop     rbp                                                            ; +0xb3, 0x1005efe23\nretn                                                                   ; +0xb4, 0x1005efe24", "xrefs": [], "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"}