{"type": "func", "start": 6442842864, "end": 6442843019, "name": "cocos2d::CCRenderTexture::create", "pseudocode": "// \n// cocos2d::CCRenderTexture::create from 0x18005faf0 to 0x18005fb8b (155 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b33fc\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\n// Hidden C++ exception states: #wind=1\ncocos2d::CCRenderTexture *__fastcall cocos2d::CCRenderTexture::create(\n        int a1,\n        int a2,\n        enum cocos2d::CCTexture2DPixelFormat a3,\n        unsigned int a4)\n{\n  cocos2d::CCRenderTexture *v8; // rax\n  cocos2d::CCRenderTexture *v9; // rbx\n\n  v8 = (cocos2d::CCRenderTexture *)operator new(0x1A8u);\n  if ( v8 )\n    v9 = cocos2d::CCRenderTexture::CCRenderTexture(v8);\n  else\n    v9 = nullptr;\n  if ( v9 )\n  {\n    if ( cocos2d::CCRenderTexture::initWithWidthAndHeight(v9, a1, a2, a3, a4) )\n    {\n      cocos2d::CCObject::autorelease(v9);\n      return v9;\n    }\n    ((void (__fastcall *)(cocos2d::CCRenderTexture *, __int64))v9->~CCRenderTexture)(v9, 1);\n  }\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCRenderTexture::create from 0x18005faf0 to 0x18005fb8b (155 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b33fc\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, 0x18005faf0\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x18005faf5\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18005fafa\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x18005faff\npush    r14                                                            ; +0x14, 0x18005fb04\nsub     rsp, 40h                                                       ; +0x16, 0x18005fb06\nmov     edi, r9d                                                       ; +0x1a, 0x18005fb0a\nmov     esi, r8d                                                       ; +0x1d, 0x18005fb0d\nmov     ebp, edx                                                       ; +0x20, 0x18005fb10\nmov     r14d, ecx                                                      ; +0x22, 0x18005fb12\nmov     ecx, 1A8h; Size                                                ; +0x25, 0x18005fb15\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x2a, 0x18005fb1a\nmov     [rsp+48h+var_18], rax                                          ; +0x2f, 0x18005fb1f\ntest    rax, rax                                                       ; +0x34, 0x18005fb24\njz      short loc_18005FB36                                            ; +0x37, 0x18005fb27\nmov     rcx, rax; this                                                 ; +0x39, 0x18005fb29\ncall    ??0CCRenderTexture@cocos2d@@QEAA@XZ; cocos2d::CCRenderTexture::CCRenderTexture(void) ; +0x3c, 0x18005fb2c\nmov     rbx, rax                                                       ; +0x41, 0x18005fb31\njmp     short loc_18005FB38                                            ; +0x44, 0x18005fb34\nxor     ebx, ebx                                                       ; +0x46, 0x18005fb36\ntest    rbx, rbx                                                       ; +0x48, 0x18005fb38\njz      short loc_18005FB6E                                            ; +0x4b, 0x18005fb3b\nmov     [rsp+48h+var_28], edi                                          ; +0x4d, 0x18005fb3d\nmov     r9d, esi                                                       ; +0x51, 0x18005fb41\nmov     r8d, ebp                                                       ; +0x54, 0x18005fb44\nmov     edx, r14d                                                      ; +0x57, 0x18005fb47\nmov     rcx, rbx                                                       ; +0x5a, 0x18005fb4a\ncall    ?initWithWidthAndHeight@CCRenderTexture@cocos2d@@QEAA_NHHW4CCTexture2DPixelFormat@2@I@Z; cocos2d::CCRenderTexture::initWithWidthAndHeight(int,int,cocos2d::CCTexture2DPixelFormat,uint) ; +0x5d, 0x18005fb4d\nmov     rcx, rbx; this                                                 ; +0x62, 0x18005fb52\ntest    al, al                                                         ; +0x65, 0x18005fb55\njz      short loc_18005FB63                                            ; +0x67, 0x18005fb57\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x69, 0x18005fb59\nmov     rax, rbx                                                       ; +0x6e, 0x18005fb5e\njmp     short loc_18005FB70                                            ; +0x71, 0x18005fb61\nmov     rax, [rbx]                                                     ; +0x73, 0x18005fb63\nmov     edx, 1                                                         ; +0x76, 0x18005fb66\ncall    qword ptr [rax+8]                                              ; +0x7b, 0x18005fb6b\nxor     eax, eax                                                       ; +0x7e, 0x18005fb6e\nmov     rbx, [rsp+48h+arg_0]                                           ; +0x80, 0x18005fb70\nmov     rbp, [rsp+48h+arg_8]                                           ; +0x85, 0x18005fb75\nmov     rsi, [rsp+48h+arg_10]                                          ; +0x8a, 0x18005fb7a\nmov     rdi, [rsp+48h+arg_18]                                          ; +0x8f, 0x18005fb7f\nadd     rsp, 40h                                                       ; +0x94, 0x18005fb84\npop     r14                                                            ; +0x98, 0x18005fb88\nretn                                                                   ; +0x9a, 0x18005fb8a", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b33fc"], "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"}