	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function txq_init
_txq_init:                              ## @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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	24(%rdi), %r14
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movslq	%esi, %rax
	imulq	$88, %rax, %r15
	movl	%eax, (%r14,%r15)
	movl	(%rdi), %ebx
	movl	%ebx, 4(%r14,%r15)
	movq	_MV643XX_MAX_SKB_DESCS@GOTPCREL(%rip), %rcx
	movl	%ebx, %edx
	subl	(%rcx), %edx
	movl	%edx, 8(%r14,%r15)
	movl	%edx, %ecx
	shrl	$31, %ecx
	addl	%edx, %ecx
	sarl	%ecx
	movl	%ecx, 12(%r14,%r15)
	shll	$4, %ebx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 64(%r14,%r15)
	movq	$0, 80(%r14,%r15)
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movl	4(%r12), %esi
	cmpl	%esi, %ebx
	jle	LBB0_2
LBB0_3:
	movq	8(%r12), %rax
	movl	(%rax), %edi
	leaq	(%r14,%r15), %rdx
	addq	$24, %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %esi
	callq	_dma_alloc_coherent
	movq	%rax, 32(%r14,%r15)
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%r15), %r13
	addq	$4, %r13
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, 16(%r14,%r15)
	movl	(%r13), %edi
	testl	%edi, %edi
	jle	LBB0_13
## %bb.7:
	movq	28(%r13), %rax
	movq	24(%r14,%r15), %rcx
	cmpl	$1, %edi
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_9
## %bb.8:
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_2:
	movq	16(%r12), %rdi
	callq	_ioremap
	movq	%rax, 32(%r14,%r15)
	movq	16(%r12), %rcx
	movq	%rcx, 24(%r14,%r15)
	testq	%rax, %rax
	jne	LBB0_6
LBB0_5:
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_netdev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_21
LBB0_9:
	movabsq	$68719476720, %rdx              ## imm = 0xFFFFFFFF0
	movl	%edi, %r11d
	andl	$-2, %r11d
	leaq	-1(%rdi), %r9
	leaq	-2(%rdi), %r10
	movq	%rdx, %rdi
	movl	$16, %r8d
	xorl	%r13d, %r13d
	leaq	-16(%rdx), %rsi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r8, %rbx
	andq	%rdi, %rbx
	cmpq	%rdx, %r9
	movq	$0, -8(%rax,%r8)
	cmoveq	%r13, %rbx
	addq	%rcx, %rbx
	movq	%rbx, -16(%rax,%r8)
	leaq	2(%rdx), %r12
	leaq	16(%r8), %rbx
	andq	%rsi, %rbx
	cmpq	%rdx, %r10
	movq	$0, 8(%rax,%r8)
	cmoveq	%r13, %rbx
	addq	%rcx, %rbx
	movq	%rbx, (%rax,%r8)
	addq	$32, %r8
	movq	%r12, %rdx
	cmpq	%r12, %r11
	jne	LBB0_10
LBB0_11:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	testb	$1, %dil
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_13
## %bb.12:
	leaq	1(%r12), %rdx
	shlq	$4, %r12
	movl	%edx, %esi
	shlq	$4, %rsi
	xorl	%ebx, %ebx
	cmpq	%rdi, %rdx
	movq	$0, 8(%rax,%r12)
	cmovneq	%rsi, %rbx
	addq	%rbx, %rcx
	movq	%rcx, (%rax,%r12)
LBB0_13:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$1, %esi
	callq	_kcalloc
	movl	%eax, 40(%r14,%r15)
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movq	_TSO_HEADER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	(%r13), %esi
	leaq	(%r14,%r15), %rdx
	addq	$56, %rdx
	movl	(%r12), %ecx
	callq	_dma_alloc_coherent
	movq	%rax, 48(%r14,%r15)
	testq	%rax, %rax
	je	LBB0_16
## %bb.22:
	leaq	(%r14,%r15), %rdi
	addq	$44, %rdi
	callq	_skb_queue_head_init
	xorl	%r13d, %r13d
	jmp	LBB0_21
LBB0_14:
	movq	%r13, %r12
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_17
LBB0_16:
	movq	%r13, %r12
	leaq	(%r14,%r15), %rax
	addq	$40, %rax
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	movl	(%rax), %edi
	callq	_kfree
LBB0_17:
	negl	%r13d
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jne	LBB0_20
## %bb.18:
	cmpl	4(%rbx), %eax
	jle	LBB0_19
LBB0_20:
	leaq	(%r14,%r15), %rax
	addq	$16, %rax
	movq	8(%rbx), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	movq	28(%r12), %rdx
	movq	24(%r14,%r15), %rcx
	callq	_dma_free_coherent
	jmp	LBB0_21
LBB0_19:
	movq	28(%r12), %rdi
	callq	_iounmap
LBB0_21:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MV643XX_MAX_SKB_DESCS,4,2      ## @MV643XX_MAX_SKB_DESCS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't allocate tx ring (%d bytes)\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TSO_HEADER_SIZE,4,2            ## @TSO_HEADER_SIZE
	.no_dead_strip	_txq_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function txq_init
lCPI0_0:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_txq_init:                              ; @txq_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x23, [x0, #24]
	sxtw	x24, w20
	mov	w8, #88
	smaddl	x8, w1, w8, x23
	str	w1, [x8]
	ldr	w9, [x0]
	mov	x22, x8
	str	w9, [x22, #4]!
Lloh0:
	adrp	x10, _MV643XX_MAX_SKB_DESCS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MV643XX_MAX_SKB_DESCS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	sub	w10, w9, w10
	cmp	w10, #0
	cinc	w11, w10, lt
	asr	w11, w11, #1
	stp	w10, w11, [x8, #8]
	lsl	w21, w9, #4
	stp	xzr, xzr, [x8, #72]
	str	xzr, [x8, #64]
Lloh3:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	cbnz	w1, LBB0_2
; %bb.1:
	ldr	w1, [x19, #4]
	cmp	w21, w1
	b.le	LBB0_6
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	w8, #88
	madd	x26, x24, x8, x23
	add	x2, x26, #24
	ldr	w3, [x25]
	mov	x1, x21
	bl	_dma_alloc_coherent
	str	x0, [x26, #32]
	cbz	x0, LBB0_7
LBB0_3:
	mov	w8, #88
	madd	x8, x24, x8, x23
	add	x26, x8, #32
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	mov	w8, #88
	madd	x27, x24, x8, x23
	str	w21, [x27, #16]!
	ldr	w0, [x22]
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.4:
	ldr	x8, [x26]
	mov	w9, #88
	madd	x9, x24, x9, x23
	ldr	x9, [x9, #24]
	cmp	w0, #8
	b.hs	LBB0_8
; %bb.5:
	mov	x10, #0
	b	LBB0_11
LBB0_6:
	ldr	x0, [x19, #16]
	bl	_ioremap
	mov	w8, #88
	ldr	x9, [x19, #16]
	madd	x8, x24, x8, x23
	stp	x9, x0, [x8, #24]
	cbnz	x0, LBB0_3
LBB0_7:
	ldr	x0, [x19, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_netdev_err
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_21
LBB0_8:
	dup.2d	v0, x0
	dup.2d	v1, x9
	and	x10, x0, #0xfffffff8
	add	x11, x8, #64
	mov	w12, #1
	dup.2d	v2, x12
	mov	w12, #3
	dup.2d	v3, x12
	mov	w12, #5
	dup.2d	v4, x12
	mov	w12, #7
	dup.2d	v5, x12
	mov	x12, #68719476720
	dup.2d	v6, x12
Lloh10:
	adrp	x12, lCPI0_0@PAGE
Lloh11:
	ldr	q7, [x12, lCPI0_0@PAGEOFF]
	movi.2d	v17, #0000000000000000
	mov	w12, #8
	dup.2d	v18, x12
	mov	x12, x10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add.2d	v19, v7, v2
	add.2d	v20, v7, v3
	add.2d	v21, v7, v4
	add.2d	v22, v7, v5
	cmeq.2d	v23, v19, v0
	cmeq.2d	v24, v20, v0
	cmeq.2d	v25, v21, v0
	cmeq.2d	v26, v22, v0
	shl.2d	v19, v19, #4
	shl.2d	v20, v20, #4
	shl.2d	v21, v21, #4
	shl.2d	v22, v22, #4
	bic.16b	v19, v19, v23
	bic.16b	v20, v20, v24
	bic.16b	v21, v21, v25
	bic.16b	v22, v22, v26
	and.16b	v19, v19, v6
	and.16b	v20, v20, v6
	and.16b	v21, v21, v6
	and.16b	v22, v22, v6
	add.2d	v16, v1, v19
	add.2d	v19, v1, v20
	mov.16b	v20, v17
	add.2d	v23, v1, v21
	sub	x13, x11, #64
	st2.2d	{ v16, v17 }, [x13]
	mov.16b	v24, v17
	sub	x13, x11, #32
	st2.2d	{ v19, v20 }, [x13]
	add	x13, x11, #128
	st2.2d	{ v23, v24 }, [x11], #32
	add.2d	v19, v1, v22
	mov.16b	v20, v17
	st2.2d	{ v19, v20 }, [x11]
	add.2d	v7, v7, v18
	mov	x11, x13
	subs	x12, x12, #8
	b.ne	LBB0_9
; %bb.10:
	cmp	x10, x0
	b.eq	LBB0_13
LBB0_11:
	sub	x11, x0, x10
	lsl	x10, x10, #4
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x12, x8, x10
	add	x10, x10, #16
	and	x13, x10, #0xffffffff0
	subs	x11, x11, #1
	csel	x13, xzr, x13, eq
	add	x13, x9, x13
	stp	x13, xzr, [x12]
	cbnz	x11, LBB0_12
LBB0_13:
	ldr	w2, [x25]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #1
	bl	_kcalloc
	mov	w8, #88
	madd	x28, x24, x8, x23
	str	w0, [x28, #40]!
	cbz	w0, LBB0_16
; %bb.14:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w8, [x22]
Lloh12:
	adrp	x9, _TSO_HEADER_SIZE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TSO_HEADER_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	mul	w1, w9, w8
	mov	w8, #88
	madd	x22, x24, x8, x23
	add	x2, x22, #56
	ldr	w3, [x25]
	bl	_dma_alloc_coherent
	str	x0, [x22, #48]
	cbz	x0, LBB0_17
; %bb.15:
	mov	w8, #88
	madd	x8, x24, x8, x23
	add	x0, x8, #44
	bl	_skb_queue_head_init
	mov	w22, #0
	b	LBB0_21
LBB0_16:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
	neg	w22, w22
	cbnz	w20, LBB0_19
	b	LBB0_18
LBB0_17:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w22, [x8]
	ldr	w0, [x28]
	bl	_kfree
	neg	w22, w22
	cbnz	w20, LBB0_19
LBB0_18:
	ldr	w8, [x19, #4]
	cmp	w21, w8
	b.le	LBB0_20
LBB0_19:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w1, [x27]
	ldr	x2, [x26]
	mov	w8, #88
	madd	x8, x24, x8, x23
	ldr	x3, [x8, #24]
	bl	_dma_free_coherent
	b	LBB0_21
LBB0_20:
	ldr	x0, [x26]
	bl	_iounmap
LBB0_21:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MV643XX_MAX_SKB_DESCS,4,2      ; @MV643XX_MAX_SKB_DESCS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't allocate tx ring (%d bytes)\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TSO_HEADER_SIZE,4,2            ; @TSO_HEADER_SIZE
	.no_dead_strip	_txq_init
.subsections_via_symbols
