	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_bpf_event_output           ## -- Begin function nfp_bpf_event_output
	.p2align	4, 0x90
_nfp_bpf_event_output:                  ## @nfp_bpf_event_output
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$39, %edx
	jbe	LBB0_6
## %bb.1:
	movq	%rsi, %r13
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movl	32(%rsi), %edi
	callq	_be32_to_cpu
	movl	%eax, %r12d
	movl	28(%r13), %edi
	callq	_be32_to_cpu
	movl	%eax, %r15d
	movl	24(%r13), %edi
	callq	_be64_to_cpu
	movq	%rax, %r14
	movl	%r14d, -52(%rbp)
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movslq	%r12d, %rax
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movslq	%r15d, %rcx
	addq	%rcx, %rax
	addq	$40, %rax
	cmpq	%rbx, %rax
	ja	LBB0_6
## %bb.2:
	movq	16(%r13), %rax
	movq	_NFP_CCM_ABI_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	_nfp_bpf_maps_neutral_params@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-52(%rbp), %rsi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_rhashtable_lookup_fast
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	_U32_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r14
	jg	LBB0_9
## %bb.5:
	movl	(%rax), %r14d
	movl	8(%r13), %edi
	callq	_be32_to_cpu
	movl	%eax, %r12d
	movq	(%r13), %r15
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_round_up
	leaq	(%r15,%rax,4), %rdx
	movq	(%r13), %r8
	movq	_nfp_bpf_perf_event_copy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movl	%r14d, %edi
	movl	%r12d, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r9d
	callq	_bpf_event_output
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	jmp	LBB0_8
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movq	%r14, %rcx
	callq	_cmsg_warn
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NFP_CCM_ABI_VERSION,8,3        ## @NFP_CCM_ABI_VERSION
	.comm	_nfp_bpf_maps_neutral_params,4,2 ## @nfp_bpf_maps_neutral_params
	.comm	_U32_MAX,8,3                    ## @U32_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"perf event: map id %lld (0x%llx) not recognized, dropping event\n"

	.comm	_nfp_bpf_perf_event_copy,4,2    ## @nfp_bpf_perf_event_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nfp_bpf_event_output           ; -- Begin function nfp_bpf_event_output
	.p2align	2
_nfp_bpf_event_output:                  ; @nfp_bpf_event_output
	.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
	cmp	w2, #39
	b.ls	LBB0_5
; %bb.1:
	mov	x24, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w0, [x1, #32]
	bl	_be32_to_cpu
	mov	x20, x0
	ldr	w0, [x19, #28]
	bl	_be32_to_cpu
	mov	x21, x0
	ldr	w0, [x19, #24]
	bl	_be64_to_cpu
	mov	x23, x0
	str	w23, [sp, #12]
	sxtw	x8, w20
	add	x8, x8, w21, sxtw
	add	x8, x8, #40
	cmp	x8, w24, uxtw
	b.hi	LBB0_5
; %bb.2:
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _NFP_CCM_ABI_VERSION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NFP_CCM_ABI_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	bl	_rcu_read_lock
Lloh3:
	adrp	x8, _nfp_bpf_maps_neutral_params@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nfp_bpf_maps_neutral_params@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x1, sp, #12
	mov	x0, x22
	bl	_rhashtable_lookup_fast
Lloh6:
	adrp	x8, _U32_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _U32_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, #0
	ccmp	x23, x8, #0, ne
	b.le	LBB0_7
; %bb.4:
	bl	_rcu_read_unlock
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x23
	mov	x3, x23
	bl	_cmsg_warn
LBB0_5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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_7:
	ldr	w22, [x0]
	ldr	w0, [x19, #8]
	bl	_be32_to_cpu
	mov	x23, x0
	ldr	x24, [x19]
	mov	x0, x20
	mov	w1, #4
	bl	_round_up
	add	x2, x24, x0, lsl #2
	ldr	x4, [x19]
Lloh14:
	adrp	x8, _nfp_bpf_perf_event_copy@GOTPAGE
Lloh15:
	ldr	x8, [x8, _nfp_bpf_perf_event_copy@GOTPAGEOFF]
Lloh16:
	ldr	w6, [x8]
	mov	x0, x22
	mov	x1, x23
	mov	x3, x21
	mov	x5, x20
	bl	_bpf_event_output
	bl	_rcu_read_unlock
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NFP_CCM_ABI_VERSION,8,3        ; @NFP_CCM_ABI_VERSION
	.comm	_nfp_bpf_maps_neutral_params,4,2 ; @nfp_bpf_maps_neutral_params
	.comm	_U32_MAX,8,3                    ; @U32_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"perf event: map id %lld (0x%llx) not recognized, dropping event\n"

	.comm	_nfp_bpf_perf_event_copy,4,2    ; @nfp_bpf_perf_event_copy
.subsections_via_symbols
