	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFReadEncodedStrip           ## -- Begin function TIFFReadEncodedStrip
	.p2align	4, 0x90
_TIFFReadEncodedStrip:                  ## @TIFFReadEncodedStrip
	.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
	movq	%rcx, %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %r15
	leaq	-44(%rbp), %rdx
	callq	_TIFFReadEncodedStripGetStripSize
	movq	$-1, %r12
	cmpq	$-1, %rax
	je	LBB0_13
## %bb.1:
	movq	%rax, %r13
	cmpq	$-1, %rbx
	je	LBB0_10
## %bb.2:
	movq	_COMPRESSION_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, 24(%r15)
	jne	LBB0_10
## %bb.3:
	cmpq	%rbx, %r13
	jg	LBB0_10
## %bb.4:
	movq	%r15, %rdi
	callq	_isMapped
	testl	%eax, %eax
	jne	LBB0_10
## %bb.5:
	movq	_TIFF_NOREADRAW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_6
LBB0_10:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_TIFFFillStrip
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	cmpq	%rbx, %r13
	movq	%r13, %rax
	cmovgq	%rbx, %rax
	cmpq	$-1, %rbx
	cmovneq	%rax, %r13
	movl	-44(%rbp), %ecx
	movq	%r15, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	*8(%r15)
	testq	%rax, %rax
	jle	LBB0_13
LBB0_12:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	callq	*16(%r15)
	movq	%r13, %r12
LBB0_13:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	_TIFFReadEncodedStrip.module(%rip), %r8
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r13, %rcx
	callq	_TIFFReadRawStrip1
	cmpq	%r13, %rax
	jne	LBB0_13
## %bb.7:
	movl	32(%r15), %esi
	movq	%r15, %rdi
	callq	_isFillOrder
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	movq	_TIFF_NOBITREV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	jne	LBB0_12
## %bb.9:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_TIFFReverseBits
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @TIFFReadEncodedStrip.module
_TIFFReadEncodedStrip.module:
	.asciz	"TIFFReadEncodedStrip"

	.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	_TIFFReadEncodedStrip           ; -- Begin function TIFFReadEncodedStrip
	.p2align	2
_TIFFReadEncodedStrip:                  ; @TIFFReadEncodedStrip
	.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	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
	add	x2, sp, #12
	bl	_TIFFReadEncodedStripGetStripSize
	mov	x19, x0
	cmn	x0, #1
	b.eq	LBB0_13
; %bb.1:
	cmn	x22, #1
	b.eq	LBB0_5
; %bb.2:
	ldr	x8, [x21, #24]
Lloh0:
	adrp	x9, _COMPRESSION_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _COMPRESSION_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	x19, x22, #0, eq
	b.gt	LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_isMapped
	cbnz	w0, LBB0_5
; %bb.4:
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _TIFF_NOREADRAW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TIFF_NOREADRAW@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
LBB0_5:
	mov	x0, x21
	mov	x1, x23
	bl	_TIFFFillStrip
	mov	x8, #-1
	cbz	w0, LBB0_12
; %bb.6:
	cmp	x19, x22
	ccmp	x22, x8, #4, gt
	csel	x19, x22, x19, ne
	ldr	x8, [x21, #8]
	ldr	w3, [sp, #12]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	blr	x8
	cmp	x0, #1
	b.lt	LBB0_12
LBB0_7:
	ldr	x8, [x21, #16]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	blr	x8
	b	LBB0_13
LBB0_8:
Lloh6:
	adrp	x4, _TIFFReadEncodedStrip.module@PAGE
Lloh7:
	add	x4, x4, _TIFFReadEncodedStrip.module@PAGEOFF
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	mov	x3, x19
	bl	_TIFFReadRawStrip1
	cmp	x0, x19
	b.ne	LBB0_12
; %bb.9:
	ldr	w1, [x21, #32]
	mov	x0, x21
	bl	_isFillOrder
	cbnz	w0, LBB0_7
; %bb.10:
	ldr	w8, [x21]
Lloh8:
	adrp	x9, _TIFF_NOBITREV@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TIFF_NOBITREV@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.11:
	mov	x0, x20
	mov	x1, x19
	bl	_TIFFReverseBits
	b	LBB0_7
LBB0_12:
	mov	x19, #-1
LBB0_13:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_TIFFReadEncodedStrip.module:           ; @TIFFReadEncodedStrip.module
	.asciz	"TIFFReadEncodedStrip"

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