	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFFreeDirectory              ## -- Begin function TIFFFreeDirectory
	.p2align	4, 0x90
_TIFFFreeDirectory:                     ## @TIFFFreeDirectory
	.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, %r14
	movq	24(%rdi), %rdi
	movq	_FIELD_SETLONGS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	__TIFFmemset
	movq	_td_sminsamplevalue@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CleanupField
	movq	_td_smaxsamplevalue@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CleanupField
	movq	_td_colormap@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_CleanupField
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	callq	_CleanupField
	movq	(%rbx), %rax
	movl	8(%rax), %edi
	callq	_CleanupField
	movq	_td_sampleinfo@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CleanupField
	movq	_td_subifd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CleanupField
	movq	_td_inknames@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CleanupField
	movq	_td_refblackwhite@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CleanupField
	movq	_td_transferfunction@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_CleanupField
	movq	(%rbx), %rax
	movl	4(%rax), %edi
	callq	_CleanupField
	movq	(%rbx), %rax
	movl	8(%rax), %edi
	callq	_CleanupField
	movq	_td_stripoffset@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CleanupField
	movq	_td_stripbytecount@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CleanupField
	movq	_FIELD_YCBCRSUBSAMPLING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_TIFFClrFieldBit
	movq	_FIELD_YCBCRPOSITIONING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_TIFFClrFieldBit
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	__TIFFfree
	movl	(%r14), %eax
	jmp	LBB0_4
LBB0_5:
	movl	$0, (%r14)
	movq	_td_customValues@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_CleanupField                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FIELD_SETLONGS,4,2             ## @FIELD_SETLONGS
	.comm	_td_sminsamplevalue,4,2         ## @td_sminsamplevalue
	.comm	_td_smaxsamplevalue,4,2         ## @td_smaxsamplevalue
	.comm	_td_colormap,8,3                ## @td_colormap
	.comm	_td_sampleinfo,4,2              ## @td_sampleinfo
	.comm	_td_subifd,4,2                  ## @td_subifd
	.comm	_td_inknames,4,2                ## @td_inknames
	.comm	_td_refblackwhite,4,2           ## @td_refblackwhite
	.comm	_td_transferfunction,8,3        ## @td_transferfunction
	.comm	_td_stripoffset,4,2             ## @td_stripoffset
	.comm	_td_stripbytecount,4,2          ## @td_stripbytecount
	.comm	_FIELD_YCBCRSUBSAMPLING,4,2     ## @FIELD_YCBCRSUBSAMPLING
	.comm	_FIELD_YCBCRPOSITIONING,4,2     ## @FIELD_YCBCRPOSITIONING
	.comm	_td_customValues,4,2            ## @td_customValues
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFFreeDirectory              ; -- Begin function TIFFFreeDirectory
	.p2align	2
_TIFFFreeDirectory:                     ; @TIFFFreeDirectory
	.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	x19, x0
	ldr	x0, [x0, #24]
Lloh0:
	adrp	x8, _FIELD_SETLONGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FIELD_SETLONGS@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #0
	bl	__TIFFmemset
Lloh3:
	adrp	x8, _td_sminsamplevalue@GOTPAGE
Lloh4:
	ldr	x8, [x8, _td_sminsamplevalue@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_CleanupField
Lloh6:
	adrp	x8, _td_smaxsamplevalue@GOTPAGE
Lloh7:
	ldr	x8, [x8, _td_smaxsamplevalue@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_CleanupField
Lloh9:
	adrp	x20, _td_colormap@GOTPAGE
Lloh10:
	ldr	x20, [x20, _td_colormap@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_CleanupField
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
	bl	_CleanupField
	ldr	x8, [x20]
	ldr	w0, [x8, #8]
	bl	_CleanupField
Lloh11:
	adrp	x8, _td_sampleinfo@GOTPAGE
Lloh12:
	ldr	x8, [x8, _td_sampleinfo@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_CleanupField
Lloh14:
	adrp	x8, _td_subifd@GOTPAGE
Lloh15:
	ldr	x8, [x8, _td_subifd@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_CleanupField
Lloh17:
	adrp	x8, _td_inknames@GOTPAGE
Lloh18:
	ldr	x8, [x8, _td_inknames@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_CleanupField
Lloh20:
	adrp	x8, _td_refblackwhite@GOTPAGE
Lloh21:
	ldr	x8, [x8, _td_refblackwhite@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_CleanupField
Lloh23:
	adrp	x20, _td_transferfunction@GOTPAGE
Lloh24:
	ldr	x20, [x20, _td_transferfunction@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_CleanupField
	ldr	x8, [x20]
	ldr	w0, [x8, #4]
	bl	_CleanupField
	ldr	x8, [x20]
	ldr	w0, [x8, #8]
	bl	_CleanupField
Lloh25:
	adrp	x8, _td_stripoffset@GOTPAGE
Lloh26:
	ldr	x8, [x8, _td_stripoffset@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_CleanupField
Lloh28:
	adrp	x8, _td_stripbytecount@GOTPAGE
Lloh29:
	ldr	x8, [x8, _td_stripbytecount@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_CleanupField
Lloh31:
	adrp	x8, _FIELD_YCBCRSUBSAMPLING@GOTPAGE
Lloh32:
	ldr	x8, [x8, _FIELD_YCBCRSUBSAMPLING@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_TIFFClrFieldBit
Lloh34:
	adrp	x8, _FIELD_YCBCRPOSITIONING@GOTPAGE
Lloh35:
	ldr	x8, [x8, _FIELD_YCBCRPOSITIONING@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_TIFFClrFieldBit
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x20, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	ldr	x0, [x9, x20, lsl #3]
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	__TIFFfree
	ldr	w8, [x19]
	b	LBB0_2
LBB0_5:
	str	wzr, [x19]
Lloh37:
	adrp	x8, _td_customValues@GOTPAGE
Lloh38:
	ldr	x8, [x8, _td_customValues@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_CleanupField
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_FIELD_SETLONGS,4,2             ; @FIELD_SETLONGS
	.comm	_td_sminsamplevalue,4,2         ; @td_sminsamplevalue
	.comm	_td_smaxsamplevalue,4,2         ; @td_smaxsamplevalue
	.comm	_td_colormap,8,3                ; @td_colormap
	.comm	_td_sampleinfo,4,2              ; @td_sampleinfo
	.comm	_td_subifd,4,2                  ; @td_subifd
	.comm	_td_inknames,4,2                ; @td_inknames
	.comm	_td_refblackwhite,4,2           ; @td_refblackwhite
	.comm	_td_transferfunction,8,3        ; @td_transferfunction
	.comm	_td_stripoffset,4,2             ; @td_stripoffset
	.comm	_td_stripbytecount,4,2          ; @td_stripbytecount
	.comm	_FIELD_YCBCRSUBSAMPLING,4,2     ; @FIELD_YCBCRSUBSAMPLING
	.comm	_FIELD_YCBCRPOSITIONING,4,2     ; @FIELD_YCBCRPOSITIONING
	.comm	_td_customValues,4,2            ; @td_customValues
.subsections_via_symbols
