// // png_set_gray_to_rgb from 0x869638 to 0x86966e (54 bytes) // // 3 xrefs: // > cocos2d::CCImage::_initWithPngData @ 0x7eb9dc // > sub_865DE8 @ 0x866228 // > png_read_png @ 0x86779a // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:02:49 +0000 // int __fastcall png_set_gray_to_rgb(int result) { int v1; // r3 int v2; // r4 if ( result ) { v1 = *(_DWORD *)(result + 312); v2 = result; if ( (v1 & 0x40) != 0 ) { return png_app_error(result, "invalid after png_start_read_image or png_read_update_info"); } else { *(_DWORD *)(result + 312) = v1 | 0x4000; result = png_set_expand_gray_1_2_4_to_8(result); *(_DWORD *)(v2 + 316) |= 0x4000u; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source