	.file	"extr_whci.c_whci_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"whci (capability data)"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"cannot bind UWB radio controller: %d\n"
	.align 8
.LC2:
	.string	"warning: cannot bind capability #%u: %d\n"
	.text
	.p2align 4
	.type	whci_probe, @function
whci_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
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	pci_enable_device@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	rdi, rbp
	call	pci_enable_msi@PLT
	mov	rdi, rbp
	call	pci_set_master@PLT
	mov	edi, 64
	mov	r12d, DWORD PTR ENXIO[rip]
	call	DMA_BIT_MASK@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	pci_set_dma_mask@PLT
	test	eax, eax
	jne	.L3
	mov	edi, 64
	call	DMA_BIT_MASK@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	pci_set_consistent_dma_mask@PLT
.L4:
	mov	rdi, rbp
	call	whci_n_caps@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L17
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	lea	edi, 24[0+rax*8]
	mov	ebx, DWORD PTR ENOMEM[rip]
	call	kzalloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L24
	mov	DWORD PTR [rax], r12d
	mov	edi, r12d
	mov	ebx, DWORD PTR EBUSY[rip]
	mov	QWORD PTR 8[rax], rbp
	call	UWBCAPDATA_SIZE@PLT
	xor	esi, esi
	mov	rdi, rbp
	mov	r12d, eax
	call	pci_resource_start@PLT
	lea	rdx, .LC0[rip]
	mov	esi, r12d
	mov	edi, eax
	call	request_mem_region@PLT
	test	eax, eax
	jne	.L8
	neg	ebx
	mov	r12d, ebx
.L9:
	mov	rdi, r13
	call	kfree@PLT
.L6:
.L16:
.L17:
	mov	rdi, rbp
	call	pci_disable_msi@PLT
	mov	rdi, rbp
	call	pci_disable_device@PLT
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L3:
	.cfi_restore_state
	mov	edi, 32
	neg	r12d
	call	DMA_BIT_MASK@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	pci_set_dma_mask@PLT
	test	eax, eax
	jne	.L17
	mov	edi, 32
	call	DMA_BIT_MASK@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	pci_set_consistent_dma_mask@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L24:
	neg	ebx
	mov	r12d, ebx
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR 0[r13]
	mov	r12d, DWORD PTR ENOMEM[rip]
	call	UWBCAPDATA_SIZE@PLT
	xor	esi, esi
	mov	rdi, rbp
	mov	edx, eax
	call	pci_iomap@PLT
	mov	DWORD PTR 4[r13], eax
	test	eax, eax
	je	.L10
	mov	eax, DWORD PTR 0[r13]
	test	eax, eax
	js	.L11
	xor	ebx, ebx
	lea	r14, .LC2[rip]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L12:
	test	eax, eax
	jns	.L14
	mov	ecx, eax
	mov	edx, ebx
	mov	rsi, r14
	mov	rdi, rbp
	call	dev_warn@PLT
.L14:
	add	ebx, 1
	cmp	DWORD PTR 0[r13], ebx
	jl	.L11
.L15:
	mov	esi, ebx
	mov	rdi, r13
	call	whci_add_cap@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L14
	test	ebx, ebx
	jne	.L12
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	dev_err@PLT
	mov	esi, DWORD PTR 4[r13]
	mov	rdi, rbp
	call	pci_iounmap@PLT
.L13:
	mov	edi, DWORD PTR 0[r13]
	call	UWBCAPDATA_SIZE@PLT
	xor	esi, esi
	mov	rdi, rbp
	mov	r14d, eax
	call	pci_resource_start@PLT
	mov	esi, r14d
	mov	edi, eax
	call	release_mem_region@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rsi, r13
	mov	rdi, rbp
	xor	r12d, r12d
	call	pci_set_drvdata@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	neg	r12d
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	whci_probe, .-whci_probe
	.comm	GFP_KERNEL,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	EBUSY,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_whci.c_whci_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"whci (capability data)\000"
	.align	2
.LC1:
	.ascii	"cannot bind UWB radio controller: %d\012\000"
	.align	2
.LC2:
	.ascii	"warning: cannot bind capability #%u: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	whci_probe, %function
whci_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	pci_enable_device
	subs	r4, r0, #0
	blt	.L1
	mov	r0, r6
	bl	pci_enable_msi
	mov	r0, r6
	bl	pci_set_master
	ldr	r3, .L22
	mov	r0, #64
	ldr	r4, [r3]
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r6
	bl	pci_set_dma_mask
	cmp	r0, #0
	bne	.L3
	mov	r0, #64
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r6
	bl	pci_set_consistent_dma_mask
.L4:
	mov	r0, r6
	bl	whci_n_caps
	subs	r4, r0, #0
	blt	.L17
	ldr	r3, .L22+4
	add	r0, r4, #4
	ldr	r8, .L22+8
	ldr	r1, [r3]
	lsl	r0, r0, #2
	ldr	r5, [r8]
	bl	kzalloc
	subs	r7, r0, #0
	rsbeq	r4, r5, #0
	beq	.L17
	ldr	r3, .L22+12
	mov	r1, #0
	str	r4, [r7]
	mov	r0, r6
	str	r6, [r7, #8]
	ldr	r4, [r3]
	bl	pci_resource_start
	mov	r5, r0
	ldr	r0, [r7]
	bl	UWBCAPDATA_SIZE
	ldr	r2, .L22+16
	mov	r1, r0
	mov	r0, r5
	bl	request_mem_region
	cmp	r0, #0
	rsbeq	r4, r4, #0
	beq	.L9
	ldr	r0, [r7]
	ldr	r4, [r8]
	bl	UWBCAPDATA_SIZE
	mov	r1, #0
	mov	r2, r0
	mov	r0, r6
	bl	pci_iomap
	cmp	r0, #0
	str	r0, [r7, #4]
	beq	.L10
	ldr	r3, [r7]
	cmp	r3, #0
	blt	.L11
	mov	r5, #0
	ldr	r8, .L22+20
	b	.L15
.L14:
	ldr	r3, [r7]
	add	r5, r5, #1
	cmp	r3, r5
	blt	.L11
.L15:
	mov	r1, r5
	mov	r0, r7
	bl	whci_add_cap
	clz	r1, r5
	lsr	r1, r1, #5
	ands	r3, r1, r0, lsr #31
	mov	r4, r0
	bne	.L21
	cmp	r0, #0
	bge	.L14
	mov	r3, r0
	mov	r2, r5
	mov	r1, r8
	mov	r0, r6
	bl	dev_warn
	b	.L14
.L10:
	rsb	r4, r4, #0
.L13:
	mov	r1, #0
	mov	r0, r6
	bl	pci_resource_start
	mov	r5, r0
	ldr	r0, [r7]
	bl	UWBCAPDATA_SIZE
	mov	r1, r0
	mov	r0, r5
	bl	release_mem_region
.L9:
	mov	r0, r7
	bl	kfree
.L6:
.L16:
.L17:
	mov	r0, r6
	bl	pci_disable_msi
	mov	r0, r6
	bl	pci_disable_device
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r0, #32
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r6
	bl	pci_set_dma_mask
	cmp	r0, #0
	rsbne	r4, r4, #0
	bne	.L17
	mov	r0, #32
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r6
	bl	pci_set_consistent_dma_mask
	b	.L4
.L11:
	mov	r1, r7
	mov	r0, r6
	bl	pci_set_drvdata
	mov	r4, #0
	b	.L1
.L21:
	mov	r2, r0
	ldr	r1, .L22+24
	mov	r0, r6
	bl	dev_err
	mov	r0, r6
	ldr	r1, [r7, #4]
	bl	pci_iounmap
	b	.L13
.L23:
	.align	2
.L22:
	.word	ENXIO
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	EBUSY
	.word	.LC0
	.word	.LC2
	.word	.LC1
	.size	whci_probe, .-whci_probe
	.comm	GFP_KERNEL,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
