	.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
	movq	8(%rdi), %rax
	movq	_VPIF_VIDEO_INDEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_V4L2_FIELD_ANY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	leaq	(%rcx,%rcx,4), %rcx
	movl	%edx, 12(%rax,%rcx,4)
	movq	_config_params@GOTPCREL(%rip), %r8
	movq	(%r8), %rdx
	movq	(%rdi), %rsi
	cmpq	$0, (%rdx,%rsi,8)
	jne	LBB0_1
## %bb.2:
	movq	_V4L2_MEMORY_USERPTR@GOTPCREL(%rip), %rdi
	jmp	LBB0_3
LBB0_1:
	movq	_V4L2_MEMORY_MMAP@GOTPCREL(%rip), %rdi
LBB0_3:
	movl	(%rdi), %edx
	movl	%edx, 16(%rax,%rcx,4)
	movq	8(%r8), %rdx
	movl	(%rdx,%rsi,4), %edx
	movl	%edx, 8(%rax,%rcx,4)
	movq	_V4L2_PIX_FMT_YUV422P@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 4(%rax,%rcx,4)
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rax,%rcx,4)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPIF_VIDEO_INDEX,8,3           ## @VPIF_VIDEO_INDEX
	.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	_V4L2_PIX_FMT_YUV422P,4,2       ## @V4L2_PIX_FMT_YUV422P
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,4,2 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.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:
Lloh0:
	adrp	x8, _VPIF_VIDEO_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPIF_VIDEO_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _V4L2_FIELD_ANY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_FIELD_ANY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mov	w10, #20
	ldp	x12, x11, [x0]
	madd	x8, x8, x10, x11
Lloh6:
	adrp	x10, _config_params@GOTPAGE
Lloh7:
	ldr	x10, [x10, _config_params@GOTPAGEOFF]
	str	w9, [x8, #12]
	ldr	x9, [x10]
	ldr	x9, [x9, x12, lsl #3]
Lloh8:
	adrp	x11, _V4L2_MEMORY_USERPTR@GOTPAGE
Lloh9:
	ldr	x11, [x11, _V4L2_MEMORY_USERPTR@GOTPAGEOFF]
Lloh10:
	adrp	x13, _V4L2_MEMORY_MMAP@GOTPAGE
Lloh11:
	ldr	x13, [x13, _V4L2_MEMORY_MMAP@GOTPAGEOFF]
	cmp	x9, #0
	csel	x9, x11, x13, eq
	ldr	w9, [x9]
	str	w9, [x8, #16]
	ldr	x9, [x10, #8]
	ldr	w9, [x9, x12, lsl #2]
	str	w9, [x8, #8]
Lloh12:
	adrp	x9, _V4L2_PIX_FMT_YUV422P@GOTPAGE
Lloh13:
	ldr	x9, [x9, _V4L2_PIX_FMT_YUV422P@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	str	w9, [x8, #4]
Lloh15:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	str	w9, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	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	_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	_V4L2_PIX_FMT_YUV422P,4,2       ; @V4L2_PIX_FMT_YUV422P
	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,4,2 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.no_dead_strip	_vpif_config_format
.subsections_via_symbols
