	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bt819_s_std
_bt819_s_std:                           ## @bt819_s_std
	.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, %r15
	callq	_to_bt819
	movq	%rax, %r13
	movq	_debug@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movslq	%r14d, %r12
	leaq	L_.str(%rip), %rcx
	movl	$1, %edi
	movq	%r15, %rdx
	movq	%r12, %r8
	callq	_v4l2_dbg
	movq	(%r15), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	$0, (%rax)
	jne	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_v4l2_err
LBB0_3:
	movq	_V4L2_STD_NTSC@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_BT819_FIFO_RESET_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_v4l2_subdev_notify
	movq	%r13, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_bt819_setbit
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_bt819_setbit
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$5, %edx
	xorl	%ecx, %ecx
	callq	_bt819_setbit
	movq	%r13, %rdi
	movl	$24, %esi
	movl	$104, %edx
	callq	_bt819_write
	movq	%r13, %rdi
	movl	$25, %esi
	movl	$93, %edx
	callq	_bt819_write
	movq	_timing_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	addq	$20, %rbx
	jmp	LBB0_7
LBB0_5:
	movq	_V4L2_STD_PAL@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_9
## %bb.6:
	movq	_BT819_FIFO_RESET_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_v4l2_subdev_notify
	movq	%r13, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_bt819_setbit
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_bt819_setbit
	movq	%r13, %rdi
	movl	$1, %esi
	movl	$5, %edx
	movl	$1, %ecx
	callq	_bt819_setbit
	movq	%r13, %rdi
	movl	$24, %esi
	movl	$127, %edx
	callq	_bt819_write
	movq	%r13, %rdi
	movl	$25, %esi
	movl	$114, %edx
	callq	_bt819_write
	movq	_timing_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_7:
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	shrl	$2, %eax
	andl	$192, %eax
	shrl	$4, %ecx
	andl	$48, %ecx
	orl	%eax, %ecx
	movl	8(%rbx), %eax
	shrl	$6, %eax
	andl	$12, %eax
	orl	%ecx, %eax
	movl	12(%rbx), %edx
	shrl	$8, %edx
	andl	$3, %edx
	orl	%eax, %edx
	movq	%r13, %rdi
	movl	$3, %esi
	callq	_bt819_write
	movzbl	(%rbx), %edx
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_bt819_write
	movzbl	4(%rbx), %edx
	movq	%r13, %rdi
	movl	$5, %esi
	callq	_bt819_write
	movzbl	8(%rbx), %edx
	movq	%r13, %rdi
	movl	$6, %esi
	callq	_bt819_write
	movzbl	12(%rbx), %edx
	movq	%r13, %rdi
	movl	$7, %esi
	callq	_bt819_write
	movzbl	17(%rbx), %edx
	movq	%r13, %rdi
	movl	$8, %esi
	callq	_bt819_write
	movzbl	16(%rbx), %edx
	movq	%r13, %rdi
	movl	$9, %esi
	callq	_bt819_write
	movl	%r14d, (%r13)
	movq	_BT819_FIFO_RESET_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_v4l2_subdev_notify
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	(%rbx), %esi
	leaq	L_.str.2(%rip), %rcx
	movl	$1, %edi
	movq	%r15, %rdx
	movq	%r12, %r8
	callq	_v4l2_dbg
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_debug,4,2                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set norm %llx\n"

L_.str.1:                               ## @.str.1
	.asciz	"no notify found!\n"

	.comm	_V4L2_STD_NTSC,4,2              ## @V4L2_STD_NTSC
	.comm	_BT819_FIFO_RESET_LOW,4,2       ## @BT819_FIFO_RESET_LOW
	.comm	_timing_data,8,3                ## @timing_data
	.comm	_V4L2_STD_PAL,4,2               ## @V4L2_STD_PAL
L_.str.2:                               ## @.str.2
	.asciz	"unsupported norm %llx\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BT819_FIFO_RESET_HIGH,4,2      ## @BT819_FIFO_RESET_HIGH
	.no_dead_strip	_bt819_s_std
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function bt819_s_std
lCPI0_0:
	.long	4294967294                      ; 0xfffffffe
	.long	4294967292                      ; 0xfffffffc
	.long	4294967290                      ; 0xfffffffa
	.long	4294967288                      ; 0xfffffff8
lCPI0_1:
	.long	192                             ; 0xc0
	.long	48                              ; 0x30
	.long	12                              ; 0xc
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_bt819_s_std:                           ; @bt819_s_std
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	bl	_to_bt819
	mov	x21, x0
Lloh0:
	adrp	x23, _debug@GOTPAGE
Lloh1:
	ldr	x23, [x23, _debug@GOTPAGEOFF]
	ldr	w1, [x23]
	sxtw	x22, w20
Lloh2:
	adrp	x3, l_.str@PAGE
Lloh3:
	add	x3, x3, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	mov	x4, x22
	bl	_v4l2_dbg
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8]
	cbnz	x8, LBB0_3
LBB0_2:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_v4l2_err
LBB0_3:
Lloh6:
	adrp	x8, _V4L2_STD_NTSC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _V4L2_STD_NTSC@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _BT819_FIFO_RESET_LOW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BT819_FIFO_RESET_LOW@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_v4l2_subdev_notify
	mov	x0, x21
	mov	w1, #1
	mov	w2, #0
	mov	w3, #1
	bl	_bt819_setbit
	mov	x0, x21
	mov	w1, #1
	mov	w2, #1
	mov	w3, #0
	bl	_bt819_setbit
	mov	x0, x21
	mov	w1, #1
	mov	w2, #5
	mov	w3, #0
	bl	_bt819_setbit
	mov	x0, x21
	mov	w1, #24
	mov	w2, #104
	bl	_bt819_write
	mov	x0, x21
	mov	w1, #25
	mov	w2, #93
	bl	_bt819_write
Lloh12:
	adrp	x8, _timing_data@GOTPAGE
Lloh13:
	ldr	x8, [x8, _timing_data@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x22, x8, #20
	b	LBB0_7
LBB0_5:
Lloh15:
	adrp	x8, _V4L2_STD_PAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _V4L2_STD_PAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.6:
Lloh18:
	adrp	x8, _BT819_FIFO_RESET_LOW@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BT819_FIFO_RESET_LOW@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_v4l2_subdev_notify
	mov	x0, x21
	mov	w1, #1
	mov	w2, #0
	mov	w3, #1
	bl	_bt819_setbit
	mov	x0, x21
	mov	w1, #1
	mov	w2, #1
	mov	w3, #1
	bl	_bt819_setbit
	mov	x0, x21
	mov	w1, #1
	mov	w2, #5
	mov	w3, #1
	bl	_bt819_setbit
	mov	x0, x21
	mov	w1, #24
	mov	w2, #127
	bl	_bt819_write
	mov	x0, x21
	mov	w1, #25
	mov	w2, #114
	bl	_bt819_write
Lloh21:
	adrp	x8, _timing_data@GOTPAGE
Lloh22:
	ldr	x8, [x8, _timing_data@GOTPAGEOFF]
Lloh23:
	ldr	x22, [x8]
LBB0_7:
	ldr	q0, [x22]
Lloh24:
	adrp	x8, lCPI0_0@PAGE
Lloh25:
	ldr	q1, [x8, lCPI0_0@PAGEOFF]
	ushl.4s	v0, v0, v1
Lloh26:
	adrp	x8, lCPI0_1@PAGE
Lloh27:
	ldr	q1, [x8, lCPI0_1@PAGEOFF]
	and.16b	v0, v0, v1
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	mov.s	w8, v0[1]
	fmov	w9, s0
	orr	w2, w9, w8
	mov	x0, x21
	mov	w1, #3
	bl	_bt819_write
	ldrb	w2, [x22]
	mov	x0, x21
	mov	w1, #4
	bl	_bt819_write
	ldrb	w2, [x22, #4]
	mov	x0, x21
	mov	w1, #5
	bl	_bt819_write
	ldrb	w2, [x22, #8]
	mov	x0, x21
	mov	w1, #6
	bl	_bt819_write
	ldrb	w2, [x22, #12]
	mov	x0, x21
	mov	w1, #7
	bl	_bt819_write
	ldrb	w2, [x22, #17]
	mov	x0, x21
	mov	w1, #8
	bl	_bt819_write
	ldrb	w2, [x22, #16]
	mov	x0, x21
	mov	w1, #9
	bl	_bt819_write
	str	w20, [x21]
Lloh28:
	adrp	x8, _BT819_FIFO_RESET_HIGH@GOTPAGE
Lloh29:
	ldr	x8, [x8, _BT819_FIFO_RESET_HIGH@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_v4l2_subdev_notify
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w1, [x23]
Lloh31:
	adrp	x3, l_.str.2@PAGE
Lloh32:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	mov	x4, x22
	bl	_v4l2_dbg
Lloh33:
	adrp	x8, _EINVAL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdr	Lloh26, Lloh27
	.loh AdrpAdrp	Lloh24, Lloh26
	.loh AdrpLdr	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_debug,4,2                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set norm %llx\n"

l_.str.1:                               ; @.str.1
	.asciz	"no notify found!\n"

	.comm	_V4L2_STD_NTSC,4,2              ; @V4L2_STD_NTSC
	.comm	_BT819_FIFO_RESET_LOW,4,2       ; @BT819_FIFO_RESET_LOW
	.comm	_timing_data,8,3                ; @timing_data
	.comm	_V4L2_STD_PAL,4,2               ; @V4L2_STD_PAL
l_.str.2:                               ; @.str.2
	.asciz	"unsupported norm %llx\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BT819_FIFO_RESET_HIGH,4,2      ; @BT819_FIFO_RESET_HIGH
	.no_dead_strip	_bt819_s_std
.subsections_via_symbols
