	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa711x_set_size
_saa711x_set_size:                      ## @saa711x_set_size
	.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
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_to_state
	movq	_V4L2_STD_625_50@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	andl	(%rax), %ebx
	movl	$480, %eax                      ## imm = 0x1E0
	movl	$576, %r13d                     ## imm = 0x240
	cmovel	%eax, %r13d
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r15, %rdx
	movl	%r14d, %r8d
	movl	%r12d, %r9d
	callq	_v4l2_dbg
	leal	-1441(%r14), %eax
	cmpl	$-1441, %eax                    ## imm = 0xFA5F
	ja	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	testl	%r12d, %r12d
	jle	LBB0_1
## %bb.3:
	cmpl	%r12d, %r13d
	jl	LBB0_1
## %bb.4:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movq	%rax, %rbx
	movl	12(%rax), %edi
	movq	_R_D0_B_HORIZ_PRESCALING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_saa711x_has_reg
	testl	%eax, %eax
	movq	%r15, %r13
	movq	_debug@GOTPCREL(%rip), %r15
	je	LBB0_5
LBB0_7:
	movl	%r14d, 4(%rbx)
	movl	%r12d, 8(%rbx)
	movl	12(%rbx), %edi
	movq	_R_CC_B_HORIZ_OUTPUT_WINDOW_LENGTH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_saa711x_has_reg
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	(%rbx), %esi
	movzbl	%r14b, %edx
	movq	%r13, %rdi
	callq	_saa711x_write
	movq	_R_CD_B_HORIZ_OUTPUT_WINDOW_LENGTH_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edx
	shrl	$8, %edx
	movq	%r13, %rdi
	callq	_saa711x_write
	movl	%r12d, %eax
	shrl	%eax
	movq	_VRES_60HZ@GOTPCREL(%rip), %rcx
	movl	$-480, %ebx                     ## imm = 0xFE20
	addl	(%rcx), %ebx
	sarl	%ebx
	xorl	%ecx, %ecx
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	cmovnel	%ecx, %ebx
	addl	%eax, %ebx
	movq	_R_CE_B_VERT_OUTPUT_WINDOW_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%bl, %edx
	movq	%r13, %rdi
	callq	_saa711x_write
	movq	_R_CF_B_VERT_OUTPUT_WINDOW_LENGTH_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%bh, %edx
	movq	%r13, %rdi
	callq	_saa711x_write
	movw	$720, %ax                       ## imm = 0x2D0
	xorl	%edx, %edx
	divw	%r14w
	movl	%eax, %ecx
	movzwl	%r14w, %eax
	cmpl	$721, %eax                      ## imm = 0x2D1
	movl	$1, %eax
	cmovael	%eax, %ecx
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	movq	%r15, %r12
	movzwl	%cx, %r15d
	imull	%r15d, %r14d
	movl	$737280, %eax                   ## imm = 0xB4000
	xorl	%edx, %edx
	divl	%r14d
	movl	%eax, %ebx
	movq	_R_D0_B_HORIZ_PRESCALING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	$63, %ecx
	movq	%r13, %rdi
	movl	%ecx, %edx
	callq	_saa711x_write
	movl	(%r12), %esi
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edi
	movq	%r13, %rdx
	movl	%r15d, %r8d
	movl	%ebx, %r9d
	callq	_v4l2_dbg
	movq	_R_D8_B_HORIZ_LUMA_SCALING_INC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%bl, %edx
	movq	%r13, %rdi
	callq	_saa711x_write
	movq	_R_D9_B_HORIZ_LUMA_SCALING_INC_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%bh, %edx
	movq	%r13, %rdi
	callq	_saa711x_write
	movq	_R_DC_B_HORIZ_CHROMA_SCALING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %eax
	shrl	%eax
	movzbl	%al, %edx
	movq	%r13, %rdi
	callq	_saa711x_write
	movq	_R_DD_B_HORIZ_CHROMA_SCALING_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shrl	$9, %ebx
	movzbl	%bl, %edx
	movq	%r13, %rdi
	callq	_saa711x_write
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%r8d, %eax
	shll	$10, %eax
	xorl	%edx, %edx
	divl	-56(%rbp)                       ## 4-byte Folded Reload
	movl	%eax, %ebx
	movl	(%r12), %esi
	leaq	L_.str.2(%rip), %rcx
	movl	$1, %edi
	movq	%r13, %rdx
	movl	%eax, %r9d
	callq	_v4l2_dbg
	movq	_R_D5_B_LUMA_CONTRAST_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$65536, %eax                    ## imm = 0x10000
	xorl	%edx, %edx
	divl	%ebx
	movl	%eax, %r14d
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_saa711x_write
	movq	_R_D6_B_CHROMA_SATURATION_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_saa711x_write
	movq	_R_E0_B_VERT_LUMA_SCALING_INC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%bl, %r15d
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_saa711x_write
	movq	_R_E1_B_VERT_LUMA_SCALING_INC_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	%bh, %ebx
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_saa711x_write
	movq	_R_E2_B_VERT_CHROMA_SCALING_INC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_saa711x_write
	movq	_R_E3_B_VERT_CHROMA_SCALING_INC_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_saa711x_write
	movq	_saa7115_cfg_reset_scaler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_saa711x_writeregs
	movq	_R_80_GLOBAL_CNTL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_saa711x_read
	orl	$32, %eax
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_saa711x_write
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_5:
	cmpl	$720, %r14d                     ## imm = 0x2D0
	jne	LBB0_1
## %bb.6:
	cmpl	%r12d, -44(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_1
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_625_50,4,2            ## @V4L2_STD_625_50
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"decoder set size to %ix%i\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_R_D0_B_HORIZ_PRESCALING,4,2    ## @R_D0_B_HORIZ_PRESCALING
	.comm	_R_CC_B_HORIZ_OUTPUT_WINDOW_LENGTH,4,2 ## @R_CC_B_HORIZ_OUTPUT_WINDOW_LENGTH
	.comm	_R_CD_B_HORIZ_OUTPUT_WINDOW_LENGTH_MSB,4,2 ## @R_CD_B_HORIZ_OUTPUT_WINDOW_LENGTH_MSB
	.comm	_VRES_60HZ,4,2                  ## @VRES_60HZ
	.comm	_R_CE_B_VERT_OUTPUT_WINDOW_LENGTH,4,2 ## @R_CE_B_VERT_OUTPUT_WINDOW_LENGTH
	.comm	_R_CF_B_VERT_OUTPUT_WINDOW_LENGTH_MSB,4,2 ## @R_CF_B_VERT_OUTPUT_WINDOW_LENGTH_MSB
L_.str.1:                               ## @.str.1
	.asciz	"Hpsc: 0x%05x, Hfsc: 0x%05x\n"

	.comm	_R_D8_B_HORIZ_LUMA_SCALING_INC,4,2 ## @R_D8_B_HORIZ_LUMA_SCALING_INC
	.comm	_R_D9_B_HORIZ_LUMA_SCALING_INC_MSB,4,2 ## @R_D9_B_HORIZ_LUMA_SCALING_INC_MSB
	.comm	_R_DC_B_HORIZ_CHROMA_SCALING,4,2 ## @R_DC_B_HORIZ_CHROMA_SCALING
	.comm	_R_DD_B_HORIZ_CHROMA_SCALING_MSB,4,2 ## @R_DD_B_HORIZ_CHROMA_SCALING_MSB
L_.str.2:                               ## @.str.2
	.asciz	"Vsrc: %d, Vscy: 0x%05x\n"

	.comm	_R_D5_B_LUMA_CONTRAST_CNTL,4,2  ## @R_D5_B_LUMA_CONTRAST_CNTL
	.comm	_R_D6_B_CHROMA_SATURATION_CNTL,4,2 ## @R_D6_B_CHROMA_SATURATION_CNTL
	.comm	_R_E0_B_VERT_LUMA_SCALING_INC,4,2 ## @R_E0_B_VERT_LUMA_SCALING_INC
	.comm	_R_E1_B_VERT_LUMA_SCALING_INC_MSB,4,2 ## @R_E1_B_VERT_LUMA_SCALING_INC_MSB
	.comm	_R_E2_B_VERT_CHROMA_SCALING_INC,4,2 ## @R_E2_B_VERT_CHROMA_SCALING_INC
	.comm	_R_E3_B_VERT_CHROMA_SCALING_INC_MSB,4,2 ## @R_E3_B_VERT_CHROMA_SCALING_INC_MSB
	.comm	_saa7115_cfg_reset_scaler,4,2   ## @saa7115_cfg_reset_scaler
	.comm	_R_80_GLOBAL_CNTL_1,4,2         ## @R_80_GLOBAL_CNTL_1
	.no_dead_strip	_saa711x_set_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa711x_set_size
_saa711x_set_size:                      ; @saa711x_set_size
	.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	x20, x2
	mov	x22, x1
	mov	x19, x0
	bl	_to_state
	mov	x23, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _V4L2_STD_625_50@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_STD_625_50@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ands	w25, w9, w8
	mov	w8, #576
	mov	w9, #480
	csel	w21, w9, w8, eq
Lloh3:
	adrp	x24, _debug@GOTPAGE
Lloh4:
	ldr	x24, [x24, _debug@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	mov	x4, x22
	mov	x5, x20
	bl	_v4l2_dbg
	sub	w8, w22, #1441
	cmn	w8, #1441
	b.hi	LBB0_3
LBB0_1:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_2:
	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
LBB0_3:
	cmp	w20, #1
	b.lt	LBB0_1
; %bb.4:
	cmp	w21, w20
	b.lt	LBB0_1
; %bb.5:
	ldr	w0, [x23, #12]
Lloh10:
	adrp	x26, _R_D0_B_HORIZ_PRESCALING@GOTPAGE
Lloh11:
	ldr	x26, [x26, _R_D0_B_HORIZ_PRESCALING@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_saa711x_has_reg
	cbz	w0, LBB0_8
LBB0_6:
	stp	w22, w20, [x23, #4]
	ldr	w0, [x23, #12]
Lloh12:
	adrp	x23, _R_CC_B_HORIZ_OUTPUT_WINDOW_LENGTH@GOTPAGE
Lloh13:
	ldr	x23, [x23, _R_CC_B_HORIZ_OUTPUT_WINDOW_LENGTH@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_saa711x_has_reg
	cbz	w0, LBB0_2
; %bb.7:
	ldr	w1, [x23]
	and	w2, w22, #0xff
	mov	x0, x19
	bl	_saa711x_write
Lloh14:
	adrp	x8, _R_CD_B_HORIZ_OUTPUT_WINDOW_LENGTH_MSB@GOTPAGE
Lloh15:
	ldr	x8, [x8, _R_CD_B_HORIZ_OUTPUT_WINDOW_LENGTH_MSB@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	lsr	w2, w22, #8
	mov	x0, x19
	bl	_saa711x_write
Lloh17:
	adrp	x8, _VRES_60HZ@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VRES_60HZ@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	sub	w8, w8, #480
	asr	w8, w8, #1
	cmp	w25, #0
	csel	w8, w8, wzr, eq
	add	w23, w8, w20, lsr #1
Lloh20:
	adrp	x8, _R_CE_B_VERT_OUTPUT_WINDOW_LENGTH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _R_CE_B_VERT_OUTPUT_WINDOW_LENGTH@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	and	w2, w23, #0xff
	mov	x0, x19
	bl	_saa711x_write
Lloh23:
	adrp	x8, _R_CF_B_VERT_OUTPUT_WINDOW_LENGTH_MSB@GOTPAGE
Lloh24:
	ldr	x8, [x8, _R_CF_B_VERT_OUTPUT_WINDOW_LENGTH_MSB@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ubfx	w2, w23, #8, #8
	mov	x0, x19
	bl	_saa711x_write
	and	w8, w22, #0xffff
	mov	w9, #720
	udiv	w9, w9, w8
	cmp	w8, #720
	csinc	w23, w9, wzr, ls
	mul	w8, w23, w22
	mov	w9, #16384
	movk	w9, #11, lsl #16
	ldr	w1, [x26]
	and	w2, w23, #0x3f
	udiv	w22, w9, w8
	mov	x0, x19
	bl	_saa711x_write
	ldr	w1, [x24]
Lloh26:
	adrp	x3, l_.str.1@PAGE
Lloh27:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	mov	x4, x23
	mov	x5, x22
	bl	_v4l2_dbg
Lloh28:
	adrp	x8, _R_D8_B_HORIZ_LUMA_SCALING_INC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _R_D8_B_HORIZ_LUMA_SCALING_INC@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	and	w2, w22, #0xff
	mov	x0, x19
	bl	_saa711x_write
Lloh31:
	adrp	x8, _R_D9_B_HORIZ_LUMA_SCALING_INC_MSB@GOTPAGE
Lloh32:
	ldr	x8, [x8, _R_D9_B_HORIZ_LUMA_SCALING_INC_MSB@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	ubfx	w2, w22, #8, #8
	mov	x0, x19
	bl	_saa711x_write
Lloh34:
	adrp	x8, _R_DC_B_HORIZ_CHROMA_SCALING@GOTPAGE
Lloh35:
	ldr	x8, [x8, _R_DC_B_HORIZ_CHROMA_SCALING@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	ubfx	w2, w22, #1, #8
	mov	x0, x19
	bl	_saa711x_write
Lloh37:
	adrp	x8, _R_DD_B_HORIZ_CHROMA_SCALING_MSB@GOTPAGE
Lloh38:
	ldr	x8, [x8, _R_DD_B_HORIZ_CHROMA_SCALING_MSB@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	ubfx	w2, w22, #9, #8
	mov	x0, x19
	bl	_saa711x_write
	lsl	w8, w21, #10
	ldr	w1, [x24]
	udiv	w20, w8, w20
Lloh40:
	adrp	x3, l_.str.2@PAGE
Lloh41:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	mov	x4, x21
	mov	x5, x20
	bl	_v4l2_dbg
Lloh42:
	adrp	x8, _R_D5_B_LUMA_CONTRAST_CNTL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _R_D5_B_LUMA_CONTRAST_CNTL@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	w8, #65536
	udiv	w21, w8, w20
	mov	x0, x19
	mov	x2, x21
	bl	_saa711x_write
Lloh45:
	adrp	x8, _R_D6_B_CHROMA_SATURATION_CNTL@GOTPAGE
Lloh46:
	ldr	x8, [x8, _R_D6_B_CHROMA_SATURATION_CNTL@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_saa711x_write
Lloh48:
	adrp	x8, _R_E0_B_VERT_LUMA_SCALING_INC@GOTPAGE
Lloh49:
	ldr	x8, [x8, _R_E0_B_VERT_LUMA_SCALING_INC@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	and	w21, w20, #0xff
	mov	x0, x19
	mov	x2, x21
	bl	_saa711x_write
Lloh51:
	adrp	x8, _R_E1_B_VERT_LUMA_SCALING_INC_MSB@GOTPAGE
Lloh52:
	ldr	x8, [x8, _R_E1_B_VERT_LUMA_SCALING_INC_MSB@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	ubfx	w20, w20, #8, #8
	mov	x0, x19
	mov	x2, x20
	bl	_saa711x_write
Lloh54:
	adrp	x8, _R_E2_B_VERT_CHROMA_SCALING_INC@GOTPAGE
Lloh55:
	ldr	x8, [x8, _R_E2_B_VERT_CHROMA_SCALING_INC@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_saa711x_write
Lloh57:
	adrp	x8, _R_E3_B_VERT_CHROMA_SCALING_INC_MSB@GOTPAGE
Lloh58:
	ldr	x8, [x8, _R_E3_B_VERT_CHROMA_SCALING_INC_MSB@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_saa711x_write
Lloh60:
	adrp	x8, _saa7115_cfg_reset_scaler@GOTPAGE
Lloh61:
	ldr	x8, [x8, _saa7115_cfg_reset_scaler@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_saa711x_writeregs
Lloh63:
	adrp	x8, _R_80_GLOBAL_CNTL_1@GOTPAGE
Lloh64:
	ldr	x8, [x8, _R_80_GLOBAL_CNTL_1@GOTPAGEOFF]
Lloh65:
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_saa711x_read
	orr	w2, w0, #0x20
	mov	x0, x19
	mov	x1, x20
	bl	_saa711x_write
	mov	w0, #0
	b	LBB0_2
LBB0_8:
	cmp	w22, #720
	b.ne	LBB0_1
; %bb.9:
	cmp	w21, w20
	b.ne	LBB0_1
	b	LBB0_6
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_625_50,4,2            ; @V4L2_STD_625_50
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"decoder set size to %ix%i\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_R_D0_B_HORIZ_PRESCALING,4,2    ; @R_D0_B_HORIZ_PRESCALING
	.comm	_R_CC_B_HORIZ_OUTPUT_WINDOW_LENGTH,4,2 ; @R_CC_B_HORIZ_OUTPUT_WINDOW_LENGTH
	.comm	_R_CD_B_HORIZ_OUTPUT_WINDOW_LENGTH_MSB,4,2 ; @R_CD_B_HORIZ_OUTPUT_WINDOW_LENGTH_MSB
	.comm	_VRES_60HZ,4,2                  ; @VRES_60HZ
	.comm	_R_CE_B_VERT_OUTPUT_WINDOW_LENGTH,4,2 ; @R_CE_B_VERT_OUTPUT_WINDOW_LENGTH
	.comm	_R_CF_B_VERT_OUTPUT_WINDOW_LENGTH_MSB,4,2 ; @R_CF_B_VERT_OUTPUT_WINDOW_LENGTH_MSB
l_.str.1:                               ; @.str.1
	.asciz	"Hpsc: 0x%05x, Hfsc: 0x%05x\n"

	.comm	_R_D8_B_HORIZ_LUMA_SCALING_INC,4,2 ; @R_D8_B_HORIZ_LUMA_SCALING_INC
	.comm	_R_D9_B_HORIZ_LUMA_SCALING_INC_MSB,4,2 ; @R_D9_B_HORIZ_LUMA_SCALING_INC_MSB
	.comm	_R_DC_B_HORIZ_CHROMA_SCALING,4,2 ; @R_DC_B_HORIZ_CHROMA_SCALING
	.comm	_R_DD_B_HORIZ_CHROMA_SCALING_MSB,4,2 ; @R_DD_B_HORIZ_CHROMA_SCALING_MSB
l_.str.2:                               ; @.str.2
	.asciz	"Vsrc: %d, Vscy: 0x%05x\n"

	.comm	_R_D5_B_LUMA_CONTRAST_CNTL,4,2  ; @R_D5_B_LUMA_CONTRAST_CNTL
	.comm	_R_D6_B_CHROMA_SATURATION_CNTL,4,2 ; @R_D6_B_CHROMA_SATURATION_CNTL
	.comm	_R_E0_B_VERT_LUMA_SCALING_INC,4,2 ; @R_E0_B_VERT_LUMA_SCALING_INC
	.comm	_R_E1_B_VERT_LUMA_SCALING_INC_MSB,4,2 ; @R_E1_B_VERT_LUMA_SCALING_INC_MSB
	.comm	_R_E2_B_VERT_CHROMA_SCALING_INC,4,2 ; @R_E2_B_VERT_CHROMA_SCALING_INC
	.comm	_R_E3_B_VERT_CHROMA_SCALING_INC_MSB,4,2 ; @R_E3_B_VERT_CHROMA_SCALING_INC_MSB
	.comm	_saa7115_cfg_reset_scaler,4,2   ; @saa7115_cfg_reset_scaler
	.comm	_R_80_GLOBAL_CNTL_1,4,2         ; @R_80_GLOBAL_CNTL_1
	.no_dead_strip	_saa711x_set_size
.subsections_via_symbols
