	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_bpf_check_stack_access
_nfp_bpf_check_stack_access:            ## @nfp_bpf_check_stack_access
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	(%rdx), %rax
	movq	(%rcx), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_FLAG_INSN_PTR_CALLER_STACK_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r12)
LBB0_2:
	movl	12(%rbx), %edi
	callq	_tnum_is_const
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	8(%r12), %rax
	movq	_NOT_INIT@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.5:
	movl	20(%r12), %edx
	addl	16(%r12), %edx
	movl	12(%rbx), %ecx
	addl	8(%rbx), %ecx
	xorl	%eax, %eax
	cmpl	%ecx, %edx
	setne	%al
	orl	%eax, (%r12)
	je	LBB0_9
## %bb.6:
	leal	3(%rdx), %eax
	testl	%edx, %edx
	cmovnsl	%edx, %eax
	andl	$-4, %eax
	movl	%edx, %esi
	subl	%eax, %esi
	leal	3(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	andl	$-4, %eax
	movl	%ecx, %edi
	subl	%eax, %edi
	cmpl	%edi, %esi
	je	LBB0_9
## %bb.7:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_pr_vlog
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_pr_vlog
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_9:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLAG_INSN_PTR_CALLER_STACK_FRAME,4,2 ## @FLAG_INSN_PTR_CALLER_STACK_FRAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"variable ptr stack access\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NOT_INIT,8,3                   ## @NOT_INIT
L_.str.1:                               ## @.str.1
	.asciz	"stack access changed location was:%d is:%d\n"

	.no_dead_strip	_nfp_bpf_check_stack_access
.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_stack_access
_nfp_bpf_check_stack_access:            ; @nfp_bpf_check_stack_access
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	ldr	x8, [x2]
	ldr	x9, [x3]
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _FLAG_INSN_PTR_CALLER_STACK_FRAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLAG_INSN_PTR_CALLER_STACK_FRAME@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20, #24]
	orr	w8, w9, w8
	str	w8, [x20, #24]
LBB0_2:
	ldr	w0, [x21, #12]
	bl	_tnum_is_const
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _NOT_INIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NOT_INIT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	mov	w0, #0
	b	LBB0_10
LBB0_5:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_6:
	ldp	w8, w9, [x20, #16]
	add	w8, w9, w8
	ldp	w9, w10, [x21, #8]
	add	w9, w10, w9
	cmp	w8, w9
	cset	w10, ne
	ldr	w11, [x20]
	orr	w10, w11, w10
	str	w10, [x20]
	mov	w0, #0
	cbz	w10, LBB0_10
; %bb.7:
	negs	w10, w8
	and	w10, w10, #0x3
	and	w11, w8, #0x3
	csneg	w10, w11, w10, mi
	negs	w11, w9
	and	w11, w11, #0x3
	and	w12, w9, #0x3
	csneg	w11, w12, w11, mi
	cmp	w10, w11
	b.eq	LBB0_10
; %bb.8:
	stp	x8, x9, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_pr_vlog
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FLAG_INSN_PTR_CALLER_STACK_FRAME,4,2 ; @FLAG_INSN_PTR_CALLER_STACK_FRAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"variable ptr stack access\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NOT_INIT,8,3                   ; @NOT_INIT
l_.str.1:                               ; @.str.1
	.asciz	"stack access changed location was:%d is:%d\n"

	.no_dead_strip	_nfp_bpf_check_stack_access
.subsections_via_symbols
