	.file	"extr_ntp_leapsec.c_fetch_leap_era.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fetch_leap_era, @function
fetch_leap_era:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	eax, DWORD PTR 8[rsi]
	test	eax, eax
	je	.L2
	mov	r13, rdx
	xor	ebx, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	add	rbx, 1
	cmp	DWORD PTR 8[rbp], ebx
	je	.L5
.L4:
	mov	rsi, QWORD PTR 0[rbp]
	lea	r12, 0[0+rbx*8]
	mov	rdi, r13
	mov	r15d, ebx
	add	rsi, r12
	call	ucmpv64@PLT
	test	rax, rax
	js	.L17
	lea	eax, -1[rbx]
	cmp	DWORD PTR 8[rbp], ebx
	jle	.L18
	add	r12, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR [r12]
	mov	DWORD PTR 8[r14], edx
	mov	edx, DWORD PTR 4[r12]
	mov	DWORD PTR 4[r14], edx
	cmp	eax, -1
	je	.L8
.L19:
	mov	rdx, QWORD PTR 0[rbp]
	cdqe
	mov	eax, DWORD PTR [rdx+rax*8]
	mov	DWORD PTR [r14], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	mov	r15d, eax
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rdi, 8[r14]
	mov	edx, 4
	xor	esi, esi
	call	memset@PLT
	mov	eax, DWORD PTR 12[rbp]
	mov	DWORD PTR 4[r14], eax
	mov	eax, r15d
	cmp	eax, -1
	jne	.L19
.L8:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r14
	mov	edx, 4
	mov	esi, 255
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	memset@PLT
.L2:
	.cfi_restore_state
	lea	rdi, 8[rdi]
	mov	edx, 4
	xor	esi, esi
	call	memset@PLT
	mov	eax, DWORD PTR 12[rbp]
	mov	DWORD PTR 4[r14], eax
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	fetch_leap_era, .-fetch_leap_era
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ntp_leapsec.c_fetch_leap_era.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fetch_leap_era, %function
fetch_leap_era:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1, #4]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #0
	mov	r5, r1
	mov	r7, r0
	beq	.L2
	mov	r6, r2
	mov	r4, #0
	b	.L4
.L16:
	cmp	r1, r3
	beq	.L5
	mov	r4, r3
.L4:
	ldr	r1, [r5]
	mov	r0, r6
	add	r1, r1, r4, lsl #3
	bl	ucmpv64
	cmp	r0, #0
	ldr	r1, [r5, #4]
	add	r3, r4, #1
	lsl	r2, r4, #3
	blt	.L16
	cmp	r1, r4
	sub	r3, r4, #1
	ble	.L17
	ldr	r1, [r5]
	cmn	r3, #1
	add	r0, r1, r2
	ldr	r0, [r0, #4]
	ldr	r2, [r1, r2]
	stmib	r7, {r0, r2}
	beq	.L8
.L18:
	ldr	r2, [r5]
	ldr	r3, [r2, r3, lsl #3]
	str	r3, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	mov	r4, r3
.L5:
	mov	r2, #0
	mov	r3, r4
	strb	r2, [r7, #8]
	strb	r2, [r7, #9]
	strb	r2, [r7, #10]
	strb	r2, [r7, #11]
	ldr	r2, [r5, #8]
	cmn	r3, #1
	str	r2, [r7, #4]
	bne	.L18
.L8:
	mov	r3, #255
	strb	r3, [r7]
	strb	r3, [r7, #1]
	strb	r3, [r7, #2]
	strb	r3, [r7, #3]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	strb	r3, [r0, #8]
	strb	r3, [r0, #9]
	strb	r3, [r0, #10]
	strb	r3, [r0, #11]
	ldr	r3, [r1, #8]
	str	r3, [r0, #4]
	b	.L8
	.size	fetch_leap_era, .-fetch_leap_era
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
