	.file	"extr_hci_bcm.c_bcm_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s device registered.\n"
.LC1:
	.string	"Failed to power down\n"
	.text
	.p2align 4
	.type	bcm_probe, @function
bcm_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	esi, 24
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	devm_kzalloc@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	test	rax, rax
	je	.L1
	mov	QWORD PTR 16[rax], r12
	xor	esi, esi
	mov	rdi, r12
	mov	rbp, rax
	call	platform_get_irq@PLT
	mov	rdi, r12
	mov	DWORD PTR 8[rbp], eax
	call	has_acpi_companion@PLT
	test	rax, rax
	je	.L6
	mov	rdi, rbp
	call	bcm_acpi_probe@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
.L6:
	mov	rdi, rbp
	call	bcm_get_resources@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L13
.L1:
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rsi, rbp
	mov	rdi, r12
	call	platform_set_drvdata@PLT
	mov	edx, DWORD PTR 4[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	dev_info@PLT
	lea	rdi, bcm_device_lock[rip]
	call	mutex_lock@PLT
	lea	rsi, bcm_device_list[rip]
	mov	rdi, rbp
	call	list_add_tail@PLT
	lea	rdi, bcm_device_lock[rip]
	call	mutex_unlock@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	bcm_gpio_set_power@PLT
	test	eax, eax
	je	.L1
	lea	rsi, .LC1[rip]
	mov	rdi, r12
	call	dev_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	bcm_probe, .-bcm_probe
	.comm	bcm_device_lock,4,4
	.comm	bcm_device_list,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_hci_bcm.c_bcm_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s device registered.\012\000"
	.align	2
.LC1:
	.ascii	"Failed to power down\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bcm_probe, %function
bcm_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L15
	push	{r4, r5, r6, lr}
	mov	r1, #16
	ldr	r2, [r3]
	mov	r6, r0
	bl	devm_kzalloc
	subs	r4, r0, #0
	beq	.L13
	mov	r1, #0
	mov	r0, r6
	str	r6, [r4, #12]
	bl	platform_get_irq
	mov	r3, r0
	mov	r0, r6
	str	r3, [r4, #8]
	bl	has_acpi_companion
	cmp	r0, #0
	beq	.L6
	mov	r0, r4
	bl	bcm_acpi_probe
	subs	r5, r0, #0
	bne	.L1
.L6:
	mov	r0, r4
	bl	bcm_get_resources
	subs	r5, r0, #0
	beq	.L14
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L14:
	mov	r1, r4
	mov	r0, r6
	bl	platform_set_drvdata
	ldr	r2, [r4, #4]
	ldr	r1, .L15+4
	mov	r0, r6
	bl	dev_info
	ldr	r0, .L15+8
	bl	mutex_lock
	ldr	r1, .L15+12
	mov	r0, r4
	bl	list_add_tail
	ldr	r0, .L15+8
	bl	mutex_unlock
	mov	r1, r5
	mov	r0, r4
	bl	bcm_gpio_set_power
	cmp	r0, #0
	beq	.L1
	mov	r0, r6
	ldr	r1, .L15+16
	bl	dev_err
	b	.L1
.L13:
	ldr	r3, .L15+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L16:
	.align	2
.L15:
	.word	GFP_KERNEL
	.word	.LC0
	.word	bcm_device_lock
	.word	bcm_device_list
	.word	.LC1
	.word	ENOMEM
	.size	bcm_probe, .-bcm_probe
	.comm	bcm_device_lock,4,4
	.comm	bcm_device_list,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
