	.file	"extr_transport.c_usb_stor_bulk_transfer_sg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	usb_stor_bulk_transfer_sg
	.type	usb_stor_bulk_transfer_sg, @function
usb_stor_bulk_transfer_sg:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, r9
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, ecx
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	r8d, r8d
	je	.L2
	mov	ecx, r8d
	lea	r9, 4[rsp]
	mov	r8d, ebx
	call	usb_stor_bulk_transfer_sglist@PLT
	sub	ebx, DWORD PTR 4[rsp]
.L3:
	test	rbp, rbp
	je	.L1
	mov	DWORD PTR 0[rbp], ebx
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	r8, 4[rsp]
	call	usb_stor_bulk_transfer_buf@PLT
	sub	ebx, DWORD PTR 4[rsp]
	jmp	.L3
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	usb_stor_bulk_transfer_sg, .-usb_stor_bulk_transfer_sg
	.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_transport.c_usb_stor_bulk_transfer_sg.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	usb_stor_bulk_transfer_sg
	.syntax unified
	.arm
	.fpu softvfp
	.type	usb_stor_bulk_transfer_sg, %function
usb_stor_bulk_transfer_sg:
	@ args = 8, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	sub	sp, sp, #20
	ldr	ip, [sp, #32]
	ldr	lr, .L12
	cmp	ip, #0
	ldr	lr, [lr]
	str	lr, [sp, #12]
	mov	lr,#0
	mov	r4, r3
	ldr	r5, [sp, #36]
	beq	.L2
	add	lr, sp, #8
	str	r3, [sp]
	str	lr, [sp, #4]
	mov	r3, ip
	bl	usb_stor_bulk_transfer_sglist
	ldr	r3, [sp, #8]
	sub	r4, r4, r3
.L3:
	cmp	r5, #0
	ldr	r3, .L12
	strne	r4, [r5]
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L2:
	add	ip, sp, #8
	str	ip, [sp]
	bl	usb_stor_bulk_transfer_buf
	ldr	r3, [sp, #8]
	sub	r4, r4, r3
	b	.L3
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.size	usb_stor_bulk_transfer_sg, .-usb_stor_bulk_transfer_sg
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
