	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TIFFStartTile
_TIFFStartTile:                         ## @TIFFStartTile
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	__TIFFFillStriles
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	cmpq	$0, 112(%rbx)
	je	LBB0_7
## %bb.2:
	movq	_TIFF_CODERSETUP@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	*80(%rbx)
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movl	(%r15), %eax
	orl	%eax, (%rbx)
LBB0_5:
	movq	%r14, 8(%rbx)
	movl	124(%rbx), %edi
	movq	88(%rbx), %rsi
	callq	_TIFFhowmany_32
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %rcx
	orq	%r14, %rax
	shrq	$32, %rax
	je	LBB0_9
## %bb.10:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_11
LBB0_9:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_11:
	movq	96(%rbx), %rsi
	imulq	%rsi, %rdx
	movq	%rdx, 16(%rbx)
	movl	120(%rbx), %edi
	callq	_TIFFhowmany_32
	testq	%rax, %rax
	je	LBB0_6
## %bb.12:
	movq	%rax, %rcx
	orq	%r14, %rax
	shrq	$32, %rax
	je	LBB0_13
## %bb.14:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_15
LBB0_6:
	movl	72(%rbx), %edi
	leaq	_TIFFStartTile.module(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	callq	_TIFFErrorExt
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_15:
	imulq	88(%rbx), %rdx
	movq	%rdx, 24(%rbx)
	movq	_TIFF_BUF4WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%rbx), %eax
	movl	%eax, (%rbx)
	movq	_TIFF_NOREADRAW@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.16:
	movq	$0, 64(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_17:
	movq	40(%rbx), %rax
	movq	56(%rbx), %rcx
	movq	%rcx, 64(%rbx)
	testq	%rax, %rax
	jg	LBB0_19
## %bb.18:
	movq	112(%rbx), %rax
	movq	(%rax,%r14,8), %rax
LBB0_19:
	movq	%rax, 32(%rbx)
	movq	48(%rbx), %rcx
	movq	104(%rbx), %rsi
	movq	%r14, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_20
## %bb.21:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_22
LBB0_20:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_22:
	movq	%rbx, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rcx                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_TIFFStartTile.module:                  ## @TIFFStartTile.module
	.asciz	"TIFFStartTile"

	.comm	_TIFF_CODERSETUP,4,2            ## @TIFF_CODERSETUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Zero tiles"

	.comm	_TIFF_BUF4WRITE,4,2             ## @TIFF_BUF4WRITE
	.comm	_TIFF_NOREADRAW,4,2             ## @TIFF_NOREADRAW
	.no_dead_strip	_TIFFStartTile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TIFFStartTile
_TIFFStartTile:                         ; @TIFFStartTile
	.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	x20, x1
	mov	x19, x0
	bl	__TIFFFillStriles
	cbz	w0, LBB0_10
; %bb.1:
	ldr	x8, [x19, #112]
	cbz	x8, LBB0_10
; %bb.2:
	ldr	w8, [x19]
Lloh0:
	adrp	x21, _TIFF_CODERSETUP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TIFF_CODERSETUP@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x19, #80]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_10
; %bb.4:
	ldr	w8, [x21]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	str	x20, [x19, #8]
	ldr	w0, [x19, #124]
	ldr	x1, [x19, #88]
	bl	_TIFFhowmany_32
	cbz	x0, LBB0_9
; %bb.6:
	udiv	x8, x20, x0
	msub	x8, x8, x0, x20
	ldr	x1, [x19, #96]
	mul	x8, x1, x8
	str	x8, [x19, #16]
	ldr	w0, [x19, #120]
	bl	_TIFFhowmany_32
	cbz	x0, LBB0_9
; %bb.7:
	udiv	x8, x20, x0
	msub	x8, x8, x0, x20
	ldr	x9, [x19, #88]
	mul	x8, x9, x8
	str	x8, [x19, #24]
Lloh2:
	adrp	x8, _TIFF_BUF4WRITE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TIFF_BUF4WRITE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
Lloh5:
	adrp	x9, _TIFF_NOREADRAW@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TIFF_NOREADRAW@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.8:
	mov	x8, #0
	str	xzr, [x19, #64]
	b	LBB0_13
LBB0_9:
	ldr	w0, [x19, #72]
Lloh8:
	adrp	x1, _TIFFStartTile.module@PAGE
Lloh9:
	add	x1, x1, _TIFFStartTile.module@PAGEOFF
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	bl	_TIFFErrorExt
LBB0_10:
	mov	w0, #0
	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
LBB0_11:
	ldr	x8, [x19, #56]
	str	x8, [x19, #64]
	ldr	x8, [x19, #40]
	cmp	x8, #0
	b.gt	LBB0_13
; %bb.12:
	ldr	x8, [x19, #112]
	ldr	x8, [x8, x20, lsl #3]
LBB0_13:
	str	x8, [x19, #32]
	ldr	x2, [x19, #48]
	ldr	x8, [x19, #104]
	udiv	x1, x20, x8
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	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
	br	x2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_TIFFStartTile.module:                  ; @TIFFStartTile.module
	.asciz	"TIFFStartTile"

	.comm	_TIFF_CODERSETUP,4,2            ; @TIFF_CODERSETUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Zero tiles"

	.comm	_TIFF_BUF4WRITE,4,2             ; @TIFF_BUF4WRITE
	.comm	_TIFF_NOREADRAW,4,2             ; @TIFF_NOREADRAW
	.no_dead_strip	_TIFFStartTile
.subsections_via_symbols
