	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_gen3_phy_usb3_probe
_rcar_gen3_phy_usb3_probe:              ## @rcar_gen3_phy_usb3_probe
	.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
	movq	%rdi, %r15
	cmpl	$0, (%rdi)
	je	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 24(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.22:
	movq	24(%r14), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_clk_get_rate
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, (%r14)
	movq	%rbx, %rdi
	callq	_clk_disable_unprepare
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_clk_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:
	movq	%rbx, %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_clk_get_rate
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, 4(%r14)
	movq	%rbx, %rdi
	callq	_clk_disable_unprepare
LBB0_12:
	cmpl	$0, (%r14)
	jne	LBB0_15
## %bb.13:
	cmpl	$0, 4(%r14)
	je	LBB0_14
LBB0_15:
	movq	%r15, %rdi
	callq	_pm_runtime_enable
	movq	_rcar_gen3_phy_usb3_ops@GOTPCREL(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_devm_phy_create
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	8(%r14), %rdi
	jmp	LBB0_19
LBB0_17:
	movl	(%r15), %edi
	movq	%r14, %rdx
	addq	$16, %rdx
	leaq	L_.str.5(%rip), %rsi
	callq	_of_property_read_u32
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	8(%r14), %rdi
	movq	%r14, %rsi
	callq	_phy_set_drvdata
	movq	_of_phy_simple_xlate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_devm_of_phy_provider_register
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_21
## %bb.18:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	%r14, %rdi
LBB0_19:
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_20:
	movq	%r15, %rdi
	callq	_pm_runtime_disable
	jmp	LBB0_21
LBB0_14:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"This driver needs device tree\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
L_.str.1:                               ## @.str.1
	.asciz	"usb3s_clk"

L_.str.2:                               ## @.str.2
	.asciz	"usb_extal"

L_.str.3:                               ## @.str.3
	.asciz	"This driver needs usb3s_clk and/or usb_extal\n"

	.comm	_rcar_gen3_phy_usb3_ops,4,2     ## @rcar_gen3_phy_usb3_ops
L_.str.4:                               ## @.str.4
	.asciz	"Failed to create USB3 PHY\n"

L_.str.5:                               ## @.str.5
	.asciz	"renesas,ssc-range"

	.comm	_of_phy_simple_xlate,4,2        ## @of_phy_simple_xlate
L_.str.6:                               ## @.str.6
	.asciz	"Failed to register PHY provider\n"

	.no_dead_strip	_rcar_gen3_phy_usb3_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_gen3_phy_usb3_probe
_rcar_gen3_phy_usb3_probe:              ; @rcar_gen3_phy_usb3_probe
	.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
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x19
	bl	_devm_ioremap_resource
	str	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.3:
	ldr	x0, [x20, #24]
	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	_PTR_ERR
LBB0_4:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, 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
	ret
LBB0_8:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	mov	x21, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_11
; %bb.9:
	mov	x0, x21
	bl	_clk_prepare_enable
	cbnz	w0, LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_clk_get_rate
	cmp	w0, #0
	cset	w8, ne
	str	w8, [x20]
	mov	x0, x21
	bl	_clk_disable_unprepare
LBB0_11:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	mov	x21, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_14
; %bb.12:
	mov	x0, x21
	bl	_clk_prepare_enable
	cbnz	w0, LBB0_14
; %bb.13:
	mov	x0, x21
	bl	_clk_get_rate
	cmp	w0, #0
	cset	w8, ne
	str	w8, [x20, #4]
	mov	x0, x21
	bl	_clk_disable_unprepare
LBB0_14:
	ldr	w8, [x20]
	cbnz	w8, LBB0_16
; %bb.15:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_22
LBB0_16:
	mov	x0, x19
	bl	_pm_runtime_enable
Lloh16:
	adrp	x2, _rcar_gen3_phy_usb3_ops@GOTPAGE
Lloh17:
	ldr	x2, [x2, _rcar_gen3_phy_usb3_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, #0
	bl	_devm_phy_create
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.17:
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #8]
	b	LBB0_20
LBB0_18:
	ldr	w0, [x19]
	add	x2, x20, #16
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_of_property_read_u32
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	x0, [x20, #8]
	mov	x1, x20
	bl	_phy_set_drvdata
Lloh22:
	adrp	x8, _of_phy_simple_xlate@GOTPAGE
Lloh23:
	ldr	x8, [x8, _of_phy_simple_xlate@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_of_phy_provider_register
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_23
; %bb.19:
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
LBB0_20:
	bl	_PTR_ERR
	mov	x20, x0
LBB0_21:
	mov	x0, x19
	bl	_pm_runtime_disable
	b	LBB0_7
LBB0_22:
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_21
LBB0_23:
	mov	w20, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"This driver needs device tree\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
l_.str.1:                               ; @.str.1
	.asciz	"usb3s_clk"

l_.str.2:                               ; @.str.2
	.asciz	"usb_extal"

l_.str.3:                               ; @.str.3
	.asciz	"This driver needs usb3s_clk and/or usb_extal\n"

	.comm	_rcar_gen3_phy_usb3_ops,4,2     ; @rcar_gen3_phy_usb3_ops
l_.str.4:                               ; @.str.4
	.asciz	"Failed to create USB3 PHY\n"

l_.str.5:                               ; @.str.5
	.asciz	"renesas,ssc-range"

	.comm	_of_phy_simple_xlate,4,2        ; @of_phy_simple_xlate
l_.str.6:                               ; @.str.6
	.asciz	"Failed to register PHY provider\n"

	.no_dead_strip	_rcar_gen3_phy_usb3_probe
.subsections_via_symbols
