	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFComputeTile                ## -- Begin function TIFFComputeTile
	.p2align	4, 0x90
_TIFFComputeTile:                       ## @TIFFComputeTile
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %r13
	movq	8(%rdi), %rbx
	movslq	24(%rdi), %r12
	xorl	%r14d, %r14d
	cmpq	$1, %r12
	cmovneq	%rcx, %r14
	cmpq	$-1, %r13
	jne	LBB0_2
## %bb.1:
	movq	32(%r15), %r13
LBB0_2:
	movq	16(%r15), %rax
	cmpq	$-1, %rbx
	jne	LBB0_4
## %bb.3:
	movq	40(%r15), %rbx
LBB0_4:
	cmpq	$-1, %rax
	cmovneq	%rax, %r12
	movl	$1, %ecx
	testq	%r13, %r13
	je	LBB0_29
## %bb.5:
	testq	%rbx, %rbx
	je	LBB0_29
## %bb.6:
	testq	%r12, %r12
	je	LBB0_29
## %bb.7:
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	32(%r15), %rdi
	movq	%r13, %rsi
	callq	_TIFFhowmany_32
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	40(%r15), %rdi
	movq	%rbx, %rsi
	callq	_TIFFhowmany_32
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movslq	24(%r15), %rdi
	movq	%r12, %rsi
	callq	_TIFFhowmany_32
	movq	%rax, %rsi
	movq	48(%r15), %rax
	movq	_PLANARCONFIG_SEPARATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.8:
	movq	%r14, %rax
	orq	%r12, %rax
	shrq	$32, %rax
	je	LBB0_9
## %bb.10:
	movq	%r14, %rax
	cqto
	idivq	%r12
	movq	%rax, %rcx
	jmp	LBB0_11
LBB0_18:
	movq	%r14, %rax
	orq	%r12, %rax
	shrq	$32, %rax
	je	LBB0_19
## %bb.20:
	movq	%r14, %rax
	cqto
	idivq	%r12
	movq	%rax, %rsi
	jmp	LBB0_21
LBB0_9:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%r12d
	movl	%eax, %ecx
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rdx
	orq	%rbx, %rdx
	shrq	$32, %rdx
	je	LBB0_12
## %bb.13:
	cqto
	idivq	%rbx
	movq	%rax, %rbx
	jmp	LBB0_14
LBB0_19:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%r12d
	movl	%eax, %esi
LBB0_21:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rcx
	orq	%rbx, %rcx
	shrq	$32, %rcx
	je	LBB0_22
## %bb.23:
	cqto
	idivq	%rbx
	movq	%rax, %rcx
	jmp	LBB0_24
LBB0_12:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ebx
	movl	%eax, %ebx
LBB0_14:
	imulq	%rdi, %rsi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rdx
	orq	%r13, %rdx
	shrq	$32, %rdx
	je	LBB0_15
## %bb.16:
	cqto
	idivq	%r13
	jmp	LBB0_17
LBB0_22:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ebx
	movl	%eax, %ecx
LBB0_24:
	imulq	-64(%rbp), %rsi                 ## 8-byte Folded Reload
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rdx
	orq	%r13, %rdx
	shrq	$32, %rdx
	je	LBB0_25
## %bb.26:
	cqto
	idivq	%r13
	jmp	LBB0_27
LBB0_15:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r13d
                                        ## kill: def $eax killed $eax def $rax
LBB0_17:
	addq	%rsi, %rcx
	imulq	-64(%rbp), %rcx                 ## 8-byte Folded Reload
	addq	%rbx, %rcx
	jmp	LBB0_28
LBB0_25:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r13d
                                        ## kill: def $eax killed $eax def $rax
LBB0_27:
	addq	%rsi, %rcx
LBB0_28:
	imulq	-72(%rbp), %rcx                 ## 8-byte Folded Reload
	addq	%rax, %rcx
LBB0_29:
	movq	%rcx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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	_TIFFComputeTile                ; -- Begin function TIFFComputeTile
	.p2align	2
_TIFFComputeTile:                       ; @TIFFComputeTile
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x4
	mov	x22, x2
	mov	x19, x1
	mov	x24, x0
	ldp	x20, x23, [x0]
	ldrsw	x8, [x0, #24]
	cmp	w8, #1
	csel	x28, xzr, x3, eq
	cmn	x20, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	x20, [x24, #32]
LBB0_2:
	ldr	x9, [x24, #16]
	cmn	x23, #1
	b.ne	LBB0_4
; %bb.3:
	ldr	x23, [x24, #40]
LBB0_4:
	cmn	x9, #1
	csel	x25, x8, x9, eq
	cmp	x20, #0
	ccmp	x23, #0, #4, ne
	ccmp	x25, #0, #4, ne
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #1
	b	LBB0_10
LBB0_6:
	ldr	x0, [x24, #32]
	mov	x1, x20
	bl	_TIFFhowmany_32
	mov	x26, x0
	ldr	x0, [x24, #40]
	mov	x1, x23
	bl	_TIFFhowmany_32
	mov	x27, x0
	ldrsw	x0, [x24, #24]
	mov	x1, x25
	bl	_TIFFhowmany_32
	ldr	x8, [x24, #48]
Lloh0:
	adrp	x9, _PLANARCONFIG_SEPARATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PLANARCONFIG_SEPARATE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	sdiv	x8, x28, x25
	sdiv	x9, x22, x23
	madd	x8, x0, x21, x8
	b	LBB0_9
LBB0_8:
	sdiv	x8, x28, x25
	sdiv	x9, x22, x23
LBB0_9:
	madd	x8, x8, x27, x9
	sdiv	x9, x19, x20
	madd	x0, x8, x26, x9
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PLANARCONFIG_SEPARATE,8,3      ; @PLANARCONFIG_SEPARATE
.subsections_via_symbols
