	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm365_select_ccdc_source
_dm365_select_ccdc_source:              ## @dm365_select_ccdc_source
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	_DM365_ISP5_CCDCMUX@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_isp5_read
	movq	_CCD_SRC_SEL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_VPSS_PGLPBK@GOTPCREL(%rip), %rax
	movq	_VPSS_CCDCPG@GOTPCREL(%rip), %rcx
	movl	%edx, %esi
	orl	$8, %esi
	cmpl	%ebx, (%rcx)
	cmovel	%esi, %edx
	cmpl	%ebx, (%rax)
	cmovel	%esi, %edx
	movq	_CCD_SRC_SEL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%edx, %ebx
	movl	(%r14), %esi
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_isp5_write                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DM365_ISP5_CCDCMUX,4,2         ## @DM365_ISP5_CCDCMUX
	.comm	_CCD_SRC_SEL_MASK,4,2           ## @CCD_SRC_SEL_MASK
	.comm	_VPSS_PGLPBK,4,2                ## @VPSS_PGLPBK
	.comm	_VPSS_CCDCPG,4,2                ## @VPSS_CCDCPG
	.comm	_CCD_SRC_SEL_SHIFT,4,2          ## @CCD_SRC_SEL_SHIFT
	.no_dead_strip	_dm365_select_ccdc_source
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm365_select_ccdc_source
_dm365_select_ccdc_source:              ; @dm365_select_ccdc_source
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _DM365_ISP5_CCDCMUX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DM365_ISP5_CCDCMUX@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_isp5_read
Lloh2:
	adrp	x8, _CCD_SRC_SEL_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CCD_SRC_SEL_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh5:
	adrp	x9, _VPSS_PGLPBK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VPSS_PGLPBK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _VPSS_CCDCPG@GOTPAGE
Lloh9:
	ldr	x10, [x10, _VPSS_CCDCPG@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w10, w19
	ccmp	w9, w19, #4, ne
	orr	w9, w8, #0x8
	csel	w8, w9, w8, eq
Lloh11:
	adrp	x9, _CCD_SRC_SEL_SHIFT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CCD_SRC_SEL_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	lsl	w9, w19, w9
	orr	w0, w8, w9
	ldr	w1, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_isp5_write
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DM365_ISP5_CCDCMUX,4,2         ; @DM365_ISP5_CCDCMUX
	.comm	_CCD_SRC_SEL_MASK,4,2           ; @CCD_SRC_SEL_MASK
	.comm	_VPSS_PGLPBK,4,2                ; @VPSS_PGLPBK
	.comm	_VPSS_CCDCPG,4,2                ; @VPSS_CCDCPG
	.comm	_CCD_SRC_SEL_SHIFT,4,2          ; @CCD_SRC_SEL_SHIFT
	.no_dead_strip	_dm365_select_ccdc_source
.subsections_via_symbols
