	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zlog_stream_unbuffered_write
_zlog_stream_unbuffered_write:          ## @zlog_stream_unbuffered_write
	.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
	movq	%rdx, %r9
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	(%rdi), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	48(%r12), %edx
	movl	52(%r12), %esi
	movq	%r12, %rdi
	movq	%r9, %rbx
	callq	_zlog_stream_prefix_ex
	movq	%rbx, %r9
	movq	%rax, (%r12)
LBB0_2:
	movq	8(%r12), %rbx
	addq	%rax, %rbx
	addq	16(%r12), %rbx
	leaq	(%rbx,%r9), %r14
	movq	_zlog_limit@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	cmpq	$0, 40(%r12)
	je	LBB0_11
## %bb.3:
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	notq	%rbx
	addq	%r15, %rbx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_zlog_stream_direct_write
	movq	%r13, %rsi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	cmpq	%r15, %r14
	setne	%al
	leaq	L_.str(%rip), %rcx
	cmovneq	%rcx, %r13
	je	LBB0_9
## %bb.4:
	movq	%rsi, %r14
	movb	%al, %dl
	movq	%rdx, %r15
	cmpq	$0, 16(%r12)
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edx
	movq	%r12, %rdi
	callq	_zlog_stream_direct_write
LBB0_6:
	movq	24(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movq	8(%r12), %rdx
	movq	%r12, %rdi
	callq	_zlog_stream_direct_write
LBB0_8:
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_zlog_stream_direct_write
	movq	%r14, %rsi
LBB0_9:
	movq	$0, (%r12)
	addq	%rbx, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	subq	%rbx, %rdx
	movq	%r12, %rdi
	callq	_zlog_stream_unbuffered_write
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	cmovgq	%rbx, %rax
	addq	%rcx, %rax
	jmp	LBB0_10
LBB0_11:
	movl	$1, 32(%r12)
	movq	%r15, %rdx
	subq	%rax, %rdx
	addq	$-3, %rdx
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	cmpq	%r15, %r14
	setne	%al
	leaq	(%rax,%rax,2), %r8
	leaq	L_.str.2(%rip), %rax
	cmovneq	%rax, %rcx
	cmoveq	%r9, %rdx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_zlog_stream_direct_write_ex
	testq	%rax, %rax
	jle	LBB0_10
## %bb.12:
	addq	%rax, (%r12)
LBB0_10:
	addq	$8, %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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

L_.str.1:                               ## @.str.1
	.asciz	"\""

L_.str.2:                               ## @.str.2
	.asciz	"..."

	.no_dead_strip	_zlog_stream_unbuffered_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zlog_stream_unbuffered_write
_zlog_stream_unbuffered_write:          ; @zlog_stream_unbuffered_write
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0]
	cbnz	x0, LBB0_2
; %bb.1:
	ldp	w2, w1, [x19, #48]
	mov	x0, x19
	bl	_zlog_stream_prefix_ex
	str	x0, [x19]
LBB0_2:
	ldp	x8, x9, [x19, #8]
	add	x8, x8, x0
	add	x8, x8, x9
	add	x23, x8, x21
Lloh0:
	adrp	x9, _zlog_limit@GOTPAGE
Lloh1:
	ldr	x9, [x9, _zlog_limit@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x9]
	ldr	x9, [x19, #40]
	cbz	x9, LBB0_10
; %bb.3:
	mvn	x8, x8
	add	x22, x24, x8
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_zlog_stream_direct_write
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x23, x24
	csel	x24, xzr, x8, eq
	cset	w23, ne
	b.eq	LBB0_9
; %bb.4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.5:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_zlog_stream_direct_write
LBB0_6:
	ldr	x1, [x19, #24]
	cbz	x1, LBB0_8
; %bb.7:
	ldr	x2, [x19, #8]
	mov	x0, x19
	bl	_zlog_stream_direct_write
LBB0_8:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	bl	_zlog_stream_direct_write
LBB0_9:
	str	xzr, [x19]
	add	x1, x20, x22
	sub	x2, x21, x22
	mov	x0, x19
	bl	_zlog_stream_unbuffered_write
	cmp	x0, #0
	csel	x8, x22, xzr, gt
	add	x0, x8, x0
	b	LBB0_12
LBB0_10:
	mov	w8, #1
	str	w8, [x19, #32]
	sub	x8, x24, x0
	sub	x8, x8, #3
	mov	w9, #3
	cmp	x23, x24
	csel	x4, xzr, x9, eq
Lloh7:
	adrp	x9, l_.str.2@PAGE
Lloh8:
	add	x9, x9, l_.str.2@PAGEOFF
	csel	x3, xzr, x9, eq
	csel	x2, x21, x8, eq
	mov	x0, x19
	mov	x1, x20
	bl	_zlog_stream_direct_write_ex
	cmp	x0, #1
	b.lt	LBB0_12
; %bb.11:
	ldr	x8, [x19]
	add	x8, x8, x0
	str	x8, [x19]
LBB0_12:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_zlog_limit,8,3                 ; @zlog_limit
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

l_.str.1:                               ; @.str.1
	.asciz	"\""

l_.str.2:                               ; @.str.2
	.asciz	"..."

	.no_dead_strip	_zlog_stream_unbuffered_write
.subsections_via_symbols
