	.file	"extr_pcie.c_mwifiex_init_pcie.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"set_dma_mask(32) failed: %d\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"set_consistent_dma_mask(64) failed\n"
	.section	.rodata.str1.1
.LC2:
	.string	"req_reg(0) error\n"
.LC3:
	.string	"iomap(0) error\n"
.LC4:
	.string	"req_reg(2) error\n"
.LC5:
	.string	"iomap(2) error\n"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"PCI memory map Virt0: %pK PCI memory map Virt2: %pK\n"
	.text
	.p2align 4
	.type	mwifiex_init_pcie, @function
mwifiex_init_pcie:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR [rdi]
	mov	rbp, QWORD PTR 16[rbx]
	mov	rsi, rbx
	mov	rdi, rbp
	call	pci_set_drvdata@PLT
	mov	rdi, rbp
	call	pci_enable_device@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L19
.L1:
	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
.L19:
	.cfi_restore_state
	mov	rdi, rbp
	call	pci_set_master@PLT
	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	.L20
	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
	jne	.L21
	mov	edx, DWORD PTR DRV_NAME[rip]
	xor	esi, esi
	mov	rdi, rbp
	call	pci_request_region@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L22
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbp
	call	pci_iomap@PLT
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	je	.L23
	mov	edx, DWORD PTR DRV_NAME[rip]
	mov	esi, 2
	mov	rdi, rbp
	call	pci_request_region@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L24
	xor	edx, edx
	mov	esi, 2
	mov	rdi, rbp
	call	pci_iomap@PLT
	mov	QWORD PTR 8[rbx], rax
	mov	rdx, rax
	test	rax, rax
	je	.L25
	mov	rsi, QWORD PTR [rbx]
	lea	rdi, .LC6[rip]
	call	pr_notice@PLT
	mov	rdi, r13
	call	mwifiex_pcie_alloc_buffers@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, rbp
	call	pci_iounmap@PLT
.L12:
	mov	esi, 2
	mov	rdi, rbp
	call	pci_release_region@PLT
.L10:
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, rbp
	call	pci_iounmap@PLT
.L8:
	xor	esi, esi
	mov	rdi, rbp
	call	pci_release_region@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L22:
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	pr_err@PLT
.L4:
.L13:
	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
.L20:
	.cfi_restore_state
	mov	esi, eax
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	pr_err@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	pr_err@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L24:
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	pr_err@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rdi, .LC3[rip]
	call	pr_err@PLT
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L25:
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	pr_err@PLT
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	mwifiex_init_pcie, .-mwifiex_init_pcie
	.comm	EIO,4,4
	.comm	DRV_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_pcie.c_mwifiex_init_pcie.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"set_dma_mask(32) failed: %d\012\000"
	.align	2
.LC1:
	.ascii	"set_consistent_dma_mask(64) failed\012\000"
	.align	2
.LC2:
	.ascii	"req_reg(0) error\012\000"
	.align	2
.LC3:
	.ascii	"iomap(0) error\012\000"
	.align	2
.LC4:
	.ascii	"req_reg(2) error\012\000"
	.align	2
.LC5:
	.ascii	"iomap(2) error\012\000"
	.align	2
.LC6:
	.ascii	"PCI memory map Virt0: %pK PCI memory map Virt2: %pK"
	.ascii	"\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mwifiex_init_pcie, %function
mwifiex_init_pcie:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [r0]
	mov	r6, r0
	ldr	r5, [r7, #8]
	mov	r1, r7
	mov	r0, r5
	bl	pci_set_drvdata
	mov	r0, r5
	bl	pci_enable_device
	subs	r4, r0, #0
	beq	.L19
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	mov	r0, r5
	bl	pci_set_master
	mov	r0, #32
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r5
	bl	pci_set_dma_mask
	subs	r4, r0, #0
	bne	.L20
	mov	r0, #32
	bl	DMA_BIT_MASK
	mov	r1, r0
	mov	r0, r5
	bl	pci_set_consistent_dma_mask
	subs	r4, r0, #0
	bne	.L21
	ldr	r8, .L26
	mov	r1, r4
	mov	r0, r5
	ldr	r2, [r8]
	bl	pci_request_region
	subs	r4, r0, #0
	bne	.L22
	mov	r2, r4
	mov	r1, r4
	mov	r0, r5
	bl	pci_iomap
	cmp	r0, #0
	str	r0, [r7]
	beq	.L23
	mov	r1, #2
	mov	r0, r5
	ldr	r2, [r8]
	bl	pci_request_region
	subs	r4, r0, #0
	bne	.L24
	mov	r2, r4
	mov	r1, #2
	mov	r0, r5
	bl	pci_iomap
	cmp	r0, #0
	mov	r2, r0
	str	r0, [r7, #4]
	beq	.L25
	ldr	r1, [r7]
	ldr	r0, .L26+4
	bl	pr_notice
	mov	r0, r6
	bl	mwifiex_pcie_alloc_buffers
	subs	r4, r0, #0
	beq	.L1
	mov	r0, r5
	ldr	r1, [r7, #4]
	bl	pci_iounmap
.L12:
	mov	r1, #2
	mov	r0, r5
	bl	pci_release_region
.L10:
	mov	r0, r5
	ldr	r1, [r7]
	bl	pci_iounmap
.L8:
	mov	r1, #0
	mov	r0, r5
	bl	pci_release_region
	b	.L13
.L22:
	ldr	r0, .L26+8
	bl	pr_err
.L4:
.L13:
	mov	r0, r5
	bl	pci_disable_device
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	mov	r1, r4
	ldr	r0, .L26+12
	bl	pr_err
	b	.L13
.L21:
	ldr	r0, .L26+16
	bl	pr_err
	b	.L13
.L24:
	ldr	r0, .L26+20
	bl	pr_err
	b	.L10
.L23:
	ldr	r0, .L26+24
	bl	pr_err
	ldr	r3, .L26+28
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L8
.L25:
	ldr	r0, .L26+32
	bl	pr_err
	ldr	r3, .L26+28
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L12
.L27:
	.align	2
.L26:
	.word	DRV_NAME
	.word	.LC6
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	.LC4
	.word	.LC3
	.word	EIO
	.word	.LC5
	.size	mwifiex_init_pcie, .-mwifiex_init_pcie
	.comm	EIO,4,4
	.comm	DRV_NAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
