	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_qplib_alloc_init_hwq      ## -- Begin function bnxt_qplib_alloc_init_hwq
	.p2align	4, 0x90
_bnxt_qplib_alloc_init_hwq:             ## @bnxt_qplib_alloc_init_hwq
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, %r14d
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_PBL_LVL_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rsi)
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movl	(%rcx), %edi
	callq	_roundup_pow_of_two
	testl	%r15d, %r15d
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_roundup_pow_of_two
	imull	%ebx, %eax
	cltd
	idivl	16(%rbp)
	movl	%eax, %r15d
	cmpl	$1, %edx
	sbbl	$-1, %r15d
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	movl	%r14d, %edi
	callq	_roundup_pow_of_two
	movl	%eax, %ecx
	testq	%r12, %r12
	je	LBB0_5
## %bb.4:
	movq	8(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.8:
	movl	$1, 8(%r13)
	movl	(%r12), %r14d
	movl	4(%r12), %r8d
	movq	_MAX_PBL_LVL_0_PGS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_9
## %bb.41:
	movq	_PBL_LVL_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rsi
	shlq	$3, %rsi
	addq	32(%r13), %rsi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%r14d, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	16(%rbp), %ebx
	jmp	LBB0_11
LBB0_5:
	movl	$0, 8(%r13)
	movl	%ecx, %eax
	imull	-72(%rbp), %eax                 ## 4-byte Folded Reload
	cltd
	movl	16(%rbp), %ebx
	idivl	%ebx
	addl	%r15d, %eax
	xorl	%r14d, %r14d
	testl	%edx, %edx
	setne	%r14b
	addl	%eax, %r14d
	je	LBB0_7
## %bb.6:
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_39
LBB0_9:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	16(%rbp), %ebx
LBB0_10:
	movq	_PBL_LVL_0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rsi
	shlq	$3, %rsi
	addq	32(%r13), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
LBB0_11:
	movl	%ebx, %r9d
	callq	___alloc_pbl
	testl	%eax, %eax
	je	LBB0_12
LBB0_38:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_bnxt_qplib_free_hwq
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_39:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_40:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_PBL_LVL_0@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, (%r13)
	movq	_MAX_PBL_LVL_0_PGS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jle	LBB0_37
## %bb.13:
	movl	24(%rbp), %ecx
	movq	_MAX_PBL_LVL_1_PGS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jle	LBB0_26
## %bb.14:
	movq	_PBL_LVL_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rsi
	shlq	$3, %rsi
	addq	32(%r13), %rsi
	movq	_MAX_PBL_LVL_1_PGS_FOR_LVL_2@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	movl	%ebx, %r9d
	callq	___alloc_pbl
	testl	%eax, %eax
	jne	LBB0_38
## %bb.15:
	movq	32(%r13), %rax
	movq	_PBL_LVL_1@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rcx
	leaq	(%rcx,%rcx,2), %rdx
	cmpl	$0, 8(%rax,%rdx,8)
	movl	%r14d, -84(%rbp)                ## 4-byte Spill
	jle	LBB0_16
## %bb.17:
	movq	(%r15), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	16(%rax,%rcx,8), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rdx,8), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%rsi, %r15
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	_PTU_PDE_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	orl	(%rax,%rbx,4), %r12d
	movl	%ebx, %edi
	callq	_PTR_PG
	movq	%r13, %r14
	movq	%r15, %r13
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %r15
	movl	%ebx, %edi
	callq	_PTR_IDX
	movl	%r12d, (%r15,%rax,4)
	movq	%r13, %r15
	movq	%r14, %r13
	incq	%rbx
	movq	32(%r14), %rax
	movq	(%r15), %rcx
	leaq	(%rcx,%rcx,2), %rdx
	movslq	8(%rax,%rdx,8), %rdx
	cmpq	%rdx, %rbx
	jl	LBB0_18
	jmp	LBB0_19
LBB0_26:
	movq	_HWQ_TYPE_L2_CMPL@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpl	%ecx, (%rax)
	je	LBB0_28
## %bb.27:
	movq	_PTU_PTE_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_28:
	movl	%edx, -80(%rbp)                 ## 4-byte Spill
	movq	_PBL_LVL_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %rsi
	shlq	$3, %rsi
	addq	32(%r13), %rsi
	movq	%r12, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %ecx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	%ebx, %r9d
	callq	___alloc_pbl
	testl	%eax, %eax
	jne	LBB0_38
## %bb.29:
	movq	32(%r13), %rax
	movq	(%r15), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	16(%rax,%rcx,8), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	_PBL_LVL_1@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	8(%rax,%rcx,8), %r14d
	testl	%r14d, %r14d
	jle	LBB0_33
## %bb.30:
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movl	-80(%rbp), %r15d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_31:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rbx,4), %r14d
	orl	%r15d, %r14d
	movl	%ebx, %edi
	callq	_PTR_PG
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %r12
	movl	%ebx, %edi
	callq	_PTR_IDX
	movl	%r14d, (%r12,%rax,4)
	incq	%rbx
	movq	32(%r13), %rax
	movq	_PBL_LVL_1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movslq	8(%rax,%rcx,8), %r14
	cmpq	%r14, %rbx
	jl	LBB0_31
## %bb.32:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	_PBL_LVL_1@GOTPCREL(%rip), %rdx
LBB0_33:
	movq	_HWQ_TYPE_QUEUE@GOTPCREL(%rip), %rax
	movl	24(%rbp), %ecx
	cmpl	%ecx, (%rax)
	jne	LBB0_36
## %bb.34:
	movq	_PTU_PTE_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leal	-1(%r14), %ebx
	movl	%ebx, %edi
	callq	_PTR_PG
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %r12
	movl	%ebx, %edi
	callq	_PTR_IDX
	orl	%r15d, (%r12,%rax,4)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	_PBL_LVL_1@GOTPCREL(%rip), %rdx
	cmpl	$2, %r14d
	jge	LBB0_35
	jmp	LBB0_36
LBB0_16:
	movq	%rsi, %r15
LBB0_19:
	movq	%rcx, (%r13)
	movq	_PBL_LVL_2@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(%rax,%rcx,8), %rsi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	movq	-48(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	16(%rbp), %r9d
	callq	___alloc_pbl
	testl	%eax, %eax
	jne	LBB0_38
## %bb.20:
	movq	32(%r13), %rax
	movq	(%r15), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	16(%rax,%rcx,8), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	8(%rax,%rcx,8), %r14d
	testl	%r14d, %r14d
	movq	%rbx, %rdx
	jle	LBB0_24
## %bb.21:
	movq	(%rax,%rcx,8), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	_PTU_PTE_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	orl	(%r12,%rbx,4), %r14d
	movl	%ebx, %edi
	callq	_PTR_PG
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %r15
	movl	%ebx, %edi
	callq	_PTR_IDX
	movl	%r14d, (%r15,%rax,4)
	incq	%rbx
	movq	32(%r13), %rax
	movq	_PBL_LVL_2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movslq	8(%rax,%rcx,8), %r14
	cmpq	%r14, %rbx
	jl	LBB0_22
## %bb.23:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	_PBL_LVL_2@GOTPCREL(%rip), %rdx
LBB0_24:
	movq	_HWQ_TYPE_QUEUE@GOTPCREL(%rip), %rax
	movl	24(%rbp), %ecx
	cmpl	%ecx, (%rax)
	jne	LBB0_36
## %bb.25:
	movq	_PTU_PTE_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leal	-1(%r14), %ebx
	movl	%ebx, %edi
	callq	_PTR_PG
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %r12
	movl	%ebx, %edi
	callq	_PTR_IDX
	orl	%r15d, (%r12,%rax,4)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	_PBL_LVL_2@GOTPCREL(%rip), %rdx
	cmpl	$1, %r14d
	jle	LBB0_36
LBB0_35:
	movq	_PTU_PTE_NEXT_TO_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	addl	$-2, %r14d
	movl	%r14d, %edi
	movq	%rdx, %r15
	callq	_PTR_PG
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %rbx
	movl	%r14d, %edi
	callq	_PTR_IDX
	movq	%r15, %rdx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	orl	%ecx, (%rbx,%rax,4)
LBB0_36:
	movq	(%rdx), %rax
	movq	%rax, (%r13)
LBB0_37:
	movq	%r12, 72(%r13)
	leaq	64(%r13), %rdi
	callq	_spin_lock_init
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%r13)
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, 12(%r13)
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	%ecx, (%rax)
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%r13)
	movq	(%r13), %rax
	movq	32(%r13), %rcx
	leaq	(%rax,%rax,2), %rax
	movq	16(%rcx,%rax,8), %rdx
	movq	%rdx, 40(%r13)
	movq	(%rcx,%rax,8), %rax
	movq	%rax, 24(%r13)
	xorl	%eax, %eax
	jmp	LBB0_40
	.cfi_endproc
                                        ## -- End function
	.comm	_PBL_LVL_MAX,8,3                ## @PBL_LVL_MAX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MAX_PBL_LVL_0_PGS,4,2          ## @MAX_PBL_LVL_0_PGS
	.comm	_PBL_LVL_0,8,3                  ## @PBL_LVL_0
	.comm	_MAX_PBL_LVL_1_PGS,4,2          ## @MAX_PBL_LVL_1_PGS
	.comm	_PBL_LVL_1,8,3                  ## @PBL_LVL_1
	.comm	_MAX_PBL_LVL_1_PGS_FOR_LVL_2,4,2 ## @MAX_PBL_LVL_1_PGS_FOR_LVL_2
	.comm	_PTU_PDE_VALID,4,2              ## @PTU_PDE_VALID
	.comm	_PBL_LVL_2,8,3                  ## @PBL_LVL_2
	.comm	_PTU_PTE_VALID,4,2              ## @PTU_PTE_VALID
	.comm	_HWQ_TYPE_QUEUE,4,2             ## @HWQ_TYPE_QUEUE
	.comm	_PTU_PTE_LAST,4,2               ## @PTU_PTE_LAST
	.comm	_PTU_PTE_NEXT_TO_LAST,4,2       ## @PTU_PTE_NEXT_TO_LAST
	.comm	_HWQ_TYPE_L2_CMPL,4,2           ## @HWQ_TYPE_L2_CMPL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnxt_qplib_alloc_init_hwq      ; -- Begin function bnxt_qplib_alloc_init_hwq
	.p2align	2
_bnxt_qplib_alloc_init_hwq:             ; @bnxt_qplib_alloc_init_hwq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	w7, [sp, #24]                   ; 4-byte Folded Spill
	mov	x25, x6
	mov	x24, x5
	mov	x23, x4
	mov	x22, x3
	mov	x28, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _PBL_LVL_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PBL_LVL_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x1]
	ldr	w0, [x3]
	bl	_roundup_pow_of_two
	mov	x26, x0
	cbz	w24, LBB0_2
; %bb.1:
	mov	x0, x24
	bl	_roundup_pow_of_two
	mul	w8, w0, w26
	sdiv	w9, w8, w25
	msub	w8, w9, w25, w8
	cmp	w8, #0
	cinc	w20, w9, ne
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
	mov	x0, x23
	bl	_roundup_pow_of_two
	mov	x24, x0
	str	w26, [sp, #28]                  ; 4-byte Folded Spill
	cbz	x28, LBB0_7
; %bb.4:
	ldr	x27, [x28, #8]
	cbz	x27, LBB0_7
; %bb.5:
	mov	w8, #1
	str	w8, [x19, #8]
	ldp	w26, w20, [x28]
Lloh3:
	adrp	x8, _MAX_PBL_LVL_0_PGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_PBL_LVL_0_PGS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w26, w8
	b.ne	LBB0_9
; %bb.6:
	ldr	x8, [x19, #32]
Lloh6:
	adrp	x9, _PBL_LVL_0@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PBL_LVL_0@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	mov	w10, #24
	madd	x1, x9, x10, x8
	mov	x0, x21
	mov	x2, x27
	mov	x3, x26
	mov	x4, x20
	b	LBB0_10
LBB0_7:
	str	wzr, [x19, #8]
	mul	w8, w24, w26
	sdiv	w9, w8, w25
	add	w10, w9, w20
	msub	w8, w9, w25, w8
	cmp	w8, #0
	cinc	w26, w10, ne
	cbz	w26, LBB0_26
; %bb.8:
	mov	w20, #0
	mov	x27, #0
LBB0_9:
	ldr	x8, [x19, #32]
Lloh9:
	adrp	x9, _PBL_LVL_0@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PBL_LVL_0@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	mov	w10, #24
	madd	x1, x9, x10, x8
	mov	x0, x21
	mov	x2, #0
	mov	w3, #1
	mov	w4, #0
LBB0_10:
	mov	x5, x25
	bl	___alloc_pbl
	cbz	w0, LBB0_12
LBB0_11:
	mov	x0, x21
	mov	x1, x19
	bl	_bnxt_qplib_free_hwq
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_27
LBB0_12:
Lloh14:
	adrp	x23, _PBL_LVL_0@GOTPAGE
Lloh15:
	ldr	x23, [x23, _PBL_LVL_0@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [x19]
Lloh16:
	adrp	x8, _MAX_PBL_LVL_0_PGS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MAX_PBL_LVL_0_PGS@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w26, w8
	b.le	LBB0_40
; %bb.13:
Lloh19:
	adrp	x8, _MAX_PBL_LVL_1_PGS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MAX_PBL_LVL_1_PGS@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w26, w8
	b.le	LBB0_29
; %bb.14:
	ldr	x8, [x19, #32]
Lloh22:
	adrp	x28, _PBL_LVL_1@GOTPAGE
Lloh23:
	ldr	x28, [x28, _PBL_LVL_1@GOTPAGEOFF]
	ldr	x9, [x28]
	mov	w10, #24
	madd	x1, x9, x10, x8
Lloh24:
	adrp	x8, _MAX_PBL_LVL_1_PGS_FOR_LVL_2@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MAX_PBL_LVL_1_PGS_FOR_LVL_2@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x2, #0
	mov	w4, #0
	mov	x5, x25
	bl	___alloc_pbl
	cbnz	w0, LBB0_11
; %bb.15:
	ldr	x8, [x19, #32]
	mov	w10, #24
	ldr	x9, [x28]
	madd	x11, x9, x10, x8
	ldr	w12, [x11, #8]
	cmp	w12, #1
	b.lt	LBB0_19
; %bb.16:
	str	x21, [sp]                       ; 8-byte Folded Spill
	stp	w20, w24, [sp, #8]              ; 8-byte Folded Spill
	str	x22, [sp, #16]                  ; 8-byte Folded Spill
	mov	x24, #0
	ldr	x9, [x23]
	madd	x8, x9, x10, x8
	ldr	x23, [x8, #16]
	ldr	x20, [x11]
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, x24, lsl #2]
Lloh27:
	adrp	x9, _PTU_PDE_VALID@GOTPAGE
Lloh28:
	ldr	x9, [x9, _PTU_PDE_VALID@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	mov	x21, x28
	orr	w28, w9, w8
	mov	x0, x24
	bl	_PTR_PG
	ldr	x22, [x23, x0, lsl #3]
	mov	x0, x24
	bl	_PTR_IDX
	str	w28, [x22, x0, lsl #2]
	mov	x28, x21
	add	x24, x24, #1
	ldr	x8, [x19, #32]
	ldr	x9, [x21]
	mov	w10, #24
	madd	x10, x9, x10, x8
	ldrsw	x10, [x10, #8]
	cmp	x24, x10
	b.lt	LBB0_17
; %bb.18:
	ldr	x22, [sp, #16]                  ; 8-byte Folded Reload
	ldp	w20, w24, [sp, #8]              ; 8-byte Folded Reload
	ldr	x21, [sp]                       ; 8-byte Folded Reload
LBB0_19:
	str	x9, [x19]
Lloh30:
	adrp	x23, _PBL_LVL_2@GOTPAGE
Lloh31:
	ldr	x23, [x23, _PBL_LVL_2@GOTPAGEOFF]
	ldr	x9, [x23]
	mov	w10, #24
	madd	x1, x9, x10, x8
	mov	x0, x21
	mov	x2, x27
	mov	x3, x26
	mov	x4, x20
	mov	x5, x25
	bl	___alloc_pbl
	cbnz	w0, LBB0_11
; %bb.20:
	ldr	x8, [x19, #32]
	ldr	x9, [x28]
	mov	w10, #24
	madd	x9, x9, x10, x8
	ldr	x25, [x9, #16]
	ldr	x9, [x23]
	madd	x8, x9, x10, x8
	ldr	w26, [x8, #8]
	cmp	w26, #1
	b.lt	LBB0_24
; %bb.21:
	str	w24, [sp, #12]                  ; 4-byte Folded Spill
	str	x22, [sp, #16]                  ; 8-byte Folded Spill
	mov	x24, #0
	ldr	x20, [x8]
Lloh32:
	adrp	x27, _PTU_PTE_VALID@GOTPAGE
Lloh33:
	ldr	x27, [x27, _PTU_PTE_VALID@GOTPAGEOFF]
	mov	w22, #24
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, x24, lsl #2]
	ldr	w9, [x27]
	orr	w26, w9, w8
	mov	x0, x24
	bl	_PTR_PG
	ldr	x28, [x25, x0, lsl #3]
	mov	x0, x24
	bl	_PTR_IDX
	str	w26, [x28, x0, lsl #2]
	add	x24, x24, #1
	ldr	x8, [x19, #32]
	ldr	x9, [x23]
	madd	x8, x9, x22, x8
	ldrsw	x26, [x8, #8]
	cmp	x24, x26
	b.lt	LBB0_22
; %bb.23:
	ldr	x22, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w24, [sp, #12]                  ; 4-byte Folded Reload
LBB0_24:
Lloh34:
	adrp	x8, _HWQ_TYPE_QUEUE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _HWQ_TYPE_QUEUE@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	ldr	w9, [sp, #24]                   ; 4-byte Folded Reload
	cmp	w8, w9
	b.ne	LBB0_38
; %bb.25:
Lloh37:
	adrp	x8, _PTU_PTE_LAST@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PTU_PTE_LAST@GOTPAGEOFF]
Lloh39:
	ldr	w20, [x8]
	mov	x27, x24
	subs	w24, w26, #1
	mov	x0, x24
	bl	_PTR_PG
	mov	x23, x22
	ldr	x22, [x25, x0, lsl #3]
	mov	x0, x24
	mov	x24, x27
	bl	_PTR_IDX
	lsl	x8, x0, #2
	ldr	w9, [x22, x8]
	orr	w9, w9, w20
	str	w9, [x22, x8]
	mov	x22, x23
Lloh40:
	adrp	x23, _PBL_LVL_2@GOTPAGE
Lloh41:
	ldr	x23, [x23, _PBL_LVL_2@GOTPAGEOFF]
	cmp	w26, #1
	b.gt	LBB0_36
	b	LBB0_39
LBB0_26:
Lloh42:
	adrp	x8, _EINVAL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_28:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_29:
Lloh44:
	adrp	x8, _HWQ_TYPE_L2_CMPL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _HWQ_TYPE_L2_CMPL@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
Lloh47:
	adrp	x9, _PTU_PTE_VALID@GOTPAGE
Lloh48:
	ldr	x9, [x9, _PTU_PTE_VALID@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	ldr	w10, [sp, #24]                  ; 4-byte Folded Reload
	cmp	w8, w10
	csel	w23, wzr, w9, eq
	ldr	x8, [x19, #32]
Lloh50:
	adrp	x28, _PBL_LVL_1@GOTPAGE
Lloh51:
	ldr	x28, [x28, _PBL_LVL_1@GOTPAGEOFF]
	ldr	x9, [x28]
	mov	w10, #24
	madd	x1, x9, x10, x8
	mov	x0, x21
	mov	x2, x27
	mov	x3, x26
	mov	x4, x20
	mov	x5, x25
	bl	___alloc_pbl
	cbnz	w0, LBB0_11
; %bb.30:
	ldr	x8, [x19, #32]
Lloh52:
	adrp	x9, _PBL_LVL_0@GOTPAGE
Lloh53:
	ldr	x9, [x9, _PBL_LVL_0@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	mov	w10, #24
	madd	x9, x9, x10, x8
	ldr	x25, [x9, #16]
	ldr	x9, [x28]
	madd	x8, x9, x10, x8
	ldr	w26, [x8, #8]
	cmp	w26, #1
	b.lt	LBB0_34
; %bb.31:
	str	w24, [sp, #12]                  ; 4-byte Folded Spill
	str	x22, [sp, #16]                  ; 8-byte Folded Spill
	mov	x24, #0
	ldr	x20, [x8]
	mov	w22, #24
LBB0_32:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, x24, lsl #2]
	orr	w26, w8, w23
	mov	x0, x24
	bl	_PTR_PG
	ldr	x27, [x25, x0, lsl #3]
	mov	x0, x24
	bl	_PTR_IDX
	str	w26, [x27, x0, lsl #2]
	add	x24, x24, #1
	ldr	x8, [x19, #32]
	ldr	x9, [x28]
	madd	x8, x9, x22, x8
	ldrsw	x26, [x8, #8]
	cmp	x24, x26
	b.lt	LBB0_32
; %bb.33:
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	ldr	x22, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w24, [sp, #12]                  ; 4-byte Folded Reload
LBB0_34:
Lloh55:
	adrp	x8, _HWQ_TYPE_QUEUE@GOTPAGE
Lloh56:
	ldr	x8, [x8, _HWQ_TYPE_QUEUE@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	ldr	w9, [sp, #24]                   ; 4-byte Folded Reload
	cmp	w8, w9
	b.ne	LBB0_37
; %bb.35:
Lloh58:
	adrp	x8, _PTU_PTE_LAST@GOTPAGE
Lloh59:
	ldr	x8, [x8, _PTU_PTE_LAST@GOTPAGEOFF]
Lloh60:
	ldr	w20, [x8]
	mov	x27, x24
	sub	w24, w26, #1
	mov	x0, x24
	bl	_PTR_PG
	mov	x23, x22
	ldr	x22, [x25, x0, lsl #3]
	mov	x0, x24
	mov	x24, x27
	bl	_PTR_IDX
	lsl	x8, x0, #2
	ldr	w9, [x22, x8]
	orr	w9, w9, w20
	str	w9, [x22, x8]
	mov	x22, x23
Lloh61:
	adrp	x23, _PBL_LVL_1@GOTPAGE
Lloh62:
	ldr	x23, [x23, _PBL_LVL_1@GOTPAGEOFF]
	cmp	w26, #2
	b.lt	LBB0_39
LBB0_36:
Lloh63:
	adrp	x8, _PTU_PTE_NEXT_TO_LAST@GOTPAGE
Lloh64:
	ldr	x8, [x8, _PTU_PTE_NEXT_TO_LAST@GOTPAGEOFF]
Lloh65:
	ldr	w20, [x8]
	mov	x27, x24
	sub	w24, w26, #2
	mov	x0, x24
	bl	_PTR_PG
	mov	x26, x22
	ldr	x22, [x25, x0, lsl #3]
	mov	x0, x24
	mov	x24, x27
	bl	_PTR_IDX
	lsl	x8, x0, #2
	ldr	w9, [x22, x8]
	orr	w9, w9, w20
	str	w9, [x22, x8]
	mov	x22, x26
	b	LBB0_39
LBB0_37:
Lloh66:
	adrp	x23, _PBL_LVL_1@GOTPAGE
Lloh67:
	ldr	x23, [x23, _PBL_LVL_1@GOTPAGEOFF]
	b	LBB0_39
LBB0_38:
Lloh68:
	adrp	x23, _PBL_LVL_2@GOTPAGE
Lloh69:
	ldr	x23, [x23, _PBL_LVL_2@GOTPAGEOFF]
LBB0_39:
	ldr	x8, [x23]
	str	x8, [x19]
LBB0_40:
	str	x21, [x19, #72]
	add	x0, x19, #64
	bl	_spin_lock_init
	mov	w0, #0
	stp	xzr, xzr, [x19, #48]
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	str	w8, [x19, #12]
	str	w8, [x22]
	str	w24, [x19, #16]
	ldr	x8, [x19, #32]
	ldr	x9, [x19]
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	x9, [x8, #16]
	str	x9, [x19, #40]
	ldr	x8, [x8]
	str	x8, [x19, #24]
	b	LBB0_28
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGot	Lloh68, Lloh69
	.cfi_endproc
                                        ; -- End function
	.comm	_PBL_LVL_MAX,8,3                ; @PBL_LVL_MAX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MAX_PBL_LVL_0_PGS,4,2          ; @MAX_PBL_LVL_0_PGS
	.comm	_PBL_LVL_0,8,3                  ; @PBL_LVL_0
	.comm	_MAX_PBL_LVL_1_PGS,4,2          ; @MAX_PBL_LVL_1_PGS
	.comm	_PBL_LVL_1,8,3                  ; @PBL_LVL_1
	.comm	_MAX_PBL_LVL_1_PGS_FOR_LVL_2,4,2 ; @MAX_PBL_LVL_1_PGS_FOR_LVL_2
	.comm	_PTU_PDE_VALID,4,2              ; @PTU_PDE_VALID
	.comm	_PBL_LVL_2,8,3                  ; @PBL_LVL_2
	.comm	_PTU_PTE_VALID,4,2              ; @PTU_PTE_VALID
	.comm	_HWQ_TYPE_QUEUE,4,2             ; @HWQ_TYPE_QUEUE
	.comm	_PTU_PTE_LAST,4,2               ; @PTU_PTE_LAST
	.comm	_PTU_PTE_NEXT_TO_LAST,4,2       ; @PTU_PTE_NEXT_TO_LAST
	.comm	_HWQ_TYPE_L2_CMPL,4,2           ; @HWQ_TYPE_L2_CMPL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
