	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_init_pcie
_mwifiex_init_pcie:                     ## @mwifiex_init_pcie
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	(%rdi), %r14
	movq	16(%r14), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pci_set_drvdata
	movq	%r15, %rdi
	callq	_pci_enable_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.1:
	movq	%r15, %rdi
	callq	_pci_set_master
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pci_set_dma_mask
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_19
LBB0_3:
	movl	$32, %edi
	callq	_DMA_BIT_MASK
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_pci_set_consistent_dma_mask
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_6:
	movq	_DRV_NAME@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_request_region
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
LBB0_5:
	xorl	%eax, %eax
	callq	_pr_err
LBB0_19:
	movq	%r15, %rdi
	callq	_pci_disable_device
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_pci_iomap
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_pci_request_region
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_17
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_18
LBB0_12:
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	$2, %esi
	xorl	%edx, %edx
	callq	_pci_iomap
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	(%r14), %rsi
	leaq	L_.str.6(%rip), %rdi
	movq	%rax, %rdx
	callq	_pr_notice
	movq	%r12, %rdi
	callq	_mwifiex_pcie_alloc_buffers
	testl	%eax, %eax
	je	LBB0_20
## %bb.15:
	movl	%eax, %r12d
	movq	8(%r14), %rsi
	movq	%r15, %rdi
	callq	_pci_iounmap
	movl	%r12d, %ebx
	jmp	LBB0_16
LBB0_13:
	leaq	L_.str.5(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_pr_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_16:
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_pci_release_region
LBB0_17:
	movq	(%r14), %rsi
	movq	%r15, %rdi
	callq	_pci_iounmap
LBB0_18:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pci_release_region
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set_dma_mask(32) failed: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"set_consistent_dma_mask(64) failed\n"

	.comm	_DRV_NAME,4,2                   ## @DRV_NAME
L_.str.2:                               ## @.str.2
	.asciz	"req_reg(0) error\n"

L_.str.3:                               ## @.str.3
	.asciz	"iomap(0) error\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.4:                               ## @.str.4
	.asciz	"req_reg(2) error\n"

L_.str.5:                               ## @.str.5
	.asciz	"iomap(2) error\n"

L_.str.6:                               ## @.str.6
	.asciz	"PCI memory map Virt0: %pK PCI memory map Virt2: %pK\n"

	.no_dead_strip	_mwifiex_init_pcie
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_init_pcie
_mwifiex_init_pcie:                     ; @mwifiex_init_pcie
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x0
	ldr	x20, [x0]
	ldr	x19, [x20, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_pci_set_drvdata
	mov	x0, x19
	bl	_pci_enable_device
	mov	x22, x0
	cbnz	w0, LBB0_19
; %bb.1:
	mov	x0, x19
	bl	_pci_set_master
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_dma_mask
	cbz	w0, LBB0_3
; %bb.2:
	mov	x22, x0
	str	x22, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_18
LBB0_3:
	mov	w0, #32
	bl	_DMA_BIT_MASK
	mov	x1, x0
	mov	x0, x19
	bl	_pci_set_consistent_dma_mask
	cbz	w0, LBB0_5
; %bb.4:
	mov	x22, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	b	LBB0_18
LBB0_5:
Lloh4:
	adrp	x23, _DRV_NAME@GOTPAGE
Lloh5:
	ldr	x23, [x23, _DRV_NAME@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #0
	bl	_pci_request_region
	cbz	w0, LBB0_7
; %bb.6:
	mov	x22, x0
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_err
	b	LBB0_18
LBB0_7:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_pci_iomap
	str	x0, [x20]
	cbz	x0, LBB0_10
; %bb.8:
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #2
	bl	_pci_request_region
	cbz	w0, LBB0_11
; %bb.9:
	mov	x22, x0
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_pr_err
	b	LBB0_16
LBB0_10:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_17
LBB0_11:
	mov	x0, x19
	mov	w1, #2
	mov	w2, #0
	bl	_pci_iomap
	str	x0, [x20, #8]
	cbz	x0, LBB0_14
; %bb.12:
	mov	x2, x0
	ldr	x1, [x20]
Lloh15:
	adrp	x0, l_.str.6@PAGE
Lloh16:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pr_notice
	mov	x0, x21
	bl	_mwifiex_pcie_alloc_buffers
	mov	x22, x0
	cbz	w0, LBB0_19
; %bb.13:
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_pci_iounmap
	b	LBB0_15
LBB0_14:
Lloh17:
	adrp	x0, l_.str.5@PAGE
Lloh18:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_pr_err
Lloh19:
	adrp	x8, _EIO@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_15:
	mov	x0, x19
	mov	w1, #2
	bl	_pci_release_region
LBB0_16:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_pci_iounmap
LBB0_17:
	mov	x0, x19
	mov	w1, #0
	bl	_pci_release_region
LBB0_18:
	mov	x0, x19
	bl	_pci_disable_device
LBB0_19:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set_dma_mask(32) failed: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"set_consistent_dma_mask(64) failed\n"

	.comm	_DRV_NAME,4,2                   ; @DRV_NAME
l_.str.2:                               ; @.str.2
	.asciz	"req_reg(0) error\n"

l_.str.3:                               ; @.str.3
	.asciz	"iomap(0) error\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.4:                               ; @.str.4
	.asciz	"req_reg(2) error\n"

l_.str.5:                               ; @.str.5
	.asciz	"iomap(2) error\n"

l_.str.6:                               ; @.str.6
	.asciz	"PCI memory map Virt0: %pK PCI memory map Virt2: %pK\n"

	.no_dead_strip	_mwifiex_init_pcie
.subsections_via_symbols
