	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_init_rxq_ring
_mwifiex_init_rxq_ring:                 ## @mwifiex_init_rxq_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_TXRX_BD@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_10
## %bb.1:
	movq	%rdi, %r12
	movq	(%rdi), %rdx
	movq	24(%rdx), %rsi
	movq	_MWIFIEX_RX_DATA_BUF_SIZE@GOTPCREL(%rip), %r15
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%r13, %rax
	movq	(%rdx), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	(%rdx), %rax
	movq	(%rax,%r14,8), %rax
	movq	%r12, 16(%rax)
	movq	(%rbx), %rcx
	movq	%rcx, 8(%rax)
	movl	$0, (%rax)
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	_MWIFIEX_MAX_TXRX_BD@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$40, %r13
	cmpq	%rax, %r14
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	_MWIFIEX_RX_DATA_BUF_SIZE@GOTPCREL(%rip), %r15
	jge	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	callq	_mwifiex_alloc_dma_align_buf
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movl	(%r15), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mwifiex_map_pci_memory
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_MWIFIEX_SKB_DMA_ADDR
	movq	%r12, %rdi
	movq	%rax, %r12
	movq	_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %r8
	movl	8(%rbx), %r9d
	movl	%r12d, (%rsp)
	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	-56(%rbp), %rsi                 ## 8-byte Reload
	cmpq	$0, 8(%rsi)
	movq	8(%rdx), %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%r13, %rax
	movq	(%rdx), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	(%rdx), %rax
	movq	(%rax,%r14,8), %rax
	movq	%r12, 16(%rax)
	movq	(%rbx), %rcx
	movq	%rcx, 8(%rax)
	movq	%rcx, 32(%rax)
	movl	4(%rsi), %ecx
	orl	(%rsi), %ecx
	movl	%ecx, (%rax)
	movq	$0, 24(%rax)
	jmp	LBB0_9
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_3:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	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), %ebx
	jmp	LBB0_11
LBB0_5:
	movl	$-1, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_MAX_TXRX_BD,4,2        ## @MWIFIEX_MAX_TXRX_BD
	.comm	_MWIFIEX_RX_DATA_BUF_SIZE,4,2   ## @MWIFIEX_RX_DATA_BUF_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to allocate skb for RX ring.\n"

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

	.no_dead_strip	_mwifiex_init_rxq_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_init_rxq_ring
_mwifiex_init_rxq_ring:                 ; @mwifiex_init_rxq_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_TXRX_BD@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MWIFIEX_MAX_TXRX_BD@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x0
	mov	x25, #0
	mov	x26, #0
	ldr	x23, [x0]
	ldr	x27, [x23, #24]
Lloh2:
	adrp	x28, _MWIFIEX_RX_DATA_BUF_SIZE@GOTPAGE
Lloh3:
	ldr	x28, [x28, _MWIFIEX_RX_DATA_BUF_SIZE@GOTPAGEOFF]
Lloh4:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x25, x9
	ldr	x10, [x23]
	str	x9, [x10, x8]
	ldr	x9, [x23]
	ldr	x8, [x9, x8]
	ldr	x9, [x21]
	stp	x9, x22, [x8, #8]
	str	wzr, [x8]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x24]
	add	x25, x25, #40
	cmp	x26, x8
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x28]
	ldr	w1, [x20]
	bl	_mwifiex_alloc_dma_align_buf
	cbz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	ldr	w2, [x28]
Lloh6:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_mwifiex_map_pci_memory
	cbnz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_MWIFIEX_SKB_DMA_ADDR
	mov	x22, x0
Lloh9:
	adrp	x8, _INFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INFO@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	x8, [x21]
	ldr	w9, [x21, #8]
	stp	x9, x0, [sp, #16]
	stp	x21, x8, [sp]
	mov	x0, x19
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_mwifiex_dbg
	ldp	x9, x8, [x23, #8]
	str	x21, [x8, x26, lsl #3]
	ldr	x10, [x27, #8]
	lsl	x8, x26, #3
	cbz	x10, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, x25
	ldr	x10, [x23]
	str	x9, [x10, x8]
	ldr	x9, [x23]
	ldr	x8, [x9, x8]
	ldr	x9, [x21]
	stp	x9, x22, [x8, #8]
	ldp	w10, w11, [x27]
	orr	w10, w11, w10
	str	w10, [x8]
	stp	xzr, x9, [x8, #24]
	b	LBB0_3
LBB0_8:
	mov	w0, #0
	b	LBB0_11
LBB0_9:
Lloh14:
	adrp	x8, _ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	ldr	x0, [x23, #8]
	bl	_kfree
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_10:
	mov	w0, #-1
LBB0_11:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_MAX_TXRX_BD,4,2        ; @MWIFIEX_MAX_TXRX_BD
	.comm	_MWIFIEX_RX_DATA_BUF_SIZE,4,2   ; @MWIFIEX_RX_DATA_BUF_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to allocate skb for RX ring.\n"

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

	.no_dead_strip	_mwifiex_init_rxq_ring
.subsections_via_symbols
