	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_open
_bnx2_open:                             ## @bnx2_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, %r12
	movq	%rax, %rdi
	callq	_bnx2_request_firmware
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_netif_carrier_off
	movq	%r12, %rdi
	callq	_bnx2_disable_int
	movq	_disable_msi@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_bnx2_setup_int_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movq	%r12, %rdi
	callq	_bnx2_init_napi
	movq	%r12, %rdi
	callq	_bnx2_napi_enable
	movq	%r12, %rdi
	callq	_bnx2_alloc_mem
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movq	%r12, %rdi
	callq	_bnx2_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_bnx2_init_nic
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
LBB0_11:
	movq	%r12, %rdi
	callq	_bnx2_napi_disable
	movq	%r12, %rdi
	callq	_bnx2_free_skbs
	movq	%r12, %rdi
	callq	_bnx2_free_irq
	movq	%r12, %rdi
	callq	_bnx2_free_mem
	movq	%r12, %rdi
	callq	_bnx2_del_napi
	movq	%r12, %rdi
	callq	_bnx2_release_firmware
	jmp	LBB0_19
LBB0_1:
	movl	%eax, %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	4(%r12), %r15
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	24(%r12), %rsi
	addq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_mod_timer
	movq	%r12, %rdi
	addq	$16, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movl	12(%r12), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r12, %rdi
	callq	_bnx2_enable_int
	movq	_BNX2_FLAG_USING_MSI@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, (%r12)
	je	LBB0_13
## %bb.7:
	movq	%r12, %rdi
	callq	_bnx2_test_intr
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	movl	8(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_warn
	movq	%r12, %rdi
	callq	_bnx2_disable_int
	movq	%r12, %rdi
	callq	_bnx2_free_irq
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_bnx2_setup_int_mode
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_bnx2_init_nic
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	callq	_bnx2_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_12
LBB0_10:
	movq	%r15, %rdi
	callq	_del_timer_sync
	jmp	LBB0_11
LBB0_12:
	movq	%r12, %rdi
	callq	_bnx2_enable_int
LBB0_13:
	movl	(%r12), %eax
	testl	%eax, (%r13)
	je	LBB0_15
## %bb.14:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_17
LBB0_15:
	movq	_BNX2_FLAG_USING_MSIX@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_18
## %bb.16:
	leaq	L_.str.2(%rip), %rsi
LBB0_17:
	movq	%r14, %rdi
	callq	_netdev_info
LBB0_18:
	movq	%r14, %rdi
	callq	_netif_tx_start_all_queues
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_disable_msi,4,2                ## @disable_msi
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_BNX2_FLAG_USING_MSI,4,2        ## @BNX2_FLAG_USING_MSI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No interrupt was generated using MSI, switching to INTx mode. Please report this failure to the PCI maintainer and include system chipset information.\n"

L_.str.1:                               ## @.str.1
	.asciz	"using MSI\n"

	.comm	_BNX2_FLAG_USING_MSIX,4,2       ## @BNX2_FLAG_USING_MSIX
L_.str.2:                               ## @.str.2
	.asciz	"using MSIX\n"

	.no_dead_strip	_bnx2_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_open
_bnx2_open:                             ; @bnx2_open
	.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	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	bl	_bnx2_request_firmware
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x0, x20
	bl	_netif_carrier_off
	mov	x0, x19
	bl	_bnx2_disable_int
Lloh0:
	adrp	x8, _disable_msi@GOTPAGE
Lloh1:
	ldr	x8, [x8, _disable_msi@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bnx2_setup_int_mode
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_bnx2_init_napi
	mov	x0, x19
	bl	_bnx2_napi_enable
	mov	x0, x19
	bl	_bnx2_alloc_mem
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_bnx2_request_irq
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #1
	bl	_bnx2_init_nic
	mov	x22, x0
	cbz	w0, LBB0_8
LBB0_5:
	mov	x0, x19
	bl	_bnx2_napi_disable
	mov	x0, x19
	bl	_bnx2_free_skbs
	mov	x0, x19
	bl	_bnx2_free_irq
	mov	x0, x19
	bl	_bnx2_free_mem
	mov	x0, x19
	bl	_bnx2_del_napi
	mov	x0, x19
	bl	_bnx2_release_firmware
	b	LBB0_7
LBB0_6:
	mov	x22, x0
LBB0_7:
	mov	x0, x22
	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
LBB0_8:
	add	x21, x19, #4
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x19, #24]
	add	x1, x9, x8
	mov	x0, x21
	bl	_mod_timer
	add	x0, x19, #16
	mov	w1, #0
	bl	_atomic_set
	ldr	w0, [x19, #12]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x19
	bl	_bnx2_enable_int
	ldr	w8, [x19]
Lloh6:
	adrp	x23, _BNX2_FLAG_USING_MSI@GOTPAGE
Lloh7:
	ldr	x23, [x23, _BNX2_FLAG_USING_MSI@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.9:
	mov	x0, x19
	bl	_bnx2_test_intr
	cbz	x0, LBB0_14
; %bb.10:
	ldr	w0, [x19, #8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_warn
	mov	x0, x19
	bl	_bnx2_disable_int
	mov	x0, x19
	bl	_bnx2_free_irq
	mov	x0, x19
	mov	w1, #1
	bl	_bnx2_setup_int_mode
	mov	x0, x19
	mov	w1, #0
	bl	_bnx2_init_nic
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_bnx2_request_irq
	mov	x22, x0
	cbz	w0, LBB0_13
LBB0_12:
	mov	x0, x21
	bl	_del_timer_sync
	b	LBB0_5
LBB0_13:
	mov	x0, x19
	bl	_bnx2_enable_int
LBB0_14:
	ldr	w8, [x19]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.15:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_16:
Lloh12:
	adrp	x9, _BNX2_FLAG_USING_MSIX@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BNX2_FLAG_USING_MSIX@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.17:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_18:
	mov	x0, x20
	bl	_netdev_info
LBB0_19:
	mov	x0, x20
	bl	_netif_tx_start_all_queues
	mov	w22, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_disable_msi,4,2                ; @disable_msi
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_BNX2_FLAG_USING_MSI,4,2        ; @BNX2_FLAG_USING_MSI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No interrupt was generated using MSI, switching to INTx mode. Please report this failure to the PCI maintainer and include system chipset information.\n"

l_.str.1:                               ; @.str.1
	.asciz	"using MSI\n"

	.comm	_BNX2_FLAG_USING_MSIX,4,2       ; @BNX2_FLAG_USING_MSIX
l_.str.2:                               ; @.str.2
	.asciz	"using MSIX\n"

	.no_dead_strip	_bnx2_open
.subsections_via_symbols
