	.file	"extr_if_sbni.c_sbni_timeout.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sbni_timeout, @function
sbni_timeout:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	call	SBNI_ASSERT_LOCKED@PLT
	mov	esi, DWORD PTR CSR0[rip]
	mov	rdi, rbp
	call	sbni_inb@PLT
	mov	edx, DWORD PTR RC_CHK[rip]
	test	edx, eax
	je	.L2
	mov	rcx, QWORD PTR 24[rbp]
	test	rcx, rcx
	je	.L3
	mov	esi, DWORD PTR RC_RDY[rip]
	or	esi, DWORD PTR BU_EMP[rip]
	test	esi, eax
	je	.L2
	sub	rcx, 1
	mov	QWORD PTR 24[rbp], rcx
.L2:
	mov	esi, DWORD PTR CSR0[rip]
	mov	rdi, rbp
	or	edx, eax
	call	sbni_outb@PLT
	mov	eax, DWORD PTR hz[rip]
	mov	rcx, rbp
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	cdq
	idiv	DWORD PTR SBNI_HZ[rip]
	lea	rdx, sbni_timeout[rip]
	mov	esi, eax
	jmp	callout_reset@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	add	DWORD PTR 16[rbp], 1
	cmp	QWORD PTR 8[rbp], 0
	jne	.L13
.L4:
	mov	esi, DWORD PTR CSR1[rip]
	mov	edx, DWORD PTR 4[rbp]
	mov	rdi, rbp
	or	edx, DWORD PTR PR_RES[rip]
	call	sbni_outb@PLT
	mov	esi, DWORD PTR CSR0[rip]
	mov	rdi, rbp
	call	sbni_inb@PLT
	mov	edx, DWORD PTR RC_CHK[rip]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, rbp
	call	timeout_change_level@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	sbni_timeout, .-sbni_timeout
	.comm	hz,4,4
	.comm	SBNI_HZ,4,4
	.comm	RC_RDY,4,4
	.comm	RC_CHK,4,4
	.comm	PR_RES,4,4
	.comm	CSR1,4,4
	.comm	CSR0,4,4
	.comm	BU_EMP,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_sbni.c_sbni_timeout.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sbni_timeout, %function
sbni_timeout:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r5, .L17
	bl	SBNI_ASSERT_LOCKED
	mov	r0, r4
	ldr	r1, [r5]
	bl	sbni_inb
	ldr	r6, .L17+4
	ldr	r2, [r6]
	tst	r2, r0
	beq	.L2
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L3
	ldr	r1, .L17+8
	ldr	ip, .L17+12
	ldr	r1, [r1]
	ldr	ip, [ip]
	orr	r1, r1, ip
	tst	r1, r0
	subne	r3, r3, #1
	strne	r3, [r4, #16]
.L2:
	ldr	r1, [r5]
	orr	r2, r0, r2
	mov	r0, r4
	bl	sbni_outb
	ldr	r2, .L17+16
	ldr	r3, .L17+20
	ldr	r0, [r2]
	ldr	r1, [r3]
	bl	__aeabi_idiv
	mov	r3, r4
	mov	r1, r0
	ldr	r2, .L17+24
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	callout_reset
.L3:
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #8]
	add	r3, r3, #1
	cmp	r2, #0
	str	r3, [r4, #12]
	bne	.L16
.L4:
	ldr	r3, .L17+28
	ldr	r1, [r4, #4]
	ldr	r2, [r3]
	ldr	r3, .L17+32
	orr	r2, r1, r2
	mov	r0, r4
	ldr	r1, [r3]
	bl	sbni_outb
	mov	r0, r4
	ldr	r1, [r5]
	bl	sbni_inb
	ldr	r2, [r6]
	b	.L2
.L16:
	mov	r0, r4
	bl	timeout_change_level
	b	.L4
.L18:
	.align	2
.L17:
	.word	CSR0
	.word	RC_CHK
	.word	RC_RDY
	.word	BU_EMP
	.word	hz
	.word	SBNI_HZ
	.word	sbni_timeout
	.word	PR_RES
	.word	CSR1
	.size	sbni_timeout, .-sbni_timeout
	.comm	hz,4,4
	.comm	SBNI_HZ,4,4
	.comm	RC_RDY,4,4
	.comm	RC_CHK,4,4
	.comm	PR_RES,4,4
	.comm	CSR1,4,4
	.comm	CSR0,4,4
	.comm	BU_EMP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
