	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpfe_config_image_format
_vpfe_config_image_format:              ## @vpfe_config_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	72(%rdi), %r14
	movq	_vpfe_standards@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	$12, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	movl	(%r13), %eax
	testl	%eax, -12(%rdi,%r14)
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %r14
	cmpq	%rax, %rbx
	jl	LBB0_3
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_4:
	movl	(%rdi,%r14), %eax
	movl	%eax, 40(%r15)
	movl	-8(%rdi,%r14), %eax
	movl	%eax, 32(%r15)
	movl	-4(%rdi,%r14), %eax
	movl	%eax, 36(%r15)
	movl	%ebx, (%r15)
LBB0_6:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_7:
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jne	LBB0_9
## %bb.8:
	addq	$28, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_14
LBB0_9:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%r15)
	movl	32(%r15), %eax
	movl	40(%r15), %ecx
	movl	%ecx, 52(%r15)
	movl	%eax, 48(%r15)
	movl	%ecx, 24(%r15)
	movl	%eax, 4(%r15)
	cmpl	$0, 36(%r15)
	movq	_V4L2_PIX_FMT_UYVY@GOTPCREL(%rip), %rax
	cmoveq	_V4L2_PIX_FMT_SBGGR8@GOTPCREL(%rip), %rax
	leaq	4(%r15), %r8
	movl	(%rax), %eax
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rcx
	cmoveq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%r15)
	movl	%eax, 16(%r15)
	leaq	28(%r15), %rbx
	movl	(%r14), %esi
	movq	_video@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_g_fmt@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_v4l2_device_call_until_err
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	%eax, %r14d
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	jne	LBB0_11
LBB0_12:
	movq	%r15, %rdi
	callq	_vpfe_config_ccdc_image_format
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movq	_ccdc_dev@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	*(%rcx)
	movl	%eax, 8(%r15)
	imull	4(%r15), %eax
	movl	%eax, 12(%r15)
	jmp	LBB0_14
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_v4l2_err
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vpfe_standards,8,3             ## @vpfe_standards
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"standard not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_FIELD_INTERLACED,4,2      ## @V4L2_FIELD_INTERLACED
	.comm	_V4L2_PIX_FMT_UYVY,4,2          ## @V4L2_PIX_FMT_UYVY
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_V4L2_PIX_FMT_SBGGR8,4,2        ## @V4L2_PIX_FMT_SBGGR8
	.comm	_video,4,2                      ## @video
	.comm	_g_fmt,4,2                      ## @g_fmt
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
L_.str.1:                               ## @.str.1
	.asciz	"error in getting g_fmt from sub device\n"

	.comm	_ccdc_dev,8,3                   ## @ccdc_dev
	.no_dead_strip	_vpfe_config_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_image_format
_vpfe_config_image_format:              ; @vpfe_config_image_format
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #72]
Lloh0:
	adrp	x21, _vpfe_standards@GOTPAGE
Lloh1:
	ldr	x21, [x21, _vpfe_standards@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x24, #0
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldr	w8, [x0, x24]
	ldr	w9, [x20]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #1
	bl	_ARRAY_SIZE
	add	x24, x24, #16
	cmp	x23, w0, sxtw
	b.lt	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	w23, #0
	b	LBB0_6
LBB0_5:
	add	x8, x0, x24
	ldr	w9, [x8, #12]
	str	w9, [x19, #40]
	ldur	d0, [x8, #4]
	str	d0, [x19, #32]
	str	w23, [x19]
LBB0_6:
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.ne	LBB0_8
; %bb.7:
	add	x0, x19, #28
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_v4l2_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_8:
	ldr	w8, [x19, #32]
	mov	x4, x19
	str	w8, [x4, #4]!
	stur	xzr, [x4, #60]
	stur	xzr, [x4, #52]
	ldp	w10, w9, [x4, #32]
	stp	w8, w9, [x4, #44]
	str	w9, [x4, #20]
Lloh7:
	adrp	x8, _V4L2_PIX_FMT_SBGGR8@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V4L2_PIX_FMT_SBGGR8@GOTPAGEOFF]
Lloh9:
	adrp	x9, _V4L2_PIX_FMT_UYVY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_PIX_FMT_UYVY@GOTPAGEOFF]
	cmp	w10, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _V4L2_FIELD_NONE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh13:
	adrp	x10, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh14:
	ldr	x10, [x10, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	stp	w8, w9, [x4, #12]
	add	x21, x4, #24
	ldr	w1, [x22]
Lloh15:
	adrp	x8, _video@GOTPAGE
Lloh16:
	ldr	x8, [x8, _video@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x8, _g_fmt@GOTPAGE
Lloh19:
	ldr	x8, [x8, _g_fmt@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x0, x21
	bl	_v4l2_device_call_until_err
	cbz	w0, LBB0_10
; %bb.9:
	mov	x20, x0
Lloh21:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_12
LBB0_10:
	mov	x0, x19
	bl	_vpfe_config_ccdc_image_format
	mov	x20, x0
	cbnz	w0, LBB0_13
; %bb.11:
Lloh24:
	adrp	x8, _ccdc_dev@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ccdc_dev@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	x8, [x8]
	blr	x8
	ldr	w8, [x19, #4]
	mul	w8, w8, w0
	stp	w0, w8, [x19, #8]
	b	LBB0_13
LBB0_12:
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_v4l2_err
LBB0_13:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_vpfe_standards,8,3             ; @vpfe_standards
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"standard not supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_FIELD_INTERLACED,4,2      ; @V4L2_FIELD_INTERLACED
	.comm	_V4L2_PIX_FMT_UYVY,4,2          ; @V4L2_PIX_FMT_UYVY
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_V4L2_PIX_FMT_SBGGR8,4,2        ; @V4L2_PIX_FMT_SBGGR8
	.comm	_video,4,2                      ; @video
	.comm	_g_fmt,4,2                      ; @g_fmt
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
l_.str.1:                               ; @.str.1
	.asciz	"error in getting g_fmt from sub device\n"

	.comm	_ccdc_dev,8,3                   ; @ccdc_dev
	.no_dead_strip	_vpfe_config_image_format
.subsections_via_symbols
