	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_qplib_alloc_ctx           ## -- Begin function bnxt_qplib_alloc_ctx
	.p2align	4, 0x90
_bnxt_qplib_alloc_ctx:                  ## @bnxt_qplib_alloc_ctx
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	orl	%ecx, %edx
	je	LBB0_1
LBB0_27:
	leaq	28(%r12), %rsi
	movq	%r14, %rdi
	callq	_bnxt_qplib_alloc_stats_ctx
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.28:
	xorl	%ebx, %ebx
	jmp	LBB0_29
LBB0_1:
	movl	(%r12), %eax
	leaq	160(%r12), %rcx
	movl	%eax, 160(%r12)
	movq	_BNXT_QPLIB_MAX_QP_CTX_ENTRY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movq	_HWQ_TYPE_CTX@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movq	%r14, %rdi
	movq	%rcx, %rsi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%rax
	callq	_bnxt_qplib_alloc_init_hwq
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.2:
	movl	4(%r12), %eax
	leaq	136(%r12), %rcx
	movl	%eax, 136(%r12)
	movq	_BNXT_QPLIB_MAX_MRW_CTX_ENTRY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	(%r13), %eax
	movl	(%r15), %ebx
	movq	%r14, %rdi
	movq	%rcx, %rsi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%rax
	callq	_bnxt_qplib_alloc_init_hwq
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.3:
	movl	8(%r12), %eax
	leaq	112(%r12), %rcx
	movl	%eax, 112(%r12)
	movq	_BNXT_QPLIB_MAX_SRQ_CTX_ENTRY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	(%r13), %eax
	movl	(%r15), %ebx
	movq	%r14, %rdi
	movq	%rcx, %rsi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%rax
	callq	_bnxt_qplib_alloc_init_hwq
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movl	12(%r12), %eax
	leaq	88(%r12), %rcx
	movl	%eax, 88(%r12)
	movq	_BNXT_QPLIB_MAX_CQ_CTX_ENTRY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	(%r13), %eax
	movl	(%r15), %ebx
	movq	%r14, %rdi
	movq	%rcx, %rsi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%rax
	callq	_bnxt_qplib_alloc_init_hwq
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	leaq	64(%r12), %rcx
	movl	$512, 64(%r12)                  ## imm = 0x200
	movl	(%r13), %eax
	movl	(%r15), %ebx
	movq	%r14, %rdi
	movq	%rcx, %rsi
	xorl	%edx, %edx
	movl	$4, %r8d
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%rax
	callq	_bnxt_qplib_alloc_init_hwq
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.6:
	movq	_MAX_TQM_ALLOC_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_25
## %bb.7:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_8
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$24, %r15
	cmpq	%rcx, %r13
	jge	LBB0_14
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rcx
	movl	(%rcx,%r13,4), %edx
	testl	%edx, %edx
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	imull	(%r12), %edx
	movq	56(%r12), %rcx
	movl	%edx, (%rcx,%r15)
	addq	%r15, %rcx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_HWQ_TYPE_CTX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	movq	%r14, %rdi
	movq	%rcx, %rsi
	xorl	%edx, %edx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%rax
	callq	_bnxt_qplib_alloc_init_hwq
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_MAX_TQM_ALLOC_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_14:
	testl	%eax, %eax
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r13
	movq	_HWQ_TYPE_CTX@GOTPCREL(%rip), %r15
	jle	LBB0_25
## %bb.15:
	movq	80(%r12), %rbx
	xorl	%edx, %edx
	movl	$-1, %r9d
	movq	_MAX_TQM_ALLOC_BLK_SIZE@GOTPCREL(%rip), %r8
	xorl	%edi, %edi
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	2088(%rax), %rax
	movq	_PTU_PTE_VALID@GOTPCREL(%rip), %rsi
	movl	%edi, %r15d
	movl	(%rsi), %edi
	orl	(%rax), %edi
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	callq	_cpu_to_le64
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_PTR_PG
	movq	(%rbx,%rax,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, %edi
	callq	_PTR_IDX
	movl	%r15d, %edi
	movq	_MAX_TQM_ALLOC_BLK_SIZE@GOTPCREL(%rip), %r8
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%esi, (%rcx,%rax,4)
	movq	_HWQ_TYPE_CTX@GOTPCREL(%rip), %r15
LBB0_23:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%rdx
	addl	(%r8), %edi
	movq	_MAX_TQM_ALLOC_REQ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %rdx
	jge	LBB0_24
LBB0_16:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	movq	56(%r12), %rax
	leaq	(%rdx,%rdx,2), %rsi
	cmpl	$0, (%rax,%rsi,8)
	je	LBB0_23
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$-1, %r9d
	cmovel	%edx, %r9d
	cmpl	$128, 4(%rax,%rsi,8)
	movq	8(%rax,%rsi,8), %rax
	jne	LBB0_22
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$0, 2064(%rax)
	jle	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, -68(%rbp)                 ## 4-byte Spill
	movl	%edi, %ecx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
LBB0_20:                                ##   Parent Loop BB0_16 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	2072(%rax), %rax
	movq	_PTU_PTE_VALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax,%r15,4), %edi
	callq	_cpu_to_le64
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r15), %ebx
	movl	%ebx, %edi
	callq	_PTR_PG
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %r13
	movl	%ebx, %edi
	callq	_PTR_IDX
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%r13,%rax,4)
	incq	%r15
	movq	56(%r12), %rax
	movq	8(%rax,%rsi,8), %rax
	movslq	2064(%rax), %rcx
	cmpq	%rcx, %r15
	jl	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_PAGE_SIZE@GOTPCREL(%rip), %r13
	movq	_HWQ_TYPE_CTX@GOTPCREL(%rip), %r15
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	_MAX_TQM_ALLOC_BLK_SIZE@GOTPCREL(%rip), %r8
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_23
LBB0_10:
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_24:
	cmpl	$-1, %r9d
	jne	LBB0_26
LBB0_25:
	xorl	%r9d, %r9d
LBB0_26:
	movq	56(%r12), %rax
	movslq	%r9d, %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	4(%rax,%rcx,8), %eax
	leal	1(%rax), %ecx
	cmpl	$128, %eax
	cmovel	%eax, %ecx
	movl	%ecx, 24(%r12)
	movl	(%r12), %eax
	shll	$4, %eax
	leaq	32(%r12), %rcx
	movl	%eax, 32(%r12)
	movl	(%r13), %eax
	movl	(%r15), %ebx
	movq	%r14, %rdi
	movq	%rcx, %rsi
	xorl	%edx, %edx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%rax
	callq	_bnxt_qplib_alloc_init_hwq
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_27
LBB0_11:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_bnxt_qplib_free_ctx
LBB0_29:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_QPLIB_MAX_QP_CTX_ENTRY_SIZE,4,2 ## @BNXT_QPLIB_MAX_QP_CTX_ENTRY_SIZE
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_HWQ_TYPE_CTX,4,2               ## @HWQ_TYPE_CTX
	.comm	_BNXT_QPLIB_MAX_MRW_CTX_ENTRY_SIZE,4,2 ## @BNXT_QPLIB_MAX_MRW_CTX_ENTRY_SIZE
	.comm	_BNXT_QPLIB_MAX_SRQ_CTX_ENTRY_SIZE,4,2 ## @BNXT_QPLIB_MAX_SRQ_CTX_ENTRY_SIZE
	.comm	_BNXT_QPLIB_MAX_CQ_CTX_ENTRY_SIZE,4,2 ## @BNXT_QPLIB_MAX_CQ_CTX_ENTRY_SIZE
	.comm	_MAX_TQM_ALLOC_REQ,4,2          ## @MAX_TQM_ALLOC_REQ
	.comm	_PTU_PTE_VALID,4,2              ## @PTU_PTE_VALID
	.comm	_MAX_TQM_ALLOC_BLK_SIZE,8,3     ## @MAX_TQM_ALLOC_BLK_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_qplib_alloc_ctx           ; -- Begin function bnxt_qplib_alloc_ctx
	.p2align	2
_bnxt_qplib_alloc_ctx:                  ; @bnxt_qplib_alloc_ctx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	orr	w8, w3, w2
	cbz	w8, LBB0_2
LBB0_1:
	add	x1, x19, #28
	mov	x0, x20
	bl	_bnxt_qplib_alloc_stats_ctx
	mov	x21, x0
	cbnz	w0, LBB0_27
	b	LBB0_28
LBB0_2:
	ldr	w8, [x19]
	mov	x1, x19
	str	w8, [x1, #160]!
Lloh0:
	adrp	x8, _BNXT_QPLIB_MAX_QP_CTX_ENTRY_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNXT_QPLIB_MAX_QP_CTX_ENTRY_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
Lloh3:
	adrp	x24, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w6, [x24]
Lloh5:
	adrp	x25, _HWQ_TYPE_CTX@GOTPAGE
Lloh6:
	ldr	x25, [x25, _HWQ_TYPE_CTX@GOTPAGEOFF]
	ldr	w7, [x25]
	mov	x0, x20
	mov	x2, #0
	mov	x3, x1
	mov	w5, #0
	bl	_bnxt_qplib_alloc_init_hwq
	mov	x21, x0
	cbnz	w0, LBB0_27
; %bb.3:
	ldr	w8, [x19, #4]
	mov	x1, x19
	str	w8, [x1, #136]!
Lloh7:
	adrp	x8, _BNXT_QPLIB_MAX_MRW_CTX_ENTRY_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BNXT_QPLIB_MAX_MRW_CTX_ENTRY_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w4, [x8]
	ldr	w6, [x24]
	ldr	w7, [x25]
	mov	x0, x20
	mov	x2, #0
	mov	x3, x1
	mov	w5, #0
	bl	_bnxt_qplib_alloc_init_hwq
	mov	x21, x0
	cbnz	w0, LBB0_27
; %bb.4:
	ldr	w8, [x19, #8]
	mov	x1, x19
	str	w8, [x1, #112]!
Lloh10:
	adrp	x8, _BNXT_QPLIB_MAX_SRQ_CTX_ENTRY_SIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BNXT_QPLIB_MAX_SRQ_CTX_ENTRY_SIZE@GOTPAGEOFF]
Lloh12:
	ldr	w4, [x8]
	ldr	w6, [x24]
	ldr	w7, [x25]
	mov	x0, x20
	mov	x2, #0
	mov	x3, x1
	mov	w5, #0
	bl	_bnxt_qplib_alloc_init_hwq
	mov	x21, x0
	cbnz	w0, LBB0_27
; %bb.5:
	ldr	w8, [x19, #12]
	mov	x1, x19
	str	w8, [x1, #88]!
Lloh13:
	adrp	x8, _BNXT_QPLIB_MAX_CQ_CTX_ENTRY_SIZE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BNXT_QPLIB_MAX_CQ_CTX_ENTRY_SIZE@GOTPAGEOFF]
Lloh15:
	ldr	w4, [x8]
	ldr	w6, [x24]
	ldr	w7, [x25]
	mov	x0, x20
	mov	x2, #0
	mov	x3, x1
	mov	w5, #0
	bl	_bnxt_qplib_alloc_init_hwq
	mov	x21, x0
	cbnz	w0, LBB0_27
; %bb.6:
	mov	w8, #512
	mov	x1, x19
	str	w8, [x1, #64]!
	ldr	w6, [x24]
	ldr	w7, [x25]
	mov	x0, x20
	mov	x2, #0
	mov	x3, x1
	mov	w4, #4
	mov	w5, #0
	bl	_bnxt_qplib_alloc_init_hwq
	mov	x21, x0
	cbnz	w0, LBB0_27
; %bb.7:
Lloh16:
	adrp	x26, _MAX_TQM_ALLOC_REQ@GOTPAGE
Lloh17:
	ldr	x26, [x26, _MAX_TQM_ALLOC_REQ@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.8:
	mov	x22, #0
	mov	x23, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x23, x23, #1
	add	x22, x22, #24
	cmp	x23, w8, sxtw
	b.ge	LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	ldr	w9, [x9, x23, lsl #2]
	cbz	w9, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x19]
	mul	w8, w8, w9
	ldr	x9, [x19, #56]
	add	x1, x9, x22
	str	w8, [x1]
	ldr	w6, [x24]
	ldr	w7, [x25]
	mov	x0, x20
	mov	x2, #0
	mov	x3, x1
	mov	w4, #1
	mov	w5, #0
	bl	_bnxt_qplib_alloc_init_hwq
	cbnz	w0, LBB0_23
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x26]
	b	LBB0_9
LBB0_13:
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.14:
	mov	x28, #0
	mov	w27, #0
	ldr	x8, [x19, #80]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	w23, #-1
	mov	w10, #24
Lloh18:
	adrp	x11, _MAX_TQM_ALLOC_BLK_SIZE@GOTPAGE
Lloh19:
	ldr	x11, [x11, _MAX_TQM_ALLOC_BLK_SIZE@GOTPAGEOFF]
Lloh20:
	adrp	x12, _PTU_PTE_VALID@GOTPAGE
Lloh21:
	ldr	x12, [x12, _PTU_PTE_VALID@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_17 Depth=1
	ldr	x8, [x8, #2088]
	ldr	w8, [x8]
	ldr	w9, [x12]
	orr	w0, w9, w8
	bl	_cpu_to_le64
	mov	x22, x0
	mov	x0, x27
	bl	_PTR_PG
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x21, [x8, x0, lsl #3]
	mov	x0, x27
	bl	_PTR_IDX
Lloh22:
	adrp	x12, _PTU_PTE_VALID@GOTPAGE
Lloh23:
	ldr	x12, [x12, _PTU_PTE_VALID@GOTPAGEOFF]
Lloh24:
	adrp	x11, _MAX_TQM_ALLOC_BLK_SIZE@GOTPAGE
Lloh25:
	ldr	x11, [x11, _MAX_TQM_ALLOC_BLK_SIZE@GOTPAGEOFF]
	mov	w10, #24
	str	w22, [x21, x0, lsl #2]
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x28, x28, #1
	ldr	w8, [x11]
	add	w27, w27, w8
	ldrsw	x8, [x26]
	cmp	x28, x8
	b.ge	LBB0_24
LBB0_17:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	ldr	x8, [x19, #56]
	mul	x9, x28, x10
	ldr	w9, [x8, x9]
	cbz	w9, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	cmn	w23, #1
	csel	w23, w28, w23, eq
	madd	x8, x28, x10, x8
	ldr	w9, [x8, #4]
	ldr	x8, [x8, #8]
	cmp	w9, #128
	b.ne	LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	w9, [x8, #2064]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.20:                               ;   in Loop: Header=BB0_17 Depth=1
	mov	x9, x27
	mov	x27, #0
	stp	w9, w23, [sp]                   ; 8-byte Folded Spill
	mov	w26, w9
LBB0_21:                                ;   Parent Loop BB0_17 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x8, #2072]
	ldr	w8, [x8, x27, lsl #2]
	ldr	w9, [x12]
	orr	w0, w9, w8
	bl	_cpu_to_le64
	mov	x22, x0
	add	w23, w26, w27
	mov	x0, x23
	bl	_PTR_PG
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x21, [x8, x0, lsl #3]
	mov	x0, x23
	bl	_PTR_IDX
Lloh26:
	adrp	x12, _PTU_PTE_VALID@GOTPAGE
Lloh27:
	ldr	x12, [x12, _PTU_PTE_VALID@GOTPAGEOFF]
	mov	w10, #24
	str	w22, [x21, x0, lsl #2]
	add	x27, x27, #1
	ldr	x8, [x19, #56]
	madd	x8, x28, x10, x8
	ldr	x8, [x8, #8]
	ldrsw	x9, [x8, #2064]
	cmp	x27, x9
	b.lt	LBB0_21
; %bb.22:                               ;   in Loop: Header=BB0_17 Depth=1
Lloh28:
	adrp	x26, _MAX_TQM_ALLOC_REQ@GOTPAGE
Lloh29:
	ldr	x26, [x26, _MAX_TQM_ALLOC_REQ@GOTPAGEOFF]
	ldp	w27, w23, [sp]                  ; 8-byte Folded Reload
Lloh30:
	adrp	x11, _MAX_TQM_ALLOC_BLK_SIZE@GOTPAGE
Lloh31:
	ldr	x11, [x11, _MAX_TQM_ALLOC_BLK_SIZE@GOTPAGEOFF]
	b	LBB0_16
LBB0_23:
	mov	x21, x0
	b	LBB0_27
LBB0_24:
	cmn	w23, #1
	b.ne	LBB0_26
LBB0_25:
	mov	w23, #0
LBB0_26:
	ldr	w8, [x19]
	lsl	w8, w8, #4
	mov	x1, x19
	str	w8, [x1, #32]!
	ldr	x8, [x1, #24]
	mov	w9, #24
	smaddl	x8, w23, w9, x8
	ldr	w8, [x8, #4]
	cmp	w8, #128
	cinc	w8, w8, ne
	stur	w8, [x1, #-8]
	ldr	w6, [x24]
	ldr	w7, [x25]
	mov	x0, x20
	mov	x2, #0
	mov	x3, x1
	mov	w4, #1
	mov	w5, #0
	bl	_bnxt_qplib_alloc_init_hwq
	mov	x21, x0
	cbz	w0, LBB0_1
LBB0_27:
	mov	x0, x20
	mov	x1, x19
	bl	_bnxt_qplib_free_ctx
LBB0_28:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_QPLIB_MAX_QP_CTX_ENTRY_SIZE,4,2 ; @BNXT_QPLIB_MAX_QP_CTX_ENTRY_SIZE
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_HWQ_TYPE_CTX,4,2               ; @HWQ_TYPE_CTX
	.comm	_BNXT_QPLIB_MAX_MRW_CTX_ENTRY_SIZE,4,2 ; @BNXT_QPLIB_MAX_MRW_CTX_ENTRY_SIZE
	.comm	_BNXT_QPLIB_MAX_SRQ_CTX_ENTRY_SIZE,4,2 ; @BNXT_QPLIB_MAX_SRQ_CTX_ENTRY_SIZE
	.comm	_BNXT_QPLIB_MAX_CQ_CTX_ENTRY_SIZE,4,2 ; @BNXT_QPLIB_MAX_CQ_CTX_ENTRY_SIZE
	.comm	_MAX_TQM_ALLOC_REQ,4,2          ; @MAX_TQM_ALLOC_REQ
	.comm	_PTU_PTE_VALID,4,2              ; @PTU_PTE_VALID
	.comm	_MAX_TQM_ALLOC_BLK_SIZE,8,3     ; @MAX_TQM_ALLOC_BLK_SIZE
.subsections_via_symbols
