	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx23885_vbi_fmt                ## -- Begin function cx23885_vbi_fmt
	.p2align	4, 0x90
_cx23885_vbi_fmt:                       ## @cx23885_vbi_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_video_drvdata
	movl	$27000000, (%rbx)               ## imm = 0x19BFCC0
	movq	_VBI_LINE_LENGTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 44(%rbx)
	movq	_V4L2_PIX_FMT_GREY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movl	(%rax), %eax
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_V4L2_VBI_ITU_525_F1_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addq	$9, %rcx
	movq	16(%rbx), %rax
	movq	%rcx, (%rax)
	movq	_VBI_NTSC_LINE_COUNT@GOTPCREL(%rip), %rcx
	movl	$9, %edx
	movq	_V4L2_VBI_ITU_525_F2_START@GOTPCREL(%rip), %rsi
	jmp	LBB0_4
LBB0_2:
	movq	_V4L2_STD_625_50@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.3:
	movq	_V4L2_VBI_ITU_625_F1_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addq	$5, %rcx
	movq	16(%rbx), %rax
	movq	%rcx, (%rax)
	movq	_VBI_PAL_LINE_COUNT@GOTPCREL(%rip), %rcx
	movl	$5, %edx
	movq	_V4L2_VBI_ITU_625_F2_START@GOTPCREL(%rip), %rsi
LBB0_4:
	addq	(%rsi), %rdx
	movq	%rdx, 8(%rax)
	movq	(%rcx), %rax
	movq	8(%rbx), %rdx
	movq	%rax, (%rdx)
	movq	(%rcx), %rax
	movq	8(%rbx), %rcx
	movq	%rax, 8(%rcx)
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	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_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_V4L2_VBI_ITU_525_F1_START,8,3  ## @V4L2_VBI_ITU_525_F1_START
	.comm	_V4L2_VBI_ITU_525_F2_START,8,3  ## @V4L2_VBI_ITU_525_F2_START
	.comm	_VBI_NTSC_LINE_COUNT,8,3        ## @VBI_NTSC_LINE_COUNT
	.comm	_V4L2_STD_625_50,4,2            ## @V4L2_STD_625_50
	.comm	_V4L2_VBI_ITU_625_F1_START,8,3  ## @V4L2_VBI_ITU_625_F1_START
	.comm	_V4L2_VBI_ITU_625_F2_START,8,3  ## @V4L2_VBI_ITU_625_F2_START
	.comm	_VBI_PAL_LINE_COUNT,8,3         ## @VBI_PAL_LINE_COUNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx23885_vbi_fmt                ; -- Begin function cx23885_vbi_fmt
	.p2align	2
_cx23885_vbi_fmt:                       ; @cx23885_vbi_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
	mov	w8, #64704
	movk	w8, #411, lsl #16
	str	w8, [x19]
Lloh0:
	adrp	x8, _VBI_LINE_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VBI_LINE_LENGTH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _V4L2_PIX_FMT_GREY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_PIX_FMT_GREY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
	stp	xzr, xzr, [x19, #24]
	ldr	w8, [x0]
Lloh6:
	adrp	x9, _V4L2_STD_525_60@GOTPAGE
Lloh7:
	ldr	x9, [x9, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _V4L2_VBI_ITU_525_F1_START@GOTPAGE
Lloh10:
	ldr	x8, [x8, _V4L2_VBI_ITU_525_F1_START@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	add	x9, x8, #9
	ldr	x8, [x19, #16]
	str	x9, [x8]
Lloh12:
	adrp	x9, _VBI_NTSC_LINE_COUNT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VBI_NTSC_LINE_COUNT@GOTPAGEOFF]
Lloh14:
	adrp	x10, _V4L2_VBI_ITU_525_F2_START@GOTPAGE
Lloh15:
	ldr	x10, [x10, _V4L2_VBI_ITU_525_F2_START@GOTPAGEOFF]
	mov	w11, #9
	b	LBB0_4
LBB0_2:
Lloh16:
	adrp	x9, _V4L2_STD_625_50@GOTPAGE
Lloh17:
	ldr	x9, [x9, _V4L2_STD_625_50@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh19:
	adrp	x8, _V4L2_VBI_ITU_625_F1_START@GOTPAGE
Lloh20:
	ldr	x8, [x8, _V4L2_VBI_ITU_625_F1_START@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	add	x9, x8, #5
	ldr	x8, [x19, #16]
	str	x9, [x8]
Lloh22:
	adrp	x9, _VBI_PAL_LINE_COUNT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _VBI_PAL_LINE_COUNT@GOTPAGEOFF]
Lloh24:
	adrp	x10, _V4L2_VBI_ITU_625_F2_START@GOTPAGE
Lloh25:
	ldr	x10, [x10, _V4L2_VBI_ITU_625_F2_START@GOTPAGEOFF]
	mov	w11, #5
LBB0_4:
	ldr	x10, [x10]
	add	x10, x10, x11
	str	x10, [x8, #8]
	ldr	x8, [x9]
	ldr	x10, [x19, #8]
	str	x8, [x10]
	ldr	x8, [x9]
	ldr	x9, [x19, #8]
	str	x8, [x9, #8]
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.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_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_V4L2_VBI_ITU_525_F1_START,8,3  ; @V4L2_VBI_ITU_525_F1_START
	.comm	_V4L2_VBI_ITU_525_F2_START,8,3  ; @V4L2_VBI_ITU_525_F2_START
	.comm	_VBI_NTSC_LINE_COUNT,8,3        ; @VBI_NTSC_LINE_COUNT
	.comm	_V4L2_STD_625_50,4,2            ; @V4L2_STD_625_50
	.comm	_V4L2_VBI_ITU_625_F1_START,8,3  ; @V4L2_VBI_ITU_625_F1_START
	.comm	_V4L2_VBI_ITU_625_F2_START,8,3  ; @V4L2_VBI_ITU_625_F2_START
	.comm	_VBI_PAL_LINE_COUNT,8,3         ; @VBI_PAL_LINE_COUNT
.subsections_via_symbols
