	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_bpf_map_mark_used
_nfp_bpf_map_mark_used:                 ## @nfp_bpf_map_mark_used
	.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	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rdx), %edi
	callq	_tnum_is_const
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	(%r12), %r14d
	addl	8(%rbx), %r14d
	addl	(%rbx), %r14d
	movq	%r12, %rdi
	callq	_BPF_LDST_BYTES
	movl	%eax, %r13d
	movl	4(%rbx), %edi
	callq	_map_to_offmap
	leal	(%r14,%r13), %ecx
	cmpl	(%rax), %ecx
	jbe	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rbx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rbx
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_pr_vlog
	xorl	%eax, %eax
	subl	(%rbx), %eax
	jmp	LBB0_10
LBB0_5:
	testl	%r13d, %r13d
	je	LBB0_9
## %bb.6:
	movq	8(%rax), %r12
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%r14), %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%ebx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_nfp_bpf_map_mark_used_one
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	andl	$3, %ebx
	subl	%ebx, %r15d
	addl	$4, %r15d
	cmpl	%r13d, %r15d
	jb	LBB0_7
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"map value offset is variable\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"map value access out-of-bounds\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_nfp_bpf_map_mark_used
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_bpf_map_mark_used
_nfp_bpf_map_mark_used:                 ; @nfp_bpf_map_mark_used
	.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	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x2, #8]
	bl	_tnum_is_const
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x22, #8]
	ldr	w9, [x21]
	ldr	w10, [x22]
	add	w8, w9, w8
	add	w24, w8, w10
	mov	x0, x21
	bl	_BPF_LDST_BYTES
	mov	x21, x0
	ldr	w0, [x22, #4]
	bl	_map_to_offmap
	ldr	w8, [x0]
	add	w9, w24, w21
	cmp	w9, w8
	b.ls	LBB0_5
; %bb.2:
Lloh0:
	adrp	x20, _EINVAL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EINVAL@GOTPAGEOFF]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh4:
	adrp	x20, _EOPNOTSUPP@GOTPAGE
Lloh5:
	ldr	x20, [x20, _EOPNOTSUPP@GOTPAGEOFF]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_pr_vlog
	ldr	w8, [x20]
	neg	w0, w8
	b	LBB0_10
LBB0_5:
	cbz	w21, LBB0_9
; %bb.6:
	mov	w25, #0
	ldr	x22, [x0, #8]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	w23, w25, w24
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, x20
	bl	_nfp_bpf_map_mark_used_one
	cbnz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	and	w8, w23, #0x3
	sub	w8, w25, w8
	add	w25, w8, #4
	cmp	w25, w21
	b.lo	LBB0_7
LBB0_9:
	mov	w0, #0
LBB0_10:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"map value offset is variable\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"map value access out-of-bounds\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_nfp_bpf_map_mark_used
.subsections_via_symbols
