	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_fmt
_check_fmt:                             ## @check_fmt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	callq	_video_devdata
	movq	16(%rax), %r10
	testq	%r10, %r10
	je	LBB0_47
## %bb.1:
	addl	$-128, %ebx
	cmpl	$13, %ebx
	ja	LBB0_47
## %bb.2:
	movq	(%rax), %rdi
	movq	8(%rax), %r8
	movq	_VFL_TYPE_GRABBER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_VFL_TYPE_VBI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_VFL_TYPE_SDR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_VFL_DIR_TX@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r9
	movq	_VFL_DIR_RX@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r11
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rbx,4), %rbx
	addq	%rsi, %rbx
	jmpq	*%rbx
LBB0_10:
	cmpq	%rax, %rdi
	jne	LBB0_47
## %bb.11:
	cmpq	%r9, %r8
	je	LBB0_47
## %bb.12:
	xorl	%eax, %eax
	cmpl	$0, 44(%r10)
	jne	LBB0_48
	jmp	LBB0_47
LBB0_20:
	cmpq	%rax, %rdi
	jne	LBB0_47
## %bb.21:
	cmpq	%r11, %r8
	je	LBB0_47
## %bb.22:
	xorl	%eax, %eax
	cmpl	$0, 32(%r10)
	jne	LBB0_48
	jmp	LBB0_47
LBB0_17:
	cmpq	%rax, %rdi
	jne	LBB0_47
## %bb.18:
	cmpq	%r11, %r8
	je	LBB0_47
## %bb.19:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_13:
	cmpq	%rax, %rdi
	jne	LBB0_47
## %bb.14:
	cmpq	%r11, %r8
	je	LBB0_47
## %bb.15:
	xorl	%eax, %eax
	cmpl	$0, 40(%r10)
	jne	LBB0_48
LBB0_16:
	cmpl	$0, 36(%r10)
	jne	LBB0_48
	jmp	LBB0_47
LBB0_7:
	cmpq	%rax, %rdi
	jne	LBB0_47
## %bb.8:
	cmpq	%r9, %r8
	je	LBB0_47
## %bb.9:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	_VFL_TYPE_TOUCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	sete	%cl
	cmpq	%rax, %rdi
	sete	%al
	orb	%cl, %al
	cmpb	$1, %al
	jne	LBB0_47
## %bb.4:
	cmpq	%r9, %r8
	je	LBB0_47
## %bb.5:
	xorl	%eax, %eax
	cmpl	$0, 52(%r10)
	jne	LBB0_48
LBB0_6:
	cmpl	$0, 48(%r10)
	jne	LBB0_48
	jmp	LBB0_47
LBB0_26:
	cmpq	%rdx, %rdi
	jne	LBB0_47
## %bb.27:
	cmpq	%r11, %r8
	je	LBB0_47
## %bb.28:
	xorl	%eax, %eax
	cmpl	$0, 24(%r10)
	jne	LBB0_48
	jmp	LBB0_47
LBB0_23:
	cmpq	%rdx, %rdi
	jne	LBB0_47
## %bb.24:
	cmpq	%r9, %r8
	je	LBB0_47
## %bb.25:
	xorl	%eax, %eax
	cmpl	$0, 28(%r10)
	jne	LBB0_48
	jmp	LBB0_47
LBB0_32:
	cmpq	%rdx, %rdi
	jne	LBB0_47
## %bb.33:
	cmpq	%r11, %r8
	je	LBB0_47
## %bb.34:
	xorl	%eax, %eax
	cmpl	$0, 16(%r10)
	jne	LBB0_48
	jmp	LBB0_47
LBB0_29:
	cmpq	%rdx, %rdi
	jne	LBB0_47
## %bb.30:
	cmpq	%r9, %r8
	je	LBB0_47
## %bb.31:
	xorl	%eax, %eax
	cmpl	$0, 20(%r10)
	jne	LBB0_48
	jmp	LBB0_47
LBB0_38:
	cmpq	%rcx, %rdi
	jne	LBB0_47
## %bb.39:
	cmpq	%r11, %r8
	je	LBB0_47
## %bb.40:
	xorl	%eax, %eax
	cmpl	$0, 8(%r10)
	jne	LBB0_48
	jmp	LBB0_47
LBB0_35:
	cmpq	%rcx, %rdi
	jne	LBB0_47
## %bb.36:
	cmpq	%r9, %r8
	je	LBB0_47
## %bb.37:
	xorl	%eax, %eax
	cmpl	$0, 12(%r10)
	jne	LBB0_48
	jmp	LBB0_47
LBB0_44:
	cmpq	%rax, %rdi
	jne	LBB0_47
## %bb.45:
	cmpq	%r11, %r8
	je	LBB0_47
## %bb.46:
	xorl	%eax, %eax
	cmpl	$0, (%r10)
	jne	LBB0_48
	jmp	LBB0_47
LBB0_41:
	cmpq	%rax, %rdi
	jne	LBB0_47
## %bb.42:
	cmpq	%r9, %r8
	je	LBB0_47
## %bb.43:
	xorl	%eax, %eax
	cmpl	$0, 4(%r10)
	jne	LBB0_48
LBB0_47:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_48:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_38, LBB0_38-LJTI0_0
.set L0_0_set_35, LBB0_35-LJTI0_0
.set L0_0_set_44, LBB0_44-LJTI0_0
.set L0_0_set_41, LBB0_41-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_20
	.long	L0_0_set_17
	.long	L0_0_set_13
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_26
	.long	L0_0_set_23
	.long	L0_0_set_32
	.long	L0_0_set_29
	.long	L0_0_set_38
	.long	L0_0_set_35
	.long	L0_0_set_44
	.long	L0_0_set_41
	.end_data_region
                                        ## -- End function
	.comm	_VFL_TYPE_GRABBER,8,3           ## @VFL_TYPE_GRABBER
	.comm	_VFL_TYPE_VBI,8,3               ## @VFL_TYPE_VBI
	.comm	_VFL_TYPE_SDR,8,3               ## @VFL_TYPE_SDR
	.comm	_VFL_TYPE_TOUCH,8,3             ## @VFL_TYPE_TOUCH
	.comm	_VFL_DIR_TX,8,3                 ## @VFL_DIR_TX
	.comm	_VFL_DIR_RX,8,3                 ## @VFL_DIR_RX
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_check_fmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_fmt
_check_fmt:                             ; @check_fmt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_video_devdata
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_32
; %bb.1:
	sub	w14, w19, #128
	cmp	w14, #13
	b.hi	LBB0_32
; %bb.2:
Lloh0:
	adrp	x9, _VFL_TYPE_GRABBER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VFL_TYPE_GRABBER@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x9]
Lloh3:
	adrp	x9, _VFL_TYPE_VBI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VFL_TYPE_VBI@GOTPAGEOFF]
Lloh5:
	ldr	x15, [x9]
Lloh6:
	adrp	x9, _VFL_TYPE_SDR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VFL_TYPE_SDR@GOTPAGEOFF]
Lloh8:
	ldr	x16, [x9]
	ldp	x10, x9, [x0]
Lloh9:
	adrp	x12, _VFL_DIR_TX@GOTPAGE
Lloh10:
	ldr	x12, [x12, _VFL_DIR_TX@GOTPAGEOFF]
Lloh11:
	ldr	x12, [x12]
Lloh12:
	adrp	x13, _VFL_DIR_RX@GOTPAGE
Lloh13:
	ldr	x13, [x13, _VFL_DIR_RX@GOTPAGEOFF]
Lloh14:
	ldr	x13, [x13]
Lloh15:
	adrp	x17, lJTI0_0@PAGE
Lloh16:
	add	x17, x17, lJTI0_0@PAGEOFF
	adr	x0, LBB0_3
	ldrb	w1, [x17, x14]
	add	x0, x0, x1, lsl #2
	br	x0
LBB0_3:
	cmp	x10, x11
	ccmp	x9, x12, #4, eq
	b.eq	LBB0_32
; %bb.4:
	ldr	w8, [x8, #44]
	cbnz	w8, LBB0_31
	b	LBB0_32
LBB0_5:
	cmp	x10, x11
	ccmp	x9, x13, #4, eq
	b.eq	LBB0_32
; %bb.6:
	ldr	w8, [x8, #32]
	cbnz	w8, LBB0_31
	b	LBB0_32
LBB0_7:
	cmp	x10, x11
	ccmp	x9, x13, #4, eq
	b.eq	LBB0_32
	b	LBB0_10
LBB0_8:
	cmp	x10, x11
	ccmp	x9, x13, #4, eq
	b.eq	LBB0_32
; %bb.9:
	ldr	w9, [x8, #40]
	cbnz	w9, LBB0_31
LBB0_10:
	ldr	w8, [x8, #36]
	cbnz	w8, LBB0_31
	b	LBB0_32
LBB0_11:
	cmp	x10, x11
	ccmp	x9, x12, #4, eq
	b.eq	LBB0_32
	b	LBB0_14
LBB0_12:
Lloh17:
	adrp	x13, _VFL_TYPE_TOUCH@GOTPAGE
Lloh18:
	ldr	x13, [x13, _VFL_TYPE_TOUCH@GOTPAGEOFF]
Lloh19:
	ldr	x13, [x13]
	cmp	x10, x13
	ccmp	x10, x11, #4, ne
	ccmp	x9, x12, #4, eq
	b.eq	LBB0_32
; %bb.13:
	ldr	w9, [x8, #52]
	cbnz	w9, LBB0_31
LBB0_14:
	ldr	w8, [x8, #48]
	cbnz	w8, LBB0_31
	b	LBB0_32
LBB0_15:
	cmp	x10, x15
	ccmp	x9, x13, #4, eq
	b.eq	LBB0_32
; %bb.16:
	ldr	w8, [x8, #24]
	cbnz	w8, LBB0_31
	b	LBB0_32
LBB0_17:
	cmp	x10, x15
	ccmp	x9, x12, #4, eq
	b.eq	LBB0_32
; %bb.18:
	ldr	w8, [x8, #28]
	cbnz	w8, LBB0_31
	b	LBB0_32
LBB0_19:
	cmp	x10, x15
	ccmp	x9, x13, #4, eq
	b.eq	LBB0_32
; %bb.20:
	ldr	w8, [x8, #16]
	cbnz	w8, LBB0_31
	b	LBB0_32
LBB0_21:
	cmp	x10, x15
	ccmp	x9, x12, #4, eq
	b.eq	LBB0_32
; %bb.22:
	ldr	w8, [x8, #20]
	cbnz	w8, LBB0_31
	b	LBB0_32
LBB0_23:
	cmp	x10, x16
	ccmp	x9, x13, #4, eq
	b.eq	LBB0_32
; %bb.24:
	ldr	w8, [x8, #8]
	cbnz	w8, LBB0_31
	b	LBB0_32
LBB0_25:
	cmp	x10, x16
	ccmp	x9, x12, #4, eq
	b.eq	LBB0_32
; %bb.26:
	ldr	w8, [x8, #12]
	cbnz	w8, LBB0_31
	b	LBB0_32
LBB0_27:
	cmp	x10, x11
	ccmp	x9, x13, #4, eq
	b.eq	LBB0_32
; %bb.28:
	ldr	w8, [x8]
	cbnz	w8, LBB0_31
	b	LBB0_32
LBB0_29:
	cmp	x10, x11
	ccmp	x9, x12, #4, eq
	b.eq	LBB0_32
; %bb.30:
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_32
LBB0_31:
	mov	w0, #0
	b	LBB0_33
LBB0_32:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_33:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_17-LBB0_3)>>2
	.byte	(LBB0_19-LBB0_3)>>2
	.byte	(LBB0_21-LBB0_3)>>2
	.byte	(LBB0_23-LBB0_3)>>2
	.byte	(LBB0_25-LBB0_3)>>2
	.byte	(LBB0_27-LBB0_3)>>2
	.byte	(LBB0_29-LBB0_3)>>2
                                        ; -- End function
	.comm	_VFL_TYPE_GRABBER,8,3           ; @VFL_TYPE_GRABBER
	.comm	_VFL_TYPE_VBI,8,3               ; @VFL_TYPE_VBI
	.comm	_VFL_TYPE_SDR,8,3               ; @VFL_TYPE_SDR
	.comm	_VFL_TYPE_TOUCH,8,3             ; @VFL_TYPE_TOUCH
	.comm	_VFL_DIR_TX,8,3                 ; @VFL_DIR_TX
	.comm	_VFL_DIR_RX,8,3                 ; @VFL_DIR_RX
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_check_fmt
.subsections_via_symbols
