	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vivid_g_fmt_vbi_cap
_vivid_g_fmt_vbi_cap:                   ## @vivid_g_fmt_vbi_cap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movq	8(%rdi), %rdx
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	andl	(%rcx,%rdx,4), %r10d
	movabsq	$103106215104, %rcx             ## imm = 0x18019BFCC0
	movq	%rcx, (%rsi)
	movl	$1440, 8(%rsi)                  ## imm = 0x5A0
	movq	_V4L2_PIX_FMT_GREY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 48(%rsi)
	movq	_V4L2_VBI_ITU_525_F1_START@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	$9, %rcx
	movq	_V4L2_VBI_ITU_625_F1_START@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addq	$5, %rdx
	testl	%r10d, %r10d
	cmovneq	%rcx, %rdx
	movq	40(%rsi), %r8
	movq	%rdx, (%r8)
	movq	_V4L2_VBI_ITU_525_F2_START@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	_V4L2_VBI_ITU_625_F2_START@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$18, %r9d
	movl	$12, %eax
	cmovel	%r9d, %eax
	addq	$9, %rdx
	addq	$5, %rcx
	testl	%r10d, %r10d
	cmovneq	%rdx, %rcx
	movq	%rcx, 8(%r8)
	movq	16(%rsi), %rcx
	movl	%eax, 4(%rcx)
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_V4L2_VBI_INTERLACED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movl	%eax, 32(%rsi)
	movq	24(%rsi), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_V4L2_PIX_FMT_GREY,4,2          ## @V4L2_PIX_FMT_GREY
	.comm	_V4L2_VBI_ITU_525_F1_START,8,3  ## @V4L2_VBI_ITU_525_F1_START
	.comm	_V4L2_VBI_ITU_625_F1_START,8,3  ## @V4L2_VBI_ITU_625_F1_START
	.comm	_V4L2_VBI_ITU_525_F2_START,8,3  ## @V4L2_VBI_ITU_525_F2_START
	.comm	_V4L2_VBI_ITU_625_F2_START,8,3  ## @V4L2_VBI_ITU_625_F2_START
	.comm	_V4L2_VBI_INTERLACED,4,2        ## @V4L2_VBI_INTERLACED
	.no_dead_strip	_vivid_g_fmt_vbi_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function vivid_g_fmt_vbi_cap
lCPI0_0:
	.long	27000000                        ; 0x19bfcc0
	.long	24                              ; 0x18
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vivid_g_fmt_vbi_cap:                   ; @vivid_g_fmt_vbi_cap
	.cfi_startproc
; %bb.0:
	ldp	x8, x9, [x0]
	ldr	w8, [x8, x9, lsl #2]
Lloh0:
	adrp	x9, _V4L2_STD_525_60@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x10, lCPI0_0@PAGEOFF]
	str	d0, [x1]
	mov	w10, #1440
	str	w10, [x1, #8]
Lloh5:
	adrp	x10, _V4L2_PIX_FMT_GREY@GOTPAGE
Lloh6:
	ldr	x10, [x10, _V4L2_PIX_FMT_GREY@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	str	w10, [x1, #48]
Lloh8:
	adrp	x10, _V4L2_VBI_ITU_525_F1_START@GOTPAGE
Lloh9:
	ldr	x10, [x10, _V4L2_VBI_ITU_525_F1_START@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	add	x10, x10, #9
Lloh11:
	adrp	x11, _V4L2_VBI_ITU_625_F1_START@GOTPAGE
Lloh12:
	ldr	x11, [x11, _V4L2_VBI_ITU_625_F1_START@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
	add	x11, x11, #5
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	x9, [x1, #40]
	str	x8, [x9]
Lloh14:
	adrp	x8, _V4L2_VBI_ITU_525_F2_START@GOTPAGE
Lloh15:
	ldr	x8, [x8, _V4L2_VBI_ITU_525_F2_START@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x8, x8, #9
Lloh17:
	adrp	x10, _V4L2_VBI_ITU_625_F2_START@GOTPAGE
Lloh18:
	ldr	x10, [x10, _V4L2_VBI_ITU_625_F2_START@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	add	x10, x10, #5
	csel	x8, x10, x8, eq
	str	x8, [x9, #8]
	mov	w8, #12
	mov	w9, #18
	csel	w8, w9, w8, eq
	ldp	x9, x10, [x1, #16]
	stp	w8, w8, [x9]
	ldr	x8, [x0, #16]
Lloh20:
	adrp	x9, _V4L2_VBI_INTERLACED@GOTPAGE
Lloh21:
	ldr	x9, [x9, _V4L2_VBI_INTERLACED@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
	str	w8, [x1, #32]
	stp	xzr, xzr, [x10]
	ret
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_V4L2_PIX_FMT_GREY,4,2          ; @V4L2_PIX_FMT_GREY
	.comm	_V4L2_VBI_ITU_525_F1_START,8,3  ; @V4L2_VBI_ITU_525_F1_START
	.comm	_V4L2_VBI_ITU_625_F1_START,8,3  ; @V4L2_VBI_ITU_625_F1_START
	.comm	_V4L2_VBI_ITU_525_F2_START,8,3  ; @V4L2_VBI_ITU_525_F2_START
	.comm	_V4L2_VBI_ITU_625_F2_START,8,3  ; @V4L2_VBI_ITU_625_F2_START
	.comm	_V4L2_VBI_INTERLACED,4,2        ; @V4L2_VBI_INTERLACED
	.no_dead_strip	_vivid_g_fmt_vbi_cap
.subsections_via_symbols
