	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_aggr_txq_init
_mvpp2_aggr_txq_init:                   ## @mvpp2_aggr_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	_MVPP2_AGGR_TXQ_SIZE@GOTPCREL(%rip), %r13
	movq	_MVPP2_DESC_ALIGNED_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	(%r13), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdx
	callq	_dma_alloc_coherent
	movl	%eax, 12(%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%r13), %eax
	decl	%eax
	movl	%eax, 4(%rbx)
	movl	%r14d, %edi
	callq	_MVPP2_AGGR_TXQ_INDEX_REG
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mvpp2_read
	movl	%eax, 8(%rbx)
	movq	(%r15), %rax
	movq	_MVPP21@GOTPCREL(%rip), %rdx
	xorl	%r12d, %r12d
	movl	(%rbx), %ebx
	movl	$0, %ecx
	cmpq	(%rdx), %rax
	je	LBB0_4
## %bb.3:
	movq	_MVPP22_AGGR_TXQ_DESC_ADDR_OFFS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_4:
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %ebx
	movl	%r14d, %edi
	callq	_MVPP2_AGGR_TXQ_DESC_ADDR_REG
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_mvpp2_write
	movl	%r14d, %edi
	callq	_MVPP2_AGGR_TXQ_DESC_SIZE_REG
	movl	(%r13), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mvpp2_write
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_5:
	movl	%r12d, %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_DESC_ALIGNED_SIZE,4,2    ## @MVPP2_DESC_ALIGNED_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MVPP21,8,3                     ## @MVPP21
	.comm	_MVPP22_AGGR_TXQ_DESC_ADDR_OFFS,4,2 ## @MVPP22_AGGR_TXQ_DESC_ADDR_OFFS
	.no_dead_strip	_mvpp2_aggr_txq_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_aggr_txq_init
_mvpp2_aggr_txq_init:                   ; @mvpp2_aggr_txq_init
	.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, x3
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x22, _MVPP2_AGGR_TXQ_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MVPP2_AGGR_TXQ_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x8, _MVPP2_DESC_ALIGNED_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MVPP2_DESC_ALIGNED_SIZE@GOTPAGEOFF]
	ldr	w9, [x22]
Lloh4:
	ldr	w8, [x8]
	mul	w1, w8, w9
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x2, x21
	bl	_dma_alloc_coherent
	str	w0, [x21, #12]
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x22]
	sub	w8, w8, #1
	str	w8, [x21, #4]
	mov	x0, x20
	bl	_MVPP2_AGGR_TXQ_INDEX_REG
	mov	x1, x0
	mov	x0, x19
	bl	_mvpp2_read
	str	w0, [x21, #8]
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _MVPP21@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MVPP21@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	w10, [x21]
Lloh11:
	adrp	x11, _MVPP22_AGGR_TXQ_DESC_ADDR_OFFS@GOTPAGE
Lloh12:
	ldr	x11, [x11, _MVPP22_AGGR_TXQ_DESC_ADDR_OFFS@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	cmp	x8, x9
	csel	w8, wzr, w11, eq
	asr	w21, w10, w8
	mov	x0, x20
	bl	_MVPP2_AGGR_TXQ_DESC_ADDR_REG
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_mvpp2_write
	mov	x0, x20
	bl	_MVPP2_AGGR_TXQ_DESC_SIZE_REG
	mov	x1, x0
	ldr	w2, [x22]
	mov	x0, x19
	bl	_mvpp2_write
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP2_AGGR_TXQ_SIZE,4,2        ; @MVPP2_AGGR_TXQ_SIZE
	.comm	_MVPP2_DESC_ALIGNED_SIZE,4,2    ; @MVPP2_DESC_ALIGNED_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MVPP21,8,3                     ; @MVPP21
	.comm	_MVPP22_AGGR_TXQ_DESC_ADDR_OFFS,4,2 ; @MVPP22_AGGR_TXQ_DESC_ADDR_OFFS
	.no_dead_strip	_mvpp2_aggr_txq_init
.subsections_via_symbols
