	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r300_cmd_wait
_r300_cmd_wait:                         ## @r300_cmd_wait
	.cfi_startproc
## %bb.0:
                                        ## kill: def $esi killed $esi def $rsi
	addl	$-128, %esi
	cmpl	$5, %esi
	ja	LBB0_10
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_3:
	movq	_RADEON_WAIT_3D_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_10:
	retq
LBB0_2:
	movq	_RADEON_WAIT_2D_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_7:
	movq	_RADEON_WAIT_3D_IDLE@GOTPCREL(%rip), %rax
	movq	_RADEON_WAIT_3D_IDLECLEAN@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_4:
	movq	_RADEON_WAIT_2D_IDLE@GOTPCREL(%rip), %rax
	movq	_RADEON_WAIT_3D_IDLE@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_8:
	movq	_RADEON_WAIT_2D_IDLE@GOTPCREL(%rip), %rax
	movq	_RADEON_WAIT_2D_IDLECLEAN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	_RADEON_WAIT_3D_IDLE@GOTPCREL(%rip), %rcx
	movq	_RADEON_WAIT_3D_IDLECLEAN@GOTPCREL(%rip), %rdx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	orl	(%rdx), %ebx
	jmp	LBB0_9
LBB0_6:
	movq	_RADEON_WAIT_2D_IDLE@GOTPCREL(%rip), %rax
	movq	_RADEON_WAIT_2D_IDLECLEAN@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
LBB0_9:
	movl	$2, %edi
	callq	_BEGIN_RING
	movq	_RADEON_WAIT_UNTIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_CP_PACKET0
	movl	%eax, %edi
	callq	_OUT_RING
	movl	%ebx, %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ADVANCE_RING                   ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_RING_LOCALS,4,2                ## @RING_LOCALS
	.comm	_RADEON_WAIT_2D_IDLE,4,2        ## @RADEON_WAIT_2D_IDLE
	.comm	_RADEON_WAIT_3D_IDLE,4,2        ## @RADEON_WAIT_3D_IDLE
	.comm	_RADEON_WAIT_2D_IDLECLEAN,4,2   ## @RADEON_WAIT_2D_IDLECLEAN
	.comm	_RADEON_WAIT_3D_IDLECLEAN,4,2   ## @RADEON_WAIT_3D_IDLECLEAN
	.comm	_RADEON_WAIT_UNTIL,4,2          ## @RADEON_WAIT_UNTIL
	.no_dead_strip	_r300_cmd_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r300_cmd_wait
_r300_cmd_wait:                         ; @r300_cmd_wait
	.cfi_startproc
; %bb.0:
	sub	w8, w1, #128
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.1:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_remember_state
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, _RADEON_WAIT_3D_IDLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RADEON_WAIT_3D_IDLE@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
	b	LBB0_10
LBB0_3:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
LBB0_4:
	.cfi_restore_state
Lloh5:
	adrp	x8, _RADEON_WAIT_2D_IDLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RADEON_WAIT_2D_IDLE@GOTPAGEOFF]
Lloh7:
	ldr	w19, [x8]
	b	LBB0_10
LBB0_5:
Lloh8:
	adrp	x8, _RADEON_WAIT_3D_IDLE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RADEON_WAIT_3D_IDLE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _RADEON_WAIT_3D_IDLECLEAN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RADEON_WAIT_3D_IDLECLEAN@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh13:
	adrp	x8, _RADEON_WAIT_2D_IDLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RADEON_WAIT_2D_IDLE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _RADEON_WAIT_3D_IDLE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _RADEON_WAIT_3D_IDLE@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh18:
	adrp	x8, _RADEON_WAIT_2D_IDLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RADEON_WAIT_2D_IDLE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _RADEON_WAIT_2D_IDLECLEAN@GOTPAGE
Lloh22:
	ldr	x9, [x9, _RADEON_WAIT_2D_IDLECLEAN@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
Lloh24:
	adrp	x10, _RADEON_WAIT_3D_IDLE@GOTPAGE
Lloh25:
	ldr	x10, [x10, _RADEON_WAIT_3D_IDLE@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
Lloh27:
	adrp	x11, _RADEON_WAIT_3D_IDLECLEAN@GOTPAGE
Lloh28:
	ldr	x11, [x11, _RADEON_WAIT_3D_IDLECLEAN@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w19, w8, w11
	b	LBB0_10
LBB0_8:
Lloh30:
	adrp	x8, _RADEON_WAIT_2D_IDLE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _RADEON_WAIT_2D_IDLE@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _RADEON_WAIT_2D_IDLECLEAN@GOTPAGE
Lloh34:
	ldr	x9, [x9, _RADEON_WAIT_2D_IDLECLEAN@GOTPAGEOFF]
LBB0_9:
	ldr	w9, [x9]
	orr	w19, w9, w8
LBB0_10:
	mov	w0, #2
	bl	_BEGIN_RING
Lloh35:
	adrp	x8, _RADEON_WAIT_UNTIL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _RADEON_WAIT_UNTIL@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_CP_PACKET0
	bl	_OUT_RING
	mov	x0, x19
	bl	_OUT_RING
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ADVANCE_RING
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
                                        ; -- End function
	.comm	_RING_LOCALS,4,2                ; @RING_LOCALS
	.comm	_RADEON_WAIT_2D_IDLE,4,2        ; @RADEON_WAIT_2D_IDLE
	.comm	_RADEON_WAIT_3D_IDLE,4,2        ; @RADEON_WAIT_3D_IDLE
	.comm	_RADEON_WAIT_2D_IDLECLEAN,4,2   ; @RADEON_WAIT_2D_IDLECLEAN
	.comm	_RADEON_WAIT_3D_IDLECLEAN,4,2   ; @RADEON_WAIT_3D_IDLECLEAN
	.comm	_RADEON_WAIT_UNTIL,4,2          ; @RADEON_WAIT_UNTIL
	.no_dead_strip	_r300_cmd_wait
.subsections_via_symbols
