	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ChopUpSingleUncompressedStrip
_ChopUpSingleUncompressedStrip:         ## @ChopUpSingleUncompressedStrip
	.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	%rdi, %r15
	movq	8(%rdi), %rax
	movl	(%rax), %r12d
	testl	%r12d, %r12d
	jne	LBB0_2
## %bb.1:
	movq	(%r15), %rax
	movq	_O_RDONLY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_28
LBB0_2:
	movq	16(%r15), %rax
	movq	24(%r15), %rcx
	movl	(%rax), %r13d
	movq	_PLANARCONFIG_CONTIG@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %rcx
	sete	%dil
	callq	_assert
	movq	32(%r15), %rax
	movq	_PHOTOMETRIC_YCBCR@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	callq	_isUpSampled
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	40(%r15), %rax
	movl	4(%rax), %r14d
LBB0_5:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_TIFFVTileSize64
	movl	%eax, %ebx
	movq	_STRIP_SIZE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ebx
	jg	LBB0_8
## %bb.6:
	testl	%ebx, %ebx
	jle	LBB0_28
## %bb.7:
	cltd
	idivl	%ebx
	imull	%eax, %r14d
	imull	%eax, %ebx
LBB0_8:
	cmpl	48(%r15), %r14d
	jge	LBB0_28
## %bb.9:
	movl	64(%r15), %edi
	movl	%r14d, %esi
	callq	_TIFFhowmany_32
	testl	%eax, %eax
	je	LBB0_28
## %bb.10:
	movl	%eax, %esi
	movq	(%r15), %rax
	movq	_O_RDONLY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_14
## %bb.11:
	cmpl	$1000001, %esi                  ## imm = 0xF4241
	jl	LBB0_14
## %bb.12:
	movq	%r15, %rdi
	callq	_TIFFGetFileSize
	cmpl	%eax, %r13d
	jge	LBB0_28
## %bb.13:
	movq	%r15, %rdi
	callq	_TIFFGetFileSize
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	subl	%r13d, %eax
	leal	-1(%rsi), %ecx
	cltd
	idivl	%ecx
	cmpl	%eax, %ebx
	jg	LBB0_28
LBB0_14:
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$4, %edx
	callq	__TIFFCheckMalloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rcx
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$4, %edx
	callq	__TIFFCheckMalloc
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.15:
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	testl	%r9d, %r9d
	jle	LBB0_27
## %bb.17:
	movl	%r9d, %r8d
	cmpl	$1, %r9d
	jne	LBB0_23
## %bb.18:
	xorl	%edi, %edi
	jmp	LBB0_25
LBB0_19:
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.20:
	movq	%rcx, %rdi
	movq	%rax, %rbx
	callq	__TIFFfree
	movq	%rbx, %rax
LBB0_21:
	testq	%rax, %rax
	je	LBB0_28
## %bb.22:
	movq	%rax, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__TIFFfree                      ## TAILCALL
LBB0_23:
	movl	%r8d, %edx
	andl	$-2, %edx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	cmpl	%r12d, %ebx
	cmovgel	%r12d, %ebx
	testl	%ebx, %ebx
	movl	%r13d, %esi
	cmovel	%ebx, %esi
	movl	%ebx, (%rcx,%rdi,4)
	movl	%esi, (%rax,%rdi,4)
	addl	%ebx, %r13d
	subl	%ebx, %r12d
	cmpl	%r12d, %ebx
	cmovgel	%r12d, %ebx
	movl	%ebx, 4(%rcx,%rdi,4)
	testl	%ebx, %ebx
	movl	%r13d, %esi
	cmovel	%ebx, %esi
	movl	%esi, 4(%rax,%rdi,4)
	addl	%ebx, %r13d
	subl	%ebx, %r12d
	addq	$2, %rdi
	cmpq	%rdi, %rdx
	jne	LBB0_24
LBB0_25:
	testb	$1, %r8b
	je	LBB0_27
## %bb.26:
	cmpl	%r12d, %ebx
	cmovll	%ebx, %r12d
	movl	%r12d, (%rcx,%rdi,4)
	testl	%r12d, %r12d
	cmovel	%r12d, %r13d
	movl	%r13d, (%rax,%rdi,4)
LBB0_27:
	movl	%r9d, 56(%r15)
	movl	%r9d, 52(%r15)
	movq	_TIFFTAG_ROWSPERSTRIP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movq	%r15, %rdi
	movl	%r14d, %edx
	movq	%rcx, %rbx
	movq	%rax, %r14
	callq	_TIFFSetField
	movq	8(%r15), %rdi
	callq	__TIFFfree
	movq	16(%r15), %rdi
	callq	__TIFFfree
	movq	%rbx, 8(%r15)
	movq	%r14, 16(%r15)
	movl	$1, 60(%r15)
LBB0_28:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,8,3                   ## @O_RDONLY
	.comm	_PLANARCONFIG_CONTIG,8,3        ## @PLANARCONFIG_CONTIG
	.comm	_PHOTOMETRIC_YCBCR,8,3          ## @PHOTOMETRIC_YCBCR
	.comm	_STRIP_SIZE_DEFAULT,4,2         ## @STRIP_SIZE_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"for chopped \"StripByteCounts\" array"

L_.str.1:                               ## @.str.1
	.asciz	"for chopped \"StripOffsets\" array"

	.comm	_TIFFTAG_ROWSPERSTRIP,4,2       ## @TIFFTAG_ROWSPERSTRIP
	.no_dead_strip	_ChopUpSingleUncompressedStrip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ChopUpSingleUncompressedStrip
_ChopUpSingleUncompressedStrip:         ; @ChopUpSingleUncompressedStrip
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w25, [x8]
	cbnz	w25, LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _O_RDONLY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
LBB0_2:
	ldp	x8, x9, [x19, #16]
	ldr	w26, [x8]
Lloh3:
	adrp	x8, _PLANARCONFIG_CONTIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PLANARCONFIG_CONTIG@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x9, x8
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19, #32]
Lloh6:
	adrp	x9, _PHOTOMETRIC_YCBCR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PHOTOMETRIC_YCBCR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_isUpSampled
	cbz	w0, LBB0_17
LBB0_4:
	mov	w20, #1
LBB0_5:
	mov	x0, x19
	mov	x1, x20
	bl	_TIFFVTileSize64
	mov	x21, x0
Lloh9:
	adrp	x8, _STRIP_SIZE_DEFAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STRIP_SIZE_DEFAULT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.gt	LBB0_8
; %bb.6:
	cmp	w21, #1
	b.lt	LBB0_24
; %bb.7:
	sdiv	w8, w8, w21
	mul	w20, w8, w20
	mul	w21, w8, w21
LBB0_8:
	ldr	w8, [x19, #48]
	cmp	w20, w8
	b.ge	LBB0_24
; %bb.9:
	ldr	w0, [x19, #64]
	mov	x1, x20
	bl	_TIFFhowmany_32
	cbz	w0, LBB0_24
; %bb.10:
	mov	x22, x0
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _O_RDONLY@GOTPAGE
Lloh13:
	ldr	x9, [x9, _O_RDONLY@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #16961
	movk	w8, #15, lsl #16
	ccmp	w0, w8, #8, eq
	b.ge	LBB0_18
LBB0_11:
Lloh15:
	adrp	x3, l_.str@PAGE
Lloh16:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	mov	w2, #4
	bl	__TIFFCheckMalloc
	mov	x23, x0
Lloh17:
	adrp	x3, l_.str.1@PAGE
Lloh18:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	mov	w2, #4
	bl	__TIFFCheckMalloc
	mov	x24, x0
	cbz	x23, LBB0_20
; %bb.12:
	cbz	x24, LBB0_20
; %bb.13:
	cmp	w22, #1
	b.lt	LBB0_16
; %bb.14:
	mov	w8, w22
	mov	x9, x23
	mov	x10, x24
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	cmp	w21, w25
	csel	w21, w21, w25, lt
	str	w21, [x9], #4
	cmp	w21, #0
	csel	w11, wzr, w26, eq
	str	w11, [x10], #4
	add	w26, w21, w26
	sub	w25, w25, w21
	subs	x8, x8, #1
	b.ne	LBB0_15
LBB0_16:
	stp	w22, w22, [x19, #52]
Lloh19:
	adrp	x8, _TIFFTAG_ROWSPERSTRIP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TIFFTAG_ROWSPERSTRIP@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_TIFFSetField
	ldr	x0, [x19, #8]
	bl	__TIFFfree
	ldr	x0, [x19, #16]
	bl	__TIFFfree
	stp	x23, x24, [x19, #8]
	mov	w8, #1
	str	w8, [x19, #60]
	b	LBB0_24
LBB0_17:
	ldr	x8, [x19, #40]
	ldr	w20, [x8, #4]
	b	LBB0_5
LBB0_18:
	mov	x0, x19
	bl	_TIFFGetFileSize
	cmp	w26, w0
	b.ge	LBB0_24
; %bb.19:
	mov	x0, x19
	bl	_TIFFGetFileSize
	sub	w8, w0, w26
	sub	w9, w22, #1
	sdiv	w8, w8, w9
	cmp	w21, w8
	b.le	LBB0_11
	b	LBB0_24
LBB0_20:
	cbz	x23, LBB0_22
; %bb.21:
	mov	x0, x23
	bl	__TIFFfree
LBB0_22:
	cbz	x24, LBB0_24
; %bb.23:
	mov	x0, x24
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	__TIFFfree
LBB0_24:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,8,3                   ; @O_RDONLY
	.comm	_PLANARCONFIG_CONTIG,8,3        ; @PLANARCONFIG_CONTIG
	.comm	_PHOTOMETRIC_YCBCR,8,3          ; @PHOTOMETRIC_YCBCR
	.comm	_STRIP_SIZE_DEFAULT,4,2         ; @STRIP_SIZE_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"for chopped \"StripByteCounts\" array"

l_.str.1:                               ; @.str.1
	.asciz	"for chopped \"StripOffsets\" array"

	.comm	_TIFFTAG_ROWSPERSTRIP,4,2       ; @TIFFTAG_ROWSPERSTRIP
	.no_dead_strip	_ChopUpSingleUncompressedStrip
.subsections_via_symbols
