	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_DrawVisSprite                ## -- Begin function R_DrawVisSprite
	.p2align	4, 0x90
_R_DrawVisSprite:                       ## @R_DrawVisSprite
	.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, %r15
	movq	_firstspritelump@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	44(%r15), %edi
	movq	_PU_CACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_W_CacheLumpNum
	movq	%rax, %r14
	movl	40(%r15), %eax
	movq	_dc_colormap@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_MF_TRANSLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_5
## %bb.3:
	movq	_R_DrawTranslatedColumn@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_colfunc@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_translationtables@GOTPCREL(%rip), %rdx
	andl	(%r15), %eax
	movq	_MF_TRANSSHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	addb	$-8, %cl
	sarl	%cl, %eax
	movl	(%rdx), %ecx
	addl	%ecx, %eax
	addl	$-256, %eax
	movq	_dc_translation@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_1:
	movq	_fuzzcolfunc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_colfunc@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	%eax, (%rcx)
LBB0_5:
	movq	24(%r15), %rdi
	callq	_abs
	movq	_detailshift@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_dc_iscale@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	36(%r15), %edi
	movq	_dc_texturemid@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	movl	4(%r15), %ebx
	movl	32(%r15), %esi
	movq	_spryscale@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
	movq	_centeryfrac@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	callq	_FixedMul
	subq	%rax, %r12
	movq	_sprtopscreen@GOTPCREL(%rip), %rax
	movq	%r12, (%rax)
	movq	8(%r15), %rax
	movq	_dc_x@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	cmpq	16(%r15), %rax
	jg	LBB0_8
## %bb.6:
	movq	_FRACBITS@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13), %ecx
	movl	%ebx, %eax
	sarl	%cl, %eax
	movq	(%r14), %rcx
	cltq
	movl	(%rcx,%rax,4), %edi
	callq	_LONG
	cltq
	leaq	(%r14,%rax,4), %rdi
	callq	_R_DrawMaskedColumn
	movq	(%r12), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%r12)
	addl	24(%r15), %ebx
	cmpq	16(%r15), %rax
	jl	LBB0_7
LBB0_8:
	movq	_basecolfunc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_colfunc@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_firstspritelump,4,2            ## @firstspritelump
	.comm	_PU_CACHE,4,2                   ## @PU_CACHE
	.comm	_dc_colormap,4,2                ## @dc_colormap
	.comm	_fuzzcolfunc,4,2                ## @fuzzcolfunc
	.comm	_colfunc,4,2                    ## @colfunc
	.comm	_MF_TRANSLATION,4,2             ## @MF_TRANSLATION
	.comm	_R_DrawTranslatedColumn,4,2     ## @R_DrawTranslatedColumn
	.comm	_translationtables,4,2          ## @translationtables
	.comm	_MF_TRANSSHIFT,4,2              ## @MF_TRANSSHIFT
	.comm	_dc_translation,4,2             ## @dc_translation
	.comm	_detailshift,4,2                ## @detailshift
	.comm	_dc_iscale,4,2                  ## @dc_iscale
	.comm	_dc_texturemid,4,2              ## @dc_texturemid
	.comm	_spryscale,4,2                  ## @spryscale
	.comm	_centeryfrac,8,3                ## @centeryfrac
	.comm	_sprtopscreen,8,3               ## @sprtopscreen
	.comm	_dc_x,8,3                       ## @dc_x
	.comm	_FRACBITS,4,2                   ## @FRACBITS
	.comm	_basecolfunc,4,2                ## @basecolfunc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_DrawVisSprite                ; -- Begin function R_DrawVisSprite
	.p2align	2
_R_DrawVisSprite:                       ; @R_DrawVisSprite
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _firstspritelump@GOTPAGE
Lloh1:
	ldr	x8, [x8, _firstspritelump@GOTPAGEOFF]
	ldr	w9, [x0, #44]
Lloh2:
	ldr	w8, [x8]
	add	w0, w8, w9
Lloh3:
	adrp	x8, _PU_CACHE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PU_CACHE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_W_CacheLumpNum
	mov	x20, x0
	ldr	w8, [x19, #40]
Lloh6:
	adrp	x9, _dc_colormap@GOTPAGE
Lloh7:
	ldr	x9, [x9, _dc_colormap@GOTPAGEOFF]
Lloh8:
	str	w8, [x9]
Lloh9:
	adrp	x21, _colfunc@GOTPAGE
Lloh10:
	ldr	x21, [x21, _colfunc@GOTPAGEOFF]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w9, [x19]
Lloh11:
	adrp	x8, _MF_TRANSLATION@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MF_TRANSLATION@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_4
; %bb.2:
Lloh14:
	adrp	x9, _R_DrawTranslatedColumn@GOTPAGE
Lloh15:
	ldr	x9, [x9, _R_DrawTranslatedColumn@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	str	w9, [x21]
Lloh17:
	adrp	x9, _translationtables@GOTPAGE
Lloh18:
	ldr	x9, [x9, _translationtables@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	ldr	w10, [x19]
	and	w8, w10, w8
Lloh20:
	adrp	x10, _MF_TRANSSHIFT@GOTPAGE
Lloh21:
	ldr	x10, [x10, _MF_TRANSSHIFT@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	sub	w10, w10, #8
	asr	w8, w8, w10
	add	w8, w9, w8
	sub	w8, w8, #256
Lloh23:
	adrp	x9, _dc_translation@GOTPAGE
Lloh24:
	ldr	x9, [x9, _dc_translation@GOTPAGEOFF]
Lloh25:
	str	w8, [x9]
	b	LBB0_4
LBB0_3:
Lloh26:
	adrp	x8, _fuzzcolfunc@GOTPAGE
Lloh27:
	ldr	x8, [x8, _fuzzcolfunc@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x21]
LBB0_4:
	ldr	x0, [x19, #24]
	bl	_abs
Lloh29:
	adrp	x8, _detailshift@GOTPAGE
Lloh30:
	ldr	x8, [x8, _detailshift@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	asr	w8, w0, w8
Lloh32:
	adrp	x9, _dc_iscale@GOTPAGE
Lloh33:
	ldr	x9, [x9, _dc_iscale@GOTPAGEOFF]
Lloh34:
	str	w8, [x9]
Lloh35:
	adrp	x8, _dc_texturemid@GOTPAGE
Lloh36:
	ldr	x8, [x8, _dc_texturemid@GOTPAGEOFF]
	ldp	w1, w0, [x19, #32]
Lloh37:
	str	w0, [x8]
	ldr	w22, [x19, #4]
Lloh38:
	adrp	x8, _spryscale@GOTPAGE
Lloh39:
	ldr	x8, [x8, _spryscale@GOTPAGEOFF]
Lloh40:
	str	w1, [x8]
Lloh41:
	adrp	x8, _centeryfrac@GOTPAGE
Lloh42:
	ldr	x8, [x8, _centeryfrac@GOTPAGEOFF]
Lloh43:
	ldr	x23, [x8]
	bl	_FixedMul
	sub	x8, x23, x0
Lloh44:
	adrp	x9, _sprtopscreen@GOTPAGE
Lloh45:
	ldr	x9, [x9, _sprtopscreen@GOTPAGEOFF]
Lloh46:
	str	x8, [x9]
Lloh47:
	adrp	x23, _dc_x@GOTPAGE
Lloh48:
	ldr	x23, [x23, _dc_x@GOTPAGEOFF]
	ldp	x8, x9, [x19, #8]
	str	x8, [x23]
	cmp	x8, x9
	b.gt	LBB0_7
; %bb.5:
Lloh49:
	adrp	x24, _FRACBITS@GOTPAGE
Lloh50:
	ldr	x24, [x24, _FRACBITS@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	asr	w8, w22, w8
	ldr	x9, [x20]
	ldr	w0, [x9, w8, sxtw #2]
	bl	_LONG
	add	x0, x20, w0, sxtw #2
	bl	_R_DrawMaskedColumn
	ldr	x8, [x23]
	add	x9, x8, #1
	str	x9, [x23]
	ldr	w9, [x19, #24]
	add	w22, w22, w9
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.lt	LBB0_6
LBB0_7:
Lloh51:
	adrp	x8, _basecolfunc@GOTPAGE
Lloh52:
	ldr	x8, [x8, _basecolfunc@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	str	w8, [x21]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotStr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotStr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotStr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_firstspritelump,4,2            ; @firstspritelump
	.comm	_PU_CACHE,4,2                   ; @PU_CACHE
	.comm	_dc_colormap,4,2                ; @dc_colormap
	.comm	_fuzzcolfunc,4,2                ; @fuzzcolfunc
	.comm	_colfunc,4,2                    ; @colfunc
	.comm	_MF_TRANSLATION,4,2             ; @MF_TRANSLATION
	.comm	_R_DrawTranslatedColumn,4,2     ; @R_DrawTranslatedColumn
	.comm	_translationtables,4,2          ; @translationtables
	.comm	_MF_TRANSSHIFT,4,2              ; @MF_TRANSSHIFT
	.comm	_dc_translation,4,2             ; @dc_translation
	.comm	_detailshift,4,2                ; @detailshift
	.comm	_dc_iscale,4,2                  ; @dc_iscale
	.comm	_dc_texturemid,4,2              ; @dc_texturemid
	.comm	_spryscale,4,2                  ; @spryscale
	.comm	_centeryfrac,8,3                ; @centeryfrac
	.comm	_sprtopscreen,8,3               ; @sprtopscreen
	.comm	_dc_x,8,3                       ; @dc_x
	.comm	_FRACBITS,4,2                   ; @FRACBITS
	.comm	_basecolfunc,4,2                ; @basecolfunc
.subsections_via_symbols
