	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function convert_to_perf_probe_event
_convert_to_perf_probe_event:           ## @convert_to_perf_probe_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movq	(%rdi), %rdi
	callq	_strdup
	movq	%rax, %r15
	movq	%rax, 32(%r14)
	movq	%rbx, %r13
	movq	8(%rbx), %rdi
	callq	_strdup
	movq	%rax, 24(%r14)
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	leaq	32(%r13), %rdi
	leaq	16(%r14), %rsi
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.4:
	callq	_kprobe_convert_to_perf_probe
	jmp	LBB0_6
LBB0_5:
	callq	_convert_to_perf_probe_point
LBB0_6:
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_17
## %bb.7:
	movq	%r13, %r15
	movl	16(%r13), %edi
	movl	%edi, (%r14)
	shll	$2, %edi
	callq	_zalloc
	movq	%rax, 8(%r14)
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_2
## %bb.8:
	movl	16(%r15), %r13d
	testl	%r13d, %r13d
	jle	LBB0_17
## %bb.9:
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	movl	$1, %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %rdi
	movq	(%rdi,%r14), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %rdi
	callq	_strdup
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movq	%rax, (%rcx,%r14)
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	addq	%r14, %rdi
	leaq	-112(%rbp), %r13
	movq	%r13, %rsi
	movl	$64, %edx
	callq	_synthesize_probe_trace_arg
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_strdup
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movq	%rax, (%rcx,%r14)
	movl	16(%r15), %r13d
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	movl	%ebx, %ecx
	xorl	%ebx, %ebx
	movq	_ENOMEM@GOTPCREL(%rip), %rsi
	subl	(%rsi), %ebx
	testl	%ecx, %ecx
	cmovsl	%ecx, %ebx
	testq	%rax, %rax
	cmovnel	%ecx, %ebx
	movslq	%r13d, %rax
	cmpq	%rax, %r12
	jge	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	addq	$8, %r14
	incq	%r12
	testl	%ebx, %ebx
	jns	LBB0_10
LBB0_15:
	testl	%ebx, %ebx
	jns	LBB0_17
## %bb.16:
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_clear_perf_probe_event
	jmp	LBB0_17
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_convert_to_perf_probe_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_to_perf_probe_event
_convert_to_perf_probe_event:           ; @convert_to_perf_probe_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	stp	q0, q0, [sp]
	ldr	x0, [x0]
	bl	_strdup
	mov	x22, x0
	str	x0, [x19, #32]
	ldr	x0, [x20, #8]
	bl	_strdup
	str	x0, [x19, #24]
	cmp	x22, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_2:
	add	x0, x20, #32
	add	x1, x19, #16
	cbz	w21, LBB0_4
; %bb.3:
	bl	_kprobe_convert_to_perf_probe
	mov	x21, x0
	tbz	w0, #31, LBB0_5
	b	LBB0_15
LBB0_4:
	bl	_convert_to_perf_probe_point
	mov	x21, x0
	tbnz	w0, #31, LBB0_15
LBB0_5:
	ldr	w8, [x20, #16]
	str	w8, [x19]
	lsl	w0, w8, #2
	bl	_zalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_1
; %bb.6:
	ldr	w26, [x20, #16]
	cmp	w26, #1
	b.lt	LBB0_15
; %bb.7:
	mov	x22, x0
	mov	x23, #0
	mov	w24, #1
Lloh6:
	adrp	x25, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x25, [x25, _ENOMEM@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	add	x0, x8, x23
	ldr	x8, [x0]
	cbz	x8, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x8
	bl	_strdup
	str	x0, [x22, x23]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x1, sp
	mov	w2, #64
	bl	_synthesize_probe_trace_arg
	mov	x21, x0
	mov	x0, sp
	bl	_strdup
	ldr	x22, [x19, #8]
	str	x0, [x22, x23]
	ldr	w26, [x20, #16]
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	cmn	w21, #1
	ccmp	x0, #0, #0, gt
	ldr	w8, [x25]
	csneg	w21, w21, w8, ne
	cmp	x24, w26, sxtw
	b.ge	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #8
	add	x24, x24, #1
	tbz	w21, #31, LBB0_8
LBB0_13:
	tbz	w21, #31, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_clear_perf_probe_event
LBB0_15:
	ldr	x8, [sp, #72]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x21
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_convert_to_perf_probe_event
.subsections_via_symbols
