//
// sub_848658 from 0x848658 to 0x8486f2 (154 bytes)
//
// 2 xrefs:
// > sub_848A84 @ 0x848b02
// > sub_848CAC @ 0x8491d2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:02:25 +0000
//
int __fastcall sub_848658(int a1)
{
void **v2; // r8
int result; // r0
char *v4; // r5
char *v5; // r4
size_t v6; // r0
size_t v7; // r0
char *v8; // r0
int v9; // t1
char v10; // [sp+3h] [bp-39h] BYREF
_BYTE v11[16]; // [sp+4h] [bp-38h] BYREF
char v12[32]; // [sp+14h] [bp-28h] BYREF
char v13; // [sp+34h] [bp-8h] BYREF
v2 = (void **)sub_8420C4((int)&off_D132D0);
result = 27;
if ( v2 )
{
v4 = &v10;
v5 = v12;
v6 = strlen(*(const char **)(a1 + 1192));
nullsub_1(v6);
sub_842108(v2);
v7 = strlen(*(const char **)(a1 + 380));
nullsub_1(v7);
sub_842108(v2);
sub_842118(v2, (int)v11);
do
{
v8 = v5;
v5 += 2;
v9 = (unsigned __int8)*++v4;
sub_8346C0(v8, 3, "%02x", v9);
}
while ( v5 != &v13 );
result = sub_84A864(a1 + 1088, "APOP %s %s", *(const char **)(a1 + 376), v12);
if ( !result )
*(_DWORD *)(a1 + 1144) = 6;
}
return result;
}