Starship/src/main/205E0.c

32 lines
817 B
C
Raw Normal View History

2023-10-09 09:57:02 +03:00
#include "common.h"
2023-10-09 10:48:32 +03:00
s32 func_80023FC0(s32, s32, s32);
s32 func_800246D0(void*, s8*, s32, s32);
s32 func_8001F9E0(s32 arg0, s32 arg1, s32 arg2);
// matches with IDO 5.3/7.1 -O2 -g0
#ifdef NON_MATCHING
s32 func_8001F9E0(s32 arg0, s32 arg1, s32 arg2) {
return func_80023FC0(arg0, arg1, arg2) + arg2;
}
#else
2023-10-09 09:57:02 +03:00
#pragma GLOBAL_ASM("asm/us/nonmatchings/main/205E0/func_8001F9E0.s")
2023-10-09 10:48:32 +03:00
#endif
// matches with IDO 5.3/7.1 -O2 -g0
#ifdef NON_MATCHING
s32 func_8001FA04(s8* arg0, s32 arg1, s32 arg2) {
s32 ret = func_800246D0(func_8001F9E0, arg0, arg1, arg2);
2023-10-09 09:57:02 +03:00
2023-10-09 10:48:32 +03:00
if (ret >= 0) {
arg0[ret] = 0;
}
return ret;
}
#else
2023-10-09 09:57:02 +03:00
#pragma GLOBAL_ASM("asm/us/nonmatchings/main/205E0/func_8001FA04.s")
2023-10-09 10:48:32 +03:00
#endif
2023-10-09 09:57:02 +03:00
2023-10-09 10:48:32 +03:00
// https://decomp.me/scratch/Gt8dW close
2023-10-09 09:57:02 +03:00
#pragma GLOBAL_ASM("asm/us/nonmatchings/main/205E0/func_8001FA54.s")