	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_MakeSpans                    ## -- Begin function R_MakeSpans
	.p2align	4, 0x90
_R_MakeSpans:                           ## @R_MakeSpans
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movl	%edx, %r15d
	movl	%esi, %r12d
                                        ## kill: def $edi killed $edi def $rdi
	cmpl	%ecx, %esi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	jge	LBB0_4
## %bb.1:
	cmpl	%r15d, %r12d
	jg	LBB0_4
## %bb.2:
	leal	-1(%rdi), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movslq	%r12d, %rbx
	movslq	%ecx, %r13
	movslq	%r15d, %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_spanstart@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movl	%ebx, %edi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_R_MapPlane
	leaq	1(%rbx), %r12
	cmpq	%r13, %r12
	jge	LBB0_4
## %bb.40:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r14, %rbx
	movq	%r12, %rbx
	jl	LBB0_3
LBB0_4:
	movslq	%r12d, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %r15d
	jle	LBB0_9
## %bb.5:
	cmpl	%r15d, %r12d
	jg	LBB0_9
## %bb.6:
	movslq	%r15d, %r13
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	-1(%rax), %r14d
	movslq	%ecx, %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_spanstart@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %esi
	movl	%r13d, %edi
	movl	%r14d, %edx
	callq	_R_MapPlane
	leaq	-1(%r13), %r15
	cmpq	%rbx, %r15
	jle	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	cmpq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	movq	%r15, %r13
	jg	LBB0_7
LBB0_9:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	cmpl	%esi, %r12d
	jle	LBB0_10
## %bb.16:
	movl	-44(%rbp), %r10d                ## 4-byte Reload
	cmpl	%r10d, %esi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jg	LBB0_11
## %bb.17:
	movslq	%esi, %rsi
	movq	_spanstart@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r10d, %rcx
	movq	%rsi, %rdx
	notq	%rdx
	addq	-56(%rbp), %rdx                 ## 8-byte Folded Reload
	cmpq	%rsi, %rcx
	movq	%rsi, %r9
	cmovgq	%rcx, %r9
	subq	%rsi, %r9
	cmpq	%r9, %rdx
	cmovbq	%rdx, %r9
	incq	%r9
	cmpq	$8, %r9
	jb	LBB0_26
## %bb.18:
	movq	%r9, %r8
	andq	$-8, %r8
	movd	%r14d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%r8), %rdx
	movq	%rdx, %rdi
	shrq	$3, %rdi
	incq	%rdi
	movl	%edi, %r11d
	andl	$3, %r11d
	cmpq	$24, %rdx
	jae	LBB0_20
## %bb.19:
	xorl	%edx, %edx
	jmp	LBB0_22
LBB0_10:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	-44(%rbp), %r10d                ## 4-byte Reload
	jmp	LBB0_11
LBB0_20:
	andq	$-4, %rdi
	leaq	(%rax,%rsi,4), %rbx
	addq	$112, %rbx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -112(%rbx,%rdx,4)
	movdqu	%xmm0, -96(%rbx,%rdx,4)
	movdqu	%xmm0, -80(%rbx,%rdx,4)
	movdqu	%xmm0, -64(%rbx,%rdx,4)
	movdqu	%xmm0, -48(%rbx,%rdx,4)
	movdqu	%xmm0, -32(%rbx,%rdx,4)
	movdqu	%xmm0, -16(%rbx,%rdx,4)
	movdqu	%xmm0, (%rbx,%rdx,4)
	addq	$32, %rdx
	addq	$-4, %rdi
	jne	LBB0_21
LBB0_22:
	testq	%r11, %r11
	je	LBB0_25
## %bb.23:
	addq	%rsi, %rdx
	leaq	(%rax,%rdx,4), %rdx
	addq	$16, %rdx
	shlq	$5, %r11
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, -16(%rdx,%rdi)
	movdqu	%xmm0, (%rdx,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %r11
	jne	LBB0_24
LBB0_25:
	addq	%r8, %rsi
	cmpq	%r8, %r9
	je	LBB0_11
LBB0_26:
	movq	%rsi, %rdx
	.p2align	4, 0x90
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, (%rax,%rdx,4)
	leaq	1(%rdx), %rsi
	cmpq	-56(%rbp), %rsi                 ## 8-byte Folded Reload
	jge	LBB0_11
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	cmpq	%rcx, %rdx
	movq	%rsi, %rdx
	jl	LBB0_27
LBB0_11:
	cmpl	%r10d, %r15d
	jge	LBB0_39
## %bb.12:
	cmpl	%r10d, %esi
	jg	LBB0_39
## %bb.13:
	movslq	%r10d, %rax
	movq	_spanstart@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r11
	movslq	%r15d, %rdx
	movslq	%esi, %rsi
	movq	%rdx, %rcx
	notq	%rcx
	addq	%rax, %rcx
	movq	%rax, %rdi
	subq	%rsi, %rdi
	cmpq	%rcx, %rdi
	cmovaeq	%rcx, %rdi
	incq	%rdi
	testq	%rcx, %rcx
	movl	$1, %r9d
	cmovneq	%rdi, %r9
	cmpq	$8, %r9
	jb	LBB0_37
## %bb.14:
	movq	%r9, %r8
	andq	$-8, %r8
	movd	%r14d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%r8), %rcx
	movq	%rcx, %rbx
	shrq	$3, %rbx
	incq	%rbx
	movl	%ebx, %r10d
	andl	$3, %r10d
	cmpq	$24, %rcx
	jae	LBB0_29
## %bb.15:
	xorl	%edi, %edi
	testq	%r10, %r10
	jne	LBB0_33
	jmp	LBB0_35
LBB0_29:
	andq	$-4, %rbx
	leaq	(%r11,%rax,4), %rcx
	addq	$-12, %rcx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rcx,%rdi,4)
	movdqu	%xmm0, -16(%rcx,%rdi,4)
	movdqu	%xmm0, -32(%rcx,%rdi,4)
	movdqu	%xmm0, -48(%rcx,%rdi,4)
	movdqu	%xmm0, -64(%rcx,%rdi,4)
	movdqu	%xmm0, -80(%rcx,%rdi,4)
	movdqu	%xmm0, -96(%rcx,%rdi,4)
	movdqu	%xmm0, -112(%rcx,%rdi,4)
	addq	$-32, %rdi
	addq	$-4, %rbx
	jne	LBB0_30
## %bb.31:
	negq	%rdi
	testq	%r10, %r10
	je	LBB0_35
LBB0_33:
	movq	%rax, %rcx
	subq	%rdi, %rcx
	leaq	(%r11,%rcx,4), %rcx
	addq	$-12, %rcx
	shlq	$5, %r10
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rcx,%rdi)
	movdqu	%xmm0, -16(%rcx,%rdi)
	addq	$-32, %rdi
	movq	%r10, %rbx
	addq	%rdi, %rbx
	jne	LBB0_34
LBB0_35:
	cmpq	%r8, %r9
	je	LBB0_39
## %bb.36:
	subq	%r8, %rax
	.p2align	4, 0x90
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movl	%r14d, (%r11,%rax,4)
	leaq	-1(%rax), %rcx
	cmpq	%rdx, %rcx
	jle	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=1
	cmpq	%rsi, %rax
	movq	%rcx, %rax
	jg	LBB0_37
LBB0_39:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_spanstart,8,3                  ## @spanstart
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_R_MakeSpans                    ; -- Begin function R_MakeSpans
	.p2align	2
_R_MakeSpans:                           ; @R_MakeSpans
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x22, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x26, _spanstart@GOTPAGE
Lloh1:
	ldr	x26, [x26, _spanstart@GOTPAGEOFF]
	cmp	w1, w3
	b.ge	LBB0_5
; %bb.1:
	cmp	w23, w21
	b.gt	LBB0_5
; %bb.2:
	sub	w24, w19, #1
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	sxtw	x25, w23
	mov	x8, x22
	sxtw	x27, w8
	mov	x8, x21
	sxtw	x28, w8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldr	w1, [x8, x25, lsl #2]
	mov	x0, x25
	mov	x2, x24
	bl	_R_MapPlane
	add	x23, x25, #1
	cmp	x23, x27
	b.ge	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x25, x28
	mov	x25, x23
	b.lt	LBB0_3
LBB0_5:
	cmp	w21, w20
	b.le	LBB0_10
; %bb.6:
	cmp	w23, w21
	b.gt	LBB0_10
; %bb.7:
	sub	w24, w19, #1
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	sxtw	x25, w21
	mov	x8, x20
	sxtw	x27, w8
	mov	x8, x23
	sxtw	x28, w8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldr	w1, [x8, x25, lsl #2]
	mov	x0, x25
	mov	x2, x24
	bl	_R_MapPlane
	sub	x21, x25, #1
	cmp	x21, x27
	b.le	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	x25, x28
	mov	x25, x21
	b.gt	LBB0_8
LBB0_10:
	cmp	w23, w22
	b.le	LBB0_19
; %bb.11:
	cmp	w22, w20
	b.gt	LBB0_19
; %bb.12:
	ldr	x8, [x26]
	sxtw	x13, w22
                                        ; kill: def $w23 killed $w23 killed $x23 def $x23
	sxtw	x9, w23
	sxtw	x10, w20
	mvn	x11, x13
	add	x11, x11, x9
	cmp	x10, x13
	csel	x12, x10, x13, gt
	sub	x12, x12, x13
	cmp	x11, x12
	csel	x11, x11, x12, lo
	add	x11, x11, #1
	mov	x22, x13
	cmp	x11, #16
	b.lo	LBB0_16
; %bb.13:
	and	x12, x11, #0xfffffffffffffff0
	add	x22, x12, x13
	dup.4s	v0, w19
	add	x13, x8, x13, lsl #2
	add	x13, x13, #32
	mov	x14, x12
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x13, #-32]
	stp	q0, q0, [x13], #64
	subs	x14, x14, #16
	b.ne	LBB0_14
; %bb.15:
	cmp	x11, x12
	b.eq	LBB0_18
LBB0_16:
	mov	x11, x22
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	str	w19, [x8, x11, lsl #2]
	add	x22, x11, #1
	cmp	x22, x9
	ccmp	x11, x10, #0, lt
	mov	x11, x22
	b.lt	LBB0_17
LBB0_18:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
LBB0_19:
	cmp	w21, w20
	b.ge	LBB0_26
; %bb.20:
	cmp	w22, w20
	b.gt	LBB0_26
; %bb.21:
	ldr	x8, [x26]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sxtw	x14, w20
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	sxtw	x9, w21
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sxtw	x10, w22
	mvn	x11, x9
	add	x11, x11, x14
	sub	x12, x14, x10
	cmp	x12, x11
	csel	x12, x12, x11, lo
	cmp	x11, #0
	mov	w11, #1
	csinc	x12, x11, x12, eq
	mov	x11, x14
	cmp	x12, #16
	b.lo	LBB0_25
; %bb.22:
	and	x13, x12, #0xfffffffffffffff0
	sub	x11, x14, x13
	dup.4s	v0, w19
	add	x14, x8, x14, lsl #2
	sub	x14, x14, #28
	mov	x15, x13
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x14]
	stp	q0, q0, [x14, #-32]
	sub	x14, x14, #64
	sub	x15, x15, #16
	cbnz	x15, LBB0_23
; %bb.24:
	cmp	x12, x13
	b.eq	LBB0_26
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	str	w19, [x8, x11, lsl #2]
	sub	x12, x11, #1
	cmp	x12, x9
	ccmp	x11, x10, #4, gt
	mov	x11, x12
	b.gt	LBB0_25
LBB0_26:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_spanstart,8,3                  ; @spanstart
.subsections_via_symbols
