// // SetupShaderEffectPopup::onZLayer from 0x1002bd050 to 0x1002bd1dc (396 bytes) // // 1 xrefs: // > SetupShaderEffectPopup::setupShaderTrigger @ 0x1002bc7a7 // // This function is hookable on this platform (idp: pc, 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 12:28:04 +0000 // __int64 __fastcall SetupShaderEffectPopup::onZLayer(__int64 a1, __int64 a2) { int v2; // eax int v3; // ecx char v4; // r14 __int64 result; // rax int v6; // edx unsigned int v7; // r14d __int64 v8; // r15 int v9; // eax int v10; // ecx const char *v11; // rsi v2 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2); v3 = *(_DWORD *)(a1 + 1028); if ( v2 <= v3 ) { v6 = *(_DWORD *)(a1 + 1024); if ( v2 < v6 ) { *(_DWORD *)(a1 + 1024) = v2; *(_BYTE *)(a1 + 1032) = 0; goto LABEL_9; } if ( v2 == v6 || v3 == v2 ) { *(_DWORD *)(a1 + 1024) = v2; *(_DWORD *)(a1 + 1028) = v2; *(_BYTE *)(a1 + 1032) = 0; v4 = 0; goto LABEL_3; } if ( *(_BYTE *)(a1 + 1032) == 1 ) { *(_DWORD *)(a1 + 1024) = v2; *(_BYTE *)(a1 + 1032) = 0; goto LABEL_9; } } *(_DWORD *)(a1 + 1028) = v2; *(_BYTE *)(a1 + 1032) = 1; v4 = 1; LABEL_3: SetupTriggerPopup::valueChanged((_QWORD *)a1, 197, (float)v2); if ( !v4 || (*(_BYTE *)(a1 + 1032) & 1) == 0 ) { LABEL_9: SetupTriggerPopup::valueChanged((_QWORD *)a1, 196, (float)*(int *)(a1 + 1024)); result = sub_1007FEF90(*(_QWORD *)(a1 + 1016)); if ( !(_DWORD)result ) return result; goto LABEL_10; } result = sub_1007FEF90(*(_QWORD *)(a1 + 1016)); if ( !(_DWORD)result ) return result; LABEL_10: v7 = 0; do { v8 = sub_1007FEFE0(*(_QWORD *)(a1 + 1016), v7); v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v8 + 64LL))(v8); v10 = *(_DWORD *)(a1 + 1024); v11 = "GJ_button_02.png"; if ( v9 != v10 ) { v11 = "GJ_button_02.png"; if ( v9 != *(_DWORD *)(a1 + 1028) ) { v11 = "GJ_button_01.png"; if ( v9 >= *(_DWORD *)(a1 + 1028) ) v11 = "GJ_button_04.png"; if ( v9 <= v10 ) v11 = "GJ_button_04.png"; } } ButtonSprite::updateBGImage(v8, (__int64)v11); ++v7; result = sub_1007FEF90(*(_QWORD *)(a1 + 1016)); } while ( v7 < (unsigned int)result ); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source