	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFUnsetField                 ## -- Begin function TIFFUnsetField
	.p2align	4, 0x90
_TIFFUnsetField:                        ## @TIFFUnsetField
	.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, %r14
	callq	_TIFFFieldWithTag
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %rsi
	movq	_FIELD_CUSTOM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_12
## %bb.3:
	movl	8(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_10
## %bb.4:
	movq	16(%r14), %rcx
	movl	$16, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%rcx,%rbx), %rdx
	cmpq	%r15, (%rdx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	addq	$16, %rbx
	cmpq	%r12, %rax
	jne	LBB0_5
	jmp	LBB0_10
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_12:
	movq	%r14, %rdi
	callq	_TIFFClrFieldBit
	jmp	LBB0_10
LBB0_7:
	movl	-16(%rcx,%rbx), %edi
	callq	__TIFFfree
	movl	8(%r14), %eax
	decl	%eax
	cmpl	%r12d, %eax
	jle	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	incq	%r12
	movups	(%rax,%rbx), %xmm0
	movups	%xmm0, -16(%rax,%rbx)
	movslq	8(%r14), %rax
	decq	%rax
	addq	$16, %rbx
	cmpq	%rax, %r12
	jl	LBB0_8
LBB0_9:
	movl	%eax, 8(%r14)
LBB0_10:
	movq	_TIFF_DIRTYDIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movl	$1, %eax
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FIELD_CUSTOM,8,3               ## @FIELD_CUSTOM
	.comm	_TIFF_DIRTYDIRECT,4,2           ## @TIFF_DIRTYDIRECT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFUnsetField                 ; -- Begin function TIFFUnsetField
	.p2align	2
_TIFFUnsetField:                        ; @TIFFUnsetField
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
	bl	_TIFFFieldWithTag
	cbz	x0, LBB0_12
; %bb.1:
	ldr	x1, [x0]
Lloh0:
	adrp	x8, _FIELD_CUSTOM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FIELD_CUSTOM@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_6
; %bb.2:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x21, #0
	ldr	x9, [x19, #16]
	mov	w22, #8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, x22]
	ldr	x10, [x10]
	cmp	x10, x20
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	add	x22, x22, #16
	cmp	x8, x21
	b.ne	LBB0_4
	b	LBB0_11
LBB0_6:
	mov	x0, x19
	bl	_TIFFClrFieldBit
	b	LBB0_11
LBB0_7:
	add	x8, x9, x22
	ldur	w0, [x8, #-8]
	bl	__TIFFfree
	ldr	w8, [x19, #8]
	sub	w9, w8, #1
	cmp	w9, w21
	b.le	LBB0_10
; %bb.8:
	sub	x8, x22, #8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	add	x21, x21, #1
	add	x9, x9, x8
	ldr	q0, [x9, #16]
	str	q0, [x9]
	ldrsw	x9, [x19, #8]
	sub	x9, x9, #1
	add	x8, x8, #16
	cmp	x21, x9
	b.lt	LBB0_9
LBB0_10:
	str	w9, [x19, #8]
LBB0_11:
Lloh3:
	adrp	x8, _TIFF_DIRTYDIRECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TIFF_DIRTYDIRECT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	w0, #1
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FIELD_CUSTOM,8,3               ; @FIELD_CUSTOM
	.comm	_TIFF_DIRTYDIRECT,4,2           ; @TIFF_DIRTYDIRECT
.subsections_via_symbols
