	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gtTileContig
_gtTileContig:                          ## @gtTileContig
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	24(%rdi), %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	movq	32(%rdi), %rdi
	movq	$0, -96(%rbp)
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_TIFFTileSize
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	_TIFFTAG_TILEWIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_TIFFGetField
	movq	_TIFFTAG_TILELENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	movq	%r12, %rdi
	callq	_TIFFGetField
	movq	%r14, -128(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_setorientation
	movq	_FLIP_VERTICALLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	testl	%eax, %ecx
	je	LBB0_4
## %bb.3:
	leal	-1(%r15), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	-52(%rbp), %r10d
	leal	(%r10,%r13), %r9d
	negl	%r9d
	jmp	LBB0_5
LBB0_1:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %ebx
	callq	_TIFFFileName
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_TIFFErrorExt
	xorl	%r14d, %r14d
	jmp	LBB0_39
LBB0_4:
	movl	-52(%rbp), %r10d
	movl	%r13d, %r9d
	subl	%r10d, %r9d
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
LBB0_5:
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %eax
	cltd
	idivl	%r10d
	xorl	%ebx, %ebx
	testl	%r15d, %r15d
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_6
## %bb.7:
	movl	%edx, %r11d
	subl	%edx, %r10d
	movl	%edx, %eax
	addl	%r9d, %eax
	movl	%eax, -116(%rbp)                ## 4-byte Spill
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r10, -104(%rbp)                ## 8-byte Spill
	movq	%r9, -152(%rbp)                 ## 8-byte Spill
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	movl	-72(%rbp), %esi
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movl	4(%r14), %r8d
	leal	(%r8,%rbx), %eax
	cltd
	idivl	%esi
	subl	%edx, %esi
	leal	(%rsi,%rbx), %eax
	movl	%r15d, %edi
	subl	%ebx, %edi
	cmpl	%r15d, %eax
	cmovlel	%esi, %edi
	testl	%r13d, %r13d
	jle	LBB0_9
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	(%r14), %ecx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	imull	%r13d, %eax
	cltq
	leaq	(%r12,%rax,4), %rax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	movl	%r11d, %r15d
	movl	-116(%rbp), %eax                ## 4-byte Reload
	movl	%eax, %r12d
                                        ## kill: def $r10d killed $r10d killed $r10 def $r10
	movq	%r10, -144(%rbp)                ## 8-byte Spill
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	%ebx, %r8d
	subq	$8, %rsp
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	leaq	-96(%rbp), %rsi
	movq	-168(%rbp), %rdx                ## 8-byte Reload
	movl	%ecx, -120(%rbp)                ## 4-byte Spill
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%r9d, %r9d
	pushq	$0
	callq	__TIFFReadTileAndAllocBuffer
	addq	$16, %rsp
	cmpq	$-1, %rax
	jne	LBB0_23
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	cmpq	$0, -96(%rbp)
	je	LBB0_20
## %bb.22:                              ##   in Loop: Header=BB0_18 Depth=2
	cmpq	$0, 16(%r14)
	jne	LBB0_20
LBB0_23:                                ##   in Loop: Header=BB0_18 Depth=2
	movl	4(%r14), %eax
	addl	%ebx, %eax
	cltd
	idivl	-72(%rbp)
	movl	%edx, %ebx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_TIFFTileRowSize
	imull	%ebx, %eax
	movslq	%eax, %rcx
	movslq	%r15d, %r10
	movq	8(%r14), %rbx
	imulq	%r10, %rbx
	addq	%rcx, %rbx
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	leal	(%rdi,%r13), %r8d
	movl	-52(%rbp), %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, %r15d
	subl	%r13d, %r15d
	subl	%r15d, %edx
	movq	%r12, %rax
	movq	-152(%rbp), %r12                ## 8-byte Reload
	leal	(%rdx,%r12), %esi
	cmpl	%ecx, %r8d
	cmovlel	%edi, %r15d
	cmovgl	%esi, %eax
	cmovgl	%edx, %r10d
	movslq	%r13d, %r13
	movq	-176(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%r13,4), %rsi
	addq	-96(%rbp), %rbx
	subq	$8, %rsp
	movq	%r14, %rdi
	movl	%r13d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rbx
	pushq	%rax
	pushq	%r10
	callq	*-160(%rbp)                     ## 8-byte Folded Reload
	addq	$32, %rsp
	addl	%r15d, %r13d
	cmpl	-64(%rbp), %r13d                ## 4-byte Folded Reload
	jge	LBB0_24
## %bb.25:                              ##   in Loop: Header=BB0_18 Depth=2
	movl	-52(%rbp), %eax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movl	-120(%rbp), %ecx                ## 4-byte Reload
	addl	%r15d, %ecx
	movl	4(%r14), %r8d
	xorl	%r15d, %r15d
                                        ## kill: def $r12d killed $r12d killed $r12 def $r12
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, %r14d
	movb	$1, %al
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	$1, %r14d
	movb	$1, %al
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-104(%rbp), %r10                ## 8-byte Reload
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-104(%rbp), %r10                ## 8-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-56(%rbp), %r11d                ## 4-byte Reload
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	_FLIP_VERTICALLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%edi, %edx
	negl	%edx
	testl	%ecx, -68(%rbp)                 ## 4-byte Folded Reload
	cmovel	%edi, %edx
	testb	%al, %al
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	addl	%edx, -48(%rbp)                 ## 4-byte Folded Spill
	addl	%ebx, %edi
	movl	%edi, %ebx
	cmpl	%r15d, %edi
	jl	LBB0_8
LBB0_12:
	movq	-96(%rbp), %rbx
	jmp	LBB0_13
LBB0_6:
	movl	$1, %r14d
LBB0_13:
	movq	%rbx, %rdi
	callq	__TIFFfree
	movq	_FLIP_HORIZONTALLY@GOTPCREL(%rip), %rax
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	je	LBB0_39
## %bb.14:
	testl	%r15d, %r15d
	jle	LBB0_39
## %bb.15:
	movslq	%r13d, %r11
	movl	%r15d, %r8d
	cmpl	$1, %r15d
	jne	LBB0_26
## %bb.16:
	movl	%r14d, %r15d
	xorl	%edx, %edx
LBB0_34:
	testb	$1, %r8b
	je	LBB0_35
## %bb.36:
	imulq	%r11, %rdx
	leaq	(%r12,%rdx,4), %rcx
	leaq	(%rcx,%r11,4), %rax
	addq	$-4, %rax
	cmpq	%rax, %rcx
	movl	%r15d, %r14d
	jae	LBB0_39
## %bb.37:
	leaq	(%r12,%rdx,4), %rcx
	addq	$4, %rcx
	.p2align	4, 0x90
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%rcx), %edx
	movl	(%rax), %esi
	movl	%esi, -4(%rcx)
	movl	%edx, (%rax)
	addq	$-4, %rax
	leaq	4(%rcx), %rdx
	cmpq	%rax, %rcx
	movq	%rdx, %rcx
	jb	LBB0_38
	jmp	LBB0_39
LBB0_26:
	movl	%r14d, %r15d
	movl	%r8d, %r9d
	andl	$-2, %r9d
	leaq	4(%r12), %r14
	leaq	(,%r11,8), %r10
	leaq	(%r12,%r11,4), %rcx
	addq	$4, %rcx
	xorl	%edx, %edx
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_27 Depth=1
	addq	$2, %rdx
	addq	%r10, %r14
	addq	%r10, %rcx
	cmpq	%r9, %rdx
	je	LBB0_34
LBB0_27:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_29 Depth 2
                                        ##     Child Loop BB0_32 Depth 2
	movq	%rdx, %rsi
	imulq	%r11, %rsi
	leaq	(%r12,%rsi,4), %rdi
	leaq	(%rdi,%r11,4), %rsi
	addq	$-4, %rsi
	cmpq	%rsi, %rdi
	jae	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%r14, %rdi
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-4(%rdi), %eax
	movl	(%rsi), %ebx
	movl	%ebx, -4(%rdi)
	movl	%eax, (%rsi)
	addq	$-4, %rsi
	leaq	4(%rdi), %rax
	cmpq	%rsi, %rdi
	movq	%rax, %rdi
	jb	LBB0_29
LBB0_30:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	%rdx, %rax
	orq	$1, %rax
	imulq	%r11, %rax
	leaq	(%r12,%rax,4), %rax
	leaq	(%rax,%r11,4), %rsi
	addq	$-4, %rsi
	cmpq	%rsi, %rax
	jae	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_27 Depth=1
	movq	%rcx, %rdi
	.p2align	4, 0x90
LBB0_32:                                ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-4(%rdi), %eax
	movl	(%rsi), %ebx
	movl	%ebx, -4(%rdi)
	movl	%eax, (%rsi)
	addq	$-4, %rsi
	leaq	4(%rdi), %rax
	cmpq	%rsi, %rdi
	movq	%rax, %rdi
	jb	LBB0_32
	jmp	LBB0_33
LBB0_35:
	movl	%r15d, %r14d
LBB0_39:
	movl	%r14d, %eax
	addq	$136, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

L_.str.1:                               ## @.str.1
	.asciz	"No space for tile buffer"

	.comm	_TIFFTAG_TILEWIDTH,4,2          ## @TIFFTAG_TILEWIDTH
	.comm	_TIFFTAG_TILELENGTH,4,2         ## @TIFFTAG_TILELENGTH
	.comm	_FLIP_VERTICALLY,4,2            ## @FLIP_VERTICALLY
	.comm	_FLIP_HORIZONTALLY,4,2          ## @FLIP_HORIZONTALLY
	.no_dead_strip	_gtTileContig
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gtTileContig
_gtTileContig:                          ; @gtTileContig
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	ldp	x8, x26, [x0, #24]
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	stur	xzr, [x29, #-96]
	mov	x0, x26
	bl	_TIFFTileSize
	str	x0, [sp, #56]                   ; 8-byte Folded Spill
	cbz	x0, LBB0_18
; %bb.1:
Lloh0:
	adrp	x8, _TIFFTAG_TILEWIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIFFTAG_TILEWIDTH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	sub	x2, x29, #84
	mov	x0, x26
	bl	_TIFFGetField
Lloh3:
	adrp	x8, _TIFFTAG_TILELENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIFFTAG_TILELENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	sub	x2, x29, #88
	mov	x0, x26
	bl	_TIFFGetField
	str	x22, [sp, #96]                  ; 8-byte Folded Spill
	mov	x0, x22
	bl	_setorientation
Lloh6:
	adrp	x8, _FLIP_VERTICALLY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FLIP_VERTICALLY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w0, [sp, #40]                   ; 4-byte Folded Spill
	tst	w8, w0
	b.eq	LBB0_19
; %bb.2:
	sub	w9, w19, #1
	str	w9, [sp, #92]                   ; 4-byte Folded Spill
	ldur	w9, [x29, #-84]
	add	w10, w9, w21
	neg	w12, w10
	cmp	w19, #1
	b.lt	LBB0_20
LBB0_3:
	str	x21, [sp, #80]                  ; 8-byte Folded Spill
	mov	w24, #0
	ldr	x21, [sp, #96]                  ; 8-byte Folded Reload
	ldr	w10, [x21]
	sdiv	w11, w10, w9
	msub	w10, w11, w9, w10
	sub	w9, w9, w10
	stp	w9, w10, [sp, #32]              ; 8-byte Folded Spill
	str	w12, [sp, #44]                  ; 4-byte Folded Spill
	add	w9, w10, w12
	str	w9, [sp, #28]                   ; 4-byte Folded Spill
	str	x20, [sp, #16]                  ; 8-byte Folded Spill
	str	w19, [sp, #12]                  ; 4-byte Folded Spill
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldur	w10, [x29, #-88]
	ldr	w9, [x21, #4]
	add	w11, w9, w24
	neg	w12, w11
	sdiv	w11, w11, w10
	madd	w11, w11, w10, w12
	add	w10, w10, w11
	add	w11, w10, w24
	sub	w12, w19, w24
	cmp	w11, w19
	csel	w22, w12, w10, gt
	ldr	x10, [sp, #80]                  ; 8-byte Folded Reload
	cmp	w10, #1
	b.lt	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w22, [sp, #76]                  ; 4-byte Folded Spill
	mov	w28, #0
	ldr	w3, [x21]
	ldr	w8, [sp, #92]                   ; 4-byte Folded Reload
	mul	w8, w8, w10
	add	x8, x20, w8, sxtw #2
	str	x8, [sp, #64]                   ; 8-byte Folded Spill
	ldp	w27, w22, [sp, #32]             ; 8-byte Folded Reload
	ldr	w19, [sp, #28]                  ; 4-byte Folded Reload
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w4, w9, w24
	sub	x1, x29, #96
	mov	x0, x26
	ldr	x2, [sp, #56]                   ; 8-byte Folded Reload
	stur	w3, [x29, #-100]                ; 4-byte Folded Spill
	mov	w5, #0
	mov	w6, #0
	bl	__TIFFReadTileAndAllocBuffer
	cmn	x0, #1
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldur	x8, [x29, #-96]
	cbz	x8, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #16]
	cbnz	x8, LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	x21, [sp, #96]                  ; 8-byte Folded Reload
	ldr	w8, [x21, #4]
	mov	x23, x24
	add	w8, w8, w24
	ldur	w9, [x29, #-88]
	sdiv	w10, w8, w9
	mov	x0, x26
	msub	w25, w10, w9, w8
	bl	_TIFFTileRowSize
	mul	w8, w0, w25
	sxtw	x9, w22
	ldr	x10, [x21, #8]
	mul	x9, x10, x9
	add	x8, x9, w8, sxtw
	ldur	w9, [x29, #-84]
	ldr	x24, [sp, #80]                  ; 8-byte Folded Reload
	sub	w10, w24, w28
	sub	w9, w9, w10
	ldr	w20, [sp, #44]                  ; 4-byte Folded Reload
	add	w11, w9, w20
	add	w12, w28, w27
	cmp	w12, w24
	csel	w25, w10, w27, gt
	csel	w7, w11, w19, gt
	csel	w6, w9, w22, gt
	ldr	x9, [sp, #64]                   ; 8-byte Folded Reload
	add	x1, x9, w28, sxtw #2
	ldur	x9, [x29, #-96]
	add	x8, x9, x8
	str	x8, [sp]
	mov	x0, x21
	mov	x2, x28
	ldr	w3, [sp, #92]                   ; 4-byte Folded Reload
	mov	x4, x25
	ldr	w22, [sp, #76]                  ; 4-byte Folded Reload
	mov	x5, x22
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	blr	x8
	add	w28, w25, w28
	cmp	w28, w24
	b.ge	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	w22, #0
	ldur	w27, [x29, #-84]
	ldur	w3, [x29, #-100]                ; 4-byte Folded Reload
	add	w3, w3, w25
	ldr	w9, [x21, #4]
	mov	x19, x20
	mov	x24, x23
	b	LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #1
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #1
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w19, [sp, #12]                  ; 4-byte Folded Reload
	mov	x24, x23
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #0
	ldr	x20, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w19, [sp, #12]                  ; 4-byte Folded Reload
	ldr	x21, [sp, #96]                  ; 8-byte Folded Reload
	ldr	w22, [sp, #76]                  ; 4-byte Folded Reload
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh9:
	adrp	x8, _FLIP_VERTICALLY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FLIP_VERTICALLY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [sp, #40]                   ; 4-byte Folded Reload
	tst	w8, w9
	cneg	w9, w22, ne
	cbz	w28, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [sp, #92]                  ; 4-byte Folded Reload
	add	w10, w9, w10
	str	w10, [sp, #92]                  ; 4-byte Folded Spill
	add	w24, w22, w24
	cmp	w24, w19
	b.lt	LBB0_4
LBB0_17:
	ldur	x0, [x29, #-96]
	ldr	x21, [sp, #80]                  ; 8-byte Folded Reload
	b	LBB0_21
LBB0_18:
	ldr	w19, [x26]
	mov	x0, x26
	bl	_TIFFFileName
	mov	x1, x0
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
Lloh14:
	adrp	x3, l_.str.1@PAGE
Lloh15:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_TIFFErrorExt
	mov	w28, #0
	b	LBB0_22
LBB0_19:
	str	wzr, [sp, #92]                  ; 4-byte Folded Spill
	ldur	w9, [x29, #-84]
	sub	w12, w21, w9
	cmp	w19, #1
	b.ge	LBB0_3
LBB0_20:
	mov	x0, #0
	mov	w28, #1
LBB0_21:
	bl	__TIFFfree
Lloh16:
	adrp	x8, _FLIP_HORIZONTALLY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FLIP_HORIZONTALLY@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [sp, #40]                   ; 4-byte Folded Reload
	and	w8, w8, w9
	cmp	w8, #0
	ccmp	w19, #1, #8, ne
	b.ge	LBB0_23
LBB0_22:
	mov	x0, x28
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_23:
	mov	x8, #0
	sxtw	x9, w21
	add	x10, x20, #4
	sbfiz	x11, x21, #2, #32
	mov	w12, w19
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x8, x8, #1
	add	x10, x10, x11
	cmp	x8, x12
	b.eq	LBB0_22
LBB0_25:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
	mul	x13, x8, x9
	add	x14, x20, x13, lsl #2
	add	x13, x14, x9, lsl #2
	sub	x13, x13, #4
	cmp	x14, x13
	b.hs	LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	x14, x10
LBB0_27:                                ;   Parent Loop BB0_25 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w15, [x14, #-4]
	ldr	w16, [x13]
	stur	w16, [x14, #-4]
	str	w15, [x13], #-4
	add	x15, x14, #4
	cmp	x14, x13
	mov	x14, x15
	b.lo	LBB0_27
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

l_.str.1:                               ; @.str.1
	.asciz	"No space for tile buffer"

	.comm	_TIFFTAG_TILEWIDTH,4,2          ; @TIFFTAG_TILEWIDTH
	.comm	_TIFFTAG_TILELENGTH,4,2         ; @TIFFTAG_TILELENGTH
	.comm	_FLIP_VERTICALLY,4,2            ; @FLIP_VERTICALLY
	.comm	_FLIP_HORIZONTALLY,4,2          ; @FLIP_HORIZONTALLY
	.no_dead_strip	_gtTileContig
.subsections_via_symbols
