	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __add_probe_trace_events
___add_probe_trace_events:              ## @__add_probe_trace_events
	.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
	subq	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -136(%rbp)                ## 4-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -128(%rbp)                ## 8-byte Spill
	cmpq	$0, 24(%rdi)
	je	LBB0_2
## %bb.1:
	movl	$1, %edi
	callq	_open_uprobe_events
	jmp	LBB0_3
LBB0_2:
	movl	$1, %edi
	callq	_open_kprobe_events
LBB0_3:
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_21
## %bb.4:
	xorl	%r12d, %r12d
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_get_probe_trace_event_names
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	cmpl	$2, %r13d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rsi
	cmovgeq	%rax, %rsi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	testl	%r13d, %r13d
	jle	LBB0_7
## %bb.8:
	movl	%r13d, %ecx
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %r14
	movl	-136(%rbp), %r8d                ## 4-byte Reload
	movl	%r15d, -116(%rbp)               ## 4-byte Spill
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	movq	%rbx, %r12
	testq	%r14, %r14
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	16(%rax), %r14
	testq	%r14, %r14
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%r12), %r14
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %r15
	movq	_PERFPROBE_GROUP@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leaq	-112(%rbp), %r13
	movq	%r13, %rdi
	movl	$64, %esi
	movq	%r14, %rdx
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	callq	_get_new_event_name
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	testq	%r15, %r15
	cmovneq	%r15, %rbx
	movq	%r13, %rdi
	callq	_strdup
	movq	%rax, %r14
	movq	%r12, %r13
	movq	%rax, (%r12)
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, 8(%r12)
	testq	%r14, %r14
	je	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=1
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-116(%rbp), %r15d               ## 4-byte Reload
	movl	%r15d, %edi
	movq	%r13, %rsi
	callq	_write_probe_trace_event
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	leaq	-112(%rbp), %rsi
	callq	_strlist__add
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movq	(%rbx), %r14
	movups	(%rbx), %xmm0
	movaps	%xmm0, -160(%rbp)               ## 16-byte Spill
	movups	(%r13), %xmm0
	movups	%xmm0, (%rbx)
	movq	%rbx, %rdi
	callq	_show_perf_probe_event
	movaps	-160(%rbp), %xmm0               ## 16-byte Reload
	movups	%xmm0, (%rbx)
	leaq	24(%r13), %rbx
	movl	$1, %r8d
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	decq	%rcx
	jne	LBB0_9
	jmp	LBB0_19
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_21
LBB0_7:
	xorl	%r13d, %r13d
LBB0_19:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	(%r13), %rdx
	movq	8(%r13), %rsi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_20
LBB0_13:
	movl	-116(%rbp), %r15d               ## 4-byte Reload
	movq	%rax, %r12
	jmp	LBB0_20
LBB0_18:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %r12d
	negl	%r12d
	testl	%eax, %eax
	movl	-116(%rbp), %r15d               ## 4-byte Reload
	jle	LBB0_19
LBB0_20:
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	callq	_strlist__delete
	movl	%r15d, %edi
	callq	_close
	movl	%r12d, %r15d
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r15d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get current event list.\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"Added new event%s\n"

L_.str.2:                               ## @.str.2
	.asciz	"s:"

L_.str.3:                               ## @.str.3
	.asciz	":"

	.comm	_PERFPROBE_GROUP,8,3            ## @PERFPROBE_GROUP
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.5:                               ## @.str.5
	.asciz	"\tperf record -e %s:%s -aR sleep 1\n\n"

L_str:                                  ## @str
	.asciz	"\nYou can now use it in all perf tools, such as:\n"

	.no_dead_strip	___add_probe_trace_events
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __add_probe_trace_events
___add_probe_trace_events:              ; @__add_probe_trace_events
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x3
	mov	x22, x2
	mov	x25, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #1
	bl	_open_uprobe_events
	mov	x19, x0
	tbz	w0, #31, LBB0_3
	b	LBB0_20
LBB0_2:
	mov	w0, #1
	bl	_open_kprobe_events
	mov	x19, x0
	tbnz	w0, #31, LBB0_20
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	bl	_get_probe_trace_event_names
	cbz	x0, LBB0_14
; %bb.4:
	mov	x20, x0
Lloh3:
	adrp	x8, l_.str.3@PAGE
Lloh4:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh5:
	adrp	x9, l_.str.2@PAGE
Lloh6:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w22, #1
	csel	x8, x9, x8, gt
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	cmp	w22, #1
	b.lt	LBB0_15
; %bb.5:
	mov	w27, w22
	ldr	x26, [x21]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x25
	cbnz	x26, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x26, [x21, #16]
	cbnz	x26, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x26, [x22, #16]
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x25, [x21, #8]
Lloh9:
	adrp	x8, _PERFPROBE_GROUP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PERFPROBE_GROUP@GOTPAGEOFF]
Lloh11:
	ldr	x28, [x8]
	add	x0, sp, #24
	mov	w1, #64
	mov	x2, x26
	mov	x3, x20
	mov	x4, x23
	bl	_get_new_event_name
	tbnz	w0, #31, LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	cmp	x25, #0
	csel	x23, x28, x25, eq
	add	x0, sp, #24
	bl	_strdup
	mov	x24, x0
	str	x0, [x22]
	mov	x0, x23
	bl	_strdup
	str	x0, [x22, #8]
	cbz	x24, LBB0_18
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	cbz	x0, LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_write_probe_trace_event
	mov	x24, x0
	tbnz	w0, #31, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #24
	mov	x0, x20
	bl	_strlist__add
	ldp	x26, x23, [x21]
	ldr	x8, [x22]
	str	x8, [x21]
	ldr	x8, [x22, #8]
	str	x8, [x21, #8]
	mov	x0, x21
	bl	_show_perf_probe_event
	stp	x26, x23, [x21]
	add	x25, x22, #24
	mov	w23, #1
	subs	x27, x27, #1
	b.ne	LBB0_6
	b	LBB0_16
LBB0_14:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_20
LBB0_15:
	mov	x22, #0
	mov	w24, #0
LBB0_16:
Lloh17:
	adrp	x0, l_str@PAGE
Lloh18:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	ldp	x9, x8, [x22]
	stp	x8, x9, [sp]
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	b	LBB0_19
LBB0_17:
	mov	x24, x0
	b	LBB0_19
LBB0_18:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w24, w8
	cmp	w8, #0
	b.le	LBB0_16
LBB0_19:
	mov	x0, x20
	bl	_strlist__delete
	mov	x0, x19
	bl	_close
	mov	x19, x24
LBB0_20:
	ldr	x8, [sp, #88]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	mov	x0, x19
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get current event list.\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"Added new event%s\n"

l_.str.2:                               ; @.str.2
	.asciz	"s:"

l_.str.3:                               ; @.str.3
	.asciz	":"

	.comm	_PERFPROBE_GROUP,8,3            ; @PERFPROBE_GROUP
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.5:                               ; @.str.5
	.asciz	"\tperf record -e %s:%s -aR sleep 1\n\n"

l_str:                                  ; @str
	.asciz	"\nYou can now use it in all perf tools, such as:\n"

	.no_dead_strip	___add_probe_trace_events
.subsections_via_symbols
