	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx231xx_isoc_vbi_copy
_cx231xx_isoc_vbi_copy:                 ## @cx231xx_isoc_vbi_copy
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.1:
	movq	%rdi, %r12
	movq	_DEV_DISCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	jne	LBB0_17
## %bb.2:
	movq	%rsi, %r14
	movq	24(%rsi), %r13
	movl	16(%rsi), %edx
	testl	%edx, %edx
	jns	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movl	$-1, %esi
	callq	_print_err_status
	movl	16(%r14), %eax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_17
LBB0_4:
	movq	8(%r14), %r15
	movl	$1, %ebx
	testq	%r15, %r15
	jle	LBB0_17
## %bb.5:
	movq	(%r14), %rbx
	movq	$0, -48(%rbp)
	cmpq	$0, 8(%r13)
	je	LBB0_7
## %bb.6:
	movl	(%r13), %edx
	jmp	LBB0_8
LBB0_7:
	movl	4(%r13), %esi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_cx231xx_find_boundary_SAV_EAV
	movl	%eax, %edx
LBB0_8:
	movq	-48(%rbp), %rax
	andl	$240, %edx
	je	LBB0_10
## %bb.9:
	leaq	(%rbx,%rax), %rcx
	movq	%r15, %r8
	subq	%rax, %r8
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_cx231xx_get_vbi_line
	addq	-48(%rbp), %rax
	movq	%rax, -48(%rbp)
LBB0_10:
	movq	%r13, %rcx
	movq	$0, 8(%r13)
	cmpq	%rax, %r15
	jle	LBB0_16
## %bb.11:
	leaq	-56(%rbp), %r14
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	cmpq	%rax, %r15
	jle	LBB0_16
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, -56(%rbp)
	leaq	(%rbx,%rax), %rdi
	movq	%r15, %rsi
	subq	%rax, %rsi
	movq	%r14, %rdx
	callq	_cx231xx_find_next_SAV_EAV
	movl	%eax, %edx
	movq	-48(%rbp), %rax
	addq	-56(%rbp), %rax
	movq	%rax, -48(%rbp)
	andl	$240, %edx
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %r8
	subq	%rax, %r8
	jle	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	addq	%rbx, %rax
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rax, %rcx
	callq	_cx231xx_get_vbi_line
	addq	-48(%rbp), %rax
	movq	%rax, -48(%rbp)
	jmp	LBB0_15
LBB0_16:
	movl	4(%r13), %edi
	leaq	(%rbx,%r15), %rsi
	addq	$-4, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	$1, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEV_DISCONNECTED,4,2           ## @DEV_DISCONNECTED
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_cx231xx_isoc_vbi_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cx231xx_isoc_vbi_copy
_cx231xx_isoc_vbi_copy:                 ; @cx231xx_isoc_vbi_copy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	x0, LBB0_17
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _DEV_DISCONNECTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DEV_DISCONNECTED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_17
LBB0_3:
	mov	x21, x1
	ldr	x20, [x1, #24]
	ldr	w2, [x1, #16]
	tbz	w2, #31, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #-1
	bl	_print_err_status
	ldr	w8, [x21, #16]
Lloh3:
	adrp	x9, _ENOENT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmn	w8, w9
	b.eq	LBB0_2
LBB0_5:
	ldr	x22, [x21, #8]
	cmp	x22, #1
	b.lt	LBB0_16
; %bb.6:
	ldr	x21, [x21]
	str	xzr, [sp, #8]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w0, [x20]
	b	LBB0_9
LBB0_8:
	ldr	w1, [x20, #4]
	add	x2, sp, #8
	mov	x0, x21
	bl	_cx231xx_find_boundary_SAV_EAV
LBB0_9:
	ldr	x8, [sp, #8]
	ands	w2, w0, #0xf0
	b.eq	LBB0_11
; %bb.10:
	add	x3, x21, x8
	sub	x4, x22, x8
	mov	x0, x19
	mov	x1, x20
	bl	_cx231xx_get_vbi_line
	ldr	x8, [sp, #8]
	add	x8, x8, x0
	str	x8, [sp, #8]
LBB0_11:
	str	xzr, [x20, #8]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	cmp	x22, x8
	b.le	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	str	xzr, [sp]
	add	x0, x21, x8
	sub	x1, x22, x8
	mov	x2, sp
	bl	_cx231xx_find_next_SAV_EAV
	ldp	x8, x9, [sp]
	add	x8, x9, x8
	str	x8, [sp, #8]
	and	w2, w0, #0xf0
	cmp	w2, #0
	ccmp	x22, x8, #4, ne
	b.le	LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	add	x3, x21, x8
	sub	x4, x22, x8
	mov	x0, x19
	mov	x1, x20
	bl	_cx231xx_get_vbi_line
	ldr	x8, [sp, #8]
	add	x8, x8, x0
	str	x8, [sp, #8]
	b	LBB0_12
LBB0_15:
	ldr	w0, [x20, #4]
	add	x8, x21, x22
	sub	x1, x8, #4
	mov	w2, #4
	bl	_memcpy
LBB0_16:
	mov	w0, #1
LBB0_17:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DEV_DISCONNECTED,4,2           ; @DEV_DISCONNECTED
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_cx231xx_isoc_vbi_copy
.subsections_via_symbols
