	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_cp_start                ## -- Begin function radeon_cp_start
	.p2align	4, 0x90
_radeon_cp_start:                       ## @radeon_cp_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_LOCK_TEST_WITH_RETURN
	cmpq	$0, 16(%r14)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	jmp	LBB0_7
LBB0_2:
	movq	(%r14), %rsi
	movq	_RADEON_CSQ_PRIDIS_INDDIS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_DEBUG
	jmp	LBB0_7
LBB0_4:
	movq	_RADEON_FAMILY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	8(%r14), %eax
	movq	_CHIP_R600@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	callq	_radeon_do_cp_start
	jmp	LBB0_7
LBB0_5:
	movq	%r14, %rdi
	callq	_r600_do_cp_start
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

L_.str.1:                               ## @.str.1
	.asciz	"while CP running\n"

	.comm	_RADEON_CSQ_PRIDIS_INDDIS,8,3   ## @RADEON_CSQ_PRIDIS_INDDIS
L_.str.2:                               ## @.str.2
	.asciz	"called with bogus CP mode (%d)\n"

	.comm	_RADEON_FAMILY_MASK,4,2         ## @RADEON_FAMILY_MASK
	.comm	_CHIP_R600,4,2                  ## @CHIP_R600
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_cp_start                ; -- Begin function radeon_cp_start
	.p2align	2
_radeon_cp_start:                       ; @radeon_cp_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x2
	mov	x21, x0
	ldr	x19, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	mov	x0, x21
	mov	x1, x20
	bl	_LOCK_TEST_WITH_RETURN
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG
	b	LBB0_7
LBB0_2:
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _RADEON_CSQ_PRIDIS_INDDIS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _RADEON_CSQ_PRIDIS_INDDIS@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DRM_DEBUG
	b	LBB0_7
LBB0_4:
	ldr	w8, [x19, #8]
Lloh9:
	adrp	x9, _RADEON_FAMILY_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RADEON_FAMILY_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh12:
	adrp	x9, _CHIP_R600@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CHIP_R600@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	mov	x0, x19
	cmp	w8, w9
	b.ge	LBB0_6
; %bb.5:
	bl	_radeon_do_cp_start
	b	LBB0_7
LBB0_6:
	bl	_r600_do_cp_start
LBB0_7:
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

l_.str.1:                               ; @.str.1
	.asciz	"while CP running\n"

	.comm	_RADEON_CSQ_PRIDIS_INDDIS,8,3   ; @RADEON_CSQ_PRIDIS_INDDIS
l_.str.2:                               ; @.str.2
	.asciz	"called with bogus CP mode (%d)\n"

	.comm	_RADEON_FAMILY_MASK,4,2         ; @RADEON_FAMILY_MASK
	.comm	_CHIP_R600,4,2                  ; @CHIP_R600
.subsections_via_symbols
