	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cn23xx_vf_setup_global_output_regs
_cn23xx_vf_setup_global_output_regs:    ## @cn23xx_vf_setup_global_output_regs
	.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
	cmpq	$0, (%rdi)
	jle	LBB0_3
## %bb.1:
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	movq	_CN23XX_PKT_OUTPUT_CTL_NSR@GOTPCREL(%rip), %r13
	movq	_CN23XX_PKT_OUTPUT_CTL_ES@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_CN23XX_VF_SLI_OQ_PKTS_CREDIT
	movl	$4294967295, %edx               ## imm = 0xFFFFFFFF
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_octeon_write_csr
	movq	%r15, %rdi
	callq	_CN23XX_VF_SLI_OQ_PKTS_SENT
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_octeon_read_csr
	movq	%r15, %rdi
	callq	_CN23XX_VF_SLI_OQ_PKT_CONTROL
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_octeon_read_csr
	movq	_CN23XX_PKT_OUTPUT_CTL_IPTR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	notq	%rcx
	andq	%rax, %rcx
	movq	_CN23XX_PKT_OUTPUT_CTL_DPTR@GOTPCREL(%rip), %rax
	orq	(%rax), %rcx
	movq	_CN23XX_PKT_OUTPUT_CTL_ROR_P@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CN23XX_PKT_OUTPUT_CTL_BMODE@GOTPCREL(%rip), %rdx
	orq	(%rdx), %rax
	movq	_CN23XX_PKT_OUTPUT_CTL_NSR_P@GOTPCREL(%rip), %rdx
	orq	(%rdx), %rax
	notq	%rax
	andq	%rcx, %rax
	movq	_CN23XX_PKT_OUTPUT_CTL_ES_P@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	movq	(%r13), %rbx
	movq	_CN23XX_PKT_OUTPUT_CTL_ROR@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rbx
	notq	%rbx
	andq	%rax, %rbx
	orq	(%r12), %rbx
	movq	%r15, %rdi
	callq	_CN23XX_VF_SLI_OQ_PKT_CONTROL
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_octeon_write_csr
	incq	%r15
	cmpq	(%r14), %r15
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CN23XX_PKT_OUTPUT_CTL_IPTR,8,3 ## @CN23XX_PKT_OUTPUT_CTL_IPTR
	.comm	_CN23XX_PKT_OUTPUT_CTL_DPTR,8,3 ## @CN23XX_PKT_OUTPUT_CTL_DPTR
	.comm	_CN23XX_PKT_OUTPUT_CTL_BMODE,8,3 ## @CN23XX_PKT_OUTPUT_CTL_BMODE
	.comm	_CN23XX_PKT_OUTPUT_CTL_ROR_P,8,3 ## @CN23XX_PKT_OUTPUT_CTL_ROR_P
	.comm	_CN23XX_PKT_OUTPUT_CTL_NSR_P,8,3 ## @CN23XX_PKT_OUTPUT_CTL_NSR_P
	.comm	_CN23XX_PKT_OUTPUT_CTL_ES_P,8,3 ## @CN23XX_PKT_OUTPUT_CTL_ES_P
	.comm	_CN23XX_PKT_OUTPUT_CTL_ROR,8,3  ## @CN23XX_PKT_OUTPUT_CTL_ROR
	.comm	_CN23XX_PKT_OUTPUT_CTL_NSR,8,3  ## @CN23XX_PKT_OUTPUT_CTL_NSR
	.comm	_CN23XX_PKT_OUTPUT_CTL_ES,8,3   ## @CN23XX_PKT_OUTPUT_CTL_ES
	.no_dead_strip	_cn23xx_vf_setup_global_output_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cn23xx_vf_setup_global_output_regs
_cn23xx_vf_setup_global_output_regs:    ; @cn23xx_vf_setup_global_output_regs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x20, #0
Lloh0:
	adrp	x24, _CN23XX_PKT_OUTPUT_CTL_BMODE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CN23XX_PKT_OUTPUT_CTL_BMODE@GOTPAGEOFF]
Lloh2:
	adrp	x25, _CN23XX_PKT_OUTPUT_CTL_ROR_P@GOTPAGE
Lloh3:
	ldr	x25, [x25, _CN23XX_PKT_OUTPUT_CTL_ROR_P@GOTPAGEOFF]
Lloh4:
	adrp	x26, _CN23XX_PKT_OUTPUT_CTL_NSR_P@GOTPAGE
Lloh5:
	ldr	x26, [x26, _CN23XX_PKT_OUTPUT_CTL_NSR_P@GOTPAGEOFF]
Lloh6:
	adrp	x27, _CN23XX_PKT_OUTPUT_CTL_ES_P@GOTPAGE
Lloh7:
	ldr	x27, [x27, _CN23XX_PKT_OUTPUT_CTL_ES_P@GOTPAGEOFF]
Lloh8:
	adrp	x28, _CN23XX_PKT_OUTPUT_CTL_ROR@GOTPAGE
Lloh9:
	ldr	x28, [x28, _CN23XX_PKT_OUTPUT_CTL_ROR@GOTPAGEOFF]
Lloh10:
	adrp	x22, _CN23XX_PKT_OUTPUT_CTL_NSR@GOTPAGE
Lloh11:
	ldr	x22, [x22, _CN23XX_PKT_OUTPUT_CTL_NSR@GOTPAGEOFF]
Lloh12:
	adrp	x23, _CN23XX_PKT_OUTPUT_CTL_ES@GOTPAGE
Lloh13:
	ldr	x23, [x23, _CN23XX_PKT_OUTPUT_CTL_ES@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_CN23XX_VF_SLI_OQ_PKTS_CREDIT
	mov	x1, x0
	mov	x0, x19
	mov	w2, #-1
	bl	_octeon_write_csr
	mov	x0, x20
	bl	_CN23XX_VF_SLI_OQ_PKTS_SENT
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_read_csr
	mov	x0, x20
	bl	_CN23XX_VF_SLI_OQ_PKT_CONTROL
	mov	x1, x0
	mov	x0, x19
	bl	_octeon_read_csr
Lloh14:
	adrp	x8, _CN23XX_PKT_OUTPUT_CTL_IPTR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CN23XX_PKT_OUTPUT_CTL_IPTR@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	bic	x8, x0, x8
Lloh17:
	adrp	x9, _CN23XX_PKT_OUTPUT_CTL_DPTR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _CN23XX_PKT_OUTPUT_CTL_DPTR@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	orr	x8, x8, x9
	ldr	x9, [x24]
	ldr	x10, [x25]
	orr	x9, x10, x9
	ldr	x10, [x26]
	orr	x9, x9, x10
	bic	x8, x8, x9
	ldr	x9, [x27]
	orr	x8, x8, x9
	ldr	x9, [x28]
	ldr	x10, [x22]
	orr	x9, x10, x9
	bic	x8, x8, x9
	ldr	x9, [x23]
	orr	x21, x8, x9
	mov	x0, x20
	bl	_CN23XX_VF_SLI_OQ_PKT_CONTROL
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_octeon_write_csr
	add	x20, x20, #1
	ldr	x8, [x19]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_CN23XX_PKT_OUTPUT_CTL_IPTR,8,3 ; @CN23XX_PKT_OUTPUT_CTL_IPTR
	.comm	_CN23XX_PKT_OUTPUT_CTL_DPTR,8,3 ; @CN23XX_PKT_OUTPUT_CTL_DPTR
	.comm	_CN23XX_PKT_OUTPUT_CTL_BMODE,8,3 ; @CN23XX_PKT_OUTPUT_CTL_BMODE
	.comm	_CN23XX_PKT_OUTPUT_CTL_ROR_P,8,3 ; @CN23XX_PKT_OUTPUT_CTL_ROR_P
	.comm	_CN23XX_PKT_OUTPUT_CTL_NSR_P,8,3 ; @CN23XX_PKT_OUTPUT_CTL_NSR_P
	.comm	_CN23XX_PKT_OUTPUT_CTL_ES_P,8,3 ; @CN23XX_PKT_OUTPUT_CTL_ES_P
	.comm	_CN23XX_PKT_OUTPUT_CTL_ROR,8,3  ; @CN23XX_PKT_OUTPUT_CTL_ROR
	.comm	_CN23XX_PKT_OUTPUT_CTL_NSR,8,3  ; @CN23XX_PKT_OUTPUT_CTL_NSR
	.comm	_CN23XX_PKT_OUTPUT_CTL_ES,8,3   ; @CN23XX_PKT_OUTPUT_CTL_ES
	.no_dead_strip	_cn23xx_vf_setup_global_output_regs
.subsections_via_symbols
