	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_pmops_runtime_suspend
_radeon_pmops_runtime_suspend:          ## @radeon_pmops_runtime_suspend
	.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	_to_pci_dev
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_pci_get_drvdata
	movq	%rax, %r15
	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, (%r15)
	movq	%r15, %rdi
	callq	_drm_kms_helper_poll_disable
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_radeon_suspend_kms
	movq	%r14, %rdi
	callq	_pci_save_state
	movq	%r14, %rdi
	callq	_pci_disable_device
	movq	%r14, %rdi
	callq	_pci_ignore_hotplug
	xorl	%eax, %eax
	callq	_radeon_is_atpx_hybrid
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_PCI_D3cold@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pci_set_power_state
	jmp	LBB0_7
LBB0_1:
	movq	%rbx, %rdi
	callq	_pm_runtime_forbid
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_4:
	xorl	%eax, %eax
	callq	_radeon_has_atpx_dgpu_power_cntl
	testl	%eax, %eax
	je	LBB0_5
LBB0_7:
	movq	_DRM_SWITCH_POWER_DYNAMIC_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_PCI_D3hot@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_DRM_SWITCH_POWER_CHANGING,4,2  ## @DRM_SWITCH_POWER_CHANGING
	.comm	_PCI_D3cold,4,2                 ## @PCI_D3cold
	.comm	_PCI_D3hot,4,2                  ## @PCI_D3hot
	.comm	_DRM_SWITCH_POWER_DYNAMIC_OFF,4,2 ## @DRM_SWITCH_POWER_DYNAMIC_OFF
	.no_dead_strip	_radeon_pmops_runtime_suspend
.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_suspend
_radeon_pmops_runtime_suspend:          ; @radeon_pmops_runtime_suspend
	.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	x21, x0
	bl	_to_pci_dev
	mov	x20, x0
	bl	_pci_get_drvdata
	mov	x19, x0
	bl	_radeon_is_px
	cbz	w0, LBB0_4
; %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]
	mov	x0, x19
	bl	_drm_kms_helper_poll_disable
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_radeon_suspend_kms
	mov	x0, x20
	bl	_pci_save_state
	mov	x0, x20
	bl	_pci_disable_device
	mov	x0, x20
	bl	_pci_ignore_hotplug
	bl	_radeon_is_atpx_hybrid
	cbz	x0, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _PCI_D3cold@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_D3cold@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pci_set_power_state
	b	LBB0_6
LBB0_4:
	mov	x0, x21
	bl	_pm_runtime_forbid
Lloh5:
	adrp	x8, _EBUSY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_5:
	bl	_radeon_has_atpx_dgpu_power_cntl
	cbz	w0, LBB0_8
LBB0_6:
	mov	w0, #0
Lloh8:
	adrp	x8, _DRM_SWITCH_POWER_DYNAMIC_OFF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRM_SWITCH_POWER_DYNAMIC_OFF@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_7:
	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
LBB0_8:
Lloh11:
	adrp	x8, _PCI_D3hot@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCI_D3hot@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_DRM_SWITCH_POWER_CHANGING,4,2  ; @DRM_SWITCH_POWER_CHANGING
	.comm	_PCI_D3cold,4,2                 ; @PCI_D3cold
	.comm	_PCI_D3hot,4,2                  ; @PCI_D3hot
	.comm	_DRM_SWITCH_POWER_DYNAMIC_OFF,4,2 ; @DRM_SWITCH_POWER_DYNAMIC_OFF
	.no_dead_strip	_radeon_pmops_runtime_suspend
.subsections_via_symbols
