	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nicvf_alloc_page
_nicvf_alloc_page:                      ## @nicvf_alloc_page
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rax
	movq	16(%rsi), %r12
	leaq	(%rax,%rax,2), %r14
	leaq	(%r12,%r14,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r12,%r14,8), %r15
	testq	%r15, %r15
	je	LBB0_5
## %bb.1:
	movq	%r15, %rdi
	callq	_page_ref_count
	cmpq	$0, 24(%r13)
	je	LBB0_4
## %bb.2:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.3:
	decl	%eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_10
LBB0_4:
	cmpl	$1, %eax
	je	LBB0_12
LBB0_5:
	movq	___GFP_COMP@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	___GFP_NOWARN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_alloc_pages
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_this_cpu_inc
	movl	8(%r13), %eax
	cmpl	12(%r13), %eax
	jge	LBB0_8
## %bb.9:
	leaq	(%r12,%r14,8), %rcx
	addq	$8, %rcx
	movq	%r15, (%rcx)
	movq	$0, 16(%r12,%r14,8)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$0, (%rcx)
	incl	%eax
	movl	%eax, 8(%r13)
	cmpq	$0, 24(%r13)
	je	LBB0_12
LBB0_10:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$0, (%rbx)
	jne	LBB0_13
## %bb.11:
	movq	_XDP_PAGE_REFCNT_REFILL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_page_ref_add
	jmp	LBB0_13
LBB0_6:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_8:
	movq	%r15, (%rbx)
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_12:
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_page_ref_add
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_13:
	movq	(%r13), %rax
	movq	16(%r13), %rcx
	incq	%rax
	movslq	12(%r13), %rdx
	decq	%rdx
	andq	%rax, %rdx
	movq	%rdx, (%r13)
	leaq	(%rdx,%rdx,2), %rax
	movq	8(%rcx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_prefetch
LBB0_15:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___GFP_COMP,4,2                 ## @__GFP_COMP
	.comm	___GFP_NOWARN,4,2               ## @__GFP_NOWARN
	.comm	_XDP_PAGE_REFCNT_REFILL,4,2     ## @XDP_PAGE_REFCNT_REFILL
	.no_dead_strip	_nicvf_alloc_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nicvf_alloc_page
_nicvf_alloc_page:                      ; @nicvf_alloc_page
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x23, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x24, [x1, #16]
	ldr	x25, [x1]
	mov	w8, #24
	madd	x19, x25, x8, x24
	mov	x26, x19
	ldr	x21, [x26, #8]!
	cbz	x21, LBB0_5
; %bb.1:
	mov	x0, x21
	bl	_page_ref_count
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	w8, [x19]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:
	sub	w8, w0, #1
	str	w8, [x19]
	b	LBB0_8
LBB0_4:
	cmp	w0, #1
	b.eq	LBB0_12
LBB0_5:
Lloh0:
	adrp	x8, ___GFP_COMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___GFP_COMP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w8, w8, w23
Lloh3:
	adrp	x9, ___GFP_NOWARN@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___GFP_NOWARN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w8, w9
	mov	w1, #0
	bl	_alloc_pages
	cbz	x0, LBB0_10
; %bb.6:
	mov	x21, x0
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_this_cpu_inc
	ldp	w8, w9, [x20, #8]
	cmp	w8, w9
	b.ge	LBB0_11
; %bb.7:
	str	x21, [x26]
	mov	w9, #24
	madd	x9, x25, x9, x24
	str	xzr, [x9, #16]
	str	wzr, [x19]
	add	w8, w8, #1
	str	w8, [x20, #8]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_12
LBB0_8:
	ldr	w8, [x19]
	cbnz	w8, LBB0_14
; %bb.9:
Lloh6:
	adrp	x8, _XDP_PAGE_REFCNT_REFILL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XDP_PAGE_REFCNT_REFILL@GOTPAGEOFF]
	ldr	w9, [x8]
	str	w9, [x19]
	ldr	w1, [x8]
	mov	x0, x21
	b	LBB0_13
LBB0_10:
	mov	x19, #0
	b	LBB0_16
LBB0_11:
	mov	x19, #0
	str	x21, [x22]
	b	LBB0_16
LBB0_12:
	mov	x0, x21
	mov	w1, #1
LBB0_13:
	bl	_page_ref_add
LBB0_14:
	ldr	x8, [x20]
	add	x8, x8, #1
	ldrsw	x9, [x20, #12]
	sub	x9, x9, #1
	and	x8, x8, x9
	str	x8, [x20]
	ldr	x9, [x20, #16]
	mov	w10, #24
	madd	x8, x8, x10, x9
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_16
; %bb.15:
	bl	_prefetch
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	___GFP_COMP,4,2                 ; @__GFP_COMP
	.comm	___GFP_NOWARN,4,2               ; @__GFP_NOWARN
	.comm	_XDP_PAGE_REFCNT_REFILL,4,2     ; @XDP_PAGE_REFCNT_REFILL
	.no_dead_strip	_nicvf_alloc_page
.subsections_via_symbols
