	.file	"extr_if_hme.c_hme_setladrf.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cannot disable RX MAC\n"
.LC1:
	.string	"cannot disable hash filter\n"
.LC2:
	.string	"cannot configure RX MAC\n"
	.text
	.p2align 4
	.type	hme_setladrf, @function
hme_setladrf:
.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
	mov	r12d, esi
	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, 40
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR MA_OWNED[rip]
	mov	r13, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	HME_LOCK_ASSERT@PLT
	mov	esi, DWORD PTR HME_MACI_RXCFG[rip]
	mov	rdi, rbx
	mov	QWORD PTR [rsp], 0
	mov	QWORD PTR 8[rsp], 0
	call	HME_MAC_READ_4@PLT
	mov	ebp, DWORD PTR HME_MAC_RXCFG_PGRP[rip]
	xor	r8d, r8d
	mov	rdi, rbx
	or	ebp, DWORD PTR HME_MAC_RXCFG_PMISC[rip]
	mov	ecx, DWORD PTR HME_MAC_RXCFG_ENABLE[rip]
	not	ebp
	mov	esi, DWORD PTR HME_MACI_RXCFG[rip]
	and	ebp, eax
	mov	edx, ebp
	call	hme_mac_bitflip@PLT
	test	eax, eax
	je	.L13
.L2:
	mov	ecx, DWORD PTR HME_MAC_RXCFG_HENABLE[rip]
	xor	r8d, r8d
	mov	edx, ebp
	mov	rdi, rbx
	mov	esi, DWORD PTR HME_MACI_RXCFG[rip]
	call	hme_mac_bitflip@PLT
	test	eax, eax
	je	.L14
.L3:
	or	ebp, DWORD PTR HME_MAC_RXCFG_ME[rip]
	mov	eax, DWORD PTR HME_MAC_RXCFG_ENABLE[rip]
	mov	edx, ebp
	or	edx, eax
	not	eax
	and	ebp, eax
	test	r12d, r12d
	mov	eax, DWORD PTR 0[r13]
	cmove	edx, ebp
	mov	r12d, edx
	test	DWORD PTR IFF_PROMISC[rip], eax
	jne	.L15
	test	DWORD PTR IFF_ALLMULTI[rip], eax
	je	.L8
	or	r12d, DWORD PTR HME_MAC_RXCFG_PGRP[rip]
.L7:
	mov	edx, DWORD PTR [rsp]
	mov	esi, DWORD PTR HME_MACI_HASHTAB0[rip]
	mov	rdi, rbx
	call	HME_MAC_WRITE_4@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	esi, DWORD PTR HME_MACI_HASHTAB1[rip]
	mov	rdi, rbx
	call	HME_MAC_WRITE_4@PLT
	mov	edx, DWORD PTR 8[rsp]
	mov	esi, DWORD PTR HME_MACI_HASHTAB2[rip]
	mov	rdi, rbx
	call	HME_MAC_WRITE_4@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	esi, DWORD PTR HME_MACI_HASHTAB3[rip]
	mov	rdi, rbx
	call	HME_MAC_WRITE_4@PLT
	mov	esi, DWORD PTR HME_MACI_RXCFG[rip]
	xor	ecx, ecx
	mov	edx, r12d
	mov	r8d, DWORD PTR HME_MAC_RXCFG_ENABLE[rip]
	or	r8d, DWORD PTR HME_MAC_RXCFG_HENABLE[rip]
	mov	rdi, rbx
	or	r8d, DWORD PTR HME_MAC_RXCFG_ME[rip]
	and	r8d, r12d
	call	hme_mac_bitflip@PLT
	test	eax, eax
	je	.L16
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR hme_hash_maddr[rip]
	mov	rdx, rsp
	mov	rdi, r13
	or	r12d, DWORD PTR HME_MAC_RXCFG_HENABLE[rip]
	call	if_foreach_llmaddr@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L15:
	or	r12d, DWORD PTR HME_MAC_RXCFG_PMISC[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC1[rip]
	call	device_printf@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	call	device_printf@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC2[rip]
	call	device_printf@PLT
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hme_setladrf, .-hme_setladrf
	.comm	hme_hash_maddr,4,4
	.comm	MA_OWNED,4,4
	.comm	IFF_PROMISC,4,4
	.comm	IFF_ALLMULTI,4,4
	.comm	HME_MAC_RXCFG_PMISC,4,4
	.comm	HME_MAC_RXCFG_PGRP,4,4
	.comm	HME_MAC_RXCFG_ME,4,4
	.comm	HME_MAC_RXCFG_HENABLE,4,4
	.comm	HME_MAC_RXCFG_ENABLE,4,4
	.comm	HME_MACI_RXCFG,4,4
	.comm	HME_MACI_HASHTAB3,4,4
	.comm	HME_MACI_HASHTAB2,4,4
	.comm	HME_MACI_HASHTAB1,4,4
	.comm	HME_MACI_HASHTAB0,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_hme.c_hme_setladrf.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cannot disable RX MAC\012\000"
	.align	2
.LC1:
	.ascii	"cannot disable hash filter\012\000"
	.align	2
.LC2:
	.ascii	"cannot configure RX MAC\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hme_setladrf, %function
hme_setladrf:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	mov	r8, #0
	ldr	r3, .L18
	mov	r7, r1
	ldr	r1, [r3]
	ldr	r3, .L18+4
	sub	sp, sp, #44
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	ldr	r5, .L18+8
	ldr	r3, [r0, #4]
	ldr	r9, .L18+12
	str	r3, [sp, #12]
	bl	HME_LOCK_ASSERT
	ldr	r1, [r5]
	mov	r0, r4
	str	r8, [sp, #20]
	str	r8, [sp, #24]
	str	r8, [sp, #28]
	str	r8, [sp, #32]
	bl	HME_MAC_READ_4
	ldr	r3, .L18+16
	ldr	r6, .L18+20
	ldr	r2, [r3]
	ldr	r3, [r9]
	ldr	r1, [r5]
	orr	r2, r2, r3
	bic	r10, r0, r2
	mov	r2, r10
	mov	r0, r4
	ldr	r3, [r6]
	str	r8, [sp]
	bl	hme_mac_bitflip
	cmp	r0, r8
	beq	.L13
.L2:
	mov	r3, #0
	ldr	r8, .L18+24
	str	r3, [sp]
	mov	r2, r10
	mov	r0, r4
	ldr	r3, [r8]
	ldr	r1, [r5]
	bl	hme_mac_bitflip
	cmp	r0, #0
	beq	.L14
.L3:
	ldr	fp, .L18+28
	cmp	r7, #0
	ldr	r0, [fp]
	ldr	r7, [r6]
	ldr	r1, .L18+32
	ldr	r3, [sp, #12]
	orr	r2, r10, r0
	orrne	r7, r2, r7
	biceq	r7, r2, r7
	ldr	r1, [r1]
	ldr	r2, [r3]
	tst	r2, r1
	bne	.L15
	ldr	r1, .L18+36
	ldr	r1, [r1]
	tst	r2, r1
	beq	.L8
	ldr	r3, .L18+16
	ldr	r2, [r3]
	orr	r7, r7, r2
.L7:
	ldr	r1, .L18+40
	ldr	r2, [sp, #20]
	ldr	r1, [r1]
	mov	r0, r4
	bl	HME_MAC_WRITE_4
	ldr	r1, .L18+44
	ldr	r2, [sp, #24]
	ldr	r1, [r1]
	mov	r0, r4
	bl	HME_MAC_WRITE_4
	ldr	r1, .L18+48
	ldr	r2, [sp, #28]
	ldr	r1, [r1]
	mov	r0, r4
	bl	HME_MAC_WRITE_4
	ldr	r1, .L18+52
	ldr	r2, [sp, #32]
	ldr	r1, [r1]
	mov	r0, r4
	bl	HME_MAC_WRITE_4
	ldr	r0, [r8]
	ldr	r2, [r6]
	ldr	r1, [fp]
	orr	r3, r2, r0
	orr	r3, r3, r1
	and	r3, r3, r7
	str	r3, [sp]
	mov	r2, r7
	mov	r3, #0
	mov	r0, r4
	ldr	r1, [r5]
	bl	hme_mac_bitflip
	cmp	r0, #0
	beq	.L16
.L1:
	ldr	r3, .L18+4
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	ldr	r2, .L18+56
	ldr	ip, [r8]
	ldr	r1, [r2]
	ldr	r0, [sp, #12]
	add	r2, sp, #20
	orr	r7, r7, ip
	bl	if_foreach_llmaddr
	b	.L7
.L15:
	ldr	r2, [r9]
	orr	r7, r7, r2
	b	.L7
.L14:
	ldr	r1, .L18+60
	ldr	r0, [r4]
	bl	device_printf
	b	.L3
.L13:
	ldr	r1, .L18+64
	ldr	r0, [r4]
	bl	device_printf
	b	.L2
.L16:
	ldr	r0, [r4]
	ldr	r1, .L18+68
	bl	device_printf
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	MA_OWNED
	.word	.LC3
	.word	HME_MACI_RXCFG
	.word	HME_MAC_RXCFG_PMISC
	.word	HME_MAC_RXCFG_PGRP
	.word	HME_MAC_RXCFG_ENABLE
	.word	HME_MAC_RXCFG_HENABLE
	.word	HME_MAC_RXCFG_ME
	.word	IFF_PROMISC
	.word	IFF_ALLMULTI
	.word	HME_MACI_HASHTAB0
	.word	HME_MACI_HASHTAB1
	.word	HME_MACI_HASHTAB2
	.word	HME_MACI_HASHTAB3
	.word	hme_hash_maddr
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.size	hme_setladrf, .-hme_setladrf
	.comm	hme_hash_maddr,4,4
	.comm	MA_OWNED,4,4
	.comm	IFF_PROMISC,4,4
	.comm	IFF_ALLMULTI,4,4
	.comm	HME_MAC_RXCFG_PMISC,4,4
	.comm	HME_MAC_RXCFG_PGRP,4,4
	.comm	HME_MAC_RXCFG_ME,4,4
	.comm	HME_MAC_RXCFG_HENABLE,4,4
	.comm	HME_MAC_RXCFG_ENABLE,4,4
	.comm	HME_MACI_RXCFG,4,4
	.comm	HME_MACI_HASHTAB3,4,4
	.comm	HME_MACI_HASHTAB2,4,4
	.comm	HME_MACI_HASHTAB1,4,4
	.comm	HME_MACI_HASHTAB0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
