	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function first_day
_first_day:                             ## @first_day
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$4, %ebx
	cmpl	$1971, %edi                     ## imm = 0x7B3
	jl	LBB0_3
## %bb.1:
	movl	%edi, %r14d
	movl	$4, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_is_leap_year
	cmpq	$1, %rax
	sbbl	$0, %ebx
	movl	%ebx, %eax
	addl	$366, %eax                      ## imm = 0x16E
	cltq
	imulq	$-1840700269, %rax, %rax        ## imm = 0x92492493
	shrq	$32, %rax
	addl	%ebx, %eax
	addl	$366, %eax                      ## imm = 0x16E
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$2, %eax
	addl	%ecx, %eax
	leal	(,%rax,8), %ecx
	subl	%ecx, %eax
	addl	%eax, %ebx
	addl	$366, %ebx                      ## imm = 0x16E
	leal	-1(%r14), %eax
	cmpl	$1971, %r14d                    ## imm = 0x7B3
	movl	%eax, %r14d
	ja	LBB0_2
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_first_day
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function first_day
_first_day:                             ; @first_day
	.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
	cmp	w0, #1971
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x0
	mov	w20, #4
	mov	w21, #365
	mov	w22, #9363
	movk	w22, #37449, lsl #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_is_leap_year
	cmp	x0, #0
	cinc	w8, w21, ne
	add	w8, w8, w20
	smull	x9, w8, w22
	lsr	x9, x9, #32
	add	w9, w9, w8
	asr	w10, w9, #2
	add	w9, w10, w9, lsr #31
	sub	w9, w9, w9, lsl #3
	add	w20, w8, w9
	sub	w8, w19, #1
	cmp	w19, #1971
	mov	x19, x8
	b.hi	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w20, #4
LBB0_4:
	mov	x0, 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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_first_day
.subsections_via_symbols
