	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_weekday                        ## -- Begin function weekday
	.p2align	4, 0x90
_weekday:                               ## @weekday
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movl	l___const.weekday.dmondaygi+8(%rip), %eax
	movl	%eax, -16(%rbp)
	movq	l___const.weekday.dmondaygi(%rip), %rax
	movq	%rax, -24(%rbp)
	movl	_weekday.nmonday(%rip), %eax
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	leaq	-24(%rbp), %rdi
	callq	_ndaysgi
	movl	%eax, _weekday.nmonday(%rip)
LBB0_2:
	subl	%eax, %ebx
	movslq	%ebx, %rcx
	imulq	$-1840700269, %rcx, %rdx        ## imm = 0x92492493
	shrq	$32, %rdx
	addl	%ecx, %edx
	movl	%edx, %eax
	shrl	$31, %eax
	sarl	$2, %edx
	addl	%eax, %edx
	leal	(,%rdx,8), %eax
	subl	%eax, %edx
	leal	(%rcx,%rdx), %eax
	addl	$7, %eax
                                        ## kill: def $ecx killed $ecx killed $rcx
	addl	%edx, %ecx
	cmovnsl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @__const.weekday.dmondaygi
l___const.weekday.dmondaygi:
	.long	1997                            ## 0x7cd
	.long	8                               ## 0x8
	.long	16                              ## 0x10

.zerofill __DATA,__bss,_weekday.nmonday,4,2 ## @weekday.nmonday
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_weekday                        ; -- Begin function weekday
	.p2align	2
_weekday:                               ; @weekday
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, l___const.weekday.dmondaygi@PAGE
Lloh1:
	add	x8, x8, l___const.weekday.dmondaygi@PAGEOFF
	ldr	x9, [x8]
	str	x9, [sp]
	ldr	w8, [x8, #8]
	str	w8, [sp, #8]
	adrp	x20, _weekday.nmonday@PAGE
	ldr	w0, [x20, _weekday.nmonday@PAGEOFF]
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, sp
	bl	_ndaysgi
	str	w0, [x20, _weekday.nmonday@PAGEOFF]
LBB0_2:
	mov	w8, #9363
	movk	w8, #37449, lsl #16
	sub	w9, w19, w0
	smull	x8, w9, w8
	lsr	x8, x8, #32
	add	w8, w8, w9
	asr	w10, w8, #2
	add	w8, w10, w8, lsr #31
	sub	w8, w8, w8, lsl #3
	add	w8, w9, w8
	add	w9, w8, #7
	cmp	w8, #0
	csel	w0, w9, w8, lt
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @__const.weekday.dmondaygi
l___const.weekday.dmondaygi:
	.long	1997                            ; 0x7cd
	.long	8                               ; 0x8
	.long	16                              ; 0x10

.zerofill __DATA,__bss,_weekday.nmonday,4,2 ; @weekday.nmonday
.subsections_via_symbols
