	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tx2_uncore_event_init
_tx2_uncore_event_init:                 ## @tx2_uncore_event_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	16(%rdi), %rax
	movq	32(%rdi), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	callq	_is_sampling_event
	testq	%rax, %rax
	jne	LBB0_8
## %bb.3:
	movq	_PERF_ATTACH_TASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	cmpq	$0, 8(%rbx)
	js	LBB0_8
## %bb.5:
	movq	32(%rbx), %rdi
	callq	_pmu_to_tx2_pmu
	movq	(%rax), %rcx
	movq	_nr_cpu_ids@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_8
## %bb.6:
	movq	%rcx, 8(%rbx)
	movq	24(%rbx), %rcx
	cmpq	8(%rax), %rcx
	jge	LBB0_8
## %bb.7:
	movq	%rcx, 40(%rbx)
	movq	%rbx, %rdi
	callq	_tx2_uncore_validate_event_group
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_10
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_PERF_ATTACH_TASK,4,2           ## @PERF_ATTACH_TASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_nr_cpu_ids,8,3                 ## @nr_cpu_ids
	.no_dead_strip	_tx2_uncore_event_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tx2_uncore_event_init
_tx2_uncore_event_init:                 ; @tx2_uncore_event_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #16]
	ldr	x9, [x0, #32]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_is_sampling_event
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _PERF_ATTACH_TASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PERF_ATTACH_TASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_3:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _ENOENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x19, #8]
	tbnz	x8, #63, LBB0_3
; %bb.8:
	ldr	x0, [x19, #32]
	bl	_pmu_to_tx2_pmu
	ldr	x8, [x0]
Lloh7:
	adrp	x9, _nr_cpu_ids@GOTPAGE
Lloh8:
	ldr	x9, [x9, _nr_cpu_ids@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.9:
	str	x8, [x19, #8]
	ldr	x8, [x19, #24]
	ldr	x9, [x0, #8]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.10:
	str	x8, [x19, #40]
	mov	x0, x19
	bl	_tx2_uncore_validate_event_group
	cbz	w0, LBB0_3
; %bb.11:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_PERF_ATTACH_TASK,4,2           ; @PERF_ATTACH_TASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_nr_cpu_ids,8,3                 ; @nr_cpu_ids
	.no_dead_strip	_tx2_uncore_event_init
.subsections_via_symbols
