	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MONTHCAL_PaintWeeknumbers
_MONTHCAL_PaintWeeknumbers:             ## @MONTHCAL_PaintWeeknumbers
	.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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -132(%rbp)                ## 4-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MCS_WEEKNUMBERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_20
## %bb.1:
	movq	16(%rdi), %r13
	movq	%rcx, -208(%rbp)                ## 8-byte Spill
	leaq	(%rcx,%rcx,4), %rbx
	leaq	-160(%rbp), %rsi
	movq	%rdi, -176(%rbp)                ## 8-byte Spill
	callq	_MONTHCAL_GetMinDate
	movq	-160(%rbp), %rax
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	movups	24(%r13,%rbx,8), %xmm0
	movaps	%xmm0, -160(%rbp)
	leaq	32(%r13,%rbx,8), %rax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	movq	%rbx, -184(%rbp)                ## 8-byte Spill
	movl	32(%r13,%rbx,8), %eax
	decl	%eax
	movl	$12, %r12d
	cmovnel	%eax, %r12d
	movq	_LOCALE_USER_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_LOCALE_IFIRSTWEEKOFYEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-128(%rbp), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movl	%r14d, %edi
	movl	%ebx, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_GetLocaleInfoW
	movq	%r15, %rdi
	callq	_atoiW
	cmpq	$3, %rax
	jae	LBB0_2
## %bb.3:
	leaq	l_switch.table.MONTHCAL_PaintWeeknumbers(%rip), %rcx
	movq	(%rcx,%rax,8), %r14
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	callq	_WARN
	xorl	%r14d, %r14d
LBB0_4:
	movq	-168(%rbp), %rax                ## 8-byte Reload
	cmpl	$1, (%rax)
	movabsq	$2635249153387078803, %rbx      ## imm = 0x2492492492492493
	jne	LBB0_5
## %bb.7:
	movl	$1, -152(%rbp)
	movq	$1, -160(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-160(%rbp), %rdi
	callq	_MONTHCAL_CalculateDayOfWeek
	movq	-176(%rbp), %r12                ## 8-byte Reload
	movq	8(%r12), %rcx
	subq	%rax, %rcx
	movq	%rcx, %rax
	mulq	%rbx
	movq	%rcx, %rax
	subq	%rdx, %rax
	shrq	%rax
	addq	%rdx, %rax
	shrq	$2, %rax
	leaq	(,%rax,8), %rdx
	subq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, %ebx
	cmpq	%r14, %rax
	ja	LBB0_13
## %bb.8:
	movq	%r14, -168(%rbp)                ## 8-byte Spill
	leaq	8(%r12), %rax
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	movq	-184(%rbp), %r15                ## 8-byte Reload
	movl	36(%r13,%r15,8), %esi
	decl	%esi
	movl	$1, %edi
	callq	_MONTHCAL_MonthLength
	movq	%rax, %r14
	movl	36(%r13,%r15,8), %esi
	decl	%esi
	movl	$2, %edi
	callq	_MONTHCAL_MonthLength
	movq	%rax, %rbx
	addq	%r14, %rbx
	movl	36(%r13,%r15,8), %esi
	decl	%esi
	movl	$3, %edi
	callq	_MONTHCAL_MonthLength
	movq	%rax, %r14
	addq	%rbx, %r14
	movl	36(%r13,%r15,8), %esi
	decl	%esi
	movl	$4, %edi
	callq	_MONTHCAL_MonthLength
	movq	%rax, %rbx
	addq	%r14, %rbx
	movl	36(%r13,%r15,8), %esi
	decl	%esi
	movl	$5, %edi
	callq	_MONTHCAL_MonthLength
	movq	%rax, %r14
	addq	%rbx, %r14
	movl	36(%r13,%r15,8), %esi
	decl	%esi
	movl	$6, %edi
	callq	_MONTHCAL_MonthLength
	movq	%rax, %rbx
	addq	%r14, %rbx
	movl	36(%r13,%r15,8), %esi
	decl	%esi
	movl	$7, %edi
	callq	_MONTHCAL_MonthLength
	movq	%rax, %r14
	addq	%rbx, %r14
	movl	36(%r13,%r15,8), %esi
	decl	%esi
	movl	$8, %edi
	callq	_MONTHCAL_MonthLength
	movq	%rax, %rbx
	addq	%r14, %rbx
	movl	36(%r13,%r15,8), %esi
	decl	%esi
	movl	$9, %edi
	callq	_MONTHCAL_MonthLength
	movq	%rax, %r14
	addq	%rbx, %r14
	movl	36(%r13,%r15,8), %esi
	decl	%esi
	movl	$10, %edi
	callq	_MONTHCAL_MonthLength
	movq	%rax, %rbx
	addq	%r14, %rbx
	movl	36(%r13,%r15,8), %esi
	decl	%esi
	movl	$11, %edi
	callq	_MONTHCAL_MonthLength
	addq	%rbx, %rax
	movq	-192(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rax), %rbx
	addq	$7, %rbx
	decl	-148(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-160(%rbp), %rdi
	callq	_MONTHCAL_CalculateDayOfWeek
	movq	-200(%rbp), %rsi                ## 8-byte Reload
	movq	%rax, %rcx
	jmp	LBB0_12
LBB0_5:
	movq	%r14, -168(%rbp)                ## 8-byte Spill
	movslq	%r12d, %r14
	cmpq	$1, %r14
	je	LBB0_6
## %bb.9:
	movq	-184(%rbp), %rax                ## 8-byte Reload
	leaq	36(,%rax,8), %r12
	addq	%r13, %r12
	movl	$1, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_MONTHCAL_MonthLength
	addq	%rax, %r15
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_10
	jmp	LBB0_11
LBB0_6:
	xorl	%r15d, %r15d
LBB0_11:
	movq	-192(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%r15), %rbx
	addq	$7, %rbx
	movl	$1, -152(%rbp)
	movq	$1, -160(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-160(%rbp), %rdi
	callq	_MONTHCAL_CalculateDayOfWeek
	movq	%rax, %rcx
	movq	-176(%rbp), %r12                ## 8-byte Reload
	leaq	8(%r12), %rsi
LBB0_12:
	movq	%rbx, %rax
	movabsq	$2635249153387078803, %rdi      ## imm = 0x2492492492492493
	mulq	%rdi
	subq	%rdx, %rbx
	shrq	%rbx
	addq	%rdx, %rbx
	shrq	$2, %rbx
	movq	(%rsi), %rsi
	subq	%rcx, %rsi
	movq	%rsi, %rax
	mulq	%rdi
	movq	%rsi, %rax
	subq	%rdx, %rax
	shrq	%rax
	addq	%rdx, %rax
	shrq	$2, %rax
	leaq	(,%rax,8), %rcx
	subq	%rcx, %rax
	addq	%rsi, %rax
	cmpq	%rax, -168(%rbp)                ## 8-byte Folded Reload
	adcq	$0, %rbx
LBB0_13:
	movq	16(%r12), %rax
	movq	-184(%rbp), %rdx                ## 8-byte Reload
	movq	16(%rax,%rdx,8), %rcx
	movq	%rcx, -224(%rbp)
	movups	(%rax,%rdx,8), %xmm0
	movaps	%xmm0, -240(%rbp)
	movq	48(%r12), %rax
	movq	_BrushMonth@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	leaq	-240(%rbp), %r13
	movl	-132(%rbp), %r14d               ## 4-byte Reload
	movl	%r14d, %edi
	movq	%r13, %rsi
	callq	_FillRect
	movq	40(%r12), %rax
	movq	_MCSC_TITLEBK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movl	%r14d, %edi
	callq	_SetTextColor
	movq	32(%r12), %rax
	addq	-224(%rbp), %rax
	movq	%rax, -240(%rbp)
	xorl	%r12d, %r12d
	leaq	-128(%rbp), %r14
	movq	_DT_SINGLELINE@GOTPCREL(%rip), %r15
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	leaq	(%rbx,%r12), %rax
	cmpq	$48, %rbx
	movq	%rax, %rdx
	movl	$1, %ecx
	cmovaeq	%rcx, %rdx
	cmpq	$5, %r12
	cmovneq	%rax, %rdx
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r14, %rdi
	leaq	_MONTHCAL_PaintWeeknumbers.fmt_weekW(%rip), %rsi
	callq	_wsprintfW
	movq	_DT_VCENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_DT_CENTER@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	orl	(%r15), %r8d
	movl	-132(%rbp), %edi                ## 4-byte Reload
	movq	%r14, %rsi
	movl	$-1, %edx
	movq	%r13, %rcx
	callq	_DrawTextW
	movq	-176(%rbp), %rax                ## 8-byte Reload
	movq	32(%rax), %rdx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_OffsetRect
	incq	%r12
	cmpq	$6, %r12
	je	LBB0_19
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	testq	%r12, %r12
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpq	$50, %rbx
	jbe	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdx
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_19:
	movq	-176(%rbp), %r12                ## 8-byte Reload
	movq	24(%r12), %rax
	movq	_PenText@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movl	-132(%rbp), %r15d               ## 4-byte Reload
	movl	%r15d, %edi
	callq	_SelectObject
	movl	%eax, %r14d
	movq	16(%r12), %rax
	movq	-208(%rbp), %rcx                ## 8-byte Reload
	shlq	$3, %rcx
	leaq	(%rcx,%rcx,4), %rbx
	movl	8(%rax,%rbx), %esi
	movq	16(%rax,%rbx), %rdx
	addq	$3, %rdx
	movl	%r15d, %edi
	xorl	%ecx, %ecx
	callq	_MoveToEx
	movq	16(%r12), %rax
	movl	8(%rax,%rbx), %esi
	movq	(%rax,%rbx), %rdx
	movl	%r15d, %edi
	callq	_LineTo
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_SelectObject
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_MONTHCAL_PaintWeeknumbers.fmt_weekW:   ## @MONTHCAL_PaintWeeknumbers.fmt_weekW
	.asciz	"%d"

	.comm	_MCS_WEEKNUMBERS,4,2            ## @MCS_WEEKNUMBERS
	.comm	_LOCALE_USER_DEFAULT,4,2        ## @LOCALE_USER_DEFAULT
	.comm	_LOCALE_IFIRSTWEEKOFYEAR,4,2    ## @LOCALE_IFIRSTWEEKOFYEAR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown LOCALE_IFIRSTWEEKOFYEAR value %d, defaulting to 0\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_BrushMonth,8,3                 ## @BrushMonth
	.comm	_MCSC_TITLEBK,8,3               ## @MCSC_TITLEBK
	.comm	_DT_CENTER,4,2                  ## @DT_CENTER
	.comm	_DT_VCENTER,4,2                 ## @DT_VCENTER
	.comm	_DT_SINGLELINE,4,2              ## @DT_SINGLELINE
	.comm	_PenText,8,3                    ## @PenText
	.no_dead_strip	_MONTHCAL_PaintWeeknumbers
	.section	__TEXT,__const
	.p2align	3                               ## @switch.table.MONTHCAL_PaintWeeknumbers
l_switch.table.MONTHCAL_PaintWeeknumbers:
	.quad	0                               ## 0x0
	.quad	6                               ## 0x6
	.quad	3                               ## 0x3

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MONTHCAL_PaintWeeknumbers
_MONTHCAL_PaintWeeknumbers:             ; @MONTHCAL_PaintWeeknumbers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _MCS_WEEKNUMBERS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MCS_WEEKNUMBERS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.1:
	mov	x21, x3
	mov	x19, x1
	mov	x20, x0
	ldr	x28, [x0, #16]
	mov	w8, #40
	madd	x25, x3, x8, x28
	add	x1, sp, #32
	bl	_MONTHCAL_GetMinDate
	ldr	x24, [sp, #32]
	ldur	q0, [x25, #24]
	str	q0, [sp, #32]
	ldr	w8, [x25, #32]!
	subs	w8, w8, #1
	mov	w9, #12
	csel	w26, w9, w8, eq
Lloh6:
	adrp	x8, _LOCALE_USER_DEFAULT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LOCALE_USER_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
Lloh9:
	adrp	x8, _LOCALE_IFIRSTWEEKOFYEAR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LOCALE_IFIRSTWEEKOFYEAR@GOTPAGEOFF]
Lloh11:
	ldr	w23, [x8]
	add	x0, sp, #56
	bl	_ARRAY_SIZE
	mov	x3, x0
	add	x2, sp, #56
	mov	x0, x22
	mov	x1, x23
	bl	_GetLocaleInfoW
	add	x0, sp, #56
	bl	_atoiW
	mov	x1, x0
	cmp	x0, #3
	b.hs	LBB0_3
; %bb.2:
Lloh12:
	adrp	x8, l_switch.table.MONTHCAL_PaintWeeknumbers@PAGE
Lloh13:
	add	x8, x8, l_switch.table.MONTHCAL_PaintWeeknumbers@PAGEOFF
	ldr	x23, [x8, x1, lsl #3]
	b	LBB0_4
LBB0_3:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
	mov	x23, #0
LBB0_4:
	ldr	w8, [x25]
	cmp	w8, #1
	b.ne	LBB0_7
; %bb.5:
	mov	w27, #1
	str	w27, [sp, #40]
	str	x27, [sp, #32]
Lloh16:
	adrp	x26, _FALSE@GOTPAGE
Lloh17:
	ldr	x26, [x26, _FALSE@GOTPAGEOFF]
	ldr	w1, [x26]
	add	x0, sp, #32
	bl	_MONTHCAL_CalculateDayOfWeek
	mov	x25, x20
	ldr	x8, [x25, #8]!
	mov	x9, #9363
	movk	x9, #37449, lsl #16
	movk	x9, #18724, lsl #32
	movk	x9, #9362, lsl #48
	sub	x8, x8, x0
	umulh	x9, x8, x9
	sub	x10, x8, x9
	add	x9, x9, x10, lsr #1
	lsr	x9, x9, #2
	sub	x9, x9, x9, lsl #3
	add	x8, x8, x9
	cmp	x8, x23
	b.hi	LBB0_13
; %bb.6:
	mov	w8, #40
	madd	x27, x21, x8, x28
	ldr	w8, [x27, #36]
	sub	w1, w8, #1
	mov	w0, #1
	bl	_MONTHCAL_MonthLength
	mov	x22, x0
	ldr	w8, [x27, #36]
	sub	w1, w8, #1
	mov	w0, #2
	bl	_MONTHCAL_MonthLength
	add	x22, x0, x22
	ldr	w8, [x27, #36]
	sub	w1, w8, #1
	mov	w0, #3
	bl	_MONTHCAL_MonthLength
	add	x22, x0, x22
	ldr	w8, [x27, #36]
	sub	w1, w8, #1
	mov	w0, #4
	bl	_MONTHCAL_MonthLength
	add	x22, x0, x22
	ldr	w8, [x27, #36]
	sub	w1, w8, #1
	mov	w0, #5
	bl	_MONTHCAL_MonthLength
	add	x22, x0, x22
	ldr	w8, [x27, #36]
	sub	w1, w8, #1
	mov	w0, #6
	bl	_MONTHCAL_MonthLength
	add	x22, x0, x22
	ldr	w8, [x27, #36]
	sub	w1, w8, #1
	mov	w0, #7
	bl	_MONTHCAL_MonthLength
	add	x22, x0, x22
	ldr	w8, [x27, #36]
	sub	w1, w8, #1
	mov	w0, #8
	bl	_MONTHCAL_MonthLength
	add	x22, x0, x22
	ldr	w8, [x27, #36]
	sub	w1, w8, #1
	mov	w0, #9
	bl	_MONTHCAL_MonthLength
	add	x22, x0, x22
	ldr	w8, [x27, #36]
	sub	w1, w8, #1
	mov	w0, #10
	bl	_MONTHCAL_MonthLength
	add	x22, x0, x22
	ldr	w8, [x27, #36]
	sub	w1, w8, #1
	mov	w0, #11
	bl	_MONTHCAL_MonthLength
	add	x8, x0, x22
	add	x8, x24, x8
	add	x22, x8, #7
	ldr	w8, [sp, #44]
	sub	w8, w8, #1
	str	w8, [sp, #44]
	ldr	w1, [x26]
	add	x0, sp, #32
	bl	_MONTHCAL_CalculateDayOfWeek
	b	LBB0_12
LBB0_7:
	sxtw	x26, w26
	cmp	x26, #1
	b.eq	LBB0_10
; %bb.8:
	mov	x25, #0
	mov	w8, #40
	madd	x8, x21, x8, x28
	add	x27, x8, #36
	mov	w22, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x27]
	mov	x0, x22
	bl	_MONTHCAL_MonthLength
	add	x25, x0, x25
	add	x22, x22, #1
	cmp	x26, x22
	b.ne	LBB0_9
	b	LBB0_11
LBB0_10:
	mov	x25, #0
LBB0_11:
	add	x8, x24, x25
	add	x22, x8, #7
	mov	w8, #1
	str	w8, [sp, #40]
	str	x8, [sp, #32]
Lloh18:
	adrp	x8, _FALSE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x0, sp, #32
	bl	_MONTHCAL_CalculateDayOfWeek
	add	x25, x20, #8
LBB0_12:
	mov	x8, #9363
	movk	x8, #37449, lsl #16
	movk	x8, #18724, lsl #32
	movk	x8, #9362, lsl #48
	umulh	x9, x22, x8
	sub	x10, x22, x9
	add	x9, x9, x10, lsr #1
	lsr	x9, x9, #2
	ldr	x10, [x25]
	sub	x10, x10, x0
	umulh	x8, x10, x8
	sub	x11, x10, x8
	add	x8, x8, x11, lsr #1
	lsr	x8, x8, #2
	sub	x8, x8, x8, lsl #3
	add	x8, x10, x8
	cmp	x8, x23
	cinc	x27, x9, hi
LBB0_13:
	ldr	x8, [x20, #16]
	mov	w9, #40
	madd	x8, x21, x9, x8
	ldr	x9, [x8, #16]
	ldr	q0, [x8]
	str	q0, [sp]
	str	x9, [sp, #16]
	ldr	x8, [x20, #48]
Lloh21:
	adrp	x9, _BrushMonth@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BrushMonth@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	ldr	w2, [x8, x9, lsl #2]
	mov	x1, sp
	mov	x0, x19
	bl	_FillRect
	ldr	x8, [x20, #40]
Lloh24:
	adrp	x9, _MCSC_TITLEBK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MCSC_TITLEBK@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x19
	bl	_SetTextColor
	mov	x23, #0
	ldr	x8, [sp, #16]
	ldr	x9, [x20, #32]
	add	x8, x9, x8
	str	x8, [sp]
Lloh27:
	adrp	x22, _MONTHCAL_PaintWeeknumbers.fmt_weekW@PAGE
Lloh28:
	add	x22, x22, _MONTHCAL_PaintWeeknumbers.fmt_weekW@PAGEOFF
Lloh29:
	adrp	x24, _DT_CENTER@GOTPAGE
Lloh30:
	ldr	x24, [x24, _DT_CENTER@GOTPAGEOFF]
Lloh31:
	adrp	x25, _DT_VCENTER@GOTPAGE
Lloh32:
	ldr	x25, [x25, _DT_VCENTER@GOTPAGEOFF]
Lloh33:
	adrp	x26, _DT_SINGLELINE@GOTPAGE
Lloh34:
	ldr	x26, [x26, _DT_SINGLELINE@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	cmp	x27, #47
	ccmp	x23, #5, #0, hi
	add	x8, x27, x23
	csinc	x2, x8, xzr, ne
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x0, sp, #56
	mov	x1, x22
	bl	_wsprintfW
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldr	w9, [x26]
	orr	w4, w8, w9
	add	x1, sp, #56
	mov	x3, sp
	mov	x0, x19
	mov	w2, #-1
	bl	_DrawTextW
	ldr	x2, [x20, #32]
	mov	x0, sp
	mov	w1, #0
	bl	_OffsetRect
	add	x23, x23, #1
	cmp	x23, #6
	b.eq	LBB0_19
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	cbnz	x23, LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	x27, #50
	b.ls	LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x2, x27
	mov	x27, #0
	b	LBB0_15
LBB0_19:
	ldr	x8, [x20, #24]
Lloh35:
	adrp	x9, _PenText@GOTPAGE
Lloh36:
	ldr	x9, [x9, _PenText@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x19
	bl	_SelectObject
	mov	x22, x0
	ldr	x8, [x20, #16]
	add	x9, x21, x21, lsl #2
	lsl	x21, x9, #3
	add	x8, x8, x21
	ldr	w1, [x8, #8]
	ldr	x8, [x8, #16]
	add	x2, x8, #3
	mov	x0, x19
	mov	x3, #0
	bl	_MoveToEx
	ldr	x8, [x20, #16]
	add	x8, x8, x21
	ldr	w1, [x8, #8]
	ldr	x2, [x8]
	mov	x0, x19
	bl	_LineTo
	mov	x0, x19
	mov	x1, x22
	bl	_SelectObject
LBB0_20:
	ldur	x8, [x29, #-88]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_MONTHCAL_PaintWeeknumbers.fmt_weekW:   ; @MONTHCAL_PaintWeeknumbers.fmt_weekW
	.asciz	"%d"

	.comm	_MCS_WEEKNUMBERS,4,2            ; @MCS_WEEKNUMBERS
	.comm	_LOCALE_USER_DEFAULT,4,2        ; @LOCALE_USER_DEFAULT
	.comm	_LOCALE_IFIRSTWEEKOFYEAR,4,2    ; @LOCALE_IFIRSTWEEKOFYEAR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown LOCALE_IFIRSTWEEKOFYEAR value %d, defaulting to 0\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_BrushMonth,8,3                 ; @BrushMonth
	.comm	_MCSC_TITLEBK,8,3               ; @MCSC_TITLEBK
	.comm	_DT_CENTER,4,2                  ; @DT_CENTER
	.comm	_DT_VCENTER,4,2                 ; @DT_VCENTER
	.comm	_DT_SINGLELINE,4,2              ; @DT_SINGLELINE
	.comm	_PenText,8,3                    ; @PenText
	.no_dead_strip	_MONTHCAL_PaintWeeknumbers
	.section	__TEXT,__const
	.p2align	3                               ; @switch.table.MONTHCAL_PaintWeeknumbers
l_switch.table.MONTHCAL_PaintWeeknumbers:
	.quad	0                               ; 0x0
	.quad	6                               ; 0x6
	.quad	3                               ; 0x3

.subsections_via_symbols
