	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_extract_wifi_fw
_mwifiex_extract_wifi_fw:               ## @mwifiex_extract_wifi_fw
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	cmpl	$9, %edx
	jb	LBB0_4
## %bb.1:
	movslq	-52(%rbp), %rax                 ## 4-byte Folded Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movb	$1, %r12b
	movl	$8, %r14d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	4(%r13,%rbx), %edi
	callq	_le32_to_cpu
	movl	%eax, %r15d
	movl	(%r13,%rbx), %edi
	callq	_le32_to_cpu
	leal	-128(%r15), %ecx
	cmpl	$3, %ecx
	ja	LBB0_19
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r13d
	movl	$1, %eax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	js	LBB0_7
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	addl	%r14d, %r13d
	movl	%r13d, %r14d
	movl	-56(%rbp), %eax                 ## 4-byte Reload
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$-9, %r14d
	jbe	LBB0_16
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	js	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r12b
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	addl	%r14d, %r13d
	movl	%r13d, %r14d
	cmpl	$-9, %r14d
	ja	LBB0_4
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r14d, %rbx
	leaq	8(%rbx), %r14
	xorl	%r12d, %r12d
	cmpq	-64(%rbp), %r14                 ## 8-byte Folded Reload
	jb	LBB0_2
	jmp	LBB0_4
LBB0_19:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	jmp	LBB0_20
LBB0_17:
	testl	%r14d, %r14d
	js	LBB0_7
## %bb.18:
	addl	%r14d, %r13d
	cmpl	-52(%rbp), %r13d                ## 4-byte Folded Reload
	jl	LBB0_21
LBB0_4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_mwifiex_dbg
LBB0_20:
	movl	$-1, %r13d
LBB0_21:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_5
LBB0_9:
	movq	_MSG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	jmp	LBB0_21
LBB0_12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_5
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_15
	.long	L0_0_set_17
	.long	L0_0_set_13
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"extract wifi-only fw failure!\n"

L_.str.1:                               ## @.str.1
	.asciz	"bad FW parse\n"

	.comm	_MSG,4,2                        ## @MSG
L_.str.2:                               ## @.str.2
	.asciz	"input wifi-only firmware\n"

L_.str.3:                               ## @.str.3
	.asciz	"no cmd7 before cmd1!\n"

L_.str.4:                               ## @.str.4
	.asciz	"unknown dnld_cmd %d\n"

	.no_dead_strip	_mwifiex_extract_wifi_fw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_extract_wifi_fw
_mwifiex_extract_wifi_fw:               ; @mwifiex_extract_wifi_fw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	cmp	w2, #9
	b.lo	LBB0_15
; %bb.1:
	mov	x20, x2
	mov	x21, x1
	mov	x8, #0
	mov	w26, #0
	sxtw	x23, w20
	mov	w27, #1
	mov	w24, #8
Lloh0:
	adrp	x25, lJTI0_0@PAGE
Lloh1:
	add	x25, x25, lJTI0_0@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x28, x21, x8
	ldr	w0, [x28, #4]
	bl	_le32_to_cpu
	mov	x22, x0
	ldr	w0, [x28]
	bl	_le32_to_cpu
	sub	w8, w22, #128
	cmp	w8, #3
	b.hi	LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w9, #1
	adr	x10, LBB0_4
	ldrb	w11, [x25, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	tbnz	w24, #31, LBB0_18
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w24, w0, w24
	mov	x9, x26
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmn	w24, #9
	b.ls	LBB0_11
	b	LBB0_15
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	tbnz	w24, #31, LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	tbnz	w27, #0, LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w26, LBB0_20
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	add	w24, w0, w24
	mov	w9, #1
	cmn	w24, #9
	b.hi	LBB0_15
LBB0_11:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w27, #0
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	sxtw	x8, w24
	add	x24, x8, #8
	mov	x26, x9
	cmp	x24, x23
	b.lo	LBB0_2
	b	LBB0_15
LBB0_12:
Lloh2:
	adrp	x8, _ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	str	x22, [sp]
Lloh5:
	adrp	x2, l_.str.4@PAGE
Lloh6:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_13:
	tbnz	w24, #31, LBB0_18
; %bb.14:
	add	w0, w0, w24
	cmp	w0, w20
	b.lt	LBB0_17
LBB0_15:
Lloh7:
	adrp	x8, _ERROR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
LBB0_16:
	mov	x0, x19
	bl	_mwifiex_dbg
	mov	w0, #-1
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_18:
Lloh12:
	adrp	x8, _ERROR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_19:
Lloh17:
	adrp	x8, _MSG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MSG@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str.2@PAGE
Lloh21:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	mov	w0, #0
	b	LBB0_17
LBB0_20:
Lloh22:
	adrp	x8, _ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str.3@PAGE
Lloh26:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
                                        ; -- End function
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"extract wifi-only fw failure!\n"

l_.str.1:                               ; @.str.1
	.asciz	"bad FW parse\n"

	.comm	_MSG,4,2                        ; @MSG
l_.str.2:                               ; @.str.2
	.asciz	"input wifi-only firmware\n"

l_.str.3:                               ; @.str.3
	.asciz	"no cmd7 before cmd1!\n"

l_.str.4:                               ; @.str.4
	.asciz	"unknown dnld_cmd %d\n"

	.no_dead_strip	_mwifiex_extract_wifi_fw
.subsections_via_symbols
