	.file	"extr_testcms2.c_CheckGBD.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Filling RAW gamut"
.LC1:
	.string	"computing Lab gamut"
.LC2:
	.string	"checking Lab gamut"
.LC3:
	.string	"checking sRGB gamut"
.LC4:
	.string	"checking LCh chroma ring"
	.text
	.p2align 4
	.type	CheckGBD, @function
CheckGBD:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	DbgThread@PLT
	mov	edi, eax
	call	cmsGBDAlloc@PLT
	test	rax, rax
	je	.L5
	lea	rdi, .LC0[rip]
	mov	rbp, rax
	lea	rbx, 24[rsp]
	xor	r13d, r13d
	call	SubTest@PLT
.L4:
	mov	r12d, -128
.L9:
	mov	r14d, -128
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L55:
	add	r14d, 5
	cmp	r14d, 132
	je	.L54
.L6:
	xor	eax, eax
	mov	DWORD PTR 24[rsp], r13d
	mov	DWORD PTR 28[rsp], r12d
	mov	DWORD PTR 32[rsp], r14d
	call	DbgThread@PLT
	mov	rdx, rbx
	mov	rsi, rbp
	mov	edi, eax
	call	cmsGDBAddPoint@PLT
	test	eax, eax
	jne	.L55
.L5:
	xor	r8d, r8d
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L56
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L54:
	.cfi_restore_state
	add	r12d, 5
	cmp	r12d, 132
	jne	.L9
	add	r13d, 10
	cmp	r13d, 110
	jne	.L4
	lea	rdi, .LC1[rip]
	call	SubTest@PLT
	xor	eax, eax
	call	DbgThread@PLT
	xor	edx, edx
	mov	rsi, rbp
	mov	edi, eax
	call	cmsGDBCompute@PLT
	test	eax, eax
	je	.L5
	lea	rdi, .LC2[rip]
	mov	r14d, 10
	call	SubTest@PLT
.L10:
	mov	r13d, -120
.L14:
	mov	r12d, -120
	.p2align 4,,10
	.p2align 3
.L11:
	xor	eax, eax
	mov	DWORD PTR 24[rsp], r14d
	mov	DWORD PTR 28[rsp], r13d
	mov	DWORD PTR 32[rsp], r12d
	call	DbgThread@PLT
	mov	rdx, rbx
	mov	rsi, rbp
	mov	edi, eax
	call	cmsGDBCheckPoint@PLT
	test	eax, eax
	je	.L5
	add	r12d, 25
	cmp	r12d, 130
	jne	.L11
	add	r13d, 25
	cmp	r13d, 130
	jne	.L14
	add	r14d, 25
	cmp	r14d, 110
	jne	.L10
	xor	eax, eax
	call	DbgThread@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	cmsGBDFree@PLT
	lea	rdi, .LC3[rip]
	call	SubTest@PLT
	xor	eax, eax
	call	DbgThread@PLT
	mov	edi, eax
	call	cmsGBDAlloc@PLT
	mov	rbp, rax
	xor	eax, eax
	call	DbgThread@PLT
	mov	edi, eax
	call	cmsCreate_sRGBProfile@PLT
	mov	r14d, eax
	xor	eax, eax
	call	DbgThread@PLT
	xor	esi, esi
	mov	edi, eax
	call	cmsCreateLab4Profile@PLT
	mov	edx, DWORD PTR cmsFLAGS_NOCACHE[rip]
	mov	r9d, DWORD PTR INTENT_RELATIVE_COLORIMETRIC[rip]
	mov	r13d, eax
	xor	eax, eax
	mov	r15d, DWORD PTR TYPE_Lab_DBL[rip]
	mov	r12d, DWORD PTR TYPE_RGB_8[rip]
	mov	DWORD PTR 12[rsp], edx
	mov	DWORD PTR [rsp], r9d
	call	DbgThread@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 152
	mov	r8d, r15d
	mov	ecx, r13d
	mov	edx, DWORD PTR 20[rsp]
	mov	edi, eax
	mov	esi, r14d
	push	rdx
	.cfi_def_cfa_offset 160
	mov	r9d, DWORD PTR 16[rsp]
	mov	edx, r12d
	call	cmsCreateTransform@PLT
	mov	r12d, eax
	xor	eax, eax
	call	DbgThread@PLT
	mov	esi, r14d
	mov	edi, eax
	call	cmsCloseProfile@PLT
	xor	eax, eax
	call	DbgThread@PLT
	mov	esi, r13d
	mov	edi, eax
	call	cmsCloseProfile@PLT
	pop	rax
	.cfi_def_cfa_offset 152
	pop	rdx
	.cfi_def_cfa_offset 144
	mov	QWORD PTR [rsp], 0
	lea	r15, 48[rsp]
.L15:
	xor	r14d, r14d
.L20:
	xor	r13d, r13d
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L16:
	add	r13, 5
	cmp	r13, 260
	je	.L57
.L17:
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR 56[rsp], r14
	mov	QWORD PTR 64[rsp], r13
	mov	QWORD PTR 48[rsp], rax
	xor	eax, eax
	call	DbgThread@PLT
	mov	rcx, rbx
	mov	rdx, r15
	mov	esi, r12d
	mov	r8d, 1
	mov	edi, eax
	call	cmsDoTransform@PLT
	xor	eax, eax
	call	DbgThread@PLT
	mov	rdx, rbx
	mov	rsi, rbp
	mov	edi, eax
	call	cmsGDBAddPoint@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L16
.L52:
	mov	DWORD PTR [rsp], r8d
.L51:
	xor	eax, eax
	call	DbgThread@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	cmsGBDFree@PLT
	mov	r8d, DWORD PTR [rsp]
	jmp	.L1
.L57:
	add	r14, 5
	cmp	r14, 260
	jne	.L20
	add	QWORD PTR [rsp], 5
	mov	rax, QWORD PTR [rsp]
	cmp	rax, 260
	jne	.L15
	xor	eax, eax
	call	DbgThread@PLT
	xor	edx, edx
	mov	rsi, rbp
	mov	edi, eax
	call	cmsGDBCompute@PLT
	test	eax, eax
	je	.L5
	mov	r13d, 10
.L21:
	mov	r14d, 10
.L26:
	mov	r9d, 10
	jmp	.L23
.L22:
	add	r9, 10
	cmp	r9, 200
	je	.L58
.L23:
	xor	eax, eax
	mov	QWORD PTR 64[rsp], r9
	mov	QWORD PTR [rsp], r9
	mov	QWORD PTR 48[rsp], r13
	mov	QWORD PTR 56[rsp], r14
	call	DbgThread@PLT
	mov	rcx, rbx
	mov	rdx, r15
	mov	esi, r12d
	mov	edi, eax
	mov	r8d, 1
	call	cmsDoTransform@PLT
	xor	eax, eax
	call	DbgThread@PLT
	mov	rdx, rbx
	mov	rsi, rbp
	mov	edi, eax
	call	cmsGDBCheckPoint@PLT
	mov	r9, QWORD PTR [rsp]
	test	eax, eax
	jne	.L22
	mov	DWORD PTR [rsp], eax
	xor	eax, eax
	call	DbgThread@PLT
	mov	esi, r12d
	mov	edi, eax
	call	cmsDeleteTransform@PLT
	jmp	.L51
.L56:
	call	__stack_chk_fail@PLT
.L58:
	add	r14, 10
	cmp	r14, 200
	jne	.L26
	add	r13, 10
	cmp	r13, 200
	jne	.L21
	xor	eax, eax
	lea	r13, 36[rsp]
	movabs	r14, 257698037830
	call	DbgThread@PLT
	mov	esi, r12d
	xor	r12d, r12d
	mov	edi, eax
	call	cmsDeleteTransform@PLT
	xor	eax, eax
	call	DbgThread@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	cmsGBDFree@PLT
	lea	rdi, .LC4[rip]
	call	SubTest@PLT
	xor	eax, eax
	call	DbgThread@PLT
	mov	edi, eax
	call	cmsGBDAlloc@PLT
	mov	rbp, rax
	jmp	.L28
.L27:
	add	r12d, 1
	cmp	r12d, 360
	je	.L59
.L28:
	xor	eax, eax
	mov	QWORD PTR 36[rsp], r14
	mov	DWORD PTR 44[rsp], r12d
	call	DbgThread@PLT
	mov	rdx, r13
	mov	rsi, rbx
	mov	edi, eax
	call	cmsLCh2Lab@PLT
	xor	eax, eax
	call	DbgThread@PLT
	mov	rdx, rbx
	mov	rsi, rbp
	mov	edi, eax
	call	cmsGDBAddPoint@PLT
	mov	r8d, eax
	test	eax, eax
	jne	.L27
	jmp	.L52
.L59:
	xor	eax, eax
	call	DbgThread@PLT
	xor	edx, edx
	mov	rsi, rbp
	mov	edi, eax
	call	cmsGDBCompute@PLT
	test	eax, eax
	je	.L5
	xor	eax, eax
	call	DbgThread@PLT
	mov	rsi, rbp
	mov	edi, eax
	call	cmsGBDFree@PLT
	mov	r8d, 1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	CheckGBD, .-CheckGBD
	.comm	cmsFLAGS_NOCACHE,4,4
	.comm	TYPE_RGB_8,4,4
	.comm	TYPE_Lab_DBL,4,4
	.comm	INTENT_RELATIVE_COLORIMETRIC,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_testcms2.c_CheckGBD.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Filling RAW gamut\000"
	.align	2
.LC1:
	.ascii	"computing Lab gamut\000"
	.align	2
.LC2:
	.ascii	"checking Lab gamut\000"
	.align	2
.LC3:
	.ascii	"checking sRGB gamut\000"
	.align	2
.LC4:
	.ascii	"checking LCh chroma ring\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CheckGBD, %function
CheckGBD:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L59
	sub	sp, sp, #56
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	bl	DbgThread
	bl	cmsGBDAlloc
	subs	r5, r0, #0
	beq	.L5
	ldr	r0, .L59+4
	bl	SubTest
	mov	r7, #0
.L4:
	mvn	r6, #127
.L9:
	mvn	r4, #127
	b	.L6
.L54:
	add	r4, r4, #5
	cmp	r4, #132
	beq	.L53
.L6:
	str	r7, [sp, #16]
	str	r6, [sp, #20]
	str	r4, [sp, #24]
	bl	DbgThread
	mov	r1, r5
	add	r2, sp, #16
	bl	cmsGDBAddPoint
	cmp	r0, #0
	bne	.L54
.L5:
	mov	r4, #0
.L1:
	ldr	r3, .L59
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L55
	mov	r0, r4
	add	sp, sp, #56
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L53:
	add	r6, r6, #5
	cmp	r6, #132
	bne	.L9
	add	r7, r7, #10
	cmp	r7, #110
	bne	.L4
	ldr	r0, .L59+8
	bl	SubTest
	bl	DbgThread
	mov	r2, #0
	mov	r1, r5
	bl	cmsGDBCompute
	cmp	r0, #0
	beq	.L5
	ldr	r0, .L59+12
	bl	SubTest
	mov	r7, #10
.L10:
	mvn	r6, #119
.L14:
	mvn	r4, #119
.L11:
	str	r7, [sp, #16]
	str	r6, [sp, #20]
	str	r4, [sp, #24]
	bl	DbgThread
	mov	r1, r5
	add	r2, sp, #16
	bl	cmsGDBCheckPoint
	cmp	r0, #0
	beq	.L5
	add	r4, r4, #25
	cmp	r4, #130
	bne	.L11
	add	r6, r6, #25
	cmp	r6, #130
	bne	.L14
	add	r7, r7, #25
	cmp	r7, #110
	bne	.L10
	bl	DbgThread
	mov	r1, r5
	bl	cmsGBDFree
	ldr	r0, .L59+16
	bl	SubTest
	bl	DbgThread
	bl	cmsGBDAlloc
	mov	r6, r0
	bl	DbgThread
	bl	cmsCreate_sRGBProfile
	mov	r5, r0
	bl	DbgThread
	mov	r1, #0
	bl	cmsCreateLab4Profile
	mov	r4, r0
	bl	DbgThread
	ldr	r1, .L59+20
	ldr	r2, .L59+24
	ldr	lr, [r1]
	ldr	r2, [r2]
	ldr	r3, .L59+28
	mov	r1, r5
	ldr	ip, [r3]
	stmib	sp, {r2, lr}
	ldr	r2, .L59+32
	str	ip, [sp]
	mov	r3, r4
	ldr	r2, [r2]
	bl	cmsCreateTransform
	mov	r7, r0
	bl	DbgThread
	mov	r1, r5
	bl	cmsCloseProfile
	bl	DbgThread
	mov	r1, r4
	bl	cmsCloseProfile
	mov	r8, #0
	mov	r10, #1
.L15:
	mov	r9, #0
.L20:
	mov	r5, #0
	b	.L17
.L16:
	add	r5, r5, #5
	cmp	r5, #260
	beq	.L56
.L17:
	str	r8, [sp, #40]
	str	r9, [sp, #44]
	str	r5, [sp, #48]
	bl	DbgThread
	mov	r1, r7
	add	r3, sp, #16
	add	r2, sp, #40
	str	r10, [sp]
	bl	cmsDoTransform
	bl	DbgThread
	mov	r1, r6
	add	r2, sp, #16
	bl	cmsGDBAddPoint
	subs	r4, r0, #0
	bne	.L16
.L51:
	bl	DbgThread
	mov	r1, r6
	bl	cmsGBDFree
	b	.L1
.L56:
	add	r9, r9, #5
	cmp	r9, #260
	bne	.L20
	add	r8, r8, #5
	cmp	r8, #260
	bne	.L15
	bl	DbgThread
	mov	r2, #0
	mov	r1, r6
	bl	cmsGDBCompute
	cmp	r0, #0
	beq	.L5
	mov	r5, #10
	mov	r10, #1
.L21:
	mov	r8, #10
.L26:
	mov	r9, #10
	b	.L23
.L22:
	add	r9, r9, #10
	cmp	r9, #200
	beq	.L57
.L23:
	str	r5, [sp, #40]
	str	r8, [sp, #44]
	str	r9, [sp, #48]
	bl	DbgThread
	mov	r1, r7
	add	r3, sp, #16
	add	r2, sp, #40
	str	r10, [sp]
	bl	cmsDoTransform
	bl	DbgThread
	mov	r1, r6
	add	r2, sp, #16
	bl	cmsGDBCheckPoint
	subs	r4, r0, #0
	bne	.L22
	bl	DbgThread
	mov	r1, r7
	bl	cmsDeleteTransform
	b	.L51
.L55:
	bl	__stack_chk_fail
.L57:
	add	r8, r8, #10
	cmp	r8, #200
	bne	.L26
	add	r5, r5, #10
	cmp	r5, #200
	bne	.L21
	bl	DbgThread
	mov	r1, r7
	bl	cmsDeleteTransform
	bl	DbgThread
	mov	r1, r6
	bl	cmsGBDFree
	ldr	r0, .L59+36
	bl	SubTest
	bl	DbgThread
	bl	cmsGBDAlloc
	mov	r6, #0
	mov	r5, r0
	mov	r8, #70
	mov	r7, #60
	b	.L28
.L27:
	add	r6, r6, #1
	cmp	r6, #360
	beq	.L58
.L28:
	str	r8, [sp, #28]
	str	r7, [sp, #32]
	str	r6, [sp, #36]
	bl	DbgThread
	add	r2, sp, #28
	add	r1, sp, #16
	bl	cmsLCh2Lab
	bl	DbgThread
	mov	r1, r5
	add	r2, sp, #16
	bl	cmsGDBAddPoint
	subs	r4, r0, #0
	bne	.L27
	bl	DbgThread
	mov	r1, r5
	bl	cmsGBDFree
	b	.L1
.L58:
	bl	DbgThread
	mov	r2, #0
	mov	r1, r5
	bl	cmsGDBCompute
	cmp	r0, #0
	beq	.L5
	bl	DbgThread
	mov	r1, r5
	bl	cmsGBDFree
	mov	r4, #1
	b	.L1
.L60:
	.align	2
.L59:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	cmsFLAGS_NOCACHE
	.word	INTENT_RELATIVE_COLORIMETRIC
	.word	TYPE_Lab_DBL
	.word	TYPE_RGB_8
	.word	.LC4
	.size	CheckGBD, .-CheckGBD
	.comm	cmsFLAGS_NOCACHE,4,4
	.comm	TYPE_RGB_8,4,4
	.comm	TYPE_Lab_DBL,4,4
	.comm	INTENT_RELATIVE_COLORIMETRIC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
