{"type": "func", "start": 6442851536, "end": 6442851691, "name": "cocos2d::CCRenderTexture::create", "pseudocode": "// \n// cocos2d::CCRenderTexture::create from 0x180061cd0 to 0x180061d6b (155 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd6c0\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(\n        unsigned int a1,\n        unsigned int a2,\n        unsigned int a3,\n        int a4)\n{\n  cocos2d::CCRenderTexture *v8; // rax\n  cocos2d::CCObject *v9; // rbx\n\n  v8 = (cocos2d::CCRenderTexture *)sub_1800E4AC0(0x1A8u);\n  if ( v8 )\n    v9 = cocos2d::CCRenderTexture::CCRenderTexture(v8);\n  else\n    v9 = nullptr;\n  if ( v9 )\n  {\n    if ( (unsigned __int8)cocos2d::CCRenderTexture::initWithWidthAndHeight(v9, a1, a2, a3, a4) )\n    {\n      cocos2d::CCObject::autorelease(v9);\n      return v9;\n    }\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v9 + 8LL))(v9, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCRenderTexture::create from 0x180061cd0 to 0x180061d6b (155 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd6c0\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, 0x180061cd0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x180061cd5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x180061cda\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x180061cdf\npush    r14                                                            ; +0x14, 0x180061ce4\nsub     rsp, 40h                                                       ; +0x16, 0x180061ce6\nmov     edi, r9d                                                       ; +0x1a, 0x180061cea\nmov     esi, r8d                                                       ; +0x1d, 0x180061ced\nmov     ebp, edx                                                       ; +0x20, 0x180061cf0\nmov     r14d, ecx                                                      ; +0x22, 0x180061cf2\nmov     ecx, 1A8h; Size                                                ; +0x25, 0x180061cf5\ncall    sub_1800E4AC0                                                  ; +0x2a, 0x180061cfa\nmov     [rsp+48h+var_18], rax                                          ; +0x2f, 0x180061cff\ntest    rax, rax                                                       ; +0x34, 0x180061d04\njz      short loc_180061D16                                            ; +0x37, 0x180061d07\nmov     rcx, rax; this                                                 ; +0x39, 0x180061d09\ncall    ??0CCRenderTexture@cocos2d@@QEAA@XZ; cocos2d::CCRenderTexture::CCRenderTexture(void) ; +0x3c, 0x180061d0c\nmov     rbx, rax                                                       ; +0x41, 0x180061d11\njmp     short loc_180061D18                                            ; +0x44, 0x180061d14\nxor     ebx, ebx                                                       ; +0x46, 0x180061d16\ntest    rbx, rbx                                                       ; +0x48, 0x180061d18\njz      short loc_180061D4E                                            ; +0x4b, 0x180061d1b\nmov     [rsp+48h+var_28], edi                                          ; +0x4d, 0x180061d1d\nmov     r9d, esi                                                       ; +0x51, 0x180061d21\nmov     r8d, ebp                                                       ; +0x54, 0x180061d24\nmov     edx, r14d                                                      ; +0x57, 0x180061d27\nmov     rcx, rbx                                                       ; +0x5a, 0x180061d2a\ncall    ?initWithWidthAndHeight@CCRenderTexture@cocos2d@@QEAA_NHHW4CCTexture2DPixelFormat@2@I@Z; cocos2d::CCRenderTexture::initWithWidthAndHeight(int,int,cocos2d::CCTexture2DPixelFormat,uint) ; +0x5d, 0x180061d2d\nmov     rcx, rbx; this                                                 ; +0x62, 0x180061d32\ntest    al, al                                                         ; +0x65, 0x180061d35\njz      short loc_180061D43                                            ; +0x67, 0x180061d37\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x69, 0x180061d39\nmov     rax, rbx                                                       ; +0x6e, 0x180061d3e\njmp     short loc_180061D50                                            ; +0x71, 0x180061d41\nmov     rax, [rbx]                                                     ; +0x73, 0x180061d43\nmov     edx, 1                                                         ; +0x76, 0x180061d46\ncall    qword ptr [rax+8]                                              ; +0x7b, 0x180061d4b\nxor     eax, eax                                                       ; +0x7e, 0x180061d4e\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x80, 0x180061d50\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x85, 0x180061d55\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x8a, 0x180061d5a\nmov     rdi, [rsp+48h+arg_18]                                          ; +0x8f, 0x180061d5f\nadd     rsp, 40h                                                       ; +0x94, 0x180061d64\npop     r14                                                            ; +0x98, 0x180061d68\nretn                                                                   ; +0x9a, 0x180061d6a", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bd6c0"], "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"}