	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cayman_startup
_cayman_startup:                        ## @cayman_startup
	.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
	movq	%rdi, %r15
	movq	_RADEON_RING_TYPE_GFX_INDEX@GOTPCREL(%rip), %r12
	movq	(%r12), %rbx
	shlq	$2, %rbx
	addq	8(%rdi), %rbx
	callq	_evergreen_pcie_gen2_enable
	movq	_RADEON_IS_IGP@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	44(%r15), %eax
	testl	%ecx, (%r15)
	je	LBB0_7
## %bb.1:
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$0, 40(%r15)
	je	LBB0_4
## %bb.3:
	cmpl	$0, 36(%r15)
	jne	LBB0_14
LBB0_4:
	movq	%r15, %rdi
	callq	_ni_init_microcode
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_14
LBB0_7:
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	cmpl	$0, 40(%r15)
	je	LBB0_11
## %bb.9:
	cmpl	$0, 36(%r15)
	je	LBB0_11
## %bb.10:
	cmpl	$0, 32(%r15)
	jne	LBB0_12
LBB0_11:
	movq	%r15, %rdi
	callq	_ni_init_microcode
	testl	%eax, %eax
	je	LBB0_12
LBB0_5:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
LBB0_6:
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_34
LBB0_12:
	movq	%r15, %rdi
	callq	_ni_mc_load_microcode
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_6
LBB0_14:
	movq	%r15, %rdi
	callq	_r600_vram_scratch_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_34
## %bb.15:
	movq	%r15, %rdi
	callq	_evergreen_mc_program
	movq	%r15, %rdi
	callq	_cayman_pcie_gart_enable
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_16
LBB0_34:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%r15, %rdi
	callq	_cayman_gpu_init
	movq	%r15, %rdi
	callq	_evergreen_blit_init
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_r600_blit_fini
	movq	24(%r15), %rax
	movq	$0, (%rax)
	movl	4(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_warn
LBB0_18:
	movl	(%r13), %eax
	testl	%eax, (%r15)
	je	LBB0_21
## %bb.19:
	movq	%r15, %rdi
	callq	_si_rlc_init
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_6
LBB0_21:
	movq	%r15, %rdi
	callq	_radeon_wb_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_34
## %bb.22:
	movq	(%r12), %rsi
	movq	%r15, %rdi
	callq	_radeon_fence_driver_start_ring
	testl	%eax, %eax
	jne	LBB0_23
## %bb.25:
	movq	_CAYMAN_RING_TYPE_CP1_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_radeon_fence_driver_start_ring
	testl	%eax, %eax
	jne	LBB0_23
## %bb.26:
	movq	_CAYMAN_RING_TYPE_CP2_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_radeon_fence_driver_start_ring
	testl	%eax, %eax
	je	LBB0_27
LBB0_23:
	movl	%eax, %r14d
	movl	4(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
LBB0_24:
	movl	%r14d, %edx
	callq	_dev_err
	jmp	LBB0_34
LBB0_27:
	movq	_R600_RING_TYPE_DMA_INDEX@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_radeon_fence_driver_start_ring
	testl	%eax, %eax
	jne	LBB0_28
## %bb.29:
	movq	_CAYMAN_RING_TYPE_DMA1_INDEX@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	%r15, %rdi
	callq	_radeon_fence_driver_start_ring
	testl	%eax, %eax
	je	LBB0_30
LBB0_28:
	movl	%eax, %r14d
	movl	4(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_24
LBB0_30:
	cmpl	$0, 16(%r15)
	je	LBB0_31
LBB0_32:
	movq	%r15, %rdi
	callq	_r600_irq_init
	testl	%eax, %eax
	je	LBB0_35
## %bb.33:
	movl	%eax, %r14d
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	%r15, %rdi
	callq	_radeon_irq_kms_fini
	jmp	LBB0_34
LBB0_31:
	movq	%r15, %rdi
	callq	_radeon_irq_kms_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_34
	jmp	LBB0_32
LBB0_35:
	movq	%r15, %rdi
	callq	_evergreen_irq_set
	movl	(%rbx), %edx
	movq	_RADEON_WB_CP_RPTR_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_CP_RB0_RPTR@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_CP_RB0_WPTR@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	_RADEON_CP_PACKET2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%rbx, %rsi
	pushq	%rax
	pushq	$1048575                        ## imm = 0xFFFFF
	pushq	$0
	callq	_radeon_ring_init
	addq	$32, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_34
## %bb.36:
	movq	8(%r15), %rax
	movq	(%r13), %rcx
	leaq	(%rax,%rcx,4), %rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_R600_WB_DMA_RPTR_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_DMA_RB_RPTR@GOTPCREL(%rip), %rcx
	movq	_DMA0_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%rcx), %r14
	addq	%rbx, %r14
	movq	_DMA_RB_WPTR@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	_DMA_PACKET_NOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_DMA_PACKET
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movq	%r14, %r8
	movq	%rbx, %r9
	pushq	%rax
	pushq	$262140                         ## imm = 0x3FFFC
	pushq	$2
	callq	_radeon_ring_init
	addq	$32, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_34
## %bb.37:
	movq	8(%r15), %rax
	movq	(%r12), %rcx
	leaq	(%rax,%rcx,4), %r12
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_CAYMAN_WB_DMA1_RPTR_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_DMA1_REGISTER_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_DMA_RB_RPTR@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	addq	%rbx, %r14
	movq	_DMA_RB_WPTR@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	_DMA_PACKET_NOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_DMA_PACKET
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r13d, %ecx
	movq	%r14, %r8
	movq	%rbx, %r9
	pushq	%rax
	pushq	$262140                         ## imm = 0x3FFFC
	pushq	$2
	callq	_radeon_ring_init
	addq	$32, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_34
## %bb.38:
	movq	%r15, %rdi
	callq	_cayman_cp_load_microcode
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_34
## %bb.39:
	movq	%r15, %rdi
	callq	_cayman_cp_resume
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_34
## %bb.40:
	movq	%r15, %rdi
	callq	_cayman_dma_resume
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_34
## %bb.41:
	movq	%r15, %rdi
	callq	_radeon_ib_pool_init
	testl	%eax, %eax
	je	LBB0_43
## %bb.42:
	movl	%eax, %r14d
	movl	4(%r15), %edi
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_24
LBB0_43:
	movq	%r15, %rdi
	callq	_radeon_vm_manager_init
	testl	%eax, %eax
	je	LBB0_45
## %bb.44:
	movl	%eax, %r14d
	movl	4(%r15), %edi
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_24
LBB0_45:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_r600_audio_init                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_RING_TYPE_GFX_INDEX,8,3 ## @RADEON_RING_TYPE_GFX_INDEX
	.comm	_RADEON_IS_IGP,4,2              ## @RADEON_IS_IGP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to load firmware!\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to load MC firmware!\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed blitter (%d) falling back to memcpy\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to init rlc BOs!\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed initializing CP fences (%d).\n"

	.comm	_CAYMAN_RING_TYPE_CP1_INDEX,8,3 ## @CAYMAN_RING_TYPE_CP1_INDEX
	.comm	_CAYMAN_RING_TYPE_CP2_INDEX,8,3 ## @CAYMAN_RING_TYPE_CP2_INDEX
	.comm	_R600_RING_TYPE_DMA_INDEX,8,3   ## @R600_RING_TYPE_DMA_INDEX
L_.str.5:                               ## @.str.5
	.asciz	"failed initializing DMA fences (%d).\n"

	.comm	_CAYMAN_RING_TYPE_DMA1_INDEX,8,3 ## @CAYMAN_RING_TYPE_DMA1_INDEX
L_.str.6:                               ## @.str.6
	.asciz	"radeon: IH init failed (%d).\n"

	.comm	_RADEON_WB_CP_RPTR_OFFSET,4,2   ## @RADEON_WB_CP_RPTR_OFFSET
	.comm	_CP_RB0_RPTR,8,3                ## @CP_RB0_RPTR
	.comm	_CP_RB0_WPTR,8,3                ## @CP_RB0_WPTR
	.comm	_RADEON_CP_PACKET2,4,2          ## @RADEON_CP_PACKET2
	.comm	_R600_WB_DMA_RPTR_OFFSET,4,2    ## @R600_WB_DMA_RPTR_OFFSET
	.comm	_DMA_RB_RPTR,8,3                ## @DMA_RB_RPTR
	.comm	_DMA0_REGISTER_OFFSET,8,3       ## @DMA0_REGISTER_OFFSET
	.comm	_DMA_RB_WPTR,8,3                ## @DMA_RB_WPTR
	.comm	_DMA_PACKET_NOP,4,2             ## @DMA_PACKET_NOP
	.comm	_CAYMAN_WB_DMA1_RPTR_OFFSET,4,2 ## @CAYMAN_WB_DMA1_RPTR_OFFSET
	.comm	_DMA1_REGISTER_OFFSET,8,3       ## @DMA1_REGISTER_OFFSET
L_.str.7:                               ## @.str.7
	.asciz	"IB initialization failed (%d).\n"

L_.str.8:                               ## @.str.8
	.asciz	"vm manager initialization failed (%d).\n"

	.no_dead_strip	_cayman_startup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cayman_startup
_cayman_startup:                        ; @cayman_startup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x23, _RADEON_RING_TYPE_GFX_INDEX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RADEON_RING_TYPE_GFX_INDEX@GOTPAGEOFF]
	ldr	x22, [x23]
	bl	_evergreen_pcie_gen2_enable
	ldr	w9, [x19]
Lloh2:
	adrp	x24, _RADEON_IS_IGP@GOTPAGE
Lloh3:
	ldr	x24, [x24, _RADEON_IS_IGP@GOTPAGEOFF]
	ldr	w10, [x24]
	ldr	w8, [x19, #44]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.1:
	cbz	w8, LBB0_4
; %bb.2:
	ldr	w8, [x19, #40]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	w8, [x19, #36]
	cbnz	w8, LBB0_14
LBB0_4:
	mov	x0, x19
	bl	_ni_init_microcode
	cbnz	w0, LBB0_10
	b	LBB0_14
LBB0_5:
	cbz	w8, LBB0_9
; %bb.6:
	ldr	w8, [x19, #40]
	cbz	w8, LBB0_9
; %bb.7:
	ldr	w8, [x19, #36]
	cbz	w8, LBB0_9
; %bb.8:
	ldr	w8, [x19, #32]
	cbnz	w8, LBB0_12
LBB0_9:
	mov	x0, x19
	bl	_ni_init_microcode
	cbz	w0, LBB0_12
LBB0_10:
	mov	x20, x0
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
LBB0_11:
	bl	_DRM_ERROR
	b	LBB0_16
LBB0_12:
	mov	x0, x19
	bl	_ni_mc_load_microcode
	cbz	w0, LBB0_14
; %bb.13:
	mov	x20, x0
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_14:
	mov	x0, x19
	bl	_r600_vram_scratch_init
	mov	x20, x0
	cbnz	w0, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_evergreen_mc_program
	mov	x0, x19
	bl	_cayman_pcie_gart_enable
	mov	x20, x0
	cbz	w0, LBB0_17
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
	mov	x0, x19
	bl	_cayman_gpu_init
	mov	x0, x19
	bl	_evergreen_blit_init
	cbz	w0, LBB0_19
; %bb.18:
	mov	x20, x0
	mov	x0, x19
	bl	_r600_blit_fini
	ldr	x8, [x19, #24]
	str	xzr, [x8]
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_dev_warn
LBB0_19:
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.20:
	mov	x0, x19
	bl	_si_rlc_init
	cbz	w0, LBB0_22
; %bb.21:
	mov	x20, x0
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_22:
	mov	x0, x19
	bl	_radeon_wb_init
	mov	x20, x0
	cbnz	w0, LBB0_16
; %bb.23:
	ldr	x1, [x23]
	mov	x0, x19
	bl	_radeon_fence_driver_start_ring
	cbnz	w0, LBB0_26
; %bb.24:
Lloh12:
	adrp	x8, _CAYMAN_RING_TYPE_CP1_INDEX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CAYMAN_RING_TYPE_CP1_INDEX@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_radeon_fence_driver_start_ring
	cbnz	w0, LBB0_26
; %bb.25:
Lloh15:
	adrp	x8, _CAYMAN_RING_TYPE_CP2_INDEX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CAYMAN_RING_TYPE_CP2_INDEX@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_radeon_fence_driver_start_ring
	cbz	w0, LBB0_28
LBB0_26:
	mov	x20, x0
	ldr	w0, [x19, #4]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_27:
	mov	x2, x20
	bl	_dev_err
	b	LBB0_16
LBB0_28:
Lloh20:
	adrp	x23, _R600_RING_TYPE_DMA_INDEX@GOTPAGE
Lloh21:
	ldr	x23, [x23, _R600_RING_TYPE_DMA_INDEX@GOTPAGEOFF]
	ldr	x1, [x23]
	mov	x0, x19
	bl	_radeon_fence_driver_start_ring
	cbnz	w0, LBB0_30
; %bb.29:
Lloh22:
	adrp	x8, _CAYMAN_RING_TYPE_DMA1_INDEX@GOTPAGE
Lloh23:
	ldr	x8, [x8, _CAYMAN_RING_TYPE_DMA1_INDEX@GOTPAGEOFF]
Lloh24:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_radeon_fence_driver_start_ring
	cbz	w0, LBB0_31
LBB0_30:
	mov	x20, x0
	ldr	w0, [x19, #4]
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_27
LBB0_31:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_34
LBB0_32:
	mov	x0, x19
	bl	_r600_irq_init
	cbz	w0, LBB0_35
; %bb.33:
	mov	x20, x0
	str	x20, [sp]
Lloh27:
	adrp	x0, l_.str.6@PAGE
Lloh28:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_DRM_ERROR
	mov	x0, x19
	bl	_radeon_irq_kms_fini
	b	LBB0_16
LBB0_34:
	mov	x0, x19
	bl	_radeon_irq_kms_init
	mov	x20, x0
	cbnz	w0, LBB0_16
	b	LBB0_32
LBB0_35:
	add	x20, x21, x22, lsl #2
	mov	x0, x19
	bl	_evergreen_irq_set
	ldr	w2, [x20]
Lloh29:
	adrp	x8, _RADEON_WB_CP_RPTR_OFFSET@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RADEON_WB_CP_RPTR_OFFSET@GOTPAGEOFF]
Lloh31:
	ldr	w3, [x8]
Lloh32:
	adrp	x8, _CP_RB0_RPTR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _CP_RB0_RPTR@GOTPAGEOFF]
Lloh34:
	ldr	x4, [x8]
Lloh35:
	adrp	x8, _CP_RB0_WPTR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _CP_RB0_WPTR@GOTPAGEOFF]
Lloh37:
	ldr	x5, [x8]
Lloh38:
	adrp	x8, _RADEON_CP_PACKET2@GOTPAGE
Lloh39:
	ldr	x8, [x8, _RADEON_CP_PACKET2@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	w6, #0
	mov	w7, #1048575
	bl	_radeon_ring_init
	mov	x20, x0
	cbnz	w0, LBB0_16
; %bb.36:
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	add	x20, x8, x9, lsl #2
	ldr	w21, [x20]
Lloh41:
	adrp	x8, _R600_WB_DMA_RPTR_OFFSET@GOTPAGE
Lloh42:
	ldr	x8, [x8, _R600_WB_DMA_RPTR_OFFSET@GOTPAGEOFF]
Lloh43:
	ldr	w22, [x8]
Lloh44:
	adrp	x25, _DMA_RB_RPTR@GOTPAGE
Lloh45:
	ldr	x25, [x25, _DMA_RB_RPTR@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh46:
	adrp	x9, _DMA0_REGISTER_OFFSET@GOTPAGE
Lloh47:
	ldr	x9, [x9, _DMA0_REGISTER_OFFSET@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
Lloh49:
	adrp	x26, _DMA_RB_WPTR@GOTPAGE
Lloh50:
	ldr	x26, [x26, _DMA_RB_WPTR@GOTPAGEOFF]
	add	x23, x9, x8
	ldr	x8, [x26]
	add	x24, x8, x9
Lloh51:
	adrp	x27, _DMA_PACKET_NOP@GOTPAGE
Lloh52:
	ldr	x27, [x27, _DMA_PACKET_NOP@GOTPAGEOFF]
	ldr	w0, [x27]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_DMA_PACKET
	str	w0, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
	mov	w6, #2
	mov	w7, #262140
	bl	_radeon_ring_init
	mov	x20, x0
	cbnz	w0, LBB0_16
; %bb.37:
	ldr	x9, [x19, #8]
Lloh53:
	adrp	x8, _CAYMAN_RING_TYPE_DMA1_INDEX@GOTPAGE
Lloh54:
	ldr	x8, [x8, _CAYMAN_RING_TYPE_DMA1_INDEX@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	add	x20, x9, x8, lsl #2
	ldr	w21, [x20]
Lloh56:
	adrp	x8, _CAYMAN_WB_DMA1_RPTR_OFFSET@GOTPAGE
Lloh57:
	ldr	x8, [x8, _CAYMAN_WB_DMA1_RPTR_OFFSET@GOTPAGEOFF]
Lloh58:
	ldr	w22, [x8]
Lloh59:
	adrp	x8, _DMA1_REGISTER_OFFSET@GOTPAGE
Lloh60:
	ldr	x8, [x8, _DMA1_REGISTER_OFFSET@GOTPAGEOFF]
	ldr	x9, [x25]
Lloh61:
	ldr	x8, [x8]
	add	x23, x8, x9
	ldr	x9, [x26]
	add	x24, x9, x8
	ldr	w0, [x27]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_DMA_PACKET
	str	w0, [sp]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
	mov	w6, #2
	mov	w7, #262140
	bl	_radeon_ring_init
	mov	x20, x0
	cbnz	w0, LBB0_16
; %bb.38:
	mov	x0, x19
	bl	_cayman_cp_load_microcode
	mov	x20, x0
	cbnz	w0, LBB0_16
; %bb.39:
	mov	x0, x19
	bl	_cayman_cp_resume
	mov	x20, x0
	cbnz	w0, LBB0_16
; %bb.40:
	mov	x0, x19
	bl	_cayman_dma_resume
	mov	x20, x0
	cbnz	w0, LBB0_16
; %bb.41:
	mov	x0, x19
	bl	_radeon_ib_pool_init
	cbz	w0, LBB0_43
; %bb.42:
	mov	x20, x0
	ldr	w0, [x19, #4]
Lloh62:
	adrp	x1, l_.str.7@PAGE
Lloh63:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_27
LBB0_43:
	mov	x0, x19
	bl	_radeon_vm_manager_init
	cbz	w0, LBB0_45
; %bb.44:
	mov	x20, x0
	ldr	w0, [x19, #4]
Lloh64:
	adrp	x1, l_.str.8@PAGE
Lloh65:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_27
LBB0_45:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_r600_audio_init
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_RING_TYPE_GFX_INDEX,8,3 ; @RADEON_RING_TYPE_GFX_INDEX
	.comm	_RADEON_IS_IGP,4,2              ; @RADEON_IS_IGP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to load firmware!\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to load MC firmware!\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed blitter (%d) falling back to memcpy\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to init rlc BOs!\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed initializing CP fences (%d).\n"

	.comm	_CAYMAN_RING_TYPE_CP1_INDEX,8,3 ; @CAYMAN_RING_TYPE_CP1_INDEX
	.comm	_CAYMAN_RING_TYPE_CP2_INDEX,8,3 ; @CAYMAN_RING_TYPE_CP2_INDEX
	.comm	_R600_RING_TYPE_DMA_INDEX,8,3   ; @R600_RING_TYPE_DMA_INDEX
l_.str.5:                               ; @.str.5
	.asciz	"failed initializing DMA fences (%d).\n"

	.comm	_CAYMAN_RING_TYPE_DMA1_INDEX,8,3 ; @CAYMAN_RING_TYPE_DMA1_INDEX
l_.str.6:                               ; @.str.6
	.asciz	"radeon: IH init failed (%d).\n"

	.comm	_RADEON_WB_CP_RPTR_OFFSET,4,2   ; @RADEON_WB_CP_RPTR_OFFSET
	.comm	_CP_RB0_RPTR,8,3                ; @CP_RB0_RPTR
	.comm	_CP_RB0_WPTR,8,3                ; @CP_RB0_WPTR
	.comm	_RADEON_CP_PACKET2,4,2          ; @RADEON_CP_PACKET2
	.comm	_R600_WB_DMA_RPTR_OFFSET,4,2    ; @R600_WB_DMA_RPTR_OFFSET
	.comm	_DMA_RB_RPTR,8,3                ; @DMA_RB_RPTR
	.comm	_DMA0_REGISTER_OFFSET,8,3       ; @DMA0_REGISTER_OFFSET
	.comm	_DMA_RB_WPTR,8,3                ; @DMA_RB_WPTR
	.comm	_DMA_PACKET_NOP,4,2             ; @DMA_PACKET_NOP
	.comm	_CAYMAN_WB_DMA1_RPTR_OFFSET,4,2 ; @CAYMAN_WB_DMA1_RPTR_OFFSET
	.comm	_DMA1_REGISTER_OFFSET,8,3       ; @DMA1_REGISTER_OFFSET
l_.str.7:                               ; @.str.7
	.asciz	"IB initialization failed (%d).\n"

l_.str.8:                               ; @.str.8
	.asciz	"vm manager initialization failed (%d).\n"

	.no_dead_strip	_cayman_startup
.subsections_via_symbols
