	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ConvertMonthDayToDayOfYear     ## -- Begin function ConvertMonthDayToDayOfYear
	.p2align	4, 0x90
_ConvertMonthDayToDayOfYear:            ## @ConvertMonthDayToDayOfYear
	.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, %r14d
	movl	%esi, %r15d
	movl	%edi, %r12d
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	testb	$3, %r12b
	jne	LBB0_4
## %bb.1:
	imull	$-1030792151, %r12d, %eax       ## imm = 0xC28F5C29
	addl	$85899344, %eax                 ## imm = 0x51EB850
	movl	%eax, %ecx
	rorl	$2, %ecx
	cmpl	$42949672, %ecx                 ## imm = 0x28F5C28
	ja	LBB0_3
## %bb.2:
	rorl	$4, %eax
	cmpl	$10737419, %eax                 ## imm = 0xA3D70B
	jae	LBB0_4
LBB0_3:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_4:
	movq	_Debug@GOTPCREL(%rip), %r9
	cmpq	$0, (%r9)
	je	LBB0_6
## %bb.5:
	leal	2000(%r12), %esi
	testl	%r13d, %r13d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	movq	%r9, %rbx
	callq	_printf
	movq	%rbx, %r9
LBB0_6:
	movl	%r14d, %edx
	cmpl	$2, %r15d
	jl	LBB0_19
## %bb.7:
	movl	%r15d, %eax
	leaq	-1(%rax), %r8
	movl	$1, %ecx
	movl	%r14d, %edx
	cmpq	$8, %r8
	jb	LBB0_17
## %bb.8:
	movq	%r8, %rcx
	andq	$-8, %rcx
	movd	%r14d, %xmm0
	leaq	-8(%rcx), %rdi
	movq	%rdi, %rsi
	shrq	$3, %rsi
	incq	%rsi
	movl	%esi, %edx
	andl	$3, %edx
	cmpq	$24, %rdi
	jae	LBB0_10
## %bb.9:
	pxor	%xmm1, %xmm1
	xorl	%edi, %edi
	jmp	LBB0_12
LBB0_10:
	andq	$-4, %rsi
	pxor	%xmm1, %xmm1
	xorl	%edi, %edi
	leaq	l___const.ConvertMonthDayToDayOfYear.DaysInMonth(%rip), %rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	paddd	(%rbx,%rdi,4), %xmm0
	paddd	16(%rbx,%rdi,4), %xmm1
	paddd	32(%rbx,%rdi,4), %xmm0
	paddd	48(%rbx,%rdi,4), %xmm1
	paddd	64(%rbx,%rdi,4), %xmm0
	paddd	80(%rbx,%rdi,4), %xmm1
	paddd	96(%rbx,%rdi,4), %xmm0
	paddd	112(%rbx,%rdi,4), %xmm1
	addq	$32, %rdi
	addq	$-4, %rsi
	jne	LBB0_11
LBB0_12:
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.13:
	leaq	l___const.ConvertMonthDayToDayOfYear.DaysInMonth(%rip), %rsi
	leaq	(%rsi,%rdi,4), %rsi
	addq	$16, %rsi
	shlq	$5, %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	paddd	-16(%rsi,%rdi), %xmm0
	paddd	(%rsi,%rdi), %xmm1
	addq	$32, %rdi
	cmpq	%rdi, %rdx
	jne	LBB0_14
LBB0_15:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpq	%rcx, %r8
	je	LBB0_19
## %bb.16:
	orq	$1, %rcx
LBB0_17:
	leaq	l___const.ConvertMonthDayToDayOfYear.DaysInMonth(%rip), %rsi
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	addl	-4(%rsi,%rcx,4), %edx
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_18
LBB0_19:
	testl	%r13d, %r13d
	setne	%al
	cmpl	$3, %r15d
	setge	%cl
	andb	%al, %cl
	movzbl	%cl, %ebx
	addl	%edx, %ebx
	cmpq	$0, (%r9)
	je	LBB0_21
## %bb.20:
	addl	$2000, %r12d                    ## imm = 0x7D0
	leaq	L_.str.3(%rip), %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_printf
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @__const.ConvertMonthDayToDayOfYear.DaysInMonth
l___const.ConvertMonthDayToDayOfYear.DaysInMonth:
	.long	31                              ## 0x1f
	.long	28                              ## 0x1c
	.long	31                              ## 0x1f
	.long	30                              ## 0x1e
	.long	31                              ## 0x1f
	.long	30                              ## 0x1e
	.long	31                              ## 0x1f
	.long	31                              ## 0x1f
	.long	30                              ## 0x1e
	.long	31                              ## 0x1f
	.long	30                              ## 0x1e
	.long	31                              ## 0x1f

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_Debug,8,3                      ## @Debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nConvertMonthDayToDayOfYear(): Year %d %s a leap year.\n"

L_.str.1:                               ## @.str.1
	.asciz	"is"

L_.str.2:                               ## @.str.2
	.asciz	"is not"

L_.str.3:                               ## @.str.3
	.asciz	"\nConvertMonthDayToDayOfYear(): %4.4d-%2.2d-%2.2d represents day %3d of year.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ConvertMonthDayToDayOfYear     ; -- Begin function ConvertMonthDayToDayOfYear
	.p2align	2
_ConvertMonthDayToDayOfYear:            ; @ConvertMonthDayToDayOfYear
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	tst	w0, #0x3
	b.ne	LBB0_4
; %bb.1:
	mov	w8, #23593
	movk	w8, #49807, lsl #16
	mov	w9, #47184
	movk	w9, #1310, lsl #16
	madd	w8, w21, w8, w9
	ror	w9, w8, #2
	mov	w10, #23592
	movk	w10, #655, lsl #16
	cmp	w9, w10
	b.ls	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x9, _TRUE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ror	w8, w8, #4
	mov	w10, #55051
	movk	w10, #163, lsl #16
	cmp	w8, w10
	csel	w22, w9, w22, lo
LBB0_4:
Lloh9:
	adrp	x23, _Debug@GOTPAGE
Lloh10:
	ldr	x23, [x23, _Debug@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_6
; %bb.5:
	add	w1, w21, #2000
Lloh11:
	adrp	x8, l_.str.1@PAGE
Lloh12:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh13:
	adrp	x9, l_.str.2@PAGE
Lloh14:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w22, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
LBB0_6:
	mov	x12, x20
	cmp	w19, #2
	b.lt	LBB0_14
; %bb.7:
	mov	w8, w19
	sub	x10, x8, #1
	cmp	x10, #16
	b.hs	LBB0_9
; %bb.8:
	mov	w9, #1
	mov	x12, x20
	b	LBB0_12
LBB0_9:
	and	x11, x10, #0xfffffffffffffff0
	orr	x9, x11, #0x1
	movi.2d	v0, #0000000000000000
	mov.s	v0[0], w20
	movi.2d	v1, #0000000000000000
Lloh17:
	adrp	x12, l___const.ConvertMonthDayToDayOfYear.DaysInMonth@PAGE+32
Lloh18:
	add	x12, x12, l___const.ConvertMonthDayToDayOfYear.DaysInMonth@PAGEOFF+32
	mov	x13, x11
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x12, #-32]
	ldp	q6, q7, [x12], #64
	add.4s	v0, v4, v0
	add.4s	v1, v5, v1
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	subs	x13, x13, #16
	b.ne	LBB0_10
; %bb.11:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w12, s0
	cmp	x10, x11
	b.eq	LBB0_14
LBB0_12:
Lloh19:
	adrp	x10, l___const.ConvertMonthDayToDayOfYear.DaysInMonth@PAGE
Lloh20:
	add	x10, x10, l___const.ConvertMonthDayToDayOfYear.DaysInMonth@PAGEOFF
	add	x10, x10, x9, lsl #2
	sub	x10, x10, #4
	sub	x8, x8, x9
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x10], #4
	add	w12, w9, w12
	subs	x8, x8, #1
	b.ne	LBB0_13
LBB0_14:
	cmp	w19, #2
	ccmp	w22, #0, #4, gt
	cinc	w22, w12, ne
	ldr	x8, [x23]
	cbz	x8, LBB0_16
; %bb.15:
	add	w1, w21, #2000
	stp	x20, x22, [sp, #8]
	str	x19, [sp]
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
LBB0_16:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.ConvertMonthDayToDayOfYear.DaysInMonth
l___const.ConvertMonthDayToDayOfYear.DaysInMonth:
	.long	31                              ; 0x1f
	.long	28                              ; 0x1c
	.long	31                              ; 0x1f
	.long	30                              ; 0x1e
	.long	31                              ; 0x1f
	.long	30                              ; 0x1e
	.long	31                              ; 0x1f
	.long	31                              ; 0x1f
	.long	30                              ; 0x1e
	.long	31                              ; 0x1f
	.long	30                              ; 0x1e
	.long	31                              ; 0x1f

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_Debug,8,3                      ; @Debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nConvertMonthDayToDayOfYear(): Year %d %s a leap year.\n"

l_.str.1:                               ; @.str.1
	.asciz	"is"

l_.str.2:                               ; @.str.2
	.asciz	"is not"

l_.str.3:                               ; @.str.3
	.asciz	"\nConvertMonthDayToDayOfYear(): %4.4d-%2.2d-%2.2d represents day %3d of year.\n"

.subsections_via_symbols
