	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bttv_buffer_risc               ## -- Begin function bttv_buffer_risc
	.p2align	4, 0x90
_bttv_buffer_risc:                      ## @bttv_buffer_risc
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	_bttv_tvnorms@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	56(%rsi), %rcx
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rcx,8), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	16(%rsi), %rdi
	callq	_videobuf_to_dma
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %esi
	movq	_v4l2_field_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r13), %rcx
	movq	16(%r13), %rdx
	movl	(%rax,%rdx,4), %edx
	movl	24(%rcx), %ecx
	movl	24(%r13), %r8d
	movl	28(%r13), %r9d
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movq	(%r13), %rax
	movq	_FORMAT_FLAGS_PACKED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_11
## %bb.1:
	movl	4(%rax), %ebx
	movl	16(%r13), %edi
	movl	24(%r13), %r15d
	movl	28(%r13), %r12d
	leaq	52(%r13), %r14
	callq	_V4L2_FIELD_HAS_BOTH
	leaq	48(%r13), %r10
	subq	$8, %rsp
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	pushq	%r10
	callq	_bttv_calc_geo
	addq	$16, %rsp
	movq	16(%r13), %rax
	addq	$-128, %rax
	cmpq	$3, %rax
	ja	LBB0_10
## %bb.2:
	sarl	$3, %ebx
	imull	%r15d, %ebx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	leaq	44(%r13), %rsi
	jmp	LBB0_4
LBB0_10:
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_11
LBB0_9:
	sarl	%r12d
	imull	%ebx, %r12d
	leaq	44(%r13), %rsi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edx
	movl	28(%r13), %eax
	sarl	%eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	_bttv_risc_packed
	addq	$16, %rsp
	leaq	40(%r13), %rsi
	movl	(%r15), %edx
	movl	28(%r13), %eax
	sarl	%eax
	movq	%r14, %rdi
	movl	%r12d, %ecx
	jmp	LBB0_5
LBB0_8:
	leaq	44(%r13), %rsi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edx
	movl	28(%r13), %eax
	sarl	%eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	movl	%ebx, %r9d
	pushq	%rax
	pushq	$0
	callq	_bttv_risc_packed
	addq	$16, %rsp
	leaq	40(%r13), %rsi
	movl	(%r15), %edx
	movl	28(%r13), %eax
	sarl	%eax
	movq	%r14, %rdi
	movl	%ebx, %ecx
	movl	%ebx, %r8d
	movl	%ebx, %r9d
	jmp	LBB0_6
LBB0_7:
	leaq	40(%r13), %rsi
LBB0_4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	28(%r13), %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
LBB0_5:
	movl	%ebx, %r8d
	xorl	%r9d, %r9d
LBB0_6:
	pushq	%rax
	pushq	$0
	callq	_bttv_risc_packed
	addq	$16, %rsp
LBB0_11:
	movq	(%r13), %rdi
	movl	(%rdi), %esi
	movq	_FORMAT_FLAGS_PLANAR@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_21
## %bb.12:
	movl	24(%r13), %edx
	movl	28(%r13), %r8d
	movl	%r8d, %eax
	imull	%edx, %eax
	movb	8(%rdi), %cl
	movl	%eax, %r14d
	sarl	%cl, %r14d
	movb	12(%rdi), %cl
	sarl	%cl, %r14d
	movq	_FORMAT_FLAGS_CrCb@GOTPCREL(%rip), %rcx
	addl	%eax, %r14d
	testl	%esi, (%rcx)
	movl	%r14d, %r15d
	cmovel	%eax, %r15d
	cmovnel	%eax, %r14d
	movq	16(%r13), %rcx
	addq	$-128, %rcx
	cmpq	$3, %rcx
	ja	LBB0_20
## %bb.13:
	leaq	LJTI0_1(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_14:
	leaq	52(%r13), %rsi
	leaq	48(%r13), %rax
	subq	$8, %rsp
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r8d, %ecx
	xorl	%r8d, %r8d
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	pushq	%rax
	callq	_bttv_calc_geo
	addq	$16, %rsp
	leaq	44(%r13), %rsi
	jmp	LBB0_15
LBB0_20:
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_21
LBB0_19:
	leaq	52(%r13), %rsi
	leaq	48(%r13), %rax
	subq	$8, %rsp
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r8d, %ecx
	movl	$1, %r8d
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	pushq	%rax
	callq	_bttv_calc_geo
	addq	$16, %rsp
	movl	28(%r13), %ebx
	sarl	%ebx
	movl	24(%r13), %r12d
	movq	(%r13), %rax
	leaq	44(%r13), %rsi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	sarl	%r15d
	sarl	%r14d
	movl	8(%rax), %r10d
	movl	12(%rax), %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rax
	pushq	%r10
	pushq	%r14
	pushq	%r15
	pushq	%rbx
	callq	_bttv_risc_planar
	addq	$48, %rsp
	leaq	40(%r13), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	imull	%ebx, %r12d
	movl	24(%r13), %r8d
	addl	%r12d, %r15d
	addl	%r12d, %r14d
	movq	(%r13), %rax
	movl	8(%rax), %r10d
	movl	12(%rax), %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %ecx
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rax
	pushq	%r10
	pushq	%r14
	pushq	%r15
	pushq	%rbx
	jmp	LBB0_16
LBB0_18:
	leaq	52(%r13), %rsi
	leaq	48(%r13), %rax
	subq	$8, %rsp
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r8d, %ecx
	movl	$1, %r8d
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	pushq	%rax
	callq	_bttv_calc_geo
	addq	$16, %rsp
	movl	28(%r13), %esi
	movl	24(%r13), %r12d
	movq	(%r13), %rdx
	movl	8(%rdx), %eax
	movl	%r12d, %ebx
	movl	%eax, %ecx
	sarl	%cl, %ebx
	sarl	%esi
	movq	%rsi, %r11
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	12(%rdx), %r10d
	leaq	44(%r13), %rsi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%ecx, %ecx
	movl	%r12d, %r8d
	movl	%r12d, %r9d
	pushq	%rbx
	pushq	%r10
	pushq	%rax
	pushq	%r14
	pushq	%r15
	pushq	%r11
	callq	_bttv_risc_planar
	addq	$48, %rsp
	leaq	40(%r13), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	24(%r13), %r8d
	addl	%ebx, %r15d
	addl	%ebx, %r14d
	movq	(%r13), %rax
	movl	8(%rax), %r10d
	movl	12(%rax), %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %ecx
	movl	%r12d, %r9d
	pushq	%rbx
	pushq	%rax
	pushq	%r10
	pushq	%r14
	pushq	%r15
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	jmp	LBB0_16
LBB0_17:
	leaq	52(%r13), %rsi
	leaq	48(%r13), %rax
	subq	$8, %rsp
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r8d, %ecx
	xorl	%r8d, %r8d
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	pushq	%rax
	callq	_bttv_calc_geo
	addq	$16, %rsp
	leaq	40(%r13), %rsi
LBB0_15:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	24(%r13), %r8d
	movl	28(%r13), %r10d
	movq	(%r13), %rcx
	movl	8(%rcx), %r11d
	movl	12(%rcx), %eax
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rax
	pushq	%r11
	pushq	%r14
	pushq	%r15
	pushq	%r10
LBB0_16:
	callq	_bttv_risc_planar
	addq	$48, %rsp
LBB0_21:
	movq	(%r13), %rax
	movq	_FORMAT_FLAGS_RAW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_23
## %bb.22:
	movq	$129, 16(%r13)
	leaq	52(%r13), %rsi
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,8), %edx
	movl	4(%rax,%rcx,8), %ecx
	leaq	48(%r13), %rax
	subq	$8, %rsp
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	$1, %r8d
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	pushq	%rax
	callq	_bttv_calc_geo
	addq	$16, %rsp
	leaq	44(%r13), %rsi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edx
	movq	_RAW_BPL@GOTPCREL(%rip), %r14
	movl	(%r14), %r8d
	movq	_RAW_LINES@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	_bttv_risc_packed
	addq	$16, %rsp
	leaq	40(%r13), %rsi
	movl	(%rbx), %edx
	movl	32(%r13), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	(%r14), %r8d
	movl	(%r15), %eax
	movq	%r12, %rdi
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	_bttv_risc_packed
	addq	$16, %rsp
	movq	(%r13), %rax
LBB0_23:
	movl	20(%rax), %ecx
	movl	%ecx, 12(%r13)
	movl	16(%rax), %eax
	movl	%eax, 8(%r13)
	xorl	%eax, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_7
.set L0_1_set_14, LBB0_14-LJTI0_1
.set L0_1_set_19, LBB0_19-LJTI0_1
.set L0_1_set_18, LBB0_18-LJTI0_1
.set L0_1_set_17, LBB0_17-LJTI0_1
LJTI0_1:
	.long	L0_1_set_14
	.long	L0_1_set_19
	.long	L0_1_set_18
	.long	L0_1_set_17
	.end_data_region
                                        ## -- End function
	.comm	_bttv_tvnorms,8,3               ## @bttv_tvnorms
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d: buffer field: %s  format: 0x%08x  size: %dx%d\n"

	.comm	_v4l2_field_names,8,3           ## @v4l2_field_names
	.comm	_FORMAT_FLAGS_PACKED,4,2        ## @FORMAT_FLAGS_PACKED
	.comm	_FORMAT_FLAGS_PLANAR,4,2        ## @FORMAT_FLAGS_PLANAR
	.comm	_FORMAT_FLAGS_CrCb,4,2          ## @FORMAT_FLAGS_CrCb
	.comm	_FORMAT_FLAGS_RAW,4,2           ## @FORMAT_FLAGS_RAW
	.comm	_RAW_BPL,4,2                    ## @RAW_BPL
	.comm	_RAW_LINES,4,2                  ## @RAW_LINES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bttv_buffer_risc               ; -- Begin function bttv_buffer_risc
	.p2align	2
_bttv_buffer_risc:                      ; @bttv_buffer_risc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _bttv_tvnorms@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bttv_tvnorms@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
	ldrsw	x27, [x1, #56]
	add	x22, x26, x27, lsl #3
	add	x0, x1, #16
	bl	_videobuf_to_dma
	mov	x21, x0
	ldr	w1, [x20]
Lloh3:
	adrp	x8, _v4l2_field_names@GOTPAGE
Lloh4:
	ldr	x8, [x8, _v4l2_field_names@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x19, #16]
	ldr	w2, [x8, x9, lsl #2]
	ldr	x8, [x19]
	ldr	w3, [x8, #24]
	ldp	w4, w5, [x19, #24]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	ldr	x8, [x19]
	ldr	w9, [x8]
Lloh8:
	adrp	x10, _FORMAT_FLAGS_PACKED@GOTPAGE
Lloh9:
	ldr	x10, [x10, _FORMAT_FLAGS_PACKED@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.1:
	ldr	w28, [x8, #4]
	ldp	w23, w24, [x19, #24]
	add	x25, x19, #52
	ldr	w0, [x19, #16]
	bl	_V4L2_FIELD_HAS_BOTH
	mov	x4, x0
	add	x6, x19, #48
	mov	x0, x20
	mov	x1, x25
	mov	x2, x23
	mov	x3, x24
	mov	x5, x22
	bl	_bttv_calc_geo
	ldr	x8, [x19, #16]
	sub	x8, x8, #128
	cmp	x8, #3
	b.hi	LBB0_4
; %bb.2:
	asr	w9, w28, #3
	mul	w23, w9, w23
Lloh11:
	adrp	x9, lJTI0_0@PAGE
Lloh12:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	add	x1, x19, #44
	b	LBB0_8
LBB0_4:
	bl	_BUG
	b	LBB0_11
LBB0_5:
	asr	w8, w24, #1
	mul	w24, w8, w23
	add	x1, x19, #44
	ldr	w2, [x21]
	ldr	w8, [x19, #28]
	asr	w7, w8, #1
	mov	x0, x20
	mov	w3, #0
	mov	x4, x23
	mov	w5, #0
	mov	w6, #0
	bl	_bttv_risc_packed
	add	x1, x19, #40
	ldr	w2, [x21]
	ldr	w8, [x19, #28]
	asr	w7, w8, #1
	mov	x0, x20
	mov	x3, x24
	b	LBB0_9
LBB0_6:
	add	x1, x19, #44
	ldr	w2, [x21]
	ldr	w8, [x19, #28]
	asr	w7, w8, #1
	mov	x0, x20
	mov	w3, #0
	mov	x4, x23
	mov	x5, x23
	mov	w6, #0
	bl	_bttv_risc_packed
	add	x1, x19, #40
	ldr	w2, [x21]
	ldr	w8, [x19, #28]
	asr	w7, w8, #1
	mov	x0, x20
	mov	x3, x23
	mov	x4, x23
	mov	x5, x23
	b	LBB0_10
LBB0_7:
	add	x1, x19, #40
LBB0_8:
	ldr	w2, [x21]
	ldr	w7, [x19, #28]
	mov	x0, x20
	mov	w3, #0
LBB0_9:
	mov	x4, x23
	mov	w5, #0
LBB0_10:
	mov	w6, #0
	bl	_bttv_risc_packed
LBB0_11:
	ldr	x9, [x19]
	ldr	w8, [x9]
Lloh13:
	adrp	x10, _FORMAT_FLAGS_PLANAR@GOTPAGE
Lloh14:
	ldr	x10, [x10, _FORMAT_FLAGS_PLANAR@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_21
; %bb.12:
	ldp	w2, w3, [x19, #24]
	mul	w10, w3, w2
Lloh16:
	adrp	x11, _FORMAT_FLAGS_CrCb@GOTPAGE
Lloh17:
	ldr	x11, [x11, _FORMAT_FLAGS_CrCb@GOTPAGEOFF]
Lloh18:
	ldr	w11, [x11]
	ldp	w12, w9, [x9, #8]
	asr	w12, w10, w12
	asr	w9, w12, w9
	add	w9, w9, w10
	tst	w11, w8
	csel	w23, w10, w9, eq
	csel	w28, w9, w10, eq
	ldr	x8, [x19, #16]
	sub	x8, x8, #128
	cmp	x8, #3
	b.hi	LBB0_15
; %bb.13:
Lloh19:
	adrp	x9, lJTI0_1@PAGE
Lloh20:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_14
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_14:
	add	x1, x19, #52
	add	x6, x19, #48
	mov	x0, x20
	mov	w4, #0
	mov	x5, x22
	bl	_bttv_calc_geo
	add	x1, x19, #44
	b	LBB0_19
LBB0_15:
	bl	_BUG
	b	LBB0_21
LBB0_16:
	add	x1, x19, #52
	add	x6, x19, #48
	mov	x0, x20
	mov	w4, #1
	mov	x5, x22
	bl	_bttv_calc_geo
	ldp	w24, w8, [x19, #24]
	asr	w25, w8, #1
	ldr	x8, [x19]
	add	x1, x19, #44
	ldr	w2, [x21]
	asr	w23, w23, #1
	asr	w28, w28, #1
	ldp	w9, w8, [x8, #8]
	stp	w8, wzr, [sp, #8]
	stp	w28, w9, [sp]
	mov	x0, x20
	mov	w3, #0
	mov	x4, x24
	mov	w5, #0
	mov	x6, x25
	mov	x7, x23
	bl	_bttv_risc_planar
	add	x1, x19, #40
	ldr	w2, [x21]
	mul	w3, w25, w24
	ldr	w4, [x19, #24]
	add	w7, w3, w23
	add	w8, w3, w28
	ldr	x9, [x19]
	ldp	w10, w9, [x9, #8]
	stp	w9, wzr, [sp, #8]
	stp	w8, w10, [sp]
	mov	x0, x20
	mov	w5, #0
	mov	x6, x25
	b	LBB0_20
LBB0_17:
	add	x1, x19, #52
	add	x6, x19, #48
	mov	x0, x20
	mov	w4, #1
	mov	x5, x22
	bl	_bttv_calc_geo
	ldp	w24, w8, [x19, #24]
	asr	w6, w8, #1
	str	w6, [sp, #28]                   ; 4-byte Folded Spill
	ldr	x8, [x19]
	ldp	w9, w8, [x8, #8]
	asr	w25, w24, w9
	add	x1, x19, #44
	ldr	w2, [x21]
	stp	w8, w25, [sp, #8]
	stp	w28, w9, [sp]
	mov	x0, x20
	mov	w3, #0
	mov	x4, x24
	mov	x5, x24
	mov	x7, x23
	bl	_bttv_risc_planar
	add	x1, x19, #40
	ldr	w2, [x21]
	ldr	w4, [x19, #24]
	add	w7, w25, w23
	add	w8, w25, w28
	ldr	x9, [x19]
	ldp	w10, w9, [x9, #8]
	stp	w9, w25, [sp, #8]
	stp	w8, w10, [sp]
	mov	x0, x20
	mov	x3, x24
	mov	x5, x24
	ldr	w6, [sp, #28]                   ; 4-byte Folded Reload
	b	LBB0_20
LBB0_18:
	add	x1, x19, #52
	add	x6, x19, #48
	mov	x0, x20
	mov	w4, #0
	mov	x5, x22
	bl	_bttv_calc_geo
	add	x1, x19, #40
LBB0_19:
	ldr	w2, [x21]
	ldp	w4, w6, [x19, #24]
	ldr	x8, [x19]
	ldp	w9, w8, [x8, #8]
	stp	w8, wzr, [sp, #8]
	stp	w28, w9, [sp]
	mov	x0, x20
	mov	w3, #0
	mov	w5, #0
	mov	x7, x23
LBB0_20:
	bl	_bttv_risc_planar
LBB0_21:
	ldr	x8, [x19]
	ldr	w9, [x8]
Lloh21:
	adrp	x10, _FORMAT_FLAGS_RAW@GOTPAGE
Lloh22:
	ldr	x10, [x10, _FORMAT_FLAGS_RAW@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_23
; %bb.22:
	mov	w8, #129
	str	x8, [x19, #16]
	add	x1, x19, #52
	ldr	w2, [x22]
	add	x8, x26, x27, lsl #3
	ldr	w3, [x8, #4]
	add	x6, x19, #48
	mov	x0, x20
	mov	w4, #1
	mov	x5, x22
	bl	_bttv_calc_geo
	add	x1, x19, #44
	ldr	w2, [x21]
Lloh24:
	adrp	x22, _RAW_BPL@GOTPAGE
Lloh25:
	ldr	x22, [x22, _RAW_BPL@GOTPAGEOFF]
	ldr	w4, [x22]
Lloh26:
	adrp	x23, _RAW_LINES@GOTPAGE
Lloh27:
	ldr	x23, [x23, _RAW_LINES@GOTPAGEOFF]
	ldr	w7, [x23]
	mov	x0, x20
	mov	w3, #0
	mov	w5, #0
	mov	w6, #0
	bl	_bttv_risc_packed
	add	x1, x19, #40
	ldr	w2, [x21]
	ldr	w8, [x19, #32]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w3, w8, #1
	ldr	w4, [x22]
	ldr	w7, [x23]
	mov	x0, x20
	mov	w5, #0
	mov	w6, #0
	bl	_bttv_risc_packed
	ldr	x8, [x19]
LBB0_23:
	ldr	d0, [x8, #16]
	str	d0, [x19, #8]
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
lJTI0_1:
	.byte	(LBB0_14-LBB0_14)>>2
	.byte	(LBB0_16-LBB0_14)>>2
	.byte	(LBB0_17-LBB0_14)>>2
	.byte	(LBB0_18-LBB0_14)>>2
                                        ; -- End function
	.comm	_bttv_tvnorms,8,3               ; @bttv_tvnorms
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d: buffer field: %s  format: 0x%08x  size: %dx%d\n"

	.comm	_v4l2_field_names,8,3           ; @v4l2_field_names
	.comm	_FORMAT_FLAGS_PACKED,4,2        ; @FORMAT_FLAGS_PACKED
	.comm	_FORMAT_FLAGS_PLANAR,4,2        ; @FORMAT_FLAGS_PLANAR
	.comm	_FORMAT_FLAGS_CrCb,4,2          ; @FORMAT_FLAGS_CrCb
	.comm	_FORMAT_FLAGS_RAW,4,2           ; @FORMAT_FLAGS_RAW
	.comm	_RAW_BPL,4,2                    ; @RAW_BPL
	.comm	_RAW_LINES,4,2                  ; @RAW_LINES
.subsections_via_symbols
