	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_Move                         ## -- Begin function P_Move
	.p2align	4, 0x90
_P_Move:                                ## @P_Move
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_DI_NODIR@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	cmpq	(%r15), %rax
	je	LBB0_13
## %bb.1:
	movq	%rdi, %r14
	testl	$-8, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_I_Error
	movq	(%r14), %rax
LBB0_3:
	movq	32(%r14), %rcx
	movslq	(%rcx), %rcx
	movq	_xspeed@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movslq	(%rdx,%rax,4), %rsi
	imulq	%rcx, %rsi
	addq	48(%r14), %rsi
	movq	_yspeed@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movslq	(%rdx,%rax,4), %rdx
	imulq	%rcx, %rdx
	addq	40(%r14), %rdx
	movq	%r14, %rdi
	callq	_P_TryMove
	testl	%eax, %eax
	je	LBB0_4
## %bb.11:
	movq	_MF_INFLOAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	8(%r14), %eax
	movl	%eax, 8(%r14)
	movq	_MF_FLOAT@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	testl	%eax, (%rcx)
	jne	LBB0_13
## %bb.12:
	movq	24(%r14), %rax
	movq	%rax, 16(%r14)
	jmp	LBB0_13
LBB0_4:
	movl	8(%r14), %eax
	movq	_MF_FLOAT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:
	movq	_floatok@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	16(%r14), %rcx
	movq	_tmfloorz@GOTPCREL(%rip), %rdx
	movq	_FLOATSPEED@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, %rdi
	negq	%rdi
	cmpq	(%rdx), %rcx
	cmovlq	%rsi, %rdi
	addq	%rcx, %rdi
	movq	%rdi, 16(%r14)
	movq	_MF_INFLOAT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 8(%r14)
	movl	$1, %ebx
	jmp	LBB0_13
LBB0_7:
	movq	_numspechit@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_13
## %bb.8:
	movq	(%r15), %rax
	movq	%rax, (%r14)
	movq	(%r12), %rax
	subq	$1, %rax
	movq	%rax, (%r12)
	jb	LBB0_13
## %bb.9:
	xorl	%ebx, %ebx
	movq	_spechit@GOTPCREL(%rip), %r15
	movl	$1, %r13d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	movq	(%rcx,%rax,8), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_P_UseSpecialLine
	testq	%rax, %rax
	cmovnel	%r13d, %ebx
	movq	(%r12), %rax
	subq	$1, %rax
	movq	%rax, (%r12)
	jae	LBB0_10
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DI_NODIR,8,3                   ## @DI_NODIR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Weird actor->movedir!"

	.comm	_xspeed,8,3                     ## @xspeed
	.comm	_yspeed,8,3                     ## @yspeed
	.comm	_MF_FLOAT,4,2                   ## @MF_FLOAT
	.comm	_floatok,8,3                    ## @floatok
	.comm	_tmfloorz,8,3                   ## @tmfloorz
	.comm	_FLOATSPEED,8,3                 ## @FLOATSPEED
	.comm	_MF_INFLOAT,4,2                 ## @MF_INFLOAT
	.comm	_numspechit,8,3                 ## @numspechit
	.comm	_spechit,8,3                    ## @spechit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_Move                         ; -- Begin function P_Move
	.p2align	2
_P_Move:                                ; @P_Move
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x0]
Lloh0:
	adrp	x20, _DI_NODIR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DI_NODIR@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_2
LBB0_1:
	mov	w20, #0
	b	LBB0_14
LBB0_2:
	mov	x19, x0
	tst	x8, #0xfffffff8
	b.eq	LBB0_4
; %bb.3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_I_Error
	ldr	x8, [x19]
LBB0_4:
	ldp	x12, x9, [x19, #40]
Lloh4:
	adrp	x10, _xspeed@GOTPAGE
Lloh5:
	ldr	x10, [x10, _xspeed@GOTPAGEOFF]
	ldr	x11, [x19, #32]
	ldrsw	x11, [x11]
Lloh6:
	ldr	x10, [x10]
	lsl	x8, x8, #2
	ldrsw	x10, [x10, x8]
	madd	x1, x10, x11, x9
Lloh7:
	adrp	x9, _yspeed@GOTPAGE
Lloh8:
	ldr	x9, [x9, _yspeed@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldrsw	x8, [x9, x8]
	madd	x2, x8, x11, x12
	mov	x0, x19
	bl	_P_TryMove
	cbz	w0, LBB0_7
; %bb.5:
Lloh10:
	adrp	x8, _MF_INFLOAT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MF_INFLOAT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
Lloh13:
	adrp	x9, _MF_FLOAT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _MF_FLOAT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_13
; %bb.6:
	ldr	x8, [x19, #24]
	str	x8, [x19, #16]
	b	LBB0_13
LBB0_7:
	ldr	w8, [x19, #8]
Lloh16:
	adrp	x9, _MF_FLOAT@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MF_FLOAT@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh19:
	adrp	x10, _floatok@GOTPAGE
Lloh20:
	ldr	x10, [x10, _floatok@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	w9, #0
	ccmp	x10, #0, #4, ne
	b.ne	LBB0_12
; %bb.8:
Lloh22:
	adrp	x21, _numspechit@GOTPAGE
Lloh23:
	ldr	x21, [x21, _numspechit@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_1
; %bb.9:
	ldr	x8, [x20]
	str	x8, [x19]
	ldr	x9, [x21]
	sub	x8, x9, #1
	str	x8, [x21]
	mov	w20, #0
	cbz	x9, LBB0_14
; %bb.10:
Lloh24:
	adrp	x22, _spechit@GOTPAGE
Lloh25:
	ldr	x22, [x22, _spechit@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	ldr	x1, [x9, x8, lsl #3]
	mov	x0, x19
	mov	w2, #0
	bl	_P_UseSpecialLine
	cmp	x0, #0
	csinc	w20, w20, wzr, eq
	ldr	x9, [x21]
	sub	x8, x9, #1
	str	x8, [x21]
	cbnz	x9, LBB0_11
	b	LBB0_14
LBB0_12:
	ldr	x9, [x19, #16]
Lloh26:
	adrp	x10, _tmfloorz@GOTPAGE
Lloh27:
	ldr	x10, [x10, _tmfloorz@GOTPAGEOFF]
Lloh28:
	adrp	x11, _FLOATSPEED@GOTPAGE
Lloh29:
	ldr	x11, [x11, _FLOATSPEED@GOTPAGEOFF]
Lloh30:
	ldr	x10, [x10]
Lloh31:
	ldr	x11, [x11]
	cmp	x9, x10
	cneg	x10, x11, ge
	add	x9, x10, x9
	str	x9, [x19, #16]
Lloh32:
	adrp	x9, _MF_INFLOAT@GOTPAGE
Lloh33:
	ldr	x9, [x9, _MF_INFLOAT@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_13:
	mov	w20, #1
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_DI_NODIR,8,3                   ; @DI_NODIR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Weird actor->movedir!"

	.comm	_xspeed,8,3                     ; @xspeed
	.comm	_yspeed,8,3                     ; @yspeed
	.comm	_MF_FLOAT,4,2                   ; @MF_FLOAT
	.comm	_floatok,8,3                    ; @floatok
	.comm	_tmfloorz,8,3                   ; @tmfloorz
	.comm	_FLOATSPEED,8,3                 ; @FLOATSPEED
	.comm	_MF_INFLOAT,4,2                 ; @MF_INFLOAT
	.comm	_numspechit,8,3                 ; @numspechit
	.comm	_spechit,8,3                    ; @spechit
.subsections_via_symbols
