	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function em28xx_copy_vbi
_em28xx_copy_vbi:                       ## @em28xx_copy_vbi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rsi, %rbx
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.5:
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.6:
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.8:
	testq	%r8, %r8
	je	LBB0_9
## %bb.10:
	movq	(%rbx), %rax
	leaq	(%rax,%r9), %r10
	movq	8(%rdx), %rsi
	movq	%rsi, %r14
	subq	%rax, %r14
	cmpq	%rsi, %r10
	cmovbeq	%r9, %r14
	addq	%rax, %r8
	cmpq	$0, (%rdx)
	jne	LBB0_12
## %bb.11:
	movslq	(%rdi), %rax
	movslq	4(%rdi), %rdx
	imulq	%rax, %rdx
	addq	%rdx, %r8
LBB0_12:
	movq	%r8, %rdi
	movq	%rcx, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	addq	%r14, (%rbx)
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_7:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_em28xx_isocdbg                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dev is null\n"

L_.str.1:                               ## @.str.1
	.asciz	"dma_q is null\n"

L_.str.2:                               ## @.str.2
	.asciz	"p is null\n"

L_.str.3:                               ## @.str.3
	.asciz	"outp is null\n"

	.no_dead_strip	_em28xx_copy_vbi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function em28xx_copy_vbi
_em28xx_copy_vbi:                       ; @em28xx_copy_vbi
	.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
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_10
; %bb.2:
	cbz	x2, LBB0_8
; %bb.3:
	cbz	x3, LBB0_11
; %bb.4:
	cbz	x4, LBB0_12
; %bb.5:
	ldr	x8, [x19]
	ldp	x10, x9, [x2]
	sub	x11, x9, x8
	add	x12, x8, x5
	cmp	x12, x9
	csel	x20, x11, x5, hi
	add	x8, x4, x8
	cbnz	x10, LBB0_7
; %bb.6:
	ldpsw	x9, x10, [x0]
	madd	x8, x10, x9, x8
LBB0_7:
	mov	x0, x8
	mov	x1, x3
	mov	x2, x20
	bl	_memcpy
	ldr	x8, [x19]
	add	x8, x8, x20
	str	x8, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_10:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_11:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_em28xx_isocdbg
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dev is null\n"

l_.str.1:                               ; @.str.1
	.asciz	"dma_q is null\n"

l_.str.2:                               ; @.str.2
	.asciz	"p is null\n"

l_.str.3:                               ; @.str.3
	.asciz	"outp is null\n"

	.no_dead_strip	_em28xx_copy_vbi
.subsections_via_symbols
