	.file	"extr_phy-isp1301.c_isp1301_phy_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	isp1301_phy_init, @function
isp1301_phy_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	call	phy_to_isp@PLT
	mov	edx, DWORD PTR MC1_UART_EN[rip]
	mov	esi, DWORD PTR ISP1301_I2C_MODE_CONTROL_1[rip]
	mov	rdi, rax
	mov	rbp, rax
	call	isp1301_clear@PLT
	mov	edx, DWORD PTR MC1_SPEED_REG[rip]
	mov	esi, DWORD PTR ISP1301_I2C_MODE_CONTROL_1[rip]
	mov	rdi, rbp
	not	edx
	call	isp1301_clear@PLT
	mov	edx, DWORD PTR MC1_SPEED_REG[rip]
	mov	esi, DWORD PTR ISP1301_I2C_MODE_CONTROL_1[rip]
	mov	rdi, rbp
	call	isp1301_write@PLT
	mov	esi, DWORD PTR ISP1301_I2C_MODE_CONTROL_2[rip]
	mov	rdi, rbp
	mov	edx, -1
	call	isp1301_clear@PLT
	mov	esi, DWORD PTR ISP1301_I2C_MODE_CONTROL_2[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR MC2_BI_DI[rip]
	or	edx, DWORD PTR MC2_PSW_EN[rip]
	or	edx, DWORD PTR MC2_SPD_SUSP_CTRL[rip]
	call	isp1301_write@PLT
	mov	esi, DWORD PTR ISP1301_I2C_OTG_CONTROL_1[rip]
	mov	rdi, rbp
	mov	edx, -1
	call	isp1301_clear@PLT
	mov	edx, DWORD PTR MC1_DAT_SE0[rip]
	mov	esi, DWORD PTR ISP1301_I2C_MODE_CONTROL_1[rip]
	mov	rdi, rbp
	call	isp1301_write@PLT
	mov	esi, DWORD PTR ISP1301_I2C_OTG_CONTROL_1[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR OTG1_DM_PULLDOWN[rip]
	or	edx, DWORD PTR OTG1_DP_PULLDOWN[rip]
	call	isp1301_write@PLT
	mov	esi, DWORD PTR ISP1301_I2C_OTG_CONTROL_1[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR OTG1_DM_PULLUP[rip]
	or	edx, DWORD PTR OTG1_DP_PULLUP[rip]
	call	isp1301_clear@PLT
	mov	esi, DWORD PTR ISP1301_I2C_INTERRUPT_LATCH[rip]
	mov	rdi, rbp
	mov	edx, -1
	call	isp1301_clear@PLT
	mov	esi, DWORD PTR ISP1301_I2C_INTERRUPT_FALLING[rip]
	mov	rdi, rbp
	mov	edx, -1
	call	isp1301_clear@PLT
	mov	esi, DWORD PTR ISP1301_I2C_INTERRUPT_RISING[rip]
	mov	rdi, rbp
	mov	edx, -1
	call	isp1301_clear@PLT
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	isp1301_phy_init, .-isp1301_phy_init
	.comm	OTG1_DP_PULLUP,4,4
	.comm	OTG1_DP_PULLDOWN,4,4
	.comm	OTG1_DM_PULLUP,4,4
	.comm	OTG1_DM_PULLDOWN,4,4
	.comm	MC2_SPD_SUSP_CTRL,4,4
	.comm	MC2_PSW_EN,4,4
	.comm	MC2_BI_DI,4,4
	.comm	MC1_UART_EN,4,4
	.comm	MC1_SPEED_REG,4,4
	.comm	MC1_DAT_SE0,4,4
	.comm	ISP1301_I2C_OTG_CONTROL_1,4,4
	.comm	ISP1301_I2C_MODE_CONTROL_2,4,4
	.comm	ISP1301_I2C_MODE_CONTROL_1,4,4
	.comm	ISP1301_I2C_INTERRUPT_RISING,4,4
	.comm	ISP1301_I2C_INTERRUPT_LATCH,4,4
	.comm	ISP1301_I2C_INTERRUPT_FALLING,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-isp1301.c_isp1301_phy_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	isp1301_phy_init, %function
isp1301_phy_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	bl	phy_to_isp
	mov	r4, r0
	ldr	r3, .L4
	ldr	r5, .L4+4
	ldr	r6, .L4+8
	ldr	r2, [r3]
	ldr	r1, [r5]
	bl	isp1301_clear
	ldr	r2, [r6]
	ldr	r1, [r5]
	ldr	r7, .L4+12
	mov	r0, r4
	mvn	r2, r2
	bl	isp1301_clear
	ldr	r2, [r6]
	ldr	r1, [r5]
	mov	r0, r4
	bl	isp1301_write
	ldr	r1, [r7]
	mov	r0, r4
	mvn	r2, #0
	bl	isp1301_clear
	ldr	r3, .L4+16
	ldr	r1, .L4+20
	ldr	r2, .L4+24
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r1
	ldr	r6, .L4+28
	orr	r2, r3, r2
	ldr	r1, [r7]
	mov	r0, r4
	bl	isp1301_write
	ldr	r1, [r6]
	mov	r0, r4
	mvn	r2, #0
	bl	isp1301_clear
	ldr	r3, .L4+32
	ldr	r1, [r5]
	ldr	r2, [r3]
	mov	r0, r4
	bl	isp1301_write
	ldr	r2, .L4+36
	ldr	r3, .L4+40
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r6]
	orr	r2, r2, r3
	mov	r0, r4
	bl	isp1301_write
	ldr	r2, .L4+44
	ldr	r3, .L4+48
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r6]
	orr	r2, r2, r3
	mov	r0, r4
	bl	isp1301_clear
	ldr	r3, .L4+52
	mov	r0, r4
	ldr	r1, [r3]
	mvn	r2, #0
	bl	isp1301_clear
	ldr	r3, .L4+56
	mov	r0, r4
	ldr	r1, [r3]
	mvn	r2, #0
	bl	isp1301_clear
	ldr	r3, .L4+60
	mov	r0, r4
	mvn	r2, #0
	ldr	r1, [r3]
	bl	isp1301_clear
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	.align	2
.L4:
	.word	MC1_UART_EN
	.word	ISP1301_I2C_MODE_CONTROL_1
	.word	MC1_SPEED_REG
	.word	ISP1301_I2C_MODE_CONTROL_2
	.word	MC2_BI_DI
	.word	MC2_PSW_EN
	.word	MC2_SPD_SUSP_CTRL
	.word	ISP1301_I2C_OTG_CONTROL_1
	.word	MC1_DAT_SE0
	.word	OTG1_DM_PULLDOWN
	.word	OTG1_DP_PULLDOWN
	.word	OTG1_DM_PULLUP
	.word	OTG1_DP_PULLUP
	.word	ISP1301_I2C_INTERRUPT_LATCH
	.word	ISP1301_I2C_INTERRUPT_FALLING
	.word	ISP1301_I2C_INTERRUPT_RISING
	.size	isp1301_phy_init, .-isp1301_phy_init
	.comm	OTG1_DP_PULLUP,4,4
	.comm	OTG1_DP_PULLDOWN,4,4
	.comm	OTG1_DM_PULLUP,4,4
	.comm	OTG1_DM_PULLDOWN,4,4
	.comm	MC2_SPD_SUSP_CTRL,4,4
	.comm	MC2_PSW_EN,4,4
	.comm	MC2_BI_DI,4,4
	.comm	MC1_UART_EN,4,4
	.comm	MC1_SPEED_REG,4,4
	.comm	MC1_DAT_SE0,4,4
	.comm	ISP1301_I2C_OTG_CONTROL_1,4,4
	.comm	ISP1301_I2C_MODE_CONTROL_2,4,4
	.comm	ISP1301_I2C_MODE_CONTROL_1,4,4
	.comm	ISP1301_I2C_INTERRUPT_RISING,4,4
	.comm	ISP1301_I2C_INTERRUPT_LATCH,4,4
	.comm	ISP1301_I2C_INTERRUPT_FALLING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
