	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_preview
_start_preview:                         ## @start_preview
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_verify_preview
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%rbx), %rax
	movq	%rax, (%r15)
	movl	28(%rbx), %esi
	movl	24(%rbx), %edx
	movl	8(%rbx), %ecx
	movq	16(%rbx), %r8
	movq	16(%r15), %rdi
	movl	32(%rdi), %r9d
	movq	_v4l2_field_names@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movl	(%rdi,%rax,4), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movq	_TASK_B@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	24(%rbx), %r13d
	movl	28(%rbx), %r14d
	movq	(%r15), %rdi
	callq	_V4L2_FIELD_HAS_BOTH
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movq	%rax, %r8
	callq	_set_size
	movl	32(%rbx), %r14d
	movl	36(%rbx), %r12d
	movq	(%r15), %rdi
	callq	_V4L2_FIELD_HAS_BOTH
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movq	%rax, %rcx
	callq	_setup_clipping
	movq	16(%r15), %rax
	xorl	%r14d, %r14d
	cmpq	$0, 24(%rax)
	setne	%r14b
	movq	_TASK_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SAA7134_DATA_PATH
	leal	(%r14,%r14), %edx
	incl	%edx
	movl	%eax, %edi
	movl	$63, %esi
	callq	_saa_andorb
	movq	_SAA7134_OFMT_VIDEO_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	16(%r15), %rax
	movl	(%rax), %esi
	orl	$32, %esi
	callq	_saa_writeb
	movq	24(%r15), %r12
	movq	16(%rbx), %r13
	imulq	%r12, %r13
	addq	32(%r15), %r13
	movq	16(%r15), %rax
	movl	4(%rax), %ecx
	leal	7(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$3, %edx
	movslq	8(%rbx), %rsi
	movslq	%edx, %rcx
	imulq	%rsi, %rcx
	movq	_SAA7134_RS_CONTROL_BURST_16@GOTPCREL(%rip), %rdx
	movq	16(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	movq	_SAA7134_RS_CONTROL_BSWAP@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rbx
LBB0_3:
	orq	(%rdx), %rbx
	movq	(%r15), %rdi
	addq	%rcx, %r13
	movq	8(%rax), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_SAA7134_RS_CONTROL_WSWAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_5:
	orq	%rax, %rbx
	callq	_V4L2_FIELD_HAS_BOTH
	movq	%rax, %r14
	movl	$1, %edi
	callq	_SAA7134_RS_BA1
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_saa_writel
	movl	$1, %edi
	callq	_SAA7134_RS_BA2
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	addq	%r12, %r13
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_saa_writel
	movl	$1, %edi
	callq	_SAA7134_RS_PITCH
	addq	%r12, %r12
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %edi
	movq	%r13, %rsi
	callq	_saa_writel
	movl	$1, %edi
	callq	_SAA7134_RS_PITCH
LBB0_8:
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_saa_writel
	movl	$1, %edi
	callq	_SAA7134_RS_CONTROL
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_saa_writel
	movl	$1, 8(%r15)
	movq	%r15, %rdi
	callq	_saa7134_set_dmabits
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"start_preview %dx%d+%d+%d %s field=%s\n"

	.comm	_v4l2_field_names,8,3           ## @v4l2_field_names
	.comm	_TASK_B,4,2                     ## @TASK_B
	.comm	_SAA7134_OFMT_VIDEO_B,4,2       ## @SAA7134_OFMT_VIDEO_B
	.comm	_SAA7134_RS_CONTROL_BURST_16,8,3 ## @SAA7134_RS_CONTROL_BURST_16
	.comm	_SAA7134_RS_CONTROL_BSWAP,8,3   ## @SAA7134_RS_CONTROL_BSWAP
	.comm	_SAA7134_RS_CONTROL_WSWAP,8,3   ## @SAA7134_RS_CONTROL_WSWAP
	.no_dead_strip	_start_preview
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_preview
_start_preview:                         ; @start_preview
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_verify_preview
	mov	x20, x0
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x8, [x21]
	str	x8, [x19]
	ldp	w2, w1, [x21, #24]
	ldr	w3, [x21, #8]
	ldr	x4, [x21, #16]
	ldr	x9, [x19, #16]
	ldr	w5, [x9, #32]
Lloh0:
	adrp	x9, _v4l2_field_names@GOTPAGE
Lloh1:
	ldr	x9, [x9, _v4l2_field_names@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w6, [x9, x8, lsl #2]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
Lloh5:
	adrp	x25, _TASK_B@GOTPAGE
Lloh6:
	ldr	x25, [x25, _TASK_B@GOTPAGEOFF]
	ldr	w22, [x25]
	ldp	w24, w23, [x21, #24]
	ldr	x0, [x19]
	bl	_V4L2_FIELD_HAS_BOTH
	mov	x4, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_set_size
	ldp	w23, w22, [x21, #32]
	ldr	x0, [x19]
	bl	_V4L2_FIELD_HAS_BOTH
	mov	x3, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_setup_clipping
	ldr	x8, [x19, #16]
	ldr	x22, [x8, #24]
	ldr	w0, [x25]
	bl	_SAA7134_DATA_PATH
	cmp	x22, #0
	mov	w8, #3
	csinc	w2, w8, wzr, ne
	mov	w1, #63
	bl	_saa_andorb
Lloh7:
	adrp	x8, _SAA7134_OFMT_VIDEO_B@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SAA7134_OFMT_VIDEO_B@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	orr	w1, w8, #0x20
	bl	_saa_writeb
	ldp	x22, x8, [x19, #24]
	ldr	x9, [x21, #16]
	ldr	x10, [x19, #16]
	madd	x8, x9, x22, x8
	ldr	w9, [x10, #4]
	add	w11, w9, #7
	cmp	w9, #0
	csel	w9, w11, w9, lt
	ldrsw	x11, [x21, #8]
	sbfx	x9, x9, #3, #29
	madd	x23, x9, x11, x8
Lloh10:
	adrp	x8, _SAA7134_RS_CONTROL_BURST_16@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SAA7134_RS_CONTROL_BURST_16@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _SAA7134_RS_CONTROL_BSWAP@GOTPAGE
Lloh14:
	ldr	x9, [x9, _SAA7134_RS_CONTROL_BSWAP@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldp	x10, x11, [x10, #8]
	cmp	x11, #0
	csel	x9, xzr, x9, eq
Lloh16:
	adrp	x11, _SAA7134_RS_CONTROL_WSWAP@GOTPAGE
Lloh17:
	ldr	x11, [x11, _SAA7134_RS_CONTROL_WSWAP@GOTPAGEOFF]
	orr	x8, x9, x8
Lloh18:
	ldr	x9, [x11]
	cmp	x10, #0
	csel	x9, xzr, x9, eq
	orr	x21, x8, x9
	ldr	x0, [x19]
	bl	_V4L2_FIELD_HAS_BOTH
	mov	x24, x0
	mov	w0, #1
	bl	_SAA7134_RS_BA1
	mov	x1, x23
	bl	_saa_writel
	mov	w0, #1
	bl	_SAA7134_RS_BA2
	cbz	x24, LBB0_3
; %bb.2:
	add	x1, x23, x22
	bl	_saa_writel
	mov	w0, #1
	bl	_SAA7134_RS_PITCH
	lsl	x1, x22, #1
	b	LBB0_4
LBB0_3:
	mov	x1, x23
	bl	_saa_writel
	mov	w0, #1
	bl	_SAA7134_RS_PITCH
	mov	x1, x22
LBB0_4:
	bl	_saa_writel
	mov	w22, #1
	mov	w0, #1
	bl	_SAA7134_RS_CONTROL
	mov	x1, x21
	bl	_saa_writel
	str	w22, [x19, #8]
	mov	x0, x19
	bl	_saa7134_set_dmabits
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"start_preview %dx%d+%d+%d %s field=%s\n"

	.comm	_v4l2_field_names,8,3           ; @v4l2_field_names
	.comm	_TASK_B,4,2                     ; @TASK_B
	.comm	_SAA7134_OFMT_VIDEO_B,4,2       ; @SAA7134_OFMT_VIDEO_B
	.comm	_SAA7134_RS_CONTROL_BURST_16,8,3 ; @SAA7134_RS_CONTROL_BURST_16
	.comm	_SAA7134_RS_CONTROL_BSWAP,8,3   ; @SAA7134_RS_CONTROL_BSWAP
	.comm	_SAA7134_RS_CONTROL_WSWAP,8,3   ; @SAA7134_RS_CONTROL_WSWAP
	.no_dead_strip	_start_preview
.subsections_via_symbols
