	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_pipe3_get_clk
_ti_pipe3_get_clk:                      ## @ti_pipe3_get_clk
	.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	48(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 40(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	(%r12), %rax
	movq	_PIPE3_MODE_SATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.2:
	movq	40(%r12), %rdi
	jmp	LBB0_3
LBB0_4:
	movq	(%r12), %rax
	movq	_PIPE3_MODE_SATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	movq	%rax, 32(%r12)
LBB0_8:
	movq	(%r12), %rax
	movq	_PIPE3_MODE_PCIE@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_10
## %bb.9:
	cmpq	$0, 24(%r12)
	je	LBB0_13
LBB0_10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 16(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 32(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	32(%r12), %rdi
	jmp	LBB0_3
LBB0_12:
	movq	(%r12), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_23
LBB0_13:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_15
LBB0_23:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	movq	%rax, 8(%r12)
LBB0_24:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%r15, %rdi
	movl	$1500000000, %esi               ## imm = 0x59682F00
	callq	_clk_set_rate
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_15
LBB0_18:
	movq	%r15, %rdi
	movl	$100000000, %esi                ## imm = 0x5F5E100
	callq	_clk_set_rate
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	leaq	L_.str.11(%rip), %rsi
LBB0_15:
	movq	%r14, %rdi
	callq	_dev_err
	movq	%r15, %rdi
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_20:
	movq	%r15, %rdi
	movl	$100000000, %esi                ## imm = 0x5F5E100
	callq	_clk_set_rate
	leaq	L_.str.12(%rip), %rsi
	movq	%r14, %rdi
	callq	_devm_clk_get
	movq	%rax, 8(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_21
## %bb.22:
	leaq	L_.str.13(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	8(%r12), %rdi
	jmp	LBB0_3
LBB0_21:
	xorl	%ebx, %ebx
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refclk"

L_.str.1:                               ## @.str.1
	.asciz	"unable to get refclk\n"

	.comm	_PIPE3_MODE_SATA,8,3            ## @PIPE3_MODE_SATA
L_.str.2:                               ## @.str.2
	.asciz	"wkupclk"

L_.str.3:                               ## @.str.3
	.asciz	"unable to get wkupclk\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PIPE3_MODE_PCIE,8,3            ## @PIPE3_MODE_PCIE
L_.str.4:                               ## @.str.4
	.asciz	"sysclk"

L_.str.5:                               ## @.str.5
	.asciz	"unable to get sysclk\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.6:                               ## @.str.6
	.asciz	"dpll_ref"

L_.str.7:                               ## @.str.7
	.asciz	"unable to get dpll ref clk\n"

L_.str.8:                               ## @.str.8
	.asciz	"dpll_ref_m2"

L_.str.9:                               ## @.str.9
	.asciz	"unable to get dpll ref m2 clk\n"

L_.str.10:                              ## @.str.10
	.asciz	"phy-div"

L_.str.11:                              ## @.str.11
	.asciz	"unable to get phy-div clk\n"

L_.str.12:                              ## @.str.12
	.asciz	"div-clk"

L_.str.13:                              ## @.str.13
	.asciz	"unable to get div-clk\n"

	.no_dead_strip	_ti_pipe3_get_clk
.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_clk
_ti_pipe3_get_clk:                      ; @ti_pipe3_get_clk
	.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	x20, [x0, #48]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x8, [x19]
Lloh4:
	adrp	x9, _PIPE3_MODE_SATA@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PIPE3_MODE_SATA@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.2:
	ldr	x0, [x19, #40]
	b	LBB0_21
LBB0_3:
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _PIPE3_MODE_SATA@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PIPE3_MODE_SATA@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
LBB0_4:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	str	x0, [x19, #32]
LBB0_5:
	ldr	x8, [x19]
Lloh13:
	adrp	x21, _PIPE3_MODE_PCIE@GOTPAGE
Lloh14:
	ldr	x21, [x21, _PIPE3_MODE_PCIE@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_12
LBB0_7:
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_11
; %bb.8:
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_9:
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.10:
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #32]
	b	LBB0_21
LBB0_11:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_14
LBB0_12:
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.13:
Lloh28:
	adrp	x1, l_.str.7@PAGE
Lloh29:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_20
LBB0_14:
Lloh30:
	adrp	x8, _ENODEV@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #8]
LBB0_15:
	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_16:
	mov	x0, x21
	mov	w1, #12032
	movk	w1, #22888, lsl #16
	bl	_clk_set_rate
Lloh33:
	adrp	x1, l_.str.8@PAGE
Lloh34:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.17:
Lloh35:
	adrp	x1, l_.str.9@PAGE
Lloh36:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_20
LBB0_18:
	mov	x0, x21
	mov	w1, #57600
	movk	w1, #1525, lsl #16
	bl	_clk_set_rate
Lloh37:
	adrp	x1, l_.str.10@PAGE
Lloh38:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_22
; %bb.19:
Lloh39:
	adrp	x1, l_.str.11@PAGE
Lloh40:
	add	x1, x1, l_.str.11@PAGEOFF
LBB0_20:
	mov	x0, x20
	bl	_dev_err
	mov	x0, x21
LBB0_21:
	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_22:
	mov	x0, x21
	mov	w1, #57600
	movk	w1, #1525, lsl #16
	bl	_clk_set_rate
Lloh41:
	adrp	x1, l_.str.12@PAGE
Lloh42:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.23:
Lloh43:
	adrp	x1, l_.str.13@PAGE
Lloh44:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #8]
	b	LBB0_21
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refclk"

l_.str.1:                               ; @.str.1
	.asciz	"unable to get refclk\n"

	.comm	_PIPE3_MODE_SATA,8,3            ; @PIPE3_MODE_SATA
l_.str.2:                               ; @.str.2
	.asciz	"wkupclk"

l_.str.3:                               ; @.str.3
	.asciz	"unable to get wkupclk\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PIPE3_MODE_PCIE,8,3            ; @PIPE3_MODE_PCIE
l_.str.4:                               ; @.str.4
	.asciz	"sysclk"

l_.str.5:                               ; @.str.5
	.asciz	"unable to get sysclk\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.6:                               ; @.str.6
	.asciz	"dpll_ref"

l_.str.7:                               ; @.str.7
	.asciz	"unable to get dpll ref clk\n"

l_.str.8:                               ; @.str.8
	.asciz	"dpll_ref_m2"

l_.str.9:                               ; @.str.9
	.asciz	"unable to get dpll ref m2 clk\n"

l_.str.10:                              ; @.str.10
	.asciz	"phy-div"

l_.str.11:                              ; @.str.11
	.asciz	"unable to get phy-div clk\n"

l_.str.12:                              ; @.str.12
	.asciz	"div-clk"

l_.str.13:                              ; @.str.13
	.asciz	"unable to get div-clk\n"

	.no_dead_strip	_ti_pipe3_get_clk
.subsections_via_symbols
