	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__TIFFgetMode                   ## -- Begin function _TIFFgetMode
	.p2align	4, 0x90
__TIFFgetMode:                          ## @_TIFFgetMode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movb	(%rdi), %dl
	movsbl	%dl, %eax
	cmpl	$97, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$119, %eax
	je	LBB0_5
## %bb.2:
	movq	%rdi, %rcx
	cmpl	$114, %eax
	jne	LBB0_7
## %bb.3:
	cmpb	$43, 1(%rcx)
	jne	LBB0_9
## %bb.4:
	movq	_O_RDWR@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movq	_O_RDWR@GOTPCREL(%rip), %rcx
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	cmpb	$119, %dl
	jne	LBB0_8
## %bb.6:
	movq	_O_TRUNC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	callq	_TIFFErrorExt
	movl	$-1, %eax
LBB0_8:
	popq	%rbp
	retq
LBB0_9:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_CREAT,4,2                    ## @O_CREAT
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\"%s\": Bad mode"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__TIFFgetMode                   ; -- Begin function _TIFFgetMode
	.p2align	2
__TIFFgetMode:                          ; @_TIFFgetMode
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldrsb	w8, [x0]
	cmp	w8, #97
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #119
	b.eq	LBB0_4
; %bb.2:
	mov	x3, x0
	cmp	w8, #114
	b.ne	LBB0_6
; %bb.3:
Lloh0:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
	ldrb	w9, [x3, #1]
Lloh2:
	adrp	x10, _O_RDWR@GOTPAGE
Lloh3:
	ldr	x10, [x10, _O_RDWR@GOTPAGEOFF]
	cmp	w9, #43
	csel	x8, x10, x8, eq
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	and	w8, w8, #0xff
Lloh4:
	adrp	x9, _O_RDWR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _O_RDWR@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _O_CREAT@GOTPAGE
Lloh8:
	ldr	x10, [x10, _O_CREAT@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	orr	w0, w10, w9
	cmp	w8, #119
	b.ne	LBB0_7
; %bb.5:
Lloh10:
	adrp	x8, _O_TRUNC@GOTPAGE
Lloh11:
	ldr	x8, [x8, _O_TRUNC@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh13:
	adrp	x2, l_.str@PAGE
Lloh14:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #0
	bl	_TIFFErrorExt
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_CREAT,4,2                    ; @O_CREAT
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\"%s\": Bad mode"

.subsections_via_symbols
