	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_pcie_process_event_ready
_mwifiex_pcie_process_event_ready:      ## @mwifiex_pcie_process_event_ready
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	40(%rdi), %r13
	movq	24(%r13), %r14
	movq	_MWIFIEX_EVTBD_MASK@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	andq	(%r13), %rbx
	callq	_mwifiex_pcie_ok_to_access_hw
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$0, (%r12)
	je	LBB0_4
LBB0_3:
	movq	_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	jmp	LBB0_18
LBB0_1:
	movq	%r12, %rdi
	callq	_mwifiex_pm_wakeup_card
	cmpl	$0, (%r12)
	jne	LBB0_3
LBB0_4:
	movq	_MWIFIEX_MAX_EVT_BD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_5
## %bb.6:
	movl	8(%r14), %esi
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	callq	_mwifiex_read_reg
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_17
LBB0_5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_17:
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movl	$-1, %r14d
LBB0_18:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r13), %rcx
	movq	-56(%rbp), %r8
	leaq	L_.str.3(%rip), %rdx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	(%r13), %rax
	xorq	-56(%rbp), %rax
	testq	%rax, (%r15)
	je	LBB0_9
LBB0_10:
	movl	$0, -44(%rbp)
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %r15
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_mwifiex_unmap_pci_memory
	movq	16(%r13), %rax
	movq	$0, (%rax,%rbx,8)
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	8(%r12), %rdi
	shlq	$2, %rdi
	addq	(%r15), %rdi
	callq	_get_unaligned_le32
	movq	%rax, 16(%r12)
	movq	(%r15), %rsi
	leaq	-44(%rbp), %rdi
	movl	$4, %edx
	callq	_memcpy
	movl	-44(%rbp), %edi
	callq	_le16_to_cpu
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_skb_trim
	movq	8(%r12), %rsi
	movq	%r15, %rdi
	callq	_skb_pull
	movq	_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r12, %rdi
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	_MWIFIEX_EVENT_HEADER_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpl	%eax, %ebx
	jle	LBB0_13
## %bb.11:
	movq	_MAX_EVENT_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jge	LBB0_13
## %bb.12:
	movq	32(%r12), %rdi
	movq	%rax, %rsi
	shlq	$2, %rsi
	addq	(%r15), %rsi
	subl	%eax, %ebx
	movl	%ebx, %edx
	callq	_memcpy
LBB0_13:
	movl	$1, (%r12)
	movq	%r15, 24(%r12)
	jmp	LBB0_18
LBB0_9:
	testq	%rax, (%r14)
	je	LBB0_10
## %bb.14:
	movq	_PCIE_CPU_INT_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CPU_INTR_EVENT_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_mwifiex_write_reg
	testq	%rax, %rax
	je	LBB0_15
## %bb.16:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.6(%rip), %rdx
	jmp	LBB0_17
LBB0_15:
	xorl	%r14d, %r14d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_EVTBD_MASK,8,3         ## @MWIFIEX_EVTBD_MASK
	.comm	_EVENT,4,2                      ## @EVENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"info: Event being processed,\tdo not process this interrupt just yet\n"

	.comm	_MWIFIEX_MAX_EVT_BD,8,3         ## @MWIFIEX_MAX_EVT_BD
	.comm	_ERROR,4,2                      ## @ERROR
L_.str.1:                               ## @.str.1
	.asciz	"info: Invalid read pointer...\n"

L_.str.2:                               ## @.str.2
	.asciz	"EventReady: failed to read reg->evt_wrptr\n"

L_.str.3:                               ## @.str.3
	.asciz	"info: EventReady: Initial <Rd: 0x%x, Wr: 0x%x>"

	.comm	_INFO,4,2                       ## @INFO
L_.str.4:                               ## @.str.4
	.asciz	"info: Read Index: %d\n"

	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
L_.str.5:                               ## @.str.5
	.asciz	"info: Event length: %d\n"

	.comm	_MWIFIEX_EVENT_HEADER_LEN,4,2   ## @MWIFIEX_EVENT_HEADER_LEN
	.comm	_MAX_EVENT_SIZE,4,2             ## @MAX_EVENT_SIZE
	.comm	_PCIE_CPU_INT_EVENT,4,2         ## @PCIE_CPU_INT_EVENT
	.comm	_CPU_INTR_EVENT_DONE,4,2        ## @CPU_INTR_EVENT_DONE
L_.str.6:                               ## @.str.6
	.asciz	"Write register failed\n"

	.no_dead_strip	_mwifiex_pcie_process_event_ready
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_pcie_process_event_ready
_mwifiex_pcie_process_event_ready:      ; @mwifiex_pcie_process_event_ready
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	x21, [x0, #40]
	ldr	x20, [x21, #24]
	ldr	x22, [x21]
Lloh0:
	adrp	x24, _MWIFIEX_EVTBD_MASK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MWIFIEX_EVTBD_MASK@GOTPAGEOFF]
	ldr	x23, [x24]
	bl	_mwifiex_pcie_ok_to_access_hw
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x19]
	cbz	w8, LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _EVENT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EVENT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	mov	w0, #0
	b	LBB0_9
LBB0_3:
	mov	x0, x19
	bl	_mwifiex_pm_wakeup_card
	ldr	w8, [x19]
	cbnz	w8, LBB0_2
LBB0_4:
	and	x23, x23, x22
Lloh7:
	adrp	x8, _MWIFIEX_MAX_EVT_BD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MWIFIEX_MAX_EVT_BD@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x23, x8
	b.hs	LBB0_7
; %bb.5:
	ldr	w1, [x20, #8]
	add	x2, sp, #24
	mov	x0, x19
	bl	_mwifiex_read_reg
	cbz	x0, LBB0_10
; %bb.6:
Lloh10:
	adrp	x8, _ERROR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh15:
	adrp	x8, _ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str.1@PAGE
Lloh19:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_mwifiex_dbg
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_10:
Lloh20:
	adrp	x22, _EVENT@GOTPAGE
Lloh21:
	ldr	x22, [x22, _EVENT@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	x8, [x21]
	ldr	x9, [sp, #24]
	stp	x8, x9, [sp]
Lloh22:
	adrp	x2, l_.str.3@PAGE
Lloh23:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	ldr	x8, [sp, #24]
	ldr	x9, [x24]
	ldr	x10, [x21]
	eor	x8, x10, x8
	tst	x8, x9
	b.eq	LBB0_15
LBB0_11:
	str	wzr, [sp, #20]
Lloh24:
	adrp	x8, _INFO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	str	x23, [sp]
Lloh27:
	adrp	x2, l_.str.4@PAGE
Lloh28:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	ldr	x8, [x21, #16]
	lsl	x23, x23, #3
	ldr	x20, [x8, x23]
Lloh29:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_mwifiex_unmap_pci_memory
	ldr	x8, [x21, #16]
	str	xzr, [x8, x23]
	ldr	x8, [x21, #8]
	ldr	x0, [x8, x23]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	add	x0, x8, x9, lsl #2
	bl	_get_unaligned_le32
	str	x0, [x19, #16]
	ldr	x1, [x20]
	add	x0, sp, #20
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [sp, #20]
	bl	_le16_to_cpu
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_skb_trim
	ldr	x1, [x19, #8]
	mov	x0, x20
	bl	_skb_pull
	ldr	w1, [x22]
	str	x21, [sp]
Lloh32:
	adrp	x2, l_.str.5@PAGE
Lloh33:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
Lloh34:
	adrp	x8, _MWIFIEX_EVENT_HEADER_LEN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MWIFIEX_EVENT_HEADER_LEN@GOTPAGEOFF]
Lloh36:
	ldrsw	x8, [x8]
	cmp	w21, w8
	b.le	LBB0_14
; %bb.12:
Lloh37:
	adrp	x9, _MAX_EVENT_SIZE@GOTPAGE
Lloh38:
	ldr	x9, [x9, _MAX_EVENT_SIZE@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	cmp	w21, w9
	b.ge	LBB0_14
; %bb.13:
	ldr	x0, [x19, #32]
	ldr	x9, [x20]
	add	x1, x9, x8, lsl #2
	sub	w2, w21, w8
	bl	_memcpy
LBB0_14:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
	str	x20, [x19, #24]
	b	LBB0_9
LBB0_15:
	ldr	x9, [x20]
	tst	x9, x8
	b.eq	LBB0_11
; %bb.16:
Lloh40:
	adrp	x8, _PCIE_CPU_INT_EVENT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _PCIE_CPU_INT_EVENT@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
Lloh43:
	adrp	x8, _CPU_INTR_EVENT_DONE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _CPU_INTR_EVENT_DONE@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mwifiex_write_reg
	cbz	x0, LBB0_9
; %bb.17:
Lloh46:
	adrp	x8, _ERROR@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
Lloh49:
	adrp	x2, l_.str.6@PAGE
Lloh50:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_EVTBD_MASK,8,3         ; @MWIFIEX_EVTBD_MASK
	.comm	_EVENT,4,2                      ; @EVENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"info: Event being processed,\tdo not process this interrupt just yet\n"

	.comm	_MWIFIEX_MAX_EVT_BD,8,3         ; @MWIFIEX_MAX_EVT_BD
	.comm	_ERROR,4,2                      ; @ERROR
l_.str.1:                               ; @.str.1
	.asciz	"info: Invalid read pointer...\n"

l_.str.2:                               ; @.str.2
	.asciz	"EventReady: failed to read reg->evt_wrptr\n"

l_.str.3:                               ; @.str.3
	.asciz	"info: EventReady: Initial <Rd: 0x%x, Wr: 0x%x>"

	.comm	_INFO,4,2                       ; @INFO
l_.str.4:                               ; @.str.4
	.asciz	"info: Read Index: %d\n"

	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
l_.str.5:                               ; @.str.5
	.asciz	"info: Event length: %d\n"

	.comm	_MWIFIEX_EVENT_HEADER_LEN,4,2   ; @MWIFIEX_EVENT_HEADER_LEN
	.comm	_MAX_EVENT_SIZE,4,2             ; @MAX_EVENT_SIZE
	.comm	_PCIE_CPU_INT_EVENT,4,2         ; @PCIE_CPU_INT_EVENT
	.comm	_CPU_INTR_EVENT_DONE,4,2        ; @CPU_INTR_EVENT_DONE
l_.str.6:                               ; @.str.6
	.asciz	"Write register failed\n"

	.no_dead_strip	_mwifiex_pcie_process_event_ready
.subsections_via_symbols
