// // GJBaseGameLayer::getAreaObjectValue from 0x100143860 to 0x100143a85 (549 bytes) // // 10 xrefs: // > GJBaseGameLayer::processAreaTransformGroupAction @ 0x100141a18 // > GJBaseGameLayer::processAreaRotateGroupAction @ 0x100141dde // > GJBaseGameLayer::processAreaMoveGroupAction @ 0x100142178 // > GJBaseGameLayer::processAreaFadeGroupAction @ 0x100142943 // > GJBaseGameLayer::processAreaFadeGroupAction @ 0x100142a63 // > GJBaseGameLayer::processAreaTintGroupAction @ 0x100142c0c // > GJBaseGameLayer::processAreaTintGroupAction @ 0x100142eb0 // > GJBaseGameLayer::processAreaTintGroupAction @ 0x1001430f7 // > GJBaseGameLayer::processAreaTintGroupAction @ 0x10014315c // > GJBaseGameLayer::processAreaTintGroupAction @ 0x10014327e // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // float __fastcall GJBaseGameLayer::getAreaObjectValue( GJBaseGameLayer *a1, EnterEffectInstance *a2, GameObject *a3, cocos2d::CCPoint *a4, bool *a5) { int m_directionType; // eax float y; // xmm1_4 float x; // xmm2_4 float m_offsetVariance; // xmm4_4 float v12; // xmm5_4 float v13; // xmm0_4 _BOOL8 v14; // rax float v15; // xmm0_4 float v16; // xmm1_4 float v17; // xmm2_4 float v18; // xmm3_4 float v19; // xmm0_4 float m_offsetYVariance; // xmm3_4 __m128 m_length_low; // xmm1 float m_lengthVariance; // xmm3_4 float v23; // xmm4_4 float m_deadzone; // xmm3_4 float v25; // xmm0_4 float v26; // xmm1_4 cocos2d::CCPoint v28; // [rsp+0h] [rbp-40h] BYREF bool *v29; // [rsp+8h] [rbp-38h] cocos2d::CCPoint v30[6]; // [rsp+10h] [rbp-30h] BYREF ((void (__fastcall *)(cocos2d::CCPoint *, GameObject *))a3->getRealPosition)(v30, a3); m_directionType = a2->m_gameObject->m_directionType; if ( m_directionType == 2 ) { y = v30[0].y; x = a4->y; goto LABEL_5; } if ( m_directionType == 1 ) { y = v30[0].x; x = a4->x; LABEL_5: m_offsetVariance = a2->m_offsetVariance; v12 = 0.0; if ( m_offsetVariance != 0.0 ) v12 = m_offsetVariance * a1->m_varianceValues.__elems_[a3->m_varianceIndex + 1]; v13 = (float)((float)(y - x) + v12) * *(&a2->m_modFront + ((float)((float)(y - x) + v12) >= 0.0)); v14 = y >= x; if ( a2->m_reversed ) LOBYTE(v14) = x >= y; goto LABEL_17; } v15 = a4->x; v16 = a2->m_offsetVariance; v17 = 0.0; v18 = 0.0; if ( v16 != 0.0 ) v18 = v16 * a1->m_varianceValues.__elems_[a3->m_varianceIndex + 1]; v29 = a5; v19 = v15 + v18; m_offsetYVariance = a2->m_offsetYVariance; if ( m_offsetYVariance != 0.0 ) v17 = m_offsetYVariance * a1->m_varianceValues.__elems_[a3->m_varianceIndex + 2]; sub_10028CBE0(&v28, v19, a4->y + v17); v13 = cocos2d::ccpDistance(v30, &v28); v14 = a4->x >= v30[0].x; if ( !a2->m_reversed ) LOBYTE(v14) = v30[0].y >= a4->x; a5 = v29; LABEL_17: *a5 = v14; m_length_low = (__m128)LODWORD(a2->m_length); m_lengthVariance = a2->m_lengthVariance; v23 = 0.0; if ( m_lengthVariance != 0.0 ) v23 = m_lengthVariance * a1->m_varianceValues.__elems_[a3->m_varianceIndex]; m_deadzone = a2->m_deadzone; m_length_low.f32[0] = m_length_low.f32[0] + v23; v25 = v13 / _mm_cvtepi32_ps(_mm_cvttps_epi32(m_length_low)).f32[0]; if ( m_deadzone == 0.0 ) { if ( v25 < 1.0 ) { v26 = 0.0; if ( v25 <= 0.0 ) goto LABEL_27; } v26 = 1.0; if ( v25 >= 1.0 ) goto LABEL_27; goto LABEL_26; } v26 = 1.0; v25 = (float)(v25 - m_deadzone) / (float)(1.0 - m_deadzone); if ( v25 < 1.0 ) { v26 = 0.0; if ( v25 > 0.0 ) LABEL_26: v26 = v25; } LABEL_27: if ( a2->m_gameObject->m_inbound ) return 1.0 - v26; return v26; }
GD Web Decomp Icon

GD Web Decomp

Raw Source