	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx25840_probe
_cx25840_probe:                         ## @cx25840_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	16(%rdi), %rdi
	movq	_I2C_FUNC_SMBUS_BYTE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movq	_cx25840_debug@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	(%r13), %r8d
	addl	%r8d, %r8d
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_v4l_dbg
	movq	%r13, %rdi
	movl	$257, %esi                      ## imm = 0x101
	callq	_cx25840_read
	movl	%eax, %ebx
	shll	$8, %ebx
	movq	%r13, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_cx25840_read
	movl	%eax, %r14d
	orl	%eax, %ebx
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edi
	movq	%r13, %rdx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_v4l_dbg
	movl	%ebx, %eax
	andl	$65280, %eax                    ## imm = 0xFF00
	cmpl	$33792, %eax                    ## imm = 0x8400
	je	LBB0_5
## %bb.2:
	movzwl	%ax, %eax
	cmpl	$33536, %eax                    ## imm = 0x8300
	jne	LBB0_6
## %bb.3:
	movl	%r14d, %r12d
	shrl	$4, %r12d
	andl	$15, %r12d
	addl	$127, %r12d
	jmp	LBB0_11
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_5:
	movl	%r14d, %r12d
	shrl	$4, %r12d
	andl	$15, %r12d
	addl	$131, %r12d
	jmp	LBB0_11
LBB0_6:
	testl	%ebx, %ebx
	je	LBB0_10
## %bb.7:
	movl	%ebx, %eax
	andl	$65520, %eax                    ## imm = 0xFFF0
	movl	$137, %r12d
	cmpl	$23088, %eax                    ## imm = 0x5A30
	je	LBB0_11
## %bb.8:
	movzbl	%r14b, %eax
	sarl	$8, %ebx
	cmpl	%ebx, %eax
	jne	LBB0_36
## %bb.9:
	movl	(%r13), %edx
	addl	%edx, %edx
	movq	16(%r13), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_v4l_err
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_v4l_err
	jmp	LBB0_37
LBB0_10:
	movq	%r13, %rdi
	callq	_get_cx2388x_ident
	movl	%eax, %r12d
LBB0_11:
	leaq	8(%r13), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	$96, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:
	movq	%rax, %r15
	leaq	80(%rax), %rdi
	movq	_cx25840_ops@GOTPCREL(%rip), %rdx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	callq	_v4l2_i2c_subdev_init
	leal	-128(%r12), %eax
	cmpl	$9, %eax
	ja	LBB0_17
## %bb.13:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_14:
	movl	%ebx, %edx
	shrl	$4, %edx
	andl	$4095, %edx                     ## imm = 0xFFF
	andl	$15, %r14d
	cmpl	$3, %r14d
	adcl	$0, %r14d
	movl	(%r13), %r8d
	addl	%r8d, %r8d
	movq	16(%r13), %rax
	movl	(%rax), %r9d
	leaq	L_.str.9(%rip), %rsi
	jmp	LBB0_18
LBB0_15:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%ebx, %ebx
LBB0_38:
	subl	(%rax), %ebx
	jmp	LBB0_39
LBB0_17:
	movl	%ebx, %edx
	shrl	$4, %edx
	andl	$4095, %edx                     ## imm = 0xFFF
	andl	$15, %r14d
	movl	(%r13), %r8d
	addl	%r8d, %r8d
	movq	16(%r13), %rax
	movl	(%rax), %r9d
	leaq	L_.str.10(%rip), %rsi
LBB0_18:
	movq	%r13, %rdi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_v4l_info
	jmp	LBB0_24
LBB0_19:
	movl	(%r13), %edx
	addl	%edx, %edx
	movq	16(%r13), %rax
	movl	(%rax), %ecx
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_22
LBB0_20:
	movl	(%r13), %edx
	addl	%edx, %edx
	movq	16(%r13), %rax
	movl	(%rax), %ecx
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_22
LBB0_21:
	movl	(%r13), %edx
	addl	%edx, %edx
	movq	16(%r13), %rax
	movl	(%rax), %ecx
	leaq	L_.str.5(%rip), %rsi
LBB0_22:
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_v4l_info
	jmp	LBB0_24
LBB0_23:
	movl	(%r13), %ecx
	addl	%ecx, %ecx
	movq	16(%r13), %rax
	movl	(%rax), %r8d
	leaq	L_.str.8(%rip), %rsi
	movq	%r13, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_v4l_info
LBB0_24:
	movq	%r13, 64(%r15)
	movq	_CX25840_COMPOSITE7@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r15)
	movq	_CX25840_AUDIO8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%r15)
	movl	$48000, (%r15)                  ## imm = 0xBB80
	movq	_V4L2_TUNER_MODE_LANG1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r15)
	movl	$8, 4(%r15)
	movl	%r12d, 8(%r15)
	movl	%ebx, 12(%r15)
	xorl	%eax, %eax
	cmpl	$134, %r12d
	movl	$220, %ecx
	cmovnel	%eax, %ecx
	movl	%ecx, 16(%r15)
	movq	_V4L2_STD_NTSC_M@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r15)
	leaq	24(%r15), %r12
	movq	%r12, %rdi
	movl	$9, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$128, (%rsp)
	movq	_cx25840_ctrl_ops@GOTPCREL(%rip), %rbx
	movq	%r12, %rdi
	movq	%rbx, %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	%r12, %rdi
	movq	%rbx, %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	%r12, %rdi
	movq	%rbx, %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	%r12, %rdi
	movq	%rbx, %rsi
	movl	$-128, %ecx
	movl	$127, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%r15, %rdi
	callq	_is_cx2583x
	testl	%eax, %eax
	jne	LBB0_29
## %bb.25:
	movq	%r13, %rdi
	movl	$2260, %esi                     ## imm = 0x8D4
	callq	_cx25840_read
	movl	$228, %ebx
	cmpl	$228, %eax
	jg	LBB0_27
## %bb.26:
	movl	$20, %ebx
	cmpl	$19, %eax
	jg	LBB0_28
LBB0_27:
	movq	%r13, %rdi
	movl	$2260, %esi                     ## imm = 0x8D4
	movl	%ebx, %edx
	callq	_cx25840_write
	movl	%ebx, %eax
LBB0_28:
	shll	$8, %eax
	movl	$70144, %ecx                    ## imm = 0x11200
	subl	%eax, %ecx
	andl	$-512, %ecx                     ## imm = 0xFE00
	movq	_V4L2_CID_AUDIO_VOLUME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ecx, (%rsp)
	movq	_cx25840_audio_ctrl_ops@GOTPCREL(%rip), %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	movl	$65535, %r8d                    ## imm = 0xFFFF
	movl	$655, %r9d                      ## imm = 0x28F
	callq	_v4l2_ctrl_new_std
	movq	%rax, 32(%r15)
	movq	_V4L2_CID_AUDIO_MUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	%rax, 40(%r15)
	movq	_V4L2_CID_AUDIO_BALANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32768, (%rsp)                  ## imm = 0x8000
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	movl	$65535, %r8d                    ## imm = 0xFFFF
	movl	$655, %r9d                      ## imm = 0x28F
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_AUDIO_BASS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32768, (%rsp)                  ## imm = 0x8000
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	movl	$65535, %r8d                    ## imm = 0xFFFF
	movl	$655, %r9d                      ## imm = 0x28F
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_AUDIO_TREBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32768, (%rsp)                  ## imm = 0x8000
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	movl	$65535, %r8d                    ## imm = 0xFFFF
	movl	$655, %r9d                      ## imm = 0x28F
	callq	_v4l2_ctrl_new_std
LBB0_29:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r12, (%r14)
	movl	(%r12), %ebx
	testl	%ebx, %ebx
	je	LBB0_31
## %bb.30:
	movq	%r12, %rdi
	callq	_v4l2_ctrl_handler_free
	jmp	LBB0_39
LBB0_31:
	movq	%r15, %rdi
	callq	_is_cx2583x
	testl	%eax, %eax
	jne	LBB0_33
## %bb.32:
	movq	%r15, %rsi
	addq	$32, %rsi
	movl	$2, %edi
	callq	_v4l2_ctrl_cluster
LBB0_33:
	movq	%r12, %rdi
	callq	_v4l2_ctrl_handler_setup
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
LBB0_35:
	movq	%r14, %rdi
	callq	_cx25840_ir_probe
	xorl	%ebx, %ebx
LBB0_39:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	movl	(%r15), %esi
	leaq	L_.str.4(%rip), %rcx
	xorl	%ebx, %ebx
	movl	$1, %edi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_v4l_dbg
LBB0_37:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_38
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_17
	.long	L0_0_set_17
	.long	L0_0_set_19
	.long	L0_0_set_20
	.long	L0_0_set_21
	.long	L0_0_set_23
	.end_data_region
                                        ## -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ## @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_EIO,4,2                        ## @EIO
	.comm	_cx25840_debug,4,2              ## @cx25840_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"detecting cx25840 client on address 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"device_id = 0x%04x\n"

L_.str.2:                               ## @.str.2
	.asciz	"likely a confused/unresponsive cx2388[578] A/V decoder found @ 0x%x (%s)\n"

L_.str.3:                               ## @.str.3
	.asciz	"A method to reset it from the cx25840 driver software is not known at this time\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.4:                               ## @.str.4
	.asciz	"cx25840 not found\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_cx25840_ops,4,2                ## @cx25840_ops
L_.str.5:                               ## @.str.5
	.asciz	"cx23885 A/V decoder found @ 0x%x (%s)\n"

L_.str.6:                               ## @.str.6
	.asciz	"cx23887 A/V decoder found @ 0x%x (%s)\n"

L_.str.7:                               ## @.str.7
	.asciz	"cx23888 A/V decoder found @ 0x%x (%s)\n"

L_.str.8:                               ## @.str.8
	.asciz	"cx%d A/V decoder found @ 0x%x (%s)\n"

L_.str.9:                               ## @.str.9
	.asciz	"cx25%3x-2%x found @ 0x%x (%s)\n"

L_.str.10:                              ## @.str.10
	.asciz	"cx25%3x-%x found @ 0x%x (%s)\n"

	.comm	_CX25840_COMPOSITE7,4,2         ## @CX25840_COMPOSITE7
	.comm	_CX25840_AUDIO8,4,2             ## @CX25840_AUDIO8
	.comm	_V4L2_TUNER_MODE_LANG1,4,2      ## @V4L2_TUNER_MODE_LANG1
	.comm	_V4L2_STD_NTSC_M,4,2            ## @V4L2_STD_NTSC_M
	.comm	_cx25840_ctrl_ops,4,2           ## @cx25840_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	_cx25840_audio_ctrl_ops,4,2     ## @cx25840_audio_ctrl_ops
	.comm	_V4L2_CID_AUDIO_VOLUME,4,2      ## @V4L2_CID_AUDIO_VOLUME
	.comm	_V4L2_CID_AUDIO_MUTE,4,2        ## @V4L2_CID_AUDIO_MUTE
	.comm	_V4L2_CID_AUDIO_BALANCE,4,2     ## @V4L2_CID_AUDIO_BALANCE
	.comm	_V4L2_CID_AUDIO_BASS,4,2        ## @V4L2_CID_AUDIO_BASS
	.comm	_V4L2_CID_AUDIO_TREBLE,4,2      ## @V4L2_CID_AUDIO_TREBLE
	.comm	_CX25840_PAD_INPUT,8,3          ## @CX25840_PAD_INPUT
	.comm	_CX25840_PAD_VID_OUT,8,3        ## @CX25840_PAD_VID_OUT
	.comm	_MEDIA_ENT_F_ATV_DECODER,4,2    ## @MEDIA_ENT_F_ATV_DECODER
	.comm	_MEDIA_PAD_FL_SINK,4,2          ## @MEDIA_PAD_FL_SINK
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ## @MEDIA_PAD_FL_SOURCE
	.comm	_PAD_SIGNAL_ANALOG,4,2          ## @PAD_SIGNAL_ANALOG
	.comm	_PAD_SIGNAL_DV,4,2              ## @PAD_SIGNAL_DV
	.no_dead_strip	_cx25840_probe
.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 cx25840_probe
lCPI0_0:
	.long	48000                           ; 0xbb80
	.long	8                               ; 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_cx25840_probe:                         ; @cx25840_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x0
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_SMBUS_BYTE_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_4
; %bb.1:
Lloh3:
	adrp	x21, _cx25840_debug@GOTPAGE
Lloh4:
	ldr	x21, [x21, _cx25840_debug@GOTPAGEOFF]
	ldr	w1, [x21]
	ldr	w8, [x19]
	lsl	w8, w8, #1
	str	x8, [sp]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l_dbg
	mov	x0, x19
	mov	w1, #257
	bl	_cx25840_read
	mov	x20, x0
	mov	x0, x19
	mov	w1, #256
	bl	_cx25840_read
	mov	x24, x0
	orr	w25, w0, w20, lsl #8
	ldr	w1, [x21]
	str	x25, [sp]
Lloh7:
	adrp	x3, l_.str.1@PAGE
Lloh8:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l_dbg
	and	w8, w25, #0xff00
	mov	w9, #33792
	cmp	w8, w9
	b.eq	LBB0_5
; %bb.2:
	mov	w9, #33536
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.3:
	ubfx	w8, w24, #4, #4
	add	w23, w8, #127
	b	LBB0_10
LBB0_4:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_38
LBB0_5:
	ubfx	w8, w24, #4, #4
	add	w23, w8, #131
	b	LBB0_10
LBB0_6:
	cbz	w25, LBB0_9
; %bb.7:
	and	w8, w25, #0xfff0
	mov	w9, #23088
	cmp	w8, w9
	b.ne	LBB0_15
; %bb.8:
	mov	w23, #137
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_get_cx2388x_ident
	mov	x23, x0
LBB0_10:
	add	x20, x19, #8
Lloh11:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #96
	bl	_devm_kzalloc
	cbz	x0, LBB0_14
; %bb.11:
	mov	x21, x0
	add	x22, x0, #80
Lloh14:
	adrp	x2, _cx25840_ops@GOTPAGE
Lloh15:
	ldr	x2, [x2, _cx25840_ops@GOTPAGEOFF]
	mov	x0, x22
	mov	x1, x19
	bl	_v4l2_i2c_subdev_init
	sub	w8, w23, #128
	cmp	w8, #9
	b.hi	LBB0_17
; %bb.12:
Lloh16:
	adrp	x9, lJTI0_0@PAGE
Lloh17:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_13
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_13:
	ubfx	w8, w25, #4, #12
	and	w9, w24, #0xf
	cmp	w9, #3
	cinc	w9, w9, lo
	ldr	w10, [x19]
	lsl	w10, w10, #1
	ldr	x11, [x19, #16]
	ldr	w11, [x11]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh18:
	adrp	x1, l_.str.9@PAGE
Lloh19:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_22
LBB0_14:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_38
LBB0_15:
	and	w8, w24, #0xff
	cmp	w8, w25, asr #8
	b.ne	LBB0_36
; %bb.16:
	ldr	w8, [x19]
	lsl	w8, w8, #1
	ldr	x9, [x19, #16]
	ldr	w9, [x9]
	stp	x8, x9, [sp]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_v4l_err
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_v4l_err
	b	LBB0_37
LBB0_17:
	ubfx	w8, w25, #4, #12
	and	w9, w24, #0xf
	ldr	w10, [x19]
	lsl	w10, w10, #1
	ldr	x11, [x19, #16]
	ldr	w11, [x11]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh26:
	adrp	x1, l_.str.10@PAGE
Lloh27:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_22
LBB0_18:
	ldr	w8, [x19]
	lsl	w8, w8, #1
	ldr	x9, [x19, #16]
	ldr	w9, [x9]
	stp	x8, x9, [sp]
Lloh28:
	adrp	x1, l_.str.7@PAGE
Lloh29:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_22
LBB0_19:
	ldr	w8, [x19]
	lsl	w8, w8, #1
	ldr	x9, [x19, #16]
	ldr	w9, [x9]
	stp	x8, x9, [sp]
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_22
LBB0_20:
	ldr	w8, [x19]
	lsl	w8, w8, #1
	ldr	x9, [x19, #16]
	ldr	w9, [x9]
	stp	x8, x9, [sp]
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_22
LBB0_21:
	ldr	w8, [x19]
	lsl	w8, w8, #1
	ldr	x9, [x19, #16]
	ldr	w9, [x9]
	stp	x8, x9, [sp, #8]
	mov	x9, x25
	str	x9, [sp]
Lloh34:
	adrp	x1, l_.str.8@PAGE
Lloh35:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_22:
	mov	x0, x19
	bl	_v4l_info
	str	x19, [x21, #64]
Lloh36:
	adrp	x8, _CX25840_COMPOSITE7@GOTPAGE
Lloh37:
	ldr	x8, [x8, _CX25840_COMPOSITE7@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _CX25840_AUDIO8@GOTPAGE
Lloh40:
	ldr	x9, [x9, _CX25840_AUDIO8@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #56]
Lloh42:
	adrp	x8, lCPI0_0@PAGE
Lloh43:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21]
Lloh44:
	adrp	x8, _V4L2_TUNER_MODE_LANG1@GOTPAGE
Lloh45:
	ldr	x8, [x8, _V4L2_TUNER_MODE_LANG1@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	stp	w23, w25, [x21, #8]
	mov	w9, #220
	cmp	w23, #134
	csel	w9, w9, wzr, eq
	str	w9, [x21, #16]
Lloh47:
	adrp	x9, _V4L2_STD_NTSC_M@GOTPAGE
Lloh48:
	ldr	x9, [x9, _V4L2_STD_NTSC_M@GOTPAGEOFF]
Lloh49:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #48]
	add	x23, x21, #24
	mov	x0, x23
	mov	w1, #9
	bl	_v4l2_ctrl_handler_init
Lloh50:
	adrp	x8, _V4L2_CID_BRIGHTNESS@GOTPAGE
Lloh51:
	ldr	x8, [x8, _V4L2_CID_BRIGHTNESS@GOTPAGEOFF]
Lloh52:
	ldr	w2, [x8]
Lloh53:
	adrp	x24, _cx25840_ctrl_ops@GOTPAGE
Lloh54:
	ldr	x24, [x24, _cx25840_ctrl_ops@GOTPAGEOFF]
	mov	x0, x23
	mov	x1, x24
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #128
	bl	_v4l2_ctrl_new_std
Lloh55:
	adrp	x8, _V4L2_CID_CONTRAST@GOTPAGE
Lloh56:
	ldr	x8, [x8, _V4L2_CID_CONTRAST@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x24
	mov	w3, #0
	mov	w4, #127
	mov	w5, #1
	mov	w6, #64
	bl	_v4l2_ctrl_new_std
Lloh58:
	adrp	x8, _V4L2_CID_SATURATION@GOTPAGE
Lloh59:
	ldr	x8, [x8, _V4L2_CID_SATURATION@GOTPAGEOFF]
Lloh60:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x24
	mov	w3, #0
	mov	w4, #127
	mov	w5, #1
	mov	w6, #64
	bl	_v4l2_ctrl_new_std
Lloh61:
	adrp	x8, _V4L2_CID_HUE@GOTPAGE
Lloh62:
	ldr	x8, [x8, _V4L2_CID_HUE@GOTPAGEOFF]
Lloh63:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x24
	mov	w3, #-128
	mov	w4, #127
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	mov	x0, x21
	bl	_is_cx2583x
	cbnz	w0, LBB0_29
; %bb.23:
	mov	x0, x19
	mov	w1, #2260
	bl	_cx25840_read
	cmp	w0, #228
	b.le	LBB0_25
; %bb.24:
	mov	w24, #228
	b	LBB0_27
LBB0_25:
	mov	x24, x0
	cmp	w0, #19
	b.gt	LBB0_28
; %bb.26:
	mov	w24, #20
LBB0_27:
	mov	x0, x19
	mov	w1, #2260
	mov	x2, x24
	bl	_cx25840_write
LBB0_28:
	mov	w8, #4608
	movk	w8, #1, lsl #16
	sub	w8, w8, w24, lsl #8
	and	w6, w8, #0xfffffe00
Lloh64:
	adrp	x8, _V4L2_CID_AUDIO_VOLUME@GOTPAGE
Lloh65:
	ldr	x8, [x8, _V4L2_CID_AUDIO_VOLUME@GOTPAGEOFF]
Lloh66:
	ldr	w2, [x8]
Lloh67:
	adrp	x19, _cx25840_audio_ctrl_ops@GOTPAGE
Lloh68:
	ldr	x19, [x19, _cx25840_audio_ctrl_ops@GOTPAGEOFF]
	mov	x0, x23
	mov	x1, x19
	mov	w3, #0
	mov	w4, #65535
	mov	w5, #655
	bl	_v4l2_ctrl_new_std
	str	x0, [x21, #32]
Lloh69:
	adrp	x8, _V4L2_CID_AUDIO_MUTE@GOTPAGE
Lloh70:
	ldr	x8, [x8, _V4L2_CID_AUDIO_MUTE@GOTPAGEOFF]
Lloh71:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x19
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	str	x0, [x21, #40]
Lloh72:
	adrp	x8, _V4L2_CID_AUDIO_BALANCE@GOTPAGE
Lloh73:
	ldr	x8, [x8, _V4L2_CID_AUDIO_BALANCE@GOTPAGEOFF]
Lloh74:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x19
	mov	w3, #0
	mov	w4, #65535
	mov	w5, #655
	mov	w6, #32768
	bl	_v4l2_ctrl_new_std
Lloh75:
	adrp	x8, _V4L2_CID_AUDIO_BASS@GOTPAGE
Lloh76:
	ldr	x8, [x8, _V4L2_CID_AUDIO_BASS@GOTPAGEOFF]
Lloh77:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x19
	mov	w3, #0
	mov	w4, #65535
	mov	w5, #655
	mov	w6, #32768
	bl	_v4l2_ctrl_new_std
Lloh78:
	adrp	x8, _V4L2_CID_AUDIO_TREBLE@GOTPAGE
Lloh79:
	ldr	x8, [x8, _V4L2_CID_AUDIO_TREBLE@GOTPAGEOFF]
Lloh80:
	ldr	w2, [x8]
	mov	x0, x23
	mov	x1, x19
	mov	w3, #0
	mov	w4, #65535
	mov	w5, #655
	mov	w6, #32768
	bl	_v4l2_ctrl_new_std
LBB0_29:
	str	x23, [x22]
	ldr	w19, [x23]
	cbz	w19, LBB0_31
; %bb.30:
	mov	x0, x23
	bl	_v4l2_ctrl_handler_free
	b	LBB0_39
LBB0_31:
	mov	x0, x21
	bl	_is_cx2583x
	cbnz	w0, LBB0_33
; %bb.32:
	add	x1, x21, #32
	mov	w0, #2
	bl	_v4l2_ctrl_cluster
LBB0_33:
	mov	x0, x23
	bl	_v4l2_ctrl_handler_setup
	ldr	x8, [x20]
	cbz	x8, LBB0_35
; %bb.34:
	ldr	w8, [x8]
	str	w8, [x21, #20]
LBB0_35:
	mov	x0, x22
	bl	_cx25840_ir_probe
	mov	w19, #0
	b	LBB0_39
LBB0_36:
	ldr	w1, [x21]
Lloh81:
	adrp	x3, l_.str.4@PAGE
Lloh82:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l_dbg
LBB0_37:
Lloh83:
	adrp	x8, _ENODEV@GOTPAGE
Lloh84:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_38:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_39:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdrp	Lloh42, Lloh44
	.loh AdrpLdr	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpAdd	Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh83, Lloh84
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_13-LBB0_13)>>2
	.byte	(LBB0_17-LBB0_13)>>2
	.byte	(LBB0_17-LBB0_13)>>2
	.byte	(LBB0_18-LBB0_13)>>2
	.byte	(LBB0_19-LBB0_13)>>2
	.byte	(LBB0_20-LBB0_13)>>2
	.byte	(LBB0_21-LBB0_13)>>2
                                        ; -- End function
	.comm	_I2C_FUNC_SMBUS_BYTE_DATA,4,2   ; @I2C_FUNC_SMBUS_BYTE_DATA
	.comm	_EIO,4,2                        ; @EIO
	.comm	_cx25840_debug,4,2              ; @cx25840_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"detecting cx25840 client on address 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"device_id = 0x%04x\n"

l_.str.2:                               ; @.str.2
	.asciz	"likely a confused/unresponsive cx2388[578] A/V decoder found @ 0x%x (%s)\n"

l_.str.3:                               ; @.str.3
	.asciz	"A method to reset it from the cx25840 driver software is not known at this time\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.4:                               ; @.str.4
	.asciz	"cx25840 not found\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_cx25840_ops,4,2                ; @cx25840_ops
l_.str.5:                               ; @.str.5
	.asciz	"cx23885 A/V decoder found @ 0x%x (%s)\n"

l_.str.6:                               ; @.str.6
	.asciz	"cx23887 A/V decoder found @ 0x%x (%s)\n"

l_.str.7:                               ; @.str.7
	.asciz	"cx23888 A/V decoder found @ 0x%x (%s)\n"

l_.str.8:                               ; @.str.8
	.asciz	"cx%d A/V decoder found @ 0x%x (%s)\n"

l_.str.9:                               ; @.str.9
	.asciz	"cx25%3x-2%x found @ 0x%x (%s)\n"

l_.str.10:                              ; @.str.10
	.asciz	"cx25%3x-%x found @ 0x%x (%s)\n"

	.comm	_CX25840_COMPOSITE7,4,2         ; @CX25840_COMPOSITE7
	.comm	_CX25840_AUDIO8,4,2             ; @CX25840_AUDIO8
	.comm	_V4L2_TUNER_MODE_LANG1,4,2      ; @V4L2_TUNER_MODE_LANG1
	.comm	_V4L2_STD_NTSC_M,4,2            ; @V4L2_STD_NTSC_M
	.comm	_cx25840_ctrl_ops,4,2           ; @cx25840_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	_cx25840_audio_ctrl_ops,4,2     ; @cx25840_audio_ctrl_ops
	.comm	_V4L2_CID_AUDIO_VOLUME,4,2      ; @V4L2_CID_AUDIO_VOLUME
	.comm	_V4L2_CID_AUDIO_MUTE,4,2        ; @V4L2_CID_AUDIO_MUTE
	.comm	_V4L2_CID_AUDIO_BALANCE,4,2     ; @V4L2_CID_AUDIO_BALANCE
	.comm	_V4L2_CID_AUDIO_BASS,4,2        ; @V4L2_CID_AUDIO_BASS
	.comm	_V4L2_CID_AUDIO_TREBLE,4,2      ; @V4L2_CID_AUDIO_TREBLE
	.comm	_CX25840_PAD_INPUT,8,3          ; @CX25840_PAD_INPUT
	.comm	_CX25840_PAD_VID_OUT,8,3        ; @CX25840_PAD_VID_OUT
	.comm	_MEDIA_ENT_F_ATV_DECODER,4,2    ; @MEDIA_ENT_F_ATV_DECODER
	.comm	_MEDIA_PAD_FL_SINK,4,2          ; @MEDIA_PAD_FL_SINK
	.comm	_MEDIA_PAD_FL_SOURCE,4,2        ; @MEDIA_PAD_FL_SOURCE
	.comm	_PAD_SIGNAL_ANALOG,4,2          ; @PAD_SIGNAL_ANALOG
	.comm	_PAD_SIGNAL_DV,4,2              ; @PAD_SIGNAL_DV
	.no_dead_strip	_cx25840_probe
.subsections_via_symbols
