	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ICCVID_DecompressEx
_ICCVID_DecompressEx:                   ## @ICCVID_DecompressEx
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ecx
	movq	%rsi, %r14
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_TRACE
	movq	_ICERR_BADPARAM@GOTPCREL(%rip), %r15
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movq	(%rbx), %rax
	movq	_ICCVID_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.2:
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	movq	8(%r14), %rax
	movl	8(%rax), %r8d
	movl	(%rax), %edx
	movl	4(%rax), %r9d
	movq	24(%r14), %rcx
	xorl	%eax, %eax
	movl	(%rcx), %ecx
	addl	%r9d, %ecx
	sete	%al
	movl	16(%r14), %esi
	movl	(%r14), %ecx
	movl	8(%rbx), %ebx
	pushq	%rax
	pushq	%rbx
	callq	_decode_cinepak
	addq	$16, %rsp
	movq	_ICERR_OK@GOTPCREL(%rip), %r15
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_ERR
LBB0_5:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ICM_DECOMPRESSEX %p %p %d\n"

	.comm	_ICCVID_MAGIC,8,3               ## @ICCVID_MAGIC
	.comm	_ICERR_BADPARAM,4,2             ## @ICERR_BADPARAM
L_.str.1:                               ## @.str.1
	.asciz	"ICM_DECOMPRESSEX sent after ICM_DECOMPRESS_END\n"

	.comm	_ICERR_OK,4,2                   ## @ICERR_OK
	.no_dead_strip	_ICCVID_DecompressEx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ICCVID_DecompressEx
_ICCVID_DecompressEx:                   ; @ICCVID_DecompressEx
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x3, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	bl	_TRACE
	cbz	x20, LBB0_5
; %bb.1:
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _ICCVID_MAGIC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ICCVID_MAGIC@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	ldp	w5, w4, [x8, #4]
	ldr	x9, [x19, #24]
	ldr	w9, [x9]
	ldr	w2, [x8]
	cmn	w5, w9
	cset	w7, eq
	ldr	w1, [x19, #16]
	ldr	w3, [x19]
	ldr	w6, [x20, #8]
	bl	_decode_cinepak
Lloh5:
	adrp	x8, _ICERR_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ICERR_OK@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ERR
LBB0_5:
Lloh9:
	adrp	x8, _ICERR_BADPARAM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICERR_BADPARAM@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ICM_DECOMPRESSEX %p %p %d\n"

	.comm	_ICCVID_MAGIC,8,3               ; @ICCVID_MAGIC
	.comm	_ICERR_BADPARAM,4,2             ; @ICERR_BADPARAM
l_.str.1:                               ; @.str.1
	.asciz	"ICM_DECOMPRESSEX sent after ICM_DECOMPRESS_END\n"

	.comm	_ICERR_OK,4,2                   ; @ICERR_OK
	.no_dead_strip	_ICCVID_DecompressEx
.subsections_via_symbols
