	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isp_xclk_init
_isp_xclk_init:                         ## @isp_xclk_init
	.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, %r12
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	(%rdi), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	$4, %r14d
	xorl	%ebx, %ebx
	movq	_EINVAL@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	subl	(%r15), %edi
	callq	_ERR_PTR
	movq	(%r12), %rdi
	movl	%eax, (%rdi,%r14)
	incq	%rbx
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$32, %r14
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_3:
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movl	$16, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r14
	leaq	(%r14,%rbx), %rdi
	movq	%r12, 8(%r14,%rbx)
	cmpq	$16, %rbx
	movq	_ISP_XCLK_B@GOTPCREL(%rip), %rax
	cmoveq	_ISP_XCLK_A@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14,%rbx)
	movl	$1, -16(%r14,%rbx)
	leaq	L_.str.1(%rip), %r13
	leaq	L_.str(%rip), %rax
	cmoveq	%rax, %r13
	callq	_spin_lock_init
	movq	%r13, -80(%rbp)
	movq	_isp_xclk_ops@GOTPCREL(%rip), %rax
	movq	%rax, -56(%rbp)
	movq	_isp_xclk_parent_name@GOTPCREL(%rip), %rax
	movq	%rax, -64(%rbp)
	movl	$1, -72(%rbp)
	leaq	(%r14,%rbx), %rsi
	addq	$-8, %rsi
	leaq	-80(%rbp), %rax
	movq	%rax, -8(%r14,%rbx)
	xorl	%edi, %edi
	callq	_clk_register
	movl	%eax, -12(%r14,%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	addq	$32, %rbx
	cmpq	%rax, %r15
	jb	LBB0_6
LBB0_8:
	xorl	%r15d, %r15d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	movq	_isp_xclk_src_get@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdx
	callq	_of_clk_add_provider
	jmp	LBB0_10
LBB0_7:
	movl	-12(%r14,%rbx), %edi
	callq	_PTR_ERR
	movl	%eax, %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ISP_XCLK_A,4,2                 ## @ISP_XCLK_A
	.comm	_ISP_XCLK_B,4,2                 ## @ISP_XCLK_B
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cam_xclka"

L_.str.1:                               ## @.str.1
	.asciz	"cam_xclkb"

	.comm	_isp_xclk_ops,4,2               ## @isp_xclk_ops
	.comm	_isp_xclk_parent_name,4,2       ## @isp_xclk_parent_name
	.comm	_isp_xclk_src_get,4,2           ## @isp_xclk_src_get
	.no_dead_strip	_isp_xclk_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isp_xclk_init
_isp_xclk_init:                         ; @isp_xclk_init
	.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
	ldp	x0, x8, [x0]
	ldr	x8, [x8]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, #0
	mov	w21, #4
Lloh0:
	adrp	x22, _EINVAL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EINVAL@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	neg	w0, w8
	bl	_ERR_PTR
	ldr	x8, [x19]
	str	w0, [x8, x21]
	add	x20, x20, #1
	mov	x0, x8
	bl	_ARRAY_SIZE
	add	x21, x21, #32
	cmp	x20, w0, uxtw
	b.lo	LBB0_2
LBB0_3:
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_7
; %bb.4:
	mov	x22, #0
	mov	x23, #0
Lloh2:
	adrp	x27, _isp_xclk_ops@GOTPAGE
Lloh3:
	ldr	x27, [x27, _isp_xclk_ops@GOTPAGEOFF]
	mov	w28, #1
Lloh4:
	adrp	x20, _isp_xclk_parent_name@GOTPAGE
Lloh5:
	ldr	x20, [x20, _isp_xclk_parent_name@GOTPAGEOFF]
	add	x24, sp, #16
Lloh6:
	adrp	x25, l_.str@PAGE
Lloh7:
	add	x25, x25, l_.str@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x26, x8, x22
	str	x19, [x26, #24]
	cmp	x22, #0
Lloh8:
	adrp	x8, _ISP_XCLK_A@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ISP_XCLK_A@GOTPAGEOFF]
Lloh10:
	adrp	x9, _ISP_XCLK_B@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ISP_XCLK_B@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [x26, #20]
	str	w28, [x26]
	add	x0, x26, #16
Lloh12:
	adrp	x8, l_.str.1@PAGE
Lloh13:
	add	x8, x8, l_.str.1@PAGEOFF
	csel	x21, x25, x8, eq
	bl	_spin_lock_init
	str	x21, [sp, #16]
	stp	x20, x27, [sp, #32]
	str	w28, [sp, #24]
	mov	x21, x26
	str	x24, [x21, #8]!
	mov	x0, #0
	mov	x1, x21
	bl	_clk_register
	stur	w0, [x21, #-4]
	bl	_IS_ERR
	cbnz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	add	x22, x22, #32
	cmp	x23, w0, uxtw
	b.lo	LBB0_5
LBB0_7:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x0, LBB0_10
; %bb.8:
Lloh14:
	adrp	x8, _isp_xclk_src_get@GOTPAGE
Lloh15:
	ldr	x8, [x8, _isp_xclk_src_get@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_of_clk_add_provider
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	ldr	w0, [x26, #4]
	bl	_PTR_ERR
LBB0_10:
	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	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ISP_XCLK_A,4,2                 ; @ISP_XCLK_A
	.comm	_ISP_XCLK_B,4,2                 ; @ISP_XCLK_B
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cam_xclka"

l_.str.1:                               ; @.str.1
	.asciz	"cam_xclkb"

	.comm	_isp_xclk_ops,4,2               ; @isp_xclk_ops
	.comm	_isp_xclk_parent_name,4,2       ; @isp_xclk_parent_name
	.comm	_isp_xclk_src_get,4,2           ; @isp_xclk_src_get
	.no_dead_strip	_isp_xclk_init
.subsections_via_symbols
