	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_sdio_fw_dump
_mwifiex_sdio_fw_dump:                  ## @mwifiex_sdio_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), %rax
	movl	$0, -44(%rbp)
	cmpl	$0, 16(%rax)
	je	LBB0_37
## %bb.1:
	movq	%rdi, %r13
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_mem_type_mapping_tbl@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	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(%r12,%rbx)
	incq	%r14
	callq	_ARRAY_SIZE
	addq	$32, %rbx
	cmpq	%rax, %r14
	jae	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %r12
	movq	(%r12,%rbx), %rax
	movq	%r12, %rdi
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rdi
	callq	_vfree
	movq	$0, (%r12,%rbx)
	movq	(%r15), %rdi
	jmp	LBB0_5
LBB0_6:
	movq	%r13, %rdi
	callq	_mwifiex_pm_wakeup_card
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_sdio_claim_host
	movq	_MSG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_mwifiex_sdio_rdwr_firmware
	movq	_RDWR_STATUS_FAILURE@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	je	LBB0_36
## %bb.7:
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edi
	leaq	-44(%rbp), %rdx
	callq	_sdio_readb
	cmpl	$0, -44(%rbp)
	je	LBB0_8
## %bb.38:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_35:
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
LBB0_36:
	movl	(%rbx), %edi
	callq	_sdio_release_host
LBB0_37:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	testq	%rax, %rax
	je	LBB0_34
## %bb.9:
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -120(%rbp)                ## 8-byte Spill
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
                                        ##       Child Loop BB0_25 Depth 3
	movq	(%r15), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_mwifiex_sdio_rdwr_firmware
	cmpl	(%r12), %eax
	je	LBB0_36
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%rbx), %rax
	movq	%rbx, %rcx
	movl	(%rax), %ebx
	movl	(%rcx), %edi
	movl	%ebx, %esi
	leaq	-44(%rbp), %r13
	movq	%r13, %rdx
	callq	_sdio_readb
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	cmpl	$0, -44(%rbp)
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	leal	1(%rbx), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r13, %rdx
	callq	_sdio_readb
	cmpl	$0, -44(%rbp)
	jne	LBB0_12
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %r12
	leal	2(%rbx), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r13, %rdx
	callq	_sdio_readb
	cmpl	$0, -44(%rbp)
	jne	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %r14
	addl	$3, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	%ebx, %esi
	movq	%r13, %rdx
	callq	_sdio_readb
	cmpl	$0, -44(%rbp)
	jne	LBB0_12
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %r13
	shlq	$16, %r14
	shlq	$8, %r12
	orq	-88(%rbp), %r12                 ## 8-byte Folded Reload
	orq	%r14, %r12
	shlq	$24, %r13
	orq	%r12, %r13
	movq	_DUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	je	LBB0_17
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	shlq	$5, %rbx
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	leaq	(%r14,%rbx), %r12
	addq	$24, %r12
	movl	24(%r14,%rbx), %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.5(%rip), %rdx
	movq	%r13, %r8
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	leal	1(%r13), %edi
	callq	_vmalloc
	movq	%r14, %rcx
	movq	%rax, (%r14,%rbx)
	movq	%r13, 8(%r14,%rbx)
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rax, %r14
	leaq	(%rcx,%rbx), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	(%r14,%r13,8), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	16(%rcx,%rbx), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	_DUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movl	(%r12), %ecx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	leaq	L_.str.7(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	jmp	LBB0_22
LBB0_32:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	_RDWR_STATUS_DONE@GOTPCREL(%rip), %rax
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	cmpl	(%rax), %ecx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_33
LBB0_22:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_25 Depth 3
	movq	%r13, %rdi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_mwifiex_sdio_rdwr_firmware
	movl	%eax, %ecx
	movq	_RDWR_STATUS_FAILURE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_36
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	8(%rbx), %rax
	movl	(%rax), %r12d
	movl	4(%rax), %r13d
	cmpl	%r13d, %r12d
	movl	%ecx, -80(%rbp)                 ## 4-byte Spill
	ja	LBB0_32
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	_ERROR@GOTPCREL(%rip), %rbx
	leaq	-44(%rbp), %rdx
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_25 Depth=3
	movl	(%rbx), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.8(%rip), %rdx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
LBB0_31:                                ##   in Loop: Header=BB0_25 Depth=3
	leaq	-44(%rbp), %rdx
	incl	%r12d
	cmpl	%r13d, %r12d
	ja	LBB0_32
LBB0_25:                                ##   Parent Loop BB0_10 Depth=1
                                        ##     Parent Loop BB0_22 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_sdio_readb
	movq	%rax, (%r14)
	cmpl	$0, -44(%rbp)
	jne	LBB0_26
## %bb.28:                              ##   in Loop: Header=BB0_25 Depth=3
	cmpq	-88(%rbp), %r14                 ## 8-byte Folded Reload
	jae	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_25 Depth=3
	addq	$8, %r14
	jmp	LBB0_31
LBB0_33:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_DUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %ecx
	movq	-104(%rbp), %rax                ## 8-byte Reload
	subq	(%rax), %r14
	sarq	$3, %r14
	movq	%r13, %rdi
	leaq	L_.str.9(%rip), %rdx
	movq	%r14, %r8
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	%rdx, %rcx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rdx
	movq	_MSG@GOTPCREL(%rip), %r14
	movq	_RDWR_STATUS_FAILURE@GOTPCREL(%rip), %r12
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	jne	LBB0_10
	jmp	LBB0_34
LBB0_26:
	movl	(%rbx), %esi
LBB0_27:
	leaq	L_.str.2(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_36
LBB0_12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_27
LBB0_17:
	leaq	L_.str.3(%rip), %rdx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movl	8(%rax), %esi
	movq	_FW_DUMP_READ_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_mwifiex_write_reg
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	movq	_MSG@GOTPCREL(%rip), %r14
	je	LBB0_34
## %bb.18:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	jmp	LBB0_37
LBB0_34:
	movl	(%r14), %esi
	leaq	L_.str.10(%rip), %rdx
	jmp	LBB0_35
LBB0_20:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %ecx
	leaq	L_.str.6(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.comm	_mem_type_mapping_tbl,8,3       ## @mem_type_mapping_tbl
	.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	_ERROR,4,2                      ## @ERROR
L_.str.1:                               ## @.str.1
	.asciz	"SDIO read memory length err\n"

L_.str.2:                               ## @.str.2
	.asciz	"SDIO read err\n"

	.comm	_DUMP,4,2                       ## @DUMP
L_.str.3:                               ## @.str.3
	.asciz	"Firmware dump Finished!\n"

	.comm	_FW_DUMP_READ_DONE,4,2          ## @FW_DUMP_READ_DONE
L_.str.4:                               ## @.str.4
	.asciz	"SDIO write err\n"

L_.str.5:                               ## @.str.5
	.asciz	"%s_SIZE=0x%x\n"

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

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

L_.str.8:                               ## @.str.8
	.asciz	"Allocated buf not enough\n"

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

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

	.no_dead_strip	_mwifiex_sdio_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_sdio_fw_dump
_mwifiex_sdio_fw_dump:                  ; @mwifiex_sdio_fw_dump
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x23, [x0]
	str	wzr, [sp, #44]
	ldr	w8, [x23, #16]
	cbz	w8, LBB0_34
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x22, _mem_type_mapping_tbl@GOTPAGE
Lloh1:
	ldr	x22, [x22, _mem_type_mapping_tbl@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cbz	x0, LBB0_7
; %bb.2:
	mov	x20, #0
	mov	x21, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_vfree
	str	xzr, [x24, x20]
	ldr	x0, [x22]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x24, x20
	str	xzr, [x8, #8]
	add	x21, x21, #1
	bl	_ARRAY_SIZE
	add	x20, x20, #32
	cmp	x21, x0
	b.hs	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x22]
	ldr	x0, [x24, x20]
	cbnz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	b	LBB0_4
LBB0_7:
	mov	x0, x19
	bl	_mwifiex_pm_wakeup_card
	ldr	w0, [x23]
	bl	_sdio_claim_host
Lloh2:
	adrp	x20, _MSG@GOTPAGE
Lloh3:
	ldr	x20, [x20, _MSG@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh4:
	adrp	x2, l_.str@PAGE
Lloh5:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	mov	x0, x19
	mov	x1, #0
	bl	_mwifiex_sdio_rdwr_firmware
Lloh6:
	adrp	x28, _RDWR_STATUS_FAILURE@GOTPAGE
Lloh7:
	ldr	x28, [x28, _RDWR_STATUS_FAILURE@GOTPAGEOFF]
	ldr	w8, [x28]
	cmp	w0, w8
	b.eq	LBB0_33
; %bb.8:
	ldr	x8, [x23, #8]
	ldr	w1, [x8]
	ldr	w0, [x23]
	add	x2, sp, #44
	bl	_sdio_readb
	ldr	w8, [sp, #44]
	cbz	w8, LBB0_10
; %bb.9:
Lloh8:
	adrp	x8, _ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_32
LBB0_10:
	cbz	x0, LBB0_31
; %bb.11:
	mov	x27, #0
	stp	x0, xzr, [sp, #24]              ; 16-byte Folded Spill
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
                                        ;       Child Loop BB0_24 Depth 3
	ldr	x21, [x22]
	mov	x0, x19
	mov	x1, x27
	bl	_mwifiex_sdio_rdwr_firmware
	ldr	w8, [x28]
	cmp	w0, w8
	b.eq	LBB0_33
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x23, #8]
	ldr	w26, [x8]
	ldr	w0, [x23]
	add	x2, sp, #44
	mov	x1, x26
	bl	_sdio_readb
	ldr	w8, [sp, #44]
	cbnz	w8, LBB0_28
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x25, x0
	add	w1, w26, #1
	ldr	w0, [x23]
	add	x2, sp, #44
	bl	_sdio_readb
	ldr	w8, [sp, #44]
	cbnz	w8, LBB0_28
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x27, x0
	add	w1, w26, #2
	ldr	w0, [x23]
	add	x2, sp, #44
	bl	_sdio_readb
	ldr	w8, [sp, #44]
	cbnz	w8, LBB0_28
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x28, x0
	add	w1, w26, #3
	ldr	w0, [x23]
	add	x2, sp, #44
	bl	_sdio_readb
	ldr	w8, [sp, #44]
	cbnz	w8, LBB0_28
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	orr	x8, x25, x27, lsl #8
	orr	x8, x8, x28, lsl #16
	orr	x20, x8, x0, lsl #24
Lloh13:
	adrp	x8, _DUMP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DUMP@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	cbz	x20, LBB0_29
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x21, x21, x8, lsl #5
	mov	x24, x21
	ldr	w8, [x24, #24]!
	stp	x8, x20, [sp]
	mov	x0, x19
Lloh16:
	adrp	x2, l_.str.5@PAGE
Lloh17:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_mwifiex_dbg
	add	w0, w20, #1
	bl	_vmalloc
	stp	x0, x20, [x21]
Lloh18:
	adrp	x28, _RDWR_STATUS_FAILURE@GOTPAGE
Lloh19:
	ldr	x28, [x28, _RDWR_STATUS_FAILURE@GOTPAGEOFF]
	cbz	x0, LBB0_35
; %bb.19:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x26, x0
	add	x25, x0, x20, lsl #3
	str	x21, [sp, #16]                  ; 8-byte Folded Spill
	ldr	x27, [x21, #16]
Lloh20:
	adrp	x8, _DUMP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DUMP@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w8, [x24]
	str	x8, [sp]
	mov	x0, x19
Lloh23:
	adrp	x2, l_.str.7@PAGE
Lloh24:
	add	x2, x2, l_.str.7@PAGEOFF
	bl	_mwifiex_dbg
	b	LBB0_21
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=2
Lloh25:
	adrp	x8, _RDWR_STATUS_DONE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _RDWR_STATUS_DONE@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w27, w8
Lloh28:
	adrp	x28, _RDWR_STATUS_FAILURE@GOTPAGE
Lloh29:
	ldr	x28, [x28, _RDWR_STATUS_FAILURE@GOTPAGEOFF]
	mov	x27, x21
	b.eq	LBB0_27
LBB0_21:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_24 Depth 3
	mov	x0, x19
	mov	x21, x27
	mov	x1, x27
	bl	_mwifiex_sdio_rdwr_firmware
	ldr	w8, [x28]
	cmp	w0, w8
	b.eq	LBB0_33
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	mov	x27, x0
	ldr	x8, [x23, #8]
	ldp	w28, w20, [x8]
	cmp	w28, w20
	b.ls	LBB0_24
	b	LBB0_20
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=3
	add	x26, x26, #8
	add	w28, w28, #1
	cmp	w28, w20
	b.hi	LBB0_20
LBB0_24:                                ;   Parent Loop BB0_12 Depth=1
                                        ;     Parent Loop BB0_21 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w0, [x23]
	add	x2, sp, #44
	mov	x1, x28
	bl	_sdio_readb
	str	x0, [x26]
	ldr	w8, [sp, #44]
	cbnz	w8, LBB0_28
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=3
	cmp	x26, x25
	b.lo	LBB0_23
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=3
Lloh30:
	adrp	x8, _ERROR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	x0, x19
Lloh33:
	adrp	x2, l_.str.8@PAGE
Lloh34:
	add	x2, x2, l_.str.8@PAGEOFF
	bl	_mwifiex_dbg
	add	w28, w28, #1
	cmp	w28, w20
	b.ls	LBB0_24
	b	LBB0_20
LBB0_27:                                ;   in Loop: Header=BB0_12 Depth=1
Lloh35:
	adrp	x8, _DUMP@GOTPAGE
Lloh36:
	ldr	x8, [x8, _DUMP@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	sub	x8, x26, x8
	asr	x8, x8, #3
	ldr	w9, [x24]
	stp	x9, x8, [sp]
	mov	x0, x19
Lloh38:
	adrp	x2, l_.str.9@PAGE
Lloh39:
	add	x2, x2, l_.str.9@PAGEOFF
	bl	_mwifiex_dbg
	ldp	x0, x8, [sp, #24]               ; 16-byte Folded Reload
	add	x8, x8, #1
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	cmp	x8, x0
Lloh40:
	adrp	x20, _MSG@GOTPAGE
Lloh41:
	ldr	x20, [x20, _MSG@GOTPAGEOFF]
	b.ne	LBB0_12
	b	LBB0_31
LBB0_28:
Lloh42:
	adrp	x8, _ERROR@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
Lloh45:
	adrp	x2, l_.str.2@PAGE
Lloh46:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_32
LBB0_29:
Lloh47:
	adrp	x2, l_.str.3@PAGE
Lloh48:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	ldr	x8, [x23, #8]
	ldr	w1, [x8, #8]
Lloh49:
	adrp	x8, _FW_DUMP_READ_DONE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _FW_DUMP_READ_DONE@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mwifiex_write_reg
	str	w0, [sp, #44]
Lloh52:
	adrp	x20, _MSG@GOTPAGE
Lloh53:
	ldr	x20, [x20, _MSG@GOTPAGEOFF]
	cbz	w0, LBB0_31
; %bb.30:
Lloh54:
	adrp	x8, _ERROR@GOTPAGE
Lloh55:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
Lloh57:
	adrp	x2, l_.str.4@PAGE
Lloh58:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	b	LBB0_34
LBB0_31:
	ldr	w1, [x20]
Lloh59:
	adrp	x2, l_.str.10@PAGE
Lloh60:
	add	x2, x2, l_.str.10@PAGEOFF
LBB0_32:
	mov	x0, x19
	bl	_mwifiex_dbg
LBB0_33:
	ldr	w0, [x23]
	bl	_sdio_release_host
LBB0_34:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_35:
Lloh61:
	adrp	x8, _ERROR@GOTPAGE
Lloh62:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh63:
	ldr	w1, [x8]
	ldr	w8, [x24]
	str	x8, [sp]
Lloh64:
	adrp	x2, l_.str.6@PAGE
Lloh65:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_32
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.cfi_endproc
                                        ; -- End function
	.comm	_mem_type_mapping_tbl,8,3       ; @mem_type_mapping_tbl
	.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	_ERROR,4,2                      ; @ERROR
l_.str.1:                               ; @.str.1
	.asciz	"SDIO read memory length err\n"

l_.str.2:                               ; @.str.2
	.asciz	"SDIO read err\n"

	.comm	_DUMP,4,2                       ; @DUMP
l_.str.3:                               ; @.str.3
	.asciz	"Firmware dump Finished!\n"

	.comm	_FW_DUMP_READ_DONE,4,2          ; @FW_DUMP_READ_DONE
l_.str.4:                               ; @.str.4
	.asciz	"SDIO write err\n"

l_.str.5:                               ; @.str.5
	.asciz	"%s_SIZE=0x%x\n"

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

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

l_.str.8:                               ; @.str.8
	.asciz	"Allocated buf not enough\n"

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

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

	.no_dead_strip	_mwifiex_sdio_fw_dump
.subsections_via_symbols
