REDIVIVUS

Proposals / #1118

Recover the full-width result for Mac AI_SelectTarget_SameLevelFilter

checked · by Commit-Will · submitted 2026-11-03

Current logical bool is1 byte; the complete141-byte target explicitly SETEs AL and zero-extends it to fullEAX at002af4d9 on every normal RET. Use existing BOOL4 under the already logical model, preserving both precise Unit* formals/Stack4+8, all7locals/names, cdecl, arity and noVarArgs. Both genuine input loads precede ordinary opaque calls. Full raw/ownership, exact44 separateASM and nativeCFG agree after an owned-extent/count plan and separate fresh gates. All ordinary calls, including assertion/error interfaces, remain IF-return with unknown GP/frame/memory/cleanup effects. No same-level/room/helper-domain, preservation, safety/nonreturn or callback ABI/consumer claim. All7DATArefs are inventory only. No original Mac image/hash/execution, source/build/runtime or measured gain claim. Any actual contradiction/refusal holds the ORIGINAL whole model; no narrower or alias/helper/global/caller alternative.

Changes 1, applied together

  1. Set prototype mac 0x002af457

    signaturebool AI_SelectTarget_SameLevelFilter(D2UnitStrc * pSelf, D2UnitStrc * pTarget)→BOOL AI_SelectTarget_SameLevelFilter(D2UnitStrc * pSelf, D2UnitStrc * pTarget)
    convention__cdecl