	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prof_log_start                 ## -- Begin function prof_log_start
	.p2align	4, 0x90
_prof_log_start:                        ## @prof_log_start
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_opt_prof@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movl	$1, %ebx
	je	LBB0_9
## %bb.1:
	movq	_prof_booted@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_9
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_log_mtx@GOTPCREL(%rip), %rsi
	callq	_malloc_mutex_lock
	movq	_prof_logging_state@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	_prof_logging_state_stopped@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.3:
	testq	%r15, %r15
	je	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	callq	_strlen
	movq	_PROF_DUMP_FILENAME_LEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_8
## %bb.6:
	movq	_log_filename@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_strcpy
	jmp	LBB0_7
LBB0_4:
	movq	_log_filename@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_log_seq@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_prof_get_default_filename
	incl	(%rbx)
LBB0_7:
	movq	_prof_logging_state_started@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	_log_start_timestamp@GOTPCREL(%rip), %rdi
	callq	_nstime_update
	xorl	%ebx, %ebx
LBB0_8:
	movq	_log_mtx@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_malloc_mutex_unlock
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_opt_prof,4,2                   ## @opt_prof
	.comm	_prof_booted,4,2                ## @prof_booted
	.comm	_log_mtx,4,2                    ## @log_mtx
	.comm	_prof_logging_state,8,3         ## @prof_logging_state
	.comm	_prof_logging_state_stopped,8,3 ## @prof_logging_state_stopped
	.comm	_log_filename,4,2               ## @log_filename
	.comm	_log_seq,4,2                    ## @log_seq
	.comm	_prof_logging_state_started,8,3 ## @prof_logging_state_started
	.comm	_PROF_DUMP_FILENAME_LEN,8,3     ## @PROF_DUMP_FILENAME_LEN
	.comm	_log_start_timestamp,4,2        ## @log_start_timestamp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prof_log_start                 ; -- Begin function prof_log_start
	.p2align	2
_prof_log_start:                        ; @prof_log_start
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _opt_prof@GOTPAGE
Lloh1:
	ldr	x8, [x8, _opt_prof@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _prof_booted@GOTPAGE
Lloh4:
	ldr	x9, [x9, _prof_booted@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #1
	b	LBB0_10
LBB0_2:
	mov	x20, x1
	mov	x19, x0
Lloh6:
	adrp	x1, _log_mtx@GOTPAGE
Lloh7:
	ldr	x1, [x1, _log_mtx@GOTPAGEOFF]
	bl	_malloc_mutex_lock
Lloh8:
	adrp	x21, _prof_logging_state@GOTPAGE
Lloh9:
	ldr	x21, [x21, _prof_logging_state@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh10:
	adrp	x9, _prof_logging_state_stopped@GOTPAGE
Lloh11:
	ldr	x9, [x9, _prof_logging_state_stopped@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	cbz	x20, LBB0_7
; %bb.4:
	mov	x0, x20
	bl	_strlen
Lloh13:
	adrp	x8, _PROF_DUMP_FILENAME_LEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PROF_DUMP_FILENAME_LEN@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_6
; %bb.5:
Lloh16:
	adrp	x8, _log_filename@GOTPAGE
Lloh17:
	ldr	x8, [x8, _log_filename@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_strcpy
	b	LBB0_8
LBB0_6:
	mov	w20, #1
	b	LBB0_9
LBB0_7:
Lloh19:
	adrp	x8, _log_filename@GOTPAGE
Lloh20:
	ldr	x8, [x8, _log_filename@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x20, _log_seq@GOTPAGE
Lloh23:
	ldr	x20, [x20, _log_seq@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_prof_get_default_filename
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
LBB0_8:
Lloh24:
	adrp	x8, _prof_logging_state_started@GOTPAGE
Lloh25:
	ldr	x8, [x8, _prof_logging_state_started@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	str	x8, [x21]
Lloh27:
	adrp	x0, _log_start_timestamp@GOTPAGE
Lloh28:
	ldr	x0, [x0, _log_start_timestamp@GOTPAGEOFF]
	bl	_nstime_update
	mov	w20, #0
LBB0_9:
Lloh29:
	adrp	x1, _log_mtx@GOTPAGE
Lloh30:
	ldr	x1, [x1, _log_mtx@GOTPAGEOFF]
	mov	x0, x19
	bl	_malloc_mutex_unlock
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_opt_prof,4,2                   ; @opt_prof
	.comm	_prof_booted,4,2                ; @prof_booted
	.comm	_log_mtx,4,2                    ; @log_mtx
	.comm	_prof_logging_state,8,3         ; @prof_logging_state
	.comm	_prof_logging_state_stopped,8,3 ; @prof_logging_state_stopped
	.comm	_log_filename,4,2               ; @log_filename
	.comm	_log_seq,4,2                    ; @log_seq
	.comm	_prof_logging_state_started,8,3 ; @prof_logging_state_started
	.comm	_PROF_DUMP_FILENAME_LEN,8,3     ; @PROF_DUMP_FILENAME_LEN
	.comm	_log_start_timestamp,4,2        ; @log_start_timestamp
.subsections_via_symbols
