	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimc_md_get_clocks
_fimc_md_get_clocks:                    ## @fimc_md_get_clocks
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_FIMC_MAX_CAMCLKS@GOTPCREL(%rip), %r15
	xorl	%r12d, %r12d
	cmpl	$0, (%r15)
	movl	$0, %r14d
	jle	LBB0_12
## %bb.1:
	xorl	%ebx, %ebx
	movq	_EINVAL@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	subl	(%r14), %edi
	callq	_ERR_PTR
	movq	16(%r13), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
## %bb.3:
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:
	xorl	%ebx, %ebx
	leaq	-80(%rbp), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$32, %esi
	leaq	L_.str(%rip), %rdx
	movl	%ebx, %ecx
	callq	_snprintf
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_clk_get
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r13), %rax
	movq	%r12, (%rax,%rbx,8)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
	jmp	LBB0_8
LBB0_4:
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	leaq	-80(%rbp), %rdx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	%r12, %rdi
	callq	_PTR_ERR
	testl	%eax, %eax
	je	LBB0_8
## %bb.10:
	movl	%eax, %r14d
	movq	%r13, %rdi
	callq	_fimc_md_put_clocks
	jmp	LBB0_11
LBB0_8:
	xorl	%r14d, %r14d
LBB0_11:
	xorl	%r12d, %r12d
LBB0_12:
	cmpl	$0, 12(%r13)
	je	LBB0_21
## %bb.13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	movq	(%r13), %rcx
	movq	_CLK_IDX_WB_A@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	_CLK_IDX_WB_B@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	movq	_FIMC_MAX_WBCLKS@GOTPCREL(%rip), %r15
	cmpl	(%r15), %ebx
	jge	LBB0_19
## %bb.14:
	movl	%r14d, -92(%rbp)                ## 4-byte Spill
	leaq	-80(%rbp), %r12
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$32, %esi
	leaq	L_.str.2(%rip), %rdx
	movl	%ebx, %ecx
	callq	_snprintf
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_clk_get
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	(%r13), %rax
	movq	%r14, (%rax,%rbx,8)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_15
## %bb.18:
	xorl	%r12d, %r12d
	movl	-92(%rbp), %r14d                ## 4-byte Reload
LBB0_19:
	testl	%r14d, %r14d
	je	LBB0_21
LBB0_20:
	movq	%r13, %rdi
	callq	_fimc_md_put_clocks
	movl	%r14d, %r12d
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_23
## %bb.22:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	8(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-80(%rbp), %rdx
	callq	_v4l2_err
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %r14d
	xorl	%r12d, %r12d
	testl	%r14d, %r14d
	jne	LBB0_20
	jmp	LBB0_21
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FIMC_MAX_CAMCLKS,4,2           ## @FIMC_MAX_CAMCLKS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sclk_cam%u"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to get clock: %s\n"

	.comm	_CLK_IDX_WB_A,8,3               ## @CLK_IDX_WB_A
	.comm	_CLK_IDX_WB_B,4,2               ## @CLK_IDX_WB_B
	.comm	_FIMC_MAX_WBCLKS,4,2            ## @FIMC_MAX_WBCLKS
L_.str.2:                               ## @.str.2
	.asciz	"pxl_async%u"

	.no_dead_strip	_fimc_md_get_clocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimc_md_get_clocks
_fimc_md_get_clocks:                    ; @fimc_md_get_clocks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x20, [x0, #24]
Lloh3:
	adrp	x25, _FIMC_MAX_CAMCLKS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _FIMC_MAX_CAMCLKS@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh5:
	adrp	x24, _EINVAL@GOTPAGE
Lloh6:
	ldr	x24, [x24, _EINVAL@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	neg	w0, w8
	bl	_ERR_PTR
	ldr	x8, [x19, #16]
	str	x0, [x8, x21, lsl #3]
	add	x21, x21, #1
	ldrsw	x8, [x25]
	cmp	x21, x8
	b.lt	LBB0_2
; %bb.3:
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x21, #0
Lloh7:
	adrp	x22, l_.str@PAGE
Lloh8:
	add	x22, x22, l_.str@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #32
	mov	x2, x22
	mov	x3, x21
	bl	_snprintf
	add	x1, sp, #8
	mov	x0, x20
	bl	_clk_get
	mov	x23, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_15
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #16]
	str	x23, [x8, x21, lsl #3]
	add	x21, x21, #1
	ldrsw	x8, [x25]
	cmp	x21, x8
	b.lt	LBB0_5
LBB0_7:
	mov	w21, #0
LBB0_8:
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_14
; %bb.9:
	ldr	w8, [x24]
	neg	w0, w8
	bl	_ERR_PTR
Lloh9:
	adrp	x8, _CLK_IDX_WB_A@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CLK_IDX_WB_A@GOTPAGEOFF]
	ldr	x9, [x19]
Lloh11:
	ldr	x8, [x8]
	str	x0, [x9, x8, lsl #3]
Lloh12:
	adrp	x8, _CLK_IDX_WB_B@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CLK_IDX_WB_B@GOTPAGEOFF]
Lloh14:
	ldrsw	x22, [x8]
Lloh15:
	adrp	x25, _FIMC_MAX_WBCLKS@GOTPAGE
Lloh16:
	ldr	x25, [x25, _FIMC_MAX_WBCLKS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w22, w8
	b.ge	LBB0_13
; %bb.10:
Lloh17:
	adrp	x23, l_.str.2@PAGE
Lloh18:
	add	x23, x23, l_.str.2@PAGEOFF
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #32
	mov	x2, x23
	mov	x3, x22
	bl	_snprintf
	add	x1, sp, #8
	mov	x0, x20
	bl	_clk_get
	mov	x24, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_17
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x19]
	str	x24, [x8, x22, lsl #3]
	add	x22, x22, #1
	ldrsw	x8, [x25]
	cmp	x22, x8
	b.lt	LBB0_11
LBB0_13:
	cbnz	w21, LBB0_18
	b	LBB0_19
LBB0_14:
	mov	w21, #0
	b	LBB0_19
LBB0_15:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_dev_err
	mov	x0, x23
	bl	_PTR_ERR
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.16:
	mov	x0, x19
	bl	_fimc_md_put_clocks
	b	LBB0_8
LBB0_17:
	add	x0, x19, #8
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	bl	_v4l2_err
	mov	x0, x24
	bl	_PTR_ERR
	mov	x21, x0
	cbz	w21, LBB0_19
LBB0_18:
	mov	x0, x19
	bl	_fimc_md_put_clocks
LBB0_19:
	ldr	x8, [sp, #40]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_FIMC_MAX_CAMCLKS,4,2           ; @FIMC_MAX_CAMCLKS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sclk_cam%u"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to get clock: %s\n"

	.comm	_CLK_IDX_WB_A,8,3               ; @CLK_IDX_WB_A
	.comm	_CLK_IDX_WB_B,4,2               ; @CLK_IDX_WB_B
	.comm	_FIMC_MAX_WBCLKS,4,2            ; @FIMC_MAX_WBCLKS
l_.str.2:                               ; @.str.2
	.asciz	"pxl_async%u"

	.no_dead_strip	_fimc_md_get_clocks
.subsections_via_symbols
