	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PM_CheckDuck
_PM_CheckDuck:                          ## @PM_CheckDuck
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_pm@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	movq	16(%rbx), %rax
	movq	32(%rax), %rcx
	movq	_PW_INVULNERABILITY@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$0, (%rcx,%rdx,8)
	je	LBB0_3
## %bb.1:
	movq	_PMF_INVULEXPAND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%rbx), %rdi
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.2:
	movl	$-42, %esi
	movl	$-42, %edx
	movl	$-42, %ecx
	callq	_VectorSet
	movq	(%r14), %rax
	movq	8(%rax), %rdi
	movl	$42, %esi
	movl	$42, %edx
	movl	$42, %ecx
	jmp	LBB0_6
LBB0_3:
	movq	_PMF_INVULEXPAND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, (%rax)
	movq	(%rbx), %rdx
	movabsq	$-60129542159, %rcx             ## imm = 0xFFFFFFF1FFFFFFF1
	movq	%rcx, (%rdx)
	movq	8(%rbx), %rcx
	movabsq	$64424509455, %rsi              ## imm = 0xF0000000F
	movq	%rsi, (%rcx)
	movq	_MINS_Z@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, 8(%rdx)
	movq	8(%rax), %rsi
	movq	_PM_DEAD@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_9
## %bb.4:
	movl	$-8, 8(%rcx)
	movq	_DEAD_VIEWHEIGHT@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_5:
	movq	_MINS_Z@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$-15, %esi
	movl	$-15, %edx
	callq	_VectorSet
	movq	(%r14), %rax
	movq	8(%rax), %rdi
	movl	$15, %esi
	movl	$15, %edx
	movl	$16, %ecx
LBB0_6:
	callq	_VectorSet
	movq	_PMF_DUCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	(%r14), %rax
	movq	16(%rax), %rax
	orl	%ecx, (%rax)
LBB0_7:
	movq	_CROUCH_VIEWHEIGHT@GOTPCREL(%rip), %rcx
LBB0_8:
	movq	(%rcx), %rcx
	movq	%rcx, 16(%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	cmpq	$0, 40(%rbx)
	js	LBB0_13
## %bb.10:
	movl	(%rax), %esi
	movq	_PMF_DUCKED@GOTPCREL(%rip), %r15
	testl	%esi, (%r15)
	je	LBB0_16
## %bb.11:
	movl	$32, 8(%rcx)
	movl	24(%rax), %r9d
	movl	28(%rax), %esi
	movl	24(%rbx), %eax
	movl	%eax, (%rsp)
	leaq	-32(%rbp), %rdi
	movl	%esi, %r8d
	callq	*32(%rbx)
	cmpl	$0, -32(%rbp)
	je	LBB0_14
## %bb.12:
	movq	(%r14), %rbx
	movq	16(%rbx), %rax
	movl	(%rax), %esi
	jmp	LBB0_16
LBB0_13:
	movq	_PMF_DUCKED@GOTPCREL(%rip), %rcx
	movl	(%rax), %esi
	orl	(%rcx), %esi
	jmp	LBB0_15
LBB0_14:
	movl	(%r15), %esi
	notl	%esi
	movq	(%r14), %rbx
	movq	16(%rbx), %rax
	andl	(%rax), %esi
LBB0_15:
	movl	%esi, (%rax)
LBB0_16:
	movq	_PMF_DUCKED@GOTPCREL(%rip), %rdx
	movq	8(%rbx), %rcx
	testl	%esi, (%rdx)
	je	LBB0_18
## %bb.17:
	movl	$16, 8(%rcx)
	jmp	LBB0_7
LBB0_18:
	movl	$32, 8(%rcx)
	movq	_DEFAULT_VIEWHEIGHT@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_pm,8,3                         ## @pm
	.comm	_PW_INVULNERABILITY,8,3         ## @PW_INVULNERABILITY
	.comm	_PMF_INVULEXPAND,4,2            ## @PMF_INVULEXPAND
	.comm	_MINS_Z,4,2                     ## @MINS_Z
	.comm	_PMF_DUCKED,4,2                 ## @PMF_DUCKED
	.comm	_CROUCH_VIEWHEIGHT,8,3          ## @CROUCH_VIEWHEIGHT
	.comm	_PM_DEAD,8,3                    ## @PM_DEAD
	.comm	_DEAD_VIEWHEIGHT,8,3            ## @DEAD_VIEWHEIGHT
	.comm	_DEFAULT_VIEWHEIGHT,8,3         ## @DEFAULT_VIEWHEIGHT
	.no_dead_strip	_PM_CheckDuck
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PM_CheckDuck
_PM_CheckDuck:                          ; @PM_CheckDuck
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _pm@GOTPAGE
Lloh1:
	ldr	x19, [x19, _pm@GOTPAGEOFF]
	ldr	x9, [x19]
	ldr	x8, [x9, #16]
	ldr	x10, [x8, #32]
Lloh2:
	adrp	x11, _PW_INVULNERABILITY@GOTPAGE
Lloh3:
	ldr	x11, [x11, _PW_INVULNERABILITY@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
	ldr	x10, [x10, x11, lsl #3]
	cbz	x10, LBB0_3
; %bb.1:
	ldr	w8, [x8]
Lloh5:
	adrp	x10, _PMF_INVULEXPAND@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PMF_INVULEXPAND@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	ldr	x0, [x9]
	tst	w10, w8
	b.eq	LBB0_5
; %bb.2:
	mov	w1, #-42
	mov	w2, #-42
	mov	w3, #-42
	bl	_VectorSet
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	mov	w1, #42
	mov	w2, #42
	mov	w3, #42
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x10, _PMF_INVULEXPAND@GOTPAGE
Lloh9:
	ldr	x10, [x10, _PMF_INVULEXPAND@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	ldr	w11, [x8]
	bic	w10, w11, w10
	str	w10, [x8]
	mvni.2s	v0, #14
	ldp	x2, x3, [x9]
	str	d0, [x2]
	movi.2s	v0, #15
	str	d0, [x3]
Lloh11:
	adrp	x10, _MINS_Z@GOTPAGE
Lloh12:
	ldr	x10, [x10, _MINS_Z@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	str	w10, [x2, #8]
	ldr	x10, [x8, #8]
Lloh14:
	adrp	x11, _PM_DEAD@GOTPAGE
Lloh15:
	ldr	x11, [x11, _PM_DEAD@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_9
; %bb.4:
	mov	w9, #-8
	str	w9, [x3, #8]
Lloh17:
	adrp	x9, _DEAD_VIEWHEIGHT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DEAD_VIEWHEIGHT@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh19:
	adrp	x8, _MINS_Z@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MINS_Z@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	w1, #-15
	mov	w2, #-15
	bl	_VectorSet
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	mov	w1, #15
	mov	w2, #15
	mov	w3, #16
LBB0_6:
	bl	_VectorSet
Lloh22:
	adrp	x8, _PMF_DUCKED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PMF_DUCKED@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8, #16]
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
LBB0_7:
Lloh25:
	adrp	x9, _CROUCH_VIEWHEIGHT@GOTPAGE
Lloh26:
	ldr	x9, [x9, _CROUCH_VIEWHEIGHT@GOTPAGEOFF]
LBB0_8:
	ldr	x9, [x9]
	str	x9, [x8, #16]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
	ldr	x10, [x9, #40]
	tbnz	x10, #63, LBB0_13
; %bb.10:
	ldr	w10, [x8]
Lloh27:
	adrp	x20, _PMF_DUCKED@GOTPAGE
Lloh28:
	ldr	x20, [x20, _PMF_DUCKED@GOTPAGEOFF]
	ldr	w11, [x20]
	tst	w11, w10
	b.eq	LBB0_16
; %bb.11:
	mov	w10, #32
	str	w10, [x3, #8]
	ldr	x10, [x9, #32]
	ldp	w5, w1, [x8, #24]
	ldr	w6, [x9, #24]
	add	x0, sp, #8
	mov	x4, x1
	blr	x10
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_14
; %bb.12:
	ldr	x9, [x19]
	ldr	x8, [x9, #16]
	ldr	w10, [x8]
	b	LBB0_16
LBB0_13:
Lloh29:
	adrp	x10, _PMF_DUCKED@GOTPAGE
Lloh30:
	ldr	x10, [x10, _PMF_DUCKED@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	ldr	w11, [x8]
	orr	w10, w11, w10
	b	LBB0_15
LBB0_14:
	ldr	w10, [x20]
	ldr	x9, [x19]
	ldr	x8, [x9, #16]
	ldr	w11, [x8]
	bic	w10, w11, w10
LBB0_15:
	str	w10, [x8]
LBB0_16:
Lloh32:
	adrp	x11, _PMF_DUCKED@GOTPAGE
Lloh33:
	ldr	x11, [x11, _PMF_DUCKED@GOTPAGEOFF]
Lloh34:
	ldr	w11, [x11]
	ldr	x9, [x9, #8]
	tst	w11, w10
	b.eq	LBB0_18
; %bb.17:
	mov	w10, #16
	str	w10, [x9, #8]
	b	LBB0_7
LBB0_18:
	mov	w10, #32
	str	w10, [x9, #8]
Lloh35:
	adrp	x9, _DEFAULT_VIEWHEIGHT@GOTPAGE
Lloh36:
	ldr	x9, [x9, _DEFAULT_VIEWHEIGHT@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_pm,8,3                         ; @pm
	.comm	_PW_INVULNERABILITY,8,3         ; @PW_INVULNERABILITY
	.comm	_PMF_INVULEXPAND,4,2            ; @PMF_INVULEXPAND
	.comm	_MINS_Z,4,2                     ; @MINS_Z
	.comm	_PMF_DUCKED,4,2                 ; @PMF_DUCKED
	.comm	_CROUCH_VIEWHEIGHT,8,3          ; @CROUCH_VIEWHEIGHT
	.comm	_PM_DEAD,8,3                    ; @PM_DEAD
	.comm	_DEAD_VIEWHEIGHT,8,3            ; @DEAD_VIEWHEIGHT
	.comm	_DEFAULT_VIEWHEIGHT,8,3         ; @DEFAULT_VIEWHEIGHT
	.no_dead_strip	_PM_CheckDuck
.subsections_via_symbols
