	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_vtx_resource
_set_vtx_resource:                      ## @set_vtx_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	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
	movl	$1120, %edi                     ## imm = 0x460
	callq	_OUT_RING
	movl	%r14d, %edi
	callq	_OUT_RING
	movl	$47, %edi
	callq	_OUT_RING
	callq	_OUT_RING
	movl	$1, %edi
	callq	_OUT_RING
	xorl	%edi, %edi
	callq	_OUT_RING
	xorl	%edi, %edi
	callq	_OUT_RING
	movq	_R600_SQ_TEX_VTX_VALID_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$30, %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_RING
	movq	_RADEON_FAMILY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15), %eax
	movq	_CHIP_RV610@GOTPCREL(%rip), %r8
	movq	_CHIP_RV620@GOTPCREL(%rip), %r9
	movq	_CHIP_RS780@GOTPCREL(%rip), %rcx
	movq	_CHIP_RS880@GOTPCREL(%rip), %rdx
	movq	_CHIP_RV710@GOTPCREL(%rip), %rbx
	movq	_R600_TC_ACTION_ENA@GOTPCREL(%rip), %rsi
	movq	%rsi, %rdi
	cmpl	(%rbx), %eax
	je	LBB0_2
## %bb.1:
	movq	_R600_VC_ACTION_ENA@GOTPCREL(%rip), %rdi
LBB0_2:
	cmpl	(%rdx), %eax
	cmoveq	%rsi, %rdi
	cmpl	(%rcx), %eax
	cmoveq	%rsi, %rdi
	cmpl	(%r9), %eax
	cmoveq	%rsi, %rdi
	cmpl	(%r8), %eax
	cmoveq	%rsi, %rdi
	movl	(%rdi), %esi
	movq	%r15, %rdi
	movl	$48, %edx
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cp_set_surface_sync            ## 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_BUFFER,4,2 ## @R600_SQ_TEX_VTX_VALID_BUFFER
	.comm	_RADEON_FAMILY_MASK,4,2         ## @RADEON_FAMILY_MASK
	.comm	_CHIP_RV610,4,2                 ## @CHIP_RV610
	.comm	_CHIP_RV620,4,2                 ## @CHIP_RV620
	.comm	_CHIP_RS780,4,2                 ## @CHIP_RS780
	.comm	_CHIP_RS880,4,2                 ## @CHIP_RS880
	.comm	_CHIP_RV710,4,2                 ## @CHIP_RV710
	.comm	_R600_TC_ACTION_ENA,4,2         ## @R600_TC_ACTION_ENA
	.comm	_R600_VC_ACTION_ENA,4,2         ## @R600_VC_ACTION_ENA
	.no_dead_strip	_set_vtx_resource
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_vtx_resource
_set_vtx_resource:                      ; @set_vtx_resource
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	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, #1120
	bl	_OUT_RING
	mov	x0, x19
	bl	_OUT_RING
	mov	w0, #47
	bl	_OUT_RING
	bl	_OUT_RING
	mov	w0, #1
	bl	_OUT_RING
	mov	w0, #0
	bl	_OUT_RING
	mov	w0, #0
	bl	_OUT_RING
Lloh5:
	adrp	x8, _R600_SQ_TEX_VTX_VALID_BUFFER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _R600_SQ_TEX_VTX_VALID_BUFFER@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	lsl	w0, w8, #30
	bl	_OUT_RING
	bl	_ADVANCE_RING
	ldr	w8, [x20]
Lloh8:
	adrp	x9, _RADEON_FAMILY_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RADEON_FAMILY_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh11:
	adrp	x9, _CHIP_RV610@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CHIP_RV610@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _CHIP_RV620@GOTPAGE
Lloh15:
	ldr	x10, [x10, _CHIP_RV620@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, _CHIP_RS780@GOTPAGE
Lloh18:
	ldr	x11, [x11, _CHIP_RS780@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
Lloh20:
	adrp	x12, _CHIP_RS880@GOTPAGE
Lloh21:
	ldr	x12, [x12, _CHIP_RS880@GOTPAGEOFF]
Lloh22:
	ldr	w12, [x12]
Lloh23:
	adrp	x13, _CHIP_RV710@GOTPAGE
Lloh24:
	ldr	x13, [x13, _CHIP_RV710@GOTPAGEOFF]
Lloh25:
	ldr	w13, [x13]
	cmp	w8, w13
	ccmp	w8, w12, #4, ne
	ccmp	w8, w11, #4, ne
	ccmp	w8, w10, #4, ne
	ccmp	w8, w9, #4, ne
Lloh26:
	adrp	x8, _R600_TC_ACTION_ENA@GOTPAGE
Lloh27:
	ldr	x8, [x8, _R600_TC_ACTION_ENA@GOTPAGEOFF]
Lloh28:
	adrp	x9, _R600_VC_ACTION_ENA@GOTPAGE
Lloh29:
	ldr	x9, [x9, _R600_VC_ACTION_ENA@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #48
	mov	x3, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cp_set_surface_sync
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.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_BUFFER,4,2 ; @R600_SQ_TEX_VTX_VALID_BUFFER
	.comm	_RADEON_FAMILY_MASK,4,2         ; @RADEON_FAMILY_MASK
	.comm	_CHIP_RV610,4,2                 ; @CHIP_RV610
	.comm	_CHIP_RV620,4,2                 ; @CHIP_RV620
	.comm	_CHIP_RS780,4,2                 ; @CHIP_RS780
	.comm	_CHIP_RS880,4,2                 ; @CHIP_RS880
	.comm	_CHIP_RV710,4,2                 ; @CHIP_RV710
	.comm	_R600_TC_ACTION_ENA,4,2         ; @R600_TC_ACTION_ENA
	.comm	_R600_VC_ACTION_ENA,4,2         ; @R600_VC_ACTION_ENA
	.no_dead_strip	_set_vtx_resource
.subsections_via_symbols
