// // cocos2d::CCDirector::updateScreenScale from 0x100207154 to 0x100207204 (176 bytes) // // 1 xrefs: // > cocos2d::CCDirector::setupScreenScale @ 0x100207130 // // This function is hookable on this platform (idp: arm, 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 11:00:57 +0000 // double __fastcall cocos2d::CCDirector::updateScreenScale(__int64 a1, double *a2) { float32x2_t v3; // d0 __int64 v4; // x20 float *v5; // x0 __int64 v6; // x0 double result; // d0 float32x2_t v8; // d1 double v9; // [xsp+8h] [xbp-18h] BYREF sub_100026450((_QWORD *)(a1 + 392), a2); v3 = vdiv_f32(*(float32x2_t *)(a1 + 392), *(float32x2_t *)(a1 + 384)); if ( (vcgt_f32((float32x2_t)vdup_lane_s32((int32x2_t)v3, 1), v3).u8[0] & 1) != 0 ) v4 = 4; else v4 = 3; v5 = cocos2d::CCEGLView::sharedOpenGLView(); (*(void (__fastcall **)(float *, __int64, float, float))(*(_QWORD *)v5 + 80LL))( v5, v4, *(float *)(a1 + 384), *(float *)(a1 + 388)); v6 = cocos2d::CCDirector::sharedDirector(); sub_100026438(&v9, (double *)(v6 + 320)); result = v9; v8 = vdiv_f32(*(float32x2_t *)&v9, *(float32x2_t *)(a1 + 384)); *(_DWORD *)(a1 + 84) = 0; *(_DWORD *)(a1 + 88) = 0; *(_DWORD *)(a1 + 80) = HIDWORD(result); *(_DWORD *)(a1 + 92) = LODWORD(result); *(int8x8_t *)(a1 + 64) = vbsl_s8( (int8x8_t)vcgt_f32(v8, (float32x2_t)vrev64_s32((int32x2_t)v8)), (int8x8_t)vdup_lane_s32((int32x2_t)v8, 1), (int8x8_t)vdup_lane_s32((int32x2_t)v8, 0)); *(float32x2_t *)(a1 + 72) = v8; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source