	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_pmops_runtime_resume
_radeon_pmops_runtime_resume:           ## @radeon_pmops_runtime_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
	callq	_to_pci_dev
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_pci_get_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_radeon_is_px
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_DRM_SWITCH_POWER_CHANGING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	callq	_radeon_is_atpx_hybrid
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_radeon_has_atpx_dgpu_power_cntl
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	movq	_PCI_D0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_pci_set_power_state
LBB0_5:
	movq	%r15, %rdi
	callq	_pci_restore_state
	movq	%r15, %rdi
	callq	_pci_enable_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_pci_set_master
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_radeon_resume_kms
	movq	%r14, %rdi
	callq	_drm_kms_helper_poll_enable
	movq	_DRM_SWITCH_POWER_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRM_SWITCH_POWER_CHANGING,4,2  ## @DRM_SWITCH_POWER_CHANGING
	.comm	_PCI_D0,4,2                     ## @PCI_D0
	.comm	_DRM_SWITCH_POWER_ON,4,2        ## @DRM_SWITCH_POWER_ON
	.no_dead_strip	_radeon_pmops_runtime_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_pmops_runtime_resume
_radeon_pmops_runtime_resume:           ; @radeon_pmops_runtime_resume
	.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
	bl	_to_pci_dev
	mov	x20, x0
	bl	_pci_get_drvdata
	mov	x19, x0
	bl	_radeon_is_px
	cbz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _DRM_SWITCH_POWER_CHANGING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_SWITCH_POWER_CHANGING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
	bl	_radeon_is_atpx_hybrid
	cbnz	x0, LBB0_3
; %bb.2:
	bl	_radeon_has_atpx_dgpu_power_cntl
	cbnz	w0, LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _PCI_D0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_D0@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pci_set_power_state
LBB0_4:
	mov	x0, x20
	bl	_pci_restore_state
	mov	x0, x20
	bl	_pci_enable_device
	cbnz	w0, LBB0_7
; %bb.5:
	mov	x0, x20
	bl	_pci_set_master
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_radeon_resume_kms
	mov	x0, x19
	bl	_drm_kms_helper_poll_enable
	mov	w0, #0
Lloh6:
	adrp	x8, _DRM_SWITCH_POWER_ON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DRM_SWITCH_POWER_ON@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRM_SWITCH_POWER_CHANGING,4,2  ; @DRM_SWITCH_POWER_CHANGING
	.comm	_PCI_D0,4,2                     ; @PCI_D0
	.comm	_DRM_SWITCH_POWER_ON,4,2        ; @DRM_SWITCH_POWER_ON
	.no_dead_strip	_radeon_pmops_runtime_resume
.subsections_via_symbols
