{"type": "func", "start": 6442851392, "end": 6442851534, "name": "cocos2d::CCRenderTexture::create", "pseudocode": "// \n// cocos2d::CCRenderTexture::create from 0x180061c40 to 0x180061cce (142 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd6b4\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:21:51 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall cocos2d::CCRenderTexture::create(unsigned int a1, unsigned int a2, unsigned int a3)\n{\n  cocos2d::CCRenderTexture *v6; // rax\n  cocos2d::CCObject *v7; // rbx\n\n  v6 = (cocos2d::CCRenderTexture *)sub_1800E4AC0(0x1A8u);\n  if ( v6 )\n    v7 = cocos2d::CCRenderTexture::CCRenderTexture(v6);\n  else\n    v7 = nullptr;\n  if ( v7 )\n  {\n    if ( (unsigned __int8)cocos2d::CCRenderTexture::initWithWidthAndHeight(v7, a1, a2, a3, 0) )\n    {\n      cocos2d::CCObject::autorelease(v7);\n      return v7;\n    }\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v7 + 8LL))(v7, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCRenderTexture::create from 0x180061c40 to 0x180061cce (142 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd6b4\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:21:51 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180061c40\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180061c45\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x180061c4a\npush    rdi                                                            ; +0xf, 0x180061c4f\nsub     rsp, 30h                                                       ; +0x10, 0x180061c50\nmov     edi, r8d                                                       ; +0x14, 0x180061c54\nmov     esi, edx                                                       ; +0x17, 0x180061c57\nmov     ebp, ecx                                                       ; +0x19, 0x180061c59\nmov     ecx, 1A8h; Size                                                ; +0x1b, 0x180061c5b\ncall    sub_1800E4AC0                                                  ; +0x20, 0x180061c60\nmov     [rsp+38h+arg_18], rax                                          ; +0x25, 0x180061c65\ntest    rax, rax                                                       ; +0x2a, 0x180061c6a\njz      short loc_180061C7C                                            ; +0x2d, 0x180061c6d\nmov     rcx, rax; this                                                 ; +0x2f, 0x180061c6f\ncall    ??0CCRenderTexture@cocos2d@@QEAA@XZ; cocos2d::CCRenderTexture::CCRenderTexture(void) ; +0x32, 0x180061c72\nmov     rbx, rax                                                       ; +0x37, 0x180061c77\njmp     short loc_180061C7E                                            ; +0x3a, 0x180061c7a\nxor     ebx, ebx                                                       ; +0x3c, 0x180061c7c\ntest    rbx, rbx                                                       ; +0x3e, 0x180061c7e\njz      short loc_180061CB7                                            ; +0x41, 0x180061c81\nmov     [rsp+38h+var_18], 0                                            ; +0x43, 0x180061c83\nmov     r9d, edi                                                       ; +0x4b, 0x180061c8b\nmov     r8d, esi                                                       ; +0x4e, 0x180061c8e\nmov     edx, ebp                                                       ; +0x51, 0x180061c91\nmov     rcx, rbx                                                       ; +0x53, 0x180061c93\ncall    ?initWithWidthAndHeight@CCRenderTexture@cocos2d@@QEAA_NHHW4CCTexture2DPixelFormat@2@I@Z; cocos2d::CCRenderTexture::initWithWidthAndHeight(int,int,cocos2d::CCTexture2DPixelFormat,uint) ; +0x56, 0x180061c96\nmov     rcx, rbx; this                                                 ; +0x5b, 0x180061c9b\ntest    al, al                                                         ; +0x5e, 0x180061c9e\njz      short loc_180061CAC                                            ; +0x60, 0x180061ca0\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x62, 0x180061ca2\nmov     rax, rbx                                                       ; +0x67, 0x180061ca7\njmp     short loc_180061CB9                                            ; +0x6a, 0x180061caa\nmov     rax, [rbx]                                                     ; +0x6c, 0x180061cac\nmov     edx, 1                                                         ; +0x6f, 0x180061caf\ncall    qword ptr [rax+8]                                              ; +0x74, 0x180061cb4\nxor     eax, eax                                                       ; +0x77, 0x180061cb7\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x79, 0x180061cb9\nmov     rbp, [rsp+38h+arg_8]                                           ; +0x7e, 0x180061cbe\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x83, 0x180061cc3\nadd     rsp, 30h                                                       ; +0x88, 0x180061cc8\npop     rdi                                                            ; +0x8c, 0x180061ccc\nretn                                                                   ; +0x8d, 0x180061ccd", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bd6b4"], "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"}