	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function _ivtvfb_check_var
LCPI0_0:
	.long	5                               ## 0x5
	.long	5                               ## 0x5
	.long	10                              ## 0xa
	.long	5                               ## 0x5
LCPI0_1:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	8                               ## 0x8
	.long	4                               ## 0x4
LCPI0_2:
	.long	5                               ## 0x5
	.long	6                               ## 0x6
	.long	11                              ## 0xb
	.long	5                               ## 0x5
LCPI0_3:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	16                              ## 0x10
	.long	8                               ## 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
__ivtvfb_check_var:                     ## @_ivtvfb_check_var
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	16(%rsi), %r14
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_IVTVFB_DEBUG_INFO
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	movl	$480, %eax                      ## imm = 0x1E0
	movl	$576, %r10d                     ## imm = 0x240
	cmovel	%eax, %r10d
	movl	$83926, %eax                    ## imm = 0x147D6
	movl	$84316, %edi                    ## imm = 0x1495C
	cmovel	%eax, %edi
	movl	$495, %eax                      ## imm = 0x1EF
	movl	$591, %r13d                     ## imm = 0x24F
	cmovel	%eax, %r13d
	movl	(%r12), %r9d
	cmpl	$32, %r9d
	je	LBB0_3
## %bb.1:
	cmpl	$16, %r9d
	je	LBB0_4
## %bb.2:
	cmpl	$8, %r9d
	jne	LBB0_8
LBB0_3:
	movabsq	$34359738392, %rax              ## imm = 0x800000018
	movq	%rax, 64(%r12)
	movaps	LCPI0_3(%rip), %xmm0            ## xmm0 = [8,8,16,8]
	movups	%xmm0, 88(%r12)
	movq	$0, 80(%r12)
	movl	$8, 72(%r12)
	jmp	LBB0_11
LBB0_4:
	movl	92(%r12), %eax
	cmpl	$5, %eax
	je	LBB0_9
## %bb.5:
	cmpl	$4, %eax
	jne	LBB0_7
## %bb.6:
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [4,4,8,4]
	movups	%xmm0, 88(%r12)
	movq	$0, 80(%r12)
	movl	$4, 72(%r12)
	movabsq	$4294967308, %rax               ## imm = 0x10000000C
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%r9d, %esi
LBB0_26:
	xorl	%eax, %eax
	callq	_IVTVFB_DEBUG_WARN
	jmp	LBB0_20
LBB0_9:
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [5,5,10,5]
	movups	%xmm0, 88(%r12)
	movq	$0, 80(%r12)
	movl	$5, 72(%r12)
	movabsq	$4294967311, %rax               ## imm = 0x10000000F
LBB0_10:
	movq	%rax, 64(%r12)
	jmp	LBB0_11
LBB0_7:
	movaps	LCPI0_2(%rip), %xmm0            ## xmm0 = [5,6,11,5]
	movups	%xmm0, 88(%r12)
	movq	$0, 80(%r12)
	movl	$5, 72(%r12)
	movq	$0, 64(%r12)
LBB0_11:
	movl	4(%r12), %esi
	movl	8(%r12), %edx
	movq	_IVTV_OSD_MAX_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %r8d
	subl	%esi, %r8d
	jl	LBB0_13
## %bb.12:
	subl	%edx, %r10d
	jl	LBB0_13
## %bb.14:
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	12(%r12), %r14d
	movl	16(%r12), %r11d
	movl	%r9d, %ecx
	shrl	$3, %ecx
	xorl	%r15d, %r15d
	movw	$4095, %ax                      ## imm = 0xFFF
	xorl	%edx, %edx
	divw	%cx
	movzwl	%ax, %eax
	cmpl	%eax, %r14d
	jg	LBB0_18
## %bb.15:
	imull	%r14d, %ecx
	imull	%r11d, %ecx
	cmpl	(%rdi), %ecx
	jg	LBB0_18
## %bb.16:
	cmpl	%esi, %r14d
	jl	LBB0_18
## %bb.17:
	cmpl	-64(%rbp), %r11d                ## 4-byte Folded Reload
	jl	LBB0_18
## %bb.21:
	cmpl	$16, %r9d
	je	LBB0_30
## %bb.22:
	cmpl	$8, %r9d
	jne	LBB0_34
## %bb.23:
	testb	$3, %sil
	je	LBB0_27
## %bb.24:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_25
LBB0_13:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r15d, %r15d
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_19
LBB0_18:
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	movl	%r11d, %edx
LBB0_19:
	xorl	%eax, %eax
	callq	_IVTVFB_DEBUG_WARN
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_48:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	testb	$1, %sil
	jne	LBB0_31
## %bb.32:
	testb	$1, %r14b
	je	LBB0_34
## %bb.33:
	leaq	L_.str.7(%rip), %rdi
	jmp	LBB0_29
LBB0_31:
	leaq	L_.str.6(%rip), %rdi
LBB0_25:
	xorl	%r15d, %r15d
                                        ## kill: def $esi killed $esi killed $rsi
	jmp	LBB0_26
LBB0_27:
	testb	$3, %r14b
	je	LBB0_34
## %bb.28:
	leaq	L_.str.5(%rip), %rdi
LBB0_29:
	xorl	%r15d, %r15d
	movl	%r14d, %esi
	jmp	LBB0_26
LBB0_34:
	movl	20(%r12), %eax
	movl	24(%r12), %ecx
	cmpl	%r14d, %eax
	jge	LBB0_36
## %bb.35:
	cmpl	%r11d, %ecx
	jge	LBB0_36
## %bb.37:
	movl	28(%r12), %eax
	cmpl	$2, %eax
	jl	LBB0_40
## %bb.38:
	leaq	L_.str.9(%rip), %rdi
	jmp	LBB0_39
LBB0_36:
	leaq	L_.str.8(%rip), %rdi
	xorl	%r15d, %r15d
	movl	%eax, %esi
	movl	%r14d, %edx
	movl	%r11d, %r8d
	xorl	%eax, %eax
	callq	_IVTVFB_DEBUG_WARN
	jmp	LBB0_20
LBB0_40:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	_FB_VMODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	32(%r12), %eax
	movq	_FB_VMODE_NONINTERLACED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	cmpl	%r15d, %eax
	je	LBB0_43
## %bb.41:
	movq	_FB_VMODE_INTERLACED@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_43
## %bb.42:
	leaq	L_.str.10(%rip), %rdi
LBB0_39:
	xorl	%r15d, %r15d
	movl	%eax, %esi
	jmp	LBB0_26
LBB0_43:
	movl	%r11d, -44(%rbp)                ## 4-byte Spill
	movl	36(%r12), %r11d
	leal	(%r11,%rsi), %ecx
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	incl	%edx
	cmpl	%edx, %ecx
	jle	LBB0_45
## %bb.44:
	movl	%r8d, %r11d
	shrl	$31, %r11d
	addl	%r8d, %r11d
	sarl	%r11d
	incl	%r11d
	movl	%r11d, 36(%r12)
LBB0_45:
	movl	40(%r12), %r8d
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	addl	%edx, %r8d
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	movl	$481, %r14d                     ## imm = 0x1E1
	movl	$577, %ecx                      ## imm = 0x241
	cmovel	%r14d, %ecx
	cmpl	%ecx, %r8d
	jle	LBB0_47
## %bb.46:
	movl	%r10d, %ecx
	shrl	$31, %ecx
	addl	%r10d, %ecx
	sarl	%ecx
	leal	1(%rcx), %edi
	movl	%edi, 40(%r12)
	leal	(%rdx,%rcx), %r8d
	incl	%r8d
LBB0_47:
	cmpl	%r15d, %eax
	sete	%cl
	addl	%esi, %r11d
	movl	$776, %eax                      ## imm = 0x308
	subl	%r11d, %eax
	movl	%eax, 44(%r12)
	subl	%r8d, %r13d
	movl	%r13d, 48(%r12)
	movabsq	$8589934616, %rax               ## imm = 0x200000018
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	shrl	%cl, %edi
	movq	%rax, 52(%r12)
	movl	%edi, 60(%r12)
	movl	%esi, (%rbx)
	movl	%edx, 4(%rbx)
	leaq	L_.str.11(%rip), %rdi
	xorl	%r15d, %r15d
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_IVTVFB_DEBUG_INFO
	movl	36(%r12), %esi
	movl	40(%r12), %edx
	leaq	L_.str.12(%rip), %rdi
	xorl	%eax, %eax
	callq	_IVTVFB_DEBUG_INFO
	movq	_FB_VMODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	32(%r12), %eax
	movq	_FB_VMODE_NONINTERLACED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	leaq	L_.str.14(%rip), %rax
	leaq	L_.str.15(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.13(%rip), %rdi
	xorl	%eax, %eax
	callq	_IVTVFB_DEBUG_INFO
	cmpl	$0, 28(%r12)
	leaq	L_.str.18(%rip), %rax
	leaq	L_.str.17(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str.16(%rip), %rdi
	xorl	%eax, %eax
	callq	_IVTVFB_DEBUG_INFO
	jmp	LBB0_48
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ivtvfb_check_var\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid colour mode: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IVTV_OSD_MAX_WIDTH,4,2         ## @IVTV_OSD_MAX_WIDTH
L_.str.2:                               ## @.str.2
	.asciz	"Invalid resolution: %dx%d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid virtual resolution: %dx%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Invalid resolution for 8bpp: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Invalid virtual resolution for 8bpp: %d)\n"

L_.str.6:                               ## @.str.6
	.asciz	"Invalid resolution for 16bpp: %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"Invalid virtual resolution for 16bpp: %d)\n"

L_.str.8:                               ## @.str.8
	.asciz	"Invalid offset: %d (%d) %d (%d)\n"

L_.str.9:                               ## @.str.9
	.asciz	"Invalid nonstd % d\n"

	.comm	_FB_VMODE_MASK,4,2              ## @FB_VMODE_MASK
	.comm	_FB_VMODE_NONINTERLACED,4,2     ## @FB_VMODE_NONINTERLACED
	.comm	_FB_VMODE_INTERLACED,4,2        ## @FB_VMODE_INTERLACED
L_.str.10:                              ## @.str.10
	.asciz	"Invalid video mode: %d\n"

L_.str.11:                              ## @.str.11
	.asciz	"Display size: %dx%d (virtual %dx%d) @ %dbpp\n"

L_.str.12:                              ## @.str.12
	.asciz	"Display position: %d, %d\n"

L_.str.13:                              ## @.str.13
	.asciz	"Display filter: %s\n"

L_.str.14:                              ## @.str.14
	.asciz	"on"

L_.str.15:                              ## @.str.15
	.asciz	"off"

L_.str.16:                              ## @.str.16
	.asciz	"Color space: %s\n"

L_.str.17:                              ## @.str.17
	.asciz	"YUV"

L_.str.18:                              ## @.str.18
	.asciz	"RGB"

	.no_dead_strip	__ivtvfb_check_var
.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 _ivtvfb_check_var
lCPI0_0:
	.long	5                               ; 0x5
	.long	5                               ; 0x5
	.long	10                              ; 0xa
	.long	5                               ; 0x5
lCPI0_2:
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	8                               ; 0x8
	.long	4                               ; 0x4
lCPI0_4:
	.long	5                               ; 0x5
	.long	6                               ; 0x6
	.long	11                              ; 0xb
	.long	5                               ; 0x5
lCPI0_6:
	.long	8                               ; 0x8
	.long	8                               ; 0x8
	.long	16                              ; 0x10
	.long	8                               ; 0x8
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_1:
	.long	15                              ; 0xf
	.long	1                               ; 0x1
lCPI0_3:
	.long	12                              ; 0xc
	.long	1                               ; 0x1
lCPI0_5:
	.long	24                              ; 0x18
	.long	8                               ; 0x8
lCPI0_7:
	.long	24                              ; 0x18
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
__ivtvfb_check_var:                     ; @_ivtvfb_check_var
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x1, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IVTVFB_DEBUG_INFO
	ldr	x14, [x20, #8]
	cmp	x14, #0
	mov	w8, #576
	mov	w9, #480
	csel	w13, w9, w8, eq
	mov	w8, #18390
	movk	w8, #1, lsl #16
	add	w9, w8, #390
	csel	w11, w8, w9, eq
	mov	w8, #591
	mov	w9, #495
	csel	w12, w9, w8, eq
	ldr	w1, [x19]
	cmp	w1, #32
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #16
	b.eq	LBB0_4
; %bb.2:
	cmp	w1, #8
	b.ne	LBB0_7
LBB0_3:
Lloh2:
	adrp	x8, lCPI0_5@PAGE
Lloh3:
	ldr	d0, [x8, lCPI0_5@PAGEOFF]
	str	d0, [x19, #64]
Lloh4:
	adrp	x8, lCPI0_6@PAGE
Lloh5:
	ldr	q0, [x8, lCPI0_6@PAGEOFF]
	stur	q0, [x19, #88]
	str	xzr, [x19, #80]
	mov	w8, #8
	str	w8, [x19, #72]
	b	LBB0_11
LBB0_4:
	ldr	w8, [x19, #92]
	cmp	w8, #5
	b.eq	LBB0_8
; %bb.5:
	cmp	w8, #4
	b.ne	LBB0_10
; %bb.6:
Lloh6:
	adrp	x8, lCPI0_2@PAGE
Lloh7:
	ldr	q0, [x8, lCPI0_2@PAGEOFF]
	stur	q0, [x19, #88]
	str	xzr, [x19, #80]
	mov	w8, #4
	str	w8, [x19, #72]
Lloh8:
	adrp	x8, lCPI0_3@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_3@PAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	b	LBB0_18
LBB0_8:
Lloh12:
	adrp	x8, lCPI0_0@PAGE
Lloh13:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x19, #88]
	str	xzr, [x19, #80]
	mov	w8, #5
	str	w8, [x19, #72]
Lloh14:
	adrp	x8, lCPI0_1@PAGE
Lloh15:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
LBB0_9:
	str	d0, [x19, #64]
	b	LBB0_11
LBB0_10:
Lloh16:
	adrp	x8, lCPI0_4@PAGE
Lloh17:
	ldr	q0, [x8, lCPI0_4@PAGEOFF]
	stur	q0, [x19, #88]
	str	xzr, [x19, #80]
	mov	w8, #5
	str	w8, [x19, #72]
	str	xzr, [x19, #64]
LBB0_11:
Lloh18:
	adrp	x8, _IVTV_OSD_MAX_WIDTH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IVTV_OSD_MAX_WIDTH@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldp	w8, w15, [x19, #4]
	subs	w17, w0, w8
	ccmp	w13, w15, #8, ge
	b.ge	LBB0_14
; %bb.12:
                                        ; kill: def $w15 killed $w15 killed $x15 def $x15
	str	x15, [sp]
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_13:
	mov	x1, x8
	b	LBB0_18
LBB0_14:
	ubfx	w9, w1, #3, #16
	mov	w10, #4095
	udiv	w10, w10, w9
	ldp	w9, w16, [x19, #12]
	cmp	w9, w10
	b.gt	LBB0_16
; %bb.15:
	lsr	w10, w1, #3
	mul	w10, w9, w10
	mul	w10, w10, w16
	ldr	w2, [x21]
	cmp	w10, w2
	ccmp	w9, w8, #8, le
	ccmp	w16, w15, #8, ge
	b.ge	LBB0_20
LBB0_16:
	str	x16, [sp]
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_17:
	mov	x1, x9
LBB0_18:
	bl	_IVTVFB_DEBUG_WARN
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_19:
	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
	add	sp, sp, #96
	ret
LBB0_20:
	cmp	w1, #16
	b.eq	LBB0_24
; %bb.21:
	cmp	w1, #8
	b.ne	LBB0_30
; %bb.22:
	tst	w8, #0x3
	b.eq	LBB0_28
; %bb.23:
Lloh28:
	adrp	x0, l_.str.4@PAGE
Lloh29:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_24:
	tbnz	w8, #0, LBB0_27
; %bb.25:
	tbz	w9, #0, LBB0_30
; %bb.26:
Lloh30:
	adrp	x0, l_.str.7@PAGE
Lloh31:
	add	x0, x0, l_.str.7@PAGEOFF
	b	LBB0_17
LBB0_27:
Lloh32:
	adrp	x0, l_.str.6@PAGE
Lloh33:
	add	x0, x0, l_.str.6@PAGEOFF
	b	LBB0_13
LBB0_28:
	tst	w9, #0x3
	b.eq	LBB0_30
; %bb.29:
Lloh34:
	adrp	x0, l_.str.5@PAGE
Lloh35:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_17
LBB0_30:
	ldp	w10, w2, [x19, #20]
	cmp	w10, w9
	b.ge	LBB0_34
; %bb.31:
	cmp	w2, w16
	b.ge	LBB0_34
; %bb.32:
	ldr	w10, [x19, #28]
	cmp	w10, #2
	b.lt	LBB0_35
; %bb.33:
Lloh36:
	adrp	x0, l_.str.9@PAGE
Lloh37:
	add	x0, x0, l_.str.9@PAGEOFF
	mov	x1, x10
	b	LBB0_18
LBB0_34:
                                        ; kill: def $w16 killed $w16 killed $x16 def $x16
	stp	x2, x16, [sp, #8]
	str	x9, [sp]
Lloh38:
	adrp	x0, l_.str.8@PAGE
Lloh39:
	add	x0, x0, l_.str.8@PAGEOFF
	mov	x1, x10
	b	LBB0_18
LBB0_35:
	ldr	w10, [x19, #32]
Lloh40:
	adrp	x21, _FB_VMODE_MASK@GOTPAGE
Lloh41:
	ldr	x21, [x21, _FB_VMODE_MASK@GOTPAGEOFF]
	ldr	w2, [x21]
	and	w10, w2, w10
Lloh42:
	adrp	x22, _FB_VMODE_NONINTERLACED@GOTPAGE
Lloh43:
	ldr	x22, [x22, _FB_VMODE_NONINTERLACED@GOTPAGEOFF]
	ldr	w2, [x22]
	cmp	w10, w2
	b.eq	LBB0_38
; %bb.36:
Lloh44:
	adrp	x3, _FB_VMODE_INTERLACED@GOTPAGE
Lloh45:
	ldr	x3, [x3, _FB_VMODE_INTERLACED@GOTPAGEOFF]
Lloh46:
	ldr	w3, [x3]
	cmp	w10, w3
	b.eq	LBB0_38
; %bb.37:
Lloh47:
	adrp	x0, l_.str.10@PAGE
Lloh48:
	add	x0, x0, l_.str.10@PAGEOFF
	mov	x1, x10
	b	LBB0_18
LBB0_38:
	ldr	w3, [x19, #36]
	add	w0, w0, #1
	add	w4, w3, w8
	cmp	w4, w0
	b.le	LBB0_40
; %bb.39:
	cmp	w17, #0
	cinc	w17, w17, lt
	asr	w17, w17, #1
	add	w3, w17, #1
	str	w3, [x19, #36]
LBB0_40:
	ldr	w17, [x19, #40]
	cmp	x14, #0
	mov	w14, #577
	mov	w0, #481
	csel	w0, w0, w14, eq
	add	w14, w17, w15
	cmp	w14, w0
	b.le	LBB0_42
; %bb.41:
	sub	w13, w13, w15
	cmp	w13, #0
	cinc	w13, w13, lt
	asr	w13, w13, #1
	add	w13, w13, #1
	str	w13, [x19, #40]
	add	w14, w15, w13
LBB0_42:
	cmp	w10, w2
	mov	w10, #776
	add	w13, w8, w3
	sub	w10, w10, w13
	sub	w12, w12, w14
	stp	w10, w12, [x19, #44]
Lloh49:
	adrp	x10, lCPI0_7@PAGE
Lloh50:
	ldr	d0, [x10, lCPI0_7@PAGEOFF]
	cset	w10, eq
	stur	d0, [x19, #52]
	lsr	w10, w11, w10
	str	w10, [x19, #60]
	stp	w8, w15, [x20]
                                        ; kill: def $w16 killed $w16 killed $x16 def $x16
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	stp	x16, x1, [sp, #24]
	stp	x15, x9, [sp, #8]
	str	x8, [sp]
Lloh51:
	adrp	x0, l_.str.11@PAGE
Lloh52:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_IVTVFB_DEBUG_INFO
	ldp	w8, w9, [x19, #36]
	stp	x8, x9, [sp]
Lloh53:
	adrp	x0, l_.str.12@PAGE
Lloh54:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_IVTVFB_DEBUG_INFO
	ldr	w8, [x19, #32]
	ldr	w9, [x21]
	and	w8, w9, w8
	ldr	w9, [x22]
Lloh55:
	adrp	x10, l_.str.15@PAGE
Lloh56:
	add	x10, x10, l_.str.15@PAGEOFF
Lloh57:
	adrp	x11, l_.str.14@PAGE
Lloh58:
	add	x11, x11, l_.str.14@PAGEOFF
	cmp	w8, w9
	csel	x8, x11, x10, eq
	str	x8, [sp]
Lloh59:
	adrp	x0, l_.str.13@PAGE
Lloh60:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_IVTVFB_DEBUG_INFO
	ldr	w8, [x19, #28]
Lloh61:
	adrp	x9, l_.str.17@PAGE
Lloh62:
	add	x9, x9, l_.str.17@PAGEOFF
Lloh63:
	adrp	x10, l_.str.18@PAGE
Lloh64:
	add	x10, x10, l_.str.18@PAGEOFF
	cmp	w8, #0
	csel	x8, x10, x9, eq
	str	x8, [sp]
Lloh65:
	adrp	x0, l_.str.16@PAGE
Lloh66:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_IVTVFB_DEBUG_INFO
	mov	w0, #0
	b	LBB0_19
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdr	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ivtvfb_check_var\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid colour mode: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IVTV_OSD_MAX_WIDTH,4,2         ; @IVTV_OSD_MAX_WIDTH
l_.str.2:                               ; @.str.2
	.asciz	"Invalid resolution: %dx%d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid virtual resolution: %dx%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Invalid resolution for 8bpp: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Invalid virtual resolution for 8bpp: %d)\n"

l_.str.6:                               ; @.str.6
	.asciz	"Invalid resolution for 16bpp: %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"Invalid virtual resolution for 16bpp: %d)\n"

l_.str.8:                               ; @.str.8
	.asciz	"Invalid offset: %d (%d) %d (%d)\n"

l_.str.9:                               ; @.str.9
	.asciz	"Invalid nonstd % d\n"

	.comm	_FB_VMODE_MASK,4,2              ; @FB_VMODE_MASK
	.comm	_FB_VMODE_NONINTERLACED,4,2     ; @FB_VMODE_NONINTERLACED
	.comm	_FB_VMODE_INTERLACED,4,2        ; @FB_VMODE_INTERLACED
l_.str.10:                              ; @.str.10
	.asciz	"Invalid video mode: %d\n"

l_.str.11:                              ; @.str.11
	.asciz	"Display size: %dx%d (virtual %dx%d) @ %dbpp\n"

l_.str.12:                              ; @.str.12
	.asciz	"Display position: %d, %d\n"

l_.str.13:                              ; @.str.13
	.asciz	"Display filter: %s\n"

l_.str.14:                              ; @.str.14
	.asciz	"on"

l_.str.15:                              ; @.str.15
	.asciz	"off"

l_.str.16:                              ; @.str.16
	.asciz	"Color space: %s\n"

l_.str.17:                              ; @.str.17
	.asciz	"YUV"

l_.str.18:                              ; @.str.18
	.asciz	"RGB"

	.no_dead_strip	__ivtvfb_check_var
.subsections_via_symbols
