	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx8800_vbi_fmt                 ## -- Begin function cx8800_vbi_fmt
	.p2align	4, 0x90
_cx8800_vbi_fmt:                        ## @cx8800_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
	movq	_VBI_LINE_LENGTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 28(%rbx)
	movq	_V4L2_PIX_FMT_GREY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rbx)
	movl	$244, (%rbx)
	movq	(%rax), %rax
	movl	(%rax), %eax
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movl	$28636363, 4(%rbx)              ## imm = 0x1B4F4CB
	movq	8(%rbx), %rax
	movl	$10, (%rax)
	movq	_VBI_LINE_NTSC_COUNT@GOTPCREL(%rip), %rcx
	movl	$273, %edx                      ## imm = 0x111
	jmp	LBB0_4
LBB0_2:
	movq	_V4L2_STD_625_50@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.3:
	movl	$35468950, 4(%rbx)              ## imm = 0x21D3696
	movq	_V4L2_VBI_ITU_625_F1_START@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addl	$5, %ecx
	movq	8(%rbx), %rax
	movl	%ecx, (%rax)
	movq	_V4L2_VBI_ITU_625_F2_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	addl	$5, %edx
	movq	_VBI_LINE_PAL_COUNT@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	%edx, 4(%rax)
	movq	(%rcx), %rax
	movq	16(%rbx), %rdx
	movq	%rax, (%rdx)
	movq	(%rcx), %rax
	movq	16(%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	_VBI_LINE_NTSC_COUNT,8,3        ## @VBI_LINE_NTSC_COUNT
	.comm	_V4L2_STD_625_50,4,2            ## @V4L2_STD_625_50
	.comm	_V4L2_VBI_ITU_625_F1_START,4,2  ## @V4L2_VBI_ITU_625_F1_START
	.comm	_V4L2_VBI_ITU_625_F2_START,4,2  ## @V4L2_VBI_ITU_625_F2_START
	.comm	_VBI_LINE_PAL_COUNT,8,3         ## @VBI_LINE_PAL_COUNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx8800_vbi_fmt                 ; -- Begin function cx8800_vbi_fmt
	.p2align	2
_cx8800_vbi_fmt:                        ; @cx8800_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
Lloh0:
	adrp	x8, _VBI_LINE_LENGTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VBI_LINE_LENGTH@GOTPAGEOFF]
Lloh2:
	adrp	x9, _V4L2_PIX_FMT_GREY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_PIX_FMT_GREY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	mov	w8, #244
	str	w8, [x19]
	ldr	x8, [x0]
	ldr	w8, [x8]
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:
	mov	w8, #62667
	movk	w8, #436, lsl #16
	str	w8, [x19, #4]
	ldr	x8, [x19, #8]
	mov	w9, #10
	str	w9, [x8]
Lloh9:
	adrp	x9, _VBI_LINE_NTSC_COUNT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VBI_LINE_NTSC_COUNT@GOTPAGEOFF]
	mov	w10, #273
	b	LBB0_4
LBB0_2:
Lloh11:
	adrp	x9, _V4L2_STD_625_50@GOTPAGE
Lloh12:
	ldr	x9, [x9, _V4L2_STD_625_50@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	mov	w8, #13974
	movk	w8, #541, lsl #16
	str	w8, [x19, #4]
Lloh14:
	adrp	x8, _V4L2_VBI_ITU_625_F1_START@GOTPAGE
Lloh15:
	ldr	x8, [x8, _V4L2_VBI_ITU_625_F1_START@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	add	w9, w8, #5
	ldr	x8, [x19, #8]
	str	w9, [x8]
Lloh17:
	adrp	x9, _V4L2_VBI_ITU_625_F2_START@GOTPAGE
Lloh18:
	ldr	x9, [x9, _V4L2_VBI_ITU_625_F2_START@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	add	w10, w9, #5
Lloh20:
	adrp	x9, _VBI_LINE_PAL_COUNT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _VBI_LINE_PAL_COUNT@GOTPAGEOFF]
LBB0_4:
	str	w10, [x8, #4]
	ldr	x8, [x9]
	ldr	x10, [x19, #16]
	str	x8, [x10]
	ldr	x8, [x9]
	ldr	x9, [x19, #16]
	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	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.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	_VBI_LINE_NTSC_COUNT,8,3        ; @VBI_LINE_NTSC_COUNT
	.comm	_V4L2_STD_625_50,4,2            ; @V4L2_STD_625_50
	.comm	_V4L2_VBI_ITU_625_F1_START,4,2  ; @V4L2_VBI_ITU_625_F1_START
	.comm	_V4L2_VBI_ITU_625_F2_START,4,2  ; @V4L2_VBI_ITU_625_F2_START
	.comm	_VBI_LINE_PAL_COUNT,8,3         ; @VBI_LINE_PAL_COUNT
.subsections_via_symbols
