	.file	"extr_ntb_hw_gen1.c_intel_ntb_init_pci.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Cannot DMA highmem\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Cannot DMA consistent highmem\n"
	.text
	.p2align 4
	.type	intel_ntb_init_pci, @function
intel_ntb_init_pci:
.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, rsi
	mov	rsi, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	rdi, rbp
	call	pci_set_drvdata@PLT
	mov	rdi, rbp
	call	pci_enable_device@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L17
.L2:
	xor	esi, esi
	mov	rdi, rbp
	call	pci_set_drvdata@PLT
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	esi, DWORD PTR NTB_NAME[rip]
	mov	rdi, rbp
	call	pci_request_regions@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L3
	mov	rdi, rbp
	call	pci_set_master@PLT
	mov	edi, 64
	call	DMA_BIT_MASK@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	pci_set_dma_mask@PLT
	test	eax, eax
	je	.L4
	mov	edi, 32
	call	DMA_BIT_MASK@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	pci_set_dma_mask@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L10
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	dev_warn@PLT
.L4:
	mov	edi, 64
	call	DMA_BIT_MASK@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	pci_set_consistent_dma_mask@PLT
	test	eax, eax
	je	.L7
	mov	edi, 32
	call	DMA_BIT_MASK@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	pci_set_consistent_dma_mask@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L18
.L5:
.L10:
	mov	rdi, rbp
	call	pci_clear_master@PLT
	mov	rdi, rbp
	call	pci_release_regions@PLT
.L3:
	mov	rdi, rbp
	call	pci_disable_device@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	dev_warn@PLT
.L7:
	mov	rdi, rbp
	call	dma_get_mask@PLT
	lea	rdi, 12[rbx]
	mov	esi, eax
	call	dma_coerce_mask_and_coherent@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L10
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbp
	call	pci_iomap@PLT
	mov	DWORD PTR 4[rbx], eax
	test	eax, eax
	jne	.L8
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L8:
	mov	DWORD PTR 8[rbx], eax
	xor	esi, esi
	mov	rdi, rbp
	call	pci_resource_start@PLT
	mov	DWORD PTR [rbx], eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	intel_ntb_init_pci, .-intel_ntb_init_pci
	.comm	NTB_NAME,4,4
	.comm	EIO,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_ntb_hw_gen1.c_intel_ntb_init_pci.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Cannot DMA highmem\012\000"
	.align	2
.LC1:
	.ascii	"Cannot DMA consistent highmem\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_ntb_init_pci, %function
intel_ntb_init_pci:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r6, r0
	mov	r1, r0
	mov	r0, r5
	bl	pci_set_drvdata
	mov	r0, r5
	bl	pci_enable_device
	subs	r4, r0, #0
	beq	.L16
.L2:
	mov	r0, r5
	mov	r1, #0
	bl	pci_set_drvdata
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L16:
	ldr	r3, .L18
	mov	r0, r5
	ldr	r1, [r3]
	bl	pci_request_regions
	subs	r4, r0, #0
	bne	.L3
	mov	r0, r5
	bl	pci_set_master
	mov	r0, #64
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r5
	bl	pci_set_dma_mask
	cmp	r0, #0
	beq	.L4
	mov	r0, #32
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r5
	bl	pci_set_dma_mask
	subs	r4, r0, #0
	bne	.L10
	mov	r0, r5
	ldr	r1, .L18+4
	bl	dev_warn
.L4:
	mov	r0, #64
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r5
	bl	pci_set_consistent_dma_mask
	cmp	r0, #0
	beq	.L7
	mov	r0, #32
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r5
	bl	pci_set_consistent_dma_mask
	subs	r4, r0, #0
	beq	.L17
.L5:
.L10:
	mov	r0, r5
	bl	pci_clear_master
	mov	r0, r5
	bl	pci_release_regions
.L3:
	mov	r0, r5
	bl	pci_disable_device
	b	.L2
.L17:
	mov	r0, r5
	ldr	r1, .L18+8
	bl	dev_warn
.L7:
	mov	r0, r5
	bl	dma_get_mask
	mov	r1, r0
	add	r0, r6, #12
	bl	dma_coerce_mask_and_coherent
	subs	r4, r0, #0
	bne	.L10
	mov	r2, r4
	mov	r1, r4
	mov	r0, r5
	bl	pci_iomap
	cmp	r0, #0
	str	r0, [r6, #4]
	ldreq	r3, .L18+12
	ldreq	r0, [r3]
	rsbeq	r4, r0, #0
	beq	.L10
.L8:
	str	r0, [r6, #8]
	mov	r1, r4
	mov	r0, r5
	bl	pci_resource_start
	str	r0, [r6]
	b	.L1
.L19:
	.align	2
.L18:
	.word	NTB_NAME
	.word	.LC0
	.word	.LC1
	.word	EIO
	.size	intel_ntb_init_pci, .-intel_ntb_init_pci
	.comm	NTB_NAME,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
