Files
BFM-decomp/.run/wave22/func_80138C60.c
T
Drew T 72e6a096ca chore(phase-29): preserve the wave22 unbanked drafts + the regenerated family map
CAUGHT BY VERIFYING THE CHECKPOINT INSTEAD OF ASSERTING IT. `.run/wave22/` was covered by the blanket
`/.run/*` ignore, so the 13 UNBANKED drafts — 6 NEAR with precise residual diagnoses and 7 that
reached match_one MATCH but did not bank whole-binary — existed only on disk. My own checkpoint's
"START HERE" list names them as next-session fuel, and they cost ~2.59M subagent tokens to produce.
One `git clean -fdx` would have destroyed them: exactly the exposure the .run/giants Fable5 cracks
had before Phase 27 curated them (R20).

Now allowlisted: .run/wave22/*.c + .run/wave22_targets.json (the per-target canonical callee/data
declarations resolved from the real TU scope — the §17a-1 lever the wave was built on).
Also commits docs/family-hseq.md, regenerated by this session's family_hseq runs.
2026-07-28 10:05:29 -06:00

50 lines
958 B
C

extern s32 func_80139BE0(s32);
void func_80139C7C(u8*);
s32 func_8013A8FC(s32);
s32 func_80138C60(s32 arg0)
{
typedef struct {
u8 b0;
u8 b1;
u8 b2;
u8 b3;
} Q_80138C60;
extern Q_80138C60 D_801870EC[];
u16 t;
u8 b;
s32 f;
s32 idx;
if (*(s32 *)(arg0 + 8) & 0x2000) {
return 1;
}
t = *(u8 *)(arg0 + 0x22) & 7;
*(s16 *)(arg0 + 0x18) = t;
if (t < 2) {
*(u8 *)(arg0 + 0x20) = 0;
}
f = *(s32 *)(arg0 + 8);
if (f & 0x40) {
*(u8 *)(arg0 + 0x22) = (*(u8 *)(arg0 + 0x22) & 0x67) | (f & ~0x67);
}
b = *(u8 *)(arg0 + 0x22);
if (b & 0x80) {
idx = (b & 0x18) >> 3;
} else {
idx = (b & 0x78) >> 3;
if (b & 0x60) {
*(s16 *)(arg0 + 0x1C) = 0;
}
}
*(Q_80138C60 *)(arg0 + 0x24) = D_801870EC[idx];
func_80139BE0(arg0);
func_80139C7C((u8 *)arg0);
return func_8013A8FC(arg0);
}