	.file	"extr_siena_sriov.c_efx_siena_sriov_memcpy.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	efx_siena_sriov_memcpy, @function
efx_siena_sriov_memcpy:
.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	r13d, edx
	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
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rsi, QWORD PTR MCDI_CTL_SDU_LEN_MAX_V1[rip]
	mov	QWORD PTR 8[rsp], rdi
	mov	edi, DWORD PTR inbuf[rip]
	call	MCDI_DECLARE_BUF@PLT
	mov	edi, DWORD PTR record[rip]
	call	MCDI_DECLARE_STRUCT_PTR@PLT
	xor	eax, eax
	call	mb@PLT
	xor	edi, edi
	cmp	DWORD PTR MC_CMD_MEMCPY_IN_RECORD_MAXNUM[rip], r13d
	setb	dil
	call	WARN_ON@PLT
	test	rax, rax
	je	.L2
	mov	r12d, DWORD PTR ENOBUFS[rip]
	neg	r12d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, r13d
	call	MC_CMD_MEMCPY_IN_LEN@PLT
	mov	r12d, eax
	test	r13d, r13d
	je	.L4
	xor	ebp, ebp
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	xor	edi, edi
	mov	eax, r12d
	add	rax, QWORD PTR 16[rbx]
	cmp	rax, QWORD PTR MCDI_CTL_SDU_LEN_MAX_V1[rip]
	setg	dil
	call	WARN_ON@PLT
	test	rax, rax
	jne	.L16
	mov	rdx, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR inbuf[rip]
	mov	esi, r12d
	mov	r15, QWORD PTR 24[rbx]
	mov	r14d, DWORD PTR MC_CMD_MEMCPY_RECORD_TYPEDEF_RID_INLINE[rip]
	mov	QWORD PTR [rsp], rdx
	call	_MCDI_PTR@PLT
	mov	rdx, QWORD PTR [rsp]
	mov	rsi, r15
	mov	r15d, r12d
	mov	edi, eax
	call	memcpy@PLT
	add	r12d, DWORD PTR 16[rbx]
.L6:
	mov	esi, DWORD PTR MEMCPY_RECORD_TYPEDEF_FROM_RID[rip]
	mov	edx, r14d
	add	ebp, 1
	add	rbx, 32
	mov	edi, DWORD PTR record[rip]
	call	MCDI_SET_DWORD@PLT
	mov	esi, DWORD PTR MEMCPY_RECORD_TYPEDEF_FROM_ADDR[rip]
	mov	edi, DWORD PTR record[rip]
	mov	edx, r15d
	call	MCDI_SET_QWORD@PLT
	mov	edx, DWORD PTR -16[rbx]
	mov	esi, DWORD PTR MEMCPY_RECORD_TYPEDEF_LENGTH[rip]
	mov	edi, DWORD PTR record[rip]
	call	MCDI_SET_DWORD@PLT
	cmp	r13d, ebp
	je	.L4
.L9:
	mov	esi, DWORD PTR MEMCPY_IN_RECORD[rip]
	mov	edi, DWORD PTR inbuf[rip]
	mov	edx, ebp
	call	MCDI_ARRAY_STRUCT_PTR@PLT
	mov	esi, DWORD PTR MEMCPY_RECORD_TYPEDEF_NUM_RECORDS[rip]
	mov	edx, r13d
	mov	edi, eax
	mov	DWORD PTR record[rip], eax
	call	MCDI_SET_DWORD@PLT
	mov	edx, DWORD PTR [rbx]
	mov	esi, DWORD PTR MEMCPY_RECORD_TYPEDEF_TO_RID[rip]
	mov	edi, DWORD PTR record[rip]
	call	MCDI_SET_DWORD@PLT
	mov	edx, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR MEMCPY_RECORD_TYPEDEF_TO_ADDR[rip]
	mov	edi, DWORD PTR record[rip]
	call	MCDI_SET_QWORD@PLT
	cmp	QWORD PTR 24[rbx], 0
	jne	.L5
	mov	r14d, DWORD PTR 8[rbx]
	mov	r15d, DWORD PTR 12[rbx]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	edx, DWORD PTR inbuf[rip]
	mov	ecx, r12d
	xor	r9d, r9d
	push	0
	.cfi_def_cfa_offset 96
	mov	esi, DWORD PTR MC_CMD_MEMCPY[rip]
	xor	r8d, r8d
	mov	rdi, QWORD PTR 24[rsp]
	call	efx_mcdi_rpc@PLT
	mov	r12d, eax
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
.L8:
	xor	eax, eax
	call	mb@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	r12d, DWORD PTR ENOBUFS[rip]
	neg	r12d
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	efx_siena_sriov_memcpy, .-efx_siena_sriov_memcpy
	.comm	record,4,4
	.comm	inbuf,4,4
	.comm	MEMCPY_RECORD_TYPEDEF_TO_RID,4,4
	.comm	MEMCPY_RECORD_TYPEDEF_TO_ADDR,4,4
	.comm	MEMCPY_RECORD_TYPEDEF_NUM_RECORDS,4,4
	.comm	MEMCPY_RECORD_TYPEDEF_LENGTH,4,4
	.comm	MEMCPY_RECORD_TYPEDEF_FROM_RID,4,4
	.comm	MEMCPY_RECORD_TYPEDEF_FROM_ADDR,4,4
	.comm	MEMCPY_IN_RECORD,4,4
	.comm	MC_CMD_MEMCPY_RECORD_TYPEDEF_RID_INLINE,4,4
	.comm	MC_CMD_MEMCPY_IN_RECORD_MAXNUM,4,4
	.comm	MC_CMD_MEMCPY,4,4
	.comm	MCDI_CTL_SDU_LEN_MAX_V1,8,8
	.comm	ENOBUFS,4,4
	.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_siena_sriov.c_efx_siena_sriov_memcpy.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	efx_siena_sriov_memcpy, %function
efx_siena_sriov_memcpy:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r2
	ldr	fp, .L17
	ldr	r10, .L17+4
	ldr	r5, .L17+8
	sub	sp, sp, #28
	mov	r4, r1
	ldr	r0, [r10]
	ldr	r1, [fp]
	str	r3, [sp, #20]
	bl	MCDI_DECLARE_BUF
	ldr	r0, [r5]
	bl	MCDI_DECLARE_STRUCT_PTR
	bl	mb
	ldr	r3, .L17+12
	ldr	r0, [r3]
	cmp	r0, r8
	movcs	r0, #0
	movcc	r0, #1
	bl	WARN_ON
	subs	r6, r0, #0
	beq	.L2
	ldr	r3, .L17+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r0, r8
	bl	MC_CMD_MEMCPY_IN_LEN
	cmp	r8, #0
	mov	r7, r0
	beq	.L4
	add	r4, r4, #24
	b	.L9
.L5:
	ldr	r3, [r4, #-8]
	ldr	r0, [fp]
	add	r3, r7, r3
	cmp	r3, r0
	movls	r0, #0
	movhi	r0, #1
	bl	WARN_ON
	cmp	r0, #0
	bne	.L16
	ldr	r3, .L17+20
	mov	r1, r7
	ldr	r3, [r3]
	ldr	r0, [r10]
	str	r3, [sp, #16]
	bl	_MCDI_PTR
	ldr	r2, [r4, #-8]
	ldr	r1, [r4, #-4]
	bl	memcpy
	ldr	r2, [r4, #-8]
	ldr	r3, [sp, #16]
	mov	r9, r7
	add	r7, r7, r2
.L6:
	mov	r2, r3
	ldr	r3, .L17+24
	ldr	r0, [r5]
	ldr	r1, [r3]
	bl	MCDI_SET_DWORD
	ldr	r3, .L17+28
	mov	r2, r9
	ldr	r1, [r3]
	ldr	r0, [r5]
	bl	MCDI_SET_QWORD
	ldr	r3, .L17+32
	ldr	r2, [r4, #-8]
	ldr	r1, [r3]
	ldr	r0, [r5]
	add	r6, r6, #1
	bl	MCDI_SET_DWORD
	cmp	r8, r6
	add	r4, r4, #24
	beq	.L4
.L9:
	ldr	r3, .L17+36
	mov	r2, r6
	ldr	r1, [r3]
	ldr	r0, [r10]
	bl	MCDI_ARRAY_STRUCT_PTR
	ldr	r3, .L17+40
	mov	r2, r8
	ldr	r1, [r3]
	str	r0, [r5]
	bl	MCDI_SET_DWORD
	ldr	r3, .L17+44
	ldr	r2, [r4, #-24]
	ldr	r1, [r3]
	ldr	r0, [r5]
	bl	MCDI_SET_DWORD
	ldr	r3, .L17+48
	ldr	r2, [r4, #-20]
	ldr	r1, [r3]
	ldr	r0, [r5]
	bl	MCDI_SET_QWORD
	ldr	r3, [r4, #-4]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [r4, #-16]
	ldr	r9, [r4, #-12]
	b	.L6
.L4:
	mov	r1, #0
	ldr	ip, .L17+52
	str	r1, [sp, #8]
	str	r1, [sp, #4]
	str	r1, [sp]
	mov	r3, r7
	ldr	r2, [r10]
	ldr	r0, [sp, #20]
	ldr	r1, [ip]
	bl	efx_mcdi_rpc
	mov	r4, r0
.L8:
	bl	mb
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	ldr	r3, .L17+16
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L8
.L18:
	.align	2
.L17:
	.word	MCDI_CTL_SDU_LEN_MAX_V1
	.word	inbuf
	.word	record
	.word	MC_CMD_MEMCPY_IN_RECORD_MAXNUM
	.word	ENOBUFS
	.word	MC_CMD_MEMCPY_RECORD_TYPEDEF_RID_INLINE
	.word	MEMCPY_RECORD_TYPEDEF_FROM_RID
	.word	MEMCPY_RECORD_TYPEDEF_FROM_ADDR
	.word	MEMCPY_RECORD_TYPEDEF_LENGTH
	.word	MEMCPY_IN_RECORD
	.word	MEMCPY_RECORD_TYPEDEF_NUM_RECORDS
	.word	MEMCPY_RECORD_TYPEDEF_TO_RID
	.word	MEMCPY_RECORD_TYPEDEF_TO_ADDR
	.word	MC_CMD_MEMCPY
	.size	efx_siena_sriov_memcpy, .-efx_siena_sriov_memcpy
	.comm	record,4,4
	.comm	inbuf,4,4
	.comm	MEMCPY_RECORD_TYPEDEF_TO_RID,4,4
	.comm	MEMCPY_RECORD_TYPEDEF_TO_ADDR,4,4
	.comm	MEMCPY_RECORD_TYPEDEF_NUM_RECORDS,4,4
	.comm	MEMCPY_RECORD_TYPEDEF_LENGTH,4,4
	.comm	MEMCPY_RECORD_TYPEDEF_FROM_RID,4,4
	.comm	MEMCPY_RECORD_TYPEDEF_FROM_ADDR,4,4
	.comm	MEMCPY_IN_RECORD,4,4
	.comm	MC_CMD_MEMCPY_RECORD_TYPEDEF_RID_INLINE,4,4
	.comm	MC_CMD_MEMCPY_IN_RECORD_MAXNUM,4,4
	.comm	MC_CMD_MEMCPY,4,4
	.comm	MCDI_CTL_SDU_LEN_MAX_V1,4,4
	.comm	ENOBUFS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
