//
// sub_180049D00 from 0x180049d00 to 0x180049d64 (100 bytes)
//
// 3 xrefs:
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x18004afc7
// > cocos2d::CCBMFontConfiguration::parseCharacterDefinition @ 0x18004b0b9
// > ??> @ 0x1801bbb6c
//
// This function is hookable on this platform (idp: pc, 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 11:21:42 +0000
//
__int64 __fastcall sub_180049D00(_QWORD *a1, unsigned __int8 a2, unsigned __int64 a3)
{
_QWORD *v3; // rdi
unsigned __int64 v4; // rax
char *v6; // rbx
__int64 v7; // rax
__int64 v8; // rdx
v3 = a1;
if ( a1[3] > 0xFu )
v3 = (_QWORD *)*a1;
v4 = a1[2];
if ( a3 >= v4 )
return -1;
v6 = (char *)v3 + v4;
v7 = sub_1800E4920((char *)v3 + a3, (char *)v3 + v4, a2);
v8 = -1;
if ( (char *)v7 != v6 )
return v7 - (_QWORD)v3;
return v8;
}