	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_re_ib_reg
_bnxt_re_ib_reg:                        ## @bnxt_re_ib_reg
	.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, %r15
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_rtnl_lock
	movq	%r15, %rdi
	callq	_bnxt_re_register_netdev
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_rtnl_unlock
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_38
LBB0_2:
	movq	_BNXT_RE_FLAG_NETDEV_REGISTERED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	52(%r15), %r14
	movq	%r14, %rsi
	callq	_set_bit
	movq	%r15, %rdi
	callq	_bnxt_re_setup_chip_ctx
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_rdev_to_dev
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_38
LBB0_4:
	movq	%r15, %rdi
	callq	_bnxt_re_get_sriov_func_type
	movq	%r15, %rdi
	callq	_bnxt_re_request_msix
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_37
LBB0_6:
	movq	_BNXT_RE_FLAG_GOT_MSIX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movq	%r15, %rdi
	callq	_bnxt_re_query_hwrm_intf_version
	movq	40(%r15), %rax
	movl	(%rax), %edi
	leaq	28(%r15), %r13
	movq	_BNXT_RE_MAX_QPC_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_bnxt_qplib_alloc_rcfw_channel
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rdi
LBB0_8:
	movl	%r12d, %esi
	callq	_pr_err
	jmp	LBB0_37
LBB0_9:
	leaq	24(%r15), %rbx
	movq	%rbx, %rdi
	callq	_bnxt_qplib_get_ring_type
	movq	8(%r15), %rcx
	movq	16(%r15), %rdx
	movq	_PBL_LVL_0@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	shlq	$4, %rsi
	movq	8(%rdx,%rsi), %rsi
	shlq	$4, %rcx
	movl	(%rdx,%rcx), %edx
	movq	80(%r15), %rcx
	movq	_BNXT_RE_AEQ_IDX@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movl	4(%rcx,%rdi,8), %r9d
	movq	_BNXT_QPLIB_CREQE_MAX_CNT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	decq	%r8
	movq	%r15, (%rsp)
	movq	%r15, %rdi
	movl	%eax, %ecx
	callq	_bnxt_re_net_ring_alloc
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	jmp	LBB0_11
LBB0_12:
	movq	_BNXT_RE_AEQ_IDX@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	%r15, %rdi
	callq	_bnxt_re_get_nqdb_offset
	movq	80(%r15), %rcx
	movq	(%r12), %rdx
	movl	(%rcx,%rdx,8), %edx
	movq	40(%r15), %rcx
	movl	(%rcx), %edi
	movl	68(%r15), %r8d
	movq	_bnxt_re_aeq_handler@GOTPCREL(%rip), %r9
	movq	%r15, %rsi
	movl	%eax, %ecx
	callq	_bnxt_qplib_enable_rcfw_channel
	testl	%eax, %eax
	je	LBB0_15
## %bb.13:
	movl	%eax, %r12d
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	jmp	LBB0_14
LBB0_15:
	leaq	72(%r15), %rsi
	movl	68(%r15), %edx
	movq	%r15, %rdi
	callq	_bnxt_qplib_get_dev_attr
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_20
## %bb.16:
	cmpl	$0, 68(%r15)
	jne	LBB0_18
## %bb.17:
	movq	%r15, %rdi
	callq	_bnxt_re_set_resource_limits
LBB0_18:
	movq	40(%r15), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_bnxt_qplib_is_chip_gen_p5
	movl	%r12d, %edi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_bnxt_qplib_alloc_ctx
	testl	%eax, %eax
	je	LBB0_21
## %bb.19:
	movl	%eax, %r12d
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	jmp	LBB0_20
LBB0_21:
	movl	32(%r15), %esi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_bnxt_re_net_stats_ctx_alloc
	testl	%eax, %eax
	je	LBB0_24
## %bb.22:
	movl	%eax, %r12d
	leaq	L_.str.7(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	jmp	LBB0_23
LBB0_24:
	movl	68(%r15), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_bnxt_qplib_init_rcfw
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	movl	%eax, %r12d
	leaq	L_.str.8(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movl	28(%r15), %esi
	movq	%r15, %rdi
	callq	_bnxt_re_net_stats_ctx_free
LBB0_23:
	movq	40(%r15), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_bnxt_qplib_free_ctx
LBB0_20:
	movq	%r15, %rdi
	callq	_bnxt_qplib_disable_rcfw_channel
LBB0_14:
	movq	%rbx, %rdi
	callq	_bnxt_qplib_get_ring_type
	movl	(%r15), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_bnxt_re_net_ring_free
LBB0_11:
	movq	%r15, %rdi
	callq	_bnxt_qplib_free_rcfw_channel
LBB0_37:
	movq	%r15, %rdi
	callq	_bnxt_re_ib_unreg
	xorl	%eax, %eax
	callq	_rtnl_unlock
LBB0_38:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	movq	_BNXT_RE_FLAG_RCFW_CHANNEL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movq	%r15, %rdi
	callq	_bnxt_re_alloc_res
	testl	%eax, %eax
	je	LBB0_28
## %bb.27:
	movl	%eax, %r12d
	leaq	L_.str.9(%rip), %rdi
	jmp	LBB0_8
LBB0_28:
	movq	_BNXT_RE_FLAG_RESOURCES_ALLOCATED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movq	%r15, %rdi
	callq	_bnxt_re_init_res
	testl	%eax, %eax
	je	LBB0_30
## %bb.29:
	movl	%eax, %r12d
	leaq	L_.str.10(%rip), %rdi
	jmp	LBB0_8
LBB0_30:
	movq	_BNXT_RE_FLAG_RESOURCES_INITIALIZED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	cmpl	$0, 68(%r15)
	jne	LBB0_34
## %bb.31:
	movq	%r15, %rdi
	callq	_bnxt_re_setup_qos
	testl	%eax, %eax
	je	LBB0_33
## %bb.32:
	leaq	L_.str.11(%rip), %rdi
	callq	_pr_info
LBB0_33:
	leaq	64(%r15), %rbx
	movq	_bnxt_re_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_INIT_DELAYED_WORK
	movq	_BNXT_RE_FLAG_QOS_WORK_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movl	$30000, %edi                    ## imm = 0x7530
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_schedule_delayed_work
LBB0_34:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_rtnl_unlock
	movq	%r15, %rdi
	callq	_bnxt_re_register_ib
	testl	%eax, %eax
	je	LBB0_35
## %bb.36:
	movl	%eax, %ebx
	leaq	L_.str.12(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	xorl	%eax, %eax
	callq	_rtnl_lock
	movl	%ebx, %r12d
	jmp	LBB0_37
LBB0_35:
	movq	_BNXT_RE_FLAG_IBDEV_REGISTERED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movq	%r15, %rdi
	callq	_rdev_to_dev
	leaq	L_.str.13(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_info
	leaq	48(%r15), %rbx
	leaq	60(%r15), %rdx
	addq	$56, %r15
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r15, %rcx
	callq	_ib_get_eth_speed
	movq	_BNXT_RE_FLAG_ISSUE_ROCE_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_set_bit
	movq	_IB_EVENT_PORT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_bnxt_re_dispatch_event
	jmp	LBB0_38
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to register with netedev: %#x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BNXT_RE_FLAG_NETDEV_REGISTERED,4,2 ## @BNXT_RE_FLAG_NETDEV_REGISTERED
L_.str.1:                               ## @.str.1
	.asciz	"Failed to get chip context\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to get MSI-X vectors: %#x\n"

	.comm	_BNXT_RE_FLAG_GOT_MSIX,4,2      ## @BNXT_RE_FLAG_GOT_MSIX
	.comm	_BNXT_RE_MAX_QPC_COUNT,4,2      ## @BNXT_RE_MAX_QPC_COUNT
L_.str.3:                               ## @.str.3
	.asciz	"Failed to allocate RCFW Channel: %#x\n"

	.comm	_PBL_LVL_0,8,3                  ## @PBL_LVL_0
	.comm	_BNXT_RE_AEQ_IDX,8,3            ## @BNXT_RE_AEQ_IDX
	.comm	_BNXT_QPLIB_CREQE_MAX_CNT,8,3   ## @BNXT_QPLIB_CREQE_MAX_CNT
L_.str.4:                               ## @.str.4
	.asciz	"Failed to allocate CREQ: %#x\n"

	.comm	_bnxt_re_aeq_handler,4,2        ## @bnxt_re_aeq_handler
L_.str.5:                               ## @.str.5
	.asciz	"Failed to enable RCFW channel: %#x\n"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to allocate QPLIB context: %#x\n"

L_.str.7:                               ## @.str.7
	.asciz	"Failed to allocate stats context: %#x\n"

L_.str.8:                               ## @.str.8
	.asciz	"Failed to initialize RCFW: %#x\n"

	.comm	_BNXT_RE_FLAG_RCFW_CHANNEL_EN,4,2 ## @BNXT_RE_FLAG_RCFW_CHANNEL_EN
L_.str.9:                               ## @.str.9
	.asciz	"Failed to allocate resources: %#x\n"

	.comm	_BNXT_RE_FLAG_RESOURCES_ALLOCATED,4,2 ## @BNXT_RE_FLAG_RESOURCES_ALLOCATED
L_.str.10:                              ## @.str.10
	.asciz	"Failed to initialize resources: %#x\n"

	.comm	_BNXT_RE_FLAG_RESOURCES_INITIALIZED,4,2 ## @BNXT_RE_FLAG_RESOURCES_INITIALIZED
L_.str.11:                              ## @.str.11
	.asciz	"RoCE priority not yet configured\n"

	.comm	_bnxt_re_worker,4,2             ## @bnxt_re_worker
	.comm	_BNXT_RE_FLAG_QOS_WORK_REG,4,2  ## @BNXT_RE_FLAG_QOS_WORK_REG
L_.str.12:                              ## @.str.12
	.asciz	"Failed to register with IB: %#x\n"

	.comm	_BNXT_RE_FLAG_IBDEV_REGISTERED,4,2 ## @BNXT_RE_FLAG_IBDEV_REGISTERED
L_.str.13:                              ## @.str.13
	.asciz	"Device registered successfully"

	.comm	_BNXT_RE_FLAG_ISSUE_ROCE_STATS,4,2 ## @BNXT_RE_FLAG_ISSUE_ROCE_STATS
	.comm	_IB_EVENT_PORT_ACTIVE,4,2       ## @IB_EVENT_PORT_ACTIVE
	.no_dead_strip	_bnxt_re_ib_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_re_ib_reg
_bnxt_re_ib_reg:                        ; @bnxt_re_ib_reg
	.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	x19, x0
	bl	_rtnl_lock
	mov	x0, x19
	bl	_bnxt_re_register_netdev
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	bl	_rtnl_unlock
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_err
	b	LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _BNXT_RE_FLAG_NETDEV_REGISTERED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BNXT_RE_FLAG_NETDEV_REGISTERED@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	add	x20, x19, #52
	mov	x1, x20
	bl	_set_bit
	mov	x0, x19
	bl	_bnxt_re_setup_chip_ctx
	cbz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_rdev_to_dev
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_4:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	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_6:
	mov	x0, x19
	bl	_bnxt_re_get_sriov_func_type
	mov	x0, x19
	bl	_bnxt_re_request_msix
	cbz	w0, LBB0_8
; %bb.7:
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_28
LBB0_8:
Lloh15:
	adrp	x8, _BNXT_RE_FLAG_GOT_MSIX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BNXT_RE_FLAG_GOT_MSIX@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	mov	x0, x19
	bl	_bnxt_re_query_hwrm_intf_version
	ldr	x8, [x19, #40]
	ldr	w0, [x8]
	add	x23, x19, #28
Lloh18:
	adrp	x8, _BNXT_RE_MAX_QPC_COUNT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BNXT_RE_MAX_QPC_COUNT@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x1, x19
	mov	x2, x23
	bl	_bnxt_qplib_alloc_rcfw_channel
	cbz	w0, LBB0_11
; %bb.9:
	mov	x22, x0
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_10:
	mov	x1, x22
	bl	_pr_err
	b	LBB0_28
LBB0_11:
	add	x21, x19, #24
	mov	x0, x21
	bl	_bnxt_qplib_get_ring_type
	mov	x3, x0
Lloh23:
	adrp	x8, _PBL_LVL_0@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PBL_LVL_0@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldp	x10, x9, [x19, #8]
	add	x8, x9, x8, lsl #4
	ldr	x1, [x8, #8]
	lsl	x8, x10, #4
	ldr	w2, [x9, x8]
	ldr	x8, [x19, #80]
Lloh26:
	adrp	x24, _BNXT_RE_AEQ_IDX@GOTPAGE
Lloh27:
	ldr	x24, [x24, _BNXT_RE_AEQ_IDX@GOTPAGEOFF]
	ldr	x9, [x24]
	add	x8, x8, x9, lsl #3
	ldr	w5, [x8, #4]
Lloh28:
	adrp	x8, _BNXT_QPLIB_CREQE_MAX_CNT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BNXT_QPLIB_CREQE_MAX_CNT@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	sub	x4, x8, #1
	mov	x0, x19
	mov	x6, x19
	bl	_bnxt_re_net_ring_alloc
	cbz	w0, LBB0_13
; %bb.12:
	mov	x22, x0
Lloh31:
	adrp	x0, l_.str.4@PAGE
Lloh32:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x22
	bl	_pr_err
	b	LBB0_27
LBB0_13:
	ldr	x1, [x24]
	mov	x0, x19
	bl	_bnxt_re_get_nqdb_offset
	mov	x3, x0
	ldr	x8, [x19, #80]
	ldr	x9, [x24]
	lsl	x9, x9, #3
	ldr	w2, [x8, x9]
	ldr	x8, [x19, #40]
	ldr	w0, [x8]
	ldr	w4, [x19, #68]
Lloh33:
	adrp	x5, _bnxt_re_aeq_handler@GOTPAGE
Lloh34:
	ldr	x5, [x5, _bnxt_re_aeq_handler@GOTPAGEOFF]
	mov	x1, x19
	bl	_bnxt_qplib_enable_rcfw_channel
	cbz	w0, LBB0_15
; %bb.14:
	mov	x22, x0
Lloh35:
	adrp	x0, l_.str.5@PAGE
Lloh36:
	add	x0, x0, l_.str.5@PAGEOFF
	mov	x1, x22
	bl	_pr_err
	b	LBB0_26
LBB0_15:
	add	x1, x19, #72
	ldr	w2, [x19, #68]
	mov	x0, x19
	bl	_bnxt_qplib_get_dev_attr
	mov	x22, x0
	cbnz	w0, LBB0_25
; %bb.16:
	ldr	w8, [x19, #68]
	cbnz	w8, LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_bnxt_re_set_resource_limits
LBB0_18:
	ldr	x8, [x19, #40]
	ldr	w22, [x8]
	mov	x0, x21
	bl	_bnxt_qplib_is_chip_gen_p5
	mov	x3, x0
	mov	x0, x22
	mov	x1, x23
	mov	w2, #0
	bl	_bnxt_qplib_alloc_ctx
	cbz	w0, LBB0_20
; %bb.19:
	mov	x22, x0
Lloh37:
	adrp	x0, l_.str.6@PAGE
Lloh38:
	add	x0, x0, l_.str.6@PAGEOFF
	mov	x1, x22
	bl	_pr_err
	b	LBB0_25
LBB0_20:
	ldr	w1, [x19, #32]
	mov	x0, x19
	mov	x2, x23
	bl	_bnxt_re_net_stats_ctx_alloc
	cbz	w0, LBB0_22
; %bb.21:
	mov	x22, x0
Lloh39:
	adrp	x0, l_.str.7@PAGE
Lloh40:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x22
	bl	_pr_err
	b	LBB0_24
LBB0_22:
	ldr	w2, [x19, #68]
	mov	x0, x19
	mov	x1, x23
	bl	_bnxt_qplib_init_rcfw
	cbz	w0, LBB0_29
; %bb.23:
	mov	x22, x0
Lloh41:
	adrp	x0, l_.str.8@PAGE
Lloh42:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x1, x22
	bl	_pr_err
	ldr	w1, [x19, #28]
	mov	x0, x19
	bl	_bnxt_re_net_stats_ctx_free
LBB0_24:
	ldr	x8, [x19, #40]
	ldr	w0, [x8]
	mov	x1, x23
	bl	_bnxt_qplib_free_ctx
LBB0_25:
	mov	x0, x19
	bl	_bnxt_qplib_disable_rcfw_channel
LBB0_26:
	mov	x0, x21
	bl	_bnxt_qplib_get_ring_type
	mov	x2, x0
	ldr	w1, [x19]
	mov	x0, x19
	bl	_bnxt_re_net_ring_free
LBB0_27:
	mov	x0, x19
	bl	_bnxt_qplib_free_rcfw_channel
LBB0_28:
	mov	x0, x19
	bl	_bnxt_re_ib_unreg
	bl	_rtnl_unlock
	b	LBB0_5
LBB0_29:
Lloh43:
	adrp	x8, _BNXT_RE_FLAG_RCFW_CHANNEL_EN@GOTPAGE
Lloh44:
	ldr	x8, [x8, _BNXT_RE_FLAG_RCFW_CHANNEL_EN@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	mov	x0, x19
	bl	_bnxt_re_alloc_res
	cbz	w0, LBB0_31
; %bb.30:
	mov	x22, x0
Lloh46:
	adrp	x0, l_.str.9@PAGE
Lloh47:
	add	x0, x0, l_.str.9@PAGEOFF
	b	LBB0_10
LBB0_31:
Lloh48:
	adrp	x8, _BNXT_RE_FLAG_RESOURCES_ALLOCATED@GOTPAGE
Lloh49:
	ldr	x8, [x8, _BNXT_RE_FLAG_RESOURCES_ALLOCATED@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	mov	x0, x19
	bl	_bnxt_re_init_res
	cbz	w0, LBB0_33
; %bb.32:
	mov	x22, x0
Lloh51:
	adrp	x0, l_.str.10@PAGE
Lloh52:
	add	x0, x0, l_.str.10@PAGEOFF
	b	LBB0_10
LBB0_33:
Lloh53:
	adrp	x8, _BNXT_RE_FLAG_RESOURCES_INITIALIZED@GOTPAGE
Lloh54:
	ldr	x8, [x8, _BNXT_RE_FLAG_RESOURCES_INITIALIZED@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	ldr	w8, [x19, #68]
	cbnz	w8, LBB0_37
; %bb.34:
	mov	x0, x19
	bl	_bnxt_re_setup_qos
	cbz	w0, LBB0_36
; %bb.35:
Lloh56:
	adrp	x0, l_.str.11@PAGE
Lloh57:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_pr_info
LBB0_36:
	add	x21, x19, #64
Lloh58:
	adrp	x8, _bnxt_re_worker@GOTPAGE
Lloh59:
	ldr	x8, [x8, _bnxt_re_worker@GOTPAGEOFF]
Lloh60:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_INIT_DELAYED_WORK
Lloh61:
	adrp	x8, _BNXT_RE_FLAG_QOS_WORK_REG@GOTPAGE
Lloh62:
	ldr	x8, [x8, _BNXT_RE_FLAG_QOS_WORK_REG@GOTPAGEOFF]
Lloh63:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	mov	w0, #30000
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x21
	bl	_schedule_delayed_work
LBB0_37:
	bl	_rtnl_unlock
	mov	x0, x19
	bl	_bnxt_re_register_ib
	mov	x22, x0
	cbz	w0, LBB0_39
; %bb.38:
Lloh64:
	adrp	x0, l_.str.12@PAGE
Lloh65:
	add	x0, x0, l_.str.12@PAGEOFF
	mov	x1, x22
	bl	_pr_err
	bl	_rtnl_lock
	b	LBB0_28
LBB0_39:
Lloh66:
	adrp	x8, _BNXT_RE_FLAG_IBDEV_REGISTERED@GOTPAGE
Lloh67:
	ldr	x8, [x8, _BNXT_RE_FLAG_IBDEV_REGISTERED@GOTPAGEOFF]
Lloh68:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
	mov	x0, x19
	bl	_rdev_to_dev
Lloh69:
	adrp	x1, l_.str.13@PAGE
Lloh70:
	add	x1, x1, l_.str.13@PAGEOFF
	bl	_dev_info
	add	x21, x19, #48
	add	x2, x19, #60
	add	x3, x19, #56
	mov	x0, x21
	mov	w1, #1
	bl	_ib_get_eth_speed
Lloh71:
	adrp	x8, _BNXT_RE_FLAG_ISSUE_ROCE_STATS@GOTPAGE
Lloh72:
	ldr	x8, [x8, _BNXT_RE_FLAG_ISSUE_ROCE_STATS@GOTPAGEOFF]
Lloh73:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_set_bit
Lloh74:
	adrp	x8, _IB_EVENT_PORT_ACTIVE@GOTPAGE
Lloh75:
	ldr	x8, [x8, _IB_EVENT_PORT_ACTIVE@GOTPAGEOFF]
Lloh76:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, #0
	mov	w2, #1
	bl	_bnxt_re_dispatch_event
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to register with netedev: %#x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BNXT_RE_FLAG_NETDEV_REGISTERED,4,2 ; @BNXT_RE_FLAG_NETDEV_REGISTERED
l_.str.1:                               ; @.str.1
	.asciz	"Failed to get chip context\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to get MSI-X vectors: %#x\n"

	.comm	_BNXT_RE_FLAG_GOT_MSIX,4,2      ; @BNXT_RE_FLAG_GOT_MSIX
	.comm	_BNXT_RE_MAX_QPC_COUNT,4,2      ; @BNXT_RE_MAX_QPC_COUNT
l_.str.3:                               ; @.str.3
	.asciz	"Failed to allocate RCFW Channel: %#x\n"

	.comm	_PBL_LVL_0,8,3                  ; @PBL_LVL_0
	.comm	_BNXT_RE_AEQ_IDX,8,3            ; @BNXT_RE_AEQ_IDX
	.comm	_BNXT_QPLIB_CREQE_MAX_CNT,8,3   ; @BNXT_QPLIB_CREQE_MAX_CNT
l_.str.4:                               ; @.str.4
	.asciz	"Failed to allocate CREQ: %#x\n"

	.comm	_bnxt_re_aeq_handler,4,2        ; @bnxt_re_aeq_handler
l_.str.5:                               ; @.str.5
	.asciz	"Failed to enable RCFW channel: %#x\n"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to allocate QPLIB context: %#x\n"

l_.str.7:                               ; @.str.7
	.asciz	"Failed to allocate stats context: %#x\n"

l_.str.8:                               ; @.str.8
	.asciz	"Failed to initialize RCFW: %#x\n"

	.comm	_BNXT_RE_FLAG_RCFW_CHANNEL_EN,4,2 ; @BNXT_RE_FLAG_RCFW_CHANNEL_EN
l_.str.9:                               ; @.str.9
	.asciz	"Failed to allocate resources: %#x\n"

	.comm	_BNXT_RE_FLAG_RESOURCES_ALLOCATED,4,2 ; @BNXT_RE_FLAG_RESOURCES_ALLOCATED
l_.str.10:                              ; @.str.10
	.asciz	"Failed to initialize resources: %#x\n"

	.comm	_BNXT_RE_FLAG_RESOURCES_INITIALIZED,4,2 ; @BNXT_RE_FLAG_RESOURCES_INITIALIZED
l_.str.11:                              ; @.str.11
	.asciz	"RoCE priority not yet configured\n"

	.comm	_bnxt_re_worker,4,2             ; @bnxt_re_worker
	.comm	_BNXT_RE_FLAG_QOS_WORK_REG,4,2  ; @BNXT_RE_FLAG_QOS_WORK_REG
l_.str.12:                              ; @.str.12
	.asciz	"Failed to register with IB: %#x\n"

	.comm	_BNXT_RE_FLAG_IBDEV_REGISTERED,4,2 ; @BNXT_RE_FLAG_IBDEV_REGISTERED
l_.str.13:                              ; @.str.13
	.asciz	"Device registered successfully"

	.comm	_BNXT_RE_FLAG_ISSUE_ROCE_STATS,4,2 ; @BNXT_RE_FLAG_ISSUE_ROCE_STATS
	.comm	_IB_EVENT_PORT_ACTIVE,4,2       ; @IB_EVENT_PORT_ACTIVE
	.no_dead_strip	_bnxt_re_ib_reg
.subsections_via_symbols
