//
// GJBaseGameLayer::flipObjects from 0x5980a4 to 0x59810e (106 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::visit @ 0x59867e
// > GJBaseGameLayer::visit @ 0x599112
//
// 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:53:10 +0000
//
int __fastcall GJBaseGameLayer::flipObjects(GJBaseGameLayer *this)
{
int v2; // r5
void (__fastcall *v3)(int, unsigned int); // r6
int v4; // r0
int v5; // r5
void (__fastcall *v6)(int, unsigned int); // r6
int v7; // r0
int v8; // r5
void (__fastcall *v9)(int, unsigned int); // r6
int v10; // r0
int v11; // r4
int (__fastcall *v12)(int, unsigned int); // r5
int v13; // r0
v2 = *((_DWORD *)this + 519);
v3 = *(void (__fastcall **)(int, unsigned int))(*(_DWORD *)v2 + 64);
v4 = (*(int (__fastcall **)(int))(*(_DWORD *)v2 + 68))(v2);
v3(v2, v4 ^ 0x80000000);
v5 = *((_DWORD *)this + 519);
v6 = *(void (__fastcall **)(int, unsigned int))(*(_DWORD *)v5 + 180);
v7 = (*(int (__fastcall **)(int))(*(_DWORD *)v5 + 184))(v5);
v6(v5, v7 ^ 0x80000000);
v8 = *((_DWORD *)this + 520);
v9 = *(void (__fastcall **)(int, unsigned int))(*(_DWORD *)v8 + 64);
v10 = (*(int (__fastcall **)(int))(*(_DWORD *)v8 + 68))(v8);
v9(v8, v10 ^ 0x80000000);
v11 = *((_DWORD *)this + 520);
v12 = *(int (__fastcall **)(int, unsigned int))(*(_DWORD *)v11 + 180);
v13 = (*(int (__fastcall **)(int))(*(_DWORD *)v11 + 184))(v11);
return v12(v11, v13 ^ 0x80000000);
}