	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function buildMap
_buildMap:                              ## @buildMap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	jb	LBB0_5
## %bb.1:
	leal	-132(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_6
## %bb.2:
	cmpl	$131, %eax
	jne	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	callq	_checkcmap
	cmpl	$16, %eax
	jne	LBB0_10
## %bb.4:
	movq	%rbx, %rdi
	callq	_cvtcmap
	cmpl	$8, 4(%rbx)
	jg	LBB0_7
	jmp	LBB0_11
LBB0_5:
	cmpl	$8, 4(%rbx)
	je	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	callq	_setupMap
	testl	%eax, %eax
	je	LBB0_9
LBB0_7:
	movl	$1, %eax
	jmp	LBB0_8
LBB0_10:
	movq	8(%rbx), %rdi
	movl	(%rdi), %r14d
	callq	_TIFFFileName
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_TIFFWarningExt
	cmpl	$8, 4(%rbx)
	jg	LBB0_7
LBB0_11:
	movq	%rbx, %rdi
	callq	_makecmap
	testl	%eax, %eax
	jne	LBB0_7
LBB0_9:
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Assuming 8-bit colormap"

	.no_dead_strip	_buildMap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function buildMap
_buildMap:                              ; @buildMap
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	sub	w9, w8, #128
	cmp	w9, #3
	b.lo	LBB0_5
; %bb.1:
	sub	w9, w8, #132
	cmp	w9, #2
	b.lo	LBB0_6
; %bb.2:
	cmp	w8, #131
	b.ne	LBB0_7
; %bb.3:
	mov	x0, x19
	bl	_checkcmap
	cmp	w0, #16
	b.ne	LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_cvtcmap
	b	LBB0_10
LBB0_5:
	ldr	w8, [x19, #4]
	cmp	w8, #8
	b.eq	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_setupMap
	cbz	w0, LBB0_8
LBB0_7:
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	x0, [x19, #8]
	ldr	w20, [x0]
	bl	_TIFFFileName
	mov	x1, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_TIFFWarningExt
LBB0_10:
	ldr	w8, [x19, #4]
	cmp	w8, #8
	b.gt	LBB0_7
; %bb.11:
	mov	x0, x19
	bl	_makecmap
	cbnz	w0, LBB0_7
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Assuming 8-bit colormap"

	.no_dead_strip	_buildMap
.subsections_via_symbols
