	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks0127_status
_ks0127_status:                         ## @ks0127_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	%rdx, %rbx
	movq	%rsi, %r14
	movq	_V4L2_IN_ST_NO_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_KS_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ks0127_read
	xorl	%ecx, %ecx
	testb	$1, %al
	jne	LBB0_2
## %bb.1:
	movq	_V4L2_IN_ST_NO_COLOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.3:
	testb	$8, %al
	jne	LBB0_4
## %bb.5:
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rdx
	jmp	LBB0_6
LBB0_4:
	movq	_V4L2_STD_PAL@GOTPCREL(%rip), %rdx
LBB0_6:
	movl	(%rdx), %edx
	movl	%edx, (%rbx)
LBB0_7:
	testq	%r14, %r14
	je	LBB0_9
## %bb.8:
	shll	$26, %eax
	sarl	$31, %eax
	andl	%r15d, %eax
	orl	%ecx, %eax
	movl	%eax, (%r14)
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_IN_ST_NO_SIGNAL,4,2       ## @V4L2_IN_ST_NO_SIGNAL
	.comm	_V4L2_STD_ALL,4,2               ## @V4L2_STD_ALL
	.comm	_KS_STAT,4,2                    ## @KS_STAT
	.comm	_V4L2_IN_ST_NO_COLOR,4,2        ## @V4L2_IN_ST_NO_COLOR
	.comm	_V4L2_STD_PAL,4,2               ## @V4L2_STD_PAL
	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
	.no_dead_strip	_ks0127_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks0127_status
_ks0127_status:                         ; @ks0127_status
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x19, x1
Lloh0:
	adrp	x8, _V4L2_IN_ST_NO_SIGNAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_IN_ST_NO_SIGNAL@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _KS_STAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _KS_STAT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ks0127_read
Lloh6:
	adrp	x8, _V4L2_IN_ST_NO_COLOR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_IN_ST_NO_COLOR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w0, #0x1
	csel	w8, w8, wzr, eq
	cbz	x20, LBB0_2
; %bb.1:
Lloh9:
	adrp	x9, _V4L2_STD_NTSC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh11:
	adrp	x10, _V4L2_STD_PAL@GOTPAGE
Lloh12:
	ldr	x10, [x10, _V4L2_STD_PAL@GOTPAGEOFF]
	tst	w0, #0x8
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	str	w9, [x20]
LBB0_2:
	cbz	x19, LBB0_4
; %bb.3:
	lsl	w9, w0, #26
	and	w9, w21, w9, asr #31
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_IN_ST_NO_SIGNAL,4,2       ; @V4L2_IN_ST_NO_SIGNAL
	.comm	_V4L2_STD_ALL,4,2               ; @V4L2_STD_ALL
	.comm	_KS_STAT,4,2                    ; @KS_STAT
	.comm	_V4L2_IN_ST_NO_COLOR,4,2        ; @V4L2_IN_ST_NO_COLOR
	.comm	_V4L2_STD_PAL,4,2               ; @V4L2_STD_PAL
	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
	.no_dead_strip	_ks0127_status
.subsections_via_symbols
