	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tda829x_probe                  ## -- Begin function tda829x_probe
	.p2align	4, 0x90
_tda829x_probe:                         ## @tda829x_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
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	%esi, -64(%rbp)
	movq	%rdi, -56(%rbp)
	movw	$0, -36(%rbp)
	movw	$513, -44(%rbp)                 ## imm = 0x201
	movw	$1025, -42(%rbp)                ## imm = 0x401
	movb	$48, -38(%rbp)
	movw	$-10752, -40(%rbp)              ## imm = 0xD600
	movb	$7, -34(%rbp)
	leaq	-64(%rbp), %rdi
	leaq	-36(%rbp), %rsi
	leaq	-32(%rbp), %rcx
	movl	$1, %edx
	movl	$8, %r8d
	callq	_tuner_i2c_xfer_send_recv
	movzbl	-32(%rbp), %eax
	movd	-31(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movd	%eax, %xmm1
	punpcklbw	%xmm1, %xmm1            ## xmm1 = xmm1[0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7]
	pshuflw	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0,4,5,6,7]
	pcmpeqb	%xmm0, %xmm1
	pmovsxbd	%xmm1, %xmm0
	pslld	$31, %xmm0
	movmskps	%xmm0, %ecx
	cmpb	$15, %cl
	jne	LBB0_4
## %bb.1:
	cmpb	%al, -27(%rbp)
	jne	LBB0_4
## %bb.2:
	cmpb	%al, -26(%rbp)
	jne	LBB0_4
## %bb.3:
	cmpb	%al, -25(%rbp)
	je	LBB0_9
LBB0_4:
	leaq	-64(%rbp), %rdi
	callq	_tda8290_probe
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	leaq	-64(%rbp), %rdi
	callq	_tda8295_probe
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	leaq	-64(%rbp), %r14
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	leaq	-36(%rbp), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	leaq	-34(%rbp), %rsi
	leaq	-33(%rbp), %rcx
	movq	%r14, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	cmpb	$0, -33(%rbp)
	jne	LBB0_8
## %bb.7:
	leaq	-64(%rbp), %r14
	leaq	-42(%rbp), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	leaq	-36(%rbp), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	leaq	-34(%rbp), %rsi
	leaq	-33(%rbp), %rcx
	movq	%r14, %rdi
	movl	$1, %edx
	movl	$1, %r8d
	callq	_tuner_i2c_xfer_send_recv
	cmpb	$123, -33(%rbp)
	je	LBB0_10
LBB0_8:
	leaq	-64(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	movl	$3, %edx
	callq	_tuner_i2c_xfer_send
LBB0_9:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
l___const.tda829x_probe.restore_9886:   ## @__const.tda829x_probe.restore_9886
	.ascii	"\000\3260"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_PROBE_BUFFER_SIZE,4,2          ## @PROBE_BUFFER_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tda829x_probe                  ; -- Begin function tda829x_probe
	.p2align	2
_tda829x_probe:                         ; @tda829x_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	str	w1, [sp, #16]
	str	x0, [sp, #24]
	strh	wzr, [sp, #14]
	mov	w8, #513
	strh	w8, [sp, #12]
	mov	w8, #1025
	strh	w8, [sp, #10]
	mov	w8, #48
	strb	w8, [sp, #8]
	mov	w8, #54784
	strh	w8, [sp, #6]
	mov	w8, #7
	strb	w8, [sp, #5]
	add	x0, sp, #16
	add	x1, sp, #14
	sub	x3, x29, #16
	mov	w2, #1
	mov	w4, #8
	bl	_tuner_i2c_xfer_send_recv
	ldurb	w8, [x29, #-16]
	ldur	s0, [x29, #-15]
	dup.4h	v1, w8
	ushll.8h	v0, v0, #0
	cmeq.4h	v0, v0, v1
	umov.h	w9, v0[0]
	umov.h	w10, v0[1]
	and	w10, w10, #0x1
	bfi	w9, w10, #1, #1
	umov.h	w10, v0[2]
	and	w10, w10, #0x1
	bfi	w9, w10, #2, #1
	umov.h	w10, v0[3]
	bfi	w9, w10, #3, #29
	mvn	w9, w9
	and	w9, w9, #0xf
	ldurb	w10, [x29, #-11]
	ldurb	w11, [x29, #-10]
	ldurb	w12, [x29, #-9]
	cmp	w9, #0
	ccmp	w10, w8, #0, eq
	ccmp	w11, w8, #0, eq
	ccmp	w12, w8, #0, eq
	b.eq	LBB0_7
; %bb.1:
	add	x0, sp, #16
	bl	_tda8290_probe
	cbz	x0, LBB0_8
; %bb.2:
	add	x0, sp, #16
	bl	_tda8295_probe
	cbz	x0, LBB0_8
; %bb.3:
	add	x0, sp, #16
	add	x1, sp, #12
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	add	x0, sp, #16
	add	x1, sp, #14
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	add	x0, sp, #16
	add	x1, sp, #5
	add	x3, sp, #4
	mov	w2, #1
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
	ldrb	w8, [sp, #4]
	cbnz	w8, LBB0_6
; %bb.4:
	add	x0, sp, #16
	add	x1, sp, #10
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	add	x0, sp, #16
	add	x1, sp, #14
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	add	x0, sp, #16
	add	x1, sp, #5
	add	x3, sp, #4
	mov	w2, #1
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
	ldrb	w8, [sp, #4]
	cmp	w8, #123
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
	add	x0, sp, #16
	add	x1, sp, #6
	mov	w2, #3
	bl	_tuner_i2c_xfer_send
LBB0_7:
Lloh3:
	adrp	x8, _ENODEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldur	x8, [x29, #-8]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l___const.tda829x_probe.restore_9886:   ; @__const.tda829x_probe.restore_9886
	.ascii	"\000\3260"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_PROBE_BUFFER_SIZE,4,2          ; @PROBE_BUFFER_SIZE
.subsections_via_symbols
