	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_pmops_resume           ## -- Begin function nouveau_pmops_resume
	.p2align	4, 0x90
_nouveau_pmops_resume:                  ## @nouveau_pmops_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_to_pci_dev
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_pci_get_drvdata
	movq	%rax, %r14
	movq	(%rax), %rcx
	movq	_DRM_SWITCH_POWER_OFF@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.1:
	movq	_DRM_SWITCH_POWER_DYNAMIC_OFF@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.2:
	movq	_PCI_D0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pci_set_power_state
	movq	%rbx, %rdi
	callq	_pci_restore_state
	movq	%rbx, %rdi
	callq	_pci_enable_device
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_pci_set_master
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_nouveau_do_resume
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_nouveau_drm
	movq	%rax, %rdi
	callq	_schedule_work
	movl	%ebx, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_SWITCH_POWER_OFF,8,3       ## @DRM_SWITCH_POWER_OFF
	.comm	_DRM_SWITCH_POWER_DYNAMIC_OFF,8,3 ## @DRM_SWITCH_POWER_DYNAMIC_OFF
	.comm	_PCI_D0,4,2                     ## @PCI_D0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_pmops_resume           ; -- Begin function nouveau_pmops_resume
	.p2align	2
_nouveau_pmops_resume:                  ; @nouveau_pmops_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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _DRM_SWITCH_POWER_OFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_SWITCH_POWER_OFF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _DRM_SWITCH_POWER_DYNAMIC_OFF@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DRM_SWITCH_POWER_DYNAMIC_OFF@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_4
LBB0_2:
	mov	x19, x0
Lloh6:
	adrp	x8, _PCI_D0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_D0@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pci_set_power_state
	mov	x0, x20
	bl	_pci_restore_state
	mov	x0, x20
	bl	_pci_enable_device
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_pci_set_master
	mov	x0, x19
	mov	w1, #0
	bl	_nouveau_do_resume
	mov	x20, x0
	mov	x0, x19
	bl	_nouveau_drm
	bl	_schedule_work
	mov	x0, x20
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_SWITCH_POWER_OFF,8,3       ; @DRM_SWITCH_POWER_OFF
	.comm	_DRM_SWITCH_POWER_DYNAMIC_OFF,8,3 ; @DRM_SWITCH_POWER_DYNAMIC_OFF
	.comm	_PCI_D0,4,2                     ; @PCI_D0
.subsections_via_symbols
