	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iso_week
_iso_week:                              ## @iso_week
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movl	%edi, %r13d
	callq	_day_in_year
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	decl	%eax
	movq	_MAX_DAYS@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, %r15d
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%r14d, %edx
	callq	_day_of_week
	movl	%eax, %r14d
	movl	%r13d, %edi
	movl	$1, %esi
	movl	$1, %edx
	callq	_day_of_week
	movl	%eax, %r12d
	xorl	%eax, %eax
	cmpl	$4, %r12d
	setl	%al
	addl	%r15d, %eax
	xorl	%ebx, %ebx
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	cmpl	%r12d, %r14d
	setl	%bl
	addl	%eax, %ebx
	jg	LBB0_2
## %bb.1:
	decl	%r13d
	movl	%r13d, %edi
	movl	$12, %esi
	movl	$31, %edx
	callq	_iso_week
	movl	%eax, %ebx
LBB0_2:
	movl	%r13d, %edi
	callq	_isleap
	movl	%eax, %r14d
	movq	_MAX_DAYS@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	callq	_isleap
	subl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	addl	$365, %eax                      ## imm = 0x16D
	cmpl	(%r15), %eax
	jge	LBB0_4
## %bb.3:
	leal	(%r12,%r14), %eax
	addl	$364, %eax                      ## imm = 0x16C
	cltd
	idivl	-44(%rbp)                       ## 4-byte Folded Reload
	cmpl	$3, %edx
	movl	$1, %eax
	cmovgel	%ebx, %eax
	cmpl	-48(%rbp), %edx                 ## 4-byte Folded Reload
	cmovgel	%eax, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_DAYS,4,2                   ## @MAX_DAYS
	.no_dead_strip	_iso_week
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iso_week
_iso_week:                              ; @iso_week
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_day_in_year
	mov	x20, x0
	sub	w8, w0, #1
Lloh0:
	adrp	x25, _MAX_DAYS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MAX_DAYS@GOTPAGEOFF]
	ldr	w9, [x25]
	sdiv	w23, w8, w9
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_day_of_week
	mov	x21, x0
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_day_of_week
	mov	x22, x0
	cmp	w0, #4
	cinc	w8, w23, lt
	cmp	w21, w0
	cinc	w23, w8, lt
	cmp	w23, #0
	b.gt	LBB0_2
; %bb.1:
	sub	w19, w19, #1
	mov	x0, x19
	mov	w1, #12
	mov	w2, #31
	bl	_iso_week
	mov	x23, x0
LBB0_2:
	mov	x0, x19
	bl	_isleap
	mov	x24, x0
	ldr	w26, [x25]
	mov	x0, x19
	bl	_isleap
	sub	w8, w0, w20
	add	w8, w8, #365
	ldr	w9, [x25]
	add	w10, w22, w24
	add	w10, w10, #364
	sdiv	w11, w10, w26
	msub	w10, w11, w26, w10
	cmp	w10, #3
	ccmp	w10, w21, #8, lt
	csinc	w10, w23, wzr, lt
	cmp	w8, w9
	csel	w0, w23, w10, ge
	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	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_DAYS,4,2                   ; @MAX_DAYS
	.no_dead_strip	_iso_week
.subsections_via_symbols
