	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_pipe3_get_sysctrl
_ti_pipe3_get_sysctrl:                  ## @ti_pipe3_get_sysctrl
	.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, %r12
	movq	64(%rdi), %r14
	movq	(%r14), %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, 48(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	$0, 48(%r12)
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rdi
	callq	_of_find_device_by_node
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, 40(%r12)
	jmp	LBB0_10
LBB0_2:
	leaq	56(%r12), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_of_property_read_u32_index
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_20
LBB0_6:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_8:
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_20
LBB0_4:
	cmpq	$0, 48(%r12)
	je	LBB0_5
LBB0_10:
	movq	(%r12), %rax
	movq	_PIPE3_MODE_PCIE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.11:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, 32(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.12:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	$0, 32(%r12)
LBB0_13:
	movq	(%r12), %rax
	movq	_PIPE3_MODE_SATA@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.14:
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, 16(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	$0, 16(%r12)
	jmp	LBB0_22
LBB0_16:
	leaq	24(%r12), %rcx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_of_property_read_u32_index
	testq	%rax, %rax
	je	LBB0_13
## %bb.17:
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_20
LBB0_18:
	addq	$8, %r12
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	movq	%r12, %rcx
	callq	_of_property_read_u32_index
	testq	%rax, %rax
	je	LBB0_22
## %bb.19:
	leaq	L_.str.11(%rip), %rsi
LBB0_20:
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_21:
	subl	(%rax), %ebx
LBB0_22:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"syscon-phy-power"

L_.str.1:                               ## @.str.1
	.asciz	"can't get syscon-phy-power, using control device\n"

L_.str.2:                               ## @.str.2
	.asciz	"couldn't get power reg. offset\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"ctrl-module"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to get control device phandle\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to get control device\n"

	.comm	_PIPE3_MODE_PCIE,8,3            ## @PIPE3_MODE_PCIE
L_.str.6:                               ## @.str.6
	.asciz	"syscon-pcs"

L_.str.7:                               ## @.str.7
	.asciz	"can't get syscon-pcs, using omap control\n"

L_.str.8:                               ## @.str.8
	.asciz	"couldn't get pcie pcs reg. offset\n"

	.comm	_PIPE3_MODE_SATA,8,3            ## @PIPE3_MODE_SATA
L_.str.9:                               ## @.str.9
	.asciz	"syscon-pllreset"

L_.str.10:                              ## @.str.10
	.asciz	"can't get syscon-pllreset, sata dpll won't idle\n"

L_.str.11:                              ## @.str.11
	.asciz	"couldn't get pllreset reg. offset\n"

	.no_dead_strip	_ti_pipe3_get_sysctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ti_pipe3_get_sysctrl
_ti_pipe3_get_sysctrl:                  ; @ti_pipe3_get_sysctrl
	.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
	ldr	x19, [x0, #64]
	ldr	x21, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_syscon_regmap_lookup_by_phandle
	str	x0, [x20, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	str	xzr, [x20, #48]
LBB0_2:
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_7
; %bb.3:
	bl	_of_find_device_by_node
	cbz	x0, LBB0_8
; %bb.4:
	str	x0, [x20, #40]
	b	LBB0_10
LBB0_5:
	add	x3, x20, #56
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	w2, #1
	bl	_of_property_read_u32_index
	cbz	x0, LBB0_9
; %bb.6:
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_21
LBB0_7:
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_21
LBB0_8:
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_21
LBB0_9:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_2
LBB0_10:
	ldr	x8, [x20]
Lloh14:
	adrp	x9, _PIPE3_MODE_PCIE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PIPE3_MODE_PCIE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
Lloh17:
	adrp	x1, l_.str.6@PAGE
Lloh18:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_syscon_regmap_lookup_by_phandle
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_17
; %bb.12:
Lloh19:
	adrp	x1, l_.str.7@PAGE
Lloh20:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	str	xzr, [x20, #32]
LBB0_13:
	ldr	x8, [x20]
Lloh21:
	adrp	x9, _PIPE3_MODE_SATA@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PIPE3_MODE_SATA@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.14:
Lloh24:
	adrp	x1, l_.str.9@PAGE
Lloh25:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	bl	_syscon_regmap_lookup_by_phandle
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_19
; %bb.15:
Lloh26:
	adrp	x1, l_.str.10@PAGE
Lloh27:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #0
	str	xzr, [x20, #16]
	b	LBB0_22
LBB0_16:
	mov	w0, #0
	b	LBB0_22
LBB0_17:
	add	x3, x20, #24
Lloh28:
	adrp	x1, l_.str.6@PAGE
Lloh29:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	mov	w2, #1
	bl	_of_property_read_u32_index
	cbz	x0, LBB0_13
; %bb.18:
Lloh30:
	adrp	x1, l_.str.8@PAGE
Lloh31:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_21
LBB0_19:
	add	x3, x20, #8
Lloh32:
	adrp	x1, l_.str.9@PAGE
Lloh33:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	mov	w2, #1
	bl	_of_property_read_u32_index
	cbz	x0, LBB0_22
; %bb.20:
Lloh34:
	adrp	x1, l_.str.11@PAGE
Lloh35:
	add	x1, x1, l_.str.11@PAGEOFF
LBB0_21:
	mov	x0, x19
	bl	_dev_err
Lloh36:
	adrp	x8, _EINVAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_22:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"syscon-phy-power"

l_.str.1:                               ; @.str.1
	.asciz	"can't get syscon-phy-power, using control device\n"

l_.str.2:                               ; @.str.2
	.asciz	"couldn't get power reg. offset\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"ctrl-module"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to get control device phandle\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to get control device\n"

	.comm	_PIPE3_MODE_PCIE,8,3            ; @PIPE3_MODE_PCIE
l_.str.6:                               ; @.str.6
	.asciz	"syscon-pcs"

l_.str.7:                               ; @.str.7
	.asciz	"can't get syscon-pcs, using omap control\n"

l_.str.8:                               ; @.str.8
	.asciz	"couldn't get pcie pcs reg. offset\n"

	.comm	_PIPE3_MODE_SATA,8,3            ; @PIPE3_MODE_SATA
l_.str.9:                               ; @.str.9
	.asciz	"syscon-pllreset"

l_.str.10:                              ; @.str.10
	.asciz	"can't get syscon-pllreset, sata dpll won't idle\n"

l_.str.11:                              ; @.str.11
	.asciz	"couldn't get pllreset reg. offset\n"

	.no_dead_strip	_ti_pipe3_get_sysctrl
.subsections_via_symbols
