	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ICCVID_DecompressGetFormat
_ICCVID_DecompressGetFormat:            ## @ICCVID_DecompressGetFormat
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_TRACE
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	_ICCVID_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movl	(%r15), %eax
	cmpl	$8, 4(%r15)
	jg	LBB0_5
## %bb.4:
	movl	8(%r15), %ecx
	leal	(%rax,%rcx,4), %eax
LBB0_5:
	testq	%r14, %r14
	je	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movl	$24, 4(%r14)
	movq	_BI_RGB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r14)
	movl	20(%r15), %edi
	movl	$24, %esi
	callq	_get_stride
	imull	16(%r15), %eax
	movl	%eax, 12(%r14)
	movq	_ICERR_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_ICERR_BADPARAM@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	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_DECOMPRESS_GETFORMAT %p %p %p\n"

	.comm	_ICCVID_MAGIC,8,3               ## @ICCVID_MAGIC
	.comm	_ICERR_BADPARAM,4,2             ## @ICERR_BADPARAM
	.comm	_BI_RGB,4,2                     ## @BI_RGB
	.comm	_ICERR_OK,4,2                   ## @ICERR_OK
	.no_dead_strip	_ICCVID_DecompressGetFormat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ICCVID_DecompressGetFormat
_ICCVID_DecompressGetFormat:            ; @ICCVID_DecompressGetFormat
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_TRACE
	cbz	x21, LBB0_6
; %bb.1:
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _ICCVID_MAGIC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ICCVID_MAGIC@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	ldp	w2, w8, [x20]
	cmp	w8, #8
	b.gt	LBB0_4
; %bb.3:
	ldr	w8, [x20, #8]
	add	w2, w2, w8, lsl #2
LBB0_4:
	cbz	x19, LBB0_8
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_memcpy
	mov	w8, #24
	str	w8, [x19, #4]
Lloh5:
	adrp	x8, _BI_RGB@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BI_RGB@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	w0, [x20, #20]
	mov	w1, #24
	bl	_get_stride
	ldr	w8, [x20, #16]
	mul	w8, w8, w0
	str	w8, [x19, #12]
Lloh8:
	adrp	x8, _ICERR_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ICERR_OK@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _ICERR_BADPARAM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ICERR_BADPARAM@GOTPAGEOFF]
LBB0_7:
	ldr	w2, [x8]
LBB0_8:
	mov	x0, x2
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ICM_DECOMPRESS_GETFORMAT %p %p %p\n"

	.comm	_ICCVID_MAGIC,8,3               ; @ICCVID_MAGIC
	.comm	_ICERR_BADPARAM,4,2             ; @ICERR_BADPARAM
	.comm	_BI_RGB,4,2                     ; @BI_RGB
	.comm	_ICERR_OK,4,2                   ; @ICERR_OK
	.no_dead_strip	_ICCVID_DecompressGetFormat
.subsections_via_symbols
