	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_mask_index_span             ## -- Begin function gl_mask_index_span
	.p2align	4, 0x90
_gl_mask_index_span:                    ## @gl_mask_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	%r15, %r8
	callq	_gl_read_index_span
	testq	%r14, %r14
	je	LBB0_11
## %bb.1:
	movq	(%r12), %rax
	movq	%rax, %rcx
	notq	%rcx
	cmpq	$4, %r14
	jae	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_10
LBB0_3:
	movq	%r14, %rdx
	andq	$-4, %rdx
	movq	%rax, %xmm0
	pshufd	$68, %xmm0, %xmm1               ## xmm1 = xmm0[0,1,0,1]
	movq	%rcx, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	leaq	-4(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.5:
	movq	%r8, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rbx,%rsi,8), %xmm2
	movdqu	16(%rbx,%rsi,8), %xmm3
	movdqu	32(%rbx,%rsi,8), %xmm4
	movdqu	48(%rbx,%rsi,8), %xmm5
	pand	%xmm1, %xmm2
	pand	%xmm1, %xmm3
	movdqa	(%r15,%rsi,8), %xmm6
	pand	%xmm0, %xmm6
	por	%xmm2, %xmm6
	movdqa	16(%r15,%rsi,8), %xmm2
	pand	%xmm0, %xmm2
	por	%xmm3, %xmm2
	movdqu	%xmm6, (%rbx,%rsi,8)
	movdqu	%xmm2, 16(%rbx,%rsi,8)
	pand	%xmm1, %xmm4
	pand	%xmm1, %xmm5
	movdqa	32(%r15,%rsi,8), %xmm2
	pand	%xmm0, %xmm2
	por	%xmm4, %xmm2
	movdqa	48(%r15,%rsi,8), %xmm3
	pand	%xmm0, %xmm3
	por	%xmm5, %xmm3
	movdqu	%xmm2, 32(%rbx,%rsi,8)
	movdqu	%xmm3, 48(%rbx,%rsi,8)
	addq	$8, %rsi
	addq	$-2, %rdi
	jne	LBB0_6
## %bb.7:
	testb	$1, %r8b
	je	LBB0_9
LBB0_8:
	movdqu	(%rbx,%rsi,8), %xmm2
	movdqu	16(%rbx,%rsi,8), %xmm3
	pand	%xmm1, %xmm2
	pand	%xmm1, %xmm3
	movdqa	(%r15,%rsi,8), %xmm1
	pand	%xmm0, %xmm1
	pand	16(%r15,%rsi,8), %xmm0
	por	%xmm2, %xmm1
	por	%xmm3, %xmm0
	movdqu	%xmm1, (%rbx,%rsi,8)
	movdqu	%xmm0, 16(%rbx,%rsi,8)
LBB0_9:
	cmpq	%r14, %rdx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rdx,8), %rsi
	andq	%rax, %rsi
	movq	(%r15,%rdx,8), %rdi
	andq	%rcx, %rdi
	orq	%rsi, %rdi
	movq	%rdi, (%rbx,%rdx,8)
	incq	%rdx
	cmpq	%rdx, %r14
	jne	LBB0_10
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%esi, %esi
	testb	$1, %r8b
	jne	LBB0_8
	jmp	LBB0_9
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_WIDTH,4,2                  ## @MAX_WIDTH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_mask_index_span             ; -- Begin function gl_mask_index_span
	.p2align	2
_gl_mask_index_span:                    ; @gl_mask_index_span
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #16
	mov	x19, x4
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _MAX_WIDTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_WIDTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x21, x9, x8
	mov	sp, x21
	mov	x4, x21
	bl	_gl_read_index_span
	cbz	x20, LBB0_8
; %bb.1:
	ldr	x8, [x22]
	mvn	x9, x8
	cmp	x20, #8
	b.hs	LBB0_3
; %bb.2:
	mov	x10, #0
	b	LBB0_6
LBB0_3:
	dup.2d	v0, x8
	and	x10, x20, #0xfffffffffffffff8
	dup.2d	v1, x9
	add	x11, x19, #32
	add	x12, x21, #32
	mov	x13, x10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q2, q3, [x11, #-32]
	ldp	q4, q5, [x11]
	and.16b	v2, v2, v0
	and.16b	v3, v3, v0
	and.16b	v4, v4, v0
	and.16b	v5, v5, v0
	ldp	q6, q7, [x12, #-32]
	ldp	q16, q17, [x12], #64
	and.16b	v6, v6, v1
	and.16b	v7, v7, v1
	and.16b	v16, v16, v1
	and.16b	v17, v17, v1
	orr.16b	v2, v6, v2
	orr.16b	v3, v7, v3
	orr.16b	v4, v16, v4
	orr.16b	v5, v17, v5
	stp	q2, q3, [x11, #-32]
	stp	q4, q5, [x11], #64
	subs	x13, x13, #8
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x20
	b.eq	LBB0_8
LBB0_6:
	sub	x11, x20, x10
	lsl	x12, x10, #3
	add	x10, x21, x12
	add	x12, x19, x12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x12]
	ldr	x14, [x10], #8
	and	x13, x13, x8
	and	x14, x14, x9
	orr	x13, x14, x13
	str	x13, [x12], #8
	subs	x11, x11, #1
	b.ne	LBB0_7
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_WIDTH,4,2                  ; @MAX_WIDTH
.subsections_via_symbols
