	.file	"extr_usb.c_mt7601u_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ASIC revision: %08x MAC revision: %08x\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Warning: eFUSE not present\n"
	.text
	.p2align 4
	.type	mt7601u_probe, @function
mt7601u_probe:
.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	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	interface_to_usbdev@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	mt7601u_alloc_device@PLT
	test	rax, rax
	je	.L11
	mov	rdi, r12
	mov	rbx, rax
	call	usb_get_dev@PLT
	mov	rdi, rax
	call	usb_reset_device@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	call	usb_set_intfdata@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, DWORD PTR MT_VEND_BUF[rip]
	call	devm_kmalloc@PLT
	mov	DWORD PTR 16[rbx], eax
	test	eax, eax
	jne	.L4
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L5:
	xor	esi, esi
	mov	rdi, rbp
	call	usb_set_intfdata@PLT
	mov	rdi, rbp
	call	interface_to_usbdev@PLT
	mov	rdi, rax
	call	usb_put_dev@PLT
	mov	edi, DWORD PTR 4[rbx]
	call	destroy_workqueue@PLT
	mov	edi, DWORD PTR [rbx]
	call	ieee80211_free_hw@PLT
.L1:
	mov	eax, r12d
	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
.L4:
	.cfi_restore_state
	mov	rsi, rbx
	mov	rdi, rbp
	call	mt7601u_assign_pipes@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	rdi, rbx
	call	mt7601u_wait_asic_ready@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	esi, DWORD PTR MT_ASIC_VERSION[rip]
	mov	rdi, rbx
	call	mt7601u_rr@PLT
	mov	esi, DWORD PTR MT_MAC_CSR0[rip]
	mov	rdi, rbx
	mov	r12d, eax
	call	mt7601u_rr@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	mov	ecx, eax
	sar	r12d, 16
	call	dev_info@PLT
	cmp	r12d, 30209
	je	.L6
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	mov	r12d, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	esi, DWORD PTR MT_EFUSE_CTRL[rip]
	mov	rdi, rbx
	call	mt7601u_rr@PLT
	test	DWORD PTR MT_EFUSE_CTRL_SEL[rip], eax
	je	.L12
.L7:
	mov	rdi, rbx
	call	mt7601u_init_hardware@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L5
	mov	rdi, rbx
	call	mt7601u_register_device@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L13
	mov	edi, DWORD PTR MT7601U_STATE_INITIALIZED[rip]
	lea	rsi, 8[rbx]
	call	set_bit@PLT
	jmp	.L1
.L12:
	mov	edi, DWORD PTR 12[rbx]
	lea	rsi, .LC1[rip]
	call	dev_warn@PLT
	jmp	.L7
.L13:
	mov	rdi, rbx
	call	mt7601u_cleanup@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	mt7601u_probe, .-mt7601u_probe
	.comm	MT_VEND_BUF,4,4
	.comm	MT_MAC_CSR0,4,4
	.comm	MT_EFUSE_CTRL_SEL,4,4
	.comm	MT_EFUSE_CTRL,4,4
	.comm	MT_ASIC_VERSION,4,4
	.comm	MT7601U_STATE_INITIALIZED,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_usb.c_mt7601u_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ASIC revision: %08x MAC revision: %08x\012\000"
	.align	2
.LC1:
	.ascii	"Warning: eFUSE not present\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mt7601u_probe, %function
mt7601u_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	interface_to_usbdev
	mov	r6, r0
	mov	r0, r5
	bl	mt7601u_alloc_device
	subs	r4, r0, #0
	beq	.L11
	mov	r0, r6
	bl	usb_get_dev
	bl	usb_reset_device
	mov	r1, r4
	mov	r0, r5
	bl	usb_set_intfdata
	ldr	r3, .L14
	ldr	r2, .L14+4
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r0, [r4, #12]
	bl	devm_kmalloc
	cmp	r0, #0
	str	r0, [r4, #16]
	bne	.L4
	ldr	r3, .L14+8
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L5:
	mov	r1, #0
	mov	r0, r5
	bl	usb_set_intfdata
	mov	r0, r5
	bl	interface_to_usbdev
	bl	usb_put_dev
	ldr	r0, [r4, #4]
	bl	destroy_workqueue
	ldr	r0, [r4]
	bl	ieee80211_free_hw
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L4:
	mov	r1, r4
	mov	r0, r5
	bl	mt7601u_assign_pipes
	subs	r6, r0, #0
	bne	.L5
	mov	r0, r4
	bl	mt7601u_wait_asic_ready
	subs	r6, r0, #0
	bne	.L5
	ldr	r3, .L14+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	mt7601u_rr
	ldr	r3, .L14+16
	mov	r6, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	mt7601u_rr
	mov	r2, r6
	mov	r3, r0
	ldr	r1, .L14+20
	ldr	r0, [r4, #12]
	bl	dev_info
	ldr	r3, .L14+24
	cmp	r3, r6, asr #16
	beq	.L6
	ldr	r3, .L14+28
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L5
.L11:
	ldr	r3, .L14+8
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r3, .L14+32
	mov	r0, r4
	ldr	r1, [r3]
	bl	mt7601u_rr
	ldr	r3, .L14+36
	ldr	r3, [r3]
	tst	r0, r3
	beq	.L12
.L7:
	mov	r0, r4
	bl	mt7601u_init_hardware
	subs	r6, r0, #0
	bne	.L5
	mov	r0, r4
	bl	mt7601u_register_device
	subs	r6, r0, #0
	bne	.L13
	ldr	r3, .L14+40
	add	r1, r4, #8
	ldr	r0, [r3]
	bl	set_bit
	b	.L1
.L12:
	ldr	r1, .L14+44
	ldr	r0, [r4, #12]
	bl	dev_warn
	b	.L7
.L13:
	mov	r0, r4
	bl	mt7601u_cleanup
	b	.L5
.L15:
	.align	2
.L14:
	.word	MT_VEND_BUF
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	MT_ASIC_VERSION
	.word	MT_MAC_CSR0
	.word	.LC0
	.word	30209
	.word	ENODEV
	.word	MT_EFUSE_CTRL
	.word	MT_EFUSE_CTRL_SEL
	.word	MT7601U_STATE_INITIALIZED
	.word	.LC1
	.size	mt7601u_probe, .-mt7601u_probe
	.comm	MT_VEND_BUF,4,4
	.comm	MT_MAC_CSR0,4,4
	.comm	MT_EFUSE_CTRL_SEL,4,4
	.comm	MT_EFUSE_CTRL,4,4
	.comm	MT_ASIC_VERSION,4,4
	.comm	MT7601U_STATE_INITIALIZED,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
