	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidioc_g_fmt_vbi
_vidioc_g_fmt_vbi:                      ## @vidioc_g_fmt_vbi
	.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, %rdi
	movq	(%rsi), %rax
	movabsq	$115964116992001440, %rcx       ## imm = 0x19BFCC0000005A0
	movq	%rcx, (%rdx)
	movq	_V4L2_PIX_FMT_GREY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rdx)
	movl	$256, 8(%rdx)                   ## imm = 0x100
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%esi, %esi
	andl	(%rax), %ecx
	setne	%sil
	movq	16(%rdx), %r9
	movl	$314, %r8d                      ## imm = 0x13A
	movl	$264, %ecx                      ## imm = 0x108
	cmovel	%r8d, %ecx
	movq	_V4L_NTSC_VBI_LINES@GOTPCREL(%rip), %rax
	cmoveq	_V4L_PAL_VBI_LINES@GOTPCREL(%rip), %rax
	leal	6(,%rsi,4), %esi
	movl	%esi, (%r9)
	movl	%ecx, 4(%r9)
	movq	(%rax), %rcx
	movq	32(%rdx), %rsi
	movq	%rcx, (%rsi)
	movq	(%rax), %rax
	movq	32(%rdx), %rcx
	movq	%rax, 8(%rcx)
	movq	_V4L2_VBI_UNSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rdx)
	callq	_logs
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_PIX_FMT_GREY,4,2          ## @V4L2_PIX_FMT_GREY
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_V4L_NTSC_VBI_LINES,8,3         ## @V4L_NTSC_VBI_LINES
	.comm	_V4L_PAL_VBI_LINES,8,3          ## @V4L_PAL_VBI_LINES
	.comm	_V4L2_VBI_UNSYNC,4,2            ## @V4L2_VBI_UNSYNC
	.no_dead_strip	_vidioc_g_fmt_vbi
.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 vidioc_g_fmt_vbi
lCPI0_0:
	.long	1440                            ; 0x5a0
	.long	27000000                        ; 0x19bfcc0
lCPI0_1:
	.long	10                              ; 0xa
	.long	264                             ; 0x108
lCPI0_2:
	.long	6                               ; 0x6
	.long	314                             ; 0x13a
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vidioc_g_fmt_vbi:                      ; @vidioc_g_fmt_vbi
	.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
	mov	x0, x1
	ldr	x8, [x1]
Lloh0:
	adrp	x9, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x2]
Lloh2:
	adrp	x9, _V4L2_PIX_FMT_GREY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_PIX_FMT_GREY@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	str	w9, [x2, #40]
	mov	w9, #256
	str	w9, [x2, #8]
Lloh5:
	adrp	x9, _V4L2_STD_525_60@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V4L2_STD_525_60@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, eq
Lloh8:
	adrp	x9, _V4L_NTSC_VBI_LINES@GOTPAGE
Lloh9:
	ldr	x9, [x9, _V4L_NTSC_VBI_LINES@GOTPAGEOFF]
	ldr	x10, [x2, #16]
Lloh10:
	adrp	x11, _V4L_PAL_VBI_LINES@GOTPAGE
Lloh11:
	ldr	x11, [x11, _V4L_PAL_VBI_LINES@GOTPAGEOFF]
	csel	x9, x11, x9, eq
	dup.2s	v0, w8
	shl.2s	v0, v0, #31
	cmlt.2s	v0, v0, #0
Lloh12:
	adrp	x8, lCPI0_1@PAGE
Lloh13:
	ldr	d1, [x8, lCPI0_1@PAGEOFF]
Lloh14:
	adrp	x8, lCPI0_2@PAGE
Lloh15:
	ldr	d2, [x8, lCPI0_2@PAGEOFF]
	bsl.8b	v0, v2, v1
	str	d0, [x10]
	ldr	x8, [x9]
	ldr	x10, [x2, #32]
	str	x8, [x10]
	ldr	x8, [x9]
	ldr	x9, [x2, #32]
	str	x8, [x9, #8]
Lloh16:
	adrp	x8, _V4L2_VBI_UNSYNC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _V4L2_VBI_UNSYNC@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x2, #24]
	bl	_logs
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpAdrp	Lloh12, Lloh14
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_PIX_FMT_GREY,4,2          ; @V4L2_PIX_FMT_GREY
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_V4L_NTSC_VBI_LINES,8,3         ; @V4L_NTSC_VBI_LINES
	.comm	_V4L_PAL_VBI_LINES,8,3          ; @V4L_PAL_VBI_LINES
	.comm	_V4L2_VBI_UNSYNC,4,2            ; @V4L2_VBI_UNSYNC
	.no_dead_strip	_vidioc_g_fmt_vbi
.subsections_via_symbols
