	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_txq_reserved_desc_num_proc
_mvpp2_txq_reserved_desc_num_proc:      ## @mvpp2_txq_reserved_desc_num_proc
	.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	%rdx, %r15
	movl	(%rdx), %edx
	xorl	%eax, %eax
	cmpl	%ecx, %edx
	jge	LBB0_9
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	(%rdi), %rax
	cmpl	$0, (%rax)
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_2
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %edi
	movl	%ebx, %esi
	callq	_per_cpu_ptr
	addl	8(%rax), %r14d
	addl	(%rax), %r14d
	incl	%ebx
	movq	(%r13), %rax
	cmpl	(%rax), %ebx
	jb	LBB0_4
## %bb.5:
	movl	(%r15), %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_6
LBB0_2:
	xorl	%r14d, %r14d
LBB0_6:
	movq	_MVPP2_CPU_DESC_CHUNK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	%ecx, %esi
	subl	%edx, %esi
	callq	_max
	addl	%eax, %r14d
	movl	(%r12), %ecx
	movq	_MVPP2_MAX_THREADS@GOTPCREL(%rip), %rdx
	movl	(%rbx), %esi
	imull	(%rdx), %esi
	subl	%esi, %ecx
	cmpl	%ecx, %r14d
	jg	LBB0_8
## %bb.7:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_mvpp2_txq_alloc_reserved_desc
	movq	%rax, %rcx
	addl	(%r15), %ecx
	movl	%ecx, (%r15)
	xorl	%eax, %eax
	cmpl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	jge	LBB0_9
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP2_CPU_DESC_CHUNK,4,2       ## @MVPP2_CPU_DESC_CHUNK
	.comm	_MVPP2_MAX_THREADS,4,2          ## @MVPP2_MAX_THREADS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mvpp2_txq_reserved_desc_num_proc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_txq_reserved_desc_num_proc
_mvpp2_txq_reserved_desc_num_proc:      ; @mvpp2_txq_reserved_desc_num_proc
	.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
	ldr	w8, [x2]
	cmp	w8, w3
	b.ge	LBB0_9
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x9, [x0]
	ldr	w9, [x9]
	cbz	w9, LBB0_5
; %bb.2:
	mov	w23, #0
	mov	w24, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #4]
	mov	x1, x23
	bl	_per_cpu_ptr
	ldr	w8, [x0, #8]
	ldr	w9, [x0]
	add	w8, w24, w8
	add	w24, w8, w9
	add	w23, w23, #1
	ldr	x8, [x22]
	ldr	w8, [x8]
	cmp	w23, w8
	b.lo	LBB0_3
; %bb.4:
	ldr	w8, [x20]
	b	LBB0_6
LBB0_5:
	mov	w24, #0
LBB0_6:
Lloh0:
	adrp	x23, _MVPP2_CPU_DESC_CHUNK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MVPP2_CPU_DESC_CHUNK@GOTPAGEOFF]
	ldr	w0, [x23]
	sub	w1, w19, w8
	bl	_max
Lloh2:
	adrp	x8, _MVPP2_MAX_THREADS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MVPP2_MAX_THREADS@GOTPAGEOFF]
	ldr	w9, [x21]
Lloh4:
	ldr	w8, [x8]
	ldr	w10, [x23]
	msub	w8, w10, w8, w9
	add	w9, w0, w24
	cmp	w9, w8
	b.gt	LBB0_8
; %bb.7:
	mov	x2, x0
	mov	x0, x22
	mov	x1, x21
	bl	_mvpp2_txq_alloc_reserved_desc
	ldr	w8, [x20]
	add	w8, w8, w0
	cmp	w8, w19
	str	w8, [x20]
	b.ge	LBB0_9
LBB0_8:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP2_CPU_DESC_CHUNK,4,2       ; @MVPP2_CPU_DESC_CHUNK
	.comm	_MVPP2_MAX_THREADS,4,2          ; @MVPP2_MAX_THREADS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mvpp2_txq_reserved_desc_num_proc
.subsections_via_symbols
