	.file	"extr_rs600.c_rs600_startup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed initializing CP fences (%d).\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"failed initializing CP (%d).\n"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"IB initialization failed (%d).\n"
	.section	.rodata.str1.1
.LC3:
	.string	"failed initializing audio\n"
	.text
	.p2align 4
	.type	rs600_startup, @function
rs600_startup:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	rs600_mc_program@PLT
	mov	rdi, rbx
	call	rv515_clock_startup@PLT
	mov	rdi, rbx
	call	rs600_gpu_init@PLT
	mov	rdi, rbx
	call	rs600_gart_enable@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L15
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, rbx
	call	radeon_wb_init@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	esi, DWORD PTR RADEON_RING_TYPE_GFX_INDEX[rip]
	mov	rdi, rbx
	call	radeon_fence_driver_start_ring@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L16
	mov	eax, DWORD PTR 8[rbx]
	test	eax, eax
	jne	.L7
	mov	rdi, rbx
	call	radeon_irq_kms_init@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
.L7:
	mov	rdi, rbx
	call	rs600_irq_set@PLT
	mov	edi, DWORD PTR RADEON_HOST_PATH_CNTL[rip]
	call	RREG32@PLT
	mov	esi, 1048576
	mov	rdi, rbx
	mov	DWORD PTR 4[rbx], eax
	call	r100_cp_init@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L17
	mov	rdi, rbx
	call	radeon_ib_pool_init@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L18
	mov	rdi, rbx
	call	radeon_audio_init@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, DWORD PTR [rbx]
	mov	edx, eax
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR [rbx]
	mov	edx, eax
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, DWORD PTR [rbx]
	mov	edx, eax
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	rs600_startup, .-rs600_startup
	.comm	RADEON_RING_TYPE_GFX_INDEX,4,4
	.comm	RADEON_HOST_PATH_CNTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_rs600.c_rs600_startup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed initializing CP fences (%d).\012\000"
	.align	2
.LC1:
	.ascii	"failed initializing CP (%d).\012\000"
	.align	2
.LC2:
	.ascii	"IB initialization failed (%d).\012\000"
	.align	2
.LC3:
	.ascii	"failed initializing audio\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rs600_startup, %function
rs600_startup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	rs600_mc_program
	mov	r0, r5
	bl	rv515_clock_startup
	mov	r0, r5
	bl	rs600_gpu_init
	mov	r0, r5
	bl	rs600_gart_enable
	subs	r4, r0, #0
	beq	.L15
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L15:
	mov	r0, r5
	bl	radeon_wb_init
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L19
	mov	r0, r5
	ldr	r1, [r3]
	bl	radeon_fence_driver_start_ring
	subs	r4, r0, #0
	bne	.L16
	ldr	r3, [r5, #8]
	cmp	r3, #0
	bne	.L7
	mov	r0, r5
	bl	radeon_irq_kms_init
	subs	r4, r0, #0
	bne	.L1
.L7:
	mov	r0, r5
	bl	rs600_irq_set
	ldr	r3, .L19+4
	ldr	r0, [r3]
	bl	RREG32
	mov	r1, #1048576
	str	r0, [r5, #4]
	mov	r0, r5
	bl	r100_cp_init
	subs	r4, r0, #0
	bne	.L17
	mov	r0, r5
	bl	radeon_ib_pool_init
	subs	r4, r0, #0
	bne	.L18
	mov	r0, r5
	bl	radeon_audio_init
	subs	r4, r0, #0
	beq	.L1
	ldr	r0, [r5]
	ldr	r1, .L19+8
	bl	dev_err
	b	.L1
.L17:
	mov	r2, r4
	ldr	r0, [r5]
	ldr	r1, .L19+12
	bl	dev_err
	b	.L1
.L16:
	mov	r2, r4
	ldr	r0, [r5]
	ldr	r1, .L19+16
	bl	dev_err
	b	.L1
.L18:
	mov	r2, r4
	ldr	r0, [r5]
	ldr	r1, .L19+20
	bl	dev_err
	b	.L1
.L20:
	.align	2
.L19:
	.word	RADEON_RING_TYPE_GFX_INDEX
	.word	RADEON_HOST_PATH_CNTL
	.word	.LC3
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.size	rs600_startup, .-rs600_startup
	.comm	RADEON_RING_TYPE_GFX_INDEX,4,4
	.comm	RADEON_HOST_PATH_CNTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
