	.file	"extr_wbsd.c_wbsd_dma_to_sg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wbsd_dma_to_sg, @function
wbsd_dma_to_sg:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8d, DWORD PTR [rsi]
	mov	r9, QWORD PTR 8[rsi]
	test	r8d, r8d
	jle	.L4
	lea	edx, -1[r8]
	mov	rax, r9
	xor	ecx, ecx
	lea	rdx, 8[r9+rdx*8]
	.p2align 4,,10
	.p2align 3
.L3:
	add	rcx, QWORD PTR [rax]
	add	rax, 8
	cmp	rdx, rax
	jne	.L3
	mov	edx, DWORD PTR [rdi]
	mov	esi, r8d
	mov	rdi, r9
	jmp	sg_copy_from_buffer@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, DWORD PTR [rdi]
	xor	ecx, ecx
	mov	esi, r8d
	mov	rdi, r9
	jmp	sg_copy_from_buffer@PLT
	.cfi_endproc
.LFE0:
	.size	wbsd_dma_to_sg, .-wbsd_dma_to_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_wbsd.c_wbsd_dma_to_sg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wbsd_dma_to_sg, %function
wbsd_dma_to_sg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r1
	ldr	r1, [r1]
	push	{r4, lr}
	cmp	r1, #0
	mov	r4, r0
	ldr	r0, [r3, #4]
	mov	r3, #0
	ble	.L2
	sub	r2, r0, #4
	add	lr, r2, r1, lsl #2
.L3:
	ldr	ip, [r2, #4]!
	cmp	r2, lr
	add	r3, r3, ip
	bne	.L3
.L2:
	ldr	r2, [r4]
	pop	{r4, lr}
	b	sg_copy_from_buffer
	.size	wbsd_dma_to_sg, .-wbsd_dma_to_sg
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
