	.file	"extr_bxe.c_bxe_init_ifnet.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"IFMEDIA flags : %x\n"
.LC1:
	.string	"Interface allocation failed!\n"
	.text
	.p2align 4
	.type	bxe_init_ifnet, @function
bxe_init_ifnet:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, DWORD PTR bxe_ifmedia_status[rip]
	mov	edx, DWORD PTR bxe_ifmedia_update[rip]
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	esi, DWORD PTR IFM_IMASK[rip]
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	lea	rbp, 32[rdi]
	mov	rdi, rbp
	call	ifmedia_init@PLT
	xor	ecx, ecx
	xor	edx, edx
	mov	esi, DWORD PTR IFM_ETHER[rip]
	mov	rdi, rbp
	or	esi, DWORD PTR IFM_FDX[rip]
	or	esi, DWORD PTR [r12]
	call	ifmedia_add@PLT
	xor	ecx, ecx
	xor	edx, edx
	mov	esi, DWORD PTR IFM_ETHER[rip]
	mov	rdi, rbp
	or	esi, DWORD PTR IFM_AUTO[rip]
	call	ifmedia_add@PLT
	mov	esi, DWORD PTR IFM_ETHER[rip]
	mov	rdi, rbp
	or	esi, DWORD PTR IFM_AUTO[rip]
	call	ifmedia_set@PLT
	mov	rax, QWORD PTR 40[r12]
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	mov	edx, DWORD PTR [rax]
	mov	DWORD PTR 32[r12], edx
	call	BLOGI@PLT
	mov	edi, DWORD PTR IFT_ETHER[rip]
	call	if_gethandle@PLT
	test	rax, rax
	je	.L6
	mov	rsi, r12
	mov	rdi, rax
	mov	rbp, rax
	call	if_setsoftc@PLT
	mov	edi, DWORD PTR 24[r12]
	call	device_get_unit@PLT
	mov	edi, DWORD PTR 24[r12]
	mov	r13d, eax
	call	device_get_name@PLT
	mov	edx, r13d
	mov	rdi, rbp
	mov	esi, eax
	call	if_initname@PLT
	mov	rdi, rbp
	mov	esi, DWORD PTR IFF_BROADCAST[rip]
	or	esi, DWORD PTR IFF_SIMPLEX[rip]
	or	esi, DWORD PTR IFF_MULTICAST[rip]
	call	if_setflags@PLT
	mov	esi, DWORD PTR bxe_ioctl[rip]
	mov	rdi, rbp
	call	if_setioctlfn@PLT
	mov	esi, DWORD PTR bxe_tx_start[rip]
	mov	rdi, rbp
	call	if_setstartfn@PLT
	mov	esi, DWORD PTR bxe_get_counter[rip]
	mov	rdi, rbp
	call	if_setgetcounterfn@PLT
	mov	esi, DWORD PTR bxe_init[rip]
	mov	rdi, rbp
	call	if_setinitfn@PLT
	mov	esi, DWORD PTR 20[r12]
	mov	rdi, rbp
	call	if_setmtu@PLT
	mov	rdi, rbp
	mov	esi, DWORD PTR CSUM_IP[rip]
	or	esi, DWORD PTR CSUM_TCP[rip]
	or	esi, DWORD PTR CSUM_UDP[rip]
	or	esi, DWORD PTR CSUM_TSO[rip]
	or	esi, DWORD PTR CSUM_TCP_IPV6[rip]
	or	esi, DWORD PTR CSUM_UDP_IPV6[rip]
	call	if_sethwassist@PLT
	xor	edx, edx
	mov	rdi, rbp
	mov	esi, DWORD PTR IFCAP_VLAN_MTU[rip]
	or	esi, DWORD PTR IFCAP_VLAN_HWTAGGING[rip]
	or	esi, DWORD PTR IFCAP_HWCSUM[rip]
	or	esi, DWORD PTR IFCAP_JUMBO_MTU[rip]
	or	esi, DWORD PTR IFCAP_LRO[rip]
	call	if_setcapabilitiesbit@PLT
	mov	rdi, rbp
	call	if_getcapabilities@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	if_setcapenable@PLT
	mov	edi, 10
	call	IF_Gbps@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	if_setbaudrate@PLT
	mov	esi, DWORD PTR 16[r12]
	mov	rdi, rbp
	call	if_setsendqlen@PLT
	mov	rdi, rbp
	call	if_setsendqready@PLT
	mov	QWORD PTR 8[r12], rbp
	mov	esi, DWORD PTR 4[r12]
	mov	rdi, rbp
	call	ether_ifattach@PLT
	mov	esi, DWORD PTR bxe[rip]
	mov	rdi, rbp
	call	DEBUGNET_SET@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	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, r12
	lea	rsi, .LC1[rip]
	call	BLOGE@PLT
	pop	rbp
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR ENXIO[rip]
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	bxe_init_ifnet, .-bxe_init_ifnet
	.comm	bxe_tx_start,4,4
	.comm	bxe_tx_mq_start,4,4
	.comm	bxe_mq_flush,4,4
	.comm	bxe_ioctl,4,4
	.comm	bxe_init,4,4
	.comm	bxe_ifmedia_update,4,4
	.comm	bxe_ifmedia_status,4,4
	.comm	bxe_get_counter,4,4
	.comm	bxe,4,4
	.comm	IFT_ETHER,4,4
	.comm	IFM_IMASK,4,4
	.comm	IFM_FDX,4,4
	.comm	IFM_ETHER,4,4
	.comm	IFM_AUTO,4,4
	.comm	IFF_SIMPLEX,4,4
	.comm	IFF_MULTICAST,4,4
	.comm	IFF_BROADCAST,4,4
	.comm	IFCAP_WOL_MAGIC,4,4
	.comm	IFCAP_VLAN_MTU,4,4
	.comm	IFCAP_VLAN_HWTSO,4,4
	.comm	IFCAP_VLAN_HWTAGGING,4,4
	.comm	IFCAP_VLAN_HWFILTER,4,4
	.comm	IFCAP_VLAN_HWCSUM,4,4
	.comm	IFCAP_TSO6,4,4
	.comm	IFCAP_TSO4,4,4
	.comm	IFCAP_LRO,4,4
	.comm	IFCAP_JUMBO_MTU,4,4
	.comm	IFCAP_HWCSUM,4,4
	.comm	ENXIO,4,4
	.comm	CSUM_UDP_IPV6,4,4
	.comm	CSUM_UDP,4,4
	.comm	CSUM_TSO,4,4
	.comm	CSUM_TCP_IPV6,4,4
	.comm	CSUM_TCP,4,4
	.comm	CSUM_IP,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_bxe.c_bxe_init_ifnet.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"IFMEDIA flags : %x\012\000"
	.align	2
.LC1:
	.ascii	"Interface allocation failed!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bxe_init_ifnet, %function
bxe_init_ifnet:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L7
	ldr	r2, .L7+4
	ldr	r1, .L7+8
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	add	r4, r0, #24
	mov	r0, r4
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	ifmedia_init
	mov	r3, #0
	ldr	r6, .L7+12
	ldr	r1, .L7+16
	ldr	r2, [r6]
	ldr	r0, [r1]
	ldr	r1, [r5]
	orr	r2, r2, r0
	orr	r1, r2, r1
	mov	r0, r4
	mov	r2, r3
	bl	ifmedia_add
	mov	r3, #0
	ldr	r7, .L7+20
	ldr	r1, [r6]
	ldr	r2, [r7]
	mov	r0, r4
	orr	r1, r1, r2
	mov	r2, r3
	bl	ifmedia_add
	ldr	r3, [r7]
	ldr	r1, [r6]
	mov	r0, r4
	orr	r1, r1, r3
	bl	ifmedia_set
	ldr	r3, [r5, #28]
	ldr	r1, .L7+24
	ldr	r2, [r3]
	mov	r0, r5
	str	r2, [r5, #24]
	bl	BLOGI
	ldr	r3, .L7+28
	ldr	r0, [r3]
	bl	if_gethandle
	subs	r4, r0, #0
	beq	.L6
	mov	r1, r5
	bl	if_setsoftc
	ldr	r0, [r5, #20]
	bl	device_get_name
	mov	r6, r0
	ldr	r0, [r5, #20]
	bl	device_get_unit
	mov	r1, r6
	mov	r2, r0
	mov	r0, r4
	bl	if_initname
	ldr	r3, .L7+32
	ldr	r2, .L7+36
	ldr	r1, .L7+40
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r2
	orr	r1, r3, r1
	mov	r0, r4
	bl	if_setflags
	ldr	r3, .L7+44
	mov	r0, r4
	ldr	r1, [r3]
	bl	if_setioctlfn
	ldr	r3, .L7+48
	mov	r0, r4
	ldr	r1, [r3]
	bl	if_setstartfn
	ldr	r3, .L7+52
	mov	r0, r4
	ldr	r1, [r3]
	bl	if_setgetcounterfn
	ldr	r3, .L7+56
	mov	r0, r4
	ldr	r1, [r3]
	bl	if_setinitfn
	ldr	r1, [r5, #16]
	mov	r0, r4
	bl	if_setmtu
	ldr	r3, .L7+60
	ldr	r2, .L7+64
	ldr	r0, .L7+68
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, [r0]
	ldr	r1, .L7+72
	orr	r3, r3, r2
	ldr	r2, .L7+76
	ldr	r1, [r1]
	orr	r3, r3, r0
	ldr	r0, .L7+80
	ldr	r2, [r2]
	orr	r3, r3, r1
	ldr	r1, [r0]
	orr	r3, r3, r2
	orr	r1, r3, r1
	mov	r0, r4
	bl	if_sethwassist
	ldr	r2, .L7+84
	ldr	r3, .L7+88
	ldr	r0, [r2]
	ldr	r3, [r3]
	ldr	r1, .L7+92
	ldr	r2, .L7+96
	ldr	r1, [r1]
	orr	r3, r3, r0
	ldr	r0, .L7+100
	ldr	r2, [r2]
	orr	r3, r3, r1
	ldr	r1, [r0]
	orr	r3, r3, r2
	orr	r1, r3, r1
	mov	r2, #0
	mov	r0, r4
	bl	if_setcapabilitiesbit
	mov	r0, r4
	bl	if_getcapabilities
	mov	r1, r0
	mov	r0, r4
	bl	if_setcapenable
	mov	r0, #10
	bl	IF_Gbps
	mov	r1, r0
	mov	r0, r4
	bl	if_setbaudrate
	ldr	r1, [r5, #12]
	mov	r0, r4
	bl	if_setsendqlen
	mov	r0, r4
	bl	if_setsendqready
	ldr	r1, [r5, #4]
	mov	r0, r4
	str	r4, [r5, #8]
	bl	ether_ifattach
	ldr	r3, .L7+104
	mov	r0, r4
	ldr	r1, [r3]
	bl	DEBUGNET_SET
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, r5
	ldr	r1, .L7+108
	bl	BLOGE
	ldr	r3, .L7+112
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	bxe_ifmedia_status
	.word	bxe_ifmedia_update
	.word	IFM_IMASK
	.word	IFM_ETHER
	.word	IFM_FDX
	.word	IFM_AUTO
	.word	.LC0
	.word	IFT_ETHER
	.word	IFF_BROADCAST
	.word	IFF_SIMPLEX
	.word	IFF_MULTICAST
	.word	bxe_ioctl
	.word	bxe_tx_start
	.word	bxe_get_counter
	.word	bxe_init
	.word	CSUM_IP
	.word	CSUM_TCP
	.word	CSUM_UDP
	.word	CSUM_TSO
	.word	CSUM_TCP_IPV6
	.word	CSUM_UDP_IPV6
	.word	IFCAP_VLAN_HWTAGGING
	.word	IFCAP_VLAN_MTU
	.word	IFCAP_HWCSUM
	.word	IFCAP_JUMBO_MTU
	.word	IFCAP_LRO
	.word	bxe
	.word	.LC1
	.word	ENXIO
	.size	bxe_init_ifnet, .-bxe_init_ifnet
	.comm	bxe_tx_start,4,4
	.comm	bxe_tx_mq_start,4,4
	.comm	bxe_mq_flush,4,4
	.comm	bxe_ioctl,4,4
	.comm	bxe_init,4,4
	.comm	bxe_ifmedia_update,4,4
	.comm	bxe_ifmedia_status,4,4
	.comm	bxe_get_counter,4,4
	.comm	bxe,4,4
	.comm	IFT_ETHER,4,4
	.comm	IFM_IMASK,4,4
	.comm	IFM_FDX,4,4
	.comm	IFM_ETHER,4,4
	.comm	IFM_AUTO,4,4
	.comm	IFF_SIMPLEX,4,4
	.comm	IFF_MULTICAST,4,4
	.comm	IFF_BROADCAST,4,4
	.comm	IFCAP_WOL_MAGIC,4,4
	.comm	IFCAP_VLAN_MTU,4,4
	.comm	IFCAP_VLAN_HWTSO,4,4
	.comm	IFCAP_VLAN_HWTAGGING,4,4
	.comm	IFCAP_VLAN_HWFILTER,4,4
	.comm	IFCAP_VLAN_HWCSUM,4,4
	.comm	IFCAP_TSO6,4,4
	.comm	IFCAP_TSO4,4,4
	.comm	IFCAP_LRO,4,4
	.comm	IFCAP_JUMBO_MTU,4,4
	.comm	IFCAP_HWCSUM,4,4
	.comm	ENXIO,4,4
	.comm	CSUM_UDP_IPV6,4,4
	.comm	CSUM_UDP,4,4
	.comm	CSUM_TSO,4,4
	.comm	CSUM_TCP_IPV6,4,4
	.comm	CSUM_TCP,4,4
	.comm	CSUM_IP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
