	.file	"extr_tif_getimage.c_setupMap.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"No space for photometric conversion table"
	.text
	.p2align 4
	.type	setupMap, @function
setupMap:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rcx, QWORD PTR [rdi]
	cmp	rcx, 16
	je	.L13
	mov	edi, 1
	sal	rdi, cl
	lea	ebx, -1[rdi]
	sal	edi, 3
.L2:
	call	_TIFFmalloc@PLT
	mov	QWORD PTR 8[rbp], rax
	mov	rsi, rax
	test	rax, rax
	je	.L23
	mov	r9, QWORD PTR 16[rbp]
	cmp	r9, QWORD PTR PHOTOMETRIC_MINISWHITE[rip]
	je	.L5
	test	ebx, ebx
	js	.L6
	mov	r8d, ebx
	xor	edi, edi
	xor	ecx, ecx
	sal	r8d, 8
	sub	r8d, ebx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rsi, QWORD PTR 8[rbp]
	add	ecx, 255
.L7:
	mov	eax, ecx
	cdq
	idiv	ebx
	cdqe
	mov	QWORD PTR [rsi+rdi], rax
	add	rdi, 8
	cmp	r8d, ecx
	jne	.L24
.L6:
	cmp	QWORD PTR 0[rbp], 16
	jg	.L21
	cmp	r9, QWORD PTR PHOTOMETRIC_MINISBLACK[rip]
	je	.L12
.L21:
	mov	eax, 1
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	test	ebx, ebx
	js	.L8
	mov	ecx, ebx
	xor	edi, edi
	sal	ecx, 8
	sub	ecx, ebx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rsi, QWORD PTR 8[rbp]
.L9:
	mov	eax, ecx
	sub	ecx, 255
	cdq
	idiv	ebx
	cdqe
	mov	QWORD PTR [rsi+rdi], rax
	add	rdi, 8
	cmp	ecx, -255
	jne	.L25
.L8:
	cmp	QWORD PTR 0[rbp], 16
	jg	.L21
.L12:
	mov	rdi, rbp
	call	makebwmap@PLT
	test	eax, eax
	je	.L1
	mov	rdi, QWORD PTR 8[rbp]
	call	_TIFFfree@PLT
	mov	QWORD PTR 8[rbp], 0
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, 2048
	mov	ebx, 255
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, QWORD PTR 24[rbp]
	call	TIFFFileName@PLT
	lea	rdx, .LC0[rip]
	mov	esi, eax
	mov	rax, QWORD PTR 24[rbp]
	mov	edi, DWORD PTR [rax]
	call	TIFFErrorExt@PLT
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	setupMap, .-setupMap
	.comm	PHOTOMETRIC_MINISWHITE,8,8
	.comm	PHOTOMETRIC_MINISBLACK,8,8
	.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_tif_getimage.c_setupMap.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"No space for photometric conversion table\000"
	.global	__aeabi_idiv
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setupMap, %function
setupMap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	cmp	r3, #16
	mov	r6, r0
	movne	r0, #4
	mvnne	r7, #0
	moveq	r0, #1024
	lslne	r0, r0, r3
	mvnne	r7, r7, lsl r3
	moveq	r7, #255
	bl	_TIFFmalloc
	cmp	r0, #0
	mov	r4, r0
	mov	r5, r0
	str	r0, [r6, #4]
	beq	.L22
	ldr	r3, .L25
	ldr	r9, [r6, #8]
	ldr	r3, [r3]
	cmp	r9, r3
	beq	.L5
	cmp	r7, #0
	blt	.L6
	mov	r4, #0
	add	r8, r7, #1
	b	.L7
.L23:
	ldr	r5, [r6, #4]
.L7:
	rsb	r0, r4, r4, lsl #8
	mov	r1, r7
	bl	__aeabi_idiv
	str	r0, [r5, r4, lsl #2]
	add	r4, r4, #1
	cmp	r4, r8
	bne	.L23
.L6:
	ldr	r3, [r6]
	cmp	r3, #16
	bgt	.L11
	ldr	r3, .L25+4
	ldr	r3, [r3]
	cmp	r9, r3
	beq	.L12
.L11:
	mov	r4, #1
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	cmp	r7, #0
	blt	.L8
	mov	r8, #0
	rsb	r4, r7, r7, lsl #8
	b	.L9
.L24:
	ldr	r5, [r6, #4]
.L9:
	mov	r0, r4
	mov	r1, r7
	bl	__aeabi_idiv
	sub	r4, r4, #255
	cmn	r4, #255
	str	r0, [r5, r8]
	add	r8, r8, #4
	bne	.L24
.L8:
	ldr	r3, [r6]
	cmp	r3, #16
	bgt	.L11
.L12:
	mov	r0, r6
	bl	makebwmap
	subs	r4, r0, #0
	beq	.L1
	ldr	r0, [r6, #4]
	bl	_TIFFfree
	mov	r4, #1
	mov	r3, #0
	mov	r0, r4
	str	r3, [r6, #4]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L22:
	ldr	r0, [r6, #12]
	ldr	r5, [r0]
	bl	TIFFFileName
	ldr	r2, .L25+8
	mov	r1, r0
	mov	r0, r5
	bl	TIFFErrorExt
	b	.L1
.L26:
	.align	2
.L25:
	.word	PHOTOMETRIC_MINISWHITE
	.word	PHOTOMETRIC_MINISBLACK
	.word	.LC0
	.size	setupMap, .-setupMap
	.comm	PHOTOMETRIC_MINISWHITE,4,4
	.comm	PHOTOMETRIC_MINISBLACK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
