	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_A_VileChase                    ## -- Begin function A_VileChase
	.p2align	4, 0x90
_A_VileChase:                           ## @A_VileChase
	.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
	subq	$24, %rsp
	.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), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.1:
	movq	40(%rdi), %rcx
	movq	_xspeed@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rax,4), %r15d
	imull	(%rcx), %r15d
	addl	8(%rdi), %r15d
	movq	_viletryx@GOTPCREL(%rip), %rdx
	movl	%r15d, (%rdx)
	movq	_yspeed@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rax,4), %r12d
	imull	(%rcx), %r12d
	addl	12(%rdi), %r12d
	movq	_bmaporgx@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movq	_MAXRADIUS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	(%rcx,%rcx), %eax
	leal	(%r15,%rcx,2), %esi
                                        ## kill: def $r15d killed $r15d killed $r15 def $r15
	subl	%eax, %r15d
	movq	_MAPBLOCKSHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	sarl	%cl, %r15d
	movq	_viletryy@GOTPCREL(%rip), %rdx
	sarl	%cl, %esi
	movl	%r12d, (%rdx)
	movq	_bmaporgy@GOTPCREL(%rip), %rdx
	subl	(%rdx), %r12d
	movl	%r12d, %edx
	subl	%eax, %edx
	sarl	%cl, %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	_vileobj@GOTPCREL(%rip), %rdx
	movq	%rdi, (%rdx)
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	cmpl	%esi, %r15d
	jle	LBB0_2
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_A_Chase                        ## TAILCALL
LBB0_2:
	addl	%eax, %r12d
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r12d
	leal	1(%r12), %r14d
	movq	_PIT_VileCheck@GOTPCREL(%rip), %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%r15), %eax
	cmpl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	movl	%eax, %r15d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_5
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %ebx
	cmpl	%r12d, %eax
	jg	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %edx
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_P_BlockThingsIterator
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=2
	incl	%ebx
	cmpl	%ebx, %r14d
	jne	LBB0_7
	jmp	LBB0_4
LBB0_8:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	24(%rbx), %r15
	movq	_corpsehit@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, 24(%rbx)
	movq	%rbx, %rdi
	callq	_A_FaceTarget
	movq	%r15, 24(%rbx)
	movq	_S_VILE_HEAL1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_P_SetMobjState
	movq	(%r14), %rdi
	movq	_sfx_slop@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_S_StartSound
	movq	(%r14), %rdi
	movq	40(%rdi), %rbx
	movl	12(%rbx), %esi
	callq	_P_SetMobjState
	movq	(%r14), %rax
	shll	$2, 16(%rax)
	movl	8(%rbx), %ecx
	movl	%ecx, 36(%rax)
	movl	4(%rbx), %ecx
	movl	%ecx, 32(%rax)
	movq	$0, 24(%rax)
	addq	$24, %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
	.comm	_xspeed,8,3                     ## @xspeed
	.comm	_viletryx,4,2                   ## @viletryx
	.comm	_yspeed,8,3                     ## @yspeed
	.comm	_viletryy,4,2                   ## @viletryy
	.comm	_bmaporgx,4,2                   ## @bmaporgx
	.comm	_MAXRADIUS,4,2                  ## @MAXRADIUS
	.comm	_MAPBLOCKSHIFT,4,2              ## @MAPBLOCKSHIFT
	.comm	_bmaporgy,4,2                   ## @bmaporgy
	.comm	_vileobj,8,3                    ## @vileobj
	.comm	_PIT_VileCheck,4,2              ## @PIT_VileCheck
	.comm	_corpsehit,8,3                  ## @corpsehit
	.comm	_S_VILE_HEAL1,4,2               ## @S_VILE_HEAL1
	.comm	_sfx_slop,4,2                   ## @sfx_slop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_A_VileChase                    ; -- Begin function A_VileChase
	.p2align	2
_A_VileChase:                           ; @A_VileChase
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _DI_NODIR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DI_NODIR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	ldr	x9, [x19, #40]
	ldr	w10, [x9]
Lloh3:
	adrp	x11, _xspeed@GOTPAGE
Lloh4:
	ldr	x11, [x11, _xspeed@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	lsl	x8, x8, #2
	ldr	w11, [x11, x8]
	ldp	w12, w13, [x19, #8]
	madd	w10, w11, w10, w12
Lloh6:
	adrp	x11, _viletryx@GOTPAGE
Lloh7:
	ldr	x11, [x11, _viletryx@GOTPAGEOFF]
Lloh8:
	str	w10, [x11]
Lloh9:
	adrp	x11, _yspeed@GOTPAGE
Lloh10:
	ldr	x11, [x11, _yspeed@GOTPAGEOFF]
	ldr	w9, [x9]
Lloh11:
	ldr	x11, [x11]
	ldr	w8, [x11, x8]
Lloh12:
	adrp	x11, _viletryy@GOTPAGE
Lloh13:
	ldr	x11, [x11, _viletryy@GOTPAGEOFF]
	madd	w8, w8, w9, w13
Lloh14:
	str	w8, [x11]
Lloh15:
	adrp	x9, _bmaporgx@GOTPAGE
Lloh16:
	ldr	x9, [x9, _bmaporgx@GOTPAGEOFF]
Lloh17:
	adrp	x11, _MAXRADIUS@GOTPAGE
Lloh18:
	ldr	x11, [x11, _MAXRADIUS@GOTPAGEOFF]
Lloh19:
	ldr	w12, [x9]
Lloh20:
	ldr	w9, [x11]
	lsl	w9, w9, #1
Lloh21:
	adrp	x11, _MAPBLOCKSHIFT@GOTPAGE
Lloh22:
	ldr	x11, [x11, _MAPBLOCKSHIFT@GOTPAGEOFF]
	sub	w12, w10, w12
	sub	w13, w12, w9
Lloh23:
	ldr	w10, [x11]
	asr	w20, w13, w10
	add	w11, w9, w12
Lloh24:
	adrp	x12, _bmaporgy@GOTPAGE
Lloh25:
	ldr	x12, [x12, _bmaporgy@GOTPAGEOFF]
	asr	w22, w11, w10
Lloh26:
	ldr	w11, [x12]
Lloh27:
	adrp	x12, _vileobj@GOTPAGE
Lloh28:
	ldr	x12, [x12, _vileobj@GOTPAGEOFF]
Lloh29:
	str	x19, [x12]
	cmp	w20, w22
	b.le	LBB0_3
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_A_Chase
LBB0_3:
	sub	w8, w8, w11
	sub	w11, w8, w9
	asr	w23, w11, w10
	add	w8, w8, w9
	asr	w24, w8, w10
	add	w25, w24, #1
Lloh30:
	adrp	x26, _PIT_VileCheck@GOTPAGE
Lloh31:
	ldr	x26, [x26, _PIT_VileCheck@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w20, #1
	cmp	w20, w22
	mov	x20, x8
	b.eq	LBB0_2
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x21, x23
	cmp	w23, w24
	b.gt	LBB0_4
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w2, [x26]
	mov	x0, x20
	mov	x1, x21
	bl	_P_BlockThingsIterator
	cbz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	w21, w21, #1
	cmp	w25, w21
	b.ne	LBB0_6
	b	LBB0_4
LBB0_8:
	ldr	x20, [x19, #24]
Lloh32:
	adrp	x21, _corpsehit@GOTPAGE
Lloh33:
	ldr	x21, [x21, _corpsehit@GOTPAGEOFF]
	ldr	x8, [x21]
	str	x8, [x19, #24]
	mov	x0, x19
	bl	_A_FaceTarget
	str	x20, [x19, #24]
Lloh34:
	adrp	x8, _S_VILE_HEAL1@GOTPAGE
Lloh35:
	ldr	x8, [x8, _S_VILE_HEAL1@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_P_SetMobjState
	ldr	x0, [x21]
Lloh37:
	adrp	x8, _sfx_slop@GOTPAGE
Lloh38:
	ldr	x8, [x8, _sfx_slop@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	bl	_S_StartSound
	ldr	x0, [x21]
	ldr	x19, [x0, #40]
	ldr	w1, [x19, #12]
	bl	_P_SetMobjState
	ldr	x8, [x21]
	ldr	w9, [x8, #16]
	lsl	w9, w9, #2
	str	w9, [x8, #16]
	ldur	d0, [x19, #4]
	str	d0, [x8, #32]
	str	xzr, [x8, #24]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_DI_NODIR,8,3                   ; @DI_NODIR
	.comm	_xspeed,8,3                     ; @xspeed
	.comm	_viletryx,4,2                   ; @viletryx
	.comm	_yspeed,8,3                     ; @yspeed
	.comm	_viletryy,4,2                   ; @viletryy
	.comm	_bmaporgx,4,2                   ; @bmaporgx
	.comm	_MAXRADIUS,4,2                  ; @MAXRADIUS
	.comm	_MAPBLOCKSHIFT,4,2              ; @MAPBLOCKSHIFT
	.comm	_bmaporgy,4,2                   ; @bmaporgy
	.comm	_vileobj,8,3                    ; @vileobj
	.comm	_PIT_VileCheck,4,2              ; @PIT_VileCheck
	.comm	_corpsehit,8,3                  ; @corpsehit
	.comm	_S_VILE_HEAL1,4,2               ; @S_VILE_HEAL1
	.comm	_sfx_slop,4,2                   ; @sfx_slop
.subsections_via_symbols
