	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFNumberOfTiles              ## -- Begin function TIFFNumberOfTiles
	.p2align	4, 0x90
_TIFFNumberOfTiles:                     ## @TIFFNumberOfTiles
	.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	%rdi, %rbx
	movq	(%rdi), %rsi
	movq	8(%rdi), %r15
	cmpq	$-1, %rsi
	jne	LBB0_2
## %bb.1:
	movq	24(%rbx), %rsi
LBB0_2:
	movq	16(%rbx), %r14
	cmpq	$-1, %r15
	je	LBB0_3
## %bb.4:
	cmpq	$-1, %r14
	je	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.7:
	testq	%r15, %r15
	je	LBB0_10
## %bb.8:
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	movq	24(%rbx), %rdi
	callq	_TIFFhowmany_32
	movq	%rax, %r12
	movq	32(%rbx), %rdi
	movq	%r15, %rsi
	callq	_TIFFhowmany_32
	leaq	L_.str(%rip), %r15
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	movq	%r15, %rcx
	callq	__TIFFMultiply32
	movq	%rax, %r12
	movq	40(%rbx), %rdi
	movq	%r14, %rsi
	callq	_TIFFhowmany_32
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	movq	%r15, %rcx
	callq	__TIFFMultiply32
LBB0_10:
	movq	48(%rbx), %rcx
	movq	_PLANARCONFIG_SEPARATE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_11
## %bb.12:
	movq	56(%rbx), %rdx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__TIFFMultiply32                ## TAILCALL
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	32(%rbx), %r15
	cmpq	$-1, %r14
	jne	LBB0_6
LBB0_5:
	movq	40(%rbx), %r14
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TIFFNumberOfTiles"

	.comm	_PLANARCONFIG_SEPARATE,8,3      ## @PLANARCONFIG_SEPARATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFNumberOfTiles              ; -- Begin function TIFFNumberOfTiles
	.p2align	2
_TIFFNumberOfTiles:                     ; @TIFFNumberOfTiles
	.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, x0
	ldp	x1, x21, [x0]
	cmn	x1, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	x1, [x19, #24]
LBB0_2:
	ldr	x20, [x19, #16]
	cmn	x21, #1
	b.eq	LBB0_5
; %bb.3:
	cmn	x20, #1
	b.eq	LBB0_6
LBB0_4:
	mov	x4, #0
	cbnz	x1, LBB0_7
	b	LBB0_10
LBB0_5:
	ldr	x21, [x19, #32]
	cmn	x20, #1
	b.ne	LBB0_4
LBB0_6:
	ldr	x20, [x19, #40]
	mov	x4, #0
	cbz	x1, LBB0_10
LBB0_7:
	cbz	x21, LBB0_10
; %bb.8:
	cbz	x20, LBB0_10
; %bb.9:
	ldr	x0, [x19, #24]
	bl	_TIFFhowmany_32
	mov	x22, x0
	ldr	x0, [x19, #32]
	mov	x1, x21
	bl	_TIFFhowmany_32
	mov	x2, x0
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	mov	x3, x21
	bl	__TIFFMultiply32
	mov	x22, x0
	ldr	x0, [x19, #40]
	mov	x1, x20
	bl	_TIFFhowmany_32
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	mov	x3, x21
	bl	__TIFFMultiply32
	mov	x4, x0
LBB0_10:
	ldr	x8, [x19, #48]
Lloh2:
	adrp	x9, _PLANARCONFIG_SEPARATE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PLANARCONFIG_SEPARATE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	ldr	x2, [x19, #56]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x4
	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
	b	__TIFFMultiply32
LBB0_12:
	mov	x0, x4
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TIFFNumberOfTiles"

	.comm	_PLANARCONFIG_SEPARATE,8,3      ; @PLANARCONFIG_SEPARATE
.subsections_via_symbols
