	.file	"extr_ntb_hw_intel.c_intel_ntb_peer_db_addr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"must be non-NULL"
.LC1:
	.string	"invalid b2b idx"
.LC2:
	.string	"uh oh"
	.text
	.p2align 4
	.type	intel_ntb_peer_db_addr, @function
intel_ntb_peer_db_addr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	device_get_softc@PLT
	test	r14, r14
	lea	rsi, .LC0[rip]
	mov	rbx, rax
	setne	al
	xor	edi, edi
	test	r13, r13
	setne	dil
	and	edi, eax
	call	KASSERT@PLT
	mov	esi, DWORD PTR NTB_SDOORBELL_LOCKUP[rip]
	mov	rdi, rbx
	call	HAS_FEATURE@PLT
	test	eax, eax
	jne	.L2
	mov	rax, QWORD PTR 24[rbx]
	mov	rbp, QWORD PTR NTB_CONFIG_BAR[rip]
	mov	r12, QWORD PTR [rax]
	sal	rbp, 4
	add	rbp, QWORD PTR 16[rbx]
.L3:
	mov	rax, QWORD PTR X86_BUS_SPACE_IO[rip]
	xor	edi, edi
	cmp	QWORD PTR 0[rbp], rax
	lea	rsi, .LC2[rip]
	setne	dil
	call	KASSERT@PLT
	mov	rax, QWORD PTR 8[rbx]
	add	r12, QWORD PTR 8[rbp]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	QWORD PTR [r14], r12
	mov	eax, DWORD PTR [rax]
	pop	r12
	.cfi_def_cfa_offset 24
	mov	DWORD PTR 0[r13], eax
	xor	eax, eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR B2B_MW_DISABLED[rip]
	xor	edi, edi
	cmp	QWORD PTR [rbx], rax
	lea	rsi, .LC1[rip]
	setne	dil
	call	KASSERT@PLT
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, rbx
	mov	rbp, QWORD PTR 16[rbx]
	call	intel_ntb_mw_to_bar@PLT
	mov	r12, QWORD PTR XEON_PDOORBELL_OFFSET[rip]
	sal	rax, 4
	add	rbp, rax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	intel_ntb_peer_db_addr, .-intel_ntb_peer_db_addr
	.comm	XEON_PDOORBELL_OFFSET,8,8
	.comm	X86_BUS_SPACE_IO,8,8
	.comm	NTB_SDOORBELL_LOCKUP,4,4
	.comm	NTB_CONFIG_BAR,8,8
	.comm	B2B_MW_DISABLED,8,8
	.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_ntb_hw_intel.c_intel_ntb_peer_db_addr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"must be non-NULL\000"
	.align	2
.LC1:
	.ascii	"invalid b2b idx\000"
	.align	2
.LC2:
	.ascii	"uh oh\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_ntb_peer_db_addr, %function
intel_ntb_peer_db_addr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r2
	mov	r6, r1
	bl	device_get_softc
	subs	r3, r5, #0
	movne	r3, #1
	mov	r4, r0
	cmp	r6, #0
	movne	r0, r3
	moveq	r0, #0
	ldr	r1, .L6
	bl	KASSERT
	ldr	r3, .L6+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	HAS_FEATURE
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L6+8
	ldr	r7, [r4, #8]
	ldr	r0, [r3]
	ldr	r3, [r4, #12]
	add	r7, r7, r0, lsl #3
	ldr	r8, [r3]
.L3:
	ldr	r3, .L6+12
	ldr	r0, [r7]
	ldr	r3, [r3]
	ldr	r1, .L6+16
	subs	r0, r0, r3
	movne	r0, #1
	bl	KASSERT
	ldr	r2, [r4, #4]
	ldr	r3, [r7, #4]
	ldr	r2, [r2]
	add	r3, r3, r8
	str	r3, [r6]
	mov	r0, #0
	str	r2, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L6+20
	ldr	r0, [r4]
	ldr	r3, [r3]
	ldr	r1, .L6+24
	subs	r0, r0, r3
	movne	r0, #1
	bl	KASSERT
	mov	r0, r4
	ldr	r1, [r4]
	ldr	r7, [r4, #8]
	bl	intel_ntb_mw_to_bar
	ldr	r3, .L6+28
	add	r7, r7, r0, lsl #3
	ldr	r8, [r3]
	b	.L3
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	NTB_SDOORBELL_LOCKUP
	.word	NTB_CONFIG_BAR
	.word	X86_BUS_SPACE_IO
	.word	.LC2
	.word	B2B_MW_DISABLED
	.word	.LC1
	.word	XEON_PDOORBELL_OFFSET
	.size	intel_ntb_peer_db_addr, .-intel_ntb_peer_db_addr
	.comm	XEON_PDOORBELL_OFFSET,4,4
	.comm	X86_BUS_SPACE_IO,4,4
	.comm	NTB_SDOORBELL_LOCKUP,4,4
	.comm	NTB_CONFIG_BAR,4,4
	.comm	B2B_MW_DISABLED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
