	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_new_event_name
_get_new_event_name:                    ## @get_new_event_name
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %rcx
	movq	%rsi, %r12
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_e_snprintf
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_strlist__has_entry
	testl	%eax, %eax
	je	LBB0_13
## %bb.3:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.4:
	movq	_MAX_EVENT_INDEX@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	$1, %r15d
	cmpl	$2, %eax
	jl	LBB0_10
## %bb.5:
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	leaq	L_.str.3(%rip), %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_e_snprintf
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_strlist__has_entry
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	incl	%r15d
	movl	(%r14), %eax
	cmpl	%eax, %r15d
	jl	LBB0_6
	jmp	LBB0_10
LBB0_1:
	movl	%ebx, %edi
	negl	%edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_debug
	movl	%ebx, %r14d
	jmp	LBB0_13
LBB0_14:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_pr_warning
	movq	_EEXIST@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_8:
	movl	(%r14), %eax
LBB0_10:
	movl	%ebx, %r14d
	cmpl	%eax, %r15d
	jne	LBB0_13
## %bb.11:
	leaq	L_.str.4(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_pr_warning
	movq	_ERANGE@GOTPCREL(%rip), %rax
LBB0_12:
	subl	(%rax), %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"snprintf() failed: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"Error: event \"%s\" already exists. (Use -f to force duplicates.)\n"

	.comm	_EEXIST,4,2                     ## @EEXIST
	.comm	_MAX_EVENT_INDEX,4,2            ## @MAX_EVENT_INDEX
L_.str.3:                               ## @.str.3
	.asciz	"%s_%d"

L_.str.4:                               ## @.str.4
	.asciz	"Too many events are on the same function.\n"

	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	_get_new_event_name
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_new_event_name
_get_new_event_name:                    ; @get_new_event_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x24, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x20
	bl	_e_snprintf
	mov	x19, x0
	tbnz	w0, #31, LBB0_8
; %bb.1:
	mov	x0, x21
	mov	x1, x23
	bl	_strlist__has_entry
	cbz	w0, LBB0_9
; %bb.2:
	cbz	w24, LBB0_10
; %bb.3:
Lloh2:
	adrp	x26, _MAX_EVENT_INDEX@GOTPAGE
Lloh3:
	ldr	x26, [x26, _MAX_EVENT_INDEX@GOTPAGEOFF]
	ldr	w8, [x26]
	mov	w25, #1
	cmp	w8, #2
	b.lt	LBB0_12
; %bb.4:
Lloh4:
	adrp	x24, l_.str.3@PAGE
Lloh5:
	add	x24, x24, l_.str.3@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	str	x25, [sp]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	mov	x3, x20
	bl	_e_snprintf
	mov	x19, x0
	tbnz	w0, #31, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_strlist__has_entry
	cbz	w0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w25, w25, #1
	ldr	w8, [x26]
	cmp	w25, w8
	b.lt	LBB0_5
	b	LBB0_12
LBB0_8:
	neg	w0, w19
	bl	_strerror
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	b	LBB0_15
LBB0_9:
	mov	w19, #0
	b	LBB0_15
LBB0_10:
	str	x20, [sp]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_warning
Lloh10:
	adrp	x8, _EEXIST@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
	ldr	w8, [x26]
LBB0_12:
	cmp	w25, w8
	b.ne	LBB0_15
; %bb.13:
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_warning
Lloh14:
	adrp	x8, _ERANGE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"snprintf() failed: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"Error: event \"%s\" already exists. (Use -f to force duplicates.)\n"

	.comm	_EEXIST,4,2                     ; @EEXIST
	.comm	_MAX_EVENT_INDEX,4,2            ; @MAX_EVENT_INDEX
l_.str.3:                               ; @.str.3
	.asciz	"%s_%d"

l_.str.4:                               ; @.str.4
	.asciz	"Too many events are on the same function.\n"

	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_get_new_event_name
.subsections_via_symbols
