	.file	"extr_dwc3-meson-g12a.c_dwc3_meson_g12a_usb_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dwc3_meson_g12a_usb_init, @function
dwc3_meson_g12a_usb_init:
.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
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	dwc3_meson_g12a_usb2_init@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L6
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR USB_R1_U3H_FLADJ_30MHZ_REG_MASK[rip]
	mov	esi, 32
	call	FIELD_PREP@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR USB_R1_U3H_FLADJ_30MHZ_REG_MASK[rip]
	mov	esi, DWORD PTR USB_R1[rip]
	mov	ecx, eax
	call	regmap_update_bits@PLT
	mov	edx, DWORD PTR USB_R5_ID_DIG_EN_0[rip]
	mov	edi, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR USB_R5[rip]
	mov	ecx, edx
	call	regmap_update_bits@PLT
	mov	edx, DWORD PTR USB_R5_ID_DIG_EN_1[rip]
	mov	edi, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR USB_R5[rip]
	mov	ecx, edx
	call	regmap_update_bits@PLT
	mov	edi, DWORD PTR USB_R5_ID_DIG_TH_MASK[rip]
	mov	esi, 255
	call	FIELD_PREP@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	edx, DWORD PTR USB_R5_ID_DIG_TH_MASK[rip]
	mov	esi, DWORD PTR USB_R5[rip]
	mov	ecx, eax
	call	regmap_update_bits@PLT
	cmp	QWORD PTR 0[rbp], 0
	jne	.L7
.L3:
	mov	rdi, rbp
	call	dwc3_meson_g12a_usb_otg_apply_mode@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbp
	call	dwc3_meson_g12a_usb3_init@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	dwc3_meson_g12a_usb_init, .-dwc3_meson_g12a_usb_init
	.comm	USB_R5_ID_DIG_TH_MASK,4,4
	.comm	USB_R5_ID_DIG_EN_1,4,4
	.comm	USB_R5_ID_DIG_EN_0,4,4
	.comm	USB_R5,4,4
	.comm	USB_R1_U3H_FLADJ_30MHZ_REG_MASK,4,4
	.comm	USB_R1,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_dwc3-meson-g12a.c_dwc3_meson_g12a_usb_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dwc3_meson_g12a_usb_init, %function
dwc3_meson_g12a_usb_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	bl	dwc3_meson_g12a_usb2_init
	subs	r5, r0, #0
	beq	.L9
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r2, .L11
	ldr	r3, .L11+4
	ldr	r6, [r2]
	mov	r1, #32
	mov	r0, r6
	ldr	r8, [r3]
	ldr	r7, [r4, #4]
	bl	FIELD_PREP
	mov	r2, r6
	mov	r3, r0
	mov	r1, r8
	mov	r0, r7
	bl	regmap_update_bits
	ldr	r3, .L11+8
	ldr	r6, .L11+12
	ldr	r3, [r3]
	ldr	r1, [r6]
	mov	r2, r3
	ldr	r0, [r4, #4]
	bl	regmap_update_bits
	ldr	r3, .L11+16
	ldr	r1, [r6]
	ldr	r3, [r3]
	ldr	r0, [r4, #4]
	mov	r2, r3
	bl	regmap_update_bits
	ldr	r3, .L11+20
	ldr	r8, [r6]
	ldr	r6, [r3]
	mov	r1, #255
	mov	r0, r6
	ldr	r7, [r4, #4]
	bl	FIELD_PREP
	mov	r2, r6
	mov	r3, r0
	mov	r1, r8
	mov	r0, r7
	bl	regmap_update_bits
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L10
.L3:
	mov	r0, r4
	bl	dwc3_meson_g12a_usb_otg_apply_mode
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r0, r4
	bl	dwc3_meson_g12a_usb3_init
	b	.L3
.L12:
	.align	2
.L11:
	.word	USB_R1_U3H_FLADJ_30MHZ_REG_MASK
	.word	USB_R1
	.word	USB_R5_ID_DIG_EN_0
	.word	USB_R5
	.word	USB_R5_ID_DIG_EN_1
	.word	USB_R5_ID_DIG_TH_MASK
	.size	dwc3_meson_g12a_usb_init, .-dwc3_meson_g12a_usb_init
	.comm	USB_R5_ID_DIG_TH_MASK,4,4
	.comm	USB_R5_ID_DIG_EN_1,4,4
	.comm	USB_R5_ID_DIG_EN_0,4,4
	.comm	USB_R5,4,4
	.comm	USB_R1_U3H_FLADJ_30MHZ_REG_MASK,4,4
	.comm	USB_R1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
