	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TIFFCheckRead
_TIFFCheckRead:                         ## @TIFFCheckRead
	.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
	movq	(%rdi), %rax
	movq	_O_WRONLY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_4
LBB0_2:
	movl	%esi, %r14d
	movq	%rbx, %rdi
	callq	_isTiled
	movl	%eax, %ecx
	movl	$1, %eax
	cmpl	%r14d, %ecx
	je	LBB0_5
## %bb.3:
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	testl	%r14d, %r14d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
LBB0_4:
	callq	_TIFFErrorExt
	xorl	%eax, %eax
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_WRONLY,8,3                   ## @O_WRONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"File not open for reading"

L_.str.1:                               ## @.str.1
	.asciz	"Can not read tiles from a stripped image"

L_.str.2:                               ## @.str.2
	.asciz	"Can not read scanlines from a tiled image"

	.no_dead_strip	_TIFFCheckRead
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TIFFCheckRead
_TIFFCheckRead:                         ; @TIFFCheckRead
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _O_WRONLY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _O_WRONLY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldp	w1, w0, [x20, #8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_5
LBB0_2:
	mov	x19, x1
	mov	x0, x20
	bl	_isTiled
	cmp	w0, w19
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #1
	b	LBB0_6
LBB0_4:
	ldp	w1, w0, [x20, #8]
Lloh5:
	adrp	x8, l_.str.1@PAGE
Lloh6:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh7:
	adrp	x9, l_.str.2@PAGE
Lloh8:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w19, #0
	csel	x2, x9, x8, eq
LBB0_5:
	bl	_TIFFErrorExt
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_O_WRONLY,8,3                   ; @O_WRONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"File not open for reading"

l_.str.1:                               ; @.str.1
	.asciz	"Can not read tiles from a stripped image"

l_.str.2:                               ; @.str.2
	.asciz	"Can not read scanlines from a tiled image"

	.no_dead_strip	_TIFFCheckRead
.subsections_via_symbols
