	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_aggr_desc_num_check
_mvpp2_aggr_desc_num_check:             ## @mvpp2_aggr_desc_num_check
	.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	(%rsi), %eax
	addl	%edx, %eax
	movq	_MVPP2_AGGR_TXQ_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_3
## %bb.1:
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	(%rdi), %r13d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_smp_processor_id
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_mvpp2_cpu_to_thread
	movl	(%r12), %r12d
	movl	%eax, %edi
	callq	_MVPP2_AGGR_TXQ_STATUS_REG
	movl	%r12d, %edi
	movl	%eax, %esi
	callq	_mvpp2_read_relaxed
	movq	_MVPP2_AGGR_TXQ_PENDING_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, (%r15)
	addl	%r14d, %eax
	movq	_MVPP2_AGGR_TXQ_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jle	LBB0_3
## %bb.2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_4
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP2_AGGR_TXQ_SIZE,4,2        ## @MVPP2_AGGR_TXQ_SIZE
	.comm	_MVPP2_AGGR_TXQ_PENDING_MASK,4,2 ## @MVPP2_AGGR_TXQ_PENDING_MASK
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mvpp2_aggr_desc_num_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_aggr_desc_num_check
_mvpp2_aggr_desc_num_check:             ; @mvpp2_aggr_desc_num_check
	.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, [x1]
Lloh0:
	adrp	x23, _MVPP2_AGGR_TXQ_SIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MVPP2_AGGR_TXQ_SIZE@GOTPAGEOFF]
	ldr	w9, [x23]
	add	w8, w8, w2
	cmp	w8, w9
	b.le	LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w22, [x0]
	bl	_smp_processor_id
	mov	x1, x0
	mov	x0, x22
	bl	_mvpp2_cpu_to_thread
	ldr	w21, [x21]
	bl	_MVPP2_AGGR_TXQ_STATUS_REG
	mov	x1, x0
	mov	x0, x21
	bl	_mvpp2_read_relaxed
Lloh2:
	adrp	x8, _MVPP2_AGGR_TXQ_PENDING_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MVPP2_AGGR_TXQ_PENDING_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w8, w8, w0
	str	w8, [x20]
	ldr	w9, [x23]
	add	w8, w8, w19
	cmp	w8, w9
	b.le	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	mov	w0, #0
LBB0_4:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP2_AGGR_TXQ_SIZE,4,2        ; @MVPP2_AGGR_TXQ_SIZE
	.comm	_MVPP2_AGGR_TXQ_PENDING_MASK,4,2 ; @MVPP2_AGGR_TXQ_PENDING_MASK
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mvpp2_aggr_desc_num_check
.subsections_via_symbols
