	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function first_wday_of
_first_wday_of:                         ## @first_wday_of
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	%edi, %rdi
	imulq	$1374389535, %rdi, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$37, %rbx
	leal	(%rbx,%rax), %ecx
	addl	$3, %ecx
	addl	%eax, %ebx
	cmovnsl	%ebx, %ecx
	andl	$2147483644, %ecx               ## imm = 0x7FFFFFFC
	imull	$100, %ebx, %eax
	subl	%ecx, %ebx
	movl	%edi, %r14d
	subl	%eax, %r14d
	movl	%r14d, %eax
	sarb	$7, %al
	shrb	$6, %al
	addb	%r14b, %al
	sarb	$2, %al
	movsbl	%al, %r15d
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_isleap
	addl	%ebx, %ebx
	subl	%ebx, %r14d
	leal	(%r14,%r15), %ecx
	testq	%rax, %rax
	leal	6(%r14,%r15), %eax
	cmovel	%ecx, %eax
	leal	7(%rax), %ecx
	movswl	%cx, %ecx
	imull	$18725, %ecx, %ecx              ## imm = 0x4925
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$17, %ecx
	addl	%edx, %ecx
	leal	(,%rcx,8), %edx
	subl	%edx, %ecx
	addl	%ecx, %eax
	addl	$7, %eax
	cwtl
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_first_wday_of
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function first_wday_of
_first_wday_of:                         ; @first_wday_of
	.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
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	negs	w9, w8
	and	w10, w8, #0x3
	and	w9, w9, #0x3
	csneg	w19, w10, w9, mi
	mov	w9, #100
	msub	w20, w8, w9, w0
	sxtb	w8, w20
	ubfx	w8, w8, #13, #2
	add	w8, w20, w8
	sxtb	w21, w8
	bl	_isleap
	cmp	x0, #0
	mov	w8, #6
	csel	w8, wzr, w8, eq
	sub	w9, w20, w19, lsl #1
	add	w9, w9, w21, asr #2
	add	w8, w9, w8
	add	w8, w8, #7
	sxth	w9, w8
	mov	w10, #18725
	mul	w9, w9, w10
	asr	w10, w9, #17
	add	w9, w10, w9, lsr #31
	sub	w9, w9, w9, lsl #3
	add	w8, w8, w9
	sxth	w0, w8
	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_wday_of
.subsections_via_symbols
