	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFWriteScanline              ## -- Begin function TIFFWriteScanline
	.p2align	4, 0x90
_TIFFWriteScanline:                     ## @TIFFWriteScanline
	.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, %r15d
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	_TIFFWriteScanline.module(%rip), %rsi
	callq	_WRITECHECKSTRIPS
	testl	%eax, %eax
	je	LBB0_31
## %bb.1:
	movq	%rbx, %rdi
	callq	_BUFFERCHECK
	testl	%eax, %eax
	je	LBB0_31
## %bb.2:
	movq	_TIFF_BUF4WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movl	96(%rbx), %eax
	movq	104(%rbx), %rcx
	movq	_PLANARCONFIG_SEPARATE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpl	%r14d, %eax
	jg	LBB0_7
## %bb.3:
	cmpq	%rdx, %rcx
	jne	LBB0_6
## %bb.4:
	movl	88(%rbx), %edi
	leaq	_TIFFWriteScanline.module(%rip), %rsi
	leaq	L_.str(%rip), %rdx
LBB0_5:
	xorl	%eax, %eax
	callq	_TIFFErrorExt
	jmp	LBB0_31
LBB0_6:
	leal	1(%r14), %esi
	movl	%esi, 96(%rbx)
LBB0_7:
	cmpl	%r14d, %eax
	setle	%al
	cmpq	%rdx, %rcx
	jne	LBB0_10
## %bb.8:
	movslq	112(%rbx), %r8
	cmpl	%r15d, %r8d
	jle	LBB0_30
## %bb.9:
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	movl	116(%rbx), %ecx
	imull	%r15d, %ecx
	movl	%r14d, %eax
	cltd
	idivl	120(%rbx)
	movl	%eax, %r13d
	addl	%ecx, %r13d
	cmpl	124(%rbx), %r13d
	jge	LBB0_11
	jmp	LBB0_12
LBB0_10:
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	movl	%r14d, %eax
	cltd
	idivl	120(%rbx)
	movl	%eax, %r13d
	cmpl	124(%rbx), %r13d
	jl	LBB0_12
LBB0_11:
	leaq	_TIFFWriteScanline.module(%rip), %rdx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_TIFFGrowStrips
	testl	%eax, %eax
	je	LBB0_31
LBB0_12:
	cmpl	4(%rbx), %r13d
	jne	LBB0_19
LBB0_13:
	movl	8(%rbx), %edx
	cmpl	%r14d, %edx
	je	LBB0_18
## %bb.14:
	jle	LBB0_16
## %bb.15:
	movl	%r13d, %eax
	cltd
	idivl	116(%rbx)
	imull	120(%rbx), %edx
	movl	%edx, 8(%rbx)
	movl	48(%rbx), %eax
	movl	%eax, 52(%rbx)
LBB0_16:
	movl	%r14d, %esi
	subl	%edx, %esi
	movq	%rbx, %rdi
	callq	*40(%rbx)
	testl	%eax, %eax
	je	LBB0_31
## %bb.17:
	movl	%r14d, 8(%rbx)
LBB0_18:
	movl	24(%rbx), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	*32(%rbx)
	movl	24(%rbx), %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %ecx
	callq	*16(%rbx)
	incl	%r14d
	movl	%r14d, 8(%rbx)
	jmp	LBB0_32
LBB0_19:
	movq	%rbx, %rdi
	callq	_TIFFFlushData
	testl	%eax, %eax
	je	LBB0_31
## %bb.20:
	movl	%r13d, 4(%rbx)
	movl	116(%rbx), %ecx
	cmpl	%ecx, %r13d
	setge	%al
	andb	-41(%rbp), %al                  ## 1-byte Folded Reload
	cmpb	$1, %al
	jne	LBB0_22
## %bb.21:
	movl	96(%rbx), %edi
	movl	120(%rbx), %esi
	callq	_TIFFhowmany_32
	movl	%eax, %ecx
	movl	%eax, 116(%rbx)
LBB0_22:
	testl	%ecx, %ecx
	je	LBB0_33
## %bb.23:
	movl	%r13d, %eax
	cltd
	idivl	%ecx
	imull	120(%rbx), %edx
	movl	%edx, 8(%rbx)
	movq	_TIFF_CODERSETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_26
## %bb.24:
	movq	%rbx, %rdi
	callq	*80(%rbx)
	testl	%eax, %eax
	je	LBB0_31
## %bb.25:
	movq	_TIFF_CODERSETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_26:
	movq	$0, 72(%rbx)
	movl	48(%rbx), %eax
	movl	%eax, 52(%rbx)
	movq	128(%rbx), %rax
	movslq	%r13d, %rcx
	cmpq	$0, (%rax,%rcx,8)
	jle	LBB0_28
## %bb.27:
	movq	$0, (%rax,%rcx,8)
	movq	$0, 64(%rbx)
LBB0_28:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	*56(%rbx)
	testl	%eax, %eax
	je	LBB0_31
## %bb.29:
	movq	_TIFF_POSTENCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	jmp	LBB0_13
LBB0_30:
	movl	88(%rbx), %edi
	movslq	%r15d, %rcx
	leaq	_TIFFWriteScanline.module(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	xorl	%eax, %eax
	callq	_TIFFErrorExt
LBB0_31:
	movl	$-1, %eax
LBB0_32:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	movl	88(%rbx), %edi
	leaq	_TIFFWriteScanline.module(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @TIFFWriteScanline.module
_TIFFWriteScanline.module:
	.asciz	"TIFFWriteScanline"

	.comm	_TIFF_BUF4WRITE,4,2             ## @TIFF_BUF4WRITE
	.comm	_PLANARCONFIG_SEPARATE,8,3      ## @PLANARCONFIG_SEPARATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can not change \"ImageLength\" when using separate planes"

L_.str.1:                               ## @.str.1
	.asciz	"%lu: Sample out of range, max %lu"

L_.str.2:                               ## @.str.2
	.asciz	"Zero strips per image"

	.comm	_TIFF_CODERSETUP,4,2            ## @TIFF_CODERSETUP
	.comm	_TIFF_POSTENCODE,4,2            ## @TIFF_POSTENCODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFWriteScanline              ; -- Begin function TIFFWriteScanline
	.p2align	2
_TIFFWriteScanline:                     ; @TIFFWriteScanline
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x1, _TIFFWriteScanline.module@PAGE
Lloh1:
	add	x1, x1, _TIFFWriteScanline.module@PAGEOFF
	bl	_WRITECHECKSTRIPS
	cbz	w0, LBB0_33
; %bb.1:
	mov	x0, x19
	bl	_BUFFERCHECK
	cbz	w0, LBB0_33
; %bb.2:
Lloh2:
	adrp	x8, _TIFF_BUF4WRITE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TIFF_BUF4WRITE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	w9, [x19, #96]
	ldr	x8, [x19, #104]
Lloh5:
	adrp	x10, _PLANARCONFIG_SEPARATE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PLANARCONFIG_SEPARATE@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	w9, w21
	b.gt	LBB0_6
; %bb.3:
	cmp	x8, x10
	b.ne	LBB0_5
; %bb.4:
	ldr	w0, [x19, #88]
Lloh8:
	adrp	x1, _TIFFWriteScanline.module@PAGE
Lloh9:
	add	x1, x1, _TIFFWriteScanline.module@PAGEOFF
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_32
LBB0_5:
	add	w11, w21, #1
	str	w11, [x19, #96]
LBB0_6:
	cmp	w9, w21
	cset	w24, le
	cmp	x8, x10
	b.ne	LBB0_9
; %bb.7:
	ldrsw	x8, [x19, #112]
	cmp	w8, w20
	b.le	LBB0_30
; %bb.8:
	ldp	w8, w9, [x19, #116]
	sdiv	w9, w21, w9
	madd	w23, w8, w20, w9
	b	LBB0_10
LBB0_9:
	ldr	w8, [x19, #120]
	sdiv	w23, w21, w8
LBB0_10:
	ldr	w8, [x19, #124]
	cmp	w23, w8
	b.lt	LBB0_12
; %bb.11:
Lloh12:
	adrp	x2, _TIFFWriteScanline.module@PAGE
Lloh13:
	add	x2, x2, _TIFFWriteScanline.module@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_TIFFGrowStrips
	cbz	w0, LBB0_33
LBB0_12:
	ldr	w8, [x19, #4]
	cmp	w23, w8
	b.ne	LBB0_19
LBB0_13:
	ldr	w8, [x19, #8]
	cmp	w8, w21
	b.eq	LBB0_18
; %bb.14:
	b.le	LBB0_16
; %bb.15:
	ldp	w8, w9, [x19, #116]
	sdiv	w10, w23, w8
	msub	w8, w10, w8, w23
	mul	w8, w9, w8
	str	w8, [x19, #8]
	ldr	w9, [x19, #48]
	str	w9, [x19, #52]
LBB0_16:
	ldr	x9, [x19, #40]
	sub	w1, w21, w8
	mov	x0, x19
	blr	x9
	cbz	w0, LBB0_33
; %bb.17:
	str	w21, [x19, #8]
LBB0_18:
	ldr	x8, [x19, #32]
	ldr	w2, [x19, #24]
	mov	x0, x19
	mov	x1, x22
	blr	x8
	ldr	x8, [x19, #16]
	ldr	w2, [x19, #24]
	mov	x0, x19
	mov	x1, x22
	mov	x3, x20
	blr	x8
	add	w8, w21, #1
	str	w8, [x19, #8]
	b	LBB0_34
LBB0_19:
	mov	x0, x19
	bl	_TIFFFlushData
	cbz	w0, LBB0_33
; %bb.20:
	str	w23, [x19, #4]
	ldr	w0, [x19, #116]
	cmp	w23, w0
	cset	w8, ge
	and	w8, w8, w24
	cmp	w8, #1
	b.ne	LBB0_22
; %bb.21:
	ldr	w0, [x19, #96]
	ldr	w1, [x19, #120]
	bl	_TIFFhowmany_32
	str	w0, [x19, #116]
LBB0_22:
	cbz	w0, LBB0_31
; %bb.23:
	sdiv	w8, w23, w0
	msub	w8, w8, w0, w23
	ldr	w9, [x19, #120]
	mul	w8, w9, w8
	str	w8, [x19, #8]
	ldr	w8, [x19]
Lloh14:
	adrp	x24, _TIFF_CODERSETUP@GOTPAGE
Lloh15:
	ldr	x24, [x24, _TIFF_CODERSETUP@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_26
; %bb.24:
	ldr	x8, [x19, #80]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_33
; %bb.25:
	ldr	w8, [x24]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_26:
	str	xzr, [x19, #72]
	ldr	w8, [x19, #48]
	str	w8, [x19, #52]
	ldr	x8, [x19, #128]
	ldr	x9, [x8, w23, sxtw #3]
	cmp	x9, #1
	b.lt	LBB0_28
; %bb.27:
	sxtw	x9, w23
	str	xzr, [x8, x9, lsl #3]
	str	xzr, [x19, #64]
LBB0_28:
	ldr	x8, [x19, #56]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	cbz	w0, LBB0_33
; %bb.29:
Lloh16:
	adrp	x8, _TIFF_POSTENCODE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TIFF_POSTENCODE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_13
LBB0_30:
	ldr	w0, [x19, #88]
	sxtw	x9, w20
Lloh19:
	adrp	x1, _TIFFWriteScanline.module@PAGE
Lloh20:
	add	x1, x1, _TIFFWriteScanline.module@PAGEOFF
	stp	x9, x8, [sp]
Lloh21:
	adrp	x2, l_.str.1@PAGE
Lloh22:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_32
LBB0_31:
	ldr	w0, [x19, #88]
Lloh23:
	adrp	x1, _TIFFWriteScanline.module@PAGE
Lloh24:
	add	x1, x1, _TIFFWriteScanline.module@PAGEOFF
Lloh25:
	adrp	x2, l_.str.2@PAGE
Lloh26:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_32:
	bl	_TIFFErrorExt
LBB0_33:
	mov	w0, #-1
LBB0_34:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	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
_TIFFWriteScanline.module:              ; @TIFFWriteScanline.module
	.asciz	"TIFFWriteScanline"

	.comm	_TIFF_BUF4WRITE,4,2             ; @TIFF_BUF4WRITE
	.comm	_PLANARCONFIG_SEPARATE,8,3      ; @PLANARCONFIG_SEPARATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can not change \"ImageLength\" when using separate planes"

l_.str.1:                               ; @.str.1
	.asciz	"%lu: Sample out of range, max %lu"

l_.str.2:                               ; @.str.2
	.asciz	"Zero strips per image"

	.comm	_TIFF_CODERSETUP,4,2            ; @TIFF_CODERSETUP
	.comm	_TIFF_POSTENCODE,4,2            ; @TIFF_POSTENCODE
.subsections_via_symbols
