	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sample_lambda_2d
_sample_lambda_2d:                      ## @sample_lambda_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.1:
	movq	40(%rbp), %r12
	movq	32(%rbp), %r13
	movq	24(%rbp), %r14
	movq	16(%rbp), %r15
	xorl	%ebx, %ebx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rdi), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rdx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %r8
	movq	%r14, %r9
	pushq	%r12
	pushq	%r13
	callq	_sample_2d_linear
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	addq	$16, %rsp
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	addq	$4, %r12
	addq	$4, %r13
	addq	$4, %r14
	addq	$4, %r15
	cmpq	%rbx, -72(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_17
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rcx
	cmpq	(%rdi), %rcx
	jle	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rdi), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rax,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rsi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %r8
	movq	%r14, %r9
	pushq	%r12
	pushq	%r13
	callq	_sample_2d_nearest_mipmap_nearest
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%rdi), %eax
	cmpl	$133, %eax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$130, %eax
	jne	LBB0_15
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rdi), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rdx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rcx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %r8
	movq	%r14, %r9
	pushq	%r12
	pushq	%r13
	callq	_sample_2d_nearest
	jmp	LBB0_6
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_gl_problem
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rsi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %r8
	movq	%r14, %r9
	pushq	%r12
	pushq	%r13
	callq	_sample_2d_nearest_mipmap_linear
	jmp	LBB0_6
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rsi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %r8
	movq	%r14, %r9
	pushq	%r12
	pushq	%r13
	callq	_sample_2d_linear_mipmap_nearest
	jmp	LBB0_6
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rsi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%rbx,8), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %r8
	movq	%r14, %r9
	pushq	%r12
	pushq	%r13
	callq	_sample_2d_linear_mipmap_linear
	jmp	LBB0_6
LBB0_17:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gl_problem                     ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_8
	.long	L0_0_set_13
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad min filter in sample_2d_texture"

L_.str.1:                               ## @.str.1
	.asciz	"Bad mag filter in sample_2d_texture"

	.no_dead_strip	_sample_lambda_2d
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sample_lambda_2d
_sample_lambda_2d:                      ; @sample_lambda_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
	cbz	x1, LBB0_15
; %bb.1:
	mov	x19, x7
	mov	x20, x6
	mov	x21, x5
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	ldp	x27, x26, [x29, #16]
Lloh0:
	adrp	x28, lJTI0_0@PAGE
Lloh1:
	add	x28, x28, lJTI0_0@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25, #16]
	ldr	w1, [x8]
	ldr	x2, [x23]
	ldr	x3, [x22]
	mov	x0, x25
	mov	x4, x20
	mov	x5, x19
	mov	x6, x27
	mov	x7, x26
	bl	_sample_2d_linear
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #4
	add	x27, x27, #4
	add	x19, x19, #4
	add	x20, x20, #4
	add	x22, x22, #8
	add	x23, x23, #8
	add	x21, x21, #8
	subs	x24, x24, #1
	b.eq	LBB0_15
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x3, [x21]
	ldr	x8, [x25]
	cmp	x3, x8
	b.le	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25, #8]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x9, LBB0_2
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x23]
	ldr	x2, [x22]
	mov	x0, x25
	mov	x4, x20
	mov	x5, x19
	mov	x6, x27
	mov	x7, x26
	bl	_sample_2d_nearest_mipmap_nearest
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25, #12]
	cmp	w8, #133
	b.eq	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #130
	b.ne	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25, #16]
	ldr	w1, [x8]
	ldr	x2, [x23]
	ldr	x3, [x22]
	mov	x0, x25
	mov	x4, x20
	mov	x5, x19
	mov	x6, x27
	mov	x7, x26
	bl	_sample_2d_nearest
	b	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, #0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_gl_problem
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x23]
	ldr	x2, [x22]
	mov	x0, x25
	mov	x4, x20
	mov	x5, x19
	mov	x6, x27
	mov	x7, x26
	bl	_sample_2d_nearest_mipmap_linear
	b	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x23]
	ldr	x2, [x22]
	mov	x0, x25
	mov	x4, x20
	mov	x5, x19
	mov	x6, x27
	mov	x7, x26
	bl	_sample_2d_linear_mipmap_nearest
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x23]
	ldr	x2, [x22]
	mov	x0, x25
	mov	x4, x20
	mov	x5, x19
	mov	x6, x27
	mov	x7, x26
	bl	_sample_2d_linear_mipmap_linear
	b	LBB0_3
LBB0_15:
	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_16:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, #0
	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
	b	_gl_problem
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad min filter in sample_2d_texture"

l_.str.1:                               ; @.str.1
	.asciz	"Bad mag filter in sample_2d_texture"

	.no_dead_strip	_sample_lambda_2d
.subsections_via_symbols
