	.file	"extr_tpm1-cmd.c_tpm1_calc_ordinal_duration.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tpm1_calc_ordinal_duration
	.type	tpm1_calc_ordinal_duration, @function
tpm1_calc_ordinal_duration:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR TPM_MAX_ORDINAL[rip], rsi
	ja	.L7
.L2:
	imul	eax, DWORD PTR HZ[rip], 120
	cdqe
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR tpm1_ordinal_duration[rip]
	movsx	rax, DWORD PTR [rax+rsi*4]
	cmp	DWORD PTR TPM_UNDEFINED[rip], eax
	je	.L2
	mov	rdx, QWORD PTR [rdi]
	movsx	rax, DWORD PTR [rdx+rax*4]
	test	eax, eax
	jle	.L2
	ret
	.cfi_endproc
.LFE0:
	.size	tpm1_calc_ordinal_duration, .-tpm1_calc_ordinal_duration
	.comm	tpm1_ordinal_duration,8,8
	.comm	TPM_UNDEFINED,4,4
	.comm	TPM_MAX_ORDINAL,8,8
	.comm	HZ,4,4
	.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_tpm1-cmd.c_tpm1_calc_ordinal_duration.c"
	.text
	.align	2
	.global	tpm1_calc_ordinal_duration
	.syntax unified
	.arm
	.fpu softvfp
	.type	tpm1_calc_ordinal_duration, %function
tpm1_calc_ordinal_duration:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, .L7
	ldr	r3, [r3]
	cmp	r3, r1
	bhi	.L6
.L2:
	ldr	r3, .L7+4
	ldr	r0, [r3]
	rsb	r0, r0, r0, lsl #4
	lsl	r0, r0, #3
	bx	lr
.L6:
	ldr	r3, .L7+8
	ldr	r2, .L7+12
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r3, [r3, r1, lsl #2]
	cmp	r2, r3
	beq	.L2
	ldr	r2, [r0]
	ldr	r0, [r2, r3, lsl #2]
	cmp	r0, #0
	bxgt	lr
	b	.L2
.L8:
	.align	2
.L7:
	.word	TPM_MAX_ORDINAL
	.word	HZ
	.word	tpm1_ordinal_duration
	.word	TPM_UNDEFINED
	.size	tpm1_calc_ordinal_duration, .-tpm1_calc_ordinal_duration
	.comm	tpm1_ordinal_duration,4,4
	.comm	TPM_UNDEFINED,4,4
	.comm	TPM_MAX_ORDINAL,4,4
	.comm	HZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
