	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_pm_resume
_efx_pm_resume:                         ## @efx_pm_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_to_pci_dev
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_pci_get_drvdata
	movq	%rax, %r14
	movq	_PCI_D0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_pci_set_power_state
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	%r12, %rdi
	callq	_pci_restore_state
	movq	%r12, %rdi
	callq	_pci_enable_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	16(%r14), %edi
	callq	_pci_set_master
	movq	8(%r14), %rax
	movq	_RESET_TYPE_ALL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_down_write
	movq	8(%r14), %rax
	movq	%r14, %rdi
	callq	*8(%rax)
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_up_write
	testl	%ebx, %ebx
	je	LBB0_5
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_efx_pm_thaw                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_D0,4,2                     ## @PCI_D0
	.comm	_RESET_TYPE_ALL,4,2             ## @RESET_TYPE_ALL
	.no_dead_strip	_efx_pm_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_pm_resume
_efx_pm_resume:                         ; @efx_pm_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	_to_pci_dev
	mov	x22, x0
	bl	_pci_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x8, _PCI_D0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_D0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_pci_set_power_state
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.1:
	mov	x0, x22
	bl	_pci_restore_state
	mov	x0, x22
	bl	_pci_enable_device
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x20, #16]
	bl	_pci_set_master
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _RESET_TYPE_ALL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RESET_TYPE_ALL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	mov	x0, x20
	blr	x8
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_down_write
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	mov	x0, x20
	blr	x8
	mov	x21, x0
	mov	x0, x20
	bl	_up_write
	cbz	w21, LBB0_5
LBB0_4:
	mov	x0, x21
	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_5:
	mov	x0, x19
	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
	b	_efx_pm_thaw
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_D0,4,2                     ; @PCI_D0
	.comm	_RESET_TYPE_ALL,4,2             ; @RESET_TYPE_ALL
	.no_dead_strip	_efx_pm_resume
.subsections_via_symbols
