	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TIFFWriteDirectoryTagLongLong8Array
_TIFFWriteDirectoryTagLongLong8Array:   ## @TIFFWriteDirectoryTagLongLong8Array
	.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
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%r9, %rbx
	movl	%r8d, %r15d
	movq	%rdx, %r12
	movq	%rdi, %r14
	movq	_TIFF_BIGTIFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_3
## %bb.26:
	movq	%r14, %rdi
	movq	%r12, %rdx
	movl	%r15d, %r8d
	movq	%rbx, %r9
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TIFFWriteDirectoryTagCheckedLong8Array ## TAILCALL
LBB0_1:
	incl	(%rsi)
	movl	$1, %eax
	jmp	LBB0_25
LBB0_3:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	leal	(,%r15,4), %edi
	callq	__TIFFmalloc
	testq	%rax, %rax
	je	LBB0_27
## %bb.4:
	movq	%rax, %r13
	testl	%r15d, %r15d
	jle	LBB0_24
## %bb.5:
	leal	-1(%r15), %r8d
	xorl	%r9d, %r9d
	movq	%r13, %rcx
	cmpl	$7, %r8d
	jb	LBB0_17
## %bb.6:
	subq	%rbx, %rcx
	cmpq	$32, %rcx
	jb	LBB0_7
## %bb.8:
	incq	%r8
	movq	%r8, %r9
	andq	$-8, %r9
	leaq	-8(%r9), %rcx
	movq	%rcx, %rsi
	shrq	$3, %rsi
	incq	%rsi
	movl	%esi, %edx
	andl	$3, %edx
	cmpq	$24, %rcx
	jae	LBB0_10
## %bb.9:
	xorl	%edi, %edi
	jmp	LBB0_12
LBB0_27:
	movl	4(%r14), %edi
	leaq	_TIFFWriteDirectoryTagLongLong8Array.module(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	callq	_TIFFErrorExt
	xorl	%eax, %eax
	jmp	LBB0_25
LBB0_7:
	movq	%r13, %rcx
	jmp	LBB0_17
LBB0_10:
	andq	$-4, %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movups	(%rbx,%rdi,4), %xmm0
	movups	16(%rbx,%rdi,4), %xmm1
	movups	%xmm0, (%r13,%rdi,4)
	movups	%xmm1, 16(%r13,%rdi,4)
	movups	32(%rbx,%rdi,4), %xmm0
	movups	48(%rbx,%rdi,4), %xmm1
	movups	%xmm0, 32(%r13,%rdi,4)
	movups	%xmm1, 48(%r13,%rdi,4)
	movups	64(%rbx,%rdi,4), %xmm0
	movups	80(%rbx,%rdi,4), %xmm1
	movups	%xmm0, 64(%r13,%rdi,4)
	movups	%xmm1, 80(%r13,%rdi,4)
	movups	96(%rbx,%rdi,4), %xmm0
	movups	112(%rbx,%rdi,4), %xmm1
	movups	%xmm0, 96(%r13,%rdi,4)
	movups	%xmm1, 112(%r13,%rdi,4)
	addq	$32, %rdi
	addq	$-4, %rsi
	jne	LBB0_11
LBB0_12:
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.13:
	leaq	(%rbx,%rdi,4), %rsi
	addq	$16, %rsi
	leaq	16(,%rdi,4), %rdi
	addq	%r13, %rdi
	shlq	$5, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rsi,%rcx), %xmm0
	movups	(%rsi,%rcx), %xmm1
	movups	%xmm0, -16(%rdi,%rcx)
	movups	%xmm1, (%rdi,%rcx)
	addq	$32, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_14
LBB0_15:
	cmpq	%r9, %r8
	je	LBB0_24
## %bb.16:
	leaq	(,%r9,4), %rcx
	addq	%r13, %rcx
	leaq	(%rbx,%r9,4), %rbx
LBB0_17:
	movl	%r15d, %esi
	subl	%r9d, %esi
	movl	%r9d, %edx
	notl	%edx
	addl	%r15d, %edx
	andl	$7, %esi
	je	LBB0_21
## %bb.18:
	negl	%esi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	movl	%eax, (%rcx)
	addq	$4, %rbx
	addq	$4, %rcx
	decl	%edi
	cmpl	%edi, %esi
	jne	LBB0_19
## %bb.20:
	subl	%edi, %r9d
LBB0_21:
	cmpl	$7, %edx
	jb	LBB0_24
## %bb.22:
	movl	%r15d, %edx
	subl	%r9d, %edx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rax,4), %esi
	movl	%esi, (%rcx,%rax,4)
	movl	4(%rbx,%rax,4), %esi
	movl	%esi, 4(%rcx,%rax,4)
	movl	8(%rbx,%rax,4), %esi
	movl	%esi, 8(%rcx,%rax,4)
	movl	12(%rbx,%rax,4), %esi
	movl	%esi, 12(%rcx,%rax,4)
	movl	16(%rbx,%rax,4), %esi
	movl	%esi, 16(%rcx,%rax,4)
	movl	20(%rbx,%rax,4), %esi
	movl	%esi, 20(%rcx,%rax,4)
	movl	24(%rbx,%rax,4), %esi
	movl	%esi, 24(%rcx,%rax,4)
	movl	28(%rbx,%rax,4), %esi
	movl	%esi, 28(%rcx,%rax,4)
	addq	$8, %rax
	cmpl	%eax, %edx
	jne	LBB0_23
LBB0_24:
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	movq	%r13, %r9
	callq	_TIFFWriteDirectoryTagCheckedLongArray
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	__TIFFfree
	movl	%ebx, %eax
LBB0_25:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @TIFFWriteDirectoryTagLongLong8Array.module
_TIFFWriteDirectoryTagLongLong8Array.module:
	.asciz	"TIFFWriteDirectoryTagLongLong8Array"

	.comm	_TIFF_BIGTIFF,4,2               ## @TIFF_BIGTIFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Out of memory"

	.no_dead_strip	_TIFFWriteDirectoryTagLongLong8Array
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TIFFWriteDirectoryTagLongLong8Array
_TIFFWriteDirectoryTagLongLong8Array:   ; @TIFFWriteDirectoryTagLongLong8Array
	.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	x21, x1
	cbz	x2, LBB0_3
; %bb.1:
	mov	x25, x5
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _TIFF_BIGTIFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TIFF_BIGTIFF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
	mov	x4, x19
	mov	x5, x25
	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
	b	_TIFFWriteDirectoryTagCheckedLong8Array
LBB0_3:
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
	mov	w0, #1
	b	LBB0_16
LBB0_4:
	lsl	w0, w19, #2
	bl	__TIFFmalloc
	cbz	x0, LBB0_11
; %bb.5:
	mov	x24, x0
	subs	w8, w19, #1
	b.lt	LBB0_15
; %bb.6:
	mov	w10, #0
	cmp	w8, #15
	b.lo	LBB0_12
; %bb.7:
	sub	x9, x24, x25
	cmp	x9, #64
	b.lo	LBB0_12
; %bb.8:
	add	x11, x8, #1
	and	x10, x11, #0x1fffffff0
	lsl	x9, x10, #2
	add	x8, x24, x9
	add	x9, x25, x9
	add	x12, x24, #32
	add	x13, x25, #32
	mov	x14, x10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x13, #-32]
	ldp	q2, q3, [x13], #64
	stp	q0, q1, [x12, #-32]
	stp	q2, q3, [x12], #64
	subs	x14, x14, #16
	b.ne	LBB0_9
; %bb.10:
	cmp	x11, x10
	b.ne	LBB0_13
	b	LBB0_15
LBB0_11:
	ldr	w0, [x23, #4]
Lloh3:
	adrp	x1, _TIFFWriteDirectoryTagLongLong8Array.module@PAGE
Lloh4:
	add	x1, x1, _TIFFWriteDirectoryTagLongLong8Array.module@PAGEOFF
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	bl	_TIFFErrorExt
	mov	w0, #0
	b	LBB0_16
LBB0_12:
	mov	x8, x24
	mov	x9, x25
LBB0_13:
	sub	w10, w19, w10
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9], #4
	str	w11, [x8], #4
	subs	w10, w10, #1
	b.ne	LBB0_14
LBB0_15:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
	mov	x4, x19
	mov	x5, x24
	bl	_TIFFWriteDirectoryTagCheckedLongArray
	mov	x19, x0
	mov	x0, x24
	bl	__TIFFfree
	mov	x0, x19
LBB0_16:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_TIFFWriteDirectoryTagLongLong8Array.module: ; @TIFFWriteDirectoryTagLongLong8Array.module
	.asciz	"TIFFWriteDirectoryTagLongLong8Array"

	.comm	_TIFF_BIGTIFF,4,2               ; @TIFF_BIGTIFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Out of memory"

	.no_dead_strip	_TIFFWriteDirectoryTagLongLong8Array
.subsections_via_symbols
