	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFReadRawTile                ## -- Begin function TIFFReadRawTile
	.p2align	4, 0x90
_TIFFReadRawTile:                       ## @TIFFReadRawTile
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	$1, %esi
	callq	_TIFFCheckRead
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movq	8(%rbx), %r8
	cmpq	%r15, %r8
	jbe	LBB0_2
## %bb.3:
	movq	_TIFF_NOREADRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.4:
	movl	4(%rbx), %edi
	leaq	_TIFFReadRawTile.module(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_TIFFErrorExt
	jmp	LBB0_5
LBB0_2:
	movl	4(%rbx), %edi
	leaq	_TIFFReadRawTile.module(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_TIFFErrorExt
LBB0_5:
	movq	$-1, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	16(%rbx), %rax
	movq	(%rax,%r15,8), %rax
	cmpq	%r12, %rax
	movq	%rax, %rcx
	cmovgq	%r12, %rcx
	cmpq	$-1, %r12
	cmoveq	%rax, %rcx
	leaq	_TIFFReadRawTile.module(%rip), %r8
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TIFFReadRawTile1               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @TIFFReadRawTile.module
_TIFFReadRawTile.module:
	.asciz	"TIFFReadRawTile"

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

	.comm	_TIFF_NOREADRAW,4,2             ## @TIFF_NOREADRAW
L_.str.1:                               ## @.str.1
	.asciz	"Compression scheme does not support access to raw uncompressed data"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFReadRawTile                ; -- Begin function TIFFReadRawTile
	.p2align	2
_TIFFReadRawTile:                       ; @TIFFReadRawTile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	w1, #1
	bl	_TIFFCheckRead
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x8, [x21, #8]
	cmp	x8, x19
	b.ls	LBB0_4
; %bb.2:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _TIFF_NOREADRAW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TIFF_NOREADRAW@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.3:
	ldr	w0, [x21, #4]
Lloh3:
	adrp	x1, _TIFFReadRawTile.module@PAGE
Lloh4:
	add	x1, x1, _TIFFReadRawTile.module@PAGEOFF
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:
	ldr	w0, [x21, #4]
Lloh7:
	adrp	x1, _TIFFReadRawTile.module@PAGE
Lloh8:
	add	x1, x1, _TIFFReadRawTile.module@PAGEOFF
	stp	x19, x8, [sp]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
LBB0_5:
	bl	_TIFFErrorExt
LBB0_6:
	mov	x0, #-1
	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
	add	sp, sp, #64
	ret
LBB0_7:
	ldr	x8, [x21, #16]
	ldr	x8, [x8, x19, lsl #3]
	cmp	x8, x22
	mov	x9, #-1
	ccmp	x22, x9, #4, gt
Lloh11:
	adrp	x4, _TIFFReadRawTile.module@PAGE
Lloh12:
	add	x4, x4, _TIFFReadRawTile.module@PAGEOFF
	csel	x3, x22, x8, ne
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	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
	add	sp, sp, #64
	b	_TIFFReadRawTile1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_TIFFReadRawTile.module:                ; @TIFFReadRawTile.module
	.asciz	"TIFFReadRawTile"

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

	.comm	_TIFF_NOREADRAW,4,2             ; @TIFF_NOREADRAW
l_.str.1:                               ; @.str.1
	.asciz	"Compression scheme does not support access to raw uncompressed data"

.subsections_via_symbols
