{"type": "func", "start": 4302057344, "end": 4302057535, "name": "CCSpriteWithHue::createWithSpriteFrame", "pseudocode": "// \n// CCSpriteWithHue::createWithSpriteFrame from 0x1006c2f80 to 0x1006c303f (191 bytes)\n// \n// 1 xrefs:\n// > CCSpriteWithHue::createWithSpriteFrameName @ 0x1006c3090\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__int64 (__fastcall ***__fastcall CCSpriteWithHue::createWithSpriteFrame(__int64 a1))()\n{\n  __int64 (__fastcall ***v1)(); // rax\n  __int64 (__fastcall ***v2)(); // rbx\n  __int64 (__fastcall **v3)(); // rax\n  __int64 Texture; // rax\n  char v5; // r15\n\n  v1 = (__int64 (__fastcall ***)())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  v3 = off_100B8D5F0;\n  *v2 = off_100B8D5F0;\n  v2[40] = off_100B8DAF0;\n  v2[43] = off_100B8DB70;\n  if ( !a1 )\n  {\nLABEL_6:\n    ((void (__fastcall *)(__int64 (__fastcall ***)()))v3[2])(v2);\n    return nullptr;\n  }\n  Texture = cocos2d::CCSpriteFrame::getTexture(a1);\n  v5 = ((__int64 (__fastcall *)(__int64 (__fastcall ***)(), __int64, __int64))(*v2)[127])(v2, Texture, a1 + 92);\n  ((void (__fastcall *)(__int64 (__fastcall ***)(), __int64))(*v2)[145])(v2, a1);\n  if ( !v5 )\n  {\n    v3 = *v2;\n    goto LABEL_6;\n  }\n  cocos2d::CCObject::autorelease((__int64)v2);\n  return v2;\n}", "assembly": "; \n; CCSpriteWithHue::createWithSpriteFrame from 0x1006c2f80 to 0x1006c303f (191 bytes)\n; \n; 1 xrefs:\n; > CCSpriteWithHue::createWithSpriteFrameName @ 0x1006c3090\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, 0x1006c2f80\nmov     rbp, rsp                                                       ; +0x1, 0x1006c2f81\npush    r15                                                            ; +0x4, 0x1006c2f84\npush    r14                                                            ; +0x6, 0x1006c2f86\npush    rbx                                                            ; +0x8, 0x1006c2f88\npush    rax                                                            ; +0x9, 0x1006c2f89\nmov     r14, rdi                                                       ; +0xa, 0x1006c2f8a\nmov     rsi, cs:__ZSt7nothrow_ptr; std::nothrow_t *                    ; +0xd, 0x1006c2f8d\nmov     edi, 298h; __sz                                                ; +0x14, 0x1006c2f94\ncall    __ZnwmRKSt9nothrow_t; operator new(ulong,std::nothrow_t const&) ; +0x19, 0x1006c2f99\ntest    rax, rax                                                       ; +0x1e, 0x1006c2f9e\njz      loc_1006C302F                                                  ; +0x21, 0x1006c2fa1\nmov     rbx, rax                                                       ; +0x27, 0x1006c2fa7\nmov     esi, 298h                                                      ; +0x2a, 0x1006c2faa\nmov     rdi, rax                                                       ; +0x2f, 0x1006c2faf\ncall    ___bzero                                                       ; +0x32, 0x1006c2fb2\nmov     rdi, rbx                                                       ; +0x37, 0x1006c2fb7\ncall    cocos2d__CCSprite__CCSprite                                    ; +0x3a, 0x1006c2fba\nlea     rax, off_100B8D5F0                                             ; +0x3f, 0x1006c2fbf\nmov     [rbx], rax                                                     ; +0x46, 0x1006c2fc6\nlea     rcx, off_100B8DAF0                                             ; +0x49, 0x1006c2fc9\nmov     [rbx+140h], rcx                                                ; +0x50, 0x1006c2fd0\nlea     rcx, off_100B8DB70                                             ; +0x57, 0x1006c2fd7\nmov     [rbx+158h], rcx                                                ; +0x5e, 0x1006c2fde\ntest    r14, r14                                                       ; +0x65, 0x1006c2fe5\njz      short loc_1006C3029                                            ; +0x68, 0x1006c2fe8\nmov     rdi, r14                                                       ; +0x6a, 0x1006c2fea\ncall    cocos2d__CCSpriteFrame__getTexture                             ; +0x6d, 0x1006c2fed\nlea     rdx, [r14+5Ch]                                                 ; +0x72, 0x1006c2ff2\nmov     rcx, [rbx]                                                     ; +0x76, 0x1006c2ff6\nmov     rdi, rbx                                                       ; +0x79, 0x1006c2ff9\nmov     rsi, rax                                                       ; +0x7c, 0x1006c2ffc\ncall    qword ptr [rcx+3F8h]                                           ; +0x7f, 0x1006c2fff\nmov     r15d, eax                                                      ; +0x85, 0x1006c3005\nmov     rax, [rbx]                                                     ; +0x88, 0x1006c3008\nmov     rdi, rbx                                                       ; +0x8b, 0x1006c300b\nmov     rsi, r14                                                       ; +0x8e, 0x1006c300e\ncall    qword ptr [rax+488h]                                           ; +0x91, 0x1006c3011\ntest    r15b, r15b                                                     ; +0x97, 0x1006c3017\njz      short loc_1006C3026                                            ; +0x9a, 0x1006c301a\nmov     rdi, rbx                                                       ; +0x9c, 0x1006c301c\ncall    cocos2d__CCObject__autorelease                                 ; +0x9f, 0x1006c301f\njmp     short loc_1006C3031                                            ; +0xa4, 0x1006c3024\nmov     rax, [rbx]                                                     ; +0xa6, 0x1006c3026\nmov     rdi, rbx                                                       ; +0xa9, 0x1006c3029\ncall    qword ptr [rax+10h]                                            ; +0xac, 0x1006c302c\nxor     ebx, ebx                                                       ; +0xaf, 0x1006c302f\nmov     rax, rbx                                                       ; +0xb1, 0x1006c3031\nadd     rsp, 8                                                         ; +0xb4, 0x1006c3034\npop     rbx                                                            ; +0xb8, 0x1006c3038\npop     r14                                                            ; +0xb9, 0x1006c3039\npop     r15                                                            ; +0xbb, 0x1006c303b\npop     rbp                                                            ; +0xbd, 0x1006c303d\nretn                                                                   ; +0xbe, 0x1006c303e", "xrefs": ["CCSpriteWithHue::createWithSpriteFrameName @ 0x1006c3090"], "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"}