	.file	"extr_hcd.c_whc_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"whci"
.LC1:
	.string	"unable to create hcd\n"
.LC2:
	.string	"cannot get radio controller\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"USB_MAXCHILDREN too low for WUSB adapter (%u ports)\n"
	.section	.rodata.str1.1
.LC4:
	.string	"cannot add HCD: %d\n"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"WUSBHC phase B setup failed: %d\n"
	.text
	.p2align 4
	.type	whc_probe, @function
whc_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	rdx, .LC0[rip]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	lea	r14, 4[rdi]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	rsi, r14
	mov	r13, rdi
	lea	rdi, whc_hc_driver[rip]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r12d, DWORD PTR ENOMEM[rip]
	call	usb_create_hcd@PLT
	test	rax, rax
	je	.L14
	mov	rbp, rax
	movabs	rax, 8796093022209
	mov	QWORD PTR 0[rbp], rax
	mov	rdi, rbp
	call	usb_hcd_to_wusbhc@PLT
	mov	rdi, rax
	mov	rbx, rax
	call	wusbhc_to_whc@PLT
	mov	QWORD PTR 8[rax], r13
	mov	rdi, rax
	mov	r15, rax
	call	whc_init@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L15
.L4:
	mov	rdi, r15
	call	whc_clean_up@PLT
	mov	rdi, rbp
	call	usb_put_hcd@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L15:
	.cfi_restore_state
	mov	QWORD PTR 56[rbx], r14
	mov	edi, DWORD PTR 4[r13]
	call	uwb_rc_get_by_grandpa@PLT
	mov	DWORD PTR 8[rbx], eax
	test	eax, eax
	je	.L16
	mov	rdx, QWORD PTR [r15]
	cmp	rdx, QWORD PTR USB_MAXCHILDREN[rip]
	jg	.L17
	mov	QWORD PTR [rbx], rdx
.L7:
	mov	eax, DWORD PTR 16[r15]
	mov	rdi, rbx
	mov	DWORD PTR 48[rbx], eax
	mov	eax, DWORD PTR whc_wusbhc_start[rip]
	mov	DWORD PTR 44[rbx], eax
	mov	eax, DWORD PTR whc_wusbhc_stop[rip]
	mov	DWORD PTR 40[rbx], eax
	mov	eax, DWORD PTR whc_mmcie_add[rip]
	mov	DWORD PTR 36[rbx], eax
	mov	eax, DWORD PTR whc_mmcie_rm[rip]
	mov	DWORD PTR 32[rbx], eax
	mov	eax, DWORD PTR whc_dev_info_set[rip]
	mov	DWORD PTR 28[rbx], eax
	mov	eax, DWORD PTR whc_bwa_set[rip]
	mov	DWORD PTR 24[rbx], eax
	mov	eax, DWORD PTR whc_set_num_dnts[rip]
	mov	DWORD PTR 20[rbx], eax
	mov	eax, DWORD PTR whc_set_ptk[rip]
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR whc_set_gtk[rip]
	mov	DWORD PTR 12[rbx], eax
	call	wusbhc_create@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L18
.L8:
	mov	edi, DWORD PTR 8[rbx]
	call	uwb_rc_put@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rax, QWORD PTR 8[r15]
	mov	edx, DWORD PTR IRQF_SHARED[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR [rax]
	call	usb_add_hcd@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L19
	mov	rdi, rbx
	call	wusbhc_b_create@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L20
	mov	rdi, r15
	call	whc_dbg_init@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, r14
	lea	rsi, .LC1[rip]
	xor	eax, eax
	neg	r12d
	call	dev_err@PLT
	xor	edi, edi
	call	whc_clean_up@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	lea	rsi, .LC3[rip]
	mov	rdi, r14
	call	dev_warn@PLT
	mov	rax, QWORD PTR USB_MAXCHILDREN[rip]
	mov	QWORD PTR [rbx], rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L16:
	mov	r12d, DWORD PTR ENODEV[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, r14
	neg	r12d
	call	dev_err@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edx, eax
	lea	rsi, .LC4[rip]
	mov	rdi, r14
	xor	eax, eax
	call	dev_err@PLT
.L10:
	mov	rdi, rbx
	call	wusbhc_destroy@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edx, eax
	mov	rdi, r14
	lea	rsi, .LC5[rip]
	xor	eax, eax
	call	dev_err@PLT
	mov	rdi, rbp
	call	usb_remove_hcd@PLT
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	whc_probe, .-whc_probe
	.comm	whc_wusbhc_stop,4,4
	.comm	whc_wusbhc_start,4,4
	.comm	whc_set_ptk,4,4
	.comm	whc_set_num_dnts,4,4
	.comm	whc_set_gtk,4,4
	.comm	whc_mmcie_rm,4,4
	.comm	whc_mmcie_add,4,4
	.comm	whc_hc_driver,4,4
	.comm	whc_dev_info_set,4,4
	.comm	whc_bwa_set,4,4
	.comm	USB_MAXCHILDREN,8,8
	.comm	IRQF_SHARED,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_hcd.c_whc_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"whci\000"
	.align	2
.LC1:
	.ascii	"unable to create hcd\012\000"
	.align	2
.LC2:
	.ascii	"cannot get radio controller\012\000"
	.align	2
.LC3:
	.ascii	"USB_MAXCHILDREN too low for WUSB adapter (%u ports)"
	.ascii	"\012\000"
	.align	2
.LC4:
	.ascii	"cannot add HCD: %d\012\000"
	.align	2
.LC5:
	.ascii	"WUSBHC phase B setup failed: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	whc_probe, %function
whc_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L21
	add	r6, r0, #4
	mov	r9, r0
	mov	r1, r6
	ldr	r2, .L21+4
	ldr	r0, .L21+8
	ldr	r4, [r3]
	bl	usb_create_hcd
	subs	r5, r0, #0
	beq	.L14
	mov	r2, #1
	mov	r3, #2048
	stm	r5, {r2, r3}
	bl	usb_hcd_to_wusbhc
	mov	r8, r0
	bl	wusbhc_to_whc
	str	r9, [r0, #4]
	mov	r7, r0
	bl	whc_init
	subs	r4, r0, #0
	beq	.L15
.L4:
	mov	r0, r7
	bl	whc_clean_up
	mov	r0, r5
	bl	usb_put_hcd
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	ldr	r0, [r9, #4]
	str	r6, [r8, #48]
	bl	uwb_rc_get_by_grandpa
	cmp	r0, #0
	str	r0, [r8, #4]
	beq	.L16
	ldr	r4, .L21+12
	ldr	r2, [r7]
	ldr	r3, [r4]
	cmp	r2, r3
	strle	r2, [r8]
	bgt	.L17
.L7:
	ldr	r1, .L21+16
	ldr	r3, .L21+20
	ldr	r2, .L21+24
	ldr	r0, [r1]
	ldr	r2, [r2]
	ldr	r1, [r3]
	ldr	r3, .L21+28
	ldr	ip, [r7, #8]
	str	r2, [r8, #40]
	ldr	r2, [r3]
	ldr	r3, .L21+32
	str	ip, [r8, #44]
	ldr	ip, [r3]
	ldr	r3, .L21+36
	str	r0, [r8, #36]
	ldr	r0, [r3]
	ldr	r3, .L21+40
	str	r1, [r8, #32]
	ldr	r1, [r3]
	ldr	r3, .L21+44
	str	r2, [r8, #28]
	ldr	r2, [r3]
	ldr	r3, .L21+48
	str	r0, [r8, #20]
	ldr	r3, [r3]
	mov	r0, r8
	str	ip, [r8, #24]
	str	r1, [r8, #16]
	str	r2, [r8, #12]
	str	r3, [r8, #8]
	bl	wusbhc_create
	subs	r4, r0, #0
	beq	.L18
.L8:
	ldr	r0, [r8, #4]
	bl	uwb_rc_put
	b	.L4
.L18:
	ldr	r3, [r7, #4]
	ldr	r2, .L21+52
	mov	r0, r5
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	usb_add_hcd
	subs	r4, r0, #0
	bne	.L19
	mov	r0, r8
	bl	wusbhc_b_create
	subs	r4, r0, #0
	bne	.L20
	mov	r0, r7
	bl	whc_dbg_init
	b	.L1
.L14:
	ldr	r1, .L21+56
	mov	r0, r6
	bl	dev_err
	rsb	r4, r4, #0
	mov	r0, r5
	bl	whc_clean_up
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	mov	r0, r6
	ldr	r1, .L21+60
	bl	dev_warn
	ldr	r3, [r4]
	str	r3, [r8]
	b	.L7
.L16:
	ldr	r3, .L21+64
	mov	r0, r6
	ldr	r4, [r3]
	ldr	r1, .L21+68
	rsb	r4, r4, #0
	bl	dev_err
	b	.L4
.L19:
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L21+72
	bl	dev_err
.L10:
	mov	r0, r8
	bl	wusbhc_destroy
	b	.L8
.L20:
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L21+76
	bl	dev_err
	mov	r0, r5
	bl	usb_remove_hcd
	b	.L10
.L22:
	.align	2
.L21:
	.word	ENOMEM
	.word	.LC0
	.word	whc_hc_driver
	.word	USB_MAXCHILDREN
	.word	whc_wusbhc_stop
	.word	whc_mmcie_add
	.word	whc_wusbhc_start
	.word	whc_mmcie_rm
	.word	whc_dev_info_set
	.word	whc_bwa_set
	.word	whc_set_num_dnts
	.word	whc_set_ptk
	.word	whc_set_gtk
	.word	IRQF_SHARED
	.word	.LC1
	.word	.LC3
	.word	ENODEV
	.word	.LC2
	.word	.LC4
	.word	.LC5
	.size	whc_probe, .-whc_probe
	.comm	whc_wusbhc_stop,4,4
	.comm	whc_wusbhc_start,4,4
	.comm	whc_set_ptk,4,4
	.comm	whc_set_num_dnts,4,4
	.comm	whc_set_gtk,4,4
	.comm	whc_mmcie_rm,4,4
	.comm	whc_mmcie_add,4,4
	.comm	whc_hc_driver,4,4
	.comm	whc_dev_info_set,4,4
	.comm	whc_bwa_set,4,4
	.comm	USB_MAXCHILDREN,4,4
	.comm	IRQF_SHARED,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
