	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usbtv_chunk_to_vbuf
_usbtv_chunk_to_vbuf:                   ## @usbtv_chunk_to_vbuf
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	leal	(%r15,%r15), %eax
	xorl	%r14d, %r14d
	testl	%ecx, %ecx
	sete	%r14b
	cltq
	imulq	$1431655766, %rax, %rcx         ## imm = 0x55555556
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$32, %rcx
	addl	%edx, %ecx
	leal	(%r14,%rcx,2), %edx
	leal	(%rdx,%rdx,2), %edx
	leal	(%rcx,%rcx,2), %ecx
	subl	%ecx, %eax
	addl	%edx, %eax
	movq	_USBTV_CHUNK@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	imull	%ecx, %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movslq	%edx, %rax
	leaq	(%rdi,%rax,4), %rdi
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	addl	%edx, %edx
	andl	$-4, %edx
	callq	_memcpy
	movl	(%r13), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movslq	%ecx, %rdx
	leaq	(%r12,%rdx,4), %rsi
	leal	(%r15,%r15), %ecx
	incl	%ecx
	movslq	%ecx, %rcx
	imulq	$1431655766, %rcx, %rdi         ## imm = 0x55555556
	movq	%rdi, %rbx
	shrq	$63, %rbx
	shrq	$32, %rdi
	addl	%ebx, %edi
	leal	(%r14,%rdi,2), %ebx
	leal	(%rbx,%rbx,2), %ebx
	leal	(%rdi,%rdi,2), %edi
	subl	%edi, %ecx
	addl	%ebx, %ecx
	imull	%eax, %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	cltq
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rdi
	shll	$2, %edx
                                        ## kill: def $edx killed $edx killed $rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_USBTV_CHUNK,4,2                ## @USBTV_CHUNK
	.no_dead_strip	_usbtv_chunk_to_vbuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usbtv_chunk_to_vbuf
_usbtv_chunk_to_vbuf:                   ; @usbtv_chunk_to_vbuf
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	lsl	w8, w2, #1
	cmp	w3, #0
	cset	w22, eq
	mov	w23, #21846
	movk	w23, #21845, lsl #16
	smull	x9, w8, w23
	lsr	x10, x9, #63
	lsr	x9, x9, #32
	add	w9, w9, w10
	mov	x10, x22
	bfi	w10, w9, #1, #31
	add	w10, w10, w10, lsl #1
	add	w9, w9, w9, lsl #1
	sub	w8, w8, w9
	add	w8, w10, w8
Lloh0:
	adrp	x24, _USBTV_CHUNK@GOTPAGE
Lloh1:
	ldr	x24, [x24, _USBTV_CHUNK@GOTPAGEOFF]
	ldr	w9, [x24]
	mul	w8, w9, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	add	x0, x0, w8, sxtw #2
	cmp	w9, #0
	cinc	w8, w9, lt
	lsl	w8, w8, #1
	and	w2, w8, #0xfffffffc
	bl	_memcpy
	ldr	w8, [x24]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w9, w9, #1
	add	x1, x20, w9, sxtw #2
	mov	w10, #1
	bfi	w10, w19, #1, #31
	smull	x11, w10, w23
	lsr	x12, x11, #63
	lsr	x11, x11, #32
	add	w11, w11, w12
	bfi	w22, w11, #1, #31
	add	w12, w22, w22, lsl #1
	add	w11, w11, w11, lsl #1
	sub	w10, w10, w11
	add	w10, w12, w10
	mul	w8, w8, w10
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	add	x0, x21, w8, sxtw #2
	lsl	w2, w9, #2
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_memcpy
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_USBTV_CHUNK,4,2                ; @USBTV_CHUNK
	.no_dead_strip	_usbtv_chunk_to_vbuf
.subsections_via_symbols
