//
// swapAlphaChannel from 0xd7e024 to 0xd7e098 (116 bytes)
//
// 2 xrefs:
// > cocos2d::CCImage::initWithStringShadowStroke @ 0xd7e838
// > ??> @ 0xc9520
//
// 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:08 +0000
//
__int64 __fastcall swapAlphaChannel(unsigned int *a1, unsigned int a2)
{
__int64 i; // x3
for ( i = 0; a2 > (unsigned int)i; ++i )
a1[i] = (HIBYTE(a1[i]) << 16) | (a1[i] << 24) | (unsigned __int8)BYTE1(a1[i]) | ((unsigned __int8)BYTE2(a1[i]) << 8);
return _stack_chk_guard;
}