	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFWriteEncodedStrip          ## -- Begin function TIFFWriteEncodedStrip
	.p2align	4, 0x90
_TIFFWriteEncodedStrip:                 ## @TIFFWriteEncodedStrip
	.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, %r14
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	_TIFFWriteEncodedStrip.module(%rip), %rsi
	callq	_WRITECHECKSTRIPS
	movq	$-1, %r15
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	cmpq	%r12, 112(%rbx)
	ja	LBB0_6
## %bb.2:
	movq	120(%rbx), %rax
	movq	_PLANARCONFIG_SEPARATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	104(%rbx), %edi
	leaq	_TIFFWriteEncodedStrip.module(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_11
LBB0_4:
	leaq	_TIFFWriteEncodedStrip.module(%rip), %rdx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_TIFFGrowStrips
	testl	%eax, %eax
	je	LBB0_12
## %bb.5:
	movl	164(%rbx), %edi
	movq	136(%rbx), %rsi
	callq	_TIFFhowmany_32
	movq	%rax, 128(%rbx)
LBB0_6:
	movq	%rbx, %rdi
	callq	_BUFFERCHECK
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:
	movq	_TIFF_BUF4WRITE@GOTPCREL(%rip), %rax
	movl	(%rbx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	%r12, 8(%rbx)
	movq	128(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.8:
	movq	%r12, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_13
## %bb.9:
	movq	%r12, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_14
LBB0_10:
	movl	104(%rbx), %edi
	leaq	_TIFFWriteEncodedStrip.module(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
LBB0_11:
	callq	_TIFFErrorExt
LBB0_12:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_14:
	imulq	136(%rbx), %rdx
	movq	%rdx, 16(%rbx)
	movq	_TIFF_CODERSETUP@GOTPCREL(%rip), %r14
	testl	%ecx, (%r14)
	jne	LBB0_17
## %bb.15:
	movq	%rbx, %rdi
	callq	*96(%rbx)
	testl	%eax, %eax
	je	LBB0_12
## %bb.16:
	movl	(%rbx), %ecx
	orl	(%r14), %ecx
	movl	%ecx, (%rbx)
LBB0_17:
	movq	144(%rbx), %rax
	movq	(%rax,%r12,8), %rdi
	testq	%rdi, %rdi
	jle	LBB0_22
## %bb.18:
	cmpq	%rdi, 24(%rbx)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jg	LBB0_21
## %bb.19:
	incl	%edi
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_TIFFroundup_64
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_TIFFWriteBufferSetup
	testl	%eax, %eax
	je	LBB0_12
## %bb.20:
	movl	(%rbx), %ecx
LBB0_21:
	movq	$0, 88(%rbx)
	jmp	LBB0_23
LBB0_22:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_23:
	movq	$0, 32(%rbx)
	movq	40(%rbx), %rax
	movq	152(%rbx), %rdx
	movq	%rax, 48(%rbx)
	movq	_TIFF_POSTENCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	_COMPRESSION_NONE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_30
## %bb.24:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	*72(%rbx)
	movl	160(%rbx), %esi
	movq	%rbx, %rdi
	callq	_isFillOrder
	testl	%eax, %eax
	jne	LBB0_27
## %bb.25:
	movq	_TIFF_NOBITREV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_27
## %bb.26:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_TIFFReverseBits
LBB0_27:
	testq	%r14, %r14
	jle	LBB0_32
## %bb.28:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_TIFFAppendToStrip
	testl	%eax, %eax
	je	LBB0_12
LBB0_32:
	movq	%r14, %r15
	jmp	LBB0_12
LBB0_30:
	movq	128(%rbx), %rcx
	movq	%r12, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_33
## %bb.31:
	movq	%r12, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_34
LBB0_33:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_34:
	movq	%rbx, %rdi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	callq	*80(%rbx)
	testl	%eax, %eax
	je	LBB0_12
## %bb.35:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	*72(%rbx)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %r13
	movq	%r14, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	*64(%rbx)
	testl	%eax, %eax
	je	LBB0_12
## %bb.36:
	movq	%rbx, %rdi
	callq	*56(%rbx)
	testl	%eax, %eax
	je	LBB0_12
## %bb.37:
	movl	160(%rbx), %esi
	movq	%rbx, %rdi
	callq	_isFillOrder
	testl	%eax, %eax
	jne	LBB0_40
## %bb.38:
	movq	_TIFF_NOBITREV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_40
## %bb.39:
	movq	32(%rbx), %rsi
	movq	40(%rbx), %rdi
	callq	_TIFFReverseBits
LBB0_40:
	movq	32(%rbx), %rcx
	testq	%rcx, %rcx
	jle	LBB0_42
## %bb.41:
	movq	40(%rbx), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_TIFFAppendToStrip
	testl	%eax, %eax
	je	LBB0_12
LBB0_42:
	movq	$0, 32(%rbx)
	movq	40(%rbx), %rax
	movq	%rax, 48(%rbx)
	movq	%r13, %r15
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @TIFFWriteEncodedStrip.module
_TIFFWriteEncodedStrip.module:
	.asciz	"TIFFWriteEncodedStrip"

	.comm	_PLANARCONFIG_SEPARATE,8,3      ## @PLANARCONFIG_SEPARATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can not grow image by strips when using separate planes"

	.comm	_TIFF_BUF4WRITE,4,2             ## @TIFF_BUF4WRITE
L_.str.1:                               ## @.str.1
	.asciz	"Zero strips per image"

	.comm	_TIFF_CODERSETUP,4,2            ## @TIFF_CODERSETUP
	.comm	_TIFF_POSTENCODE,4,2            ## @TIFF_POSTENCODE
	.comm	_COMPRESSION_NONE,8,3           ## @COMPRESSION_NONE
	.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	_TIFFWriteEncodedStrip          ; -- Begin function TIFFWriteEncodedStrip
	.p2align	2
_TIFFWriteEncodedStrip:                 ; @TIFFWriteEncodedStrip
	.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	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x1, _TIFFWriteEncodedStrip.module@PAGE
Lloh1:
	add	x1, x1, _TIFFWriteEncodedStrip.module@PAGEOFF
	bl	_WRITECHECKSTRIPS
	cbz	w0, LBB0_24
; %bb.1:
	ldr	x8, [x20, #112]
	cmp	x8, x21
	b.hi	LBB0_6
; %bb.2:
	ldr	x8, [x20, #120]
Lloh2:
	adrp	x9, _PLANARCONFIG_SEPARATE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PLANARCONFIG_SEPARATE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x20, #104]
Lloh5:
	adrp	x1, _TIFFWriteEncodedStrip.module@PAGE
Lloh6:
	add	x1, x1, _TIFFWriteEncodedStrip.module@PAGEOFF
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_23
LBB0_4:
Lloh9:
	adrp	x2, _TIFFWriteEncodedStrip.module@PAGE
Lloh10:
	add	x2, x2, _TIFFWriteEncodedStrip.module@PAGEOFF
	mov	x0, x20
	mov	w1, #1
	bl	_TIFFGrowStrips
	cbz	w0, LBB0_24
; %bb.5:
	ldr	w0, [x20, #164]
	ldr	x1, [x20, #136]
	bl	_TIFFhowmany_32
	str	x0, [x20, #128]
LBB0_6:
	mov	x0, x20
	bl	_BUFFERCHECK
	cbz	w0, LBB0_24
; %bb.7:
Lloh11:
	adrp	x8, _TIFF_BUF4WRITE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TIFF_BUF4WRITE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	str	x21, [x20, #8]
	ldr	x9, [x20, #128]
	cbz	x9, LBB0_22
; %bb.8:
	udiv	x10, x21, x9
	msub	x9, x10, x9, x21
	ldr	x10, [x20, #136]
	mul	x9, x10, x9
	str	x9, [x20, #16]
Lloh14:
	adrp	x23, _TIFF_CODERSETUP@GOTPAGE
Lloh15:
	ldr	x23, [x23, _TIFF_CODERSETUP@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_11
; %bb.9:
	ldr	x8, [x20, #96]
	mov	x0, x20
	blr	x8
	cbz	w0, LBB0_24
; %bb.10:
	ldr	w8, [x23]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
LBB0_11:
	ldr	x9, [x20, #144]
	ldr	x9, [x9, x21, lsl #3]
	cmp	x9, #1
	b.lt	LBB0_16
; %bb.12:
	ldr	x10, [x20, #24]
	cmp	x10, x9
	b.gt	LBB0_15
; %bb.13:
	add	w0, w9, #1
	mov	w1, #1024
	bl	_TIFFroundup_64
	mov	x2, x0
	mov	x0, x20
	mov	x1, #0
	bl	_TIFFWriteBufferSetup
	cbz	w0, LBB0_24
; %bb.14:
	ldr	w8, [x20]
LBB0_15:
	str	xzr, [x20, #88]
LBB0_16:
	str	xzr, [x20, #32]
	ldr	x9, [x20, #40]
	str	x9, [x20, #48]
Lloh16:
	adrp	x9, _TIFF_POSTENCODE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _TIFF_POSTENCODE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x20]
	ldr	x8, [x20, #152]
Lloh19:
	adrp	x9, _COMPRESSION_NONE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _COMPRESSION_NONE@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.17:
	ldr	x8, [x20, #72]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	blr	x8
	ldr	w1, [x20, #160]
	mov	x0, x20
	bl	_isFillOrder
	cbnz	w0, LBB0_20
; %bb.18:
	ldr	w8, [x20]
Lloh22:
	adrp	x9, _TIFF_NOBITREV@GOTPAGE
Lloh23:
	ldr	x9, [x9, _TIFF_NOBITREV@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_20
; %bb.19:
	mov	x0, x22
	mov	x1, x19
	bl	_TIFFReverseBits
LBB0_20:
	cmp	x19, #1
	b.lt	LBB0_25
; %bb.21:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x19
	bl	_TIFFAppendToStrip
	cbnz	w0, LBB0_25
	b	LBB0_24
LBB0_22:
	ldr	w0, [x20, #104]
Lloh25:
	adrp	x1, _TIFFWriteEncodedStrip.module@PAGE
Lloh26:
	add	x1, x1, _TIFFWriteEncodedStrip.module@PAGEOFF
Lloh27:
	adrp	x2, l_.str.1@PAGE
Lloh28:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_23:
	bl	_TIFFErrorExt
LBB0_24:
	mov	x19, #-1
LBB0_25:
	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_26:
	ldr	x8, [x20, #128]
	ldr	x9, [x20, #80]
	udiv	x23, x21, x8
	mov	x0, x20
	mov	x1, x23
	blr	x9
	cbz	w0, LBB0_24
; %bb.27:
	ldr	x8, [x20, #72]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	blr	x8
	ldr	x8, [x20, #64]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	x3, x23
	blr	x8
	cbz	w0, LBB0_24
; %bb.28:
	ldr	x8, [x20, #56]
	mov	x0, x20
	blr	x8
	cbz	w0, LBB0_24
; %bb.29:
	ldr	w1, [x20, #160]
	mov	x0, x20
	bl	_isFillOrder
	cbnz	w0, LBB0_32
; %bb.30:
	ldr	w8, [x20]
Lloh29:
	adrp	x9, _TIFF_NOBITREV@GOTPAGE
Lloh30:
	ldr	x9, [x9, _TIFF_NOBITREV@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_32
; %bb.31:
	ldp	x1, x0, [x20, #32]
	bl	_TIFFReverseBits
LBB0_32:
	ldr	x3, [x20, #32]
	cmp	x3, #1
	b.lt	LBB0_34
; %bb.33:
	ldr	x2, [x20, #40]
	mov	x0, x20
	mov	x1, x21
	bl	_TIFFAppendToStrip
	cbz	w0, LBB0_24
LBB0_34:
	str	xzr, [x20, #32]
	ldr	x8, [x20, #40]
	str	x8, [x20, #48]
	b	LBB0_25
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_TIFFWriteEncodedStrip.module:          ; @TIFFWriteEncodedStrip.module
	.asciz	"TIFFWriteEncodedStrip"

	.comm	_PLANARCONFIG_SEPARATE,8,3      ; @PLANARCONFIG_SEPARATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can not grow image by strips when using separate planes"

	.comm	_TIFF_BUF4WRITE,4,2             ; @TIFF_BUF4WRITE
l_.str.1:                               ; @.str.1
	.asciz	"Zero strips per image"

	.comm	_TIFF_CODERSETUP,4,2            ; @TIFF_CODERSETUP
	.comm	_TIFF_POSTENCODE,4,2            ; @TIFF_POSTENCODE
	.comm	_COMPRESSION_NONE,8,3           ; @COMPRESSION_NONE
	.comm	_TIFF_NOBITREV,4,2              ; @TIFF_NOBITREV
.subsections_via_symbols
