	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function t3_reenable_adapter
_t3_reenable_adapter:                   ## @t3_reenable_adapter
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_pci_enable_device
	movq	(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_2
LBB0_3:
	callq	_pci_set_master
	movq	(%rbx), %rdi
	callq	_pci_restore_state
	movq	(%rbx), %rdi
	callq	_pci_save_state
	movq	%rbx, %rdi
	callq	_t3_free_sge_resources
	movq	%rbx, %rdi
	callq	_t3_replay_prep_adapter
	testq	%rax, %rax
	je	LBB0_4
LBB0_2:
	movl	$-1, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot re-enable PCI device after reset.\n"

	.no_dead_strip	_t3_reenable_adapter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function t3_reenable_adapter
_t3_reenable_adapter:                   ; @t3_reenable_adapter
	.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
	mov	x19, x0
	ldr	x0, [x0]
	bl	_pci_enable_device
	mov	x8, x0
	ldr	x0, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_3
LBB0_2:
	bl	_pci_set_master
	ldr	x0, [x19]
	bl	_pci_restore_state
	ldr	x0, [x19]
	bl	_pci_save_state
	mov	x0, x19
	bl	_t3_free_sge_resources
	mov	x0, x19
	bl	_t3_replay_prep_adapter
	cbz	x0, LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot re-enable PCI device after reset.\n"

	.no_dead_strip	_t3_reenable_adapter
.subsections_via_symbols
