	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cx231xx_isoc_copy
_cx231xx_isoc_copy:                     ## @cx231xx_isoc_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
	movq	24(%rsi), %rcx
	movl	$0, -44(%rbp)
	xorl	%ebx, %ebx
	testq	%rdi, %rdi
	je	LBB0_24
## %bb.1:
	movq	%rdi, %r13
	movq	_DEV_DISCONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	jne	LBB0_24
## %bb.2:
	movq	%rsi, %r14
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %edx
	testl	%edx, %edx
	jns	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	movl	$-1, %esi
	callq	_print_err_status
	movl	(%r14), %eax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_24
LBB0_4:
	movl	$1, %ebx
	cmpl	$0, 4(%r14)
	jle	LBB0_24
## %bb.5:
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	movslq	%r12d, %rax
	leaq	(%r14,%rax), %rsi
	addq	$-4, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	$0, -44(%rbp)
	movq	%rbx, %r14
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	movslq	4(%r14), %rax
	cmpq	%rax, %r15
	jge	LBB0_23
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
	movq	16(%r14), %rax
	leaq	(%r15,%r15,2), %rbx
	movl	(%rax,%rbx,8), %edx
	testl	%edx, %edx
	jns	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_print_err_status
	movq	16(%r14), %rax
	movl	(%rax,%rbx,8), %ecx
	movq	_EPROTO@GOTPCREL(%rip), %rdx
	addl	(%rdx), %ecx
	jne	LBB0_22
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rax,%rbx,8), %r12
	testq	%r12, %r12
	jle	LBB0_22
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpq	8(%r13), %r12
	jle	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_cx231xx_isocdbg
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rcx
	movslq	16(%rax,%rbx,8), %r14
	movq	%rcx, %rbx
	addq	8(%rcx), %r14
	movl	$0, -44(%rbp)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, 8(%rax)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rax), %edx
	jmp	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%rax), %esi
	movq	%r14, %rdi
	leaq	-44(%rbp), %rdx
	callq	_cx231xx_find_boundary_SAV_EAV
	movl	%eax, %edx
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %eax
	andl	$240, %edx
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	cltq
	leaq	(%r14,%rax), %rcx
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%r12d, %r8d
	subl	%eax, %r8d
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_cx231xx_get_video_line
                                        ## kill: def $eax killed $eax def $rax
	addl	-44(%rbp), %eax
	movl	%eax, -44(%rbp)
LBB0_17:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%r12d, %eax
	jge	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	movl	$0, -48(%rbp)
	cltq
	leaq	(%r14,%rax), %rdi
	movl	%r12d, %esi
	subl	%eax, %esi
	leaq	-48(%rbp), %rdx
	callq	_cx231xx_find_next_SAV_EAV
	movl	%eax, %edx
	movslq	-48(%rbp), %rcx
	movslq	-44(%rbp), %rax
	addq	%rcx, %rax
	movl	%eax, -44(%rbp)
	andl	$240, %edx
	je	LBB0_17
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=2
	cmpl	%r12d, %eax
	jge	LBB0_17
## %bb.20:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rcx
	addq	%r14, %rcx
	jmp	LBB0_16
LBB0_23:
	movl	$1, %ebx
LBB0_24:
	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
	.comm	_EPROTO,4,2                     ## @EPROTO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"packet bigger than packet size"

	.no_dead_strip	_cx231xx_isoc_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_copy
_cx231xx_isoc_copy:                     ; @cx231xx_isoc_copy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x21, [x1, #24]
	str	wzr, [sp, #12]
	cbz	x0, LBB0_24
; %bb.1:
	mov	x20, 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_24
LBB0_3:
	mov	x19, x1
	ldr	w2, [x1]
	tbz	w2, #31, LBB0_5
; %bb.4:
	mov	x0, x20
	mov	w1, #-1
	bl	_print_err_status
	ldr	w8, [x19]
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	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_23
; %bb.6:
	mov	x22, #0
	mov	w25, #24
Lloh6:
	adrp	x26, _EPROTO@GOTPAGE
Lloh7:
	ldr	x26, [x26, _EPROTO@GOTPAGEOFF]
Lloh8:
	adrp	x23, l_.str@PAGE
Lloh9:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x21, #4]
	add	x8, x24, w27, sxtw
	sub	x1, x8, #4
	mov	w2, #4
	bl	_memcpy
	str	wzr, [sp, #12]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19, #4]
	cmp	x22, x8
	b.ge	LBB0_23
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_20 Depth 2
	ldr	x8, [x19, #16]
	mul	x9, x22, x25
	ldr	w2, [x8, x9]
	tbz	w2, #31, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_print_err_status
	ldr	x8, [x19, #16]
	mul	x9, x22, x25
	ldr	w9, [x8, x9]
	ldr	w10, [x26]
	cmn	w9, w10
	b.ne	LBB0_8
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	madd	x9, x22, x25, x8
	ldr	x27, [x9, #8]
	cmp	x27, #1
	b.lt	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x20, #8]
	cmp	x27, x9
	b.le	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x23
	bl	_cx231xx_isocdbg
	b	LBB0_8
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x19, #8]
	madd	x8, x22, x25, x8
	ldrsw	x8, [x8, #16]
	add	x24, x9, x8
	str	wzr, [sp, #12]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x21]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x21, #4]
	add	x2, sp, #12
	mov	x0, x24
	bl	_cx231xx_find_boundary_SAV_EAV
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [sp, #12]
	ands	w2, w0, #0xf0
	b.eq	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x9, x8
	sxtw	x9, w9
	add	x3, x24, x9
LBB0_19:                                ;   in Loop: Header=BB0_9 Depth=1
	sub	w4, w27, w8
	mov	x0, x20
	mov	x1, x21
	bl	_cx231xx_get_video_line
	ldr	w8, [sp, #12]
	add	w8, w8, w0
	str	w8, [sp, #12]
LBB0_20:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w8, w27
	b.ge	LBB0_7
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=2
	str	wzr, [sp, #8]
	add	x0, x24, w8, sxtw
	sub	w1, w27, w8
	add	x2, sp, #8
	bl	_cx231xx_find_next_SAV_EAV
	ldpsw	x8, x9, [sp, #8]
	add	x8, x9, x8
	str	w8, [sp, #12]
	and	w2, w0, #0xf0
	cmp	w2, #0
	ccmp	w8, w27, #0, ne
	b.ge	LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x3, x24, x8
	b	LBB0_19
LBB0_23:
	mov	w0, #1
LBB0_24:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DEV_DISCONNECTED,4,2           ; @DEV_DISCONNECTED
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EPROTO,4,2                     ; @EPROTO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"packet bigger than packet size"

	.no_dead_strip	_cx231xx_isoc_copy
.subsections_via_symbols
