	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zlog_stream_prefix_ex          ## -- Begin function zlog_stream_prefix_ex
	.p2align	4, 0x90
_zlog_stream_prefix_ex:                 ## @zlog_stream_prefix_ex
	.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
	subq	$1040, %rsp                     ## imm = 0x410
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	cmpl	$0, 96(%rdi)
	je	LBB0_1
## %bb.2:
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	cmpq	$0, 88(%rdi)
	je	LBB0_5
## %bb.3:
	cmpq	$0, (%rbx)
	je	LBB0_4
LBB0_5:
	cmpq	$0, 80(%rbx)
	je	LBB0_13
LBB0_6:
	movq	%rbx, %rdi
	callq	_zlog_stream_buf_alloc
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	56(%rbx), %r9d
	movl	60(%rbx), %edx
	movq	64(%rbx), %rcx
	movl	72(%rbx), %r8d
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_zlog_buf_prefix
	movq	%rax, 24(%rbx)
	movq	%rax, 16(%rbx)
	movq	32(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:
	movl	40(%rbx), %edx
	movq	%rbx, %rdi
	callq	_zlog_stream_buf_copy_cstr
LBB0_10:
	cmpq	$0, 48(%rbx)
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	movl	$34, %esi
	callq	_zlog_stream_buf_copy_char
LBB0_12:
	movl	16(%rbx), %r14d
	jmp	LBB0_17
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_17
LBB0_4:
	movq	%r15, (%rbx)
	movl	%r14d, 8(%rbx)
	cmpq	$0, 80(%rbx)
	jne	LBB0_6
LBB0_13:
	movl	56(%rbx), %r9d
	movl	60(%rbx), %edx
	leaq	-1072(%rbp), %r12
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%r12, %rcx
	movl	$1024, %r8d                     ## imm = 0x400
	callq	_zlog_buf_prefix
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_zlog_stream_direct_write
	movl	%eax, %r14d
	movq	32(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.14:
	movl	40(%rbx), %edx
	movq	%rbx, %rdi
	callq	_zlog_stream_direct_write
	addl	%eax, %r14d
LBB0_15:
	cmpq	$0, 48(%rbx)
	je	LBB0_17
## %bb.16:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_zlog_stream_direct_write
	addl	%eax, %r14d
	jmp	LBB0_17
LBB0_7:
	movl	$-1, %r14d
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movl	%r14d, %eax
	addq	$1040, %rsp                     ## imm = 0x410
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\""

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zlog_stream_prefix_ex          ; -- Begin function zlog_stream_prefix_ex
	.p2align	2
_zlog_stream_prefix_ex:                 ; @zlog_stream_prefix_ex
	.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
	sub	sp, sp, #1040
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	w8, [x0, #96]
	cbz	w8, LBB0_10
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #88]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x19]
	cbz	x8, LBB0_11
LBB0_3:
	ldr	x8, [x19, #80]
	cbz	x8, LBB0_12
LBB0_4:
	mov	x0, x19
	bl	_zlog_stream_buf_alloc
	cbz	w0, LBB0_16
; %bb.5:
	ldr	x3, [x19, #64]
	ldr	w4, [x19, #72]
	ldp	w5, w2, [x19, #56]
	mov	x0, x21
	mov	x1, x20
	bl	_zlog_buf_prefix
	stp	x0, x0, [x19, #16]
	ldr	x1, [x19, #32]
	cbz	x1, LBB0_7
; %bb.6:
	ldr	w2, [x19, #40]
	mov	x0, x19
	bl	_zlog_stream_buf_copy_cstr
LBB0_7:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	w1, #34
	bl	_zlog_stream_buf_copy_char
LBB0_9:
	ldr	w20, [x19, #16]
	b	LBB0_17
LBB0_10:
	mov	w20, #0
	b	LBB0_17
LBB0_11:
	str	x21, [x19]
	str	w20, [x19, #8]
	ldr	x8, [x19, #80]
	cbnz	x8, LBB0_4
LBB0_12:
	ldp	w5, w2, [x19, #56]
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x20
	mov	w4, #1024
	bl	_zlog_buf_prefix
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_zlog_stream_direct_write
	mov	x20, x0
	ldr	x1, [x19, #32]
	cbz	x1, LBB0_14
; %bb.13:
	ldr	w2, [x19, #40]
	mov	x0, x19
	bl	_zlog_stream_direct_write
	add	w20, w0, w20
LBB0_14:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_17
; %bb.15:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #1
	bl	_zlog_stream_direct_write
	add	w20, w0, w20
	b	LBB0_17
LBB0_16:
	mov	w20, #-1
LBB0_17:
	ldur	x8, [x29, #-40]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x20
	add	sp, sp, #1040
	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
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\""

.subsections_via_symbols
