	.file	"extr_bhndb_pci.c_bhndb_pci_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"pci"
.LC1:
	.string	"PCI-BHND bridge"
	.text
	.p2align 4
	.type	bhndb_pci_probe, @function
bhndb_pci_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	lea	rdi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rsp], 0
	call	devclass_find@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	device_get_parent@PLT
	mov	rdi, rax
	call	device_get_parent@PLT
	test	rax, rax
	je	.L5
	mov	rdi, rax
	call	device_get_devclass@PLT
	mov	rdi, rax
	test	rax, rax
	jne	.L8
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L19:
	call	devclass_get_parent@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L9
.L8:
	cmp	rbx, rdi
	jne	.L19
.L6:
	mov	rdi, rbp
	call	bhndb_enable_pci_clocks@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, rbp
	call	bhndb_expected_pci_devclass@PLT
	mov	rdi, rsp
	mov	rsi, rbp
	mov	edx, eax
	call	bhndb_pci_probe_alloc@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L20
.L10:
	mov	rdi, QWORD PTR [rsp]
	test	rdi, rdi
	je	.L12
	call	bhndb_pci_probe_free@PLT
.L12:
	mov	rdi, rbp
	call	bhndb_disable_pci_clocks@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	test	rbx, rbx
	je	.L6
.L5:
	mov	r12d, DWORD PTR ENXIO[rip]
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
.L20:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rsp]
	call	bhndb_pci_find_core@PLT
	mov	r12d, DWORD PTR ENXIO[rip]
	test	rax, rax
	je	.L10
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	device_set_desc@PLT
	mov	r12d, DWORD PTR BUS_PROBE_DEFAULT[rip]
	jmp	.L10
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bhndb_pci_probe, .-bhndb_pci_probe
	.comm	ENXIO,4,4
	.comm	BUS_PROBE_DEFAULT,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_bhndb_pci.c_bhndb_pci_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"pci\000"
	.align	2
.LC1:
	.ascii	"PCI-BHND bridge\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bhndb_pci_probe, %function
bhndb_pci_probe:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, lr}
	ldr	r2, .L23
	sub	sp, sp, #12
	mov	r5, r0
	ldr	r0, .L23+4
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	str	r3, [sp]
	bl	devclass_find
	mov	r4, r0
	mov	r0, r5
	bl	device_get_parent
	bl	device_get_parent
	cmp	r0, #0
	beq	.L5
	bl	device_get_devclass
	cmp	r0, #0
	bne	.L8
	b	.L9
.L19:
	bl	devclass_get_parent
	cmp	r0, #0
	beq	.L9
.L8:
	cmp	r4, r0
	bne	.L19
.L6:
	mov	r0, r5
	bl	bhndb_enable_pci_clocks
	subs	r4, r0, #0
	bne	.L1
	mov	r0, r5
	bl	bhndb_expected_pci_devclass
	mov	r1, r5
	mov	r2, r0
	mov	r0, sp
	bl	bhndb_pci_probe_alloc
	subs	r4, r0, #0
	beq	.L20
.L10:
	ldr	r0, [sp]
	cmp	r0, #0
	beq	.L12
	bl	bhndb_pci_probe_free
.L12:
	mov	r0, r5
	bl	bhndb_disable_pci_clocks
	b	.L1
.L9:
	cmp	r4, #0
	beq	.L6
.L5:
	ldr	r3, .L23+8
	ldr	r4, [r3]
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L20:
	ldr	r0, [sp]
	bl	bhndb_pci_find_core
	cmp	r0, #0
	beq	.L22
	mov	r0, r5
	ldr	r1, .L23+12
	bl	device_set_desc
	ldr	r3, .L23+16
	ldr	r4, [r3]
	b	.L10
.L22:
	ldr	r3, .L23+8
	ldr	r4, [r3]
	b	.L10
.L21:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC2
	.word	.LC0
	.word	ENXIO
	.word	.LC1
	.word	BUS_PROBE_DEFAULT
	.size	bhndb_pci_probe, .-bhndb_pci_probe
	.comm	ENXIO,4,4
	.comm	BUS_PROBE_DEFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
