	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_write_index_span            ## -- Begin function gl_write_index_span
	.p2align	4, 0x90
_gl_write_index_span:                   ## @gl_write_index_span
	.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
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	shlq	$2, %r15
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%r13d, %edx
	callq	_MEMSET
	movq	_WINCLIP_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_GL_BITMAP@GOTPCREL(%rip), %r15
	testl	%eax, (%rbx)
	jne	LBB0_2
## %bb.1:
	movq	16(%rbp), %rax
	cmpq	%rax, (%r15)
	jne	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	%r14, %r8
	callq	_clip_span
	testq	%rax, %rax
	je	LBB0_30
LBB0_3:
	cmpq	$0, 88(%rbx)
	je	LBB0_7
## %bb.4:
	movq	80(%rbx), %rax
	movq	_GL_NICEST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	16(%rbp), %rax
	cmpq	%rax, (%r15)
	je	LBB0_6
LBB0_7:
	cmpq	$0, 72(%rbx)
	jne	LBB0_8
	jmp	LBB0_9
LBB0_6:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_gl_fog_index_pixels
	cmpq	$0, 72(%rbx)
	je	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	%r14, %r8
	callq	_gl_scissor_span
	testq	%rax, %rax
	je	LBB0_30
LBB0_9:
	cmpq	$0, 64(%rbx)
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_12
## %bb.10:
	movq	_GL_POLYGON@GOTPCREL(%rip), %rax
	movq	16(%rbp), %rcx
	cmpq	%rcx, (%rax)
	jne	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movq	%r14, %r8
	callq	_stipple_polygon_span
LBB0_12:
	cmpq	$0, 56(%rbx)
	je	LBB0_15
## %bb.13:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movq	%r14, %r8
	callq	_gl_stencil_span
	testq	%rax, %rax
	je	LBB0_30
## %bb.14:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	%r14, %r9
	callq	_gl_depth_stencil_span
	jmp	LBB0_17
LBB0_15:
	cmpq	$0, 48(%rbx)
	je	LBB0_17
## %bb.16:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	movq	%r14, %r9
	callq	*8(%rbx)
	testq	%rax, %rax
	je	LBB0_30
LBB0_17:
	movl	(%rbx), %eax
	movq	_NO_DRAW_BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_30
## %bb.18:
	movq	_FRONT_AND_BACK_BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.19:
	leal	(,%r13,4), %edx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_MEMCPY
LBB0_20:
	cmpq	$0, 40(%rbx)
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_22
## %bb.21:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	%r14, %r9
	callq	_gl_logicop_ci_span
LBB0_22:
	cmpq	$0, 32(%rbx)
	movl	%r15d, %ecx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_24
## %bb.23:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	%r15, %r8
	callq	_gl_mask_index_span
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
LBB0_24:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movq	%r15, %r8
	movq	%r14, %r9
	callq	*24(%rbx)
	movq	_FRONT_AND_BACK_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_30
## %bb.25:
	movq	_GL_BACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	*16(%rbx)
	leal	(,%r13,4), %edx
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_MEMCPY
	cmpq	$0, 40(%rbx)
	je	LBB0_27
## %bb.26:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	%r15, %r8
	movq	%r14, %r9
	callq	_gl_logicop_ci_span
LBB0_27:
	cmpq	$0, 32(%rbx)
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_29
## %bb.28:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	%r15, %r8
	callq	_gl_mask_index_span
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
LBB0_29:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movq	%r15, %r8
	movq	%r14, %r9
	callq	*24(%rbx)
	movq	_GL_FRONT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	*16(%rbx)
LBB0_30:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_32
## %bb.31:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_WIDTH,4,2                  ## @MAX_WIDTH
	.comm	_WINCLIP_BIT,4,2                ## @WINCLIP_BIT
	.comm	_GL_BITMAP,8,3                  ## @GL_BITMAP
	.comm	_GL_NICEST,8,3                  ## @GL_NICEST
	.comm	_GL_POLYGON,8,3                 ## @GL_POLYGON
	.comm	_NO_DRAW_BIT,4,2                ## @NO_DRAW_BIT
	.comm	_FRONT_AND_BACK_BIT,4,2         ## @FRONT_AND_BACK_BIT
	.comm	_GL_BACK,4,2                    ## @GL_BACK
	.comm	_GL_FRONT,4,2                   ## @GL_FRONT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_write_index_span            ; -- Begin function gl_write_index_span
	.p2align	2
_gl_write_index_span:                   ; @gl_write_index_span
	.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
	sub	sp, sp, #16
	mov	x27, x6
	mov	x20, x5
	mov	x26, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_WIDTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_WIDTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x24, x9, x12
	mov	sp, x24
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x25, x8, x12
	mov	sp, x25
	mov	x0, x24
	mov	w1, #1
	mov	x2, x23
	bl	_MEMSET
	ldr	w8, [x19]
Lloh10:
	adrp	x9, _WINCLIP_BIT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _WINCLIP_BIT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh13:
	adrp	x28, _GL_BITMAP@GOTPAGE
Lloh14:
	ldr	x28, [x28, _GL_BITMAP@GOTPAGEOFF]
	ldr	x9, [x28]
	cmp	w8, #0
	ccmp	x9, x27, #4, eq
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x24
	bl	_clip_span
	cbz	x0, LBB0_28
LBB0_2:
	ldr	x8, [x19, #88]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x19, #80]
Lloh15:
	adrp	x9, _GL_NICEST@GOTPAGE
Lloh16:
	ldr	x9, [x9, _GL_NICEST@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	x10, [x28]
	cmp	x8, x9
	ccmp	x10, x27, #4, ne
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x26
	mov	x3, x20
	bl	_gl_fog_index_pixels
LBB0_5:
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x24
	bl	_gl_scissor_span
	cbz	x0, LBB0_28
LBB0_7:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_10
; %bb.8:
Lloh18:
	adrp	x8, _GL_POLYGON@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GL_POLYGON@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x8, x27
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x24
	bl	_stipple_polygon_span
LBB0_10:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_13
; %bb.11:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x24
	bl	_gl_stencil_span
	cbz	x0, LBB0_28
; %bb.12:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x26
	mov	x5, x24
	bl	_gl_depth_stencil_span
	b	LBB0_15
LBB0_13:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x26
	mov	x5, x24
	blr	x8
	cbz	x0, LBB0_28
LBB0_15:
	ldr	w8, [x19]
Lloh21:
	adrp	x9, _NO_DRAW_BIT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NO_DRAW_BIT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_28
; %bb.16:
Lloh24:
	adrp	x27, _FRONT_AND_BACK_BIT@GOTPAGE
Lloh25:
	ldr	x27, [x27, _FRONT_AND_BACK_BIT@GOTPAGEOFF]
	ldr	w9, [x27]
	lsl	w26, w23, #2
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
	mov	x0, x25
	mov	x1, x20
	mov	x2, x26
	bl	_MEMCPY
LBB0_18:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_20
; %bb.19:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x24
	bl	_gl_logicop_ci_span
LBB0_20:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_22
; %bb.21:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	bl	_gl_mask_index_span
LBB0_22:
	ldr	x8, [x19, #24]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x24
	blr	x8
	ldr	w8, [x19]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_28
; %bb.23:
	ldr	x8, [x19, #16]
Lloh26:
	adrp	x9, _GL_BACK@GOTPAGE
Lloh27:
	ldr	x9, [x9, _GL_BACK@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
	mov	x0, x20
	mov	x1, x25
	mov	x2, x26
	bl	_MEMCPY
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_25
; %bb.24:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x24
	bl	_gl_logicop_ci_span
LBB0_25:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_27
; %bb.26:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	bl	_gl_mask_index_span
LBB0_27:
	ldr	x8, [x19, #24]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x24
	blr	x8
	ldr	x8, [x19, #16]
Lloh29:
	adrp	x9, _GL_FRONT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _GL_FRONT@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x9]
	mov	x0, x19
	blr	x8
LBB0_28:
	ldur	x8, [x29, #-88]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.29:
	sub	sp, x29, #80
	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
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_WIDTH,4,2                  ; @MAX_WIDTH
	.comm	_WINCLIP_BIT,4,2                ; @WINCLIP_BIT
	.comm	_GL_BITMAP,8,3                  ; @GL_BITMAP
	.comm	_GL_NICEST,8,3                  ; @GL_NICEST
	.comm	_GL_POLYGON,8,3                 ; @GL_POLYGON
	.comm	_NO_DRAW_BIT,4,2                ; @NO_DRAW_BIT
	.comm	_FRONT_AND_BACK_BIT,4,2         ; @FRONT_AND_BACK_BIT
	.comm	_GL_BACK,4,2                    ; @GL_BACK
	.comm	_GL_FRONT,4,2                   ; @GL_FRONT
.subsections_via_symbols
