	.file	"extr_hp100.c_hp100_start_xmit.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"hp100: %s: login to 100Mb/s hub retry\n"
	.align 8
.LC1:
	.string	"hp100: %s: link down detected\n"
	.align 8
.LC2:
	.string	"hp100: %s: cable change 10Mb/s <-> 100Mb/s detected\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC3:
	.string	"hp100: %s: interface reset\n"
	.text
	.p2align 4
	.type	hp100_start_xmit, @function
hp100_start_xmit:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	mov	rdi, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r13d, DWORD PTR [rsi]
	call	netdev_priv@PLT
	mov	edx, DWORD PTR [r12]
	test	edx, edx
	jle	.L8
	mov	rdi, rbp
	mov	rbx, rax
	call	hp100_check_lan@PLT
	test	rax, rax
	je	.L29
.L8:
	mov	rdi, r12
	call	dev_kfree_skb@PLT
	mov	eax, DWORD PTR NETDEV_TX_OK[rip]
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	mov	edi, DWORD PTR TX_MEM_FREE[rip]
	call	hp100_inl@PLT
	mov	ecx, DWORD PTR [r12]
	sar	eax
	and	eax, 1073741823
	lea	edx, 16[rcx]
	sub	eax, 539
	cmp	eax, edx
	jle	.L5
	mov	edi, DWORD PTR TX_PKT_CNT[rip]
	mov	r14d, 6000
	call	hp100_inb@PLT
	cmp	eax, 254
	jle	.L6
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L14:
	sub	r14d, 1
	je	.L13
.L6:
	mov	edi, DWORD PTR OPTION_MSW[rip]
	call	hp100_inb@PLT
	test	DWORD PTR HP100_TX_CMD[rip], eax
	jne	.L14
.L13:
	xor	r14d, r14d
	lea	r15, 20[rbx]
	mov	rsi, r14
	mov	rdi, r15
	call	spin_lock_irqsave@PLT
	xor	eax, eax
	call	hp100_ints_off@PLT
	mov	edi, DWORD PTR IRQ_STATUS[rip]
	call	hp100_inw@PLT
	mov	esi, DWORD PTR IRQ_STATUS[rip]
	mov	edi, DWORD PTR HP100_TX_COMPLETE[rip]
	call	hp100_outw@PLT
	mov	eax, DWORD PTR HP100_MIN_PACKET_SIZE[rip]
	mov	r14d, DWORD PTR [r12]
	mov	esi, DWORD PTR DATA32[rip]
	cmp	r14d, eax
	mov	edi, eax
	mov	DWORD PTR 12[rsp], eax
	cmovge	edi, r14d
	mov	DWORD PTR 8[rsp], edi
	call	hp100_outw@PLT
	mov	esi, DWORD PTR FRAGMENT_LEN[rip]
	mov	edi, DWORD PTR 8[rsp]
	call	hp100_outw@PLT
	mov	eax, DWORD PTR [r12]
	cmp	DWORD PTR 16[rbx], 2
	lea	edx, 3[rax]
	je	.L30
	mov	esi, DWORD PTR 4[r12]
	sar	edx, 2
	movsx	rdi, r13d
	add	rdi, QWORD PTR HP100_REG_DATA32[rip]
	call	outsl@PLT
	cmp	r14d, DWORD PTR 12[rsp]
	jge	.L17
	mov	eax, DWORD PTR [r12]
	lea	ebx, 3[rax]
	and	ebx, -4
	cmp	DWORD PTR HP100_MIN_PACKET_SIZE[rip], ebx
	jle	.L17
	.p2align 4,,10
	.p2align 3
.L19:
	mov	esi, DWORD PTR DATA32[rip]
	xor	edi, edi
	add	ebx, 4
	call	hp100_outl@PLT
	cmp	DWORD PTR HP100_MIN_PACKET_SIZE[rip], ebx
	jg	.L19
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	call	dev_trans_start@PLT
	mov	edi, DWORD PTR jiffies[rip]
	add	rax, QWORD PTR HZ[rip]
	mov	rsi, rax
	call	time_before@PLT
	test	rax, rax
	jne	.L8
	mov	eax, DWORD PTR HP100_LAN_100[rip]
	cmp	DWORD PTR [rbx], eax
	jne	.L7
	cmp	QWORD PTR 8[rbx], 0
	js	.L31
.L7:
	xor	r14d, r14d
	lea	r15, 20[rbx]
	mov	rsi, r14
	mov	rdi, r15
	call	spin_lock_irqsave@PLT
	xor	eax, eax
	call	hp100_ints_off@PLT
	mov	rdi, rbp
	call	hp100_sense_lan@PLT
	mov	r13d, eax
	xor	eax, eax
	call	hp100_ints_on@PLT
	mov	rsi, r14
	mov	rdi, r15
	call	spin_unlock_irqrestore@PLT
	cmp	DWORD PTR HP100_LAN_ERR[rip], r13d
	mov	esi, DWORD PTR 4[rbp]
	je	.L32
	cmp	DWORD PTR [rbx], r13d
	je	.L10
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	printk@PLT
	mov	DWORD PTR [rbx], r13d
	mov	rdi, rbp
	call	hp100_stop_interface@PLT
	mov	eax, DWORD PTR HP100_LAN_100[rip]
	cmp	DWORD PTR [rbx], eax
	je	.L27
.L11:
	mov	rdi, rbp
	call	hp100_start_interface@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	printk@PLT
	mov	rdi, rbp
	call	hp100_stop_interface@PLT
	mov	eax, DWORD PTR HP100_LAN_100[rip]
	cmp	DWORD PTR [rbx], eax
	je	.L33
.L12:
	mov	rdi, rbp
	call	hp100_start_interface@PLT
	mov	edi, 1
	call	mdelay@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L30:
	mov	esi, DWORD PTR 4[r12]
	mov	edi, DWORD PTR 24[rbx]
	and	edx, -4
	call	memcpy_toio@PLT
	cmp	r14d, DWORD PTR 12[rsp]
	jl	.L34
.L17:
	mov	esi, DWORD PTR OPTION_MSW[rip]
	mov	edi, DWORD PTR HP100_TX_CMD[rip]
	xor	r14d, r14d
	or	edi, DWORD PTR HP100_SET_LB[rip]
	call	hp100_outb@PLT
	mov	eax, DWORD PTR [r12]
	add	DWORD PTR 12[rbp], 1
	add	DWORD PTR 8[rbp], eax
	xor	eax, eax
	call	hp100_ints_on@PLT
	mov	rsi, r14
	mov	rdi, r15
	call	spin_unlock_irqrestore@PLT
	mov	rdi, r12
	call	dev_consume_skb_any@PLT
	mov	eax, DWORD PTR NETDEV_TX_OK[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	mov	esi, DWORD PTR 4[rbp]
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	printk@PLT
	mov	rdi, rbp
	call	hp100_stop_interface@PLT
.L27:
	xor	esi, esi
	mov	rdi, rbp
	call	hp100_login_to_vg_hub@PLT
	mov	QWORD PTR 8[rbx], rax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L32:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	printk@PLT
	jmp	.L8
.L34:
	mov	edi, DWORD PTR 24[rbx]
	mov	edx, DWORD PTR HP100_MIN_PACKET_SIZE[rip]
	xor	esi, esi
	sub	edx, DWORD PTR [r12]
	call	memset_io@PLT
	jmp	.L17
.L33:
	xor	esi, esi
	mov	rdi, rbp
	call	hp100_login_to_vg_hub@PLT
	mov	QWORD PTR 8[rbx], rax
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	hp100_start_xmit, .-hp100_start_xmit
	.comm	jiffies,4,4
	.comm	TX_PKT_CNT,4,4
	.comm	TX_MEM_FREE,4,4
	.comm	TRACE,4,4
	.comm	OPTION_MSW,4,4
	.comm	NETDEV_TX_OK,4,4
	.comm	IRQ_STATUS,4,4
	.comm	IRQ_MASK,4,4
	.comm	HZ,8,8
	.comm	HP100_TX_COMPLETE,4,4
	.comm	HP100_TX_CMD,4,4
	.comm	HP100_SET_LB,4,4
	.comm	HP100_REG_DATA32,8,8
	.comm	HP100_MIN_PACKET_SIZE,4,4
	.comm	HP100_LAN_ERR,4,4
	.comm	HP100_LAN_100,4,4
	.comm	FRAGMENT_LEN,4,4
	.comm	DATA32,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_hp100.c_hp100_start_xmit.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"hp100: %s: login to 100Mb/s hub retry\012\000"
	.align	2
.LC1:
	.ascii	"hp100: %s: link down detected\012\000"
	.align	2
.LC2:
	.ascii	"hp100: %s: cable change 10Mb/s <-> 100Mb/s detected"
	.ascii	"\012\000"
	.align	2
.LC3:
	.ascii	"hp100: %s: interface reset\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hp100_start_xmit, %function
hp100_start_xmit:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	sub	sp, sp, #20
	mov	r0, r1
	mov	r4, r1
	ldr	r9, [r1]
	bl	netdev_priv
	ldr	r3, [r5]
	cmp	r3, #0
	ble	.L8
	mov	r6, r0
	mov	r0, r4
	bl	hp100_check_lan
	cmp	r0, #0
	beq	.L28
.L8:
	mov	r0, r5
	bl	dev_kfree_skb
	ldr	r3, .L35
	ldr	r0, [r3]
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L28:
	ldr	r3, .L35+4
	ldr	r0, [r3]
	bl	hp100_inl
	asr	r0, r0, #1
	ldr	r3, [r5]
	bic	r0, r0, #-1073741824
	sub	r0, r0, #536
	sub	r0, r0, #3
	add	r3, r3, #16
	cmp	r0, r3
	ble	.L5
	ldr	r3, .L35+8
	ldr	r0, [r3]
	bl	hp100_inb
	cmp	r0, #254
	bgt	.L5
	ldr	r10, .L35+12
	ldr	r7, .L35+16
	ldr	r8, .L35+20
	b	.L6
.L14:
	subs	r10, r10, #1
	beq	.L13
.L6:
	ldr	r0, [r7]
	bl	hp100_inb
	ldr	r3, [r8]
	tst	r0, r3
	bne	.L14
.L13:
	add	r3, r6, #12
	ldr	fp, .L35+24
	mov	r0, r3
	mov	r1, #0
	str	r3, [sp]
	bl	spin_lock_irqsave
	bl	hp100_ints_off
	ldr	r0, [fp]
	bl	hp100_inw
	ldr	r3, .L35+28
	ldr	r10, .L35+32
	ldr	r1, [fp]
	ldr	r0, [r3]
	bl	hp100_outw
	ldr	r3, [r10]
	ldr	fp, .L35+36
	mov	r2, r3
	str	r3, [sp, #12]
	ldr	r3, [r5]
	ldr	r1, [fp]
	cmp	r3, r2
	movge	r2, r3
	mov	r0, r2
	str	r3, [sp, #8]
	str	r2, [sp, #4]
	bl	hp100_outw
	ldr	r2, [sp, #4]
	ldr	r1, .L35+40
	mov	r0, r2
	ldr	r1, [r1]
	bl	hp100_outw
	ldr	r2, [r6, #8]
	ldr	r3, [sp, #8]
	cmp	r2, #2
	str	r3, [sp, #4]
	beq	.L29
	ldr	r1, .L35+44
	ldr	r2, [r5]
	ldr	r0, [r1]
	add	r2, r2, #3
	asr	r2, r2, #2
	ldr	r1, [r5, #4]
	add	r0, r9, r0
	bl	outsl
	ldr	r2, [sp, #12]
	ldr	r3, [sp, #4]
	cmp	r3, r2
	bge	.L17
	ldr	r6, [r5]
	ldr	r3, [r10]
	add	r6, r6, #3
	bic	r6, r6, #3
	cmp	r3, r6
	ble	.L17
.L19:
	mov	r0, #0
	ldr	r1, [fp]
	bl	hp100_outl
	ldr	r3, [r10]
	add	r6, r6, #4
	cmp	r3, r6
	bgt	.L19
	b	.L17
.L5:
	ldr	r3, .L35+48
	mov	r0, r4
	ldr	r7, [r3]
	bl	dev_trans_start
	mov	r1, r0
	ldr	r3, .L35+52
	mov	r0, r7
	ldr	r3, [r3]
	add	r1, r1, r3
	bl	time_before
	subs	r7, r0, #0
	bne	.L8
	ldr	r9, .L35+56
	ldr	r2, [r6]
	ldr	r3, [r9]
	cmp	r2, r3
	bne	.L7
	ldr	r3, [r6, #4]
	cmp	r3, #0
	blt	.L30
.L7:
	mov	r10, #0
	add	r8, r6, #12
	mov	r1, r10
	mov	r0, r8
	bl	spin_lock_irqsave
	bl	hp100_ints_off
	mov	r0, r4
	bl	hp100_sense_lan
	mov	r7, r0
	bl	hp100_ints_on
	mov	r1, r10
	mov	r0, r8
	bl	spin_unlock_irqrestore
	ldr	r3, .L35+60
	ldr	r3, [r3]
	cmp	r3, r7
	beq	.L31
	ldr	r3, [r6]
	ldr	r1, [r4, #4]
	cmp	r3, r7
	beq	.L10
	ldr	r0, .L35+64
	bl	printk
	mov	r0, r4
	str	r7, [r6]
	bl	hp100_stop_interface
	ldr	r3, [r9]
	ldr	r2, [r6]
	cmp	r2, r3
	beq	.L32
.L11:
	mov	r0, r4
	bl	hp100_start_interface
	b	.L8
.L10:
	ldr	r0, .L35+68
	bl	printk
	mov	r0, r4
	bl	hp100_stop_interface
	ldr	r3, [r9]
	ldr	r2, [r6]
	cmp	r2, r3
	beq	.L33
.L12:
	mov	r0, r4
	bl	hp100_start_interface
	mov	r0, #1
	bl	mdelay
	b	.L8
.L29:
	ldr	r2, [r5]
	ldr	r1, [r5, #4]
	add	r2, r2, #3
	bic	r2, r2, #3
	ldr	r0, [r6, #16]
	bl	memcpy_toio
	ldr	r2, [sp, #12]
	ldr	r3, [sp, #4]
	cmp	r3, r2
	blt	.L34
.L17:
	ldr	r3, .L35+72
	ldr	r0, [r8]
	ldr	r3, [r3]
	ldr	r1, [r7]
	orr	r0, r0, r3
	bl	hp100_outb
	ldr	r1, [r5]
	ldr	r2, [r4, #12]
	ldr	r3, [r4, #8]
	add	r2, r2, #1
	add	r3, r3, r1
	str	r3, [r4, #8]
	str	r2, [r4, #12]
	bl	hp100_ints_on
	mov	r1, #0
	ldr	r0, [sp]
	bl	spin_unlock_irqrestore
	mov	r0, r5
	bl	dev_consume_skb_any
	ldr	r3, .L35
	ldr	r0, [r3]
	b	.L1
.L30:
	ldr	r1, [r4, #4]
	ldr	r0, .L35+76
	bl	printk
	mov	r0, r4
	bl	hp100_stop_interface
	mov	r1, r7
	mov	r0, r4
	bl	hp100_login_to_vg_hub
	mov	r3, r0
	mov	r0, r4
	str	r3, [r6, #4]
	bl	hp100_start_interface
	b	.L8
.L31:
	ldr	r1, [r4, #4]
	ldr	r0, .L35+80
	bl	printk
	b	.L8
.L32:
	mov	r1, #0
	mov	r0, r4
	bl	hp100_login_to_vg_hub
	str	r0, [r6, #4]
	b	.L11
.L34:
	ldr	r2, [r10]
	ldr	r3, [r5]
	mov	r1, #0
	ldr	r0, [r6, #16]
	sub	r2, r2, r3
	bl	memset_io
	b	.L17
.L33:
	mov	r1, #0
	mov	r0, r4
	bl	hp100_login_to_vg_hub
	str	r0, [r6, #4]
	b	.L12
.L36:
	.align	2
.L35:
	.word	NETDEV_TX_OK
	.word	TX_MEM_FREE
	.word	TX_PKT_CNT
	.word	6000
	.word	OPTION_MSW
	.word	HP100_TX_CMD
	.word	IRQ_STATUS
	.word	HP100_TX_COMPLETE
	.word	HP100_MIN_PACKET_SIZE
	.word	DATA32
	.word	FRAGMENT_LEN
	.word	HP100_REG_DATA32
	.word	jiffies
	.word	HZ
	.word	HP100_LAN_100
	.word	HP100_LAN_ERR
	.word	.LC2
	.word	.LC3
	.word	HP100_SET_LB
	.word	.LC0
	.word	.LC1
	.size	hp100_start_xmit, .-hp100_start_xmit
	.comm	jiffies,4,4
	.comm	TX_PKT_CNT,4,4
	.comm	TX_MEM_FREE,4,4
	.comm	TRACE,4,4
	.comm	OPTION_MSW,4,4
	.comm	NETDEV_TX_OK,4,4
	.comm	IRQ_STATUS,4,4
	.comm	IRQ_MASK,4,4
	.comm	HZ,4,4
	.comm	HP100_TX_COMPLETE,4,4
	.comm	HP100_TX_CMD,4,4
	.comm	HP100_SET_LB,4,4
	.comm	HP100_REG_DATA32,4,4
	.comm	HP100_MIN_PACKET_SIZE,4,4
	.comm	HP100_LAN_ERR,4,4
	.comm	HP100_LAN_100,4,4
	.comm	FRAGMENT_LEN,4,4
	.comm	DATA32,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
