	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_DrawMasked                   ## -- Begin function R_DrawMasked
	.p2align	4, 0x90
_R_DrawMasked:                          ## @R_DrawMasked
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorl	%eax, %eax
	callq	_R_SortVisSprites
	movq	_vissprite_p@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_vissprites@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_3
## %bb.1:
	movq	_vsprsortedhead@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	cmpq	_vsprsortedhead@GOTPCREL(%rip), %rbx
	je	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_R_DrawSprite
	movq	(%rbx), %rbx
	cmpq	%r14, %rbx
	jne	LBB0_2
LBB0_3:
	movq	_ds_p@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	$-16, %rbx
	movq	_drawsegs@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$-16, %rbx
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, %rbx
	jb	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_R_RenderMaskedSegRange
	movq	(%r14), %rax
	jmp	LBB0_7
LBB0_8:
	movq	_viewangleoffset@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_R_DrawPlayerSprites            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_vissprite_p,8,3                ## @vissprite_p
	.comm	_vissprites,8,3                 ## @vissprites
	.comm	_vsprsortedhead,8,3             ## @vsprsortedhead
	.comm	_ds_p,8,3                       ## @ds_p
	.comm	_drawsegs,8,3                   ## @drawsegs
	.comm	_viewangleoffset,4,2            ## @viewangleoffset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_DrawMasked                   ; -- Begin function R_DrawMasked
	.p2align	2
_R_DrawMasked:                          ; @R_DrawMasked
	.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
	bl	_R_SortVisSprites
Lloh0:
	adrp	x8, _vissprite_p@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vissprite_p@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _vissprites@GOTPAGE
Lloh4:
	ldr	x9, [x9, _vissprites@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x20, _vsprsortedhead@GOTPAGE
Lloh7:
	ldr	x20, [x20, _vsprsortedhead@GOTPAGEOFF]
	ldr	x19, [x20]
	cmp	x8, x9
	ccmp	x19, x20, #4, gt
	b.eq	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_R_DrawSprite
	ldr	x19, [x19]
	cmp	x19, x20
	b.ne	LBB0_1
LBB0_2:
Lloh8:
	adrp	x8, _ds_p@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ds_p@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	sub	x19, x8, #16
Lloh11:
	adrp	x20, _drawsegs@GOTPAGE
Lloh12:
	ldr	x20, [x20, _drawsegs@GOTPAGEOFF]
	ldr	x8, [x20]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x19, x19, #16
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x19, x8
	b.lo	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w2, w1, [x19]
	mov	x0, x19
	bl	_R_RenderMaskedSegRange
	ldr	x8, [x20]
	b	LBB0_3
LBB0_7:
Lloh13:
	adrp	x8, _viewangleoffset@GOTPAGE
Lloh14:
	ldr	x8, [x8, _viewangleoffset@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_R_DrawPlayerSprites
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_vissprite_p,8,3                ; @vissprite_p
	.comm	_vissprites,8,3                 ; @vissprites
	.comm	_vsprsortedhead,8,3             ; @vsprsortedhead
	.comm	_ds_p,8,3                       ; @ds_p
	.comm	_drawsegs,8,3                   ; @drawsegs
	.comm	_viewangleoffset,4,2            ; @viewangleoffset
.subsections_via_symbols
