	.file	"extr_con3215.c_raw3215_flush_buffer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	raw3215_flush_buffer, @function
raw3215_flush_buffer:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	edi, DWORD PTR 8[rdi]
	call	get_ccwdev_lock@PLT
	xor	esi, esi
	mov	edi, eax
	call	spin_lock_irqsave@PLT
	cmp	QWORD PTR [rbx], 0
	jle	.L2
	mov	eax, DWORD PTR RAW3215_FLUSHING[rip]
	or	DWORD PTR 12[rbx], eax
	mov	rdi, rbx
	call	raw3215_try_io@PLT
	mov	eax, DWORD PTR RAW3215_FLUSHING[rip]
	not	eax
	and	DWORD PTR 12[rbx], eax
.L2:
	mov	edi, DWORD PTR 8[rbx]
	call	get_ccwdev_lock@PLT
	xor	esi, esi
	pop	rbx
	.cfi_def_cfa_offset 8
	mov	edi, eax
	jmp	spin_unlock_irqrestore@PLT
	.cfi_endproc
.LFE0:
	.size	raw3215_flush_buffer, .-raw3215_flush_buffer
	.comm	RAW3215_FLUSHING,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_con3215.c_raw3215_flush_buffer.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	raw3215_flush_buffer, %function
raw3215_flush_buffer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0, #4]
	bl	get_ccwdev_lock
	mov	r1, #0
	bl	spin_lock_irqsave
	ldr	r3, [r4]
	cmp	r3, #0
	ble	.L2
	ldr	r5, .L5
	ldr	r3, [r4, #8]
	ldr	r2, [r5]
	mov	r0, r4
	orr	r3, r3, r2
	str	r3, [r4, #8]
	bl	raw3215_try_io
	ldr	r3, [r4, #8]
	ldr	r2, [r5]
	bic	r3, r3, r2
	str	r3, [r4, #8]
.L2:
	ldr	r0, [r4, #4]
	bl	get_ccwdev_lock
	pop	{r4, r5, r6, lr}
	mov	r1, #0
	b	spin_unlock_irqrestore
.L6:
	.align	2
.L5:
	.word	RAW3215_FLUSHING
	.size	raw3215_flush_buffer, .-raw3215_flush_buffer
	.comm	RAW3215_FLUSHING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
