	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csn3xxx_usb_power_on
_csn3xxx_usb_power_on:                  ## @csn3xxx_usb_power_on
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_usb_pwr_ref@GOTPCREL(%rip), %rdi
	callq	_atomic_inc_return
	cmpl	$1, %eax
	jne	LBB0_2
## %bb.1:
	movq	_PM_PLL_HM_PD_CTRL_REG_OFFSET_PLL_USB@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %ebx
	movl	$1, %edi
	shll	%cl, %edi
	callq	_cns3xxx_pwr_power_up
	movq	_PM_CLK_GATE_REG_OFFSET_USB_HOST@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %edi
	shll	%cl, %edi
	callq	_cns3xxx_pwr_clk_en
	movq	_PM_SOFT_RST_REG_OFFST_USB_HOST@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	movl	%ebx, %edi
	callq	_cns3xxx_pwr_soft_rst
	movq	_MISC_CHIP_CONFIG_REG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	___raw_readl
	orl	$33554432, %eax                 ## imm = 0x2000000
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	___raw_writel
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_usb_pwr_ref,4,2                ## @usb_pwr_ref
	.comm	_PM_PLL_HM_PD_CTRL_REG_OFFSET_PLL_USB,4,2 ## @PM_PLL_HM_PD_CTRL_REG_OFFSET_PLL_USB
	.comm	_PM_CLK_GATE_REG_OFFSET_USB_HOST,4,2 ## @PM_CLK_GATE_REG_OFFSET_USB_HOST
	.comm	_PM_SOFT_RST_REG_OFFST_USB_HOST,4,2 ## @PM_SOFT_RST_REG_OFFST_USB_HOST
	.comm	_MISC_CHIP_CONFIG_REG,4,2       ## @MISC_CHIP_CONFIG_REG
	.no_dead_strip	_csn3xxx_usb_power_on
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csn3xxx_usb_power_on
_csn3xxx_usb_power_on:                  ; @csn3xxx_usb_power_on
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, _usb_pwr_ref@GOTPAGE
Lloh1:
	ldr	x0, [x0, _usb_pwr_ref@GOTPAGEOFF]
	bl	_atomic_inc_return
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _PM_PLL_HM_PD_CTRL_REG_OFFSET_PLL_USB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PM_PLL_HM_PD_CTRL_REG_OFFSET_PLL_USB@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	mov	w19, #1
	lsl	w0, w19, w8
	bl	_cns3xxx_pwr_power_up
Lloh5:
	adrp	x8, _PM_CLK_GATE_REG_OFFSET_USB_HOST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PM_CLK_GATE_REG_OFFSET_USB_HOST@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	lsl	w0, w19, w8
	bl	_cns3xxx_pwr_clk_en
Lloh8:
	adrp	x8, _PM_SOFT_RST_REG_OFFST_USB_HOST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PM_SOFT_RST_REG_OFFST_USB_HOST@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	w0, w19, w8
	bl	_cns3xxx_pwr_soft_rst
Lloh11:
	adrp	x19, _MISC_CHIP_CONFIG_REG@GOTPAGE
Lloh12:
	ldr	x19, [x19, _MISC_CHIP_CONFIG_REG@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	___raw_readl
	orr	w0, w0, #0x2000000
	ldr	w1, [x19]
	bl	___raw_writel
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_usb_pwr_ref,4,2                ; @usb_pwr_ref
	.comm	_PM_PLL_HM_PD_CTRL_REG_OFFSET_PLL_USB,4,2 ; @PM_PLL_HM_PD_CTRL_REG_OFFSET_PLL_USB
	.comm	_PM_CLK_GATE_REG_OFFSET_USB_HOST,4,2 ; @PM_CLK_GATE_REG_OFFSET_USB_HOST
	.comm	_PM_SOFT_RST_REG_OFFST_USB_HOST,4,2 ; @PM_SOFT_RST_REG_OFFST_USB_HOST
	.comm	_MISC_CHIP_CONFIG_REG,4,2       ; @MISC_CHIP_CONFIG_REG
	.no_dead_strip	_csn3xxx_usb_power_on
.subsections_via_symbols
