	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	72(%rdi), %r13
	movl	$0, -48(%rbp)
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_vpfe_standards@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	$12, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	testl	%r12d, -12(%rdi,%r13)
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	addq	$16, %r13
	cmpq	%rax, %rbx
	jl	LBB0_3
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_4:
	movl	-8(%rdi,%r13), %eax
	movl	%eax, 8(%r15)
	movl	-4(%rdi,%r13), %eax
	movl	%eax, 12(%r15)
	movl	(%rdi,%r13), %eax
	movl	%eax, 16(%r15)
	movl	%ebx, (%r15)
LBB0_6:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
LBB0_7:
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jne	LBB0_9
## %bb.8:
	addq	$4, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_14
LBB0_9:
	leaq	48(%r15), %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r15)
	movl	8(%r15), %eax
	movl	12(%r15), %ecx
	movl	%eax, 24(%r15)
	movl	%ecx, 28(%r15)
	movl	%eax, 48(%r15)
	movl	%ecx, 52(%r15)
	cmpl	$0, 16(%r15)
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rax
	cmoveq	_V4L2_FIELD_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_V4L2_PIX_FMT_UYVY@GOTPCREL(%rip), %rcx
	cmoveq	_V4L2_PIX_FMT_SBGGR8@GOTPCREL(%rip), %rcx
	movl	%eax, 68(%r15)
	movl	(%rcx), %eax
	movl	%eax, 64(%r15)
	movq	_MEDIA_BUS_FMT_YUYV10_2X10@GOTPCREL(%rip), %rax
	cmoveq	_MEDIA_BUS_FMT_SBGGR8_1X8@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_v4l2_fill_mbus_format
	leaq	4(%r15), %r12
	movl	(%r13), %esi
	movq	_pad@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_get_fmt@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	xorl	%r8d, %r8d
	movq	%rbx, %r9
	callq	_v4l2_device_call_until_err
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	%eax, %ebx
	movq	_ENOIOCTLCMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_11
LBB0_12:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_v4l2_fill_pix_format
	movl	48(%r15), %eax
	addl	%eax, %eax
	movl	%eax, 56(%r15)
	imull	52(%r15), %eax
	movl	%eax, 60(%r15)
	movq	%r15, %rdi
	callq	_vpfe_config_ccdc_image_format
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movq	_ccdc_dev@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	*(%rcx)
	movl	%eax, 56(%r15)
	imull	52(%r15), %eax
	movl	%eax, 60(%r15)
	jmp	LBB0_14
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_v4l2_err
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.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	_MEDIA_BUS_FMT_YUYV10_2X10,4,2  ## @MEDIA_BUS_FMT_YUYV10_2X10
	.comm	_V4L2_FIELD_NONE,4,2            ## @V4L2_FIELD_NONE
	.comm	_V4L2_PIX_FMT_SBGGR8,4,2        ## @V4L2_PIX_FMT_SBGGR8
	.comm	_MEDIA_BUS_FMT_SBGGR8_1X8,4,2   ## @MEDIA_BUS_FMT_SBGGR8_1X8
	.comm	_pad,4,2                        ## @pad
	.comm	_get_fmt,4,2                    ## @get_fmt
	.comm	_ENOIOCTLCMD,4,2                ## @ENOIOCTLCMD
L_.str.1:                               ## @.str.1
	.asciz	"error in getting get_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:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, [x0, #72]
Lloh0:
	adrp	x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #8]
Lloh3:
	adrp	x22, _vpfe_standards@GOTPAGE
Lloh4:
	ldr	x22, [x22, _vpfe_standards@GOTPAGEOFF]
	ldr	x0, [x22]
	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, [x22]
	ldr	w8, [x0, x24]
	tst	w8, w20
	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
	ldur	d0, [x8, #4]
	str	d0, [x19, #8]
	ldr	w8, [x8, #12]
	str	w8, [x19, #16]
	str	w23, [x19]
LBB0_6:
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w23, w0
	b.ne	LBB0_8
; %bb.7:
	add	x0, x19, #4
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_v4l2_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_13
LBB0_8:
	add	x20, x19, #48
	stp	xzr, xzr, [x19, #32]
	ldp	w8, w9, [x19, #8]
	stp	w8, w9, [x19, #24]
	stp	w8, w9, [x19, #48]
Lloh10:
	adrp	x8, _V4L2_FIELD_NONE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V4L2_FIELD_NONE@GOTPAGEOFF]
Lloh12:
	adrp	x9, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
	ldr	w10, [x19, #16]
	cmp	w10, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _V4L2_PIX_FMT_SBGGR8@GOTPAGE
Lloh15:
	ldr	x9, [x9, _V4L2_PIX_FMT_SBGGR8@GOTPAGEOFF]
	str	w8, [x19, #68]
Lloh16:
	adrp	x8, _V4L2_PIX_FMT_UYVY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _V4L2_PIX_FMT_UYVY@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x19, #64]
Lloh18:
	adrp	x8, _MEDIA_BUS_FMT_SBGGR8_1X8@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MEDIA_BUS_FMT_SBGGR8_1X8@GOTPAGEOFF]
Lloh20:
	adrp	x9, _MEDIA_BUS_FMT_YUYV10_2X10@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MEDIA_BUS_FMT_YUYV10_2X10@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x1, x20
	bl	_v4l2_fill_mbus_format
	add	x22, x19, #4
	ldr	w1, [x21]
Lloh22:
	adrp	x8, _pad@GOTPAGE
Lloh23:
	ldr	x8, [x8, _pad@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x8, _get_fmt@GOTPAGE
Lloh26:
	ldr	x8, [x8, _get_fmt@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
	add	x5, sp, #8
	mov	x0, x22
	mov	x4, #0
	bl	_v4l2_device_call_until_err
	cbz	w0, LBB0_10
; %bb.9:
	mov	x21, x0
Lloh28:
	adrp	x8, _ENOIOCTLCMD@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOIOCTLCMD@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_12
LBB0_10:
	add	x1, sp, #8
	mov	x0, x20
	bl	_v4l2_fill_pix_format
	ldp	w8, w9, [x19, #48]
	lsl	w8, w8, #1
	mul	w9, w9, w8
	stp	w8, w9, [x19, #56]
	mov	x0, x19
	bl	_vpfe_config_ccdc_image_format
	mov	x21, x0
	cbnz	w0, LBB0_13
; %bb.11:
Lloh31:
	adrp	x8, _ccdc_dev@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ccdc_dev@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	ldr	x8, [x8]
	blr	x8
	ldr	w8, [x19, #52]
	mul	w8, w8, w0
	stp	w0, w8, [x19, #56]
	b	LBB0_13
LBB0_12:
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_v4l2_err
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.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	_MEDIA_BUS_FMT_YUYV10_2X10,4,2  ; @MEDIA_BUS_FMT_YUYV10_2X10
	.comm	_V4L2_FIELD_NONE,4,2            ; @V4L2_FIELD_NONE
	.comm	_V4L2_PIX_FMT_SBGGR8,4,2        ; @V4L2_PIX_FMT_SBGGR8
	.comm	_MEDIA_BUS_FMT_SBGGR8_1X8,4,2   ; @MEDIA_BUS_FMT_SBGGR8_1X8
	.comm	_pad,4,2                        ; @pad
	.comm	_get_fmt,4,2                    ; @get_fmt
	.comm	_ENOIOCTLCMD,4,2                ; @ENOIOCTLCMD
l_.str.1:                               ; @.str.1
	.asciz	"error in getting get_fmt from sub device\n"

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