	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_dec23_decompress           ## -- Begin function pwc_dec23_decompress
	.p2align	4, 0x90
_pwc_dec23_decompress:                  ## @pwc_dec23_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r10
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %edx
	movq	_PWCX_FLAG_BAYER@GOTPCREL(%rip), %rdi
	testl	%ecx, (%rdi)
	je	LBB0_1
## %bb.5:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	imull	4(%rcx), %edx
	movq	%r10, %rdi
	xorl	%esi, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_1:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	12(%rcx), %ecx
	leal	3(%rcx), %ebx
	cmpl	$7, %ebx
	jb	LBB0_4
## %bb.2:
	movslq	%edx, %r9
	testl	%ecx, %ecx
	cmovnsl	%ecx, %ebx
	sarl	$2, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	4(%r14), %r13d
	imull	%edx, %r13d
	leaq	(%r10,%r13), %r15
	shrl	$2, %r13d
	addq	%r15, %r13
	movslq	24(%r14), %r12
	imulq	%r9, %r12
	leal	3(%r12), %eax
	testl	%r12d, %r12d
	cmovnsl	%r12d, %eax
	leaq	(,%r9,4), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	sarl	$2, %eax
	movslq	28(%r14), %r9
	movl	%r9d, %edi
	shrl	$31, %edi
	addl	%r9d, %edi
	sarl	%edi
	addl	%eax, %edi
	movslq	%edi, %rax
	addq	%rax, %r13
	addq	%rax, %r15
	addq	%r10, %r12
	addq	%r9, %r12
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	16(%r14), %r9d
	movl	20(%r14), %edi
	movl	%edx, (%rsp)
	movq	%r12, %rdx
	movq	%r15, %rcx
	movq	%rsi, %rbx
	movq	%r13, %r8
	callq	_DecompressBand23
	movq	%rbx, %rsi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movslq	8(%r14), %rax
	addq	%rax, %rsi
	addq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	movslq	(%r14), %rdx
	addq	%rdx, %r15
	addq	%rdx, %r13
	decl	%ebx
	jne	LBB0_3
LBB0_4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PWCX_FLAG_BAYER,4,2            ## @PWCX_FLAG_BAYER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pwc_dec23_decompress           ; -- Begin function pwc_dec23_decompress
	.p2align	2
_pwc_dec23_decompress:                  ; @pwc_dec23_decompress
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w6, [x0]
Lloh0:
	adrp	x8, _PWCX_FLAG_BAYER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PWCX_FLAG_BAYER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w3
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19, #4]
	mul	w8, w8, w6
	mov	x0, x2
	mov	w1, #0
	mov	x2, x8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_memset
LBB0_2:
	ldr	w8, [x19, #12]
	add	w9, w8, #3
	cmp	w9, #7
	b.lo	LBB0_5
; %bb.3:
	mov	x20, x1
	sxtw	x10, w6
	sbfiz	x24, x6, #2, #32
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w25, w8, #2
	ldr	w8, [x19, #4]
	mul	w8, w8, w6
	lsr	w9, w8, #2
	add	x8, x2, x8
	add	x9, x8, x9
	ldpsw	x11, x12, [x19, #24]
	mul	x10, x11, x10
	add	w11, w10, #3
	cmp	w10, #0
	csel	w11, w11, w10, lt
	asr	w11, w11, #2
	cmp	w12, #0
	cinc	w13, w12, lt
	add	w11, w11, w13, asr #1
	sxtw	x11, w11
	add	x21, x9, x11
	add	x22, x8, x11
	add	x8, x2, x10
	add	x23, x8, x12
                                        ; kill: def $w6 killed $w6 killed $x6 def $x6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w25, w25, #1
	ldp	w5, w0, [x19, #16]
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
                                        ; kill: def $w6 killed $w6 killed $x6
	bl	_DecompressBand23
	ldrsw	x8, [x19, #8]
	add	x20, x20, x8
	add	x23, x23, x24
	ldrsw	x6, [x19]
	add	x22, x22, x6
	add	x21, x21, x6
	cbnz	w25, LBB0_4
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PWCX_FLAG_BAYER,4,2            ; @PWCX_FLAG_BAYER
.subsections_via_symbols
