// // GJUINode::activeTouchTest from 0x1404cf2c0 to 0x1404cf49f (479 bytes) // // 5 xrefs: // > UILayer::processUINodeTouch @ 0x1404ce7b9 // > GJUINode::touchTest @ 0x1404cf297 // > @ 0x1406a9f50 // > @ 0x1406a9f64 // > @ 0x1406dd5c8 // // 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 // int GJUINode::activeTouchTest(GJUINode *a1, cocos2d::CCPoint a2) { double v4; // xmm0_8 float *v5; // rax float *v6; // rbx const cocos2d::CCPoint *v7; // rax const cocos2d::CCPoint *v8; // rax _BOOL8 v9; // rdx float v10; // xmm1_4 float v11; // xmm3_4 float v12; // xmm4_4 float v13; // xmm1_4 int v14; // ebx float m_radius; // xmm0_4 float width; // xmm3_4 float v17; // xmm2_4 float v18; // xmm3_4 float v19; // xmm2_4 float v20; // xmm0_4 float v21; // [rsp+50h] [rbp+8h] BYREF float v22; // [rsp+54h] [rbp+Ch] cocos2d::CCPoint v23; // [rsp+60h] [rbp+18h] BYREF if ( a1->m_modeB ) { v4 = cocos2d::CCPoint::CCPoint(&v23); v6 = v5; v7 = a1->m_firstSprite->getPosition_0(a1->m_firstSprite); cocos2d::CCPoint::CCPoint(*(float *)&v4, v7->x); v8 = a1->m_firstSprite->getPosition_0(a1->m_firstSprite); v10 = *v6; v11 = *v6 - v8->x; v12 = fabs(v11); if ( a1->m_deadzone <= v12 ) { m_radius = a1->m_radius; if ( v12 <= m_radius ) { v13 = v21; } else if ( v11 <= 0.0 ) { v21 = m_radius + v10; v13 = m_radius + v10; } else { v13 = v10 - m_radius; v21 = v13; } v14 = (v11 > 0.0) + 2; } else { v13 = v21; v14 = 0; } width = a1->m_rect.size.width; v17 = -width; v18 = width * 0.5; v19 = v17 * 0.5; if ( v19 <= fminf(v18, v13) ) { if ( v13 > v18 ) v21 = v18; } else { v21 = v19; } v20 = a1->m_rect.size.height * 0.5; if ( (float)(40.0 - v20) <= fminf(v20 + 40.0, v22) ) { if ( v22 > (float)(v20 + 40.0) ) v22 = v20 + 40.0; } else { v22 = 40.0 - v20; } LOBYTE(v9) = 1; a1->m_firstSprite->setVisible(a1->m_firstSprite, v9); a1->m_firstSprite->setPosition_0(a1->m_firstSprite, (const cocos2d::CCPoint *)&v21); return v14; } else if ( a1->m_deadzone <= fabs(**(float **)&a2) ) { return (**(float **)&a2 >= 0.0) + 2; } else { return 5; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source