	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __bnxt_open_nic
___bnxt_open_nic:                       ## @__bnxt_open_nic
	.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
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_bnxt_preset_reg_win
	movq	24(%r15), %rdi
	callq	_netif_carrier_off
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_bnxt_init_dflt_ring_mode
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	movq	24(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_24
LBB0_3:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_bnxt_reserve_rings
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
## %bb.4:
	movl	(%r15), %eax
	movq	_BNXT_FLAG_RFS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:
	movq	_BNXT_FLAG_USING_MSIX@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	jne	LBB0_7
## %bb.6:
	movq	_NETIF_F_NTUPLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	movq	24(%r15), %rsi
	andl	%edx, (%rsi)
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r15)
LBB0_7:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_bnxt_alloc_mem
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %ebx
	movq	24(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_9
LBB0_10:
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.11:
	movq	%r15, %rdi
	callq	_bnxt_init_napi
	movq	%r15, %rdi
	callq	_bnxt_request_irq
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movl	%eax, %ebx
	movq	24(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_13
LBB0_14:
	movq	%r15, %rdi
	callq	_bnxt_enable_napi
	movq	%r15, %rdi
	callq	_bnxt_debug_dev_init
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_bnxt_init_nic
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	movq	24(%r15), %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_netdev_err
	movq	%r15, %rdi
	callq	_bnxt_debug_dev_exit
	movq	%r15, %rdi
	callq	_bnxt_disable_napi
LBB0_13:
	movq	%r15, %rdi
	callq	_bnxt_del_napi
LBB0_9:
	movq	%r15, %rdi
	callq	_bnxt_free_skbs
	movq	%r15, %rdi
	callq	_bnxt_free_irq
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_bnxt_free_mem
LBB0_24:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	testl	%r12d, %r12d
	je	LBB0_20
## %bb.17:
	leaq	48(%r15), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_bnxt_update_phy_setting
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	testl	%r12d, %r12d
	je	LBB0_20
## %bb.18:
	movq	24(%r15), %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_netdev_warn
	movq	%r15, %rdi
	callq	_BNXT_SINGLE_PF
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movl	$1, 32(%r15)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	addq	(%rax), %rcx
	movq	%rcx, 40(%r15)
LBB0_20:
	testl	%r14d, %r14d
	je	LBB0_22
## %bb.21:
	movq	24(%r15), %rdi
	callq	_udp_tunnel_get_rx_info
LBB0_22:
	movq	_BNXT_STATE_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%r15), %rsi
	callq	_set_bit
	movq	%r15, %rdi
	callq	_bnxt_enable_int
	movq	%r15, %rdi
	callq	_bnxt_tx_enable
	leaq	16(%r15), %rdi
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	8(%r15), %rsi
	addq	(%rax), %rsi
	callq	_mod_timer
	movq	%r15, %rdi
	callq	_bnxt_get_port_module_status
	movq	%r15, %rdi
	callq	_BNXT_PF
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	%r15, %rdi
	callq	_bnxt_vf_reps_open
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to reserve default rings at open\n"

	.comm	_BNXT_FLAG_RFS,4,2              ## @BNXT_FLAG_RFS
	.comm	_BNXT_FLAG_USING_MSIX,4,2       ## @BNXT_FLAG_USING_MSIX
	.comm	_NETIF_F_NTUPLE,4,2             ## @NETIF_F_NTUPLE
L_.str.1:                               ## @.str.1
	.asciz	"bnxt_alloc_mem err: %x\n"

L_.str.2:                               ## @.str.2
	.asciz	"bnxt_request_irq err: %x\n"

L_.str.3:                               ## @.str.3
	.asciz	"bnxt_init_nic err: %x\n"

L_.str.4:                               ## @.str.4
	.asciz	"failed to update phy settings\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_BNXT_STATE_OPEN,4,2            ## @BNXT_STATE_OPEN
	.no_dead_strip	___bnxt_open_nic
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __bnxt_open_nic
___bnxt_open_nic:                       ; @__bnxt_open_nic
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_bnxt_preset_reg_win
	ldr	x0, [x19, #24]
	bl	_netif_carrier_off
	cbz	w20, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_bnxt_init_dflt_ring_mode
	cbz	w0, LBB0_3
; %bb.2:
	mov	x22, x0
	ldr	x0, [x19, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
	b	LBB0_16
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_bnxt_reserve_rings
	mov	x22, x0
	cbnz	w0, LBB0_16
; %bb.4:
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _BNXT_FLAG_RFS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BNXT_FLAG_RFS@GOTPAGEOFF]
	ldr	w10, [x9]
	tst	w10, w8
	b.eq	LBB0_7
; %bb.5:
Lloh4:
	adrp	x10, _BNXT_FLAG_USING_MSIX@GOTPAGE
Lloh5:
	ldr	x10, [x10, _BNXT_FLAG_USING_MSIX@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x10]
	tst	w10, w8
	b.ne	LBB0_7
; %bb.6:
Lloh7:
	adrp	x10, _NETIF_F_NTUPLE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _NETIF_F_NTUPLE@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	ldr	x11, [x19, #24]
	ldr	w12, [x11]
	bic	w10, w12, w10
	str	w10, [x11]
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x19]
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_bnxt_alloc_mem
	cbz	w0, LBB0_9
; %bb.8:
	mov	x22, x0
	ldr	x0, [x19, #24]
	str	x22, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_err
	b	LBB0_15
LBB0_9:
	cbz	w20, LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_bnxt_init_napi
	mov	x0, x19
	bl	_bnxt_request_irq
	cbz	w0, LBB0_12
; %bb.11:
	mov	x22, x0
	ldr	x0, [x19, #24]
	str	x22, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_netdev_err
	b	LBB0_14
LBB0_12:
	mov	x0, x19
	bl	_bnxt_enable_napi
	mov	x0, x19
	bl	_bnxt_debug_dev_init
	mov	x0, x19
	mov	x1, x20
	bl	_bnxt_init_nic
	cbz	w0, LBB0_17
; %bb.13:
	mov	x22, x0
	ldr	x0, [x19, #24]
	str	x22, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_netdev_err
	mov	x0, x19
	bl	_bnxt_debug_dev_exit
	mov	x0, x19
	bl	_bnxt_disable_napi
LBB0_14:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	mov	x0, x19
	bl	_bnxt_del_napi
LBB0_15:
	mov	x0, x19
	bl	_bnxt_free_skbs
	mov	x0, x19
	bl	_bnxt_free_irq
	mov	x0, x19
	mov	w1, #1
	bl	_bnxt_free_mem
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_17:
Lloh16:
	adrp	x23, _jiffies@GOTPAGE
Lloh17:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	cbz	w21, LBB0_21
; %bb.18:
	add	x21, x19, #48
	mov	x0, x21
	bl	_mutex_lock
	mov	x0, x19
	bl	_bnxt_update_phy_setting
	mov	x22, x0
	mov	x0, x21
	bl	_mutex_unlock
	cbz	w22, LBB0_21
; %bb.19:
	ldr	x0, [x19, #24]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_netdev_warn
	mov	x0, x19
	bl	_BNXT_SINGLE_PF
	cbz	x0, LBB0_21
; %bb.20:
	mov	w8, #1
	str	w8, [x19, #32]
	ldr	x8, [x23]
Lloh20:
	adrp	x9, _HZ@GOTPAGE
Lloh21:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh22:
	ldrsw	x9, [x9]
	add	x9, x9, x9, lsl #2
	add	x8, x8, x9
	str	x8, [x19, #40]
LBB0_21:
	cbz	w20, LBB0_23
; %bb.22:
	ldr	x0, [x19, #24]
	bl	_udp_tunnel_get_rx_info
LBB0_23:
Lloh23:
	adrp	x8, _BNXT_STATE_OPEN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BNXT_STATE_OPEN@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	add	x1, x19, #20
	bl	_set_bit
	mov	x0, x19
	bl	_bnxt_enable_int
	mov	x0, x19
	bl	_bnxt_tx_enable
	add	x0, x19, #16
	ldr	x8, [x23]
	ldr	x9, [x19, #8]
	add	x1, x9, x8
	bl	_mod_timer
	mov	x0, x19
	bl	_bnxt_get_port_module_status
	mov	x0, x19
	bl	_BNXT_PF
	cbz	x0, LBB0_25
; %bb.24:
	mov	x0, x19
	bl	_bnxt_vf_reps_open
LBB0_25:
	mov	w22, #0
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to reserve default rings at open\n"

	.comm	_BNXT_FLAG_RFS,4,2              ; @BNXT_FLAG_RFS
	.comm	_BNXT_FLAG_USING_MSIX,4,2       ; @BNXT_FLAG_USING_MSIX
	.comm	_NETIF_F_NTUPLE,4,2             ; @NETIF_F_NTUPLE
l_.str.1:                               ; @.str.1
	.asciz	"bnxt_alloc_mem err: %x\n"

l_.str.2:                               ; @.str.2
	.asciz	"bnxt_request_irq err: %x\n"

l_.str.3:                               ; @.str.3
	.asciz	"bnxt_init_nic err: %x\n"

l_.str.4:                               ; @.str.4
	.asciz	"failed to update phy settings\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_BNXT_STATE_OPEN,4,2            ; @BNXT_STATE_OPEN
	.no_dead_strip	___bnxt_open_nic
.subsections_via_symbols
