	.file	"extr_ncr53c9x.c_ncr53c9x_clear.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ncr53c9x_clear, @function
ncr53c9x_clear:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	mov	esi, DWORD PTR MA_OWNED[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	NCR_LOCK_ASSERT@PLT
	mov	eax, DWORD PTR NCR_CLEANING[rip]
	mov	rsi, QWORD PTR 8[rbp]
	mov	QWORD PTR 16[rbp], 0
	mov	DWORD PTR 24[rbp], eax
	test	rsi, rsi
	je	.L2
	mov	rax, QWORD PTR [rsi]
	mov	rdi, rbp
	mov	DWORD PTR [rax], r12d
	call	ncr53c9x_done@PLT
.L2:
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jle	.L1
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, ebx
	mov	edx, r12d
	mov	rdi, rbp
	add	ebx, 1
	call	ncr53c9x_clear_target@PLT
	cmp	DWORD PTR 0[rbp], ebx
	jg	.L4
.L1:
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ncr53c9x_clear, .-ncr53c9x_clear
	.comm	NCR_CLEANING,4,4
	.comm	MA_OWNED,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_ncr53c9x.c_ncr53c9x_clear.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ncr53c9x_clear, %function
ncr53c9x_clear:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L11
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r6, r1
	ldr	r1, [r3]
	bl	NCR_LOCK_ASSERT
	mov	r3, #0
	ldr	r2, .L11+4
	ldr	r1, [r5, #4]
	ldr	r2, [r2]
	cmp	r1, r3
	str	r2, [r5, #12]
	str	r3, [r5, #8]
	beq	.L2
	ldr	r3, [r1]
	mov	r0, r5
	str	r6, [r3]
	bl	ncr53c9x_done
.L2:
	ldr	r3, [r5]
	cmp	r3, #0
	pople	{r4, r5, r6, pc}
	mov	r4, #0
.L4:
	mov	r1, r4
	mov	r2, r6
	mov	r0, r5
	bl	ncr53c9x_clear_target
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L4
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	MA_OWNED
	.word	NCR_CLEANING
	.size	ncr53c9x_clear, .-ncr53c9x_clear
	.comm	NCR_CLEANING,4,4
	.comm	MA_OWNED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
