	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perf_header__push_event        ## -- Begin function perf_header__push_event
	.p2align	4, 0x90
_perf_header__push_event:               ## @perf_header__push_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	%rsi, %rdi
	callq	_strlen
	movq	_MAX_EVENT_NAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_pr_warning
LBB0_2:
	movq	_trace_events@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movq	_trace_event_count@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	leal	8(,%rax,8), %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, (%r12)
	movslq	(%r13), %rcx
	leaq	(%rax,%rcx,8), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	(%r12), %rax
	movslq	(%r13), %rcx
	movl	%r14d, 4(%rax,%rcx,8)
	movslq	(%r13), %rcx
	movl	(%rax,%rcx,8), %edi
	movq	_MAX_EVENT_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	decq	%rdx
	movq	%r15, %rsi
	callq	_strncpy
	incl	(%r13)
	jmp	LBB0_5
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_EVENT_NAME,8,3             ## @MAX_EVENT_NAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Event %s will be truncated\n"

	.comm	_trace_events,8,3               ## @trace_events
	.comm	_trace_event_count,4,2          ## @trace_event_count
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_perf_header__push_event        ; -- Begin function perf_header__push_event
	.p2align	2
_perf_header__push_event:               ; @perf_header__push_event
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_strlen
Lloh0:
	adrp	x21, _MAX_EVENT_NAME@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MAX_EVENT_NAME@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.le	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_warning
LBB0_2:
Lloh4:
	adrp	x23, _trace_events@GOTPAGE
Lloh5:
	ldr	x23, [x23, _trace_events@GOTPAGEOFF]
	ldr	x0, [x23]
Lloh6:
	adrp	x22, _trace_event_count@GOTPAGE
Lloh7:
	ldr	x22, [x22, _trace_event_count@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	w8, w8, #3
	add	w1, w8, #8
	bl	_realloc
	cbz	x0, LBB0_4
; %bb.3:
	str	x0, [x23]
	ldrsw	x8, [x22]
	add	x0, x0, x8, lsl #3
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x8, [x23]
	ldrsw	x9, [x22]
	add	x9, x8, x9, lsl #3
	str	w20, [x9, #4]
	ldrsw	x9, [x22]
	lsl	x9, x9, #3
	ldr	w0, [x8, x9]
	ldr	x8, [x21]
	sub	x2, x8, #1
	mov	x1, x19
	bl	_strncpy
	mov	w0, #0
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_EVENT_NAME,8,3             ; @MAX_EVENT_NAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Event %s will be truncated\n"

	.comm	_trace_events,8,3               ; @trace_events
	.comm	_trace_event_count,4,2          ; @trace_event_count
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
