	.file	"extr_wd7000.c_mail_out.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"wd7000_mail_out: 0x%06lx"
.LC1:
	.string	" using OGMB 0x%x"
.LC2:
	.string	", scb is 0x%06lx"
.LC3:
	.string	", no free OGMBs.\n"
.LC4:
	.string	", awaiting interrupt.\n"
	.text
	.p2align 4
	.type	mail_out, @function
mail_out:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r8, QWORD PTR 16[rdi]
	lea	rdi, .LC0[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 8[rsp], r8
	call	dprintk@PLT
	mov	rax, QWORD PTR 8[r15]
	xor	esi, esi
	mov	edi, DWORD PTR [rax]
	call	spin_lock_irqsave@PLT
	mov	r14d, DWORD PTR OGMB_CNT[rip]
	mov	r13d, DWORD PTR [r15]
	test	r14d, r14d
	jle	.L8
	mov	r8, QWORD PTR 8[rsp]
	xor	ecx, ecx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, ebp
	add	ecx, 1
	cdq
	idiv	r14d
	mov	r13d, edx
	cmp	r14d, ecx
	je	.L2
.L4:
	movsx	rbx, r13d
	lea	ebp, 1[r13]
	sal	rbx, 4
	add	rbx, r8
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jne	.L3
	mov	esi, r13d
	lea	rdi, .LC1[rip]
	xor	eax, eax
	mov	DWORD PTR 8[rsp], ecx
	call	dprintk@PLT
	mov	DWORD PTR [rbx], 1
	mov	rdi, QWORD PTR 8[rbx]
	mov	esi, r12d
	call	any2scsi@PLT
	mov	eax, ebp
	mov	ecx, DWORD PTR 8[rsp]
	cdq
	idiv	DWORD PTR OGMB_CNT[rip]
	mov	r14d, ecx
	mov	DWORD PTR [r15], edx
.L2:
	mov	rax, QWORD PTR 8[r15]
	xor	esi, esi
	mov	edi, DWORD PTR [rax]
	call	spin_unlock_irqrestore@PLT
	xor	eax, eax
	mov	rsi, r12
	lea	rdi, .LC2[rip]
	call	dprintk@PLT
	cmp	DWORD PTR OGMB_CNT[rip], r14d
	jle	.L12
	mov	rdi, r15
	call	wd7000_enable_intr@PLT
	or	r13d, DWORD PTR START_OGMB[rip]
	lea	rsi, 20[rsp]
	mov	rdi, r15
	mov	edx, 1
	mov	DWORD PTR 20[rsp], r13d
	call	command_out@PLT
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	dprintk@PLT
	mov	eax, 1
.L1:
	mov	rdi, QWORD PTR 24[rsp]
	xor	rdi, QWORD PTR fs:40
	jne	.L13
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	dprintk@PLT
	xor	eax, eax
	jmp	.L1
.L8:
	xor	r14d, r14d
	jmp	.L2
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mail_out, .-mail_out
	.comm	START_OGMB,4,4
	.comm	OGMB_CNT,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_wd7000.c_mail_out.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"wd7000_mail_out: 0x%06lx\000"
	.align	2
.LC1:
	.ascii	" using OGMB 0x%x\000"
	.global	__aeabi_idivmod
	.align	2
.LC2:
	.ascii	", scb is 0x%06lx\000"
	.align	2
.LC3:
	.ascii	", no free OGMBs.\012\000"
	.align	2
.LC4:
	.ascii	", awaiting interrupt.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mail_out, %function
mail_out:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	ldr	r3, .L14
	sub	sp, sp, #20
	ldr	r0, .L14+4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r8, r1
	ldr	fp, [r7, #8]
	bl	dprintk
	ldr	r3, [r7, #4]
	ldr	r9, .L14+8
	mov	r1, #0
	ldr	r0, [r3]
	bl	spin_lock_irqsave
	ldr	r10, [r9]
	ldr	r4, [r7]
	cmp	r10, #0
	ble	.L8
	mov	r6, #0
	b	.L4
.L3:
	mov	r0, r5
	mov	r1, r10
	bl	__aeabi_idivmod
	add	r6, r6, #1
	cmp	r10, r6
	mov	r4, r1
	beq	.L2
.L4:
	ldr	r3, [fp, r4, lsl #3]
	add	r2, fp, r4, lsl #3
	cmp	r3, #0
	add	r5, r4, #1
	bne	.L3
	mov	r1, r4
	ldr	r0, .L14+12
	str	r2, [sp, #4]
	bl	dprintk
	mov	r3, #1
	ldr	r2, [sp, #4]
	mov	r1, r8
	ldr	r0, [r2, #4]
	str	r3, [r2]
	bl	any2scsi
	ldr	r1, [r9]
	mov	r0, r5
	bl	__aeabi_idivmod
	mov	r10, r6
	str	r1, [r7]
.L2:
	ldr	r3, [r7, #4]
	mov	r1, #0
	ldr	r0, [r3]
	bl	spin_unlock_irqrestore
	mov	r1, r8
	ldr	r0, .L14+16
	bl	dprintk
	ldr	r3, [r9]
	cmp	r3, r10
	ble	.L12
	mov	r0, r7
	bl	wd7000_enable_intr
	ldr	r3, .L14+20
	mov	r2, #1
	ldr	r1, [r3]
	mov	r0, r7
	orr	r4, r1, r4
	add	r1, sp, #8
	str	r4, [sp, #8]
	bl	command_out
	ldr	r0, .L14+24
	bl	dprintk
	mov	r0, #1
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	ldr	r0, .L14+28
	bl	dprintk
	mov	r0, #0
	b	.L1
.L8:
	mov	r10, #0
	b	.L2
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC5
	.word	.LC0
	.word	OGMB_CNT
	.word	.LC1
	.word	.LC2
	.word	START_OGMB
	.word	.LC4
	.word	.LC3
	.size	mail_out, .-mail_out
	.comm	START_OGMB,4,4
	.comm	OGMB_CNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
