	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFWriteRawStrip              ## -- Begin function TIFFWriteRawStrip
	.p2align	4, 0x90
_TIFFWriteRawStrip:                     ## @TIFFWriteRawStrip
	.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
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	leaq	_TIFFWriteRawStrip.module(%rip), %rsi
	callq	_WRITECHECKSTRIPS
	movl	$-1, %r13d
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	cmpq	%r12, 24(%rbx)
	jg	LBB0_7
## %bb.2:
	movq	32(%rbx), %rax
	movq	_PLANARCONFIG_SEPARATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movl	8(%rbx), %edi
	leaq	_TIFFWriteRawStrip.module(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	callq	_TIFFErrorExt
	jmp	LBB0_13
LBB0_4:
	cmpq	%r12, 40(%rbx)
	jg	LBB0_6
## %bb.5:
	movl	56(%rbx), %edi
	movq	48(%rbx), %rsi
	callq	_TIFFhowmany_32
	movq	%rax, 40(%rbx)
LBB0_6:
	leaq	_TIFFWriteRawStrip.module(%rip), %rdx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_TIFFGrowStrips
	testl	%eax, %eax
	je	LBB0_13
LBB0_7:
	movq	%r12, 16(%rbx)
	movq	40(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.9:
	movq	%r12, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_10
## %bb.11:
	movq	%r12, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_12
LBB0_8:
	movl	8(%rbx), %edi
	leaq	_TIFFWriteRawStrip.module(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	callq	_TIFFErrorExt
	jmp	LBB0_13
LBB0_10:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_12:
	imulq	48(%rbx), %rdx
	movq	%rdx, (%rbx)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	movl	%r15d, %ecx
	callq	_TIFFAppendToStrip
	xorl	%r13d, %r13d
	cmpq	$1, %rax
	sbbl	%r13d, %r13d
	orl	%r15d, %r13d
LBB0_13:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @TIFFWriteRawStrip.module
_TIFFWriteRawStrip.module:
	.asciz	"TIFFWriteRawStrip"

	.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"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFWriteRawStrip              ; -- Begin function TIFFWriteRawStrip
	.p2align	2
_TIFFWriteRawStrip:                     ; @TIFFWriteRawStrip
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x1, _TIFFWriteRawStrip.module@PAGE
Lloh1:
	add	x1, x1, _TIFFWriteRawStrip.module@PAGEOFF
	bl	_WRITECHECKSTRIPS
	cbz	w0, LBB0_11
; %bb.1:
	ldr	x8, [x21, #24]
	cmp	x8, x22
	b.gt	LBB0_7
; %bb.2:
	ldr	x8, [x21, #32]
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, [x21, #8]
Lloh5:
	adrp	x1, _TIFFWriteRawStrip.module@PAGE
Lloh6:
	add	x1, x1, _TIFFWriteRawStrip.module@PAGEOFF
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_10
LBB0_4:
	ldr	x8, [x21, #40]
	cmp	x8, x22
	b.gt	LBB0_6
; %bb.5:
	ldr	w0, [x21, #56]
	ldr	x1, [x21, #48]
	bl	_TIFFhowmany_32
	str	x0, [x21, #40]
LBB0_6:
Lloh9:
	adrp	x2, _TIFFWriteRawStrip.module@PAGE
Lloh10:
	add	x2, x2, _TIFFWriteRawStrip.module@PAGEOFF
	mov	x0, x21
	mov	w1, #1
	bl	_TIFFGrowStrips
	cbz	w0, LBB0_11
LBB0_7:
	str	x22, [x21, #16]
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_9
; %bb.8:
	sdiv	x9, x22, x8
	msub	x8, x9, x8, x22
	ldr	x9, [x21, #48]
	mul	x8, x9, x8
	str	x8, [x21]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	bl	_TIFFAppendToStrip
	cmp	x0, #0
	csinv	w0, w19, wzr, ne
	b	LBB0_12
LBB0_9:
	ldr	w0, [x21, #8]
Lloh11:
	adrp	x1, _TIFFWriteRawStrip.module@PAGE
Lloh12:
	add	x1, x1, _TIFFWriteRawStrip.module@PAGEOFF
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_10:
	bl	_TIFFErrorExt
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_TIFFWriteRawStrip.module:              ; @TIFFWriteRawStrip.module
	.asciz	"TIFFWriteRawStrip"

	.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"

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

.subsections_via_symbols
