	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bt856_s_std_output
_bt856_s_std_output:                    ## @bt856_s_std_output
	.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
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_to_bt856
	movq	%rax, %r15
	movq	_debug@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movslq	%r14d, %rbx
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r12, %rdx
	movq	%rbx, %r8
	callq	_v4l2_dbg
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	movl	$220, %esi
	movl	$2, %edx
	jmp	LBB0_2
LBB0_4:
	movq	_V4L2_STD_PAL@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movl	$220, %esi
	movl	$2, %edx
	movl	$1, %ecx
	callq	_bt856_setbit
	movq	%r15, %rdi
	movl	$218, %esi
	xorl	%edx, %edx
LBB0_2:
	xorl	%ecx, %ecx
	callq	_bt856_setbit
	movl	%r14d, (%r15)
	xorl	%ebx, %ebx
	cmpq	$0, (%r13)
	je	LBB0_7
## %bb.3:
	movq	%r15, %rdi
	callq	_bt856_dump
	jmp	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,8,3                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set norm %llx\n"

	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
	.comm	_V4L2_STD_PAL,4,2               ## @V4L2_STD_PAL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bt856_s_std_output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bt856_s_std_output
_bt856_s_std_output:                    ; @bt856_s_std_output
	.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	x19, x1
	mov	x21, x0
	bl	_to_bt856
	mov	x20, x0
Lloh0:
	adrp	x22, _debug@GOTPAGE
Lloh1:
	ldr	x22, [x22, _debug@GOTPAGEOFF]
	ldr	x1, [x22]
	sxtw	x4, w19
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_v4l2_dbg
Lloh4:
	adrp	x8, _V4L2_STD_NTSC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #220
	mov	w2, #2
	b	LBB0_4
LBB0_2:
Lloh7:
	adrp	x8, _V4L2_STD_PAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V4L2_STD_PAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_8
; %bb.3:
	mov	x0, x20
	mov	w1, #220
	mov	w2, #2
	mov	w3, #1
	bl	_bt856_setbit
	mov	x0, x20
	mov	w1, #218
	mov	w2, #0
LBB0_4:
	mov	w3, #0
	bl	_bt856_setbit
	str	w19, [x20]
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x20
	bl	_bt856_dump
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
LBB0_8:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,8,3                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set norm %llx\n"

	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
	.comm	_V4L2_STD_PAL,4,2               ; @V4L2_STD_PAL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bt856_s_std_output
.subsections_via_symbols
