	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_leapsec_autokey_tai            ## -- Begin function leapsec_autokey_tai
	.p2align	4, 0x90
_leapsec_autokey_tai:                   ## @leapsec_autokey_tai
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r12d
	movl	%edi, %r14d
	movq	_FALSE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_leapsec_get_table
	cmpl	$10, %r14d
	jl	LBB0_14
## %bb.1:
	movq	%rax, %rbx
	cmpq	$0, 8(%rax)
	jne	LBB0_14
## %bb.2:
	movl	16(%rbx), %eax
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	(%rbx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 4(%rcx,%rdx,8)
	je	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_5
LBB0_6:
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_ntpcal_ntp_to_ntp
	movl	%eax, -44(%rbp)
	leaq	-72(%rbp), %rdi
	leaq	-44(%rbp), %r15
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_fetch_leap_era
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	movl	$20, %esi
	callq	_addv64i32
	movq	%rax, -56(%rbp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ucmpv64
	testq	%rax, %rax
	js	LBB0_14
## %bb.7:
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	movl	$-20, %esi
	callq	_addv64i32
	movq	%rax, -64(%rbp)
	leaq	-44(%rbp), %rdi
	movq	%r15, %rsi
	callq	_ucmpv64
	testq	%rax, %rax
	jg	LBB0_14
## %bb.8:
	subl	-72(%rbp), %r14d
	movslq	%r14d, %rax
	addq	%rax, 8(%rbx)
	addl	%eax, 20(%rbx)
	addl	%eax, 24(%rbx)
	movl	16(%rbx), %eax
	movq	_TRUE@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movq	(%rbx), %rcx
	cmpl	$9, %eax
	jae	LBB0_11
## %bb.10:
	xorl	%edx, %edx
	jmp	LBB0_13
LBB0_11:
	movl	%eax, %edx
	andl	$7, %edx
	testq	%rdx, %rdx
	movl	$8, %esi
	cmovneq	%rdx, %rsi
	movq	%rax, %rdx
	subq	%rsi, %rdx
	movd	%r14d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rcx,%rsi,8), %xmm1
	movups	16(%rcx,%rsi,8), %xmm2
	shufps	$136, %xmm2, %xmm1              ## xmm1 = xmm1[0,2],xmm2[0,2]
	movups	32(%rcx,%rsi,8), %xmm2
	movups	48(%rcx,%rsi,8), %xmm3
	paddd	%xmm0, %xmm1
	movd	%xmm1, (%rcx,%rsi,8)
	pextrd	$1, %xmm1, 8(%rcx,%rsi,8)
	pextrd	$2, %xmm1, 16(%rcx,%rsi,8)
	pextrd	$3, %xmm1, 24(%rcx,%rsi,8)
	shufps	$136, %xmm3, %xmm2              ## xmm2 = xmm2[0,2],xmm3[0,2]
	paddd	%xmm0, %xmm2
	movd	%xmm2, 32(%rcx,%rsi,8)
	pextrd	$1, %xmm2, 40(%rcx,%rsi,8)
	pextrd	$2, %xmm2, 48(%rcx,%rsi,8)
	pextrd	$3, %xmm2, 56(%rcx,%rsi,8)
	addq	$8, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_12
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	addl	%r14d, (%rcx,%rdx,8)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_13
LBB0_14:
	movl	(%r13), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_leapsec_autokey_tai            ; -- Begin function leapsec_autokey_tai
	.p2align	2
_leapsec_autokey_tai:                   ; @leapsec_autokey_tai
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _FALSE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_leapsec_get_table
	cmp	w20, #10
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_9
; %bb.2:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_6
; %bb.3:
	ldr	x9, [x19]
	add	x9, x9, #4
Lloh2:
	adrp	x23, _FALSE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	cbz	w10, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.ne	LBB0_4
LBB0_6:
	mov	x0, x22
	mov	x1, x21
	bl	_ntpcal_ntp_to_ntp
	str	w0, [sp, #4]
	add	x22, sp, #8
	add	x0, sp, #8
	add	x2, sp, #4
	mov	x1, x19
	bl	_fetch_leap_era
	add	x21, x22, #16
	mov	x0, x21
	mov	w1, #20
	bl	_addv64i32
	str	x0, [sp, #24]
	add	x0, sp, #4
	mov	x1, x21
	bl	_ucmpv64
	tbnz	x0, #63, LBB0_8
; %bb.7:
	add	x21, x22, #8
	mov	x0, x21
	mov	w1, #-20
	bl	_addv64i32
	str	x0, [sp, #16]
	add	x0, sp, #4
	mov	x1, x21
	bl	_ucmpv64
	cmp	x0, #0
	b.le	LBB0_10
LBB0_8:
Lloh4:
	adrp	x23, _FALSE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x23]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
	ldr	w8, [sp, #8]
	sub	w8, w20, w8
	ldr	x9, [x19, #8]
	add	x9, x9, w8, sxtw
	str	x9, [x19, #8]
	ldur	d0, [x19, #20]
	dup.2s	v1, w8
	add.2s	v0, v0, v1
	stur	d0, [x19, #20]
	ldr	w9, [x19, #16]
	cbz	w9, LBB0_16
; %bb.11:
	ldr	x10, [x19]
	cmp	w9, #4
	b.hs	LBB0_13
; %bb.12:
	mov	x11, #0
	b	LBB0_17
LBB0_13:
	and	x11, x9, #0xfffffffc
	add	x12, x10, #16
	mov	x13, x11
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldur	w14, [x12, #-16]
	ldur	w15, [x12, #-8]
	ldr	w16, [x12]
	ldr	w17, [x12, #8]
	add	w14, w14, w8
	add	w15, w15, w8
	add	w16, w16, w8
	add	w17, w17, w8
	stur	w14, [x12, #-16]
	stur	w15, [x12, #-8]
	str	w16, [x12]
	str	w17, [x12, #8]
	add	x12, x12, #32
	subs	x13, x13, #4
	b.ne	LBB0_14
; %bb.15:
	cmp	x11, x9
	b.ne	LBB0_17
LBB0_16:
Lloh6:
	adrp	x23, _TRUE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _TRUE@GOTPAGEOFF]
	b	LBB0_9
LBB0_17:
	add	x10, x10, x11, lsl #3
	sub	x9, x9, x11
Lloh8:
	adrp	x23, _TRUE@GOTPAGE
Lloh9:
	ldr	x23, [x23, _TRUE@GOTPAGEOFF]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	add	w11, w11, w8
	str	w11, [x10], #8
	subs	x9, x9, #1
	b.ne	LBB0_18
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
