	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TIFFReadRawStripOrTile2
_TIFFReadRawStripOrTile2:               ## @TIFFReadRawStripOrTile2
	.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	%r8, %r14
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_isMapped
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	_TIFF_NOREADRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%rbx), %eax
	sete	%dil
	callq	_assert
	movq	32(%rbx), %rax
	movl	(%rax,%r13,4), %esi
	movq	%rbx, %rdi
	callq	_SeekOK
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	%r14, %r9
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movl	%r12d, %ecx
	movq	%r13, %r8
	callq	_TIFFReadAndRealloc
	cmpl	$1, %eax
	sbbl	%r14d, %r14d
	orl	%r15d, %r14d
	jmp	LBB0_6
LBB0_2:
	movl	24(%rbx), %edi
	movq	16(%rbx), %rcx
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rsi
	movq	%r13, %r8
	xorl	%eax, %eax
	callq	_TIFFErrorExt
	jmp	LBB0_5
LBB0_4:
	movq	8(%rbx), %r8
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rsi
	movq	%r13, %r9
	xorl	%eax, %eax
	callq	_TIFFErrorExt
LBB0_5:
	movl	$-1, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIFF_NOREADRAW,4,2             ## @TIFF_NOREADRAW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Seek error at scanline %lu, strip %lu"

L_.str.1:                               ## @.str.1
	.asciz	"Seek error at row %lu, col %lu, tile %lu"

	.no_dead_strip	_TIFFReadRawStripOrTile2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TIFFReadRawStripOrTile2
_TIFFReadRawStripOrTile2:               ; @TIFFReadRawStripOrTile2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x23, x0
	bl	_isMapped
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _TIFF_NOREADRAW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TIFF_NOREADRAW@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_assert
	ldr	x8, [x23, #32]
	ldr	w1, [x8, x20, lsl #2]
	mov	x0, x23
	bl	_SeekOK
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x23
	mov	x1, x21
	mov	w2, #0
	mov	x3, x22
	mov	x4, x20
	mov	x5, x19
	bl	_TIFFReadAndRealloc
	cmp	w0, #0
	csinv	w0, w21, wzr, ne
	b	LBB0_6
LBB0_2:
	ldr	w0, [x23, #24]
	ldr	x3, [x23, #16]
	cbz	w22, LBB0_4
; %bb.3:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x19
	mov	x4, x20
	b	LBB0_5
LBB0_4:
	ldr	x4, [x23, #8]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	str	x20, [sp]
	mov	x1, x19
LBB0_5:
	bl	_TIFFErrorExt
	mov	w0, #-1
LBB0_6:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_TIFF_NOREADRAW,4,2             ; @TIFF_NOREADRAW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Seek error at scanline %lu, strip %lu"

l_.str.1:                               ; @.str.1
	.asciz	"Seek error at row %lu, col %lu, tile %lu"

	.no_dead_strip	_TIFFReadRawStripOrTile2
.subsections_via_symbols
