	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_enum_fmt_vid_cap
_vidioc_enum_fmt_vid_cap:               ## @vidioc_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
	movl	(%rdx), %eax
	cmpl	$2, %eax
	jl	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_2:
	movq	%rdx, %rbx
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_V4L2_FMT_FLAG_COMPRESSED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcpy
	movq	_V4L2_PIX_FMT_MJPEG@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	$0, 16(%rbx)
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	movq	_V4L2_PIX_FMT_YUYV@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"YUV422"

	.comm	_V4L2_PIX_FMT_YUYV,4,2          ## @V4L2_PIX_FMT_YUYV
	.comm	_V4L2_FMT_FLAG_COMPRESSED,8,3   ## @V4L2_FMT_FLAG_COMPRESSED
L_.str.1:                               ## @.str.1
	.asciz	"MJPEG"

	.comm	_V4L2_PIX_FMT_MJPEG,4,2         ## @V4L2_PIX_FMT_MJPEG
	.no_dead_strip	_vidioc_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 vidioc_enum_fmt_vid_cap
_vidioc_enum_fmt_vid_cap:               ; @vidioc_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	w8, [x2]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	mov	x19, x2
	cbz	w8, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _V4L2_FMT_FLAG_COMPRESSED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_FMT_FLAG_COMPRESSED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcpy
	mov	w0, #0
Lloh8:
	adrp	x8, _V4L2_PIX_FMT_MJPEG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_PIX_FMT_MJPEG@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	str	xzr, [x19, #16]
	ldr	w0, [x19, #8]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
	mov	w0, #0
Lloh12:
	adrp	x8, _V4L2_PIX_FMT_YUYV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_PIX_FMT_YUYV@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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"YUV422"

	.comm	_V4L2_PIX_FMT_YUYV,4,2          ; @V4L2_PIX_FMT_YUYV
	.comm	_V4L2_FMT_FLAG_COMPRESSED,8,3   ; @V4L2_FMT_FLAG_COMPRESSED
l_.str.1:                               ; @.str.1
	.asciz	"MJPEG"

	.comm	_V4L2_PIX_FMT_MJPEG,4,2         ; @V4L2_PIX_FMT_MJPEG
	.no_dead_strip	_vidioc_enum_fmt_vid_cap
.subsections_via_symbols
