//
// fmt::BasicWriter
::PrepareBufferForInt from 0xde329c to 0xde4224 (3976 bytes)
//
// 21 xrefs:
// > fmt::BasicWriter::FormatInt @ 0xde4310
// > fmt::BasicWriter::FormatInt @ 0xde4350
// > fmt::BasicWriter::FormatInt @ 0xde43bc
// > fmt::BasicWriter::FormatInt @ 0xde4418
// > fmt::BasicWriter::FormatInt @ 0xde4598
// > fmt::BasicWriter::FormatInt @ 0xde4604
// > fmt::BasicWriter::FormatInt @ 0xde4648
// > fmt::BasicWriter::FormatInt @ 0xde4698
// > fmt::BasicWriter::FormatInt @ 0xde4818
// > fmt::BasicWriter::FormatInt @ 0xde4858
// > fmt::BasicWriter::FormatInt @ 0xde48c4
// > fmt::BasicWriter::FormatInt @ 0xde4920
// > fmt::BasicWriter::FormatInt @ 0xde4aa0
// > fmt::BasicWriter::FormatInt @ 0xde4b0c
// > fmt::BasicWriter::FormatInt @ 0xde4b50
// > fmt::BasicWriter::FormatInt @ 0xde4ba0
// > fmt::BasicWriter::FormatInt @ 0xde4d0c
// > fmt::BasicWriter::FormatInt @ 0xde4d78
// > fmt::BasicWriter::FormatInt @ 0xde4dbc
// > fmt::BasicWriter::FormatInt @ 0xde4e0c
// > ??> @ 0xa9ed0
//
// 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::PrepareBufferForInt(
unsigned __int64 *a1,
unsigned int a2,
unsigned int *a3,
unsigned __int64 a4,
__int64 a5)
{
signed int v6; // w1
unsigned int v8; // w19
unsigned int v9; // w26
unsigned int v10; // w24
int v11; // w23
__int64 v12; // x19
unsigned __int64 v13; // x23
unsigned __int64 v14; // x25
unsigned __int64 v15; // x0
int32x4_t *v16; // x0
__int64 v17; // x8
unsigned __int64 v18; // x1
__int64 v19; // x5
int32x4_t v20; // q0
int32x4_t *v21; // x7
unsigned __int64 v22; // x6
__int64 v24; // x23
unsigned __int64 v25; // x19
unsigned __int64 v26; // x22
unsigned __int64 v27; // x0
unsigned __int8 *v28; // x4
unsigned __int64 v29; // x2
unsigned __int64 v30; // x6
uint8x16_t *v31; // x8
uint32x4_t *v32; // x0
unsigned __int64 v33; // x1
unsigned __int64 v34; // x7
__int64 v35; // x5
uint8x16_t v36; // t1
uint32x4_t *v37; // x11
uint32x4_t *v38; // x10
uint32x4_t *v39; // x9
uint16x8_t v40; // q1
uint16x8_t v41; // q0
unsigned __int8 *v42; // x20
_DWORD *v43; // x0
unsigned __int64 v44; // x25
unsigned __int64 v45; // x27
unsigned __int64 v46; // x5
int32x4_t *v47; // x2
_DWORD *v48; // x20
unsigned __int8 *v49; // x1
__int64 v50; // x22
char *v51; // x23
__int64 v52; // x7
uint32x4_t *v53; // x27
uint8x16_t *v54; // x8
unsigned __int64 v55; // x4
unsigned __int64 v56; // x0
__int64 v57; // x5
uint8x16_t v58; // t1
uint32x4_t *v59; // x10
uint32x4_t *v60; // x9
uint32x4_t *v61; // x6
uint16x8_t v62; // q1
uint16x8_t v63; // q0
unsigned __int8 *v64; // x0
char *v65; // x4
__int64 v66; // x23
__int64 v67; // x4
unsigned __int64 v68; // x0
__int64 v69; // x1
int32x4_t v70; // q0
int32x4_t *v71; // x5
unsigned __int64 v72; // x3
unsigned __int8 *v73; // x4
unsigned __int64 v74; // x7
uint8x16_t *v75; // x9
uint32x4_t *v76; // x1
unsigned __int64 v77; // x0
unsigned __int64 v78; // x8
__int64 v79; // x6
uint8x16_t v80; // t1
uint32x4_t *v81; // x12
uint32x4_t *v82; // x11
uint32x4_t *v83; // x10
uint16x8_t v84; // q1
uint16x8_t v85; // q0
unsigned __int8 *v86; // x0
int32x4_t *v87; // x1
_DWORD *v88; // x19
__int64 v89; // x4
unsigned __int64 v90; // x22
__int64 v91; // x1
int32x4_t v92; // q0
unsigned __int64 v93; // x0
int32x4_t *v94; // x5
unsigned int *v95; // x0
_DWORD *v96; // x20
__int64 v97; // x0
unsigned __int64 v98; // x22
__int64 v99; // x23
unsigned __int64 v100; // x25
unsigned __int64 v101; // x0
int32x4_t *v102; // x0
__int64 v103; // x5
unsigned __int64 v104; // x1
__int64 v105; // x2
int32x4_t v106; // q0
int32x4_t *v107; // x4
unsigned __int64 v108; // x3
unsigned __int64 v109; // x19
unsigned __int64 v110; // x22
unsigned __int64 v111; // x0
__int64 v112; // x1
int32x4_t v113; // q0
int32x4_t *v114; // x7
unsigned __int64 v115; // x6
bool v116; // zf
unsigned int *v117; // x0
unsigned __int64 v118; // x1
unsigned __int64 v119; // x19
_DWORD *v120; // x2
unsigned __int64 v121; // x0
__int64 v122; // x6
int32x4_t v123; // q0
unsigned __int64 v124; // x7
int32x4_t *v125; // x1
unsigned int *v126; // x0
unsigned __int8 *v127; // x19
unsigned __int64 v128; // x0
uint32x4_t *v129; // x25
uint8x16_t *v130; // x5
unsigned __int64 v131; // x24
unsigned __int64 v132; // x0
__int64 v133; // x1
uint8x16_t v134; // t1
uint32x4_t *v135; // x8
uint32x4_t *v136; // x7
uint32x4_t *v137; // x6
uint16x8_t v138; // q1
uint16x8_t v139; // q0
unsigned __int8 *v140; // x22
_DWORD *v141; // x0
unsigned __int8 *v142; // x0
unsigned __int8 *v143; // x19
__int64 v144; // x1
uint8x16_t *v145; // x8
uint32x4_t *v146; // x5
unsigned __int64 v147; // x0
unsigned __int64 v148; // x7
__int64 v149; // x4
uint8x16_t v150; // t1
uint32x4_t *v151; // x11
uint32x4_t *v152; // x10
uint32x4_t *v153; // x9
uint16x8_t v154; // q1
uint16x8_t v155; // q0
unsigned __int8 *v156; // x0
int32x4_t *v157; // x1
__int64 v158; // x0
unsigned __int8 *v159; // x0
unsigned __int8 *v160; // x4
__int64 v161; // x0
__int64 v162; // x0
__int64 v163; // [xsp+70h] [xbp+70h]
int v164; // [xsp+70h] [xbp+70h]
int v165; // [xsp+70h] [xbp+70h]
__int64 v166; // [xsp+70h] [xbp+70h]
unsigned __int64 v167; // [xsp+78h] [xbp+78h]
unsigned __int64 v168; // [xsp+78h] [xbp+78h]
unsigned __int64 v169; // [xsp+78h] [xbp+78h]
unsigned __int64 v170; // [xsp+78h] [xbp+78h]
unsigned int v171[4]; // [xsp+88h] [xbp+88h] BYREF
v6 = a3[4];
v8 = *a3;
v9 = a3[2];
v10 = a3[1];
if ( v6 <= (int)a2 )
{
v24 = a2 + (unsigned int)a5;
if ( v8 <= (unsigned int)v24 )
{
v25 = *a1;
v26 = *a1 + (unsigned int)v24;
if ( v26 > a1[1] )
{
v164 = a5;
v168 = a4;
fmt::internal::Array::grow(a1, *a1 + (unsigned int)v24);
LODWORD(a5) = v164;
a4 = v168;
}
v27 = a1[2];
v28 = (unsigned __int8 *)(a4 + (unsigned int)a5);
*a1 = v26;
v29 = v27 + 4 * v25;
if ( (unsigned __int8 *)a4 != v28 )
{
v30 = (unsigned __int64)&v28[-a4];
if ( (a4 >= v27 + 4LL * (_QWORD)&v28[v25 - a4] || v29 >= (unsigned __int64)v28) && v30 > 0xF )
{
v31 = (uint8x16_t *)a4;
v32 = (uint32x4_t *)(v27 + 4 * v25);
v33 = ((unsigned __int64)&v28[-a4 - 16] >> 4) + 1;
v34 = 0;
v35 = 16 * v33;
do
{
v36 = *v31++;
v37 = v32;
v38 = v32 + 2;
v39 = v32 + 3;
++v34;
v32 += 4;
v40 = vmovl_u8((uint8x8_t)v36.n128_u64[0]);
v41 = vmovl_high_u8(v36);
*v37 = vmovl_u16((uint16x4_t)v40.n128_u64[0]);
v37[1] = vmovl_high_u16(v40);
*v38 = vmovl_u16((uint16x4_t)v41.n128_u64[0]);
*v39 = vmovl_high_u16(v41);
}
while ( v34 < v33 );
v42 = (unsigned __int8 *)(a4 + v35);
v43 = (_DWORD *)(v29 + (v33 << 6));
if ( v30 != v35 )
{
*(_DWORD *)(v29 + (v33 << 6)) = *(unsigned __int8 *)(a4 + 16 * v33);
if ( v28 != v42 + 1 )
{
v43[1] = v42[1];
if ( v28 != v42 + 2 )
{
v43[2] = v42[2];
if ( v28 != v42 + 3 )
{
v43[3] = v42[3];
if ( v28 != v42 + 4 )
{
v43[4] = v42[4];
if ( v28 != v42 + 5 )
{
v43[5] = v42[5];
if ( v28 != v42 + 6 )
{
v43[6] = v42[6];
if ( v28 != v42 + 7 )
{
v43[7] = v42[7];
if ( v28 != v42 + 8 )
{
v43[8] = v42[8];
if ( v28 != v42 + 9 )
{
v43[9] = v42[9];
if ( v28 != v42 + 10 )
{
v43[10] = v42[10];
if ( v28 != v42 + 11 )
{
v43[11] = v42[11];
if ( v28 != v42 + 12 )
{
v43[12] = v42[12];
if ( v28 != v42 + 13 )
{
v43[13] = v42[13];
if ( v28 != v42 + 14 )
v43[14] = v42[14];
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
else
{
v142 = nullptr;
do
{
*(_DWORD *)(v29 + 4LL * (_QWORD)v142) = v142[a4];
++v142;
}
while ( v142 != &v28[-a4] );
}
}
return v29 + 4LL * (unsigned int)v24 - 4;
}
v44 = *a1;
v45 = v8 + *a1;
if ( v45 > a1[1] )
{
v165 = a5;
v169 = a4;
fmt::internal::Array::grow(a1, v8 + *a1);
LODWORD(a5) = v165;
a4 = v169;
}
v46 = a1[2];
*a1 = v45;
v47 = (int32x4_t *)(v46 + 4 * v44);
v48 = (_DWORD *)v47 + v8;
if ( v9 != 1 )
{
if ( v9 != 3 )
{
if ( v9 == 4 )
{
v51 = (char *)&v48[-(unsigned int)v24];
if ( (_DWORD)a5 )
{
v143 = (unsigned __int8 *)(a4 + (unsigned int)a5);
if ( (unsigned __int8 *)a4 != v143 )
{
v144 = (unsigned int)a5;
if ( (a4 >= v46 + 4 * (v44 + (unsigned int)a5) || v47 >= (int32x4_t *)v143) && (unsigned int)a5 > 0xFuLL )
{
v145 = (uint8x16_t *)a4;
v146 = (uint32x4_t *)(v46 + 4 * v44);
v147 = (((unsigned __int64)(unsigned int)a5 - 16) >> 4) + 1;
v148 = 0;
v149 = 16 * v147;
do
{
v150 = *v145++;
v151 = v146;
v152 = v146 + 2;
v153 = v146 + 3;
++v148;
v146 += 4;
v154 = vmovl_u8((uint8x8_t)v150.n128_u64[0]);
v155 = vmovl_high_u8(v150);
*v151 = vmovl_u16((uint16x4_t)v154.n128_u64[0]);
v151[1] = vmovl_high_u16(v154);
*v152 = vmovl_u16((uint16x4_t)v155.n128_u64[0]);
*v153 = vmovl_high_u16(v155);
}
while ( v148 < v147 );
v116 = v144 == v149;
v156 = (unsigned __int8 *)(a4 + v149);
v157 = &v47[(unsigned __int64)v149 / 4];
if ( !v116 )
{
v47[(unsigned __int64)v149 / 4].n128_u32[0] = *(unsigned __int8 *)(a4 + v149);
if ( v143 != v156 + 1 )
{
v157->n128_u32[1] = v156[1];
if ( v143 != v156 + 2 )
{
v157->n128_u32[2] = v156[2];
if ( v143 != v156 + 3 )
{
v157->n128_u32[3] = v156[3];
if ( v143 != v156 + 4 )
{
v157[1].n128_u32[0] = v156[4];
if ( v143 != v156 + 5 )
{
v157[1].n128_u32[1] = v156[5];
if ( v143 != v156 + 6 )
{
v157[1].n128_u32[2] = v156[6];
if ( v143 != v156 + 7 )
{
v157[1].n128_u32[3] = v156[7];
if ( v143 != v156 + 8 )
{
v157[2].n128_u32[0] = v156[8];
if ( v143 != v156 + 9 )
{
v157[2].n128_u32[1] = v156[9];
if ( v143 != v156 + 10 )
{
v157[2].n128_u32[2] = v156[10];
if ( v143 != v156 + 11 )
{
v157[2].n128_u32[3] = v156[11];
if ( v143 != v156 + 12 )
{
v157[3].n128_u32[0] = v156[12];
if ( v143 != v156 + 13 )
{
v157[3].n128_u32[1] = v156[13];
if ( v143 != v156 + 14 )
v157[3].n128_u32[2] = v156[14];
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
else
{
v162 = 0;
do
{
v47->n128_u32[v162] = *(unsigned __int8 *)(a4 + v162);
++v162;
}
while ( v162 != (unsigned int)a5 );
}
v47 = (int32x4_t *)((char *)v47 + 4 * (_QWORD)&v143[-a4]);
}
v51 = (char *)&v48[-a2];
}
}
else
{
v49 = (unsigned __int8 *)(a4 + (unsigned int)a5);
v50 = 4LL * (unsigned int)v24;
v51 = (char *)&v48[v50 / 0xFFFFFFFFFFFFFFFCLL];
if ( (unsigned __int8 *)a4 != v49 )
{
v52 = (unsigned int)a5;
v53 = (uint32x4_t *)(v46 + 4 * v45 - v50);
if ( (a4 >= v46 + 4 * (v44 + (unsigned int)a5 + v8) - v50 || v53 >= (uint32x4_t *)v49)
&& (unsigned int)a5 > 0xFuLL )
{
v54 = (uint8x16_t *)a4;
v55 = 0;
v56 = ((unsigned __int64)&v49[-a4 - 16] >> 4) + 1;
v57 = 16 * v56;
do
{
v58 = *v54++;
v59 = v53;
v60 = v53 + 2;
v61 = v53 + 3;
++v55;
v53 += 4;
v62 = vmovl_u8((uint8x8_t)v58.n128_u64[0]);
v63 = vmovl_high_u8(v58);
*v59 = vmovl_u16((uint16x4_t)v62.n128_u64[0]);
v59[1] = vmovl_high_u16(v62);
*v60 = vmovl_u16((uint16x4_t)v63.n128_u64[0]);
*v61 = vmovl_high_u16(v63);
}
while ( v55 < v56 );
v64 = (unsigned __int8 *)(a4 + v57);
v65 = &v51[4 * v57];
if ( v52 != v57 )
{
*(_DWORD *)&v51[4 * v57] = *(unsigned __int8 *)(a4 + v57);
if ( v49 != v64 + 1 )
{
*((_DWORD *)v65 + 1) = v64[1];
if ( v49 != v64 + 2 )
{
*((_DWORD *)v65 + 2) = v64[2];
if ( v49 != v64 + 3 )
{
*((_DWORD *)v65 + 3) = v64[3];
if ( v49 != v64 + 4 )
{
*((_DWORD *)v65 + 4) = v64[4];
if ( v49 != v64 + 5 )
{
*((_DWORD *)v65 + 5) = v64[5];
if ( v49 != v64 + 6 )
{
*((_DWORD *)v65 + 6) = v64[6];
if ( v49 != v64 + 7 )
{
*((_DWORD *)v65 + 7) = v64[7];
if ( v49 != v64 + 8 )
{
*((_DWORD *)v65 + 8) = v64[8];
if ( v49 != v64 + 9 )
{
*((_DWORD *)v65 + 9) = v64[9];
if ( v49 != v64 + 10 )
{
*((_DWORD *)v65 + 10) = v64[10];
if ( v49 != v64 + 11 )
{
*((_DWORD *)v65 + 11) = v64[11];
if ( v49 != v64 + 12 )
{
*((_DWORD *)v65 + 12) = v64[12];
if ( v49 != v64 + 13 )
{
*((_DWORD *)v65 + 13) = v64[13];
if ( v49 != v64 + 14 )
*((_DWORD *)v65 + 14) = v64[14];
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
else
{
v158 = 0;
do
{
*(_DWORD *)&v51[4 * v158] = *(unsigned __int8 *)(a4 + v158);
++v158;
}
while ( v158 != (unsigned int)a5 );
}
}
}
v66 = (v51 - (char *)v47) >> 2;
if ( v66 > 0 )
{
v67 = v66;
v68 = ((unsigned __int64)(v66 - 4) >> 2) + 1;
v69 = 4 * v68;
if ( v66 <= 3 )
goto LABEL_204;
v70 = vdupq_n_s32(v10);
v71 = v47;
v72 = 0;
do
{
*v71++ = v70;
++v72;
}
while ( v72 < v68 );
v47 += v68;
v66 -= v69;
if ( v67 != v69 )
{
LABEL_204:
v47->n128_u32[0] = v10;
if ( v66 - 1 > 0 )
{
v47->n128_u32[1] = v10;
if ( v66 != 2 )
v47->n128_u32[2] = v10;
}
}
}
return (__int64)(v48 - 1);
}
v109 = v8 - v24;
v110 = v109 >> 1;
if ( v109 >> 1 )
{
v111 = ((v110 - 4) >> 2) + 1;
v112 = 4 * v111;
if ( v110 - 1 <= 2 )
{
v118 = v109 >> 1;
v117 = (unsigned int *)(v46 + 4 * v44);
}
else
{
v113 = vdupq_n_s32(v10);
v114 = (int32x4_t *)(v46 + 4 * v44);
v115 = 0;
do
{
*v114++ = v113;
++v115;
}
while ( v115 < v111 );
v116 = v110 == v112;
v117 = (unsigned int *)&v47[v111];
v118 = v110 - v112;
if ( v116 )
goto LABEL_128;
}
*v117 = v10;
if ( v118 != 1 )
{
v117[1] = v10;
if ( v118 != 2 )
v117[2] = v10;
}
}
LABEL_128:
v119 = v109 - v110;
v120 = (_DWORD *)v47 + v110;
v48 = &v120[v24];
if ( !v119 )
goto LABEL_136;
v121 = ((v119 - 4) >> 2) + 1;
v122 = 4 * v121;
if ( v119 - 1 <= 2 )
{
v126 = &v120[v24];
}
else
{
v123 = vdupq_n_s32(v10);
v124 = 0;
v125 = (int32x4_t *)(v46 + 4 * (v24 + v44 + v110));
do
{
*v125++ = v123;
++v124;
}
while ( v124 < v121 );
v116 = v119 == v122;
v126 = &v48[4 * v121];
v119 -= v122;
if ( v116 )
goto LABEL_136;
}
*v126 = v10;
if ( v119 != 1 )
{
v126[1] = v10;
if ( v119 != 2 )
v126[2] = v10;
}
LABEL_136:
v127 = (unsigned __int8 *)(a4 + (unsigned int)a5);
if ( (unsigned __int8 *)a4 != v127 )
{
v128 = v44 - a4;
v129 = (uint32x4_t *)(v46 + 4 * (v110 + v44));
if ( a4 < v46 + 4LL * (_QWORD)&v127[v128 + v110] && v129 < (uint32x4_t *)v127 || (unsigned int)a5 <= 0xFuLL )
{
v161 = 0;
do
{
v120[v161] = *(unsigned __int8 *)(a4 + v161);
++v161;
}
while ( v161 != (unsigned int)a5 );
return (__int64)(v48 - 1);
}
v130 = (uint8x16_t *)a4;
v131 = ((unsigned __int64)(unsigned int)a5 - 16) >> 4;
v132 = 0;
v133 = 16 * (v131 + 1);
do
{
v134 = *v130++;
v135 = v129;
v136 = v129 + 2;
v137 = v129 + 3;
++v132;
v129 += 4;
v138 = vmovl_u8((uint8x8_t)v134.n128_u64[0]);
v139 = vmovl_high_u8(v134);
*v135 = vmovl_u16((uint16x4_t)v138.n128_u64[0]);
v135[1] = vmovl_high_u16(v138);
*v136 = vmovl_u16((uint16x4_t)v139.n128_u64[0]);
*v137 = vmovl_high_u16(v139);
}
while ( v132 < v131 + 1 );
v140 = (unsigned __int8 *)(a4 + v133);
v141 = &v120[16 * v131 + 16];
if ( (unsigned int)a5 != v133 )
{
v120[16 * v131 + 16] = *(unsigned __int8 *)(a4 + v133);
if ( v127 != v140 + 1 )
{
v141[1] = v140[1];
if ( v127 != v140 + 2 )
{
v141[2] = v140[2];
if ( v127 != v140 + 3 )
{
v141[3] = v140[3];
if ( v127 != v140 + 4 )
{
v141[4] = v140[4];
if ( v127 != v140 + 5 )
{
v141[5] = v140[5];
if ( v127 != v140 + 6 )
{
v141[6] = v140[6];
if ( v127 != v140 + 7 )
{
v141[7] = v140[7];
if ( v127 != v140 + 8 )
{
v141[8] = v140[8];
if ( v127 != v140 + 9 )
{
v141[9] = v140[9];
if ( v127 != v140 + 10 )
{
v141[10] = v140[10];
if ( v127 != v140 + 11 )
{
v141[11] = v140[11];
if ( v127 != v140 + 12 )
{
v141[12] = v140[12];
if ( v127 != v140 + 13 )
{
v141[13] = v140[13];
if ( v127 != v140 + 14 )
{
v141[14] = v140[14];
return (__int64)(v48 - 1);
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
return (__int64)(v48 - 1);
}
v73 = (unsigned __int8 *)(a4 + (unsigned int)a5);
if ( (unsigned __int8 *)a4 != v73 )
{
v74 = (unsigned __int64)&v73[-a4];
if ( (a4 >= v46 + 4LL * (_QWORD)&v73[v44 - a4] || v47 >= (int32x4_t *)v73) && v74 > 0xF )
{
v75 = (uint8x16_t *)a4;
v76 = (uint32x4_t *)(v46 + 4 * v44);
v77 = ((unsigned __int64)&v73[-a4 - 16] >> 4) + 1;
v78 = 0;
v79 = 16 * v77;
do
{
v80 = *v75++;
v81 = v76;
v82 = v76 + 2;
v83 = v76 + 3;
++v78;
v76 += 4;
v84 = vmovl_u8((uint8x8_t)v80.n128_u64[0]);
v85 = vmovl_high_u8(v80);
*v81 = vmovl_u16((uint16x4_t)v84.n128_u64[0]);
v81[1] = vmovl_high_u16(v84);
*v82 = vmovl_u16((uint16x4_t)v85.n128_u64[0]);
*v83 = vmovl_high_u16(v85);
}
while ( v78 < v77 );
v86 = (unsigned __int8 *)(a4 + v79);
v87 = &v47[(unsigned __int64)v79 / 4];
if ( v74 != v79 )
{
v47[(unsigned __int64)v79 / 4].n128_u32[0] = *(unsigned __int8 *)(a4 + v79);
if ( v73 != v86 + 1 )
{
v87->n128_u32[1] = v86[1];
if ( v73 != v86 + 2 )
{
v87->n128_u32[2] = v86[2];
if ( v73 != v86 + 3 )
{
v87->n128_u32[3] = v86[3];
if ( v73 != v86 + 4 )
{
v87[1].n128_u32[0] = v86[4];
if ( v73 != v86 + 5 )
{
v87[1].n128_u32[1] = v86[5];
if ( v73 != v86 + 6 )
{
v87[1].n128_u32[2] = v86[6];
if ( v73 != v86 + 7 )
{
v87[1].n128_u32[3] = v86[7];
if ( v73 != v86 + 8 )
{
v87[2].n128_u32[0] = v86[8];
if ( v73 != v86 + 9 )
{
v87[2].n128_u32[1] = v86[9];
if ( v73 != v86 + 10 )
{
v87[2].n128_u32[2] = v86[10];
if ( v73 != v86 + 11 )
{
v87[2].n128_u32[3] = v86[11];
if ( v73 != v86 + 12 )
{
v87[3].n128_u32[0] = v86[12];
if ( v73 != v86 + 13 )
{
v87[3].n128_u32[1] = v86[13];
if ( v73 != v86 + 14 )
v87[3].n128_u32[2] = v86[14];
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
else
{
v159 = nullptr;
v160 = &v73[-a4];
do
{
v47->n128_u32[(_QWORD)v159] = v159[a4];
++v159;
}
while ( v159 != v160 );
}
}
v88 = (_DWORD *)v47 + v24;
v89 = v48 - v88;
if ( v89 <= 0 )
goto LABEL_107;
v90 = ((unsigned __int64)(v89 - 4) >> 2) + 1;
v91 = 4 * v90;
if ( v89 <= 3 )
{
v95 = (unsigned int *)v47 + v24;
}
else
{
v92 = vdupq_n_s32(v10);
v93 = 0;
v94 = (int32x4_t *)(v46 + 4 * (v24 + v44));
do
{
*v94++ = v92;
++v93;
}
while ( v93 < v90 );
v95 = &v88[4 * v90];
v89 -= v91;
if ( v48 - v88 == v91 )
goto LABEL_107;
}
*v95 = v10;
if ( v89 - 1 > 0 )
{
v95[1] = v10;
if ( v89 != 2 )
{
v95[2] = v10;
v96 = (_DWORD *)v47 + v24;
return (__int64)(v96 - 1);
}
}
LABEL_107:
v96 = (_DWORD *)v47 + v24;
return (__int64)(v96 - 1);
}
if ( (_DWORD)a5 )
{
if ( *(_BYTE *)(a4 + (unsigned int)(a5 - 1)) == 48 )
a5 = (unsigned int)(a5 - 1);
else
a5 = (unsigned int)a5;
}
v11 = a5 + v6;
v171[0] = a5 + v6;
v171[1] = 48;
v171[2] = 4;
if ( v8 <= (int)a5 + v6 )
return fmt::BasicWriter::PrepareBufferForInt(a1, a2, v171, a4, a5);
if ( a1[1] < v8 )
{
v166 = a5;
v170 = a4;
fmt::internal::Array::grow(a1, v8);
a5 = v166;
a4 = v170;
}
v12 = v8 - v11;
if ( v9 != 1 )
{
v13 = *a1;
v14 = v12 + *a1;
if ( v14 > a1[1] )
{
v163 = a5;
v167 = a4;
fmt::internal::Array::grow(a1, v12 + *a1);
a5 = v163;
a4 = v167;
}
v15 = a1[2];
*a1 = v14;
v16 = (int32x4_t *)(v15 + 4 * v13);
if ( v12 )
{
v17 = v12;
v18 = ((unsigned __int64)(v12 - 4) >> 2) + 1;
v19 = 4 * v18;
if ( v12 <= 3 )
goto LABEL_17;
v20 = vdupq_n_s32(v10);
v21 = v16;
v22 = 0;
do
{
*v21++ = v20;
++v22;
}
while ( v18 > v22 );
v16 += v18;
v12 -= v19;
if ( v19 != v17 )
{
LABEL_17:
v16->n128_u32[0] = v10;
if ( v12 != 1 )
{
v16->n128_u32[1] = v10;
if ( v12 != 2 )
v16->n128_u32[2] = v10;
}
}
}
return fmt::BasicWriter::PrepareBufferForInt(a1, a2, v171, a4, a5);
}
v97 = fmt::BasicWriter::PrepareBufferForInt(a1, a2, v171, a4, a5);
v98 = *a1;
v99 = v97;
v100 = v12 + *a1;
if ( v100 > a1[1] )
fmt::internal::Array::grow(a1, v12 + *a1);
v101 = a1[2];
*a1 = v100;
v102 = (int32x4_t *)(v101 + 4 * v98);
if ( v12 )
{
v103 = v12;
v104 = ((unsigned __int64)(v12 - 4) >> 2) + 1;
v105 = 4 * v104;
if ( v12 <= 3 )
goto LABEL_205;
v106 = vdupq_n_s32(v10);
v107 = v102;
v108 = 0;
do
{
*v107++ = v106;
++v108;
}
while ( v104 > v108 );
v102 += v104;
v12 -= v105;
if ( v103 != v105 )
{
LABEL_205:
v102->n128_u32[0] = v10;
if ( v12 != 1 )
{
v102->n128_u32[1] = v10;
if ( v12 != 2 )
v102->n128_u32[2] = v10;
}
}
}
return v99;
}