//
// sub_1000078A0 from 0x1000078a0 to 0x100007904 (100 bytes)
//
// 6 xrefs:
// > sub_10000756C @ 0x1000075a8
// > sub_100008C9C @ 0x100008df4
// > sub_100008C9C @ 0x100008f30
// > sub_100009164 @ 0x100009284
// > EditorUI::addObjectsToSmartTemplate @ 0x100478278
// > sub_1004796B4 @ 0x1004797e0
//
// 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 10:57:11 +0000
//
__int64 __usercall sub_1000078A0@(int a1@, __int64 a2@, __n128 a3@, __n128 a4@)
{
__int64 result; // x0
switch ( a1 )
{
case '6':
case '9':
case 'A':
case 'D':
a3.n128_u32[0] = 15.0;
goto LABEL_4;
case '7':
case '8':
case 'B':
case 'C':
a3.n128_u32[0] = -15.0;
LABEL_4:
a4.n128_u32[0] = 0;
goto LABEL_5;
case 'E':
case 'G':
case 'J':
case 'L':
a3.n128_u32[0] = 0;
a4.n128_u32[0] = -15.0;
goto LABEL_5;
case 'F':
case 'H':
case 'I':
case 'K':
a3.n128_u32[0] = 0;
a4.n128_u32[0] = 15.0;
LABEL_5:
result = sub_1000262BC(a2, a3, a4);
break;
default:
result = sub_1000262F4(a2, &unk_1009F23E0);
break;
}
return result;
}