	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MONTHCAL_Refresh
_MONTHCAL_Refresh:                      ## @MONTHCAL_Refresh
	.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
	movq	%rdx, %r13
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_comctl32_color@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_SetTextColor
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_GetBkColor
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_OBJ_FONT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	callq	_GetCurrentObject
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_MONTHCAL_GetCalCount
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movl	$4, %r15d
	xorl	%r12d, %r12d
	leaq	-60(%rbp), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	callq	_MONTHCAL_PaintWeeknumbers
	incq	%r12
	movq	%r14, %rdi
	callq	_MONTHCAL_GetCalCount
	addq	$8, %r15
	cmpq	%rax, %r12
	movq	%rbx, %r13
	leaq	-60(%rbp), %rbx
	jae	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rdx
	addq	%r15, %rdx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_IntersectRect
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	movq	%r12, %rcx
	callq	_MONTHCAL_PaintTitle
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rax
	leaq	(%rax,%r15), %rsi
	addq	$-4, %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_UnionRect
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_IntersectRect
	testq	%rax, %rax
	movq	%r13, %rbx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	callq	_MONTHCAL_PaintCalendar
	jmp	LBB0_6
LBB0_7:
	movq	%r14, %rdi
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %esi
	movq	%r13, %rdx
	callq	_MONTHCAL_PaintLeadTrailMonths
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	callq	_MONTHCAL_PaintFocusAndCircle
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%r13, %rdx
	callq	_MONTHCAL_PaintTodayTitle
	movq	_DIRECTION_BACKWARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_MONTHCAL_PaintButton
	movq	_DIRECTION_FORWARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_MONTHCAL_PaintButton
	movl	%r15d, %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_SetBkColor
	movl	%r15d, %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_SelectObject
	movl	%r15d, %edi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_SetTextColor
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_comctl32_color,4,2             ## @comctl32_color
	.comm	_OBJ_FONT,4,2                   ## @OBJ_FONT
	.comm	_DIRECTION_BACKWARD,4,2         ## @DIRECTION_BACKWARD
	.comm	_DIRECTION_FORWARD,4,2          ## @DIRECTION_FORWARD
	.no_dead_strip	_MONTHCAL_Refresh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MONTHCAL_Refresh
_MONTHCAL_Refresh:                      ; @MONTHCAL_Refresh
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x24, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _comctl32_color@GOTPAGE
Lloh1:
	ldr	x8, [x8, _comctl32_color@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_SetTextColor
	mov	x20, x0
	mov	x0, x19
	bl	_GetBkColor
	mov	x22, x0
Lloh3:
	adrp	x8, _OBJ_FONT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OBJ_FONT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_GetCurrentObject
	mov	x23, x0
	mov	x0, x21
	bl	_MONTHCAL_GetCalCount
	cbz	x0, LBB0_7
; %bb.1:
	mov	x25, #0
	mov	w26, #4
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	mov	x3, x25
	bl	_MONTHCAL_PaintWeeknumbers
	add	x25, x25, #1
	mov	x0, x21
	bl	_MONTHCAL_GetCalCount
	add	x26, x26, #8
	cmp	x25, x0
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x2, x8, x26
	add	x0, sp, #12
	mov	x1, x24
	bl	_IntersectRect
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	mov	x3, x25
	bl	_MONTHCAL_PaintTitle
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #8]
	add	x8, x8, x26
	sub	x1, x8, #4
	add	x0, sp, #12
	mov	x2, x21
	bl	_UnionRect
	add	x0, sp, #12
	add	x2, sp, #12
	mov	x1, x24
	bl	_IntersectRect
	cbz	x0, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	mov	x3, x25
	bl	_MONTHCAL_PaintCalendar
	b	LBB0_2
LBB0_7:
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	bl	_MONTHCAL_PaintLeadTrailMonths
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	bl	_MONTHCAL_PaintFocusAndCircle
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	bl	_MONTHCAL_PaintTodayTitle
Lloh6:
	adrp	x8, _DIRECTION_BACKWARD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DIRECTION_BACKWARD@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x19
	bl	_MONTHCAL_PaintButton
Lloh9:
	adrp	x8, _DIRECTION_FORWARD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DIRECTION_FORWARD@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x19
	bl	_MONTHCAL_PaintButton
	mov	x0, x19
	mov	x1, x22
	bl	_SetBkColor
	mov	x0, x19
	mov	x1, x23
	bl	_SelectObject
	mov	x0, x19
	mov	x1, x20
	bl	_SetTextColor
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_comctl32_color,4,2             ; @comctl32_color
	.comm	_OBJ_FONT,4,2                   ; @OBJ_FONT
	.comm	_DIRECTION_BACKWARD,4,2         ; @DIRECTION_BACKWARD
	.comm	_DIRECTION_FORWARD,4,2          ; @DIRECTION_FORWARD
	.no_dead_strip	_MONTHCAL_Refresh
.subsections_via_symbols
