	.file	"extr_rtl8366s.c_rtl8366s_set_green.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rtl8366s_set_green, @function
rtl8366s_set_green:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	test	esi, esi
	jne	.L2
	mov	r12d, esi
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	xor	edx, edx
	mov	esi, ebx
	mov	rdi, rbp
	add	ebx, 1
	call	rtl8366s_set_green_port@PLT
	cmp	DWORD PTR RTL8366S_PHY_NO_MAX[rip], ebx
	jnb	.L3
.L4:
	mov	edx, DWORD PTR RTL8366S_GREEN_ETHERNET_CTRL_MASK[rip]
	mov	esi, DWORD PTR RTL8366S_GREEN_ETHERNET_CTRL_REG[rip]
	mov	ecx, r12d
	mov	rdi, rbp
	call	REG_RMW@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12d, DWORD PTR RTL8366S_GREEN_ETHERNET_TX_BIT[rip]
	or	r12d, DWORD PTR RTL8366S_GREEN_ETHERNET_RX_BIT[rip]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	rtl8366s_set_green, .-rtl8366s_set_green
	.comm	RTL8366S_PHY_NO_MAX,4,4
	.comm	RTL8366S_GREEN_ETHERNET_TX_BIT,4,4
	.comm	RTL8366S_GREEN_ETHERNET_RX_BIT,4,4
	.comm	RTL8366S_GREEN_ETHERNET_CTRL_REG,4,4
	.comm	RTL8366S_GREEN_ETHERNET_CTRL_MASK,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_rtl8366s.c_rtl8366s_set_green.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl8366s_set_green, %function
rtl8366s_set_green:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r6, r1, #0
	mov	r5, r0
	bne	.L2
	mov	r4, r6
	ldr	r7, .L9
.L3:
	mov	r1, r4
	mov	r2, #0
	mov	r0, r5
	bl	rtl8366s_set_green_port
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	bcs	.L3
.L4:
	ldr	r2, .L9+4
	ldr	r1, .L9+8
	mov	r3, r6
	mov	r0, r5
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	REG_RMW
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r2, .L9+12
	ldr	r3, .L9+16
	ldr	r6, [r2]
	ldr	r1, [r3]
	orr	r6, r6, r1
	b	.L4
.L10:
	.align	2
.L9:
	.word	RTL8366S_PHY_NO_MAX
	.word	RTL8366S_GREEN_ETHERNET_CTRL_MASK
	.word	RTL8366S_GREEN_ETHERNET_CTRL_REG
	.word	RTL8366S_GREEN_ETHERNET_TX_BIT
	.word	RTL8366S_GREEN_ETHERNET_RX_BIT
	.size	rtl8366s_set_green, .-rtl8366s_set_green
	.comm	RTL8366S_PHY_NO_MAX,4,4
	.comm	RTL8366S_GREEN_ETHERNET_TX_BIT,4,4
	.comm	RTL8366S_GREEN_ETHERNET_RX_BIT,4,4
	.comm	RTL8366S_GREEN_ETHERNET_CTRL_REG,4,4
	.comm	RTL8366S_GREEN_ETHERNET_CTRL_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
