	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usbvision_decompress
_usbvision_decompress:                  ## @usbvision_decompress
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %edi
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movl	(%r8), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testl	%r9d, %r9d
	jle	LBB0_1
## %bb.2:
	xorl	%r12d, %r12d
	xorl	%r8d, %r8d
	xorl	%r14d, %r14d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	%edi, %r11d
	xorl	%eax, %eax
	movl	%r9d, %r15d
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	subb	-44(%rbp), %r12b                ## 1-byte Folded Reload
LBB0_23:                                ##   in Loop: Header=BB0_3 Depth=1
	movb	%r12b, (%rsi,%r10)
	shlb	$2, %r13b
	decl	%ecx
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%eax
	cmpl	%r9d, %eax
	jge	LBB0_25
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	testl	%ecx, %ecx
	jg	LBB0_13
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%edx, %edx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movslq	%ecx, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movzbl	(%rdx,%rcx), %r8d
	incl	%ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	$4, %edx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r8d, %r14d
	shrb	$6, %r14b
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movzbl	%r14b, %esi
	incl	(%rcx,%rsi,4)
	cmpb	$63, %r8b
	ja	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$24, %r15d
	jl	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cltq
	addl	$-24, %r15d
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movzbl	23(%rcx,%rax), %r12d
	addq	$23, %rax
	xorl	%ecx, %ecx
	movl	%edi, %esi
	jmp	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	%edi, %rsi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movzbl	(%rcx,%rsi), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	cmpl	$24, %r15d
	movl	$24, %ecx
	cmovll	%r15d, %ecx
	leal	1(%rsi), %edi
	subl	%ecx, %r15d
	leal	3(%rcx), %ebx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %ebx
	sarl	$2, %ebx
	addl	%ebx, %esi
	incl	%esi
	jmp	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	%r15d, %eax
	decl	%eax
	xorl	%r15d, %r15d
	movl	%edi, %esi
	xorl	%ecx, %ecx
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	shlb	$2, %r8b
	decl	%edx
	movl	%edi, %r11d
	movl	%esi, %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	testl	%ecx, %ecx
	jle	LBB0_24
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	testb	$3, %cl
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r11d, %r11
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movzbl	(%rbx,%r11), %r13d
	incl	%r11d
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movslq	%eax, %r10
	cmpb	$1, %r14b
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%rsi,%r10), %r12d
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %ebx
	andb	$-64, %bl
	cmpb	$-128, %bl
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	testb	%bl, %bl
	je	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$-64, %bl
	jne	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	movslq	%edi, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	addb	(%rbx,%rdi), %r12b
	incl	%edi
	jmp	LBB0_23
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	addb	-44(%rbp), %r12b                ## 1-byte Folded Reload
	jmp	LBB0_23
LBB0_1:
	xorl	%eax, %eax
LBB0_25:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%edi, (%rcx)
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%edx, (%rcx)
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_usbvision_decompress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usbvision_decompress
_usbvision_decompress:                  ; @usbvision_decompress
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
	ldr	w10, [x3]
	ldr	w9, [x4]
	cmp	w5, #1
	b.lt	LBB0_24
; %bb.1:
	mov	w16, #0
	mov	w11, #0
	mov	w17, #0
	mov	w12, #0
	mov	w13, #0
	mov	w15, #0
	mov	w7, #0
	mov	w8, #0
	mov	w14, #24
	mov	x19, x10
	mov	x6, x5
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	w16, w16, w12
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	strb	w16, [x2, w8, sxtw]
	lsl	w13, w13, #2
	mov	x7, x20
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w8, #1
	cmp	w8, w5
	b.ge	LBB0_25
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w7, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	subs	w20, w7, #1
	b.ge	LBB0_15
	b	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w15, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w11, [x1, w9, sxtw]
	add	w9, w9, #1
	mov	w15, #4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	and	w7, w11, #0xff
	ubfx	w17, w11, #6, #2
	ldr	x19, [x0]
	lsl	x20, x17, #2
	ldr	w21, [x19, x20]
	add	w21, w21, #1
	str	w21, [x19, x20]
	cmp	w7, #63
	b.hi	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	w7, #0
	subs	w19, w6, #24
	b.lt	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x8, w8
	add	x8, x8, #23
	ldrb	w16, [x2, x8]
	mov	x6, x19
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	mov	x20, x10
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w12, [x1, w10, sxtw]
	add	w10, w10, #1
	cmp	w6, #24
	csel	w7, w6, w14, lt
	sub	w6, w6, w7
	add	w19, w7, #3
	cmp	w7, #0
	csel	w19, w19, w7, lt
	add	w20, w10, w19, asr #2
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w6, w8
	sub	w8, w8, #1
	mov	x20, x10
	mov	w6, #0
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	lsl	w11, w11, #2
	sub	w15, w15, #1
	mov	x19, x10
	mov	x10, x20
	subs	w20, w7, #1
	b.lt	LBB0_4
LBB0_15:                                ;   in Loop: Header=BB0_5 Depth=1
	tst	w7, #0x3
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w13, [x1, w19, sxtw]
	add	w19, w19, #1
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w7, w17, #0xff
	cmp	w7, #1
	b.ne	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w16, [x2, w8, sxtw]
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	ands	w7, w13, #0xc0
	b.eq	LBB0_2
; %bb.20:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w7, #128
	b.eq	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w7, #192
	b.ne	LBB0_3
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w7, [x1, w10, sxtw]
	add	w16, w7, w16
	add	w10, w10, #1
	b	LBB0_3
LBB0_23:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w16, w16, w12
	b	LBB0_3
LBB0_24:
	mov	w8, #0
LBB0_25:
	str	w10, [x3]
	str	w9, [x4]
	mov	x0, x8
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_usbvision_decompress
.subsections_via_symbols
