	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_DrawPlayerSprites            ## -- Begin function R_DrawPlayerSprites
	.p2align	4, 0x90
_R_DrawPlayerSprites:                   ## @R_DrawPlayerSprites
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_viewplayer@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %edx
	movq	_LIGHTSEGSHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movq	_extralight@GOTPCREL(%rip), %rcx
	addl	(%rcx), %edx
	js	LBB0_1
## %bb.2:
	movq	_LIGHTLEVELS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	_scalelight@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpl	%ecx, %edx
	jge	LBB0_3
## %bb.4:
	movl	%edx, %ecx
	leaq	(%rsi,%rcx,4), %rcx
	jmp	LBB0_5
LBB0_1:
	movq	_scalelight@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jmp	LBB0_5
LBB0_3:
	leaq	(%rsi,%rcx,4), %rcx
	addq	$-4, %rcx
LBB0_5:
	movl	(%rcx), %ecx
	movq	_spritelights@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_screenheightarray@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_mfloorclip@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_negonearray@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_mceilingclip@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_NUMPSPRITES@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.6:
	movq	(%rax), %rbx
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	incl	%r15d
	addq	$8, %rbx
	cmpl	%ecx, %r15d
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rbx)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rbx, %rdi
	callq	_R_DrawPSprite
	movl	(%r14), %ecx
	jmp	LBB0_9
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_viewplayer,8,3                 ## @viewplayer
	.comm	_LIGHTSEGSHIFT,4,2              ## @LIGHTSEGSHIFT
	.comm	_extralight,4,2                 ## @extralight
	.comm	_scalelight,8,3                 ## @scalelight
	.comm	_spritelights,4,2               ## @spritelights
	.comm	_LIGHTLEVELS,4,2                ## @LIGHTLEVELS
	.comm	_screenheightarray,4,2          ## @screenheightarray
	.comm	_mfloorclip,4,2                 ## @mfloorclip
	.comm	_negonearray,4,2                ## @negonearray
	.comm	_mceilingclip,4,2               ## @mceilingclip
	.comm	_NUMPSPRITES,4,2                ## @NUMPSPRITES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_DrawPlayerSprites            ; -- Begin function R_DrawPlayerSprites
	.p2align	2
_R_DrawPlayerSprites:                   ; @R_DrawPlayerSprites
	.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
Lloh0:
	adrp	x8, _viewplayer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _viewplayer@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x8, #8]
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _LIGHTSEGSHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _LIGHTSEGSHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	asr	w9, w9, w10
Lloh6:
	adrp	x10, _extralight@GOTPAGE
Lloh7:
	ldr	x10, [x10, _extralight@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	adds	w9, w9, w10
	b.mi	LBB0_3
; %bb.1:
Lloh9:
	adrp	x10, _LIGHTLEVELS@GOTPAGE
Lloh10:
	ldr	x10, [x10, _LIGHTLEVELS@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x10]
Lloh12:
	adrp	x10, _scalelight@GOTPAGE
Lloh13:
	ldr	x10, [x10, _scalelight@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	w9, w11
	b.ge	LBB0_4
; %bb.2:
	add	x9, x10, w9, uxtw #2
	b	LBB0_5
LBB0_3:
Lloh15:
	adrp	x9, _scalelight@GOTPAGE
Lloh16:
	ldr	x9, [x9, _scalelight@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	b	LBB0_5
LBB0_4:
	sub	w9, w11, #1
	add	x9, x10, w9, sxtw #2
LBB0_5:
Lloh18:
	adrp	x10, _spritelights@GOTPAGE
Lloh19:
	ldr	x10, [x10, _spritelights@GOTPAGEOFF]
	ldr	w9, [x9]
Lloh20:
	str	w9, [x10]
Lloh21:
	adrp	x9, _screenheightarray@GOTPAGE
Lloh22:
	ldr	x9, [x9, _screenheightarray@GOTPAGEOFF]
Lloh23:
	adrp	x10, _mfloorclip@GOTPAGE
Lloh24:
	ldr	x10, [x10, _mfloorclip@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
Lloh26:
	str	w9, [x10]
Lloh27:
	adrp	x9, _negonearray@GOTPAGE
Lloh28:
	ldr	x9, [x9, _negonearray@GOTPAGEOFF]
Lloh29:
	adrp	x10, _mceilingclip@GOTPAGE
Lloh30:
	ldr	x10, [x10, _mceilingclip@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	str	w9, [x10]
Lloh33:
	adrp	x20, _NUMPSPRITES@GOTPAGE
Lloh34:
	ldr	x20, [x20, _NUMPSPRITES@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.6:
	mov	w21, #0
	ldr	x19, [x8]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w21, w21, #1
	add	x19, x19, #8
	cmp	w21, w9
	b.ge	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	bl	_R_DrawPSprite
	ldr	w9, [x20]
	b	LBB0_7
LBB0_10:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh31
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_viewplayer,8,3                 ; @viewplayer
	.comm	_LIGHTSEGSHIFT,4,2              ; @LIGHTSEGSHIFT
	.comm	_extralight,4,2                 ; @extralight
	.comm	_scalelight,8,3                 ; @scalelight
	.comm	_spritelights,4,2               ; @spritelights
	.comm	_LIGHTLEVELS,4,2                ; @LIGHTLEVELS
	.comm	_screenheightarray,4,2          ; @screenheightarray
	.comm	_mfloorclip,4,2                 ; @mfloorclip
	.comm	_negonearray,4,2                ; @negonearray
	.comm	_mceilingclip,4,2               ; @mceilingclip
	.comm	_NUMPSPRITES,4,2                ; @NUMPSPRITES
.subsections_via_symbols
