	.file	"extr_scic_sds_request.c_scic_sds_request_build_sgl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	scic_sds_request_build_sgl
	.type	scic_sds_request_build_sgl, @function
scic_sds_request_build_sgl:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r14, 32[rsp]
	call	scic_sds_request_get_user_request@PLT
	xor	esi, esi
	mov	rdx, r14
	mov	rdi, rax
	mov	rbx, rax
	call	scic_cb_io_request_get_next_sge@PLT
	cmp	QWORD PTR 32[rsp], 0
	je	.L1
	lea	rax, 28[rsp]
	xor	r15d, r15d
	xor	ebp, ebp
	mov	QWORD PTR 8[rsp], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L15:
	mov	esi, DWORD PTR 16[r15]
	mov	rdi, rbx
	call	SCU_SGL_COPY@PLT
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdx, r14
	mov	rdi, rbx
	call	scic_cb_io_request_get_next_sge@PLT
.L4:
	test	r12, r12
	je	.L5
	mov	rdi, r13
	call	scic_sds_request_get_controller@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	rdx, r15
	mov	rsi, r13
	mov	edi, eax
	call	scic_cb_io_request_get_physical_address@PLT
	mov	edi, DWORD PTR 28[rsp]
	call	sci_cb_physical_address_upper@PLT
	mov	edi, DWORD PTR 28[rsp]
	mov	QWORD PTR 8[r12], rax
	call	sci_cb_physical_address_lower@PLT
	mov	QWORD PTR [r12], rax
.L5:
	add	rbp, 1
	cmp	QWORD PTR 32[rsp], 0
	je	.L14
.L6:
	mov	rsi, rbp
	mov	rdi, r13
	mov	r12, r15
	call	scic_sds_request_get_sgl_element_pair@PLT
	mov	rdx, QWORD PTR 32[rsp]
	mov	rdi, rbx
	mov	esi, DWORD PTR 20[rax]
	mov	r15, rax
	call	SCU_SGL_COPY@PLT
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdx, r14
	mov	rdi, rbx
	call	scic_cb_io_request_get_next_sge@PLT
	mov	rdx, QWORD PTR 32[rsp]
	test	rdx, rdx
	jne	.L15
	mov	edi, DWORD PTR 16[r15]
	call	SCU_SGL_ZERO@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	mov	QWORD PTR 8[r15], 0
	mov	QWORD PTR [r15], 0
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 56
	.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
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	scic_sds_request_build_sgl, .-scic_sds_request_build_sgl
	.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_scic_sds_request.c_scic_sds_request_build_sgl.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	scic_sds_request_build_sgl
	.syntax unified
	.arm
	.fpu softvfp
	.type	scic_sds_request_build_sgl, %function
scic_sds_request_build_sgl:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L20
	sub	sp, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r8, r0
	bl	scic_sds_request_get_user_request
	mov	r1, #0
	add	r2, sp, #4
	mov	r5, r0
	bl	scic_cb_io_request_get_next_sge
	ldr	r3, [sp, #4]
	cmp	r3, #0
	beq	.L1
	mov	r4, #0
	mov	r6, r4
	b	.L6
.L18:
	ldr	r1, [r4, #8]
	mov	r0, r5
	bl	SCU_SGL_COPY
	mov	r0, r5
	ldr	r1, [sp, #4]
	add	r2, sp, #4
	bl	scic_cb_io_request_get_next_sge
.L4:
	cmp	r7, #0
	beq	.L5
	mov	r0, r8
	bl	scic_sds_request_get_controller
	mov	r2, r4
	mov	r1, r8
	add	r3, sp, #8
	bl	scic_cb_io_request_get_physical_address
	ldr	r0, [sp, #8]
	bl	sci_cb_physical_address_upper
	mov	r3, r0
	ldr	r0, [sp, #8]
	str	r3, [r7, #4]
	bl	sci_cb_physical_address_lower
	str	r0, [r7]
.L5:
	ldr	r3, [sp, #4]
	add	r6, r6, #1
	cmp	r3, #0
	beq	.L17
.L6:
	mov	r1, r6
	mov	r0, r8
	bl	scic_sds_request_get_sgl_element_pair
	mov	r7, r4
	ldr	r1, [r0, #12]
	ldr	r2, [sp, #4]
	mov	r4, r0
	mov	r0, r5
	bl	SCU_SGL_COPY
	add	r2, sp, #4
	mov	r0, r5
	ldr	r1, [sp, #4]
	bl	scic_cb_io_request_get_next_sge
	ldr	r2, [sp, #4]
	cmp	r2, #0
	bne	.L18
	ldr	r0, [r4, #8]
	bl	SCU_SGL_ZERO
	b	.L4
.L17:
	str	r3, [r4, #4]
	str	r3, [r4]
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.size	scic_sds_request_build_sgl, .-scic_sds_request_build_sgl
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
