	.file	"extr_kern_acct.c_encode_timeval.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	encode_timeval, @function
encode_timeval:
.LFB0:
	.cfi_startproc
	endbr64
	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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sar	rbp, 32
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	edi, edi
	jne	.L2
	mov	r13d, edi
	mov	r12d, ebp
	test	ebp, ebp
	je	.L1
.L4:
	mov	edi, r12d
	call	fls@PLT
	mov	edx, DWORD PTR FLT_MANT_DIG[rip]
	lea	esi, -1[rax]
	mov	eax, DWORD PTR FLT_MAX_EXP[rip]
	mov	r8d, edx
	lea	ecx, -1[rdx]
	sub	r8d, esi
	lea	eax, -1[r13+rax]
	add	eax, esi
	lea	edi, -1[r8]
	sal	eax, cl
	test	edi, edi
	jle	.L5
	mov	ecx, edi
	sal	r12d, cl
.L6:
	and	r12d, DWORD PTR MANT_MASK[rip]
	or	r12d, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L5:
	.cfi_restore_state
	mov	ecx, 1
	sub	ecx, r8d
	sar	r12d, cl
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rbx, rdi
	xor	r13d, r13d
	call	fls@PLT
	imul	r12d, ebx, 1000000
	mov	rcx, QWORD PTR LOG2_1M[rip]
	mov	rsi, QWORD PTR CALC_BITS[rip]
	sub	eax, 1
	movsx	rdx, eax
	add	rdx, rcx
	add	r12d, ebp
	cmp	rdx, rsi
	jl	.L4
	sub	ecx, esi
	lea	r13d, [rcx+rax]
	mov	ecx, r13d
	sar	r12d, cl
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	encode_timeval, .-encode_timeval
	.comm	MANT_MASK,4,4
	.comm	LOG2_1M,8,8
	.comm	FLT_MAX_EXP,4,4
	.comm	FLT_MANT_DIG,4,4
	.comm	CALC_BITS,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_kern_acct.c_encode_timeval.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	encode_timeval, %function
encode_timeval:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	sub	sp, sp, #12
	add	r3, sp, #8
	stmdb	r3, {r0, r1}
	ldr	r5, [sp]
	ldr	r4, [sp, #4]
	cmp	r5, #0
	bne	.L2
	cmp	r4, #0
	beq	.L1
.L4:
	mov	r0, r4
	bl	fls
	ldr	r2, .L13
	sub	r0, r0, #1
	ldr	r1, [r2]
	ldr	r3, .L13+4
	sub	ip, r1, r0
	sub	r2, ip, #1
	cmp	r2, #0
	rsble	r2, ip, #1
	ldr	r3, [r3]
	lslgt	r4, r4, r2
	asrle	r4, r4, r2
	ldr	r2, .L13+8
	sub	r3, r3, #1
	ldr	r2, [r2]
	add	r3, r3, r5
	add	r3, r3, r0
	sub	r1, r1, #1
	lsl	r3, r3, r1
	and	r4, r4, r2
	orr	r4, r4, r3
.L1:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L2:
	mov	r0, r5
	bl	fls
	ldr	r2, .L13+12
	ldr	r3, .L13+16
	ldr	r1, [r2]
	sub	r0, r0, #1
	ldr	r2, [r3]
	rsb	r3, r5, r5, lsl #5
	add	r0, r0, r1
	rsb	r3, r3, r3, lsl #6
	cmp	r0, r2
	add	r3, r5, r3, lsl #3
	add	r4, r4, r3, lsl #6
	subge	r5, r0, r2
	movlt	r5, #0
	asrge	r4, r4, r5
	b	.L4
.L14:
	.align	2
.L13:
	.word	FLT_MANT_DIG
	.word	FLT_MAX_EXP
	.word	MANT_MASK
	.word	LOG2_1M
	.word	CALC_BITS
	.size	encode_timeval, .-encode_timeval
	.comm	MANT_MASK,4,4
	.comm	LOG2_1M,4,4
	.comm	FLT_MAX_EXP,4,4
	.comm	FLT_MANT_DIG,4,4
	.comm	CALC_BITS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
