	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFReadEncodedTile            ## -- Begin function TIFFReadEncodedTile
	.p2align	4, 0x90
_TIFFReadEncodedTile:                   ## @TIFFReadEncodedTile
	.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, %r15
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movl	$1, %esi
	callq	_TIFFCheckRead
	movq	$-1, %rcx
	testl	%eax, %eax
	je	LBB0_15
## %bb.1:
	movq	40(%rbx), %r8
	cmpq	%r13, %r8
	jle	LBB0_10
## %bb.2:
	cmpq	$-1, %r15
	je	LBB0_7
## %bb.3:
	movq	_COMPRESSION_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, 48(%rbx)
	jne	LBB0_7
## %bb.4:
	cmpq	%r15, %r12
	jg	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_isMapped
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_TIFF_NOREADRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_16
LBB0_7:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	cmpq	%r15, %r12
	movq	%r15, %r14
	cmovlq	%r12, %r14
	cmpq	$-1, %r15
	cmoveq	%r12, %r14
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_TIFFFillTile
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movq	24(%rbx), %r8
	movq	56(%rbx), %rcx
	movq	%r13, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_12
## %bb.9:
	movq	%r13, %rax
	cqto
	idivq	%rcx
	movq	%rax, %rcx
	jmp	LBB0_13
LBB0_10:
	movl	32(%rbx), %edi
	leaq	_TIFFReadEncodedTile.module(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rcx
	callq	_TIFFErrorExt
LBB0_11:
	movq	$-1, %rcx
	jmp	LBB0_15
LBB0_12:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %ecx
LBB0_13:
	movq	%rbx, %rdi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%r14, %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	*%r8
	testq	%rax, %rax
	movq	$-1, %rcx
	je	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	*16(%rbx)
	movq	%r14, %rcx
LBB0_15:
	movq	%rcx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	leaq	_TIFFReadEncodedTile.module(%rip), %r8
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	callq	_TIFFReadRawTile1
	cmpq	%r12, %rax
	movq	$-1, %rcx
	jne	LBB0_15
## %bb.17:
	movl	64(%rbx), %esi
	movq	%rbx, %rdi
	callq	_isFillOrder
	testl	%eax, %eax
	jne	LBB0_20
## %bb.18:
	movq	_TIFF_NOBITREV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_20
## %bb.19:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_TIFFReverseBits
LBB0_20:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	*16(%rbx)
	movq	%r12, %rcx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @TIFFReadEncodedTile.module
_TIFFReadEncodedTile.module:
	.asciz	"TIFFReadEncodedTile"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%lu: Tile out of range, max %lu"

	.comm	_COMPRESSION_NONE,8,3           ## @COMPRESSION_NONE
	.comm	_TIFF_NOREADRAW,4,2             ## @TIFF_NOREADRAW
	.comm	_TIFF_NOBITREV,4,2              ## @TIFF_NOBITREV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFReadEncodedTile            ; -- Begin function TIFFReadEncodedTile
	.p2align	2
_TIFFReadEncodedTile:                   ; @TIFFReadEncodedTile
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x19, [x0]
	mov	w1, #1
	bl	_TIFFCheckRead
	cbz	w0, LBB0_10
; %bb.1:
	ldr	x4, [x21, #40]
	cmp	x4, x22
	b.le	LBB0_9
; %bb.2:
	cmn	x23, #1
	b.eq	LBB0_6
; %bb.3:
	ldr	x8, [x21, #48]
Lloh0:
	adrp	x9, _COMPRESSION_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _COMPRESSION_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	x19, x23, #0, eq
	b.gt	LBB0_6
; %bb.4:
	mov	x0, x21
	bl	_isMapped
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w8, [x21, #8]
Lloh3:
	adrp	x9, _TIFF_NOREADRAW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TIFF_NOREADRAW@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
LBB0_6:
	cmp	x19, x23
	csel	x8, x19, x23, lt
	cmn	x23, #1
	csel	x19, x19, x8, eq
	mov	x0, x21
	mov	x1, x22
	bl	_TIFFFillTile
	cbz	x0, LBB0_10
; %bb.7:
	ldr	x8, [x21, #24]
	ldr	x9, [x21, #56]
	sdiv	x3, x22, x9
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
                                        ; kill: def $w3 killed $w3 killed $x3
	blr	x8
	cbz	x0, LBB0_10
LBB0_8:
	ldr	x8, [x21, #16]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	blr	x8
	b	LBB0_11
LBB0_9:
	ldr	w0, [x21, #32]
Lloh6:
	adrp	x1, _TIFFReadEncodedTile.module@PAGE
Lloh7:
	add	x1, x1, _TIFFReadEncodedTile.module@PAGEOFF
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x22
	bl	_TIFFErrorExt
LBB0_10:
	mov	x19, #-1
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh10:
	adrp	x4, _TIFFReadEncodedTile.module@PAGE
Lloh11:
	add	x4, x4, _TIFFReadEncodedTile.module@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	bl	_TIFFReadRawTile1
	cmp	x0, x19
	b.ne	LBB0_10
; %bb.13:
	ldr	w1, [x21, #64]
	mov	x0, x21
	bl	_isFillOrder
	cbnz	w0, LBB0_8
; %bb.14:
	ldr	w8, [x21, #8]
Lloh12:
	adrp	x9, _TIFF_NOBITREV@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TIFF_NOBITREV@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.15:
	mov	x0, x20
	mov	x1, x19
	bl	_TIFFReverseBits
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_TIFFReadEncodedTile.module:            ; @TIFFReadEncodedTile.module
	.asciz	"TIFFReadEncodedTile"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%lu: Tile out of range, max %lu"

	.comm	_COMPRESSION_NONE,8,3           ; @COMPRESSION_NONE
	.comm	_TIFF_NOREADRAW,4,2             ; @TIFF_NOREADRAW
	.comm	_TIFF_NOBITREV,4,2              ; @TIFF_NOBITREV
.subsections_via_symbols
