	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28xx_isoc_copy
_em28xx_isoc_copy:                      ## @em28xx_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	$40, %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_41
## %bb.1:
	movl	(%rdi), %eax
	movq	_DEV_DISCONNECTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_41
## %bb.2:
	movq	_DEV_MISCONFIGURED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_41
## %bb.3:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rsi), %edx
	testl	%edx, %edx
	jns	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movl	$-1, %esi
	callq	_print_err_status
	movl	(%r14), %eax
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_41
LBB0_5:
	movq	%r15, %rax
	movq	16(%r15), %rdi
	movq	%rdi, -72(%rbp)
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:
	addq	$4, %rdi
	callq	_videobuf_to_vmalloc
	jmp	LBB0_8
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$1, %ebx
	cmpl	$0, 4(%r14)
	jle	LBB0_41
## %bb.9:
	movq	%r15, %rbx
	leaq	24(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_13
LBB0_10:                                ##   in Loop: Header=BB0_13 Depth=1
	addq	$4, %rcx
LBB0_11:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_em28xx_copy_video
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r13
	movslq	4(%r14), %rax
	addq	$12, %r15
	cmpq	%rax, %r13
	jge	LBB0_40
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movl	(%rax,%r15), %edx
	testl	%edx, %edx
	jns	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_print_err_status
	movq	16(%r14), %rax
	movl	(%rax,%r15), %ecx
	movq	_EPROTO@GOTPCREL(%rip), %rdx
	addl	(%rdx), %ecx
	jne	LBB0_12
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	4(%rax,%r15), %r12d
	testl	%r12d, %r12d
	jle	LBB0_12
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	4(%rbx), %r12d
	jle	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	L_.str(%rip), %rdi
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	xorl	%eax, %eax
	callq	_em28xx_isocdbg
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_13 Depth=1
	leal	-4(%r12), %r9d
	movq	8(%r14), %rdx
	movslq	8(%rax,%r15), %rax
	leaq	(%rdx,%rax), %rcx
	movzbl	(%rdx,%rax), %eax
	cmpb	$34, %al
	je	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpb	$51, %al
	jne	LBB0_36
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpb	$-107, 1(%rcx)
	jne	LBB0_36
## %bb.22:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpb	$0, 2(%rcx)
	jne	LBB0_36
## %bb.23:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_18
LBB0_24:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpb	$90, 1(%rcx)
	jne	LBB0_36
## %bb.25:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movzbl	2(%rcx), %esi
	testb	$1, %sil
	leaq	L_.str.3(%rip), %rcx
	leaq	L_.str.4(%rip), %rax
	cmoveq	%rax, %rcx
	leaq	L_.str.2(%rip), %rdi
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r9d, %edx
	xorl	%eax, %eax
	callq	_em28xx_isocdbg
	cmpq	$0, 8(%rbx)
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testb	$1, 2(%rax)
	jne	LBB0_31
LBB0_27:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-72(%rbp), %rdx
	testq	%rdx, %rdx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_buffer_filled
	movq	-64(%rbp), %rax                 ## 8-byte Reload
LBB0_29:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	%rax, %rdi
	leaq	-72(%rbp), %rsi
	callq	_get_next_buf
	movq	-72(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_33
## %bb.30:                              ##   in Loop: Header=BB0_13 Depth=1
	addq	$4, %rdi
	callq	_videobuf_to_vmalloc
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
LBB0_31:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-72(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_34
## %bb.32:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movzbl	2(%rcx), %edx
	notl	%edx
	andl	$1, %edx
	movl	%edx, (%rax)
	jmp	LBB0_35
LBB0_33:                                ##   in Loop: Header=BB0_13 Depth=1
	xorl	%eax, %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
LBB0_34:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
LBB0_35:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-72(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.37:                              ##   in Loop: Header=BB0_13 Depth=1
	movzbl	(%rcx), %eax
	cmpb	$-120, %al
	je	LBB0_10
## %bb.38:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpb	$34, %al
	je	LBB0_10
## %bb.39:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	callq	_em28xx_isocdbg
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %rdx
	movl	%r12d, %r9d
	jmp	LBB0_11
LBB0_40:
	movl	$1, %ebx
LBB0_41:
	movl	%ebx, %eax
	addq	$40, %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	_DEV_MISCONFIGURED,4,2          ## @DEV_MISCONFIGURED
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_EPROTO,4,2                     ## @EPROTO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"packet bigger than packet size"

L_.str.1:                               ## @.str.1
	.asciz	"VBI HEADER!!!\n"

L_.str.2:                               ## @.str.2
	.asciz	"Video frame %d, length=%i, %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"odd"

L_.str.4:                               ## @.str.4
	.asciz	"even"

L_.str.5:                               ## @.str.5
	.asciz	"frame is not complete\n"

	.no_dead_strip	_em28xx_isoc_copy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function em28xx_isoc_copy
_em28xx_isoc_copy:                      ; @em28xx_isoc_copy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	cbz	x0, LBB0_4
; %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.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _DEV_MISCONFIGURED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DEV_MISCONFIGURED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
	mov	x19, x1
	ldr	w2, [x1]
	tbz	w2, #31, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	w1, #-1
	bl	_print_err_status
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _ENOENT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ENOENT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmn	w8, w9
	b.eq	LBB0_3
LBB0_7:
	ldr	x8, [x20, #16]
	str	x8, [sp, #24]
	cbz	x8, LBB0_9
; %bb.8:
	add	x0, x8, #4
	bl	_videobuf_to_vmalloc
	mov	x27, x0
	b	LBB0_10
LBB0_9:
	mov	x27, #0
LBB0_10:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_41
; %bb.11:
	mov	x24, #0
	mov	x21, #0
	add	x22, x20, #24
Lloh9:
	adrp	x25, _EPROTO@GOTPAGE
Lloh10:
	ldr	x25, [x25, _EPROTO@GOTPAGEOFF]
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x28, x28, #4
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	x3, x28
	mov	x4, x27
	mov	x5, x26
	bl	_em28xx_copy_video
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19, #4]
	add	x24, x24, #12
	cmp	x21, x8
	b.ge	LBB0_41
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	w2, [x8, x24]
	tbz	w2, #31, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_print_err_status
	ldr	x8, [x19, #16]
	ldr	w9, [x8, x24]
	ldr	w10, [x25]
	cmn	w9, w10
	b.ne	LBB0_14
LBB0_17:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x9, x8, x24
	ldr	w23, [x9, #4]
	cmp	w23, #1
	b.lt	LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w9, [x20, #4]
	cmp	w23, w9
	b.le	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_15 Depth=1
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=1
	bl	_em28xx_isocdbg
	b	LBB0_14
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=1
	sub	w26, w23, #4
	ldr	x9, [x19, #8]
	add	x8, x8, x24
	ldrsw	x8, [x8, #8]
	add	x28, x9, x8
	ldrb	w8, [x28]
	cmp	w8, #34
	b.eq	LBB0_26
; %bb.22:                               ;   in Loop: Header=BB0_15 Depth=1
	cmp	w8, #51
	b.ne	LBB0_37
; %bb.23:                               ;   in Loop: Header=BB0_15 Depth=1
	ldrb	w8, [x28, #1]
	cmp	w8, #149
	b.ne	LBB0_37
; %bb.24:                               ;   in Loop: Header=BB0_15 Depth=1
	ldrb	w8, [x28, #2]
	cbnz	w8, LBB0_37
; %bb.25:                               ;   in Loop: Header=BB0_15 Depth=1
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_20
LBB0_26:                                ;   in Loop: Header=BB0_15 Depth=1
	ldrb	w8, [x28, #1]
	cmp	w8, #90
	b.ne	LBB0_37
; %bb.27:                               ;   in Loop: Header=BB0_15 Depth=1
	ldrb	w8, [x28, #2]
	tst	w8, #0x1
Lloh15:
	adrp	x9, l_.str.3@PAGE
Lloh16:
	add	x9, x9, l_.str.3@PAGEOFF
Lloh17:
	adrp	x10, l_.str.4@PAGE
Lloh18:
	add	x10, x10, l_.str.4@PAGEOFF
	csel	x9, x10, x9, eq
	stp	x8, x26, [sp]
	str	x9, [sp, #16]
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_em28xx_isocdbg
	ldr	x8, [x20, #8]
	cbnz	x8, LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_15 Depth=1
	ldrb	w8, [x28, #2]
	tbnz	w8, #0, LBB0_33
LBB0_29:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x2, [sp, #24]
	cbz	x2, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_buffer_filled
LBB0_31:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x1, sp, #24
	mov	x0, x22
	bl	_get_next_buf
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_35
; %bb.32:                               ;   in Loop: Header=BB0_15 Depth=1
	add	x0, x8, #4
	bl	_videobuf_to_vmalloc
	mov	x27, x0
LBB0_33:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_36
; %bb.34:                               ;   in Loop: Header=BB0_15 Depth=1
	ldrb	w9, [x28, #2]
	mvn	w9, w9
	and	w9, w9, #0x1
	str	w9, [x8]
	b	LBB0_36
LBB0_35:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x27, #0
LBB0_36:                                ;   in Loop: Header=BB0_15 Depth=1
	str	xzr, [x22]
LBB0_37:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x2, [sp, #24]
	cbz	x2, LBB0_14
; %bb.38:                               ;   in Loop: Header=BB0_15 Depth=1
	ldrb	w8, [x28]
	cmp	w8, #34
	b.eq	LBB0_12
; %bb.39:                               ;   in Loop: Header=BB0_15 Depth=1
	cmp	w8, #136
	b.eq	LBB0_12
; %bb.40:                               ;   in Loop: Header=BB0_15 Depth=1
Lloh21:
	adrp	x0, l_.str.5@PAGE
Lloh22:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_em28xx_isocdbg
	ldr	x2, [sp, #24]
	mov	x26, x23
	b	LBB0_13
LBB0_41:
	mov	w0, #1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_DEV_DISCONNECTED,4,2           ; @DEV_DISCONNECTED
	.comm	_DEV_MISCONFIGURED,4,2          ; @DEV_MISCONFIGURED
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_EPROTO,4,2                     ; @EPROTO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"packet bigger than packet size"

l_.str.1:                               ; @.str.1
	.asciz	"VBI HEADER!!!\n"

l_.str.2:                               ; @.str.2
	.asciz	"Video frame %d, length=%i, %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"odd"

l_.str.4:                               ; @.str.4
	.asciz	"even"

l_.str.5:                               ; @.str.5
	.asciz	"frame is not complete\n"

	.no_dead_strip	_em28xx_isoc_copy
.subsections_via_symbols
