// // fmt::BasicWriter::FormatInt from 0xde472c to 0xde49c8 (668 bytes) // // 3 xrefs: // > fmt::BasicFormatter::format @ 0xde5290 // > fmt::internal::PrintfParser::Format @ 0xde5ca8 // > @ 0x78280 // // 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:09:10 +0000 // __int64 __fastcall fmt::BasicWriter::FormatInt( unsigned __int64 *a1, unsigned __int64 a2, __int64 a3, __int64 a4, __int64 a5, __int64 a6, __int64 a7, __int64 a8, char a9) { unsigned __int64 v9; // x19 const char *v11; // x2 int v12; // w1 __int64 v13; // x4 unsigned int v14; // w1 bool v15; // cc char v17; // w1 unsigned __int64 v18; // x2 unsigned int v19; // w1 _DWORD *v20; // x0 int v21; // w1 unsigned __int64 v22; // x2 unsigned int v23; // w1 _DWORD *v24; // x0 int v25; // w1 unsigned int *v26; // x2 unsigned int v27; // w21 __int64 v28; // x0 unsigned __int64 v29; // x2 unsigned int v30; // w1 _DWORD *v31; // x0 const char *v32; // x2 unsigned __int64 v33; // x1 unsigned int v34; // w2 unsigned int v35; // w2 char *v36; // x1 _DWORD v37[2]; // [xsp+30h] [xbp+30h] BYREF v9 = a2; v11 = nullptr; v37[0] = 0; if ( (a2 & 0x8000000000000000LL) != 0 ) { v9 = -(__int64)a2; LOBYTE(v37[0]) = 45; v13 = 1; LABEL_3: v14 = *(unsigned __int8 *)(a3 + 20); v15 = v14 > 0x62; if ( v14 != 98 ) goto LABEL_4; LABEL_15: if ( (*(_DWORD *)(a3 + 12) & 4) != 0 ) { *((_BYTE *)v37 + (unsigned int)v13) = 48; v35 = v13 + 1; v13 = (unsigned int)(v13 + 2); *((_BYTE *)v37 + v35) = v14; } v18 = v9; v19 = 0; do { v18 >>= 1; ++v19; } while ( v18 ); v20 = (_DWORD *)fmt::BasicWriter::PrepareBufferForInt( a1, v19, (unsigned int *)a3, (unsigned __int64)v37, v13); do { v21 = v9 & 1; v9 >>= 1; *v20-- = v21 + 48; } while ( v9 ); return _stack_chk_guard; } v12 = *(_DWORD *)(a3 + 12); v13 = 0; if ( (v12 & 1) == 0 ) goto LABEL_3; v11 = (const char *)&qword_20; if ( (v12 & 2) != 0 ) v17 = 43; else v17 = 32; LOBYTE(v37[0]) = v17; v14 = *(unsigned __int8 *)(a3 + 20); v13 = 1; v15 = v14 > 0x62; if ( v14 == 98 ) goto LABEL_15; LABEL_4: if ( !v15 ) { if ( v14 != 66 ) { if ( v14 != 88 ) { if ( !v14 ) goto LABEL_32; goto LABEL_9; } LABEL_36: if ( (*(_DWORD *)(a3 + 12) & 4) != 0 ) { *((_BYTE *)v37 + (unsigned int)v13) = 48; v34 = v13 + 1; v13 = (unsigned int)(v13 + 2); *((_BYTE *)v37 + v34) = v14; } v29 = v9; v30 = 0; do { v29 >>= 4; ++v30; } while ( v29 ); v31 = (_DWORD *)fmt::BasicWriter::PrepareBufferForInt( a1, v30, (unsigned int *)a3, (unsigned __int64)v37, v13); if ( *(_BYTE *)(a3 + 20) == 120 ) v32 = "0123456789abcdef"; else v32 = "0123456789ABCDEF"; do { v33 = v9 & 0xF; v9 >>= 4; *v31-- = (unsigned __int8)v32[v33]; } while ( v9 ); return _stack_chk_guard; } goto LABEL_15; } if ( v14 != 111 ) { if ( v14 != 120 ) { if ( v14 == 100 ) { LABEL_32: v26 = (unsigned int *)a3; v27 = (int)(1233 * (64 - __clz(v9 | 1))) >> 12; if ( v9 >= fmt::internal::POWERS_OF_10_64[v27] ) ++v27; v28 = fmt::BasicWriter::PrepareBufferForInt(a1, v27, v26, (unsigned __int64)v37, v13); fmt::internal::FormatDecimal((_DWORD *)(v28 + -4LL * v27 + 4), v9, v27); return _stack_chk_guard; } LABEL_9: fmt::internal::ReportUnknownType((fmt::internal *)v14, (char)"integer", v11); return _stack_chk_guard; } goto LABEL_36; } if ( (*(_DWORD *)(a3 + 12) & 4) != 0 ) { v36 = &a9 + (unsigned int)v13; v13 = (unsigned int)(v13 + 1); *(v36 - 16) = 48; } v22 = v9; v23 = 0; do { v22 >>= 3; ++v23; } while ( v22 ); v24 = (_DWORD *)fmt::BasicWriter::PrepareBufferForInt( a1, v23, (unsigned int *)a3, (unsigned __int64)v37, v13); do { v25 = v9 & 7; v9 >>= 3; *v24-- = v25 + 48; } while ( v9 ); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source