	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_usb_phy_init
_rockchip_usb_phy_init:                 ## @rockchip_usb_phy_init
	.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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r12
	movq	%r14, 64(%rax)
	movq	%r15, 56(%rax)
	leaq	L_.str(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_13
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_reset_control_get
	movq	%rax, 48(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	$0, 48(%r12)
LBB0_6:
	movl	-36(%rbp), %eax
	movl	%eax, (%r12)
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_clk_get_by_name
	movq	%rax, 8(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	$0, 8(%r12)
LBB0_8:
	movq	8(%r14), %rax
	movq	8(%rax), %rcx
	movl	(%rcx), %ebx
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.9:
	movl	-36(%rbp), %esi
	leaq	16(%rcx), %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%esi, %ebx
	je	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rdx
	movl	(%rdi), %ebx
	addq	$16, %rdi
	testl	%ebx, %ebx
	jne	LBB0_10
	jmp	LBB0_12
LBB0_15:
	movl	%edx, %esi
	shlq	$4, %rsi
	movq	8(%rcx,%rsi), %rcx
	movq	%rcx, -56(%rbp)
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.16:
	movq	_enable_usb_uart@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_19
## %bb.17:
	cmpl	%edx, (%rax)
	jne	LBB0_19
## %bb.18:
	movl	(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_dev_dbg
	movl	$1, 4(%r12)
	jmp	LBB0_27
LBB0_12:
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_14:
	subl	(%rax), %ebx
LBB0_40:
	movl	%ebx, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:
	callq	___clk_get_name
	movq	%rax, -48(%rbp)
	movl	$1, %ecx
	leaq	-48(%rbp), %rax
	jmp	LBB0_22
LBB0_21:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
LBB0_22:
	movq	$0, -64(%rbp)
	movq	%rax, -88(%rbp)
	movl	%ecx, -80(%rbp)
	movq	_rockchip_usb_phy480m_ops@GOTPCREL(%rip), %rax
	movq	%rax, -72(%rbp)
	movq	%r12, %rsi
	addq	$40, %rsi
	leaq	-88(%rbp), %rax
	movq	%rax, 40(%r12)
	movl	(%r14), %edi
	callq	_clk_register
	movq	%rax, 16(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_26
## %bb.23:
	movq	16(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_24:
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_40
## %bb.25:
	callq	_clk_put
	jmp	LBB0_40
LBB0_26:
	movq	_of_clk_src_simple_get@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%r12), %rdx
	movq	%r15, %rdi
	callq	_of_clk_add_provider
	testl	%eax, %eax
	js	LBB0_31
LBB0_27:
	movl	(%r14), %edi
	movq	_rockchip_usb_phy_action@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	callq	_devm_add_action_or_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_40
## %bb.28:
	movl	(%r14), %edi
	movq	_ops@GOTPCREL(%rip), %rdx
	movq	%r15, %rsi
	callq	_devm_phy_create
	movq	%rax, 32(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_33
## %bb.29:
	movl	(%r14), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	32(%r12), %rdi
LBB0_30:
	callq	_PTR_ERR
LBB0_39:
	movl	%eax, %ebx
	jmp	LBB0_40
LBB0_31:
	movl	%eax, %ebx
	cmpl	$0, 4(%r12)
	jne	LBB0_24
## %bb.32:
	movq	16(%r12), %rdi
	callq	_clk_unregister
	jmp	LBB0_24
LBB0_33:
	movq	32(%r12), %rdi
	movq	%r12, %rsi
	callq	_phy_set_drvdata
	movq	32(%r12), %rdi
	leaq	L_.str.7(%rip), %rsi
	callq	_devm_regulator_get_optional
	movq	%rax, 24(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_37
## %bb.34:
	movq	24(%r12), %rdi
	callq	_PTR_ERR
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	jne	LBB0_36
## %bb.35:
	movq	24(%r12), %rdi
	jmp	LBB0_30
LBB0_36:
	movq	$0, 24(%r12)
LBB0_37:
	cmpl	$0, 4(%r12)
	je	LBB0_41
## %bb.38:
	movq	8(%r12), %rdi
	callq	_clk_prepare_enable
	jmp	LBB0_39
LBB0_41:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_rockchip_usb_phy_power
	jmp	LBB0_39
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

L_.str.1:                               ## @.str.1
	.asciz	"missing reg property in node %pOFn\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"phy-reset"

L_.str.3:                               ## @.str.3
	.asciz	"phyclk"

L_.str.4:                               ## @.str.4
	.asciz	"phy data not found\n"

	.comm	_enable_usb_uart,8,3            ## @enable_usb_uart
L_.str.5:                               ## @.str.5
	.asciz	"phy%d used as uart output\n"

	.comm	_rockchip_usb_phy480m_ops,4,2   ## @rockchip_usb_phy480m_ops
	.comm	_of_clk_src_simple_get,4,2      ## @of_clk_src_simple_get
	.comm	_rockchip_usb_phy_action,4,2    ## @rockchip_usb_phy_action
	.comm	_ops,4,2                        ## @ops
L_.str.6:                               ## @.str.6
	.asciz	"failed to create PHY\n"

L_.str.7:                               ## @.str.7
	.asciz	"vbus"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.no_dead_strip	_rockchip_usb_phy_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rockchip_usb_phy_init
_rockchip_usb_phy_init:                 ; @rockchip_usb_phy_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	stp	x21, x20, [x0, #56]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	sub	x2, x29, #36
	mov	x0, x21
	bl	_of_property_read_u32
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x20]
	str	x21, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_17
LBB0_3:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_18
LBB0_4:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_of_reset_control_get
	str	x0, [x19, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	str	xzr, [x19, #48]
LBB0_6:
	ldur	w8, [x29, #-36]
	str	w8, [x19]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_of_clk_get_by_name
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
	str	xzr, [x19, #8]
LBB0_8:
	ldr	x8, [x20, #8]
	ldr	x9, [x8, #8]
	ldr	w12, [x9]
	cbz	w12, LBB0_16
; %bb.9:
	mov	x2, #0
	ldur	w10, [x29, #-36]
	add	x11, x9, #16
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	cmp	w12, w10
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x2, x2, #1
	ldr	w12, [x11], #16
	cbnz	w12, LBB0_10
	b	LBB0_16
LBB0_12:
	add	x9, x9, w2, uxtw #4
	ldr	x9, [x9, #8]
	str	x9, [sp, #40]
	cbz	x9, LBB0_16
; %bb.13:
Lloh13:
	adrp	x9, _enable_usb_uart@GOTPAGE
Lloh14:
	ldr	x9, [x9, _enable_usb_uart@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cbz	x9, LBB0_20
; %bb.14:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_20
; %bb.15:
	ldr	w0, [x20]
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dev_dbg
	mov	w8, #1
	str	w8, [x19, #4]
	b	LBB0_28
LBB0_16:
	ldr	w0, [x20]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_17:
	bl	_dev_err
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_19:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_20:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_22
; %bb.21:
	bl	___clk_get_name
	str	x0, [sp, #48]
	mov	w8, #1
	add	x9, sp, #48
	b	LBB0_23
LBB0_22:
	mov	x9, #0
	mov	w8, #0
LBB0_23:
	str	x9, [sp, #8]
	str	w8, [sp, #16]
Lloh22:
	adrp	x8, _rockchip_usb_phy480m_ops@GOTPAGE
Lloh23:
	ldr	x8, [x8, _rockchip_usb_phy480m_ops@GOTPAGEOFF]
	stp	x8, xzr, [sp, #24]
	add	x8, sp, #8
	mov	x22, x19
	str	x8, [x22, #40]!
	ldr	w0, [x20]
	mov	x1, x22
	bl	_clk_register
	stur	x0, [x22, #-24]
	bl	_IS_ERR
	cbz	x0, LBB0_27
; %bb.24:
	ldr	x0, [x19, #16]
	bl	_PTR_ERR
	mov	x22, x0
LBB0_25:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_19
; %bb.26:
	bl	_clk_put
	b	LBB0_19
LBB0_27:
Lloh24:
	adrp	x8, _of_clk_src_simple_get@GOTPAGE
Lloh25:
	ldr	x8, [x8, _of_clk_src_simple_get@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	x2, [x19, #16]
	mov	x0, x21
	bl	_of_clk_add_provider
	tbnz	w0, #31, LBB0_32
LBB0_28:
	ldr	w0, [x20]
Lloh27:
	adrp	x8, _rockchip_usb_phy_action@GOTPAGE
Lloh28:
	ldr	x8, [x8, _rockchip_usb_phy_action@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_devm_add_action_or_reset
	mov	x22, x0
	cbnz	w0, LBB0_19
; %bb.29:
	ldr	w0, [x20]
Lloh30:
	adrp	x2, _ops@GOTPAGE
Lloh31:
	ldr	x2, [x2, _ops@GOTPAGEOFF]
	mov	x1, x21
	bl	_devm_phy_create
	str	x0, [x19, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_34
; %bb.30:
	ldr	w0, [x20]
Lloh32:
	adrp	x1, l_.str.6@PAGE
Lloh33:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_err
	ldr	x0, [x19, #32]
LBB0_31:
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_19
LBB0_32:
	mov	x22, x0
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_25
; %bb.33:
	ldr	x0, [x19, #16]
	bl	_clk_unregister
	b	LBB0_25
LBB0_34:
	ldr	x0, [x19, #32]
	mov	x1, x19
	bl	_phy_set_drvdata
	ldr	x0, [x19, #32]
Lloh34:
	adrp	x1, l_.str.7@PAGE
Lloh35:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_devm_regulator_get_optional
	str	x0, [x19, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_38
; %bb.35:
	ldr	x0, [x19, #24]
	bl	_PTR_ERR
Lloh36:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_37
; %bb.36:
	ldr	x0, [x19, #24]
	b	LBB0_31
LBB0_37:
	str	xzr, [x19, #24]
LBB0_38:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_40
; %bb.39:
	ldr	x0, [x19, #8]
	bl	_clk_prepare_enable
	mov	x22, x0
	b	LBB0_19
LBB0_40:
	mov	x0, x19
	mov	w1, #1
	bl	_rockchip_usb_phy_power
	mov	x22, x0
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

l_.str.1:                               ; @.str.1
	.asciz	"missing reg property in node %pOFn\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"phy-reset"

l_.str.3:                               ; @.str.3
	.asciz	"phyclk"

l_.str.4:                               ; @.str.4
	.asciz	"phy data not found\n"

	.comm	_enable_usb_uart,8,3            ; @enable_usb_uart
l_.str.5:                               ; @.str.5
	.asciz	"phy%d used as uart output\n"

	.comm	_rockchip_usb_phy480m_ops,4,2   ; @rockchip_usb_phy480m_ops
	.comm	_of_clk_src_simple_get,4,2      ; @of_clk_src_simple_get
	.comm	_rockchip_usb_phy_action,4,2    ; @rockchip_usb_phy_action
	.comm	_ops,4,2                        ; @ops
l_.str.6:                               ; @.str.6
	.asciz	"failed to create PHY\n"

l_.str.7:                               ; @.str.7
	.asciz	"vbus"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.no_dead_strip	_rockchip_usb_phy_init
.subsections_via_symbols
