	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prof_dump_flush
_prof_dump_flush:                       ## @prof_dump_flush
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_config_prof@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cassert
	movq	_prof_dump_fd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_prof_dump_buf@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_prof_dump_buf_end@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	callq	_malloc_write_fd
	xorl	%ebx, %ebx
	cmpl	$-1, %eax
	jne	LBB0_3
## %bb.1:
	movl	$1, %ebx
	testl	%r14d, %r14d
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_malloc_write
	movq	_opt_abort@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_4
LBB0_3:
	movq	$0, (%r15)
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.comm	_config_prof,4,2                ## @config_prof
	.comm	_prof_dump_fd,4,2               ## @prof_dump_fd
	.comm	_prof_dump_buf,4,2              ## @prof_dump_buf
	.comm	_prof_dump_buf_end,8,3          ## @prof_dump_buf_end
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<jemalloc>: write() failed during heap profile flush\n"

	.comm	_opt_abort,8,3                  ## @opt_abort
	.no_dead_strip	_prof_dump_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prof_dump_flush
_prof_dump_flush:                       ; @prof_dump_flush
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _config_prof@GOTPAGE
Lloh1:
	ldr	x8, [x8, _config_prof@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cassert
Lloh3:
	adrp	x8, _prof_dump_fd@GOTPAGE
Lloh4:
	ldr	x8, [x8, _prof_dump_fd@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _prof_dump_buf@GOTPAGE
Lloh7:
	ldr	x8, [x8, _prof_dump_buf@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x20, _prof_dump_buf_end@GOTPAGE
Lloh10:
	ldr	x20, [x20, _prof_dump_buf_end@GOTPAGEOFF]
	ldr	x2, [x20]
	bl	_malloc_write_fd
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	cbnz	w19, LBB0_4
; %bb.3:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	bl	_malloc_write
Lloh13:
	adrp	x8, _opt_abort@GOTPAGE
Lloh14:
	ldr	x8, [x8, _opt_abort@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cbnz	x8, LBB0_6
LBB0_4:
	mov	w0, #1
LBB0_5:
	str	xzr, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	bl	_abort
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_config_prof,4,2                ; @config_prof
	.comm	_prof_dump_fd,4,2               ; @prof_dump_fd
	.comm	_prof_dump_buf,4,2              ; @prof_dump_buf
	.comm	_prof_dump_buf_end,8,3          ; @prof_dump_buf_end
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<jemalloc>: write() failed during heap profile flush\n"

	.comm	_opt_abort,8,3                  ; @opt_abort
	.no_dead_strip	_prof_dump_flush
.subsections_via_symbols
