	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function set_tm_wday
LCPI0_0:
	.quad	0x4004cccccccccccd              ## double 2.6000000000000001
LCPI0_1:
	.quad	0xbfc999999999999a              ## double -0.20000000000000001
LCPI0_2:
	.quad	0x3fd0000000000000              ## double 0.25
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_set_tm_wday:                           ## @set_tm_wday
	.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
	movq	%rdi, %r15
	movl	(%rdi), %eax
	movl	4(%rdi), %ecx
	movl	%eax, %edx
	addl	$1900, %edx                     ## imm = 0x76C
	movslq	%edx, %rdx
	imulq	$1374389535, %rdx, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rdx
	shrq	$63, %rdx
	shrq	$32, %rbx
	sarl	$5, %ebx
	addl	%edx, %ebx
	imull	$100, %ebx, %edx
	negl	%edx
	leal	(%rax,%rdx), %r13d
	addl	$1900, %r13d                    ## imm = 0x76C
	leal	-1(%rcx), %eax
	leal	11(%rcx), %edx
	xorl	%esi, %esi
	cmpl	$2, %ecx
	setl	%sil
	cmovgel	%eax, %edx
	subl	%esi, %r13d
	movl	8(%rdi), %r14d
	cvtsi2sd	%edx, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	addsd	LCPI0_1(%rip), %xmm0
	cvttsd2si	%xmm0, %edi
	callq	_floor
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r13d, %xmm0
	mulsd	LCPI0_2(%rip), %xmm0
	cvttsd2si	%xmm0, %edi
	callq	_floor
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ebx, %xmm0
	movq	%rax, %r12
	mulsd	LCPI0_2(%rip), %xmm0
	cvttsd2si	%xmm0, %edi
	callq	_floor
	addl	%ebx, %ebx
	subl	%ebx, %r14d
	addl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	addl	%r13d, %r14d
	addl	%r12d, %r14d
	addl	%eax, %r14d
	movslq	%r14d, %rax
	imulq	$-1840700269, %rax, %rcx        ## imm = 0x92492493
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$2, %ecx
	addl	%edx, %ecx
	leal	(,%rcx,8), %edx
	subl	%edx, %ecx
	leal	(%rcx,%rax), %edx
	addl	$7, %edx
                                        ## kill: def $eax killed $eax killed $rax
	addl	%ecx, %eax
	cmovnsl	%eax, %edx
	movl	%edx, 12(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_set_tm_wday
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_tm_wday
_set_tm_wday:                           ; @set_tm_wday
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	mov	x19, x0
	ldp	w8, w9, [x0]
	add	w8, w8, #1900
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	smull	x10, w8, w10
	lsr	x11, x10, #32
	lsr	x10, x10, #63
	add	w22, w10, w11, asr #5
	mov	w10, #100
	msub	w8, w22, w10, w8
	cmp	w9, #2
	cset	w10, lt
	mov	w11, #11
	csinv	w11, w11, wzr, lt
	sub	w23, w8, w10
	add	w8, w11, w9
	ldr	w24, [x0, #8]
	scvtf	d0, w8
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #49097, lsl #48
	fmov	d1, x8
	mov	x8, #-3689348814741910324
	movk	x8, #52429
	movk	x8, #16388, lsl #48
	fmov	d2, x8
	fmadd	d0, d0, d2, d1
	fcvtzs	w0, d0
	bl	_floor
	mov	x20, x0
	scvtf	d0, w23
	fmov	d8, #0.25000000
	fmul	d0, d0, d8
	fcvtzs	w0, d0
	bl	_floor
	mov	x21, x0
	scvtf	d0, w22
	fmul	d0, d0, d8
	fcvtzs	w0, d0
	bl	_floor
	sub	w8, w24, w22, lsl #1
	add	w8, w8, w20
	add	w8, w8, w23
	add	w8, w8, w21
	add	w8, w8, w0
	mov	w9, #9363
	movk	w9, #37449, lsl #16
	smull	x9, w8, w9
	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	w8, w8, w9
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	str	w8, [x19, #12]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_set_tm_wday
.subsections_via_symbols
