	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_perf_event_output
_nfp_perf_event_output:                 ## @nfp_perf_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	8(%rsi), %r14d
	callq	_imm_a
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_ur_load_imm_any
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_nfp_prog_current_offset
	leaq	3(%rax), %r14
	movq	_BR_UNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BR_OFF_RELO@GOTPCREL(%rip), %rax
	movq	(%r12), %rdx
	addq	(%rax), %rdx
	movq	_RELO_BR_HELPER@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movl	$2, %ecx
	callq	_emit_br_relo
	movl	$1, %edi
	callq	_reg_a
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_wrp_mov
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	callq	_reg_b
	movq	_RELO_IMMED_REL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_wrp_immed_relo
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_nfp_prog_confirm_current_offset
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	testl	%eax, %eax
	cmovnel	%r15d, %ecx
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BR_UNC,4,2                     ## @BR_UNC
	.comm	_BR_OFF_RELO,8,3                ## @BR_OFF_RELO
	.comm	_RELO_BR_HELPER,4,2             ## @RELO_BR_HELPER
	.comm	_RELO_IMMED_REL,4,2             ## @RELO_IMMED_REL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_nfp_perf_event_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_perf_event_output
_nfp_perf_event_output:                 ; @nfp_perf_event_output
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	ldr	w21, [x1, #8]
	bl	_imm_a
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_ur_load_imm_any
	mov	x21, x0
	mov	x0, x19
	bl	_nfp_prog_current_offset
	add	x22, x0, #3
Lloh0:
	adrp	x8, _BR_UNC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BR_UNC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _BR_OFF_RELO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BR_OFF_RELO@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x20]
	add	x2, x9, x8
Lloh6:
	adrp	x8, _RELO_BR_HELPER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RELO_BR_HELPER@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w3, #2
	bl	_emit_br_relo
	mov	w0, #1
	bl	_reg_a
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_wrp_mov
	mov	w0, #0
	bl	_reg_b
	mov	x1, x0
Lloh9:
	adrp	x8, _RELO_IMMED_REL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RELO_IMMED_REL@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_wrp_immed_relo
	mov	x0, x19
	mov	x1, x22
	bl	_nfp_prog_confirm_current_offset
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, wzr, w8, ne
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BR_UNC,4,2                     ; @BR_UNC
	.comm	_BR_OFF_RELO,8,3                ; @BR_OFF_RELO
	.comm	_RELO_BR_HELPER,4,2             ; @RELO_BR_HELPER
	.comm	_RELO_IMMED_REL,4,2             ; @RELO_IMMED_REL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_nfp_perf_event_output
.subsections_via_symbols
