	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_setup_txqs
_mvpp2_setup_txqs:                      ## @mvpp2_setup_txqs
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpl	$0, (%rdi)
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_mvpp2_txq_init
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_num_present_cpus
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movl	%edx, %edi
	movl	24(%r14), %r15d
	callq	_cpumask_of
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_netif_set_xps_queue
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_4:
	cmpq	$0, 16(%r14)
	je	LBB0_8
## %bb.5:
	movq	%r14, %rdi
	callq	_mvpp2_tx_time_coal_set
	cmpl	$0, (%r14)
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r14, %rdi
	callq	_mvpp2_tx_pkts_coal_set
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
LBB0_8:
	movq	_mvpp2_txq_sent_counter_clear@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_on_each_cpu
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_9:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_mvpp2_cleanup_txqs
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mvpp2_txq_sent_counter_clear,4,2 ## @mvpp2_txq_sent_counter_clear
	.no_dead_strip	_mvpp2_setup_txqs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_setup_txqs
_mvpp2_setup_txqs:                      ; @mvpp2_setup_txqs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x1, [x8, x20, lsl #3]
	mov	x0, x19
	bl	_mvpp2_txq_init
	cbnz	w0, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_num_present_cpus
	sdiv	w8, w20, w0
	msub	w0, w8, w0, w20
	ldr	w21, [x19, #24]
	bl	_cpumask_of
	mov	x1, x0
	mov	x0, x21
	mov	x2, x20
	bl	_netif_set_xps_queue
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_4:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_mvpp2_tx_time_coal_set
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x20, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	x1, [x8, x20, lsl #3]
	mov	x0, x19
	bl	_mvpp2_tx_pkts_coal_set
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_7
LBB0_8:
Lloh0:
	adrp	x8, _mvpp2_txq_sent_counter_clear@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mvpp2_txq_sent_counter_clear@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	mov	w2, #1
	bl	_on_each_cpu
	mov	w21, #0
	b	LBB0_10
LBB0_9:
	mov	x21, x0
	mov	x0, x19
	bl	_mvpp2_cleanup_txqs
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mvpp2_txq_sent_counter_clear,4,2 ; @mvpp2_txq_sent_counter_clear
	.no_dead_strip	_mvpp2_setup_txqs
.subsections_via_symbols
