	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cik_sdma_ring_ib_execute       ## -- Begin function cik_sdma_ring_ib_execute
	.p2align	4, 0x90
_cik_sdma_ring_ib_execute:              ## @cik_sdma_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), %r13
	movq	(%rsi), %r15
	movq	16(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %eax
	andl	$15, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	leaq	(,%r15,8), %r12
	addq	%r13, %r12
	cmpq	$0, (%rdi)
	je	LBB0_7
## %bb.4:
	movl	(%r12), %ebx
	addl	$8, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	-3(%rbx), %eax
	andl	$7, %eax
	incl	%ebx
	cmpl	$4, %eax
	jne	LBB0_5
## %bb.6:
	movq	_SDMA_OPCODE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SDMA_WRITE_SUB_OPCODE_LINEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_SDMA_PACKET
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movl	4(%r13,%r15,8), %esi
	andl	$-4, %esi
	movq	%r12, %rdi
	callq	_radeon_ring_write
	movl	4(%r13,%r15,8), %edi
	callq	_upper_32_bits
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_radeon_ring_write
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_radeon_ring_write
LBB0_7:
	movl	(%r12), %eax
	andl	$7, %eax
	cmpl	$4, %eax
	je	LBB0_10
## %bb.8:
	movq	_SDMA_OPCODE_NOP@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_SDMA_PACKET
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movl	(%r12), %eax
	andl	$7, %eax
	cmpl	$4, %eax
	jne	LBB0_9
LBB0_10:
	movq	_SDMA_OPCODE_INDIRECT_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_SDMA_PACKET
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movl	8(%r14), %esi
	andl	$-32, %esi
	movq	%r12, %rdi
	callq	_radeon_ring_write
	movl	8(%r14), %edi
	callq	_upper_32_bits
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movl	12(%r14), %esi
	movq	%r12, %rdi
	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	_SDMA_OPCODE_WRITE,4,2          ## @SDMA_OPCODE_WRITE
	.comm	_SDMA_WRITE_SUB_OPCODE_LINEAR,4,2 ## @SDMA_WRITE_SUB_OPCODE_LINEAR
	.comm	_SDMA_OPCODE_NOP,4,2            ## @SDMA_OPCODE_NOP
	.comm	_SDMA_OPCODE_INDIRECT_BUFFER,4,2 ## @SDMA_OPCODE_INDIRECT_BUFFER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cik_sdma_ring_ib_execute       ; -- Begin function cik_sdma_ring_ib_execute
	.p2align	2
_cik_sdma_ring_ib_execute:              ; @cik_sdma_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	x19, x1
	ldr	x23, [x0, #8]
	ldr	x24, [x1]
	add	x20, x23, x24, lsl #3
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8]
	ldr	w8, [x8, x24, lsl #2]
	and	w21, w8, #0xf
	ldr	x8, [x0]
	cbnz	x8, LBB0_3
	b	LBB0_13
LBB0_2:
	mov	w21, #0
	ldr	x8, [x0]
	cbz	x8, LBB0_13
LBB0_3:
	ldr	w9, [x20]
	add	w8, w9, #5
	and	w11, w8, #0x7
	mov	w10, #5
	sub	w10, w10, w11
	cmp	w10, #4
	b.hs	LBB0_5
; %bb.4:
	mov	x9, x8
	b	LBB0_10
LBB0_5:
	mov	w12, #4
	sub	w11, w12, w11
	and	w12, w11, #0x7
	mov	w13, #2
	sub	w9, w13, w9
	and	w9, w9, #0x7
	cmp	w9, w12
	ccmp	w11, #7, #2, hs
	mov	x9, x8
	b.hi	LBB0_10
; %bb.6:
	and	w11, w10, #0xfffffffc
	add	w9, w8, w11
	mov	x12, x11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	subs	w12, w12, #4
	b.ne	LBB0_7
; %bb.8:
	cmp	w10, w11
	b.ne	LBB0_10
; %bb.9:
	add	w8, w11, w8
	sub	w8, w8, #1
	b	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	and	w8, w9, #0x7
	add	w9, w9, #1
	cmp	w8, #4
	b.ne	LBB0_10
; %bb.11:
	sub	w8, w9, #1
LBB0_12:
	add	w22, w8, #4
Lloh0:
	adrp	x8, _SDMA_OPCODE_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDMA_OPCODE_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SDMA_WRITE_SUB_OPCODE_LINEAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SDMA_WRITE_SUB_OPCODE_LINEAR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_SDMA_PACKET
	mov	x1, x0
	mov	x0, x20
	bl	_radeon_ring_write
	add	x23, x23, x24, lsl #3
	ldr	w8, [x23, #4]
	and	w1, w8, #0xfffffffc
	mov	x0, x20
	bl	_radeon_ring_write
	ldr	w0, [x23, #4]
	bl	_upper_32_bits
	mov	x1, x0
	mov	x0, x20
	bl	_radeon_ring_write
	mov	x0, x20
	mov	w1, #1
	bl	_radeon_ring_write
	mov	x0, x20
	mov	x1, x22
	bl	_radeon_ring_write
LBB0_13:
	ldr	w8, [x20]
	and	w8, w8, #0x7
	cmp	w8, #4
	b.eq	LBB0_16
; %bb.14:
Lloh6:
	adrp	x22, _SDMA_OPCODE_NOP@GOTPAGE
Lloh7:
	ldr	x22, [x22, _SDMA_OPCODE_NOP@GOTPAGEOFF]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	w1, #0
	mov	w2, #0
	bl	_SDMA_PACKET
	mov	x1, x0
	mov	x0, x20
	bl	_radeon_ring_write
	ldr	w8, [x20]
	and	w8, w8, #0x7
	cmp	w8, #4
	b.ne	LBB0_15
LBB0_16:
Lloh8:
	adrp	x8, _SDMA_OPCODE_INDIRECT_BUFFER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SDMA_OPCODE_INDIRECT_BUFFER@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	w1, #0
	mov	x2, x21
	bl	_SDMA_PACKET
	mov	x1, x0
	mov	x0, x20
	bl	_radeon_ring_write
	ldr	w8, [x19, #8]
	and	w1, w8, #0xffffffe0
	mov	x0, x20
	bl	_radeon_ring_write
	ldr	w0, [x19, #8]
	bl	_upper_32_bits
	mov	x1, x0
	mov	x0, x20
	bl	_radeon_ring_write
	ldr	w1, [x19, #12]
	mov	x0, x20
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SDMA_OPCODE_WRITE,4,2          ; @SDMA_OPCODE_WRITE
	.comm	_SDMA_WRITE_SUB_OPCODE_LINEAR,4,2 ; @SDMA_WRITE_SUB_OPCODE_LINEAR
	.comm	_SDMA_OPCODE_NOP,4,2            ; @SDMA_OPCODE_NOP
	.comm	_SDMA_OPCODE_INDIRECT_BUFFER,4,2 ; @SDMA_OPCODE_INDIRECT_BUFFER
.subsections_via_symbols
