	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vfe_set_camif_cfg
_vfe_set_camif_cfg:                     ## @vfe_set_camif_cfg
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rsi), %rax
	movq	_MSM_VFE_PAD_SINK@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	(%rax,%rcx,4), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_1
## %bb.2:
	cltq
	leaq	l_switch.table.vfe_set_camif_cfg(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_VFE_0_CORE_CFG_PIXEL_PATTERN_CBYCRY@GOTPCREL(%rip), %rax
LBB0_3:
	movq	_VFE_0_CORE_CFG_COMPOSITE_REG_UPDATE_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_VFE_0_CORE_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
	movq	(%r14), %rax
	movq	(%r15), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	4(%rax,%rcx,4), %edx
	movl	8(%rax,%rcx,4), %edi
	leal	(%rdx,%rdx), %eax
	decl	%eax
	shll	$16, %edi
	addl	$-65536, %edi                   ## imm = 0xFFFF0000
	orl	%eax, %edi
	movq	_VFE_0_CAMIF_FRAME_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
	movq	(%r14), %rax
	movq	(%r15), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	4(%rax,%rcx,4), %eax
	leal	(%rax,%rax), %edi
	decl	%edi
	movq	_VFE_0_CAMIF_WINDOW_WIDTH_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
	movq	(%r14), %rax
	movq	(%r15), %rcx
	leaq	(%rcx,%rcx,2), %rcx
	movl	8(%rax,%rcx,4), %edi
	decl	%edi
	movq	_VFE_0_CAMIF_WINDOW_HEIGHT_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel_relaxed
	movq	_VFE_0_CAMIF_SUBSAMPLE_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	$-1, %edi
	callq	_writel_relaxed
	movq	_VFE_0_CAMIF_IRQ_FRAMEDROP_PATTERN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	$-1, %edi
	callq	_writel_relaxed
	movq	_VFE_0_CAMIF_IRQ_SUBSAMPLE_PATTERN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	movl	$-1, %edi
	callq	_writel_relaxed
	movq	_VFE_0_RDI_CFG_x_MIPI_EN_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%edi, %edi
	callq	_VFE_0_RDI_CFG_x
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_vfe_reg_set
	movq	_VFE_0_CAMIF_CFG_VFE_OUTPUT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VFE_0_CAMIF_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel_relaxed                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSM_VFE_PAD_SINK,8,3           ## @MSM_VFE_PAD_SINK
	.comm	_VFE_0_CORE_CFG_PIXEL_PATTERN_YCBYCR,4,2 ## @VFE_0_CORE_CFG_PIXEL_PATTERN_YCBYCR
	.comm	_VFE_0_CORE_CFG_PIXEL_PATTERN_YCRYCB,4,2 ## @VFE_0_CORE_CFG_PIXEL_PATTERN_YCRYCB
	.comm	_VFE_0_CORE_CFG_PIXEL_PATTERN_CBYCRY,4,2 ## @VFE_0_CORE_CFG_PIXEL_PATTERN_CBYCRY
	.comm	_VFE_0_CORE_CFG_PIXEL_PATTERN_CRYCBY,4,2 ## @VFE_0_CORE_CFG_PIXEL_PATTERN_CRYCBY
	.comm	_VFE_0_CORE_CFG_COMPOSITE_REG_UPDATE_EN,4,2 ## @VFE_0_CORE_CFG_COMPOSITE_REG_UPDATE_EN
	.comm	_VFE_0_CORE_CFG,8,3             ## @VFE_0_CORE_CFG
	.comm	_VFE_0_CAMIF_FRAME_CFG,8,3      ## @VFE_0_CAMIF_FRAME_CFG
	.comm	_VFE_0_CAMIF_WINDOW_WIDTH_CFG,8,3 ## @VFE_0_CAMIF_WINDOW_WIDTH_CFG
	.comm	_VFE_0_CAMIF_WINDOW_HEIGHT_CFG,8,3 ## @VFE_0_CAMIF_WINDOW_HEIGHT_CFG
	.comm	_VFE_0_CAMIF_SUBSAMPLE_CFG,8,3  ## @VFE_0_CAMIF_SUBSAMPLE_CFG
	.comm	_VFE_0_CAMIF_IRQ_FRAMEDROP_PATTERN,8,3 ## @VFE_0_CAMIF_IRQ_FRAMEDROP_PATTERN
	.comm	_VFE_0_CAMIF_IRQ_SUBSAMPLE_PATTERN,8,3 ## @VFE_0_CAMIF_IRQ_SUBSAMPLE_PATTERN
	.comm	_VFE_0_RDI_CFG_x_MIPI_EN_BITS,4,2 ## @VFE_0_RDI_CFG_x_MIPI_EN_BITS
	.comm	_VFE_0_CAMIF_CFG_VFE_OUTPUT_EN,4,2 ## @VFE_0_CAMIF_CFG_VFE_OUTPUT_EN
	.comm	_VFE_0_CAMIF_CFG,8,3            ## @VFE_0_CAMIF_CFG
	.no_dead_strip	_vfe_set_camif_cfg
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.vfe_set_camif_cfg
l_switch.table.vfe_set_camif_cfg:
	.quad	_VFE_0_CORE_CFG_PIXEL_PATTERN_YCRYCB
	.quad	_VFE_0_CORE_CFG_PIXEL_PATTERN_YCBYCR
	.quad	_VFE_0_CORE_CFG_PIXEL_PATTERN_CRYCBY

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vfe_set_camif_cfg
_vfe_set_camif_cfg:                     ; @vfe_set_camif_cfg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x21, _MSM_VFE_PAD_SINK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MSM_VFE_PAD_SINK@GOTPAGEOFF]
	ldr	x9, [x21]
	mov	w10, #12
	mul	x9, x9, x10
	ldr	w8, [x8, x9]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
Lloh2:
	adrp	x9, l_switch.table.vfe_set_camif_cfg@PAGE
Lloh3:
	add	x9, x9, l_switch.table.vfe_set_camif_cfg@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _VFE_0_CORE_CFG_PIXEL_PATTERN_CBYCRY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VFE_0_CORE_CFG_PIXEL_PATTERN_CBYCRY@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _VFE_0_CORE_CFG_COMPOSITE_REG_UPDATE_EN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VFE_0_CORE_CFG_COMPOSITE_REG_UPDATE_EN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _VFE_0_CORE_CFG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VFE_0_CORE_CFG@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x20]
	ldr	x9, [x21]
	mov	w22, #12
	madd	x8, x9, x22, x8
	ldp	w9, w8, [x8, #4]
	lsl	w9, w9, #1
	sub	w9, w9, #1
	lsl	w8, w8, #16
	sub	w8, w8, #16, lsl #12            ; =65536
	orr	w0, w8, w9
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _VFE_0_CAMIF_FRAME_CFG@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VFE_0_CAMIF_FRAME_CFG@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x20]
	ldr	x9, [x21]
	madd	x8, x9, x22, x8
	ldr	w8, [x8, #4]
	lsl	w8, w8, #1
	sub	w0, w8, #1
	ldr	x8, [x19]
Lloh15:
	adrp	x9, _VFE_0_CAMIF_WINDOW_WIDTH_CFG@GOTPAGE
Lloh16:
	ldr	x9, [x9, _VFE_0_CAMIF_WINDOW_WIDTH_CFG@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x20]
	ldr	x9, [x21]
	madd	x8, x9, x22, x8
	ldr	w8, [x8, #8]
	sub	w0, w8, #1
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _VFE_0_CAMIF_WINDOW_HEIGHT_CFG@GOTPAGE
Lloh19:
	ldr	x9, [x9, _VFE_0_CAMIF_WINDOW_HEIGHT_CFG@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel_relaxed
	ldr	x8, [x19]
Lloh21:
	adrp	x9, _VFE_0_CAMIF_SUBSAMPLE_CFG@GOTPAGE
Lloh22:
	ldr	x9, [x9, _VFE_0_CAMIF_SUBSAMPLE_CFG@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #-1
	bl	_writel_relaxed
	ldr	x8, [x19]
Lloh24:
	adrp	x9, _VFE_0_CAMIF_IRQ_FRAMEDROP_PATTERN@GOTPAGE
Lloh25:
	ldr	x9, [x9, _VFE_0_CAMIF_IRQ_FRAMEDROP_PATTERN@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #-1
	bl	_writel_relaxed
	ldr	x8, [x19]
Lloh27:
	adrp	x9, _VFE_0_CAMIF_IRQ_SUBSAMPLE_PATTERN@GOTPAGE
Lloh28:
	ldr	x9, [x9, _VFE_0_CAMIF_IRQ_SUBSAMPLE_PATTERN@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #-1
	bl	_writel_relaxed
Lloh30:
	adrp	x8, _VFE_0_RDI_CFG_x_MIPI_EN_BITS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _VFE_0_RDI_CFG_x_MIPI_EN_BITS@GOTPAGEOFF]
Lloh32:
	ldr	w20, [x8]
	mov	w0, #0
	bl	_VFE_0_RDI_CFG_x
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_vfe_reg_set
Lloh33:
	adrp	x8, _VFE_0_CAMIF_CFG_VFE_OUTPUT_EN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _VFE_0_CAMIF_CFG_VFE_OUTPUT_EN@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh36:
	adrp	x9, _VFE_0_CAMIF_CFG@GOTPAGE
Lloh37:
	ldr	x9, [x9, _VFE_0_CAMIF_CFG@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_writel_relaxed
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MSM_VFE_PAD_SINK,8,3           ; @MSM_VFE_PAD_SINK
	.comm	_VFE_0_CORE_CFG_PIXEL_PATTERN_YCBYCR,4,2 ; @VFE_0_CORE_CFG_PIXEL_PATTERN_YCBYCR
	.comm	_VFE_0_CORE_CFG_PIXEL_PATTERN_YCRYCB,4,2 ; @VFE_0_CORE_CFG_PIXEL_PATTERN_YCRYCB
	.comm	_VFE_0_CORE_CFG_PIXEL_PATTERN_CBYCRY,4,2 ; @VFE_0_CORE_CFG_PIXEL_PATTERN_CBYCRY
	.comm	_VFE_0_CORE_CFG_PIXEL_PATTERN_CRYCBY,4,2 ; @VFE_0_CORE_CFG_PIXEL_PATTERN_CRYCBY
	.comm	_VFE_0_CORE_CFG_COMPOSITE_REG_UPDATE_EN,4,2 ; @VFE_0_CORE_CFG_COMPOSITE_REG_UPDATE_EN
	.comm	_VFE_0_CORE_CFG,8,3             ; @VFE_0_CORE_CFG
	.comm	_VFE_0_CAMIF_FRAME_CFG,8,3      ; @VFE_0_CAMIF_FRAME_CFG
	.comm	_VFE_0_CAMIF_WINDOW_WIDTH_CFG,8,3 ; @VFE_0_CAMIF_WINDOW_WIDTH_CFG
	.comm	_VFE_0_CAMIF_WINDOW_HEIGHT_CFG,8,3 ; @VFE_0_CAMIF_WINDOW_HEIGHT_CFG
	.comm	_VFE_0_CAMIF_SUBSAMPLE_CFG,8,3  ; @VFE_0_CAMIF_SUBSAMPLE_CFG
	.comm	_VFE_0_CAMIF_IRQ_FRAMEDROP_PATTERN,8,3 ; @VFE_0_CAMIF_IRQ_FRAMEDROP_PATTERN
	.comm	_VFE_0_CAMIF_IRQ_SUBSAMPLE_PATTERN,8,3 ; @VFE_0_CAMIF_IRQ_SUBSAMPLE_PATTERN
	.comm	_VFE_0_RDI_CFG_x_MIPI_EN_BITS,4,2 ; @VFE_0_RDI_CFG_x_MIPI_EN_BITS
	.comm	_VFE_0_CAMIF_CFG_VFE_OUTPUT_EN,4,2 ; @VFE_0_CAMIF_CFG_VFE_OUTPUT_EN
	.comm	_VFE_0_CAMIF_CFG,8,3            ; @VFE_0_CAMIF_CFG
	.no_dead_strip	_vfe_set_camif_cfg
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.vfe_set_camif_cfg
l_switch.table.vfe_set_camif_cfg:
	.quad	_VFE_0_CORE_CFG_PIXEL_PATTERN_YCRYCB
	.quad	_VFE_0_CORE_CFG_PIXEL_PATTERN_YCBYCR
	.quad	_VFE_0_CORE_CFG_PIXEL_PATTERN_CRYCBY

.subsections_via_symbols
