	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MONTHCAL_PaintCalendar
_MONTHCAL_PaintCalendar:                ## @MONTHCAL_PaintCalendar
	.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	$424, %rsp                      ## imm = 0x1A8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	32(%rdi), %rdi
	movq	%rcx, -408(%rbp)                ## 8-byte Spill
	movq	%rcx, %rax
	shlq	$4, %rax
	leaq	(%rax,%rax,4), %rbx
	movups	(%rdi,%rbx), %xmm0
	movaps	%xmm0, -464(%rbp)
	movq	80(%r13), %rax
	movq	%rdi, -392(%rbp)                ## 8-byte Spill
	addq	48(%rdi,%rbx), %rax
	movq	%rdx, -400(%rbp)                ## 8-byte Spill
	movl	%esi, %r15d
	subq	72(%r13), %rax
	movq	%rax, -448(%rbp)
	movq	64(%r13), %rax
	movq	_BrushMonth@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	leaq	-464(%rbp), %rsi
	movl	%r15d, %edi
	callq	_FillRect
	movq	56(%r13), %rax
	movq	_PenText@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movl	%r15d, %edi
	callq	_SelectObject
	movl	%eax, %r14d
	movq	32(%r13), %rax
	movq	48(%r13), %rcx
	movq	32(%rax,%rbx), %rsi
	movq	56(%rax,%rbx), %rax
	addq	$3, %rsi
	leaq	(%rax,%rcx), %rdx
	incq	%rdx
	movl	%r15d, %edi
	xorl	%ecx, %ecx
	callq	_MoveToEx
	movq	32(%r13), %rax
	movq	48(%r13), %rcx
	movq	40(%rax,%rbx), %rsi
	movq	56(%rax,%rbx), %rax
	addq	$-3, %rsi
	leaq	(%rax,%rcx), %rdx
	incq	%rdx
	movl	%r15d, %edi
	callq	_LineTo
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_SelectObject
	movq	32(%r13), %rax
	movq	24(%rax,%rbx), %rcx
	movq	%rcx, 32(%rax,%rbx)
	movq	%rcx, (%rax,%rbx)
	movl	40(%r13), %esi
	movl	%r15d, %edi
	callq	_SelectObject
	movq	16(%r13), %rax
	movq	_MCSC_MONTHBK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movl	%r15d, %edi
	callq	_SetBkColor
	movq	16(%r13), %rax
	movq	_MCSC_TITLEBK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movl	%r15d, -372(%rbp)               ## 4-byte Spill
	movl	%r15d, %edi
	callq	_SetTextColor
	movq	32(%r13), %rax
	movq	16(%rax,%rbx), %rcx
	movq	%rcx, -416(%rbp)
	movups	(%rax,%rbx), %xmm0
	movaps	%xmm0, -432(%rbp)
	movq	24(%r13), %rax
	addq	-432(%rbp), %rax
	movq	%rax, -424(%rbp)
	movq	(%r13), %r12
	addq	$6, %r12
	movl	$7, %r14d
	leaq	-368(%rbp), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rax
	movabsq	$2635249153387078803, %rcx      ## imm = 0x2492492492492493
	mulq	%rcx
	movq	%r12, %rbx
	subq	%rdx, %rbx
	shrq	%rbx
	addq	%rdx, %rbx
	shrq	$2, %rbx
	leaq	(,%rbx,8), %rax
	subq	%rax, %rbx
	addq	%r12, %rbx
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_get_localized_dayname
	movq	%r15, %rdi
	callq	_strlenW
	movq	_DT_VCENTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_DT_CENTER@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movq	_DT_SINGLELINE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	movl	-372(%rbp), %edi                ## 4-byte Reload
	movq	%r15, %rsi
	movl	%eax, %edx
	leaq	-432(%rbp), %rbx
	movq	%rbx, %rcx
	callq	_DrawTextW
	movq	24(%r13), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_OffsetRect
	incq	%r12
	decq	%r14
	jne	LBB0_1
## %bb.2:
	movq	-408(%rbp), %r12                ## 8-byte Reload
	leaq	(%r12,%r12,4), %rbx
	shlq	$4, %rbx
	movq	16(%r13), %rax
	movq	_MCSC_TEXT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movl	-372(%rbp), %edi                ## 4-byte Reload
	callq	_SetTextColor
	movq	-392(%rbp), %rcx                ## 8-byte Reload
	movq	64(%rcx,%rbx), %rax
	movq	%rax, -384(%rbp)
	movl	72(%rcx,%rbx), %eax
	movl	%eax, -376(%rbp)
	movl	$1, -384(%rbp)
	movl	68(%rcx,%rbx), %esi
	movl	72(%rcx,%rbx), %edi
	callq	_MONTHCAL_MonthLength
	testl	%eax, %eax
	movq	-400(%rbp), %r14                ## 8-byte Reload
	jle	LBB0_5
## %bb.3:
	movl	%eax, %r15d
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movl	4(%rax,%r12,4), %ecx
	andl	%ebx, %ecx
	movq	%r13, %rdi
	movl	-372(%rbp), %esi                ## 4-byte Reload
	leaq	-384(%rbp), %rdx
	movq	%r14, %r8
	callq	_MONTHCAL_DrawDay
	addl	%ebx, %ebx
	movl	-384(%rbp), %eax
	leal	1(%rax), %ecx
	movl	%ecx, -384(%rbp)
	cmpl	%r15d, %eax
	jl	LBB0_4
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$424, %rsp                      ## imm = 0x1A8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BrushMonth,8,3                 ## @BrushMonth
	.comm	_PenText,8,3                    ## @PenText
	.comm	_MCSC_MONTHBK,8,3               ## @MCSC_MONTHBK
	.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	_MCSC_TEXT,8,3                  ## @MCSC_TEXT
	.no_dead_strip	_MONTHCAL_PaintCalendar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MONTHCAL_PaintCalendar
_MONTHCAL_PaintCalendar:                ; @MONTHCAL_PaintCalendar
	.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
	sub	sp, sp, #432
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x9, [x0, #32]
	stp	x9, x3, [sp]                    ; 16-byte Folded Spill
	add	x8, x3, x3, lsl #2
	lsl	x25, x8, #4
	add	x8, x9, x25
	ldr	q0, [x8]
	str	q0, [sp, #32]
	ldr	x8, [x8, #48]
	ldp	x10, x9, [x0, #72]
	ldr	x11, [x0, #64]
	add	x8, x9, x8
	sub	x8, x8, x10
	str	x8, [sp, #48]
Lloh3:
	adrp	x8, _BrushMonth@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BrushMonth@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w2, [x11, x8, lsl #2]
	add	x1, sp, #32
	mov	x0, x20
	bl	_FillRect
	ldr	x8, [x21, #56]
Lloh6:
	adrp	x9, _PenText@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PenText@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x20
	bl	_SelectObject
	mov	x23, x0
	ldr	x8, [x21, #32]
	add	x8, x8, x25
	ldr	x9, [x8, #32]
	add	x1, x9, #3
	ldr	x8, [x8, #56]
	ldr	x9, [x21, #48]
	add	x8, x8, x9
	add	x2, x8, #1
	mov	x0, x20
	mov	x3, #0
	bl	_MoveToEx
	ldr	x8, [x21, #32]
	add	x8, x8, x25
	ldr	x9, [x8, #40]
	sub	x1, x9, #3
	ldr	x8, [x8, #56]
	ldr	x9, [x21, #48]
	add	x8, x8, x9
	add	x2, x8, #1
	mov	x0, x20
	bl	_LineTo
	mov	x0, x20
	mov	x1, x23
	bl	_SelectObject
	ldr	x8, [x21, #32]
	add	x8, x8, x25
	ldr	x9, [x8, #24]
	str	x9, [x8, #32]
	str	x9, [x8]
	ldr	w1, [x21, #40]
	mov	x0, x20
	bl	_SelectObject
	ldr	x8, [x21, #16]
Lloh9:
	adrp	x9, _MCSC_MONTHBK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MCSC_MONTHBK@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x20
	bl	_SetBkColor
	ldr	x8, [x21, #16]
Lloh12:
	adrp	x9, _MCSC_TITLEBK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MCSC_TITLEBK@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x20
	bl	_SetTextColor
	ldp	x9, x8, [x21, #24]
	add	x8, x8, x25
	ldr	x10, [x8, #16]
	ldr	q0, [x8]
	str	q0, [sp, #64]
	ldr	x8, [sp, #64]
	add	x8, x9, x8
	stp	x8, x10, [sp, #72]
	ldr	x8, [x21]
	add	x25, x8, #6
	mov	w26, #7
	mov	x27, #9363
	movk	x27, #37449, lsl #16
	movk	x27, #18724, lsl #32
	movk	x27, #9362, lsl #48
Lloh15:
	adrp	x28, _DT_CENTER@GOTPAGE
Lloh16:
	ldr	x28, [x28, _DT_CENTER@GOTPAGEOFF]
Lloh17:
	adrp	x24, _DT_VCENTER@GOTPAGE
Lloh18:
	ldr	x24, [x24, _DT_VCENTER@GOTPAGEOFF]
Lloh19:
	adrp	x22, _DT_SINGLELINE@GOTPAGE
Lloh20:
	ldr	x22, [x22, _DT_SINGLELINE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	umulh	x8, x25, x27
	sub	x9, x25, x8
	add	x8, x8, x9, lsr #1
	lsr	x8, x8, #2
	sub	x8, x8, x8, lsl #3
	add	x23, x25, x8
	add	x0, sp, #96
	bl	_ARRAY_SIZE
	mov	x3, x0
	add	x2, sp, #96
	mov	x0, x21
	mov	x1, x23
	bl	_get_localized_dayname
	add	x0, sp, #96
	bl	_strlenW
	mov	x2, x0
	ldr	w8, [x28]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x22]
	orr	w4, w8, w9
	add	x1, sp, #96
	add	x3, sp, #64
	mov	x0, x20
	bl	_DrawTextW
	ldr	x1, [x21, #24]
	add	x0, sp, #64
	mov	w2, #0
	bl	_OffsetRect
	add	x25, x25, #1
	subs	x26, x26, #1
	b.ne	LBB0_1
; %bb.2:
	mov	w8, #80
	ldp	x9, x24, [sp]                   ; 16-byte Folded Reload
	madd	x22, x24, x8, x9
	ldr	x8, [x21, #16]
Lloh21:
	adrp	x9, _MCSC_TEXT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MCSC_TEXT@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x20
	bl	_SetTextColor
	ldr	w8, [x22, #72]
	ldr	x9, [x22, #64]
	str	x9, [sp, #16]
	mov	w9, #1
	str	w8, [sp, #24]
	str	w9, [sp, #16]
	ldp	w1, w0, [x22, #68]
	bl	_MONTHCAL_MonthLength
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x23, x0
	add	x22, x24, #1
	mov	w24, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w8, [x8, x22, lsl #2]
	and	w3, w8, w24
	add	x2, sp, #16
	mov	x0, x21
	mov	x1, x20
	mov	x4, x19
	bl	_MONTHCAL_DrawDay
	lsl	w24, w24, #1
	ldr	w8, [sp, #16]
	add	w9, w8, #1
	str	w9, [sp, #16]
	cmp	w8, w23
	b.lt	LBB0_4
LBB0_5:
	ldur	x8, [x29, #-96]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	add	sp, sp, #432
	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
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_BrushMonth,8,3                 ; @BrushMonth
	.comm	_PenText,8,3                    ; @PenText
	.comm	_MCSC_MONTHBK,8,3               ; @MCSC_MONTHBK
	.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	_MCSC_TEXT,8,3                  ; @MCSC_TEXT
	.no_dead_strip	_MONTHCAL_PaintCalendar
.subsections_via_symbols
