	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_tex_resource
_set_tex_resource:                      ## @set_tex_resource
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %ebx
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movl	%esi, %r12d
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	cmpl	$2, %r14d
	movl	$1, %r15d
	cmovgel	%r14d, %r15d
	shll	$5, %ebx
	addl	$-256, %ebx
	andl	$-256, %ebx
	shll	$19, %r13d
	addl	$-524288, %r13d                 ## imm = 0xFFF80000
	orl	%ebx, %r13d
	orl	$1, %r13d
	shll	$26, %r12d
	decl	%r15d
	orl	%r12d, %r15d
	movl	$9, %edi
	callq	_BEGIN_RING
	movq	_R600_IT_SET_RESOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$7, %esi
	callq	_CP_PACKET3
	movl	%eax, %edi
	callq	_OUT_RING
	xorl	%edi, %edi
	callq	_OUT_RING
	movl	%r13d, %edi
	callq	_OUT_RING
	movl	%r15d, %edi
	callq	_OUT_RING
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	sarl	$8, %ebx
	movl	%ebx, %edi
	callq	_OUT_RING
	movl	%ebx, %edi
	callq	_OUT_RING
	movl	$109592576, %edi                ## imm = 0x6884000
	callq	_OUT_RING
	xorl	%edi, %edi
	callq	_OUT_RING
	movq	_R600_SQ_TEX_VTX_VALID_TEXTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$30, %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ADVANCE_RING                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_LOCALS,4,2                ## @RING_LOCALS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_R600_IT_SET_RESOURCE,4,2       ## @R600_IT_SET_RESOURCE
	.comm	_R600_SQ_TEX_VTX_VALID_TEXTURE,4,2 ## @R600_SQ_TEX_VTX_VALID_TEXTURE
	.no_dead_strip	_set_tex_resource
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_tex_resource
_set_tex_resource:                      ; @set_tex_resource
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	cmp	w21, #1
	csinc	w8, w21, wzr, gt
	lsl	w9, w20, #5
	sub	w9, w9, #256
	and	w9, w9, #0xffffff00
	lsl	w10, w22, #19
	sub	w10, w10, #128, lsl #12         ; =524288
	orr	w9, w10, w9
	orr	w20, w9, #0x1
	sub	w8, w8, #1
	orr	w21, w8, w23, lsl #26
	mov	w0, #9
	bl	_BEGIN_RING
Lloh2:
	adrp	x8, _R600_IT_SET_RESOURCE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R600_IT_SET_RESOURCE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	w1, #7
	bl	_CP_PACKET3
	bl	_OUT_RING
	mov	w0, #0
	bl	_OUT_RING
	mov	x0, x20
	bl	_OUT_RING
	mov	x0, x21
	bl	_OUT_RING
	asr	w19, w19, #8
	mov	x0, x19
	bl	_OUT_RING
	mov	x0, x19
	bl	_OUT_RING
	mov	w0, #16384
	movk	w0, #1672, lsl #16
	bl	_OUT_RING
	mov	w0, #0
	bl	_OUT_RING
Lloh5:
	adrp	x8, _R600_SQ_TEX_VTX_VALID_TEXTURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _R600_SQ_TEX_VTX_VALID_TEXTURE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	lsl	w0, w8, #30
	bl	_OUT_RING
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ADVANCE_RING
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_LOCALS,4,2                ; @RING_LOCALS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_R600_IT_SET_RESOURCE,4,2       ; @R600_IT_SET_RESOURCE
	.comm	_R600_SQ_TEX_VTX_VALID_TEXTURE,4,2 ; @R600_SQ_TEX_VTX_VALID_TEXTURE
	.no_dead_strip	_set_tex_resource
.subsections_via_symbols
