	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccdc_has_all_fields
_ccdc_has_all_fields:                   ## @ccdc_has_all_fields
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	addq	$16, %rdi
	callq	_to_isp_pipeline
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_isp_device
	movq	8(%rbx), %rcx
	movq	_CCDC_PAD_SOURCE_OF@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %r12d
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	cmpl	(%rcx), %r12d
	je	LBB0_14
## %bb.1:
	movq	_OMAP3_ISP_IOMEM_CCDC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_ISPCCDC_SYN_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	callq	_isp_reg_readl
	movq	_ISPCCDC_SYN_MODE_FLDSTAT@GOTPCREL(%rip), %rsi
	movq	_V4L2_FIELD_BOTTOM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_V4L2_FIELD_TOP@GOTPCREL(%rip), %r8
	movl	%edi, %edx
	testl	%eax, (%rsi)
	jne	LBB0_3
## %bb.2:
	movl	(%r8), %edx
LBB0_3:
	movq	_V4L2_FIELD_ALTERNATE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_5
## %bb.4:
	movl	%edx, (%r15)
	jmp	LBB0_14
LBB0_5:
	cmpl	%edi, %edx
	jne	LBB0_6
## %bb.7:
	movq	_CCDC_FIELD_BOTTOM@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_CCDC_FIELD_TOP@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rbx), %esi
	orl	(%rax), %esi
	movl	%esi, (%rbx)
	movq	_CCDC_FIELD_BOTH@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	cmpl	(%rax), %esi
	jne	LBB0_14
## %bb.9:
	movq	_V4L2_FIELD_INTERLACED_TB@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_11
## %bb.10:
	cmpl	(%r8), %edx
	je	LBB0_14
LBB0_11:
	movq	_V4L2_FIELD_INTERLACED_BT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_13
## %bb.12:
	cmpl	(%rcx), %edx
	je	LBB0_14
LBB0_13:
	movl	$0, (%rbx)
	movl	$1, %r14d
LBB0_14:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CCDC_PAD_SOURCE_OF,8,3         ## @CCDC_PAD_SOURCE_OF
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_OMAP3_ISP_IOMEM_CCDC,4,2       ## @OMAP3_ISP_IOMEM_CCDC
	.comm	_ISPCCDC_SYN_MODE,4,2           ## @ISPCCDC_SYN_MODE
	.comm	_ISPCCDC_SYN_MODE_FLDSTAT,4,2   ## @ISPCCDC_SYN_MODE_FLDSTAT
	.comm	_V4L2_FIELD_BOTTOM,4,2          ## @V4L2_FIELD_BOTTOM
	.comm	_V4L2_FIELD_TOP,4,2             ## @V4L2_FIELD_TOP
	.comm	_V4L2_FIELD_ALTERNATE,4,2       ## @V4L2_FIELD_ALTERNATE
	.comm	_CCDC_FIELD_BOTTOM,4,2          ## @CCDC_FIELD_BOTTOM
	.comm	_CCDC_FIELD_TOP,4,2             ## @CCDC_FIELD_TOP
	.comm	_CCDC_FIELD_BOTH,4,2            ## @CCDC_FIELD_BOTH
	.comm	_V4L2_FIELD_INTERLACED_TB,4,2   ## @V4L2_FIELD_INTERLACED_TB
	.comm	_V4L2_FIELD_INTERLACED_BT,4,2   ## @V4L2_FIELD_INTERLACED_BT
	.no_dead_strip	_ccdc_has_all_fields
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccdc_has_all_fields
_ccdc_has_all_fields:                   ; @ccdc_has_all_fields
	.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	x19, x0
	add	x0, x0, #16
	bl	_to_isp_pipeline
	mov	x20, x0
	mov	x0, x19
	bl	_to_isp_device
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _CCDC_PAD_SOURCE_OF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CCDC_PAD_SOURCE_OF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w21, [x8, x9, lsl #2]
Lloh3:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w21, w8
	b.eq	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _OMAP3_ISP_IOMEM_CCDC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OMAP3_ISP_IOMEM_CCDC@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _ISPCCDC_SYN_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ISPCCDC_SYN_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_isp_reg_readl
Lloh12:
	adrp	x8, _ISPCCDC_SYN_MODE_FLDSTAT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ISPCCDC_SYN_MODE_FLDSTAT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x8]
Lloh15:
	adrp	x8, _V4L2_FIELD_BOTTOM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_FIELD_BOTTOM@GOTPAGEOFF]
	ldr	w11, [x8]
Lloh17:
	adrp	x10, _V4L2_FIELD_TOP@GOTPAGE
Lloh18:
	ldr	x10, [x10, _V4L2_FIELD_TOP@GOTPAGEOFF]
	ldr	w12, [x10]
	tst	w9, w0
	csel	w9, w12, w11, eq
Lloh19:
	adrp	x12, _V4L2_FIELD_ALTERNATE@GOTPAGE
Lloh20:
	ldr	x12, [x12, _V4L2_FIELD_ALTERNATE@GOTPAGEOFF]
Lloh21:
	ldr	w12, [x12]
	cmp	w21, w12
	b.ne	LBB0_4
; %bb.2:
	str	w9, [x20]
LBB0_3:
	mov	w0, #1
	b	LBB0_9
LBB0_4:
Lloh22:
	adrp	x12, _CCDC_FIELD_BOTTOM@GOTPAGE
Lloh23:
	ldr	x12, [x12, _CCDC_FIELD_BOTTOM@GOTPAGEOFF]
Lloh24:
	adrp	x13, _CCDC_FIELD_TOP@GOTPAGE
Lloh25:
	ldr	x13, [x13, _CCDC_FIELD_TOP@GOTPAGEOFF]
	cmp	w9, w11
	csel	x11, x12, x13, eq
	ldr	w11, [x11]
	ldr	w12, [x19]
	orr	w11, w12, w11
	str	w11, [x19]
Lloh26:
	adrp	x12, _CCDC_FIELD_BOTH@GOTPAGE
Lloh27:
	ldr	x12, [x12, _CCDC_FIELD_BOTH@GOTPAGEOFF]
Lloh28:
	ldr	w12, [x12]
	cmp	w11, w12
	b.ne	LBB0_8
; %bb.5:
Lloh29:
	adrp	x11, _V4L2_FIELD_INTERLACED_TB@GOTPAGE
Lloh30:
	ldr	x11, [x11, _V4L2_FIELD_INTERLACED_TB@GOTPAGEOFF]
Lloh31:
	ldr	w11, [x11]
	ldr	w10, [x10]
	cmp	w21, w11
	ccmp	w9, w10, #0, eq
	b.eq	LBB0_8
; %bb.6:
Lloh32:
	adrp	x10, _V4L2_FIELD_INTERLACED_BT@GOTPAGE
Lloh33:
	ldr	x10, [x10, _V4L2_FIELD_INTERLACED_BT@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	cmp	w21, w10
	b.ne	LBB0_10
; %bb.7:
	ldr	w8, [x8]
	cmp	w9, w8
	b.ne	LBB0_10
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
	ret
LBB0_10:
	str	wzr, [x19]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_CCDC_PAD_SOURCE_OF,8,3         ; @CCDC_PAD_SOURCE_OF
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_OMAP3_ISP_IOMEM_CCDC,4,2       ; @OMAP3_ISP_IOMEM_CCDC
	.comm	_ISPCCDC_SYN_MODE,4,2           ; @ISPCCDC_SYN_MODE
	.comm	_ISPCCDC_SYN_MODE_FLDSTAT,4,2   ; @ISPCCDC_SYN_MODE_FLDSTAT
	.comm	_V4L2_FIELD_BOTTOM,4,2          ; @V4L2_FIELD_BOTTOM
	.comm	_V4L2_FIELD_TOP,4,2             ; @V4L2_FIELD_TOP
	.comm	_V4L2_FIELD_ALTERNATE,4,2       ; @V4L2_FIELD_ALTERNATE
	.comm	_CCDC_FIELD_BOTTOM,4,2          ; @CCDC_FIELD_BOTTOM
	.comm	_CCDC_FIELD_TOP,4,2             ; @CCDC_FIELD_TOP
	.comm	_CCDC_FIELD_BOTH,4,2            ; @CCDC_FIELD_BOTH
	.comm	_V4L2_FIELD_INTERLACED_TB,4,2   ; @V4L2_FIELD_INTERLACED_TB
	.comm	_V4L2_FIELD_INTERLACED_BT,4,2   ; @V4L2_FIELD_INTERLACED_BT
	.no_dead_strip	_ccdc_has_all_fields
.subsections_via_symbols
