	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DATETIME_LButtonDown
_DATETIME_LButtonDown:                  ## @DATETIME_LButtonDown
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movq	%rdi, %r14
	movq	%rdx, %rsi
	movq	%rax, %rdx
	callq	_DATETIME_HitTest
	movl	%eax, %ebx
	movl	28(%r14), %edi
	callq	_SetFocus
	movq	_DTHT_NODATEMASK@GOTPCREL(%rip), %rcx
	movq	_DTHT_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, (%rcx)
	je	LBB0_2
## %bb.1:
	cmpl	%eax, %ebx
	jne	LBB0_8
LBB0_2:
	cmpl	%eax, %ebx
	jne	LBB0_4
## %bb.3:
	movl	(%r14), %ebx
	decl	%ebx
	jmp	LBB0_8
LBB0_4:
	movq	8(%r14), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %eax
	movq	_DT_STRING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_DATETIME_GetPrevDateField
	cmpl	$-1, %eax
	je	LBB0_19
## %bb.6:
	movl	%eax, %ebx
	movq	8(%r14), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %eax
LBB0_7:
	movq	_FULLDAY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_19
LBB0_8:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_DATETIME_SetSelectedField
	movq	16(%r14), %rax
	movq	_DTHT_MCPOPUP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.9:
	movl	36(%r14), %edi
	movq	_MCM_GETMINREQRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rcx
	xorl	%edx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_SendMessageW
	movq	_TRUE@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, 88(%r14)
	movq	_DTS_RIGHTALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 24(%r14)
	je	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rsi
	subq	-40(%rbp), %rsi
	addq	80(%r14), %rsi
	jmp	LBB0_12
LBB0_11:
	movq	72(%r14), %rsi
LBB0_12:
	movq	64(%r14), %rdx
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_OffsetRect
	movl	28(%r14), %edi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movl	$2, %ecx
	callq	_MapWindowPoints
	movl	36(%r14), %edi
	movq	-48(%rbp), %rdx
	movq	-40(%rbp), %r8
	subq	%rdx, %r8
	movq	-64(%rbp), %rcx
	movq	-56(%rbp), %r9
	subq	%rcx, %r9
	movl	$0, (%rsp)
	xorl	%esi, %esi
	callq	_SetWindowPos
	movl	36(%r14), %edi
	callq	_IsWindowVisible
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	36(%r14), %edi
	movq	_SW_HIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ShowWindow
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r14)
	movq	_DTN_CLOSEUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_DATETIME_SendSimpleNotify
	jmp	LBB0_17
LBB0_14:
	leaq	48(%r14), %rbx
	movl	56(%r14), %esi
	movl	48(%r14), %ecx
	movl	52(%r14), %edx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movl	36(%r14), %edi
	movq	_MCM_SETCURSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_SendMessageW
	cmpq	$0, 40(%r14)
	je	LBB0_16
## %bb.15:
	movl	36(%r14), %edi
	movq	_SW_SHOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ShowWindow
	movq	_DTN_DROPDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_DATETIME_SendSimpleNotify
LBB0_16:
	movq	(%r15), %rax
	movq	%rax, 40(%r14)
LBB0_17:
	movl	36(%r14), %r15d
	movl	28(%r14), %ebx
	movl	32(%r14), %r12d
	xorl	%eax, %eax
	callq	_GetDesktopWindow
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_TRACE
LBB0_18:
	movl	28(%r14), %edi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%esi, %esi
	callq	_InvalidateRect
LBB0_19:
	xorl	%eax, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DTHT_NODATEMASK,4,2            ## @DTHT_NODATEMASK
	.comm	_DTHT_NONE,4,2                  ## @DTHT_NONE
	.comm	_DT_STRING,4,2                  ## @DT_STRING
	.comm	_FULLDAY,4,2                    ## @FULLDAY
	.comm	_DTHT_MCPOPUP,8,3               ## @DTHT_MCPOPUP
	.comm	_MCM_GETMINREQRECT,4,2          ## @MCM_GETMINREQRECT
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_DTS_RIGHTALIGN,4,2             ## @DTS_RIGHTALIGN
	.comm	_SW_HIDE,4,2                    ## @SW_HIDE
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_DTN_CLOSEUP,4,2                ## @DTN_CLOSEUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"update calendar %04d/%02d/%02d\n"

	.comm	_MCM_SETCURSEL,4,2              ## @MCM_SETCURSEL
	.comm	_SW_SHOW,4,2                    ## @SW_SHOW
	.comm	_DTN_DROPDOWN,4,2               ## @DTN_DROPDOWN
L_.str.1:                               ## @.str.1
	.asciz	"dt:%p mc:%p mc parent:%p, desktop:%p\n"

	.no_dead_strip	_DATETIME_LButtonDown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DATETIME_LButtonDown
_DATETIME_LButtonDown:                  ; @DATETIME_LButtonDown
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x8, x1
	mov	x19, x0
	mov	x1, x2
	mov	x2, x8
	bl	_DATETIME_HitTest
	mov	x20, x0
	ldr	w0, [x19, #28]
	bl	_SetFocus
Lloh0:
	adrp	x8, _DTHT_NODATEMASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DTHT_NODATEMASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w9, w8, w20
Lloh3:
	adrp	x8, _DTHT_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DTHT_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w9, #0
	ccmp	w20, w8, #4, ne
	b.ne	LBB0_7
; %bb.1:
	cmp	w20, w8
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19]
	sub	w20, w8, #1
	b	LBB0_7
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	w8, [x8, w20, sxtw #2]
Lloh6:
	adrp	x9, _DT_STRING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DT_STRING@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_DATETIME_GetPrevDateField
	cmn	w0, #1
	b.eq	LBB0_18
; %bb.5:
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	w8, [x8, w0, sxtw #2]
LBB0_6:
Lloh9:
	adrp	x9, _FULLDAY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FULLDAY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_18
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_DATETIME_SetSelectedField
	ldr	x8, [x19, #16]
Lloh12:
	adrp	x9, _DTHT_MCPOPUP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DTHT_MCPOPUP@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x23, _TRUE@GOTPAGE
Lloh16:
	ldr	x23, [x23, _TRUE@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.8:
	ldr	w0, [x19, #36]
Lloh17:
	adrp	x8, _MCM_GETMINREQRECT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MCM_GETMINREQRECT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x3, sp, #16
	mov	w2, #0
	bl	_SendMessageW
	ldr	x8, [x23]
	str	x8, [x19, #88]
	ldr	w8, [x19, #24]
Lloh20:
	adrp	x9, _DTS_RIGHTALIGN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DTS_RIGHTALIGN@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	x8, [x19, #80]
	ldp	x10, x9, [sp, #32]
	sub	x9, x10, x9
	add	x1, x8, x9
	b	LBB0_11
LBB0_10:
	ldr	x1, [x19, #72]
LBB0_11:
	ldr	x2, [x19, #64]
	add	x0, sp, #16
	bl	_OffsetRect
	ldr	w0, [x19, #28]
	add	x2, sp, #16
	mov	w1, #0
	mov	w3, #2
	bl	_MapWindowPoints
	ldr	w0, [x19, #36]
	ldp	x2, x8, [sp, #32]
	sub	x4, x8, x2
	ldp	x3, x8, [sp, #16]
	sub	x5, x8, x3
	mov	w1, #0
	mov	w6, #0
	bl	_SetWindowPos
	ldr	w0, [x19, #36]
	bl	_IsWindowVisible
	cbz	x0, LBB0_13
; %bb.12:
	ldr	w0, [x19, #36]
Lloh23:
	adrp	x8, _SW_HIDE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SW_HIDE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	_ShowWindow
Lloh26:
	adrp	x8, _FALSE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	x8, [x19, #40]
Lloh29:
	adrp	x8, _DTN_CLOSEUP@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DTN_CLOSEUP@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_DATETIME_SendSimpleNotify
	b	LBB0_16
LBB0_13:
	mov	x20, x19
	ldr	w3, [x20, #48]!
	ldp	w2, w1, [x20, #4]
Lloh32:
	adrp	x0, l_.str@PAGE
Lloh33:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	ldur	w0, [x20, #-12]
Lloh34:
	adrp	x8, _MCM_SETCURSEL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MCM_SETCURSEL@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	w2, #0
	mov	x3, x20
	bl	_SendMessageW
	ldur	x8, [x20, #-8]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	w0, [x19, #36]
Lloh37:
	adrp	x8, _SW_SHOW@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SW_SHOW@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	bl	_ShowWindow
Lloh40:
	adrp	x8, _DTN_DROPDOWN@GOTPAGE
Lloh41:
	ldr	x8, [x8, _DTN_DROPDOWN@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_DATETIME_SendSimpleNotify
LBB0_15:
	ldr	x8, [x23]
	str	x8, [x19, #40]
LBB0_16:
	ldp	w22, w20, [x19, #32]
	ldr	w21, [x19, #28]
	bl	_GetDesktopWindow
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh43:
	adrp	x0, l_.str.1@PAGE
Lloh44:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	bl	_TRACE
LBB0_17:
	ldr	w0, [x19, #28]
	ldr	x2, [x23]
	mov	x1, #0
	bl	_InvalidateRect
LBB0_18:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_DTHT_NODATEMASK,4,2            ; @DTHT_NODATEMASK
	.comm	_DTHT_NONE,4,2                  ; @DTHT_NONE
	.comm	_DT_STRING,4,2                  ; @DT_STRING
	.comm	_FULLDAY,4,2                    ; @FULLDAY
	.comm	_DTHT_MCPOPUP,8,3               ; @DTHT_MCPOPUP
	.comm	_MCM_GETMINREQRECT,4,2          ; @MCM_GETMINREQRECT
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_DTS_RIGHTALIGN,4,2             ; @DTS_RIGHTALIGN
	.comm	_SW_HIDE,4,2                    ; @SW_HIDE
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_DTN_CLOSEUP,4,2                ; @DTN_CLOSEUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"update calendar %04d/%02d/%02d\n"

	.comm	_MCM_SETCURSEL,4,2              ; @MCM_SETCURSEL
	.comm	_SW_SHOW,4,2                    ; @SW_SHOW
	.comm	_DTN_DROPDOWN,4,2               ; @DTN_DROPDOWN
l_.str.1:                               ; @.str.1
	.asciz	"dt:%p mc:%p mc parent:%p, desktop:%p\n"

	.no_dead_strip	_DATETIME_LButtonDown
.subsections_via_symbols
