	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function cx18_av_probe
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	8                               ## 0x8
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_cx18_av_probe
	.p2align	4, 0x90
_cx18_av_probe:                         ## @cx18_av_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_CXADEC_CHIP_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_cx18_av_read4
	movzwl	%ax, %eax
	movl	%eax, 8(%rbx)
	movq	_CX18_AV_COMPOSITE7@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	movq	_CX18_AV_AUDIO8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%rbx)
	movl	$48000, 12(%rbx)                ## imm = 0xBB80
	movq	_V4L2_TUNER_MODE_LANG1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0]
	movups	%xmm0, 40(%rbx)
	leaq	24(%rbx), %r14
	movq	_cx18_av_ops@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_v4l2_subdev_init
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_v4l2_set_subdevdata
	movl	36(%rbx), %edi
	movq	(%rbx), %rcx
	movl	8(%rbx), %r8d
	sarl	$4, %r8d
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	callq	_snprintf
	movq	_CX18_HW_418_AV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	movl	$9, %esi
	callq	_v4l2_ctrl_handler_init
	movq	_V4L2_CID_BRIGHTNESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$128, (%rsp)
	movq	_cx18_av_ctrl_ops@GOTPCREL(%rip), %r12
	movq	%r15, %rdi
	movq	%r12, %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	%r15, %rdi
	movq	%r12, %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	%r15, %rdi
	movq	%r12, %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	%r15, %rdi
	movq	%r12, %rsi
	movl	$-128, %ecx
	movl	$127, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_AUDIO_VOLUME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	_cx18_av_audio_ctrl_ops@GOTPCREL(%rip), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$65535, %r8d                    ## imm = 0xFFFF
	movl	$655, %r9d                      ## imm = 0x28F
	callq	_v4l2_ctrl_new_std
	movl	%eax, 20(%rbx)
	movq	_V4L2_CID_AUDIO_MUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_v4l2_ctrl_new_std
	movq	_V4L2_CID_AUDIO_BALANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32768, (%rsp)                  ## imm = 0x8000
	movq	%r15, %rdi
	movq	%r12, %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	%r15, %rdi
	movq	%r12, %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	%r15, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	movl	$65535, %r8d                    ## imm = 0xFFFF
	movl	$655, %r9d                      ## imm = 0x28F
	callq	_v4l2_ctrl_new_std
	movq	%r15, 24(%rbx)
	movl	16(%rbx), %r12d
	testl	%r12d, %r12d
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_v4l2_device_register_subdev
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r12d
LBB0_1:
	movq	%r15, %rdi
	callq	_v4l2_ctrl_handler_free
LBB0_5:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rbx, %rdi
	callq	_cx18_av_init
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_CXADEC_CHIP_CTRL,4,2           ## @CXADEC_CHIP_CTRL
	.comm	_CX18_AV_COMPOSITE7,4,2         ## @CX18_AV_COMPOSITE7
	.comm	_CX18_AV_AUDIO8,4,2             ## @CX18_AV_AUDIO8
	.comm	_V4L2_TUNER_MODE_LANG1,4,2      ## @V4L2_TUNER_MODE_LANG1
	.comm	_cx18_av_ops,4,2                ## @cx18_av_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s %03x"

	.comm	_CX18_HW_418_AV,4,2             ## @CX18_HW_418_AV
	.comm	_cx18_av_ctrl_ops,4,2           ## @cx18_av_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	_cx18_av_audio_ctrl_ops,4,2     ## @cx18_av_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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function cx18_av_probe
lCPI0_0:
	.quad	0                               ; 0x0
	.quad	8                               ; 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_cx18_av_probe
	.p2align	2
_cx18_av_probe:                         ; @cx18_av_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _CXADEC_CHIP_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CXADEC_CHIP_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_cx18_av_read4
Lloh3:
	adrp	x8, _CX18_AV_COMPOSITE7@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CX18_AV_COMPOSITE7@GOTPAGEOFF]
	and	w9, w0, #0xffff
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #64]
Lloh6:
	adrp	x8, _CX18_AV_AUDIO8@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CX18_AV_AUDIO8@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	w10, #48000
	stp	w9, w10, [x19, #8]
Lloh9:
	adrp	x9, _V4L2_TUNER_MODE_LANG1@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_TUNER_MODE_LANG1@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #56]
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x19, #40]
	add	x20, x19, #24
Lloh14:
	adrp	x1, _cx18_av_ops@GOTPAGE
Lloh15:
	ldr	x1, [x1, _cx18_av_ops@GOTPAGEOFF]
	mov	x0, x20
	bl	_v4l2_subdev_init
	mov	x0, x20
	mov	x1, x19
	bl	_v4l2_set_subdevdata
	ldr	w0, [x19, #36]
	ldr	x3, [x19]
	ldr	w8, [x19, #8]
	asr	w4, w8, #4
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
Lloh18:
	adrp	x8, _CX18_HW_418_AV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CX18_HW_418_AV@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	add	x21, x19, #16
	mov	x0, x21
	mov	w1, #9
	bl	_v4l2_ctrl_handler_init
Lloh21:
	adrp	x8, _V4L2_CID_BRIGHTNESS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _V4L2_CID_BRIGHTNESS@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x22, _cx18_av_ctrl_ops@GOTPAGE
Lloh25:
	ldr	x22, [x22, _cx18_av_ctrl_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	mov	w4, #255
	mov	w5, #1
	mov	w6, #128
	bl	_v4l2_ctrl_new_std
Lloh26:
	adrp	x8, _V4L2_CID_CONTRAST@GOTPAGE
Lloh27:
	ldr	x8, [x8, _V4L2_CID_CONTRAST@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	mov	w4, #127
	mov	w5, #1
	mov	w6, #64
	bl	_v4l2_ctrl_new_std
Lloh29:
	adrp	x8, _V4L2_CID_SATURATION@GOTPAGE
Lloh30:
	ldr	x8, [x8, _V4L2_CID_SATURATION@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	mov	w4, #127
	mov	w5, #1
	mov	w6, #64
	bl	_v4l2_ctrl_new_std
Lloh32:
	adrp	x8, _V4L2_CID_HUE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _V4L2_CID_HUE@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #-128
	mov	w4, #127
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
Lloh35:
	adrp	x8, _V4L2_CID_AUDIO_VOLUME@GOTPAGE
Lloh36:
	ldr	x8, [x8, _V4L2_CID_AUDIO_VOLUME@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
Lloh38:
	adrp	x22, _cx18_av_audio_ctrl_ops@GOTPAGE
Lloh39:
	ldr	x22, [x22, _cx18_av_audio_ctrl_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	mov	w4, #65535
	mov	w5, #655
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
	str	w0, [x19, #20]
Lloh40:
	adrp	x8, _V4L2_CID_AUDIO_MUTE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _V4L2_CID_AUDIO_MUTE@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	mov	w4, #1
	mov	w5, #1
	mov	w6, #0
	bl	_v4l2_ctrl_new_std
Lloh43:
	adrp	x8, _V4L2_CID_AUDIO_BALANCE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _V4L2_CID_AUDIO_BALANCE@GOTPAGEOFF]
Lloh45:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	mov	w4, #65535
	mov	w5, #655
	mov	w6, #32768
	bl	_v4l2_ctrl_new_std
Lloh46:
	adrp	x8, _V4L2_CID_AUDIO_BASS@GOTPAGE
Lloh47:
	ldr	x8, [x8, _V4L2_CID_AUDIO_BASS@GOTPAGEOFF]
Lloh48:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	mov	w4, #65535
	mov	w5, #655
	mov	w6, #32768
	bl	_v4l2_ctrl_new_std
Lloh49:
	adrp	x8, _V4L2_CID_AUDIO_TREBLE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _V4L2_CID_AUDIO_TREBLE@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w3, #0
	mov	w4, #65535
	mov	w5, #655
	mov	w6, #32768
	bl	_v4l2_ctrl_new_std
	str	x21, [x19, #24]
	ldr	w22, [x19, #16]
	cbnz	w22, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_v4l2_device_register_subdev
	mov	x22, x0
	cbz	w0, LBB0_4
LBB0_2:
	mov	x0, x21
	bl	_v4l2_ctrl_handler_free
LBB0_3:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x19
	bl	_cx18_av_init
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CXADEC_CHIP_CTRL,4,2           ; @CXADEC_CHIP_CTRL
	.comm	_CX18_AV_COMPOSITE7,4,2         ; @CX18_AV_COMPOSITE7
	.comm	_CX18_AV_AUDIO8,4,2             ; @CX18_AV_AUDIO8
	.comm	_V4L2_TUNER_MODE_LANG1,4,2      ; @V4L2_TUNER_MODE_LANG1
	.comm	_cx18_av_ops,4,2                ; @cx18_av_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s %03x"

	.comm	_CX18_HW_418_AV,4,2             ; @CX18_HW_418_AV
	.comm	_cx18_av_ctrl_ops,4,2           ; @cx18_av_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	_cx18_av_audio_ctrl_ops,4,2     ; @cx18_av_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
.subsections_via_symbols
