	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ICCVID_DecompressQuery
_ICCVID_DecompressQuery:                ## @ICCVID_DecompressQuery
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_TRACE
	movq	_ICERR_BADPARAM@GOTPCREL(%rip), %r12
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.1:
	movq	(%rbx), %rax
	movq	_ICCVID_MAGIC@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jne	LBB0_18
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	%r15, %rdi
	callq	_ICCVID_dump_BITMAPINFO
	movq	(%r15), %rax
	movq	_ICERR_BADFORMAT@GOTPCREL(%rip), %r13
	cmpq	(%rbx), %rax
	jne	LBB0_17
## %bb.3:
	movq	_ICERR_OK@GOTPCREL(%rip), %r12
	testq	%r14, %r14
	je	LBB0_18
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	movq	%r14, %rdi
	callq	_ICCVID_dump_BITMAPINFO
	movq	8(%r15), %rax
	cmpq	8(%r14), %rax
	jne	LBB0_17
## %bb.5:
	movl	28(%r15), %eax
	movl	28(%r14), %ecx
	cmpl	%ecx, %eax
	je	LBB0_8
## %bb.6:
	addl	%ecx, %eax
	jne	LBB0_17
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
LBB0_8:
	movq	16(%r15), %rax
	cmpq	16(%r14), %rax
	jne	LBB0_17
## %bb.9:
	movl	24(%r14), %esi
	cmpl	$32, %esi
	je	LBB0_18
## %bb.10:
	cmpl	$24, %esi
	je	LBB0_18
## %bb.11:
	cmpl	$16, %esi
	jne	LBB0_16
## %bb.12:
	movq	(%r14), %rax
	movq	_BI_BITFIELDS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.13:
	movl	32(%r14), %edi
	movl	$31744, %esi                    ## imm = 0x7C00
	movl	$992, %edx                      ## imm = 0x3E0
	movl	$31, %ecx
	callq	_ICCVID_CheckMask
	testl	%eax, %eax
	jne	LBB0_18
## %bb.14:
	movl	32(%r14), %edi
	movl	$63488, %esi                    ## imm = 0xF800
	movl	$2016, %edx                     ## imm = 0x7E0
	movl	$31, %ecx
	callq	_ICCVID_CheckMask
	testl	%eax, %eax
	jne	LBB0_18
## %bb.15:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
	jmp	LBB0_17
LBB0_16:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_TRACE
LBB0_17:
	movq	%r13, %r12
LBB0_18:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ICM_DECOMPRESS_QUERY %p %p %p\n"

	.comm	_ICCVID_MAGIC,8,3               ## @ICCVID_MAGIC
	.comm	_ICERR_BADPARAM,4,2             ## @ICERR_BADPARAM
L_.str.1:                               ## @.str.1
	.asciz	"in: "

	.comm	_ICERR_BADFORMAT,4,2            ## @ICERR_BADFORMAT
L_.str.2:                               ## @.str.2
	.asciz	"out: "

L_.str.3:                               ## @.str.3
	.asciz	"Detected inverted height for video output\n"

	.comm	_BI_BITFIELDS,8,3               ## @BI_BITFIELDS
L_.str.4:                               ## @.str.4
	.asciz	"unsupported output bit field(s) for 16-bit colors\n"

L_.str.5:                               ## @.str.5
	.asciz	"unsupported output bitcount = %d\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ICCVID_DecompressQuery
_ICCVID_DecompressQuery:                ; @ICCVID_DecompressQuery
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	stp	x1, x2, [sp, #8]
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	cbz	x21, LBB0_16
; %bb.1:
	ldr	x8, [x21]
Lloh2:
	adrp	x21, _ICCVID_MAGIC@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ICCVID_MAGIC@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.2:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_TRACE
	mov	x0, x20
	bl	_ICCVID_dump_BITMAPINFO
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.3:
	cbz	x19, LBB0_15
; %bb.4:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_TRACE
	mov	x0, x19
	bl	_ICCVID_dump_BITMAPINFO
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.5:
	ldr	w8, [x20, #28]
	ldr	w9, [x19, #28]
	cmp	w8, w9
	b.eq	LBB0_8
; %bb.6:
	cmn	w8, w9
	b.ne	LBB0_19
; %bb.7:
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
LBB0_8:
	ldr	x8, [x20, #16]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.9:
	ldr	w9, [x19, #24]
Lloh10:
	adrp	x8, _ICERR_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ICERR_OK@GOTPAGEOFF]
	cmp	w9, #32
	b.eq	LBB0_20
; %bb.10:
	cmp	w9, #24
	b.eq	LBB0_20
; %bb.11:
	cmp	w9, #16
	b.ne	LBB0_17
; %bb.12:
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _BI_BITFIELDS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BI_BITFIELDS@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.13:
	ldr	w0, [x19, #32]
	mov	w1, #31744
	mov	w2, #992
	mov	w3, #31
	bl	_ICCVID_CheckMask
	cbnz	w0, LBB0_15
; %bb.14:
	ldr	w0, [x19, #32]
	mov	w1, #63488
	mov	w2, #2016
	mov	w3, #31
	bl	_ICCVID_CheckMask
	cbz	w0, LBB0_21
LBB0_15:
Lloh15:
	adrp	x8, _ICERR_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ICERR_OK@GOTPAGEOFF]
	b	LBB0_20
LBB0_16:
Lloh17:
	adrp	x8, _ICERR_BADPARAM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ICERR_BADPARAM@GOTPAGEOFF]
	b	LBB0_20
LBB0_17:
	str	x9, [sp]
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_18:
	bl	_TRACE
LBB0_19:
Lloh21:
	adrp	x8, _ICERR_BADFORMAT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ICERR_BADFORMAT@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [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
	add	sp, sp, #80
	ret
LBB0_21:
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_18
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ICM_DECOMPRESS_QUERY %p %p %p\n"

	.comm	_ICCVID_MAGIC,8,3               ; @ICCVID_MAGIC
	.comm	_ICERR_BADPARAM,4,2             ; @ICERR_BADPARAM
l_.str.1:                               ; @.str.1
	.asciz	"in: "

	.comm	_ICERR_BADFORMAT,4,2            ; @ICERR_BADFORMAT
l_.str.2:                               ; @.str.2
	.asciz	"out: "

l_.str.3:                               ; @.str.3
	.asciz	"Detected inverted height for video output\n"

	.comm	_BI_BITFIELDS,8,3               ; @BI_BITFIELDS
l_.str.4:                               ; @.str.4
	.asciz	"unsupported output bit field(s) for 16-bit colors\n"

l_.str.5:                               ; @.str.5
	.asciz	"unsupported output bitcount = %d\n"

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