	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda9840_status
_tda9840_status:                        ## @tda9840_status
	.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
	callq	_v4l2_get_subdevdata
	leaq	-28(%rbp), %rsi
	movq	%rax, %rdi
	movl	$1, %edx
	callq	_i2c_master_recv
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.3:
	movl	-28(%rbp), %r8d
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testb	$-128, %r8b
	jne	LBB0_4
## %bb.5:
	leaq	L_.str.2(%rip), %rcx
	movl	$1, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_v4l2_dbg
	movl	-28(%rbp), %ebx
	andl	$96, %ebx
	jmp	LBB0_6
LBB0_1:
	movl	%eax, %ebx
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	xorl	%r15d, %r15d
	movl	$1, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_v4l2_dbg
	testl	%ebx, %ebx
	js	LBB0_6
## %bb.2:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movl	%r15d, %ebx
	jmp	LBB0_6
LBB0_4:
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
	movl	$1, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_v4l2_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c_master_recv() failed\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"TDA9840_DETECT: register contents invalid\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"TDA9840_DETECT: byte: 0x%02x\n"

	.no_dead_strip	_tda9840_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda9840_status
_tda9840_status:                        ; @tda9840_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_v4l2_get_subdevdata
	add	x1, sp, #12
	mov	w2, #1
	bl	_i2c_master_recv
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [sp, #12]
Lloh0:
	adrp	x9, _debug@GOTPAGE
Lloh1:
	ldr	x9, [x9, _debug@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	tbnz	w8, #7, LBB0_5
; %bb.2:
	str	x8, [sp]
Lloh3:
	adrp	x3, l_.str.2@PAGE
Lloh4:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	ldr	w8, [sp, #12]
	and	w20, w8, #0x60
	b	LBB0_7
LBB0_3:
	mov	x20, x0
Lloh5:
	adrp	x8, _debug@GOTPAGE
Lloh6:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x3, l_.str@PAGE
Lloh9:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	tbnz	w20, #31, LBB0_7
; %bb.4:
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x3, l_.str.1@PAGE
Lloh13:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c_master_recv() failed\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"TDA9840_DETECT: register contents invalid\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"TDA9840_DETECT: byte: 0x%02x\n"

	.no_dead_strip	_tda9840_status
.subsections_via_symbols
