	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7191_g_input_status
_saa7191_g_input_status:                ## @saa7191_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	_V4L2_IN_ST_NO_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	-20(%rbp), %rsi
	callq	_saa7191_read_status
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_2:
	movl	-20(%rbp), %edx
	movq	_SAA7191_STATUS_HLCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edx, %eax
	cmovel	%eax, %ebx
	movq	_SAA7191_STATUS_CODE@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	movl	$0, %ecx
	andl	(%rsi), %edx
	jne	LBB0_4
## %bb.3:
	movq	_V4L2_IN_ST_NO_COLOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_4:
	orl	%ebx, %ecx
	movl	%ecx, (%r14)
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_IN_ST_NO_SIGNAL,4,2       ## @V4L2_IN_ST_NO_SIGNAL
	.comm	_EIO,4,2                        ## @EIO
	.comm	_SAA7191_STATUS_HLCK,4,2        ## @SAA7191_STATUS_HLCK
	.comm	_SAA7191_STATUS_CODE,4,2        ## @SAA7191_STATUS_CODE
	.comm	_V4L2_IN_ST_NO_COLOR,4,2        ## @V4L2_IN_ST_NO_COLOR
	.no_dead_strip	_saa7191_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 saa7191_g_input_status
_saa7191_g_input_status:                ; @saa7191_g_input_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, x1
Lloh0:
	adrp	x8, _V4L2_IN_ST_NO_SIGNAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_IN_ST_NO_SIGNAL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	add	x1, sp, #12
	bl	_saa7191_read_status
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	ldr	w8, [sp, #12]
Lloh6:
	adrp	x9, _SAA7191_STATUS_HLCK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SAA7191_STATUS_HLCK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	csel	w9, wzr, w20, eq
Lloh9:
	adrp	x10, _SAA7191_STATUS_CODE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _SAA7191_STATUS_CODE@GOTPAGEOFF]
Lloh11:
	adrp	x11, _V4L2_IN_ST_NO_COLOR@GOTPAGE
Lloh12:
	ldr	x11, [x11, _V4L2_IN_ST_NO_COLOR@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
Lloh14:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w8, w11, wzr, eq
	orr	w8, w8, w9
	str	w8, [x19]
LBB0_3:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_IN_ST_NO_SIGNAL,4,2       ; @V4L2_IN_ST_NO_SIGNAL
	.comm	_EIO,4,2                        ; @EIO
	.comm	_SAA7191_STATUS_HLCK,4,2        ; @SAA7191_STATUS_HLCK
	.comm	_SAA7191_STATUS_CODE,4,2        ; @SAA7191_STATUS_CODE
	.comm	_V4L2_IN_ST_NO_COLOR,4,2        ; @V4L2_IN_ST_NO_COLOR
	.no_dead_strip	_saa7191_g_input_status
.subsections_via_symbols
