	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x86_pmu_event_init
_x86_pmu_event_init:                    ## @x86_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	24(%rdi), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	jae	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	callq	___x86_pmu_event_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	8(%r14), %r15
	movq	16(%r14), %rax
	movq	_pmu@GOTPCREL(%rip), %rcx
	movq	%rcx, 8(%r14)
	movq	%r14, %rdi
	cmpq	%r14, %rax
	je	LBB0_5
## %bb.4:
	callq	_validate_group
	jmp	LBB0_6
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_10
LBB0_5:
	callq	_validate_event
LBB0_6:
	movl	%eax, %ebx
	movq	%r15, 8(%r14)
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	*%rcx
	jmp	LBB0_10
LBB0_7:
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_pmu,4,2                        ## @pmu
	.no_dead_strip	_x86_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 x86_pmu_event_init
_x86_pmu_event_init:                    ; @x86_pmu_event_init
	.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
	ldr	w8, [x0, #24]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_4
; %bb.1:
	mov	x19, x0
	bl	___x86_pmu_event_init
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _pmu@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pmu@GOTPAGEOFF]
	ldp	x21, x9, [x19, #8]
	str	x8, [x19, #8]
	mov	x0, x19
	cmp	x9, x19
	b.eq	LBB0_5
; %bb.3:
	bl	_validate_group
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _ENOENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_5:
	bl	_validate_event
LBB0_6:
	mov	x20, x0
	str	x21, [x19, #8]
	cbz	w0, LBB0_9
LBB0_7:
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	blr	x8
LBB0_9:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_pmu,4,2                        ; @pmu
	.no_dead_strip	_x86_pmu_event_init
.subsections_via_symbols
