	.file	"extr_ulpi.c_dwc3_ulpi_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dwc3_ulpi_write, @function
dwc3_ulpi_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	dev_get_drvdata@PLT
	xor	edi, edi
	mov	rbp, rax
	call	DWC3_GUSB2PHYCFG@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, eax
	call	dwc3_readl@PLT
	mov	edx, DWORD PTR DWC3_GUSB2PHYCFG_SUSPHY[rip]
	test	edx, eax
	jne	.L8
.L2:
	mov	edi, r13d
	call	DWC3_ULPI_ADDR@PLT
	mov	r12d, DWORD PTR DWC3_GUSB2PHYACC_NEWREGREQ[rip]
	xor	edi, edi
	or	r12d, DWORD PTR DWC3_GUSB2PHYACC_WRITE[rip]
	or	r12d, ebx
	or	r12d, eax
	call	DWC3_GUSB2PHYACC@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, r12d
	mov	esi, eax
	call	dwc3_writel@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	dwc3_ulpi_busyloop@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	not	edx
	xor	edi, edi
	and	edx, eax
	mov	r12d, edx
	call	DWC3_GUSB2PHYCFG@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, r12d
	mov	esi, eax
	call	dwc3_writel@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	dwc3_ulpi_write, .-dwc3_ulpi_write
	.comm	DWC3_GUSB2PHYCFG_SUSPHY,4,4
	.comm	DWC3_GUSB2PHYACC_WRITE,4,4
	.comm	DWC3_GUSB2PHYACC_NEWREGREQ,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_ulpi.c_dwc3_ulpi_write.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dwc3_ulpi_write, %function
dwc3_ulpi_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, r1
	mov	r7, r2
	bl	dev_get_drvdata
	mov	r5, r0
	mov	r0, #0
	ldr	r4, [r5]
	bl	DWC3_GUSB2PHYCFG
	mov	r1, r0
	mov	r0, r4
	bl	dwc3_readl
	ldr	r3, .L9
	ldr	r6, [r3]
	tst	r6, r0
	bne	.L8
.L2:
	mov	r0, r8
	bl	DWC3_ULPI_ADDR
	ldr	r3, .L9+4
	ldr	r2, .L9+8
	ldr	r6, [r5]
	ldr	r4, [r2]
	ldr	r2, [r3]
	orr	r4, r4, r2
	orr	r2, r4, r7
	orr	r4, r2, r0
	mov	r0, #0
	bl	DWC3_GUSB2PHYACC
	mov	r2, r4
	mov	r1, r0
	mov	r0, r6
	bl	dwc3_writel
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	dwc3_ulpi_busyloop
.L8:
	bic	r6, r0, r6
	mov	r0, #0
	ldr	r4, [r5]
	bl	DWC3_GUSB2PHYCFG
	mov	r2, r6
	mov	r1, r0
	mov	r0, r4
	bl	dwc3_writel
	b	.L2
.L10:
	.align	2
.L9:
	.word	DWC3_GUSB2PHYCFG_SUSPHY
	.word	DWC3_GUSB2PHYACC_WRITE
	.word	DWC3_GUSB2PHYACC_NEWREGREQ
	.size	dwc3_ulpi_write, .-dwc3_ulpi_write
	.comm	DWC3_GUSB2PHYCFG_SUSPHY,4,4
	.comm	DWC3_GUSB2PHYACC_WRITE,4,4
	.comm	DWC3_GUSB2PHYACC_NEWREGREQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
