	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mtip_pci_resume
_mtip_pci_resume:                       ## @mtip_pci_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	_pci_get_drvdata
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	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	_pcim_enable_device
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_pci_set_master
	movq	%r14, %rdi
	callq	_mtip_block_resume
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_3:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	movq	%rbx, %rdi
	callq	_dev_err
LBB0_7:
	movq	_MTIP_DDF_RESUME_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
LBB0_8:
	movl	%r15d, %eax
	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	"Driver private datastructure is NULL\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_PCI_D0,4,2                     ## @PCI_D0
L_.str.1:                               ## @.str.1
	.asciz	"Failed to enable card during resume\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unable to resume\n"

	.comm	_MTIP_DDF_RESUME_BIT,4,2        ## @MTIP_DDF_RESUME_BIT
	.no_dead_strip	_mtip_pci_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mtip_pci_resume
_mtip_pci_resume:                       ; @mtip_pci_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	x20, x0
	bl	_pci_get_drvdata
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _PCI_D0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_D0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pci_set_power_state
	mov	x0, x20
	bl	_pci_restore_state
	mov	x0, x20
	bl	_pcim_enable_device
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_pci_set_master
	mov	x0, x19
	bl	_mtip_block_resume
	mov	x21, x0
	tbz	w0, #31, LBB0_7
; %bb.3:
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh7:
	adrp	x8, _EFAULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_5:
	mov	x21, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x20
	bl	_dev_err
LBB0_7:
Lloh12:
	adrp	x8, _MTIP_DDF_RESUME_BIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MTIP_DDF_RESUME_BIT@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_clear_bit
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Driver private datastructure is NULL\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_PCI_D0,4,2                     ; @PCI_D0
l_.str.1:                               ; @.str.1
	.asciz	"Failed to enable card during resume\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unable to resume\n"

	.comm	_MTIP_DDF_RESUME_BIT,4,2        ; @MTIP_DDF_RESUME_BIT
	.no_dead_strip	_mtip_pci_resume
.subsections_via_symbols
