	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function reserve_flowkey_alg_idx
_reserve_flowkey_alg_idx:               ## @reserve_flowkey_alg_idx
	.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, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_FIELDS_PER_ALG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	(%r13), %edi
	movl	%r15d, %esi
	callq	_get_nix_hw
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	(%rax), %eax
	movq	_NIX_FLOW_KEY_ALG_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_3
## %bb.4:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_set_flowkey_fields
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movq	_FIELDS_PER_ALG@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_8
## %bb.6:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movl	%r14d, %esi
	callq	_NIX_AF_RX_FLOW_KEY_ALGX_FIELDX
	movl	(%r12,%r14,4), %ecx
	movq	%r13, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_rvu_write64
	incq	%r14
	movq	_FIELDS_PER_ALG@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r14
	jl	LBB0_7
LBB0_8:
	movslq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, (%rcx,%rax,4)
	incl	(%rbx)
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_3:
	movq	_NIX_AF_ERR_RSS_NOSPC_ALGO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_11
## %bb.10:
                                        ## kill: def $eax killed $eax killed $rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FIELDS_PER_ALG,4,2             ## @FIELDS_PER_ALG
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NIX_FLOW_KEY_ALG_MAX,4,2       ## @NIX_FLOW_KEY_ALG_MAX
	.comm	_NIX_AF_ERR_RSS_NOSPC_ALGO,4,2  ## @NIX_AF_ERR_RSS_NOSPC_ALGO
	.no_dead_strip	_reserve_flowkey_alg_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function reserve_flowkey_alg_idx
_reserve_flowkey_alg_idx:               ; @reserve_flowkey_alg_idx
	.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
	sub	sp, sp, #16
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x25, _FIELDS_PER_ALG@GOTPAGE
Lloh4:
	ldr	x25, [x25, _FIELDS_PER_ALG@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w0, [x0]
	bl	_get_nix_hw
	cbz	x0, LBB0_7
; %bb.1:
	mov	x23, x0
	ldr	w8, [x0]
Lloh7:
	adrp	x9, _NIX_FLOW_KEY_ALG_MAX@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NIX_FLOW_KEY_ALG_MAX@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_8
; %bb.2:
	mov	x0, x22
	mov	x1, x19
	bl	_set_flowkey_fields
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_9
; %bb.3:
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x24, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x24
	bl	_NIX_AF_RX_FLOW_KEY_ALGX_FIELDX
	mov	x2, x0
	ldr	w3, [x22, x24, lsl #2]
	mov	x0, x21
	mov	x1, x20
	bl	_rvu_write64
	add	x24, x24, #1
	ldrsw	x8, [x25]
	cmp	x24, x8
	b.lt	LBB0_5
LBB0_6:
	ldrsw	x0, [x23]
	ldr	x8, [x23, #8]
	str	w19, [x8, x0, lsl #2]
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
	b	LBB0_9
LBB0_7:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x8, _NIX_AF_ERR_RSS_NOSPC_ALGO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NIX_AF_ERR_RSS_NOSPC_ALGO@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
LBB0_9:
	ldur	x8, [x29, #-72]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
                                        ; kill: def $w0 killed $w0 killed $x0
	sub	sp, x29, #64
	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
LBB0_11:
	bl	___stack_chk_fail
	.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 AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_FIELDS_PER_ALG,4,2             ; @FIELDS_PER_ALG
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NIX_FLOW_KEY_ALG_MAX,4,2       ; @NIX_FLOW_KEY_ALG_MAX
	.comm	_NIX_AF_ERR_RSS_NOSPC_ALGO,4,2  ; @NIX_AF_ERR_RSS_NOSPC_ALGO
	.no_dead_strip	_reserve_flowkey_alg_idx
.subsections_via_symbols
