	.file	"extr_core.c_emac_iff2rmr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	emac_iff2rmr, @function
emac_iff2rmr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	netdev_priv@PLT
	mov	esi, DWORD PTR EMAC_FTR_EMAC4[rip]
	mov	r12d, DWORD PTR EMAC_RMR_SP[rip]
	mov	rdi, rax
	or	r12d, DWORD PTR EMAC_RMR_SFCS[rip]
	mov	rbp, rax
	or	r12d, DWORD PTR EMAC_RMR_IAE[rip]
	or	r12d, DWORD PTR EMAC_RMR_BAE[rip]
	call	emac_has_feature@PLT
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR [rbx]
	or	r12d, DWORD PTR EMAC4_RMR_BASE[rip]
	test	DWORD PTR IFF_PROMISC[rip], eax
	je	.L4
.L15:
	or	r12d, DWORD PTR EMAC_RMR_PME[rip]
.L5:
	mov	esi, DWORD PTR EMAC_APM821XX_REQ_JUMBO_FRAME_SIZE[rip]
	mov	rdi, rbp
	call	emac_has_feature@PLT
	test	rax, rax
	jne	.L14
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR [rbx]
	or	r12d, DWORD PTR EMAC_RMR_BASE[rip]
	test	DWORD PTR IFF_PROMISC[rip], eax
	jne	.L15
.L4:
	test	DWORD PTR IFF_ALLMULTI[rip], eax
	je	.L6
.L7:
	or	r12d, DWORD PTR EMAC_RMR_PMME[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, DWORD PTR EMAC4_RMR_MJS_MASK[rip]
	mov	edi, DWORD PTR 4[rbx]
	not	eax
	and	r12d, eax
	call	EMAC4_RMR_MJS@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	or	r12d, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, rbx
	call	netdev_mc_count@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	EMAC_XAHT_SLOTS@PLT
	cmp	r13, rax
	jg	.L7
	mov	rdi, rbx
	call	netdev_mc_empty@PLT
	test	eax, eax
	jne	.L5
	or	r12d, DWORD PTR EMAC_RMR_MAE[rip]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	emac_iff2rmr, .-emac_iff2rmr
	.comm	IFF_PROMISC,4,4
	.comm	IFF_ALLMULTI,4,4
	.comm	EMAC_RMR_SP,4,4
	.comm	EMAC_RMR_SFCS,4,4
	.comm	EMAC_RMR_PMME,4,4
	.comm	EMAC_RMR_PME,4,4
	.comm	EMAC_RMR_MAE,4,4
	.comm	EMAC_RMR_IAE,4,4
	.comm	EMAC_RMR_BASE,4,4
	.comm	EMAC_RMR_BAE,4,4
	.comm	EMAC_FTR_EMAC4,4,4
	.comm	EMAC_APM821XX_REQ_JUMBO_FRAME_SIZE,4,4
	.comm	EMAC4_RMR_MJS_MASK,4,4
	.comm	EMAC4_RMR_BASE,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_core.c_emac_iff2rmr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	emac_iff2rmr, %function
emac_iff2rmr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	bl	netdev_priv
	ldr	r1, .L15
	ldr	r3, .L15+4
	ldr	r2, .L15+8
	ldr	r4, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r4, r4, r3
	ldr	r3, .L15+12
	orr	r4, r4, r2
	ldr	r2, .L15+16
	ldr	r3, [r3]
	ldr	r1, [r2]
	orr	r4, r4, r3
	mov	r6, r0
	bl	emac_has_feature
	cmp	r0, #0
	ldrne	r3, .L15+20
	ldreq	r3, .L15+24
	ldr	r2, .L15+28
	ldr	r0, [r3]
	ldr	r2, [r2]
	ldr	r3, [r5]
	orr	r4, r4, r0
	tst	r3, r2
	beq	.L4
	ldr	r3, .L15+32
	ldr	r3, [r3]
	orr	r4, r4, r3
.L5:
	ldr	r3, .L15+36
	mov	r0, r6
	ldr	r1, [r3]
	bl	emac_has_feature
	cmp	r0, #0
	bne	.L14
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r2, .L15+40
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L6
.L7:
	ldr	r3, .L15+44
	ldr	r3, [r3]
	orr	r4, r4, r3
	b	.L5
.L14:
	ldr	r3, .L15+48
	ldr	r0, [r5, #4]
	ldr	r3, [r3]
	bic	r4, r4, r3
	bl	EMAC4_RMR_MJS
	orr	r4, r4, r0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, r5
	bl	netdev_mc_count
	mov	r7, r0
	mov	r0, r6
	bl	EMAC_XAHT_SLOTS
	cmp	r7, r0
	bgt	.L7
	mov	r0, r5
	bl	netdev_mc_empty
	cmp	r0, #0
	ldreq	r3, .L15+52
	ldreq	r3, [r3]
	orreq	r4, r4, r3
	b	.L5
.L16:
	.align	2
.L15:
	.word	EMAC_RMR_SP
	.word	EMAC_RMR_SFCS
	.word	EMAC_RMR_IAE
	.word	EMAC_RMR_BAE
	.word	EMAC_FTR_EMAC4
	.word	EMAC4_RMR_BASE
	.word	EMAC_RMR_BASE
	.word	IFF_PROMISC
	.word	EMAC_RMR_PME
	.word	EMAC_APM821XX_REQ_JUMBO_FRAME_SIZE
	.word	IFF_ALLMULTI
	.word	EMAC_RMR_PMME
	.word	EMAC4_RMR_MJS_MASK
	.word	EMAC_RMR_MAE
	.size	emac_iff2rmr, .-emac_iff2rmr
	.comm	IFF_PROMISC,4,4
	.comm	IFF_ALLMULTI,4,4
	.comm	EMAC_RMR_SP,4,4
	.comm	EMAC_RMR_SFCS,4,4
	.comm	EMAC_RMR_PMME,4,4
	.comm	EMAC_RMR_PME,4,4
	.comm	EMAC_RMR_MAE,4,4
	.comm	EMAC_RMR_IAE,4,4
	.comm	EMAC_RMR_BASE,4,4
	.comm	EMAC_RMR_BAE,4,4
	.comm	EMAC_FTR_EMAC4,4,4
	.comm	EMAC_APM821XX_REQ_JUMBO_FRAME_SIZE,4,4
	.comm	EMAC4_RMR_MJS_MASK,4,4
	.comm	EMAC4_RMR_BASE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
