	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFScanlineSize64             ## -- Begin function TIFFScanlineSize64
	.p2align	4, 0x90
_TIFFScanlineSize64:                    ## @TIFFScanlineSize64
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	8(%rdi), %rax
	movq	_PLANARCONFIG_CONTIG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.1:
	movq	16(%rbx), %rax
	movq	_PHOTOMETRIC_YCBCR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.2:
	cmpl	$3, 24(%rbx)
	jne	LBB0_12
## %bb.3:
	movq	%rbx, %rdi
	callq	_isUpSampled
	testl	%eax, %eax
	je	LBB0_4
LBB0_12:
	movl	24(%rbx), %edx
	movl	28(%rbx), %esi
	leaq	_TIFFScanlineSize64.module(%rip), %r14
	movq	%rbx, %rdi
	movq	%r14, %rcx
	callq	__TIFFMultiply64
	movl	32(%rbx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r14, %rcx
	jmp	LBB0_14
LBB0_13:
	movl	28(%rbx), %esi
	movl	32(%rbx), %edx
	leaq	_TIFFScanlineSize64.module(%rip), %rcx
	movq	%rbx, %rdi
LBB0_14:
	callq	__TIFFMultiply64
	movl	%eax, %edi
	movl	$8, %esi
	callq	_TIFFhowmany_64
	testl	%eax, %eax
	jne	LBB0_18
LBB0_16:
	movl	(%rbx), %edi
	leaq	_TIFFScanlineSize64.module(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
LBB0_17:
	callq	_TIFFErrorExt
	xorl	%eax, %eax
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_20
## %bb.19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	cmpl	$3, 24(%rbx)
	jne	LBB0_5
## %bb.6:
	movq	_TIFFTAG_YCBCRSUBSAMPLING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rcx
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_TIFFGetFieldDefaulted
	movl	-40(%rbp), %esi
	cmpl	$4, %esi
	ja	LBB0_10
## %bb.7:
	movl	$22, %eax
	btl	%esi, %eax
	jae	LBB0_10
## %bb.8:
	movl	-36(%rbp), %r14d
	cmpl	$4, %r14d
	ja	LBB0_10
## %bb.9:
	movl	$22, %eax
	btl	%r14d, %eax
	jae	LBB0_10
## %bb.11:
	imull	%esi, %r14d
	addl	$2, %r14d
	movl	28(%rbx), %edi
	callq	_TIFFhowmany_32
	leaq	_TIFFScanlineSize64.module(%rip), %r15
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	movq	%r15, %rcx
	callq	__TIFFMultiply64
	movl	32(%rbx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r15, %rcx
	callq	__TIFFMultiply64
	movl	%eax, %edi
	movl	$8, %esi
	callq	_TIFFhowmany_64
	cltd
	idivl	-36(%rbp)
	testl	%eax, %eax
	jne	LBB0_18
	jmp	LBB0_16
LBB0_5:
	movl	(%rbx), %edi
	leaq	_TIFFScanlineSize64.module(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_17
LBB0_10:
	movl	(%rbx), %edi
	leaq	_TIFFScanlineSize64.module(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_17
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @TIFFScanlineSize64.module
_TIFFScanlineSize64.module:
	.asciz	"TIFFScanlineSize64"

	.comm	_PLANARCONFIG_CONTIG,8,3        ## @PLANARCONFIG_CONTIG
	.comm	_PHOTOMETRIC_YCBCR,8,3          ## @PHOTOMETRIC_YCBCR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid td_samplesperpixel value"

	.comm	_TIFFTAG_YCBCRSUBSAMPLING,4,2   ## @TIFFTAG_YCBCRSUBSAMPLING
L_.str.1:                               ## @.str.1
	.asciz	"Invalid YCbCr subsampling"

L_.str.2:                               ## @.str.2
	.asciz	"Computed scanline size is zero"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFScanlineSize64             ; -- Begin function TIFFScanlineSize64
	.p2align	2
_TIFFScanlineSize64:                    ; @TIFFScanlineSize64
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _PLANARCONFIG_CONTIG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PLANARCONFIG_CONTIG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x19, #16]
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.2:
	ldr	w8, [x19, #24]
	cmp	w8, #3
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_isUpSampled
	cbz	w0, LBB0_11
LBB0_4:
	ldp	w2, w1, [x19, #24]
Lloh9:
	adrp	x20, _TIFFScanlineSize64.module@PAGE
Lloh10:
	add	x20, x20, _TIFFScanlineSize64.module@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	__TIFFMultiply64
	mov	x1, x0
	ldr	w2, [x19, #32]
	mov	x0, x19
	mov	x3, x20
	b	LBB0_6
LBB0_5:
	ldp	w1, w2, [x19, #28]
Lloh11:
	adrp	x3, _TIFFScanlineSize64.module@PAGE
Lloh12:
	add	x3, x3, _TIFFScanlineSize64.module@PAGEOFF
	mov	x0, x19
LBB0_6:
	bl	__TIFFMultiply64
	mov	w1, #8
	bl	_TIFFhowmany_64
	cbnz	w0, LBB0_9
LBB0_7:
	ldr	w0, [x19]
Lloh13:
	adrp	x1, _TIFFScanlineSize64.module@PAGE
Lloh14:
	add	x1, x1, _TIFFScanlineSize64.module@PAGEOFF
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_8:
	bl	_TIFFErrorExt
	mov	w0, #0
LBB0_9:
	ldr	x8, [sp, #8]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
	ldr	w8, [x19, #24]
	cmp	w8, #3
	b.ne	LBB0_17
; %bb.12:
Lloh20:
	adrp	x8, _TIFFTAG_YCBCRSUBSAMPLING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TIFFTAG_YCBCRSUBSAMPLING@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x8, sp
	add	x3, x8, #4
	mov	x2, sp
	mov	x0, x19
	bl	_TIFFGetFieldDefaulted
	ldr	w1, [sp]
	cmp	w1, #4
	b.hi	LBB0_18
; %bb.13:
	mov	w8, #1
	lsl	w8, w8, w1
	mov	w9, #22
	tst	w8, w9
	b.eq	LBB0_18
; %bb.14:
	ldr	w8, [sp, #4]
	cmp	w8, #4
	b.hi	LBB0_18
; %bb.15:
	mov	w9, #1
	lsl	w9, w9, w8
	mov	w10, #22
	tst	w9, w10
	b.eq	LBB0_18
; %bb.16:
	orr	w9, wzr, #0x2
	madd	w20, w8, w1, w9
	ldr	w0, [x19, #28]
	bl	_TIFFhowmany_32
	mov	x1, x0
Lloh23:
	adrp	x21, _TIFFScanlineSize64.module@PAGE
Lloh24:
	add	x21, x21, _TIFFScanlineSize64.module@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	__TIFFMultiply64
	mov	x1, x0
	ldr	w2, [x19, #32]
	mov	x0, x19
	mov	x3, x21
	bl	__TIFFMultiply64
	mov	w1, #8
	bl	_TIFFhowmany_64
	ldr	w8, [sp, #4]
	sdiv	w0, w0, w8
	cbnz	w0, LBB0_9
	b	LBB0_7
LBB0_17:
	ldr	w0, [x19]
Lloh25:
	adrp	x1, _TIFFScanlineSize64.module@PAGE
Lloh26:
	add	x1, x1, _TIFFScanlineSize64.module@PAGEOFF
Lloh27:
	adrp	x2, l_.str@PAGE
Lloh28:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_8
LBB0_18:
	ldr	w0, [x19]
Lloh29:
	adrp	x1, _TIFFScanlineSize64.module@PAGE
Lloh30:
	add	x1, x1, _TIFFScanlineSize64.module@PAGEOFF
Lloh31:
	adrp	x2, l_.str.1@PAGE
Lloh32:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_TIFFScanlineSize64.module:             ; @TIFFScanlineSize64.module
	.asciz	"TIFFScanlineSize64"

	.comm	_PLANARCONFIG_CONTIG,8,3        ; @PLANARCONFIG_CONTIG
	.comm	_PHOTOMETRIC_YCBCR,8,3          ; @PHOTOMETRIC_YCBCR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid td_samplesperpixel value"

	.comm	_TIFFTAG_YCBCRSUBSAMPLING,4,2   ; @TIFFTAG_YCBCRSUBSAMPLING
l_.str.1:                               ; @.str.1
	.asciz	"Invalid YCbCr subsampling"

l_.str.2:                               ; @.str.2
	.asciz	"Computed scanline size is zero"

.subsections_via_symbols
