	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function au0828_copy_vbi
LCPI0_0:
	.short	255                             ## 0xff
	.short	255                             ## 0xff
	.short	255                             ## 0xff
	.short	255                             ## 0xff
	.short	255                             ## 0xff
	.short	255                             ## 0xff
	.short	255                             ## 0xff
	.short	255                             ## 0xff
LCPI0_1:
	.byte	0                               ## 0x0
	.byte	2                               ## 0x2
	.byte	4                               ## 0x4
	.byte	6                               ## 0x6
	.byte	8                               ## 0x8
	.byte	10                              ## 0xa
	.byte	12                              ## 0xc
	.byte	14                              ## 0xe
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.space	1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_au0828_copy_vbi:                       ## @au0828_copy_vbi
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_27
## %bb.2:
	testq	%rdx, %rdx
	je	LBB0_25
## %bb.3:
	testq	%rcx, %rcx
	je	LBB0_28
## %bb.4:
	testq	%r8, %r8
	je	LBB0_29
## %bb.5:
	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
	movq	(%rsi), %r10
	leaq	(%r10,%r9), %r11
	movq	(%rdx), %r14
	movq	%r14, %rax
	subq	%r10, %rax
	cmpq	%r14, %r11
	cmovbeq	%r9, %rax
	movq	%r10, %rbx
	shrq	%rbx
	addq	%rbx, %r8
	cmpq	$0, 8(%rdx)
	jne	LBB0_7
## %bb.6:
	movslq	(%rdi), %rdx
	movslq	4(%rdi), %rdi
	imulq	%rdx, %rdi
	addq	%rdi, %r8
LBB0_7:
	testq	%rax, %rax
	je	LBB0_24
## %bb.8:
	cmpq	%r11, %r14
	movq	%r11, %rdx
	cmovbq	%r14, %rdx
	notq	%r10
	addq	%r10, %rdx
	cmpq	$16, %rdx
	jb	LBB0_9
## %bb.10:
	cmpq	%r11, %r14
	cmovbq	%r14, %r11
	leaq	(%r11,%r10), %rdi
	addq	$2, %rdi
	andq	$-2, %rdi
	addq	%rcx, %rdi
	cmpq	%rdi, %r8
	jae	LBB0_12
## %bb.11:
	addq	%r10, %r11
	shrq	%r11
	leaq	(%r11,%r8), %rdi
	incq	%rdi
	leaq	1(%rcx), %rbx
	cmpq	%rdi, %rbx
	jae	LBB0_12
LBB0_9:
	xorl	%edx, %edx
	xorl	%edi, %edi
	jmp	LBB0_21
LBB0_26:
	leaq	L_.str(%rip), %rdi
	jmp	_au0828_isocdbg                 ## TAILCALL
LBB0_27:
	leaq	L_.str.1(%rip), %rdi
	jmp	_au0828_isocdbg                 ## TAILCALL
LBB0_28:
	leaq	L_.str.2(%rip), %rdi
	jmp	_au0828_isocdbg                 ## TAILCALL
LBB0_29:
	leaq	L_.str.3(%rip), %rdi
	jmp	_au0828_isocdbg                 ## TAILCALL
LBB0_12:
	movq	%rdx, %r9
	shrq	%r9
	incq	%r9
	cmpq	$32, %rdx
	jae	LBB0_17
## %bb.13:
	xorl	%edi, %edi
	jmp	LBB0_14
LBB0_17:
	movl	%r9d, %edi
	andl	$15, %edi
	testq	%rdi, %rdi
	movl	$16, %edx
	cmovneq	%rdi, %rdx
	movq	%r9, %rdi
	subq	%rdx, %rdi
	xorl	%ebx, %ebx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [255,255,255,255,255,255,255,255]
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movdqu	1(%rcx,%rbx,2), %xmm1
	movdqu	17(%rcx,%rbx,2), %xmm2
	pand	%xmm0, %xmm2
	pand	%xmm0, %xmm1
	packuswb	%xmm2, %xmm1
	movdqu	%xmm1, (%r8,%rbx)
	addq	$16, %rbx
	cmpq	%rbx, %rdi
	jne	LBB0_18
## %bb.19:
	cmpl	$9, %edx
	jae	LBB0_14
## %bb.20:
	leaq	(%rdi,%rdi), %rdx
	jmp	LBB0_21
LBB0_14:
	movl	%r9d, %edx
	andl	$7, %edx
	testq	%rdx, %rdx
	movl	$8, %ebx
	cmovneq	%rdx, %rbx
	subq	%rbx, %r9
	leaq	(%r9,%r9), %rdx
	movdqa	LCPI0_1(%rip), %xmm0            ## xmm0 = <0,2,4,6,8,10,12,14,u,u,u,u,u,u,u,u>
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movdqu	1(%rcx,%rdi,2), %xmm1
	pshufb	%xmm0, %xmm1
	movq	%xmm1, (%r8,%rdi)
	addq	$8, %rdi
	cmpq	%rdi, %r9
	jne	LBB0_15
## %bb.16:
	movq	%r9, %rdi
LBB0_21:
	addq	%rdi, %r8
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movzbl	1(%rcx,%rdx), %ebx
	movb	%bl, (%r8)
	addq	$2, %rdx
	incq	%r8
	cmpq	%rdx, %rax
	ja	LBB0_22
## %bb.23:
	movq	(%rsi), %r10
LBB0_24:
	addq	%rax, %r10
	movq	%r10, (%rsi)
	popq	%rbx
	popq	%r14
	popq	%rbp
LBB0_25:
	retq
	.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	_au0828_copy_vbi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au0828_copy_vbi
_au0828_copy_vbi:                       ; @au0828_copy_vbi
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_12
; %bb.1:
	cbz	x1, LBB0_13
; %bb.2:
	cbz	x2, LBB0_27
; %bb.3:
	cbz	x3, LBB0_14
; %bb.4:
	cbz	x4, LBB0_15
; %bb.5:
	ldr	x10, [x1]
	ldp	x11, x13, [x2]
	sub	x8, x11, x10
	add	x12, x10, x5
	cmp	x12, x11
	csel	x8, x8, x5, hi
	add	x9, x4, x10, lsr #1
	cbnz	x13, LBB0_7
; %bb.6:
	ldpsw	x13, x14, [x0]
	madd	x9, x14, x13, x9
LBB0_7:
	cbz	x8, LBB0_26
; %bb.8:
	cmp	x11, x12
	csel	x14, x11, x12, lo
	mvn	x13, x10
	add	x10, x14, x13
	cmp	x10, #16
	b.lo	LBB0_16
; %bb.9:
	cmp	x11, x12
	csel	x11, x11, x12, lo
	add	x11, x11, x13
	add	x12, x9, x11, lsr #1
	add	x12, x12, #1
	add	x13, x3, #1
	add	x11, x11, #2
	and	x11, x11, #0xfffffffffffffffe
	add	x11, x3, x11
	cmp	x9, x11
	ccmp	x13, x12, #2, lo
	b.lo	LBB0_16
; %bb.10:
	lsr	x11, x10, #1
	add	x12, x11, #1
	cmp	x10, #128
	b.hs	LBB0_17
; %bb.11:
	mov	x10, #0
	b	LBB0_21
LBB0_12:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	b	_au0828_isocdbg
LBB0_13:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	b	_au0828_isocdbg
LBB0_14:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	b	_au0828_isocdbg
LBB0_15:
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	b	_au0828_isocdbg
LBB0_16:
	mov	x12, #0
	mov	x10, #0
	b	LBB0_23
LBB0_17:
	ands	x10, x12, #0x3f
	mov	w13, #64
	csel	x13, x13, x10, eq
	sub	x10, x12, x13
	add	x16, x3, #65
	add	x14, x9, #32
	mov	x15, x12
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	sub	x17, x16, #64
	ld2.16b	{ v0, v1 }, [x17]
	sub	x17, x16, #32
	ld2.16b	{ v2, v3 }, [x17]
	add	x17, x16, #128
	ld2.16b	{ v4, v5 }, [x16], #32
	ld2.16b	{ v6, v7 }, [x16]
	stp	q0, q2, [x14, #-32]
	stp	q4, q6, [x14], #64
	sub	x15, x15, #64
	mov	x16, x17
	cmp	x13, x15
	b.ne	LBB0_18
; %bb.19:
	cmp	x13, #9
	b.hs	LBB0_21
; %bb.20:
	lsl	x12, x10, #1
	b	LBB0_23
LBB0_21:
	mov	x15, x10
	ands	x10, x12, #0x7
	mov	w13, #8
	csel	x16, x13, x10, eq
	add	x14, x3, x15, lsl #1
	add	x13, x9, x15
	sub	x10, x12, x16
	lsl	x12, x10, #1
	add	x14, x14, #1
	mvn	x11, x11
	add	x15, x16, x15
	add	x11, x11, x15
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ld2.8b	{ v0, v1 }, [x14], #16
	str	d0, [x13], #8
	adds	x11, x11, #8
	b.ne	LBB0_22
LBB0_23:
	add	x11, x3, #1
	add	x9, x9, x10
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x11, x12]
	strb	w10, [x9], #1
	add	x12, x12, #2
	cmp	x8, x12
	b.hi	LBB0_24
; %bb.25:
	ldr	x10, [x1]
LBB0_26:
	add	x8, x10, x8
	str	x8, [x1]
LBB0_27:
	ret
	.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	_au0828_copy_vbi
.subsections_via_symbols
