	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_re_init_res
_bnxt_re_init_res:                      ## @bnxt_re_init_res
	.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
	addq	$32, %rdi
	callq	_bnxt_qplib_init_res
	xorl	%r12d, %r12d
	cmpl	$2, (%r14)
	jl	LBB0_7
## %bb.1:
	movl	$1, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_bnxt_re_get_nqdb_offset
	movq	16(%r14), %rcx
	movq	24(%r14), %rdx
	movl	(%rdx), %edi
	leal	-1(%r13), %edx
	movq	8(%r14), %rsi
	addq	%r15, %rsi
	movl	4(%rcx,%r15), %ecx
	movq	_bnxt_re_srqn_handler@GOTPCREL(%rip), %rbx
	movq	%rbx, (%rsp)
	movl	%eax, %r8d
	movq	_bnxt_re_cqn_handler@GOTPCREL(%rip), %r9
	callq	_bnxt_qplib_enable_nq
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movslq	(%r14), %rax
	addq	$4, %r15
	cmpq	%rax, %r13
	jl	LBB0_2
## %bb.6:
	xorl	%r12d, %r12d
	jmp	LBB0_7
LBB0_3:
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_rdev_to_dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%r12d, %edx
	callq	_dev_err
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdi
	addq	%r15, %rdi
	callq	_bnxt_qplib_disable_nq
	addq	$-4, %r15
	cmpq	$-4, %r15
	jne	LBB0_4
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bnxt_re_cqn_handler,4,2        ## @bnxt_re_cqn_handler
	.comm	_bnxt_re_srqn_handler,4,2       ## @bnxt_re_srqn_handler
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to enable NQ with rc = 0x%x"

	.no_dead_strip	_bnxt_re_init_res
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_re_init_res
_bnxt_re_init_res:                      ; @bnxt_re_init_res
	.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
	add	x0, x0, #32
	bl	_bnxt_qplib_init_res
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.1:
	mov	x24, #0
	mov	w20, #1
Lloh0:
	adrp	x21, _bnxt_re_cqn_handler@GOTPAGE
Lloh1:
	ldr	x21, [x21, _bnxt_re_cqn_handler@GOTPAGEOFF]
Lloh2:
	adrp	x22, _bnxt_re_srqn_handler@GOTPAGE
Lloh3:
	ldr	x22, [x22, _bnxt_re_srqn_handler@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_bnxt_re_get_nqdb_offset
	mov	x4, x0
	ldp	x9, x8, [x19, #16]
	ldr	w0, [x8]
	sub	w2, w20, #1
	ldr	x8, [x19, #8]
	add	x1, x8, x24
	add	x8, x9, x24
	ldr	w3, [x8, #4]
	mov	x5, x21
	mov	x6, x22
	bl	_bnxt_qplib_enable_nq
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19]
	add	x24, x24, #4
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_4:
	mov	w23, #0
	b	LBB0_7
LBB0_5:
	mov	x23, x0
	mov	x0, x19
	bl	_rdev_to_dev
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_dev_err
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x24
	bl	_bnxt_qplib_disable_nq
	sub	x24, x24, #4
	cmn	x24, #4
	b.ne	LBB0_6
LBB0_7:
	mov	x0, x23
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_bnxt_re_cqn_handler,4,2        ; @bnxt_re_cqn_handler
	.comm	_bnxt_re_srqn_handler,4,2       ; @bnxt_re_srqn_handler
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to enable NQ with rc = 0x%x"

	.no_dead_strip	_bnxt_re_init_res
.subsections_via_symbols
