	.file	"extr_cmsps2.c_WriteNamedColorCRD.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"<<\n"
.LC1:
	.string	"Named profile"
.LC2:
	.string	"(colorlistcomment) (%s) \n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"(Prefix) [ (Pantone ) (PANTONE ) ]\n"
	.align 8
.LC4:
	.string	"(Suffix) [ ( CV) ( CVC) ( C) ]\n"
	.section	.rodata.str1.1
.LC5:
	.string	"  (%s) [ %s ]\n"
.LC6:
	.string	"   >>"
	.section	.rodata.str1.8
	.align 8
.LC7:
	.string	" /Current exch /HPSpotTable defineresource pop\n"
	.text
	.p2align 4
	.type	WriteNamedColorCRD, @function
WriteNamedColorCRD:
.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
	push	r14
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	mov	r14d, edx
	push	r13
	.cfi_offset 13, -40
	mov	r13, rsi
	push	r12
	.cfi_offset 12, -48
	mov	r12d, edi
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 232
	mov	QWORD PTR -272[rbp], r8
	mov	rsi, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR cmsMAX_PATH[rip]
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L3
.L30:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L30
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L31
.L4:
	mov	ecx, DWORD PTR FALSE[rip]
	mov	esi, r14d
	mov	edi, r12d
	mov	r15, rsp
	mov	edx, 2
	call	cmsFormatterForColorspaceOfProfile@PLT
	mov	rdi, rax
	mov	QWORD PTR -216[rbp], rax
	call	T_CHANNELS@PLT
	sub	rsp, 8
	mov	esi, r14d
	mov	edi, r12d
	mov	QWORD PTR -256[rbp], rax
	mov	edx, DWORD PTR TYPE_NAMED_COLOR_INDEX[rip]
	mov	r9, rbx
	xor	ecx, ecx
	push	QWORD PTR -272[rbp]
	mov	r8, QWORD PTR -216[rbp]
	call	cmsCreateTransform@PLT
	pop	rsi
	pop	rdi
	mov	r14, rax
	test	rax, rax
	je	.L7
	mov	rdi, rax
	call	cmsGetNamedColorList@PLT
	mov	QWORD PTR -264[rbp], rax
	mov	rbx, rax
	test	rax, rax
	je	.L7
	lea	rdx, .LC0[rip]
	mov	rsi, r13
	mov	edi, r12d
	xor	eax, eax
	call	_cmsIOPrintf@PLT
	mov	rsi, r13
	mov	edi, r12d
	xor	eax, eax
	lea	rcx, .LC1[rip]
	lea	rdx, .LC2[rip]
	call	_cmsIOPrintf@PLT
	mov	rsi, r13
	mov	edi, r12d
	xor	eax, eax
	lea	rdx, .LC3[rip]
	call	_cmsIOPrintf@PLT
	mov	rsi, r13
	mov	edi, r12d
	xor	eax, eax
	lea	rdx, .LC4[rip]
	call	_cmsIOPrintf@PLT
	mov	rsi, rbx
	mov	edi, r12d
	call	cmsNamedColorCount@PLT
	mov	QWORD PTR -216[rbp], rax
	test	rax, rax
	jle	.L8
	lea	rax, -200[rbp]
	mov	QWORD PTR -232[rbp], r14
	xor	ebx, ebx
	mov	QWORD PTR -248[rbp], rax
	mov	QWORD PTR -240[rbp], r13
	.p2align 4,,10
	.p2align 3
.L14:
	movsx	rax, DWORD PTR cmsMAXCHANNELS[rip]
	mov	rcx, rsp
	mov	r13, rsp
	lea	rax, 15[0+rax*8]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L10
.L32:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L32
.L10:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L11
	or	QWORD PTR -8[rsp+rdx], 0
.L11:
	mov	r14, rsp
	mov	QWORD PTR -200[rbp], rbx
	mov	rcx, r15
	mov	rdx, rbx
	push	0
	mov	rsi, QWORD PTR -264[rbp]
	xor	r9d, r9d
	xor	r8d, r8d
	push	0
	mov	edi, r12d
	call	cmsNamedColorInfo@PLT
	pop	rdx
	pop	rcx
	test	eax, eax
	je	.L28
	mov	rdx, QWORD PTR -248[rbp]
	mov	rsi, QWORD PTR -232[rbp]
	mov	rcx, r14
	mov	edi, r12d
	mov	r8d, 1
	call	cmsDoTransform@PLT
	lea	r8, -192[rbp]
	mov	rsi, QWORD PTR -256[rbp]
	mov	rdx, r14
	mov	rdi, r8
	mov	QWORD PTR -224[rbp], r8
	call	BuildColorantList@PLT
	mov	rcx, r15
	mov	edi, r12d
	xor	eax, eax
	mov	r8, QWORD PTR -224[rbp]
	mov	rsi, QWORD PTR -240[rbp]
	lea	rdx, .LC5[rip]
	call	_cmsIOPrintf@PLT
.L28:
	add	rbx, 1
	mov	rsp, r13
	cmp	QWORD PTR -216[rbp], rbx
	jne	.L14
	mov	r14, QWORD PTR -232[rbp]
	mov	r13, QWORD PTR -240[rbp]
.L8:
	lea	rdx, .LC6[rip]
	mov	rsi, r13
	mov	edi, r12d
	xor	eax, eax
	call	_cmsIOPrintf@PLT
	mov	rax, QWORD PTR -272[rbp]
	test	QWORD PTR cmsFLAGS_NODEFAULTRESOURCEDEF[rip], rax
	je	.L33
.L15:
	mov	rsi, r14
	mov	edi, r12d
	call	cmsDeleteTransform@PLT
	mov	eax, 1
.L1:
	mov	rdi, QWORD PTR -56[rbp]
	xor	rdi, QWORD PTR fs:40
	jne	.L34
	lea	rsp, -40[rbp]
	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
.L7:
	.cfi_restore_state
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L33:
	lea	rdx, .LC7[rip]
	mov	rsi, r13
	mov	edi, r12d
	xor	eax, eax
	call	_cmsIOPrintf@PLT
	jmp	.L15
.L34:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	WriteNamedColorCRD, .-WriteNamedColorCRD
	.comm	cmsMAX_PATH,4,4
	.comm	cmsMAXCHANNELS,4,4
	.comm	cmsFLAGS_NODEFAULTRESOURCEDEF,8,8
	.comm	TYPE_NAMED_COLOR_INDEX,4,4
	.comm	FALSE,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_cmsps2.c_WriteNamedColorCRD.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"<<\012\000"
	.align	2
.LC1:
	.ascii	"Named profile\000"
	.align	2
.LC2:
	.ascii	"(colorlistcomment) (%s) \012\000"
	.align	2
.LC3:
	.ascii	"(Prefix) [ (Pantone ) (PANTONE ) ]\012\000"
	.align	2
.LC4:
	.ascii	"(Suffix) [ ( CV) ( CVC) ( C) ]\012\000"
	.align	2
.LC5:
	.ascii	"  (%s) [ %s ]\012\000"
	.align	2
.LC6:
	.ascii	"   >>\000"
	.align	2
.LC7:
	.ascii	" /Current exch /HPSpotTable defineresource pop\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	WriteNamedColorCRD, %function
WriteNamedColorCRD:
	@ args = 4, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #180
	mov	r4, r2
	mov	r7, r3
	ldr	r3, .L20
	ldr	r2, .L20+4
	ldr	r3, [r3]
	ldr	ip, .L20+8
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r8, r1
	ldr	r3, [r2]
	mov	r1, r4
	mov	r2, #2
	ldr	ip, [ip]
	str	ip, [fp, #-40]
	mov	ip,#0
	mov	r6, r0
	bl	cmsFormatterForColorspaceOfProfile
	mov	r5, r0
	bl	T_CHANNELS
	mov	ip, r0
	ldr	r3, .L20+12
	mov	r1, r4
	ldr	r2, [r3]
	str	r7, [sp, #4]
	ldr	r3, [fp, #4]
	mov	r0, r6
	str	r3, [sp, #8]
	str	r5, [sp]
	mov	r3, #0
	str	ip, [fp, #-188]
	bl	cmsCreateTransform
	subs	r3, r0, #0
	str	r3, [fp, #-184]
	beq	.L4
	bl	cmsGetNamedColorList
	subs	r10, r0, #0
	beq	.L4
	mov	r1, r8
	ldr	r2, .L20+16
	mov	r0, r6
	bl	_cmsIOPrintf
	ldr	r3, .L20+20
	mov	r1, r8
	ldr	r2, .L20+24
	mov	r0, r6
	bl	_cmsIOPrintf
	mov	r1, r8
	ldr	r2, .L20+28
	mov	r0, r6
	bl	_cmsIOPrintf
	mov	r1, r8
	ldr	r2, .L20+32
	mov	r0, r6
	bl	_cmsIOPrintf
	mov	r1, r10
	mov	r0, r6
	bl	cmsNamedColorCount
	subs	r3, r0, #0
	str	r3, [fp, #-176]
	ble	.L5
	mov	r4, #0
	mov	r5, r4
	add	r9, sp, #16
	str	r8, [fp, #-192]
.L8:
	ldr	r3, .L20+36
	mov	r7, sp
	ldr	r3, [r3]
	str	r4, [fp, #-172]
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r2, r4
	mov	r3, r9
	mov	r1, r10
	mov	r0, r6
	str	r5, [sp, #12]
	str	r5, [sp, #8]
	str	r5, [sp, #4]
	str	r5, [sp]
	bl	cmsNamedColorInfo
	cmp	r0, #0
	add	r3, sp, #16
	beq	.L16
	mov	r2, #1
	str	r3, [fp, #-180]
	str	r2, [sp]
	ldr	r1, [fp, #-184]
	sub	r2, fp, #172
	mov	r0, r6
	bl	cmsDoTransform
	ldr	r3, [fp, #-180]
	sub	r8, fp, #168
	mov	r2, r3
	ldr	r1, [fp, #-188]
	mov	r0, r8
	bl	BuildColorantList
	str	r8, [sp]
	mov	r3, r9
	mov	r0, r6
	ldr	r2, .L20+40
	ldr	r1, [fp, #-192]
	bl	_cmsIOPrintf
.L16:
	ldr	r3, [fp, #-176]
	add	r4, r4, #1
	cmp	r3, r4
	mov	sp, r7
	bne	.L8
	ldr	r8, [fp, #-192]
.L5:
	ldr	r2, .L20+44
	mov	r1, r8
	mov	r0, r6
	bl	_cmsIOPrintf
	ldr	r3, .L20+48
	ldr	r2, [fp, #4]
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L18
.L9:
	mov	r0, r6
	ldr	r1, [fp, #-184]
	bl	cmsDeleteTransform
	mov	r0, #1
	b	.L1
.L4:
	mov	r0, #0
.L1:
	ldr	r3, .L20+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	mov	r1, r8
	mov	r0, r6
	ldr	r2, .L20+52
	bl	_cmsIOPrintf
	b	.L9
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	cmsMAX_PATH
	.word	FALSE
	.word	.LC8
	.word	TYPE_NAMED_COLOR_INDEX
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	cmsMAXCHANNELS
	.word	.LC5
	.word	.LC6
	.word	cmsFLAGS_NODEFAULTRESOURCEDEF
	.word	.LC7
	.size	WriteNamedColorCRD, .-WriteNamedColorCRD
	.comm	cmsMAX_PATH,4,4
	.comm	cmsMAXCHANNELS,4,4
	.comm	cmsFLAGS_NODEFAULTRESOURCEDEF,4,4
	.comm	TYPE_NAMED_COLOR_INDEX,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
