	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function instr_ps_1_4_texld
_instr_ps_1_4_texld:                    ## @instr_ps_1_4_texld
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rsi), %rax
	movq	16(%rax), %rsi
	movq	_BWRITERSPR_SAMPLER@GOTPCREL(%rip), %rcx
	movl	24(%rax), %edx
	cmpq	(%rcx), %rsi
	jne	LBB0_2
## %bb.1:
	cmpl	$6, %edx
	jge	LBB0_2
## %bb.4:
	movq	16(%rbx), %rax
	movq	_BWRITERSPR_TEMP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movl	24(%rbx), %eax
	cmpl	%eax, %edx
	jne	LBB0_7
## %bb.8:
	leaq	16(%rbx), %r12
	movq	(%r15), %rax
	movq	_D3DSIO_TEX@GOTPCREL(%rip), %rcx
	movq	_D3DSI_OPCODE_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rcx), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rcx
	callq	*16(%rax)
	movq	(%r15), %rax
	movl	8(%rbx), %r8d
	movl	12(%rbx), %ecx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	*8(%rax)
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_2:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_WARN
	jmp	LBB0_3
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_WARN
	jmp	LBB0_3
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	movl	%edx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_WARN
LBB0_3:
	movq	_E_INVALIDARG@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BWRITERSPR_SAMPLER,8,3         ## @BWRITERSPR_SAMPLER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported sampler type %u regnum %u\n"

	.comm	_E_INVALIDARG,8,3               ## @E_INVALIDARG
	.comm	_BWRITERSPR_TEMP,8,3            ## @BWRITERSPR_TEMP
L_.str.1:                               ## @.str.1
	.asciz	"Can only sample into a temp register\n"

L_.str.2:                               ## @.str.2
	.asciz	"Sampling from sampler s%u to register r%u is not possible in ps_1_4\n"

	.comm	_D3DSIO_TEX,4,2                 ## @D3DSIO_TEX
	.comm	_D3DSI_OPCODE_MASK,4,2          ## @D3DSI_OPCODE_MASK
	.no_dead_strip	_instr_ps_1_4_texld
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function instr_ps_1_4_texld
_instr_ps_1_4_texld:                    ; @instr_ps_1_4_texld
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x8, [x1]
	ldr	x9, [x8, #16]
Lloh0:
	adrp	x10, _BWRITERSPR_SAMPLER@GOTPAGE
Lloh1:
	ldr	x10, [x10, _BWRITERSPR_SAMPLER@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	ldr	w8, [x8, #24]
	cmp	x9, x10
	ccmp	w8, #6, #0, eq
	b.lt	LBB0_2
; %bb.1:
	stp	x9, x8, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_2:
	mov	x21, x1
	mov	x22, x1
	ldr	x9, [x22, #16]!
Lloh5:
	adrp	x10, _BWRITERSPR_TEMP@GOTPAGE
Lloh6:
	ldr	x10, [x10, _BWRITERSPR_TEMP@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
; %bb.3:
	ldr	w9, [x21, #24]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.4:
	mov	x20, x2
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _D3DSIO_TEX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _D3DSIO_TEX@GOTPAGEOFF]
	ldr	x8, [x8, #16]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _D3DSI_OPCODE_MASK@GOTPAGE
Lloh12:
	ldr	x10, [x10, _D3DSI_OPCODE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	and	w2, w10, w9
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	blr	x8
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	ldp	w4, w3, [x21, #8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	blr	x8
	ldr	x8, [x19]
	ldr	x3, [x8]
	ldr	x1, [x21]
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	br	x3
LBB0_5:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	stp	x8, x9, [sp]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_WARN
Lloh18:
	adrp	x8, _E_INVALIDARG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _E_INVALIDARG@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_BWRITERSPR_SAMPLER,8,3         ; @BWRITERSPR_SAMPLER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported sampler type %u regnum %u\n"

	.comm	_E_INVALIDARG,8,3               ; @E_INVALIDARG
	.comm	_BWRITERSPR_TEMP,8,3            ; @BWRITERSPR_TEMP
l_.str.1:                               ; @.str.1
	.asciz	"Can only sample into a temp register\n"

l_.str.2:                               ; @.str.2
	.asciz	"Sampling from sampler s%u to register r%u is not possible in ps_1_4\n"

	.comm	_D3DSIO_TEX,4,2                 ; @D3DSIO_TEX
	.comm	_D3DSI_OPCODE_MASK,4,2          ; @D3DSI_OPCODE_MASK
	.no_dead_strip	_instr_ps_1_4_texld
.subsections_via_symbols
