	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_DrawSpan                     ## -- Begin function R_DrawSpan
	.p2align	4, 0x90
_R_DrawSpan:                            ## @R_DrawSpan
	.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
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ds_xfrac@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ds_yfrac@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_ylookup@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	_ds_y@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	movq	_columnofs@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_ds_x1@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rbx
	movslq	(%rdx,%rbx,4), %rdx
	shlq	$2, %rdx
	addq	(%rsi,%rax,8), %rdx
	movq	_ds_x2@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r11d
	subl	%ebx, %r11d
	movq	_ds_colormap@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r8
	movq	_ds_source@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r9
	movq	_ds_xstep@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r14d
	movq	_ds_ystep@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	leal	1(%r11), %esi
	testb	$1, %sil
	jne	LBB0_2
## %bb.1:
	movl	%r11d, %r10d
	testl	%r11d, %r11d
	jne	LBB0_4
	jmp	LBB0_6
LBB0_2:
	movq	%rcx, %rsi
	shrq	$10, %rsi
	andl	$4032, %esi                     ## imm = 0xFC0
	movl	%r15d, %eax
	shrl	$16, %eax
	andl	$63, %eax
	orq	%rsi, %rax
	movq	(%r9,%rax,8), %rax
	movl	(%r8,%rax,4), %eax
	movl	%eax, (%rdx)
	addq	$4, %rdx
	addl	%r14d, %r15d
	addl	%ebx, %ecx
	leal	-1(%r11), %r10d
	testl	%r11d, %r11d
	je	LBB0_6
LBB0_4:
	incl	%r10d
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	shrl	$10, %eax
	andl	$4032, %eax                     ## imm = 0xFC0
	movl	%r15d, %edi
	shrl	$16, %edi
	andl	$63, %edi
	orl	%eax, %edi
	movq	(%r9,%rdi,8), %rax
	movl	(%r8,%rax,4), %eax
	movl	%eax, (%rdx,%rsi,4)
	addl	%r14d, %r15d
	addl	%ebx, %ecx
	movl	%ecx, %eax
	shrl	$10, %eax
	andl	$4032, %eax                     ## imm = 0xFC0
	movl	%r15d, %edi
	shrl	$16, %edi
	andl	$63, %edi
	orl	%eax, %edi
	movq	(%r9,%rdi,8), %rax
	movl	(%r8,%rax,4), %eax
	movl	%eax, 4(%rdx,%rsi,4)
	addl	%r14d, %r15d
	addl	%ebx, %ecx
	addq	$2, %rsi
	cmpl	%esi, %r10d
	jne	LBB0_5
LBB0_6:
	popq	%rbx
	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	_ylookup,8,3                    ## @ylookup
	.comm	_ds_y,8,3                       ## @ds_y
	.comm	_columnofs,8,3                  ## @columnofs
	.comm	_ds_x1,8,3                      ## @ds_x1
	.comm	_ds_x2,8,3                      ## @ds_x2
	.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,8,3                ## @SCREENWIDTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_DrawSpan                     ; -- Begin function R_DrawSpan
	.p2align	2
_R_DrawSpan:                            ; @R_DrawSpan
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ds_xfrac@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ds_xfrac@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ds_yfrac@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ds_yfrac@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _ylookup@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ylookup@GOTPAGEOFF]
Lloh8:
	adrp	x11, _ds_y@GOTPAGE
Lloh9:
	ldr	x11, [x11, _ds_y@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
Lloh11:
	ldr	x11, [x11]
	ldr	x10, [x10, x11, lsl #3]
Lloh12:
	adrp	x11, _columnofs@GOTPAGE
Lloh13:
	ldr	x11, [x11, _columnofs@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
Lloh15:
	adrp	x12, _ds_x1@GOTPAGE
Lloh16:
	ldr	x12, [x12, _ds_x1@GOTPAGEOFF]
Lloh17:
	ldr	x15, [x12]
	ldrsw	x11, [x11, x15, lsl #2]
	add	x10, x10, x11, lsl #2
Lloh18:
	adrp	x11, _ds_x2@GOTPAGE
Lloh19:
	ldr	x11, [x11, _ds_x2@GOTPAGEOFF]
Lloh20:
	ldr	w16, [x11]
Lloh21:
	adrp	x11, _ds_colormap@GOTPAGE
Lloh22:
	ldr	x11, [x11, _ds_colormap@GOTPAGEOFF]
Lloh23:
	ldr	x11, [x11]
Lloh24:
	adrp	x12, _ds_source@GOTPAGE
Lloh25:
	ldr	x12, [x12, _ds_source@GOTPAGEOFF]
Lloh26:
	ldr	x12, [x12]
Lloh27:
	adrp	x13, _ds_xstep@GOTPAGE
Lloh28:
	ldr	x13, [x13, _ds_xstep@GOTPAGEOFF]
Lloh29:
	ldr	w13, [x13]
Lloh30:
	adrp	x14, _ds_ystep@GOTPAGE
Lloh31:
	ldr	x14, [x14, _ds_ystep@GOTPAGEOFF]
Lloh32:
	ldr	w14, [x14]
	mvn	w16, w16
	add	w15, w16, w15
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w16, w9, #10
	and	w16, w16, #0xfc0
	bfxil	w16, w8, #16, #6
	ldr	x16, [x12, w16, uxtw #3]
	ldr	w16, [x11, x16, lsl #2]
	str	w16, [x10], #4
	add	w8, w8, w13
	add	w9, w9, w14
	adds	w15, w15, #1
	b.lo	LBB0_1
; %bb.2:
	ret
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ds_xfrac,4,2                   ; @ds_xfrac
	.comm	_ds_yfrac,4,2                   ; @ds_yfrac
	.comm	_ylookup,8,3                    ; @ylookup
	.comm	_ds_y,8,3                       ; @ds_y
	.comm	_columnofs,8,3                  ; @columnofs
	.comm	_ds_x1,8,3                      ; @ds_x1
	.comm	_ds_x2,8,3                      ; @ds_x2
	.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,8,3                ; @SCREENWIDTH
.subsections_via_symbols
