	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda9874a_checkit
_tda9874a_checkit:                      ## @tda9874a_checkit
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_TDA9874A_DIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_chip_read2
	xorl	%r15d, %r15d
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movl	%eax, %ebx
	movq	_TDA9874A_SIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_chip_read2
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movq	_debug@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	callq	_v4l2_dbg
	cmpl	$17, %ebx
	je	LBB0_4
## %bb.3:
	cmpl	$7, %ebx
	jne	LBB0_5
LBB0_4:
	cmpl	$17, %ebx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_v4l2_info
	movq	_tda9874a_dic@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movl	$1, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TDA9874A_DIC,4,2               ## @TDA9874A_DIC
	.comm	_TDA9874A_SIC,4,2               ## @TDA9874A_SIC
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tda9874a_checkit(): DIC=0x%X, SIC=0x%X.\n"

L_.str.1:                               ## @.str.1
	.asciz	"found tda9874%s.\n"

L_.str.2:                               ## @.str.2
	.asciz	"a"

L_.str.3:                               ## @.str.3
	.asciz	"h"

	.comm	_tda9874a_dic,4,2               ## @tda9874a_dic
	.no_dead_strip	_tda9874a_checkit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda9874a_checkit
_tda9874a_checkit:                      ; @tda9874a_checkit
	.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, _TDA9874A_DIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TDA9874A_DIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_chip_read2
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _TDA9874A_SIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TDA9874A_SIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_chip_read2
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	x5, x0
Lloh6:
	adrp	x8, _debug@GOTPAGE
Lloh7:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	mov	x4, x20
	bl	_v4l2_dbg
	cmp	w20, #17
	ccmp	w20, #7, #4, ne
	b.ne	LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, l_.str.3@PAGE
Lloh12:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh13:
	adrp	x9, l_.str.2@PAGE
Lloh14:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w20, #17
	csel	x2, x9, x8, eq
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_v4l2_info
Lloh17:
	adrp	x8, _tda9874a_dic@GOTPAGE
Lloh18:
	ldr	x8, [x8, _tda9874a_dic@GOTPAGEOFF]
Lloh19:
	str	w20, [x8]
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TDA9874A_DIC,4,2               ; @TDA9874A_DIC
	.comm	_TDA9874A_SIC,4,2               ; @TDA9874A_SIC
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tda9874a_checkit(): DIC=0x%X, SIC=0x%X.\n"

l_.str.1:                               ; @.str.1
	.asciz	"found tda9874%s.\n"

l_.str.2:                               ; @.str.2
	.asciz	"a"

l_.str.3:                               ; @.str.3
	.asciz	"h"

	.comm	_tda9874a_dic,4,2               ; @tda9874a_dic
	.no_dead_strip	_tda9874a_checkit
.subsections_via_symbols
