	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function MONTHCAL_NotifyDayState
_MONTHCAL_NotifyDayState:               ## @MONTHCAL_NotifyDayState
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MCS_DAYSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	movl	%edi, -48(%rbp)
	movq	_GWLP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetWindowLongPtrW
	movl	%eax, -56(%rbp)
	movq	_MCN_GETDAYSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_GMR_DAYSTATE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_MONTHCAL_GetMonthRange
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, -72(%rbp)
	leal	(,%rax,4), %edi
	callq	_heap_alloc_zero
	movq	%rax, %r14
	movq	%rax, -64(%rbp)
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_MONTHCAL_GetMinDate
	movl	$1, -44(%rbp)
	movl	8(%rbx), %edi
	movq	_WM_NOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-56(%rbp), %edx
	leaq	-72(%rbp), %rcx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_SendMessageW
	movl	4(%rbx), %r15d
	movq	-64(%rbp), %r12
	movl	(%r13), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_MONTHCAL_GetMonthRange
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,4), %edx
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_memcpy
	movq	%r14, %rdi
	callq	_heap_free
LBB0_2:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCS_DAYSTATE,4,2               ## @MCS_DAYSTATE
	.comm	_GWLP_ID,4,2                    ## @GWLP_ID
	.comm	_MCN_GETDAYSTATE,4,2            ## @MCN_GETDAYSTATE
	.comm	_GMR_DAYSTATE,4,2               ## @GMR_DAYSTATE
	.comm	_WM_NOTIFY,4,2                  ## @WM_NOTIFY
	.no_dead_strip	_MONTHCAL_NotifyDayState
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function MONTHCAL_NotifyDayState
_MONTHCAL_NotifyDayState:               ; @MONTHCAL_NotifyDayState
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MCS_DAYSTATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MCS_DAYSTATE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #12]
	str	w0, [sp, #24]
Lloh3:
	adrp	x8, _GWLP_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GWLP_ID@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetWindowLongPtrW
Lloh6:
	adrp	x8, _MCN_GETDAYSTATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MCN_GETDAYSTATE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w0, w8, [sp, #16]
Lloh9:
	adrp	x23, _GMR_DAYSTATE@GOTPAGE
Lloh10:
	ldr	x23, [x23, _GMR_DAYSTATE@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_MONTHCAL_GetMonthRange
	str	w0, [sp]
	lsl	w0, w0, #2
	bl	_heap_alloc_zero
	mov	x20, x0
	str	x0, [sp, #8]
	mov	x8, sp
	add	x1, x8, #28
	mov	x0, x19
	bl	_MONTHCAL_GetMinDate
	mov	w8, #1
	str	w8, [sp, #28]
	ldr	w0, [x19, #8]
Lloh11:
	adrp	x8, _WM_NOTIFY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WM_NOTIFY@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [sp, #16]
	mov	x3, sp
	bl	_SendMessageW
	ldr	w21, [x19, #4]
	ldr	x22, [sp, #8]
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_MONTHCAL_GetMonthRange
	lsl	w2, w0, #2
	mov	x0, x21
	mov	x1, x22
	bl	_memcpy
	mov	x0, x20
	bl	_heap_free
LBB0_2:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MCS_DAYSTATE,4,2               ; @MCS_DAYSTATE
	.comm	_GWLP_ID,4,2                    ; @GWLP_ID
	.comm	_MCN_GETDAYSTATE,4,2            ; @MCN_GETDAYSTATE
	.comm	_GMR_DAYSTATE,4,2               ; @GMR_DAYSTATE
	.comm	_WM_NOTIFY,4,2                  ; @WM_NOTIFY
	.no_dead_strip	_MONTHCAL_NotifyDayState
.subsections_via_symbols
