//
// cocos2d::cc_utf8_find_last_not_char from 0x7f50dc to 0x7f50f4 (24 bytes)
//
// 1 xrefs:
// > cocos2d::CCLabelBMFont::updateLabel @ 0x7d40b0
//
// 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 12:01:08 +0000
//
int __fastcall cocos2d::cc_utf8_find_last_not_char(int *a1, int a2)
{
int v2; // r3
int result; // r0
v2 = *a1;
result = (a1[1] - *a1) >> 1;
do
--result;
while ( result >= 0 && *(unsigned __int16 *)(v2 + 2 * result) == a2 );
return result;
}