	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_cp_dispatch_indirect      ## -- Begin function r600_cp_dispatch_indirect
	.p2align	4, 0x90
_r600_cp_dispatch_indirect:             ## @r600_cp_dispatch_indirect
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	subl	%edx, %r15d
	je	LBB0_10
## %bb.1:
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movl	(%rax), %eax
	addl	%edx, %eax
	addl	(%rsi), %eax
	cltq
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addl	$3, %r15d
	movl	%r15d, %r14d
	sarl	$2, %r14d
	movslq	%r14d, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_DRM_DEBUG
	leaq	L_.str.1(%rip), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_DRM_DEBUG
	testb	$60, %r15b
	je	LBB0_9
## %bb.2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movslq	%r13d, %rax
	addq	(%rcx), %rax
	movl	%r14d, %r9d
	negb	%r9b
	andb	$3, %r9b
	je	LBB0_5
## %bb.3:
	xorl	%edx, %edx
	movq	_RADEON_CP_PACKET2@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r12), %rdi
	movl	(%r8), %esi
	addq	%rax, %rdi
	movl	%esi, (%rdi,%rbx,4)
	incq	%rbx
	incb	%dl
	movl	%edx, %ecx
	andb	$15, %cl
	cmpb	%r9b, %cl
	jne	LBB0_4
LBB0_5:
	andb	$15, %r14b
	cmpb	$12, %r14b
	ja	LBB0_8
## %bb.6:
	movq	_RADEON_CP_PACKET2@GOTPCREL(%rip), %rcx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r12), %rdx
	movl	(%rcx), %esi
	addq	%rax, %rdx
	movl	%esi, (%rdx,%rbx,4)
	movslq	(%r12), %rdx
	movl	(%rcx), %esi
	addq	%rax, %rdx
	movl	%esi, 4(%rdx,%rbx,4)
	movslq	(%r12), %rdx
	movl	(%rcx), %esi
	addq	%rax, %rdx
	movl	%esi, 8(%rdx,%rbx,4)
	movslq	(%r12), %rdx
	movl	(%rcx), %esi
	addq	%rax, %rdx
	movl	%esi, 12(%rdx,%rbx,4)
	addq	$4, %rbx
	testb	$15, %bl
	jne	LBB0_7
LBB0_8:
	movl	%ebx, %r14d
LBB0_9:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	$4, %edi
	callq	_BEGIN_RING
	movq	_R600_IT_INDIRECT_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$2, %esi
	callq	_CP_PACKET3
	movl	%eax, %edi
	callq	_OUT_RING
	movl	%ebx, %edi
	andl	$-4, %edi
	callq	_OUT_RING
	movq	%rbx, %rdi
	callq	_upper_32_bits
	movzbl	%al, %edi
	callq	_OUT_RING
	movl	%r14d, %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_RING
LBB0_10:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_LOCALS,4,2                ## @RING_LOCALS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dwords:%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"offset 0x%lx\n"

	.comm	_RADEON_CP_PACKET2,4,2          ## @RADEON_CP_PACKET2
	.comm	_R600_IT_INDIRECT_BUFFER,4,2    ## @R600_IT_INDIRECT_BUFFER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_cp_dispatch_indirect      ; -- Begin function r600_cp_dispatch_indirect
	.p2align	2
_r600_cp_dispatch_indirect:             ; @r600_cp_dispatch_indirect
	.cfi_startproc
; %bb.0:
	subs	w8, w3, w2
	b.eq	LBB0_6
; %bb.1:
	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	x22, x2
	mov	x21, x1
	mov	x23, x0
	ldr	x9, [x0, #8]
	ldr	w9, [x9]
	ldr	w10, [x1]
	add	w9, w9, w2
	add	w9, w9, w10
	sxtw	x19, w9
	add	w24, w8, #3
	sbfx	x20, x24, #2, #30
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DRM_DEBUG
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_DRM_DEBUG
	tst	w24, #0x3c
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x23]
	ldr	x8, [x8]
	add	x8, x8, w22, sxtw
Lloh4:
	adrp	x9, _RADEON_CP_PACKET2@GOTPAGE
Lloh5:
	ldr	x9, [x9, _RADEON_CP_PACKET2@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x10, [x21]
	ldr	w11, [x9]
	add	x10, x8, x10
	str	w11, [x10, x20, lsl #2]
	add	x20, x20, #1
	tst	x20, #0xf
	b.ne	LBB0_3
	b	LBB0_5
LBB0_4:
	asr	w20, w24, #2
LBB0_5:
	mov	w0, #4
	bl	_BEGIN_RING
Lloh6:
	adrp	x8, _R600_IT_INDIRECT_BUFFER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _R600_IT_INDIRECT_BUFFER@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	w1, #2
	bl	_CP_PACKET3
	bl	_OUT_RING
	and	w0, w19, #0xfffffffc
	bl	_OUT_RING
	mov	x0, x19
	bl	_upper_32_bits
	and	w0, w0, #0xff
	bl	_OUT_RING
	mov	x0, x20
	bl	_OUT_RING
	bl	_ADVANCE_RING
	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
LBB0_6:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	mov	w0, #0
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_LOCALS,4,2                ; @RING_LOCALS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dwords:%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"offset 0x%lx\n"

	.comm	_RADEON_CP_PACKET2,4,2          ; @RADEON_CP_PACKET2
	.comm	_R600_IT_INDIRECT_BUFFER,4,2    ; @R600_IT_INDIRECT_BUFFER
.subsections_via_symbols
