	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vpbe_display_enum_fmt
_vpbe_display_enum_fmt:                 ## @vpbe_display_enum_fmt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	callq	_video_drvdata
	movq	8(%rax), %rcx
	movq	(%rcx), %rbx
	movq	_debug@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%rbx, %rdx
	callq	_v4l2_dbg
	movl	(%r14), %eax
	cmpl	$2, %eax
	jl	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_v4l2_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_V4L2_PIX_FMT_NV12@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_V4L2_PIX_FMT_UYVY@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VIDIOC_ENUM_FMT, layer id = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid format index\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_PIX_FMT_UYVY,4,2          ## @V4L2_PIX_FMT_UYVY
	.comm	_V4L2_PIX_FMT_NV12,4,2          ## @V4L2_PIX_FMT_NV12
	.no_dead_strip	_vpbe_display_enum_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vpbe_display_enum_fmt
_vpbe_display_enum_fmt:                 ; @vpbe_display_enum_fmt
	.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_drvdata
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
Lloh0:
	adrp	x8, _debug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w4, [x0]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_v4l2_dbg
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_v4l2_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	mov	w0, #0
	cbz	w8, LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _V4L2_PIX_FMT_NV12@GOTPAGE
Lloh11:
	ldr	x8, [x8, _V4L2_PIX_FMT_NV12@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _V4L2_PIX_FMT_UYVY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_PIX_FMT_UYVY@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VIDIOC_ENUM_FMT, layer id = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid format index\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_PIX_FMT_UYVY,4,2          ; @V4L2_PIX_FMT_UYVY
	.comm	_V4L2_PIX_FMT_NV12,4,2          ; @V4L2_PIX_FMT_NV12
	.no_dead_strip	_vpbe_display_enum_fmt
.subsections_via_symbols
