	.file	"extr_aoecmd.c_aoecmd_ata_rw.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	aoecmd_ata_rw, @function
aoecmd_ata_rw:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	nextbuf@PLT
	test	rax, rax
	je	.L4
	mov	rdi, r13
	mov	rbx, rax
	call	newframe@PLT
	mov	r12, rax
	test	rax, rax
	je	.L4
	mov	rbp, QWORD PTR 0[r13]
	mov	rax, QWORD PTR [rbx]
	mov	rsi, QWORD PTR 32[rbx]
	mov	rdx, QWORD PTR 8[rbx]
	test	rbp, rbp
	cmove	rbp, QWORD PTR DEFAULTBCNT[rip]
	mov	rcx, QWORD PTR 8[rsi]
	mov	QWORD PTR 40[r12], rsi
	cmp	rax, rbp
	cmovle	rbp, rax
	sub	rcx, rdx
	add	rcx, QWORD PTR [rsi]
	mov	QWORD PTR [r12], rcx
	mov	r14, rbp
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	sub	r14, rdx
	sub	rax, rdx
	mov	QWORD PTR [rbx], rax
	je	.L21
	mov	rax, QWORD PTR 32[rbx]
	xor	edi, edi
	lea	rdx, 16[rax]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR 32[rbx], rdx
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	sete	dil
	call	WARN_ON@PLT
	test	r14, r14
	je	.L7
	mov	rdx, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [rbx]
.L9:
	cmp	r14, rdx
	jge	.L6
	sub	rdx, r14
	sub	rax, r14
	mov	QWORD PTR 8[rbx], rdx
	mov	QWORD PTR [rbx], rax
.L7:
	mov	QWORD PTR 24[r12], rbp
	mov	rdi, r12
	sar	rbp, 9
	mov	r13d, 1
	mov	QWORD PTR 32[r12], rbx
	call	ata_rw_frameinit@PLT
	add	QWORD PTR 24[rbx], rbp
	mov	edi, DWORD PTR 20[r12]
	add	DWORD PTR 16[rbx], 1
	mov	esi, DWORD PTR GFP_ATOMIC[rip]
	call	skb_clone@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L1
	lea	rdi, 16[r12]
	call	do_gettimeofday@PLT
	mov	rax, QWORD PTR jiffies[rip]
	mov	QWORD PTR 8[r12], rax
	lea	r12, 4[rsp]
	mov	rdi, r12
	call	__skb_queue_head_init@PLT
	mov	rdi, r12
	mov	rsi, rbp
	call	__skb_queue_tail@PLT
	mov	rdi, r12
	call	aoenet_xmit@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	xor	r13d, r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	QWORD PTR 8[r13], 0
	jmp	.L7
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	aoecmd_ata_rw, .-aoecmd_ata_rw
	.comm	jiffies,8,8
	.comm	GFP_ATOMIC,4,4
	.comm	DEFAULTBCNT,8,8
	.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_aoecmd.c_aoecmd_ata_rw.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aoecmd_ata_rw, %function
aoecmd_ata_rw:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L22
	sub	sp, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r7, r0
	bl	nextbuf
	subs	r4, r0, #0
	beq	.L4
	mov	r0, r7
	bl	newframe
	subs	r5, r0, #0
	beq	.L4
	ldr	r6, [r7]
	ldr	r0, [r4, #16]
	cmp	r6, #0
	ldreq	r3, .L22+4
	ldr	r1, [r0, #4]
	ldreq	r6, [r3]
	ldr	r3, [r4]
	ldr	r2, [r4, #4]
	cmp	r3, r6
	movlt	r6, r3
	ldr	ip, [r0]
	sub	r1, r1, r2
	add	r1, r1, ip
	mov	r8, r6
	str	r1, [r5]
	str	r0, [r5, #24]
	b	.L9
.L6:
	sub	r3, r3, r2
	cmp	r3, #0
	str	r3, [r4]
	sub	r8, r8, r2
	beq	.L20
	ldr	r2, [r4, #16]
	ldr	r3, [r2, #12]
	add	r2, r2, #8
	clz	r0, r3
	str	r3, [r4, #4]
	lsr	r0, r0, #5
	str	r2, [r4, #16]
	bl	WARN_ON
	cmp	r8, #0
	beq	.L7
	ldr	r2, [r4, #4]
	ldr	r3, [r4]
.L9:
	cmp	r8, r2
	bge	.L6
	sub	r2, r2, r8
	sub	r3, r3, r8
	str	r2, [r4, #4]
	str	r3, [r4]
.L7:
	str	r4, [r5, #20]
	str	r6, [r5, #16]
	mov	r0, r5
	bl	ata_rw_frameinit
	ldr	r2, [r4, #8]
	ldr	r3, [r4, #12]
	ldr	r1, .L22+8
	add	r2, r2, #1
	add	r6, r3, r6, asr #9
	str	r2, [r4, #8]
	str	r6, [r4, #12]
	ldr	r1, [r1]
	ldr	r0, [r5, #12]
	bl	skb_clone
	subs	r4, r0, #0
	moveq	r0, #1
	beq	.L1
	add	r0, r5, #8
	bl	do_gettimeofday
	ldr	r3, .L22+12
	mov	r0, sp
	ldr	r3, [r3]
	str	r3, [r5, #4]
	bl	__skb_queue_head_init
	mov	r1, r4
	mov	r0, sp
	bl	__skb_queue_tail
	mov	r0, sp
	bl	aoenet_xmit
	mov	r0, #1
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r0, #0
	b	.L1
.L20:
	str	r3, [r7, #4]
	b	.L7
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	DEFAULTBCNT
	.word	GFP_ATOMIC
	.word	jiffies
	.size	aoecmd_ata_rw, .-aoecmd_ata_rw
	.comm	jiffies,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	DEFAULTBCNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
