	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cineS2_probe
_cineS2_probe:                          ## @cineS2_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	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movq	8(%rax), %r14
	callq	_i2c_adapter_from_chan
	movq	%rax, %r15
	leaq	-60(%rbp), %rax
	movq	%rax, -96(%rbp)
	movl	$0, -80(%rbp)
	leaq	-68(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	callq	_port_has_xo2
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movl	-64(%rbp), %r8d
	sarl	$2, %r8d
	movl	%r8d, -64(%rbp)
	movl	(%rbx), %edx
	movl	-68(%rbp), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	-68(%rbp), %eax
	cmpl	$129, %eax
	je	LBB0_9
## %bb.2:
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.3:
	movl	(%rbx), %edx
	testb	$1, %dl
	jne	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_init_xo2
	jmp	LBB0_6
LBB0_12:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_port_has_stv0900
	testq	%rax, %rax
	je	LBB0_24
## %bb.13:
	movq	_DEMOD_TYPE_STV090X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movslq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %r13
	movq	%rbx, %rdi
	callq	_demod_attach_stv0900
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_31
## %bb.14:
	movl	(%rbx), %eax
	cmpl	$2, %eax
	jl	LBB0_31
## %bb.15:
	movl	(%r13), %ecx
	movl	%ecx, -84(%rbp)
	movl	$3, -88(%rbp)
	movl	$241, -60(%rbp)
	je	LBB0_16
## %bb.17:
	cmpl	$3, %eax
	jne	LBB0_22
## %bb.18:
	movl	$204, %eax
	movl	$97, %ecx
	jmp	LBB0_19
LBB0_9:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_10
LBB0_11:
	leaq	L_.str.5(%rip), %rsi
	xorl	%r12d, %r12d
LBB0_10:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
LBB0_29:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_30:
	subl	(%rax), %r12d
	jmp	LBB0_31
LBB0_24:
	movl	(%rbx), %esi
	xorl	$2, %esi
	movq	%r15, %rdi
	callq	_port_has_drxk
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	_DEMOD_TYPE_DRXK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_demod_attach_drxk
	xorl	%r12d, %r12d
	jmp	LBB0_31
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_6:
	movq	_DEMOD_TYPE_XO2@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movslq	-64(%rbp), %rax
	leal	(%rax,%rcx), %r13d
	addl	%eax, %ecx
	addl	$-131, %ecx
	cmpl	$4, %ecx
	jae	LBB0_7
## %bb.33:
	movq	_xo2names@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %edx
	movl	(%rbx), %ecx
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	movl	%r13d, 4(%rbx)
	xorl	%edx, %edx
	cmpl	$133, %r13d
	sete	%dl
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_demod_attach_cxd28xx
	jmp	LBB0_31
LBB0_7:
	cmpl	$130, %r13d
	jne	LBB0_21
## %bb.8:
	movq	_xo2names@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %edx
	movl	(%rbx), %ecx
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	movl	$130, 4(%rbx)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_demod_attach_stv0910
	jmp	LBB0_31
LBB0_26:
	movq	%r15, %rdi
	callq	_port_has_stv0367
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movq	_DEMOD_TYPE_STV0367@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	(%rbx), %edx
	leaq	L_.str.7(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_demod_attach_stv0367
	jmp	LBB0_31
LBB0_21:
	movl	(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_22:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_30
LBB0_16:
	movl	$194, %eax
	movl	$92, %ecx
LBB0_19:
	movl	%ecx, -56(%rbp)
	movl	%eax, -52(%rbp)
	leaq	-96(%rbp), %rsi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_i2c_transfer
	xorl	%r12d, %r12d
	cmpl	$1, %eax
	jne	LBB0_20
LBB0_31:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_34
## %bb.32:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_30
LBB0_28:
	movl	(%rbx), %edx
	leaq	L_.str.8(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_info
	jmp	LBB0_29
LBB0_34:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"XO2 on channel %d (type %d, id %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"skipping XO2 init on odd channel %d"

	.comm	_DEMOD_TYPE_XO2,4,2             ## @DEMOD_TYPE_XO2
L_.str.2:                               ## @.str.2
	.asciz	"%s (XO2) on channel %d\n"

	.comm	_xo2names,8,3                   ## @xo2names
L_.str.3:                               ## @.str.3
	.asciz	"Unsupported XO2 module on channel %d\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.4:                               ## @.str.4
	.asciz	"DuoFlex CI modules not supported\n"

L_.str.5:                               ## @.str.5
	.asciz	"Unsupported XO2 module type\n"

	.comm	_DEMOD_TYPE_STV090X,4,2         ## @DEMOD_TYPE_STV090X
L_.str.6:                               ## @.str.6
	.asciz	"Could not setup DPNx\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_DEMOD_TYPE_DRXK,4,2            ## @DEMOD_TYPE_DRXK
	.comm	_DEMOD_TYPE_STV0367,4,2         ## @DEMOD_TYPE_STV0367
L_.str.7:                               ## @.str.7
	.asciz	"STV0367 on channel %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"No demod found on chan %d\n"

	.no_dead_strip	_cineS2_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 cineS2_probe
lCPI0_0:
	.long	92                              ; 0x5c
	.long	194                             ; 0xc2
lCPI0_1:
	.long	97                              ; 0x61
	.long	204                             ; 0xcc
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_cineS2_probe:                          ; @cineS2_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x8, [x0, #8]
	ldr	x19, [x8, #8]
	bl	_i2c_adapter_from_chan
	mov	x20, x0
	sub	x8, x29, #52
	str	x8, [sp, #24]
	str	wzr, [sp, #40]
	add	x1, sp, #56
	add	x2, sp, #52
	bl	_port_has_xo2
	cbz	x0, LBB0_5
; %bb.1:
	ldp	w8, w9, [sp, #52]
	asr	w8, w8, #2
	str	w8, [sp, #52]
	ldr	w2, [x21]
	stp	x9, x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [sp, #56]
	cmp	w8, #129
	b.eq	LBB0_11
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_12
; %bb.3:
	ldr	w2, [x21]
	tbnz	w2, #0, LBB0_18
; %bb.4:
	mov	x0, x21
	mov	x1, x20
	bl	_init_xo2
	b	LBB0_19
LBB0_5:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_port_has_stv0900
	cbz	x0, LBB0_16
; %bb.6:
Lloh5:
	adrp	x8, _DEMOD_TYPE_STV090X@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DEMOD_TYPE_STV090X@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x21, #4]
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldrsw	x9, [x21]
	ldr	x22, [x8, x9, lsl #3]
	mov	x0, x21
	bl	_demod_attach_stv0900
	tbnz	w0, #31, LBB0_29
; %bb.7:
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_29
; %bb.8:
	ldr	w9, [x22]
	mov	w10, #3
	stp	w10, w9, [sp, #32]
	mov	w9, #241
	stur	w9, [x29, #-52]
	cmp	w8, #2
	b.eq	LBB0_26
; %bb.9:
	cmp	w8, #3
	b.ne	LBB0_14
; %bb.10:
Lloh8:
	adrp	x8, lCPI0_1@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	b	LBB0_27
LBB0_11:
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_dev_info
LBB0_14:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_29
LBB0_16:
	ldr	w8, [x21]
	eor	w1, w8, #0x2
	mov	x0, x20
	bl	_port_has_drxk
	cbz	x0, LBB0_23
; %bb.17:
Lloh16:
	adrp	x8, _DEMOD_TYPE_DRXK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DEMOD_TYPE_DRXK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x21, #4]
	mov	x0, x21
	mov	x1, x20
	bl	_demod_attach_drxk
	b	LBB0_28
LBB0_18:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_19:
Lloh21:
	adrp	x8, _DEMOD_TYPE_XO2@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DEMOD_TYPE_XO2@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x8]
	ldrsw	x8, [sp, #52]
	add	w22, w8, w9
	sub	w9, w22, #131
	cmp	w9, #4
	b.hs	LBB0_21
; %bb.20:
Lloh24:
	adrp	x9, _xo2names@GOTPAGE
Lloh25:
	ldr	x9, [x9, _xo2names@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	ldr	w8, [x9, x8, lsl #2]
	ldr	w9, [x21]
	stp	x8, x9, [sp]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	str	w22, [x21, #4]
	cmp	w22, #133
	cset	w2, eq
	mov	x0, x21
	mov	x1, x20
	bl	_demod_attach_cxd28xx
	b	LBB0_28
LBB0_21:
	cmp	w22, #130
	b.ne	LBB0_25
; %bb.22:
Lloh29:
	adrp	x9, _xo2names@GOTPAGE
Lloh30:
	ldr	x9, [x9, _xo2names@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	ldr	w8, [x9, x8, lsl #2]
	ldr	w9, [x21]
	stp	x8, x9, [sp]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w8, #130
	str	w8, [x21, #4]
	mov	x0, x21
	mov	x1, x20
	bl	_demod_attach_stv0910
	b	LBB0_28
LBB0_23:
	mov	x0, x20
	bl	_port_has_stv0367
	cbz	x0, LBB0_32
; %bb.24:
Lloh34:
	adrp	x8, _DEMOD_TYPE_STV0367@GOTPAGE
Lloh35:
	ldr	x8, [x8, _DEMOD_TYPE_STV0367@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	str	w8, [x21, #4]
	ldr	w8, [x21]
	str	x8, [sp]
Lloh37:
	adrp	x1, l_.str.7@PAGE
Lloh38:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x21
	mov	x1, x20
	bl	_demod_attach_stv0367
	b	LBB0_28
LBB0_25:
	ldr	w2, [x21]
Lloh39:
	adrp	x1, l_.str.3@PAGE
Lloh40:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
	b	LBB0_14
LBB0_26:
Lloh41:
	adrp	x8, lCPI0_0@PAGE
Lloh42:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
LBB0_27:
	stur	d0, [x29, #-48]
	add	x1, sp, #24
	mov	x0, x20
	mov	w2, #1
	bl	_i2c_transfer
	cmp	w0, #1
	b.ne	LBB0_31
LBB0_28:
	mov	w0, #0
LBB0_29:
	ldur	x8, [x29, #-40]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.30:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_31:
Lloh46:
	adrp	x1, l_.str.6@PAGE
Lloh47:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh48:
	adrp	x8, _EIO@GOTPAGE
Lloh49:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_15
LBB0_32:
	ldr	w8, [x21]
	str	x8, [sp]
Lloh50:
	adrp	x1, l_.str.8@PAGE
Lloh51:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_13
LBB0_33:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdr	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"XO2 on channel %d (type %d, id %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"skipping XO2 init on odd channel %d"

	.comm	_DEMOD_TYPE_XO2,4,2             ; @DEMOD_TYPE_XO2
l_.str.2:                               ; @.str.2
	.asciz	"%s (XO2) on channel %d\n"

	.comm	_xo2names,8,3                   ; @xo2names
l_.str.3:                               ; @.str.3
	.asciz	"Unsupported XO2 module on channel %d\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.4:                               ; @.str.4
	.asciz	"DuoFlex CI modules not supported\n"

l_.str.5:                               ; @.str.5
	.asciz	"Unsupported XO2 module type\n"

	.comm	_DEMOD_TYPE_STV090X,4,2         ; @DEMOD_TYPE_STV090X
l_.str.6:                               ; @.str.6
	.asciz	"Could not setup DPNx\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_DEMOD_TYPE_DRXK,4,2            ; @DEMOD_TYPE_DRXK
	.comm	_DEMOD_TYPE_STV0367,4,2         ; @DEMOD_TYPE_STV0367
l_.str.7:                               ; @.str.7
	.asciz	"STV0367 on channel %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"No demod found on chan %d\n"

	.no_dead_strip	_cineS2_probe
.subsections_via_symbols
