	.file	"extr_cmstypes.c_Type_NamedColor_Read.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Too many named colors '%d'"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Too many device coordinates '%d'"
	.text
	.p2align 4
	.type	Type_NamedColor_Read, @function
Type_NamedColor_Read:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15, rcx
	push	r14
	push	r13
	push	r12
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12d, edi
	mov	rdi, rsi
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 200
	mov	QWORD PTR -240[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	call	cmsUNUSED_PARAMETER@PLT
	mov	QWORD PTR [r15], 0
	mov	rsi, rbx
	mov	edi, r12d
	lea	rdx, -200[rbp]
	call	_cmsReadUInt32Number@PLT
	test	eax, eax
	je	.L37
	lea	rdx, -192[rbp]
	mov	rsi, rbx
	mov	edi, r12d
	call	_cmsReadUInt32Number@PLT
	test	eax, eax
	je	.L37
	lea	rdx, -184[rbp]
	mov	rsi, rbx
	mov	edi, r12d
	call	_cmsReadUInt32Number@PLT
	test	eax, eax
	je	.L37
	lea	r13, -160[rbp]
	mov	r8d, 1
	mov	rsi, rbx
	mov	edi, r12d
	mov	ecx, 32
	mov	rdx, r13
	call	[QWORD PTR [rbx]]
	cmp	eax, 1
	jne	.L37
	lea	r14, -128[rbp]
	mov	r8d, 1
	mov	rsi, rbx
	mov	edi, r12d
	mov	ecx, 32
	mov	rdx, r14
	call	[QWORD PTR [rbx]]
	cmp	eax, 1
	jne	.L37
	mov	rdx, QWORD PTR -184[rbp]
	mov	rcx, r13
	mov	r8, r14
	mov	edi, r12d
	mov	rsi, QWORD PTR -192[rbp]
	mov	BYTE PTR -97[rbp], 0
	mov	BYTE PTR -129[rbp], 0
	call	cmsAllocNamedColorList@PLT
	mov	r13, rax
	test	rax, rax
	je	.L39
	mov	rcx, QWORD PTR -184[rbp]
	mov	rdx, QWORD PTR cmsMAXCHANNELS[rip]
	cmp	rcx, rdx
	jg	.L40
	lea	rax, -96[rbp]
	cmp	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -232[rbp], rax
	lea	rax, -172[rbp]
	mov	QWORD PTR -224[rbp], rax
	jle	.L14
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rax, 15[0+rdx*4]
	mov	rsi, rsp
	mov	r15, rsp
	mov	rcx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rcx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L9
.L41:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L41
.L9:
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	je	.L10
	or	QWORD PTR -8[rsp+rcx], 0
.L10:
	mov	r14, rsp
	sal	edx, 2
	xor	esi, esi
	mov	rdi, r14
	call	memset@PLT
	mov	ecx, 32
	mov	rsi, rbx
	mov	edi, r12d
	mov	rdx, QWORD PTR -232[rbp]
	mov	r8d, 1
	call	[QWORD PTR [rbx]]
	cmp	eax, 1
	jne	.L11
	mov	edx, 3
	mov	rsi, rbx
	mov	edi, r12d
	mov	BYTE PTR -64[rbp], 0
	mov	rcx, QWORD PTR -224[rbp]
	call	_cmsReadUInt16Array@PLT
	test	eax, eax
	je	.L11
	mov	rdx, QWORD PTR -184[rbp]
	mov	rcx, r14
	mov	rsi, rbx
	mov	edi, r12d
	call	_cmsReadUInt16Array@PLT
	test	eax, eax
	je	.L11
	mov	rcx, QWORD PTR -224[rbp]
	mov	r8, r14
	mov	rsi, r13
	mov	edi, r12d
	mov	rdx, QWORD PTR -232[rbp]
	call	cmsAppendNamedColor@PLT
	test	eax, eax
	je	.L11
	mov	rsp, r15
	add	QWORD PTR -216[rbp], 1
	mov	rax, QWORD PTR -216[rbp]
	cmp	QWORD PTR -192[rbp], rax
	jle	.L14
	mov	rdx, QWORD PTR cmsMAXCHANNELS[rip]
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rsp, r15
.L7:
	mov	rsi, r13
	mov	edi, r12d
	call	cmsFreeNamedColorList@PLT
	.p2align 4,,10
	.p2align 3
.L37:
	xor	r13d, r13d
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L42
	lea	rsp, -40[rbp]
	mov	rax, r13
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR -240[rbp]
	mov	QWORD PTR [rax], 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L40:
	mov	esi, DWORD PTR cmsERROR_RANGE[rip]
	lea	rdx, .LC1[rip]
	mov	edi, r12d
	call	cmsSignalError@PLT
	jmp	.L7
.L39:
	mov	rcx, QWORD PTR -192[rbp]
	mov	esi, DWORD PTR cmsERROR_RANGE[rip]
	lea	rdx, .LC0[rip]
	mov	edi, r12d
	call	cmsSignalError@PLT
	jmp	.L1
.L42:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	Type_NamedColor_Read, .-Type_NamedColor_Read
	.comm	cmsMAXCHANNELS,8,8
	.comm	cmsERROR_RANGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_cmstypes.c_Type_NamedColor_Read.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Too many named colors '%d'\000"
	.align	2
.LC1:
	.ascii	"Too many device coordinates '%d'\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Type_NamedColor_Read, %function
Type_NamedColor_Read:
	@ args = 4, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #148
	mov	r4, r2
	mov	r5, r0
	mov	r9, r3
	mov	r6, #0
	ldr	r3, .L36
	mov	r0, r1
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	cmsUNUSED_PARAMETER
	mov	r1, r4
	mov	r0, r5
	str	r6, [r9]
	sub	r2, fp, #164
	bl	_cmsReadUInt32Number
	cmp	r0, r6
	beq	.L30
	mov	r1, r4
	mov	r0, r5
	sub	r2, fp, #160
	bl	_cmsReadUInt32Number
	cmp	r0, #0
	beq	.L30
	mov	r1, r4
	mov	r0, r5
	sub	r2, fp, #156
	bl	_cmsReadUInt32Number
	cmp	r0, #0
	beq	.L30
	mov	r3, #1
	str	r3, [sp]
	mov	r1, r4
	mov	r3, #32
	mov	r0, r5
	ldr	r7, [r4]
	sub	r2, fp, #140
	blx	r7
	cmp	r0, #1
	bne	.L30
	str	r0, [sp]
	ldr	r7, [r4]
	mov	r3, #32
	mov	r1, r4
	mov	r0, r5
	sub	r2, fp, #108
	blx	r7
	cmp	r0, #1
	mov	r7, r0
	bne	.L30
	sub	r0, fp, #108
	ldr	r2, [fp, #-156]
	ldr	r1, [fp, #-160]
	strb	r6, [fp, #-77]
	strb	r6, [fp, #-109]
	sub	r3, fp, #140
	str	r0, [sp]
	mov	r0, r5
	bl	cmsAllocNamedColorList
	subs	r8, r0, #0
	beq	.L32
	ldr	r2, .L36+4
	ldr	r3, [fp, #-156]
	ldr	r2, [r2]
	cmp	r3, r2
	bgt	.L33
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	strgt	r7, [fp, #-168]
	bgt	.L10
	b	.L11
.L34:
	mov	ip, #0
	mov	r2, #3
	mov	r1, r4
	mov	r0, r5
	sub	r3, fp, #152
	strb	ip, [fp, #-44]
	bl	_cmsReadUInt16Array
	cmp	r0, #0
	beq	.L8
	mov	r3, r7
	mov	r1, r4
	mov	r0, r5
	ldr	r2, [fp, #-156]
	bl	_cmsReadUInt16Array
	cmp	r0, #0
	beq	.L8
	mov	r1, r8
	mov	r0, r5
	str	r7, [sp]
	sub	r3, fp, #152
	sub	r2, fp, #76
	bl	cmsAppendNamedColor
	cmp	r0, #0
	beq	.L8
	ldr	r3, [fp, #-160]
	add	r6, r6, #1
	cmp	r3, r6
	mov	sp, r10
	ble	.L11
	ldr	r3, .L36+4
	ldr	r2, [r3]
.L10:
	lsl	r2, r2, #2
	add	r3, r2, #7
	bic	r3, r3, #7
	mov	r10, sp
	sub	sp, sp, r3
	add	r7, sp, #8
	mov	r1, #0
	mov	r0, r7
	bl	memset
	ldr	r3, [fp, #-168]
	mov	r1, r4
	str	r3, [sp]
	mov	r0, r5
	mov	r3, #32
	ldr	ip, [r4]
	sub	r2, fp, #76
	blx	ip
	cmp	r0, #1
	beq	.L34
.L8:
	mov	sp, r10
.L7:
	mov	r1, r8
	mov	r0, r5
	bl	cmsFreeNamedColorList
.L30:
	mov	r8, #0
.L1:
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	mov	r0, r8
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	mov	r3, #1
	str	r3, [r9]
	b	.L1
.L33:
	ldr	r2, .L36+8
	mov	r0, r5
	ldr	r1, [r2]
	ldr	r2, .L36+12
	bl	cmsSignalError
	b	.L7
.L32:
	ldr	r3, .L36+8
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r2, .L36+16
	ldr	r3, [fp, #-160]
	bl	cmsSignalError
	b	.L1
.L35:
	bl	__stack_chk_fail
.L37:
	.align	2
.L36:
	.word	.LC2
	.word	cmsMAXCHANNELS
	.word	cmsERROR_RANGE
	.word	.LC1
	.word	.LC0
	.size	Type_NamedColor_Read, .-Type_NamedColor_Read
	.comm	cmsMAXCHANNELS,4,4
	.comm	cmsERROR_RANGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
