	.file	"extr_qeth_l2_main.c_qeth_osn_register.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"0.0.%04x"
.LC1:
	.string	"osnreg"
	.text
	.p2align 4
	.globl	qeth_osn_register
	.type	qeth_osn_register, @function
qeth_osn_register:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r8, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	mov	rsi, r8
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rcx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	mov	edx, 2
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rdi, 12[rsp]
	lea	r14, 16[rsp]
	call	memcpy@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	rdi, r14
	lea	rsi, .LC0[rip]
	call	sprintf@PLT
	mov	rdi, r14
	call	qeth_get_card_by_busid@PLT
	test	rax, rax
	je	.L4
	mov	rdi, rax
	mov	rbx, rax
	call	IS_OSN@PLT
	test	eax, eax
	jne	.L14
.L4:
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rbx]
	lea	rdx, .LC1[rip]
	mov	esi, 2
	mov	rdi, rbx
	mov	QWORD PTR 0[r13], rax
	call	QETH_CARD_TEXT@PLT
	test	rbp, rbp
	je	.L8
	test	r12, r12
	je	.L8
	mov	QWORD PTR [rbx], rbp
	xor	eax, eax
	mov	QWORD PTR 8[rbx], r12
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	qeth_osn_register, .-qeth_osn_register
	.comm	ENODEV,4,4
	.comm	EINVAL,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_qeth_l2_main.c_qeth_osn_register.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"0.0.%04x\000"
	.align	2
.LC1:
	.ascii	"osnreg\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	qeth_osn_register
	.syntax unified
	.arm
	.fpu softvfp
	.type	qeth_osn_register, %function
qeth_osn_register:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r3
	sub	sp, sp, #28
	ldr	r3, .L14
	mov	r7, r1
	mov	r6, r2
	mov	r1, r0
	mov	r2, #2
	mov	r0, sp
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	memcpy
	ldr	r2, [sp]
	ldr	r1, .L14+4
	add	r0, sp, #4
	bl	sprintf
	add	r0, sp, #4
	bl	qeth_get_card_by_busid
	subs	r4, r0, #0
	beq	.L4
	bl	IS_OSN
	cmp	r0, #0
	bne	.L12
.L4:
	ldr	r3, .L14+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L12:
	ldr	r3, [r4, #8]
	mov	r1, #2
	str	r3, [r7]
	mov	r0, r4
	ldr	r2, .L14+12
	bl	QETH_CARD_TEXT
	clz	r0, r5
	cmp	r6, #0
	lsr	r0, r0, #5
	moveq	r0, #1
	cmp	r0, #0
	ldrne	r3, .L14+16
	streq	r6, [r4]
	ldrne	r0, [r3]
	streq	r5, [r4, #4]
	rsbne	r0, r0, #0
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC2
	.word	.LC0
	.word	ENODEV
	.word	.LC1
	.word	EINVAL
	.size	qeth_osn_register, .-qeth_osn_register
	.comm	ENODEV,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
