	.file	"extr_sja1105_main.c_sja1105_parse_rgmii_delays.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sja1105_parse_rgmii_delays, @function
sja1105_parse_rgmii_delays:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, DWORD PTR SJA1105_NUM_PORTS[rip]
	test	ecx, ecx
	jle	.L21
	mov	r10, QWORD PTR [rsi]
	mov	r9, QWORD PTR XMII_MAC[rip]
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	xor	eax, eax
	mov	r8, QWORD PTR PHY_INTERFACE_MODE_RGMII_RXID[rip]
	mov	r11, QWORD PTR PHY_INTERFACE_MODE_RGMII_ID[rip]
	mov	rbx, QWORD PTR PHY_INTERFACE_MODE_RGMII_TXID[rip]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L24:
	cmp	rdx, r11
	je	.L22
	cmp	rdx, rbx
	je	.L10
	mov	rdx, QWORD PTR [rdi]
	mov	edx, DWORD PTR [rdx+rcx]
	test	edx, edx
	jne	.L9
	mov	rdx, QWORD PTR 8[rdi]
	mov	ecx, DWORD PTR [rdx+rcx]
	test	ecx, ecx
	jne	.L9
.L4:
	add	rax, 1
	cmp	DWORD PTR SJA1105_NUM_PORTS[rip], eax
	jle	.L23
.L11:
	cmp	r10, r9
	je	.L4
	mov	rdx, QWORD PTR 8[rsi]
	lea	rcx, 0[0+rax*4]
	cmp	rdx, r8
	jne	.L24
	mov	rdx, QWORD PTR [rdi]
	mov	DWORD PTR [rdx+rax*4], 1
	cmp	r8, rbx
	je	.L10
	cmp	r8, r11
	je	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdx, QWORD PTR 16[rdi]
	mov	edx, DWORD PTR [rdx]
	test	edx, edx
	jne	.L4
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rdx, QWORD PTR [rdi]
	mov	DWORD PTR [rdx+rcx], 1
.L10:
	mov	rdx, QWORD PTR 8[rdi]
	mov	DWORD PTR [rdx+rcx], 1
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L23:
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
.L21:
	.cfi_restore 3
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	sja1105_parse_rgmii_delays, .-sja1105_parse_rgmii_delays
	.comm	XMII_MAC,8,8
	.comm	SJA1105_NUM_PORTS,4,4
	.comm	PHY_INTERFACE_MODE_RGMII_TXID,8,8
	.comm	PHY_INTERFACE_MODE_RGMII_RXID,8,8
	.comm	PHY_INTERFACE_MODE_RGMII_ID,8,8
	.comm	EINVAL,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_sja1105_main.c_sja1105_parse_rgmii_delays.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sja1105_parse_rgmii_delays, %function
sja1105_parse_rgmii_delays:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r4, .L24
	ldr	r3, [r4]
	cmp	r3, #0
	ble	.L12
	ldr	r5, .L24+4
	ldr	lr, .L24+8
	ldr	ip, .L24+12
	ldr	r2, .L24+16
	ldr	r6, [r5]
	mov	r3, #0
	mov	r7, #1
	ldr	lr, [lr]
	ldr	r8, [ip]
	ldr	r9, [r2]
	ldr	r5, [r1]
	b	.L11
.L23:
	cmp	r2, r8
	beq	.L22
	cmp	r2, r9
	beq	.L10
	ldr	r2, [r0]
	ldr	r2, [r2, ip]
	cmp	r2, #0
	bne	.L9
	ldr	r2, [r0, #4]
	ldr	r2, [r2, ip]
	cmp	r2, #0
	bne	.L9
.L4:
	ldr	r2, [r4]
	add	r3, r3, #1
	cmp	r2, r3
	ble	.L12
.L11:
	cmp	r5, r6
	beq	.L4
	ldr	r2, [r1, #4]
	lsl	ip, r3, #2
	cmp	r2, lr
	bne	.L23
	ldr	r2, [r0]
	cmp	lr, r9
	str	r7, [r2, r3, lsl #2]
	beq	.L10
	cmp	lr, r8
	beq	.L10
.L9:
	ldr	r2, [r0, #8]
	ldr	r2, [r2]
	cmp	r2, #0
	bne	.L4
	ldr	r3, .L24+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L22:
	ldr	r2, [r0]
	str	r7, [r2, ip]
.L10:
	ldr	r2, [r0, #4]
	str	r7, [r2, ip]
	b	.L9
.L12:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L25:
	.align	2
.L24:
	.word	SJA1105_NUM_PORTS
	.word	XMII_MAC
	.word	PHY_INTERFACE_MODE_RGMII_RXID
	.word	PHY_INTERFACE_MODE_RGMII_ID
	.word	PHY_INTERFACE_MODE_RGMII_TXID
	.word	EINVAL
	.size	sja1105_parse_rgmii_delays, .-sja1105_parse_rgmii_delays
	.comm	XMII_MAC,4,4
	.comm	SJA1105_NUM_PORTS,4,4
	.comm	PHY_INTERFACE_MODE_RGMII_TXID,4,4
	.comm	PHY_INTERFACE_MODE_RGMII_RXID,4,4
	.comm	PHY_INTERFACE_MODE_RGMII_ID,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
