	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_io_slot_reset
_bnx2_io_slot_reset:                    ## @bnx2_io_slot_reset
	.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, %rbx
	callq	_pci_get_drvdata
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_PCI_ERS_RESULT_DISCONNECT@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	%rbx, %rdi
	callq	_pci_enable_device
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	callq	_pci_set_master
	movq	%rbx, %rdi
	callq	_pci_restore_state
	movq	%rbx, %rdi
	callq	_pci_save_state
	movq	%r14, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_bnx2_init_nic
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	movq	_PCI_ERS_RESULT_RECOVERED@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_5:
	movq	_PCI_ERS_RESULT_RECOVERED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	je	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_bnx2_napi_enable
	movq	%r14, %rdi
	callq	_dev_close
LBB0_8:
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_ERS_RESULT_DISCONNECT,8,3  ## @PCI_ERS_RESULT_DISCONNECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot re-enable PCI device after reset\n"

	.comm	_PCI_ERS_RESULT_RECOVERED,8,3   ## @PCI_ERS_RESULT_RECOVERED
	.comm	_BNX2_FLAG_AER_ENABLED,4,2      ## @BNX2_FLAG_AER_ENABLED
	.no_dead_strip	_bnx2_io_slot_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_io_slot_reset
_bnx2_io_slot_reset:                    ; @bnx2_io_slot_reset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x0
	bl	_pci_get_drvdata
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x8, _PCI_ERS_RESULT_DISCONNECT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_ERS_RESULT_DISCONNECT@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	bl	_rtnl_lock
	mov	x0, x22
	bl	_pci_enable_device
Lloh3:
	adrp	x23, _PCI_ERS_RESULT_RECOVERED@GOTPAGE
Lloh4:
	ldr	x23, [x23, _PCI_ERS_RESULT_RECOVERED@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	b	LBB0_5
LBB0_2:
	mov	x0, x22
	bl	_pci_set_master
	mov	x0, x22
	bl	_pci_restore_state
	mov	x0, x22
	bl	_pci_save_state
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x21
	mov	w1, #1
	bl	_bnx2_init_nic
	cbnz	w0, LBB0_5
LBB0_4:
	ldr	x20, [x23]
LBB0_5:
	ldr	x8, [x23]
	cmp	x20, x8
	b.eq	LBB0_8
; %bb.6:
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_bnx2_napi_enable
	mov	x0, x19
	bl	_dev_close
LBB0_8:
	bl	_rtnl_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_ERS_RESULT_DISCONNECT,8,3  ; @PCI_ERS_RESULT_DISCONNECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot re-enable PCI device after reset\n"

	.comm	_PCI_ERS_RESULT_RECOVERED,8,3   ; @PCI_ERS_RESULT_RECOVERED
	.comm	_BNX2_FLAG_AER_ENABLED,4,2      ; @BNX2_FLAG_AER_ENABLED
	.no_dead_strip	_bnx2_io_slot_reset
.subsections_via_symbols
