	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perf_evsel__prepare_tracepoint_event
_perf_evsel__prepare_tracepoint_event:  ## @perf_evsel__prepare_tracepoint_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	%r12
	pushq	%rbx
	subq	$144, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorl	%r14d, %r14d
	cmpq	$0, (%rdi)
	jne	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movl	16(%rdi), %eax
	movq	%rsi, %rdi
	movl	%eax, %esi
	callq	_pevent_find_event
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %r15
	cmpq	$0, 8(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	(%r15), %rcx
	movq	8(%r15), %r8
	leaq	L_.str(%rip), %rdx
	leaq	-176(%rbp), %r12
	movq	%r12, %rdi
	movl	$128, %esi
	callq	_snprintf
	movq	%r12, %rdi
	callq	_strdup
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movq	%r15, (%rbx)
	xorl	%r14d, %r14d
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	movl	%r14d, %eax
	addq	$144, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s:%s"

	.no_dead_strip	_perf_evsel__prepare_tracepoint_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perf_evsel__prepare_tracepoint_event
_perf_evsel__prepare_tracepoint_event:  ; @perf_evsel__prepare_tracepoint_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_7
LBB0_2:
	mov	x19, x0
	ldr	w8, [x0, #16]
	mov	x0, x1
	mov	x1, x8
	bl	_pevent_find_event
	cbz	x0, LBB0_6
; %bb.3:
	mov	x20, x0
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_5
; %bb.4:
	ldp	x3, x4, [x20]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #128
	bl	_snprintf
	add	x0, sp, #8
	bl	_strdup
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
LBB0_5:
	mov	w0, #0
	str	x20, [x19]
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldur	x8, [x29, #-24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s:%s"

	.no_dead_strip	_perf_evsel__prepare_tracepoint_event
.subsections_via_symbols
