	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perf_event__synthesize_comm
_perf_event__synthesize_comm:           ## @perf_event__synthesize_comm
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	16(%r13), %rsi
	movl	%r14d, %edi
	movl	$8, %edx
	callq	_perf_event__get_comm_tgid
	movl	%eax, %ecx
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, (%r13)
	movq	_PERF_RECORD_COMM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13)
	movq	16(%r13), %rdi
	callq	_strlen
	incl	%eax
	movslq	%eax, %rdi
	movl	$4, %esi
	callq	_PERF_ALIGN
	movq	%rax, %rbx
	leaq	(%rax,%rax,2), %rdi
	shlq	$3, %rdi
	addq	16(%r13), %rdi
	movl	(%r12), %edx
	xorl	%esi, %esi
	callq	_memset
	movl	(%r12), %eax
	addl	%ebx, %eax
	addl	$16, %eax
	movl	%eax, 8(%r13)
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_2
## %bb.3:
	leaq	L_.str(%rip), %rdx
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r14d, %ecx
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_opendir
	testq	%rax, %rax
	je	LBB0_16
## %bb.4:
	movq	%rax, %r14
	leaq	-56(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	movq	%rax, %rdi
	callq	_readdir_r
	testl	%eax, %eax
	jne	LBB0_12
## %bb.5:
	cmpq	$0, -72(%rbp)
	je	LBB0_12
## %bb.6:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	leaq	-96(%rbp), %rbx
	leaq	-56(%rbp), %r15
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	-56(%rbp), %edi
	movq	%rbx, %rsi
	movl	$10, %edx
	callq	_strtol
	movl	%eax, %r12d
	movq	-96(%rbp), %rax
	cmpb	$0, (%rax)
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r13), %rsi
	movl	%r12d, %edi
	movl	$8, %edx
	callq	_perf_event__get_comm_tgid
	movq	16(%r13), %rdi
	callq	_strlen
	incl	%eax
	movslq	%eax, %rdi
	movl	$4, %esi
	callq	_PERF_ALIGN
	movq	%r15, %rbx
	movq	%rax, %r15
	leaq	(%rax,%rax,2), %rdi
	shlq	$3, %rdi
	addq	16(%r13), %rdi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %edx
	xorl	%esi, %esi
	callq	_memset
	movl	(%r14), %eax
	addl	%r15d, %eax
	addl	$16, %eax
	movq	%rbx, %r15
	leaq	-96(%rbp), %rbx
	movl	%eax, 8(%r13)
	movl	%r12d, 4(%r13)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	_synth_sample@GOTPCREL(%rip), %rdx
	movq	%r14, %rcx
	movq	-112(%rbp), %r14                ## 8-byte Reload
	callq	*-88(%rbp)                      ## 8-byte Folded Reload
	testq	%rax, %rax
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	leaq	-72(%rbp), %rdx
	callq	_readdir_r
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	cmpq	$0, -72(%rbp)
	jne	LBB0_7
	jmp	LBB0_12
LBB0_2:
	movl	%r14d, 4(%r13)
	movq	_synth_sample@GOTPCREL(%rip), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r12, %rcx
	callq	*-88(%rbp)                      ## 8-byte Folded Reload
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	jne	LBB0_14
	jmp	LBB0_13
LBB0_16:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_pr_debug
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_9:
	movl	$-1, -52(%rbp)                  ## 4-byte Folded Spill
LBB0_12:
	movq	%r14, %rdi
	callq	_closedir
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
LBB0_13:
	movl	%ecx, %eax
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_17
## %bb.15:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX,4,2                   ## @PATH_MAX
	.comm	_PERF_RECORD_COMM,4,2           ## @PERF_RECORD_COMM
	.comm	_synth_sample,4,2               ## @synth_sample
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/proc/%d/task"

L_.str.1:                               ## @.str.1
	.asciz	"couldn't open %s\n"

	.no_dead_strip	_perf_event__synthesize_comm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perf_event__synthesize_comm
_perf_event__synthesize_comm:           ; @perf_event__synthesize_comm
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x21, x5
	mov	x20, x4
	mov	x27, x3
	mov	x24, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x8]
	mov	x9, x26
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x26, #15
	and	x9, x9, #0x1fffffff0
	sub	x25, x8, x9
	mov	sp, x25
	mov	x0, x1
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	x1, [x22, #16]
	mov	x0, x24
	mov	w2, #8
	bl	_perf_event__get_comm_tgid
	mov	x19, x0
	tbnz	w0, #31, LBB0_14
; %bb.1:
	str	w19, [x22]
Lloh8:
	adrp	x8, _PERF_RECORD_COMM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PERF_RECORD_COMM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x22, #12]
	ldr	x0, [x22, #16]
	bl	_strlen
	add	w8, w0, #1
	sxtw	x0, w8
	mov	w1, #4
	bl	_PERF_ALIGN
	mov	x28, x0
	ldr	x8, [x22, #16]
	mov	w9, #24
	madd	x0, x0, x9, x8
	ldr	w2, [x21]
	mov	w1, #0
	bl	_memset
	ldr	w8, [x21]
	add	w8, w28, w8
	add	w8, w8, #16
	str	w8, [x22, #8]
	cbz	w27, LBB0_9
; %bb.2:
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x25
	mov	x1, x26
	mov	x3, x24
	bl	_snprintf
	mov	x0, x25
	bl	_opendir
	cbz	x0, LBB0_11
; %bb.3:
	mov	x24, x0
	sub	x1, x29, #96
	sub	x2, x29, #104
	bl	_readdir_r
	ldur	x8, [x29, #-104]
	cmp	w0, #0
	ccmp	x8, #0, #4, eq
	b.eq	LBB0_13
; %bb.4:
	mov	w28, #24
Lloh13:
	adrp	x25, _synth_sample@GOTPAGE
Lloh14:
	ldr	x25, [x25, _synth_sample@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w0, [x29, #-96]
	sub	x1, x29, #112
	mov	w2, #10
	bl	_strtol
	ldur	x8, [x29, #-112]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x0
	ldr	x1, [x22, #16]
	mov	w2, #8
	bl	_perf_event__get_comm_tgid
	ldr	x0, [x22, #16]
	bl	_strlen
	add	w8, w0, #1
	sxtw	x0, w8
	mov	w1, #4
	bl	_PERF_ALIGN
	mov	x27, x0
	ldr	x8, [x22, #16]
	madd	x0, x0, x28, x8
	ldr	w2, [x21]
	mov	w1, #0
	bl	_memset
	ldr	w8, [x21]
	add	w8, w27, w8
	add	w8, w8, #16
	stp	w26, w8, [x22, #4]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x25
	mov	x3, x21
	blr	x20
	cbnz	x0, LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	x1, x29, #96
	sub	x2, x29, #104
	mov	x0, x24
	bl	_readdir_r
	cbnz	w0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	x8, [x29, #-104]
	cbnz	x8, LBB0_5
	b	LBB0_13
LBB0_9:
	str	w24, [x22, #4]
Lloh15:
	adrp	x2, _synth_sample@GOTPAGE
Lloh16:
	ldr	x2, [x2, _synth_sample@GOTPAGEOFF]
	mov	x0, x23
	mov	x1, x22
	mov	x3, x21
	blr	x20
	cbz	x0, LBB0_14
; %bb.10:
	mov	w19, #-1
	b	LBB0_14
LBB0_11:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x25
	bl	_pr_debug
	mov	w19, #0
	b	LBB0_14
LBB0_12:
	mov	w19, #-1
LBB0_13:
	mov	x0, x24
	bl	_closedir
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x19
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX,4,2                   ; @PATH_MAX
	.comm	_PERF_RECORD_COMM,4,2           ; @PERF_RECORD_COMM
	.comm	_synth_sample,4,2               ; @synth_sample
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/proc/%d/task"

l_.str.1:                               ; @.str.1
	.asciz	"couldn't open %s\n"

	.no_dead_strip	_perf_event__synthesize_comm
.subsections_via_symbols
