// AUTO-GENERATED FILE, MOVE TO 'gh_fix' FOLDER PREVENT OVERWRITING!!!!!

#include <r3/binders/auto.h>
#include <gh_global.h>

extern "C" {

// 00442090
void r3_validateBinkVideoQuality(byte videoBpp, byte wantedVideoQuality)

{
  byte bVar1;

  bVar1 = wantedVideoQuality;
  if (4 < wantedVideoQuality) {
    bVar1 = 4;
  }
  g_bink_realVideoQuality = g_bink_wantedVideoQuality;
  if ((g_bink_wantedVideoQuality <= bVar1) &&
      (g_bink_realVideoQuality = 4, wantedVideoQuality < 5)) {
    g_bink_realVideoQuality = wantedVideoQuality;
  }
  wantedVideoQuality = (uint)g_bink_realVideoQuality;
  g_bink_videoBpp = videoBpp;
  g_bink_wantedVideoQualityPlus1 = wantedVideoQuality + 1;
  DAT_007a2e0c = -(uint)(wantedVideoQuality != 0) & 0x80000000;
  return;
}
}
