	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function PredictorSetup
_PredictorSetup:                        ## @PredictorSetup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_PredictorState
	movl	(%rax), %ecx
	cmpl	$128, %ecx
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	cmpl	$130, %ecx
	je	LBB0_9
## %bb.3:
	cmpl	$129, %ecx
	jne	LBB0_14
## %bb.4:
	movl	8(%rbx), %ecx
	cmpq	$32, %rcx
	ja	LBB0_6
## %bb.5:
	movabsq	$4295033088, %rax               ## imm = 0x100010100
	btq	%rcx, %rax
	jb	LBB0_15
LBB0_6:
	movl	(%rbx), %edi
	leaq	_PredictorSetup.module(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_7
LBB0_1:
	movl	$1, %eax
	jmp	LBB0_21
LBB0_9:
	movl	12(%rbx), %ecx
	movq	_SAMPLEFORMAT_IEEEFP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_10
## %bb.11:
	movl	8(%rbx), %ecx
	leal	-16(%rcx), %eax
	roll	$29, %eax
	cmpl	$6, %eax
	ja	LBB0_13
## %bb.12:
	movl	$71, %edx
	btl	%eax, %edx
	jae	LBB0_13
LBB0_15:
	movq	16(%rbx), %rcx
	movq	_PLANARCONFIG_CONTIG@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_17
## %bb.16:
	movl	24(%rbx), %eax
LBB0_17:
	movl	%eax, 4(%r14)
	movq	%rbx, %rdi
	callq	_isTiled
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	callq	_TIFFTileRowSize
	jmp	LBB0_20
LBB0_14:
	movl	(%rbx), %edi
	leaq	_PredictorSetup.module(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_8
LBB0_10:
	movl	(%rbx), %edi
	leaq	_PredictorSetup.module(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_8
LBB0_19:
	callq	_TIFFScanlineSize
LBB0_20:
	movq	%rax, %rcx
	movq	%rax, 8(%r14)
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
	jmp	LBB0_21
LBB0_13:
	movl	(%rbx), %edi
	leaq	_PredictorSetup.module(%rip), %rsi
	leaq	L_.str.2(%rip), %rdx
LBB0_7:
                                        ## kill: def $ecx killed $ecx killed $rcx
LBB0_8:
	callq	_TIFFErrorExt
	xorl	%eax, %eax
LBB0_21:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_PredictorSetup.module:                 ## @PredictorSetup.module
	.asciz	"PredictorSetup"

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Horizontal differencing \"Predictor\" not supported with %d-bit samples"

	.comm	_SAMPLEFORMAT_IEEEFP,4,2        ## @SAMPLEFORMAT_IEEEFP
L_.str.1:                               ## @.str.1
	.asciz	"Floating point \"Predictor\" not supported with %d data format"

L_.str.2:                               ## @.str.2
	.asciz	"Floating point \"Predictor\" not supported with %d-bit samples"

L_.str.3:                               ## @.str.3
	.asciz	"\"Predictor\" value %d not supported"

	.comm	_PLANARCONFIG_CONTIG,8,3        ## @PLANARCONFIG_CONTIG
	.no_dead_strip	_PredictorSetup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function PredictorSetup
_PredictorSetup:                        ; @PredictorSetup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_PredictorState
	ldr	w3, [x0]
	cmp	w3, #128
	b.eq	LBB0_5
; %bb.1:
	mov	x19, x0
	cmp	w3, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w3, #129
	b.ne	LBB0_10
; %bb.3:
	ldr	w3, [x20, #8]
	cmp	w3, #32
	mov	w8, #1
	lsl	x8, x8, x3
	mov	x9, #256
	movk	x9, #1, lsl #16
	movk	x9, #1, lsl #32
	and	x8, x8, x9
	ccmp	x8, #0, #4, ls
	b.ne	LBB0_8
; %bb.4:
	ldr	w0, [x20]
Lloh0:
	adrp	x1, _PredictorSetup.module@PAGE
Lloh1:
	add	x1, x1, _PredictorSetup.module@PAGEOFF
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
                                        ; kill: def $w3 killed $w3 killed $x3
	b	LBB0_15
LBB0_5:
	mov	w0, #1
	b	LBB0_18
LBB0_6:
	ldr	w3, [x20, #12]
Lloh4:
	adrp	x8, _SAMPLEFORMAT_IEEEFP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SAMPLEFORMAT_IEEEFP@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w3, w8
	b.ne	LBB0_14
; %bb.7:
	ldr	w3, [x20, #8]
	sub	w8, w3, #16
	ror	w8, w8, #3
	cmp	w8, #6
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #71
	and	w8, w8, w9
	ccmp	w8, #0, #4, ls
	b.eq	LBB0_19
LBB0_8:
	ldr	x8, [x20, #16]
Lloh7:
	adrp	x9, _PLANARCONFIG_CONTIG@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PLANARCONFIG_CONTIG@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	ldr	w8, [x20, #24]
	b	LBB0_12
LBB0_10:
	ldr	w0, [x20]
Lloh10:
	adrp	x1, _PredictorSetup.module@PAGE
Lloh11:
	add	x1, x1, _PredictorSetup.module@PAGEOFF
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_11:
	mov	w8, #1
LBB0_12:
	str	w8, [x19, #4]
	mov	x0, x20
	bl	_isTiled
	cbz	x0, LBB0_16
; %bb.13:
	mov	x0, x20
	bl	_TIFFTileRowSize
	b	LBB0_17
LBB0_14:
	ldr	w0, [x20]
Lloh14:
	adrp	x1, _PredictorSetup.module@PAGE
Lloh15:
	add	x1, x1, _PredictorSetup.module@PAGEOFF
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_15:
	bl	_TIFFErrorExt
	mov	w0, #0
	b	LBB0_18
LBB0_16:
	mov	x0, x20
	bl	_TIFFScanlineSize
LBB0_17:
	str	x0, [x19, #8]
	cmp	x0, #0
	cset	w0, ne
LBB0_18:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_19:
	ldr	w0, [x20]
Lloh18:
	adrp	x1, _PredictorSetup.module@PAGE
Lloh19:
	add	x1, x1, _PredictorSetup.module@PAGEOFF
Lloh20:
	adrp	x2, l_.str.2@PAGE
Lloh21:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_15
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_PredictorSetup.module:                 ; @PredictorSetup.module
	.asciz	"PredictorSetup"

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Horizontal differencing \"Predictor\" not supported with %d-bit samples"

	.comm	_SAMPLEFORMAT_IEEEFP,4,2        ; @SAMPLEFORMAT_IEEEFP
l_.str.1:                               ; @.str.1
	.asciz	"Floating point \"Predictor\" not supported with %d data format"

l_.str.2:                               ; @.str.2
	.asciz	"Floating point \"Predictor\" not supported with %d-bit samples"

l_.str.3:                               ; @.str.3
	.asciz	"\"Predictor\" value %d not supported"

	.comm	_PLANARCONFIG_CONTIG,8,3        ; @PLANARCONFIG_CONTIG
	.no_dead_strip	_PredictorSetup
.subsections_via_symbols
