	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function opt_sample_rgba_2d
_opt_sample_rgba_2d:                    ## @opt_sample_rgba_2d
	.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	%rcx, %rbx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	16(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %r13d
	movl	4(%rcx), %r14d
	movl	8(%rcx), %r15d
	movq	_GL_REPEAT@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_ASSERT
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	xorl	%edi, %edi
	movq	_GL_REPEAT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_ASSERT
	xorl	%edi, %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 16(%rax)
	sete	%dil
	callq	_ASSERT
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	_GL_RGBA@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_ASSERT
	testq	%r12, %r12
	je	LBB0_3
## %bb.1:
	leal	1073741823(%r13), %r10d
	leal	1073741823(%r14), %r11d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	32(%rax), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rdi,4), %r8d
	imull	%r13d, %r8d
	andl	%r10d, %r8d
	movl	(%rbx,%rdi,4), %r9d
	imull	%r14d, %r9d
	andl	%r11d, %r9d
	movl	%r15d, %ecx
	shll	%cl, %r9d
	orl	%r8d, %r9d
	shll	$2, %r9d
	movslq	%r9d, %rcx
	movq	%rbx, %rax
	movl	(%rsi,%rcx,4), %ebx
	movq	16(%rbp), %rdx
	movl	%ebx, (%rdx,%rdi,4)
	movl	4(%rsi,%rcx,4), %ebx
	movq	24(%rbp), %rdx
	movl	%ebx, (%rdx,%rdi,4)
	movl	8(%rsi,%rcx,4), %ebx
	movq	32(%rbp), %rdx
	movl	%ebx, (%rdx,%rdi,4)
	movq	%rax, %rbx
	movl	12(%rsi,%rcx,4), %ecx
	movq	40(%rbp), %rax
	movl	%ecx, (%rax,%rdi,4)
	incq	%rdi
	cmpq	%rdi, %r12
	jne	LBB0_2
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_REPEAT,8,3                  ## @GL_REPEAT
	.comm	_GL_RGBA,8,3                    ## @GL_RGBA
	.no_dead_strip	_opt_sample_rgba_2d
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function opt_sample_rgba_2d
_opt_sample_rgba_2d:                    ; @opt_sample_rgba_2d
	.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	x19, x7
	mov	x20, x6
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	ldr	x8, [x0, #16]
	ldr	x28, [x8]
	ldp	w25, w26, [x28]
	ldr	w27, [x28, #8]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _GL_REPEAT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GL_REPEAT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_ASSERT
	ldr	x8, [x24, #8]
Lloh3:
	adrp	x9, _GL_REPEAT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GL_REPEAT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_ASSERT
	ldr	x8, [x28, #16]
	cmp	x8, #0
	cset	w0, eq
	bl	_ASSERT
	ldr	x8, [x28, #24]
Lloh6:
	adrp	x9, _GL_RGBA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _GL_RGBA@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_ASSERT
	cbz	x23, LBB0_3
; %bb.1:
	ldp	x9, x8, [x29, #16]
	mov	w11, #1073741823
	add	w10, w25, w11
	add	w11, w26, w11
	ldr	x12, [x28, #32]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x22], #4
	mul	w13, w13, w25
	ldr	w14, [x21], #4
	mul	w14, w14, w26
	and	w13, w13, w10
	and	w14, w14, w11
	lsl	w14, w14, w27
	orr	w13, w14, w13
	lsl	w13, w13, #2
	add	x13, x12, w13, sxtw #2
	ldr	w14, [x13]
	str	w14, [x20], #4
	ldr	w14, [x13, #4]
	str	w14, [x19], #4
	ldr	w14, [x13, #8]
	str	w14, [x9], #4
	ldr	w13, [x13, #12]
	str	w13, [x8], #4
	subs	x23, x23, #1
	b.ne	LBB0_2
LBB0_3:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_REPEAT,8,3                  ; @GL_REPEAT
	.comm	_GL_RGBA,8,3                    ; @GL_RGBA
	.no_dead_strip	_opt_sample_rgba_2d
.subsections_via_symbols
