	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_bpf_check_xadd
_nfp_bpf_check_xadd:                    ## @nfp_bpf_check_xadd
	.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
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	%rdx, %rdi
	callq	_cur_regs
	movq	%rax, %r12
	movslq	8(%r13), %rbx
	movq	%r14, %rdi
	callq	_cur_regs
	movslq	12(%r13), %rcx
	movq	%rcx, %rdx
	shlq	$4, %rdx
	movq	(%rax,%rdx), %rdx
	movq	_PTR_TO_MAP_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_1
## %bb.3:
	shlq	$4, %rbx
	movq	(%r12,%rbx), %rdx
	movq	_SCALAR_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_4
## %bb.5:
	movl	8(%r12,%rbx), %eax
	movl	12(%r12,%rbx), %edx
	cmpl	$65536, %eax                    ## imm = 0x10000
	setge	%sil
	cmpl	$65536, %edx                    ## imm = 0x10000
	setge	%bl
	orb	%sil, %bl
	movzbl	%bl, %esi
	orl	%esi, (%r13)
	notl	%edx
	andl	%eax, %edx
	xorl	%eax, %eax
	cmpl	$65536, %edx                    ## imm = 0x10000
	setl	%al
	orl	%eax, 4(%r13)
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nfp_bpf_check_ptr              ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	callq	_pr_vlog
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTR_TO_MAP_VALUE,8,3           ## @PTR_TO_MAP_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"atomic add not to a map value pointer: %d\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_SCALAR_VALUE,8,3               ## @SCALAR_VALUE
L_.str.1:                               ## @.str.1
	.asciz	"atomic add not of a scalar: %d\n"

	.no_dead_strip	_nfp_bpf_check_xadd
.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_xadd
_nfp_bpf_check_xadd:                    ; @nfp_bpf_check_xadd
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	bl	_cur_regs
	mov	x22, x0
	ldrsw	x23, [x20, #8]
	mov	x0, x19
	bl	_cur_regs
	ldrsw	x3, [x20, #12]
	lsl	x8, x3, #4
	ldr	x2, [x0, x8]
Lloh0:
	adrp	x8, _PTR_TO_MAP_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTR_TO_MAP_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_3
; %bb.1:
	lsl	x8, x23, #4
	ldr	x2, [x22, x8]
Lloh3:
	adrp	x8, _SCALAR_VALUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCALAR_VALUE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x2, x8
	b.ne	LBB0_4
; %bb.2:
	add	x8, x22, x23, lsl #4
	ldp	w9, w8, [x8, #8]
	cmp	w9, #16, lsl #12                ; =65536
	mov	w10, #65536
	ccmp	w8, w10, #0, lt
	cset	w10, ge
	bic	w8, w9, w8
	cmp	w8, #16, lsl #12                ; =65536
	cset	w8, lt
	fmov	s0, w10
	mov.s	v0[1], w8
	ldr	d1, [x20]
	orr.8b	v0, v1, v0
	str	d0, [x20]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
                                        ; kill: def $w3 killed $w3 killed $x3
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_nfp_bpf_check_ptr
LBB0_3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x19
	bl	_pr_vlog
Lloh10:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	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	_PTR_TO_MAP_VALUE,8,3           ; @PTR_TO_MAP_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"atomic add not to a map value pointer: %d\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_SCALAR_VALUE,8,3               ; @SCALAR_VALUE
l_.str.1:                               ; @.str.1
	.asciz	"atomic add not of a scalar: %d\n"

	.no_dead_strip	_nfp_bpf_check_xadd
.subsections_via_symbols
