	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_DrawSprite                   ## -- Begin function R_DrawSprite
	.p2align	4, 0x90
_R_DrawSprite:                          ## @R_DrawSprite
	.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, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SCREENWIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addq	%rbx, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	movq	%r14, %rdi
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	(%rdi), %ebx
	movl	4(%rdi), %r15d
	movl	%r15d, %eax
	subl	%ebx, %eax
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	jl	LBB0_2
## %bb.1:
	movslq	%ebx, %r13
	leaq	(%r14,%r13,2), %rdi
	leaq	(%rax,%rax), %r12
	addq	$2, %r12
	leaq	L_.memset_pattern.1(%rip), %rsi
	movq	%r12, %rdx
	callq	_memset_pattern16
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r13,2), %rdi
	leaq	L_.memset_pattern.1(%rip), %rsi
	movq	%r12, %rdx
	callq	_memset_pattern16
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
LBB0_2:
	movq	_ds_p@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	leaq	-80(%r13), %rax
	movq	_drawsegs@GOTPCREL(%rip), %r10
	cmpq	(%r10), %rax
	jae	LBB0_4
## %bb.3:
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	cmpl	%ebx, %r15d
	jge	LBB0_53
	jmp	LBB0_70
LBB0_4:
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
                                        ##     Child Loop BB0_32 Depth 2
                                        ##     Child Loop BB0_44 Depth 2
	movq	%rax, %rbx
	movl	(%rax), %ecx
	cmpl	%r15d, %ecx
	jg	LBB0_49
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-76(%r13), %edx
	movl	(%rdi), %r12d
	cmpl	%r12d, %edx
	jl	LBB0_49
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-72(%r13), %r8d
	testl	%r8d, %r8d
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, -16(%r13)
	je	LBB0_49
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r12d, %ecx
	cmovgl	%ecx, %r12d
	cmpl	%r15d, %edx
	cmovll	%edx, %r15d
	movq	-64(%r13), %rcx
	movq	-56(%r13), %rax
	cmpq	%rax, %rcx
	movq	%rax, %rdx
	cmovgq	%rcx, %rdx
	movq	8(%rdi), %rsi
	cmpq	%rsi, %rdx
	jge	LBB0_10
LBB0_23:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, -16(%r13)
	je	LBB0_49
## %bb.24:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_R_RenderMaskedSegRange
	movq	_drawsegs@GOTPCREL(%rip), %r10
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_49
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rax, %rcx
	cmovlq	%rcx, %rax
	cmpq	%rsi, %rax
	jge	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	32(%rdi), %esi
	movl	36(%rdi), %edi
	movl	-8(%r13), %edx
	callq	_R_PointOnSegSide
	movq	_drawsegs@GOTPCREL(%rip), %r10
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_23
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-72(%r13), %r8d
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%rdi), %rcx
	movq	24(%rdi), %rdx
	cmpq	-48(%r13), %rcx
	movq	_SIL_BOTTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	movl	$-1, %esi
	cmovll	%esi, %ecx
	andl	%r8d, %ecx
	cmpq	-40(%r13), %rdx
	movq	_SIL_TOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	cmovgl	%esi, %eax
	andl	%ecx, %eax
	cmpl	$1, %eax
	je	LBB0_37
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$2, %eax
	je	LBB0_25
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$3, %eax
	jne	LBB0_49
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r12d, %r15d
	jl	LBB0_49
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r12d, %rax
	incl	%r15d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_18 Depth=2
	incq	%rax
	cmpl	%eax, %r15d
	je	LBB0_49
LBB0_18:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpw	$-2, (%r9,%rax,2)
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	-32(%r13), %rcx
	movzwl	(%rcx,%rax,2), %ecx
	movw	%cx, (%r9,%rax,2)
LBB0_20:                                ##   in Loop: Header=BB0_18 Depth=2
	cmpw	$-2, (%r14,%rax,2)
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	-24(%r13), %rcx
	movzwl	(%rcx,%rax,2), %ecx
	movw	%cx, (%r14,%rax,2)
	jmp	LBB0_22
LBB0_37:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r12d, %r15d
	jl	LBB0_49
## %bb.38:                              ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r12d, %rax
	leal	1(%r15), %ecx
	movl	%ecx, %edx
	subl	%r12d, %edx
	testb	$1, %dl
	je	LBB0_42
## %bb.39:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpw	$-2, (%r9,%rax,2)
	jne	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-32(%r13), %rdx
	movzwl	(%rdx,%rax,2), %edx
	movw	%dx, (%r9,%rax,2)
LBB0_41:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rax
LBB0_42:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r12d, %r15d
	je	LBB0_49
## %bb.43:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	%ecx, %ecx
	jmp	LBB0_44
	.p2align	4, 0x90
LBB0_48:                                ##   in Loop: Header=BB0_44 Depth=2
	addq	$2, %rax
	cmpl	%eax, %ecx
	je	LBB0_49
LBB0_44:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpw	$-2, (%r9,%rax,2)
	jne	LBB0_46
## %bb.45:                              ##   in Loop: Header=BB0_44 Depth=2
	movq	-32(%r13), %rdx
	movzwl	(%rdx,%rax,2), %edx
	movw	%dx, (%r9,%rax,2)
LBB0_46:                                ##   in Loop: Header=BB0_44 Depth=2
	cmpw	$-2, 2(%r9,%rax,2)
	jne	LBB0_48
## %bb.47:                              ##   in Loop: Header=BB0_44 Depth=2
	movq	-32(%r13), %rdx
	movzwl	2(%rdx,%rax,2), %edx
	movw	%dx, 2(%r9,%rax,2)
	jmp	LBB0_48
LBB0_25:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r12d, %r15d
	jl	LBB0_49
## %bb.26:                              ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r12d, %rax
	leal	1(%r15), %ecx
	movl	%ecx, %edx
	subl	%r12d, %edx
	testb	$1, %dl
	je	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpw	$-2, (%r14,%rax,2)
	jne	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-24(%r13), %rdx
	movzwl	(%rdx,%rax,2), %edx
	movw	%dx, (%r14,%rax,2)
LBB0_29:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rax
LBB0_30:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r12d, %r15d
	jne	LBB0_31
	.p2align	4, 0x90
LBB0_49:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	-80(%rbx), %rax
	cmpq	(%r10), %rax
	jb	LBB0_51
## %bb.50:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rdi), %r15d
	movq	%rbx, %r13
	jmp	LBB0_5
LBB0_31:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	%ecx, %ecx
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_32 Depth=2
	addq	$2, %rax
	cmpl	%eax, %ecx
	je	LBB0_49
LBB0_32:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpw	$-2, (%r14,%rax,2)
	jne	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_32 Depth=2
	movq	-24(%r13), %rdx
	movzwl	(%rdx,%rax,2), %edx
	movw	%dx, (%r14,%rax,2)
LBB0_34:                                ##   in Loop: Header=BB0_32 Depth=2
	cmpw	$-2, 2(%r14,%rax,2)
	jne	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_32 Depth=2
	movq	-24(%r13), %rdx
	movzwl	2(%rdx,%rax,2), %edx
	movw	%dx, 2(%r14,%rax,2)
	jmp	LBB0_36
LBB0_51:
	movl	(%rdi), %ebx
	movl	4(%rdi), %r15d
	cmpl	%ebx, %r15d
	jl	LBB0_70
LBB0_53:
	movq	_viewheight@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	movslq	%ebx, %rcx
	leal	1(%r15), %edx
	movl	%edx, %esi
	subl	%ebx, %esi
	testb	$1, %sil
	je	LBB0_59
## %bb.54:
	cmpw	$-2, (%r9,%rcx,2)
	jne	LBB0_56
## %bb.55:
	movw	%ax, (%r9,%rcx,2)
LBB0_56:
	cmpw	$-2, (%r14,%rcx,2)
	jne	LBB0_58
## %bb.57:
	movw	$-1, (%r14,%rcx,2)
LBB0_58:
	incq	%rcx
LBB0_59:
	cmpl	%ebx, %r15d
	jne	LBB0_60
LBB0_70:
	movq	_mfloorclip@GOTPCREL(%rip), %rax
	movq	%r9, (%rax)
	movq	_mceilingclip@GOTPCREL(%rip), %rax
	movq	%r14, (%rax)
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_R_DrawVisSprite
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_72
## %bb.71:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_60:
	movl	%edx, %edx
	jmp	LBB0_61
	.p2align	4, 0x90
LBB0_69:                                ##   in Loop: Header=BB0_61 Depth=1
	addq	$2, %rcx
	cmpl	%ecx, %edx
	je	LBB0_70
LBB0_61:                                ## =>This Inner Loop Header: Depth=1
	cmpw	$-2, (%r9,%rcx,2)
	je	LBB0_62
## %bb.63:                              ##   in Loop: Header=BB0_61 Depth=1
	cmpw	$-2, (%r14,%rcx,2)
	je	LBB0_64
LBB0_65:                                ##   in Loop: Header=BB0_61 Depth=1
	cmpw	$-2, 2(%r9,%rcx,2)
	je	LBB0_66
LBB0_67:                                ##   in Loop: Header=BB0_61 Depth=1
	cmpw	$-2, 2(%r14,%rcx,2)
	jne	LBB0_69
	jmp	LBB0_68
	.p2align	4, 0x90
LBB0_62:                                ##   in Loop: Header=BB0_61 Depth=1
	movw	%ax, (%r9,%rcx,2)
	cmpw	$-2, (%r14,%rcx,2)
	jne	LBB0_65
LBB0_64:                                ##   in Loop: Header=BB0_61 Depth=1
	movw	$-1, (%r14,%rcx,2)
	cmpw	$-2, 2(%r9,%rcx,2)
	jne	LBB0_67
LBB0_66:                                ##   in Loop: Header=BB0_61 Depth=1
	movw	%ax, 2(%r9,%rcx,2)
	cmpw	$-2, 2(%r14,%rcx,2)
	jne	LBB0_69
LBB0_68:                                ##   in Loop: Header=BB0_61 Depth=1
	movw	$-1, 2(%r14,%rcx,2)
	jmp	LBB0_69
LBB0_72:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SCREENWIDTH,4,2                ## @SCREENWIDTH
	.comm	_ds_p,8,3                       ## @ds_p
	.comm	_drawsegs,8,3                   ## @drawsegs
	.comm	_SIL_BOTTOM,4,2                 ## @SIL_BOTTOM
	.comm	_SIL_TOP,4,2                    ## @SIL_TOP
	.comm	_viewheight,2,1                 ## @viewheight
	.comm	_mfloorclip,8,3                 ## @mfloorclip
	.comm	_mceilingclip,8,3               ## @mceilingclip
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern.1
L_.memset_pattern.1:
	.short	65534                           ## 0xfffe
	.short	65534                           ## 0xfffe
	.short	65534                           ## 0xfffe
	.short	65534                           ## 0xfffe
	.short	65534                           ## 0xfffe
	.short	65534                           ## 0xfffe
	.short	65534                           ## 0xfffe
	.short	65534                           ## 0xfffe

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_DrawSprite                   ; -- Begin function R_DrawSprite
	.p2align	2
_R_DrawSprite:                          ; @R_DrawSprite
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _SCREENWIDTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCREENWIDTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #1
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x3fffffff0
	sub	x24, x9, x12
	mov	sp, x24
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x25, x8, x12
	mov	sp, x25
	ldp	w20, w21, [x0]
	subs	w8, w21, w20
	b.lt	LBB0_2
; %bb.1:
	sxtw	x9, w20
	lsl	x26, x9, #1
	add	x0, x25, x26
	lsl	x8, x8, #1
	add	x22, x8, #2
Lloh10:
	adrp	x23, l_.memset_pattern.1@PAGE
Lloh11:
	add	x23, x23, l_.memset_pattern.1@PAGEOFF
	mov	x1, x23
	mov	x2, x22
	bl	_memset_pattern16
	add	x0, x24, x26
	mov	x1, x23
	mov	x2, x22
	bl	_memset_pattern16
LBB0_2:
Lloh12:
	adrp	x8, _ds_p@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ds_p@GOTPAGEOFF]
Lloh14:
	ldr	x26, [x8]
	sub	x8, x26, #80
Lloh15:
	adrp	x23, _drawsegs@GOTPAGE
Lloh16:
	ldr	x23, [x23, _drawsegs@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.lo	LBB0_36
; %bb.3:
	mov	w27, #-1
Lloh17:
	adrp	x28, _SIL_TOP@GOTPAGE
Lloh18:
	ldr	x28, [x28, _SIL_TOP@GOTPAGEOFF]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
                                        ;     Child Loop BB0_33 Depth 2
                                        ;     Child Loop BB0_26 Depth 2
	mov	x20, x8
	ldr	w9, [x8]
	cmp	w9, w21
	b.gt	LBB0_29
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w10, [x26, #-76]
	ldr	w11, [x19]
	cmp	w10, w11
	b.lt	LBB0_29
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	w8, [x26, #-72]
	cbnz	w8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldur	x12, [x26, #-16]
	cbz	x12, LBB0_29
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, w11
	csel	w22, w9, w11, gt
	cmp	w10, w21
	csel	w21, w10, w21, lt
	ldp	x9, x10, [x26, #-64]
	cmp	x9, x10
	csel	x12, x9, x10, gt
	ldr	x11, [x19, #8]
	cmp	x12, x11
	b.ge	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldur	x8, [x26, #-16]
	cbz	x8, LBB0_29
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_R_RenderMaskedSegRange
	b	LBB0_29
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	x9, x10
	csel	x9, x9, x10, lt
	cmp	x9, x11
	b.ge	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldp	w1, w0, [x19, #32]
	ldur	w2, [x26, #-8]
	bl	_R_PointOnSegSide
	cbz	w0, LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldur	w8, [x26, #-72]
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh19:
	adrp	x9, _SIL_BOTTOM@GOTPAGE
Lloh20:
	ldr	x9, [x9, _SIL_BOTTOM@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	ldp	x10, x11, [x19, #16]
	ldp	x12, x13, [x26, #-48]
	cmp	x10, x12
	csinv	w9, w27, w9, lt
	and	w8, w9, w8
	ldr	w9, [x28]
	cmp	x11, x13
	csinv	w9, w27, w9, gt
	and	w8, w8, w9
	cmp	w8, #1
	b.eq	LBB0_23
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #2
	b.eq	LBB0_28
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #3
	ccmp	w22, w21, #0, eq
	b.gt	LBB0_29
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x8, w22
	add	w9, w21, #1
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	add	x8, x8, #1
	cmp	w9, w8
	b.eq	LBB0_29
LBB0_19:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsh	w10, [x24, x8, lsl #1]
	cmn	w10, #2
	b.ne	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	ldur	x10, [x26, #-32]
	lsl	x11, x8, #1
	ldrh	w10, [x10, x11]
	strh	w10, [x24, x11]
LBB0_21:                                ;   in Loop: Header=BB0_19 Depth=2
	ldrsh	w10, [x25, x8, lsl #1]
	cmn	w10, #2
	b.ne	LBB0_18
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=2
	ldur	x10, [x26, #-24]
	lsl	x11, x8, #1
	ldrh	w10, [x10, x11]
	strh	w10, [x25, x11]
	b	LBB0_18
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w22, w21
	b.gt	LBB0_29
; %bb.24:                               ;   in Loop: Header=BB0_4 Depth=1
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sxtw	x8, w22
	add	w9, w21, #1
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=2
	add	x8, x8, #1
	cmp	w9, w8
	b.eq	LBB0_29
LBB0_26:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsh	w10, [x24, x8, lsl #1]
	cmn	w10, #2
	b.ne	LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=2
	ldur	x10, [x26, #-32]
	lsl	x11, x8, #1
	ldrh	w10, [x10, x11]
	strh	w10, [x24, x11]
	b	LBB0_25
LBB0_28:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w22, w21
	b.le	LBB0_31
LBB0_29:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	x8, x20, #80
	ldr	x9, [x23]
	cmp	x8, x9
	b.lo	LBB0_35
; %bb.30:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w21, [x19, #4]
	mov	x26, x20
	b	LBB0_4
LBB0_31:                                ;   in Loop: Header=BB0_4 Depth=1
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sxtw	x8, w22
	add	w9, w21, #1
	b	LBB0_33
LBB0_32:                                ;   in Loop: Header=BB0_33 Depth=2
	add	x8, x8, #1
	cmp	w9, w8
	b.eq	LBB0_29
LBB0_33:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsh	w10, [x25, x8, lsl #1]
	cmn	w10, #2
	b.ne	LBB0_32
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=2
	ldur	x10, [x26, #-24]
	lsl	x11, x8, #1
	ldrh	w10, [x10, x11]
	strh	w10, [x25, x11]
	b	LBB0_32
LBB0_35:
	ldp	w20, w21, [x19]
LBB0_36:
	cmp	w20, w21
	b.le	LBB0_39
LBB0_37:
Lloh22:
	adrp	x8, _mfloorclip@GOTPAGE
Lloh23:
	ldr	x8, [x8, _mfloorclip@GOTPAGEOFF]
Lloh24:
	str	x24, [x8]
Lloh25:
	adrp	x8, _mceilingclip@GOTPAGE
Lloh26:
	ldr	x8, [x8, _mceilingclip@GOTPAGEOFF]
Lloh27:
	str	x25, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_R_DrawVisSprite
	ldur	x8, [x29, #-88]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_45
; %bb.38:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_39:
Lloh31:
	adrp	x8, _viewheight@GOTPAGE
Lloh32:
	ldr	x8, [x8, _viewheight@GOTPAGEOFF]
	ldrh	w8, [x8]
	mov	x9, x20
	sbfiz	x10, x9, #1, #32
	add	x9, x24, x10
	add	x10, x25, x10
	sub	w11, w21, w20
	add	w11, w11, #1
	mov	w12, #65535
	b	LBB0_41
LBB0_40:                                ;   in Loop: Header=BB0_41 Depth=1
	add	x9, x9, #2
	add	x10, x10, #2
	subs	w11, w11, #1
	b.eq	LBB0_37
LBB0_41:                                ; =>This Inner Loop Header: Depth=1
	ldrsh	w13, [x9]
	cmn	w13, #2
	b.ne	LBB0_43
; %bb.42:                               ;   in Loop: Header=BB0_41 Depth=1
	strh	w8, [x9]
LBB0_43:                                ;   in Loop: Header=BB0_41 Depth=1
	ldrsh	w13, [x10]
	cmn	w13, #2
	b.ne	LBB0_40
; %bb.44:                               ;   in Loop: Header=BB0_41 Depth=1
	strh	w12, [x10]
	b	LBB0_40
LBB0_45:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_SCREENWIDTH,4,2                ; @SCREENWIDTH
	.comm	_ds_p,8,3                       ; @ds_p
	.comm	_drawsegs,8,3                   ; @drawsegs
	.comm	_SIL_BOTTOM,4,2                 ; @SIL_BOTTOM
	.comm	_SIL_TOP,4,2                    ; @SIL_TOP
	.comm	_viewheight,2,1                 ; @viewheight
	.comm	_mfloorclip,8,3                 ; @mfloorclip
	.comm	_mceilingclip,8,3               ; @mceilingclip
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern.1
l_.memset_pattern.1:
	.short	65534                           ; 0xfffe
	.short	65534                           ; 0xfffe
	.short	65534                           ; 0xfffe
	.short	65534                           ; 0xfffe
	.short	65534                           ; 0xfffe
	.short	65534                           ; 0xfffe
	.short	65534                           ; 0xfffe
	.short	65534                           ; 0xfffe

.subsections_via_symbols
