	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_compile_flow_metadata      ## -- Begin function nfp_compile_flow_metadata
	.p2align	4, 0x90
_nfp_compile_flow_metadata:             ## @nfp_compile_flow_metadata
	.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
	movq	%r8, %r15
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	(%rdi), %rbx
	leaq	-48(%rbp), %rsi
	callq	_nfp_get_stats_entry
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	jmp	LBB0_22
LBB0_2:
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rdi
	callq	_cpu_to_be32
	movl	%eax, 32(%r14)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_cpu_to_be64
	movq	%rax, 24(%r14)
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 56(%r14)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	-48(%rbp), %rcx
	movq	%rcx, (%rax)
	movq	%r14, 16(%rax)
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %r13
	movq	%rax, %r14
	addq	$8, %r14
	movq	_stats_ctx_table_params@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_rhashtable_insert_fast
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_20
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_6:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	$0, -64(%rbp)
	movl	(%r13), %edx
	movl	40(%r13), %esi
	leaq	16(%r13), %rcx
	leaq	-64(%rbp), %r8
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_nfp_check_mask_add
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	movl	16(%r12), %edi
	callq	_cpu_to_be64
	movq	%rax, 8(%r13)
	incl	16(%r12)
	movq	-64(%rbp), %rax
	movq	%r13, %r14
	movq	48(%r13), %rcx
	movq	_NFP_FL_MASK_ID_LOCATION@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	8(%r12), %rax
	movq	-48(%rbp), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	$0, 16(%rax,%rcx,8)
	movq	-48(%rbp), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movq	$0, 8(%rax,%rcx,8)
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-48(%rbp), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movl	%ecx, (%rax,%rdx,8)
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	callq	_nfp_flower_search_fl_table
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_nfp_release_stats_entry
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
LBB0_10:
	movq	%r15, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_nfp_release_stats_entry
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_NL_SET_ERR_MSG_MOD
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_13:
	xorl	%r12d, %r12d
	jmp	LBB0_22
LBB0_14:
	movl	(%r14), %edx
	movl	40(%r14), %esi
	leaq	-64(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_nfp_check_mask_remove
	testl	%eax, %eax
	je	LBB0_23
## %bb.15:
	movq	_EEXIST@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %r12d
	movl	(%r14), %edx
	movl	40(%r14), %esi
	leaq	-64(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_nfp_check_mask_remove
	jmp	LBB0_19
LBB0_17:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %r12d
LBB0_19:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	_stats_ctx_table_params@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_rhashtable_remove_fast
	movl	%eax, %edi
	callq	_WARN_ON_ONCE
LBB0_20:
	movq	%r14, %rdi
	callq	_kfree
LBB0_21:
	negl	%r12d
	movq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_nfp_release_stats_entry
LBB0_22:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid entry: cannot allocate new stats context"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_stats_ctx_table_params,4,2     ## @stats_ctx_table_params
L_.str.1:                               ## @.str.1
	.asciz	"invalid entry: cannot allocate a new mask id"

L_.str.2:                               ## @.str.2
	.asciz	"invalid entry: cannot release stats context"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_NFP_FL_MASK_ID_LOCATION,8,3    ## @NFP_FL_MASK_ID_LOCATION
	.comm	_jiffies,4,2                    ## @jiffies
L_.str.3:                               ## @.str.3
	.asciz	"invalid entry: cannot offload duplicate flow entry"

L_.str.4:                               ## @.str.4
	.asciz	"invalid entry: cannot release mask id"

	.comm	_EEXIST,4,2                     ## @EEXIST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_compile_flow_metadata      ; -- Begin function nfp_compile_flow_metadata
	.p2align	2
_nfp_compile_flow_metadata:             ; @nfp_compile_flow_metadata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x22, x4
	mov	x25, x3
	mov	x24, x2
	mov	x26, x1
	mov	x19, x0
	ldr	x20, [x0]
	mov	x1, sp
	bl	_nfp_get_stats_entry
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_NL_SET_ERR_MSG_MOD
	b	LBB0_22
LBB0_2:
	ldr	x0, [sp]
	bl	_cpu_to_be32
	str	w0, [x24, #32]
	ldr	w0, [x26]
	bl	_cpu_to_be64
	str	x0, [x24, #24]
	str	x25, [x24, #56]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	ldr	x8, [sp]
	str	x8, [x0]
	str	x24, [x0, #16]
	add	x23, x0, #8
Lloh5:
	adrp	x27, _stats_ctx_table_params@GOTPAGE
Lloh6:
	ldr	x27, [x27, _stats_ctx_table_params@GOTPAGEOFF]
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x23
	bl	_rhashtable_insert_fast
	cbz	x0, LBB0_6
; %bb.4:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w22, [x8]
	b	LBB0_20
LBB0_5:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
	b	LBB0_21
LBB0_6:
	str	xzr, [sp, #8]
	ldr	w1, [x24, #40]
	add	x3, x24, #16
	ldr	w2, [x24]
	add	x4, sp, #8
	mov	x0, x19
	bl	_nfp_check_mask_add
	cbz	w0, LBB0_11
; %bb.7:
	ldr	w0, [x20, #16]
	bl	_cpu_to_be64
	str	x0, [x24, #8]
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	ldr	x8, [sp, #8]
	ldr	x9, [x24, #48]
Lloh13:
	adrp	x10, _NFP_FL_MASK_ID_LOCATION@GOTPAGE
Lloh14:
	ldr	x10, [x10, _NFP_FL_MASK_ID_LOCATION@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	str	x8, [x9, x10, lsl #3]
	ldr	x8, [x20, #8]
	ldr	x9, [sp]
	mov	w10, #24
	madd	x9, x9, x10, x8
	str	xzr, [x9, #16]
	ldr	x9, [sp]
	madd	x9, x9, x10, x8
	str	xzr, [x9, #8]
Lloh16:
	adrp	x9, _jiffies@GOTPAGE
Lloh17:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	ldr	x11, [sp]
	mul	x10, x11, x10
	str	w9, [x8, x10]
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x25
	bl	_nfp_flower_search_fl_table
	cbz	x0, LBB0_13
; %bb.8:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_NL_SET_ERR_MSG_MOD
	ldr	x1, [sp]
	mov	x0, x19
	bl	_nfp_release_stats_entry
	cbz	x0, LBB0_14
; %bb.9:
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x22
	bl	_NL_SET_ERR_MSG_MOD
Lloh23:
	adrp	x8, _EINVAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_11:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_NL_SET_ERR_MSG_MOD
	ldr	x1, [sp]
	mov	x0, x19
	bl	_nfp_release_stats_entry
	cbz	x0, LBB0_17
; %bb.12:
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_NL_SET_ERR_MSG_MOD
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_18
LBB0_13:
	mov	w21, #0
	b	LBB0_22
LBB0_14:
	ldr	w1, [x24, #40]
	ldr	w2, [x24]
	add	x4, sp, #8
	mov	x0, x19
	mov	x3, #0
	bl	_nfp_check_mask_remove
	cbz	w0, LBB0_23
; %bb.15:
Lloh31:
	adrp	x8, _EEXIST@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
LBB0_16:
	ldr	w22, [x8]
	ldr	w1, [x24, #40]
	ldr	w2, [x24]
	add	x4, sp, #8
	mov	x0, x19
	mov	x3, #0
	bl	_nfp_check_mask_remove
	b	LBB0_19
LBB0_17:
Lloh33:
	adrp	x8, _ENOENT@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_18:
	ldr	w22, [x8]
LBB0_19:
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x23
	bl	_rhashtable_remove_fast
	bl	_WARN_ON_ONCE
LBB0_20:
	mov	x0, x21
	bl	_kfree
LBB0_21:
	neg	w21, w22
	ldr	x1, [sp]
	mov	x0, x19
	bl	_nfp_release_stats_entry
LBB0_22:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_23:
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid entry: cannot allocate new stats context"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_stats_ctx_table_params,4,2     ; @stats_ctx_table_params
l_.str.1:                               ; @.str.1
	.asciz	"invalid entry: cannot allocate a new mask id"

l_.str.2:                               ; @.str.2
	.asciz	"invalid entry: cannot release stats context"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_NFP_FL_MASK_ID_LOCATION,8,3    ; @NFP_FL_MASK_ID_LOCATION
	.comm	_jiffies,4,2                    ; @jiffies
l_.str.3:                               ; @.str.3
	.asciz	"invalid entry: cannot offload duplicate flow entry"

l_.str.4:                               ; @.str.4
	.asciz	"invalid entry: cannot release mask id"

	.comm	_EEXIST,4,2                     ; @EEXIST
.subsections_via_symbols
