	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stih407_usb2_picophy_probe
_stih407_usb2_picophy_probe:            ## @stih407_usb2_picophy_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, %r14
	movq	(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, 40(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_reset_control_get_shared
	movq	%rax, 32(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	32(%rbx), %rdi
	jmp	LBB0_17
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_19:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_reset_control_get_exclusive
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	24(%rbx), %rdi
	jmp	LBB0_17
LBB0_6:
	movq	24(%rbx), %rdi
	callq	_reset_control_assert
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	16(%rbx), %rdi
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_8:
	movq	_PHYPARAM_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	12(%rbx), %rcx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movl	%eax, %r12d
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_10
LBB0_11:
	movq	_PHYCTRL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rcx
	addq	$8, %rcx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r12d
	leaq	L_.str.6(%rip), %rsi
LBB0_10:
	movq	%r14, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_19
LBB0_13:
	movq	_stih407_usb2_picophy_data@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_phy_create
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r15, %rdi
	jmp	LBB0_17
LBB0_15:
	movq	%r15, (%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_phy_set_drvdata
	movq	_of_phy_simple_xlate@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_devm_of_phy_provider_register
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	%rbx, %rdi
	jmp	LBB0_17
LBB0_18:
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%r12d, %r12d
	jmp	LBB0_19
	.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	"global"

L_.str.1:                               ## @.str.1
	.asciz	"failed to ctrl picoPHY reset\n"

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

L_.str.3:                               ## @.str.3
	.asciz	"st,syscfg"

L_.str.4:                               ## @.str.4
	.asciz	"No syscfg phandle specified\n"

	.comm	_PHYPARAM_REG,4,2               ## @PHYPARAM_REG
L_.str.5:                               ## @.str.5
	.asciz	"can't get phyparam offset (%d)\n"

	.comm	_PHYCTRL_REG,4,2                ## @PHYCTRL_REG
L_.str.6:                               ## @.str.6
	.asciz	"can't get phyctrl offset (%d)\n"

	.comm	_stih407_usb2_picophy_data,4,2  ## @stih407_usb2_picophy_data
L_.str.7:                               ## @.str.7
	.asciz	"failed to create Display Port PHY\n"

	.comm	_of_phy_simple_xlate,4,2        ## @of_phy_simple_xlate
L_.str.8:                               ## @.str.8
	.asciz	"STiH407 USB Generic picoPHY driver probed!"

	.no_dead_strip	_stih407_usb2_picophy_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stih407_usb2_picophy_probe
_stih407_usb2_picophy_probe:            ; @stih407_usb2_picophy_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #40]
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_reset_control_get_shared
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #32]
	b	LBB0_9
LBB0_3:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_devm_reset_control_get_exclusive
	str	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #24]
	b	LBB0_9
LBB0_7:
	ldr	x0, [x20, #24]
	bl	_reset_control_assert
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_syscon_regmap_lookup_by_phandle
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.8:
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #16]
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_PTR_ERR
LBB0_10:
Lloh18:
	adrp	x8, _PHYPARAM_REG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PHYPARAM_REG@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	add	x3, x20, #12
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_u32_index
	cbz	w0, LBB0_12
; %bb.11:
	mov	x22, x0
	str	x22, [sp]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_4
LBB0_12:
Lloh25:
	adrp	x8, _PHYCTRL_REG@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PHYCTRL_REG@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	add	x3, x20, #8
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_of_property_read_u32_index
	cbz	w0, LBB0_14
; %bb.13:
	mov	x22, x0
	str	x22, [sp]
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_4
LBB0_14:
Lloh32:
	adrp	x2, _stih407_usb2_picophy_data@GOTPAGE
Lloh33:
	ldr	x2, [x2, _stih407_usb2_picophy_data@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, #0
	bl	_devm_phy_create
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.15:
Lloh34:
	adrp	x1, l_.str.7@PAGE
Lloh35:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x21
	b	LBB0_9
LBB0_16:
	str	x21, [x20]
	mov	x0, x21
	mov	x1, x20
	bl	_phy_set_drvdata
Lloh36:
	adrp	x8, _of_phy_simple_xlate@GOTPAGE
Lloh37:
	ldr	x8, [x8, _of_phy_simple_xlate@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_of_phy_provider_register
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.17:
	mov	x0, x20
	b	LBB0_9
LBB0_18:
Lloh39:
	adrp	x1, l_.str.8@PAGE
Lloh40:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w22, #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 AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.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	"global"

l_.str.1:                               ; @.str.1
	.asciz	"failed to ctrl picoPHY reset\n"

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

l_.str.3:                               ; @.str.3
	.asciz	"st,syscfg"

l_.str.4:                               ; @.str.4
	.asciz	"No syscfg phandle specified\n"

	.comm	_PHYPARAM_REG,4,2               ; @PHYPARAM_REG
l_.str.5:                               ; @.str.5
	.asciz	"can't get phyparam offset (%d)\n"

	.comm	_PHYCTRL_REG,4,2                ; @PHYCTRL_REG
l_.str.6:                               ; @.str.6
	.asciz	"can't get phyctrl offset (%d)\n"

	.comm	_stih407_usb2_picophy_data,4,2  ; @stih407_usb2_picophy_data
l_.str.7:                               ; @.str.7
	.asciz	"failed to create Display Port PHY\n"

	.comm	_of_phy_simple_xlate,4,2        ; @of_phy_simple_xlate
l_.str.8:                               ; @.str.8
	.asciz	"STiH407 USB Generic picoPHY driver probed!"

	.no_dead_strip	_stih407_usb2_picophy_probe
.subsections_via_symbols
