	.file	"extr_libcxgbi.c_cxgbi_ddp_set_one_ppod.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cxgbi_ddp_set_one_ppod
	.type	cxgbi_ddp_set_one_ppod, @function
cxgbi_ddp_set_one_ppod:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xor	r14d, r14d
	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
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	QWORD PTR 24[rsp], rdx
	mov	QWORD PTR 16[rsp], rcx
	test	rdx, rdx
	je	.L2
	mov	r14, QWORD PTR [rdx]
.L2:
	mov	rax, QWORD PTR 16[rsp]
	xor	ebp, ebp
	test	rax, rax
	je	.L3
	mov	ebp, DWORD PTR [rax]
.L3:
	mov	edx, 4
	mov	rdi, r15
	call	memcpy@PLT
	test	r14, r14
	je	.L17
	mov	rdi, r14
	call	sg_dma_address@PLT
	mov	rdi, r14
	mov	QWORD PTR 8[rsp], rax
	call	sg_dma_len@PLT
	mov	r12d, eax
.L4:
	mov	eax, DWORD PTR PPOD_PAGES_MAX[rip]
	xor	ebx, ebx
	test	eax, eax
	jg	.L8
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L35:
	mov	edi, ebp
	add	rdi, QWORD PTR 8[rsp]
	call	cpu_to_be64@PLT
	add	ebp, DWORD PTR PAGE_SIZE[rip]
	mov	QWORD PTR 0[r13], rax
	mov	eax, DWORD PTR [r14]
	add	eax, r12d
	cmp	eax, ebp
	je	.L33
.L7:
	lea	eax, 1[rbx]
	add	rbx, 1
	cmp	DWORD PTR PPOD_PAGES_MAX[rip], ebx
	jle	.L34
.L8:
	mov	rax, QWORD PTR [r15]
	lea	r13, [rax+rbx*8]
	test	r14, r14
	jne	.L35
	lea	eax, 1[rbx]
	add	rbx, 1
	cmp	DWORD PTR PPOD_PAGES_MAX[rip], ebx
	mov	QWORD PTR 0[r13], 0
	jg	.L8
.L34:
	cdqe
	lea	rbx, 0[0+rax*8]
.L5:
	mov	rax, QWORD PTR 24[rsp]
	test	rax, rax
	je	.L9
	mov	QWORD PTR [rax], r14
	mov	rax, QWORD PTR 16[rsp]
	mov	DWORD PTR [rax], ebp
.L9:
	cmp	r12d, ebp
	je	.L36
	test	r14, r14
	je	.L14
	add	rbp, QWORD PTR 8[rsp]
.L13:
	mov	rdi, rbp
	call	cpu_to_be64@PLT
.L12:
	mov	rdx, QWORD PTR [r15]
	mov	QWORD PTR [rdx+rbx], rax
	add	rsp, 40
	.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
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_restore_state
	mov	rdi, r14
	xor	ebp, ebp
	call	sg_next@PLT
	mov	r14, rax
	test	rax, rax
	je	.L7
	mov	rdi, rax
	call	sg_dma_address@PLT
	mov	rdi, r14
	mov	QWORD PTR 8[rsp], rax
	call	sg_dma_len@PLT
	mov	r12d, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rdi, r14
	call	sg_next@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L11
.L14:
	xor	eax, eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L17:
	mov	QWORD PTR 8[rsp], 0
	xor	r12d, r12d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, rax
	call	sg_dma_address@PLT
	mov	rdi, r12
	mov	rbp, rax
	call	sg_dma_len@PLT
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	cxgbi_ddp_set_one_ppod, .-cxgbi_ddp_set_one_ppod
	.comm	PPOD_PAGES_MAX,4,4
	.comm	PAGE_SIZE,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_libcxgbi.c_cxgbi_ddp_set_one_ppod.c"
	.text
	.align	2
	.global	cxgbi_ddp_set_one_ppod
	.syntax unified
	.arm
	.fpu softvfp
	.type	cxgbi_ddp_set_one_ppod, %function
cxgbi_ddp_set_one_ppod:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #20
	cmp	r2, #0
	str	r3, [sp, #8]
	ldr	r3, [sp, #8]
	str	r2, [sp, #12]
	ldreq	r7, [sp, #12]
	ldrne	r7, [r2]
	cmp	r3, #0
	mov	r2, #4
	ldrne	r6, [r3]
	ldreq	r6, [sp, #8]
	mov	r10, r0
	bl	memcpy
	cmp	r7, #0
	moveq	r8, r7
	streq	r7, [sp, #4]
	beq	.L4
	mov	r0, r7
	bl	sg_dma_address
	mov	r8, r0
	mov	r0, r7
	bl	sg_dma_len
	str	r0, [sp, #4]
.L4:
	ldr	r9, .L33
	mov	r4, #0
	ldr	r1, [r9]
	cmp	r1, #0
	ble	.L5
	ldr	fp, .L33+4
	b	.L8
.L31:
	bl	cpu_to_be64
	ldr	ip, [fp]
	ldr	r2, [r7]
	ldr	r3, [sp, #4]
	add	r6, r6, ip
	add	r2, r3, r2
	cmp	r2, r6
	stm	r5, {r0-r1}
	beq	.L29
.L7:
	ldr	r2, [r9]
	add	r4, r4, #1
	cmp	r2, r4
	ble	.L30
.L8:
	ldr	r5, [r10]
	cmp	r7, #0
	add	r0, r8, r6
	add	r5, r5, r4, lsl #3
	bne	.L31
	mov	r2, #0
	mov	r3, #0
	stm	r5, {r2-r3}
	ldr	r2, [r9]
	add	r4, r4, #1
	cmp	r2, r4
	bgt	.L8
.L30:
	lsl	r4, r4, #3
.L5:
	ldr	r3, [sp, #12]
	cmp	r3, #0
	strne	r7, [r3]
	ldrne	r3, [sp, #8]
	strne	r6, [r3]
	ldr	r3, [sp, #4]
	cmp	r3, r6
	beq	.L32
	cmp	r7, #0
	beq	.L14
	add	r6, r8, r6
.L13:
	mov	r0, r6
	bl	cpu_to_be64
.L12:
	ldr	r3, [r10]
	add	r4, r3, r4
	stm	r4, {r0, r1}
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L29:
	mov	r0, r7
	bl	sg_next
	subs	r7, r0, #0
	moveq	r6, r7
	beq	.L7
	bl	sg_dma_address
	mov	r8, r0
	mov	r0, r7
	bl	sg_dma_len
	mov	r6, #0
	str	r0, [sp, #4]
	b	.L7
.L32:
	mov	r0, r7
	bl	sg_next
	subs	r5, r0, #0
	bne	.L11
.L14:
	mov	r0, #0
	mov	r1, r0
	b	.L12
.L11:
	bl	sg_dma_address
	mov	r6, r0
	mov	r0, r5
	bl	sg_dma_len
	b	.L13
.L34:
	.align	2
.L33:
	.word	PPOD_PAGES_MAX
	.word	PAGE_SIZE
	.size	cxgbi_ddp_set_one_ppod, .-cxgbi_ddp_set_one_ppod
	.comm	PPOD_PAGES_MAX,4,4
	.comm	PAGE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
