reman3/game_re/gh_fix/FUN_0046f240.cxx

42 lines
975 B
C++

// AUTO-GENERATED FILE, MOVE TO 'gh_fix' FOLDER PREVENT OVERWRITING!!!!!
#include <r3/binders/auto.h>
#include <gh_global.h>
extern "C" {
undefined4* FUN_0046ecc0(undefined2 param_1, undefined2 param_2); // 0046ecc0 // FUN_0046ecc0
// 0046f240
/* WARNING: Globals starting with '_' overlap smaller symbols at the same address */
undefined4 FUN_0046f240(short param_1,short param_2,undefined4 *param_3)
{
uint uVar1;
undefined4 *puVar2;
uint uVar3;
int iVar4;
DAT_005e6b04 = 1;
do {
} while (DAT_005e6b00 != 0);
uVar1 = (uint)param_2;
uVar3 = uVar1 & 0x8000000f;
if ((int)uVar3 < 0) {
uVar3 = (uVar3 - 1 | 0xfffffff0) + 1;
}
puVar2 = (undefined4 *)FUN_0046ecc0((int)(uVar1 + ((int)uVar1 >> 0x1f & 0xfU)) >> 4,uVar3);
puVar2[0x19] = 0xffffffff;
puVar2[0x18] = 0;
for (iVar4 = 0x1c; iVar4 != 0; iVar4 = iVar4 + -1) {
*param_3 = *puVar2;
puVar2 = puVar2 + 1;
param_3 = param_3 + 1;
}
DAT_005e6b04 = 0;
return 1;
}
}