	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_week                           ## -- Begin function week
	.p2align	4, 0x90
_week:                                  ## @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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	leaq	-24(%rbp), %rsi
	callq	_gdate
	movl	-24(%rbp), %edi
	incl	%edi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, (%rbx)
	callq	_firstweek
	cmpl	%r14d, %eax
	jle	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %edi
	decl	%edi
	jmp	LBB0_2
LBB0_3:
	subl	%eax, %r14d
	movslq	%r14d, %rax
	imulq	$-1840700269, %rax, %rcx        ## imm = 0x92492493
	shrq	$32, %rcx
	addl	%ecx, %eax
	movl	%eax, %ecx
	sarl	$2, %ecx
	shrl	$31, %eax
	addl	%ecx, %eax
	incl	%eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	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	_week                           ; -- Begin function week
	.p2align	2
_week:                                  ; @week
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	add	x1, sp, #8
	bl	_gdate
	ldr	w8, [sp, #8]
	add	w0, w8, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	str	w0, [x20]
	bl	_firstweek
	cmp	w0, w19
	b.le	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x20]
	sub	w0, w8, #1
	b	LBB0_1
LBB0_3:
	mov	w8, #9363
	movk	w8, #37449, lsl #16
	sub	w9, w19, w0
	smull	x8, w9, w8
	lsr	x8, x8, #32
	add	w8, w8, w9
	asr	w9, w8, #2
	add	w8, w9, w8, lsr #31
	add	w0, w8, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
