	.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
	movq	%rdx, %rbx
	callq	_video_devdata
	movq	%rax, %rdi
	callq	_video_get_drvdata
	cmpq	$0, (%rbx)
	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	(%rax), %rax
	movq	_VPIF_IF_RAW_BAYER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_V4L2_PIX_FMT_SBGGR8@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_V4L2_PIX_FMT_NV16@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_PIX_FMT_SBGGR8,4,2        ## @V4L2_PIX_FMT_SBGGR8
	.comm	_V4L2_PIX_FMT_NV16,4,2          ## @V4L2_PIX_FMT_NV16
	.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
	mov	x19, x2
	bl	_video_devdata
	bl	_video_get_drvdata
	ldr	x8, [x19]
	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:
	ldr	x8, [x0]
Lloh8:
	adrp	x9, _VPIF_IF_RAW_BAYER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VPIF_IF_RAW_BAYER@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
Lloh11:
	adrp	x8, _V4L2_PIX_FMT_SBGGR8@GOTPAGE
Lloh12:
	ldr	x8, [x8, _V4L2_PIX_FMT_SBGGR8@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	w0, #0
Lloh13:
	adrp	x8, _V4L2_PIX_FMT_NV16@GOTPAGE
Lloh14:
	ldr	x8, [x8, _V4L2_PIX_FMT_NV16@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	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.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_PIX_FMT_SBGGR8,4,2        ; @V4L2_PIX_FMT_SBGGR8
	.comm	_V4L2_PIX_FMT_NV16,4,2          ; @V4L2_PIX_FMT_NV16
	.no_dead_strip	_vpif_enum_fmt_vid_cap
.subsections_via_symbols
