	.file	"extr_qeth_l2_main.c___qeth_l2_open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"qethopen"
.LC1:
	.string	"nomacadr"
	.text
	.p2align 4
	.type	__qeth_l2_open, @function
__qeth_l2_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	lea	rdx, .LC0[rip]
	mov	esi, 4
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbx, QWORD PTR [rdi]
	mov	edi, DWORD PTR TRACE[rip]
	call	QETH_DBF_TEXT@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	rcx, QWORD PTR CARD_STATE_UP[rip]
	xor	eax, eax
	cmp	rdx, rcx
	je	.L1
	cmp	rdx, QWORD PTR CARD_STATE_SOFTSETUP[rip]
	jne	.L9
	mov	rax, QWORD PTR QETH_CARD_TYPE_OSN[rip]
	cmp	QWORD PTR 24[rbx], rax
	je	.L4
	mov	eax, DWORD PTR 32[rbx]
	test	DWORD PTR QETH_LAYER2_MAC_REGISTERED[rip], eax
	je	.L10
.L4:
	mov	eax, DWORD PTR CH_STATE_UP[rip]
	mov	QWORD PTR [rbx], rcx
	mov	rdi, rbp
	mov	DWORD PTR 16[rbx], eax
	call	netif_start_queue@PLT
	mov	edi, DWORD PTR 12[rbx]
	xor	esi, esi
	call	qdio_stop_irq@PLT
	test	rax, rax
	jns	.L11
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	eax, DWORD PTR ENODEV[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	rbp, 8[rbx]
	mov	rdi, rbp
	call	napi_enable@PLT
	mov	rdi, rbp
	call	napi_schedule@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR TRACE[rip]
	lea	rdx, .LC1[rip]
	mov	esi, 4
	call	QETH_DBF_TEXT@PLT
	mov	eax, DWORD PTR EPERM[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	__qeth_l2_open, .-__qeth_l2_open
	.comm	TRACE,4,4
	.comm	QETH_LAYER2_MAC_REGISTERED,4,4
	.comm	QETH_CARD_TYPE_OSN,8,8
	.comm	EPERM,4,4
	.comm	ENODEV,4,4
	.comm	EIO,4,4
	.comm	CH_STATE_UP,4,4
	.comm	CARD_STATE_UP,8,8
	.comm	CARD_STATE_SOFTSETUP,8,8
	.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_qeth_l2_main.c___qeth_l2_open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"qethopen\000"
	.align	2
.LC1:
	.ascii	"nomacadr\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__qeth_l2_open, %function
__qeth_l2_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r6, .L12
	ldr	r2, .L12+4
	mov	r1, #4
	ldr	r0, [r6]
	ldr	r5, [r4]
	bl	QETH_DBF_TEXT
	ldr	r2, .L12+8
	ldr	r3, [r5]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L6
	ldr	r1, .L12+12
	ldr	r1, [r1]
	cmp	r3, r1
	bne	.L9
	ldr	r3, .L12+16
	ldr	r1, [r5, #16]
	ldr	r3, [r3]
	cmp	r1, r3
	beq	.L4
	ldr	r3, .L12+20
	ldr	r1, [r5, #20]
	ldr	r3, [r3]
	tst	r1, r3
	beq	.L10
.L4:
	ldr	r3, .L12+24
	mov	r0, r4
	ldr	r3, [r3]
	str	r2, [r5]
	str	r3, [r5, #12]
	bl	netif_start_queue
	mov	r1, #0
	ldr	r0, [r5, #8]
	bl	qdio_stop_irq
	cmp	r0, #0
	bge	.L11
	ldr	r3, .L12+28
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r3, .L12+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L6:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L11:
	add	r5, r5, #4
	mov	r0, r5
	bl	napi_enable
	mov	r0, r5
	bl	napi_schedule
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L10:
	mov	r1, #4
	ldr	r0, [r6]
	ldr	r2, .L12+36
	bl	QETH_DBF_TEXT
	ldr	r3, .L12+40
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	TRACE
	.word	.LC0
	.word	CARD_STATE_UP
	.word	CARD_STATE_SOFTSETUP
	.word	QETH_CARD_TYPE_OSN
	.word	QETH_LAYER2_MAC_REGISTERED
	.word	CH_STATE_UP
	.word	EIO
	.word	ENODEV
	.word	.LC1
	.word	EPERM
	.size	__qeth_l2_open, .-__qeth_l2_open
	.comm	TRACE,4,4
	.comm	QETH_LAYER2_MAC_REGISTERED,4,4
	.comm	QETH_CARD_TYPE_OSN,4,4
	.comm	EPERM,4,4
	.comm	ENODEV,4,4
	.comm	EIO,4,4
	.comm	CH_STATE_UP,4,4
	.comm	CARD_STATE_UP,4,4
	.comm	CARD_STATE_SOFTSETUP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
