	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_init_chip
_bnxt_init_chip:                        ## @bnxt_init_chip
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %r12
	movl	(%rdi), %r15d
	testl	%esi, %esi
	je	LBB0_5
## %bb.1:
	movq	%r14, %rdi
	callq	_bnxt_hwrm_stat_ctx_alloc
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_5:
	movq	%r14, %rdi
	callq	_bnxt_hwrm_ring_alloc
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_7:
	movq	%r14, %rdi
	callq	_bnxt_hwrm_ring_grp_alloc
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_9:
	movq	%r14, %rdi
	callq	_BNXT_CHIP_TYPE_NITRO_A0
	cmpq	$1, %rax
	adcl	$-1, %r15d
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	callq	_bnxt_hwrm_vnic_alloc
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
LBB0_3:
	movl	%ebx, %edx
	callq	_netdev_err
LBB0_4:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_bnxt_hwrm_resource_free
LBB0_37:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bnxt_setup_vnic
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.12:
	movl	4(%r14), %eax
	movq	_BNXT_FLAG_RFS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.13:
	movq	%r14, %rdi
	callq	_bnxt_alloc_rfs_vnics
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.14:
	movl	4(%r14), %eax
LBB0_15:
	movq	_BNXT_FLAG_TPA@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_bnxt_set_tpa
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
LBB0_17:
	movq	%r14, %rdi
	callq	_BNXT_VF
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_bnxt_update_vf_mac
LBB0_19:
	movq	8(%r14), %rax
	movl	4(%rax), %ecx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_bnxt_hwrm_set_vnic_filter
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	movl	%eax, %ebx
	movq	8(%r14), %rdi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_3
LBB0_21:
	movq	$1, (%r12)
	movq	8(%r14), %rax
	movl	(%rax), %eax
	movq	_IFF_BROADCAST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_23
## %bb.22:
	movq	_CFA_L2_SET_RX_MASK_REQ_MASK_BCAST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%r12)
LBB0_23:
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_26
## %bb.24:
	movq	%r14, %rdi
	callq	_bnxt_promisc_ok
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	_CFA_L2_SET_RX_MASK_REQ_MASK_PROMISCUOUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r12)
LBB0_26:
	movq	8(%r14), %rax
	movq	_IFF_ALLMULTI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_28
## %bb.27:
	movq	_CFA_L2_SET_RX_MASK_REQ_MASK_ALL_MCAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r12)
	movq	$0, 8(%r12)
	jmp	LBB0_29
LBB0_28:
	movl	$0, -36(%rbp)
	leaq	-36(%rbp), %rsi
	movq	%r14, %rdi
	callq	_bnxt_mc_list_updated
	movl	-36(%rbp), %eax
	orl	%eax, 4(%r12)
LBB0_29:
	movq	%r14, %rdi
	callq	_bnxt_cfg_rx_mode
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.30:
	movq	%r14, %rdi
	callq	_bnxt_hwrm_set_coal
	testl	%eax, %eax
	je	LBB0_32
## %bb.31:
	movq	8(%r14), %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_warn
LBB0_32:
	movq	%r14, %rdi
	callq	_BNXT_CHIP_TYPE_NITRO_A0
	testq	%rax, %rax
	je	LBB0_35
## %bb.33:
	movq	%r14, %rdi
	callq	_bnxt_setup_nitroa0_vnic
	testl	%eax, %eax
	je	LBB0_35
## %bb.34:
	movq	8(%r14), %rdi
	leaq	L_.str.6(%rip), %rsi
	movl	%eax, %edx
	callq	_netdev_err
LBB0_35:
	movq	%r14, %rdi
	callq	_BNXT_VF
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_37
## %bb.36:
	movq	%r14, %rdi
	callq	_bnxt_hwrm_func_qcfg
	movq	8(%r14), %rdi
	callq	_netdev_update_features
	jmp	LBB0_37
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hwrm stat ctx alloc failure rc: %x\n"

L_.str.1:                               ## @.str.1
	.asciz	"hwrm ring alloc failure rc: %x\n"

L_.str.2:                               ## @.str.2
	.asciz	"hwrm_ring_grp alloc failure: %x\n"

L_.str.3:                               ## @.str.3
	.asciz	"hwrm vnic alloc failure rc: %x\n"

	.comm	_BNXT_FLAG_RFS,4,2              ## @BNXT_FLAG_RFS
	.comm	_BNXT_FLAG_TPA,4,2              ## @BNXT_FLAG_TPA
L_.str.4:                               ## @.str.4
	.asciz	"HWRM vnic filter failure rc: %x\n"

	.comm	_IFF_BROADCAST,4,2              ## @IFF_BROADCAST
	.comm	_CFA_L2_SET_RX_MASK_REQ_MASK_BCAST,4,2 ## @CFA_L2_SET_RX_MASK_REQ_MASK_BCAST
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_CFA_L2_SET_RX_MASK_REQ_MASK_PROMISCUOUS,4,2 ## @CFA_L2_SET_RX_MASK_REQ_MASK_PROMISCUOUS
	.comm	_IFF_ALLMULTI,4,2               ## @IFF_ALLMULTI
	.comm	_CFA_L2_SET_RX_MASK_REQ_MASK_ALL_MCAST,4,2 ## @CFA_L2_SET_RX_MASK_REQ_MASK_ALL_MCAST
L_.str.5:                               ## @.str.5
	.asciz	"HWRM set coalescing failure rc: %x\n"

L_.str.6:                               ## @.str.6
	.asciz	"Special vnic setup failure for NS2 A0 rc: %x\n"

	.no_dead_strip	_bnxt_init_chip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function bnxt_init_chip
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_bnxt_init_chip:                        ; @bnxt_init_chip
	.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
	ldr	x21, [x0, #16]
	ldr	w22, [x0]
	cbz	w1, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_bnxt_hwrm_stat_ctx_alloc
	cbz	w0, LBB0_3
; %bb.2:
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_3:
	mov	x0, x19
	bl	_bnxt_hwrm_ring_alloc
	cbz	w0, LBB0_5
; %bb.4:
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_5:
	mov	x0, x19
	bl	_bnxt_hwrm_ring_grp_alloc
	cbz	w0, LBB0_7
; %bb.6:
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_BNXT_CHIP_TYPE_NITRO_A0
	cmp	x0, #0
	cset	w8, ne
	sub	w3, w22, w8
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_bnxt_hwrm_vnic_alloc
	cbz	w0, LBB0_12
; %bb.8:
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	mov	x2, x20
	bl	_netdev_err
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #1
	bl	_bnxt_hwrm_resource_free
LBB0_11:
	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
	add	sp, sp, #64
	ret
LBB0_12:
	mov	x0, x19
	mov	w1, #0
	bl	_bnxt_setup_vnic
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.13:
	ldr	w8, [x19, #4]
Lloh8:
	adrp	x9, _BNXT_FLAG_RFS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BNXT_FLAG_RFS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.14:
	mov	x0, x19
	bl	_bnxt_alloc_rfs_vnics
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.15:
	ldr	w8, [x19, #4]
LBB0_16:
Lloh11:
	adrp	x9, _BNXT_FLAG_TPA@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BNXT_FLAG_TPA@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
	mov	x0, x19
	mov	w1, #1
	bl	_bnxt_set_tpa
	mov	x20, x0
	cbnz	w0, LBB0_10
LBB0_18:
	mov	x0, x19
	bl	_BNXT_VF
	cbz	x0, LBB0_20
; %bb.19:
	mov	x0, x19
	bl	_bnxt_update_vf_mac
LBB0_20:
	ldr	x8, [x19, #8]
	ldr	w3, [x8, #4]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_bnxt_hwrm_set_vnic_filter
	cbz	w0, LBB0_22
; %bb.21:
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_22:
Lloh16:
	adrp	x8, lCPI0_0@PAGE
Lloh17:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _IFF_BROADCAST@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IFF_BROADCAST@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.23:
Lloh21:
	adrp	x9, _CFA_L2_SET_RX_MASK_REQ_MASK_BCAST@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CFA_L2_SET_RX_MASK_REQ_MASK_BCAST@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	str	w9, [x21, #4]
LBB0_24:
Lloh24:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh25:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.25:
	mov	x0, x19
	bl	_bnxt_promisc_ok
	cbz	x0, LBB0_27
; %bb.26:
Lloh27:
	adrp	x8, _CFA_L2_SET_RX_MASK_REQ_MASK_PROMISCUOUS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CFA_L2_SET_RX_MASK_REQ_MASK_PROMISCUOUS@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [x21, #4]
	orr	w8, w9, w8
	str	w8, [x21, #4]
LBB0_27:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _IFF_ALLMULTI@GOTPAGE
Lloh31:
	ldr	x9, [x9, _IFF_ALLMULTI@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_29
; %bb.28:
Lloh33:
	adrp	x8, _CFA_L2_SET_RX_MASK_REQ_MASK_ALL_MCAST@GOTPAGE
Lloh34:
	ldr	x8, [x8, _CFA_L2_SET_RX_MASK_REQ_MASK_ALL_MCAST@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	ldr	w9, [x21, #4]
	orr	w8, w9, w8
	str	w8, [x21, #4]
	str	xzr, [x21, #8]
	b	LBB0_30
LBB0_29:
	str	wzr, [sp, #12]
	add	x1, sp, #12
	mov	x0, x19
	bl	_bnxt_mc_list_updated
	ldr	w8, [sp, #12]
	ldr	w9, [x21, #4]
	orr	w8, w9, w8
	str	w8, [x21, #4]
LBB0_30:
	mov	x0, x19
	bl	_bnxt_cfg_rx_mode
	mov	x20, x0
	cbnz	w0, LBB0_10
; %bb.31:
	mov	x0, x19
	bl	_bnxt_hwrm_set_coal
	cbz	w0, LBB0_33
; %bb.32:
	mov	x2, x0
	ldr	x0, [x19, #8]
Lloh36:
	adrp	x1, l_.str.5@PAGE
Lloh37:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_netdev_warn
LBB0_33:
	mov	x0, x19
	bl	_BNXT_CHIP_TYPE_NITRO_A0
	cbz	x0, LBB0_36
; %bb.34:
	mov	x0, x19
	bl	_bnxt_setup_nitroa0_vnic
	cbz	w0, LBB0_36
; %bb.35:
	mov	x2, x0
	ldr	x0, [x19, #8]
Lloh38:
	adrp	x1, l_.str.6@PAGE
Lloh39:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_netdev_err
LBB0_36:
	mov	x0, x19
	bl	_BNXT_VF
	cbz	x0, LBB0_38
; %bb.37:
	mov	x0, x19
	bl	_bnxt_hwrm_func_qcfg
	ldr	x0, [x19, #8]
	bl	_netdev_update_features
LBB0_38:
	mov	w20, #0
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hwrm stat ctx alloc failure rc: %x\n"

l_.str.1:                               ; @.str.1
	.asciz	"hwrm ring alloc failure rc: %x\n"

l_.str.2:                               ; @.str.2
	.asciz	"hwrm_ring_grp alloc failure: %x\n"

l_.str.3:                               ; @.str.3
	.asciz	"hwrm vnic alloc failure rc: %x\n"

	.comm	_BNXT_FLAG_RFS,4,2              ; @BNXT_FLAG_RFS
	.comm	_BNXT_FLAG_TPA,4,2              ; @BNXT_FLAG_TPA
l_.str.4:                               ; @.str.4
	.asciz	"HWRM vnic filter failure rc: %x\n"

	.comm	_IFF_BROADCAST,4,2              ; @IFF_BROADCAST
	.comm	_CFA_L2_SET_RX_MASK_REQ_MASK_BCAST,4,2 ; @CFA_L2_SET_RX_MASK_REQ_MASK_BCAST
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_CFA_L2_SET_RX_MASK_REQ_MASK_PROMISCUOUS,4,2 ; @CFA_L2_SET_RX_MASK_REQ_MASK_PROMISCUOUS
	.comm	_IFF_ALLMULTI,4,2               ; @IFF_ALLMULTI
	.comm	_CFA_L2_SET_RX_MASK_REQ_MASK_ALL_MCAST,4,2 ; @CFA_L2_SET_RX_MASK_REQ_MASK_ALL_MCAST
l_.str.5:                               ; @.str.5
	.asciz	"HWRM set coalescing failure rc: %x\n"

l_.str.6:                               ; @.str.6
	.asciz	"Special vnic setup failure for NS2 A0 rc: %x\n"

	.no_dead_strip	_bnxt_init_chip
.subsections_via_symbols
