	.file	"extr_cvmx-pip.h_cvmx_pip_get_port_status.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cvmx_pip_get_port_status, @function
cvmx_pip_get_port_status:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	esi, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	edi, DWORD PTR CVMX_PIP_STAT_CTL[rip]
	call	cvmx_write_csr@PLT
	mov	edi, ebp
	call	CVMX_PIP_STAT0_PRTX@PLT
	mov	edi, eax
	call	cvmx_read_csr@PLT
	mov	edi, ebp
	mov	QWORD PTR 56[rsp], rax
	call	CVMX_PIP_STAT1_PRTX@PLT
	mov	edi, eax
	call	cvmx_read_csr@PLT
	mov	edi, ebp
	mov	QWORD PTR 48[rsp], rax
	call	CVMX_PIP_STAT2_PRTX@PLT
	mov	edi, eax
	call	cvmx_read_csr@PLT
	mov	edi, ebp
	mov	QWORD PTR 40[rsp], rax
	call	CVMX_PIP_STAT3_PRTX@PLT
	mov	edi, eax
	call	cvmx_read_csr@PLT
	mov	edi, ebp
	mov	QWORD PTR 32[rsp], rax
	call	CVMX_PIP_STAT4_PRTX@PLT
	mov	edi, eax
	call	cvmx_read_csr@PLT
	mov	edi, ebp
	mov	QWORD PTR 24[rsp], rax
	call	CVMX_PIP_STAT5_PRTX@PLT
	mov	edi, eax
	call	cvmx_read_csr@PLT
	mov	edi, ebp
	mov	QWORD PTR 16[rsp], rax
	call	CVMX_PIP_STAT6_PRTX@PLT
	mov	edi, eax
	call	cvmx_read_csr@PLT
	mov	edi, ebp
	mov	r15, rax
	call	CVMX_PIP_STAT7_PRTX@PLT
	mov	edi, eax
	call	cvmx_read_csr@PLT
	mov	edi, ebp
	mov	r14, rax
	call	CVMX_PIP_STAT8_PRTX@PLT
	mov	edi, eax
	call	cvmx_read_csr@PLT
	mov	edi, ebp
	mov	r13, rax
	call	CVMX_PIP_STAT9_PRTX@PLT
	mov	edi, eax
	call	cvmx_read_csr@PLT
	mov	edi, ebp
	mov	r12, rax
	call	CVMX_PIP_STAT_INB_PKTSX@PLT
	mov	edi, eax
	call	cvmx_read_csr@PLT
	mov	edi, ebp
	mov	QWORD PTR 8[rsp], rax
	call	CVMX_PIP_STAT_INB_OCTSX@PLT
	mov	edi, eax
	call	cvmx_read_csr@PLT
	mov	edi, ebp
	mov	QWORD PTR [rsp], rax
	call	CVMX_PIP_STAT_INB_ERRSX@PLT
	mov	edi, eax
	call	cvmx_read_csr@PLT
	mov	r8, QWORD PTR 40[rsp]
	mov	rsi, QWORD PTR 32[rsp]
	mov	QWORD PTR 16[rbx], 0
	mov	rcx, QWORD PTR 24[rsp]
	mov	rdx, QWORD PTR 16[rsp]
	mov	DWORD PTR 36[rbx], eax
	mov	rdi, r8
	mov	r11, QWORD PTR 56[rsp]
	mov	r10, QWORD PTR 48[rsp]
	mov	DWORD PTR 88[rbx], esi
	sar	rdi, 32
	mov	DWORD PTR 80[rbx], ecx
	mov	r9, QWORD PTR 8[rsp]
	mov	DWORD PTR 96[rbx], edi
	mov	rdi, rsi
	mov	rsi, rcx
	mov	rcx, rdx
	mov	DWORD PTR 72[rbx], edx
	sar	rcx, 32
	mov	rdx, r15
	sar	rdi, 32
	sar	rsi, 32
	sar	rdx, 32
	mov	DWORD PTR 76[rbx], ecx
	mov	ecx, DWORD PTR [rsp]
	mov	DWORD PTR 68[rbx], edx
	mov	rdx, r14
	xor	eax, eax
	sar	rdx, 32
	mov	DWORD PTR [rbx], r11d
	mov	DWORD PTR 60[rbx], edx
	mov	rdx, r13
	sar	rdx, 32
	mov	QWORD PTR 24[rbx], r10
	mov	DWORD PTR 52[rbx], edx
	mov	rdx, r12
	sar	rdx, 32
	mov	DWORD PTR 4[rbx], r8d
	mov	DWORD PTR 92[rbx], edi
	mov	DWORD PTR 84[rbx], esi
	mov	DWORD PTR 64[rbx], r15d
	mov	DWORD PTR 56[rbx], r14d
	mov	DWORD PTR 48[rbx], r13d
	mov	DWORD PTR 44[rbx], edx
	mov	DWORD PTR 40[rbx], r12d
	mov	DWORD PTR 8[rbx], r9d
	mov	DWORD PTR 32[rbx], ecx
	call	cvmx_octeon_is_pass1@PLT
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR 8[rbx]
	mov	ecx, DWORD PTR 4[rbx]
	mov	edx, eax
	sub	edx, ecx
	cmp	eax, ecx
	mov	ecx, 0
	cmovle	edx, ecx
	mov	ecx, DWORD PTR 32[rbx]
	sal	eax, 2
	sub	ecx, eax
	mov	DWORD PTR [rbx], edx
	movsx	rax, ecx
	mov	rcx, QWORD PTR 24[rbx]
	mov	rdx, rax
	sub	rdx, rcx
	cmp	rax, rcx
	mov	eax, 0
	cmovg	rax, rdx
	mov	QWORD PTR 16[rbx], rax
.L2:
	add	rsp, 72
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cvmx_pip_get_port_status, .-cvmx_pip_get_port_status
	.comm	CVMX_PIP_STAT_CTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cvmx-pip.h_cvmx_pip_get_port_status.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cvmx_pip_get_port_status, %function
cvmx_pip_get_port_status:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r0
	ldr	r3, .L11
	sub	sp, sp, #44
	ldr	r0, [r3]
	mov	r4, r2
	bl	cvmx_write_csr
	mov	r0, r8
	bl	CVMX_PIP_STAT0_PRTX
	bl	cvmx_read_csr
	mov	r7, r0
	mov	r0, r8
	bl	CVMX_PIP_STAT1_PRTX
	bl	cvmx_read_csr
	mov	r6, r0
	mov	r0, r8
	bl	CVMX_PIP_STAT2_PRTX
	bl	cvmx_read_csr
	mov	r5, r0
	mov	r0, r8
	bl	CVMX_PIP_STAT3_PRTX
	bl	cvmx_read_csr
	mov	r3, r0
	mov	r0, r8
	str	r3, [sp, #4]
	bl	CVMX_PIP_STAT4_PRTX
	bl	cvmx_read_csr
	mov	r3, r0
	mov	r0, r8
	str	r3, [sp, #8]
	bl	CVMX_PIP_STAT5_PRTX
	bl	cvmx_read_csr
	mov	r3, r0
	mov	r0, r8
	str	r3, [sp, #12]
	bl	CVMX_PIP_STAT6_PRTX
	bl	cvmx_read_csr
	mov	r3, r0
	mov	r0, r8
	str	r3, [sp, #16]
	bl	CVMX_PIP_STAT7_PRTX
	bl	cvmx_read_csr
	mov	r3, r0
	mov	r0, r8
	str	r3, [sp, #20]
	bl	CVMX_PIP_STAT8_PRTX
	bl	cvmx_read_csr
	mov	r3, r0
	mov	r0, r8
	str	r3, [sp, #24]
	bl	CVMX_PIP_STAT9_PRTX
	bl	cvmx_read_csr
	mov	r3, r0
	mov	r0, r8
	str	r3, [sp, #28]
	bl	CVMX_PIP_STAT_INB_PKTSX
	bl	cvmx_read_csr
	mov	r3, r0
	mov	r0, r8
	str	r3, [sp, #32]
	bl	CVMX_PIP_STAT_INB_OCTSX
	bl	cvmx_read_csr
	mov	r3, r0
	mov	r0, r8
	str	r3, [sp, #36]
	bl	CVMX_PIP_STAT_INB_ERRSX
	bl	cvmx_read_csr
	mov	fp, #0
	str	r5, [r4, #4]
	ldr	r5, [sp, #4]
	str	r7, [r4]
	str	r5, [r4, #76]
	ldr	r5, [sp, #8]
	str	r6, [r4, #16]
	str	r5, [r4, #68]
	ldr	r5, [sp, #12]
	str	r0, [r4, #24]
	str	r5, [r4, #60]
	ldr	r5, [sp, #16]
	str	fp, [r4, #12]
	str	r5, [r4, #52]
	ldr	r5, [sp, #20]
	str	fp, [r4, #84]
	str	r5, [r4, #44]
	ldr	r5, [sp, #24]
	str	fp, [r4, #80]
	str	r5, [r4, #36]
	ldr	r5, [sp, #28]
	str	fp, [r4, #72]
	str	r5, [r4, #28]
	ldr	r5, [sp, #32]
	str	fp, [r4, #64]
	str	r5, [r4, #8]
	ldr	r5, [sp, #36]
	str	fp, [r4, #56]
	str	r5, [r4, #20]
	str	fp, [r4, #48]
	str	fp, [r4, #40]
	str	fp, [r4, #32]
	bl	cvmx_octeon_is_pass1
	cmp	r0, fp
	beq	.L1
	ldr	r2, [r4, #4]
	ldr	r1, [r4, #8]
	ldr	r3, [r4, #20]
	ldr	r0, [r4, #16]
	sub	r3, r3, r1, lsl #2
	cmp	r1, r2
	movle	r2, #0
	subgt	r2, r1, r2
	cmp	r3, r0
	movle	r3, #0
	subgt	r3, r3, r0
	str	r2, [r4]
	str	r3, [r4, #12]
.L1:
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	.align	2
.L11:
	.word	CVMX_PIP_STAT_CTL
	.size	cvmx_pip_get_port_status, .-cvmx_pip_get_port_status
	.comm	CVMX_PIP_STAT_CTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
