	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFSetupStrips                ## -- Begin function TIFFSetupStrips
	.p2align	4, 0x90
_TIFFSetupStrips:                       ## @TIFFSetupStrips
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_isTiled
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_FIELD_TILEDIMENSIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_isUnspecified
	testq	%rax, %rax
	jne	LBB0_2
## %bb.5:
	movq	%rbx, %rdi
	callq	_TIFFNumberOfTiles
	jmp	LBB0_7
LBB0_3:
	movq	_FIELD_ROWSPERSTRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_isUnspecified
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:
	movl	4(%rbx), %esi
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_TIFFNumberOfStrips
LBB0_7:
	movl	%eax, %esi
LBB0_8:
	movl	%esi, (%rbx)
	movl	%esi, 8(%rbx)
	movq	16(%rbx), %rax
	movq	_PLANARCONFIG_SEPARATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movl	%esi, %eax
	cltd
	idivl	4(%rbx)
	movl	%eax, (%rbx)
LBB0_10:
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	__TIFFCheckMalloc
	movq	%rax, 32(%rbx)
	movl	8(%rbx), %esi
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	__TIFFCheckMalloc
	movq	%rax, %rcx
	movq	%rax, 24(%rbx)
	movq	32(%rbx), %rdi
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.11:
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.12:
	movl	8(%rbx), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	__TIFFmemset
	movq	24(%rbx), %rdi
	movl	8(%rbx), %edx
	shll	$2, %edx
	xorl	%esi, %esi
	callq	__TIFFmemset
	movq	_FIELD_STRIPOFFSETS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_TIFFSetFieldBit
	movq	_FIELD_STRIPBYTECOUNTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_TIFFSetFieldBit
	movl	$1, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIELD_TILEDIMENSIONS,4,2       ## @FIELD_TILEDIMENSIONS
	.comm	_FIELD_ROWSPERSTRIP,4,2         ## @FIELD_ROWSPERSTRIP
	.comm	_PLANARCONFIG_SEPARATE,8,3      ## @PLANARCONFIG_SEPARATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"for \"StripOffsets\" array"

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

	.comm	_FIELD_STRIPOFFSETS,4,2         ## @FIELD_STRIPOFFSETS
	.comm	_FIELD_STRIPBYTECOUNTS,4,2      ## @FIELD_STRIPBYTECOUNTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFSetupStrips                ; -- Begin function TIFFSetupStrips
	.p2align	2
_TIFFSetupStrips:                       ; @TIFFSetupStrips
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_isTiled
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _FIELD_TILEDIMENSIONS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FIELD_TILEDIMENSIONS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_isUnspecified
	cbnz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_TIFFNumberOfTiles
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _FIELD_ROWSPERSTRIP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FIELD_ROWSPERSTRIP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_isUnspecified
	cbz	x0, LBB0_5
LBB0_4:
	ldr	w1, [x19, #4]
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_TIFFNumberOfStrips
LBB0_6:
	mov	x1, x0
LBB0_7:
	str	w1, [x19]
	str	w1, [x19, #8]
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _PLANARCONFIG_SEPARATE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PLANARCONFIG_SEPARATE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	ldr	w8, [x19, #4]
	sdiv	w8, w1, w8
	str	w8, [x19]
LBB0_9:
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	w2, #4
	bl	__TIFFCheckMalloc
	str	x0, [x19, #32]
	ldr	w1, [x19, #8]
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w2, #4
	bl	__TIFFCheckMalloc
	mov	x9, x0
	mov	w0, #0
	str	x9, [x19, #24]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_12
; %bb.10:
	cbz	x9, LBB0_12
; %bb.11:
	ldr	w9, [x19, #8]
	lsl	w2, w9, #2
	mov	x0, x8
	mov	w1, #0
	bl	__TIFFmemset
	ldr	x0, [x19, #24]
	ldr	w8, [x19, #8]
	lsl	w2, w8, #2
	mov	w1, #0
	bl	__TIFFmemset
Lloh13:
	adrp	x8, _FIELD_STRIPOFFSETS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FIELD_STRIPOFFSETS@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_TIFFSetFieldBit
Lloh16:
	adrp	x8, _FIELD_STRIPBYTECOUNTS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FIELD_STRIPBYTECOUNTS@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_TIFFSetFieldBit
	mov	w0, #1
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_FIELD_TILEDIMENSIONS,4,2       ; @FIELD_TILEDIMENSIONS
	.comm	_FIELD_ROWSPERSTRIP,4,2         ; @FIELD_ROWSPERSTRIP
	.comm	_PLANARCONFIG_SEPARATE,8,3      ; @PLANARCONFIG_SEPARATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"for \"StripOffsets\" array"

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

	.comm	_FIELD_STRIPOFFSETS,4,2         ; @FIELD_STRIPOFFSETS
	.comm	_FIELD_STRIPBYTECOUNTS,4,2      ; @FIELD_STRIPBYTECOUNTS
.subsections_via_symbols
