	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EncodeDateOnly                 ## -- Begin function EncodeDateOnly
	.p2align	4, 0x90
_EncodeDateOnly:                        ## @EncodeDateOnly
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %eax
	testl	%eax, %eax
	setg	%cl
	movq	_MONTHS_PER_YEAR@GOTPCREL(%rip), %rdi
	cmpl	(%rdi), %eax
	movq	%rdx, %r15
	movl	%esi, %ebx
	setle	%al
	andb	%cl, %al
	movzbl	%al, %edi
	callq	_Assert
	addl	$-128, %ebx
	cmpl	$4, %ebx
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	8(%r14), %rax
	movl	$1, %esi
	subl	%eax, %esi
	testq	%rax, %rax
	cmovgl	%eax, %esi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_pg_ltostr_zeropad
	movb	$45, (%rax)
	leaq	1(%rax), %rdi
	movl	(%r14), %esi
	movl	$2, %edx
	callq	_pg_ltostr_zeropad
	movb	$45, (%rax)
	leaq	1(%rax), %rdi
	movl	16(%r14), %esi
	movl	$2, %edx
	jmp	LBB0_13
LBB0_3:
	movq	_DateOrder@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_DATEORDER_DMY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:
	movl	16(%r14), %esi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_pg_ltostr_zeropad
	movb	$47, (%rax)
	movq	%r14, %rcx
	jmp	LBB0_6
LBB0_8:
	movq	_DateOrder@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_DATEORDER_DMY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	movl	16(%r14), %esi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_pg_ltostr_zeropad
	movb	$45, (%rax)
	movq	%r14, %rcx
	jmp	LBB0_11
LBB0_7:
	movl	16(%r14), %esi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_pg_ltostr_zeropad
	movb	$46, (%rax)
	leaq	1(%rax), %rdi
	movl	(%r14), %esi
	movl	$2, %edx
	callq	_pg_ltostr_zeropad
	movb	$46, (%rax)
	jmp	LBB0_12
LBB0_5:
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_pg_ltostr_zeropad
	movb	$47, (%rax)
	leaq	16(%r14), %rcx
LBB0_6:
	incq	%rax
	movl	(%rcx), %esi
	movq	%rax, %rdi
	movl	$2, %edx
	callq	_pg_ltostr_zeropad
	movb	$47, (%rax)
	jmp	LBB0_12
LBB0_10:
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_pg_ltostr_zeropad
	movb	$45, (%rax)
	leaq	16(%r14), %rcx
LBB0_11:
	incq	%rax
	movl	(%rcx), %esi
	movq	%rax, %rdi
	movl	$2, %edx
	callq	_pg_ltostr_zeropad
	movb	$45, (%rax)
LBB0_12:
	leaq	1(%rax), %rdi
	movq	8(%r14), %rax
	movl	$1, %esi
	subl	%eax, %esi
	testq	%rax, %rax
	cmovgl	%eax, %esi
	movl	$4, %edx
LBB0_13:
	callq	_pg_ltostr_zeropad
	movq	%rax, %rbx
	cmpq	$0, 8(%r14)
	jg	LBB0_15
## %bb.14:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_memcpy
	addq	$3, %rbx
LBB0_15:
	movb	$0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_8
	.long	L0_0_set_2
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_MONTHS_PER_YEAR,4,2            ## @MONTHS_PER_YEAR
	.comm	_DateOrder,4,2                  ## @DateOrder
	.comm	_DATEORDER_DMY,4,2              ## @DATEORDER_DMY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" BC"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EncodeDateOnly                 ; -- Begin function EncodeDateOnly
	.p2align	2
_EncodeDateOnly:                        ; @EncodeDateOnly
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #0
Lloh0:
	adrp	x9, _MONTHS_PER_YEAR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MONTHS_PER_YEAR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ccmp	w8, w9, #0, gt
	cset	w0, le
	bl	_Assert
	sub	w8, w21, #128
	cmp	w8, #4
	b.hi	LBB0_5
; %bb.1:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	x8, [x19, #8]
	mov	w9, #1
	sub	w9, w9, w8
	cmp	x8, #0
	csel	w1, w8, w9, gt
	mov	x0, x20
	mov	w2, #4
	bl	_pg_ltostr_zeropad
	mov	w20, #45
	strb	w20, [x0], #1
	ldr	w1, [x19]
	mov	w2, #2
	bl	_pg_ltostr_zeropad
	strb	w20, [x0], #1
	ldr	w1, [x19, #16]
	mov	w2, #2
	b	LBB0_14
LBB0_3:
Lloh5:
	adrp	x8, _DateOrder@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DateOrder@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _DATEORDER_DMY@GOTPAGE
Lloh9:
	ldr	x9, [x9, _DATEORDER_DMY@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.4:
	ldr	w1, [x19, #16]
	mov	x0, x20
	mov	w2, #2
	bl	_pg_ltostr_zeropad
	mov	w8, #47
	strb	w8, [x0]
	mov	x21, x19
	b	LBB0_9
LBB0_5:
Lloh11:
	adrp	x8, _DateOrder@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DateOrder@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _DATEORDER_DMY@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DATEORDER_DMY@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.6:
	ldr	w1, [x19, #16]
	mov	x0, x20
	mov	w2, #2
	bl	_pg_ltostr_zeropad
	mov	w8, #45
	strb	w8, [x0]
	mov	x21, x19
	b	LBB0_11
LBB0_7:
	ldr	w1, [x19, #16]
	mov	x0, x20
	mov	w2, #2
	bl	_pg_ltostr_zeropad
	mov	w20, #46
	strb	w20, [x0], #1
	ldr	w1, [x19]
	mov	w2, #2
	bl	_pg_ltostr_zeropad
	strb	w20, [x0], #1
	b	LBB0_13
LBB0_8:
	mov	x21, x19
	ldr	w1, [x21], #16
	mov	x0, x20
	mov	w2, #2
	bl	_pg_ltostr_zeropad
	mov	w8, #47
	strb	w8, [x0]
LBB0_9:
	add	x0, x0, #1
	ldr	w1, [x21]
	mov	w2, #2
	bl	_pg_ltostr_zeropad
	mov	w8, #47
	b	LBB0_12
LBB0_10:
	mov	x21, x19
	ldr	w1, [x21], #16
	mov	x0, x20
	mov	w2, #2
	bl	_pg_ltostr_zeropad
	mov	w8, #45
	strb	w8, [x0]
LBB0_11:
	add	x0, x0, #1
	ldr	w1, [x21]
	mov	w2, #2
	bl	_pg_ltostr_zeropad
	mov	w8, #45
LBB0_12:
	strb	w8, [x0], #1
LBB0_13:
	ldr	x8, [x19, #8]
	mov	w9, #1
	sub	w9, w9, w8
	cmp	x8, #0
	csel	w1, w8, w9, gt
	mov	w2, #4
LBB0_14:
	bl	_pg_ltostr_zeropad
	mov	x20, x0
	ldr	x8, [x19, #8]
	cmp	x8, #0
	b.gt	LBB0_16
; %bb.15:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #3
	bl	_memcpy
	add	x20, x20, #3
LBB0_16:
	strb	wzr, [x20]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_MONTHS_PER_YEAR,4,2            ; @MONTHS_PER_YEAR
	.comm	_DateOrder,4,2                  ; @DateOrder
	.comm	_DATEORDER_DMY,4,2              ; @DATEORDER_DMY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" BC"

.subsections_via_symbols
