// // fmt::BasicWriter::FillPadding from 0xddd050 to 0xddd150 (256 bytes) // // 3 xrefs: // > fmt::BasicWriter::FormatDouble @ 0xddef6c // > fmt::BasicWriter::FormatDouble @ 0xddf494 // > @ 0x56458 // // 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:07 +0000 // char *__fastcall fmt::BasicWriter::FillPadding(int32x4_t *a1, unsigned int a2, __int64 a3, unsigned int a4) { int32x4_t *v4; // x7 unsigned __int64 v5; // x1 unsigned __int64 v6; // x4 unsigned __int64 v7; // x5 __int64 v8; // x6 int32x4_t v9; // q0 int32x4_t *v10; // x8 unsigned __int64 v11; // x0 bool v12; // zf unsigned __int64 v13; // x6 unsigned __int64 v14; // x1 char *result; // x0 unsigned int *v16; // x6 unsigned __int64 v17; // x5 __int64 v18; // x8 __int64 v19; // x2 int32x4_t v20; // q0 unsigned __int64 v21; // x4 int32x4_t *v22; // x2 v4 = a1; v5 = a2 - a3; v6 = v5 >> 1; if ( v5 >> 1 ) { v7 = ((v6 - 4) >> 2) + 1; v8 = 4 * v7; if ( v6 - 1 <= 2 ) { v13 = v5 >> 1; } else { v9 = vdupq_n_s32(a4); v10 = a1; v11 = 0; do { *v10++ = v9; ++v11; } while ( v11 < v7 ); v12 = v6 == v8; a1 = &v4[v7]; v13 = v6 - v8; if ( v12 ) goto LABEL_9; } a1->n128_u32[0] = a4; if ( v13 != 1 ) { a1->n128_u32[1] = a4; if ( v13 != 2 ) a1->n128_u32[2] = a4; } } LABEL_9: v14 = v5 - v6; result = (char *)v4 + 4 * v6; v16 = (unsigned int *)&result[4 * a3]; if ( v14 ) { v17 = ((v14 - 4) >> 2) + 1; v18 = 4 * v17; if ( v14 - 1 <= 2 ) goto LABEL_14; v19 = v6 + a3; v20 = vdupq_n_s32(a4); v21 = 0; v22 = (int32x4_t *)((char *)v4 + 4 * v19); do { *v22++ = v20; ++v21; } while ( v17 > v21 ); v12 = v14 == v18; v16 += 4 * v17; v14 -= v18; if ( !v12 ) { LABEL_14: *v16 = a4; if ( v14 != 1 ) { v16[1] = a4; if ( v14 != 2 ) v16[2] = a4; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source