//
// cocos2d::CGAffineToGL from 0xb1f53c to 0xb1f5a0 (100 bytes)
//
// 2 xrefs:
// > cocos2d::CCNode::transform @ 0xaccda0
// > ??> @ 0x34b18
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall cocos2d::CGAffineToGL(_DWORD *a1, __int64 a2)
{
__int64 result; // x0
*(float *)(a2 + 60) = 1.0;
*(_DWORD *)(a2 + 56) = 0;
*(_DWORD *)(a2 + 44) = 0;
*(_DWORD *)(a2 + 36) = 0;
*(_DWORD *)(a2 + 32) = 0;
*(_DWORD *)(a2 + 28) = 0;
*(_DWORD *)(a2 + 24) = 0;
*(_DWORD *)(a2 + 12) = 0;
*(_DWORD *)(a2 + 8) = 0;
*(float *)(a2 + 40) = 1.0;
*(_DWORD *)a2 = *a1;
*(_DWORD *)(a2 + 16) = a1[2];
*(_DWORD *)(a2 + 48) = a1[4];
*(_DWORD *)(a2 + 4) = a1[1];
*(_DWORD *)(a2 + 20) = a1[3];
result = (unsigned int)a1[5];
*(_DWORD *)(a2 + 52) = result;
return result;
}