// // png_check_fp_number from 0x64e2f8 to 0x64e42c (308 bytes) // // 3 xrefs: // > png_check_fp_string @ 0x64e43e // > png_handle_sCAL @ 0x65dfec // > png_handle_sCAL @ 0x65e03a // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // bool __fastcall png_check_fp_number(int a1, unsigned int a2, int *a3, unsigned int *a4) { unsigned int v4; // r6 int v5; // r5 unsigned __int8 *v6; // r7 int v7; // t1 int v8; // r4 int v9; // r12 int v10; // lr int v11; // r0 v4 = *a4; v5 = *a3; if ( *a4 < a2 ) { v6 = (unsigned __int8 *)(a1 + v4); while ( 2 ) { v7 = *v6++; switch ( v7 ) { case '+': v8 = 4; v9 = 68; v10 = 4; goto LABEL_6; case '-': v9 = 196; v8 = 4; v10 = 132; goto LABEL_6; case '.': v8 = 16; v9 = 80; v10 = 16; goto LABEL_6; case '0': v8 = 8; v9 = 72; v10 = 8; goto LABEL_6; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': v9 = 328; v8 = 8; v10 = 264; goto LABEL_6; case 'E': case 'e': v8 = 32; v9 = 96; v10 = 32; LABEL_6: switch ( v8 + (v5 & 3) ) { case 4: if ( (v5 & 0x3C) != 0 ) goto LABEL_10; goto LABEL_20; case 6: if ( (v5 & 0x3C) != 0 ) goto LABEL_10; v5 |= 4u; goto LABEL_9; case 8: if ( (v5 & 0x10) != 0 ) v5 = v5 & 0x1C0 | 0x11; v5 |= v9; goto LABEL_9; case 9: v5 |= 0x40 | v10; goto LABEL_9; case 0xA: v5 |= 0x48u; goto LABEL_9; case 0x10: if ( (v5 & 0x10) != 0 ) goto LABEL_10; if ( (v5 & 8) == 0 ) v5 = v5 & 0x1C0 | 1; LABEL_20: v5 |= v10; goto LABEL_9; case 0x20: case 0x21: v11 = v5 & 8; if ( (v5 & 8) == 0 ) goto LABEL_11; v5 = v5 & 0x1C0 | 2; LABEL_9: if ( a2 <= ++v4 ) goto LABEL_10; continue; default: goto LABEL_10; } default: goto LABEL_10; } } } LABEL_10: v11 = v5 & 8; LABEL_11: *a3 = v5; *a4 = v4; return v11 != 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source