	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_md_register_clk_provider
_fimc_md_register_clk_provider:         ## @fimc_md_register_clk_provider
	.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
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	_FIMC_MAX_CAMCLKS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.1:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r15), %r12
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	leaq	-68(%rbp), %rcx
	callq	_of_property_read_string_index
	testl	%eax, %eax
	js	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	___clk_get_name
	movq	%rax, -48(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -80(%rbp)
	movl	$1, -72(%rbp)
	movq	_cam_clk_ops@GOTPCREL(%rip), %rax
	movq	%rax, -56(%rbp)
	movq	_CLK_SET_RATE_PARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	leaq	(%r12,%r13), %rsi
	leaq	-80(%rbp), %rax
	movq	%rax, (%r12,%r13)
	movq	%r15, 8(%r12,%r13)
	xorl	%edi, %edi
	callq	_clk_register
	movq	48(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	16(%r15)
	incq	%rbx
	movq	_FIMC_MAX_CAMCLKS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$16, %r13
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_7:
	movq	16(%r15), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	48(%r15), %rcx
	leaq	24(%r15), %rdx
	movq	%rcx, 32(%r15)
	movq	%rax, 24(%r15)
	movl	(%r14), %edi
	movl	%edi, 40(%r15)
	movq	_of_clk_src_onecell_get@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_of_clk_add_provider
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_4:
	movl	-68(%rbp), %r12d
	movq	48(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_PTR_ERR
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_dev_err
	movq	48(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
LBB0_5:
	movq	%r15, %rdi
	callq	_fimc_md_unregister_clk_provider
LBB0_11:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIMC_MAX_CAMCLKS,4,2           ## @FIMC_MAX_CAMCLKS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clock-output-names"

	.comm	_cam_clk_ops,4,2                ## @cam_clk_ops
	.comm	_CLK_SET_RATE_PARENT,4,2        ## @CLK_SET_RATE_PARENT
L_.str.1:                               ## @.str.1
	.asciz	"failed to register clock: %s (%ld)\n"

L_.str.2:                               ## @.str.2
	.asciz	"clk provider not registered\n"

	.comm	_of_clk_src_onecell_get,4,2     ## @of_clk_src_onecell_get
	.no_dead_strip	_fimc_md_register_clk_provider
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_md_register_clk_provider
_fimc_md_register_clk_provider:         ; @fimc_md_register_clk_provider
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x24, _FIMC_MAX_CAMCLKS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _FIMC_MAX_CAMCLKS@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x25, #0
	mov	x21, #0
	add	x8, sp, #16
	add	x22, x8, #12
Lloh2:
	adrp	x28, _CLK_SET_RATE_PARENT@GOTPAGE
Lloh3:
	ldr	x28, [x28, _CLK_SET_RATE_PARENT@GOTPAGEOFF]
Lloh4:
	adrp	x23, l_.str@PAGE
Lloh5:
	add	x23, x23, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x19, #56]
	ldr	w0, [x20]
	mov	x1, x23
	mov	x2, x21
	mov	x3, x22
	bl	_of_property_read_string_index
	tbnz	w0, #31, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	lsl	x26, x21, #2
	ldr	w0, [x8, x26]
	bl	___clk_get_name
	add	x8, sp, #8
	stp	x0, x8, [sp, #8]
Lloh6:
	adrp	x8, _cam_clk_ops@GOTPAGE
Lloh7:
	ldr	x8, [x8, _cam_clk_ops@GOTPAGEOFF]
	str	x8, [sp, #40]
	ldr	w8, [x28]
	mov	w9, #1
	str	w9, [sp, #24]
	str	w8, [sp, #32]
	add	x1, x27, x25
	add	x8, sp, #16
	stp	x8, x19, [x1]
	mov	x0, #0
	bl	_clk_register
	ldr	x8, [x19, #48]
	str	w0, [x8, x26]
	bl	_IS_ERR
	cbnz	x0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #16]
	add	x8, x8, #1
	str	x8, [x19, #16]
	add	x21, x21, #1
	ldrsw	x8, [x24]
	add	x25, x25, #16
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_5:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x2, x19
	str	x8, [x2, #24]!
	ldr	x8, [x2, #24]
	str	x8, [x2, #8]
	ldr	w0, [x20]
	str	w0, [x2, #16]
Lloh8:
	adrp	x8, _of_clk_src_onecell_get@GOTPAGE
Lloh9:
	ldr	x8, [x8, _of_clk_src_onecell_get@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_of_clk_add_provider
	mov	x20, x0
	cbnz	w0, LBB0_9
	b	LBB0_10
LBB0_7:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
	mov	w20, #0
	b	LBB0_10
LBB0_8:
	ldr	w21, [sp, #28]
	ldr	x8, [x19, #48]
	ldr	w0, [x8, x26]
	bl	_PTR_ERR
	mov	x3, x0
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_err
	ldr	x8, [x19, #48]
	ldr	w0, [x8, x26]
	bl	_PTR_ERR
	mov	x20, x0
LBB0_9:
	mov	x0, x19
	bl	_fimc_md_unregister_clk_provider
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FIMC_MAX_CAMCLKS,4,2           ; @FIMC_MAX_CAMCLKS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clock-output-names"

	.comm	_cam_clk_ops,4,2                ; @cam_clk_ops
	.comm	_CLK_SET_RATE_PARENT,4,2        ; @CLK_SET_RATE_PARENT
l_.str.1:                               ; @.str.1
	.asciz	"failed to register clock: %s (%ld)\n"

l_.str.2:                               ; @.str.2
	.asciz	"clk provider not registered\n"

	.comm	_of_clk_src_onecell_get,4,2     ; @of_clk_src_onecell_get
	.no_dead_strip	_fimc_md_register_clk_provider
.subsections_via_symbols
