	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpfe_config_ccdc_image_format
_vpfe_config_ccdc_image_format:         ## @vpfe_config_ccdc_image_format
	.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	%rdi, %rbx
	movq	_CCDC_FRMFMT_INTERLACED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str(%rip), %rdx
	xorl	%r15d, %r15d
	movl	$2, %edi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_vpfe_dbg
	movl	8(%rbx), %edi
	callq	_print_fourcc
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %edi
	movq	%rbx, %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_vpfe_dbg
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_vpfe_ccdc_set_pixel_format
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	leaq	16(%rbx), %rsi
	movl	12(%rbx), %edx
	movq	%rbx, %rdi
	callq	_vpfe_ccdc_set_image_window
	movl	4(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.3:
	cmpl	$130, %eax
	je	LBB0_4
## %bb.5:
	cmpl	$129, %eax
	jne	LBB0_10
## %bb.6:
	movq	_CCDC_FRMFMT_PROGRESSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_vpfe_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_7:
	movq	_CCDC_BUFTYPE_FLD_SEPARATED@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movq	_CCDC_BUFTYPE_FLD_INTERLEAVED@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_vpfe_ccdc_set_buftype
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_12
LBB0_9:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vpfe_ccdc_set_frame_format     ## TAILCALL
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
LBB0_11:
	subl	(%rax), %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CCDC_FRMFMT_INTERLACED,4,2     ## @CCDC_FRMFMT_INTERLACED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vpfe_config_ccdc_image_format\n"

L_.str.1:                               ## @.str.1
	.asciz	"pixelformat: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"couldn't set pix format in ccdc\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CCDC_BUFTYPE_FLD_INTERLEAVED,4,2 ## @CCDC_BUFTYPE_FLD_INTERLEAVED
	.comm	_CCDC_FRMFMT_PROGRESSIVE,4,2    ## @CCDC_FRMFMT_PROGRESSIVE
	.comm	_CCDC_BUFTYPE_FLD_SEPARATED,4,2 ## @CCDC_BUFTYPE_FLD_SEPARATED
	.no_dead_strip	_vpfe_config_ccdc_image_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpfe_config_ccdc_image_format
_vpfe_config_ccdc_image_format:         ; @vpfe_config_ccdc_image_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _CCDC_FRMFMT_INTERLACED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CCDC_FRMFMT_INTERLACED@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #2
	mov	x1, x19
	bl	_vpfe_dbg
	ldr	w0, [x19, #8]
	bl	_print_fourcc
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x1, x19
	bl	_vpfe_dbg
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_vpfe_ccdc_set_pixel_format
	tbnz	x0, #63, LBB0_5
; %bb.1:
	add	x1, x19, #16
	ldr	w2, [x19, #12]
	mov	x0, x19
	bl	_vpfe_ccdc_set_image_window
	ldr	w8, [x19, #4]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #130
	b.eq	LBB0_8
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_6
; %bb.4:
Lloh7:
	adrp	x8, _CCDC_FRMFMT_PROGRESSIVE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CCDC_FRMFMT_PROGRESSIVE@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
	b	LBB0_11
LBB0_5:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_vpfe_err
LBB0_6:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_7:
Lloh15:
	adrp	x8, _CCDC_BUFTYPE_FLD_SEPARATED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CCDC_BUFTYPE_FLD_SEPARATED@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh17:
	adrp	x8, _CCDC_BUFTYPE_FLD_INTERLEAVED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CCDC_BUFTYPE_FLD_INTERLEAVED@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_vpfe_ccdc_set_buftype
	cbz	w0, LBB0_11
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_11:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_vpfe_ccdc_set_frame_format
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CCDC_FRMFMT_INTERLACED,4,2     ; @CCDC_FRMFMT_INTERLACED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vpfe_config_ccdc_image_format\n"

l_.str.1:                               ; @.str.1
	.asciz	"pixelformat: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"couldn't set pix format in ccdc\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CCDC_BUFTYPE_FLD_INTERLEAVED,4,2 ; @CCDC_BUFTYPE_FLD_INTERLEAVED
	.comm	_CCDC_FRMFMT_PROGRESSIVE,4,2    ; @CCDC_FRMFMT_PROGRESSIVE
	.comm	_CCDC_BUFTYPE_FLD_SEPARATED,4,2 ; @CCDC_BUFTYPE_FLD_SEPARATED
	.no_dead_strip	_vpfe_config_ccdc_image_format
.subsections_via_symbols
