	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bt819_status
_bt819_status:                          ## @bt819_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_to_bt819
	xorl	%r12d, %r12d
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_bt819_read
	testb	$-128, %al
	jne	LBB0_2
## %bb.1:
	movq	_V4L2_IN_ST_NO_SIGNAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
LBB0_2:
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.3:
	movq	%rbx, %rcx
	testb	$-128, %al
	jne	LBB0_5
## %bb.4:
	movq	_V4L2_STD_UNKNOWN@GOTPCREL(%rip), %rcx
LBB0_5:
	testb	$16, %al
	jne	LBB0_6
## %bb.7:
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rdx
	jmp	LBB0_8
LBB0_6:
	movq	_V4L2_STD_PAL@GOTPCREL(%rip), %rdx
LBB0_8:
	movl	(%rdx), %edx
	andl	(%rcx), %edx
	movl	%edx, (%rbx)
LBB0_9:
	testq	%r14, %r14
	je	LBB0_11
## %bb.10:
	movl	%r12d, (%r14)
LBB0_11:
	movq	_debug@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r15, %rdx
	movl	%eax, %r8d
	callq	_v4l2_dbg
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	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	_V4L2_STD_UNKNOWN,4,2           ## @V4L2_STD_UNKNOWN
	.comm	_V4L2_STD_PAL,4,2               ## @V4L2_STD_PAL
	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get status %x\n"

	.no_dead_strip	_bt819_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bt819_status
_bt819_status:                          ; @bt819_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	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_to_bt819
	mov	w1, #0
	bl	_bt819_read
	mov	x4, x0
Lloh0:
	adrp	x8, _V4L2_IN_ST_NO_SIGNAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_IN_ST_NO_SIGNAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w0, #0x80
	csel	w8, w8, wzr, eq
	cbz	x21, LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _V4L2_STD_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_STD_UNKNOWN@GOTPAGEOFF]
	tst	w4, #0x80
	csel	x9, x9, x21, eq
Lloh5:
	adrp	x10, _V4L2_STD_NTSC@GOTPAGE
Lloh6:
	ldr	x10, [x10, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh7:
	adrp	x11, _V4L2_STD_PAL@GOTPAGE
Lloh8:
	ldr	x11, [x11, _V4L2_STD_PAL@GOTPAGEOFF]
	ldr	w9, [x9]
	tst	w4, #0x10
	csel	x10, x10, x11, eq
	ldr	w10, [x10]
	and	w9, w10, w9
	str	w9, [x21]
LBB0_2:
	cbz	x20, LBB0_4
; %bb.3:
	str	w8, [x20]
LBB0_4:
Lloh9:
	adrp	x8, _debug@GOTPAGE
Lloh10:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_v4l2_dbg
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.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	_V4L2_STD_UNKNOWN,4,2           ; @V4L2_STD_UNKNOWN
	.comm	_V4L2_STD_PAL,4,2               ; @V4L2_STD_PAL
	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get status %x\n"

	.no_dead_strip	_bt819_status
.subsections_via_symbols
