{"type": "func", "start": 6443039424, "end": 6443039588, "name": "cocos2d::CCSpriteFrame::createWithTexture", "pseudocode": "// \n// cocos2d::CCSpriteFrame::createWithTexture from 0x18008fac0 to 0x18008fb64 (164 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCSprite::displayFrame @ 0x18008b935\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b6228\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\nstruct cocos2d::CCSpriteFrame *__fastcall cocos2d::CCSpriteFrame::createWithTexture(\n        struct cocos2d::CCTexture2D *a1,\n        const struct cocos2d::CCRect *a2,\n        bool a3,\n        const struct cocos2d::CCPoint *a4,\n        const struct cocos2d::CCSize *a5)\n{\n  cocos2d::CCSpriteFrame *v9; // rax\n  cocos2d::CCSpriteFrame *v10; // rbx\n  cocos2d::CCSpriteFrame *v11; // rbx\n\n  v9 = (cocos2d::CCSpriteFrame *)operator new(0xC8u);\n  v10 = v9;\n  if ( v9 )\n  {\n    memset(v9, 0, sizeof(cocos2d::CCSpriteFrame));\n    v11 = cocos2d::CCSpriteFrame::CCSpriteFrame(v10);\n  }\n  else\n  {\n    v11 = nullptr;\n  }\n  cocos2d::CCSpriteFrame::initWithTexture(v11, a1, a2, a3, a4, a5);\n  cocos2d::CCObject::autorelease(v11);\n  return v11;\n}", "assembly": "; \n; cocos2d::CCSpriteFrame::createWithTexture from 0x18008fac0 to 0x18008fb64 (164 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCSprite::displayFrame @ 0x18008b935\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b6228\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18008fac0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x18008fac5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18008faca\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x18008facf\npush    r14                                                            ; +0x14, 0x18008fad4\nsub     rsp, 40h                                                       ; +0x16, 0x18008fad6\nmov     rdi, r9                                                        ; +0x1a, 0x18008fada\nmovzx   esi, r8b                                                       ; +0x1d, 0x18008fadd\nmov     rbp, rdx                                                       ; +0x21, 0x18008fae1\nmov     r14, rcx                                                       ; +0x24, 0x18008fae4\nmov     ecx, 0C8h; Size                                                ; +0x27, 0x18008fae7\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2c, 0x18008faec\nmov     rbx, rax                                                       ; +0x31, 0x18008faf1\nmov     [rsp+48h+var_18], rax                                          ; +0x34, 0x18008faf4\ntest    rax, rax                                                       ; +0x39, 0x18008faf9\njz      short loc_18008FB1B                                            ; +0x3c, 0x18008fafc\nxor     edx, edx; Val                                                  ; +0x3e, 0x18008fafe\nmov     r8d, 0C8h; Size                                                ; +0x40, 0x18008fb00\nmov     rcx, rax; void *                                               ; +0x46, 0x18008fb06\ncall    memset                                                         ; +0x49, 0x18008fb09\nmov     rcx, rbx; this                                                 ; +0x4e, 0x18008fb0e\ncall    ??0CCSpriteFrame@cocos2d@@QEAA@XZ; cocos2d::CCSpriteFrame::CCSpriteFrame(void) ; +0x51, 0x18008fb11\nmov     rbx, rax                                                       ; +0x56, 0x18008fb16\njmp     short loc_18008FB1D                                            ; +0x59, 0x18008fb19\nxor     ebx, ebx                                                       ; +0x5b, 0x18008fb1b\nmov     rax, [rsp+48h+arg_20]                                          ; +0x5d, 0x18008fb1d\nmov     [rsp+48h+var_20], rax; struct cocos2d::CCSize *                ; +0x62, 0x18008fb22\nmov     [rsp+48h+var_28], rdi; struct cocos2d::CCPoint *               ; +0x67, 0x18008fb27\nmovzx   r9d, sil; bool                                                 ; +0x6c, 0x18008fb2c\nmov     r8, rbp; struct cocos2d::CCRect *                              ; +0x70, 0x18008fb30\nmov     rdx, r14; struct cocos2d::CCTexture2D *                        ; +0x73, 0x18008fb33\nmov     rcx, rbx; this                                                 ; +0x76, 0x18008fb36\ncall    ?initWithTexture@CCSpriteFrame@cocos2d@@QEAA_NPEAVCCTexture2D@2@AEBVCCRect@2@_NAEBVCCPoint@2@AEBVCCSize@2@@Z; cocos2d::CCSpriteFrame::initWithTexture(cocos2d::CCTexture2D *,cocos2d::CCRect const &,bool,cocos2d::CCPoint const &,cocos2d::CCSize const &) ; +0x79, 0x18008fb39\nmov     rcx, rbx; this                                                 ; +0x7e, 0x18008fb3e\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x81, 0x18008fb41\nmov     rax, rbx                                                       ; +0x86, 0x18008fb46\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x89, 0x18008fb49\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x8e, 0x18008fb4e\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x93, 0x18008fb53\nmov     rdi, [rsp+48h+arg_18]                                          ; +0x98, 0x18008fb58\nadd     rsp, 40h                                                       ; +0x9d, 0x18008fb5d\npop     r14                                                            ; +0xa1, 0x18008fb61\nretn                                                                   ; +0xa3, 0x18008fb63", "xrefs": ["cocos2d::CCSprite::displayFrame @ 0x18008b935", "<???> @ 0x1801438a8", "<???> @ 0x1801b6228"], "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"}