	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -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)
	shrl	$4, %eax
	movq	_CXADEC_CHIP_TYPE_MAKO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	movq	_V4L2_IDENT_CX23418_843@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_V4L2_IDENT_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_CX18_AV_COMPOSITE7@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rbx)
	movq	_CX18_AV_AUDIO8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movl	$48000, 12(%rbx)                ## imm = 0xBB80
	movq	_V4L2_TUNER_MODE_LANG1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%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, 24(%rbx)
	leaq	16(%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	20(%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, 16(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_v4l2_device_register_subdev
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_cx18_av_init
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CXADEC_CHIP_CTRL,4,2           ## @CXADEC_CHIP_CTRL
	.comm	_CXADEC_CHIP_TYPE_MAKO,4,2      ## @CXADEC_CHIP_TYPE_MAKO
	.comm	_V4L2_IDENT_CX23418_843,4,2     ## @V4L2_IDENT_CX23418_843
	.comm	_V4L2_IDENT_UNKNOWN,4,2         ## @V4L2_IDENT_UNKNOWN
	.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
.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	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
	and	w8, w0, #0xffff
	str	w8, [x19, #8]
Lloh3:
	adrp	x9, _CXADEC_CHIP_TYPE_MAKO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CXADEC_CHIP_TYPE_MAKO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _V4L2_IDENT_CX23418_843@GOTPAGE
Lloh7:
	ldr	x10, [x10, _V4L2_IDENT_CX23418_843@GOTPAGEOFF]
Lloh8:
	adrp	x11, _V4L2_IDENT_UNKNOWN@GOTPAGE
Lloh9:
	ldr	x11, [x11, _V4L2_IDENT_UNKNOWN@GOTPAGEOFF]
	cmp	w9, w8, lsr #4
	csel	x8, x10, x11, eq
Lloh10:
	adrp	x9, _CX18_AV_COMPOSITE7@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CX18_AV_COMPOSITE7@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #48]
Lloh13:
	adrp	x8, _CX18_AV_AUDIO8@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CX18_AV_AUDIO8@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	mov	w9, #48000
	str	w9, [x19, #12]
Lloh16:
	adrp	x9, _V4L2_TUNER_MODE_LANG1@GOTPAGE
Lloh17:
	ldr	x9, [x9, _V4L2_TUNER_MODE_LANG1@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #40]
Lloh19:
	adrp	x8, lCPI0_0@PAGE
Lloh20:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x19, #24]
	add	x20, x19, #16
Lloh21:
	adrp	x1, _cx18_av_ops@GOTPAGE
Lloh22:
	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, #20]
	ldr	x3, [x19]
	ldr	w8, [x19, #8]
	asr	w4, w8, #4
Lloh23:
	adrp	x2, l_.str@PAGE
Lloh24:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	bl	_snprintf
Lloh25:
	adrp	x8, _CX18_HW_418_AV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CX18_HW_418_AV@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_v4l2_device_register_subdev
	mov	x20, x0
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_cx18_av_init
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdr	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CXADEC_CHIP_CTRL,4,2           ; @CXADEC_CHIP_CTRL
	.comm	_CXADEC_CHIP_TYPE_MAKO,4,2      ; @CXADEC_CHIP_TYPE_MAKO
	.comm	_V4L2_IDENT_CX23418_843,4,2     ; @V4L2_IDENT_CX23418_843
	.comm	_V4L2_IDENT_UNKNOWN,4,2         ; @V4L2_IDENT_UNKNOWN
	.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
.subsections_via_symbols
