	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TIFFReadDirEntryDataAndRealloc
_TIFFReadDirEntryDataAndRealloc:        ## @TIFFReadDirEntryDataAndRealloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r13
	movl	%esi, %r12d
	movq	%rdi, %r15
	callq	_isMapped
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_SeekOK
	movq	_TIFFReadDirEntryErrIo@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r13, %r12
	jge	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rdi
	movq	%r13, %rsi
	callq	__TIFFrealloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rbx
	subq	%r12, %rbx
	movq	%rax, (%r14)
	addq	%r12, %rax
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_TIFFReadFile
	addq	%rax, %r12
	cmpq	%rbx, %rax
	je	LBB0_2
## %bb.7:
	movq	_TIFFReadDirEntryErrIo@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_3:
	movq	_TIFFReadDirEntryErrOk@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_5:
	movl	(%r15), %esi
	movl	4(%r15), %edi
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %r8d
	movq	%r13, %r9
	callq	_TIFFErrorExt
	movq	_TIFFReadDirEntryErrAlloc@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIFFReadDirEntryErrIo,4,2      ## @TIFFReadDirEntryErrIo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate memory for %s (%ld elements of %ld bytes each)"

L_.str.1:                               ## @.str.1
	.asciz	"TIFFReadDirEntryArray"

	.comm	_TIFFReadDirEntryErrAlloc,4,2   ## @TIFFReadDirEntryErrAlloc
	.comm	_TIFFReadDirEntryErrOk,4,2      ## @TIFFReadDirEntryErrOk
	.comm	_INITIAL_THRESHOLD,8,3          ## @INITIAL_THRESHOLD
	.comm	_MAX_THRESHOLD,8,3              ## @MAX_THRESHOLD
	.comm	_THRESHOLD_MULTIPLIER,8,3       ## @THRESHOLD_MULTIPLIER
	.no_dead_strip	_TIFFReadDirEntryDataAndRealloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TIFFReadDirEntryDataAndRealloc
_TIFFReadDirEntryDataAndRealloc:        ; @TIFFReadDirEntryDataAndRealloc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	bl	_isMapped
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x21
	mov	x1, x22
	bl	_SeekOK
	cbz	w0, LBB0_6
; %bb.1:
	mov	x24, #0
Lloh0:
	adrp	x23, _TIFFReadDirEntryErrOk@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TIFFReadDirEntryErrOk@GOTPAGEOFF]
Lloh2:
	adrp	x25, _TIFFReadDirEntryErrIo@GOTPAGE
Lloh3:
	ldr	x25, [x25, _TIFFReadDirEntryErrIo@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x24, x19
	b.ge	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x20]
	mov	x1, x19
	bl	__TIFFrealloc
	cbz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x22, x19, x24
	str	x0, [x20]
	add	x1, x0, x24
	mov	x0, x21
	mov	x2, x22
	bl	_TIFFReadFile
	add	x24, x0, x24
	cmp	x0, x22
	b.eq	LBB0_2
; %bb.5:
	mov	x23, x25
	b	LBB0_8
LBB0_6:
Lloh4:
	adrp	x23, _TIFFReadDirEntryErrIo@GOTPAGE
Lloh5:
	ldr	x23, [x23, _TIFFReadDirEntryErrIo@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	ldp	w1, w0, [x21]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w4, #1
	mov	x5, x19
	bl	_TIFFErrorExt
Lloh10:
	adrp	x23, _TIFFReadDirEntryErrAlloc@GOTPAGE
Lloh11:
	ldr	x23, [x23, _TIFFReadDirEntryErrAlloc@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x23]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TIFFReadDirEntryErrIo,4,2      ; @TIFFReadDirEntryErrIo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate memory for %s (%ld elements of %ld bytes each)"

l_.str.1:                               ; @.str.1
	.asciz	"TIFFReadDirEntryArray"

	.comm	_TIFFReadDirEntryErrAlloc,4,2   ; @TIFFReadDirEntryErrAlloc
	.comm	_TIFFReadDirEntryErrOk,4,2      ; @TIFFReadDirEntryErrOk
	.comm	_INITIAL_THRESHOLD,8,3          ; @INITIAL_THRESHOLD
	.comm	_MAX_THRESHOLD,8,3              ; @MAX_THRESHOLD
	.comm	_THRESHOLD_MULTIPLIER,8,3       ; @THRESHOLD_MULTIPLIER
	.no_dead_strip	_TIFFReadDirEntryDataAndRealloc
.subsections_via_symbols
