	.file	"extr_i40e_hmc.c_i40e_add_pd_table_entry.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"i40e_add_pd_table_entry: bad pd_index\n"
	.text
	.p2align 4
	.globl	i40e_add_pd_table_entry
	.type	i40e_add_pd_table_entry, @function
i40e_add_pd_table_entry:
.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
	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, rdx
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, rdx
	xor	edx, edx
	div	QWORD PTR I40E_HMC_PD_CNT_IN_SD[rip]
	cmp	rax, QWORD PTR [rsi]
	jnb	.L11
.L3:
	endbr64
	mov	r13, rdx
	mov	rdx, QWORD PTR 8[rsi]
	mov	rbp, rax
	lea	rax, [rax+rax*2]
	xor	r15d, r15d
	lea	r14, [rdx+rax*8]
	mov	rax, QWORD PTR I40E_SD_TYPE_PAGED[rip]
	cmp	QWORD PTR [r14], rax
	jne	.L1
	mov	rsi, QWORD PTR 16[r14]
	lea	rdx, 0[r13+r13*4]
	lea	r12, [rsi+rdx*8]
	mov	edx, DWORD PTR [r12]
	test	edx, edx
	jne	.L4
	test	rcx, rcx
	je	.L5
	mov	DWORD PTR 4[r12], 1
.L6:
	mov	edx, DWORD PTR [rcx]
	mov	QWORD PTR 24[r12], rax
	lea	rsi, 20[rsp]
	lea	rdi, 0[0+r13*4]
	mov	QWORD PTR 16[r12], rbx
	add	rdi, QWORD PTR 8[r14]
	mov	DWORD PTR 32[r12], edx
	mov	eax, DWORD PTR [rcx]
	mov	edx, 4
	or	eax, 1
	mov	DWORD PTR 20[rsp], eax
	call	memcpy@PLT
	mov	QWORD PTR 8[r12], rbp
	lea	rdi, 8[r14]
	mov	DWORD PTR [r12], 1
	call	I40E_INC_PD_REFCNT@PLT
.L4:
	lea	rdi, 16[r12]
	xor	r15d, r15d
	call	I40E_INC_BP_REFCNT@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r15
	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
.L11:
	.cfi_restore_state
	lea	rsi, .LC0[rip]
	mov	r15, QWORD PTR I40E_ERR_INVALID_PAGE_DESC_INDEX[rip]
	call	hw_dbg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r8d, DWORD PTR I40E_HMC_PD_BP_BUF_ALIGNMENT[rip]
	mov	ecx, DWORD PTR I40E_HMC_PAGED_BP_SIZE[rip]
	lea	rsi, 16[rsp]
	mov	edx, DWORD PTR i40e_mem_bp[rip]
	mov	QWORD PTR 8[rsp], rsi
	call	i40e_allocate_dma_mem@PLT
	mov	r15, rax
	test	rax, rax
	jne	.L1
	mov	rsi, QWORD PTR 8[rsp]
	mov	rax, QWORD PTR I40E_SD_TYPE_PAGED[rip]
	mov	DWORD PTR 4[r12], 0
	mov	rcx, rsi
	jmp	.L6
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	i40e_add_pd_table_entry, .-i40e_add_pd_table_entry
	.comm	i40e_mem_bp,4,4
	.comm	I40E_SD_TYPE_PAGED,8,8
	.comm	I40E_HMC_PD_CNT_IN_SD,8,8
	.comm	I40E_HMC_PD_BP_BUF_ALIGNMENT,4,4
	.comm	I40E_HMC_PAGED_BP_SIZE,4,4
	.comm	I40E_ERR_INVALID_PAGE_DESC_INDEX,8,8
	.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_i40e_hmc.c_i40e_add_pd_table_entry.c"
	.text
	.global	__aeabi_uidivmod
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"i40e_add_pd_table_entry: bad pd_index\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	i40e_add_pd_table_entry
	.syntax unified
	.arm
	.fpu softvfp
	.type	i40e_add_pd_table_entry, %function
i40e_add_pd_table_entry:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r2
	ldr	r2, .L13
	mov	r7, r1
	mov	r8, r3
	ldr	r3, .L13+4
	sub	sp, sp, #36
	mov	r9, r0
	ldr	r1, [r2]
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	__aeabi_uidivmod
	ldr	r3, [r7]
	cmp	r0, r3
	bcs	.L11
.L3:
	ldr	r3, [r7, #4]
	ldr	r10, .L13+8
	add	r2, r0, r0, lsl #1
	mov	r4, r0
	mov	r6, r1
	ldr	r0, [r3, r2, lsl #2]
	ldr	r1, [r10]
	add	r3, r3, r2, lsl #2
	cmp	r0, r1
	movne	r9, #0
	str	r3, [sp, #8]
	bne	.L1
	ldr	fp, [r3, #8]
	add	r7, r6, r6, lsl #1
	lsl	r3, r7, #3
	str	r3, [sp, #12]
	ldr	r3, [fp, r3]
	add	r7, fp, r7, lsl #3
	cmp	r3, #0
	bne	.L4
	cmp	r8, #0
	beq	.L5
	mov	r3, #1
	str	r3, [r7, #4]
.L6:
	ldr	r3, [r8]
	ldr	r9, [sp, #8]
	str	r3, [r7, #20]
	ldr	r0, [r9, #4]!
	ldr	r3, [r8]
	mov	r2, #4
	orr	r3, r3, #1
	str	r1, [r7, #16]
	str	r5, [r7, #12]
	add	r0, r0, r6, lsl #2
	add	r1, sp, #24
	str	r3, [sp, #24]
	bl	memcpy
	mov	r3, #1
	ldr	r2, [sp, #12]
	str	r4, [r7, #8]
	mov	r0, r9
	str	r3, [fp, r2]
	bl	I40E_INC_PD_REFCNT
.L4:
	add	r0, r7, #12
	bl	I40E_INC_BP_REFCNT
	mov	r9, #0
.L1:
	ldr	r3, .L13+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r9
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	ldr	r3, .L13+12
	mov	r0, r9
	ldr	r1, .L13+16
	ldr	r9, [r3]
	bl	hw_dbg
	b	.L1
.L5:
	ldr	r2, .L13+20
	ldr	r3, .L13+24
	ldr	r1, [r2]
	ldr	r2, .L13+28
	str	r1, [sp]
	mov	r0, r9
	ldr	r3, [r3]
	ldr	r2, [r2]
	add	r1, sp, #20
	bl	i40e_allocate_dma_mem
	subs	r9, r0, #0
	bne	.L1
	str	r8, [r7, #4]
	ldr	r1, [r10]
	add	r8, sp, #20
	b	.L6
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	I40E_HMC_PD_CNT_IN_SD
	.word	.LC1
	.word	I40E_SD_TYPE_PAGED
	.word	I40E_ERR_INVALID_PAGE_DESC_INDEX
	.word	.LC0
	.word	I40E_HMC_PD_BP_BUF_ALIGNMENT
	.word	I40E_HMC_PAGED_BP_SIZE
	.word	i40e_mem_bp
	.size	i40e_add_pd_table_entry, .-i40e_add_pd_table_entry
	.comm	i40e_mem_bp,4,4
	.comm	I40E_SD_TYPE_PAGED,4,4
	.comm	I40E_HMC_PD_CNT_IN_SD,4,4
	.comm	I40E_HMC_PD_BP_BUF_ALIGNMENT,4,4
	.comm	I40E_HMC_PAGED_BP_SIZE,4,4
	.comm	I40E_ERR_INVALID_PAGE_DESC_INDEX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
