// // GJUINode::init from 0x1004c5e50 to 0x1004c61a0 (848 bytes) // // 1 xrefs: // > GJUINode::create @ 0x1004c274e // // 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:31:07 +0000 // char __fastcall GJUINode::init(__m128 *a1, __int64 a2, double a3, double a4, __m128 a5, __m128 a6) { char result; // al char v9; // r13 const char *v10; // r15 const char *v11; // rdi char *v12; // rax __int8 v13; // al unsigned __int8 *v14; // rax __int64 *v15; // rdi __int64 v16; // rax unsigned __int64 *v17; // rsi float v18; // xmm0_4 float *v19; // r15 __int64 *v20; // r15 __int64 *v21; // rdi __int64 v22; // rax unsigned __int64 *v23; // rsi float v24; // xmm0_4 float *v25; // r15 __int64 *v26; // r15 float v27; // xmm0_4 unsigned int v28; // r15d __int64 v29; // rdi unsigned __int64 v30[2]; // [rsp+0h] [rbp-40h] BYREF float v31; // [rsp+10h] [rbp-30h] float v32; // [rsp+14h] [rbp-2Ch] result = cocos2d::CCNode::init(); if ( result ) { v9 = result; (*(void (__fastcall **)(__m128 *, void *))(a1->i64[0] + 320))(a1, &unk_100BE4300); v10 = "PBtn_Move_001.png"; v11 = "PBtn_Move_001.png"; if ( ((*(_BYTE *)(a2 + 36) | *(_BYTE *)(a2 + 38)) & 1) != 0 ) v11 = "PBtn_Jump_001.png"; v12 = cocos2d::CCSprite::createWithSpriteFrameName((__int64)v11, a3); a1[20].i64[0] = (__int64)v12; (*(void (__fastcall **)(__m128 *, char *, __int64))(a1->i64[0] + 464))(a1, v12, 1); v13 = *(_BYTE *)(a2 + 36); if ( !v13 ) { if ( *(_BYTE *)(a2 + 38) ) v10 = "PBtn_Jump_001.png"; v14 = (unsigned __int8 *)cocos2d::CCSprite::createWithSpriteFrameName((__int64)v10, a3); a1[20].i64[1] = (__int64)v14; cocos2d::CCSprite::setFlipX(v14, 1u); (*(void (__fastcall **)(__m128 *, __int64, __int64))(a1->i64[0] + 464))(a1, a1[20].i64[1], 1); v13 = *(_BYTE *)(a2 + 36); } a1[24].i8[3] = *(_BYTE *)(a2 + 38); a1[24].i8[2] = v13; a5.f32[0] = fmaxf((float)*(int *)a2, 10.0); a6.f32[0] = fmaxf((float)*(int *)(a2 + 4), 10.0); sub_100278270((__int64)v30, a5.f32[0] * -0.5, -0.5 * a6.f32[0], a5, a6); sub_100278810(a1 + 21, v30); if ( a1[20].i64[1] ) { v15 = (__int64 *)a1[20].i64[0]; v16 = *v15; if ( a1[23].i8[13] == 1 ) { v17 = &qword_100BE42F8; } else { v18 = (*(float (**)(void))(v16 + 168))(); v19 = (float *)a1[20].i64[0]; v32 = v18 * v19[108]; v31 = a1[23].f32[1]; sub_100278250((float *)v30, (float)(-0.5 * v32) - v31, 0.0); (*(void (__fastcall **)(float *, unsigned __int64 *))(*(_QWORD *)v19 + 184LL))(v19, v30); v20 = (__int64 *)a1[20].i64[1]; sub_100278250((float *)v30, (float)(v32 * 0.5) + v31, 0.0); v16 = *v20; v15 = v20; v17 = v30; } (*(void (__fastcall **)(__int64 *, unsigned __int64 *))(v16 + 184))(v15, v17); a1[23].f32[1] = fmaxf(*(float *)(a2 + 20), 0.0); if ( a1[20].i64[1] ) { v21 = (__int64 *)a1[20].i64[0]; v22 = *v21; if ( a1[23].i8[13] == 1 ) { v23 = &qword_100BE42F8; } else { v24 = (*(float (**)(void))(v22 + 168))(); v25 = (float *)a1[20].i64[0]; v32 = v24 * v25[108]; v31 = a1[23].f32[1]; sub_100278250((float *)v30, (float)(-0.5 * v32) - v31, 0.0); (*(void (__fastcall **)(float *, unsigned __int64 *))(*(_QWORD *)v25 + 184LL))(v25, v30); v26 = (__int64 *)a1[20].i64[1]; sub_100278250((float *)v30, (float)(v32 * 0.5) + v31, 0.0); v22 = *v26; v21 = v26; v23 = v30; } (*(void (__fastcall **)(__int64 *, unsigned __int64 *))(v22 + 184))(v21, v23); } } else { a1[23].f32[1] = fmaxf(*(float *)(a2 + 20), 0.0); } a1[23].i32[2] = _mm_cvtepi32_ps(_mm_cvttps_epi32((__m128)*(unsigned int *)(a2 + 8))).u32[0]; GJUINode::toggleModeB(a1, *(unsigned __int8 *)(a2 + 24)); v27 = *(float *)(a2 + 12); GJUINode::updateButtonScale(a1); v28 = *(unsigned __int8 *)(a2 + 16); (*(void (__fastcall **)(__int64, _QWORD, float))(*(_QWORD *)a1[20].i64[0] + 912LL))( a1[20].i64[0], *(unsigned __int8 *)(a2 + 16), v27); v29 = a1[20].i64[1]; if ( v29 ) (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v29 + 912LL))(v29, v28); (*(void (__fastcall **)(__m128 *, __int64))(a1->i64[0] + 184))(a1, a2 + 28); a1[23].i8[14] = *(_BYTE *)(a2 + 25); a1[23].i8[15] = 0; return v9; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source