	.file	"extr_if_ural.c_ural_bbp_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"timeout waiting for BBP\n"
	.text
	.p2align 4
	.type	ural_bbp_init, @function
ural_bbp_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, 100
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L2:
	movsx	rsi, DWORD PTR hz[rip]
	mov	rdi, rbp
	mov	rax, rsi
	imul	rsi, rsi, 1374389535
	sar	eax, 31
	sar	rsi, 37
	sub	esi, eax
	call	ural_pause@PLT
	test	rax, rax
	jne	.L4
	sub	ebx, 1
	je	.L13
.L5:
	mov	esi, DWORD PTR RAL_BBP_VERSION[rip]
	mov	rdi, rbp
	call	ural_bbp_read@PLT
	test	rax, rax
	je	.L2
.L4:
	xor	ebx, ebx
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR ural_def_bbp[rip]
	mov	rdi, rbp
	lea	rax, [rax+rbx*8]
	add	rbx, 1
	mov	edx, DWORD PTR 4[rax]
	mov	esi, DWORD PTR [rax]
	call	ural_bbp_write@PLT
.L3:
	mov	rdi, QWORD PTR ural_def_bbp[rip]
	call	nitems@PLT
	cmp	eax, ebx
	jg	.L7
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbp]
	lea	rsi, .LC0[rip]
	call	device_printf@PLT
	mov	eax, DWORD PTR EIO[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ural_bbp_init, .-ural_bbp_init
	.comm	ural_def_bbp,8,8
	.comm	hz,4,4
	.comm	RAL_BBP_VERSION,4,4
	.comm	EIO,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_if_ural.c_ural_bbp_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"timeout waiting for BBP\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ural_bbp_init, %function
ural_bbp_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, #100
	mov	r5, r0
	ldr	r6, .L14
	ldr	r8, .L14+4
	ldr	r7, .L14+8
	b	.L5
.L2:
	ldr	r3, [r8]
	mov	r0, r5
	smull	r2, r1, r7, r3
	asr	r3, r3, #31
	rsb	r1, r3, r1, asr #5
	bl	ural_pause
	cmp	r0, #0
	bne	.L4
	subs	r4, r4, #1
	beq	.L13
.L5:
	mov	r0, r5
	ldr	r1, [r6]
	bl	ural_bbp_read
	cmp	r0, #0
	beq	.L2
.L4:
	mov	r4, #0
	ldr	r6, .L14+12
	b	.L3
.L7:
	ldr	r3, [r6]
	mov	r0, r5
	add	r2, r3, r4, lsl #3
	ldr	r1, [r3, r4, lsl #3]
	ldr	r2, [r2, #4]
	bl	ural_bbp_write
	add	r4, r4, #1
.L3:
	ldr	r0, [r6]
	bl	nitems
	cmp	r0, r4
	bgt	.L7
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r0, [r5, #4]
	ldr	r1, .L14+16
	bl	device_printf
	ldr	r3, .L14+20
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	.align	2
.L14:
	.word	RAL_BBP_VERSION
	.word	hz
	.word	1374389535
	.word	ural_def_bbp
	.word	.LC0
	.word	EIO
	.size	ural_bbp_init, .-ural_bbp_init
	.comm	ural_def_bbp,4,4
	.comm	hz,4,4
	.comm	RAL_BBP_VERSION,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
