//
// sub_100426680 from 0x100426680 to 0x1004266ff (127 bytes)
//
// 2 xrefs:
// > sub_1004259C0 @ 0x100425a9e
// > sub_1004259C0 @ 0x100425b3b
//
// 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 12:30:17 +0000
//
int __fastcall sub_100426680(pthread_t *a1, __int64 *a2)
{
std::__thread_struct *v2; // r14
_QWORD *v3; // rax
__int64 v4; // rcx
int result; // eax
v2 = (std::__thread_struct *)operator new(8u);
std::__thread_struct::__thread_struct(v2);
v3 = operator new(0x10u);
v4 = *a2;
*v3 = v2;
v3[1] = v4;
result = pthread_create(a1, nullptr, sub_100426750, v3);
if ( result )
{
std::__throw_system_error(result, "thread constructor failed");
BUG();
}
return result;
}