	.file	"extr_bnx2.c_bnx2_reuse_rx_skb_pages.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bnx2_reuse_rx_skb_pages, @function
bnx2_reuse_rx_skb_pages:
.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, rsi
	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	rbp, QWORD PTR [rsi]
	mov	DWORD PTR 28[rsp], ecx
	test	rdx, rdx
	je	.L2
	mov	rdi, rdx
	mov	r12, rdx
	mov	rbx, QWORD PTR 24[rsi]
	call	skb_shinfo@PLT
	mov	rdi, r12
	mov	rdx, QWORD PTR [rax]
	sub	rdx, 1
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR 8[rax]
	lea	rax, [rax+rdx*8]
	mov	rdx, QWORD PTR [rax]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR [rbx+rbp*8], rdx
	call	dev_kfree_skb@PLT
.L2:
	mov	eax, DWORD PTR 28[rsp]
	mov	r12, QWORD PTR 8[r13]
	test	eax, eax
	jle	.L3
	xor	r14d, r14d
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, r12
	call	BNX2_RX_PG_RING_IDX@PLT
	mov	rcx, QWORD PTR 24[r13]
	mov	r15, QWORD PTR 16[r13]
	mov	rdi, rbp
	mov	rbx, rax
	mov	QWORD PTR [rsp], rcx
	call	BNX2_RX_RING@PLT
	mov	rdi, rbp
	mov	rsi, QWORD PTR [r15+rax*8]
	mov	QWORD PTR 8[rsp], rsi
	call	BNX2_RX_IDX@PLT
	mov	r15, QWORD PTR 16[r13]
	mov	rdi, rbx
	mov	QWORD PTR 16[rsp], rax
	call	BNX2_RX_RING@PLT
	mov	rdi, rbx
	mov	r15, QWORD PTR [r15+rax*8]
	call	BNX2_RX_IDX@PLT
	cmp	rbx, rbp
	je	.L4
	mov	rcx, QWORD PTR [rsp]
	lea	r15, [r15+rax*8]
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdx, QWORD PTR 16[rsp]
	lea	rdi, [rcx+rbp*8]
	lea	r8, [rcx+rbx*8]
	mov	rax, QWORD PTR [rdi]
	lea	rbx, [rsi+rdx*8]
	mov	esi, DWORD PTR mapping[rip]
	mov	QWORD PTR [rsp], r8
	mov	QWORD PTR [r8], rax
	mov	QWORD PTR [rdi], 0
	call	pci_unmap_addr@PLT
	mov	r8, QWORD PTR [rsp]
	mov	esi, DWORD PTR mapping[rip]
	mov	edx, eax
	mov	rdi, r8
	call	pci_unmap_addr_set@PLT
	mov	eax, DWORD PTR 4[rbx]
	mov	DWORD PTR 4[r15], eax
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR [r15], eax
.L4:
	mov	rdi, rbp
	add	r14d, 1
	call	BNX2_NEXT_RX_BD@PLT
	mov	rdi, rax
	call	BNX2_RX_PG_RING_IDX@PLT
	mov	rdi, r12
	mov	rbp, rax
	call	BNX2_NEXT_RX_BD@PLT
	mov	r12, rax
	cmp	DWORD PTR 28[rsp], r14d
	jne	.L5
.L3:
	mov	QWORD PTR 8[r13], r12
	mov	QWORD PTR 0[r13], rbp
	add	rsp, 40
	.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
	.cfi_endproc
.LFE0:
	.size	bnx2_reuse_rx_skb_pages, .-bnx2_reuse_rx_skb_pages
	.comm	mapping,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_bnx2.c_bnx2_reuse_rx_skb_pages.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnx2_reuse_rx_skb_pages, %function
bnx2_reuse_rx_skb_pages:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r5, r2, #0
	sub	sp, sp, #20
	mov	r8, r1
	ldr	r4, [r1]
	str	r3, [sp, #8]
	beq	.L2
	mov	r0, r5
	ldr	r6, [r1, #12]
	bl	skb_shinfo
	mov	lr, #0
	mov	r1, r0
	ldr	r3, [r0]
	ldr	r2, [r0, #4]
	sub	r3, r3, #1
	ldr	ip, [r2, r3, lsl #2]
	mov	r0, r5
	str	r3, [r1]
	str	lr, [r2, r3, lsl #2]
	str	ip, [r6, r4, lsl #2]
	bl	dev_kfree_skb
.L2:
	ldr	r3, [sp, #8]
	ldr	r6, [r8, #4]
	cmp	r3, #0
	ble	.L3
	mov	r9, #0
.L5:
	mov	r0, r6
	bl	BNX2_RX_PG_RING_IDX
	mov	r5, r0
	mov	r0, r4
	ldr	r7, [r8, #8]
	ldr	fp, [r8, #12]
	bl	BNX2_RX_RING
	mov	r3, r0
	ldr	r3, [r7, r3, lsl #2]
	mov	r0, r4
	str	r3, [sp]
	bl	BNX2_RX_IDX
	mov	r7, r0
	mov	r0, r5
	ldr	r10, [r8, #8]
	bl	BNX2_RX_RING
	mov	r3, r0
	mov	r0, r5
	ldr	r10, [r10, r3, lsl #2]
	bl	BNX2_RX_IDX
	cmp	r5, r4
	add	r9, r9, #1
	str	r0, [sp, #4]
	beq	.L4
	ldr	r2, .L12
	ldr	r0, [fp, r4, lsl #2]
	ldr	r1, [r2]
	mov	r2, #0
	str	r0, [fp, r5, lsl #2]
	str	r2, [fp, r4, lsl #2]
	add	r0, fp, r4, lsl #2
	str	r1, [sp, #12]
	bl	pci_unmap_addr
	add	r5, fp, r5, lsl #2
	ldr	fp, [sp]
	mov	r2, r0
	ldr	r1, [sp, #12]
	mov	r0, r5
	bl	pci_unmap_addr_set
	add	r5, fp, r7, lsl #3
	ldr	r3, [sp, #4]
	ldr	r0, [r5, #4]
	ldr	r2, [fp, r7, lsl #3]
	add	r1, r10, r3, lsl #3
	str	r0, [r1, #4]
	str	r2, [r10, r3, lsl #3]
.L4:
	mov	r0, r4
	bl	BNX2_NEXT_RX_BD
	bl	BNX2_RX_PG_RING_IDX
	mov	r4, r0
	mov	r0, r6
	bl	BNX2_NEXT_RX_BD
	ldr	r3, [sp, #8]
	mov	r6, r0
	cmp	r3, r9
	bne	.L5
.L3:
	stm	r8, {r4, r6}
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	.align	2
.L12:
	.word	mapping
	.size	bnx2_reuse_rx_skb_pages, .-bnx2_reuse_rx_skb_pages
	.comm	mapping,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
