	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda1997x_g_input_status
_tda1997x_g_input_status:               ## @tda1997x_g_input_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_to_state
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	_REG_V_PER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_io_read24
	movl	%eax, %r12d
	movq	_MASK_VPER@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movq	_REG_H_PER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_io_read16
	movl	%eax, %r13d
	movq	_MASK_HPER@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	movq	_REG_HS_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_io_read16
	movl	%eax, %r14d
	movq	_MASK_HSWIDTH@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	_debug@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%r15), %rax
	movl	(%rax), %r8d
	movl	4(%rax), %r9d
	subq	$8, %rsp
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%rbx, %rdx
	pushq	%r14
	pushq	%r13
	pushq	%r12
	callq	_v4l2_dbg
	addq	$32, %rsp
	movq	8(%r15), %rax
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.1:
	cmpl	$0, 4(%rax)
	je	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	movq	_V4L2_IN_ST_NO_SYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmovel	%ecx, %eax
	testl	%r13d, %r13d
	cmovel	%ecx, %eax
	testl	%r12d, %r12d
	cmovel	%ecx, %eax
LBB0_4:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r15, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_V4L2_IN_ST_NO_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_V_PER,4,2                  ## @REG_V_PER
	.comm	_MASK_VPER,4,2                  ## @MASK_VPER
	.comm	_REG_H_PER,4,2                  ## @REG_H_PER
	.comm	_MASK_HPER,4,2                  ## @MASK_HPER
	.comm	_REG_HS_WIDTH,4,2               ## @REG_HS_WIDTH
	.comm	_MASK_HSWIDTH,4,2               ## @MASK_HSWIDTH
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"inputs:%d/%d timings:%d/%d/%d\n"

	.comm	_V4L2_IN_ST_NO_SIGNAL,4,2       ## @V4L2_IN_ST_NO_SIGNAL
	.comm	_V4L2_IN_ST_NO_SYNC,4,2         ## @V4L2_IN_ST_NO_SYNC
	.no_dead_strip	_tda1997x_g_input_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda1997x_g_input_status
_tda1997x_g_input_status:               ; @tda1997x_g_input_status
	.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
	mov	x23, x0
	bl	_to_state
	mov	x20, x0
	bl	_mutex_lock
Lloh0:
	adrp	x8, _REG_V_PER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_V_PER@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_io_read24
Lloh3:
	adrp	x8, _MASK_VPER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MASK_VPER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w21, w8, w0
Lloh6:
	adrp	x8, _REG_H_PER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_H_PER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_io_read16
Lloh9:
	adrp	x8, _MASK_HPER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MASK_HPER@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	and	w22, w8, w0
Lloh12:
	adrp	x8, _REG_HS_WIDTH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REG_HS_WIDTH@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_io_read16
Lloh15:
	adrp	x8, _MASK_HSWIDTH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MASK_HSWIDTH@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w24, w8, w0
Lloh18:
	adrp	x8, _debug@GOTPAGE
Lloh19:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	x8, [x20, #8]
	ldp	w4, w5, [x8]
	str	w24, [sp]
Lloh21:
	adrp	x3, l_.str@PAGE
Lloh22:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x23
	mov	x6, x21
	mov	x7, x22
	bl	_v4l2_dbg
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
	cbnz	w9, LBB0_2
; %bb.1:
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_4
LBB0_2:
	cmp	w24, #0
	ccmp	w22, #0, #4, ne
	ccmp	w21, #0, #4, ne
Lloh23:
	adrp	x8, _V4L2_IN_ST_NO_SYNC@GOTPAGE
Lloh24:
	ldr	x8, [x8, _V4L2_IN_ST_NO_SYNC@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	csel	w8, wzr, w8, ne
LBB0_3:
	str	w8, [x19]
	mov	x0, x20
	bl	_mutex_unlock
	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_4:
Lloh26:
	adrp	x8, _V4L2_IN_ST_NO_SIGNAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _V4L2_IN_ST_NO_SIGNAL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	b	LBB0_3
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_V_PER,4,2                  ; @REG_V_PER
	.comm	_MASK_VPER,4,2                  ; @MASK_VPER
	.comm	_REG_H_PER,4,2                  ; @REG_H_PER
	.comm	_MASK_HPER,4,2                  ; @MASK_HPER
	.comm	_REG_HS_WIDTH,4,2               ; @REG_HS_WIDTH
	.comm	_MASK_HSWIDTH,4,2               ; @MASK_HSWIDTH
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"inputs:%d/%d timings:%d/%d/%d\n"

	.comm	_V4L2_IN_ST_NO_SIGNAL,4,2       ; @V4L2_IN_ST_NO_SIGNAL
	.comm	_V4L2_IN_ST_NO_SYNC,4,2         ; @V4L2_IN_ST_NO_SYNC
	.no_dead_strip	_tda1997x_g_input_status
.subsections_via_symbols
