// // png_format_number from 0xe42cb8 to 0xe42e10 (344 bytes) // // 12 xrefs: // > sub_E3B438 @ 0xe3b508 // > png_convert_to_rfc1123_buffer @ 0xe3c2c0 // > png_convert_to_rfc1123_buffer @ 0xe3c338 // > png_convert_to_rfc1123_buffer @ 0xe3c378 // > png_convert_to_rfc1123_buffer @ 0xe3c3b8 // > png_convert_to_rfc1123_buffer @ 0xe3c3f8 // > png_icc_check_length @ 0xe3cb6c // > png_icc_check_length @ 0xe3cc28 // > png_warning_parameter_unsigned @ 0xe42fc8 // > png_warning_parameter_signed @ 0xe4303c // > png_warning_parameter_signed @ 0xe43084 // > @ 0xca960 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:10:03 +0000 // _BYTE *__fastcall png_format_number(unsigned __int64 a1, __int64 a2, int a3, unsigned __int64 a4) { _BYTE *result; // x0 _BOOL4 v6; // w9 int v7; // w15 int v8; // w6 int v9; // w1 int v10; // w2 __int64 v11; // x4 unsigned __int64 v12; // x4 unsigned __int64 v13; // x4 result = (_BYTE *)(a2 - 1); *(_BYTE *)(a2 - 1) = 0; if ( a2 - 1 > a1 ) { v6 = a3 == 5; v7 = 0; v8 = 1; v9 = 0; v10 = a3 - 1; while ( 1 ) { switch ( v10 ) { case 0: goto LABEL_18; case 1: v8 = 2; LABEL_18: --result; v12 = a4 % 0xA; a4 /= 0xAu; *result = a0123456789abcd_5[v12 + 16]; goto LABEL_5; case 2: goto LABEL_16; case 3: v8 = 2; LABEL_16: v11 = a4 & 0xF; --result; a4 >>= 4; *result = a0123456789abcd_5[v11 + 16]; goto LABEL_5; case 4: if ( v7 ) { v13 = a4 % 0xA; LABEL_21: --result; v7 = 1; *result = a0123456789abcd_5[v13 + 16]; goto LABEL_22; } v13 = a4 % 0xA; if ( a4 % 0xA ) goto LABEL_21; LABEL_22: v8 = 5; a4 /= 0xAu; LABEL_5: ++v9; if ( !v6 || v9 != 5 ) goto LABEL_10; if ( (unsigned __int64)result <= a1 ) return result; if ( v7 ) { *--result = 46; goto LABEL_10; } if ( a4 ) { v9 = 5; } else { *(result - 1) = 48; v9 = 5; --result; LABEL_10: if ( (unsigned __int64)result <= a1 || v8 <= v9 && !a4 ) return result; } break; default: a4 = 0; goto LABEL_5; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source