	.file	"extr_acct.c_encode_comp2_t.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	encode_comp2_t, @function
encode_comp2_t:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR MAXFRACT2[rip]
	xor	eax, eax
	mov	r8d, edx
	sar	r8d
	cmp	r8d, edi
	setl	al
	cmp	edx, edi
	jge	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	ecx, edi
	sar	edi
	mov	esi, eax
	add	eax, 1
	cmp	edx, edi
	jl	.L3
	and	ecx, 1
	je	.L2
	add	edi, 1
	cmp	edx, edi
	jl	.L11
.L2:
	cmp	DWORD PTR MAXEXP2[rip], eax
	mov	ecx, DWORD PTR MANTSIZE2[rip]
	jge	.L4
	add	ecx, DWORD PTR EXPSIZE2[rip]
	mov	eax, 1
	sub	ecx, 1
	sal	rax, cl
	sub	rax, 1
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	sub	ecx, 1
	and	edi, r8d
	sal	eax, cl
	or	eax, edi
	cdqe
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	sar	edi
	lea	eax, 2[rsi]
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	encode_comp2_t, .-encode_comp2_t
	.comm	MAXFRACT2,4,4
	.comm	MAXEXP2,4,4
	.comm	MANTSIZE2,4,4
	.comm	EXPSIZE2,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_acct.c_encode_comp2_t.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	encode_comp2_t, %function
encode_comp2_t:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L12
	str	lr, [sp, #-4]!
	ldr	r2, [r3]
	cmp	r0, r2, asr #1
	movgt	r3, #1
	movle	r3, #0
	cmp	r2, r0
	asr	lr, r2, #1
	bge	.L2
.L3:
	mov	r1, r0
	asr	r0, r0, #1
	cmp	r2, r0
	mov	ip, r3
	add	r3, r3, #1
	blt	.L3
	tst	r1, #1
	beq	.L2
	add	r0, r0, #1
	cmp	r2, r0
	asrlt	r0, r0, #1
	addlt	r3, ip, #2
.L2:
	ldr	r1, .L12+4
	ldr	r2, .L12+8
	ldr	r1, [r1]
	ldr	r2, [r2]
	cmp	r1, r3
	mvnlt	r0, #0
	ldrlt	r3, .L12+12
	subge	r2, r2, #1
	ldrlt	r3, [r3]
	addlt	r3, r2, r3
	addlt	r3, r3, r0
	mvnlt	r0, r0, lsl r3
	andge	r0, r0, lr
	orrge	r0, r0, r3, lsl r2
	ldr	pc, [sp], #4
.L13:
	.align	2
.L12:
	.word	MAXFRACT2
	.word	MAXEXP2
	.word	MANTSIZE2
	.word	EXPSIZE2
	.size	encode_comp2_t, .-encode_comp2_t
	.comm	MAXFRACT2,4,4
	.comm	MAXEXP2,4,4
	.comm	MANTSIZE2,4,4
	.comm	EXPSIZE2,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
