	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bttv_g_fmt_vbi_cap             ## -- Begin function bttv_g_fmt_vbi_cap
	.p2align	4, 0x90
_bttv_g_fmt_vbi_cap:                    ## @bttv_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
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	24(%rsi), %rax
	movq	%rax, 16(%rdx)
	movups	8(%rsi), %xmm0
	movups	%xmm0, (%rdx)
	movq	_bttv_tvnorms@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rsi), %rax
	movq	32(%rsi), %rdx
	movq	(%rdx), %rdx
	leaq	(%rdx,%rdx,2), %rdx
	leaq	(%rcx,%rdx,8), %r12
	cmpq	%rax, %r12
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r15
	movl	16(%rcx,%rdx,8), %ebx
	addl	12(%rcx,%rdx,8), %ebx
	movl	8(%rcx,%rdx,8), %ecx
	sarl	%ebx
	movl	%ecx, 16(%r14)
	movq	(%r14), %rcx
	movq	(%r12), %rdx
	movl	(%rdx), %edi
	addl	(%rcx), %edi
	movq	(%rax), %rax
	subl	(%rax), %edi
	leal	-1(%rbx), %esi
	callq	_min
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movq	8(%r14), %rcx
	movl	(%rcx), %edi
	movl	%ebx, %esi
	subl	%eax, %esi
	callq	_min
	movq	8(%r14), %rcx
	movq	%rax, (%rcx)
	movq	(%r12), %rax
	movl	4(%rax), %edi
	addl	%edi, %ebx
	subl	(%rax), %ebx
	movq	(%r14), %rax
	addl	4(%rax), %edi
	movq	(%r15), %rax
	movq	(%rax), %rax
	subl	4(%rax), %edi
	leal	-1(%rbx), %esi
	callq	_min
	movq	(%r14), %rcx
	movl	%eax, 4(%rcx)
	movq	8(%r14), %rcx
	movl	8(%rcx), %edi
	subl	%eax, %ebx
	movl	%ebx, %esi
	callq	_min
	movq	8(%r14), %rcx
	movq	%rax, 8(%rcx)
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bttv_tvnorms,8,3               ## @bttv_tvnorms
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bttv_g_fmt_vbi_cap             ; -- Begin function bttv_g_fmt_vbi_cap
	.p2align	2
_bttv_g_fmt_vbi_cap:                    ; @bttv_g_fmt_vbi_cap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldur	q0, [x1, #8]
	ldr	x8, [x1, #24]
	str	x8, [x2, #16]
	str	q0, [x2]
Lloh0:
	adrp	x8, _bttv_tvnorms@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bttv_tvnorms@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	ldr	x8, [x1, #32]
	ldr	x10, [x8]
	mov	w8, #24
	madd	x21, x10, x8, x9
	ldr	x8, [x1]
	cmp	x21, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	mov	w11, #24
	madd	x9, x10, x11, x9
	ldp	w11, w10, [x9, #12]
	ldr	w9, [x9, #8]
	add	w10, w10, w11
	asr	w22, w10, #1
	str	w9, [x2, #16]
	ldr	x9, [x2]
	ldr	w9, [x9]
	ldr	x10, [x21]
	ldr	w10, [x10]
	ldr	x8, [x8]
	ldr	w8, [x8]
	add	w9, w10, w9
	sub	w0, w9, w8
	sub	w1, w22, #1
	bl	_min
	ldp	x8, x9, [x19]
	str	w0, [x8]
	ldr	w8, [x9]
	sub	w1, w22, w0
	mov	x0, x8
	bl	_min
	ldr	x8, [x19, #8]
	str	x0, [x8]
	ldr	x8, [x21]
	ldp	w8, w9, [x8]
	add	w10, w9, w22
	sub	w21, w10, w8
	ldr	x8, [x19]
	ldr	w8, [x8, #4]
	ldr	x10, [x20]
	ldr	x10, [x10]
	ldr	w10, [x10, #4]
	add	w8, w9, w8
	sub	w0, w8, w10
	sub	w1, w21, #1
	bl	_min
	ldp	x8, x9, [x19]
	str	w0, [x8, #4]
	ldr	w8, [x9, #8]
	sub	w1, w21, w0
	mov	x0, x8
	bl	_min
	ldr	x8, [x19, #8]
	str	x0, [x8, #8]
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_bttv_tvnorms,8,3               ; @bttv_tvnorms
.subsections_via_symbols
