	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlog
_vlog:                                  ## @vlog
	.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
	movl	%edx, %r15d
	movq	%rsi, %r12
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	callq	_time
	movl	%eax, _vlog.t(%rip)
	leaq	_vlog.t(%rip), %rdi
	leaq	_vlog.result(%rip), %rsi
	callq	_localtime_r
	movq	%rax, _vlog.tmp(%rip)
	leaq	_vlog.message(%rip), %rbx
	leaq	L_.str(%rip), %rdx
	movl	$4096, %r13d                    ## imm = 0x1000
	movq	%rbx, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	movq	%rax, %rcx
	callq	_strftime
	movq	%rax, _vlog.len(%rip)
	movq	_logbuffer@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.1:
	addq	%rax, %rbx
	subl	%eax, %r13d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	callq	_vsnprintf
	addq	_vlog.len(%rip), %rax
	movq	%rax, _vlog.len(%rip)
	cmpq	$4096, %rax                     ## imm = 0x1000
	jb	LBB0_3
## %bb.2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
	movq	$4096, _vlog.len(%rip)          ## imm = 0x1000
	movb	$10, _vlog.message+4094(%rip)
	movl	$4096, %eax                     ## imm = 0x1000
LBB0_3:
	movq	_logbuffer_size@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_logwalk@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	movq	(%r14), %rcx
	subq	%rdi, %rdx
	addq	%rcx, %rdx
	cmpq	%rdx, %rax
	jb	LBB0_5
## %bb.4:
	movq	_loglastwrap@GOTPCREL(%rip), %rax
	movq	%rdi, (%rax)
	addq	$4, %rcx
	movq	%rcx, (%r15)
	xorl	%eax, %eax
	callq	_store_log_markers
	movq	_header@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incl	4(%rax)
	movq	(%r15), %rdi
	movq	_vlog.len(%rip), %rax
LBB0_5:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	leaq	_vlog.message(%rip), %rsi
	movq	%rax, %rdx
	callq	_strncpy
	movq	_vlog.len(%rip), %rax
	addq	%rax, (%r15)
	xorl	%eax, %eax
	callq	_store_log_markers
	movq	_header@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_pthread_cond_broadcast
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.8:
	movq	_vlog.len(%rip), %rsi
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	_vlog.message(%rip), %rdi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fwrite                         ## TAILCALL
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	leaq	_vlog.message(%rip), %rsi
	xorl	%eax, %eax
	callq	_printf
	movq	%r12, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vprintf                        ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_vlog.message,4096,4 ## @vlog.message
.zerofill __DATA,__bss,_vlog.result,4,2 ## @vlog.result
.zerofill __DATA,__bss,_vlog.t,4,2      ## @vlog.t
.zerofill __DATA,__bss,_vlog.tmp,8,3    ## @vlog.tmp
.zerofill __DATA,__bss,_vlog.len,8,3    ## @vlog.len
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%x %X - "

	.comm	_logbuffer,8,3                  ## @logbuffer
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"BUG: single log message > 4k\n"

	.comm	_logbuffer_size,8,3             ## @logbuffer_size
	.comm	_logwalk,8,3                    ## @logwalk
	.comm	_loglastwrap,8,3                ## @loglastwrap
	.comm	_header,8,3                     ## @header
	.comm	_stdout,4,2                     ## @stdout
	.no_dead_strip	_vlog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlog
_vlog:                                  ; @vlog
	.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	x0, #0
	bl	_time
Lloh0:
	adrp	x8, _vlog.t@PAGE
Lloh1:
	add	x8, x8, _vlog.t@PAGEOFF
	str	w0, [x8]
Lloh2:
	adrp	x1, _vlog.result@PAGE
Lloh3:
	add	x1, x1, _vlog.result@PAGEOFF
	mov	x0, x8
	bl	_localtime_r
	mov	x3, x0
	adrp	x8, _vlog.tmp@PAGE
	str	x0, [x8, _vlog.tmp@PAGEOFF]
Lloh4:
	adrp	x22, _vlog.message@PAGE
Lloh5:
	add	x22, x22, _vlog.message@PAGEOFF
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	w25, #4096
	mov	x0, x22
	mov	w1, #4096
	bl	_strftime
	adrp	x23, _vlog.len@PAGE
	str	x0, [x23, _vlog.len@PAGEOFF]
Lloh8:
	adrp	x24, _logbuffer@GOTPAGE
Lloh9:
	ldr	x24, [x24, _logbuffer@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_7
; %bb.1:
	add	x8, x22, x0
	sub	w1, w25, w0
	mov	x0, x8
	mov	x2, x21
	mov	x3, x20
	bl	_vsnprintf
	ldr	x8, [x23, _vlog.len@PAGEOFF]
	add	x2, x8, x0
	str	x2, [x23, _vlog.len@PAGEOFF]
	cmp	x2, #1, lsl #12                 ; =4096
	b.lo	LBB0_3
; %bb.2:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	mov	w2, #4096
	str	x2, [x23, _vlog.len@PAGEOFF]
	mov	w8, #10
	adrp	x9, _vlog.message@PAGE+4094
	strb	w8, [x9, _vlog.message@PAGEOFF+4094]
LBB0_3:
Lloh15:
	adrp	x8, _logbuffer_size@GOTPAGE
Lloh16:
	ldr	x8, [x8, _logbuffer_size@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x8]
Lloh18:
	adrp	x20, _logwalk@GOTPAGE
Lloh19:
	ldr	x20, [x20, _logwalk@GOTPAGEOFF]
	ldr	x0, [x20]
	ldr	x8, [x24]
	sub	x9, x9, x0
	add	x9, x9, x8
Lloh20:
	adrp	x21, _header@GOTPAGE
Lloh21:
	ldr	x21, [x21, _header@GOTPAGEOFF]
	cmp	x2, x9
	b.lo	LBB0_5
; %bb.4:
Lloh22:
	adrp	x9, _loglastwrap@GOTPAGE
Lloh23:
	ldr	x9, [x9, _loglastwrap@GOTPAGEOFF]
Lloh24:
	str	x0, [x9]
	add	x8, x8, #4
	str	x8, [x20]
	bl	_store_log_markers
	ldr	x8, [x21]
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
	ldr	x0, [x20]
	ldr	x2, [x23, _vlog.len@PAGEOFF]
LBB0_5:
Lloh25:
	adrp	x1, _vlog.message@PAGE
Lloh26:
	add	x1, x1, _vlog.message@PAGEOFF
	bl	_strncpy
	ldr	x8, [x23, _vlog.len@PAGEOFF]
	ldr	x9, [x20]
	add	x8, x9, x8
	str	x8, [x20]
	bl	_store_log_markers
	ldr	x0, [x21]
	bl	_pthread_cond_broadcast
	cbz	w19, LBB0_8
; %bb.6:
	ldr	x1, [x23, _vlog.len@PAGEOFF]
Lloh27:
	adrp	x8, _stdout@GOTPAGE
Lloh28:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh29:
	ldr	w3, [x8]
Lloh30:
	adrp	x0, _vlog.message@PAGE
Lloh31:
	add	x0, x0, _vlog.message@PAGEOFF
	mov	w2, #1
	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
	b	_fwrite
LBB0_7:
Lloh32:
	adrp	x0, l_.str.1@PAGE
Lloh33:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh34:
	adrp	x1, _vlog.message@PAGE
Lloh35:
	add	x1, x1, _vlog.message@PAGEOFF
	bl	_printf
	mov	x0, x21
	mov	x1, x20
	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
	b	_vprintf
LBB0_8:
	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	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_vlog.message,4096,0 ; @vlog.message
.zerofill __DATA,__bss,_vlog.result,4,2 ; @vlog.result
.zerofill __DATA,__bss,_vlog.t,4,2      ; @vlog.t
.zerofill __DATA,__bss,_vlog.tmp,8,3    ; @vlog.tmp
.zerofill __DATA,__bss,_vlog.len,8,3    ; @vlog.len
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%x %X - "

	.comm	_logbuffer,8,3                  ; @logbuffer
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"BUG: single log message > 4k\n"

	.comm	_logbuffer_size,8,3             ; @logbuffer_size
	.comm	_logwalk,8,3                    ; @logwalk
	.comm	_loglastwrap,8,3                ; @loglastwrap
	.comm	_header,8,3                     ; @header
	.comm	_stdout,4,2                     ; @stdout
	.no_dead_strip	_vlog
.subsections_via_symbols
