	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_open
_bnx2x_open:                            ## @bnx2x_open
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r13
	movl	$1, (%rax)
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	_PCI_D0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_bnx2x_set_power_state
	movq	%r13, %rdi
	callq	_IS_PF
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%r13, %rdi
	callq	_BP_PATH
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movl	$0, -44(%rbp)
	movq	%r13, %rdi
	callq	_bnx2x_get_load_status
	movl	%eax, %r15d
	movq	%r13, %rdi
	callq	_BP_PATH
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_bnx2x_get_load_status
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_BP_PATH
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_bnx2x_reset_is_done
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_bnx2x_chk_parity_attn
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	cmpl	$0, -44(%rbp)
	je	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	callq	_bnx2x_set_reset_global
LBB0_5:
	testl	%r12d, %r12d
	jne	LBB0_15
## %bb.6:
	cmpl	$0, -44(%rbp)
	je	LBB0_8
## %bb.7:
	testl	%r15d, %r15d
	jne	LBB0_15
LBB0_8:
	movq	%r13, %rdi
	callq	_bnx2x_trylock_leader_lock
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	movq	%r13, %rdi
	callq	_bnx2x_leader_reset
	testl	%eax, %eax
	je	LBB0_10
LBB0_15:
	movq	_PCI_D3hot@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_bnx2x_set_power_state
	movq	_BNX2X_RECOVERY_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	leaq	L_.str.1(%rip), %rdi
	callq	_BNX2X_ERR
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_10:
	movl	8(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_info
LBB0_11:
	movq	_BNX2X_RECOVERY_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movq	_LOAD_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_bnx2x_nic_load
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	movq	%r13, %rdi
	callq	_IS_PF
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%r14, %rdi
	callq	_udp_tunnel_get_rx_info
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_D0,4,2                     ## @PCI_D0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Recovered in open\n"

	.comm	_PCI_D3hot,4,2                  ## @PCI_D3hot
	.comm	_BNX2X_RECOVERY_FAILED,4,2      ## @BNX2X_RECOVERY_FAILED
L_.str.1:                               ## @.str.1
	.asciz	"Recovery flow hasn't been properly completed yet. Try again later.\nIf you still see this message after a few retries then power cycle is required.\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_BNX2X_RECOVERY_DONE,4,2        ## @BNX2X_RECOVERY_DONE
	.comm	_LOAD_OPEN,4,2                  ## @LOAD_OPEN
	.no_dead_strip	_bnx2x_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_open
_bnx2x_open:                            ; @bnx2x_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	w8, #1
	str	w8, [x0]
	mov	x0, x19
	bl	_netif_carrier_off
Lloh0:
	adrp	x8, _PCI_D0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_D0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_bnx2x_set_power_state
	mov	x0, x20
	bl	_IS_PF
	cbz	x0, LBB0_12
; %bb.1:
	mov	x0, x20
	bl	_BP_PATH
	cmp	w0, #0
	cset	w1, eq
	str	wzr, [sp, #12]
	mov	x0, x20
	bl	_bnx2x_get_load_status
	mov	x21, x0
	mov	x0, x20
	bl	_BP_PATH
	mov	x1, x0
	mov	x0, x20
	bl	_bnx2x_get_load_status
	mov	x22, x0
	mov	x0, x20
	bl	_BP_PATH
	mov	x1, x0
	mov	x0, x20
	bl	_bnx2x_reset_is_done
	cbz	w0, LBB0_5
; %bb.2:
	add	x1, sp, #12
	mov	x0, x20
	mov	w2, #1
	bl	_bnx2x_chk_parity_attn
	cbz	x0, LBB0_12
; %bb.3:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_bnx2x_set_reset_global
LBB0_5:
	cbnz	w22, LBB0_10
; %bb.6:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_8
; %bb.7:
	cbnz	w21, LBB0_10
LBB0_8:
	mov	x0, x20
	bl	_bnx2x_trylock_leader_lock
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_bnx2x_leader_reset
	cbz	w0, LBB0_11
LBB0_10:
Lloh3:
	adrp	x8, _PCI_D3hot@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_D3hot@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_bnx2x_set_power_state
Lloh6:
	adrp	x8, _BNX2X_RECOVERY_FAILED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BNX2X_RECOVERY_FAILED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x20, #4]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BNX2X_ERR
Lloh11:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_11:
	ldr	w0, [x20, #8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_info
LBB0_12:
Lloh16:
	adrp	x8, _BNX2X_RECOVERY_DONE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _BNX2X_RECOVERY_DONE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x20, #4]
Lloh19:
	adrp	x8, _LOAD_OPEN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LOAD_OPEN@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_bnx2x_nic_load
	cbnz	w0, LBB0_15
; %bb.13:
	mov	x0, x20
	bl	_IS_PF
	cbz	x0, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_udp_tunnel_get_rx_info
	mov	w0, #0
LBB0_15:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_D0,4,2                     ; @PCI_D0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Recovered in open\n"

	.comm	_PCI_D3hot,4,2                  ; @PCI_D3hot
	.comm	_BNX2X_RECOVERY_FAILED,4,2      ; @BNX2X_RECOVERY_FAILED
l_.str.1:                               ; @.str.1
	.asciz	"Recovery flow hasn't been properly completed yet. Try again later.\nIf you still see this message after a few retries then power cycle is required.\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_BNX2X_RECOVERY_DONE,4,2        ; @BNX2X_RECOVERY_DONE
	.comm	_LOAD_OPEN,4,2                  ; @LOAD_OPEN
	.no_dead_strip	_bnx2x_open
.subsections_via_symbols
