	.file	"extr_fas216.c_fas216_reset_state.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fas216_reset_state, @function
fas216_reset_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	fas216_checkmagic@PLT
	mov	rdi, rbx
	call	fas216_bus_reset@PLT
	mov	edi, DWORD PTR 64[rbx]
	mov	edx, 4
	xor	esi, esi
	call	memset@PLT
	mov	rax, QWORD PTR 40[rbx]
	mov	QWORD PTR 56[rbx], 0
	mov	QWORD PTR 48[rbx], 0
	lea	rdx, 128[rax]
	.p2align 4,,10
	.p2align 3
.L2:
	mov	QWORD PTR 8[rax], 0
	add	rax, 16
	mov	DWORD PTR -16[rax], 1
	cmp	rdx, rax
	jne	.L2
	lea	rbp, 32[rbx]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	call	queue_remove@PLT
	test	rax, rax
	jne	.L3
	mov	QWORD PTR 24[rbx], 0
	mov	QWORD PTR 16[rbx], 0
	mov	QWORD PTR 8[rbx], 0
	mov	QWORD PTR [rbx], 0
	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	fas216_reset_state, .-fas216_reset_state
	.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_fas216.c_fas216_reset_state.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fas216_reset_state, %function
fas216_reset_state:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	bl	fas216_checkmagic
	mov	r0, r4
	bl	fas216_bus_reset
	mov	r2, #4
	mov	r1, #0
	ldr	r0, [r4, #32]
	bl	memset
	mov	lr, #0
	mov	ip, #1
	mov	r3, lr
	mov	r0, lr
	ldr	r2, [r4, #20]
	str	lr, [r4, #28]
	add	r1, r2, #4
	str	lr, [r4, #24]
.L2:
	str	r0, [r1, r3, lsl #3]
	str	ip, [r2, r3, lsl #3]
	add	r3, r3, #1
	cmp	r3, #8
	bne	.L2
	add	r5, r4, #16
.L3:
	mov	r0, r5
	bl	queue_remove
	cmp	r0, #0
	bne	.L3
	str	r0, [r4, #12]
	str	r0, [r4, #8]
	str	r0, [r4, #4]
	str	r0, [r4]
	pop	{r4, r5, r6, pc}
	.size	fas216_reset_state, .-fas216_reset_state
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
