{"type": "func", "start": 6442854128, "end": 6442854212, "name": "cocos2d::CCRenderTexture::saveToFile", "pseudocode": "// \n// cocos2d::CCRenderTexture::saveToFile from 0x1800626f0 to 0x180062744 (84 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd738\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\ncocos2d::CCImage *__fastcall cocos2d::CCRenderTexture::saveToFile(cocos2d::CCRenderTexture *this, const char *a2)\n{\n  cocos2d::CCImage *result; // rax\n  cocos2d::CCImage *v4; // rdi\n  bool v5; // bl\n\n  result = cocos2d::CCRenderTexture::newCCImage(this, 1);\n  v4 = result;\n  if ( result )\n  {\n    v5 = cocos2d::CCImage::saveToFile(result, a2, 0);\n    (*(void (__fastcall **)(cocos2d::CCImage *, __int64))(*(_QWORD *)v4 + 8LL))(v4, 1);\n    return (cocos2d::CCImage *)v5;\n  }\n  return result;\n}", "assembly": "; \n; cocos2d::CCRenderTexture::saveToFile from 0x1800626f0 to 0x180062744 (84 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd738\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, 0x1800626f0\npush    rdi                                                            ; +0x5, 0x1800626f5\nsub     rsp, 20h                                                       ; +0x6, 0x1800626f6\nmov     rbx, rdx                                                       ; +0xa, 0x1800626fa\nmov     dl, 1; bool                                                    ; +0xd, 0x1800626fd\ncall    ?newCCImage@CCRenderTexture@cocos2d@@QEAAPEAVCCImage@2@_N@Z; cocos2d::CCRenderTexture::newCCImage(bool) ; +0xf, 0x1800626ff\nmov     rdi, rax                                                       ; +0x14, 0x180062704\ntest    rax, rax                                                       ; +0x17, 0x180062707\njz      short loc_180062739                                            ; +0x1a, 0x18006270a\nxor     r8d, r8d; bool                                                 ; +0x1c, 0x18006270c\nmov     rdx, rbx; char *                                               ; +0x1f, 0x18006270f\nmov     rcx, rax; this                                                 ; +0x22, 0x180062712\ncall    ?saveToFile@CCImage@cocos2d@@QEAA_NPEBD_N@Z; cocos2d::CCImage::saveToFile(char const *,bool) ; +0x25, 0x180062715\nmovzx   ebx, al                                                        ; +0x2a, 0x18006271a\nmov     edx, 1                                                         ; +0x2d, 0x18006271d\nmov     rax, [rdi]                                                     ; +0x32, 0x180062722\nmov     rcx, rdi                                                       ; +0x35, 0x180062725\ncall    qword ptr [rax+8]                                              ; +0x38, 0x180062728\nmovzx   eax, bl                                                        ; +0x3b, 0x18006272b\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x3e, 0x18006272e\nadd     rsp, 20h                                                       ; +0x43, 0x180062733\npop     rdi                                                            ; +0x47, 0x180062737\nretn                                                                   ; +0x48, 0x180062738\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x49, 0x180062739\nadd     rsp, 20h                                                       ; +0x4e, 0x18006273e\npop     rdi                                                            ; +0x52, 0x180062742\nretn                                                                   ; +0x53, 0x180062743", "xrefs": ["<???> @ 0x18014cf68", "<???> @ 0x1801bd738"], "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"}