	.file	"extr_sparcspkr.c_bbc_count_to_reg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bbc_count_to_reg, @function
bbc_count_to_reg:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edi, DWORD PTR [rdi]
	xor	eax, eax
	test	esi, esi
	je	.L1
	mov	edx, edi
	mov	eax, 262144
	shr	edx, 20
	cmp	edx, esi
	jnb	.L1
	mov	edx, edi
	mov	eax, 1024
	shr	edx, 12
	cmp	edx, esi
	jbe	.L1
	mov	ecx, 19
	mov	eax, 262144
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, edi
	shr	eax
	shr	edx, cl
	cmp	edx, esi
	jnb	.L1
	sub	ecx, 1
	cmp	ecx, 10
	jne	.L3
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	bbc_count_to_reg, .-bbc_count_to_reg
	.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_sparcspkr.c_bbc_count_to_reg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bbc_count_to_reg, %function
bbc_count_to_reg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	cmp	r1, #0
	ldr	r2, [r0]
	beq	.L4
	cmp	r1, r2, lsr #20
	bls	.L5
	cmp	r1, r2, lsr #12
	bcs	.L6
	mov	r3, #19
	mov	r0, #262144
.L3:
	cmp	r1, r2, lsr r3
	lsr	r0, r0, #1
	sub	r3, r3, #1
	bxls	lr
	cmp	r3, #10
	bne	.L3
	bx	lr
.L4:
	mov	r0, r1
	bx	lr
.L6:
	mov	r0, #1024
	bx	lr
.L5:
	mov	r0, #262144
	bx	lr
	.size	bbc_count_to_reg, .-bbc_count_to_reg
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
