// // PlayLayer::screenFlipObject from 0x400b9c to 0x400d6c (464 bytes) // // 1 xrefs: // > PlayLayer::updateVisibility @ 0x40715c // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:47:24 +0000 // int __fastcall PlayLayer::screenFlipObject(PlayLayer *this, GameObject *a2) { float *v2; // r7 float v5; // s17 const cocos2d::CCPoint *v6; // r0 void (__fastcall *v7)(GameObject *, _BYTE *); // r9 float v8; // s15 _BOOL4 v9; // r6 int v10; // s15 int v11; // r6 int result; // r0 float v13; // s14 int v14; // r9 int v15; // r3 int v16; // r5 int v17; // r3 bool v18; // zf int v19; // r2 int (__fastcall *v20)(GameObject *, int, int); // r3 int v21; // r1 float v22[2]; // [sp+4h] [bp-20h] BYREF float v23[2]; // [sp+Ch] [bp-18h] BYREF _BYTE v24[8]; // [sp+14h] [bp-10h] BYREF v2 = (float *)((char *)this + 10800); v5 = *((float *)this + 215); if ( *((float *)this + 2700) == -1.0 ) v5 = 1.0 - v5; cocos2d::CCDirector::sharedDirector(this); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v22); v6 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 96))(a2); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, v6); v7 = *(void (__fastcall **)(GameObject *, _BYTE *))(*(_DWORD *)a2 + 92); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v24, v23[0] + (float)((float)((float)(v22[0] / *((float *)this + 82)) - (float)((float)(v23[0] - *((float *)this + 212)) + (float)(v23[0] - *((float *)this + 212)))) * v5), v23[1]); v7(a2, v24); v8 = fabsf((*(float (__fastcall **)(GameObject *))(*(_DWORD *)a2 + 184))(a2)); v9 = v8 == 90.0 || v8 == 270.0; v10 = (int)v8; v11 = !v9; result = v10 / 90; v13 = *((float *)this + 215); v14 = v10 % 90; if ( v10 % 90 ) v14 = 1; if ( *v2 == 1.0 ) { if ( v13 < 0.5 ) goto LABEL_17; LABEL_12: v15 = *(_DWORD *)a2; if ( v11 ) result = (*(int (__fastcall **)(GameObject *, int))(v15 + 620))(a2, *((unsigned __int8 *)a2 + 860) ^ 1); else result = (*(int (__fastcall **)(GameObject *, int))(v15 + 624))(a2, *((unsigned __int8 *)a2 + 861) ^ 1); if ( v14 ) return (*(int (__fastcall **)(GameObject *, unsigned int))(*(_DWORD *)a2 + 180))( a2, *((_DWORD *)a2 + 209) ^ 0x80000000); return result; } if ( v13 <= 0.5 ) goto LABEL_12; LABEL_17: if ( !*((_BYTE *)this + 864) ) return result; if ( *v2 == 1.0 ) { if ( v13 > 0.5 ) return result; v16 = 1; } else { if ( v13 < 0.5 ) return result; v16 = -1; } v17 = *(_DWORD *)a2; if ( v11 ) { v19 = *((unsigned __int8 *)a2 + 860) * v16; v18 = v19 == 0; v20 = *(int (__fastcall **)(GameObject *, int, int))(v17 + 620); } else { v20 = *(int (__fastcall **)(GameObject *, int, int))(v17 + 624); v19 = *((unsigned __int8 *)a2 + 861) * v16; v18 = v19 == 0; } v21 = !v18; result = v20(a2, v21, v19); if ( v14 ) return (*(int (__fastcall **)(GameObject *, _DWORD))(*(_DWORD *)a2 + 180))(a2, (float)v16 * *((float *)a2 + 209)); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source