	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pistachio_usb_phy_probe
_pistachio_usb_phy_probe:               ## @pistachio_usb_phy_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, (%rax)
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, 24(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r12), %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	24(%r12), %rdi
	callq	_PTR_ERR
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	24(%r12), %rdi
	jmp	LBB0_12
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_clk_get
	movq	%rax, 16(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r12), %rbx
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	16(%r12), %rdi
	callq	_PTR_ERR
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	16(%r12), %rdi
	jmp	LBB0_12
LBB0_6:
	movl	(%rbx), %edi
	movq	%r12, %rdx
	addq	$8, %rdx
	leaq	L_.str.4(%rip), %rsi
	callq	_of_property_read_u32
	movq	(%r12), %rdi
	testl	%eax, %eax
	js	LBB0_7
## %bb.9:
	movq	_pistachio_usb_phy_ops@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_devm_phy_create
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	(%r12), %rbx
	movq	%r15, %rdi
	callq	_PTR_ERR
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_11
LBB0_7:
	movl	%eax, %r14d
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_8
LBB0_13:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_phy_set_drvdata
	movq	(%r12), %rdi
	movq	_of_phy_simple_xlate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_devm_of_phy_provider_register
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.14:
	movq	(%r12), %rbx
	movq	%r15, %rdi
	callq	_PTR_ERR
	leaq	L_.str.7(%rip), %rsi
LBB0_11:
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r15, %rdi
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
	.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	"img,cr-top"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to get CR_TOP registers: %ld\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"Failed to get usb_phy clock: %ld\n"

L_.str.4:                               ## @.str.4
	.asciz	"img,refclk"

L_.str.5:                               ## @.str.5
	.asciz	"No reference clock selector specified\n"

	.comm	_pistachio_usb_phy_ops,4,2      ## @pistachio_usb_phy_ops
L_.str.6:                               ## @.str.6
	.asciz	"Failed to create PHY: %ld\n"

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

	.no_dead_strip	_pistachio_usb_phy_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pistachio_usb_phy_probe
_pistachio_usb_phy_probe:               ; @pistachio_usb_phy_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	str	x20, [x0]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syscon_regmap_lookup_by_phandle
	str	x0, [x19, #24]
	bl	_IS_ERR
	ldr	x20, [x19]
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x0, [x19, #24]
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #24]
	b	LBB0_14
LBB0_3:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #16]
	bl	_IS_ERR
	ldr	x20, [x19]
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x0, [x19, #16]
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #16]
	b	LBB0_14
LBB0_7:
	ldr	w0, [x20]
	add	x2, x19, #8
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_of_property_read_u32
	mov	x20, x0
	ldr	x0, [x19]
	tbnz	w20, #31, LBB0_10
; %bb.8:
Lloh16:
	adrp	x2, _pistachio_usb_phy_ops@GOTPAGE
Lloh17:
	ldr	x2, [x2, _pistachio_usb_phy_ops@GOTPAGEOFF]
	mov	x1, #0
	bl	_devm_phy_create
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x19, [x19]
	mov	x0, x20
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_13
LBB0_10:
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_err
	b	LBB0_4
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	bl	_phy_set_drvdata
	ldr	x0, [x19]
Lloh22:
	adrp	x8, _of_phy_simple_xlate@GOTPAGE
Lloh23:
	ldr	x8, [x8, _of_phy_simple_xlate@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_devm_of_phy_provider_register
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.12:
	ldr	x19, [x19]
	mov	x0, x20
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh25:
	adrp	x1, l_.str.7@PAGE
Lloh26:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_PTR_ERR
LBB0_15:
	mov	w20, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.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	"img,cr-top"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to get CR_TOP registers: %ld\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"Failed to get usb_phy clock: %ld\n"

l_.str.4:                               ; @.str.4
	.asciz	"img,refclk"

l_.str.5:                               ; @.str.5
	.asciz	"No reference clock selector specified\n"

	.comm	_pistachio_usb_phy_ops,4,2      ; @pistachio_usb_phy_ops
l_.str.6:                               ; @.str.6
	.asciz	"Failed to create PHY: %ld\n"

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

	.no_dead_strip	_pistachio_usb_phy_probe
.subsections_via_symbols
