	.file	"extr_rtc.c_to_bcd.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	to_bcd, @function
to_bcd:
.LFB0:
	.cfi_startproc
	endbr64
	xor	r8d, r8d
	test	edi, edi
	je	.L1
	mov	ecx, 1
	.p2align 4,,10
	.p2align 3
.L3:
	movsx	rax, edi
	mov	edx, edi
	imul	rax, rax, 1717986919
	sar	edx, 31
	sar	rax, 34
	sub	eax, edx
	lea	edx, [rax+rax*4]
	add	edx, edx
	sub	edi, edx
	imul	edi, ecx
	sal	ecx, 4
	add	r8d, edi
	mov	edi, eax
	test	eax, eax
	jne	.L3
.L1:
	mov	eax, r8d
	ret
	.cfi_endproc
.LFE0:
	.size	to_bcd, .-to_bcd
	.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_rtc.c_to_bcd.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	to_bcd, %function
to_bcd:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	subs	r2, r0, #0
	beq	.L4
	mov	r0, #0
	mov	ip, #1
	str	lr, [sp, #-4]!
	ldr	lr, .L12
.L3:
	smull	r3, r1, lr, r2
	asr	r3, r2, #31
	rsb	r3, r3, r1, asr #2
	add	r1, r3, r3, lsl #2
	sub	r1, r2, r1, lsl #1
	subs	r2, r3, #0
	mla	r0, ip, r1, r0
	lsl	ip, ip, #4
	bne	.L3
	ldr	pc, [sp], #4
.L4:
	mov	r0, r2
	bx	lr
.L13:
	.align	2
.L12:
	.word	1717986919
	.size	to_bcd, .-to_bcd
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
