	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_si_ring_ib_execute             ## -- Begin function si_ring_ib_execute
	.p2align	4, 0x90
_si_ring_ib_execute:                    ## @si_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), %r12
	movq	(%rsi), %rax
	leaq	(%rax,%rax,2), %r13
	leaq	(%r12,%r13,4), %rbx
	cmpq	$0, 24(%rsi)
	je	LBB0_2
## %bb.1:
	movq	_PACKET3_SWITCH_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_PACKET3
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_radeon_ring_write
	movq	_PACKET3_INDIRECT_BUFFER_CONST@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	cmpl	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	movl	4(%r12,%r13,4), %r15d
	addl	$15, %r15d
	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	(%rbx), %esi
	movq	_PACKET3_SET_CONFIG_REG_START@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	sarl	$2, %esi
	jmp	LBB0_6
LBB0_4:
	cmpq	$0, (%rdi)
	je	LBB0_7
## %bb.5:
	movl	4(%r12,%r13,4), %r15d
	addl	$17, %r15d
	movq	_PACKET3_WRITE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_PACKET3
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movq	%rbx, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_radeon_ring_write
	movl	8(%r12,%r13,4), %esi
	andl	$-4, %esi
	movq	%rbx, %rdi
	callq	_radeon_ring_write
	movl	8(%r12,%r13,4), %edi
	callq	_upper_32_bits
	movl	%eax, %esi
LBB0_6:
	movq	%rbx, %rdi
	callq	_radeon_ring_write
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_radeon_ring_write
LBB0_7:
	movq	_PACKET3_INDIRECT_BUFFER@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edi
	movl	$2, %esi
	callq	_PACKET3
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movl	8(%r14), %esi
	andl	$-4, %esi
	movq	%rbx, %rdi
	callq	_radeon_ring_write
	movl	8(%r14), %edi
	callq	_upper_32_bits
	movzwl	%ax, %esi
	movq	%rbx, %rdi
	callq	_radeon_ring_write
	movl	12(%r14), %eax
	movq	16(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.10:
	movl	(%rcx), %esi
	shll	$24, %esi
	jmp	LBB0_11
LBB0_9:
	xorl	%esi, %esi
LBB0_11:
	orl	%eax, %esi
	movq	%rbx, %rdi
	callq	_radeon_ring_write
	cmpq	$0, 24(%r14)
	je	LBB0_12
## %bb.16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	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(%r14), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movl	(%rax), %esi
	jmp	LBB0_15
LBB0_13:
	xorl	%esi, %esi
LBB0_15:
	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_TCL1_ACTION_ENA@GOTPCREL(%rip), %rax
	movq	_PACKET3_TC_ACTION_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_PACKET3_SH_KCACHE_ACTION_ENA@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_PACKET3_SH_ICACHE_ACTION_ENA@GOTPCREL(%rip), %rax
	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_SWITCH_BUFFER,4,2      ## @PACKET3_SWITCH_BUFFER
	.comm	_PACKET3_INDIRECT_BUFFER_CONST,4,2 ## @PACKET3_INDIRECT_BUFFER_CONST
	.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_WRITE_DATA,4,2         ## @PACKET3_WRITE_DATA
	.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_TCL1_ACTION_ENA,4,2    ## @PACKET3_TCL1_ACTION_ENA
	.comm	_PACKET3_TC_ACTION_ENA,4,2      ## @PACKET3_TC_ACTION_ENA
	.comm	_PACKET3_SH_KCACHE_ACTION_ENA,4,2 ## @PACKET3_SH_KCACHE_ACTION_ENA
	.comm	_PACKET3_SH_ICACHE_ACTION_ENA,4,2 ## @PACKET3_SH_ICACHE_ACTION_ENA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_si_ring_ib_execute             ; -- Begin function si_ring_ib_execute
	.p2align	2
_si_ring_ib_execute:                    ; @si_ring_ib_execute
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	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:
Lloh0:
	adrp	x8, _PACKET3_SWITCH_BUFFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PACKET3_SWITCH_BUFFER@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, #0
	bl	_radeon_ring_write
Lloh3:
	adrp	x8, _PACKET3_INDIRECT_BUFFER_CONST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PACKET3_INDIRECT_BUFFER_CONST@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	ldr	w10, [x19]
	cbz	w10, LBB0_4
; %bb.3:
	mov	w10, #12
	madd	x8, x9, x10, x8
	ldr	w8, [x8, #4]
	add	w21, w8, #15
Lloh5:
	adrp	x8, _PACKET3_SET_CONFIG_REG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PACKET3_SET_CONFIG_REG@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
	ldr	w8, [x19]
Lloh8:
	adrp	x9, _PACKET3_SET_CONFIG_REG_START@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PACKET3_SET_CONFIG_REG_START@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	sub	w8, w8, w9
	asr	w1, w8, #2
	b	LBB0_6
LBB0_4:
	ldr	x10, [x0]
	cbz	x10, LBB0_7
; %bb.5:
	mov	w10, #12
	madd	x22, x9, x10, x8
	ldr	w8, [x22, #4]
	add	w21, w8, #17
Lloh11:
	adrp	x8, _PACKET3_WRITE_DATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PACKET3_WRITE_DATA@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	w1, #3
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
	mov	x0, x19
	mov	w1, #256
	bl	_radeon_ring_write
	ldr	w8, [x22, #8]
	and	w1, w8, #0xfffffffc
	mov	x0, x19
	bl	_radeon_ring_write
	ldr	w0, [x22, #8]
	bl	_upper_32_bits
	mov	x1, x0
LBB0_6:
	mov	x0, x19
	bl	_radeon_ring_write
	mov	x0, x19
	mov	x1, x21
	bl	_radeon_ring_write
LBB0_7:
Lloh14:
	adrp	x8, _PACKET3_INDIRECT_BUFFER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PACKET3_INDIRECT_BUFFER@GOTPAGEOFF]
LBB0_8:
	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, #0xffff
	mov	x0, x19
	bl	_radeon_ring_write
	ldr	w8, [x20, #12]
	ldr	x9, [x20, #16]
	cbz	x9, LBB0_10
; %bb.9:
	ldr	w9, [x9]
	lsl	w9, w9, #24
LBB0_10:
	orr	w1, w9, w8
	mov	x0, x19
	bl	_radeon_ring_write
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh16:
	adrp	x8, _PACKET3_SET_CONFIG_REG@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PACKET3_SET_CONFIG_REG@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
Lloh19:
	adrp	x8, _CP_COHER_CNTL2@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CP_COHER_CNTL2@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _PACKET3_SET_CONFIG_REG_START@GOTPAGE
Lloh23:
	ldr	x9, [x9, _PACKET3_SET_CONFIG_REG_START@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	sub	w8, w8, w9
	asr	w1, w8, #2
	mov	x0, x19
	bl	_radeon_ring_write
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	w1, [x8]
	b	LBB0_15
LBB0_14:
	mov	w1, #0
LBB0_15:
	mov	x0, x19
	bl	_radeon_ring_write
Lloh25:
	adrp	x8, _PACKET3_SURFACE_SYNC@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PACKET3_SURFACE_SYNC@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	mov	w1, #3
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
Lloh28:
	adrp	x8, _PACKET3_TCL1_ACTION_ENA@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PACKET3_TCL1_ACTION_ENA@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _PACKET3_TC_ACTION_ENA@GOTPAGE
Lloh32:
	ldr	x9, [x9, _PACKET3_TC_ACTION_ENA@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh34:
	adrp	x9, _PACKET3_SH_KCACHE_ACTION_ENA@GOTPAGE
Lloh35:
	ldr	x9, [x9, _PACKET3_SH_KCACHE_ACTION_ENA@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh37:
	adrp	x9, _PACKET3_SH_ICACHE_ACTION_ENA@GOTPAGE
Lloh38:
	ldr	x9, [x9, _PACKET3_SH_ICACHE_ACTION_ENA@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	orr	w1, w8, w9
	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, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_radeon_ring_write
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_PACKET3_SWITCH_BUFFER,4,2      ; @PACKET3_SWITCH_BUFFER
	.comm	_PACKET3_INDIRECT_BUFFER_CONST,4,2 ; @PACKET3_INDIRECT_BUFFER_CONST
	.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_WRITE_DATA,4,2         ; @PACKET3_WRITE_DATA
	.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_TCL1_ACTION_ENA,4,2    ; @PACKET3_TCL1_ACTION_ENA
	.comm	_PACKET3_TC_ACTION_ENA,4,2      ; @PACKET3_TC_ACTION_ENA
	.comm	_PACKET3_SH_KCACHE_ACTION_ENA,4,2 ; @PACKET3_SH_KCACHE_ACTION_ENA
	.comm	_PACKET3_SH_ICACHE_ACTION_ENA,4,2 ; @PACKET3_SH_ICACHE_ACTION_ENA
.subsections_via_symbols
