	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function timelib_day_of_week_ex
_timelib_day_of_week_ex:                ## @timelib_day_of_week_ex
	.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	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r15d
	movl	%esi, %r12d
	movslq	%edi, %r14
	imulq	$1374389535, %r14, %rdi         ## imm = 0x51EB851F
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$37, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_century_value
	movl	%eax, %ebx
	movl	%r14d, %edi
	movl	$100, %esi
	callq	_positive_mod
	movl	%eax, %r13d
	movl	%r14d, %edi
	callq	_timelib_is_leap
	movslq	%r12d, %rcx
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	_m_table_common@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_m_table_leap@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rax
	leal	3(%r13), %edx
	testl	%r13d, %r13d
	cmovnsl	%r13d, %edx
	sarl	$2, %edx
	addl	%r15d, %ebx
	addl	%r13d, %ebx
	addl	%edx, %ebx
	addl	(%rax,%rcx,4), %ebx
	movl	$7, %r14d
	movl	%ebx, %edi
	movl	$7, %esi
	callq	_positive_mod
	testl	%eax, %eax
	cmovnel	%eax, %r14d
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	cmovnel	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_m_table_leap,8,3               ## @m_table_leap
	.comm	_m_table_common,8,3             ## @m_table_common
	.no_dead_strip	_timelib_day_of_week_ex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function timelib_day_of_week_ex
_timelib_day_of_week_ex:                ; @timelib_day_of_week_ex
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w0, w8, w9
	bl	_century_value
	mov	x23, x0
	mov	x0, x22
	mov	w1, #100
	bl	_positive_mod
	mov	x24, x0
	mov	x0, x22
	bl	_timelib_is_leap
Lloh0:
	adrp	x8, _m_table_leap@GOTPAGE
Lloh1:
	ldr	x8, [x8, _m_table_leap@GOTPAGEOFF]
Lloh2:
	adrp	x9, _m_table_common@GOTPAGE
Lloh3:
	ldr	x9, [x9, _m_table_common@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	x8, [x8]
	ldr	w8, [x8, w21, sxtw #2]
	add	w9, w24, #3
	cmp	w24, #0
	csel	w9, w9, w24, lt
	add	w10, w23, w20
	add	w10, w10, w24
	add	w9, w10, w9, asr #2
	add	w0, w9, w8
	mov	w20, #7
	mov	w1, #7
	bl	_positive_mod
	cmp	w0, #0
	csel	w8, w20, w0, eq
	cmp	w19, #0
	csel	w0, w0, w8, eq
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_m_table_leap,8,3               ; @m_table_leap
	.comm	_m_table_common,8,3             ; @m_table_common
	.no_dead_strip	_timelib_day_of_week_ex
.subsections_via_symbols
