	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_timelib_isoweek_from_date      ## -- Begin function timelib_isoweek_from_date
	.p2align	4, 0x90
_timelib_isoweek_from_date:             ## @timelib_isoweek_from_date
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movl	%edi, %r13d
	callq	_timelib_is_leap
	movl	%eax, %r12d
	leal	-1(%r13), %edi
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	callq	_timelib_is_leap
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_timelib_day_of_year
                                        ## kill: def $eax killed $eax def $rax
	testl	%r12d, %r12d
	setne	%cl
	cmpl	$3, %r14d
	setge	%dl
	andb	%cl, %dl
	movzbl	%dl, %ecx
	leal	(%rcx,%rax), %r15d
	incl	%r15d
	movl	%r13d, %edi
	movl	$1, %esi
	movl	$1, %edx
	callq	_timelib_day_of_week
	movl	%eax, %ebx
	movl	%r13d, %edi
	movl	%r14d, %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_timelib_day_of_week
	testl	%eax, %eax
	movl	$7, %ecx
	cmovel	%ecx, %eax
	testl	%ebx, %ebx
	cmovel	%ecx, %ebx
	cmpl	$5, %ebx
	jl	LBB0_7
## %bb.1:
	movl	$8, %ecx
	subl	%ebx, %ecx
	cmpl	%ecx, %r15d
	jg	LBB0_7
## %bb.2:
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rdx)
	cmpl	$5, %ebx
	je	LBB0_5
## %bb.3:
	cmpl	$6, %ebx
	jne	LBB0_6
## %bb.4:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
LBB0_5:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$53, (%rcx)
	cmpl	%r13d, (%rdx)
	je	LBB0_9
	jmp	LBB0_13
LBB0_7:
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, (%rdx)
	cmpl	%r13d, (%rdx)
	je	LBB0_9
	jmp	LBB0_13
LBB0_6:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$52, (%rcx)
	cmpl	%r13d, (%rdx)
	jne	LBB0_13
LBB0_9:
	cmpl	$1, %r12d
	sbbl	$-1, %r12d
	subl	%r15d, %r12d
	addl	$365, %r12d                     ## imm = 0x16D
	movl	$4, %ecx
	subl	%eax, %ecx
	cmpl	%ecx, %r12d
	jge	LBB0_11
## %bb.10:
	incl	%r13d
	movl	%r13d, (%rdx)
	movl	$1, %eax
	jmp	LBB0_12
LBB0_11:
	xorl	%ecx, %ecx
	cmpl	$5, %ebx
	setge	%cl
	addl	%ebx, %r15d
	subl	%eax, %r15d
	movl	%r15d, %eax
	addl	$6, %eax
	cltq
	imulq	$-1840700269, %rax, %rax        ## imm = 0x92492493
	shrq	$32, %rax
	addl	%r15d, %eax
	addl	$6, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	sarl	$2, %eax
	addl	%edx, %eax
	subl	%ecx, %eax
LBB0_12:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_13:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_timelib_isoweek_from_date      ; -- Begin function timelib_isoweek_from_date
	.p2align	2
_timelib_isoweek_from_date:             ; @timelib_isoweek_from_date
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x4
	mov	x19, x3
	mov	x25, x2
	mov	x26, x1
	mov	x21, x0
	bl	_timelib_is_leap
	mov	x22, x0
	sub	w24, w21, #1
	mov	x0, x24
	bl	_timelib_is_leap
	mov	x23, x0
	mov	x0, x21
	mov	x1, x26
	mov	x2, x25
	bl	_timelib_day_of_year
	cmp	w22, #0
	ccmp	w26, #2, #4, ne
	mov	w8, #1
	cinc	w8, w8, gt
	add	w28, w8, w0
	mov	x0, x21
	mov	w1, #1
	mov	w2, #1
	bl	_timelib_day_of_week
	mov	x27, x0
	mov	x0, x21
	mov	x1, x26
	mov	x2, x25
	bl	_timelib_day_of_week
	mov	w9, #7
	cmp	w0, #0
	csel	w8, w9, w0, eq
	cmp	w27, #0
	csel	w9, w9, w27, eq
	cmp	w9, #5
	b.lt	LBB0_6
; %bb.1:
	mov	w10, #8
	sub	w10, w10, w9
	cmp	w28, w10
	b.gt	LBB0_6
; %bb.2:
	str	w24, [x20]
	cmp	w9, #5
	b.eq	LBB0_5
; %bb.3:
	cmp	w9, #6
	b.ne	LBB0_7
; %bb.4:
	cbz	w23, LBB0_7
LBB0_5:
	mov	w10, #53
	b	LBB0_8
LBB0_6:
	str	w21, [x20]
	b	LBB0_9
LBB0_7:
	mov	w10, #52
LBB0_8:
	str	w10, [x19]
LBB0_9:
	ldr	w10, [x20]
	cmp	w10, w21
	b.ne	LBB0_14
; %bb.10:
	cmp	w22, #0
	mov	w10, #365
	cinc	w10, w10, ne
	add	w10, w10, w22
	sub	w10, w10, w28
	mov	w11, #4
	sub	w11, w11, w8
	cmp	w10, w11
	b.ge	LBB0_12
; %bb.11:
	add	w8, w21, #1
	str	w8, [x20]
	mov	w8, #1
	b	LBB0_13
LBB0_12:
	cmp	w9, #4
	cset	w10, gt
	add	w9, w28, w9
	sub	w8, w9, w8
	add	w8, w8, #6
	mov	w9, #9363
	movk	w9, #37449, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #2
	add	w8, w9, w8, lsr #31
	sub	w8, w8, w10
LBB0_13:
	str	w8, [x19]
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
