//
// cocos2d::CGAffineToGL from 0xd9005c to 0xd900c0 (100 bytes)
//
// 2 xrefs:
// > cocos2d::CCNode::transform @ 0xd3ed10
// > ??> @ 0x4d8f0
//
// 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:08:18 +0000
//
__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;
}