	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_pcie_init_evt_ring
_mwifiex_pcie_init_evt_ring:            ## @mwifiex_pcie_init_evt_ring
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MWIFIEX_MAX_EVT_BD@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_1
## %bb.2:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	_MAX_EVENT_SIZE@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movl	(%r13), %esi
	movq	%rax, %rdi
	callq	_skb_put
	movl	(%r13), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mwifiex_map_pci_memory
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_MWIFIEX_SKB_DMA_ADDR
	movq	%rax, %r13
	movq	_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %r8
	movl	8(%rbx), %r9d
	movl	%r13d, (%rsp)
	movq	%r12, %rdi
	xorl	%r12d, %r12d
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rdx), %rax
	movq	%rbx, (%rax,%r14,8)
	movq	8(%rdx), %rax
	addq	%r15, %rax
	movq	(%rdx), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	(%rdx), %rax
	movq	(%rax,%r14,8), %rax
	movq	%r13, 16(%rax)
	movq	_MAX_EVENT_SIZE@GOTPCREL(%rip), %r13
	movq	(%rbx), %rcx
	movq	%rcx, 8(%rax)
	movq	$0, (%rax)
	incq	%r14
	movq	_MWIFIEX_MAX_EVT_BD@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$24, %r15
	cmpq	%rax, %r14
	jl	LBB0_3
	jmp	LBB0_8
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_4:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%r12d, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_mwifiex_dbg
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_8
LBB0_6:
	movl	$-1, %r12d
LBB0_8:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_MAX_EVT_BD,4,2         ## @MWIFIEX_MAX_EVT_BD
	.comm	_MAX_EVENT_SIZE,4,2             ## @MAX_EVENT_SIZE
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate skb for EVENT buf.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_EVENT,4,2                      ## @EVENT
L_.str.1:                               ## @.str.1
	.asciz	"info: EVT ring: skb=%p len=%d data=%p buf_pa=%#x:%x\n"

	.no_dead_strip	_mwifiex_pcie_init_evt_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_pcie_init_evt_ring
_mwifiex_pcie_init_evt_ring:            ; @mwifiex_pcie_init_evt_ring
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x24, _MWIFIEX_MAX_EVT_BD@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MWIFIEX_MAX_EVT_BD@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x0
	mov	x25, #0
	mov	x26, #0
	ldr	x23, [x0]
Lloh2:
	adrp	x27, _MAX_EVENT_SIZE@GOTPAGE
Lloh3:
	ldr	x27, [x27, _MAX_EVENT_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x28, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh5:
	ldr	x28, [x28, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh6:
	adrp	x20, l_.str.1@PAGE
Lloh7:
	add	x20, x20, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x27]
	bl	_dev_alloc_skb
	cbz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, x0
	ldr	w1, [x27]
	bl	_skb_put
	ldr	w2, [x27]
	ldr	w3, [x28]
	mov	x0, x19
	mov	x1, x21
	bl	_mwifiex_map_pci_memory
	cbnz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_MWIFIEX_SKB_DMA_ADDR
	mov	x22, x0
Lloh8:
	adrp	x8, _EVENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EVENT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	x8, [x21]
	ldr	w9, [x21, #8]
	stp	x9, x0, [sp, #16]
	stp	x21, x8, [sp]
	mov	x0, x19
	mov	x2, x20
	bl	_mwifiex_dbg
	ldr	x8, [x23, #16]
	lsl	x9, x26, #3
	str	x21, [x8, x9]
	ldp	x10, x8, [x23]
	add	x8, x25, x8
	str	x8, [x10, x9]
	ldr	x8, [x23]
	ldr	x8, [x8, x9]
	str	x22, [x8, #16]
	ldr	x9, [x21]
	stp	xzr, x9, [x8]
	add	x26, x26, #1
	ldrsw	x8, [x24]
	add	x25, x25, #24
	cmp	x26, x8
	b.lt	LBB0_2
LBB0_5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh11:
	adrp	x8, _ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	ldr	x0, [x23, #8]
	bl	_kfree
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_MAX_EVT_BD,4,2         ; @MWIFIEX_MAX_EVT_BD
	.comm	_MAX_EVENT_SIZE,4,2             ; @MAX_EVENT_SIZE
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate skb for EVENT buf.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_EVENT,4,2                      ; @EVENT
l_.str.1:                               ; @.str.1
	.asciz	"info: EVT ring: skb=%p len=%d data=%p buf_pa=%#x:%x\n"

	.no_dead_strip	_mwifiex_pcie_init_evt_ring
.subsections_via_symbols
