//
// sub_72B92 from 0x72b92 to 0x72bf8 (102 bytes)
//
// 4 xrefs:
// > sub_72CA8 @ 0x72d1c
// > sub_72CA8 @ 0x72d36
// > sub_72DF4 @ 0x72e6a
// > sub_72DF4 @ 0x72e84
//
// 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 11:41:03 +0000
//
int __fastcall sub_72B92(int a1, unsigned int a2, int *a3)
{
unsigned int v3; // r3
unsigned int **v4; // r0
int *v5; // r4
char v6; // r5
__int64 v7; // kr00_8
int v8; // r1
char v9; // r3
int v10; // r1
unsigned int v11; // r5
v3 = *(unsigned __int8 *)(a1 + 15800);
v4 = (unsigned int **)(a1 + 15796);
if ( v3 >= a2 )
{
v9 = v3 - a2;
v11 = **v4;
**v4 = v11 >> a2;
v10 = v11 & ~(-1 << a2);
}
else
{
v5 = (int *)(*v4)++;
v6 = a2 - v3;
v7 = *(_QWORD *)v5;
v5[1] = (unsigned int)v5[1] >> (a2 - v3);
v8 = (HIDWORD(v7) & ~(-1 << (a2 - v3))) << v3;
v9 = 32 - v6;
v10 = v8 | v7;
}
*((_BYTE *)v4 + 4) = v9;
if ( a3 )
*a3 = v10;
return 0;
}