	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clear_log
_clear_log:                             ## @clear_log
	.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
	movl	%edi, %r14d
	testl	%edi, %edi
	je	LBB0_2
## %bb.1:
	movq	_log_mutex@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_lock
LBB0_2:
	movq	_log_buffer_size@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_5
## %bb.3:
	movl	$8, %ebx
	xorl	%r12d, %r12d
	movq	_log_buffer@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	%rbx, %rdi
	callq	_av_freep
	movq	(%r13), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$-4, %rdi
	callq	_av_freep
	movq	(%r13), %rax
	leaq	(%rax,%rbx), %rdi
	addq	$-8, %rdi
	callq	_av_freep
	incq	%r12
	movslq	(%r15), %rax
	addq	$12, %rbx
	cmpq	%rax, %r12
	jl	LBB0_4
LBB0_5:
	movl	$0, (%r15)
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.7:
	movq	_log_mutex@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pthread_mutex_unlock           ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_log_mutex,4,2                  ## @log_mutex
	.comm	_log_buffer_size,4,2            ## @log_buffer_size
	.comm	_log_buffer,8,3                 ## @log_buffer
	.no_dead_strip	_clear_log
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clear_log
_clear_log:                             ; @clear_log
	.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, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, _log_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _log_mutex@GOTPAGEOFF]
	bl	_pthread_mutex_lock
LBB0_2:
Lloh2:
	adrp	x20, _log_buffer_size@GOTPAGE
Lloh3:
	ldr	x20, [x20, _log_buffer_size@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x21, #0
	mov	w22, #8
Lloh4:
	adrp	x23, _log_buffer@GOTPAGE
Lloh5:
	ldr	x23, [x23, _log_buffer@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x0, x8, x22
	bl	_av_freep
	ldr	x8, [x23]
	add	x8, x8, x22
	sub	x0, x8, #4
	bl	_av_freep
	ldr	x8, [x23]
	add	x8, x8, x22
	sub	x0, x8, #8
	bl	_av_freep
	add	x21, x21, #1
	ldrsw	x8, [x20]
	add	x22, x22, #12
	cmp	x21, x8
	b.lt	LBB0_4
LBB0_5:
	str	wzr, [x20]
	cbz	w19, LBB0_7
; %bb.6:
Lloh6:
	adrp	x0, _log_mutex@GOTPAGE
Lloh7:
	ldr	x0, [x0, _log_mutex@GOTPAGEOFF]
	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
	b	_pthread_mutex_unlock
LBB0_7:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_log_mutex,4,2                  ; @log_mutex
	.comm	_log_buffer_size,4,2            ; @log_buffer_size
	.comm	_log_buffer,8,3                 ; @log_buffer
	.no_dead_strip	_clear_log
.subsections_via_symbols
