	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmcstat_gmon_append_arc
_pmcstat_gmon_append_arc:               ## @pmcstat_gmon_append_arc
	.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, %r14d
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rdi, %r13
	callq	_pmcstat_image_find_gmonfile
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %rbx
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.2:
	movl	8(%rbx), %edi
	callq	_pmcstat_string_unintern
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_fopen
	movq	%rax, %rcx
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	(%r13), %rax
	addq	%rax, %r12
	movq	%r12, -48(%rbp)
	addq	%rax, %r15
	movq	%r15, -56(%rbp)
	movl	%r14d, -64(%rbp)
	leaq	-64(%rbp), %rdi
	movl	$24, %esi
	movl	$1, %edx
	callq	_fwrite
LBB0_4:
	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	"a"

	.no_dead_strip	_pmcstat_gmon_append_arc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmcstat_gmon_append_arc
_pmcstat_gmon_append_arc:               ; @pmcstat_gmon_append_arc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x0
	bl	_pmcstat_image_find_gmonfile
	cbz	x0, LBB0_4
; %bb.1:
	mov	x23, x0
	ldr	x3, [x0]
	cbnz	x3, LBB0_3
; %bb.2:
	ldr	w0, [x23, #8]
	bl	_pmcstat_string_unintern
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	mov	x3, x0
	str	x0, [x23]
	cbz	x0, LBB0_4
LBB0_3:
	ldr	x8, [x22]
	add	x9, x8, x21
	add	x8, x8, x20
	stp	x8, x9, [sp, #16]
	str	w19, [sp, #8]
	add	x0, sp, #8
	mov	w1, #24
	mov	w2, #1
	bl	_fwrite
LBB0_4:
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"a"

	.no_dead_strip	_pmcstat_gmon_append_arc
.subsections_via_symbols
