	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccdc_init_formats
_ccdc_init_formats:                     ## @ccdc_init_formats
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-48(%rbp), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movq	_CCDC_PAD_SINK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	testq	%rbx, %rbx
	jne	LBB0_1
## %bb.2:
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_V4L2_SUBDEV_FORMAT_TRY@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_MEDIA_BUS_FMT_SGRBG10_1X10@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movabsq	$17592186048512, %rax           ## imm = 0x100000001000
	movq	%rax, -48(%rbp)
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %r15
LBB0_5:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ccdc_set_format
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CCDC_PAD_SINK,4,2              ## @CCDC_PAD_SINK
	.comm	_V4L2_SUBDEV_FORMAT_TRY,4,2     ## @V4L2_SUBDEV_FORMAT_TRY
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_MEDIA_BUS_FMT_SGRBG10_1X10,4,2 ## @MEDIA_BUS_FMT_SGRBG10_1X10
	.no_dead_strip	_ccdc_init_formats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccdc_init_formats
_ccdc_init_formats:                     ; @ccdc_init_formats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #20
	bl	_memset
Lloh0:
	adrp	x8, _CCDC_PAD_SINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CCDC_PAD_SINK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh3:
	adrp	x8, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_TRY@GOTPAGEOFF]
Lloh5:
	adrp	x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
	cmp	x20, #0
	csel	x8, x9, x8, eq
Lloh7:
	adrp	x9, _MEDIA_BUS_FMT_SGRBG10_1X10@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MEDIA_BUS_FMT_SGRBG10_1X10@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh9:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #16]
	movi.2s	v0, #16, lsl #8
	str	d0, [sp, #8]
	cbz	x20, LBB0_2
; %bb.1:
	ldr	x1, [x20]
	b	LBB0_3
LBB0_2:
	mov	x1, #0
LBB0_3:
	add	x2, sp, #8
	mov	x0, x19
	bl	_ccdc_set_format
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CCDC_PAD_SINK,4,2              ; @CCDC_PAD_SINK
	.comm	_V4L2_SUBDEV_FORMAT_TRY,4,2     ; @V4L2_SUBDEV_FORMAT_TRY
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_MEDIA_BUS_FMT_SGRBG10_1X10,4,2 ; @MEDIA_BUS_FMT_SGRBG10_1X10
	.no_dead_strip	_ccdc_init_formats
.subsections_via_symbols
