	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_perf_enable_event
_xgene_perf_enable_event:               ## @xgene_perf_enable_event
	.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	%rdi, %r14
	movl	(%rdi), %edi
	callq	_to_pmu_dev
	movq	%rax, %rbx
	movq	8(%rax), %r12
	movq	(%r12), %rax
	movq	32(%rax), %r13
	movq	%r14, %rdi
	callq	_GET_CNTR
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_GET_EVENTID
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	*%r13
	movq	(%r12), %rax
	movq	24(%rax), %r15
	movq	%r14, %rdi
	callq	_GET_AGENTID
	notl	%eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	*%r15
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_PMU_TYPE_IOB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	(%r12), %rax
	movq	16(%rax), %r15
	movq	%r14, %rdi
	callq	_GET_AGENT1ID
	notl	%eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	*%r15
LBB0_2:
	movq	(%r12), %rax
	movq	8(%rax), %r15
	movq	%r14, %rdi
	callq	_GET_CNTR
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	*%r15
	movq	(%r12), %rax
	movq	(%rax), %r15
	movq	%r14, %rdi
	callq	_GET_CNTR
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PMU_TYPE_IOB,8,3               ## @PMU_TYPE_IOB
	.no_dead_strip	_xgene_perf_enable_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_perf_enable_event
_xgene_perf_enable_event:               ; @xgene_perf_enable_event
	.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	x19, x0
	ldr	w0, [x0]
	bl	_to_pmu_dev
	mov	x20, x0
	ldr	x22, [x0, #8]
	ldr	x8, [x22]
	ldr	x23, [x8, #32]
	mov	x0, x19
	bl	_GET_CNTR
	mov	x21, x0
	mov	x0, x19
	bl	_GET_EVENTID
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	blr	x23
	ldr	x8, [x22]
	ldr	x21, [x8, #24]
	mov	x0, x19
	bl	_GET_AGENTID
	mvn	w1, w0
	mov	x0, x20
	blr	x21
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _PMU_TYPE_IOB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PMU_TYPE_IOB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x22]
	ldr	x21, [x8, #16]
	mov	x0, x19
	bl	_GET_AGENT1ID
	mvn	w1, w0
	mov	x0, x20
	blr	x21
LBB0_2:
	ldr	x8, [x22]
	ldr	x21, [x8, #8]
	mov	x0, x19
	bl	_GET_CNTR
	mov	x1, x0
	mov	x0, x20
	blr	x21
	ldr	x8, [x22]
	ldr	x0, [x8]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	x0, x19
	bl	_GET_CNTR
	mov	x1, x0
	mov	x0, x20
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	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
	br	x2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PMU_TYPE_IOB,8,3               ; @PMU_TYPE_IOB
	.no_dead_strip	_xgene_perf_enable_event
.subsections_via_symbols
