	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PIT_VileCheck                  ## -- Begin function PIT_VileCheck
	.p2align	4, 0x90
_PIT_VileCheck:                         ## @PIT_VileCheck
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MF_CORPSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, %r14d
	testl	%eax, (%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$-1, 4(%rdi)
	jne	LBB0_6
## %bb.2:
	movq	48(%rbx), %rax
	movq	(%rax), %rcx
	movq	_S_NULL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_6
## %bb.3:
	movq	_mobjinfo@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_MT_VILE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %r15d
	addl	8(%rax), %r15d
	movq	24(%rbx), %rdi
	movq	_viletryx@GOTPCREL(%rip), %rax
	subq	(%rax), %rdi
	callq	_abs
	cmpl	%r15d, %eax
	jg	LBB0_6
## %bb.4:
	movq	16(%rbx), %rdi
	movq	_viletryy@GOTPCREL(%rip), %rax
	subq	(%rax), %rdi
	callq	_abs
	cmpl	%r15d, %eax
	jg	LBB0_6
## %bb.5:
	movq	_corpsehit@GOTPCREL(%rip), %r14
	movq	%rbx, (%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rbx)
	shll	$2, 8(%rbx)
	movq	16(%rbx), %rdx
	movq	24(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_P_CheckPosition
	movq	(%r14), %rcx
	sarl	$2, 8(%rcx)
	xorl	%r14d, %r14d
	testl	%eax, %eax
	sete	%r14b
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MF_CORPSE,4,2                  ## @MF_CORPSE
	.comm	_S_NULL,8,3                     ## @S_NULL
	.comm	_mobjinfo,8,3                   ## @mobjinfo
	.comm	_MT_VILE,8,3                    ## @MT_VILE
	.comm	_viletryx,8,3                   ## @viletryx
	.comm	_viletryy,8,3                   ## @viletryy
	.comm	_corpsehit,8,3                  ## @corpsehit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_PIT_VileCheck                  ; -- Begin function PIT_VileCheck
	.p2align	2
_PIT_VileCheck:                         ; @PIT_VileCheck
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MF_CORPSE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MF_CORPSE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #4]
	cmn	w8, #1
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x19, #48]
	ldr	x9, [x8]
Lloh3:
	adrp	x10, _S_NULL@GOTPAGE
Lloh4:
	ldr	x10, [x10, _S_NULL@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_5
; %bb.3:
	ldr	w8, [x8, #8]
Lloh6:
	adrp	x9, _mobjinfo@GOTPAGE
Lloh7:
	ldr	x9, [x9, _mobjinfo@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _MT_VILE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MT_VILE@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	ldr	w9, [x9, x10, lsl #2]
	add	w20, w9, w8
	ldr	x8, [x19, #24]
Lloh12:
	adrp	x9, _viletryx@GOTPAGE
Lloh13:
	ldr	x9, [x9, _viletryx@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	sub	x0, x8, x9
	bl	_abs
	cmp	w0, w20
	b.gt	LBB0_5
; %bb.4:
	ldr	x8, [x19, #16]
Lloh15:
	adrp	x9, _viletryy@GOTPAGE
Lloh16:
	ldr	x9, [x9, _viletryy@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	sub	x0, x8, x9
	bl	_abs
	cmp	w0, w20
	b.le	LBB0_7
LBB0_5:
	mov	w0, #1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh18:
	adrp	x20, _corpsehit@GOTPAGE
Lloh19:
	ldr	x20, [x20, _corpsehit@GOTPAGEOFF]
	str	x19, [x20]
	stp	xzr, xzr, [x19, #32]
	ldr	w8, [x19, #8]
	lsl	w8, w8, #2
	str	w8, [x19, #8]
	ldp	x2, x1, [x19, #16]
	mov	x0, x19
	bl	_P_CheckPosition
	ldr	x8, [x20]
	ldr	w9, [x8, #8]
	asr	w9, w9, #2
	str	w9, [x8, #8]
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MF_CORPSE,4,2                  ; @MF_CORPSE
	.comm	_S_NULL,8,3                     ; @S_NULL
	.comm	_mobjinfo,8,3                   ; @mobjinfo
	.comm	_MT_VILE,8,3                    ; @MT_VILE
	.comm	_viletryx,8,3                   ; @viletryx
	.comm	_viletryy,8,3                   ; @viletryy
	.comm	_corpsehit,8,3                  ; @corpsehit
.subsections_via_symbols
