	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cik_ring_ib_execute            ## -- Begin function cik_ring_ib_execute
	.p2align	4, 0x90
_cik_ring_ib_execute:                   ## @cik_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, %r14
	movq	8(%rdi), %rbx
	movq	(%rsi), %rax
	movq	24(%rsi), %rcx
	leaq	(%rax,%rax,2), %r13
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.2:
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %eax
	shll	$24, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	leaq	(%rbx,%r13,4), %r12
	movq	_INDIRECT_BUFFER_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	cmpq	$0, 16(%r14)
	je	LBB0_5
## %bb.4:
	movq	_PACKET3_SWITCH_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_PACKET3
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_radeon_ring_write
	movq	_PACKET3_INDIRECT_BUFFER_CONST@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_5:
	cmpl	$0, (%r12)
	je	LBB0_7
## %bb.6:
	movl	4(%rbx,%r13,4), %ebx
	addl	$7, %ebx
	movq	_PACKET3_SET_UCONFIG_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_PACKET3
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movl	(%r12), %esi
	movq	_PACKET3_SET_UCONFIG_REG_START@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	sarl	$2, %esi
	jmp	LBB0_9
LBB0_7:
	cmpq	$0, (%rdi)
	je	LBB0_10
## %bb.8:
	movl	4(%rbx,%r13,4), %eax
	addl	$9, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_PACKET3_WRITE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_PACKET3
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movl	$1, %edi
	callq	_WRITE_DATA_DST_SEL
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movl	8(%rbx,%r13,4), %esi
	andl	$-4, %esi
	movq	%r12, %rdi
	callq	_radeon_ring_write
	movl	8(%rbx,%r13,4), %edi
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	callq	_upper_32_bits
	movl	%eax, %esi
LBB0_9:
	movq	%r12, %rdi
	callq	_radeon_ring_write
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_radeon_ring_write
LBB0_10:
	movq	_PACKET3_INDIRECT_BUFFER@GOTPCREL(%rip), %rax
LBB0_11:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	(%rax), %edi
	movl	$2, %esi
	callq	_PACKET3
	orl	%ebx, %r15d
	orl	8(%r14), %r15d
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movl	12(%r14), %esi
	andl	$-4, %esi
	movq	%r12, %rdi
	callq	_radeon_ring_write
	movl	12(%r14), %edi
	callq	_upper_32_bits
	movzwl	%ax, %esi
	movq	%r12, %rdi
	callq	_radeon_ring_write
	movq	%r12, %rdi
	movl	%r15d, %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	_INDIRECT_BUFFER_VALID,4,2      ## @INDIRECT_BUFFER_VALID
	.comm	_PACKET3_SWITCH_BUFFER,4,2      ## @PACKET3_SWITCH_BUFFER
	.comm	_PACKET3_INDIRECT_BUFFER_CONST,4,2 ## @PACKET3_INDIRECT_BUFFER_CONST
	.comm	_PACKET3_SET_UCONFIG_REG,4,2    ## @PACKET3_SET_UCONFIG_REG
	.comm	_PACKET3_SET_UCONFIG_REG_START,4,2 ## @PACKET3_SET_UCONFIG_REG_START
	.comm	_PACKET3_WRITE_DATA,4,2         ## @PACKET3_WRITE_DATA
	.comm	_PACKET3_INDIRECT_BUFFER,4,2    ## @PACKET3_INDIRECT_BUFFER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cik_ring_ib_execute            ; -- Begin function cik_ring_ib_execute
	.p2align	2
_cik_ring_ib_execute:                   ; @cik_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, #8]
	ldr	x9, [x1]
	mov	w10, #12
	madd	x19, x9, x10, x8
	ldr	x10, [x1, #24]
	cbz	x10, LBB0_2
; %bb.1:
	ldr	x10, [x10]
	ldr	w10, [x10, x9, lsl #2]
	lsl	w22, w10, #24
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
Lloh0:
	adrp	x10, _INDIRECT_BUFFER_VALID@GOTPAGE
Lloh1:
	ldr	x10, [x10, _INDIRECT_BUFFER_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x10]
	ldr	x10, [x20, #16]
	cbz	x10, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _PACKET3_SWITCH_BUFFER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PACKET3_SWITCH_BUFFER@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
	mov	x0, x19
	mov	w1, #0
	bl	_radeon_ring_write
Lloh6:
	adrp	x8, _PACKET3_INDIRECT_BUFFER_CONST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PACKET3_INDIRECT_BUFFER_CONST@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
	ldr	w10, [x19]
	cbz	w10, LBB0_7
; %bb.6:
	mov	w10, #12
	madd	x8, x9, x10, x8
	ldr	w8, [x8, #4]
	add	w21, w8, #7
Lloh8:
	adrp	x8, _PACKET3_SET_UCONFIG_REG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PACKET3_SET_UCONFIG_REG@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _PACKET3_SET_UCONFIG_REG_START@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PACKET3_SET_UCONFIG_REG_START@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	sub	w8, w8, w9
	asr	w1, w8, #2
	b	LBB0_9
LBB0_7:
	ldr	x10, [x0]
	cbz	x10, LBB0_10
; %bb.8:
	mov	w10, #12
	madd	x24, x9, x10, x8
	ldr	w8, [x24, #4]
	add	w21, w8, #9
Lloh14:
	adrp	x8, _PACKET3_WRITE_DATA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PACKET3_WRITE_DATA@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	mov	w1, #3
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
	mov	w0, #1
	bl	_WRITE_DATA_DST_SEL
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
	ldr	w8, [x24, #8]
	and	w1, w8, #0xfffffffc
	mov	x0, x19
	bl	_radeon_ring_write
	ldr	w0, [x24, #8]
	bl	_upper_32_bits
	mov	x1, x0
LBB0_9:
	mov	x0, x19
	bl	_radeon_ring_write
	mov	x0, x19
	mov	x1, x21
	bl	_radeon_ring_write
LBB0_10:
Lloh17:
	adrp	x8, _PACKET3_INDIRECT_BUFFER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PACKET3_INDIRECT_BUFFER@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	mov	w1, #2
	bl	_PACKET3
	mov	x1, x0
	ldr	w8, [x20, #8]
	orr	w9, w23, w22
	orr	w21, w9, w8
	mov	x0, x19
	bl	_radeon_ring_write
	ldr	w8, [x20, #12]
	and	w1, w8, #0xfffffffc
	mov	x0, x19
	bl	_radeon_ring_write
	ldr	w0, [x20, #12]
	bl	_upper_32_bits
	and	w1, w0, #0xffff
	mov	x0, x19
	bl	_radeon_ring_write
	mov	x0, x19
	mov	x1, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_INDIRECT_BUFFER_VALID,4,2      ; @INDIRECT_BUFFER_VALID
	.comm	_PACKET3_SWITCH_BUFFER,4,2      ; @PACKET3_SWITCH_BUFFER
	.comm	_PACKET3_INDIRECT_BUFFER_CONST,4,2 ; @PACKET3_INDIRECT_BUFFER_CONST
	.comm	_PACKET3_SET_UCONFIG_REG,4,2    ; @PACKET3_SET_UCONFIG_REG
	.comm	_PACKET3_SET_UCONFIG_REG_START,4,2 ; @PACKET3_SET_UCONFIG_REG_START
	.comm	_PACKET3_WRITE_DATA,4,2         ; @PACKET3_WRITE_DATA
	.comm	_PACKET3_INDIRECT_BUFFER,4,2    ; @PACKET3_INDIRECT_BUFFER
.subsections_via_symbols
