	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TIFFFillStripPartial
_TIFFFillStripPartial:                  ## @TIFFFillStripPartial
	.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
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	__TIFFFillStriles
	xorl	%r14d, %r14d
	testl	%eax, %eax
	je	LBB0_19
## %bb.1:
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	cmpq	$0, 40(%r15)
	je	LBB0_19
## %bb.2:
	movq	_TIFF_TMSIZE_T_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	%r13d, %ecx
	setg	%cl
	shll	%cl, %r13d
	cmpl	(%r15), %r13d
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jle	LBB0_5
## %bb.3:
	movl	%ebx, %edi
	callq	_assert
	movq	_NOSTRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 84(%r15)
	movq	_TIFF_MYBUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	je	LBB0_4
LBB0_5:
	leaq	8(%r15), %rax
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.6:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_11:
	movq	16(%r15), %rsi
	movq	48(%r15), %rcx
	movslq	%ebx, %r12
	addq	(%rcx,%r12,8), %rsi
	addq	%rax, %rsi
	movq	%r15, %rdi
	callq	_SeekOK
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movl	(%r15), %eax
	cmpl	%eax, %r13d
	cmovgl	%r13d, %eax
	subl	%r14d, %eax
	movslq	%eax, %r13
	movq	40(%r15), %rax
	movq	(%rax,%r12,8), %rax
	movq	16(%r15), %rcx
	addq	8(%r15), %rcx
	subq	%rcx, %rax
	cmpq	%r13, %rax
	cmovll	%eax, %r13d
	movq	_TIFF_BUFFERMMAP@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	xorl	%edi, %edi
	andl	4(%r15), %eax
	sete	%dil
	callq	_assert
	leaq	_TIFFFillStripPartial.module(%rip), %r9
	movq	%r14, %rbx
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_TIFFReadAndRealloc
	testl	%eax, %eax
	je	LBB0_19
## %bb.14:
	movq	16(%r15), %rax
	movslq	%ebx, %rcx
	subq	%rcx, %rax
	addq	8(%r15), %rax
	movq	%rax, 16(%r15)
	leal	(%rbx,%r13), %eax
	cltq
	movq	%rax, 8(%r15)
	movl	%eax, 32(%r15)
	movl	28(%r15), %eax
	movl	%eax, 24(%r15)
	movl	64(%r15), %esi
	movq	%r15, %rdi
	callq	_isFillOrder
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:
	movl	4(%r15), %eax
	movq	_TIFF_NOBITREV@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_17
## %bb.16:
	xorl	%edi, %edi
	andl	(%r12), %eax
	sete	%dil
	callq	_assert
	addl	28(%r15), %ebx
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_TIFFReverseBits
LBB0_17:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_18
## %bb.20:
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TIFFStartStrip                 ## TAILCALL
LBB0_7:
	movq	(%rax), %rax
	testq	%rax, %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jle	LBB0_8
## %bb.9:
	movl	28(%r15), %ecx
	subl	24(%r15), %ecx
	leal	(%rax,%rcx), %r14d
	testl	%r14d, %r14d
	jle	LBB0_11
## %bb.10:
	movq	_TIFF_BUFFERMMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	4(%r15), %eax
	sete	%dil
	callq	_assert
	movl	24(%r15), %esi
	movl	28(%r15), %edi
	movl	%r14d, %edx
	callq	_memmove
	movq	8(%r15), %rax
	jmp	LBB0_11
LBB0_12:
	movl	80(%r15), %edi
	movq	72(%r15), %rcx
	leaq	_TIFFFillStripPartial.module(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_TIFFErrorExt
	jmp	LBB0_19
LBB0_4:
	movl	80(%r15), %edi
	movslq	-44(%rbp), %rcx                 ## 4-byte Folded Reload
	leaq	_TIFFFillStripPartial.module(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_TIFFErrorExt
	jmp	LBB0_19
LBB0_18:
	movl	$1, %r14d
LBB0_19:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @TIFFFillStripPartial.module
_TIFFFillStripPartial.module:
	.asciz	"TIFFFillStripPartial"

	.comm	_TIFF_TMSIZE_T_MAX,4,2          ## @TIFF_TMSIZE_T_MAX
	.comm	_NOSTRIP,4,2                    ## @NOSTRIP
	.comm	_TIFF_MYBUFFER,4,2              ## @TIFF_MYBUFFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Data buffer too small to hold part of strip %lu"

	.comm	_TIFF_BUFFERMMAP,4,2            ## @TIFF_BUFFERMMAP
L_.str.1:                               ## @.str.1
	.asciz	"Seek error at scanline %lu, strip %lu"

	.comm	_TIFF_NOBITREV,4,2              ## @TIFF_NOBITREV
	.comm	_COMPRESSION_JPEG,8,3           ## @COMPRESSION_JPEG
	.no_dead_strip	_TIFFFillStripPartial
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TIFFFillStripPartial
_TIFFFillStripPartial:                  ; @TIFFFillStripPartial
	.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	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	__TIFFFillStriles
	cbz	w0, LBB0_20
; %bb.1:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_19
; %bb.2:
Lloh0:
	adrp	x8, _TIFF_TMSIZE_T_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIFF_TMSIZE_T_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w22, w8, asr #1
	cset	w8, lt
	lsl	w23, w22, w8
	ldr	w8, [x20]
	cmp	w23, w8
	b.le	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_assert
Lloh3:
	adrp	x8, _NOSTRIP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NOSTRIP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #84]
	ldr	w8, [x20, #4]
Lloh6:
	adrp	x9, _TIFF_MYBUFFER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TIFF_MYBUFFER@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
LBB0_4:
	add	x9, x20, #8
	cbz	w21, LBB0_13
; %bb.5:
	mov	x8, #0
	mov	w22, #0
	stp	xzr, xzr, [x9]
LBB0_6:
	ldr	x9, [x20, #48]
	sxtw	x24, w19
	ldr	x9, [x9, w19, sxtw #3]
	ldr	x10, [x20, #16]
	add	x9, x10, x9
	add	x1, x9, x8
	mov	x0, x20
	bl	_SeekOK
	cbz	w0, LBB0_16
; %bb.7:
	ldp	w8, w9, [x20]
	cmp	w23, w8
	csel	w8, w23, w8, gt
	ldr	x10, [x20, #40]
	ldr	x10, [x10, x24, lsl #3]
	sub	w8, w8, w22
	ldp	x12, x11, [x20, #8]
	add	x11, x11, x12
	sub	x10, x10, x11
	cmp	x10, w8, sxtw
	csel	w23, w10, w8, lt
Lloh9:
	adrp	x24, _TIFF_BUFFERMMAP@GOTPAGE
Lloh10:
	ldr	x24, [x24, _TIFF_BUFFERMMAP@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w9
	cset	w0, eq
	bl	_assert
Lloh11:
	adrp	x5, _TIFFFillStripPartial.module@PAGE
Lloh12:
	add	x5, x5, _TIFFFillStripPartial.module@PAGEOFF
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	mov	w3, #1
	mov	w4, #0
	bl	_TIFFReadAndRealloc
	cbz	w0, LBB0_20
; %bb.8:
	ldp	x9, x8, [x20, #8]
	sub	x8, x8, w22, sxtw
	add	x8, x8, x9
	add	w9, w23, w22
	sxtw	x10, w9
	stp	x10, x8, [x20, #8]
	str	w9, [x20, #32]
	ldr	w8, [x20, #28]
	str	w8, [x20, #24]
	ldr	w1, [x20, #64]
	mov	x0, x20
	bl	_isFillOrder
	cbnz	w0, LBB0_11
; %bb.9:
	ldr	w8, [x20, #4]
Lloh13:
	adrp	x9, _TIFF_NOBITREV@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TIFF_NOBITREV@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.10:
	ldr	w9, [x24]
	tst	w9, w8
	cset	w0, eq
	bl	_assert
	ldr	w8, [x20, #28]
	add	w0, w8, w22
	mov	x1, x23
	bl	_TIFFReverseBits
LBB0_11:
	cbz	w21, LBB0_21
; %bb.12:
	mov	x0, x20
	mov	x1, 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
	b	_TIFFStartStrip
LBB0_13:
	ldr	x8, [x9]
	cmp	x8, #1
	b.lt	LBB0_22
; %bb.14:
	ldp	w9, w10, [x20, #24]
	sub	w9, w10, w9
	add	w22, w9, w8
	cmp	w22, #1
	b.lt	LBB0_6
; %bb.15:
	ldr	w8, [x20, #4]
Lloh16:
	adrp	x9, _TIFF_BUFFERMMAP@GOTPAGE
Lloh17:
	ldr	x9, [x9, _TIFF_BUFFERMMAP@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_assert
	ldp	w1, w0, [x20, #24]
	mov	x2, x22
	bl	_memmove
	ldr	x8, [x20, #8]
	b	LBB0_6
LBB0_16:
	ldr	w0, [x20, #80]
	ldr	x3, [x20, #72]
	str	x24, [sp]
Lloh19:
	adrp	x1, _TIFFFillStripPartial.module@PAGE
Lloh20:
	add	x1, x1, _TIFFFillStripPartial.module@PAGEOFF
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_17:
	ldr	w0, [x20, #80]
                                        ; kill: def $w19 killed $w19 killed $x19 def $x19
	sxtw	x3, w19
Lloh23:
	adrp	x1, _TIFFFillStripPartial.module@PAGE
Lloh24:
	add	x1, x1, _TIFFFillStripPartial.module@PAGEOFF
Lloh25:
	adrp	x2, l_.str@PAGE
Lloh26:
	add	x2, x2, l_.str@PAGEOFF
LBB0_18:
	bl	_TIFFErrorExt
LBB0_19:
	mov	w0, #0
LBB0_20:
	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
LBB0_21:
	mov	w0, #1
	b	LBB0_20
LBB0_22:
	mov	w22, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_TIFFFillStripPartial.module:           ; @TIFFFillStripPartial.module
	.asciz	"TIFFFillStripPartial"

	.comm	_TIFF_TMSIZE_T_MAX,4,2          ; @TIFF_TMSIZE_T_MAX
	.comm	_NOSTRIP,4,2                    ; @NOSTRIP
	.comm	_TIFF_MYBUFFER,4,2              ; @TIFF_MYBUFFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Data buffer too small to hold part of strip %lu"

	.comm	_TIFF_BUFFERMMAP,4,2            ; @TIFF_BUFFERMMAP
l_.str.1:                               ; @.str.1
	.asciz	"Seek error at scanline %lu, strip %lu"

	.comm	_TIFF_NOBITREV,4,2              ; @TIFF_NOBITREV
	.comm	_COMPRESSION_JPEG,8,3           ; @COMPRESSION_JPEG
	.no_dead_strip	_TIFFFillStripPartial
.subsections_via_symbols
