	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_pcie_fw_dump
_mwifiex_pcie_fw_dump:                  ## @mwifiex_pcie_fw_dump
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rax
	cmpl	$0, (%rax)
	je	LBB0_31
## %bb.1:
	movq	8(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, 8(%r15,%rbx)
	incq	%r14
	addq	$32, %rbx
	cmpq	%rax, %r14
	jae	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %r15
	movq	(%r15,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_vfree
	movq	$0, (%r15,%rbx)
	movq	(%r12), %rax
	jmp	LBB0_5
LBB0_6:
	movq	_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_mwifiex_pcie_rdwr_firmware
	movq	_RDWR_STATUS_FAILURE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
LBB0_31:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	leaq	-120(%rbp), %rdx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_mwifiex_read_reg_byte
	movq	-120(%rbp), %rax
	testq	%rax, %rax
	movl	$1, %ecx
	cmovneq	%rax, %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movq	_MWIFIEX_FW_DUMP_MAX_MEMSIZE@GOTPCREL(%rip), %rcx
	movq	_DUMP@GOTPCREL(%rip), %r14
	xorl	%edx, %edx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
                                        ##       Child Loop BB0_21 Depth 3
	movq	8(%r13), %rdx
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_mwifiex_pcie_rdwr_firmware
	movq	_RDWR_STATUS_FAILURE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_31
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r14d
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	%r14d, %esi
	leaq	-72(%rbp), %r12
	movq	%r12, %rdx
	callq	_mwifiex_read_reg_byte
	movq	-72(%rbp), %r15
	leal	1(%r14), %esi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_mwifiex_read_reg_byte
	movq	-72(%rbp), %rbx
	shlq	$8, %rbx
	orq	%r15, %rbx
	leal	2(%r14), %esi
	movq	%r13, %rdi
	movq	%r12, %rdx
	movq	%r12, %r15
	callq	_mwifiex_read_reg_byte
	movq	-72(%rbp), %r12
	shlq	$16, %r12
	addl	$3, %r14d
	movq	%r13, %rdi
	movl	%r14d, %esi
	movq	%r15, %rdx
	callq	_mwifiex_read_reg_byte
	movq	-72(%rbp), %r15
	shlq	$24, %r15
	orq	%r12, %r15
	orq	%rbx, %r15
	movq	_DUMP@GOTPCREL(%rip), %r14
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	testq	%r15, %r15
	jne	LBB0_15
	jmp	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rcx), %r15
	testq	%r15, %r15
	je	LBB0_13
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r14), %esi
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	shlq	$5, %rbx
	leaq	(%rdx,%rbx), %rax
	addq	$24, %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	24(%rdx,%rbx), %ecx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%rdx, %r12
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	leaq	1(%r15), %rdi
	callq	_vmalloc
	movq	%r12, %rcx
	movq	%rax, (%r12,%rbx)
	movq	%r15, 8(%r12,%rbx)
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %r12
	leaq	(%rcx,%rbx), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r14, %rax
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	leaq	(%r12,%r15,8), %r14
	movq	16(%rcx,%rbx), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	(%rax), %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %ecx
	movq	%r13, %rdi
	leaq	L_.str.5(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_18 Depth=2
	movq	_RDWR_STATUS_DONE@GOTPCREL(%rip), %rax
	movl	-92(%rbp), %edx                 ## 4-byte Reload
	cmpl	(%rax), %edx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_27
LBB0_18:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_21 Depth 3
	movq	%r13, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_mwifiex_pcie_rdwr_firmware
	movl	%eax, %ecx
	movq	_RDWR_STATUS_FAILURE@GOTPCREL(%rip), %rax
	movl	%ecx, -92(%rbp)                 ## 4-byte Spill
	cmpl	%ecx, (%rax)
	je	LBB0_31
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r13d
	movl	4(%rax), %r15d
	cmpl	%r15d, %r13d
	jbe	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_21 Depth=3
	addq	$8, %r12
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
LBB0_25:                                ##   in Loop: Header=BB0_21 Depth=3
	incl	%r13d
	cmpl	%r15d, %r13d
	ja	LBB0_26
LBB0_21:                                ##   Parent Loop BB0_8 Depth=1
                                        ##     Parent Loop BB0_18 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%r12, %rdx
	callq	_mwifiex_read_reg_byte
	cmpq	%r14, %r12
	jb	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=3
	movl	%r15d, %r12d
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	leaq	L_.str.6(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	_MWIFIEX_SIZE_4K@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	-112(%rbp), %r15                ## 8-byte Reload
	addq	%r15, %rdi
	callq	_vzalloc
	testq	%rax, %rax
	je	LBB0_31
## %bb.24:                              ##   in Loop: Header=BB0_21 Depth=3
	movq	%rax, %r14
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	(%rbx), %rsi
	movq	%rax, %rdi
	movq	%r15, %rdx
	callq	_memcpy
	movq	(%rbx), %rdi
	callq	_vfree
	movq	%r14, (%rbx)
	leaq	(%r14,%r15,8), %rax
	movq	_MWIFIEX_SIZE_4K@GOTPCREL(%rip), %rcx
	addq	(%rcx), %r15
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	leaq	(%r14,%r15,8), %r14
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%r12d, %r15d
	movq	%rax, %r12
	jmp	LBB0_25
LBB0_27:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_DUMP@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	(%rcx), %ecx
	movq	-104(%rbp), %rax                ## 8-byte Reload
	subq	(%rax), %r12
	sarq	$3, %r12
	movq	%r13, %rdi
	leaq	L_.str.7(%rip), %rdx
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	%rcx, %rax
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	cmpq	-128(%rbp), %rcx                ## 8-byte Folded Reload
	movq	_MWIFIEX_FW_DUMP_MAX_MEMSIZE@GOTPCREL(%rip), %rcx
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-120(%rbp), %rax
	jmp	LBB0_8
LBB0_13:
	movq	_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	movq	%r13, %rdi
	callq	_mwifiex_write_reg
	testl	%eax, %eax
	je	LBB0_29
## %bb.14:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_30
LBB0_16:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	leaq	L_.str.4(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	jmp	LBB0_31
LBB0_29:
	movq	_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdx
LBB0_30:
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG,4,2                        ## @MSG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"== mwifiex firmware dump start ==\n"

	.comm	_RDWR_STATUS_FAILURE,4,2        ## @RDWR_STATUS_FAILURE
	.comm	_MWIFIEX_FW_DUMP_MAX_MEMSIZE,8,3 ## @MWIFIEX_FW_DUMP_MAX_MEMSIZE
L_.str.1:                               ## @.str.1
	.asciz	"Firmware dump Finished!\n"

	.comm	_ERROR,4,2                      ## @ERROR
L_.str.2:                               ## @.str.2
	.asciz	"PCIE write err\n"

	.comm	_DUMP,4,2                       ## @DUMP
L_.str.3:                               ## @.str.3
	.asciz	"%s_SIZE=0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"Vmalloc %s failed\n"

L_.str.5:                               ## @.str.5
	.asciz	"Start %s output, please wait...\n"

L_.str.6:                               ## @.str.6
	.asciz	"pre-allocated buf not enough\n"

	.comm	_MWIFIEX_SIZE_4K,8,3            ## @MWIFIEX_SIZE_4K
	.comm	_RDWR_STATUS_DONE,4,2           ## @RDWR_STATUS_DONE
L_.str.7:                               ## @.str.7
	.asciz	"%s done: size=0x%tx\n"

L_.str.8:                               ## @.str.8
	.asciz	"== mwifiex firmware dump end ==\n"

	.no_dead_strip	_mwifiex_pcie_fw_dump
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_pcie_fw_dump
_mwifiex_pcie_fw_dump:                  ; @mwifiex_pcie_fw_dump
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0, #16]
	ldr	w9, [x8]
	cbz	w9, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x8, [x8, #8]
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x20, #0
	mov	x21, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x22, x20
	str	xzr, [x9, #8]
	add	x21, x21, #1
	add	x20, x20, #32
	cmp	x21, x8
	b.hs	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x19, #8]
	ldr	x0, [x22, x20]
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_vfree
	str	xzr, [x22, x20]
	ldr	x8, [x19]
	b	LBB0_3
LBB0_6:
Lloh0:
	adrp	x8, _MSG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	mov	x0, x19
	mov	x1, #0
	bl	_mwifiex_pcie_rdwr_firmware
Lloh5:
	adrp	x8, _RDWR_STATUS_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RDWR_STATUS_FAILURE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_8:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w1, [x8]
	add	x2, sp, #56
	mov	x0, x19
	bl	_mwifiex_read_reg_byte
	stp	xzr, xzr, [sp, #24]             ; 16-byte Folded Spill
	ldr	x8, [sp, #56]
	cmp	x8, #0
	csinc	x9, x8, xzr, ne
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
Lloh8:
	adrp	x9, _MWIFIEX_FW_DUMP_MAX_MEMSIZE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MWIFIEX_FW_DUMP_MAX_MEMSIZE@GOTPAGEOFF]
Lloh10:
	adrp	x23, _DUMP@GOTPAGE
Lloh11:
	ldr	x23, [x23, _DUMP@GOTPAGEOFF]
Lloh12:
	adrp	x21, _MWIFIEX_SIZE_4K@GOTPAGE
Lloh13:
	ldr	x21, [x21, _MWIFIEX_SIZE_4K@GOTPAGEOFF]
	ldr	x20, [x19, #8]
	cbz	x8, LBB0_11
LBB0_9:
	mov	x24, x23
	mov	x0, x19
	ldr	x1, [sp, #32]                   ; 8-byte Folded Reload
	bl	_mwifiex_pcie_rdwr_firmware
Lloh14:
	adrp	x8, _RDWR_STATUS_FAILURE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RDWR_STATUS_FAILURE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.10:
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w22, [x8]
	add	x2, sp, #48
	mov	x0, x19
	mov	x1, x22
	bl	_mwifiex_read_reg_byte
	ldr	x23, [sp, #48]
	add	w1, w22, #1
	add	x2, sp, #48
	mov	x0, x19
	bl	_mwifiex_read_reg_byte
	ldr	x8, [sp, #48]
	orr	x23, x23, x8, lsl #8
	add	w1, w22, #2
	add	x2, sp, #48
	mov	x0, x19
	bl	_mwifiex_read_reg_byte
	ldr	x8, [sp, #48]
	orr	x23, x23, x8, lsl #16
	add	w1, w22, #3
	add	x2, sp, #48
	mov	x0, x19
	bl	_mwifiex_read_reg_byte
	ldr	x8, [sp, #48]
	orr	x25, x23, x8, lsl #24
	mov	x23, x24
	cbnz	x25, LBB0_12
	b	LBB0_23
LBB0_11:
	ldr	x25, [x9]
	cbz	x25, LBB0_23
LBB0_12:
	ldr	w1, [x23]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	add	x24, x20, x8, lsl #5
	mov	x20, x24
	ldr	w8, [x20, #24]!
	stp	x8, x25, [sp]
	mov	x0, x19
Lloh17:
	adrp	x2, l_.str.3@PAGE
Lloh18:
	add	x2, x2, l_.str.3@PAGEOFF
	bl	_mwifiex_dbg
	add	x0, x25, #1
	bl	_vmalloc
	stp	x0, x25, [x24]
	cbz	x0, LBB0_25
; %bb.13:
	mov	x26, x0
	add	x22, x0, x25, lsl #3
	ldr	x8, [x24, #16]
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	ldr	w1, [x23]
	ldr	w8, [x20]
	str	x8, [sp]
	mov	x0, x19
Lloh19:
	adrp	x2, l_.str.5@PAGE
Lloh20:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_mwifiex_dbg
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
Lloh21:
	adrp	x8, _RDWR_STATUS_DONE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RDWR_STATUS_DONE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w27, w8
	b.eq	LBB0_21
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	mov	x0, x19
	ldr	x1, [sp, #32]                   ; 8-byte Folded Reload
	bl	_mwifiex_pcie_rdwr_firmware
Lloh24:
	adrp	x8, _RDWR_STATUS_FAILURE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RDWR_STATUS_FAILURE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	cmp	w8, w0
	b.eq	LBB0_7
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x27, x0
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldp	w28, w23, [x8]
	cmp	w28, w23
	b.ls	LBB0_18
	b	LBB0_14
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=2
	add	x26, x26, #8
	add	w28, w28, #1
	cmp	w28, w23
	b.hi	LBB0_14
LBB0_18:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	mov	x1, x28
	mov	x2, x26
	bl	_mwifiex_read_reg_byte
	cmp	x26, x22
	b.lo	LBB0_17
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
Lloh27:
	adrp	x8, _ERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
Lloh30:
	adrp	x2, l_.str.6@PAGE
Lloh31:
	add	x2, x2, l_.str.6@PAGEOFF
	bl	_mwifiex_dbg
	ldr	x8, [x21]
	add	x0, x8, x25
	bl	_vzalloc
	cbz	x0, LBB0_7
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=2
	mov	x22, x0
	ldr	x1, [x24]
	mov	x2, x25
	bl	_memcpy
	ldr	x0, [x24]
	bl	_vfree
	str	x22, [x24]
	add	x26, x22, x25, lsl #3
	ldr	x8, [x21]
	add	x25, x8, x25
	add	x22, x22, x25, lsl #3
	add	w28, w28, #1
	cmp	w28, w23
	b.ls	LBB0_18
	b	LBB0_14
LBB0_21:
Lloh32:
	adrp	x23, _DUMP@GOTPAGE
Lloh33:
	ldr	x23, [x23, _DUMP@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	x8, [x24]
	sub	x8, x26, x8
	asr	x8, x8, #3
	ldr	w9, [x20]
	stp	x9, x8, [sp]
	mov	x0, x19
Lloh34:
	adrp	x2, l_.str.7@PAGE
Lloh35:
	add	x2, x2, l_.str.7@PAGEOFF
	bl	_mwifiex_dbg
	ldp	x9, x8, [sp, #16]               ; 16-byte Folded Reload
	add	x8, x8, #1
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	cmp	x8, x9
Lloh36:
	adrp	x9, _MWIFIEX_FW_DUMP_MAX_MEMSIZE@GOTPAGE
Lloh37:
	ldr	x9, [x9, _MWIFIEX_FW_DUMP_MAX_MEMSIZE@GOTPAGEOFF]
	b.eq	LBB0_26
; %bb.22:
	ldr	x8, [sp, #56]
	ldr	x20, [x19, #8]
	cbnz	x8, LBB0_9
	b	LBB0_11
LBB0_23:
Lloh38:
	adrp	x8, _MSG@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MSG@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x2, l_.str.1@PAGE
Lloh42:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldp	w2, w1, [x8, #8]
	mov	x0, x19
	bl	_mwifiex_write_reg
	cbz	w0, LBB0_26
; %bb.24:
Lloh43:
	adrp	x8, _ERROR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
Lloh46:
	adrp	x2, l_.str.2@PAGE
Lloh47:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_27
LBB0_25:
Lloh48:
	adrp	x8, _ERROR@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	ldr	w8, [x20]
	str	x8, [sp]
Lloh51:
	adrp	x2, l_.str.4@PAGE
Lloh52:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_27
LBB0_26:
Lloh53:
	adrp	x8, _MSG@GOTPAGE
Lloh54:
	ldr	x8, [x8, _MSG@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
Lloh56:
	adrp	x2, l_.str.8@PAGE
Lloh57:
	add	x2, x2, l_.str.8@PAGEOFF
LBB0_27:
	mov	x0, x19
	bl	_mwifiex_dbg
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG,4,2                        ; @MSG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"== mwifiex firmware dump start ==\n"

	.comm	_RDWR_STATUS_FAILURE,4,2        ; @RDWR_STATUS_FAILURE
	.comm	_MWIFIEX_FW_DUMP_MAX_MEMSIZE,8,3 ; @MWIFIEX_FW_DUMP_MAX_MEMSIZE
l_.str.1:                               ; @.str.1
	.asciz	"Firmware dump Finished!\n"

	.comm	_ERROR,4,2                      ; @ERROR
l_.str.2:                               ; @.str.2
	.asciz	"PCIE write err\n"

	.comm	_DUMP,4,2                       ; @DUMP
l_.str.3:                               ; @.str.3
	.asciz	"%s_SIZE=0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"Vmalloc %s failed\n"

l_.str.5:                               ; @.str.5
	.asciz	"Start %s output, please wait...\n"

l_.str.6:                               ; @.str.6
	.asciz	"pre-allocated buf not enough\n"

	.comm	_MWIFIEX_SIZE_4K,8,3            ; @MWIFIEX_SIZE_4K
	.comm	_RDWR_STATUS_DONE,4,2           ; @RDWR_STATUS_DONE
l_.str.7:                               ; @.str.7
	.asciz	"%s done: size=0x%tx\n"

l_.str.8:                               ; @.str.8
	.asciz	"== mwifiex firmware dump end ==\n"

	.no_dead_strip	_mwifiex_pcie_fw_dump
.subsections_via_symbols
