	.file	"extr_if_muge.c_muge_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Calling muge_init.\n"
.LC1:
	.string	"setting MAC address failed\n"
	.text
	.p2align 4
	.type	muge_init, @function
muge_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	uether_getsc@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	rbx, rax
	call	muge_dbg_printf@PLT
	mov	rdi, rbp
	call	uether_getifp@PLT
	mov	esi, DWORD PTR MA_OWNED[rip]
	mov	rdi, rbx
	mov	r12, rax
	call	MUGE_LOCK_ASSERT@PLT
	mov	rdi, r12
	call	IF_LLADDR@PLT
	mov	rdi, rbx
	mov	esi, eax
	call	lan78xx_setmacaddress@PLT
	test	rax, rax
	jne	.L9
.L2:
	mov	eax, DWORD PTR [r12]
	test	DWORD PTR IFF_DRV_RUNNING[rip], eax
	je	.L10
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, rbp
	call	muge_stop@PLT
	mov	rdi, rbx
	call	muge_reset@PLT
	mov	rdi, rbp
	call	muge_setmulti@PLT
	mov	rdi, rbx
	call	muge_sethwcsum@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR MUGE_BULK_DT_WR[rip]
	mov	edi, DWORD PTR [rax+rdx*4]
	call	usbd_xfer_set_stall@PLT
	mov	eax, DWORD PTR IFF_DRV_RUNNING[rip]
	or	DWORD PTR [r12], eax
	mov	rdi, r12
	call	muge_ifmedia_upd@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	muge_start@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, rbx
	call	muge_dbg_printf@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	muge_init, .-muge_init
	.comm	MUGE_BULK_DT_WR,8,8
	.comm	MA_OWNED,4,4
	.comm	IFF_DRV_RUNNING,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_muge.c_muge_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Calling muge_init.\012\000"
	.align	2
.LC1:
	.ascii	"setting MAC address failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	muge_init, %function
muge_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	bl	uether_getsc
	ldr	r1, .L10
	mov	r4, r0
	bl	muge_dbg_printf
	mov	r0, r6
	bl	uether_getifp
	mov	r5, r0
	ldr	r3, .L10+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	MUGE_LOCK_ASSERT
	mov	r0, r5
	bl	IF_LLADDR
	mov	r1, r0
	mov	r0, r4
	bl	lan78xx_setmacaddress
	cmp	r0, #0
	bne	.L9
.L2:
	ldr	r7, .L10+8
	ldr	r2, [r5]
	ldr	r3, [r7]
	tst	r2, r3
	popne	{r4, r5, r6, r7, r8, pc}
	mov	r0, r6
	bl	muge_stop
	mov	r0, r4
	bl	muge_reset
	mov	r0, r6
	bl	muge_setmulti
	mov	r0, r4
	bl	muge_sethwcsum
	ldr	r2, .L10+12
	ldr	r3, [r4]
	ldr	r2, [r2]
	ldr	r0, [r3, r2, lsl #2]
	bl	usbd_xfer_set_stall
	ldr	r2, [r7]
	ldr	r3, [r5]
	mov	r0, r5
	orr	r3, r3, r2
	str	r3, [r5]
	bl	muge_ifmedia_upd
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	muge_start
.L9:
	mov	r0, r4
	ldr	r1, .L10+16
	bl	muge_dbg_printf
	b	.L2
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	MA_OWNED
	.word	IFF_DRV_RUNNING
	.word	MUGE_BULK_DT_WR
	.word	.LC1
	.size	muge_init, .-muge_init
	.comm	MUGE_BULK_DT_WR,4,4
	.comm	MA_OWNED,4,4
	.comm	IFF_DRV_RUNNING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
