	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vfe_check_clock_rates
_vfe_check_clock_rates:                 ## @vfe_check_clock_rates
	.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, -64(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MSM_VFE_LINE_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movq	_VFE_LINE_RDI0@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	movq	_VFE_LINE_PIX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jle	LBB0_14
LBB0_1:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	cmpl	$0, (%r14)
	jle	LBB0_19
## %bb.2:
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	leaq	-52(%rbp), %rdi
	callq	_camss_add_clock_margin
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r15,8), %edi
	callq	_clk_get_rate
	movslq	-52(%rbp), %rcx
	cmpq	%rcx, %rax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jb	LBB0_20
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movslq	(%r14), %rax
	cmpq	%rax, %r15
	jge	LBB0_19
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	16(%r14), %rbx
	movl	4(%rbx,%r15,8), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	4(%rbx,%r15,8), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_4
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	$0, -52(%rbp)
	movq	_VFE_LINE_RDI0@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_VFE_LINE_PIX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %r14d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jg	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r14d, %rax
	leaq	-1(%rax), %r12
	leaq	(%rax,%rax,2), %rax
	leaq	(%rax,%rax), %r13
	addq	$3, %r13
	xorl	%eax, %eax
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=2
	movl	%ecx, -52(%rbp)
	movl	%ecx, %eax
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=2
	movq	_VFE_LINE_PIX@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	incq	%r12
	incl	%r14d
	addq	$6, %r13
	cmpq	%rcx, %r12
	jge	LBB0_3
LBB0_10:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%ecx, %r14d
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movl	4(%rbx,%r12,4), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_9
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	(%rax,%r13,4), %edi
	movl	-4(%rax,%r13,4), %esi
	movq	-12(%rax,%r13,4), %rax
	movq	_MSM_VFE_PAD_SINK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	callq	_vfe_get_bpp
                                        ## kill: def $eax killed $eax def $rax
	imull	4(%rbx,%r12,4), %eax
	leal	63(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$6, %ecx
	movl	-52(%rbp), %eax
	cmpl	%ecx, %eax
	jge	LBB0_9
	jmp	LBB0_13
LBB0_19:
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_14:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14,4), %rbx
	leaq	(%r14,%r14,2), %rax
	leaq	16(,%rax,8), %r12
	movq	$-1, %r13
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	_VFE_LINE_PIX@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r14,%r13), %rcx
	incq	%rcx
	incq	%r13
	addq	$4, %rbx
	addq	$24, %r12
	cmpq	%rax, %rcx
	jge	LBB0_1
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	addq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_camss_get_pixel_clock
	testl	%eax, %eax
	je	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	$0, (%rbx)
	jmp	LBB0_15
LBB0_20:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	negl	%eax
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_23
## %bb.22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MSM_VFE_LINE_NUM,4,2           ## @MSM_VFE_LINE_NUM
	.comm	_VFE_LINE_RDI0,4,2              ## @VFE_LINE_RDI0
	.comm	_VFE_LINE_PIX,4,2               ## @VFE_LINE_PIX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vfe0"

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

	.comm	_MSM_VFE_PAD_SINK,8,3           ## @MSM_VFE_PAD_SINK
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_vfe_check_clock_rates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vfe_check_clock_rates
_vfe_check_clock_rates:                 ; @vfe_check_clock_rates
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MSM_VFE_LINE_NUM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSM_VFE_LINE_NUM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh8:
	adrp	x8, _VFE_LINE_RDI0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VFE_LINE_RDI0@GOTPAGEOFF]
Lloh10:
	ldrsw	x8, [x8]
Lloh11:
	adrp	x24, _VFE_LINE_PIX@GOTPAGE
Lloh12:
	ldr	x24, [x24, _VFE_LINE_PIX@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w8, w9
	b.le	LBB0_15
LBB0_1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.2:
	mov	x25, #0
Lloh13:
	adrp	x20, l_.str@PAGE
Lloh14:
	add	x20, x20, l_.str@PAGEOFF
Lloh15:
	adrp	x27, _MSM_VFE_PAD_SINK@GOTPAGE
Lloh16:
	ldr	x27, [x27, _MSM_VFE_PAD_SINK@GOTPAGEOFF]
Lloh17:
	adrp	x21, l_.str.1@PAGE
Lloh18:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	x0, x29, #92
	bl	_camss_add_clock_margin
	lsl	x8, x25, #3
	ldr	w0, [x28, x8]
	bl	_clk_get_rate
	ldursw	x8, [x29, #-92]
	cmp	x0, x8
	b.lo	LBB0_19
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x19]
	cmp	x25, x8
	b.ge	LBB0_14
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x28, [x19, #16]
	add	x23, x28, x25, lsl #3
	ldr	w0, [x23, #4]!
	mov	x1, x20
	bl	_strcmp
	cbz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x23]
	mov	x1, x21
	bl	_strcmp
	cbnz	w0, LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	stur	wzr, [x29, #-92]
Lloh19:
	adrp	x8, _VFE_LINE_RDI0@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VFE_LINE_RDI0@GOTPAGEOFF]
Lloh21:
	ldrsw	x26, [x8]
	ldr	w9, [x24]
	cmp	w26, w9
	b.gt	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w8, #0
	add	x10, x26, x26, lsl #1
	lsl	x23, x10, #3
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=2
	stur	w9, [x29, #-92]
	mov	x8, x9
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	add	x10, x26, #1
	ldrsw	x9, [x24]
	add	x23, x23, #24
	cmp	x26, x9
	mov	x26, x10
	b.ge	LBB0_3
LBB0_11:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w26, w9
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldr	w9, [x22, x26, lsl #2]
	cmp	w8, w9
	b.ge	LBB0_10
	b	LBB0_9
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=2
	ldr	x8, [x19, #8]
	add	x8, x8, x23
	ldp	w1, w0, [x8, #8]
	ldr	x8, [x8]
	ldr	x9, [x27]
	ldr	w2, [x8, x9, lsl #2]
	bl	_vfe_get_bpp
	ldr	w8, [x22, x26, lsl #2]
	mul	w8, w8, w0
	add	w9, w8, #63
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w9, w8, #6
	ldur	w8, [x29, #-92]
	cmp	w8, w9
	b.ge	LBB0_10
	b	LBB0_9
LBB0_14:
	mov	w0, #0
	b	LBB0_20
LBB0_15:
	sub	x21, x8, #1
	add	x20, x22, x8, lsl #2
	mov	w9, #24
	orr	x10, xzr, #0x10
	madd	x23, x8, x9, x10
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	ldrsw	x8, [x24]
	add	x21, x21, #1
	add	x20, x20, #4
	add	x23, x23, #24
	cmp	x21, x8
	b.ge	LBB0_1
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x23
	mov	x1, x20
	bl	_camss_get_pixel_clock
	cbz	w0, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	str	wzr, [x20]
	b	LBB0_16
LBB0_19:
Lloh22:
	adrp	x8, _EBUSY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	ldur	x8, [x29, #-88]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	sub	sp, x29, #80
	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_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MSM_VFE_LINE_NUM,4,2           ; @MSM_VFE_LINE_NUM
	.comm	_VFE_LINE_RDI0,4,2              ; @VFE_LINE_RDI0
	.comm	_VFE_LINE_PIX,4,2               ; @VFE_LINE_PIX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vfe0"

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

	.comm	_MSM_VFE_PAD_SINK,8,3           ; @MSM_VFE_PAD_SINK
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_vfe_check_clock_rates
.subsections_via_symbols
