	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TIFFReadDirEntryIfd8Array
_TIFFReadDirEntryIfd8Array:             ## @TIFFReadDirEntryIfd8Array
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %eax
	andl	$-4, %eax
	cmpl	$128, %eax
	jne	LBB0_1
## %bb.2:
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	-44(%rbp), %rdx
	leaq	-56(%rbp), %r8
	movl	$8, %ecx
	callq	_TIFFReadDirEntryArray
	movq	_TIFFReadDirEntryErrOk@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	jne	LBB0_4
## %bb.3:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.5:
	movl	(%rbx), %ecx
	orl	$2, %ecx
	cmpl	$130, %ecx
	jne	LBB0_8
## %bb.6:
	movq	%rdi, (%r14)
	movq	_TIFF_SWAB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r12)
	je	LBB0_18
## %bb.7:
	movl	-44(%rbp), %esi
	callq	_TIFFSwabArrayOfLong8
	movl	(%r15), %eax
	jmp	LBB0_18
LBB0_1:
	movq	_TIFFReadDirEntryErrType@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	jmp	LBB0_18
LBB0_4:
	movq	$0, (%r14)
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	-44(%rbp), %edi
	shll	$3, %edi
	callq	__TIFFmalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %r15
	movl	(%rbx), %eax
	orl	$2, %eax
	cmpl	$131, %eax
	jne	LBB0_16
## %bb.11:
	cmpl	$0, -44(%rbp)
	jle	LBB0_16
## %bb.12:
	movq	-56(%rbp), %rbx
	xorl	%r13d, %r13d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	(%rbx), %eax
	addq	$4, %rbx
	movl	%eax, (%r15,%r13,4)
	incq	%r13
	cmpl	-44(%rbp), %r13d
	jge	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	_TIFF_SWAB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%rbx, %rdi
	callq	_TIFFSwabLong
	jmp	LBB0_15
LBB0_16:
	movq	-56(%rbp), %rdi
	callq	__TIFFfree
	movq	%r15, (%r14)
	movq	_TIFFReadDirEntryErrOk@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_9:
	movq	-56(%rbp), %rdi
	callq	__TIFFfree
	movq	_TIFFReadDirEntryErrAlloc@GOTPCREL(%rip), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_TIFFReadDirEntryErrType,4,2    ## @TIFFReadDirEntryErrType
	.comm	_TIFFReadDirEntryErrOk,4,2      ## @TIFFReadDirEntryErrOk
	.comm	_TIFF_SWAB,4,2                  ## @TIFF_SWAB
	.comm	_TIFFReadDirEntryErrAlloc,4,2   ## @TIFFReadDirEntryErrAlloc
	.no_dead_strip	_TIFFReadDirEntryIfd8Array
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TIFFReadDirEntryIfd8Array
_TIFFReadDirEntryIfd8Array:             ; @TIFFReadDirEntryIfd8Array
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	w8, [x1]
	and	w8, w8, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	add	x2, sp, #12
	mov	x4, sp
	mov	w3, #8
	bl	_TIFFReadDirEntryArray
Lloh0:
	adrp	x23, _TIFFReadDirEntryErrOk@GOTPAGE
Lloh1:
	ldr	x23, [x23, _TIFFReadDirEntryErrOk@GOTPAGEOFF]
	ldr	w9, [x23]
	ldr	x8, [sp]
	cmp	w0, w9
	ccmp	x8, #0, #4, eq
	b.ne	LBB0_4
; %bb.2:
	str	xzr, [x19]
	b	LBB0_16
LBB0_3:
Lloh2:
	adrp	x8, _TIFFReadDirEntryErrType@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TIFFReadDirEntryErrType@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_16
LBB0_4:
	ldr	w9, [x22]
	orr	w9, w9, #0x2
	cmp	w9, #130
	b.ne	LBB0_7
; %bb.5:
	str	x8, [x19]
	ldr	w9, [x20]
Lloh5:
	adrp	x10, _TIFF_SWAB@GOTPAGE
Lloh6:
	ldr	x10, [x10, _TIFF_SWAB@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_16
; %bb.6:
	ldr	w1, [sp, #12]
	mov	x0, x8
	bl	_TIFFSwabArrayOfLong8
	b	LBB0_15
LBB0_7:
	ldr	w8, [sp, #12]
	lsl	w0, w8, #3
	bl	__TIFFmalloc
	cbz	x0, LBB0_17
; %bb.8:
	mov	x21, x0
	ldr	w8, [x22]
	orr	w8, w8, #0x2
	cmp	w8, #131
	b.ne	LBB0_14
; %bb.9:
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.10:
	mov	x24, #0
	ldr	x22, [sp]
Lloh8:
	adrp	x25, _TIFF_SWAB@GOTPAGE
Lloh9:
	ldr	x25, [x25, _TIFF_SWAB@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x22], #4
	str	w8, [x21, x24, lsl #2]
	ldr	w8, [sp, #12]
	add	x24, x24, #1
	cmp	w24, w8
	b.ge	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x22
	bl	_TIFFSwabLong
	b	LBB0_11
LBB0_14:
	ldr	x0, [sp]
	bl	__TIFFfree
	str	x21, [x19]
LBB0_15:
	ldr	w0, [x23]
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_17:
	ldr	x0, [sp]
	bl	__TIFFfree
Lloh10:
	adrp	x8, _TIFFReadDirEntryErrAlloc@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TIFFReadDirEntryErrAlloc@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TIFFReadDirEntryErrType,4,2    ; @TIFFReadDirEntryErrType
	.comm	_TIFFReadDirEntryErrOk,4,2      ; @TIFFReadDirEntryErrOk
	.comm	_TIFF_SWAB,4,2                  ; @TIFF_SWAB
	.comm	_TIFFReadDirEntryErrAlloc,4,2   ; @TIFFReadDirEntryErrAlloc
	.no_dead_strip	_TIFFReadDirEntryIfd8Array
.subsections_via_symbols
