	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxusb_medion_cf_refc_start_sch
_cxusb_medion_cf_refc_start_sch:        ## @cxusb_medion_cf_refc_start_sch
	.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
	movq	%rsi, %rbx
	movb	3(%rcx), %al
	movq	_CXUSB_BT656_SEAV_MASK@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	andb	%al, %cl
	movq	_CXUSB_BT656_SEAV_SAV@GOTPCREL(%rip), %rsi
	cmpb	(%rsi), %cl
	jne	LBB0_6
## %bb.1:
	movq	_CXUSB_BT656_FIELD_MASK@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	andb	%al, %cl
	movq	_CXUSB_BT656_FIELD_1@GOTPCREL(%rip), %r8
	xorl	%esi, %esi
	cmpb	(%r8), %cl
	sete	%sil
	cmpl	%edx, %esi
	jne	LBB0_6
## %bb.2:
	movq	_CXUSB_BT656_VBI_MASK@GOTPCREL(%rip), %rcx
	andb	(%rcx), %al
	movq	_CXUSB_BT656_VBI_ON@GOTPCREL(%rip), %rdx
	movq	_BT656@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	4(%rbx), %ecx
	cmpb	(%rdx), %al
	jne	LBB0_3
## %bb.4:
	leaq	L_.str.1(%rip), %rdx
	callq	_cxusb_vprintk
	movq	_VBI_SAMPLES@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str(%rip), %rdx
	callq	_cxusb_vprintk
	movq	$0, 8(%rbx)
	movq	_LINE_SAMPLES@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CXUSB_BT656_FIELD_MASK,1,0     ## @CXUSB_BT656_FIELD_MASK
	.comm	_CXUSB_BT656_FIELD_1,1,0        ## @CXUSB_BT656_FIELD_1
	.comm	_CXUSB_BT656_SEAV_MASK,1,0      ## @CXUSB_BT656_SEAV_MASK
	.comm	_CXUSB_BT656_SEAV_SAV,1,0       ## @CXUSB_BT656_SEAV_SAV
	.comm	_CXUSB_BT656_VBI_MASK,1,0       ## @CXUSB_BT656_VBI_MASK
	.comm	_CXUSB_BT656_VBI_ON,1,0         ## @CXUSB_BT656_VBI_ON
	.comm	_BT656,4,2                      ## @BT656
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"line start @ pos %u\n"

	.comm	_LINE_SAMPLES,4,2               ## @LINE_SAMPLES
L_.str.1:                               ## @.str.1
	.asciz	"VBI start @ pos %u\n"

	.comm	_VBI_SAMPLES,4,2                ## @VBI_SAMPLES
	.no_dead_strip	_cxusb_medion_cf_refc_start_sch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxusb_medion_cf_refc_start_sch
_cxusb_medion_cf_refc_start_sch:        ; @cxusb_medion_cf_refc_start_sch
	.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
	ldrb	w8, [x3, #3]
Lloh0:
	adrp	x9, _CXUSB_BT656_SEAV_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CXUSB_BT656_SEAV_MASK@GOTPAGEOFF]
	ldrb	w9, [x9]
	and	w9, w9, w8
Lloh2:
	adrp	x10, _CXUSB_BT656_SEAV_SAV@GOTPAGE
Lloh3:
	ldr	x10, [x10, _CXUSB_BT656_SEAV_SAV@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_6
; %bb.1:
Lloh4:
	adrp	x9, _CXUSB_BT656_FIELD_MASK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _CXUSB_BT656_FIELD_MASK@GOTPAGEOFF]
	ldrb	w9, [x9]
	and	w9, w9, w8
Lloh6:
	adrp	x10, _CXUSB_BT656_FIELD_1@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CXUSB_BT656_FIELD_1@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	w9, w10
	cset	w9, eq
	cmp	w9, w2
	b.ne	LBB0_6
; %bb.2:
	mov	x19, x1
Lloh8:
	adrp	x9, _CXUSB_BT656_VBI_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CXUSB_BT656_VBI_MASK@GOTPAGEOFF]
	ldrb	w9, [x9]
	and	w8, w9, w8
Lloh10:
	adrp	x9, _CXUSB_BT656_VBI_ON@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CXUSB_BT656_VBI_ON@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh12:
	adrp	x10, _BT656@GOTPAGE
Lloh13:
	ldr	x10, [x10, _BT656@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x10]
	ldr	w3, [x19, #4]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_cxusb_vprintk
Lloh17:
	adrp	x8, _VBI_SAMPLES@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VBI_SAMPLES@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
	bl	_cxusb_vprintk
	str	xzr, [x19, #8]
Lloh21:
	adrp	x8, _LINE_SAMPLES@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LINE_SAMPLES@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_CXUSB_BT656_FIELD_MASK,1,0     ; @CXUSB_BT656_FIELD_MASK
	.comm	_CXUSB_BT656_FIELD_1,1,0        ; @CXUSB_BT656_FIELD_1
	.comm	_CXUSB_BT656_SEAV_MASK,1,0      ; @CXUSB_BT656_SEAV_MASK
	.comm	_CXUSB_BT656_SEAV_SAV,1,0       ; @CXUSB_BT656_SEAV_SAV
	.comm	_CXUSB_BT656_VBI_MASK,1,0       ; @CXUSB_BT656_VBI_MASK
	.comm	_CXUSB_BT656_VBI_ON,1,0         ; @CXUSB_BT656_VBI_ON
	.comm	_BT656,4,2                      ; @BT656
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"line start @ pos %u\n"

	.comm	_LINE_SAMPLES,4,2               ; @LINE_SAMPLES
l_.str.1:                               ; @.str.1
	.asciz	"VBI start @ pos %u\n"

	.comm	_VBI_SAMPLES,4,2                ; @VBI_SAMPLES
	.no_dead_strip	_cxusb_medion_cf_refc_start_sch
.subsections_via_symbols
