	.file	"extr_bhndb_pci.c_bhndb_pci_get_core_regs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"missing PCI core register window\n"
	.align 8
.LC1:
	.string	"missing PCI core register resource\n"
	.text
	.p2align 4
	.type	bhndb_pci_get_core_regs, @function
bhndb_pci_get_core_regs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r9d, r9d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r8
	xor	r8d, r8d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR 8[rdi]
	mov	esi, DWORD PTR 16[rdi]
	mov	ecx, DWORD PTR BHND_PORT_DEVICE[rip]
	mov	rax, QWORD PTR 8[rax]
	push	rdx
	.cfi_def_cfa_offset 72
	xor	edx, edx
	push	rbx
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR [rax]
	call	bhndb_regwin_find_core@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	test	rax, rax
	je	.L7
	mov	rbp, rax
	mov	rax, QWORD PTR 8[r13]
	mov	rsi, rbp
	mov	edi, DWORD PTR [rax]
	call	bhndb_host_resource_for_regwin@PLT
	mov	r15, rax
	test	rax, rax
	je	.L8
	xor	edi, edi
	cmp	QWORD PTR 8[rbp], rbx
	movsx	rsi, ebx
	setle	dil
	call	KASSERT@PLT
	sub	rbx, QWORD PTR 8[rbp]
	add	rbx, QWORD PTR 0[rbp]
	mov	QWORD PTR [r14], r15
	mov	QWORD PTR [r12], rbx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[r13]
	lea	rsi, .LC0[rip]
	call	device_printf@PLT
	mov	eax, DWORD PTR ENXIO[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[r13]
	lea	rsi, .LC1[rip]
	call	device_printf@PLT
	mov	eax, DWORD PTR ENXIO[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 56
	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
	.cfi_endproc
.LFE0:
	.size	bhndb_pci_get_core_regs, .-bhndb_pci_get_core_regs
	.comm	ENXIO,4,4
	.comm	BHND_PORT_DEVICE,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_get_core_regs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"missing PCI core register window\012\000"
	.align	2
.LC1:
	.ascii	"missing PCI core register resource\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bhndb_pci_get_core_regs, %function
bhndb_pci_get_core_regs:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r6, #0
	mov	r8, r0
	mov	r4, r1
	ldr	r1, [r0, #4]
	mov	r7, r3
	ldr	r0, [r1, #4]
	ldr	r3, .L9
	sub	sp, sp, #20
	ldr	r1, [r8, #8]
	ldr	r0, [r0]
	ldr	r3, [r3]
	str	r2, [sp, #12]
	str	r4, [sp, #8]
	mov	r2, r6
	str	r6, [sp, #4]
	str	r6, [sp]
	bl	bhndb_regwin_find_core
	subs	r5, r0, #0
	beq	.L7
	ldr	r3, [r8, #4]
	mov	r1, r5
	ldr	r0, [r3]
	bl	bhndb_host_resource_for_regwin
	subs	r9, r0, #0
	beq	.L8
	ldr	r0, [r5, #4]
	mov	r1, r4
	cmp	r0, r4
	movgt	r0, #0
	movle	r0, #1
	bl	KASSERT
	mov	r0, r6
	ldr	r1, [r5, #4]
	ldr	r3, [r5]
	sub	r4, r4, r1
	add	r4, r4, r3
	ldr	r3, [sp, #48]
	str	r9, [r7]
	str	r4, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L7:
	ldr	r0, [r8]
	ldr	r1, .L9+4
	bl	device_printf
	ldr	r3, .L9+8
	ldr	r0, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L8:
	ldr	r0, [r8]
	ldr	r1, .L9+12
	bl	device_printf
	ldr	r3, .L9+8
	ldr	r0, [r3]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L10:
	.align	2
.L9:
	.word	BHND_PORT_DEVICE
	.word	.LC0
	.word	ENXIO
	.word	.LC1
	.size	bhndb_pci_get_core_regs, .-bhndb_pci_get_core_regs
	.comm	ENXIO,4,4
	.comm	BHND_PORT_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
