	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpts_of_mux_clk_setup
_cpts_of_mux_clk_setup:                 ## @cpts_of_mux_clk_setup
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movq	%rdi, %r14
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	subl	(%rcx), %r13d
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_of_get_child_by_name
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_of_clk_get_parent_count
	movl	(%r14), %edi
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movl	%eax, %r12d
	leal	(,%r12,8), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_devm_kzalloc
	movq	%rax, %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	leal	(,%r12,4), %esi
	movl	(%r13), %edx
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.4:
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_of_clk_parent_fill
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	movl	%r12d, %r8d
	callq	_of_property_read_variable_u32_array
	testl	%eax, %eax
	js	LBB0_10
## %bb.5:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movq	8(%rbx), %r9
	subq	$8, %rsp
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	%r14
	pushq	$0
	pushq	$31
	pushq	$0
	callq	_clk_hw_register_mux_table
	addq	$48, %rsp
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	movq	%r14, %rdi
	callq	_PTR_ERR
LBB0_10:
	movl	%eax, %r13d
	jmp	LBB0_11
LBB0_7:
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	callq	_dev_err
	jmp	LBB0_11
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_11:
	movq	%r15, %rdi
	callq	_of_node_put
	movl	%r13d, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	(%rbx), %edi
	movq	_clk_hw_unregister_mux@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdx
	callq	_devm_add_action_or_reset
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movl	%eax, %r13d
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
LBB0_15:
	movl	%r13d, %edx
	jmp	LBB0_8
LBB0_16:
	movq	_of_clk_hw_simple_get@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_of_clk_add_hw_provider
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.17:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	movq	_of_clk_del_provider@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdx
	callq	_devm_add_action_or_reset
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	%eax, %r13d
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_15
LBB0_19:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cpts-refclk-mux"

L_.str.1:                               ## @.str.1
	.asciz	"mux-clock %s must have parents\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"ti,mux-tbl"

	.comm	_clk_hw_unregister_mux,8,3      ## @clk_hw_unregister_mux
L_.str.3:                               ## @.str.3
	.asciz	"add clkmux unreg action %d"

	.comm	_of_clk_hw_simple_get,4,2       ## @of_clk_hw_simple_get
	.comm	_of_clk_del_provider,8,3        ## @of_clk_del_provider
L_.str.4:                               ## @.str.4
	.asciz	"add clkmux provider unreg action %d"

	.no_dead_strip	_cpts_of_mux_clk_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpts_of_mux_clk_setup
_cpts_of_mux_clk_setup:                 ; @cpts_of_mux_clk_setup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x8, x1
	mov	x20, x0
Lloh0:
	adrp	x9, _EINVAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x9]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_of_get_child_by_name
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_of_clk_get_parent_count
	mov	x22, x0
	ldr	w0, [x20]
	cbz	w22, LBB0_5
; %bb.2:
	lsl	w1, w22, #3
Lloh5:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_devm_kzalloc
	mov	x23, x0
	ldr	w0, [x20]
	lsl	w1, w22, #2
	ldr	w2, [x21]
	bl	_devm_kzalloc
	cmp	x0, #0
	ccmp	x23, #0, #4, ne
	b.ne	LBB0_7
; %bb.3:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_4:
	mov	w21, #0
	b	LBB0_12
LBB0_5:
	neg	w21, w21
	ldr	w2, [x19]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	bl	_dev_err
	b	LBB0_11
LBB0_7:
	mov	x24, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_of_clk_parent_fill
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x24
	mov	x3, x22
	mov	x4, x22
	bl	_of_property_read_variable_u32_array
	tbnz	w0, #31, LBB0_10
; %bb.8:
	ldr	w0, [x20]
	ldr	w1, [x19]
	ldr	x5, [x20, #8]
	stp	x24, xzr, [sp, #8]
	str	wzr, [sp]
	mov	x2, x23
	mov	x3, x22
	mov	w4, #0
	mov	w6, #0
	mov	w7, #31
	bl	_clk_hw_register_mux_table
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.9:
	mov	x0, x22
	bl	_PTR_ERR
LBB0_10:
	mov	x21, x0
LBB0_11:
	mov	x0, x19
	bl	_of_node_put
LBB0_12:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
LBB0_13:
	ldr	w0, [x20]
Lloh14:
	adrp	x8, _clk_hw_unregister_mux@GOTPAGE
Lloh15:
	ldr	x8, [x8, _clk_hw_unregister_mux@GOTPAGEOFF]
Lloh16:
	ldr	x1, [x8]
	mov	x2, x22
	bl	_devm_add_action_or_reset
	cbz	w0, LBB0_16
; %bb.14:
	mov	x21, x0
	ldr	w0, [x20]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_15:
	mov	x2, x21
	b	LBB0_6
LBB0_16:
Lloh19:
	adrp	x8, _of_clk_hw_simple_get@GOTPAGE
Lloh20:
	ldr	x8, [x8, _of_clk_hw_simple_get@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_of_clk_add_hw_provider
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.17:
	ldr	w0, [x20]
Lloh22:
	adrp	x8, _of_clk_del_provider@GOTPAGE
Lloh23:
	ldr	x8, [x8, _of_clk_del_provider@GOTPAGEOFF]
Lloh24:
	ldr	x1, [x8]
	mov	x2, x19
	bl	_devm_add_action_or_reset
	mov	x21, x0
	cbz	w0, LBB0_12
; %bb.18:
	ldr	w0, [x20]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_15
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cpts-refclk-mux"

l_.str.1:                               ; @.str.1
	.asciz	"mux-clock %s must have parents\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"ti,mux-tbl"

	.comm	_clk_hw_unregister_mux,8,3      ; @clk_hw_unregister_mux
l_.str.3:                               ; @.str.3
	.asciz	"add clkmux unreg action %d"

	.comm	_of_clk_hw_simple_get,4,2       ; @of_clk_hw_simple_get
	.comm	_of_clk_del_provider,8,3        ; @of_clk_del_provider
l_.str.4:                               ; @.str.4
	.asciz	"add clkmux provider unreg action %d"

	.no_dead_strip	_cpts_of_mux_clk_setup
.subsections_via_symbols
