	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_bpf_check_ptr
_nfp_bpf_check_ptr:                     ## @nfp_bpf_check_ptr
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	%rdx, %rdi
	callq	_cur_regs
	movslq	%ebx, %rsi
	movq	(%rax,%rsi,8), %rdx
	movq	_PTR_TO_CTX@GOTPCREL(%rip), %rbx
	movq	_PTR_TO_STACK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	movq	_PTR_TO_MAP_VALUE@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	cmpq	(%rbx), %rdx
	je	LBB0_6
## %bb.1:
	cmpq	%rdi, %rdx
	je	LBB0_6
## %bb.2:
	cmpq	%rcx, %rdx
	je	LBB0_6
## %bb.3:
	movq	_PTR_TO_PACKET@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rdx
	je	LBB0_6
## %bb.4:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_pr_vlog
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_6:
	leaq	(%rax,%rsi,8), %rax
	cmpq	%rdi, %rdx
	jne	LBB0_9
## %bb.7:
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%rax, %r13
	movq	%rax, %rdx
	movq	%r12, %rcx
	callq	_nfp_bpf_check_stack_access
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.8:
	movq	%r13, %rax
	movq	(%r13), %rdx
	movq	(%r15), %rcx
LBB0_9:
	movq	%rax, %r15
	cmpq	%rcx, %rdx
	jne	LBB0_16
## %bb.10:
	movq	%r14, %rdi
	callq	_is_mbpf_load
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_NFP_MAP_USE_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_nfp_bpf_map_mark_used
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
LBB0_12:
	movq	%r14, %rdi
	callq	_is_mbpf_store
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_pr_vlog
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_14:
	movq	%r14, %rdi
	callq	_is_mbpf_xadd
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_NFP_MAP_USE_ATOMIC_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_nfp_bpf_map_mark_used
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
LBB0_16:
	movq	(%r14), %rdx
	movq	_NOT_INIT@GOTPCREL(%rip), %rax
	movq	(%r15), %rcx
	cmpq	(%rax), %rdx
	je	LBB0_19
## %bb.17:
	cmpq	%rcx, %rdx
	jne	LBB0_21
## %bb.18:
	movq	%rdx, %rcx
LBB0_19:
	movq	%rcx, (%r14)
	xorl	%ebx, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_pr_vlog
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_PTR_TO_CTX,8,3                 ## @PTR_TO_CTX
	.comm	_PTR_TO_STACK,8,3               ## @PTR_TO_STACK
	.comm	_PTR_TO_MAP_VALUE,8,3           ## @PTR_TO_MAP_VALUE
	.comm	_PTR_TO_PACKET,8,3              ## @PTR_TO_PACKET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported ptr type: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NFP_MAP_USE_READ,4,2           ## @NFP_MAP_USE_READ
L_.str.1:                               ## @.str.1
	.asciz	"map writes not supported\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_NFP_MAP_USE_ATOMIC_CNT,4,2     ## @NFP_MAP_USE_ATOMIC_CNT
	.comm	_NOT_INIT,8,3                   ## @NOT_INIT
L_.str.2:                               ## @.str.2
	.asciz	"ptr type changed for instruction %d -> %d\n"

	.no_dead_strip	_nfp_bpf_check_ptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_bpf_check_ptr
_nfp_bpf_check_ptr:                     ; @nfp_bpf_check_ptr
	.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	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	mov	x0, x2
	bl	_cur_regs
	add	x21, x0, w21, sxtw #3
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _PTR_TO_CTX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PTR_TO_CTX@GOTPAGEOFF]
Lloh2:
	adrp	x10, _PTR_TO_STACK@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PTR_TO_STACK@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x9]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x23, _PTR_TO_MAP_VALUE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _PTR_TO_MAP_VALUE@GOTPAGEOFF]
Lloh8:
	adrp	x12, _PTR_TO_PACKET@GOTPAGE
Lloh9:
	ldr	x12, [x12, _PTR_TO_PACKET@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh10:
	ldr	x12, [x12]
	cmp	x8, x11
	ccmp	x8, x10, #4, ne
	ccmp	x8, x9, #4, ne
	ccmp	x8, x12, #4, ne
	b.ne	LBB0_9
; %bb.1:
	cmp	x8, x10
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	bl	_nfp_bpf_check_stack_access
	cbnz	w0, LBB0_12
; %bb.3:
	ldr	x8, [x21]
	ldr	x9, [x23]
LBB0_4:
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.5:
	mov	x0, x20
	bl	_is_mbpf_load
	cbz	x0, LBB0_7
; %bb.6:
Lloh11:
	adrp	x8, _NFP_MAP_USE_READ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NFP_MAP_USE_READ@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_nfp_bpf_map_mark_used
	cbnz	w0, LBB0_12
LBB0_7:
	mov	x0, x20
	bl	_is_mbpf_store
	cbz	x0, LBB0_13
; %bb.8:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_pr_vlog
Lloh16:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_pr_vlog
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
LBB0_13:
	mov	x0, x20
	bl	_is_mbpf_xadd
	cbz	x0, LBB0_15
; %bb.14:
Lloh22:
	adrp	x8, _NFP_MAP_USE_ATOMIC_CNT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NFP_MAP_USE_ATOMIC_CNT@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_nfp_bpf_map_mark_used
	cbnz	w0, LBB0_12
LBB0_15:
	ldr	x9, [x20]
Lloh25:
	adrp	x8, _NOT_INIT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NOT_INIT@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x8]
	ldr	x8, [x21]
	cmp	x9, x10
	b.eq	LBB0_18
; %bb.16:
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.17:
	mov	x8, x9
LBB0_18:
	mov	w0, #0
	str	x8, [x20]
	b	LBB0_12
LBB0_19:
	stp	x9, x8, [sp]
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_PTR_TO_CTX,8,3                 ; @PTR_TO_CTX
	.comm	_PTR_TO_STACK,8,3               ; @PTR_TO_STACK
	.comm	_PTR_TO_MAP_VALUE,8,3           ; @PTR_TO_MAP_VALUE
	.comm	_PTR_TO_PACKET,8,3              ; @PTR_TO_PACKET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported ptr type: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NFP_MAP_USE_READ,4,2           ; @NFP_MAP_USE_READ
l_.str.1:                               ; @.str.1
	.asciz	"map writes not supported\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_NFP_MAP_USE_ATOMIC_CNT,4,2     ; @NFP_MAP_USE_ATOMIC_CNT
	.comm	_NOT_INIT,8,3                   ; @NOT_INIT
l_.str.2:                               ; @.str.2
	.asciz	"ptr type changed for instruction %d -> %d\n"

	.no_dead_strip	_nfp_bpf_check_ptr
.subsections_via_symbols
