	.file	"extr_time.c_from_efi_time.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	from_efi_time
	.type	from_efi_time, @function
from_efi_time:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	xor	r8d, r8d
	sub	eax, 1998
	cmp	eax, 101
	ja	.L19
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	eax, DWORD PTR 4[rdi]
	test	eax, eax
	je	.L6
	cmp	eax, 12
	jg	.L6
	mov	edx, DWORD PTR 8[rdi]
	test	edx, edx
	je	.L1
	cmp	DWORD PTR 12[rdi], 23
	jg	.L1
	cmp	DWORD PTR 16[rdi], 59
	jg	.L1
	cmp	DWORD PTR 20[rdi], 59
	jg	.L1
	mov	eax, DWORD PTR 24[rdi]
	cmp	eax, -1440
	jl	.L1
	cmp	eax, 1440
	jle	.L13
	cmp	eax, 2047
	jne	.L1
.L13:
	mov	ebp, 1970
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r13, QWORD PTR CumulativeDays[rip]
	mov	edi, ebp
	add	ebp, 1
	call	isleap@PLT
	mov	rax, QWORD PTR 0[r13+rax*8]
	mov	eax, DWORD PTR 52[rax]
	imul	eax, DWORD PTR SECSPERDAY[rip]
	cdqe
	add	r12, rax
	cmp	DWORD PTR [rbx], ebp
	jne	.L4
	mov	r13, QWORD PTR CumulativeDays[rip]
	mov	edi, ebp
	call	isleap@PLT
	movsx	rdx, DWORD PTR 4[rbx]
	mov	ecx, DWORD PTR SECSPERDAY[rip]
	mov	rax, QWORD PTR 0[r13+rax*8]
	mov	esi, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR 8[rbx]
	imul	esi, ecx
	movsx	rdx, esi
	add	r12, rdx
	test	eax, eax
	mov	edx, 1
	cmovg	edx, DWORD PTR 8[rbx]
	imul	r8d, DWORD PTR 16[rbx], 60
	lea	eax, -1[rdx]
	mov	edx, DWORD PTR 12[rbx]
	imul	eax, ecx
	imul	edx, DWORD PTR SECSPERHOUR[rip]
	movsx	r8, r8d
	cdqe
	add	rax, r12
	movsx	rdx, edx
	add	rax, rdx
	add	rax, r8
	movsx	r8, DWORD PTR 20[rbx]
	add	r8, rax
	mov	eax, DWORD PTR 24[rbx]
	cmp	eax, DWORD PTR EFI_UNSPECIFIED_TIMEZONE[rip]
	je	.L1
	imul	eax, eax, 60
	cdqe
	add	r8, rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	xor	r8d, r8d
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rax, r8
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	mov	rax, r8
	ret
	.cfi_endproc
.LFE0:
	.size	from_efi_time, .-from_efi_time
	.comm	SECSPERHOUR,4,4
	.comm	SECSPERDAY,4,4
	.comm	EFI_UNSPECIFIED_TIMEZONE,4,4
	.comm	CumulativeDays,8,8
	.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_time.c_from_efi_time.c"
	.text
	.align	2
	.global	from_efi_time
	.syntax unified
	.arm
	.fpu softvfp
	.type	from_efi_time, %function
from_efi_time:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	sub	r3, r3, #1984
	sub	r3, r3, #14
	cmp	r3, #101
	bhi	.L4
	ldr	r2, [r0, #4]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	cmp	r2, #12
	movle	r3, #0
	movgt	r3, #1
	cmp	r2, #0
	moveq	r3, #1
	cmp	r3, #0
	mov	r4, r0
	beq	.L20
.L5:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L20:
	ldr	r0, [r0, #8]
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r2, [r4, #12]
	cmp	r2, #23
	bgt	.L5
	ldr	r2, [r4, #16]
	cmp	r2, #59
	bgt	.L5
	ldr	r2, [r4, #20]
	cmp	r2, #59
	bgt	.L5
	ldr	r6, [r4, #24]
	cmn	r6, #1440
	blt	.L5
	ldr	r2, .L21
	cmp	r6, r2
	cmpne	r6, #1440
	movgt	r6, #1
	movle	r6, #0
	bgt	.L5
	ldr	r5, .L21+4
	ldr	r7, .L21+8
	ldr	r9, .L21+12
.L3:
	mov	r0, r5
	ldr	r8, [r7]
	bl	isleap
	ldr	r3, [r8, r0, lsl #2]
	ldr	r1, [r4]
	ldr	r3, [r3, #52]
	ldr	r2, [r9]
	add	r5, r5, #1
	cmp	r1, r5
	mla	r6, r2, r3, r6
	bne	.L3
	mov	r0, r5
	ldr	r5, [r7]
	bl	isleap
	ldr	r3, [r4, #8]
	ldr	r1, [r5, r0, lsl #2]
	cmp	r3, #1
	movlt	r3, #1
	ldr	r0, [r4, #4]
	ldr	r2, [r9]
	ldr	r0, [r1, r0, lsl #2]
	sub	r3, r3, #1
	mla	r0, r2, r0, r6
	ldr	r1, .L21+16
	mla	r3, r2, r3, r0
	ldr	r2, [r1]
	ldr	r0, [r4, #12]
	ldr	r1, .L21+20
	mla	r0, r2, r0, r3
	ldr	r3, [r4, #16]
	ldr	r2, [r4, #24]
	ldr	ip, [r1]
	rsb	r3, r3, r3, lsl #4
	ldr	r1, [r4, #20]
	cmp	r2, ip
	add	r0, r0, r3, lsl #2
	add	r0, r0, r1
	rsbne	r2, r2, r2, lsl #4
	addne	r0, r0, r2, lsl #2
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	mov	r0, #0
	bx	lr
.L22:
	.align	2
.L21:
	.word	2047
	.word	1970
	.word	CumulativeDays
	.word	SECSPERDAY
	.word	SECSPERHOUR
	.word	EFI_UNSPECIFIED_TIMEZONE
	.size	from_efi_time, .-from_efi_time
	.comm	SECSPERHOUR,4,4
	.comm	SECSPERDAY,4,4
	.comm	EFI_UNSPECIFIED_TIMEZONE,4,4
	.comm	CumulativeDays,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
