	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_qplib_alloc_fast_reg_page_list ## -- Begin function bnxt_qplib_alloc_fast_reg_page_list
	.p2align	4, 0x90
_bnxt_qplib_alloc_fast_reg_page_list:   ## @bnxt_qplib_alloc_fast_reg_page_list
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	%edx, %edi
	callq	_roundup_pow_of_two
	movl	%eax, %r15d
	movq	_MAX_PBL_LVL_1_PGS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r15d, %edx
	sarl	%cl, %edx
	testl	%edx, %edx
	movl	$1, %eax
	cmovnel	%edx, %eax
	movq	_MAX_PBL_LVL_1_PGS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_2:
	leaq	4(%r14), %rcx
	movl	%eax, 4(%r14)
	movl	(%rbx), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_HWQ_TYPE_CTX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rcx, %rsi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	%r8
	callq	_bnxt_qplib_alloc_init_hwq
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	%r15d, (%r14)
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PBL_LVL_1_PGS_SHIFT,4,2    ## @MAX_PBL_LVL_1_PGS_SHIFT
	.comm	_MAX_PBL_LVL_1_PGS,4,2          ## @MAX_PBL_LVL_1_PGS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_HWQ_TYPE_CTX,4,2               ## @HWQ_TYPE_CTX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_qplib_alloc_fast_reg_page_list ; -- Begin function bnxt_qplib_alloc_fast_reg_page_list
	.p2align	2
_bnxt_qplib_alloc_fast_reg_page_list:   ; @bnxt_qplib_alloc_fast_reg_page_list
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x21, x0
	mov	x0, x2
	bl	_roundup_pow_of_two
Lloh0:
	adrp	x8, _MAX_PBL_LVL_1_PGS_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_PBL_LVL_1_PGS_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	asr	w8, w0, w8
	cmp	w8, #0
	csinc	w8, w8, wzr, ne
Lloh3:
	adrp	x9, _MAX_PBL_LVL_1_PGS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_PBL_LVL_1_PGS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.le	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
	mov	x20, x0
	mov	x1, x19
	str	w8, [x1, #4]!
	ldr	w0, [x21]
Lloh9:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
Lloh12:
	adrp	x8, _HWQ_TYPE_CTX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HWQ_TYPE_CTX@GOTPAGEOFF]
Lloh14:
	ldr	w7, [x8]
	mov	x2, #0
	mov	x3, x1
	mov	w5, #0
	mov	x6, x4
	bl	_bnxt_qplib_alloc_init_hwq
	cbnz	w0, LBB0_4
; %bb.3:
	str	w20, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PBL_LVL_1_PGS_SHIFT,4,2    ; @MAX_PBL_LVL_1_PGS_SHIFT
	.comm	_MAX_PBL_LVL_1_PGS,4,2          ; @MAX_PBL_LVL_1_PGS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_HWQ_TYPE_CTX,4,2               ; @HWQ_TYPE_CTX
.subsections_via_symbols
