	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_week_number_mon4
_set_week_number_mon4:                  ## @set_week_number_mon4
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_tm_year_base@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_first_day
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	addl	$6, %ecx
	movslq	%ecx, %rcx
	imulq	$-1840700269, %rcx, %rcx        ## imm = 0x92492493
	shrq	$32, %rcx
	addl	%eax, %ecx
	addl	$6, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$2, %ecx
	addl	%edx, %ecx
	leal	(,%rcx,8), %edx
	subl	%edx, %ecx
	addl	%ecx, %eax
	addl	$6, %eax
	leal	(,%r14,8), %ecx
	subl	%r14d, %ecx
	leal	-7(%rcx), %edx
	cmpl	$4, %eax
	cmovll	%ecx, %edx
	movl	4(%rbx), %ecx
	subl	%eax, %ecx
	addl	%edx, %ecx
	movl	%ecx, (%rbx)
	jns	LBB0_2
## %bb.1:
	movl	%eax, 4(%rbx)
	movl	$0, (%rbx)
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tm_year_base,8,3               ## @tm_year_base
	.no_dead_strip	_set_week_number_mon4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_week_number_mon4
_set_week_number_mon4:                  ; @set_week_number_mon4
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _tm_year_base@GOTPAGE
Lloh1:
	ldr	x9, [x9, _tm_year_base@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_first_day
	add	w8, w0, #6
	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
	lsl	w10, w20, #3
	sub	w10, w10, w20
	sub	w11, w10, #7
	ldr	w12, [x19, #4]
	add	w8, w8, w9
	sub	w9, w12, w8
	cmp	w8, #4
	csel	w10, w10, w11, lt
	adds	w9, w9, w10
	str	w9, [x19]
	b.pl	LBB0_2
; %bb.1:
	stp	wzr, w8, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_tm_year_base,8,3               ; @tm_year_base
	.no_dead_strip	_set_week_number_mon4
.subsections_via_symbols
