	.file	"extr_cvmx-helper.c_cvmx_helper_ipd_and_packet_input_enable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cvmx_helper_ipd_and_packet_input_enable
	.type	cvmx_helper_ipd_and_packet_input_enable, @function
cvmx_helper_ipd_and_packet_input_enable:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	xor	eax, eax
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	cvmx_ipd_enable@PLT
	xor	eax, eax
	call	cvmx_helper_get_number_of_interfaces@PLT
	test	eax, eax
	jle	.L2
	mov	ebp, eax
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, ebx
	call	cvmx_helper_ports_on_interface@PLT
	test	rax, rax
	jle	.L3
	mov	edi, ebx
	call	__cvmx_helper_packet_hardware_enable@PLT
.L3:
	add	ebx, 1
	cmp	ebp, ebx
	jne	.L4
.L2:
	xor	eax, eax
	call	cvmx_pko_enable@PLT
	mov	edi, DWORD PTR OCTEON_CN31XX_PASS1[rip]
	call	OCTEON_IS_MODEL@PLT
	test	rax, rax
	jne	.L8
	mov	edi, DWORD PTR OCTEON_CN30XX_PASS1[rip]
	call	OCTEON_IS_MODEL@PLT
	test	rax, rax
	je	.L9
.L8:
	xor	eax, eax
	call	cvmx_sysinfo_get@PLT
	mov	rdx, QWORD PTR CVMX_BOARD_TYPE_SIM[rip]
	cmp	QWORD PTR [rax], rdx
	jne	.L13
.L9:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	xor	eax, eax
	call	__cvmx_helper_errata_fix_ipd_ptr_alignment@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cvmx_helper_ipd_and_packet_input_enable, .-cvmx_helper_ipd_and_packet_input_enable
	.comm	OCTEON_CN31XX_PASS1,4,4
	.comm	OCTEON_CN30XX_PASS1,4,4
	.comm	CVMX_BOARD_TYPE_SIM,8,8
	.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-helper.c_cvmx_helper_ipd_and_packet_input_enable.c"
	.text
	.align	2
	.global	cvmx_helper_ipd_and_packet_input_enable
	.syntax unified
	.arm
	.fpu softvfp
	.type	cvmx_helper_ipd_and_packet_input_enable, %function
cvmx_helper_ipd_and_packet_input_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	bl	cvmx_ipd_enable
	bl	cvmx_helper_get_number_of_interfaces
	subs	r5, r0, #0
	ble	.L2
	mov	r4, #0
.L4:
	mov	r0, r4
	bl	cvmx_helper_ports_on_interface
	cmp	r0, #0
	ble	.L3
	mov	r0, r4
	bl	__cvmx_helper_packet_hardware_enable
.L3:
	add	r4, r4, #1
	cmp	r5, r4
	bne	.L4
.L2:
	bl	cvmx_pko_enable
	ldr	r3, .L14
	ldr	r0, [r3]
	bl	OCTEON_IS_MODEL
	cmp	r0, #0
	bne	.L8
	ldr	r3, .L14+4
	ldr	r0, [r3]
	bl	OCTEON_IS_MODEL
	cmp	r0, #0
	beq	.L9
.L8:
	bl	cvmx_sysinfo_get
	ldr	r3, .L14+8
	ldr	r2, [r0]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L13
.L9:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L13:
	bl	__cvmx_helper_errata_fix_ipd_ptr_alignment
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L15:
	.align	2
.L14:
	.word	OCTEON_CN31XX_PASS1
	.word	OCTEON_CN30XX_PASS1
	.word	CVMX_BOARD_TYPE_SIM
	.size	cvmx_helper_ipd_and_packet_input_enable, .-cvmx_helper_ipd_and_packet_input_enable
	.comm	OCTEON_CN31XX_PASS1,4,4
	.comm	OCTEON_CN30XX_PASS1,4,4
	.comm	CVMX_BOARD_TYPE_SIM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
