	.file	"extr_cmstypes.c_Type_ColorantOrderType_Read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	Type_ColorantOrderType_Read, @function
Type_ColorantOrderType_Read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edi
	mov	rdi, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	cmsUNUSED_PARAMETER@PLT
	lea	rdx, 4[rsp]
	mov	rsi, rbx
	mov	edi, ebp
	mov	DWORD PTR 0[r13], 0
	call	_cmsReadUInt32Number@PLT
	test	eax, eax
	je	.L11
	mov	esi, DWORD PTR cmsMAXCHANNELS[rip]
	cmp	DWORD PTR 4[rsp], esi
	jg	.L11
	mov	edx, 4
	mov	edi, ebp
	call	_cmsCalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L11
	mov	eax, DWORD PTR cmsMAXCHANNELS[rip]
	mov	esi, 255
	mov	rdi, r12
	lea	edx, 0[0+rax*4]
	call	memset@PLT
	mov	r8d, DWORD PTR 4[rsp]
	mov	rdx, r12
	mov	rsi, rbx
	mov	ecx, 4
	mov	edi, ebp
	call	[QWORD PTR [rbx]]
	cmp	eax, DWORD PTR 4[rsp]
	jne	.L13
	mov	DWORD PTR 0[r13], 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rsi, r12
	mov	edi, ebp
	call	_cmsFree@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L14:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	Type_ColorantOrderType_Read, .-Type_ColorantOrderType_Read
	.comm	cmsMAXCHANNELS,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_ColorantOrderType_Read.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Type_ColorantOrderType_Read, %function
Type_ColorantOrderType_Read:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r6, r2
	mov	r5, r0
	mov	r7, r3
	mov	r8, #0
	ldr	r3, .L13
	sub	sp, sp, #20
	mov	r0, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	cmsUNUSED_PARAMETER
	mov	r1, r6
	mov	r0, r5
	str	r8, [r7]
	add	r2, sp, #8
	bl	_cmsReadUInt32Number
	cmp	r0, r8
	beq	.L4
	ldr	r9, .L13+4
	ldr	r3, [sp, #8]
	ldr	r1, [r9]
	cmp	r3, r1
	bgt	.L4
	mov	r2, #4
	mov	r0, r5
	bl	_cmsCalloc
	subs	r4, r0, #0
	beq	.L4
	ldr	r2, [r9]
	mov	r1, #255
	lsl	r2, r2, #2
	bl	memset
	ldr	r3, [sp, #8]
	mov	r2, r4
	str	r3, [sp]
	mov	r1, r6
	mov	r3, #4
	mov	r0, r5
	ldr	r9, [r6]
	blx	r9
	ldr	r3, [sp, #8]
	cmp	r0, r3
	moveq	r3, #1
	streq	r3, [r7]
	beq	.L1
	mov	r1, r4
	mov	r0, r5
	bl	_cmsFree
	mov	r4, r8
	b	.L1
.L4:
	mov	r4, #0
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	cmsMAXCHANNELS
	.size	Type_ColorantOrderType_Read, .-Type_ColorantOrderType_Read
	.comm	cmsMAXCHANNELS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
