	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_CheckMeleeRange              ## -- Begin function P_CheckMeleeRange
	.p2align	4, 0x90
_P_CheckMeleeRange:                     ## @P_CheckMeleeRange
	.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	(%rdi), %rbx
	xorl	%r14d, %r14d
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	%rdi, %r15
	movq	16(%rbx), %rsi
	movq	24(%rbx), %rdi
	subq	24(%r15), %rdi
	subq	16(%r15), %rsi
	callq	_P_AproxDistance
	movq	_MELEERANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_FRACUNIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	shll	$2, %edx
	leal	(%rdx,%rdx,4), %edx
	subl	%edx, %ecx
	movq	8(%rbx), %rdx
	addl	(%rdx), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_3
## %bb.2:
	movq	(%r15), %rsi
	movq	%r15, %rdi
	callq	_P_CheckSight
	xorl	%r14d, %r14d
	testl	%eax, %eax
	setne	%r14b
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MELEERANGE,4,2                 ## @MELEERANGE
	.comm	_FRACUNIT,4,2                   ## @FRACUNIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_CheckMeleeRange              ; -- Begin function P_CheckMeleeRange
	.p2align	2
_P_CheckMeleeRange:                     ; @P_CheckMeleeRange
	.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	x20, [x0]
	cbz	x20, LBB0_3
; %bb.1:
	mov	x19, x0
	ldp	x9, x8, [x20, #16]
	ldp	x11, x10, [x0, #16]
	sub	x0, x8, x10
	sub	x1, x9, x11
	bl	_P_AproxDistance
Lloh0:
	adrp	x8, _MELEERANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MELEERANGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FRACUNIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FRACUNIT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	w10, #-20
	madd	w8, w9, w10, w8
	ldr	x9, [x20, #8]
	ldr	w9, [x9]
	add	w8, w8, w9
	cmp	w0, w8
	b.ge	LBB0_3
; %bb.2:
	ldr	x1, [x19]
	mov	x0, x19
	bl	_P_CheckSight
	cmp	w0, #0
	cset	w0, ne
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MELEERANGE,4,2                 ; @MELEERANGE
	.comm	_FRACUNIT,4,2                   ; @FRACUNIT
.subsections_via_symbols
