From 1bb89767412ec397fae88ac6936d31989d8ec9e0 Mon Sep 17 00:00:00 2001 From: gijs Date: Thu, 19 Oct 2023 19:08:54 +0200 Subject: [PATCH] Decompile `func_8007FD10` --- src/_ob_ambitious_fold.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/_ob_ambitious_fold.c b/src/_ob_ambitious_fold.c index 6b47853..0e9882e 100644 --- a/src/_ob_ambitious_fold.c +++ b/src/_ob_ambitious_fold.c @@ -1,3 +1,19 @@ #include "common.h" -INCLUDE_ASM(const s32, "_ob_ambitious_fold", func_8007FD10); +/* 10110 8007FD10 */ +f32 func_8007FD10(void) { + f64 var_f4; + s32 temp_s0; + s32 temp_s0_2; + s32 temp_s1; + + temp_s0 = obGetCurrentTime(); + temp_s1 = obGetCurrentTime(); + temp_s0_2 = ((temp_s0 << 0x12) & 0x0C000000) | (temp_s1 << 0xF) | obGetCurrentTime(); + var_f4 = (f64) temp_s0_2; + if (temp_s0_2 < 0) { + var_f4 += 4294967296.0; + } + return (f32) var_f4 * 2.3283064e-10f; +} +