	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r100_ring_start                ## -- Begin function r100_ring_start
	.p2align	4, 0x90
_r100_ring_start:                       ## @r100_ring_start
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$2, %edx
	callq	_radeon_ring_lock
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	_RADEON_ISYNC_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_PACKET0
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movq	_RADEON_ISYNC_ANY2D_IDLE3D@GOTPCREL(%rip), %rax
	movq	_RADEON_ISYNC_ANY3D_IDLE2D@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_RADEON_ISYNC_WAIT_IDLEGUI@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_RADEON_ISYNC_CPSCRATCH_IDLEGUI@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_radeon_ring_write
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_radeon_ring_unlock_commit      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_ISYNC_CNTL,4,2          ## @RADEON_ISYNC_CNTL
	.comm	_RADEON_ISYNC_ANY2D_IDLE3D,4,2  ## @RADEON_ISYNC_ANY2D_IDLE3D
	.comm	_RADEON_ISYNC_ANY3D_IDLE2D,4,2  ## @RADEON_ISYNC_ANY3D_IDLE2D
	.comm	_RADEON_ISYNC_WAIT_IDLEGUI,4,2  ## @RADEON_ISYNC_WAIT_IDLEGUI
	.comm	_RADEON_ISYNC_CPSCRATCH_IDLEGUI,4,2 ## @RADEON_ISYNC_CPSCRATCH_IDLEGUI
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r100_ring_start                ; -- Begin function r100_ring_start
	.p2align	2
_r100_ring_start:                       ; @r100_ring_start
	.cfi_startproc
; %bb.0:
	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
	mov	x19, x1
	mov	x20, x0
	mov	w2, #2
	bl	_radeon_ring_lock
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh0:
	adrp	x8, _RADEON_ISYNC_CNTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RADEON_ISYNC_CNTL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_PACKET0
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
Lloh3:
	adrp	x8, _RADEON_ISYNC_ANY2D_IDLE3D@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RADEON_ISYNC_ANY2D_IDLE3D@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _RADEON_ISYNC_ANY3D_IDLE2D@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RADEON_ISYNC_ANY3D_IDLE2D@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _RADEON_ISYNC_WAIT_IDLEGUI@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RADEON_ISYNC_WAIT_IDLEGUI@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _RADEON_ISYNC_CPSCRATCH_IDLEGUI@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RADEON_ISYNC_CPSCRATCH_IDLEGUI@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_radeon_ring_write
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_radeon_ring_unlock_commit
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_ISYNC_CNTL,4,2          ; @RADEON_ISYNC_CNTL
	.comm	_RADEON_ISYNC_ANY2D_IDLE3D,4,2  ; @RADEON_ISYNC_ANY2D_IDLE3D
	.comm	_RADEON_ISYNC_ANY3D_IDLE2D,4,2  ; @RADEON_ISYNC_ANY3D_IDLE2D
	.comm	_RADEON_ISYNC_WAIT_IDLEGUI,4,2  ; @RADEON_ISYNC_WAIT_IDLEGUI
	.comm	_RADEON_ISYNC_CPSCRATCH_IDLEGUI,4,2 ; @RADEON_ISYNC_CPSCRATCH_IDLEGUI
.subsections_via_symbols
