//
// GameObject::updateOrientedBox from 0x14029e470 to 0x14029e631 (449 bytes)
//
// 48 xrefs:
// > ??> @ 0x140754bf0
// > ??> @ 0x140755370
// > ??> @ 0x14075e738
// > ??> @ 0x14075ee40
// > ??> @ 0x1407d4d50
// > ??> @ 0x14081f248
// > ??> @ 0x14081f978
// > ??> @ 0x1408201c0
// > ??> @ 0x140820918
// > ??> @ 0x140820fd0
// > ??> @ 0x140821738
// > ??> @ 0x140821df0
// > ??> @ 0x1408224d0
// > ??> @ 0x140822b88
// > ??> @ 0x140823498
// > ??> @ 0x140823be0
// > ??> @ 0x140824298
// > ??> @ 0x140824a90
// > ??> @ 0x140825148
// > ??> @ 0x140825800
// > ??> @ 0x140826070
// > ??> @ 0x140826868
// > ??> @ 0x140827010
// > ??> @ 0x140827740
// > ??> @ 0x140827df8
// > ??> @ 0x140828550
// > ??> @ 0x140828d98
// > ??> @ 0x140829450
// > ??> @ 0x140829bd0
// > ??> @ 0x14082a350
// > ??> @ 0x14082aa08
// > ??> @ 0x14082b0c0
// > ??> @ 0x14082bad0
// > ??> @ 0x14082c200
// > ??> @ 0x14082c8b8
// > ??> @ 0x14082cf70
// > ??> @ 0x14082d628
// > ??> @ 0x14082ddf8
// > ??> @ 0x14082e5a0
// > ??> @ 0x14082ec58
// > ??> @ 0x14082f310
// > ??> @ 0x14082f9c8
// > ??> @ 0x140830080
// > ??> @ 0x140830738
// > ??> @ 0x140830df0
// > ??> @ 0x140831610
// > ??> @ 0x140831d90
// > ??> @ 0x14091d8dc
//
// 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:29:14 +0000
//
void __fastcall GameObject::updateOrientedBox(__int64 a1)
{
__int64 v2; // rbx
__int64 v3; // rax
double v4; // xmm0_8
float v5; // xmm8_4
const struct cocos2d::CCPoint *v6; // rax
__int64 v7; // rdx
__int64 v8; // r8
char *v9; // rax
__int64 BoxOffset; // rbx
__int64 v11; // rax
float v12; // xmm0_4
__int64 v13; // rbx
float X; // xmm8_4
__int64 v15; // rax
__int64 v16; // r8
__int64 v17; // r9
char v18; // [rsp+70h] [rbp+8h] BYREF
char v19; // [rsp+78h] [rbp+10h] BYREF
if ( *(_QWORD *)(a1 + 736) )
{
if ( *(_BYTE *)(a1 + 873) )
{
BoxOffset = GameObject::getBoxOffset(a1);
v11 = (*(__int64 (__fastcall **)(__int64, char *))(*(_QWORD *)a1 + 1208LL))(a1, &v19);
cocos2d::CCPoint::operator+(v11, &v18, BoxOffset);
v12 = (*(float (__fastcall **)(__int64))(*(_QWORD *)a1 + 1424LL))(a1);
v13 = *(_QWORD *)(a1 + 736);
X = (float)-v12 * 0.017453292;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v19, (const struct cocos2d::CCPoint *)&v18);
OBB2D::calculateWithCenter(v13, v15, v16, v17, X);
*(_BYTE *)(a1 + 873) = 0;
}
}
else
{
v2 = GameObject::getBoxOffset(a1);
v3 = (*(__int64 (__fastcall **)(__int64, char *))(*(_QWORD *)a1 + 1208LL))(a1, &v19);
cocos2d::CCPoint::operator+(v3, &v18, v2);
v4 = (*(double (__fastcall **)(__int64))(*(_QWORD *)a1 + 1424LL))(a1);
v5 = (float)-*(float *)&v4 * 0.017453292;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v19, (const struct cocos2d::CCPoint *)&v18);
v9 = OBB2D::create(v6, v7, v8, v5);
*(_QWORD *)(a1 + 736) = v9;
cocos2d::CCObject::retain((cocos2d::CCObject *)v9);
}
}