	.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
	movq	%rsi, %r13
	movq	%rdi, %r14
	xorl	%r12d, %r12d
	movq	%rsi, %rdi
	xorl	%esi, %esi
	callq	_vb2_plane_vaddr
	movq	%rax, %r15
	movslq	(%r14), %rbx
	addq	8(%r13), %rbx
	movq	8(%r14), %rax
	movq	_V4L2_PIX_FMT_YUV420@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movl	44(%r14), %eax
	imull	48(%r14), %eax
	leal	(%rax,%rax,2), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_vb2_set_plane_payload
	cmpq	$0, 24(%r14)
	je	LBB0_3
## %bb.10:
	movq	16(%r14), %rdi
	callq	_DEVICE_USE_CODEC1
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_.str(%rip), %rdi
	callq	_PWC_ERROR
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_1:
	movq	16(%r14), %rdi
	callq	_cpu_to_le16
	movq	%rax, 16(%r15)
	movq	24(%r14), %rdi
	callq	_cpu_to_le16
	movq	%rax, 8(%r15)
	movq	(%r15), %rdi
	movq	32(%r14), %rsi
	movl	$4, %edx
	callq	_memcpy
	addq	$24, %r15
	movl	40(%r14), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_memcpy
	movl	40(%r14), %edx
	addl	$24, %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_vb2_set_plane_payload
	jmp	LBB0_14
LBB0_3:
	movl	48(%r14), %r8d
	testl	%r8d, %r8d
	jle	LBB0_14
## %bb.4:
	movl	44(%r14), %edi
	movl	%r8d, %eax
	imull	%edi, %eax
	movslq	%eax, %rcx
	movq	%r15, %rax
	addq	%rcx, %rax
	leal	3(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$2, %edx
	movslq	%edx, %rcx
	addq	%rax, %rcx
	xorl	%r10d, %r10d
	movb	$1, %r9b
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r10d
	incb	%r9b
	cmpl	%r8d, %r10d
	jge	LBB0_13
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	testl	%edi, %edi
	jle	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movzbl	%r9b, %r8d
	andl	$1, %r8d
	shlq	$2, %r8
	movl	%r10d, %r11d
	andl	$1, %r11d
	shlq	$2, %r11
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %edi
	movl	%edi, (%r15)
	movl	4(%rbx), %edi
	movl	%edi, 4(%r15)
	addq	$8, %r15
	testb	$1, %r10b
	movq	%rcx, %rdi
	cmoveq	%rax, %rdi
	movl	8(%rbx), %edx
	movl	%edx, (%rdi)
	addq	$12, %rbx
	addl	$4, %esi
	movl	44(%r14), %edi
	addq	%r11, %rcx
	addq	%r8, %rax
	cmpl	%edi, %esi
	jl	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	48(%r14), %r8d
	jmp	LBB0_9
LBB0_12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_pwc_dec23_decompress
LBB0_13:
	xorl	%r12d, %r12d
LBB0_14:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_PIX_FMT_YUV420,8,3        ## @V4L2_PIX_FMT_YUV420
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"This chipset is not supported for now\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
.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
	mov	x22, x1
	mov	x19, x0
	mov	x0, x1
	mov	w1, #0
	bl	_vb2_plane_vaddr
	mov	x21, x0
	ldr	x8, [x22, #8]
	ldrsw	x9, [x19]
	add	x20, x8, x9
	ldr	x8, [x19, #8]
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_4
; %bb.1:
	ldp	w8, w9, [x19, #44]
	mul	w8, w8, w9
	add	w8, w8, w8, lsl #1
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	x0, x22
	mov	w1, #0
	bl	_vb2_set_plane_payload
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x0, [x19, #16]
	bl	_DEVICE_USE_CODEC1
	cbz	x0, LBB0_12
; %bb.3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_PWC_ERROR
Lloh5:
	adrp	x8, _ENXIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_4:
	ldr	x0, [x19, #16]
	bl	_cpu_to_le16
	str	x0, [x21, #16]
	ldr	x0, [x19, #24]
	bl	_cpu_to_le16
	str	x0, [x21, #8]
	ldr	x0, [x21]
	ldr	x1, [x19, #32]
	mov	w2, #4
	bl	_memcpy
	add	x0, x21, #24
	ldr	w2, [x19, #40]
	mov	x1, x20
	bl	_memcpy
	ldr	w8, [x19, #40]
	add	w2, w8, #24
	mov	x0, x22
	mov	w1, #0
	bl	_vb2_set_plane_payload
	b	LBB0_13
LBB0_5:
	ldr	w13, [x19, #48]
	cmp	w13, #1
	b.lt	LBB0_13
; %bb.6:
	mov	w8, #0
	ldr	w12, [x19, #44]
	mul	w10, w13, w12
	add	x9, x21, w10, sxtw
	add	w11, w10, #3
	cmp	w10, #0
	csel	w10, w11, w10, lt
	asr	w10, w10, #2
	add	x10, x9, w10, sxtw
	mov	w11, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w8, w8, #1
	add	w11, w11, #1
	cmp	w8, w13
	b.ge	LBB0_13
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w12, #1
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w13, #0
	and	x12, x11, #0x1
	lsl	x14, x12, #2
	and	w12, w8, #0x1
	lsl	x15, x12, #2
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x20]
	str	w12, [x21]
	ldr	w12, [x20, #4]
	add	x16, x21, #8
	str	w12, [x21, #4]
	ldr	w12, [x20, #8]
	tst	w8, #0x1
	csel	x17, x9, x10, eq
	str	w12, [x17]
	add	x20, x20, #12
	add	w13, w13, #4
	ldr	w12, [x19, #44]
	add	x10, x10, x15
	add	x9, x9, x14
	mov	x21, x16
	cmp	w13, w12
	b.lt	LBB0_10
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w13, [x19, #48]
	mov	x21, x16
	b	LBB0_7
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_pwc_dec23_decompress
LBB0_13:
	mov	w0, #0
LBB0_14:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_PIX_FMT_YUV420,8,3        ; @V4L2_PIX_FMT_YUV420
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"This chipset is not supported for now\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
.subsections_via_symbols
