	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_DrawSpanLow                  ## -- Begin function R_DrawSpanLow
	.p2align	4, 0x90
_R_DrawSpanLow:                         ## @R_DrawSpanLow
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ds_xfrac@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movq	_ds_yfrac@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_ds_x1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	%esi, %esi
	movl	%esi, (%rax)
	movq	_ds_x2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	%edx, %edx
	movl	%edx, (%rax)
	movq	_ylookup@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ds_y@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movq	(%rax,%rdi,8), %rax
	movq	_columnofs@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rbx
	movslq	%esi, %rdi
	movslq	(%rbx,%rdi,4), %rsi
	movq	_ds_xstep@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r9d
	movq	_ds_ystep@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r10d
	movq	%r8, %rcx
	shrq	$10, %rcx
	andl	$4032, %ecx                     ## imm = 0xFC0
	movl	%r11d, %ebx
	shrl	$16, %ebx
	andl	$63, %ebx
	orq	%rcx, %rbx
	movq	_ds_colormap@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r12
	movq	_ds_source@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
	movq	(%r13,%rbx,8), %rcx
	movl	(%r12,%rcx,8), %ecx
	movl	%ecx, (%rax,%rsi,4)
	movl	%ecx, 4(%rax,%rsi,4)
	subl	%edi, %edx
	je	LBB0_3
## %bb.1:
	movq	%r11, %rdi
	leaq	(%rax,%rsi,4), %r11
	leal	(%r10,%r10), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r14d
	addl	%r10d, %r14d
	leal	(%r8,%r10,2), %ecx
	movl	%edx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leal	(%r9,%r9), %r15d
	movl	%edi, %ebx
	addl	%r9d, %ebx
	leal	(%rdi,%r9,2), %edx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %eax
	shrl	$10, %eax
	andl	$4032, %eax                     ## imm = 0xFC0
	movl	%ebx, %r8d
	shrl	$16, %r8d
	andl	$63, %r8d
	orl	%eax, %r8d
	movq	(%r13,%r8,8), %rax
	movl	(%r12,%rax,8), %eax
	movl	%eax, 8(%r11,%rsi,8)
	movl	%eax, 12(%r11,%rsi,8)
	movl	%ecx, %eax
	shrl	$10, %eax
	andl	$4032, %eax                     ## imm = 0xFC0
	movl	%edx, %edi
	shrl	$16, %edi
	andl	$63, %edi
	orl	%eax, %edi
	movq	(%r13,%rdi,8), %rax
	movl	(%r12,%rax,8), %eax
	movl	%eax, 16(%r11,%rsi,8)
	movl	%eax, 20(%r11,%rsi,8)
	addl	%r9d, %ebx
	addl	%r10d, %r14d
	addl	%r9d, %ebx
	addl	%r10d, %r14d
	addl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	addq	$2, %rsi
	addl	%r15d, %edx
	cmpl	%esi, -56(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ds_xfrac,4,2                   ## @ds_xfrac
	.comm	_ds_yfrac,4,2                   ## @ds_yfrac
	.comm	_ds_x1,4,2                      ## @ds_x1
	.comm	_ds_x2,4,2                      ## @ds_x2
	.comm	_ylookup,8,3                    ## @ylookup
	.comm	_ds_y,8,3                       ## @ds_y
	.comm	_columnofs,8,3                  ## @columnofs
	.comm	_ds_colormap,8,3                ## @ds_colormap
	.comm	_ds_source,8,3                  ## @ds_source
	.comm	_ds_xstep,8,3                   ## @ds_xstep
	.comm	_ds_ystep,8,3                   ## @ds_ystep
	.comm	_SCREENHEIGHT,4,2               ## @SCREENHEIGHT
	.comm	_SCREENWIDTH,4,2                ## @SCREENWIDTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_DrawSpanLow                  ; -- Begin function R_DrawSpanLow
	.p2align	2
_R_DrawSpanLow:                         ; @R_DrawSpanLow
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ds_xfrac@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ds_xfrac@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ds_yfrac@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ds_yfrac@GOTPAGEOFF]
Lloh5:
	adrp	x10, _ds_x1@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ds_x1@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	ldr	w11, [x10]
	lsl	w14, w11, #1
	str	w14, [x10]
Lloh8:
	adrp	x10, _ds_x2@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ds_x2@GOTPAGEOFF]
	ldr	w11, [x10]
	lsl	w15, w11, #1
Lloh10:
	adrp	x11, _ylookup@GOTPAGE
Lloh11:
	ldr	x11, [x11, _ylookup@GOTPAGEOFF]
Lloh12:
	adrp	x12, _ds_y@GOTPAGE
Lloh13:
	ldr	x12, [x12, _ds_y@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
Lloh15:
	ldr	x12, [x12]
	ldr	x11, [x11, x12, lsl #3]
Lloh16:
	adrp	x12, _columnofs@GOTPAGE
Lloh17:
	ldr	x12, [x12, _columnofs@GOTPAGEOFF]
	str	w15, [x10]
Lloh18:
	ldr	x10, [x12]
	ldrsw	x10, [x10, w14, sxtw #2]
Lloh19:
	adrp	x12, _ds_colormap@GOTPAGE
Lloh20:
	ldr	x12, [x12, _ds_colormap@GOTPAGEOFF]
	add	x2, x11, x10, lsl #2
Lloh21:
	ldr	x10, [x12]
Lloh22:
	adrp	x11, _ds_source@GOTPAGE
Lloh23:
	ldr	x11, [x11, _ds_source@GOTPAGEOFF]
Lloh24:
	adrp	x12, _ds_xstep@GOTPAGE
Lloh25:
	ldr	x12, [x12, _ds_xstep@GOTPAGEOFF]
Lloh26:
	ldr	x11, [x11]
Lloh27:
	ldr	w12, [x12]
Lloh28:
	adrp	x13, _ds_ystep@GOTPAGE
Lloh29:
	ldr	x13, [x13, _ds_ystep@GOTPAGEOFF]
Lloh30:
	ldr	w13, [x13]
	subs	w15, w15, w14
	b.eq	LBB0_4
; %bb.1:
	orr	w14, w15, #0x1
	sub	x16, x14, #1
	madd	w17, w16, w13, w9
	add	x14, x2, x16, lsl #3
	sub	w15, w15, w16
	madd	w0, w16, w12, w8
	lsl	w1, w12, #1
	add	x2, x2, #8
	lsl	w3, w13, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	w4, w12, w8
	add	w5, w13, w9
	lsr	w6, w9, #10
	lsr	w5, w5, #10
	and	w6, w6, #0xfc0
	and	w5, w5, #0xfc0
	bfxil	w6, w8, #16, #6
	bfxil	w5, w4, #16, #6
	ldr	x4, [x11, w6, uxtw #3]
	ldr	x5, [x11, w5, uxtw #3]
	ldr	x4, [x10, x4, lsl #3]
	ldr	x5, [x10, x5, lsl #3]
	stp	w4, w4, [x2, #-8]
	stp	w5, w5, [x2], #16
	add	w8, w8, w1
	add	w9, w9, w3
	subs	x16, x16, #2
	b.ne	LBB0_2
; %bb.3:
	mov	x9, x17
	mov	x8, x0
	b	LBB0_5
LBB0_4:
	mov	x14, x2
LBB0_5:
	add	w15, w15, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w16, w9, #10
	and	w16, w16, #0xfc0
	bfxil	w16, w8, #16, #6
	ldr	x16, [x11, w16, uxtw #3]
	ldr	x16, [x10, x16, lsl #3]
	stp	w16, w16, [x14], #8
	add	w8, w8, w12
	add	w9, w9, w13
	subs	w15, w15, #1
	b.ne	LBB0_6
; %bb.7:
	ret
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ds_xfrac,4,2                   ; @ds_xfrac
	.comm	_ds_yfrac,4,2                   ; @ds_yfrac
	.comm	_ds_x1,4,2                      ; @ds_x1
	.comm	_ds_x2,4,2                      ; @ds_x2
	.comm	_ylookup,8,3                    ; @ylookup
	.comm	_ds_y,8,3                       ; @ds_y
	.comm	_columnofs,8,3                  ; @columnofs
	.comm	_ds_colormap,8,3                ; @ds_colormap
	.comm	_ds_source,8,3                  ; @ds_source
	.comm	_ds_xstep,8,3                   ; @ds_xstep
	.comm	_ds_ystep,8,3                   ; @ds_ystep
	.comm	_SCREENHEIGHT,4,2               ; @SCREENHEIGHT
	.comm	_SCREENWIDTH,4,2                ; @SCREENWIDTH
.subsections_via_symbols
