	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpif_enum_fmt_vid_cap
_vpif_enum_fmt_vid_cap:                 ## @vpif_enum_fmt_vid_cap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpq	$0, (%rdx)
	je	LBB0_2
## %bb.1:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	callq	_vpif_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movq	%rdx, %rbx
	movq	(%rsi), %rax
	movq	(%rax), %rax
	movq	_VPIF_IF_RAW_BAYER@GOTPCREL(%rip), %rcx
	movq	_V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	(%rcx), %rax
	movq	%rdx, 16(%rbx)
	movl	12(%rbx), %edi
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	callq	_strcpy
	movq	_V4L2_PIX_FMT_SBGGR8@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	callq	_strcpy
	movq	_V4L2_PIX_FMT_YUV422P@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid format index\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_VPIF_IF_RAW_BAYER,8,3          ## @VPIF_IF_RAW_BAYER
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ## @V4L2_BUF_TYPE_VIDEO_CAPTURE
L_.str.1:                               ## @.str.1
	.asciz	"Raw Mode -Bayer Pattern GrRBGb"

	.comm	_V4L2_PIX_FMT_SBGGR8,4,2        ## @V4L2_PIX_FMT_SBGGR8
L_.str.2:                               ## @.str.2
	.asciz	"YCbCr4:2:2 YC Planar"

	.comm	_V4L2_PIX_FMT_YUV422P,4,2       ## @V4L2_PIX_FMT_YUV422P
	.no_dead_strip	_vpif_enum_fmt_vid_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpif_enum_fmt_vid_cap
_vpif_enum_fmt_vid_cap:                 ; @vpif_enum_fmt_vid_cap
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x2]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	bl	_vpif_dbg
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	mov	x19, x2
	ldr	x8, [x1]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _VPIF_IF_RAW_BAYER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VPIF_IF_RAW_BAYER@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
Lloh11:
	adrp	x10, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _V4L2_BUF_TYPE_VIDEO_CAPTURE@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	str	x10, [x2, #16]
	ldr	w0, [x2, #12]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcpy
	mov	w0, #0
Lloh16:
	adrp	x8, _V4L2_PIX_FMT_SBGGR8@GOTPAGE
Lloh17:
	ldr	x8, [x8, _V4L2_PIX_FMT_SBGGR8@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcpy
	mov	w0, #0
Lloh20:
	adrp	x8, _V4L2_PIX_FMT_YUV422P@GOTPAGE
Lloh21:
	ldr	x8, [x8, _V4L2_PIX_FMT_YUV422P@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid format index\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_VPIF_IF_RAW_BAYER,8,3          ; @VPIF_IF_RAW_BAYER
	.comm	_V4L2_BUF_TYPE_VIDEO_CAPTURE,8,3 ; @V4L2_BUF_TYPE_VIDEO_CAPTURE
l_.str.1:                               ; @.str.1
	.asciz	"Raw Mode -Bayer Pattern GrRBGb"

	.comm	_V4L2_PIX_FMT_SBGGR8,4,2        ; @V4L2_PIX_FMT_SBGGR8
l_.str.2:                               ; @.str.2
	.asciz	"YCbCr4:2:2 YC Planar"

	.comm	_V4L2_PIX_FMT_YUV422P,4,2       ; @V4L2_PIX_FMT_YUV422P
	.no_dead_strip	_vpif_enum_fmt_vid_cap
.subsections_via_symbols
