	.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, -56(%rbp)
	movq	%rdi, -48(%rbp)
	leaq	_tda829x_probe.soft_reset(%rip), %rsi
	leaq	-56(%rbp), %rdi
	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	-56(%rbp), %rdi
	callq	_tda8290_probe
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	leaq	-56(%rbp), %rdi
	callq	_tda8295_probe
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	leaq	_tda829x_probe.easy_mode_b(%rip), %rsi
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	leaq	_tda829x_probe.soft_reset(%rip), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	leaq	_tda829x_probe.addr_dto_lsb(%rip), %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	_tda829x_probe.easy_mode_g(%rip), %rsi
	leaq	-56(%rbp), %r14
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	leaq	_tda829x_probe.soft_reset(%rip), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	leaq	_tda829x_probe.addr_dto_lsb(%rip), %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	_tda829x_probe.restore_9886(%rip), %rsi
	leaq	-56(%rbp), %rdi
	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
.zerofill __DATA,__bss,_tda829x_probe.soft_reset,2,0 ## @tda829x_probe.soft_reset
	.section	__DATA,__data
_tda829x_probe.easy_mode_b:             ## @tda829x_probe.easy_mode_b
	.ascii	"\001\002"

_tda829x_probe.easy_mode_g:             ## @tda829x_probe.easy_mode_g
	.ascii	"\001\004"

_tda829x_probe.restore_9886:            ## @tda829x_probe.restore_9886
	.ascii	"\000\3260"

_tda829x_probe.addr_dto_lsb:            ## @tda829x_probe.addr_dto_lsb
	.byte	7                               ## 0x7

	.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]
Lloh3:
	adrp	x1, _tda829x_probe.soft_reset@PAGE
Lloh4:
	add	x1, x1, _tda829x_probe.soft_reset@PAGEOFF
	add	x0, sp, #16
	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:
Lloh5:
	adrp	x1, _tda829x_probe.easy_mode_b@PAGE
Lloh6:
	add	x1, x1, _tda829x_probe.easy_mode_b@PAGEOFF
	add	x0, sp, #16
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
Lloh7:
	adrp	x1, _tda829x_probe.soft_reset@PAGE
Lloh8:
	add	x1, x1, _tda829x_probe.soft_reset@PAGEOFF
	add	x0, sp, #16
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
Lloh9:
	adrp	x1, _tda829x_probe.addr_dto_lsb@PAGE
Lloh10:
	add	x1, x1, _tda829x_probe.addr_dto_lsb@PAGEOFF
	add	x0, sp, #16
	add	x3, sp, #15
	mov	w2, #1
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
	ldrb	w8, [sp, #15]
	cbnz	w8, LBB0_6
; %bb.4:
Lloh11:
	adrp	x1, _tda829x_probe.easy_mode_g@PAGE
Lloh12:
	add	x1, x1, _tda829x_probe.easy_mode_g@PAGEOFF
	add	x0, sp, #16
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
Lloh13:
	adrp	x1, _tda829x_probe.soft_reset@PAGE
Lloh14:
	add	x1, x1, _tda829x_probe.soft_reset@PAGEOFF
	add	x0, sp, #16
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
Lloh15:
	adrp	x1, _tda829x_probe.addr_dto_lsb@PAGE
Lloh16:
	add	x1, x1, _tda829x_probe.addr_dto_lsb@PAGEOFF
	add	x0, sp, #16
	add	x3, sp, #15
	mov	w2, #1
	mov	w4, #1
	bl	_tuner_i2c_xfer_send_recv
	ldrb	w8, [sp, #15]
	cmp	w8, #123
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_8
LBB0_6:
Lloh17:
	adrp	x1, _tda829x_probe.restore_9886@PAGE
Lloh18:
	add	x1, x1, _tda829x_probe.restore_9886@PAGEOFF
	add	x0, sp, #16
	mov	w2, #3
	bl	_tuner_i2c_xfer_send
LBB0_7:
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldur	x8, [x29, #-8]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_tda829x_probe.soft_reset,2,0 ; @tda829x_probe.soft_reset
	.section	__DATA,__data
_tda829x_probe.easy_mode_b:             ; @tda829x_probe.easy_mode_b
	.ascii	"\001\002"

_tda829x_probe.easy_mode_g:             ; @tda829x_probe.easy_mode_g
	.ascii	"\001\004"

_tda829x_probe.restore_9886:            ; @tda829x_probe.restore_9886
	.ascii	"\000\3260"

_tda829x_probe.addr_dto_lsb:            ; @tda829x_probe.addr_dto_lsb
	.byte	7                               ; 0x7

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