	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_txq_init
_mwl8k_txq_init:                        ## @mwl8k_txq_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, %r13
	movq	8(%rdi), %rcx
	movq	8(%rcx), %rbx
	movslq	%esi, %rax
	leaq	(%rax,%rax,2), %r12
	shlq	$4, %r12
	leaq	(%rbx,%r12), %r15
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx,%r12)
	movq	$0, 40(%rbx,%r12)
	movq	_MWL8K_TX_DESCS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	shll	$4, %r14d
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %edi
	movl	%r14d, %esi
	movq	%r15, %rdx
	callq	_pci_zalloc_consistent
	movq	%rax, 8(%rbx,%r12)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	leaq	(%rbx,%r12), %r13
	addq	$8, %r13
	movq	_MWL8K_TX_DESCS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 16(%rbx,%r12)
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	_MWL8K_TX_DESCS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.5:
	movl	$8, %r14d
	xorl	%ebx, %ebx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %r12
	incq	%rbx
	movq	%rax, %r15
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%edx, %edi
	movq	$0, (%r12,%r14)
	shlq	$4, %rdi
	addq	(%r13), %rdi
	callq	_cpu_to_le32
	movl	%eax, -8(%r12,%r14)
	movq	%r15, %rax
	movslq	(%r15), %rcx
	addq	$16, %r14
	cmpq	%rcx, %rbx
	jl	LBB0_6
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wiphy_err
	jmp	LBB0_2
LBB0_9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	(%r13), %rdx
	movq	(%r15), %rcx
	movl	%r14d, %esi
	callq	_pci_free_consistent
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWL8K_TX_DESCS,4,2             ## @MWL8K_TX_DESCS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to alloc TX descriptors\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwl8k_txq_init
_mwl8k_txq_init:                        ; @mwl8k_txq_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	x25, [x0, #8]
	ldr	x26, [x25, #8]
	mov	w8, #48
	smaddl	x19, w1, w8, x26
	stp	xzr, xzr, [x19, #24]
	str	xzr, [x19, #40]
Lloh0:
	adrp	x23, _MWL8K_TX_DESCS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MWL8K_TX_DESCS@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	w20, w8, #4
	ldr	w0, [x25]
	mov	x1, x20
	mov	x2, x19
	bl	_pci_zalloc_consistent
	mov	x24, x19
	str	x0, [x24, #8]!
	cbz	x0, LBB0_6
; %bb.1:
	sxtw	x21, w21
	ldr	w0, [x23]
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, [x23]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x20, #0
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24]
	add	x21, x21, #1
	sdiv	w10, w21, w8
	msub	w8, w10, w8, w21
	add	x22, x9, x20
	str	xzr, [x22, #8]
	ldr	x9, [x19]
	add	x0, x9, w8, uxtw #4
	bl	_cpu_to_le32
	str	w0, [x22]
	ldrsw	x8, [x23]
	add	x20, x20, #16
	cmp	x21, x8
	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, [x25]
	ldr	x2, [x24]
	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_TX_DESCS,4,2             ; @MWL8K_TX_DESCS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to alloc TX descriptors\n"

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