	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function common_prettydate
_common_prettydate:                     ## @common_prettydate
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_LIB_GETBUF
	movq	(%rbx), %rdi
	movq	8(%rbx), %rax
	movq	%rdi, %rcx
	orq	%rax, %rcx
	jne	LBB0_2
## %bb.1:
	movq	_LIB_BUFLENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_strlcpy
	jmp	LBB0_6
LBB0_2:
	movabsq	$4503599937749013391, %rcx      ## imm = 0x3E8000484400538F
	imulq	%rcx
	movq	%rdx, %rax
	shrq	$63, %rax
	shrq	$20, %rdx
	leal	(%rdx,%rax), %ecx
	cmpl	$1000, %ecx                     ## imm = 0x3E8
	leal	-1000(%rdx,%rax), %r15d
	cmovbl	%ecx, %r15d
	sbbq	$-1, %rdi
	xorl	%esi, %esi
	callq	_ntpcal_ntp_to_time
	movl	%eax, -28(%rbp)
	leaq	-28(%rbp), %rdi
	movl	%r14d, %esi
	callq	_get_struct_tm
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	_LIB_BUFLENGTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rbx), %ecx
	movl	8(%rbx), %r8d
	movq	_daynames@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rax), %rdi
	movq	8(%rax), %rbx
	movl	(%rdx,%rdi,4), %r9d
	movq	_months@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rbx,4), %r10d
	movl	$1900, %ebx                     ## imm = 0x76C
	addq	32(%rax), %rbx
	movl	40(%rax), %r11d
	movl	24(%rax), %r14d
	movl	20(%rax), %edi
	movl	16(%rax), %eax
	subq	$8, %rsp
	leaq	_common_prettydate.pfmt0(%rip), %rdx
	pushq	%r15
	pushq	%rax
	pushq	%rdi
	pushq	%r14
	pushq	%rbx
	jmp	LBB0_5
LBB0_3:
	leaq	-72(%rbp), %rdi
	leaq	-28(%rbp), %rsi
	callq	_ntpcal_time_to_date
	movq	_LIB_BUFLENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%r14d, %r14d
	leaq	_common_prettydate.pfmt0(%rip), %rax
	leaq	_common_prettydate.pfmt1(%rip), %rdx
	cmoveq	%rax, %rdx
	movl	(%rbx), %ecx
	movl	8(%rbx), %r8d
	movq	_daynames@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-72(%rbp), %rdi
	movl	(%rax,%rdi,4), %r9d
	movq	_months@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	-64(%rbp), %rdi
	movl	-4(%rax,%rdi,4), %r10d
	movl	-40(%rbp), %r11d
	movl	-52(%rbp), %ebx
	movl	-56(%rbp), %eax
	movl	-60(%rbp), %edi
	subq	$8, %rsp
	pushq	%r15
	pushq	%rdi
	pushq	%rax
	pushq	%rbx
	pushq	-48(%rbp)
LBB0_5:
	pushq	%r11
	pushq	%r10
	callq	_snprintf
	addq	$64, %rsp
LBB0_6:
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @common_prettydate.pfmt0
_common_prettydate.pfmt0:
	.asciz	"%08lx.%08lx  %s, %s %2d %4d %2d:%02d:%02d.%03u"

	.p2align	4                               ## @common_prettydate.pfmt1
_common_prettydate.pfmt1:
	.asciz	"%08lx.%08lx [%s, %s %2d %4d %2d:%02d:%02d.%03u UTC]"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(no time)"

	.comm	_LIB_BUFLENGTH,4,2              ## @LIB_BUFLENGTH
	.comm	_daynames,8,3                   ## @daynames
	.comm	_months,8,3                     ## @months
	.no_dead_strip	_common_prettydate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function common_prettydate
_common_prettydate:                     ; @common_prettydate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x1
	mov	x19, x0
	bl	_LIB_GETBUF
	ldp	x8, x9, [x19]
	orr	x10, x8, x9
	cbnz	x10, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _LIB_BUFLENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIB_BUFLENGTH@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strlcpy
	b	LBB0_6
LBB0_2:
	mov	x10, #21391
	movk	x10, #17408, lsl #16
	movk	x10, #72, lsl #32
	movk	x10, #16000, lsl #48
	smulh	x9, x9, x10
	lsr	x10, x9, #63
	lsr	x9, x9, #20
	add	w9, w9, w10
	sub	w10, w9, #1000
	cmp	w9, #999
	csel	w21, w10, w9, hi
	cinc	x0, x8, hi
	mov	x1, #0
	bl	_ntpcal_ntp_to_time
	stur	w0, [x29, #-36]
	sub	x0, x29, #36
	mov	x1, x20
	bl	_get_struct_tm
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _LIB_BUFLENGTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LIB_BUFLENGTH@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _daynames@GOTPAGE
Lloh9:
	ldr	x8, [x8, _daynames@GOTPAGEOFF]
	ldr	w3, [x19]
Lloh10:
	ldr	x8, [x8]
	ldp	x9, x10, [x0]
	ldr	w5, [x8, x9, lsl #2]
	ldr	w4, [x19, #8]
Lloh11:
	adrp	x8, _months@GOTPAGE
Lloh12:
	ldr	x8, [x8, _months@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	w6, [x8, x10, lsl #2]
	ldr	w7, [x0, #40]
	ldr	x8, [x0, #32]
	add	x8, x8, #1900
	ldp	w10, w9, [x0, #20]
	ldr	w11, [x0, #16]
	stp	w11, w21, [sp, #16]
	stp	w9, w10, [sp, #8]
Lloh14:
	adrp	x2, _common_prettydate.pfmt0@PAGE
Lloh15:
	add	x2, x2, _common_prettydate.pfmt0@PAGEOFF
	b	LBB0_5
LBB0_4:
	add	x0, sp, #32
	sub	x1, x29, #36
	bl	_ntpcal_time_to_date
Lloh16:
	adrp	x8, _LIB_BUFLENGTH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LIB_BUFLENGTH@GOTPAGEOFF]
Lloh18:
	adrp	x9, _common_prettydate.pfmt1@PAGE
Lloh19:
	add	x9, x9, _common_prettydate.pfmt1@PAGEOFF
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _common_prettydate.pfmt0@PAGE
Lloh22:
	add	x8, x8, _common_prettydate.pfmt0@PAGEOFF
	cmp	w20, #0
	csel	x2, x8, x9, eq
	ldr	w3, [x19]
Lloh23:
	adrp	x8, _daynames@GOTPAGE
Lloh24:
	ldr	x8, [x8, _daynames@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldr	x9, [sp, #32]
	ldr	w5, [x8, x9, lsl #2]
	ldr	w4, [x19, #8]
Lloh26:
	adrp	x8, _months@GOTPAGE
Lloh27:
	ldr	x8, [x8, _months@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	ldp	w9, w10, [sp, #40]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x8, x8, x9, lsl #2
	ldur	w6, [x8, #-4]
	ldr	w7, [sp, #64]
	ldr	x8, [sp, #56]
	ldp	w11, w9, [sp, #48]
	stp	w10, w21, [sp, #16]
	stp	w9, w11, [sp, #8]
LBB0_5:
	str	x8, [sp]
	bl	_snprintf
LBB0_6:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_common_prettydate.pfmt0:               ; @common_prettydate.pfmt0
	.asciz	"%08lx.%08lx  %s, %s %2d %4d %2d:%02d:%02d.%03u"

_common_prettydate.pfmt1:               ; @common_prettydate.pfmt1
	.asciz	"%08lx.%08lx [%s, %s %2d %4d %2d:%02d:%02d.%03u UTC]"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(no time)"

	.comm	_LIB_BUFLENGTH,4,2              ; @LIB_BUFLENGTH
	.comm	_daynames,8,3                   ; @daynames
	.comm	_months,8,3                     ; @months
	.no_dead_strip	_common_prettydate
.subsections_via_symbols
