	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFVTileSize64                ## -- Begin function TIFFVTileSize64
	.p2align	4, 0x90
_TIFFVTileSize64:                       ## @TIFFVTileSize64
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%r14d, %r14d
	cmpq	$0, 8(%rdi)
	je	LBB0_16
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_16
## %bb.2:
	cmpq	$0, 24(%rbx)
	je	LBB0_16
## %bb.3:
	movl	%esi, %r15d
	movq	32(%rbx), %rax
	movq	_PLANARCONFIG_CONTIG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.4:
	movq	40(%rbx), %rax
	movq	_PHOTOMETRIC_YCBCR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.5:
	cmpl	$3, 48(%rbx)
	jne	LBB0_13
## %bb.6:
	movq	%rbx, %rdi
	callq	_isUpSampled
	testl	%eax, %eax
	je	LBB0_7
LBB0_13:
	movq	%rbx, %rdi
	callq	_TIFFTileRowSize64
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_18
## %bb.14:
	leaq	_TIFFVTileSize64.module(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__TIFFMultiply64                ## TAILCALL
LBB0_7:
	movq	_TIFFTAG_YCBCRSUBSAMPLING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rcx
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_TIFFGetFieldDefaulted
	movl	-56(%rbp), %ecx
	cmpl	$4, %ecx
	ja	LBB0_9
## %bb.8:
	movl	$22, %eax
	btl	%ecx, %eax
	jae	LBB0_9
## %bb.10:
	movl	-52(%rbp), %r12d
	cmpl	$4, %r12d
	ja	LBB0_12
## %bb.11:
	movl	$22, %eax
	btl	%r12d, %eax
	jae	LBB0_12
## %bb.15:
	imull	%ecx, %r12d
	addl	$2, %r12d
	movl	16(%rbx), %edi
	movl	%ecx, %esi
	callq	_TIFFhowmany_32
	movl	%eax, %r14d
	movl	-52(%rbp), %esi
	movl	%r15d, %edi
	callq	_TIFFhowmany_32
	movl	%eax, %r15d
	leaq	_TIFFVTileSize64.module(%rip), %r13
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movq	%r13, %rcx
	callq	__TIFFMultiply64
	movl	52(%rbx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r13, %rcx
	callq	__TIFFMultiply64
	movl	%eax, %edi
	callq	_TIFFhowmany8_64
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	movq	%r13, %rcx
	callq	__TIFFMultiply64
	movl	%eax, %r14d
	jmp	LBB0_16
LBB0_9:
	movl	-52(%rbp), %r12d
LBB0_12:
	movl	(%rbx), %edi
	leaq	_TIFFVTileSize64.module(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	movl	%r12d, %r8d
	callq	_TIFFErrorExt
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @TIFFVTileSize64.module
_TIFFVTileSize64.module:
	.asciz	"TIFFVTileSize64"

	.comm	_PLANARCONFIG_CONTIG,8,3        ## @PLANARCONFIG_CONTIG
	.comm	_PHOTOMETRIC_YCBCR,8,3          ## @PHOTOMETRIC_YCBCR
	.comm	_TIFFTAG_YCBCRSUBSAMPLING,4,2   ## @TIFFTAG_YCBCRSUBSAMPLING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid YCbCr subsampling (%dx%d)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFVTileSize64                ; -- Begin function TIFFVTileSize64
	.p2align	2
_TIFFVTileSize64:                       ; @TIFFVTileSize64
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
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]
	cbz	x8, LBB0_16
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_16
; %bb.2:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_16
; %bb.3:
	mov	x20, x1
	ldr	x8, [x19, #32]
Lloh3:
	adrp	x9, _PLANARCONFIG_CONTIG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PLANARCONFIG_CONTIG@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	ldr	x8, [x19, #40]
Lloh6:
	adrp	x9, _PHOTOMETRIC_YCBCR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PHOTOMETRIC_YCBCR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	ldr	w8, [x19, #48]
	cmp	w8, #3
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_isUpSampled
	cbz	w0, LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_TIFFTileRowSize64
	ldr	x8, [sp, #8]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.8:
	mov	x2, x0
Lloh12:
	adrp	x3, _TIFFVTileSize64.module@PAGE
Lloh13:
	add	x3, x3, _TIFFVTileSize64.module@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	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
	add	sp, sp, #80
	b	__TIFFMultiply64
LBB0_9:
Lloh14:
	adrp	x8, _TIFFTAG_YCBCRSUBSAMPLING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TIFFTAG_YCBCRSUBSAMPLING@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x8, sp
	add	x3, x8, #4
	mov	x2, sp
	mov	x0, x19
	bl	_TIFFGetFieldDefaulted
	ldr	w3, [sp]
	cmp	w3, #4
	b.hi	LBB0_14
; %bb.10:
	mov	w8, #1
	lsl	w8, w8, w3
	mov	w9, #22
	tst	w8, w9
	b.eq	LBB0_14
; %bb.11:
	ldr	w4, [sp, #4]
	cmp	w4, #4
	b.hi	LBB0_15
; %bb.12:
	mov	w8, #1
	lsl	w8, w8, w4
	mov	w9, #22
	tst	w8, w9
	b.eq	LBB0_15
; %bb.13:
	orr	w8, wzr, #0x2
	madd	w21, w4, w3, w8
	ldr	w0, [x19, #16]
	mov	x1, x3
	bl	_TIFFhowmany_32
	mov	x22, x0
	ldr	w1, [sp, #4]
	mov	x0, x20
	bl	_TIFFhowmany_32
	mov	x20, x0
Lloh17:
	adrp	x23, _TIFFVTileSize64.module@PAGE
Lloh18:
	add	x23, x23, _TIFFVTileSize64.module@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	bl	__TIFFMultiply64
	mov	x1, x0
	ldr	w2, [x19, #52]
	mov	x0, x19
	mov	x3, x23
	bl	__TIFFMultiply64
	bl	_TIFFhowmany8_64
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	mov	x3, x23
	bl	__TIFFMultiply64
	b	LBB0_17
LBB0_14:
	ldr	w4, [sp, #4]
LBB0_15:
	ldr	w0, [x19]
Lloh19:
	adrp	x1, _TIFFVTileSize64.module@PAGE
Lloh20:
	add	x1, x1, _TIFFVTileSize64.module@PAGEOFF
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	bl	_TIFFErrorExt
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldr	x8, [sp, #8]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	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
	add	sp, sp, #80
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_TIFFVTileSize64.module:                ; @TIFFVTileSize64.module
	.asciz	"TIFFVTileSize64"

	.comm	_PLANARCONFIG_CONTIG,8,3        ; @PLANARCONFIG_CONTIG
	.comm	_PHOTOMETRIC_YCBCR,8,3          ; @PHOTOMETRIC_YCBCR
	.comm	_TIFFTAG_YCBCRSUBSAMPLING,4,2   ; @TIFFTAG_YCBCRSUBSAMPLING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid YCbCr subsampling (%dx%d)"

.subsections_via_symbols
