	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bttv_vbi_fmt_reset             ## -- Begin function bttv_vbi_fmt_reset
	.p2align	4, 0x90
_bttv_vbi_fmt_reset:                    ## @bttv_vbi_fmt_reset
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_bttv_tvnorms@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movl	%esi, %eax
	leaq	(%rax,%rax,2), %r15
	leaq	(%r14,%r15,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	16(%r14,%r15,8), %eax
	movl	%eax, 64(%rdi)
	movq	_VBI_BPL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, 16(%rdi)
	movq	_V4L2_PIX_FMT_GREY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 60(%rdi)
	movq	_VBI_OFFSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 56(%rdi)
	movq	(%r14,%r15,8), %rcx
	movl	(%rcx), %edx
	movq	24(%rdi), %rsi
	movl	%edx, (%rsi)
	movl	4(%rcx), %edx
	movl	%edx, 4(%rsi)
	movq	_VBI_DEFLINES@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	32(%rdi), %rsi
	movl	%edx, (%rsi)
	movl	(%r13), %edx
	movl	%edx, 4(%rsi)
	movq	$0, 48(%rdi)
	movq	40(%rdi), %rdx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdx)
	movl	8(%r14,%r15,8), %edx
	movl	12(%r14,%r15,8), %r12d
	leal	1024(,%rdx,4), %edx
	sarl	%r12d
	subl	(%rcx), %r12d
	xorl	%edi, %edi
	cmpl	(%rax), %edx
	seta	%dil
	callq	_BUG_ON
	xorl	%edi, %edi
	cmpl	(%r13), %r12d
	seta	%dil
	callq	_BUG_ON
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rbx)
	movq	(%r14,%r15,8), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	addl	$2, %eax
	movl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bttv_tvnorms,8,3               ## @bttv_tvnorms
	.comm	_VBI_BPL,4,2                    ## @VBI_BPL
	.comm	_V4L2_PIX_FMT_GREY,4,2          ## @V4L2_PIX_FMT_GREY
	.comm	_VBI_OFFSET,4,2                 ## @VBI_OFFSET
	.comm	_VBI_DEFLINES,4,2               ## @VBI_DEFLINES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bttv_vbi_fmt_reset             ; -- Begin function bttv_vbi_fmt_reset
	.p2align	2
_bttv_vbi_fmt_reset:                    ; @bttv_vbi_fmt_reset
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _bttv_tvnorms@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bttv_tvnorms@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #24
	umaddl	x20, w1, w9, x8
	ldr	w8, [x20, #16]
	str	w8, [x0, #64]
Lloh3:
	adrp	x8, _VBI_BPL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VBI_BPL@GOTPAGEOFF]
	ldr	w9, [x8]
	str	w9, [x0, #16]
Lloh5:
	adrp	x9, _V4L2_PIX_FMT_GREY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _V4L2_PIX_FMT_GREY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _VBI_OFFSET@GOTPAGE
Lloh9:
	ldr	x10, [x10, _VBI_OFFSET@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	stp	w10, w9, [x0, #56]
	ldr	x9, [x20]
	ldr	w10, [x9]
	ldp	x11, x12, [x0, #24]
	str	w10, [x11]
	ldr	w10, [x9, #4]
	str	w10, [x11, #4]
Lloh11:
	adrp	x21, _VBI_DEFLINES@GOTPAGE
Lloh12:
	ldr	x21, [x21, _VBI_DEFLINES@GOTPAGEOFF]
	ldr	w10, [x21]
	str	w10, [x12]
	ldr	w10, [x21]
	str	w10, [x12, #4]
	str	xzr, [x0, #48]
	ldr	x10, [x0, #40]
	stp	xzr, xzr, [x10]
	ldp	w10, w11, [x20, #8]
	lsl	w10, w10, #2
	add	w10, w10, #1024
	asr	w11, w11, #1
	ldr	w9, [x9]
	sub	w22, w11, w9
	ldr	w8, [x8]
	cmp	w10, w8
	cset	w0, hi
	bl	_BUG_ON
	ldr	w8, [x21]
	cmp	w22, w8
	cset	w0, hi
	bl	_BUG_ON
	str	x20, [x19, #8]
	ldr	x8, [x20]
	ldr	w8, [x8]
	lsl	w8, w8, #1
	add	w8, w8, #2
	str	w8, [x19]
	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 AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_bttv_tvnorms,8,3               ; @bttv_tvnorms
	.comm	_VBI_BPL,4,2                    ; @VBI_BPL
	.comm	_V4L2_PIX_FMT_GREY,4,2          ; @V4L2_PIX_FMT_GREY
	.comm	_VBI_OFFSET,4,2                 ; @VBI_OFFSET
	.comm	_VBI_DEFLINES,4,2               ; @VBI_DEFLINES
.subsections_via_symbols
