	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_init_fw                ## -- Begin function mwifiex_init_fw
	.p2align	4, 0x90
_mwifiex_init_fw:                       ## @mwifiex_init_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	_MWIFIEX_HW_STATUS_INITIALIZING@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rdi)
	callq	_mwifiex_allocate_adapter
	testl	%eax, %eax
	je	LBB0_2
LBB0_1:
	movl	$-1, %r14d
LBB0_24:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r13, %rdi
	callq	_mwifiex_init_adapter
	movq	(%r13), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	%rax, %rbx
	jae	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	callq	_mwifiex_init_priv
	testl	%eax, %eax
	jne	LBB0_1
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rax
	jmp	LBB0_4
LBB0_8:
	cmpq	$0, 32(%r13)
	jne	LBB0_16
## %bb.9:
	testq	%rax, %rax
	je	LBB0_19
## %bb.10:
	xorl	%r15d, %r15d
	movl	$1, %esi
	xorl	%r14d, %r14d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%r15
	cmpq	%rax, %r15
	jae	LBB0_20
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rcx
	movq	(%rcx,%r15,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	$1, %edx
	callq	_mwifiex_sta_init_cmd
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%eax, %r14d
	movq	(%r13), %rax
	xorl	%esi, %esi
	jmp	LBB0_11
LBB0_15:
	cmpq	$0, 32(%r13)
	je	LBB0_19
LBB0_16:
	movq	_MWIFIEX_HW_STATUS_READY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_20
LBB0_19:
	xorl	%r14d, %r14d
LBB0_20:
	leaq	16(%r13), %r15
	movq	%r15, %rdi
	callq	_spin_lock_bh
	leaq	20(%r13), %rdi
	callq	_list_empty
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	testl	%r12d, %r12d
	je	LBB0_22
## %bb.21:
	movq	_MWIFIEX_HW_STATUS_READY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	jmp	LBB0_24
LBB0_22:
	movq	%r13, %rdi
	callq	_mwifiex_main_process
	cmpl	$-1, %eax
	je	LBB0_24
## %bb.23:
	movq	_EINPROGRESS@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_HW_STATUS_INITIALIZING,8,3 ## @MWIFIEX_HW_STATUS_INITIALIZING
	.comm	_MWIFIEX_HW_STATUS_READY,8,3    ## @MWIFIEX_HW_STATUS_READY
	.comm	_EINPROGRESS,4,2                ## @EINPROGRESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_init_fw                ; -- Begin function mwifiex_init_fw
	.p2align	2
_mwifiex_init_fw:                       ; @mwifiex_init_fw
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _MWIFIEX_HW_STATUS_INITIALIZING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MWIFIEX_HW_STATUS_INITIALIZING@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x0, #8]
	bl	_mwifiex_allocate_adapter
	cbz	w0, LBB0_3
LBB0_1:
	mov	w20, #-1
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x0, x19
	bl	_mwifiex_init_adapter
	ldr	x8, [x19]
	cbz	x8, LBB0_16
; %bb.4:
	mov	x20, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x20, #1
	cmp	x20, x8
	b.hs	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	ldr	x0, [x9, x20, lsl #3]
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_mwifiex_init_priv
	cbz	w0, LBB0_5
	b	LBB0_1
LBB0_9:
	ldr	x9, [x19, #32]
	cbnz	x9, LBB0_17
; %bb.10:
	cbz	x8, LBB0_18
; %bb.11:
	mov	x21, #0
	mov	w20, #0
	mov	w1, #1
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x21, x21, #1
	cmp	x21, x8
	b.hs	LBB0_19
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	ldr	x0, [x9, x21, lsl #3]
	cbz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	w2, #1
	bl	_mwifiex_sta_init_cmd
	mov	x20, x0
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x1, #0
	ldr	x8, [x19]
	b	LBB0_12
LBB0_16:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_18
LBB0_17:
Lloh3:
	adrp	x8, _MWIFIEX_HW_STATUS_READY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MWIFIEX_HW_STATUS_READY@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19, #8]
Lloh6:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_19
LBB0_18:
	mov	w20, #0
LBB0_19:
	add	x21, x19, #16
	mov	x0, x21
	bl	_spin_lock_bh
	add	x0, x19, #20
	bl	_list_empty
	mov	x22, x0
	mov	x0, x21
	bl	_spin_unlock_bh
	cbz	w22, LBB0_21
; %bb.20:
Lloh9:
	adrp	x8, _MWIFIEX_HW_STATUS_READY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MWIFIEX_HW_STATUS_READY@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	b	LBB0_2
LBB0_21:
	mov	x0, x19
	bl	_mwifiex_main_process
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.22:
Lloh12:
	adrp	x8, _EINPROGRESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINPROGRESS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_HW_STATUS_INITIALIZING,8,3 ; @MWIFIEX_HW_STATUS_INITIALIZING
	.comm	_MWIFIEX_HW_STATUS_READY,8,3    ; @MWIFIEX_HW_STATUS_READY
	.comm	_EINPROGRESS,4,2                ; @EINPROGRESS
.subsections_via_symbols
