	.file	"extr_request.c_to_sgl_element_pair_dma.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	to_sgl_element_pair_dma, @function
to_sgl_element_pair_dma:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rcx, rdi
	mov	rdi, rsi
	test	edx, edx
	je	.L6
	cmp	edx, 1
	je	.L7
	mov	rax, QWORD PTR [rsi]
	movsx	rdx, edx
	lea	rsi, -8[rax+rdx*4]
	jmp	sci_io_request_get_dma_addr@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 8[rsi]
	sub	rax, QWORD PTR 8[rcx]
	cdqe
	add	rax, QWORD PTR [rcx]
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 8[rsi]
	add	rax, 4
	sub	rax, QWORD PTR 8[rcx]
	cdqe
	add	rax, QWORD PTR [rcx]
	ret
	.cfi_endproc
.LFE0:
	.size	to_sgl_element_pair_dma, .-to_sgl_element_pair_dma
	.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_request.c_to_sgl_element_pair_dma.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	to_sgl_element_pair_dma, %function
to_sgl_element_pair_dma:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	cmp	r2, #0
	mov	r3, r0
	mov	r0, r1
	beq	.L6
	cmp	r2, #1
	beq	.L7
	ldr	r1, [r1]
	sub	r2, r2, #-1073741822
	add	r1, r1, r2, lsl #2
	b	sci_io_request_get_dma_addr
.L7:
	ldr	r2, [r3, #4]
	ldr	r0, [r1, #4]
	ldr	r3, [r3]
	sub	r0, r0, r2
	add	r0, r0, r3
	bx	lr
.L6:
	ldr	r0, [r1, #4]
	ldr	r2, [r3, #4]
	add	r0, r0, #4
	ldr	r3, [r3]
	sub	r0, r0, r2
	add	r0, r0, r3
	bx	lr
	.size	to_sgl_element_pair_dma, .-to_sgl_element_pair_dma
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
