	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_mask_alloc
_nfp_mask_alloc:                        ## @nfp_mask_alloc
	.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
	movq	%rsi, %r15
	movq	(%rdi), %r13
	movq	_NFP_FLOWER_MASK_ENTRY_RS@GOTPCREL(%rip), %r12
	movslq	(%r12), %rbx
	decq	%rbx
	movq	%rbx, -48(%rbp)
	movq	(%r13), %rax
	testq	%rax, %rax
	jle	LBB0_2
## %bb.1:
	movq	%rax, (%r15)
	decq	(%r13)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_2:
	movq	24(%r13), %rsi
	cmpq	%rsi, 16(%r13)
	je	LBB0_8
## %bb.3:
	shlq	$3, %rsi
	addq	32(%r13), %rsi
	movq	_NFP_FLOWER_MASK_ELEMENT_RS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rdi
	callq	_memcpy
	movq	-56(%rbp), %rax
	movq	%rax, (%r15)
	movq	8(%r13), %rcx
	movl	(%rcx,%rax,4), %edi
	movq	_NFP_FL_MASK_REUSE_TIME_NS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ktime_add_ns
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_ktime_before
	testq	%rax, %rax
	je	LBB0_4
LBB0_8:
	movq	%rbx, (%r15)
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	24(%r13), %rdi
	shlq	$3, %rdi
	addq	32(%r13), %rdi
	movq	_NFP_FLOWER_MASK_ELEMENT_RS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-48(%rbp), %rsi
	callq	_memcpy
	movslq	(%rbx), %rdx
	movq	24(%r13), %rax
	addq	%rdx, %rax
	movslq	(%r12), %rcx
	imulq	%rdx, %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_5
## %bb.6:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_7
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_7:
	movq	%rdx, 24(%r13)
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_FLOWER_MASK_ENTRY_RS,4,2   ## @NFP_FLOWER_MASK_ENTRY_RS
	.comm	_NFP_FLOWER_MASK_ELEMENT_RS,4,2 ## @NFP_FLOWER_MASK_ELEMENT_RS
	.comm	_NFP_FL_MASK_REUSE_TIME_NS,4,2  ## @NFP_FL_MASK_REUSE_TIME_NS
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_nfp_mask_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_mask_alloc
_nfp_mask_alloc:                        ; @nfp_mask_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
Lloh0:
	adrp	x22, _NFP_FLOWER_MASK_ENTRY_RS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NFP_FLOWER_MASK_ENTRY_RS@GOTPAGEOFF]
	ldr	x21, [x0]
	ldrsw	x8, [x22]
	sub	x23, x8, #1
	str	x23, [sp]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
	mov	w0, #0
	str	x8, [x19]
	ldr	x8, [x21]
	sub	x8, x8, #1
	str	x8, [x21]
	b	LBB0_6
LBB0_2:
	ldp	x9, x8, [x21, #16]
	cmp	x9, x8
	b.eq	LBB0_4
; %bb.3:
	ldr	x9, [x21, #32]
	add	x1, x9, x8, lsl #3
Lloh2:
	adrp	x24, _NFP_FLOWER_MASK_ELEMENT_RS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _NFP_FLOWER_MASK_ELEMENT_RS@GOTPAGEOFF]
	ldr	w2, [x24]
	add	x0, sp, #8
	bl	_memcpy
	ldr	x8, [sp, #8]
	str	x8, [x19]
	ldr	x9, [x21, #8]
	ldr	w0, [x9, x8, lsl #2]
Lloh4:
	adrp	x8, _NFP_FL_MASK_REUSE_TIME_NS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NFP_FL_MASK_REUSE_TIME_NS@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_ktime_add_ns
	mov	x20, x0
	bl	_ktime_get
	mov	x1, x20
	bl	_ktime_before
	cbz	x0, LBB0_5
LBB0_4:
	str	x23, [x19]
Lloh7:
	adrp	x8, _ENOENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	ldp	x9, x8, [x21, #24]
	add	x0, x8, x9, lsl #3
	ldr	w2, [x24]
	mov	x1, sp
	bl	_memcpy
	mov	w0, #0
	ldr	x8, [x21, #24]
	ldrsw	x9, [x24]
	add	x8, x8, x9
	ldrsw	x10, [x22]
	mul	x9, x10, x9
	udiv	x10, x8, x9
	msub	x8, x10, x9, x8
	str	x8, [x21, #24]
LBB0_6:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_FLOWER_MASK_ENTRY_RS,4,2   ; @NFP_FLOWER_MASK_ENTRY_RS
	.comm	_NFP_FLOWER_MASK_ELEMENT_RS,4,2 ; @NFP_FLOWER_MASK_ELEMENT_RS
	.comm	_NFP_FL_MASK_REUSE_TIME_NS,4,2  ; @NFP_FL_MASK_REUSE_TIME_NS
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_nfp_mask_alloc
.subsections_via_symbols
