	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zlog_stream_buf_append
_zlog_stream_buf_append:                ## @zlog_stream_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	%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
	movq	%rdx, %r14
	movq	%rdi, %r12
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_zlog_stream_buf_flush
	movl	40(%r12), %edx
	movl	44(%r12), %esi
	movq	%r12, %rdi
	callq	_zlog_stream_prefix_ex
	movq	%r14, %rsi
	addq	%rbx, %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	subq	%rbx, %r14
	addl	%ebx, -44(%rbp)                 ## 4-byte Folded Spill
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	40(%r12), %edx
	movq	%rsi, %rbx
	movl	44(%r12), %esi
	movq	%r12, %rdi
	callq	_zlog_stream_prefix_ex
	movq	%rbx, %rsi
	movq	%rax, %rbx
	movq	%rax, (%r12)
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	addq	8(%r12), %rbx
	addq	16(%r12), %rbx
	leaq	(%rbx,%r14), %r13
	movq	_zlog_limit@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	notq	%rbx
	addq	%r15, %rbx
	cmpq	%r15, %r13
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	cmovbq	%r14, %rbx
	movq	%r12, %rdi
	movq	%rsi, %r14
	movq	%rbx, %rdx
	callq	_zlog_stream_buf_copy_cstr
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%r15, %r13
	jb	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 48(%r12)
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 16(%r12)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	$34, %esi
	callq	_zlog_stream_buf_copy_char
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r12), %rdx
	movq	%r12, %rdi
	callq	_zlog_stream_buf_copy_cstr
	jmp	LBB0_11
LBB0_4:
	movl	$-1, %ebx
	jmp	LBB0_13
LBB0_12:
	movl	36(%r12), %edi
	movq	(%r12), %rsi
	xorl	%edx, %edx
	callq	_zlog_truncate_buf
	movq	%rax, (%r12)
	movl	$1, 32(%r12)
LBB0_13:
	addl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_zlog_limit,8,3                 ## @zlog_limit
	.no_dead_strip	_zlog_stream_buf_append
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zlog_stream_buf_append
_zlog_stream_buf_append:                ; @zlog_stream_buf_append
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	mov	w23, #0
Lloh0:
	adrp	x24, _zlog_limit@GOTPAGE
Lloh1:
	ldr	x24, [x24, _zlog_limit@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_zlog_stream_buf_flush
	ldp	w2, w1, [x19, #40]
	mov	x0, x19
	bl	_zlog_stream_prefix_ex
	add	x21, x21, x22
	sub	x20, x20, x22
	add	w23, w23, w22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	cbnz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w2, w1, [x19, #40]
	mov	x0, x19
	bl	_zlog_stream_prefix_ex
	str	x0, [x19]
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldp	x8, x9, [x19, #8]
	add	x8, x8, x0
	add	x8, x8, x9
	ldr	x25, [x24]
	mvn	x9, x8
	add	x9, x25, x9
	add	x26, x8, x20
	cmp	x26, x25
	csel	x22, x20, x9, lo
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_zlog_stream_buf_copy_cstr
	tbnz	x0, #63, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x26, x25
	b.lo	LBB0_13
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	w1, #34
	bl	_zlog_stream_buf_copy_char
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x19, #24]
	cbz	x1, LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x2, [x19, #8]
	mov	x0, x19
	bl	_zlog_stream_buf_copy_cstr
	b	LBB0_1
LBB0_11:
	mov	w22, #-1
	b	LBB0_13
LBB0_12:
	ldr	w0, [x19, #36]
	ldr	x1, [x19]
	mov	w2, #0
	bl	_zlog_truncate_buf
	str	x0, [x19]
	mov	w8, #1
	str	w8, [x19, #32]
LBB0_13:
	add	w0, w22, w23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_zlog_limit,8,3                 ; @zlog_limit
	.no_dead_strip	_zlog_stream_buf_append
.subsections_via_symbols
