	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vivid_fillbuff
_vivid_fillbuff:                        ## @vivid_fillbuff
	.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
	subq	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rdi
	callq	_V4L2_FIELD_HAS_T_OR_B
	testq	%rax, %rax
	sete	-184(%rbp)                      ## 1-byte Folded Spill
	movq	%r15, %rdi
	callq	_vivid_is_sdtv_cap
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	8(%r15), %rax
	movq	16(%r15), %rcx
	movq	_V4L2_STD_525_60@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	setne	%r14b
	jmp	LBB0_3
LBB0_1:
	xorl	%r14d, %r14d
LBB0_3:
	movq	_TPG_MAX_PLANES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$4, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -176(%rbp)                ## 8-byte Spill
	movb	$1, %al
	movl	%eax, -168(%rbp)                ## 4-byte Spill
	cmpq	$0, 272(%r15)
	je	LBB0_10
## %bb.4:
	cmpq	$0, 264(%r15)
	je	LBB0_10
## %bb.5:
	movq	%r15, %rdi
	callq	_vivid_is_svid_cap
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	16(%r15), %rax
	movq	256(%r15), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_VIVID_INVALID_SIGNAL
	testl	%eax, %eax
	je	LBB0_9
LBB0_7:
	movq	%r15, %rdi
	callq	_vivid_is_hdmi_cap
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	16(%r15), %rax
	movq	248(%r15), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_VIVID_INVALID_SIGNAL
	testl	%eax, %eax
	jne	LBB0_10
LBB0_9:
	movl	$0, -168(%rbp)                  ## 4-byte Folded Spill
LBB0_10:
	leaq	280(%r15), %r12
	movl	24(%r15), %edx
	movl	%edx, (%r13)
	movq	(%r15), %rax
	movq	_V4L2_FIELD_ALTERNATE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rsi
	cmpq	%rcx, %rax
	jne	LBB0_15
## %bb.11:
	testb	$1, %dl
	sete	%bl
	xorb	%bl, %r14b
	je	LBB0_12
## %bb.13:
	movq	_V4L2_FIELD_TOP@GOTPCREL(%rip), %rsi
	jmp	LBB0_14
LBB0_12:
	movq	_V4L2_FIELD_BOTTOM@GOTPCREL(%rip), %rsi
LBB0_14:
	movq	(%rsi), %rsi
	movl	%edx, %edi
	shrl	$31, %edi
	addl	%edx, %edi
	sarl	%edi
	movl	%edi, (%r13)
LBB0_15:
	xorl	%edx, %edx
	cmpq	%rcx, %rax
	sete	%dl
	movq	%rsi, 8(%r13)
	movq	%r12, %rdi
	callq	_tpg_s_field
	movq	32(%r15), %rax
	movq	16(%r13), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r12, %rdi
	callq	_tpg_s_perc_fill_blank
	movq	%r15, %rdi
	callq	_vivid_precalc_copy_rects
	movq	%r12, %rdi
	callq	_tpg_g_planes
	testl	%eax, %eax
	je	LBB0_24
## %bb.16:
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r15, %rdi
	callq	_vivid_get_std_cap
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	movq	%r14, %rcx
	callq	_tpg_fill_plane_buffer
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%rbx
	movq	%r12, %rdi
	callq	_tpg_g_planes
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jae	LBB0_24
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	280(%r15), %r8d
	movl	284(%r15), %ecx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_plane_vaddr
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_tpg_g_buffers
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jae	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	240(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	testl	%edx, %edx
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	movzbl	%dl, %esi
	movq	%r14, %rdi
	callq	_memset
	movq	240(%r15), %rax
	movq	(%rax), %rax
	movslq	(%rax,%rbx,4), %rax
	addq	%rax, %r14
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	%r12, %rdi
	movq	-176(%rbp), %rsi                ## 8-byte Reload
	movl	%ebx, %edx
	movq	%r14, %rcx
	callq	_tpg_calc_text_basep
	cmpb	$0, -168(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	movq	%r13, %rcx
	callq	_vivid_copy_buffer
	testq	%rax, %rax
	jne	LBB0_22
	jmp	LBB0_23
LBB0_24:
	movq	32(%r15), %rax
	movq	16(%r13), %rcx
	movl	$0, (%rax,%rcx,4)
	movq	(%r15), %rax
	movq	_V4L2_FIELD_ALTERNATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.25:
	testb	$1, 24(%r15)
	jne	LBB0_27
LBB0_26:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	subq	232(%r15), %rdi
	callq	_jiffies_to_msecs
	movl	%eax, 40(%r15)
LBB0_27:
	cmpl	$1, 44(%r15)
	jg	LBB0_41
## %bb.28:
	xorl	%eax, %eax
	movb	-184(%rbp), %cl                 ## 1-byte Reload
	movb	%cl, %al
	leal	8(,%rax,8), %r14d
	movl	40(%r15), %ebx
	movl	$2501999793, %eax               ## imm = 0x95217CB1
	imulq	%rbx, %rax
	shrq	$53, %rax
	imull	$43691, %eax, %ecx              ## imm = 0xAAAB
	shrl	$17, %ecx
	andl	$-8, %ecx
	leal	(%rcx,%rcx,2), %ecx
	subl	%ecx, %eax
	movzwl	%ax, %ecx
	imulq	$1172812403, %rbx, %r8          ## imm = 0x45E7B273
	shrq	$46, %r8
	movl	$2290649225, %eax               ## imm = 0x88888889
	movq	%r8, %rdx
	imulq	%rax, %rdx
	shrq	$37, %rdx
	imull	$60, %edx, %edx
	subl	%edx, %r8d
	imulq	$274877907, %rbx, %r9           ## imm = 0x10624DD3
	shrq	$38, %r9
	imulq	%r9, %rax
	shrq	$37, %rax
	imull	$60, %eax, %eax
	imull	$1000, %r9d, %edx               ## imm = 0x3E8
	subl	%eax, %r9d
	subl	%edx, %ebx
	movl	(%r13), %r10d
	movq	(%r15), %rax
	movq	_V4L2_FIELD_ALTERNATE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_29
## %bb.30:
	movq	8(%r13), %rax
	movq	_V4L2_FIELD_TOP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r11
	cmoveq	%rax, %r11
	jmp	LBB0_31
LBB0_29:
	leaq	L_.str.3(%rip), %r11
LBB0_31:
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdx
	leaq	-160(%rbp), %r13
	movq	%r13, %rdi
	movl	$100, %esi
                                        ## kill: def $r8d killed $r8d killed $r8
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	pushq	%r11
	pushq	%r10
	pushq	%rbx
	callq	_snprintf
	addq	$32, %rsp
	movq	%r12, %rdi
	movq	-176(%rbp), %rsi                ## 8-byte Reload
	movl	%r14d, %edx
	movl	$16, %ecx
	movq	%r13, %r8
	callq	_tpg_gen_text
	cmpl	$0, 44(%r15)
	je	LBB0_32
LBB0_41:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_43
## %bb.42:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_32:
	movl	220(%r15), %ecx
	movl	224(%r15), %r8d
	movq	16(%r15), %r9
	leaq	L_.str.4(%rip), %rdx
	leaq	-160(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$100, %esi
	xorl	%eax, %eax
	callq	_snprintf
	leal	(%r14,%r14), %edx
	movq	%rdx, -184(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	movq	-176(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	$16, %ecx
	movq	%rbx, %r8
	callq	_tpg_gen_text
	movl	216(%r15), %edi
	callq	_v4l2_ctrl_g_ctrl
	movl	%eax, -188(%rbp)                ## 4-byte Spill
	movl	160(%r15), %edi
	callq	_mutex_lock
	movq	208(%r15), %rax
	movl	(%rax), %ecx
	movq	200(%r15), %rax
	movl	(%rax), %r8d
	movq	184(%r15), %rax
	movq	192(%r15), %rdx
	movl	(%rdx), %r9d
	movl	(%rax), %ebx
	subq	$8, %rsp
	leaq	L_.str.5(%rip), %rdx
	leaq	-160(%rbp), %rdi
	movl	$100, %esi
	xorl	%eax, %eax
	pushq	%rbx
	callq	_snprintf
	addq	$16, %rsp
	leal	(%r14,%r14,2), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$16, %ecx
	leaq	-160(%rbp), %r8
	callq	_tpg_gen_text
	movq	168(%r15), %rax
	movq	176(%r15), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %r9d
	leaq	L_.str.6(%rip), %rdx
	leaq	-160(%rbp), %rdi
	movq	%rdi, %rbx
	movl	$100, %esi
	movl	-188(%rbp), %r8d                ## 4-byte Reload
	xorl	%eax, %eax
	callq	_snprintf
	movl	160(%r15), %edi
	callq	_mutex_unlock
	leal	(,%r14,4), %edx
	movq	%r14, -168(%rbp)                ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$16, %ecx
	movq	%rbx, %r8
	callq	_tpg_gen_text
	movl	136(%r15), %edi
	callq	_mutex_lock
	movq	144(%r15), %rax
	movq	152(%r15), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %r8d
	leaq	L_.str.7(%rip), %rdx
	movq	%rbx, %rdi
	movl	$100, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movl	136(%r15), %edi
	callq	_mutex_unlock
	leal	(%r14,%r14,4), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$16, %ecx
	movq	%rbx, %r8
	callq	_tpg_gen_text
	movl	72(%r15), %edi
	callq	_mutex_lock
	movq	112(%r15), %rax
	movq	120(%r15), %rdx
	movl	(%rax), %ecx
	movq	128(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %r8d
	movl	(%rdx), %r9d
	leaq	L_.str.8(%rip), %rdx
	movq	%rbx, %rdi
	movl	$100, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movq	-184(%rbp), %rax                ## 8-byte Reload
	leal	(%rax,%rax,2), %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$16, %ecx
	movq	%rbx, %r8
	callq	_tpg_gen_text
	movq	104(%r15), %rax
	movl	(%rax), %ecx
	movq	88(%r15), %rax
	movq	96(%r15), %rdx
	movq	(%rdx), %rsi
	movq	8(%rdx), %rdx
	movq	(%rsi,%rdx,8), %r8
	movq	(%rax), %r9
	leaq	L_.str.9(%rip), %rdx
	movq	%rbx, %rdi
	movq	%rbx, %r14
	movl	$100, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movq	-168(%rbp), %rax                ## 8-byte Reload
	leal	(,%rax,8), %ebx
	movl	%ebx, %edx
	subl	%eax, %edx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$16, %ecx
	movq	%r14, %r8
	callq	_tpg_gen_text
	movq	80(%r15), %rax
	movq	(%rax), %r8
	movq	8(%rax), %rax
	movl	(%rax,%r8,4), %ecx
	leaq	L_.str.10(%rip), %rdx
	movq	%r14, %rdi
	movl	$100, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movl	72(%r15), %edi
	callq	_mutex_unlock
	movq	%r12, %rdi
	movq	%r13, %r14
	movq	%r13, %rsi
	movl	%ebx, %edx
	movl	$16, %ecx
	leaq	-160(%rbp), %r8
	callq	_tpg_gen_text
	movq	64(%r15), %rax
	testq	%rax, %rax
	je	LBB0_33
## %bb.34:
	decq	%rax
	movq	%rax, 64(%r15)
	leaq	L_.str.11(%rip), %rdx
	leaq	-160(%rbp), %r13
	movq	%r13, %rdi
	movl	$100, %esi
	xorl	%eax, %eax
	callq	_snprintf
	movq	-168(%rbp), %rax                ## 8-byte Reload
	movq	%rax, %rbx
	leal	(%rax,%rax,8), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	$16, %ecx
	movq	%r13, %r8
	callq	_tpg_gen_text
	movl	$10, %r13d
	jmp	LBB0_35
LBB0_33:
	movq	-168(%rbp), %rbx                ## 8-byte Reload
	movl	$9, %r13d
LBB0_35:
	movq	48(%r15), %rax
	cmpb	$0, (%rax)
	je	LBB0_41
## %bb.36:
	movq	%rbx, %r14
	movq	%r15, %rdi
	callq	_vivid_is_hdmi_cap
	testq	%rax, %rax
	je	LBB0_38
## %bb.37:
	movq	48(%r15), %rcx
	leaq	L_.str.12(%rip), %rdx
	leaq	-160(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$100, %esi
	xorl	%eax, %eax
	callq	_snprintf
	imull	%r14d, %r13d
	movq	%r12, %rdi
	movq	-176(%rbp), %rsi                ## 8-byte Reload
	movl	%r13d, %edx
	movl	$16, %ecx
	movq	%rbx, %r8
	callq	_tpg_gen_text
LBB0_38:
	movq	56(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_41
## %bb.39:
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%rax,%rax,4), %rax
	addq	%rax, %rdi
	callq	_time_is_before_jiffies
	testq	%rax, %rax
	je	LBB0_41
## %bb.40:
	movq	48(%r15), %rax
	movb	$0, (%rax)
	movq	$0, 56(%r15)
	jmp	LBB0_41
LBB0_43:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_STD_525_60,4,2            ## @V4L2_STD_525_60
	.comm	_TPG_MAX_PLANES,4,2             ## @TPG_MAX_PLANES
	.comm	_V4L2_FIELD_ALTERNATE,8,3       ## @V4L2_FIELD_ALTERNATE
	.comm	_V4L2_FIELD_BOTTOM,8,3          ## @V4L2_FIELD_BOTTOM
	.comm	_V4L2_FIELD_TOP,8,3             ## @V4L2_FIELD_TOP
	.comm	_jiffies,8,3                    ## @jiffies
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" %02d:%02d:%02d:%03d %u%s"

L_.str.1:                               ## @.str.1
	.asciz	" top"

L_.str.2:                               ## @.str.2
	.asciz	" bottom"

L_.str.3:                               ## @.str.3
	.space	1

L_.str.4:                               ## @.str.4
	.asciz	" %dx%d, input %d "

L_.str.5:                               ## @.str.5
	.asciz	" brightness %3d, contrast %3d, saturation %3d, hue %d "

L_.str.6:                               ## @.str.6
	.asciz	" autogain %d, gain %3d, alpha 0x%02x "

L_.str.7:                               ## @.str.7
	.asciz	" volume %3d, mute %d "

L_.str.8:                               ## @.str.8
	.asciz	" int32 %d, int64 %lld, bitmask %08x "

L_.str.9:                               ## @.str.9
	.asciz	" boolean %d, menu %s, string \"%s\" "

L_.str.10:                              ## @.str.10
	.asciz	" integer_menu %lld, value %d "

L_.str.11:                              ## @.str.11
	.asciz	" button pressed!"

L_.str.12:                              ## @.str.12
	.asciz	" OSD \"%s\""

	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	_vivid_fillbuff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vivid_fillbuff
_vivid_fillbuff:                        ; @vivid_fillbuff
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #112
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x0, [x0]
	bl	_V4L2_FIELD_HAS_T_OR_B
	cmp	x0, #0
	mov	w8, #8
	mov	w9, #16
	csel	w20, w9, w8, eq
	mov	x0, x19
	bl	_vivid_is_sdtv_cap
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x8, x9, [x19, #8]
	ldr	w8, [x8, x9, lsl #2]
Lloh3:
	adrp	x9, _V4L2_STD_525_60@GOTPAGE
Lloh4:
	ldr	x9, [x9, _V4L2_STD_525_60@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w24, ne
	b	LBB0_3
LBB0_2:
	mov	w24, #0
LBB0_3:
	add	x21, x19, #280
Lloh6:
	adrp	x8, _TPG_MAX_PLANES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TPG_MAX_PLANES@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	x8, x8, #4
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x22, x9, x8
	mov	sp, x22
	ldr	x8, [x19, #272]
	cbz	x8, LBB0_9
; %bb.4:
	ldr	x8, [x19, #264]
	cbz	x8, LBB0_9
; %bb.5:
	mov	x0, x19
	bl	_vivid_is_svid_cap
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x19, #256]
	ldr	x9, [x19, #16]
	ldr	w0, [x8, x9, lsl #2]
	bl	_VIVID_INVALID_SIGNAL
	cbz	w0, LBB0_33
LBB0_7:
	mov	x0, x19
	bl	_vivid_is_hdmi_cap
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x19, #248]
	ldr	x9, [x19, #16]
	ldr	w0, [x8, x9, lsl #2]
	bl	_VIVID_INVALID_SIGNAL
	cbz	w0, LBB0_33
LBB0_9:
	mov	w27, #1
LBB0_10:
	ldr	w10, [x19, #24]
	str	w10, [x23]
	ldr	x8, [x19]
Lloh11:
	adrp	x26, _V4L2_FIELD_ALTERNATE@GOTPAGE
Lloh12:
	ldr	x26, [x26, _V4L2_FIELD_ALTERNATE@GOTPAGEOFF]
	ldr	x9, [x26]
	mov	x1, x8
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	tst	w10, #0x1
	cset	w11, eq
	eor	w11, w24, w11
Lloh13:
	adrp	x12, _V4L2_FIELD_BOTTOM@GOTPAGE
Lloh14:
	ldr	x12, [x12, _V4L2_FIELD_BOTTOM@GOTPAGEOFF]
Lloh15:
	adrp	x13, _V4L2_FIELD_TOP@GOTPAGE
Lloh16:
	ldr	x13, [x13, _V4L2_FIELD_TOP@GOTPAGEOFF]
	cmp	w11, #0
	csel	x11, x13, x12, ne
	ldr	x1, [x11]
	cmp	w10, #0
	cinc	w10, w10, lt
	asr	w10, w10, #1
	str	w10, [x23]
LBB0_12:
	cmp	x8, x9
	cset	w2, eq
	str	x1, [x23, #8]
	mov	x0, x21
	bl	_tpg_s_field
	ldr	x8, [x19, #32]
	ldr	x9, [x23, #16]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x21
	bl	_tpg_s_perc_fill_blank
	mov	x0, x19
	bl	_vivid_precalc_copy_rects
	mov	x0, x21
	bl	_tpg_g_planes
	cbz	w0, LBB0_21
; %bb.13:
	mov	x24, #0
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x19
	bl	_vivid_get_std_cap
	mov	x1, x0
	mov	x0, x21
	mov	x2, x24
	mov	x3, x25
	bl	_tpg_fill_plane_buffer
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x24, x24, #1
	mov	x0, x21
	bl	_tpg_g_planes
	cmp	x24, w0, uxtw
	b.hs	LBB0_21
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x19, #284]
	ldr	w4, [x19, #280]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	bl	_plane_vaddr
	mov	x25, x0
	mov	x0, x21
	bl	_tpg_g_buffers
	cmp	x24, w0, uxtw
	b.hs	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	x8, [x19, #240]
	ldr	x8, [x8]
	ldr	w2, [x8, x24, lsl #2]
	cbz	w2, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	and	w1, w2, #0xff
	mov	x0, x25
	bl	_memset
	ldr	x8, [x19, #240]
	ldr	x8, [x8]
	ldrsw	x8, [x8, x24, lsl #2]
	add	x25, x25, x8
LBB0_19:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x24
	mov	x3, x25
	bl	_tpg_calc_text_basep
	tbnz	w27, #0, LBB0_14
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	mov	x3, x23
	bl	_vivid_copy_buffer
	cbnz	x0, LBB0_14
	b	LBB0_15
LBB0_21:
	ldr	x8, [x19, #32]
	ldr	x9, [x23, #16]
	str	wzr, [x8, x9, lsl #2]
	ldr	x8, [x19]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.22:
	ldrb	w8, [x19, #24]
	tbnz	w8, #0, LBB0_24
LBB0_23:
Lloh17:
	adrp	x8, _jiffies@GOTPAGE
Lloh18:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x9, [x19, #232]
	sub	x0, x8, x9
	bl	_jiffies_to_msecs
	str	w0, [x19, #40]
LBB0_24:
	ldr	w8, [x19, #44]
	cmp	w8, #1
	b.gt	LBB0_29
; %bb.25:
	ldr	w11, [x19, #40]
	mov	w8, #31921
	movk	w8, #38177, lsl #16
	mul	x8, x11, x8
	lsr	x8, x8, #53
	mov	w9, #43691
	mul	w9, w8, w9
	lsr	w9, w9, #20
	mov	w10, #24
	msub	w8, w9, w10, w8
	and	w8, w8, #0xffff
	mov	w9, #45683
	movk	w9, #17895, lsl #16
	mul	x9, x11, x9
	lsr	x9, x9, #46
	mov	w10, #34953
	movk	w10, #34952, lsl #16
	mul	x12, x9, x10
	lsr	x12, x12, #37
	mov	w13, #60
	msub	w9, w12, w13, w9
	mov	w12, #19923
	movk	w12, #4194, lsl #16
	umull	x12, w11, w12
	lsr	x12, x12, #38
	mul	x10, x12, x10
	lsr	x10, x10, #37
	msub	w10, w10, w13, w12
	mov	w13, #1000
	msub	w11, w12, w13, w11
	ldr	w12, [x23]
	ldr	x13, [x19]
	ldr	x14, [x26]
	cmp	x13, x14
	b.ne	LBB0_27
; %bb.26:
	ldr	x13, [x23, #8]
Lloh20:
	adrp	x14, _V4L2_FIELD_TOP@GOTPAGE
Lloh21:
	ldr	x14, [x14, _V4L2_FIELD_TOP@GOTPAGEOFF]
Lloh22:
	ldr	x14, [x14]
Lloh23:
	adrp	x15, l_.str.2@PAGE
Lloh24:
	add	x15, x15, l_.str.2@PAGEOFF
Lloh25:
	adrp	x16, l_.str.1@PAGE
Lloh26:
	add	x16, x16, l_.str.1@PAGEOFF
	cmp	x13, x14
	csel	x13, x16, x15, eq
	b	LBB0_28
LBB0_27:
Lloh27:
	adrp	x13, l_.str.3@PAGE
Lloh28:
	add	x13, x13, l_.str.3@PAGEOFF
LBB0_28:
	sub	sp, sp, #48
	stp	x12, x13, [sp, #32]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh29:
	adrp	x2, l_.str@PAGE
Lloh30:
	add	x2, x2, l_.str@PAGEOFF
	sub	x0, x29, #188
	mov	w1, #100
	bl	_snprintf
	add	sp, sp, #48
	sub	x4, x29, #188
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	w3, #16
	bl	_tpg_gen_text
	ldr	w8, [x19, #44]
	cbz	w8, LBB0_31
LBB0_29:
	ldur	x8, [x29, #-88]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_41
; %bb.30:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_31:
	ldr	x8, [x19, #16]
	ldp	w9, w10, [x19, #220]
	sub	sp, sp, #32
	stp	x10, x8, [sp, #8]
	str	x9, [sp]
Lloh34:
	adrp	x2, l_.str.4@PAGE
Lloh35:
	add	x2, x2, l_.str.4@PAGEOFF
	sub	x0, x29, #188
	mov	w1, #100
	bl	_snprintf
	add	sp, sp, #32
	lsl	w23, w20, #1
	sub	x4, x29, #188
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	w3, #16
	bl	_tpg_gen_text
	ldr	w0, [x19, #216]
	bl	_v4l2_ctrl_g_ctrl
	mov	x24, x0
	ldr	w0, [x19, #160]
	bl	_mutex_lock
	ldp	x9, x8, [x19, #200]
	ldp	x11, x10, [x19, #184]
	ldr	w8, [x8]
	ldr	w9, [x9]
	ldr	w10, [x10]
	ldr	w11, [x11]
	sub	sp, sp, #32
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh36:
	adrp	x2, l_.str.5@PAGE
Lloh37:
	add	x2, x2, l_.str.5@PAGEOFF
	sub	x0, x29, #188
	mov	w1, #100
	bl	_snprintf
	add	sp, sp, #32
	add	w23, w23, w20
	sub	x4, x29, #188
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	w3, #16
	bl	_tpg_gen_text
	ldp	x9, x8, [x19, #168]
	ldr	w8, [x8]
	ldr	w9, [x9]
	sub	sp, sp, #32
	stp	x24, x9, [sp, #8]
	str	x8, [sp]
Lloh38:
	adrp	x2, l_.str.6@PAGE
Lloh39:
	add	x2, x2, l_.str.6@PAGEOFF
	sub	x0, x29, #188
	mov	w1, #100
	bl	_snprintf
	add	sp, sp, #32
	ldr	w0, [x19, #160]
	bl	_mutex_unlock
	lsl	w24, w20, #2
	sub	x4, x29, #188
	mov	x0, x21
	mov	x1, x22
	mov	x2, x24
	mov	w3, #16
	bl	_tpg_gen_text
	ldr	w0, [x19, #136]
	bl	_mutex_lock
	ldp	x9, x8, [x19, #144]
	ldr	w8, [x8]
	ldr	w9, [x9]
	stp	x8, x9, [sp, #-16]!
Lloh40:
	adrp	x2, l_.str.7@PAGE
Lloh41:
	add	x2, x2, l_.str.7@PAGEOFF
	sub	x0, x29, #188
	mov	w1, #100
	bl	_snprintf
	add	sp, sp, #16
	ldr	w0, [x19, #136]
	bl	_mutex_unlock
	add	w2, w24, w20
	sub	x4, x29, #188
	mov	x0, x21
	mov	x1, x22
	mov	w3, #16
	bl	_tpg_gen_text
	ldr	w0, [x19, #72]
	bl	_mutex_lock
	ldp	x10, x8, [x19, #120]
	ldr	x8, [x8]
	ldr	x9, [x19, #112]
	ldr	w9, [x9]
	ldr	w8, [x8]
	ldr	w10, [x10]
	sub	sp, sp, #32
	stp	x8, x10, [sp, #8]
	str	x9, [sp]
Lloh42:
	adrp	x2, l_.str.8@PAGE
Lloh43:
	add	x2, x2, l_.str.8@PAGEOFF
	sub	x0, x29, #188
	mov	w1, #100
	bl	_snprintf
	add	sp, sp, #32
	lsl	w2, w23, #1
	sub	x4, x29, #188
	mov	x0, x21
	mov	x1, x22
	mov	w3, #16
	bl	_tpg_gen_text
	ldp	x9, x8, [x19, #96]
	ldr	x10, [x19, #88]
	ldp	x11, x9, [x9]
	ldr	x9, [x11, x9, lsl #3]
	ldr	x10, [x10]
	ldr	w8, [x8]
	sub	sp, sp, #32
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh44:
	adrp	x2, l_.str.9@PAGE
Lloh45:
	add	x2, x2, l_.str.9@PAGEOFF
	sub	x0, x29, #188
	mov	w1, #100
	bl	_snprintf
	add	sp, sp, #32
	lsl	w23, w20, #3
	sub	w2, w23, w20
	sub	x4, x29, #188
	mov	x0, x21
	mov	x1, x22
	mov	w3, #16
	bl	_tpg_gen_text
	ldr	x8, [x19, #80]
	ldp	x8, x9, [x8]
	ldr	w9, [x9, x8, lsl #2]
	stp	x9, x8, [sp, #-16]!
Lloh46:
	adrp	x2, l_.str.10@PAGE
Lloh47:
	add	x2, x2, l_.str.10@PAGEOFF
	sub	x0, x29, #188
	mov	w1, #100
	bl	_snprintf
	add	sp, sp, #16
	ldr	w0, [x19, #72]
	bl	_mutex_unlock
	sub	x4, x29, #188
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	w3, #16
	bl	_tpg_gen_text
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_34
; %bb.32:
	sub	x8, x8, #1
	str	x8, [x19, #64]
Lloh48:
	adrp	x2, l_.str.11@PAGE
Lloh49:
	add	x2, x2, l_.str.11@PAGEOFF
	sub	x0, x29, #188
	mov	w1, #100
	bl	_snprintf
	add	w2, w20, w20, lsl #3
	sub	x4, x29, #188
	mov	x0, x21
	mov	x1, x22
	mov	w3, #16
	bl	_tpg_gen_text
	mov	w23, #10
	b	LBB0_35
LBB0_33:
	mov	w27, #0
	b	LBB0_10
LBB0_34:
	mov	w23, #9
LBB0_35:
	ldr	x8, [x19, #48]
	ldrb	w8, [x8]
	cbz	w8, LBB0_29
; %bb.36:
	mov	x0, x19
	bl	_vivid_is_hdmi_cap
	cbz	x0, LBB0_38
; %bb.37:
	ldr	x8, [x19, #48]
	str	x8, [sp, #-16]!
Lloh50:
	adrp	x2, l_.str.12@PAGE
Lloh51:
	add	x2, x2, l_.str.12@PAGEOFF
	sub	x0, x29, #188
	mov	w1, #100
	bl	_snprintf
	add	sp, sp, #16
	mul	w2, w23, w20
	sub	x4, x29, #188
	mov	x0, x21
	mov	x1, x22
	mov	w3, #16
	bl	_tpg_gen_text
LBB0_38:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_29
; %bb.39:
Lloh52:
	adrp	x9, _HZ@GOTPAGE
Lloh53:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh54:
	ldrsw	x9, [x9]
	add	x9, x9, x9, lsl #2
	add	x0, x8, x9
	bl	_time_is_before_jiffies
	cbz	x0, LBB0_29
; %bb.40:
	ldr	x8, [x19, #48]
	strb	wzr, [x8]
	str	xzr, [x19, #56]
	b	LBB0_29
LBB0_41:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_STD_525_60,4,2            ; @V4L2_STD_525_60
	.comm	_TPG_MAX_PLANES,4,2             ; @TPG_MAX_PLANES
	.comm	_V4L2_FIELD_ALTERNATE,8,3       ; @V4L2_FIELD_ALTERNATE
	.comm	_V4L2_FIELD_BOTTOM,8,3          ; @V4L2_FIELD_BOTTOM
	.comm	_V4L2_FIELD_TOP,8,3             ; @V4L2_FIELD_TOP
	.comm	_jiffies,8,3                    ; @jiffies
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" %02d:%02d:%02d:%03d %u%s"

l_.str.1:                               ; @.str.1
	.asciz	" top"

l_.str.2:                               ; @.str.2
	.asciz	" bottom"

l_.str.3:                               ; @.str.3
	.space	1

l_.str.4:                               ; @.str.4
	.asciz	" %dx%d, input %d "

l_.str.5:                               ; @.str.5
	.asciz	" brightness %3d, contrast %3d, saturation %3d, hue %d "

l_.str.6:                               ; @.str.6
	.asciz	" autogain %d, gain %3d, alpha 0x%02x "

l_.str.7:                               ; @.str.7
	.asciz	" volume %3d, mute %d "

l_.str.8:                               ; @.str.8
	.asciz	" int32 %d, int64 %lld, bitmask %08x "

l_.str.9:                               ; @.str.9
	.asciz	" boolean %d, menu %s, string \"%s\" "

l_.str.10:                              ; @.str.10
	.asciz	" integer_menu %lld, value %d "

l_.str.11:                              ; @.str.11
	.asciz	" button pressed!"

l_.str.12:                              ; @.str.12
	.asciz	" OSD \"%s\""

	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	_vivid_fillbuff
.subsections_via_symbols
