	.file	"extr_qeth_l3_main.c_qeth_l3_setup_netdev.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"qeth_l3: ignoring TR device\n"
	.text
	.p2align 4
	.type	qeth_l3_setup_netdev, @function
qeth_l3_setup_netdev:
.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	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	call	IS_OSD@PLT
	test	rax, rax
	je	.L2
.L5:
	mov	rax, QWORD PTR 16[rbx]
	cmp	rax, QWORD PTR QETH_LINK_TYPE_LANE_TR[rip]
	je	.L3
	cmp	rax, QWORD PTR QETH_LINK_TYPE_HSTR[rip]
	je	.L3
	mov	rax, QWORD PTR [rbx]
	lea	rcx, qeth_l3_osa_netdev_ops[rip]
	mov	rdi, rbx
	mov	QWORD PTR 24[rax], rcx
	call	qeth_l3_get_unique_id@PLT
	mov	eax, DWORD PTR 24[rbx]
	test	DWORD PTR UNIQUE_ID_NOT_BY_CARD[rip], eax
	jne	.L9
	mov	rdx, QWORD PTR [rbx]
	and	eax, 65535
	mov	DWORD PTR [rdx], eax
.L9:
	mov	rdi, rbx
	call	IS_VM_NIC@PLT
	test	eax, eax
	jne	.L10
	mov	rax, QWORD PTR [rbx]
	mov	edx, DWORD PTR NETIF_F_SG[rip]
	or	DWORD PTR 4[rax], edx
	mov	edx, DWORD PTR NETIF_F_TSO[rip]
	or	edx, DWORD PTR NETIF_F_RXCSUM[rip]
	or	edx, DWORD PTR NETIF_F_IP_CSUM[rip]
	or	DWORD PTR 8[rax], edx
	or	DWORD PTR 12[rax], edx
.L10:
	mov	esi, DWORD PTR IPA_OUTBOUND_CHECKSUM_V6[rip]
	mov	rdi, rbx
	call	qeth_is_supported6@PLT
	test	rax, rax
	je	.L11
	mov	rax, QWORD PTR [rbx]
	mov	edx, DWORD PTR NETIF_F_IPV6_CSUM[rip]
	or	DWORD PTR 8[rax], edx
	or	DWORD PTR 12[rax], edx
.L11:
	mov	esi, DWORD PTR IPA_OUTBOUND_TSO[rip]
	mov	rdi, rbx
	call	qeth_is_supported6@PLT
	mov	rdi, QWORD PTR [rbx]
	test	rax, rax
	jne	.L12
	mov	edx, DWORD PTR 8[rdi]
	mov	eax, DWORD PTR NETIF_F_TSO6[rip]
	and	eax, edx
	test	eax, eax
	jne	.L39
.L14:
	mov	eax, 4
	test	DWORD PTR NETIF_F_TSO[rip], edx
	je	.L39
.L15:
	mov	DWORD PTR 16[rdi], eax
	mov	eax, DWORD PTR NETIF_F_HW_VLAN_CTAG_TX[rip]
	or	eax, DWORD PTR NETIF_F_HW_VLAN_CTAG_RX[rip]
	or	eax, DWORD PTR NETIF_F_HW_VLAN_CTAG_FILTER[rip]
	or	DWORD PTR 4[rdi], eax
	call	netif_keep_dst@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	eax, DWORD PTR NETIF_F_TSO[rip]
	or	eax, DWORD PTR NETIF_F_TSO6[rip]
	test	DWORD PTR 8[rdi], eax
	jne	.L41
.L18:
	mov	ecx, DWORD PTR QETH_NAPI_WEIGHT[rip]
	mov	edx, DWORD PTR qeth_poll[rip]
	lea	rsi, 8[rbx]
	call	netif_napi_add@PLT
	mov	rdi, QWORD PTR [rbx]
	call	register_netdev@PLT
	test	eax, eax
	jne	.L17
	test	ebp, ebp
	jne	.L42
.L19:
	endbr64
	test	eax, eax
	je	.L1
.L17:
	mov	rdx, QWORD PTR [rbx]
	mov	QWORD PTR 24[rdx], 0
	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
.L12:
	.cfi_restore_state
	mov	eax, DWORD PTR NETIF_F_TSO6[rip]
	mov	edx, DWORD PTR 8[rdi]
	or	DWORD PTR 12[rdi], eax
	or	edx, eax
	mov	DWORD PTR 8[rdi], edx
	test	eax, eax
	je	.L14
.L39:
	mov	eax, DWORD PTR VLAN_HLEN[rip]
	add	eax, 4
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rdi, .LC0[rip]
	call	pr_info@PLT
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
.L1:
	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
.L2:
	.cfi_restore_state
	mov	rdi, rbx
	call	IS_OSX@PLT
	test	rax, rax
	jne	.L5
	mov	rdi, rbx
	call	IS_IQD@PLT
	test	rax, rax
	je	.L16
	mov	rax, QWORD PTR [rbx]
	mov	edx, DWORD PTR IFF_NOARP[rip]
	mov	rdi, rbx
	lea	rcx, qeth_l3_netdev_ops[rip]
	mov	r12d, DWORD PTR ETH_HLEN[rip]
	or	DWORD PTR 32[rax], edx
	mov	QWORD PTR 24[rax], rcx
	call	qeth_l3_iqd_read_initial_mac@PLT
	test	eax, eax
	jne	.L17
	mov	eax, 4
	mov	rdi, QWORD PTR [rbx]
	sub	eax, r12d
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L42:
	mov	rdi, QWORD PTR [rbx]
	call	netif_carrier_on@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L41:
	.cfi_restore_state
	mov	rdi, rbx
	call	QETH_MAX_BUFFER_ELEMENTS@PLT
	mov	rdi, QWORD PTR [rbx]
	lea	esi, -1[rax]
	imul	esi, DWORD PTR PAGE_SIZE[rip]
	call	netif_set_gso_max_size@PLT
	mov	rdi, QWORD PTR [rbx]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L16:
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	qeth_l3_setup_netdev, .-qeth_l3_setup_netdev
	.comm	qeth_poll,4,4
	.comm	qeth_l3_osa_netdev_ops,4,4
	.comm	qeth_l3_netdev_ops,4,4
	.comm	VLAN_HLEN,4,4
	.comm	UNIQUE_ID_NOT_BY_CARD,4,4
	.comm	QETH_NAPI_WEIGHT,4,4
	.comm	QETH_LINK_TYPE_LANE_TR,8,8
	.comm	QETH_LINK_TYPE_HSTR,8,8
	.comm	PAGE_SIZE,4,4
	.comm	NETIF_F_TSO6,4,4
	.comm	NETIF_F_TSO,4,4
	.comm	NETIF_F_SG,4,4
	.comm	NETIF_F_RXCSUM,4,4
	.comm	NETIF_F_IP_CSUM,4,4
	.comm	NETIF_F_IPV6_CSUM,4,4
	.comm	NETIF_F_HW_VLAN_CTAG_TX,4,4
	.comm	NETIF_F_HW_VLAN_CTAG_RX,4,4
	.comm	NETIF_F_HW_VLAN_CTAG_FILTER,4,4
	.comm	IPA_OUTBOUND_TSO,4,4
	.comm	IPA_OUTBOUND_CHECKSUM_V6,4,4
	.comm	IFF_NOARP,4,4
	.comm	ETH_HLEN,4,4
	.comm	ENODEV,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_l3_main.c_qeth_l3_setup_netdev.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"qeth_l3: ignoring TR device\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qeth_l3_setup_netdev, %function
qeth_l3_setup_netdev:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r4, r0
	bl	IS_OSD
	cmp	r0, #0
	beq	.L2
.L5:
	ldr	r2, .L39
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L3
	ldr	r2, .L39+4
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L3
	ldr	r3, [r4]
	ldr	r2, .L39+8
	mov	r0, r4
	str	r2, [r3, #20]
	bl	qeth_l3_get_unique_id
	ldr	r2, .L39+12
	ldr	r3, [r4, #12]
	ldr	r2, [r2]
	mov	r0, r4
	tst	r3, r2
	lsleq	r3, r3, #16
	ldreq	r2, [r4]
	lsreq	r3, r3, #16
	streq	r3, [r2]
	bl	IS_VM_NIC
	cmp	r0, #0
	ldr	r6, .L39+16
	bne	.L10
	ldr	r3, .L39+20
	ldr	r0, .L39+24
	ldr	r1, [r3]
	ldr	r2, [r6]
	ldr	r3, [r4]
	ldr	r0, [r0]
	orr	r2, r2, r1
	ldr	r1, .L39+28
	orr	r2, r2, r0
	ldr	ip, [r3, #8]
	ldr	lr, [r1]
	ldr	r0, [r3, #12]
	ldr	r1, [r3, #4]
	orr	ip, ip, r2
	orr	r1, r1, lr
	orr	r2, r0, r2
	str	ip, [r3, #8]
	str	r2, [r3, #12]
	str	r1, [r3, #4]
.L10:
	ldr	r3, .L39+32
	mov	r0, r4
	ldr	r1, [r3]
	bl	qeth_is_supported6
	cmp	r0, #0
	beq	.L11
	ldr	r3, [r4]
	ldr	r2, .L39+36
	ldr	r1, [r3, #8]
	ldr	r0, [r2]
	ldr	r2, [r3, #12]
	orr	r1, r1, r0
	orr	r2, r2, r0
	str	r1, [r3, #8]
	str	r2, [r3, #12]
.L11:
	ldr	r3, .L39+40
	mov	r0, r4
	ldr	r1, [r3]
	bl	qeth_is_supported6
	ldr	r7, .L39+44
	cmp	r0, #0
	ldr	r0, [r4]
	ldrne	r3, [r7]
	ldrne	r1, [r0, #12]
	ldrne	r2, [r0, #8]
	ldreq	r2, [r0, #8]
	ldreq	r3, [r7]
	orrne	r1, r1, r3
	orrne	r2, r3, r2
	andeq	r3, r3, r2
	strne	r1, [r0, #12]
	strne	r2, [r0, #8]
	cmp	r3, #0
	beq	.L14
.L35:
	ldr	r3, .L39+48
	ldr	r2, [r3]
	add	r2, r2, #4
.L15:
	ldr	r1, .L39+52
	ldr	r3, .L39+56
	ldr	ip, [r1]
	ldr	r1, .L39+60
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, ip
	str	r2, [r0, #16]
	ldr	r2, [r0, #4]
	orr	r3, r3, r1
	orr	r3, r2, r3
	str	r3, [r0, #4]
	bl	netif_keep_dst
	ldr	r8, [r4]
	ldr	r3, [r6]
	ldr	r1, [r7]
	ldr	r2, [r8, #8]
	orr	r3, r3, r1
	tst	r3, r2
	bne	.L37
.L18:
	ldr	r3, .L39+64
	ldr	r2, .L39+68
	ldr	r3, [r3]
	ldr	r2, [r2]
	add	r1, r4, #4
	mov	r0, r8
	bl	netif_napi_add
	ldr	r0, [r4]
	bl	register_netdev
	subs	r5, r5, #0
	movne	r5, #1
	cmp	r0, #0
	movne	r5, #0
	cmp	r5, #0
	bne	.L38
.L19:
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
.L17:
	mov	r2, #0
	ldr	r3, [r4]
	str	r2, [r3, #20]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	ldr	r3, [r6]
	tst	r2, r3
	movne	r2, #4
	bne	.L15
	b	.L35
.L3:
	ldr	r0, .L39+72
	bl	pr_info
	ldr	r3, .L39+76
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r4
	bl	IS_OSX
	cmp	r0, #0
	bne	.L5
	mov	r0, r4
	bl	IS_IQD
	cmp	r0, #0
	beq	.L16
	ldr	r3, [r4]
	ldr	r1, .L39+80
	ldr	r2, [r3, #24]
	ldr	r1, [r1]
	ldr	r0, .L39+84
	orr	r2, r2, r1
	ldr	r1, .L39+88
	str	r0, [r3, #20]
	str	r2, [r3, #24]
	mov	r0, r4
	ldr	r6, [r1]
	bl	qeth_l3_iqd_read_initial_mac
	cmp	r0, #0
	bne	.L17
	rsb	r2, r6, #4
	ldr	r0, [r4]
	ldr	r6, .L39+16
	ldr	r7, .L39+44
	b	.L15
.L38:
	ldr	r0, [r4]
	bl	netif_carrier_on
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L37:
	mov	r0, r4
	bl	QETH_MAX_BUFFER_ELEMENTS
	ldr	r2, .L39+92
	sub	r3, r0, #1
	ldr	r1, [r2]
	mov	r0, r8
	mul	r1, r3, r1
	bl	netif_set_gso_max_size
	ldr	r8, [r4]
	b	.L18
.L16:
	ldr	r3, .L39+76
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L40:
	.align	2
.L39:
	.word	QETH_LINK_TYPE_LANE_TR
	.word	QETH_LINK_TYPE_HSTR
	.word	qeth_l3_osa_netdev_ops
	.word	UNIQUE_ID_NOT_BY_CARD
	.word	NETIF_F_TSO
	.word	NETIF_F_RXCSUM
	.word	NETIF_F_IP_CSUM
	.word	NETIF_F_SG
	.word	IPA_OUTBOUND_CHECKSUM_V6
	.word	NETIF_F_IPV6_CSUM
	.word	IPA_OUTBOUND_TSO
	.word	NETIF_F_TSO6
	.word	VLAN_HLEN
	.word	NETIF_F_HW_VLAN_CTAG_RX
	.word	NETIF_F_HW_VLAN_CTAG_TX
	.word	NETIF_F_HW_VLAN_CTAG_FILTER
	.word	QETH_NAPI_WEIGHT
	.word	qeth_poll
	.word	.LC0
	.word	ENODEV
	.word	IFF_NOARP
	.word	qeth_l3_netdev_ops
	.word	ETH_HLEN
	.word	PAGE_SIZE
	.size	qeth_l3_setup_netdev, .-qeth_l3_setup_netdev
	.comm	qeth_poll,4,4
	.comm	qeth_l3_osa_netdev_ops,4,4
	.comm	qeth_l3_netdev_ops,4,4
	.comm	VLAN_HLEN,4,4
	.comm	UNIQUE_ID_NOT_BY_CARD,4,4
	.comm	QETH_NAPI_WEIGHT,4,4
	.comm	QETH_LINK_TYPE_LANE_TR,4,4
	.comm	QETH_LINK_TYPE_HSTR,4,4
	.comm	PAGE_SIZE,4,4
	.comm	NETIF_F_TSO6,4,4
	.comm	NETIF_F_TSO,4,4
	.comm	NETIF_F_SG,4,4
	.comm	NETIF_F_RXCSUM,4,4
	.comm	NETIF_F_IP_CSUM,4,4
	.comm	NETIF_F_IPV6_CSUM,4,4
	.comm	NETIF_F_HW_VLAN_CTAG_TX,4,4
	.comm	NETIF_F_HW_VLAN_CTAG_RX,4,4
	.comm	NETIF_F_HW_VLAN_CTAG_FILTER,4,4
	.comm	IPA_OUTBOUND_TSO,4,4
	.comm	IPA_OUTBOUND_CHECKSUM_V6,4,4
	.comm	IFF_NOARP,4,4
	.comm	ETH_HLEN,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
