// // GJBaseGameLayer::getAreaObjectValue from 0x140228070 to 0x14022825b (491 bytes) // // 7 xrefs: // > GJBaseGameLayer::processAreaEffects @ 0x140228cc8 // > GJBaseGameLayer::processAreaTransformGroupAction @ 0x140229400 // > GJBaseGameLayer::processAreaRotateGroupAction @ 0x140229ee1 // > GJBaseGameLayer::processAreaMoveGroupAction @ 0x14022a6aa // > GJBaseGameLayer::processAreaTintGroupAction @ 0x14022ad01 // > GJBaseGameLayer::processAreaTintGroupAction @ 0x14022b02b // > @ 0x1406cd95c // // 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 GJBaseGameLayer::getAreaObjectValue( GJBaseGameLayer *a1, EnterEffectInstance *a2, GameObject *a3, cocos2d::CCPoint *a4, bool *a5) { float v5; // xmm0_4 float v10; // xmm6_4 int m_directionType; // ecx float m_offsetVariance; // xmm0_4 float v13; // xmm0_4 float v14; // xmm3_4 float x; // xmm2_4 float v16; // xmm1_4 float m_modFront; // xmm0_4 float v18; // xmm1_4 bool v19; // cf float v20; // xmm0_4 float v21; // xmm0_4 float v22; // xmm1_4 float v23; // xmm1_4 const struct cocos2d::CCPoint *v24; // rax const struct cocos2d::CCPoint *v25; // r8 float v26; // xmm2_4 float m_lengthVariance; // xmm0_4 float result; // xmm0_4 float v29; // [rsp+58h] [rbp+10h] BYREF float v30; // [rsp+5Ch] [rbp+14h] ((void (__fastcall *)(GameObject *, float *))a3->getRealPosition)(a3, &v29); v10 = 0.0; m_directionType = a2->m_gameObject->m_directionType; if ( m_directionType == 1 ) { m_offsetVariance = a2->m_offsetVariance; if ( m_offsetVariance == 0.0 ) v13 = 0.0; else v13 = m_offsetVariance * a1->m_varianceValues._Elems[a3->m_varianceIndex + 1]; v14 = v29; x = a4->x; v16 = (float)(v29 - a4->x) + v13; if ( v16 < 0.0 ) { m_modFront = a2->m_modFront; goto LABEL_8; } goto LABEL_7; } if ( m_directionType == 2 ) { v20 = a2->m_offsetVariance; if ( v20 == 0.0 ) v21 = 0.0; else v21 = v20 * a1->m_varianceValues._Elems[a3->m_varianceIndex + 1]; v14 = v30; x = a4->y; v16 = (float)(v30 - x) + v21; if ( v16 < 0.0 ) { m_modFront = a2->m_modFront; LABEL_8: v18 = v16 * m_modFront; if ( a2->m_reversed ) v19 = x < v14; else v19 = v14 < x; goto LABEL_23; } LABEL_7: m_modFront = a2->m_modBack; goto LABEL_8; } v22 = a2->m_offsetVariance; if ( v22 == 0.0 ) v23 = 0.0; else v23 = v22 * a1->m_varianceValues._Elems[a3->m_varianceIndex + 1]; cocos2d::CCPoint::CCPoint(v5, v23 + a4->x); v18 = cocos2d::ccpDistance((cocos2d *)&v29, v24, v25); v26 = a4->x; if ( a2->m_reversed ) v19 = v26 < v29; else v19 = v30 < v26; LABEL_23: *a5 = !v19; m_lengthVariance = a2->m_lengthVariance; if ( m_lengthVariance != 0.0 ) v10 = m_lengthVariance * a1->m_varianceValues._Elems[a3->m_varianceIndex]; result = sub_140227B60(v18, (int)(float)(v10 + a2->m_length), a2->m_deadzone); if ( a2->m_gameObject->m_inbound ) return 1.0 - result; return result; }