	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_bpf_ctrl_op_cache_get
_nfp_bpf_ctrl_op_cache_get:             ## @nfp_bpf_ctrl_op_cache_get
	.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	%r9, %rbx
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	40(%rdi), %r13
	movq	48(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %edi
	callq	_nfp_bpf_ctrl_op_cache_fill
	movl	$1, %r14d
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r13), %r14d
LBB0_2:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	leaq	8(%r15), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movl	32(%r15), %eax
	movl	%eax, (%rbx)
	cmpq	$0, 24(%r15)
	movl	$1, %r13d
	cmovel	%r14d, %r13d
	movl	%r12d, %edi
	callq	_nfp_bpf_ctrl_op_cache_invalidate
	testq	%rax, %rax
	je	LBB0_3
## %bb.16:
	incq	24(%r15)
LBB0_17:
	movq	16(%r15), %rdi
	callq	_dev_consume_skb_any
	movq	$0, 16(%r15)
LBB0_18:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_19:
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	%r13d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%r12d, %edi
	callq	_nfp_bpf_ctrl_op_cache_capable
	testl	%eax, %eax
	je	LBB0_18
## %bb.4:
	cmpq	$0, 16(%r15)
	je	LBB0_18
## %bb.5:
	movq	(%r15), %rbx
	xorl	%eax, %eax
	callq	_ktime_get_ns
	cmpq	%rax, %rbx
	jl	LBB0_17
## %bb.6:
	movq	16(%r15), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edi
	callq	_be32_to_cpu
	testl	%eax, %eax
	je	LBB0_18
## %bb.7:
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	%eax, %r14d
	negl	%r14d
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%rbx), %r15d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_nfp_bpf_ctrl_reply_key
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	leal	(%r14,%rbx), %eax
	incl	%eax
	movl	%ebx, %ecx
	incl	%ecx
	movl	%ecx, %ebx
	cmpl	$1, %eax
	jne	LBB0_8
	jmp	LBB0_18
LBB0_9:
	movq	_NFP_CCM_TYPE_BPF_MAP_LOOKUP@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_11
## %bb.10:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_nfp_bpf_ctrl_reply_val
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx), %edx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_memcpy
LBB0_11:
	movq	_NFP_CCM_TYPE_BPF_MAP_GETNEXT@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_12
## %bb.13:
	cmpl	-76(%rbp), %ebx                 ## 4-byte Folded Reload
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_19
## %bb.14:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_nfp_bpf_ctrl_reply_key
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_memcpy
	xorl	%r13d, %r13d
	jmp	LBB0_19
LBB0_12:
	xorl	%r13d, %r13d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_CCM_TYPE_BPF_MAP_LOOKUP,4,2 ## @NFP_CCM_TYPE_BPF_MAP_LOOKUP
	.comm	_NFP_CCM_TYPE_BPF_MAP_GETNEXT,4,2 ## @NFP_CCM_TYPE_BPF_MAP_GETNEXT
	.no_dead_strip	_nfp_bpf_ctrl_op_cache_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_bpf_ctrl_op_cache_get
_nfp_bpf_ctrl_op_cache_get:             ; @nfp_bpf_ctrl_op_cache_get
	.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
	mov	x21, x5
	mov	x28, x4
	mov	x27, x3
	mov	x25, x2
	mov	x23, x1
	mov	x26, x0
	ldp	x22, x20, [x0, #40]
	mov	x0, x1
	bl	_nfp_bpf_ctrl_op_cache_fill
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w24, [x22]
	b	LBB0_3
LBB0_2:
	mov	w24, #1
LBB0_3:
	add	x19, x26, #8
	mov	x0, x19
	bl	_spin_lock
	ldr	w8, [x26, #32]
	str	w8, [x21]
	ldr	x8, [x26, #24]
	cmp	x8, #0
	csinc	w21, w24, wzr, eq
	mov	x0, x23
	bl	_nfp_bpf_ctrl_op_cache_invalidate
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x8, [x26, #24]
	add	x8, x8, #1
	str	x8, [x26, #24]
LBB0_5:
	ldr	x0, [x26, #16]
	bl	_dev_consume_skb_any
	str	xzr, [x26, #16]
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock
	mov	x0, x21
	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_7:
	mov	x0, x23
	bl	_nfp_bpf_ctrl_op_cache_capable
	cbz	w0, LBB0_6
; %bb.8:
	ldr	x8, [x26, #16]
	cbz	x8, LBB0_6
; %bb.9:
	ldr	x24, [x26]
	bl	_ktime_get_ns
	cmp	x24, x0
	b.lt	LBB0_5
; %bb.10:
	ldr	x8, [x26, #16]
	ldr	x26, [x8]
	ldr	w0, [x26]
	bl	_be32_to_cpu
	cbz	w0, LBB0_6
; %bb.11:
	str	x28, [sp, #24]                  ; 8-byte Folded Spill
	str	x27, [sp, #8]                   ; 8-byte Folded Spill
	str	w0, [sp, #20]                   ; 4-byte Folded Spill
	neg	w24, w0
	mov	w27, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	sub	w28, w27, #1
	mov	x0, x22
	mov	x1, x26
	mov	x2, x28
	bl	_nfp_bpf_ctrl_reply_key
	ldr	w2, [x20]
	mov	x1, x25
	bl	_memcmp
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w27, w27, #1
	add	w8, w24, w27
	cmp	w8, #1
	b.ne	LBB0_12
	b	LBB0_6
LBB0_14:
Lloh0:
	adrp	x8, _NFP_CCM_TYPE_BPF_MAP_LOOKUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_CCM_TYPE_BPF_MAP_LOOKUP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x22
	mov	x1, x26
	mov	x2, x28
	bl	_nfp_bpf_ctrl_reply_val
	mov	x1, x0
	ldr	w2, [x20, #4]
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	bl	_memcpy
LBB0_16:
Lloh3:
	adrp	x8, _NFP_CCM_TYPE_BPF_MAP_GETNEXT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NFP_CCM_TYPE_BPF_MAP_GETNEXT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_19
; %bb.17:
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cmp	w27, w8
	b.eq	LBB0_6
; %bb.18:
	mov	x0, x22
	mov	x1, x26
	mov	x2, x27
	bl	_nfp_bpf_ctrl_reply_key
	mov	x1, x0
	ldr	w2, [x20]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_memcpy
LBB0_19:
	mov	w21, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_CCM_TYPE_BPF_MAP_LOOKUP,4,2 ; @NFP_CCM_TYPE_BPF_MAP_LOOKUP
	.comm	_NFP_CCM_TYPE_BPF_MAP_GETNEXT,4,2 ; @NFP_CCM_TYPE_BPF_MAP_GETNEXT
	.no_dead_strip	_nfp_bpf_ctrl_op_cache_get
.subsections_via_symbols
