	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpfe_get_ccdc_image_format
_vpfe_get_ccdc_image_format:            ## @vpfe_get_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$28, %edx
	callq	_memset
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_vpfe_ccdc_get_image_window
	movl	-36(%rbp), %eax
	movl	%eax, 20(%rbx)
	movl	-40(%rbp), %eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_vpfe_ccdc_get_line_length
	movl	%eax, 4(%rbx)
	imull	(%rbx), %eax
	movl	%eax, 8(%rbx)
	movq	%r14, %rdi
	callq	_vpfe_ccdc_get_buftype
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_vpfe_ccdc_get_pixel_format
	movl	%eax, 16(%rbx)
	movq	%r14, %rdi
	callq	_vpfe_ccdc_get_frame_format
	movq	_CCDC_FRMFMT_PROGRESSIVE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	jmp	LBB0_11
LBB0_2:
	movq	_CCDC_FRMFMT_INTERLACED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.3:
	movq	_CCDC_BUFTYPE_FLD_INTERLEAVED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_6
## %bb.4:
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_10
LBB0_6:
	movq	_CCDC_BUFTYPE_FLD_SEPARATED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_8
## %bb.7:
	movq	_V4L2_FIELD_SEQ_TB@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str(%rip), %rsi
LBB0_10:
	movq	%r14, %rdi
	callq	_vpfe_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_CCDC_FRMFMT_PROGRESSIVE,4,2    ## @CCDC_FRMFMT_PROGRESSIVE
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_CCDC_FRMFMT_INTERLACED,4,2     ## @CCDC_FRMFMT_INTERLACED
	.comm	_CCDC_BUFTYPE_FLD_INTERLEAVED,4,2 ## @CCDC_BUFTYPE_FLD_INTERLEAVED
	.comm	_V4L2_FIELD_INTERLACED,4,2      ## @V4L2_FIELD_INTERLACED
	.comm	_CCDC_BUFTYPE_FLD_SEPARATED,4,2 ## @CCDC_BUFTYPE_FLD_SEPARATED
	.comm	_V4L2_FIELD_SEQ_TB,4,2          ## @V4L2_FIELD_SEQ_TB
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid buf_type\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Invalid frm_fmt\n"

	.no_dead_strip	_vpfe_get_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_get_ccdc_image_format
_vpfe_get_ccdc_image_format:            ; @vpfe_get_ccdc_image_format
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	mov	w1, #0
	mov	w2, #28
	bl	_memset
Lloh0:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	add	x1, sp, #8
	mov	x0, x20
	bl	_vpfe_ccdc_get_image_window
	ldp	w9, w8, [sp, #8]
	str	w8, [x19, #20]
	str	w9, [x19]
	mov	x0, x20
	bl	_vpfe_ccdc_get_line_length
	ldr	w8, [x19]
	mul	w8, w8, w0
	stp	w0, w8, [x19, #4]
	mov	x0, x20
	bl	_vpfe_ccdc_get_buftype
	mov	x21, x0
	mov	x0, x20
	bl	_vpfe_ccdc_get_pixel_format
	str	w0, [x19, #16]
	mov	x0, x20
	bl	_vpfe_ccdc_get_frame_format
Lloh3:
	adrp	x8, _CCDC_FRMFMT_PROGRESSIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CCDC_FRMFMT_PROGRESSIVE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.1:
	mov	w0, #0
Lloh6:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	b	LBB0_11
LBB0_3:
Lloh8:
	adrp	x8, _CCDC_FRMFMT_INTERLACED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CCDC_FRMFMT_INTERLACED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.4:
Lloh11:
	adrp	x8, _CCDC_BUFTYPE_FLD_INTERLEAVED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CCDC_BUFTYPE_FLD_INTERLEAVED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_7
; %bb.5:
	mov	w0, #0
Lloh14:
	adrp	x8, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
	b	LBB0_2
LBB0_6:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_7:
Lloh18:
	adrp	x8, _CCDC_BUFTYPE_FLD_SEPARATED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CCDC_BUFTYPE_FLD_SEPARATED@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #0
Lloh21:
	adrp	x8, _V4L2_FIELD_SEQ_TB@GOTPAGE
Lloh22:
	ldr	x8, [x8, _V4L2_FIELD_SEQ_TB@GOTPAGEOFF]
	b	LBB0_2
LBB0_9:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
LBB0_10:
	mov	x0, x20
	bl	_vpfe_err
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.comm	_CCDC_FRMFMT_PROGRESSIVE,4,2    ; @CCDC_FRMFMT_PROGRESSIVE
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_CCDC_FRMFMT_INTERLACED,4,2     ; @CCDC_FRMFMT_INTERLACED
	.comm	_CCDC_BUFTYPE_FLD_INTERLEAVED,4,2 ; @CCDC_BUFTYPE_FLD_INTERLEAVED
	.comm	_V4L2_FIELD_INTERLACED,4,2      ; @V4L2_FIELD_INTERLACED
	.comm	_CCDC_BUFTYPE_FLD_SEPARATED,4,2 ; @CCDC_BUFTYPE_FLD_SEPARATED
	.comm	_V4L2_FIELD_SEQ_TB,4,2          ; @V4L2_FIELD_SEQ_TB
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid buf_type\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Invalid frm_fmt\n"

	.no_dead_strip	_vpfe_get_ccdc_image_format
.subsections_via_symbols
