	.file	"extr_laguna.c_csn3xxx_usb_power_on.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	csn3xxx_usb_power_on, @function
csn3xxx_usb_power_on:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rdi, usb_pwr_ref[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	atomic_inc_return@PLT
	cmp	eax, 1
	je	.L5
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	ecx, DWORD PTR PM_PLL_HM_PD_CTRL_REG_OFFSET_PLL_USB[rip]
	mov	edi, eax
	mov	ebx, eax
	sal	edi, cl
	call	cns3xxx_pwr_power_up@PLT
	mov	ecx, DWORD PTR PM_CLK_GATE_REG_OFFSET_USB_HOST[rip]
	mov	edi, ebx
	sal	edi, cl
	call	cns3xxx_pwr_clk_en@PLT
	mov	ecx, DWORD PTR PM_SOFT_RST_REG_OFFST_USB_HOST[rip]
	sal	ebx, cl
	mov	edi, ebx
	call	cns3xxx_pwr_soft_rst@PLT
	mov	ebp, DWORD PTR MISC_CHIP_CONFIG_REG[rip]
	mov	edi, ebp
	call	__raw_readl@PLT
	mov	esi, ebp
	or	eax, 33554432
	mov	edi, eax
	call	__raw_writel@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	csn3xxx_usb_power_on, .-csn3xxx_usb_power_on
	.comm	usb_pwr_ref,4,4
	.comm	PM_SOFT_RST_REG_OFFST_USB_HOST,4,4
	.comm	PM_PLL_HM_PD_CTRL_REG_OFFSET_PLL_USB,4,4
	.comm	PM_CLK_GATE_REG_OFFSET_USB_HOST,4,4
	.comm	MISC_CHIP_CONFIG_REG,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_laguna.c_csn3xxx_usb_power_on.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	csn3xxx_usb_power_on, %function
csn3xxx_usb_power_on:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r0, .L6
	bl	atomic_inc_return
	cmp	r0, #1
	beq	.L5
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L5:
	mov	r4, r0
	ldr	r3, .L6+4
	ldr	r5, .L6+8
	ldr	r0, [r3]
	lsl	r0, r4, r0
	bl	cns3xxx_pwr_power_up
	ldr	r3, .L6+12
	ldr	r0, [r3]
	lsl	r0, r4, r0
	bl	cns3xxx_pwr_clk_en
	ldr	r3, .L6+16
	ldr	r0, [r3]
	lsl	r0, r4, r0
	bl	cns3xxx_pwr_soft_rst
	ldr	r0, [r5]
	bl	__raw_readl
	ldr	r1, [r5]
	orr	r0, r0, #33554432
	bl	__raw_writel
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L7:
	.align	2
.L6:
	.word	usb_pwr_ref
	.word	PM_PLL_HM_PD_CTRL_REG_OFFSET_PLL_USB
	.word	MISC_CHIP_CONFIG_REG
	.word	PM_CLK_GATE_REG_OFFSET_USB_HOST
	.word	PM_SOFT_RST_REG_OFFST_USB_HOST
	.size	csn3xxx_usb_power_on, .-csn3xxx_usb_power_on
	.comm	usb_pwr_ref,4,4
	.comm	PM_SOFT_RST_REG_OFFST_USB_HOST,4,4
	.comm	PM_PLL_HM_PD_CTRL_REG_OFFSET_PLL_USB,4,4
	.comm	PM_CLK_GATE_REG_OFFSET_USB_HOST,4,4
	.comm	MISC_CHIP_CONFIG_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
