	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dsu_pmu_event_init
_dsu_pmu_event_init:                    ## @dsu_pmu_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %rdi
	callq	_to_dsu_pmu
	movq	%rax, %r14
	movq	8(%rbx), %rax
	movq	32(%rbx), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_is_sampling_event
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	4(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_3:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_4:
	cmpl	$0, 28(%rbx)
	js	LBB0_6
## %bb.5:
	movq	_PERF_ATTACH_TASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_11
LBB0_6:
	movl	4(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	callq	_dev_dbg
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movq	%rbx, %rdi
	callq	_has_branch_stack
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	4(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_7
LBB0_13:
	movl	28(%rbx), %edi
	movq	%r14, %rsi
	addq	$8, %rsi
	callq	_cpumask_test_cpu
	testl	%eax, %eax
	je	LBB0_18
## %bb.14:
	movq	%r14, %rdi
	callq	_cpumask_first
	movl	%eax, 28(%rbx)
	movq	_nr_cpu_ids@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_8
## %bb.15:
	movq	%rbx, %rdi
	callq	_dsu_pmu_validate_group
	testl	%eax, %eax
	je	LBB0_8
## %bb.16:
	movl	16(%rbx), %eax
	movl	%eax, 24(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_18:
	movl	4(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't support sampling events\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_PERF_ATTACH_TASK,4,2           ## @PERF_ATTACH_TASK
L_.str.1:                               ## @.str.1
	.asciz	"Can't support per-task counters\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"Can't support filtering\n"

L_.str.3:                               ## @.str.3
	.asciz	"Requested cpu is not associated with the DSU\n"

	.comm	_nr_cpu_ids,4,2                 ## @nr_cpu_ids
	.no_dead_strip	_dsu_pmu_event_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dsu_pmu_event_init
_dsu_pmu_event_init:                    ; @dsu_pmu_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
	mov	x19, x0
	ldr	x0, [x0, #32]
	bl	_to_dsu_pmu
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #32]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_is_sampling_event
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x20, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh2:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
Lloh4:
	adrp	x8, _ENOENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	ldr	w8, [x19, #28]
	tbnz	w8, #31, LBB0_6
; %bb.5:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _PERF_ATTACH_TASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PERF_ATTACH_TASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
LBB0_6:
	ldr	w0, [x20, #4]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	bl	_dev_dbg
LBB0_8:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x0, x19
	bl	_has_branch_stack
	cbz	x0, LBB0_13
; %bb.12:
	ldr	w0, [x20, #4]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_13:
	ldr	w0, [x19, #28]
	add	x1, x20, #8
	bl	_cpumask_test_cpu
	cbz	w0, LBB0_17
; %bb.14:
	mov	x0, x20
	bl	_cpumask_first
	str	w0, [x19, #28]
Lloh15:
	adrp	x8, _nr_cpu_ids@GOTPAGE
Lloh16:
	ldr	x8, [x8, _nr_cpu_ids@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_8
; %bb.15:
	mov	x0, x19
	bl	_dsu_pmu_validate_group
	cbz	w0, LBB0_8
; %bb.16:
	mov	w0, #0
	ldr	w8, [x19, #16]
	str	w8, [x19, #24]
	b	LBB0_10
LBB0_17:
	ldr	w0, [x20, #4]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't support sampling events\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_PERF_ATTACH_TASK,4,2           ; @PERF_ATTACH_TASK
l_.str.1:                               ; @.str.1
	.asciz	"Can't support per-task counters\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"Can't support filtering\n"

l_.str.3:                               ; @.str.3
	.asciz	"Requested cpu is not associated with the DSU\n"

	.comm	_nr_cpu_ids,4,2                 ; @nr_cpu_ids
	.no_dead_strip	_dsu_pmu_event_init
.subsections_via_symbols
