//
// GJMapObject::monsterJump from 0x100251600 to 0x100251800 (512 bytes)
//
// 2 xrefs:
// > GJMapObject::startMonsterJumpLoop @ 0x1002510c2
// > GJMapObject::monsterJump @ 0x1002516c3
//
// 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:27:24 +0000
//
__int64 __fastcall GJMapObject::monsterJump(__int64 a1)
{
__int64 v1; // rax
int v2; // r14d
__int64 v3; // rax
int v4; // r15d
__int64 (__fastcall *v5)(); // rsi
int v6; // r12d
int v7; // eax
int v8; // r9d
__int64 v9; // rsi
__int64 v10; // rax
int v11; // r14d
__int64 v12; // rax
int v13; // eax
int v14; // ecx
int v15; // r8d
int v16; // r9d
__int64 v17; // rax
__int64 result; // rax
double v19; // [rsp+0h] [rbp-40h]
timeb v20; // [rsp+8h] [rbp-38h] BYREF
float v21; // [rsp+18h] [rbp-28h]
float v22; // [rsp+1Ch] [rbp-24h]
sub_100278250(&v20, 0.0, 16.0);
v1 = cocos2d::CCMoveBy::create(&v20, 0.2025);
v2 = cocos2d::CCEaseOut::create(v1, 1.6);
sub_100278250(&v20, 0.0, -16.0);
v3 = cocos2d::CCMoveBy::create(&v20, 0.2025);
v4 = cocos2d::CCEaseIn::create(v3, 1.6);
ftime(&v20);
v19 = (double)v20.millitm / 1000.0 + (double)SLODWORD(v20.time);
v5 = (__int64 (__fastcall *)())GJMapObject::monsterJump;
if ( v19 > *(double *)(a1 + 320) )
v5 = GJMapObject::monsterIdle;
v6 = cocos2d::CCCallFunc::create(a1, v5, 0);
v7 = cocos2d::CCDelayTime::create(0.0099999998);
v9 = sub_10039EB60(v2, v4, v7, v6, 0, v8);
cocos2d::CCNode::runAction(*(_QWORD *)(a1 + 328), v9);
v22 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 336) + 136LL))(*(_QWORD *)(a1 + 336));
v21 = (*(float (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 336) + 152LL))(*(_QWORD *)(a1 + 336));
v10 = cocos2d::CCScaleTo::create(0.2025, 1.3 * v22, 1.4 * v21);
v11 = cocos2d::CCEaseInOut::create(v10, 1.8);
v12 = cocos2d::CCScaleTo::create(0.2025, v22, v21);
v13 = cocos2d::CCEaseInOut::create(v12, 1.8);
v17 = sub_10039EB60(v11, v13, 0, v14, v15, v16);
result = cocos2d::CCNode::runAction(*(_QWORD *)(a1 + 336), v17);
if ( !*(_BYTE *)(a1 + 357) && v19 > *(double *)(a1 + 360) )
{
sub_1002782D0(&v20, a1 + 344);
return GJMapObject::moveMonster((_BYTE *)a1, (float *)&v20, *(float *)(a1 + 352));
}
return result;
}