{"type": "func", "start": 6442851248, "end": 6442851391, "name": "cocos2d::CCRenderTexture::create", "pseudocode": "// \n// cocos2d::CCRenderTexture::create from 0x180061bb0 to 0x180061c3f (143 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCTransitionCrossFade::onEnter @ 0x180056980\n// > cocos2d::CCTransitionCrossFade::onEnter @ 0x180056a5f\n// > cocos2d::CCTransitionProgress::onEnter @ 0x1800594b8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd6a8\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\nstruct cocos2d::CCRenderTexture *__fastcall cocos2d::CCRenderTexture::create(unsigned int a1, unsigned int a2)\n{\n  cocos2d::CCRenderTexture *v4; // rax\n  cocos2d::CCObject *v5; // rbx\n\n  v4 = (cocos2d::CCRenderTexture *)sub_1800E4AC0(0x1A8u);\n  if ( v4 )\n    v5 = cocos2d::CCRenderTexture::CCRenderTexture(v4);\n  else\n    v5 = nullptr;\n  if ( v5 )\n  {\n    if ( (unsigned __int8)cocos2d::CCRenderTexture::initWithWidthAndHeight(v5, a1, a2, 0, 0) )\n    {\n      cocos2d::CCObject::autorelease(v5);\n      return v5;\n    }\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v5 + 8LL))(v5, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCRenderTexture::create from 0x180061bb0 to 0x180061c3f (143 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCTransitionCrossFade::onEnter @ 0x180056980\n; > cocos2d::CCTransitionCrossFade::onEnter @ 0x180056a5f\n; > cocos2d::CCTransitionProgress::onEnter @ 0x1800594b8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd6a8\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, 0x180061bb0\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180061bb5\npush    rdi                                                            ; +0xa, 0x180061bba\nsub     rsp, 30h                                                       ; +0xb, 0x180061bbb\nmov     edi, edx                                                       ; +0xf, 0x180061bbf\nmov     esi, ecx                                                       ; +0x11, 0x180061bc1\nmov     ecx, 1A8h; Size                                                ; +0x13, 0x180061bc3\ncall    sub_1800E4AC0                                                  ; +0x18, 0x180061bc8\nmov     [rsp+38h+arg_10], rax                                          ; +0x1d, 0x180061bcd\ntest    rax, rax                                                       ; +0x22, 0x180061bd2\njz      short loc_180061BE4                                            ; +0x25, 0x180061bd5\nmov     rcx, rax; this                                                 ; +0x27, 0x180061bd7\ncall    ??0CCRenderTexture@cocos2d@@QEAA@XZ; cocos2d::CCRenderTexture::CCRenderTexture(void) ; +0x2a, 0x180061bda\nmov     rbx, rax                                                       ; +0x2f, 0x180061bdf\njmp     short loc_180061BE6                                            ; +0x32, 0x180061be2\nxor     ebx, ebx                                                       ; +0x34, 0x180061be4\ntest    rbx, rbx                                                       ; +0x36, 0x180061be6\njz      short loc_180061C2D                                            ; +0x39, 0x180061be9\nmov     [rsp+38h+var_18], 0                                            ; +0x3b, 0x180061beb\nxor     r9d, r9d                                                       ; +0x43, 0x180061bf3\nmov     r8d, edi                                                       ; +0x46, 0x180061bf6\nmov     edx, esi                                                       ; +0x49, 0x180061bf9\nmov     rcx, rbx                                                       ; +0x4b, 0x180061bfb\ncall    ?initWithWidthAndHeight@CCRenderTexture@cocos2d@@QEAA_NHHW4CCTexture2DPixelFormat@2@I@Z; cocos2d::CCRenderTexture::initWithWidthAndHeight(int,int,cocos2d::CCTexture2DPixelFormat,uint) ; +0x4e, 0x180061bfe\nmov     rcx, rbx; this                                                 ; +0x53, 0x180061c03\ntest    al, al                                                         ; +0x56, 0x180061c06\njz      short loc_180061C22                                            ; +0x58, 0x180061c08\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x5a, 0x180061c0a\nmov     rax, rbx                                                       ; +0x5f, 0x180061c0f\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x62, 0x180061c12\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x67, 0x180061c17\nadd     rsp, 30h                                                       ; +0x6c, 0x180061c1c\npop     rdi                                                            ; +0x70, 0x180061c20\nretn                                                                   ; +0x71, 0x180061c21\nmov     rax, [rbx]                                                     ; +0x72, 0x180061c22\nmov     edx, 1                                                         ; +0x75, 0x180061c25\ncall    qword ptr [rax+8]                                              ; +0x7a, 0x180061c2a\nxor     eax, eax                                                       ; +0x7d, 0x180061c2d\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x7f, 0x180061c2f\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x84, 0x180061c34\nadd     rsp, 30h                                                       ; +0x89, 0x180061c39\npop     rdi                                                            ; +0x8d, 0x180061c3d\nretn                                                                   ; +0x8e, 0x180061c3e", "xrefs": ["cocos2d::CCTransitionCrossFade::onEnter @ 0x180056980", "cocos2d::CCTransitionCrossFade::onEnter @ 0x180056a5f", "cocos2d::CCTransitionProgress::onEnter @ 0x1800594b8", "<???> @ 0x18014cf68", "<???> @ 0x1801bd6a8"], "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"}