	.file	"extr_phy-mtk-xsphy.c_u2_phy_instance_set_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	u2_phy_instance_set_mode, @function
u2_phy_instance_set_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR XSP_U2PHYDTM1[rip]
	add	rdi, QWORD PTR [rsi]
	call	readl@PLT
	cmp	ebx, 129
	je	.L2
	cmp	ebx, 130
	je	.L3
	cmp	ebx, 128
	je	.L10
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR P2D_RG_IDDIG[rip]
	or	eax, DWORD PTR P2D_FORCE_IDDIG[rip]
	not	edi
	and	edi, eax
.L6:
	mov	rsi, QWORD PTR XSP_U2PHYDTM1[rip]
	add	rsi, QWORD PTR 0[rbp]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	writel@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR P2D_FORCE_IDDIG[rip]
	or	edi, DWORD PTR P2D_RG_IDDIG[rip]
	not	edi
	and	edi, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR P2D_FORCE_IDDIG[rip]
	or	edi, DWORD PTR P2D_RG_IDDIG[rip]
	or	edi, eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	u2_phy_instance_set_mode, .-u2_phy_instance_set_mode
	.comm	XSP_U2PHYDTM1,8,8
	.comm	P2D_RG_IDDIG,4,4
	.comm	P2D_FORCE_IDDIG,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_phy-mtk-xsphy.c_u2_phy_instance_set_mode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	u2_phy_instance_set_mode, %function
u2_phy_instance_set_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r2
	ldr	r6, .L10
	ldr	r0, [r1]
	ldr	r3, [r6]
	mov	r5, r1
	add	r0, r0, r3
	bl	readl
	cmp	r4, #129
	beq	.L2
	cmp	r4, #130
	beq	.L3
	cmp	r4, #128
	popne	{r4, r5, r6, pc}
	ldr	r3, .L10+4
	ldr	r2, .L10+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r2
	bic	r0, r0, r3
.L6:
	ldr	r1, [r5]
	ldr	r3, [r6]
	pop	{r4, r5, r6, lr}
	add	r1, r1, r3
	b	writel
.L3:
	ldr	r3, .L10+4
	ldr	r2, .L10+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r2
	orr	r0, r3, r0
	b	.L6
.L2:
	ldr	r3, .L10+4
	ldr	r2, .L10+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r0, r0, r3
	bic	r0, r0, r2
	b	.L6
.L11:
	.align	2
.L10:
	.word	XSP_U2PHYDTM1
	.word	P2D_FORCE_IDDIG
	.word	P2D_RG_IDDIG
	.size	u2_phy_instance_set_mode, .-u2_phy_instance_set_mode
	.comm	XSP_U2PHYDTM1,4,4
	.comm	P2D_RG_IDDIG,4,4
	.comm	P2D_FORCE_IDDIG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
