	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rs600_resume                   ## -- Begin function rs600_resume
	.p2align	4, 0x90
_rs600_resume:                          ## @rs600_resume
	.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	%rdi, %rbx
	callq	_rs600_gart_disable
	movq	%rbx, %rdi
	callq	_rv515_clock_startup
	movq	%rbx, %rdi
	callq	_radeon_asic_reset
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %r14d
	movq	_R_000E40_RBBM_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %r15d
	movq	_R_0007C0_CP_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_dev_warn
LBB0_2:
	movl	4(%rbx), %edi
	callq	_atom_asic_init
	movq	%rbx, %rdi
	callq	_rv515_clock_startup
	movq	%rbx, %rdi
	callq	_radeon_surface_init
	movl	$1, (%rbx)
	movq	%rbx, %rdi
	callq	_rs600_startup
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	$0, (%rbx)
LBB0_4:
	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	"GPU reset failed ! (0xE40=0x%08X, 0x7C0=0x%08X)\n"

	.comm	_R_000E40_RBBM_STATUS,4,2       ## @R_000E40_RBBM_STATUS
	.comm	_R_0007C0_CP_STAT,4,2           ## @R_0007C0_CP_STAT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rs600_resume                   ; -- Begin function rs600_resume
	.p2align	2
_rs600_resume:                          ; @rs600_resume
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	bl	_rs600_gart_disable
	mov	x0, x19
	bl	_rv515_clock_startup
	mov	x0, x19
	bl	_radeon_asic_reset
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w20, [x19, #8]
Lloh0:
	adrp	x8, _R_000E40_RBBM_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R_000E40_RBBM_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_RREG32
	mov	x21, x0
Lloh3:
	adrp	x8, _R_0007C0_CP_STAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _R_0007C0_CP_STAT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_RREG32
	mov	x3, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_warn
LBB0_2:
	ldr	w0, [x19, #4]
	bl	_atom_asic_init
	mov	x0, x19
	bl	_rv515_clock_startup
	mov	x0, x19
	bl	_radeon_surface_init
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x19
	bl	_rs600_startup
	cbz	w0, LBB0_4
; %bb.3:
	str	wzr, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GPU reset failed ! (0xE40=0x%08X, 0x7C0=0x%08X)\n"

	.comm	_R_000E40_RBBM_STATUS,4,2       ; @R_000E40_RBBM_STATUS
	.comm	_R_0007C0_CP_STAT,4,2           ; @R_0007C0_CP_STAT
.subsections_via_symbols
