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