	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DATETIME_SetSystemTime
_DATETIME_SetSystemTime:                ## @DATETIME_SetSystemTime
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FALSE@GOTPCREL(%rip), %r12
	testq	%rdx, %rdx
	je	LBB0_17
## %bb.1:
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdx), %rsi
	movl	8(%rdx), %edx
	movl	12(%rbx), %ecx
	movl	16(%rbx), %r8d
	movl	20(%rbx), %r9d
	movl	24(%rbx), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movq	_GDT_VALID@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_13
## %bb.2:
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.3:
	movl	8(%rbx), %edi
	leal	-13(%rdi), %eax
	cmpl	$-12, %eax
	jb	LBB0_17
## %bb.4:
	movl	12(%rbx), %r15d
	testl	%r15d, %r15d
	jle	LBB0_17
## %bb.5:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_MONTHCAL_MonthLength
	cmpl	%eax, %r15d
	jg	LBB0_17
## %bb.6:
	cmpl	$23, 16(%rbx)
	jg	LBB0_17
## %bb.7:
	cmpl	$59, 20(%rbx)
	jg	LBB0_17
## %bb.8:
	cmpl	$59, 24(%rbx)
	jg	LBB0_17
## %bb.9:
	cmpl	$999, 28(%rbx)                  ## imm = 0x3E7
	jg	LBB0_17
## %bb.10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_DATETIME_IsDateInValidRange
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rsi, 16(%r14)
	leaq	24(%r14), %r15
	movups	(%rbx), %xmm0
	movups	16(%rbx), %xmm1
	movups	%xmm0, 24(%r14)
	movups	%xmm1, 40(%r14)
	movq	%r15, %rdi
	callq	_MONTHCAL_CalculateDayOfWeek
	movl	56(%r14), %edi
	movq	_MCM_SETCURSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	callq	_SendMessageW
	movq	_BST_CHECKED@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_13:
	movq	_DTS_SHOWNONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_17
## %bb.14:
	movq	_GDT_NONE@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_17
## %bb.15:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	movq	_BST_UNCHECKED@GOTPCREL(%rip), %rax
LBB0_16:
	movl	8(%r14), %edi
	movq	_BM_SETCHECK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movl	4(%r14), %edi
	movq	_TRUE@GOTPCREL(%rip), %r12
	movq	(%r12), %rdx
	xorl	%esi, %esi
	callq	_InvalidateRect
LBB0_17:
	movq	(%r12), %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_TRUE@GOTPCREL(%rip), %r12
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%04d/%02d/%02d %02d:%02d:%02d\n"

	.comm	_GDT_VALID,8,3                  ## @GDT_VALID
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_MCM_SETCURSEL,4,2              ## @MCM_SETCURSEL
	.comm	_BM_SETCHECK,4,2                ## @BM_SETCHECK
	.comm	_BST_CHECKED,4,2                ## @BST_CHECKED
	.comm	_DTS_SHOWNONE,4,2               ## @DTS_SHOWNONE
	.comm	_GDT_NONE,8,3                   ## @GDT_NONE
	.comm	_BST_UNCHECKED,4,2              ## @BST_UNCHECKED
	.no_dead_strip	_DATETIME_SetSystemTime
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DATETIME_SetSystemTime
_DATETIME_SetSystemTime:                ; @DATETIME_SetSystemTime
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x2, LBB0_10
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x1, [x2]
	ldr	w2, [x2, #8]
	ldp	w3, w4, [x20, #12]
	ldp	w5, w6, [x20, #20]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
Lloh2:
	adrp	x8, _GDT_VALID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GDT_VALID@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_12
; %bb.2:
	ldr	x1, [x20]
	cbz	x1, LBB0_10
; %bb.3:
	ldr	w0, [x20, #8]
	sub	w8, w0, #13
	cmn	w8, #12
	b.lo	LBB0_10
; %bb.4:
	ldr	w21, [x20, #12]
	cmp	w21, #1
	b.lt	LBB0_10
; %bb.5:
	bl	_MONTHCAL_MonthLength
	cmp	w21, w0
	b.gt	LBB0_10
; %bb.6:
	ldr	w8, [x20, #16]
	cmp	w8, #23
	b.gt	LBB0_10
; %bb.7:
	ldr	w8, [x20, #20]
	cmp	w8, #59
	b.gt	LBB0_10
; %bb.8:
	ldr	w8, [x20, #24]
	cmp	w8, #59
	b.gt	LBB0_10
; %bb.9:
	ldr	w8, [x20, #28]
	cmp	w8, #999
	b.le	LBB0_15
LBB0_10:
Lloh5:
	adrp	x22, _FALSE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
LBB0_11:
	ldr	x0, [x22]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	w8, [x19]
Lloh7:
	adrp	x9, _DTS_SHOWNONE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _DTS_SHOWNONE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _GDT_NONE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _GDT_NONE@GOTPAGEOFF]
	and	w8, w9, w8
Lloh12:
	ldr	x9, [x10]
Lloh13:
	adrp	x22, _FALSE@GOTPAGE
Lloh14:
	ldr	x22, [x22, _FALSE@GOTPAGEOFF]
	cmp	w8, #0
	ccmp	x9, x21, #0, ne
	b.ne	LBB0_11
; %bb.13:
	ldr	x8, [x22]
	str	x8, [x19, #16]
Lloh15:
	adrp	x8, _BST_UNCHECKED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BST_UNCHECKED@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x19, #8]
Lloh17:
	adrp	x9, _BM_SETCHECK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BM_SETCHECK@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x9]
	ldr	w2, [x8]
	mov	w3, #0
	bl	_SendMessageW
	ldr	w0, [x19, #4]
Lloh20:
	adrp	x22, _TRUE@GOTPAGE
Lloh21:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
	ldr	x2, [x22]
	mov	x1, #0
	bl	_InvalidateRect
	b	LBB0_11
LBB0_15:
	mov	x0, x19
	mov	x1, x20
	bl	_DATETIME_IsDateInValidRange
Lloh22:
	adrp	x22, _TRUE@GOTPAGE
Lloh23:
	ldr	x22, [x22, _TRUE@GOTPAGEOFF]
	cbz	w0, LBB0_11
; %bb.16:
	ldr	x1, [x22]
	str	x1, [x19, #16]
	add	x21, x19, #24
	ldp	q1, q0, [x20]
	stur	q1, [x19, #24]
	stur	q0, [x19, #40]
	mov	x0, x21
	bl	_MONTHCAL_CalculateDayOfWeek
	ldr	w0, [x19, #56]
Lloh24:
	adrp	x8, _MCM_SETCURSEL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MCM_SETCURSEL@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	w2, #0
	mov	x3, x21
	bl	_SendMessageW
Lloh27:
	adrp	x8, _BST_CHECKED@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BST_CHECKED@GOTPAGEOFF]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%04d/%02d/%02d %02d:%02d:%02d\n"

	.comm	_GDT_VALID,8,3                  ; @GDT_VALID
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_MCM_SETCURSEL,4,2              ; @MCM_SETCURSEL
	.comm	_BM_SETCHECK,4,2                ; @BM_SETCHECK
	.comm	_BST_CHECKED,4,2                ; @BST_CHECKED
	.comm	_DTS_SHOWNONE,4,2               ; @DTS_SHOWNONE
	.comm	_GDT_NONE,8,3                   ; @GDT_NONE
	.comm	_BST_UNCHECKED,4,2              ; @BST_UNCHECKED
	.no_dead_strip	_DATETIME_SetSystemTime
.subsections_via_symbols
