	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_glsl_texldd
_shader_glsl_texldd:                    ## @shader_glsl_texldd
	.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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %r15
	movq	8(%rdi), %rax
	movl	24(%rax), %r14d
	movq	%r15, %rdi
	callq	_shader_glsl_has_core_grad
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	(%r15), %rax
	movq	_ARB_SHADER_TEXTURE_LOD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_3
LBB0_2:
	movq	(%rbx), %rdi
	movq	8(%rbx), %rax
	movq	16(%rax), %rax
	movl	(%rax), %r12d
	movq	_WINED3D_GLSL_SAMPLE_GRAD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-40(%rbp), %r15
	movl	%r12d, %esi
	movl	%r12d, %edx
	movq	%r15, %r8
	callq	_shader_glsl_get_sample_function
	movq	8(%rbx), %rsi
	movl	-36(%rbp), %edx
	leaq	-64(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_shader_glsl_add_src_param
	movq	8(%rbx), %rsi
	addq	$32, %rsi
	movl	-40(%rbp), %edx
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_shader_glsl_add_src_param
	movq	8(%rbx), %rsi
	addq	$48, %rsi
	movl	-40(%rbp), %edx
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_shader_glsl_add_src_param
	movl	-56(%rbp), %r8d
	movl	-48(%rbp), %r9d
	movl	-64(%rbp), %eax
	movl	%eax, 24(%rsp)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, 16(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_shader_glsl_gen_sample_code
	movq	(%rbx), %rdi
	movq	%r15, %rsi
	callq	_shader_glsl_release_sample_function
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
	movq	%rbx, %rdi
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_shader_glsl_tex                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ARB_SHADER_TEXTURE_LOD,8,3     ## @ARB_SHADER_TEXTURE_LOD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"texldd used, but not supported by hardware. Falling back to regular tex.\n"

	.comm	_WINED3D_GLSL_SAMPLE_GRAD,4,2   ## @WINED3D_GLSL_SAMPLE_GRAD
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.no_dead_strip	_shader_glsl_texldd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_glsl_texldd
_shader_glsl_texldd:                    ; @shader_glsl_texldd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	ldp	x8, x9, [x0]
	ldr	x21, [x8]
	ldr	w20, [x9, #24]
	mov	x0, x21
	bl	_shader_glsl_has_core_grad
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _ARB_SHADER_TEXTURE_LOD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ARB_SHADER_TEXTURE_LOD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_3
LBB0_2:
	ldp	x0, x8, [x19]
	ldr	x8, [x8, #16]
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _WINED3D_GLSL_SAMPLE_GRAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WINED3D_GLSL_SAMPLE_GRAD@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x4, sp, #16
	mov	x1, x21
	mov	x2, x21
	bl	_shader_glsl_get_sample_function
	ldr	x1, [x19, #8]
	ldr	w2, [sp, #20]
	add	x3, sp, #40
	mov	x0, x19
	bl	_shader_glsl_add_src_param
	ldr	x8, [x19, #8]
	add	x1, x8, #32
	ldr	w2, [sp, #16]
	add	x3, sp, #32
	mov	x0, x19
	bl	_shader_glsl_add_src_param
	ldr	x8, [x19, #8]
	add	x1, x8, #48
	ldr	w2, [sp, #16]
	add	x3, sp, #24
	mov	x0, x19
	bl	_shader_glsl_add_src_param
	ldr	w4, [sp, #32]
	ldr	w5, [sp, #24]
	ldr	w8, [sp, #40]
	str	w8, [sp, #8]
Lloh6:
	adrp	x8, l_.str.1@PAGE
Lloh7:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [sp]
	add	x2, sp, #16
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	mov	x6, #0
	mov	x7, #0
	bl	_shader_glsl_gen_sample_code
	ldr	x0, [x19]
	add	x1, sp, #16
	bl	_shader_glsl_release_sample_function
	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
	add	sp, sp, #96
	ret
LBB0_3:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
	mov	x0, x19
	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
	add	sp, sp, #96
	b	_shader_glsl_tex
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ARB_SHADER_TEXTURE_LOD,8,3     ; @ARB_SHADER_TEXTURE_LOD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"texldd used, but not supported by hardware. Falling back to regular tex.\n"

	.comm	_WINED3D_GLSL_SAMPLE_GRAD,4,2   ; @WINED3D_GLSL_SAMPLE_GRAD
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.no_dead_strip	_shader_glsl_texldd
.subsections_via_symbols
