	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_basedate_eval_string           ## -- Begin function basedate_eval_string
	.p2align	4, 0x90
_basedate_eval_string:                  ## @basedate_eval_string
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_strlen
	movq	%rax, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdx
	leaq	-28(%rbp), %rcx
	leaq	-24(%rbp), %r8
	leaq	-20(%rbp), %r9
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$3, %eax
	jne	LBB0_6
## %bb.1:
	movslq	-20(%rbp), %rax
	cmpq	%rax, %r14
	jne	LBB0_6
## %bb.2:
	movl	-28(%rbp), %esi
	decl	%esi
	cmpl	$11, %esi
	ja	LBB0_9
## %bb.3:
	movl	-24(%rbp), %edx
	testl	%edx, %edx
	jle	LBB0_9
## %bb.4:
	cmpl	$31, %edx
	jg	LBB0_9
## %bb.5:
	movl	-32(%rbp), %edi
	decl	%edi
	callq	_ntpcal_edate_to_eradays
	movq	_DAY_NTP_STARTS@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	leaq	-40(%rbp), %rdx
	leaq	-20(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.7:
	movslq	-20(%rbp), %rax
	cmpq	%rax, %r14
	jne	LBB0_9
## %bb.8:
	movq	-40(%rbp), %rax
	movq	_INT32_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_10
LBB0_9:
	movq	_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	callq	_msyslog
	xorl	%eax, %eax
	callq	_basedate_eval_buildstamp
LBB0_10:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%4hu-%2hu-%2hu%n"

	.comm	_DAY_NTP_STARTS,8,3             ## @DAY_NTP_STARTS
L_.str.1:                               ## @.str.1
	.asciz	"%lu%n"

	.comm	_INT32_MAX,8,3                  ## @INT32_MAX
	.comm	_LOG_WARNING,4,2                ## @LOG_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"basedate string \"%s\" invalid, build date substituted!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_basedate_eval_string           ; -- Begin function basedate_eval_string
	.p2align	2
_basedate_eval_string:                  ; @basedate_eval_string
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	bl	_strlen
	mov	x20, x0
	add	x21, sp, #36
	sub	x8, x29, #44
	stp	x8, x21, [sp, #16]
	sub	x8, x29, #40
	sub	x9, x29, #36
	stp	x9, x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sscanf
	ldrsw	x8, [sp, #36]
	cmp	w0, #3
	ccmp	x20, x8, #0, eq
	b.eq	LBB0_4
; %bb.1:
	add	x8, sp, #40
	stp	x8, x21, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.2:
	ldrsw	x8, [sp, #36]
	cmp	x20, x8
	b.ne	LBB0_5
; %bb.3:
	ldr	x0, [sp, #40]
Lloh4:
	adrp	x8, _INT32_MAX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INT32_MAX@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_5
	b	LBB0_7
LBB0_4:
	ldp	w2, w8, [x29, #-44]
	sub	w1, w8, #1
	cmp	w1, #11
	ccmp	w2, #1, #8, ls
	ccmp	w2, #31, #0, ge
	b.le	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _LOG_WARNING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LOG_WARNING@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_msyslog
	bl	_basedate_eval_buildstamp
	b	LBB0_7
LBB0_6:
	ldur	w8, [x29, #-36]
	sub	w0, w8, #1
	bl	_ntpcal_edate_to_eradays
Lloh12:
	adrp	x8, _DAY_NTP_STARTS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DAY_NTP_STARTS@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	sub	x0, x0, x8
LBB0_7:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%4hu-%2hu-%2hu%n"

	.comm	_DAY_NTP_STARTS,8,3             ; @DAY_NTP_STARTS
l_.str.1:                               ; @.str.1
	.asciz	"%lu%n"

	.comm	_INT32_MAX,8,3                  ; @INT32_MAX
	.comm	_LOG_WARNING,4,2                ; @LOG_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"basedate string \"%s\" invalid, build date substituted!"

.subsections_via_symbols
