{"type": "func", "start": 6442976112, "end": 6442976164, "name": "sub_180080370", "pseudocode": "// \n// sub_180080370 from 0x180080370 to 0x1800803a4 (52 bytes)\n// \n// 2 xrefs:\n// > cocos2d::CCImage::_saveImageToPNG @ 0x18007f158\n// > <???> @ 0x1801bf1a8\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:22:02 +0000\n// \n\nsize_t __fastcall sub_180080370(__int64 a1, const void *a2, size_t a3)\n{\n  FILE *io_ptr; // rax\n\n  io_ptr = (FILE *)png_get_io_ptr();\n  return fwrite(a2, 1u, a3, io_ptr);\n}", "assembly": "; \n; sub_180080370 from 0x180080370 to 0x1800803a4 (52 bytes)\n; \n; 2 xrefs:\n; > cocos2d::CCImage::_saveImageToPNG @ 0x18007f158\n; > <???> @ 0x1801bf1a8\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:22:02 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180080370\npush    rdi                                                            ; +0x5, 0x180080375\nsub     rsp, 20h                                                       ; +0x6, 0x180080376\nmov     rbx, r8                                                        ; +0xa, 0x18008037a\nmov     rdi, rdx                                                       ; +0xd, 0x18008037d\ncall    png_get_io_ptr                                                 ; +0x10, 0x180080380\nmov     r9, rax                                                        ; +0x15, 0x180080385\nmov     r8, rbx                                                        ; +0x18, 0x180080388\nmov     edx, 1                                                         ; +0x1b, 0x18008038b\nmov     rcx, rdi                                                       ; +0x20, 0x180080390\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x23, 0x180080393\nadd     rsp, 20h                                                       ; +0x28, 0x180080398\npop     rdi                                                            ; +0x2c, 0x18008039c\njmp     cs:fwrite                                                      ; +0x2d, 0x18008039d", "xrefs": ["cocos2d::CCImage::_saveImageToPNG @ 0x18007f158", "<???> @ 0x1801bf1a8"], "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"}