	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function log_buf_append
_log_buf_append:                        ## @log_buf_append
	.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
	movq	%rdi, %rbx
	callq	_strlen
	movq	_FIFO_OVERWRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_log_buf@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_fifo_write
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %rbx
	movq	_log_max_since_clear@GOTPCREL(%rip), %r15
	addq	(%r15), %rbx
	movq	%rbx, (%r15)
	movq	%r14, %rdi
	callq	_fifo_capacity
	cmpq	%rax, %rbx
	jle	LBB0_2
## %bb.1:
	movq	_log_buf@GOTPCREL(%rip), %rdi
	callq	_fifo_capacity
	movq	%rax, (%r15)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_log_buf,4,2                    ## @log_buf
	.comm	_FIFO_OVERWRITE,4,2             ## @FIFO_OVERWRITE
	.comm	_log_max_since_clear,8,3        ## @log_max_since_clear
	.no_dead_strip	_log_buf_append
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function log_buf_append
_log_buf_append:                        ; @log_buf_append
	.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
	mov	x19, x0
	bl	_strlen
	mov	x2, x0
Lloh0:
	adrp	x8, _FIFO_OVERWRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FIFO_OVERWRITE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x20, _log_buf@GOTPAGE
Lloh4:
	ldr	x20, [x20, _log_buf@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_fifo_write
	mov	x0, x19
	bl	_strlen
Lloh5:
	adrp	x19, _log_max_since_clear@GOTPAGE
Lloh6:
	ldr	x19, [x19, _log_max_since_clear@GOTPAGEOFF]
	ldr	x8, [x19]
	add	x21, x8, x0
	str	x21, [x19]
	mov	x0, x20
	bl	_fifo_capacity
	cmp	x21, x0
	b.le	LBB0_2
; %bb.1:
Lloh7:
	adrp	x0, _log_buf@GOTPAGE
Lloh8:
	ldr	x0, [x0, _log_buf@GOTPAGEOFF]
	bl	_fifo_capacity
	str	x0, [x19]
LBB0_2:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_log_buf,4,2                    ; @log_buf
	.comm	_FIFO_OVERWRITE,4,2             ; @FIFO_OVERWRITE
	.comm	_log_max_since_clear,8,3        ; @log_max_since_clear
	.no_dead_strip	_log_buf_append
.subsections_via_symbols
