	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function gl_set_texture_sampler
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_gl_set_texture_sampler
	.p2align	4, 0x90
_gl_set_texture_sampler:                ## @gl_set_texture_sampler
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpl	$0, 48(%rdi)
	je	LBB0_1
## %bb.3:
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	cmpq	%rcx, %rax
	je	LBB0_9
## %bb.4:
	movq	_GL_LINEAR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.5:
	movq	_GL_NEAREST_MIPMAP_NEAREST@GOTPCREL(%rip), %rdx
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	cmpq	(%rdx), %rax
	je	LBB0_8
## %bb.6:
	movq	_GL_LINEAR_MIPMAP_NEAREST@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_8
LBB0_7:
	xorps	%xmm0, %xmm0
LBB0_8:
	movss	%xmm0, 16(%rbx)
LBB0_9:
	movl	20(%rbx), %edx
	cmpl	$2, %edx
	je	LBB0_17
## %bb.10:
	cmpl	$1, %edx
	jne	LBB0_30
## %bb.11:
	cmpq	%rcx, %rax
	jne	LBB0_12
## %bb.14:
	movq	_GL_LINEAR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.15:
	movq	_sample_linear_1d@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_1:
	movq	$0, 24(%rbx)
	jmp	LBB0_2
LBB0_17:
	cmpq	%rcx, %rax
	jne	LBB0_18
## %bb.19:
	movq	_GL_LINEAR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.20:
	movq	_sample_linear_2d@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_30:
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_gl_problem                     ## TAILCALL
LBB0_12:
	movq	_sample_lambda_1d@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_18:
	movq	_sample_lambda_2d@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_16:
	movq	_GL_NEAREST@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_ASSERT
	movq	_sample_nearest_1d@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_21:
	movq	_GL_NEAREST@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_ASSERT
	movl	44(%rbx), %eax
	movq	_GL_REPEAT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_29
## %bb.22:
	cmpl	%eax, 40(%rbx)
	jne	LBB0_29
## %bb.23:
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	cmpl	$0, 4(%rax)
	jne	LBB0_26
## %bb.24:
	movl	(%rax), %eax
	movq	_GL_RGB@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_26
## %bb.25:
	movq	_opt_sample_rgb_2d@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_26:
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	cmpl	$0, 4(%rax)
	jne	LBB0_29
## %bb.27:
	movl	(%rax), %eax
	movq	_GL_RGBA@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_29
## %bb.28:
	movq	_opt_sample_rgba_2d@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_29:
	movq	_sample_nearest_2d@GOTPCREL(%rip), %rax
LBB0_13:
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GL_LINEAR,8,3                  ## @GL_LINEAR
	.comm	_GL_NEAREST_MIPMAP_NEAREST,8,3  ## @GL_NEAREST_MIPMAP_NEAREST
	.comm	_GL_LINEAR_MIPMAP_NEAREST,8,3   ## @GL_LINEAR_MIPMAP_NEAREST
	.comm	_sample_lambda_1d,8,3           ## @sample_lambda_1d
	.comm	_sample_linear_1d,8,3           ## @sample_linear_1d
	.comm	_GL_NEAREST,8,3                 ## @GL_NEAREST
	.comm	_sample_nearest_1d,8,3          ## @sample_nearest_1d
	.comm	_sample_lambda_2d,8,3           ## @sample_lambda_2d
	.comm	_sample_linear_2d,8,3           ## @sample_linear_2d
	.comm	_GL_REPEAT,4,2                  ## @GL_REPEAT
	.comm	_GL_RGB,4,2                     ## @GL_RGB
	.comm	_opt_sample_rgb_2d,8,3          ## @opt_sample_rgb_2d
	.comm	_GL_RGBA,4,2                    ## @GL_RGBA
	.comm	_opt_sample_rgba_2d,8,3         ## @opt_sample_rgba_2d
	.comm	_sample_nearest_2d,8,3          ## @sample_nearest_2d
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid dimensions in gl_set_texture_sampler"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gl_set_texture_sampler         ; -- Begin function gl_set_texture_sampler
	.p2align	2
_gl_set_texture_sampler:                ; @gl_set_texture_sampler
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0, #48]
	cbz	w8, LBB0_11
; %bb.1:
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.2:
Lloh0:
	adrp	x10, _GL_LINEAR@GOTPAGE
Lloh1:
	ldr	x10, [x10, _GL_LINEAR@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x10, _GL_NEAREST_MIPMAP_NEAREST@GOTPAGE
Lloh4:
	ldr	x10, [x10, _GL_NEAREST_MIPMAP_NEAREST@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _GL_LINEAR_MIPMAP_NEAREST@GOTPAGE
Lloh7:
	ldr	x11, [x11, _GL_LINEAR_MIPMAP_NEAREST@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	fmov	s0, #0.50000000
	cmp	x8, x10
	ccmp	x8, x11, #4, ne
	b.eq	LBB0_5
LBB0_4:
	movi	d0, #0000000000000000
LBB0_5:
	str	s0, [x19, #16]
LBB0_6:
	ldr	w10, [x19, #20]
	cmp	w10, #2
	b.eq	LBB0_12
; %bb.7:
	cmp	w10, #1
	b.ne	LBB0_15
; %bb.8:
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.9:
Lloh9:
	adrp	x9, _GL_LINEAR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GL_LINEAR@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.10:
Lloh12:
	adrp	x8, _sample_linear_1d@GOTPAGE
Lloh13:
	ldr	x8, [x8, _sample_linear_1d@GOTPAGEOFF]
	b	LBB0_28
LBB0_11:
	str	xzr, [x19, #24]
	b	LBB0_29
LBB0_12:
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.13:
Lloh14:
	adrp	x9, _GL_LINEAR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _GL_LINEAR@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.14:
Lloh17:
	adrp	x8, _sample_linear_2d@GOTPAGE
Lloh18:
	ldr	x8, [x8, _sample_linear_2d@GOTPAGEOFF]
	b	LBB0_28
LBB0_15:
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gl_problem
LBB0_16:
Lloh21:
	adrp	x8, _sample_lambda_1d@GOTPAGE
Lloh22:
	ldr	x8, [x8, _sample_lambda_1d@GOTPAGEOFF]
	b	LBB0_28
LBB0_17:
Lloh23:
	adrp	x8, _sample_lambda_2d@GOTPAGE
Lloh24:
	ldr	x8, [x8, _sample_lambda_2d@GOTPAGEOFF]
	b	LBB0_28
LBB0_18:
Lloh25:
	adrp	x9, _GL_NEAREST@GOTPAGE
Lloh26:
	ldr	x9, [x9, _GL_NEAREST@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_ASSERT
Lloh28:
	adrp	x8, _sample_nearest_1d@GOTPAGE
Lloh29:
	ldr	x8, [x8, _sample_nearest_1d@GOTPAGEOFF]
	b	LBB0_28
LBB0_19:
Lloh30:
	adrp	x9, _GL_NEAREST@GOTPAGE
Lloh31:
	ldr	x9, [x9, _GL_NEAREST@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_ASSERT
	ldr	w8, [x19, #44]
Lloh33:
	adrp	x9, _GL_REPEAT@GOTPAGE
Lloh34:
	ldr	x9, [x9, _GL_REPEAT@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_27
; %bb.20:
	ldr	w9, [x19, #40]
	cmp	w9, w8
	b.ne	LBB0_27
; %bb.21:
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	w9, [x8, #4]
	cbnz	w9, LBB0_24
; %bb.22:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _GL_RGB@GOTPAGE
Lloh37:
	ldr	x9, [x9, _GL_RGB@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_24
; %bb.23:
Lloh39:
	adrp	x8, _opt_sample_rgb_2d@GOTPAGE
Lloh40:
	ldr	x8, [x8, _opt_sample_rgb_2d@GOTPAGEOFF]
	b	LBB0_28
LBB0_24:
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	w9, [x8, #4]
	cbnz	w9, LBB0_27
; %bb.25:
	ldr	w8, [x8]
Lloh41:
	adrp	x9, _GL_RGBA@GOTPAGE
Lloh42:
	ldr	x9, [x9, _GL_RGBA@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_27
; %bb.26:
Lloh44:
	adrp	x8, _opt_sample_rgba_2d@GOTPAGE
Lloh45:
	ldr	x8, [x8, _opt_sample_rgba_2d@GOTPAGEOFF]
	b	LBB0_28
LBB0_27:
Lloh46:
	adrp	x8, _sample_nearest_2d@GOTPAGE
Lloh47:
	ldr	x8, [x8, _sample_nearest_2d@GOTPAGEOFF]
LBB0_28:
	ldr	x8, [x8]
	str	x8, [x19, #24]
LBB0_29:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_GL_LINEAR,8,3                  ; @GL_LINEAR
	.comm	_GL_NEAREST_MIPMAP_NEAREST,8,3  ; @GL_NEAREST_MIPMAP_NEAREST
	.comm	_GL_LINEAR_MIPMAP_NEAREST,8,3   ; @GL_LINEAR_MIPMAP_NEAREST
	.comm	_sample_lambda_1d,8,3           ; @sample_lambda_1d
	.comm	_sample_linear_1d,8,3           ; @sample_linear_1d
	.comm	_GL_NEAREST,8,3                 ; @GL_NEAREST
	.comm	_sample_nearest_1d,8,3          ; @sample_nearest_1d
	.comm	_sample_lambda_2d,8,3           ; @sample_lambda_2d
	.comm	_sample_linear_2d,8,3           ; @sample_linear_2d
	.comm	_GL_REPEAT,4,2                  ; @GL_REPEAT
	.comm	_GL_RGB,4,2                     ; @GL_RGB
	.comm	_opt_sample_rgb_2d,8,3          ; @opt_sample_rgb_2d
	.comm	_GL_RGBA,4,2                    ; @GL_RGBA
	.comm	_opt_sample_rgba_2d,8,3         ; @opt_sample_rgba_2d
	.comm	_sample_nearest_2d,8,3          ; @sample_nearest_2d
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid dimensions in gl_set_texture_sampler"

.subsections_via_symbols
