	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFSetDirectory               ## -- Begin function TIFFSetDirectory
	.p2align	4, 0x90
_TIFFSetDirectory:                      ## @TIFFSetDirectory
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_TIFF_BIGTIFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	(%rdi), %eax
	sete	%cl
	movq	32(%rdi,%rcx,8), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rcx
	testq	%rsi, %rsi
	jle	LBB0_6
## %bb.1:
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	leaq	-48(%rbp), %r15
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_TIFFAdvanceDirectory
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	-1(%rbx), %rcx
	movq	-48(%rbp), %rax
	cmpq	$2, %rbx
	jl	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rcx, %rbx
	testq	%rax, %rax
	jne	LBB0_3
LBB0_6:
	movq	%rax, 24(%r12)
	notq	%rcx
	addq	%r14, %rcx
	movq	%rcx, 16(%r12)
	movq	$0, 8(%r12)
	movq	%r12, %rdi
	callq	_TIFFReadDirectory
	movl	%eax, %r13d
LBB0_7:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TIFF_BIGTIFF,4,2               ## @TIFF_BIGTIFF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TIFFSetDirectory               ; -- Begin function TIFFSetDirectory
	.p2align	2
_TIFFSetDirectory:                      ; @TIFFSetDirectory
	.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	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _TIFF_BIGTIFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TIFF_BIGTIFF@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #32
	mov	w9, #40
	csel	x8, x9, x8, eq
	ldr	x8, [x0, x8]
	str	x8, [sp, #8]
	mov	x9, x1
	cmp	x1, #1
	b.lt	LBB0_6
; %bb.1:
	cbz	x8, LBB0_6
; %bb.2:
	mov	x21, x20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, #0
	bl	_TIFFAdvanceDirectory
	cbz	w0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	x9, x21, #1
	ldr	x8, [sp, #8]
	cmp	x21, #2
	b.lt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, x9
	cbnz	x8, LBB0_3
LBB0_6:
	str	x8, [x19, #24]
	mvn	x8, x9
	add	x8, x8, x20
	stp	xzr, x8, [x19, #8]
	mov	x0, x19
	bl	_TIFFReadDirectory
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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TIFF_BIGTIFF,4,2               ; @TIFF_BIGTIFF
.subsections_via_symbols
