	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tuner_tda18212_ping
_tuner_tda18212_ping:                   ## @tuner_tda18212_ping
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movq	16(%rax), %r12
	movq	(%rax), %rcx
	movq	8(%rax), %rbx
	movl	(%rdi), %r13d
	andl	$1, %r13d
	movq	(%rcx), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	(%rbx,%r13,8), %rdi
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$1, %esi
	callq	*%rax
LBB0_2:
	movzwl	%r15w, %ebx
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	$8, %r8d
	callq	_i2c_read_regs
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
LBB0_4:
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	$8, %r8d
	callq	_i2c_read_regs
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
LBB0_6:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r13,8), %rdi
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	xorl	%esi, %esi
	callq	*%rax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stv0367-tda18212 tuner ping\n"

L_.str.1:                               ## @.str.1
	.asciz	"tda18212 ping 1 fail\n"

L_.str.2:                               ## @.str.2
	.asciz	"tda18212 ping failed, expect problems\n"

	.no_dead_strip	_tuner_tda18212_ping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tuner_tda18212_ping
_tuner_tda18212_ping:                   ; @tuner_tda18212_ping
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	x8, [x0, #8]
	ldp	x23, x21, [x8, #8]
	ldr	w9, [x0]
	and	x22, x9, #0x1
	ldr	x8, [x8]
	ldr	x20, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldr	x0, [x23, x22, lsl #3]
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w1, #1
	blr	x8
LBB0_2:
	mov	x3, sp
	mov	x0, x21
	mov	x1, x19
	mov	w2, #0
	mov	w4, #8
	bl	_i2c_read_regs
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
LBB0_4:
	mov	x3, sp
	mov	x0, x21
	mov	x1, x19
	mov	w2, #0
	mov	w4, #8
	bl	_i2c_read_regs
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_6:
	ldr	x0, [x23, x22, lsl #3]
	ldr	x8, [x0]
	cbz	x8, LBB0_8
; %bb.7:
	mov	w1, #0
	blr	x8
LBB0_8:
	ldr	x8, [sp, #8]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stv0367-tda18212 tuner ping\n"

l_.str.1:                               ; @.str.1
	.asciz	"tda18212 ping 1 fail\n"

l_.str.2:                               ; @.str.2
	.asciz	"tda18212 ping failed, expect problems\n"

	.no_dead_strip	_tuner_tda18212_ping
.subsections_via_symbols
