	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_check_fw_status
_mwifiex_check_fw_status:               ## @mwifiex_check_fw_status
	.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	%rsi, %r14
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	(%rax), %r12
	movq	_PCIE_HOST_INT_STATUS_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HOST_INTR_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	callq	_mwifiex_write_reg
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_2
LBB0_3:
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movl	4(%r12), %esi
	movq	_FIRMWARE_READY_PCIE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r13, %rdi
	callq	_mwifiex_write_reg
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdx
LBB0_2:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
LBB0_12:
	movl	$-1, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	testq	%r14, %r14
	jle	LBB0_13
## %bb.6:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	je	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %esi
	movq	%r13, %rdi
	leaq	-48(%rbp), %rdx
	callq	_mwifiex_read_reg
	movq	%rax, %r15
	xorl	%r8d, %r8d
	testq	%rax, %rax
	setne	%r8b
	negl	%r8d
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %r9
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	testq	%r15, %r15
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rax
	movq	_FIRMWARE_READY_PCIE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movl	$100, %edi
	callq	_msleep
	jmp	LBB0_11
LBB0_9:
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIE_HOST_INT_STATUS_MASK,4,2  ## @PCIE_HOST_INT_STATUS_MASK
	.comm	_HOST_INTR_MASK,8,3             ## @HOST_INTR_MASK
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Write register failed\n"

	.comm	_INFO,4,2                       ## @INFO
L_.str.1:                               ## @.str.1
	.asciz	"Setting driver ready signature\n"

	.comm	_FIRMWARE_READY_PCIE,8,3        ## @FIRMWARE_READY_PCIE
L_.str.2:                               ## @.str.2
	.asciz	"Failed to write driver ready signature\n"

L_.str.3:                               ## @.str.3
	.asciz	"Try %d if FW is ready <%d,%#x>"

	.no_dead_strip	_mwifiex_check_fw_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_check_fw_status
_mwifiex_check_fw_status:               ; @mwifiex_check_fw_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x23, [x8]
Lloh0:
	adrp	x8, _PCIE_HOST_INT_STATUS_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCIE_HOST_INT_STATUS_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _HOST_INTR_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HOST_INTR_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x2, [x8]
	bl	_mwifiex_write_reg
	cbz	x0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
Lloh8:
	adrp	x24, _INFO@GOTPAGE
Lloh9:
	ldr	x24, [x24, _INFO@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	ldr	w1, [x23, #4]
Lloh12:
	adrp	x25, _FIRMWARE_READY_PCIE@GOTPAGE
Lloh13:
	ldr	x25, [x25, _FIRMWARE_READY_PCIE@GOTPAGEOFF]
	ldr	x2, [x25]
	mov	x0, x19
	bl	_mwifiex_write_reg
	cbz	x0, LBB0_7
; %bb.3:
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_4:
Lloh16:
	adrp	x8, _ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mwifiex_dbg
LBB0_5:
	mov	w0, #-1
LBB0_6:
	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
	add	sp, sp, #112
	ret
LBB0_7:
	cmp	x20, #1
	b.lt	LBB0_13
; %bb.8:
	mov	x26, #0
Lloh19:
	adrp	x21, l_.str.3@PAGE
Lloh20:
	add	x21, x21, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x26, x26, #1
	cmp	x20, x26
	b.eq	LBB0_5
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	add	x2, sp, #24
	mov	x0, x19
	bl	_mwifiex_read_reg
	mov	x22, x0
	ldr	w1, [x24]
	ldr	x9, [sp, #24]
	cmp	x0, #0
	csetm	x8, ne
	stp	x8, x9, [sp, #8]
	str	x26, [sp]
	mov	x0, x19
	mov	x2, x21
	bl	_mwifiex_dbg
	cbnz	x22, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [sp, #24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #100
	bl	_msleep
	b	LBB0_9
LBB0_13:
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIE_HOST_INT_STATUS_MASK,4,2  ; @PCIE_HOST_INT_STATUS_MASK
	.comm	_HOST_INTR_MASK,8,3             ; @HOST_INTR_MASK
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Write register failed\n"

	.comm	_INFO,4,2                       ; @INFO
l_.str.1:                               ; @.str.1
	.asciz	"Setting driver ready signature\n"

	.comm	_FIRMWARE_READY_PCIE,8,3        ; @FIRMWARE_READY_PCIE
l_.str.2:                               ; @.str.2
	.asciz	"Failed to write driver ready signature\n"

l_.str.3:                               ; @.str.3
	.asciz	"Try %d if FW is ready <%d,%#x>"

	.no_dead_strip	_mwifiex_check_fw_status
.subsections_via_symbols
