	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function leapadd
_leapadd:                               ## @leapadd
	.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	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	_leapcnt@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r14d
	testl	%esi, %esi
	movl	$1, %eax
	cmovnel	%ecx, %eax
	addl	%r14d, %eax
	movq	_TZ_MAX_LEAPS@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jg	LBB0_14
## %bb.1:
	movq	_trans@GOTPCREL(%rip), %rax
	movq	(%rax), %r11
	xorl	%r9d, %r9d
	testl	%r14d, %r14d
	jle	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, (%r11,%r9,8)
	jge	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r9
	cmpq	%r9, %r14
	jne	LBB0_2
## %bb.4:
	movl	%r14d, %r9d
LBB0_5:
	movl	%r9d, %r10d
	movq	_corr@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_roll@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movslq	%r9d, %r15
	movq	%r15, %rax
	notq	%rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movl	%r14d, %r12d
	subl	%r9d, %r12d
	jle	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movslq	%r14d, %r14
	movq	%r14, %rax
	testb	$1, %r12b
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	-1(%r14), %rax
	movq	-8(%r11,%r14,8), %rbx
	movq	%rbx, (%r11,%r14,8)
	movl	-4(%r13,%r14,4), %ebx
	movl	%ebx, (%r13,%r14,4)
	movl	-4(%r8,%r14,4), %ebx
	movl	%ebx, (%r8,%r14,4)
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	addq	-56(%rbp), %r14                 ## 8-byte Folded Reload
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-8(%r11,%rax,8), %rbx
	movq	%rbx, (%r11,%rax,8)
	movl	-4(%r13,%rax,4), %ebx
	movl	%ebx, (%r13,%rax,4)
	movl	-4(%r8,%rax,4), %ebx
	movl	%ebx, (%r8,%rax,4)
	movq	-16(%r11,%rax,8), %rbx
	movq	%rbx, -8(%r11,%rax,8)
	movl	-8(%r13,%rax,4), %ebx
	movl	%ebx, -4(%r13,%rax,4)
	movl	-8(%r8,%rax,4), %ebx
	movl	%ebx, -4(%r8,%rax,4)
	leaq	-2(%rax), %rbx
	movq	%rbx, %rax
	cmpq	%r15, %rbx
	jg	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%ecx, %eax
	negl	%eax
	testl	%esi, %esi
	movq	%rdi, (%r11,%r10,8)
	movl	$1, %ebx
	cmovnel	%ebx, %eax
	movl	%eax, (%r13,%r10,4)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r8,%r10,4)
	movl	(%rdx), %r14d
	incl	%r14d
	movl	%r14d, (%rdx)
	testl	%esi, %esi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	decl	%ecx
	jne	LBB0_6
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_error
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_leapcnt,4,2                    ## @leapcnt
	.comm	_TZ_MAX_LEAPS,4,2               ## @TZ_MAX_LEAPS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too many leap seconds"

	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.comm	_trans,8,3                      ## @trans
	.comm	_corr,8,3                       ## @corr
	.comm	_roll,8,3                       ## @roll
	.no_dead_strip	_leapadd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function leapadd
_leapadd:                               ; @leapadd
	.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
Lloh0:
	adrp	x8, _leapcnt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _leapcnt@GOTPAGEOFF]
	ldr	w16, [x8]
	cmp	w1, #0
	csinc	w9, w3, wzr, ne
Lloh2:
	adrp	x10, _TZ_MAX_LEAPS@GOTPAGE
Lloh3:
	ldr	x10, [x10, _TZ_MAX_LEAPS@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	add	w9, w16, w9
	cmp	w9, w10
	b.gt	LBB0_15
; %bb.1:
Lloh5:
	adrp	x9, _trans@GOTPAGE
Lloh6:
	ldr	x9, [x9, _trans@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	w16, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x10, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x10, lsl #3]
	cmp	x11, x0
	b.ge	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	cmp	x16, x10
	b.ne	LBB0_3
; %bb.5:
	mov	x13, x16
	b	LBB0_8
LBB0_6:
	mov	w13, #0
	b	LBB0_8
LBB0_7:
	mov	x13, x10
LBB0_8:
	mov	w10, w13
Lloh8:
	adrp	x11, _corr@GOTPAGE
Lloh9:
	ldr	x11, [x11, _corr@GOTPAGEOFF]
Lloh10:
	adrp	x12, _roll@GOTPAGE
Lloh11:
	ldr	x12, [x12, _roll@GOTPAGEOFF]
Lloh12:
	ldr	x11, [x11]
Lloh13:
	ldr	x12, [x12]
	sxtw	x13, w13
	mov	w14, #1
	lsl	x15, x10, #2
	mov	x17, x16
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	cmp	w17, w13
	b.le	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	sxtw	x16, w17
	add	x6, x9, w17, sxtw #3
	sbfiz	x17, x17, #2, #32
	add	x19, x11, x17
	add	x7, x12, x17
	mov	x17, x6
	mov	x4, x19
	mov	x5, x7
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x20, [x17, #-8]!
	sub	x16, x16, #1
	ldr	w21, [x4, #-4]!
	str	w21, [x19]
	ldr	w19, [x5, #-4]!
	str	x20, [x6]
	str	w19, [x7]
	mov	x7, x5
	mov	x19, x4
	mov	x6, x17
	cmp	x16, x13
	b.gt	LBB0_11
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	str	x0, [x9, x10, lsl #3]
	cmp	w1, #0
	csneg	w16, w14, w3, ne
	str	w16, [x11, x15]
	str	w2, [x12, x15]
	ldr	w16, [x8]
	add	w17, w16, #1
	str	w17, [x8]
	cbz	w1, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	w3, w3, #1
	cbnz	w3, LBB0_9
LBB0_14:
	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_15:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_error
Lloh16:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_leapcnt,4,2                    ; @leapcnt
	.comm	_TZ_MAX_LEAPS,4,2               ; @TZ_MAX_LEAPS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too many leap seconds"

	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.comm	_trans,8,3                      ; @trans
	.comm	_corr,8,3                       ; @corr
	.comm	_roll,8,3                       ; @roll
	.no_dead_strip	_leapadd
.subsections_via_symbols
