	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_g_fmt_vbi_cap
_vidioc_g_fmt_vbi_cap:                  ## @vidioc_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	(%rsi), %rax
	movl	$27000000, (%rdx)               ## imm = 0x19BFCC0
	movq	_VBI_LINE_LENGTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rdx)
	movq	_V4L2_PIX_FMT_GREY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%rdx)
	movq	$0, 24(%rdx)
	movq	_V4L2_STD_625_50@GOTPCREL(%rip), %r10
	movl	(%r10), %esi
	andl	(%rax), %esi
	movq	_PAL_VBI_START_LINE@GOTPCREL(%rip), %r9
	movq	_NTSC_VBI_START_LINE@GOTPCREL(%rip), %r8
	movq	%r9, %rsi
	cmoveq	%r8, %rsi
	movq	(%rsi), %rsi
	movq	_PAL_VBI_LINES@GOTPCREL(%rip), %rdi
	cmoveq	_NTSC_VBI_LINES@GOTPCREL(%rip), %rdi
	movq	16(%rdx), %rcx
	movq	%rsi, (%rcx)
	movl	(%rdi), %ecx
	movq	8(%rdx), %rsi
	movl	%ecx, (%rsi)
	movl	(%r10), %ecx
	andl	(%rax), %ecx
	movl	$312, %eax                      ## imm = 0x138
	addq	(%r9), %rax
	movl	$263, %esi                      ## imm = 0x107
	addq	(%r8), %rsi
	testl	%ecx, %ecx
	cmovneq	%rax, %rsi
	movq	16(%rdx), %rax
	movq	%rsi, 8(%rax)
	movq	8(%rdx), %rax
	movl	(%rax), %ecx
	movl	%ecx, 4(%rax)
	movl	4(%rdx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VBI_LINE_LENGTH,4,2            ## @VBI_LINE_LENGTH
	.comm	_V4L2_PIX_FMT_GREY,4,2          ## @V4L2_PIX_FMT_GREY
	.comm	_V4L2_STD_625_50,4,2            ## @V4L2_STD_625_50
	.comm	_PAL_VBI_START_LINE,8,3         ## @PAL_VBI_START_LINE
	.comm	_NTSC_VBI_START_LINE,8,3        ## @NTSC_VBI_START_LINE
	.comm	_PAL_VBI_LINES,4,2              ## @PAL_VBI_LINES
	.comm	_NTSC_VBI_LINES,4,2             ## @NTSC_VBI_LINES
	.no_dead_strip	_vidioc_g_fmt_vbi_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidioc_g_fmt_vbi_cap
_vidioc_g_fmt_vbi_cap:                  ; @vidioc_g_fmt_vbi_cap
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x1]
	mov	w9, #64704
	movk	w9, #411, lsl #16
	str	w9, [x2]
Lloh0:
	adrp	x9, _VBI_LINE_LENGTH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VBI_LINE_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _V4L2_PIX_FMT_GREY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_PIX_FMT_GREY@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	stp	w10, w9, [x2, #32]
	str	xzr, [x2, #24]
	ldr	w9, [x8]
Lloh6:
	adrp	x10, _V4L2_STD_625_50@GOTPAGE
Lloh7:
	ldr	x10, [x10, _V4L2_STD_625_50@GOTPAGEOFF]
Lloh8:
	adrp	x11, _PAL_VBI_START_LINE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _PAL_VBI_START_LINE@GOTPAGEOFF]
	ldr	w12, [x10]
Lloh10:
	adrp	x13, _NTSC_VBI_START_LINE@GOTPAGE
Lloh11:
	ldr	x13, [x13, _NTSC_VBI_START_LINE@GOTPAGEOFF]
	tst	w12, w9
	csel	x9, x13, x11, eq
	ldr	x9, [x9]
	ldr	x12, [x2, #16]
	str	x9, [x12]
Lloh12:
	adrp	x9, _PAL_VBI_LINES@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PAL_VBI_LINES@GOTPAGEOFF]
Lloh14:
	adrp	x12, _NTSC_VBI_LINES@GOTPAGE
Lloh15:
	ldr	x12, [x12, _NTSC_VBI_LINES@GOTPAGEOFF]
	csel	x9, x12, x9, eq
	ldr	w9, [x9]
	ldp	x12, x14, [x2, #8]
	str	w9, [x12]
	ldr	w8, [x8]
	ldr	w9, [x10]
	ldr	x10, [x11]
	add	x10, x10, #312
	ldr	x11, [x13]
	add	x11, x11, #263
	tst	w9, w8
	csel	x8, x11, x10, eq
	str	x8, [x14, #8]
	ldr	x8, [x2, #8]
	ldr	w9, [x8]
	str	w9, [x8, #4]
	ldr	w0, [x2, #4]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VBI_LINE_LENGTH,4,2            ; @VBI_LINE_LENGTH
	.comm	_V4L2_PIX_FMT_GREY,4,2          ; @V4L2_PIX_FMT_GREY
	.comm	_V4L2_STD_625_50,4,2            ; @V4L2_STD_625_50
	.comm	_PAL_VBI_START_LINE,8,3         ; @PAL_VBI_START_LINE
	.comm	_NTSC_VBI_START_LINE,8,3        ; @NTSC_VBI_START_LINE
	.comm	_PAL_VBI_LINES,4,2              ; @PAL_VBI_LINES
	.comm	_NTSC_VBI_LINES,4,2             ; @NTSC_VBI_LINES
	.no_dead_strip	_vidioc_g_fmt_vbi_cap
.subsections_via_symbols
