	.file	"extr_usb.c_ath6kl_usb_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"vendor_id = %04x\n"
.LC1:
	.string	"product_id = %04x\n"
.LC2:
	.string	"USB Interface %d\n"
.LC3:
	.string	"USB 2.0 Host\n"
.LC4:
	.string	"USB 1.1 Host\n"
.LC5:
	.string	"Failed to alloc ath6kl core\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC6:
	.string	"Failed to init ath6kl core: %d\n"
	.text
	.p2align 4
	.type	ath6kl_usb_probe, @function
ath6kl_usb_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	interface_to_usbdev@PLT
	mov	rbp, rax
	mov	rdi, rax
	call	usb_get_dev@PLT
	mov	edi, DWORD PTR 12[rbp]
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	r14d, eax
	call	le16_to_cpu@PLT
	mov	edi, DWORD PTR ATH6KL_DBG_USB[rip]
	mov	edx, r14d
	lea	rsi, .LC0[rip]
	mov	r13d, eax
	xor	eax, eax
	call	ath6kl_dbg@PLT
	mov	edi, DWORD PTR ATH6KL_DBG_USB[rip]
	mov	edx, r13d
	xor	eax, eax
	lea	rsi, .LC1[rip]
	call	ath6kl_dbg@PLT
	mov	rax, QWORD PTR [r12]
	test	rax, rax
	je	.L2
	mov	edx, DWORD PTR [rax]
	mov	edi, DWORD PTR ATH6KL_DBG_USB[rip]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	ath6kl_dbg@PLT
.L2:
	mov	edi, DWORD PTR ATH6KL_DBG_USB[rip]
	mov	rax, QWORD PTR USB_SPEED_HIGH[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L18
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	ath6kl_dbg@PLT
.L4:
	mov	rdi, r12
	call	ath6kl_usb_create@PLT
	mov	r14d, DWORD PTR ENOMEM[rip]
	mov	r13, rax
	neg	r14d
	test	rax, rax
	je	.L6
	mov	rdi, QWORD PTR 8[rax]
	call	ath6kl_core_create@PLT
	mov	r12, rax
	test	rax, rax
	je	.L19
	mov	QWORD PTR 24[rax], r13
	mov	eax, DWORD PTR ATH6KL_HIF_TYPE_USB[rip]
	mov	rdi, r12
	mov	DWORD PTR 16[r12], eax
	lea	rax, ath6kl_usb_ops[rip]
	mov	QWORD PTR 8[r12], rax
	movabs	rax, 68719476988
	mov	QWORD PTR [r12], rax
	mov	esi, DWORD PTR ATH6KL_HTC_TYPE_PIPE[rip]
	mov	QWORD PTR 0[r13], r12
	call	ath6kl_core_init@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L20
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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
.L20:
	.cfi_restore_state
	mov	esi, eax
	lea	rdi, .LC6[rip]
	xor	eax, eax
	call	ath6kl_err@PLT
	mov	rdi, r12
	call	ath6kl_core_destroy@PLT
.L8:
	mov	rdi, r13
	call	ath6kl_usb_destroy@PLT
.L6:
	mov	rdi, rbp
	call	usb_put_dev@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	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
.L18:
	.cfi_restore_state
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	ath6kl_dbg@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	ath6kl_err@PLT
	mov	r14d, DWORD PTR ENOMEM[rip]
	neg	r14d
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	ath6kl_usb_probe, .-ath6kl_usb_probe
	.comm	ath6kl_usb_ops,4,4
	.comm	USB_SPEED_HIGH,8,8
	.comm	ENOMEM,4,4
	.comm	ATH6KL_HTC_TYPE_PIPE,4,4
	.comm	ATH6KL_HIF_TYPE_USB,4,4
	.comm	ATH6KL_DBG_USB,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_ath6kl_usb_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"vendor_id = %04x\012\000"
	.align	2
.LC1:
	.ascii	"product_id = %04x\012\000"
	.align	2
.LC2:
	.ascii	"USB Interface %d\012\000"
	.align	2
.LC3:
	.ascii	"USB 2.0 Host\012\000"
	.align	2
.LC4:
	.ascii	"USB 1.1 Host\012\000"
	.align	2
.LC5:
	.ascii	"Failed to alloc ath6kl core\012\000"
	.align	2
.LC6:
	.ascii	"Failed to init ath6kl core: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath6kl_usb_probe, %function
ath6kl_usb_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	bl	interface_to_usbdev
	mov	r4, r0
	bl	usb_get_dev
	ldr	r0, [r4, #8]
	bl	le16_to_cpu
	mov	r5, r0
	ldr	r0, [r4, #4]
	bl	le16_to_cpu
	mov	r2, r5
	mov	r5, r0
	ldr	r7, .L21
	ldr	r1, .L21+4
	ldr	r0, [r7]
	bl	ath6kl_dbg
	mov	r2, r5
	ldr	r0, [r7]
	ldr	r1, .L21+8
	bl	ath6kl_dbg
	ldr	r3, [r6]
	cmp	r3, #0
	beq	.L2
	ldr	r2, [r3]
	ldr	r1, .L21+12
	ldr	r0, [r7]
	bl	ath6kl_dbg
.L2:
	ldr	r3, .L21+16
	ldr	r2, [r4]
	ldr	r3, [r3]
	ldr	r0, [r7]
	cmp	r2, r3
	ldreq	r1, .L21+20
	ldrne	r1, .L21+24
	bl	ath6kl_dbg
	mov	r0, r6
	bl	ath6kl_usb_create
	subs	r7, r0, #0
	beq	.L18
	ldr	r0, [r7, #4]
	bl	ath6kl_core_create
	subs	r5, r0, #0
	beq	.L19
	mov	r3, #252
	mov	r1, #16
	ldr	r2, .L21+28
	str	r1, [r5, #4]
	ldr	r2, [r2]
	str	r3, [r5]
	str	r2, [r5, #12]
	ldr	r3, .L21+32
	ldr	r2, .L21+36
	ldr	r1, [r3]
	str	r7, [r5, #16]
	str	r2, [r5, #8]
	str	r5, [r7]
	bl	ath6kl_core_init
	subs	r6, r0, #0
	bne	.L20
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	ldr	r3, .L21+40
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L6:
	mov	r0, r4
	bl	usb_put_dev
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	mov	r1, r6
	ldr	r0, .L21+44
	bl	ath6kl_err
	mov	r0, r5
	bl	ath6kl_core_destroy
.L8:
	mov	r0, r7
	bl	ath6kl_usb_destroy
	b	.L6
.L19:
	ldr	r0, .L21+48
	bl	ath6kl_err
	ldr	r3, .L21+40
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L8
.L22:
	.align	2
.L21:
	.word	ATH6KL_DBG_USB
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	USB_SPEED_HIGH
	.word	.LC3
	.word	.LC4
	.word	ATH6KL_HIF_TYPE_USB
	.word	ATH6KL_HTC_TYPE_PIPE
	.word	ath6kl_usb_ops
	.word	ENOMEM
	.word	.LC6
	.word	.LC5
	.size	ath6kl_usb_probe, .-ath6kl_usb_probe
	.comm	ath6kl_usb_ops,4,4
	.comm	USB_SPEED_HIGH,4,4
	.comm	ENOMEM,4,4
	.comm	ATH6KL_HTC_TYPE_PIPE,4,4
	.comm	ATH6KL_HIF_TYPE_USB,4,4
	.comm	ATH6KL_DBG_USB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
