	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_ZMovement                    ## -- Begin function P_ZMovement
	.p2align	4, 0x90
_P_ZMovement:                           ## @P_ZMovement
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	movq	40(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rcx, %rdx
	subq	8(%rbx), %rdx
	jge	LBB0_3
## %bb.2:
	addq	(%rax), %rdx
	movq	%rdx, (%rax)
	movq	_VIEWHEIGHT@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rsi
	subq	%rdx, %rsi
	shrq	$3, %rsi
	movl	%esi, 8(%rax)
LBB0_3:
	movslq	16(%rbx), %rax
	addq	%rax, %rcx
	movq	%rcx, (%rbx)
	movl	20(%rbx), %edx
	movq	_MF_FLOAT@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_14
## %bb.4:
	movq	48(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.5:
	movq	_MF_SKULLFLY@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	jne	LBB0_14
## %bb.6:
	movq	_MF_INFLOAT@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	jne	LBB0_14
## %bb.7:
	movq	56(%rbx), %rsi
	movq	64(%rbx), %rdi
	subq	16(%rax), %rdi
	subq	8(%rax), %rsi
	callq	_P_AproxDistance
	movq	48(%rbx), %rcx
	movl	24(%rbx), %edx
	sarl	%edx
	addl	(%rcx), %edx
	movq	(%rbx), %rcx
	subl	%ecx, %edx
	jns	LBB0_10
## %bb.8:
	leal	(%rdx,%rdx,2), %esi
	negl	%esi
	cmpl	%esi, %eax
	jge	LBB0_10
## %bb.9:
	movq	_FLOATSPEED@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	subq	%rax, %rcx
	jmp	LBB0_13
LBB0_10:
	testl	%edx, %edx
	jle	LBB0_14
## %bb.11:
	leal	(%rdx,%rdx,2), %edx
	cmpl	%edx, %eax
	jge	LBB0_14
## %bb.12:
	movq	_FLOATSPEED@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	%rax, %rcx
LBB0_13:
	movq	%rcx, (%rbx)
LBB0_14:
	movq	8(%rbx), %rdx
	movl	20(%rbx), %eax
	cmpq	%rdx, %rcx
	jle	LBB0_15
## %bb.25:
	movq	_MF_NOGRAVITY@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	jne	LBB0_27
## %bb.26:
	movl	16(%rbx), %edx
	movq	_GRAVITY@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%edx, %edi
	subl	%esi, %edi
	addl	%esi, %esi
	negl	%esi
	testl	%edx, %edx
	cmovnel	%edi, %esi
	movl	%esi, 16(%rbx)
	jmp	LBB0_27
LBB0_15:
	movq	_MF_SKULLFLY@GOTPCREL(%rip), %rsi
	movl	16(%rbx), %ecx
	testl	%eax, (%rsi)
	je	LBB0_17
## %bb.16:
	negl	%ecx
	movl	%ecx, 16(%rbx)
LBB0_17:
	testl	%ecx, %ecx
	jns	LBB0_22
## %bb.18:
	movq	40(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_21
## %bb.19:
	movq	_GRAVITY@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	shll	$3, %edi
	negl	%edi
	cmpl	%edi, %ecx
	jge	LBB0_21
## %bb.20:
	sarl	$3, %ecx
	movl	%ecx, 8(%rsi)
	movq	_sfx_oof@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_S_StartSound
	movq	8(%rbx), %rdx
	movl	20(%rbx), %eax
LBB0_21:
	movl	$0, 16(%rbx)
LBB0_22:
	movq	%rdx, %rcx
	movq	%rdx, (%rbx)
	movq	_MF_MISSILE@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_27
## %bb.23:
	movq	_MF_NOCLIP@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_24
LBB0_27:
	movslq	24(%rbx), %rdx
	addq	%rdx, %rcx
	movq	32(%rbx), %rsi
	cmpq	%rsi, %rcx
	jle	LBB0_34
## %bb.28:
	movl	16(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_30
## %bb.29:
	movl	$0, 16(%rbx)
	xorl	%ecx, %ecx
LBB0_30:
	subq	%rdx, %rsi
	movq	%rsi, (%rbx)
	movq	_MF_SKULLFLY@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_32
## %bb.31:
	negl	%ecx
	movl	%ecx, 16(%rbx)
LBB0_32:
	movq	_MF_MISSILE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_34
## %bb.33:
	movq	_MF_NOCLIP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_24
LBB0_34:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_24:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_P_ExplodeMissile               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VIEWHEIGHT,4,2                 ## @VIEWHEIGHT
	.comm	_MF_FLOAT,4,2                   ## @MF_FLOAT
	.comm	_MF_SKULLFLY,4,2                ## @MF_SKULLFLY
	.comm	_MF_INFLOAT,4,2                 ## @MF_INFLOAT
	.comm	_FLOATSPEED,4,2                 ## @FLOATSPEED
	.comm	_GRAVITY,4,2                    ## @GRAVITY
	.comm	_sfx_oof,4,2                    ## @sfx_oof
	.comm	_MF_MISSILE,4,2                 ## @MF_MISSILE
	.comm	_MF_NOCLIP,4,2                  ## @MF_NOCLIP
	.comm	_MF_NOGRAVITY,4,2               ## @MF_NOGRAVITY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_ZMovement                    ; -- Begin function P_ZMovement
	.p2align	2
_P_ZMovement:                           ; @P_ZMovement
	.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
	mov	x19, x0
	ldr	x9, [x0, #40]
	ldr	x8, [x0]
	cbz	x9, LBB0_3
; %bb.1:
	ldr	x10, [x19, #8]
	subs	x10, x8, x10
	b.ge	LBB0_3
; %bb.2:
	ldr	x11, [x9]
Lloh0:
	adrp	x12, _VIEWHEIGHT@GOTPAGE
Lloh1:
	ldr	x12, [x12, _VIEWHEIGHT@GOTPAGEOFF]
Lloh2:
	ldrsw	x12, [x12]
	add	x10, x11, x10
	sub	x11, x12, x10
	str	x10, [x9]
	lsr	x10, x11, #3
	str	w10, [x9, #8]
LBB0_3:
	ldp	w9, w10, [x19, #16]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x9, x8, x9
	str	x9, [x19]
Lloh3:
	adrp	x8, _MF_FLOAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MF_FLOAT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w10
	b.eq	LBB0_13
; %bb.4:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_13
; %bb.5:
Lloh6:
	adrp	x11, _MF_SKULLFLY@GOTPAGE
Lloh7:
	ldr	x11, [x11, _MF_SKULLFLY@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	tst	w11, w10
	b.ne	LBB0_13
; %bb.6:
Lloh9:
	adrp	x11, _MF_INFLOAT@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MF_INFLOAT@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	tst	w11, w10
	b.ne	LBB0_13
; %bb.7:
	ldp	x10, x9, [x19, #56]
	ldp	x8, x11, [x8, #8]
	sub	x0, x9, x11
	sub	x1, x10, x8
	bl	_P_AproxDistance
	ldr	x8, [x19, #48]
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	add	w8, w8, w9, asr #1
	ldr	x9, [x19]
	sub	w8, w8, w9
	tbz	w8, #31, LBB0_10
; %bb.8:
	sub	w10, w8, w8, lsl #2
	cmp	w0, w10
	b.ge	LBB0_10
; %bb.9:
Lloh12:
	adrp	x8, _FLOATSPEED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FLOATSPEED@GOTPAGEOFF]
Lloh14:
	ldrsw	x8, [x8]
	sub	x9, x9, x8
	b	LBB0_12
LBB0_10:
	add	w10, w8, w8, lsl #1
	cmp	w8, #1
	ccmp	w0, w10, #0, ge
	b.ge	LBB0_13
; %bb.11:
Lloh15:
	adrp	x8, _FLOATSPEED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FLOATSPEED@GOTPAGEOFF]
Lloh17:
	ldrsw	x8, [x8]
	add	x9, x9, x8
LBB0_12:
	str	x9, [x19]
LBB0_13:
	ldr	x10, [x19, #8]
	ldr	w8, [x19, #20]
	cmp	x9, x10
	b.le	LBB0_16
; %bb.14:
Lloh18:
	adrp	x10, _MF_NOGRAVITY@GOTPAGE
Lloh19:
	ldr	x10, [x10, _MF_NOGRAVITY@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	tst	w10, w8
	b.ne	LBB0_25
; %bb.15:
	ldr	w10, [x19, #16]
Lloh21:
	adrp	x11, _GRAVITY@GOTPAGE
Lloh22:
	ldr	x11, [x11, _GRAVITY@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	sub	w12, w10, w11
	lsl	w11, w11, #1
	cmp	w10, #0
	csneg	w10, w12, w11, ne
	str	w10, [x19, #16]
	b	LBB0_25
LBB0_16:
Lloh24:
	adrp	x9, _MF_SKULLFLY@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MF_SKULLFLY@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x9]
	ldr	w9, [x19, #16]
	tst	w11, w8
	b.eq	LBB0_18
; %bb.17:
	neg	w9, w9
	str	w9, [x19, #16]
LBB0_18:
	tbz	w9, #31, LBB0_23
; %bb.19:
	ldr	x11, [x19, #40]
	cbz	x11, LBB0_22
; %bb.20:
Lloh27:
	adrp	x12, _GRAVITY@GOTPAGE
Lloh28:
	ldr	x12, [x12, _GRAVITY@GOTPAGEOFF]
Lloh29:
	ldr	w12, [x12]
	neg	w12, w12, lsl #3
	cmp	w9, w12
	b.ge	LBB0_22
; %bb.21:
	asr	w8, w9, #3
	str	w8, [x11, #8]
Lloh30:
	adrp	x8, _sfx_oof@GOTPAGE
Lloh31:
	ldr	x8, [x8, _sfx_oof@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_S_StartSound
	ldr	x10, [x19, #8]
	ldr	w8, [x19, #20]
LBB0_22:
	str	wzr, [x19, #16]
LBB0_23:
	mov	x9, x10
	str	x10, [x19]
Lloh33:
	adrp	x10, _MF_MISSILE@GOTPAGE
Lloh34:
	ldr	x10, [x10, _MF_MISSILE@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_25
; %bb.24:
Lloh36:
	adrp	x10, _MF_NOCLIP@GOTPAGE
Lloh37:
	ldr	x10, [x10, _MF_NOCLIP@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_33
LBB0_25:
	ldrsw	x10, [x19, #24]
	ldr	x11, [x19, #32]
	add	x9, x9, x10
	cmp	x9, x11
	b.le	LBB0_32
; %bb.26:
	ldr	w9, [x19, #16]
	cmp	w9, #1
	b.lt	LBB0_28
; %bb.27:
	mov	w9, #0
	str	wzr, [x19, #16]
LBB0_28:
	sub	x10, x11, x10
	str	x10, [x19]
Lloh39:
	adrp	x10, _MF_SKULLFLY@GOTPAGE
Lloh40:
	ldr	x10, [x10, _MF_SKULLFLY@GOTPAGEOFF]
Lloh41:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_30
; %bb.29:
	neg	w9, w9
	str	w9, [x19, #16]
LBB0_30:
Lloh42:
	adrp	x9, _MF_MISSILE@GOTPAGE
Lloh43:
	ldr	x9, [x9, _MF_MISSILE@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_32
; %bb.31:
Lloh45:
	adrp	x9, _MF_NOCLIP@GOTPAGE
Lloh46:
	ldr	x9, [x9, _MF_NOCLIP@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_33
LBB0_32:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_33:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_P_ExplodeMissile
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_VIEWHEIGHT,4,2                 ; @VIEWHEIGHT
	.comm	_MF_FLOAT,4,2                   ; @MF_FLOAT
	.comm	_MF_SKULLFLY,4,2                ; @MF_SKULLFLY
	.comm	_MF_INFLOAT,4,2                 ; @MF_INFLOAT
	.comm	_FLOATSPEED,4,2                 ; @FLOATSPEED
	.comm	_GRAVITY,4,2                    ; @GRAVITY
	.comm	_sfx_oof,4,2                    ; @sfx_oof
	.comm	_MF_MISSILE,4,2                 ; @MF_MISSILE
	.comm	_MF_NOCLIP,4,2                  ; @MF_NOCLIP
	.comm	_MF_NOGRAVITY,4,2               ; @MF_NOGRAVITY
.subsections_via_symbols
