//
// MultilineBitmapFont::readColorInfo from 0x2f10f8 to 0x2f14b0 (952 bytes)
//
// 1 xrefs:
// > MultilineBitmapFont::initWithFont @ 0x2f15a4
//
// 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
//
_DWORD *__fastcall MultilineBitmapFont::readColorInfo(_DWORD *a1, MultilineBitmapFont *a2, _DWORD *a3)
{
int v6; // r10
int v7; // r7
int v8; // r0
int v9; // r0
int v10; // r9
int v11; // r0
char v12; // r3
char v13; // r3
cocos2d::CCArray *m_specialDescriptors; // r7
TextStyleSection *ColoredSection; // r1
cocos2d::CCArray *v16; // r0
int v17; // r0
int v18; // r7
float v19; // s16
int v20; // r0
int v21; // r0
int v22; // r9
int v23; // r0
cocos2d::CCArray *v24; // r10
int v25; // r0
int v26; // r7
int v27; // r11
int v28; // r10
int v29; // r0
int v30; // r0
int v31; // r9
int v32; // r0
int v33; // r0
int v34; // r7
int v35; // s16
int v36; // r0
cocos2d::CCArray *v37; // r9
cocos2d::CCArray *v39; // [sp+4h] [bp-28h]
char *v40; // [sp+20h] [bp-Ch] BYREF
while ( 1 )
{
v6 = sub_7748A0((int)a3, "");
v10 = v9;
if ( v9 == -1 )
goto LABEL_43;
v11 = sub_7764A4((int)a3, v9, 4, (char *)&unk_939830);
sub_775D40(a3, v11);
MultilineBitmapFont::moveSpecialDescriptors(a2, v10, 4);
switch ( v7 )
{
case 'b':
LOWORD(v40) = 21066;
v12 = -31;
LABEL_32:
BYTE2(v40) = v12;
goto LABEL_33;
case 'g':
LOWORD(v40) = -7360;
v12 = 72;
goto LABEL_32;
case 'l':
LOWORD(v40) = -21664;
v12 = -17;
goto LABEL_32;
case 'j':
LOBYTE(v40) = 50;
v13 = -56;
LABEL_21:
BYTE1(v40) = v13;
v12 = -1;
goto LABEL_32;
case 'y':
LOWORD(v40) = -1;
v12 = 0;
goto LABEL_32;
case 'o':
LOWORD(v40) = -23041;
v12 = 75;
goto LABEL_32;
case 'r':
LOBYTE(v40) = -1;
v12 = 90;
break;
case 'p':
LOWORD(v40) = 255;
BYTE2(v40) = -1;
LABEL_33:
m_specialDescriptors = a2->m_specialDescriptors;
ColoredSection = TextStyleSection::createColoredSection((cocos2d::ccColor3B)v40, v6, v10 - 1);
v16 = m_specialDescriptors;
goto LABEL_42;
case 'a':
LOBYTE(v40) = -106;
v13 = 50;
goto LABEL_21;
default:
v12 = -1;
switch ( v7 )
{
case 'd':
LOWORD(v40) = -26881;
goto LABEL_32;
case 'c':
LOWORD(v40) = -1;
v12 = -106;
goto LABEL_32;
case 'f':
LOBYTE(v40) = -106;
break;
default:
LOBYTE(v40) = -1;
if ( v7 == 115 )
{
BYTE1(v40) = -36;
v12 = 65;
goto LABEL_32;
}
v12 = 0;
break;
}
break;
}
BYTE1(v40) = v12;
goto LABEL_32;
}
v17 = sub_7748A0((int)a3, "");
v22 = v21;
if ( v21 == -1 )
goto LABEL_43;
v23 = sub_7764A4((int)a3, v21, 4, (char *)&unk_939830);
sub_775D40(a3, v23);
MultilineBitmapFont::moveSpecialDescriptors(a2, v22, 4);
v24 = a2->m_specialDescriptors;
ColoredSection = TextStyleSection::createInstantSection(v18, v22 - 1, v19);
v16 = v24;
goto LABEL_42;
}
v25 = sub_7748A0((int)a3, "");
v31 = v30;
if ( v30 == -1 )
goto LABEL_43;
v32 = sub_7764A4((int)a3, v30, 4, (char *)&unk_939830);
sub_775D40(a3, v32);
MultilineBitmapFont::moveSpecialDescriptors(a2, v31, 4);
v39 = a2->m_specialDescriptors;
ColoredSection = TextStyleSection::createShakeSection(v26, v31 - 1, v27, v28);
v16 = v39;
LABEL_42:
cocos2d::CCArray::addObject(v16, ColoredSection);
}
v33 = sub_7748A0((int)a3, "m_specialDescriptors;
ColoredSection = TextStyleSection::createDelaySection(v34, (float)v35 / 100.0);
v16 = v37;
goto LABEL_42;
}
LABEL_43:
*a1 = *a3;
*a3 = &unk_ACDDA8;
return a1;
}