{"type": "func", "start": 6443052048, "end": 6443052164, "name": "cocos2d::CCSpriteFrame::createWithTexture", "pseudocode": "// \n// cocos2d::CCSpriteFrame::createWithTexture from 0x180092c10 to 0x180092c84 (116 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCAnimation::addSpriteFrameWithFileName @ 0x18008ca31\n// > cocos2d::CCAnimation::addSpriteFrameWithTexture @ 0x18008ca62\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c04d4\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:08 +0000\n// \n\nstruct cocos2d::CCSpriteFrame *__fastcall cocos2d::CCSpriteFrame::createWithTexture(\n        struct cocos2d::CCTexture2D *a1,\n        const struct cocos2d::CCRect *a2)\n{\n  cocos2d::CCSpriteFrame *v4; // rax\n  cocos2d::CCSpriteFrame *v5; // rbx\n  cocos2d::CCSpriteFrame *v6; // rbx\n\n  v4 = (cocos2d::CCSpriteFrame *)sub_1800E4AC0(0xC8u);\n  v5 = v4;\n  if ( v4 )\n  {\n    memset(v4, 0, 0xC8u);\n    v6 = cocos2d::CCSpriteFrame::CCSpriteFrame(v5);\n  }\n  else\n  {\n    v6 = nullptr;\n  }\n  cocos2d::CCSpriteFrame::initWithTexture(v6, a1, a2);\n  cocos2d::CCObject::autorelease(v6);\n  return v6;\n}", "assembly": "; \n; cocos2d::CCSpriteFrame::createWithTexture from 0x180092c10 to 0x180092c84 (116 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCAnimation::addSpriteFrameWithFileName @ 0x18008ca31\n; > cocos2d::CCAnimation::addSpriteFrameWithTexture @ 0x18008ca62\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c04d4\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:08 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180092c10\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180092c15\npush    rdi                                                            ; +0xa, 0x180092c1a\nsub     rsp, 20h                                                       ; +0xb, 0x180092c1b\nmov     rdi, rdx                                                       ; +0xf, 0x180092c1f\nmov     rsi, rcx                                                       ; +0x12, 0x180092c22\nmov     ecx, 0C8h; Size                                                ; +0x15, 0x180092c25\ncall    sub_1800E4AC0                                                  ; +0x1a, 0x180092c2a\nmov     rbx, rax                                                       ; +0x1f, 0x180092c2f\nmov     [rsp+28h+arg_10], rax                                          ; +0x22, 0x180092c32\ntest    rax, rax                                                       ; +0x27, 0x180092c37\njz      short loc_180092C59                                            ; +0x2a, 0x180092c3a\nxor     edx, edx; Val                                                  ; +0x2c, 0x180092c3c\nmov     r8d, 0C8h; Size                                                ; +0x2e, 0x180092c3e\nmov     rcx, rax; void *                                               ; +0x34, 0x180092c44\ncall    memset                                                         ; +0x37, 0x180092c47\nmov     rcx, rbx; this                                                 ; +0x3c, 0x180092c4c\ncall    ??0CCSpriteFrame@cocos2d@@QEAA@XZ; cocos2d::CCSpriteFrame::CCSpriteFrame(void) ; +0x3f, 0x180092c4f\nmov     rbx, rax                                                       ; +0x44, 0x180092c54\njmp     short loc_180092C5B                                            ; +0x47, 0x180092c57\nxor     ebx, ebx                                                       ; +0x49, 0x180092c59\nmov     r8, rdi; struct cocos2d::CCRect *                              ; +0x4b, 0x180092c5b\nmov     rdx, rsi; struct cocos2d::CCTexture2D *                        ; +0x4e, 0x180092c5e\nmov     rcx, rbx; this                                                 ; +0x51, 0x180092c61\ncall    ?initWithTexture@CCSpriteFrame@cocos2d@@QEAA_NPEAVCCTexture2D@2@AEBVCCRect@2@@Z; cocos2d::CCSpriteFrame::initWithTexture(cocos2d::CCTexture2D *,cocos2d::CCRect const &) ; +0x54, 0x180092c64\nmov     rcx, rbx; this                                                 ; +0x59, 0x180092c69\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x5c, 0x180092c6c\nmov     rax, rbx                                                       ; +0x61, 0x180092c71\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x64, 0x180092c74\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x69, 0x180092c79\nadd     rsp, 20h                                                       ; +0x6e, 0x180092c7e\npop     rdi                                                            ; +0x72, 0x180092c82\nretn                                                                   ; +0x73, 0x180092c83", "xrefs": ["cocos2d::CCAnimation::addSpriteFrameWithFileName @ 0x18008ca31", "cocos2d::CCAnimation::addSpriteFrameWithTexture @ 0x18008ca62", "<???> @ 0x18014cf68", "<???> @ 0x1801c04d4"], "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"}