	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_rxq_init
_mwl8k_rxq_init:                        ## @mwl8k_rxq_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	movq	16(%r12), %r13
	movslq	%esi, %rax
	leaq	(%rax,%rax,2), %rbx
	shlq	$4, %rbx
	leaq	(%rbx,%r13), %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r13,%rbx)
	movq	$0, 40(%r13,%rbx)
	movq	_MWL8K_RX_DESCS@GOTPCREL(%rip), %rcx
	movq	(%r12), %rax
	movl	(%rax), %esi
	imull	(%rcx), %esi
	movl	8(%r12), %edi
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdx
	callq	_pci_zalloc_consistent
	movq	%rax, 8(%r13,%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	leaq	(%rbx,%r13), %r15
	addq	$8, %r15
	movq	_MWL8K_RX_DESCS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 16(%r13,%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%r12, %rcx
	movq	%r15, %r12
	movq	%r14, %r15
	movq	_MWL8K_RX_DESCS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	xorl	%r13d, %r13d
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r15
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rcx
	movl	(%rcx), %edx
	movl	%edx, %esi
	imull	%ebx, %esi
	movslq	%esi, %rdi
	shlq	$2, %rdi
	addq	(%r12), %rdi
	incl	%ebx
	cmpl	%eax, %ebx
	movl	%ebx, %eax
	cmovel	%r13d, %eax
	imull	%edx, %eax
	movslq	%eax, %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rsi
	callq	*8(%rcx)
	movl	(%r14), %eax
	cmpl	%eax, %ebx
	jl	LBB0_6
	jmp	LBB0_7
LBB0_1:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wiphy_err
	jmp	LBB0_2
LBB0_8:
	movl	8(%r12), %edi
	movq	(%r15), %rdx
	movq	(%r14), %rcx
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_pci_free_consistent
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_7:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWL8K_RX_DESCS,4,2             ## @MWL8K_RX_DESCS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to alloc RX descriptors\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_mwl8k_rxq_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwl8k_rxq_init
_mwl8k_rxq_init:                        ; @mwl8k_rxq_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x22, x0
	ldr	x23, [x0, #8]
	ldr	x26, [x23, #16]
	mov	w8, #48
	smaddl	x19, w1, w8, x26
	stp	xzr, xzr, [x19, #24]
Lloh0:
	adrp	x24, _MWL8K_RX_DESCS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MWL8K_RX_DESCS@GOTPAGEOFF]
	str	xzr, [x19, #40]
	ldr	w8, [x24]
	ldr	x9, [x23]
	ldr	w9, [x9]
	mul	w20, w9, w8
	ldr	w0, [x23, #8]
	mov	x1, x20
	mov	x2, x19
	bl	_pci_zalloc_consistent
	mov	x25, x19
	str	x0, [x25, #8]!
	cbz	x0, LBB0_6
; %bb.1:
	sxtw	x21, w21
	ldr	w0, [x24]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	mov	w8, #48
	madd	x8, x21, x8, x26
	str	x0, [x8, #16]
	cbz	x0, LBB0_7
; %bb.2:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w9, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x23]
	ldr	w11, [x10]
	ldr	x12, [x25]
	mul	w13, w11, w9
	add	x0, x12, w13, sxtw #2
	add	w20, w9, #1
	cmp	w20, w8
	csinc	w8, wzr, w9, eq
	ldr	x9, [x19]
	mul	w8, w11, w8
	add	x1, x9, w8, sxtw
	ldr	x8, [x10, #8]
	blr	x8
	ldr	w8, [x24]
	mov	x9, x20
	cmp	w20, w8
	b.lt	LBB0_4
LBB0_5:
	mov	w0, #0
	b	LBB0_9
LBB0_6:
	ldr	w0, [x22]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wiphy_err
	b	LBB0_8
LBB0_7:
	ldr	w0, [x23, #8]
	ldr	x2, [x25]
	ldr	x3, [x19]
	mov	x1, x20
	bl	_pci_free_consistent
LBB0_8:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MWL8K_RX_DESCS,4,2             ; @MWL8K_RX_DESCS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to alloc RX descriptors\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_mwl8k_rxq_init
.subsections_via_symbols
