	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_pcie_event_complete
_mwifiex_pcie_event_complete:           ## @mwifiex_pcie_event_complete
	.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
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	movq	_MWIFIEX_EVTBD_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	andq	(%r13), %r12
	movq	_MWIFIEX_MAX_EVT_BD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jae	LBB0_3
## %bb.4:
	movq	%rsi, %r15
	movq	24(%r13), %rbx
	movl	8(%rbx), %esi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_mwifiex_read_reg
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_7:
	movq	8(%r13), %rax
	movq	(%rax,%r12,8), %r8
	testq	%r8, %r8
	je	LBB0_8
## %bb.10:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movq	%r12, %rcx
	movq	%r15, %r9
	xorl	%eax, %eax
	callq	_mwifiex_dbg
LBB0_11:
	movq	(%r13), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%r13)
	movq	_MWIFIEX_EVTBD_MASK@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	andq	%rcx, %rdx
	movq	_MWIFIEX_MAX_EVT_BD@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_13
## %bb.12:
	movslq	(%rbx), %rdx
	movq	$-2, %rcx
	subq	%rax, %rcx
	andq	%rdx, %rcx
	movq	%rcx, (%r13)
LBB0_13:
	movq	_EVENT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	-56(%rbp), %r8
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movl	4(%rbx), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_mwifiex_write_reg
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
LBB0_6:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movl	$-1, %ebx
LBB0_16:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_skb_push
	movq	_MAX_EVENT_SIZE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	subq	(%r15), %rsi
	movq	%r15, %rdi
	callq	_skb_put
	movq	(%rbx), %rdx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_mwifiex_map_pci_memory
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_16
## %bb.9:
	movq	8(%r13), %rax
	movq	%r15, (%rax,%r12,8)
	movq	16(%r13), %rax
	movq	(%rax,%r12,8), %rbx
	movq	%r15, %rdi
	callq	_MWIFIEX_SKB_DMA_ADDR
	movl	%eax, 16(%rbx)
	movq	(%r15), %rax
	movq	%rax, 8(%rbx)
	movq	$0, (%rbx)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_15:
	movl	(%r15), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	%r14, %rdi
	callq	_mwifiex_pcie_process_event_ready
	movl	%eax, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_EVTBD_MASK,8,3         ## @MWIFIEX_EVTBD_MASK
	.comm	_MWIFIEX_MAX_EVT_BD,8,3         ## @MWIFIEX_MAX_EVT_BD
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"event_complete: Invalid rdptr 0x%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"event_complete: failed to read reg->evt_wrptr\n"

	.comm	_MAX_EVENT_SIZE,8,3             ## @MAX_EVENT_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
L_.str.2:                               ## @.str.2
	.asciz	"info: ERROR: buf still valid at index %d, <%p, %p>\n"

	.comm	_EVENT,4,2                      ## @EVENT
L_.str.3:                               ## @.str.3
	.asciz	"info: Updated <Rd: 0x%x, Wr: 0x%x>"

L_.str.4:                               ## @.str.4
	.asciz	"event_complete: failed to read reg->evt_rdptr\n"

L_.str.5:                               ## @.str.5
	.asciz	"info: Check Events Again\n"

	.no_dead_strip	_mwifiex_pcie_event_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_pcie_event_complete
_mwifiex_pcie_event_complete:           ; @mwifiex_pcie_event_complete
	.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
	cbz	x1, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x21, [x0, #8]
	ldr	x8, [x21]
Lloh0:
	adrp	x23, _MWIFIEX_EVTBD_MASK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MWIFIEX_EVTBD_MASK@GOTPAGEOFF]
	ldr	x9, [x23]
	and	x25, x9, x8
Lloh2:
	adrp	x24, _MWIFIEX_MAX_EVT_BD@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MWIFIEX_MAX_EVT_BD@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x25, x8
	b.hs	LBB0_5
; %bb.2:
	mov	x20, x1
	ldr	x22, [x21, #24]
	ldr	w1, [x22, #8]
	add	x2, sp, #24
	mov	x0, x19
	bl	_mwifiex_read_reg
	cbz	x0, LBB0_6
; %bb.3:
Lloh4:
	adrp	x8, _ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_4:
	mov	w0, #0
	b	LBB0_14
LBB0_5:
Lloh9:
	adrp	x8, _ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	str	x25, [sp]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_6:
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x25, lsl #3]
	cbz	x8, LBB0_15
; %bb.7:
Lloh17:
	adrp	x9, _ERROR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ERROR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x9]
	stp	x8, x20, [sp, #8]
	str	x25, [sp]
Lloh20:
	adrp	x2, l_.str.2@PAGE
Lloh21:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
LBB0_8:
	ldr	x9, [x21]
	add	x8, x9, #1
	str	x8, [x21]
	ldr	x10, [x23]
	and	x10, x10, x8
	ldr	x11, [x24]
	cmp	x10, x11
	b.ne	LBB0_10
; %bb.9:
	ldrsw	x8, [x22]
	mov	x10, #-2
	sub	x9, x10, x9
	and	x8, x9, x8
	str	x8, [x21]
LBB0_10:
Lloh22:
	adrp	x20, _EVENT@GOTPAGE
Lloh23:
	ldr	x20, [x20, _EVENT@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	x9, [sp, #24]
	stp	x8, x9, [sp]
Lloh24:
	adrp	x2, l_.str.3@PAGE
Lloh25:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	ldr	w1, [x22, #4]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_mwifiex_write_reg
	cbz	x0, LBB0_17
; %bb.11:
Lloh26:
	adrp	x8, _ERROR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x2, l_.str.4@PAGE
Lloh30:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_mwifiex_dbg
LBB0_13:
	mov	w0, #-1
LBB0_14:
	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_15:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_skb_push
Lloh31:
	adrp	x26, _MAX_EVENT_SIZE@GOTPAGE
Lloh32:
	ldr	x26, [x26, _MAX_EVENT_SIZE@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	x9, [x20]
	sub	x1, x8, x9
	mov	x0, x20
	bl	_skb_put
	ldr	x2, [x26]
Lloh33:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_mwifiex_map_pci_memory
	cbnz	x0, LBB0_13
; %bb.16:
	ldr	x8, [x21, #8]
	lsl	x9, x25, #3
	str	x20, [x8, x9]
	ldr	x8, [x21, #16]
	ldr	x25, [x8, x9]
	mov	x0, x20
	bl	_MWIFIEX_SKB_DMA_ADDR
	str	w0, [x25, #16]
	ldr	x8, [x20]
	stp	xzr, x8, [x25]
	b	LBB0_8
LBB0_17:
	ldr	w1, [x20]
Lloh36:
	adrp	x2, l_.str.5@PAGE
Lloh37:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	mov	x0, x19
	bl	_mwifiex_pcie_process_event_ready
	b	LBB0_14
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_EVTBD_MASK,8,3         ; @MWIFIEX_EVTBD_MASK
	.comm	_MWIFIEX_MAX_EVT_BD,8,3         ; @MWIFIEX_MAX_EVT_BD
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"event_complete: Invalid rdptr 0x%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"event_complete: failed to read reg->evt_wrptr\n"

	.comm	_MAX_EVENT_SIZE,8,3             ; @MAX_EVENT_SIZE
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
l_.str.2:                               ; @.str.2
	.asciz	"info: ERROR: buf still valid at index %d, <%p, %p>\n"

	.comm	_EVENT,4,2                      ; @EVENT
l_.str.3:                               ; @.str.3
	.asciz	"info: Updated <Rd: 0x%x, Wr: 0x%x>"

l_.str.4:                               ; @.str.4
	.asciz	"event_complete: failed to read reg->evt_rdptr\n"

l_.str.5:                               ; @.str.5
	.asciz	"info: Check Events Again\n"

	.no_dead_strip	_mwifiex_pcie_event_complete
.subsections_via_symbols
