	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function OkToChangeTag
_OkToChangeTag:                         ## @OkToChangeTag
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	_TIFF_ANY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_TIFFFindField
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_TIFFTAG_IMAGELENGTH@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	cmpq	%r15, (%rcx)
	je	LBB0_6
## %bb.3:
	movq	_TIFF_BEENWRITING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_6
## %bb.4:
	cmpl	$0, 4(%rax)
	jne	LBB0_6
## %bb.5:
	movl	4(%rbx), %ecx
	movl	8(%rbx), %edi
	movslq	(%rax), %r8
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.4(%rip), %rdx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_TIFFErrorExt
	jmp	LBB0_6
LBB0_1:
	movl	4(%rbx), %r12d
	movl	8(%rbx), %ebx
	movq	%r15, %rdi
	callq	_isPseudoTag
	testq	%rax, %rax
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	xorl	%r14d, %r14d
	movl	%ebx, %edi
	movl	%r12d, %ecx
	movq	%r15, %r9
	xorl	%eax, %eax
	callq	_TIFFErrorExt
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIFF_ANY,4,2                   ## @TIFF_ANY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TIFFSetField"

L_.str.1:                               ## @.str.1
	.asciz	"%s: Unknown %stag %u"

L_.str.2:                               ## @.str.2
	.asciz	"pseudo-"

L_.str.3:                               ## @.str.3
	.space	1

	.comm	_TIFFTAG_IMAGELENGTH,8,3        ## @TIFFTAG_IMAGELENGTH
	.comm	_TIFF_BEENWRITING,4,2           ## @TIFF_BEENWRITING
L_.str.4:                               ## @.str.4
	.asciz	"%s: Cannot modify tag \"%s\" while writing"

	.no_dead_strip	_OkToChangeTag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function OkToChangeTag
_OkToChangeTag:                         ; @OkToChangeTag
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _TIFF_ANY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TIFF_ANY@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_TIFFFindField
	cbz	x0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _TIFFTAG_IMAGELENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIFFTAG_IMAGELENGTH@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x19
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _TIFF_BEENWRITING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TIFF_BEENWRITING@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_8
LBB0_4:
	mov	w0, #1
	b	LBB0_7
LBB0_5:
	ldp	w20, w21, [x20, #4]
	mov	x0, x19
	bl	_isPseudoTag
Lloh9:
	adrp	x8, l_.str.2@PAGE
Lloh10:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh11:
	adrp	x9, l_.str.3@PAGE
Lloh12:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	x0, #0
	csel	x4, x9, x8, eq
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
Lloh15:
	adrp	x2, l_.str.1@PAGE
Lloh16:
	add	x2, x2, l_.str.1@PAGEOFF
	str	x19, [sp]
	mov	x0, x21
	mov	x3, x20
LBB0_6:
	bl	_TIFFErrorExt
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
	ldp	w3, w8, [x20, #4]
	ldrsw	x4, [x0]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
Lloh19:
	adrp	x2, l_.str.4@PAGE
Lloh20:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x8
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_TIFF_ANY,4,2                   ; @TIFF_ANY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TIFFSetField"

l_.str.1:                               ; @.str.1
	.asciz	"%s: Unknown %stag %u"

l_.str.2:                               ; @.str.2
	.asciz	"pseudo-"

l_.str.3:                               ; @.str.3
	.space	1

	.comm	_TIFFTAG_IMAGELENGTH,8,3        ; @TIFFTAG_IMAGELENGTH
	.comm	_TIFF_BEENWRITING,4,2           ; @TIFF_BEENWRITING
l_.str.4:                               ; @.str.4
	.asciz	"%s: Cannot modify tag \"%s\" while writing"

	.no_dead_strip	_OkToChangeTag
.subsections_via_symbols
