	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function day_of_week
_day_of_week:                           ## @day_of_week
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edi killed $edi def $rdi
	xorl	%eax, %eax
	cmpl	$3, %esi
	setl	%al
	subl	%eax, %edi
	leal	3(%rdi), %r8d
	testl	%edi, %edi
	cmovnsl	%edi, %r8d
	sarl	$2, %r8d
	movslq	%edi, %rax
	imulq	$-1374389535, %rax, %rdi        ## imm = 0xAE147AE1
	movq	%rdi, %rcx
	shrq	$63, %rcx
	sarq	$37, %rdi
	addl	%ecx, %edi
	imulq	$1374389535, %rax, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %r9
	shrq	$63, %r9
	sarq	$39, %rcx
	addl	%r9d, %ecx
	movslq	%esi, %r9
	leaq	_day_of_week.t(%rip), %rsi
	movl	-4(%rsi,%r9,4), %esi
	addl	%edx, %eax
	addl	%r8d, %eax
	addl	%edi, %eax
	addl	%ecx, %eax
	addl	%esi, %eax
	addl	$6, %eax
	movq	_MAX_DAYS@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @day_of_week.t
_day_of_week.t:
	.long	0                               ## 0x0
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	5                               ## 0x5
	.long	0                               ## 0x0
	.long	3                               ## 0x3
	.long	5                               ## 0x5
	.long	1                               ## 0x1
	.long	4                               ## 0x4
	.long	6                               ## 0x6
	.long	2                               ## 0x2
	.long	4                               ## 0x4

	.comm	_MAX_DAYS,4,2                   ## @MAX_DAYS
	.no_dead_strip	_day_of_week
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function day_of_week
_day_of_week:                           ; @day_of_week
	.cfi_startproc
; %bb.0:
	cmp	w1, #3
	cset	w8, lt
	sub	w8, w0, w8
	add	w9, w2, w8
	add	w10, w8, #3
	cmp	w8, #0
	csel	w10, w10, w8, lt
	mov	w11, #31457
	movk	w11, #44564, lsl #16
	smull	x11, w8, w11
	lsr	x12, x11, #63
	mov	w13, #34079
	movk	w13, #20971, lsl #16
	smull	x8, w8, w13
Lloh0:
	adrp	x13, _day_of_week.t@PAGE
Lloh1:
	add	x13, x13, _day_of_week.t@PAGEOFF
	asr	x11, x11, #37
	add	x13, x13, w1, sxtw #2
	lsr	x14, x8, #63
	asr	x8, x8, #39
	ldur	w13, [x13, #-4]
	add	w9, w9, w10, asr #2
	add	w10, w11, w12
	add	w9, w9, w10
	add	w8, w8, w14
	add	w8, w9, w8
	add	w8, w8, w13
	add	w8, w8, #6
Lloh2:
	adrp	x9, _MAX_DAYS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAX_DAYS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w0, w10, w9, w8
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @day_of_week.t
_day_of_week.t:
	.long	0                               ; 0x0
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	5                               ; 0x5
	.long	0                               ; 0x0
	.long	3                               ; 0x3
	.long	5                               ; 0x5
	.long	1                               ; 0x1
	.long	4                               ; 0x4
	.long	6                               ; 0x6
	.long	2                               ; 0x2
	.long	4                               ; 0x4

	.comm	_MAX_DAYS,4,2                   ; @MAX_DAYS
	.no_dead_strip	_day_of_week
.subsections_via_symbols
