	.file	"extr_e6000sw.c_e6000sw_init_interface.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%sport"
	.text
	.p2align 4
	.type	e6000sw_init_interface, @function
e6000sw_init_interface:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12d, esi
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR IFNAMSIZ[rip]
	mov	rcx, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L15:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L15
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L16
.L4:
	mov	edi, DWORD PTR 16[rbx]
	movsx	r13, r12d
	lea	r14, 0[0+r13*8]
	call	device_get_nameunit@PLT
	mov	esi, DWORD PTR IFNAMSIZ[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, rsp
	mov	rcx, rax
	call	snprintf@PLT
	mov	r15, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR IFT_ETHER[rip]
	call	if_alloc@PLT
	add	r15, r14
	mov	QWORD PTR [r15], rax
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR [rax+r13*8]
	test	rdx, rdx
	je	.L13
	mov	eax, DWORD PTR IFF_UP[rip]
	or	eax, DWORD PTR IFF_BROADCAST[rip]
	mov	QWORD PTR 8[rdx], rbx
	mov	rdi, rsp
	or	eax, DWORD PTR IFF_DRV_RUNNING[rip]
	or	eax, DWORD PTR IFF_SIMPLEX[rip]
	or	DWORD PTR [rdx], eax
	call	strlen@PLT
	mov	edx, DWORD PTR M_NOWAIT[rip]
	mov	esi, DWORD PTR M_E6000SW[rip]
	lea	rdi, 1[rax]
	add	r14, QWORD PTR [rbx]
	call	malloc@PLT
	mov	QWORD PTR [r14], rax
	mov	rax, QWORD PTR [rbx]
	mov	r14, QWORD PTR [rax+r13*8]
	test	r14, r14
	je	.L17
	mov	rdi, rsp
	call	strlen@PLT
	mov	rsi, rsp
	mov	rdi, r14
	lea	rdx, 1[rax]
	call	memcpy@PLT
	mov	rax, QWORD PTR [rbx]
	mov	edx, r12d
	mov	rsi, QWORD PTR [rax+r13*8]
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, QWORD PTR [rax+r13*8]
	call	if_initname@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR -56[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L18
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, QWORD PTR [rax+r13*8]
	call	if_free@PLT
.L13:
	mov	eax, DWORD PTR ENOMEM[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	e6000sw_init_interface, .-e6000sw_init_interface
	.comm	M_NOWAIT,4,4
	.comm	M_E6000SW,4,4
	.comm	IFT_ETHER,4,4
	.comm	IFNAMSIZ,4,4
	.comm	IFF_UP,4,4
	.comm	IFF_SIMPLEX,4,4
	.comm	IFF_DRV_RUNNING,4,4
	.comm	IFF_BROADCAST,4,4
	.comm	ENOMEM,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_e6000sw.c_e6000sw_init_interface.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%sport\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	e6000sw_init_interface, %function
e6000sw_init_interface:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #12
	ldr	r3, .L11
	mov	r4, r0
	ldr	r6, [r3]
	ldr	r0, [r0, #8]
	add	r3, r6, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L11+4
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	bl	device_get_nameunit
	mov	r1, r6
	mov	r3, r0
	ldr	r2, .L11+8
	mov	r0, sp
	bl	snprintf
	ldr	r3, .L11+12
	ldr	r6, [r4, #4]
	ldr	r0, [r3]
	bl	if_alloc
	ldr	r3, [r4, #4]
	str	r0, [r6, r5, lsl #2]
	ldr	r2, [r3, r5, lsl #2]
	cmp	r2, #0
	beq	.L7
	ldr	r0, .L11+16
	ldr	r3, .L11+20
	ldr	r1, .L11+24
	ldr	ip, [r0]
	ldr	r3, [r3]
	ldr	r0, .L11+28
	ldr	r1, [r1]
	ldr	r0, [r0]
	orr	r3, r3, ip
	orr	r3, r3, r1
	ldr	r1, [r2]
	orr	r3, r3, r0
	orr	r3, r1, r3
	stm	r2, {r3, r4}
	mov	r0, sp
	bl	strlen
	ldr	r3, .L11+32
	ldr	r2, .L11+36
	ldr	r1, [r3]
	ldr	r2, [r2]
	add	r0, r0, #1
	ldr	r6, [r4]
	bl	malloc
	ldr	r3, [r4]
	str	r0, [r6, r5, lsl #2]
	ldr	r6, [r3, r5, lsl #2]
	cmp	r6, #0
	beq	.L9
	mov	r0, sp
	bl	strlen
	mov	r1, sp
	add	r2, r0, #1
	mov	r0, r6
	bl	memcpy
	ldm	r4, {r2, r3}
	ldr	r1, [r2, r5, lsl #2]
	ldr	r0, [r3, r5, lsl #2]
	mov	r2, r5
	bl	if_initname
	mov	r0, #0
.L1:
	ldr	r3, .L11+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L9:
	ldr	r3, [r4, #4]
	ldr	r0, [r3, r5, lsl #2]
	bl	if_free
.L7:
	ldr	r3, .L11+40
	ldr	r0, [r3]
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	IFNAMSIZ
	.word	.LC1
	.word	.LC0
	.word	IFT_ETHER
	.word	IFF_BROADCAST
	.word	IFF_UP
	.word	IFF_DRV_RUNNING
	.word	IFF_SIMPLEX
	.word	M_E6000SW
	.word	M_NOWAIT
	.word	ENOMEM
	.size	e6000sw_init_interface, .-e6000sw_init_interface
	.comm	M_NOWAIT,4,4
	.comm	M_E6000SW,4,4
	.comm	IFT_ETHER,4,4
	.comm	IFNAMSIZ,4,4
	.comm	IFF_UP,4,4
	.comm	IFF_SIMPLEX,4,4
	.comm	IFF_DRV_RUNNING,4,4
	.comm	IFF_BROADCAST,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
