	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function initCIELabConversion
LCPI0_0:
	.long	0x42c80000                      ## float 100
LCPI0_1:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_initCIELabConversion:                  ## @initCIELabConversion
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	8(%rdi), %rdi
	movq	_TIFFTAG_WHITEPOINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	callq	_TIFFGetFieldDefaulted
	movq	-40(%rbp), %rax
	movss	4(%rax), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jne	LBB0_3
	jp	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	leaq	_initCIELabConversion.module(%rip), %rsi
	leaq	L_.str(%rip), %rdx
LBB0_2:
	callq	_TIFFErrorExt
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_3:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_6
## %bb.4:
	movl	$4, %edi
	callq	__TIFFmalloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	%rax, %rdi
	movq	-40(%rbp), %rax
LBB0_6:
	movl	$1120403456, -24(%rbp)          ## imm = 0x42C80000
	movss	(%rax), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movss	4(%rax), %xmm1                  ## xmm1 = mem[0],zero,zero,zero
	divss	%xmm1, %xmm0
	movss	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm0
	movss	%xmm0, -28(%rbp)
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	subss	(%rax), %xmm0
	subss	%xmm1, %xmm0
	divss	%xmm1, %xmm0
	mulss	%xmm2, %xmm0
	movss	%xmm0, -20(%rbp)
	movq	_display_sRGB@GOTPCREL(%rip), %rsi
	leaq	-28(%rbp), %rdx
	callq	_TIFFCIELabToRGBInit
	testq	%rax, %rax
	js	LBB0_8
## %bb.7:
	movq	_putcontig8bitCIELab@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_13
## %bb.11:
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	leaq	_initCIELabConversion.module(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	callq	_TIFFErrorExt
	movq	(%rbx), %rdi
	callq	__TIFFfree
	jmp	LBB0_9
LBB0_12:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	leaq	_initCIELabConversion.module(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_2
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @initCIELabConversion.module
_initCIELabConversion.module:
	.asciz	"initCIELabConversion"

	.comm	_TIFFTAG_WHITEPOINT,4,2         ## @TIFFTAG_WHITEPOINT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid value for WhitePoint tag."

L_.str.1:                               ## @.str.1
	.asciz	"No space for CIE L*a*b*->RGB conversion state."

	.comm	_display_sRGB,4,2               ## @display_sRGB
L_.str.2:                               ## @.str.2
	.asciz	"Failed to initialize CIE L*a*b*->RGB conversion state."

	.comm	_putcontig8bitCIELab,8,3        ## @putcontig8bitCIELab
	.no_dead_strip	_initCIELabConversion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function initCIELabConversion
_initCIELabConversion:                  ; @initCIELabConversion
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x0, [x0, #8]
Lloh3:
	adrp	x8, _TIFFTAG_WHITEPOINT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIFFTAG_WHITEPOINT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_TIFFGetFieldDefaulted
	ldr	x8, [sp]
	ldr	s0, [x8, #4]
	fcmp	s0, #0.0
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh6:
	adrp	x1, _initCIELabConversion.module@PAGE
Lloh7:
	add	x1, x1, _initCIELabConversion.module@PAGEOFF
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
LBB0_2:
	bl	_TIFFErrorExt
LBB0_3:
	mov	x0, #0
	b	LBB0_9
LBB0_4:
	ldr	x0, [x19]
	cbnz	x0, LBB0_7
; %bb.5:
	mov	w0, #4
	bl	__TIFFmalloc
	str	x0, [x19]
	cbz	x0, LBB0_12
; %bb.6:
	ldr	x8, [sp]
LBB0_7:
	mov	w9, #1120403456
	str	w9, [sp, #16]
	ldp	s0, s1, [x8]
	fdiv	s0, s0, s1
	fmov	s2, w9
	fmul	s0, s0, s2
	str	s0, [sp, #12]
	ldr	s0, [x8]
	fmov	s3, #1.00000000
	fsub	s0, s3, s0
	fsub	s0, s0, s1
	fdiv	s0, s0, s1
	fmul	s0, s0, s2
	str	s0, [sp, #20]
Lloh10:
	adrp	x1, _display_sRGB@GOTPAGE
Lloh11:
	ldr	x1, [x1, _display_sRGB@GOTPAGEOFF]
	add	x2, sp, #12
	bl	_TIFFCIELabToRGBInit
	tbnz	x0, #63, LBB0_11
; %bb.8:
Lloh12:
	adrp	x8, _putcontig8bitCIELab@GOTPAGE
Lloh13:
	ldr	x8, [x8, _putcontig8bitCIELab@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
LBB0_9:
	ldr	x8, [sp, #24]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh18:
	adrp	x1, _initCIELabConversion.module@PAGE
Lloh19:
	add	x1, x1, _initCIELabConversion.module@PAGEOFF
Lloh20:
	adrp	x2, l_.str.2@PAGE
Lloh21:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_TIFFErrorExt
	ldr	x0, [x19]
	bl	__TIFFfree
	b	LBB0_3
LBB0_12:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
Lloh22:
	adrp	x1, _initCIELabConversion.module@PAGE
Lloh23:
	add	x1, x1, _initCIELabConversion.module@PAGEOFF
Lloh24:
	adrp	x2, l_.str.1@PAGE
Lloh25:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_initCIELabConversion.module:           ; @initCIELabConversion.module
	.asciz	"initCIELabConversion"

	.comm	_TIFFTAG_WHITEPOINT,4,2         ; @TIFFTAG_WHITEPOINT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid value for WhitePoint tag."

l_.str.1:                               ; @.str.1
	.asciz	"No space for CIE L*a*b*->RGB conversion state."

	.comm	_display_sRGB,4,2               ; @display_sRGB
l_.str.2:                               ; @.str.2
	.asciz	"Failed to initialize CIE L*a*b*->RGB conversion state."

	.comm	_putcontig8bitCIELab,8,3        ; @putcontig8bitCIELab
	.no_dead_strip	_initCIELabConversion
.subsections_via_symbols
