	.file	"extr_if_ix.c_ixgbe_initialize_receive_units.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ixgbe_initialize_receive_units, @function
ixgbe_initialize_receive_units:
.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, edi
	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
	call	iflib_get_softc@PLT
	mov	edi, r13d
	mov	r12, rax
	mov	rax, QWORD PTR 32[rax]
	lea	rbp, 8[r12]
	mov	QWORD PTR 8[rsp], rax
	call	iflib_get_ifp@PLT
	mov	rdi, rbp
	mov	QWORD PTR 24[rsp], rax
	call	ixgbe_disable_rx@PLT
	mov	esi, DWORD PTR IXGBE_FCTRL[rip]
	mov	rdi, rbp
	call	IXGBE_READ_REG@PLT
	or	eax, DWORD PTR IXGBE_FCTRL_BAM[rip]
	mov	edx, eax
	mov	rax, QWORD PTR ixgbe_mac_82598EB[rip]
	cmp	QWORD PTR 8[r12], rax
	jne	.L2
	mov	eax, DWORD PTR IXGBE_FCTRL_DPF[rip]
	or	eax, DWORD PTR IXGBE_FCTRL_PMCF[rip]
	or	edx, eax
.L2:
	mov	esi, DWORD PTR IXGBE_FCTRL[rip]
	mov	rdi, rbp
	call	IXGBE_WRITE_REG@PLT
	mov	esi, DWORD PTR IXGBE_HLREG0[rip]
	mov	rdi, rbp
	call	IXGBE_READ_REG@PLT
	mov	rcx, QWORD PTR ETHERMTU[rip]
	mov	edx, eax
	mov	rax, QWORD PTR 24[rsp]
	cmp	QWORD PTR [rax], rcx
	jle	.L3
	or	edx, DWORD PTR IXGBE_HLREG0_JUMBOEN[rip]
.L4:
	mov	esi, DWORD PTR IXGBE_HLREG0[rip]
	mov	rdi, rbp
	xor	r13d, r13d
	call	IXGBE_WRITE_REG@PLT
	mov	ecx, DWORD PTR IXGBE_SRRCTL_BSIZEPKT_SHIFT[rip]
	mov	eax, DWORD PTR 4[r12]
	mov	r14d, DWORD PTR BSIZEPKT_ROUNDUP[rip]
	add	r14d, DWORD PTR [r12]
	sar	r14d, cl
	mov	DWORD PTR 20[rsp], r14d
	mov	r14, QWORD PTR 24[r12]
	test	eax, eax
	jg	.L5
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	not	ebx
	and	ebx, eax
.L10:
	mov	edi, r15d
	add	r13d, 1
	add	r14, 12
	call	IXGBE_SRRCTL@PLT
	mov	edx, ebx
	mov	rdi, rbp
	mov	esi, eax
	call	IXGBE_WRITE_REG@PLT
	mov	edi, r15d
	call	IXGBE_RDH@PLT
	xor	edx, edx
	mov	rdi, rbp
	mov	esi, eax
	call	IXGBE_WRITE_REG@PLT
	mov	edi, r15d
	call	IXGBE_RDT@PLT
	xor	edx, edx
	mov	rdi, rbp
	mov	esi, eax
	call	IXGBE_WRITE_REG@PLT
	mov	edi, DWORD PTR -8[r14]
	call	IXGBE_RDT@PLT
	mov	DWORD PTR -4[r14], eax
	cmp	DWORD PTR 4[r12], r13d
	jle	.L11
.L5:
	mov	r15d, DWORD PTR 4[r14]
	mov	ebx, DWORD PTR [r14]
	mov	edi, r15d
	call	IXGBE_RDBAL@PLT
	mov	edx, ebx
	mov	rdi, rbp
	mov	esi, eax
	call	IXGBE_WRITE_REG@PLT
	mov	edi, r15d
	call	IXGBE_RDBAH@PLT
	mov	ecx, 32
	mov	edx, ebx
	mov	rdi, rbp
	sar	edx, cl
	mov	esi, eax
	call	IXGBE_WRITE_REG@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	edi, r15d
	mov	rax, QWORD PTR [rax]
	mov	ebx, DWORD PTR [rax]
	call	IXGBE_RDLEN@PLT
	mov	rdi, rbp
	sal	ebx, 2
	mov	esi, eax
	mov	edx, ebx
	call	IXGBE_WRITE_REG@PLT
	mov	edi, r15d
	call	IXGBE_SRRCTL@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	IXGBE_READ_REG@PLT
	mov	edx, DWORD PTR 20[rsp]
	or	edx, DWORD PTR IXGBE_SRRCTL_DESCTYPE_ADV_ONEBUF[rip]
	mov	r9d, eax
	mov	eax, DWORD PTR IXGBE_SRRCTL_BSIZEHDR_MASK[rip]
	or	eax, DWORD PTR IXGBE_SRRCTL_BSIZEPKT_MASK[rip]
	not	eax
	mov	ebx, DWORD PTR IXGBE_SRRCTL_DROP_EN[rip]
	and	eax, r9d
	or	eax, edx
	cmp	DWORD PTR 4[r12], 1
	jle	.L9
	mov	rcx, QWORD PTR ixgbe_fc_none[rip]
	cmp	QWORD PTR 16[r12], rcx
	jne	.L9
	or	ebx, eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR ixgbe_mac_82598EB[rip]
	cmp	QWORD PTR 8[r12], rax
	je	.L7
	xor	edi, edi
	mov	r13d, DWORD PTR IXGBE_PSRTYPE_TCPHDR[rip]
	or	r13d, DWORD PTR IXGBE_PSRTYPE_UDPHDR[rip]
	or	r13d, DWORD PTR IXGBE_PSRTYPE_IPV4HDR[rip]
	or	r13d, DWORD PTR IXGBE_PSRTYPE_IPV6HDR[rip]
	call	IXGBE_PSRTYPE@PLT
	mov	edx, r13d
	mov	rdi, rbp
	mov	esi, eax
	call	IXGBE_WRITE_REG@PLT
.L7:
	mov	esi, DWORD PTR IXGBE_RXCSUM[rip]
	mov	rdi, rbp
	call	IXGBE_READ_REG@PLT
	mov	rdi, r12
	mov	r13d, eax
	call	ixgbe_initialize_rss_mapping@PLT
	cmp	DWORD PTR 4[r12], 1
	mov	eax, DWORD PTR IXGBE_RXCSUM_PCSD[rip]
	jle	.L13
	or	r13d, eax
.L13:
	mov	rcx, QWORD PTR 24[rsp]
	mov	edx, r13d
	or	edx, eax
	mov	ecx, DWORD PTR 8[rcx]
	test	DWORD PTR IFCAP_RXCSUM[rip], ecx
	cmovne	r13d, edx
	test	r13d, eax
	jne	.L15
	or	r13d, DWORD PTR IXGBE_RXCSUM_IPPCSE[rip]
.L15:
	mov	esi, DWORD PTR IXGBE_RXCSUM[rip]
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	edx, r13d
	mov	rdi, rbp
	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
	jmp	IXGBE_WRITE_REG@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR IXGBE_HLREG0_JUMBOEN[rip]
	not	eax
	and	edx, eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	ixgbe_initialize_receive_units, .-ixgbe_initialize_receive_units
	.comm	ixgbe_mac_82598EB,8,8
	.comm	ixgbe_fc_none,8,8
	.comm	IXGBE_SRRCTL_DROP_EN,4,4
	.comm	IXGBE_SRRCTL_DESCTYPE_ADV_ONEBUF,4,4
	.comm	IXGBE_SRRCTL_BSIZEPKT_SHIFT,4,4
	.comm	IXGBE_SRRCTL_BSIZEPKT_MASK,4,4
	.comm	IXGBE_SRRCTL_BSIZEHDR_MASK,4,4
	.comm	IXGBE_RXCSUM_PCSD,4,4
	.comm	IXGBE_RXCSUM_IPPCSE,4,4
	.comm	IXGBE_RXCSUM,4,4
	.comm	IXGBE_PSRTYPE_UDPHDR,4,4
	.comm	IXGBE_PSRTYPE_TCPHDR,4,4
	.comm	IXGBE_PSRTYPE_IPV6HDR,4,4
	.comm	IXGBE_PSRTYPE_IPV4HDR,4,4
	.comm	IXGBE_HLREG0_JUMBOEN,4,4
	.comm	IXGBE_HLREG0,4,4
	.comm	IXGBE_FCTRL_PMCF,4,4
	.comm	IXGBE_FCTRL_DPF,4,4
	.comm	IXGBE_FCTRL_BAM,4,4
	.comm	IXGBE_FCTRL,4,4
	.comm	IFCAP_RXCSUM,4,4
	.comm	ETHERMTU,8,8
	.comm	BSIZEPKT_ROUNDUP,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_if_ix.c_ixgbe_initialize_receive_units.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ixgbe_initialize_receive_units, %function
ixgbe_initialize_receive_units:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	mov	r4, r0
	bl	iflib_get_softc
	mov	r9, r0
	mov	r0, r4
	ldr	r8, [r9, #20]
	bl	iflib_get_ifp
	mov	r2, r0
	add	r4, r9, #8
	ldr	r6, .L24
	mov	r0, r4
	str	r2, [sp, #4]
	bl	ixgbe_disable_rx
	ldr	r1, [r6]
	mov	r0, r4
	bl	IXGBE_READ_REG
	ldr	r3, .L24+4
	ldr	r2, .L24+8
	ldr	ip, [r9, #8]
	ldr	r1, [r3]
	ldr	r2, [r2]
	cmp	ip, r1
	orr	r2, r0, r2
	bne	.L2
	ldr	r1, .L24+12
	ldr	r0, .L24+16
	ldr	r1, [r1]
	ldr	r0, [r0]
	orr	r1, r1, r0
	orr	r2, r2, r1
.L2:
	ldr	r5, .L24+20
	ldr	r1, [r6]
	mov	r0, r4
	bl	IXGBE_WRITE_REG
	ldr	r1, [r5]
	mov	r0, r4
	bl	IXGBE_READ_REG
	ldr	r3, [sp, #4]
	ldr	r2, .L24+24
	ldr	r1, [r3]
	ldr	r2, [r2]
	cmp	r1, r2
	ldr	r2, .L24+28
	ldr	r1, [r5]
	ldr	r2, [r2]
	orrgt	r2, r0, r2
	bicle	r2, r0, r2
	mov	r0, r4
	bl	IXGBE_WRITE_REG
	ldr	r2, .L24+32
	ldr	r1, .L24+36
	ldr	ip, [r2]
	ldr	r2, [r9]
	ldr	r0, [r9, #4]
	ldr	r1, [r1]
	add	r2, r2, ip
	asr	r3, r2, r1
	cmp	r0, #0
	ldr	r6, [r9, #16]
	str	r3, [sp]
	ble	.L12
	mov	r7, #0
	ldr	fp, .L24+40
	add	r6, r6, #12
	b	.L11
.L23:
	ldr	r2, .L24+44
	ldr	r0, [r9, #12]
	ldr	r1, [r2]
	ldr	r2, .L24+48
	cmp	r0, r1
	ldr	r2, [r2]
	orreq	r10, r3, r2
	beq	.L10
.L9:
	bic	r10, r3, r2
.L10:
	mov	r0, r5
	bl	IXGBE_SRRCTL
	mov	r2, r10
	mov	r1, r0
	mov	r0, r4
	bl	IXGBE_WRITE_REG
	mov	r0, r5
	bl	IXGBE_RDH
	mov	r2, #0
	mov	r1, r0
	mov	r0, r4
	bl	IXGBE_WRITE_REG
	mov	r0, r5
	bl	IXGBE_RDT
	mov	r2, #0
	mov	r1, r0
	mov	r0, r4
	bl	IXGBE_WRITE_REG
	ldr	r0, [r6, #-8]
	bl	IXGBE_RDT
	str	r0, [r6, #-4]
	ldr	r3, [r9, #4]
	add	r7, r7, #1
	cmp	r3, r7
	add	r6, r6, #12
	ble	.L12
.L11:
	ldr	r5, [r6, #-8]
	ldr	r10, [r6, #-12]
	mov	r0, r5
	bl	IXGBE_RDBAL
	mov	r2, r10
	mov	r1, r0
	mov	r0, r4
	bl	IXGBE_WRITE_REG
	mov	r0, r5
	bl	IXGBE_RDBAH
	asr	r2, r10, #32
	mov	r1, r0
	mov	r0, r4
	bl	IXGBE_WRITE_REG
	mov	r0, r5
	bl	IXGBE_RDLEN
	ldr	r3, [r8]
	mov	r1, r0
	ldr	r2, [r3]
	mov	r0, r4
	lsl	r2, r2, #2
	bl	IXGBE_WRITE_REG
	mov	r0, r5
	bl	IXGBE_SRRCTL
	mov	r1, r0
	mov	r0, r4
	bl	IXGBE_READ_REG
	ldr	r3, .L24+52
	ldr	r2, [fp]
	ldr	ip, [r3]
	ldr	r3, .L24+56
	orr	r2, r2, ip
	bic	r2, r0, r2
	ldr	r3, [r3]
	ldr	r1, [r9, #4]
	ldr	r0, [sp]
	cmp	r1, #1
	orr	r3, r0, r3
	orr	r3, r3, r2
	bgt	.L23
	ldr	r2, .L24+48
	ldr	r2, [r2]
	b	.L9
.L12:
	ldr	r3, .L24+4
	ldr	r1, [r9, #8]
	ldr	r2, [r3]
	cmp	r1, r2
	beq	.L7
	ldr	r0, .L24+60
	ldr	r2, .L24+64
	ldr	r1, .L24+68
	ldr	r5, [r0]
	ldr	r0, [r2]
	ldr	r2, .L24+72
	ldr	r1, [r1]
	ldr	r2, [r2]
	orr	r5, r5, r0
	orr	r5, r5, r1
	mov	r0, #0
	orr	r5, r5, r2
	bl	IXGBE_PSRTYPE
	mov	r2, r5
	mov	r1, r0
	mov	r0, r4
	bl	IXGBE_WRITE_REG
.L7:
	ldr	r6, .L24+76
	mov	r0, r4
	ldr	r1, [r6]
	bl	IXGBE_READ_REG
	mov	r5, r0
	mov	r0, r9
	bl	ixgbe_initialize_rss_mapping
	ldr	r3, [r9, #4]
	ldr	r1, [sp, #4]
	cmp	r3, #1
	ldr	r2, .L24+80
	ldr	r3, .L24+84
	ldr	r1, [r1, #4]
	ldr	r3, [r3]
	ldr	r2, [r2]
	orrgt	r5, r5, r3
	tst	r1, r2
	orrne	r5, r5, r3
	tst	r5, r3
	ldreq	r3, .L24+88
	mov	r0, r4
	ldreq	r3, [r3]
	ldr	r1, [r6]
	orreq	r5, r5, r3
	mov	r2, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	IXGBE_WRITE_REG
.L25:
	.align	2
.L24:
	.word	IXGBE_FCTRL
	.word	ixgbe_mac_82598EB
	.word	IXGBE_FCTRL_BAM
	.word	IXGBE_FCTRL_DPF
	.word	IXGBE_FCTRL_PMCF
	.word	IXGBE_HLREG0
	.word	ETHERMTU
	.word	IXGBE_HLREG0_JUMBOEN
	.word	BSIZEPKT_ROUNDUP
	.word	IXGBE_SRRCTL_BSIZEPKT_SHIFT
	.word	IXGBE_SRRCTL_BSIZEHDR_MASK
	.word	ixgbe_fc_none
	.word	IXGBE_SRRCTL_DROP_EN
	.word	IXGBE_SRRCTL_BSIZEPKT_MASK
	.word	IXGBE_SRRCTL_DESCTYPE_ADV_ONEBUF
	.word	IXGBE_PSRTYPE_TCPHDR
	.word	IXGBE_PSRTYPE_UDPHDR
	.word	IXGBE_PSRTYPE_IPV4HDR
	.word	IXGBE_PSRTYPE_IPV6HDR
	.word	IXGBE_RXCSUM
	.word	IFCAP_RXCSUM
	.word	IXGBE_RXCSUM_PCSD
	.word	IXGBE_RXCSUM_IPPCSE
	.size	ixgbe_initialize_receive_units, .-ixgbe_initialize_receive_units
	.comm	ixgbe_mac_82598EB,4,4
	.comm	ixgbe_fc_none,4,4
	.comm	IXGBE_SRRCTL_DROP_EN,4,4
	.comm	IXGBE_SRRCTL_DESCTYPE_ADV_ONEBUF,4,4
	.comm	IXGBE_SRRCTL_BSIZEPKT_SHIFT,4,4
	.comm	IXGBE_SRRCTL_BSIZEPKT_MASK,4,4
	.comm	IXGBE_SRRCTL_BSIZEHDR_MASK,4,4
	.comm	IXGBE_RXCSUM_PCSD,4,4
	.comm	IXGBE_RXCSUM_IPPCSE,4,4
	.comm	IXGBE_RXCSUM,4,4
	.comm	IXGBE_PSRTYPE_UDPHDR,4,4
	.comm	IXGBE_PSRTYPE_TCPHDR,4,4
	.comm	IXGBE_PSRTYPE_IPV6HDR,4,4
	.comm	IXGBE_PSRTYPE_IPV4HDR,4,4
	.comm	IXGBE_HLREG0_JUMBOEN,4,4
	.comm	IXGBE_HLREG0,4,4
	.comm	IXGBE_FCTRL_PMCF,4,4
	.comm	IXGBE_FCTRL_DPF,4,4
	.comm	IXGBE_FCTRL_BAM,4,4
	.comm	IXGBE_FCTRL,4,4
	.comm	IFCAP_RXCSUM,4,4
	.comm	ETHERMTU,4,4
	.comm	BSIZEPKT_ROUNDUP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
