	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_interrupt_status
_mwifiex_interrupt_status:              ## @mwifiex_interrupt_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	32(%rdi), %rbx
	cmpq	$0, 8(%rbx)
	je	LBB0_1
## %bb.17:
	leaq	20(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	$1, (%r15)
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_1:
	movl	%esi, %r14d
	movq	%r15, %rdi
	callq	_mwifiex_pcie_ok_to_access_hw
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	testl	%r14d, %r14d
	js	LBB0_11
## %bb.3:
	cmpq	$0, (%rbx)
	je	LBB0_11
## %bb.4:
	movl	%r14d, %edi
	callq	_BIT
	movl	%eax, -28(%rbp)
LBB0_5:
	cmpl	$0, 28(%r15)
	jne	LBB0_9
## %bb.6:
	movq	8(%r15), %rax
	movq	_PS_STATE_SLEEP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	movq	%r15, %rdi
	callq	_mwifiex_pcie_ok_to_access_hw
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_PS_STATE_AWAKE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	movl	$0, 16(%r15)
	leaq	24(%r15), %rdi
	callq	_del_timer
LBB0_9:
	leaq	20(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	-28(%rbp), %eax
	orl	%eax, (%r15)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-28(%rbp), %ecx
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	jmp	LBB0_10
LBB0_11:
	movq	_PCIE_HOST_INT_STATUS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	callq	_mwifiex_read_reg
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
LBB0_13:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	-28(%rbp), %eax
	decl	%eax
	cmpl	$-3, %eax
	ja	LBB0_10
## %bb.15:
	movq	%r15, %rdi
	callq	_mwifiex_pcie_disable_host_int
	movl	(%rbx), %esi
	movl	-28(%rbp), %edx
	notl	%edx
	movq	%r15, %rdi
	callq	_mwifiex_write_reg
	testq	%rax, %rax
	je	LBB0_5
## %bb.16:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_PCIE_HOST_INT_STATUS,4,2       ## @PCIE_HOST_INT_STATUS
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Read register failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"Write register failed\n"

	.comm	_PS_STATE_SLEEP,8,3             ## @PS_STATE_SLEEP
	.comm	_PS_STATE_AWAKE,8,3             ## @PS_STATE_AWAKE
	.comm	_INTR,4,2                       ## @INTR
L_.str.2:                               ## @.str.2
	.asciz	"ireg: 0x%08x\n"

	.no_dead_strip	_mwifiex_interrupt_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_interrupt_status
_mwifiex_interrupt_status:              ; @mwifiex_interrupt_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x21, [x0, #32]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_2
; %bb.1:
	add	x20, x19, #20
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_spin_unlock_irqrestore
LBB0_2:
	mov	x20, x1
	mov	x0, x19
	bl	_mwifiex_pcie_ok_to_access_hw
	cbz	x0, LBB0_14
; %bb.3:
	tbnz	w20, #31, LBB0_11
; %bb.4:
	ldr	x8, [x21]
	cbz	x8, LBB0_11
; %bb.5:
	mov	x0, x20
	bl	_BIT
	str	w0, [sp, #12]
LBB0_6:
	ldr	w8, [x19, #28]
	cbnz	w8, LBB0_10
; %bb.7:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _PS_STATE_SLEEP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PS_STATE_SLEEP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_mwifiex_pcie_ok_to_access_hw
	cbz	x0, LBB0_10
; %bb.9:
Lloh3:
	adrp	x8, _PS_STATE_AWAKE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PS_STATE_AWAKE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	str	wzr, [x19, #16]
	add	x0, x19, #24
	bl	_del_timer
LBB0_10:
	add	x20, x19, #20
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [sp, #12]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh6:
	adrp	x8, _INTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INTR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh9:
	adrp	x2, l_.str.2@PAGE
Lloh10:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_11:
Lloh11:
	adrp	x20, _PCIE_HOST_INT_STATUS@GOTPAGE
Lloh12:
	ldr	x20, [x20, _PCIE_HOST_INT_STATUS@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_mwifiex_read_reg
	cbz	x0, LBB0_15
; %bb.12:
Lloh13:
	adrp	x8, _ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_mwifiex_dbg
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_15:
	ldr	w8, [sp, #12]
	sub	w8, w8, #1
	cmn	w8, #3
	b.hi	LBB0_14
; %bb.16:
	mov	x0, x19
	bl	_mwifiex_pcie_disable_host_int
	ldr	w1, [x20]
	ldr	w8, [sp, #12]
	mvn	w2, w8
	mov	x0, x19
	bl	_mwifiex_write_reg
	cbz	x0, LBB0_6
; %bb.17:
Lloh18:
	adrp	x8, _ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_PCIE_HOST_INT_STATUS,4,2       ; @PCIE_HOST_INT_STATUS
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Read register failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"Write register failed\n"

	.comm	_PS_STATE_SLEEP,8,3             ; @PS_STATE_SLEEP
	.comm	_PS_STATE_AWAKE,8,3             ; @PS_STATE_AWAKE
	.comm	_INTR,4,2                       ; @INTR
l_.str.2:                               ; @.str.2
	.asciz	"ireg: 0x%08x\n"

	.no_dead_strip	_mwifiex_interrupt_status
.subsections_via_symbols
