	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TIFFSeek
_TIFFSeek:                              ## @TIFFSeek
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	56(%rdi), %r8
	cmpq	%rsi, %r8
	jbe	LBB0_5
## %bb.1:
	movq	%rdx, %rcx
	movq	64(%rbx), %rax
	movq	_PLANARCONFIG_SEPARATE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_9
## %bb.2:
	movq	72(%rbx), %r8
	cmpq	%rcx, %r8
	jle	LBB0_11
## %bb.3:
	imulq	80(%rbx), %rcx
	movq	88(%rbx), %rsi
	movq	%r14, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_13
## %bb.4:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rsi
	movq	%rax, %r15
	jmp	LBB0_14
LBB0_5:
	movl	112(%rbx), %esi
	movl	116(%rbx), %edi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rcx
LBB0_6:
	callq	_TIFFErrorExt
LBB0_7:
	xorl	%r12d, %r12d
LBB0_8:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	88(%rbx), %rcx
	movq	%r14, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_12
## %bb.10:
	movq	%r14, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rax, %r15
	cmpq	8(%rbx), %r15
	jne	LBB0_15
	jmp	LBB0_16
LBB0_11:
	movl	112(%rbx), %esi
	movl	116(%rbx), %edi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_6
LBB0_12:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r15d
	cmpq	8(%rbx), %r15
	jne	LBB0_15
	jmp	LBB0_16
LBB0_13:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %r15d
LBB0_14:
	addq	%rcx, %r15
	cmpq	8(%rbx), %r15
	je	LBB0_16
LBB0_15:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_TIFFFillStrip
	testl	%eax, %eax
	je	LBB0_7
LBB0_16:
	cmpq	%r14, 40(%rbx)
	jbe	LBB0_21
## %bb.17:
	cmpq	$0, 32(%rbx)
	je	LBB0_20
## %bb.18:
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_TIFFFillStripPartial
	testl	%eax, %eax
	jne	LBB0_21
	jmp	LBB0_8
LBB0_20:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_TIFFStartStrip
	testl	%eax, %eax
	je	LBB0_7
LBB0_21:
	movq	40(%rbx), %rax
	movl	$1, %r12d
	cmpq	%r14, %rax
	je	LBB0_8
## %bb.22:
	movq	%r14, %rsi
	subq	%rax, %rsi
	movq	%rbx, %rdi
	callq	*48(%rbx)
	testl	%eax, %eax
	je	LBB0_7
## %bb.23:
	movq	%r14, 40(%rbx)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%lu: Row out of range, max %lu"

	.comm	_PLANARCONFIG_SEPARATE,8,3      ## @PLANARCONFIG_SEPARATE
L_.str.1:                               ## @.str.1
	.asciz	"%lu: Sample out of range, max %lu"

	.comm	_TIFF_TMSIZE_T_MAX,4,2          ## @TIFF_TMSIZE_T_MAX
	.comm	_COMPRESSION_JBIG,8,3           ## @COMPRESSION_JBIG
	.comm	_COMPRESSION_LERC,8,3           ## @COMPRESSION_LERC
	.no_dead_strip	_TIFFSeek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TIFFSeek
_TIFFSeek:                              ; @TIFFSeek
	.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, x1
	mov	x20, x0
	ldr	x4, [x0, #56]
	cmp	x4, x1
	b.ls	LBB0_4
; %bb.1:
	ldr	x8, [x20, #64]
Lloh0:
	adrp	x9, _PLANARCONFIG_SEPARATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PLANARCONFIG_SEPARATE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
	mov	x3, x2
	ldr	x4, [x20, #72]
	cmp	x4, x2
	b.le	LBB0_12
; %bb.3:
	ldp	x8, x9, [x20, #80]
	udiv	x9, x19, x9
	madd	x21, x8, x3, x9
	b	LBB0_7
LBB0_4:
	ldp	w1, w0, [x20, #112]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x19
LBB0_5:
	bl	_TIFFErrorExt
	mov	w0, #0
	b	LBB0_18
LBB0_6:
	ldr	x8, [x20, #88]
	udiv	x21, x19, x8
LBB0_7:
	ldr	x8, [x20, #8]
	cmp	x21, x8
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x20
	mov	x1, x21
	bl	_TIFFFillStrip
	cbz	w0, LBB0_18
LBB0_9:
	ldr	x8, [x20, #40]
	cmp	x8, x19
	b.ls	LBB0_14
; %bb.10:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_13
; %bb.11:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	w3, #1
	bl	_TIFFFillStripPartial
	cbnz	w0, LBB0_14
	b	LBB0_18
LBB0_12:
	ldp	w1, w0, [x20, #112]
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_13:
	mov	x0, x20
	mov	x1, x21
	bl	_TIFFStartStrip
	cbz	w0, LBB0_18
LBB0_14:
	ldr	x8, [x20, #40]
	cmp	x8, x19
	b.eq	LBB0_17
; %bb.15:
	ldr	x9, [x20, #48]
	sub	x1, x19, x8
	mov	x0, x20
	blr	x9
	cbz	w0, LBB0_18
; %bb.16:
	str	x19, [x20, #40]
LBB0_17:
	mov	w0, #1
LBB0_18:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%lu: Row out of range, max %lu"

	.comm	_PLANARCONFIG_SEPARATE,8,3      ; @PLANARCONFIG_SEPARATE
l_.str.1:                               ; @.str.1
	.asciz	"%lu: Sample out of range, max %lu"

	.comm	_TIFF_TMSIZE_T_MAX,4,2          ; @TIFF_TMSIZE_T_MAX
	.comm	_COMPRESSION_JBIG,8,3           ; @COMPRESSION_JBIG
	.comm	_COMPRESSION_LERC,8,3           ; @COMPRESSION_LERC
	.no_dead_strip	_TIFFSeek
.subsections_via_symbols
