	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_decompress                 ## -- Begin function pwc_decompress
	.p2align	4, 0x90
_pwc_decompress:                        ## @pwc_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r14
	movq	120(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	104(%r14), %rcx
	movq	(%r14), %rdx
	movslq	(%rcx,%rdx,4), %r15
	addq	112(%r14), %r15
	movslq	8(%r14), %r13
	addq	(%rax), %r13
	movq	16(%r14), %rax
	movq	_V4L2_PIX_FMT_YUV420@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	cmpq	$0, 32(%r14)
	je	LBB0_7
## %bb.14:
	movq	56(%r14), %rax
	movq	_PSZ_VGA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.15:
	cmpl	$5, 64(%r14)
	jne	LBB0_19
## %bb.16:
	cmpq	$0, 72(%r14)
	je	LBB0_19
## %bb.17:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_18
LBB0_1:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_23
LBB0_5:
	movq	24(%r14), %rdi
	callq	_cpu_to_le16
	movq	%rax, 16(%r15)
	movq	32(%r14), %rdi
	callq	_cpu_to_le16
	movq	%rax, 8(%r15)
	movq	(%r15), %rdi
	movq	40(%r14), %rsi
	movl	$4, %edx
	callq	_memcpy
	addq	$24, %r15
	movl	48(%r14), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_memcpy
LBB0_22:
	xorl	%eax, %eax
LBB0_23:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	24(%r14), %rdi
	callq	_DEVICE_USE_CODEC1
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	leaq	L_.str.1(%rip), %rdi
LBB0_18:
	callq	_PWC_ERROR
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_7:
	movl	84(%r14), %r9d
	testl	%r9d, %r9d
	jle	LBB0_22
## %bb.8:
	movslq	88(%r14), %r11
	movl	80(%r14), %esi
	movl	100(%r14), %r10d
	movl	%r11d, %ecx
	subl	%esi, %ecx
	movl	%ecx, %r12d
	shrl	$31, %r12d
	addl	%ecx, %r12d
	movl	%r12d, %r8d
	sarl	%r8d
	movslq	92(%r14), %rdx
	imulq	%r11, %rdx
	movq	%rdx, %rcx
	addq	%r15, %rcx
	leal	3(%rdx), %edi
	testl	%edx, %edx
	cmovnsl	%edx, %edi
	sarl	$2, %edi
	movslq	%edi, %rdx
	addq	%rcx, %rdx
	movl	96(%r14), %edi
	imull	%r11d, %edi
	leal	3(%rdi), %r11d
	testl	%edi, %edi
	cmovnsl	%edi, %r11d
	sarl	$2, %r11d
	movl	%r10d, %eax
	shrl	$31, %eax
	addl	%r10d, %eax
	sarl	%eax
	addl	%r11d, %eax
	cltq
	addq	%rax, %rdx
	addq	%rax, %rcx
	addl	%r10d, %edi
	movslq	%edi, %rdi
	addq	%r15, %rdi
	movslq	%r8d, %r8
	sarl	$2, %r12d
	movslq	%r12d, %r10
	xorl	%r15d, %r15d
	movb	$1, %r11b
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	xorl	%eax, %eax
	testb	$1, %r15b
	movl	$0, %ebx
	cmoveq	%r10, %rbx
	leaq	(%rdi,%r8,4), %rdi
	leaq	(%rcx,%rbx,4), %rcx
	movq	%r10, %rbx
	cmoveq	%rax, %rbx
	leaq	(%rdx,%rbx,4), %rdx
	incl	%r15d
	incb	%r11b
	cmpl	%r9d, %r15d
	jge	LBB0_23
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	testl	%esi, %esi
	jle	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movzbl	%r11b, %r9d
	andl	$1, %r9d
	shlq	$2, %r9
	movl	%r15d, %r12d
	andl	$1, %r12d
	shlq	$2, %r12
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %esi
	movl	%esi, (%rdi)
	movl	4(%r13), %esi
	movl	%esi, 4(%rdi)
	addq	$8, %rdi
	testb	$1, %r15b
	movq	%rdx, %rsi
	cmoveq	%rcx, %rsi
	movl	8(%r13), %ebx
	movl	%ebx, (%rsi)
	addq	$12, %r13
	addl	$4, %eax
	movl	80(%r14), %esi
	addq	%r12, %rdx
	addq	%r9, %rcx
	cmpl	%esi, %eax
	jl	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	84(%r14), %r9d
	jmp	LBB0_13
LBB0_21:
	movq	_PWCX_FLAG_PLANAR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%r15, %rdx
	callq	_pwc_dec23_decompress
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_V4L2_PIX_FMT_YUV420,8,3        ## @V4L2_PIX_FMT_YUV420
	.comm	_PSZ_VGA,8,3                    ## @PSZ_VGA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Mode Bayer is not supported for now\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"This chipset is not supported for now\n"

	.comm	_PWCX_FLAG_PLANAR,4,2           ## @PWCX_FLAG_PLANAR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_decompress                 ; -- Begin function pwc_decompress
	.p2align	2
_pwc_decompress:                        ; @pwc_decompress
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #120]
	cbz	x8, LBB0_8
; %bb.2:
	ldp	x10, x9, [x19, #104]
	ldr	x11, [x19]
	ldrsw	x10, [x10, x11, lsl #2]
	add	x21, x9, x10
	ldr	x8, [x8]
	ldrsw	x9, [x19, #8]
	add	x20, x8, x9
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _V4L2_PIX_FMT_YUV420@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_PIX_FMT_YUV420@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.3:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_16
; %bb.4:
	ldr	x8, [x19, #56]
Lloh3:
	adrp	x9, _PSZ_VGA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PSZ_VGA@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.5:
	ldr	w8, [x19, #64]
	cmp	w8, #5
	b.ne	LBB0_13
; %bb.6:
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_13
; %bb.7:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_15
LBB0_8:
Lloh8:
	adrp	x8, _EFAULT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_10:
	ldr	x0, [x19, #24]
	bl	_cpu_to_le16
	str	x0, [x21, #16]
	ldr	x0, [x19, #32]
	bl	_cpu_to_le16
	str	x0, [x21, #8]
	ldr	x0, [x21]
	ldr	x1, [x19, #40]
	mov	w2, #4
	bl	_memcpy
	add	x0, x21, #24
	ldr	w2, [x19, #48]
	mov	x1, x20
	bl	_memcpy
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	x0, [x19, #24]
	bl	_DEVICE_USE_CODEC1
	cbz	x0, LBB0_23
; %bb.14:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_15:
	bl	_PWC_ERROR
Lloh12:
	adrp	x8, _ENXIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_9
LBB0_16:
	ldr	w15, [x19, #84]
	cmp	w15, #1
	b.lt	LBB0_11
; %bb.17:
	mov	w8, #0
	ldr	w10, [x19, #80]
	ldpsw	x9, x11, [x19, #88]
	sub	w12, w9, w10
	cmp	w12, #0
	cinc	w13, w12, lt
	mul	x11, x11, x9
	add	w12, w11, #3
	cmp	w11, #0
	csel	w12, w12, w11, lt
	asr	w12, w12, #2
	ldp	w14, w16, [x19, #96]
	mul	w14, w14, w9
	add	w9, w14, #3
	cmp	w14, #0
	csel	w9, w9, w14, lt
	asr	w9, w9, #2
	cmp	w16, #0
	cinc	w17, w16, lt
	add	w9, w9, w17, asr #1
	sxtw	x17, w9
	add	x11, x21, x11
	add	x9, x11, x17
	add	x11, x11, w12, sxtw
	add	w12, w14, w16
	add	x16, x21, w12, sxtw
	add	x11, x11, x17
	sbfx	x12, x13, #1, #31
	sbfx	x13, x13, #2, #30
	mov	w14, #1
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x16, x16, x12, lsl #2
	tst	w8, #0x1
	csel	x17, x13, xzr, eq
	add	x9, x9, x17, lsl #2
	csel	x17, xzr, x13, eq
	add	x11, x11, x17, lsl #2
	add	w8, w8, #1
	add	w14, w14, #1
	cmp	w8, w15
	b.ge	LBB0_11
LBB0_19:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	cmp	w10, #1
	b.lt	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	w15, #0
	and	x10, x14, #0x1
	lsl	x17, x10, #2
	and	w10, w8, #0x1
	lsl	x0, x10, #2
LBB0_21:                                ;   Parent Loop BB0_19 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w10, [x20]
	str	w10, [x16]
	ldr	w10, [x20, #4]
	add	x1, x16, #8
	str	w10, [x16, #4]
	ldr	w10, [x20, #8]
	tst	w8, #0x1
	csel	x16, x9, x11, eq
	str	w10, [x16]
	add	x20, x20, #12
	add	w15, w15, #4
	ldr	w10, [x19, #80]
	add	x11, x11, x0
	add	x9, x9, x17
	mov	x16, x1
	cmp	w15, w10
	b.lt	LBB0_21
; %bb.22:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	w15, [x19, #84]
	mov	x16, x1
	b	LBB0_18
LBB0_23:
Lloh14:
	adrp	x8, _PWCX_FLAG_PLANAR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PWCX_FLAG_PLANAR@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_pwc_dec23_decompress
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_V4L2_PIX_FMT_YUV420,8,3        ; @V4L2_PIX_FMT_YUV420
	.comm	_PSZ_VGA,8,3                    ; @PSZ_VGA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Mode Bayer is not supported for now\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"This chipset is not supported for now\n"

	.comm	_PWCX_FLAG_PLANAR,4,2           ; @PWCX_FLAG_PLANAR
.subsections_via_symbols
