	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zlog_stream_finish_direct_suffix
_zlog_stream_finish_direct_suffix:      ## @zlog_stream_finish_direct_suffix
	.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	%rdi, %rbx
	cmpq	$0, 40(%rdi)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_zlog_stream_direct_write
	incq	(%rbx)
LBB0_2:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movl	16(%rbx), %edx
	movq	%rbx, %rdi
	callq	_zlog_stream_direct_write
	movslq	16(%rbx), %rax
	addq	%rax, (%rbx)
LBB0_4:
	movq	32(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.5:
	movq	24(%rbx), %rdx
	movq	(%rbx), %r14
	addq	%rdx, %r14
	movq	_zlog_limit@GOTPCREL(%rip), %rax
	subq	(%rax), %r14
	jae	LBB0_6
## %bb.7:
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	jmp	LBB0_8
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_zlog_stream_direct_write       ## TAILCALL
LBB0_6:
	movq	40(%rbx), %r12
	incq	%r14
	subq	%r14, %rdx
	leaq	L_.str.1(%rip), %r15
	movq	%rbx, %rdi
	movq	%r15, %rcx
	movl	$1, %r8d
	callq	_zlog_stream_direct_write_ex
	movq	$0, 40(%rbx)
	movl	48(%rbx), %edx
	movl	52(%rbx), %esi
	movq	%rbx, %rdi
	callq	_zlog_stream_prefix_ex
	movq	%r12, 40(%rbx)
	movq	24(%rbx), %rsi
	subq	%r14, %rsi
	shlq	$2, %rsi
	addq	32(%rbx), %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	movq	%r15, %rcx
LBB0_8:
	movl	$1, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_zlog_stream_direct_write_ex    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\""

	.comm	_zlog_limit,8,3                 ## @zlog_limit
L_.str.1:                               ## @.str.1
	.asciz	"\n"

	.no_dead_strip	_zlog_stream_finish_direct_suffix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zlog_stream_finish_direct_suffix
_zlog_stream_finish_direct_suffix:      ; @zlog_stream_finish_direct_suffix
	.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
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_zlog_stream_direct_write
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
LBB0_2:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_4
; %bb.3:
	ldr	w2, [x19, #16]
	mov	x0, x19
	bl	_zlog_stream_direct_write
	ldrsw	x8, [x19, #16]
	ldr	x9, [x19]
	add	x8, x9, x8
	str	x8, [x19]
LBB0_4:
	ldr	x1, [x19, #32]
	cbz	x1, LBB0_7
; %bb.5:
	ldr	x8, [x19]
	ldr	x2, [x19, #24]
Lloh2:
	adrp	x9, _zlog_limit@GOTPAGE
Lloh3:
	ldr	x9, [x9, _zlog_limit@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x8, x2, x8
	subs	x8, x8, x9
	b.hs	LBB0_8
; %bb.6:
Lloh5:
	adrp	x3, l_.str.1@PAGE
Lloh6:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	b	LBB0_9
LBB0_7:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	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
	b	_zlog_stream_direct_write
LBB0_8:
	ldr	x22, [x19, #40]
	add	x20, x8, #1
	sub	x2, x2, x20
Lloh9:
	adrp	x21, l_.str.1@PAGE
Lloh10:
	add	x21, x21, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x21
	mov	w4, #1
	bl	_zlog_stream_direct_write_ex
	str	xzr, [x19, #40]
	ldp	w2, w1, [x19, #48]
	mov	x0, x19
	bl	_zlog_stream_prefix_ex
	str	x22, [x19, #40]
	ldp	x9, x8, [x19, #24]
	sub	x9, x9, x20
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
LBB0_9:
	mov	w4, #1
	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
	b	_zlog_stream_direct_write_ex
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\""

	.comm	_zlog_limit,8,3                 ; @zlog_limit
l_.str.1:                               ; @.str.1
	.asciz	"\n"

	.no_dead_strip	_zlog_stream_finish_direct_suffix
.subsections_via_symbols
