	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evergreen_dma_ring_ib_execute  ## -- Begin function evergreen_dma_ring_ib_execute
	.p2align	4, 0x90
_evergreen_dma_ring_ib_execute:         ## @evergreen_dma_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), %r13
	leaq	(%r12,%r13,8), %r15
	cmpq	$0, (%rdi)
	je	LBB0_4
## %bb.1:
	movl	(%r15), %ebx
	addl	$6, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %eax
	andl	$7, %eax
	incl	%ebx
	cmpl	$5, %eax
	jne	LBB0_2
## %bb.3:
	movq	_DMA_PACKET_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_DMA_PACKET
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movl	4(%r12,%r13,8), %esi
	andl	$-4, %esi
	movq	%r15, %rdi
	callq	_radeon_ring_write
	movl	4(%r12,%r13,8), %edi
	callq	_upper_32_bits
	movzbl	%al, %esi
	movq	%r15, %rdi
	callq	_radeon_ring_write
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_radeon_ring_write
LBB0_4:
	movl	(%r15), %eax
	andl	$7, %eax
	cmpl	$5, %eax
	je	LBB0_7
## %bb.5:
	movq	_DMA_PACKET_NOP@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_DMA_PACKET
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movl	(%r15), %eax
	andl	$7, %eax
	cmpl	$5, %eax
	jne	LBB0_6
LBB0_7:
	movq	_DMA_PACKET_INDIRECT_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_DMA_PACKET
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movl	8(%r14), %esi
	andl	$-32, %esi
	movq	%r15, %rdi
	callq	_radeon_ring_write
	movl	8(%r14), %edi
	movl	12(%r14), %ebx
	shll	$12, %ebx
	callq	_upper_32_bits
	movzbl	%al, %esi
	orl	%ebx, %esi
	movq	%r15, %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	_DMA_PACKET_WRITE,4,2           ## @DMA_PACKET_WRITE
	.comm	_DMA_PACKET_NOP,4,2             ## @DMA_PACKET_NOP
	.comm	_DMA_PACKET_INDIRECT_BUFFER,4,2 ## @DMA_PACKET_INDIRECT_BUFFER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_evergreen_dma_ring_ib_execute  ; -- Begin function evergreen_dma_ring_ib_execute
	.p2align	2
_evergreen_dma_ring_ib_execute:         ; @evergreen_dma_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	x22, [x1]
	ldp	x8, x23, [x0]
	add	x19, x23, x22, lsl #3
	cbz	x8, LBB0_5
; %bb.1:
	ldr	w9, [x19]
	add	w8, w9, #4
	and	w9, w9, #0x7
	eor	w11, w9, #0xfffffffb
	add	w10, w11, #7
	cmp	w10, #4
	add	w11, w11, #6
	and	w12, w11, #0x7
	eor	w9, w9, #0x3
	ccmp	w9, w12, #0, hs
	ccmp	w11, #7, #2, hs
	mov	x9, x8
	b.ls	LBB0_9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	and	w8, w9, #0x7
	add	w9, w9, #1
	cmp	w8, #5
	b.ne	LBB0_2
; %bb.3:
	sub	w8, w9, #1
LBB0_4:
	add	w21, w8, #3
Lloh0:
	adrp	x8, _DMA_PACKET_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_PACKET_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #1
	bl	_DMA_PACKET
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
	add	x22, x23, x22, lsl #3
	ldr	w8, [x22, #4]
	and	w1, w8, #0xfffffffc
	mov	x0, x19
	bl	_radeon_ring_write
	ldr	w0, [x22, #4]
	bl	_upper_32_bits
	and	w1, w0, #0xff
	mov	x0, x19
	bl	_radeon_ring_write
	mov	x0, x19
	mov	x1, x21
	bl	_radeon_ring_write
LBB0_5:
	ldr	w8, [x19]
	and	w8, w8, #0x7
	cmp	w8, #5
	b.eq	LBB0_8
; %bb.6:
Lloh3:
	adrp	x21, _DMA_PACKET_NOP@GOTPAGE
Lloh4:
	ldr	x21, [x21, _DMA_PACKET_NOP@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	mov	w1, #0
	mov	w2, #0
	bl	_DMA_PACKET
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
	ldr	w8, [x19]
	and	w8, w8, #0x7
	cmp	w8, #5
	b.ne	LBB0_7
LBB0_8:
Lloh5:
	adrp	x8, _DMA_PACKET_INDIRECT_BUFFER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DMA_PACKET_INDIRECT_BUFFER@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #0
	bl	_DMA_PACKET
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
	ldr	w8, [x20, #8]
	and	w1, w8, #0xffffffe0
	mov	x0, x19
	bl	_radeon_ring_write
	ldp	w0, w21, [x20, #8]
	bl	_upper_32_bits
	and	w1, w0, #0xff
	bfi	w1, w21, #12, #20
	mov	x0, x19
	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
LBB0_9:
	and	w11, w10, #0xfffffffc
	add	w9, w8, w11
	mov	x12, x11
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	subs	w12, w12, #4
	b.ne	LBB0_10
; %bb.11:
	cmp	w10, w11
	b.ne	LBB0_2
; %bb.12:
	add	w8, w11, w8
	sub	w8, w8, #1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_PACKET_WRITE,4,2           ; @DMA_PACKET_WRITE
	.comm	_DMA_PACKET_NOP,4,2             ; @DMA_PACKET_NOP
	.comm	_DMA_PACKET_INDIRECT_BUFFER,4,2 ; @DMA_PACKET_INDIRECT_BUFFER
.subsections_via_symbols
