	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function DATETIME_ApplySelectedField
_DATETIME_ApplySelectedField:           ## @DATETIME_ApplySelectedField
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %ecx
	movq	_DTHT_DATEFIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	movq	_FALSE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r14
	movq	40(%rdi), %rdx
	movq	%rdx, -48(%rbp)
	movups	24(%rdi), %xmm0
	movaps	%xmm0, -64(%rbp)
	cmpl	$-1, %ecx
	je	LBB0_43
## %bb.1:
	movq	%rdi, %r12
	movl	4(%rdi), %edi
	testq	%rdi, %rdi
	je	LBB0_43
## %bb.2:
	movslq	%eax, %r8
	movq	8(%r12), %r9
	movl	(%r9,%r8,4), %eax
	orl	$8, %eax
	cmpl	$136, %eax
	jne	LBB0_3
## %bb.7:
	movq	16(%r12), %rax
	movl	(%rax), %edx
LBB0_13:
	movl	$0, 4(%r12)
	movl	(%r9,%r8,4), %eax
	addl	$-128, %eax
	cmpl	$17, %eax
	ja	LBB0_38
## %bb.14:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_31:
	andl	$-33, %edx
	cmpl	$65, %edx
	jne	LBB0_34
## %bb.32:
	movl	-52(%rbp), %eax
	cmpl	$12, %eax
	jl	LBB0_38
## %bb.33:
	addl	$-12, %eax
	jmp	LBB0_37
LBB0_3:
	testl	%edi, %edi
	jle	LBB0_4
## %bb.5:
	movq	16(%r12), %rax
	leaq	-1(%rdi), %rcx
	movl	%edi, %esi
	andl	$3, %esi
	cmpq	$3, %rcx
	jae	LBB0_8
## %bb.6:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	jmp	LBB0_10
LBB0_4:
	xorl	%edx, %edx
	jmp	LBB0_13
LBB0_15:
	movslq	-64(%rbp), %r15
	imulq	$1374389535, %r15, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	imull	$100, %eax, %eax
	addl	%r15d, %edx
	subl	%r15d, %eax
	addl	%edx, %eax
	movl	%eax, -64(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_DATETIME_IsDateInValidRange
	testl	%eax, %eax
	jne	LBB0_16
## %bb.17:
	movl	%r15d, -64(%rbp)
	jmp	LBB0_38
LBB0_30:
	movl	%edx, -44(%rbp)
	jmp	LBB0_38
LBB0_20:
	movl	%edx, -60(%rbp)
	jmp	LBB0_16
LBB0_29:
	movl	%edx, -48(%rbp)
	jmp	LBB0_38
LBB0_21:
	movl	%edx, -56(%rbp)
	jmp	LBB0_38
LBB0_28:
	movl	%edx, -52(%rbp)
	jmp	LBB0_38
LBB0_22:
	leal	-20(%rdx), %eax
	cmpl	$24, %edx
	cmovll	%edx, %eax
	cmpl	$13, %eax
	jl	LBB0_24
## %bb.23:
	movl	%eax, -52(%rbp)
	jmp	LBB0_38
LBB0_18:
	movl	-64(%rbp), %r15d
	movl	%edx, -64(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	callq	_DATETIME_IsDateInValidRange
	testl	%eax, %eax
	je	LBB0_19
LBB0_16:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_38:
	testq	%r14, %r14
	je	LBB0_41
## %bb.39:
	movslq	-56(%rbp), %rbx
	movl	-64(%rbp), %esi
	movl	-60(%rbp), %edi
	callq	_MONTHCAL_MonthLength
	cmpq	%rbx, %rax
	jge	LBB0_41
## %bb.40:
	movl	-64(%rbp), %esi
	movl	-60(%rbp), %edi
	callq	_MONTHCAL_MonthLength
	movl	%eax, -56(%rbp)
LBB0_41:
	movq	_GDT_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movq	%r12, %rdi
	callq	_DATETIME_SetSystemTime
	testq	%rax, %rax
	je	LBB0_43
## %bb.42:
	movq	%r12, %rdi
	callq	_DATETIME_SendDateTimeChangeNotify
LBB0_43:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	andl	$-4, %edi
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rdx,%rdx,4), %edx
	addl	%edx, %edx
	addl	(%rax,%rcx,4), %edx
	leal	(%rdx,%rdx,4), %edx
	addl	%edx, %edx
	addl	4(%rax,%rcx,4), %edx
	leal	(%rdx,%rdx,4), %edx
	addl	%edx, %edx
	addl	8(%rax,%rcx,4), %edx
	leal	(%rdx,%rdx,4), %edx
	movl	12(%rax,%rcx,4), %ebx
	leal	(%rbx,%rdx,2), %edx
	addl	$-53328, %edx                   ## imm = 0xFFFF2FB0
	addq	$4, %rcx
	cmpq	%rcx, %rdi
	jne	LBB0_9
LBB0_10:
	testq	%rsi, %rsi
	je	LBB0_13
## %bb.11:
	leaq	(%rax,%rcx,4), %rax
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rdx,%rdx,4), %edx
	movl	(%rax,%rcx,4), %edi
	leal	(%rdi,%rdx,2), %edx
	addl	$-48, %edx
	incq	%rcx
	cmpq	%rcx, %rsi
	jne	LBB0_12
	jmp	LBB0_13
LBB0_34:
	cmpl	$80, %edx
	jne	LBB0_38
## %bb.35:
	movl	-52(%rbp), %eax
	cmpl	$11, %eax
	jg	LBB0_38
## %bb.36:
	addl	$12, %eax
LBB0_37:
	movl	%eax, -52(%rbp)
	jmp	LBB0_38
LBB0_24:
	testl	%eax, %eax
	je	LBB0_38
## %bb.25:
	cmpl	$12, -52(%rbp)
	jl	LBB0_27
## %bb.26:
	leal	12(%rax), %ecx
	cmpl	$12, %eax
	cmovel	%eax, %ecx
	movl	%ecx, -52(%rbp)
	jmp	LBB0_38
LBB0_19:
	movl	%r15d, -64(%rbp)
	jmp	LBB0_38
LBB0_27:
	xorl	%ecx, %ecx
	cmpl	$12, %eax
	cmovnel	%eax, %ecx
	movl	%ecx, -52(%rbp)
	jmp	LBB0_38
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
LJTI0_0:
	.long	L0_0_set_31
	.long	L0_0_set_15
	.long	L0_0_set_30
	.long	L0_0_set_20
	.long	L0_0_set_29
	.long	L0_0_set_21
	.long	L0_0_set_28
	.long	L0_0_set_22
	.long	L0_0_set_31
	.long	L0_0_set_15
	.long	L0_0_set_30
	.long	L0_0_set_20
	.long	L0_0_set_29
	.long	L0_0_set_21
	.long	L0_0_set_28
	.long	L0_0_set_22
	.long	L0_0_set_18
	.long	L0_0_set_18
	.end_data_region
                                        ## -- End function
	.comm	_DTHT_DATEFIELD,4,2             ## @DTHT_DATEFIELD
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_GDT_VALID,4,2                  ## @GDT_VALID
	.no_dead_strip	_DATETIME_ApplySelectedField
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function DATETIME_ApplySelectedField
_DATETIME_ApplySelectedField:           ; @DATETIME_ApplySelectedField
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _DTHT_DATEFIELD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DTHT_DATEFIELD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _FALSE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _FALSE@GOTPAGEOFF]
Lloh5:
	ldr	x20, [x10]
	ldur	q0, [x0, #24]
	str	q0, [sp]
	ldr	x10, [x0, #40]
	str	x10, [sp, #16]
	cmn	w8, #1
	b.eq	LBB0_34
; %bb.1:
	mov	x19, x0
	ldr	w11, [x0, #4]
	cbz	w11, LBB0_34
; %bb.2:
	and	w8, w9, w8
	sxtw	x9, w8
	ldr	x10, [x19, #8]
	ldr	w8, [x10, x9, lsl #2]
	orr	w8, w8, #0x8
	cmp	w8, #136
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	b	LBB0_8
LBB0_4:
	cmp	w11, #1
	b.lt	LBB0_7
; %bb.5:
	mov	w8, #0
	ldr	x12, [x19, #16]
	mov	w13, #10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x12], #4
	madd	w8, w8, w13, w14
	sub	w8, w8, #48
	subs	x11, x11, #1
	b.ne	LBB0_6
	b	LBB0_8
LBB0_7:
	mov	w8, #0
LBB0_8:
	str	wzr, [x19, #4]
	ldr	w9, [x10, x9, lsl #2]
	sub	w9, w9, #128
	cmp	w9, #17
	b.hi	LBB0_29
; %bb.9:
Lloh6:
	adrp	x10, lJTI0_0@PAGE
Lloh7:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_10
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_10:
	and	w8, w8, #0xffffffdf
	cmp	w8, #65
	b.ne	LBB0_24
; %bb.11:
	ldr	w8, [sp, #12]
	subs	w8, w8, #12
	b.ge	LBB0_28
	b	LBB0_29
LBB0_12:
	ldrsw	x21, [sp]
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	mul	x9, x21, x9
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w9, w9, w10
	mov	w10, #100
	neg	w11, w21
	madd	w9, w9, w10, w11
	add	w8, w21, w8
	add	w8, w8, w9
	str	w8, [sp]
	mov	x1, sp
	mov	x0, x19
	bl	_DATETIME_IsDateInValidRange
	cbnz	w0, LBB0_23
; %bb.13:
	str	w21, [sp]
	b	LBB0_29
LBB0_14:
	str	w8, [sp, #20]
	b	LBB0_29
LBB0_15:
	str	w8, [sp, #4]
	b	LBB0_23
LBB0_16:
	str	w8, [sp, #16]
	b	LBB0_29
LBB0_17:
	str	w8, [sp, #8]
	b	LBB0_29
LBB0_18:
	sub	w9, w8, #20
	cmp	w8, #23
	csel	w8, w9, w8, gt
	cmp	w8, #13
	b.ge	LBB0_28
; %bb.19:
	cbz	w8, LBB0_29
; %bb.20:
	ldr	w9, [sp, #12]
	cmp	w9, #12
	b.lt	LBB0_27
; %bb.21:
	add	w9, w8, #12
	cmp	w8, #12
	csel	w8, w8, w9, eq
	b	LBB0_28
LBB0_22:
	ldr	w21, [sp]
	str	w8, [sp]
	mov	x1, sp
	mov	x0, x19
	bl	_DATETIME_IsDateInValidRange
	cbz	w0, LBB0_26
LBB0_23:
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh10:
	ldr	x20, [x8]
	b	LBB0_29
LBB0_24:
	ldr	w9, [sp, #12]
	cmp	w8, #80
	ccmp	w9, #11, #0, eq
	b.gt	LBB0_29
; %bb.25:
	add	w8, w9, #12
	b	LBB0_28
LBB0_26:
	str	w21, [sp]
	b	LBB0_29
LBB0_27:
	cmp	w8, #12
	csel	w8, wzr, w8, eq
LBB0_28:
	str	w8, [sp, #12]
LBB0_29:
	cbz	x20, LBB0_32
; %bb.30:
	ldp	w0, w20, [sp, #4]
                                        ; kill: def $w20 killed $w20 def $x20
	sxtw	x20, w20
	ldr	w1, [sp]
	bl	_MONTHCAL_MonthLength
	cmp	x0, x20
	b.ge	LBB0_32
; %bb.31:
	ldp	w1, w0, [sp]
	bl	_MONTHCAL_MonthLength
	str	w0, [sp, #8]
LBB0_32:
Lloh11:
	adrp	x8, _GDT_VALID@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GDT_VALID@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	bl	_DATETIME_SetSystemTime
	cbz	x0, LBB0_34
; %bb.33:
	mov	x0, x19
	bl	_DATETIME_SendDateTimeChangeNotify
LBB0_34:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_14-LBB0_10)>>2
	.byte	(LBB0_15-LBB0_10)>>2
	.byte	(LBB0_16-LBB0_10)>>2
	.byte	(LBB0_17-LBB0_10)>>2
	.byte	(LBB0_28-LBB0_10)>>2
	.byte	(LBB0_18-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_14-LBB0_10)>>2
	.byte	(LBB0_15-LBB0_10)>>2
	.byte	(LBB0_16-LBB0_10)>>2
	.byte	(LBB0_17-LBB0_10)>>2
	.byte	(LBB0_28-LBB0_10)>>2
	.byte	(LBB0_18-LBB0_10)>>2
	.byte	(LBB0_22-LBB0_10)>>2
	.byte	(LBB0_22-LBB0_10)>>2
                                        ; -- End function
	.comm	_DTHT_DATEFIELD,4,2             ; @DTHT_DATEFIELD
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_GDT_VALID,4,2                  ; @GDT_VALID
	.no_dead_strip	_DATETIME_ApplySelectedField
.subsections_via_symbols
