	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ptimeset_nxtime                ## -- Begin function ptimeset_nxtime
	.p2align	4, 0x90
_ptimeset_nxtime:                       ## @ptimeset_nxtime
	.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
	movl	$-1, %eax
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.1:
	movq	%rdi, %r14
	movq	16(%rdi), %rcx
	movq	%rcx, -48(%rbp)
	movups	(%rdi), %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	(%rdi), %ecx
	movq	_TSPEC_YEAR@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_22
## %bb.2:
	movq	_TSPEC_MONTHOFYEAR@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_9
## %bb.3:
	cmpl	$1, 8(%r14)
	jne	LBB0_7
## %bb.4:
	cmpl	$29, 12(%r14)
	jne	LBB0_7
## %bb.5:
	movl	-48(%rbp), %ebx
	leal	4(%rbx), %esi
	movl	%esi, -48(%rbp)
	movl	$1, %edi
	callq	_days_pmonth
	cmpl	$28, %eax
	jg	LBB0_8
## %bb.6:
	addl	$8, %ebx
	movl	%ebx, -48(%rbp)
	jmp	LBB0_8
LBB0_7:
	incl	-48(%rbp)
LBB0_8:
	leaq	-56(%rbp), %rdi
	movl	$-1, -44(%rbp)
	callq	_mktime
	movl	%eax, -60(%rbp)
	jmp	LBB0_21
LBB0_9:
	movq	_TSPEC_LDAYOFMONTH@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_14
## %bb.10:
	movl	8(%r14), %edi
	cmpl	$10, %edi
	jg	LBB0_13
## %bb.11:
	incl	%edi
	movl	16(%r14), %esi
	jmp	LBB0_12
LBB0_14:
	movq	_TSPEC_DAYOFMONTH@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_18
## %bb.15:
	movl	8(%r14), %edi
	movl	16(%r14), %esi
	callq	_days_pmonth
	movl	8(%r14), %edx
	movl	16(%r14), %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r15d
	leal	1(%rdx), %r12d
	xorl	%eax, %eax
	cmpl	$11, %edx
	setge	%al
	cmovgel	%r13d, %r12d
	addl	%eax, %ebx
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_days_pmonth
	movl	%eax, %ecx
	leal	(%rcx,%r15), %eax
	movl	%r12d, %edx
	cmpl	12(%r14), %ecx
	jl	LBB0_16
	jmp	LBB0_17
LBB0_13:
	movl	16(%r14), %esi
	incl	%esi
	xorl	%edi, %edi
LBB0_12:
	callq	_days_pmonth
	movl	%eax, %r15d
LBB0_17:
	testl	%r15d, %r15d
	je	LBB0_21
LBB0_20:
	movq	_SECS_PER_HOUR@GOTPCREL(%rip), %rax
	imull	(%rax), %r15d
	leal	(%r15,%r15,2), %eax
	shll	$3, %eax
	leaq	-60(%rbp), %rdi
	addl	%eax, -60(%rbp)
	callq	_localtime
	movups	(%rax), %xmm0
	movups	%xmm0, -56(%rbp)
LBB0_21:
	leaq	-64(%rbp), %rdi
	movq	%r14, %rsi
	callq	_ptime_adjust4dst
	movaps	-64(%rbp), %xmm0
	movups	%xmm0, (%r14)
	movq	-48(%rbp), %rax
	movq	%rax, 16(%r14)
	xorl	%eax, %eax
LBB0_22:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_TSPEC_DAYOFWEEK@GOTPCREL(%rip), %rax
	movl	$7, %r15d
	testl	%ecx, (%rax)
	jne	LBB0_20
## %bb.19:
	movq	_TSPEC_HOUROFDAY@GOTPCREL(%rip), %rax
	movl	$1, %r15d
	testl	%ecx, (%rax)
	jne	LBB0_20
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_TSPEC_YEAR,4,2                 ## @TSPEC_YEAR
	.comm	_TSPEC_MONTHOFYEAR,4,2          ## @TSPEC_MONTHOFYEAR
	.comm	_TSPEC_LDAYOFMONTH,4,2          ## @TSPEC_LDAYOFMONTH
	.comm	_TSPEC_DAYOFMONTH,4,2           ## @TSPEC_DAYOFMONTH
	.comm	_TSPEC_DAYOFWEEK,4,2            ## @TSPEC_DAYOFWEEK
	.comm	_TSPEC_HOUROFDAY,4,2            ## @TSPEC_HOUROFDAY
	.comm	_SECS_PER_HOUR,4,2              ## @SECS_PER_HOUR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ptimeset_nxtime                ; -- Begin function ptimeset_nxtime
	.p2align	2
_ptimeset_nxtime:                       ; @ptimeset_nxtime
	.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
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	q0, [x0]
	str	q0, [sp]
	ldr	x8, [x0, #16]
	str	x8, [sp, #16]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _TSPEC_YEAR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TSPEC_YEAR@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
	mov	w0, #-1
	b	LBB0_22
LBB0_3:
Lloh3:
	adrp	x9, _TSPEC_MONTHOFYEAR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TSPEC_MONTHOFYEAR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.4:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.5:
	ldr	w8, [x19, #12]
	cmp	w8, #29
	b.ne	LBB0_8
; %bb.6:
	ldr	w20, [sp, #16]
	add	w1, w20, #4
	str	w1, [sp, #16]
	mov	w0, #1
	bl	_days_pmonth
	cmp	w0, #28
	b.gt	LBB0_10
; %bb.7:
	add	w8, w20, #8
	b	LBB0_9
LBB0_8:
	ldr	w8, [sp, #16]
	add	w8, w8, #1
LBB0_9:
	str	w8, [sp, #16]
LBB0_10:
	mov	x8, sp
	orr	x0, x8, #0x8
	mov	w8, #-1
	str	w8, [sp, #20]
	bl	_mktime
	str	w0, [sp, #4]
	b	LBB0_21
LBB0_11:
Lloh6:
	adrp	x9, _TSPEC_LDAYOFMONTH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TSPEC_LDAYOFMONTH@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.12:
	ldr	w8, [x19, #8]
	cmp	w8, #10
	b.gt	LBB0_18
; %bb.13:
	add	w0, w8, #1
	ldr	w1, [x19, #16]
	b	LBB0_19
LBB0_14:
Lloh9:
	adrp	x9, _TSPEC_DAYOFMONTH@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TSPEC_DAYOFMONTH@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_23
; %bb.15:
	ldr	w0, [x19, #8]
	ldr	w1, [x19, #16]
	bl	_days_pmonth
	ldr	w9, [x19, #8]
	ldr	w21, [x19, #16]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x20, x0
	cmp	w9, #11
	csinc	w22, wzr, w9, ge
	cmp	w9, #10
	cinc	w21, w21, gt
	mov	x0, x22
	mov	x1, x21
	bl	_days_pmonth
	mov	x8, x0
	ldr	w10, [x19, #12]
	add	w0, w0, w20
	mov	x9, x22
	cmp	w8, w10
	b.lt	LBB0_16
; %bb.17:
	cbnz	w20, LBB0_20
	b	LBB0_21
LBB0_18:
	ldr	w8, [x19, #16]
	add	w1, w8, #1
	mov	w0, #0
LBB0_19:
	bl	_days_pmonth
	mov	x20, x0
	cbz	w0, LBB0_21
LBB0_20:
Lloh12:
	adrp	x8, _SECS_PER_HOUR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SECS_PER_HOUR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mul	w8, w20, w8
	mov	w9, #24
	mov	x10, sp
	orr	x0, x10, #0x4
	ldr	w10, [sp, #4]
	madd	w8, w8, w9, w10
	str	w8, [sp, #4]
	bl	_localtime
	ldr	q0, [x0]
	stur	q0, [sp, #8]
LBB0_21:
	mov	x0, sp
	mov	x1, x19
	bl	_ptime_adjust4dst
	mov	w0, #0
	ldr	q0, [sp]
	str	q0, [x19]
	ldr	x8, [sp, #16]
	str	x8, [x19, #16]
LBB0_22:
	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
LBB0_23:
Lloh15:
	adrp	x9, _TSPEC_DAYOFWEEK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TSPEC_DAYOFWEEK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_25
; %bb.24:
	mov	w20, #7
	b	LBB0_20
LBB0_25:
Lloh18:
	adrp	x9, _TSPEC_HOUROFDAY@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TSPEC_HOUROFDAY@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.26:
	mov	w20, #1
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_TSPEC_YEAR,4,2                 ; @TSPEC_YEAR
	.comm	_TSPEC_MONTHOFYEAR,4,2          ; @TSPEC_MONTHOFYEAR
	.comm	_TSPEC_LDAYOFMONTH,4,2          ; @TSPEC_LDAYOFMONTH
	.comm	_TSPEC_DAYOFMONTH,4,2           ; @TSPEC_DAYOFMONTH
	.comm	_TSPEC_DAYOFWEEK,4,2            ; @TSPEC_DAYOFWEEK
	.comm	_TSPEC_HOUROFDAY,4,2            ; @TSPEC_HOUROFDAY
	.comm	_SECS_PER_HOUR,4,2              ; @SECS_PER_HOUR
.subsections_via_symbols
