	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa711x_probe
_saa711x_probe:                         ## @saa711x_probe
	.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, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	cmpl	$1, (%r14)
	sete	%r12b
	jmp	LBB0_3
LBB0_2:
	movb	$1, %r12b
LBB0_3:
	movq	8(%r15), %rdi
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_i2c_smbus_write_byte_data
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_i2c_smbus_read_byte_data
                                        ## kill: def $eax killed $eax def $rax
	andb	$15, %al
	leal	48(%rax), %ecx
	addb	$87, %al
	cmpb	$58, %cl
	movzbl	%al, %eax
	movzbl	%cl, %ecx
	cmovael	%eax, %ecx
	movb	%cl, -80(%rbp,%rbx)
	incq	%rbx
	cmpq	$15, %rbx
	jne	LBB0_5
## %bb.6:
	movb	$0, -65(%rbp)
	movsbl	-75(%rbp), %r13d
	leaq	L_.str(%rip), %rsi
	leaq	-80(%rbp), %rdi
	movl	$5, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_13
## %bb.7:
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %r8d
	addl	%r8d, %r8d
	leaq	L_.str.1(%rip), %rcx
	leaq	-80(%rbp), %r9
	movl	$1, %edi
	movq	%r15, %rdx
	callq	_v4l_dbg
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%r14d, %r14d
LBB0_10:
	subl	(%rax), %r14d
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_37
## %bb.12:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	testb	%r12b, %r12b
	jne	LBB0_16
## %bb.14:
	movq	8(%r14), %rcx
	cmpb	%r13b, 6(%rcx)
	je	LBB0_16
## %bb.15:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	callq	_v4l_warn
LBB0_16:
	movl	16(%r15), %edi
	leaq	L_.str.3(%rip), %rdx
	movl	$4, %esi
	movl	%r13d, %ecx
	callq	_snprintf
	movl	(%r15), %r8d
	addl	%r8d, %r8d
	movq	8(%r15), %rax
	movl	(%rax), %r9d
	leaq	L_.str.4(%rip), %rsi
	xorl	%r14d, %r14d
	leaq	-80(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_v4l_info
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.17:
	movq	%rax, %r12
	leaq	64(%rax), %rdi
	movq	_saa711x_ops@GOTPCREL(%rip), %rdx
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
	callq	_v4l2_i2c_subdev_init
	leaq	56(%r12), %rbx
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$128, (%rsp)
	movq	_saa711x_ctrl_ops@GOTPCREL(%rip), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	movl	$255, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_CONTRAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, (%rsp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	movl	$127, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_SATURATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, (%rsp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	movl	$127, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_HUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$-128, %ecx
	movl	$127, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_CHROMA_AGC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, (%rsp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 40(%r12)
	movq	_V4L2_CID_CHROMA_GAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, (%rsp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	movl	$127, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 48(%r12)
	movl	$1, (%rax)
	movq	%rbx, 64(%r12)
	movl	56(%r12), %r14d
	testl	%r14d, %r14d
	je	LBB0_20
## %bb.18:
	movq	%rbx, %rdi
	callq	_v4l2_ctrl_handler_free
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_20:
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r12, %rsi
	addq	$40, %rsi
	movq	_V4L2_CTRL_FLAG_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	40(%r12), %rcx
	orl	%eax, (%rcx)
	movl	$2, %edi
	callq	_v4l2_ctrl_cluster
	movl	$-1, (%r12)
	movq	_SAA7115_IPORT_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movl	$1, 4(%r12)
	movq	$0, 24(%r12)
	addl	$-49, %r13d
	cmpl	$7, %r13d
	ja	LBB0_24
## %bb.21:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r13,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_22:
	movl	$130, 8(%r12)
	movq	_R_00_CHIP_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %r13
	movq	%r14, %rdi
	callq	_saa711x_read
	testb	$-16, %al
	je	LBB0_31
## %bb.23:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_v4l_info
	movl	$129, 8(%r12)
	jmp	LBB0_31
LBB0_24:
	movl	$130, 8(%r12)
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %r13
	movq	%r14, %rdi
	callq	_v4l2_info
	jmp	LBB0_31
LBB0_25:
	movq	_V4L2_IDENT_SAA7114@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_26:
	movl	$128, 8(%r12)
	jmp	LBB0_30
LBB0_27:
	movq	_V4L2_IDENT_SAA7115@GOTPCREL(%rip), %rax
	jmp	LBB0_29
LBB0_28:
	movq	_V4L2_IDENT_SAA7118@GOTPCREL(%rip), %rax
LBB0_29:
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
LBB0_30:
	movq	%r14, %r13
LBB0_31:
	movl	$48000, 12(%r12)                ## imm = 0xBB80
	movq	_debug@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str.7(%rip), %rcx
	movl	$1, %edi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_v4l2_dbg
	movq	_SAA7115_FREQ_24_576_MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movl	8(%r12), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	jae	LBB0_33
## %bb.32:
	cltq
	leaq	l_switch.table.saa711x_probe(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_34
LBB0_33:
	movq	_SAA7115_FREQ_32_11_MHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_saa7115_init_auto_input@GOTPCREL(%rip), %rax
LBB0_34:
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_saa711x_writeregs
	cmpl	$130, 8(%r12)
	jl	LBB0_36
## %bb.35:
	movq	_saa7115_init_misc@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_saa711x_writeregs
LBB0_36:
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_saa711x_set_v4lstd
	movq	%rbx, %rdi
	callq	_v4l2_ctrl_handler_setup
	movl	(%r14), %r15d
	movq	_R_1E_STATUS_BYTE_1_VD_DEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_saa711x_read
	movl	%eax, %ebx
	movq	_R_1F_STATUS_BYTE_2_VD_DEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_saa711x_read
	leaq	L_.str.8(%rip), %rcx
	xorl	%r14d, %r14d
	movl	$1, %edi
	movl	%r15d, %esi
	movq	%r13, %rdx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_v4l2_dbg
	jmp	LBB0_11
LBB0_37:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
LJTI0_0:
	.long	L0_0_set_22
	.long	L0_0_set_24
	.long	L0_0_set_26
	.long	L0_0_set_25
	.long	L0_0_set_27
	.long	L0_0_set_24
	.long	L0_0_set_24
	.long	L0_0_set_28
	.end_data_region
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"1f711"

	.comm	_debug,4,2                      ## @debug
L_.str.1:                               ## @.str.1
	.asciz	"chip found @ 0x%x (ID %s) does not match a known saa711x chip.\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"found saa711%c while %s was expected\n"

L_.str.3:                               ## @.str.3
	.asciz	"saa711%c"

L_.str.4:                               ## @.str.4
	.asciz	"saa711%c found (%s) @ 0x%x (%s)\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_saa711x_ops,4,2                ## @saa711x_ops
	.comm	_saa711x_ctrl_ops,4,2           ## @saa711x_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ## @V4L2_CID_BRIGHTNESS
	.comm	_V4L2_CID_CONTRAST,4,2          ## @V4L2_CID_CONTRAST
	.comm	_V4L2_CID_SATURATION,4,2        ## @V4L2_CID_SATURATION
	.comm	_V4L2_CID_HUE,4,2               ## @V4L2_CID_HUE
	.comm	_V4L2_CID_CHROMA_AGC,4,2        ## @V4L2_CID_CHROMA_AGC
	.comm	_V4L2_CID_CHROMA_GAIN,4,2       ## @V4L2_CID_CHROMA_GAIN
	.comm	_V4L2_CTRL_FLAG_UPDATE,4,2      ## @V4L2_CTRL_FLAG_UPDATE
	.comm	_SAA7115_IPORT_ON,4,2           ## @SAA7115_IPORT_ON
	.comm	_R_00_CHIP_VERSION,4,2          ## @R_00_CHIP_VERSION
L_.str.5:                               ## @.str.5
	.asciz	"saa7111a variant found\n"

	.comm	_V4L2_IDENT_SAA7114,4,2         ## @V4L2_IDENT_SAA7114
	.comm	_V4L2_IDENT_SAA7115,4,2         ## @V4L2_IDENT_SAA7115
	.comm	_V4L2_IDENT_SAA7118,4,2         ## @V4L2_IDENT_SAA7118
L_.str.6:                               ## @.str.6
	.asciz	"WARNING: Chip is not known - Falling back to saa7111\n"

L_.str.7:                               ## @.str.7
	.asciz	"writing init values\n"

	.comm	_SAA7115_FREQ_24_576_MHZ,4,2    ## @SAA7115_FREQ_24_576_MHZ
	.comm	_saa7111_init,4,2               ## @saa7111_init
	.comm	_saa7113_init,4,2               ## @saa7113_init
	.comm	_SAA7115_FREQ_32_11_MHZ,4,2     ## @SAA7115_FREQ_32_11_MHZ
	.comm	_saa7115_init_auto_input,4,2    ## @saa7115_init_auto_input
	.comm	_saa7115_init_misc,4,2          ## @saa7115_init_misc
	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
L_.str.8:                               ## @.str.8
	.asciz	"status: (1E) 0x%02x, (1F) 0x%02x\n"

	.comm	_R_1E_STATUS_BYTE_1_VD_DEC,4,2  ## @R_1E_STATUS_BYTE_1_VD_DEC
	.comm	_R_1F_STATUS_BYTE_2_VD_DEC,4,2  ## @R_1F_STATUS_BYTE_2_VD_DEC
	.no_dead_strip	_saa711x_probe
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.saa711x_probe
l_switch.table.saa711x_probe:
	.quad	_saa7113_init
	.quad	_saa7111_init
	.quad	_saa7111_init

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function saa711x_probe
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_saa711x_probe:                         ; @saa711x_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	cbz	x1, LBB0_2
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #1
	cset	w22, eq
	b	LBB0_3
LBB0_2:
	mov	w22, #1
LBB0_3:
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_8
; %bb.4:
	mov	x21, #0
	add	x23, sp, #39
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	bl	_i2c_smbus_write_byte_data
	mov	x0, x19
	mov	w1, #0
	bl	_i2c_smbus_read_byte_data
	and	w8, w0, #0xf
	mov	w9, #48
	bfxil	w9, w0, #0, #4
	add	w8, w8, #87
	cmp	w9, #57
	csel	w8, w8, w9, hi
	strb	w8, [x23, x21]
	add	x21, x21, #1
	cmp	x21, #15
	b.ne	LBB0_5
; %bb.6:
	strb	wzr, [sp, #54]
	ldrsb	w23, [sp, #44]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #39
	mov	w2, #5
	bl	_memcmp
	cbz	x0, LBB0_12
; %bb.7:
Lloh8:
	adrp	x8, _debug@GOTPAGE
Lloh9:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w8, [x19]
	lsl	w4, w8, #1
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	add	x5, sp, #39
	mov	w0, #1
	mov	x2, x19
	bl	_v4l_dbg
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_10:
	ldr	x8, [sp, #56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.11:
	mov	x0, x24
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_12:
	tbnz	w22, #0, LBB0_15
; %bb.13:
	ldr	x3, [x20, #8]
	ldrb	w8, [x3, #6]
	cmp	w8, w23, uxtb
	b.eq	LBB0_15
; %bb.14:
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_v4l_warn
LBB0_15:
	ldr	w0, [x19, #16]
Lloh22:
	adrp	x2, l_.str.3@PAGE
Lloh23:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w1, #4
	mov	x3, x23
	bl	_snprintf
	ldr	w8, [x19]
	lsl	w8, w8, #1
	ldr	x9, [x19, #8]
	ldr	w9, [x9]
	stp	x8, x9, [sp, #16]
	add	x8, sp, #39
	stp	x23, x8, [sp]
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_v4l_info
Lloh26:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_18
; %bb.16:
	mov	x22, x0
	add	x20, x0, #64
Lloh29:
	adrp	x2, _saa711x_ops@GOTPAGE
Lloh30:
	ldr	x2, [x2, _saa711x_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_v4l2_i2c_subdev_init
	add	x21, x22, #56
	mov	x0, x21
	mov	w1, #6
	bl	_v4l2_ctrl_handler_init
Lloh31:
	adrp	x8, _V4L2_CID_BRIGHTNESS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _V4L2_CID_BRIGHTNESS@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
Lloh34:
	adrp	x24, _saa711x_ctrl_ops@GOTPAGE
Lloh35:
	ldr	x24, [x24, _saa711x_ctrl_ops@GOTPAGEOFF]
	mov	w26, #1
	mov	x0, x21
	mov	x1, x24
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #128
	bl	_v4l2_ctrl_new_std
Lloh36:
	adrp	x8, _V4L2_CID_CONTRAST@GOTPAGE
Lloh37:
	ldr	x8, [x8, _V4L2_CID_CONTRAST@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x24
	mov	w3, #0
	mov	w4, #127
	mov	w5, #1
	mov	w6, #64
	bl	_v4l2_ctrl_new_std
Lloh39:
	adrp	x8, _V4L2_CID_SATURATION@GOTPAGE
Lloh40:
	ldr	x8, [x8, _V4L2_CID_SATURATION@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x24
	mov	w3, #0
	mov	w4, #127
	mov	w5, #1
	mov	w6, #64
	bl	_v4l2_ctrl_new_std
Lloh42:
	adrp	x8, _V4L2_CID_HUE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _V4L2_CID_HUE@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x24
	mov	w3, #-128
	mov	w4, #127
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
Lloh45:
	adrp	x8, _V4L2_CID_CHROMA_AGC@GOTPAGE
Lloh46:
	ldr	x8, [x8, _V4L2_CID_CHROMA_AGC@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x24
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #1
	bl	_v4l2_ctrl_new_std
	mov	x25, x22
	str	x0, [x25, #40]!
Lloh48:
	adrp	x8, _V4L2_CID_CHROMA_GAIN@GOTPAGE
Lloh49:
	ldr	x8, [x8, _V4L2_CID_CHROMA_GAIN@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x24
	mov	w3, #0
	mov	w4, #127
	mov	w5, #1
	mov	w6, #40
	bl	_v4l2_ctrl_new_std
	str	x0, [x25, #8]
	str	w26, [x0]
	str	x21, [x22, #64]
	ldr	w24, [x22, #56]
	cbz	w24, LBB0_19
; %bb.17:
	mov	x0, x21
	bl	_v4l2_ctrl_handler_free
	mov	x0, x22
	bl	_kfree
	b	LBB0_10
LBB0_18:
Lloh51:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_19:
Lloh53:
	adrp	x8, _V4L2_CTRL_FLAG_UPDATE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _V4L2_CTRL_FLAG_UPDATE@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	ldr	x9, [x22, #40]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	mov	w0, #2
	mov	x1, x25
	bl	_v4l2_ctrl_cluster
Lloh56:
	adrp	x8, lCPI0_0@PAGE
Lloh57:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
Lloh58:
	adrp	x8, _SAA7115_IPORT_ON@GOTPAGE
Lloh59:
	ldr	x8, [x8, _SAA7115_IPORT_ON@GOTPAGEOFF]
	str	d0, [x22]
Lloh60:
	ldr	w8, [x8]
	str	w8, [x22, #32]
	str	xzr, [x22, #24]
	sub	w8, w23, #49
	cmp	w8, #7
	b.hi	LBB0_23
; %bb.20:
Lloh61:
	adrp	x9, lJTI0_0@PAGE
Lloh62:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_21
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_21:
	mov	w8, #130
	str	w8, [x22, #8]
Lloh63:
	adrp	x8, _R_00_CHIP_VERSION@GOTPAGE
Lloh64:
	ldr	x8, [x8, _R_00_CHIP_VERSION@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_saa711x_read
	tst	w0, #0xf0
	b.eq	LBB0_30
; %bb.22:
Lloh66:
	adrp	x1, l_.str.5@PAGE
Lloh67:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_v4l_info
	mov	w8, #129
	b	LBB0_29
LBB0_23:
	mov	w8, #130
	str	w8, [x22, #8]
Lloh68:
	adrp	x1, l_.str.6@PAGE
Lloh69:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_v4l2_info
	b	LBB0_30
LBB0_24:
Lloh70:
	adrp	x8, _V4L2_IDENT_SAA7114@GOTPAGE
Lloh71:
	ldr	x8, [x8, _V4L2_IDENT_SAA7114@GOTPAGEOFF]
	b	LBB0_28
LBB0_25:
	mov	w8, #128
	b	LBB0_29
LBB0_26:
Lloh72:
	adrp	x8, _V4L2_IDENT_SAA7115@GOTPAGE
Lloh73:
	ldr	x8, [x8, _V4L2_IDENT_SAA7115@GOTPAGEOFF]
	b	LBB0_28
LBB0_27:
Lloh74:
	adrp	x8, _V4L2_IDENT_SAA7118@GOTPAGE
Lloh75:
	ldr	x8, [x8, _V4L2_IDENT_SAA7118@GOTPAGEOFF]
LBB0_28:
	ldr	w8, [x8]
LBB0_29:
	str	w8, [x22, #8]
LBB0_30:
	mov	w8, #48000
	str	w8, [x22, #12]
Lloh76:
	adrp	x19, _debug@GOTPAGE
Lloh77:
	ldr	x19, [x19, _debug@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh78:
	adrp	x3, l_.str.7@PAGE
Lloh79:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	w0, #1
	mov	x2, x20
	bl	_v4l2_dbg
Lloh80:
	adrp	x8, _SAA7115_FREQ_24_576_MHZ@GOTPAGE
Lloh81:
	ldr	x8, [x8, _SAA7115_FREQ_24_576_MHZ@GOTPAGEOFF]
Lloh82:
	ldr	w8, [x8]
	str	w8, [x22, #16]
	ldr	w8, [x22, #8]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hs	LBB0_32
; %bb.31:
Lloh83:
	adrp	x9, l_switch.table.saa711x_probe@PAGE
Lloh84:
	add	x9, x9, l_switch.table.saa711x_probe@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_33
LBB0_32:
Lloh85:
	adrp	x8, _SAA7115_FREQ_32_11_MHZ@GOTPAGE
Lloh86:
	ldr	x8, [x8, _SAA7115_FREQ_32_11_MHZ@GOTPAGEOFF]
Lloh87:
	ldr	w8, [x8]
	str	w8, [x22, #16]
Lloh88:
	adrp	x8, _saa7115_init_auto_input@GOTPAGE
Lloh89:
	ldr	x8, [x8, _saa7115_init_auto_input@GOTPAGEOFF]
LBB0_33:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_saa711x_writeregs
	ldr	w8, [x22, #8]
	cmp	w8, #130
	b.lt	LBB0_35
; %bb.34:
Lloh90:
	adrp	x8, _saa7115_init_misc@GOTPAGE
Lloh91:
	ldr	x8, [x8, _saa7115_init_misc@GOTPAGEOFF]
Lloh92:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_saa711x_writeregs
LBB0_35:
Lloh93:
	adrp	x8, _V4L2_STD_NTSC@GOTPAGE
Lloh94:
	ldr	x8, [x8, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh95:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_saa711x_set_v4lstd
	mov	x0, x21
	bl	_v4l2_ctrl_handler_setup
	ldr	w19, [x19]
Lloh96:
	adrp	x8, _R_1E_STATUS_BYTE_1_VD_DEC@GOTPAGE
Lloh97:
	ldr	x8, [x8, _R_1E_STATUS_BYTE_1_VD_DEC@GOTPAGEOFF]
Lloh98:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_saa711x_read
	mov	x21, x0
Lloh99:
	adrp	x8, _R_1F_STATUS_BYTE_2_VD_DEC@GOTPAGE
Lloh100:
	ldr	x8, [x8, _R_1F_STATUS_BYTE_2_VD_DEC@GOTPAGEOFF]
Lloh101:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_saa711x_read
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x21, x0, [sp]
Lloh102:
	adrp	x3, l_.str.8@PAGE
Lloh103:
	add	x3, x3, l_.str.8@PAGEOFF
	mov	w0, #1
	mov	x1, x19
	mov	x2, x20
	bl	_v4l2_dbg
	mov	w24, #0
	b	LBB0_10
LBB0_36:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdrp	Lloh56, Lloh58
	.loh AdrpLdr	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh76, Lloh77
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_21-LBB0_21)>>2
	.byte	(LBB0_23-LBB0_21)>>2
	.byte	(LBB0_25-LBB0_21)>>2
	.byte	(LBB0_24-LBB0_21)>>2
	.byte	(LBB0_26-LBB0_21)>>2
	.byte	(LBB0_23-LBB0_21)>>2
	.byte	(LBB0_23-LBB0_21)>>2
	.byte	(LBB0_27-LBB0_21)>>2
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"1f711"

	.comm	_debug,4,2                      ; @debug
l_.str.1:                               ; @.str.1
	.asciz	"chip found @ 0x%x (ID %s) does not match a known saa711x chip.\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"found saa711%c while %s was expected\n"

l_.str.3:                               ; @.str.3
	.asciz	"saa711%c"

l_.str.4:                               ; @.str.4
	.asciz	"saa711%c found (%s) @ 0x%x (%s)\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_saa711x_ops,4,2                ; @saa711x_ops
	.comm	_saa711x_ctrl_ops,4,2           ; @saa711x_ctrl_ops
	.comm	_V4L2_CID_BRIGHTNESS,4,2        ; @V4L2_CID_BRIGHTNESS
	.comm	_V4L2_CID_CONTRAST,4,2          ; @V4L2_CID_CONTRAST
	.comm	_V4L2_CID_SATURATION,4,2        ; @V4L2_CID_SATURATION
	.comm	_V4L2_CID_HUE,4,2               ; @V4L2_CID_HUE
	.comm	_V4L2_CID_CHROMA_AGC,4,2        ; @V4L2_CID_CHROMA_AGC
	.comm	_V4L2_CID_CHROMA_GAIN,4,2       ; @V4L2_CID_CHROMA_GAIN
	.comm	_V4L2_CTRL_FLAG_UPDATE,4,2      ; @V4L2_CTRL_FLAG_UPDATE
	.comm	_SAA7115_IPORT_ON,4,2           ; @SAA7115_IPORT_ON
	.comm	_R_00_CHIP_VERSION,4,2          ; @R_00_CHIP_VERSION
l_.str.5:                               ; @.str.5
	.asciz	"saa7111a variant found\n"

	.comm	_V4L2_IDENT_SAA7114,4,2         ; @V4L2_IDENT_SAA7114
	.comm	_V4L2_IDENT_SAA7115,4,2         ; @V4L2_IDENT_SAA7115
	.comm	_V4L2_IDENT_SAA7118,4,2         ; @V4L2_IDENT_SAA7118
l_.str.6:                               ; @.str.6
	.asciz	"WARNING: Chip is not known - Falling back to saa7111\n"

l_.str.7:                               ; @.str.7
	.asciz	"writing init values\n"

	.comm	_SAA7115_FREQ_24_576_MHZ,4,2    ; @SAA7115_FREQ_24_576_MHZ
	.comm	_saa7111_init,4,2               ; @saa7111_init
	.comm	_saa7113_init,4,2               ; @saa7113_init
	.comm	_SAA7115_FREQ_32_11_MHZ,4,2     ; @SAA7115_FREQ_32_11_MHZ
	.comm	_saa7115_init_auto_input,4,2    ; @saa7115_init_auto_input
	.comm	_saa7115_init_misc,4,2          ; @saa7115_init_misc
	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
l_.str.8:                               ; @.str.8
	.asciz	"status: (1E) 0x%02x, (1F) 0x%02x\n"

	.comm	_R_1E_STATUS_BYTE_1_VD_DEC,4,2  ; @R_1E_STATUS_BYTE_1_VD_DEC
	.comm	_R_1F_STATUS_BYTE_2_VD_DEC,4,2  ; @R_1F_STATUS_BYTE_2_VD_DEC
	.no_dead_strip	_saa711x_probe
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.saa711x_probe
l_switch.table.saa711x_probe:
	.quad	_saa7113_init
	.quad	_saa7111_init
	.quad	_saa7111_init

.subsections_via_symbols
