	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvneta_txq_max_tx_size_set
_mvneta_txq_max_tx_size_set:            ## @mvneta_txq_max_tx_size_set
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	shll	$3, %r15d
	movq	_MVNETA_TX_MTU_MAX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	cmpl	%eax, %r15d
	cmovgel	%eax, %r15d
	movq	_MVNETA_TX_MTU@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_mvreg_read
	movl	(%rbx), %edx
	notl	%edx
	andl	%eax, %edx
	orl	%r15d, %edx
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_mvreg_write
	movq	_MVNETA_TX_TOKEN_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_mvreg_read
	movq	_MVNETA_TX_TOKEN_SIZE_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	andl	%eax, %edx
	cmpl	%r15d, %edx
	jge	LBB0_2
## %bb.1:
	notl	%ecx
	andl	%ecx, %eax
	orl	%r15d, %eax
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_mvreg_write
LBB0_2:
	movq	_txq_number@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	movq	_MVNETA_TXQ_TOKEN_SIZE_MAX@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	movq	_txq_number@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_MVNETA_TXQ_TOKEN_SIZE_REG
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mvreg_read
	movl	%eax, %r12d
	movl	(%r13), %eax
	movl	%eax, %ecx
	andl	%r12d, %ecx
	cmpl	%r15d, %ecx
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	notl	%eax
	andl	%eax, %r12d
	orl	%r15d, %r12d
	movl	%ebx, %edi
	callq	_MVNETA_TXQ_TOKEN_SIZE_REG
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_mvreg_write
	jmp	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVNETA_TX_MTU_MAX,4,2          ## @MVNETA_TX_MTU_MAX
	.comm	_MVNETA_TX_MTU,4,2              ## @MVNETA_TX_MTU
	.comm	_MVNETA_TX_TOKEN_SIZE,4,2       ## @MVNETA_TX_TOKEN_SIZE
	.comm	_MVNETA_TX_TOKEN_SIZE_MAX,4,2   ## @MVNETA_TX_TOKEN_SIZE_MAX
	.comm	_txq_number,4,2                 ## @txq_number
	.comm	_MVNETA_TXQ_TOKEN_SIZE_MAX,4,2  ## @MVNETA_TXQ_TOKEN_SIZE_MAX
	.no_dead_strip	_mvneta_txq_max_tx_size_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvneta_txq_max_tx_size_set
_mvneta_txq_max_tx_size_set:            ; @mvneta_txq_max_tx_size_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	lsl	w8, w1, #3
Lloh0:
	adrp	x20, _MVNETA_TX_MTU_MAX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MVNETA_TX_MTU_MAX@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w8, w9
	csel	w22, w8, w9, lt
Lloh2:
	adrp	x21, _MVNETA_TX_MTU@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MVNETA_TX_MTU@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_mvreg_read
	ldr	w8, [x20]
	bic	w8, w0, w8
	orr	w2, w8, w22
	ldr	w1, [x21]
	mov	x0, x19
	bl	_mvreg_write
Lloh4:
	adrp	x20, _MVNETA_TX_TOKEN_SIZE@GOTPAGE
Lloh5:
	ldr	x20, [x20, _MVNETA_TX_TOKEN_SIZE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mvreg_read
Lloh6:
	adrp	x8, _MVNETA_TX_TOKEN_SIZE_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MVNETA_TX_TOKEN_SIZE_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w9, w8, w0
	cmp	w9, w22
	b.ge	LBB0_2
; %bb.1:
	bic	w8, w0, w8
	orr	w2, w8, w22
	ldr	w1, [x20]
	mov	x0, x19
	bl	_mvreg_write
LBB0_2:
Lloh9:
	adrp	x23, _txq_number@GOTPAGE
Lloh10:
	ldr	x23, [x23, _txq_number@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.3:
	mov	w20, #0
Lloh11:
	adrp	x24, _MVNETA_TXQ_TOKEN_SIZE_MAX@GOTPAGE
Lloh12:
	ldr	x24, [x24, _MVNETA_TXQ_TOKEN_SIZE_MAX@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w20, w20, #1
	ldr	w8, [x23]
	cmp	w20, w8
	b.ge	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_MVNETA_TXQ_TOKEN_SIZE_REG
	mov	x1, x0
	mov	x0, x19
	bl	_mvreg_read
	ldr	w8, [x24]
	and	w9, w8, w0
	cmp	w9, w22
	b.ge	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bic	w8, w0, w8
	orr	w21, w8, w22
	mov	x0, x20
	bl	_MVNETA_TXQ_TOKEN_SIZE_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_mvreg_write
	b	LBB0_4
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MVNETA_TX_MTU_MAX,4,2          ; @MVNETA_TX_MTU_MAX
	.comm	_MVNETA_TX_MTU,4,2              ; @MVNETA_TX_MTU
	.comm	_MVNETA_TX_TOKEN_SIZE,4,2       ; @MVNETA_TX_TOKEN_SIZE
	.comm	_MVNETA_TX_TOKEN_SIZE_MAX,4,2   ; @MVNETA_TX_TOKEN_SIZE_MAX
	.comm	_txq_number,4,2                 ; @txq_number
	.comm	_MVNETA_TXQ_TOKEN_SIZE_MAX,4,2  ; @MVNETA_TXQ_TOKEN_SIZE_MAX
	.no_dead_strip	_mvneta_txq_max_tx_size_set
.subsections_via_symbols
