	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_open
_bnxt_open:                             ## @bnxt_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_BNXT_STATE_ABORT_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %r15
	addq	$4, %r15
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_2:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_bnxt_hwrm_if_change
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	___bnxt_open_nic
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bnxt_hwrm_if_change
	jmp	LBB0_10
LBB0_5:
	movq	_BNXT_STATE_FW_RESET_DET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%r14, %rdi
	callq	_BNXT_PF
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	(%r14), %eax
	movl	%eax, -28(%rbp)
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	leaq	-28(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_bnxt_cfg_hw_sriov
LBB0_9:
	movq	%r14, %rdi
	callq	_bnxt_hwmon_open
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_STATE_ABORT_ERR,4,2       ## @BNXT_STATE_ABORT_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"A previous firmware reset did not complete, aborting\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_BNXT_STATE_FW_RESET_DET,4,2    ## @BNXT_STATE_FW_RESET_DET
	.no_dead_strip	_bnxt_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_open
_bnxt_open:                             ; @bnxt_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
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _BNXT_STATE_ABORT_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNXT_STATE_ABORT_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x20, x19, #4
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_2:
	mov	x0, x19
	mov	w1, #1
	bl	_bnxt_hwrm_if_change
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	___bnxt_open_nic
	cbz	w0, LBB0_5
; %bb.4:
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	bl	_bnxt_hwrm_if_change
	b	LBB0_10
LBB0_5:
Lloh8:
	adrp	x8, _BNXT_STATE_FW_RESET_DET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BNXT_STATE_FW_RESET_DET@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_9
; %bb.6:
	mov	x0, x19
	bl	_BNXT_PF
	cbz	x0, LBB0_9
; %bb.7:
	ldr	w8, [x19]
	str	w8, [sp, #12]
	cbz	w8, LBB0_9
; %bb.8:
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #1
	bl	_bnxt_cfg_hw_sriov
LBB0_9:
	mov	x0, x19
	bl	_bnxt_hwmon_open
	mov	w21, #0
LBB0_10:
	mov	x0, x21
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_STATE_ABORT_ERR,4,2       ; @BNXT_STATE_ABORT_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"A previous firmware reset did not complete, aborting\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_BNXT_STATE_FW_RESET_DET,4,2    ; @BNXT_STATE_FW_RESET_DET
	.no_dead_strip	_bnxt_open
.subsections_via_symbols
