	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm816x_usb_phy_probe
_dm816x_usb_phy_probe:                  ## @dm816x_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_dm816x_usb_phy_id_table@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_of_match_ptr
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movq	%rax, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %r15
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, 64(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	64(%r14), %rdi
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_7:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_8:
	movl	$32, (%r14)
	movzbl	(%r15), %eax
	addl	$4, %eax
	movl	%eax, 4(%r14)
	cmpl	$44, %eax
	jne	LBB0_10
## %bb.9:
	movl	$1, 8(%r14)
LBB0_10:
	movl	(%r13), %edx
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:
	movq	%r12, 48(%r14)
	movq	%r14, %r15
	addq	$16, %r15
	movq	%r12, 40(%r14)
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, 16(%r14)
	movq	%rax, 32(%r14)
	movq	_USB_PHY_TYPE_USB2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%r14)
	movq	_dm816x_usb_phy_set_host@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	_dm816x_usb_phy_set_peripheral@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	%r15, (%rax)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	48(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_devm_clk_get
	movq	%rax, 56(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	56(%r14), %rdi
	testq	%rax, %rax
	jne	LBB0_5
## %bb.12:
	callq	_clk_prepare
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.13:
	movq	48(%r14), %rdi
	callq	_pm_runtime_enable
	movq	48(%r14), %rdi
	movq	_ops@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	callq	_devm_phy_create
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_phy_set_drvdata
	movq	48(%r14), %rdi
	movq	_of_phy_simple_xlate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_devm_of_phy_provider_register
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_20
LBB0_15:
	movq	%rbx, %rdi
	jmp	LBB0_5
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_17:
	xorl	%ebx, %ebx
LBB0_18:
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	%r15, %rdi
	callq	_usb_add_phy_dev
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_dm816x_usb_phy_id_table,4,2    ## @dm816x_usb_phy_id_table
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"syscon"

L_.str.1:                               ## @.str.1
	.asciz	"dm8168_usb_phy"

	.comm	_USB_PHY_TYPE_USB2,4,2          ## @USB_PHY_TYPE_USB2
	.comm	_dm816x_usb_phy_set_host,4,2    ## @dm816x_usb_phy_set_host
	.comm	_dm816x_usb_phy_set_peripheral,4,2 ## @dm816x_usb_phy_set_peripheral
L_.str.2:                               ## @.str.2
	.asciz	"refclk"

	.comm	_ops,4,2                        ## @ops
	.comm	_of_phy_simple_xlate,4,2        ## @of_phy_simple_xlate
	.no_dead_strip	_dm816x_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 dm816x_usb_phy_probe
_dm816x_usb_phy_probe:                  ; @dm816x_usb_phy_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	x20, x0
Lloh0:
	adrp	x8, _dm816x_usb_phy_id_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dm816x_usb_phy_id_table@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_of_match_ptr
	mov	x1, x20
	bl	_of_match_device
	cbz	x0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_15
; %bb.2:
	mov	x19, x0
Lloh5:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	cbz	x0, LBB0_7
; %bb.3:
	mov	x21, x0
	ldr	w0, [x20]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syscon_regmap_lookup_by_phandle
	str	x0, [x19, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.4:
	ldr	x0, [x19, #64]
LBB0_5:
	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_6:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_7:
Lloh12:
	adrp	x8, _ENOENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_16
LBB0_8:
	mov	w8, #32
	ldrb	w9, [x21]
	add	w9, w9, #4
	stp	w8, w9, [x19]
	cmp	w9, #44
	b.ne	LBB0_10
; %bb.9:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_10:
	ldr	w2, [x22]
	mov	x0, x20
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_15
; %bb.11:
	str	x20, [x19, #48]
Lloh14:
	adrp	x8, l_.str.1@PAGE
Lloh15:
	add	x8, x8, l_.str.1@PAGEOFF
	mov	x21, x19
	str	x8, [x21, #16]!
Lloh16:
	adrp	x8, _USB_PHY_TYPE_USB2@GOTPAGE
Lloh17:
	ldr	x8, [x8, _USB_PHY_TYPE_USB2@GOTPAGEOFF]
	stp	x0, x20, [x19, #32]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #24]
Lloh19:
	adrp	x8, _dm816x_usb_phy_set_host@GOTPAGE
Lloh20:
	ldr	x8, [x8, _dm816x_usb_phy_set_host@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _dm816x_usb_phy_set_peripheral@GOTPAGE
Lloh23:
	ldr	x9, [x9, _dm816x_usb_phy_set_peripheral@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
	str	x21, [x0]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	ldr	x0, [x19, #48]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_devm_clk_get
	str	x0, [x19, #56]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19, #56]
	cbnz	x8, LBB0_5
; %bb.12:
	bl	_clk_prepare
	cbnz	w0, LBB0_17
; %bb.13:
	ldr	x0, [x19, #48]
	bl	_pm_runtime_enable
	ldr	x0, [x19, #48]
Lloh27:
	adrp	x2, _ops@GOTPAGE
Lloh28:
	ldr	x2, [x2, _ops@GOTPAGEOFF]
	mov	x1, #0
	bl	_devm_phy_create
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.14:
	mov	x0, x20
	b	LBB0_5
LBB0_15:
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	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_18:
	mov	x0, x20
	mov	x1, x19
	bl	_phy_set_drvdata
	ldr	x0, [x19, #48]
Lloh31:
	adrp	x8, _of_phy_simple_xlate@GOTPAGE
Lloh32:
	ldr	x8, [x8, _of_phy_simple_xlate@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	bl	_devm_of_phy_provider_register
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_20
; %bb.19:
	mov	x0, x19
	b	LBB0_5
LBB0_20:
	mov	x0, x21
	bl	_usb_add_phy_dev
	mov	w0, #0
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_dm816x_usb_phy_id_table,4,2    ; @dm816x_usb_phy_id_table
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"syscon"

l_.str.1:                               ; @.str.1
	.asciz	"dm8168_usb_phy"

	.comm	_USB_PHY_TYPE_USB2,4,2          ; @USB_PHY_TYPE_USB2
	.comm	_dm816x_usb_phy_set_host,4,2    ; @dm816x_usb_phy_set_host
	.comm	_dm816x_usb_phy_set_peripheral,4,2 ; @dm816x_usb_phy_set_peripheral
l_.str.2:                               ; @.str.2
	.asciz	"refclk"

	.comm	_ops,4,2                        ; @ops
	.comm	_of_phy_simple_xlate,4,2        ; @of_phy_simple_xlate
	.no_dead_strip	_dm816x_usb_phy_probe
.subsections_via_symbols
