	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function localsub
_localsub:                              ## @localsub
	.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
	movq	%rdx, %r14
	movq	(%rdi), %r12
	movq	%r12, -56(%rbp)
	movq	_lclptr@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	cmpq	$0, 48(%r13)
	je	LBB0_2
## %bb.1:
	movq	(%r13), %r8
	movq	(%r8), %r9
	cmpq	%r9, %r12
	jl	LBB0_5
LBB0_2:
	cmpq	$0, 40(%r13)
	je	LBB0_9
## %bb.3:
	movq	(%r13), %r8
	movslq	8(%r13), %rax
	cmpq	-8(%r8,%rax,8), %r12
	jle	LBB0_10
## %bb.4:
	movq	(%r8), %r9
LBB0_5:
	movq	%r9, %rax
	subq	%r12, %rax
	jg	LBB0_7
## %bb.6:
	movslq	8(%r13), %rcx
	movq	%r12, %rax
	subq	-8(%r8,%rcx,8), %rax
LBB0_7:
	decq	%rax
	movq	_YEARSPERREPEAT@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_16
## %bb.8:
	cqto
	idivq	%rcx
	jmp	LBB0_17
LBB0_9:
	movl	8(%r13), %eax
LBB0_10:
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movq	(%r13), %rcx
	cmpq	(%rcx), %r12
	jge	LBB0_24
LBB0_12:
	movq	24(%r13), %r15
	movq	%r15, %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rcx)
	je	LBB0_34
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	incq	%rax
	movslq	12(%r13), %rdx
	addq	$24, %rcx
	cmpq	%rdx, %rax
	jl	LBB0_13
## %bb.15:
	xorl	%eax, %eax
	jmp	LBB0_34
LBB0_16:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_17:
	movq	_AVGSECSPERYEAR@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	movq	%rax, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	je	LBB0_19
## %bb.18:
	cqto
	idivq	%rdi
	movq	%rax, %r15
	jmp	LBB0_20
LBB0_19:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %r15d
LBB0_20:
	incq	%r15
	imulq	%rcx, %rdi
	imulq	%r15, %rdi
	movq	%rdi, %rax
	negq	%rax
	cmpq	%r12, %r9
	cmovgq	%rdi, %rax
	addq	%r12, %rax
	movq	%rax, -48(%rbp)
	cmpq	%r9, %rax
	jl	LBB0_21
## %bb.22:
	movslq	8(%r13), %rcx
	cmpq	-8(%r8,%rcx,8), %rax
	jle	LBB0_30
LBB0_21:
	xorl	%eax, %eax
	jmp	LBB0_35
LBB0_24:
	cmpl	$2, %eax
	jl	LBB0_32
## %bb.25:
	movl	$1, %edx
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_27 Depth=1
	incl	%esi
	movl	%esi, %edx
	cmpl	%eax, %edx
	jge	LBB0_29
LBB0_27:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rax,%rdx), %esi
	sarl	%esi
	movslq	%esi, %rdi
	cmpq	(%rcx,%rdi,8), %r12
	jge	LBB0_26
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movl	%esi, %eax
	cmpl	%eax, %edx
	jl	LBB0_27
LBB0_29:
	decl	%edx
	movslq	%edx, %rax
	jmp	LBB0_33
LBB0_30:
	leaq	-48(%rbp), %rdi
	movq	%r14, %rdx
	callq	_localsub
	cmpq	%r14, %rax
	jne	LBB0_35
## %bb.31:
	movq	(%r13), %rax
	imulq	(%rbx), %r15
	movq	%r15, %rcx
	negq	%rcx
	cmpq	(%rax), %r12
	cmovgeq	%r15, %rcx
	addq	%rcx, (%r14)
	movq	%r14, %rax
	jmp	LBB0_35
LBB0_32:
	xorl	%eax, %eax
LBB0_33:
	movq	24(%r13), %r15
	movq	32(%r13), %rcx
	movq	(%rcx,%rax,8), %rax
LBB0_34:
	cltq
	leaq	(%rax,%rax,2), %rbx
	movl	16(%r15,%rbx,8), %esi
	leaq	-56(%rbp), %rdi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_timesub
	movq	(%r15,%rbx,8), %rcx
	movq	%rcx, 8(%r14)
	movq	8(%r15,%rbx,8), %rdx
	shlq	$2, %rdx
	addq	16(%r13), %rdx
	movq	_tzname@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rdx, (%rsi,%rcx,8)
LBB0_35:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lclptr,8,3                     ## @lclptr
	.comm	_YEARSPERREPEAT,8,3             ## @YEARSPERREPEAT
	.comm	_AVGSECSPERYEAR,8,3             ## @AVGSECSPERYEAR
	.comm	_tzname,8,3                     ## @tzname
	.no_dead_strip	_localsub
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function localsub
_localsub:                              ; @localsub
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	ldr	x21, [x0]
	str	x21, [sp, #8]
Lloh0:
	adrp	x8, _lclptr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lclptr@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	x9, [x8]
	cmp	x21, x9
	b.lt	LBB0_5
LBB0_2:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_10
; %bb.3:
	ldr	x8, [x20]
	ldr	w9, [x20, #8]
	sub	w10, w9, #1
	ldr	x10, [x8, w10, sxtw #3]
	cmp	x21, x10
	b.le	LBB0_11
; %bb.4:
	ldr	x9, [x8]
LBB0_5:
	subs	x10, x9, x21
	b.gt	LBB0_7
; %bb.6:
	ldrsw	x10, [x20, #8]
	add	x10, x8, x10, lsl #3
	ldur	x10, [x10, #-8]
	sub	x10, x21, x10
LBB0_7:
	sub	x10, x10, #1
Lloh3:
	adrp	x22, _YEARSPERREPEAT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _YEARSPERREPEAT@GOTPAGEOFF]
	ldr	x11, [x22]
	sdiv	x10, x10, x11
Lloh5:
	adrp	x12, _AVGSECSPERYEAR@GOTPAGE
Lloh6:
	ldr	x12, [x12, _AVGSECSPERYEAR@GOTPAGEOFF]
Lloh7:
	ldr	x12, [x12]
	sdiv	x10, x10, x12
	add	x23, x10, #1
	mul	x10, x12, x11
	mul	x10, x10, x23
	cmp	x9, x21
	cneg	x10, x10, le
	add	x10, x10, x21
	cmp	x10, x9
	str	x10, [sp]
	b.lt	LBB0_9
; %bb.8:
	ldrsw	x9, [x20, #8]
	add	x8, x8, x9, lsl #3
	ldur	x8, [x8, #-8]
	cmp	x10, x8
	b.le	LBB0_21
LBB0_9:
	mov	x0, #0
	b	LBB0_26
LBB0_10:
	ldr	w9, [x20, #8]
LBB0_11:
	cbz	w9, LBB0_13
; %bb.12:
	ldr	x8, [x20]
	ldr	x10, [x8]
	cmp	x21, x10
	b.ge	LBB0_17
LBB0_13:
	mov	x9, #0
	ldr	x8, [x20, #24]
	mov	x10, x8
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cbz	x11, LBB0_25
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x9, x9, #1
	ldrsw	x11, [x20, #12]
	add	x10, x10, #24
	cmp	x9, x11
	b.lt	LBB0_14
; %bb.16:
	mov	x9, #0
	b	LBB0_25
LBB0_17:
	cmp	w9, #2
	b.lt	LBB0_23
; %bb.18:
	mov	w10, #1
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	add	w11, w9, w10
	asr	w11, w11, #1
	ldr	x12, [x8, w11, sxtw #3]
	cmp	x21, x12
	csinc	w10, w10, w11, lt
	csel	w9, w11, w9, lt
	cmp	w10, w9
	b.lt	LBB0_19
; %bb.20:
	sub	w8, w10, #1
	sxtw	x9, w8
	b	LBB0_24
LBB0_21:
	mov	x0, sp
	mov	x2, x19
	bl	_localsub
	cmp	x0, x19
	b.ne	LBB0_26
; %bb.22:
	ldr	x8, [x19]
	ldr	x9, [x20]
	ldr	x9, [x9]
	ldr	x10, [x22]
	mul	x10, x10, x23
	cmp	x21, x9
	cneg	x9, x10, lt
	add	x8, x8, x9
	str	x8, [x19]
	mov	x0, x19
	b	LBB0_26
LBB0_23:
	mov	x9, #0
LBB0_24:
	ldp	x8, x10, [x20, #24]
	ldr	x9, [x10, x9, lsl #3]
LBB0_25:
	mov	w10, #24
	smaddl	x21, w9, w10, x8
	ldr	w1, [x21, #16]
	add	x0, sp, #8
	mov	x2, x20
	mov	x3, x19
	bl	_timesub
	ldr	x8, [x21]
	str	x8, [x19, #8]
	ldr	x9, [x20, #16]
	ldr	x10, [x21, #8]
	add	x9, x9, x10, lsl #2
Lloh8:
	adrp	x10, _tzname@GOTPAGE
Lloh9:
	ldr	x10, [x10, _tzname@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	str	x9, [x10, x8, lsl #3]
LBB0_26:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_lclptr,8,3                     ; @lclptr
	.comm	_YEARSPERREPEAT,8,3             ; @YEARSPERREPEAT
	.comm	_AVGSECSPERYEAR,8,3             ; @AVGSECSPERYEAR
	.comm	_tzname,8,3                     ; @tzname
	.no_dead_strip	_localsub
.subsections_via_symbols
