	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function serdes_am654_clk_register
_serdes_am654_clk_register:             ## @serdes_am654_clk_register
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movq	16(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edi
	callq	_syscon_node_to_regmap
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	%rbx, %rdi
LBB0_4:
	callq	_PTR_ERR
	movl	%eax, %r13d
	jmp	LBB0_16
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_18
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	%rbx, %rdi
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_17
LBB0_7:
	movq	%r15, %rdi
	callq	_of_clk_get_parent_count
	cmpl	$1, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	ja	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_9:
	movl	%eax, %r13d
	leal	(,%r13,8), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%rax, %rbx
	movq	%rax, %rsi
	movq	%r13, %r15
	movl	%r13d, %edx
	callq	_of_clk_parent_fill
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_of_get_address
	testq	%rax, %rax
	je	LBB0_19
## %bb.11:
	leaq	24(%r14), %r13
	movl	(%rax), %edi
	callq	_be32_to_cpu
	movq	_serdes_am654_clk_mux_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 56(%r14)
	movq	_CLK_SET_RATE_NO_REPARENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%r14)
	movq	%rbx, 24(%r14)
	movl	%r15d, 32(%r14)
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 40(%r14)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, 16(%r14)
	movl	%eax, (%r14)
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, 4(%r14)
	movq	%r14, %rsi
	addq	$8, %rsi
	movq	%r13, 8(%r14)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_devm_clk_register
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_20
## %bb.12:
	movq	%r14, %rdi
	jmp	LBB0_4
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_14:
	xorl	%r13d, %r13d
LBB0_15:
	subl	(%rax), %r13d
LBB0_16:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_17:
	callq	_of_node_put
LBB0_18:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_20:
	movq	(%r12), %rax
	movslq	%ebx, %rcx
	movq	%r14, (%rax,%rcx,8)
	xorl	%r13d, %r13d
	jmp	LBB0_16
	.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	"ti,serdes-clk"

L_.str.1:                               ## @.str.1
	.asciz	"Fail to get serdes-clk node\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"Fail to get Syscon regmap\n"

L_.str.3:                               ## @.str.3
	.asciz	"SERDES clock must have parents\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_serdes_am654_clk_mux_ops,4,2   ## @serdes_am654_clk_mux_ops
	.comm	_CLK_SET_RATE_NO_REPARENT,4,2   ## @CLK_SET_RATE_NO_REPARENT
	.no_dead_strip	_serdes_am654_clk_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function serdes_am654_clk_register
_serdes_am654_clk_register:             ; @serdes_am654_clk_register
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	ldp	x22, x26, [x0, #8]
Lloh0:
	adrp	x28, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x28, [x28, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x28]
	mov	x0, x22
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x24, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x26
	mov	w2, #0
	bl	_of_parse_phandle
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w0, [x19]
	bl	_syscon_node_to_regmap
	mov	x25, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.3:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	mov	x0, x25
LBB0_4:
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_16
LBB0_5:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_17
LBB0_6:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_err
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_15
LBB0_7:
	mov	x0, x26
	bl	_of_clk_get_parent_count
	cmp	w0, #1
	b.hi	LBB0_10
; %bb.8:
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x22
	bl	_dev_err
LBB0_9:
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
	mov	x27, x0
	lsl	w1, w0, #3
	ldr	w2, [x28]
	mov	x0, x22
	bl	_devm_kzalloc
	cbz	x0, LBB0_14
; %bb.11:
	mov	x28, x0
	mov	x0, x26
	mov	x1, x28
	mov	x2, x27
	bl	_of_clk_parent_fill
	mov	x0, x19
	mov	w1, #0
	mov	x2, #0
	mov	x3, #0
	bl	_of_get_address
	cbz	x0, LBB0_9
; %bb.12:
	add	x26, x24, #24
	ldr	w0, [x0]
	bl	_be32_to_cpu
Lloh17:
	adrp	x8, _serdes_am654_clk_mux_ops@GOTPAGE
Lloh18:
	ldr	x8, [x8, _serdes_am654_clk_mux_ops@GOTPAGEOFF]
	str	x8, [x24, #56]
Lloh19:
	adrp	x8, _CLK_SET_RATE_NO_REPARENT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _CLK_SET_RATE_NO_REPARENT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x24, #48]
	str	w27, [x24, #32]
	str	x23, [x24, #40]
	stp	x25, x28, [x24, #16]
	stp	w0, w20, [x24]
	str	x26, [x24, #8]!
	mov	x0, x22
	mov	x1, x24
	bl	_devm_clk_register
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.13:
	mov	x0, x23
	b	LBB0_4
LBB0_14:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_16:
	mov	x0, x19
	bl	_of_node_put
LBB0_17:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
	mov	w22, #0
	ldr	x8, [x21]
	str	x23, [x8, w20, sxtw #3]
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.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	"ti,serdes-clk"

l_.str.1:                               ; @.str.1
	.asciz	"Fail to get serdes-clk node\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"Fail to get Syscon regmap\n"

l_.str.3:                               ; @.str.3
	.asciz	"SERDES clock must have parents\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_serdes_am654_clk_mux_ops,4,2   ; @serdes_am654_clk_mux_ops
	.comm	_CLK_SET_RATE_NO_REPARENT,4,2   ; @CLK_SET_RATE_NO_REPARENT
	.no_dead_strip	_serdes_am654_clk_register
.subsections_via_symbols
