	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shader_hw_texldl
_shader_hw_texldl:                      ## @shader_hw_texldl
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movq	8(%rax), %rax
	movl	(%rax), %r14d
	movq	_TEX_LOD@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	16(%rdi), %rsi
	leaq	-96(%rbp), %r15
	movq	%r15, %rdx
	callq	_shader_arb_get_dst_param
	movq	8(%rbx), %rsi
	leaq	-144(%rbp), %r12
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movq	%r12, %rcx
	callq	_shader_arb_get_src_param
	movl	(%rbx), %eax
	movq	_WINED3DSI_TEXLD_PROJECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	andl	%eax, %r8d
	je	LBB0_2
## %bb.1:
	movq	_TEX_PROJ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
LBB0_2:
	orl	%r13d, %r8d
	movq	_WINED3DSI_TEXLD_BIAS@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_4
## %bb.3:
	movq	_TEX_BIAS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	orl	%eax, %r8d
	movq	$0, (%rsp)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	movq	%r12, %rcx
	xorl	%r9d, %r9d
	callq	_shader_hw_sample
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TEX_LOD,4,2                    ## @TEX_LOD
	.comm	_WINED3DSI_TEXLD_PROJECT,4,2    ## @WINED3DSI_TEXLD_PROJECT
	.comm	_TEX_PROJ,4,2                   ## @TEX_PROJ
	.comm	_WINED3DSI_TEXLD_BIAS,4,2       ## @WINED3DSI_TEXLD_BIAS
	.comm	_TEX_BIAS,4,2                   ## @TEX_BIAS
	.no_dead_strip	_shader_hw_texldl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shader_hw_texldl
_shader_hw_texldl:                      ; @shader_hw_texldl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldp	x8, x1, [x0, #8]
	ldr	x8, [x8, #8]
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _TEX_LOD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TEX_LOD@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	add	x2, sp, #48
	bl	_shader_arb_get_dst_param
	ldr	x1, [x19, #8]
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_shader_arb_get_src_param
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _WINED3DSI_TEXLD_PROJECT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WINED3DSI_TEXLD_PROJECT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _TEX_PROJ@GOTPAGE
Lloh10:
	ldr	x10, [x10, _TEX_PROJ@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
	orr	w9, w9, w21
Lloh12:
	adrp	x10, _WINED3DSI_TEXLD_BIAS@GOTPAGE
Lloh13:
	ldr	x10, [x10, _WINED3DSI_TEXLD_BIAS@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _TEX_BIAS@GOTPAGE
Lloh16:
	ldr	x11, [x11, _TEX_BIAS@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w4, w9, w8
	add	x2, sp, #48
	add	x3, sp, #8
	mov	x0, x19
	mov	x1, x20
	mov	x5, #0
	mov	x6, #0
	bl	_shader_hw_sample
	ldur	x8, [x29, #-40]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TEX_LOD,4,2                    ; @TEX_LOD
	.comm	_WINED3DSI_TEXLD_PROJECT,4,2    ; @WINED3DSI_TEXLD_PROJECT
	.comm	_TEX_PROJ,4,2                   ; @TEX_PROJ
	.comm	_WINED3DSI_TEXLD_BIAS,4,2       ; @WINED3DSI_TEXLD_BIAS
	.comm	_TEX_BIAS,4,2                   ; @TEX_BIAS
	.no_dead_strip	_shader_hw_texldl
.subsections_via_symbols
