	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpif_config_format
_vpif_config_format:                    ## @vpif_config_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, %r14
	movq	16(%rdi), %rbx
	movq	_VPIF_VIDEO_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	$2, %edi
	callq	_vpif_dbg
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	(%r15,%r15,4), %rax
	movl	%ecx, 12(%rbx,%rax,4)
	movq	_config_params@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	(%r14), %rdx
	cmpq	$0, (%rsi,%rdx,8)
	jne	LBB0_1
## %bb.2:
	movq	_V4L2_MEMORY_USERPTR@GOTPCREL(%rip), %rsi
	jmp	LBB0_3
LBB0_1:
	movq	_V4L2_MEMORY_MMAP@GOTPCREL(%rip), %rsi
LBB0_3:
	movl	(%rsi), %esi
	movl	%esi, 16(%rbx,%rax,4)
	movq	8(%rcx), %rcx
	movl	(%rcx,%rdx,4), %ecx
	movl	%ecx, 8(%rbx,%rax,4)
	movq	8(%r14), %rcx
	movq	_VPIF_IF_RAW_BAYER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.5:
	movq	_V4L2_PIX_FMT_SBGGR8@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_V4L2_PIX_FMT_YUV422P@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rbx,%rax,4)
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rbx,%rax,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPIF_VIDEO_INDEX,8,3           ## @VPIF_VIDEO_INDEX
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vpif_config_format\n"

	.comm	_V4L2_FIELD_ANY,4,2             ## @V4L2_FIELD_ANY
	.comm	_config_params,16,3             ## @config_params
	.comm	_V4L2_MEMORY_USERPTR,4,2        ## @V4L2_MEMORY_USERPTR
	.comm	_V4L2_MEMORY_MMAP,4,2           ## @V4L2_MEMORY_MMAP
	.comm	_VPIF_IF_RAW_BAYER,8,3          ## @VPIF_IF_RAW_BAYER
	.comm	_V4L2_PIX_FMT_SBGGR8,4,2        ## @V4L2_PIX_FMT_SBGGR8
	.comm	_V4L2_PIX_FMT_YUV422P,4,2       ## @V4L2_PIX_FMT_YUV422P
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.no_dead_strip	_vpif_config_format
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpif_config_format
_vpif_config_format:                    ; @vpif_config_format
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x20, [x0, #16]
Lloh0:
	adrp	x8, _VPIF_VIDEO_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPIF_VIDEO_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _debug@GOTPAGE
Lloh4:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #2
	bl	_vpif_dbg
Lloh8:
	adrp	x8, _V4L2_FIELD_ANY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_FIELD_ANY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	w9, #20
	madd	x9, x21, x9, x20
Lloh11:
	adrp	x10, _config_params@GOTPAGE
Lloh12:
	ldr	x10, [x10, _config_params@GOTPAGEOFF]
	ldr	x11, [x10]
	ldr	x12, [x19]
	ldr	x11, [x11, x12, lsl #3]
	str	w8, [x9, #12]
Lloh13:
	adrp	x8, _V4L2_MEMORY_USERPTR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V4L2_MEMORY_USERPTR@GOTPAGEOFF]
Lloh15:
	adrp	x13, _V4L2_MEMORY_MMAP@GOTPAGE
Lloh16:
	ldr	x13, [x13, _V4L2_MEMORY_MMAP@GOTPAGEOFF]
	cmp	x11, #0
	csel	x8, x8, x13, eq
	ldr	w8, [x8]
	str	w8, [x9, #16]
	ldr	x8, [x10, #8]
	ldr	w8, [x8, x12, lsl #2]
	str	w8, [x9, #8]
	ldr	x8, [x19, #8]
Lloh17:
	adrp	x10, _VPIF_IF_RAW_BAYER@GOTPAGE
Lloh18:
	ldr	x10, [x10, _VPIF_IF_RAW_BAYER@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
Lloh20:
	adrp	x11, _V4L2_PIX_FMT_SBGGR8@GOTPAGE
Lloh21:
	ldr	x11, [x11, _V4L2_PIX_FMT_SBGGR8@GOTPAGEOFF]
Lloh22:
	adrp	x12, _V4L2_PIX_FMT_YUV422P@GOTPAGE
Lloh23:
	ldr	x12, [x12, _V4L2_PIX_FMT_YUV422P@GOTPAGEOFF]
	cmp	x8, x10
	csel	x8, x11, x12, eq
	ldr	w8, [x8]
	str	w8, [x9, #4]
Lloh24:
	adrp	x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x9]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VPIF_VIDEO_INDEX,8,3           ; @VPIF_VIDEO_INDEX
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vpif_config_format\n"

	.comm	_V4L2_FIELD_ANY,4,2             ; @V4L2_FIELD_ANY
	.comm	_config_params,16,3             ; @config_params
	.comm	_V4L2_MEMORY_USERPTR,4,2        ; @V4L2_MEMORY_USERPTR
	.comm	_V4L2_MEMORY_MMAP,4,2           ; @V4L2_MEMORY_MMAP
	.comm	_VPIF_IF_RAW_BAYER,8,3          ; @VPIF_IF_RAW_BAYER
	.comm	_V4L2_PIX_FMT_SBGGR8,4,2        ; @V4L2_PIX_FMT_SBGGR8
	.comm	_V4L2_PIX_FMT_YUV422P,4,2       ; @V4L2_PIX_FMT_YUV422P
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,4,2 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
	.no_dead_strip	_vpif_config_format
.subsections_via_symbols
