	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_imx_ccm_usbphy_enable          ## -- Begin function imx_ccm_usbphy_enable
	.p2align	4, 0x90
_imx_ccm_usbphy_enable:                 ## @imx_ccm_usbphy_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	callq	_imx_soc_type
	movq	_IMXSOC_53@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rax
	jne	LBB0_2
## %bb.1:
	movq	_ccm_softc@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_CCMC_CSCMR1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_ccm_read_4
	movq	_CSCMR1_USBPHY_CLK_SEL_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	btsl	%ecx, %eax
	movl	(%r15), %edi
	movl	(%rbx), %esi
	movl	%eax, %edx
	callq	_ccm_write_4
LBB0_2:
	xorl	%eax, %eax
	callq	_imx_soc_type
	movq	_IMXSOC_51@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_CCGR_USB_PHY_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
	callq	_imx_soc_type
	cmpq	(%r14), %rax
	jne	LBB0_7
## %bb.5:
	movl	$4, %edi
	movl	$5, %esi
	callq	___CCGR_NUM
	movq	_CCGR_CLK_MODE_ALWAYS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_imx51_clk_gating
	movl	$4, %edi
	movl	$6, %esi
	callq	___CCGR_NUM
	movl	%eax, %edi
LBB0_6:
	movq	_CCGR_CLK_MODE_ALWAYS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_imx51_clk_gating               ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IMXSOC_53,8,3                  ## @IMXSOC_53
	.comm	_ccm_softc,4,2                  ## @ccm_softc
	.comm	_CCMC_CSCMR1,4,2                ## @CCMC_CSCMR1
	.comm	_CSCMR1_USBPHY_CLK_SEL_SHIFT,4,2 ## @CSCMR1_USBPHY_CLK_SEL_SHIFT
	.comm	_IMXSOC_51,8,3                  ## @IMXSOC_51
	.comm	_CCGR_USB_PHY_CLK,4,2           ## @CCGR_USB_PHY_CLK
	.comm	_CCGR_CLK_MODE_ALWAYS,4,2       ## @CCGR_CLK_MODE_ALWAYS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_imx_ccm_usbphy_enable          ; -- Begin function imx_ccm_usbphy_enable
	.p2align	2
_imx_ccm_usbphy_enable:                 ; @imx_ccm_usbphy_enable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	bl	_imx_soc_type
Lloh0:
	adrp	x19, _IMXSOC_53@GOTPAGE
Lloh1:
	ldr	x19, [x19, _IMXSOC_53@GOTPAGEOFF]
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x20, _ccm_softc@GOTPAGE
Lloh3:
	ldr	x20, [x20, _ccm_softc@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh4:
	adrp	x21, _CCMC_CSCMR1@GOTPAGE
Lloh5:
	ldr	x21, [x21, _CCMC_CSCMR1@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_ccm_read_4
Lloh6:
	adrp	x8, _CSCMR1_USBPHY_CLK_SEL_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CSCMR1_USBPHY_CLK_SEL_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	orr	w2, w8, w0
	ldr	w0, [x20]
	ldr	w1, [x21]
	bl	_ccm_write_4
LBB0_2:
	bl	_imx_soc_type
Lloh9:
	adrp	x8, _IMXSOC_51@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IMXSOC_51@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x20, _CCGR_CLK_MODE_ALWAYS@GOTPAGE
Lloh13:
	ldr	x20, [x20, _CCGR_CLK_MODE_ALWAYS@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
Lloh14:
	adrp	x8, _CCGR_USB_PHY_CLK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CCGR_USB_PHY_CLK@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_4:
	bl	_imx_soc_type
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:
	mov	w0, #4
	mov	w1, #5
	bl	___CCGR_NUM
	ldr	w1, [x20]
	bl	_imx51_clk_gating
	mov	w0, #4
	mov	w1, #6
	bl	___CCGR_NUM
LBB0_6:
	ldr	w1, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_imx51_clk_gating
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IMXSOC_53,8,3                  ; @IMXSOC_53
	.comm	_ccm_softc,4,2                  ; @ccm_softc
	.comm	_CCMC_CSCMR1,4,2                ; @CCMC_CSCMR1
	.comm	_CSCMR1_USBPHY_CLK_SEL_SHIFT,4,2 ; @CSCMR1_USBPHY_CLK_SEL_SHIFT
	.comm	_IMXSOC_51,8,3                  ; @IMXSOC_51
	.comm	_CCGR_USB_PHY_CLK,4,2           ; @CCGR_USB_PHY_CLK
	.comm	_CCGR_CLK_MODE_ALWAYS,4,2       ; @CCGR_CLK_MODE_ALWAYS
.subsections_via_symbols
