//
// sub_10042235C from 0x10042235c to 0x100422374 (24 bytes)
//
// 22 xrefs:
// > sub_10002758C @ 0x1000275c4
// > sub_10002758C @ 0x1000275ec
// > SetupTriggerPopup::valueChanged @ 0x1001adc78
// > sub_100252B30 @ 0x100252b68
// > sub_100252B30 @ 0x100252b90
// > sub_100262B9C @ 0x100262bd4
// > sub_100262B9C @ 0x100262bfc
// > sub_1002D7B4C @ 0x1002d7b84
// > sub_1002D7B4C @ 0x1002d7bac
// > sub_1002E914C @ 0x1002e9184
// > sub_1002E914C @ 0x1002e91ac
// > sub_10034CA6C @ 0x10034caa4
// > sub_10034CA6C @ 0x10034cacc
// > sub_10045D780 @ 0x10045d7a4
// > sub_10045D780 @ 0x10045d7cc
// > sub_10046D904 @ 0x10046d93c
// > sub_10046D904 @ 0x10046d964
// > sub_10047A668 @ 0x10047a724
// > sub_10047AA1C @ 0x10047ab58
// > EditorUI::createLoop @ 0x10047ae3c
// > EditorUI::createLoop @ 0x10047b050
// > EditorUI::onTargetIDChange @ 0x10047ce0c
//
// 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 11:05:00 +0000
//
__int64 __fastcall sub_10042235C(__int64 result, int a2)
{
int v2; // w8
v2 = a2 & ~(a2 >> 31);
if ( v2 >= 9999 )
v2 = 9999;
*(_DWORD *)(result + 1464) = v2;
return result;
}