	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cayman_ring_ib_execute         ## -- Begin function cayman_ring_ib_execute
	.p2align	4, 0x90
_cayman_ring_ib_execute:                ## @cayman_ring_ib_execute
	.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
	movq	%rsi, %r12
	movq	(%rdi), %r13
	movq	(%rsi), %r14
	leaq	(,%r14,8), %rbx
	addq	%r13, %rbx
	movq	_PACKET3_MODE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_PACKET3
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_radeon_ring_write
	cmpl	$0, (%r13,%r14,8)
	je	LBB0_2
## %bb.1:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r13,%r14,8), %r12d
	addl	$15, %r12d
	movq	_PACKET3_SET_CONFIG_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_PACKET3
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movl	(%r13,%r14,8), %esi
	movq	_PACKET3_SET_CONFIG_REG_START@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	sarl	$2, %esi
	movq	%rbx, %rdi
	callq	_radeon_ring_write
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	callq	_radeon_ring_write
LBB0_2:
	movq	_PACKET3_INDIRECT_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$2, %esi
	callq	_PACKET3
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movl	8(%r12), %esi
	andl	$-4, %esi
	movq	%rbx, %rdi
	callq	_radeon_ring_write
	movl	8(%r12), %edi
	callq	_upper_32_bits
	movzbl	%al, %esi
	movq	%rbx, %rdi
	callq	_radeon_ring_write
	movl	12(%r12), %eax
	movq	16(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	movl	(%rcx), %r15d
	shll	$24, %r15d
LBB0_4:
	orl	%eax, %r15d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_radeon_ring_write
	movq	_PACKET3_SET_CONFIG_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_PACKET3
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movq	_CP_COHER_CNTL2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PACKET3_SET_CONFIG_REG_START@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	sarl	$2, %esi
	movq	%rbx, %rdi
	callq	_radeon_ring_write
	movq	16(%r12), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	(%rax), %esi
	jmp	LBB0_7
LBB0_5:
	xorl	%esi, %esi
LBB0_7:
	movq	%rbx, %rdi
	callq	_radeon_ring_write
	movq	_PACKET3_SURFACE_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_PACKET3
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movq	_PACKET3_TC_ACTION_ENA@GOTPCREL(%rip), %rax
	movq	_PACKET3_SH_ACTION_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_radeon_ring_write
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_radeon_ring_write
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_radeon_ring_write
	movq	%rbx, %rdi
	movl	$10, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_radeon_ring_write              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PACKET3_MODE_CONTROL,4,2       ## @PACKET3_MODE_CONTROL
	.comm	_PACKET3_SET_CONFIG_REG,4,2     ## @PACKET3_SET_CONFIG_REG
	.comm	_PACKET3_SET_CONFIG_REG_START,4,2 ## @PACKET3_SET_CONFIG_REG_START
	.comm	_PACKET3_INDIRECT_BUFFER,4,2    ## @PACKET3_INDIRECT_BUFFER
	.comm	_CP_COHER_CNTL2,4,2             ## @CP_COHER_CNTL2
	.comm	_PACKET3_SURFACE_SYNC,4,2       ## @PACKET3_SURFACE_SYNC
	.comm	_PACKET3_TC_ACTION_ENA,4,2      ## @PACKET3_TC_ACTION_ENA
	.comm	_PACKET3_SH_ACTION_ENA,4,2      ## @PACKET3_SH_ACTION_ENA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cayman_ring_ib_execute         ; -- Begin function cayman_ring_ib_execute
	.p2align	2
_cayman_ring_ib_execute:                ; @cayman_ring_ib_execute
	.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	x20, x1
	ldr	x8, [x0]
	ldr	x9, [x1]
	add	x19, x8, x9, lsl #3
Lloh0:
	adrp	x8, _PACKET3_MODE_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PACKET3_MODE_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
	mov	x0, x19
	mov	w1, #1
	bl	_radeon_ring_write
	ldr	w8, [x19]
Lloh3:
	adrp	x23, _PACKET3_SET_CONFIG_REG@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PACKET3_SET_CONFIG_REG@GOTPAGEOFF]
Lloh5:
	adrp	x22, _PACKET3_SET_CONFIG_REG_START@GOTPAGE
Lloh6:
	ldr	x22, [x22, _PACKET3_SET_CONFIG_REG_START@GOTPAGEOFF]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x19, #4]
	add	w21, w8, #15
	ldr	w0, [x23]
	mov	w1, #1
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
	ldr	w8, [x19]
	ldr	w9, [x22]
	sub	w8, w8, w9
	asr	w1, w8, #2
	mov	x0, x19
	bl	_radeon_ring_write
	mov	x0, x19
	mov	x1, x21
	bl	_radeon_ring_write
LBB0_2:
Lloh7:
	adrp	x8, _PACKET3_INDIRECT_BUFFER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PACKET3_INDIRECT_BUFFER@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	w1, #2
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
	ldr	w8, [x20, #8]
	and	w1, w8, #0xfffffffc
	mov	x0, x19
	bl	_radeon_ring_write
	ldr	w0, [x20, #8]
	bl	_upper_32_bits
	and	w1, w0, #0xff
	mov	x0, x19
	bl	_radeon_ring_write
	ldr	w8, [x20, #12]
	ldr	x9, [x20, #16]
	cbz	x9, LBB0_4
; %bb.3:
	ldr	w9, [x9]
	lsl	w9, w9, #24
LBB0_4:
	orr	w1, w9, w8
	mov	x0, x19
	bl	_radeon_ring_write
	ldr	w0, [x23]
	mov	w1, #1
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
Lloh10:
	adrp	x8, _CP_COHER_CNTL2@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CP_COHER_CNTL2@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x22]
	sub	w8, w8, w9
	asr	w1, w8, #2
	mov	x0, x19
	bl	_radeon_ring_write
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w1, [x8]
	b	LBB0_7
LBB0_6:
	mov	w1, #0
LBB0_7:
	mov	x0, x19
	bl	_radeon_ring_write
Lloh13:
	adrp	x8, _PACKET3_SURFACE_SYNC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PACKET3_SURFACE_SYNC@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	w1, #3
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
Lloh16:
	adrp	x8, _PACKET3_TC_ACTION_ENA@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PACKET3_TC_ACTION_ENA@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _PACKET3_SH_ACTION_ENA@GOTPAGE
Lloh20:
	ldr	x9, [x9, _PACKET3_SH_ACTION_ENA@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_radeon_ring_write
	mov	x0, x19
	mov	w1, #-1
	bl	_radeon_ring_write
	mov	x0, x19
	mov	w1, #0
	bl	_radeon_ring_write
	mov	x0, x19
	mov	w1, #10
	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	_radeon_ring_write
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PACKET3_MODE_CONTROL,4,2       ; @PACKET3_MODE_CONTROL
	.comm	_PACKET3_SET_CONFIG_REG,4,2     ; @PACKET3_SET_CONFIG_REG
	.comm	_PACKET3_SET_CONFIG_REG_START,4,2 ; @PACKET3_SET_CONFIG_REG_START
	.comm	_PACKET3_INDIRECT_BUFFER,4,2    ; @PACKET3_INDIRECT_BUFFER
	.comm	_CP_COHER_CNTL2,4,2             ; @CP_COHER_CNTL2
	.comm	_PACKET3_SURFACE_SYNC,4,2       ; @PACKET3_SURFACE_SYNC
	.comm	_PACKET3_TC_ACTION_ENA,4,2      ; @PACKET3_TC_ACTION_ENA
	.comm	_PACKET3_SH_ACTION_ENA,4,2      ; @PACKET3_SH_ACTION_ENA
.subsections_via_symbols
