	.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
	subq	$40, %rsp
	.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), %rcx
	movq	(%rsi), %r14
	movq	16(%rsi), %rax
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%r14,8), %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %r13d
	shll	$24, %r13d
	jmp	LBB0_3
LBB0_1:
	xorl	%r13d, %r13d
LBB0_3:
	movq	_PACKET3_FULL_CACHE_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_PACKET3_TC_ACTION_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_PACKET3_SH_ACTION_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_PACKET3_MODE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	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, (%rbx)
	je	LBB0_5
## %bb.4:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	4(%r12,%r14,8), %r13d
	addl	$15, %r13d
	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	(%r12,%r14,8), %esi
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	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	%r13d, %esi
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	callq	_radeon_ring_write
LBB0_5:
	orl	-52(%rbp), %r15d                ## 4-byte Folded Reload
	orl	-48(%rbp), %r15d                ## 4-byte Folded Reload
	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), %esi
	orl	%r13d, %esi
	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_ENGINE_ME@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_radeon_ring_write
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_radeon_ring_write
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_radeon_ring_write
	orl	$10, %r13d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_radeon_ring_write              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PACKET3_FULL_CACHE_ENA,4,2     ## @PACKET3_FULL_CACHE_ENA
	.comm	_PACKET3_TC_ACTION_ENA,4,2      ## @PACKET3_TC_ACTION_ENA
	.comm	_PACKET3_SH_ACTION_ENA,4,2      ## @PACKET3_SH_ACTION_ENA
	.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	_PACKET3_SURFACE_SYNC,4,2       ## @PACKET3_SURFACE_SYNC
	.comm	_PACKET3_ENGINE_ME,4,2          ## @PACKET3_ENGINE_ME
.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	ldr	x21, [x0]
	ldr	x26, [x1]
	add	x19, x21, x26, lsl #3
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8]
	ldr	w8, [x8, x26, lsl #2]
	lsl	w22, w8, #24
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
Lloh0:
	adrp	x8, _PACKET3_FULL_CACHE_ENA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PACKET3_FULL_CACHE_ENA@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _PACKET3_TC_ACTION_ENA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PACKET3_TC_ACTION_ENA@GOTPAGEOFF]
Lloh5:
	ldr	w24, [x8]
Lloh6:
	adrp	x8, _PACKET3_SH_ACTION_ENA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PACKET3_SH_ACTION_ENA@GOTPAGEOFF]
Lloh8:
	ldr	w25, [x8]
Lloh9:
	adrp	x8, _PACKET3_MODE_CONTROL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PACKET3_MODE_CONTROL@GOTPAGEOFF]
Lloh11:
	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]
	cbz	w8, LBB0_5
; %bb.4:
	add	x8, x21, x26, lsl #3
	ldr	w8, [x8, #4]
	add	w21, w8, #15
Lloh12:
	adrp	x8, _PACKET3_SET_CONFIG_REG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PACKET3_SET_CONFIG_REG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
	ldr	w8, [x19]
Lloh15:
	adrp	x9, _PACKET3_SET_CONFIG_REG_START@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PACKET3_SET_CONFIG_REG_START@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	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_5:
	orr	w8, w24, w23
	orr	w21, w8, w25
Lloh18:
	adrp	x8, _PACKET3_INDIRECT_BUFFER@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PACKET3_INDIRECT_BUFFER@GOTPAGEOFF]
Lloh20:
	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]
	orr	w1, w8, w22
	mov	x0, x19
	bl	_radeon_ring_write
Lloh21:
	adrp	x8, _PACKET3_SURFACE_SYNC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PACKET3_SURFACE_SYNC@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	w1, #3
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
Lloh24:
	adrp	x8, _PACKET3_ENGINE_ME@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PACKET3_ENGINE_ME@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	orr	w1, w21, 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	w8, #10
	orr	w1, w22, w8
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_radeon_ring_write
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_PACKET3_FULL_CACHE_ENA,4,2     ; @PACKET3_FULL_CACHE_ENA
	.comm	_PACKET3_TC_ACTION_ENA,4,2      ; @PACKET3_TC_ACTION_ENA
	.comm	_PACKET3_SH_ACTION_ENA,4,2      ; @PACKET3_SH_ACTION_ENA
	.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	_PACKET3_SURFACE_SYNC,4,2       ; @PACKET3_SURFACE_SYNC
	.comm	_PACKET3_ENGINE_ME,4,2          ; @PACKET3_ENGINE_ME
.subsections_via_symbols
