	.file	"extr_bnad.c_bnad_pci_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bnad_pci_init, @function
bnad_pci_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	pci_enable_device@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L15
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	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
.L15:
	.cfi_restore_state
	mov	esi, DWORD PTR BNAD_NAME[rip]
	mov	rdi, rbp
	call	pci_request_regions@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L3
	mov	edi, 64
	call	DMA_BIT_MASK@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	dma_set_mask@PLT
	test	eax, eax
	je	.L16
.L4:
	mov	edi, 32
	call	DMA_BIT_MASK@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	dma_set_mask@PLT
	test	eax, eax
	jne	.L17
.L6:
	mov	DWORD PTR [rbx], 0
.L5:
	mov	rdi, rbp
	call	pci_set_master@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	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
.L17:
	.cfi_restore_state
	mov	edi, 32
	call	DMA_BIT_MASK@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	dma_set_coherent_mask@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L6
	mov	rdi, rbp
	mov	r12d, r13d
	call	pci_release_regions@PLT
.L3:
	mov	rdi, rbp
	call	pci_disable_device@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	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
.L16:
	.cfi_restore_state
	mov	edi, 64
	call	DMA_BIT_MASK@PLT
	mov	rdi, rbp
	mov	esi, eax
	call	dma_set_coherent_mask@PLT
	test	eax, eax
	jne	.L4
	mov	DWORD PTR [rbx], 1
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	bnad_pci_init, .-bnad_pci_init
	.comm	BNAD_NAME,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_bnad.c_bnad_pci_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnad_pci_init, %function
bnad_pci_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r0, r1
	mov	r5, r1
	mov	r6, r2
	bl	pci_enable_device
	subs	r4, r0, #0
	beq	.L15
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r3, .L18
	mov	r0, r5
	ldr	r1, [r3]
	bl	pci_request_regions
	subs	r4, r0, #0
	bne	.L3
	mov	r0, #64
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r5
	bl	dma_set_mask
	cmp	r0, #0
	beq	.L16
.L4:
	mov	r0, #32
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r5
	bl	dma_set_mask
	cmp	r0, #0
	bne	.L17
.L6:
	mov	r3, #0
	str	r3, [r6]
.L5:
	mov	r0, r5
	bl	pci_set_master
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L17:
	mov	r0, #32
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r5
	bl	dma_set_coherent_mask
	subs	r3, r0, #0
	beq	.L6
	mov	r0, r5
	mov	r4, r3
	bl	pci_release_regions
.L3:
	mov	r0, r5
	bl	pci_disable_device
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L16:
	mov	r0, #64
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r5
	bl	dma_set_coherent_mask
	cmp	r0, #0
	moveq	r3, #1
	streq	r3, [r6]
	beq	.L5
	b	.L4
.L19:
	.align	2
.L18:
	.word	BNAD_NAME
	.size	bnad_pci_init, .-bnad_pci_init
	.comm	BNAD_NAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
