	.file	"extr_host_pci.c_bcma_host_pci_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"PCI card detected, report problems.\n"
	.text
	.p2align 4
	.type	bcma_host_pci_probe, @function
bcma_host_pci_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	edi, 40
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	kzalloc@PLT
	neg	r12d
	test	rax, rax
	je	.L1
	mov	rdi, rbp
	mov	r13, rax
	call	pci_enable_device@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L24
.L4:
	mov	rdi, r13
	call	kfree@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L25
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbp
	.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
.L24:
	.cfi_restore_state
	lea	rdi, 16[rbp]
	call	dev_name@PLT
	mov	rsi, rax
	mov	rax, QWORD PTR 8[rbp]
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	cmovne	rsi, rax
.L5:
	mov	rdi, rbp
	call	pci_request_regions@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L26
.L6:
	endbr64
	mov	rdi, rbp
	call	pci_disable_device@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdi, rbp
	call	pci_set_master@PLT
	lea	rdx, 4[rsp]
	mov	esi, 64
	mov	rdi, rbp
	call	pci_read_config_dword@PLT
	mov	edx, DWORD PTR 4[rsp]
	test	dh, -1
	jne	.L27
.L7:
	mov	rdi, rbp
	call	pci_is_pcie@PLT
	test	eax, eax
	je	.L28
.L8:
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	rdx, -1
	xor	esi, esi
	mov	rdi, rbp
	call	pci_iomap@PLT
	mov	DWORD PTR 0[r13], eax
	neg	r12d
	test	eax, eax
	je	.L11
	mov	eax, DWORD PTR BCMA_HOSTTYPE_PCI[rip]
	mov	QWORD PTR 8[r13], rbp
	mov	rdi, r13
	mov	DWORD PTR 32[r13], eax
	lea	rax, bcma_host_pci_ops[rip]
	mov	QWORD PTR 24[r13], rax
	mov	eax, DWORD PTR 4[rbp]
	mov	DWORD PTR 20[r13], eax
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 16[r13], eax
	call	bcma_bus_register@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L29
	mov	rsi, r13
	mov	rdi, rbp
	call	pci_set_drvdata@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L29:
	mov	esi, DWORD PTR 0[r13]
	mov	rdi, rbp
	call	pci_iounmap@PLT
.L11:
	mov	rdi, rbp
	call	pci_release_regions@PLT
	mov	rdi, rbp
	call	pci_disable_device@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L28:
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	bcma_err@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L27:
	xor	dh, dh
	mov	esi, 64
	mov	rdi, rbp
	call	pci_write_config_dword@PLT
	jmp	.L7
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bcma_host_pci_probe, .-bcma_host_pci_probe
	.comm	bcma_host_pci_ops,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	BCMA_HOSTTYPE_PCI,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_host_pci.c_bcma_host_pci_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PCI card detected, report problems.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bcma_host_pci_probe, %function
bcma_host_pci_probe:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L29
	ldr	r7, .L29+4
	ldr	r1, [r3]
	ldr	r3, .L29+8
	sub	sp, sp, #12
	mov	r5, r0
	mov	r0, #24
	ldr	r4, [r7]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	kzalloc
	subs	r6, r0, #0
	rsbeq	r4, r4, #0
	beq	.L1
	mov	r0, r5
	bl	pci_enable_device
	subs	r4, r0, #0
	beq	.L23
.L4:
	mov	r0, r6
	bl	kfree
.L1:
	ldr	r3, .L29+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L23:
	add	r0, r5, #12
	bl	dev_name
	ldr	r3, [r5, #8]
	mov	r1, r0
	cmp	r3, #0
	beq	.L5
	ldr	r3, [r3]
	cmp	r3, #0
	movne	r1, r3
.L5:
	mov	r0, r5
	bl	pci_request_regions
	subs	r4, r0, #0
	beq	.L25
.L6:
	mov	r0, r5
	bl	pci_disable_device
	b	.L4
.L25:
	mov	r0, r5
	bl	pci_set_master
	mov	r2, sp
	mov	r1, #64
	mov	r0, r5
	bl	pci_read_config_dword
	ldr	r2, [sp]
	tst	r2, #65280
	bne	.L26
.L7:
	mov	r0, r5
	bl	pci_is_pcie
	cmp	r0, #0
	beq	.L27
.L8:
	mvn	r2, #0
	mov	r1, #0
	mov	r0, r5
	ldr	r4, [r7]
	bl	pci_iomap
	cmp	r0, #0
	str	r0, [r6]
	rsbeq	r4, r4, #0
	beq	.L11
	ldr	r3, .L29+12
	ldr	r2, [r5, #4]
	ldr	r0, [r3]
	ldr	r1, .L29+16
	ldr	r3, [r5]
	str	r0, [r6, #20]
	str	r5, [r6, #4]
	mov	r0, r6
	str	r1, [r6, #16]
	str	r2, [r6, #12]
	str	r3, [r6, #8]
	bl	bcma_bus_register
	subs	r4, r0, #0
	bne	.L28
	mov	r1, r6
	mov	r0, r5
	bl	pci_set_drvdata
	b	.L1
.L28:
	mov	r0, r5
	ldr	r1, [r6]
	bl	pci_iounmap
.L11:
	mov	r0, r5
	bl	pci_release_regions
	mov	r0, r5
	bl	pci_disable_device
	b	.L4
.L27:
	mov	r0, r6
	ldr	r1, .L29+20
	bl	bcma_err
	b	.L8
.L26:
	mov	r1, #64
	mov	r0, r5
	bic	r2, r2, #65280
	bl	pci_write_config_dword
	b	.L7
.L24:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	.LC1
	.word	BCMA_HOSTTYPE_PCI
	.word	bcma_host_pci_ops
	.word	.LC0
	.size	bcma_host_pci_probe, .-bcma_host_pci_probe
	.comm	bcma_host_pci_ops,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	BCMA_HOSTTYPE_PCI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
